From eb492427199c9c68b5554806be34d7217fcc9f44 Mon Sep 17 00:00:00 2001 From: Artur Pryka Date: Fri, 17 Jan 2020 14:53:10 +0100 Subject: [PATCH 01/15] =?UTF-8?q?fix:=20=F0=9F=90=9B=20enable=20scroll=20f?= =?UTF-8?q?or=20charts=20in=20viewer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- styles/style.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/styles/style.css b/styles/style.css index bd4a52f..c1a0904 100644 --- a/styles/style.css +++ b/styles/style.css @@ -466,7 +466,7 @@ body { } & > .keen-dataviz { - overflow: hidden; + overflow: auto; width: 100%; margin-top: 0; border: 1px solid #eee; @@ -539,7 +539,7 @@ body { } & > .keen-dataviz { - overflow: hidden; + overflow: auto; width: 100%; margin-top: 0; border: 1px solid #eee; From 1f48db4afad92e875773257298154eb460eb14db Mon Sep 17 00:00:00 2001 From: Artur Pryka Date: Mon, 20 Jan 2020 09:53:21 +0100 Subject: [PATCH 02/15] =?UTF-8?q?chore:=20=F0=9F=A4=96=20bump=20keen-theme?= =?UTF-8?q?-builder?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 53 ++++++++++++++++++++++++++--------------------- package.json | 2 +- 2 files changed, 30 insertions(+), 25 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9acbf53..1729330 100644 --- a/package-lock.json +++ b/package-lock.json @@ -606,26 +606,31 @@ } }, "@babel/plugin-transform-react-constant-elements": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-constant-elements/-/plugin-transform-react-constant-elements-7.7.4.tgz", - "integrity": "sha512-U6XkHZ8RnmeEb8jBUOpeo6oFka5RhLgxAVvK4/fBbwoYlsHQYLb8I37ymTPDVsrWjqb94+hueuWQA/1OAA4rAQ==", + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-constant-elements/-/plugin-transform-react-constant-elements-7.8.3.tgz", + "integrity": "sha512-glrzN2U+egwRfkNFtL34xIBYTxbbUF2qJTP8HD3qETBBqzAWSeNB821X0GjU06+dNpq/UyCIjI72FmGE5NNkQQ==", "requires": { - "@babel/helper-annotate-as-pure": "^7.7.4", - "@babel/helper-plugin-utils": "^7.0.0" + "@babel/helper-annotate-as-pure": "^7.8.3", + "@babel/helper-plugin-utils": "^7.8.3" }, "dependencies": { "@babel/helper-annotate-as-pure": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.7.4.tgz", - "integrity": "sha512-2BQmQgECKzYKFPpiycoF9tlb5HA4lrVyAmLLVK177EcQAqjVLciUb2/R+n1boQ9y5ENV3uz2ZqiNw7QMBBw1Og==", + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.8.3.tgz", + "integrity": "sha512-6o+mJrZBxOoEX77Ezv9zwW7WV8DdluouRKNY/IR5u/YTMuKHgugHOzYWlYvYLpLA9nPsQCAAASpCIbjI9Mv+Uw==", "requires": { - "@babel/types": "^7.7.4" + "@babel/types": "^7.8.3" } }, + "@babel/helper-plugin-utils": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.8.3.tgz", + "integrity": "sha512-j+fq49Xds2smCUNYmEHF9kGNkhbet6yVIBp4e6oeQpH1RUs/Ir06xUKzDjDkGcaaokPiTNs2JBWHjaE4csUkZQ==" + }, "@babel/types": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz", - "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==", + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.8.3.tgz", + "integrity": "sha512-jBD+G8+LWpMBBWvVcdr4QysjUE4mU/syrhN17o1u3gx0/WzJB1kwiVZAXRtWbsIPOwW8pF/YJV5+nmetPzepXg==", "requires": { "esutils": "^2.0.2", "lodash": "^4.17.13", @@ -12128,9 +12133,9 @@ } }, "keen-theme-builder": { - "version": "1.0.26", - "resolved": "https://registry.npmjs.org/keen-theme-builder/-/keen-theme-builder-1.0.26.tgz", - "integrity": "sha512-zX8jK2iZI947oU6yfi8l3z23sNpZtP6YRZRF8iNSVF5WfI6Jlrs+uOdI9oVtNQHvf+CdPPQNoHXQ9Y2pgzJXWA==", + "version": "1.0.28", + "resolved": "https://registry.npmjs.org/keen-theme-builder/-/keen-theme-builder-1.0.28.tgz", + "integrity": "sha512-IWUqXFfXuBDsrisAuPPr0jcVelgg+qljoToukWW9XE2socZmwdWZIjcFM3TYWS0sS28Stj2JFp/pGiu7oR8JGQ==", "requires": { "@svgr/webpack": "^4.3.3", "array-move": "^2.1.0", @@ -20182,9 +20187,9 @@ } }, "react-color": { - "version": "2.17.3", - "resolved": "https://registry.npmjs.org/react-color/-/react-color-2.17.3.tgz", - "integrity": "sha512-1dtO8LqAVotPIChlmo6kLtFS1FP89ll8/OiA8EcFRDR+ntcK+0ukJgByuIQHRtzvigf26dV5HklnxDIvhON9VQ==", + "version": "2.18.0", + "resolved": "https://registry.npmjs.org/react-color/-/react-color-2.18.0.tgz", + "integrity": "sha512-FyVeU1kQiSokWc8NPz22azl1ezLpJdUyTbWL0LPUpcuuYDrZ/Y1veOk9rRK5B3pMlyDGvTk4f4KJhlkIQNRjEA==", "requires": { "@icons/material": "^0.2.4", "lodash": "^4.17.11", @@ -20483,9 +20488,9 @@ } }, "react-sortable-hoc": { - "version": "1.10.1", - "resolved": "https://registry.npmjs.org/react-sortable-hoc/-/react-sortable-hoc-1.10.1.tgz", - "integrity": "sha512-eVyv5rrK6qY9bG60bboRY78In7OpdRRg+hxp4QMLIjC/UJaFSU7exTYd0764GtXvBqh+b+faYGzren5/ffRYKw==", + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/react-sortable-hoc/-/react-sortable-hoc-1.11.0.tgz", + "integrity": "sha512-v1CDCvdfoR3zLGNp6qsBa4J1BWMEVH25+UKxF/RvQRh+mrB+emqtVHMgZ+WreUiKJoEaiwYoScaueIKhMVBHUg==", "requires": { "@babel/runtime": "^7.2.0", "invariant": "^2.2.4", @@ -22583,9 +22588,9 @@ } }, "svg-parser": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/svg-parser/-/svg-parser-2.0.2.tgz", - "integrity": "sha512-1gtApepKFweigFZj3sGO8KT8LvVZK8io146EzXrpVuWCDAbISz/yMucco3hWTkpZNoPabM+dnMOpy6Swue68Zg==" + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/svg-parser/-/svg-parser-2.0.3.tgz", + "integrity": "sha512-fnCWiifNhK8i2Z7b9R5tbNahpxrRdAaQbnoxKlT2KrSCj9Kq/yBSgulCRgBJRhy1dPnSY5slg5ehPUnzpEcHlg==" }, "svgo": { "version": "0.7.2", diff --git a/package.json b/package.json index ef26488..55133db 100644 --- a/package.json +++ b/package.json @@ -92,7 +92,7 @@ "keen-analysis": "^3.4.0", "keen-dataviz": "^3.13.7", "keen-explorer": "^6.0.19", - "keen-theme-builder": "^1.0.26", + "keen-theme-builder": "^1.0.28", "lodash": "^4.17.11", "prettier": "^1.18.2", "prismjs": "^1.17.1", From add32b941d13c115e4bf998defebd5269543451a Mon Sep 17 00:00:00 2001 From: Artur Pryka Date: Mon, 20 Jan 2020 10:11:17 +0100 Subject: [PATCH 03/15] 1.5.10 --- dist/main.min.js | 1033 +++++++-------- dist/style.css | 4 +- dist/style.min.css | 2 +- dist/viewer.min.js | 3103 ++++++++++++++++++++++---------------------- package-lock.json | 2 +- package.json | 2 +- 6 files changed, 2038 insertions(+), 2108 deletions(-) diff --git a/dist/main.min.js b/dist/main.min.js index c2a0e8d..7897ebf 100644 --- a/dist/main.min.js +++ b/dist/main.min.js @@ -26828,12 +26828,11 @@ u = s[1], l = Le(Object(r.useState)(!1), 2), f = l[0], - d = l[1], - p = null; + d = l[1]; Object(r.useEffect)(function() { n ? u({ hex: n }) : i && u({ hex: i }); }, []); - var h = { + var p = { input: { border: 'none', outline: 'none', @@ -26842,14 +26841,11 @@ label: { display: 'none' }, color: { background: ''.concat(c.hex) } }, - g = function() { + h = function() { d(!1); }, - m = function(e) { - clearTimeout(p), - (p = setTimeout(function() { - e.hex ? (u(e), a(e, t)) : u({ hex: n }); - }, 500)); + g = function(e) { + e.hex ? (u(e), a(e, t)) : u({ hex: n }); }; return o.a.createElement( 'div', @@ -26867,52 +26863,52 @@ 'div', { className: 'custom-color-picker__swatch', - style: h.swatch, + style: p.swatch, onClick: function() { d(!f); } }, o.a.createElement('div', { className: 'custom-color-picker__color', - style: h.color + style: p.color }) ), o.a.createElement(Ce.EditableInput, { - style: h, + style: p, label: 'hex', value: c.hex === ue ? 'AUTO' : c.hex, - onChange: m + onChange: g }), f ? o.a.createElement( 'div', { className: 'custom-color-picker__popover', - style: h.popover + style: p.popover }, o.a.createElement('div', { className: 'custom-color-picker__cover', - style: h.cover, - onClick: g + style: p.cover, + onClick: h }), o.a.createElement( 'button', { className: 'btn btn__small btn-reset', onClick: function() { - m({ hex: i || ue }); + g({ hex: i || ue }); } }, 'Auto' ), o.a.createElement( 'button', - { className: 'btn-close', onClick: g }, + { className: 'btn-close', onClick: h }, '×' ), o.a.createElement(_.SketchPicker, { color: c, - onChange: m, + onChange: g, disableAlpha: !0 }) ) @@ -27283,8 +27279,7 @@ 'children', 'label' ]), - p = null, - h = (function(e, t) { + p = (function(e, t) { return ( (function(e) { if (Array.isArray(e)) return e; @@ -27319,18 +27314,20 @@ })() ); })(Object(r.useState)(u), 2), - g = h[0], - m = h[1]; + h = p[0], + g = p[1]; Object(r.useEffect)( function() { - p && clearTimeout(p), - (p = setTimeout(function() { - a(g); - }, 500)); + var e = setTimeout(function() { + a(h); + }, 500); + return function() { + return clearTimeout(e); + }; }, - [g] + [h] ); - var b = s + var m = s ? 'form-input__input '.concat(s) : 'form-input__input'; return o.a.createElement( @@ -27350,10 +27347,10 @@ type: n, placeholder: i, onChange: function(e) { - e.persist(), m(e.target.value); + e.persist(), g(e.target.value); }, - value: g, - className: b, + value: h, + className: m, style: l && { border: 'solid 1px red' } }, d @@ -27481,7 +27478,6 @@ '\n ', '\n ', '\n ', - '\n ', '\n }\n ', ' .keen-dataviz .c3-chart-lines .c3-shape.c3-line {\n ', '\n }\n ', @@ -27523,7 +27519,6 @@ '\n ', '\n ', '\n ', - '\n ', '\n }\n ' ]); return ( @@ -27601,118 +27596,106 @@ e ); } - var ct = function(e) { - switch (e) { - case 'left': - return 'end'; - case 'right': - return 'start'; - default: - return 'middle'; - } - }; - function ut(e) { + function ct(e) { return { chartBackground: e.appearance_background ? 'background-color: '.concat(e.appearance_background, ';') - : 'background-color: inherit;', + : '', chartBorder: e.appearance_border ? 'border-color: '.concat(e.appearance_border, ';') - : 'border-color: inherit;', + : '', chartFont: e.appearance_font_family ? 'font-family: "'.concat(e.appearance_font_family, '";') - : 'font-family: inherit;', + : '', chartFontSize: 'auto' !== e.appearance_font_size ? 'font-size: '.concat(e.appearance_font_size, 'px;') - : 'font-size: inherit;', + : '', chartFontBold: e.appearance_font_bold ? 'font-weight: bold;' - : 'font-weight: inherit;', + : '', chartFontItalic: e.appearance_font_italic ? 'font-style: italic;' - : 'font-style: inherit;', + : '', chartColor: e.appearance_color ? 'color: '.concat(e.appearance_color, ';') - : 'color: inherit;', + : '', titleTextAlign: 'text-align: '.concat(e.title_textAlign, ';'), titleColor: e.title_color ? 'color: '.concat(e.title_color, ';') - : 'color: inherit;', + : '', titleFontFamily: e.title_font_family ? 'font-family: "'.concat(e.title_font_family, '";') - : 'font-family: inherit;', + : '', titleFontSize: 'auto' !== e.title_font_size ? 'font-size: '.concat(e.title_font_size, 'px;') - : 'font-size: inherit;', - titleFontBold: e.title_font_bold - ? 'font-weight: bold;' - : 'font-weight: inherit;', + : '', + titleFontBold: e.title_font_bold ? 'font-weight: bold;' : '', titleFontItalic: e.title_font_italic ? 'font-style: italic;' - : 'font-style: inherit;', + : '', subtitleTextAlign: 'text-align: '.concat( e.subtitle_textAlign, ';' ), subtitleColor: e.subtitle_color ? 'color: '.concat(e.subtitle_color, ';') - : 'color: inherit;', + : '', subtitleFontFamily: e.subtitle_font_family ? 'font-family: "'.concat(e.subtitle_font_family, '";') - : 'font-family: inherit;', + : '', subtitleFontSize: 'auto' !== e.subtitle_font_size ? 'font-size: '.concat(e.subtitle_font_size, 'px;') - : 'font-size: inherit;', + : '', subtitleFontBold: e.subtitle_font_bold ? 'font-weight: bold;' - : 'font-weight: inherit;', + : '', subtitleFontItalic: e.subtitle_font_italic ? 'font-style: italic;' - : 'font-style: inherit;', + : '', axisYTitleFont: e.axis_vertical_title_font_family ? 'font-family: "'.concat( e.axis_vertical_title_font_family, '";' ) - : 'font-family: inherit;', + : '', axisYTitleFontSize: 'auto' !== e.axis_vertical_title_font_size ? 'font-size: '.concat( e.axis_vertical_title_font_size, 'px;' ) - : 'font-size: inherit;', + : '', axisYTitleFontBold: e.axis_vertical_title_font_bold ? 'font-weight: bold;' - : 'font-weight: inherit;', + : '', axisYTitleFontItalic: e.axis_vertical_title_font_italic ? 'font-style: italic;' - : 'font-style: inherit;', + : '', axisYTitleColor: e.axis_vertical_title_color ? 'fill: '.concat(e.axis_vertical_title_color, ';') - : 'fill: inherit;', + : '', axisYLabelFont: e.axis_vertical_label_font_family ? 'font-family: "'.concat( e.axis_vertical_label_font_family, '";' ) - : 'font-family: inherit;', + : '', axisYLabelFontSize: 'auto' !== e.axis_vertical_label_font_size ? 'font-size: '.concat( e.axis_vertical_label_font_size, 'px;' ) - : 'font-size: inherit;', + : '', axisYLabelFontBold: e.axis_vertical_label_font_bold ? 'font-weight: bold;' - : 'font-weight: inherit;', + : '', axisYLabelFontItalic: e.axis_vertical_label_font_italic ? 'font-style: italic;' - : 'font-style: inherit;', + : '', axisYLabelColor: e.axis_vertical_label_color ? 'fill: '.concat(e.axis_vertical_label_color, ';') : 'fill: inherit;', @@ -27721,110 +27704,106 @@ e.axis_horizontal_title_font_family, '";' ) - : 'font-family: inherit;', + : '', axisXTitleFontSize: 'auto' !== e.axis_horizontal_title_font_size ? 'font-size: '.concat( e.axis_horizontal_title_font_size, 'px;' ) - : 'font-size: inherit;', + : '', axisXTitleFontBold: e.axis_horizontal_title_font_bold ? 'font-weight: bold;' - : 'font-weight: inherit;', + : '', axisXTitleFontItalic: e.axis_horizontal_title_font_italic ? 'font-style: italic;' - : 'font-style: inherit;', + : '', axisXTitleColor: e.axis_horizontal_title_color ? 'fill: '.concat(e.axis_horizontal_title_color, ';') - : 'fill: inherit;', + : '', axisXLabelFont: e.axis_horizontal_label_font_family ? 'font-family: "'.concat( e.axis_horizontal_label_font_family, '";' ) - : 'font-family: inherit;', + : '', axisXLabelFontSize: 'auto' !== e.axis_horizontal_label_font_size ? 'font-size: '.concat( e.axis_horizontal_label_font_size, 'px;' ) - : 'font-size: inherit;', + : '', axisXLabelFontBold: e.axis_horizontal_label_font_bold ? 'font-weight: bold;' - : 'font-weight: inherit;', + : '', axisXLabelFontItalic: e.axis_horizontal_label_font_italic ? 'font-style: italic;' - : 'font-style: inherit;', + : '', axisXLabelColor: e.axis_horizontal_label_color ? 'fill: '.concat(e.axis_horizontal_label_color, ';') - : 'fill: inherit;', + : '', legendFont: e.legend_font_family ? 'font-family: "'.concat(e.legend_font_family, '";') - : 'font-family: inherit;', + : '', legendFontSize: 'auto' !== e.legend_font_size ? 'font-size: '.concat(e.legend_font_size, 'px;') - : 'font-size: inherit;', + : '', legendFontBold: e.legend_font_bold ? 'font-weight: bold;' - : 'font-weight: inherit;', + : '', legendFontItalic: e.legend_font_italic ? 'font-style: italic;' - : 'font-style: inherit;', + : '', legendColor: e.legend_color ? 'color: '.concat(e.legend_color, ';') - : 'color: inherit;', + : '', gridLineShow: e.grid_show ? 'stroke-opacity: 1;' : 'stroke-opacity: 0;', gridLineColor: e.grid_lines_color ? 'stroke: '.concat(e.grid_lines_color) - : 'stroke: inherit;', + : '', subgridLineColor: e.subgrid_lines_color ? 'stroke: '.concat(e.subgrid_lines_count) - : 'stroke: inherit;', + : '', seriesLabelFont: e.series_label_font_family ? 'font-family: "'.concat(e.series_label_font_family, '";') - : 'font-family: inherit;', + : '', seriesLabelFontSize: 'auto' !== e.series_label_font_size ? 'font-size: '.concat(e.series_label_font_size, 'px;') - : 'font-size: inherit;', + : '', seriesLabelFontBold: e.series_label_font_bold ? 'font-weight: bold;' - : 'font-weight: inherit;', + : '', seriesLabelFontItalic: e.series_label_font_italic ? 'font-style: italic;' - : 'font-style: inherit;', + : '', seriesLabelColor: e.series_label_color ? 'fill: '.concat(e.series_label_color, ' !important;') - : 'fill: inherit;', - seriesLabelTextAlign: 'text-anchor: '.concat( - ct(e.series_label_textAlign), - ' !important;' - ), + : '', seriesLineThickness: 'stroke-width: '.concat( e.series_line, 'px;' ), tooltipFont: e.tooltip_font_family ? 'font-family: "'.concat(e.tooltip_font_family, '";') - : 'font-family: inherit;', + : '', tooltipFontSize: 'auto' !== e.tooltip_font_size ? 'font-size: '.concat(e.tooltip_font_size, 'px;') - : 'font-size: inherit;', + : '', tooltipFontBold: e.tooltip_font_bold ? 'font-weight: bold;' - : 'font-weight: inherit;', + : '', tooltipFontItalic: e.tooltip_font_italic ? 'font-style: italic;' - : 'font-style: inherit;', + : '', tooltipColor: e.tooltip_color ? 'color: '.concat(e.tooltip_color, ';') - : 'color: inherit;', + : '', tooltipBackground: e.tooltip_background ? 'background-color: '.concat(e.tooltip_background, ';') : '', @@ -27834,79 +27813,75 @@ : '', tableHeaderFont: e.table_header_font_family ? 'font-family: "'.concat(e.table_header_font_family, '";') - : 'font-family: inherit;', + : '', tableHeaderFontSize: 'auto' !== e.table_header_font_size ? 'font-size: '.concat(e.table_header_font_size, 'px;') - : 'font-size: inherit;', + : '', tableHeaderFontBold: e.table_header_font_bold ? 'font-weight: bold;' - : 'font-weight: inherit;', + : '', tableHeaderFontItalic: e.table_header_font_italic ? 'font-style: italic;' - : 'font-style: inherit;', + : '', tableHeaderTextAlign: 'text-align: '.concat( e.table_header_textAlign, ';' ), tableHeaderColor: e.table_header_color ? 'color: '.concat(e.table_header_color, ';') - : 'color: inherit;', + : '', tableBodyFont: e.table_body_font_family ? 'font-family: "'.concat(e.table_body_font_family, '";') - : 'font-family: inherit;', + : '', tableBodyFontSize: 'auto' !== e.table_body_font_size ? 'font-size: '.concat(e.table_body_font_size, 'px;') - : 'font-size: inherit;', + : '', tableBodyFontBold: e.table_body_font_bold ? 'font-weight: bold;' - : 'font-weight: inherit;', + : '', tableBodyFontItalic: e.table_body_font_italic ? 'font-style: italic;' - : 'font-style: inherit;', + : '', tableBodyTextAlign: 'text-align: '.concat( e.table_body_textAlign, ';' ), tableBodyColor: e.table_body_color ? 'color: '.concat(e.table_body_color, ';') - : 'color: inherit;', + : '', tableBodyRowAltBackground: e.table_body_row_alternate_color ? 'background-color: '.concat( e.table_body_row_alternate_color, ';' ) - : 'background-color: inherit;', + : '', tableBodyRowHoverBackground: e.table_body_row_hover_background ? 'background-color: '.concat( e.table_body_row_hover_background, ';' ) - : 'background-color: inherit;', - funnelLabelTextAlign: 'text-anchor: '.concat( - ct(e.funnel_label_textAlign), - ' !important;' - ), + : '', funnelLabelColor: e.funnel_label_color ? 'fill: '.concat(e.funnel_label_color, ';') - : 'fill: inherit;', + : '', funnelLabelFontFamily: e.funnel_label_font_family ? 'font-family: "'.concat(e.funnel_label_font_family, '";') - : 'font-family: inherit;', + : '', funnelLabelFontSize: 'auto' !== e.funnel_label_font_size ? 'font-size: '.concat(e.funnel_label_font_size, 'px;') - : 'font-size: inherit;', + : '', funnelLabelFontBold: e.funnel_label_font_bold ? 'font-weight: bold;' - : 'font-weight: inherit;', + : '', funnelLabelFontItalic: e.funnel_label_font_italic ? 'font-style: italic;' - : 'font-style: inherit;' + : '' }; } - function lt(e) { + function ut(e) { var t = {}, n = Z.map(function(e) { return e.value; @@ -27942,7 +27917,7 @@ t ); } - function ft() { + function lt() { for ( var e = arguments.length > 0 && void 0 !== arguments[0] @@ -27967,7 +27942,7 @@ ); } } - function dt(e) { + function ft(e) { for ( var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), @@ -27981,14 +27956,14 @@ var o = at({}, e); return ( n.forEach(function(e) { - o = at({}, dt(o, e)); + o = at({}, ft(o, e)); }), o ); } switch (n[0]) { case 'axis': - return ft( + return lt( e, 'axis_vertical_title_show', 'axis_vertical_title_text', @@ -28020,7 +27995,7 @@ 'axis_horizontal_label_font_italic' ); case 'legend': - return ft( + return lt( e, 'legend_show', 'legend_color', @@ -28033,7 +28008,7 @@ 'legend_position_vertical' ); case 'grid': - return ft( + return lt( e, 'grid_show', 'grid_lines_color', @@ -28043,7 +28018,7 @@ 'subgrid_lines_count' ); case 'series': - return ft( + return lt( e, 'series_label_show', 'series_label_textAlign', @@ -28058,7 +28033,7 @@ 'series_points_size' ); case 'tooltip': - return ft( + return lt( e, 'tooltip_color', 'tooltip_font_family', @@ -28069,7 +28044,7 @@ 'tooltip_border' ); case 'table': - return ft( + return lt( e, 'table_pagination_show', 'table_pagination_limit', @@ -28091,7 +28066,7 @@ 'table_body_row_hover_background' ); case 'funnel': - return ft( + return lt( e, 'funnel_lines', 'funnel_results', @@ -28114,9 +28089,10 @@ } } } - function pt(e, t) { - var n = ut(e), - r = t ? '#'.concat(t) : '.keen-theme-builder'; + function dt(e, t) { + var n = ct(e), + r = t ? '#'.concat(t) : '.keen-theme-builder', + o = new RegExp(/(^[ \t]*\n)/, 'gm'); return Object(tt.stripIndent)( rt(), r, @@ -28186,7 +28162,6 @@ n.seriesLabelFontSize, n.seriesLabelFontBold, n.seriesLabelFontItalic, - n.seriesLabelTextAlign, n.seriesLabelColor, r, n.seriesLineThickness, @@ -28225,14 +28200,13 @@ n.tableBodyRowHoverBackground, r, n.funnelLabelColor, - n.funnelLabelTextAlign, n.funnelLabelFontFamily, n.funnelLabelFontSize, n.funnelLabelFontBold, n.funnelLabelFontItalic - ); + ).replace(o, ''); } - function ht(e, t) { + function pt(e, t) { var n, r = e.colors || [], o = !(!e.title_show || !e.title_text) && e.title_text, @@ -28251,7 +28225,7 @@ alignment: a } : { show: e.legend_show }, - c = lt(e), + c = ut(e), u = e.series_points_show ? { show: e.series_points_show, r: e.series_points_size } : { show: e.series_points_show }, @@ -28349,7 +28323,7 @@ $e.a.registerLanguage('css', Je.a), $e.a.registerLanguage('js', et.a), (document.createElement('li').className = 'placeholder'); - var gt = function(e) { + var ht = function(e) { var t = e.type, n = e.data, r = @@ -28379,7 +28353,7 @@ (o[n] = e[n])); } })(e, ['type', 'data']), - 'js' === t ? ht(n) : pt(n)); + 'js' === t ? pt(n) : dt(n)); return o.a.createElement( o.a.Fragment, null, @@ -28411,16 +28385,16 @@ }) ); }, - mt = gt; - (gt.defaultProps = { type: 'js', data: {} }), - (gt.propTypes = { + gt = ht; + (ht.defaultProps = { type: 'js', data: {} }), + (ht.propTypes = { type: a.a.oneOf(['js', 'css']).isRequired, data: a.a.object.isRequired }); - var bt = n(14), - yt = n.n(bt); - function vt() { - return (vt = + var mt = n(14), + bt = n.n(mt); + function yt() { + return (yt = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { @@ -28432,7 +28406,7 @@ return e; }).apply(this, arguments); } - var _t = function(e) { + var vt = function(e) { var t, n = e.type, r = e.colors, @@ -28522,7 +28496,7 @@ ? o.a.createElement( 'div', { className: 'builder__default-charts' }, - o.a.createElement(yt.a, { + o.a.createElement(bt.a, { type: 'bar', title: l, subtitle: f, @@ -28535,7 +28509,7 @@ stacked: w, results: H.bar }), - o.a.createElement(yt.a, { + o.a.createElement(bt.a, { type: 'area', title: l, subtitle: f, @@ -28548,7 +28522,7 @@ stacked: w, results: H.area }), - o.a.createElement(yt.a, { + o.a.createElement(bt.a, { type: 'funnel-3d', title: l, subtitle: f, @@ -28560,8 +28534,8 @@ results: H['funnel-3d'] }), o.a.createElement( - yt.a, - vt( + bt.a, + yt( { type: 'donut', title: l, @@ -28578,8 +28552,8 @@ ) ) : o.a.createElement( - yt.a, - vt( + bt.a, + yt( { type: n, title: l, @@ -28607,9 +28581,9 @@ ) ); }, - wt = _t; - function xt(e) { - return (xt = + _t = vt; + function wt(e) { + return (wt = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { @@ -28624,7 +28598,7 @@ : typeof e; })(e); } - function Mt(e) { + function xt(e) { return ( (function(e) { if (Array.isArray(e)) { @@ -28651,7 +28625,7 @@ })() ); } - function kt(e, t) { + function Mt(e, t) { if (null == e) return {}; var n, r, @@ -28675,7 +28649,7 @@ } return o; } - function St(e) { + function kt(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}, r = Object.keys(n); @@ -28686,12 +28660,12 @@ }) )), r.forEach(function(t) { - Ot(e, t, n[t]); + St(e, t, n[t]); }); } return e; } - function Ot(e, t, n) { + function St(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { @@ -28704,7 +28678,7 @@ e ); } - function Et(e, t) { + function Ot(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -28713,28 +28687,28 @@ Object.defineProperty(e, r.key, r); } } - function At(e) { - return (At = Object.setPrototypeOf + function Et(e) { + return (Et = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function Tt(e, t) { - return (Tt = + function At(e, t) { + return (At = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; })(e, t); } - (_t.propTypes = { + (vt.propTypes = { type: a.a.string.isRequired, colors: a.a.array.isRequired }), n(232), n(234), n(236); - var Ct = (function(e) { + var Tt = (function(e) { function t(e) { var n; !(function(e, t) { @@ -28743,7 +28717,7 @@ })(this, t), ((n = (function(e, t) { return !t || - ('object' !== xt(t) && 'function' != typeof t) + ('object' !== wt(t) && 'function' != typeof t) ? (function(e) { if (void 0 === e) throw new ReferenceError( @@ -28754,7 +28728,7 @@ : t; })( this, - At(t).call(this, e) + Et(t).call(this, e) )).handleChartTypeChange = function(e) { e.value && n.setState({ chart: e.value, isModified: !0 }); }), @@ -28870,11 +28844,11 @@ case 'area-spline': case 'step': case 'area-step': - return at({}, dt(de, 'table', 'funnel')); + return at({}, ft(de, 'table', 'funnel')); case 'table': return at( {}, - dt( + ft( de, 'axis', 'legend', @@ -28887,7 +28861,7 @@ case 'metric': return at( {}, - dt( + ft( de, 'axis', 'legend', @@ -28903,19 +28877,19 @@ case 'gauge': return at( {}, - dt(de, 'axis', 'grid', 'table', 'funnel'), + ft(de, 'axis', 'grid', 'table', 'funnel'), { series_label_show: !0 } ); case 'gauge': return at( {}, - dt(de, 'axis', 'grid', 'legend', 'table', 'funnel') + ft(de, 'axis', 'grid', 'legend', 'table', 'funnel') ); case 'heatmap': case 'choropleth': return at( {}, - dt( + ft( de, 'axis', 'series', @@ -28931,7 +28905,7 @@ case 'horizontal-funnel-3d': return at( {}, - dt( + ft( de, 'series', 'legend', @@ -28946,7 +28920,7 @@ } })(void 0 === r ? '' : r); return ( - (n.state = St({}, i, e.options, { isModified: !1 })), n + (n.state = kt({}, i, e.options, { isModified: !1 })), n ); } var n, r; @@ -28959,7 +28933,7 @@ (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } })), - t && Tt(e, t); + t && At(e, t); })(t, e), (n = t), (r = [ @@ -28992,19 +28966,19 @@ var n = this; f()(e, this.props) || this.setState(function(e) { - return St({}, e, n.props.options); + return kt({}, e, n.props.options); }); var r = this.state, o = (r.fonts, r.isModified), - i = kt(r, ['fonts', 'isModified']), + i = Mt(r, ['fonts', 'isModified']), a = (t.fonts, t.isModified, - kt(t, ['fonts', 'isModified'])), + Mt(t, ['fonts', 'isModified'])), s = this.props, c = s.isDashboardBuilderActive, u = (s.containerId, s.onChange), - l = c ? { theme: i, options: ht(i, !0) } : i; + l = c ? { theme: i, options: pt(i, !0) } : i; o && !f()(i, a) && u && this.props.onChange(l); } }, @@ -29024,7 +28998,7 @@ value: function() { this.setState(function(e) { return { - colors: [].concat(Mt(e.colors), ['#222222']), + colors: [].concat(xt(e.colors), ['#222222']), isModified: !0 }; }); @@ -29034,7 +29008,7 @@ key: 'removeItem', value: function(e) { this.setState(function(t) { - var n = Mt(t.colors); + var n = xt(t.colors); return n.splice(e, 1), { colors: n, isModified: !0 }; }); } @@ -29043,7 +29017,7 @@ key: 'onColorChange', value: function(e, t) { this.setState(function(n) { - var r = Mt(n.colors); + var r = xt(n.colors); return (r[t] = e), { colors: r, isModified: !0 }; }); } @@ -29077,10 +29051,10 @@ key: 'handleTextStateUpdate', value: function(e, t) { this.setState(function(n) { - return St( + return kt( {}, n, - Ot({ isModified: !0 }, e, t !== ue ? t : '') + St({ isModified: !0 }, e, t !== ue ? t : '') ); }); } @@ -29464,7 +29438,7 @@ this.renderFontStyle( 'Labels format', 'series_label', - !0 + !1 ) ); } @@ -30501,7 +30475,7 @@ this.renderFontStyle( 'Label format', 'funnel_label', - !0 + !1 ), o.a.createElement( We, @@ -30624,7 +30598,7 @@ { key: 'renderTabChart', value: function() { - var e = ut(this.state), + var e = ct(this.state), t = !( !this.state.title_show || !this.state.title_text @@ -30692,13 +30666,13 @@ return o.a.createElement( o.a.Fragment, null, - o.a.createElement(wt, { + o.a.createElement(_t, { type: this.state.chart, colors: this.state.colors, legend: i, title: t, subtitle: n, - axis: lt(this.state), + axis: ut(this.state), data: a, point: s, prefix: c, @@ -30713,7 +30687,7 @@ o.a.createElement( m.a, { - id: '525159873', + id: '2022330400', dynamic: [ e.chartBackground, e.chartBorder, @@ -30761,7 +30735,6 @@ e.seriesLabelFontSize, e.seriesLabelFontBold, e.seriesLabelFontItalic, - e.seriesLabelTextAlign, e.seriesLabelColor, e.seriesLineThickness, e.tooltipFont, @@ -30791,7 +30764,6 @@ e.tableBodyRowAltBackground, e.tableBodyRowHoverBackground, e.funnelLabelColor, - e.funnelLabelTextAlign, e.funnelLabelFontFamily, e.funnelLabelFontSize, e.funnelLabelFontBold, @@ -30863,7 +30835,6 @@ .concat(e.seriesLabelFontSize, ' ') .concat(e.seriesLabelFontBold, ' ') .concat(e.seriesLabelFontItalic, ' ') - .concat(e.seriesLabelTextAlign, ' ') .concat(e.seriesLabelColor, ';}'), '.keen-theme-builder .keen-dataviz .c3-chart-lines .c3-shape.c3-line{'.concat( e.seriesLineThickness, @@ -30907,7 +30878,6 @@ ), '.keen-theme-builder .keen-dataviz-rendering .text-label{display:block;' .concat(e.funnelLabelColor, ' ') - .concat(e.funnelLabelTextAlign, ' ') .concat(e.funnelLabelFontFamily, ' ') .concat(e.funnelLabelFontSize, ' ') .concat(e.funnelLabelFontBold, ' ') @@ -30947,7 +30917,7 @@ o.a.createElement( d.TabPanel, null, - o.a.createElement(mt, { + o.a.createElement(gt, { data: this.state, type: 'css' }) @@ -30955,7 +30925,7 @@ o.a.createElement( d.TabPanel, null, - o.a.createElement(mt, { + o.a.createElement(gt, { data: this.state, type: 'js' }) @@ -30979,26 +30949,26 @@ ); } } - ]) && Et(n.prototype, r), + ]) && Ot(n.prototype, r), t ); })(r.PureComponent); - (Ct.propTypes = { + (Tt.propTypes = { options: a.a.object.isRequired, isDashboardBuilderActive: a.a.bool, onChange: a.a.func.isRequired }), - (Ct.defaultProps = { + (Tt.defaultProps = { options: de, isDashboardBuilderActive: !1, onChange: function() {} }), n.d(t, 'getStyles', function() { - return Lt; + return Ct; }), - (t.default = Ct); - var Lt = function(e, t) { - return pt(e, t); + (t.default = Tt); + var Ct = function(e, t) { + return dt(e, t); }; } ]))); @@ -52829,36 +52799,39 @@ object-assign ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(n, t), - o(n, [ - { - key: 'componentWillReceiveProps', - value: function(e) { - this.setState( - r({}, c.default.toState(e.color, this.state.oldHue)) - ); - } - }, - { - key: 'render', - value: function() { - var t = {}; - return ( - this.props.onSwatchHover && - (t.onSwatchHover = this.handleSwatchHover), - a.default.createElement( - e, - r( - {}, - this.props, - this.state, - { onChange: this.handleChange }, - t + o( + n, + [ + { + key: 'render', + value: function() { + var t = {}; + return ( + this.props.onSwatchHover && + (t.onSwatchHover = this.handleSwatchHover), + a.default.createElement( + e, + r( + {}, + this.props, + this.state, + { onChange: this.handleChange }, + t + ) ) - ) - ); + ); + } } - } - ]), + ], + [ + { + key: 'getDerivedStateFromProps', + value: function(e, t) { + return r({}, c.default.toState(e.color, t.oldHue)); + } + } + ] + ), n ); })(i.PureComponent || i.Component); @@ -142504,7 +142477,7 @@ object-assign function(e, t, n) { (e.exports = n(64)(!1)).push([ e.i, - 'body{margin:0}.dashboard-builder{width:100%;margin:0;height:100vh;position:relative;display:flex;justify-content:center;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;background:#f9f9f9;color:#000;overflow:hidden;box-sizing:border-box}.dashboard-builder.container{width:1200px;min-height:100vh;display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start;justify-content:flex-start;background:#f5f5f5}.dashboard-builder .dashboard{position:relative;width:100%;min-height:calc(100vh - 130px);padding:20px;box-sizing:border-box}.dashboard-builder .dashboard-container{width:100%;overflow:auto;padding-left:60px}.dashboard-builder .dashboard-container-viewer{width:100%;overflow:auto}.dashboard-builder .dashboard-container-viewer .dashboard-top-bar{width:100%;z-index:11}.dashboard-builder .dashboard-container-viewer .dashboard-top-bar .export-icon{margin:0 1rem}.dashboard-builder .dashboard-inner-container{background:#fdfdfd;margin:auto}.dashboard-builder .dashboard-title{height:60px;width:100%;position:relative;display:flex;align-items:center;justify-content:space-between;padding:.5rem}.dashboard-builder .dashboard-title input{border:0;background:inherit;width:100%;font-size:30px;outline:none;padding:5px 5px 5px 0}.dashboard-builder .dashboard-title .title{padding:20px}.dashboard-builder .dashboard-title a{text-decoration:none}.dashboard-builder .dashboard-top-bar{height:50px;width:100%;background:#f9f9f9;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;position:sticky;top:0;left:0;z-index:8}.dashboard-builder .dashboard-top-bar .share{position:relative}.dashboard-builder .dashboard-top-bar .embed,.dashboard-builder .dashboard-top-bar .share{padding:10px;cursor:pointer}.dashboard-builder .dashboard-list-item{width:20%;min-width:180px;height:200px;padding:10px;position:relative}.dashboard-builder .dashboard-list-item:hover>.dashboard-list-item-buttons{visibility:visible}.dashboard-builder .dashboard-list-item-box{background:#fff;display:flex;justify-content:center;align-items:center;border:1px solid #eee;border-radius:5px;width:100%;height:100%;transition:box-shadow .3s;color:#000;padding:10px;text-align:center}.dashboard-builder .dashboard-list-item-box:hover{box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23)}.dashboard-builder .dashboard-list-item-box time{position:absolute;bottom:15px;left:20px;color:#aaa;font-size:12px}.dashboard-builder .dashboard-list-item-buttons{position:absolute;top:15px;right:15px;cursor:pointer;visibility:hidden}.dashboard-builder .dashboard-saved-message{position:absolute;top:.5rem;left:45%;padding:.5rem 1rem;border-radius:5px;background:#333;color:#fff;font-size:.85rem;z-index:10}.dashboard-builder .dashboard img{width:100%;height:100%}.dashboard-builder .toolbar{position:absolute;left:0;top:0;width:60px;height:100%;z-index:9}.dashboard-builder .toolbar-bar{width:100%;height:100%;position:relative;z-index:6;border-right:1px solid #929191;padding:20px;background:#2f97b9;color:#fff;cursor:pointer}.dashboard-builder .toolbar-bar h3{transform:translateY(100%) rotate(-90deg);transform-origin:0 0;white-space:nowrap;overflow:hidden;position:absolute;top:110px;left:15px;color:#fff}.dashboard-builder .toolbar-container{position:absolute;left:-135px;height:100%;border-right:1px solid #929191;background:#fff;box-shadow:3px 3px 6px #eee;border-right:0;overflow-y:auto;transition:left .25s ease-out}.dashboard-builder .toolbar-hidden{width:90px;display:flex;flex-direction:row;flex-wrap:wrap;padding:10px 10px 10px 20px}.dashboard-builder .toolbar-hidden>h4{font-size:.7rem;width:100%;margin:2rem 0 .5rem;font-weight:400;text-transform:uppercase}.dashboard-builder .toolbar-hidden>h4:first-of-type{margin-top:1rem}.dashboard-builder .toolbar-hidden p{cursor:pointer;z-index:5;margin:0;padding:5px;width:50px;height:50px;display:flex;align-items:center;justify-content:center;background:#fff}.dashboard-builder .toolbar-hidden .metric-chart-icon{font-size:20px;font-weight:600}.dashboard-builder .toolbar-visible{left:60px}.dashboard-builder .burger-icon{padding:0 20px;cursor:pointer;position:relative}.dashboard-builder .burger-icon .fa-bars{color:#2f97b9}.dashboard-builder .modal{display:block;position:absolute;background:#fff;border:1px solid #eee;border-radius:5px;z-index:10;top:0;left:20px;right:auto;bottom:auto;font-size:14px;width:250px;box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23)}.dashboard-builder .modal-header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:15px;border-bottom:1px solid #eee;font-size:17px}.dashboard-builder .modal-header .svg-inline--fa{cursor:pointer}.dashboard-builder .modal .dashboards-filter{padding:.25rem 1rem;border-bottom:1px solid #eee;display:flex;justify-content:space-between}.dashboard-builder .modal .dashboards-filter input{font-size:14px}.dashboard-builder .modal-body{padding:15px;max-height:300px;overflow:auto}.dashboard-builder .modal-body .item{padding:1rem;border-bottom:1px solid #eee;display:flex;flex-direction:column}.dashboard-builder .modal-body .item:hover{background:#f3f3f3}.dashboard-builder .modal-body .item .time{color:#aaa;font-size:12px}.dashboard-builder .modal-body .active{background:#f9f9f9}.dashboard-builder .modal-body .active .fa-angle-double-right{color:#2f97b9;padding-right:5px}.dashboard-builder .modal-body .modal-input{padding:8px 4px;margin-bottom:.5em;width:100%}.dashboard-builder .modal-body .prism{margin-bottom:40px;white-space:pre-wrap}.dashboard-builder .modal-button{border-radius:5px;padding:5px 15px;cursor:pointer;color:#fff;background:#2f97b9;border:none;font-size:14px}.dashboard-builder .modal-button .svg-inline--fa{margin-right:.25rem}.dashboard-builder .modal-footer{padding:10px}.dashboard-builder .modal-cover{width:100%;height:100%;opacity:.4;background:#000;position:absolute;top:0;left:0;z-index:9}.dashboard-builder .modal.share-dashboard{width:500px;top:50px;left:50%;transform:translateX(-50%)}.dashboard-builder .modal.embed-dashboard{width:75%;max-width:700px;top:50%;left:50%;transform:translate(-50%,-50%)}.dashboard-builder .modal.embed-dashboard .modal-button{position:fixed;bottom:15px;left:15px}.dashboard-builder .editor-dashboard-switch .modal-body{padding:0}.dashboard-builder .paragraph{padding:0 10px;overflow:hidden;width:100%}.dashboard-builder .paragraph p{margin:0}.dashboard-builder .chart-container{background:#fff;justify-content:center;align-items:center;position:absolute;border-radius:5px;display:flex;flex-direction:column;transition:box-shadow .3s;z-index:1}.dashboard-builder .chart-container:hover{box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23);z-index:7}.dashboard-builder .chart-container:hover .config-buttons,.dashboard-builder .chart-container:hover .resizers{visibility:visible}.dashboard-builder .chart-container img{border-radius:5px}.dashboard-builder .chart-container>.keen-dataviz{overflow:hidden;width:100%;margin-top:0;border:1px solid #eee}.dashboard-builder .chart-container .chart-title{height:30px;width:100%;border-bottom:0;display:flex;align-items:left;justify-content:left;z-index:3}.dashboard-builder .chart-container .chart-title input{border:0;background:inherit;outline:none;width:100%;text-align:left;font-size:14px;color:#222}.dashboard-builder .chart-container .chart-subtitle{height:25px;width:100%;border-bottom:0;display:flex;align-items:left;justify-content:left;z-index:3}.dashboard-builder .chart-container .chart-subtitle input{border:0;background:inherit;outline:none;width:100%;text-align:left;font-size:14px;color:#6f6f6f}.dashboard-builder .chart-container-viewer{background:#fff;justify-content:center;align-items:center;border-radius:5px;display:flex;flex-direction:column;transition:box-shadow .3s;z-index:1;position:relative}.dashboard-builder .chart-container-viewer .c3-tooltip-container{z-index:9}.dashboard-builder .chart-container-viewer:hover .explorer-button{visibility:visible}.dashboard-builder .chart-container-viewer img{border-radius:5px}.dashboard-builder .chart-container-viewer>.keen-dataviz{overflow:hidden;width:100%;margin-top:0;border:1px solid #eee}.dashboard-builder .chart-container-viewer .chart-title{height:30px;width:100%;border-bottom:0;display:flex;align-items:left;justify-content:left;z-index:3}.dashboard-builder .chart-container-viewer .chart-title input{border:0;background:inherit;outline:none;width:100%;text-align:left;font-size:14px;color:#222}.dashboard-builder .chart-container-viewer .chart-subtitle{height:25px;width:100%;border-bottom:0;display:flex;align-items:left;justify-content:left;z-index:3}.dashboard-builder .chart-container-viewer .chart-subtitle input{border:0;background:inherit;outline:none;width:100%;text-align:left;font-size:14px;color:#6f6f6f}.dashboard-builder .config-buttons{position:absolute;top:-1px;right:-35px;display:flex;flex-direction:column;visibility:hidden;padding-left:5px;opacity:1}.dashboard-builder .config-buttons div{cursor:pointer;width:30px;height:30px;background:#000;color:#fff;font-size:15px;box-sizing:border-box;margin-bottom:2px;display:flex;align-items:center;justify-content:center;opacity:.7;border-radius:3px}.dashboard-builder .config-buttons div:hover{background:#424242}.dashboard-builder .explorer-button{position:absolute;z-index:4;top:2px;right:2px;cursor:pointer;width:30px;height:30px;background:#000;color:#fff;box-sizing:border-box;opacity:.7;border-radius:3px;padding-left:8px;padding-top:2px;visibility:hidden}.dashboard-builder .explorer-button a{color:#fff}.dashboard-builder .explorer-button:hover{background:#424242}.dashboard-builder .resizers{position:absolute;height:100%;width:100%;border:1px dashed #7c7c7c;border-radius:5px;visibility:hidden}.dashboard-builder .resizers div{position:absolute}.dashboard-builder .top-left{left:0;top:0;cursor:nwse-resize;width:10px;height:10px;z-index:4}.dashboard-builder .top-right{right:0;top:0;cursor:nesw-resize;width:10px;height:10px;z-index:4}.dashboard-builder .bottom-left{left:0;bottom:0;cursor:nesw-resize;width:10px;height:10px;z-index:4}.dashboard-builder .bottom-right{right:1px;bottom:1px;cursor:nwse-resize;width:12px;height:12px;z-index:4;border-style:solid;border-width:0 0 12px 12px;border-color:transparent transparent #7c7c7c}.dashboard-builder .left{left:0}.dashboard-builder .left,.dashboard-builder .right{top:0;height:100%;width:5px;cursor:ew-resize;z-index:3}.dashboard-builder .right{right:0}.dashboard-builder .top{top:0}.dashboard-builder .bottom,.dashboard-builder .top{left:0;width:100%;height:5px;cursor:ns-resize;z-index:3}.dashboard-builder .bottom{bottom:0}.dashboard-builder .keen-dataviz-table th{z-index:0}.dashboard-builder .chart-draggable{position:absolute;left:10px;width:calc(100% - 20px);height:calc(100% - 20px);z-index:2;cursor:move}.dashboard-builder .search{width:65%;height:100%;display:flex;flex-direction:row;font-size:15px;align-items:center}.dashboard-builder .search svg{margin-right:10px}.dashboard-builder .search input{border:0;background:inherit;width:100%;height:100%;outline:none;font-size:20px}.dashboard-builder .sorting-select{width:200px;margin-top:15px}.dashboard-builder .screen-resize-icon{position:absolute;left:48%;width:100px;display:flex;justify-content:space-between;color:hsla(0,0%,44%,.65882);align-items:center}.dashboard-builder .screen-resize-icon svg{cursor:pointer}.dashboard-builder .screen-resize-icon svg:hover{color:#000}.dashboard-builder .save-dashboard-button{border-radius:5px;padding:5px;cursor:pointer;transition:.3s;width:80px;height:31px;margin-right:20px;margin-left:20px;text-align:center;color:#fff;background:#2f97b9;text-transform:uppercase}.dashboard-builder .save-dashboard-button svg{margin-right:.25rem}.dashboard-builder .settings{width:350px;background:#f3f7f9}.dashboard-builder .settings h4{margin-top:2rem;margin-bottom:.5rem;font-weight:400}.dashboard-builder .settings-input{color:#333;font-size:14px;height:38px}.dashboard-builder .settings-input,.dashboard-builder .settings-textarea{width:100%;border-radius:4px;padding:9px;border:1px solid #ccc;outline:none}.dashboard-builder .settings-textarea{color:gray;font-size:16px;height:50%}.dashboard-builder .settings-select>div{width:100%}.dashboard-builder .settings-chart{padding:0}.dashboard-builder .settings-chart-saved-query{padding:1rem}.dashboard-builder .settings-chart #dashboard-builder-explorer .keen-explorer .panel-main{min-width:0;max-width:330px;box-shadow:none}.dashboard-builder .settings-chart .keen-theme-builder{padding:0}.dashboard-builder .settings-chart .keen-theme-builder .builder__header{display:none}.dashboard-builder .settings-chart h4:first-child{margin-top:0}.dashboard-builder .react-tabs__tab{width:50%;padding:10px;text-align:center;cursor:pointer;color:#fff;outline:none;border:0;background:#2f97b9}.dashboard-builder .react-tabs__tab:first-of-type{border-right:none}.dashboard-builder .react-tabs__tab--selected{color:#000;border-bottom:none;background:#fff;border-top:1px solid #eee}.dashboard-builder .react-tabs__tab-list{display:flex;flex-direction:row;list-style:none;justify-content:space-between;padding:0;margin-bottom:0}.dashboard-builder .react-tabs__tab-panel{border:0}.dashboard-builder .react-tabs__tab-panel--selected{padding:10px 20px 20px;border:0;visibility:visible;height:calc(100vh - 40px);overflow-y:auto}.dashboard-builder .react-tabs__tab-panel--selected .keen-theme-builder{padding:0}.dashboard-builder .settings-container{min-width:350px;min-height:100%;background:#fff;border-left:1px solid #eee;position:relative;background:#f3f7f9;overflow:auto}.dashboard-builder .settings-container .color-palette__item .color-picker__popover{left:auto;right:0}.dashboard-builder .settings-container .color-palette__item:nth-child(5n+1) .color-picker__popover,.dashboard-builder .settings-container .color-palette__item:nth-child(5n+2) .color-picker__popover{left:0;right:auto}.dashboard-builder .settings-container .color-palette__item:nth-child(5n+3) .color-picker__popover{left:-100%;right:auto}.dashboard-builder .settings-container .color-palette__item:nth-child(5n+4) .color-picker__popover{left:auto;right:-100%}.dashboard-builder .new-dashboard-button{border-radius:5px;padding:1rem;cursor:pointer;color:#fff;background:#2f97b9;text-align:left;white-space:nowrap;display:flex;align-items:center}.dashboard-builder .new-dashboard-button:hover{color:#fff;background:#2f97b9}.dashboard-builder .new-dashboard-button svg{margin-right:.5rem}.dashboard-builder .container{width:1200px;background:#f5f5f5;min-height:100vh;display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start}.dashboard-builder .top-toolbar{flex:1 100%;padding:20px;display:flex;flex-direction:row;justify-content:space-between;width:100%;border-bottom:1px solid #cfcfcf}.dashboard-builder .message{width:100%;text-align:center;padding:20px}.dashboard-builder .new-chart-info,.dashboard-builder .settings-loading{position:absolute;width:100%;height:100%;display:flex;justify-content:center;align-items:center;background:hsla(0,0%,98%,.9);border-bottom-left-radius:5px;border-bottom-right-radius:5px}.dashboard-builder .settings-loading{top:0;left:0}.dashboard-builder .error-message{z-index:1;background:#fff;padding:20px;text-align:center;color:red;border:1px solid red;border-radius:5px}.dashboard-builder .dry-run-message{position:absolute;left:0;bottom:0;padding:1rem;background:hsla(0,0%,44%,.65882);color:#fff;border-radius:0 1rem 0 0}.dashboard-builder .select-palette-button select{margin-right:20px;border-radius:5px;padding:8px;width:100px;height:31px;background:#fff}.dashboard-builder .preview{padding:10px}.dashboard-builder .preview a{color:#000}.dashboard-builder .embed-icon:hover,.dashboard-builder .preview:hover a,.dashboard-builder .share-icon:hover{color:#414141}.dashboard-builder .quill{height:70%}.dashboard-builder .edit-dashboard-button{border-radius:5px;padding:5px 10px;cursor:pointer;width:fit-content;text-align:center;color:#fff;background:#2f97b9;text-decoration:none;flex-shrink:0;margin:0 0 0 .5em}.dashboard-builder .edit-dashboard-button__link{display:block;color:#fff;text-decoration:none}.dashboard-builder .edit-dashboard-button__link:hover{color:#fff;text-decoration:none}.dashboard-builder .big-icon{font-size:50px;color:#eee}.dashboard-builder .loading{font-size:50px;animation:a 1s ease infinite;z-index:12}.dashboard-builder .settings-theme-builder,.dashboard-builder .settings-theme-builder .keen-theme-builder{padding:0}.dashboard-builder .settings-theme-builder .keen-theme-builder .builder__header{display:none}.dashboard-builder .switch-dashboard{width:400px;z-index:9}.dashboard-builder .__react_component_tooltip{padding:3px 5px}.dashboard-builder .keen-theme-builder{background-color:#fff}.dashboard-builder .keen-theme-builder .color-picker__popover{z-index:9}.dashboard-builder .keen-theme-builder .builder__header{font-size:1rem}.dashboard-builder .heatmap-container .keen-dataviz-rendering-vertical{height:calc(100% - 50px)}.dashboard-builder .keen-dataviz .rangeable-container{margin:2rem auto;width:75%}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-progress,.dashboard-builder .keen-dataviz .rangeable-container .rangeable-track{height:4px}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-handle{width:16px;height:16px;border-width:4px}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-tooltip{border-radius:0;font-weight:400;padding:3px 9px}.dashboard-builder .c3-circle{fill:currentColor}@media only screen and (max-width:1300px){.dashboard-builder .dashboard{min-height:calc(100vh - 130px)}}@media only screen and (min-width:1800px){.dashboard-builder .toolbar-bar{visibility:hidden}.dashboard-builder .toolbar-container{left:0}.dashboard-builder .dashboard-container{padding-left:90px}}.dashboard-builder .export-icon{cursor:pointer}.dashboard-builder .switcher{margin-bottom:.5rem;display:block;position:relative;overflow:hidden}.dashboard-builder .switcher__input:checked~.switcher__toggle{border-color:#3ed08e;background-color:#dcf9eb}.dashboard-builder .switcher__input:checked~.switcher__toggle .switcher__switch{right:2px;background-color:#3ed08e}.dashboard-builder .switcher__input:checked~.switcher__value .on{display:block}.dashboard-builder .switcher__input:checked~.switcher__value .off{display:none}.dashboard-builder .switcher__toggle{position:relative;width:36px;height:20px;margin-right:.25rem;margin-left:.5rem;border:1px solid #ccc;background-color:#fff;border-radius:10px;display:inline-block}.dashboard-builder .switcher__switch{position:absolute;top:2px;bottom:0;right:18px;width:14px;height:14px;margin:0;background:#ccc;border-radius:50%;flex-shrink:0;transition:right .15s ease-in-out,background-color .15s ease-in-out}.dashboard-builder .switcher__title{font-weight:800}.dashboard-builder .switcher__label{display:flex;align-items:center;cursor:pointer}.dashboard-builder .switcher__input{position:absolute;left:-999px}.dashboard-builder .switcher__value{margin-left:.25rem;color:#b3b5b6}.dashboard-builder .switcher__value .on{display:none}.dashboard-builder .switcher__value .off{display:block}.dashboard-builder .accordion__item__heading{padding:.5rem 1rem;border-top:1px solid #f3f3f3;border-bottom:2px solid hsla(0,0%,80%,.2);background-color:#fff;cursor:pointer}.dashboard-builder .accordion__item__heading .heading__icon{margin-right:1rem;transition:transform .15s ease-in-out}.dashboard-builder .accordion__item__content{padding:1rem;animation:b .35s ease-in}.dashboard-builder .accordion__item.open .accordion__item__heading{background-color:#d9effa}.dashboard-builder .accordion__item.open .accordion__item__heading .heading__icon{transform:rotate(90deg)}@keyframes a{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes b{0%{opacity:0}to{opacity:1}}', + 'body{margin:0}.dashboard-builder{width:100%;margin:0;height:100vh;position:relative;display:flex;justify-content:center;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;background:#f9f9f9;color:#000;overflow:hidden;box-sizing:border-box}.dashboard-builder.container{width:1200px;min-height:100vh;display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start;justify-content:flex-start;background:#f5f5f5}.dashboard-builder .dashboard{position:relative;width:100%;min-height:calc(100vh - 130px);padding:20px;box-sizing:border-box}.dashboard-builder .dashboard-container{width:100%;overflow:auto;padding-left:60px}.dashboard-builder .dashboard-container-viewer{width:100%;overflow:auto}.dashboard-builder .dashboard-container-viewer .dashboard-top-bar{width:100%;z-index:11}.dashboard-builder .dashboard-container-viewer .dashboard-top-bar .export-icon{margin:0 1rem}.dashboard-builder .dashboard-inner-container{background:#fdfdfd;margin:auto}.dashboard-builder .dashboard-title{height:60px;width:100%;position:relative;display:flex;align-items:center;justify-content:space-between;padding:.5rem}.dashboard-builder .dashboard-title input{border:0;background:inherit;width:100%;font-size:30px;outline:none;padding:5px 5px 5px 0}.dashboard-builder .dashboard-title .title{padding:20px}.dashboard-builder .dashboard-title a{text-decoration:none}.dashboard-builder .dashboard-top-bar{height:50px;width:100%;background:#f9f9f9;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;position:sticky;top:0;left:0;z-index:8}.dashboard-builder .dashboard-top-bar .share{position:relative}.dashboard-builder .dashboard-top-bar .embed,.dashboard-builder .dashboard-top-bar .share{padding:10px;cursor:pointer}.dashboard-builder .dashboard-list-item{width:20%;min-width:180px;height:200px;padding:10px;position:relative}.dashboard-builder .dashboard-list-item:hover>.dashboard-list-item-buttons{visibility:visible}.dashboard-builder .dashboard-list-item-box{background:#fff;display:flex;justify-content:center;align-items:center;border:1px solid #eee;border-radius:5px;width:100%;height:100%;transition:box-shadow .3s;color:#000;padding:10px;text-align:center}.dashboard-builder .dashboard-list-item-box:hover{box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23)}.dashboard-builder .dashboard-list-item-box time{position:absolute;bottom:15px;left:20px;color:#aaa;font-size:12px}.dashboard-builder .dashboard-list-item-buttons{position:absolute;top:15px;right:15px;cursor:pointer;visibility:hidden}.dashboard-builder .dashboard-saved-message{position:absolute;top:.5rem;left:45%;padding:.5rem 1rem;border-radius:5px;background:#333;color:#fff;font-size:.85rem;z-index:10}.dashboard-builder .dashboard img{width:100%;height:100%}.dashboard-builder .toolbar{position:absolute;left:0;top:0;width:60px;height:100%;z-index:9}.dashboard-builder .toolbar-bar{width:100%;height:100%;position:relative;z-index:6;border-right:1px solid #929191;padding:20px;background:#2f97b9;color:#fff;cursor:pointer}.dashboard-builder .toolbar-bar h3{transform:translateY(100%) rotate(-90deg);transform-origin:0 0;white-space:nowrap;overflow:hidden;position:absolute;top:110px;left:15px;color:#fff}.dashboard-builder .toolbar-container{position:absolute;left:-135px;height:100%;border-right:1px solid #929191;background:#fff;box-shadow:3px 3px 6px #eee;border-right:0;overflow-y:auto;transition:left .25s ease-out}.dashboard-builder .toolbar-hidden{width:90px;display:flex;flex-direction:row;flex-wrap:wrap;padding:10px 10px 10px 20px}.dashboard-builder .toolbar-hidden>h4{font-size:.7rem;width:100%;margin:2rem 0 .5rem;font-weight:400;text-transform:uppercase}.dashboard-builder .toolbar-hidden>h4:first-of-type{margin-top:1rem}.dashboard-builder .toolbar-hidden p{cursor:pointer;z-index:5;margin:0;padding:5px;width:50px;height:50px;display:flex;align-items:center;justify-content:center;background:#fff}.dashboard-builder .toolbar-hidden .metric-chart-icon{font-size:20px;font-weight:600}.dashboard-builder .toolbar-visible{left:60px}.dashboard-builder .burger-icon{padding:0 20px;cursor:pointer;position:relative}.dashboard-builder .burger-icon .fa-bars{color:#2f97b9}.dashboard-builder .modal{display:block;position:absolute;background:#fff;border:1px solid #eee;border-radius:5px;z-index:10;top:0;left:20px;right:auto;bottom:auto;font-size:14px;width:250px;box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23)}.dashboard-builder .modal-header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:15px;border-bottom:1px solid #eee;font-size:17px}.dashboard-builder .modal-header .svg-inline--fa{cursor:pointer}.dashboard-builder .modal .dashboards-filter{padding:.25rem 1rem;border-bottom:1px solid #eee;display:flex;justify-content:space-between}.dashboard-builder .modal .dashboards-filter input{font-size:14px}.dashboard-builder .modal-body{padding:15px;max-height:300px;overflow:auto}.dashboard-builder .modal-body .item{padding:1rem;border-bottom:1px solid #eee;display:flex;flex-direction:column}.dashboard-builder .modal-body .item:hover{background:#f3f3f3}.dashboard-builder .modal-body .item .time{color:#aaa;font-size:12px}.dashboard-builder .modal-body .active{background:#f9f9f9}.dashboard-builder .modal-body .active .fa-angle-double-right{color:#2f97b9;padding-right:5px}.dashboard-builder .modal-body .modal-input{padding:8px 4px;margin-bottom:.5em;width:100%}.dashboard-builder .modal-body .prism{margin-bottom:40px;white-space:pre-wrap}.dashboard-builder .modal-button{border-radius:5px;padding:5px 15px;cursor:pointer;color:#fff;background:#2f97b9;border:none;font-size:14px}.dashboard-builder .modal-button .svg-inline--fa{margin-right:.25rem}.dashboard-builder .modal-footer{padding:10px}.dashboard-builder .modal-cover{width:100%;height:100%;opacity:.4;background:#000;position:absolute;top:0;left:0;z-index:9}.dashboard-builder .modal.share-dashboard{width:500px;top:50px;left:50%;transform:translateX(-50%)}.dashboard-builder .modal.embed-dashboard{width:75%;max-width:700px;top:50%;left:50%;transform:translate(-50%,-50%)}.dashboard-builder .modal.embed-dashboard .modal-button{position:fixed;bottom:15px;left:15px}.dashboard-builder .editor-dashboard-switch .modal-body{padding:0}.dashboard-builder .paragraph{padding:0 10px;overflow:hidden;width:100%}.dashboard-builder .paragraph p{margin:0}.dashboard-builder .chart-container{background:#fff;justify-content:center;align-items:center;position:absolute;border-radius:5px;display:flex;flex-direction:column;transition:box-shadow .3s;z-index:1}.dashboard-builder .chart-container:hover{box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23);z-index:7}.dashboard-builder .chart-container:hover .config-buttons,.dashboard-builder .chart-container:hover .resizers{visibility:visible}.dashboard-builder .chart-container img{border-radius:5px}.dashboard-builder .chart-container>.keen-dataviz{overflow:auto;width:100%;margin-top:0;border:1px solid #eee}.dashboard-builder .chart-container .chart-title{height:30px;width:100%;border-bottom:0;display:flex;align-items:left;justify-content:left;z-index:3}.dashboard-builder .chart-container .chart-title input{border:0;background:inherit;outline:none;width:100%;text-align:left;font-size:14px;color:#222}.dashboard-builder .chart-container .chart-subtitle{height:25px;width:100%;border-bottom:0;display:flex;align-items:left;justify-content:left;z-index:3}.dashboard-builder .chart-container .chart-subtitle input{border:0;background:inherit;outline:none;width:100%;text-align:left;font-size:14px;color:#6f6f6f}.dashboard-builder .chart-container-viewer{background:#fff;justify-content:center;align-items:center;border-radius:5px;display:flex;flex-direction:column;transition:box-shadow .3s;z-index:1;position:relative}.dashboard-builder .chart-container-viewer .c3-tooltip-container{z-index:9}.dashboard-builder .chart-container-viewer:hover .explorer-button{visibility:visible}.dashboard-builder .chart-container-viewer img{border-radius:5px}.dashboard-builder .chart-container-viewer>.keen-dataviz{overflow:auto;width:100%;margin-top:0;border:1px solid #eee}.dashboard-builder .chart-container-viewer .chart-title{height:30px;width:100%;border-bottom:0;display:flex;align-items:left;justify-content:left;z-index:3}.dashboard-builder .chart-container-viewer .chart-title input{border:0;background:inherit;outline:none;width:100%;text-align:left;font-size:14px;color:#222}.dashboard-builder .chart-container-viewer .chart-subtitle{height:25px;width:100%;border-bottom:0;display:flex;align-items:left;justify-content:left;z-index:3}.dashboard-builder .chart-container-viewer .chart-subtitle input{border:0;background:inherit;outline:none;width:100%;text-align:left;font-size:14px;color:#6f6f6f}.dashboard-builder .config-buttons{position:absolute;top:-1px;right:-35px;display:flex;flex-direction:column;visibility:hidden;padding-left:5px;opacity:1}.dashboard-builder .config-buttons div{cursor:pointer;width:30px;height:30px;background:#000;color:#fff;font-size:15px;box-sizing:border-box;margin-bottom:2px;display:flex;align-items:center;justify-content:center;opacity:.7;border-radius:3px}.dashboard-builder .config-buttons div:hover{background:#424242}.dashboard-builder .explorer-button{position:absolute;z-index:4;top:2px;right:2px;cursor:pointer;width:30px;height:30px;background:#000;color:#fff;box-sizing:border-box;opacity:.7;border-radius:3px;padding-left:8px;padding-top:2px;visibility:hidden}.dashboard-builder .explorer-button a{color:#fff}.dashboard-builder .explorer-button:hover{background:#424242}.dashboard-builder .resizers{position:absolute;height:100%;width:100%;border:1px dashed #7c7c7c;border-radius:5px;visibility:hidden}.dashboard-builder .resizers div{position:absolute}.dashboard-builder .top-left{left:0;top:0;cursor:nwse-resize;width:10px;height:10px;z-index:4}.dashboard-builder .top-right{right:0;top:0;cursor:nesw-resize;width:10px;height:10px;z-index:4}.dashboard-builder .bottom-left{left:0;bottom:0;cursor:nesw-resize;width:10px;height:10px;z-index:4}.dashboard-builder .bottom-right{right:1px;bottom:1px;cursor:nwse-resize;width:12px;height:12px;z-index:4;border-style:solid;border-width:0 0 12px 12px;border-color:transparent transparent #7c7c7c}.dashboard-builder .left{left:0}.dashboard-builder .left,.dashboard-builder .right{top:0;height:100%;width:5px;cursor:ew-resize;z-index:3}.dashboard-builder .right{right:0}.dashboard-builder .top{top:0}.dashboard-builder .bottom,.dashboard-builder .top{left:0;width:100%;height:5px;cursor:ns-resize;z-index:3}.dashboard-builder .bottom{bottom:0}.dashboard-builder .keen-dataviz-table th{z-index:0}.dashboard-builder .chart-draggable{position:absolute;left:10px;width:calc(100% - 20px);height:calc(100% - 20px);z-index:2;cursor:move}.dashboard-builder .search{width:65%;height:100%;display:flex;flex-direction:row;font-size:15px;align-items:center}.dashboard-builder .search svg{margin-right:10px}.dashboard-builder .search input{border:0;background:inherit;width:100%;height:100%;outline:none;font-size:20px}.dashboard-builder .sorting-select{width:200px;margin-top:15px}.dashboard-builder .screen-resize-icon{position:absolute;left:48%;width:100px;display:flex;justify-content:space-between;color:hsla(0,0%,44%,.65882);align-items:center}.dashboard-builder .screen-resize-icon svg{cursor:pointer}.dashboard-builder .screen-resize-icon svg:hover{color:#000}.dashboard-builder .save-dashboard-button{border-radius:5px;padding:5px;cursor:pointer;transition:.3s;width:80px;height:31px;margin-right:20px;margin-left:20px;text-align:center;color:#fff;background:#2f97b9;text-transform:uppercase}.dashboard-builder .save-dashboard-button svg{margin-right:.25rem}.dashboard-builder .settings{width:350px;background:#f3f7f9}.dashboard-builder .settings h4{margin-top:2rem;margin-bottom:.5rem;font-weight:400}.dashboard-builder .settings-input{color:#333;font-size:14px;height:38px}.dashboard-builder .settings-input,.dashboard-builder .settings-textarea{width:100%;border-radius:4px;padding:9px;border:1px solid #ccc;outline:none}.dashboard-builder .settings-textarea{color:gray;font-size:16px;height:50%}.dashboard-builder .settings-select>div{width:100%}.dashboard-builder .settings-chart{padding:0}.dashboard-builder .settings-chart-saved-query{padding:1rem}.dashboard-builder .settings-chart #dashboard-builder-explorer .keen-explorer .panel-main{min-width:0;max-width:330px;box-shadow:none}.dashboard-builder .settings-chart .keen-theme-builder{padding:0}.dashboard-builder .settings-chart .keen-theme-builder .builder__header{display:none}.dashboard-builder .settings-chart h4:first-child{margin-top:0}.dashboard-builder .react-tabs__tab{width:50%;padding:10px;text-align:center;cursor:pointer;color:#fff;outline:none;border:0;background:#2f97b9}.dashboard-builder .react-tabs__tab:first-of-type{border-right:none}.dashboard-builder .react-tabs__tab--selected{color:#000;border-bottom:none;background:#fff;border-top:1px solid #eee}.dashboard-builder .react-tabs__tab-list{display:flex;flex-direction:row;list-style:none;justify-content:space-between;padding:0;margin-bottom:0}.dashboard-builder .react-tabs__tab-panel{border:0}.dashboard-builder .react-tabs__tab-panel--selected{padding:10px 20px 20px;border:0;visibility:visible;height:calc(100vh - 40px);overflow-y:auto}.dashboard-builder .react-tabs__tab-panel--selected .keen-theme-builder{padding:0}.dashboard-builder .settings-container{min-width:350px;min-height:100%;background:#fff;border-left:1px solid #eee;position:relative;background:#f3f7f9;overflow:auto}.dashboard-builder .settings-container .color-palette__item .color-picker__popover{left:auto;right:0}.dashboard-builder .settings-container .color-palette__item:nth-child(5n+1) .color-picker__popover,.dashboard-builder .settings-container .color-palette__item:nth-child(5n+2) .color-picker__popover{left:0;right:auto}.dashboard-builder .settings-container .color-palette__item:nth-child(5n+3) .color-picker__popover{left:-100%;right:auto}.dashboard-builder .settings-container .color-palette__item:nth-child(5n+4) .color-picker__popover{left:auto;right:-100%}.dashboard-builder .new-dashboard-button{border-radius:5px;padding:1rem;cursor:pointer;color:#fff;background:#2f97b9;text-align:left;white-space:nowrap;display:flex;align-items:center}.dashboard-builder .new-dashboard-button:hover{color:#fff;background:#2f97b9}.dashboard-builder .new-dashboard-button svg{margin-right:.5rem}.dashboard-builder .container{width:1200px;background:#f5f5f5;min-height:100vh;display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start}.dashboard-builder .top-toolbar{flex:1 100%;padding:20px;display:flex;flex-direction:row;justify-content:space-between;width:100%;border-bottom:1px solid #cfcfcf}.dashboard-builder .message{width:100%;text-align:center;padding:20px}.dashboard-builder .new-chart-info,.dashboard-builder .settings-loading{position:absolute;width:100%;height:100%;display:flex;justify-content:center;align-items:center;background:hsla(0,0%,98%,.9);border-bottom-left-radius:5px;border-bottom-right-radius:5px}.dashboard-builder .settings-loading{top:0;left:0}.dashboard-builder .error-message{z-index:1;background:#fff;padding:20px;text-align:center;color:red;border:1px solid red;border-radius:5px}.dashboard-builder .dry-run-message{position:absolute;left:0;bottom:0;padding:1rem;background:hsla(0,0%,44%,.65882);color:#fff;border-radius:0 1rem 0 0}.dashboard-builder .select-palette-button select{margin-right:20px;border-radius:5px;padding:8px;width:100px;height:31px;background:#fff}.dashboard-builder .preview{padding:10px}.dashboard-builder .preview a{color:#000}.dashboard-builder .embed-icon:hover,.dashboard-builder .preview:hover a,.dashboard-builder .share-icon:hover{color:#414141}.dashboard-builder .quill{height:70%}.dashboard-builder .edit-dashboard-button{border-radius:5px;padding:5px 10px;cursor:pointer;width:fit-content;text-align:center;color:#fff;background:#2f97b9;text-decoration:none;flex-shrink:0;margin:0 0 0 .5em}.dashboard-builder .edit-dashboard-button__link{display:block;color:#fff;text-decoration:none}.dashboard-builder .edit-dashboard-button__link:hover{color:#fff;text-decoration:none}.dashboard-builder .big-icon{font-size:50px;color:#eee}.dashboard-builder .loading{font-size:50px;animation:a 1s ease infinite;z-index:12}.dashboard-builder .settings-theme-builder,.dashboard-builder .settings-theme-builder .keen-theme-builder{padding:0}.dashboard-builder .settings-theme-builder .keen-theme-builder .builder__header{display:none}.dashboard-builder .switch-dashboard{width:400px;z-index:9}.dashboard-builder .__react_component_tooltip{padding:3px 5px}.dashboard-builder .keen-theme-builder{background-color:#fff}.dashboard-builder .keen-theme-builder .color-picker__popover{z-index:9}.dashboard-builder .keen-theme-builder .builder__header{font-size:1rem}.dashboard-builder .heatmap-container .keen-dataviz-rendering-vertical{height:calc(100% - 50px)}.dashboard-builder .keen-dataviz .rangeable-container{margin:2rem auto;width:75%}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-progress,.dashboard-builder .keen-dataviz .rangeable-container .rangeable-track{height:4px}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-handle{width:16px;height:16px;border-width:4px}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-tooltip{border-radius:0;font-weight:400;padding:3px 9px}.dashboard-builder .c3-circle{fill:currentColor}@media only screen and (max-width:1300px){.dashboard-builder .dashboard{min-height:calc(100vh - 130px)}}@media only screen and (min-width:1800px){.dashboard-builder .toolbar-bar{visibility:hidden}.dashboard-builder .toolbar-container{left:0}.dashboard-builder .dashboard-container{padding-left:90px}}.dashboard-builder .export-icon{cursor:pointer}.dashboard-builder .switcher{margin-bottom:.5rem;display:block;position:relative;overflow:hidden}.dashboard-builder .switcher__input:checked~.switcher__toggle{border-color:#3ed08e;background-color:#dcf9eb}.dashboard-builder .switcher__input:checked~.switcher__toggle .switcher__switch{right:2px;background-color:#3ed08e}.dashboard-builder .switcher__input:checked~.switcher__value .on{display:block}.dashboard-builder .switcher__input:checked~.switcher__value .off{display:none}.dashboard-builder .switcher__toggle{position:relative;width:36px;height:20px;margin-right:.25rem;margin-left:.5rem;border:1px solid #ccc;background-color:#fff;border-radius:10px;display:inline-block}.dashboard-builder .switcher__switch{position:absolute;top:2px;bottom:0;right:18px;width:14px;height:14px;margin:0;background:#ccc;border-radius:50%;flex-shrink:0;transition:right .15s ease-in-out,background-color .15s ease-in-out}.dashboard-builder .switcher__title{font-weight:800}.dashboard-builder .switcher__label{display:flex;align-items:center;cursor:pointer}.dashboard-builder .switcher__input{position:absolute;left:-999px}.dashboard-builder .switcher__value{margin-left:.25rem;color:#b3b5b6}.dashboard-builder .switcher__value .on{display:none}.dashboard-builder .switcher__value .off{display:block}.dashboard-builder .accordion__item__heading{padding:.5rem 1rem;border-top:1px solid #f3f3f3;border-bottom:2px solid hsla(0,0%,80%,.2);background-color:#fff;cursor:pointer}.dashboard-builder .accordion__item__heading .heading__icon{margin-right:1rem;transition:transform .15s ease-in-out}.dashboard-builder .accordion__item__content{padding:1rem;animation:b .35s ease-in}.dashboard-builder .accordion__item.open .accordion__item__heading{background-color:#d9effa}.dashboard-builder .accordion__item.open .accordion__item__heading .heading__icon{transform:rotate(90deg)}@keyframes a{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes b{0%{opacity:0}to{opacity:1}}', '' ]); }, @@ -198782,19 +198755,20 @@ object-assign })(t, e), r(t, [ { - key: 'componentWillReceiveProps', - value: function(e) { - var t = this.input; - e.value !== this.state.value && - (t === document.activeElement + key: 'componentDidUpdate', + value: function(e, t) { + this.props.value === this.state.value || + (e.value === this.props.value && + t.value === this.state.value) || + (this.input === document.activeElement ? this.setState({ - blurValue: String(e.value).toUpperCase() + blurValue: String(this.props.value).toUpperCase() }) : this.setState({ - value: String(e.value).toUpperCase(), + value: String(this.props.value).toUpperCase(), blurValue: !this.state.blurValue && - String(e.value).toUpperCase() + String(this.props.value).toUpperCase() })); } }, @@ -198831,10 +198805,9 @@ object-assign { key: 'setUpdatedValue', value: function(e, t) { - var n = - null !== this.props.label - ? this.getValueObjectWithLabel(e) - : e; + var n = this.props.label + ? this.getValueObjectWithLabel(e) + : e; this.props.onChange && this.props.onChange(n, t); var r, o = (function(e) { @@ -199627,9 +199600,9 @@ object-assign s = 'number' == typeof e.pageY ? e.pageY : e.touches[0].pageY, c = a - (n.getBoundingClientRect().left + window.pageXOffset), u = s - (n.getBoundingClientRect().top + window.pageYOffset); - c < 0 ? (c = 0) : c > o ? (c = o) : u < 0 ? (u = 0) : u > i && (u = i); - var l = (100 * c) / o, - f = (-100 * u) / i + 100; + c < 0 ? (c = 0) : c > o && (c = o), u < 0 ? (u = 0) : u > i && (u = i); + var l = c / o, + f = 1 - u / i; return { h: t.h, s: l, v: f, a: t.a, source: 'rgb' }; }; }, @@ -201151,7 +201124,8 @@ object-assign b = void 0 === m ? {} : m, y = e.className, v = void 0 === y ? '' : y, - _ = (0, i.default)( + _ = e.defaultView, + w = (0, i.default)( (0, a.default)( { default: { @@ -201222,12 +201196,12 @@ object-assign ); return r.default.createElement( 'div', - { style: _.picker, className: 'chrome-picker ' + v }, + { style: w.picker, className: 'chrome-picker ' + v }, r.default.createElement( 'div', - { style: _.saturation }, + { style: w.saturation }, r.default.createElement(s.Saturation, { - style: _.Saturation, + style: w.Saturation, hsl: d, hsv: p, pointer: l.default, @@ -201236,28 +201210,28 @@ object-assign ), r.default.createElement( 'div', - { style: _.body }, + { style: w.body }, r.default.createElement( 'div', - { style: _.controls, className: 'flexbox-fix' }, + { style: w.controls, className: 'flexbox-fix' }, r.default.createElement( 'div', - { style: _.color }, + { style: w.color }, r.default.createElement( 'div', - { style: _.swatch }, - r.default.createElement('div', { style: _.active }), + { style: w.swatch }, + r.default.createElement('div', { style: w.active }), r.default.createElement(s.Checkboard, { renderers: g }) ) ), r.default.createElement( 'div', - { style: _.toggles }, + { style: w.toggles }, r.default.createElement( 'div', - { style: _.hue }, + { style: w.hue }, r.default.createElement(s.Hue, { - style: _.Hue, + style: w.Hue, hsl: d, pointer: u.default, onChange: n @@ -201265,9 +201239,9 @@ object-assign ), r.default.createElement( 'div', - { style: _.alpha }, + { style: w.alpha }, r.default.createElement(s.Alpha, { - style: _.Alpha, + style: w.Alpha, rgb: f, hsl: d, pointer: u.default, @@ -201281,6 +201255,7 @@ object-assign rgb: f, hsl: d, hex: h, + view: _, onChange: n, disableAlpha: o }) @@ -201290,7 +201265,8 @@ object-assign (d.propTypes = { width: o.default.oneOfType([o.default.string, o.default.number]), disableAlpha: o.default.bool, - styles: o.default.object + styles: o.default.object, + defaultView: o.default.oneOf(['hex', 'rgb', 'hsl']) }), (d.defaultProps = { width: 225, disableAlpha: !1, styles: {} }), (t.default = (0, s.ColorWrap)(d)); @@ -201321,62 +201297,53 @@ object-assign function u(e) { return e && e.__esModule ? e : { default: e }; } - function l(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) ? e : t; - } - var f = (t.ChromeFields = (function(e) { - function t() { - var e, n, r; + var l = (t.ChromeFields = (function(e) { + function t(e) { !(function(e, t) { if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function'); })(this, t); - for (var o = arguments.length, i = Array(o), s = 0; s < o; s++) - i[s] = arguments[s]; + var n = (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this)); return ( - (n = r = l( - this, - (e = t.__proto__ || Object.getPrototypeOf(t)).call.apply( - e, - [this].concat(i) - ) - )), - (r.state = { view: '' }), - (r.toggleViews = function() { - 'hex' === r.state.view - ? r.setState({ view: 'rgb' }) - : 'rgb' === r.state.view - ? r.setState({ view: 'hsl' }) - : 'hsl' === r.state.view && - (1 === r.props.hsl.a - ? r.setState({ view: 'hex' }) - : r.setState({ view: 'rgb' })); - }), - (r.handleChange = function(e, t) { + (n.toggleViews = function() { + 'hex' === n.state.view + ? n.setState({ view: 'rgb' }) + : 'rgb' === n.state.view + ? n.setState({ view: 'hsl' }) + : 'hsl' === n.state.view && + (1 === n.props.hsl.a + ? n.setState({ view: 'hex' }) + : n.setState({ view: 'rgb' })); + }), + (n.handleChange = function(e, t) { e.hex ? a.default.isValidHex(e.hex) && - r.props.onChange({ hex: e.hex, source: 'hex' }, t) + n.props.onChange({ hex: e.hex, source: 'hex' }, t) : e.r || e.g || e.b - ? r.props.onChange( + ? n.props.onChange( { - r: e.r || r.props.rgb.r, - g: e.g || r.props.rgb.g, - b: e.b || r.props.rgb.b, + r: e.r || n.props.rgb.r, + g: e.g || n.props.rgb.g, + b: e.b || n.props.rgb.b, source: 'rgb' }, t ) : e.a ? (e.a < 0 ? (e.a = 0) : e.a > 1 && (e.a = 1), - r.props.onChange( + n.props.onChange( { - h: r.props.hsl.h, - s: r.props.hsl.s, - l: r.props.hsl.l, + h: n.props.hsl.h, + s: n.props.hsl.s, + l: n.props.hsl.l, a: Math.round(100 * e.a) / 100, source: 'rgb' }, @@ -201389,23 +201356,26 @@ object-assign 'string' == typeof e.l && e.l.includes('%') && (e.l = e.l.replace('%', '')), - r.props.onChange( + n.props.onChange( { - h: e.h || r.props.hsl.h, - s: Number((e.s && e.s) || r.props.hsl.s), - l: Number((e.l && e.l) || r.props.hsl.l), + h: e.h || n.props.hsl.h, + s: Number((e.s && e.s) || n.props.hsl.s), + l: Number((e.l && e.l) || n.props.hsl.l), source: 'hsl' }, t )); }), - (r.showHighlight = function(e) { + (n.showHighlight = function(e) { e.currentTarget.style.background = '#eee'; }), - (r.hideHighlight = function(e) { + (n.hideHighlight = function(e) { e.currentTarget.style.background = 'transparent'; }), - l(r, n) + 1 !== e.hsl.a && 'hex' === e.view + ? (n.state = { view: 'rgb' }) + : (n.state = { view: e.view }), + n ); } return ( @@ -201428,235 +201398,230 @@ object-assign ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), - r(t, [ - { - key: 'componentDidMount', - value: function() { - 1 === this.props.hsl.a && 'hex' !== this.state.view - ? this.setState({ view: 'hex' }) - : 'rgb' !== this.state.view && - 'hsl' !== this.state.view && - this.setState({ view: 'rgb' }); - } - }, - { - key: 'componentWillReceiveProps', - value: function(e) { - 1 !== e.hsl.a && - 'hex' === this.state.view && - this.setState({ view: 'rgb' }); - } - }, - { - key: 'render', - value: function() { - var e = this, - t = (0, i.default)( - { - default: { - wrap: { paddingTop: '16px', display: 'flex' }, - fields: { - flex: '1', - display: 'flex', - marginLeft: '-6px' - }, - field: { paddingLeft: '6px', width: '100%' }, - alpha: { paddingLeft: '6px', width: '100%' }, - toggle: { - width: '32px', - textAlign: 'right', - position: 'relative' - }, - icon: { - marginRight: '-4px', - marginTop: '12px', - cursor: 'pointer', - position: 'relative' - }, - iconHighlight: { - position: 'absolute', - width: '24px', - height: '28px', - background: '#eee', - borderRadius: '4px', - top: '10px', - left: '12px', - display: 'none' - }, - input: { - fontSize: '11px', - color: '#333', - width: '100%', - borderRadius: '2px', - border: 'none', - boxShadow: 'inset 0 0 0 1px #dadada', - height: '21px', - textAlign: 'center' - }, - label: { - textTransform: 'uppercase', - fontSize: '11px', - lineHeight: '11px', - color: '#969696', - textAlign: 'center', - display: 'block', - marginTop: '12px' + r( + t, + [ + { + key: 'render', + value: function() { + var e = this, + t = (0, i.default)( + { + default: { + wrap: { paddingTop: '16px', display: 'flex' }, + fields: { + flex: '1', + display: 'flex', + marginLeft: '-6px' + }, + field: { paddingLeft: '6px', width: '100%' }, + alpha: { paddingLeft: '6px', width: '100%' }, + toggle: { + width: '32px', + textAlign: 'right', + position: 'relative' + }, + icon: { + marginRight: '-4px', + marginTop: '12px', + cursor: 'pointer', + position: 'relative' + }, + iconHighlight: { + position: 'absolute', + width: '24px', + height: '28px', + background: '#eee', + borderRadius: '4px', + top: '10px', + left: '12px', + display: 'none' + }, + input: { + fontSize: '11px', + color: '#333', + width: '100%', + borderRadius: '2px', + border: 'none', + boxShadow: 'inset 0 0 0 1px #dadada', + height: '21px', + textAlign: 'center' + }, + label: { + textTransform: 'uppercase', + fontSize: '11px', + lineHeight: '11px', + color: '#969696', + textAlign: 'center', + display: 'block', + marginTop: '12px' + }, + svg: { + fill: '#333', + width: '24px', + height: '24px', + border: '1px transparent solid', + borderRadius: '5px' + } }, - svg: { - fill: '#333', - width: '24px', - height: '24px', - border: '1px transparent solid', - borderRadius: '5px' - } + disableAlpha: { alpha: { display: 'none' } } }, - disableAlpha: { alpha: { display: 'none' } } - }, - this.props, - this.state - ), - n = void 0; - return ( - 'hex' === this.state.view - ? (n = o.default.createElement( - 'div', - { style: t.fields, className: 'flexbox-fix' }, - o.default.createElement( - 'div', - { style: t.field }, - o.default.createElement(s.EditableInput, { - style: { input: t.input, label: t.label }, - label: 'hex', - value: this.props.hex, - onChange: this.handleChange - }) - ) - )) - : 'rgb' === this.state.view - ? (n = o.default.createElement( - 'div', - { style: t.fields, className: 'flexbox-fix' }, - o.default.createElement( - 'div', - { style: t.field }, - o.default.createElement(s.EditableInput, { - style: { input: t.input, label: t.label }, - label: 'r', - value: this.props.rgb.r, - onChange: this.handleChange - }) - ), - o.default.createElement( + this.props, + this.state + ), + n = void 0; + return ( + 'hex' === this.state.view + ? (n = o.default.createElement( 'div', - { style: t.field }, - o.default.createElement(s.EditableInput, { - style: { input: t.input, label: t.label }, - label: 'g', - value: this.props.rgb.g, - onChange: this.handleChange - }) - ), - o.default.createElement( + { style: t.fields, className: 'flexbox-fix' }, + o.default.createElement( + 'div', + { style: t.field }, + o.default.createElement(s.EditableInput, { + style: { input: t.input, label: t.label }, + label: 'hex', + value: this.props.hex, + onChange: this.handleChange + }) + ) + )) + : 'rgb' === this.state.view + ? (n = o.default.createElement( 'div', - { style: t.field }, - o.default.createElement(s.EditableInput, { - style: { input: t.input, label: t.label }, - label: 'b', - value: this.props.rgb.b, - onChange: this.handleChange - }) - ), - o.default.createElement( + { style: t.fields, className: 'flexbox-fix' }, + o.default.createElement( + 'div', + { style: t.field }, + o.default.createElement(s.EditableInput, { + style: { input: t.input, label: t.label }, + label: 'r', + value: this.props.rgb.r, + onChange: this.handleChange + }) + ), + o.default.createElement( + 'div', + { style: t.field }, + o.default.createElement(s.EditableInput, { + style: { input: t.input, label: t.label }, + label: 'g', + value: this.props.rgb.g, + onChange: this.handleChange + }) + ), + o.default.createElement( + 'div', + { style: t.field }, + o.default.createElement(s.EditableInput, { + style: { input: t.input, label: t.label }, + label: 'b', + value: this.props.rgb.b, + onChange: this.handleChange + }) + ), + o.default.createElement( + 'div', + { style: t.alpha }, + o.default.createElement(s.EditableInput, { + style: { input: t.input, label: t.label }, + label: 'a', + value: this.props.rgb.a, + arrowOffset: 0.01, + onChange: this.handleChange + }) + ) + )) + : 'hsl' === this.state.view && + (n = o.default.createElement( 'div', - { style: t.alpha }, - o.default.createElement(s.EditableInput, { - style: { input: t.input, label: t.label }, - label: 'a', - value: this.props.rgb.a, - arrowOffset: 0.01, - onChange: this.handleChange - }) - ) - )) - : 'hsl' === this.state.view && - (n = o.default.createElement( + { style: t.fields, className: 'flexbox-fix' }, + o.default.createElement( + 'div', + { style: t.field }, + o.default.createElement(s.EditableInput, { + style: { input: t.input, label: t.label }, + label: 'h', + value: Math.round(this.props.hsl.h), + onChange: this.handleChange + }) + ), + o.default.createElement( + 'div', + { style: t.field }, + o.default.createElement(s.EditableInput, { + style: { input: t.input, label: t.label }, + label: 's', + value: Math.round(100 * this.props.hsl.s) + '%', + onChange: this.handleChange + }) + ), + o.default.createElement( + 'div', + { style: t.field }, + o.default.createElement(s.EditableInput, { + style: { input: t.input, label: t.label }, + label: 'l', + value: Math.round(100 * this.props.hsl.l) + '%', + onChange: this.handleChange + }) + ), + o.default.createElement( + 'div', + { style: t.alpha }, + o.default.createElement(s.EditableInput, { + style: { input: t.input, label: t.label }, + label: 'a', + value: this.props.hsl.a, + arrowOffset: 0.01, + onChange: this.handleChange + }) + ) + )), + o.default.createElement( + 'div', + { style: t.wrap, className: 'flexbox-fix' }, + n, + o.default.createElement( 'div', - { style: t.fields, className: 'flexbox-fix' }, - o.default.createElement( - 'div', - { style: t.field }, - o.default.createElement(s.EditableInput, { - style: { input: t.input, label: t.label }, - label: 'h', - value: Math.round(this.props.hsl.h), - onChange: this.handleChange - }) - ), - o.default.createElement( - 'div', - { style: t.field }, - o.default.createElement(s.EditableInput, { - style: { input: t.input, label: t.label }, - label: 's', - value: Math.round(100 * this.props.hsl.s) + '%', - onChange: this.handleChange - }) - ), - o.default.createElement( - 'div', - { style: t.field }, - o.default.createElement(s.EditableInput, { - style: { input: t.input, label: t.label }, - label: 'l', - value: Math.round(100 * this.props.hsl.l) + '%', - onChange: this.handleChange - }) - ), + { style: t.toggle }, o.default.createElement( 'div', - { style: t.alpha }, - o.default.createElement(s.EditableInput, { - style: { input: t.input, label: t.label }, - label: 'a', - value: this.props.hsl.a, - arrowOffset: 0.01, - onChange: this.handleChange + { + style: t.icon, + onClick: this.toggleViews, + ref: function(t) { + return (e.icon = t); + } + }, + o.default.createElement(c.default, { + style: t.svg, + onMouseOver: this.showHighlight, + onMouseEnter: this.showHighlight, + onMouseOut: this.hideHighlight }) ) - )), - o.default.createElement( - 'div', - { style: t.wrap, className: 'flexbox-fix' }, - n, - o.default.createElement( - 'div', - { style: t.toggle }, - o.default.createElement( - 'div', - { - style: t.icon, - onClick: this.toggleViews, - ref: function(t) { - return (e.icon = t); - } - }, - o.default.createElement(c.default, { - style: t.svg, - onMouseOver: this.showHighlight, - onMouseEnter: this.showHighlight, - onMouseOut: this.hideHighlight - }) ) ) - ) - ); + ); + } } - } - ]), + ], + [ + { + key: 'getDerivedStateFromProps', + value: function(e, t) { + return 1 !== e.hsl.a && 'hex' === t.view + ? { view: 'rgb' } + : null; + } + } + ] + ), t ); })(o.default.Component)); - t.default = f; + (l.defaultProps = { view: 'hex' }), (t.default = l); }, function(e, t, n) { 'use strict'; diff --git a/dist/style.css b/dist/style.css index 40d8fd9..675d72a 100644 --- a/dist/style.css +++ b/dist/style.css @@ -524,7 +524,7 @@ body { } .dashboard-builder .chart-container > .keen-dataviz { - overflow: hidden; + overflow: auto; width: 100%; margin-top: 0; border: 1px solid #eee; @@ -610,7 +610,7 @@ body { } .dashboard-builder .chart-container-viewer > .keen-dataviz { - overflow: hidden; + overflow: auto; width: 100%; margin-top: 0; border: 1px solid #eee; diff --git a/dist/style.min.css b/dist/style.min.css index d5d2ee6..2a116a8 100644 --- a/dist/style.min.css +++ b/dist/style.min.css @@ -1 +1 @@ -body{margin:0}.dashboard-builder{width:100%;margin:0;height:100vh;position:relative;display:flex;justify-content:center;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;background:#f9f9f9;color:#000;overflow:hidden;box-sizing:border-box}.dashboard-builder.container{width:1200px;min-height:100vh;display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start;justify-content:flex-start;background:#f5f5f5}.dashboard-builder .dashboard{position:relative;width:100%;min-height:calc(100vh - 130px);padding:20px;box-sizing:border-box}.dashboard-builder .dashboard-container{width:100%;overflow:auto;padding-left:60px}.dashboard-builder .dashboard-container-viewer{width:100%;overflow:auto}.dashboard-builder .dashboard-container-viewer .dashboard-top-bar{width:100%;z-index:11}.dashboard-builder .dashboard-container-viewer .dashboard-top-bar .export-icon{margin:0 1rem}.dashboard-builder .dashboard-inner-container{background:#fdfdfd;margin:auto}.dashboard-builder .dashboard-title{height:60px;width:100%;position:relative;display:flex;align-items:center;justify-content:space-between;padding:.5rem}.dashboard-builder .dashboard-title input{border:0;background:inherit;width:100%;font-size:30px;outline:none;padding:5px 5px 5px 0}.dashboard-builder .dashboard-title .title{padding:20px}.dashboard-builder .dashboard-title a{text-decoration:none}.dashboard-builder .dashboard-top-bar{height:50px;width:100%;background:#f9f9f9;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;position:sticky;top:0;left:0;z-index:8}.dashboard-builder .dashboard-top-bar .share{position:relative}.dashboard-builder .dashboard-top-bar .embed,.dashboard-builder .dashboard-top-bar .share{padding:10px;cursor:pointer}.dashboard-builder .dashboard-list-item{width:20%;min-width:180px;height:200px;padding:10px;position:relative}.dashboard-builder .dashboard-list-item:hover>.dashboard-list-item-buttons{visibility:visible}.dashboard-builder .dashboard-list-item-box{background:#fff;display:flex;justify-content:center;align-items:center;border:1px solid #eee;border-radius:5px;width:100%;height:100%;transition:box-shadow .3s;color:#000;padding:10px;text-align:center}.dashboard-builder .dashboard-list-item-box:hover{box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23)}.dashboard-builder .dashboard-list-item-box time{position:absolute;bottom:15px;left:20px;color:#aaa;font-size:12px}.dashboard-builder .dashboard-list-item-buttons{position:absolute;top:15px;right:15px;cursor:pointer;visibility:hidden}.dashboard-builder .dashboard-saved-message{position:absolute;top:.5rem;left:45%;padding:.5rem 1rem;border-radius:5px;background:#333;color:#fff;font-size:.85rem;z-index:10}.dashboard-builder .dashboard img{width:100%;height:100%}.dashboard-builder .toolbar{position:absolute;left:0;top:0;width:60px;height:100%;z-index:9}.dashboard-builder .toolbar-bar{width:100%;height:100%;position:relative;z-index:6;border-right:1px solid #929191;padding:20px;background:#2f97b9;color:#fff;cursor:pointer}.dashboard-builder .toolbar-bar h3{transform:translateY(100%) rotate(-90deg);transform-origin:0 0;white-space:nowrap;overflow:hidden;position:absolute;top:110px;left:15px;color:#fff}.dashboard-builder .toolbar-container{position:absolute;left:-135px;height:100%;border-right:1px solid #929191;background:#fff;box-shadow:3px 3px 6px #eee;border-right:0;overflow-y:auto;transition:left .25s ease-out}.dashboard-builder .toolbar-hidden{width:90px;display:flex;flex-direction:row;flex-wrap:wrap;padding:10px 10px 10px 20px}.dashboard-builder .toolbar-hidden>h4{font-size:.7rem;width:100%;margin:2rem 0 .5rem;font-weight:400;text-transform:uppercase}.dashboard-builder .toolbar-hidden>h4:first-of-type{margin-top:1rem}.dashboard-builder .toolbar-hidden p{cursor:pointer;z-index:5;margin:0;padding:5px;width:50px;height:50px;display:flex;align-items:center;justify-content:center;background:#fff}.dashboard-builder .toolbar-hidden .metric-chart-icon{font-size:20px;font-weight:600}.dashboard-builder .toolbar-visible{left:60px}.dashboard-builder .burger-icon{padding:0 20px;cursor:pointer;position:relative}.dashboard-builder .burger-icon .fa-bars{color:#2f97b9}.dashboard-builder .modal{display:block;position:absolute;background:#fff;border:1px solid #eee;border-radius:5px;z-index:10;top:0;left:20px;right:auto;bottom:auto;font-size:14px;width:250px;box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23)}.dashboard-builder .modal-header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:15px;border-bottom:1px solid #eee;font-size:17px}.dashboard-builder .modal-header .svg-inline--fa{cursor:pointer}.dashboard-builder .modal .dashboards-filter{padding:.25rem 1rem;border-bottom:1px solid #eee;display:flex;justify-content:space-between}.dashboard-builder .modal .dashboards-filter input{font-size:14px}.dashboard-builder .modal-body{padding:15px;max-height:300px;overflow:auto}.dashboard-builder .modal-body .item{padding:1rem;border-bottom:1px solid #eee;display:flex;flex-direction:column}.dashboard-builder .modal-body .item:hover{background:#f3f3f3}.dashboard-builder .modal-body .item .time{color:#aaa;font-size:12px}.dashboard-builder .modal-body .active{background:#f9f9f9}.dashboard-builder .modal-body .active .fa-angle-double-right{color:#2f97b9;padding-right:5px}.dashboard-builder .modal-body .modal-input{padding:8px 4px;margin-bottom:.5em;width:100%}.dashboard-builder .modal-body .prism{margin-bottom:40px;white-space:pre-wrap}.dashboard-builder .modal-button{border-radius:5px;padding:5px 15px;cursor:pointer;color:#fff;background:#2f97b9;border:none;font-size:14px}.dashboard-builder .modal-button .svg-inline--fa{margin-right:.25rem}.dashboard-builder .modal-footer{padding:10px}.dashboard-builder .modal-cover{width:100%;height:100%;opacity:.4;background:#000;position:absolute;top:0;left:0;z-index:9}.dashboard-builder .modal.share-dashboard{width:500px;top:50px;left:50%;transform:translateX(-50%)}.dashboard-builder .modal.embed-dashboard{width:75%;max-width:700px;top:50%;left:50%;transform:translate(-50%,-50%)}.dashboard-builder .modal.embed-dashboard .modal-button{position:fixed;bottom:15px;left:15px}.dashboard-builder .editor-dashboard-switch .modal-body{padding:0}.dashboard-builder .paragraph{padding:0 10px;overflow:hidden;width:100%}.dashboard-builder .paragraph p{margin:0}.dashboard-builder .chart-container{background:#fff;justify-content:center;align-items:center;position:absolute;border-radius:5px;display:flex;flex-direction:column;transition:box-shadow .3s;z-index:1}.dashboard-builder .chart-container:hover{box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23);z-index:7}.dashboard-builder .chart-container:hover .config-buttons,.dashboard-builder .chart-container:hover .resizers{visibility:visible}.dashboard-builder .chart-container img{border-radius:5px}.dashboard-builder .chart-container>.keen-dataviz{overflow:hidden;width:100%;margin-top:0;border:1px solid #eee}.dashboard-builder .chart-container .chart-title{height:30px;width:100%;border-bottom:0;display:flex;align-items:left;justify-content:left;z-index:3}.dashboard-builder .chart-container .chart-title input{border:0;background:inherit;outline:none;width:100%;text-align:left;font-size:14px;color:#222}.dashboard-builder .chart-container .chart-subtitle{height:25px;width:100%;border-bottom:0;display:flex;align-items:left;justify-content:left;z-index:3}.dashboard-builder .chart-container .chart-subtitle input{border:0;background:inherit;outline:none;width:100%;text-align:left;font-size:14px;color:#6f6f6f}.dashboard-builder .chart-container-viewer{background:#fff;justify-content:center;align-items:center;border-radius:5px;display:flex;flex-direction:column;transition:box-shadow .3s;z-index:1;position:relative}.dashboard-builder .chart-container-viewer .c3-tooltip-container{z-index:9}.dashboard-builder .chart-container-viewer:hover .explorer-button{visibility:visible}.dashboard-builder .chart-container-viewer img{border-radius:5px}.dashboard-builder .chart-container-viewer>.keen-dataviz{overflow:hidden;width:100%;margin-top:0;border:1px solid #eee}.dashboard-builder .chart-container-viewer .chart-title{height:30px;width:100%;border-bottom:0;display:flex;align-items:left;justify-content:left;z-index:3}.dashboard-builder .chart-container-viewer .chart-title input{border:0;background:inherit;outline:none;width:100%;text-align:left;font-size:14px;color:#222}.dashboard-builder .chart-container-viewer .chart-subtitle{height:25px;width:100%;border-bottom:0;display:flex;align-items:left;justify-content:left;z-index:3}.dashboard-builder .chart-container-viewer .chart-subtitle input{border:0;background:inherit;outline:none;width:100%;text-align:left;font-size:14px;color:#6f6f6f}.dashboard-builder .config-buttons{position:absolute;top:-1px;right:-35px;display:flex;flex-direction:column;visibility:hidden;padding-left:5px;opacity:1}.dashboard-builder .config-buttons div{cursor:pointer;width:30px;height:30px;background:#000;color:#fff;font-size:15px;box-sizing:border-box;margin-bottom:2px;display:flex;align-items:center;justify-content:center;opacity:.7;border-radius:3px}.dashboard-builder .config-buttons div:hover{background:#424242}.dashboard-builder .explorer-button{position:absolute;z-index:4;top:2px;right:2px;cursor:pointer;width:30px;height:30px;background:#000;color:#fff;box-sizing:border-box;opacity:.7;border-radius:3px;padding-left:8px;padding-top:2px;visibility:hidden}.dashboard-builder .explorer-button a{color:#fff}.dashboard-builder .explorer-button:hover{background:#424242}.dashboard-builder .resizers{position:absolute;height:100%;width:100%;border:1px dashed #7c7c7c;border-radius:5px;visibility:hidden}.dashboard-builder .resizers div{position:absolute}.dashboard-builder .top-left{left:0;top:0;cursor:nwse-resize;width:10px;height:10px;z-index:4}.dashboard-builder .top-right{right:0;top:0;cursor:nesw-resize;width:10px;height:10px;z-index:4}.dashboard-builder .bottom-left{left:0;bottom:0;cursor:nesw-resize;width:10px;height:10px;z-index:4}.dashboard-builder .bottom-right{right:1px;bottom:1px;cursor:nwse-resize;width:12px;height:12px;z-index:4;border-style:solid;border-width:0 0 12px 12px;border-color:transparent transparent #7c7c7c}.dashboard-builder .left{left:0}.dashboard-builder .left,.dashboard-builder .right{top:0;height:100%;width:5px;cursor:ew-resize;z-index:3}.dashboard-builder .right{right:0}.dashboard-builder .top{top:0}.dashboard-builder .bottom,.dashboard-builder .top{left:0;width:100%;height:5px;cursor:ns-resize;z-index:3}.dashboard-builder .bottom{bottom:0}.dashboard-builder .keen-dataviz-table th{z-index:0}.dashboard-builder .chart-draggable{position:absolute;left:10px;width:calc(100% - 20px);height:calc(100% - 20px);z-index:2;cursor:move}.dashboard-builder .search{width:65%;height:100%;display:flex;flex-direction:row;font-size:15px;align-items:center}.dashboard-builder .search svg{margin-right:10px}.dashboard-builder .search input{border:0;background:inherit;width:100%;height:100%;outline:none;font-size:20px}.dashboard-builder .sorting-select{width:200px;margin-top:15px}.dashboard-builder .screen-resize-icon{position:absolute;left:48%;width:100px;display:flex;justify-content:space-between;color:hsla(0,0%,44%,.65882);align-items:center}.dashboard-builder .screen-resize-icon svg{cursor:pointer}.dashboard-builder .screen-resize-icon svg:hover{color:#000}.dashboard-builder .save-dashboard-button{border-radius:5px;padding:5px;cursor:pointer;transition:.3s;width:80px;height:31px;margin-right:20px;margin-left:20px;text-align:center;color:#fff;background:#2f97b9;text-transform:uppercase}.dashboard-builder .save-dashboard-button svg{margin-right:.25rem}.dashboard-builder .settings{width:350px;background:#f3f7f9}.dashboard-builder .settings h4{margin-top:2rem;margin-bottom:.5rem;font-weight:400}.dashboard-builder .settings-input{color:#333;font-size:14px;height:38px}.dashboard-builder .settings-input,.dashboard-builder .settings-textarea{width:100%;border-radius:4px;padding:9px;border:1px solid #ccc;outline:none}.dashboard-builder .settings-textarea{color:gray;font-size:16px;height:50%}.dashboard-builder .settings-select>div{width:100%}.dashboard-builder .settings-chart{padding:0}.dashboard-builder .settings-chart-saved-query{padding:1rem}.dashboard-builder .settings-chart #dashboard-builder-explorer .keen-explorer .panel-main{min-width:0;max-width:330px;box-shadow:none}.dashboard-builder .settings-chart .keen-theme-builder{padding:0}.dashboard-builder .settings-chart .keen-theme-builder .builder__header{display:none}.dashboard-builder .settings-chart h4:first-child{margin-top:0}.dashboard-builder .react-tabs__tab{width:50%;padding:10px;text-align:center;cursor:pointer;color:#fff;outline:none;border:0;background:#2f97b9}.dashboard-builder .react-tabs__tab:first-of-type{border-right:none}.dashboard-builder .react-tabs__tab--selected{color:#000;border-bottom:none;background:#fff;border-top:1px solid #eee}.dashboard-builder .react-tabs__tab-list{display:flex;flex-direction:row;list-style:none;justify-content:space-between;padding:0;margin-bottom:0}.dashboard-builder .react-tabs__tab-panel{border:0}.dashboard-builder .react-tabs__tab-panel--selected{padding:10px 20px 20px;border:0;visibility:visible;height:calc(100vh - 40px);overflow-y:auto}.dashboard-builder .react-tabs__tab-panel--selected .keen-theme-builder{padding:0}.dashboard-builder .settings-container{min-width:350px;min-height:100%;background:#fff;border-left:1px solid #eee;position:relative;background:#f3f7f9;overflow:auto}.dashboard-builder .settings-container .color-palette__item .color-picker__popover{left:auto;right:0}.dashboard-builder .settings-container .color-palette__item:nth-child(5n+1) .color-picker__popover,.dashboard-builder .settings-container .color-palette__item:nth-child(5n+2) .color-picker__popover{left:0;right:auto}.dashboard-builder .settings-container .color-palette__item:nth-child(5n+3) .color-picker__popover{left:-100%;right:auto}.dashboard-builder .settings-container .color-palette__item:nth-child(5n+4) .color-picker__popover{left:auto;right:-100%}.dashboard-builder .new-dashboard-button{border-radius:5px;padding:1rem;cursor:pointer;color:#fff;background:#2f97b9;text-align:left;white-space:nowrap;display:flex;align-items:center}.dashboard-builder .new-dashboard-button:hover{color:#fff;background:#2f97b9}.dashboard-builder .new-dashboard-button svg{margin-right:.5rem}.dashboard-builder .container{width:1200px;background:#f5f5f5;min-height:100vh;display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start}.dashboard-builder .top-toolbar{flex:1 100%;padding:20px;display:flex;flex-direction:row;justify-content:space-between;width:100%;border-bottom:1px solid #cfcfcf}.dashboard-builder .message{width:100%;text-align:center;padding:20px}.dashboard-builder .new-chart-info,.dashboard-builder .settings-loading{position:absolute;width:100%;height:100%;display:flex;justify-content:center;align-items:center;background:hsla(0,0%,98%,.9);border-bottom-left-radius:5px;border-bottom-right-radius:5px}.dashboard-builder .settings-loading{top:0;left:0}.dashboard-builder .error-message{z-index:1;background:#fff;padding:20px;text-align:center;color:red;border:1px solid red;border-radius:5px}.dashboard-builder .dry-run-message{position:absolute;left:0;bottom:0;padding:1rem;background:hsla(0,0%,44%,.65882);color:#fff;border-radius:0 1rem 0 0}.dashboard-builder .select-palette-button select{margin-right:20px;border-radius:5px;padding:8px;width:100px;height:31px;background:#fff}.dashboard-builder .preview{padding:10px}.dashboard-builder .preview a{color:#000}.dashboard-builder .embed-icon:hover,.dashboard-builder .preview:hover a,.dashboard-builder .share-icon:hover{color:#414141}.dashboard-builder .quill{height:70%}.dashboard-builder .edit-dashboard-button{border-radius:5px;padding:5px 10px;cursor:pointer;width:fit-content;text-align:center;color:#fff;background:#2f97b9;text-decoration:none;flex-shrink:0;margin:0 0 0 .5em}.dashboard-builder .edit-dashboard-button__link{display:block;color:#fff;text-decoration:none}.dashboard-builder .edit-dashboard-button__link:hover{color:#fff;text-decoration:none}.dashboard-builder .big-icon{font-size:50px;color:#eee}.dashboard-builder .loading{font-size:50px;animation:a 1s ease infinite;z-index:12}.dashboard-builder .settings-theme-builder,.dashboard-builder .settings-theme-builder .keen-theme-builder{padding:0}.dashboard-builder .settings-theme-builder .keen-theme-builder .builder__header{display:none}.dashboard-builder .switch-dashboard{width:400px;z-index:9}.dashboard-builder .__react_component_tooltip{padding:3px 5px}.dashboard-builder .keen-theme-builder{background-color:#fff}.dashboard-builder .keen-theme-builder .color-picker__popover{z-index:9}.dashboard-builder .keen-theme-builder .builder__header{font-size:1rem}.dashboard-builder .heatmap-container .keen-dataviz-rendering-vertical{height:calc(100% - 50px)}.dashboard-builder .keen-dataviz .rangeable-container{margin:2rem auto;width:75%}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-progress,.dashboard-builder .keen-dataviz .rangeable-container .rangeable-track{height:4px}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-handle{width:16px;height:16px;border-width:4px}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-tooltip{border-radius:0;font-weight:400;padding:3px 9px}.dashboard-builder .c3-circle{fill:currentColor}@media only screen and (max-width:1300px){.dashboard-builder .dashboard{min-height:calc(100vh - 130px)}}@media only screen and (min-width:1800px){.dashboard-builder .toolbar-bar{visibility:hidden}.dashboard-builder .toolbar-container{left:0}.dashboard-builder .dashboard-container{padding-left:90px}}.dashboard-builder .export-icon{cursor:pointer}.dashboard-builder .switcher{margin-bottom:.5rem;display:block;position:relative;overflow:hidden}.dashboard-builder .switcher__input:checked~.switcher__toggle{border-color:#3ed08e;background-color:#dcf9eb}.dashboard-builder .switcher__input:checked~.switcher__toggle .switcher__switch{right:2px;background-color:#3ed08e}.dashboard-builder .switcher__input:checked~.switcher__value .on{display:block}.dashboard-builder .switcher__input:checked~.switcher__value .off{display:none}.dashboard-builder .switcher__toggle{position:relative;width:36px;height:20px;margin-right:.25rem;margin-left:.5rem;border:1px solid #ccc;background-color:#fff;border-radius:10px;display:inline-block}.dashboard-builder .switcher__switch{position:absolute;top:2px;bottom:0;right:18px;width:14px;height:14px;margin:0;background:#ccc;border-radius:50%;flex-shrink:0;transition:right .15s ease-in-out,background-color .15s ease-in-out}.dashboard-builder .switcher__title{font-weight:800}.dashboard-builder .switcher__label{display:flex;align-items:center;cursor:pointer}.dashboard-builder .switcher__input{position:absolute;left:-999px}.dashboard-builder .switcher__value{margin-left:.25rem;color:#b3b5b6}.dashboard-builder .switcher__value .on{display:none}.dashboard-builder .switcher__value .off{display:block}.dashboard-builder .accordion__item__heading{padding:.5rem 1rem;border-top:1px solid #f3f3f3;border-bottom:2px solid hsla(0,0%,80%,.2);background-color:#fff;cursor:pointer}.dashboard-builder .accordion__item__heading .heading__icon{margin-right:1rem;transition:transform .15s ease-in-out}.dashboard-builder .accordion__item__content{padding:1rem;animation:b .35s ease-in}.dashboard-builder .accordion__item.open .accordion__item__heading{background-color:#d9effa}.dashboard-builder .accordion__item.open .accordion__item__heading .heading__icon{transform:rotate(90deg)}@keyframes a{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes b{0%{opacity:0}to{opacity:1}} \ No newline at end of file +body{margin:0}.dashboard-builder{width:100%;margin:0;height:100vh;position:relative;display:flex;justify-content:center;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;background:#f9f9f9;color:#000;overflow:hidden;box-sizing:border-box}.dashboard-builder.container{width:1200px;min-height:100vh;display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start;justify-content:flex-start;background:#f5f5f5}.dashboard-builder .dashboard{position:relative;width:100%;min-height:calc(100vh - 130px);padding:20px;box-sizing:border-box}.dashboard-builder .dashboard-container{width:100%;overflow:auto;padding-left:60px}.dashboard-builder .dashboard-container-viewer{width:100%;overflow:auto}.dashboard-builder .dashboard-container-viewer .dashboard-top-bar{width:100%;z-index:11}.dashboard-builder .dashboard-container-viewer .dashboard-top-bar .export-icon{margin:0 1rem}.dashboard-builder .dashboard-inner-container{background:#fdfdfd;margin:auto}.dashboard-builder .dashboard-title{height:60px;width:100%;position:relative;display:flex;align-items:center;justify-content:space-between;padding:.5rem}.dashboard-builder .dashboard-title input{border:0;background:inherit;width:100%;font-size:30px;outline:none;padding:5px 5px 5px 0}.dashboard-builder .dashboard-title .title{padding:20px}.dashboard-builder .dashboard-title a{text-decoration:none}.dashboard-builder .dashboard-top-bar{height:50px;width:100%;background:#f9f9f9;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;position:sticky;top:0;left:0;z-index:8}.dashboard-builder .dashboard-top-bar .share{position:relative}.dashboard-builder .dashboard-top-bar .embed,.dashboard-builder .dashboard-top-bar .share{padding:10px;cursor:pointer}.dashboard-builder .dashboard-list-item{width:20%;min-width:180px;height:200px;padding:10px;position:relative}.dashboard-builder .dashboard-list-item:hover>.dashboard-list-item-buttons{visibility:visible}.dashboard-builder .dashboard-list-item-box{background:#fff;display:flex;justify-content:center;align-items:center;border:1px solid #eee;border-radius:5px;width:100%;height:100%;transition:box-shadow .3s;color:#000;padding:10px;text-align:center}.dashboard-builder .dashboard-list-item-box:hover{box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23)}.dashboard-builder .dashboard-list-item-box time{position:absolute;bottom:15px;left:20px;color:#aaa;font-size:12px}.dashboard-builder .dashboard-list-item-buttons{position:absolute;top:15px;right:15px;cursor:pointer;visibility:hidden}.dashboard-builder .dashboard-saved-message{position:absolute;top:.5rem;left:45%;padding:.5rem 1rem;border-radius:5px;background:#333;color:#fff;font-size:.85rem;z-index:10}.dashboard-builder .dashboard img{width:100%;height:100%}.dashboard-builder .toolbar{position:absolute;left:0;top:0;width:60px;height:100%;z-index:9}.dashboard-builder .toolbar-bar{width:100%;height:100%;position:relative;z-index:6;border-right:1px solid #929191;padding:20px;background:#2f97b9;color:#fff;cursor:pointer}.dashboard-builder .toolbar-bar h3{transform:translateY(100%) rotate(-90deg);transform-origin:0 0;white-space:nowrap;overflow:hidden;position:absolute;top:110px;left:15px;color:#fff}.dashboard-builder .toolbar-container{position:absolute;left:-135px;height:100%;border-right:1px solid #929191;background:#fff;box-shadow:3px 3px 6px #eee;border-right:0;overflow-y:auto;transition:left .25s ease-out}.dashboard-builder .toolbar-hidden{width:90px;display:flex;flex-direction:row;flex-wrap:wrap;padding:10px 10px 10px 20px}.dashboard-builder .toolbar-hidden>h4{font-size:.7rem;width:100%;margin:2rem 0 .5rem;font-weight:400;text-transform:uppercase}.dashboard-builder .toolbar-hidden>h4:first-of-type{margin-top:1rem}.dashboard-builder .toolbar-hidden p{cursor:pointer;z-index:5;margin:0;padding:5px;width:50px;height:50px;display:flex;align-items:center;justify-content:center;background:#fff}.dashboard-builder .toolbar-hidden .metric-chart-icon{font-size:20px;font-weight:600}.dashboard-builder .toolbar-visible{left:60px}.dashboard-builder .burger-icon{padding:0 20px;cursor:pointer;position:relative}.dashboard-builder .burger-icon .fa-bars{color:#2f97b9}.dashboard-builder .modal{display:block;position:absolute;background:#fff;border:1px solid #eee;border-radius:5px;z-index:10;top:0;left:20px;right:auto;bottom:auto;font-size:14px;width:250px;box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23)}.dashboard-builder .modal-header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:15px;border-bottom:1px solid #eee;font-size:17px}.dashboard-builder .modal-header .svg-inline--fa{cursor:pointer}.dashboard-builder .modal .dashboards-filter{padding:.25rem 1rem;border-bottom:1px solid #eee;display:flex;justify-content:space-between}.dashboard-builder .modal .dashboards-filter input{font-size:14px}.dashboard-builder .modal-body{padding:15px;max-height:300px;overflow:auto}.dashboard-builder .modal-body .item{padding:1rem;border-bottom:1px solid #eee;display:flex;flex-direction:column}.dashboard-builder .modal-body .item:hover{background:#f3f3f3}.dashboard-builder .modal-body .item .time{color:#aaa;font-size:12px}.dashboard-builder .modal-body .active{background:#f9f9f9}.dashboard-builder .modal-body .active .fa-angle-double-right{color:#2f97b9;padding-right:5px}.dashboard-builder .modal-body .modal-input{padding:8px 4px;margin-bottom:.5em;width:100%}.dashboard-builder .modal-body .prism{margin-bottom:40px;white-space:pre-wrap}.dashboard-builder .modal-button{border-radius:5px;padding:5px 15px;cursor:pointer;color:#fff;background:#2f97b9;border:none;font-size:14px}.dashboard-builder .modal-button .svg-inline--fa{margin-right:.25rem}.dashboard-builder .modal-footer{padding:10px}.dashboard-builder .modal-cover{width:100%;height:100%;opacity:.4;background:#000;position:absolute;top:0;left:0;z-index:9}.dashboard-builder .modal.share-dashboard{width:500px;top:50px;left:50%;transform:translateX(-50%)}.dashboard-builder .modal.embed-dashboard{width:75%;max-width:700px;top:50%;left:50%;transform:translate(-50%,-50%)}.dashboard-builder .modal.embed-dashboard .modal-button{position:fixed;bottom:15px;left:15px}.dashboard-builder .editor-dashboard-switch .modal-body{padding:0}.dashboard-builder .paragraph{padding:0 10px;overflow:hidden;width:100%}.dashboard-builder .paragraph p{margin:0}.dashboard-builder .chart-container{background:#fff;justify-content:center;align-items:center;position:absolute;border-radius:5px;display:flex;flex-direction:column;transition:box-shadow .3s;z-index:1}.dashboard-builder .chart-container:hover{box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23);z-index:7}.dashboard-builder .chart-container:hover .config-buttons,.dashboard-builder .chart-container:hover .resizers{visibility:visible}.dashboard-builder .chart-container img{border-radius:5px}.dashboard-builder .chart-container>.keen-dataviz{overflow:auto;width:100%;margin-top:0;border:1px solid #eee}.dashboard-builder .chart-container .chart-title{height:30px;width:100%;border-bottom:0;display:flex;align-items:left;justify-content:left;z-index:3}.dashboard-builder .chart-container .chart-title input{border:0;background:inherit;outline:none;width:100%;text-align:left;font-size:14px;color:#222}.dashboard-builder .chart-container .chart-subtitle{height:25px;width:100%;border-bottom:0;display:flex;align-items:left;justify-content:left;z-index:3}.dashboard-builder .chart-container .chart-subtitle input{border:0;background:inherit;outline:none;width:100%;text-align:left;font-size:14px;color:#6f6f6f}.dashboard-builder .chart-container-viewer{background:#fff;justify-content:center;align-items:center;border-radius:5px;display:flex;flex-direction:column;transition:box-shadow .3s;z-index:1;position:relative}.dashboard-builder .chart-container-viewer .c3-tooltip-container{z-index:9}.dashboard-builder .chart-container-viewer:hover .explorer-button{visibility:visible}.dashboard-builder .chart-container-viewer img{border-radius:5px}.dashboard-builder .chart-container-viewer>.keen-dataviz{overflow:auto;width:100%;margin-top:0;border:1px solid #eee}.dashboard-builder .chart-container-viewer .chart-title{height:30px;width:100%;border-bottom:0;display:flex;align-items:left;justify-content:left;z-index:3}.dashboard-builder .chart-container-viewer .chart-title input{border:0;background:inherit;outline:none;width:100%;text-align:left;font-size:14px;color:#222}.dashboard-builder .chart-container-viewer .chart-subtitle{height:25px;width:100%;border-bottom:0;display:flex;align-items:left;justify-content:left;z-index:3}.dashboard-builder .chart-container-viewer .chart-subtitle input{border:0;background:inherit;outline:none;width:100%;text-align:left;font-size:14px;color:#6f6f6f}.dashboard-builder .config-buttons{position:absolute;top:-1px;right:-35px;display:flex;flex-direction:column;visibility:hidden;padding-left:5px;opacity:1}.dashboard-builder .config-buttons div{cursor:pointer;width:30px;height:30px;background:#000;color:#fff;font-size:15px;box-sizing:border-box;margin-bottom:2px;display:flex;align-items:center;justify-content:center;opacity:.7;border-radius:3px}.dashboard-builder .config-buttons div:hover{background:#424242}.dashboard-builder .explorer-button{position:absolute;z-index:4;top:2px;right:2px;cursor:pointer;width:30px;height:30px;background:#000;color:#fff;box-sizing:border-box;opacity:.7;border-radius:3px;padding-left:8px;padding-top:2px;visibility:hidden}.dashboard-builder .explorer-button a{color:#fff}.dashboard-builder .explorer-button:hover{background:#424242}.dashboard-builder .resizers{position:absolute;height:100%;width:100%;border:1px dashed #7c7c7c;border-radius:5px;visibility:hidden}.dashboard-builder .resizers div{position:absolute}.dashboard-builder .top-left{left:0;top:0;cursor:nwse-resize;width:10px;height:10px;z-index:4}.dashboard-builder .top-right{right:0;top:0;cursor:nesw-resize;width:10px;height:10px;z-index:4}.dashboard-builder .bottom-left{left:0;bottom:0;cursor:nesw-resize;width:10px;height:10px;z-index:4}.dashboard-builder .bottom-right{right:1px;bottom:1px;cursor:nwse-resize;width:12px;height:12px;z-index:4;border-style:solid;border-width:0 0 12px 12px;border-color:transparent transparent #7c7c7c}.dashboard-builder .left{left:0}.dashboard-builder .left,.dashboard-builder .right{top:0;height:100%;width:5px;cursor:ew-resize;z-index:3}.dashboard-builder .right{right:0}.dashboard-builder .top{top:0}.dashboard-builder .bottom,.dashboard-builder .top{left:0;width:100%;height:5px;cursor:ns-resize;z-index:3}.dashboard-builder .bottom{bottom:0}.dashboard-builder .keen-dataviz-table th{z-index:0}.dashboard-builder .chart-draggable{position:absolute;left:10px;width:calc(100% - 20px);height:calc(100% - 20px);z-index:2;cursor:move}.dashboard-builder .search{width:65%;height:100%;display:flex;flex-direction:row;font-size:15px;align-items:center}.dashboard-builder .search svg{margin-right:10px}.dashboard-builder .search input{border:0;background:inherit;width:100%;height:100%;outline:none;font-size:20px}.dashboard-builder .sorting-select{width:200px;margin-top:15px}.dashboard-builder .screen-resize-icon{position:absolute;left:48%;width:100px;display:flex;justify-content:space-between;color:hsla(0,0%,44%,.65882);align-items:center}.dashboard-builder .screen-resize-icon svg{cursor:pointer}.dashboard-builder .screen-resize-icon svg:hover{color:#000}.dashboard-builder .save-dashboard-button{border-radius:5px;padding:5px;cursor:pointer;transition:.3s;width:80px;height:31px;margin-right:20px;margin-left:20px;text-align:center;color:#fff;background:#2f97b9;text-transform:uppercase}.dashboard-builder .save-dashboard-button svg{margin-right:.25rem}.dashboard-builder .settings{width:350px;background:#f3f7f9}.dashboard-builder .settings h4{margin-top:2rem;margin-bottom:.5rem;font-weight:400}.dashboard-builder .settings-input{color:#333;font-size:14px;height:38px}.dashboard-builder .settings-input,.dashboard-builder .settings-textarea{width:100%;border-radius:4px;padding:9px;border:1px solid #ccc;outline:none}.dashboard-builder .settings-textarea{color:gray;font-size:16px;height:50%}.dashboard-builder .settings-select>div{width:100%}.dashboard-builder .settings-chart{padding:0}.dashboard-builder .settings-chart-saved-query{padding:1rem}.dashboard-builder .settings-chart #dashboard-builder-explorer .keen-explorer .panel-main{min-width:0;max-width:330px;box-shadow:none}.dashboard-builder .settings-chart .keen-theme-builder{padding:0}.dashboard-builder .settings-chart .keen-theme-builder .builder__header{display:none}.dashboard-builder .settings-chart h4:first-child{margin-top:0}.dashboard-builder .react-tabs__tab{width:50%;padding:10px;text-align:center;cursor:pointer;color:#fff;outline:none;border:0;background:#2f97b9}.dashboard-builder .react-tabs__tab:first-of-type{border-right:none}.dashboard-builder .react-tabs__tab--selected{color:#000;border-bottom:none;background:#fff;border-top:1px solid #eee}.dashboard-builder .react-tabs__tab-list{display:flex;flex-direction:row;list-style:none;justify-content:space-between;padding:0;margin-bottom:0}.dashboard-builder .react-tabs__tab-panel{border:0}.dashboard-builder .react-tabs__tab-panel--selected{padding:10px 20px 20px;border:0;visibility:visible;height:calc(100vh - 40px);overflow-y:auto}.dashboard-builder .react-tabs__tab-panel--selected .keen-theme-builder{padding:0}.dashboard-builder .settings-container{min-width:350px;min-height:100%;background:#fff;border-left:1px solid #eee;position:relative;background:#f3f7f9;overflow:auto}.dashboard-builder .settings-container .color-palette__item .color-picker__popover{left:auto;right:0}.dashboard-builder .settings-container .color-palette__item:nth-child(5n+1) .color-picker__popover,.dashboard-builder .settings-container .color-palette__item:nth-child(5n+2) .color-picker__popover{left:0;right:auto}.dashboard-builder .settings-container .color-palette__item:nth-child(5n+3) .color-picker__popover{left:-100%;right:auto}.dashboard-builder .settings-container .color-palette__item:nth-child(5n+4) .color-picker__popover{left:auto;right:-100%}.dashboard-builder .new-dashboard-button{border-radius:5px;padding:1rem;cursor:pointer;color:#fff;background:#2f97b9;text-align:left;white-space:nowrap;display:flex;align-items:center}.dashboard-builder .new-dashboard-button:hover{color:#fff;background:#2f97b9}.dashboard-builder .new-dashboard-button svg{margin-right:.5rem}.dashboard-builder .container{width:1200px;background:#f5f5f5;min-height:100vh;display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start}.dashboard-builder .top-toolbar{flex:1 100%;padding:20px;display:flex;flex-direction:row;justify-content:space-between;width:100%;border-bottom:1px solid #cfcfcf}.dashboard-builder .message{width:100%;text-align:center;padding:20px}.dashboard-builder .new-chart-info,.dashboard-builder .settings-loading{position:absolute;width:100%;height:100%;display:flex;justify-content:center;align-items:center;background:hsla(0,0%,98%,.9);border-bottom-left-radius:5px;border-bottom-right-radius:5px}.dashboard-builder .settings-loading{top:0;left:0}.dashboard-builder .error-message{z-index:1;background:#fff;padding:20px;text-align:center;color:red;border:1px solid red;border-radius:5px}.dashboard-builder .dry-run-message{position:absolute;left:0;bottom:0;padding:1rem;background:hsla(0,0%,44%,.65882);color:#fff;border-radius:0 1rem 0 0}.dashboard-builder .select-palette-button select{margin-right:20px;border-radius:5px;padding:8px;width:100px;height:31px;background:#fff}.dashboard-builder .preview{padding:10px}.dashboard-builder .preview a{color:#000}.dashboard-builder .embed-icon:hover,.dashboard-builder .preview:hover a,.dashboard-builder .share-icon:hover{color:#414141}.dashboard-builder .quill{height:70%}.dashboard-builder .edit-dashboard-button{border-radius:5px;padding:5px 10px;cursor:pointer;width:fit-content;text-align:center;color:#fff;background:#2f97b9;text-decoration:none;flex-shrink:0;margin:0 0 0 .5em}.dashboard-builder .edit-dashboard-button__link{display:block;color:#fff;text-decoration:none}.dashboard-builder .edit-dashboard-button__link:hover{color:#fff;text-decoration:none}.dashboard-builder .big-icon{font-size:50px;color:#eee}.dashboard-builder .loading{font-size:50px;animation:a 1s ease infinite;z-index:12}.dashboard-builder .settings-theme-builder,.dashboard-builder .settings-theme-builder .keen-theme-builder{padding:0}.dashboard-builder .settings-theme-builder .keen-theme-builder .builder__header{display:none}.dashboard-builder .switch-dashboard{width:400px;z-index:9}.dashboard-builder .__react_component_tooltip{padding:3px 5px}.dashboard-builder .keen-theme-builder{background-color:#fff}.dashboard-builder .keen-theme-builder .color-picker__popover{z-index:9}.dashboard-builder .keen-theme-builder .builder__header{font-size:1rem}.dashboard-builder .heatmap-container .keen-dataviz-rendering-vertical{height:calc(100% - 50px)}.dashboard-builder .keen-dataviz .rangeable-container{margin:2rem auto;width:75%}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-progress,.dashboard-builder .keen-dataviz .rangeable-container .rangeable-track{height:4px}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-handle{width:16px;height:16px;border-width:4px}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-tooltip{border-radius:0;font-weight:400;padding:3px 9px}.dashboard-builder .c3-circle{fill:currentColor}@media only screen and (max-width:1300px){.dashboard-builder .dashboard{min-height:calc(100vh - 130px)}}@media only screen and (min-width:1800px){.dashboard-builder .toolbar-bar{visibility:hidden}.dashboard-builder .toolbar-container{left:0}.dashboard-builder .dashboard-container{padding-left:90px}}.dashboard-builder .export-icon{cursor:pointer}.dashboard-builder .switcher{margin-bottom:.5rem;display:block;position:relative;overflow:hidden}.dashboard-builder .switcher__input:checked~.switcher__toggle{border-color:#3ed08e;background-color:#dcf9eb}.dashboard-builder .switcher__input:checked~.switcher__toggle .switcher__switch{right:2px;background-color:#3ed08e}.dashboard-builder .switcher__input:checked~.switcher__value .on{display:block}.dashboard-builder .switcher__input:checked~.switcher__value .off{display:none}.dashboard-builder .switcher__toggle{position:relative;width:36px;height:20px;margin-right:.25rem;margin-left:.5rem;border:1px solid #ccc;background-color:#fff;border-radius:10px;display:inline-block}.dashboard-builder .switcher__switch{position:absolute;top:2px;bottom:0;right:18px;width:14px;height:14px;margin:0;background:#ccc;border-radius:50%;flex-shrink:0;transition:right .15s ease-in-out,background-color .15s ease-in-out}.dashboard-builder .switcher__title{font-weight:800}.dashboard-builder .switcher__label{display:flex;align-items:center;cursor:pointer}.dashboard-builder .switcher__input{position:absolute;left:-999px}.dashboard-builder .switcher__value{margin-left:.25rem;color:#b3b5b6}.dashboard-builder .switcher__value .on{display:none}.dashboard-builder .switcher__value .off{display:block}.dashboard-builder .accordion__item__heading{padding:.5rem 1rem;border-top:1px solid #f3f3f3;border-bottom:2px solid hsla(0,0%,80%,.2);background-color:#fff;cursor:pointer}.dashboard-builder .accordion__item__heading .heading__icon{margin-right:1rem;transition:transform .15s ease-in-out}.dashboard-builder .accordion__item__content{padding:1rem;animation:b .35s ease-in}.dashboard-builder .accordion__item.open .accordion__item__heading{background-color:#d9effa}.dashboard-builder .accordion__item.open .accordion__item__heading .heading__icon{transform:rotate(90deg)}@keyframes a{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes b{0%{opacity:0}to{opacity:1}} \ No newline at end of file diff --git a/dist/viewer.min.js b/dist/viewer.min.js index a8650a7..220a692 100644 --- a/dist/viewer.min.js +++ b/dist/viewer.min.js @@ -656,8 +656,8 @@ P = 16, M = 1, L = 2, - j = 1 / 0, - D = 9007199254740991, + D = 1 / 0, + j = 9007199254740991, R = 17976931348623157e292, z = NaN, N = 4294967295, @@ -720,8 +720,8 @@ Pt = /^\w*$/, Mt = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Lt = /[\\^$.*+?()[\]{}|]/g, - jt = RegExp(Lt.source), - Dt = /^\s+|\s+$/g, + Dt = RegExp(Lt.source), + jt = /^\s+|\s+$/g, Rt = /^\s+/, zt = /\s+$/, Nt = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, @@ -857,10 +857,10 @@ Me = 'object' == typeof t && t && t.Object === Object && t, Le = 'object' == typeof self && self && self.Object === Object && self, - je = Me || Le || Function('return this')(), - De = e && !e.nodeType && e, - Re = De && 'object' == typeof r && r && !r.nodeType && r, - ze = Re && Re.exports === De, + De = Me || Le || Function('return this')(), + je = e && !e.nodeType && e, + Re = je && 'object' == typeof r && r && !r.nodeType && r, + ze = Re && Re.exports === je, Ne = ze && Me.process, Ie = (function() { try { @@ -1316,17 +1316,17 @@ return t.split(''); })(t); } - var jn = hn({ + var Dn = hn({ '&': '&', '<': '<', '>': '>', '"': '"', ''': "'" }); - var Dn = (function t(e) { + var jn = (function t(e) { var n, r = (e = - null == e ? je : Dn.defaults(je.Object(), e, Dn.pick(je, Ee))) + null == e ? De : jn.defaults(De.Object(), e, jn.pick(De, Ee))) .Array, i = e.Date, Zt = e.Error, @@ -1350,7 +1350,7 @@ : '', he = se.toString, pe = le.call(ee), - ge = je._, + ge = De._, me = ne( '^' + le @@ -1368,7 +1368,7 @@ Ce = ve ? ve.allocUnsafe : o, Me = Tn(ee.getPrototypeOf, ee), Le = ee.create, - De = se.propertyIsEnumerable, + je = se.propertyIsEnumerable, Re = oe.splice, Ne = _e ? _e.isConcatSpreadable : o, Ie = _e ? _e.iterator : o, @@ -1379,9 +1379,9 @@ return t({}, '', {}), t; } catch (t) {} })(), - Rn = e.clearTimeout !== je.clearTimeout && e.clearTimeout, - zn = i && i.now !== je.Date.now && i.now, - Nn = e.setTimeout !== je.setTimeout && e.setTimeout, + Rn = e.clearTimeout !== De.clearTimeout && e.clearTimeout, + zn = i && i.now !== De.Date.now && i.now, + Nn = e.setTimeout !== De.setTimeout && e.setTimeout, In = te.ceil, Fn = te.floor, Vn = ee.getOwnPropertySymbols, @@ -1504,7 +1504,7 @@ return e ? t[xi(0, e - 1)] : o; } function kr(t, e) { - return ua(no(t), Dr(e, 0, t.length)); + return ua(no(t), jr(e, 0, t.length)); } function Ar(t) { return ua(no(t)); @@ -1541,12 +1541,12 @@ }) : (t[e] = n); } - function jr(t, e) { + function Dr(t, e) { for (var n = -1, i = e.length, a = r(i), s = null == t; ++n < i; ) a[n] = s ? o : Js(t, e[n]); return a; } - function Dr(t, e, n) { + function jr(t, e, n) { return ( t == t && (n !== o && (t = t <= n ? t : n), @@ -1646,7 +1646,7 @@ var v = a.get(t); if (v) return v; a.set(t, s), - js(t) + Ds(t) ? t.forEach(function(r) { s.add(Rr(r, e, n, r, t, a)); }) @@ -2304,7 +2304,7 @@ } function wi(t, e) { var n = ''; - if (!t || e < 1 || e > D) return n; + if (!t || e < 1 || e > j) return n; do { e % 2 && (n += t), (e = Fn(e / 2)) && (t += t); } while (e); @@ -2318,7 +2318,7 @@ } function ki(t, e) { var n = hu(t); - return ua(n, Dr(e, 0, n.length)); + return ua(n, jr(e, 0, n.length)); } function Ai(t, e, n, r) { if (!Ts(t)) return t; @@ -2388,9 +2388,9 @@ } return i; } - return ji(t, e, Pu, n); + return Di(t, e, Pu, n); } - function ji(t, e, n, r) { + function Di(t, e, n, r) { e = n(e); for ( var i = 0, @@ -2421,7 +2421,7 @@ } return Wn(a, I); } - function Di(t, e) { + function ji(t, e) { for (var n = -1, r = t.length, i = 0, o = []; ++n < r; ) { var a = t[n], s = e ? e(a) : a; @@ -2440,7 +2440,7 @@ if (vs(t)) return Je(t, zi) + ''; if (Rs(t)) return dr ? dr.call(t) : ''; var e = t + ''; - return '0' == e && 1 / t == -j ? '-0' : e; + return '0' == e && 1 / t == -D ? '-0' : e; } function Ni(t, e, n) { var r = -1, @@ -2526,7 +2526,7 @@ var $i = Rn || function(t) { - return je.clearTimeout(t); + return De.clearTimeout(t); }; function Ki(t, e) { if (e) return t.slice(); @@ -2732,18 +2732,18 @@ for (t && e.reverse(); r--; ) { var a = e[r]; if ('function' != typeof a) throw new ie(u); - if (i && !s && 'wrapper' == Do(a)) var s = new mr([], !0); + if (i && !s && 'wrapper' == jo(a)) var s = new mr([], !0); } for (r = s ? r : n; ++r < n; ) { - var l = Do((a = e[r])), - c = 'wrapper' == l ? jo(a) : o; + var l = jo((a = e[r])), + c = 'wrapper' == l ? Do(a) : o; s = c && $o(c[0]) && c[1] == (E | _ | w | k) && !c[4].length && 1 == c[9] - ? s[Do(c[0])].apply(s, c[3]) + ? s[jo(c[0])].apply(s, c[3]) : 1 == a.length && $o(a) ? s[l]() : s.thru(a); @@ -2800,7 +2800,7 @@ })(_, l)) : m && y > 1 && _.reverse(), d && c < y && (_.length = c), - this && this !== je && this instanceof v && (A = b || co(A)), + this && this !== De && this instanceof v && (A = b || co(A)), A.apply(k, _) ); }; @@ -2914,7 +2914,7 @@ }; } var So = - tr && 1 / On(new tr([, -0]))[1] == j + tr && 1 / On(new tr([, -0]))[1] == D ? function(t) { return new tr(t); } @@ -2948,7 +2948,7 @@ g = a; i = a = o; } - var m = d ? o : jo(t), + var m = d ? o : Do(t), A = [t, e, n, i, a, p, g, s, l, c]; if ( (m && @@ -3010,7 +3010,7 @@ return (s -= f.length) < n ? xo(t, e, po, a.placeholder, o, u, f, o, o, n - s) : qe( - this && this !== je && this instanceof a + this && this !== De && this instanceof a ? i : t, this, @@ -3031,7 +3031,7 @@ c = i.length, f = r(c + u), d = - this && this !== je && this instanceof e + this && this !== De && this instanceof e ? a : t; ++l < c; @@ -3047,7 +3047,7 @@ var r = e & v, i = co(t); return function e() { - return (this && this !== je && this instanceof e + return (this && this !== De && this instanceof e ? i : t ).apply(r ? n : this, arguments); @@ -3114,12 +3114,12 @@ function Lo(t) { return Qr(t, ou, Bo); } - var jo = rr + var Do = rr ? function(t) { return rr.get(t); } : Ru; - function Do(t) { + function jo(t) { for ( var e = t.name + '', n = ir[e], @@ -3177,7 +3177,7 @@ ? [] : ((t = ee(t)), Ke(Vn(t), function(e) { - return De.call(t, e); + return je.call(t, e); })); } : Gu, @@ -3212,7 +3212,7 @@ function Wo(t, e) { var n = typeof t; return ( - !!(e = null == e ? D : e) && + !!(e = null == e ? j : e) && ('number' == n || ('symbol' != n && Yt.test(t))) && t > -1 && t % 1 == 0 && @@ -3243,11 +3243,11 @@ ); } function $o(t) { - var e = Do(t), + var e = jo(t), n = hr[e]; if ('function' != typeof n || !(e in vr.prototype)) return !1; if (t === n) return !0; - var r = jo(n); + var r = Do(n); return !!r && t === r[0]; } ((Qn && Go(new Qn(new ArrayBuffer(1))) != lt) || @@ -3320,7 +3320,7 @@ ia = Nn || function(t, e) { - return je.setTimeout(t, e); + return De.setTimeout(t, e); }, oa = sa(Ci); function aa(t, e, n) { @@ -3398,7 +3398,7 @@ function ca(t) { if ('string' == typeof t || Rs(t)) return t; var e = t + ''; - return '0' == e && 1 / t == -j ? '-0' : e; + return '0' == e && 1 / t == -D ? '-0' : e; } function fa(t) { if (null != t) { @@ -3489,7 +3489,7 @@ } var Aa = Po(function(t, e) { var n = null == t ? 0 : t.length, - r = jr(t, e); + r = Dr(t, e); return ( _i( t, @@ -3538,10 +3538,10 @@ return qe(e, o, t); }); } - var ja = Si(function(t, e) { + var Da = Si(function(t, e) { return _s(t) ? Ir(t, e) : []; }), - Da = Si(function(t) { + ja = Si(function(t) { return Gi(Ke(t, _s)); }), Ra = Si(function(t) { @@ -3572,7 +3572,7 @@ n = e ? t[0] : 0, r = this.__wrapped__, i = function(e) { - return jr(e, t); + return Dr(e, t); }; return !(e > 1 || this.__actions__.length) && r instanceof vr && @@ -3639,7 +3639,7 @@ Ja = zn || function() { - return je.Date.now(); + return De.Date.now(); }; function ts(t, e, n) { return ( @@ -3817,7 +3817,7 @@ ? ii : function(t) { return ( - Cs(t) && ce.call(t, 'callee') && !De.call(t, 'callee') + Cs(t) && ce.call(t, 'callee') && !je.call(t, 'callee') ); }, vs = r.isArray, @@ -3858,7 +3858,7 @@ return 'number' == typeof t && t == Bs(t); } function As(t) { - return 'number' == typeof t && t > -1 && t % 1 == 0 && t <= D; + return 'number' == typeof t && t > -1 && t % 1 == 0 && t <= j; } function Ts(t) { var e = typeof t; @@ -3889,12 +3889,12 @@ : function(t) { return Cs(t) && Zr(t) == et; }; - var js = He + var Ds = He ? vn(He) : function(t) { return Cs(t) && Go(t) == nt; }; - function Ds(t) { + function js(t) { return 'string' == typeof t || (!vs(t) && Cs(t) && Zr(t) == rt); } function Rs(t) { @@ -3911,7 +3911,7 @@ }); function Fs(t) { if (!t) return []; - if (bs(t)) return Ds(t) ? Ln(t) : no(t); + if (bs(t)) return js(t) ? Ln(t) : no(t); if (Ie && t[Ie]) return (function(t) { for (var e, n = []; !(e = t.next()).done; ) n.push(e.value); @@ -3922,7 +3922,7 @@ } function Vs(t) { return t - ? (t = Hs(t)) === j || t === -j + ? (t = Hs(t)) === D || t === -D ? (t < 0 ? -1 : 1) * R : t == t ? t @@ -3937,7 +3937,7 @@ return e == e ? (n ? e - n : e) : 0; } function Gs(t) { - return t ? Dr(Bs(t), 0, N) : 0; + return t ? jr(Bs(t), 0, N) : 0; } function Hs(t) { if ('number' == typeof t) return t; @@ -3947,7 +3947,7 @@ t = Ts(e) ? e + '' : e; } if ('string' != typeof t) return 0 === t ? t : +t; - t = t.replace(Dt, ''); + t = t.replace(jt, ''); var n = qt.test(t); return n || Xt.test(t) ? Pe(t.slice(2), n ? 2 : 8) @@ -3974,7 +3974,7 @@ $s = oo(function(t, e, n, r) { ro(e, iu(e), t, r); }), - Ks = Po(jr); + Ks = Po(Dr); var Qs = Si(function(t, e) { t = ee(t); var n = -1, @@ -4141,12 +4141,12 @@ return ri(n, t, e); }; }), - ju = Si(function(t, e) { + Du = Si(function(t, e) { return function(n) { return ri(t, n, e); }; }); - function Du(t, e, n) { + function ju(t, e, n) { var r = iu(e), i = $r(e, r); null != n || @@ -4363,14 +4363,14 @@ return Ur(Ka(t, e), 1); }), (hr.flatMapDeep = function(t, e) { - return Ur(Ka(t, e), j); + return Ur(Ka(t, e), D); }), (hr.flatMapDepth = function(t, e, n) { return (n = n === o ? 1 : Bs(n)), Ur(Ka(t, e), n); }), (hr.flatten = ya), (hr.flattenDeep = function(t) { - return (null == t ? 0 : t.length) ? Ur(t, j) : []; + return (null == t ? 0 : t.length) ? Ur(t, D) : []; }), (hr.flattenDepth = function(t, e) { return (null == t @@ -4446,8 +4446,8 @@ (hr.merge = au), (hr.mergeWith = su), (hr.method = Lu), - (hr.methodOf = ju), - (hr.mixin = Du), + (hr.methodOf = Du), + (hr.mixin = ju), (hr.negate = us), (hr.nthArg = function(t) { return ( @@ -4548,10 +4548,10 @@ }), (hr.sortBy = Za), (hr.sortedUniq = function(t) { - return t && t.length ? Di(t) : []; + return t && t.length ? ji(t) : []; }), (hr.sortedUniqBy = function(t, e) { - return t && t.length ? Di(t, zo(e, 2)) : []; + return t && t.length ? ji(t, zo(e, 2)) : []; }), (hr.split = function(t, e, n) { return ( @@ -4674,12 +4674,12 @@ (hr.valuesIn = function(t) { return null == t ? [] : yn(t, ou(t)); }), - (hr.without = ja), + (hr.without = Da), (hr.words = Eu), (hr.wrap = function(t, e) { return cs(qi(e), t); }), - (hr.xor = Da), + (hr.xor = ja), (hr.xorBy = Ra), (hr.xorWith = za), (hr.zip = Na), @@ -4694,7 +4694,7 @@ (hr.entriesIn = du), (hr.extend = Xs), (hr.extendWith = Ys), - Du(hr, hr), + ju(hr, hr), (hr.add = Uu), (hr.attempt = ku), (hr.camelCase = pu), @@ -4705,7 +4705,7 @@ n === o && ((n = e), (e = o)), n !== o && (n = (n = Hs(n)) == n ? n : 0), e !== o && (e = (e = Hs(e)) == e ? e : 0), - Dr(Hs(t), e, n) + jr(Hs(t), e, n) ); }), (hr.clone = function(t) { @@ -4731,7 +4731,7 @@ (hr.endsWith = function(t, e, n) { (t = qs(t)), (e = zi(e)); var r = t.length, - i = (n = n === o ? r : Dr(Bs(n), 0, r)); + i = (n = n === o ? r : jr(Bs(n), 0, r)); return (n -= e.length) >= 0 && t.slice(n, i) == e; }), (hr.eq = hs), @@ -4739,7 +4739,7 @@ return (t = qs(t)) && kt.test(t) ? t.replace(St, Sn) : t; }), (hr.escapeRegExp = function(t) { - return (t = qs(t)) && jt.test(t) ? t.replace(Lt, '\\$&') : t; + return (t = qs(t)) && Dt.test(t) ? t.replace(Lt, '\\$&') : t; }), (hr.every = function(t, e, n) { var r = vs(t) ? $e : Br; @@ -4784,7 +4784,7 @@ var i = t.length; return ( n < 0 && (n = qn(i + n, 0)), - Ds(t) + js(t) ? n <= i && t.indexOf(e, n) > -1 : !!i && un(t, e, n) > -1 ); @@ -4876,10 +4876,10 @@ (hr.isPlainObject = Ms), (hr.isRegExp = Ls), (hr.isSafeInteger = function(t) { - return ks(t) && t >= -D && t <= D; + return ks(t) && t >= -j && t <= j; }), - (hr.isSet = js), - (hr.isString = Ds), + (hr.isSet = Ds), + (hr.isString = js), (hr.isSymbol = Rs), (hr.isTypedArray = zs), (hr.isUndefined = function(t) { @@ -4949,7 +4949,7 @@ return t && t.length ? mi(t, Bs(e)) : o; }), (hr.noConflict = function() { - return je._ === this && (je._ = ge), this; + return De._ === this && (De._ = ge), this; }), (hr.noop = Ru), (hr.now = Ja), @@ -5036,7 +5036,7 @@ }), (hr.size = function(t) { if (null == t) return 0; - if (bs(t)) return Ds(t) ? Mn(t) : t.length; + if (bs(t)) return js(t) ? Mn(t) : t.length; var e = Go(t); return e == K || e == nt ? t.size : li(t).length; }), @@ -5049,7 +5049,7 @@ return Li(t, e); }), (hr.sortedIndexBy = function(t, e, n) { - return ji(t, e, zo(n, 2)); + return Di(t, e, zo(n, 2)); }), (hr.sortedIndexOf = function(t, e) { var n = null == t ? 0 : t.length; @@ -5063,7 +5063,7 @@ return Li(t, e, !0); }), (hr.sortedLastIndexBy = function(t, e, n) { - return ji(t, e, zo(n, 2), !0); + return Di(t, e, zo(n, 2), !0); }), (hr.sortedLastIndexOf = function(t, e) { if (null == t ? 0 : t.length) { @@ -5076,7 +5076,7 @@ (hr.startsWith = function(t, e, n) { return ( (t = qs(t)), - (n = null == n ? 0 : Dr(Bs(n), 0, t.length)), + (n = null == n ? 0 : jr(Bs(n), 0, t.length)), (e = zi(e)), t.slice(n, n + e.length) == e ); @@ -5156,7 +5156,7 @@ return m; }), (hr.times = function(t, e) { - if ((t = Bs(t)) < 1 || t > D) return []; + if ((t = Bs(t)) < 1 || t > j) return []; var n = N, r = Wn(t, N); (e = zo(e)), (t -= N); @@ -5171,14 +5171,14 @@ }), (hr.toNumber = Hs), (hr.toSafeInteger = function(t) { - return t ? Dr(Bs(t), -D, D) : 0 === t ? t : 0; + return t ? jr(Bs(t), -j, j) : 0 === t ? t : 0; }), (hr.toString = qs), (hr.toUpper = function(t) { return qs(t).toUpperCase(); }), (hr.trim = function(t, e, n) { - if ((t = qs(t)) && (n || e === o)) return t.replace(Dt, ''); + if ((t = qs(t)) && (n || e === o)) return t.replace(jt, ''); if (!t || !(e = zi(e))) return t; var r = Ln(t), i = Ln(e); @@ -5234,7 +5234,7 @@ return l + r; }), (hr.unescape = function(t) { - return (t = qs(t)) && Et.test(t) ? t.replace(wt, jn) : t; + return (t = qs(t)) && Et.test(t) ? t.replace(wt, Dn) : t; }), (hr.uniqueId = function(t) { var e = ++fe; @@ -5245,7 +5245,7 @@ (hr.each = qa), (hr.eachRight = Wa), (hr.first = ba), - Du( + ju( hr, ((Yu = {}), Xr(hr, function(t, e) { @@ -5542,9 +5542,9 @@ hr ); })(); - (je._ = Dn), + (De._ = jn), (i = function() { - return Dn; + return jn; }.call(e, n, e, r)) === o || (r.exports = i); }.call(this)); }.call(this, n(14), n(39)(t))); @@ -7832,7 +7832,7 @@ ); } n.d(e, 'a', function() { - return jt; + return Dt; }), n.d(e, 'b', function() { return Pt; @@ -7989,8 +7989,8 @@ })); var M, L = 'pending', - j = 'settled', - D = 'fulfilled', + D = 'settled', + j = 'fulfilled', R = 'rejected', z = function() {}, N = @@ -8013,14 +8013,14 @@ i = t[n], o = t.then; if ('function' == typeof i) { - n = D; + n = j; try { r = i(r); } catch (t) { W(o, t); } } - H(o, r) || (n === D && U(o, r), n === R && W(o, r)); + H(o, r) || (n === j && U(o, r), n === R && W(o, r)); } function H(t, e) { var n; @@ -8054,16 +8054,16 @@ (t !== e && H(t, e)) || q(t, e); } function q(t, e) { - t._state === L && ((t._state = j), (t._data = e), B(Y, t)); + t._state === L && ((t._state = D), (t._data = e), B(Y, t)); } function W(t, e) { - t._state === L && ((t._state = j), (t._data = e), B($, t)); + t._state === L && ((t._state = D), (t._data = e), B($, t)); } function X(t) { t._then = t._then.forEach(G); } function Y(t) { - (t._state = D), X(t); + (t._state = j), X(t); } function $(e) { (e._state = R), @@ -8113,7 +8113,7 @@ (!e && !t) || this._handled || ((this._handled = !0), this._state === R && N && B(K, this)), - this._state === D || this._state === R + this._state === j || this._state === R ? B(G, n) : this._then.push(n), n.then @@ -8799,7 +8799,7 @@ return vt(t); } }, - jt = + Dt = ((Ot = function(t) { var e = arguments.length > 1 && void 0 !== arguments[1] @@ -9341,10 +9341,10 @@ ] = P[b] = P[x] = P[w] = P[S] = P['[object WeakMap]'] = !1); var M = 'object' == typeof t && t && t.Object === Object && t, L = 'object' == typeof self && self && self.Object === Object && self, - j = M || L || Function('return this')(), - D = e && !e.nodeType && e, - R = D && 'object' == typeof n && n && !n.nodeType && n, - z = R && R.exports === D, + D = M || L || Function('return this')(), + j = e && !e.nodeType && e, + R = j && 'object' == typeof n && n && !n.nodeType && n, + z = R && R.exports === j, N = z && M.process, I = (function() { try { @@ -9383,7 +9383,7 @@ W = Array.prototype, X = Function.prototype, Y = Object.prototype, - $ = j['__core-js_shared__'], + $ = D['__core-js_shared__'], K = X.toString, Q = Y.hasOwnProperty, Z = (H = /[^.]+$/.exec(($ && $.keys && $.keys.IE_PROTO) || '')) @@ -9400,9 +9400,9 @@ ) + '$' ), - et = z ? j.Buffer : void 0, - nt = j.Symbol, - rt = j.Uint8Array, + et = z ? D.Buffer : void 0, + nt = D.Symbol, + rt = D.Uint8Array, it = Y.propertyIsEnumerable, ot = W.splice, at = nt ? nt.toStringTag : void 0, @@ -9414,11 +9414,11 @@ function(t) { return U(q(t)); }), - ct = It(j, 'DataView'), - ft = It(j, 'Map'), - dt = It(j, 'Promise'), - ht = It(j, 'Set'), - pt = It(j, 'WeakMap'), + ct = It(D, 'DataView'), + ft = It(D, 'Map'), + dt = It(D, 'Promise'), + ht = It(D, 'Set'), + pt = It(D, 'WeakMap'), gt = It(Object, 'create'), mt = Gt(ct), vt = Gt(ft), @@ -9638,7 +9638,7 @@ })(t, e, n, r, Lt, i)) ); } - function jt(t) { + function Dt(t) { return ( !( !$t(t) || @@ -9648,7 +9648,7 @@ ) && (Xt(t) ? tt : C).test(Gt(t)) ); } - function Dt(t) { + function jt(t) { if ( !(function(t) { var e = t && t.constructor, @@ -9729,7 +9729,7 @@ var n = (function(t, e) { return null == t ? void 0 : t[e]; })(t, e); - return jt(n) ? n : void 0; + return Dt(n) ? n : void 0; } (St.prototype.clear = function() { (this.__data__ = gt ? gt(null) : {}), (this.size = 0); @@ -9949,7 +9949,7 @@ return null != t && Yt(t.length) && !Xt(t); })(t) ? Ct(t) - : Dt(t); + : jt(t); } n.exports = function(t, e) { return Lt(t, e); @@ -12019,8 +12019,8 @@ object-assign P = s++, M = s++, L = s++, - j = s++, D = s++, + j = s++, R = s++, z = s++, N = s++, @@ -12265,8 +12265,8 @@ object-assign (mt.prototype._stateBeforeCdata1 = pt('C', P, S)), (mt.prototype._stateBeforeCdata2 = pt('D', M, S)), (mt.prototype._stateBeforeCdata3 = pt('A', L, S)), - (mt.prototype._stateBeforeCdata4 = pt('T', j, S)), - (mt.prototype._stateBeforeCdata5 = pt('A', D, S)), + (mt.prototype._stateBeforeCdata4 = pt('T', D, S)), + (mt.prototype._stateBeforeCdata5 = pt('A', j, S)), (mt.prototype._stateBeforeCdata6 = function(t) { '[' === t ? ((this._state = R), (this._sectionStart = this._index + 1)) @@ -12489,9 +12489,9 @@ object-assign ? this._stateBeforeCdata3(t) : this._state === L ? this._stateBeforeCdata4(t) - : this._state === j - ? this._stateBeforeCdata5(t) : this._state === D + ? this._stateBeforeCdata5(t) + : this._state === j ? this._stateBeforeCdata6(t) : this._state === R ? this._stateInCdata(t) @@ -13630,14 +13630,14 @@ object-assign if (t + e > n) throw new RangeError('Trying to access beyond buffer length'); } - function j(t, e, n, r, i, o) { + function D(t, e, n, r, i, o) { if (!u.isBuffer(t)) throw new TypeError('"buffer" argument must be a Buffer instance'); if (e > i || e < o) throw new RangeError('"value" argument is out of bounds'); if (n + r > t.length) throw new RangeError('Index out of range'); } - function D(t, e, n, r) { + function j(t, e, n, r) { e < 0 && (e = 65535 + e + 1); for (var i = 0, o = Math.min(t.length - n, 2); i < o; ++i) t[n + i] = @@ -13772,7 +13772,7 @@ object-assign }), (u.prototype.writeUIntLE = function(t, e, n, r) { ((t = +t), (e |= 0), (n |= 0), r) || - j(this, t, e, n, Math.pow(2, 8 * n) - 1, 0); + D(this, t, e, n, Math.pow(2, 8 * n) - 1, 0); var i = 1, o = 0; for (this[e] = 255 & t; ++o < n && (i *= 256); ) @@ -13781,7 +13781,7 @@ object-assign }), (u.prototype.writeUIntBE = function(t, e, n, r) { ((t = +t), (e |= 0), (n |= 0), r) || - j(this, t, e, n, Math.pow(2, 8 * n) - 1, 0); + D(this, t, e, n, Math.pow(2, 8 * n) - 1, 0); var i = n - 1, o = 1; for (this[e + i] = 255 & t; --i >= 0 && (o *= 256); ) @@ -13792,7 +13792,7 @@ object-assign return ( (t = +t), (e |= 0), - n || j(this, t, e, 1, 255, 0), + n || D(this, t, e, 1, 255, 0), u.TYPED_ARRAY_SUPPORT || (t = Math.floor(t)), (this[e] = 255 & t), e + 1 @@ -13802,10 +13802,10 @@ object-assign return ( (t = +t), (e |= 0), - n || j(this, t, e, 2, 65535, 0), + n || D(this, t, e, 2, 65535, 0), u.TYPED_ARRAY_SUPPORT ? ((this[e] = 255 & t), (this[e + 1] = t >>> 8)) - : D(this, t, e, !0), + : j(this, t, e, !0), e + 2 ); }), @@ -13813,10 +13813,10 @@ object-assign return ( (t = +t), (e |= 0), - n || j(this, t, e, 2, 65535, 0), + n || D(this, t, e, 2, 65535, 0), u.TYPED_ARRAY_SUPPORT ? ((this[e] = t >>> 8), (this[e + 1] = 255 & t)) - : D(this, t, e, !1), + : j(this, t, e, !1), e + 2 ); }), @@ -13824,7 +13824,7 @@ object-assign return ( (t = +t), (e |= 0), - n || j(this, t, e, 4, 4294967295, 0), + n || D(this, t, e, 4, 4294967295, 0), u.TYPED_ARRAY_SUPPORT ? ((this[e + 3] = t >>> 24), (this[e + 2] = t >>> 16), @@ -13838,7 +13838,7 @@ object-assign return ( (t = +t), (e |= 0), - n || j(this, t, e, 4, 4294967295, 0), + n || D(this, t, e, 4, 4294967295, 0), u.TYPED_ARRAY_SUPPORT ? ((this[e] = t >>> 24), (this[e + 1] = t >>> 16), @@ -13851,7 +13851,7 @@ object-assign (u.prototype.writeIntLE = function(t, e, n, r) { if (((t = +t), (e |= 0), !r)) { var i = Math.pow(2, 8 * n - 1); - j(this, t, e, n, i - 1, -i); + D(this, t, e, n, i - 1, -i); } var o = 0, a = 1, @@ -13864,7 +13864,7 @@ object-assign (u.prototype.writeIntBE = function(t, e, n, r) { if (((t = +t), (e |= 0), !r)) { var i = Math.pow(2, 8 * n - 1); - j(this, t, e, n, i - 1, -i); + D(this, t, e, n, i - 1, -i); } var o = n - 1, a = 1, @@ -13878,7 +13878,7 @@ object-assign return ( (t = +t), (e |= 0), - n || j(this, t, e, 1, 127, -128), + n || D(this, t, e, 1, 127, -128), u.TYPED_ARRAY_SUPPORT || (t = Math.floor(t)), t < 0 && (t = 255 + t + 1), (this[e] = 255 & t), @@ -13889,10 +13889,10 @@ object-assign return ( (t = +t), (e |= 0), - n || j(this, t, e, 2, 32767, -32768), + n || D(this, t, e, 2, 32767, -32768), u.TYPED_ARRAY_SUPPORT ? ((this[e] = 255 & t), (this[e + 1] = t >>> 8)) - : D(this, t, e, !0), + : j(this, t, e, !0), e + 2 ); }), @@ -13900,10 +13900,10 @@ object-assign return ( (t = +t), (e |= 0), - n || j(this, t, e, 2, 32767, -32768), + n || D(this, t, e, 2, 32767, -32768), u.TYPED_ARRAY_SUPPORT ? ((this[e] = t >>> 8), (this[e + 1] = 255 & t)) - : D(this, t, e, !1), + : j(this, t, e, !1), e + 2 ); }), @@ -13911,7 +13911,7 @@ object-assign return ( (t = +t), (e |= 0), - n || j(this, t, e, 4, 2147483647, -2147483648), + n || D(this, t, e, 4, 2147483647, -2147483648), u.TYPED_ARRAY_SUPPORT ? ((this[e] = 255 & t), (this[e + 1] = t >>> 8), @@ -13925,7 +13925,7 @@ object-assign return ( (t = +t), (e |= 0), - n || j(this, t, e, 4, 2147483647, -2147483648), + n || D(this, t, e, 4, 2147483647, -2147483648), t < 0 && (t = 4294967295 + t + 1), u.TYPED_ARRAY_SUPPORT ? ((this[e] = t >>> 24), @@ -14453,36 +14453,39 @@ object-assign ? Object.setPrototypeOf(t, e) : (t.__proto__ = e)); })(n, e), - i(n, [ - { - key: 'componentWillReceiveProps', - value: function(t) { - this.setState( - r({}, u.default.toState(t.color, this.state.oldHue)) - ); - } - }, - { - key: 'render', - value: function() { - var e = {}; - return ( - this.props.onSwatchHover && - (e.onSwatchHover = this.handleSwatchHover), - a.default.createElement( - t, - r( - {}, - this.props, - this.state, - { onChange: this.handleChange }, - e + i( + n, + [ + { + key: 'render', + value: function() { + var e = {}; + return ( + this.props.onSwatchHover && + (e.onSwatchHover = this.handleSwatchHover), + a.default.createElement( + t, + r( + {}, + this.props, + this.state, + { onChange: this.handleChange }, + e + ) ) - ) - ); + ); + } } - } - ]), + ], + [ + { + key: 'getDerivedStateFromProps', + value: function(t, e) { + return r({}, u.default.toState(t.color, e.oldHue)); + } + } + ] + ), n ); })(o.PureComponent || o.Component); @@ -16003,10 +16006,10 @@ object-assign : {} ); } - function j(t) { + function D(t) { return 'both' === t.props.axis || 'x' === t.props.axis; } - function D(t) { + function j(t) { return 'both' === t.props.axis || 'y' === t.props.axis; } function R(t, e, n) { @@ -16864,8 +16867,8 @@ object-assign p = !Boolean(u) || this.state.dragging, g = u || r, m = { - x: j(this) && p ? this.state.x : g.x, - y: D(this) && p ? this.state.y : g.y + x: D(this) && p ? this.state.x : g.x, + y: j(this) && p ? this.state.y : g.y }; this.state.isElementSVG ? (h = (function(t, e) { @@ -17544,10 +17547,10 @@ object-assign ) ); }, - j = function(t, e, n) { + D = function(t, e, n) { return Math.ceil((n - e) / (3.5 * g(t) * Math.pow(t.length, -1 / 3))); }, - D = function(t, e) { + j = function(t, e) { var n, r, i = t.length, @@ -18020,12 +18023,12 @@ object-assign function Lt(t, e) { return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; } - function jt(t) { + function Dt(t) { return function() { this.removeAttribute(t); }; } - function Dt(t) { + function jt(t) { return function() { this.removeAttributeNS(t.space, t.local); }; @@ -18539,8 +18542,8 @@ object-assign return this.each( (null == e ? n.local - ? Dt - : jt + ? jt + : Dt : 'function' == typeof e ? n.local ? It @@ -18673,11 +18676,11 @@ object-assign return this._; } }; - var je = function() { + var De = function() { for (var t, e = pe; (t = e.sourceEvent); ) e = t; return e; }, - De = function(t, e) { + je = function(t, e) { var n = t.ownerSVGElement || t; if (n.createSVGPoint) { var r = n.createSVGPoint(); @@ -18694,8 +18697,8 @@ object-assign ]; }, Re = function(t) { - var e = je(); - return e.changedTouches && (e = e.changedTouches[0]), De(t, e); + var e = De(); + return e.changedTouches && (e = e.changedTouches[0]), je(t, e); }, ze = function(t) { return 'string' == typeof t @@ -18703,15 +18706,15 @@ object-assign : new ke([null == t ? [] : t], Ee); }, Ne = function(t, e, n) { - arguments.length < 3 && ((n = e), (e = je().changedTouches)); + arguments.length < 3 && ((n = e), (e = De().changedTouches)); for (var r, i = 0, o = e ? e.length : 0; i < o; ++i) - if ((r = e[i]).identifier === n) return De(t, r); + if ((r = e[i]).identifier === n) return je(t, r); return null; }, Ie = function(t, e) { - null == e && (e = je().touches); + null == e && (e = De().touches); for (var n = 0, r = e ? e.length : 0, i = new Array(r); n < r; ++n) - i[n] = De(t, e[n]); + i[n] = je(t, e[n]); return i; }; function Fe() { @@ -19369,10 +19372,10 @@ object-assign Pn = 0.96422, Mn = 1, Ln = 0.82521, - jn = 4 / 29, - Dn = 6 / 29, - Rn = 3 * Dn * Dn, - zn = Dn * Dn * Dn; + Dn = 4 / 29, + jn = 6 / 29, + Rn = 3 * jn * jn, + zn = jn * jn * jn; function Nn(t) { if (t instanceof Vn) return new Vn(t.l, t.a, t.b, t.opacity); if (t instanceof Yn) return $n(t); @@ -19403,10 +19406,10 @@ object-assign (this.l = +t), (this.a = +e), (this.b = +n), (this.opacity = +r); } function Bn(t) { - return t > zn ? Math.pow(t, 1 / 3) : t / Rn + jn; + return t > zn ? Math.pow(t, 1 / 3) : t / Rn + Dn; } function Gn(t) { - return t > Dn ? t * t * t : Rn * (t - jn); + return t > jn ? t * t * t : Rn * (t - Dn); } function Hn(t) { return ( @@ -19830,7 +19833,7 @@ object-assign scaleX: 1, scaleY: 1 }, - jr = function(t, e, n, r, i, o) { + Dr = function(t, e, n, r, i, o) { var a, s, u; return ( (a = Math.sqrt(t * t + e * e)) && ((t /= a), (e /= a)), @@ -19847,7 +19850,7 @@ object-assign } ); }; - function Dr(t, e, n, r) { + function jr(t, e, n, r) { function i(t) { return t.length ? t.pop() + ' ' : ''; } @@ -19897,7 +19900,7 @@ object-assign ); }; } - var Rr = Dr( + var Rr = jr( function(t) { return 'none' === t ? Lr @@ -19912,13 +19915,13 @@ object-assign ).getPropertyValue('transform')), Sr.removeChild(wr), (t = t.slice(7, -1).split(',')), - jr(+t[0], +t[1], +t[2], +t[3], +t[4], +t[5])); + Dr(+t[0], +t[1], +t[2], +t[3], +t[4], +t[5])); }, 'px, ', 'px)', 'deg)' ), - zr = Dr( + zr = jr( function(t) { return null == t ? Lr @@ -19929,7 +19932,7 @@ object-assign )), kr.setAttribute('transform', t), (t = kr.transform.baseVal.consolidate()) - ? ((t = t.matrix), jr(t.a, t.b, t.c, t.d, t.e, t.f)) + ? ((t = t.matrix), Dr(t.a, t.b, t.c, t.d, t.e, t.f)) : Lr); }, ', ', @@ -20332,7 +20335,7 @@ object-assign a && delete t.__transition; } }; - function ji(t, e) { + function Di(t, e) { var n, r; return function() { var i = Pi(this, t), @@ -20346,7 +20349,7 @@ object-assign i.tween = r; }; } - function Di(t, e, n) { + function ji(t, e, n) { var r, i; if ('function' != typeof n) throw new Error(); return function() { @@ -20860,7 +20863,7 @@ object-assign if ((r = i[o]).name === t) return r.value; return null; } - return this.each((null == e ? ji : Di)(n, t, e)); + return this.each((null == e ? Di : ji)(n, t, e)); }, delay: function(t) { var e = this._id; @@ -20968,8 +20971,8 @@ object-assign Po = 0.75, Mo = 9 / 11, Lo = 10 / 11, - jo = 0.9375, - Do = 21 / 22, + Do = 0.9375, + jo = 21 / 22, Ro = 63 / 64, zo = 1 / To / To; function No(t) { @@ -20981,8 +20984,8 @@ object-assign : t < Oo ? zo * (t -= Co) * t + Po : t < Lo - ? zo * (t -= Mo) * t + jo - : zo * (t -= Do) * t + Ro; + ? zo * (t -= Mo) * t + Do + : zo * (t -= jo) * t + Ro; } function Fo(t) { return ((t *= 2) <= 1 ? 1 - Io(1 - t) : Io(t - 1) + 1) / 2; @@ -21364,19 +21367,19 @@ object-assign P = 0, M = 0, L = x && w && o && pe.shiftKey, - j = pe.touches + D = pe.touches ? ((v = pe.changedTouches[0].identifier), function(t) { return Ne(t, pe.touches, v); }) : Re, - D = j(y), - R = D, + j = D(y), + R = j, z = c(y, arguments, !0).beforestart(); 'overlay' === b ? (k && (p = !0), (S.selection = k = [ - [(n = t === ua ? A : D[0]), (a = t === sa ? T : D[1])], + [(n = t === ua ? A : j[0]), (a = t === sa ? T : j[1])], [(u = t === ua ? C : n), (d = t === sa ? O : a)] ])) : ((n = k[0][0]), (a = k[0][1]), (u = k[1][0]), (d = k[1][1])), @@ -21458,7 +21461,7 @@ object-assign Jo(), Li(y), l.call(y), z.start(); } function V() { - var t = j(y); + var t = D(y); !L || g || m || @@ -21472,7 +21475,7 @@ object-assign } function B() { var t; - switch (((P = R[0] - D[0]), (M = R[1] - D[1]), _)) { + switch (((P = R[0] - j[0]), (M = R[1] - j[1]), _)) { case na: case ea: x && @@ -21778,8 +21781,8 @@ object-assign i ); }, - ja = Array.prototype.slice, - Da = function(t) { + Da = Array.prototype.slice, + ja = function(t) { return function() { return t; }; @@ -21961,7 +21964,7 @@ object-assign o = null; function a() { var a, - s = ja.call(arguments), + s = Da.call(arguments), u = t.apply(this, s), l = e.apply(this, s), c = +n.apply(this, ((s[0] = u), s)), @@ -21988,17 +21991,17 @@ object-assign return ( (a.radius = function(t) { return arguments.length - ? ((n = 'function' == typeof t ? t : Da(+t)), a) + ? ((n = 'function' == typeof t ? t : ja(+t)), a) : n; }), (a.startAngle = function(t) { return arguments.length - ? ((r = 'function' == typeof t ? t : Da(+t)), a) + ? ((r = 'function' == typeof t ? t : ja(+t)), a) : r; }), (a.endAngle = function(t) { return arguments.length - ? ((i = 'function' == typeof t ? t : Da(+t)), a) + ? ((i = 'function' == typeof t ? t : ja(+t)), a) : i; }), (a.source = function(e) { @@ -22503,7 +22506,7 @@ object-assign ); var h = c(i); if (!Array.isArray(h)) { - var p = D(i); + var p = j(i); (h = C(0, p, h)), (h = w(0, Math.floor(p / h) * h, h)).shift(); } return vs() @@ -22641,7 +22644,7 @@ object-assign ? 'T' + Ms(n, 2) + ':' + Ms(r, 2) + 'Z' : ''); } - var js = function(t) { + var Ds = function(t) { var e = new RegExp('["' + t + '\n\r]'), n = t.charCodeAt(0); function r(t, e) { @@ -22747,13 +22750,13 @@ object-assign } }; }, - Ds = js(','), - Rs = Ds.parse, - zs = Ds.parseRows, - Ns = Ds.format, - Is = Ds.formatBody, - Fs = Ds.formatRows, - Vs = js('\t'), + js = Ds(','), + Rs = js.parse, + zs = js.parseRows, + Ns = js.format, + Is = js.formatBody, + Fs = js.formatRows, + Vs = Ds('\t'), Bs = Vs.parse, Gs = Vs.parseRows, Hs = Vs.format, @@ -22818,7 +22821,7 @@ object-assign 3 === arguments.length && 'function' == typeof n && ((r = n), (n = void 0)); - var i = js(t); + var i = Ds(t); return Zs(e, n).then(function(t) { return i.parse(t, r); }); @@ -23649,7 +23652,7 @@ object-assign u ); }, - ju = function(t, e, n) { + Du = function(t, e, n) { var r, i, o, @@ -23699,7 +23702,7 @@ object-assign s ); }, - Du = function(t) { + ju = function(t) { var e, n, r, @@ -24197,35 +24200,35 @@ object-assign (t = n[r]), e.point(t[0], t[1], t[2]); }, LineString: function(t, e) { - jl(t.coordinates, e, 0); + Dl(t.coordinates, e, 0); }, MultiLineString: function(t, e) { for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) - jl(n[r], e, 0); + Dl(n[r], e, 0); }, Polygon: function(t, e) { - Dl(t.coordinates, e); + jl(t.coordinates, e); }, MultiPolygon: function(t, e) { for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) - Dl(n[r], e); + jl(n[r], e); }, GeometryCollection: function(t, e) { for (var n = t.geometries, r = -1, i = n.length; ++r < i; ) Pl(n[r], e); } }; - function jl(t, e, n) { + function Dl(t, e, n) { var r, i = -1, o = t.length - n; for (e.lineStart(); ++i < o; ) (r = t[i]), e.point(r[0], r[1], r[2]); e.lineEnd(); } - function Dl(t, e) { + function jl(t, e) { var n = -1, r = t.length; - for (e.polygonStart(); ++n < r; ) jl(t[n], e, 1); + for (e.polygonStart(); ++n < r; ) Dl(t[n], e, 1); e.polygonEnd(); } var Rl, @@ -24425,8 +24428,8 @@ object-assign Pc, Mc, Lc, - jc, Dc, + jc, Rc, zc, Nc, @@ -24539,8 +24542,8 @@ object-assign c = Tl(l), f = l && -c / l; (Lc += f * a), - (jc += f * s), - (Dc += f * u), + (Dc += f * s), + (jc += f * u), (kc += c), (Oc += c * (Nc + (Nc = r))), (Pc += c * (Ic + (Ic = i))), @@ -24548,10 +24551,10 @@ object-assign Hc(Nc, Ic, Fc); } var Zc = function(t) { - (Ec = kc = Ac = Tc = Cc = Oc = Pc = Mc = Lc = jc = Dc = 0), Vl(t, Bc); + (Ec = kc = Ac = Tc = Cc = Oc = Pc = Mc = Lc = Dc = jc = 0), Vl(t, Bc); var e = Lc, - n = jc, - r = Dc, + n = Dc, + r = jc, i = e * e + n * n + r * r; return i < sl && ((e = Oc), @@ -25366,21 +25369,21 @@ object-assign }); }, Lf = nl(), - jf = { + Df = { sphere: Ol, point: Ol, lineStart: function() { - (jf.point = Rf), (jf.lineEnd = Df); + (Df.point = Rf), (Df.lineEnd = jf); }, lineEnd: Ol, polygonStart: Ol, polygonEnd: Ol }; - function Df() { - jf.point = jf.lineEnd = Ol; + function jf() { + Df.point = Df.lineEnd = Ol; } function Rf(t, e) { - (Cf = t *= hl), (Of = wl((e *= hl))), (Pf = vl(e)), (jf.point = zf); + (Cf = t *= hl), (Of = wl((e *= hl))), (Pf = vl(e)), (Df.point = zf); } function zf(t, e) { t *= hl; @@ -25394,7 +25397,7 @@ object-assign Lf.add(ml(El(a * a + s * s), u)), (Cf = t), (Of = n), (Pf = r); } var Nf = function(t) { - return Lf.reset(), Vl(t, jf), +Lf; + return Lf.reset(), Vl(t, Df), +Lf; }, If = [null, null], Ff = { type: 'LineString', coordinates: If }, @@ -25714,14 +25717,14 @@ object-assign Pd = 0, Md = 0, Ld = { - point: jd, - lineStart: Dd, + point: Dd, + lineStart: jd, lineEnd: Nd, polygonStart: function() { (Ld.lineStart = Id), (Ld.lineEnd = Fd); }, polygonEnd: function() { - (Ld.point = jd), (Ld.lineStart = Dd), (Ld.lineEnd = Nd); + (Ld.point = Dd), (Ld.lineStart = jd), (Ld.lineEnd = Nd); }, result: function() { var t = Md @@ -25734,14 +25737,14 @@ object-assign return (Sd = Ed = kd = Ad = Td = Cd = Od = Pd = Md = 0), t; } }; - function jd(t, e) { + function Dd(t, e) { (Sd += t), (Ed += e), ++kd; } - function Dd() { + function jd() { Ld.point = Rd; } function Rd(t, e) { - (Ld.point = zd), jd((_d = t), (xd = e)); + (Ld.point = zd), Dd((_d = t), (xd = e)); } function zd(t, e) { var n = t - _d, @@ -25750,10 +25753,10 @@ object-assign (Ad += (i * (_d + t)) / 2), (Td += (i * (xd + e)) / 2), (Cd += i), - jd((_d = t), (xd = e)); + Dd((_d = t), (xd = e)); } function Nd() { - Ld.point = jd; + Ld.point = Dd; } function Id() { Ld.point = Vd; @@ -25762,7 +25765,7 @@ object-assign Bd(yd, bd); } function Vd(t, e) { - (Ld.point = Bd), jd((yd = _d = t), (bd = xd = e)); + (Ld.point = Bd), Dd((yd = _d = t), (bd = xd = e)); } function Bd(t, e) { var n = t - _d, @@ -25774,7 +25777,7 @@ object-assign (Od += (i = xd * t - _d * e) * (_d + t)), (Pd += i * (xd + e)), (Md += 3 * i), - jd((_d = t), (xd = e)); + Dd((_d = t), (xd = e)); } var Gd = Ld; function Hd(t) { @@ -26631,17 +26634,17 @@ object-assign c() ); } - function jh(t) { + function Dh(t) { return kl((ll + t) / 2); } - function Dh(t, e) { + function jh(t, e) { var n = vl(t), - r = t === e ? wl(t) : _l(n / vl(e)) / _l(jh(e) / jh(t)), - i = (n * xl(jh(t), r)) / r; + r = t === e ? wl(t) : _l(n / vl(e)) / _l(Dh(e) / Dh(t)), + i = (n * xl(Dh(t), r)) / r; if (!r) return Ph; function o(t, e) { i > 0 ? e < -ll + al && (e = -ll + al) : e > ll - al && (e = ll - al); - var n = i / xl(jh(e), r); + var n = i / xl(Dh(e), r); return [n * wl(r * t), i - n * vl(r * t)]; } return ( @@ -26654,7 +26657,7 @@ object-assign ); } var Rh = function() { - return bh(Dh) + return bh(jh) .scale(109.5) .parallels([30, 30]); }; @@ -27333,12 +27336,12 @@ object-assign function Lp() { return 0; } - var jp = function(t) { + var Dp = function(t) { return function() { return t; }; }; - function Dp(t) { + function jp(t) { return Math.sqrt(t.value); } var Rp = function() { @@ -27356,7 +27359,7 @@ object-assign .eachAfter(Np(r, 0.5)) .eachBefore(Ip(1)) : i - .eachBefore(zp(Dp)) + .eachBefore(zp(jp)) .eachAfter(Np(Lp, 1)) .eachAfter(Np(r, i.r / Math.min(e, n))) .eachBefore(Ip(Math.min(e, n) / (2 * i.r))), @@ -27372,7 +27375,7 @@ object-assign }), (i.padding = function(t) { return arguments.length - ? ((r = 'function' == typeof t ? t : jp(+t)), i) + ? ((r = 'function' == typeof t ? t : Dp(+t)), i) : r; }), i @@ -27826,7 +27829,7 @@ object-assign }), (c.paddingInner = function(t) { return arguments.length - ? ((o = 'function' == typeof t ? t : jp(+t)), c) + ? ((o = 'function' == typeof t ? t : Dp(+t)), c) : o; }), (c.paddingOuter = function(t) { @@ -27840,22 +27843,22 @@ object-assign }), (c.paddingTop = function(t) { return arguments.length - ? ((a = 'function' == typeof t ? t : jp(+t)), c) + ? ((a = 'function' == typeof t ? t : Dp(+t)), c) : a; }), (c.paddingRight = function(t) { return arguments.length - ? ((s = 'function' == typeof t ? t : jp(+t)), c) + ? ((s = 'function' == typeof t ? t : Dp(+t)), c) : s; }), (c.paddingBottom = function(t) { return arguments.length - ? ((u = 'function' == typeof t ? t : jp(+t)), c) + ? ((u = 'function' == typeof t ? t : Dp(+t)), c) : u; }), (c.paddingLeft = function(t) { return arguments.length - ? ((l = 'function' == typeof t ? t : jp(+t)), c) + ? ((l = 'function' == typeof t ? t : Dp(+t)), c) : l; }), c @@ -28232,12 +28235,12 @@ object-assign ); })(Mg.apply(null, arguments).paddingInner(1)); } - var jg = function(t) { + var Dg = function(t) { return function() { return t; }; }, - Dg = function(t) { + jg = function(t) { return +t; }, Rg = [0, 1]; @@ -28249,7 +28252,7 @@ object-assign ? function(n) { return (n - t) / e; } - : jg(isNaN(e) ? NaN : 0.5); + : Dg(isNaN(e) ? NaN : 0.5); } function Ig(t) { var e, @@ -28325,7 +28328,7 @@ object-assign }), (f.domain = function(t) { return arguments.length - ? ((a = Tg.call(t, Dg)), l === zg || (l = Ig(a)), c()) + ? ((a = Tg.call(t, jg)), l === zg || (l = Ig(a)), c()) : a.slice(); }), (f.range = function(t) { @@ -28443,7 +28446,7 @@ object-assign return ( (n.invert = n), (n.domain = n.range = function(e) { - return arguments.length ? ((t = Tg.call(e, Dg)), n) : t.slice(); + return arguments.length ? ((t = Tg.call(e, jg)), n) : t.slice(); }), (n.unknown = function(t) { return arguments.length ? ((e = t), n) : e; @@ -28451,7 +28454,7 @@ object-assign (n.copy = function() { return Xg(t).unknown(e); }), - (t = arguments.length ? Tg.call(t, Dg) : [0, 1]), + (t = arguments.length ? Tg.call(t, jg) : [0, 1]), qg(n) ); } @@ -28962,7 +28965,7 @@ object-assign ), Mm = Pm, Lm = Pm.range, - jm = ym( + Dm = ym( function(t) { t.setHours(0, 0, 0, 0); }, @@ -28979,8 +28982,8 @@ object-assign return t.getDate() - 1; } ), - Dm = jm, - Rm = jm.range; + jm = Dm, + Rm = Dm.range; function zm(t) { return ym( function(e) { @@ -29188,14 +29191,14 @@ object-assign }; var Mv = Pv, Lv = Pv.range; - function jv(t) { + function Dv(t) { if (0 <= t.y && t.y < 100) { var e = new Date(-1, t.m, t.d, t.H, t.M, t.S, t.L); return e.setFullYear(t.y), e; } return new Date(t.y, t.m, t.d, t.H, t.M, t.S, t.L); } - function Dv(t) { + function jv(t) { if (0 <= t.y && t.y < 100) { var e = new Date(Date.UTC(-1, t.m, t.d, t.H, t.M, t.S, t.L)); return e.setUTCFullYear(t.y), e; @@ -29282,8 +29285,8 @@ object-assign d: Ly, e: Ly, f: Ny, - H: jy, - I: Dy, + H: Dy, + I: jy, j: Ry, L: zy, m: Iy, @@ -29390,7 +29393,7 @@ object-assign if (o.V < 1 || o.V > 53) return null; 'w' in o || (o.w = 1), 'Z' in o - ? ((i = (r = Dv(Rv(o.y))).getUTCDay()), + ? ((i = (r = jv(Rv(o.y))).getUTCDay()), (r = i > 4 || 0 === i ? pv.ceil(r) : pv(r)), (r = cv.offset(r, 7 * (o.V - 1))), (o.y = r.getUTCFullYear()), @@ -29398,21 +29401,21 @@ object-assign (o.d = r.getUTCDate() + ((o.w + 6) % 7))) : ((i = (r = e(Rv(o.y))).getDay()), (r = i > 4 || 0 === i ? Im.ceil(r) : Im(r)), - (r = Dm.offset(r, 7 * (o.V - 1))), + (r = jm.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 ? Dv(Rv(o.y)).getUTCDay() : e(Rv(o.y)).getDay()), + (i = 'Z' in o ? jv(Rv(o.y)).getUTCDay() : e(Rv(o.y)).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), Dv(o)) + ? ((o.H += (o.Z / 100) | 0), (o.M += o.Z % 100), jv(o)) : e(o); }; } @@ -29447,7 +29450,7 @@ object-assign ); }, parse: function(t) { - var e = S((t += ''), jv); + var e = S((t += ''), Dv); return ( (e.toString = function() { return t; @@ -29465,7 +29468,7 @@ object-assign ); }, utcParse: function(t) { - var e = S(t, Dv); + var e = S(t, jv); return ( (e.toString = function() { return t; @@ -29592,7 +29595,7 @@ object-assign return Wv(t.getHours() % 12 || 12, e, 2); } function yy(t, e) { - return Wv(1 + Dm.count(ev(t), t), e, 3); + return Wv(1 + jm.count(ev(t), t), e, 3); } function by(t, e) { return Wv(t.getMilliseconds(), e, 3); @@ -29646,10 +29649,10 @@ object-assign function Ly(t, e) { return Wv(t.getUTCDate(), e, 2); } - function jy(t, e) { + function Dy(t, e) { return Wv(t.getUTCHours(), e, 2); } - function Dy(t, e) { + function jy(t, e) { return Wv(t.getUTCHours() % 12 || 12, e, 2); } function Ry(t, e) { @@ -29884,7 +29887,7 @@ object-assign } var fb = function() { return Eg.apply( - cb(ev, Zm, Nm, Dm, Mm, Cm, km, _m, Iv).domain([ + cb(ev, Zm, Nm, jm, Mm, Cm, km, _m, Iv).domain([ new Date(2e3, 0, 1), new Date(2e3, 0, 2) ]), @@ -30120,8 +30123,8 @@ object-assign 'a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928' ), Lb = Tb('fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2'), - jb = Tb('b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc'), - Db = Tb('e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999'), + Db = Tb('b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc'), + jb = Tb('e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999'), Rb = Tb('66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3'), zb = Tb( '8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f' @@ -30436,7 +30439,7 @@ object-assign ) .map(Tb), L_ = Ib(M_), - j_ = new Array(3) + D_ = new Array(3) .concat( 'efedf5bcbddc756bb1', 'f2f0f7cbc9e29e9ac86a51a3', @@ -30447,7 +30450,7 @@ object-assign 'fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d' ) .map(Tb), - D_ = Ib(j_), + j_ = Ib(D_), R_ = new Array(3) .concat( 'fee0d2fc9272de2d26', @@ -30750,8 +30753,8 @@ object-assign : ((E = 0), (b = _ = (h + p) / 2)); } var L = d * ix(b), - j = d * sx(b), - D = f * ix(w), + D = d * sx(b), + j = f * ix(w), R = f * sx(w); if (T > lx) { var z, @@ -30772,10 +30775,10 @@ object-assign t + (d = (c * (e - o) - f * (t - i)) / d) * u, e + d * l ]; - })(L, j, F, V, N, I, D, R)) + })(L, D, F, V, N, I, j, R)) ) { var B = L - z[0], - G = j - z[1], + G = D - z[1], H = N - z[0], U = I - z[1], q = @@ -30796,8 +30799,8 @@ object-assign } E > lx ? O > lx - ? ((v = bx(F, V, L, j, d, O, m)), - (y = bx(N, I, D, R, d, O, m)), + ? ((v = bx(F, V, L, D, d, O, m)), + (y = bx(N, I, j, R, d, O, m)), s.moveTo(v.cx + v.x01, v.cy + v.y01), O < T ? s.arc( @@ -30832,12 +30835,12 @@ object-assign rx(y.y01, y.x01), !m ))) - : (s.moveTo(L, j), s.arc(0, 0, d, b, _, !m)) - : s.moveTo(L, j), + : (s.moveTo(L, D), s.arc(0, 0, d, b, _, !m)) + : s.moveTo(L, D), f > lx && S > lx ? C > lx - ? ((v = bx(D, R, N, I, f, -C, m)), - (y = bx(L, j, F, V, f, -C, m)), + ? ((v = bx(j, R, N, I, f, -C, m)), + (y = bx(L, D, F, V, f, -C, m)), s.lineTo(v.cx + v.x01, v.cy + v.y01), C < T ? s.arc( @@ -30873,7 +30876,7 @@ object-assign !m ))) : s.arc(0, 0, f, w, x, m) - : s.lineTo(D, R); + : s.lineTo(j, R); } else s.moveTo(0, 0); if ((s.closePath(), u)) return (s = null), u + '' || null; @@ -31219,7 +31222,7 @@ object-assign } return (e._curve = t), e; } - function jx(t) { + function Dx(t) { var e = t.curve; return ( (t.angle = t.x), @@ -31249,8 +31252,8 @@ object-assign this._curve.point(e * Math.sin(t), e * -Math.cos(t)); } }; - var Dx = function() { - return jx(kx().curve(Px)); + var jx = function() { + return Dx(kx().curve(Px)); }, Rx = function() { var t = Ax().curve(Px), @@ -31273,19 +31276,19 @@ object-assign (t.outerRadius = t.y1), delete t.y1, (t.lineStartAngle = function() { - return jx(n()); + return Dx(n()); }), delete t.lineX0, (t.lineEndAngle = function() { - return jx(r()); + return Dx(r()); }), delete t.lineX1, (t.lineInnerRadius = function() { - return jx(i()); + return Dx(i()); }), delete t.lineY0, (t.lineOuterRadius = function() { - return jx(o()); + return Dx(o()); }), delete t.lineY1, (t.curve = function(t) { @@ -32065,10 +32068,10 @@ object-assign n ); })(0.5); - function jw(t, e) { + function Dw(t, e) { (this._context = t), (this._alpha = e); } - jw.prototype = { + Dw.prototype = { areaStart: function() { this._line = 0; }, @@ -32122,9 +32125,9 @@ object-assign (this._y2 = e); } }; - var Dw = (function t(e) { + var jw = (function t(e) { function n(t) { - return e ? new jw(t, e) : new Aw(t, 0); + return e ? new Dw(t, e) : new Aw(t, 0); } return ( (n.alpha = function(e) { @@ -32836,10 +32839,10 @@ object-assign } var MS, LS = []; - function jS() { + function DS() { yS(this), (this.x = this.y = this.arc = this.site = this.cy = null); } - function DS(t) { + function jS(t) { var e = t.P, n = t.N; if (e && n) { @@ -32859,7 +32862,7 @@ object-assign p = c * c + f * f, g = (f * h - l * p) / d, m = (u * p - c * h) / d, - v = LS.pop() || new jS(); + v = LS.pop() || new DS(); (v.arc = t), (v.site = i), (v.x = g + a), @@ -32937,8 +32940,8 @@ object-assign (l = s[c]), (u = s[c - 1]), kS(l.edge, u.site, l.site, i); (u = s[0]), ((l = s[f - 1]).edge = SS(u.site, l.site, null, i)), - DS(u), - DS(l); + jS(u), + jS(l); } function BS(t) { for (var e, n, r, i, o = t[0], a = t[1], s = US._; s; ) @@ -32969,8 +32972,8 @@ object-assign (n = IS(e.site)), US.insert(u, n), (u.edge = n.edge = SS(e.site, u.site)), - DS(e), - void DS(n) + jS(e), + void jS(n) ); if (n) { RS(e), RS(n); @@ -32989,8 +32992,8 @@ object-assign kS(n.edge, l, p, _), (u.edge = SS(l, t, null, _)), (n.edge = SS(t, p, null, _)), - DS(e), - DS(n); + jS(e), + jS(n); } else u.edge = SS(e.site, u.site); } } @@ -33892,13 +33895,13 @@ object-assign return L; }), n.d(e, 'thresholdScott', function() { - return j; + return D; }), n.d(e, 'thresholdSturges', function() { return O; }), n.d(e, 'max', function() { - return D; + return j; }), n.d(e, 'mean', function() { return R; @@ -34042,7 +34045,7 @@ object-assign return Ge; }), n.d(e, 'dsvFormat', function() { - return js; + return Ds; }), n.d(e, 'csvParse', function() { return Rs; @@ -34234,13 +34237,13 @@ object-assign return Lu; }), n.d(e, 'forceRadial', function() { - return ju; + return Du; }), n.d(e, 'forceSimulation', function() { return Mu; }), n.d(e, 'forceX', function() { - return Du; + return ju; }), n.d(e, 'forceY', function() { return Ru; @@ -34339,7 +34342,7 @@ object-assign return Rh; }), n.d(e, 'geoConicConformalRaw', function() { - return Dh; + return jh; }), n.d(e, 'geoConicEqualArea', function() { return xh; @@ -34678,10 +34681,10 @@ object-assign return Lb; }), n.d(e, 'schemePastel2', function() { - return jb; + return Db; }), n.d(e, 'schemeSet1', function() { - return Db; + return jb; }), n.d(e, 'schemeSet2', function() { return Rb; @@ -34837,10 +34840,10 @@ object-assign return M_; }), n.d(e, 'interpolatePurples', function() { - return D_; + return j_; }), n.d(e, 'schemePurples', function() { - return j_; + return D_; }), n.d(e, 'interpolateReds', function() { return z_; @@ -34909,7 +34912,7 @@ object-assign return vt; }), n.d(e, 'clientPoint', function() { - return De; + return je; }), n.d(e, 'select', function() { return Ce; @@ -34963,10 +34966,10 @@ object-assign return Rx; }), n.d(e, 'lineRadial', function() { - return Dx; + return jx; }), n.d(e, 'radialLine', function() { - return Dx; + return jx; }), n.d(e, 'pointRadial', function() { return zx; @@ -35032,7 +35035,7 @@ object-assign return Lw; }), n.d(e, 'curveCatmullRomOpen', function() { - return Dw; + return jw; }), n.d(e, 'curveCatmullRom', function() { return Pw; @@ -35137,7 +35140,7 @@ object-assign return Lm; }), n.d(e, 'timeDay', function() { - return Dm; + return jm; }), n.d(e, 'timeDays', function() { return Rm; @@ -38845,7 +38848,7 @@ object-assign function L(t) { f(t.c, 'body', t.a); } - function j(t) { + function D(t) { return ( 'display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:' + S(t.c) + @@ -38856,7 +38859,7 @@ object-assign '00;' ); } - function D(t, e, n, r, i, o) { + function j(t, e, n, r, i, o) { (this.g = t), (this.j = e), (this.a = r), @@ -38878,13 +38881,13 @@ object-assign (this.h = new M(this.c, this.s)), (this.j = new M(this.c, this.s)), (this.m = new M(this.c, this.s)), - (t = j((t = new w(this.a.c + ',serif', E(this.a))))), + (t = D((t = new w(this.a.c + ',serif', E(this.a))))), (this.g.a.style.cssText = t), - (t = j((t = new w(this.a.c + ',sans-serif', E(this.a))))), + (t = D((t = new w(this.a.c + ',sans-serif', E(this.a))))), (this.h.a.style.cssText = t), - (t = j((t = new w('serif', E(this.a))))), + (t = D((t = new w('serif', E(this.a))))), (this.j.a.style.cssText = t), - (t = j((t = new w('sans-serif', E(this.a))))), + (t = D((t = new w('sans-serif', E(this.a))))), (this.m.a.style.cssText = t), L(this.g), L(this.h), @@ -38896,7 +38899,7 @@ object-assign e.push(arguments[n].replace(/[\W_]+/g, '').toLowerCase()); return e.join(this.a); }), - (D.prototype.start = function() { + (j.prototype.start = function() { var t = this.c.o.document, e = this, n = s(), @@ -39052,7 +39055,7 @@ object-assign H = p ? 42 < parseInt(p[1], 10) : !g; } else H = !1; (d = H - ? new D(a(e.g, e), a(e.h, e), e.c, c, e.s, f) + ? new j(a(e.g, e), a(e.h, e), e.c, c, e.s, f) : new R(a(e.g, e), a(e.h, e), e.c, c, e.s, t, f)), l.push(d); } @@ -45794,12 +45797,12 @@ object-assign var P = C.value, M = i(P, 2), L = M[0], - j = M[1]; - v && j instanceof Date && (j = v(j)); - var D = (0, a.escapeHtml)(j); + D = M[1]; + v && D instanceof Date && (D = v(D)); + var j = (0, a.escapeHtml)(D); p[L] - ? (n += '' + m[p[L]](D) + '') - : (n += '' + D + ''); + ? (n += '' + m[p[L]](j) + '') + : (n += '' + j + ''); } } catch (t) { (A = !0), (T = t); @@ -46088,9 +46091,9 @@ object-assign P = T.style('height').slice(0, -2) - w - E - 30, M = P / (t.length - 1), L = O, - j = (100).toFixed(m), - D = 0; - x && (D = (O - x) / (t.length - 2)); + D = (100).toFixed(m), + j = 0; + x && (j = (O - x) / (t.length - 2)); var R = t.slice(1).map(function(e, n) { var r = [ { x: (O - L) / 2, y: M * n + A }, @@ -46098,11 +46101,11 @@ object-assign ]; 0 !== n && ('relative' === g && - (x ? (L -= D) : (L = (L * e[1]) / t[n][1]), - (j = ((e[1] / t[n][1]) * 100).toFixed(m))), + (x ? (L -= j) : (L = (L * e[1]) / t[n][1]), + (D = ((e[1] / t[n][1]) * 100).toFixed(m))), 'absolute' === g && - (x ? (L -= D) : (L = (O * e[1]) / t[1][1]), - (j = ((e[1] / t[1][1]) * 100).toFixed(m)))); + (x ? (L -= j) : (L = (O * e[1]) / t[1][1]), + (D = ((e[1] / t[1][1]) * 100).toFixed(m)))); var o = e[0]; if (Object.keys(i).length) for (var a in i) i[a] === e[0] && (o = a); @@ -46115,7 +46118,7 @@ object-assign { name: e[0], label: o, - percent: j + '%', + percent: D + '%', result: u, points: [].concat(r, [ { x: (O - L) / 2 + L, y: M * (n + 1) }, @@ -46469,22 +46472,22 @@ object-assign P = O / (t.length - 1), M = 0.3 * P, L = 2.5 * M, - j = C, - D = (100).toFixed(m), + D = C, + j = (100).toFixed(m), R = 0; x && (R = (C - x) / (t.length - 2)); var z = t.slice(1).map(function(e, n) { var r = [ - { x: (C - j) / 2, y: P * n + M }, - { x: (C - j) / 2 + j, y: P * n + M } + { x: (C - D) / 2, y: P * n + M }, + { x: (C - D) / 2 + D, y: P * n + M } ]; 0 !== n && ('relative' === g && - (x ? (j -= R) : (j = (j * e[1]) / t[n][1]), - (D = ((e[1] / t[n][1]) * 100).toFixed(m))), + (x ? (D -= R) : (D = (D * e[1]) / t[n][1]), + (j = ((e[1] / t[n][1]) * 100).toFixed(m))), 'absolute' === g && - (x ? (j -= R) : (j = (C * e[1]) / t[1][1]), - (D = ((e[1] / t[1][1]) * 100).toFixed(m)))); + (x ? (D -= R) : (D = (C * e[1]) / t[1][1]), + (j = ((e[1] / t[1][1]) * 100).toFixed(m)))); var o = e[0]; if (Object.keys(i).length) for (var a in i) i[a] === e[0] && (o = a); @@ -46497,11 +46500,11 @@ object-assign { name: e[0], label: o, - percent: D + '%', + percent: j + '%', result: u, points: [].concat(r, [ - { x: (C - j) / 2 + j, y: P * (n + 1) }, - { x: (C - j) / 2, y: P * (n + 1) } + { x: (C - D) / 2 + D, y: P * (n + 1) }, + { x: (C - D) / 2, y: P * (n + 1) } ]) } ); @@ -46884,9 +46887,9 @@ object-assign P = T.style('height').slice(0, -2) - w - E - 30, M = O / (t.length - 1), L = P, - j = (100).toFixed(m), - D = 0; - x && (D = (P - x) / (t.length - 2)); + D = (100).toFixed(m), + j = 0; + x && (j = (P - x) / (t.length - 2)); var R = t.slice(1).map(function(e, n) { var r = [ { x: M * n + A, y: (P - L) / 2 }, @@ -46894,11 +46897,11 @@ object-assign ]; 0 !== n && ('relative' === g && - (x ? (L -= D) : (L = (L * e[1]) / t[n][1]), - (j = ((e[1] / t[n][1]) * 100).toFixed(m))), + (x ? (L -= j) : (L = (L * e[1]) / t[n][1]), + (D = ((e[1] / t[n][1]) * 100).toFixed(m))), 'absolute' === g && - (x ? (L -= D) : (L = (P * e[1]) / t[1][1]), - (j = ((e[1] / t[1][1]) * 100).toFixed(m)))); + (x ? (L -= j) : (L = (P * e[1]) / t[1][1]), + (D = ((e[1] / t[1][1]) * 100).toFixed(m)))); var o = e[0]; if (Object.keys(i).length) for (var a in i) i[a] === e[0] && (o = a); @@ -46911,7 +46914,7 @@ object-assign { name: e[0], label: o, - percent: j + '%', + percent: D + '%', result: u, points: [].concat(r, [ { x: M * (n + 1), y: (P - L) / 2 + L }, @@ -47225,22 +47228,22 @@ object-assign P = C / (t.length - 1), M = 0.3 * P, L = M / 1.5, - j = O, - D = (100).toFixed(m), + D = O, + j = (100).toFixed(m), R = 0; x && (R = (O - x) / (t.length - 2)); var z = t.slice(1).map(function(e, n) { var r = [ - { x: P * n + M, y: (O - j) / 2 }, - { x: P * n + M, y: (O - j) / 2 + j } + { x: P * n + M, y: (O - D) / 2 }, + { x: P * n + M, y: (O - D) / 2 + D } ]; 0 !== n && ('relative' === g && - (x ? (j -= R) : (j = (j * e[1]) / t[n][1]), - (D = ((e[1] / t[n][1]) * 100).toFixed(m))), + (x ? (D -= R) : (D = (D * e[1]) / t[n][1]), + (j = ((e[1] / t[n][1]) * 100).toFixed(m))), 'absolute' === g && - (x ? (j -= R) : (j = (O * e[1]) / t[1][1]), - (D = ((e[1] / t[1][1]) * 100).toFixed(m)))); + (x ? (D -= R) : (D = (O * e[1]) / t[1][1]), + (j = ((e[1] / t[1][1]) * 100).toFixed(m)))); var o = e[0]; if (Object.keys(i).length) for (var a in i) i[a] === e[0] && (o = a); @@ -47253,11 +47256,11 @@ object-assign { name: e[0], label: o, - percent: D + '%', + percent: j + '%', result: u, points: [].concat(r, [ - { x: P * (n + 1), y: (O - j) / 2 + j }, - { x: P * (n + 1), y: (O - j) / 2 } + { x: P * (n + 1), y: (O - D) / 2 + D }, + { x: P * (n + 1), y: (O - D) / 2 } ]) } ); @@ -47820,12 +47823,12 @@ object-assign L = O.reduce(function(t, e) { return e.value > t ? e.value : t; }, P), - j = function() { + D = function() { var t = u[0], e = o.rgb('#00BBDE'); return o.color(t) && (e = o.rgb(t)), e; }, - D = o + j = o .scaleLinear() .domain([ 0, @@ -47835,8 +47838,8 @@ object-assign ]) .range([0, 1]), R = function(t) { - var e = D(t), - n = j(), + var e = j(t), + n = D(), r = (function(t) { var e = arguments.length > 1 && @@ -47907,15 +47910,15 @@ object-assign ' .rangeable-tooltip,\n ' + N + ' .active {\n background-color: ' + - j() + + D() + ';\n }\n ' + N + ' .rangeable-tooltip::before {\n border-color: ' + - j() + + D() + ' transparent transparent;\n }\n ' + N + ' .rangeable-handle {\n border-color: ' + - j() + + D() + ';\n }\n ', F = document.createElement('style'); F.innerHTML = I; @@ -47959,7 +47962,7 @@ object-assign .attr('class', 'keen-dataviz-tooltip') .style('opacity', 0) .style('background-color', 'white') - .style('border', '2px solid ' + j().toString()) + .style('border', '2px solid ' + D().toString()) .style('font-size', '14px') .style('padding', '2px 8px') .style('box-shadow', '2px 2px 4px rgba(0,0,0,0.25') @@ -47988,7 +47991,7 @@ object-assign .select(o.event.target) .raise() .style('transition', 'transform 150ms ease-out') - .style('outline', '1px solid ' + j()) + .style('outline', '1px solid ' + D()) .style('transform', 'translate(0px, -4px)'), U.style('opacity', 1).style('display', 'block'); }) @@ -48710,8 +48713,8 @@ object-assign P = _.splice, M = B(b, 'Map'), L = B(Object, 'create'), - j = O ? O.prototype : void 0, - D = j ? j.toString : void 0; + D = O ? O.prototype : void 0, + j = D ? D.toString : void 0; function R(t) { var e = -1, n = t ? t.length : 0; @@ -48878,7 +48881,7 @@ object-assign ? '' : (function(t) { if ('string' == typeof t) return t; - if ($(t)) return D ? D.call(t) : ''; + if ($(t)) return j ? j.call(t) : ''; var e = t + ''; return '0' == e && 1 / t == -o ? '-0' : e; })(t); @@ -49085,9 +49088,9 @@ object-assign self.Object === Object && self, L = P || M || Function('return this')(), - j = e && !e.nodeType && e, - D = j && 'object' == typeof n && n && !n.nodeType && n, - R = D && D.exports === j, + D = e && !e.nodeType && e, + j = D && 'object' == typeof n && n && !n.nodeType && n, + R = j && j.exports === D, z = R && P.process, N = (function() { try { @@ -49159,12 +49162,12 @@ object-assign function(t) { return H(U(t)); }), - lt = Dt(L, 'DataView'), - ct = Dt(L, 'Map'), - ft = Dt(L, 'Promise'), - dt = Dt(L, 'Set'), - ht = Dt(L, 'WeakMap'), - pt = Dt(Object, 'create'), + lt = jt(L, 'DataView'), + ct = jt(L, 'Map'), + ft = jt(L, 'Promise'), + dt = jt(L, 'Set'), + ht = jt(L, 'WeakMap'), + pt = jt(Object, 'create'), gt = It(lt), mt = It(ct), vt = It(ft), @@ -49418,7 +49421,7 @@ object-assign })(r, n(t)); })(t, Yt, Rt); } - function jt(t, e) { + function Dt(t, e) { var n = t.__data__; return (function(t) { var e = typeof t; @@ -49432,7 +49435,7 @@ object-assign ? n['string' == typeof e ? 'string' : 'hash'] : n.map; } - function Dt(t, e) { + function jt(t, e) { var n = (function(t, e) { return null == t ? void 0 : t[e]; })(t, e); @@ -49514,17 +49517,17 @@ object-assign }); }), (Et.prototype.delete = function(t) { - var e = jt(this, t).delete(t); + var e = Dt(this, t).delete(t); return (this.size -= e ? 1 : 0), e; }), (Et.prototype.get = function(t) { - return jt(this, t).get(t); + return Dt(this, t).get(t); }), (Et.prototype.has = function(t) { - return jt(this, t).has(t); + return Dt(this, t).has(t); }), (Et.prototype.set = function(t, e) { - var n = jt(this, t), + var n = Dt(this, t), r = n.size; return ( n.set(t, e), (this.size += n.size == r ? 0 : 1), this @@ -50601,7 +50604,7 @@ object-assign var n = t.getBoundingClientRect(); return { top: n.top + e.top, left: n.left + e.left }; } - function j(t) { + function D(t) { return t.touches && t.touches.length ? { x: t.touches[0].pageX, y: t.touches[0].pageY } : t.changedTouches && t.changedTouches.length @@ -50611,7 +50614,7 @@ object-assign } : { x: t.pageX, y: t.pageY }; } - function D(t, e) { + function j(t, e) { var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] @@ -50621,7 +50624,7 @@ object-assign left: n.left + t.offsetLeft, top: n.top + t.offsetTop }; - return t.parentNode === e ? r : D(t.parentNode, e, r); + return t.parentNode === e ? r : j(t.parentNode, e, r); } } function R(t) { @@ -50874,7 +50877,7 @@ object-assign r = n.distance, i = n.shouldCancelStart; if (2 !== t.button && !i(t)) { - (e.touched = !0), (e.position = j(t)); + (e.touched = !0), (e.position = D(t)); var o = C(t.target, function(t) { return null != t.sortableInfo; }); @@ -50924,7 +50927,7 @@ object-assign e.touched && !e._awaitingUpdateBeforeSortStart ) { - var o = j(t), + var o = D(t), a = { x: e.position.x - o.x, y: e.position.y - o.y @@ -50999,8 +51002,8 @@ object-assign x: o.indexOf('x') >= 0, y: o.indexOf('y') >= 0 }), - (e.offsetEdge = D(h, e.container)), - (e.initialOffset = j( + (e.offsetEdge = j(h, e.container)), + (e.initialOffset = D( g ? u({}, t, { pageX: @@ -51572,7 +51575,7 @@ object-assign u = void 0 === s ? o : s, l = this.manager.isKeySorting, c = t.ignoreTransition, - f = j(t), + f = D(t), d = { x: f.x - this.initialOffset.x, y: f.y - this.initialOffset.y @@ -51673,14 +51676,14 @@ object-assign _ = { x: 0, y: 0 }, x = a[f].edgeOffset; x || - ((x = D(h, this.container)), + ((x = j(h, this.container)), (a[f].edgeOffset = x), l && (a[f].boundingClientRect = L(h, i))); var w = f < a.length - 1 && a[f + 1], S = f > 0 && a[f - 1]; w && !w.edgeOffset && - ((w.edgeOffset = D(w.node, this.container)), + ((w.edgeOffset = j(w.node, this.container)), l && (w.boundingClientRect = L(w.node, i))), p !== this.index ? (e && T(h, e), @@ -53096,7 +53099,7 @@ object-assign revoke: null }, i = Array.isArray(t) - ? Proxy.revocable([r], j) + ? Proxy.revocable([r], D) : Proxy.revocable(r, L), o = i.revoke, a = i.proxy; @@ -53107,7 +53110,7 @@ object-assign if (e === o) return t; var n = t.drafts; if (!t.modified && h(n, e)) return n[e]; - var r = D(t)[e]; + var r = j(t)[e]; if (t.finalized || !s(r)) return r; if (t.modified) { if (r !== R(t.base, e)) return r; @@ -53116,10 +53119,10 @@ object-assign return (n[e] = M(r, t)); }, has: function(t, e) { - return e in D(t); + return e in j(t); }, ownKeys: function(t) { - return Reflect.ownKeys(D(t)); + return Reflect.ownKeys(j(t)); }, set: function(t, e, n) { if (!t.modified) { @@ -53144,7 +53147,7 @@ object-assign ); }, getOwnPropertyDescriptor: function(t, e) { - var n = D(t), + var n = j(t), r = Reflect.getOwnPropertyDescriptor(n, e); return ( r && @@ -53168,13 +53171,13 @@ object-assign ); } }, - j = {}; - function D(t) { + D = {}; + function j(t) { return t.copy || t.base; } function R(t, e) { var n = t[o], - r = Reflect.getOwnPropertyDescriptor(n ? D(n) : t, e); + r = Reflect.getOwnPropertyDescriptor(n ? j(n) : t, e); return r && r.value; } function z(t) { @@ -53185,20 +53188,20 @@ object-assign t.parent && z(t.parent)); } f(L, function(t, e) { - j[t] = function() { + D[t] = function() { return ( (arguments[0] = arguments[0][0]), e.apply(this, arguments) ); }; }), - (j.deleteProperty = function(t, e) { + (D.deleteProperty = function(t, e) { if (isNaN(parseInt(e))) throw new Error( 'Immer only supports deleting array indices' ); return L.deleteProperty.call(this, t[0], e); }), - (j.set = function(t, e, n) { + (D.set = function(t, e, n) { if ('length' !== e && isNaN(parseInt(e))) throw new Error( "Immer only supports setting array indices and the 'length' property" @@ -53880,7 +53883,7 @@ object-assign function L(t) { f(t.c, 'body', t.a); } - function j(t) { + function D(t) { return ( 'display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:' + S(t.c) + @@ -53891,7 +53894,7 @@ object-assign '00;' ); } - function D(t, e, n, r, i, o) { + function j(t, e, n, r, i, o) { (this.g = t), (this.j = e), (this.a = r), @@ -53913,13 +53916,13 @@ object-assign (this.h = new M(this.c, this.s)), (this.j = new M(this.c, this.s)), (this.m = new M(this.c, this.s)), - (t = j((t = new w(this.a.c + ',serif', E(this.a))))), + (t = D((t = new w(this.a.c + ',serif', E(this.a))))), (this.g.a.style.cssText = t), - (t = j((t = new w(this.a.c + ',sans-serif', E(this.a))))), + (t = D((t = new w(this.a.c + ',sans-serif', E(this.a))))), (this.h.a.style.cssText = t), - (t = j((t = new w('serif', E(this.a))))), + (t = D((t = new w('serif', E(this.a))))), (this.j.a.style.cssText = t), - (t = j((t = new w('sans-serif', E(this.a))))), + (t = D((t = new w('sans-serif', E(this.a))))), (this.m.a.style.cssText = t), L(this.g), L(this.h), @@ -53931,7 +53934,7 @@ object-assign e.push(arguments[n].replace(/[\W_]+/g, '').toLowerCase()); return e.join(this.a); }), - (D.prototype.start = function() { + (j.prototype.start = function() { var t = this.c.o.document, e = this, n = s(), @@ -54099,7 +54102,7 @@ object-assign G = p ? 42 < parseInt(p[1], 10) : !g; } else G = !1; (d = G - ? new D(a(e.g, e), a(e.h, e), e.c, c, e.s, f) + ? new j(a(e.g, e), a(e.h, e), e.c, c, e.s, f) : new R(a(e.g, e), a(e.h, e), e.c, c, e.s, t, f)), l.push(d); } @@ -56678,25 +56681,25 @@ object-assign (T['[object Error]'] = T[k] = T['[object WeakMap]'] = !1), (t.exports = function t(e, n, C, O, P, M) { var L, - j = 1 & n, - D = 2 & n, + D = 1 & n, + j = 2 & n, R = 4 & n; if ((C && (L = P ? C(e, O, P, M) : C(e)), void 0 !== L)) return L; if (!x(e)) return e; var z = y(e); if (z) { - if (((L = g(e)), !j)) return l(e, L); + if (((L = g(e)), !D)) return l(e, L); } else { var N = p(e), I = N == k || '[object GeneratorFunction]' == N; - if (b(e)) return u(e, j); + if (b(e)) return u(e, D); if (N == A || N == E || (I && !P)) { - if (((L = D || I ? {} : v(e)), !j)) - return D ? f(e, s(L, e)) : c(e, a(L, e)); + if (((L = j || I ? {} : v(e)), !D)) + return j ? f(e, s(L, e)) : c(e, a(L, e)); } else { if (!T[N]) return P ? e : {}; - L = m(e, N, j); + L = m(e, N, D); } } M || (M = new r()); @@ -56716,7 +56719,7 @@ object-assign }), L ); - var V = R ? (D ? h : d) : D ? keysIn : S, + var V = R ? (j ? h : d) : j ? keysIn : S, B = z ? void 0 : V(e); return ( i(B || e, function(r, i) { @@ -58713,9 +58716,9 @@ object-assign (n = t.g), (r = t.b), (s = { - r: 255 * j(e, 255), - g: 255 * j(n, 255), - b: 255 * j(r, 255) + r: 255 * D(e, 255), + g: 255 * D(n, 255), + b: 255 * D(r, 255) }), (p = !0), (g = @@ -58724,9 +58727,9 @@ object-assign ? ((f = N(t.s)), (d = N(t.v)), (s = (function(t, e, n) { - (t = 6 * j(t, 360)), - (e = j(e, 100)), - (n = j(n, 100)); + (t = 6 * D(t, 360)), + (e = D(e, 100)), + (n = D(n, 100)); var r = i.floor(t), o = t - r, a = n * (1 - e), @@ -58762,9 +58765,9 @@ object-assign ); } if ( - ((t = j(t, 360)), - (e = j(e, 100)), - (n = j(n, 100)), + ((t = D(t, 360)), + (e = D(e, 100)), + (n = D(n, 100)), 0 === e) ) r = i = o = n; @@ -58806,7 +58809,7 @@ object-assign (this._tc_id = s++); } function h(t, e, n) { - (t = j(t, 255)), (e = j(e, 255)), (n = j(n, 255)); + (t = D(t, 255)), (e = D(e, 255)), (n = D(n, 255)); var r, i, o = c(t, e, n), @@ -58832,7 +58835,7 @@ object-assign return { h: r, s: i, l: s }; } function p(t, e, n) { - (t = j(t, 255)), (e = j(e, 255)), (n = j(n, 255)); + (t = D(t, 255)), (e = D(e, 255)), (n = D(n, 255)); var r, i, o = c(t, e, n), @@ -58879,12 +58882,12 @@ object-assign function v(t, e) { e = 0 === e ? 0 : e || 10; var n = d(t).toHsl(); - return (n.s -= e / 100), (n.s = D(n.s)), d(n); + return (n.s -= e / 100), (n.s = j(n.s)), d(n); } function y(t, e) { e = 0 === e ? 0 : e || 10; var n = d(t).toHsl(); - return (n.s += e / 100), (n.s = D(n.s)), d(n); + return (n.s += e / 100), (n.s = j(n.s)), d(n); } function b(t) { return d(t).desaturate(100); @@ -58892,7 +58895,7 @@ object-assign function _(t, e) { e = 0 === e ? 0 : e || 10; var n = d(t).toHsl(); - return (n.l += e / 100), (n.l = D(n.l)), d(n); + return (n.l += e / 100), (n.l = j(n.l)), d(n); } function x(t, e) { e = 0 === e ? 0 : e || 10; @@ -58907,7 +58910,7 @@ object-assign function w(t, e) { e = 0 === e ? 0 : e || 10; var n = d(t).toHsl(); - return (n.l -= e / 100), (n.l = D(n.l)), d(n); + return (n.l -= e / 100), (n.l = j(n.l)), d(n); } function S(t, e) { var n = d(t).toHsl(), @@ -59123,27 +59126,27 @@ object-assign }, toPercentageRgb: function() { return { - r: u(100 * j(this._r, 255)) + '%', - g: u(100 * j(this._g, 255)) + '%', - b: u(100 * j(this._b, 255)) + '%', + r: u(100 * D(this._r, 255)) + '%', + g: u(100 * D(this._g, 255)) + '%', + b: u(100 * D(this._b, 255)) + '%', a: this._a }; }, toPercentageRgbString: function() { return 1 == this._a ? 'rgb(' + - u(100 * j(this._r, 255)) + + u(100 * D(this._r, 255)) + '%, ' + - u(100 * j(this._g, 255)) + + u(100 * D(this._g, 255)) + '%, ' + - u(100 * j(this._b, 255)) + + u(100 * D(this._b, 255)) + '%)' : 'rgba(' + - u(100 * j(this._r, 255)) + + u(100 * D(this._r, 255)) + '%, ' + - u(100 * j(this._g, 255)) + + u(100 * D(this._g, 255)) + '%, ' + - u(100 * j(this._b, 255)) + + u(100 * D(this._b, 255)) + '%, ' + this._roundA + ')'; @@ -59510,7 +59513,7 @@ object-assign t ); } - function j(t, e) { + function D(t, e) { (function(t) { return ( 'string' == typeof t && @@ -59527,7 +59530,7 @@ object-assign i.abs(t - e) < 1e-6 ? 1 : (t % e) / parseFloat(e) ); } - function D(t) { + function j(t) { return l(1, c(0, t)); } function R(t) { @@ -60067,7 +60070,7 @@ object-assign return t; }).apply(this, arguments); } - var j = i.a.createElement( + var D = i.a.createElement( 'defs', null, i.a.createElement('path', { @@ -60076,7 +60079,7 @@ object-assign 'M24.184 24c.727 0 1.316.448 1.316 1s-.59 1-1.316 1H1.816C1.089 26 .5 25.552.5 25s.59-1 1.316-1h22.368zM13 4c.552 0 1 .61 1 1.364v11.325l3.306.001a.5.5 0 01.41.788l-.056.066-4.308 4.307a.5.5 0 01-.638.058l-.069-.058-4.308-4.307a.5.5 0 01.268-.847l.086-.007L12 16.689V5.364C12 4.61 12.448 4 13 4z' }) ), - D = i.a.createElement( + j = i.a.createElement( 'g', { fill: 'none', fillRule: 'evenodd' }, i.a.createElement( @@ -61346,8 +61349,8 @@ object-assign return i.a.createElement( 'svg', L({ viewBox: '0 0 26 30' }, t), - j, - D + D, + j ); }, { width: '0.85em' } @@ -62132,12 +62135,11 @@ object-assign l = s[1], c = Mt(Object(r.useState)(!1), 2), f = c[0], - d = c[1], - h = null; + d = c[1]; Object(r.useEffect)(function() { n ? l({ hex: n }) : o && l({ hex: o }); }, []); - var p = { + var h = { input: { border: 'none', outline: 'none', @@ -62146,14 +62148,11 @@ object-assign label: { display: 'none' }, color: { background: ''.concat(u.hex) } }, - g = function() { + p = function() { d(!1); }, - m = function(t) { - clearTimeout(h), - (h = setTimeout(function() { - t.hex ? (l(t), a(t, e)) : l({ hex: n }); - }, 500)); + g = function(t) { + t.hex ? (l(t), a(t, e)) : l({ hex: n }); }; return i.a.createElement( 'div', @@ -62171,52 +62170,52 @@ object-assign 'div', { className: 'custom-color-picker__swatch', - style: p.swatch, + style: h.swatch, onClick: function() { d(!f); } }, i.a.createElement('div', { className: 'custom-color-picker__color', - style: p.color + style: h.color }) ), i.a.createElement(Pt.EditableInput, { - style: p, + style: h, label: 'hex', value: u.hex === lt ? 'AUTO' : u.hex, - onChange: m + onChange: g }), f ? i.a.createElement( 'div', { className: 'custom-color-picker__popover', - style: p.popover + style: h.popover }, i.a.createElement('div', { className: 'custom-color-picker__cover', - style: p.cover, - onClick: g + style: h.cover, + onClick: p }), i.a.createElement( 'button', { className: 'btn btn__small btn-reset', onClick: function() { - m({ hex: o || lt }); + g({ hex: o || lt }); } }, 'Auto' ), i.a.createElement( 'button', - { className: 'btn-close', onClick: g }, + { className: 'btn-close', onClick: p }, '×' ), i.a.createElement(_.SketchPicker, { color: u, - onChange: m, + onChange: g, disableAlpha: !0 }) ) @@ -62224,15 +62223,15 @@ object-assign ) ); }, - jt = Object(_.CustomPicker)(Lt); + Dt = Object(_.CustomPicker)(Lt); (Lt.defaultProps = { title: '', onChange: function() {} }), (Lt.propTypes = { title: a.a.string, initialColor: a.a.string, onChange: a.a.func.isRequired }); - var Dt = n(91), - Rt = n.n(Dt), + var jt = n(91), + Rt = n.n(jt), zt = function(t) { var e, n = t.family, @@ -62587,8 +62586,7 @@ object-assign 'children', 'label' ]), - h = null, - p = (function(t, e) { + h = (function(t, e) { return ( (function(t) { if (Array.isArray(t)) return t; @@ -62623,18 +62621,20 @@ object-assign })() ); })(Object(r.useState)(l), 2), - g = p[0], - m = p[1]; + p = h[0], + g = h[1]; Object(r.useEffect)( function() { - h && clearTimeout(h), - (h = setTimeout(function() { - a(g); - }, 500)); + var t = setTimeout(function() { + a(p); + }, 500); + return function() { + return clearTimeout(t); + }; }, - [g] + [p] ); - var v = s + var m = s ? 'form-input__input '.concat(s) : 'form-input__input'; return i.a.createElement( @@ -62654,10 +62654,10 @@ object-assign type: n, placeholder: o, onChange: function(t) { - t.persist(), m(t.target.value); + t.persist(), g(t.target.value); }, - value: g, - className: v, + value: p, + className: m, style: c && { border: 'solid 1px red' } }, d @@ -62785,7 +62785,6 @@ object-assign '\n ', '\n ', '\n ', - '\n ', '\n }\n ', ' .keen-dataviz .c3-chart-lines .c3-shape.c3-line {\n ', '\n }\n ', @@ -62827,7 +62826,6 @@ object-assign '\n ', '\n ', '\n ', - '\n ', '\n }\n ' ]); return ( @@ -62905,118 +62903,106 @@ object-assign t ); } - var ue = function(t) { - switch (t) { - case 'left': - return 'end'; - case 'right': - return 'start'; - default: - return 'middle'; - } - }; - function le(t) { + function ue(t) { return { chartBackground: t.appearance_background ? 'background-color: '.concat(t.appearance_background, ';') - : 'background-color: inherit;', + : '', chartBorder: t.appearance_border ? 'border-color: '.concat(t.appearance_border, ';') - : 'border-color: inherit;', + : '', chartFont: t.appearance_font_family ? 'font-family: "'.concat(t.appearance_font_family, '";') - : 'font-family: inherit;', + : '', chartFontSize: 'auto' !== t.appearance_font_size ? 'font-size: '.concat(t.appearance_font_size, 'px;') - : 'font-size: inherit;', + : '', chartFontBold: t.appearance_font_bold ? 'font-weight: bold;' - : 'font-weight: inherit;', + : '', chartFontItalic: t.appearance_font_italic ? 'font-style: italic;' - : 'font-style: inherit;', + : '', chartColor: t.appearance_color ? 'color: '.concat(t.appearance_color, ';') - : 'color: inherit;', + : '', titleTextAlign: 'text-align: '.concat(t.title_textAlign, ';'), titleColor: t.title_color ? 'color: '.concat(t.title_color, ';') - : 'color: inherit;', + : '', titleFontFamily: t.title_font_family ? 'font-family: "'.concat(t.title_font_family, '";') - : 'font-family: inherit;', + : '', titleFontSize: 'auto' !== t.title_font_size ? 'font-size: '.concat(t.title_font_size, 'px;') - : 'font-size: inherit;', - titleFontBold: t.title_font_bold - ? 'font-weight: bold;' - : 'font-weight: inherit;', + : '', + titleFontBold: t.title_font_bold ? 'font-weight: bold;' : '', titleFontItalic: t.title_font_italic ? 'font-style: italic;' - : 'font-style: inherit;', + : '', subtitleTextAlign: 'text-align: '.concat( t.subtitle_textAlign, ';' ), subtitleColor: t.subtitle_color ? 'color: '.concat(t.subtitle_color, ';') - : 'color: inherit;', + : '', subtitleFontFamily: t.subtitle_font_family ? 'font-family: "'.concat(t.subtitle_font_family, '";') - : 'font-family: inherit;', + : '', subtitleFontSize: 'auto' !== t.subtitle_font_size ? 'font-size: '.concat(t.subtitle_font_size, 'px;') - : 'font-size: inherit;', + : '', subtitleFontBold: t.subtitle_font_bold ? 'font-weight: bold;' - : 'font-weight: inherit;', + : '', subtitleFontItalic: t.subtitle_font_italic ? 'font-style: italic;' - : 'font-style: inherit;', + : '', axisYTitleFont: t.axis_vertical_title_font_family ? 'font-family: "'.concat( t.axis_vertical_title_font_family, '";' ) - : 'font-family: inherit;', + : '', axisYTitleFontSize: 'auto' !== t.axis_vertical_title_font_size ? 'font-size: '.concat( t.axis_vertical_title_font_size, 'px;' ) - : 'font-size: inherit;', + : '', axisYTitleFontBold: t.axis_vertical_title_font_bold ? 'font-weight: bold;' - : 'font-weight: inherit;', + : '', axisYTitleFontItalic: t.axis_vertical_title_font_italic ? 'font-style: italic;' - : 'font-style: inherit;', + : '', axisYTitleColor: t.axis_vertical_title_color ? 'fill: '.concat(t.axis_vertical_title_color, ';') - : 'fill: inherit;', + : '', axisYLabelFont: t.axis_vertical_label_font_family ? 'font-family: "'.concat( t.axis_vertical_label_font_family, '";' ) - : 'font-family: inherit;', + : '', axisYLabelFontSize: 'auto' !== t.axis_vertical_label_font_size ? 'font-size: '.concat( t.axis_vertical_label_font_size, 'px;' ) - : 'font-size: inherit;', + : '', axisYLabelFontBold: t.axis_vertical_label_font_bold ? 'font-weight: bold;' - : 'font-weight: inherit;', + : '', axisYLabelFontItalic: t.axis_vertical_label_font_italic ? 'font-style: italic;' - : 'font-style: inherit;', + : '', axisYLabelColor: t.axis_vertical_label_color ? 'fill: '.concat(t.axis_vertical_label_color, ';') : 'fill: inherit;', @@ -63025,110 +63011,106 @@ object-assign t.axis_horizontal_title_font_family, '";' ) - : 'font-family: inherit;', + : '', axisXTitleFontSize: 'auto' !== t.axis_horizontal_title_font_size ? 'font-size: '.concat( t.axis_horizontal_title_font_size, 'px;' ) - : 'font-size: inherit;', + : '', axisXTitleFontBold: t.axis_horizontal_title_font_bold ? 'font-weight: bold;' - : 'font-weight: inherit;', + : '', axisXTitleFontItalic: t.axis_horizontal_title_font_italic ? 'font-style: italic;' - : 'font-style: inherit;', + : '', axisXTitleColor: t.axis_horizontal_title_color ? 'fill: '.concat(t.axis_horizontal_title_color, ';') - : 'fill: inherit;', + : '', axisXLabelFont: t.axis_horizontal_label_font_family ? 'font-family: "'.concat( t.axis_horizontal_label_font_family, '";' ) - : 'font-family: inherit;', + : '', axisXLabelFontSize: 'auto' !== t.axis_horizontal_label_font_size ? 'font-size: '.concat( t.axis_horizontal_label_font_size, 'px;' ) - : 'font-size: inherit;', + : '', axisXLabelFontBold: t.axis_horizontal_label_font_bold ? 'font-weight: bold;' - : 'font-weight: inherit;', + : '', axisXLabelFontItalic: t.axis_horizontal_label_font_italic ? 'font-style: italic;' - : 'font-style: inherit;', + : '', axisXLabelColor: t.axis_horizontal_label_color ? 'fill: '.concat(t.axis_horizontal_label_color, ';') - : 'fill: inherit;', + : '', legendFont: t.legend_font_family ? 'font-family: "'.concat(t.legend_font_family, '";') - : 'font-family: inherit;', + : '', legendFontSize: 'auto' !== t.legend_font_size ? 'font-size: '.concat(t.legend_font_size, 'px;') - : 'font-size: inherit;', + : '', legendFontBold: t.legend_font_bold ? 'font-weight: bold;' - : 'font-weight: inherit;', + : '', legendFontItalic: t.legend_font_italic ? 'font-style: italic;' - : 'font-style: inherit;', + : '', legendColor: t.legend_color ? 'color: '.concat(t.legend_color, ';') - : 'color: inherit;', + : '', gridLineShow: t.grid_show ? 'stroke-opacity: 1;' : 'stroke-opacity: 0;', gridLineColor: t.grid_lines_color ? 'stroke: '.concat(t.grid_lines_color) - : 'stroke: inherit;', + : '', subgridLineColor: t.subgrid_lines_color ? 'stroke: '.concat(t.subgrid_lines_count) - : 'stroke: inherit;', + : '', seriesLabelFont: t.series_label_font_family ? 'font-family: "'.concat(t.series_label_font_family, '";') - : 'font-family: inherit;', + : '', seriesLabelFontSize: 'auto' !== t.series_label_font_size ? 'font-size: '.concat(t.series_label_font_size, 'px;') - : 'font-size: inherit;', + : '', seriesLabelFontBold: t.series_label_font_bold ? 'font-weight: bold;' - : 'font-weight: inherit;', + : '', seriesLabelFontItalic: t.series_label_font_italic ? 'font-style: italic;' - : 'font-style: inherit;', + : '', seriesLabelColor: t.series_label_color ? 'fill: '.concat(t.series_label_color, ' !important;') - : 'fill: inherit;', - seriesLabelTextAlign: 'text-anchor: '.concat( - ue(t.series_label_textAlign), - ' !important;' - ), + : '', seriesLineThickness: 'stroke-width: '.concat( t.series_line, 'px;' ), tooltipFont: t.tooltip_font_family ? 'font-family: "'.concat(t.tooltip_font_family, '";') - : 'font-family: inherit;', + : '', tooltipFontSize: 'auto' !== t.tooltip_font_size ? 'font-size: '.concat(t.tooltip_font_size, 'px;') - : 'font-size: inherit;', + : '', tooltipFontBold: t.tooltip_font_bold ? 'font-weight: bold;' - : 'font-weight: inherit;', + : '', tooltipFontItalic: t.tooltip_font_italic ? 'font-style: italic;' - : 'font-style: inherit;', + : '', tooltipColor: t.tooltip_color ? 'color: '.concat(t.tooltip_color, ';') - : 'color: inherit;', + : '', tooltipBackground: t.tooltip_background ? 'background-color: '.concat(t.tooltip_background, ';') : '', @@ -63138,79 +63120,75 @@ object-assign : '', tableHeaderFont: t.table_header_font_family ? 'font-family: "'.concat(t.table_header_font_family, '";') - : 'font-family: inherit;', + : '', tableHeaderFontSize: 'auto' !== t.table_header_font_size ? 'font-size: '.concat(t.table_header_font_size, 'px;') - : 'font-size: inherit;', + : '', tableHeaderFontBold: t.table_header_font_bold ? 'font-weight: bold;' - : 'font-weight: inherit;', + : '', tableHeaderFontItalic: t.table_header_font_italic ? 'font-style: italic;' - : 'font-style: inherit;', + : '', tableHeaderTextAlign: 'text-align: '.concat( t.table_header_textAlign, ';' ), tableHeaderColor: t.table_header_color ? 'color: '.concat(t.table_header_color, ';') - : 'color: inherit;', + : '', tableBodyFont: t.table_body_font_family ? 'font-family: "'.concat(t.table_body_font_family, '";') - : 'font-family: inherit;', + : '', tableBodyFontSize: 'auto' !== t.table_body_font_size ? 'font-size: '.concat(t.table_body_font_size, 'px;') - : 'font-size: inherit;', + : '', tableBodyFontBold: t.table_body_font_bold ? 'font-weight: bold;' - : 'font-weight: inherit;', + : '', tableBodyFontItalic: t.table_body_font_italic ? 'font-style: italic;' - : 'font-style: inherit;', + : '', tableBodyTextAlign: 'text-align: '.concat( t.table_body_textAlign, ';' ), tableBodyColor: t.table_body_color ? 'color: '.concat(t.table_body_color, ';') - : 'color: inherit;', + : '', tableBodyRowAltBackground: t.table_body_row_alternate_color ? 'background-color: '.concat( t.table_body_row_alternate_color, ';' ) - : 'background-color: inherit;', + : '', tableBodyRowHoverBackground: t.table_body_row_hover_background ? 'background-color: '.concat( t.table_body_row_hover_background, ';' ) - : 'background-color: inherit;', - funnelLabelTextAlign: 'text-anchor: '.concat( - ue(t.funnel_label_textAlign), - ' !important;' - ), + : '', funnelLabelColor: t.funnel_label_color ? 'fill: '.concat(t.funnel_label_color, ';') - : 'fill: inherit;', + : '', funnelLabelFontFamily: t.funnel_label_font_family ? 'font-family: "'.concat(t.funnel_label_font_family, '";') - : 'font-family: inherit;', + : '', funnelLabelFontSize: 'auto' !== t.funnel_label_font_size ? 'font-size: '.concat(t.funnel_label_font_size, 'px;') - : 'font-size: inherit;', + : '', funnelLabelFontBold: t.funnel_label_font_bold ? 'font-weight: bold;' - : 'font-weight: inherit;', + : '', funnelLabelFontItalic: t.funnel_label_font_italic ? 'font-style: italic;' - : 'font-style: inherit;' + : '' }; } - function ce(t) { + function le(t) { var e = {}, n = J.map(function(t) { return t.value; @@ -63246,7 +63224,7 @@ object-assign e ); } - function fe() { + function ce() { for ( var t = arguments.length > 0 && void 0 !== arguments[0] @@ -63271,7 +63249,7 @@ object-assign ); } } - function de(t) { + function fe(t) { for ( var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), @@ -63285,14 +63263,14 @@ object-assign var i = ae({}, t); return ( n.forEach(function(t) { - i = ae({}, de(i, t)); + i = ae({}, fe(i, t)); }), i ); } switch (n[0]) { case 'axis': - return fe( + return ce( t, 'axis_vertical_title_show', 'axis_vertical_title_text', @@ -63324,7 +63302,7 @@ object-assign 'axis_horizontal_label_font_italic' ); case 'legend': - return fe( + return ce( t, 'legend_show', 'legend_color', @@ -63337,7 +63315,7 @@ object-assign 'legend_position_vertical' ); case 'grid': - return fe( + return ce( t, 'grid_show', 'grid_lines_color', @@ -63347,7 +63325,7 @@ object-assign 'subgrid_lines_count' ); case 'series': - return fe( + return ce( t, 'series_label_show', 'series_label_textAlign', @@ -63362,7 +63340,7 @@ object-assign 'series_points_size' ); case 'tooltip': - return fe( + return ce( t, 'tooltip_color', 'tooltip_font_family', @@ -63373,7 +63351,7 @@ object-assign 'tooltip_border' ); case 'table': - return fe( + return ce( t, 'table_pagination_show', 'table_pagination_limit', @@ -63395,7 +63373,7 @@ object-assign 'table_body_row_hover_background' ); case 'funnel': - return fe( + return ce( t, 'funnel_lines', 'funnel_results', @@ -63418,9 +63396,10 @@ object-assign } } } - function he(t, e) { - var n = le(t), - r = e ? '#'.concat(e) : '.keen-theme-builder'; + function de(t, e) { + var n = ue(t), + r = e ? '#'.concat(e) : '.keen-theme-builder', + i = new RegExp(/(^[ \t]*\n)/, 'gm'); return Object(ee.stripIndent)( re(), r, @@ -63490,7 +63469,6 @@ object-assign n.seriesLabelFontSize, n.seriesLabelFontBold, n.seriesLabelFontItalic, - n.seriesLabelTextAlign, n.seriesLabelColor, r, n.seriesLineThickness, @@ -63529,14 +63507,13 @@ object-assign n.tableBodyRowHoverBackground, r, n.funnelLabelColor, - n.funnelLabelTextAlign, n.funnelLabelFontFamily, n.funnelLabelFontSize, n.funnelLabelFontBold, n.funnelLabelFontItalic - ); + ).replace(i, ''); } - function pe(t, e) { + function he(t, e) { var n, r = t.colors || [], i = !(!t.title_show || !t.title_text) && t.title_text, @@ -63555,7 +63532,7 @@ object-assign alignment: a } : { show: t.legend_show }, - u = ce(t), + u = le(t), l = t.series_points_show ? { show: t.series_points_show, r: t.series_points_size } : { show: t.series_points_show }, @@ -63653,7 +63630,7 @@ object-assign Kt.a.registerLanguage('css', Zt.a), Kt.a.registerLanguage('js', te.a), (document.createElement('li').className = 'placeholder'); - var ge = function(t) { + var pe = function(t) { var e = t.type, n = t.data, r = @@ -63683,7 +63660,7 @@ object-assign (i[n] = t[n])); } })(t, ['type', 'data']), - 'js' === e ? pe(n) : he(n)); + 'js' === e ? he(n) : de(n)); return i.a.createElement( i.a.Fragment, null, @@ -63715,16 +63692,16 @@ object-assign }) ); }, - me = ge; - (ge.defaultProps = { type: 'js', data: {} }), - (ge.propTypes = { + ge = pe; + (pe.defaultProps = { type: 'js', data: {} }), + (pe.propTypes = { type: a.a.oneOf(['js', 'css']).isRequired, data: a.a.object.isRequired }); - var ve = n(14), - ye = n.n(ve); - function be() { - return (be = + var me = n(14), + ve = n.n(me); + function ye() { + return (ye = Object.assign || function(t) { for (var e = 1; e < arguments.length; e++) { @@ -63736,7 +63713,7 @@ object-assign return t; }).apply(this, arguments); } - var _e = function(t) { + var be = function(t) { var e, n = t.type, r = t.colors, @@ -63826,7 +63803,7 @@ object-assign ? i.a.createElement( 'div', { className: 'builder__default-charts' }, - i.a.createElement(ye.a, { + i.a.createElement(ve.a, { type: 'bar', title: c, subtitle: f, @@ -63839,7 +63816,7 @@ object-assign stacked: x, results: G.bar }), - i.a.createElement(ye.a, { + i.a.createElement(ve.a, { type: 'area', title: c, subtitle: f, @@ -63852,7 +63829,7 @@ object-assign stacked: x, results: G.area }), - i.a.createElement(ye.a, { + i.a.createElement(ve.a, { type: 'funnel-3d', title: c, subtitle: f, @@ -63864,8 +63841,8 @@ object-assign results: G['funnel-3d'] }), i.a.createElement( - ye.a, - be( + ve.a, + ye( { type: 'donut', title: c, @@ -63882,8 +63859,8 @@ object-assign ) ) : i.a.createElement( - ye.a, - be( + ve.a, + ye( { type: n, title: c, @@ -63911,9 +63888,9 @@ object-assign ) ); }, - xe = _e; - function we(t) { - return (we = + _e = be; + function xe(t) { + return (xe = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(t) { @@ -63928,7 +63905,7 @@ object-assign : typeof t; })(t); } - function Se(t) { + function we(t) { return ( (function(t) { if (Array.isArray(t)) { @@ -63955,7 +63932,7 @@ object-assign })() ); } - function Ee(t, e) { + function Se(t, e) { if (null == t) return {}; var n, r, @@ -63979,7 +63956,7 @@ object-assign } return i; } - function ke(t) { + function Ee(t) { for (var e = 1; e < arguments.length; e++) { var n = null != arguments[e] ? arguments[e] : {}, r = Object.keys(n); @@ -63990,12 +63967,12 @@ object-assign }) )), r.forEach(function(e) { - Ae(t, e, n[e]); + ke(t, e, n[e]); }); } return t; } - function Ae(t, e, n) { + function ke(t, e, n) { return ( e in t ? Object.defineProperty(t, e, { @@ -64008,7 +63985,7 @@ object-assign t ); } - function Te(t, e) { + function Ae(t, e) { for (var n = 0; n < e.length; n++) { var r = e[n]; (r.enumerable = r.enumerable || !1), @@ -64017,28 +63994,28 @@ object-assign Object.defineProperty(t, r.key, r); } } - function Ce(t) { - return (Ce = Object.setPrototypeOf + function Te(t) { + return (Te = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { return t.__proto__ || Object.getPrototypeOf(t); })(t); } - function Oe(t, e) { - return (Oe = + function Ce(t, e) { + return (Ce = Object.setPrototypeOf || function(t, e) { return (t.__proto__ = e), t; })(t, e); } - (_e.propTypes = { + (be.propTypes = { type: a.a.string.isRequired, colors: a.a.array.isRequired }), n(232), n(234), n(236); - var Pe = (function(t) { + var Oe = (function(t) { function e(t) { var n; !(function(t, e) { @@ -64047,7 +64024,7 @@ object-assign })(this, e), ((n = (function(t, e) { return !e || - ('object' !== we(e) && 'function' != typeof e) + ('object' !== xe(e) && 'function' != typeof e) ? (function(t) { if (void 0 === t) throw new ReferenceError( @@ -64058,7 +64035,7 @@ object-assign : e; })( this, - Ce(e).call(this, t) + Te(e).call(this, t) )).handleChartTypeChange = function(t) { t.value && n.setState({ chart: t.value, isModified: !0 }); }), @@ -64113,7 +64090,7 @@ object-assign return i.a.createElement( 'div', { className: s }, - i.a.createElement(jt, { + i.a.createElement(Dt, { key: e, title: t, initialColor: n.state[''.concat(e, '_color')], @@ -64174,11 +64151,11 @@ object-assign case 'area-spline': case 'step': case 'area-step': - return ae({}, de(dt, 'table', 'funnel')); + return ae({}, fe(dt, 'table', 'funnel')); case 'table': return ae( {}, - de( + fe( dt, 'axis', 'legend', @@ -64191,7 +64168,7 @@ object-assign case 'metric': return ae( {}, - de( + fe( dt, 'axis', 'legend', @@ -64207,19 +64184,19 @@ object-assign case 'gauge': return ae( {}, - de(dt, 'axis', 'grid', 'table', 'funnel'), + fe(dt, 'axis', 'grid', 'table', 'funnel'), { series_label_show: !0 } ); case 'gauge': return ae( {}, - de(dt, 'axis', 'grid', 'legend', 'table', 'funnel') + fe(dt, 'axis', 'grid', 'legend', 'table', 'funnel') ); case 'heatmap': case 'choropleth': return ae( {}, - de( + fe( dt, 'axis', 'series', @@ -64235,7 +64212,7 @@ object-assign case 'horizontal-funnel-3d': return ae( {}, - de( + fe( dt, 'series', 'legend', @@ -64250,7 +64227,7 @@ object-assign } })(void 0 === r ? '' : r); return ( - (n.state = ke({}, o, t.options, { isModified: !1 })), n + (n.state = Ee({}, o, t.options, { isModified: !1 })), n ); } var n, r; @@ -64263,7 +64240,7 @@ object-assign (t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } })), - e && Oe(t, e); + e && Ce(t, e); })(e, t), (n = e), (r = [ @@ -64296,19 +64273,19 @@ object-assign var n = this; f()(t, this.props) || this.setState(function(t) { - return ke({}, t, n.props.options); + return Ee({}, t, n.props.options); }); var r = this.state, i = (r.fonts, r.isModified), - o = Ee(r, ['fonts', 'isModified']), + o = Se(r, ['fonts', 'isModified']), a = (e.fonts, e.isModified, - Ee(e, ['fonts', 'isModified'])), + Se(e, ['fonts', 'isModified'])), s = this.props, u = s.isDashboardBuilderActive, l = (s.containerId, s.onChange), - c = u ? { theme: o, options: pe(o, !0) } : o; + c = u ? { theme: o, options: he(o, !0) } : o; i && !f()(o, a) && l && this.props.onChange(c); } }, @@ -64328,7 +64305,7 @@ object-assign value: function() { this.setState(function(t) { return { - colors: [].concat(Se(t.colors), ['#222222']), + colors: [].concat(we(t.colors), ['#222222']), isModified: !0 }; }); @@ -64338,7 +64315,7 @@ object-assign key: 'removeItem', value: function(t) { this.setState(function(e) { - var n = Se(e.colors); + var n = we(e.colors); return n.splice(t, 1), { colors: n, isModified: !0 }; }); } @@ -64347,7 +64324,7 @@ object-assign key: 'onColorChange', value: function(t, e) { this.setState(function(n) { - var r = Se(n.colors); + var r = we(n.colors); return (r[e] = t), { colors: r, isModified: !0 }; }); } @@ -64381,10 +64358,10 @@ object-assign key: 'handleTextStateUpdate', value: function(t, e) { this.setState(function(n) { - return ke( + return Ee( {}, n, - Ae({ isModified: !0 }, t, e !== lt ? e : '') + ke({ isModified: !0 }, t, e !== lt ? e : '') ); }); } @@ -64483,7 +64460,7 @@ object-assign { className: 'accordion__item__row three-elements' }, - i.a.createElement(jt, { + i.a.createElement(Dt, { title: 'Title format', initialColor: this.state .axis_vertical_title_color, @@ -64683,7 +64660,7 @@ object-assign return i.a.createElement( 'div', { className: 'accordion__item__row two-elements' }, - i.a.createElement(jt, { + i.a.createElement(Dt, { title: 'Lines color', initialColor: this.state.grid_lines_color, defaultColor: Q.border, @@ -64724,7 +64701,7 @@ object-assign return i.a.createElement( 'div', { className: 'accordion__item__row two-elements' }, - i.a.createElement(jt, { + i.a.createElement(Dt, { title: 'Lines color', initialColor: this.state.subgrid_lines_color, defaultColor: Q.border, @@ -64768,7 +64745,7 @@ object-assign this.renderFontStyle( 'Labels format', 'series_label', - !0 + !1 ) ); } @@ -65015,7 +64992,7 @@ object-assign i.a.createElement( 'div', { className: 'accordion__item__row' }, - i.a.createElement(jt, { + i.a.createElement(Dt, { title: 'Chart border', initialColor: this.state.choropleth_border_color, defaultColor: Q.border, @@ -65286,7 +65263,7 @@ object-assign i.a.createElement( 'div', { className: 'accordion__item__row' }, - i.a.createElement(jt, { + i.a.createElement(Dt, { title: 'Chart background', initialColor: this.state .appearance_background, @@ -65302,7 +65279,7 @@ object-assign i.a.createElement( 'div', { className: 'accordion__item__row' }, - i.a.createElement(jt, { + i.a.createElement(Dt, { title: 'Chart border', initialColor: this.state.appearance_border, defaultColor: Q.border, @@ -65619,7 +65596,7 @@ object-assign i.a.createElement( 'div', { className: 'accordion__item__row' }, - i.a.createElement(jt, { + i.a.createElement(Dt, { key: 'tooltip_background', title: 'Tooltip background', initialColor: this.state.tooltip_background, @@ -65635,7 +65612,7 @@ object-assign i.a.createElement( 'div', { className: 'accordion__item__row' }, - i.a.createElement(jt, { + i.a.createElement(Dt, { key: 'tooltip_border', title: 'Tooltip border', initialColor: this.state.tooltip_border, @@ -65774,7 +65751,7 @@ object-assign i.a.createElement( 'div', { className: 'accordion__item__row' }, - i.a.createElement(jt, { + i.a.createElement(Dt, { title: 'Alternate row background', initialColor: this.state .table_body_row_alternate_color, @@ -65805,7 +65782,7 @@ object-assign this.renderFontStyle( 'Label format', 'funnel_label', - !0 + !1 ), i.a.createElement( Ut, @@ -65928,7 +65905,7 @@ object-assign { key: 'renderTabChart', value: function() { - var t = le(this.state), + var t = ue(this.state), e = !( !this.state.title_show || !this.state.title_text @@ -65996,13 +65973,13 @@ object-assign return i.a.createElement( i.a.Fragment, null, - i.a.createElement(xe, { + i.a.createElement(_e, { type: this.state.chart, colors: this.state.colors, legend: o, title: e, subtitle: n, - axis: ce(this.state), + axis: le(this.state), data: a, point: s, prefix: u, @@ -66017,7 +65994,7 @@ object-assign i.a.createElement( m.a, { - id: '525159873', + id: '2022330400', dynamic: [ t.chartBackground, t.chartBorder, @@ -66065,7 +66042,6 @@ object-assign t.seriesLabelFontSize, t.seriesLabelFontBold, t.seriesLabelFontItalic, - t.seriesLabelTextAlign, t.seriesLabelColor, t.seriesLineThickness, t.tooltipFont, @@ -66095,7 +66071,6 @@ object-assign t.tableBodyRowAltBackground, t.tableBodyRowHoverBackground, t.funnelLabelColor, - t.funnelLabelTextAlign, t.funnelLabelFontFamily, t.funnelLabelFontSize, t.funnelLabelFontBold, @@ -66167,7 +66142,6 @@ object-assign .concat(t.seriesLabelFontSize, ' ') .concat(t.seriesLabelFontBold, ' ') .concat(t.seriesLabelFontItalic, ' ') - .concat(t.seriesLabelTextAlign, ' ') .concat(t.seriesLabelColor, ';}'), '.keen-theme-builder .keen-dataviz .c3-chart-lines .c3-shape.c3-line{'.concat( t.seriesLineThickness, @@ -66211,7 +66185,6 @@ object-assign ), '.keen-theme-builder .keen-dataviz-rendering .text-label{display:block;' .concat(t.funnelLabelColor, ' ') - .concat(t.funnelLabelTextAlign, ' ') .concat(t.funnelLabelFontFamily, ' ') .concat(t.funnelLabelFontSize, ' ') .concat(t.funnelLabelFontBold, ' ') @@ -66251,7 +66224,7 @@ object-assign i.a.createElement( d.TabPanel, null, - i.a.createElement(me, { + i.a.createElement(ge, { data: this.state, type: 'css' }) @@ -66259,7 +66232,7 @@ object-assign i.a.createElement( d.TabPanel, null, - i.a.createElement(me, { + i.a.createElement(ge, { data: this.state, type: 'js' }) @@ -66283,26 +66256,26 @@ object-assign ); } } - ]) && Te(n.prototype, r), + ]) && Ae(n.prototype, r), e ); })(r.PureComponent); - (Pe.propTypes = { + (Oe.propTypes = { options: a.a.object.isRequired, isDashboardBuilderActive: a.a.bool, onChange: a.a.func.isRequired }), - (Pe.defaultProps = { + (Oe.defaultProps = { options: dt, isDashboardBuilderActive: !1, onChange: function() {} }), n.d(e, 'getStyles', function() { - return Me; + return Pe; }), - (e.default = Pe); - var Me = function(t, e) { - return he(t, e); + (e.default = Oe); + var Pe = function(t, e) { + return de(t, e); }; } ]))); @@ -66677,7 +66650,7 @@ object-assign r = t.substring(0, 3 !== e ? n : 10); return ( (n = t.substring(n + 1, t.length - 1)), - j(2 !== e ? r : r.replace(S, '$1'), n, e) + D(2 !== e ? r : r.replace(S, '$1'), n, e) ); } function o(t, e) { @@ -66702,11 +66675,11 @@ object-assign function s(t) { return ( void 0 !== (t = t.prefix) && - ((j = null), + ((D = null), t ? 'function' != typeof t ? (O = 1) - : ((O = 2), (j = t)) + : ((O = 2), (D = t)) : (O = 0)), s ); @@ -66729,7 +66702,7 @@ object-assign E = 0, k = 0, M = 0, - j = 0, + D = 0, R = (g = h = 0), z = 0, N = 0, @@ -66935,7 +66908,7 @@ object-assign 107 !== f && 0 < G.length && ((N = 1), (G += '\0')), - 0 < L * D && a(0, G, s, n, T, A, H.length, f, d, f), + 0 < L * j && a(0, G, s, n, T, A, H.length, f, d, f), (A = 1), T++; break; @@ -66981,7 +66954,7 @@ object-assign 58 === u.charCodeAt(z - 3) && (C = M); case 8: - 111 === j && (C = j); + 111 === D && (C = D); } break; case 58: @@ -67006,7 +66979,7 @@ object-assign case 40: if (0 === k + S + w) { if (0 === h) - switch (2 * M + 3 * j) { + switch (2 * M + 3 * D) { case 533: break; default: @@ -67043,7 +67016,7 @@ object-assign } 0 === S && (G += b); } - (j = M), (M = p), z++; + (D = M), (M = p), z++; } if (0 < (F = H.length)) { if ( @@ -67104,8 +67077,8 @@ object-assign P = [], M = [], L = 0, - j = null, - D = 0; + D = null, + j = 0; return ( (u.use = function t(e) { switch (e) { @@ -67122,7 +67095,7 @@ object-assign M[L++] = e; break; case Boolean: - D = 0 | !!e; + j = 0 | !!e; } } return t; @@ -67511,10 +67484,10 @@ object-assign return 'object' == typeof t && null !== t && t.$$typeof === o; } var L = /\/+/g, - j = []; - function D(t, e, n, r) { - if (j.length) { - var i = j.pop(); + D = []; + function j(t, e, n, r) { + if (D.length) { + var i = D.pop(); return ( (i.result = t), (i.keyPrefix = e), @@ -67532,7 +67505,7 @@ object-assign (t.func = null), (t.context = null), (t.count = 0), - 10 > j.length && j.push(t); + 10 > D.length && D.push(t); } function z(t, e, n) { return null == t @@ -67632,7 +67605,7 @@ object-assign function V(t, e, n, r, i) { var o = ''; null != n && (o = ('' + n).replace(L, '$&/') + '/'), - z(t, F, (e = D(e, o, r, i))), + z(t, F, (e = j(e, o, r, i))), R(e); } function B() { @@ -67649,7 +67622,7 @@ object-assign }, forEach: function(t, e, n) { if (null == t) return t; - z(t, I, (e = D(null, null, e, n))), R(e); + z(t, I, (e = j(null, null, e, n))), R(e); }, count: function(t) { return z( @@ -67990,21 +67963,21 @@ object-assign if (n && 'function' != typeof n) throw a(Error(231), e, typeof n); return n; } - var j = Math.random() + var D = Math.random() .toString(36) .slice(2), - D = '__reactInternalInstance$' + j, - R = '__reactEventHandlers$' + j; + j = '__reactInternalInstance$' + D, + R = '__reactEventHandlers$' + D; function z(t) { - if (t[D]) return t[D]; - for (; !t[D]; ) { + if (t[j]) return t[j]; + for (; !t[j]; ) { if (!t.parentNode) return null; t = t.parentNode; } - return 5 === (t = t[D]).tag || 6 === t.tag ? t : null; + return 5 === (t = t[j]).tag || 6 === t.tag ? t : null; } function N(t) { - return !(t = t[D]) || (5 !== t.tag && 6 !== t.tag) ? null : t; + return !(t = t[j]) || (5 !== t.tag && 6 !== t.tag) ? null : t; } function I(t) { if (5 === t.tag || 6 === t.tag) return t.stateNode; @@ -68377,14 +68350,14 @@ object-assign for (t = 0; t < e.length; t++) Pt(e[t]); } } - function jt(t, e) { + function Dt(t, e) { return t(e); } - function Dt(t, e, n, r) { + function jt(t, e, n, r) { return t(e, n, r); } function Rt() {} - var zt = jt, + var zt = Dt, Nt = !1; function It() { (null === Ct && null === Ot) || (Rt(), Lt()); @@ -68856,10 +68829,10 @@ object-assign function Le(t) { P(t); } - function je(t) { + function De(t) { if (qt(I(t))) return t; } - function De(t, e) { + function je(t, e) { if ('change' === t) return e; } var Re = !1; @@ -68867,12 +68840,12 @@ object-assign Pe && (Pe.detachEvent('onpropertychange', Ne), (Me = Pe = null)); } function Ne(t) { - if ('value' === t.propertyName && je(Me)) + if ('value' === t.propertyName && De(Me)) if (((t = Oe(Me, t, Bt(t))), Nt)) P(t); else { Nt = !0; try { - jt(Le, t); + Dt(Le, t); } finally { (Nt = !1), It(); } @@ -68885,13 +68858,13 @@ object-assign } function Fe(t) { if ('selectionchange' === t || 'keyup' === t || 'keydown' === t) - return je(Me); + return De(Me); } function Ve(t, e) { - if ('click' === t) return je(e); + if ('click' === t) return De(e); } function Be(t, e) { - if ('input' === t || 'change' === t) return je(e); + if ('input' === t || 'change' === t) return De(e); } W && (Re = @@ -68906,7 +68879,7 @@ object-assign s = i.nodeName && i.nodeName.toLowerCase(); if ( ('select' === s || ('input' === s && 'file' === i.type) - ? (o = De) + ? (o = je) : Vt(i) ? Re ? (o = Be) @@ -69527,7 +69500,7 @@ object-assign }, Mn = Pn.getEventPriority, Ln = []; - function jn(t) { + function Dn(t) { var e = t.targetInst, n = e; do { @@ -69551,7 +69524,7 @@ object-assign P(a); } } - var Dn = !0; + var jn = !0; function Rn(t, e) { zn(e, t, !1); } @@ -69574,7 +69547,7 @@ object-assign i = Nt; Nt = !0; try { - Dt(r, t, e, n); + jt(r, t, e, n); } finally { (Nt = i) || It(); } @@ -69583,7 +69556,7 @@ object-assign Fn(t, e, n); } function Fn(t, e, n) { - if (Dn) { + if (jn) { if ( (null === (e = z((e = Bt(n)))) || 'number' != typeof e.tag || @@ -69604,11 +69577,11 @@ object-assign ancestors: [] }; try { - if (((n = t), Nt)) jn(n); + if (((n = t), Nt)) Dn(n); else { Nt = !0; try { - zt(jn, n, void 0); + zt(Dn, n, void 0); } finally { (Nt = !1), It(); } @@ -70120,13 +70093,13 @@ object-assign function Lr(t, e) { (Or[++Pr] = t.current), (t.current = e); } - var jr = {}, - Dr = { current: jr }, + var Dr = {}, + jr = { current: Dr }, Rr = { current: !1 }, - zr = jr; + zr = Dr; function Nr(t, e) { var n = t.type.contextTypes; - if (!n) return jr; + if (!n) return Dr; var r = t.stateNode; if (r && r.__reactInternalMemoizedUnmaskedChildContext === e) return r.__reactInternalMemoizedMaskedChildContext; @@ -70145,14 +70118,14 @@ object-assign return null != (t = t.childContextTypes); } function Fr(t) { - Mr(Rr), Mr(Dr); + Mr(Rr), Mr(jr); } function Vr(t) { - Mr(Rr), Mr(Dr); + Mr(Rr), Mr(jr); } function Br(t, e, n) { - if (Dr.current !== jr) throw a(Error(168)); - Lr(Dr, e), Lr(Rr, n); + if (jr.current !== Dr) throw a(Error(168)); + Lr(jr, e), Lr(Rr, n); } function Gr(t, e, n) { var r = t.stateNode; @@ -70165,9 +70138,9 @@ object-assign function Hr(t) { var e = t.stateNode; return ( - (e = (e && e.__reactInternalMemoizedMergedChildContext) || jr), - (zr = Dr.current), - Lr(Dr, e), + (e = (e && e.__reactInternalMemoizedMergedChildContext) || Dr), + (zr = jr.current), + Lr(jr, e), Lr(Rr, Rr.current), !0 ); @@ -70179,8 +70152,8 @@ object-assign ? ((e = Gr(t, e, zr)), (r.__reactInternalMemoizedMergedChildContext = e), Mr(Rr), - Mr(Dr), - Lr(Dr, e)) + Mr(jr), + Lr(jr, e)) : Mr(Rr), Lr(Rr, n); } @@ -70386,12 +70359,12 @@ object-assign nextEffect: null }; } - function ji(t, e) { + function Di(t, e) { null === t.lastUpdate ? (t.firstUpdate = t.lastUpdate = e) : ((t.lastUpdate.next = e), (t.lastUpdate = e)); } - function Di(t, e) { + function ji(t, e) { var n = t.alternate; if (null === n) { var r = t.updateQueue, @@ -70407,10 +70380,10 @@ object-assign : (r = t.updateQueue = Mi(i)) : null === i && (i = n.updateQueue = Mi(r)); null === i || r === i - ? ji(r, e) + ? Di(r, e) : null === r.lastUpdate || null === i.lastUpdate - ? (ji(r, e), ji(i, e)) - : (ji(r, e), (i.lastUpdate = e)); + ? (Di(r, e), Di(i, e)) + : (Di(r, e), (i.lastUpdate = e)); } function Ri(t, e) { var n = t.updateQueue; @@ -70533,7 +70506,7 @@ object-assign i = Bi.suspense; ((i = Li((r = Ps(r, t, i)), i)).payload = e), null != n && (i.callback = n), - Di(t, i), + ji(t, i), Ls(t, r); }, enqueueReplaceState: function(t, e, n) { @@ -70543,7 +70516,7 @@ object-assign ((i = Li((r = Ps(r, t, i)), i)).tag = 1), (i.payload = e), null != n && (i.callback = n), - Di(t, i), + ji(t, i), Ls(t, r); }, enqueueForceUpdate: function(t, e) { @@ -70552,7 +70525,7 @@ object-assign r = Bi.suspense; ((r = Li((n = Ps(n, t, r)), r)).tag = 2), null != e && (r.callback = e), - Di(t, r), + ji(t, r), Ls(t, n); } }; @@ -70565,13 +70538,13 @@ object-assign } function Wi(t, e, n) { var r = !1, - i = jr, + i = Dr, o = e.contextType; return ( 'object' == typeof o && null !== o ? (o = Ci(o)) - : ((i = Ir(e) ? zr : Dr.current), - (o = (r = null != (r = e.contextTypes)) ? Nr(t, i) : jr)), + : ((i = Ir(e) ? zr : jr.current), + (o = (r = null != (r = e.contextTypes)) ? Nr(t, i) : Dr)), (e = new e(n, o)), (t.memoizedState = null !== e.state && void 0 !== e.state ? e.state : null), @@ -70599,7 +70572,7 @@ object-assign var o = e.contextType; 'object' == typeof o && null !== o ? (i.context = Ci(o)) - : ((o = Ir(e) ? zr : Dr.current), (i.context = Nr(t, o))), + : ((o = Ir(e) ? zr : jr.current), (i.context = Nr(t, o))), null !== (o = t.updateQueue) && (Ii(t, o, n, i, r), (i.state = t.memoizedState)), 'function' == typeof (o = e.getDerivedStateFromProps) && @@ -71059,8 +71032,8 @@ object-assign Po = null, Mo = null, Lo = 0, - jo = null, - Do = 0, + Do = null, + jo = 0, Ro = !1, zo = null, No = 0; @@ -71087,7 +71060,7 @@ object-assign (No += 1), (Co = null !== t ? t.memoizedState : null), (Mo = Oo), - (jo = Po = To = null), + (Do = Po = To = null), (Eo.current = ta), (e = n(r, i)); } while (Ro); @@ -71097,14 +71070,14 @@ object-assign ((Eo.current = Zo), ((t = Ao).memoizedState = Oo), (t.expirationTime = Lo), - (t.updateQueue = jo), - (t.effectTag |= Do), + (t.updateQueue = Do), + (t.effectTag |= jo), (t = null !== To && null !== To.next), (ko = 0), (Mo = Po = Oo = Co = To = Ao = null), (Lo = 0), - (jo = null), - (Do = 0), + (Do = null), + (jo = 0), t) ) throw a(Error(300)); @@ -71115,8 +71088,8 @@ object-assign (ko = 0), (Mo = Po = Oo = Co = To = Ao = null), (Lo = 0), - (jo = null), - (Do = 0), + (Do = null), + (jo = 0), (Ro = !1), (zo = null), (No = 0); @@ -71208,17 +71181,17 @@ object-assign function Wo(t, e, n, r) { return ( (t = { tag: t, create: e, destroy: n, deps: r, next: null }), - null === jo - ? ((jo = { lastEffect: null }).lastEffect = t.next = t) - : null === (e = jo.lastEffect) - ? (jo.lastEffect = t.next = t) - : ((n = e.next), (e.next = t), (t.next = n), (jo.lastEffect = t)), + null === Do + ? ((Do = { lastEffect: null }).lastEffect = t.next = t) + : null === (e = Do.lastEffect) + ? (Do.lastEffect = t.next = t) + : ((n = e.next), (e.next = t), (t.next = n), (Do.lastEffect = t)), t ); } function Xo(t, e, n, r) { var i = Go(); - (Do |= t), + (jo |= t), (i.memoizedState = Wo(e, n, void 0, void 0 === r ? null : r)); } function Yo(t, e, n, r) { @@ -71230,7 +71203,7 @@ object-assign if (((o = a.destroy), null !== r && Fo(r, a.deps))) return void Wo(mo, n, o, r); } - (Do |= t), (i.memoizedState = Wo(e, n, o, r)); + (jo |= t), (i.memoizedState = Wo(e, n, o, r)); } function $o(t, e) { return 'function' == typeof e @@ -71549,7 +71522,7 @@ object-assign (e.effectTag |= 128); } function va(t, e, n, r, i) { - var o = Ir(n) ? zr : Dr.current; + var o = Ir(n) ? zr : jr.current; return ( (o = Nr(e, o)), Ti(e, i), @@ -71581,7 +71554,7 @@ object-assign l = n.contextType; 'object' == typeof l && null !== l ? (l = Ci(l)) - : (l = Nr(e, (l = Ir(n) ? zr : Dr.current))); + : (l = Nr(e, (l = Ir(n) ? zr : jr.current))); var c = n.getDerivedStateFromProps, f = 'function' == typeof c || @@ -71625,7 +71598,7 @@ object-assign (u = a.context), 'object' == typeof (l = n.contextType) && null !== l ? (l = Ci(l)) - : (l = Nr(e, (l = Ir(n) ? zr : Dr.current))), + : (l = Nr(e, (l = Ir(n) ? zr : jr.current))), (f = 'function' == typeof (c = n.getDerivedStateFromProps) || 'function' == typeof a.getSnapshotBeforeUpdate) || @@ -71936,7 +71909,7 @@ object-assign return null; } } - function ja(t, e) { + function Da(t, e) { return { value: t, source: e, stack: fe(e) }; } (Ta = function(t, e) { @@ -72037,7 +72010,7 @@ object-assign (Pa = function(t, e, n, r) { n !== r && Aa(e); }); - var Da = 'function' == typeof WeakSet ? WeakSet : Set; + var ja = 'function' == typeof WeakSet ? WeakSet : Set; function Ra(t, e) { var n = e.source, r = e.stack; @@ -72395,7 +72368,7 @@ object-assign if (null !== e) { t.updateQueue = null; var n = t.stateNode; - null === n && (n = t.stateNode = new Da()), + null === n && (n = t.stateNode = new ja()), e.forEach(function(e) { var r = Zs.bind(null, t, e); n.has(e) || (n.add(e), e.then(r, r)); @@ -72513,14 +72486,14 @@ object-assign var Ms = 0; function Ls(t, e) { if (50 < As) throw ((As = 0), (Ts = null), a(Error(185))); - if (null !== (t = js(t, e))) { + if (null !== (t = Ds(t, e))) { t.pingTime = 0; var n = ci(); if (1073741823 === e) if ((as & Za) !== Qa && (as & (Ja | ts)) === Qa) for (var r = Bs(t, 1073741823, !0); null !== r; ) r = r(!0); - else Ds(t, 99, 1073741823), as === Qa && gi(); - else Ds(t, n, e); + else js(t, 99, 1073741823), as === Qa && gi(); + else js(t, n, e); (4 & as) === Qa || (98 !== n && 99 !== n) || (null === ks @@ -72528,7 +72501,7 @@ object-assign : (void 0 === (n = ks.get(t)) || n > e) && ks.set(t, e)); } } - function js(t, e) { + function Ds(t, e) { t.expirationTime < e && (t.expirationTime = e); var n = t.alternate; null !== n && n.expirationTime < e && (n.expirationTime = e); @@ -72558,7 +72531,7 @@ object-assign i ); } - function Ds(t, e, n) { + function js(t, e, n) { if (t.callbackExpirationTime < n) { var r = t.callbackNode; null !== r && r !== ri && Xr(r), @@ -72731,7 +72704,7 @@ object-assign (null === l.alternate ? (l.tag = 17) : (((f = Li(1073741823, null)).tag = 2), - Di(l, f))), + ji(l, f))), (l.expirationTime = 1073741823); break t; } @@ -72759,7 +72732,7 @@ object-assign fe(l) ); } - cs !== os && (cs = ns), (c = ja(c, l)), (l = u); + cs !== os && (cs = ns), (c = Da(c, l)), (l = u); do { switch (l.tag) { case 3: @@ -72929,7 +72902,7 @@ object-assign (o = void 0), (s = (n = e).stateNode); var l = n.type, c = n.memoizedProps; - switch (((s[D] = n), (s[R] = c), l)) { + switch (((s[j] = n), (s[R] = c), l)) { case 'iframe': case 'object': case 'embed': @@ -73008,7 +72981,7 @@ object-assign ? (c.multiple = !0) : n.size && (c.size = n.size))) : (f = f.createElementNS(u, c)), - ((c = f)[D] = l), + ((c = f)[j] = l), (c[R] = n), Ta((n = c), e, !1, !1), (l = n); @@ -73121,13 +73094,13 @@ object-assign ua(e) ? ((r = e.stateNode), (n = e.memoizedProps), - (r[D] = e), + (r[j] = e), r.nodeValue !== n && Aa(e)) : ((r = e), ((n = (9 === n.nodeType ? n : n.ownerDocument - ).createTextNode(o))[D] = e), + ).createTextNode(o))[j] = e), (r.stateNode = n)); } break; @@ -73354,7 +73327,7 @@ object-assign : (i = n.firstEffect), null !== i) ) { - (o = as), (as |= ts), (Ka.current = null), (wr = Dn); + (o = as), (as |= ts), (Ka.current = null), (wr = jn); var s = qn(); if (Wn(s)) { if ('selectionStart' in s) @@ -73409,7 +73382,7 @@ object-assign } u = u || { start: 0, end: 0 }; } else u = null; - (Sr = { focusedElem: s, selectionRange: u }), (Dn = !1), (vs = i); + (Sr = { focusedElem: s, selectionRange: u }), (jn = !1), (vs = i); do { try { for (; null !== vs; ) { @@ -73558,7 +73531,7 @@ object-assign ((T = A[k]).element.scrollLeft = T.left), (T.element.scrollTop = T.top); } - (Sr = null), (Dn = !!wr), (wr = null), (t.current = n), (vs = i); + (Sr = null), (jn = !!wr), (wr = null), (t.current = n), (vs = i); do { try { for (k = r; null !== vs; ) { @@ -73586,12 +73559,12 @@ object-assign M.__reactInternalSnapshotBeforeUpdate ); } - var j = A.updateQueue; - null !== j && Fi(0, j, M); + var D = A.updateQueue; + null !== D && Fi(0, D, M); break; case 3: - var D = A.updateQueue; - if (null !== D) { + var j = A.updateQueue; + if (null !== j) { if (((C = null), null !== A.child)) switch (A.child.tag) { case 5: @@ -73600,7 +73573,7 @@ object-assign case 1: C = A.child.stateNode; } - Fi(0, D, C); + Fi(0, j, C); } break; case 5: @@ -73651,7 +73624,7 @@ object-assign (e = vs.nextEffect), (vs.nextEffect = null), (vs = e); if ( (0 !== (e = t.firstPendingTime) - ? Ds(t, (O = vi((O = Os()), e)), e) + ? js(t, (O = vi((O = Os()), e)), e) : (_s = null), 'function' == typeof tu && tu(n.stateNode, r), 1073741823 === e @@ -73698,8 +73671,8 @@ object-assign return (as = e), gi(), !0; } function $s(t, e, n) { - Di(t, (e = Wa(t, (e = ja(n, e)), 1073741823))), - null !== (t = js(t, 1073741823)) && Ds(t, 99, 1073741823); + ji(t, (e = Wa(t, (e = Da(n, e)), 1073741823))), + null !== (t = Ds(t, 1073741823)) && js(t, 99, 1073741823); } function Ks(t, e) { if (3 === t.tag) $s(t, t, e); @@ -73716,8 +73689,8 @@ object-assign ('function' == typeof r.componentDidCatch && (null === _s || !_s.has(r))) ) { - Di(n, (t = Xa(n, (t = ja(e, t)), 1073741823))), - null !== (n = js(n, 1073741823)) && Ds(n, 99, 1073741823); + ji(n, (t = Xa(n, (t = Da(e, t)), 1073741823))), + null !== (n = Ds(n, 1073741823)) && js(n, 99, 1073741823); break; } } @@ -73736,13 +73709,13 @@ object-assign ((t.pingTime = n), t.finishedExpirationTime === n && ((t.finishedExpirationTime = 0), (t.finishedWork = null)), - Ds(t, (e = vi((e = Os()), n)), n))); + js(t, (e = vi((e = Os()), n)), n))); } function Zs(t, e) { var n = t.stateNode; null !== n && n.delete(e), (n = vi((n = Os()), (e = Ps(n, t, null)))), - null !== (t = js(t, e)) && Ds(t, n, e); + null !== (t = Ds(t, e)) && js(t, n, e); } var Js = void 0; Js = function(t, e, n) { @@ -73803,7 +73776,7 @@ object-assign (e.alternate = null), (e.effectTag |= 2)), (t = e.pendingProps), - (i = Nr(e, Dr.current)), + (i = Nr(e, jr.current)), Ti(e, n), (i = Vo(null, e, r, t, i, n)), (e.effectTag |= 1), @@ -73993,7 +73966,7 @@ object-assign for (var c = l.firstContext; null !== c; ) { if (c.context === r && 0 != (c.observedBits & o)) { 1 === u.tag && - (((c = Li(n, null)).tag = 2), Di(u, c)), + (((c = Li(n, null)).tag = 2), ji(u, c)), u.expirationTime < n && (u.expirationTime = n), null !== (c = u.alternate) && c.expirationTime < n && @@ -74255,13 +74228,13 @@ object-assign } } n = u; - } else n = jr; + } else n = Dr; return ( null === e.context ? (e.context = n) : (e.pendingContext = n), (e = o), ((i = Li(r, i)).payload = { element: t }), null !== (e = void 0 === e ? null : e) && (i.callback = e), - Di(s, i), + ji(s, i), Ls(s, r), r ); @@ -74501,8 +74474,8 @@ object-assign } return t; }), - (jt = Ns), - (Dt = Is), + (Dt = Ns), + (jt = Is), (Rt = zs), (zt = function(t, e) { var n = as; @@ -74816,8 +74789,8 @@ object-assign var P = null, M = null, L = null, - j = 3, - D = !1, + D = 3, + j = !1, R = !1, z = !1; function N(t, e) { @@ -74828,12 +74801,12 @@ object-assign var r = t.previous; (r.next = n), (n.previous = r); } - (t.next = t.previous = null), (n = t.callback), (r = j); + (t.next = t.previous = null), (n = t.callback), (r = D); var i = L; - (j = t.priorityLevel), (L = t); + (D = t.priorityLevel), (L = t); try { var o = t.expirationTime <= e; - switch (j) { + switch (D) { case 1: var a = n(o); break; @@ -74848,7 +74821,7 @@ object-assign } catch (t) { throw t; } finally { - (j = r), (L = i); + (D = r), (L = i); } if ('function' == typeof a) if (((e = t.expirationTime), (t.callback = a), null === P)) @@ -74891,7 +74864,7 @@ object-assign : null !== M && i(F, M.startTime - t)); } function V(t, n) { - (R = !1), z && ((z = !1), o()), I(n), (D = !0); + (R = !1), z && ((z = !1), o()), I(n), (j = !0); try { if (t) { if (null !== P) @@ -74903,7 +74876,7 @@ object-assign N(P, n), I((n = e.unstable_now())); return null !== P || (null !== M && i(F, M.startTime - n), !1); } finally { - D = !1; + j = !1; } } function B(t) { @@ -74955,30 +74928,30 @@ object-assign default: t = 3; } - var n = j; - j = t; + var n = D; + D = t; try { return e(); } finally { - j = n; + D = n; } }), (e.unstable_next = function(t) { - switch (j) { + switch (D) { case 1: case 2: case 3: var e = 3; break; default: - e = j; + e = D; } - var n = j; - j = e; + var n = D; + D = e; try { return t(); } finally { - j = n; + D = n; } }), (e.unstable_scheduleCallback = function(t, n, a) { @@ -75016,7 +74989,7 @@ object-assign (t.previous = a); } null === P && M === t && (z ? o() : (z = !0), i(F, u - s)); - } else G(t, a), R || D || ((R = !0), r(V)); + } else G(t, a), R || j || ((R = !0), r(V)); return t; }), (e.unstable_cancelCallback = function(t) { @@ -75032,19 +75005,19 @@ object-assign } }), (e.unstable_wrapCallback = function(t) { - var e = j; + var e = D; return function() { - var n = j; - j = e; + var n = D; + D = e; try { return t.apply(this, arguments); } finally { - j = n; + D = n; } }; }), (e.unstable_getCurrentPriorityLevel = function() { - return j; + return D; }), (e.unstable_shouldYield = function() { var t = e.unstable_now(); @@ -75059,7 +75032,7 @@ object-assign }), (e.unstable_requestPaint = H), (e.unstable_continueExecution = function() { - R || D || ((R = !0), r(V)); + R || j || ((R = !0), r(V)); }), (e.unstable_pauseExecution = function() {}), (e.unstable_getFirstCallbackNode = function() { @@ -75696,7 +75669,7 @@ object-assign })(t) > k ); }, - j = function(t) { + D = function(t) { return ( (function(t) { var e = x[t].b; @@ -75704,7 +75677,7 @@ object-assign })(t) > A ); }, - D = function(t) { + j = function(t) { return ( (function(t) { return P(t) < 0; @@ -75713,11 +75686,11 @@ object-assign (function(t) { return M(t) < 0; })(t) || - j(t) + D(t) ); }, R = function(t) { - return !D(t); + return !j(t); }, z = ['top', 'bottom', 'left', 'right'], N = [], @@ -75733,7 +75706,7 @@ object-assign return ( R(l) && l !== u ? ((V = !0), (B = l)) - : N.length > 0 && D(l) && D(u) && ((V = !0), (B = N[0])), + : N.length > 0 && j(l) && j(u) && ((V = !0), (B = N[0])), V ? { isNewState: !0, newState: { place: B } } : { @@ -80582,8 +80555,8 @@ object-assign P, M, L, - j, D, + j, R = this, z = R.main, N = R.d3, @@ -80662,8 +80635,8 @@ object-assign (b = R.generateXYForText(F, V, B, !0)), (_ = R.generateXYForText(F, V, B, !1)), R.updateCircleY(), - (j = (R.config.axis_rotated ? R.circleY : R.circleX).bind(R)), - (D = (R.config.axis_rotated ? R.circleX : R.circleY).bind(R)), + (D = (R.config.axis_rotated ? R.circleY : R.circleX).bind(R)), + (j = (R.config.axis_rotated ? R.circleX : R.circleY).bind(R)), n && (R.subY.domain(R.getYDomain(H, 'y')), R.subY2.domain(R.getYDomain(H, 'y2'))), @@ -80682,7 +80655,7 @@ object-assign R.updateBar(S), R.updateLine(S), R.updateArea(S), - R.updateCircle(j, D), + R.updateCircle(D, j), R.hasDataLabel() && R.updateText(b, _, S), R.redrawTitle && R.redrawTitle(), R.redrawArc && R.redrawArc(x, S, s), @@ -80701,8 +80674,8 @@ object-assign drawBar: v, drawLine: y, drawArea: m, - cx: j, - cy: D, + cx: D, + cy: j, xv: U, xForText: b, yForText: _ @@ -80714,7 +80687,7 @@ object-assign R.redrawBar(v, !0, C), R.redrawLine(y, !0, C), R.redrawArea(m, !0, C), - R.redrawCircle(j, D, !0, C), + R.redrawCircle(D, j, !0, C), R.redrawText(b, _, t.flow, !0, C), R.redrawRegion(!0, C), R.redrawGrid(!0, C) @@ -80733,7 +80706,7 @@ object-assign : (R.redrawBar(v), R.redrawLine(y), R.redrawArea(m), - R.redrawCircle(j, D), + R.redrawCircle(D, j), R.redrawText(b, _, t.flow), R.redrawRegion(), R.redrawGrid(), @@ -83595,8 +83568,8 @@ object-assign P = e.getValueOnIndex(e.data.targets[0].values, C), M = e.getValueOnIndex(e.data.targets[0].values, C + O), L = e.x.domain(), - j = v.duration || T, - D = v.done || function() {}, + D = v.duration || T, + j = v.done || function() {}, R = e.generateWait(); (e.flowing = !0), e.data.targets.forEach(function(t) { @@ -83634,7 +83607,7 @@ object-assign var z = r .transition() .ease(r.easeLinear) - .duration(j); + .duration(D); R.add(e.xAxis(e.axes.x, z)), R.add(d.transition(z).attr('transform', o)), R.add(h.transition(z).attr('transform', o)), @@ -83700,7 +83673,7 @@ object-assign .filter(e.isRegionOnX) .attr('x', e.regionX.bind(e)) .attr('width', e.regionWidth.bind(e)), - D(), + j(), (e.flowing = !1); }); }; @@ -87260,8 +87233,8 @@ object-assign P = 0, M = {}, L = {}, - j = {}, - D = [0], + D = {}, + j = [0], R = {}, z = 0; function N(e, n, r) { @@ -87296,14 +87269,14 @@ object-assign ((i = (d - P - f) / 2) < C && ((i = (d - f) / 2), (P = 0), z++)), (R[t] = z), - (D[z] = x.isLegendInset ? 10 : i), + (j[z] = x.isLegendInset ? 10 : i), (M[t] = P), (P += f); } a && ((P = 0), (z = 0), (A = 0), (T = 0)), !S.legend_show || x.isLegendToShow(n) ? ((L[n] = l), - (j[n] = c), + (D[n] = c), (!A || l >= A) && (A = l), (!T || c >= T) && (T = c), (o = x.isLegendRight || x.isLegendInset ? T : A), @@ -87311,8 +87284,8 @@ object-assign ? (Object.keys(L).forEach(function(t) { L[t] = A; }), - Object.keys(j).forEach(function(t) { - j[t] = T; + Object.keys(D).forEach(function(t) { + D[t] = T; }), (i = (d - o * t.length) / 2) < C ? ((P = 0), @@ -87322,7 +87295,7 @@ object-assign })) : h(n, !0)) : h(n)) - : (L[n] = j[n] = R[n] = M[n] = 0); + : (L[n] = D[n] = R[n] = M[n] = 0); } (t = t.filter(function(t) { return !d(S.data_names[t]) || null !== S.data_names[t]; @@ -87337,17 +87310,17 @@ object-assign return A * R[t]; }), (a = function(t) { - return D[R[t]] + M[t]; + return j[R[t]] + M[t]; })) : x.isLegendInset ? ((r = function(t) { return A * R[t] + 10; }), (a = function(t) { - return D[R[t]] + M[t]; + return j[R[t]] + M[t]; })) : ((r = function(t) { - return D[R[t]] + M[t]; + return j[R[t]] + M[t]; }), (a = function(t) { return T * R[t]; @@ -87455,7 +87428,7 @@ object-assign return L[t]; }) .attr('height', function(t) { - return j[t]; + return D[t]; }) .attr('x', o) .attr('y', l), @@ -90481,12 +90454,12 @@ object-assign ) ); }, - j = function(t, e, n) { + D = function(t, e, n) { return Math.ceil( (n - e) / (3.5 * g(t) * Math.pow(t.length, -1 / 3)) ); }, - D = function(t, e) { + j = function(t, e) { var n, r, i = t.length, @@ -90990,12 +90963,12 @@ object-assign function Lt(t, e) { return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; } - function jt(t) { + function Dt(t) { return function() { this.removeAttribute(t); }; } - function Dt(t) { + function jt(t) { return function() { this.removeAttributeNS(t.space, t.local); }; @@ -91541,8 +91514,8 @@ object-assign return this.each( (null == e ? n.local - ? Dt - : jt + ? jt + : Dt : 'function' == typeof e ? n.local ? It @@ -91696,11 +91669,11 @@ object-assign return this._; } }; - var je = function() { + var De = function() { for (var t, e = pe; (t = e.sourceEvent); ) e = t; return e; }, - De = function(t, e) { + je = function(t, e) { var n = t.ownerSVGElement || t; if (n.createSVGPoint) { var r = n.createSVGPoint(); @@ -91720,9 +91693,9 @@ object-assign ]; }, Re = function(t) { - var e = je(); + var e = De(); return ( - e.changedTouches && (e = e.changedTouches[0]), De(t, e) + e.changedTouches && (e = e.changedTouches[0]), je(t, e) ); }, ze = function(t) { @@ -91734,19 +91707,19 @@ object-assign : new ke([null == t ? [] : t], Ee); }, Ne = function(t, e, n) { - arguments.length < 3 && ((n = e), (e = je().changedTouches)); + arguments.length < 3 && ((n = e), (e = De().changedTouches)); for (var r, i = 0, o = e ? e.length : 0; i < o; ++i) - if ((r = e[i]).identifier === n) return De(t, r); + if ((r = e[i]).identifier === n) return je(t, r); return null; }, Ie = function(t, e) { - null == e && (e = je().touches); + null == e && (e = De().touches); for ( var n = 0, r = e ? e.length : 0, i = new Array(r); n < r; ++n ) - i[n] = De(t, e[n]); + i[n] = je(t, e[n]); return i; }; function Fe() { @@ -92488,9 +92461,9 @@ object-assign ) : Pn(isNaN(t) ? e : t); } - function jn(t) { + function Dn(t) { return 1 == (t = +t) - ? Dn + ? jn : function(e, n) { return n - e ? (function(t, e, n) { @@ -92506,17 +92479,17 @@ object-assign : Pn(isNaN(e) ? n : e); }; } - function Dn(t, e) { + function jn(t, e) { var n = e - t; return n ? Mn(t, n) : Pn(isNaN(t) ? e : t); } var Rn = (function t(e) { - var n = jn(e); + var n = Dn(e); function r(t, e) { var r = n((t = vn(t)).r, (e = vn(e)).r), i = n(t.g, e.g), o = n(t.b, e.b), - a = Dn(t.opacity, e.opacity); + a = jn(t.opacity, e.opacity); return function(e) { return ( (t.r = r(e)), @@ -92865,9 +92838,9 @@ object-assign function lr(t) { return function(e, n) { var r = t((e = En(e)).h, (n = En(n)).h), - i = Dn(e.s, n.s), - o = Dn(e.l, n.l), - a = Dn(e.opacity, n.opacity); + i = jn(e.s, n.s), + o = jn(e.l, n.l), + a = jn(e.opacity, n.opacity); return function(t) { return ( (e.h = r(t)), @@ -92880,7 +92853,7 @@ object-assign }; } var cr = lr(Ln), - fr = lr(Dn), + fr = lr(jn), dr = Math.PI / 180, hr = 180 / Math.PI, pr = 0.96422, @@ -92892,7 +92865,7 @@ object-assign _r = yr * yr * yr; function xr(t) { if (t instanceof Er) return new Er(t.l, t.a, t.b, t.opacity); - if (t instanceof Lr) return jr(t); + if (t instanceof Lr) return Dr(t); t instanceof yn || (t = mn(t)); var e, n, @@ -92978,7 +92951,7 @@ object-assign (this.l = +n), (this.opacity = +r); } - function jr(t) { + function Dr(t) { if (isNaN(t.h)) return new Er(t.l, 0, 0, t.opacity); var e = t.h * dr; return new Er( @@ -92988,11 +92961,11 @@ object-assign t.opacity ); } - function Dr(t, e) { - var n = Dn((t = Sr(t)).l, (e = Sr(e)).l), - r = Dn(t.a, e.a), - i = Dn(t.b, e.b), - o = Dn(t.opacity, e.opacity); + function jr(t, e) { + var n = jn((t = Sr(t)).l, (e = Sr(e)).l), + r = jn(t.a, e.a), + i = jn(t.b, e.b), + o = jn(t.opacity, e.opacity); return function(e) { return ( (t.l = n(e)), @@ -93006,9 +92979,9 @@ object-assign function Rr(t) { return function(e, n) { var r = t((e = Mr(e)).h, (n = Mr(n)).h), - i = Dn(e.c, n.c), - o = Dn(e.l, n.l), - a = Dn(e.opacity, n.opacity); + i = jn(e.c, n.c), + o = jn(e.l, n.l), + a = jn(e.opacity, n.opacity); return function(t) { return ( (e.h = r(t)), @@ -93078,12 +93051,12 @@ object-assign ); }, rgb: function() { - return jr(this).rgb(); + return Dr(this).rgb(); } }) ); var zr = Rr(Ln), - Nr = Rr(Dn), + Nr = Rr(jn), Ir = -0.29227, Fr = -0.90649, Vr = 1.97294, @@ -93118,9 +93091,9 @@ object-assign return (function e(n) { function r(e, r) { var i = t((e = Ur(e)).h, (r = Ur(r)).h), - o = Dn(e.s, r.s), - a = Dn(e.l, r.l), - s = Dn(e.opacity, r.opacity); + o = jn(e.s, r.s), + a = jn(e.l, r.l), + s = jn(e.opacity, r.opacity); return function(t) { return ( (e.h = i(t)), @@ -93166,7 +93139,7 @@ object-assign }) ); var Xr = Wr(Ln), - Yr = Wr(Dn); + Yr = Wr(jn); function $r(t, e) { for ( var n = 0, @@ -93485,7 +93458,7 @@ object-assign i.tween = r; }; } - function ji(t, e, n) { + function Di(t, e, n) { var r, i; if ('function' != typeof n) throw new Error(); return function() { @@ -93507,7 +93480,7 @@ object-assign o.tween = i; }; } - function Di(t, e, n) { + function ji(t, e, n) { var r = t._id; return ( t.each(function() { @@ -93876,7 +93849,7 @@ object-assign return this.attrTween( t, 'function' == typeof e - ? (n.local ? Bi : Vi)(n, r, Di(this, 'attr.' + t, e)) + ? (n.local ? Bi : Vi)(n, r, ji(this, 'attr.' + t, e)) : null == e ? (n.local ? Ni : zi)(n) : (n.local ? Fi : Ii)(n, r, e) @@ -93929,7 +93902,7 @@ object-assign : ((i = u), (o = e((r = a), s))) ); }; - })(t, r, Di(this, 'style.' + t, e)) + })(t, r, ji(this, 'style.' + t, e)) ).each( (function(t, e) { var n, @@ -93984,7 +93957,7 @@ object-assign var e = t(this); this.textContent = null == e ? '' : e; }; - })(Di(this, 'text', t)) + })(ji(this, 'text', t)) : (function(t) { return function() { this.textContent = t; @@ -94015,7 +93988,7 @@ object-assign if ((r = i[o]).name === t) return r.value; return null; } - return this.each((null == e ? Li : ji)(n, t, e)); + return this.each((null == e ? Li : Di)(n, t, e)); }, delay: function(t) { var e = this._id; @@ -94126,8 +94099,8 @@ object-assign Po = 9 / 11, Mo = 10 / 11, Lo = 0.9375, - jo = 21 / 22, - Do = 63 / 64, + Do = 21 / 22, + jo = 63 / 64, Ro = 1 / Ao / Ao; function zo(t) { return 1 - No(1 - t); @@ -94139,7 +94112,7 @@ object-assign ? Ro * (t -= To) * t + Oo : t < Mo ? Ro * (t -= Po) * t + Lo - : Ro * (t -= jo) * t + Do; + : Ro * (t -= Do) * t + jo; } function Io(t) { return ((t *= 2) <= 1 ? 1 - No(1 - t) : No(t - 1) + 1) / 2; @@ -94534,21 +94507,21 @@ object-assign P = 0, M = 0, L = x && w && o && pe.shiftKey, - j = pe.touches + D = pe.touches ? ((v = pe.changedTouches[0].identifier), function(t) { return Ne(t, pe.touches, v); }) : Re, - D = j(y), - R = D, + j = D(y), + R = j, z = c(y, arguments, !0).beforestart(); 'overlay' === b ? (k && (p = !0), (S.selection = k = [ [ - (n = t === sa ? A : D[0]), - (a = t === aa ? T : D[1]) + (n = t === sa ? A : j[0]), + (a = t === aa ? T : j[1]) ], [(u = t === sa ? C : n), (d = t === aa ? O : a)] ])) @@ -94634,7 +94607,7 @@ object-assign Zo(), Mi(y), l.call(y), z.start(); } function V() { - var t = j(y); + var t = D(y); !L || g || m || @@ -94648,7 +94621,7 @@ object-assign } function B() { var t; - switch (((P = R[0] - D[0]), (M = R[1] - D[1]), _)) { + switch (((P = R[0] - j[0]), (M = R[1] - j[1]), _)) { case ea: case ta: x && @@ -94968,13 +94941,13 @@ object-assign ); }, La = Array.prototype.slice, - ja = function(t) { + Da = function(t) { return function() { return t; }; }, - Da = Math.PI, - Ra = 2 * Da, + ja = Math.PI, + Ra = 2 * ja, za = Ra - 1e-6; function Na() { (this._x0 = this._y0 = this._x1 = this._y1 = null), @@ -95050,7 +95023,7 @@ object-assign y = i * Math.tan( - (Da - Math.acos((p + f - g) / (2 * m * v))) / 2 + (ja - Math.acos((p + f - g) / (2 * m * v))) / 2 ), b = y / v, _ = y / m; @@ -95115,7 +95088,7 @@ object-assign ',' + n + ',0,' + - +(f >= Da) + + +(f >= ja) + ',' + c + ',' + @@ -95193,17 +95166,17 @@ object-assign return ( (a.radius = function(t) { return arguments.length - ? ((n = 'function' == typeof t ? t : ja(+t)), a) + ? ((n = 'function' == typeof t ? t : Da(+t)), a) : n; }), (a.startAngle = function(t) { return arguments.length - ? ((r = 'function' == typeof t ? t : ja(+t)), a) + ? ((r = 'function' == typeof t ? t : Da(+t)), a) : r; }), (a.endAngle = function(t) { return arguments.length - ? ((i = 'function' == typeof t ? t : ja(+t)), a) + ? ((i = 'function' == typeof t ? t : Da(+t)), a) : i; }), (a.source = function(e) { @@ -95755,7 +95728,7 @@ object-assign ); var h = c(i); if (!Array.isArray(h)) { - var p = D(i); + var p = j(i); (h = C(0, p, h)), (h = w(0, Math.floor(p / h) * h, h)).shift(); } @@ -96014,12 +95987,12 @@ object-assign } }; }, - js = Ls(','), - Ds = js.parse, - Rs = js.parseRows, - zs = js.format, - Ns = js.formatBody, - Is = js.formatRows, + Ds = Ls(','), + js = Ds.parse, + Rs = Ds.parseRows, + zs = Ds.format, + Ns = Ds.formatBody, + Is = Ds.formatRows, Fs = Ls('\t'), Vs = Fs.parse, Bs = Fs.parseRows, @@ -96090,7 +96063,7 @@ object-assign return i.parse(t, r); }); } - var tu = Zs(Ds), + var tu = Zs(js), eu = Zs(Vs), nu = function(t, e) { return new Promise(function(n, r) { @@ -97010,7 +96983,7 @@ object-assign s ); }, - ju = function(t) { + Du = function(t) { var e, n, r, @@ -97051,7 +97024,7 @@ object-assign o ); }, - Du = function(t) { + ju = function(t) { var e, n, r, @@ -97546,11 +97519,11 @@ object-assign Ll(n[r], e, 0); }, Polygon: function(t, e) { - jl(t.coordinates, e); + Dl(t.coordinates, e); }, MultiPolygon: function(t, e) { for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) - jl(n[r], e); + Dl(n[r], e); }, GeometryCollection: function(t, e) { for (var n = t.geometries, r = -1, i = n.length; ++r < i; ) @@ -97565,13 +97538,13 @@ object-assign (r = t[i]), e.point(r[0], r[1], r[2]); e.lineEnd(); } - function jl(t, e) { + function Dl(t, e) { var n = -1, r = t.length; for (e.polygonStart(); ++n < r; ) Ll(t[n], e, 1); e.polygonEnd(); } - var Dl, + var jl, Rl, zl, Nl, @@ -97601,11 +97574,11 @@ object-assign Gl.point = ql; } function Ul() { - Wl(Dl, Rl); + Wl(jl, Rl); } function ql(t, e) { (Gl.point = Wl), - (Dl = t), + (jl = t), (Rl = e), (zl = t *= dl), (Nl = ml((e = (e *= dl) / 2 + ll))), @@ -97771,8 +97744,8 @@ object-assign Pc, Mc, Lc, - jc, Dc, + jc, Rc, zc, Nc, @@ -97867,10 +97840,10 @@ object-assign Vc.point = $c; } function Yc() { - Kc(Dc, Rc), (Vc.point = Bc); + Kc(jc, Rc), (Vc.point = Bc); } function $c(t, e) { - (Dc = t), (Rc = e), (t *= dl), (e *= dl), (Vc.point = Kc); + (jc = t), (Rc = e), (t *= dl), (e *= dl), (Vc.point = Kc); var n = ml(e); (zc = n * ml(t)), (Nc = n * xl(t)), @@ -97891,7 +97864,7 @@ object-assign f = l && -c / l; (Mc += f * a), (Lc += f * s), - (jc += f * u), + (Dc += f * u), (Ec += c), (Cc += c * (zc + (zc = r))), (Oc += c * (Nc + (Nc = i))), @@ -97899,11 +97872,11 @@ object-assign Gc(zc, Nc, Ic); } var Qc = function(t) { - (Sc = Ec = kc = Ac = Tc = Cc = Oc = Pc = Mc = Lc = jc = 0), + (Sc = Ec = kc = Ac = Tc = Cc = Oc = Pc = Mc = Lc = Dc = 0), Fl(t, Vc); var e = Mc, n = Lc, - r = jc, + r = Dc, i = e * e + n * n + r * r; return i < al && ((e = Cc), @@ -98754,16 +98727,16 @@ object-assign sphere: Cl, point: Cl, lineStart: function() { - (Lf.point = Df), (Lf.lineEnd = jf); + (Lf.point = jf), (Lf.lineEnd = Df); }, lineEnd: Cl, polygonStart: Cl, polygonEnd: Cl }; - function jf() { + function Df() { Lf.point = Lf.lineEnd = Cl; } - function Df(t, e) { + function jf(t, e) { (Tf = t *= dl), (Cf = xl((e *= dl))), (Of = ml(e)), @@ -99106,13 +99079,13 @@ object-assign Pd = 0, Md = { point: Ld, - lineStart: jd, + lineStart: Dd, lineEnd: zd, polygonStart: function() { (Md.lineStart = Nd), (Md.lineEnd = Id); }, polygonEnd: function() { - (Md.point = Ld), (Md.lineStart = jd), (Md.lineEnd = zd); + (Md.point = Ld), (Md.lineStart = Dd), (Md.lineEnd = zd); }, result: function() { var t = Pd @@ -99128,10 +99101,10 @@ object-assign function Ld(t, e) { (wd += t), (Sd += e), ++Ed; } - function jd() { - Md.point = Dd; + function Dd() { + Md.point = jd; } - function Dd(t, e) { + function jd(t, e) { (Md.point = Rd), Ld((pd = t), (gd = e)); } function Rd(t, e) { @@ -100052,7 +100025,7 @@ object-assign function Lh(t) { return El((ul + t) / 2); } - function jh(t, e) { + function Dh(t, e) { var n = ml(t), r = t === e ? xl(t) : bl(n / ml(e)) / bl(Lh(e) / Lh(t)), i = (n * _l(Lh(t), r)) / r; @@ -100076,8 +100049,8 @@ object-assign o ); } - var Dh = function() { - return yh(jh) + var jh = function() { + return yh(Dh) .scale(109.5) .parallels([30, 30]); }; @@ -100789,10 +100762,10 @@ object-assign return t; }; }; - function jp(t) { + function Dp(t) { return Math.sqrt(t.value); } - var Dp = function() { + var jp = function() { var t = null, e = 1, n = 1, @@ -100807,7 +100780,7 @@ object-assign .eachAfter(zp(r, 0.5)) .eachBefore(Np(1)) : i - .eachBefore(Rp(jp)) + .eachBefore(Rp(Dp)) .eachAfter(zp(Mp, 1)) .eachAfter(zp(r, i.r / Math.min(e, n))) .eachBefore(Np(Math.min(e, n) / (2 * i.r))), @@ -101732,10 +101705,10 @@ object-assign return t; }; }, - jg = function(t) { + Dg = function(t) { return +t; }, - Dg = [0, 1]; + jg = [0, 1]; function Rg(t) { return t; } @@ -101803,8 +101776,8 @@ object-assign r, i, o, - a = Dg, - s = Dg, + a = jg, + s = jg, u = Kn, l = Rg; function c() { @@ -101825,7 +101798,7 @@ object-assign }), (f.domain = function(t) { return arguments.length - ? ((a = Ag.call(t, jg)), l === Rg || (l = Ng(a)), c()) + ? ((a = Ag.call(t, Dg)), l === Rg || (l = Ng(a)), c()) : a.slice(); }), (f.range = function(t) { @@ -101951,7 +101924,7 @@ object-assign (n.invert = n), (n.domain = n.range = function(e) { return arguments.length - ? ((t = Ag.call(e, jg)), n) + ? ((t = Ag.call(e, Dg)), n) : t.slice(); }), (n.unknown = function(t) { @@ -101960,7 +101933,7 @@ object-assign (n.copy = function() { return Wg(t).unknown(e); }), - (t = arguments.length ? Ag.call(t, jg) : [0, 1]), + (t = arguments.length ? Ag.call(t, Dg) : [0, 1]), Ug(n) ); } @@ -102485,14 +102458,14 @@ object-assign Pm = Am(3), Mm = Am(4), Lm = Am(5), - jm = Am(6), - Dm = Tm.range, + Dm = Am(6), + jm = Tm.range, Rm = Cm.range, zm = Om.range, Nm = Pm.range, Im = Mm.range, Fm = Lm.range, - Vm = jm.range, + Vm = Dm.range, Bm = vm( function(t) { t.setHours(0, 0, 0, 0); @@ -102789,8 +102762,8 @@ object-assign s: Gy, S: My, u: Ly, - U: jy, - V: Dy, + U: Dy, + V: jy, w: Ry, W: zy, x: null, @@ -102999,8 +102972,8 @@ object-assign Pv, Mv, Lv = { '-': '', _: ' ', 0: '0' }, - jv = /^\s*\d+/, - Dv = /^%/, + Dv = /^\s*\d+/, + jv = /^%/, Rv = /[\\^$*+?|[\]().{}]/g; function zv(t, e, n) { var r = t < 0 ? '-' : '', @@ -103020,31 +102993,31 @@ object-assign return e; } function Vv(t, e, n) { - var r = jv.exec(e.slice(n, n + 1)); + var r = Dv.exec(e.slice(n, n + 1)); return r ? ((t.w = +r[0]), n + r[0].length) : -1; } function Bv(t, e, n) { - var r = jv.exec(e.slice(n, n + 1)); + var r = Dv.exec(e.slice(n, n + 1)); return r ? ((t.u = +r[0]), n + r[0].length) : -1; } function Gv(t, e, n) { - var r = jv.exec(e.slice(n, n + 2)); + var r = Dv.exec(e.slice(n, n + 2)); return r ? ((t.U = +r[0]), n + r[0].length) : -1; } function Hv(t, e, n) { - var r = jv.exec(e.slice(n, n + 2)); + var r = Dv.exec(e.slice(n, n + 2)); return r ? ((t.V = +r[0]), n + r[0].length) : -1; } function Uv(t, e, n) { - var r = jv.exec(e.slice(n, n + 2)); + var r = Dv.exec(e.slice(n, n + 2)); return r ? ((t.W = +r[0]), n + r[0].length) : -1; } function qv(t, e, n) { - var r = jv.exec(e.slice(n, n + 4)); + var r = Dv.exec(e.slice(n, n + 4)); return r ? ((t.y = +r[0]), n + r[0].length) : -1; } function Wv(t, e, n) { - var r = jv.exec(e.slice(n, n + 2)); + var r = Dv.exec(e.slice(n, n + 2)); return r ? ((t.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3)), n + r[0].length) : -1; @@ -103057,53 +103030,53 @@ object-assign : -1; } function Yv(t, e, n) { - var r = jv.exec(e.slice(n, n + 1)); + var r = Dv.exec(e.slice(n, n + 1)); return r ? ((t.q = 3 * r[0] - 3), n + r[0].length) : -1; } function $v(t, e, n) { - var r = jv.exec(e.slice(n, n + 2)); + var r = Dv.exec(e.slice(n, n + 2)); return r ? ((t.m = r[0] - 1), n + r[0].length) : -1; } function Kv(t, e, n) { - var r = jv.exec(e.slice(n, n + 2)); + var r = Dv.exec(e.slice(n, n + 2)); return r ? ((t.d = +r[0]), n + r[0].length) : -1; } function Qv(t, e, n) { - var r = jv.exec(e.slice(n, n + 3)); + var r = Dv.exec(e.slice(n, n + 3)); return r ? ((t.m = 0), (t.d = +r[0]), n + r[0].length) : -1; } function Zv(t, e, n) { - var r = jv.exec(e.slice(n, n + 2)); + var r = Dv.exec(e.slice(n, n + 2)); return r ? ((t.H = +r[0]), n + r[0].length) : -1; } function Jv(t, e, n) { - var r = jv.exec(e.slice(n, n + 2)); + var r = Dv.exec(e.slice(n, n + 2)); return r ? ((t.M = +r[0]), n + r[0].length) : -1; } function ty(t, e, n) { - var r = jv.exec(e.slice(n, n + 2)); + var r = Dv.exec(e.slice(n, n + 2)); return r ? ((t.S = +r[0]), n + r[0].length) : -1; } function ey(t, e, n) { - var r = jv.exec(e.slice(n, n + 3)); + var r = Dv.exec(e.slice(n, n + 3)); return r ? ((t.L = +r[0]), n + r[0].length) : -1; } function ny(t, e, n) { - var r = jv.exec(e.slice(n, n + 6)); + var r = Dv.exec(e.slice(n, n + 6)); return r ? ((t.L = Math.floor(r[0] / 1e3)), n + r[0].length) : -1; } function ry(t, e, n) { - var r = Dv.exec(e.slice(n, n + 1)); + var r = jv.exec(e.slice(n, n + 1)); return r ? n + r[0].length : -1; } function iy(t, e, n) { - var r = jv.exec(e.slice(n)); + var r = Dv.exec(e.slice(n)); return r ? ((t.Q = +r[0]), n + r[0].length) : -1; } function oy(t, e, n) { - var r = jv.exec(e.slice(n)); + var r = Dv.exec(e.slice(n)); return r ? ((t.s = +r[0]), n + r[0].length) : -1; } function ay(t, e) { @@ -103198,10 +103171,10 @@ object-assign var e = t.getUTCDay(); return 0 === e ? 7 : e; } - function jy(t, e) { + function Dy(t, e) { return zv(rv.count(xv(t) - 1, t), e, 2); } - function Dy(t, e) { + function jy(t, e) { var n = t.getUTCDay(); return ( (t = n >= 4 || 0 === n ? sv(t) : sv.ceil(t)), @@ -103702,8 +103675,8 @@ object-assign Lb = kb( 'e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999' ), - jb = kb('66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3'), - Db = kb( + Db = kb('66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3'), + jb = kb( '8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f' ), Rb = kb( @@ -104030,7 +104003,7 @@ object-assign ) .map(kb), L_ = zb(M_), - j_ = new Array(3) + D_ = new Array(3) .concat( 'fee0d2fc9272de2d26', 'fee5d9fcae91fb6a4acb181d', @@ -104041,7 +104014,7 @@ object-assign 'fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d' ) .map(kb), - D_ = zb(j_), + j_ = zb(D_), R_ = new Array(3) .concat( 'fee6cefdae6be6550d', @@ -104345,8 +104318,8 @@ object-assign : ((E = 0), (b = _ = (h + p) / 2)); } var L = d * nx(b), - j = d * ox(b), - D = f * nx(w), + D = d * ox(b), + j = f * nx(w), R = f * ox(w); if (T > sx) { var z, @@ -104367,10 +104340,10 @@ object-assign t + (d = (c * (e - o) - f * (t - i)) / d) * u, e + d * l ]; - })(L, j, F, V, N, I, D, R)) + })(L, D, F, V, N, I, j, R)) ) { var B = L - z[0], - G = j - z[1], + G = D - z[1], H = N - z[0], U = I - z[1], q = @@ -104391,8 +104364,8 @@ object-assign } E > sx ? O > sx - ? ((v = vx(F, V, L, j, d, O, m)), - (y = vx(N, I, D, R, d, O, m)), + ? ((v = vx(F, V, L, D, d, O, m)), + (y = vx(N, I, j, R, d, O, m)), s.moveTo(v.cx + v.x01, v.cy + v.y01), O < T ? s.arc( @@ -104427,12 +104400,12 @@ object-assign ex(y.y01, y.x01), !m ))) - : (s.moveTo(L, j), s.arc(0, 0, d, b, _, !m)) - : s.moveTo(L, j), + : (s.moveTo(L, D), s.arc(0, 0, d, b, _, !m)) + : s.moveTo(L, D), f > sx && S > sx ? C > sx - ? ((v = vx(D, R, N, I, f, -C, m)), - (y = vx(L, j, F, V, f, -C, m)), + ? ((v = vx(j, R, N, I, f, -C, m)), + (y = vx(L, D, F, V, f, -C, m)), s.lineTo(v.cx + v.x01, v.cy + v.y01), C < T ? s.arc( @@ -104468,7 +104441,7 @@ object-assign !m ))) : s.arc(0, 0, f, w, x, m) - : s.lineTo(D, R); + : s.lineTo(j, R); } else s.moveTo(0, 0); if ((s.closePath(), u)) return (s = null), u + '' || null; @@ -104883,7 +104856,7 @@ object-assign var Lx = function() { return Mx(Sx().curve(Cx)); }, - jx = function() { + Dx = function() { var t = Ex().curve(Cx), e = t.curve, n = t.lineX0, @@ -104925,7 +104898,7 @@ object-assign t ); }, - Dx = function(t, e) { + jx = function(t, e) { return [ (e = +e) * Math.cos((t -= Math.PI / 2)), e * Math.sin(t) @@ -104996,10 +104969,10 @@ object-assign t.bezierCurveTo(e, (n = (n + i) / 2), r, n, r, i); } function Bx(t, e, n, r, i) { - var o = Dx(e, n), - a = Dx(e, (n = (n + i) / 2)), - s = Dx(r, n), - u = Dx(r, i); + var o = jx(e, n), + a = jx(e, (n = (n + i) / 2)), + s = jx(r, n), + u = jx(r, i); t.moveTo(o[0], o[1]), t.bezierCurveTo(a[0], a[1], s[0], s[1], u[0], u[1]); } @@ -105785,10 +105758,10 @@ object-assign n ); })(0.5); - function jw(t) { + function Dw(t) { this._context = t; } - jw.prototype = { + Dw.prototype = { areaStart: lw, areaEnd: lw, lineStart: function() { @@ -105805,8 +105778,8 @@ object-assign : ((this._point = 1), this._context.moveTo(t, e)); } }; - var Dw = function(t) { - return new jw(t); + var jw = function(t) { + return new Dw(t); }; function Rw(t) { return t < 0 ? -1 : 1; @@ -106550,11 +106523,11 @@ object-assign } var MS, LS = []; - function jS() { + function DS() { yS(this), (this.x = this.y = this.arc = this.site = this.cy = null); } - function DS(t) { + function jS(t) { var e = t.P, n = t.N; if (e && n) { @@ -106574,7 +106547,7 @@ object-assign p = c * c + f * f, g = (f * h - l * p) / d, m = (u * p - c * h) / d, - v = LS.pop() || new jS(); + v = LS.pop() || new DS(); (v.arc = t), (v.site = i), (v.x = g + a), @@ -106652,8 +106625,8 @@ object-assign (l = s[c]), (u = s[c - 1]), kS(l.edge, u.site, l.site, i); (u = s[0]), ((l = s[f - 1]).edge = SS(u.site, l.site, null, i)), - DS(u), - DS(l); + jS(u), + jS(l); } function BS(t) { for (var e, n, r, i, o = t[0], a = t[1], s = US._; s; ) @@ -106684,8 +106657,8 @@ object-assign (n = IS(e.site)), US.insert(u, n), (u.edge = n.edge = SS(e.site, u.site)), - DS(e), - void DS(n) + jS(e), + void jS(n) ); if (n) { RS(e), RS(n); @@ -106704,8 +106677,8 @@ object-assign kS(n.edge, l, p, _), (u.edge = SS(l, t, null, _)), (n.edge = SS(t, p, null, _)), - DS(e), - DS(n); + jS(e), + jS(n); } else u.edge = SS(e.site, u.site); } } @@ -107656,13 +107629,13 @@ object-assign return L; }), n.d(e, 'thresholdScott', function() { - return j; + return D; }), n.d(e, 'thresholdSturges', function() { return O; }), n.d(e, 'max', function() { - return D; + return j; }), n.d(e, 'mean', function() { return R; @@ -107809,7 +107782,7 @@ object-assign return Ls; }), n.d(e, 'csvParse', function() { - return Ds; + return js; }), n.d(e, 'csvParseRows', function() { return Rs; @@ -108004,10 +107977,10 @@ object-assign return Pu; }), n.d(e, 'forceX', function() { - return ju; + return Du; }), n.d(e, 'forceY', function() { - return Du; + return ju; }), n.d(e, 'formatDefaultLocale', function() { return Qu; @@ -108100,10 +108073,10 @@ object-assign return Th; }), n.d(e, 'geoConicConformal', function() { - return Dh; + return jh; }), n.d(e, 'geoConicConformalRaw', function() { - return jh; + return Dh; }), n.d(e, 'geoConicEqualArea', function() { return _h; @@ -108190,7 +108163,7 @@ object-assign return lp; }), n.d(e, 'pack', function() { - return Dp; + return jp; }), n.d(e, 'packSiblings', function() { return Cp; @@ -108286,7 +108259,7 @@ object-assign return fr; }), n.d(e, 'interpolateLab', function() { - return Dr; + return jr; }), n.d(e, 'interpolateHcl', function() { return zr; @@ -108448,10 +108421,10 @@ object-assign return Lb; }), n.d(e, 'schemeSet2', function() { - return jb; + return Db; }), n.d(e, 'schemeSet3', function() { - return Db; + return jb; }), n.d(e, 'schemeTableau10', function() { return Rb; @@ -108607,10 +108580,10 @@ object-assign return M_; }), n.d(e, 'interpolateReds', function() { - return D_; + return j_; }), n.d(e, 'schemeReds', function() { - return j_; + return D_; }), n.d(e, 'interpolateOranges', function() { return z_; @@ -108673,7 +108646,7 @@ object-assign return vt; }), n.d(e, 'clientPoint', function() { - return De; + return je; }), n.d(e, 'select', function() { return Ce; @@ -108721,10 +108694,10 @@ object-assign return Tx; }), n.d(e, 'areaRadial', function() { - return jx; + return Dx; }), n.d(e, 'radialArea', function() { - return jx; + return Dx; }), n.d(e, 'lineRadial', function() { return Lx; @@ -108733,7 +108706,7 @@ object-assign return Lx; }), n.d(e, 'pointRadial', function() { - return Dx; + return jx; }), n.d(e, 'linkHorizontal', function() { return Gx; @@ -108802,7 +108775,7 @@ object-assign return Cw; }), n.d(e, 'curveLinearClosed', function() { - return Dw; + return jw; }), n.d(e, 'curveLinear', function() { return _x; @@ -108910,13 +108883,13 @@ object-assign return Tm; }), n.d(e, 'timeWeeks', function() { - return Dm; + return jm; }), n.d(e, 'timeSunday', function() { return Tm; }), n.d(e, 'timeSundays', function() { - return Dm; + return jm; }), n.d(e, 'timeMonday', function() { return Cm; @@ -108949,7 +108922,7 @@ object-assign return Fm; }), n.d(e, 'timeSaturday', function() { - return jm; + return Dm; }), n.d(e, 'timeSaturdays', function() { return Vm; @@ -114667,12 +114640,12 @@ object-assign var P = C.value, M = i(P, 2), L = M[0], - j = M[1]; - v && j instanceof Date && (j = v(j)); - var D = (0, a.escapeHtml)(j); + D = M[1]; + v && D instanceof Date && (D = v(D)); + var j = (0, a.escapeHtml)(D); p[L] - ? (n += '' + m[p[L]](D) + '') - : (n += '' + D + ''); + ? (n += '' + m[p[L]](j) + '') + : (n += '' + j + ''); } } catch (t) { (A = !0), (T = t); @@ -114983,9 +114956,9 @@ object-assign 30, M = P / (t.length - 1), L = O, - j = (100).toFixed(m), - D = 0; - x && (D = (O - x) / (t.length - 2)); + D = (100).toFixed(m), + j = 0; + x && (j = (O - x) / (t.length - 2)); var R = t.slice(1).map(function(e, n) { var r = [ { x: (O - L) / 2, y: M * n + A }, @@ -114994,16 +114967,16 @@ object-assign 0 !== n && ('relative' === g && (x - ? (L -= D) + ? (L -= j) : (L = (L * e[1]) / t[n][1]), - (j = ((e[1] / t[n][1]) * 100).toFixed( + (D = ((e[1] / t[n][1]) * 100).toFixed( m ))), 'absolute' === g && (x - ? (L -= D) + ? (L -= j) : (L = (O * e[1]) / t[1][1]), - (j = ((e[1] / t[1][1]) * 100).toFixed( + (D = ((e[1] / t[1][1]) * 100).toFixed( m )))); var o = e[0]; @@ -115018,7 +114991,7 @@ object-assign { name: e[0], label: o, - percent: j + '%', + percent: D + '%', result: u, points: [].concat(r, [ { @@ -115409,28 +115382,28 @@ object-assign P = O / (t.length - 1), M = 0.3 * P, L = 2.5 * M, - j = C, - D = (100).toFixed(m), + D = C, + j = (100).toFixed(m), R = 0; x && (R = (C - x) / (t.length - 2)); var z = t.slice(1).map(function(e, n) { var r = [ - { x: (C - j) / 2, y: P * n + M }, - { x: (C - j) / 2 + j, y: P * n + M } + { x: (C - D) / 2, y: P * n + M }, + { x: (C - D) / 2 + D, y: P * n + M } ]; 0 !== n && ('relative' === g && (x - ? (j -= R) - : (j = (j * e[1]) / t[n][1]), - (D = ((e[1] / t[n][1]) * 100).toFixed( + ? (D -= R) + : (D = (D * e[1]) / t[n][1]), + (j = ((e[1] / t[n][1]) * 100).toFixed( m ))), 'absolute' === g && (x - ? (j -= R) - : (j = (C * e[1]) / t[1][1]), - (D = ((e[1] / t[1][1]) * 100).toFixed( + ? (D -= R) + : (D = (C * e[1]) / t[1][1]), + (j = ((e[1] / t[1][1]) * 100).toFixed( m )))); var o = e[0]; @@ -115446,14 +115419,14 @@ object-assign { name: e[0], label: o, - percent: D + '%', + percent: j + '%', result: u, points: [].concat(r, [ { - x: (C - j) / 2 + j, + x: (C - D) / 2 + D, y: P * (n + 1) }, - { x: (C - j) / 2, y: P * (n + 1) } + { x: (C - D) / 2, y: P * (n + 1) } ]) } ); @@ -115876,9 +115849,9 @@ object-assign 30, M = O / (t.length - 1), L = P, - j = (100).toFixed(m), - D = 0; - x && (D = (P - x) / (t.length - 2)); + D = (100).toFixed(m), + j = 0; + x && (j = (P - x) / (t.length - 2)); var R = t.slice(1).map(function(e, n) { var r = [ { x: M * n + A, y: (P - L) / 2 }, @@ -115887,16 +115860,16 @@ object-assign 0 !== n && ('relative' === g && (x - ? (L -= D) + ? (L -= j) : (L = (L * e[1]) / t[n][1]), - (j = ((e[1] / t[n][1]) * 100).toFixed( + (D = ((e[1] / t[n][1]) * 100).toFixed( m ))), 'absolute' === g && (x - ? (L -= D) + ? (L -= j) : (L = (P * e[1]) / t[1][1]), - (j = ((e[1] / t[1][1]) * 100).toFixed( + (D = ((e[1] / t[1][1]) * 100).toFixed( m )))); var o = e[0]; @@ -115911,7 +115884,7 @@ object-assign { name: e[0], label: o, - percent: j + '%', + percent: D + '%', result: u, points: [].concat(r, [ { @@ -116254,28 +116227,28 @@ object-assign P = C / (t.length - 1), M = 0.3 * P, L = M / 1.5, - j = O, - D = (100).toFixed(m), + D = O, + j = (100).toFixed(m), R = 0; x && (R = (O - x) / (t.length - 2)); var z = t.slice(1).map(function(e, n) { var r = [ - { x: P * n + M, y: (O - j) / 2 }, - { x: P * n + M, y: (O - j) / 2 + j } + { x: P * n + M, y: (O - D) / 2 }, + { x: P * n + M, y: (O - D) / 2 + D } ]; 0 !== n && ('relative' === g && (x - ? (j -= R) - : (j = (j * e[1]) / t[n][1]), - (D = ((e[1] / t[n][1]) * 100).toFixed( + ? (D -= R) + : (D = (D * e[1]) / t[n][1]), + (j = ((e[1] / t[n][1]) * 100).toFixed( m ))), 'absolute' === g && (x - ? (j -= R) - : (j = (O * e[1]) / t[1][1]), - (D = ((e[1] / t[1][1]) * 100).toFixed( + ? (D -= R) + : (D = (O * e[1]) / t[1][1]), + (j = ((e[1] / t[1][1]) * 100).toFixed( m )))); var o = e[0]; @@ -116291,14 +116264,14 @@ object-assign { name: e[0], label: o, - percent: D + '%', + percent: j + '%', result: u, points: [].concat(r, [ { x: P * (n + 1), - y: (O - j) / 2 + j + y: (O - D) / 2 + D }, - { x: P * (n + 1), y: (O - j) / 2 } + { x: P * (n + 1), y: (O - D) / 2 } ]) } ); @@ -116908,12 +116881,12 @@ object-assign L = O.reduce(function(t, e) { return e.value > t ? e.value : t; }, P), - j = function() { + D = function() { var t = u[0], e = o.rgb('#00BBDE'); return o.color(t) && (e = o.rgb(t)), e; }, - D = o + j = o .scaleLinear() .domain([ 0, @@ -116923,8 +116896,8 @@ object-assign ]) .range([0, 1]), R = function(t) { - var e = D(t), - n = j(), + var e = j(t), + n = D(), r = (function(t) { var e = arguments.length > 1 && @@ -117011,15 +116984,15 @@ object-assign ' .rangeable-tooltip,\n ' + N + ' .active {\n background-color: ' + - j() + + D() + ';\n }\n ' + N + ' .rangeable-tooltip::before {\n border-color: ' + - j() + + D() + ' transparent transparent;\n }\n ' + N + ' .rangeable-handle {\n border-color: ' + - j() + + D() + ';\n }\n ', F = document.createElement('style'); F.innerHTML = I; @@ -117065,7 +117038,7 @@ object-assign .style('background-color', 'white') .style( 'border', - '2px solid ' + j().toString() + '2px solid ' + D().toString() ) .style('font-size', '14px') .style('padding', '2px 8px') @@ -117101,7 +117074,7 @@ object-assign 'transition', 'transform 150ms ease-out' ) - .style('outline', '1px solid ' + j()) + .style('outline', '1px solid ' + D()) .style( 'transform', 'translate(0px, -4px)' @@ -118081,7 +118054,7 @@ object-assign } var M = /\/+/g, L = []; - function j(t, e, n, r) { + function D(t, e, n, r) { if (L.length) { var i = L.pop(); return ( @@ -118101,7 +118074,7 @@ object-assign count: 0 }; } - function D(t) { + function j(t) { (t.result = null), (t.keyPrefix = null), (t.func = null), @@ -118214,8 +118187,8 @@ object-assign function F(t, e, n, r, i) { var o = ''; null != n && (o = ('' + n).replace(M, '$&/') + '/'), - R(t, I, (e = j(e, o, r, i))), - D(e); + R(t, I, (e = D(e, o, r, i))), + j(e); } function V() { var t = k.current; @@ -118230,7 +118203,7 @@ object-assign }, forEach: function(t, e, n) { if (null == t) return t; - R(t, N, (e = j(null, null, e, n))), D(e); + R(t, N, (e = D(null, null, e, n))), j(e); }, count: function(t) { return R( @@ -120180,8 +120153,8 @@ object-assign P, M, L, - j, D, + j, R = this, z = R.main, N = R.d3, @@ -120274,10 +120247,10 @@ object-assign (b = R.generateXYForText(F, V, B, !0)), (_ = R.generateXYForText(F, V, B, !1)), R.updateCircleY(), - (j = (R.config.axis_rotated ? R.circleY : R.circleX).bind( + (D = (R.config.axis_rotated ? R.circleY : R.circleX).bind( R )), - (D = (R.config.axis_rotated ? R.circleX : R.circleY).bind( + (j = (R.config.axis_rotated ? R.circleX : R.circleY).bind( R )), n && @@ -120298,7 +120271,7 @@ object-assign R.updateBar(S), R.updateLine(S), R.updateArea(S), - R.updateCircle(j, D), + R.updateCircle(D, j), R.hasDataLabel() && R.updateText(b, _, S), R.redrawTitle && R.redrawTitle(), R.redrawArc && R.redrawArc(x, S, s), @@ -120317,8 +120290,8 @@ object-assign drawBar: v, drawLine: y, drawArea: m, - cx: j, - cy: D, + cx: D, + cy: j, xv: U, xForText: b, yForText: _ @@ -120330,7 +120303,7 @@ object-assign R.redrawBar(v, !0, C), R.redrawLine(y, !0, C), R.redrawArea(m, !0, C), - R.redrawCircle(j, D, !0, C), + R.redrawCircle(D, j, !0, C), R.redrawText(b, _, t.flow, !0, C), R.redrawRegion(!0, C), R.redrawGrid(!0, C) @@ -120349,7 +120322,7 @@ object-assign : (R.redrawBar(v), R.redrawLine(y), R.redrawArea(m), - R.redrawCircle(j, D), + R.redrawCircle(D, j), R.redrawText(b, _, t.flow), R.redrawRegion(), R.redrawGrid(), @@ -123573,8 +123546,8 @@ object-assign P = e.getValueOnIndex(e.data.targets[0].values, C), M = e.getValueOnIndex(e.data.targets[0].values, C + O), L = e.x.domain(), - j = v.duration || T, - D = v.done || function() {}, + D = v.duration || T, + j = v.done || function() {}, R = e.generateWait(); (e.flowing = !0), e.data.targets.forEach(function(t) { @@ -123620,7 +123593,7 @@ object-assign var z = r .transition() .ease(r.easeLinear) - .duration(j); + .duration(D); R.add(e.xAxis(e.axes.x, z)), R.add(d.transition(z).attr('transform', o)), R.add(h.transition(z).attr('transform', o)), @@ -123686,7 +123659,7 @@ object-assign .filter(e.isRegionOnX) .attr('x', e.regionX.bind(e)) .attr('width', e.regionWidth.bind(e)), - D(), + j(), (e.flowing = !1); }); }; @@ -127551,8 +127524,8 @@ object-assign P = 0, M = {}, L = {}, - j = {}, - D = [0], + D = {}, + j = [0], R = {}, z = 0; function N(e, n, r) { @@ -127587,14 +127560,14 @@ object-assign ((i = (d - P - f) / 2) < C && ((i = (d - f) / 2), (P = 0), z++)), (R[t] = z), - (D[z] = x.isLegendInset ? 10 : i), + (j[z] = x.isLegendInset ? 10 : i), (M[t] = P), (P += f); } a && ((P = 0), (z = 0), (A = 0), (T = 0)), !S.legend_show || x.isLegendToShow(n) ? ((L[n] = l), - (j[n] = c), + (D[n] = c), (!A || l >= A) && (A = l), (!T || c >= T) && (T = c), (o = x.isLegendRight || x.isLegendInset ? T : A), @@ -127602,8 +127575,8 @@ object-assign ? (Object.keys(L).forEach(function(t) { L[t] = A; }), - Object.keys(j).forEach(function(t) { - j[t] = T; + Object.keys(D).forEach(function(t) { + D[t] = T; }), (i = (d - o * t.length) / 2) < C ? ((P = 0), @@ -127613,7 +127586,7 @@ object-assign })) : h(n, !0)) : h(n)) - : (L[n] = j[n] = R[n] = M[n] = 0); + : (L[n] = D[n] = R[n] = M[n] = 0); } (t = t.filter(function(t) { return !d(S.data_names[t]) || null !== S.data_names[t]; @@ -127630,17 +127603,17 @@ object-assign return A * R[t]; }), (a = function(t) { - return D[R[t]] + M[t]; + return j[R[t]] + M[t]; })) : x.isLegendInset ? ((r = function(t) { return A * R[t] + 10; }), (a = function(t) { - return D[R[t]] + M[t]; + return j[R[t]] + M[t]; })) : ((r = function(t) { - return D[R[t]] + M[t]; + return j[R[t]] + M[t]; }), (a = function(t) { return T * R[t]; @@ -127782,7 +127755,7 @@ object-assign return L[t]; }) .attr('height', function(t) { - return j[t]; + return D[t]; }) .attr('x', o) .attr('y', l), @@ -131257,12 +131230,12 @@ object-assign '[object Uint8ClampedArray]' ] = M['[object Uint16Array]'] = M['[object Uint32Array]'] = !0), (M['[object Error]'] = M[C] = M['[object WeakMap]'] = !1), - (t.exports = function t(e, n, L, j, D, R) { + (t.exports = function t(e, n, L, D, j, R) { var z, N = n & E, I = n & k, F = n & A; - if ((L && (z = D ? L(e, j, D, R) : L(e)), void 0 !== z)) return z; + if ((L && (z = j ? L(e, D, j, R) : L(e)), void 0 !== z)) return z; if (!x(e)) return e; var V = y(e); if (V) { @@ -131271,11 +131244,11 @@ object-assign var B = p(e), G = B == C || B == O; if (b(e)) return u(e, N); - if (B == P || B == T || (G && !D)) { + if (B == P || B == T || (G && !j)) { if (((z = I || G ? {} : v(e)), !N)) return I ? f(e, s(z, e)) : c(e, a(z, e)); } else { - if (!M[B]) return D ? e : {}; + if (!M[B]) return j ? e : {}; z = m(e, B, N); } } @@ -132223,19 +132196,20 @@ object-assign })(e, t), r(e, [ { - key: 'componentWillReceiveProps', - value: function(t) { - var e = this.input; - t.value !== this.state.value && - (e === document.activeElement + key: 'componentDidUpdate', + value: function(t, e) { + this.props.value === this.state.value || + (t.value === this.props.value && + e.value === this.state.value) || + (this.input === document.activeElement ? this.setState({ - blurValue: String(t.value).toUpperCase() + blurValue: String(this.props.value).toUpperCase() }) : this.setState({ - value: String(t.value).toUpperCase(), + value: String(this.props.value).toUpperCase(), blurValue: !this.state.blurValue && - String(t.value).toUpperCase() + String(this.props.value).toUpperCase() })); } }, @@ -132272,10 +132246,9 @@ object-assign { key: 'setUpdatedValue', value: function(t, e) { - var n = - null !== this.props.label - ? this.getValueObjectWithLabel(t) - : t; + var n = this.props.label + ? this.getValueObjectWithLabel(t) + : t; this.props.onChange && this.props.onChange(n, e); var r, i = (function(t) { @@ -133121,9 +133094,9 @@ object-assign s = 'number' == typeof t.pageY ? t.pageY : t.touches[0].pageY, u = a - (n.getBoundingClientRect().left + window.pageXOffset), l = s - (n.getBoundingClientRect().top + window.pageYOffset); - u < 0 ? (u = 0) : u > i ? (u = i) : l < 0 ? (l = 0) : l > o && (l = o); - var c = (100 * u) / i, - f = (-100 * l) / o + 100; + u < 0 ? (u = 0) : u > i && (u = i), l < 0 ? (l = 0) : l > o && (l = o); + var c = u / i, + f = 1 - l / o; return { h: e.h, s: c, v: f, a: e.a, source: 'rgb' }; }; }, @@ -133218,9 +133191,9 @@ object-assign (p = t.g), (g = t.b), (e = { - r: 255 * j(h, 255), - g: 255 * j(p, 255), - b: 255 * j(g, 255) + r: 255 * D(h, 255), + g: 255 * D(p, 255), + b: 255 * D(g, 255) }), (f = !0), (d = '%' === String(t.r).substr(-1) ? 'prgb' : 'rgb')) @@ -133228,7 +133201,7 @@ object-assign ? ((r = N(t.s)), (s = N(t.v)), (e = (function(t, e, n) { - (t = 6 * j(t, 360)), (e = j(e, 100)), (n = j(n, 100)); + (t = 6 * D(t, 360)), (e = D(e, 100)), (n = D(n, 100)); var r = i.floor(t), o = t - r, a = n * (1 - e), @@ -133264,9 +133237,9 @@ object-assign ); } if ( - ((t = j(t, 360)), - (e = j(e, 100)), - (n = j(n, 100)), + ((t = D(t, 360)), + (e = D(e, 100)), + (n = D(n, 100)), 0 === e) ) r = i = o = n; @@ -133310,7 +133283,7 @@ object-assign (this._tc_id = s++); } function h(t, e, n) { - (t = j(t, 255)), (e = j(e, 255)), (n = j(n, 255)); + (t = D(t, 255)), (e = D(e, 255)), (n = D(n, 255)); var r, i, o = c(t, e, n), @@ -133334,7 +133307,7 @@ object-assign return { h: r, s: i, l: s }; } function p(t, e, n) { - (t = j(t, 255)), (e = j(e, 255)), (n = j(n, 255)); + (t = D(t, 255)), (e = D(e, 255)), (n = D(n, 255)); var r, i, o = c(t, e, n), @@ -133381,12 +133354,12 @@ object-assign function v(t, e) { e = 0 === e ? 0 : e || 10; var n = d(t).toHsl(); - return (n.s -= e / 100), (n.s = D(n.s)), d(n); + return (n.s -= e / 100), (n.s = j(n.s)), d(n); } function y(t, e) { e = 0 === e ? 0 : e || 10; var n = d(t).toHsl(); - return (n.s += e / 100), (n.s = D(n.s)), d(n); + return (n.s += e / 100), (n.s = j(n.s)), d(n); } function b(t) { return d(t).desaturate(100); @@ -133394,7 +133367,7 @@ object-assign function _(t, e) { e = 0 === e ? 0 : e || 10; var n = d(t).toHsl(); - return (n.l += e / 100), (n.l = D(n.l)), d(n); + return (n.l += e / 100), (n.l = j(n.l)), d(n); } function x(t, e) { e = 0 === e ? 0 : e || 10; @@ -133409,7 +133382,7 @@ object-assign function w(t, e) { e = 0 === e ? 0 : e || 10; var n = d(t).toHsl(); - return (n.l -= e / 100), (n.l = D(n.l)), d(n); + return (n.l -= e / 100), (n.l = j(n.l)), d(n); } function S(t, e) { var n = d(t).toHsl(), @@ -133595,27 +133568,27 @@ object-assign }, toPercentageRgb: function() { return { - r: u(100 * j(this._r, 255)) + '%', - g: u(100 * j(this._g, 255)) + '%', - b: u(100 * j(this._b, 255)) + '%', + r: u(100 * D(this._r, 255)) + '%', + g: u(100 * D(this._g, 255)) + '%', + b: u(100 * D(this._b, 255)) + '%', a: this._a }; }, toPercentageRgbString: function() { return 1 == this._a ? 'rgb(' + - u(100 * j(this._r, 255)) + + u(100 * D(this._r, 255)) + '%, ' + - u(100 * j(this._g, 255)) + + u(100 * D(this._g, 255)) + '%, ' + - u(100 * j(this._b, 255)) + + u(100 * D(this._b, 255)) + '%)' : 'rgba(' + - u(100 * j(this._r, 255)) + + u(100 * D(this._r, 255)) + '%, ' + - u(100 * j(this._g, 255)) + + u(100 * D(this._g, 255)) + '%, ' + - u(100 * j(this._b, 255)) + + u(100 * D(this._b, 255)) + '%, ' + this._roundA + ')'; @@ -133968,7 +133941,7 @@ object-assign (t = parseFloat(t)), (isNaN(t) || t < 0 || t > 1) && (t = 1), t ); } - function j(t, e) { + function D(t, e) { (function(t) { return ( 'string' == typeof t && @@ -133985,7 +133958,7 @@ object-assign i.abs(t - e) < 1e-6 ? 1 : (t % e) / parseFloat(e) ); } - function D(t) { + function j(t) { return l(1, c(0, t)); } function R(t) { @@ -134645,7 +134618,8 @@ object-assign v = void 0 === m ? {} : m, y = t.className, b = void 0 === y ? '' : y, - _ = (0, o.default)( + _ = t.defaultView, + x = (0, o.default)( (0, a.default)( { default: { @@ -134716,12 +134690,12 @@ object-assign ); return r.default.createElement( 'div', - { style: _.picker, className: 'chrome-picker ' + b }, + { style: x.picker, className: 'chrome-picker ' + b }, r.default.createElement( 'div', - { style: _.saturation }, + { style: x.saturation }, r.default.createElement(s.Saturation, { - style: _.Saturation, + style: x.Saturation, hsl: d, hsv: h, pointer: c.default, @@ -134730,28 +134704,28 @@ object-assign ), r.default.createElement( 'div', - { style: _.body }, + { style: x.body }, r.default.createElement( 'div', - { style: _.controls, className: 'flexbox-fix' }, + { style: x.controls, className: 'flexbox-fix' }, r.default.createElement( 'div', - { style: _.color }, + { style: x.color }, r.default.createElement( 'div', - { style: _.swatch }, - r.default.createElement('div', { style: _.active }), + { style: x.swatch }, + r.default.createElement('div', { style: x.active }), r.default.createElement(s.Checkboard, { renderers: g }) ) ), r.default.createElement( 'div', - { style: _.toggles }, + { style: x.toggles }, r.default.createElement( 'div', - { style: _.hue }, + { style: x.hue }, r.default.createElement(s.Hue, { - style: _.Hue, + style: x.Hue, hsl: d, pointer: l.default, onChange: n @@ -134759,9 +134733,9 @@ object-assign ), r.default.createElement( 'div', - { style: _.alpha }, + { style: x.alpha }, r.default.createElement(s.Alpha, { - style: _.Alpha, + style: x.Alpha, rgb: f, hsl: d, pointer: l.default, @@ -134775,6 +134749,7 @@ object-assign rgb: f, hsl: d, hex: p, + view: _, onChange: n, disableAlpha: i }) @@ -134784,7 +134759,8 @@ object-assign (d.propTypes = { width: i.default.oneOfType([i.default.string, i.default.number]), disableAlpha: i.default.bool, - styles: i.default.object + styles: i.default.object, + defaultView: i.default.oneOf(['hex', 'rgb', 'hsl']) }), (d.defaultProps = { width: 225, disableAlpha: !1, styles: {} }), (e.default = (0, s.ColorWrap)(d)); @@ -134815,62 +134791,53 @@ object-assign function l(t) { return t && t.__esModule ? t : { default: t }; } - function c(t, e) { - if (!t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !e || ('object' != typeof e && 'function' != typeof e) ? t : e; - } - var f = (e.ChromeFields = (function(t) { - function e() { - var t, n, r; + var c = (e.ChromeFields = (function(t) { + function e(t) { !(function(t, e) { if (!(t instanceof e)) throw new TypeError('Cannot call a class as a function'); })(this, e); - for (var i = arguments.length, o = Array(i), s = 0; s < i; s++) - o[s] = arguments[s]; + var n = (function(t, e) { + if (!t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !e || ('object' != typeof e && 'function' != typeof e) + ? t + : e; + })(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this)); return ( - (n = r = c( - this, - (t = e.__proto__ || Object.getPrototypeOf(e)).call.apply( - t, - [this].concat(o) - ) - )), - (r.state = { view: '' }), - (r.toggleViews = function() { - 'hex' === r.state.view - ? r.setState({ view: 'rgb' }) - : 'rgb' === r.state.view - ? r.setState({ view: 'hsl' }) - : 'hsl' === r.state.view && - (1 === r.props.hsl.a - ? r.setState({ view: 'hex' }) - : r.setState({ view: 'rgb' })); + (n.toggleViews = function() { + 'hex' === n.state.view + ? n.setState({ view: 'rgb' }) + : 'rgb' === n.state.view + ? n.setState({ view: 'hsl' }) + : 'hsl' === n.state.view && + (1 === n.props.hsl.a + ? n.setState({ view: 'hex' }) + : n.setState({ view: 'rgb' })); }), - (r.handleChange = function(t, e) { + (n.handleChange = function(t, e) { t.hex ? a.default.isValidHex(t.hex) && - r.props.onChange({ hex: t.hex, source: 'hex' }, e) + n.props.onChange({ hex: t.hex, source: 'hex' }, e) : t.r || t.g || t.b - ? r.props.onChange( + ? n.props.onChange( { - r: t.r || r.props.rgb.r, - g: t.g || r.props.rgb.g, - b: t.b || r.props.rgb.b, + r: t.r || n.props.rgb.r, + g: t.g || n.props.rgb.g, + b: t.b || n.props.rgb.b, source: 'rgb' }, e ) : t.a ? (t.a < 0 ? (t.a = 0) : t.a > 1 && (t.a = 1), - r.props.onChange( + n.props.onChange( { - h: r.props.hsl.h, - s: r.props.hsl.s, - l: r.props.hsl.l, + h: n.props.hsl.h, + s: n.props.hsl.s, + l: n.props.hsl.l, a: Math.round(100 * t.a) / 100, source: 'rgb' }, @@ -134883,23 +134850,26 @@ object-assign 'string' == typeof t.l && t.l.includes('%') && (t.l = t.l.replace('%', '')), - r.props.onChange( + n.props.onChange( { - h: t.h || r.props.hsl.h, - s: Number((t.s && t.s) || r.props.hsl.s), - l: Number((t.l && t.l) || r.props.hsl.l), + h: t.h || n.props.hsl.h, + s: Number((t.s && t.s) || n.props.hsl.s), + l: Number((t.l && t.l) || n.props.hsl.l), source: 'hsl' }, e )); }), - (r.showHighlight = function(t) { + (n.showHighlight = function(t) { t.currentTarget.style.background = '#eee'; }), - (r.hideHighlight = function(t) { + (n.hideHighlight = function(t) { t.currentTarget.style.background = 'transparent'; }), - c(r, n) + 1 !== t.hsl.a && 'hex' === t.view + ? (n.state = { view: 'rgb' }) + : (n.state = { view: t.view }), + n ); } return ( @@ -134922,235 +134892,230 @@ object-assign ? Object.setPrototypeOf(t, e) : (t.__proto__ = e)); })(e, t), - r(e, [ - { - key: 'componentDidMount', - value: function() { - 1 === this.props.hsl.a && 'hex' !== this.state.view - ? this.setState({ view: 'hex' }) - : 'rgb' !== this.state.view && - 'hsl' !== this.state.view && - this.setState({ view: 'rgb' }); - } - }, - { - key: 'componentWillReceiveProps', - value: function(t) { - 1 !== t.hsl.a && - 'hex' === this.state.view && - this.setState({ view: 'rgb' }); - } - }, - { - key: 'render', - value: function() { - var t = this, - e = (0, o.default)( - { - default: { - wrap: { paddingTop: '16px', display: 'flex' }, - fields: { - flex: '1', - display: 'flex', - marginLeft: '-6px' - }, - field: { paddingLeft: '6px', width: '100%' }, - alpha: { paddingLeft: '6px', width: '100%' }, - toggle: { - width: '32px', - textAlign: 'right', - position: 'relative' - }, - icon: { - marginRight: '-4px', - marginTop: '12px', - cursor: 'pointer', - position: 'relative' - }, - iconHighlight: { - position: 'absolute', - width: '24px', - height: '28px', - background: '#eee', - borderRadius: '4px', - top: '10px', - left: '12px', - display: 'none' - }, - input: { - fontSize: '11px', - color: '#333', - width: '100%', - borderRadius: '2px', - border: 'none', - boxShadow: 'inset 0 0 0 1px #dadada', - height: '21px', - textAlign: 'center' - }, - label: { - textTransform: 'uppercase', - fontSize: '11px', - lineHeight: '11px', - color: '#969696', - textAlign: 'center', - display: 'block', - marginTop: '12px' + r( + e, + [ + { + key: 'render', + value: function() { + var t = this, + e = (0, o.default)( + { + default: { + wrap: { paddingTop: '16px', display: 'flex' }, + fields: { + flex: '1', + display: 'flex', + marginLeft: '-6px' + }, + field: { paddingLeft: '6px', width: '100%' }, + alpha: { paddingLeft: '6px', width: '100%' }, + toggle: { + width: '32px', + textAlign: 'right', + position: 'relative' + }, + icon: { + marginRight: '-4px', + marginTop: '12px', + cursor: 'pointer', + position: 'relative' + }, + iconHighlight: { + position: 'absolute', + width: '24px', + height: '28px', + background: '#eee', + borderRadius: '4px', + top: '10px', + left: '12px', + display: 'none' + }, + input: { + fontSize: '11px', + color: '#333', + width: '100%', + borderRadius: '2px', + border: 'none', + boxShadow: 'inset 0 0 0 1px #dadada', + height: '21px', + textAlign: 'center' + }, + label: { + textTransform: 'uppercase', + fontSize: '11px', + lineHeight: '11px', + color: '#969696', + textAlign: 'center', + display: 'block', + marginTop: '12px' + }, + svg: { + fill: '#333', + width: '24px', + height: '24px', + border: '1px transparent solid', + borderRadius: '5px' + } }, - svg: { - fill: '#333', - width: '24px', - height: '24px', - border: '1px transparent solid', - borderRadius: '5px' - } + disableAlpha: { alpha: { display: 'none' } } }, - disableAlpha: { alpha: { display: 'none' } } - }, - this.props, - this.state - ), - n = void 0; - return ( - 'hex' === this.state.view - ? (n = i.default.createElement( - 'div', - { style: e.fields, className: 'flexbox-fix' }, - i.default.createElement( - 'div', - { style: e.field }, - i.default.createElement(s.EditableInput, { - style: { input: e.input, label: e.label }, - label: 'hex', - value: this.props.hex, - onChange: this.handleChange - }) - ) - )) - : 'rgb' === this.state.view - ? (n = i.default.createElement( - 'div', - { style: e.fields, className: 'flexbox-fix' }, - i.default.createElement( - 'div', - { style: e.field }, - i.default.createElement(s.EditableInput, { - style: { input: e.input, label: e.label }, - label: 'r', - value: this.props.rgb.r, - onChange: this.handleChange - }) - ), - i.default.createElement( + this.props, + this.state + ), + n = void 0; + return ( + 'hex' === this.state.view + ? (n = i.default.createElement( 'div', - { style: e.field }, - i.default.createElement(s.EditableInput, { - style: { input: e.input, label: e.label }, - label: 'g', - value: this.props.rgb.g, - onChange: this.handleChange - }) - ), - i.default.createElement( + { style: e.fields, className: 'flexbox-fix' }, + i.default.createElement( + 'div', + { style: e.field }, + i.default.createElement(s.EditableInput, { + style: { input: e.input, label: e.label }, + label: 'hex', + value: this.props.hex, + onChange: this.handleChange + }) + ) + )) + : 'rgb' === this.state.view + ? (n = i.default.createElement( 'div', - { style: e.field }, - i.default.createElement(s.EditableInput, { - style: { input: e.input, label: e.label }, - label: 'b', - value: this.props.rgb.b, - onChange: this.handleChange - }) - ), - i.default.createElement( + { style: e.fields, className: 'flexbox-fix' }, + i.default.createElement( + 'div', + { style: e.field }, + i.default.createElement(s.EditableInput, { + style: { input: e.input, label: e.label }, + label: 'r', + value: this.props.rgb.r, + onChange: this.handleChange + }) + ), + i.default.createElement( + 'div', + { style: e.field }, + i.default.createElement(s.EditableInput, { + style: { input: e.input, label: e.label }, + label: 'g', + value: this.props.rgb.g, + onChange: this.handleChange + }) + ), + i.default.createElement( + 'div', + { style: e.field }, + i.default.createElement(s.EditableInput, { + style: { input: e.input, label: e.label }, + label: 'b', + value: this.props.rgb.b, + onChange: this.handleChange + }) + ), + i.default.createElement( + 'div', + { style: e.alpha }, + i.default.createElement(s.EditableInput, { + style: { input: e.input, label: e.label }, + label: 'a', + value: this.props.rgb.a, + arrowOffset: 0.01, + onChange: this.handleChange + }) + ) + )) + : 'hsl' === this.state.view && + (n = i.default.createElement( 'div', - { style: e.alpha }, - i.default.createElement(s.EditableInput, { - style: { input: e.input, label: e.label }, - label: 'a', - value: this.props.rgb.a, - arrowOffset: 0.01, - onChange: this.handleChange - }) - ) - )) - : 'hsl' === this.state.view && - (n = i.default.createElement( + { style: e.fields, className: 'flexbox-fix' }, + i.default.createElement( + 'div', + { style: e.field }, + i.default.createElement(s.EditableInput, { + style: { input: e.input, label: e.label }, + label: 'h', + value: Math.round(this.props.hsl.h), + onChange: this.handleChange + }) + ), + i.default.createElement( + 'div', + { style: e.field }, + i.default.createElement(s.EditableInput, { + style: { input: e.input, label: e.label }, + label: 's', + value: Math.round(100 * this.props.hsl.s) + '%', + onChange: this.handleChange + }) + ), + i.default.createElement( + 'div', + { style: e.field }, + i.default.createElement(s.EditableInput, { + style: { input: e.input, label: e.label }, + label: 'l', + value: Math.round(100 * this.props.hsl.l) + '%', + onChange: this.handleChange + }) + ), + i.default.createElement( + 'div', + { style: e.alpha }, + i.default.createElement(s.EditableInput, { + style: { input: e.input, label: e.label }, + label: 'a', + value: this.props.hsl.a, + arrowOffset: 0.01, + onChange: this.handleChange + }) + ) + )), + i.default.createElement( + 'div', + { style: e.wrap, className: 'flexbox-fix' }, + n, + i.default.createElement( 'div', - { style: e.fields, className: 'flexbox-fix' }, + { style: e.toggle }, i.default.createElement( 'div', - { style: e.field }, - i.default.createElement(s.EditableInput, { - style: { input: e.input, label: e.label }, - label: 'h', - value: Math.round(this.props.hsl.h), - onChange: this.handleChange - }) - ), - i.default.createElement( - 'div', - { style: e.field }, - i.default.createElement(s.EditableInput, { - style: { input: e.input, label: e.label }, - label: 's', - value: Math.round(100 * this.props.hsl.s) + '%', - onChange: this.handleChange - }) - ), - i.default.createElement( - 'div', - { style: e.field }, - i.default.createElement(s.EditableInput, { - style: { input: e.input, label: e.label }, - label: 'l', - value: Math.round(100 * this.props.hsl.l) + '%', - onChange: this.handleChange - }) - ), - i.default.createElement( - 'div', - { style: e.alpha }, - i.default.createElement(s.EditableInput, { - style: { input: e.input, label: e.label }, - label: 'a', - value: this.props.hsl.a, - arrowOffset: 0.01, - onChange: this.handleChange + { + style: e.icon, + onClick: this.toggleViews, + ref: function(e) { + return (t.icon = e); + } + }, + i.default.createElement(u.default, { + style: e.svg, + onMouseOver: this.showHighlight, + onMouseEnter: this.showHighlight, + onMouseOut: this.hideHighlight }) ) - )), - i.default.createElement( - 'div', - { style: e.wrap, className: 'flexbox-fix' }, - n, - i.default.createElement( - 'div', - { style: e.toggle }, - i.default.createElement( - 'div', - { - style: e.icon, - onClick: this.toggleViews, - ref: function(e) { - return (t.icon = e); - } - }, - i.default.createElement(u.default, { - style: e.svg, - onMouseOver: this.showHighlight, - onMouseEnter: this.showHighlight, - onMouseOut: this.hideHighlight - }) ) ) - ) - ); + ); + } } - } - ]), + ], + [ + { + key: 'getDerivedStateFromProps', + value: function(t, e) { + return 1 !== t.hsl.a && 'hex' === e.view + ? { view: 'rgb' } + : null; + } + } + ] + ), e ); })(i.default.Component)); - e.default = f; + (c.defaultProps = { view: 'hex' }), (e.default = c); }, function(t, e, n) { 'use strict'; @@ -138017,7 +137982,7 @@ object-assign if (-1 === t.message.indexOf('Illegal')) throw t; return { relevance: 0, illegal: !0, value: F(e, []) }; } - function j(t) { + function D(t) { var e = t[0], n = t.rule; return ( @@ -138038,7 +138003,7 @@ object-assign n.returnBegin ? 0 : e.length ); } - function D(t) { + function j(t) { var n = t[0], r = e.slice(t.index), i = (function t(e, n) { @@ -138083,8 +138048,8 @@ object-assign '' === a ) return (M += e.slice(r.index, r.index + 1)), 1; - if (((T = r), 'begin' === r.type)) return j(r); - if ('end' === r.type && void 0 !== (o = D(r))) return o; + if (((T = r), 'begin' === r.type)) return D(r); + if ('end' === r.type && void 0 !== (o = j(r))) return o; if ('illegal' === r.type && !n) throw i( 'Illegal lexeme "%s" for mode "%s"', @@ -141272,7 +141237,7 @@ object-assign function(t, e, n) { (t.exports = n(34)(!1)).push([ t.i, - 'body{margin:0}.dashboard-builder{width:100%;margin:0;height:100vh;position:relative;display:flex;justify-content:center;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;background:#f9f9f9;color:#000;overflow:hidden;box-sizing:border-box}.dashboard-builder.container{width:1200px;min-height:100vh;display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start;justify-content:flex-start;background:#f5f5f5}.dashboard-builder .dashboard{position:relative;width:100%;min-height:calc(100vh - 130px);padding:20px;box-sizing:border-box}.dashboard-builder .dashboard-container{width:100%;overflow:auto;padding-left:60px}.dashboard-builder .dashboard-container-viewer{width:100%;overflow:auto}.dashboard-builder .dashboard-container-viewer .dashboard-top-bar{width:100%;z-index:11}.dashboard-builder .dashboard-container-viewer .dashboard-top-bar .export-icon{margin:0 1rem}.dashboard-builder .dashboard-inner-container{background:#fdfdfd;margin:auto}.dashboard-builder .dashboard-title{height:60px;width:100%;position:relative;display:flex;align-items:center;justify-content:space-between;padding:.5rem}.dashboard-builder .dashboard-title input{border:0;background:inherit;width:100%;font-size:30px;outline:none;padding:5px 5px 5px 0}.dashboard-builder .dashboard-title .title{padding:20px}.dashboard-builder .dashboard-title a{text-decoration:none}.dashboard-builder .dashboard-top-bar{height:50px;width:100%;background:#f9f9f9;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;position:sticky;top:0;left:0;z-index:8}.dashboard-builder .dashboard-top-bar .share{position:relative}.dashboard-builder .dashboard-top-bar .embed,.dashboard-builder .dashboard-top-bar .share{padding:10px;cursor:pointer}.dashboard-builder .dashboard-list-item{width:20%;min-width:180px;height:200px;padding:10px;position:relative}.dashboard-builder .dashboard-list-item:hover>.dashboard-list-item-buttons{visibility:visible}.dashboard-builder .dashboard-list-item-box{background:#fff;display:flex;justify-content:center;align-items:center;border:1px solid #eee;border-radius:5px;width:100%;height:100%;transition:box-shadow .3s;color:#000;padding:10px;text-align:center}.dashboard-builder .dashboard-list-item-box:hover{box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23)}.dashboard-builder .dashboard-list-item-box time{position:absolute;bottom:15px;left:20px;color:#aaa;font-size:12px}.dashboard-builder .dashboard-list-item-buttons{position:absolute;top:15px;right:15px;cursor:pointer;visibility:hidden}.dashboard-builder .dashboard-saved-message{position:absolute;top:.5rem;left:45%;padding:.5rem 1rem;border-radius:5px;background:#333;color:#fff;font-size:.85rem;z-index:10}.dashboard-builder .dashboard img{width:100%;height:100%}.dashboard-builder .toolbar{position:absolute;left:0;top:0;width:60px;height:100%;z-index:9}.dashboard-builder .toolbar-bar{width:100%;height:100%;position:relative;z-index:6;border-right:1px solid #929191;padding:20px;background:#2f97b9;color:#fff;cursor:pointer}.dashboard-builder .toolbar-bar h3{transform:translateY(100%) rotate(-90deg);transform-origin:0 0;white-space:nowrap;overflow:hidden;position:absolute;top:110px;left:15px;color:#fff}.dashboard-builder .toolbar-container{position:absolute;left:-135px;height:100%;border-right:1px solid #929191;background:#fff;box-shadow:3px 3px 6px #eee;border-right:0;overflow-y:auto;transition:left .25s ease-out}.dashboard-builder .toolbar-hidden{width:90px;display:flex;flex-direction:row;flex-wrap:wrap;padding:10px 10px 10px 20px}.dashboard-builder .toolbar-hidden>h4{font-size:.7rem;width:100%;margin:2rem 0 .5rem;font-weight:400;text-transform:uppercase}.dashboard-builder .toolbar-hidden>h4:first-of-type{margin-top:1rem}.dashboard-builder .toolbar-hidden p{cursor:pointer;z-index:5;margin:0;padding:5px;width:50px;height:50px;display:flex;align-items:center;justify-content:center;background:#fff}.dashboard-builder .toolbar-hidden .metric-chart-icon{font-size:20px;font-weight:600}.dashboard-builder .toolbar-visible{left:60px}.dashboard-builder .burger-icon{padding:0 20px;cursor:pointer;position:relative}.dashboard-builder .burger-icon .fa-bars{color:#2f97b9}.dashboard-builder .modal{display:block;position:absolute;background:#fff;border:1px solid #eee;border-radius:5px;z-index:10;top:0;left:20px;right:auto;bottom:auto;font-size:14px;width:250px;box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23)}.dashboard-builder .modal-header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:15px;border-bottom:1px solid #eee;font-size:17px}.dashboard-builder .modal-header .svg-inline--fa{cursor:pointer}.dashboard-builder .modal .dashboards-filter{padding:.25rem 1rem;border-bottom:1px solid #eee;display:flex;justify-content:space-between}.dashboard-builder .modal .dashboards-filter input{font-size:14px}.dashboard-builder .modal-body{padding:15px;max-height:300px;overflow:auto}.dashboard-builder .modal-body .item{padding:1rem;border-bottom:1px solid #eee;display:flex;flex-direction:column}.dashboard-builder .modal-body .item:hover{background:#f3f3f3}.dashboard-builder .modal-body .item .time{color:#aaa;font-size:12px}.dashboard-builder .modal-body .active{background:#f9f9f9}.dashboard-builder .modal-body .active .fa-angle-double-right{color:#2f97b9;padding-right:5px}.dashboard-builder .modal-body .modal-input{padding:8px 4px;margin-bottom:.5em;width:100%}.dashboard-builder .modal-body .prism{margin-bottom:40px;white-space:pre-wrap}.dashboard-builder .modal-button{border-radius:5px;padding:5px 15px;cursor:pointer;color:#fff;background:#2f97b9;border:none;font-size:14px}.dashboard-builder .modal-button .svg-inline--fa{margin-right:.25rem}.dashboard-builder .modal-footer{padding:10px}.dashboard-builder .modal-cover{width:100%;height:100%;opacity:.4;background:#000;position:absolute;top:0;left:0;z-index:9}.dashboard-builder .modal.share-dashboard{width:500px;top:50px;left:50%;transform:translateX(-50%)}.dashboard-builder .modal.embed-dashboard{width:75%;max-width:700px;top:50%;left:50%;transform:translate(-50%,-50%)}.dashboard-builder .modal.embed-dashboard .modal-button{position:fixed;bottom:15px;left:15px}.dashboard-builder .editor-dashboard-switch .modal-body{padding:0}.dashboard-builder .paragraph{padding:0 10px;overflow:hidden;width:100%}.dashboard-builder .paragraph p{margin:0}.dashboard-builder .chart-container{background:#fff;justify-content:center;align-items:center;position:absolute;border-radius:5px;display:flex;flex-direction:column;transition:box-shadow .3s;z-index:1}.dashboard-builder .chart-container:hover{box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23);z-index:7}.dashboard-builder .chart-container:hover .config-buttons,.dashboard-builder .chart-container:hover .resizers{visibility:visible}.dashboard-builder .chart-container img{border-radius:5px}.dashboard-builder .chart-container>.keen-dataviz{overflow:hidden;width:100%;margin-top:0;border:1px solid #eee}.dashboard-builder .chart-container .chart-title{height:30px;width:100%;border-bottom:0;display:flex;align-items:left;justify-content:left;z-index:3}.dashboard-builder .chart-container .chart-title input{border:0;background:inherit;outline:none;width:100%;text-align:left;font-size:14px;color:#222}.dashboard-builder .chart-container .chart-subtitle{height:25px;width:100%;border-bottom:0;display:flex;align-items:left;justify-content:left;z-index:3}.dashboard-builder .chart-container .chart-subtitle input{border:0;background:inherit;outline:none;width:100%;text-align:left;font-size:14px;color:#6f6f6f}.dashboard-builder .chart-container-viewer{background:#fff;justify-content:center;align-items:center;border-radius:5px;display:flex;flex-direction:column;transition:box-shadow .3s;z-index:1;position:relative}.dashboard-builder .chart-container-viewer .c3-tooltip-container{z-index:9}.dashboard-builder .chart-container-viewer:hover .explorer-button{visibility:visible}.dashboard-builder .chart-container-viewer img{border-radius:5px}.dashboard-builder .chart-container-viewer>.keen-dataviz{overflow:hidden;width:100%;margin-top:0;border:1px solid #eee}.dashboard-builder .chart-container-viewer .chart-title{height:30px;width:100%;border-bottom:0;display:flex;align-items:left;justify-content:left;z-index:3}.dashboard-builder .chart-container-viewer .chart-title input{border:0;background:inherit;outline:none;width:100%;text-align:left;font-size:14px;color:#222}.dashboard-builder .chart-container-viewer .chart-subtitle{height:25px;width:100%;border-bottom:0;display:flex;align-items:left;justify-content:left;z-index:3}.dashboard-builder .chart-container-viewer .chart-subtitle input{border:0;background:inherit;outline:none;width:100%;text-align:left;font-size:14px;color:#6f6f6f}.dashboard-builder .config-buttons{position:absolute;top:-1px;right:-35px;display:flex;flex-direction:column;visibility:hidden;padding-left:5px;opacity:1}.dashboard-builder .config-buttons div{cursor:pointer;width:30px;height:30px;background:#000;color:#fff;font-size:15px;box-sizing:border-box;margin-bottom:2px;display:flex;align-items:center;justify-content:center;opacity:.7;border-radius:3px}.dashboard-builder .config-buttons div:hover{background:#424242}.dashboard-builder .explorer-button{position:absolute;z-index:4;top:2px;right:2px;cursor:pointer;width:30px;height:30px;background:#000;color:#fff;box-sizing:border-box;opacity:.7;border-radius:3px;padding-left:8px;padding-top:2px;visibility:hidden}.dashboard-builder .explorer-button a{color:#fff}.dashboard-builder .explorer-button:hover{background:#424242}.dashboard-builder .resizers{position:absolute;height:100%;width:100%;border:1px dashed #7c7c7c;border-radius:5px;visibility:hidden}.dashboard-builder .resizers div{position:absolute}.dashboard-builder .top-left{left:0;top:0;cursor:nwse-resize;width:10px;height:10px;z-index:4}.dashboard-builder .top-right{right:0;top:0;cursor:nesw-resize;width:10px;height:10px;z-index:4}.dashboard-builder .bottom-left{left:0;bottom:0;cursor:nesw-resize;width:10px;height:10px;z-index:4}.dashboard-builder .bottom-right{right:1px;bottom:1px;cursor:nwse-resize;width:12px;height:12px;z-index:4;border-style:solid;border-width:0 0 12px 12px;border-color:transparent transparent #7c7c7c}.dashboard-builder .left{left:0}.dashboard-builder .left,.dashboard-builder .right{top:0;height:100%;width:5px;cursor:ew-resize;z-index:3}.dashboard-builder .right{right:0}.dashboard-builder .top{top:0}.dashboard-builder .bottom,.dashboard-builder .top{left:0;width:100%;height:5px;cursor:ns-resize;z-index:3}.dashboard-builder .bottom{bottom:0}.dashboard-builder .keen-dataviz-table th{z-index:0}.dashboard-builder .chart-draggable{position:absolute;left:10px;width:calc(100% - 20px);height:calc(100% - 20px);z-index:2;cursor:move}.dashboard-builder .search{width:65%;height:100%;display:flex;flex-direction:row;font-size:15px;align-items:center}.dashboard-builder .search svg{margin-right:10px}.dashboard-builder .search input{border:0;background:inherit;width:100%;height:100%;outline:none;font-size:20px}.dashboard-builder .sorting-select{width:200px;margin-top:15px}.dashboard-builder .screen-resize-icon{position:absolute;left:48%;width:100px;display:flex;justify-content:space-between;color:hsla(0,0%,44%,.65882);align-items:center}.dashboard-builder .screen-resize-icon svg{cursor:pointer}.dashboard-builder .screen-resize-icon svg:hover{color:#000}.dashboard-builder .save-dashboard-button{border-radius:5px;padding:5px;cursor:pointer;transition:.3s;width:80px;height:31px;margin-right:20px;margin-left:20px;text-align:center;color:#fff;background:#2f97b9;text-transform:uppercase}.dashboard-builder .save-dashboard-button svg{margin-right:.25rem}.dashboard-builder .settings{width:350px;background:#f3f7f9}.dashboard-builder .settings h4{margin-top:2rem;margin-bottom:.5rem;font-weight:400}.dashboard-builder .settings-input{color:#333;font-size:14px;height:38px}.dashboard-builder .settings-input,.dashboard-builder .settings-textarea{width:100%;border-radius:4px;padding:9px;border:1px solid #ccc;outline:none}.dashboard-builder .settings-textarea{color:gray;font-size:16px;height:50%}.dashboard-builder .settings-select>div{width:100%}.dashboard-builder .settings-chart{padding:0}.dashboard-builder .settings-chart-saved-query{padding:1rem}.dashboard-builder .settings-chart #dashboard-builder-explorer .keen-explorer .panel-main{min-width:0;max-width:330px;box-shadow:none}.dashboard-builder .settings-chart .keen-theme-builder{padding:0}.dashboard-builder .settings-chart .keen-theme-builder .builder__header{display:none}.dashboard-builder .settings-chart h4:first-child{margin-top:0}.dashboard-builder .react-tabs__tab{width:50%;padding:10px;text-align:center;cursor:pointer;color:#fff;outline:none;border:0;background:#2f97b9}.dashboard-builder .react-tabs__tab:first-of-type{border-right:none}.dashboard-builder .react-tabs__tab--selected{color:#000;border-bottom:none;background:#fff;border-top:1px solid #eee}.dashboard-builder .react-tabs__tab-list{display:flex;flex-direction:row;list-style:none;justify-content:space-between;padding:0;margin-bottom:0}.dashboard-builder .react-tabs__tab-panel{border:0}.dashboard-builder .react-tabs__tab-panel--selected{padding:10px 20px 20px;border:0;visibility:visible;height:calc(100vh - 40px);overflow-y:auto}.dashboard-builder .react-tabs__tab-panel--selected .keen-theme-builder{padding:0}.dashboard-builder .settings-container{min-width:350px;min-height:100%;background:#fff;border-left:1px solid #eee;position:relative;background:#f3f7f9;overflow:auto}.dashboard-builder .settings-container .color-palette__item .color-picker__popover{left:auto;right:0}.dashboard-builder .settings-container .color-palette__item:nth-child(5n+1) .color-picker__popover,.dashboard-builder .settings-container .color-palette__item:nth-child(5n+2) .color-picker__popover{left:0;right:auto}.dashboard-builder .settings-container .color-palette__item:nth-child(5n+3) .color-picker__popover{left:-100%;right:auto}.dashboard-builder .settings-container .color-palette__item:nth-child(5n+4) .color-picker__popover{left:auto;right:-100%}.dashboard-builder .new-dashboard-button{border-radius:5px;padding:1rem;cursor:pointer;color:#fff;background:#2f97b9;text-align:left;white-space:nowrap;display:flex;align-items:center}.dashboard-builder .new-dashboard-button:hover{color:#fff;background:#2f97b9}.dashboard-builder .new-dashboard-button svg{margin-right:.5rem}.dashboard-builder .container{width:1200px;background:#f5f5f5;min-height:100vh;display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start}.dashboard-builder .top-toolbar{flex:1 100%;padding:20px;display:flex;flex-direction:row;justify-content:space-between;width:100%;border-bottom:1px solid #cfcfcf}.dashboard-builder .message{width:100%;text-align:center;padding:20px}.dashboard-builder .new-chart-info,.dashboard-builder .settings-loading{position:absolute;width:100%;height:100%;display:flex;justify-content:center;align-items:center;background:hsla(0,0%,98%,.9);border-bottom-left-radius:5px;border-bottom-right-radius:5px}.dashboard-builder .settings-loading{top:0;left:0}.dashboard-builder .error-message{z-index:1;background:#fff;padding:20px;text-align:center;color:red;border:1px solid red;border-radius:5px}.dashboard-builder .dry-run-message{position:absolute;left:0;bottom:0;padding:1rem;background:hsla(0,0%,44%,.65882);color:#fff;border-radius:0 1rem 0 0}.dashboard-builder .select-palette-button select{margin-right:20px;border-radius:5px;padding:8px;width:100px;height:31px;background:#fff}.dashboard-builder .preview{padding:10px}.dashboard-builder .preview a{color:#000}.dashboard-builder .embed-icon:hover,.dashboard-builder .preview:hover a,.dashboard-builder .share-icon:hover{color:#414141}.dashboard-builder .quill{height:70%}.dashboard-builder .edit-dashboard-button{border-radius:5px;padding:5px 10px;cursor:pointer;width:fit-content;text-align:center;color:#fff;background:#2f97b9;text-decoration:none;flex-shrink:0;margin:0 0 0 .5em}.dashboard-builder .edit-dashboard-button__link{display:block;color:#fff;text-decoration:none}.dashboard-builder .edit-dashboard-button__link:hover{color:#fff;text-decoration:none}.dashboard-builder .big-icon{font-size:50px;color:#eee}.dashboard-builder .loading{font-size:50px;animation:a 1s ease infinite;z-index:12}.dashboard-builder .settings-theme-builder,.dashboard-builder .settings-theme-builder .keen-theme-builder{padding:0}.dashboard-builder .settings-theme-builder .keen-theme-builder .builder__header{display:none}.dashboard-builder .switch-dashboard{width:400px;z-index:9}.dashboard-builder .__react_component_tooltip{padding:3px 5px}.dashboard-builder .keen-theme-builder{background-color:#fff}.dashboard-builder .keen-theme-builder .color-picker__popover{z-index:9}.dashboard-builder .keen-theme-builder .builder__header{font-size:1rem}.dashboard-builder .heatmap-container .keen-dataviz-rendering-vertical{height:calc(100% - 50px)}.dashboard-builder .keen-dataviz .rangeable-container{margin:2rem auto;width:75%}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-progress,.dashboard-builder .keen-dataviz .rangeable-container .rangeable-track{height:4px}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-handle{width:16px;height:16px;border-width:4px}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-tooltip{border-radius:0;font-weight:400;padding:3px 9px}.dashboard-builder .c3-circle{fill:currentColor}@media only screen and (max-width:1300px){.dashboard-builder .dashboard{min-height:calc(100vh - 130px)}}@media only screen and (min-width:1800px){.dashboard-builder .toolbar-bar{visibility:hidden}.dashboard-builder .toolbar-container{left:0}.dashboard-builder .dashboard-container{padding-left:90px}}.dashboard-builder .export-icon{cursor:pointer}.dashboard-builder .switcher{margin-bottom:.5rem;display:block;position:relative;overflow:hidden}.dashboard-builder .switcher__input:checked~.switcher__toggle{border-color:#3ed08e;background-color:#dcf9eb}.dashboard-builder .switcher__input:checked~.switcher__toggle .switcher__switch{right:2px;background-color:#3ed08e}.dashboard-builder .switcher__input:checked~.switcher__value .on{display:block}.dashboard-builder .switcher__input:checked~.switcher__value .off{display:none}.dashboard-builder .switcher__toggle{position:relative;width:36px;height:20px;margin-right:.25rem;margin-left:.5rem;border:1px solid #ccc;background-color:#fff;border-radius:10px;display:inline-block}.dashboard-builder .switcher__switch{position:absolute;top:2px;bottom:0;right:18px;width:14px;height:14px;margin:0;background:#ccc;border-radius:50%;flex-shrink:0;transition:right .15s ease-in-out,background-color .15s ease-in-out}.dashboard-builder .switcher__title{font-weight:800}.dashboard-builder .switcher__label{display:flex;align-items:center;cursor:pointer}.dashboard-builder .switcher__input{position:absolute;left:-999px}.dashboard-builder .switcher__value{margin-left:.25rem;color:#b3b5b6}.dashboard-builder .switcher__value .on{display:none}.dashboard-builder .switcher__value .off{display:block}.dashboard-builder .accordion__item__heading{padding:.5rem 1rem;border-top:1px solid #f3f3f3;border-bottom:2px solid hsla(0,0%,80%,.2);background-color:#fff;cursor:pointer}.dashboard-builder .accordion__item__heading .heading__icon{margin-right:1rem;transition:transform .15s ease-in-out}.dashboard-builder .accordion__item__content{padding:1rem;animation:b .35s ease-in}.dashboard-builder .accordion__item.open .accordion__item__heading{background-color:#d9effa}.dashboard-builder .accordion__item.open .accordion__item__heading .heading__icon{transform:rotate(90deg)}@keyframes a{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes b{0%{opacity:0}to{opacity:1}}', + 'body{margin:0}.dashboard-builder{width:100%;margin:0;height:100vh;position:relative;display:flex;justify-content:center;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;background:#f9f9f9;color:#000;overflow:hidden;box-sizing:border-box}.dashboard-builder.container{width:1200px;min-height:100vh;display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start;justify-content:flex-start;background:#f5f5f5}.dashboard-builder .dashboard{position:relative;width:100%;min-height:calc(100vh - 130px);padding:20px;box-sizing:border-box}.dashboard-builder .dashboard-container{width:100%;overflow:auto;padding-left:60px}.dashboard-builder .dashboard-container-viewer{width:100%;overflow:auto}.dashboard-builder .dashboard-container-viewer .dashboard-top-bar{width:100%;z-index:11}.dashboard-builder .dashboard-container-viewer .dashboard-top-bar .export-icon{margin:0 1rem}.dashboard-builder .dashboard-inner-container{background:#fdfdfd;margin:auto}.dashboard-builder .dashboard-title{height:60px;width:100%;position:relative;display:flex;align-items:center;justify-content:space-between;padding:.5rem}.dashboard-builder .dashboard-title input{border:0;background:inherit;width:100%;font-size:30px;outline:none;padding:5px 5px 5px 0}.dashboard-builder .dashboard-title .title{padding:20px}.dashboard-builder .dashboard-title a{text-decoration:none}.dashboard-builder .dashboard-top-bar{height:50px;width:100%;background:#f9f9f9;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;position:sticky;top:0;left:0;z-index:8}.dashboard-builder .dashboard-top-bar .share{position:relative}.dashboard-builder .dashboard-top-bar .embed,.dashboard-builder .dashboard-top-bar .share{padding:10px;cursor:pointer}.dashboard-builder .dashboard-list-item{width:20%;min-width:180px;height:200px;padding:10px;position:relative}.dashboard-builder .dashboard-list-item:hover>.dashboard-list-item-buttons{visibility:visible}.dashboard-builder .dashboard-list-item-box{background:#fff;display:flex;justify-content:center;align-items:center;border:1px solid #eee;border-radius:5px;width:100%;height:100%;transition:box-shadow .3s;color:#000;padding:10px;text-align:center}.dashboard-builder .dashboard-list-item-box:hover{box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23)}.dashboard-builder .dashboard-list-item-box time{position:absolute;bottom:15px;left:20px;color:#aaa;font-size:12px}.dashboard-builder .dashboard-list-item-buttons{position:absolute;top:15px;right:15px;cursor:pointer;visibility:hidden}.dashboard-builder .dashboard-saved-message{position:absolute;top:.5rem;left:45%;padding:.5rem 1rem;border-radius:5px;background:#333;color:#fff;font-size:.85rem;z-index:10}.dashboard-builder .dashboard img{width:100%;height:100%}.dashboard-builder .toolbar{position:absolute;left:0;top:0;width:60px;height:100%;z-index:9}.dashboard-builder .toolbar-bar{width:100%;height:100%;position:relative;z-index:6;border-right:1px solid #929191;padding:20px;background:#2f97b9;color:#fff;cursor:pointer}.dashboard-builder .toolbar-bar h3{transform:translateY(100%) rotate(-90deg);transform-origin:0 0;white-space:nowrap;overflow:hidden;position:absolute;top:110px;left:15px;color:#fff}.dashboard-builder .toolbar-container{position:absolute;left:-135px;height:100%;border-right:1px solid #929191;background:#fff;box-shadow:3px 3px 6px #eee;border-right:0;overflow-y:auto;transition:left .25s ease-out}.dashboard-builder .toolbar-hidden{width:90px;display:flex;flex-direction:row;flex-wrap:wrap;padding:10px 10px 10px 20px}.dashboard-builder .toolbar-hidden>h4{font-size:.7rem;width:100%;margin:2rem 0 .5rem;font-weight:400;text-transform:uppercase}.dashboard-builder .toolbar-hidden>h4:first-of-type{margin-top:1rem}.dashboard-builder .toolbar-hidden p{cursor:pointer;z-index:5;margin:0;padding:5px;width:50px;height:50px;display:flex;align-items:center;justify-content:center;background:#fff}.dashboard-builder .toolbar-hidden .metric-chart-icon{font-size:20px;font-weight:600}.dashboard-builder .toolbar-visible{left:60px}.dashboard-builder .burger-icon{padding:0 20px;cursor:pointer;position:relative}.dashboard-builder .burger-icon .fa-bars{color:#2f97b9}.dashboard-builder .modal{display:block;position:absolute;background:#fff;border:1px solid #eee;border-radius:5px;z-index:10;top:0;left:20px;right:auto;bottom:auto;font-size:14px;width:250px;box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23)}.dashboard-builder .modal-header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:15px;border-bottom:1px solid #eee;font-size:17px}.dashboard-builder .modal-header .svg-inline--fa{cursor:pointer}.dashboard-builder .modal .dashboards-filter{padding:.25rem 1rem;border-bottom:1px solid #eee;display:flex;justify-content:space-between}.dashboard-builder .modal .dashboards-filter input{font-size:14px}.dashboard-builder .modal-body{padding:15px;max-height:300px;overflow:auto}.dashboard-builder .modal-body .item{padding:1rem;border-bottom:1px solid #eee;display:flex;flex-direction:column}.dashboard-builder .modal-body .item:hover{background:#f3f3f3}.dashboard-builder .modal-body .item .time{color:#aaa;font-size:12px}.dashboard-builder .modal-body .active{background:#f9f9f9}.dashboard-builder .modal-body .active .fa-angle-double-right{color:#2f97b9;padding-right:5px}.dashboard-builder .modal-body .modal-input{padding:8px 4px;margin-bottom:.5em;width:100%}.dashboard-builder .modal-body .prism{margin-bottom:40px;white-space:pre-wrap}.dashboard-builder .modal-button{border-radius:5px;padding:5px 15px;cursor:pointer;color:#fff;background:#2f97b9;border:none;font-size:14px}.dashboard-builder .modal-button .svg-inline--fa{margin-right:.25rem}.dashboard-builder .modal-footer{padding:10px}.dashboard-builder .modal-cover{width:100%;height:100%;opacity:.4;background:#000;position:absolute;top:0;left:0;z-index:9}.dashboard-builder .modal.share-dashboard{width:500px;top:50px;left:50%;transform:translateX(-50%)}.dashboard-builder .modal.embed-dashboard{width:75%;max-width:700px;top:50%;left:50%;transform:translate(-50%,-50%)}.dashboard-builder .modal.embed-dashboard .modal-button{position:fixed;bottom:15px;left:15px}.dashboard-builder .editor-dashboard-switch .modal-body{padding:0}.dashboard-builder .paragraph{padding:0 10px;overflow:hidden;width:100%}.dashboard-builder .paragraph p{margin:0}.dashboard-builder .chart-container{background:#fff;justify-content:center;align-items:center;position:absolute;border-radius:5px;display:flex;flex-direction:column;transition:box-shadow .3s;z-index:1}.dashboard-builder .chart-container:hover{box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23);z-index:7}.dashboard-builder .chart-container:hover .config-buttons,.dashboard-builder .chart-container:hover .resizers{visibility:visible}.dashboard-builder .chart-container img{border-radius:5px}.dashboard-builder .chart-container>.keen-dataviz{overflow:auto;width:100%;margin-top:0;border:1px solid #eee}.dashboard-builder .chart-container .chart-title{height:30px;width:100%;border-bottom:0;display:flex;align-items:left;justify-content:left;z-index:3}.dashboard-builder .chart-container .chart-title input{border:0;background:inherit;outline:none;width:100%;text-align:left;font-size:14px;color:#222}.dashboard-builder .chart-container .chart-subtitle{height:25px;width:100%;border-bottom:0;display:flex;align-items:left;justify-content:left;z-index:3}.dashboard-builder .chart-container .chart-subtitle input{border:0;background:inherit;outline:none;width:100%;text-align:left;font-size:14px;color:#6f6f6f}.dashboard-builder .chart-container-viewer{background:#fff;justify-content:center;align-items:center;border-radius:5px;display:flex;flex-direction:column;transition:box-shadow .3s;z-index:1;position:relative}.dashboard-builder .chart-container-viewer .c3-tooltip-container{z-index:9}.dashboard-builder .chart-container-viewer:hover .explorer-button{visibility:visible}.dashboard-builder .chart-container-viewer img{border-radius:5px}.dashboard-builder .chart-container-viewer>.keen-dataviz{overflow:auto;width:100%;margin-top:0;border:1px solid #eee}.dashboard-builder .chart-container-viewer .chart-title{height:30px;width:100%;border-bottom:0;display:flex;align-items:left;justify-content:left;z-index:3}.dashboard-builder .chart-container-viewer .chart-title input{border:0;background:inherit;outline:none;width:100%;text-align:left;font-size:14px;color:#222}.dashboard-builder .chart-container-viewer .chart-subtitle{height:25px;width:100%;border-bottom:0;display:flex;align-items:left;justify-content:left;z-index:3}.dashboard-builder .chart-container-viewer .chart-subtitle input{border:0;background:inherit;outline:none;width:100%;text-align:left;font-size:14px;color:#6f6f6f}.dashboard-builder .config-buttons{position:absolute;top:-1px;right:-35px;display:flex;flex-direction:column;visibility:hidden;padding-left:5px;opacity:1}.dashboard-builder .config-buttons div{cursor:pointer;width:30px;height:30px;background:#000;color:#fff;font-size:15px;box-sizing:border-box;margin-bottom:2px;display:flex;align-items:center;justify-content:center;opacity:.7;border-radius:3px}.dashboard-builder .config-buttons div:hover{background:#424242}.dashboard-builder .explorer-button{position:absolute;z-index:4;top:2px;right:2px;cursor:pointer;width:30px;height:30px;background:#000;color:#fff;box-sizing:border-box;opacity:.7;border-radius:3px;padding-left:8px;padding-top:2px;visibility:hidden}.dashboard-builder .explorer-button a{color:#fff}.dashboard-builder .explorer-button:hover{background:#424242}.dashboard-builder .resizers{position:absolute;height:100%;width:100%;border:1px dashed #7c7c7c;border-radius:5px;visibility:hidden}.dashboard-builder .resizers div{position:absolute}.dashboard-builder .top-left{left:0;top:0;cursor:nwse-resize;width:10px;height:10px;z-index:4}.dashboard-builder .top-right{right:0;top:0;cursor:nesw-resize;width:10px;height:10px;z-index:4}.dashboard-builder .bottom-left{left:0;bottom:0;cursor:nesw-resize;width:10px;height:10px;z-index:4}.dashboard-builder .bottom-right{right:1px;bottom:1px;cursor:nwse-resize;width:12px;height:12px;z-index:4;border-style:solid;border-width:0 0 12px 12px;border-color:transparent transparent #7c7c7c}.dashboard-builder .left{left:0}.dashboard-builder .left,.dashboard-builder .right{top:0;height:100%;width:5px;cursor:ew-resize;z-index:3}.dashboard-builder .right{right:0}.dashboard-builder .top{top:0}.dashboard-builder .bottom,.dashboard-builder .top{left:0;width:100%;height:5px;cursor:ns-resize;z-index:3}.dashboard-builder .bottom{bottom:0}.dashboard-builder .keen-dataviz-table th{z-index:0}.dashboard-builder .chart-draggable{position:absolute;left:10px;width:calc(100% - 20px);height:calc(100% - 20px);z-index:2;cursor:move}.dashboard-builder .search{width:65%;height:100%;display:flex;flex-direction:row;font-size:15px;align-items:center}.dashboard-builder .search svg{margin-right:10px}.dashboard-builder .search input{border:0;background:inherit;width:100%;height:100%;outline:none;font-size:20px}.dashboard-builder .sorting-select{width:200px;margin-top:15px}.dashboard-builder .screen-resize-icon{position:absolute;left:48%;width:100px;display:flex;justify-content:space-between;color:hsla(0,0%,44%,.65882);align-items:center}.dashboard-builder .screen-resize-icon svg{cursor:pointer}.dashboard-builder .screen-resize-icon svg:hover{color:#000}.dashboard-builder .save-dashboard-button{border-radius:5px;padding:5px;cursor:pointer;transition:.3s;width:80px;height:31px;margin-right:20px;margin-left:20px;text-align:center;color:#fff;background:#2f97b9;text-transform:uppercase}.dashboard-builder .save-dashboard-button svg{margin-right:.25rem}.dashboard-builder .settings{width:350px;background:#f3f7f9}.dashboard-builder .settings h4{margin-top:2rem;margin-bottom:.5rem;font-weight:400}.dashboard-builder .settings-input{color:#333;font-size:14px;height:38px}.dashboard-builder .settings-input,.dashboard-builder .settings-textarea{width:100%;border-radius:4px;padding:9px;border:1px solid #ccc;outline:none}.dashboard-builder .settings-textarea{color:gray;font-size:16px;height:50%}.dashboard-builder .settings-select>div{width:100%}.dashboard-builder .settings-chart{padding:0}.dashboard-builder .settings-chart-saved-query{padding:1rem}.dashboard-builder .settings-chart #dashboard-builder-explorer .keen-explorer .panel-main{min-width:0;max-width:330px;box-shadow:none}.dashboard-builder .settings-chart .keen-theme-builder{padding:0}.dashboard-builder .settings-chart .keen-theme-builder .builder__header{display:none}.dashboard-builder .settings-chart h4:first-child{margin-top:0}.dashboard-builder .react-tabs__tab{width:50%;padding:10px;text-align:center;cursor:pointer;color:#fff;outline:none;border:0;background:#2f97b9}.dashboard-builder .react-tabs__tab:first-of-type{border-right:none}.dashboard-builder .react-tabs__tab--selected{color:#000;border-bottom:none;background:#fff;border-top:1px solid #eee}.dashboard-builder .react-tabs__tab-list{display:flex;flex-direction:row;list-style:none;justify-content:space-between;padding:0;margin-bottom:0}.dashboard-builder .react-tabs__tab-panel{border:0}.dashboard-builder .react-tabs__tab-panel--selected{padding:10px 20px 20px;border:0;visibility:visible;height:calc(100vh - 40px);overflow-y:auto}.dashboard-builder .react-tabs__tab-panel--selected .keen-theme-builder{padding:0}.dashboard-builder .settings-container{min-width:350px;min-height:100%;background:#fff;border-left:1px solid #eee;position:relative;background:#f3f7f9;overflow:auto}.dashboard-builder .settings-container .color-palette__item .color-picker__popover{left:auto;right:0}.dashboard-builder .settings-container .color-palette__item:nth-child(5n+1) .color-picker__popover,.dashboard-builder .settings-container .color-palette__item:nth-child(5n+2) .color-picker__popover{left:0;right:auto}.dashboard-builder .settings-container .color-palette__item:nth-child(5n+3) .color-picker__popover{left:-100%;right:auto}.dashboard-builder .settings-container .color-palette__item:nth-child(5n+4) .color-picker__popover{left:auto;right:-100%}.dashboard-builder .new-dashboard-button{border-radius:5px;padding:1rem;cursor:pointer;color:#fff;background:#2f97b9;text-align:left;white-space:nowrap;display:flex;align-items:center}.dashboard-builder .new-dashboard-button:hover{color:#fff;background:#2f97b9}.dashboard-builder .new-dashboard-button svg{margin-right:.5rem}.dashboard-builder .container{width:1200px;background:#f5f5f5;min-height:100vh;display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start}.dashboard-builder .top-toolbar{flex:1 100%;padding:20px;display:flex;flex-direction:row;justify-content:space-between;width:100%;border-bottom:1px solid #cfcfcf}.dashboard-builder .message{width:100%;text-align:center;padding:20px}.dashboard-builder .new-chart-info,.dashboard-builder .settings-loading{position:absolute;width:100%;height:100%;display:flex;justify-content:center;align-items:center;background:hsla(0,0%,98%,.9);border-bottom-left-radius:5px;border-bottom-right-radius:5px}.dashboard-builder .settings-loading{top:0;left:0}.dashboard-builder .error-message{z-index:1;background:#fff;padding:20px;text-align:center;color:red;border:1px solid red;border-radius:5px}.dashboard-builder .dry-run-message{position:absolute;left:0;bottom:0;padding:1rem;background:hsla(0,0%,44%,.65882);color:#fff;border-radius:0 1rem 0 0}.dashboard-builder .select-palette-button select{margin-right:20px;border-radius:5px;padding:8px;width:100px;height:31px;background:#fff}.dashboard-builder .preview{padding:10px}.dashboard-builder .preview a{color:#000}.dashboard-builder .embed-icon:hover,.dashboard-builder .preview:hover a,.dashboard-builder .share-icon:hover{color:#414141}.dashboard-builder .quill{height:70%}.dashboard-builder .edit-dashboard-button{border-radius:5px;padding:5px 10px;cursor:pointer;width:fit-content;text-align:center;color:#fff;background:#2f97b9;text-decoration:none;flex-shrink:0;margin:0 0 0 .5em}.dashboard-builder .edit-dashboard-button__link{display:block;color:#fff;text-decoration:none}.dashboard-builder .edit-dashboard-button__link:hover{color:#fff;text-decoration:none}.dashboard-builder .big-icon{font-size:50px;color:#eee}.dashboard-builder .loading{font-size:50px;animation:a 1s ease infinite;z-index:12}.dashboard-builder .settings-theme-builder,.dashboard-builder .settings-theme-builder .keen-theme-builder{padding:0}.dashboard-builder .settings-theme-builder .keen-theme-builder .builder__header{display:none}.dashboard-builder .switch-dashboard{width:400px;z-index:9}.dashboard-builder .__react_component_tooltip{padding:3px 5px}.dashboard-builder .keen-theme-builder{background-color:#fff}.dashboard-builder .keen-theme-builder .color-picker__popover{z-index:9}.dashboard-builder .keen-theme-builder .builder__header{font-size:1rem}.dashboard-builder .heatmap-container .keen-dataviz-rendering-vertical{height:calc(100% - 50px)}.dashboard-builder .keen-dataviz .rangeable-container{margin:2rem auto;width:75%}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-progress,.dashboard-builder .keen-dataviz .rangeable-container .rangeable-track{height:4px}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-handle{width:16px;height:16px;border-width:4px}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-tooltip{border-radius:0;font-weight:400;padding:3px 9px}.dashboard-builder .c3-circle{fill:currentColor}@media only screen and (max-width:1300px){.dashboard-builder .dashboard{min-height:calc(100vh - 130px)}}@media only screen and (min-width:1800px){.dashboard-builder .toolbar-bar{visibility:hidden}.dashboard-builder .toolbar-container{left:0}.dashboard-builder .dashboard-container{padding-left:90px}}.dashboard-builder .export-icon{cursor:pointer}.dashboard-builder .switcher{margin-bottom:.5rem;display:block;position:relative;overflow:hidden}.dashboard-builder .switcher__input:checked~.switcher__toggle{border-color:#3ed08e;background-color:#dcf9eb}.dashboard-builder .switcher__input:checked~.switcher__toggle .switcher__switch{right:2px;background-color:#3ed08e}.dashboard-builder .switcher__input:checked~.switcher__value .on{display:block}.dashboard-builder .switcher__input:checked~.switcher__value .off{display:none}.dashboard-builder .switcher__toggle{position:relative;width:36px;height:20px;margin-right:.25rem;margin-left:.5rem;border:1px solid #ccc;background-color:#fff;border-radius:10px;display:inline-block}.dashboard-builder .switcher__switch{position:absolute;top:2px;bottom:0;right:18px;width:14px;height:14px;margin:0;background:#ccc;border-radius:50%;flex-shrink:0;transition:right .15s ease-in-out,background-color .15s ease-in-out}.dashboard-builder .switcher__title{font-weight:800}.dashboard-builder .switcher__label{display:flex;align-items:center;cursor:pointer}.dashboard-builder .switcher__input{position:absolute;left:-999px}.dashboard-builder .switcher__value{margin-left:.25rem;color:#b3b5b6}.dashboard-builder .switcher__value .on{display:none}.dashboard-builder .switcher__value .off{display:block}.dashboard-builder .accordion__item__heading{padding:.5rem 1rem;border-top:1px solid #f3f3f3;border-bottom:2px solid hsla(0,0%,80%,.2);background-color:#fff;cursor:pointer}.dashboard-builder .accordion__item__heading .heading__icon{margin-right:1rem;transition:transform .15s ease-in-out}.dashboard-builder .accordion__item__content{padding:1rem;animation:b .35s ease-in}.dashboard-builder .accordion__item.open .accordion__item__heading{background-color:#d9effa}.dashboard-builder .accordion__item.open .accordion__item__heading .heading__icon{transform:rotate(90deg)}@keyframes a{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes b{0%{opacity:0}to{opacity:1}}', '' ]); }, @@ -141587,7 +141552,7 @@ object-assign i ); } - function j() { + function D() { var t = null; var e = []; return { @@ -141633,7 +141598,7 @@ object-assign } }; } - var D = !( + var j = !( 'undefined' == typeof window || !window.document || !window.document.createElement @@ -141651,7 +141616,7 @@ object-assign } } function F(t) { - void 0 === t && {}, D || A(!1); + void 0 === t && {}, j || A(!1); var e, n = window.history, r = @@ -141684,7 +141649,7 @@ object-assign .toString(36) .substr(2, f); } - var g = j(); + var g = D(); function m(t) { Object(_.a)(B, t), (B.length = n.length), @@ -141834,7 +141799,7 @@ object-assign ); } function U(t) { - void 0 === t && (t = {}), D || A(!1); + void 0 === t && (t = {}), j || A(!1); var e = window.history, n = (window.navigator.userAgent.indexOf('Firefox'), t), r = n.getUserConfirmation, @@ -141849,7 +141814,7 @@ object-assign var t = c(G()); return s && (t = O(t, s)), L(t); } - var d = j(); + var d = D(); function h(t) { Object(_.a)(C, t), (C.length = e.length), @@ -142566,8 +142531,8 @@ object-assign }; var Mt = Pt, Lt = n(27), - jt = n.n(Lt), - Dt = [], + Dt = n.n(Lt), + jt = [], Rt = [null, null]; function zt(t, e) { var n = t[1]; @@ -142616,15 +142581,15 @@ object-assign 'forwardRef', 'context' ]); - jt()( + Dt()( void 0 === c, 'renderCountProp is removed. render counting is built into the latest React Dev Tools profiling extension' ), - jt()( + Dt()( !m, 'withRef is removed. To access the wrapped instance, use a ref on the connected component' ); - jt()( + Dt()( 'store' === p, "storeKey has been removed and does not do anything. To use a custom Redux store for specific components, create a custom React context with React.createContext(), and pass the context object to React Redux's Provider and specific components like: . You may also pass a {context : MyContext} option to connect" ); @@ -142675,7 +142640,7 @@ object-assign p = Object(s.useContext)(h), g = Boolean(n.store), m = Boolean(p) && Boolean(p.store); - jt()( + Dt()( g || m, 'Could not find "store" in the context of "' + r + @@ -142709,7 +142674,7 @@ object-assign }, [g, p, x] ), - k = Object(s.useReducer)(zt, Dt, Nt), + k = Object(s.useReducer)(zt, jt, Nt), A = k[0][0], T = k[1]; if (A && A.error) throw A.error; @@ -142772,7 +142737,7 @@ object-assign }, [v, x, y] ); - var j = Object(s.useMemo)( + var D = Object(s.useMemo)( function() { return u.a.createElement(e, Object(_.a)({}, L, { ref: l })); }, @@ -142780,9 +142745,9 @@ object-assign ); return Object(s.useMemo)( function() { - return d ? u.a.createElement(h.Provider, { value: E }, j) : j; + return d ? u.a.createElement(h.Provider, { value: E }, D) : D; }, - [h, j, E] + [h, D, E] ); } var g = l ? u.a.memo(h) : h; @@ -143088,7 +143053,7 @@ object-assign function pe() { var t = Object(s.useContext)(Et); return ( - jt()( + Dt()( t, 'could not find react-redux context value; please ensure the component is wrapped in a ' ), @@ -143151,7 +143116,7 @@ object-assign Pe = n.n(Oe), Me = n(11), Le = n.n(Me); - function je(t, e, n, r, i, o) { + function De(t, e, n, r, i, o) { var a = 0, s = 0, u = 0, @@ -143230,7 +143195,7 @@ object-assign } return { top: a, left: s, width: u, height: l }; } - function De(t, e, n, r) { + function je(t, e, n, r) { var i = r.width, o = 20 * Math.round((r.top + window.pageYOffset) / 20), a = 20; @@ -143757,7 +143722,7 @@ object-assign {}, t, {}, - je( + De( e.element, e.ePageX, e.ePageY, @@ -143783,7 +143748,7 @@ object-assign {}, t, {}, - De( + je( Math.round((e.ePageY - t.height / 2) / r) * r, Math.round( (e.ePageX - e.clientRect.left - t.width / 2) / @@ -144441,8 +144406,8 @@ object-assign Pn = n(6), Mn = n(159), Ln = n.n(Mn), - jn = n(160), - Dn = n.n(jn), + Dn = n(160), + jn = n.n(Dn), Rn = n(64); function zn(t) { return (zn = @@ -145350,7 +145315,7 @@ object-assign !window.document.createElement ), Lr = 0, - jr = (function(t) { + Dr = (function(t) { function e() { var t, n; Nn(this, e); @@ -145471,8 +145436,8 @@ object-assign e ); })(s.Component); - Vn(jr, 'defaultProps', { accountForScrollbars: !0 }); - var Dr = (function(t) { + Vn(Dr, 'defaultProps', { accountForScrollbars: !0 }); + var jr = (function(t) { function e() { var t, n; Nn(this, e); @@ -145528,7 +145493,7 @@ object-assign e ), r - ? u.a.createElement(jr, { touchScrollTarget: r }) + ? u.a.createElement(Dr, { touchScrollTarget: r }) : null ) : e; @@ -146174,7 +146139,7 @@ object-assign 'div', { className: Object(Pn.a)(r('input', Gn({ theme: s }, l))) }, u.a.createElement( - Dn.a, + jn.a, Bn( { className: n(null, { input: !0 }, e), @@ -148006,13 +147971,13 @@ object-assign if ('option' === e.type) return L(e); }); else if (y) { - var j = b({ inputValue: v }); - if (null === j) return null; - M = u.a.createElement(s, f, j); - } else { - var D = C({ inputValue: v }); + var D = b({ inputValue: v }); if (null === D) return null; - M = u.a.createElement(l, f, D); + M = u.a.createElement(s, f, D); + } else { + var j = C({ inputValue: v }); + if (null === j) return null; + M = u.a.createElement(l, f, j); } var R = { minMenuHeight: _, @@ -148041,7 +148006,7 @@ object-assign zr, { isEnabled: m, onTopArrive: O, onBottomArrive: P }, u.a.createElement( - Dr, + jr, { isEnabled: A }, u.a.createElement( o, @@ -148956,10 +148921,10 @@ object-assign function Li() { return Pi; } - function ji(t) { + function Di(t) { return Mi[t]; } - function Di(t) { + function ji(t) { var e = (arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}) .localeMatcher || 'lookup'; @@ -148972,9 +148937,9 @@ object-assign } } function Ri(t) { - if (ji(t)) return t; + if (Di(t)) return t; for (var e = t.split('-'); t.length > 1; ) - if ((e.pop(), ji((t = e.join('-'))))) return t; + if ((e.pop(), Di((t = e.join('-'))))) return t; } function zi(t, e) { for (var n = 0; n < e.length; n++) { @@ -149050,7 +149015,7 @@ object-assign !this.locale) ) throw new TypeError('No supported locale was found'); - (this.locale = Di(this.locale, { + (this.locale = ji(this.locale, { localeMatcher: this.localeMatcher })), 'undefined' != typeof Intl && @@ -149098,7 +149063,7 @@ object-assign value: function(t, e) { if (Ii.indexOf(e) < 0) throw new RangeError('Unknown time unit: '.concat(e, '.')); - var n = ji(this.locale)[this.style][e]; + var n = Di(this.locale)[this.style][e]; if ('auto' === this.numeric) if (-2 === t || -1 === t) { var r = @@ -149111,7 +149076,7 @@ object-assign } else if (0 === t && n.current) return n.current; var o = n[t <= 0 ? 'past' : 'future']; if ('string' == typeof o) return o; - var a = ji(this.locale).quantify, + var a = Di(this.locale).quantify, s = a && a(Math.abs(t)); return o[(s = s || 'other')] || o.other; } @@ -149169,7 +149134,7 @@ object-assign return ( 'string' == typeof t && (t = [t]), t.filter(function(t) { - return Di(t, e); + return ji(t, e); }) ); }), @@ -150210,8 +150175,8 @@ object-assign }) ); }), - jo = n(161), - Do = n.n(jo), + Do = n(161), + jo = n.n(Do), Ro = n(162), zo = he( function(t) { @@ -150375,7 +150340,7 @@ object-assign onClick: function() { var t; (t = d) && - Do.a.toBlob(t).then(function(t) { + jo.a.toBlob(t).then(function(t) { Object(Ro.saveAs)(t, 'dashboard.png'); }); } @@ -151780,7 +151745,7 @@ object-assign r, l = va( { id: Ie(), type: i }, - De(s, u, 500, n.ref.current.getBoundingClientRect()), + je(s, u, 500, n.ref.current.getBoundingClientRect()), { width: 500, height: 300, @@ -152435,8 +152400,8 @@ object-assign } return t; } - var ja = Object(Pa.WidthProvider)(Pa.Responsive), - Da = (function(t) { + var Da = Object(Pa.WidthProvider)(Pa.Responsive), + ja = (function(t) { function e(t) { var n; return ( @@ -152569,7 +152534,7 @@ object-assign 'div', { id: 'dashboard-'.concat(this.props.id) }, u.a.createElement( - ja, + Da, i()( { onLayoutChange: this.onLayoutChange, @@ -152637,8 +152602,8 @@ object-assign return { type: 'SET_LAYOUT', layout: t, items: e }; } } - )(Da); - Da.defaultProps = { + )(ja); + ja.defaultProps = { className: 'layout', cols: { lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 }, rowHeight: 100 @@ -153794,7 +153759,7 @@ object-assign r = t.substring(0, 3 !== e ? n : 10); return ( (n = t.substring(n + 1, t.length - 1)), - j(2 !== e ? r : r.replace(S, '$1'), n, e) + D(2 !== e ? r : r.replace(S, '$1'), n, e) ); } function o(t, e) { @@ -153819,11 +153784,11 @@ object-assign function s(t) { return ( void 0 !== (t = t.prefix) && - ((j = null), + ((D = null), t ? 'function' != typeof t ? (O = 1) - : ((O = 2), (j = t)) + : ((O = 2), (D = t)) : (O = 0)), s ); @@ -153846,7 +153811,7 @@ object-assign E = 0, k = 0, M = 0, - j = 0, + D = 0, R = (g = h = 0), z = 0, N = 0, @@ -154051,7 +154016,7 @@ object-assign 107 !== f && 0 < G.length && ((N = 1), (G += '\0')), - 0 < L * D && a(0, G, s, n, T, A, H.length, f, d, f), + 0 < L * j && a(0, G, s, n, T, A, H.length, f, d, f), (A = 1), T++; break; @@ -154095,7 +154060,7 @@ object-assign case 2: 112 === M && 58 === u.charCodeAt(z - 3) && (C = M); case 8: - 111 === j && (C = j); + 111 === D && (C = D); } break; case 58: @@ -154120,7 +154085,7 @@ object-assign case 40: if (0 === k + S + w) { if (0 === h) - switch (2 * M + 3 * j) { + switch (2 * M + 3 * D) { case 533: break; default: @@ -154157,7 +154122,7 @@ object-assign } 0 === S && (G += b); } - (j = M), (M = p), z++; + (D = M), (M = p), z++; } if (0 < (F = H.length)) { if ( @@ -154218,8 +154183,8 @@ object-assign P = [], M = [], L = 0, - j = null, - D = 0; + D = null, + j = 0; return ( (u.use = function t(e) { switch (e) { @@ -154231,7 +154196,7 @@ object-assign if ('function' == typeof e) M[L++] = e; else if ('object' == typeof e) for (var n = 0, r = e.length; n < r; ++n) t(e[n]); - else D = 0 | !!e; + else j = 0 | !!e; } return t; }), @@ -154369,7 +154334,7 @@ object-assign ((r ^= r >>> 15) >>> 0).toString(36) ); }, - j = { + D = { animationIterationCount: 1, borderImageOutset: 1, borderImageSlice: 1, @@ -154416,7 +154381,7 @@ object-assign strokeOpacity: 1, strokeWidth: 1 }; - var D = /[A-Z]|^ms/g, + var j = /[A-Z]|^ms/g, R = /_EMO_([^_]+?)_([^]*?)_EMO_/g, z = function(t) { return 45 === t.charCodeAt(1); @@ -154430,7 +154395,7 @@ object-assign return void 0 === e[n] && (e[n] = t(n)), e[n]; }; })(function(t) { - return z(t) ? t : t.replace(D, '-$&').toLowerCase(); + return z(t) ? t : t.replace(j, '-$&').toLowerCase(); }), F = function(t, e) { switch (t) { @@ -154441,7 +154406,7 @@ object-assign return (B = { name: e, styles: n, next: B }), e; }); } - return 1 === j[t] || z(t) || 'number' != typeof e || 0 === e + return 1 === D[t] || z(t) || 'number' != typeof e || 0 === e ? e : e + 'px'; }; @@ -155090,7 +155055,7 @@ object-assign styles: 'display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;' }, - jt = function(t) { + Dt = function(t) { var e = t.size, n = i(t, ['size']); return J( @@ -155108,9 +155073,9 @@ object-assign ) ); }, - Dt = function(t) { + jt = function(t) { return J( - jt, + Dt, Object(o.a)({ size: 20 }, t), J('path', { d: @@ -155120,7 +155085,7 @@ object-assign }, Rt = function(t) { return J( - jt, + Dt, Object(o.a)({ size: 20 }, t), J('path', { d: @@ -155227,7 +155192,7 @@ object-assign var t = this.props, e = t.children, n = t.innerProps; - return J('div', n, e || J(Dt, { size: 14 })); + return J('div', n, e || J(jt, { size: 14 })); } } ]), @@ -155329,7 +155294,7 @@ object-assign css: i('clearIndicator', t), className: r({ indicator: !0, 'clear-indicator': !0 }, n) }), - e || J(Dt, null) + e || J(jt, null) ); }, Control: function(t) { @@ -155379,7 +155344,7 @@ object-assign ); }, DownChevron: Rt, - CrossIcon: Dt, + CrossIcon: jt, Group: function(t) { var e = t.children, n = t.className, @@ -158007,8 +157972,8 @@ object-assign M = m.onMenuScrollToTop, L = m.onMenuScrollToBottom; if (!E) return null; - var j, - D = function(e) { + var D, + j = function(e) { var n = p === e.data; return ( (e.innerRef = n ? t.getFocusedOptionRef : void 0), @@ -158020,7 +157985,7 @@ object-assign ); }; if (this.hasOptions()) - j = g.render.map(function(e) { + D = g.render.map(function(e) { if ('group' === e.type) { e.type; var a = i(e, ['type']), @@ -158033,20 +157998,20 @@ object-assign label: t.formatGroupLabel(e.data) }), e.options.map(function(t) { - return D(t); + return j(t); }) ); } - if ('option' === e.type) return D(e); + if ('option' === e.type) return j(e); }); else if (b) { var R = x({ inputValue: y }); if (null === R) return null; - j = _.a.createElement(l, d, R); + D = _.a.createElement(l, d, R); } else { var z = P({ inputValue: y }); if (null === z) return null; - j = _.a.createElement(c, d, z); + D = _.a.createElement(c, d, z); } var N = { minMenuHeight: w, @@ -158086,7 +158051,7 @@ object-assign isLoading: b, maxHeight: u }), - j + D ) ) ) diff --git a/package-lock.json b/package-lock.json index 1729330..bab7028 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "keen-dashboard-builder", - "version": "1.5.9", + "version": "1.5.10", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 55133db..eb37aff 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "keen-dashboard-builder", "description": "Dashboard builder for Keen.io", "license": "MIT", - "version": "1.5.9", + "version": "1.5.10", "main": "dist/main.min.js", "scripts": { "start": "concurrently --kill-others \"NODE_ENV=development webpack-dev-server\"", From b673389426f59b60d1f971451b4c7d91baa24f89 Mon Sep 17 00:00:00 2001 From: Artur Pryka Date: Mon, 20 Jan 2020 10:23:15 +0100 Subject: [PATCH 04/15] 1.5.11 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index bab7028..a148ce6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "keen-dashboard-builder", - "version": "1.5.10", + "version": "1.5.11", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index eb37aff..2ffc323 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "keen-dashboard-builder", "description": "Dashboard builder for Keen.io", "license": "MIT", - "version": "1.5.10", + "version": "1.5.11", "main": "dist/main.min.js", "scripts": { "start": "concurrently --kill-others \"NODE_ENV=development webpack-dev-server\"", From 15bf8c28308c5c934a09ce819192fce69190d063 Mon Sep 17 00:00:00 2001 From: Artur Pryka Date: Tue, 4 Feb 2020 10:55:41 +0100 Subject: [PATCH 05/15] =?UTF-8?q?chore:=20=F0=9F=A4=96=20bump=20keen-datav?= =?UTF-8?q?iz=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 132 +++++++++++++++++++++++----------------------- package.json | 2 +- 2 files changed, 67 insertions(+), 67 deletions(-) diff --git a/package-lock.json b/package-lock.json index a148ce6..cb1fdca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3829,9 +3829,9 @@ "dev": true }, "c3": { - "version": "0.7.8", - "resolved": "https://registry.npmjs.org/c3/-/c3-0.7.8.tgz", - "integrity": "sha512-yccP+u4Bp/MVPRowT8go5Sp66FZWsP071v5tqRR+mjqB37U6oDHY3pna1qE5ba/YIIxWHrz6ianI45SpzR4dhA==", + "version": "0.7.12", + "resolved": "https://registry.npmjs.org/c3/-/c3-0.7.12.tgz", + "integrity": "sha512-8gXyKMr9oM171aRGCOqezwEbWwEtIKmEkyvdfgH4oIunSsiTVWyw9Cz6os78LkYPRLMbHDgKcjkQh4EPCrRupQ==", "requires": { "d3": "^5.8.0" } @@ -5548,9 +5548,9 @@ } }, "d3": { - "version": "5.12.0", - "resolved": "https://registry.npmjs.org/d3/-/d3-5.12.0.tgz", - "integrity": "sha512-flYVMoVuhPFHd9zVCe2BxIszUWqBcd5fvQGMNRmSiBrgdnh6Vlruh60RJQTouAK9xPbOB0plxMvBm4MoyODXNg==", + "version": "5.15.0", + "resolved": "https://registry.npmjs.org/d3/-/d3-5.15.0.tgz", + "integrity": "sha512-C+E80SL2nLLtmykZ6klwYj5rPqB5nlfN5LdWEAVdWPppqTD8taoJi2PxLZjPeYT8FFRR2yucXq+kBlOnnvZeLg==", "requires": { "d3-array": "1", "d3-axis": "1", @@ -5596,9 +5596,9 @@ "integrity": "sha512-ejINPfPSNdGFKEOAtnBtdkpr24c4d4jsei6Lg98mxf424ivoDP2956/5HDpIAtmHo85lqT4pruy+zEgvRUBqaQ==" }, "d3-brush": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/d3-brush/-/d3-brush-1.1.3.tgz", - "integrity": "sha512-v8bbYyCFKjyCzFk/tdWqXwDykY8YWqhXYjcYxfILIit085VZOpj4XJKOMccTsvWxgzSLMJQg5SiqHjslsipEDg==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/d3-brush/-/d3-brush-1.1.5.tgz", + "integrity": "sha512-rEaJ5gHlgLxXugWjIkolTA0OyMvw8UWU1imYXy1v642XyyswmI1ybKOv05Ft+ewq+TFmdliD3VuK0pRp1VT/5A==", "requires": { "d3-dispatch": "1", "d3-drag": "1", @@ -5622,9 +5622,9 @@ "integrity": "sha512-ii0/r5f4sjKNTfh84Di+DpztYwqKhEyUlKoPrzUFfeSkWxjW49xU2QzO9qrPrNkpdI0XJkfzvmTu8V2Zylln6A==" }, "d3-color": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-1.3.0.tgz", - "integrity": "sha512-NHODMBlj59xPAwl2BDiO2Mog6V+PrGRtBfWKqKRrs9MCqlSkIEb0Z/SfY7jW29ReHTDC/j+vwXhnZcXI3+3fbg==" + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-1.4.0.tgz", + "integrity": "sha512-TzNPeJy2+iEepfiL92LAAB7fvnp/dV2YwANPVHdDWmYMm23qIJBYww3qT8I8C1wXrmrg4UWs7BKc2tKIgyjzHg==" }, "d3-contour": { "version": "1.3.2", @@ -5635,23 +5635,23 @@ } }, "d3-dispatch": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/d3-dispatch/-/d3-dispatch-1.0.5.tgz", - "integrity": "sha512-vwKx+lAqB1UuCeklr6Jh1bvC4SZgbSqbkGBLClItFBIYH4vqDJCA7qfoy14lXmJdnBOdxndAMxjCbImJYW7e6g==" + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/d3-dispatch/-/d3-dispatch-1.0.6.tgz", + "integrity": "sha512-fVjoElzjhCEy+Hbn8KygnmMS7Or0a9sI2UzGwoB7cCtvI1XpVN9GpoYlnb3xt2YV66oXYb1fLJ8GMvP4hdU1RA==" }, "d3-drag": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/d3-drag/-/d3-drag-1.2.4.tgz", - "integrity": "sha512-ICPurDETFAelF1CTHdIyiUM4PsyZLaM+7oIBhmyP+cuVjze5vDZ8V//LdOFjg0jGnFIZD/Sfmk0r95PSiu78rw==", + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/d3-drag/-/d3-drag-1.2.5.tgz", + "integrity": "sha512-rD1ohlkKQwMZYkQlYVCrSFxsWPzI97+W+PaEIBNTMxRuxz9RF0Hi5nJWHGVJ3Om9d2fRTe1yOBINJyy/ahV95w==", "requires": { "d3-dispatch": "1", "d3-selection": "1" } }, "d3-dsv": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/d3-dsv/-/d3-dsv-1.1.1.tgz", - "integrity": "sha512-1EH1oRGSkeDUlDRbhsFytAXU6cAmXFzc52YUe6MRlPClmWb85MP1J5x+YJRzya4ynZWnbELdSAvATFW/MbxaXw==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/d3-dsv/-/d3-dsv-1.2.0.tgz", + "integrity": "sha512-9yVlqvZcSOMhCYzniHE7EVUws7Fa1zgw+/EAV2BxJoG3ME19V6BQFBwI855XQDsxyOuG7NibqRMTtiF/Qup46g==", "requires": { "commander": "2", "iconv-lite": "0.4", @@ -5659,9 +5659,9 @@ } }, "d3-ease": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-1.0.5.tgz", - "integrity": "sha512-Ct1O//ly5y5lFM9YTdu+ygq7LleSgSE4oj7vUt9tPLHUi8VCV7QoizGpdWRWAwCO9LdYzIrQDg97+hGVdsSGPQ==" + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-1.0.6.tgz", + "integrity": "sha512-SZ/lVU7LRXafqp7XtIcBdxnWl8yyLpgOmzAk0mWBI9gXNzLDx5ybZgnRbH9dN/yY5tzVBqCQ9avltSnqVwessQ==" }, "d3-fetch": { "version": "1.1.2", @@ -5683,45 +5683,45 @@ } }, "d3-format": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-1.4.1.tgz", - "integrity": "sha512-TUswGe6hfguUX1CtKxyG2nymO+1lyThbkS1ifLX0Sr+dOQtAD5gkrffpHnx+yHNKUZ0Bmg5T4AjUQwugPDrm0g==" + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-1.4.3.tgz", + "integrity": "sha512-mm/nE2Y9HgGyjP+rKIekeITVgBtX97o1nrvHCWX8F/yBYyevUTvu9vb5pUnKwrcSw7o7GuwMOWjS9gFDs4O+uQ==" }, "d3-geo": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/d3-geo/-/d3-geo-1.11.6.tgz", - "integrity": "sha512-z0J8InXR9e9wcgNtmVnPTj0TU8nhYT6lD/ak9may2PdKqXIeHUr8UbFLoCtrPYNsjv6YaLvSDQVl578k6nm7GA==", + "version": "1.11.9", + "resolved": "https://registry.npmjs.org/d3-geo/-/d3-geo-1.11.9.tgz", + "integrity": "sha512-9edcH6J3s/Aa3KJITWqFJbyB/8q3mMlA9Fi7z6yy+FAYMnRaxmC7jBhUnsINxVWD14GmqX3DK8uk7nV6/Ekt4A==", "requires": { "d3-array": "1" } }, "d3-hierarchy": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/d3-hierarchy/-/d3-hierarchy-1.1.8.tgz", - "integrity": "sha512-L+GHMSZNwTpiq4rt9GEsNcpLa4M96lXMR8M/nMG9p5hBE0jy6C+3hWtyZMenPQdwla249iJy7Nx0uKt3n+u9+w==" + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/d3-hierarchy/-/d3-hierarchy-1.1.9.tgz", + "integrity": "sha512-j8tPxlqh1srJHAtxfvOUwKNYJkQuBFdM1+JAUfq6xqH5eAqf93L7oG1NVqDa4CpFZNvnNKtCYEUC8KY9yEn9lQ==" }, "d3-interpolate": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-1.3.2.tgz", - "integrity": "sha512-NlNKGopqaz9qM1PXh9gBF1KSCVh+jSFErrSlD/4hybwoNX/gt1d8CDbDW+3i+5UOHhjC6s6nMvRxcuoMVNgL2w==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-1.4.0.tgz", + "integrity": "sha512-V9znK0zc3jOPV4VD2zZn0sDhZU3WAE2bmlxdIwwQPPzPjvyLkd8B3JUVdS1IDUFDkWZ72c9qnv1GK2ZagTZ8EA==", "requires": { "d3-color": "1" } }, "d3-path": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-1.0.8.tgz", - "integrity": "sha512-J6EfUNwcMQ+aM5YPOB8ZbgAZu6wc82f/0WFxrxwV6Ll8wBwLaHLKCqQ5Imub02JriCVVdPjgI+6P3a4EWJCxAg==" + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-1.0.9.tgz", + "integrity": "sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg==" }, "d3-polygon": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/d3-polygon/-/d3-polygon-1.0.5.tgz", - "integrity": "sha512-RHhh1ZUJZfhgoqzWWuRhzQJvO7LavchhitSTHGu9oj6uuLFzYZVeBzaWTQ2qSO6bz2w55RMoOCf0MsLCDB6e0w==" + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/d3-polygon/-/d3-polygon-1.0.6.tgz", + "integrity": "sha512-k+RF7WvI08PC8reEoXa/w2nSg5AUMTi+peBD9cmFc+0ixHfbs4QmxxkarVal1IkVkgxVuk9JSHhJURHiyHKAuQ==" }, "d3-quadtree": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/d3-quadtree/-/d3-quadtree-1.0.6.tgz", - "integrity": "sha512-NUgeo9G+ENQCQ1LsRr2qJg3MQ4DJvxcDNCiohdJGHt5gRhBW6orIB5m5FJ9kK3HNL8g9F4ERVoBzcEwQBfXWVA==" + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/d3-quadtree/-/d3-quadtree-1.0.7.tgz", + "integrity": "sha512-RKPAeXnkC59IDGD0Wu5mANy0Q2V28L+fNe65pOCXVdVuTJS3WPKaJlFHer32Rbh9gIo9qMuJXio8ra4+YmIymA==" }, "d3-random": { "version": "1.1.2", @@ -5751,40 +5751,40 @@ } }, "d3-selection": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/d3-selection/-/d3-selection-1.4.0.tgz", - "integrity": "sha512-EYVwBxQGEjLCKF2pJ4+yrErskDnz5v403qvAid96cNdCMr8rmCYfY5RGzWz24mdIbxmDf6/4EAH+K9xperD5jg==" + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/d3-selection/-/d3-selection-1.4.1.tgz", + "integrity": "sha512-BTIbRjv/m5rcVTfBs4AMBLKs4x8XaaLkwm28KWu9S2vKNqXkXt2AH2Qf0sdPZHjFxcWg/YL53zcqAz+3g4/7PA==" }, "d3-shape": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-1.3.5.tgz", - "integrity": "sha512-VKazVR3phgD+MUCldapHD7P9kcrvPcexeX/PkMJmkUov4JM8IxsSg1DvbYoYich9AtdTsa5nNk2++ImPiDiSxg==", + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-1.3.7.tgz", + "integrity": "sha512-EUkvKjqPFUAZyOlhY5gzCxCeI0Aep04LwIRpsZ/mLFelJiUfnK56jo5JMDSE7yyP2kLSb6LtF+S5chMk7uqPqw==", "requires": { "d3-path": "1" } }, "d3-time": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-1.0.11.tgz", - "integrity": "sha512-Z3wpvhPLW4vEScGeIMUckDW7+3hWKOQfAWg/U7PlWBnQmeKQ00gCUsTtWSYulrKNA7ta8hJ+xXc6MHrMuITwEw==" + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-1.1.0.tgz", + "integrity": "sha512-Xh0isrZ5rPYYdqhAVk8VLnMEidhz5aP7htAADH6MfzgmmicPkTo8LhkLxci61/lCB7n7UmE3bN0leRt+qvkLxA==" }, "d3-time-format": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-2.1.3.tgz", - "integrity": "sha512-6k0a2rZryzGm5Ihx+aFMuO1GgelgIz+7HhB4PH4OEndD5q2zGn1mDfRdNrulspOfR6JXkb2sThhDK41CSK85QA==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-2.2.3.tgz", + "integrity": "sha512-RAHNnD8+XvC4Zc4d2A56Uw0yJoM7bsvOlJR33bclxq399Rak/b9bhvu/InjxdWhPtkgU53JJcleJTGkNRnN6IA==", "requires": { "d3-time": "1" } }, "d3-timer": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-1.0.9.tgz", - "integrity": "sha512-rT34J5HnQUHhcLvhSB9GjCkN0Ddd5Y8nCwDBG2u6wQEeYxT/Lf51fTFFkldeib/sE/J0clIe0pnCfs6g/lRbyg==" + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-1.0.10.tgz", + "integrity": "sha512-B1JDm0XDaQC+uvo4DT79H0XmBskgS3l6Ve+1SBCfxgmtIb1AVrPIoqd+nPSv+loMX8szQ0sVUhGngL7D5QPiXw==" }, "d3-transition": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/d3-transition/-/d3-transition-1.2.0.tgz", - "integrity": "sha512-VJ7cmX/FPIPJYuaL2r1o1EMHLttvoIuZhhuAlRoOxDzogV8iQS6jYulDm3xEU3TqL80IZIhI551/ebmCMrkvhw==", + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/d3-transition/-/d3-transition-1.3.2.tgz", + "integrity": "sha512-sc0gRU4PFqZ47lPVHloMn9tlPcv8jxgOQg+0zjhfZXMQuvppjG6YuwdMBE0TuqCZjeJkLecku/l9R0JPcRhaDA==", "requires": { "d3-color": "1", "d3-dispatch": "1", @@ -12029,9 +12029,9 @@ } }, "keen-dataviz": { - "version": "3.13.7", - "resolved": "https://registry.npmjs.org/keen-dataviz/-/keen-dataviz-3.13.7.tgz", - "integrity": "sha512-P0GHy9NZ8FJ69PGfWt6Pw5vLZpIYWVgKgjbjET7rL9M+zRv77/qnXDflj4UiJGpaXO8T2ZxN5eqsCvkp42QqlA==", + "version": "3.13.8", + "resolved": "https://registry.npmjs.org/keen-dataviz/-/keen-dataviz-3.13.8.tgz", + "integrity": "sha512-BmwpfwlX5jTjkhifnhPzclRAvgJeKL1a1BG5f8m4axz7UgVwJU6KYfv28jZWqFLIyRMRkuP+OldbbPS0R/EAPg==", "requires": { "c3": "^0.7.2", "d3": "^5.11.0", diff --git a/package.json b/package.json index 2ffc323..b99e289 100644 --- a/package.json +++ b/package.json @@ -90,7 +90,7 @@ "highlight.js": "^9.15.8", "javascript-time-ago": "^2.0.4", "keen-analysis": "^3.4.0", - "keen-dataviz": "^3.13.7", + "keen-dataviz": "^3.13.8", "keen-explorer": "^6.0.19", "keen-theme-builder": "^1.0.28", "lodash": "^4.17.11", From 0292750302acbec1ee482e4881c1a76f0c6d3b8e Mon Sep 17 00:00:00 2001 From: Artur Pryka Date: Thu, 6 Feb 2020 13:34:04 +0100 Subject: [PATCH 06/15] 1.5.12 --- dist/main.min.js | 4412 +++++++++++++++--------------- dist/viewer.min.js | 6406 ++++++++++++++++++++++---------------------- package-lock.json | 2 +- package.json | 2 +- 4 files changed, 5507 insertions(+), 5315 deletions(-) diff --git a/dist/main.min.js b/dist/main.min.js index 7897ebf..d75289f 100644 --- a/dist/main.min.js +++ b/dist/main.min.js @@ -3287,7 +3287,7 @@ }, u = n(75), l = n(141), - f = n(39); + f = n(38); n.d(t, 'a', function() { return h; }), @@ -3908,7 +3908,7 @@ n.d(t, 'a', function() { return i; }); - var r = n(41), + var r = n(40), o = n(2); function i(e, t) { return !t || ('object' !== Object(r.a)(t) && 'function' != typeof t) @@ -10065,12 +10065,28 @@ t && r(e, t); }; }, + function(e, t, n) { + 'use strict'; + function r(e, t) { + if (null == e) return {}; + var n, + r, + o = {}, + i = Object.keys(e); + for (r = 0; r < i.length; r++) + (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); + return o; + } + n.d(t, 'a', function() { + return r; + }); + }, function(e, t, n) { 'use strict'; n.d(t, 'a', function() { return o; }); - var r = n(31); + var r = n(29); function o(e, t) { if (null == e) return {}; var n, @@ -10102,22 +10118,6 @@ ); }; }, - function(e, t, n) { - 'use strict'; - function r(e, t) { - if (null == e) return {}; - var n, - r, - o = {}, - i = Object.keys(e); - for (r = 0; r < i.length; r++) - (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); - return o; - } - n.d(t, 'a', function() { - return r; - }); - }, function(e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), @@ -10438,17 +10438,6 @@ } }; }, - function(e, t, n) { - 'use strict'; - function r(e, t) { - (e.prototype = Object.create(t.prototype)), - (e.prototype.constructor = e), - (e.__proto__ = t); - } - n.d(t, 'a', function() { - return r; - }); - }, function(e, t, n) { 'use strict'; var r = n(75); @@ -10843,6 +10832,17 @@ t && (r.default ? (0, r.default)(e, t) : (e.__proto__ = t)); }; }, + function(e, t, n) { + 'use strict'; + function r(e, t) { + (e.prototype = Object.create(t.prototype)), + (e.prototype.constructor = e), + (e.__proto__ = t); + } + n.d(t, 'a', function() { + return r; + }); + }, function(e, t, n) { var r = n(659), o = n(663)(function(e, t, n) { @@ -49879,7 +49879,7 @@ object-assign (e.exports = p), (e.exports.parse = i), (e.exports.compile = function(e, t) { - return s(i(e, t)); + return s(i(e, t), t); }), (e.exports.tokensToFunction = s), (e.exports.tokensToRegExp = d); @@ -49939,14 +49939,14 @@ object-assign ); }); } - function s(e) { - for (var t = new Array(e.length), n = 0; n < e.length; n++) - 'object' == typeof e[n] && - (t[n] = new RegExp('^(?:' + e[n].pattern + ')$')); - return function(n, o) { + function s(e, t) { + for (var n = new Array(e.length), o = 0; o < e.length; o++) + 'object' == typeof e[o] && + (n[o] = new RegExp('^(?:' + e[o].pattern + ')$', f(t))); + return function(t, o) { for ( var i = '', - s = n || {}, + s = t || {}, c = (o || {}).pretty ? a : encodeURIComponent, u = 0; u < e.length; @@ -49979,7 +49979,7 @@ object-assign ); } for (var p = 0; p < d.length; p++) { - if (((f = c(d[p])), !t[u].test(f))) + if (((f = c(d[p])), !n[u].test(f))) throw new TypeError( 'Expected all "' + l.name + @@ -50004,7 +50004,7 @@ object-assign ); }) : c(d)), - !t[u].test(f)) + !n[u].test(f)) ) throw new TypeError( 'Expected "' + @@ -50032,7 +50032,7 @@ object-assign return (e.keys = t), e; } function f(e) { - return e.sensitive ? '' : 'i'; + return e && e.sensitive ? '' : 'i'; } function d(e, t, n) { r(t) || ((n = t || n), (t = [])); @@ -132672,7 +132672,7 @@ object-assign n(1), n(882), n(4), - n(40), + n(39), n(743), n(744), n(878), @@ -226072,7 +226072,7 @@ object-assign }, function(e, t, n) { 'use strict'; - var r = n(40).compose; + var r = n(39).compose; (t.__esModule = !0), (t.composeWithDevTools = 'undefined' != typeof window && @@ -228132,143 +228132,28 @@ object-assign c = n.n(s), u = n(8), l = n.n(u), - f = n(38), - d = n(113), + f = n(43), + d = n(1), p = n.n(d), - h = n(1), - g = n.n(h), - m = n(454), - b = n.n(m), - y = 1073741823; - var v = - c.a.createContext || - function(e, t) { - var n, - r, - o = '__create-react-context-' + b()() + '__', - i = (function(e) { - function n() { - var t; - return ( - ((t = e.apply(this, arguments) || this).emitter = (function( - e - ) { - var t = []; - return { - on: function(e) { - t.push(e); - }, - off: function(e) { - t = t.filter(function(t) { - return t !== e; - }); - }, - get: function() { - return e; - }, - set: function(n, r) { - (e = n), - t.forEach(function(t) { - return t(e, r); - }); - } - }; - })(t.props.value)), - t - ); - } - p()(n, e); - var r = n.prototype; - return ( - (r.getChildContext = function() { - var e; - return ((e = {})[o] = this.emitter), e; - }), - (r.componentWillReceiveProps = function(e) { - if (this.props.value !== e.value) { - var n, - r = this.props.value, - o = e.value; - ((i = r) === (a = o) - ? 0 !== i || 1 / i == 1 / a - : i != i && a != a) - ? (n = 0) - : ((n = 'function' == typeof t ? t(r, o) : y), - 0 !== (n |= 0) && this.emitter.set(e.value, n)); - } - var i, a; - }), - (r.render = function() { - return this.props.children; - }), - n - ); - })(s.Component); - i.childContextTypes = (((n = {})[o] = g.a.object.isRequired), n); - var a = (function(t) { - function n() { - var e; - return ( - ((e = t.apply(this, arguments) || this).state = { - value: e.getValue() - }), - (e.onUpdate = function(t, n) { - 0 != ((0 | e.observedBits) & n) && - e.setState({ value: e.getValue() }); - }), - e - ); - } - p()(n, t); - var r = n.prototype; - return ( - (r.componentWillReceiveProps = function(e) { - var t = e.observedBits; - this.observedBits = null == t ? y : t; - }), - (r.componentDidMount = function() { - this.context[o] && this.context[o].on(this.onUpdate); - var e = this.props.observedBits; - this.observedBits = null == e ? y : e; - }), - (r.componentWillUnmount = function() { - this.context[o] && this.context[o].off(this.onUpdate); - }), - (r.getValue = function() { - return this.context[o] ? this.context[o].get() : e; - }), - (r.render = function() { - return ((e = this.props.children), - Array.isArray(e) ? e[0] : e)(this.state.value); - var e; - }), - n - ); - })(s.Component); - return ( - (a.contextTypes = (((r = {})[o] = g.a.object), r)), - { Provider: i, Consumer: a } - ); - }, - _ = n(5); - function w(e) { + h = n(5); + function g(e) { return '/' === e.charAt(0); } - function x(e, t) { + function m(e, t) { for (var n = t, r = n + 1, o = e.length; r < o; n += 1, r += 1) e[n] = e[r]; e.pop(); } - var M = function(e, t) { + var b = function(e, t) { void 0 === t && (t = ''); var n, r = (e && e.split('/')) || [], o = (t && t.split('/')) || [], - i = e && w(e), - a = t && w(t), + i = e && g(e), + a = t && g(t), s = i || a; if ( - (e && w(e) ? (o = r) : r.length && (o.pop(), (o = o.concat(r))), + (e && g(e) ? (o = r) : r.length && (o.pop(), (o = o.concat(r))), !o.length) ) return '/'; @@ -228279,28 +228164,31 @@ object-assign for (var u = 0, l = o.length; l >= 0; l--) { var f = o[l]; '.' === f - ? x(o, l) + ? m(o, l) : '..' === f - ? (x(o, l), u++) - : u && (x(o, l), u--); + ? (m(o, l), u++) + : u && (m(o, l), u--); } if (!s) for (; u--; u) o.unshift('..'); - !s || '' === o[0] || (o[0] && w(o[0])) || o.unshift(''); + !s || '' === o[0] || (o[0] && g(o[0])) || o.unshift(''); var d = o.join('/'); return n && '/' !== d.substr(-1) && (d += '/'), d; }; - var k = !0, - S = 'Invariant failed'; - var O = function(e, t) { - if (!e) throw k ? new Error(S) : new Error(S + ': ' + (t || '')); + var y = !0, + v = 'Invariant failed'; + var _ = function(e, t) { + if (!e) { + if (y) throw new Error(v); + throw new Error(v + ': ' + (t || '')); + } }; - function E(e) { + function w(e) { return '/' === e.charAt(0) ? e : '/' + e; } - function A(e) { + function x(e) { return '/' === e.charAt(0) ? e.substr(1) : e; } - function T(e, t) { + function M(e, t) { return (function(e, t) { return ( 0 === e.toLowerCase().indexOf(t.toLowerCase()) && @@ -228310,10 +228198,10 @@ object-assign ? e.substr(t.length) : e; } - function C(e) { + function k(e) { return '/' === e.charAt(e.length - 1) ? e.slice(0, -1) : e; } - function L(e) { + function S(e) { var t = e.pathname, n = e.search, r = e.hash, @@ -228324,7 +228212,7 @@ object-assign o ); } - function P(e, t, n, r) { + function O(e, t, n, r) { var o; 'string' == typeof e ? ((o = (function(e) { @@ -228343,7 +228231,7 @@ object-assign } ); })(e)).state = t) - : (void 0 === (o = Object(_.a)({}, e)).pathname && (o.pathname = ''), + : (void 0 === (o = Object(h.a)({}, e)).pathname && (o.pathname = ''), o.search ? '?' !== o.search.charAt(0) && (o.search = '?' + o.search) : (o.search = ''), @@ -228367,13 +228255,13 @@ object-assign r ? o.pathname ? '/' !== o.pathname.charAt(0) && - (o.pathname = M(o.pathname, r.pathname)) + (o.pathname = b(o.pathname, r.pathname)) : (o.pathname = r.pathname) : o.pathname || (o.pathname = '/'), o ); } - function D() { + function E() { var e = null; var t = []; return { @@ -228419,25 +228307,25 @@ object-assign } }; } - var j = !( + var A = !( 'undefined' == typeof window || !window.document || !window.document.createElement ); - function z(e, t) { + function T(e, t) { t(window.confirm(e)); } - var N = 'popstate', - R = 'hashchange'; - function I() { + var C = 'popstate', + L = 'hashchange'; + function P() { try { return window.history.state || {}; } catch (e) { return {}; } } - function F(e) { - void 0 === e && {}, j || O(!1); + function D(e) { + void 0 === e && {}, A || _(!1); var t, n = window.history, r = @@ -228453,129 +228341,129 @@ object-assign a = i.forceRefresh, s = void 0 !== a && a, c = i.getUserConfirmation, - u = void 0 === c ? z : c, + u = void 0 === c ? T : c, l = i.keyLength, f = void 0 === l ? 6 : l, - d = e.basename ? C(E(e.basename)) : ''; + d = e.basename ? k(w(e.basename)) : ''; function p(e) { var t = e || {}, n = t.key, r = t.state, o = window.location, i = o.pathname + o.search + o.hash; - return d && T(i, d), P(i, r, n); + return d && M(i, d), O(i, r, n); } - function h() { + function g() { return Math.random() .toString(36) .substr(2, f); } - var g = D(); - function m(e) { - Object(_.a)(B, e), + var m = E(); + function b(e) { + Object(h.a)(B, e), (B.length = n.length), - g.notifyListeners(B.location, B.action); + m.notifyListeners(B.location, B.action); } - function b(e) { + function y(e) { (function(e) { return ( void 0 === e.state && -1 === navigator.userAgent.indexOf('CriOS') ); - })(e) || w(p(e.state)); + })(e) || D(p(e.state)); } - function y() { - w(p(I())); + function v() { + D(p(P())); } - var v = !1; - function w(e) { - if (v) !1, m(); + var x = !1; + function D(e) { + if (x) !1, b(); else { - g.confirmTransitionTo(e, 'POP', u, function(t) { + m.confirmTransitionTo(e, 'POP', u, function(t) { t - ? m({ action: 'POP', location: e }) + ? b({ action: 'POP', location: e }) : (function(e) { var t = B.location, - n = M.indexOf(t.key); + n = z.indexOf(t.key); -1 === n && 0; - var r = M.indexOf(e.key); + var r = z.indexOf(e.key); -1 === r && 0; var o = n - r; - o && (!0, S(o)); + o && (!0, R(o)); })(e); }); } } - var x = p(I()), - M = [x.key]; - function k(e) { - return d + L(e); + var j = p(P()), + z = [j.key]; + function N(e) { + return d + S(e); } - function S(e) { + function R(e) { n.go(e); } - var A = 0; + var I = 0; function F(e) { - 1 === (A += e) && 1 === e - ? (window.addEventListener(N, b), - o && window.addEventListener(R, y)) - : 0 === A && - (window.removeEventListener(N, b), - o && window.removeEventListener(R, y)); + 1 === (I += e) && 1 === e + ? (window.addEventListener(C, y), + o && window.addEventListener(L, v)) + : 0 === I && + (window.removeEventListener(C, y), + o && window.removeEventListener(L, v)); } var q = !1; var B = { length: n.length, action: 'POP', - location: x, - createHref: k, + location: j, + createHref: N, push: function(e, t) { - var o = P(e, t, h(), B.location); - g.confirmTransitionTo(o, 'PUSH', u, function(e) { + var o = O(e, t, g(), B.location); + m.confirmTransitionTo(o, 'PUSH', u, function(e) { if (e) { - var t = k(o), + var t = N(o), i = o.key, a = o.state; if (r) if ((n.pushState({ key: i, state: a }, null, t), s)) window.location.href = t; else { - var c = M.indexOf(B.location.key), - u = M.slice(0, c + 1); - u.push(o.key), u, m({ action: 'PUSH', location: o }); + var c = z.indexOf(B.location.key), + u = z.slice(0, c + 1); + u.push(o.key), u, b({ action: 'PUSH', location: o }); } else window.location.href = t; } }); }, replace: function(e, t) { - var o = P(e, t, h(), B.location); - g.confirmTransitionTo(o, 'REPLACE', u, function(e) { + var o = O(e, t, g(), B.location); + m.confirmTransitionTo(o, 'REPLACE', u, function(e) { if (e) { - var t = k(o), + var t = N(o), i = o.key, a = o.state; if (r) if ((n.replaceState({ key: i, state: a }, null, t), s)) window.location.replace(t); else { - var c = M.indexOf(B.location.key); - -1 !== c && (M[c] = o.key), - m({ action: 'REPLACE', location: o }); + var c = z.indexOf(B.location.key); + -1 !== c && (z[c] = o.key), + b({ action: 'REPLACE', location: o }); } else window.location.replace(t); } }); }, - go: S, + go: R, goBack: function() { - S(-1); + R(-1); }, goForward: function() { - S(1); + R(1); }, block: function(e) { void 0 === e && !1; - var t = g.setPrompt(e); + var t = m.setPrompt(e); return ( q || (F(1), !0), function() { @@ -228584,7 +228472,7 @@ object-assign ); }, listen: function(e) { - var t = g.appendListener(e); + var t = m.appendListener(e); return ( F(1), function() { @@ -228595,188 +228483,309 @@ object-assign }; return B; } - var q = 'hashchange', - B = { + var j = 'hashchange', + z = { hashbang: { encodePath: function(e) { - return '!' === e.charAt(0) ? e : '!/' + A(e); + return '!' === e.charAt(0) ? e : '!/' + x(e); }, decodePath: function(e) { return '!' === e.charAt(0) ? e.substr(1) : e; } }, - noslash: { encodePath: A, decodePath: E }, - slash: { encodePath: E, decodePath: E } + noslash: { encodePath: x, decodePath: w }, + slash: { encodePath: w, decodePath: w } }; - function H() { + function N(e) { + var t = e.indexOf('#'); + return -1 === t ? e : e.slice(0, t); + } + function R() { var e = window.location.href, t = e.indexOf('#'); return -1 === t ? '' : e.substring(t + 1); } - function Y(e) { - var t = window.location.href.indexOf('#'); - window.location.replace( - window.location.href.slice(0, t >= 0 ? t : 0) + '#' + e - ); + function I(e) { + window.location.replace(N(window.location.href) + '#' + e); } - function W(e) { - void 0 === e && (e = {}), j || O(!1); + function F(e) { + void 0 === e && (e = {}), A || _(!1); var t = window.history, n = (window.navigator.userAgent.indexOf('Firefox'), e), r = n.getUserConfirmation, - o = void 0 === r ? z : r, + o = void 0 === r ? T : r, i = n.hashType, a = void 0 === i ? 'slash' : i, - s = e.basename ? C(E(e.basename)) : '', - c = B[a], + s = e.basename ? k(w(e.basename)) : '', + c = z[a], u = c.encodePath, l = c.decodePath; function f() { - var e = l(H()); - return s && (e = T(e, s)), P(e); + var e = l(R()); + return s && (e = M(e, s)), O(e); } - var d = D(); + var d = E(); function p(e) { - Object(_.a)(A, e), - (A.length = t.length), - d.notifyListeners(A.location, A.action); + Object(h.a)(q, e), + (q.length = t.length), + d.notifyListeners(q.location, q.action); } - var h = !1, - g = null; - function m() { + var g = !1, + m = null; + function b() { var e, t, - n = H(), + n = R(), r = u(n); - if (n !== r) Y(r); + if (n !== r) I(r); else { var i = f(), - a = A.location; + a = q.location; if ( - !h && + !g && ((t = i), (e = a).pathname === t.pathname && e.search === t.search && e.hash === t.hash) ) return; - if (g === L(i)) return; - (g = null), + if (m === S(i)) return; + (m = null), (function(e) { - if (h) (h = !1), p(); + if (g) (g = !1), p(); else { d.confirmTransitionTo(e, 'POP', o, function(t) { t ? p({ action: 'POP', location: e }) : (function(e) { - var t = A.location, - n = w.lastIndexOf(L(t)); + var t = q.location, + n = C.lastIndexOf(S(t)); -1 === n && (n = 0); - var r = w.lastIndexOf(L(e)); + var r = C.lastIndexOf(S(e)); -1 === r && (r = 0); var o = n - r; - o && ((h = !0), x(o)); + o && ((g = !0), L(o)); })(e); }); } })(i); } } - var b = H(), - y = u(b); - b !== y && Y(y); - var v = f(), - w = [L(v)]; - function x(e) { + var y = R(), + v = u(y); + y !== v && I(v); + var x = f(), + C = [S(x)]; + function L(e) { t.go(e); } - var M = 0; - function k(e) { - 1 === (M += e) && 1 === e - ? window.addEventListener(q, m) - : 0 === M && window.removeEventListener(q, m); + var P = 0; + function D(e) { + 1 === (P += e) && 1 === e + ? window.addEventListener(j, b) + : 0 === P && window.removeEventListener(j, b); } - var S = !1; - var A = { + var F = !1; + var q = { length: t.length, action: 'POP', - location: v, + location: x, createHref: function(e) { - return '#' + u(s + L(e)); + var t = document.querySelector('base'), + n = ''; + return ( + t && t.getAttribute('href') && (n = N(window.location.href)), + n + '#' + u(s + S(e)) + ); }, push: function(e, t) { - var n = P(e, void 0, void 0, A.location); + var n = O(e, void 0, void 0, q.location); d.confirmTransitionTo(n, 'PUSH', o, function(e) { if (e) { - var t = L(n), + var t = S(n), r = u(s + t); - if (H() !== r) { - (g = t), + if (R() !== r) { + (m = t), (function(e) { window.location.hash = e; })(r); - var o = w.lastIndexOf(L(A.location)), - i = w.slice(0, o + 1); - i.push(t), (w = i), p({ action: 'PUSH', location: n }); + var o = C.lastIndexOf(S(q.location)), + i = C.slice(0, o + 1); + i.push(t), (C = i), p({ action: 'PUSH', location: n }); } else p(); } }); }, replace: function(e, t) { - var n = P(e, void 0, void 0, A.location); + var n = O(e, void 0, void 0, q.location); d.confirmTransitionTo(n, 'REPLACE', o, function(e) { if (e) { - var t = L(n), + var t = S(n), r = u(s + t); - H() !== r && ((g = t), Y(r)); - var o = w.indexOf(L(A.location)); - -1 !== o && (w[o] = t), p({ action: 'REPLACE', location: n }); + R() !== r && ((m = t), I(r)); + var o = C.indexOf(S(q.location)); + -1 !== o && (C[o] = t), p({ action: 'REPLACE', location: n }); } }); }, - go: x, + go: L, goBack: function() { - x(-1); + L(-1); }, goForward: function() { - x(1); + L(1); }, block: function(e) { void 0 === e && (e = !1); var t = d.setPrompt(e); return ( - S || (k(1), (S = !0)), + F || (D(1), (F = !0)), function() { - return S && ((S = !1), k(-1)), t(); + return F && ((F = !1), D(-1)), t(); } ); }, listen: function(e) { var t = d.appendListener(e); return ( - k(1), + D(1), function() { - k(-1), t(); + D(-1), t(); } ); } }; - return A; + return q; } - function V(e, t, n) { + function q(e, t, n) { return Math.min(Math.max(e, t), n); } - var U = n(195), - X = n.n(U), - G = n(91), - K = n(31), - $ = n(56), - Q = n.n($), - J = (function(e) { - var t = v(); + var B = n(113), + H = n.n(B), + Y = n(454), + W = n.n(Y), + V = 1073741823; + var U = + c.a.createContext || + function(e, t) { + var n, + r, + o = '__create-react-context-' + W()() + '__', + i = (function(e) { + function n() { + var t; + return ( + ((t = e.apply(this, arguments) || this).emitter = (function( + e + ) { + var t = []; + return { + on: function(e) { + t.push(e); + }, + off: function(e) { + t = t.filter(function(t) { + return t !== e; + }); + }, + get: function() { + return e; + }, + set: function(n, r) { + (e = n), + t.forEach(function(t) { + return t(e, r); + }); + } + }; + })(t.props.value)), + t + ); + } + H()(n, e); + var r = n.prototype; + return ( + (r.getChildContext = function() { + var e; + return ((e = {})[o] = this.emitter), e; + }), + (r.componentWillReceiveProps = function(e) { + if (this.props.value !== e.value) { + var n, + r = this.props.value, + o = e.value; + ((i = r) === (a = o) + ? 0 !== i || 1 / i == 1 / a + : i != i && a != a) + ? (n = 0) + : ((n = 'function' == typeof t ? t(r, o) : V), + 0 !== (n |= 0) && this.emitter.set(e.value, n)); + } + var i, a; + }), + (r.render = function() { + return this.props.children; + }), + n + ); + })(s.Component); + i.childContextTypes = (((n = {})[o] = p.a.object.isRequired), n); + var a = (function(t) { + function n() { + var e; + return ( + ((e = t.apply(this, arguments) || this).state = { + value: e.getValue() + }), + (e.onUpdate = function(t, n) { + 0 != ((0 | e.observedBits) & n) && + e.setState({ value: e.getValue() }); + }), + e + ); + } + H()(n, t); + var r = n.prototype; + return ( + (r.componentWillReceiveProps = function(e) { + var t = e.observedBits; + this.observedBits = null == t ? V : t; + }), + (r.componentDidMount = function() { + this.context[o] && this.context[o].on(this.onUpdate); + var e = this.props.observedBits; + this.observedBits = null == e ? V : e; + }), + (r.componentWillUnmount = function() { + this.context[o] && this.context[o].off(this.onUpdate); + }), + (r.getValue = function() { + return this.context[o] ? this.context[o].get() : e; + }), + (r.render = function() { + return ((e = this.props.children), + Array.isArray(e) ? e[0] : e)(this.state.value); + var e; + }), + n + ); + })(s.Component); + return ( + (a.contextTypes = (((r = {})[o] = p.a.object), r)), + { Provider: i, Consumer: a } + ); + }, + X = n(195), + G = n.n(X), + K = n(91), + $ = n(29), + Q = n(56), + J = n.n(Q), + Z = (function(e) { + var t = U(); return (t.displayName = e), t; })('Router'), - Z = (function(e) { + ee = (function(e) { function t(t) { var n; return ( @@ -228809,7 +228818,7 @@ object-assign this.unlisten && this.unlisten(); }), (n.render = function() { - return c.a.createElement(J.Provider, { + return c.a.createElement(Z.Provider, { children: this.props.children || null, value: { history: this.props.history, @@ -228824,11 +228833,12 @@ object-assign })(c.a.Component); c.a.Component; c.a.Component; - var ee = {}, - te = 1e4, - ne = 0; - function re(e, t) { - void 0 === t && (t = {}), 'string' == typeof t && (t = { path: t }); + var te = {}, + ne = 1e4, + re = 0; + function oe(e, t) { + void 0 === t && (t = {}), + ('string' == typeof t || Array.isArray(t)) && (t = { path: t }); var n = t, r = n.path, o = n.exact, @@ -228838,15 +228848,15 @@ object-assign c = n.sensitive, u = void 0 !== c && c; return [].concat(r).reduce(function(t, n) { - if (!n) return null; + if (!n && '' !== n) return null; if (t) return t; var r = (function(e, t) { var n = '' + t.end + t.strict + t.sensitive, - r = ee[n] || (ee[n] = {}); + r = te[n] || (te[n] = {}); if (r[e]) return r[e]; var o = [], - i = { regexp: X()(e, o, t), keys: o }; - return ne < te && ((r[e] = i), ne++), i; + i = { regexp: G()(e, o, t), keys: o }; + return re < ne && ((r[e] = i), re++), i; })(n, { end: i, strict: s, sensitive: u }), o = r.regexp, a = r.keys, @@ -228867,7 +228877,7 @@ object-assign }; }, null); } - var oe = (function(e) { + var ie = (function(e) { function t() { return e.apply(this, arguments) || this; } @@ -228875,85 +228885,87 @@ object-assign Object(f.a)(t, e), (t.prototype.render = function() { var e = this; - return c.a.createElement(J.Consumer, null, function(t) { - t || O(!1); + return c.a.createElement(Z.Consumer, null, function(t) { + t || _(!1); var n = e.props.location || t.location, r = e.props.computedMatch ? e.props.computedMatch : e.props.path - ? re(n.pathname, e.props) + ? oe(n.pathname, e.props) : t.match, - o = Object(_.a)({}, t, { location: n, match: r }), + o = Object(h.a)({}, t, { location: n, match: r }), i = e.props, a = i.children, s = i.component, u = i.render; - (Array.isArray(a) && 0 === a.length && (a = null), - 'function' == typeof a) && - (void 0 === (a = a(o)) && (a = null)); - return c.a.createElement( - J.Provider, - { value: o }, - a && - !(function(e) { - return 0 === c.a.Children.count(e); - })(a) - ? a - : o.match - ? s - ? c.a.createElement(s, o) - : u - ? u(o) + return ( + Array.isArray(a) && 0 === a.length && (a = null), + c.a.createElement( + Z.Provider, + { value: o }, + o.match + ? a + ? 'function' == typeof a + ? a(o) + : a + : s + ? c.a.createElement(s, o) + : u + ? u(o) + : null + : 'function' == typeof a + ? a(o) : null - : null + ) ); }); }), t ); })(c.a.Component); - function ie(e) { + function ae(e) { return '/' === e.charAt(0) ? e : '/' + e; } - function ae(e, t) { + function se(e, t) { if (!e) return t; - var n = ie(e); + var n = ae(e); return 0 !== t.pathname.indexOf(n) ? t - : Object(_.a)({}, t, { pathname: t.pathname.substr(n.length) }); - } - function se(e) { - return 'string' == typeof e ? e : L(e); + : Object(h.a)({}, t, { pathname: t.pathname.substr(n.length) }); } function ce(e) { + return 'string' == typeof e ? e : S(e); + } + function ue(e) { return function() { - O(!1); + _(!1); }; } - function ue() {} + function le() {} c.a.Component; c.a.Component; - function le(e) { + function fe(e) { var t = 'withRouter(' + (e.displayName || e.name) + ')', n = function(t) { var n = t.wrappedComponentRef, - r = Object(K.a)(t, ['wrappedComponentRef']); - return c.a.createElement(J.Consumer, null, function(t) { + r = Object($.a)(t, ['wrappedComponentRef']); + return c.a.createElement(Z.Consumer, null, function(t) { return ( - t || O(!1), - c.a.createElement(e, Object(_.a)({}, r, t, { ref: n })) + t || _(!1), + c.a.createElement(e, Object(h.a)({}, r, t, { ref: n })) ); }); }; - return (n.displayName = t), (n.WrappedComponent = e), Q()(n, e); + return (n.displayName = t), (n.WrappedComponent = e), J()(n, e); } + c.a.useContext; c.a.Component; - var fe = (function(e) { + var de = (function(e) { function t() { for (var t, n = arguments.length, r = new Array(n), o = 0; o < n; o++) r[o] = arguments[o]; return ( - ((t = e.call.apply(e, [this].concat(r)) || this).history = W( + ((t = e.call.apply(e, [this].concat(r)) || this).history = F( t.props )), t @@ -228962,7 +228974,7 @@ object-assign return ( Object(f.a)(t, e), (t.prototype.render = function() { - return c.a.createElement(Z, { + return c.a.createElement(ee, { history: this.history, children: this.props.children }); @@ -228970,69 +228982,153 @@ object-assign t ); })(c.a.Component); - var de = (function(e) { - function t() { - return e.apply(this, arguments) || this; - } - Object(f.a)(t, e); - var n = t.prototype; - return ( - (n.handleClick = function(e, t) { - try { - this.props.onClick && this.props.onClick(e); - } catch (t) { - throw (e.preventDefault(), t); + var pe = function(e, t) { + return 'function' == typeof e ? e(t) : e; + }, + he = function(e, t) { + return 'string' == typeof e ? O(e, null, null, t) : e; + }, + ge = function(e) { + return e; + }, + me = c.a.forwardRef; + void 0 === me && (me = ge); + var be = me(function(e, t) { + var n = e.innerRef, + r = e.navigate, + o = e.onClick, + i = Object($.a)(e, ['innerRef', 'navigate', 'onClick']), + a = i.target, + s = Object(h.a)({}, i, { + onClick: function(e) { + try { + o && o(e); + } catch (t) { + throw (e.preventDefault(), t); + } + e.defaultPrevented || + 0 !== e.button || + (a && '_self' !== a) || + (function(e) { + return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey); + })(e) || + (e.preventDefault(), r()); } - e.defaultPrevented || - 0 !== e.button || - (this.props.target && '_self' !== this.props.target) || - (function(e) { - return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey); - })(e) || - (e.preventDefault(), - (this.props.replace ? t.replace : t.push)(this.props.to)); - }), - (n.render = function() { - var e = this, - t = this.props, - n = t.innerRef, - r = (t.replace, t.to), - o = Object(K.a)(t, ['innerRef', 'replace', 'to']); - return c.a.createElement(J.Consumer, null, function(t) { - t || O(!1); - var i = 'string' == typeof r ? P(r, null, null, t.location) : r, - a = i ? t.history.createHref(i) : ''; - return c.a.createElement( - 'a', - Object(_.a)({}, o, { - onClick: function(n) { - return e.handleClick(n, t.history); - }, - href: a, - ref: n - }) - ); - }); - }), - t - ); - })(c.a.Component); - var pe = n(40), - he = c.a.createContext(null); - var ge = function(e) { + }); + return (s.ref = (ge !== me && t) || n), c.a.createElement('a', s); + }); + var ye = me(function(e, t) { + var n = e.component, + r = void 0 === n ? be : n, + o = e.replace, + i = e.to, + a = e.innerRef, + s = Object($.a)(e, ['component', 'replace', 'to', 'innerRef']); + return c.a.createElement(Z.Consumer, null, function(e) { + e || _(!1); + var n = e.history, + u = he(pe(i, e.location), e.location), + l = u ? n.createHref(u) : '', + f = Object(h.a)({}, s, { + href: l, + navigate: function() { + var t = pe(i, e.location); + (o ? n.replace : n.push)(t); + } + }); + return ( + ge !== me ? (f.ref = t || a) : (f.innerRef = a), + c.a.createElement(r, f) + ); + }); + }), + ve = function(e) { + return e; + }, + _e = c.a.forwardRef; + void 0 === _e && (_e = ve); + _e(function(e, t) { + var n = e['aria-current'], + r = void 0 === n ? 'page' : n, + o = e.activeClassName, + i = void 0 === o ? 'active' : o, + a = e.activeStyle, + s = e.className, + u = e.exact, + l = e.isActive, + f = e.location, + d = e.strict, + p = e.style, + g = e.to, + m = e.innerRef, + b = Object($.a)(e, [ + 'aria-current', + 'activeClassName', + 'activeStyle', + 'className', + 'exact', + 'isActive', + 'location', + 'strict', + 'style', + 'to', + 'innerRef' + ]); + return c.a.createElement(Z.Consumer, null, function(e) { + e || _(!1); + var n = f || e.location, + o = he(pe(g, n), n), + y = o.pathname, + v = y && y.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1'), + w = v ? oe(n.pathname, { path: v, exact: u, strict: d }) : null, + x = !!(l ? l(w, n) : w), + M = x + ? (function() { + for ( + var e = arguments.length, t = new Array(e), n = 0; + n < e; + n++ + ) + t[n] = arguments[n]; + return t + .filter(function(e) { + return e; + }) + .join(' '); + })(s, i) + : s, + k = x ? Object(h.a)({}, p, {}, a) : p, + S = Object(h.a)( + { + 'aria-current': (x && r) || null, + className: M, + style: k, + to: o + }, + b + ); + return ( + ve !== _e ? (S.ref = t || m) : (S.innerRef = m), + c.a.createElement(ye, S) + ); + }); + }); + var we = n(39), + xe = c.a.createContext(null); + var Me = function(e) { e(); }, - me = function() { - return ge; + ke = function() { + return Me; }, - be = null, - ye = { notify: function() {} }; - var ve = (function() { + Se = null, + Oe = { notify: function() {} }; + var Ee = (function() { function e(e, t) { (this.store = e), (this.parentSub = t), (this.unsubscribe = null), - (this.listeners = ye), + (this.listeners = Oe), (this.handleChangeWrapper = this.handleChangeWrapper.bind(this)); } var t = e.prototype; @@ -229056,12 +229152,12 @@ object-assign ? this.parentSub.addNestedSub(this.handleChangeWrapper) : this.store.subscribe(this.handleChangeWrapper)), (this.listeners = - ((e = me()), + ((e = ke()), (t = []), (n = []), { clear: function() { - (n = be), (t = be); + (n = Se), (t = Se); }, notify: function() { var r = (t = n); @@ -229079,7 +229175,7 @@ object-assign n.push(e), function() { r && - t !== be && + t !== Se && ((r = !1), n === t && (n = t.slice()), n.splice(n.indexOf(e), 1)); @@ -229093,18 +229189,18 @@ object-assign (this.unsubscribe(), (this.unsubscribe = null), this.listeners.clear(), - (this.listeners = ye)); + (this.listeners = Oe)); }), e ); })(); - function _e(e) { + function Ae(e) { var t = e.store, n = e.context, r = e.children, o = Object(s.useMemo)( function() { - var e = new ve(t); + var e = new Ee(t); return ( (e.onStateChange = e.notifyNestedSubs), { store: t, subscription: e } @@ -229131,37 +229227,37 @@ object-assign }, [o, i] ); - var a = n || he; + var a = n || xe; return c.a.createElement(a.Provider, { value: o }, r); } - _e.propTypes = { - store: g.a.shape({ - subscribe: g.a.func.isRequired, - dispatch: g.a.func.isRequired, - getState: g.a.func.isRequired + Ae.propTypes = { + store: p.a.shape({ + subscribe: p.a.func.isRequired, + dispatch: p.a.func.isRequired, + getState: p.a.func.isRequired }), - context: g.a.object, - children: g.a.any + context: p.a.object, + children: p.a.any }; - var we = _e, - xe = n(37), - Me = n.n(xe), - ke = [], - Se = [null, null]; - function Oe(e, t) { + var Te = Ae, + Ce = n(37), + Le = n.n(Ce), + Pe = [], + De = [null, null]; + function je(e, t) { var n = e[1]; return [t.payload, n + 1]; } - var Ee = function() { + var ze = function() { return [null, 0]; }, - Ae = + Ne = 'undefined' != typeof window && void 0 !== window.document && void 0 !== window.document.createElement ? s.useLayoutEffect : s.useEffect; - function Te(e, t) { + function Re(e, t) { void 0 === t && (t = {}); var n = t, r = n.getDisplayName, @@ -229178,14 +229274,14 @@ object-assign f = n.shouldHandleStateChanges, d = void 0 === f || f, p = n.storeKey, - h = void 0 === p ? 'store' : p, - g = n.withRef, - m = void 0 !== g && g, - b = n.forwardRef, - y = void 0 !== b && b, - v = n.context, - w = void 0 === v ? he : v, - x = Object(K.a)(n, [ + g = void 0 === p ? 'store' : p, + m = n.withRef, + b = void 0 !== m && m, + y = n.forwardRef, + v = void 0 !== y && y, + _ = n.context, + w = void 0 === _ ? xe : _, + x = Object($.a)(n, [ 'getDisplayName', 'methodName', 'renderCountProp', @@ -229195,28 +229291,28 @@ object-assign 'forwardRef', 'context' ]); - Me()( + Le()( void 0 === l, 'renderCountProp is removed. render counting is built into the latest React Dev Tools profiling extension' ), - Me()( - !m, + Le()( + !b, 'withRef is removed. To access the wrapped instance, use a ref on the connected component' ); - Me()( - 'store' === h, + Le()( + 'store' === g, "storeKey has been removed and does not do anything. To use a custom Redux store for specific components, create a custom React context with React.createContext(), and pass the context object to React Redux's Provider and specific components like: . You may also pass a {context : MyContext} option to connect" ); var M = w; return function(t) { var n = t.displayName || t.name || 'Component', r = o(n), - i = Object(_.a)({}, x, { + i = Object(h.a)({}, x, { getDisplayName: o, methodName: a, renderCountProp: l, shouldHandleStateChanges: d, - storeKey: h, + storeKey: g, displayName: r, wrappedComponentName: n, WrappedComponent: t @@ -229231,7 +229327,7 @@ object-assign var o = Object(s.useMemo)( function() { var e = n.forwardedRef, - t = Object(K.a)(n, ['forwardedRef']); + t = Object($.a)(n, ['forwardedRef']); return [n.context, e, t]; }, [n] @@ -229243,7 +229339,7 @@ object-assign function() { return a && a.Consumer && - Object(G.isContextConsumer)( + Object(K.isContextConsumer)( c.a.createElement(a.Consumer, null) ) ? a @@ -229251,44 +229347,44 @@ object-assign }, [a, M] ), - h = Object(s.useContext)(p), - g = Boolean(n.store), - m = Boolean(h) && Boolean(h.store); - Me()( - g || m, + g = Object(s.useContext)(p), + m = Boolean(n.store), + b = Boolean(g) && Boolean(g.store); + Le()( + m || b, 'Could not find "store" in the context of "' + r + '". Either wrap the root component in a , or pass a custom React context provider to and the corresponding React context consumer to ' + r + ' in connect options.' ); - var b = n.store || h.store, - y = Object(s.useMemo)( + var y = n.store || g.store, + v = Object(s.useMemo)( function() { return (function(t) { return e(t.dispatch, i); - })(b); + })(y); }, - [b] + [y] ), - v = Object(s.useMemo)( + _ = Object(s.useMemo)( function() { - if (!d) return Se; - var e = new ve(b, g ? null : h.subscription), + if (!d) return De; + var e = new Ee(y, m ? null : g.subscription), t = e.notifyNestedSubs.bind(e); return [e, t]; }, - [b, g, h] + [y, m, g] ), - w = v[0], - x = v[1], + w = _[0], + x = _[1], k = Object(s.useMemo)( function() { - return g ? h : Object(_.a)({}, h, { subscription: w }); + return m ? g : Object(h.a)({}, g, { subscription: w }); }, - [g, h, w] + [m, g, w] ), - S = Object(s.useReducer)(Oe, ke, Ee), + S = Object(s.useReducer)(je, Pe, ze), O = S[0][0], E = S[1]; if (O && O.error) throw O.error; @@ -229300,17 +229396,17 @@ object-assign function() { return C.current && l === T.current ? C.current - : y(b.getState(), l); + : v(y.getState(), l); }, - [b, O, l] + [y, O, l] ); - Ae(function() { + Ne(function() { (T.current = l), (A.current = P), (L.current = !1), C.current && ((C.current = null), x()); }), - Ae( + Ne( function() { if (d) { var e = !1, @@ -229319,9 +229415,9 @@ object-assign if (!e) { var n, r, - o = b.getState(); + o = y.getState(); try { - n = y(o, T.current); + n = v(o, T.current); } catch (e) { (r = e), (t = e); } @@ -229349,11 +229445,11 @@ object-assign }; } }, - [b, w, y] + [y, w, v] ); var D = Object(s.useMemo)( function() { - return c.a.createElement(t, Object(_.a)({}, P, { ref: u })); + return c.a.createElement(t, Object(h.a)({}, P, { ref: u })); }, [u, t, P] ); @@ -229364,27 +229460,27 @@ object-assign [p, D, k] ); } - var g = u ? c.a.memo(p) : p; - if (((g.WrappedComponent = t), (g.displayName = r), y)) { - var m = c.a.forwardRef(function(e, t) { + var m = u ? c.a.memo(p) : p; + if (((m.WrappedComponent = t), (m.displayName = r), v)) { + var b = c.a.forwardRef(function(e, t) { return c.a.createElement( - g, - Object(_.a)({}, e, { forwardedRef: t }) + m, + Object(h.a)({}, e, { forwardedRef: t }) ); }); - return (m.displayName = r), (m.WrappedComponent = t), Q()(m, t); + return (b.displayName = r), (b.WrappedComponent = t), J()(b, t); } - return Q()(g, t); + return J()(m, t); }; } - var Ce = Object.prototype.hasOwnProperty; - function Le(e, t) { + var Ie = Object.prototype.hasOwnProperty; + function Fe(e, t) { return e === t ? 0 !== e || 0 !== t || 1 / e == 1 / t : e != e && t != t; } - function Pe(e, t) { - if (Le(e, t)) return !0; + function qe(e, t) { + if (Fe(e, t)) return !0; if ( 'object' != typeof e || null === e || @@ -229396,10 +229492,10 @@ object-assign r = Object.keys(t); if (n.length !== r.length) return !1; for (var o = 0; o < n.length; o++) - if (!Ce.call(t, n[o]) || !Le(e[n[o]], t[n[o]])) return !1; + if (!Ie.call(t, n[o]) || !Fe(e[n[o]], t[n[o]])) return !1; return !0; } - function De(e) { + function Be(e) { return function(t, n) { var r = e(t, n); function o() { @@ -229408,12 +229504,12 @@ object-assign return (o.dependsOnOwnProps = !1), o; }; } - function je(e) { + function He(e) { return null !== e.dependsOnOwnProps && void 0 !== e.dependsOnOwnProps ? Boolean(e.dependsOnOwnProps) : 1 !== e.length; } - function ze(e, t) { + function Ye(e, t) { return function(t, n) { n.displayName; var r = function(e, t) { @@ -229422,12 +229518,12 @@ object-assign return ( (r.dependsOnOwnProps = !0), (r.mapToProps = function(t, n) { - (r.mapToProps = e), (r.dependsOnOwnProps = je(e)); + (r.mapToProps = e), (r.dependsOnOwnProps = He(e)); var o = r(t, n); return ( 'function' == typeof o && ((r.mapToProps = o), - (r.dependsOnOwnProps = je(o)), + (r.dependsOnOwnProps = He(o)), (o = r(t, n))), o ); @@ -229436,41 +229532,41 @@ object-assign ); }; } - var Ne = [ + var We = [ function(e) { - return 'function' == typeof e ? ze(e) : void 0; + return 'function' == typeof e ? Ye(e) : void 0; }, function(e) { return e ? void 0 - : De(function(e) { + : Be(function(e) { return { dispatch: e }; }); }, function(e) { return e && 'object' == typeof e - ? De(function(t) { - return Object(pe.bindActionCreators)(e, t); + ? Be(function(t) { + return Object(we.bindActionCreators)(e, t); }) : void 0; } ]; - var Re = [ + var Ve = [ function(e) { - return 'function' == typeof e ? ze(e) : void 0; + return 'function' == typeof e ? Ye(e) : void 0; }, function(e) { return e ? void 0 - : De(function() { + : Be(function() { return {}; }); } ]; - function Ie(e, t, n) { - return Object(_.a)({}, n, {}, e, {}, t); + function Ue(e, t, n) { + return Object(h.a)({}, n, {}, e, {}, t); } - var Fe = [ + var Xe = [ function(e) { return 'function' == typeof e ? (function(e) { @@ -229494,16 +229590,16 @@ object-assign return e ? void 0 : function() { - return Ie; + return Ue; }; } ]; - function qe(e, t, n, r) { + function Ge(e, t, n, r) { return function(o, i) { return n(e(o, i), t(r, i), i); }; } - function Be(e, t, n, r, o) { + function Ke(e, t, n, r, o) { var i, a, s, @@ -229548,11 +229644,11 @@ object-assign u); }; } - function He(e, t) { + function $e(e, t) { var n = t.initMapStateToProps, r = t.initMapDispatchToProps, o = t.initMergeProps, - i = Object(K.a)(t, [ + i = Object($.a)(t, [ 'initMapStateToProps', 'initMapDispatchToProps', 'initMergeProps' @@ -229560,9 +229656,9 @@ object-assign a = n(e, i), s = r(e, i), c = o(e, i); - return (i.pure ? Be : qe)(a, s, c, e, i); + return (i.pure ? Ke : Ge)(a, s, c, e, i); } - function Ye(e, t, n) { + function Qe(e, t, n) { for (var r = t.length - 1; r >= 0; r--) { var o = t[r](e); if (o) return o; @@ -229579,92 +229675,92 @@ object-assign ); }; } - function We(e, t) { + function Je(e, t) { return e === t; } - var Ve, - Ue, - Xe, - Ge, - Ke, - $e, - Qe, - Je, - Ze, + var Ze, et, tt, nt, - rt = - ((Xe = (Ue = void 0 === Ve ? {} : Ve).connectHOC), - (Ge = void 0 === Xe ? Te : Xe), - (Ke = Ue.mapStateToPropsFactories), - ($e = void 0 === Ke ? Re : Ke), - (Qe = Ue.mapDispatchToPropsFactories), - (Je = void 0 === Qe ? Ne : Qe), - (Ze = Ue.mergePropsFactories), - (et = void 0 === Ze ? Fe : Ze), - (tt = Ue.selectorFactory), - (nt = void 0 === tt ? He : tt), + rt, + ot, + it, + at, + st, + ct, + ut, + lt, + ft = + ((tt = (et = void 0 === Ze ? {} : Ze).connectHOC), + (nt = void 0 === tt ? Re : tt), + (rt = et.mapStateToPropsFactories), + (ot = void 0 === rt ? Ve : rt), + (it = et.mapDispatchToPropsFactories), + (at = void 0 === it ? We : it), + (st = et.mergePropsFactories), + (ct = void 0 === st ? Xe : st), + (ut = et.selectorFactory), + (lt = void 0 === ut ? $e : ut), function(e, t, n, r) { void 0 === r && (r = {}); var o = r, i = o.pure, a = void 0 === i || i, s = o.areStatesEqual, - c = void 0 === s ? We : s, + c = void 0 === s ? Je : s, u = o.areOwnPropsEqual, - l = void 0 === u ? Pe : u, + l = void 0 === u ? qe : u, f = o.areStatePropsEqual, - d = void 0 === f ? Pe : f, + d = void 0 === f ? qe : f, p = o.areMergedPropsEqual, - h = void 0 === p ? Pe : p, - g = Object(K.a)(o, [ + g = void 0 === p ? qe : p, + m = Object($.a)(o, [ 'pure', 'areStatesEqual', 'areOwnPropsEqual', 'areStatePropsEqual', 'areMergedPropsEqual' ]), - m = Ye(e, $e, 'mapStateToProps'), - b = Ye(t, Je, 'mapDispatchToProps'), - y = Ye(n, et, 'mergeProps'); - return Ge( - nt, - Object(_.a)( + b = Qe(e, ot, 'mapStateToProps'), + y = Qe(t, at, 'mapDispatchToProps'), + v = Qe(n, ct, 'mergeProps'); + return nt( + lt, + Object(h.a)( { methodName: 'connect', getDisplayName: function(e) { return 'Connect(' + e + ')'; }, shouldHandleStateChanges: Boolean(e), - initMapStateToProps: m, - initMapDispatchToProps: b, - initMergeProps: y, + initMapStateToProps: b, + initMapDispatchToProps: y, + initMergeProps: v, pure: a, areStatesEqual: c, areOwnPropsEqual: l, areStatePropsEqual: d, - areMergedPropsEqual: h + areMergedPropsEqual: g }, - g + m ) ); }); - function ot() { - var e = Object(s.useContext)(he); + function dt() { + var e = Object(s.useContext)(xe); return ( - Me()( + Le()( e, 'could not find react-redux context value; please ensure the component is wrapped in a ' ), e ); } - function it(e) { - void 0 === e && (e = he); + function pt(e) { + void 0 === e && (e = xe); var t = - e === he - ? ot + e === xe + ? dt : function() { return Object(s.useContext)(e); }; @@ -229672,26 +229768,26 @@ object-assign return t().store; }; } - var at = it(); + var ht = pt(); !(function(e) { - void 0 === e && (e = he); - var t = e === he ? at : it(e); + void 0 === e && (e = xe); + var t = e === xe ? ht : pt(e); })(); - var st = 'undefined' != typeof window ? s.useLayoutEffect : s.useEffect, - ct = function(e, t) { + var gt = 'undefined' != typeof window ? s.useLayoutEffect : s.useEffect, + mt = function(e, t) { return e === t; }; - var ut; + var bt; !(function(e) { - void 0 === e && (e = he); + void 0 === e && (e = xe); var t = - e === he - ? ot + e === xe + ? dt : function() { return Object(s.useContext)(e); }; })(); - function lt(e) { + function yt(e) { return function(t) { var n = t.dispatch, r = t.getState; @@ -229702,19 +229798,19 @@ object-assign }; }; } - (ut = u.unstable_batchedUpdates), (ge = ut); - var ft = lt(); - ft.withExtraArgument = lt; - var dt = ft, - pt = n(190), - ht = n.n(pt), - gt = n(16), - mt = n.n(gt), - bt = n(30), - yt = n.n(bt), - vt = n(23), - _t = n.n(vt); - function wt(e, t, n, r, o, i) { + (bt = u.unstable_batchedUpdates), (Me = bt); + var vt = yt(); + vt.withExtraArgument = yt; + var _t = vt, + wt = n(190), + xt = n.n(wt), + Mt = n(16), + kt = n.n(Mt), + St = n(31), + Ot = n.n(St), + Et = n(23), + At = n.n(Et); + function Tt(e, t, n, r, o, i) { var a = 0, s = 0, c = 0, @@ -229793,7 +229889,7 @@ object-assign } return { top: a, left: s, width: c, height: u }; } - function xt(e, t, n, r) { + function Ct(e, t, n, r) { var o = r.width, i = 20 * Math.round((r.top + window.pageYOffset) / 20), a = 20; @@ -229802,7 +229898,7 @@ object-assign left: t <= 0 ? 20 : t + n >= o - a ? o - n - a : t }; } - var Mt = function(e, t) { + var Lt = function(e, t) { switch (e) { case 'az': return t.sort(function(e, t) { @@ -229842,7 +229938,7 @@ object-assign }); } }, - kt = { + Pt = { id: 1, title: 'My great dashboard', last_modified_date: 'Mon, 02 Dec 2019 15:16:38 GMT', @@ -229895,11 +229991,11 @@ object-assign ] } }, - St = n(452), - Ot = function() { - return Object(St.uuid)(); + Dt = n(452), + jt = function() { + return Object(Dt.uuid)(); }; - function Et(e, t) { + function zt(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); @@ -229911,22 +230007,22 @@ object-assign } return n; } - var At = function(e) { + var Nt = function(e) { return void 0 !== e.id ? e : (function(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 - ? Et(n, !0).forEach(function(t) { - yt()(e, t, n[t]); + ? zt(n, !0).forEach(function(t) { + Ot()(e, t, n[t]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, Object.getOwnPropertyDescriptors(n) ) - : Et(n).forEach(function(t) { + : zt(n).forEach(function(t) { Object.defineProperty( e, t, @@ -229935,9 +230031,9 @@ object-assign }); } return e; - })({}, e, { id: Ot() }); + })({}, e, { id: jt() }); }; - function Tt(e, t) { + function Rt(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); @@ -229949,16 +230045,16 @@ object-assign } return n; } - function Ct(e) { + function It(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 - ? Tt(n, !0).forEach(function(t) { - yt()(e, t, n[t]); + ? Rt(n, !0).forEach(function(t) { + Ot()(e, t, n[t]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) - : Tt(n).forEach(function(t) { + : Rt(n).forEach(function(t) { Object.defineProperty( e, t, @@ -229968,14 +230064,14 @@ object-assign } return e; } - var Lt = { value: '', label: 'Default' }, - Pt = { + var Ft = { value: '', label: 'Default' }, + qt = { dashboardInfo: { id: '', title: '', data: { version: 2, items: [] }, settings: { - palette: Lt, + palette: Ft, colors: [], picker: {}, dryRun: !1, @@ -230007,18 +230103,18 @@ object-assign dashboardMenuFilter: '', sortingValue: { value: 'az', label: 'A - Z' } }, - Dt = Object(pe.combineReducers)( - yt()({}, 'app', function() { + Bt = Object(we.combineReducers)( + Ot()({}, 'app', function() { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] - : Pt, + : qt, t = arguments.length > 1 ? arguments[1] : void 0, n = e.dashboardInfo, r = e.grid; switch (t.type) { case 'LOAD_DASHBOARDS': - return Ct({}, e, { + return It({}, e, { isDashboardListLoaded: !0, dashboardList: t.dashboardList.sort(function(e, t) { return e.title.toLowerCase() < t.title.toLowerCase() @@ -230029,17 +230125,17 @@ object-assign }) }); case 'ADD_DASHBOARD_ITEM': - return Ct({}, e, { + return It({}, e, { dashboardInfo: t.dashboardInfo, newDashboardId: t.dashboardInfo.id }); case 'HANDLE_SEARCH': - return Ct({}, e, { searchInput: t.value }); + return It({}, e, { searchInput: t.value }); case 'DELETE_DASHBOARD_ITEM': var o = e.dashboardList.filter(function(e) { return e.id !== t.id; }); - return Ct({}, e, { + return It({}, e, { dashboardList: o.sort(function(e, t) { return e.title.toLowerCase() < t.title.toLowerCase() ? -1 @@ -230053,26 +230149,26 @@ object-assign a = (i && i.map(function(e) { - return At(e); + return Nt(e); })) || [], - s = Ct({}, t.dashboardInfo, { - data: Ct({}, t.dashboardInfo.data, { items: a }) + s = It({}, t.dashboardInfo, { + data: It({}, t.dashboardInfo.data, { items: a }) }); - return Ct({}, e, { + return It({}, e, { isDashboardLoading: t.isDashboardLoading, dashboardInfo: s }); case 'UPDATE_DASHBOARD_INFO': - return Ct({}, e, { dashboardInfo: t.dashboardInfo }); + return It({}, e, { dashboardInfo: t.dashboardInfo }); case 'CLEAR_DASHBOARD_INFO': - return Ct({}, e, { + return It({}, e, { dashboardInfo: { id: '', title: '', data: { version: 2, items: [] }, settings: { - palette: Lt, + palette: Ft, colors: [], picker: {}, dryRun: !1, @@ -230086,15 +230182,15 @@ object-assign settingsVisible: !1 }); case 'SET_LOADING': - return Ct({}, e, { isLoading: t.index }); + return It({}, e, { isLoading: t.index }); case 'SELECT_SAVED_QUERY': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - data: Ct({}, n.data, { - items: mt()( + return It({}, e, { + dashboardInfo: It({}, n, { + data: It({}, n.data, { + items: kt()( n.data.items.map(function(e, n) { return t.index === n - ? Ct({}, e, { + ? It({}, e, { sparkline: !1, savedQuery: t.savedQueries, error: !1 @@ -230106,13 +230202,13 @@ object-assign }) }); case 'CHANGE_CHART_TYPE': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - data: Ct({}, n.data, { - items: mt()( + return It({}, e, { + dashboardInfo: It({}, n, { + data: It({}, n.data, { + items: kt()( n.data.items.map(function(e, n) { return t.index === n - ? Ct({}, e, { type: t.value }) + ? It({}, e, { type: t.value }) : e; }) ) @@ -230121,12 +230217,12 @@ object-assign isLoading: !1 }); case 'SAVED_QUERY_ERROR': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - data: Ct({}, n.data, { + return It({}, e, { + dashboardInfo: It({}, n, { + data: It({}, n.data, { items: n.data.items.map(function(e, n) { return t.index === n - ? Ct({}, e, { error: t.error }) + ? It({}, e, { error: t.error }) : e; }) }) @@ -230134,14 +230230,14 @@ object-assign }); case 'GET_SAVED_QUERIES': var c = t.savedQueries; - return Ct({}, e, { savedQueries: c }); + return It({}, e, { savedQueries: c }); case 'LOAD_SAVED_QUERIES': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - data: Ct({}, n.data, { + return It({}, e, { + dashboardInfo: It({}, n, { + data: It({}, n.data, { items: n.data.items.map(function(e, n) { return t.index === n - ? Ct({}, e, { + ? It({}, e, { sparkline: !!e.sparkline && e.sparkline }) : e; @@ -230150,132 +230246,132 @@ object-assign }) }); case 'LOAD_SAVED_ERROR': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - data: Ct({}, n.data, { + return It({}, e, { + dashboardInfo: It({}, n, { + data: It({}, n.data, { items: n.data.items.map(function(e, n) { return t.index === n - ? Ct({}, e, { error: t.error }) + ? It({}, e, { error: t.error }) : e; }) }) }) }); case 'SAVE_DASHBOARD': - return Ct({}, e, { dashboardSaved: !0 }); + return It({}, e, { dashboardSaved: !0 }); case 'HIDE_SAVED_DASHBOARD_MESSAGE': - return Ct({}, e, { dashboardSaved: !1 }); + return It({}, e, { dashboardSaved: !1 }); case 'CHANGE_DASHBOARD_TITLE': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { title: t.title }) + return It({}, e, { + dashboardInfo: It({}, n, { title: t.title }) }); case 'TOGGLE_DRY_RUN': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - settings: Ct({}, n.settings, { + return It({}, e, { + dashboardInfo: It({}, n, { + settings: It({}, n.settings, { dryRun: !n.settings.dryRun }), - theme: Ct({}, n.theme) + theme: It({}, n.theme) }) }); case 'TOGGLE_IS_PUBLIC': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { is_public: !n.is_public }) + return It({}, e, { + dashboardInfo: It({}, n, { is_public: !n.is_public }) }); case 'SET_THEME': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - settings: Ct({}, n.settings, { theme: t.value }) + return It({}, e, { + dashboardInfo: It({}, n, { + settings: It({}, n.settings, { theme: t.value }) }) }); case 'SET_CHART_THEME': var u = n.settings.charts_theme - ? mt()(n.settings.charts_theme) + ? kt()(n.settings.charts_theme) : []; return ( (u[t.index] = t.value), - Ct({}, e, { - dashboardInfo: Ct({}, n, { - settings: Ct({}, n.settings, { charts_theme: u }) + It({}, e, { + dashboardInfo: It({}, n, { + settings: It({}, n.settings, { charts_theme: u }) }) }) ); case 'SET_LAYOUT': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - settings: Ct({}, n.settings, { + return It({}, e, { + dashboardInfo: It({}, n, { + settings: It({}, n.settings, { layout: t.layout, items: t.items }) }) }); case 'SELECT_PALETTE': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - settings: Ct({}, n.settings, { palette: t.value }), - data: Ct({}, n.data, { + return It({}, e, { + dashboardInfo: It({}, n, { + settings: It({}, n.settings, { palette: t.value }), + data: It({}, n.data, { items: n.data.items && n.data.items.map(function(e) { - return Ct({}, e, { palette: t.value }); + return It({}, e, { palette: t.value }); }) }) }) }); case 'CHANGE_COLORS': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - settings: Ct({}, n.settings, { colors: t.value }), - data: Ct({}, n.data, { + return It({}, e, { + dashboardInfo: It({}, n, { + settings: It({}, n.settings, { colors: t.value }), + data: It({}, n.data, { items: n.data.items.map(function(e) { - return Ct({}, e, { colors: t.value }); + return It({}, e, { colors: t.value }); }) }) }) }); case 'CHANGE_PICKER_COLORS': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - settings: Ct({}, n.settings, { picker: t.value }), - data: Ct({}, n.data, { + return It({}, e, { + dashboardInfo: It({}, n, { + settings: It({}, n.settings, { picker: t.value }), + data: It({}, n.data, { items: n.data.items.map(function(e) { - return Ct({}, e, { picker: t.value }); + return It({}, e, { picker: t.value }); }) }) }) }); case 'SHOW_TOOLBAR': - return Ct({}, e, { toolbarVisible: !0 }); + return It({}, e, { toolbarVisible: !0 }); case 'CLOSE_TOOLBAR': - return Ct({}, e, { toolbarVisible: !1 }); + return It({}, e, { toolbarVisible: !1 }); case 'DRAG_START_HANDLER': - return Ct({}, e, { + return It({}, e, { draggedType: t.draggedType, toolbarVisible: !1 }); case 'DROP_HANDLER': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - data: Ct({}, n.data, { - items: [].concat(mt()(n.data.items), [t.newElement]) + return It({}, e, { + dashboardInfo: It({}, n, { + data: It({}, n.data, { + items: [].concat(kt()(n.data.items), [t.newElement]) }) }), draggedType: {}, settingsVisible: n.data.items.length }); case 'RESIZE_CHART': - return Ct({}, e, { + return It({}, e, { isResizing: t.index, settingsVisible: t.index, - dashboardInfo: Ct({}, n, { - data: Ct({}, n.data, { + dashboardInfo: It({}, n, { + data: It({}, n.data, { items: n.data.items.map(function(e, n) { return t.index === n - ? Ct( + ? It( {}, e, {}, - wt( + Tt( t.element, t.ePageX, t.ePageY, @@ -230290,18 +230386,18 @@ object-assign }) }); case 'STOP_RESIZE_CHART': - return Ct({}, e, { isResizing: void 0 }); + return It({}, e, { isResizing: void 0 }); case 'MOVE_CHART': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - data: Ct({}, n.data, { + return It({}, e, { + dashboardInfo: It({}, n, { + data: It({}, n.data, { items: n.data.items.map(function(e, n) { return t.index === n - ? Ct( + ? It( {}, e, {}, - xt( + Ct( Math.round((t.ePageY - e.height / 2) / r) * r, Math.round( (t.ePageX - t.clientRect.left - e.width / 2) / @@ -230320,28 +230416,28 @@ object-assign isMoving: t.index }); case 'COL_MOVE_CHART': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - data: Ct({}, n.data, { + return It({}, e, { + dashboardInfo: It({}, n, { + data: It({}, n.data, { items: n.data.items.map(function(e, n) { return t.index === n - ? Ct({}, e, { top: t.ePageY, left: t.ePageX }) + ? It({}, e, { top: t.ePageY, left: t.ePageX }) : e; }) }) }) }); case 'STOP_MOVE_CHART': - return Ct({}, e, { isMoving: void 0 }); + return It({}, e, { isMoving: void 0 }); case 'DELETE_CHART': var l = confirm('Do You want to delete this chart?'); if (l) return ( - _t.a.hide(), - Ct({}, e, { + At.a.hide(), + It({}, e, { settingsVisible: !1, - dashboardInfo: Ct({}, n, { - data: Ct({}, n.data, { + dashboardInfo: It({}, n, { + data: It({}, n.data, { items: n.data.items.filter(function(e, n) { return n !== t.index; }) @@ -230350,17 +230446,17 @@ object-assign }) ); case 'CLOSE_SETTINGS': - return Ct({}, e, { settingsVisible: !1 }); + return It({}, e, { settingsVisible: !1 }); case 'SHOW_SETTINGS': - return Ct({}, e, { settingsVisible: t.index }); + return It({}, e, { settingsVisible: t.index }); case 'SELECT_LEGEND_POSITION': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - data: Ct({}, n.data, { - items: mt()( + return It({}, e, { + dashboardInfo: It({}, n, { + data: It({}, n.data, { + items: kt()( n.data.items.map(function(e, n) { return t.index === n - ? Ct({}, e, { legend: t.value }) + ? It({}, e, { legend: t.value }) : e; }) ) @@ -230368,13 +230464,13 @@ object-assign }) }); case 'SELECT_SPARKLINE_OPTION': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - data: Ct({}, n.data, { - items: mt()( + return It({}, e, { + dashboardInfo: It({}, n, { + data: It({}, n.data, { + items: kt()( n.data.items.map(function(e, n) { return t.index === n - ? Ct({}, e, { sparkline: t.value }) + ? It({}, e, { sparkline: t.value }) : e; }) ) @@ -230382,13 +230478,13 @@ object-assign }) }); case 'SELECT_STACKING_OPTION': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - data: Ct({}, n.data, { - items: mt()( + return It({}, e, { + dashboardInfo: It({}, n, { + data: It({}, n.data, { + items: kt()( n.data.items.map(function(e, n) { return t.index === n - ? Ct({}, e, { stacking: t.value }) + ? It({}, e, { stacking: t.value }) : e; }) ) @@ -230396,13 +230492,13 @@ object-assign }) }); case 'SET_SRC_FOR_IMG': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - data: Ct({}, n.data, { - items: mt()( + return It({}, e, { + dashboardInfo: It({}, n, { + data: It({}, n.data, { + items: kt()( n.data.items.map(function(e, n) { return t.index === n - ? Ct({}, e, { src: t.value }) + ? It({}, e, { src: t.value }) : e; }) ) @@ -230411,13 +230507,13 @@ object-assign }); case 'SET_TEXT_FOR_PARAGRAPH': if ('user' === t.source) - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - data: Ct({}, n.data, { - items: mt()( + return It({}, e, { + dashboardInfo: It({}, n, { + data: It({}, n.data, { + items: kt()( n.data.items.map(function(e, n) { return t.index === n - ? Ct({}, e, { text: t.newValue }) + ? It({}, e, { text: t.newValue }) : e; }) ) @@ -230425,29 +230521,29 @@ object-assign }) }); case 'CLONE_CHART': - var f = Ct({}, n.data.items[t.index], { + var f = It({}, n.data.items[t.index], { top: n.data.items[t.index].top + n.data.items[t.index].height }); - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - data: Ct({}, n.data, { - items: [].concat(mt()(n.data.items), [f]) + return It({}, e, { + dashboardInfo: It({}, n, { + data: It({}, n.data, { + items: [].concat(kt()(n.data.items), [f]) }) }) }); case 'TOGGLE_DASHBOARDS_MENU': - return Ct({}, e, { dashboardsMenu: t.value || '' }); + return It({}, e, { dashboardsMenu: t.value || '' }); case 'SET_NEW_DASHBOARD_FOR_FOCUS': - return Ct({}, e, { newDashboardId: t.value }); + return It({}, e, { newDashboardId: t.value }); case 'SET_ACCESS_KEY': - return Ct({}, e, { accessKey: t.value }); + return It({}, e, { accessKey: t.value }); case 'CLEAR_ACCESS_KEY': - return Ct({}, e, { accessKey: '' }); + return It({}, e, { accessKey: '' }); case 'CHANGE_SCREEN_SIZE': - return Ct({}, e, { + return It({}, e, { screenSize: t.value, - dashboardInfo: Ct({}, n, { - data: Ct({}, n.data, { + dashboardInfo: It({}, n, { + data: It({}, n.data, { items: n.data.items.sort(function(e, t) { return e.top < t.top ? -1 : e.top > t.top ? 1 : 0; }) @@ -230455,24 +230551,24 @@ object-assign }) }); case 'MAP_OLD_ITEMS': - return Ct({}, e, { dashboardInfo: t.newDashboard }); + return It({}, e, { dashboardInfo: t.newDashboard }); case 'LOADING_SINGLE_DASHBOARD': - return Ct({}, e, { isDashboardLoading: !0 }); + return It({}, e, { isDashboardLoading: !0 }); case 'FILTER_DASHBOARDS_MENU': - return Ct({}, e, { dashboardMenuFilter: t.value }); + return It({}, e, { dashboardMenuFilter: t.value }); case 'CHANGE_SORTING': - return Ct({}, e, { + return It({}, e, { sortingValue: t.sorting, - dashboardList: Mt(t.sorting.value, e.dashboardList) + dashboardList: Lt(t.sorting.value, e.dashboardList) }); case 'SET_PREFIX': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - data: Ct({}, n.data, { - items: mt()( + return It({}, e, { + dashboardInfo: It({}, n, { + data: It({}, n.data, { + items: kt()( n.data.items.map(function(e, n) { return t.index === n - ? Ct({}, e, { prefix: t.value }) + ? It({}, e, { prefix: t.value }) : e; }) ) @@ -230480,13 +230576,13 @@ object-assign }) }); case 'SET_SUFFIX': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - data: Ct({}, n.data, { - items: mt()( + return It({}, e, { + dashboardInfo: It({}, n, { + data: It({}, n.data, { + items: kt()( n.data.items.map(function(e, n) { return t.index === n - ? Ct({}, e, { suffix: t.value }) + ? It({}, e, { suffix: t.value }) : e; }) ) @@ -230494,13 +230590,13 @@ object-assign }) }); case 'SELECT_SHOW_POINTS': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - data: Ct({}, n.data, { - items: mt()( + return It({}, e, { + dashboardInfo: It({}, n, { + data: It({}, n.data, { + items: kt()( n.data.items.map(function(e, n) { return t.index === n - ? Ct({}, e, { showPoints: t.value }) + ? It({}, e, { showPoints: t.value }) : e; }) ) @@ -230508,13 +230604,13 @@ object-assign }) }); case 'SELECT_POINTS_SIZE': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - data: Ct({}, n.data, { - items: mt()( + return It({}, e, { + dashboardInfo: It({}, n, { + data: It({}, n.data, { + items: kt()( n.data.items.map(function(e, n) { return t.index === n - ? Ct({}, e, { pointsSize: t.value }) + ? It({}, e, { pointsSize: t.value }) : e; }) ) @@ -230522,13 +230618,13 @@ object-assign }) }); case 'SELECT_CHOROPLETH_MAP': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - data: Ct({}, n.data, { - items: mt()( + return It({}, e, { + dashboardInfo: It({}, n, { + data: It({}, n.data, { + items: kt()( n.data.items.map(function(e, n) { return t.index === n - ? Ct({}, e, { mapChoropleth: t.value }) + ? It({}, e, { mapChoropleth: t.value }) : e; }) ) @@ -230536,13 +230632,13 @@ object-assign }) }); case 'SHOW_CHOROPLETH_BORDER': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - data: Ct({}, n.data, { - items: mt()( + return It({}, e, { + dashboardInfo: It({}, n, { + data: It({}, n.data, { + items: kt()( n.data.items.map(function(e, n) { return t.index === n - ? Ct({}, e, { borderChoropleth: t.value }) + ? It({}, e, { borderChoropleth: t.value }) : e; }) ) @@ -230550,13 +230646,13 @@ object-assign }) }); case 'SELECT_CHOROPLETH_BORDER_SIZE': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - data: Ct({}, n.data, { - items: mt()( + return It({}, e, { + dashboardInfo: It({}, n, { + data: It({}, n.data, { + items: kt()( n.data.items.map(function(e, n) { return t.index === n - ? Ct({}, e, { borderSizeChoropleth: t.value }) + ? It({}, e, { borderSizeChoropleth: t.value }) : e; }) ) @@ -230564,13 +230660,13 @@ object-assign }) }); case 'SHOW_CHOROPLETH_SLIDERS': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - data: Ct({}, n.data, { - items: mt()( + return It({}, e, { + dashboardInfo: It({}, n, { + data: It({}, n.data, { + items: kt()( n.data.items.map(function(e, n) { return t.index === n - ? Ct({}, e, { slidersChoropleth: t.value }) + ? It({}, e, { slidersChoropleth: t.value }) : e; }) ) @@ -230578,13 +230674,13 @@ object-assign }) }); case 'SHOW_HEATMAP_SLIDERS': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - data: Ct({}, n.data, { - items: mt()( + return It({}, e, { + dashboardInfo: It({}, n, { + data: It({}, n.data, { + items: kt()( n.data.items.map(function(e, n) { return t.index === n - ? Ct({}, e, { slidersHeatmap: t.value }) + ? It({}, e, { slidersHeatmap: t.value }) : e; }) ) @@ -230592,13 +230688,13 @@ object-assign }) }); case 'SHOW_HEATMAP_TOOLTIP_VALUE': - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - data: Ct({}, n.data, { - items: mt()( + return It({}, e, { + dashboardInfo: It({}, n, { + data: It({}, n.data, { + items: kt()( n.data.items.map(function(e, n) { return t.index === n - ? Ct({}, e, { heatmapTooltipValue: t.value }) + ? It({}, e, { heatmapTooltipValue: t.value }) : e; }) ) @@ -230607,22 +230703,22 @@ object-assign }); case 'CHANGE_SAVED_QUERY_LIST': var d = t.savedQueriesList; - return Ct({}, e, { - dashboardInfo: Ct({}, n, { - settings: Ct({}, n.settings, { savedQueriesList: d }) + return It({}, e, { + dashboardInfo: It({}, n, { + settings: It({}, n.settings, { savedQueriesList: d }) }) }); case 'LOAD_DUMMY_DASHBOARDS': - return Ct({}, e, { - dashboardList: [kt], - dashboardInfo: Ct({}, e.dashboardInfo, {}, kt) + return It({}, e, { + dashboardList: [Pt], + dashboardInfo: It({}, e.dashboardInfo, {}, Pt) }); default: return e; } }) ), - jt = function(e) { + Ht = function(e) { return function() { return function(t) { return function(n) { @@ -230640,35 +230736,35 @@ object-assign }; }; }, - zt = (n(202), n(203), n(112)), - Nt = n(19), - Rt = n.n(Nt), - It = 'en', - Ft = {}; - function qt() { - return It; + Yt = (n(202), n(203), n(112)), + Wt = n(19), + Vt = n.n(Wt), + Ut = 'en', + Xt = {}; + function Gt() { + return Ut; } - function Bt(e) { - return Ft[e]; + function Kt(e) { + return Xt[e]; } - function Ht(e) { + function $t(e) { var t = (arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}) .localeMatcher || 'lookup'; switch (t) { case 'lookup': case 'best fit': - return Yt(e); + return Qt(e); default: throw new RangeError('Invalid "localeMatcher" option: '.concat(t)); } } - function Yt(e) { - if (Bt(e)) return e; + function Qt(e) { + if (Kt(e)) return e; for (var t = e.split('-'); e.length > 1; ) - if ((t.pop(), Bt((e = t.join('-'))))) return e; + if ((t.pop(), Kt((e = t.join('-'))))) return e; } - function Wt(e, t) { + function Jt(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -230677,7 +230773,7 @@ object-assign Object.defineProperty(e, r.key, r); } } - function Vt(e, t, n) { + function Zt(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { @@ -230690,7 +230786,7 @@ object-assign e ); } - var Ut = [ + var en = [ 'second', 'minute', 'hour', @@ -230700,9 +230796,9 @@ object-assign 'quarter', 'year' ], - Xt = ['auto', 'always'], - Gt = ['long', 'short', 'narrow'], - Kt = (function() { + tn = ['auto', 'always'], + nn = ['long', 'short', 'narrow'], + rn = (function() { function e() { var t = arguments.length > 0 && void 0 !== arguments[0] @@ -230716,33 +230812,33 @@ object-assign if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function'); })(this, e), - Vt(this, 'numeric', 'always'), - Vt(this, 'style', 'long'), - Vt(this, 'localeMatcher', 'lookup'); + Zt(this, 'numeric', 'always'), + Zt(this, 'style', 'long'), + Zt(this, 'localeMatcher', 'lookup'); var r = n.numeric, o = n.style, i = n.localeMatcher; if (r) { - if (Xt.indexOf(r) < 0) + if (tn.indexOf(r) < 0) throw new RangeError('Invalid "numeric" option: '.concat(r)); this.numeric = r; } if (o) { - if (Gt.indexOf(o) < 0) + if (nn.indexOf(o) < 0) throw new RangeError('Invalid "style" option: '.concat(o)); this.style = o; } if ( (i && (this.localeMatcher = i), 'string' == typeof t && (t = [t]), - t.push(qt()), + t.push(Gt()), (this.locale = e.supportedLocalesOf(t, { localeMatcher: this.localeMatcher })[0]), !this.locale) ) throw new TypeError('No supported locale was found'); - (this.locale = Ht(this.locale, { + (this.locale = $t(this.locale, { localeMatcher: this.localeMatcher })), 'undefined' != typeof Intl && @@ -230788,9 +230884,9 @@ object-assign { key: 'getRule', value: function(e, t) { - if (Ut.indexOf(t) < 0) + if (en.indexOf(t) < 0) throw new RangeError('Unknown time unit: '.concat(t, '.')); - var n = Bt(this.locale)[this.style][t]; + var n = Kt(this.locale)[this.style][t]; if ('auto' === this.numeric) if (-2 === e || -1 === e) { var r = @@ -230803,7 +230899,7 @@ object-assign } else if (0 === e && n.current) return n.current; var i = n[e <= 0 ? 'past' : 'future']; if ('string' == typeof i) return i; - var a = Bt(this.locale).quantify, + var a = Kt(this.locale).quantify, s = a && a(Math.abs(e)); return i[(s = s || 'other')] || i.other; } @@ -230826,13 +230922,13 @@ object-assign }; } } - ]) && Wt(t.prototype, n), - r && Wt(t, r), + ]) && Jt(t.prototype, n), + r && Jt(t, r), e ); })(); - function $t(e) { - return ($t = + function on(e) { + return (on = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { return typeof e; @@ -230846,7 +230942,7 @@ object-assign : typeof e; })(e); } - function Qt(e, t) { + function an(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -230855,25 +230951,25 @@ object-assign Object.defineProperty(e, r.key, r); } } - (Kt.supportedLocalesOf = function(e) { + (rn.supportedLocalesOf = function(e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; return ( 'string' == typeof e && (e = [e]), e.filter(function(e) { - return Ht(e, t); + return $t(e, t); }) ); }), - (Kt.addLocale = function(e) { + (rn.addLocale = function(e) { if (!e) throw new Error('No locale data passed'); - Ft[e.locale] = e; + Xt[e.locale] = e; }), - (Kt.setDefaultLocale = function(e) { - It = e; + (rn.setDefaultLocale = function(e) { + Ut = e; }), - (Kt.getDefaultLocale = qt); - var Jt = (function() { + (rn.getDefaultLocale = Gt); + var sn = (function() { function e() { !(function(e, t) { if (!(e instanceof t)) @@ -230908,7 +231004,7 @@ object-assign n[r] = arguments[r]; for (var o = 0; o < n.length; o++) { var i = n[o]; - if ('object' !== $t(e)) return; + if ('object' !== on(e)) return; e = e[i]; } return e; @@ -230929,18 +231025,18 @@ object-assign a++ ) { var s = t[a]; - 'object' !== $t(i[s]) && (i[s] = {}), (i = i[s]); + 'object' !== on(i[s]) && (i[s] = {}), (i = i[s]); } return (i[o] = r); } } - ]) && Qt(t.prototype, n), - r && Qt(t, r), + ]) && an(t.prototype, n), + r && an(t, r), e ); })(), - Zt = 86400; - function en(e, t) { + cn = 86400; + function un(e, t) { var n = e, r = Array.isArray(n), o = 0; @@ -230957,10 +231053,10 @@ object-assign if (a.unit === t) return a; } } - function tn(e) { + function ln(e) { return e instanceof Date ? e : new Date(e); } - var nn = [ + var fn = [ { factor: 1, unit: 'now' }, { threshold: 1, threshold_for_now: 45, factor: 1, unit: 'second' }, { threshold: 45, factor: 60, unit: 'minute' }, @@ -230972,13 +231068,13 @@ object-assign factor: 3600, unit: 'hour' }, - { threshold: 73800, factor: Zt, unit: 'day' }, - { threshold: 475200, factor: 7 * Zt, unit: 'week' }, + { threshold: 73800, factor: cn, unit: 'day' }, + { threshold: 475200, factor: 7 * cn, unit: 'week' }, { threshold: 2116800, factor: 2630016, unit: 'month' }, { threshold: 27615168, factor: 31556952, unit: 'year' } ]; - function rn(e) { - return (rn = + function dn(e) { + return (dn = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { return typeof e; @@ -230992,9 +231088,9 @@ object-assign : typeof e; })(e); } - function on(e, t, n) { + function pn(e, t, n) { var r = - arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : nn; + arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : fn; if ( 0 !== (r = (function(e, t) { @@ -231019,7 +231115,7 @@ object-assign void 0 === o && (o = t.threshold); 'function' == typeof o && (o = o(n, r)); if (e && 'number' != typeof o) { - var i = rn(o); + var i = dn(o); throw new Error( 'Each step of a gradation must have a threshold defined except for the first one. Got "' .concat(o, '", ') @@ -231048,8 +231144,8 @@ object-assign } } } - function an(e) { - return (an = + function hn(e) { + return (hn = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { return typeof e; @@ -231063,28 +231159,28 @@ object-assign : typeof e; })(e); } - function sn() { + function gn() { return ( - 'object' === ('undefined' == typeof Intl ? 'undefined' : an(Intl)) && + 'object' === ('undefined' == typeof Intl ? 'undefined' : hn(Intl)) && 'function' == typeof Intl.DateTimeFormat ); } - var cn = { - gradation: nn, + var mn = { + gradation: fn, flavour: ['long-convenient', 'long'], units: ['now', 'minute', 'hour', 'day', 'week', 'month', 'year'] }, - un = [ + bn = [ { factor: 1, unit: 'now' }, { threshold: 0.5, factor: 1, unit: 'second' }, { threshold: 59.5, factor: 60, unit: 'minute' }, { threshold: 3570, factor: 3600, unit: 'hour' }, - { threshold: 84600, factor: Zt, unit: 'day' }, - { threshold: 561600, factor: 7 * Zt, unit: 'week' }, + { threshold: 84600, factor: cn, unit: 'day' }, + { threshold: 561600, factor: 7 * cn, unit: 'week' }, { threshold: 2116800, factor: 2630016, unit: 'month' }, { threshold: 30245184, factor: 31556952, unit: 'year' } ]; - function ln(e, t, n) { + function yn(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { @@ -231097,8 +231193,8 @@ object-assign e ); } - var fn = {}, - dn = { + var vn = {}, + _n = { gradation: [ (function(e) { for (var t = 1; t < arguments.length; t++) { @@ -231111,24 +231207,24 @@ object-assign }) )), r.forEach(function(t) { - ln(e, t, n[t]); + yn(e, t, n[t]); }); } return e; - })({}, en(un, 'minute'), { threshold: 45 }), - en(un, 'hour'), + })({}, un(bn, 'minute'), { threshold: 45 }), + un(bn, 'hour'), { threshold: 84600, format: function(e, t) { - if (sn()) + if (gn()) return ( - fn[t] || (fn[t] = {}), - fn[t].this_year || - (fn[t].this_year = new Intl.DateTimeFormat(t, { + vn[t] || (vn[t] = {}), + vn[t].this_year || + (vn[t].this_year = new Intl.DateTimeFormat(t, { month: 'short', day: 'numeric' })), - fn[t].this_year.format(tn(e)) + vn[t].this_year.format(ln(e)) ); } }, @@ -231141,33 +231237,33 @@ object-assign 1e3; }, format: function(e, t) { - if (sn()) + if (gn()) return ( - fn[t] || (fn[t] = {}), - fn[t].other || - (fn[t].other = new Intl.DateTimeFormat(t, { + vn[t] || (vn[t] = {}), + vn[t].other || + (vn[t].other = new Intl.DateTimeFormat(t, { year: 'numeric', month: 'short', day: 'numeric' })), - fn[t].other.format(tn(e)) + vn[t].other.format(ln(e)) ); } } ], flavour: ['tiny', 'short-time', 'narrow', 'short'] }, - pn = { - gradation: nn, + wn = { + gradation: fn, flavour: 'long-time', units: ['now', 'minute', 'hour', 'day', 'week', 'month', 'year'] }, - hn = {}; - function gn(e) { - return hn[e]; + xn = {}; + function Mn(e) { + return xn[e]; } - function mn(e) { - return (mn = + function kn(e) { + return (kn = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { return typeof e; @@ -231181,7 +231277,7 @@ object-assign : typeof e; })(e); } - function bn(e, t) { + function Sn(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -231190,7 +231286,7 @@ object-assign Object.defineProperty(e, r.key, r); } } - var yn = (function() { + var On = (function() { function e() { var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : []; @@ -231222,11 +231318,11 @@ object-assign e.join(', ') ) ); - })(t.concat(Kt.getDefaultLocale()), gn)), + })(t.concat(rn.getDefaultLocale()), Mn)), 'undefined' != typeof Intl && Intl.NumberFormat && (this.numberFormat = new Intl.NumberFormat(this.locale)), - (this.relativeTimeFormatCache = new Jt()); + (this.relativeTimeFormatCache = new sn()); } var t, n, r; return ( @@ -231238,19 +231334,19 @@ object-assign var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] - : cn; + : mn; if ('string' == typeof t) switch (t) { case 'twitter': - t = dn; + t = _n; break; case 'time': - t = pn; + t = wn; break; default: - t = cn; + t = mn; } - var n = vn(e), + var n = En(e), r = n.date, o = n.time, i = this.getLocaleData(t.flavour), @@ -231268,7 +231364,7 @@ object-assign }); if (void 0 !== l) return l; } - var f = _n(s, t.units); + var f = An(s, t.units); if (0 === f.length) return ( console.error( @@ -231281,7 +231377,7 @@ object-assign ), '' ); - var d = on(u, c, f, t.gradation); + var d = pn(u, c, f, t.gradation); if (!d) return ''; if (d.format) return d.format(r || o, this.locale); var p = d.unit, @@ -231289,7 +231385,7 @@ object-assign g = d.granularity, m = Math.abs(u) / h; if ((g && (m = Math.round(m / g) * g), 'now' === p)) - return wn(s, -1 * Math.sign(u)); + return Tn(s, -1 * Math.sign(u)); switch (a) { case 'long': case 'short': @@ -231323,7 +231419,7 @@ object-assign if ('string' == typeof r) return r; var o = r[e <= 0 ? 'past' : 'future'] || r; if ('string' == typeof o) return o; - var i = gn(this.locale).quantify, + var i = Mn(this.locale).quantify, a = i && i(Math.abs(e)); return o[(a = a || 'other')] || o.other; } @@ -231344,7 +231440,7 @@ object-assign this.relativeTimeFormatCache.put( this.locale, e, - new Kt(this.locale, { style: e }) + new rn(this.locale, { style: e }) ) ); } @@ -231356,7 +231452,7 @@ object-assign arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [], - t = gn(this.locale); + t = Mn(this.locale); 'string' == typeof e && (e = [e]); var n = (e = e.concat('long')), r = Array.isArray(n), @@ -231375,26 +231471,26 @@ object-assign } } } - ]) && bn(t.prototype, n), - r && bn(t, r), + ]) && Sn(t.prototype, n), + r && Sn(t, r), e ); })(); - function vn(e) { + function En(e) { if ( e.constructor === Date || - ('object' === mn((t = e)) && 'function' == typeof t.getTime) + ('object' === kn((t = e)) && 'function' == typeof t.getTime) ) return { date: e, time: e.getTime() }; var t; if ('number' == typeof e) return { time: e }; throw new Error( 'Unsupported relative time formatter input: ' - .concat(mn(e), ', ') + .concat(kn(e), ', ') .concat(e) ); } - function _n(e, t) { + function An(e, t) { var n = Object.keys(e); return ( t && @@ -231408,7 +231504,7 @@ object-assign n ); } - function wn(e, t) { + function Tn(e, t) { return e.now ? 'string' == typeof e.now ? e.now @@ -231417,20 +231513,20 @@ object-assign : e.now.future : e.second.current; } - (yn.getDefaultLocale = Kt.getDefaultLocale), - (yn.setDefaultLocale = Kt.setDefaultLocale), - (yn.addLocale = function(e) { + (On.getDefaultLocale = rn.getDefaultLocale), + (On.setDefaultLocale = rn.setDefaultLocale), + (On.addLocale = function(e) { !(function(e) { if (!e) throw new Error('[javascript-time-ago] No locale data passed.'); - hn[e.locale] = e; + xn[e.locale] = e; })(e), - Kt.addLocale(e); + rn.addLocale(e); }), - (yn.locale = yn.addLocale); - var xn = n(468), - Mn = n.n(xn), - kn = { + (On.locale = On.addLocale); + var Cn = n(468), + Ln = n.n(Cn), + Pn = { prefix: 'fas', iconName: 'angle-double-right', icon: [ @@ -231441,7 +231537,7 @@ object-assign 'M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34zm192-34l-136-136c-9.4-9.4-24.6-9.4-33.9 0l-22.6 22.6c-9.4 9.4-9.4 24.6 0 33.9l96.4 96.4-96.4 96.4c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l136-136c9.4-9.2 9.4-24.4 0-33.8z' ] }, - Sn = { + Dn = { prefix: 'fas', iconName: 'bars', icon: [ @@ -231452,7 +231548,7 @@ object-assign 'M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z' ] }, - On = { + jn = { prefix: 'fas', iconName: 'chart-area', icon: [ @@ -231463,7 +231559,7 @@ object-assign 'M500 384c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v308h436zM372.7 159.5L288 216l-85.3-113.7c-5.1-6.8-15.5-6.3-19.9 1L96 248v104h384l-89.9-187.8c-3.2-6.5-11.4-8.7-17.4-4.7z' ] }, - En = { + zn = { prefix: 'fas', iconName: 'chart-bar', icon: [ @@ -231474,7 +231570,7 @@ object-assign 'M332.8 320h38.4c6.4 0 12.8-6.4 12.8-12.8V172.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V76.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-288 0h38.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zM496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z' ] }, - An = { + Nn = { prefix: 'fas', iconName: 'chart-line', icon: [ @@ -231485,7 +231581,7 @@ object-assign 'M496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM464 96H345.94c-21.38 0-32.09 25.85-16.97 40.97l32.4 32.4L288 242.75l-73.37-73.37c-12.5-12.5-32.76-12.5-45.25 0l-68.69 68.69c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L192 237.25l73.37 73.37c12.5 12.5 32.76 12.5 45.25 0l96-96 32.4 32.4c15.12 15.12 40.97 4.41 40.97-16.97V112c.01-8.84-7.15-16-15.99-16z' ] }, - Tn = { + Rn = { prefix: 'fas', iconName: 'chart-pie', icon: [ @@ -231496,7 +231592,7 @@ object-assign 'M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z' ] }, - Cn = { + In = { prefix: 'fas', iconName: 'chevron-right', icon: [ @@ -231507,7 +231603,7 @@ object-assign 'M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z' ] }, - Ln = { + Fn = { prefix: 'fas', iconName: 'clone', icon: [ @@ -231518,7 +231614,7 @@ object-assign 'M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z' ] }, - Pn = { + qn = { prefix: 'fas', iconName: 'code', icon: [ @@ -231529,7 +231625,7 @@ object-assign 'M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z' ] }, - Dn = { + Bn = { prefix: 'fas', iconName: 'cog', icon: [ @@ -231540,7 +231636,7 @@ object-assign 'M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z' ] }, - jn = { + Hn = { prefix: 'fas', iconName: 'copy', icon: [ @@ -231551,7 +231647,7 @@ object-assign 'M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z' ] }, - zn = { + Yn = { prefix: 'fas', iconName: 'edit', icon: [ @@ -231562,7 +231658,7 @@ object-assign 'M402.6 83.2l90.2 90.2c3.8 3.8 3.8 10 0 13.8L274.4 405.6l-92.8 10.3c-12.4 1.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8 83.2c3.8-3.8 10-3.8 13.8 0zm162-22.9l-48.8-48.8c-15.2-15.2-39.9-15.2-55.2 0l-35.4 35.4c-3.8 3.8-3.8 10 0 13.8l90.2 90.2c3.8 3.8 10 3.8 13.8 0l35.4-35.4c15.2-15.3 15.2-40 0-55.2zM384 346.2V448H64V128h229.8c3.2 0 6.2-1.3 8.5-3.5l40-40c7.6-7.6 2.2-20.5-8.5-20.5H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V306.2c0-10.7-12.9-16-20.5-8.5l-40 40c-2.2 2.3-3.5 5.3-3.5 8.5z' ] }, - Nn = { + Wn = { prefix: 'fas', iconName: 'external-link-alt', icon: [ @@ -231573,7 +231669,7 @@ object-assign 'M576 24v127.984c0 21.461-25.96 31.98-40.971 16.971l-35.707-35.709-243.523 243.523c-9.373 9.373-24.568 9.373-33.941 0l-22.627-22.627c-9.373-9.373-9.373-24.569 0-33.941L442.756 76.676l-35.703-35.705C391.982 25.9 402.656 0 424.024 0H552c13.255 0 24 10.745 24 24zM407.029 270.794l-16 16A23.999 23.999 0 0 0 384 303.765V448H64V128h264a24.003 24.003 0 0 0 16.97-7.029l16-16C376.089 89.851 365.381 64 344 64H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V287.764c0-21.382-25.852-32.09-40.971-16.97z' ] }, - Rn = { + Vn = { prefix: 'fas', iconName: 'eye', icon: [ @@ -231584,7 +231680,7 @@ object-assign 'M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z' ] }, - In = { + Un = { prefix: 'fas', iconName: 'file-download', icon: [ @@ -231595,7 +231691,7 @@ object-assign 'M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm76.45 211.36l-96.42 95.7c-6.65 6.61-17.39 6.61-24.04 0l-96.42-95.7C73.42 337.29 80.54 320 94.82 320H160v-80c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v80h65.18c14.28 0 21.4 17.29 11.27 27.36zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z' ] }, - Fn = { + Xn = { prefix: 'fas', iconName: 'filter', icon: [ @@ -231606,7 +231702,7 @@ object-assign 'M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z' ] }, - qn = { + Gn = { prefix: 'fas', iconName: 'image', icon: [ @@ -231617,7 +231713,7 @@ object-assign 'M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z' ] }, - Bn = { + Kn = { prefix: 'fas', iconName: 'info-circle', icon: [ @@ -231628,7 +231724,7 @@ object-assign 'M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z' ] }, - Hn = { + $n = { prefix: 'fas', iconName: 'laptop', icon: [ @@ -231639,7 +231735,7 @@ object-assign 'M624 416H381.54c-.74 19.81-14.71 32-32.74 32H288c-18.69 0-33.02-17.47-32.77-32H16c-8.8 0-16 7.2-16 16v16c0 35.2 28.8 64 64 64h512c35.2 0 64-28.8 64-64v-16c0-8.8-7.2-16-16-16zM576 48c0-26.4-21.6-48-48-48H112C85.6 0 64 21.6 64 48v336h512V48zm-64 272H128V64h384v256z' ] }, - Yn = { + Qn = { prefix: 'fas', iconName: 'mobile-alt', icon: [ @@ -231650,7 +231746,7 @@ object-assign 'M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm112-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v312z' ] }, - Wn = { + Jn = { prefix: 'fas', iconName: 'paragraph', icon: [ @@ -231661,7 +231757,7 @@ object-assign 'M448 48v32a16 16 0 0 1-16 16h-48v368a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16V96h-32v368a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16V352h-32a160 160 0 0 1 0-320h240a16 16 0 0 1 16 16z' ] }, - Vn = { + Zn = { prefix: 'fas', iconName: 'plus-circle', icon: [ @@ -231672,7 +231768,7 @@ object-assign 'M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z' ] }, - Un = { + er = { prefix: 'fas', iconName: 'save', icon: [ @@ -231683,7 +231779,7 @@ object-assign 'M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z' ] }, - Xn = { + tr = { prefix: 'fas', iconName: 'search', icon: [ @@ -231694,7 +231790,7 @@ object-assign 'M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z' ] }, - Gn = { + nr = { prefix: 'fas', iconName: 'share-alt', icon: [ @@ -231705,7 +231801,7 @@ object-assign 'M352 320c-22.608 0-43.387 7.819-59.79 20.895l-102.486-64.054a96.551 96.551 0 0 0 0-41.683l102.486-64.054C308.613 184.181 329.392 192 352 192c53.019 0 96-42.981 96-96S405.019 0 352 0s-96 42.981-96 96c0 7.158.79 14.13 2.276 20.841L155.79 180.895C139.387 167.819 118.608 160 96 160c-53.019 0-96 42.981-96 96s42.981 96 96 96c22.608 0 43.387-7.819 59.79-20.895l102.486 64.054A96.301 96.301 0 0 0 256 416c0 53.019 42.981 96 96 96s96-42.981 96-96-42.981-96-96-96z' ] }, - Kn = { + rr = { prefix: 'fas', iconName: 'spinner', icon: [ @@ -231716,7 +231812,7 @@ object-assign 'M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z' ] }, - $n = { + or = { prefix: 'fas', iconName: 'table', icon: [ @@ -231727,7 +231823,7 @@ object-assign 'M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64v-96h160v96zm0-160H64v-96h160v96zm224 160H288v-96h160v96zm0-160H288v-96h160v96z' ] }, - Qn = { + ir = { prefix: 'fas', iconName: 'tablet-alt', icon: [ @@ -231738,7 +231834,7 @@ object-assign 'M400 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM224 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm176-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h328c6.6 0 12 5.4 12 12v312z' ] }, - Jn = { + ar = { prefix: 'fas', iconName: 'times', icon: [ @@ -231749,7 +231845,7 @@ object-assign 'M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z' ] }, - Zn = { + sr = { prefix: 'fas', iconName: 'trash-alt', icon: [ @@ -231760,17 +231856,17 @@ object-assign 'M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z' ] }, - er = function(e) { - return Object(Nt.get)( + cr = function(e) { + return Object(Wt.get)( e, ['app', 'dashboardInfo', 'settings', 'savedQueriesList'], [] ); }, - tr = function(e) { - return Object(Nt.get)(e, ['app', 'dashboardInfo']); + ur = function(e) { + return Object(Wt.get)(e, ['app', 'dashboardInfo']); }, - nr = function(e, t, n) { + lr = function(e, t, n) { var r = Array.from(new Set(e)), o = 'public-dashboard: '.concat(t); n.get({ @@ -231792,9 +231888,9 @@ object-assign }); }); }, - rr = n(453), - or = n.n(rr), - ir = function(e) { + fr = n(453), + dr = n.n(fr), + pr = function(e) { var t = (function(e) { var t = new Set(), n = e.settings; @@ -231820,9 +231916,9 @@ object-assign } return Array.from(t); })(e); - t.length && or.a.load({ google: { families: t } }); + t.length && dr.a.load({ google: { families: t } }); }; - function ar(e, t) { + function hr(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); @@ -231834,16 +231930,16 @@ object-assign } return n; } - function sr(e) { + function gr(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 - ? ar(n, !0).forEach(function(t) { - yt()(e, t, n[t]); + ? hr(n, !0).forEach(function(t) { + Ot()(e, t, n[t]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) - : ar(n).forEach(function(t) { + : hr(n).forEach(function(t) { Object.defineProperty( e, t, @@ -231853,7 +231949,7 @@ object-assign } return e; } - var cr = function() { + var mr = function() { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] @@ -231866,7 +231962,7 @@ object-assign 'https://' .concat(i, '/projects/') .concat(o.projectId(), '/dashboards/'), - sr( + gr( { method: 'post', body: JSON.stringify({ @@ -231888,10 +231984,10 @@ object-assign }); }; }, - ur = function(e, t) { + br = function(e, t) { return { type: 'SAVED_QUERY_ERROR', error: e, index: t }; }, - lr = function() { + yr = function() { return function(e, t, n) { var r = n.keenClient, o = n.keenWebHost, @@ -231900,7 +231996,7 @@ object-assign 'https://' .concat(o, '/projects/') .concat(r.projectId(), '/dashboards'), - sr({}, i) + gr({}, i) ) .then(function(t) { return t.json().then(function(t) { @@ -231912,7 +232008,7 @@ object-assign }); }; }, - fr = function(e) { + vr = function(e) { return function(t, n, r) { var o = r.keenClient, i = r.keenWebHost, @@ -231922,11 +232018,11 @@ object-assign .concat(i, '/projects/') .concat(o.projectId(), '/dashboards/') .concat(e), - sr({}, a) + gr({}, a) ) .then(function(n) { return n.json().then(function(n) { - ir(n), + pr(n), t({ type: 'LOAD_DASHBOARD_INFO', dashboardInfo: n, @@ -231940,10 +232036,10 @@ object-assign }); }; }, - dr = function() { + _r = function() { return { type: 'CLEAR_DASHBOARD_INFO' }; }, - pr = function(e) { + wr = function(e) { return function(t, n, r) { var o = r.keenClient, i = r.keenWebHost, @@ -231954,7 +232050,7 @@ object-assign .concat(i, '/projects/') .concat(o.projectId(), '/dashboards/') .concat(e.id), - sr({ method: 'put', body: JSON.stringify(e) }, a) + gr({ method: 'put', body: JSON.stringify(e) }, a) ) .then(function(e) { 200 === e.status && @@ -231965,45 +232061,45 @@ object-assign }); }; }, - hr = function() { + xr = function() { return { type: 'TOGGLE_IS_PUBLIC' }; }, - gr = function(e) { + Mr = function(e) { return { type: 'DROP_HANDLER', newElement: e }; }, - mr = function(e) { + kr = function(e) { return { type: 'SET_LOADING', index: e }; }, - br = function() { + Sr = function() { return { type: 'CLOSE_SETTINGS' }; }, - yr = function(e) { + Or = function(e) { return { type: 'SHOW_SETTINGS', index: e }; }, - vr = function(e) { + Er = function(e) { return { type: 'TOGGLE_DASHBOARDS_MENU', value: e }; }, - _r = function(e) { + Ar = function(e) { return { type: 'SET_NEW_DASHBOARD_FOR_FOCUS', value: e }; }, - wr = function(e) { + Tr = function(e) { return { type: 'SET_ACCESS_KEY', value: e }; }, - xr = function() { + Cr = function() { return { type: 'CLEAR_ACCESS_KEY' }; }, - Mr = function(e) { + Lr = function(e) { return { type: 'MAP_OLD_ITEMS', newDashboard: e }; }, - kr = function() { + Pr = function() { return { type: 'LOADING_SINGLE_DASHBOARD' }; }, - Sr = function(e, t) { + Dr = function(e, t) { return function(n, r) { var o = r(), - i = tr(o), + i = ur(o), a = i.settings.savedQueriesList - ? mt()(i.settings.savedQueriesList) + ? kt()(i.settings.savedQueriesList) : []; a.length && e && @@ -232018,23 +232114,23 @@ object-assign n({ type: 'CHANGE_SAVED_QUERY_LIST', savedQueriesList: a }); }; }, - Or = n(7), - Er = n(25), - Ar = n.n(Er), - Tr = n(26), - Cr = n.n(Tr), - Lr = n(27), - Pr = n.n(Lr), - Dr = n(28), - jr = n.n(Dr), - zr = (function(e) { + jr = n(7), + zr = n(25), + Nr = n.n(zr), + Rr = n(26), + Ir = n.n(Rr), + Fr = n(27), + qr = n.n(Fr), + Br = n(28), + Hr = n.n(Br), + Yr = (function(e) { function t(e) { var n; return ( a()(this, t), - ((n = Cr()( + ((n = Ir()( this, - Pr()(t).call(this, e) + qr()(t).call(this, e) )).addDashboard = function() { n.props.addDashboardItem(); }), @@ -232042,8 +232138,8 @@ object-assign ); } return ( - jr()(t, e), - Ar()(t, [ + Hr()(t, e), + Nr()(t, [ { key: 'componentDidUpdate', value: function() { @@ -232070,7 +232166,7 @@ object-assign className: 'new-dashboard-button', onClick: this.addDashboard }, - c.a.createElement(Or.a, { + c.a.createElement(jr.a, { icon: 'plus-circle', size: 'sm' }), @@ -232082,8 +232178,8 @@ object-assign t ); })(c.a.Component), - Nr = le( - rt( + Wr = fe( + ft( function(e) { var t = e.app; return { @@ -232093,22 +232189,22 @@ object-assign }; }, { - addDashboardItem: cr, - toggleDashboardsMenu: vr, - setNewDashboardForFocus: _r, - clearAccessKey: xr + addDashboardItem: mr, + toggleDashboardsMenu: Er, + setNewDashboardForFocus: Ar, + clearAccessKey: Cr } - )(zr) + )(Yr) ), - Rr = n(51), - Ir = n(17), - Fr = n(114), - qr = n.n(Fr), - Br = n(456), - Hr = n.n(Br), - Yr = n(142); - function Wr(e) { - return (Wr = + Vr = n(51), + Ur = n(17), + Xr = n(114), + Gr = n.n(Xr), + Kr = n(456), + $r = n.n(Kr), + Qr = n(142); + function Jr(e) { + return (Jr = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { return typeof e; @@ -232122,11 +232218,11 @@ object-assign : typeof e; })(e); } - function Vr(e, t) { + function Zr(e, t) { if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function'); } - function Ur(e, t) { + function eo(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -232135,10 +232231,10 @@ object-assign Object.defineProperty(e, r.key, r); } } - function Xr(e, t, n) { - return t && Ur(e.prototype, t), n && Ur(e, n), e; + function to(e, t, n) { + return t && eo(e.prototype, t), n && eo(e, n), e; } - function Gr(e, t, n) { + function no(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { @@ -232151,8 +232247,8 @@ object-assign e ); } - function Kr() { - return (Kr = + function ro() { + return (ro = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { @@ -232163,7 +232259,7 @@ object-assign return e; }).apply(this, arguments); } - function $r(e) { + function oo(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}, r = Object.keys(n); @@ -232174,12 +232270,12 @@ object-assign }) )), r.forEach(function(t) { - Gr(e, t, n[t]); + no(e, t, n[t]); }); } return e; } - function Qr(e, t) { + function io(e, t) { if ('function' != typeof t && null !== t) throw new TypeError( 'Super expression must either be null or a function' @@ -232187,23 +232283,23 @@ object-assign (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } })), - t && Zr(e, t); + t && so(e, t); } - function Jr(e) { - return (Jr = Object.setPrototypeOf + function ao(e) { + return (ao = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function Zr(e, t) { - return (Zr = + function so(e, t) { + return (so = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; })(e, t); } - function eo(e, t) { + function co(e, t) { if (null == e) return {}; var n, r, @@ -232227,19 +232323,19 @@ object-assign } return o; } - function to(e) { + function uo(e) { if (void 0 === e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return e; } - function no(e, t) { + function lo(e, t) { return !t || ('object' != typeof t && 'function' != typeof t) - ? to(e) + ? uo(e) : t; } - function ro(e) { + function fo(e) { return ( (function(e) { if (Array.isArray(e)) { @@ -232262,15 +232358,15 @@ object-assign })() ); } - var oo = function() {}; - function io(e, t) { + var po = function() {}; + function ho(e, t) { return t ? ('-' === t[0] ? e + t : e + '__' + t) : e; } - function ao(e, t, n, r) { + function go(e, t, n, r) { var o = [t, r]; if (n && e) for (var i in n) - n.hasOwnProperty(i) && n[i] && o.push(''.concat(io(e, i))); + n.hasOwnProperty(i) && n[i] && o.push(''.concat(ho(e, i))); return o .filter(function(e) { return e; @@ -232280,49 +232376,49 @@ object-assign }) .join(' '); } - var so = function(e) { + var mo = function(e) { return Array.isArray(e) ? e.filter(Boolean) - : 'object' === Wr(e) && null !== e + : 'object' === Jr(e) && null !== e ? [e] : []; }; - function co(e) { + function bo(e) { return ( [document.documentElement, document.body, window].indexOf(e) > -1 ); } - function uo(e) { - return co(e) ? window.pageYOffset : e.scrollTop; + function yo(e) { + return bo(e) ? window.pageYOffset : e.scrollTop; } - function lo(e, t) { - co(e) ? window.scrollTo(0, t) : (e.scrollTop = t); + function vo(e, t) { + bo(e) ? window.scrollTo(0, t) : (e.scrollTop = t); } - function fo(e, t) { + function _o(e, t) { var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 200, r = - arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : oo, - o = uo(e), + arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : po, + o = yo(e), i = t - o, a = 10, s = 0; !(function t() { var c, u = i * ((c = (c = s += a) / n - 1) * c * c + 1) + o; - lo(e, u), s < n ? qr()(t) : r(e); + vo(e, u), s < n ? Gr()(t) : r(e); })(); } - function po() { + function wo() { try { return document.createEvent('TouchEvent'), !0; } catch (e) { return !1; } } - function ho(e) { + function xo(e) { var t = e.maxHeight, n = e.menuEl, r = e.minHeight, @@ -232354,7 +232450,7 @@ object-assign h = f.top, g = n.offsetParent.getBoundingClientRect().top, m = window.innerHeight, - b = uo(c), + b = yo(c), y = parseInt(getComputedStyle(n).marginBottom, 10), v = parseInt(getComputedStyle(n).marginTop, 10), _ = g - v, @@ -232368,10 +232464,10 @@ object-assign case 'bottom': if (w >= p) return { placement: 'bottom', maxHeight: t }; if (M >= p && !a) - return i && fo(c, k, 160), { placement: 'bottom', maxHeight: t }; + return i && _o(c, k, 160), { placement: 'bottom', maxHeight: t }; if ((!a && M >= r) || (a && w >= r)) return ( - i && fo(c, k, 160), + i && _o(c, k, 160), { placement: 'bottom', maxHeight: a ? w - y : M - y } ); if ('auto' === o || a) { @@ -232383,17 +232479,17 @@ object-assign ); } if ('bottom' === o) - return lo(c, k), { placement: 'bottom', maxHeight: t }; + return vo(c, k), { placement: 'bottom', maxHeight: t }; break; case 'top': if (_ >= p) return { placement: 'top', maxHeight: t }; if (x >= p && !a) - return i && fo(c, S, 160), { placement: 'top', maxHeight: t }; + return i && _o(c, S, 160), { placement: 'top', maxHeight: t }; if ((!a && x >= r) || (a && _ >= r)) { var A = t; return ( ((!a && x >= r) || (a && _ >= r)) && (A = a ? _ - v : x - v), - i && fo(c, S, 160), + i && _o(c, S, 160), { placement: 'top', maxHeight: A } ); } @@ -232403,26 +232499,26 @@ object-assign } return u; } - var go = function(e) { + var Mo = function(e) { return 'auto' === e ? 'bottom' : e; }, - mo = (function(e) { + ko = (function(e) { function t() { var e, n; - Vr(this, t); + Zr(this, t); for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) o[i] = arguments[i]; return ( - Gr( - to( - to( - (n = no(this, (e = Jr(t)).call.apply(e, [this].concat(o)))) + no( + uo( + uo( + (n = lo(this, (e = ao(t)).call.apply(e, [this].concat(o)))) ) ), 'state', { maxHeight: n.props.maxMenuHeight, placement: null } ), - Gr(to(to(n)), 'getPlacement', function(e) { + no(uo(uo(n)), 'getPlacement', function(e) { var t = n.props, r = t.minMenuHeight, o = t.maxMenuHeight, @@ -232433,7 +232529,7 @@ object-assign u = n.context.getPortalPlacement; if (e) { var l = 'fixed' === a, - f = ho({ + f = xo({ maxHeight: o, menuEl: e, minHeight: r, @@ -232445,10 +232541,10 @@ object-assign u && u(f), n.setState(f); } }), - Gr(to(to(n)), 'getUpdatedProps', function() { + no(uo(uo(n)), 'getUpdatedProps', function() { var e = n.props.menuPlacement, - t = n.state.placement || go(e); - return $r({}, n.props, { + t = n.state.placement || Mo(e); + return oo({}, n.props, { placement: t, maxHeight: n.state.maxHeight }); @@ -232457,8 +232553,8 @@ object-assign ); } return ( - Qr(t, e), - Xr(t, [ + io(t, e), + to(t, [ { key: 'render', value: function() { @@ -232472,8 +232568,8 @@ object-assign t ); })(s.Component); - Gr(mo, 'contextTypes', { getPortalPlacement: g.a.func }); - var bo = function(e) { + no(ko, 'contextTypes', { getPortalPlacement: p.a.func }); + var So = function(e) { var t = e.theme, n = t.spacing.baseUnit; return { @@ -232482,9 +232578,9 @@ object-assign textAlign: 'center' }; }, - yo = bo, - vo = bo, - _o = function(e) { + Oo = So, + Eo = So, + Ao = function(e) { var t = e.children, n = e.className, r = e.cx, @@ -232492,10 +232588,10 @@ object-assign i = e.innerProps; return c.a.createElement( 'div', - Kr( + ro( { className: r( - Object(Ir.a)(o('noOptionsMessage', e)), + Object(Ur.a)(o('noOptionsMessage', e)), { 'menu-notice': !0, 'menu-notice--no-options': !0 }, n ) @@ -232505,8 +232601,8 @@ object-assign t ); }; - _o.defaultProps = { children: 'No options' }; - var wo = function(e) { + Ao.defaultProps = { children: 'No options' }; + var To = function(e) { var t = e.children, n = e.className, r = e.cx, @@ -232514,10 +232610,10 @@ object-assign i = e.innerProps; return c.a.createElement( 'div', - Kr( + ro( { className: r( - Object(Ir.a)(o('loadingMessage', e)), + Object(Ur.a)(o('loadingMessage', e)), { 'menu-notice': !0, 'menu-notice--loading': !0 }, n ) @@ -232527,31 +232623,31 @@ object-assign t ); }; - wo.defaultProps = { children: 'Loading...' }; - var xo = (function(e) { + To.defaultProps = { children: 'Loading...' }; + var Co = (function(e) { function t() { var e, n; - Vr(this, t); + Zr(this, t); for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) o[i] = arguments[i]; return ( - Gr( - to( - to((n = no(this, (e = Jr(t)).call.apply(e, [this].concat(o))))) + no( + uo( + uo((n = lo(this, (e = ao(t)).call.apply(e, [this].concat(o))))) ), 'state', { placement: null } ), - Gr(to(to(n)), 'getPortalPlacement', function(e) { + no(uo(uo(n)), 'getPortalPlacement', function(e) { var t = e.placement; - t !== go(n.props.menuPlacement) && n.setState({ placement: t }); + t !== Mo(n.props.menuPlacement) && n.setState({ placement: t }); }), n ); } return ( - Qr(t, e), - Xr(t, [ + io(t, e), + to(t, [ { key: 'getChildContext', value: function() { @@ -232570,7 +232666,7 @@ object-assign a = e.getStyles, s = 'fixed' === i; if ((!t && !s) || !r) return null; - var l = this.state.placement || go(o), + var l = this.state.placement || Mo(o), f = (function(e) { var t = e.getBoundingClientRect(); return { @@ -232586,7 +232682,7 @@ object-assign p = { offset: f[l] + d, position: i, rect: f }, h = c.a.createElement( 'div', - { className: Object(Ir.a)(a('menuPortal', p)) }, + { className: Object(Ur.a)(a('menuPortal', p)) }, n ); return t ? Object(u.createPortal)(h, t) : h; @@ -232596,20 +232692,20 @@ object-assign t ); })(s.Component); - Gr(xo, 'childContextTypes', { getPortalPlacement: g.a.func }); - var Mo = Array.isArray, - ko = Object.keys, - So = Object.prototype.hasOwnProperty; - function Oo(e, t) { + no(Co, 'childContextTypes', { getPortalPlacement: p.a.func }); + var Lo = Array.isArray, + Po = Object.keys, + Do = Object.prototype.hasOwnProperty; + function jo(e, t) { try { return (function e(t, n) { if (t === n) return !0; - if (t && n && 'object' == Wr(t) && 'object' == Wr(n)) { + if (t && n && 'object' == Jr(t) && 'object' == Jr(n)) { var r, o, i, - a = Mo(t), - s = Mo(n); + a = Lo(t), + s = Lo(n); if (a && s) { if ((o = t.length) != n.length) return !1; for (r = o; 0 != r--; ) if (!e(t[r], n[r])) return !1; @@ -232624,9 +232720,9 @@ object-assign f = n instanceof RegExp; if (l != f) return !1; if (l && f) return t.toString() == n.toString(); - var d = ko(t); - if ((o = d.length) !== ko(n).length) return !1; - for (r = o; 0 != r--; ) if (!So.call(n, d[r])) return !1; + var d = Po(t); + if ((o = d.length) !== Po(n).length) return !1; + for (r = o; 0 != r--; ) if (!Do.call(n, d[r])) return !1; for (r = o; 0 != r--; ) if (!(('_owner' === (i = d[r]) && t.$$typeof) || e(t[i], n[i]))) return !1; @@ -232647,7 +232743,7 @@ object-assign throw e; } } - var Eo = [ + var zo = [ { base: 'A', letters: /[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g @@ -232865,23 +232961,23 @@ object-assign letters: /[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g } ], - Ao = function(e) { - for (var t = 0; t < Eo.length; t++) - e = e.replace(Eo[t].letters, Eo[t].base); + No = function(e) { + for (var t = 0; t < zo.length; t++) + e = e.replace(zo[t].letters, zo[t].base); return e; }, - To = function(e) { + Ro = function(e) { return e.replace(/^\s+|\s+$/g, ''); }, - Co = function(e) { + Io = function(e) { return ''.concat(e.label, ' ').concat(e.value); }, - Lo = function(e) { + Fo = function(e) { return c.a.createElement( 'span', - Kr( + ro( { - className: Object(Ir.a)({ + className: Object(Ur.a)({ label: 'a11yText', zIndex: 9999, border: 0, @@ -232900,13 +232996,13 @@ object-assign ) ); }, - Po = (function(e) { + qo = (function(e) { function t() { - return Vr(this, t), no(this, Jr(t).apply(this, arguments)); + return Zr(this, t), lo(this, ao(t).apply(this, arguments)); } return ( - Qr(t, e), - Xr(t, [ + io(t, e), + to(t, [ { key: 'render', value: function() { @@ -232921,7 +233017,7 @@ object-assign e.innerRef), n = (e.emotion, - eo(e, [ + co(e, [ 'in', 'out', 'onExited', @@ -232933,8 +233029,8 @@ object-assign ])); return c.a.createElement( 'input', - Kr({ ref: t }, n, { - className: Object(Ir.a)({ + ro({ ref: t }, n, { + className: Object(Ur.a)({ label: 'dummyInput', background: 0, border: 0, @@ -232956,13 +233052,13 @@ object-assign t ); })(s.Component), - Do = (function(e) { + Bo = (function(e) { function t() { - return Vr(this, t), no(this, Jr(t).apply(this, arguments)); + return Zr(this, t), lo(this, ao(t).apply(this, arguments)); } return ( - Qr(t, e), - Xr(t, [ + io(t, e), + to(t, [ { key: 'componentDidMount', value: function() { @@ -232985,62 +233081,62 @@ object-assign t ); })(s.Component), - jo = ['boxSizing', 'height', 'overflow', 'paddingRight', 'position'], - zo = { + Ho = ['boxSizing', 'height', 'overflow', 'paddingRight', 'position'], + Yo = { boxSizing: 'border-box', overflow: 'hidden', position: 'relative', height: '100%' }; - function No(e) { + function Wo(e) { e.preventDefault(); } - function Ro(e) { + function Vo(e) { e.stopPropagation(); } - function Io() { + function Uo() { var e = this.scrollTop, t = this.scrollHeight, n = e + this.offsetHeight; 0 === e ? (this.scrollTop = 1) : n === t && (this.scrollTop = e - 1); } - function Fo() { + function Xo() { return 'ontouchstart' in window || navigator.maxTouchPoints; } - var qo = !( + var Go = !( 'undefined' == typeof window || !window.document || !window.document.createElement ), - Bo = 0, - Ho = (function(e) { + Ko = 0, + $o = (function(e) { function t() { var e, n; - Vr(this, t); + Zr(this, t); for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) o[i] = arguments[i]; return ( - Gr( - to( - to( - (n = no(this, (e = Jr(t)).call.apply(e, [this].concat(o)))) + no( + uo( + uo( + (n = lo(this, (e = ao(t)).call.apply(e, [this].concat(o)))) ) ), 'originalStyles', {} ), - Gr(to(to(n)), 'listenerOptions', { capture: !1, passive: !1 }), + no(uo(uo(n)), 'listenerOptions', { capture: !1, passive: !1 }), n ); } return ( - Qr(t, e), - Xr(t, [ + io(t, e), + to(t, [ { key: 'componentDidMount', value: function() { var e = this; - if (qo) { + if (Go) { var t = this.props, n = t.accountForScrollbars, r = t.touchScrollTarget, @@ -233048,41 +233144,41 @@ object-assign i = o && o.style; if ( (n && - jo.forEach(function(t) { + Ho.forEach(function(t) { var n = i && i[t]; e.originalStyles[t] = n; }), - n && Bo < 1) + n && Ko < 1) ) { var a = parseInt(this.originalStyles.paddingRight, 10) || 0, s = document.body ? document.body.clientWidth : 0, c = window.innerWidth - s + a || 0; - Object.keys(zo).forEach(function(e) { - var t = zo[e]; + Object.keys(Yo).forEach(function(e) { + var t = Yo[e]; i && (i[e] = t); }), i && (i.paddingRight = ''.concat(c, 'px')); } o && - Fo() && + Xo() && (o.addEventListener( 'touchmove', - No, + Wo, this.listenerOptions ), r && (r.addEventListener( 'touchstart', - Io, + Uo, this.listenerOptions ), r.addEventListener( 'touchmove', - Ro, + Vo, this.listenerOptions ))), - (Bo += 1); + (Ko += 1); } } }, @@ -233090,35 +233186,35 @@ object-assign key: 'componentWillUnmount', value: function() { var e = this; - if (qo) { + if (Go) { var t = this.props, n = t.accountForScrollbars, r = t.touchScrollTarget, o = document.body, i = o && o.style; - (Bo = Math.max(Bo - 1, 0)), + (Ko = Math.max(Ko - 1, 0)), n && - Bo < 1 && - jo.forEach(function(t) { + Ko < 1 && + Ho.forEach(function(t) { var n = e.originalStyles[t]; i && (i[t] = n); }), o && - Fo() && + Xo() && (o.removeEventListener( 'touchmove', - No, + Wo, this.listenerOptions ), r && (r.removeEventListener( 'touchstart', - Io, + Uo, this.listenerOptions ), r.removeEventListener( 'touchmove', - Ro, + Vo, this.listenerOptions ))); } @@ -233134,36 +233230,36 @@ object-assign t ); })(s.Component); - Gr(Ho, 'defaultProps', { accountForScrollbars: !0 }); - var Yo = (function(e) { + no($o, 'defaultProps', { accountForScrollbars: !0 }); + var Qo = (function(e) { function t() { var e, n; - Vr(this, t); + Zr(this, t); for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) o[i] = arguments[i]; return ( - Gr( - to( - to( - (n = no(this, (e = Jr(t)).call.apply(e, [this].concat(o)))) + no( + uo( + uo( + (n = lo(this, (e = ao(t)).call.apply(e, [this].concat(o)))) ) ), 'state', { touchScrollTarget: null } ), - Gr(to(to(n)), 'getScrollTarget', function(e) { + no(uo(uo(n)), 'getScrollTarget', function(e) { e !== n.state.touchScrollTarget && n.setState({ touchScrollTarget: e }); }), - Gr(to(to(n)), 'blurSelectInput', function() { + no(uo(uo(n)), 'blurSelectInput', function() { document.activeElement && document.activeElement.blur(); }), n ); } return ( - Qr(t, e), - Xr(t, [ + io(t, e), + to(t, [ { key: 'render', value: function() { @@ -233177,7 +233273,7 @@ object-assign null, c.a.createElement('div', { onClick: this.blurSelectInput, - className: Object(Ir.a)({ + className: Object(Ur.a)({ position: 'fixed', left: 0, bottom: 0, @@ -233186,12 +233282,12 @@ object-assign }) }), c.a.createElement( - Do, + Bo, { innerRef: this.getScrollTarget }, t ), r - ? c.a.createElement(Ho, { touchScrollTarget: r }) + ? c.a.createElement($o, { touchScrollTarget: r }) : null ) : t; @@ -233201,29 +233297,29 @@ object-assign t ); })(s.PureComponent), - Wo = (function(e) { + Jo = (function(e) { function t() { var e, n; - Vr(this, t); + Zr(this, t); for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) o[i] = arguments[i]; return ( - Gr( - to( - to( - (n = no(this, (e = Jr(t)).call.apply(e, [this].concat(o)))) + no( + uo( + uo( + (n = lo(this, (e = ao(t)).call.apply(e, [this].concat(o)))) ) ), 'isBottom', !1 ), - Gr(to(to(n)), 'isTop', !1), - Gr(to(to(n)), 'scrollTarget', void 0), - Gr(to(to(n)), 'touchStart', void 0), - Gr(to(to(n)), 'cancelScroll', function(e) { + no(uo(uo(n)), 'isTop', !1), + no(uo(uo(n)), 'scrollTarget', void 0), + no(uo(uo(n)), 'touchStart', void 0), + no(uo(uo(n)), 'cancelScroll', function(e) { e.preventDefault(), e.stopPropagation(); }), - Gr(to(to(n)), 'handleEventDelta', function(e, t) { + no(uo(uo(n)), 'handleEventDelta', function(e, t) { var r = n.props, o = r.onBottomArrive, i = r.onBottomLeave, @@ -233252,25 +233348,25 @@ object-assign (n.isTop = !0)), g && n.cancelScroll(e); }), - Gr(to(to(n)), 'onWheel', function(e) { + no(uo(uo(n)), 'onWheel', function(e) { n.handleEventDelta(e, e.deltaY); }), - Gr(to(to(n)), 'onTouchStart', function(e) { + no(uo(uo(n)), 'onTouchStart', function(e) { n.touchStart = e.changedTouches[0].clientY; }), - Gr(to(to(n)), 'onTouchMove', function(e) { + no(uo(uo(n)), 'onTouchMove', function(e) { var t = n.touchStart - e.changedTouches[0].clientY; n.handleEventDelta(e, t); }), - Gr(to(to(n)), 'getScrollTarget', function(e) { + no(uo(uo(n)), 'getScrollTarget', function(e) { n.scrollTarget = e; }), n ); } return ( - Qr(t, e), - Xr(t, [ + io(t, e), + to(t, [ { key: 'componentDidMount', value: function() { @@ -233316,7 +233412,7 @@ object-assign key: 'render', value: function() { return c.a.createElement( - Do, + Bo, { innerRef: this.getScrollTarget }, this.props.children ); @@ -233326,28 +233422,28 @@ object-assign t ); })(s.Component), - Vo = (function(e) { + Zo = (function(e) { function t() { - return Vr(this, t), no(this, Jr(t).apply(this, arguments)); + return Zr(this, t), lo(this, ao(t).apply(this, arguments)); } return ( - Qr(t, e), - Xr(t, [ + io(t, e), + to(t, [ { key: 'render', value: function() { var e = this.props, t = e.isEnabled, - n = eo(e, ['isEnabled']); - return t ? c.a.createElement(Wo, n) : this.props.children; + n = co(e, ['isEnabled']); + return t ? c.a.createElement(Jo, n) : this.props.children; } } ]), t ); })(s.Component); - Gr(Vo, 'defaultProps', { isEnabled: !0 }); - var Uo = function(e) { + no(Zo, 'defaultProps', { isEnabled: !0 }); + var ei = function(e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] @@ -233374,7 +233470,7 @@ object-assign return 'Use left and right to toggle between focused values, press Backspace to remove the currently focused value'; } }, - Xo = function(e, t) { + ti = function(e, t) { var n = t.value, r = t.isDisabled; if (n) @@ -233390,16 +233486,16 @@ object-assign ); } }, - Go = function(e) { + ni = function(e) { return !!e.isDisabled; }, - Ko = (function(e) { + ri = (function(e) { function t() { - return Vr(this, t), no(this, Jr(t).apply(this, arguments)); + return Zr(this, t), lo(this, ao(t).apply(this, arguments)); } return ( - Qr(t, e), - Xr(t, [ + io(t, e), + to(t, [ { key: 'render', value: function() { @@ -233414,7 +233510,7 @@ object-assign 'div', { className: r( - Object(Ir.a)(i('valueContainer', this.props)), + Object(Ur.a)(i('valueContainer', this.props)), { 'value-container': !0, 'value-container--is-multi': o, @@ -233431,19 +233527,19 @@ object-assign t ); })(s.Component), - $o = function(e) { + oi = function(e) { var t = e.size, - n = eo(e, ['size']); + n = co(e, ['size']); return c.a.createElement( 'svg', - Kr( + ro( { height: t, width: t, viewBox: '0 0 20 20', 'aria-hidden': 'true', focusable: 'false', - className: Object(Ir.a)({ + className: Object(Ur.a)({ display: 'inline-block', fill: 'currentColor', lineHeight: 1, @@ -233455,27 +233551,27 @@ object-assign ) ); }, - Qo = function(e) { + ii = function(e) { return c.a.createElement( - $o, - Kr({ size: 20 }, e), + oi, + ro({ size: 20 }, e), c.a.createElement('path', { d: 'M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z' }) ); }, - Jo = function(e) { + ai = function(e) { return c.a.createElement( - $o, - Kr({ size: 20 }, e), + oi, + ro({ size: 20 }, e), c.a.createElement('path', { d: 'M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z' }) ); }, - Zo = function(e) { + si = function(e) { var t = e.isFocused, n = e.theme, r = n.spacing.baseUnit, @@ -233489,15 +233585,15 @@ object-assign ':hover': { color: t ? o.neutral80 : o.neutral40 } }; }, - ei = Zo, - ti = Zo, - ni = !1, - ri = function(e) { + ci = si, + ui = si, + li = !1, + fi = function(e) { var t = e.color, n = e.delay, r = e.offset; return c.a.createElement('span', { - className: Object(Ir.a)({ + className: Object(Ur.a)({ animationDuration: '1s', animationDelay: ''.concat(n, 'ms'), animationIterationCount: 'infinite', @@ -233513,7 +233609,7 @@ object-assign }) }); }, - oi = function(e) { + di = function(e) { var t = e.className, n = e.cx, r = e.getStyles, @@ -233523,30 +233619,30 @@ object-assign s = e.theme.colors, u = i ? s.neutral80 : s.neutral20; return ( - ni || - (Object(Ir.b)( + li || + (Object(Ur.b)( '@keyframes ', 'react-select-loading-indicator', '{0%,80%,100%{opacity:0;}40%{opacity:1;}};' ), - (ni = !0)), + (li = !0)), c.a.createElement( 'div', - Kr({}, o, { + ro({}, o, { className: n( - Object(Ir.a)(r('loadingIndicator', e)), + Object(Ur.a)(r('loadingIndicator', e)), { indicator: !0, 'loading-indicator': !0 }, t ) }), - c.a.createElement(ri, { color: u, delay: 0, offset: a }), - c.a.createElement(ri, { color: u, delay: 160, offset: !0 }), - c.a.createElement(ri, { color: u, delay: 320, offset: !a }) + c.a.createElement(fi, { color: u, delay: 0, offset: a }), + c.a.createElement(fi, { color: u, delay: 160, offset: !0 }), + c.a.createElement(fi, { color: u, delay: 320, offset: !a }) ) ); }; - oi.defaultProps = { size: 4 }; - var ii = function(e) { + di.defaultProps = { size: 4 }; + var pi = function(e) { return { label: 'input', background: 0, @@ -233558,20 +233654,20 @@ object-assign color: 'inherit' }; }, - ai = function(e) { + hi = function(e) { var t = e.children, n = e.innerProps; return c.a.createElement('div', n, t); }, - si = ai, - ci = ai, - ui = (function(e) { + gi = hi, + mi = hi, + bi = (function(e) { function t() { - return Vr(this, t), no(this, Jr(t).apply(this, arguments)); + return Zr(this, t), lo(this, ao(t).apply(this, arguments)); } return ( - Qr(t, e), - Xr(t, [ + io(t, e), + to(t, [ { key: 'render', value: function() { @@ -233581,7 +233677,7 @@ object-assign return c.a.createElement( 'div', n, - t || c.a.createElement(Qo, { size: 14 }) + t || c.a.createElement(ii, { size: 14 }) ); } } @@ -233589,13 +233685,13 @@ object-assign t ); })(s.Component), - li = (function(e) { + yi = (function(e) { function t() { - return Vr(this, t), no(this, Jr(t).apply(this, arguments)); + return Zr(this, t), lo(this, ao(t).apply(this, arguments)); } return ( - Qr(t, e), - Xr(t, [ + io(t, e), + to(t, [ { key: 'render', value: function() { @@ -233613,10 +233709,10 @@ object-assign d = r.Container, p = r.Label, h = r.Remove, - g = $r( + g = oo( { className: o( - Object(Ir.a)(a('multiValue', this.props)), + Object(Ur.a)(a('multiValue', this.props)), { 'multi-value': !0, 'multi-value--is-disabled': u }, n ) @@ -233625,15 +233721,15 @@ object-assign ), m = { className: o( - Object(Ir.a)(a('multiValueLabel', this.props)), + Object(Ur.a)(a('multiValueLabel', this.props)), { 'multi-value__label': !0 }, n ) }, - b = $r( + b = oo( { className: o( - Object(Ir.a)(a('multiValueRemove', this.props)), + Object(Ur.a)(a('multiValueRemove', this.props)), { 'multi-value__remove': !0 }, n ) @@ -233660,8 +233756,8 @@ object-assign t ); })(s.Component); - Gr(li, 'defaultProps', { cropWithEllipsis: !0 }); - var fi = { + no(yi, 'defaultProps', { cropWithEllipsis: !0 }); + var vi = { ClearIndicator: function(e) { var t = e.children, n = e.className, @@ -233670,14 +233766,14 @@ object-assign i = e.innerProps; return c.a.createElement( 'div', - Kr({}, i, { + ro({}, i, { className: r( - Object(Ir.a)(o('clearIndicator', e)), + Object(Ur.a)(o('clearIndicator', e)), { indicator: !0, 'clear-indicator': !0 }, n ) }), - t || c.a.createElement(Qo, null) + t || c.a.createElement(ii, null) ); }, Control: function(e) { @@ -233692,11 +233788,11 @@ object-assign l = e.menuIsOpen; return c.a.createElement( 'div', - Kr( + ro( { ref: s, className: n( - Object(Ir.a)(r('control', e)), + Object(Ur.a)(r('control', e)), { control: !0, 'control--is-disabled': i, @@ -233719,18 +233815,18 @@ object-assign i = e.innerProps; return c.a.createElement( 'div', - Kr({}, i, { + ro({}, i, { className: r( - Object(Ir.a)(o('dropdownIndicator', e)), + Object(Ur.a)(o('dropdownIndicator', e)), { indicator: !0, 'dropdown-indicator': !0 }, n ) }), - t || c.a.createElement(Jo, null) + t || c.a.createElement(ai, null) ); }, - DownChevron: Jo, - CrossIcon: Qo, + DownChevron: ai, + CrossIcon: ii, Group: function(e) { var t = e.children, n = e.className, @@ -233743,10 +233839,10 @@ object-assign l = e.selectProps; return c.a.createElement( 'div', - { className: r(Object(Ir.a)(o('group', e)), { group: !0 }, n) }, + { className: r(Object(Ur.a)(o('group', e)), { group: !0 }, n) }, c.a.createElement( i, - Kr({}, a, { selectProps: l, theme: u, getStyles: o, cx: r }), + ro({}, a, { selectProps: l, theme: u, getStyles: o, cx: r }), s ), c.a.createElement('div', null, t) @@ -233759,7 +233855,7 @@ object-assign o = e.theme, i = (e.selectProps, - eo(e, [ + co(e, [ 'className', 'cx', 'getStyles', @@ -233768,10 +233864,10 @@ object-assign ])); return c.a.createElement( 'div', - Kr( + ro( { className: n( - Object(Ir.a)(r('groupHeading', $r({ theme: o }, i))), + Object(Ur.a)(r('groupHeading', oo({ theme: o }, i))), { 'group-heading': !0 }, t ) @@ -233789,7 +233885,7 @@ object-assign 'div', { className: r( - Object(Ir.a)(o('indicatorsContainer', e)), + Object(Ur.a)(o('indicatorsContainer', e)), { indicators: !0 }, n ) @@ -233804,9 +233900,9 @@ object-assign o = e.innerProps; return c.a.createElement( 'span', - Kr({}, o, { + ro({}, o, { className: n( - Object(Ir.a)(r('indicatorSeparator', e)), + Object(Ur.a)(r('indicatorSeparator', e)), { 'indicator-separator': !0 }, t ) @@ -233823,7 +233919,7 @@ object-assign s = e.theme, u = (e.selectProps, - eo(e, [ + co(e, [ 'className', 'cx', 'getStyles', @@ -233835,14 +233931,14 @@ object-assign ])); return c.a.createElement( 'div', - { className: Object(Ir.a)(r('input', $r({ theme: s }, u))) }, + { className: Object(Ur.a)(r('input', oo({ theme: s }, u))) }, c.a.createElement( - Hr.a, - Kr( + $r.a, + ro( { className: n(null, { input: !0 }, t), inputRef: o, - inputStyle: ii(i), + inputStyle: pi(i), disabled: a }, u @@ -233850,7 +233946,7 @@ object-assign ) ); }, - LoadingIndicator: oi, + LoadingIndicator: di, Menu: function(e) { var t = e.children, n = e.className, @@ -233858,10 +233954,10 @@ object-assign o = e.getStyles, i = e.innerRef, a = e.innerProps, - s = r(Object(Ir.a)(o('menu', e)), { menu: !0 }, n); + s = r(Object(Ur.a)(o('menu', e)), { menu: !0 }, n); return c.a.createElement( 'div', - Kr({ className: s }, a, { ref: i }), + ro({ className: s }, a, { ref: i }), t ); }, @@ -233876,7 +233972,7 @@ object-assign 'div', { className: r( - Object(Ir.a)(o('menuList', e)), + Object(Ur.a)(o('menuList', e)), { 'menu-list': !0, 'menu-list--is-multi': i }, n ), @@ -233885,13 +233981,13 @@ object-assign t ); }, - MenuPortal: xo, - LoadingMessage: wo, - NoOptionsMessage: _o, - MultiValue: li, - MultiValueContainer: si, - MultiValueLabel: ci, - MultiValueRemove: ui, + MenuPortal: Co, + LoadingMessage: To, + NoOptionsMessage: Ao, + MultiValue: yi, + MultiValueContainer: gi, + MultiValueLabel: mi, + MultiValueRemove: bi, Option: function(e) { var t = e.children, n = e.className, @@ -233904,11 +234000,11 @@ object-assign l = e.innerProps; return c.a.createElement( 'div', - Kr( + ro( { ref: u, className: r( - Object(Ir.a)(o('option', e)), + Object(Ur.a)(o('option', e)), { option: !0, 'option--is-disabled': i, @@ -233931,10 +234027,10 @@ object-assign i = e.innerProps; return c.a.createElement( 'div', - Kr( + ro( { className: r( - Object(Ir.a)(o('placeholder', e)), + Object(Ur.a)(o('placeholder', e)), { placeholder: !0 }, n ) @@ -233954,10 +234050,10 @@ object-assign s = e.isRtl; return c.a.createElement( 'div', - Kr( + ro( { className: r( - Object(Ir.a)(o('container', e)), + Object(Ur.a)(o('container', e)), { '--is-disabled': a, '--is-rtl': s }, n ) @@ -233976,10 +234072,10 @@ object-assign a = e.innerProps; return c.a.createElement( 'div', - Kr( + ro( { className: r( - Object(Ir.a)(o('singleValue', e)), + Object(Ur.a)(o('singleValue', e)), { 'single-value': !0, 'single-value--is-disabled': i }, n ) @@ -233989,13 +234085,13 @@ object-assign t ); }, - ValueContainer: Ko + ValueContainer: ri }, - di = function(e) { - return $r({}, fi, e.components); + _i = function(e) { + return oo({}, vi, e.components); }, - pi = { - clearIndicator: ti, + wi = { + clearIndicator: ui, container: function(e) { var t = e.isDisabled; return { @@ -234032,7 +234128,7 @@ object-assign '&:hover': { borderColor: n ? o.primary : o.neutral30 } }; }, - dropdownIndicator: ei, + dropdownIndicator: ci, group: function(e) { var t = e.theme.spacing; return { @@ -234110,7 +234206,7 @@ object-assign verticalAlign: 'middle' }; }, - loadingMessage: vo, + loadingMessage: Eo, menu: function(e) { var t, n = e.placement, @@ -234119,25 +234215,25 @@ object-assign i = r.spacing, a = r.colors; return ( - Gr( + no( (t = { label: 'menu' }), (function(e) { return e ? { bottom: 'top', top: 'bottom' }[e] : 'bottom'; })(n), '100%' ), - Gr(t, 'backgroundColor', a.neutral0), - Gr(t, 'borderRadius', o), - Gr( + no(t, 'backgroundColor', a.neutral0), + no(t, 'borderRadius', o), + no( t, 'boxShadow', '0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)' ), - Gr(t, 'marginBottom', i.menuGutter), - Gr(t, 'marginTop', i.menuGutter), - Gr(t, 'position', 'absolute'), - Gr(t, 'width', '100%'), - Gr(t, 'zIndex', 1), + no(t, 'marginBottom', i.menuGutter), + no(t, 'marginTop', i.menuGutter), + no(t, 'position', 'absolute'), + no(t, 'width', '100%'), + no(t, 'zIndex', 1), t ); }, @@ -234209,7 +234305,7 @@ object-assign ':hover': { backgroundColor: o.dangerLight, color: o.danger } }; }, - noOptionsMessage: yo, + noOptionsMessage: Oo, option: function(e) { var t = e.isDisabled, n = e.isFocused, @@ -234283,8 +234379,8 @@ object-assign }; } }; - var hi, - gi = { + var xi, + Mi = { borderRadius: 4, colors: { primary: '#2684FF', @@ -234307,36 +234403,36 @@ object-assign }, spacing: { baseUnit: 4, controlHeight: 38, menuGutter: 8 } }, - mi = { + ki = { backspaceRemovesValue: !0, - blurInputOnSelect: po(), - captureMenuScroll: !po(), + blurInputOnSelect: wo(), + captureMenuScroll: !wo(), closeMenuOnSelect: !0, closeMenuOnScroll: !1, components: {}, controlShouldRenderValue: !0, escapeClearsValue: !1, filterOption: function(e, t) { - var n = $r( + var n = oo( { ignoreCase: !0, ignoreAccents: !0, - stringify: Co, + stringify: Io, trim: !0, matchFrom: 'any' }, - hi + xi ), r = n.ignoreCase, o = n.ignoreAccents, i = n.stringify, a = n.trim, s = n.matchFrom, - c = a ? To(t) : t, - u = a ? To(i(e)) : i(e); + c = a ? Ro(t) : t, + u = a ? Ro(i(e)) : i(e); return ( r && ((c = c.toLowerCase()), (u = u.toLowerCase())), - o && ((c = Ao(c)), (u = Ao(u))), + o && ((c = No(c)), (u = No(u))), 'start' === s ? u.substr(0, c.length) === c : u.indexOf(c) > -1 ); }, @@ -234354,7 +234450,7 @@ object-assign isMulti: !1, isRtl: !1, isSearchable: !0, - isOptionDisabled: Go, + isOptionDisabled: ni, loadingMessage: function() { return 'Loading...'; }, @@ -234391,12 +234487,12 @@ object-assign tabIndex: '0', tabSelectsValue: !0 }, - bi = 1, - yi = (function(e) { + Si = 1, + Oi = (function(e) { function t(e) { var n; - Vr(this, t), - Gr(to(to((n = no(this, Jr(t).call(this, e))))), 'state', { + Zr(this, t), + no(uo(uo((n = lo(this, ao(t).call(this, e))))), 'state', { ariaLiveSelection: '', ariaLiveContext: '', focusedOption: null, @@ -234406,45 +234502,45 @@ object-assign menuOptions: { render: [], focusable: [] }, selectValue: [] }), - Gr(to(to(n)), 'blockOptionHover', !1), - Gr(to(to(n)), 'isComposing', !1), - Gr(to(to(n)), 'clearFocusValueOnUpdate', !1), - Gr(to(to(n)), 'commonProps', void 0), - Gr(to(to(n)), 'components', void 0), - Gr(to(to(n)), 'hasGroups', !1), - Gr(to(to(n)), 'initialTouchX', 0), - Gr(to(to(n)), 'initialTouchY', 0), - Gr(to(to(n)), 'inputIsHiddenAfterUpdate', void 0), - Gr(to(to(n)), 'instancePrefix', ''), - Gr(to(to(n)), 'openAfterFocus', !1), - Gr(to(to(n)), 'scrollToFocusedOptionOnUpdate', !1), - Gr(to(to(n)), 'userIsDragging', void 0), - Gr(to(to(n)), 'controlRef', null), - Gr(to(to(n)), 'getControlRef', function(e) { + no(uo(uo(n)), 'blockOptionHover', !1), + no(uo(uo(n)), 'isComposing', !1), + no(uo(uo(n)), 'clearFocusValueOnUpdate', !1), + no(uo(uo(n)), 'commonProps', void 0), + no(uo(uo(n)), 'components', void 0), + no(uo(uo(n)), 'hasGroups', !1), + no(uo(uo(n)), 'initialTouchX', 0), + no(uo(uo(n)), 'initialTouchY', 0), + no(uo(uo(n)), 'inputIsHiddenAfterUpdate', void 0), + no(uo(uo(n)), 'instancePrefix', ''), + no(uo(uo(n)), 'openAfterFocus', !1), + no(uo(uo(n)), 'scrollToFocusedOptionOnUpdate', !1), + no(uo(uo(n)), 'userIsDragging', void 0), + no(uo(uo(n)), 'controlRef', null), + no(uo(uo(n)), 'getControlRef', function(e) { n.controlRef = e; }), - Gr(to(to(n)), 'focusedOptionRef', null), - Gr(to(to(n)), 'getFocusedOptionRef', function(e) { + no(uo(uo(n)), 'focusedOptionRef', null), + no(uo(uo(n)), 'getFocusedOptionRef', function(e) { n.focusedOptionRef = e; }), - Gr(to(to(n)), 'menuListRef', null), - Gr(to(to(n)), 'getMenuListRef', function(e) { + no(uo(uo(n)), 'menuListRef', null), + no(uo(uo(n)), 'getMenuListRef', function(e) { n.menuListRef = e; }), - Gr(to(to(n)), 'inputRef', null), - Gr(to(to(n)), 'getInputRef', function(e) { + no(uo(uo(n)), 'inputRef', null), + no(uo(uo(n)), 'getInputRef', function(e) { n.inputRef = e; }), - Gr(to(to(n)), 'cacheComponents', function(e) { - n.components = di({ components: e }); + no(uo(uo(n)), 'cacheComponents', function(e) { + n.components = _i({ components: e }); }), - Gr(to(to(n)), 'focus', n.focusInput), - Gr(to(to(n)), 'blur', n.blurInput), - Gr(to(to(n)), 'onChange', function(e, t) { + no(uo(uo(n)), 'focus', n.focusInput), + no(uo(uo(n)), 'blur', n.blurInput), + no(uo(uo(n)), 'onChange', function(e, t) { var r = n.props; - (0, r.onChange)(e, $r({}, t, { name: r.name })); + (0, r.onChange)(e, oo({}, t, { name: r.name })); }), - Gr(to(to(n)), 'setValue', function(e) { + no(uo(uo(n)), 'setValue', function(e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] @@ -234458,7 +234554,7 @@ object-assign (n.clearFocusValueOnUpdate = !0), n.onChange(e, { action: t, option: r }); }), - Gr(to(to(n)), 'selectOption', function(e) { + no(uo(uo(n)), 'selectOption', function(e) { var t = n.props, r = t.blurInputOnSelect, o = t.isMulti, @@ -234486,7 +234582,7 @@ object-assign isDisabled: !0 } }) - : (n.setValue([].concat(ro(i), [e]), 'select-option', e), + : (n.setValue([].concat(fo(i), [e]), 'select-option', e), n.announceAriaLiveSelection({ event: 'select-option', context: { value: n.getOptionLabel(e) } @@ -234504,7 +234600,7 @@ object-assign })); r && n.blurInput(); }), - Gr(to(to(n)), 'removeValue', function(e) { + no(uo(uo(n)), 'removeValue', function(e) { var t = n.state.selectValue, r = n.getOptionValue(e); n.onChange( @@ -234519,11 +234615,11 @@ object-assign }), n.focusInput(); }), - Gr(to(to(n)), 'clearValue', function() { + no(uo(uo(n)), 'clearValue', function() { var e = n.props.isMulti; n.onChange(e ? [] : null, { action: 'clear' }); }), - Gr(to(to(n)), 'popValue', function() { + no(uo(uo(n)), 'popValue', function() { var e = n.state.selectValue, t = e[e.length - 1]; n.announceAriaLiveSelection({ @@ -234535,22 +234631,22 @@ object-assign removedValue: t }); }), - Gr(to(to(n)), 'getOptionLabel', function(e) { + no(uo(uo(n)), 'getOptionLabel', function(e) { return n.props.getOptionLabel(e); }), - Gr(to(to(n)), 'getOptionValue', function(e) { + no(uo(uo(n)), 'getOptionValue', function(e) { return n.props.getOptionValue(e); }), - Gr(to(to(n)), 'getStyles', function(e, t) { - var r = pi[e](t); + no(uo(uo(n)), 'getStyles', function(e, t) { + var r = wi[e](t); r.boxSizing = 'border-box'; var o = n.props.styles[e]; return o ? o(r, t) : r; }), - Gr(to(to(n)), 'getElementId', function(e) { + no(uo(uo(n)), 'getElementId', function(e) { return ''.concat(n.instancePrefix, '-').concat(e); }), - Gr(to(to(n)), 'getActiveDescendentId', function() { + no(uo(uo(n)), 'getActiveDescendentId', function() { var e = n.props.menuIsOpen, t = n.state, r = t.menuOptions, @@ -234561,29 +234657,29 @@ object-assign return a && a.key; } }), - Gr(to(to(n)), 'announceAriaLiveSelection', function(e) { + no(uo(uo(n)), 'announceAriaLiveSelection', function(e) { var t = e.event, r = e.context; - n.setState({ ariaLiveSelection: Xo(t, r) }); + n.setState({ ariaLiveSelection: ti(t, r) }); }), - Gr(to(to(n)), 'announceAriaLiveContext', function(e) { + no(uo(uo(n)), 'announceAriaLiveContext', function(e) { var t = e.event, r = e.context; n.setState({ - ariaLiveContext: Uo( + ariaLiveContext: ei( t, - $r({}, r, { label: n.props['aria-label'] }) + oo({}, r, { label: n.props['aria-label'] }) ) }); }), - Gr(to(to(n)), 'onMenuMouseDown', function(e) { + no(uo(uo(n)), 'onMenuMouseDown', function(e) { 0 === e.button && (e.stopPropagation(), e.preventDefault(), n.focusInput()); }), - Gr(to(to(n)), 'onMenuMouseMove', function(e) { + no(uo(uo(n)), 'onMenuMouseMove', function(e) { n.blockOptionHover = !1; }), - Gr(to(to(n)), 'onControlMouseDown', function(e) { + no(uo(uo(n)), 'onControlMouseDown', function(e) { var t = n.props.openMenuOnClick; n.state.isFocused ? n.props.menuIsOpen @@ -234592,7 +234688,7 @@ object-assign : (t && (n.openAfterFocus = !0), n.focusInput()), 'INPUT' !== e.target.tagName && e.preventDefault(); }), - Gr(to(to(n)), 'onDropdownIndicatorMouseDown', function(e) { + no(uo(uo(n)), 'onDropdownIndicatorMouseDown', function(e) { if ( !( (e && 'mousedown' === e.type && 0 !== e.button) || @@ -234610,7 +234706,7 @@ object-assign e.stopPropagation(); } }), - Gr(to(to(n)), 'onClearIndicatorMouseDown', function(e) { + no(uo(uo(n)), 'onClearIndicatorMouseDown', function(e) { (e && 'mousedown' === e.type && 0 !== e.button) || (n.clearValue(), e.stopPropagation(), @@ -234619,29 +234715,29 @@ object-assign return n.focusInput(); })); }), - Gr(to(to(n)), 'onScroll', function(e) { + no(uo(uo(n)), 'onScroll', function(e) { 'boolean' == typeof n.props.closeMenuOnScroll ? e.target instanceof HTMLElement && - co(e.target) && + bo(e.target) && n.props.onMenuClose() : 'function' == typeof n.props.closeMenuOnScroll && n.props.closeMenuOnScroll(e) && n.props.onMenuClose(); }), - Gr(to(to(n)), 'onCompositionStart', function() { + no(uo(uo(n)), 'onCompositionStart', function() { n.isComposing = !0; }), - Gr(to(to(n)), 'onCompositionEnd', function() { + no(uo(uo(n)), 'onCompositionEnd', function() { n.isComposing = !1; }), - Gr(to(to(n)), 'onTouchStart', function(e) { + no(uo(uo(n)), 'onTouchStart', function(e) { var t = e.touches.item(0); t && ((n.initialTouchX = t.clientX), (n.initialTouchY = t.clientY), (n.userIsDragging = !1)); }), - Gr(to(to(n)), 'onTouchMove', function(e) { + no(uo(uo(n)), 'onTouchMove', function(e) { var t = e.touches.item(0); if (t) { var r = Math.abs(t.clientX - n.initialTouchX), @@ -234649,7 +234745,7 @@ object-assign n.userIsDragging = r > 5 || o > 5; } }), - Gr(to(to(n)), 'onTouchEnd', function(e) { + no(uo(uo(n)), 'onTouchEnd', function(e) { n.userIsDragging || (n.controlRef && !n.controlRef.contains(e.target) && @@ -234659,22 +234755,22 @@ object-assign (n.initialTouchX = 0), (n.initialTouchY = 0)); }), - Gr(to(to(n)), 'onControlTouchEnd', function(e) { + no(uo(uo(n)), 'onControlTouchEnd', function(e) { n.userIsDragging || n.onControlMouseDown(e); }), - Gr(to(to(n)), 'onClearIndicatorTouchEnd', function(e) { + no(uo(uo(n)), 'onClearIndicatorTouchEnd', function(e) { n.userIsDragging || n.onClearIndicatorMouseDown(e); }), - Gr(to(to(n)), 'onDropdownIndicatorTouchEnd', function(e) { + no(uo(uo(n)), 'onDropdownIndicatorTouchEnd', function(e) { n.userIsDragging || n.onDropdownIndicatorMouseDown(e); }), - Gr(to(to(n)), 'handleInputChange', function(e) { + no(uo(uo(n)), 'handleInputChange', function(e) { var t = e.currentTarget.value; (n.inputIsHiddenAfterUpdate = !1), n.onInputChange(t, { action: 'input-change' }), n.onMenuOpen(); }), - Gr(to(to(n)), 'onInputFocus', function(e) { + no(uo(uo(n)), 'onInputFocus', function(e) { var t = n.props, r = t.isSearchable, o = t.isMulti; @@ -234689,7 +234785,7 @@ object-assign n.openMenu('first'), (n.openAfterFocus = !1); }), - Gr(to(to(n)), 'onInputBlur', function(e) { + no(uo(uo(n)), 'onInputBlur', function(e) { n.menuListRef && n.menuListRef.contains(document.activeElement) ? n.inputRef.focus() : (n.props.onBlur && n.props.onBlur(e), @@ -234697,18 +234793,18 @@ object-assign n.onMenuClose(), n.setState({ focusedValue: null, isFocused: !1 })); }), - Gr(to(to(n)), 'onOptionHover', function(e) { + no(uo(uo(n)), 'onOptionHover', function(e) { n.blockOptionHover || n.state.focusedOption === e || n.setState({ focusedOption: e }); }), - Gr(to(to(n)), 'shouldHideSelectedOptions', function() { + no(uo(uo(n)), 'shouldHideSelectedOptions', function() { var e = n.props, t = e.hideSelectedOptions, r = e.isMulti; return void 0 === t ? r : t; }), - Gr(to(to(n)), 'onKeyDown', function(e) { + no(uo(uo(n)), 'onKeyDown', function(e) { var t = n.props, r = t.isMulti, o = t.backspaceRemovesValue, @@ -234811,19 +234907,19 @@ object-assign } }); var r = e.value; - (n.cacheComponents = Object(Rr.a)(n.cacheComponents, Oo).bind( - to(to(n)) + (n.cacheComponents = Object(Vr.a)(n.cacheComponents, jo).bind( + uo(uo(n)) )), n.cacheComponents(e.components), (n.instancePrefix = - 'react-select-' + (n.props.instanceId || ++bi)); - var o = so(r), + 'react-select-' + (n.props.instanceId || ++Si)); + var o = mo(r), i = n.buildMenuOptions(e, o); return (n.state.menuOptions = i), (n.state.selectValue = o), n; } return ( - Qr(t, e), - Xr(t, [ + io(t, e), + to(t, [ { key: 'componentDidMount', value: function() { @@ -234847,7 +234943,7 @@ object-assign (this.cacheComponents(e.components), e.value !== r || e.options !== n || e.inputValue !== o) ) { - var i = so(e.value), + var i = mo(e.value), a = this.buildMenuOptions(e, i), s = this.getNextFocusedValue(i), c = this.getNextFocusedOption(a.focusable); @@ -234888,7 +234984,7 @@ object-assign (o = n.getBoundingClientRect()), (i = n.offsetHeight / 3), o.bottom + i > r.bottom - ? lo( + ? vo( t, Math.min( n.offsetTop + n.clientHeight - t.offsetHeight + i, @@ -234896,7 +234992,7 @@ object-assign ) ) : o.top - i < r.top && - lo(t, Math.max(n.offsetTop - i, 0))), + vo(t, Math.max(n.offsetTop - i, 0))), (this.scrollToFocusedOptionOnUpdate = !1); } }, @@ -235043,7 +235139,7 @@ object-assign }), this.announceAriaLiveContext({ event: 'menu', - context: { isDisabled: Go(i[a]) } + context: { isDisabled: ni(i[a]) } }); } } @@ -235053,9 +235149,9 @@ object-assign value: function() { return this.props.theme ? 'function' == typeof this.props.theme - ? this.props.theme(gi) - : $r({}, gi, this.props.theme) - : gi; + ? this.props.theme(Mi) + : oo({}, Mi, this.props.theme) + : Mi; } }, { @@ -235073,7 +235169,7 @@ object-assign u = this.state.selectValue, l = this.hasValue(); return { - cx: ao.bind(null, i), + cx: go.bind(null, i), clearValue: e, getStyles: t, getValue: function() { @@ -235408,11 +235504,11 @@ object-assign s = this.state.inputIsHidden, u = r || this.getElementId('input'); if (!n) - return c.a.createElement(Po, { + return c.a.createElement(qo, { id: u, innerRef: this.getInputRef, onBlur: this.onInputBlur, - onChange: oo, + onChange: po, onFocus: this.onInputFocus, readOnly: !0, disabled: t, @@ -235430,7 +235526,7 @@ object-assign h = f.selectProps; return c.a.createElement( a, - Kr( + ro( { autoCapitalize: 'none', autoComplete: 'off', @@ -235483,7 +235579,7 @@ object-assign ? null : c.a.createElement( s, - Kr({}, u, { + ro({}, u, { key: 'placeholder', isDisabled: d, isFocused: v @@ -235495,7 +235591,7 @@ object-assign var a = t === y; return c.a.createElement( n, - Kr({}, u, { + ro({}, u, { components: { Container: r, Label: o, Remove: i }, isFocused: a, isDisabled: d, @@ -235520,7 +235616,7 @@ object-assign var _ = b[0]; return c.a.createElement( a, - Kr({}, u, { data: _, isDisabled: d }), + ro({}, u, { data: _, isDisabled: d }), this.formatOptionLabel(_, 'value') ); } @@ -235543,7 +235639,7 @@ object-assign }; return c.a.createElement( e, - Kr({}, t, { innerProps: a, isFocused: i }) + ro({}, t, { innerProps: a, isFocused: i }) ); } }, @@ -235559,7 +235655,7 @@ object-assign if (!e || !o) return null; return c.a.createElement( e, - Kr({}, t, { + ro({}, t, { innerProps: { 'aria-hidden': 'true' }, isDisabled: r, isFocused: i @@ -235579,7 +235675,7 @@ object-assign i = this.state.isFocused; return c.a.createElement( n, - Kr({}, r, { isDisabled: o, isFocused: i }) + ro({}, r, { isDisabled: o, isFocused: i }) ); } }, @@ -235598,7 +235694,7 @@ object-assign }; return c.a.createElement( e, - Kr({}, t, { innerProps: o, isDisabled: n, isFocused: r }) + ro({}, t, { innerProps: o, isDisabled: n, isFocused: r }) ); } }, @@ -235643,7 +235739,7 @@ object-assign (t.innerRef = n ? e.getFocusedOptionRef : void 0), c.a.createElement( l, - Kr({}, f, t, { isFocused: n }), + ro({}, f, t, { isFocused: n }), e.formatOptionLabel(t.data, 'menu') ) ); @@ -235652,11 +235748,11 @@ object-assign L = h.render.map(function(t) { if ('group' === t.type) { t.type; - var o = eo(t, ['type']), + var o = co(t, ['type']), i = ''.concat(t.key, '-heading'); return c.a.createElement( n, - Kr({}, f, o, { + ro({}, f, o, { Heading: r, headingProps: { id: i }, label: e.formatGroupLabel(t.data) @@ -235684,14 +235780,14 @@ object-assign menuPosition: k, menuShouldScrollIntoView: E }, - N = c.a.createElement(mo, Kr({}, f, z), function(t) { + N = c.a.createElement(ko, ro({}, f, z), function(t) { var n = t.ref, r = t.placerProps, a = r.placement, s = r.maxHeight; return c.a.createElement( o, - Kr({}, f, z, { + ro({}, f, z, { innerRef: n, innerProps: { onMouseDown: e.onMenuMouseDown, @@ -235701,14 +235797,14 @@ object-assign placement: a }), c.a.createElement( - Vo, + Zo, { isEnabled: m, onTopArrive: T, onBottomArrive: C }, c.a.createElement( - Yo, + Qo, { isEnabled: O }, c.a.createElement( i, - Kr({}, f, { + ro({}, f, { innerRef: e.getMenuListRef, isLoading: y, maxHeight: s @@ -235722,7 +235818,7 @@ object-assign return S || 'fixed' === k ? c.a.createElement( a, - Kr({}, f, { + ro({}, f, { appendTo: S, controlElement: this.controlRef, menuPlacement: M, @@ -235787,7 +235883,7 @@ object-assign value: function() { return this.state.isFocused ? c.a.createElement( - Lo, + Fo, { 'aria-live': 'assertive' }, c.a.createElement( 'p', @@ -235822,7 +235918,7 @@ object-assign d = (this.commonProps = this.getCommonProps()); return c.a.createElement( r, - Kr({}, d, { + ro({}, d, { className: a, innerProps: { id: s, onKeyDown: this.onKeyDown }, isDisabled: u, @@ -235831,7 +235927,7 @@ object-assign this.renderLiveRegion(), c.a.createElement( t, - Kr({}, d, { + ro({}, d, { innerRef: this.getControlRef, innerProps: { onMouseDown: this.onControlMouseDown, @@ -235843,13 +235939,13 @@ object-assign }), c.a.createElement( o, - Kr({}, d, { isDisabled: u }), + ro({}, d, { isDisabled: u }), this.renderPlaceholderOrValue(), this.renderInput() ), c.a.createElement( n, - Kr({}, d, { isDisabled: u }), + ro({}, d, { isDisabled: u }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), @@ -235865,19 +235961,19 @@ object-assign t ); })(s.Component); - Gr(yi, 'defaultProps', mi); - var vi = { + no(Oi, 'defaultProps', ki); + var Ei = { defaultInputValue: '', defaultMenuIsOpen: !1, defaultValue: null }, - _i = function(e) { + Ai = function(e) { var t, n; return ( (n = t = (function(t) { function n() { var e, t; - Vr(this, n); + Zr(this, n); for ( var r = arguments.length, o = new Array(r), i = 0; i < r; @@ -235885,19 +235981,19 @@ object-assign ) o[i] = arguments[i]; return ( - Gr( - to( - to( - (t = no( + no( + uo( + uo( + (t = lo( this, - (e = Jr(n)).call.apply(e, [this].concat(o)) + (e = ao(n)).call.apply(e, [this].concat(o)) )) ) ), 'select', void 0 ), - Gr(to(to(t)), 'state', { + no(uo(uo(t)), 'state', { inputValue: void 0 !== t.props.inputValue ? t.props.inputValue @@ -235911,25 +236007,25 @@ object-assign ? t.props.value : t.props.defaultValue }), - Gr(to(to(t)), 'onChange', function(e, n) { + no(uo(uo(t)), 'onChange', function(e, n) { t.callProp('onChange', e, n), t.setState({ value: e }); }), - Gr(to(to(t)), 'onInputChange', function(e, n) { + no(uo(uo(t)), 'onInputChange', function(e, n) { var r = t.callProp('onInputChange', e, n); t.setState({ inputValue: void 0 !== r ? r : e }); }), - Gr(to(to(t)), 'onMenuOpen', function() { + no(uo(uo(t)), 'onMenuOpen', function() { t.callProp('onMenuOpen'), t.setState({ menuIsOpen: !0 }); }), - Gr(to(to(t)), 'onMenuClose', function() { + no(uo(uo(t)), 'onMenuClose', function() { t.callProp('onMenuClose'), t.setState({ menuIsOpen: !1 }); }), t ); } return ( - Qr(n, t), - Xr(n, [ + io(n, t), + to(n, [ { key: 'focus', value: function() { @@ -235976,14 +236072,14 @@ object-assign (n.defaultInputValue, n.defaultMenuIsOpen, n.defaultValue, - eo(n, [ + co(n, [ 'defaultInputValue', 'defaultMenuIsOpen', 'defaultValue' ])); return c.a.createElement( e, - Kr({}, r, { + ro({}, r, { ref: function(e) { t.select = e; }, @@ -236002,28 +236098,28 @@ object-assign n ); })(s.Component)), - Gr(t, 'defaultProps', vi), + no(t, 'defaultProps', Ei), n ); }, - wi = { cacheOptions: !1, defaultOptions: !1, filterOption: null }, - xi = function(e) { + Ti = { cacheOptions: !1, defaultOptions: !1, filterOption: null }, + Ci = function(e) { var t, n; return ( (n = t = (function(t) { function n(e) { var t; return ( - Vr(this, n), - Gr( - to(to((t = no(this, Jr(n).call(this))))), + Zr(this, n), + no( + uo(uo((t = lo(this, ao(n).call(this))))), 'select', void 0 ), - Gr(to(to(t)), 'lastRequest', void 0), - Gr(to(to(t)), 'mounted', !1), - Gr(to(to(t)), 'optionsCache', {}), - Gr(to(to(t)), 'handleInputChange', function(e, n) { + no(uo(uo(t)), 'lastRequest', void 0), + no(uo(uo(t)), 'mounted', !1), + no(uo(uo(t)), 'optionsCache', {}), + no(uo(uo(t)), 'handleInputChange', function(e, n) { var r = t.props, o = r.cacheOptions, i = (function(e, t, n) { @@ -236091,8 +236187,8 @@ object-assign ); } return ( - Qr(n, t), - Xr(n, [ + io(n, t), + to(n, [ { key: 'componentDidMount', value: function() { @@ -236161,7 +236257,7 @@ object-assign value: function() { var t = this, n = this.props, - r = (n.loadOptions, eo(n, ['loadOptions'])), + r = (n.loadOptions, co(n, ['loadOptions'])), o = this.state, i = o.defaultOptions, a = o.inputValue, @@ -236171,7 +236267,7 @@ object-assign f = o.passEmptyOptions ? [] : a && u ? l : i || []; return c.a.createElement( e, - Kr({}, r, { + ro({}, r, { ref: function(e) { t.select = e; }, @@ -236186,12 +236282,12 @@ object-assign n ); })(s.Component)), - Gr(t, 'defaultProps', wi), + no(t, 'defaultProps', Ti), n ); }, - Mi = - (xi(_i(yi)), + Li = + (Ci(Ai(Oi)), function() { var e = arguments.length > 0 && void 0 !== arguments[0] @@ -236203,7 +236299,7 @@ object-assign o = String(t.label).toLowerCase(); return r === n || o === n; }), - ki = $r( + Pi = oo( { allowCreateWhileLoading: !1, createOptionPosition: 'last' }, { formatCreateLabel: function(e) { @@ -236213,10 +236309,10 @@ object-assign return !( !e || t.some(function(t) { - return Mi(e, t); + return Li(e, t); }) || n.some(function(t) { - return Mi(e, t); + return Li(e, t); }) ); }, @@ -236225,19 +236321,19 @@ object-assign } } ), - Si = function(e) { + Di = function(e) { var t, n; return ( (n = t = (function(t) { function n(e) { var t; - Vr(this, n), - Gr( - to(to((t = no(this, Jr(n).call(this, e))))), + Zr(this, n), + no( + uo(uo((t = lo(this, ao(n).call(this, e))))), 'select', void 0 ), - Gr(to(to(t)), 'onChange', function(e, n) { + no(uo(uo(t)), 'onChange', function(e, n) { var r = t.props, o = r.getNewOptionData, i = r.inputValue, @@ -236253,15 +236349,15 @@ object-assign else { var d = o(i, i), p = { action: 'create-option' }; - s(a ? [].concat(ro(so(u)), [d]) : d, p); + s(a ? [].concat(fo(mo(u)), [d]) : d, p); } }); var r = e.options || []; return (t.state = { newOption: void 0, options: r }), t; } return ( - Qr(n, t), - Xr(n, [ + io(n, t), + to(n, [ { key: 'componentWillReceiveProps', value: function(e) { @@ -236275,15 +236371,15 @@ object-assign c = e.value, u = e.options || [], l = this.state.newOption; - (l = s(i, so(c), u) ? o(i, r(i)) : void 0), + (l = s(i, mo(c), u) ? o(i, r(i)) : void 0), this.setState({ newOption: l, options: (!t && a) || !l ? u : 'first' === n - ? [l].concat(ro(u)) - : [].concat(ro(u), [l]) + ? [l].concat(fo(u)) + : [].concat(fo(u), [l]) }); } }, @@ -236303,11 +236399,11 @@ object-assign key: 'render', value: function() { var t = this, - n = Kr({}, this.props), + n = ro({}, this.props), r = this.state.options; return c.a.createElement( e, - Kr({}, n, { + ro({}, n, { ref: function(e) { t.select = e; }, @@ -236321,27 +236417,27 @@ object-assign n ); })(s.Component)), - Gr(t, 'defaultProps', ki), + no(t, 'defaultProps', Pi), n ); }, - Oi = - (_i(Si(yi)), - xi(_i(Si(yi))), + ji = + (Ai(Di(Oi)), + Ci(Ai(Di(Oi))), function(e) { return function(t) { t.in, t.onExited, t.appear, t.enter, t.exit; - var n = eo(t, ['in', 'onExited', 'appear', 'enter', 'exit']); + var n = co(t, ['in', 'onExited', 'appear', 'enter', 'exit']); return c.a.createElement(e, n); }; }), - Ei = function(e) { + zi = function(e) { var t = e.component, n = e.duration, r = void 0 === n ? 1 : n, o = e.in, i = - (e.onExited, eo(e, ['component', 'duration', 'in', 'onExited'])), + (e.onExited, co(e, ['component', 'duration', 'in', 'onExited'])), a = { entering: { opacity: 0 }, entered: { opacity: 1, transition: 'opacity '.concat(r, 'ms') }, @@ -236349,41 +236445,41 @@ object-assign exited: { opacity: 0 } }; return c.a.createElement( - Yr.Transition, + Qr.Transition, { mountOnEnter: !0, unmountOnExit: !0, in: o, timeout: r }, function(e) { - var n = { style: $r({}, a[e]) }; - return c.a.createElement(t, Kr({ innerProps: n }, i)); + var n = { style: oo({}, a[e]) }; + return c.a.createElement(t, ro({ innerProps: n }, i)); } ); }, - Ai = 260, - Ti = (function(e) { + Ni = 260, + Ri = (function(e) { function t() { var e, n; - Vr(this, t); + Zr(this, t); for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) o[i] = arguments[i]; return ( - Gr( - to( - to( - (n = no(this, (e = Jr(t)).call.apply(e, [this].concat(o)))) + no( + uo( + uo( + (n = lo(this, (e = ao(t)).call.apply(e, [this].concat(o)))) ) ), 'duration', - Ai + Ni ), - Gr(to(to(n)), 'rafID', void 0), - Gr(to(to(n)), 'state', { width: 'auto' }), - Gr(to(to(n)), 'transition', { + no(uo(uo(n)), 'rafID', void 0), + no(uo(uo(n)), 'state', { width: 'auto' }), + no(uo(uo(n)), 'transition', { exiting: { width: 0, transition: 'width '.concat(n.duration, 'ms ease-out') }, exited: { width: 0 } }), - Gr(to(to(n)), 'getWidth', function(e) { + no(uo(uo(n)), 'getWidth', function(e) { e && isNaN(n.state.width) && (n.rafID = window.requestAnimationFrame(function() { @@ -236391,18 +236487,18 @@ object-assign n.setState({ width: t }); })); }), - Gr(to(to(n)), 'getStyle', function(e) { + no(uo(uo(n)), 'getStyle', function(e) { return { overflow: 'hidden', whiteSpace: 'nowrap', width: e }; }), - Gr(to(to(n)), 'getTransition', function(e) { + no(uo(uo(n)), 'getTransition', function(e) { return n.transition[e]; }), n ); } return ( - Qr(t, e), - Xr(t, [ + io(t, e), + to(t, [ { key: 'componentWillUnmount', value: function() { @@ -236418,7 +236514,7 @@ object-assign r = t.in, o = this.state.width; return c.a.createElement( - Yr.Transition, + Qr.Transition, { enter: !1, mountOnEnter: !0, @@ -236427,7 +236523,7 @@ object-assign timeout: this.duration }, function(t) { - var r = $r({}, e.getStyle(o), e.getTransition(t)); + var r = oo({}, e.getStyle(o), e.getTransition(t)); return c.a.createElement( 'div', { ref: e.getWidth, style: r }, @@ -236441,78 +236537,78 @@ object-assign t ); })(s.Component), - Ci = function(e) { + Ii = function(e) { return function(t) { var n = t.in, r = t.onExited, - o = eo(t, ['in', 'onExited']); + o = co(t, ['in', 'onExited']); return c.a.createElement( - Ti, + Ri, { in: n, onExited: r }, - c.a.createElement(e, Kr({ cropWithEllipsis: n }, o)) + c.a.createElement(e, ro({ cropWithEllipsis: n }, o)) ); }; }, - Li = function(e) { + Fi = function(e) { return function(t) { return c.a.createElement( - Ei, - Kr({ component: e, duration: t.isMulti ? Ai : 1 }, t) + zi, + ro({ component: e, duration: t.isMulti ? Ni : 1 }, t) ); }; }, - Pi = function(e) { + qi = function(e) { return function(t) { - return c.a.createElement(Ei, Kr({ component: e }, t)); + return c.a.createElement(zi, ro({ component: e }, t)); }; }, - Di = function(e) { + Bi = function(e) { return function(t) { return c.a.createElement( - Yr.TransitionGroup, - Kr({ component: e }, t) + Qr.TransitionGroup, + ro({ component: e }, t) ); }; }, - ji = function() { + Hi = function() { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, - t = di({ components: e }), + t = _i({ components: e }), n = t.Input, r = t.MultiValue, o = t.Placeholder, i = t.SingleValue, a = t.ValueContainer, - s = eo(t, [ + s = co(t, [ 'Input', 'MultiValue', 'Placeholder', 'SingleValue', 'ValueContainer' ]); - return $r( + return oo( { - Input: Oi(n), - MultiValue: Ci(r), - Placeholder: Li(o), - SingleValue: Pi(i), - ValueContainer: Di(a) + Input: ji(n), + MultiValue: Ii(r), + Placeholder: Fi(o), + SingleValue: qi(i), + ValueContainer: Bi(a) }, s ); }, - zi = ji(), - Ni = - (zi.Input, - zi.MultiValue, - zi.Placeholder, - zi.SingleValue, - zi.ValueContainer, - Object(Rr.a)(ji, Oo), - _i(yi)), - Ri = rt( + Yi = Hi(), + Wi = + (Yi.Input, + Yi.MultiValue, + Yi.Placeholder, + Yi.SingleValue, + Yi.ValueContainer, + Object(Vr.a)(Hi, jo), + Ai(Oi)), + Vi = ft( function(e) { return { sortingValue: e.app.sortingValue }; }, @@ -236530,11 +236626,11 @@ object-assign return c.a.createElement( 'div', { className: 'top-toolbar' }, - 'editor' === t && c.a.createElement(Nr, null), + 'editor' === t && c.a.createElement(Wr, null), c.a.createElement( 'div', { className: 'search' }, - c.a.createElement(Or.a, { icon: 'search', size: 'sm' }), + c.a.createElement(jr.a, { icon: 'search', size: 'sm' }), c.a.createElement('input', { type: 'text', placeholder: 'Search', @@ -236546,7 +236642,7 @@ object-assign c.a.createElement( 'div', { className: 'sorting-select' }, - c.a.createElement(Ni, { + c.a.createElement(Wi, { value: n, onChange: function(t) { return e.changeSorting(t); @@ -236561,7 +236657,7 @@ object-assign ) ); }), - Ii = rt(null, { + Ui = ft(null, { deleteDashboardItem: function(e) { return function(t, n, r) { var o = r.keenClient, @@ -236572,7 +236668,7 @@ object-assign .concat(i, '/projects/') .concat(o.projectId(), '/dashboards/') .concat(e), - sr({ method: 'delete' }, a) + gr({ method: 'delete' }, a) ) .then(function(n) { 204 === n.status && @@ -236598,12 +236694,12 @@ object-assign { onClick: function() { confirm('Do You want to delete this dashboard?') && - (_t.a.hide(), t(n)); + (At.a.hide(), t(n)); } }, - c.a.createElement(Or.a, { icon: 'trash-alt', size: 'sm' }) + c.a.createElement(jr.a, { icon: 'trash-alt', size: 'sm' }) ), - c.a.createElement(_t.a, { + c.a.createElement(At.a, { id: 'enrich', place: 'top', type: 'dark', @@ -236614,31 +236710,31 @@ object-assign }) ); }), - Fi = Object(h.oneOfType)([h.number, h.func]), - qi = Object(h.arrayOf)( - Object(h.oneOfType)([ - Object(h.shape)({ - unit: h.string.isRequired, - factor: h.number, - granularity: h.number, - threshold: Fi + Xi = Object(d.oneOfType)([d.number, d.func]), + Gi = Object(d.arrayOf)( + Object(d.oneOfType)([ + Object(d.shape)({ + unit: d.string.isRequired, + factor: d.number, + granularity: d.number, + threshold: Xi }), - Object(h.shape)({ format: h.func.isRequired, threshold: Fi }) + Object(d.shape)({ format: d.func.isRequired, threshold: Xi }) ]) ), - Bi = Object(h.oneOfType)([ - h.string, - Object(h.shape)({ - gradation: qi, - units: Object(h.arrayOf)(h.string), - flavour: Object(h.oneOfType)([ - h.string, - Object(h.arrayOf)(h.string) + Ki = Object(d.oneOfType)([ + d.string, + Object(d.shape)({ + gradation: Gi, + units: Object(d.arrayOf)(d.string), + flavour: Object(d.oneOfType)([ + d.string, + Object(d.arrayOf)(d.string) ]), - custom: h.func + custom: d.func }) ]), - Hi = (function() { + $i = (function() { function e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; @@ -236652,7 +236748,7 @@ object-assign return n && e(t.prototype, n), r && e(t, r), t; }; })(); - var Yi = (function() { + var Qi = (function() { function e(t) { var n = this; !(function(e, t) { @@ -236680,7 +236776,7 @@ object-assign (this.period = t); } return ( - Hi(e, [ + $i(e, [ { key: 'start', value: function() { @@ -236730,29 +236826,29 @@ object-assign e ); })(), - Wi = new Jt(); - function Vi(e, t) { - if (!sn()) + Ji = new sn(); + function Zi(e, t) { + if (!gn()) return function(e) { return e.toString(); }; var n = (function(e) { var t = e.toString(); - if (Ui[t]) return Ui[t]; - return (Ui[t] = (function(e) { - if (sn()) return Intl.DateTimeFormat.supportedLocalesOf(e)[0]; + if (ea[t]) return ea[t]; + return (ea[t] = (function(e) { + if (gn()) return Intl.DateTimeFormat.supportedLocalesOf(e)[0]; })(e)); })(e), r = JSON.stringify(t), o = - Wi.get(String(n), r) || - Wi.put(String(n), r, new Intl.DateTimeFormat(n, t)); + Ji.get(String(n), r) || + Ji.put(String(n), r, new Intl.DateTimeFormat(n, t)); return function(e) { return o.format(e); }; } - var Ui = {}; - var Xi = + var ea = {}; + var ta = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { return typeof e; @@ -236765,7 +236861,7 @@ object-assign ? 'symbol' : typeof e; }, - Gi = + na = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { @@ -236775,7 +236871,7 @@ object-assign } return e; }, - Ki = (function() { + ra = (function() { function e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; @@ -236789,7 +236885,7 @@ object-assign return n && e(t.prototype, n), r && e(t, r), t; }; })(); - var $i = (function(e) { + var oa = (function(e) { function t(e) { !(function(e, t) { if (!(e instanceof t)) @@ -236805,11 +236901,11 @@ object-assign : t; })(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e)); if ( - ((n.timeAgo = new yn(n.getPreferredLocales())), + ((n.timeAgo = new On(n.getPreferredLocales())), 'undefined' != typeof window) ) { var r = n.props.verboseDateFormat; - n.formatVerboseDate = Vi(n.getPreferredLocales(), r); + n.formatVerboseDate = Zi(n.getPreferredLocales(), r); } return n; } @@ -236833,7 +236929,7 @@ object-assign ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), - Ki(t, [ + ra(t, [ { key: 'componentDidMount', value: function() { @@ -236843,7 +236939,7 @@ object-assign r = t.updateInterval; n && (window._react_time_ago_updater || - (window._react_time_ago_updater = new Yi(r)), + (window._react_time_ago_updater = new Qi(r)), (this.stopAutoupdate = window._react_time_ago_updater.add( function() { return e.forceUpdate(); @@ -236901,11 +236997,11 @@ object-assign : this.getVerboseDate(a), u = c.a.createElement( 'time', - Gi({ dateTime: a.toISOString(), title: r ? s : void 0 }, i), + na({ dateTime: a.toISOString(), title: r ? s : void 0 }, i), this.timeAgo.format(a, n) ); return o - ? c.a.createElement(o, Gi({ verboseDate: s }, i), u) + ? c.a.createElement(o, na({ verboseDate: s }, i), u) : u; } }, @@ -236914,33 +237010,33 @@ object-assign value: function() { var e = this.props.locale, t = this.props.locales; - return e && (t = [e]), (t = t.concat(yn.getDefaultLocale())); + return e && (t = [e]), (t = t.concat(On.getDefaultLocale())); } }, { key: 'getVerboseDate', value: function(e) { var t = this.props.formatVerboseDate; - return t ? t(Ji(e)) : this.formatVerboseDate(Ji(e)); + return t ? t(aa(e)) : this.formatVerboseDate(aa(e)); } } ]), t ); })(c.a.PureComponent || c.a.Component); - ($i.propTypes = { - date: g.a.oneOfType([g.a.instanceOf(Date), g.a.number]).isRequired, - locale: g.a.string, - locales: g.a.arrayOf(g.a.string), - timeStyle: Bi, - tooltip: g.a.bool.isRequired, - formatVerboseDate: g.a.func, - verboseDateFormat: g.a.object, - updateInterval: g.a.number, - tick: g.a.bool, - container: g.a.func + (oa.propTypes = { + date: p.a.oneOfType([p.a.instanceOf(Date), p.a.number]).isRequired, + locale: p.a.string, + locales: p.a.arrayOf(p.a.string), + timeStyle: Ki, + tooltip: p.a.bool.isRequired, + formatVerboseDate: p.a.func, + verboseDateFormat: p.a.object, + updateInterval: p.a.number, + tick: p.a.bool, + container: p.a.func }), - ($i.defaultProps = { + (oa.defaultProps = { locales: [], tooltip: !0, verboseDateFormat: { @@ -236955,18 +237051,18 @@ object-assign updateInterval: 6e4, tick: !0 }); - var Qi = $i; - function Ji(e) { + var ia = oa; + function aa(e) { if (e.constructor === Date) return e; if ('number' == typeof e) return new Date(e); throw new Error( 'Unsupported react-time-ago input: ' + - (void 0 === e ? 'undefined' : Xi(e)) + + (void 0 === e ? 'undefined' : ta(e)) + ', ' + e ); } - var Zi = function(e) { + var sa = function(e) { var t = e.title, n = e.id, r = e.version, @@ -236976,21 +237072,21 @@ object-assign 'div', { className: 'dashboard-list-item' }, c.a.createElement( - de, + ye, { to: i }, c.a.createElement( 'div', { className: 'dashboard-list-item-box' }, t, - c.a.createElement(Qi, { date: new Date(o) }) + c.a.createElement(ia, { date: new Date(o) }) ) ), - 'editor' === r && c.a.createElement(Ii, { id: n }) + 'editor' === r && c.a.createElement(Ui, { id: n }) ); }, - ea = n(74), - ta = n.n(ea), - na = rt( + ca = n(74), + ua = n.n(ca), + la = ft( function(e) { var t = e.app; return { @@ -237001,7 +237097,7 @@ object-assign }; }, { - addDashboardItem: cr, + addDashboardItem: mr, loadDummyDashboards: function() { return { type: 'LOAD_DUMMY_DASHBOARDS' }; } @@ -237026,7 +237122,7 @@ object-assign return ( Object(s.useEffect)(function() { n && !l.length && i('My first dashboard'), - ta()(t, l) || + ua()(t, l) || (l = t.filter(function(e) { return ( '' === r || @@ -237038,13 +237134,13 @@ object-assign c.a.createElement( 'div', { className: 'dashboard-builder container' }, - c.a.createElement(Ri, { version: o }), + c.a.createElement(Vi, { version: o }), l.length ? l.map(function(e, t) { var n = e.title, r = e.id, i = e.last_modified_date; - return c.a.createElement(Zi, { + return c.a.createElement(sa, { key: r, id: r, title: n, @@ -237070,32 +237166,32 @@ object-assign c.a.createElement( 'span', { className: 'loading' }, - c.a.createElement(Or.a, { icon: 'spinner', size: '1x' }) + c.a.createElement(jr.a, { icon: 'spinner', size: '1x' }) ) ) ) ) ); }), - ra = rt(null, { loadDashboards: lr })(function(e) { + fa = ft(null, { loadDashboards: yr })(function(e) { return ( Object(s.useEffect)(function() { e.loadDashboards(); }, []), - c.a.createElement(na, { + c.a.createElement(la, { version: 'editor', keenWebHost: e.keenWebHost }) ); }), - oa = (function(e) { + da = (function(e) { function t(e) { var n; return ( a()(this, t), - ((n = Cr()( + ((n = Ir()( this, - Pr()(t).call(this, e) + qr()(t).call(this, e) )).dragStartHandler = function(e) { e.dataTransfer.setData('text', ''), n.props.dragStartHandler(e.target.getAttribute('name')); @@ -237105,7 +237201,7 @@ object-assign o = r.palette, i = r.colors, a = { - id: Ot(), + id: jt(), type: t, top: 20, left: 350, @@ -237122,8 +237218,8 @@ object-assign ); } return ( - jr()(t, e), - Ar()(t, [ + Hr()(t, e), + Nr()(t, [ { key: 'render', value: function() { @@ -237176,7 +237272,7 @@ object-assign return e.addElementOnClick(t, 'bar'); } }, - c.a.createElement(Or.a, { + c.a.createElement(jr.a, { icon: 'chart-bar', size: '2x' }) @@ -237195,7 +237291,7 @@ object-assign return e.addElementOnClick(t, 'line'); } }, - c.a.createElement(Or.a, { + c.a.createElement(jr.a, { icon: 'chart-line', size: '2x' }) @@ -237214,7 +237310,7 @@ object-assign return e.addElementOnClick(t, 'area'); } }, - c.a.createElement(Or.a, { + c.a.createElement(jr.a, { icon: 'chart-area', size: '2x' }) @@ -237233,7 +237329,7 @@ object-assign return e.addElementOnClick(t, 'pie'); } }, - c.a.createElement(Or.a, { + c.a.createElement(jr.a, { icon: 'chart-pie', size: '2x' }) @@ -237252,7 +237348,7 @@ object-assign return e.addElementOnClick(t, 'table'); } }, - c.a.createElement(Or.a, { icon: 'table', size: '2x' }) + c.a.createElement(jr.a, { icon: 'table', size: '2x' }) ), c.a.createElement( 'p', @@ -237268,7 +237364,7 @@ object-assign return e.addElementOnClick(t, 'funnel'); } }, - c.a.createElement(Or.a, { + c.a.createElement(jr.a, { icon: 'filter', size: '2x' }) @@ -237288,7 +237384,7 @@ object-assign return e.addElementOnClick(t, 'paragraph'); } }, - c.a.createElement(Or.a, { + c.a.createElement(jr.a, { icon: 'paragraph', size: '2x' }) @@ -237307,9 +237403,9 @@ object-assign return e.addElementOnClick(t, 'image'); } }, - c.a.createElement(Or.a, { icon: 'image', size: '2x' }) + c.a.createElement(jr.a, { icon: 'image', size: '2x' }) ), - c.a.createElement(_t.a, { + c.a.createElement(At.a, { id: 'enrich', place: 'top', type: 'dark', @@ -237326,7 +237422,7 @@ object-assign className: 'toolbar-bar', onMouseOver: this.props.showToolbar }, - c.a.createElement(Or.a, { + c.a.createElement(jr.a, { className: 'plus-icon', icon: 'plus-circle', size: 'lg' @@ -237340,7 +237436,7 @@ object-assign t ); })(s.Component), - ia = rt( + pa = ft( function(e) { var t = e.app, n = t.dashboardInfo, @@ -237367,13 +237463,13 @@ object-assign closeToolbar: function() { return { type: 'CLOSE_TOOLBAR' }; }, - dropHandler: gr + dropHandler: Mr } - )(oa), - aa = n(457), - sa = n.n(aa), - ca = n(458), - ua = rt( + )(da), + ha = n(457), + ga = n.n(ha), + ma = n(458), + ba = ft( function(e) { var t = e.app; return { @@ -237383,18 +237479,18 @@ object-assign }; }, { - saveDashboard: pr, + saveDashboard: wr, hideSavedDashboardMessage: function() { return { type: 'HIDE_SAVED_DASHBOARD_MESSAGE' }; }, - toggleDashboardsMenu: vr, + toggleDashboardsMenu: Er, changeScreenSize: function(e) { return { type: 'CHANGE_SCREEN_SIZE', value: e }; }, makeDashboardPublicAndSave: function(e) { return function(t, n) { var r = e; - e.is_public || (t(hr()), (r = n().dashboardInfo)), t(pr(r)); + e.is_public || (t(xr()), (r = n().dashboardInfo)), t(wr(r)); }; } } @@ -237446,9 +237542,9 @@ object-assign a('embed'), l(t), f(); } }, - c.a.createElement(Or.a, { icon: 'code', size: 'lg' }) + c.a.createElement(jr.a, { icon: 'code', size: 'lg' }) ), - c.a.createElement(_t.a, { + c.a.createElement(At.a, { id: 'embed-icon', place: 'bottom', type: 'dark', @@ -237471,9 +237567,9 @@ object-assign a('share'), l(t), f(); } }, - c.a.createElement(Or.a, { icon: 'share-alt', size: 'lg' }) + c.a.createElement(jr.a, { icon: 'share-alt', size: 'lg' }) ), - c.a.createElement(_t.a, { + c.a.createElement(At.a, { id: 'share-icon', place: 'bottom', type: 'dark', @@ -237491,9 +237587,9 @@ object-assign 'data-tip': 'Preview' }, c.a.createElement( - de, + ye, { to: '/viewer/'.concat(t.id) }, - c.a.createElement(Or.a, { + c.a.createElement(jr.a, { icon: 'eye', size: 'lg', onClick: function() { @@ -237502,7 +237598,7 @@ object-assign }) ) ), - c.a.createElement(_t.a, { + c.a.createElement(At.a, { id: 'preview-icon', place: 'bottom', type: 'dark', @@ -237519,14 +237615,14 @@ object-assign return o(e.dashboardInfo), void f(); } }, - c.a.createElement(Or.a, { icon: 'save', size: 'sm' }), + c.a.createElement(jr.a, { icon: 'save', size: 'sm' }), ' Save' ) ) : c.a.createElement( c.a.Fragment, null, - c.a.createElement(Or.a, { + c.a.createElement(jr.a, { className: 'export-icon', icon: 'file-download', size: 'lg', @@ -237535,15 +237631,15 @@ object-assign onClick: function() { var e; (e = d) && - sa.a.toBlob(e).then(function(e) { - Object(ca.saveAs)(e, 'dashboard.png'); + ga.a.toBlob(e).then(function(e) { + Object(ma.saveAs)(e, 'dashboard.png'); }); } }), c.a.createElement( 'div', { className: 'screen-resize-icon' }, - c.a.createElement(Or.a, { + c.a.createElement(jr.a, { icon: 'mobile-alt', size: 'lg', 'data-for': 'screen-size', @@ -237553,7 +237649,7 @@ object-assign return u('mobile'); } }), - c.a.createElement(Or.a, { + c.a.createElement(jr.a, { icon: 'tablet-alt', size: 'lg', 'data-for': 'screen-size', @@ -237563,7 +237659,7 @@ object-assign return u('tablet'); } }), - c.a.createElement(Or.a, { + c.a.createElement(jr.a, { icon: 'laptop', size: 'lg', 'data-for': 'screen-size', @@ -237574,7 +237670,7 @@ object-assign } }) ), - c.a.createElement(_t.a, { + c.a.createElement(At.a, { id: 'screen-size', place: 'bottom', type: 'dark', @@ -237586,8 +237682,8 @@ object-assign ) ); }), - la = le( - rt( + ya = fe( + ft( function(e) { var t = e.app, n = t.dashboardInfo; @@ -237597,7 +237693,7 @@ object-assign dashboardList: t.dashboardList }; }, - { loadDashboardInfo: fr } + { loadDashboardInfo: vr } )(function(e) { var t = e.dashboardList.map(function(e) { return { value: e.id, label: e.title }; @@ -237605,7 +237701,7 @@ object-assign return c.a.createElement( 'div', { className: 'switch-dashboard' }, - c.a.createElement(Ni, { + c.a.createElement(Wi, { value: { value: e.id, label: e.title }, onChange: function(t) { return (function(t) { @@ -237617,8 +237713,8 @@ object-assign ); }) ), - fa = le( - rt( + va = fe( + ft( function(e) { var t = e.app; return { @@ -237628,12 +237724,12 @@ object-assign }; }, { - toggleDashboardsMenu: vr, - loadDashboardInfo: fr, - clearAccessKey: xr, - setNewDashboardForFocus: _r, - addDashboardItem: cr, - loadingSingleDashboard: kr, + toggleDashboardsMenu: Er, + loadDashboardInfo: vr, + clearAccessKey: Cr, + setNewDashboardForFocus: Ar, + addDashboardItem: mr, + loadingSingleDashboard: Pr, filterDashboardsMenu: function(e) { return { type: 'FILTER_DASHBOARDS_MENU', value: e }; } @@ -237658,7 +237754,7 @@ object-assign 'div', { className: 'modal-header' }, 'Dashboards', - c.a.createElement(Or.a, { + c.a.createElement(jr.a, { icon: 'times', size: 'sm', onClick: function() { @@ -237703,13 +237799,13 @@ object-assign 'span', null, n === t.id && - c.a.createElement(Or.a, { + c.a.createElement(jr.a, { icon: 'angle-double-right', size: 'sm' }), t.title ), - c.a.createElement(Qi, { + c.a.createElement(ia, { className: 'time', date: new Date(t.last_modified_date) }) @@ -237719,20 +237815,20 @@ object-assign c.a.createElement( 'div', { className: 'modal-footer' }, - c.a.createElement(Nr, null) + c.a.createElement(Wr, null) ) ) ); }) ), - da = (function(e) { + _a = (function(e) { function t(e) { var n; return ( a()(this, t), - ((n = Cr()( + ((n = Ir()( this, - Pr()(t).call(this, e) + qr()(t).call(this, e) )).handleFocus = function() { n.title.current.focus(), n.title.current.select(); }), @@ -237744,8 +237840,8 @@ object-assign ); } return ( - jr()(t, e), - Ar()(t, [ + Hr()(t, e), + Nr()(t, [ { key: 'componentDidMount', value: function() { @@ -237770,7 +237866,7 @@ object-assign var e = this.props, t = e.title; return e.switcherEnabled - ? c.a.createElement(la, null) + ? c.a.createElement(ya, null) : c.a.createElement('h1', { className: 'title' }, t); } }, @@ -237794,12 +237890,12 @@ object-assign c.a.createElement( 'div', { className: 'burger-icon' }, - c.a.createElement(Or.a, { + c.a.createElement(jr.a, { icon: 'bars', size: 'lg', onClick: this.handleClick }), - 'dashboard' === i && c.a.createElement(fa, null) + 'dashboard' === i && c.a.createElement(va, null) ), c.a.createElement('input', { ref: this.title, @@ -237822,12 +237918,12 @@ object-assign 'div', { className: 'edit-dashboard-button' }, c.a.createElement( - de, + ye, { to: '/editor/'.concat(n), className: 'edit-dashboard-button__link' }, - c.a.createElement(Or.a, { + c.a.createElement(jr.a, { icon: 'edit', size: 'sm' }), @@ -237842,7 +237938,7 @@ object-assign t ); })(s.Component), - pa = rt( + wa = ft( function(e) { var t = e.app, n = t.dashboardInfo; @@ -237857,25 +237953,25 @@ object-assign changeDashboardTitle: function(e) { return { type: 'CHANGE_DASHBOARD_TITLE', title: e }; }, - toggleDashboardsMenu: vr, - setNewDashboardForFocus: _r + toggleDashboardsMenu: Er, + setNewDashboardForFocus: Ar } - )(da); - da.defaultProps = { switcherEnabled: !0, editable: !0 }; - var ha = function(e) { + )(_a); + _a.defaultProps = { switcherEnabled: !0, editable: !0 }; + var xa = function(e) { var t = e.version, n = e.isDashboardPublic; return c.a.createElement( 'div', { className: 'dashboard-title' }, - c.a.createElement(pa, { + c.a.createElement(wa, { version: t, switcherEnabled: !n, editable: !n }) ); }; - function ga(e, t) { + function Ma(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); @@ -237887,16 +237983,16 @@ object-assign } return n; } - function ma(e) { + function ka(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 - ? ga(n, !0).forEach(function(t) { - yt()(e, t, n[t]); + ? Ma(n, !0).forEach(function(t) { + Ot()(e, t, n[t]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) - : ga(n).forEach(function(t) { + : Ma(n).forEach(function(t) { Object.defineProperty( e, t, @@ -237906,7 +238002,7 @@ object-assign } return e; } - function ba(e, t, n) { + function Sa(e, t, n) { var r = !( e.top + e.height - 1 < t.top || e.top + 1 > t.top + t.height || @@ -237967,7 +238063,7 @@ object-assign { collision: r, side: o, width: a, height: i } ); } - var ya = rt( + var Oa = ft( function(e) { return { isResizing: e.app.isResizing }; }, @@ -238066,9 +238162,9 @@ object-assign }) ); }), - va = n(459), - _a = n.n(va), - wa = function(e) { + Ea = n(459), + Aa = n.n(Ea), + Ta = function(e) { var t = e.width, n = e.height, r = e.text; @@ -238076,29 +238172,29 @@ object-assign ? c.a.createElement( 'div', { className: 'paragraph', style: { width: t, height: n } }, - _a()(r) + Aa()(r) ) : c.a.createElement( 'div', { className: 'big-icon' }, - c.a.createElement(Or.a, { icon: 'paragraph', size: 'lg' }) + c.a.createElement(jr.a, { icon: 'paragraph', size: 'lg' }) ); }, - xa = function(e) { + Ca = function(e) { var t = e.src; return t ? c.a.createElement('img', { src: t }) : c.a.createElement( 'div', { className: 'big-icon' }, - c.a.createElement(Or.a, { icon: 'image', size: 'lg' }) + c.a.createElement(jr.a, { icon: 'image', size: 'lg' }) ); }, - Ma = n(111), - ka = n.n(Ma), - Sa = n(191), - Oa = n.n(Sa); - function Ea(e, t) { + La = n(111), + Pa = n.n(La), + Da = n(191), + ja = n.n(Da); + function za(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); @@ -238110,16 +238206,16 @@ object-assign } return n; } - function Aa(e) { + function Na(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 - ? Ea(n, !0).forEach(function(t) { - yt()(e, t, n[t]); + ? za(n, !0).forEach(function(t) { + Ot()(e, t, n[t]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) - : Ea(n).forEach(function(t) { + : za(n).forEach(function(t) { Object.defineProperty( e, t, @@ -238129,20 +238225,20 @@ object-assign } return e; } - var Ta = (function(e) { + var Ra = (function(e) { function t(e) { var n; return ( a()(this, t), - ((n = Cr()(this, Pr()(t).call(this, e))).handleRef = function(e) { + ((n = Ir()(this, qr()(t).call(this, e))).handleRef = function(e) { e && ((n.el = e), n.createKeenDataviz()); }), n ); } return ( - jr()(t, e), - Ar()(t, [ + Hr()(t, e), + Nr()(t, [ { key: 'componentDidUpdate', value: function() { @@ -238172,25 +238268,25 @@ object-assign this.props.sparkline === e.sparkline && this.props.stacking === e.stacking && this.props.savedQuery === e.savedQuery && - Rt.a.isEqual(this.props.results, e.results) && - Rt.a.isEqual(this.props.colors, e.colors) && + Vt.a.isEqual(this.props.results, e.results) && + Vt.a.isEqual(this.props.colors, e.colors) && this.props.screenSize === e.screenSize && this.props.prefix === e.prefix && this.props.suffix === e.suffix && - Rt.a.isEqual(this.props.point, e.point) && - Rt.a.isEqual(this.props.choropleth, e.choropleth) && - Rt.a.isEqual(this.props.heatmap, e.heatmap) && - Rt.a.isEqual(this.props.funnel, e.funnel) && + Vt.a.isEqual(this.props.point, e.point) && + Vt.a.isEqual(this.props.choropleth, e.choropleth) && + Vt.a.isEqual(this.props.heatmap, e.heatmap) && + Vt.a.isEqual(this.props.funnel, e.funnel) && this.props.title === e.title && this.props.subtitle === e.subtitle && - Rt.a.isEqual(this.props.axis, e.axis) + Vt.a.isEqual(this.props.axis, e.axis) ); } }, { key: 'createKeenDataviz', value: function() { - var e = Aa({}, this.props, {}, this.props.options, { + var e = Na({}, this.props, {}, this.props.options, { palette: this.props.colors && this.props.colors.length ? '' @@ -238198,7 +238294,7 @@ object-assign results: this.props.type && this.props.type.includes('funnel') && - Rt.a.isEqual(this.props.results.result, [ + Vt.a.isEqual(this.props.results.result, [ 200, 300, 100, @@ -238208,8 +238304,8 @@ object-assign ? { result: [430, 300, 220, 150, 80] } : this.props.results }); - this.keenDataviz = new Oa.a( - Aa({ container: this.el, react: !0 }, e) + this.keenDataviz = new ja.a( + Na({ container: this.el, react: !0 }, e) ); } }, @@ -238226,14 +238322,14 @@ object-assign t ); })(s.Component), - Ca = rt( + Ia = ft( function(e) { var t = e.app; return { id: t.dashboardInfo.id, screenSize: t.screenSize }; }, - { savedQueryError: ur } - )(Ta); - Ta.defaultProps = { + { savedQueryError: br } + )(Ra); + Ra.defaultProps = { theme: 'keen-dataviz', results: { result: [200, 300, 100, 400, 250] }, title: !1, @@ -238254,21 +238350,21 @@ object-assign tooltip: { show: !0, pointer: !0 } } }; - var La = n(94), - Pa = n.n(La), - Da = function(e) { + var Fa = n(94), + qa = n.n(Fa), + Ba = function(e) { var t = e.theme, n = e.containerId; return c.a.createElement( c.a.Fragment, null, c.a.createElement('style', { - dangerouslySetInnerHTML: { __html: Object(La.getStyles)(t, n) } + dangerouslySetInnerHTML: { __html: Object(Fa.getStyles)(t, n) } }), e.children ); }, - ja = { + Ha = { getQueryDataType: function(e) { var t, n = 'string' == typeof e.interval, @@ -238356,17 +238452,17 @@ object-assign ], nominal: ['table'], extraction: ['table'] - }[ja.getQueryDataType(e)]; + }[Ha.getQueryDataType(e)]; }, responseSupportsChartType: function(e, t) { - return Rt.a.includes(ja.getChartTypeOptions(e), t); + return Vt.a.includes(Ha.getChartTypeOptions(e), t); }, isTableChartType: function(e) { return 'table' == e; } }, - za = ja; - function Na(e, t) { + Ya = Ha; + function Wa(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); @@ -238378,16 +238474,16 @@ object-assign } return n; } - function Ra(e) { + function Va(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 - ? Na(n, !0).forEach(function(t) { - yt()(e, t, n[t]); + ? Wa(n, !0).forEach(function(t) { + Ot()(e, t, n[t]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) - : Na(n).forEach(function(t) { + : Wa(n).forEach(function(t) { Object.defineProperty( e, t, @@ -238397,20 +238493,20 @@ object-assign } return e; } - var Ia = (function(e) { + var Ua = (function(e) { function t(e) { var n; return ( a()(this, t), - (n = Cr()(this, Pr()(t).call(this, e))), - Fa.call(ka()(n)), + (n = Ir()(this, qr()(t).call(this, e))), + Xa.call(Pa()(n)), (n.state = { loading: !1, results: void 0 }), n ); } return ( - jr()(t, e), - Ar()(t, [ + Hr()(t, e), + Nr()(t, [ { key: 'componentDidMount', value: function() { @@ -238434,14 +238530,14 @@ object-assign this.setState({ results: void 0 }), this.props.id !== e.id && this.setState({ results: void 0 }), - !1 === Rt.a.isEqual(e.savedQuery, this.props.savedQuery) || + !1 === Vt.a.isEqual(e.savedQuery, this.props.savedQuery) || (this.props.id !== e.id && this.setState({ results: void 0 })), (this.props.id !== e.id || (this.props.savedQuery && !1 === e.dryRun && !1 === - Rt.a.isEqual(e.savedQuery, this.props.savedQuery)) || + Vt.a.isEqual(e.savedQuery, this.props.savedQuery)) || (!1 === this.props.savedQuery && e.savedQuery && this.props.type !== e.type) || @@ -238480,13 +238576,13 @@ object-assign null, Object.keys(g).length ? c.a.createElement( - Da, + Ba, { theme: g.theme, containerId: this.props.containerId }, c.a.createElement( - Ca, + Ia, o()( { key: u, type: h }, this.props, @@ -238497,7 +238593,7 @@ object-assign ) ) : c.a.createElement( - Ca, + Ia, o()( { key: u, type: h }, this.props, @@ -238534,7 +238630,7 @@ object-assign c.a.createElement( 'span', { className: 'loading' }, - c.a.createElement(Or.a, { + c.a.createElement(jr.a, { icon: 'spinner', size: '1x' }) @@ -238547,25 +238643,25 @@ object-assign t ); })(s.Component), - Fa = function() { + Xa = function() { var e = this; (this.runSingleSavedQuery = function(t) { e.setState({ loading: !0 }), e.props.keenAnalysis .query('saved', t.value) .then(function(t) { - var n = za.getChartTypeOptions(t.query), + var n = Ya.getChartTypeOptions(t.query), r = e.props.type ? e.props.type : n[0]; e.props.loadSavedQuery(e.props.index), e.setState({ results: void 0 === e.state.results - ? Ra({}, t) + ? Va({}, t) : Array.isArray(e.state.results) - ? [].concat(mt()(e.state.results), [Ra({}, t)]) + ? [].concat(kt()(e.state.results), [Va({}, t)]) : r && (r.includes('area') || r.includes('line')) - ? [Ra({}, e.state.results), Ra({}, t)] - : Ra({}, t), + ? [Va({}, e.state.results), Va({}, t)] + : Va({}, t), savedQuery: { value: t.query_name, label: t.metadata.display_name @@ -238596,7 +238692,7 @@ object-assign n[r].query.event_collection === n[o].query.event_collection && (n[o].query.analysis_type += o); - var i = za.getChartTypeOptions(n[0].query)[0]; + var i = Ya.getChartTypeOptions(n[0].query)[0]; t.loadSavedQuery(t.index), e.setState({ results: n, @@ -238611,7 +238707,7 @@ object-assign }); }); }, - qa = rt( + Ga = ft( function(e) { var t = e.app, n = t.isLoading, @@ -238634,11 +238730,11 @@ object-assign loadSavedQuery: function(e) { return { type: 'LOAD_SAVED_QUERIES', index: e }; }, - savedQueryError: ur, - setLoading: mr + savedQueryError: br, + setLoading: kr } - )(Ia), - Ba = rt( + )(Ua), + Ka = ft( function(e) { var t = e.app; return { isMoving: t.isMoving, isResizing: t.isResizing }; @@ -238649,21 +238745,21 @@ object-assign r.keenClient; if (confirm('Do You want to delete this chart?')) { var o = n(), - i = tr(o), + i = ur(o), a = i.data.items[e].savedQuery; - t(Sr(a, [])); + t(Dr(a, [])); var s = n(), - c = er(s); + c = cr(s); if (i.is_public && a.length) a.some(function(e) { return !c.includes(e.value); - }) && nr(c, i.title); + }) && lr(c, i.title); t({ type: 'DELETE_CHART', index: e }); } }; }, - showSettings: yr, - closeSettings: br, + showSettings: Or, + closeSettings: Sr, cloneChart: function(e) { return { type: 'CLONE_CHART', index: e }; } @@ -238697,7 +238793,7 @@ object-assign })(n); } }, - c.a.createElement(Or.a, { icon: 'cog', size: 'sm' }) + c.a.createElement(jr.a, { icon: 'cog', size: 'sm' }) ), c.a.createElement( 'div', @@ -238708,7 +238804,7 @@ object-assign return e.cloneChart(t); } }, - c.a.createElement(Or.a, { icon: 'clone', size: 'sm' }) + c.a.createElement(jr.a, { icon: 'clone', size: 'sm' }) ), o && o.length > 0 && @@ -238729,7 +238825,7 @@ object-assign }); } }, - c.a.createElement(Or.a, { + c.a.createElement(jr.a, { icon: 'external-link-alt', size: 'sm' }) @@ -238743,10 +238839,10 @@ object-assign return e.deleteChart(t); } }, - c.a.createElement(Or.a, { icon: 'trash-alt', size: 'sm' }) + c.a.createElement(jr.a, { icon: 'trash-alt', size: 'sm' }) ) ), - c.a.createElement(_t.a, { + c.a.createElement(At.a, { id: 'settings', place: 'top', type: 'dark', @@ -238755,7 +238851,7 @@ object-assign return e; } }), - c.a.createElement(_t.a, { + c.a.createElement(At.a, { id: 'clone', place: 'left', type: 'dark', @@ -238764,7 +238860,7 @@ object-assign return e; } }), - c.a.createElement(_t.a, { + c.a.createElement(At.a, { id: 'explorer', place: 'left', type: 'dark', @@ -238773,7 +238869,7 @@ object-assign return e; } }), - c.a.createElement(_t.a, { + c.a.createElement(At.a, { id: 'delete', place: 'bottom', type: 'dark', @@ -238785,7 +238881,7 @@ object-assign ) ); }), - Ha = function(e) { + $a = function(e) { var t = e.savedQuery, n = window.location, r = n.origin, @@ -238793,7 +238889,7 @@ object-assign return c.a.createElement( 'div', { className: 'explorer-button' }, - c.a.createElement(Or.a, { + c.a.createElement(jr.a, { icon: 'external-link-alt', size: 'sm', 'data-for': 'explorer', @@ -238810,7 +238906,7 @@ object-assign }); } }), - c.a.createElement(_t.a, { + c.a.createElement(At.a, { id: 'explorer', place: 'top', type: 'dark', @@ -238821,8 +238917,8 @@ object-assign }) ); }, - Ya = c.a.createContext({}); - function Wa(e, t) { + Qa = c.a.createContext({}); + function Ja(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); @@ -238834,16 +238930,16 @@ object-assign } return n; } - function Va(e) { + function Za(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 - ? Wa(n, !0).forEach(function(t) { - yt()(e, t, n[t]); + ? Ja(n, !0).forEach(function(t) { + Ot()(e, t, n[t]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) - : Wa(n).forEach(function(t) { + : Ja(n).forEach(function(t) { Object.defineProperty( e, t, @@ -238853,14 +238949,14 @@ object-assign } return e; } - var Ua = (function(e) { + var es = (function(e) { function t(e) { var n; return ( a()(this, t), - ((n = Cr()( + ((n = Ir()( this, - Pr()(t).call(this, e) + qr()(t).call(this, e) )).moveCollided = function() { var e = n.props, t = e.dashboardInfo.data.items, @@ -238878,7 +238974,7 @@ object-assign : t[o].top <= t[i].top ? i : o, - c = ba(t[s], t[a], r); + c = Sa(t[s], t[a], r); if (c.collision) { var u = t[s], l = u.top, @@ -238935,9 +239031,9 @@ object-assign ) * r - r, - u = Va( - { id: Ot(), type: o }, - xt(s, c, 500, n.ref.current.getBoundingClientRect()), + u = Za( + { id: jt(), type: o }, + Ct(s, c, 500, n.ref.current.getBoundingClientRect()), { width: 500, height: 300, @@ -239002,8 +239098,8 @@ object-assign ); } return ( - jr()(t, e), - Ar()(t, [ + Hr()(t, e), + Nr()(t, [ { key: 'componentDidUpdate', value: function() { @@ -239062,7 +239158,7 @@ object-assign return t.charAt(0).toUpperCase() + t.slice(1); }), (r = 20), - (i = ma({}, (e = d), { + (i = ka({}, (e = d), { data: { version: 2, items: e.rows.map(function(e, o) { @@ -239131,9 +239227,9 @@ object-assign })), (a = []), i.data.items.forEach(function(e) { - a.push.apply(a, mt()(e)); + a.push.apply(a, kt()(e)); }), - ma({}, i, { data: ma({}, i.data, { items: a }) })) + ka({}, i, { data: ka({}, i.data, { items: a }) })) ), (this.parsedItems = l.items), this.parsedItems && @@ -239202,7 +239298,7 @@ object-assign return c.a.createElement( 'div', { - style: Va( + style: Za( { width: a, height: u, @@ -239219,11 +239315,11 @@ object-assign id: E }, 'image' === l - ? c.a.createElement(xa, { src: f, index: t }) + ? c.a.createElement(Ca, { src: f, index: t }) : 'paragraph' === l - ? c.a.createElement(wa, { text: d, index: t }) + ? c.a.createElement(Ta, { text: d, index: t }) : c.a.createElement( - qa, + Ga, o()({}, e, { index: t, width: a, @@ -239237,13 +239333,13 @@ object-assign c.a.createElement( c.a.Fragment, null, - c.a.createElement(ya, { + c.a.createElement(Oa, { index: t, clientRect: s.ref.current && s.ref.current.getBoundingClientRect() }), - c.a.createElement(Ba, { + c.a.createElement(Ka, { index: t, savedQuery: y }), @@ -239259,7 +239355,7 @@ object-assign w.masterKey() && 'paragraph' !== l && 'image' !== l && - c.a.createElement(Ha, { savedQuery: y }) + c.a.createElement($a, { savedQuery: y }) ); } }) @@ -239271,7 +239367,7 @@ object-assign t ); })(s.Component), - Xa = rt( + ts = ft( function(e) { var t = e.app, n = t.dashboardInfo, @@ -239316,23 +239412,23 @@ object-assign colMoveChart: function(e, t, n) { return { type: 'COL_MOVE_CHART', index: e, ePageX: t, ePageY: n }; }, - dropHandler: gr, + dropHandler: Mr, stopMoveChart: function() { return { type: 'STOP_MOVE_CHART' }; }, - showSettings: yr, - mapOldItems: Mr - } - )(Ua), - Ga = n(196), - Ka = n.n(Ga), - $a = n(460), - Qa = n.n($a), - Ja = (function() { - var e = Qa()( - Ka.a.mark(function e(t, n, r) { + showSettings: Or, + mapOldItems: Lr + } + )(es), + ns = n(196), + rs = n.n(ns), + os = n(460), + is = n.n(os), + as = (function() { + var e = is()( + rs.a.mark(function e(t, n, r) { var o, i, a, s; - return Ka.a.wrap(function(e) { + return rs.a.wrap(function(e) { for (;;) switch ((e.prev = e.next)) { case 0: @@ -239382,7 +239478,7 @@ object-assign return e.apply(this, arguments); }; })(), - Za = function(e) { + ss = function(e) { var t = document.createElement('textarea'); (t.value = e), document.body.appendChild(t), @@ -239390,8 +239486,8 @@ object-assign document.execCommand('copy'), document.body.removeChild(t); }, - es = le( - rt( + cs = fe( + ft( function(e) { var t = e.app, n = t.dashboardInfo, @@ -239409,12 +239505,12 @@ object-assign savedQueriesList: s }; }, - { toggleDashboardsMenu: vr, setAccessKey: wr, clearAccessKey: xr } + { toggleDashboardsMenu: Er, setAccessKey: Tr, clearAccessKey: Cr } )(function(e) { - var t = Object(s.useContext)(Ya); + var t = Object(s.useContext)(Qa); Object(s.useEffect)(function() { e.accessKey || - Ja(e.savedQueriesList, e.title, t).then(function(t) { + as(e.savedQueriesList, e.title, t).then(function(t) { return e.setAccessKey(t); }); }, []); @@ -239431,7 +239527,7 @@ object-assign 'div', { className: 'modal-header' }, 'Share Your Dashboard', - c.a.createElement(Or.a, { + c.a.createElement(jr.a, { icon: 'times', size: 'sm', onClick: function() { @@ -239464,19 +239560,19 @@ object-assign className: 'modal-button', type: 'button', onClick: function() { - return Za(n()); + return ss(n()); } }, - c.a.createElement(Or.a, { icon: 'copy', size: 'sm' }), + c.a.createElement(jr.a, { icon: 'copy', size: 'sm' }), 'COPY' ) ) ); }) ), - ts = n(197), - ns = n.n(ts), - rs = + us = n(197), + ls = n.n(us), + fs = (n(723), n(724), n(725), @@ -239484,8 +239580,8 @@ object-assign n(727), n(729), n(730), - le( - rt( + fe( + ft( function(e) { var t = e.app; return { @@ -239494,16 +239590,16 @@ object-assign }; }, { - toggleDashboardsMenu: vr, + toggleDashboardsMenu: Er, setAccessKey: function(e) { - return wr(e); + return Tr(e); } } )(function(e) { - var t = Object(s.useContext)(Ya); + var t = Object(s.useContext)(Qa); Object(s.useEffect)(function() { e.accessKey || - Ja(e.dashboardInfo.data, e.title, t).then(function(t) { + as(e.dashboardInfo.data, e.title, t).then(function(t) { return e.setAccessKey(t); }); }, []); @@ -239520,7 +239616,7 @@ object-assign e.accessKey, '";\n const dashboardInfo = data;\n const myDashboardViewer = new DashboardViewer({\n container: "#viewer",\n isDashboardPublic: true,\n dashboardInfo,\n keenAnalysis: {\n config: {\n projectId,\n masterKey,\n }\n }\n });\n })\n .catch(e => console.error(e))\n \n \n ' ), - r = ns.a.highlight(n, ns.a.languages.html, 'html'); + r = ls.a.highlight(n, ls.a.languages.html, 'html'); return c.a.createElement( 'div', { className: 'embed-dashboard modal' }, @@ -239528,7 +239624,7 @@ object-assign 'div', { className: 'modal-header' }, 'Embed Dashboard', - c.a.createElement(Or.a, { + c.a.createElement(jr.a, { icon: 'times', size: 'sm', onClick: function() { @@ -239549,19 +239645,19 @@ object-assign type: 'button', className: 'modal-button', onClick: function() { - return Za(n); + return ss(n); } }, - c.a.createElement(Or.a, { icon: 'copy', size: 'sm' }), + c.a.createElement(jr.a, { icon: 'copy', size: 'sm' }), 'COPY' ) ) ); }) )), - os = n(198); + ds = n(198); n(738), n(740); - function is(e, t) { + function ps(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); @@ -239573,16 +239669,16 @@ object-assign } return n; } - function as(e) { + function hs(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 - ? is(n, !0).forEach(function(t) { - yt()(e, t, n[t]); + ? ps(n, !0).forEach(function(t) { + Ot()(e, t, n[t]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) - : is(n).forEach(function(t) { + : ps(n).forEach(function(t) { Object.defineProperty( e, t, @@ -239592,13 +239688,13 @@ object-assign } return e; } - var ss = Object(os.WidthProvider)(os.Responsive), - cs = (function(e) { + var gs = Object(ds.WidthProvider)(ds.Responsive), + ms = (function(e) { function t(e) { var n; return ( a()(this, t), - ((n = Cr()(this, Pr()(t).call(this, e))).createElement = function( + ((n = Ir()(this, qr()(t).call(this, e))).createElement = function( e ) { var t = e.i, @@ -239611,10 +239707,10 @@ object-assign 'div', { key: t, 'data-grid': e, id: ''.concat(a, '-').concat(t) }, 'image' === r - ? c.a.createElement(xa, { src: src, index: index }) + ? c.a.createElement(Ca, { src: src, index: index }) : 'paragraph' === r - ? c.a.createElement(wa, { text: text, index: index }) - : c.a.createElement(Ca, o()({ type: r }, u)), + ? c.a.createElement(Ta, { text: text, index: index }) + : c.a.createElement(Ia, o()({ type: r }, u)), c.a.createElement( 'span', { @@ -239635,8 +239731,8 @@ object-assign }), (n.onAddItem = function() { n.setState(function(e) { - return as({}, e, { - items: [].concat(mt()(e.items), [ + return hs({}, e, { + items: [].concat(kt()(e.items), [ { i: 'n'.concat(e.newCounter), x: (2 * e.items.length) % (e.cols || 12), @@ -239655,7 +239751,7 @@ object-assign (n.onLayoutChange = function(e) { var t = [n.state.items, e].reduce(function(e, t) { return e.map(function(e, n) { - return as({}, e, { + return hs({}, e, { x: t[n].x, y: t[n].y, w: t[n].w, @@ -239667,7 +239763,7 @@ object-assign }), (n.onRemoveItem = function(e) { n.setState(function(t) { - return as({}, t, { + return hs({}, t, { items: t.items.filter(function(t) { return t.i !== e; }) @@ -239680,8 +239776,8 @@ object-assign o = e.w, i = e.h; n.setState(function(e) { - return as({}, e, { - items: [].concat(mt()(e.items), [ + return hs({}, e, { + items: [].concat(kt()(e.items), [ { i: 'n'.concat(e.newCounter), x: t, @@ -239700,15 +239796,15 @@ object-assign ); } return ( - jr()(t, e), - Ar()(t, [ + Hr()(t, e), + Nr()(t, [ { key: 'componentDidUpdate', value: function(e) { var t = this.props, n = t.layout, r = t.items; - !ta()(this.props.layout, e.layout) && + !ua()(this.props.layout, e.layout) && n && r && this.setState({ @@ -239726,7 +239822,7 @@ object-assign 'div', { id: 'dashboard-'.concat(this.props.id) }, c.a.createElement( - ss, + gs, o()( { onLayoutChange: this.onLayoutChange, @@ -239756,7 +239852,7 @@ object-assign t ); })(s.PureComponent); - rt( + ft( function(e) { var t = e.app, n = t.dashboardInfo, @@ -239787,20 +239883,20 @@ object-assign }; }, { - dropHandler: gr, - showSettings: yr, - mapOldItems: Mr, + dropHandler: Mr, + showSettings: Or, + mapOldItems: Lr, setLayout: function(e, t) { return { type: 'SET_LAYOUT', layout: e, items: t }; } } - )(cs); - cs.defaultProps = { + )(ms); + ms.defaultProps = { className: 'layout', cols: { lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 }, rowHeight: 100 }; - var us = rt( + var bs = ft( function(e) { var t = e.app; return { @@ -239808,7 +239904,7 @@ object-assign dashboardsMenu: t.dashboardsMenu }; }, - { closeSettings: br } + { closeSettings: Sr } )(function(e) { var t = e.version, n = e.screenSize, @@ -239823,9 +239919,9 @@ object-assign : 'dashboard-container-viewer', onMouseDown: e.closeSettings }, - 'share' === r && c.a.createElement(es, null), - 'embed' === r && c.a.createElement(rs, null), - c.a.createElement(ua, { version: t, editable: !o }), + 'share' === r && c.a.createElement(cs, null), + 'embed' === r && c.a.createElement(fs, null), + c.a.createElement(ba, { version: t, editable: !o }), c.a.createElement( 'div', { @@ -239839,9 +239935,9 @@ object-assign : '420px' } }, - c.a.createElement(ha, { version: t, isDashboardPublic: o }), - c.a.createElement(Ya.Consumer, null, function(e) { - return c.a.createElement(Xa, { + c.a.createElement(xa, { version: t, isDashboardPublic: o }), + c.a.createElement(Qa.Consumer, null, function(e) { + return c.a.createElement(ts, { keenAnalysis: e, version: t, isDashboardPublic: o @@ -239850,14 +239946,14 @@ object-assign ) ); }), - ls = (function(e) { + ys = (function(e) { function t(e) { var n; return ( a()(this, t), - ((n = Cr()( + ((n = Ir()( this, - Pr()(t).call(this, e) + qr()(t).call(this, e) )).selectSavedQuery = function(e, t) { if (e.length > 0) return ( @@ -239870,8 +239966,8 @@ object-assign ); } return ( - jr()(t, e), - Ar()(t, [ + Hr()(t, e), + Nr()(t, [ { key: 'componentDidMount', value: function() { @@ -239880,7 +239976,7 @@ object-assign savedQueriesForChart: this.props.savedQueries .filter(function(t) { if ( - za.getChartTypeOptions(t.query).includes(e.props.type) + Ya.getChartTypeOptions(t.query).includes(e.props.type) ) return t; }) @@ -239901,7 +239997,7 @@ object-assign this.setState({ savedQueriesForChart: e.savedQueries .filter(function(t) { - if (za.getChartTypeOptions(t.query).includes(e.type)) + if (Ya.getChartTypeOptions(t.query).includes(e.type)) return t; }) .map(function(e) { @@ -239926,7 +240022,7 @@ object-assign 'div', { className: 'settings-select' }, t.length > 0 - ? c.a.createElement(Ni, { + ? c.a.createElement(Wi, { value: o || '', onChange: function(t) { return e.selectSavedQuery(t, r); @@ -239947,7 +240043,7 @@ object-assign t ); })(s.Component), - fs = rt( + vs = ft( function(e) { var t = e.app; return { @@ -239956,32 +240052,32 @@ object-assign }; }, { - setLoading: mr, + setLoading: kr, selectSavedQuery: function(e, t) { return function(n, r, o) { var i = o.keenClient, a = r(), - s = tr(a), + s = ur(a), c = s.data.items[t].savedQuery, - u = er(a), + u = cr(a), l = Array.isArray(e) ? e : [e]; - n(Sr(c, l)); + n(Dr(c, l)); var f = r(), - d = er(f); + d = cr(f); s.is_public && l.length && (l.some(function(e) { return !u.includes(e.value); }) && - nr(d, s.title, i)); + lr(d, s.title, i)); n({ type: 'SELECT_SAVED_QUERY', savedQueries: l, index: t }); }; } } - )(ls), - ds = n(461), - ps = n.n(ds); - function hs(e, t) { + )(ys), + _s = n(461), + ws = n.n(_s); + function xs(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); @@ -239993,24 +240089,24 @@ object-assign } return n; } - var gs = function(e) { - var t = Object(s.useContext)(Ya); + var Ms = function(e) { + var t = Object(s.useContext)(Qa); return ( Object(s.useEffect)(function() { - new ps.a( + new ws.a( (function(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 - ? hs(n, !0).forEach(function(t) { - yt()(e, t, n[t]); + ? xs(n, !0).forEach(function(t) { + Ot()(e, t, n[t]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, Object.getOwnPropertyDescriptors(n) ) - : hs(n).forEach(function(t) { + : xs(n).forEach(function(t) { Object.defineProperty( e, t, @@ -240038,25 +240134,25 @@ object-assign c.a.createElement('div', { id: 'dashboard-builder-explorer' }) ); }, - ms = gs; - gs.propTypes = { - container: g.a.string, - keenAnalysis: g.a.shape({ - projectId: g.a.string, - masterKey: g.a.string, - readKey: g.a.string + ks = Ms; + Ms.propTypes = { + container: p.a.string, + keenAnalysis: p.a.shape({ + projectId: p.a.string, + masterKey: p.a.string, + readKey: p.a.string }) }; for ( - var bs = [ + var Ss = [ { value: 'top', label: 'Top' }, { value: 'bottom', label: 'Bottom' }, { value: 'left', label: 'Left' }, { value: 'right', label: 'Right' }, { value: !1, label: 'Hidden' } ], - ys = - (rt( + Os = + (ft( function(e) { return { settingsVisible: e.app.settingsVisible }; }, @@ -240082,19 +240178,19 @@ object-assign c.a.Fragment, null, c.a.createElement('h4', null, 'Legend'), - c.a.createElement(Ni, { + c.a.createElement(Wi, { value: a, onChange: function(n) { return e.selectLegendPosition(n, t); }, - options: bs + options: Ss }) ) : null; }), [{ value: !0, label: 'Yes' }, { value: !1, label: 'No' }]), - vs = - (rt( + Es = + (ft( function(e) { return { settingsVisible: e.app.settingsVisible }; }, @@ -240123,12 +240219,12 @@ object-assign c.a.Fragment, null, c.a.createElement('h4', null, 'Sparkline'), - c.a.createElement(Ni, { + c.a.createElement(Wi, { value: r, onChange: function(t) { return e.selectSparklineOption(t, o); }, - options: ys + options: Os }) ) : null; @@ -240138,8 +240234,8 @@ object-assign { value: 'normal', label: 'Normal' }, { value: 'percent', label: 'Percent' } ]), - _s = - (rt( + As = + (ft( function(e) { return { settingsVisible: e.app.settingsVisible }; }, @@ -240163,17 +240259,17 @@ object-assign c.a.Fragment, null, c.a.createElement('h4', null, 'Stacking'), - c.a.createElement(Ni, { + c.a.createElement(Wi, { value: r, onChange: function(t) { return e.selectStackingOption(t, o); }, - options: vs + options: Es }) ) : null; }), - rt( + ft( function(e) { return { settingsVisible: e.app.settingsVisible }; }, @@ -240222,13 +240318,13 @@ object-assign : null; }), [{ value: !0, label: 'Yes' }, { value: !1, label: 'No' }]), - ws = [], - xs = 1; - xs < 11; - xs++ + Ts = [], + Cs = 1; + Cs < 11; + Cs++ ) - ws.push({ value: xs, label: ''.concat(xs, 'px') }); - rt( + Ts.push({ value: Cs, label: ''.concat(Cs, 'px') }); + ft( function(e) { return { settingsVisible: e.app.settingsVisible }; }, @@ -240252,49 +240348,49 @@ object-assign c.a.Fragment, null, c.a.createElement('h4', null, 'Show points'), - c.a.createElement(Ni, { + c.a.createElement(Wi, { defaultValue: i, value: n, onChange: function(t) { return e.selectShowPoints(t, r); }, - options: _s + options: As }), i.value && c.a.createElement( c.a.Fragment, null, c.a.createElement('h4', null, 'Points size'), - c.a.createElement(Ni, { + c.a.createElement(Wi, { defaultValue: { value: 2, label: '2px' }, value: o, onChange: function(t) { return e.selectPointsSize(t, r); }, - options: ws + options: Ts }) ) ) : null; }); for ( - var Ms = [ + var Ls = [ { value: 'world', label: 'World' }, { value: 'us', label: 'United States' } ], - ks = [], - Ss = 1; - Ss < 11; - Ss++ + Ps = [], + Ds = 1; + Ds < 11; + Ds++ ) - ks.push({ - value: Number('0.'.concat(Ss)), - label: '0.'.concat(Ss, 'px') + Ps.push({ + value: Number('0.'.concat(Ds)), + label: '0.'.concat(Ds, 'px') }); - var Os = [{ value: !0, label: 'Yes' }, { value: !1, label: 'No' }], - Es = [{ value: !0, label: 'Yes' }, { value: !1, label: 'No' }], - As = - (rt( + var js = [{ value: !0, label: 'Yes' }, { value: !1, label: 'No' }], + zs = [{ value: !0, label: 'Yes' }, { value: !1, label: 'No' }], + Ns = + (ft( function(e) { return { settingsVisible: e.app.settingsVisible }; }, @@ -240329,52 +240425,52 @@ object-assign c.a.Fragment, null, c.a.createElement('h4', null, 'Map'), - c.a.createElement(Ni, { + c.a.createElement(Wi, { defaultValue: { value: 'world', label: 'World' }, value: n, onChange: function(t) { return e.selectChoroplethMap(t, a); }, - options: Ms + options: Ls }), c.a.createElement('h4', null, 'Show borders'), - c.a.createElement(Ni, { + c.a.createElement(Wi, { defaultValue: { value: !0, label: 'Yes' }, value: s, onChange: function(t) { return e.showChoroplethBorder(t, a); }, - options: Os + options: js }), s.value && c.a.createElement( c.a.Fragment, null, c.a.createElement('h4', null, 'Border size'), - c.a.createElement(Ni, { + c.a.createElement(Wi, { defaultValue: { value: 0.5, label: '0.5px' }, value: o, onChange: function(t) { return e.selectChoroplethBorderSize(t, a); }, - options: ks + options: Ps }) ), c.a.createElement('h4', null, 'Show sliders'), - c.a.createElement(Ni, { + c.a.createElement(Wi, { defaultValue: { value: !1, label: 'No' }, value: i, onChange: function(t) { return e.showChoroplethSliders(t, a); }, - options: Es + options: zs }) ) : null; }), [{ value: !0, label: 'Yes' }, { value: !1, label: 'No' }]), - Ts = [{ value: !0, label: 'Yes' }, { value: !1, label: 'No' }]; - rt( + Rs = [{ value: !0, label: 'Yes' }, { value: !1, label: 'No' }]; + ft( function(e) { return { settingsVisible: e.app.settingsVisible }; }, @@ -240397,27 +240493,27 @@ object-assign null, c.a.createElement('h4', null, 'Heatmap'), c.a.createElement('h4', null, 'Show sliders'), - c.a.createElement(Ni, { + c.a.createElement(Wi, { defaultValue: { value: !1, label: 'No' }, value: r, onChange: function(t) { return e.showHeatmapSliders(t, n); }, - options: As + options: Ns }), c.a.createElement('h4', null, 'Show simple tooltip'), - c.a.createElement(Ni, { + c.a.createElement(Wi, { defaultValue: { value: !1, label: 'No' }, value: o, onChange: function(t) { return e.showHeatmapTooltipValue(t, n); }, - options: Ts + options: Rs }) ) : null; }); - function Cs(e, t) { + function Is(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); @@ -240429,16 +240525,16 @@ object-assign } return n; } - function Ls(e) { + function Fs(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 - ? Cs(n, !0).forEach(function(t) { - yt()(e, t, n[t]); + ? Is(n, !0).forEach(function(t) { + Ot()(e, t, n[t]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) - : Cs(n).forEach(function(t) { + : Is(n).forEach(function(t) { Object.defineProperty( e, t, @@ -240448,13 +240544,13 @@ object-assign } return e; } - var Ps = (function(e) { + var qs = (function(e) { function t(e) { var n; return ( a()(this, t), - (n = Cr()(this, Pr()(t).call(this, e))), - Ds.call(ka()(n)), + (n = Ir()(this, qr()(t).call(this, e))), + Bs.call(Pa()(n)), (n.state = { results: '', loading: !1, @@ -240466,8 +240562,8 @@ object-assign ); } return ( - jr()(t, e), - Ar()(t, [ + Hr()(t, e), + Nr()(t, [ { key: 'componentDidMount', value: function() { @@ -240481,7 +240577,7 @@ object-assign (this.props.settingsVisible === e.settingsVisible && e.items.type === this.props.items.type && !1 !== - Rt.a.isEqual( + Vt.a.isEqual( e.items.savedQuery, this.props.items.savedQuery ) && @@ -240526,7 +240622,7 @@ object-assign return c.a.createElement( 'div', { className: 'settings-chart' }, - 'explorer' === l && c.a.createElement(ms, null), + 'explorer' === l && c.a.createElement(ks, null), c.a.createElement( 'div', { className: 'settings-chart-saved-query' }, @@ -240535,7 +240631,7 @@ object-assign c.a.Fragment, null, c.a.createElement('h4', null, 'Saved Query'), - c.a.createElement(fs, { value: o, index: n, type: p }) + c.a.createElement(vs, { value: o, index: n, type: p }) ), o && 0 !== o.length && @@ -240543,7 +240639,7 @@ object-assign c.a.Fragment, null, c.a.createElement('h4', null, 'Chart type'), - c.a.createElement(Ni, { + c.a.createElement(Wi, { value: h, onChange: function(t) { return e.props.changeChartType(t.value, n); @@ -240553,12 +240649,12 @@ object-assign ) ), 0 !== o.length && - c.a.createElement(Pa.a, { + c.a.createElement(qa.a, { options: u && void 0 !== u[n] && null !== u[n] - ? Ls({}, u[n].theme, {}, m) + ? Fs({}, u[n].theme, {}, m) : s - ? Ls({}, s.theme, {}, m) + ? Fs({}, s.theme, {}, m) : {}, isDashboardBuilderActive: !0, onChange: function(t) { @@ -240573,7 +240669,7 @@ object-assign c.a.createElement( 'span', { className: 'loading' }, - c.a.createElement(Or.a, { + c.a.createElement(jr.a, { icon: 'spinner', size: 'lg' }) @@ -240586,7 +240682,7 @@ object-assign t ); })(s.Component), - Ds = function() { + Bs = function() { var e = this; this.generateSettings = function(t) { t.items.savedQuery[0] && @@ -240601,7 +240697,7 @@ object-assign api_key: e.props.keenAnalysis.masterKey() }) .then(function(n) { - var r = za.getChartTypeOptions(n.query), + var r = Ya.getChartTypeOptions(n.query), o = t.items.type ? t.items.type : r[0]; if ( (e.setState({ results: n, type: o, loading: !1 }), @@ -240617,7 +240713,7 @@ object-assign }, u = s && - za.getChartTypeOptions(s.query).map(function(e) { + Ya.getChartTypeOptions(s.query).map(function(e) { return { value: e, label: c(e) }; }), l = u.filter(function(e) { @@ -240642,7 +240738,7 @@ object-assign e.setState({ type: t.items.type }); }; }, - js = rt( + Hs = ft( function(e) { var t = e.app, n = t.settingsVisible, @@ -240663,7 +240759,7 @@ object-assign }; }, { - savedQueryError: ur, + savedQueryError: br, changeChartType: function(e, t) { return { type: 'CHANGE_CHART_TYPE', index: t, value: e }; }, @@ -240671,8 +240767,8 @@ object-assign return { type: 'SET_CHART_THEME', index: e, value: t }; } } - )(Ps), - zs = rt( + )(qs), + Ys = ft( function(e) { var t = e.app, n = t.settingsVisible; @@ -240706,14 +240802,14 @@ object-assign ) ); }), - Ns = n(466), - Rs = n.n(Ns), - Is = + Ws = n(466), + Vs = n.n(Ws), + Us = (n(864), function e(t) { var n = t.text, r = t.settingsVisible; - return c.a.createElement(Rs.a, { + return c.a.createElement(Vs.a, { value: n || '', onChange: function(e, n, o) { return t.setTextForParagraph(e, o, r); @@ -240721,7 +240817,7 @@ object-assign modules: e.modules }); }), - Fs = rt( + Xs = ft( function(e) { var t = e.app, n = t.settingsVisible; @@ -240740,8 +240836,8 @@ object-assign }; } } - )(Is); - Is.modules = { + )(Us); + Us.modules = { toolbar: { container: [ ['bold', 'italic', 'underline', 'strike'], @@ -240752,7 +240848,7 @@ object-assign ] } }; - var qs = function() { + var Gs = function() { return c.a.createElement( 'div', { className: 'settings-chart' }, @@ -240760,12 +240856,12 @@ object-assign 'div', { className: 'settings-chart-saved-query' }, c.a.createElement('h4', null, 'Text'), - c.a.createElement(Fs, null) + c.a.createElement(Xs, null) ) ); }, - Bs = n(63), - Hs = function(e) { + Ks = n(63), + $s = function(e) { var t = e.text, n = t.title, r = void 0 === n ? '' : n, @@ -240814,18 +240910,18 @@ object-assign ) ); }, - Ys = Hs; - (Hs.defaultProps = { text: {}, onChange: function() {} }), - (Hs.propTypes = { - text: g.a.shape({ - title: g.a.string, - on: g.a.string, - off: g.a.string + Qs = $s; + ($s.defaultProps = { text: {}, onChange: function() {} }), + ($s.propTypes = { + text: p.a.shape({ + title: p.a.string, + on: p.a.string, + off: p.a.string }), - checked: g.a.bool.isRequired, - onChange: g.a.func.isRequired + checked: p.a.bool.isRequired, + onChange: p.a.func.isRequired }); - var Ws = rt( + var Js = ft( function(e) { var t = e.app.dashboardInfo.settings, n = t.palette, @@ -240861,25 +240957,25 @@ object-assign toggleDryRun: function() { return { type: 'TOGGLE_DRY_RUN' }; }, - toggleIsPublic: hr, + toggleIsPublic: xr, setTheme: function(e) { return { type: 'SET_THEME', value: e }; } } )(function(e) { return c.a.createElement( - Bs.Tabs, + Ks.Tabs, null, c.a.createElement( - Bs.TabList, + Ks.TabList, null, - c.a.createElement(Bs.Tab, null, 'Theme'), - c.a.createElement(Bs.Tab, null, 'Settings') + c.a.createElement(Ks.Tab, null, 'Theme'), + c.a.createElement(Ks.Tab, null, 'Settings') ), c.a.createElement( - Bs.TabPanel, + Ks.TabPanel, { className: 'settings-theme-builder' }, - c.a.createElement(Pa.a, { + c.a.createElement(qa.a, { key: e.id, isDashboardBuilderActive: !0, onChange: function(t) { @@ -240890,12 +240986,12 @@ object-assign }) ), c.a.createElement( - Bs.TabPanel, + Ks.TabPanel, null, c.a.createElement( - Ys, + Qs, { checked: !!e.isPublic, onChange: e.toggleIsPublic }, - c.a.createElement(Or.a, { + c.a.createElement(jr.a, { className: 'label-wrapper__icon', icon: 'info-circle', size: 'sm', @@ -240903,7 +240999,7 @@ object-assign 'data-tip': 'Your dashboard will be accessible to all of the people
who you share this link with' }), - c.a.createElement(_t.a, { + c.a.createElement(At.a, { id: 'is-public-icon', place: 'top', type: 'dark', @@ -240921,7 +241017,7 @@ object-assign }, 'Is Public' ), - c.a.createElement(_t.a, { + c.a.createElement(At.a, { id: 'is-public', place: 'top', type: 'dark', @@ -240932,7 +241028,7 @@ object-assign }) ), c.a.createElement( - Ys, + Qs, { checked: !!e.dryRun, onChange: e.toggleDryRun }, c.a.createElement( 'span', @@ -240942,7 +241038,7 @@ object-assign }, 'Dry run' ), - c.a.createElement(_t.a, { + c.a.createElement(At.a, { id: 'dry-run', place: 'top', type: 'dark', @@ -240955,7 +241051,7 @@ object-assign ) ); }), - Vs = rt(function(e) { + Zs = ft(function(e) { var t = e.app, n = t.settingsVisible; return { settingsVisible: n, items: t.dashboardInfo.data.items[n] }; @@ -240975,26 +241071,26 @@ object-assign null, 'image' !== n.type && 'paragraph' !== n.type && - c.a.createElement(Ya.Consumer, null, function(e) { - return c.a.createElement(js, { + c.a.createElement(Qa.Consumer, null, function(e) { + return c.a.createElement(Hs, { querySource: r, keenAnalysis: e }); }), - 'image' === n.type && c.a.createElement(zs, null), - 'paragraph' === n.type && c.a.createElement(qs, null) + 'image' === n.type && c.a.createElement(Ys, null), + 'paragraph' === n.type && c.a.createElement(Gs, null) ) - : c.a.createElement(Ws, null) + : c.a.createElement(Js, null) ) ); }), - Us = (function(e) { + ec = (function(e) { function t(e) { - return a()(this, t), Cr()(this, Pr()(t).call(this, e)); + return a()(this, t), Ir()(this, qr()(t).call(this, e)); } return ( - jr()(t, e), - Ar()(t, [ + Hr()(t, e), + Nr()(t, [ { key: 'componentDidMount', value: function() { @@ -241031,14 +241127,14 @@ object-assign return c.a.createElement( 'div', { className: 'dashboard-builder' }, - c.a.createElement(ia, null), - c.a.createElement(us, { version: 'editor' }), - c.a.createElement(Vs, { querySource: i }), + c.a.createElement(pa, null), + c.a.createElement(bs, { version: 'editor' }), + c.a.createElement(Zs, { querySource: i }), n && c.a.createElement( 'div', { className: 'dashboard-saved-message' }, - c.a.createElement(Or.a, { + c.a.createElement(jr.a, { style: { color: '#fff', marginRight: '1rem' }, className: 'fa-spin', icon: 'spinner', @@ -241064,7 +241160,7 @@ object-assign c.a.createElement( 'span', { className: 'loading' }, - c.a.createElement(Or.a, { + c.a.createElement(jr.a, { icon: 'spinner', size: '1x' }) @@ -241077,7 +241173,7 @@ object-assign t ); })(s.Component), - Xs = rt( + tc = ft( function(e) { var t = e.app; return { @@ -241103,33 +241199,33 @@ object-assign }); }; }, - loadDashboardInfo: fr, - clearDashboardInfo: dr, - toggleDashboardsMenu: vr, - loadDashboards: lr, - loadingSingleDashboard: kr + loadDashboardInfo: vr, + clearDashboardInfo: _r, + toggleDashboardsMenu: Er, + loadDashboards: yr, + loadingSingleDashboard: Pr } - )(Us), - Gs = rt(null, { loadDashboards: lr })(function(e) { + )(ec), + nc = ft(null, { loadDashboards: yr })(function(e) { return ( Object(s.useEffect)(function() { e.loadDashboards(); }, []), - c.a.createElement(na, { + c.a.createElement(la, { version: 'viewer', keenWebHost: e.keenWebHost }) ); }), - Ks = n(467), - $s = n.n(Ks), - Qs = (function(e) { + rc = n(467), + oc = n.n(rc), + ic = (function(e) { function t(e) { - return a()(this, t), Cr()(this, Pr()(t).call(this, e)); + return a()(this, t), Ir()(this, qr()(t).call(this, e)); } return ( - jr()(t, e), - Ar()(t, [ + Hr()(t, e), + Nr()(t, [ { key: 'componentDidMount', value: function() { @@ -241139,7 +241235,7 @@ object-assign r = e.updateDashboardInfo, o = e.loadDashboards, i = e.match.params.id; - t && !$s()(t) ? r(t) : (n(i), o()); + t && !oc()(t) ? r(t) : (n(i), o()); } }, { @@ -241156,7 +241252,7 @@ object-assign return c.a.createElement( 'div', { className: 'dashboard-builder' }, - c.a.createElement(us, { + c.a.createElement(bs, { version: 'viewer', isDashboardPublic: e }) @@ -241167,94 +241263,94 @@ object-assign t ); })(s.Component), - Js = rt(null, { - loadDashboardInfo: fr, + ac = ft(null, { + loadDashboardInfo: vr, updateDashboardInfo: function(e) { return { type: 'UPDATE_DASHBOARD_INFO', dashboardInfo: e }; }, - clearDashboardInfo: dr, - loadDashboards: lr - })(Qs), - Zs = function(e) { - return Object(Nt.omit)(e, ['last_modified_date']); + clearDashboardInfo: _r, + loadDashboards: yr + })(ic), + sc = function(e) { + return Object(Wt.omit)(e, ['last_modified_date']); }, - ec = function(e) { + cc = function(e) { var t = {}, n = null; return e.subscribe(function() { var r = e.getState(), o = t, - i = tr(r); + i = ur(r); (function(e) { - return Object(Nt.get)(e, ['app', 'isMoving']); + return Object(Wt.get)(e, ['app', 'isMoving']); })(r) || (function(e) { - return Object(Nt.get)(e, ['app', 'isResizing']); + return Object(Wt.get)(e, ['app', 'isResizing']); })(r) || - Object(Nt.isEqual)(Zs(o), Zs(i)) || + Object(Wt.isEqual)(sc(o), sc(i)) || (o.id === i.id && (n && clearTimeout(n), (n = setTimeout(function() { - e.dispatch(pr(i)), (n = null); + e.dispatch(wr(i)), (n = null); }, 1e4))), (t = i)); }); }; n.d(t, 'keenGlobals', function() { - return nc; + return lc; }), n.d(t, 'DashboardBuilder', function() { - return rc; + return fc; }), - zt.b.add( + Yt.b.add( + sr, + jn, + zn, + Nn, + Rn, Zn, - On, - En, - An, - Tn, + er, + tr, + or, + Jn, + Gn, + Bn, + Fn, + rr, + nr, + Dn, + ar, + Pn, + Yn, Vn, - Un, - Xn, + Qn, + ir, $n, + Xn, Wn, qn, - Dn, - Ln, - Kn, - Gn, - Sn, - Jn, - kn, - zn, - Rn, - Yn, - Qn, Hn, - Fn, - Nn, - Pn, - jn, - In, - Bn, - Cn + Un, + Kn, + In ), - yn.locale(Mn.a); - var tc = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || pe.compose, - nc = void 0; - 'undefined' != typeof webpackKeenGlobals && (nc = webpackKeenGlobals); - var rc = function e(t) { + On.locale(Ln.a); + var uc = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || we.compose, + lc = void 0; + 'undefined' != typeof webpackKeenGlobals && (lc = webpackKeenGlobals); + var fc = function e(t) { a()(this, e); var n, r = t.keenAnalysis, - i = r.instance || new ht.a(r.config), + i = r.instance || new xt.a(r.config), s = t.keenWebHost || window.location.host; t.keenWebHost && (n = { mode: 'cors', credentials: 'include' }); - var u = Object(pe.createStore)( - Dt, - tc( - Object(pe.applyMiddleware)( - jt(s), - dt.withExtraArgument({ + var u = Object(we.createStore)( + Bt, + uc( + Object(we.applyMiddleware)( + Ht(s), + _t.withExtraArgument({ keenClient: i, keenWebHost: s, keenWebFetchOptions: n @@ -241262,42 +241358,42 @@ object-assign ) ) ); - ec(u), + cc(u), l.a.render( c.a.createElement( - we, + Te, { store: u }, c.a.createElement( - Ya.Provider, + Qa.Provider, { value: i }, c.a.createElement( - fe, + de, null, - c.a.createElement(oe, { + c.a.createElement(ie, { path: '/', component: function(e) { - return c.a.createElement(ra, o()({}, e, t)); + return c.a.createElement(fa, o()({}, e, t)); }, exact: !0 }), ' ', - c.a.createElement(oe, { + c.a.createElement(ie, { path: '/editor/:id', component: function(e) { - return c.a.createElement(Xs, o()({}, e, t)); + return c.a.createElement(tc, o()({}, e, t)); } }), - c.a.createElement(oe, { + c.a.createElement(ie, { path: '/viewer/', component: function(e) { - return c.a.createElement(Gs, o()({}, e, t)); + return c.a.createElement(nc, o()({}, e, t)); }, exact: !0 }), - c.a.createElement(oe, { + c.a.createElement(ie, { path: '/viewer/:id', component: function(e) { - return c.a.createElement(Js, o()({}, e, t)); + return c.a.createElement(ac, o()({}, e, t)); } }) ) @@ -241666,11 +241762,11 @@ object-assign a = n.n(i), s = n(54), c = n.n(s), - u = n(42), + u = n(41), l = n.n(u), f = n(36), d = n.n(f), - p = n(43), + p = n(42), h = n.n(p), g = n(8), m = n.n(g), @@ -246031,7 +246127,7 @@ object-assign function(e, t, n) { 'use strict'; n.r(t); - var r = n(38), + var r = n(43), o = n(0), i = n.n(o), a = n(1), @@ -246093,7 +246189,7 @@ object-assign var l = u, f = n(2), d = n(5), - p = n(31), + p = n(29), h = n(56), g = n.n(h), m = n(37), @@ -246276,7 +246372,7 @@ object-assign if (!_.call(t, n[o]) || !w(e[n[o]], t[n[o]])) return !1; return !0; } - var M = n(40); + var M = n(39); function k(e) { return function(t, n) { var r = e(t, n); @@ -246811,7 +246907,7 @@ object-assign ge = function(e) { return he(ie, g({}, e.payload, { detached: !0 })); }; - var me = n(40); + var me = n(39); function be() { var e = {}; return ( @@ -247604,7 +247700,7 @@ object-assign function(e, t, n) { 'use strict'; n.r(t); - var r = n(29), + var r = n(30), o = n(5), i = n(93), a = n(18), @@ -247622,7 +247718,7 @@ object-assign y = n(8), v = n(1), _ = n.n(v), - w = n(41), + w = n(40), x = function() {}; function M(e, t) { return t ? ('-' === t[0] ? e + t : e + '__' + t) : e; @@ -247683,7 +247779,7 @@ object-assign return !1; } } - var L = n(39), + var L = n(38), P = n(92), D = n(192), j = n.n(D); @@ -251576,7 +251672,7 @@ object-assign function(e, t, n) { 'use strict'; n.r(t); - var r = n(29), + var r = n(30), o = n(5), i = n(93), a = n(18), @@ -251594,7 +251690,7 @@ object-assign y = n(8), v = n(1), _ = n.n(v), - w = n(41), + w = n(40), x = function() {}; function M(e, t) { return t ? ('-' === t[0] ? e + t : e + '__' + t) : e; @@ -251655,7 +251751,7 @@ object-assign return !1; } } - var L = n(39), + var L = n(38), P = n(92), D = n(193), j = n.n(D); diff --git a/dist/viewer.min.js b/dist/viewer.min.js index 220a692..4bbf764 100644 --- a/dist/viewer.min.js +++ b/dist/viewer.min.js @@ -656,8 +656,8 @@ P = 16, M = 1, L = 2, - D = 1 / 0, - j = 9007199254740991, + j = 1 / 0, + D = 9007199254740991, R = 17976931348623157e292, z = NaN, N = 4294967295, @@ -720,8 +720,8 @@ Pt = /^\w*$/, Mt = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Lt = /[\\^$.*+?()[\]{}|]/g, - Dt = RegExp(Lt.source), - jt = /^\s+|\s+$/g, + jt = RegExp(Lt.source), + Dt = /^\s+|\s+$/g, Rt = /^\s+/, zt = /\s+$/, Nt = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, @@ -857,10 +857,10 @@ Me = 'object' == typeof t && t && t.Object === Object && t, Le = 'object' == typeof self && self && self.Object === Object && self, - De = Me || Le || Function('return this')(), - je = e && !e.nodeType && e, - Re = je && 'object' == typeof r && r && !r.nodeType && r, - ze = Re && Re.exports === je, + je = Me || Le || Function('return this')(), + De = e && !e.nodeType && e, + Re = De && 'object' == typeof r && r && !r.nodeType && r, + ze = Re && Re.exports === De, Ne = ze && Me.process, Ie = (function() { try { @@ -1316,17 +1316,17 @@ return t.split(''); })(t); } - var Dn = hn({ + var jn = hn({ '&': '&', '<': '<', '>': '>', '"': '"', ''': "'" }); - var jn = (function t(e) { + var Dn = (function t(e) { var n, r = (e = - null == e ? De : jn.defaults(De.Object(), e, jn.pick(De, Ee))) + null == e ? je : Dn.defaults(je.Object(), e, Dn.pick(je, Ee))) .Array, i = e.Date, Zt = e.Error, @@ -1350,7 +1350,7 @@ : '', he = se.toString, pe = le.call(ee), - ge = De._, + ge = je._, me = ne( '^' + le @@ -1368,7 +1368,7 @@ Ce = ve ? ve.allocUnsafe : o, Me = Tn(ee.getPrototypeOf, ee), Le = ee.create, - je = se.propertyIsEnumerable, + De = se.propertyIsEnumerable, Re = oe.splice, Ne = _e ? _e.isConcatSpreadable : o, Ie = _e ? _e.iterator : o, @@ -1379,9 +1379,9 @@ return t({}, '', {}), t; } catch (t) {} })(), - Rn = e.clearTimeout !== De.clearTimeout && e.clearTimeout, - zn = i && i.now !== De.Date.now && i.now, - Nn = e.setTimeout !== De.setTimeout && e.setTimeout, + Rn = e.clearTimeout !== je.clearTimeout && e.clearTimeout, + zn = i && i.now !== je.Date.now && i.now, + Nn = e.setTimeout !== je.setTimeout && e.setTimeout, In = te.ceil, Fn = te.floor, Vn = ee.getOwnPropertySymbols, @@ -1504,7 +1504,7 @@ return e ? t[xi(0, e - 1)] : o; } function kr(t, e) { - return ua(no(t), jr(e, 0, t.length)); + return ua(no(t), Dr(e, 0, t.length)); } function Ar(t) { return ua(no(t)); @@ -1541,12 +1541,12 @@ }) : (t[e] = n); } - function Dr(t, e) { + function jr(t, e) { for (var n = -1, i = e.length, a = r(i), s = null == t; ++n < i; ) a[n] = s ? o : Js(t, e[n]); return a; } - function jr(t, e, n) { + function Dr(t, e, n) { return ( t == t && (n !== o && (t = t <= n ? t : n), @@ -1646,7 +1646,7 @@ var v = a.get(t); if (v) return v; a.set(t, s), - Ds(t) + js(t) ? t.forEach(function(r) { s.add(Rr(r, e, n, r, t, a)); }) @@ -2304,7 +2304,7 @@ } function wi(t, e) { var n = ''; - if (!t || e < 1 || e > j) return n; + if (!t || e < 1 || e > D) return n; do { e % 2 && (n += t), (e = Fn(e / 2)) && (t += t); } while (e); @@ -2318,7 +2318,7 @@ } function ki(t, e) { var n = hu(t); - return ua(n, jr(e, 0, n.length)); + return ua(n, Dr(e, 0, n.length)); } function Ai(t, e, n, r) { if (!Ts(t)) return t; @@ -2388,9 +2388,9 @@ } return i; } - return Di(t, e, Pu, n); + return ji(t, e, Pu, n); } - function Di(t, e, n, r) { + function ji(t, e, n, r) { e = n(e); for ( var i = 0, @@ -2421,7 +2421,7 @@ } return Wn(a, I); } - function ji(t, e) { + function Di(t, e) { for (var n = -1, r = t.length, i = 0, o = []; ++n < r; ) { var a = t[n], s = e ? e(a) : a; @@ -2440,7 +2440,7 @@ if (vs(t)) return Je(t, zi) + ''; if (Rs(t)) return dr ? dr.call(t) : ''; var e = t + ''; - return '0' == e && 1 / t == -D ? '-0' : e; + return '0' == e && 1 / t == -j ? '-0' : e; } function Ni(t, e, n) { var r = -1, @@ -2526,7 +2526,7 @@ var $i = Rn || function(t) { - return De.clearTimeout(t); + return je.clearTimeout(t); }; function Ki(t, e) { if (e) return t.slice(); @@ -2732,18 +2732,18 @@ for (t && e.reverse(); r--; ) { var a = e[r]; if ('function' != typeof a) throw new ie(u); - if (i && !s && 'wrapper' == jo(a)) var s = new mr([], !0); + if (i && !s && 'wrapper' == Do(a)) var s = new mr([], !0); } for (r = s ? r : n; ++r < n; ) { - var l = jo((a = e[r])), - c = 'wrapper' == l ? Do(a) : o; + var l = Do((a = e[r])), + c = 'wrapper' == l ? jo(a) : o; s = c && $o(c[0]) && c[1] == (E | _ | w | k) && !c[4].length && 1 == c[9] - ? s[jo(c[0])].apply(s, c[3]) + ? s[Do(c[0])].apply(s, c[3]) : 1 == a.length && $o(a) ? s[l]() : s.thru(a); @@ -2800,7 +2800,7 @@ })(_, l)) : m && y > 1 && _.reverse(), d && c < y && (_.length = c), - this && this !== De && this instanceof v && (A = b || co(A)), + this && this !== je && this instanceof v && (A = b || co(A)), A.apply(k, _) ); }; @@ -2914,7 +2914,7 @@ }; } var So = - tr && 1 / On(new tr([, -0]))[1] == D + tr && 1 / On(new tr([, -0]))[1] == j ? function(t) { return new tr(t); } @@ -2948,7 +2948,7 @@ g = a; i = a = o; } - var m = d ? o : Do(t), + var m = d ? o : jo(t), A = [t, e, n, i, a, p, g, s, l, c]; if ( (m && @@ -3010,7 +3010,7 @@ return (s -= f.length) < n ? xo(t, e, po, a.placeholder, o, u, f, o, o, n - s) : qe( - this && this !== De && this instanceof a + this && this !== je && this instanceof a ? i : t, this, @@ -3031,7 +3031,7 @@ c = i.length, f = r(c + u), d = - this && this !== De && this instanceof e + this && this !== je && this instanceof e ? a : t; ++l < c; @@ -3047,7 +3047,7 @@ var r = e & v, i = co(t); return function e() { - return (this && this !== De && this instanceof e + return (this && this !== je && this instanceof e ? i : t ).apply(r ? n : this, arguments); @@ -3114,12 +3114,12 @@ function Lo(t) { return Qr(t, ou, Bo); } - var Do = rr + var jo = rr ? function(t) { return rr.get(t); } : Ru; - function jo(t) { + function Do(t) { for ( var e = t.name + '', n = ir[e], @@ -3177,7 +3177,7 @@ ? [] : ((t = ee(t)), Ke(Vn(t), function(e) { - return je.call(t, e); + return De.call(t, e); })); } : Gu, @@ -3212,7 +3212,7 @@ function Wo(t, e) { var n = typeof t; return ( - !!(e = null == e ? j : e) && + !!(e = null == e ? D : e) && ('number' == n || ('symbol' != n && Yt.test(t))) && t > -1 && t % 1 == 0 && @@ -3243,11 +3243,11 @@ ); } function $o(t) { - var e = jo(t), + var e = Do(t), n = hr[e]; if ('function' != typeof n || !(e in vr.prototype)) return !1; if (t === n) return !0; - var r = Do(n); + var r = jo(n); return !!r && t === r[0]; } ((Qn && Go(new Qn(new ArrayBuffer(1))) != lt) || @@ -3320,7 +3320,7 @@ ia = Nn || function(t, e) { - return De.setTimeout(t, e); + return je.setTimeout(t, e); }, oa = sa(Ci); function aa(t, e, n) { @@ -3398,7 +3398,7 @@ function ca(t) { if ('string' == typeof t || Rs(t)) return t; var e = t + ''; - return '0' == e && 1 / t == -D ? '-0' : e; + return '0' == e && 1 / t == -j ? '-0' : e; } function fa(t) { if (null != t) { @@ -3489,7 +3489,7 @@ } var Aa = Po(function(t, e) { var n = null == t ? 0 : t.length, - r = Dr(t, e); + r = jr(t, e); return ( _i( t, @@ -3538,10 +3538,10 @@ return qe(e, o, t); }); } - var Da = Si(function(t, e) { + var ja = Si(function(t, e) { return _s(t) ? Ir(t, e) : []; }), - ja = Si(function(t) { + Da = Si(function(t) { return Gi(Ke(t, _s)); }), Ra = Si(function(t) { @@ -3572,7 +3572,7 @@ n = e ? t[0] : 0, r = this.__wrapped__, i = function(e) { - return Dr(e, t); + return jr(e, t); }; return !(e > 1 || this.__actions__.length) && r instanceof vr && @@ -3639,7 +3639,7 @@ Ja = zn || function() { - return De.Date.now(); + return je.Date.now(); }; function ts(t, e, n) { return ( @@ -3817,7 +3817,7 @@ ? ii : function(t) { return ( - Cs(t) && ce.call(t, 'callee') && !je.call(t, 'callee') + Cs(t) && ce.call(t, 'callee') && !De.call(t, 'callee') ); }, vs = r.isArray, @@ -3858,7 +3858,7 @@ return 'number' == typeof t && t == Bs(t); } function As(t) { - return 'number' == typeof t && t > -1 && t % 1 == 0 && t <= j; + return 'number' == typeof t && t > -1 && t % 1 == 0 && t <= D; } function Ts(t) { var e = typeof t; @@ -3889,12 +3889,12 @@ : function(t) { return Cs(t) && Zr(t) == et; }; - var Ds = He + var js = He ? vn(He) : function(t) { return Cs(t) && Go(t) == nt; }; - function js(t) { + function Ds(t) { return 'string' == typeof t || (!vs(t) && Cs(t) && Zr(t) == rt); } function Rs(t) { @@ -3911,7 +3911,7 @@ }); function Fs(t) { if (!t) return []; - if (bs(t)) return js(t) ? Ln(t) : no(t); + if (bs(t)) return Ds(t) ? Ln(t) : no(t); if (Ie && t[Ie]) return (function(t) { for (var e, n = []; !(e = t.next()).done; ) n.push(e.value); @@ -3922,7 +3922,7 @@ } function Vs(t) { return t - ? (t = Hs(t)) === D || t === -D + ? (t = Hs(t)) === j || t === -j ? (t < 0 ? -1 : 1) * R : t == t ? t @@ -3937,7 +3937,7 @@ return e == e ? (n ? e - n : e) : 0; } function Gs(t) { - return t ? jr(Bs(t), 0, N) : 0; + return t ? Dr(Bs(t), 0, N) : 0; } function Hs(t) { if ('number' == typeof t) return t; @@ -3947,7 +3947,7 @@ t = Ts(e) ? e + '' : e; } if ('string' != typeof t) return 0 === t ? t : +t; - t = t.replace(jt, ''); + t = t.replace(Dt, ''); var n = qt.test(t); return n || Xt.test(t) ? Pe(t.slice(2), n ? 2 : 8) @@ -3974,7 +3974,7 @@ $s = oo(function(t, e, n, r) { ro(e, iu(e), t, r); }), - Ks = Po(Dr); + Ks = Po(jr); var Qs = Si(function(t, e) { t = ee(t); var n = -1, @@ -4141,12 +4141,12 @@ return ri(n, t, e); }; }), - Du = Si(function(t, e) { + ju = Si(function(t, e) { return function(n) { return ri(t, n, e); }; }); - function ju(t, e, n) { + function Du(t, e, n) { var r = iu(e), i = $r(e, r); null != n || @@ -4363,14 +4363,14 @@ return Ur(Ka(t, e), 1); }), (hr.flatMapDeep = function(t, e) { - return Ur(Ka(t, e), D); + return Ur(Ka(t, e), j); }), (hr.flatMapDepth = function(t, e, n) { return (n = n === o ? 1 : Bs(n)), Ur(Ka(t, e), n); }), (hr.flatten = ya), (hr.flattenDeep = function(t) { - return (null == t ? 0 : t.length) ? Ur(t, D) : []; + return (null == t ? 0 : t.length) ? Ur(t, j) : []; }), (hr.flattenDepth = function(t, e) { return (null == t @@ -4446,8 +4446,8 @@ (hr.merge = au), (hr.mergeWith = su), (hr.method = Lu), - (hr.methodOf = Du), - (hr.mixin = ju), + (hr.methodOf = ju), + (hr.mixin = Du), (hr.negate = us), (hr.nthArg = function(t) { return ( @@ -4548,10 +4548,10 @@ }), (hr.sortBy = Za), (hr.sortedUniq = function(t) { - return t && t.length ? ji(t) : []; + return t && t.length ? Di(t) : []; }), (hr.sortedUniqBy = function(t, e) { - return t && t.length ? ji(t, zo(e, 2)) : []; + return t && t.length ? Di(t, zo(e, 2)) : []; }), (hr.split = function(t, e, n) { return ( @@ -4674,12 +4674,12 @@ (hr.valuesIn = function(t) { return null == t ? [] : yn(t, ou(t)); }), - (hr.without = Da), + (hr.without = ja), (hr.words = Eu), (hr.wrap = function(t, e) { return cs(qi(e), t); }), - (hr.xor = ja), + (hr.xor = Da), (hr.xorBy = Ra), (hr.xorWith = za), (hr.zip = Na), @@ -4694,7 +4694,7 @@ (hr.entriesIn = du), (hr.extend = Xs), (hr.extendWith = Ys), - ju(hr, hr), + Du(hr, hr), (hr.add = Uu), (hr.attempt = ku), (hr.camelCase = pu), @@ -4705,7 +4705,7 @@ n === o && ((n = e), (e = o)), n !== o && (n = (n = Hs(n)) == n ? n : 0), e !== o && (e = (e = Hs(e)) == e ? e : 0), - jr(Hs(t), e, n) + Dr(Hs(t), e, n) ); }), (hr.clone = function(t) { @@ -4731,7 +4731,7 @@ (hr.endsWith = function(t, e, n) { (t = qs(t)), (e = zi(e)); var r = t.length, - i = (n = n === o ? r : jr(Bs(n), 0, r)); + i = (n = n === o ? r : Dr(Bs(n), 0, r)); return (n -= e.length) >= 0 && t.slice(n, i) == e; }), (hr.eq = hs), @@ -4739,7 +4739,7 @@ return (t = qs(t)) && kt.test(t) ? t.replace(St, Sn) : t; }), (hr.escapeRegExp = function(t) { - return (t = qs(t)) && Dt.test(t) ? t.replace(Lt, '\\$&') : t; + return (t = qs(t)) && jt.test(t) ? t.replace(Lt, '\\$&') : t; }), (hr.every = function(t, e, n) { var r = vs(t) ? $e : Br; @@ -4784,7 +4784,7 @@ var i = t.length; return ( n < 0 && (n = qn(i + n, 0)), - js(t) + Ds(t) ? n <= i && t.indexOf(e, n) > -1 : !!i && un(t, e, n) > -1 ); @@ -4876,10 +4876,10 @@ (hr.isPlainObject = Ms), (hr.isRegExp = Ls), (hr.isSafeInteger = function(t) { - return ks(t) && t >= -j && t <= j; + return ks(t) && t >= -D && t <= D; }), - (hr.isSet = Ds), - (hr.isString = js), + (hr.isSet = js), + (hr.isString = Ds), (hr.isSymbol = Rs), (hr.isTypedArray = zs), (hr.isUndefined = function(t) { @@ -4949,7 +4949,7 @@ return t && t.length ? mi(t, Bs(e)) : o; }), (hr.noConflict = function() { - return De._ === this && (De._ = ge), this; + return je._ === this && (je._ = ge), this; }), (hr.noop = Ru), (hr.now = Ja), @@ -5036,7 +5036,7 @@ }), (hr.size = function(t) { if (null == t) return 0; - if (bs(t)) return js(t) ? Mn(t) : t.length; + if (bs(t)) return Ds(t) ? Mn(t) : t.length; var e = Go(t); return e == K || e == nt ? t.size : li(t).length; }), @@ -5049,7 +5049,7 @@ return Li(t, e); }), (hr.sortedIndexBy = function(t, e, n) { - return Di(t, e, zo(n, 2)); + return ji(t, e, zo(n, 2)); }), (hr.sortedIndexOf = function(t, e) { var n = null == t ? 0 : t.length; @@ -5063,7 +5063,7 @@ return Li(t, e, !0); }), (hr.sortedLastIndexBy = function(t, e, n) { - return Di(t, e, zo(n, 2), !0); + return ji(t, e, zo(n, 2), !0); }), (hr.sortedLastIndexOf = function(t, e) { if (null == t ? 0 : t.length) { @@ -5076,7 +5076,7 @@ (hr.startsWith = function(t, e, n) { return ( (t = qs(t)), - (n = null == n ? 0 : jr(Bs(n), 0, t.length)), + (n = null == n ? 0 : Dr(Bs(n), 0, t.length)), (e = zi(e)), t.slice(n, n + e.length) == e ); @@ -5156,7 +5156,7 @@ return m; }), (hr.times = function(t, e) { - if ((t = Bs(t)) < 1 || t > j) return []; + if ((t = Bs(t)) < 1 || t > D) return []; var n = N, r = Wn(t, N); (e = zo(e)), (t -= N); @@ -5171,14 +5171,14 @@ }), (hr.toNumber = Hs), (hr.toSafeInteger = function(t) { - return t ? jr(Bs(t), -j, j) : 0 === t ? t : 0; + return t ? Dr(Bs(t), -D, D) : 0 === t ? t : 0; }), (hr.toString = qs), (hr.toUpper = function(t) { return qs(t).toUpperCase(); }), (hr.trim = function(t, e, n) { - if ((t = qs(t)) && (n || e === o)) return t.replace(jt, ''); + if ((t = qs(t)) && (n || e === o)) return t.replace(Dt, ''); if (!t || !(e = zi(e))) return t; var r = Ln(t), i = Ln(e); @@ -5234,7 +5234,7 @@ return l + r; }), (hr.unescape = function(t) { - return (t = qs(t)) && Et.test(t) ? t.replace(wt, Dn) : t; + return (t = qs(t)) && Et.test(t) ? t.replace(wt, jn) : t; }), (hr.uniqueId = function(t) { var e = ++fe; @@ -5245,7 +5245,7 @@ (hr.each = qa), (hr.eachRight = Wa), (hr.first = ba), - ju( + Du( hr, ((Yu = {}), Xr(hr, function(t, e) { @@ -5542,9 +5542,9 @@ hr ); })(); - (De._ = jn), + (je._ = Dn), (i = function() { - return jn; + return Dn; }.call(e, n, e, r)) === o || (r.exports = i); }.call(this)); }.call(this, n(14), n(39)(t))); @@ -7832,7 +7832,7 @@ ); } n.d(e, 'a', function() { - return Dt; + return jt; }), n.d(e, 'b', function() { return Pt; @@ -7989,8 +7989,8 @@ })); var M, L = 'pending', - D = 'settled', - j = 'fulfilled', + j = 'settled', + D = 'fulfilled', R = 'rejected', z = function() {}, N = @@ -8013,14 +8013,14 @@ i = t[n], o = t.then; if ('function' == typeof i) { - n = j; + n = D; try { r = i(r); } catch (t) { W(o, t); } } - H(o, r) || (n === j && U(o, r), n === R && W(o, r)); + H(o, r) || (n === D && U(o, r), n === R && W(o, r)); } function H(t, e) { var n; @@ -8054,16 +8054,16 @@ (t !== e && H(t, e)) || q(t, e); } function q(t, e) { - t._state === L && ((t._state = D), (t._data = e), B(Y, t)); + t._state === L && ((t._state = j), (t._data = e), B(Y, t)); } function W(t, e) { - t._state === L && ((t._state = D), (t._data = e), B($, t)); + t._state === L && ((t._state = j), (t._data = e), B($, t)); } function X(t) { t._then = t._then.forEach(G); } function Y(t) { - (t._state = j), X(t); + (t._state = D), X(t); } function $(e) { (e._state = R), @@ -8113,7 +8113,7 @@ (!e && !t) || this._handled || ((this._handled = !0), this._state === R && N && B(K, this)), - this._state === j || this._state === R + this._state === D || this._state === R ? B(G, n) : this._then.push(n), n.then @@ -8799,7 +8799,7 @@ return vt(t); } }, - Dt = + jt = ((Ot = function(t) { var e = arguments.length > 1 && void 0 !== arguments[1] @@ -9341,10 +9341,10 @@ ] = P[b] = P[x] = P[w] = P[S] = P['[object WeakMap]'] = !1); var M = 'object' == typeof t && t && t.Object === Object && t, L = 'object' == typeof self && self && self.Object === Object && self, - D = M || L || Function('return this')(), - j = e && !e.nodeType && e, - R = j && 'object' == typeof n && n && !n.nodeType && n, - z = R && R.exports === j, + j = M || L || Function('return this')(), + D = e && !e.nodeType && e, + R = D && 'object' == typeof n && n && !n.nodeType && n, + z = R && R.exports === D, N = z && M.process, I = (function() { try { @@ -9383,7 +9383,7 @@ W = Array.prototype, X = Function.prototype, Y = Object.prototype, - $ = D['__core-js_shared__'], + $ = j['__core-js_shared__'], K = X.toString, Q = Y.hasOwnProperty, Z = (H = /[^.]+$/.exec(($ && $.keys && $.keys.IE_PROTO) || '')) @@ -9400,9 +9400,9 @@ ) + '$' ), - et = z ? D.Buffer : void 0, - nt = D.Symbol, - rt = D.Uint8Array, + et = z ? j.Buffer : void 0, + nt = j.Symbol, + rt = j.Uint8Array, it = Y.propertyIsEnumerable, ot = W.splice, at = nt ? nt.toStringTag : void 0, @@ -9414,11 +9414,11 @@ function(t) { return U(q(t)); }), - ct = It(D, 'DataView'), - ft = It(D, 'Map'), - dt = It(D, 'Promise'), - ht = It(D, 'Set'), - pt = It(D, 'WeakMap'), + ct = It(j, 'DataView'), + ft = It(j, 'Map'), + dt = It(j, 'Promise'), + ht = It(j, 'Set'), + pt = It(j, 'WeakMap'), gt = It(Object, 'create'), mt = Gt(ct), vt = Gt(ft), @@ -9638,7 +9638,7 @@ })(t, e, n, r, Lt, i)) ); } - function Dt(t) { + function jt(t) { return ( !( !$t(t) || @@ -9648,7 +9648,7 @@ ) && (Xt(t) ? tt : C).test(Gt(t)) ); } - function jt(t) { + function Dt(t) { if ( !(function(t) { var e = t && t.constructor, @@ -9729,7 +9729,7 @@ var n = (function(t, e) { return null == t ? void 0 : t[e]; })(t, e); - return Dt(n) ? n : void 0; + return jt(n) ? n : void 0; } (St.prototype.clear = function() { (this.__data__ = gt ? gt(null) : {}), (this.size = 0); @@ -9949,7 +9949,7 @@ return null != t && Yt(t.length) && !Xt(t); })(t) ? Ct(t) - : jt(t); + : Dt(t); } n.exports = function(t, e) { return Lt(t, e); @@ -10303,7 +10303,7 @@ (t.exports = h), (t.exports.parse = o), (t.exports.compile = function(t, e) { - return s(o(t, e)); + return s(o(t, e), e); }), (t.exports.tokensToFunction = s), (t.exports.tokensToRegExp = d); @@ -10363,14 +10363,14 @@ ); }); } - function s(t) { - for (var e = new Array(t.length), n = 0; n < t.length; n++) - 'object' == typeof t[n] && - (e[n] = new RegExp('^(?:' + t[n].pattern + ')$')); - return function(n, i) { + function s(t, e) { + for (var n = new Array(t.length), i = 0; i < t.length; i++) + 'object' == typeof t[i] && + (n[i] = new RegExp('^(?:' + t[i].pattern + ')$', f(e))); + return function(e, i) { for ( var o = '', - s = n || {}, + s = e || {}, u = (i || {}).pretty ? a : encodeURIComponent, l = 0; l < t.length; @@ -10403,7 +10403,7 @@ ); } for (var h = 0; h < d.length; h++) { - if (((f = u(d[h])), !e[l].test(f))) + if (((f = u(d[h])), !n[l].test(f))) throw new TypeError( 'Expected all "' + c.name + @@ -10428,7 +10428,7 @@ ); }) : u(d)), - !e[l].test(f)) + !n[l].test(f)) ) throw new TypeError( 'Expected "' + @@ -10456,7 +10456,7 @@ return (t.keys = e), t; } function f(t) { - return t.sensitive ? '' : 'i'; + return t && t.sensitive ? '' : 'i'; } function d(t, e, n) { r(e) || ((n = e || n), (e = [])); @@ -12019,8 +12019,8 @@ object-assign P = s++, M = s++, L = s++, - D = s++, j = s++, + D = s++, R = s++, z = s++, N = s++, @@ -12265,8 +12265,8 @@ object-assign (mt.prototype._stateBeforeCdata1 = pt('C', P, S)), (mt.prototype._stateBeforeCdata2 = pt('D', M, S)), (mt.prototype._stateBeforeCdata3 = pt('A', L, S)), - (mt.prototype._stateBeforeCdata4 = pt('T', D, S)), - (mt.prototype._stateBeforeCdata5 = pt('A', j, S)), + (mt.prototype._stateBeforeCdata4 = pt('T', j, S)), + (mt.prototype._stateBeforeCdata5 = pt('A', D, S)), (mt.prototype._stateBeforeCdata6 = function(t) { '[' === t ? ((this._state = R), (this._sectionStart = this._index + 1)) @@ -12489,9 +12489,9 @@ object-assign ? this._stateBeforeCdata3(t) : this._state === L ? this._stateBeforeCdata4(t) - : this._state === D - ? this._stateBeforeCdata5(t) : this._state === j + ? this._stateBeforeCdata5(t) + : this._state === D ? this._stateBeforeCdata6(t) : this._state === R ? this._stateInCdata(t) @@ -13630,14 +13630,14 @@ object-assign if (t + e > n) throw new RangeError('Trying to access beyond buffer length'); } - function D(t, e, n, r, i, o) { + function j(t, e, n, r, i, o) { if (!u.isBuffer(t)) throw new TypeError('"buffer" argument must be a Buffer instance'); if (e > i || e < o) throw new RangeError('"value" argument is out of bounds'); if (n + r > t.length) throw new RangeError('Index out of range'); } - function j(t, e, n, r) { + function D(t, e, n, r) { e < 0 && (e = 65535 + e + 1); for (var i = 0, o = Math.min(t.length - n, 2); i < o; ++i) t[n + i] = @@ -13772,7 +13772,7 @@ object-assign }), (u.prototype.writeUIntLE = function(t, e, n, r) { ((t = +t), (e |= 0), (n |= 0), r) || - D(this, t, e, n, Math.pow(2, 8 * n) - 1, 0); + j(this, t, e, n, Math.pow(2, 8 * n) - 1, 0); var i = 1, o = 0; for (this[e] = 255 & t; ++o < n && (i *= 256); ) @@ -13781,7 +13781,7 @@ object-assign }), (u.prototype.writeUIntBE = function(t, e, n, r) { ((t = +t), (e |= 0), (n |= 0), r) || - D(this, t, e, n, Math.pow(2, 8 * n) - 1, 0); + j(this, t, e, n, Math.pow(2, 8 * n) - 1, 0); var i = n - 1, o = 1; for (this[e + i] = 255 & t; --i >= 0 && (o *= 256); ) @@ -13792,7 +13792,7 @@ object-assign return ( (t = +t), (e |= 0), - n || D(this, t, e, 1, 255, 0), + n || j(this, t, e, 1, 255, 0), u.TYPED_ARRAY_SUPPORT || (t = Math.floor(t)), (this[e] = 255 & t), e + 1 @@ -13802,10 +13802,10 @@ object-assign return ( (t = +t), (e |= 0), - n || D(this, t, e, 2, 65535, 0), + n || j(this, t, e, 2, 65535, 0), u.TYPED_ARRAY_SUPPORT ? ((this[e] = 255 & t), (this[e + 1] = t >>> 8)) - : j(this, t, e, !0), + : D(this, t, e, !0), e + 2 ); }), @@ -13813,10 +13813,10 @@ object-assign return ( (t = +t), (e |= 0), - n || D(this, t, e, 2, 65535, 0), + n || j(this, t, e, 2, 65535, 0), u.TYPED_ARRAY_SUPPORT ? ((this[e] = t >>> 8), (this[e + 1] = 255 & t)) - : j(this, t, e, !1), + : D(this, t, e, !1), e + 2 ); }), @@ -13824,7 +13824,7 @@ object-assign return ( (t = +t), (e |= 0), - n || D(this, t, e, 4, 4294967295, 0), + n || j(this, t, e, 4, 4294967295, 0), u.TYPED_ARRAY_SUPPORT ? ((this[e + 3] = t >>> 24), (this[e + 2] = t >>> 16), @@ -13838,7 +13838,7 @@ object-assign return ( (t = +t), (e |= 0), - n || D(this, t, e, 4, 4294967295, 0), + n || j(this, t, e, 4, 4294967295, 0), u.TYPED_ARRAY_SUPPORT ? ((this[e] = t >>> 24), (this[e + 1] = t >>> 16), @@ -13851,7 +13851,7 @@ object-assign (u.prototype.writeIntLE = function(t, e, n, r) { if (((t = +t), (e |= 0), !r)) { var i = Math.pow(2, 8 * n - 1); - D(this, t, e, n, i - 1, -i); + j(this, t, e, n, i - 1, -i); } var o = 0, a = 1, @@ -13864,7 +13864,7 @@ object-assign (u.prototype.writeIntBE = function(t, e, n, r) { if (((t = +t), (e |= 0), !r)) { var i = Math.pow(2, 8 * n - 1); - D(this, t, e, n, i - 1, -i); + j(this, t, e, n, i - 1, -i); } var o = n - 1, a = 1, @@ -13878,7 +13878,7 @@ object-assign return ( (t = +t), (e |= 0), - n || D(this, t, e, 1, 127, -128), + n || j(this, t, e, 1, 127, -128), u.TYPED_ARRAY_SUPPORT || (t = Math.floor(t)), t < 0 && (t = 255 + t + 1), (this[e] = 255 & t), @@ -13889,10 +13889,10 @@ object-assign return ( (t = +t), (e |= 0), - n || D(this, t, e, 2, 32767, -32768), + n || j(this, t, e, 2, 32767, -32768), u.TYPED_ARRAY_SUPPORT ? ((this[e] = 255 & t), (this[e + 1] = t >>> 8)) - : j(this, t, e, !0), + : D(this, t, e, !0), e + 2 ); }), @@ -13900,10 +13900,10 @@ object-assign return ( (t = +t), (e |= 0), - n || D(this, t, e, 2, 32767, -32768), + n || j(this, t, e, 2, 32767, -32768), u.TYPED_ARRAY_SUPPORT ? ((this[e] = t >>> 8), (this[e + 1] = 255 & t)) - : j(this, t, e, !1), + : D(this, t, e, !1), e + 2 ); }), @@ -13911,7 +13911,7 @@ object-assign return ( (t = +t), (e |= 0), - n || D(this, t, e, 4, 2147483647, -2147483648), + n || j(this, t, e, 4, 2147483647, -2147483648), u.TYPED_ARRAY_SUPPORT ? ((this[e] = 255 & t), (this[e + 1] = t >>> 8), @@ -13925,7 +13925,7 @@ object-assign return ( (t = +t), (e |= 0), - n || D(this, t, e, 4, 2147483647, -2147483648), + n || j(this, t, e, 4, 2147483647, -2147483648), t < 0 && (t = 4294967295 + t + 1), u.TYPED_ARRAY_SUPPORT ? ((this[e] = t >>> 24), @@ -16006,10 +16006,10 @@ object-assign : {} ); } - function D(t) { + function j(t) { return 'both' === t.props.axis || 'x' === t.props.axis; } - function j(t) { + function D(t) { return 'both' === t.props.axis || 'y' === t.props.axis; } function R(t, e, n) { @@ -16867,8 +16867,8 @@ object-assign p = !Boolean(u) || this.state.dragging, g = u || r, m = { - x: D(this) && p ? this.state.x : g.x, - y: j(this) && p ? this.state.y : g.y + x: j(this) && p ? this.state.x : g.x, + y: D(this) && p ? this.state.y : g.y }; this.state.isElementSVG ? (h = (function(t, e) { @@ -17547,10 +17547,10 @@ object-assign ) ); }, - D = function(t, e, n) { + j = function(t, e, n) { return Math.ceil((n - e) / (3.5 * g(t) * Math.pow(t.length, -1 / 3))); }, - j = function(t, e) { + D = function(t, e) { var n, r, i = t.length, @@ -18023,12 +18023,12 @@ object-assign function Lt(t, e) { return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; } - function Dt(t) { + function jt(t) { return function() { this.removeAttribute(t); }; } - function jt(t) { + function Dt(t) { return function() { this.removeAttributeNS(t.space, t.local); }; @@ -18542,8 +18542,8 @@ object-assign return this.each( (null == e ? n.local - ? jt - : Dt + ? Dt + : jt : 'function' == typeof e ? n.local ? It @@ -18676,11 +18676,11 @@ object-assign return this._; } }; - var De = function() { + var je = function() { for (var t, e = pe; (t = e.sourceEvent); ) e = t; return e; }, - je = function(t, e) { + De = function(t, e) { var n = t.ownerSVGElement || t; if (n.createSVGPoint) { var r = n.createSVGPoint(); @@ -18697,8 +18697,8 @@ object-assign ]; }, Re = function(t) { - var e = De(); - return e.changedTouches && (e = e.changedTouches[0]), je(t, e); + var e = je(); + return e.changedTouches && (e = e.changedTouches[0]), De(t, e); }, ze = function(t) { return 'string' == typeof t @@ -18706,15 +18706,15 @@ object-assign : new ke([null == t ? [] : t], Ee); }, Ne = function(t, e, n) { - arguments.length < 3 && ((n = e), (e = De().changedTouches)); + arguments.length < 3 && ((n = e), (e = je().changedTouches)); for (var r, i = 0, o = e ? e.length : 0; i < o; ++i) - if ((r = e[i]).identifier === n) return je(t, r); + if ((r = e[i]).identifier === n) return De(t, r); return null; }, Ie = function(t, e) { - null == e && (e = De().touches); + null == e && (e = je().touches); for (var n = 0, r = e ? e.length : 0, i = new Array(r); n < r; ++n) - i[n] = je(t, e[n]); + i[n] = De(t, e[n]); return i; }; function Fe() { @@ -19372,10 +19372,10 @@ object-assign Pn = 0.96422, Mn = 1, Ln = 0.82521, - Dn = 4 / 29, - jn = 6 / 29, - Rn = 3 * jn * jn, - zn = jn * jn * jn; + jn = 4 / 29, + Dn = 6 / 29, + Rn = 3 * Dn * Dn, + zn = Dn * Dn * Dn; function Nn(t) { if (t instanceof Vn) return new Vn(t.l, t.a, t.b, t.opacity); if (t instanceof Yn) return $n(t); @@ -19406,10 +19406,10 @@ object-assign (this.l = +t), (this.a = +e), (this.b = +n), (this.opacity = +r); } function Bn(t) { - return t > zn ? Math.pow(t, 1 / 3) : t / Rn + Dn; + return t > zn ? Math.pow(t, 1 / 3) : t / Rn + jn; } function Gn(t) { - return t > jn ? t * t * t : Rn * (t - Dn); + return t > Dn ? t * t * t : Rn * (t - jn); } function Hn(t) { return ( @@ -19833,7 +19833,7 @@ object-assign scaleX: 1, scaleY: 1 }, - Dr = function(t, e, n, r, i, o) { + jr = function(t, e, n, r, i, o) { var a, s, u; return ( (a = Math.sqrt(t * t + e * e)) && ((t /= a), (e /= a)), @@ -19850,7 +19850,7 @@ object-assign } ); }; - function jr(t, e, n, r) { + function Dr(t, e, n, r) { function i(t) { return t.length ? t.pop() + ' ' : ''; } @@ -19900,7 +19900,7 @@ object-assign ); }; } - var Rr = jr( + var Rr = Dr( function(t) { return 'none' === t ? Lr @@ -19915,13 +19915,13 @@ object-assign ).getPropertyValue('transform')), Sr.removeChild(wr), (t = t.slice(7, -1).split(',')), - Dr(+t[0], +t[1], +t[2], +t[3], +t[4], +t[5])); + jr(+t[0], +t[1], +t[2], +t[3], +t[4], +t[5])); }, 'px, ', 'px)', 'deg)' ), - zr = jr( + zr = Dr( function(t) { return null == t ? Lr @@ -19932,7 +19932,7 @@ object-assign )), kr.setAttribute('transform', t), (t = kr.transform.baseVal.consolidate()) - ? ((t = t.matrix), Dr(t.a, t.b, t.c, t.d, t.e, t.f)) + ? ((t = t.matrix), jr(t.a, t.b, t.c, t.d, t.e, t.f)) : Lr); }, ', ', @@ -20335,7 +20335,7 @@ object-assign a && delete t.__transition; } }; - function Di(t, e) { + function ji(t, e) { var n, r; return function() { var i = Pi(this, t), @@ -20349,7 +20349,7 @@ object-assign i.tween = r; }; } - function ji(t, e, n) { + function Di(t, e, n) { var r, i; if ('function' != typeof n) throw new Error(); return function() { @@ -20863,7 +20863,7 @@ object-assign if ((r = i[o]).name === t) return r.value; return null; } - return this.each((null == e ? Di : ji)(n, t, e)); + return this.each((null == e ? ji : Di)(n, t, e)); }, delay: function(t) { var e = this._id; @@ -20971,8 +20971,8 @@ object-assign Po = 0.75, Mo = 9 / 11, Lo = 10 / 11, - Do = 0.9375, - jo = 21 / 22, + jo = 0.9375, + Do = 21 / 22, Ro = 63 / 64, zo = 1 / To / To; function No(t) { @@ -20984,8 +20984,8 @@ object-assign : t < Oo ? zo * (t -= Co) * t + Po : t < Lo - ? zo * (t -= Mo) * t + Do - : zo * (t -= jo) * t + Ro; + ? zo * (t -= Mo) * t + jo + : zo * (t -= Do) * t + Ro; } function Fo(t) { return ((t *= 2) <= 1 ? 1 - Io(1 - t) : Io(t - 1) + 1) / 2; @@ -21367,19 +21367,19 @@ object-assign P = 0, M = 0, L = x && w && o && pe.shiftKey, - D = pe.touches + j = pe.touches ? ((v = pe.changedTouches[0].identifier), function(t) { return Ne(t, pe.touches, v); }) : Re, - j = D(y), - R = j, + D = j(y), + R = D, z = c(y, arguments, !0).beforestart(); 'overlay' === b ? (k && (p = !0), (S.selection = k = [ - [(n = t === ua ? A : j[0]), (a = t === sa ? T : j[1])], + [(n = t === ua ? A : D[0]), (a = t === sa ? T : D[1])], [(u = t === ua ? C : n), (d = t === sa ? O : a)] ])) : ((n = k[0][0]), (a = k[0][1]), (u = k[1][0]), (d = k[1][1])), @@ -21461,7 +21461,7 @@ object-assign Jo(), Li(y), l.call(y), z.start(); } function V() { - var t = D(y); + var t = j(y); !L || g || m || @@ -21475,7 +21475,7 @@ object-assign } function B() { var t; - switch (((P = R[0] - j[0]), (M = R[1] - j[1]), _)) { + switch (((P = R[0] - D[0]), (M = R[1] - D[1]), _)) { case na: case ea: x && @@ -21781,8 +21781,8 @@ object-assign i ); }, - Da = Array.prototype.slice, - ja = function(t) { + ja = Array.prototype.slice, + Da = function(t) { return function() { return t; }; @@ -21964,7 +21964,7 @@ object-assign o = null; function a() { var a, - s = Da.call(arguments), + s = ja.call(arguments), u = t.apply(this, s), l = e.apply(this, s), c = +n.apply(this, ((s[0] = u), s)), @@ -21991,17 +21991,17 @@ object-assign return ( (a.radius = function(t) { return arguments.length - ? ((n = 'function' == typeof t ? t : ja(+t)), a) + ? ((n = 'function' == typeof t ? t : Da(+t)), a) : n; }), (a.startAngle = function(t) { return arguments.length - ? ((r = 'function' == typeof t ? t : ja(+t)), a) + ? ((r = 'function' == typeof t ? t : Da(+t)), a) : r; }), (a.endAngle = function(t) { return arguments.length - ? ((i = 'function' == typeof t ? t : ja(+t)), a) + ? ((i = 'function' == typeof t ? t : Da(+t)), a) : i; }), (a.source = function(e) { @@ -22506,7 +22506,7 @@ object-assign ); var h = c(i); if (!Array.isArray(h)) { - var p = j(i); + var p = D(i); (h = C(0, p, h)), (h = w(0, Math.floor(p / h) * h, h)).shift(); } return vs() @@ -22644,7 +22644,7 @@ object-assign ? 'T' + Ms(n, 2) + ':' + Ms(r, 2) + 'Z' : ''); } - var Ds = function(t) { + var js = function(t) { var e = new RegExp('["' + t + '\n\r]'), n = t.charCodeAt(0); function r(t, e) { @@ -22750,13 +22750,13 @@ object-assign } }; }, - js = Ds(','), - Rs = js.parse, - zs = js.parseRows, - Ns = js.format, - Is = js.formatBody, - Fs = js.formatRows, - Vs = Ds('\t'), + Ds = js(','), + Rs = Ds.parse, + zs = Ds.parseRows, + Ns = Ds.format, + Is = Ds.formatBody, + Fs = Ds.formatRows, + Vs = js('\t'), Bs = Vs.parse, Gs = Vs.parseRows, Hs = Vs.format, @@ -22821,7 +22821,7 @@ object-assign 3 === arguments.length && 'function' == typeof n && ((r = n), (n = void 0)); - var i = Ds(t); + var i = js(t); return Zs(e, n).then(function(t) { return i.parse(t, r); }); @@ -23652,7 +23652,7 @@ object-assign u ); }, - Du = function(t, e, n) { + ju = function(t, e, n) { var r, i, o, @@ -23702,7 +23702,7 @@ object-assign s ); }, - ju = function(t) { + Du = function(t) { var e, n, r, @@ -24200,35 +24200,35 @@ object-assign (t = n[r]), e.point(t[0], t[1], t[2]); }, LineString: function(t, e) { - Dl(t.coordinates, e, 0); + jl(t.coordinates, e, 0); }, MultiLineString: function(t, e) { for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) - Dl(n[r], e, 0); + jl(n[r], e, 0); }, Polygon: function(t, e) { - jl(t.coordinates, e); + Dl(t.coordinates, e); }, MultiPolygon: function(t, e) { for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) - jl(n[r], e); + Dl(n[r], e); }, GeometryCollection: function(t, e) { for (var n = t.geometries, r = -1, i = n.length; ++r < i; ) Pl(n[r], e); } }; - function Dl(t, e, n) { + function jl(t, e, n) { var r, i = -1, o = t.length - n; for (e.lineStart(); ++i < o; ) (r = t[i]), e.point(r[0], r[1], r[2]); e.lineEnd(); } - function jl(t, e) { + function Dl(t, e) { var n = -1, r = t.length; - for (e.polygonStart(); ++n < r; ) Dl(t[n], e, 1); + for (e.polygonStart(); ++n < r; ) jl(t[n], e, 1); e.polygonEnd(); } var Rl, @@ -24428,8 +24428,8 @@ object-assign Pc, Mc, Lc, - Dc, jc, + Dc, Rc, zc, Nc, @@ -24542,8 +24542,8 @@ object-assign c = Tl(l), f = l && -c / l; (Lc += f * a), - (Dc += f * s), - (jc += f * u), + (jc += f * s), + (Dc += f * u), (kc += c), (Oc += c * (Nc + (Nc = r))), (Pc += c * (Ic + (Ic = i))), @@ -24551,10 +24551,10 @@ object-assign Hc(Nc, Ic, Fc); } var Zc = function(t) { - (Ec = kc = Ac = Tc = Cc = Oc = Pc = Mc = Lc = Dc = jc = 0), Vl(t, Bc); + (Ec = kc = Ac = Tc = Cc = Oc = Pc = Mc = Lc = jc = Dc = 0), Vl(t, Bc); var e = Lc, - n = Dc, - r = jc, + n = jc, + r = Dc, i = e * e + n * n + r * r; return i < sl && ((e = Oc), @@ -25369,21 +25369,21 @@ object-assign }); }, Lf = nl(), - Df = { + jf = { sphere: Ol, point: Ol, lineStart: function() { - (Df.point = Rf), (Df.lineEnd = jf); + (jf.point = Rf), (jf.lineEnd = Df); }, lineEnd: Ol, polygonStart: Ol, polygonEnd: Ol }; - function jf() { - Df.point = Df.lineEnd = Ol; + function Df() { + jf.point = jf.lineEnd = Ol; } function Rf(t, e) { - (Cf = t *= hl), (Of = wl((e *= hl))), (Pf = vl(e)), (Df.point = zf); + (Cf = t *= hl), (Of = wl((e *= hl))), (Pf = vl(e)), (jf.point = zf); } function zf(t, e) { t *= hl; @@ -25397,7 +25397,7 @@ object-assign Lf.add(ml(El(a * a + s * s), u)), (Cf = t), (Of = n), (Pf = r); } var Nf = function(t) { - return Lf.reset(), Vl(t, Df), +Lf; + return Lf.reset(), Vl(t, jf), +Lf; }, If = [null, null], Ff = { type: 'LineString', coordinates: If }, @@ -25717,14 +25717,14 @@ object-assign Pd = 0, Md = 0, Ld = { - point: Dd, - lineStart: jd, + point: jd, + lineStart: Dd, lineEnd: Nd, polygonStart: function() { (Ld.lineStart = Id), (Ld.lineEnd = Fd); }, polygonEnd: function() { - (Ld.point = Dd), (Ld.lineStart = jd), (Ld.lineEnd = Nd); + (Ld.point = jd), (Ld.lineStart = Dd), (Ld.lineEnd = Nd); }, result: function() { var t = Md @@ -25737,14 +25737,14 @@ object-assign return (Sd = Ed = kd = Ad = Td = Cd = Od = Pd = Md = 0), t; } }; - function Dd(t, e) { + function jd(t, e) { (Sd += t), (Ed += e), ++kd; } - function jd() { + function Dd() { Ld.point = Rd; } function Rd(t, e) { - (Ld.point = zd), Dd((_d = t), (xd = e)); + (Ld.point = zd), jd((_d = t), (xd = e)); } function zd(t, e) { var n = t - _d, @@ -25753,10 +25753,10 @@ object-assign (Ad += (i * (_d + t)) / 2), (Td += (i * (xd + e)) / 2), (Cd += i), - Dd((_d = t), (xd = e)); + jd((_d = t), (xd = e)); } function Nd() { - Ld.point = Dd; + Ld.point = jd; } function Id() { Ld.point = Vd; @@ -25765,7 +25765,7 @@ object-assign Bd(yd, bd); } function Vd(t, e) { - (Ld.point = Bd), Dd((yd = _d = t), (bd = xd = e)); + (Ld.point = Bd), jd((yd = _d = t), (bd = xd = e)); } function Bd(t, e) { var n = t - _d, @@ -25777,7 +25777,7 @@ object-assign (Od += (i = xd * t - _d * e) * (_d + t)), (Pd += i * (xd + e)), (Md += 3 * i), - Dd((_d = t), (xd = e)); + jd((_d = t), (xd = e)); } var Gd = Ld; function Hd(t) { @@ -26634,17 +26634,17 @@ object-assign c() ); } - function Dh(t) { + function jh(t) { return kl((ll + t) / 2); } - function jh(t, e) { + function Dh(t, e) { var n = vl(t), - r = t === e ? wl(t) : _l(n / vl(e)) / _l(Dh(e) / Dh(t)), - i = (n * xl(Dh(t), r)) / r; + r = t === e ? wl(t) : _l(n / vl(e)) / _l(jh(e) / jh(t)), + i = (n * xl(jh(t), r)) / r; if (!r) return Ph; function o(t, e) { i > 0 ? e < -ll + al && (e = -ll + al) : e > ll - al && (e = ll - al); - var n = i / xl(Dh(e), r); + var n = i / xl(jh(e), r); return [n * wl(r * t), i - n * vl(r * t)]; } return ( @@ -26657,7 +26657,7 @@ object-assign ); } var Rh = function() { - return bh(jh) + return bh(Dh) .scale(109.5) .parallels([30, 30]); }; @@ -27336,12 +27336,12 @@ object-assign function Lp() { return 0; } - var Dp = function(t) { + var jp = function(t) { return function() { return t; }; }; - function jp(t) { + function Dp(t) { return Math.sqrt(t.value); } var Rp = function() { @@ -27359,7 +27359,7 @@ object-assign .eachAfter(Np(r, 0.5)) .eachBefore(Ip(1)) : i - .eachBefore(zp(jp)) + .eachBefore(zp(Dp)) .eachAfter(Np(Lp, 1)) .eachAfter(Np(r, i.r / Math.min(e, n))) .eachBefore(Ip(Math.min(e, n) / (2 * i.r))), @@ -27375,7 +27375,7 @@ object-assign }), (i.padding = function(t) { return arguments.length - ? ((r = 'function' == typeof t ? t : Dp(+t)), i) + ? ((r = 'function' == typeof t ? t : jp(+t)), i) : r; }), i @@ -27829,7 +27829,7 @@ object-assign }), (c.paddingInner = function(t) { return arguments.length - ? ((o = 'function' == typeof t ? t : Dp(+t)), c) + ? ((o = 'function' == typeof t ? t : jp(+t)), c) : o; }), (c.paddingOuter = function(t) { @@ -27843,22 +27843,22 @@ object-assign }), (c.paddingTop = function(t) { return arguments.length - ? ((a = 'function' == typeof t ? t : Dp(+t)), c) + ? ((a = 'function' == typeof t ? t : jp(+t)), c) : a; }), (c.paddingRight = function(t) { return arguments.length - ? ((s = 'function' == typeof t ? t : Dp(+t)), c) + ? ((s = 'function' == typeof t ? t : jp(+t)), c) : s; }), (c.paddingBottom = function(t) { return arguments.length - ? ((u = 'function' == typeof t ? t : Dp(+t)), c) + ? ((u = 'function' == typeof t ? t : jp(+t)), c) : u; }), (c.paddingLeft = function(t) { return arguments.length - ? ((l = 'function' == typeof t ? t : Dp(+t)), c) + ? ((l = 'function' == typeof t ? t : jp(+t)), c) : l; }), c @@ -28235,12 +28235,12 @@ object-assign ); })(Mg.apply(null, arguments).paddingInner(1)); } - var Dg = function(t) { + var jg = function(t) { return function() { return t; }; }, - jg = function(t) { + Dg = function(t) { return +t; }, Rg = [0, 1]; @@ -28252,7 +28252,7 @@ object-assign ? function(n) { return (n - t) / e; } - : Dg(isNaN(e) ? NaN : 0.5); + : jg(isNaN(e) ? NaN : 0.5); } function Ig(t) { var e, @@ -28328,7 +28328,7 @@ object-assign }), (f.domain = function(t) { return arguments.length - ? ((a = Tg.call(t, jg)), l === zg || (l = Ig(a)), c()) + ? ((a = Tg.call(t, Dg)), l === zg || (l = Ig(a)), c()) : a.slice(); }), (f.range = function(t) { @@ -28446,7 +28446,7 @@ object-assign return ( (n.invert = n), (n.domain = n.range = function(e) { - return arguments.length ? ((t = Tg.call(e, jg)), n) : t.slice(); + return arguments.length ? ((t = Tg.call(e, Dg)), n) : t.slice(); }), (n.unknown = function(t) { return arguments.length ? ((e = t), n) : e; @@ -28454,7 +28454,7 @@ object-assign (n.copy = function() { return Xg(t).unknown(e); }), - (t = arguments.length ? Tg.call(t, jg) : [0, 1]), + (t = arguments.length ? Tg.call(t, Dg) : [0, 1]), qg(n) ); } @@ -28965,7 +28965,7 @@ object-assign ), Mm = Pm, Lm = Pm.range, - Dm = ym( + jm = ym( function(t) { t.setHours(0, 0, 0, 0); }, @@ -28982,8 +28982,8 @@ object-assign return t.getDate() - 1; } ), - jm = Dm, - Rm = Dm.range; + Dm = jm, + Rm = jm.range; function zm(t) { return ym( function(e) { @@ -29191,14 +29191,14 @@ object-assign }; var Mv = Pv, Lv = Pv.range; - function Dv(t) { + function jv(t) { if (0 <= t.y && t.y < 100) { var e = new Date(-1, t.m, t.d, t.H, t.M, t.S, t.L); return e.setFullYear(t.y), e; } return new Date(t.y, t.m, t.d, t.H, t.M, t.S, t.L); } - function jv(t) { + function Dv(t) { if (0 <= t.y && t.y < 100) { var e = new Date(Date.UTC(-1, t.m, t.d, t.H, t.M, t.S, t.L)); return e.setUTCFullYear(t.y), e; @@ -29285,8 +29285,8 @@ object-assign d: Ly, e: Ly, f: Ny, - H: Dy, - I: jy, + H: jy, + I: Dy, j: Ry, L: zy, m: Iy, @@ -29393,7 +29393,7 @@ object-assign if (o.V < 1 || o.V > 53) return null; 'w' in o || (o.w = 1), 'Z' in o - ? ((i = (r = jv(Rv(o.y))).getUTCDay()), + ? ((i = (r = Dv(Rv(o.y))).getUTCDay()), (r = i > 4 || 0 === i ? pv.ceil(r) : pv(r)), (r = cv.offset(r, 7 * (o.V - 1))), (o.y = r.getUTCFullYear()), @@ -29401,21 +29401,21 @@ object-assign (o.d = r.getUTCDate() + ((o.w + 6) % 7))) : ((i = (r = e(Rv(o.y))).getDay()), (r = i > 4 || 0 === i ? Im.ceil(r) : Im(r)), - (r = jm.offset(r, 7 * (o.V - 1))), + (r = Dm.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 ? jv(Rv(o.y)).getUTCDay() : e(Rv(o.y)).getDay()), + (i = 'Z' in o ? Dv(Rv(o.y)).getUTCDay() : e(Rv(o.y)).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), jv(o)) + ? ((o.H += (o.Z / 100) | 0), (o.M += o.Z % 100), Dv(o)) : e(o); }; } @@ -29450,7 +29450,7 @@ object-assign ); }, parse: function(t) { - var e = S((t += ''), Dv); + var e = S((t += ''), jv); return ( (e.toString = function() { return t; @@ -29468,7 +29468,7 @@ object-assign ); }, utcParse: function(t) { - var e = S(t, jv); + var e = S(t, Dv); return ( (e.toString = function() { return t; @@ -29595,7 +29595,7 @@ object-assign return Wv(t.getHours() % 12 || 12, e, 2); } function yy(t, e) { - return Wv(1 + jm.count(ev(t), t), e, 3); + return Wv(1 + Dm.count(ev(t), t), e, 3); } function by(t, e) { return Wv(t.getMilliseconds(), e, 3); @@ -29649,10 +29649,10 @@ object-assign function Ly(t, e) { return Wv(t.getUTCDate(), e, 2); } - function Dy(t, e) { + function jy(t, e) { return Wv(t.getUTCHours(), e, 2); } - function jy(t, e) { + function Dy(t, e) { return Wv(t.getUTCHours() % 12 || 12, e, 2); } function Ry(t, e) { @@ -29887,7 +29887,7 @@ object-assign } var fb = function() { return Eg.apply( - cb(ev, Zm, Nm, jm, Mm, Cm, km, _m, Iv).domain([ + cb(ev, Zm, Nm, Dm, Mm, Cm, km, _m, Iv).domain([ new Date(2e3, 0, 1), new Date(2e3, 0, 2) ]), @@ -30123,8 +30123,8 @@ object-assign 'a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928' ), Lb = Tb('fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2'), - Db = Tb('b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc'), - jb = Tb('e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999'), + jb = Tb('b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc'), + Db = Tb('e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999'), Rb = Tb('66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3'), zb = Tb( '8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f' @@ -30439,7 +30439,7 @@ object-assign ) .map(Tb), L_ = Ib(M_), - D_ = new Array(3) + j_ = new Array(3) .concat( 'efedf5bcbddc756bb1', 'f2f0f7cbc9e29e9ac86a51a3', @@ -30450,7 +30450,7 @@ object-assign 'fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d' ) .map(Tb), - j_ = Ib(D_), + D_ = Ib(j_), R_ = new Array(3) .concat( 'fee0d2fc9272de2d26', @@ -30753,8 +30753,8 @@ object-assign : ((E = 0), (b = _ = (h + p) / 2)); } var L = d * ix(b), - D = d * sx(b), - j = f * ix(w), + j = d * sx(b), + D = f * ix(w), R = f * sx(w); if (T > lx) { var z, @@ -30775,10 +30775,10 @@ object-assign t + (d = (c * (e - o) - f * (t - i)) / d) * u, e + d * l ]; - })(L, D, F, V, N, I, j, R)) + })(L, j, F, V, N, I, D, R)) ) { var B = L - z[0], - G = D - z[1], + G = j - z[1], H = N - z[0], U = I - z[1], q = @@ -30799,8 +30799,8 @@ object-assign } E > lx ? O > lx - ? ((v = bx(F, V, L, D, d, O, m)), - (y = bx(N, I, j, R, d, O, m)), + ? ((v = bx(F, V, L, j, d, O, m)), + (y = bx(N, I, D, R, d, O, m)), s.moveTo(v.cx + v.x01, v.cy + v.y01), O < T ? s.arc( @@ -30835,12 +30835,12 @@ object-assign rx(y.y01, y.x01), !m ))) - : (s.moveTo(L, D), s.arc(0, 0, d, b, _, !m)) - : s.moveTo(L, D), + : (s.moveTo(L, j), s.arc(0, 0, d, b, _, !m)) + : s.moveTo(L, j), f > lx && S > lx ? C > lx - ? ((v = bx(j, R, N, I, f, -C, m)), - (y = bx(L, D, F, V, f, -C, m)), + ? ((v = bx(D, R, N, I, f, -C, m)), + (y = bx(L, j, F, V, f, -C, m)), s.lineTo(v.cx + v.x01, v.cy + v.y01), C < T ? s.arc( @@ -30876,7 +30876,7 @@ object-assign !m ))) : s.arc(0, 0, f, w, x, m) - : s.lineTo(j, R); + : s.lineTo(D, R); } else s.moveTo(0, 0); if ((s.closePath(), u)) return (s = null), u + '' || null; @@ -31222,7 +31222,7 @@ object-assign } return (e._curve = t), e; } - function Dx(t) { + function jx(t) { var e = t.curve; return ( (t.angle = t.x), @@ -31252,8 +31252,8 @@ object-assign this._curve.point(e * Math.sin(t), e * -Math.cos(t)); } }; - var jx = function() { - return Dx(kx().curve(Px)); + var Dx = function() { + return jx(kx().curve(Px)); }, Rx = function() { var t = Ax().curve(Px), @@ -31276,19 +31276,19 @@ object-assign (t.outerRadius = t.y1), delete t.y1, (t.lineStartAngle = function() { - return Dx(n()); + return jx(n()); }), delete t.lineX0, (t.lineEndAngle = function() { - return Dx(r()); + return jx(r()); }), delete t.lineX1, (t.lineInnerRadius = function() { - return Dx(i()); + return jx(i()); }), delete t.lineY0, (t.lineOuterRadius = function() { - return Dx(o()); + return jx(o()); }), delete t.lineY1, (t.curve = function(t) { @@ -32068,10 +32068,10 @@ object-assign n ); })(0.5); - function Dw(t, e) { + function jw(t, e) { (this._context = t), (this._alpha = e); } - Dw.prototype = { + jw.prototype = { areaStart: function() { this._line = 0; }, @@ -32125,9 +32125,9 @@ object-assign (this._y2 = e); } }; - var jw = (function t(e) { + var Dw = (function t(e) { function n(t) { - return e ? new Dw(t, e) : new Aw(t, 0); + return e ? new jw(t, e) : new Aw(t, 0); } return ( (n.alpha = function(e) { @@ -32839,10 +32839,10 @@ object-assign } var MS, LS = []; - function DS() { + function jS() { yS(this), (this.x = this.y = this.arc = this.site = this.cy = null); } - function jS(t) { + function DS(t) { var e = t.P, n = t.N; if (e && n) { @@ -32862,7 +32862,7 @@ object-assign p = c * c + f * f, g = (f * h - l * p) / d, m = (u * p - c * h) / d, - v = LS.pop() || new DS(); + v = LS.pop() || new jS(); (v.arc = t), (v.site = i), (v.x = g + a), @@ -32940,8 +32940,8 @@ object-assign (l = s[c]), (u = s[c - 1]), kS(l.edge, u.site, l.site, i); (u = s[0]), ((l = s[f - 1]).edge = SS(u.site, l.site, null, i)), - jS(u), - jS(l); + DS(u), + DS(l); } function BS(t) { for (var e, n, r, i, o = t[0], a = t[1], s = US._; s; ) @@ -32972,8 +32972,8 @@ object-assign (n = IS(e.site)), US.insert(u, n), (u.edge = n.edge = SS(e.site, u.site)), - jS(e), - void jS(n) + DS(e), + void DS(n) ); if (n) { RS(e), RS(n); @@ -32992,8 +32992,8 @@ object-assign kS(n.edge, l, p, _), (u.edge = SS(l, t, null, _)), (n.edge = SS(t, p, null, _)), - jS(e), - jS(n); + DS(e), + DS(n); } else u.edge = SS(e.site, u.site); } } @@ -33895,13 +33895,13 @@ object-assign return L; }), n.d(e, 'thresholdScott', function() { - return D; + return j; }), n.d(e, 'thresholdSturges', function() { return O; }), n.d(e, 'max', function() { - return j; + return D; }), n.d(e, 'mean', function() { return R; @@ -34045,7 +34045,7 @@ object-assign return Ge; }), n.d(e, 'dsvFormat', function() { - return Ds; + return js; }), n.d(e, 'csvParse', function() { return Rs; @@ -34237,13 +34237,13 @@ object-assign return Lu; }), n.d(e, 'forceRadial', function() { - return Du; + return ju; }), n.d(e, 'forceSimulation', function() { return Mu; }), n.d(e, 'forceX', function() { - return ju; + return Du; }), n.d(e, 'forceY', function() { return Ru; @@ -34342,7 +34342,7 @@ object-assign return Rh; }), n.d(e, 'geoConicConformalRaw', function() { - return jh; + return Dh; }), n.d(e, 'geoConicEqualArea', function() { return xh; @@ -34681,10 +34681,10 @@ object-assign return Lb; }), n.d(e, 'schemePastel2', function() { - return Db; + return jb; }), n.d(e, 'schemeSet1', function() { - return jb; + return Db; }), n.d(e, 'schemeSet2', function() { return Rb; @@ -34840,10 +34840,10 @@ object-assign return M_; }), n.d(e, 'interpolatePurples', function() { - return j_; + return D_; }), n.d(e, 'schemePurples', function() { - return D_; + return j_; }), n.d(e, 'interpolateReds', function() { return z_; @@ -34912,7 +34912,7 @@ object-assign return vt; }), n.d(e, 'clientPoint', function() { - return je; + return De; }), n.d(e, 'select', function() { return Ce; @@ -34966,10 +34966,10 @@ object-assign return Rx; }), n.d(e, 'lineRadial', function() { - return jx; + return Dx; }), n.d(e, 'radialLine', function() { - return jx; + return Dx; }), n.d(e, 'pointRadial', function() { return zx; @@ -35035,7 +35035,7 @@ object-assign return Lw; }), n.d(e, 'curveCatmullRomOpen', function() { - return jw; + return Dw; }), n.d(e, 'curveCatmullRom', function() { return Pw; @@ -35140,7 +35140,7 @@ object-assign return Lm; }), n.d(e, 'timeDay', function() { - return jm; + return Dm; }), n.d(e, 'timeDays', function() { return Rm; @@ -38848,7 +38848,7 @@ object-assign function L(t) { f(t.c, 'body', t.a); } - function D(t) { + function j(t) { return ( 'display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:' + S(t.c) + @@ -38859,7 +38859,7 @@ object-assign '00;' ); } - function j(t, e, n, r, i, o) { + function D(t, e, n, r, i, o) { (this.g = t), (this.j = e), (this.a = r), @@ -38881,13 +38881,13 @@ object-assign (this.h = new M(this.c, this.s)), (this.j = new M(this.c, this.s)), (this.m = new M(this.c, this.s)), - (t = D((t = new w(this.a.c + ',serif', E(this.a))))), + (t = j((t = new w(this.a.c + ',serif', E(this.a))))), (this.g.a.style.cssText = t), - (t = D((t = new w(this.a.c + ',sans-serif', E(this.a))))), + (t = j((t = new w(this.a.c + ',sans-serif', E(this.a))))), (this.h.a.style.cssText = t), - (t = D((t = new w('serif', E(this.a))))), + (t = j((t = new w('serif', E(this.a))))), (this.j.a.style.cssText = t), - (t = D((t = new w('sans-serif', E(this.a))))), + (t = j((t = new w('sans-serif', E(this.a))))), (this.m.a.style.cssText = t), L(this.g), L(this.h), @@ -38899,7 +38899,7 @@ object-assign e.push(arguments[n].replace(/[\W_]+/g, '').toLowerCase()); return e.join(this.a); }), - (j.prototype.start = function() { + (D.prototype.start = function() { var t = this.c.o.document, e = this, n = s(), @@ -39055,7 +39055,7 @@ object-assign H = p ? 42 < parseInt(p[1], 10) : !g; } else H = !1; (d = H - ? new j(a(e.g, e), a(e.h, e), e.c, c, e.s, f) + ? new D(a(e.g, e), a(e.h, e), e.c, c, e.s, f) : new R(a(e.g, e), a(e.h, e), e.c, c, e.s, t, f)), l.push(d); } @@ -45797,12 +45797,12 @@ object-assign var P = C.value, M = i(P, 2), L = M[0], - D = M[1]; - v && D instanceof Date && (D = v(D)); - var j = (0, a.escapeHtml)(D); + j = M[1]; + v && j instanceof Date && (j = v(j)); + var D = (0, a.escapeHtml)(j); p[L] - ? (n += '' + m[p[L]](j) + '') - : (n += '' + j + ''); + ? (n += '' + m[p[L]](D) + '') + : (n += '' + D + ''); } } catch (t) { (A = !0), (T = t); @@ -46091,9 +46091,9 @@ object-assign P = T.style('height').slice(0, -2) - w - E - 30, M = P / (t.length - 1), L = O, - D = (100).toFixed(m), - j = 0; - x && (j = (O - x) / (t.length - 2)); + j = (100).toFixed(m), + D = 0; + x && (D = (O - x) / (t.length - 2)); var R = t.slice(1).map(function(e, n) { var r = [ { x: (O - L) / 2, y: M * n + A }, @@ -46101,11 +46101,11 @@ object-assign ]; 0 !== n && ('relative' === g && - (x ? (L -= j) : (L = (L * e[1]) / t[n][1]), - (D = ((e[1] / t[n][1]) * 100).toFixed(m))), + (x ? (L -= D) : (L = (L * e[1]) / t[n][1]), + (j = ((e[1] / t[n][1]) * 100).toFixed(m))), 'absolute' === g && - (x ? (L -= j) : (L = (O * e[1]) / t[1][1]), - (D = ((e[1] / t[1][1]) * 100).toFixed(m)))); + (x ? (L -= D) : (L = (O * e[1]) / t[1][1]), + (j = ((e[1] / t[1][1]) * 100).toFixed(m)))); var o = e[0]; if (Object.keys(i).length) for (var a in i) i[a] === e[0] && (o = a); @@ -46118,7 +46118,7 @@ object-assign { name: e[0], label: o, - percent: D + '%', + percent: j + '%', result: u, points: [].concat(r, [ { x: (O - L) / 2 + L, y: M * (n + 1) }, @@ -46472,22 +46472,22 @@ object-assign P = O / (t.length - 1), M = 0.3 * P, L = 2.5 * M, - D = C, - j = (100).toFixed(m), + j = C, + D = (100).toFixed(m), R = 0; x && (R = (C - x) / (t.length - 2)); var z = t.slice(1).map(function(e, n) { var r = [ - { x: (C - D) / 2, y: P * n + M }, - { x: (C - D) / 2 + D, y: P * n + M } + { x: (C - j) / 2, y: P * n + M }, + { x: (C - j) / 2 + j, y: P * n + M } ]; 0 !== n && ('relative' === g && - (x ? (D -= R) : (D = (D * e[1]) / t[n][1]), - (j = ((e[1] / t[n][1]) * 100).toFixed(m))), + (x ? (j -= R) : (j = (j * e[1]) / t[n][1]), + (D = ((e[1] / t[n][1]) * 100).toFixed(m))), 'absolute' === g && - (x ? (D -= R) : (D = (C * e[1]) / t[1][1]), - (j = ((e[1] / t[1][1]) * 100).toFixed(m)))); + (x ? (j -= R) : (j = (C * e[1]) / t[1][1]), + (D = ((e[1] / t[1][1]) * 100).toFixed(m)))); var o = e[0]; if (Object.keys(i).length) for (var a in i) i[a] === e[0] && (o = a); @@ -46500,11 +46500,11 @@ object-assign { name: e[0], label: o, - percent: j + '%', + percent: D + '%', result: u, points: [].concat(r, [ - { x: (C - D) / 2 + D, y: P * (n + 1) }, - { x: (C - D) / 2, y: P * (n + 1) } + { x: (C - j) / 2 + j, y: P * (n + 1) }, + { x: (C - j) / 2, y: P * (n + 1) } ]) } ); @@ -46887,9 +46887,9 @@ object-assign P = T.style('height').slice(0, -2) - w - E - 30, M = O / (t.length - 1), L = P, - D = (100).toFixed(m), - j = 0; - x && (j = (P - x) / (t.length - 2)); + j = (100).toFixed(m), + D = 0; + x && (D = (P - x) / (t.length - 2)); var R = t.slice(1).map(function(e, n) { var r = [ { x: M * n + A, y: (P - L) / 2 }, @@ -46897,11 +46897,11 @@ object-assign ]; 0 !== n && ('relative' === g && - (x ? (L -= j) : (L = (L * e[1]) / t[n][1]), - (D = ((e[1] / t[n][1]) * 100).toFixed(m))), + (x ? (L -= D) : (L = (L * e[1]) / t[n][1]), + (j = ((e[1] / t[n][1]) * 100).toFixed(m))), 'absolute' === g && - (x ? (L -= j) : (L = (P * e[1]) / t[1][1]), - (D = ((e[1] / t[1][1]) * 100).toFixed(m)))); + (x ? (L -= D) : (L = (P * e[1]) / t[1][1]), + (j = ((e[1] / t[1][1]) * 100).toFixed(m)))); var o = e[0]; if (Object.keys(i).length) for (var a in i) i[a] === e[0] && (o = a); @@ -46914,7 +46914,7 @@ object-assign { name: e[0], label: o, - percent: D + '%', + percent: j + '%', result: u, points: [].concat(r, [ { x: M * (n + 1), y: (P - L) / 2 + L }, @@ -47228,22 +47228,22 @@ object-assign P = C / (t.length - 1), M = 0.3 * P, L = M / 1.5, - D = O, - j = (100).toFixed(m), + j = O, + D = (100).toFixed(m), R = 0; x && (R = (O - x) / (t.length - 2)); var z = t.slice(1).map(function(e, n) { var r = [ - { x: P * n + M, y: (O - D) / 2 }, - { x: P * n + M, y: (O - D) / 2 + D } + { x: P * n + M, y: (O - j) / 2 }, + { x: P * n + M, y: (O - j) / 2 + j } ]; 0 !== n && ('relative' === g && - (x ? (D -= R) : (D = (D * e[1]) / t[n][1]), - (j = ((e[1] / t[n][1]) * 100).toFixed(m))), + (x ? (j -= R) : (j = (j * e[1]) / t[n][1]), + (D = ((e[1] / t[n][1]) * 100).toFixed(m))), 'absolute' === g && - (x ? (D -= R) : (D = (O * e[1]) / t[1][1]), - (j = ((e[1] / t[1][1]) * 100).toFixed(m)))); + (x ? (j -= R) : (j = (O * e[1]) / t[1][1]), + (D = ((e[1] / t[1][1]) * 100).toFixed(m)))); var o = e[0]; if (Object.keys(i).length) for (var a in i) i[a] === e[0] && (o = a); @@ -47256,11 +47256,11 @@ object-assign { name: e[0], label: o, - percent: j + '%', + percent: D + '%', result: u, points: [].concat(r, [ - { x: P * (n + 1), y: (O - D) / 2 + D }, - { x: P * (n + 1), y: (O - D) / 2 } + { x: P * (n + 1), y: (O - j) / 2 + j }, + { x: P * (n + 1), y: (O - j) / 2 } ]) } ); @@ -47823,12 +47823,12 @@ object-assign L = O.reduce(function(t, e) { return e.value > t ? e.value : t; }, P), - D = function() { + j = function() { var t = u[0], e = o.rgb('#00BBDE'); return o.color(t) && (e = o.rgb(t)), e; }, - j = o + D = o .scaleLinear() .domain([ 0, @@ -47838,8 +47838,8 @@ object-assign ]) .range([0, 1]), R = function(t) { - var e = j(t), - n = D(), + var e = D(t), + n = j(), r = (function(t) { var e = arguments.length > 1 && @@ -47910,15 +47910,15 @@ object-assign ' .rangeable-tooltip,\n ' + N + ' .active {\n background-color: ' + - D() + + j() + ';\n }\n ' + N + ' .rangeable-tooltip::before {\n border-color: ' + - D() + + j() + ' transparent transparent;\n }\n ' + N + ' .rangeable-handle {\n border-color: ' + - D() + + j() + ';\n }\n ', F = document.createElement('style'); F.innerHTML = I; @@ -47962,7 +47962,7 @@ object-assign .attr('class', 'keen-dataviz-tooltip') .style('opacity', 0) .style('background-color', 'white') - .style('border', '2px solid ' + D().toString()) + .style('border', '2px solid ' + j().toString()) .style('font-size', '14px') .style('padding', '2px 8px') .style('box-shadow', '2px 2px 4px rgba(0,0,0,0.25') @@ -47991,7 +47991,7 @@ object-assign .select(o.event.target) .raise() .style('transition', 'transform 150ms ease-out') - .style('outline', '1px solid ' + D()) + .style('outline', '1px solid ' + j()) .style('transform', 'translate(0px, -4px)'), U.style('opacity', 1).style('display', 'block'); }) @@ -48713,8 +48713,8 @@ object-assign P = _.splice, M = B(b, 'Map'), L = B(Object, 'create'), - D = O ? O.prototype : void 0, - j = D ? D.toString : void 0; + j = O ? O.prototype : void 0, + D = j ? j.toString : void 0; function R(t) { var e = -1, n = t ? t.length : 0; @@ -48881,7 +48881,7 @@ object-assign ? '' : (function(t) { if ('string' == typeof t) return t; - if ($(t)) return j ? j.call(t) : ''; + if ($(t)) return D ? D.call(t) : ''; var e = t + ''; return '0' == e && 1 / t == -o ? '-0' : e; })(t); @@ -49088,9 +49088,9 @@ object-assign self.Object === Object && self, L = P || M || Function('return this')(), - D = e && !e.nodeType && e, - j = D && 'object' == typeof n && n && !n.nodeType && n, - R = j && j.exports === D, + j = e && !e.nodeType && e, + D = j && 'object' == typeof n && n && !n.nodeType && n, + R = D && D.exports === j, z = R && P.process, N = (function() { try { @@ -49162,12 +49162,12 @@ object-assign function(t) { return H(U(t)); }), - lt = jt(L, 'DataView'), - ct = jt(L, 'Map'), - ft = jt(L, 'Promise'), - dt = jt(L, 'Set'), - ht = jt(L, 'WeakMap'), - pt = jt(Object, 'create'), + lt = Dt(L, 'DataView'), + ct = Dt(L, 'Map'), + ft = Dt(L, 'Promise'), + dt = Dt(L, 'Set'), + ht = Dt(L, 'WeakMap'), + pt = Dt(Object, 'create'), gt = It(lt), mt = It(ct), vt = It(ft), @@ -49421,7 +49421,7 @@ object-assign })(r, n(t)); })(t, Yt, Rt); } - function Dt(t, e) { + function jt(t, e) { var n = t.__data__; return (function(t) { var e = typeof t; @@ -49435,7 +49435,7 @@ object-assign ? n['string' == typeof e ? 'string' : 'hash'] : n.map; } - function jt(t, e) { + function Dt(t, e) { var n = (function(t, e) { return null == t ? void 0 : t[e]; })(t, e); @@ -49517,17 +49517,17 @@ object-assign }); }), (Et.prototype.delete = function(t) { - var e = Dt(this, t).delete(t); + var e = jt(this, t).delete(t); return (this.size -= e ? 1 : 0), e; }), (Et.prototype.get = function(t) { - return Dt(this, t).get(t); + return jt(this, t).get(t); }), (Et.prototype.has = function(t) { - return Dt(this, t).has(t); + return jt(this, t).has(t); }), (Et.prototype.set = function(t, e) { - var n = Dt(this, t), + var n = jt(this, t), r = n.size; return ( n.set(t, e), (this.size += n.size == r ? 0 : 1), this @@ -50604,7 +50604,7 @@ object-assign var n = t.getBoundingClientRect(); return { top: n.top + e.top, left: n.left + e.left }; } - function D(t) { + function j(t) { return t.touches && t.touches.length ? { x: t.touches[0].pageX, y: t.touches[0].pageY } : t.changedTouches && t.changedTouches.length @@ -50614,7 +50614,7 @@ object-assign } : { x: t.pageX, y: t.pageY }; } - function j(t, e) { + function D(t, e) { var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] @@ -50624,7 +50624,7 @@ object-assign left: n.left + t.offsetLeft, top: n.top + t.offsetTop }; - return t.parentNode === e ? r : j(t.parentNode, e, r); + return t.parentNode === e ? r : D(t.parentNode, e, r); } } function R(t) { @@ -50877,7 +50877,7 @@ object-assign r = n.distance, i = n.shouldCancelStart; if (2 !== t.button && !i(t)) { - (e.touched = !0), (e.position = D(t)); + (e.touched = !0), (e.position = j(t)); var o = C(t.target, function(t) { return null != t.sortableInfo; }); @@ -50927,7 +50927,7 @@ object-assign e.touched && !e._awaitingUpdateBeforeSortStart ) { - var o = D(t), + var o = j(t), a = { x: e.position.x - o.x, y: e.position.y - o.y @@ -51002,8 +51002,8 @@ object-assign x: o.indexOf('x') >= 0, y: o.indexOf('y') >= 0 }), - (e.offsetEdge = j(h, e.container)), - (e.initialOffset = D( + (e.offsetEdge = D(h, e.container)), + (e.initialOffset = j( g ? u({}, t, { pageX: @@ -51575,7 +51575,7 @@ object-assign u = void 0 === s ? o : s, l = this.manager.isKeySorting, c = t.ignoreTransition, - f = D(t), + f = j(t), d = { x: f.x - this.initialOffset.x, y: f.y - this.initialOffset.y @@ -51676,14 +51676,14 @@ object-assign _ = { x: 0, y: 0 }, x = a[f].edgeOffset; x || - ((x = j(h, this.container)), + ((x = D(h, this.container)), (a[f].edgeOffset = x), l && (a[f].boundingClientRect = L(h, i))); var w = f < a.length - 1 && a[f + 1], S = f > 0 && a[f - 1]; w && !w.edgeOffset && - ((w.edgeOffset = j(w.node, this.container)), + ((w.edgeOffset = D(w.node, this.container)), l && (w.boundingClientRect = L(w.node, i))), p !== this.index ? (e && T(h, e), @@ -53099,7 +53099,7 @@ object-assign revoke: null }, i = Array.isArray(t) - ? Proxy.revocable([r], D) + ? Proxy.revocable([r], j) : Proxy.revocable(r, L), o = i.revoke, a = i.proxy; @@ -53110,7 +53110,7 @@ object-assign if (e === o) return t; var n = t.drafts; if (!t.modified && h(n, e)) return n[e]; - var r = j(t)[e]; + var r = D(t)[e]; if (t.finalized || !s(r)) return r; if (t.modified) { if (r !== R(t.base, e)) return r; @@ -53119,10 +53119,10 @@ object-assign return (n[e] = M(r, t)); }, has: function(t, e) { - return e in j(t); + return e in D(t); }, ownKeys: function(t) { - return Reflect.ownKeys(j(t)); + return Reflect.ownKeys(D(t)); }, set: function(t, e, n) { if (!t.modified) { @@ -53147,7 +53147,7 @@ object-assign ); }, getOwnPropertyDescriptor: function(t, e) { - var n = j(t), + var n = D(t), r = Reflect.getOwnPropertyDescriptor(n, e); return ( r && @@ -53171,13 +53171,13 @@ object-assign ); } }, - D = {}; - function j(t) { + j = {}; + function D(t) { return t.copy || t.base; } function R(t, e) { var n = t[o], - r = Reflect.getOwnPropertyDescriptor(n ? j(n) : t, e); + r = Reflect.getOwnPropertyDescriptor(n ? D(n) : t, e); return r && r.value; } function z(t) { @@ -53188,20 +53188,20 @@ object-assign t.parent && z(t.parent)); } f(L, function(t, e) { - D[t] = function() { + j[t] = function() { return ( (arguments[0] = arguments[0][0]), e.apply(this, arguments) ); }; }), - (D.deleteProperty = function(t, e) { + (j.deleteProperty = function(t, e) { if (isNaN(parseInt(e))) throw new Error( 'Immer only supports deleting array indices' ); return L.deleteProperty.call(this, t[0], e); }), - (D.set = function(t, e, n) { + (j.set = function(t, e, n) { if ('length' !== e && isNaN(parseInt(e))) throw new Error( "Immer only supports setting array indices and the 'length' property" @@ -53883,7 +53883,7 @@ object-assign function L(t) { f(t.c, 'body', t.a); } - function D(t) { + function j(t) { return ( 'display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:' + S(t.c) + @@ -53894,7 +53894,7 @@ object-assign '00;' ); } - function j(t, e, n, r, i, o) { + function D(t, e, n, r, i, o) { (this.g = t), (this.j = e), (this.a = r), @@ -53916,13 +53916,13 @@ object-assign (this.h = new M(this.c, this.s)), (this.j = new M(this.c, this.s)), (this.m = new M(this.c, this.s)), - (t = D((t = new w(this.a.c + ',serif', E(this.a))))), + (t = j((t = new w(this.a.c + ',serif', E(this.a))))), (this.g.a.style.cssText = t), - (t = D((t = new w(this.a.c + ',sans-serif', E(this.a))))), + (t = j((t = new w(this.a.c + ',sans-serif', E(this.a))))), (this.h.a.style.cssText = t), - (t = D((t = new w('serif', E(this.a))))), + (t = j((t = new w('serif', E(this.a))))), (this.j.a.style.cssText = t), - (t = D((t = new w('sans-serif', E(this.a))))), + (t = j((t = new w('sans-serif', E(this.a))))), (this.m.a.style.cssText = t), L(this.g), L(this.h), @@ -53934,7 +53934,7 @@ object-assign e.push(arguments[n].replace(/[\W_]+/g, '').toLowerCase()); return e.join(this.a); }), - (j.prototype.start = function() { + (D.prototype.start = function() { var t = this.c.o.document, e = this, n = s(), @@ -54102,7 +54102,7 @@ object-assign G = p ? 42 < parseInt(p[1], 10) : !g; } else G = !1; (d = G - ? new j(a(e.g, e), a(e.h, e), e.c, c, e.s, f) + ? new D(a(e.g, e), a(e.h, e), e.c, c, e.s, f) : new R(a(e.g, e), a(e.h, e), e.c, c, e.s, t, f)), l.push(d); } @@ -56681,25 +56681,25 @@ object-assign (T['[object Error]'] = T[k] = T['[object WeakMap]'] = !1), (t.exports = function t(e, n, C, O, P, M) { var L, - D = 1 & n, - j = 2 & n, + j = 1 & n, + D = 2 & n, R = 4 & n; if ((C && (L = P ? C(e, O, P, M) : C(e)), void 0 !== L)) return L; if (!x(e)) return e; var z = y(e); if (z) { - if (((L = g(e)), !D)) return l(e, L); + if (((L = g(e)), !j)) return l(e, L); } else { var N = p(e), I = N == k || '[object GeneratorFunction]' == N; - if (b(e)) return u(e, D); + if (b(e)) return u(e, j); if (N == A || N == E || (I && !P)) { - if (((L = j || I ? {} : v(e)), !D)) - return j ? f(e, s(L, e)) : c(e, a(L, e)); + if (((L = D || I ? {} : v(e)), !j)) + return D ? f(e, s(L, e)) : c(e, a(L, e)); } else { if (!T[N]) return P ? e : {}; - L = m(e, N, D); + L = m(e, N, j); } } M || (M = new r()); @@ -56719,7 +56719,7 @@ object-assign }), L ); - var V = R ? (j ? h : d) : j ? keysIn : S, + var V = R ? (D ? h : d) : D ? keysIn : S, B = z ? void 0 : V(e); return ( i(B || e, function(r, i) { @@ -58716,9 +58716,9 @@ object-assign (n = t.g), (r = t.b), (s = { - r: 255 * D(e, 255), - g: 255 * D(n, 255), - b: 255 * D(r, 255) + r: 255 * j(e, 255), + g: 255 * j(n, 255), + b: 255 * j(r, 255) }), (p = !0), (g = @@ -58727,9 +58727,9 @@ object-assign ? ((f = N(t.s)), (d = N(t.v)), (s = (function(t, e, n) { - (t = 6 * D(t, 360)), - (e = D(e, 100)), - (n = D(n, 100)); + (t = 6 * j(t, 360)), + (e = j(e, 100)), + (n = j(n, 100)); var r = i.floor(t), o = t - r, a = n * (1 - e), @@ -58765,9 +58765,9 @@ object-assign ); } if ( - ((t = D(t, 360)), - (e = D(e, 100)), - (n = D(n, 100)), + ((t = j(t, 360)), + (e = j(e, 100)), + (n = j(n, 100)), 0 === e) ) r = i = o = n; @@ -58809,7 +58809,7 @@ object-assign (this._tc_id = s++); } function h(t, e, n) { - (t = D(t, 255)), (e = D(e, 255)), (n = D(n, 255)); + (t = j(t, 255)), (e = j(e, 255)), (n = j(n, 255)); var r, i, o = c(t, e, n), @@ -58835,7 +58835,7 @@ object-assign return { h: r, s: i, l: s }; } function p(t, e, n) { - (t = D(t, 255)), (e = D(e, 255)), (n = D(n, 255)); + (t = j(t, 255)), (e = j(e, 255)), (n = j(n, 255)); var r, i, o = c(t, e, n), @@ -58882,12 +58882,12 @@ object-assign function v(t, e) { e = 0 === e ? 0 : e || 10; var n = d(t).toHsl(); - return (n.s -= e / 100), (n.s = j(n.s)), d(n); + return (n.s -= e / 100), (n.s = D(n.s)), d(n); } function y(t, e) { e = 0 === e ? 0 : e || 10; var n = d(t).toHsl(); - return (n.s += e / 100), (n.s = j(n.s)), d(n); + return (n.s += e / 100), (n.s = D(n.s)), d(n); } function b(t) { return d(t).desaturate(100); @@ -58895,7 +58895,7 @@ object-assign function _(t, e) { e = 0 === e ? 0 : e || 10; var n = d(t).toHsl(); - return (n.l += e / 100), (n.l = j(n.l)), d(n); + return (n.l += e / 100), (n.l = D(n.l)), d(n); } function x(t, e) { e = 0 === e ? 0 : e || 10; @@ -58910,7 +58910,7 @@ object-assign function w(t, e) { e = 0 === e ? 0 : e || 10; var n = d(t).toHsl(); - return (n.l -= e / 100), (n.l = j(n.l)), d(n); + return (n.l -= e / 100), (n.l = D(n.l)), d(n); } function S(t, e) { var n = d(t).toHsl(), @@ -59126,27 +59126,27 @@ object-assign }, toPercentageRgb: function() { return { - r: u(100 * D(this._r, 255)) + '%', - g: u(100 * D(this._g, 255)) + '%', - b: u(100 * D(this._b, 255)) + '%', + r: u(100 * j(this._r, 255)) + '%', + g: u(100 * j(this._g, 255)) + '%', + b: u(100 * j(this._b, 255)) + '%', a: this._a }; }, toPercentageRgbString: function() { return 1 == this._a ? 'rgb(' + - u(100 * D(this._r, 255)) + + u(100 * j(this._r, 255)) + '%, ' + - u(100 * D(this._g, 255)) + + u(100 * j(this._g, 255)) + '%, ' + - u(100 * D(this._b, 255)) + + u(100 * j(this._b, 255)) + '%)' : 'rgba(' + - u(100 * D(this._r, 255)) + + u(100 * j(this._r, 255)) + '%, ' + - u(100 * D(this._g, 255)) + + u(100 * j(this._g, 255)) + '%, ' + - u(100 * D(this._b, 255)) + + u(100 * j(this._b, 255)) + '%, ' + this._roundA + ')'; @@ -59513,7 +59513,7 @@ object-assign t ); } - function D(t, e) { + function j(t, e) { (function(t) { return ( 'string' == typeof t && @@ -59530,7 +59530,7 @@ object-assign i.abs(t - e) < 1e-6 ? 1 : (t % e) / parseFloat(e) ); } - function j(t) { + function D(t) { return l(1, c(0, t)); } function R(t) { @@ -60070,7 +60070,7 @@ object-assign return t; }).apply(this, arguments); } - var D = i.a.createElement( + var j = i.a.createElement( 'defs', null, i.a.createElement('path', { @@ -60079,7 +60079,7 @@ object-assign 'M24.184 24c.727 0 1.316.448 1.316 1s-.59 1-1.316 1H1.816C1.089 26 .5 25.552.5 25s.59-1 1.316-1h22.368zM13 4c.552 0 1 .61 1 1.364v11.325l3.306.001a.5.5 0 01.41.788l-.056.066-4.308 4.307a.5.5 0 01-.638.058l-.069-.058-4.308-4.307a.5.5 0 01.268-.847l.086-.007L12 16.689V5.364C12 4.61 12.448 4 13 4z' }) ), - j = i.a.createElement( + D = i.a.createElement( 'g', { fill: 'none', fillRule: 'evenodd' }, i.a.createElement( @@ -61349,8 +61349,8 @@ object-assign return i.a.createElement( 'svg', L({ viewBox: '0 0 26 30' }, t), - D, - j + j, + D ); }, { width: '0.85em' } @@ -62223,15 +62223,15 @@ object-assign ) ); }, - Dt = Object(_.CustomPicker)(Lt); + jt = Object(_.CustomPicker)(Lt); (Lt.defaultProps = { title: '', onChange: function() {} }), (Lt.propTypes = { title: a.a.string, initialColor: a.a.string, onChange: a.a.func.isRequired }); - var jt = n(91), - Rt = n.n(jt), + var Dt = n(91), + Rt = n.n(Dt), zt = function(t) { var e, n = t.family, @@ -64090,7 +64090,7 @@ object-assign return i.a.createElement( 'div', { className: s }, - i.a.createElement(Dt, { + i.a.createElement(jt, { key: e, title: t, initialColor: n.state[''.concat(e, '_color')], @@ -64460,7 +64460,7 @@ object-assign { className: 'accordion__item__row three-elements' }, - i.a.createElement(Dt, { + i.a.createElement(jt, { title: 'Title format', initialColor: this.state .axis_vertical_title_color, @@ -64660,7 +64660,7 @@ object-assign return i.a.createElement( 'div', { className: 'accordion__item__row two-elements' }, - i.a.createElement(Dt, { + i.a.createElement(jt, { title: 'Lines color', initialColor: this.state.grid_lines_color, defaultColor: Q.border, @@ -64701,7 +64701,7 @@ object-assign return i.a.createElement( 'div', { className: 'accordion__item__row two-elements' }, - i.a.createElement(Dt, { + i.a.createElement(jt, { title: 'Lines color', initialColor: this.state.subgrid_lines_color, defaultColor: Q.border, @@ -64992,7 +64992,7 @@ object-assign i.a.createElement( 'div', { className: 'accordion__item__row' }, - i.a.createElement(Dt, { + i.a.createElement(jt, { title: 'Chart border', initialColor: this.state.choropleth_border_color, defaultColor: Q.border, @@ -65263,7 +65263,7 @@ object-assign i.a.createElement( 'div', { className: 'accordion__item__row' }, - i.a.createElement(Dt, { + i.a.createElement(jt, { title: 'Chart background', initialColor: this.state .appearance_background, @@ -65279,7 +65279,7 @@ object-assign i.a.createElement( 'div', { className: 'accordion__item__row' }, - i.a.createElement(Dt, { + i.a.createElement(jt, { title: 'Chart border', initialColor: this.state.appearance_border, defaultColor: Q.border, @@ -65596,7 +65596,7 @@ object-assign i.a.createElement( 'div', { className: 'accordion__item__row' }, - i.a.createElement(Dt, { + i.a.createElement(jt, { key: 'tooltip_background', title: 'Tooltip background', initialColor: this.state.tooltip_background, @@ -65612,7 +65612,7 @@ object-assign i.a.createElement( 'div', { className: 'accordion__item__row' }, - i.a.createElement(Dt, { + i.a.createElement(jt, { key: 'tooltip_border', title: 'Tooltip border', initialColor: this.state.tooltip_border, @@ -65751,7 +65751,7 @@ object-assign i.a.createElement( 'div', { className: 'accordion__item__row' }, - i.a.createElement(Dt, { + i.a.createElement(jt, { title: 'Alternate row background', initialColor: this.state .table_body_row_alternate_color, @@ -66650,7 +66650,7 @@ object-assign r = t.substring(0, 3 !== e ? n : 10); return ( (n = t.substring(n + 1, t.length - 1)), - D(2 !== e ? r : r.replace(S, '$1'), n, e) + j(2 !== e ? r : r.replace(S, '$1'), n, e) ); } function o(t, e) { @@ -66675,11 +66675,11 @@ object-assign function s(t) { return ( void 0 !== (t = t.prefix) && - ((D = null), + ((j = null), t ? 'function' != typeof t ? (O = 1) - : ((O = 2), (D = t)) + : ((O = 2), (j = t)) : (O = 0)), s ); @@ -66702,7 +66702,7 @@ object-assign E = 0, k = 0, M = 0, - D = 0, + j = 0, R = (g = h = 0), z = 0, N = 0, @@ -66908,7 +66908,7 @@ object-assign 107 !== f && 0 < G.length && ((N = 1), (G += '\0')), - 0 < L * j && a(0, G, s, n, T, A, H.length, f, d, f), + 0 < L * D && a(0, G, s, n, T, A, H.length, f, d, f), (A = 1), T++; break; @@ -66954,7 +66954,7 @@ object-assign 58 === u.charCodeAt(z - 3) && (C = M); case 8: - 111 === D && (C = D); + 111 === j && (C = j); } break; case 58: @@ -66979,7 +66979,7 @@ object-assign case 40: if (0 === k + S + w) { if (0 === h) - switch (2 * M + 3 * D) { + switch (2 * M + 3 * j) { case 533: break; default: @@ -67016,7 +67016,7 @@ object-assign } 0 === S && (G += b); } - (D = M), (M = p), z++; + (j = M), (M = p), z++; } if (0 < (F = H.length)) { if ( @@ -67077,8 +67077,8 @@ object-assign P = [], M = [], L = 0, - D = null, - j = 0; + j = null, + D = 0; return ( (u.use = function t(e) { switch (e) { @@ -67095,7 +67095,7 @@ object-assign M[L++] = e; break; case Boolean: - j = 0 | !!e; + D = 0 | !!e; } } return t; @@ -67484,10 +67484,10 @@ object-assign return 'object' == typeof t && null !== t && t.$$typeof === o; } var L = /\/+/g, - D = []; - function j(t, e, n, r) { - if (D.length) { - var i = D.pop(); + j = []; + function D(t, e, n, r) { + if (j.length) { + var i = j.pop(); return ( (i.result = t), (i.keyPrefix = e), @@ -67505,7 +67505,7 @@ object-assign (t.func = null), (t.context = null), (t.count = 0), - 10 > D.length && D.push(t); + 10 > j.length && j.push(t); } function z(t, e, n) { return null == t @@ -67605,7 +67605,7 @@ object-assign function V(t, e, n, r, i) { var o = ''; null != n && (o = ('' + n).replace(L, '$&/') + '/'), - z(t, F, (e = j(e, o, r, i))), + z(t, F, (e = D(e, o, r, i))), R(e); } function B() { @@ -67622,7 +67622,7 @@ object-assign }, forEach: function(t, e, n) { if (null == t) return t; - z(t, I, (e = j(null, null, e, n))), R(e); + z(t, I, (e = D(null, null, e, n))), R(e); }, count: function(t) { return z( @@ -67963,21 +67963,21 @@ object-assign if (n && 'function' != typeof n) throw a(Error(231), e, typeof n); return n; } - var D = Math.random() + var j = Math.random() .toString(36) .slice(2), - j = '__reactInternalInstance$' + D, - R = '__reactEventHandlers$' + D; + D = '__reactInternalInstance$' + j, + R = '__reactEventHandlers$' + j; function z(t) { - if (t[j]) return t[j]; - for (; !t[j]; ) { + if (t[D]) return t[D]; + for (; !t[D]; ) { if (!t.parentNode) return null; t = t.parentNode; } - return 5 === (t = t[j]).tag || 6 === t.tag ? t : null; + return 5 === (t = t[D]).tag || 6 === t.tag ? t : null; } function N(t) { - return !(t = t[j]) || (5 !== t.tag && 6 !== t.tag) ? null : t; + return !(t = t[D]) || (5 !== t.tag && 6 !== t.tag) ? null : t; } function I(t) { if (5 === t.tag || 6 === t.tag) return t.stateNode; @@ -68350,14 +68350,14 @@ object-assign for (t = 0; t < e.length; t++) Pt(e[t]); } } - function Dt(t, e) { + function jt(t, e) { return t(e); } - function jt(t, e, n, r) { + function Dt(t, e, n, r) { return t(e, n, r); } function Rt() {} - var zt = Dt, + var zt = jt, Nt = !1; function It() { (null === Ct && null === Ot) || (Rt(), Lt()); @@ -68829,10 +68829,10 @@ object-assign function Le(t) { P(t); } - function De(t) { + function je(t) { if (qt(I(t))) return t; } - function je(t, e) { + function De(t, e) { if ('change' === t) return e; } var Re = !1; @@ -68840,12 +68840,12 @@ object-assign Pe && (Pe.detachEvent('onpropertychange', Ne), (Me = Pe = null)); } function Ne(t) { - if ('value' === t.propertyName && De(Me)) + if ('value' === t.propertyName && je(Me)) if (((t = Oe(Me, t, Bt(t))), Nt)) P(t); else { Nt = !0; try { - Dt(Le, t); + jt(Le, t); } finally { (Nt = !1), It(); } @@ -68858,13 +68858,13 @@ object-assign } function Fe(t) { if ('selectionchange' === t || 'keyup' === t || 'keydown' === t) - return De(Me); + return je(Me); } function Ve(t, e) { - if ('click' === t) return De(e); + if ('click' === t) return je(e); } function Be(t, e) { - if ('input' === t || 'change' === t) return De(e); + if ('input' === t || 'change' === t) return je(e); } W && (Re = @@ -68879,7 +68879,7 @@ object-assign s = i.nodeName && i.nodeName.toLowerCase(); if ( ('select' === s || ('input' === s && 'file' === i.type) - ? (o = je) + ? (o = De) : Vt(i) ? Re ? (o = Be) @@ -69500,7 +69500,7 @@ object-assign }, Mn = Pn.getEventPriority, Ln = []; - function Dn(t) { + function jn(t) { var e = t.targetInst, n = e; do { @@ -69524,7 +69524,7 @@ object-assign P(a); } } - var jn = !0; + var Dn = !0; function Rn(t, e) { zn(e, t, !1); } @@ -69547,7 +69547,7 @@ object-assign i = Nt; Nt = !0; try { - jt(r, t, e, n); + Dt(r, t, e, n); } finally { (Nt = i) || It(); } @@ -69556,7 +69556,7 @@ object-assign Fn(t, e, n); } function Fn(t, e, n) { - if (jn) { + if (Dn) { if ( (null === (e = z((e = Bt(n)))) || 'number' != typeof e.tag || @@ -69577,11 +69577,11 @@ object-assign ancestors: [] }; try { - if (((n = t), Nt)) Dn(n); + if (((n = t), Nt)) jn(n); else { Nt = !0; try { - zt(Dn, n, void 0); + zt(jn, n, void 0); } finally { (Nt = !1), It(); } @@ -70093,13 +70093,13 @@ object-assign function Lr(t, e) { (Or[++Pr] = t.current), (t.current = e); } - var Dr = {}, - jr = { current: Dr }, + var jr = {}, + Dr = { current: jr }, Rr = { current: !1 }, - zr = Dr; + zr = jr; function Nr(t, e) { var n = t.type.contextTypes; - if (!n) return Dr; + if (!n) return jr; var r = t.stateNode; if (r && r.__reactInternalMemoizedUnmaskedChildContext === e) return r.__reactInternalMemoizedMaskedChildContext; @@ -70118,14 +70118,14 @@ object-assign return null != (t = t.childContextTypes); } function Fr(t) { - Mr(Rr), Mr(jr); + Mr(Rr), Mr(Dr); } function Vr(t) { - Mr(Rr), Mr(jr); + Mr(Rr), Mr(Dr); } function Br(t, e, n) { - if (jr.current !== Dr) throw a(Error(168)); - Lr(jr, e), Lr(Rr, n); + if (Dr.current !== jr) throw a(Error(168)); + Lr(Dr, e), Lr(Rr, n); } function Gr(t, e, n) { var r = t.stateNode; @@ -70138,9 +70138,9 @@ object-assign function Hr(t) { var e = t.stateNode; return ( - (e = (e && e.__reactInternalMemoizedMergedChildContext) || Dr), - (zr = jr.current), - Lr(jr, e), + (e = (e && e.__reactInternalMemoizedMergedChildContext) || jr), + (zr = Dr.current), + Lr(Dr, e), Lr(Rr, Rr.current), !0 ); @@ -70152,8 +70152,8 @@ object-assign ? ((e = Gr(t, e, zr)), (r.__reactInternalMemoizedMergedChildContext = e), Mr(Rr), - Mr(jr), - Lr(jr, e)) + Mr(Dr), + Lr(Dr, e)) : Mr(Rr), Lr(Rr, n); } @@ -70359,12 +70359,12 @@ object-assign nextEffect: null }; } - function Di(t, e) { + function ji(t, e) { null === t.lastUpdate ? (t.firstUpdate = t.lastUpdate = e) : ((t.lastUpdate.next = e), (t.lastUpdate = e)); } - function ji(t, e) { + function Di(t, e) { var n = t.alternate; if (null === n) { var r = t.updateQueue, @@ -70380,10 +70380,10 @@ object-assign : (r = t.updateQueue = Mi(i)) : null === i && (i = n.updateQueue = Mi(r)); null === i || r === i - ? Di(r, e) + ? ji(r, e) : null === r.lastUpdate || null === i.lastUpdate - ? (Di(r, e), Di(i, e)) - : (Di(r, e), (i.lastUpdate = e)); + ? (ji(r, e), ji(i, e)) + : (ji(r, e), (i.lastUpdate = e)); } function Ri(t, e) { var n = t.updateQueue; @@ -70506,7 +70506,7 @@ object-assign i = Bi.suspense; ((i = Li((r = Ps(r, t, i)), i)).payload = e), null != n && (i.callback = n), - ji(t, i), + Di(t, i), Ls(t, r); }, enqueueReplaceState: function(t, e, n) { @@ -70516,7 +70516,7 @@ object-assign ((i = Li((r = Ps(r, t, i)), i)).tag = 1), (i.payload = e), null != n && (i.callback = n), - ji(t, i), + Di(t, i), Ls(t, r); }, enqueueForceUpdate: function(t, e) { @@ -70525,7 +70525,7 @@ object-assign r = Bi.suspense; ((r = Li((n = Ps(n, t, r)), r)).tag = 2), null != e && (r.callback = e), - ji(t, r), + Di(t, r), Ls(t, n); } }; @@ -70538,13 +70538,13 @@ object-assign } function Wi(t, e, n) { var r = !1, - i = Dr, + i = jr, o = e.contextType; return ( 'object' == typeof o && null !== o ? (o = Ci(o)) - : ((i = Ir(e) ? zr : jr.current), - (o = (r = null != (r = e.contextTypes)) ? Nr(t, i) : Dr)), + : ((i = Ir(e) ? zr : Dr.current), + (o = (r = null != (r = e.contextTypes)) ? Nr(t, i) : jr)), (e = new e(n, o)), (t.memoizedState = null !== e.state && void 0 !== e.state ? e.state : null), @@ -70572,7 +70572,7 @@ object-assign var o = e.contextType; 'object' == typeof o && null !== o ? (i.context = Ci(o)) - : ((o = Ir(e) ? zr : jr.current), (i.context = Nr(t, o))), + : ((o = Ir(e) ? zr : Dr.current), (i.context = Nr(t, o))), null !== (o = t.updateQueue) && (Ii(t, o, n, i, r), (i.state = t.memoizedState)), 'function' == typeof (o = e.getDerivedStateFromProps) && @@ -71032,8 +71032,8 @@ object-assign Po = null, Mo = null, Lo = 0, - Do = null, - jo = 0, + jo = null, + Do = 0, Ro = !1, zo = null, No = 0; @@ -71060,7 +71060,7 @@ object-assign (No += 1), (Co = null !== t ? t.memoizedState : null), (Mo = Oo), - (Do = Po = To = null), + (jo = Po = To = null), (Eo.current = ta), (e = n(r, i)); } while (Ro); @@ -71070,14 +71070,14 @@ object-assign ((Eo.current = Zo), ((t = Ao).memoizedState = Oo), (t.expirationTime = Lo), - (t.updateQueue = Do), - (t.effectTag |= jo), + (t.updateQueue = jo), + (t.effectTag |= Do), (t = null !== To && null !== To.next), (ko = 0), (Mo = Po = Oo = Co = To = Ao = null), (Lo = 0), - (Do = null), - (jo = 0), + (jo = null), + (Do = 0), t) ) throw a(Error(300)); @@ -71088,8 +71088,8 @@ object-assign (ko = 0), (Mo = Po = Oo = Co = To = Ao = null), (Lo = 0), - (Do = null), - (jo = 0), + (jo = null), + (Do = 0), (Ro = !1), (zo = null), (No = 0); @@ -71181,17 +71181,17 @@ object-assign function Wo(t, e, n, r) { return ( (t = { tag: t, create: e, destroy: n, deps: r, next: null }), - null === Do - ? ((Do = { lastEffect: null }).lastEffect = t.next = t) - : null === (e = Do.lastEffect) - ? (Do.lastEffect = t.next = t) - : ((n = e.next), (e.next = t), (t.next = n), (Do.lastEffect = t)), + null === jo + ? ((jo = { lastEffect: null }).lastEffect = t.next = t) + : null === (e = jo.lastEffect) + ? (jo.lastEffect = t.next = t) + : ((n = e.next), (e.next = t), (t.next = n), (jo.lastEffect = t)), t ); } function Xo(t, e, n, r) { var i = Go(); - (jo |= t), + (Do |= t), (i.memoizedState = Wo(e, n, void 0, void 0 === r ? null : r)); } function Yo(t, e, n, r) { @@ -71203,7 +71203,7 @@ object-assign if (((o = a.destroy), null !== r && Fo(r, a.deps))) return void Wo(mo, n, o, r); } - (jo |= t), (i.memoizedState = Wo(e, n, o, r)); + (Do |= t), (i.memoizedState = Wo(e, n, o, r)); } function $o(t, e) { return 'function' == typeof e @@ -71522,7 +71522,7 @@ object-assign (e.effectTag |= 128); } function va(t, e, n, r, i) { - var o = Ir(n) ? zr : jr.current; + var o = Ir(n) ? zr : Dr.current; return ( (o = Nr(e, o)), Ti(e, i), @@ -71554,7 +71554,7 @@ object-assign l = n.contextType; 'object' == typeof l && null !== l ? (l = Ci(l)) - : (l = Nr(e, (l = Ir(n) ? zr : jr.current))); + : (l = Nr(e, (l = Ir(n) ? zr : Dr.current))); var c = n.getDerivedStateFromProps, f = 'function' == typeof c || @@ -71598,7 +71598,7 @@ object-assign (u = a.context), 'object' == typeof (l = n.contextType) && null !== l ? (l = Ci(l)) - : (l = Nr(e, (l = Ir(n) ? zr : jr.current))), + : (l = Nr(e, (l = Ir(n) ? zr : Dr.current))), (f = 'function' == typeof (c = n.getDerivedStateFromProps) || 'function' == typeof a.getSnapshotBeforeUpdate) || @@ -71909,7 +71909,7 @@ object-assign return null; } } - function Da(t, e) { + function ja(t, e) { return { value: t, source: e, stack: fe(e) }; } (Ta = function(t, e) { @@ -72010,7 +72010,7 @@ object-assign (Pa = function(t, e, n, r) { n !== r && Aa(e); }); - var ja = 'function' == typeof WeakSet ? WeakSet : Set; + var Da = 'function' == typeof WeakSet ? WeakSet : Set; function Ra(t, e) { var n = e.source, r = e.stack; @@ -72368,7 +72368,7 @@ object-assign if (null !== e) { t.updateQueue = null; var n = t.stateNode; - null === n && (n = t.stateNode = new ja()), + null === n && (n = t.stateNode = new Da()), e.forEach(function(e) { var r = Zs.bind(null, t, e); n.has(e) || (n.add(e), e.then(r, r)); @@ -72486,14 +72486,14 @@ object-assign var Ms = 0; function Ls(t, e) { if (50 < As) throw ((As = 0), (Ts = null), a(Error(185))); - if (null !== (t = Ds(t, e))) { + if (null !== (t = js(t, e))) { t.pingTime = 0; var n = ci(); if (1073741823 === e) if ((as & Za) !== Qa && (as & (Ja | ts)) === Qa) for (var r = Bs(t, 1073741823, !0); null !== r; ) r = r(!0); - else js(t, 99, 1073741823), as === Qa && gi(); - else js(t, n, e); + else Ds(t, 99, 1073741823), as === Qa && gi(); + else Ds(t, n, e); (4 & as) === Qa || (98 !== n && 99 !== n) || (null === ks @@ -72501,7 +72501,7 @@ object-assign : (void 0 === (n = ks.get(t)) || n > e) && ks.set(t, e)); } } - function Ds(t, e) { + function js(t, e) { t.expirationTime < e && (t.expirationTime = e); var n = t.alternate; null !== n && n.expirationTime < e && (n.expirationTime = e); @@ -72531,7 +72531,7 @@ object-assign i ); } - function js(t, e, n) { + function Ds(t, e, n) { if (t.callbackExpirationTime < n) { var r = t.callbackNode; null !== r && r !== ri && Xr(r), @@ -72704,7 +72704,7 @@ object-assign (null === l.alternate ? (l.tag = 17) : (((f = Li(1073741823, null)).tag = 2), - ji(l, f))), + Di(l, f))), (l.expirationTime = 1073741823); break t; } @@ -72732,7 +72732,7 @@ object-assign fe(l) ); } - cs !== os && (cs = ns), (c = Da(c, l)), (l = u); + cs !== os && (cs = ns), (c = ja(c, l)), (l = u); do { switch (l.tag) { case 3: @@ -72902,7 +72902,7 @@ object-assign (o = void 0), (s = (n = e).stateNode); var l = n.type, c = n.memoizedProps; - switch (((s[j] = n), (s[R] = c), l)) { + switch (((s[D] = n), (s[R] = c), l)) { case 'iframe': case 'object': case 'embed': @@ -72981,7 +72981,7 @@ object-assign ? (c.multiple = !0) : n.size && (c.size = n.size))) : (f = f.createElementNS(u, c)), - ((c = f)[j] = l), + ((c = f)[D] = l), (c[R] = n), Ta((n = c), e, !1, !1), (l = n); @@ -73094,13 +73094,13 @@ object-assign ua(e) ? ((r = e.stateNode), (n = e.memoizedProps), - (r[j] = e), + (r[D] = e), r.nodeValue !== n && Aa(e)) : ((r = e), ((n = (9 === n.nodeType ? n : n.ownerDocument - ).createTextNode(o))[j] = e), + ).createTextNode(o))[D] = e), (r.stateNode = n)); } break; @@ -73327,7 +73327,7 @@ object-assign : (i = n.firstEffect), null !== i) ) { - (o = as), (as |= ts), (Ka.current = null), (wr = jn); + (o = as), (as |= ts), (Ka.current = null), (wr = Dn); var s = qn(); if (Wn(s)) { if ('selectionStart' in s) @@ -73382,7 +73382,7 @@ object-assign } u = u || { start: 0, end: 0 }; } else u = null; - (Sr = { focusedElem: s, selectionRange: u }), (jn = !1), (vs = i); + (Sr = { focusedElem: s, selectionRange: u }), (Dn = !1), (vs = i); do { try { for (; null !== vs; ) { @@ -73531,7 +73531,7 @@ object-assign ((T = A[k]).element.scrollLeft = T.left), (T.element.scrollTop = T.top); } - (Sr = null), (jn = !!wr), (wr = null), (t.current = n), (vs = i); + (Sr = null), (Dn = !!wr), (wr = null), (t.current = n), (vs = i); do { try { for (k = r; null !== vs; ) { @@ -73559,12 +73559,12 @@ object-assign M.__reactInternalSnapshotBeforeUpdate ); } - var D = A.updateQueue; - null !== D && Fi(0, D, M); + var j = A.updateQueue; + null !== j && Fi(0, j, M); break; case 3: - var j = A.updateQueue; - if (null !== j) { + var D = A.updateQueue; + if (null !== D) { if (((C = null), null !== A.child)) switch (A.child.tag) { case 5: @@ -73573,7 +73573,7 @@ object-assign case 1: C = A.child.stateNode; } - Fi(0, j, C); + Fi(0, D, C); } break; case 5: @@ -73624,7 +73624,7 @@ object-assign (e = vs.nextEffect), (vs.nextEffect = null), (vs = e); if ( (0 !== (e = t.firstPendingTime) - ? js(t, (O = vi((O = Os()), e)), e) + ? Ds(t, (O = vi((O = Os()), e)), e) : (_s = null), 'function' == typeof tu && tu(n.stateNode, r), 1073741823 === e @@ -73671,8 +73671,8 @@ object-assign return (as = e), gi(), !0; } function $s(t, e, n) { - ji(t, (e = Wa(t, (e = Da(n, e)), 1073741823))), - null !== (t = Ds(t, 1073741823)) && js(t, 99, 1073741823); + Di(t, (e = Wa(t, (e = ja(n, e)), 1073741823))), + null !== (t = js(t, 1073741823)) && Ds(t, 99, 1073741823); } function Ks(t, e) { if (3 === t.tag) $s(t, t, e); @@ -73689,8 +73689,8 @@ object-assign ('function' == typeof r.componentDidCatch && (null === _s || !_s.has(r))) ) { - ji(n, (t = Xa(n, (t = Da(e, t)), 1073741823))), - null !== (n = Ds(n, 1073741823)) && js(n, 99, 1073741823); + Di(n, (t = Xa(n, (t = ja(e, t)), 1073741823))), + null !== (n = js(n, 1073741823)) && Ds(n, 99, 1073741823); break; } } @@ -73709,13 +73709,13 @@ object-assign ((t.pingTime = n), t.finishedExpirationTime === n && ((t.finishedExpirationTime = 0), (t.finishedWork = null)), - js(t, (e = vi((e = Os()), n)), n))); + Ds(t, (e = vi((e = Os()), n)), n))); } function Zs(t, e) { var n = t.stateNode; null !== n && n.delete(e), (n = vi((n = Os()), (e = Ps(n, t, null)))), - null !== (t = Ds(t, e)) && js(t, n, e); + null !== (t = js(t, e)) && Ds(t, n, e); } var Js = void 0; Js = function(t, e, n) { @@ -73776,7 +73776,7 @@ object-assign (e.alternate = null), (e.effectTag |= 2)), (t = e.pendingProps), - (i = Nr(e, jr.current)), + (i = Nr(e, Dr.current)), Ti(e, n), (i = Vo(null, e, r, t, i, n)), (e.effectTag |= 1), @@ -73966,7 +73966,7 @@ object-assign for (var c = l.firstContext; null !== c; ) { if (c.context === r && 0 != (c.observedBits & o)) { 1 === u.tag && - (((c = Li(n, null)).tag = 2), ji(u, c)), + (((c = Li(n, null)).tag = 2), Di(u, c)), u.expirationTime < n && (u.expirationTime = n), null !== (c = u.alternate) && c.expirationTime < n && @@ -74228,13 +74228,13 @@ object-assign } } n = u; - } else n = Dr; + } else n = jr; return ( null === e.context ? (e.context = n) : (e.pendingContext = n), (e = o), ((i = Li(r, i)).payload = { element: t }), null !== (e = void 0 === e ? null : e) && (i.callback = e), - ji(s, i), + Di(s, i), Ls(s, r), r ); @@ -74474,8 +74474,8 @@ object-assign } return t; }), - (Dt = Ns), - (jt = Is), + (jt = Ns), + (Dt = Is), (Rt = zs), (zt = function(t, e) { var n = as; @@ -74789,8 +74789,8 @@ object-assign var P = null, M = null, L = null, - D = 3, - j = !1, + j = 3, + D = !1, R = !1, z = !1; function N(t, e) { @@ -74801,12 +74801,12 @@ object-assign var r = t.previous; (r.next = n), (n.previous = r); } - (t.next = t.previous = null), (n = t.callback), (r = D); + (t.next = t.previous = null), (n = t.callback), (r = j); var i = L; - (D = t.priorityLevel), (L = t); + (j = t.priorityLevel), (L = t); try { var o = t.expirationTime <= e; - switch (D) { + switch (j) { case 1: var a = n(o); break; @@ -74821,7 +74821,7 @@ object-assign } catch (t) { throw t; } finally { - (D = r), (L = i); + (j = r), (L = i); } if ('function' == typeof a) if (((e = t.expirationTime), (t.callback = a), null === P)) @@ -74864,7 +74864,7 @@ object-assign : null !== M && i(F, M.startTime - t)); } function V(t, n) { - (R = !1), z && ((z = !1), o()), I(n), (j = !0); + (R = !1), z && ((z = !1), o()), I(n), (D = !0); try { if (t) { if (null !== P) @@ -74876,7 +74876,7 @@ object-assign N(P, n), I((n = e.unstable_now())); return null !== P || (null !== M && i(F, M.startTime - n), !1); } finally { - j = !1; + D = !1; } } function B(t) { @@ -74928,30 +74928,30 @@ object-assign default: t = 3; } - var n = D; - D = t; + var n = j; + j = t; try { return e(); } finally { - D = n; + j = n; } }), (e.unstable_next = function(t) { - switch (D) { + switch (j) { case 1: case 2: case 3: var e = 3; break; default: - e = D; + e = j; } - var n = D; - D = e; + var n = j; + j = e; try { return t(); } finally { - D = n; + j = n; } }), (e.unstable_scheduleCallback = function(t, n, a) { @@ -74989,7 +74989,7 @@ object-assign (t.previous = a); } null === P && M === t && (z ? o() : (z = !0), i(F, u - s)); - } else G(t, a), R || j || ((R = !0), r(V)); + } else G(t, a), R || D || ((R = !0), r(V)); return t; }), (e.unstable_cancelCallback = function(t) { @@ -75005,19 +75005,19 @@ object-assign } }), (e.unstable_wrapCallback = function(t) { - var e = D; + var e = j; return function() { - var n = D; - D = e; + var n = j; + j = e; try { return t.apply(this, arguments); } finally { - D = n; + j = n; } }; }), (e.unstable_getCurrentPriorityLevel = function() { - return D; + return j; }), (e.unstable_shouldYield = function() { var t = e.unstable_now(); @@ -75032,7 +75032,7 @@ object-assign }), (e.unstable_requestPaint = H), (e.unstable_continueExecution = function() { - R || j || ((R = !0), r(V)); + R || D || ((R = !0), r(V)); }), (e.unstable_pauseExecution = function() {}), (e.unstable_getFirstCallbackNode = function() { @@ -75669,7 +75669,7 @@ object-assign })(t) > k ); }, - D = function(t) { + j = function(t) { return ( (function(t) { var e = x[t].b; @@ -75677,7 +75677,7 @@ object-assign })(t) > A ); }, - j = function(t) { + D = function(t) { return ( (function(t) { return P(t) < 0; @@ -75686,11 +75686,11 @@ object-assign (function(t) { return M(t) < 0; })(t) || - D(t) + j(t) ); }, R = function(t) { - return !j(t); + return !D(t); }, z = ['top', 'bottom', 'left', 'right'], N = [], @@ -75706,7 +75706,7 @@ object-assign return ( R(l) && l !== u ? ((V = !0), (B = l)) - : N.length > 0 && j(l) && j(u) && ((V = !0), (B = N[0])), + : N.length > 0 && D(l) && D(u) && ((V = !0), (B = N[0])), V ? { isNewState: !0, newState: { place: B } } : { @@ -80555,8 +80555,8 @@ object-assign P, M, L, - D, j, + D, R = this, z = R.main, N = R.d3, @@ -80635,8 +80635,8 @@ object-assign (b = R.generateXYForText(F, V, B, !0)), (_ = R.generateXYForText(F, V, B, !1)), R.updateCircleY(), - (D = (R.config.axis_rotated ? R.circleY : R.circleX).bind(R)), - (j = (R.config.axis_rotated ? R.circleX : R.circleY).bind(R)), + (j = (R.config.axis_rotated ? R.circleY : R.circleX).bind(R)), + (D = (R.config.axis_rotated ? R.circleX : R.circleY).bind(R)), n && (R.subY.domain(R.getYDomain(H, 'y')), R.subY2.domain(R.getYDomain(H, 'y2'))), @@ -80655,7 +80655,7 @@ object-assign R.updateBar(S), R.updateLine(S), R.updateArea(S), - R.updateCircle(D, j), + R.updateCircle(j, D), R.hasDataLabel() && R.updateText(b, _, S), R.redrawTitle && R.redrawTitle(), R.redrawArc && R.redrawArc(x, S, s), @@ -80674,8 +80674,8 @@ object-assign drawBar: v, drawLine: y, drawArea: m, - cx: D, - cy: j, + cx: j, + cy: D, xv: U, xForText: b, yForText: _ @@ -80687,7 +80687,7 @@ object-assign R.redrawBar(v, !0, C), R.redrawLine(y, !0, C), R.redrawArea(m, !0, C), - R.redrawCircle(D, j, !0, C), + R.redrawCircle(j, D, !0, C), R.redrawText(b, _, t.flow, !0, C), R.redrawRegion(!0, C), R.redrawGrid(!0, C) @@ -80706,7 +80706,7 @@ object-assign : (R.redrawBar(v), R.redrawLine(y), R.redrawArea(m), - R.redrawCircle(D, j), + R.redrawCircle(j, D), R.redrawText(b, _, t.flow), R.redrawRegion(), R.redrawGrid(), @@ -83568,8 +83568,8 @@ object-assign P = e.getValueOnIndex(e.data.targets[0].values, C), M = e.getValueOnIndex(e.data.targets[0].values, C + O), L = e.x.domain(), - D = v.duration || T, - j = v.done || function() {}, + j = v.duration || T, + D = v.done || function() {}, R = e.generateWait(); (e.flowing = !0), e.data.targets.forEach(function(t) { @@ -83607,7 +83607,7 @@ object-assign var z = r .transition() .ease(r.easeLinear) - .duration(D); + .duration(j); R.add(e.xAxis(e.axes.x, z)), R.add(d.transition(z).attr('transform', o)), R.add(h.transition(z).attr('transform', o)), @@ -83673,7 +83673,7 @@ object-assign .filter(e.isRegionOnX) .attr('x', e.regionX.bind(e)) .attr('width', e.regionWidth.bind(e)), - j(), + D(), (e.flowing = !1); }); }; @@ -87233,8 +87233,8 @@ object-assign P = 0, M = {}, L = {}, - D = {}, - j = [0], + j = {}, + D = [0], R = {}, z = 0; function N(e, n, r) { @@ -87269,14 +87269,14 @@ object-assign ((i = (d - P - f) / 2) < C && ((i = (d - f) / 2), (P = 0), z++)), (R[t] = z), - (j[z] = x.isLegendInset ? 10 : i), + (D[z] = x.isLegendInset ? 10 : i), (M[t] = P), (P += f); } a && ((P = 0), (z = 0), (A = 0), (T = 0)), !S.legend_show || x.isLegendToShow(n) ? ((L[n] = l), - (D[n] = c), + (j[n] = c), (!A || l >= A) && (A = l), (!T || c >= T) && (T = c), (o = x.isLegendRight || x.isLegendInset ? T : A), @@ -87284,8 +87284,8 @@ object-assign ? (Object.keys(L).forEach(function(t) { L[t] = A; }), - Object.keys(D).forEach(function(t) { - D[t] = T; + Object.keys(j).forEach(function(t) { + j[t] = T; }), (i = (d - o * t.length) / 2) < C ? ((P = 0), @@ -87295,7 +87295,7 @@ object-assign })) : h(n, !0)) : h(n)) - : (L[n] = D[n] = R[n] = M[n] = 0); + : (L[n] = j[n] = R[n] = M[n] = 0); } (t = t.filter(function(t) { return !d(S.data_names[t]) || null !== S.data_names[t]; @@ -87310,17 +87310,17 @@ object-assign return A * R[t]; }), (a = function(t) { - return j[R[t]] + M[t]; + return D[R[t]] + M[t]; })) : x.isLegendInset ? ((r = function(t) { return A * R[t] + 10; }), (a = function(t) { - return j[R[t]] + M[t]; + return D[R[t]] + M[t]; })) : ((r = function(t) { - return j[R[t]] + M[t]; + return D[R[t]] + M[t]; }), (a = function(t) { return T * R[t]; @@ -87428,7 +87428,7 @@ object-assign return L[t]; }) .attr('height', function(t) { - return D[t]; + return j[t]; }) .attr('x', o) .attr('y', l), @@ -90454,12 +90454,12 @@ object-assign ) ); }, - D = function(t, e, n) { + j = function(t, e, n) { return Math.ceil( (n - e) / (3.5 * g(t) * Math.pow(t.length, -1 / 3)) ); }, - j = function(t, e) { + D = function(t, e) { var n, r, i = t.length, @@ -90963,12 +90963,12 @@ object-assign function Lt(t, e) { return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; } - function Dt(t) { + function jt(t) { return function() { this.removeAttribute(t); }; } - function jt(t) { + function Dt(t) { return function() { this.removeAttributeNS(t.space, t.local); }; @@ -91514,8 +91514,8 @@ object-assign return this.each( (null == e ? n.local - ? jt - : Dt + ? Dt + : jt : 'function' == typeof e ? n.local ? It @@ -91669,11 +91669,11 @@ object-assign return this._; } }; - var De = function() { + var je = function() { for (var t, e = pe; (t = e.sourceEvent); ) e = t; return e; }, - je = function(t, e) { + De = function(t, e) { var n = t.ownerSVGElement || t; if (n.createSVGPoint) { var r = n.createSVGPoint(); @@ -91693,9 +91693,9 @@ object-assign ]; }, Re = function(t) { - var e = De(); + var e = je(); return ( - e.changedTouches && (e = e.changedTouches[0]), je(t, e) + e.changedTouches && (e = e.changedTouches[0]), De(t, e) ); }, ze = function(t) { @@ -91707,19 +91707,19 @@ object-assign : new ke([null == t ? [] : t], Ee); }, Ne = function(t, e, n) { - arguments.length < 3 && ((n = e), (e = De().changedTouches)); + arguments.length < 3 && ((n = e), (e = je().changedTouches)); for (var r, i = 0, o = e ? e.length : 0; i < o; ++i) - if ((r = e[i]).identifier === n) return je(t, r); + if ((r = e[i]).identifier === n) return De(t, r); return null; }, Ie = function(t, e) { - null == e && (e = De().touches); + null == e && (e = je().touches); for ( var n = 0, r = e ? e.length : 0, i = new Array(r); n < r; ++n ) - i[n] = je(t, e[n]); + i[n] = De(t, e[n]); return i; }; function Fe() { @@ -92461,9 +92461,9 @@ object-assign ) : Pn(isNaN(t) ? e : t); } - function Dn(t) { + function jn(t) { return 1 == (t = +t) - ? jn + ? Dn : function(e, n) { return n - e ? (function(t, e, n) { @@ -92479,17 +92479,17 @@ object-assign : Pn(isNaN(e) ? n : e); }; } - function jn(t, e) { + function Dn(t, e) { var n = e - t; return n ? Mn(t, n) : Pn(isNaN(t) ? e : t); } var Rn = (function t(e) { - var n = Dn(e); + var n = jn(e); function r(t, e) { var r = n((t = vn(t)).r, (e = vn(e)).r), i = n(t.g, e.g), o = n(t.b, e.b), - a = jn(t.opacity, e.opacity); + a = Dn(t.opacity, e.opacity); return function(e) { return ( (t.r = r(e)), @@ -92838,9 +92838,9 @@ object-assign function lr(t) { return function(e, n) { var r = t((e = En(e)).h, (n = En(n)).h), - i = jn(e.s, n.s), - o = jn(e.l, n.l), - a = jn(e.opacity, n.opacity); + i = Dn(e.s, n.s), + o = Dn(e.l, n.l), + a = Dn(e.opacity, n.opacity); return function(t) { return ( (e.h = r(t)), @@ -92853,7 +92853,7 @@ object-assign }; } var cr = lr(Ln), - fr = lr(jn), + fr = lr(Dn), dr = Math.PI / 180, hr = 180 / Math.PI, pr = 0.96422, @@ -92865,7 +92865,7 @@ object-assign _r = yr * yr * yr; function xr(t) { if (t instanceof Er) return new Er(t.l, t.a, t.b, t.opacity); - if (t instanceof Lr) return Dr(t); + if (t instanceof Lr) return jr(t); t instanceof yn || (t = mn(t)); var e, n, @@ -92951,7 +92951,7 @@ object-assign (this.l = +n), (this.opacity = +r); } - function Dr(t) { + function jr(t) { if (isNaN(t.h)) return new Er(t.l, 0, 0, t.opacity); var e = t.h * dr; return new Er( @@ -92961,11 +92961,11 @@ object-assign t.opacity ); } - function jr(t, e) { - var n = jn((t = Sr(t)).l, (e = Sr(e)).l), - r = jn(t.a, e.a), - i = jn(t.b, e.b), - o = jn(t.opacity, e.opacity); + function Dr(t, e) { + var n = Dn((t = Sr(t)).l, (e = Sr(e)).l), + r = Dn(t.a, e.a), + i = Dn(t.b, e.b), + o = Dn(t.opacity, e.opacity); return function(e) { return ( (t.l = n(e)), @@ -92979,9 +92979,9 @@ object-assign function Rr(t) { return function(e, n) { var r = t((e = Mr(e)).h, (n = Mr(n)).h), - i = jn(e.c, n.c), - o = jn(e.l, n.l), - a = jn(e.opacity, n.opacity); + i = Dn(e.c, n.c), + o = Dn(e.l, n.l), + a = Dn(e.opacity, n.opacity); return function(t) { return ( (e.h = r(t)), @@ -93051,12 +93051,12 @@ object-assign ); }, rgb: function() { - return Dr(this).rgb(); + return jr(this).rgb(); } }) ); var zr = Rr(Ln), - Nr = Rr(jn), + Nr = Rr(Dn), Ir = -0.29227, Fr = -0.90649, Vr = 1.97294, @@ -93091,9 +93091,9 @@ object-assign return (function e(n) { function r(e, r) { var i = t((e = Ur(e)).h, (r = Ur(r)).h), - o = jn(e.s, r.s), - a = jn(e.l, r.l), - s = jn(e.opacity, r.opacity); + o = Dn(e.s, r.s), + a = Dn(e.l, r.l), + s = Dn(e.opacity, r.opacity); return function(t) { return ( (e.h = i(t)), @@ -93139,7 +93139,7 @@ object-assign }) ); var Xr = Wr(Ln), - Yr = Wr(jn); + Yr = Wr(Dn); function $r(t, e) { for ( var n = 0, @@ -93458,7 +93458,7 @@ object-assign i.tween = r; }; } - function Di(t, e, n) { + function ji(t, e, n) { var r, i; if ('function' != typeof n) throw new Error(); return function() { @@ -93480,7 +93480,7 @@ object-assign o.tween = i; }; } - function ji(t, e, n) { + function Di(t, e, n) { var r = t._id; return ( t.each(function() { @@ -93849,7 +93849,7 @@ object-assign return this.attrTween( t, 'function' == typeof e - ? (n.local ? Bi : Vi)(n, r, ji(this, 'attr.' + t, e)) + ? (n.local ? Bi : Vi)(n, r, Di(this, 'attr.' + t, e)) : null == e ? (n.local ? Ni : zi)(n) : (n.local ? Fi : Ii)(n, r, e) @@ -93902,7 +93902,7 @@ object-assign : ((i = u), (o = e((r = a), s))) ); }; - })(t, r, ji(this, 'style.' + t, e)) + })(t, r, Di(this, 'style.' + t, e)) ).each( (function(t, e) { var n, @@ -93957,7 +93957,7 @@ object-assign var e = t(this); this.textContent = null == e ? '' : e; }; - })(ji(this, 'text', t)) + })(Di(this, 'text', t)) : (function(t) { return function() { this.textContent = t; @@ -93988,7 +93988,7 @@ object-assign if ((r = i[o]).name === t) return r.value; return null; } - return this.each((null == e ? Li : Di)(n, t, e)); + return this.each((null == e ? Li : ji)(n, t, e)); }, delay: function(t) { var e = this._id; @@ -94099,8 +94099,8 @@ object-assign Po = 9 / 11, Mo = 10 / 11, Lo = 0.9375, - Do = 21 / 22, - jo = 63 / 64, + jo = 21 / 22, + Do = 63 / 64, Ro = 1 / Ao / Ao; function zo(t) { return 1 - No(1 - t); @@ -94112,7 +94112,7 @@ object-assign ? Ro * (t -= To) * t + Oo : t < Mo ? Ro * (t -= Po) * t + Lo - : Ro * (t -= Do) * t + jo; + : Ro * (t -= jo) * t + Do; } function Io(t) { return ((t *= 2) <= 1 ? 1 - No(1 - t) : No(t - 1) + 1) / 2; @@ -94507,21 +94507,21 @@ object-assign P = 0, M = 0, L = x && w && o && pe.shiftKey, - D = pe.touches + j = pe.touches ? ((v = pe.changedTouches[0].identifier), function(t) { return Ne(t, pe.touches, v); }) : Re, - j = D(y), - R = j, + D = j(y), + R = D, z = c(y, arguments, !0).beforestart(); 'overlay' === b ? (k && (p = !0), (S.selection = k = [ [ - (n = t === sa ? A : j[0]), - (a = t === aa ? T : j[1]) + (n = t === sa ? A : D[0]), + (a = t === aa ? T : D[1]) ], [(u = t === sa ? C : n), (d = t === aa ? O : a)] ])) @@ -94607,7 +94607,7 @@ object-assign Zo(), Mi(y), l.call(y), z.start(); } function V() { - var t = D(y); + var t = j(y); !L || g || m || @@ -94621,7 +94621,7 @@ object-assign } function B() { var t; - switch (((P = R[0] - j[0]), (M = R[1] - j[1]), _)) { + switch (((P = R[0] - D[0]), (M = R[1] - D[1]), _)) { case ea: case ta: x && @@ -94941,13 +94941,13 @@ object-assign ); }, La = Array.prototype.slice, - Da = function(t) { + ja = function(t) { return function() { return t; }; }, - ja = Math.PI, - Ra = 2 * ja, + Da = Math.PI, + Ra = 2 * Da, za = Ra - 1e-6; function Na() { (this._x0 = this._y0 = this._x1 = this._y1 = null), @@ -95023,7 +95023,7 @@ object-assign y = i * Math.tan( - (ja - Math.acos((p + f - g) / (2 * m * v))) / 2 + (Da - Math.acos((p + f - g) / (2 * m * v))) / 2 ), b = y / v, _ = y / m; @@ -95088,7 +95088,7 @@ object-assign ',' + n + ',0,' + - +(f >= ja) + + +(f >= Da) + ',' + c + ',' + @@ -95166,17 +95166,17 @@ object-assign return ( (a.radius = function(t) { return arguments.length - ? ((n = 'function' == typeof t ? t : Da(+t)), a) + ? ((n = 'function' == typeof t ? t : ja(+t)), a) : n; }), (a.startAngle = function(t) { return arguments.length - ? ((r = 'function' == typeof t ? t : Da(+t)), a) + ? ((r = 'function' == typeof t ? t : ja(+t)), a) : r; }), (a.endAngle = function(t) { return arguments.length - ? ((i = 'function' == typeof t ? t : Da(+t)), a) + ? ((i = 'function' == typeof t ? t : ja(+t)), a) : i; }), (a.source = function(e) { @@ -95728,7 +95728,7 @@ object-assign ); var h = c(i); if (!Array.isArray(h)) { - var p = j(i); + var p = D(i); (h = C(0, p, h)), (h = w(0, Math.floor(p / h) * h, h)).shift(); } @@ -95987,12 +95987,12 @@ object-assign } }; }, - Ds = Ls(','), - js = Ds.parse, - Rs = Ds.parseRows, - zs = Ds.format, - Ns = Ds.formatBody, - Is = Ds.formatRows, + js = Ls(','), + Ds = js.parse, + Rs = js.parseRows, + zs = js.format, + Ns = js.formatBody, + Is = js.formatRows, Fs = Ls('\t'), Vs = Fs.parse, Bs = Fs.parseRows, @@ -96063,7 +96063,7 @@ object-assign return i.parse(t, r); }); } - var tu = Zs(js), + var tu = Zs(Ds), eu = Zs(Vs), nu = function(t, e) { return new Promise(function(n, r) { @@ -96983,7 +96983,7 @@ object-assign s ); }, - Du = function(t) { + ju = function(t) { var e, n, r, @@ -97024,7 +97024,7 @@ object-assign o ); }, - ju = function(t) { + Du = function(t) { var e, n, r, @@ -97519,11 +97519,11 @@ object-assign Ll(n[r], e, 0); }, Polygon: function(t, e) { - Dl(t.coordinates, e); + jl(t.coordinates, e); }, MultiPolygon: function(t, e) { for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) - Dl(n[r], e); + jl(n[r], e); }, GeometryCollection: function(t, e) { for (var n = t.geometries, r = -1, i = n.length; ++r < i; ) @@ -97538,13 +97538,13 @@ object-assign (r = t[i]), e.point(r[0], r[1], r[2]); e.lineEnd(); } - function Dl(t, e) { + function jl(t, e) { var n = -1, r = t.length; for (e.polygonStart(); ++n < r; ) Ll(t[n], e, 1); e.polygonEnd(); } - var jl, + var Dl, Rl, zl, Nl, @@ -97574,11 +97574,11 @@ object-assign Gl.point = ql; } function Ul() { - Wl(jl, Rl); + Wl(Dl, Rl); } function ql(t, e) { (Gl.point = Wl), - (jl = t), + (Dl = t), (Rl = e), (zl = t *= dl), (Nl = ml((e = (e *= dl) / 2 + ll))), @@ -97744,8 +97744,8 @@ object-assign Pc, Mc, Lc, - Dc, jc, + Dc, Rc, zc, Nc, @@ -97840,10 +97840,10 @@ object-assign Vc.point = $c; } function Yc() { - Kc(jc, Rc), (Vc.point = Bc); + Kc(Dc, Rc), (Vc.point = Bc); } function $c(t, e) { - (jc = t), (Rc = e), (t *= dl), (e *= dl), (Vc.point = Kc); + (Dc = t), (Rc = e), (t *= dl), (e *= dl), (Vc.point = Kc); var n = ml(e); (zc = n * ml(t)), (Nc = n * xl(t)), @@ -97864,7 +97864,7 @@ object-assign f = l && -c / l; (Mc += f * a), (Lc += f * s), - (Dc += f * u), + (jc += f * u), (Ec += c), (Cc += c * (zc + (zc = r))), (Oc += c * (Nc + (Nc = i))), @@ -97872,11 +97872,11 @@ object-assign Gc(zc, Nc, Ic); } var Qc = function(t) { - (Sc = Ec = kc = Ac = Tc = Cc = Oc = Pc = Mc = Lc = Dc = 0), + (Sc = Ec = kc = Ac = Tc = Cc = Oc = Pc = Mc = Lc = jc = 0), Fl(t, Vc); var e = Mc, n = Lc, - r = Dc, + r = jc, i = e * e + n * n + r * r; return i < al && ((e = Cc), @@ -98727,16 +98727,16 @@ object-assign sphere: Cl, point: Cl, lineStart: function() { - (Lf.point = jf), (Lf.lineEnd = Df); + (Lf.point = Df), (Lf.lineEnd = jf); }, lineEnd: Cl, polygonStart: Cl, polygonEnd: Cl }; - function Df() { + function jf() { Lf.point = Lf.lineEnd = Cl; } - function jf(t, e) { + function Df(t, e) { (Tf = t *= dl), (Cf = xl((e *= dl))), (Of = ml(e)), @@ -99079,13 +99079,13 @@ object-assign Pd = 0, Md = { point: Ld, - lineStart: Dd, + lineStart: jd, lineEnd: zd, polygonStart: function() { (Md.lineStart = Nd), (Md.lineEnd = Id); }, polygonEnd: function() { - (Md.point = Ld), (Md.lineStart = Dd), (Md.lineEnd = zd); + (Md.point = Ld), (Md.lineStart = jd), (Md.lineEnd = zd); }, result: function() { var t = Pd @@ -99101,10 +99101,10 @@ object-assign function Ld(t, e) { (wd += t), (Sd += e), ++Ed; } - function Dd() { - Md.point = jd; + function jd() { + Md.point = Dd; } - function jd(t, e) { + function Dd(t, e) { (Md.point = Rd), Ld((pd = t), (gd = e)); } function Rd(t, e) { @@ -100025,7 +100025,7 @@ object-assign function Lh(t) { return El((ul + t) / 2); } - function Dh(t, e) { + function jh(t, e) { var n = ml(t), r = t === e ? xl(t) : bl(n / ml(e)) / bl(Lh(e) / Lh(t)), i = (n * _l(Lh(t), r)) / r; @@ -100049,8 +100049,8 @@ object-assign o ); } - var jh = function() { - return yh(Dh) + var Dh = function() { + return yh(jh) .scale(109.5) .parallels([30, 30]); }; @@ -100762,10 +100762,10 @@ object-assign return t; }; }; - function Dp(t) { + function jp(t) { return Math.sqrt(t.value); } - var jp = function() { + var Dp = function() { var t = null, e = 1, n = 1, @@ -100780,7 +100780,7 @@ object-assign .eachAfter(zp(r, 0.5)) .eachBefore(Np(1)) : i - .eachBefore(Rp(Dp)) + .eachBefore(Rp(jp)) .eachAfter(zp(Mp, 1)) .eachAfter(zp(r, i.r / Math.min(e, n))) .eachBefore(Np(Math.min(e, n) / (2 * i.r))), @@ -101705,10 +101705,10 @@ object-assign return t; }; }, - Dg = function(t) { + jg = function(t) { return +t; }, - jg = [0, 1]; + Dg = [0, 1]; function Rg(t) { return t; } @@ -101776,8 +101776,8 @@ object-assign r, i, o, - a = jg, - s = jg, + a = Dg, + s = Dg, u = Kn, l = Rg; function c() { @@ -101798,7 +101798,7 @@ object-assign }), (f.domain = function(t) { return arguments.length - ? ((a = Ag.call(t, Dg)), l === Rg || (l = Ng(a)), c()) + ? ((a = Ag.call(t, jg)), l === Rg || (l = Ng(a)), c()) : a.slice(); }), (f.range = function(t) { @@ -101924,7 +101924,7 @@ object-assign (n.invert = n), (n.domain = n.range = function(e) { return arguments.length - ? ((t = Ag.call(e, Dg)), n) + ? ((t = Ag.call(e, jg)), n) : t.slice(); }), (n.unknown = function(t) { @@ -101933,7 +101933,7 @@ object-assign (n.copy = function() { return Wg(t).unknown(e); }), - (t = arguments.length ? Ag.call(t, Dg) : [0, 1]), + (t = arguments.length ? Ag.call(t, jg) : [0, 1]), Ug(n) ); } @@ -102458,14 +102458,14 @@ object-assign Pm = Am(3), Mm = Am(4), Lm = Am(5), - Dm = Am(6), - jm = Tm.range, + jm = Am(6), + Dm = Tm.range, Rm = Cm.range, zm = Om.range, Nm = Pm.range, Im = Mm.range, Fm = Lm.range, - Vm = Dm.range, + Vm = jm.range, Bm = vm( function(t) { t.setHours(0, 0, 0, 0); @@ -102762,8 +102762,8 @@ object-assign s: Gy, S: My, u: Ly, - U: Dy, - V: jy, + U: jy, + V: Dy, w: Ry, W: zy, x: null, @@ -102972,8 +102972,8 @@ object-assign Pv, Mv, Lv = { '-': '', _: ' ', 0: '0' }, - Dv = /^\s*\d+/, - jv = /^%/, + jv = /^\s*\d+/, + Dv = /^%/, Rv = /[\\^$*+?|[\]().{}]/g; function zv(t, e, n) { var r = t < 0 ? '-' : '', @@ -102993,31 +102993,31 @@ object-assign return e; } function Vv(t, e, n) { - var r = Dv.exec(e.slice(n, n + 1)); + var r = jv.exec(e.slice(n, n + 1)); return r ? ((t.w = +r[0]), n + r[0].length) : -1; } function Bv(t, e, n) { - var r = Dv.exec(e.slice(n, n + 1)); + var r = jv.exec(e.slice(n, n + 1)); return r ? ((t.u = +r[0]), n + r[0].length) : -1; } function Gv(t, e, n) { - var r = Dv.exec(e.slice(n, n + 2)); + var r = jv.exec(e.slice(n, n + 2)); return r ? ((t.U = +r[0]), n + r[0].length) : -1; } function Hv(t, e, n) { - var r = Dv.exec(e.slice(n, n + 2)); + var r = jv.exec(e.slice(n, n + 2)); return r ? ((t.V = +r[0]), n + r[0].length) : -1; } function Uv(t, e, n) { - var r = Dv.exec(e.slice(n, n + 2)); + var r = jv.exec(e.slice(n, n + 2)); return r ? ((t.W = +r[0]), n + r[0].length) : -1; } function qv(t, e, n) { - var r = Dv.exec(e.slice(n, n + 4)); + var r = jv.exec(e.slice(n, n + 4)); return r ? ((t.y = +r[0]), n + r[0].length) : -1; } function Wv(t, e, n) { - var r = Dv.exec(e.slice(n, n + 2)); + var r = jv.exec(e.slice(n, n + 2)); return r ? ((t.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3)), n + r[0].length) : -1; @@ -103030,53 +103030,53 @@ object-assign : -1; } function Yv(t, e, n) { - var r = Dv.exec(e.slice(n, n + 1)); + var r = jv.exec(e.slice(n, n + 1)); return r ? ((t.q = 3 * r[0] - 3), n + r[0].length) : -1; } function $v(t, e, n) { - var r = Dv.exec(e.slice(n, n + 2)); + var r = jv.exec(e.slice(n, n + 2)); return r ? ((t.m = r[0] - 1), n + r[0].length) : -1; } function Kv(t, e, n) { - var r = Dv.exec(e.slice(n, n + 2)); + var r = jv.exec(e.slice(n, n + 2)); return r ? ((t.d = +r[0]), n + r[0].length) : -1; } function Qv(t, e, n) { - var r = Dv.exec(e.slice(n, n + 3)); + var r = jv.exec(e.slice(n, n + 3)); return r ? ((t.m = 0), (t.d = +r[0]), n + r[0].length) : -1; } function Zv(t, e, n) { - var r = Dv.exec(e.slice(n, n + 2)); + var r = jv.exec(e.slice(n, n + 2)); return r ? ((t.H = +r[0]), n + r[0].length) : -1; } function Jv(t, e, n) { - var r = Dv.exec(e.slice(n, n + 2)); + var r = jv.exec(e.slice(n, n + 2)); return r ? ((t.M = +r[0]), n + r[0].length) : -1; } function ty(t, e, n) { - var r = Dv.exec(e.slice(n, n + 2)); + var r = jv.exec(e.slice(n, n + 2)); return r ? ((t.S = +r[0]), n + r[0].length) : -1; } function ey(t, e, n) { - var r = Dv.exec(e.slice(n, n + 3)); + var r = jv.exec(e.slice(n, n + 3)); return r ? ((t.L = +r[0]), n + r[0].length) : -1; } function ny(t, e, n) { - var r = Dv.exec(e.slice(n, n + 6)); + var r = jv.exec(e.slice(n, n + 6)); return r ? ((t.L = Math.floor(r[0] / 1e3)), n + r[0].length) : -1; } function ry(t, e, n) { - var r = jv.exec(e.slice(n, n + 1)); + var r = Dv.exec(e.slice(n, n + 1)); return r ? n + r[0].length : -1; } function iy(t, e, n) { - var r = Dv.exec(e.slice(n)); + var r = jv.exec(e.slice(n)); return r ? ((t.Q = +r[0]), n + r[0].length) : -1; } function oy(t, e, n) { - var r = Dv.exec(e.slice(n)); + var r = jv.exec(e.slice(n)); return r ? ((t.s = +r[0]), n + r[0].length) : -1; } function ay(t, e) { @@ -103171,10 +103171,10 @@ object-assign var e = t.getUTCDay(); return 0 === e ? 7 : e; } - function Dy(t, e) { + function jy(t, e) { return zv(rv.count(xv(t) - 1, t), e, 2); } - function jy(t, e) { + function Dy(t, e) { var n = t.getUTCDay(); return ( (t = n >= 4 || 0 === n ? sv(t) : sv.ceil(t)), @@ -103675,8 +103675,8 @@ object-assign Lb = kb( 'e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999' ), - Db = kb('66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3'), - jb = kb( + jb = kb('66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3'), + Db = kb( '8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f' ), Rb = kb( @@ -104003,7 +104003,7 @@ object-assign ) .map(kb), L_ = zb(M_), - D_ = new Array(3) + j_ = new Array(3) .concat( 'fee0d2fc9272de2d26', 'fee5d9fcae91fb6a4acb181d', @@ -104014,7 +104014,7 @@ object-assign 'fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d' ) .map(kb), - j_ = zb(D_), + D_ = zb(j_), R_ = new Array(3) .concat( 'fee6cefdae6be6550d', @@ -104318,8 +104318,8 @@ object-assign : ((E = 0), (b = _ = (h + p) / 2)); } var L = d * nx(b), - D = d * ox(b), - j = f * nx(w), + j = d * ox(b), + D = f * nx(w), R = f * ox(w); if (T > sx) { var z, @@ -104340,10 +104340,10 @@ object-assign t + (d = (c * (e - o) - f * (t - i)) / d) * u, e + d * l ]; - })(L, D, F, V, N, I, j, R)) + })(L, j, F, V, N, I, D, R)) ) { var B = L - z[0], - G = D - z[1], + G = j - z[1], H = N - z[0], U = I - z[1], q = @@ -104364,8 +104364,8 @@ object-assign } E > sx ? O > sx - ? ((v = vx(F, V, L, D, d, O, m)), - (y = vx(N, I, j, R, d, O, m)), + ? ((v = vx(F, V, L, j, d, O, m)), + (y = vx(N, I, D, R, d, O, m)), s.moveTo(v.cx + v.x01, v.cy + v.y01), O < T ? s.arc( @@ -104400,12 +104400,12 @@ object-assign ex(y.y01, y.x01), !m ))) - : (s.moveTo(L, D), s.arc(0, 0, d, b, _, !m)) - : s.moveTo(L, D), + : (s.moveTo(L, j), s.arc(0, 0, d, b, _, !m)) + : s.moveTo(L, j), f > sx && S > sx ? C > sx - ? ((v = vx(j, R, N, I, f, -C, m)), - (y = vx(L, D, F, V, f, -C, m)), + ? ((v = vx(D, R, N, I, f, -C, m)), + (y = vx(L, j, F, V, f, -C, m)), s.lineTo(v.cx + v.x01, v.cy + v.y01), C < T ? s.arc( @@ -104441,7 +104441,7 @@ object-assign !m ))) : s.arc(0, 0, f, w, x, m) - : s.lineTo(j, R); + : s.lineTo(D, R); } else s.moveTo(0, 0); if ((s.closePath(), u)) return (s = null), u + '' || null; @@ -104856,7 +104856,7 @@ object-assign var Lx = function() { return Mx(Sx().curve(Cx)); }, - Dx = function() { + jx = function() { var t = Ex().curve(Cx), e = t.curve, n = t.lineX0, @@ -104898,7 +104898,7 @@ object-assign t ); }, - jx = function(t, e) { + Dx = function(t, e) { return [ (e = +e) * Math.cos((t -= Math.PI / 2)), e * Math.sin(t) @@ -104969,10 +104969,10 @@ object-assign t.bezierCurveTo(e, (n = (n + i) / 2), r, n, r, i); } function Bx(t, e, n, r, i) { - var o = jx(e, n), - a = jx(e, (n = (n + i) / 2)), - s = jx(r, n), - u = jx(r, i); + var o = Dx(e, n), + a = Dx(e, (n = (n + i) / 2)), + s = Dx(r, n), + u = Dx(r, i); t.moveTo(o[0], o[1]), t.bezierCurveTo(a[0], a[1], s[0], s[1], u[0], u[1]); } @@ -105758,10 +105758,10 @@ object-assign n ); })(0.5); - function Dw(t) { + function jw(t) { this._context = t; } - Dw.prototype = { + jw.prototype = { areaStart: lw, areaEnd: lw, lineStart: function() { @@ -105778,8 +105778,8 @@ object-assign : ((this._point = 1), this._context.moveTo(t, e)); } }; - var jw = function(t) { - return new Dw(t); + var Dw = function(t) { + return new jw(t); }; function Rw(t) { return t < 0 ? -1 : 1; @@ -106523,11 +106523,11 @@ object-assign } var MS, LS = []; - function DS() { + function jS() { yS(this), (this.x = this.y = this.arc = this.site = this.cy = null); } - function jS(t) { + function DS(t) { var e = t.P, n = t.N; if (e && n) { @@ -106547,7 +106547,7 @@ object-assign p = c * c + f * f, g = (f * h - l * p) / d, m = (u * p - c * h) / d, - v = LS.pop() || new DS(); + v = LS.pop() || new jS(); (v.arc = t), (v.site = i), (v.x = g + a), @@ -106625,8 +106625,8 @@ object-assign (l = s[c]), (u = s[c - 1]), kS(l.edge, u.site, l.site, i); (u = s[0]), ((l = s[f - 1]).edge = SS(u.site, l.site, null, i)), - jS(u), - jS(l); + DS(u), + DS(l); } function BS(t) { for (var e, n, r, i, o = t[0], a = t[1], s = US._; s; ) @@ -106657,8 +106657,8 @@ object-assign (n = IS(e.site)), US.insert(u, n), (u.edge = n.edge = SS(e.site, u.site)), - jS(e), - void jS(n) + DS(e), + void DS(n) ); if (n) { RS(e), RS(n); @@ -106677,8 +106677,8 @@ object-assign kS(n.edge, l, p, _), (u.edge = SS(l, t, null, _)), (n.edge = SS(t, p, null, _)), - jS(e), - jS(n); + DS(e), + DS(n); } else u.edge = SS(e.site, u.site); } } @@ -107629,13 +107629,13 @@ object-assign return L; }), n.d(e, 'thresholdScott', function() { - return D; + return j; }), n.d(e, 'thresholdSturges', function() { return O; }), n.d(e, 'max', function() { - return j; + return D; }), n.d(e, 'mean', function() { return R; @@ -107782,7 +107782,7 @@ object-assign return Ls; }), n.d(e, 'csvParse', function() { - return js; + return Ds; }), n.d(e, 'csvParseRows', function() { return Rs; @@ -107977,10 +107977,10 @@ object-assign return Pu; }), n.d(e, 'forceX', function() { - return Du; + return ju; }), n.d(e, 'forceY', function() { - return ju; + return Du; }), n.d(e, 'formatDefaultLocale', function() { return Qu; @@ -108073,10 +108073,10 @@ object-assign return Th; }), n.d(e, 'geoConicConformal', function() { - return jh; + return Dh; }), n.d(e, 'geoConicConformalRaw', function() { - return Dh; + return jh; }), n.d(e, 'geoConicEqualArea', function() { return _h; @@ -108163,7 +108163,7 @@ object-assign return lp; }), n.d(e, 'pack', function() { - return jp; + return Dp; }), n.d(e, 'packSiblings', function() { return Cp; @@ -108259,7 +108259,7 @@ object-assign return fr; }), n.d(e, 'interpolateLab', function() { - return jr; + return Dr; }), n.d(e, 'interpolateHcl', function() { return zr; @@ -108421,10 +108421,10 @@ object-assign return Lb; }), n.d(e, 'schemeSet2', function() { - return Db; + return jb; }), n.d(e, 'schemeSet3', function() { - return jb; + return Db; }), n.d(e, 'schemeTableau10', function() { return Rb; @@ -108580,10 +108580,10 @@ object-assign return M_; }), n.d(e, 'interpolateReds', function() { - return j_; + return D_; }), n.d(e, 'schemeReds', function() { - return D_; + return j_; }), n.d(e, 'interpolateOranges', function() { return z_; @@ -108646,7 +108646,7 @@ object-assign return vt; }), n.d(e, 'clientPoint', function() { - return je; + return De; }), n.d(e, 'select', function() { return Ce; @@ -108694,10 +108694,10 @@ object-assign return Tx; }), n.d(e, 'areaRadial', function() { - return Dx; + return jx; }), n.d(e, 'radialArea', function() { - return Dx; + return jx; }), n.d(e, 'lineRadial', function() { return Lx; @@ -108706,7 +108706,7 @@ object-assign return Lx; }), n.d(e, 'pointRadial', function() { - return jx; + return Dx; }), n.d(e, 'linkHorizontal', function() { return Gx; @@ -108775,7 +108775,7 @@ object-assign return Cw; }), n.d(e, 'curveLinearClosed', function() { - return jw; + return Dw; }), n.d(e, 'curveLinear', function() { return _x; @@ -108883,13 +108883,13 @@ object-assign return Tm; }), n.d(e, 'timeWeeks', function() { - return jm; + return Dm; }), n.d(e, 'timeSunday', function() { return Tm; }), n.d(e, 'timeSundays', function() { - return jm; + return Dm; }), n.d(e, 'timeMonday', function() { return Cm; @@ -108922,7 +108922,7 @@ object-assign return Fm; }), n.d(e, 'timeSaturday', function() { - return Dm; + return jm; }), n.d(e, 'timeSaturdays', function() { return Vm; @@ -114640,12 +114640,12 @@ object-assign var P = C.value, M = i(P, 2), L = M[0], - D = M[1]; - v && D instanceof Date && (D = v(D)); - var j = (0, a.escapeHtml)(D); + j = M[1]; + v && j instanceof Date && (j = v(j)); + var D = (0, a.escapeHtml)(j); p[L] - ? (n += '' + m[p[L]](j) + '') - : (n += '' + j + ''); + ? (n += '' + m[p[L]](D) + '') + : (n += '' + D + ''); } } catch (t) { (A = !0), (T = t); @@ -114956,9 +114956,9 @@ object-assign 30, M = P / (t.length - 1), L = O, - D = (100).toFixed(m), - j = 0; - x && (j = (O - x) / (t.length - 2)); + j = (100).toFixed(m), + D = 0; + x && (D = (O - x) / (t.length - 2)); var R = t.slice(1).map(function(e, n) { var r = [ { x: (O - L) / 2, y: M * n + A }, @@ -114967,16 +114967,16 @@ object-assign 0 !== n && ('relative' === g && (x - ? (L -= j) + ? (L -= D) : (L = (L * e[1]) / t[n][1]), - (D = ((e[1] / t[n][1]) * 100).toFixed( + (j = ((e[1] / t[n][1]) * 100).toFixed( m ))), 'absolute' === g && (x - ? (L -= j) + ? (L -= D) : (L = (O * e[1]) / t[1][1]), - (D = ((e[1] / t[1][1]) * 100).toFixed( + (j = ((e[1] / t[1][1]) * 100).toFixed( m )))); var o = e[0]; @@ -114991,7 +114991,7 @@ object-assign { name: e[0], label: o, - percent: D + '%', + percent: j + '%', result: u, points: [].concat(r, [ { @@ -115382,28 +115382,28 @@ object-assign P = O / (t.length - 1), M = 0.3 * P, L = 2.5 * M, - D = C, - j = (100).toFixed(m), + j = C, + D = (100).toFixed(m), R = 0; x && (R = (C - x) / (t.length - 2)); var z = t.slice(1).map(function(e, n) { var r = [ - { x: (C - D) / 2, y: P * n + M }, - { x: (C - D) / 2 + D, y: P * n + M } + { x: (C - j) / 2, y: P * n + M }, + { x: (C - j) / 2 + j, y: P * n + M } ]; 0 !== n && ('relative' === g && (x - ? (D -= R) - : (D = (D * e[1]) / t[n][1]), - (j = ((e[1] / t[n][1]) * 100).toFixed( + ? (j -= R) + : (j = (j * e[1]) / t[n][1]), + (D = ((e[1] / t[n][1]) * 100).toFixed( m ))), 'absolute' === g && (x - ? (D -= R) - : (D = (C * e[1]) / t[1][1]), - (j = ((e[1] / t[1][1]) * 100).toFixed( + ? (j -= R) + : (j = (C * e[1]) / t[1][1]), + (D = ((e[1] / t[1][1]) * 100).toFixed( m )))); var o = e[0]; @@ -115419,14 +115419,14 @@ object-assign { name: e[0], label: o, - percent: j + '%', + percent: D + '%', result: u, points: [].concat(r, [ { - x: (C - D) / 2 + D, + x: (C - j) / 2 + j, y: P * (n + 1) }, - { x: (C - D) / 2, y: P * (n + 1) } + { x: (C - j) / 2, y: P * (n + 1) } ]) } ); @@ -115849,9 +115849,9 @@ object-assign 30, M = O / (t.length - 1), L = P, - D = (100).toFixed(m), - j = 0; - x && (j = (P - x) / (t.length - 2)); + j = (100).toFixed(m), + D = 0; + x && (D = (P - x) / (t.length - 2)); var R = t.slice(1).map(function(e, n) { var r = [ { x: M * n + A, y: (P - L) / 2 }, @@ -115860,16 +115860,16 @@ object-assign 0 !== n && ('relative' === g && (x - ? (L -= j) + ? (L -= D) : (L = (L * e[1]) / t[n][1]), - (D = ((e[1] / t[n][1]) * 100).toFixed( + (j = ((e[1] / t[n][1]) * 100).toFixed( m ))), 'absolute' === g && (x - ? (L -= j) + ? (L -= D) : (L = (P * e[1]) / t[1][1]), - (D = ((e[1] / t[1][1]) * 100).toFixed( + (j = ((e[1] / t[1][1]) * 100).toFixed( m )))); var o = e[0]; @@ -115884,7 +115884,7 @@ object-assign { name: e[0], label: o, - percent: D + '%', + percent: j + '%', result: u, points: [].concat(r, [ { @@ -116227,28 +116227,28 @@ object-assign P = C / (t.length - 1), M = 0.3 * P, L = M / 1.5, - D = O, - j = (100).toFixed(m), + j = O, + D = (100).toFixed(m), R = 0; x && (R = (O - x) / (t.length - 2)); var z = t.slice(1).map(function(e, n) { var r = [ - { x: P * n + M, y: (O - D) / 2 }, - { x: P * n + M, y: (O - D) / 2 + D } + { x: P * n + M, y: (O - j) / 2 }, + { x: P * n + M, y: (O - j) / 2 + j } ]; 0 !== n && ('relative' === g && (x - ? (D -= R) - : (D = (D * e[1]) / t[n][1]), - (j = ((e[1] / t[n][1]) * 100).toFixed( + ? (j -= R) + : (j = (j * e[1]) / t[n][1]), + (D = ((e[1] / t[n][1]) * 100).toFixed( m ))), 'absolute' === g && (x - ? (D -= R) - : (D = (O * e[1]) / t[1][1]), - (j = ((e[1] / t[1][1]) * 100).toFixed( + ? (j -= R) + : (j = (O * e[1]) / t[1][1]), + (D = ((e[1] / t[1][1]) * 100).toFixed( m )))); var o = e[0]; @@ -116264,14 +116264,14 @@ object-assign { name: e[0], label: o, - percent: j + '%', + percent: D + '%', result: u, points: [].concat(r, [ { x: P * (n + 1), - y: (O - D) / 2 + D + y: (O - j) / 2 + j }, - { x: P * (n + 1), y: (O - D) / 2 } + { x: P * (n + 1), y: (O - j) / 2 } ]) } ); @@ -116881,12 +116881,12 @@ object-assign L = O.reduce(function(t, e) { return e.value > t ? e.value : t; }, P), - D = function() { + j = function() { var t = u[0], e = o.rgb('#00BBDE'); return o.color(t) && (e = o.rgb(t)), e; }, - j = o + D = o .scaleLinear() .domain([ 0, @@ -116896,8 +116896,8 @@ object-assign ]) .range([0, 1]), R = function(t) { - var e = j(t), - n = D(), + var e = D(t), + n = j(), r = (function(t) { var e = arguments.length > 1 && @@ -116984,15 +116984,15 @@ object-assign ' .rangeable-tooltip,\n ' + N + ' .active {\n background-color: ' + - D() + + j() + ';\n }\n ' + N + ' .rangeable-tooltip::before {\n border-color: ' + - D() + + j() + ' transparent transparent;\n }\n ' + N + ' .rangeable-handle {\n border-color: ' + - D() + + j() + ';\n }\n ', F = document.createElement('style'); F.innerHTML = I; @@ -117038,7 +117038,7 @@ object-assign .style('background-color', 'white') .style( 'border', - '2px solid ' + D().toString() + '2px solid ' + j().toString() ) .style('font-size', '14px') .style('padding', '2px 8px') @@ -117074,7 +117074,7 @@ object-assign 'transition', 'transform 150ms ease-out' ) - .style('outline', '1px solid ' + D()) + .style('outline', '1px solid ' + j()) .style( 'transform', 'translate(0px, -4px)' @@ -118054,7 +118054,7 @@ object-assign } var M = /\/+/g, L = []; - function D(t, e, n, r) { + function j(t, e, n, r) { if (L.length) { var i = L.pop(); return ( @@ -118074,7 +118074,7 @@ object-assign count: 0 }; } - function j(t) { + function D(t) { (t.result = null), (t.keyPrefix = null), (t.func = null), @@ -118187,8 +118187,8 @@ object-assign function F(t, e, n, r, i) { var o = ''; null != n && (o = ('' + n).replace(M, '$&/') + '/'), - R(t, I, (e = D(e, o, r, i))), - j(e); + R(t, I, (e = j(e, o, r, i))), + D(e); } function V() { var t = k.current; @@ -118203,7 +118203,7 @@ object-assign }, forEach: function(t, e, n) { if (null == t) return t; - R(t, N, (e = D(null, null, e, n))), j(e); + R(t, N, (e = j(null, null, e, n))), D(e); }, count: function(t) { return R( @@ -120153,8 +120153,8 @@ object-assign P, M, L, - D, j, + D, R = this, z = R.main, N = R.d3, @@ -120247,10 +120247,10 @@ object-assign (b = R.generateXYForText(F, V, B, !0)), (_ = R.generateXYForText(F, V, B, !1)), R.updateCircleY(), - (D = (R.config.axis_rotated ? R.circleY : R.circleX).bind( + (j = (R.config.axis_rotated ? R.circleY : R.circleX).bind( R )), - (j = (R.config.axis_rotated ? R.circleX : R.circleY).bind( + (D = (R.config.axis_rotated ? R.circleX : R.circleY).bind( R )), n && @@ -120271,7 +120271,7 @@ object-assign R.updateBar(S), R.updateLine(S), R.updateArea(S), - R.updateCircle(D, j), + R.updateCircle(j, D), R.hasDataLabel() && R.updateText(b, _, S), R.redrawTitle && R.redrawTitle(), R.redrawArc && R.redrawArc(x, S, s), @@ -120290,8 +120290,8 @@ object-assign drawBar: v, drawLine: y, drawArea: m, - cx: D, - cy: j, + cx: j, + cy: D, xv: U, xForText: b, yForText: _ @@ -120303,7 +120303,7 @@ object-assign R.redrawBar(v, !0, C), R.redrawLine(y, !0, C), R.redrawArea(m, !0, C), - R.redrawCircle(D, j, !0, C), + R.redrawCircle(j, D, !0, C), R.redrawText(b, _, t.flow, !0, C), R.redrawRegion(!0, C), R.redrawGrid(!0, C) @@ -120322,7 +120322,7 @@ object-assign : (R.redrawBar(v), R.redrawLine(y), R.redrawArea(m), - R.redrawCircle(D, j), + R.redrawCircle(j, D), R.redrawText(b, _, t.flow), R.redrawRegion(), R.redrawGrid(), @@ -123546,8 +123546,8 @@ object-assign P = e.getValueOnIndex(e.data.targets[0].values, C), M = e.getValueOnIndex(e.data.targets[0].values, C + O), L = e.x.domain(), - D = v.duration || T, - j = v.done || function() {}, + j = v.duration || T, + D = v.done || function() {}, R = e.generateWait(); (e.flowing = !0), e.data.targets.forEach(function(t) { @@ -123593,7 +123593,7 @@ object-assign var z = r .transition() .ease(r.easeLinear) - .duration(D); + .duration(j); R.add(e.xAxis(e.axes.x, z)), R.add(d.transition(z).attr('transform', o)), R.add(h.transition(z).attr('transform', o)), @@ -123659,7 +123659,7 @@ object-assign .filter(e.isRegionOnX) .attr('x', e.regionX.bind(e)) .attr('width', e.regionWidth.bind(e)), - j(), + D(), (e.flowing = !1); }); }; @@ -127524,8 +127524,8 @@ object-assign P = 0, M = {}, L = {}, - D = {}, - j = [0], + j = {}, + D = [0], R = {}, z = 0; function N(e, n, r) { @@ -127560,14 +127560,14 @@ object-assign ((i = (d - P - f) / 2) < C && ((i = (d - f) / 2), (P = 0), z++)), (R[t] = z), - (j[z] = x.isLegendInset ? 10 : i), + (D[z] = x.isLegendInset ? 10 : i), (M[t] = P), (P += f); } a && ((P = 0), (z = 0), (A = 0), (T = 0)), !S.legend_show || x.isLegendToShow(n) ? ((L[n] = l), - (D[n] = c), + (j[n] = c), (!A || l >= A) && (A = l), (!T || c >= T) && (T = c), (o = x.isLegendRight || x.isLegendInset ? T : A), @@ -127575,8 +127575,8 @@ object-assign ? (Object.keys(L).forEach(function(t) { L[t] = A; }), - Object.keys(D).forEach(function(t) { - D[t] = T; + Object.keys(j).forEach(function(t) { + j[t] = T; }), (i = (d - o * t.length) / 2) < C ? ((P = 0), @@ -127586,7 +127586,7 @@ object-assign })) : h(n, !0)) : h(n)) - : (L[n] = D[n] = R[n] = M[n] = 0); + : (L[n] = j[n] = R[n] = M[n] = 0); } (t = t.filter(function(t) { return !d(S.data_names[t]) || null !== S.data_names[t]; @@ -127603,17 +127603,17 @@ object-assign return A * R[t]; }), (a = function(t) { - return j[R[t]] + M[t]; + return D[R[t]] + M[t]; })) : x.isLegendInset ? ((r = function(t) { return A * R[t] + 10; }), (a = function(t) { - return j[R[t]] + M[t]; + return D[R[t]] + M[t]; })) : ((r = function(t) { - return j[R[t]] + M[t]; + return D[R[t]] + M[t]; }), (a = function(t) { return T * R[t]; @@ -127755,7 +127755,7 @@ object-assign return L[t]; }) .attr('height', function(t) { - return D[t]; + return j[t]; }) .attr('x', o) .attr('y', l), @@ -131230,12 +131230,12 @@ object-assign '[object Uint8ClampedArray]' ] = M['[object Uint16Array]'] = M['[object Uint32Array]'] = !0), (M['[object Error]'] = M[C] = M['[object WeakMap]'] = !1), - (t.exports = function t(e, n, L, D, j, R) { + (t.exports = function t(e, n, L, j, D, R) { var z, N = n & E, I = n & k, F = n & A; - if ((L && (z = j ? L(e, D, j, R) : L(e)), void 0 !== z)) return z; + if ((L && (z = D ? L(e, j, D, R) : L(e)), void 0 !== z)) return z; if (!x(e)) return e; var V = y(e); if (V) { @@ -131244,11 +131244,11 @@ object-assign var B = p(e), G = B == C || B == O; if (b(e)) return u(e, N); - if (B == P || B == T || (G && !j)) { + if (B == P || B == T || (G && !D)) { if (((z = I || G ? {} : v(e)), !N)) return I ? f(e, s(z, e)) : c(e, a(z, e)); } else { - if (!M[B]) return j ? e : {}; + if (!M[B]) return D ? e : {}; z = m(e, B, N); } } @@ -133191,9 +133191,9 @@ object-assign (p = t.g), (g = t.b), (e = { - r: 255 * D(h, 255), - g: 255 * D(p, 255), - b: 255 * D(g, 255) + r: 255 * j(h, 255), + g: 255 * j(p, 255), + b: 255 * j(g, 255) }), (f = !0), (d = '%' === String(t.r).substr(-1) ? 'prgb' : 'rgb')) @@ -133201,7 +133201,7 @@ object-assign ? ((r = N(t.s)), (s = N(t.v)), (e = (function(t, e, n) { - (t = 6 * D(t, 360)), (e = D(e, 100)), (n = D(n, 100)); + (t = 6 * j(t, 360)), (e = j(e, 100)), (n = j(n, 100)); var r = i.floor(t), o = t - r, a = n * (1 - e), @@ -133237,9 +133237,9 @@ object-assign ); } if ( - ((t = D(t, 360)), - (e = D(e, 100)), - (n = D(n, 100)), + ((t = j(t, 360)), + (e = j(e, 100)), + (n = j(n, 100)), 0 === e) ) r = i = o = n; @@ -133283,7 +133283,7 @@ object-assign (this._tc_id = s++); } function h(t, e, n) { - (t = D(t, 255)), (e = D(e, 255)), (n = D(n, 255)); + (t = j(t, 255)), (e = j(e, 255)), (n = j(n, 255)); var r, i, o = c(t, e, n), @@ -133307,7 +133307,7 @@ object-assign return { h: r, s: i, l: s }; } function p(t, e, n) { - (t = D(t, 255)), (e = D(e, 255)), (n = D(n, 255)); + (t = j(t, 255)), (e = j(e, 255)), (n = j(n, 255)); var r, i, o = c(t, e, n), @@ -133354,12 +133354,12 @@ object-assign function v(t, e) { e = 0 === e ? 0 : e || 10; var n = d(t).toHsl(); - return (n.s -= e / 100), (n.s = j(n.s)), d(n); + return (n.s -= e / 100), (n.s = D(n.s)), d(n); } function y(t, e) { e = 0 === e ? 0 : e || 10; var n = d(t).toHsl(); - return (n.s += e / 100), (n.s = j(n.s)), d(n); + return (n.s += e / 100), (n.s = D(n.s)), d(n); } function b(t) { return d(t).desaturate(100); @@ -133367,7 +133367,7 @@ object-assign function _(t, e) { e = 0 === e ? 0 : e || 10; var n = d(t).toHsl(); - return (n.l += e / 100), (n.l = j(n.l)), d(n); + return (n.l += e / 100), (n.l = D(n.l)), d(n); } function x(t, e) { e = 0 === e ? 0 : e || 10; @@ -133382,7 +133382,7 @@ object-assign function w(t, e) { e = 0 === e ? 0 : e || 10; var n = d(t).toHsl(); - return (n.l -= e / 100), (n.l = j(n.l)), d(n); + return (n.l -= e / 100), (n.l = D(n.l)), d(n); } function S(t, e) { var n = d(t).toHsl(), @@ -133568,27 +133568,27 @@ object-assign }, toPercentageRgb: function() { return { - r: u(100 * D(this._r, 255)) + '%', - g: u(100 * D(this._g, 255)) + '%', - b: u(100 * D(this._b, 255)) + '%', + r: u(100 * j(this._r, 255)) + '%', + g: u(100 * j(this._g, 255)) + '%', + b: u(100 * j(this._b, 255)) + '%', a: this._a }; }, toPercentageRgbString: function() { return 1 == this._a ? 'rgb(' + - u(100 * D(this._r, 255)) + + u(100 * j(this._r, 255)) + '%, ' + - u(100 * D(this._g, 255)) + + u(100 * j(this._g, 255)) + '%, ' + - u(100 * D(this._b, 255)) + + u(100 * j(this._b, 255)) + '%)' : 'rgba(' + - u(100 * D(this._r, 255)) + + u(100 * j(this._r, 255)) + '%, ' + - u(100 * D(this._g, 255)) + + u(100 * j(this._g, 255)) + '%, ' + - u(100 * D(this._b, 255)) + + u(100 * j(this._b, 255)) + '%, ' + this._roundA + ')'; @@ -133941,7 +133941,7 @@ object-assign (t = parseFloat(t)), (isNaN(t) || t < 0 || t > 1) && (t = 1), t ); } - function D(t, e) { + function j(t, e) { (function(t) { return ( 'string' == typeof t && @@ -133958,7 +133958,7 @@ object-assign i.abs(t - e) < 1e-6 ? 1 : (t % e) / parseFloat(e) ); } - function j(t) { + function D(t) { return l(1, c(0, t)); } function R(t) { @@ -137982,7 +137982,7 @@ object-assign if (-1 === t.message.indexOf('Illegal')) throw t; return { relevance: 0, illegal: !0, value: F(e, []) }; } - function D(t) { + function j(t) { var e = t[0], n = t.rule; return ( @@ -138003,7 +138003,7 @@ object-assign n.returnBegin ? 0 : e.length ); } - function j(t) { + function D(t) { var n = t[0], r = e.slice(t.index), i = (function t(e, n) { @@ -138048,8 +138048,8 @@ object-assign '' === a ) return (M += e.slice(r.index, r.index + 1)), 1; - if (((T = r), 'begin' === r.type)) return D(r); - if ('end' === r.type && void 0 !== (o = j(r))) return o; + if (((T = r), 'begin' === r.type)) return j(r); + if ('end' === r.type && void 0 !== (o = D(r))) return o; if ('illegal' === r.type && !n) throw i( 'Illegal lexeme "%s" for mode "%s"', @@ -141312,142 +141312,27 @@ object-assign (t.prototype.constructor = t), (t.__proto__ = e); } - var d = n(47), + var d = n(1), h = n.n(d), - p = n(1), - g = n.n(p), - m = n(157), - v = n.n(m), - y = 1073741823; - var b = - u.a.createContext || - function(t, e) { - var n, - r, - i = '__create-react-context-' + v()() + '__', - o = (function(t) { - function n() { - var e; - return ( - ((e = t.apply(this, arguments) || this).emitter = (function( - t - ) { - var e = []; - return { - on: function(t) { - e.push(t); - }, - off: function(t) { - e = e.filter(function(e) { - return e !== t; - }); - }, - get: function() { - return t; - }, - set: function(n, r) { - (t = n), - e.forEach(function(e) { - return e(t, r); - }); - } - }; - })(e.props.value)), - e - ); - } - h()(n, t); - var r = n.prototype; - return ( - (r.getChildContext = function() { - var t; - return ((t = {})[i] = this.emitter), t; - }), - (r.componentWillReceiveProps = function(t) { - if (this.props.value !== t.value) { - var n, - r = this.props.value, - i = t.value; - ((o = r) === (a = i) - ? 0 !== o || 1 / o == 1 / a - : o != o && a != a) - ? (n = 0) - : ((n = 'function' == typeof e ? e(r, i) : y), - 0 !== (n |= 0) && this.emitter.set(t.value, n)); - } - var o, a; - }), - (r.render = function() { - return this.props.children; - }), - n - ); - })(s.Component); - o.childContextTypes = (((n = {})[i] = g.a.object.isRequired), n); - var a = (function(e) { - function n() { - var t; - return ( - ((t = e.apply(this, arguments) || this).state = { - value: t.getValue() - }), - (t.onUpdate = function(e, n) { - 0 != ((0 | t.observedBits) & n) && - t.setState({ value: t.getValue() }); - }), - t - ); - } - h()(n, e); - var r = n.prototype; - return ( - (r.componentWillReceiveProps = function(t) { - var e = t.observedBits; - this.observedBits = null == e ? y : e; - }), - (r.componentDidMount = function() { - this.context[i] && this.context[i].on(this.onUpdate); - var t = this.props.observedBits; - this.observedBits = null == t ? y : t; - }), - (r.componentWillUnmount = function() { - this.context[i] && this.context[i].off(this.onUpdate); - }), - (r.getValue = function() { - return this.context[i] ? this.context[i].get() : t; - }), - (r.render = function() { - return ((t = this.props.children), - Array.isArray(t) ? t[0] : t)(this.state.value); - var t; - }), - n - ); - })(s.Component); - return ( - (a.contextTypes = (((r = {})[i] = g.a.object), r)), - { Provider: o, Consumer: a } - ); - }, - _ = n(2); - function x(t) { + p = n(2); + function g(t) { return '/' === t.charAt(0); } - function w(t, e) { + function m(t, e) { for (var n = e, r = n + 1, i = t.length; r < i; n += 1, r += 1) t[n] = t[r]; t.pop(); } - var S = function(t, e) { + var v = function(t, e) { void 0 === e && (e = ''); var n, r = (t && t.split('/')) || [], i = (e && e.split('/')) || [], - o = t && x(t), - a = e && x(e), + o = t && g(t), + a = e && g(e), s = o || a; if ( - (t && x(t) ? (i = r) : r.length && (i.pop(), (i = i.concat(r))), + (t && g(t) ? (i = r) : r.length && (i.pop(), (i = i.concat(r))), !i.length) ) return '/'; @@ -141458,28 +141343,31 @@ object-assign for (var l = 0, c = i.length; c >= 0; c--) { var f = i[c]; '.' === f - ? w(i, c) + ? m(i, c) : '..' === f - ? (w(i, c), l++) - : l && (w(i, c), l--); + ? (m(i, c), l++) + : l && (m(i, c), l--); } if (!s) for (; l--; l) i.unshift('..'); - !s || '' === i[0] || (i[0] && x(i[0])) || i.unshift(''); + !s || '' === i[0] || (i[0] && g(i[0])) || i.unshift(''); var d = i.join('/'); return n && '/' !== d.substr(-1) && (d += '/'), d; }; - var E = !0, - k = 'Invariant failed'; - var A = function(t, e) { - if (!t) throw E ? new Error(k) : new Error(k + ': ' + (e || '')); + var y = !0, + b = 'Invariant failed'; + var _ = function(t, e) { + if (!t) { + if (y) throw new Error(b); + throw new Error(b + ': ' + (e || '')); + } }; - function T(t) { + function x(t) { return '/' === t.charAt(0) ? t : '/' + t; } - function C(t) { + function w(t) { return '/' === t.charAt(0) ? t.substr(1) : t; } - function O(t, e) { + function S(t, e) { return (function(t, e) { return ( 0 === t.toLowerCase().indexOf(e.toLowerCase()) && @@ -141489,10 +141377,10 @@ object-assign ? t.substr(e.length) : t; } - function P(t) { + function E(t) { return '/' === t.charAt(t.length - 1) ? t.slice(0, -1) : t; } - function M(t) { + function k(t) { var e = t.pathname, n = t.search, r = t.hash, @@ -141503,7 +141391,7 @@ object-assign i ); } - function L(t, e, n, r) { + function A(t, e, n, r) { var i; 'string' == typeof t ? ((i = (function(t) { @@ -141522,7 +141410,7 @@ object-assign } ); })(t)).state = e) - : (void 0 === (i = Object(_.a)({}, t)).pathname && (i.pathname = ''), + : (void 0 === (i = Object(p.a)({}, t)).pathname && (i.pathname = ''), i.search ? '?' !== i.search.charAt(0) && (i.search = '?' + i.search) : (i.search = ''), @@ -141546,13 +141434,13 @@ object-assign r ? i.pathname ? '/' !== i.pathname.charAt(0) && - (i.pathname = S(i.pathname, r.pathname)) + (i.pathname = v(i.pathname, r.pathname)) : (i.pathname = r.pathname) : i.pathname || (i.pathname = '/'), i ); } - function D() { + function T() { var t = null; var e = []; return { @@ -141598,25 +141486,25 @@ object-assign } }; } - var j = !( + var C = !( 'undefined' == typeof window || !window.document || !window.document.createElement ); - function R(t, e) { + function O(t, e) { e(window.confirm(t)); } - var z = 'popstate', - N = 'hashchange'; - function I() { + var P = 'popstate', + M = 'hashchange'; + function L() { try { return window.history.state || {}; } catch (t) { return {}; } } - function F(t) { - void 0 === t && {}, j || A(!1); + function j(t) { + void 0 === t && {}, C || _(!1); var e, n = window.history, r = @@ -141632,129 +141520,129 @@ object-assign a = o.forceRefresh, s = void 0 !== a && a, u = o.getUserConfirmation, - l = void 0 === u ? R : u, + l = void 0 === u ? O : u, c = o.keyLength, f = void 0 === c ? 6 : c, - d = t.basename ? P(T(t.basename)) : ''; + d = t.basename ? E(x(t.basename)) : ''; function h(t) { var e = t || {}, n = e.key, r = e.state, i = window.location, o = i.pathname + i.search + i.hash; - return d && O(o, d), L(o, r, n); + return d && S(o, d), A(o, r, n); } - function p() { + function g() { return Math.random() .toString(36) .substr(2, f); } - var g = D(); - function m(t) { - Object(_.a)(B, t), + var m = T(); + function v(t) { + Object(p.a)(B, t), (B.length = n.length), - g.notifyListeners(B.location, B.action); + m.notifyListeners(B.location, B.action); } - function v(t) { + function y(t) { (function(t) { return ( void 0 === t.state && -1 === navigator.userAgent.indexOf('CriOS') ); - })(t) || x(h(t.state)); + })(t) || j(h(t.state)); } - function y() { - x(h(I())); + function b() { + j(h(L())); } - var b = !1; - function x(t) { - if (b) !1, m(); + var w = !1; + function j(t) { + if (w) !1, v(); else { - g.confirmTransitionTo(t, 'POP', l, function(e) { + m.confirmTransitionTo(t, 'POP', l, function(e) { e - ? m({ action: 'POP', location: t }) + ? v({ action: 'POP', location: t }) : (function(t) { var e = B.location, - n = S.indexOf(e.key); + n = R.indexOf(e.key); -1 === n && 0; - var r = S.indexOf(t.key); + var r = R.indexOf(t.key); -1 === r && 0; var i = n - r; - i && (!0, k(i)); + i && (!0, N(i)); })(t); }); } } - var w = h(I()), - S = [w.key]; - function E(t) { - return d + M(t); + var D = h(L()), + R = [D.key]; + function z(t) { + return d + k(t); } - function k(t) { + function N(t) { n.go(t); } - var C = 0; + var I = 0; function F(t) { - 1 === (C += t) && 1 === t - ? (window.addEventListener(z, v), - i && window.addEventListener(N, y)) - : 0 === C && - (window.removeEventListener(z, v), - i && window.removeEventListener(N, y)); + 1 === (I += t) && 1 === t + ? (window.addEventListener(P, y), + i && window.addEventListener(M, b)) + : 0 === I && + (window.removeEventListener(P, y), + i && window.removeEventListener(M, b)); } var V = !1; var B = { length: n.length, action: 'POP', - location: w, - createHref: E, + location: D, + createHref: z, push: function(t, e) { - var i = L(t, e, p(), B.location); - g.confirmTransitionTo(i, 'PUSH', l, function(t) { + var i = A(t, e, g(), B.location); + m.confirmTransitionTo(i, 'PUSH', l, function(t) { if (t) { - var e = E(i), + var e = z(i), o = i.key, a = i.state; if (r) if ((n.pushState({ key: o, state: a }, null, e), s)) window.location.href = e; else { - var u = S.indexOf(B.location.key), - l = S.slice(0, u + 1); - l.push(i.key), l, m({ action: 'PUSH', location: i }); + var u = R.indexOf(B.location.key), + l = R.slice(0, u + 1); + l.push(i.key), l, v({ action: 'PUSH', location: i }); } else window.location.href = e; } }); }, replace: function(t, e) { - var i = L(t, e, p(), B.location); - g.confirmTransitionTo(i, 'REPLACE', l, function(t) { + var i = A(t, e, g(), B.location); + m.confirmTransitionTo(i, 'REPLACE', l, function(t) { if (t) { - var e = E(i), + var e = z(i), o = i.key, a = i.state; if (r) if ((n.replaceState({ key: o, state: a }, null, e), s)) window.location.replace(e); else { - var u = S.indexOf(B.location.key); - -1 !== u && (S[u] = i.key), - m({ action: 'REPLACE', location: i }); + var u = R.indexOf(B.location.key); + -1 !== u && (R[u] = i.key), + v({ action: 'REPLACE', location: i }); } else window.location.replace(e); } }); }, - go: k, + go: N, goBack: function() { - k(-1); + N(-1); }, goForward: function() { - k(1); + N(1); }, block: function(t) { void 0 === t && !1; - var e = g.setPrompt(t); + var e = m.setPrompt(t); return ( V || (F(1), !0), function() { @@ -141763,7 +141651,7 @@ object-assign ); }, listen: function(t) { - var e = g.appendListener(t); + var e = m.appendListener(t); return ( F(1), function() { @@ -141774,188 +141662,309 @@ object-assign }; return B; } - var V = 'hashchange', - B = { + var D = 'hashchange', + R = { hashbang: { encodePath: function(t) { - return '!' === t.charAt(0) ? t : '!/' + C(t); + return '!' === t.charAt(0) ? t : '!/' + w(t); }, decodePath: function(t) { return '!' === t.charAt(0) ? t.substr(1) : t; } }, - noslash: { encodePath: C, decodePath: T }, - slash: { encodePath: T, decodePath: T } + noslash: { encodePath: w, decodePath: x }, + slash: { encodePath: x, decodePath: x } }; - function G() { + function z(t) { + var e = t.indexOf('#'); + return -1 === e ? t : t.slice(0, e); + } + function N() { var t = window.location.href, e = t.indexOf('#'); return -1 === e ? '' : t.substring(e + 1); } - function H(t) { - var e = window.location.href.indexOf('#'); - window.location.replace( - window.location.href.slice(0, e >= 0 ? e : 0) + '#' + t - ); + function I(t) { + window.location.replace(z(window.location.href) + '#' + t); } - function U(t) { - void 0 === t && (t = {}), j || A(!1); + function F(t) { + void 0 === t && (t = {}), C || _(!1); var e = window.history, n = (window.navigator.userAgent.indexOf('Firefox'), t), r = n.getUserConfirmation, - i = void 0 === r ? R : r, + i = void 0 === r ? O : r, o = n.hashType, a = void 0 === o ? 'slash' : o, - s = t.basename ? P(T(t.basename)) : '', - u = B[a], + s = t.basename ? E(x(t.basename)) : '', + u = R[a], l = u.encodePath, c = u.decodePath; function f() { - var t = c(G()); - return s && (t = O(t, s)), L(t); + var t = c(N()); + return s && (t = S(t, s)), A(t); } - var d = D(); + var d = T(); function h(t) { - Object(_.a)(C, t), - (C.length = e.length), - d.notifyListeners(C.location, C.action); + Object(p.a)(V, t), + (V.length = e.length), + d.notifyListeners(V.location, V.action); } - var p = !1, - g = null; - function m() { + var g = !1, + m = null; + function v() { var t, e, - n = G(), + n = N(), r = l(n); - if (n !== r) H(r); + if (n !== r) I(r); else { var o = f(), - a = C.location; + a = V.location; if ( - !p && + !g && ((e = o), (t = a).pathname === e.pathname && t.search === e.search && t.hash === e.hash) ) return; - if (g === M(o)) return; - (g = null), + if (m === k(o)) return; + (m = null), (function(t) { - if (p) (p = !1), h(); + if (g) (g = !1), h(); else { d.confirmTransitionTo(t, 'POP', i, function(e) { e ? h({ action: 'POP', location: t }) : (function(t) { - var e = C.location, - n = x.lastIndexOf(M(e)); + var e = V.location, + n = P.lastIndexOf(k(e)); -1 === n && (n = 0); - var r = x.lastIndexOf(M(t)); + var r = P.lastIndexOf(k(t)); -1 === r && (r = 0); var i = n - r; - i && ((p = !0), w(i)); + i && ((g = !0), M(i)); })(t); }); } })(o); } } - var v = G(), - y = l(v); - v !== y && H(y); - var b = f(), - x = [M(b)]; - function w(t) { + var y = N(), + b = l(y); + y !== b && I(b); + var w = f(), + P = [k(w)]; + function M(t) { e.go(t); } - var S = 0; - function E(t) { - 1 === (S += t) && 1 === t - ? window.addEventListener(V, m) - : 0 === S && window.removeEventListener(V, m); + var L = 0; + function j(t) { + 1 === (L += t) && 1 === t + ? window.addEventListener(D, v) + : 0 === L && window.removeEventListener(D, v); } - var k = !1; - var C = { + var F = !1; + var V = { length: e.length, action: 'POP', - location: b, + location: w, createHref: function(t) { - return '#' + l(s + M(t)); + var e = document.querySelector('base'), + n = ''; + return ( + e && e.getAttribute('href') && (n = z(window.location.href)), + n + '#' + l(s + k(t)) + ); }, push: function(t, e) { - var n = L(t, void 0, void 0, C.location); + var n = A(t, void 0, void 0, V.location); d.confirmTransitionTo(n, 'PUSH', i, function(t) { if (t) { - var e = M(n), + var e = k(n), r = l(s + e); - if (G() !== r) { - (g = e), + if (N() !== r) { + (m = e), (function(t) { window.location.hash = t; })(r); - var i = x.lastIndexOf(M(C.location)), - o = x.slice(0, i + 1); - o.push(e), (x = o), h({ action: 'PUSH', location: n }); + var i = P.lastIndexOf(k(V.location)), + o = P.slice(0, i + 1); + o.push(e), (P = o), h({ action: 'PUSH', location: n }); } else h(); } }); }, replace: function(t, e) { - var n = L(t, void 0, void 0, C.location); + var n = A(t, void 0, void 0, V.location); d.confirmTransitionTo(n, 'REPLACE', i, function(t) { if (t) { - var e = M(n), + var e = k(n), r = l(s + e); - G() !== r && ((g = e), H(r)); - var i = x.indexOf(M(C.location)); - -1 !== i && (x[i] = e), h({ action: 'REPLACE', location: n }); + N() !== r && ((m = e), I(r)); + var i = P.indexOf(k(V.location)); + -1 !== i && (P[i] = e), h({ action: 'REPLACE', location: n }); } }); }, - go: w, + go: M, goBack: function() { - w(-1); + M(-1); }, goForward: function() { - w(1); + M(1); }, block: function(t) { void 0 === t && (t = !1); var e = d.setPrompt(t); return ( - k || (E(1), (k = !0)), + F || (j(1), (F = !0)), function() { - return k && ((k = !1), E(-1)), e(); + return F && ((F = !1), j(-1)), e(); } ); }, listen: function(t) { var e = d.appendListener(t); return ( - E(1), + j(1), function() { - E(-1), e(); + j(-1), e(); } ); } }; - return C; + return V; } - function q(t, e, n) { + function V(t, e, n) { return Math.min(Math.max(t, e), n); } - var W = n(87), - X = n.n(W), - Y = n(61), - $ = n(13), - K = n(45), - Q = n.n(K), - Z = (function(t) { - var e = b(); + var B = n(47), + G = n.n(B), + H = n(157), + U = n.n(H), + q = 1073741823; + var W = + u.a.createContext || + function(t, e) { + var n, + r, + i = '__create-react-context-' + U()() + '__', + o = (function(t) { + function n() { + var e; + return ( + ((e = t.apply(this, arguments) || this).emitter = (function( + t + ) { + var e = []; + return { + on: function(t) { + e.push(t); + }, + off: function(t) { + e = e.filter(function(e) { + return e !== t; + }); + }, + get: function() { + return t; + }, + set: function(n, r) { + (t = n), + e.forEach(function(e) { + return e(t, r); + }); + } + }; + })(e.props.value)), + e + ); + } + G()(n, t); + var r = n.prototype; + return ( + (r.getChildContext = function() { + var t; + return ((t = {})[i] = this.emitter), t; + }), + (r.componentWillReceiveProps = function(t) { + if (this.props.value !== t.value) { + var n, + r = this.props.value, + i = t.value; + ((o = r) === (a = i) + ? 0 !== o || 1 / o == 1 / a + : o != o && a != a) + ? (n = 0) + : ((n = 'function' == typeof e ? e(r, i) : q), + 0 !== (n |= 0) && this.emitter.set(t.value, n)); + } + var o, a; + }), + (r.render = function() { + return this.props.children; + }), + n + ); + })(s.Component); + o.childContextTypes = (((n = {})[i] = h.a.object.isRequired), n); + var a = (function(e) { + function n() { + var t; + return ( + ((t = e.apply(this, arguments) || this).state = { + value: t.getValue() + }), + (t.onUpdate = function(e, n) { + 0 != ((0 | t.observedBits) & n) && + t.setState({ value: t.getValue() }); + }), + t + ); + } + G()(n, e); + var r = n.prototype; + return ( + (r.componentWillReceiveProps = function(t) { + var e = t.observedBits; + this.observedBits = null == e ? q : e; + }), + (r.componentDidMount = function() { + this.context[i] && this.context[i].on(this.onUpdate); + var t = this.props.observedBits; + this.observedBits = null == t ? q : t; + }), + (r.componentWillUnmount = function() { + this.context[i] && this.context[i].off(this.onUpdate); + }), + (r.getValue = function() { + return this.context[i] ? this.context[i].get() : t; + }), + (r.render = function() { + return ((t = this.props.children), + Array.isArray(t) ? t[0] : t)(this.state.value); + var t; + }), + n + ); + })(s.Component); + return ( + (a.contextTypes = (((r = {})[i] = h.a.object), r)), + { Provider: o, Consumer: a } + ); + }, + X = n(87), + Y = n.n(X), + $ = n(61), + K = n(13), + Q = n(45), + Z = n.n(Q), + J = (function(t) { + var e = W(); return (e.displayName = t), e; })('Router'), - J = (function(t) { + tt = (function(t) { function e(e) { var n; return ( @@ -141988,7 +141997,7 @@ object-assign this.unlisten && this.unlisten(); }), (n.render = function() { - return u.a.createElement(Z.Provider, { + return u.a.createElement(J.Provider, { children: this.props.children || null, value: { history: this.props.history, @@ -142003,11 +142012,12 @@ object-assign })(u.a.Component); u.a.Component; u.a.Component; - var tt = {}, - et = 1e4, - nt = 0; - function rt(t, e) { - void 0 === e && (e = {}), 'string' == typeof e && (e = { path: e }); + var et = {}, + nt = 1e4, + rt = 0; + function it(t, e) { + void 0 === e && (e = {}), + ('string' == typeof e || Array.isArray(e)) && (e = { path: e }); var n = e, r = n.path, i = n.exact, @@ -142017,15 +142027,15 @@ object-assign u = n.sensitive, l = void 0 !== u && u; return [].concat(r).reduce(function(e, n) { - if (!n) return null; + if (!n && '' !== n) return null; if (e) return e; var r = (function(t, e) { var n = '' + e.end + e.strict + e.sensitive, - r = tt[n] || (tt[n] = {}); + r = et[n] || (et[n] = {}); if (r[t]) return r[t]; var i = [], - o = { regexp: X()(t, i, e), keys: i }; - return nt < et && ((r[t] = o), nt++), o; + o = { regexp: Y()(t, i, e), keys: i }; + return rt < nt && ((r[t] = o), rt++), o; })(n, { end: o, strict: s, sensitive: l }), i = r.regexp, a = r.keys, @@ -142046,7 +142056,7 @@ object-assign }; }, null); } - var it = (function(t) { + var ot = (function(t) { function e() { return t.apply(this, arguments) || this; } @@ -142054,85 +142064,87 @@ object-assign f(e, t), (e.prototype.render = function() { var t = this; - return u.a.createElement(Z.Consumer, null, function(e) { - e || A(!1); + return u.a.createElement(J.Consumer, null, function(e) { + e || _(!1); var n = t.props.location || e.location, r = t.props.computedMatch ? t.props.computedMatch : t.props.path - ? rt(n.pathname, t.props) + ? it(n.pathname, t.props) : e.match, - i = Object(_.a)({}, e, { location: n, match: r }), + i = Object(p.a)({}, e, { location: n, match: r }), o = t.props, a = o.children, s = o.component, l = o.render; - (Array.isArray(a) && 0 === a.length && (a = null), - 'function' == typeof a) && - (void 0 === (a = a(i)) && (a = null)); - return u.a.createElement( - Z.Provider, - { value: i }, - a && - !(function(t) { - return 0 === u.a.Children.count(t); - })(a) - ? a - : i.match - ? s - ? u.a.createElement(s, i) - : l - ? l(i) + return ( + Array.isArray(a) && 0 === a.length && (a = null), + u.a.createElement( + J.Provider, + { value: i }, + i.match + ? a + ? 'function' == typeof a + ? a(i) + : a + : s + ? u.a.createElement(s, i) + : l + ? l(i) + : null + : 'function' == typeof a + ? a(i) : null - : null + ) ); }); }), e ); })(u.a.Component); - function ot(t) { + function at(t) { return '/' === t.charAt(0) ? t : '/' + t; } - function at(t, e) { + function st(t, e) { if (!t) return e; - var n = ot(t); + var n = at(t); return 0 !== e.pathname.indexOf(n) ? e - : Object(_.a)({}, e, { pathname: e.pathname.substr(n.length) }); - } - function st(t) { - return 'string' == typeof t ? t : M(t); + : Object(p.a)({}, e, { pathname: e.pathname.substr(n.length) }); } function ut(t) { + return 'string' == typeof t ? t : k(t); + } + function lt(t) { return function() { - A(!1); + _(!1); }; } - function lt() {} + function ct() {} u.a.Component; u.a.Component; - function ct(t) { + function ft(t) { var e = 'withRouter(' + (t.displayName || t.name) + ')', n = function(e) { var n = e.wrappedComponentRef, - r = Object($.a)(e, ['wrappedComponentRef']); - return u.a.createElement(Z.Consumer, null, function(e) { + r = Object(K.a)(e, ['wrappedComponentRef']); + return u.a.createElement(J.Consumer, null, function(e) { return ( - e || A(!1), - u.a.createElement(t, Object(_.a)({}, r, e, { ref: n })) + e || _(!1), + u.a.createElement(t, Object(p.a)({}, r, e, { ref: n })) ); }); }; - return (n.displayName = e), (n.WrappedComponent = t), Q()(n, t); + return (n.displayName = e), (n.WrappedComponent = t), Z()(n, t); } + u.a.useContext; u.a.Component; - var ft = (function(t) { + var dt = (function(t) { function e() { for (var e, n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return ( - ((e = t.call.apply(t, [this].concat(r)) || this).history = U( + ((e = t.call.apply(t, [this].concat(r)) || this).history = F( e.props )), e @@ -142141,7 +142153,7 @@ object-assign return ( f(e, t), (e.prototype.render = function() { - return u.a.createElement(J, { + return u.a.createElement(tt, { history: this.history, children: this.props.children }); @@ -142149,75 +142161,159 @@ object-assign e ); })(u.a.Component); - var dt = (function(t) { - function e() { - return t.apply(this, arguments) || this; - } - f(e, t); - var n = e.prototype; - return ( - (n.handleClick = function(t, e) { - try { - this.props.onClick && this.props.onClick(t); - } catch (e) { - throw (t.preventDefault(), e); + var ht = function(t, e) { + return 'function' == typeof t ? t(e) : t; + }, + pt = function(t, e) { + return 'string' == typeof t ? A(t, null, null, e) : t; + }, + gt = function(t) { + return t; + }, + mt = u.a.forwardRef; + void 0 === mt && (mt = gt); + var vt = mt(function(t, e) { + var n = t.innerRef, + r = t.navigate, + i = t.onClick, + o = Object(K.a)(t, ['innerRef', 'navigate', 'onClick']), + a = o.target, + s = Object(p.a)({}, o, { + onClick: function(t) { + try { + i && i(t); + } catch (e) { + throw (t.preventDefault(), e); + } + t.defaultPrevented || + 0 !== t.button || + (a && '_self' !== a) || + (function(t) { + return !!(t.metaKey || t.altKey || t.ctrlKey || t.shiftKey); + })(t) || + (t.preventDefault(), r()); } - t.defaultPrevented || - 0 !== t.button || - (this.props.target && '_self' !== this.props.target) || - (function(t) { - return !!(t.metaKey || t.altKey || t.ctrlKey || t.shiftKey); - })(t) || - (t.preventDefault(), - (this.props.replace ? e.replace : e.push)(this.props.to)); - }), - (n.render = function() { - var t = this, - e = this.props, - n = e.innerRef, - r = (e.replace, e.to), - i = Object($.a)(e, ['innerRef', 'replace', 'to']); - return u.a.createElement(Z.Consumer, null, function(e) { - e || A(!1); - var o = 'string' == typeof r ? L(r, null, null, e.location) : r, - a = o ? e.history.createHref(o) : ''; - return u.a.createElement( - 'a', - Object(_.a)({}, i, { - onClick: function(n) { - return t.handleClick(n, e.history); - }, - href: a, - ref: n - }) - ); - }); - }), - e - ); - })(u.a.Component); - var ht = n(86), - pt = function() { + }); + return (s.ref = (gt !== mt && e) || n), u.a.createElement('a', s); + }); + var yt = mt(function(t, e) { + var n = t.component, + r = void 0 === n ? vt : n, + i = t.replace, + o = t.to, + a = t.innerRef, + s = Object(K.a)(t, ['component', 'replace', 'to', 'innerRef']); + return u.a.createElement(J.Consumer, null, function(t) { + t || _(!1); + var n = t.history, + l = pt(ht(o, t.location), t.location), + c = l ? n.createHref(l) : '', + f = Object(p.a)({}, s, { + href: c, + navigate: function() { + var e = ht(o, t.location); + (i ? n.replace : n.push)(e); + } + }); + return ( + gt !== mt ? (f.ref = e || a) : (f.innerRef = a), + u.a.createElement(r, f) + ); + }); + }), + bt = function(t) { + return t; + }, + _t = u.a.forwardRef; + void 0 === _t && (_t = bt); + _t(function(t, e) { + var n = t['aria-current'], + r = void 0 === n ? 'page' : n, + i = t.activeClassName, + o = void 0 === i ? 'active' : i, + a = t.activeStyle, + s = t.className, + l = t.exact, + c = t.isActive, + f = t.location, + d = t.strict, + h = t.style, + g = t.to, + m = t.innerRef, + v = Object(K.a)(t, [ + 'aria-current', + 'activeClassName', + 'activeStyle', + 'className', + 'exact', + 'isActive', + 'location', + 'strict', + 'style', + 'to', + 'innerRef' + ]); + return u.a.createElement(J.Consumer, null, function(t) { + t || _(!1); + var n = f || t.location, + i = pt(ht(g, n), n), + y = i.pathname, + b = y && y.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1'), + x = b ? it(n.pathname, { path: b, exact: l, strict: d }) : null, + w = !!(c ? c(x, n) : x), + S = w + ? (function() { + for ( + var t = arguments.length, e = new Array(t), n = 0; + n < t; + n++ + ) + e[n] = arguments[n]; + return e + .filter(function(t) { + return t; + }) + .join(' '); + })(s, o) + : s, + E = w ? Object(p.a)({}, h, {}, a) : h, + k = Object(p.a)( + { + 'aria-current': (w && r) || null, + className: S, + style: E, + to: i + }, + v + ); + return ( + bt !== _t ? (k.ref = e || m) : (k.innerRef = m), + u.a.createElement(yt, k) + ); + }); + }); + var xt = n(86), + wt = function() { return Math.random() .toString(36) .substring(7) .split('') .join('.'); }, - gt = { - INIT: '@@redux/INIT' + pt(), - REPLACE: '@@redux/REPLACE' + pt(), + St = { + INIT: '@@redux/INIT' + wt(), + REPLACE: '@@redux/REPLACE' + wt(), PROBE_UNKNOWN_ACTION: function() { - return '@@redux/PROBE_UNKNOWN_ACTION' + pt(); + return '@@redux/PROBE_UNKNOWN_ACTION' + wt(); } }; - function mt(t) { + function Et(t) { if ('object' != typeof t || null === t) return !1; for (var e = t; null !== Object.getPrototypeOf(e); ) e = Object.getPrototypeOf(e); return Object.getPrototypeOf(t) === e; } - function vt(t, e, n) { + function kt(t, e, n) { var r; if ( ('function' == typeof e && 'function' == typeof n) || @@ -142232,7 +142328,7 @@ object-assign ) { if ('function' != typeof n) throw new Error('Expected the enhancer to be a function.'); - return n(vt)(t, e); + return n(kt)(t, e); } if ('function' != typeof t) throw new Error('Expected the reducer to be a function.'); @@ -142276,7 +142372,7 @@ object-assign ); } function d(t) { - if (!mt(t)) + if (!Et(t)) throw new Error( 'Actions must be plain objects. Use custom middleware for async actions.' ); @@ -142296,7 +142392,7 @@ object-assign return t; } return ( - d({ type: gt.INIT }), + d({ type: St.INIT }), ((r = { dispatch: d, subscribe: f, @@ -142304,9 +142400,9 @@ object-assign replaceReducer: function(t) { if ('function' != typeof t) throw new Error('Expected the nextReducer to be a function.'); - (i = t), d({ type: gt.REPLACE }); + (i = t), d({ type: St.REPLACE }); } - })[ht.a] = function() { + })[xt.a] = function() { var t, e = f; return ( @@ -142321,7 +142417,7 @@ object-assign } return n(), { unsubscribe: e(n) }; } - })[ht.a] = function() { + })[xt.a] = function() { return this; }), t @@ -142330,7 +142426,7 @@ object-assign r ); } - function yt(t, e) { + function At(t, e) { var n = e && e.type; return ( 'Given ' + @@ -142340,12 +142436,12 @@ object-assign '" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.' ); } - function bt(t, e) { + function Tt(t, e) { return function() { return e(t.apply(this, arguments)); }; } - function _t(t, e, n) { + function Ct(t, e, n) { return ( e in t ? Object.defineProperty(t, e, { @@ -142358,7 +142454,7 @@ object-assign t ); } - function xt(t, e) { + function Ot(t, e) { var n = Object.keys(t); return ( Object.getOwnPropertySymbols && @@ -142370,16 +142466,16 @@ object-assign n ); } - function wt(t) { + function Pt(t) { for (var e = 1; e < arguments.length; e++) { var n = null != arguments[e] ? arguments[e] : {}; e % 2 - ? xt(n, !0).forEach(function(e) { - _t(t, e, n[e]); + ? Ot(n, !0).forEach(function(e) { + Ct(t, e, n[e]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) - : xt(n).forEach(function(e) { + : Ot(n).forEach(function(e) { Object.defineProperty( t, e, @@ -142389,7 +142485,7 @@ object-assign } return t; } - function St() { + function Mt() { for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++) e[n] = arguments[n]; return 0 === e.length @@ -142404,21 +142500,21 @@ object-assign }; }); } - var Et = u.a.createContext(null); - var kt = function(t) { + var Lt = u.a.createContext(null); + var jt = function(t) { t(); }, - At = function() { - return kt; + Dt = function() { + return jt; }, - Tt = null, - Ct = { notify: function() {} }; - var Ot = (function() { + Rt = null, + zt = { notify: function() {} }; + var Nt = (function() { function t(t, e) { (this.store = t), (this.parentSub = e), (this.unsubscribe = null), - (this.listeners = Ct), + (this.listeners = zt), (this.handleChangeWrapper = this.handleChangeWrapper.bind(this)); } var e = t.prototype; @@ -142442,12 +142538,12 @@ object-assign ? this.parentSub.addNestedSub(this.handleChangeWrapper) : this.store.subscribe(this.handleChangeWrapper)), (this.listeners = - ((t = At()), + ((t = Dt()), (e = []), (n = []), { clear: function() { - (n = Tt), (e = Tt); + (n = Rt), (e = Rt); }, notify: function() { var r = (e = n); @@ -142465,7 +142561,7 @@ object-assign n.push(t), function() { r && - e !== Tt && + e !== Rt && ((r = !1), n === e && (n = e.slice()), n.splice(n.indexOf(t), 1)); @@ -142479,18 +142575,18 @@ object-assign (this.unsubscribe(), (this.unsubscribe = null), this.listeners.clear(), - (this.listeners = Ct)); + (this.listeners = zt)); }), t ); })(); - function Pt(t) { + function It(t) { var e = t.store, n = t.context, r = t.children, i = Object(s.useMemo)( function() { - var t = new Ot(e); + var t = new Nt(e); return ( (t.onStateChange = t.notifyNestedSubs), { store: e, subscription: t } @@ -142517,37 +142613,37 @@ object-assign }, [i, o] ); - var a = n || Et; + var a = n || Lt; return u.a.createElement(a.Provider, { value: i }, r); } - Pt.propTypes = { - store: g.a.shape({ - subscribe: g.a.func.isRequired, - dispatch: g.a.func.isRequired, - getState: g.a.func.isRequired + It.propTypes = { + store: h.a.shape({ + subscribe: h.a.func.isRequired, + dispatch: h.a.func.isRequired, + getState: h.a.func.isRequired }), - context: g.a.object, - children: g.a.any + context: h.a.object, + children: h.a.any }; - var Mt = Pt, - Lt = n(27), - Dt = n.n(Lt), - jt = [], - Rt = [null, null]; - function zt(t, e) { + var Ft = It, + Vt = n(27), + Bt = n.n(Vt), + Gt = [], + Ht = [null, null]; + function Ut(t, e) { var n = t[1]; return [e.payload, n + 1]; } - var Nt = function() { + var qt = function() { return [null, 0]; }, - It = + Wt = 'undefined' != typeof window && void 0 !== window.document && void 0 !== window.document.createElement ? s.useLayoutEffect : s.useEffect; - function Ft(t, e) { + function Xt(t, e) { void 0 === e && (e = {}); var n = e, r = n.getDisplayName, @@ -142564,14 +142660,14 @@ object-assign f = n.shouldHandleStateChanges, d = void 0 === f || f, h = n.storeKey, - p = void 0 === h ? 'store' : h, - g = n.withRef, - m = void 0 !== g && g, - v = n.forwardRef, - y = void 0 !== v && v, - b = n.context, - x = void 0 === b ? Et : b, - w = Object($.a)(n, [ + g = void 0 === h ? 'store' : h, + m = n.withRef, + v = void 0 !== m && m, + y = n.forwardRef, + b = void 0 !== y && y, + _ = n.context, + x = void 0 === _ ? Lt : _, + w = Object(K.a)(n, [ 'getDisplayName', 'methodName', 'renderCountProp', @@ -142581,28 +142677,28 @@ object-assign 'forwardRef', 'context' ]); - Dt()( + Bt()( void 0 === c, 'renderCountProp is removed. render counting is built into the latest React Dev Tools profiling extension' ), - Dt()( - !m, + Bt()( + !v, 'withRef is removed. To access the wrapped instance, use a ref on the connected component' ); - Dt()( - 'store' === p, + Bt()( + 'store' === g, "storeKey has been removed and does not do anything. To use a custom Redux store for specific components, create a custom React context with React.createContext(), and pass the context object to React Redux's Provider and specific components like: . You may also pass a {context : MyContext} option to connect" ); var S = x; return function(e) { var n = e.displayName || e.name || 'Component', r = i(n), - o = Object(_.a)({}, w, { + o = Object(p.a)({}, w, { getDisplayName: i, methodName: a, renderCountProp: c, shouldHandleStateChanges: d, - storeKey: p, + storeKey: g, displayName: r, wrappedComponentName: n, WrappedComponent: e @@ -142617,7 +142713,7 @@ object-assign var i = Object(s.useMemo)( function() { var t = n.forwardedRef, - e = Object($.a)(n, ['forwardedRef']); + e = Object(K.a)(n, ['forwardedRef']); return [n.context, t, e]; }, [n] @@ -142629,7 +142725,7 @@ object-assign function() { return a && a.Consumer && - Object(Y.isContextConsumer)( + Object($.isContextConsumer)( u.a.createElement(a.Consumer, null) ) ? a @@ -142637,44 +142733,44 @@ object-assign }, [a, S] ), - p = Object(s.useContext)(h), - g = Boolean(n.store), - m = Boolean(p) && Boolean(p.store); - Dt()( - g || m, + g = Object(s.useContext)(h), + m = Boolean(n.store), + v = Boolean(g) && Boolean(g.store); + Bt()( + m || v, 'Could not find "store" in the context of "' + r + '". Either wrap the root component in a , or pass a custom React context provider to and the corresponding React context consumer to ' + r + ' in connect options.' ); - var v = n.store || p.store, - y = Object(s.useMemo)( + var y = n.store || g.store, + b = Object(s.useMemo)( function() { return (function(e) { return t(e.dispatch, o); - })(v); + })(y); }, - [v] + [y] ), - b = Object(s.useMemo)( + _ = Object(s.useMemo)( function() { - if (!d) return Rt; - var t = new Ot(v, g ? null : p.subscription), + if (!d) return Ht; + var t = new Nt(y, m ? null : g.subscription), e = t.notifyNestedSubs.bind(t); return [t, e]; }, - [v, g, p] + [y, m, g] ), - x = b[0], - w = b[1], + x = _[0], + w = _[1], E = Object(s.useMemo)( function() { - return g ? p : Object(_.a)({}, p, { subscription: x }); + return m ? g : Object(p.a)({}, g, { subscription: x }); }, - [g, p, x] + [m, g, x] ), - k = Object(s.useReducer)(zt, jt, Nt), + k = Object(s.useReducer)(Ut, Gt, qt), A = k[0][0], T = k[1]; if (A && A.error) throw A.error; @@ -142686,17 +142782,17 @@ object-assign function() { return P.current && c === O.current ? P.current - : y(v.getState(), c); + : b(y.getState(), c); }, - [v, A, c] + [y, A, c] ); - It(function() { + Wt(function() { (O.current = c), (C.current = L), (M.current = !1), P.current && ((P.current = null), w()); }), - It( + Wt( function() { if (d) { var t = !1, @@ -142705,9 +142801,9 @@ object-assign if (!t) { var n, r, - i = v.getState(); + i = y.getState(); try { - n = y(i, O.current); + n = b(i, O.current); } catch (t) { (r = t), (e = t); } @@ -142735,42 +142831,42 @@ object-assign }; } }, - [v, x, y] + [y, x, b] ); - var D = Object(s.useMemo)( + var j = Object(s.useMemo)( function() { - return u.a.createElement(e, Object(_.a)({}, L, { ref: l })); + return u.a.createElement(e, Object(p.a)({}, L, { ref: l })); }, [l, e, L] ); return Object(s.useMemo)( function() { - return d ? u.a.createElement(h.Provider, { value: E }, D) : D; + return d ? u.a.createElement(h.Provider, { value: E }, j) : j; }, - [h, D, E] + [h, j, E] ); } - var g = l ? u.a.memo(h) : h; - if (((g.WrappedComponent = e), (g.displayName = r), y)) { - var m = u.a.forwardRef(function(t, e) { + var m = l ? u.a.memo(h) : h; + if (((m.WrappedComponent = e), (m.displayName = r), b)) { + var v = u.a.forwardRef(function(t, e) { return u.a.createElement( - g, - Object(_.a)({}, t, { forwardedRef: e }) + m, + Object(p.a)({}, t, { forwardedRef: e }) ); }); - return (m.displayName = r), (m.WrappedComponent = e), Q()(m, e); + return (v.displayName = r), (v.WrappedComponent = e), Z()(v, e); } - return Q()(g, e); + return Z()(m, e); }; } - var Vt = Object.prototype.hasOwnProperty; - function Bt(t, e) { + var Yt = Object.prototype.hasOwnProperty; + function $t(t, e) { return t === e ? 0 !== t || 0 !== e || 1 / t == 1 / e : t != t && e != e; } - function Gt(t, e) { - if (Bt(t, e)) return !0; + function Kt(t, e) { + if ($t(t, e)) return !0; if ( 'object' != typeof t || null === t || @@ -142782,10 +142878,10 @@ object-assign r = Object.keys(e); if (n.length !== r.length) return !1; for (var i = 0; i < n.length; i++) - if (!Vt.call(e, n[i]) || !Bt(t[n[i]], e[n[i]])) return !1; + if (!Yt.call(e, n[i]) || !$t(t[n[i]], e[n[i]])) return !1; return !0; } - function Ht(t) { + function Qt(t) { return function(e, n) { var r = t(e, n); function i() { @@ -142794,12 +142890,12 @@ object-assign return (i.dependsOnOwnProps = !1), i; }; } - function Ut(t) { + function Zt(t) { return null !== t.dependsOnOwnProps && void 0 !== t.dependsOnOwnProps ? Boolean(t.dependsOnOwnProps) : 1 !== t.length; } - function qt(t, e) { + function Jt(t, e) { return function(e, n) { n.displayName; var r = function(t, e) { @@ -142808,12 +142904,12 @@ object-assign return ( (r.dependsOnOwnProps = !0), (r.mapToProps = function(e, n) { - (r.mapToProps = t), (r.dependsOnOwnProps = Ut(t)); + (r.mapToProps = t), (r.dependsOnOwnProps = Zt(t)); var i = r(e, n); return ( 'function' == typeof i && ((r.mapToProps = i), - (r.dependsOnOwnProps = Ut(i)), + (r.dependsOnOwnProps = Zt(i)), (i = r(e, n))), i ); @@ -142822,22 +142918,22 @@ object-assign ); }; } - var Wt = [ + var te = [ function(t) { - return 'function' == typeof t ? qt(t) : void 0; + return 'function' == typeof t ? Jt(t) : void 0; }, function(t) { return t ? void 0 - : Ht(function(t) { + : Qt(function(t) { return { dispatch: t }; }); }, function(t) { return t && 'object' == typeof t - ? Ht(function(e) { + ? Qt(function(e) { return (function(t, e) { - if ('function' == typeof t) return bt(t, e); + if ('function' == typeof t) return Tt(t, e); if ('object' != typeof t || null === t) throw new Error( 'bindActionCreators expected an object or a function, instead received ' + @@ -142847,7 +142943,7 @@ object-assign var n = {}; for (var r in t) { var i = t[r]; - 'function' == typeof i && (n[r] = bt(i, e)); + 'function' == typeof i && (n[r] = Tt(i, e)); } return n; })(t, e); @@ -142855,22 +142951,22 @@ object-assign : void 0; } ]; - var Xt = [ + var ee = [ function(t) { - return 'function' == typeof t ? qt(t) : void 0; + return 'function' == typeof t ? Jt(t) : void 0; }, function(t) { return t ? void 0 - : Ht(function() { + : Qt(function() { return {}; }); } ]; - function Yt(t, e, n) { - return Object(_.a)({}, n, {}, t, {}, e); + function ne(t, e, n) { + return Object(p.a)({}, n, {}, t, {}, e); } - var $t = [ + var re = [ function(t) { return 'function' == typeof t ? (function(t) { @@ -142894,16 +142990,16 @@ object-assign return t ? void 0 : function() { - return Yt; + return ne; }; } ]; - function Kt(t, e, n, r) { + function ie(t, e, n, r) { return function(i, o) { return n(t(i, o), e(r, o), o); }; } - function Qt(t, e, n, r, i) { + function oe(t, e, n, r, i) { var o, a, s, @@ -142948,11 +143044,11 @@ object-assign l); }; } - function Zt(t, e) { + function ae(t, e) { var n = e.initMapStateToProps, r = e.initMapDispatchToProps, i = e.initMergeProps, - o = Object($.a)(e, [ + o = Object(K.a)(e, [ 'initMapStateToProps', 'initMapDispatchToProps', 'initMergeProps' @@ -142960,9 +143056,9 @@ object-assign a = n(t, o), s = r(t, o), u = i(t, o); - return (o.pure ? Qt : Kt)(a, s, u, t, o); + return (o.pure ? oe : ie)(a, s, u, t, o); } - function Jt(t, e, n) { + function se(t, e, n) { for (var r = e.length - 1; r >= 0; r--) { var i = e[r](t); if (i) return i; @@ -142979,92 +143075,92 @@ object-assign ); }; } - function te(t, e) { + function ue(t, e) { return t === e; } - var ee, - ne, - re, - ie, - oe, - ae, - se, - ue, - le, + var le, ce, fe, de, - he = - ((re = (ne = void 0 === ee ? {} : ee).connectHOC), - (ie = void 0 === re ? Ft : re), - (oe = ne.mapStateToPropsFactories), - (ae = void 0 === oe ? Xt : oe), - (se = ne.mapDispatchToPropsFactories), - (ue = void 0 === se ? Wt : se), - (le = ne.mergePropsFactories), - (ce = void 0 === le ? $t : le), - (fe = ne.selectorFactory), - (de = void 0 === fe ? Zt : fe), + he, + pe, + ge, + me, + ve, + ye, + be, + _e, + xe = + ((fe = (ce = void 0 === le ? {} : le).connectHOC), + (de = void 0 === fe ? Xt : fe), + (he = ce.mapStateToPropsFactories), + (pe = void 0 === he ? ee : he), + (ge = ce.mapDispatchToPropsFactories), + (me = void 0 === ge ? te : ge), + (ve = ce.mergePropsFactories), + (ye = void 0 === ve ? re : ve), + (be = ce.selectorFactory), + (_e = void 0 === be ? ae : be), function(t, e, n, r) { void 0 === r && (r = {}); var i = r, o = i.pure, a = void 0 === o || o, s = i.areStatesEqual, - u = void 0 === s ? te : s, + u = void 0 === s ? ue : s, l = i.areOwnPropsEqual, - c = void 0 === l ? Gt : l, + c = void 0 === l ? Kt : l, f = i.areStatePropsEqual, - d = void 0 === f ? Gt : f, + d = void 0 === f ? Kt : f, h = i.areMergedPropsEqual, - p = void 0 === h ? Gt : h, - g = Object($.a)(i, [ + g = void 0 === h ? Kt : h, + m = Object(K.a)(i, [ 'pure', 'areStatesEqual', 'areOwnPropsEqual', 'areStatePropsEqual', 'areMergedPropsEqual' ]), - m = Jt(t, ae, 'mapStateToProps'), - v = Jt(e, ue, 'mapDispatchToProps'), - y = Jt(n, ce, 'mergeProps'); - return ie( - de, - Object(_.a)( + v = se(t, pe, 'mapStateToProps'), + y = se(e, me, 'mapDispatchToProps'), + b = se(n, ye, 'mergeProps'); + return de( + _e, + Object(p.a)( { methodName: 'connect', getDisplayName: function(t) { return 'Connect(' + t + ')'; }, shouldHandleStateChanges: Boolean(t), - initMapStateToProps: m, - initMapDispatchToProps: v, - initMergeProps: y, + initMapStateToProps: v, + initMapDispatchToProps: y, + initMergeProps: b, pure: a, areStatesEqual: u, areOwnPropsEqual: c, areStatePropsEqual: d, - areMergedPropsEqual: p + areMergedPropsEqual: g }, - g + m ) ); }); - function pe() { - var t = Object(s.useContext)(Et); + function we() { + var t = Object(s.useContext)(Lt); return ( - Dt()( + Bt()( t, 'could not find react-redux context value; please ensure the component is wrapped in a ' ), t ); } - function ge(t) { - void 0 === t && (t = Et); + function Se(t) { + void 0 === t && (t = Lt); var e = - t === Et - ? pe + t === Lt + ? we : function() { return Object(s.useContext)(t); }; @@ -143072,26 +143168,26 @@ object-assign return e().store; }; } - var me = ge(); + var Ee = Se(); !(function(t) { - void 0 === t && (t = Et); - var e = t === Et ? me : ge(t); + void 0 === t && (t = Lt); + var e = t === Lt ? Ee : Se(t); })(); - var ve = 'undefined' != typeof window ? s.useLayoutEffect : s.useEffect, - ye = function(t, e) { + var ke = 'undefined' != typeof window ? s.useLayoutEffect : s.useEffect, + Ae = function(t, e) { return t === e; }; - var be; + var Te; !(function(t) { - void 0 === t && (t = Et); + void 0 === t && (t = Lt); var e = - t === Et - ? pe + t === Lt + ? we : function() { return Object(s.useContext)(t); }; })(); - function _e(t) { + function Ce(t) { return function(e) { var n = e.dispatch, r = e.getState; @@ -143102,21 +143198,21 @@ object-assign }; }; } - (be = l.unstable_batchedUpdates), (kt = be); - var xe = _e(); - xe.withExtraArgument = _e; - var we = xe, - Se = n(62), - Ee = n.n(Se), - ke = n(154), - Ae = n.n(ke), - Te = n(5), - Ce = n.n(Te), - Oe = n(10), - Pe = n.n(Oe), - Me = n(11), - Le = n.n(Me); - function De(t, e, n, r, i, o) { + (Te = l.unstable_batchedUpdates), (jt = Te); + var Oe = Ce(); + Oe.withExtraArgument = Ce; + var Pe = Oe, + Me = n(62), + Le = n.n(Me), + je = n(154), + De = n.n(je), + Re = n(5), + ze = n.n(Re), + Ne = n(10), + Ie = n.n(Ne), + Fe = n(11), + Ve = n.n(Fe); + function Be(t, e, n, r, i, o) { var a = 0, s = 0, u = 0, @@ -143195,7 +143291,7 @@ object-assign } return { top: a, left: s, width: u, height: l }; } - function je(t, e, n, r) { + function Ge(t, e, n, r) { var i = r.width, o = 20 * Math.round((r.top + window.pageYOffset) / 20), a = 20; @@ -143204,7 +143300,7 @@ object-assign left: e <= 0 ? 20 : e + n >= i - a ? i - n - a : e }; } - var Re = function(t, e) { + var He = function(t, e) { switch (t) { case 'az': return e.sort(function(t, e) { @@ -143244,7 +143340,7 @@ object-assign }); } }, - ze = { + Ue = { id: 1, title: 'My great dashboard', last_modified_date: 'Mon, 02 Dec 2019 15:16:38 GMT', @@ -143297,11 +143393,11 @@ object-assign ] } }, - Ne = n(155), - Ie = function() { - return Object(Ne.uuid)(); + qe = n(155), + We = function() { + return Object(qe.uuid)(); }; - function Fe(t, e) { + function Xe(t, e) { var n = Object.keys(t); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(t); @@ -143313,22 +143409,22 @@ object-assign } return n; } - var Ve = function(t) { + var Ye = function(t) { return void 0 !== t.id ? t : (function(t) { for (var e = 1; e < arguments.length; e++) { var n = null != arguments[e] ? arguments[e] : {}; e % 2 - ? Fe(n, !0).forEach(function(e) { - Pe()(t, e, n[e]); + ? Xe(n, !0).forEach(function(e) { + Ie()(t, e, n[e]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties( t, Object.getOwnPropertyDescriptors(n) ) - : Fe(n).forEach(function(e) { + : Xe(n).forEach(function(e) { Object.defineProperty( t, e, @@ -143337,9 +143433,9 @@ object-assign }); } return t; - })({}, t, { id: Ie() }); + })({}, t, { id: We() }); }; - function Be(t, e) { + function $e(t, e) { var n = Object.keys(t); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(t); @@ -143351,16 +143447,16 @@ object-assign } return n; } - function Ge(t) { + function Ke(t) { for (var e = 1; e < arguments.length; e++) { var n = null != arguments[e] ? arguments[e] : {}; e % 2 - ? Be(n, !0).forEach(function(e) { - Pe()(t, e, n[e]); + ? $e(n, !0).forEach(function(e) { + Ie()(t, e, n[e]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) - : Be(n).forEach(function(e) { + : $e(n).forEach(function(e) { Object.defineProperty( t, e, @@ -143370,14 +143466,14 @@ object-assign } return t; } - var He = { value: '', label: 'Default' }, - Ue = { + var Qe = { value: '', label: 'Default' }, + Ze = { dashboardInfo: { id: '', title: '', data: { version: 2, items: [] }, settings: { - palette: He, + palette: Qe, colors: [], picker: {}, dryRun: !1, @@ -143409,7 +143505,7 @@ object-assign dashboardMenuFilter: '', sortingValue: { value: 'az', label: 'A - Z' } }, - qe = (function(t) { + Je = (function(t) { for (var e = Object.keys(t), n = {}, r = 0; r < e.length; r++) { var i = e[r]; 0, 'function' == typeof t[i] && (n[i] = t[i]); @@ -143420,18 +143516,18 @@ object-assign !(function(t) { Object.keys(t).forEach(function(e) { var n = t[e]; - if (void 0 === n(void 0, { type: gt.INIT })) + if (void 0 === n(void 0, { type: St.INIT })) throw new Error( 'Reducer "' + e + '" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don\'t want to set a value for this reducer, you can use null instead of undefined.' ); - if (void 0 === n(void 0, { type: gt.PROBE_UNKNOWN_ACTION() })) + if (void 0 === n(void 0, { type: St.PROBE_UNKNOWN_ACTION() })) throw new Error( 'Reducer "' + e + '" returned undefined when probed with a random type. Don\'t try to handle ' + - gt.INIT + + St.INIT + ' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.' ); }); @@ -143447,7 +143543,7 @@ object-assign c = t[u], f = l(c, e); if (void 0 === f) { - var d = yt(u, e); + var d = At(u, e); throw new Error(d); } (i[u] = f), (r = r || f !== c); @@ -143455,17 +143551,17 @@ object-assign return r ? i : t; }; })( - Pe()({}, 'app', function() { + Ie()({}, 'app', function() { var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] - : Ue, + : Ze, e = arguments.length > 1 ? arguments[1] : void 0, n = t.dashboardInfo, r = t.grid; switch (e.type) { case 'LOAD_DASHBOARDS': - return Ge({}, t, { + return Ke({}, t, { isDashboardListLoaded: !0, dashboardList: e.dashboardList.sort(function(t, e) { return t.title.toLowerCase() < e.title.toLowerCase() @@ -143476,17 +143572,17 @@ object-assign }) }); case 'ADD_DASHBOARD_ITEM': - return Ge({}, t, { + return Ke({}, t, { dashboardInfo: e.dashboardInfo, newDashboardId: e.dashboardInfo.id }); case 'HANDLE_SEARCH': - return Ge({}, t, { searchInput: e.value }); + return Ke({}, t, { searchInput: e.value }); case 'DELETE_DASHBOARD_ITEM': var i = t.dashboardList.filter(function(t) { return t.id !== e.id; }); - return Ge({}, t, { + return Ke({}, t, { dashboardList: i.sort(function(t, e) { return t.title.toLowerCase() < e.title.toLowerCase() ? -1 @@ -143500,26 +143596,26 @@ object-assign a = (o && o.map(function(t) { - return Ve(t); + return Ye(t); })) || [], - s = Ge({}, e.dashboardInfo, { - data: Ge({}, e.dashboardInfo.data, { items: a }) + s = Ke({}, e.dashboardInfo, { + data: Ke({}, e.dashboardInfo.data, { items: a }) }); - return Ge({}, t, { + return Ke({}, t, { isDashboardLoading: e.isDashboardLoading, dashboardInfo: s }); case 'UPDATE_DASHBOARD_INFO': - return Ge({}, t, { dashboardInfo: e.dashboardInfo }); + return Ke({}, t, { dashboardInfo: e.dashboardInfo }); case 'CLEAR_DASHBOARD_INFO': - return Ge({}, t, { + return Ke({}, t, { dashboardInfo: { id: '', title: '', data: { version: 2, items: [] }, settings: { - palette: He, + palette: Qe, colors: [], picker: {}, dryRun: !1, @@ -143533,15 +143629,15 @@ object-assign settingsVisible: !1 }); case 'SET_LOADING': - return Ge({}, t, { isLoading: e.index }); + return Ke({}, t, { isLoading: e.index }); case 'SELECT_SAVED_QUERY': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - data: Ge({}, n.data, { - items: Ce()( + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + data: Ke({}, n.data, { + items: ze()( n.data.items.map(function(t, n) { return e.index === n - ? Ge({}, t, { + ? Ke({}, t, { sparkline: !1, savedQuery: e.savedQueries, error: !1 @@ -143553,13 +143649,13 @@ object-assign }) }); case 'CHANGE_CHART_TYPE': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - data: Ge({}, n.data, { - items: Ce()( + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + data: Ke({}, n.data, { + items: ze()( n.data.items.map(function(t, n) { return e.index === n - ? Ge({}, t, { type: e.value }) + ? Ke({}, t, { type: e.value }) : t; }) ) @@ -143568,12 +143664,12 @@ object-assign isLoading: !1 }); case 'SAVED_QUERY_ERROR': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - data: Ge({}, n.data, { + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + data: Ke({}, n.data, { items: n.data.items.map(function(t, n) { return e.index === n - ? Ge({}, t, { error: e.error }) + ? Ke({}, t, { error: e.error }) : t; }) }) @@ -143581,14 +143677,14 @@ object-assign }); case 'GET_SAVED_QUERIES': var u = e.savedQueries; - return Ge({}, t, { savedQueries: u }); + return Ke({}, t, { savedQueries: u }); case 'LOAD_SAVED_QUERIES': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - data: Ge({}, n.data, { + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + data: Ke({}, n.data, { items: n.data.items.map(function(t, n) { return e.index === n - ? Ge({}, t, { + ? Ke({}, t, { sparkline: !!t.sparkline && t.sparkline }) : t; @@ -143597,132 +143693,132 @@ object-assign }) }); case 'LOAD_SAVED_ERROR': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - data: Ge({}, n.data, { + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + data: Ke({}, n.data, { items: n.data.items.map(function(t, n) { return e.index === n - ? Ge({}, t, { error: e.error }) + ? Ke({}, t, { error: e.error }) : t; }) }) }) }); case 'SAVE_DASHBOARD': - return Ge({}, t, { dashboardSaved: !0 }); + return Ke({}, t, { dashboardSaved: !0 }); case 'HIDE_SAVED_DASHBOARD_MESSAGE': - return Ge({}, t, { dashboardSaved: !1 }); + return Ke({}, t, { dashboardSaved: !1 }); case 'CHANGE_DASHBOARD_TITLE': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { title: e.title }) + return Ke({}, t, { + dashboardInfo: Ke({}, n, { title: e.title }) }); case 'TOGGLE_DRY_RUN': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - settings: Ge({}, n.settings, { + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + settings: Ke({}, n.settings, { dryRun: !n.settings.dryRun }), - theme: Ge({}, n.theme) + theme: Ke({}, n.theme) }) }); case 'TOGGLE_IS_PUBLIC': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { is_public: !n.is_public }) + return Ke({}, t, { + dashboardInfo: Ke({}, n, { is_public: !n.is_public }) }); case 'SET_THEME': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - settings: Ge({}, n.settings, { theme: e.value }) + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + settings: Ke({}, n.settings, { theme: e.value }) }) }); case 'SET_CHART_THEME': var l = n.settings.charts_theme - ? Ce()(n.settings.charts_theme) + ? ze()(n.settings.charts_theme) : []; return ( (l[e.index] = e.value), - Ge({}, t, { - dashboardInfo: Ge({}, n, { - settings: Ge({}, n.settings, { charts_theme: l }) + Ke({}, t, { + dashboardInfo: Ke({}, n, { + settings: Ke({}, n.settings, { charts_theme: l }) }) }) ); case 'SET_LAYOUT': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - settings: Ge({}, n.settings, { + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + settings: Ke({}, n.settings, { layout: e.layout, items: e.items }) }) }); case 'SELECT_PALETTE': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - settings: Ge({}, n.settings, { palette: e.value }), - data: Ge({}, n.data, { + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + settings: Ke({}, n.settings, { palette: e.value }), + data: Ke({}, n.data, { items: n.data.items && n.data.items.map(function(t) { - return Ge({}, t, { palette: e.value }); + return Ke({}, t, { palette: e.value }); }) }) }) }); case 'CHANGE_COLORS': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - settings: Ge({}, n.settings, { colors: e.value }), - data: Ge({}, n.data, { + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + settings: Ke({}, n.settings, { colors: e.value }), + data: Ke({}, n.data, { items: n.data.items.map(function(t) { - return Ge({}, t, { colors: e.value }); + return Ke({}, t, { colors: e.value }); }) }) }) }); case 'CHANGE_PICKER_COLORS': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - settings: Ge({}, n.settings, { picker: e.value }), - data: Ge({}, n.data, { + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + settings: Ke({}, n.settings, { picker: e.value }), + data: Ke({}, n.data, { items: n.data.items.map(function(t) { - return Ge({}, t, { picker: e.value }); + return Ke({}, t, { picker: e.value }); }) }) }) }); case 'SHOW_TOOLBAR': - return Ge({}, t, { toolbarVisible: !0 }); + return Ke({}, t, { toolbarVisible: !0 }); case 'CLOSE_TOOLBAR': - return Ge({}, t, { toolbarVisible: !1 }); + return Ke({}, t, { toolbarVisible: !1 }); case 'DRAG_START_HANDLER': - return Ge({}, t, { + return Ke({}, t, { draggedType: e.draggedType, toolbarVisible: !1 }); case 'DROP_HANDLER': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - data: Ge({}, n.data, { - items: [].concat(Ce()(n.data.items), [e.newElement]) + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + data: Ke({}, n.data, { + items: [].concat(ze()(n.data.items), [e.newElement]) }) }), draggedType: {}, settingsVisible: n.data.items.length }); case 'RESIZE_CHART': - return Ge({}, t, { + return Ke({}, t, { isResizing: e.index, settingsVisible: e.index, - dashboardInfo: Ge({}, n, { - data: Ge({}, n.data, { + dashboardInfo: Ke({}, n, { + data: Ke({}, n.data, { items: n.data.items.map(function(t, n) { return e.index === n - ? Ge( + ? Ke( {}, t, {}, - De( + Be( e.element, e.ePageX, e.ePageY, @@ -143737,18 +143833,18 @@ object-assign }) }); case 'STOP_RESIZE_CHART': - return Ge({}, t, { isResizing: void 0 }); + return Ke({}, t, { isResizing: void 0 }); case 'MOVE_CHART': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - data: Ge({}, n.data, { + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + data: Ke({}, n.data, { items: n.data.items.map(function(t, n) { return e.index === n - ? Ge( + ? Ke( {}, t, {}, - je( + Ge( Math.round((e.ePageY - t.height / 2) / r) * r, Math.round( (e.ePageX - e.clientRect.left - t.width / 2) / @@ -143767,28 +143863,28 @@ object-assign isMoving: e.index }); case 'COL_MOVE_CHART': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - data: Ge({}, n.data, { + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + data: Ke({}, n.data, { items: n.data.items.map(function(t, n) { return e.index === n - ? Ge({}, t, { top: e.ePageY, left: e.ePageX }) + ? Ke({}, t, { top: e.ePageY, left: e.ePageX }) : t; }) }) }) }); case 'STOP_MOVE_CHART': - return Ge({}, t, { isMoving: void 0 }); + return Ke({}, t, { isMoving: void 0 }); case 'DELETE_CHART': var c = confirm('Do You want to delete this chart?'); if (c) return ( - Le.a.hide(), - Ge({}, t, { + Ve.a.hide(), + Ke({}, t, { settingsVisible: !1, - dashboardInfo: Ge({}, n, { - data: Ge({}, n.data, { + dashboardInfo: Ke({}, n, { + data: Ke({}, n.data, { items: n.data.items.filter(function(t, n) { return n !== e.index; }) @@ -143797,17 +143893,17 @@ object-assign }) ); case 'CLOSE_SETTINGS': - return Ge({}, t, { settingsVisible: !1 }); + return Ke({}, t, { settingsVisible: !1 }); case 'SHOW_SETTINGS': - return Ge({}, t, { settingsVisible: e.index }); + return Ke({}, t, { settingsVisible: e.index }); case 'SELECT_LEGEND_POSITION': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - data: Ge({}, n.data, { - items: Ce()( + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + data: Ke({}, n.data, { + items: ze()( n.data.items.map(function(t, n) { return e.index === n - ? Ge({}, t, { legend: e.value }) + ? Ke({}, t, { legend: e.value }) : t; }) ) @@ -143815,13 +143911,13 @@ object-assign }) }); case 'SELECT_SPARKLINE_OPTION': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - data: Ge({}, n.data, { - items: Ce()( + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + data: Ke({}, n.data, { + items: ze()( n.data.items.map(function(t, n) { return e.index === n - ? Ge({}, t, { sparkline: e.value }) + ? Ke({}, t, { sparkline: e.value }) : t; }) ) @@ -143829,13 +143925,13 @@ object-assign }) }); case 'SELECT_STACKING_OPTION': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - data: Ge({}, n.data, { - items: Ce()( + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + data: Ke({}, n.data, { + items: ze()( n.data.items.map(function(t, n) { return e.index === n - ? Ge({}, t, { stacking: e.value }) + ? Ke({}, t, { stacking: e.value }) : t; }) ) @@ -143843,13 +143939,13 @@ object-assign }) }); case 'SET_SRC_FOR_IMG': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - data: Ge({}, n.data, { - items: Ce()( + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + data: Ke({}, n.data, { + items: ze()( n.data.items.map(function(t, n) { return e.index === n - ? Ge({}, t, { src: e.value }) + ? Ke({}, t, { src: e.value }) : t; }) ) @@ -143858,13 +143954,13 @@ object-assign }); case 'SET_TEXT_FOR_PARAGRAPH': if ('user' === e.source) - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - data: Ge({}, n.data, { - items: Ce()( + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + data: Ke({}, n.data, { + items: ze()( n.data.items.map(function(t, n) { return e.index === n - ? Ge({}, t, { text: e.newValue }) + ? Ke({}, t, { text: e.newValue }) : t; }) ) @@ -143872,29 +143968,29 @@ object-assign }) }); case 'CLONE_CHART': - var f = Ge({}, n.data.items[e.index], { + var f = Ke({}, n.data.items[e.index], { top: n.data.items[e.index].top + n.data.items[e.index].height }); - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - data: Ge({}, n.data, { - items: [].concat(Ce()(n.data.items), [f]) + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + data: Ke({}, n.data, { + items: [].concat(ze()(n.data.items), [f]) }) }) }); case 'TOGGLE_DASHBOARDS_MENU': - return Ge({}, t, { dashboardsMenu: e.value || '' }); + return Ke({}, t, { dashboardsMenu: e.value || '' }); case 'SET_NEW_DASHBOARD_FOR_FOCUS': - return Ge({}, t, { newDashboardId: e.value }); + return Ke({}, t, { newDashboardId: e.value }); case 'SET_ACCESS_KEY': - return Ge({}, t, { accessKey: e.value }); + return Ke({}, t, { accessKey: e.value }); case 'CLEAR_ACCESS_KEY': - return Ge({}, t, { accessKey: '' }); + return Ke({}, t, { accessKey: '' }); case 'CHANGE_SCREEN_SIZE': - return Ge({}, t, { + return Ke({}, t, { screenSize: e.value, - dashboardInfo: Ge({}, n, { - data: Ge({}, n.data, { + dashboardInfo: Ke({}, n, { + data: Ke({}, n.data, { items: n.data.items.sort(function(t, e) { return t.top < e.top ? -1 : t.top > e.top ? 1 : 0; }) @@ -143902,24 +143998,24 @@ object-assign }) }); case 'MAP_OLD_ITEMS': - return Ge({}, t, { dashboardInfo: e.newDashboard }); + return Ke({}, t, { dashboardInfo: e.newDashboard }); case 'LOADING_SINGLE_DASHBOARD': - return Ge({}, t, { isDashboardLoading: !0 }); + return Ke({}, t, { isDashboardLoading: !0 }); case 'FILTER_DASHBOARDS_MENU': - return Ge({}, t, { dashboardMenuFilter: e.value }); + return Ke({}, t, { dashboardMenuFilter: e.value }); case 'CHANGE_SORTING': - return Ge({}, t, { + return Ke({}, t, { sortingValue: e.sorting, - dashboardList: Re(e.sorting.value, t.dashboardList) + dashboardList: He(e.sorting.value, t.dashboardList) }); case 'SET_PREFIX': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - data: Ge({}, n.data, { - items: Ce()( + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + data: Ke({}, n.data, { + items: ze()( n.data.items.map(function(t, n) { return e.index === n - ? Ge({}, t, { prefix: e.value }) + ? Ke({}, t, { prefix: e.value }) : t; }) ) @@ -143927,13 +144023,13 @@ object-assign }) }); case 'SET_SUFFIX': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - data: Ge({}, n.data, { - items: Ce()( + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + data: Ke({}, n.data, { + items: ze()( n.data.items.map(function(t, n) { return e.index === n - ? Ge({}, t, { suffix: e.value }) + ? Ke({}, t, { suffix: e.value }) : t; }) ) @@ -143941,13 +144037,13 @@ object-assign }) }); case 'SELECT_SHOW_POINTS': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - data: Ge({}, n.data, { - items: Ce()( + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + data: Ke({}, n.data, { + items: ze()( n.data.items.map(function(t, n) { return e.index === n - ? Ge({}, t, { showPoints: e.value }) + ? Ke({}, t, { showPoints: e.value }) : t; }) ) @@ -143955,13 +144051,13 @@ object-assign }) }); case 'SELECT_POINTS_SIZE': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - data: Ge({}, n.data, { - items: Ce()( + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + data: Ke({}, n.data, { + items: ze()( n.data.items.map(function(t, n) { return e.index === n - ? Ge({}, t, { pointsSize: e.value }) + ? Ke({}, t, { pointsSize: e.value }) : t; }) ) @@ -143969,13 +144065,13 @@ object-assign }) }); case 'SELECT_CHOROPLETH_MAP': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - data: Ge({}, n.data, { - items: Ce()( + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + data: Ke({}, n.data, { + items: ze()( n.data.items.map(function(t, n) { return e.index === n - ? Ge({}, t, { mapChoropleth: e.value }) + ? Ke({}, t, { mapChoropleth: e.value }) : t; }) ) @@ -143983,13 +144079,13 @@ object-assign }) }); case 'SHOW_CHOROPLETH_BORDER': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - data: Ge({}, n.data, { - items: Ce()( + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + data: Ke({}, n.data, { + items: ze()( n.data.items.map(function(t, n) { return e.index === n - ? Ge({}, t, { borderChoropleth: e.value }) + ? Ke({}, t, { borderChoropleth: e.value }) : t; }) ) @@ -143997,13 +144093,13 @@ object-assign }) }); case 'SELECT_CHOROPLETH_BORDER_SIZE': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - data: Ge({}, n.data, { - items: Ce()( + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + data: Ke({}, n.data, { + items: ze()( n.data.items.map(function(t, n) { return e.index === n - ? Ge({}, t, { borderSizeChoropleth: e.value }) + ? Ke({}, t, { borderSizeChoropleth: e.value }) : t; }) ) @@ -144011,13 +144107,13 @@ object-assign }) }); case 'SHOW_CHOROPLETH_SLIDERS': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - data: Ge({}, n.data, { - items: Ce()( + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + data: Ke({}, n.data, { + items: ze()( n.data.items.map(function(t, n) { return e.index === n - ? Ge({}, t, { slidersChoropleth: e.value }) + ? Ke({}, t, { slidersChoropleth: e.value }) : t; }) ) @@ -144025,13 +144121,13 @@ object-assign }) }); case 'SHOW_HEATMAP_SLIDERS': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - data: Ge({}, n.data, { - items: Ce()( + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + data: Ke({}, n.data, { + items: ze()( n.data.items.map(function(t, n) { return e.index === n - ? Ge({}, t, { slidersHeatmap: e.value }) + ? Ke({}, t, { slidersHeatmap: e.value }) : t; }) ) @@ -144039,13 +144135,13 @@ object-assign }) }); case 'SHOW_HEATMAP_TOOLTIP_VALUE': - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - data: Ge({}, n.data, { - items: Ce()( + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + data: Ke({}, n.data, { + items: ze()( n.data.items.map(function(t, n) { return e.index === n - ? Ge({}, t, { heatmapTooltipValue: e.value }) + ? Ke({}, t, { heatmapTooltipValue: e.value }) : t; }) ) @@ -144054,34 +144150,34 @@ object-assign }); case 'CHANGE_SAVED_QUERY_LIST': var d = e.savedQueriesList; - return Ge({}, t, { - dashboardInfo: Ge({}, n, { - settings: Ge({}, n.settings, { savedQueriesList: d }) + return Ke({}, t, { + dashboardInfo: Ke({}, n, { + settings: Ke({}, n.settings, { savedQueriesList: d }) }) }); case 'LOAD_DUMMY_DASHBOARDS': - return Ge({}, t, { - dashboardList: [ze], - dashboardInfo: Ge({}, t.dashboardInfo, {}, ze) + return Ke({}, t, { + dashboardList: [Ue], + dashboardInfo: Ke({}, t.dashboardInfo, {}, Ue) }); default: return t; } }) ), - We = n(8), - Xe = n.n(We), - Ye = function(t) { - return Object(We.get)( + tn = n(8), + en = n.n(tn), + nn = function(t) { + return Object(tn.get)( t, ['app', 'dashboardInfo', 'settings', 'savedQueriesList'], [] ); }, - $e = function(t) { - return Object(We.get)(t, ['app', 'dashboardInfo']); + rn = function(t) { + return Object(tn.get)(t, ['app', 'dashboardInfo']); }, - Ke = function(t, e, n) { + on = function(t, e, n) { var r = Array.from(new Set(t)), i = 'public-dashboard: '.concat(e); n.get({ @@ -144103,9 +144199,9 @@ object-assign }); }); }, - Qe = n(156), - Ze = n.n(Qe), - Je = function(t) { + an = n(156), + sn = n.n(an), + un = function(t) { var e = (function(t) { var e = new Set(), n = t.settings; @@ -144131,9 +144227,9 @@ object-assign } return Array.from(e); })(t); - e.length && Ze.a.load({ google: { families: e } }); + e.length && sn.a.load({ google: { families: e } }); }; - function tn(t, e) { + function ln(t, e) { var n = Object.keys(t); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(t); @@ -144145,16 +144241,16 @@ object-assign } return n; } - function en(t) { + function cn(t) { for (var e = 1; e < arguments.length; e++) { var n = null != arguments[e] ? arguments[e] : {}; e % 2 - ? tn(n, !0).forEach(function(e) { - Pe()(t, e, n[e]); + ? ln(n, !0).forEach(function(e) { + Ie()(t, e, n[e]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) - : tn(n).forEach(function(e) { + : ln(n).forEach(function(e) { Object.defineProperty( t, e, @@ -144164,7 +144260,7 @@ object-assign } return t; } - var nn = function() { + var fn = function() { var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] @@ -144177,7 +144273,7 @@ object-assign 'https://' .concat(o, '/projects/') .concat(i.projectId(), '/dashboards/'), - en( + cn( { method: 'post', body: JSON.stringify({ @@ -144199,10 +144295,10 @@ object-assign }); }; }, - rn = function(t, e) { + dn = function(t, e) { return { type: 'SAVED_QUERY_ERROR', error: t, index: e }; }, - on = function() { + hn = function() { return function(t, e, n) { var r = n.keenClient, i = n.keenWebHost, @@ -144211,7 +144307,7 @@ object-assign 'https://' .concat(i, '/projects/') .concat(r.projectId(), '/dashboards'), - en({}, o) + cn({}, o) ) .then(function(e) { return e.json().then(function(e) { @@ -144223,7 +144319,7 @@ object-assign }); }; }, - an = function(t) { + pn = function(t) { return function(e, n, r) { var i = r.keenClient, o = r.keenWebHost, @@ -144233,11 +144329,11 @@ object-assign .concat(o, '/projects/') .concat(i.projectId(), '/dashboards/') .concat(t), - en({}, a) + cn({}, a) ) .then(function(n) { return n.json().then(function(n) { - Je(n), + un(n), e({ type: 'LOAD_DASHBOARD_INFO', dashboardInfo: n, @@ -144251,7 +144347,7 @@ object-assign }); }; }, - sn = function(t) { + gn = function(t) { return function(e, n, r) { var i = r.keenClient, o = r.keenWebHost, @@ -144262,7 +144358,7 @@ object-assign .concat(o, '/projects/') .concat(i.projectId(), '/dashboards/') .concat(t.id), - en({ method: 'put', body: JSON.stringify(t) }, a) + cn({ method: 'put', body: JSON.stringify(t) }, a) ) .then(function(t) { 200 === t.status && @@ -144273,39 +144369,39 @@ object-assign }); }; }, - un = function() { + mn = function() { return { type: 'TOGGLE_IS_PUBLIC' }; }, - ln = function(t) { + vn = function(t) { return { type: 'DROP_HANDLER', newElement: t }; }, - cn = function() { + yn = function() { return { type: 'CLOSE_SETTINGS' }; }, - fn = function(t) { + bn = function(t) { return { type: 'SHOW_SETTINGS', index: t }; }, - dn = function(t) { + _n = function(t) { return { type: 'TOGGLE_DASHBOARDS_MENU', value: t }; }, - hn = function(t) { + xn = function(t) { return { type: 'SET_NEW_DASHBOARD_FOR_FOCUS', value: t }; }, - pn = function(t) { + wn = function(t) { return { type: 'SET_ACCESS_KEY', value: t }; }, - gn = function() { + Sn = function() { return { type: 'CLEAR_ACCESS_KEY' }; }, - mn = function(t) { + En = function(t) { return { type: 'MAP_OLD_ITEMS', newDashboard: t }; }, - vn = function(t, e) { + kn = function(t, e) { return function(n, r) { var i = r(), - o = $e(i), + o = rn(i), a = o.settings.savedQueriesList - ? Ce()(o.settings.savedQueriesList) + ? ze()(o.settings.savedQueriesList) : []; a.length && t && @@ -144320,23 +144416,23 @@ object-assign n({ type: 'CHANGE_SAVED_QUERY_LIST', savedQueriesList: a }); }; }, - yn = n(4), - bn = n(16), - _n = n.n(bn), - xn = n(17), - wn = n.n(xn), - Sn = n(18), - En = n.n(Sn), - kn = n(19), - An = n.n(kn), - Tn = (function(t) { + An = n(4), + Tn = n(16), + Cn = n.n(Tn), + On = n(17), + Pn = n.n(On), + Mn = n(18), + Ln = n.n(Mn), + jn = n(19), + Dn = n.n(jn), + Rn = (function(t) { function e(t) { var n; return ( a()(this, e), - ((n = wn()( + ((n = Pn()( this, - En()(e).call(this, t) + Ln()(e).call(this, t) )).addDashboard = function() { n.props.addDashboardItem(); }), @@ -144344,8 +144440,8 @@ object-assign ); } return ( - An()(e, t), - _n()(e, [ + Dn()(e, t), + Cn()(e, [ { key: 'componentDidUpdate', value: function() { @@ -144372,7 +144468,7 @@ object-assign className: 'new-dashboard-button', onClick: this.addDashboard }, - u.a.createElement(yn.a, { + u.a.createElement(An.a, { icon: 'plus-circle', size: 'sm' }), @@ -144384,8 +144480,8 @@ object-assign e ); })(u.a.Component), - Cn = ct( - he( + zn = ft( + xe( function(t) { var e = t.app; return { @@ -144395,22 +144491,22 @@ object-assign }; }, { - addDashboardItem: nn, - toggleDashboardsMenu: dn, - setNewDashboardForFocus: hn, - clearAccessKey: gn + addDashboardItem: fn, + toggleDashboardsMenu: _n, + setNewDashboardForFocus: xn, + clearAccessKey: Sn } - )(Tn) + )(Rn) ), - On = n(32), - Pn = n(6), - Mn = n(159), - Ln = n.n(Mn), - Dn = n(160), - jn = n.n(Dn), - Rn = n(64); - function zn(t) { - return (zn = + Nn = n(32), + In = n(6), + Fn = n(159), + Vn = n.n(Fn), + Bn = n(160), + Gn = n.n(Bn), + Hn = n(64); + function Un(t) { + return (Un = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(t) { return typeof t; @@ -144424,11 +144520,11 @@ object-assign : typeof t; })(t); } - function Nn(t, e) { + function qn(t, e) { if (!(t instanceof e)) throw new TypeError('Cannot call a class as a function'); } - function In(t, e) { + function Wn(t, e) { for (var n = 0; n < e.length; n++) { var r = e[n]; (r.enumerable = r.enumerable || !1), @@ -144437,10 +144533,10 @@ object-assign Object.defineProperty(t, r.key, r); } } - function Fn(t, e, n) { - return e && In(t.prototype, e), n && In(t, n), t; + function Xn(t, e, n) { + return e && Wn(t.prototype, e), n && Wn(t, n), t; } - function Vn(t, e, n) { + function Yn(t, e, n) { return ( e in t ? Object.defineProperty(t, e, { @@ -144453,8 +144549,8 @@ object-assign t ); } - function Bn() { - return (Bn = + function $n() { + return ($n = Object.assign || function(t) { for (var e = 1; e < arguments.length; e++) { @@ -144465,7 +144561,7 @@ object-assign return t; }).apply(this, arguments); } - function Gn(t) { + function Kn(t) { for (var e = 1; e < arguments.length; e++) { var n = null != arguments[e] ? arguments[e] : {}, r = Object.keys(n); @@ -144476,12 +144572,12 @@ object-assign }) )), r.forEach(function(e) { - Vn(t, e, n[e]); + Yn(t, e, n[e]); }); } return t; } - function Hn(t, e) { + function Qn(t, e) { if ('function' != typeof e && null !== e) throw new TypeError( 'Super expression must either be null or a function' @@ -144489,23 +144585,23 @@ object-assign (t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } })), - e && qn(t, e); + e && Jn(t, e); } - function Un(t) { - return (Un = Object.setPrototypeOf + function Zn(t) { + return (Zn = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { return t.__proto__ || Object.getPrototypeOf(t); })(t); } - function qn(t, e) { - return (qn = + function Jn(t, e) { + return (Jn = Object.setPrototypeOf || function(t, e) { return (t.__proto__ = e), t; })(t, e); } - function Wn(t, e) { + function tr(t, e) { if (null == t) return {}; var n, r, @@ -144529,19 +144625,19 @@ object-assign } return i; } - function Xn(t) { + function er(t) { if (void 0 === t) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return t; } - function Yn(t, e) { + function nr(t, e) { return !e || ('object' != typeof e && 'function' != typeof e) - ? Xn(t) + ? er(t) : e; } - function $n(t) { + function rr(t) { return ( (function(t) { if (Array.isArray(t)) { @@ -144564,15 +144660,15 @@ object-assign })() ); } - var Kn = function() {}; - function Qn(t, e) { + var ir = function() {}; + function or(t, e) { return e ? ('-' === e[0] ? t + e : t + '__' + e) : t; } - function Zn(t, e, n, r) { + function ar(t, e, n, r) { var i = [e, r]; if (n && t) for (var o in n) - n.hasOwnProperty(o) && n[o] && i.push(''.concat(Qn(t, o))); + n.hasOwnProperty(o) && n[o] && i.push(''.concat(or(t, o))); return i .filter(function(t) { return t; @@ -144582,49 +144678,49 @@ object-assign }) .join(' '); } - var Jn = function(t) { + var sr = function(t) { return Array.isArray(t) ? t.filter(Boolean) - : 'object' === zn(t) && null !== t + : 'object' === Un(t) && null !== t ? [t] : []; }; - function tr(t) { + function ur(t) { return ( [document.documentElement, document.body, window].indexOf(t) > -1 ); } - function er(t) { - return tr(t) ? window.pageYOffset : t.scrollTop; + function lr(t) { + return ur(t) ? window.pageYOffset : t.scrollTop; } - function nr(t, e) { - tr(t) ? window.scrollTo(0, e) : (t.scrollTop = e); + function cr(t, e) { + ur(t) ? window.scrollTo(0, e) : (t.scrollTop = e); } - function rr(t, e) { + function fr(t, e) { var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 200, r = - arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : Kn, - i = er(t), + arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : ir, + i = lr(t), o = e - i, a = 10, s = 0; !(function e() { var u, l = o * ((u = (u = s += a) / n - 1) * u * u + 1) + i; - nr(t, l), s < n ? Ln()(e) : r(t); + cr(t, l), s < n ? Vn()(e) : r(t); })(); } - function ir() { + function dr() { try { return document.createEvent('TouchEvent'), !0; } catch (t) { return !1; } } - function or(t) { + function hr(t) { var e = t.maxHeight, n = t.menuEl, r = t.minHeight, @@ -144656,7 +144752,7 @@ object-assign p = f.top, g = n.offsetParent.getBoundingClientRect().top, m = window.innerHeight, - v = er(u), + v = lr(u), y = parseInt(getComputedStyle(n).marginBottom, 10), b = parseInt(getComputedStyle(n).marginTop, 10), _ = g - b, @@ -144670,10 +144766,10 @@ object-assign case 'bottom': if (x >= h) return { placement: 'bottom', maxHeight: e }; if (S >= h && !a) - return o && rr(u, E, 160), { placement: 'bottom', maxHeight: e }; + return o && fr(u, E, 160), { placement: 'bottom', maxHeight: e }; if ((!a && S >= r) || (a && x >= r)) return ( - o && rr(u, E, 160), + o && fr(u, E, 160), { placement: 'bottom', maxHeight: a ? x - y : S - y } ); if ('auto' === i || a) { @@ -144685,17 +144781,17 @@ object-assign ); } if ('bottom' === i) - return nr(u, E), { placement: 'bottom', maxHeight: e }; + return cr(u, E), { placement: 'bottom', maxHeight: e }; break; case 'top': if (_ >= h) return { placement: 'top', maxHeight: e }; if (w >= h && !a) - return o && rr(u, k, 160), { placement: 'top', maxHeight: e }; + return o && fr(u, k, 160), { placement: 'top', maxHeight: e }; if ((!a && w >= r) || (a && _ >= r)) { var C = e; return ( ((!a && w >= r) || (a && _ >= r)) && (C = a ? _ - b : w - b), - o && rr(u, k, 160), + o && fr(u, k, 160), { placement: 'top', maxHeight: C } ); } @@ -144705,26 +144801,26 @@ object-assign } return l; } - var ar = function(t) { + var pr = function(t) { return 'auto' === t ? 'bottom' : t; }, - sr = (function(t) { + gr = (function(t) { function e() { var t, n; - Nn(this, e); + qn(this, e); for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) i[o] = arguments[o]; return ( - Vn( - Xn( - Xn( - (n = Yn(this, (t = Un(e)).call.apply(t, [this].concat(i)))) + Yn( + er( + er( + (n = nr(this, (t = Zn(e)).call.apply(t, [this].concat(i)))) ) ), 'state', { maxHeight: n.props.maxMenuHeight, placement: null } ), - Vn(Xn(Xn(n)), 'getPlacement', function(t) { + Yn(er(er(n)), 'getPlacement', function(t) { var e = n.props, r = e.minMenuHeight, i = e.maxMenuHeight, @@ -144735,7 +144831,7 @@ object-assign l = n.context.getPortalPlacement; if (t) { var c = 'fixed' === a, - f = or({ + f = hr({ maxHeight: i, menuEl: t, minHeight: r, @@ -144747,10 +144843,10 @@ object-assign l && l(f), n.setState(f); } }), - Vn(Xn(Xn(n)), 'getUpdatedProps', function() { + Yn(er(er(n)), 'getUpdatedProps', function() { var t = n.props.menuPlacement, - e = n.state.placement || ar(t); - return Gn({}, n.props, { + e = n.state.placement || pr(t); + return Kn({}, n.props, { placement: e, maxHeight: n.state.maxHeight }); @@ -144759,8 +144855,8 @@ object-assign ); } return ( - Hn(e, t), - Fn(e, [ + Qn(e, t), + Xn(e, [ { key: 'render', value: function() { @@ -144774,8 +144870,8 @@ object-assign e ); })(s.Component); - Vn(sr, 'contextTypes', { getPortalPlacement: g.a.func }); - var ur = function(t) { + Yn(gr, 'contextTypes', { getPortalPlacement: h.a.func }); + var mr = function(t) { var e = t.theme, n = e.spacing.baseUnit; return { @@ -144784,9 +144880,9 @@ object-assign textAlign: 'center' }; }, - lr = ur, - cr = ur, - fr = function(t) { + vr = mr, + yr = mr, + br = function(t) { var e = t.children, n = t.className, r = t.cx, @@ -144794,10 +144890,10 @@ object-assign o = t.innerProps; return u.a.createElement( 'div', - Bn( + $n( { className: r( - Object(Pn.a)(i('noOptionsMessage', t)), + Object(In.a)(i('noOptionsMessage', t)), { 'menu-notice': !0, 'menu-notice--no-options': !0 }, n ) @@ -144807,8 +144903,8 @@ object-assign e ); }; - fr.defaultProps = { children: 'No options' }; - var dr = function(t) { + br.defaultProps = { children: 'No options' }; + var _r = function(t) { var e = t.children, n = t.className, r = t.cx, @@ -144816,10 +144912,10 @@ object-assign o = t.innerProps; return u.a.createElement( 'div', - Bn( + $n( { className: r( - Object(Pn.a)(i('loadingMessage', t)), + Object(In.a)(i('loadingMessage', t)), { 'menu-notice': !0, 'menu-notice--loading': !0 }, n ) @@ -144829,31 +144925,31 @@ object-assign e ); }; - dr.defaultProps = { children: 'Loading...' }; - var hr = (function(t) { + _r.defaultProps = { children: 'Loading...' }; + var xr = (function(t) { function e() { var t, n; - Nn(this, e); + qn(this, e); for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) i[o] = arguments[o]; return ( - Vn( - Xn( - Xn((n = Yn(this, (t = Un(e)).call.apply(t, [this].concat(i))))) + Yn( + er( + er((n = nr(this, (t = Zn(e)).call.apply(t, [this].concat(i))))) ), 'state', { placement: null } ), - Vn(Xn(Xn(n)), 'getPortalPlacement', function(t) { + Yn(er(er(n)), 'getPortalPlacement', function(t) { var e = t.placement; - e !== ar(n.props.menuPlacement) && n.setState({ placement: e }); + e !== pr(n.props.menuPlacement) && n.setState({ placement: e }); }), n ); } return ( - Hn(e, t), - Fn(e, [ + Qn(e, t), + Xn(e, [ { key: 'getChildContext', value: function() { @@ -144872,7 +144968,7 @@ object-assign a = t.getStyles, s = 'fixed' === o; if ((!e && !s) || !r) return null; - var c = this.state.placement || ar(i), + var c = this.state.placement || pr(i), f = (function(t) { var e = t.getBoundingClientRect(); return { @@ -144888,7 +144984,7 @@ object-assign h = { offset: f[c] + d, position: o, rect: f }, p = u.a.createElement( 'div', - { className: Object(Pn.a)(a('menuPortal', h)) }, + { className: Object(In.a)(a('menuPortal', h)) }, n ); return e ? Object(l.createPortal)(p, e) : p; @@ -144898,20 +144994,20 @@ object-assign e ); })(s.Component); - Vn(hr, 'childContextTypes', { getPortalPlacement: g.a.func }); - var pr = Array.isArray, - gr = Object.keys, - mr = Object.prototype.hasOwnProperty; - function vr(t, e) { + Yn(xr, 'childContextTypes', { getPortalPlacement: h.a.func }); + var wr = Array.isArray, + Sr = Object.keys, + Er = Object.prototype.hasOwnProperty; + function kr(t, e) { try { return (function t(e, n) { if (e === n) return !0; - if (e && n && 'object' == zn(e) && 'object' == zn(n)) { + if (e && n && 'object' == Un(e) && 'object' == Un(n)) { var r, i, o, - a = pr(e), - s = pr(n); + a = wr(e), + s = wr(n); if (a && s) { if ((i = e.length) != n.length) return !1; for (r = i; 0 != r--; ) if (!t(e[r], n[r])) return !1; @@ -144926,9 +145022,9 @@ object-assign f = n instanceof RegExp; if (c != f) return !1; if (c && f) return e.toString() == n.toString(); - var d = gr(e); - if ((i = d.length) !== gr(n).length) return !1; - for (r = i; 0 != r--; ) if (!mr.call(n, d[r])) return !1; + var d = Sr(e); + if ((i = d.length) !== Sr(n).length) return !1; + for (r = i; 0 != r--; ) if (!Er.call(n, d[r])) return !1; for (r = i; 0 != r--; ) if (!(('_owner' === (o = d[r]) && e.$$typeof) || t(e[o], n[o]))) return !1; @@ -144949,7 +145045,7 @@ object-assign throw t; } } - var yr = [ + var Ar = [ { base: 'A', letters: /[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g @@ -145167,23 +145263,23 @@ object-assign letters: /[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g } ], - br = function(t) { - for (var e = 0; e < yr.length; e++) - t = t.replace(yr[e].letters, yr[e].base); + Tr = function(t) { + for (var e = 0; e < Ar.length; e++) + t = t.replace(Ar[e].letters, Ar[e].base); return t; }, - _r = function(t) { + Cr = function(t) { return t.replace(/^\s+|\s+$/g, ''); }, - xr = function(t) { + Or = function(t) { return ''.concat(t.label, ' ').concat(t.value); }, - wr = function(t) { + Pr = function(t) { return u.a.createElement( 'span', - Bn( + $n( { - className: Object(Pn.a)({ + className: Object(In.a)({ label: 'a11yText', zIndex: 9999, border: 0, @@ -145202,13 +145298,13 @@ object-assign ) ); }, - Sr = (function(t) { + Mr = (function(t) { function e() { - return Nn(this, e), Yn(this, Un(e).apply(this, arguments)); + return qn(this, e), nr(this, Zn(e).apply(this, arguments)); } return ( - Hn(e, t), - Fn(e, [ + Qn(e, t), + Xn(e, [ { key: 'render', value: function() { @@ -145223,7 +145319,7 @@ object-assign t.innerRef), n = (t.emotion, - Wn(t, [ + tr(t, [ 'in', 'out', 'onExited', @@ -145235,8 +145331,8 @@ object-assign ])); return u.a.createElement( 'input', - Bn({ ref: e }, n, { - className: Object(Pn.a)({ + $n({ ref: e }, n, { + className: Object(In.a)({ label: 'dummyInput', background: 0, border: 0, @@ -145258,13 +145354,13 @@ object-assign e ); })(s.Component), - Er = (function(t) { + Lr = (function(t) { function e() { - return Nn(this, e), Yn(this, Un(e).apply(this, arguments)); + return qn(this, e), nr(this, Zn(e).apply(this, arguments)); } return ( - Hn(e, t), - Fn(e, [ + Qn(e, t), + Xn(e, [ { key: 'componentDidMount', value: function() { @@ -145287,62 +145383,62 @@ object-assign e ); })(s.Component), - kr = ['boxSizing', 'height', 'overflow', 'paddingRight', 'position'], - Ar = { + jr = ['boxSizing', 'height', 'overflow', 'paddingRight', 'position'], + Dr = { boxSizing: 'border-box', overflow: 'hidden', position: 'relative', height: '100%' }; - function Tr(t) { + function Rr(t) { t.preventDefault(); } - function Cr(t) { + function zr(t) { t.stopPropagation(); } - function Or() { + function Nr() { var t = this.scrollTop, e = this.scrollHeight, n = t + this.offsetHeight; 0 === t ? (this.scrollTop = 1) : n === e && (this.scrollTop = t - 1); } - function Pr() { + function Ir() { return 'ontouchstart' in window || navigator.maxTouchPoints; } - var Mr = !( + var Fr = !( 'undefined' == typeof window || !window.document || !window.document.createElement ), - Lr = 0, - Dr = (function(t) { + Vr = 0, + Br = (function(t) { function e() { var t, n; - Nn(this, e); + qn(this, e); for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) i[o] = arguments[o]; return ( - Vn( - Xn( - Xn( - (n = Yn(this, (t = Un(e)).call.apply(t, [this].concat(i)))) + Yn( + er( + er( + (n = nr(this, (t = Zn(e)).call.apply(t, [this].concat(i)))) ) ), 'originalStyles', {} ), - Vn(Xn(Xn(n)), 'listenerOptions', { capture: !1, passive: !1 }), + Yn(er(er(n)), 'listenerOptions', { capture: !1, passive: !1 }), n ); } return ( - Hn(e, t), - Fn(e, [ + Qn(e, t), + Xn(e, [ { key: 'componentDidMount', value: function() { var t = this; - if (Mr) { + if (Fr) { var e = this.props, n = e.accountForScrollbars, r = e.touchScrollTarget, @@ -145350,41 +145446,41 @@ object-assign o = i && i.style; if ( (n && - kr.forEach(function(e) { + jr.forEach(function(e) { var n = o && o[e]; t.originalStyles[e] = n; }), - n && Lr < 1) + n && Vr < 1) ) { var a = parseInt(this.originalStyles.paddingRight, 10) || 0, s = document.body ? document.body.clientWidth : 0, u = window.innerWidth - s + a || 0; - Object.keys(Ar).forEach(function(t) { - var e = Ar[t]; + Object.keys(Dr).forEach(function(t) { + var e = Dr[t]; o && (o[t] = e); }), o && (o.paddingRight = ''.concat(u, 'px')); } i && - Pr() && + Ir() && (i.addEventListener( 'touchmove', - Tr, + Rr, this.listenerOptions ), r && (r.addEventListener( 'touchstart', - Or, + Nr, this.listenerOptions ), r.addEventListener( 'touchmove', - Cr, + zr, this.listenerOptions ))), - (Lr += 1); + (Vr += 1); } } }, @@ -145392,35 +145488,35 @@ object-assign key: 'componentWillUnmount', value: function() { var t = this; - if (Mr) { + if (Fr) { var e = this.props, n = e.accountForScrollbars, r = e.touchScrollTarget, i = document.body, o = i && i.style; - (Lr = Math.max(Lr - 1, 0)), + (Vr = Math.max(Vr - 1, 0)), n && - Lr < 1 && - kr.forEach(function(e) { + Vr < 1 && + jr.forEach(function(e) { var n = t.originalStyles[e]; o && (o[e] = n); }), i && - Pr() && + Ir() && (i.removeEventListener( 'touchmove', - Tr, + Rr, this.listenerOptions ), r && (r.removeEventListener( 'touchstart', - Or, + Nr, this.listenerOptions ), r.removeEventListener( 'touchmove', - Cr, + zr, this.listenerOptions ))); } @@ -145436,36 +145532,36 @@ object-assign e ); })(s.Component); - Vn(Dr, 'defaultProps', { accountForScrollbars: !0 }); - var jr = (function(t) { + Yn(Br, 'defaultProps', { accountForScrollbars: !0 }); + var Gr = (function(t) { function e() { var t, n; - Nn(this, e); + qn(this, e); for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) i[o] = arguments[o]; return ( - Vn( - Xn( - Xn( - (n = Yn(this, (t = Un(e)).call.apply(t, [this].concat(i)))) + Yn( + er( + er( + (n = nr(this, (t = Zn(e)).call.apply(t, [this].concat(i)))) ) ), 'state', { touchScrollTarget: null } ), - Vn(Xn(Xn(n)), 'getScrollTarget', function(t) { + Yn(er(er(n)), 'getScrollTarget', function(t) { t !== n.state.touchScrollTarget && n.setState({ touchScrollTarget: t }); }), - Vn(Xn(Xn(n)), 'blurSelectInput', function() { + Yn(er(er(n)), 'blurSelectInput', function() { document.activeElement && document.activeElement.blur(); }), n ); } return ( - Hn(e, t), - Fn(e, [ + Qn(e, t), + Xn(e, [ { key: 'render', value: function() { @@ -145479,7 +145575,7 @@ object-assign null, u.a.createElement('div', { onClick: this.blurSelectInput, - className: Object(Pn.a)({ + className: Object(In.a)({ position: 'fixed', left: 0, bottom: 0, @@ -145488,12 +145584,12 @@ object-assign }) }), u.a.createElement( - Er, + Lr, { innerRef: this.getScrollTarget }, e ), r - ? u.a.createElement(Dr, { touchScrollTarget: r }) + ? u.a.createElement(Br, { touchScrollTarget: r }) : null ) : e; @@ -145503,29 +145599,29 @@ object-assign e ); })(s.PureComponent), - Rr = (function(t) { + Hr = (function(t) { function e() { var t, n; - Nn(this, e); + qn(this, e); for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) i[o] = arguments[o]; return ( - Vn( - Xn( - Xn( - (n = Yn(this, (t = Un(e)).call.apply(t, [this].concat(i)))) + Yn( + er( + er( + (n = nr(this, (t = Zn(e)).call.apply(t, [this].concat(i)))) ) ), 'isBottom', !1 ), - Vn(Xn(Xn(n)), 'isTop', !1), - Vn(Xn(Xn(n)), 'scrollTarget', void 0), - Vn(Xn(Xn(n)), 'touchStart', void 0), - Vn(Xn(Xn(n)), 'cancelScroll', function(t) { + Yn(er(er(n)), 'isTop', !1), + Yn(er(er(n)), 'scrollTarget', void 0), + Yn(er(er(n)), 'touchStart', void 0), + Yn(er(er(n)), 'cancelScroll', function(t) { t.preventDefault(), t.stopPropagation(); }), - Vn(Xn(Xn(n)), 'handleEventDelta', function(t, e) { + Yn(er(er(n)), 'handleEventDelta', function(t, e) { var r = n.props, i = r.onBottomArrive, o = r.onBottomLeave, @@ -145554,25 +145650,25 @@ object-assign (n.isTop = !0)), g && n.cancelScroll(t); }), - Vn(Xn(Xn(n)), 'onWheel', function(t) { + Yn(er(er(n)), 'onWheel', function(t) { n.handleEventDelta(t, t.deltaY); }), - Vn(Xn(Xn(n)), 'onTouchStart', function(t) { + Yn(er(er(n)), 'onTouchStart', function(t) { n.touchStart = t.changedTouches[0].clientY; }), - Vn(Xn(Xn(n)), 'onTouchMove', function(t) { + Yn(er(er(n)), 'onTouchMove', function(t) { var e = n.touchStart - t.changedTouches[0].clientY; n.handleEventDelta(t, e); }), - Vn(Xn(Xn(n)), 'getScrollTarget', function(t) { + Yn(er(er(n)), 'getScrollTarget', function(t) { n.scrollTarget = t; }), n ); } return ( - Hn(e, t), - Fn(e, [ + Qn(e, t), + Xn(e, [ { key: 'componentDidMount', value: function() { @@ -145618,7 +145714,7 @@ object-assign key: 'render', value: function() { return u.a.createElement( - Er, + Lr, { innerRef: this.getScrollTarget }, this.props.children ); @@ -145628,28 +145724,28 @@ object-assign e ); })(s.Component), - zr = (function(t) { + Ur = (function(t) { function e() { - return Nn(this, e), Yn(this, Un(e).apply(this, arguments)); + return qn(this, e), nr(this, Zn(e).apply(this, arguments)); } return ( - Hn(e, t), - Fn(e, [ + Qn(e, t), + Xn(e, [ { key: 'render', value: function() { var t = this.props, e = t.isEnabled, - n = Wn(t, ['isEnabled']); - return e ? u.a.createElement(Rr, n) : this.props.children; + n = tr(t, ['isEnabled']); + return e ? u.a.createElement(Hr, n) : this.props.children; } } ]), e ); })(s.Component); - Vn(zr, 'defaultProps', { isEnabled: !0 }); - var Nr = function(t) { + Yn(Ur, 'defaultProps', { isEnabled: !0 }); + var qr = function(t) { var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] @@ -145676,7 +145772,7 @@ object-assign return 'Use left and right to toggle between focused values, press Backspace to remove the currently focused value'; } }, - Ir = function(t, e) { + Wr = function(t, e) { var n = e.value, r = e.isDisabled; if (n) @@ -145692,16 +145788,16 @@ object-assign ); } }, - Fr = function(t) { + Xr = function(t) { return !!t.isDisabled; }, - Vr = (function(t) { + Yr = (function(t) { function e() { - return Nn(this, e), Yn(this, Un(e).apply(this, arguments)); + return qn(this, e), nr(this, Zn(e).apply(this, arguments)); } return ( - Hn(e, t), - Fn(e, [ + Qn(e, t), + Xn(e, [ { key: 'render', value: function() { @@ -145716,7 +145812,7 @@ object-assign 'div', { className: r( - Object(Pn.a)(o('valueContainer', this.props)), + Object(In.a)(o('valueContainer', this.props)), { 'value-container': !0, 'value-container--is-multi': i, @@ -145733,19 +145829,19 @@ object-assign e ); })(s.Component), - Br = function(t) { + $r = function(t) { var e = t.size, - n = Wn(t, ['size']); + n = tr(t, ['size']); return u.a.createElement( 'svg', - Bn( + $n( { height: e, width: e, viewBox: '0 0 20 20', 'aria-hidden': 'true', focusable: 'false', - className: Object(Pn.a)({ + className: Object(In.a)({ display: 'inline-block', fill: 'currentColor', lineHeight: 1, @@ -145757,27 +145853,27 @@ object-assign ) ); }, - Gr = function(t) { + Kr = function(t) { return u.a.createElement( - Br, - Bn({ size: 20 }, t), + $r, + $n({ size: 20 }, t), u.a.createElement('path', { d: 'M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z' }) ); }, - Hr = function(t) { + Qr = function(t) { return u.a.createElement( - Br, - Bn({ size: 20 }, t), + $r, + $n({ size: 20 }, t), u.a.createElement('path', { d: 'M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z' }) ); }, - Ur = function(t) { + Zr = function(t) { var e = t.isFocused, n = t.theme, r = n.spacing.baseUnit, @@ -145791,15 +145887,15 @@ object-assign ':hover': { color: e ? i.neutral80 : i.neutral40 } }; }, - qr = Ur, - Wr = Ur, - Xr = !1, - Yr = function(t) { + Jr = Zr, + ti = Zr, + ei = !1, + ni = function(t) { var e = t.color, n = t.delay, r = t.offset; return u.a.createElement('span', { - className: Object(Pn.a)({ + className: Object(In.a)({ animationDuration: '1s', animationDelay: ''.concat(n, 'ms'), animationIterationCount: 'infinite', @@ -145815,7 +145911,7 @@ object-assign }) }); }, - $r = function(t) { + ri = function(t) { var e = t.className, n = t.cx, r = t.getStyles, @@ -145825,30 +145921,30 @@ object-assign s = t.theme.colors, l = o ? s.neutral80 : s.neutral20; return ( - Xr || - (Object(Pn.b)( + ei || + (Object(In.b)( '@keyframes ', 'react-select-loading-indicator', '{0%,80%,100%{opacity:0;}40%{opacity:1;}};' ), - (Xr = !0)), + (ei = !0)), u.a.createElement( 'div', - Bn({}, i, { + $n({}, i, { className: n( - Object(Pn.a)(r('loadingIndicator', t)), + Object(In.a)(r('loadingIndicator', t)), { indicator: !0, 'loading-indicator': !0 }, e ) }), - u.a.createElement(Yr, { color: l, delay: 0, offset: a }), - u.a.createElement(Yr, { color: l, delay: 160, offset: !0 }), - u.a.createElement(Yr, { color: l, delay: 320, offset: !a }) + u.a.createElement(ni, { color: l, delay: 0, offset: a }), + u.a.createElement(ni, { color: l, delay: 160, offset: !0 }), + u.a.createElement(ni, { color: l, delay: 320, offset: !a }) ) ); }; - $r.defaultProps = { size: 4 }; - var Kr = function(t) { + ri.defaultProps = { size: 4 }; + var ii = function(t) { return { label: 'input', background: 0, @@ -145860,20 +145956,20 @@ object-assign color: 'inherit' }; }, - Qr = function(t) { + oi = function(t) { var e = t.children, n = t.innerProps; return u.a.createElement('div', n, e); }, - Zr = Qr, - Jr = Qr, - ti = (function(t) { + ai = oi, + si = oi, + ui = (function(t) { function e() { - return Nn(this, e), Yn(this, Un(e).apply(this, arguments)); + return qn(this, e), nr(this, Zn(e).apply(this, arguments)); } return ( - Hn(e, t), - Fn(e, [ + Qn(e, t), + Xn(e, [ { key: 'render', value: function() { @@ -145883,7 +145979,7 @@ object-assign return u.a.createElement( 'div', n, - e || u.a.createElement(Gr, { size: 14 }) + e || u.a.createElement(Kr, { size: 14 }) ); } } @@ -145891,13 +145987,13 @@ object-assign e ); })(s.Component), - ei = (function(t) { + li = (function(t) { function e() { - return Nn(this, e), Yn(this, Un(e).apply(this, arguments)); + return qn(this, e), nr(this, Zn(e).apply(this, arguments)); } return ( - Hn(e, t), - Fn(e, [ + Qn(e, t), + Xn(e, [ { key: 'render', value: function() { @@ -145915,10 +146011,10 @@ object-assign d = r.Container, h = r.Label, p = r.Remove, - g = Gn( + g = Kn( { className: i( - Object(Pn.a)(a('multiValue', this.props)), + Object(In.a)(a('multiValue', this.props)), { 'multi-value': !0, 'multi-value--is-disabled': l }, n ) @@ -145927,15 +146023,15 @@ object-assign ), m = { className: i( - Object(Pn.a)(a('multiValueLabel', this.props)), + Object(In.a)(a('multiValueLabel', this.props)), { 'multi-value__label': !0 }, n ) }, - v = Gn( + v = Kn( { className: i( - Object(Pn.a)(a('multiValueRemove', this.props)), + Object(In.a)(a('multiValueRemove', this.props)), { 'multi-value__remove': !0 }, n ) @@ -145962,8 +146058,8 @@ object-assign e ); })(s.Component); - Vn(ei, 'defaultProps', { cropWithEllipsis: !0 }); - var ni = { + Yn(li, 'defaultProps', { cropWithEllipsis: !0 }); + var ci = { ClearIndicator: function(t) { var e = t.children, n = t.className, @@ -145972,14 +146068,14 @@ object-assign o = t.innerProps; return u.a.createElement( 'div', - Bn({}, o, { + $n({}, o, { className: r( - Object(Pn.a)(i('clearIndicator', t)), + Object(In.a)(i('clearIndicator', t)), { indicator: !0, 'clear-indicator': !0 }, n ) }), - e || u.a.createElement(Gr, null) + e || u.a.createElement(Kr, null) ); }, Control: function(t) { @@ -145994,11 +146090,11 @@ object-assign c = t.menuIsOpen; return u.a.createElement( 'div', - Bn( + $n( { ref: s, className: n( - Object(Pn.a)(r('control', t)), + Object(In.a)(r('control', t)), { control: !0, 'control--is-disabled': o, @@ -146021,18 +146117,18 @@ object-assign o = t.innerProps; return u.a.createElement( 'div', - Bn({}, o, { + $n({}, o, { className: r( - Object(Pn.a)(i('dropdownIndicator', t)), + Object(In.a)(i('dropdownIndicator', t)), { indicator: !0, 'dropdown-indicator': !0 }, n ) }), - e || u.a.createElement(Hr, null) + e || u.a.createElement(Qr, null) ); }, - DownChevron: Hr, - CrossIcon: Gr, + DownChevron: Qr, + CrossIcon: Kr, Group: function(t) { var e = t.children, n = t.className, @@ -146045,10 +146141,10 @@ object-assign c = t.selectProps; return u.a.createElement( 'div', - { className: r(Object(Pn.a)(i('group', t)), { group: !0 }, n) }, + { className: r(Object(In.a)(i('group', t)), { group: !0 }, n) }, u.a.createElement( o, - Bn({}, a, { selectProps: c, theme: l, getStyles: i, cx: r }), + $n({}, a, { selectProps: c, theme: l, getStyles: i, cx: r }), s ), u.a.createElement('div', null, e) @@ -146061,7 +146157,7 @@ object-assign i = t.theme, o = (t.selectProps, - Wn(t, [ + tr(t, [ 'className', 'cx', 'getStyles', @@ -146070,10 +146166,10 @@ object-assign ])); return u.a.createElement( 'div', - Bn( + $n( { className: n( - Object(Pn.a)(r('groupHeading', Gn({ theme: i }, o))), + Object(In.a)(r('groupHeading', Kn({ theme: i }, o))), { 'group-heading': !0 }, e ) @@ -146091,7 +146187,7 @@ object-assign 'div', { className: r( - Object(Pn.a)(i('indicatorsContainer', t)), + Object(In.a)(i('indicatorsContainer', t)), { indicators: !0 }, n ) @@ -146106,9 +146202,9 @@ object-assign i = t.innerProps; return u.a.createElement( 'span', - Bn({}, i, { + $n({}, i, { className: n( - Object(Pn.a)(r('indicatorSeparator', t)), + Object(In.a)(r('indicatorSeparator', t)), { 'indicator-separator': !0 }, e ) @@ -146125,7 +146221,7 @@ object-assign s = t.theme, l = (t.selectProps, - Wn(t, [ + tr(t, [ 'className', 'cx', 'getStyles', @@ -146137,14 +146233,14 @@ object-assign ])); return u.a.createElement( 'div', - { className: Object(Pn.a)(r('input', Gn({ theme: s }, l))) }, + { className: Object(In.a)(r('input', Kn({ theme: s }, l))) }, u.a.createElement( - jn.a, - Bn( + Gn.a, + $n( { className: n(null, { input: !0 }, e), inputRef: i, - inputStyle: Kr(o), + inputStyle: ii(o), disabled: a }, l @@ -146152,7 +146248,7 @@ object-assign ) ); }, - LoadingIndicator: $r, + LoadingIndicator: ri, Menu: function(t) { var e = t.children, n = t.className, @@ -146160,10 +146256,10 @@ object-assign i = t.getStyles, o = t.innerRef, a = t.innerProps, - s = r(Object(Pn.a)(i('menu', t)), { menu: !0 }, n); + s = r(Object(In.a)(i('menu', t)), { menu: !0 }, n); return u.a.createElement( 'div', - Bn({ className: s }, a, { ref: o }), + $n({ className: s }, a, { ref: o }), e ); }, @@ -146178,7 +146274,7 @@ object-assign 'div', { className: r( - Object(Pn.a)(i('menuList', t)), + Object(In.a)(i('menuList', t)), { 'menu-list': !0, 'menu-list--is-multi': o }, n ), @@ -146187,13 +146283,13 @@ object-assign e ); }, - MenuPortal: hr, - LoadingMessage: dr, - NoOptionsMessage: fr, - MultiValue: ei, - MultiValueContainer: Zr, - MultiValueLabel: Jr, - MultiValueRemove: ti, + MenuPortal: xr, + LoadingMessage: _r, + NoOptionsMessage: br, + MultiValue: li, + MultiValueContainer: ai, + MultiValueLabel: si, + MultiValueRemove: ui, Option: function(t) { var e = t.children, n = t.className, @@ -146206,11 +146302,11 @@ object-assign c = t.innerProps; return u.a.createElement( 'div', - Bn( + $n( { ref: l, className: r( - Object(Pn.a)(i('option', t)), + Object(In.a)(i('option', t)), { option: !0, 'option--is-disabled': o, @@ -146233,10 +146329,10 @@ object-assign o = t.innerProps; return u.a.createElement( 'div', - Bn( + $n( { className: r( - Object(Pn.a)(i('placeholder', t)), + Object(In.a)(i('placeholder', t)), { placeholder: !0 }, n ) @@ -146256,10 +146352,10 @@ object-assign s = t.isRtl; return u.a.createElement( 'div', - Bn( + $n( { className: r( - Object(Pn.a)(i('container', t)), + Object(In.a)(i('container', t)), { '--is-disabled': a, '--is-rtl': s }, n ) @@ -146278,10 +146374,10 @@ object-assign a = t.innerProps; return u.a.createElement( 'div', - Bn( + $n( { className: r( - Object(Pn.a)(i('singleValue', t)), + Object(In.a)(i('singleValue', t)), { 'single-value': !0, 'single-value--is-disabled': o }, n ) @@ -146291,13 +146387,13 @@ object-assign e ); }, - ValueContainer: Vr + ValueContainer: Yr }, - ri = function(t) { - return Gn({}, ni, t.components); + fi = function(t) { + return Kn({}, ci, t.components); }, - ii = { - clearIndicator: Wr, + di = { + clearIndicator: ti, container: function(t) { var e = t.isDisabled; return { @@ -146334,7 +146430,7 @@ object-assign '&:hover': { borderColor: n ? i.primary : i.neutral30 } }; }, - dropdownIndicator: qr, + dropdownIndicator: Jr, group: function(t) { var e = t.theme.spacing; return { @@ -146412,7 +146508,7 @@ object-assign verticalAlign: 'middle' }; }, - loadingMessage: cr, + loadingMessage: yr, menu: function(t) { var e, n = t.placement, @@ -146421,25 +146517,25 @@ object-assign o = r.spacing, a = r.colors; return ( - Vn( + Yn( (e = { label: 'menu' }), (function(t) { return t ? { bottom: 'top', top: 'bottom' }[t] : 'bottom'; })(n), '100%' ), - Vn(e, 'backgroundColor', a.neutral0), - Vn(e, 'borderRadius', i), - Vn( + Yn(e, 'backgroundColor', a.neutral0), + Yn(e, 'borderRadius', i), + Yn( e, 'boxShadow', '0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)' ), - Vn(e, 'marginBottom', o.menuGutter), - Vn(e, 'marginTop', o.menuGutter), - Vn(e, 'position', 'absolute'), - Vn(e, 'width', '100%'), - Vn(e, 'zIndex', 1), + Yn(e, 'marginBottom', o.menuGutter), + Yn(e, 'marginTop', o.menuGutter), + Yn(e, 'position', 'absolute'), + Yn(e, 'width', '100%'), + Yn(e, 'zIndex', 1), e ); }, @@ -146511,7 +146607,7 @@ object-assign ':hover': { backgroundColor: i.dangerLight, color: i.danger } }; }, - noOptionsMessage: lr, + noOptionsMessage: vr, option: function(t) { var e = t.isDisabled, n = t.isFocused, @@ -146585,8 +146681,8 @@ object-assign }; } }; - var oi, - ai = { + var hi, + pi = { borderRadius: 4, colors: { primary: '#2684FF', @@ -146609,36 +146705,36 @@ object-assign }, spacing: { baseUnit: 4, controlHeight: 38, menuGutter: 8 } }, - si = { + gi = { backspaceRemovesValue: !0, - blurInputOnSelect: ir(), - captureMenuScroll: !ir(), + blurInputOnSelect: dr(), + captureMenuScroll: !dr(), closeMenuOnSelect: !0, closeMenuOnScroll: !1, components: {}, controlShouldRenderValue: !0, escapeClearsValue: !1, filterOption: function(t, e) { - var n = Gn( + var n = Kn( { ignoreCase: !0, ignoreAccents: !0, - stringify: xr, + stringify: Or, trim: !0, matchFrom: 'any' }, - oi + hi ), r = n.ignoreCase, i = n.ignoreAccents, o = n.stringify, a = n.trim, s = n.matchFrom, - u = a ? _r(e) : e, - l = a ? _r(o(t)) : o(t); + u = a ? Cr(e) : e, + l = a ? Cr(o(t)) : o(t); return ( r && ((u = u.toLowerCase()), (l = l.toLowerCase())), - i && ((u = br(u)), (l = br(l))), + i && ((u = Tr(u)), (l = Tr(l))), 'start' === s ? l.substr(0, u.length) === u : l.indexOf(u) > -1 ); }, @@ -146656,7 +146752,7 @@ object-assign isMulti: !1, isRtl: !1, isSearchable: !0, - isOptionDisabled: Fr, + isOptionDisabled: Xr, loadingMessage: function() { return 'Loading...'; }, @@ -146693,12 +146789,12 @@ object-assign tabIndex: '0', tabSelectsValue: !0 }, - ui = 1, - li = (function(t) { + mi = 1, + vi = (function(t) { function e(t) { var n; - Nn(this, e), - Vn(Xn(Xn((n = Yn(this, Un(e).call(this, t))))), 'state', { + qn(this, e), + Yn(er(er((n = nr(this, Zn(e).call(this, t))))), 'state', { ariaLiveSelection: '', ariaLiveContext: '', focusedOption: null, @@ -146708,45 +146804,45 @@ object-assign menuOptions: { render: [], focusable: [] }, selectValue: [] }), - Vn(Xn(Xn(n)), 'blockOptionHover', !1), - Vn(Xn(Xn(n)), 'isComposing', !1), - Vn(Xn(Xn(n)), 'clearFocusValueOnUpdate', !1), - Vn(Xn(Xn(n)), 'commonProps', void 0), - Vn(Xn(Xn(n)), 'components', void 0), - Vn(Xn(Xn(n)), 'hasGroups', !1), - Vn(Xn(Xn(n)), 'initialTouchX', 0), - Vn(Xn(Xn(n)), 'initialTouchY', 0), - Vn(Xn(Xn(n)), 'inputIsHiddenAfterUpdate', void 0), - Vn(Xn(Xn(n)), 'instancePrefix', ''), - Vn(Xn(Xn(n)), 'openAfterFocus', !1), - Vn(Xn(Xn(n)), 'scrollToFocusedOptionOnUpdate', !1), - Vn(Xn(Xn(n)), 'userIsDragging', void 0), - Vn(Xn(Xn(n)), 'controlRef', null), - Vn(Xn(Xn(n)), 'getControlRef', function(t) { + Yn(er(er(n)), 'blockOptionHover', !1), + Yn(er(er(n)), 'isComposing', !1), + Yn(er(er(n)), 'clearFocusValueOnUpdate', !1), + Yn(er(er(n)), 'commonProps', void 0), + Yn(er(er(n)), 'components', void 0), + Yn(er(er(n)), 'hasGroups', !1), + Yn(er(er(n)), 'initialTouchX', 0), + Yn(er(er(n)), 'initialTouchY', 0), + Yn(er(er(n)), 'inputIsHiddenAfterUpdate', void 0), + Yn(er(er(n)), 'instancePrefix', ''), + Yn(er(er(n)), 'openAfterFocus', !1), + Yn(er(er(n)), 'scrollToFocusedOptionOnUpdate', !1), + Yn(er(er(n)), 'userIsDragging', void 0), + Yn(er(er(n)), 'controlRef', null), + Yn(er(er(n)), 'getControlRef', function(t) { n.controlRef = t; }), - Vn(Xn(Xn(n)), 'focusedOptionRef', null), - Vn(Xn(Xn(n)), 'getFocusedOptionRef', function(t) { + Yn(er(er(n)), 'focusedOptionRef', null), + Yn(er(er(n)), 'getFocusedOptionRef', function(t) { n.focusedOptionRef = t; }), - Vn(Xn(Xn(n)), 'menuListRef', null), - Vn(Xn(Xn(n)), 'getMenuListRef', function(t) { + Yn(er(er(n)), 'menuListRef', null), + Yn(er(er(n)), 'getMenuListRef', function(t) { n.menuListRef = t; }), - Vn(Xn(Xn(n)), 'inputRef', null), - Vn(Xn(Xn(n)), 'getInputRef', function(t) { + Yn(er(er(n)), 'inputRef', null), + Yn(er(er(n)), 'getInputRef', function(t) { n.inputRef = t; }), - Vn(Xn(Xn(n)), 'cacheComponents', function(t) { - n.components = ri({ components: t }); + Yn(er(er(n)), 'cacheComponents', function(t) { + n.components = fi({ components: t }); }), - Vn(Xn(Xn(n)), 'focus', n.focusInput), - Vn(Xn(Xn(n)), 'blur', n.blurInput), - Vn(Xn(Xn(n)), 'onChange', function(t, e) { + Yn(er(er(n)), 'focus', n.focusInput), + Yn(er(er(n)), 'blur', n.blurInput), + Yn(er(er(n)), 'onChange', function(t, e) { var r = n.props; - (0, r.onChange)(t, Gn({}, e, { name: r.name })); + (0, r.onChange)(t, Kn({}, e, { name: r.name })); }), - Vn(Xn(Xn(n)), 'setValue', function(t) { + Yn(er(er(n)), 'setValue', function(t) { var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] @@ -146760,7 +146856,7 @@ object-assign (n.clearFocusValueOnUpdate = !0), n.onChange(t, { action: e, option: r }); }), - Vn(Xn(Xn(n)), 'selectOption', function(t) { + Yn(er(er(n)), 'selectOption', function(t) { var e = n.props, r = e.blurInputOnSelect, i = e.isMulti, @@ -146788,7 +146884,7 @@ object-assign isDisabled: !0 } }) - : (n.setValue([].concat($n(o), [t]), 'select-option', t), + : (n.setValue([].concat(rr(o), [t]), 'select-option', t), n.announceAriaLiveSelection({ event: 'select-option', context: { value: n.getOptionLabel(t) } @@ -146806,7 +146902,7 @@ object-assign })); r && n.blurInput(); }), - Vn(Xn(Xn(n)), 'removeValue', function(t) { + Yn(er(er(n)), 'removeValue', function(t) { var e = n.state.selectValue, r = n.getOptionValue(t); n.onChange( @@ -146821,11 +146917,11 @@ object-assign }), n.focusInput(); }), - Vn(Xn(Xn(n)), 'clearValue', function() { + Yn(er(er(n)), 'clearValue', function() { var t = n.props.isMulti; n.onChange(t ? [] : null, { action: 'clear' }); }), - Vn(Xn(Xn(n)), 'popValue', function() { + Yn(er(er(n)), 'popValue', function() { var t = n.state.selectValue, e = t[t.length - 1]; n.announceAriaLiveSelection({ @@ -146837,22 +146933,22 @@ object-assign removedValue: e }); }), - Vn(Xn(Xn(n)), 'getOptionLabel', function(t) { + Yn(er(er(n)), 'getOptionLabel', function(t) { return n.props.getOptionLabel(t); }), - Vn(Xn(Xn(n)), 'getOptionValue', function(t) { + Yn(er(er(n)), 'getOptionValue', function(t) { return n.props.getOptionValue(t); }), - Vn(Xn(Xn(n)), 'getStyles', function(t, e) { - var r = ii[t](e); + Yn(er(er(n)), 'getStyles', function(t, e) { + var r = di[t](e); r.boxSizing = 'border-box'; var i = n.props.styles[t]; return i ? i(r, e) : r; }), - Vn(Xn(Xn(n)), 'getElementId', function(t) { + Yn(er(er(n)), 'getElementId', function(t) { return ''.concat(n.instancePrefix, '-').concat(t); }), - Vn(Xn(Xn(n)), 'getActiveDescendentId', function() { + Yn(er(er(n)), 'getActiveDescendentId', function() { var t = n.props.menuIsOpen, e = n.state, r = e.menuOptions, @@ -146863,29 +146959,29 @@ object-assign return a && a.key; } }), - Vn(Xn(Xn(n)), 'announceAriaLiveSelection', function(t) { + Yn(er(er(n)), 'announceAriaLiveSelection', function(t) { var e = t.event, r = t.context; - n.setState({ ariaLiveSelection: Ir(e, r) }); + n.setState({ ariaLiveSelection: Wr(e, r) }); }), - Vn(Xn(Xn(n)), 'announceAriaLiveContext', function(t) { + Yn(er(er(n)), 'announceAriaLiveContext', function(t) { var e = t.event, r = t.context; n.setState({ - ariaLiveContext: Nr( + ariaLiveContext: qr( e, - Gn({}, r, { label: n.props['aria-label'] }) + Kn({}, r, { label: n.props['aria-label'] }) ) }); }), - Vn(Xn(Xn(n)), 'onMenuMouseDown', function(t) { + Yn(er(er(n)), 'onMenuMouseDown', function(t) { 0 === t.button && (t.stopPropagation(), t.preventDefault(), n.focusInput()); }), - Vn(Xn(Xn(n)), 'onMenuMouseMove', function(t) { + Yn(er(er(n)), 'onMenuMouseMove', function(t) { n.blockOptionHover = !1; }), - Vn(Xn(Xn(n)), 'onControlMouseDown', function(t) { + Yn(er(er(n)), 'onControlMouseDown', function(t) { var e = n.props.openMenuOnClick; n.state.isFocused ? n.props.menuIsOpen @@ -146894,7 +146990,7 @@ object-assign : (e && (n.openAfterFocus = !0), n.focusInput()), 'INPUT' !== t.target.tagName && t.preventDefault(); }), - Vn(Xn(Xn(n)), 'onDropdownIndicatorMouseDown', function(t) { + Yn(er(er(n)), 'onDropdownIndicatorMouseDown', function(t) { if ( !( (t && 'mousedown' === t.type && 0 !== t.button) || @@ -146912,7 +147008,7 @@ object-assign t.stopPropagation(); } }), - Vn(Xn(Xn(n)), 'onClearIndicatorMouseDown', function(t) { + Yn(er(er(n)), 'onClearIndicatorMouseDown', function(t) { (t && 'mousedown' === t.type && 0 !== t.button) || (n.clearValue(), t.stopPropagation(), @@ -146921,29 +147017,29 @@ object-assign return n.focusInput(); })); }), - Vn(Xn(Xn(n)), 'onScroll', function(t) { + Yn(er(er(n)), 'onScroll', function(t) { 'boolean' == typeof n.props.closeMenuOnScroll ? t.target instanceof HTMLElement && - tr(t.target) && + ur(t.target) && n.props.onMenuClose() : 'function' == typeof n.props.closeMenuOnScroll && n.props.closeMenuOnScroll(t) && n.props.onMenuClose(); }), - Vn(Xn(Xn(n)), 'onCompositionStart', function() { + Yn(er(er(n)), 'onCompositionStart', function() { n.isComposing = !0; }), - Vn(Xn(Xn(n)), 'onCompositionEnd', function() { + Yn(er(er(n)), 'onCompositionEnd', function() { n.isComposing = !1; }), - Vn(Xn(Xn(n)), 'onTouchStart', function(t) { + Yn(er(er(n)), 'onTouchStart', function(t) { var e = t.touches.item(0); e && ((n.initialTouchX = e.clientX), (n.initialTouchY = e.clientY), (n.userIsDragging = !1)); }), - Vn(Xn(Xn(n)), 'onTouchMove', function(t) { + Yn(er(er(n)), 'onTouchMove', function(t) { var e = t.touches.item(0); if (e) { var r = Math.abs(e.clientX - n.initialTouchX), @@ -146951,7 +147047,7 @@ object-assign n.userIsDragging = r > 5 || i > 5; } }), - Vn(Xn(Xn(n)), 'onTouchEnd', function(t) { + Yn(er(er(n)), 'onTouchEnd', function(t) { n.userIsDragging || (n.controlRef && !n.controlRef.contains(t.target) && @@ -146961,22 +147057,22 @@ object-assign (n.initialTouchX = 0), (n.initialTouchY = 0)); }), - Vn(Xn(Xn(n)), 'onControlTouchEnd', function(t) { + Yn(er(er(n)), 'onControlTouchEnd', function(t) { n.userIsDragging || n.onControlMouseDown(t); }), - Vn(Xn(Xn(n)), 'onClearIndicatorTouchEnd', function(t) { + Yn(er(er(n)), 'onClearIndicatorTouchEnd', function(t) { n.userIsDragging || n.onClearIndicatorMouseDown(t); }), - Vn(Xn(Xn(n)), 'onDropdownIndicatorTouchEnd', function(t) { + Yn(er(er(n)), 'onDropdownIndicatorTouchEnd', function(t) { n.userIsDragging || n.onDropdownIndicatorMouseDown(t); }), - Vn(Xn(Xn(n)), 'handleInputChange', function(t) { + Yn(er(er(n)), 'handleInputChange', function(t) { var e = t.currentTarget.value; (n.inputIsHiddenAfterUpdate = !1), n.onInputChange(e, { action: 'input-change' }), n.onMenuOpen(); }), - Vn(Xn(Xn(n)), 'onInputFocus', function(t) { + Yn(er(er(n)), 'onInputFocus', function(t) { var e = n.props, r = e.isSearchable, i = e.isMulti; @@ -146991,7 +147087,7 @@ object-assign n.openMenu('first'), (n.openAfterFocus = !1); }), - Vn(Xn(Xn(n)), 'onInputBlur', function(t) { + Yn(er(er(n)), 'onInputBlur', function(t) { n.menuListRef && n.menuListRef.contains(document.activeElement) ? n.inputRef.focus() : (n.props.onBlur && n.props.onBlur(t), @@ -146999,18 +147095,18 @@ object-assign n.onMenuClose(), n.setState({ focusedValue: null, isFocused: !1 })); }), - Vn(Xn(Xn(n)), 'onOptionHover', function(t) { + Yn(er(er(n)), 'onOptionHover', function(t) { n.blockOptionHover || n.state.focusedOption === t || n.setState({ focusedOption: t }); }), - Vn(Xn(Xn(n)), 'shouldHideSelectedOptions', function() { + Yn(er(er(n)), 'shouldHideSelectedOptions', function() { var t = n.props, e = t.hideSelectedOptions, r = t.isMulti; return void 0 === e ? r : e; }), - Vn(Xn(Xn(n)), 'onKeyDown', function(t) { + Yn(er(er(n)), 'onKeyDown', function(t) { var e = n.props, r = e.isMulti, i = e.backspaceRemovesValue, @@ -147113,19 +147209,19 @@ object-assign } }); var r = t.value; - (n.cacheComponents = Object(On.a)(n.cacheComponents, vr).bind( - Xn(Xn(n)) + (n.cacheComponents = Object(Nn.a)(n.cacheComponents, kr).bind( + er(er(n)) )), n.cacheComponents(t.components), (n.instancePrefix = - 'react-select-' + (n.props.instanceId || ++ui)); - var i = Jn(r), + 'react-select-' + (n.props.instanceId || ++mi)); + var i = sr(r), o = n.buildMenuOptions(t, i); return (n.state.menuOptions = o), (n.state.selectValue = i), n; } return ( - Hn(e, t), - Fn(e, [ + Qn(e, t), + Xn(e, [ { key: 'componentDidMount', value: function() { @@ -147149,7 +147245,7 @@ object-assign (this.cacheComponents(t.components), t.value !== r || t.options !== n || t.inputValue !== i) ) { - var o = Jn(t.value), + var o = sr(t.value), a = this.buildMenuOptions(t, o), s = this.getNextFocusedValue(o), u = this.getNextFocusedOption(a.focusable); @@ -147190,7 +147286,7 @@ object-assign (i = n.getBoundingClientRect()), (o = n.offsetHeight / 3), i.bottom + o > r.bottom - ? nr( + ? cr( e, Math.min( n.offsetTop + n.clientHeight - e.offsetHeight + o, @@ -147198,7 +147294,7 @@ object-assign ) ) : i.top - o < r.top && - nr(e, Math.max(n.offsetTop - o, 0))), + cr(e, Math.max(n.offsetTop - o, 0))), (this.scrollToFocusedOptionOnUpdate = !1); } }, @@ -147345,7 +147441,7 @@ object-assign }), this.announceAriaLiveContext({ event: 'menu', - context: { isDisabled: Fr(o[a]) } + context: { isDisabled: Xr(o[a]) } }); } } @@ -147355,9 +147451,9 @@ object-assign value: function() { return this.props.theme ? 'function' == typeof this.props.theme - ? this.props.theme(ai) - : Gn({}, ai, this.props.theme) - : ai; + ? this.props.theme(pi) + : Kn({}, pi, this.props.theme) + : pi; } }, { @@ -147375,7 +147471,7 @@ object-assign l = this.state.selectValue, c = this.hasValue(); return { - cx: Zn.bind(null, o), + cx: ar.bind(null, o), clearValue: t, getStyles: e, getValue: function() { @@ -147710,11 +147806,11 @@ object-assign s = this.state.inputIsHidden, l = r || this.getElementId('input'); if (!n) - return u.a.createElement(Sr, { + return u.a.createElement(Mr, { id: l, innerRef: this.getInputRef, onBlur: this.onInputBlur, - onChange: Kn, + onChange: ir, onFocus: this.onInputFocus, readOnly: !0, disabled: e, @@ -147732,7 +147828,7 @@ object-assign p = f.selectProps; return u.a.createElement( a, - Bn( + $n( { autoCapitalize: 'none', autoComplete: 'off', @@ -147785,7 +147881,7 @@ object-assign ? null : u.a.createElement( s, - Bn({}, l, { + $n({}, l, { key: 'placeholder', isDisabled: d, isFocused: b @@ -147797,7 +147893,7 @@ object-assign var a = e === y; return u.a.createElement( n, - Bn({}, l, { + $n({}, l, { components: { Container: r, Label: i, Remove: o }, isFocused: a, isDisabled: d, @@ -147822,7 +147918,7 @@ object-assign var _ = v[0]; return u.a.createElement( a, - Bn({}, l, { data: _, isDisabled: d }), + $n({}, l, { data: _, isDisabled: d }), this.formatOptionLabel(_, 'value') ); } @@ -147845,7 +147941,7 @@ object-assign }; return u.a.createElement( t, - Bn({}, e, { innerProps: a, isFocused: o }) + $n({}, e, { innerProps: a, isFocused: o }) ); } }, @@ -147861,7 +147957,7 @@ object-assign if (!t || !i) return null; return u.a.createElement( t, - Bn({}, e, { + $n({}, e, { innerProps: { 'aria-hidden': 'true' }, isDisabled: r, isFocused: o @@ -147881,7 +147977,7 @@ object-assign o = this.state.isFocused; return u.a.createElement( n, - Bn({}, r, { isDisabled: i, isFocused: o }) + $n({}, r, { isDisabled: i, isFocused: o }) ); } }, @@ -147900,7 +147996,7 @@ object-assign }; return u.a.createElement( t, - Bn({}, e, { innerProps: i, isDisabled: n, isFocused: r }) + $n({}, e, { innerProps: i, isDisabled: n, isFocused: r }) ); } }, @@ -147945,7 +148041,7 @@ object-assign (e.innerRef = n ? t.getFocusedOptionRef : void 0), u.a.createElement( c, - Bn({}, f, e, { isFocused: n }), + $n({}, f, e, { isFocused: n }), t.formatOptionLabel(e.data, 'menu') ) ); @@ -147954,11 +148050,11 @@ object-assign M = p.render.map(function(e) { if ('group' === e.type) { e.type; - var i = Wn(e, ['type']), + var i = tr(e, ['type']), o = ''.concat(e.key, '-heading'); return u.a.createElement( n, - Bn({}, f, i, { + $n({}, f, i, { Heading: r, headingProps: { id: o }, label: t.formatGroupLabel(e.data) @@ -147971,13 +148067,13 @@ object-assign if ('option' === e.type) return L(e); }); else if (y) { - var D = b({ inputValue: v }); - if (null === D) return null; - M = u.a.createElement(s, f, D); - } else { - var j = C({ inputValue: v }); + var j = b({ inputValue: v }); if (null === j) return null; - M = u.a.createElement(l, f, j); + M = u.a.createElement(s, f, j); + } else { + var D = C({ inputValue: v }); + if (null === D) return null; + M = u.a.createElement(l, f, D); } var R = { minMenuHeight: _, @@ -147986,14 +148082,14 @@ object-assign menuPosition: E, menuShouldScrollIntoView: T }, - z = u.a.createElement(sr, Bn({}, f, R), function(e) { + z = u.a.createElement(gr, $n({}, f, R), function(e) { var n = e.ref, r = e.placerProps, a = r.placement, s = r.maxHeight; return u.a.createElement( i, - Bn({}, f, R, { + $n({}, f, R, { innerRef: n, innerProps: { onMouseDown: t.onMenuMouseDown, @@ -148003,14 +148099,14 @@ object-assign placement: a }), u.a.createElement( - zr, + Ur, { isEnabled: m, onTopArrive: O, onBottomArrive: P }, u.a.createElement( - jr, + Gr, { isEnabled: A }, u.a.createElement( o, - Bn({}, f, { + $n({}, f, { innerRef: t.getMenuListRef, isLoading: y, maxHeight: s @@ -148024,7 +148120,7 @@ object-assign return k || 'fixed' === E ? u.a.createElement( a, - Bn({}, f, { + $n({}, f, { appendTo: k, controlElement: this.controlRef, menuPlacement: S, @@ -148089,7 +148185,7 @@ object-assign value: function() { return this.state.isFocused ? u.a.createElement( - wr, + Pr, { 'aria-live': 'assertive' }, u.a.createElement( 'p', @@ -148124,7 +148220,7 @@ object-assign d = (this.commonProps = this.getCommonProps()); return u.a.createElement( r, - Bn({}, d, { + $n({}, d, { className: a, innerProps: { id: s, onKeyDown: this.onKeyDown }, isDisabled: l, @@ -148133,7 +148229,7 @@ object-assign this.renderLiveRegion(), u.a.createElement( e, - Bn({}, d, { + $n({}, d, { innerRef: this.getControlRef, innerProps: { onMouseDown: this.onControlMouseDown, @@ -148145,13 +148241,13 @@ object-assign }), u.a.createElement( i, - Bn({}, d, { isDisabled: l }), + $n({}, d, { isDisabled: l }), this.renderPlaceholderOrValue(), this.renderInput() ), u.a.createElement( n, - Bn({}, d, { isDisabled: l }), + $n({}, d, { isDisabled: l }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), @@ -148167,19 +148263,19 @@ object-assign e ); })(s.Component); - Vn(li, 'defaultProps', si); - var ci = { + Yn(vi, 'defaultProps', gi); + var yi = { defaultInputValue: '', defaultMenuIsOpen: !1, defaultValue: null }, - fi = function(t) { + bi = function(t) { var e, n; return ( (n = e = (function(e) { function n() { var t, e; - Nn(this, n); + qn(this, n); for ( var r = arguments.length, i = new Array(r), o = 0; o < r; @@ -148187,19 +148283,19 @@ object-assign ) i[o] = arguments[o]; return ( - Vn( - Xn( - Xn( - (e = Yn( + Yn( + er( + er( + (e = nr( this, - (t = Un(n)).call.apply(t, [this].concat(i)) + (t = Zn(n)).call.apply(t, [this].concat(i)) )) ) ), 'select', void 0 ), - Vn(Xn(Xn(e)), 'state', { + Yn(er(er(e)), 'state', { inputValue: void 0 !== e.props.inputValue ? e.props.inputValue @@ -148213,25 +148309,25 @@ object-assign ? e.props.value : e.props.defaultValue }), - Vn(Xn(Xn(e)), 'onChange', function(t, n) { + Yn(er(er(e)), 'onChange', function(t, n) { e.callProp('onChange', t, n), e.setState({ value: t }); }), - Vn(Xn(Xn(e)), 'onInputChange', function(t, n) { + Yn(er(er(e)), 'onInputChange', function(t, n) { var r = e.callProp('onInputChange', t, n); e.setState({ inputValue: void 0 !== r ? r : t }); }), - Vn(Xn(Xn(e)), 'onMenuOpen', function() { + Yn(er(er(e)), 'onMenuOpen', function() { e.callProp('onMenuOpen'), e.setState({ menuIsOpen: !0 }); }), - Vn(Xn(Xn(e)), 'onMenuClose', function() { + Yn(er(er(e)), 'onMenuClose', function() { e.callProp('onMenuClose'), e.setState({ menuIsOpen: !1 }); }), e ); } return ( - Hn(n, e), - Fn(n, [ + Qn(n, e), + Xn(n, [ { key: 'focus', value: function() { @@ -148278,14 +148374,14 @@ object-assign (n.defaultInputValue, n.defaultMenuIsOpen, n.defaultValue, - Wn(n, [ + tr(n, [ 'defaultInputValue', 'defaultMenuIsOpen', 'defaultValue' ])); return u.a.createElement( t, - Bn({}, r, { + $n({}, r, { ref: function(t) { e.select = t; }, @@ -148304,28 +148400,28 @@ object-assign n ); })(s.Component)), - Vn(e, 'defaultProps', ci), + Yn(e, 'defaultProps', yi), n ); }, - di = { cacheOptions: !1, defaultOptions: !1, filterOption: null }, - hi = function(t) { + _i = { cacheOptions: !1, defaultOptions: !1, filterOption: null }, + xi = function(t) { var e, n; return ( (n = e = (function(e) { function n(t) { var e; return ( - Nn(this, n), - Vn( - Xn(Xn((e = Yn(this, Un(n).call(this))))), + qn(this, n), + Yn( + er(er((e = nr(this, Zn(n).call(this))))), 'select', void 0 ), - Vn(Xn(Xn(e)), 'lastRequest', void 0), - Vn(Xn(Xn(e)), 'mounted', !1), - Vn(Xn(Xn(e)), 'optionsCache', {}), - Vn(Xn(Xn(e)), 'handleInputChange', function(t, n) { + Yn(er(er(e)), 'lastRequest', void 0), + Yn(er(er(e)), 'mounted', !1), + Yn(er(er(e)), 'optionsCache', {}), + Yn(er(er(e)), 'handleInputChange', function(t, n) { var r = e.props, i = r.cacheOptions, o = (function(t, e, n) { @@ -148393,8 +148489,8 @@ object-assign ); } return ( - Hn(n, e), - Fn(n, [ + Qn(n, e), + Xn(n, [ { key: 'componentDidMount', value: function() { @@ -148463,7 +148559,7 @@ object-assign value: function() { var e = this, n = this.props, - r = (n.loadOptions, Wn(n, ['loadOptions'])), + r = (n.loadOptions, tr(n, ['loadOptions'])), i = this.state, o = i.defaultOptions, a = i.inputValue, @@ -148473,7 +148569,7 @@ object-assign f = i.passEmptyOptions ? [] : a && l ? c : o || []; return u.a.createElement( t, - Bn({}, r, { + $n({}, r, { ref: function(t) { e.select = t; }, @@ -148488,12 +148584,12 @@ object-assign n ); })(s.Component)), - Vn(e, 'defaultProps', di), + Yn(e, 'defaultProps', _i), n ); }, - pi = - (hi(fi(li)), + wi = + (xi(bi(vi)), function() { var t = arguments.length > 0 && void 0 !== arguments[0] @@ -148505,7 +148601,7 @@ object-assign i = String(e.label).toLowerCase(); return r === n || i === n; }), - gi = Gn( + Si = Kn( { allowCreateWhileLoading: !1, createOptionPosition: 'last' }, { formatCreateLabel: function(t) { @@ -148515,10 +148611,10 @@ object-assign return !( !t || e.some(function(e) { - return pi(t, e); + return wi(t, e); }) || n.some(function(e) { - return pi(t, e); + return wi(t, e); }) ); }, @@ -148527,19 +148623,19 @@ object-assign } } ), - mi = function(t) { + Ei = function(t) { var e, n; return ( (n = e = (function(e) { function n(t) { var e; - Nn(this, n), - Vn( - Xn(Xn((e = Yn(this, Un(n).call(this, t))))), + qn(this, n), + Yn( + er(er((e = nr(this, Zn(n).call(this, t))))), 'select', void 0 ), - Vn(Xn(Xn(e)), 'onChange', function(t, n) { + Yn(er(er(e)), 'onChange', function(t, n) { var r = e.props, i = r.getNewOptionData, o = r.inputValue, @@ -148555,15 +148651,15 @@ object-assign else { var d = i(o, o), h = { action: 'create-option' }; - s(a ? [].concat($n(Jn(l)), [d]) : d, h); + s(a ? [].concat(rr(sr(l)), [d]) : d, h); } }); var r = t.options || []; return (e.state = { newOption: void 0, options: r }), e; } return ( - Hn(n, e), - Fn(n, [ + Qn(n, e), + Xn(n, [ { key: 'componentWillReceiveProps', value: function(t) { @@ -148577,15 +148673,15 @@ object-assign u = t.value, l = t.options || [], c = this.state.newOption; - (c = s(o, Jn(u), l) ? i(o, r(o)) : void 0), + (c = s(o, sr(u), l) ? i(o, r(o)) : void 0), this.setState({ newOption: c, options: (!e && a) || !c ? l : 'first' === n - ? [c].concat($n(l)) - : [].concat($n(l), [c]) + ? [c].concat(rr(l)) + : [].concat(rr(l), [c]) }); } }, @@ -148605,11 +148701,11 @@ object-assign key: 'render', value: function() { var e = this, - n = Bn({}, this.props), + n = $n({}, this.props), r = this.state.options; return u.a.createElement( t, - Bn({}, n, { + $n({}, n, { ref: function(t) { e.select = t; }, @@ -148623,27 +148719,27 @@ object-assign n ); })(s.Component)), - Vn(e, 'defaultProps', gi), + Yn(e, 'defaultProps', Si), n ); }, - vi = - (fi(mi(li)), - hi(fi(mi(li))), + ki = + (bi(Ei(vi)), + xi(bi(Ei(vi))), function(t) { return function(e) { e.in, e.onExited, e.appear, e.enter, e.exit; - var n = Wn(e, ['in', 'onExited', 'appear', 'enter', 'exit']); + var n = tr(e, ['in', 'onExited', 'appear', 'enter', 'exit']); return u.a.createElement(t, n); }; }), - yi = function(t) { + Ai = function(t) { var e = t.component, n = t.duration, r = void 0 === n ? 1 : n, i = t.in, o = - (t.onExited, Wn(t, ['component', 'duration', 'in', 'onExited'])), + (t.onExited, tr(t, ['component', 'duration', 'in', 'onExited'])), a = { entering: { opacity: 0 }, entered: { opacity: 1, transition: 'opacity '.concat(r, 'ms') }, @@ -148651,41 +148747,41 @@ object-assign exited: { opacity: 0 } }; return u.a.createElement( - Rn.Transition, + Hn.Transition, { mountOnEnter: !0, unmountOnExit: !0, in: i, timeout: r }, function(t) { - var n = { style: Gn({}, a[t]) }; - return u.a.createElement(e, Bn({ innerProps: n }, o)); + var n = { style: Kn({}, a[t]) }; + return u.a.createElement(e, $n({ innerProps: n }, o)); } ); }, - bi = 260, - _i = (function(t) { + Ti = 260, + Ci = (function(t) { function e() { var t, n; - Nn(this, e); + qn(this, e); for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) i[o] = arguments[o]; return ( - Vn( - Xn( - Xn( - (n = Yn(this, (t = Un(e)).call.apply(t, [this].concat(i)))) + Yn( + er( + er( + (n = nr(this, (t = Zn(e)).call.apply(t, [this].concat(i)))) ) ), 'duration', - bi + Ti ), - Vn(Xn(Xn(n)), 'rafID', void 0), - Vn(Xn(Xn(n)), 'state', { width: 'auto' }), - Vn(Xn(Xn(n)), 'transition', { + Yn(er(er(n)), 'rafID', void 0), + Yn(er(er(n)), 'state', { width: 'auto' }), + Yn(er(er(n)), 'transition', { exiting: { width: 0, transition: 'width '.concat(n.duration, 'ms ease-out') }, exited: { width: 0 } }), - Vn(Xn(Xn(n)), 'getWidth', function(t) { + Yn(er(er(n)), 'getWidth', function(t) { t && isNaN(n.state.width) && (n.rafID = window.requestAnimationFrame(function() { @@ -148693,18 +148789,18 @@ object-assign n.setState({ width: e }); })); }), - Vn(Xn(Xn(n)), 'getStyle', function(t) { + Yn(er(er(n)), 'getStyle', function(t) { return { overflow: 'hidden', whiteSpace: 'nowrap', width: t }; }), - Vn(Xn(Xn(n)), 'getTransition', function(t) { + Yn(er(er(n)), 'getTransition', function(t) { return n.transition[t]; }), n ); } return ( - Hn(e, t), - Fn(e, [ + Qn(e, t), + Xn(e, [ { key: 'componentWillUnmount', value: function() { @@ -148720,7 +148816,7 @@ object-assign r = e.in, i = this.state.width; return u.a.createElement( - Rn.Transition, + Hn.Transition, { enter: !1, mountOnEnter: !0, @@ -148729,7 +148825,7 @@ object-assign timeout: this.duration }, function(e) { - var r = Gn({}, t.getStyle(i), t.getTransition(e)); + var r = Kn({}, t.getStyle(i), t.getTransition(e)); return u.a.createElement( 'div', { ref: t.getWidth, style: r }, @@ -148743,78 +148839,78 @@ object-assign e ); })(s.Component), - xi = function(t) { + Oi = function(t) { return function(e) { var n = e.in, r = e.onExited, - i = Wn(e, ['in', 'onExited']); + i = tr(e, ['in', 'onExited']); return u.a.createElement( - _i, + Ci, { in: n, onExited: r }, - u.a.createElement(t, Bn({ cropWithEllipsis: n }, i)) + u.a.createElement(t, $n({ cropWithEllipsis: n }, i)) ); }; }, - wi = function(t) { + Pi = function(t) { return function(e) { return u.a.createElement( - yi, - Bn({ component: t, duration: e.isMulti ? bi : 1 }, e) + Ai, + $n({ component: t, duration: e.isMulti ? Ti : 1 }, e) ); }; }, - Si = function(t) { + Mi = function(t) { return function(e) { - return u.a.createElement(yi, Bn({ component: t }, e)); + return u.a.createElement(Ai, $n({ component: t }, e)); }; }, - Ei = function(t) { + Li = function(t) { return function(e) { return u.a.createElement( - Rn.TransitionGroup, - Bn({ component: t }, e) + Hn.TransitionGroup, + $n({ component: t }, e) ); }; }, - ki = function() { + ji = function() { var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, - e = ri({ components: t }), + e = fi({ components: t }), n = e.Input, r = e.MultiValue, i = e.Placeholder, o = e.SingleValue, a = e.ValueContainer, - s = Wn(e, [ + s = tr(e, [ 'Input', 'MultiValue', 'Placeholder', 'SingleValue', 'ValueContainer' ]); - return Gn( + return Kn( { - Input: vi(n), - MultiValue: xi(r), - Placeholder: wi(i), - SingleValue: Si(o), - ValueContainer: Ei(a) + Input: ki(n), + MultiValue: Oi(r), + Placeholder: Pi(i), + SingleValue: Mi(o), + ValueContainer: Li(a) }, s ); }, - Ai = ki(), - Ti = - (Ai.Input, - Ai.MultiValue, - Ai.Placeholder, - Ai.SingleValue, - Ai.ValueContainer, - Object(On.a)(ki, vr), - fi(li)), - Ci = he( + Di = ji(), + Ri = + (Di.Input, + Di.MultiValue, + Di.Placeholder, + Di.SingleValue, + Di.ValueContainer, + Object(Nn.a)(ji, kr), + bi(vi)), + zi = xe( function(t) { return { sortingValue: t.app.sortingValue }; }, @@ -148832,11 +148928,11 @@ object-assign return u.a.createElement( 'div', { className: 'top-toolbar' }, - 'editor' === e && u.a.createElement(Cn, null), + 'editor' === e && u.a.createElement(zn, null), u.a.createElement( 'div', { className: 'search' }, - u.a.createElement(yn.a, { icon: 'search', size: 'sm' }), + u.a.createElement(An.a, { icon: 'search', size: 'sm' }), u.a.createElement('input', { type: 'text', placeholder: 'Search', @@ -148848,7 +148944,7 @@ object-assign u.a.createElement( 'div', { className: 'sorting-select' }, - u.a.createElement(Ti, { + u.a.createElement(Ri, { value: n, onChange: function(e) { return t.changeSorting(e); @@ -148863,7 +148959,7 @@ object-assign ) ); }), - Oi = he(null, { + Ni = xe(null, { deleteDashboardItem: function(t) { return function(e, n, r) { var i = r.keenClient, @@ -148874,7 +148970,7 @@ object-assign .concat(o, '/projects/') .concat(i.projectId(), '/dashboards/') .concat(t), - en({ method: 'delete' }, a) + cn({ method: 'delete' }, a) ) .then(function(n) { 204 === n.status && @@ -148900,12 +148996,12 @@ object-assign { onClick: function() { confirm('Do You want to delete this dashboard?') && - (Le.a.hide(), e(n)); + (Ve.a.hide(), e(n)); } }, - u.a.createElement(yn.a, { icon: 'trash-alt', size: 'sm' }) + u.a.createElement(An.a, { icon: 'trash-alt', size: 'sm' }) ), - u.a.createElement(Le.a, { + u.a.createElement(Ve.a, { id: 'enrich', place: 'top', type: 'dark', @@ -148916,32 +149012,32 @@ object-assign }) ); }), - Pi = 'en', - Mi = {}; - function Li() { - return Pi; + Ii = 'en', + Fi = {}; + function Vi() { + return Ii; } - function Di(t) { - return Mi[t]; + function Bi(t) { + return Fi[t]; } - function ji(t) { + function Gi(t) { var e = (arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}) .localeMatcher || 'lookup'; switch (e) { case 'lookup': case 'best fit': - return Ri(t); + return Hi(t); default: throw new RangeError('Invalid "localeMatcher" option: '.concat(e)); } } - function Ri(t) { - if (Di(t)) return t; + function Hi(t) { + if (Bi(t)) return t; for (var e = t.split('-'); t.length > 1; ) - if ((e.pop(), Di((t = e.join('-'))))) return t; + if ((e.pop(), Bi((t = e.join('-'))))) return t; } - function zi(t, e) { + function Ui(t, e) { for (var n = 0; n < e.length; n++) { var r = e[n]; (r.enumerable = r.enumerable || !1), @@ -148950,7 +149046,7 @@ object-assign Object.defineProperty(t, r.key, r); } } - function Ni(t, e, n) { + function qi(t, e, n) { return ( e in t ? Object.defineProperty(t, e, { @@ -148963,7 +149059,7 @@ object-assign t ); } - var Ii = [ + var Wi = [ 'second', 'minute', 'hour', @@ -148973,9 +149069,9 @@ object-assign 'quarter', 'year' ], - Fi = ['auto', 'always'], - Vi = ['long', 'short', 'narrow'], - Bi = (function() { + Xi = ['auto', 'always'], + Yi = ['long', 'short', 'narrow'], + $i = (function() { function t() { var e = arguments.length > 0 && void 0 !== arguments[0] @@ -148989,33 +149085,33 @@ object-assign if (!(t instanceof e)) throw new TypeError('Cannot call a class as a function'); })(this, t), - Ni(this, 'numeric', 'always'), - Ni(this, 'style', 'long'), - Ni(this, 'localeMatcher', 'lookup'); + qi(this, 'numeric', 'always'), + qi(this, 'style', 'long'), + qi(this, 'localeMatcher', 'lookup'); var r = n.numeric, i = n.style, o = n.localeMatcher; if (r) { - if (Fi.indexOf(r) < 0) + if (Xi.indexOf(r) < 0) throw new RangeError('Invalid "numeric" option: '.concat(r)); this.numeric = r; } if (i) { - if (Vi.indexOf(i) < 0) + if (Yi.indexOf(i) < 0) throw new RangeError('Invalid "style" option: '.concat(i)); this.style = i; } if ( (o && (this.localeMatcher = o), 'string' == typeof e && (e = [e]), - e.push(Li()), + e.push(Vi()), (this.locale = t.supportedLocalesOf(e, { localeMatcher: this.localeMatcher })[0]), !this.locale) ) throw new TypeError('No supported locale was found'); - (this.locale = ji(this.locale, { + (this.locale = Gi(this.locale, { localeMatcher: this.localeMatcher })), 'undefined' != typeof Intl && @@ -149061,9 +149157,9 @@ object-assign { key: 'getRule', value: function(t, e) { - if (Ii.indexOf(e) < 0) + if (Wi.indexOf(e) < 0) throw new RangeError('Unknown time unit: '.concat(e, '.')); - var n = Di(this.locale)[this.style][e]; + var n = Bi(this.locale)[this.style][e]; if ('auto' === this.numeric) if (-2 === t || -1 === t) { var r = @@ -149076,7 +149172,7 @@ object-assign } else if (0 === t && n.current) return n.current; var o = n[t <= 0 ? 'past' : 'future']; if ('string' == typeof o) return o; - var a = Di(this.locale).quantify, + var a = Bi(this.locale).quantify, s = a && a(Math.abs(t)); return o[(s = s || 'other')] || o.other; } @@ -149099,13 +149195,13 @@ object-assign }; } } - ]) && zi(e.prototype, n), - r && zi(e, r), + ]) && Ui(e.prototype, n), + r && Ui(e, r), t ); })(); - function Gi(t) { - return (Gi = + function Ki(t) { + return (Ki = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(t) { return typeof t; @@ -149119,7 +149215,7 @@ object-assign : typeof t; })(t); } - function Hi(t, e) { + function Qi(t, e) { for (var n = 0; n < e.length; n++) { var r = e[n]; (r.enumerable = r.enumerable || !1), @@ -149128,25 +149224,25 @@ object-assign Object.defineProperty(t, r.key, r); } } - (Bi.supportedLocalesOf = function(t) { + ($i.supportedLocalesOf = function(t) { var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; return ( 'string' == typeof t && (t = [t]), t.filter(function(t) { - return ji(t, e); + return Gi(t, e); }) ); }), - (Bi.addLocale = function(t) { + ($i.addLocale = function(t) { if (!t) throw new Error('No locale data passed'); - Mi[t.locale] = t; + Fi[t.locale] = t; }), - (Bi.setDefaultLocale = function(t) { - Pi = t; + ($i.setDefaultLocale = function(t) { + Ii = t; }), - (Bi.getDefaultLocale = Li); - var Ui = (function() { + ($i.getDefaultLocale = Vi); + var Zi = (function() { function t() { !(function(t, e) { if (!(t instanceof e)) @@ -149181,7 +149277,7 @@ object-assign n[r] = arguments[r]; for (var i = 0; i < n.length; i++) { var o = n[i]; - if ('object' !== Gi(t)) return; + if ('object' !== Ki(t)) return; t = t[o]; } return t; @@ -149202,18 +149298,18 @@ object-assign a++ ) { var s = e[a]; - 'object' !== Gi(o[s]) && (o[s] = {}), (o = o[s]); + 'object' !== Ki(o[s]) && (o[s] = {}), (o = o[s]); } return (o[i] = r); } } - ]) && Hi(e.prototype, n), - r && Hi(e, r), + ]) && Qi(e.prototype, n), + r && Qi(e, r), t ); })(), - qi = 86400; - function Wi(t, e) { + Ji = 86400; + function to(t, e) { var n = t, r = Array.isArray(n), i = 0; @@ -149230,10 +149326,10 @@ object-assign if (a.unit === e) return a; } } - function Xi(t) { + function eo(t) { return t instanceof Date ? t : new Date(t); } - var Yi = [ + var no = [ { factor: 1, unit: 'now' }, { threshold: 1, threshold_for_now: 45, factor: 1, unit: 'second' }, { threshold: 45, factor: 60, unit: 'minute' }, @@ -149245,13 +149341,13 @@ object-assign factor: 3600, unit: 'hour' }, - { threshold: 73800, factor: qi, unit: 'day' }, - { threshold: 475200, factor: 7 * qi, unit: 'week' }, + { threshold: 73800, factor: Ji, unit: 'day' }, + { threshold: 475200, factor: 7 * Ji, unit: 'week' }, { threshold: 2116800, factor: 2630016, unit: 'month' }, { threshold: 27615168, factor: 31556952, unit: 'year' } ]; - function $i(t) { - return ($i = + function ro(t) { + return (ro = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(t) { return typeof t; @@ -149265,9 +149361,9 @@ object-assign : typeof t; })(t); } - function Ki(t, e, n) { + function io(t, e, n) { var r = - arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : Yi; + arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : no; if ( 0 !== (r = (function(t, e) { @@ -149292,7 +149388,7 @@ object-assign void 0 === i && (i = e.threshold); 'function' == typeof i && (i = i(n, r)); if (t && 'number' != typeof i) { - var o = $i(i); + var o = ro(i); throw new Error( 'Each step of a gradation must have a threshold defined except for the first one. Got "' .concat(i, '", ') @@ -149321,8 +149417,8 @@ object-assign } } } - function Qi(t) { - return (Qi = + function oo(t) { + return (oo = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(t) { return typeof t; @@ -149336,28 +149432,28 @@ object-assign : typeof t; })(t); } - function Zi() { + function ao() { return ( - 'object' === ('undefined' == typeof Intl ? 'undefined' : Qi(Intl)) && + 'object' === ('undefined' == typeof Intl ? 'undefined' : oo(Intl)) && 'function' == typeof Intl.DateTimeFormat ); } - var Ji = { - gradation: Yi, + var so = { + gradation: no, flavour: ['long-convenient', 'long'], units: ['now', 'minute', 'hour', 'day', 'week', 'month', 'year'] }, - to = [ + uo = [ { factor: 1, unit: 'now' }, { threshold: 0.5, factor: 1, unit: 'second' }, { threshold: 59.5, factor: 60, unit: 'minute' }, { threshold: 3570, factor: 3600, unit: 'hour' }, - { threshold: 84600, factor: qi, unit: 'day' }, - { threshold: 561600, factor: 7 * qi, unit: 'week' }, + { threshold: 84600, factor: Ji, unit: 'day' }, + { threshold: 561600, factor: 7 * Ji, unit: 'week' }, { threshold: 2116800, factor: 2630016, unit: 'month' }, { threshold: 30245184, factor: 31556952, unit: 'year' } ]; - function eo(t, e, n) { + function lo(t, e, n) { return ( e in t ? Object.defineProperty(t, e, { @@ -149370,8 +149466,8 @@ object-assign t ); } - var no = {}, - ro = { + var co = {}, + fo = { gradation: [ (function(t) { for (var e = 1; e < arguments.length; e++) { @@ -149384,24 +149480,24 @@ object-assign }) )), r.forEach(function(e) { - eo(t, e, n[e]); + lo(t, e, n[e]); }); } return t; - })({}, Wi(to, 'minute'), { threshold: 45 }), - Wi(to, 'hour'), + })({}, to(uo, 'minute'), { threshold: 45 }), + to(uo, 'hour'), { threshold: 84600, format: function(t, e) { - if (Zi()) + if (ao()) return ( - no[e] || (no[e] = {}), - no[e].this_year || - (no[e].this_year = new Intl.DateTimeFormat(e, { + co[e] || (co[e] = {}), + co[e].this_year || + (co[e].this_year = new Intl.DateTimeFormat(e, { month: 'short', day: 'numeric' })), - no[e].this_year.format(Xi(t)) + co[e].this_year.format(eo(t)) ); } }, @@ -149414,33 +149510,33 @@ object-assign 1e3; }, format: function(t, e) { - if (Zi()) + if (ao()) return ( - no[e] || (no[e] = {}), - no[e].other || - (no[e].other = new Intl.DateTimeFormat(e, { + co[e] || (co[e] = {}), + co[e].other || + (co[e].other = new Intl.DateTimeFormat(e, { year: 'numeric', month: 'short', day: 'numeric' })), - no[e].other.format(Xi(t)) + co[e].other.format(eo(t)) ); } } ], flavour: ['tiny', 'short-time', 'narrow', 'short'] }, - io = { - gradation: Yi, + ho = { + gradation: no, flavour: 'long-time', units: ['now', 'minute', 'hour', 'day', 'week', 'month', 'year'] }, - oo = {}; - function ao(t) { - return oo[t]; + po = {}; + function go(t) { + return po[t]; } - function so(t) { - return (so = + function mo(t) { + return (mo = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(t) { return typeof t; @@ -149454,7 +149550,7 @@ object-assign : typeof t; })(t); } - function uo(t, e) { + function vo(t, e) { for (var n = 0; n < e.length; n++) { var r = e[n]; (r.enumerable = r.enumerable || !1), @@ -149463,7 +149559,7 @@ object-assign Object.defineProperty(t, r.key, r); } } - var lo = (function() { + var yo = (function() { function t() { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : []; @@ -149495,11 +149591,11 @@ object-assign t.join(', ') ) ); - })(e.concat(Bi.getDefaultLocale()), ao)), + })(e.concat($i.getDefaultLocale()), go)), 'undefined' != typeof Intl && Intl.NumberFormat && (this.numberFormat = new Intl.NumberFormat(this.locale)), - (this.relativeTimeFormatCache = new Ui()); + (this.relativeTimeFormatCache = new Zi()); } var e, n, r; return ( @@ -149511,19 +149607,19 @@ object-assign var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] - : Ji; + : so; if ('string' == typeof e) switch (e) { case 'twitter': - e = ro; + e = fo; break; case 'time': - e = io; + e = ho; break; default: - e = Ji; + e = so; } - var n = co(t), + var n = bo(t), r = n.date, i = n.time, o = this.getLocaleData(e.flavour), @@ -149541,7 +149637,7 @@ object-assign }); if (void 0 !== c) return c; } - var f = fo(s, e.units); + var f = _o(s, e.units); if (0 === f.length) return ( console.error( @@ -149554,7 +149650,7 @@ object-assign ), '' ); - var d = Ki(l, u, f, e.gradation); + var d = io(l, u, f, e.gradation); if (!d) return ''; if (d.format) return d.format(r || i, this.locale); var h = d.unit, @@ -149562,7 +149658,7 @@ object-assign g = d.granularity, m = Math.abs(l) / p; if ((g && (m = Math.round(m / g) * g), 'now' === h)) - return ho(s, -1 * Math.sign(l)); + return xo(s, -1 * Math.sign(l)); switch (a) { case 'long': case 'short': @@ -149596,7 +149692,7 @@ object-assign if ('string' == typeof r) return r; var i = r[t <= 0 ? 'past' : 'future'] || r; if ('string' == typeof i) return i; - var o = ao(this.locale).quantify, + var o = go(this.locale).quantify, a = o && o(Math.abs(t)); return i[(a = a || 'other')] || i.other; } @@ -149617,7 +149713,7 @@ object-assign this.relativeTimeFormatCache.put( this.locale, t, - new Bi(this.locale, { style: t }) + new $i(this.locale, { style: t }) ) ); } @@ -149629,7 +149725,7 @@ object-assign arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [], - e = ao(this.locale); + e = go(this.locale); 'string' == typeof t && (t = [t]); var n = (t = t.concat('long')), r = Array.isArray(n), @@ -149648,26 +149744,26 @@ object-assign } } } - ]) && uo(e.prototype, n), - r && uo(e, r), + ]) && vo(e.prototype, n), + r && vo(e, r), t ); })(); - function co(t) { + function bo(t) { if ( t.constructor === Date || - ('object' === so((e = t)) && 'function' == typeof e.getTime) + ('object' === mo((e = t)) && 'function' == typeof e.getTime) ) return { date: t, time: t.getTime() }; var e; if ('number' == typeof t) return { time: t }; throw new Error( 'Unsupported relative time formatter input: ' - .concat(so(t), ', ') + .concat(mo(t), ', ') .concat(t) ); } - function fo(t, e) { + function _o(t, e) { var n = Object.keys(t); return ( e && @@ -149681,7 +149777,7 @@ object-assign n ); } - function ho(t, e) { + function xo(t, e) { return t.now ? 'string' == typeof t.now ? t.now @@ -149690,42 +149786,42 @@ object-assign : t.now.future : t.second.current; } - (lo.getDefaultLocale = Bi.getDefaultLocale), - (lo.setDefaultLocale = Bi.setDefaultLocale), - (lo.addLocale = function(t) { + (yo.getDefaultLocale = $i.getDefaultLocale), + (yo.setDefaultLocale = $i.setDefaultLocale), + (yo.addLocale = function(t) { !(function(t) { if (!t) throw new Error('[javascript-time-ago] No locale data passed.'); - oo[t.locale] = t; + po[t.locale] = t; })(t), - Bi.addLocale(t); - }), - (lo.locale = lo.addLocale); - var po = Object(p.oneOfType)([p.number, p.func]), - go = Object(p.arrayOf)( - Object(p.oneOfType)([ - Object(p.shape)({ - unit: p.string.isRequired, - factor: p.number, - granularity: p.number, - threshold: po + $i.addLocale(t); + }), + (yo.locale = yo.addLocale); + var wo = Object(d.oneOfType)([d.number, d.func]), + So = Object(d.arrayOf)( + Object(d.oneOfType)([ + Object(d.shape)({ + unit: d.string.isRequired, + factor: d.number, + granularity: d.number, + threshold: wo }), - Object(p.shape)({ format: p.func.isRequired, threshold: po }) + Object(d.shape)({ format: d.func.isRequired, threshold: wo }) ]) ), - mo = Object(p.oneOfType)([ - p.string, - Object(p.shape)({ - gradation: go, - units: Object(p.arrayOf)(p.string), - flavour: Object(p.oneOfType)([ - p.string, - Object(p.arrayOf)(p.string) + Eo = Object(d.oneOfType)([ + d.string, + Object(d.shape)({ + gradation: So, + units: Object(d.arrayOf)(d.string), + flavour: Object(d.oneOfType)([ + d.string, + Object(d.arrayOf)(d.string) ]), - custom: p.func + custom: d.func }) ]), - vo = (function() { + ko = (function() { function t(t, e) { for (var n = 0; n < e.length; n++) { var r = e[n]; @@ -149739,7 +149835,7 @@ object-assign return n && t(e.prototype, n), r && t(e, r), e; }; })(); - var yo = (function() { + var Ao = (function() { function t(e) { var n = this; !(function(t, e) { @@ -149767,7 +149863,7 @@ object-assign (this.period = e); } return ( - vo(t, [ + ko(t, [ { key: 'start', value: function() { @@ -149817,29 +149913,29 @@ object-assign t ); })(), - bo = new Ui(); - function _o(t, e) { - if (!Zi()) + To = new Zi(); + function Co(t, e) { + if (!ao()) return function(t) { return t.toString(); }; var n = (function(t) { var e = t.toString(); - if (xo[e]) return xo[e]; - return (xo[e] = (function(t) { - if (Zi()) return Intl.DateTimeFormat.supportedLocalesOf(t)[0]; + if (Oo[e]) return Oo[e]; + return (Oo[e] = (function(t) { + if (ao()) return Intl.DateTimeFormat.supportedLocalesOf(t)[0]; })(t)); })(t), r = JSON.stringify(e), i = - bo.get(String(n), r) || - bo.put(String(n), r, new Intl.DateTimeFormat(n, e)); + To.get(String(n), r) || + To.put(String(n), r, new Intl.DateTimeFormat(n, e)); return function(t) { return i.format(t); }; } - var xo = {}; - var wo = + var Oo = {}; + var Po = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(t) { return typeof t; @@ -149852,7 +149948,7 @@ object-assign ? 'symbol' : typeof t; }, - So = + Mo = Object.assign || function(t) { for (var e = 1; e < arguments.length; e++) { @@ -149862,7 +149958,7 @@ object-assign } return t; }, - Eo = (function() { + Lo = (function() { function t(t, e) { for (var n = 0; n < e.length; n++) { var r = e[n]; @@ -149876,7 +149972,7 @@ object-assign return n && t(e.prototype, n), r && t(e, r), e; }; })(); - var ko = (function(t) { + var jo = (function(t) { function e(t) { !(function(t, e) { if (!(t instanceof e)) @@ -149892,11 +149988,11 @@ object-assign : e; })(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); if ( - ((n.timeAgo = new lo(n.getPreferredLocales())), + ((n.timeAgo = new yo(n.getPreferredLocales())), 'undefined' != typeof window) ) { var r = n.props.verboseDateFormat; - n.formatVerboseDate = _o(n.getPreferredLocales(), r); + n.formatVerboseDate = Co(n.getPreferredLocales(), r); } return n; } @@ -149920,7 +150016,7 @@ object-assign ? Object.setPrototypeOf(t, e) : (t.__proto__ = e)); })(e, t), - Eo(e, [ + Lo(e, [ { key: 'componentDidMount', value: function() { @@ -149930,7 +150026,7 @@ object-assign r = e.updateInterval; n && (window._react_time_ago_updater || - (window._react_time_ago_updater = new yo(r)), + (window._react_time_ago_updater = new Ao(r)), (this.stopAutoupdate = window._react_time_ago_updater.add( function() { return t.forceUpdate(); @@ -149988,11 +150084,11 @@ object-assign : this.getVerboseDate(a), l = u.a.createElement( 'time', - So({ dateTime: a.toISOString(), title: r ? s : void 0 }, o), + Mo({ dateTime: a.toISOString(), title: r ? s : void 0 }, o), this.timeAgo.format(a, n) ); return i - ? u.a.createElement(i, So({ verboseDate: s }, o), l) + ? u.a.createElement(i, Mo({ verboseDate: s }, o), l) : l; } }, @@ -150001,33 +150097,33 @@ object-assign value: function() { var t = this.props.locale, e = this.props.locales; - return t && (e = [t]), (e = e.concat(lo.getDefaultLocale())); + return t && (e = [t]), (e = e.concat(yo.getDefaultLocale())); } }, { key: 'getVerboseDate', value: function(t) { var e = this.props.formatVerboseDate; - return e ? e(To(t)) : this.formatVerboseDate(To(t)); + return e ? e(Ro(t)) : this.formatVerboseDate(Ro(t)); } } ]), e ); })(u.a.PureComponent || u.a.Component); - (ko.propTypes = { - date: g.a.oneOfType([g.a.instanceOf(Date), g.a.number]).isRequired, - locale: g.a.string, - locales: g.a.arrayOf(g.a.string), - timeStyle: mo, - tooltip: g.a.bool.isRequired, - formatVerboseDate: g.a.func, - verboseDateFormat: g.a.object, - updateInterval: g.a.number, - tick: g.a.bool, - container: g.a.func + (jo.propTypes = { + date: h.a.oneOfType([h.a.instanceOf(Date), h.a.number]).isRequired, + locale: h.a.string, + locales: h.a.arrayOf(h.a.string), + timeStyle: Eo, + tooltip: h.a.bool.isRequired, + formatVerboseDate: h.a.func, + verboseDateFormat: h.a.object, + updateInterval: h.a.number, + tick: h.a.bool, + container: h.a.func }), - (ko.defaultProps = { + (jo.defaultProps = { locales: [], tooltip: !0, verboseDateFormat: { @@ -150042,18 +150138,18 @@ object-assign updateInterval: 6e4, tick: !0 }); - var Ao = ko; - function To(t) { + var Do = jo; + function Ro(t) { if (t.constructor === Date) return t; if ('number' == typeof t) return new Date(t); throw new Error( 'Unsupported react-time-ago input: ' + - (void 0 === t ? 'undefined' : wo(t)) + + (void 0 === t ? 'undefined' : Po(t)) + ', ' + t ); } - var Co = function(t) { + var zo = function(t) { var e = t.title, n = t.id, r = t.version, @@ -150063,21 +150159,21 @@ object-assign 'div', { className: 'dashboard-list-item' }, u.a.createElement( - dt, + yt, { to: o }, u.a.createElement( 'div', { className: 'dashboard-list-item-box' }, e, - u.a.createElement(Ao, { date: new Date(i) }) + u.a.createElement(Do, { date: new Date(i) }) ) ), - 'editor' === r && u.a.createElement(Oi, { id: n }) + 'editor' === r && u.a.createElement(Ni, { id: n }) ); }, - Oo = n(63), - Po = n.n(Oo), - Mo = he( + No = n(63), + Io = n.n(No), + Fo = xe( function(t) { var e = t.app; return { @@ -150088,7 +150184,7 @@ object-assign }; }, { - addDashboardItem: nn, + addDashboardItem: fn, loadDummyDashboards: function() { return { type: 'LOAD_DUMMY_DASHBOARDS' }; } @@ -150113,7 +150209,7 @@ object-assign return ( Object(s.useEffect)(function() { n && !c.length && o('My first dashboard'), - Po()(e, c) || + Io()(e, c) || (c = e.filter(function(t) { return ( '' === r || @@ -150125,13 +150221,13 @@ object-assign u.a.createElement( 'div', { className: 'dashboard-builder container' }, - u.a.createElement(Ci, { version: i }), + u.a.createElement(zi, { version: i }), c.length ? c.map(function(t, e) { var n = t.title, r = t.id, o = t.last_modified_date; - return u.a.createElement(Co, { + return u.a.createElement(zo, { key: r, id: r, title: n, @@ -150157,28 +150253,28 @@ object-assign u.a.createElement( 'span', { className: 'loading' }, - u.a.createElement(yn.a, { icon: 'spinner', size: '1x' }) + u.a.createElement(An.a, { icon: 'spinner', size: '1x' }) ) ) ) ) ); }), - Lo = he(null, { loadDashboards: on })(function(t) { + Vo = xe(null, { loadDashboards: hn })(function(t) { return ( Object(s.useEffect)(function() { t.loadDashboards(); }, []), - u.a.createElement(Mo, { + u.a.createElement(Fo, { version: 'viewer', keenWebHost: t.keenWebHost }) ); }), - Do = n(161), - jo = n.n(Do), - Ro = n(162), - zo = he( + Bo = n(161), + Go = n.n(Bo), + Ho = n(162), + Uo = xe( function(t) { var e = t.app; return { @@ -150188,18 +150284,18 @@ object-assign }; }, { - saveDashboard: sn, + saveDashboard: gn, hideSavedDashboardMessage: function() { return { type: 'HIDE_SAVED_DASHBOARD_MESSAGE' }; }, - toggleDashboardsMenu: dn, + toggleDashboardsMenu: _n, changeScreenSize: function(t) { return { type: 'CHANGE_SCREEN_SIZE', value: t }; }, makeDashboardPublicAndSave: function(t) { return function(e, n) { var r = t; - t.is_public || (e(un()), (r = n().dashboardInfo)), e(sn(r)); + t.is_public || (e(mn()), (r = n().dashboardInfo)), e(gn(r)); }; } } @@ -150251,9 +150347,9 @@ object-assign a('embed'), c(e), f(); } }, - u.a.createElement(yn.a, { icon: 'code', size: 'lg' }) + u.a.createElement(An.a, { icon: 'code', size: 'lg' }) ), - u.a.createElement(Le.a, { + u.a.createElement(Ve.a, { id: 'embed-icon', place: 'bottom', type: 'dark', @@ -150276,9 +150372,9 @@ object-assign a('share'), c(e), f(); } }, - u.a.createElement(yn.a, { icon: 'share-alt', size: 'lg' }) + u.a.createElement(An.a, { icon: 'share-alt', size: 'lg' }) ), - u.a.createElement(Le.a, { + u.a.createElement(Ve.a, { id: 'share-icon', place: 'bottom', type: 'dark', @@ -150296,9 +150392,9 @@ object-assign 'data-tip': 'Preview' }, u.a.createElement( - dt, + yt, { to: '/viewer/'.concat(e.id) }, - u.a.createElement(yn.a, { + u.a.createElement(An.a, { icon: 'eye', size: 'lg', onClick: function() { @@ -150307,7 +150403,7 @@ object-assign }) ) ), - u.a.createElement(Le.a, { + u.a.createElement(Ve.a, { id: 'preview-icon', place: 'bottom', type: 'dark', @@ -150324,14 +150420,14 @@ object-assign return i(t.dashboardInfo), void f(); } }, - u.a.createElement(yn.a, { icon: 'save', size: 'sm' }), + u.a.createElement(An.a, { icon: 'save', size: 'sm' }), ' Save' ) ) : u.a.createElement( u.a.Fragment, null, - u.a.createElement(yn.a, { + u.a.createElement(An.a, { className: 'export-icon', icon: 'file-download', size: 'lg', @@ -150340,15 +150436,15 @@ object-assign onClick: function() { var t; (t = d) && - jo.a.toBlob(t).then(function(t) { - Object(Ro.saveAs)(t, 'dashboard.png'); + Go.a.toBlob(t).then(function(t) { + Object(Ho.saveAs)(t, 'dashboard.png'); }); } }), u.a.createElement( 'div', { className: 'screen-resize-icon' }, - u.a.createElement(yn.a, { + u.a.createElement(An.a, { icon: 'mobile-alt', size: 'lg', 'data-for': 'screen-size', @@ -150358,7 +150454,7 @@ object-assign return l('mobile'); } }), - u.a.createElement(yn.a, { + u.a.createElement(An.a, { icon: 'tablet-alt', size: 'lg', 'data-for': 'screen-size', @@ -150368,7 +150464,7 @@ object-assign return l('tablet'); } }), - u.a.createElement(yn.a, { + u.a.createElement(An.a, { icon: 'laptop', size: 'lg', 'data-for': 'screen-size', @@ -150379,7 +150475,7 @@ object-assign } }) ), - u.a.createElement(Le.a, { + u.a.createElement(Ve.a, { id: 'screen-size', place: 'bottom', type: 'dark', @@ -150391,8 +150487,8 @@ object-assign ) ); }), - No = ct( - he( + qo = ft( + xe( function(t) { var e = t.app, n = e.dashboardInfo; @@ -150402,7 +150498,7 @@ object-assign dashboardList: e.dashboardList }; }, - { loadDashboardInfo: an } + { loadDashboardInfo: pn } )(function(t) { var e = t.dashboardList.map(function(t) { return { value: t.id, label: t.title }; @@ -150410,7 +150506,7 @@ object-assign return u.a.createElement( 'div', { className: 'switch-dashboard' }, - u.a.createElement(Ti, { + u.a.createElement(Ri, { value: { value: t.id, label: t.title }, onChange: function(e) { return (function(e) { @@ -150422,8 +150518,8 @@ object-assign ); }) ), - Io = ct( - he( + Wo = ft( + xe( function(t) { var e = t.app; return { @@ -150433,11 +150529,11 @@ object-assign }; }, { - toggleDashboardsMenu: dn, - loadDashboardInfo: an, - clearAccessKey: gn, - setNewDashboardForFocus: hn, - addDashboardItem: nn, + toggleDashboardsMenu: _n, + loadDashboardInfo: pn, + clearAccessKey: Sn, + setNewDashboardForFocus: xn, + addDashboardItem: fn, loadingSingleDashboard: function() { return { type: 'LOADING_SINGLE_DASHBOARD' }; }, @@ -150465,7 +150561,7 @@ object-assign 'div', { className: 'modal-header' }, 'Dashboards', - u.a.createElement(yn.a, { + u.a.createElement(An.a, { icon: 'times', size: 'sm', onClick: function() { @@ -150510,13 +150606,13 @@ object-assign 'span', null, n === e.id && - u.a.createElement(yn.a, { + u.a.createElement(An.a, { icon: 'angle-double-right', size: 'sm' }), e.title ), - u.a.createElement(Ao, { + u.a.createElement(Do, { className: 'time', date: new Date(e.last_modified_date) }) @@ -150526,20 +150622,20 @@ object-assign u.a.createElement( 'div', { className: 'modal-footer' }, - u.a.createElement(Cn, null) + u.a.createElement(zn, null) ) ) ); }) ), - Fo = (function(t) { + Xo = (function(t) { function e(t) { var n; return ( a()(this, e), - ((n = wn()( + ((n = Pn()( this, - En()(e).call(this, t) + Ln()(e).call(this, t) )).handleFocus = function() { n.title.current.focus(), n.title.current.select(); }), @@ -150551,8 +150647,8 @@ object-assign ); } return ( - An()(e, t), - _n()(e, [ + Dn()(e, t), + Cn()(e, [ { key: 'componentDidMount', value: function() { @@ -150577,7 +150673,7 @@ object-assign var t = this.props, e = t.title; return t.switcherEnabled - ? u.a.createElement(No, null) + ? u.a.createElement(qo, null) : u.a.createElement('h1', { className: 'title' }, e); } }, @@ -150601,12 +150697,12 @@ object-assign u.a.createElement( 'div', { className: 'burger-icon' }, - u.a.createElement(yn.a, { + u.a.createElement(An.a, { icon: 'bars', size: 'lg', onClick: this.handleClick }), - 'dashboard' === o && u.a.createElement(Io, null) + 'dashboard' === o && u.a.createElement(Wo, null) ), u.a.createElement('input', { ref: this.title, @@ -150629,12 +150725,12 @@ object-assign 'div', { className: 'edit-dashboard-button' }, u.a.createElement( - dt, + yt, { to: '/editor/'.concat(n), className: 'edit-dashboard-button__link' }, - u.a.createElement(yn.a, { + u.a.createElement(An.a, { icon: 'edit', size: 'sm' }), @@ -150649,7 +150745,7 @@ object-assign e ); })(s.Component), - Vo = he( + Yo = xe( function(t) { var e = t.app, n = e.dashboardInfo; @@ -150664,25 +150760,25 @@ object-assign changeDashboardTitle: function(t) { return { type: 'CHANGE_DASHBOARD_TITLE', title: t }; }, - toggleDashboardsMenu: dn, - setNewDashboardForFocus: hn + toggleDashboardsMenu: _n, + setNewDashboardForFocus: xn } - )(Fo); - Fo.defaultProps = { switcherEnabled: !0, editable: !0 }; - var Bo = function(t) { + )(Xo); + Xo.defaultProps = { switcherEnabled: !0, editable: !0 }; + var $o = function(t) { var e = t.version, n = t.isDashboardPublic; return u.a.createElement( 'div', { className: 'dashboard-title' }, - u.a.createElement(Vo, { + u.a.createElement(Yo, { version: e, switcherEnabled: !n, editable: !n }) ); }; - function Go(t, e) { + function Ko(t, e) { var n = Object.keys(t); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(t); @@ -150694,16 +150790,16 @@ object-assign } return n; } - function Ho(t) { + function Qo(t) { for (var e = 1; e < arguments.length; e++) { var n = null != arguments[e] ? arguments[e] : {}; e % 2 - ? Go(n, !0).forEach(function(e) { - Pe()(t, e, n[e]); + ? Ko(n, !0).forEach(function(e) { + Ie()(t, e, n[e]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) - : Go(n).forEach(function(e) { + : Ko(n).forEach(function(e) { Object.defineProperty( t, e, @@ -150713,7 +150809,7 @@ object-assign } return t; } - function Uo(t, e, n) { + function Zo(t, e, n) { var r = !( t.top + t.height - 1 < e.top || t.top + 1 > e.top + e.height || @@ -150774,7 +150870,7 @@ object-assign { collision: r, side: i, width: a, height: o } ); } - var qo = he( + var Jo = xe( function(t) { return { isResizing: t.app.isResizing }; }, @@ -150873,9 +150969,9 @@ object-assign }) ); }), - Wo = n(163), - Xo = n.n(Wo), - Yo = function(t) { + ta = n(163), + ea = n.n(ta), + na = function(t) { var e = t.width, n = t.height, r = t.text; @@ -150883,295 +150979,28 @@ object-assign ? u.a.createElement( 'div', { className: 'paragraph', style: { width: e, height: n } }, - Xo()(r) + ea()(r) ) : u.a.createElement( 'div', { className: 'big-icon' }, - u.a.createElement(yn.a, { icon: 'paragraph', size: 'lg' }) + u.a.createElement(An.a, { icon: 'paragraph', size: 'lg' }) ); }, - $o = function(t) { + ra = function(t) { var e = t.src; return e ? u.a.createElement('img', { src: e }) : u.a.createElement( 'div', { className: 'big-icon' }, - u.a.createElement(yn.a, { icon: 'image', size: 'lg' }) + u.a.createElement(An.a, { icon: 'image', size: 'lg' }) ); }, - Ko = n(84), - Qo = n.n(Ko), - Zo = n(164), - Jo = n.n(Zo); - function ta(t, e) { - var n = Object.keys(t); - if (Object.getOwnPropertySymbols) { - var r = Object.getOwnPropertySymbols(t); - e && - (r = r.filter(function(e) { - return Object.getOwnPropertyDescriptor(t, e).enumerable; - })), - n.push.apply(n, r); - } - return n; - } - function ea(t) { - for (var e = 1; e < arguments.length; e++) { - var n = null != arguments[e] ? arguments[e] : {}; - e % 2 - ? ta(n, !0).forEach(function(e) { - Pe()(t, e, n[e]); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) - : ta(n).forEach(function(e) { - Object.defineProperty( - t, - e, - Object.getOwnPropertyDescriptor(n, e) - ); - }); - } - return t; - } - var na = (function(t) { - function e(t) { - var n; - return ( - a()(this, e), - ((n = wn()(this, En()(e).call(this, t))).handleRef = function(t) { - t && ((n.el = t), n.createKeenDataviz()); - }), - n - ); - } - return ( - An()(e, t), - _n()(e, [ - { - key: 'componentDidUpdate', - value: function() { - this.keenDataviz.destroy(); - try { - this.createKeenDataviz(); - } catch (t) { - this.props.savedQueryError(t, this.props.index); - } - } - }, - { - key: 'componentWillUnmount', - value: function() { - this.keenDataviz.destroy(); - } - }, - { - key: 'shouldComponentUpdate', - value: function(t) { - return !( - this.props.width === t.width && - this.props.height === t.height && - this.props.palette === t.palette && - this.props.type === t.type && - this.props.legend.position === t.legend.position && - this.props.sparkline === t.sparkline && - this.props.stacking === t.stacking && - this.props.savedQuery === t.savedQuery && - Xe.a.isEqual(this.props.results, t.results) && - Xe.a.isEqual(this.props.colors, t.colors) && - this.props.screenSize === t.screenSize && - this.props.prefix === t.prefix && - this.props.suffix === t.suffix && - Xe.a.isEqual(this.props.point, t.point) && - Xe.a.isEqual(this.props.choropleth, t.choropleth) && - Xe.a.isEqual(this.props.heatmap, t.heatmap) && - Xe.a.isEqual(this.props.funnel, t.funnel) && - this.props.title === t.title && - this.props.subtitle === t.subtitle && - Xe.a.isEqual(this.props.axis, t.axis) - ); - } - }, - { - key: 'createKeenDataviz', - value: function() { - var t = ea({}, this.props, {}, this.props.options, { - palette: - this.props.colors && this.props.colors.length - ? '' - : this.props.palette, - results: - this.props.type && - this.props.type.includes('funnel') && - Xe.a.isEqual(this.props.results.result, [ - 200, - 300, - 100, - 400, - 250 - ]) - ? { result: [430, 300, 220, 150, 80] } - : this.props.results - }); - this.keenDataviz = new Jo.a( - ea({ container: this.el, react: !0 }, t) - ); - } - }, - { - key: 'render', - value: function() { - return u.a.createElement('div', { - className: this.props.theme, - ref: this.handleRef - }); - } - } - ]), - e - ); - })(s.Component), - ra = he( - function(t) { - var e = t.app; - return { id: e.dashboardInfo.id, screenSize: e.screenSize }; - }, - { savedQueryError: rn } - )(na); - na.defaultProps = { - theme: 'keen-dataviz', - results: { result: [200, 300, 100, 400, 250] }, - title: !1, - type: 'bar', - choropleth: { - map: 'world', - borders: { show: !0, size: 0.5, color: '#000' }, - showSlider: !1 - }, - heatmap: { showSlider: !1, simpleTooltip: !1 }, - point: { show: !0, r: 2 }, - legend: { - show: !1, - position: 'top', - alignment: 'left', - label: { textMaxLength: 12 }, - pagination: { offset: 0, limit: 5 }, - tooltip: { show: !0, pointer: !0 } - } - }; - var ia = n(165), - oa = function(t) { - var e = t.theme, - n = t.containerId; - return u.a.createElement( - u.a.Fragment, - null, - u.a.createElement('style', { - dangerouslySetInnerHTML: { __html: Object(ia.getStyles)(e, n) } - }), - t.children - ); - }, - aa = { - getQueryDataType: function(t) { - var e, - n = 'string' == typeof t.interval, - r = - 'string' == typeof t.group_by || - (t.group_by instanceof Array && 1 === t.group_by.length), - i = t.group_by instanceof Array && 2 === t.group_by.length; - return ( - 'funnel' === t.analysis_type - ? (e = 'cat-ordinal') - : 'extraction' === t.analysis_type - ? (e = 'extraction') - : 'select_unique' === t.analysis_type - ? (e = 'nominal') - : r || n || i - ? r && !n - ? (e = 'categorical') - : !n || r || i - ? n && (r || i) - ? (e = 'cat-chronological') - : !n && i && (e = 'categorical') - : (e = 'chronological') - : (e = 'singular'), - e - ); - }, - getChartTypeOptions: function(t) { - return { - singular: ['metric'], - categorical: [ - 'pie', - 'bar', - 'choropleth', - 'horizontal-bar', - 'donut', - 'table' - ], - 'cat-interval': [ - 'area', - 'bar', - 'horizontal-bar', - 'line', - 'spline', - 'area-spline', - 'step', - 'area-step', - 'table' - ], - 'cat-ordinal': [ - 'area', - 'bar', - 'horizontal-bar', - 'line', - 'spline', - 'area-spline', - 'step', - 'area-step', - 'table', - 'funnel', - 'funnel-3d', - 'horizontal-funnel', - 'horizontal-funnel-3d' - ], - chronological: [ - 'area', - 'bar', - 'line', - 'spline', - 'area-spline', - 'step', - 'area-step', - 'table', - 'heatmap' - ], - 'cat-chronological': [ - 'area', - 'bar', - 'horizontal-bar', - 'line', - 'spline', - 'area-spline', - 'step', - 'area-step', - 'table' - ], - nominal: ['table'], - extraction: ['table'] - }[aa.getQueryDataType(t)]; - }, - responseSupportsChartType: function(t, e) { - return Xe.a.includes(aa.getChartTypeOptions(t), e); - }, - isTableChartType: function(t) { - return 'table' == t; - } - }, - sa = aa; + ia = n(84), + oa = n.n(ia), + aa = n(164), + sa = n.n(aa); function ua(t, e) { var n = Object.keys(t); if (Object.getOwnPropertySymbols) { @@ -151189,7 +151018,7 @@ object-assign var n = null != arguments[e] ? arguments[e] : {}; e % 2 ? ua(n, !0).forEach(function(e) { - Pe()(t, e, n[e]); + Ie()(t, e, n[e]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) @@ -151208,15 +151037,282 @@ object-assign var n; return ( a()(this, e), - (n = wn()(this, En()(e).call(this, t))), - fa.call(Qo()(n)), + ((n = Pn()(this, Ln()(e).call(this, t))).handleRef = function(t) { + t && ((n.el = t), n.createKeenDataviz()); + }), + n + ); + } + return ( + Dn()(e, t), + Cn()(e, [ + { + key: 'componentDidUpdate', + value: function() { + this.keenDataviz.destroy(); + try { + this.createKeenDataviz(); + } catch (t) { + this.props.savedQueryError(t, this.props.index); + } + } + }, + { + key: 'componentWillUnmount', + value: function() { + this.keenDataviz.destroy(); + } + }, + { + key: 'shouldComponentUpdate', + value: function(t) { + return !( + this.props.width === t.width && + this.props.height === t.height && + this.props.palette === t.palette && + this.props.type === t.type && + this.props.legend.position === t.legend.position && + this.props.sparkline === t.sparkline && + this.props.stacking === t.stacking && + this.props.savedQuery === t.savedQuery && + en.a.isEqual(this.props.results, t.results) && + en.a.isEqual(this.props.colors, t.colors) && + this.props.screenSize === t.screenSize && + this.props.prefix === t.prefix && + this.props.suffix === t.suffix && + en.a.isEqual(this.props.point, t.point) && + en.a.isEqual(this.props.choropleth, t.choropleth) && + en.a.isEqual(this.props.heatmap, t.heatmap) && + en.a.isEqual(this.props.funnel, t.funnel) && + this.props.title === t.title && + this.props.subtitle === t.subtitle && + en.a.isEqual(this.props.axis, t.axis) + ); + } + }, + { + key: 'createKeenDataviz', + value: function() { + var t = la({}, this.props, {}, this.props.options, { + palette: + this.props.colors && this.props.colors.length + ? '' + : this.props.palette, + results: + this.props.type && + this.props.type.includes('funnel') && + en.a.isEqual(this.props.results.result, [ + 200, + 300, + 100, + 400, + 250 + ]) + ? { result: [430, 300, 220, 150, 80] } + : this.props.results + }); + this.keenDataviz = new sa.a( + la({ container: this.el, react: !0 }, t) + ); + } + }, + { + key: 'render', + value: function() { + return u.a.createElement('div', { + className: this.props.theme, + ref: this.handleRef + }); + } + } + ]), + e + ); + })(s.Component), + fa = xe( + function(t) { + var e = t.app; + return { id: e.dashboardInfo.id, screenSize: e.screenSize }; + }, + { savedQueryError: dn } + )(ca); + ca.defaultProps = { + theme: 'keen-dataviz', + results: { result: [200, 300, 100, 400, 250] }, + title: !1, + type: 'bar', + choropleth: { + map: 'world', + borders: { show: !0, size: 0.5, color: '#000' }, + showSlider: !1 + }, + heatmap: { showSlider: !1, simpleTooltip: !1 }, + point: { show: !0, r: 2 }, + legend: { + show: !1, + position: 'top', + alignment: 'left', + label: { textMaxLength: 12 }, + pagination: { offset: 0, limit: 5 }, + tooltip: { show: !0, pointer: !0 } + } + }; + var da = n(165), + ha = function(t) { + var e = t.theme, + n = t.containerId; + return u.a.createElement( + u.a.Fragment, + null, + u.a.createElement('style', { + dangerouslySetInnerHTML: { __html: Object(da.getStyles)(e, n) } + }), + t.children + ); + }, + pa = { + getQueryDataType: function(t) { + var e, + n = 'string' == typeof t.interval, + r = + 'string' == typeof t.group_by || + (t.group_by instanceof Array && 1 === t.group_by.length), + i = t.group_by instanceof Array && 2 === t.group_by.length; + return ( + 'funnel' === t.analysis_type + ? (e = 'cat-ordinal') + : 'extraction' === t.analysis_type + ? (e = 'extraction') + : 'select_unique' === t.analysis_type + ? (e = 'nominal') + : r || n || i + ? r && !n + ? (e = 'categorical') + : !n || r || i + ? n && (r || i) + ? (e = 'cat-chronological') + : !n && i && (e = 'categorical') + : (e = 'chronological') + : (e = 'singular'), + e + ); + }, + getChartTypeOptions: function(t) { + return { + singular: ['metric'], + categorical: [ + 'pie', + 'bar', + 'choropleth', + 'horizontal-bar', + 'donut', + 'table' + ], + 'cat-interval': [ + 'area', + 'bar', + 'horizontal-bar', + 'line', + 'spline', + 'area-spline', + 'step', + 'area-step', + 'table' + ], + 'cat-ordinal': [ + 'area', + 'bar', + 'horizontal-bar', + 'line', + 'spline', + 'area-spline', + 'step', + 'area-step', + 'table', + 'funnel', + 'funnel-3d', + 'horizontal-funnel', + 'horizontal-funnel-3d' + ], + chronological: [ + 'area', + 'bar', + 'line', + 'spline', + 'area-spline', + 'step', + 'area-step', + 'table', + 'heatmap' + ], + 'cat-chronological': [ + 'area', + 'bar', + 'horizontal-bar', + 'line', + 'spline', + 'area-spline', + 'step', + 'area-step', + 'table' + ], + nominal: ['table'], + extraction: ['table'] + }[pa.getQueryDataType(t)]; + }, + responseSupportsChartType: function(t, e) { + return en.a.includes(pa.getChartTypeOptions(t), e); + }, + isTableChartType: function(t) { + return 'table' == t; + } + }, + ga = pa; + function ma(t, e) { + var n = Object.keys(t); + if (Object.getOwnPropertySymbols) { + var r = Object.getOwnPropertySymbols(t); + e && + (r = r.filter(function(e) { + return Object.getOwnPropertyDescriptor(t, e).enumerable; + })), + n.push.apply(n, r); + } + return n; + } + function va(t) { + for (var e = 1; e < arguments.length; e++) { + var n = null != arguments[e] ? arguments[e] : {}; + e % 2 + ? ma(n, !0).forEach(function(e) { + Ie()(t, e, n[e]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) + : ma(n).forEach(function(e) { + Object.defineProperty( + t, + e, + Object.getOwnPropertyDescriptor(n, e) + ); + }); + } + return t; + } + var ya = (function(t) { + function e(t) { + var n; + return ( + a()(this, e), + (n = Pn()(this, Ln()(e).call(this, t))), + ba.call(oa()(n)), (n.state = { loading: !1, results: void 0 }), n ); } return ( - An()(e, t), - _n()(e, [ + Dn()(e, t), + Cn()(e, [ { key: 'componentDidMount', value: function() { @@ -151240,14 +151336,14 @@ object-assign this.setState({ results: void 0 }), this.props.id !== t.id && this.setState({ results: void 0 }), - !1 === Xe.a.isEqual(t.savedQuery, this.props.savedQuery) || + !1 === en.a.isEqual(t.savedQuery, this.props.savedQuery) || (this.props.id !== t.id && this.setState({ results: void 0 })), (this.props.id !== t.id || (this.props.savedQuery && !1 === t.dryRun && !1 === - Xe.a.isEqual(t.savedQuery, this.props.savedQuery)) || + en.a.isEqual(t.savedQuery, this.props.savedQuery)) || (!1 === this.props.savedQuery && t.savedQuery && this.props.type !== t.type) || @@ -151286,13 +151382,13 @@ object-assign null, Object.keys(g).length ? u.a.createElement( - oa, + ha, { theme: g.theme, containerId: this.props.containerId }, u.a.createElement( - ra, + fa, i()( { key: l, type: p }, this.props, @@ -151303,7 +151399,7 @@ object-assign ) ) : u.a.createElement( - ra, + fa, i()( { key: l, type: p }, this.props, @@ -151340,7 +151436,7 @@ object-assign u.a.createElement( 'span', { className: 'loading' }, - u.a.createElement(yn.a, { + u.a.createElement(An.a, { icon: 'spinner', size: '1x' }) @@ -151353,25 +151449,25 @@ object-assign e ); })(s.Component), - fa = function() { + ba = function() { var t = this; (this.runSingleSavedQuery = function(e) { t.setState({ loading: !0 }), t.props.keenAnalysis .query('saved', e.value) .then(function(e) { - var n = sa.getChartTypeOptions(e.query), + var n = ga.getChartTypeOptions(e.query), r = t.props.type ? t.props.type : n[0]; t.props.loadSavedQuery(t.props.index), t.setState({ results: void 0 === t.state.results - ? la({}, e) + ? va({}, e) : Array.isArray(t.state.results) - ? [].concat(Ce()(t.state.results), [la({}, e)]) + ? [].concat(ze()(t.state.results), [va({}, e)]) : r && (r.includes('area') || r.includes('line')) - ? [la({}, t.state.results), la({}, e)] - : la({}, e), + ? [va({}, t.state.results), va({}, e)] + : va({}, e), savedQuery: { value: e.query_name, label: e.metadata.display_name @@ -151402,7 +151498,7 @@ object-assign n[r].query.event_collection === n[i].query.event_collection && (n[i].query.analysis_type += i); - var o = sa.getChartTypeOptions(n[0].query)[0]; + var o = ga.getChartTypeOptions(n[0].query)[0]; e.loadSavedQuery(e.index), t.setState({ results: n, @@ -151417,7 +151513,7 @@ object-assign }); }); }, - da = he( + _a = xe( function(t) { var e = t.app, n = e.isLoading, @@ -151440,13 +151536,13 @@ object-assign loadSavedQuery: function(t) { return { type: 'LOAD_SAVED_QUERIES', index: t }; }, - savedQueryError: rn, + savedQueryError: dn, setLoading: function(t) { return { type: 'SET_LOADING', index: t }; } } - )(ca), - ha = he( + )(ya), + xa = xe( function(t) { var e = t.app; return { isMoving: e.isMoving, isResizing: e.isResizing }; @@ -151457,21 +151553,21 @@ object-assign r.keenClient; if (confirm('Do You want to delete this chart?')) { var i = n(), - o = $e(i), + o = rn(i), a = o.data.items[t].savedQuery; - e(vn(a, [])); + e(kn(a, [])); var s = n(), - u = Ye(s); + u = nn(s); if (o.is_public && a.length) a.some(function(t) { return !u.includes(t.value); - }) && Ke(u, o.title); + }) && on(u, o.title); e({ type: 'DELETE_CHART', index: t }); } }; }, - showSettings: fn, - closeSettings: cn, + showSettings: bn, + closeSettings: yn, cloneChart: function(t) { return { type: 'CLONE_CHART', index: t }; } @@ -151505,7 +151601,7 @@ object-assign })(n); } }, - u.a.createElement(yn.a, { icon: 'cog', size: 'sm' }) + u.a.createElement(An.a, { icon: 'cog', size: 'sm' }) ), u.a.createElement( 'div', @@ -151516,7 +151612,7 @@ object-assign return t.cloneChart(e); } }, - u.a.createElement(yn.a, { icon: 'clone', size: 'sm' }) + u.a.createElement(An.a, { icon: 'clone', size: 'sm' }) ), i && i.length > 0 && @@ -151537,7 +151633,7 @@ object-assign }); } }, - u.a.createElement(yn.a, { + u.a.createElement(An.a, { icon: 'external-link-alt', size: 'sm' }) @@ -151551,10 +151647,10 @@ object-assign return t.deleteChart(e); } }, - u.a.createElement(yn.a, { icon: 'trash-alt', size: 'sm' }) + u.a.createElement(An.a, { icon: 'trash-alt', size: 'sm' }) ) ), - u.a.createElement(Le.a, { + u.a.createElement(Ve.a, { id: 'settings', place: 'top', type: 'dark', @@ -151563,7 +151659,7 @@ object-assign return t; } }), - u.a.createElement(Le.a, { + u.a.createElement(Ve.a, { id: 'clone', place: 'left', type: 'dark', @@ -151572,7 +151668,7 @@ object-assign return t; } }), - u.a.createElement(Le.a, { + u.a.createElement(Ve.a, { id: 'explorer', place: 'left', type: 'dark', @@ -151581,7 +151677,7 @@ object-assign return t; } }), - u.a.createElement(Le.a, { + u.a.createElement(Ve.a, { id: 'delete', place: 'bottom', type: 'dark', @@ -151593,7 +151689,7 @@ object-assign ) ); }), - pa = function(t) { + wa = function(t) { var e = t.savedQuery, n = window.location, r = n.origin, @@ -151601,7 +151697,7 @@ object-assign return u.a.createElement( 'div', { className: 'explorer-button' }, - u.a.createElement(yn.a, { + u.a.createElement(An.a, { icon: 'external-link-alt', size: 'sm', 'data-for': 'explorer', @@ -151618,7 +151714,7 @@ object-assign }); } }), - u.a.createElement(Le.a, { + u.a.createElement(Ve.a, { id: 'explorer', place: 'top', type: 'dark', @@ -151629,8 +151725,8 @@ object-assign }) ); }, - ga = u.a.createContext({}); - function ma(t, e) { + Sa = u.a.createContext({}); + function Ea(t, e) { var n = Object.keys(t); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(t); @@ -151642,16 +151738,16 @@ object-assign } return n; } - function va(t) { + function ka(t) { for (var e = 1; e < arguments.length; e++) { var n = null != arguments[e] ? arguments[e] : {}; e % 2 - ? ma(n, !0).forEach(function(e) { - Pe()(t, e, n[e]); + ? Ea(n, !0).forEach(function(e) { + Ie()(t, e, n[e]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) - : ma(n).forEach(function(e) { + : Ea(n).forEach(function(e) { Object.defineProperty( t, e, @@ -151661,14 +151757,14 @@ object-assign } return t; } - var ya = (function(t) { + var Aa = (function(t) { function e(t) { var n; return ( a()(this, e), - ((n = wn()( + ((n = Pn()( this, - En()(e).call(this, t) + Ln()(e).call(this, t) )).moveCollided = function() { var t = n.props, e = t.dashboardInfo.data.items, @@ -151686,7 +151782,7 @@ object-assign : e[i].top <= e[o].top ? o : i, - u = Uo(e[s], e[a], r); + u = Zo(e[s], e[a], r); if (u.collision) { var l = e[s], c = l.top, @@ -151743,9 +151839,9 @@ object-assign ) * r - r, - l = va( - { id: Ie(), type: i }, - je(s, u, 500, n.ref.current.getBoundingClientRect()), + l = ka( + { id: We(), type: i }, + Ge(s, u, 500, n.ref.current.getBoundingClientRect()), { width: 500, height: 300, @@ -151810,8 +151906,8 @@ object-assign ); } return ( - An()(e, t), - _n()(e, [ + Dn()(e, t), + Cn()(e, [ { key: 'componentDidUpdate', value: function() { @@ -151870,7 +151966,7 @@ object-assign return e.charAt(0).toUpperCase() + e.slice(1); }), (r = 20), - (o = Ho({}, (t = d), { + (o = Qo({}, (t = d), { data: { version: 2, items: t.rows.map(function(t, i) { @@ -151939,9 +152035,9 @@ object-assign })), (a = []), o.data.items.forEach(function(t) { - a.push.apply(a, Ce()(t)); + a.push.apply(a, ze()(t)); }), - Ho({}, o, { data: Ho({}, o.data, { items: a }) })) + Qo({}, o, { data: Qo({}, o.data, { items: a }) })) ), (this.parsedItems = c.items), this.parsedItems && @@ -152010,7 +152106,7 @@ object-assign return u.a.createElement( 'div', { - style: va( + style: ka( { width: a, height: l, @@ -152027,11 +152123,11 @@ object-assign id: T }, 'image' === c - ? u.a.createElement($o, { src: f, index: e }) + ? u.a.createElement(ra, { src: f, index: e }) : 'paragraph' === c - ? u.a.createElement(Yo, { text: d, index: e }) + ? u.a.createElement(na, { text: d, index: e }) : u.a.createElement( - da, + _a, i()({}, t, { index: e, width: a, @@ -152045,13 +152141,13 @@ object-assign u.a.createElement( u.a.Fragment, null, - u.a.createElement(qo, { + u.a.createElement(Jo, { index: e, clientRect: s.ref.current && s.ref.current.getBoundingClientRect() }), - u.a.createElement(ha, { + u.a.createElement(xa, { index: e, savedQuery: y }), @@ -152067,7 +152163,7 @@ object-assign x.masterKey() && 'paragraph' !== c && 'image' !== c && - u.a.createElement(pa, { savedQuery: y }) + u.a.createElement(wa, { savedQuery: y }) ); } }) @@ -152079,7 +152175,7 @@ object-assign e ); })(s.Component), - ba = he( + Ta = xe( function(t) { var e = t.app, n = e.dashboardInfo, @@ -152124,23 +152220,23 @@ object-assign colMoveChart: function(t, e, n) { return { type: 'COL_MOVE_CHART', index: t, ePageX: e, ePageY: n }; }, - dropHandler: ln, + dropHandler: vn, stopMoveChart: function() { return { type: 'STOP_MOVE_CHART' }; }, - showSettings: fn, - mapOldItems: mn - } - )(ya), - _a = n(88), - xa = n.n(_a), - wa = n(166), - Sa = n.n(wa), - Ea = (function() { - var t = Sa()( - xa.a.mark(function t(e, n, r) { + showSettings: bn, + mapOldItems: En + } + )(Aa), + Ca = n(88), + Oa = n.n(Ca), + Pa = n(166), + Ma = n.n(Pa), + La = (function() { + var t = Ma()( + Oa.a.mark(function t(e, n, r) { var i, o, a, s; - return xa.a.wrap(function(t) { + return Oa.a.wrap(function(t) { for (;;) switch ((t.prev = t.next)) { case 0: @@ -152190,7 +152286,7 @@ object-assign return t.apply(this, arguments); }; })(), - ka = function(t) { + ja = function(t) { var e = document.createElement('textarea'); (e.value = t), document.body.appendChild(e), @@ -152198,8 +152294,8 @@ object-assign document.execCommand('copy'), document.body.removeChild(e); }, - Aa = ct( - he( + Da = ft( + xe( function(t) { var e = t.app, n = e.dashboardInfo, @@ -152217,12 +152313,12 @@ object-assign savedQueriesList: s }; }, - { toggleDashboardsMenu: dn, setAccessKey: pn, clearAccessKey: gn } + { toggleDashboardsMenu: _n, setAccessKey: wn, clearAccessKey: Sn } )(function(t) { - var e = Object(s.useContext)(ga); + var e = Object(s.useContext)(Sa); Object(s.useEffect)(function() { t.accessKey || - Ea(t.savedQueriesList, t.title, e).then(function(e) { + La(t.savedQueriesList, t.title, e).then(function(e) { return t.setAccessKey(e); }); }, []); @@ -152239,7 +152335,7 @@ object-assign 'div', { className: 'modal-header' }, 'Share Your Dashboard', - u.a.createElement(yn.a, { + u.a.createElement(An.a, { icon: 'times', size: 'sm', onClick: function() { @@ -152272,19 +152368,19 @@ object-assign className: 'modal-button', type: 'button', onClick: function() { - return ka(n()); + return ja(n()); } }, - u.a.createElement(yn.a, { icon: 'copy', size: 'sm' }), + u.a.createElement(An.a, { icon: 'copy', size: 'sm' }), 'COPY' ) ) ); }) ), - Ta = n(89), - Ca = n.n(Ta), - Oa = + Ra = n(89), + za = n.n(Ra), + Na = (n(424), n(425), n(426), @@ -152292,8 +152388,8 @@ object-assign n(428), n(431), n(432), - ct( - he( + ft( + xe( function(t) { var e = t.app; return { @@ -152302,16 +152398,16 @@ object-assign }; }, { - toggleDashboardsMenu: dn, + toggleDashboardsMenu: _n, setAccessKey: function(t) { - return pn(t); + return wn(t); } } )(function(t) { - var e = Object(s.useContext)(ga); + var e = Object(s.useContext)(Sa); Object(s.useEffect)(function() { t.accessKey || - Ea(t.dashboardInfo.data, t.title, e).then(function(e) { + La(t.dashboardInfo.data, t.title, e).then(function(e) { return t.setAccessKey(e); }); }, []); @@ -152328,7 +152424,7 @@ object-assign t.accessKey, '";\n const dashboardInfo = data;\n const myDashboardViewer = new DashboardViewer({\n container: "#viewer",\n isDashboardPublic: true,\n dashboardInfo,\n keenAnalysis: {\n config: {\n projectId,\n masterKey,\n }\n }\n });\n })\n .catch(e => console.error(e))\n \n \n ' ), - r = Ca.a.highlight(n, Ca.a.languages.html, 'html'); + r = za.a.highlight(n, za.a.languages.html, 'html'); return u.a.createElement( 'div', { className: 'embed-dashboard modal' }, @@ -152336,7 +152432,7 @@ object-assign 'div', { className: 'modal-header' }, 'Embed Dashboard', - u.a.createElement(yn.a, { + u.a.createElement(An.a, { icon: 'times', size: 'sm', onClick: function() { @@ -152357,19 +152453,19 @@ object-assign type: 'button', className: 'modal-button', onClick: function() { - return ka(n); + return ja(n); } }, - u.a.createElement(yn.a, { icon: 'copy', size: 'sm' }), + u.a.createElement(An.a, { icon: 'copy', size: 'sm' }), 'COPY' ) ) ); }) )), - Pa = n(90); + Ia = n(90); n(440), n(442); - function Ma(t, e) { + function Fa(t, e) { var n = Object.keys(t); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(t); @@ -152381,16 +152477,16 @@ object-assign } return n; } - function La(t) { + function Va(t) { for (var e = 1; e < arguments.length; e++) { var n = null != arguments[e] ? arguments[e] : {}; e % 2 - ? Ma(n, !0).forEach(function(e) { - Pe()(t, e, n[e]); + ? Fa(n, !0).forEach(function(e) { + Ie()(t, e, n[e]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) - : Ma(n).forEach(function(e) { + : Fa(n).forEach(function(e) { Object.defineProperty( t, e, @@ -152400,13 +152496,13 @@ object-assign } return t; } - var Da = Object(Pa.WidthProvider)(Pa.Responsive), - ja = (function(t) { + var Ba = Object(Ia.WidthProvider)(Ia.Responsive), + Ga = (function(t) { function e(t) { var n; return ( a()(this, e), - ((n = wn()(this, En()(e).call(this, t))).createElement = function( + ((n = Pn()(this, Ln()(e).call(this, t))).createElement = function( t ) { var e = t.i, @@ -152419,10 +152515,10 @@ object-assign 'div', { key: e, 'data-grid': t, id: ''.concat(a, '-').concat(e) }, 'image' === r - ? u.a.createElement($o, { src: src, index: index }) + ? u.a.createElement(ra, { src: src, index: index }) : 'paragraph' === r - ? u.a.createElement(Yo, { text: text, index: index }) - : u.a.createElement(ra, i()({ type: r }, l)), + ? u.a.createElement(na, { text: text, index: index }) + : u.a.createElement(fa, i()({ type: r }, l)), u.a.createElement( 'span', { @@ -152443,8 +152539,8 @@ object-assign }), (n.onAddItem = function() { n.setState(function(t) { - return La({}, t, { - items: [].concat(Ce()(t.items), [ + return Va({}, t, { + items: [].concat(ze()(t.items), [ { i: 'n'.concat(t.newCounter), x: (2 * t.items.length) % (t.cols || 12), @@ -152463,7 +152559,7 @@ object-assign (n.onLayoutChange = function(t) { var e = [n.state.items, t].reduce(function(t, e) { return t.map(function(t, n) { - return La({}, t, { + return Va({}, t, { x: e[n].x, y: e[n].y, w: e[n].w, @@ -152475,7 +152571,7 @@ object-assign }), (n.onRemoveItem = function(t) { n.setState(function(e) { - return La({}, e, { + return Va({}, e, { items: e.items.filter(function(e) { return e.i !== t; }) @@ -152488,8 +152584,8 @@ object-assign i = t.w, o = t.h; n.setState(function(t) { - return La({}, t, { - items: [].concat(Ce()(t.items), [ + return Va({}, t, { + items: [].concat(ze()(t.items), [ { i: 'n'.concat(t.newCounter), x: e, @@ -152508,15 +152604,15 @@ object-assign ); } return ( - An()(e, t), - _n()(e, [ + Dn()(e, t), + Cn()(e, [ { key: 'componentDidUpdate', value: function(t) { var e = this.props, n = e.layout, r = e.items; - !Po()(this.props.layout, t.layout) && + !Io()(this.props.layout, t.layout) && n && r && this.setState({ @@ -152534,7 +152630,7 @@ object-assign 'div', { id: 'dashboard-'.concat(this.props.id) }, u.a.createElement( - Da, + Ba, i()( { onLayoutChange: this.onLayoutChange, @@ -152564,7 +152660,7 @@ object-assign e ); })(s.PureComponent); - he( + xe( function(t) { var e = t.app, n = e.dashboardInfo, @@ -152595,24 +152691,24 @@ object-assign }; }, { - dropHandler: ln, - showSettings: fn, - mapOldItems: mn, + dropHandler: vn, + showSettings: bn, + mapOldItems: En, setLayout: function(t, e) { return { type: 'SET_LAYOUT', layout: t, items: e }; } } - )(ja); - ja.defaultProps = { + )(Ga); + Ga.defaultProps = { className: 'layout', cols: { lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 }, rowHeight: 100 }; - var Ra = { closeSettings: cn }, - za = he(function(t) { + var Ha = { closeSettings: yn }, + Ua = xe(function(t) { var e = t.app; return { screenSize: e.screenSize, dashboardsMenu: e.dashboardsMenu }; - }, Ra)(function(t) { + }, Ha)(function(t) { var e = t.version, n = t.screenSize, r = t.dashboardsMenu, @@ -152626,9 +152722,9 @@ object-assign : 'dashboard-container-viewer', onMouseDown: t.closeSettings }, - 'share' === r && u.a.createElement(Aa, null), - 'embed' === r && u.a.createElement(Oa, null), - u.a.createElement(zo, { version: e, editable: !i }), + 'share' === r && u.a.createElement(Da, null), + 'embed' === r && u.a.createElement(Na, null), + u.a.createElement(Uo, { version: e, editable: !i }), u.a.createElement( 'div', { @@ -152642,9 +152738,9 @@ object-assign : '420px' } }, - u.a.createElement(Bo, { version: e, isDashboardPublic: i }), - u.a.createElement(ga.Consumer, null, function(t) { - return u.a.createElement(ba, { + u.a.createElement($o, { version: e, isDashboardPublic: i }), + u.a.createElement(Sa.Consumer, null, function(t) { + return u.a.createElement(Ta, { keenAnalysis: t, version: e, isDashboardPublic: i @@ -152653,13 +152749,13 @@ object-assign ) ); }), - Na = (function(t) { + qa = (function(t) { function e(t) { - return a()(this, e), wn()(this, En()(e).call(this, t)); + return a()(this, e), Pn()(this, Ln()(e).call(this, t)); } return ( - An()(e, t), - _n()(e, [ + Dn()(e, t), + Cn()(e, [ { key: 'componentDidMount', value: function() { @@ -152669,7 +152765,7 @@ object-assign r = t.updateDashboardInfo, i = t.loadDashboards, o = t.match.params.id; - e && !Ee()(e) ? r(e) : (n(o), i()); + e && !Le()(e) ? r(e) : (n(o), i()); } }, { @@ -152686,7 +152782,7 @@ object-assign return u.a.createElement( 'div', { className: 'dashboard-builder' }, - u.a.createElement(za, { + u.a.createElement(Ua, { version: 'viewer', isDashboardPublic: t }) @@ -152697,19 +152793,19 @@ object-assign e ); })(s.Component), - Ia = { - loadDashboardInfo: an, + Wa = { + loadDashboardInfo: pn, updateDashboardInfo: function(t) { return { type: 'UPDATE_DASHBOARD_INFO', dashboardInfo: t }; }, clearDashboardInfo: function() { return { type: 'CLEAR_DASHBOARD_INFO' }; }, - loadDashboards: on + loadDashboards: hn }, - Fa = he(null, Ia)(Na), - Va = (n(444), n(446), n(46)), - Ba = { + Xa = xe(null, Wa)(qa), + Ya = (n(444), n(446), n(46)), + $a = { prefix: 'fas', iconName: 'edit', icon: [ @@ -152720,7 +152816,7 @@ object-assign 'M402.6 83.2l90.2 90.2c3.8 3.8 3.8 10 0 13.8L274.4 405.6l-92.8 10.3c-12.4 1.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8 83.2c3.8-3.8 10-3.8 13.8 0zm162-22.9l-48.8-48.8c-15.2-15.2-39.9-15.2-55.2 0l-35.4 35.4c-3.8 3.8-3.8 10 0 13.8l90.2 90.2c3.8 3.8 10 3.8 13.8 0l35.4-35.4c15.2-15.3 15.2-40 0-55.2zM384 346.2V448H64V128h229.8c3.2 0 6.2-1.3 8.5-3.5l40-40c7.6-7.6 2.2-20.5-8.5-20.5H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V306.2c0-10.7-12.9-16-20.5-8.5l-40 40c-2.2 2.3-3.5 5.3-3.5 8.5z' ] }, - Ga = { + Ka = { prefix: 'fas', iconName: 'external-link-alt', icon: [ @@ -152731,7 +152827,7 @@ object-assign 'M576 24v127.984c0 21.461-25.96 31.98-40.971 16.971l-35.707-35.709-243.523 243.523c-9.373 9.373-24.568 9.373-33.941 0l-22.627-22.627c-9.373-9.373-9.373-24.569 0-33.941L442.756 76.676l-35.703-35.705C391.982 25.9 402.656 0 424.024 0H552c13.255 0 24 10.745 24 24zM407.029 270.794l-16 16A23.999 23.999 0 0 0 384 303.765V448H64V128h264a24.003 24.003 0 0 0 16.97-7.029l16-16C376.089 89.851 365.381 64 344 64H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V287.764c0-21.382-25.852-32.09-40.971-16.97z' ] }, - Ha = { + Qa = { prefix: 'fas', iconName: 'file-download', icon: [ @@ -152742,7 +152838,7 @@ object-assign 'M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm76.45 211.36l-96.42 95.7c-6.65 6.61-17.39 6.61-24.04 0l-96.42-95.7C73.42 337.29 80.54 320 94.82 320H160v-80c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v80h65.18c14.28 0 21.4 17.29 11.27 27.36zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z' ] }, - Ua = { + Za = { prefix: 'fas', iconName: 'image', icon: [ @@ -152753,7 +152849,7 @@ object-assign 'M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z' ] }, - qa = { + Ja = { prefix: 'fas', iconName: 'laptop', icon: [ @@ -152764,7 +152860,7 @@ object-assign 'M624 416H381.54c-.74 19.81-14.71 32-32.74 32H288c-18.69 0-33.02-17.47-32.77-32H16c-8.8 0-16 7.2-16 16v16c0 35.2 28.8 64 64 64h512c35.2 0 64-28.8 64-64v-16c0-8.8-7.2-16-16-16zM576 48c0-26.4-21.6-48-48-48H112C85.6 0 64 21.6 64 48v336h512V48zm-64 272H128V64h384v256z' ] }, - Wa = { + ts = { prefix: 'fas', iconName: 'mobile-alt', icon: [ @@ -152775,7 +152871,7 @@ object-assign 'M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm112-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v312z' ] }, - Xa = { + es = { prefix: 'fas', iconName: 'paragraph', icon: [ @@ -152786,7 +152882,7 @@ object-assign 'M448 48v32a16 16 0 0 1-16 16h-48v368a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16V96h-32v368a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16V352h-32a160 160 0 0 1 0-320h240a16 16 0 0 1 16 16z' ] }, - Ya = { + ns = { prefix: 'fas', iconName: 'search', icon: [ @@ -152797,7 +152893,7 @@ object-assign 'M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z' ] }, - $a = { + rs = { prefix: 'fas', iconName: 'spinner', icon: [ @@ -152808,7 +152904,7 @@ object-assign 'M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z' ] }, - Ka = { + is = { prefix: 'fas', iconName: 'tablet-alt', icon: [ @@ -152819,31 +152915,31 @@ object-assign 'M400 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM224 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm176-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h328c6.6 0 12 5.4 12 12v312z' ] }, - Qa = n(167), - Za = n.n(Qa); + os = n(167), + as = n.n(os); n.d(e, 'keenGlobals', function() { - return ts; + return us; }), n.d(e, 'DashboardViewer', function() { - return es; - }), - Va.b.add(Xa, Ua, Ya, $a, Ba, Wa, Ka, qa, Ga, Ha), - lo.locale(Za.a); - var Ja = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || St, - ts = void 0; - 'undefined' != typeof webpackKeenGlobals && (ts = webpackKeenGlobals); - var es = function t(e) { + return ls; + }), + Ya.b.add(es, Za, ns, rs, $a, ts, is, Ja, Ka, Qa), + yo.locale(as.a); + var ss = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || Mt, + us = void 0; + 'undefined' != typeof webpackKeenGlobals && (us = webpackKeenGlobals); + var ls = function t(e) { a()(this, t); var n, r = e.keenAnalysis, o = e.dashboardInfo, - s = o && !Ee()(o), - l = r.instance || new Ae.a(r.config), + s = o && !Le()(o), + l = r.instance || new De.a(r.config), f = e.keenWebHost || window.location.host; e.keenWebHost && (n = { mode: 'cors', credentials: 'include' }); - var d = vt( - qe, - Ja( + var d = kt( + Je, + ss( (function() { for ( var t = arguments.length, e = new Array(t), n = 0; @@ -152868,13 +152964,13 @@ object-assign o = e.map(function(t) { return t(i); }); - return wt({}, n, { - dispatch: (r = St.apply(void 0, o)(n.dispatch)) + return Pt({}, n, { + dispatch: (r = Mt.apply(void 0, o)(n.dispatch)) }); }; }; })( - we.withExtraArgument({ + Pe.withExtraArgument({ keenClient: l, keenWebHost: f, keenWebFetchOptions: n @@ -152884,31 +152980,31 @@ object-assign ); c.a.render( u.a.createElement( - Mt, + Ft, { store: d }, u.a.createElement( - ga.Provider, + Sa.Provider, { value: l }, u.a.createElement( - ft, + dt, null, s - ? u.a.createElement(it, { + ? u.a.createElement(ot, { path: '/', component: function(t) { - return u.a.createElement(Fa, i()({}, t, e)); + return u.a.createElement(Xa, i()({}, t, e)); }, exact: !0 }) - : u.a.createElement(it, { + : u.a.createElement(ot, { path: '/', - component: Lo, + component: Vo, exact: !0 }), - u.a.createElement(it, { + u.a.createElement(ot, { path: '/viewer/:id', component: function(t) { - return u.a.createElement(Fa, i()({}, t, e)); + return u.a.createElement(Xa, i()({}, t, e)); } }) ) @@ -152917,47 +153013,47 @@ object-assign document.querySelector(e.container) ); }; - es.propTypes = { - dashboardInfo: g.a.shape({ - created_date: g.a.string, - data: g.a.shape({ - version: g.a.number, - items: g.a.arrayOf( - g.a.shape({ - height: g.a.number, - width: g.a.number, - top: g.a.number, - left: g.a.number, - colors: g.a.array, - palette: g.a.string, - picker: g.a.object, - legend: g.a.shape({ value: g.a.string, label: g.a.string }), - sparkline: g.a.shape({ value: g.a.bool, label: g.a.string }), - stacking: g.a.shape({ value: g.a.string, label: g.a.string }), - savedQuery: g.a.shape({ value: g.a.string, label: g.a.string }) + ls.propTypes = { + dashboardInfo: h.a.shape({ + created_date: h.a.string, + data: h.a.shape({ + version: h.a.number, + items: h.a.arrayOf( + h.a.shape({ + height: h.a.number, + width: h.a.number, + top: h.a.number, + left: h.a.number, + colors: h.a.array, + palette: h.a.string, + picker: h.a.object, + legend: h.a.shape({ value: h.a.string, label: h.a.string }), + sparkline: h.a.shape({ value: h.a.bool, label: h.a.string }), + stacking: h.a.shape({ value: h.a.string, label: h.a.string }), + savedQuery: h.a.shape({ value: h.a.string, label: h.a.string }) }) ) }), - id: g.a.string, - is_public: g.a.bool, - last_modified_date: g.a.string, - project_id: g.a.string, - rows: g.a.arrayOf( - g.a.shape({ - height: g.a.number, - tiles: g.a.arrayOf( - g.a.shape({ column_width: g.a.number, query_name: g.a.string }) + id: h.a.string, + is_public: h.a.bool, + last_modified_date: h.a.string, + project_id: h.a.string, + rows: h.a.arrayOf( + h.a.shape({ + height: h.a.number, + tiles: h.a.arrayOf( + h.a.shape({ column_width: h.a.number, query_name: h.a.string }) ) }) ), - settings: g.a.shape({ - dryRun: g.a.bool, - is_public: g.a.bool, - colors: g.a.array, - palette: g.a.string, - picker: g.a.object - }), - title: g.a.string + settings: h.a.shape({ + dryRun: h.a.bool, + is_public: h.a.bool, + colors: h.a.array, + palette: h.a.string, + picker: h.a.object + }), + title: h.a.string }) }; }, @@ -153759,7 +153855,7 @@ object-assign r = t.substring(0, 3 !== e ? n : 10); return ( (n = t.substring(n + 1, t.length - 1)), - D(2 !== e ? r : r.replace(S, '$1'), n, e) + j(2 !== e ? r : r.replace(S, '$1'), n, e) ); } function o(t, e) { @@ -153784,11 +153880,11 @@ object-assign function s(t) { return ( void 0 !== (t = t.prefix) && - ((D = null), + ((j = null), t ? 'function' != typeof t ? (O = 1) - : ((O = 2), (D = t)) + : ((O = 2), (j = t)) : (O = 0)), s ); @@ -153811,7 +153907,7 @@ object-assign E = 0, k = 0, M = 0, - D = 0, + j = 0, R = (g = h = 0), z = 0, N = 0, @@ -154016,7 +154112,7 @@ object-assign 107 !== f && 0 < G.length && ((N = 1), (G += '\0')), - 0 < L * j && a(0, G, s, n, T, A, H.length, f, d, f), + 0 < L * D && a(0, G, s, n, T, A, H.length, f, d, f), (A = 1), T++; break; @@ -154060,7 +154156,7 @@ object-assign case 2: 112 === M && 58 === u.charCodeAt(z - 3) && (C = M); case 8: - 111 === D && (C = D); + 111 === j && (C = j); } break; case 58: @@ -154085,7 +154181,7 @@ object-assign case 40: if (0 === k + S + w) { if (0 === h) - switch (2 * M + 3 * D) { + switch (2 * M + 3 * j) { case 533: break; default: @@ -154122,7 +154218,7 @@ object-assign } 0 === S && (G += b); } - (D = M), (M = p), z++; + (j = M), (M = p), z++; } if (0 < (F = H.length)) { if ( @@ -154183,8 +154279,8 @@ object-assign P = [], M = [], L = 0, - D = null, - j = 0; + j = null, + D = 0; return ( (u.use = function t(e) { switch (e) { @@ -154196,7 +154292,7 @@ object-assign if ('function' == typeof e) M[L++] = e; else if ('object' == typeof e) for (var n = 0, r = e.length; n < r; ++n) t(e[n]); - else j = 0 | !!e; + else D = 0 | !!e; } return t; }), @@ -154334,7 +154430,7 @@ object-assign ((r ^= r >>> 15) >>> 0).toString(36) ); }, - D = { + j = { animationIterationCount: 1, borderImageOutset: 1, borderImageSlice: 1, @@ -154381,7 +154477,7 @@ object-assign strokeOpacity: 1, strokeWidth: 1 }; - var j = /[A-Z]|^ms/g, + var D = /[A-Z]|^ms/g, R = /_EMO_([^_]+?)_([^]*?)_EMO_/g, z = function(t) { return 45 === t.charCodeAt(1); @@ -154395,7 +154491,7 @@ object-assign return void 0 === e[n] && (e[n] = t(n)), e[n]; }; })(function(t) { - return z(t) ? t : t.replace(j, '-$&').toLowerCase(); + return z(t) ? t : t.replace(D, '-$&').toLowerCase(); }), F = function(t, e) { switch (t) { @@ -154406,7 +154502,7 @@ object-assign return (B = { name: e, styles: n, next: B }), e; }); } - return 1 === D[t] || z(t) || 'number' != typeof e || 0 === e + return 1 === j[t] || z(t) || 'number' != typeof e || 0 === e ? e : e + 'px'; }; @@ -155055,7 +155151,7 @@ object-assign styles: 'display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;' }, - Dt = function(t) { + jt = function(t) { var e = t.size, n = i(t, ['size']); return J( @@ -155073,9 +155169,9 @@ object-assign ) ); }, - jt = function(t) { + Dt = function(t) { return J( - Dt, + jt, Object(o.a)({ size: 20 }, t), J('path', { d: @@ -155085,7 +155181,7 @@ object-assign }, Rt = function(t) { return J( - Dt, + jt, Object(o.a)({ size: 20 }, t), J('path', { d: @@ -155192,7 +155288,7 @@ object-assign var t = this.props, e = t.children, n = t.innerProps; - return J('div', n, e || J(jt, { size: 14 })); + return J('div', n, e || J(Dt, { size: 14 })); } } ]), @@ -155294,7 +155390,7 @@ object-assign css: i('clearIndicator', t), className: r({ indicator: !0, 'clear-indicator': !0 }, n) }), - e || J(jt, null) + e || J(Dt, null) ); }, Control: function(t) { @@ -155344,7 +155440,7 @@ object-assign ); }, DownChevron: Rt, - CrossIcon: jt, + CrossIcon: Dt, Group: function(t) { var e = t.children, n = t.className, @@ -157972,8 +158068,8 @@ object-assign M = m.onMenuScrollToTop, L = m.onMenuScrollToBottom; if (!E) return null; - var D, - j = function(e) { + var j, + D = function(e) { var n = p === e.data; return ( (e.innerRef = n ? t.getFocusedOptionRef : void 0), @@ -157985,7 +158081,7 @@ object-assign ); }; if (this.hasOptions()) - D = g.render.map(function(e) { + j = g.render.map(function(e) { if ('group' === e.type) { e.type; var a = i(e, ['type']), @@ -157998,20 +158094,20 @@ object-assign label: t.formatGroupLabel(e.data) }), e.options.map(function(t) { - return j(t); + return D(t); }) ); } - if ('option' === e.type) return j(e); + if ('option' === e.type) return D(e); }); else if (b) { var R = x({ inputValue: y }); if (null === R) return null; - D = _.a.createElement(l, d, R); + j = _.a.createElement(l, d, R); } else { var z = P({ inputValue: y }); if (null === z) return null; - D = _.a.createElement(c, d, z); + j = _.a.createElement(c, d, z); } var N = { minMenuHeight: w, @@ -158051,7 +158147,7 @@ object-assign isLoading: b, maxHeight: u }), - D + j ) ) ) diff --git a/package-lock.json b/package-lock.json index cb1fdca..b778a95 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "keen-dashboard-builder", - "version": "1.5.11", + "version": "1.5.12", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index b99e289..e12bead 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "keen-dashboard-builder", "description": "Dashboard builder for Keen.io", "license": "MIT", - "version": "1.5.11", + "version": "1.5.12", "main": "dist/main.min.js", "scripts": { "start": "concurrently --kill-others \"NODE_ENV=development webpack-dev-server\"", From 2f3bd273e11d3c7f3d5876688aa2926ab30e7f53 Mon Sep 17 00:00:00 2001 From: Artur Pryka Date: Mon, 10 Feb 2020 14:56:24 +0100 Subject: [PATCH 07/15] =?UTF-8?q?refactor:=20=F0=9F=92=A1=20fix=20for=20ed?= =?UTF-8?q?it=20mode=20freeze?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/actions/rootActions.js | 2 +- lib/reducers/rootReducer.js | 31 +++++++++++++------------------ 2 files changed, 14 insertions(+), 19 deletions(-) diff --git a/lib/actions/rootActions.js b/lib/actions/rootActions.js index e29559a..3e84d13 100644 --- a/lib/actions/rootActions.js +++ b/lib/actions/rootActions.js @@ -342,7 +342,7 @@ export const deleteChart = index => (dispatch, getState, { keenClient }) => { query => !savedQueriesList.includes(query.value) ); if (isNewQueryAdded) { - updateAPIKey(savedQueriesList, dashboardInfo.title); + updateAPIKey(savedQueriesList, dashboardInfo.title, keenClient); } } dispatch({ diff --git a/lib/reducers/rootReducer.js b/lib/reducers/rootReducer.js index b2c7cea..6757446 100644 --- a/lib/reducers/rootReducer.js +++ b/lib/reducers/rootReducer.js @@ -409,7 +409,7 @@ const appReducer = (state = defaultData, action) => { items: [...dashboardInfo.data.items, action.newElement] } }, - draggedType: {}, + draggedType: '', settingsVisible: dashboardInfo.data.items.length }; case actionTypes.RESIZE_CHART: @@ -500,24 +500,19 @@ const appReducer = (state = defaultData, action) => { isMoving: undefined }; case actionTypes.DELETE_CHART: - const approvalDelChart = confirm('Do You want to delete this chart?'); - if (approvalDelChart) { - // TODO: Move it from reducer - ReactTooltip.hide(); - return { - ...state, - settingsVisible: false, - dashboardInfo: { - ...dashboardInfo, - data: { - ...dashboardInfo.data, - items: dashboardInfo.data.items.filter( - (el, i) => i !== action.index - ) - } + return { + ...state, + settingsVisible: false, + dashboardInfo: { + ...dashboardInfo, + data: { + ...dashboardInfo.data, + items: dashboardInfo.data.items.filter( + (el, i) => i !== action.index + ) } - }; - } + } + }; case actionTypes.CLOSE_SETTINGS: return { ...state, From 7dab7fbb5acc497062f5afc3e3a7f060f13cb34e Mon Sep 17 00:00:00 2001 From: Artur Pryka Date: Mon, 17 Feb 2020 08:07:45 +0100 Subject: [PATCH 08/15] 1.5.13 --- dist/main.min.js | 291 ++++++++++++++++++++++----------------------- dist/viewer.min.js | 105 ++++++++-------- package-lock.json | 2 +- package.json | 2 +- 4 files changed, 195 insertions(+), 205 deletions(-) diff --git a/dist/main.min.js b/dist/main.min.js index d75289f..9c0f712 100644 --- a/dist/main.min.js +++ b/dist/main.min.js @@ -9071,6 +9071,94 @@ }.apply(t, [])) || (e.exports = r); })(); }, + function(e, t, n) { + e.exports = n(749); + }, + function(e, t) { + function n(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + e.exports = function(e, t, r) { + return t && n(e.prototype, t), r && n(e, r), e; + }; + }, + function(e, t, n) { + var r = n(503), + o = n(111); + e.exports = function(e, t) { + return !t || ('object' !== r(t) && 'function' != typeof t) ? o(e) : t; + }; + }, + function(e, t) { + function n(t) { + return ( + (e.exports = n = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(e) { + return e.__proto__ || Object.getPrototypeOf(e); + }), + n(t) + ); + } + e.exports = n; + }, + function(e, t, n) { + var r = n(504); + e.exports = function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { value: e, writable: !0, configurable: !0 } + })), + t && r(e, t); + }; + }, + function(e, t, n) { + 'use strict'; + function r(e, t) { + if (null == e) return {}; + var n, + r, + o = {}, + i = Object.keys(e); + for (r = 0; r < i.length; r++) + (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); + return o; + } + n.d(t, 'a', function() { + return r; + }); + }, + function(e, t, n) { + 'use strict'; + n.d(t, 'a', function() { + return o; + }); + var r = n(28); + function o(e, t) { + if (null == e) return {}; + var n, + o, + i = Object(r.a)(e, t); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(e); + for (o = 0; o < a.length; o++) + (n = a[o]), + t.indexOf(n) >= 0 || + (Object.prototype.propertyIsEnumerable.call(e, n) && + (i[n] = e[n])); + } + return i; + } + }, function(e, t, n) { 'use strict'; var r, @@ -10015,94 +10103,6 @@ ) || r; e.exports = M; }, - function(e, t, n) { - e.exports = n(749); - }, - function(e, t) { - function n(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - e.exports = function(e, t, r) { - return t && n(e.prototype, t), r && n(e, r), e; - }; - }, - function(e, t, n) { - var r = n(503), - o = n(111); - e.exports = function(e, t) { - return !t || ('object' !== r(t) && 'function' != typeof t) ? o(e) : t; - }; - }, - function(e, t) { - function n(t) { - return ( - (e.exports = n = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(e) { - return e.__proto__ || Object.getPrototypeOf(e); - }), - n(t) - ); - } - e.exports = n; - }, - function(e, t, n) { - var r = n(504); - e.exports = function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { value: e, writable: !0, configurable: !0 } - })), - t && r(e, t); - }; - }, - function(e, t, n) { - 'use strict'; - function r(e, t) { - if (null == e) return {}; - var n, - r, - o = {}, - i = Object.keys(e); - for (r = 0; r < i.length; r++) - (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); - return o; - } - n.d(t, 'a', function() { - return r; - }); - }, - function(e, t, n) { - 'use strict'; - n.d(t, 'a', function() { - return o; - }); - var r = n(29); - function o(e, t) { - if (null == e) return {}; - var n, - o, - i = Object(r.a)(e, t); - if (Object.getOwnPropertySymbols) { - var a = Object.getOwnPropertySymbols(e); - for (o = 0; o < a.length; o++) - (n = a[o]), - t.indexOf(n) >= 0 || - (Object.prototype.propertyIsEnumerable.call(e, n) && - (i[n] = e[n])); - } - return i; - } - }, function(e, t) { e.exports = function(e, t, n) { return ( @@ -33764,7 +33764,7 @@ object-assign })() ); } - var s = (0, n(24).and)( + var s = (0, n(23).and)( [ o.default.instanceOf(Set), function(e, t) { @@ -36126,7 +36126,7 @@ object-assign (t.default = t.PureCalendarDay = void 0); var r = l(n(45)), o = l(n(0)), - i = (l(n(1)), l(n(53)), n(24), n(46)), + i = (l(n(1)), l(n(53)), n(23), n(46)), a = l(n(4)), s = n(32), c = (l(n(35)), l(n(392))), @@ -36702,7 +36702,7 @@ object-assign (t.default = t.PureDayPicker = t.defaultProps = void 0); var r = w(n(45)), o = w(n(0)), - i = (w(n(1)), n(24), n(46)), + i = (w(n(1)), n(23), n(46)), a = w(n(4)), s = w(n(163)), c = w(n(83)), @@ -66580,7 +66580,7 @@ object-assign (t.default = void 0); var r = g(n(45)), o = g(n(0)), - i = (g(n(1)), g(n(53)), n(24), n(46)), + i = (g(n(1)), g(n(53)), n(23), n(46)), a = g(n(4)), s = n(32), c = (g(n(35)), g(n(758))), @@ -66943,7 +66943,7 @@ object-assign (t.default = void 0); var r = y(n(45)), o = y(n(0)), - i = (y(n(1)), y(n(53)), n(24), n(46)), + i = (y(n(1)), y(n(53)), n(23), n(46)), a = y(n(4)), s = n(132), c = n(32), @@ -67576,7 +67576,7 @@ object-assign (t.default = void 0); var r = m(n(1)), o = m(n(53)), - i = n(24), + i = n(23), a = n(32), s = m(n(35)), c = m(n(412)), @@ -67789,7 +67789,7 @@ object-assign var r = p(n(45)), o = p(n(0)), i = (p(n(1)), p(n(4))), - a = (p(n(53)), n(24), p(n(71)), n(32)), + a = (p(n(53)), n(23), p(n(71)), n(32)), s = (p(n(35)), p(n(419))), c = (p(n(84)), p(n(105)), p(n(81))), u = p(n(173)), @@ -68122,7 +68122,7 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = void 0); var r = p(n(0)), - o = (p(n(1)), n(24), n(46)), + o = (p(n(1)), n(23), n(46)), i = n(32), a = (p(n(35)), p(n(59))), s = (p(n(71)), p(n(420))), @@ -68441,7 +68441,7 @@ object-assign (t.default = void 0); var r = f(n(45)), o = f(n(0)), - i = (f(n(1)), n(24), n(46)), + i = (f(n(1)), n(23), n(46)), a = f(n(163)), s = f(n(83)), c = f(n(59)), @@ -68942,7 +68942,7 @@ object-assign (t.default = void 0); var r = w(n(45)), o = w(n(0)), - i = (w(n(1)), w(n(53)), n(24), w(n(4))), + i = (w(n(1)), w(n(53)), n(23), w(n(4))), a = w(n(168)), s = w(n(83)), c = n(32), @@ -70266,7 +70266,7 @@ object-assign (t.default = void 0); var r = b(n(45)), o = b(n(0)), - i = (b(n(1)), b(n(53)), n(24), b(n(4))), + i = (b(n(1)), b(n(53)), n(23), b(n(4))), a = b(n(168)), s = b(n(83)), c = n(32), @@ -71063,7 +71063,7 @@ object-assign (t.default = void 0); var r = h(n(1)), o = h(n(53)), - i = n(24), + i = n(23), a = n(32), s = h(n(35)), c = h(n(84)), @@ -71152,7 +71152,7 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = void 0); var r = f(n(0)), - o = (f(n(1)), n(24), n(46)), + o = (f(n(1)), n(23), n(46)), i = n(32), a = (f(n(35)), f(n(59))), s = f(n(420)), @@ -218545,7 +218545,7 @@ object-assign 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = i); var r = o(n(0)); - n(24), o(n(165)), o(n(759)); + n(23), o(n(165)), o(n(759)); function o(e) { return e && e.__esModule ? e : { default: e }; } @@ -218561,7 +218561,7 @@ object-assign (t.default = t.PureCustomizableCalendarDay = t.selectedStyles = t.lastInRangeStyles = t.selectedSpanStyles = t.hoveredSpanStyles = t.blockedOutOfRangeStyles = t.blockedCalendarStyles = t.blockedMinNightsStyles = t.highlightedCalendarStyles = t.outsideStyles = t.defaultStyles = void 0); var r = l(n(45)), o = l(n(0)), - i = (l(n(1)), l(n(53)), n(24), n(46)), + i = (l(n(1)), l(n(53)), n(23), n(46)), a = l(n(4)), s = n(32), c = (l(n(35)), l(n(392))), @@ -219243,7 +219243,7 @@ object-assign i = x(n(4)), a = n(46), s = n(450), - c = (n(24), n(132)), + c = (n(23), n(132)), u = x(n(83)), l = x(n(167)), f = (x(n(411)), n(32)), @@ -220041,7 +220041,7 @@ object-assign })(), o = l(n(0)), i = l(n(1)), - a = n(24), + a = n(23), s = n(132), c = l(n(168)), u = l(n(784)); @@ -221927,7 +221927,7 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = void 0); var r = d(n(0)), - o = (d(n(1)), n(24), n(46)), + o = (d(n(1)), n(23), n(46)), i = n(32), a = (d(n(35)), d(n(59))), s = d(n(422)), @@ -222327,7 +222327,7 @@ object-assign (t.default = t.BOTTOM_RIGHT = t.TOP_RIGHT = t.TOP_LEFT = void 0); var r = u(n(45)), o = u(n(0)), - i = (u(n(1)), n(24), n(46)), + i = (u(n(1)), n(23), n(46)), a = n(32), s = (u(n(35)), u(n(791))), c = u(n(108)); @@ -222793,7 +222793,7 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = void 0); var r = i(n(0)), - o = (i(n(1)), n(24), n(46)); + o = (i(n(1)), n(23), n(46)); function i(e) { return e && e.__esModule ? e : { default: e }; } @@ -222906,7 +222906,7 @@ object-assign i = x(n(4)), a = n(46), s = n(450), - c = (n(24), n(132)), + c = (n(23), n(132)), u = x(n(83)), l = x(n(167)), f = (x(n(428)), n(32)), @@ -223647,7 +223647,7 @@ object-assign var r = d(n(45)), o = d(n(0)), i = (d(n(1)), d(n(4))), - a = (d(n(53)), n(24), d(n(71)), n(32)), + a = (d(n(53)), n(23), d(n(71)), n(32)), s = (d(n(35)), d(n(429))), c = (d(n(84)), d(n(105)), d(n(81))), u = d(n(173)), @@ -228778,7 +228778,7 @@ object-assign X = n(195), G = n.n(X), K = n(91), - $ = n(29), + $ = n(28), Q = n(56), J = n.n(Q), Z = (function(e) { @@ -229808,7 +229808,7 @@ object-assign kt = n.n(Mt), St = n(31), Ot = n.n(St), - Et = n(23), + Et = n(30), At = n.n(Et); function Tt(e, t, n, r, o, i) { var a = 0, @@ -230356,7 +230356,7 @@ object-assign items: [].concat(kt()(n.data.items), [t.newElement]) }) }), - draggedType: {}, + draggedType: '', settingsVisible: n.data.items.length }); case 'RESIZE_CHART': @@ -230430,21 +230430,16 @@ object-assign case 'STOP_MOVE_CHART': return It({}, e, { isMoving: void 0 }); case 'DELETE_CHART': - var l = confirm('Do You want to delete this chart?'); - if (l) - return ( - At.a.hide(), - It({}, e, { - settingsVisible: !1, - dashboardInfo: It({}, n, { - data: It({}, n.data, { - items: n.data.items.filter(function(e, n) { - return n !== t.index; - }) - }) + return It({}, e, { + settingsVisible: !1, + dashboardInfo: It({}, n, { + data: It({}, n.data, { + items: n.data.items.filter(function(e, n) { + return n !== t.index; }) }) - ); + }) + }); case 'CLOSE_SETTINGS': return It({}, e, { settingsVisible: !1 }); case 'SHOW_SETTINGS': @@ -230521,13 +230516,13 @@ object-assign }) }); case 'CLONE_CHART': - var f = It({}, n.data.items[t.index], { + var l = It({}, n.data.items[t.index], { top: n.data.items[t.index].top + n.data.items[t.index].height }); return It({}, e, { dashboardInfo: It({}, n, { data: It({}, n.data, { - items: [].concat(kt()(n.data.items), [f]) + items: [].concat(kt()(n.data.items), [l]) }) }) }); @@ -230702,10 +230697,10 @@ object-assign }) }); case 'CHANGE_SAVED_QUERY_LIST': - var d = t.savedQueriesList; + var f = t.savedQueriesList; return It({}, e, { dashboardInfo: It({}, n, { - settings: It({}, n.settings, { savedQueriesList: d }) + settings: It({}, n.settings, { savedQueriesList: f }) }) }); case 'LOAD_DUMMY_DASHBOARDS': @@ -232115,13 +232110,13 @@ object-assign }; }, jr = n(7), - zr = n(25), + zr = n(24), Nr = n.n(zr), - Rr = n(26), + Rr = n(25), Ir = n.n(Rr), - Fr = n(27), + Fr = n(26), qr = n.n(Fr), - Br = n(28), + Br = n(27), Hr = n.n(Br), Yr = (function(e) { function t(e) { @@ -238742,18 +238737,18 @@ object-assign { deleteChart: function(e) { return function(t, n, r) { - r.keenClient; + var o = r.keenClient; if (confirm('Do You want to delete this chart?')) { - var o = n(), - i = ur(o), - a = i.data.items[e].savedQuery; - t(Dr(a, [])); - var s = n(), - c = cr(s); - if (i.is_public && a.length) - a.some(function(e) { - return !c.includes(e.value); - }) && lr(c, i.title); + var i = n(), + a = ur(i), + s = a.data.items[e].savedQuery; + t(Dr(s, [])); + var c = n(), + u = cr(c); + if (a.is_public && s.length) + s.some(function(e) { + return !u.includes(e.value); + }) && lr(u, a.title, o); t({ type: 'DELETE_CHART', index: e }); } }; @@ -246189,7 +246184,7 @@ object-assign var l = u, f = n(2), d = n(5), - p = n(29), + p = n(28), h = n(56), g = n.n(h), m = n(37), @@ -247700,7 +247695,7 @@ object-assign function(e, t, n) { 'use strict'; n.r(t); - var r = n(30), + var r = n(29), o = n(5), i = n(93), a = n(18), @@ -251672,7 +251667,7 @@ object-assign function(e, t, n) { 'use strict'; n.r(t); - var r = n(30), + var r = n(29), o = n(5), i = n(93), a = n(18), diff --git a/dist/viewer.min.js b/dist/viewer.min.js index 4bbf764..30d520f 100644 --- a/dist/viewer.min.js +++ b/dist/viewer.min.js @@ -5581,6 +5581,28 @@ ); }; }, + function(t, e) { + t.exports = function(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + }; + }, + function(t, e, n) { + 'use strict'; + function r(t, e) { + if (null == t) return {}; + var n, + r, + i = {}, + o = Object.keys(t); + for (r = 0; r < o.length; r++) + (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); + return i; + } + n.d(e, 'a', function() { + return r; + }); + }, function(t, e, n) { 'use strict'; var r, @@ -6525,28 +6547,6 @@ ) || r; t.exports = S; }, - function(t, e) { - t.exports = function(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - }; - }, - function(t, e, n) { - 'use strict'; - function r(t, e) { - if (null == t) return {}; - var n, - r, - i = {}, - o = Object.keys(t); - for (r = 0; r < o.length; r++) - (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); - return i; - } - n.d(e, 'a', function() { - return r; - }); - }, function(t, e) { var n; n = (function() { @@ -141301,7 +141301,7 @@ object-assign n.r(e); var r = n(25), i = n.n(r), - o = n(12), + o = n(11), a = n.n(o), s = n(0), u = n.n(s), @@ -141957,7 +141957,7 @@ object-assign X = n(87), Y = n.n(X), $ = n(61), - K = n(13), + K = n(12), Q = n(45), Z = n.n(Q), J = (function(t) { @@ -143210,7 +143210,7 @@ object-assign ze = n.n(Re), Ne = n(10), Ie = n.n(Ne), - Fe = n(11), + Fe = n(13), Ve = n.n(Fe); function Be(t, e, n, r, i, o) { var a = 0, @@ -143803,7 +143803,7 @@ object-assign items: [].concat(ze()(n.data.items), [e.newElement]) }) }), - draggedType: {}, + draggedType: '', settingsVisible: n.data.items.length }); case 'RESIZE_CHART': @@ -143877,21 +143877,16 @@ object-assign case 'STOP_MOVE_CHART': return Ke({}, t, { isMoving: void 0 }); case 'DELETE_CHART': - var c = confirm('Do You want to delete this chart?'); - if (c) - return ( - Ve.a.hide(), - Ke({}, t, { - settingsVisible: !1, - dashboardInfo: Ke({}, n, { - data: Ke({}, n.data, { - items: n.data.items.filter(function(t, n) { - return n !== e.index; - }) - }) + return Ke({}, t, { + settingsVisible: !1, + dashboardInfo: Ke({}, n, { + data: Ke({}, n.data, { + items: n.data.items.filter(function(t, n) { + return n !== e.index; }) }) - ); + }) + }); case 'CLOSE_SETTINGS': return Ke({}, t, { settingsVisible: !1 }); case 'SHOW_SETTINGS': @@ -143968,13 +143963,13 @@ object-assign }) }); case 'CLONE_CHART': - var f = Ke({}, n.data.items[e.index], { + var c = Ke({}, n.data.items[e.index], { top: n.data.items[e.index].top + n.data.items[e.index].height }); return Ke({}, t, { dashboardInfo: Ke({}, n, { data: Ke({}, n.data, { - items: [].concat(ze()(n.data.items), [f]) + items: [].concat(ze()(n.data.items), [c]) }) }) }); @@ -144149,10 +144144,10 @@ object-assign }) }); case 'CHANGE_SAVED_QUERY_LIST': - var d = e.savedQueriesList; + var f = e.savedQueriesList; return Ke({}, t, { dashboardInfo: Ke({}, n, { - settings: Ke({}, n.settings, { savedQueriesList: d }) + settings: Ke({}, n.settings, { savedQueriesList: f }) }) }); case 'LOAD_DUMMY_DASHBOARDS': @@ -151550,18 +151545,18 @@ object-assign { deleteChart: function(t) { return function(e, n, r) { - r.keenClient; + var i = r.keenClient; if (confirm('Do You want to delete this chart?')) { - var i = n(), - o = rn(i), - a = o.data.items[t].savedQuery; - e(kn(a, [])); - var s = n(), - u = nn(s); - if (o.is_public && a.length) - a.some(function(t) { - return !u.includes(t.value); - }) && on(u, o.title); + var o = n(), + a = rn(o), + s = a.data.items[t].savedQuery; + e(kn(s, [])); + var u = n(), + l = nn(u); + if (a.is_public && s.length) + s.some(function(t) { + return !l.includes(t.value); + }) && on(l, a.title, i); e({ type: 'DELETE_CHART', index: t }); } }; @@ -153410,7 +153405,7 @@ object-assign function(t, e, n) { 'use strict'; n.r(e); - var r = n(13); + var r = n(12); function i(t, e) { if (null == t) return {}; var n, diff --git a/package-lock.json b/package-lock.json index b778a95..112e6f2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "keen-dashboard-builder", - "version": "1.5.12", + "version": "1.5.13", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index e12bead..1479174 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "keen-dashboard-builder", "description": "Dashboard builder for Keen.io", "license": "MIT", - "version": "1.5.12", + "version": "1.5.13", "main": "dist/main.min.js", "scripts": { "start": "concurrently --kill-others \"NODE_ENV=development webpack-dev-server\"", From e5242c8784250249f83f3c6caa435d14f315e496 Mon Sep 17 00:00:00 2001 From: Artur Pryka Date: Mon, 21 Sep 2020 17:03:40 +0200 Subject: [PATCH 09/15] 2.0.10 --- dist/main.min.js | 235991 ++++++------ dist/viewer.min.js | 295726 +++++++-------- lib/builder/components/Buttons.js | 5 +- lib/builder/components/Chart.js | 5 +- lib/builder/components/ChartContainer.js | 5 +- lib/builder/components/Editor.js | 5 +- .../components/EditorDashboardsSwitch.js | 5 +- lib/builder/components/EditorToolbar.js | 5 +- lib/builder/components/EmbedDashboard.js | 13 +- lib/builder/components/Main.js | 5 +- lib/builder/components/NewDashboardButton.js | 5 +- lib/builder/components/SettingsChart.js | 5 +- lib/builder/components/SettingsDashboard.js | 5 +- lib/builder/components/SettingsImage.js | 5 +- lib/builder/components/ShareDashboard.js | 5 +- lib/builder/components/TextEditor.js | 5 +- lib/viewer/components/Editor.js | 5 +- lib/viewer/components/EditorContainer.js | 5 +- lib/viewer/components/EditorDashboard.js | 5 +- lib/viewer/components/Main.js | 5 +- lib/viewer/components/MainContainer.js | 5 +- lib/viewer/components/MainListItemButtons.js | 5 +- lib/viewer/components/MainTopToolbar.js | 5 +- lib/viewer/components/SwitchDashboard.js | 5 +- package-lock.json | 2 +- package.json | 2 +- 26 files changed, 265504 insertions(+), 266335 deletions(-) diff --git a/dist/main.min.js b/dist/main.min.js index 1fa8245..13a6ccb 100644 --- a/dist/main.min.js +++ b/dist/main.min.js @@ -60,15 +60,47 @@ return Object.prototype.hasOwnProperty.call(e, t); }), (n.p = ''), - n((n.s = 826)) + n((n.s = 878)) ); })([ function(e, t, n) { 'use strict'; - e.exports = n(443); + e.exports = n(472); }, function(e, t, n) { - e.exports = n(447)(); + e.exports = n(476)(); + }, + function(e, t, n) { + 'use strict'; + function r(e) { + if (void 0 === e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return e; + } + n.d(t, 'a', function() { + return r; + }); + }, + function(e, t, n) { + 'use strict'; + function r(e, t, n) { + return ( + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), + e + ); + } + n.d(t, 'a', function() { + return r; + }); }, function(e, t, n) { (function(e) { @@ -123,7 +155,7 @@ ); } function p(e, t, n, r) { - return kt(e, t, n, r, !0).utc(); + return Dt(e, t, n, r, !0).utc(); } function h(e) { return ( @@ -221,16 +253,16 @@ this.isValid() || (this._d = new Date(NaN)), !1 === v && ((v = !0), o.updateOffset(this), (v = !1)); } - function x(e) { + function w(e) { return e instanceof _ || (null != e && null != e._isAMomentObject); } - function w(e) { + function x(e) { return e < 0 ? Math.ceil(e) || 0 : Math.floor(e); } function M(e) { var t = +e, n = 0; - return 0 !== t && isFinite(t) && (n = w(t)), n; + return 0 !== t && isFinite(t) && (n = x(t)), n; } function k(e, t, n) { var r, @@ -247,7 +279,7 @@ console.warn && console.warn('Deprecation warning: ' + e); } - function A(e, t) { + function O(e, t) { var n = !0; return d(function() { if ( @@ -274,11 +306,11 @@ return t.apply(this, arguments); }, t); } - var O, - E = {}; + var E, + A = {}; function T(e, t) { null != o.deprecationHandler && o.deprecationHandler(e, t), - E[e] || (S(t), (E[e] = !0)); + A[e] || (S(t), (A[e] = !0)); } function C(e) { return ( @@ -304,7 +336,7 @@ } (o.suppressDeprecationWarnings = !1), (o.deprecationHandler = null), - (O = Object.keys + (E = Object.keys ? Object.keys : function(e) { var t, @@ -313,18 +345,18 @@ return n; }); var D = {}; - function z(e, t) { + function j(e, t) { var n = e.toLowerCase(); D[n] = D[n + 's'] = D[t] = e; } - function N(e) { + function z(e) { return 'string' == typeof e ? D[e] || D[e.toLowerCase()] : void 0; } - function j(e) { + function N(e) { var t, n, r = {}; - for (n in e) f(e, n) && (t = N(n)) && (r[t] = e[n]); + for (n in e) f(e, n) && (t = z(n)) && (r[t] = e[n]); return r; } var R = {}; @@ -468,10 +500,19 @@ function me(e, t, n) { null != t && f(pe, e) && pe[e](t, n._a, n, e); } - function be(e) { - return ye(e) ? 366 : 365; - } - function ye(e) { + var be = 0, + ye = 1, + ve = 2, + _e = 3, + we = 4, + xe = 5, + Me = 6, + ke = 7, + Se = 8; + function Oe(e) { + return Ee(e) ? 366 : 365; + } + function Ee(e) { return (e % 4 == 0 && e % 100 != 0) || e % 400 == 0; } W('Y', 0, 0, function() { @@ -484,64 +525,64 @@ W(0, ['YYYY', 4], 0, 'year'), W(0, ['YYYYY', 5], 0, 'year'), W(0, ['YYYYYY', 6, !0], 0, 'year'), - z('year', 'y'), + j('year', 'y'), I('year', 1), le('Y', ie), le('YY', J, G), le('YYYY', ne, $), le('YYYYY', re, Q), le('YYYYYY', re, Q), - he(['YYYYY', 'YYYYYY'], 0), + he(['YYYYY', 'YYYYYY'], be), he('YYYY', function(e, t) { - t[0] = 2 === e.length ? o.parseTwoDigitYear(e) : M(e); + t[be] = 2 === e.length ? o.parseTwoDigitYear(e) : M(e); }), he('YY', function(e, t) { - t[0] = o.parseTwoDigitYear(e); + t[be] = o.parseTwoDigitYear(e); }), he('Y', function(e, t) { - t[0] = parseInt(e, 10); + t[be] = parseInt(e, 10); }), (o.parseTwoDigitYear = function(e) { return M(e) + (M(e) > 68 ? 1900 : 2e3); }); - var ve, - _e = xe('FullYear', !0); - function xe(e, t) { + var Ae, + Te = Ce('FullYear', !0); + function Ce(e, t) { return function(n) { return null != n - ? (Me(this, e, n), o.updateOffset(this, t), this) - : we(this, e); + ? (Pe(this, e, n), o.updateOffset(this, t), this) + : Le(this, e); }; } - function we(e, t) { + function Le(e, t) { return e.isValid() ? e._d['get' + (e._isUTC ? 'UTC' : '') + t]() : NaN; } - function Me(e, t, n) { + function Pe(e, t, n) { e.isValid() && !isNaN(n) && ('FullYear' === t && - ye(e.year()) && + Ee(e.year()) && 1 === e.month() && 29 === e.date() ? e._d['set' + (e._isUTC ? 'UTC' : '') + t]( n, e.month(), - ke(n, e.month()) + De(n, e.month()) ) : e._d['set' + (e._isUTC ? 'UTC' : '') + t](n)); } - function ke(e, t) { + function De(e, t) { if (isNaN(e) || isNaN(t)) return NaN; var n, r = ((t % (n = 12)) + n) % n; return ( (e += (t - r) / 12), - 1 === r ? (ye(e) ? 29 : 28) : 31 - ((r % 7) % 2) + 1 === r ? (Ee(e) ? 29 : 28) : 31 - ((r % 7) % 2) ); } - (ve = Array.prototype.indexOf + (Ae = Array.prototype.indexOf ? Array.prototype.indexOf : function(e) { var t; @@ -557,7 +598,7 @@ W('MMMM', 0, 0, function(e) { return this.localeData().months(this, e); }), - z('month', 'M'), + j('month', 'M'), I('month', 8), le('M', J), le('MM', J, G), @@ -568,18 +609,18 @@ return t.monthsRegex(e); }), he(['M', 'MM'], function(e, t) { - t[1] = M(e) - 1; + t[ye] = M(e) - 1; }), he(['MMM', 'MMMM'], function(e, t, n, r) { var o = n._locale.monthsParse(e, r, n._strict); - null != o ? (t[1] = o) : (h(n).invalidMonth = e); + null != o ? (t[ye] = o) : (h(n).invalidMonth = e); }); - var Se = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, - Ae = 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + var je = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, + ze = 'January_February_March_April_May_June_July_August_September_October_November_December'.split( '_' ), - Oe = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'); - function Ee(e, t, n) { + Ne = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'); + function Re(e, t, n) { var r, o, i, @@ -604,42 +645,44 @@ ).toLocaleLowerCase()); return n ? 'MMM' === t - ? -1 !== (o = ve.call(this._shortMonthsParse, a)) + ? -1 !== (o = Ae.call(this._shortMonthsParse, a)) ? o : null - : -1 !== (o = ve.call(this._longMonthsParse, a)) + : -1 !== (o = Ae.call(this._longMonthsParse, a)) ? o : null : 'MMM' === t - ? -1 !== (o = ve.call(this._shortMonthsParse, a)) || - -1 !== (o = ve.call(this._longMonthsParse, a)) + ? -1 !== (o = Ae.call(this._shortMonthsParse, a)) + ? o + : -1 !== (o = Ae.call(this._longMonthsParse, a)) ? o : null - : -1 !== (o = ve.call(this._longMonthsParse, a)) || - -1 !== (o = ve.call(this._shortMonthsParse, a)) + : -1 !== (o = Ae.call(this._longMonthsParse, a)) + ? o + : -1 !== (o = Ae.call(this._shortMonthsParse, a)) ? o : null; } - function Te(e, t) { + function Ie(e, t) { var n; if (!e.isValid()) return e; if ('string' == typeof t) if (/^\d+$/.test(t)) t = M(t); else if (!c((t = e.localeData().monthsParse(t)))) return e; return ( - (n = Math.min(e.date(), ke(e.year(), t))), + (n = Math.min(e.date(), De(e.year(), t))), e._d['set' + (e._isUTC ? 'UTC' : '') + 'Month'](t, n), e ); } - function Ce(e) { + function Fe(e) { return null != e - ? (Te(this, e), o.updateOffset(this, !0), this) - : we(this, 'Month'); + ? (Ie(this, e), o.updateOffset(this, !0), this) + : Le(this, 'Month'); } - var Le = ce, - Pe = ce; - function De() { + var qe = ce, + Be = ce; + function He() { function e(e, t) { return t.length - e.length; } @@ -668,7 +711,7 @@ 'i' )); } - function ze(e, t, n, r, o, i, a) { + function Ye(e, t, n, r, o, i, a) { var s; return ( e < 100 && e >= 0 @@ -678,7 +721,7 @@ s ); } - function Ne(e) { + function We(e) { var t; if (e < 100 && e >= 0) { var n = Array.prototype.slice.call(arguments); @@ -688,49 +731,49 @@ } else t = new Date(Date.UTC.apply(null, arguments)); return t; } - function je(e, t, n) { + function Ve(e, t, n) { var r = 7 + t - n; - return (-(7 + Ne(e, 0, r).getUTCDay() - t) % 7) + r - 1; + return (-(7 + We(e, 0, r).getUTCDay() - t) % 7) + r - 1; } - function Re(e, t, n, r, o) { + function Ue(e, t, n, r, o) { var i, a, - s = 1 + 7 * (t - 1) + ((7 + n - r) % 7) + je(e, r, o); + s = 1 + 7 * (t - 1) + ((7 + n - r) % 7) + Ve(e, r, o); return ( s <= 0 - ? (a = be((i = e - 1)) + s) - : s > be(e) - ? ((i = e + 1), (a = s - be(e))) + ? (a = Oe((i = e - 1)) + s) + : s > Oe(e) + ? ((i = e + 1), (a = s - Oe(e))) : ((i = e), (a = s)), { year: i, dayOfYear: a } ); } - function Ie(e, t, n) { + function Xe(e, t, n) { var r, o, - i = je(e.year(), t, n), + i = Ve(e.year(), t, n), a = Math.floor((e.dayOfYear() - i - 1) / 7) + 1; return ( a < 1 - ? (r = a + Fe((o = e.year() - 1), t, n)) - : a > Fe(e.year(), t, n) - ? ((r = a - Fe(e.year(), t, n)), (o = e.year() + 1)) + ? (r = a + Ge((o = e.year() - 1), t, n)) + : a > Ge(e.year(), t, n) + ? ((r = a - Ge(e.year(), t, n)), (o = e.year() + 1)) : ((o = e.year()), (r = a)), { week: r, year: o } ); } - function Fe(e, t, n) { - var r = je(e, t, n), - o = je(e + 1, t, n); - return (be(e) - r + o) / 7; + function Ge(e, t, n) { + var r = Ve(e, t, n), + o = Ve(e + 1, t, n); + return (Oe(e) - r + o) / 7; } - function qe(e, t) { + function Ke(e, t) { return e.slice(t, 7).concat(e.slice(0, t)); } W('w', ['ww', 2], 'wo', 'week'), W('W', ['WW', 2], 'Wo', 'isoWeek'), - z('week', 'w'), - z('isoWeek', 'W'), + j('week', 'w'), + j('isoWeek', 'W'), I('week', 5), I('isoWeek', 5), le('w', J), @@ -752,9 +795,9 @@ }), W('e', 0, 0, 'weekday'), W('E', 0, 0, 'isoWeekday'), - z('day', 'd'), - z('weekday', 'e'), - z('isoWeekday', 'E'), + j('day', 'd'), + j('weekday', 'e'), + j('isoWeekday', 'E'), I('day', 11), I('weekday', 11), I('isoWeekday', 11), @@ -777,12 +820,12 @@ ge(['d', 'e', 'E'], function(e, t, n, r) { t[r] = M(e); }); - var Be = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + var $e = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( '_' ), - He = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - Ye = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'); - function We(e, t, n) { + Qe = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + Je = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'); + function Ze(e, t, n) { var r, o, i, @@ -811,38 +854,44 @@ ).toLocaleLowerCase()); return n ? 'dddd' === t - ? -1 !== (o = ve.call(this._weekdaysParse, a)) + ? -1 !== (o = Ae.call(this._weekdaysParse, a)) ? o : null : 'ddd' === t - ? -1 !== (o = ve.call(this._shortWeekdaysParse, a)) + ? -1 !== (o = Ae.call(this._shortWeekdaysParse, a)) ? o : null - : -1 !== (o = ve.call(this._minWeekdaysParse, a)) + : -1 !== (o = Ae.call(this._minWeekdaysParse, a)) ? o : null : 'dddd' === t - ? -1 !== (o = ve.call(this._weekdaysParse, a)) || - -1 !== (o = ve.call(this._shortWeekdaysParse, a)) || - -1 !== (o = ve.call(this._minWeekdaysParse, a)) + ? -1 !== (o = Ae.call(this._weekdaysParse, a)) + ? o + : -1 !== (o = Ae.call(this._shortWeekdaysParse, a)) + ? o + : -1 !== (o = Ae.call(this._minWeekdaysParse, a)) ? o : null : 'ddd' === t - ? -1 !== (o = ve.call(this._shortWeekdaysParse, a)) || - -1 !== (o = ve.call(this._weekdaysParse, a)) || - -1 !== (o = ve.call(this._minWeekdaysParse, a)) + ? -1 !== (o = Ae.call(this._shortWeekdaysParse, a)) + ? o + : -1 !== (o = Ae.call(this._weekdaysParse, a)) + ? o + : -1 !== (o = Ae.call(this._minWeekdaysParse, a)) ? o : null - : -1 !== (o = ve.call(this._minWeekdaysParse, a)) || - -1 !== (o = ve.call(this._weekdaysParse, a)) || - -1 !== (o = ve.call(this._shortWeekdaysParse, a)) + : -1 !== (o = Ae.call(this._minWeekdaysParse, a)) + ? o + : -1 !== (o = Ae.call(this._weekdaysParse, a)) + ? o + : -1 !== (o = Ae.call(this._shortWeekdaysParse, a)) ? o : null; } - var Ve = ce, - Ue = ce, - Xe = ce; - function Ge() { + var et = ce, + tt = ce, + nt = ce; + function rt() { function e(e, t) { return t.length - e.length; } @@ -884,10 +933,10 @@ 'i' )); } - function Ke() { + function ot() { return this.hours() % 12 || 12; } - function $e(e, t) { + function it(e, t) { W(e, 0, 0, function() { return this.localeData().meridiem( this.hours(), @@ -896,21 +945,21 @@ ); }); } - function Qe(e, t) { + function at(e, t) { return t._meridiemParse; } W('H', ['HH', 2], 0, 'hour'), - W('h', ['hh', 2], 0, Ke), + W('h', ['hh', 2], 0, ot), W('k', ['kk', 2], 0, function() { return this.hours() || 24; }), W('hmm', 0, 0, function() { - return '' + Ke.apply(this) + F(this.minutes(), 2); + return '' + ot.apply(this) + F(this.minutes(), 2); }), W('hmmss', 0, 0, function() { return ( '' + - Ke.apply(this) + + ot.apply(this) + F(this.minutes(), 2) + F(this.seconds(), 2) ); @@ -923,12 +972,12 @@ '' + this.hours() + F(this.minutes(), 2) + F(this.seconds(), 2) ); }), - $e('a', !0), - $e('A', !1), - z('hour', 'h'), + it('a', !0), + it('A', !1), + j('hour', 'h'), I('hour', 13), - le('a', Qe), - le('A', Qe), + le('a', at), + le('A', at), le('H', J), le('h', J), le('k', J), @@ -939,45 +988,45 @@ le('hmmss', ee), le('Hmm', Z), le('Hmmss', ee), - he(['H', 'HH'], 3), + he(['H', 'HH'], _e), he(['k', 'kk'], function(e, t, n) { var r = M(e); - t[3] = 24 === r ? 0 : r; + t[_e] = 24 === r ? 0 : r; }), he(['a', 'A'], function(e, t, n) { (n._isPm = n._locale.isPM(e)), (n._meridiem = e); }), he(['h', 'hh'], function(e, t, n) { - (t[3] = M(e)), (h(n).bigHour = !0); + (t[_e] = M(e)), (h(n).bigHour = !0); }), he('hmm', function(e, t, n) { var r = e.length - 2; - (t[3] = M(e.substr(0, r))), - (t[4] = M(e.substr(r))), + (t[_e] = M(e.substr(0, r))), + (t[we] = M(e.substr(r))), (h(n).bigHour = !0); }), he('hmmss', function(e, t, n) { var r = e.length - 4, o = e.length - 2; - (t[3] = M(e.substr(0, r))), - (t[4] = M(e.substr(r, 2))), - (t[5] = M(e.substr(o))), + (t[_e] = M(e.substr(0, r))), + (t[we] = M(e.substr(r, 2))), + (t[xe] = M(e.substr(o))), (h(n).bigHour = !0); }), he('Hmm', function(e, t, n) { var r = e.length - 2; - (t[3] = M(e.substr(0, r))), (t[4] = M(e.substr(r))); + (t[_e] = M(e.substr(0, r))), (t[we] = M(e.substr(r))); }), he('Hmmss', function(e, t, n) { var r = e.length - 4, o = e.length - 2; - (t[3] = M(e.substr(0, r))), - (t[4] = M(e.substr(r, 2))), - (t[5] = M(e.substr(o))); + (t[_e] = M(e.substr(0, r))), + (t[we] = M(e.substr(r, 2))), + (t[xe] = M(e.substr(o))); }); - var Je, - Ze = xe('Hours', !0), - et = { + var st, + ct = Ce('Hours', !0), + ut = { calendar: { sameDay: '[Today at] LT', nextDay: '[Tomorrow at] LT', @@ -1013,134 +1062,135 @@ y: 'a year', yy: '%d years' }, - months: Ae, - monthsShort: Oe, + months: ze, + monthsShort: Ne, week: { dow: 0, doy: 6 }, - weekdays: Be, - weekdaysMin: Ye, - weekdaysShort: He, + weekdays: $e, + weekdaysMin: Je, + weekdaysShort: Qe, meridiemParse: /[ap]\.?m?\.?/i }, - tt = {}, - nt = {}; - function rt(e) { + lt = {}, + ft = {}; + function dt(e) { return e ? e.toLowerCase().replace('_', '-') : e; } - function ot(t) { + function pt(t) { var r = null; - if (!tt[t] && void 0 !== e && e && e.exports) + if (!lt[t] && void 0 !== e && e && e.exports) try { - (r = Je._abbr), n(700)('./' + t), it(r); + (r = st._abbr), n(744)('./' + t), ht(r); } catch (e) {} - return tt[t]; + return lt[t]; } - function it(e, t) { + function ht(e, t) { var n; return ( e && - ((n = s(t) ? st(e) : at(e, t)) - ? (Je = n) + ((n = s(t) ? mt(e) : gt(e, t)) + ? (st = n) : 'undefined' != typeof console && console.warn && console.warn( 'Locale ' + e + ' not found. Did you forget to load it?' )), - Je._abbr + st._abbr ); } - function at(e, t) { + function gt(e, t) { if (null !== t) { var n, - r = et; - if (((t.abbr = e), null != tt[e])) + r = ut; + if (((t.abbr = e), null != lt[e])) T( 'defineLocaleOverride', 'use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.' ), - (r = tt[e]._config); + (r = lt[e]._config); else if (null != t.parentLocale) - if (null != tt[t.parentLocale]) r = tt[t.parentLocale]._config; + if (null != lt[t.parentLocale]) r = lt[t.parentLocale]._config; else { - if (null == (n = ot(t.parentLocale))) + if (null == (n = pt(t.parentLocale))) return ( - nt[t.parentLocale] || (nt[t.parentLocale] = []), - nt[t.parentLocale].push({ name: e, config: t }), + ft[t.parentLocale] || (ft[t.parentLocale] = []), + ft[t.parentLocale].push({ name: e, config: t }), null ); r = n._config; } return ( - (tt[e] = new P(L(r, t))), - nt[e] && - nt[e].forEach(function(e) { - at(e.name, e.config); + (lt[e] = new P(L(r, t))), + ft[e] && + ft[e].forEach(function(e) { + gt(e.name, e.config); }), - it(e), - tt[e] + ht(e), + lt[e] ); } - return delete tt[e], null; + return delete lt[e], null; } - function st(e) { + function mt(e) { var t; if ( (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e) ) - return Je; + return st; if (!i(e)) { - if ((t = ot(e))) return t; + if ((t = pt(e))) return t; e = [e]; } return (function(e) { for (var t, n, r, o, i = 0; i < e.length; ) { for ( - t = (o = rt(e[i]).split('-')).length, - n = (n = rt(e[i + 1])) ? n.split('-') : null; + t = (o = dt(e[i]).split('-')).length, + n = (n = dt(e[i + 1])) ? n.split('-') : null; t > 0; ) { - if ((r = ot(o.slice(0, t).join('-')))) return r; + if ((r = pt(o.slice(0, t).join('-')))) return r; if (n && n.length >= t && k(o, n, !0) >= t - 1) break; t--; } i++; } - return Je; + return st; })(e); } - function ct(e) { + function bt(e) { var t, n = e._a; return ( n && -2 === h(e).overflow && ((t = - n[1] < 0 || n[1] > 11 - ? 1 - : n[2] < 1 || n[2] > ke(n[0], n[1]) - ? 2 - : n[3] < 0 || - n[3] > 24 || - (24 === n[3] && (0 !== n[4] || 0 !== n[5] || 0 !== n[6])) - ? 3 - : n[4] < 0 || n[4] > 59 - ? 4 - : n[5] < 0 || n[5] > 59 - ? 5 - : n[6] < 0 || n[6] > 999 - ? 6 + n[ye] < 0 || n[ye] > 11 + ? ye + : n[ve] < 1 || n[ve] > De(n[be], n[ye]) + ? ve + : n[_e] < 0 || + n[_e] > 24 || + (24 === n[_e] && + (0 !== n[we] || 0 !== n[xe] || 0 !== n[Me])) + ? _e + : n[we] < 0 || n[we] > 59 + ? we + : n[xe] < 0 || n[xe] > 59 + ? xe + : n[Me] < 0 || n[Me] > 999 + ? Me : -1), - h(e)._overflowDayOfYear && (t < 0 || t > 2) && (t = 2), - h(e)._overflowWeeks && -1 === t && (t = 7), - h(e)._overflowWeekday && -1 === t && (t = 8), + h(e)._overflowDayOfYear && (t < be || t > ve) && (t = ve), + h(e)._overflowWeeks && -1 === t && (t = ke), + h(e)._overflowWeekday && -1 === t && (t = Se), (h(e).overflow = t)), e ); } - function ut(e, t, n) { + function yt(e, t, n) { return null != e ? e : null != t ? t : n; } - function lt(e) { + function vt(e) { var t, n, r, @@ -1156,42 +1206,42 @@ : [t.getFullYear(), t.getMonth(), t.getDate()]; })(e), e._w && - null == e._a[2] && - null == e._a[1] && + null == e._a[ve] && + null == e._a[ye] && (function(e) { var t, n, r, o, i, a, s, c; if (null != (t = e._w).GG || null != t.W || null != t.E) (i = 1), (a = 4), - (n = ut(t.GG, e._a[0], Ie(St(), 1, 4).year)), - (r = ut(t.W, 1)), - ((o = ut(t.E, 1)) < 1 || o > 7) && (c = !0); + (n = yt(t.GG, e._a[be], Xe(jt(), 1, 4).year)), + (r = yt(t.W, 1)), + ((o = yt(t.E, 1)) < 1 || o > 7) && (c = !0); else { (i = e._locale._week.dow), (a = e._locale._week.doy); - var u = Ie(St(), i, a); - (n = ut(t.gg, e._a[0], u.year)), - (r = ut(t.w, u.week)), + var u = Xe(jt(), i, a); + (n = yt(t.gg, e._a[be], u.year)), + (r = yt(t.w, u.week)), null != t.d ? ((o = t.d) < 0 || o > 6) && (c = !0) : null != t.e ? ((o = t.e + i), (t.e < 0 || t.e > 6) && (c = !0)) : (o = i); } - r < 1 || r > Fe(n, i, a) + r < 1 || r > Ge(n, i, a) ? (h(e)._overflowWeeks = !0) : null != c ? (h(e)._overflowWeekday = !0) - : ((s = Re(n, r, o, i, a)), - (e._a[0] = s.year), + : ((s = Ue(n, r, o, i, a)), + (e._a[be] = s.year), (e._dayOfYear = s.dayOfYear)); })(e), null != e._dayOfYear && - ((a = ut(e._a[0], r[0])), - (e._dayOfYear > be(a) || 0 === e._dayOfYear) && + ((a = yt(e._a[be], r[be])), + (e._dayOfYear > Oe(a) || 0 === e._dayOfYear) && (h(e)._overflowDayOfYear = !0), - (n = Ne(a, 0, e._dayOfYear)), - (e._a[1] = n.getUTCMonth()), - (e._a[2] = n.getUTCDate())), + (n = We(a, 0, e._dayOfYear)), + (e._a[ye] = n.getUTCMonth()), + (e._a[ve] = n.getUTCDate())), t = 0; t < 3 && null == e._a[t]; ++t @@ -1199,26 +1249,26 @@ e._a[t] = s[t] = r[t]; for (; t < 7; t++) e._a[t] = s[t] = null == e._a[t] ? (2 === t ? 1 : 0) : e._a[t]; - 24 === e._a[3] && - 0 === e._a[4] && - 0 === e._a[5] && - 0 === e._a[6] && - ((e._nextDay = !0), (e._a[3] = 0)), - (e._d = (e._useUTC ? Ne : ze).apply(null, s)), + 24 === e._a[_e] && + 0 === e._a[we] && + 0 === e._a[xe] && + 0 === e._a[Me] && + ((e._nextDay = !0), (e._a[_e] = 0)), + (e._d = (e._useUTC ? We : Ye).apply(null, s)), (i = e._useUTC ? e._d.getUTCDay() : e._d.getDay()), null != e._tzm && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), - e._nextDay && (e._a[3] = 24), + e._nextDay && (e._a[_e] = 24), e._w && void 0 !== e._w.d && e._w.d !== i && (h(e).weekdayMismatch = !0); } } - var ft = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/, - dt = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/, - pt = /Z|[+-]\d\d(?::?\d\d)?/, - ht = [ + var _t = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/, + wt = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/, + xt = /Z|[+-]\d\d(?::?\d\d)?/, + Mt = [ ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/], ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/], ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/], @@ -1231,7 +1281,7 @@ ['GGGG[W]WW', /\d{4}W\d{2}/, !1], ['YYYYDDD', /\d{7}/] ], - gt = [ + kt = [ ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/], ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/], ['HH:mm:ss', /\d\d:\d\d:\d\d/], @@ -1242,8 +1292,8 @@ ['HHmm', /\d\d\d\d/], ['HH', /\d\d/] ], - mt = /^\/?Date\((\-?\d+)/i; - function bt(e) { + St = /^\/?Date\((\-?\d+)/i; + function Ot(e) { var t, n, r, @@ -1251,36 +1301,36 @@ i, a, s = e._i, - c = ft.exec(s) || dt.exec(s); + c = _t.exec(s) || wt.exec(s); if (c) { - for (h(e).iso = !0, t = 0, n = ht.length; t < n; t++) - if (ht[t][1].exec(c[1])) { - (o = ht[t][0]), (r = !1 !== ht[t][2]); + for (h(e).iso = !0, t = 0, n = Mt.length; t < n; t++) + if (Mt[t][1].exec(c[1])) { + (o = Mt[t][0]), (r = !1 !== Mt[t][2]); break; } if (null == o) return void (e._isValid = !1); if (c[3]) { - for (t = 0, n = gt.length; t < n; t++) - if (gt[t][1].exec(c[3])) { - i = (c[2] || ' ') + gt[t][0]; + for (t = 0, n = kt.length; t < n; t++) + if (kt[t][1].exec(c[3])) { + i = (c[2] || ' ') + kt[t][0]; break; } if (null == i) return void (e._isValid = !1); } if (!r && null != i) return void (e._isValid = !1); if (c[4]) { - if (!pt.exec(c[4])) return void (e._isValid = !1); + if (!xt.exec(c[4])) return void (e._isValid = !1); a = 'Z'; } - (e._f = o + (i || '') + (a || '')), wt(e); + (e._f = o + (i || '') + (a || '')), Lt(e); } else e._isValid = !1; } - var yt = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/; - function vt(e) { + var Et = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/; + function At(e) { var t = parseInt(e, 10); return t <= 49 ? 2e3 + t : t <= 999 ? 1900 + t : t; } - var _t = { + var Tt = { UT: 0, GMT: 0, EDT: -240, @@ -1292,7 +1342,7 @@ PDT: -420, PST: -480 }; - function xt(e) { + function Ct(e) { var t, n, r, @@ -1300,7 +1350,7 @@ i, a, s, - c = yt.exec( + c = Et.exec( e._i .replace(/\([^)]*\)|[\n\t]/g, ' ') .replace(/(\s\s+)/g, ' ') @@ -1316,8 +1366,8 @@ (i = c[6]), (a = c[7]), (s = [ - vt(t), - Oe.indexOf(n), + At(t), + Ne.indexOf(n), parseInt(r, 10), parseInt(o, 10), parseInt(i, 10) @@ -1328,7 +1378,7 @@ !(function(e, t, n) { return ( !e || - He.indexOf(e) === new Date(t[0], t[1], t[2]).getDay() || + Qe.indexOf(e) === new Date(t[0], t[1], t[2]).getDay() || ((h(n).weekdayMismatch = !0), (n._isValid = !1), !1) ); })(c[1], u, e) @@ -1336,18 +1386,18 @@ return; (e._a = u), (e._tzm = (function(e, t, n) { - if (e) return _t[e]; + if (e) return Tt[e]; if (t) return 0; var r = parseInt(n, 10), o = r % 100; return ((r - o) / 100) * 60 + o; })(c[8], c[9], c[10])), - (e._d = Ne.apply(null, e._a)), + (e._d = We.apply(null, e._a)), e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), (h(e).rfc2822 = !0); } else e._isValid = !1; } - function wt(e) { + function Lt(e) { if (e._f !== o.ISO_8601) if (e._f !== o.RFC_2822) { (e._a = []), (h(e).empty = !0); @@ -1376,13 +1426,13 @@ : e._strict && !n && h(e).unusedTokens.push(i); (h(e).charsLeftOver = c - u), s.length > 0 && h(e).unusedInput.push(s), - e._a[3] <= 12 && + e._a[_e] <= 12 && !0 === h(e).bigHour && - e._a[3] > 0 && + e._a[_e] > 0 && (h(e).bigHour = void 0), (h(e).parsedDateParts = e._a.slice(0)), (h(e).meridiem = e._meridiem), - (e._a[3] = (function(e, t, n) { + (e._a[_e] = (function(e, t, n) { var r; return null == n ? t @@ -1393,22 +1443,22 @@ r || 12 !== t || (t = 0), t) : t; - })(e._locale, e._a[3], e._meridiem)), - lt(e), - ct(e); - } else xt(e); - else bt(e); + })(e._locale, e._a[_e], e._meridiem)), + vt(e), + bt(e); + } else Ct(e); + else Ot(e); } - function Mt(e) { + function Pt(e) { var t = e._i, n = e._f; return ( - (e._locale = e._locale || st(e._l)), + (e._locale = e._locale || mt(e._l)), null === t || (void 0 === n && '' === t) ? m({ nullInput: !0 }) : ('string' == typeof t && (e._i = t = e._locale.preparse(t)), - x(t) - ? new _(ct(t)) + w(t) + ? new _(bt(t)) : (u(t) ? (e._d = t) : i(n) @@ -1424,7 +1474,7 @@ (t = y({}, e)), null != e._useUTC && (t._useUTC = e._useUTC), (t._f = e._f[o]), - wt(t), + Lt(t), g(t) && ((i += h(t).charsLeftOver), (i += 10 * h(t).unusedTokens.length), @@ -1433,7 +1483,7 @@ d(e, n || t); })(e) : n - ? wt(e) + ? Lt(e) : (function(e) { var t = e._i; s(t) @@ -1442,12 +1492,12 @@ ? (e._d = new Date(t.valueOf())) : 'string' == typeof t ? (function(e) { - var t = mt.exec(e._i); + var t = St.exec(e._i); null === t - ? (bt(e), + ? (Ot(e), !1 === e._isValid && (delete e._isValid, - xt(e), + Ct(e), !1 === e._isValid && (delete e._isValid, o.createFromInputFallback(e)))) @@ -1457,11 +1507,11 @@ ? ((e._a = l(t.slice(0), function(e) { return parseInt(e, 10); })), - lt(e)) + vt(e)) : a(t) ? (function(e) { if (!e._d) { - var t = j(e._i); + var t = N(e._i); (e._a = l( [ t.year, @@ -1476,7 +1526,7 @@ return e && parseInt(e, 10); } )), - lt(e); + vt(e); } })(e) : c(t) @@ -1487,7 +1537,7 @@ e)) ); } - function kt(e, t, n, r, o) { + function Dt(e, t, n, r, o) { var s, c = {}; return ( @@ -1508,15 +1558,15 @@ (c._i = e), (c._f = t), (c._strict = r), - (s = new _(ct(Mt(c))))._nextDay && + (s = new _(bt(Pt(c))))._nextDay && (s.add(1, 'd'), (s._nextDay = void 0)), s ); } - function St(e, t, n, r) { - return kt(e, t, n, r, !1); + function jt(e, t, n, r) { + return Dt(e, t, n, r, !1); } - (o.createFromInputFallback = A( + (o.createFromInputFallback = O( 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.', function(e) { e._d = new Date(e._i + (e._useUTC ? ' UTC' : '')); @@ -1524,10 +1574,10 @@ )), (o.ISO_8601 = function() {}), (o.RFC_2822 = function() {}); - var At = A( + var zt = O( 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/', function() { - var e = St.apply(null, arguments); + var e = jt.apply(null, arguments); return this.isValid() && e.isValid() ? e < this ? this @@ -1535,10 +1585,10 @@ : m(); } ), - Ot = A( + Nt = O( 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/', function() { - var e = St.apply(null, arguments); + var e = jt.apply(null, arguments); return this.isValid() && e.isValid() ? e > this ? this @@ -1546,15 +1596,15 @@ : m(); } ); - function Et(e, t) { + function Rt(e, t) { var n, r; if ((1 === t.length && i(t[0]) && (t = t[0]), !t.length)) - return St(); + return jt(); for (n = t[0], r = 1; r < t.length; ++r) (t[r].isValid() && !t[r][e](n)) || (n = t[r]); return n; } - var Tt = [ + var It = [ 'year', 'quarter', 'month', @@ -1565,8 +1615,8 @@ 'second', 'millisecond' ]; - function Ct(e) { - var t = j(e), + function Ft(e) { + var t = N(e), n = t.year || 0, r = t.quarter || 0, o = t.month || 0, @@ -1578,12 +1628,12 @@ l = t.millisecond || 0; (this._isValid = (function(e) { for (var t in e) - if (-1 === ve.call(Tt, t) || (null != e[t] && isNaN(e[t]))) + if (-1 === Ae.call(It, t) || (null != e[t] && isNaN(e[t]))) return !1; - for (var n = !1, r = 0; r < Tt.length; ++r) - if (e[Tt[r]]) { + for (var n = !1, r = 0; r < It.length; ++r) + if (e[It[r]]) { if (n) return !1; - parseFloat(e[Tt[r]]) !== M(e[Tt[r]]) && (n = !0); + parseFloat(e[It[r]]) !== M(e[It[r]]) && (n = !0); } return !0; })(t)), @@ -1591,16 +1641,16 @@ (this._days = +a + 7 * i), (this._months = +o + 3 * r + 12 * n), (this._data = {}), - (this._locale = st()), + (this._locale = mt()), this._bubble(); } - function Lt(e) { - return e instanceof Ct; + function qt(e) { + return e instanceof Ft; } - function Pt(e) { + function Bt(e) { return e < 0 ? -1 * Math.round(-1 * e) : Math.round(e); } - function Dt(e, t) { + function Ht(e, t) { W(e, 0, 0, function() { var e = this.utcOffset(), n = '+'; @@ -1610,42 +1660,42 @@ ); }); } - Dt('Z', ':'), - Dt('ZZ', ''), + Ht('Z', ':'), + Ht('ZZ', ''), le('Z', se), le('ZZ', se), he(['Z', 'ZZ'], function(e, t, n) { - (n._useUTC = !0), (n._tzm = Nt(se, e)); + (n._useUTC = !0), (n._tzm = Wt(se, e)); }); - var zt = /([\+\-]|\d\d)/gi; - function Nt(e, t) { + var Yt = /([\+\-]|\d\d)/gi; + function Wt(e, t) { var n = (t || '').match(e); if (null === n) return null; - var r = ((n[n.length - 1] || []) + '').match(zt) || ['-', 0, 0], + var r = ((n[n.length - 1] || []) + '').match(Yt) || ['-', 0, 0], o = 60 * r[1] + M(r[2]); return 0 === o ? 0 : '+' === r[0] ? o : -o; } - function jt(e, t) { + function Vt(e, t) { var n, r; return t._isUTC ? ((n = t.clone()), (r = - (x(e) || u(e) ? e.valueOf() : St(e).valueOf()) - n.valueOf()), + (w(e) || u(e) ? e.valueOf() : jt(e).valueOf()) - n.valueOf()), n._d.setTime(n._d.valueOf() + r), o.updateOffset(n, !1), n) - : St(e).local(); + : jt(e).local(); } - function Rt(e) { + function Ut(e) { return 15 * -Math.round(e._d.getTimezoneOffset() / 15); } - function It() { + function Xt() { return !!this.isValid() && this._isUTC && 0 === this._offset; } o.updateOffset = function() {}; - var Ft = /^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/, - qt = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/; - function Bt(e, t) { + var Gt = /^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/, + Kt = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/; + function $t(e, t) { var n, r, o, @@ -1655,58 +1705,58 @@ u = e, l = null; return ( - Lt(e) + qt(e) ? (u = { ms: e._milliseconds, d: e._days, M: e._months }) : c(e) ? ((u = {}), t ? (u[t] = e) : (u.milliseconds = e)) - : (l = Ft.exec(e)) + : (l = Gt.exec(e)) ? ((n = '-' === l[1] ? -1 : 1), (u = { y: 0, - d: M(l[2]) * n, - h: M(l[3]) * n, - m: M(l[4]) * n, - s: M(l[5]) * n, - ms: M(Pt(1e3 * l[6])) * n + d: M(l[ve]) * n, + h: M(l[_e]) * n, + m: M(l[we]) * n, + s: M(l[xe]) * n, + ms: M(Bt(1e3 * l[Me])) * n })) - : (l = qt.exec(e)) + : (l = Kt.exec(e)) ? ((n = '-' === l[1] ? -1 : 1), (u = { - y: Ht(l[2], n), - M: Ht(l[3], n), - w: Ht(l[4], n), - d: Ht(l[5], n), - h: Ht(l[6], n), - m: Ht(l[7], n), - s: Ht(l[8], n) + y: Qt(l[2], n), + M: Qt(l[3], n), + w: Qt(l[4], n), + d: Qt(l[5], n), + h: Qt(l[6], n), + m: Qt(l[7], n), + s: Qt(l[8], n) })) : null == u ? (u = {}) : 'object' == typeof u && ('from' in u || 'to' in u) && - ((i = St(u.from)), - (a = St(u.to)), + ((i = jt(u.from)), + (a = jt(u.to)), (o = i.isValid() && a.isValid() - ? ((a = jt(a, i)), + ? ((a = Vt(a, i)), i.isBefore(a) - ? (s = Yt(i, a)) - : (((s = Yt(a, i)).milliseconds = -s.milliseconds), + ? (s = Jt(i, a)) + : (((s = Jt(a, i)).milliseconds = -s.milliseconds), (s.months = -s.months)), s) : { milliseconds: 0, months: 0 }), ((u = {}).ms = o.milliseconds), (u.M = o.months)), - (r = new Ct(u)), - Lt(e) && f(e, '_locale') && (r._locale = e._locale), + (r = new Ft(u)), + qt(e) && f(e, '_locale') && (r._locale = e._locale), r ); } - function Ht(e, t) { + function Qt(e, t) { var n = e && parseFloat(e.replace(',', '.')); return (isNaN(n) ? 0 : n) * t; } - function Yt(e, t) { + function Jt(e, t) { var n = {}; return ( (n.months = t.month() - e.month() + 12 * (t.year() - e.year())), @@ -1718,7 +1768,7 @@ n ); } - function Wt(e, t) { + function Zt(e, t) { return function(n, r) { var o; return ( @@ -1735,29 +1785,29 @@ (o = n), (n = r), (r = o)), - Vt(this, Bt((n = 'string' == typeof n ? +n : n), r), e), + en(this, $t((n = 'string' == typeof n ? +n : n), r), e), this ); }; } - function Vt(e, t, n, r) { + function en(e, t, n, r) { var i = t._milliseconds, - a = Pt(t._days), - s = Pt(t._months); + a = Bt(t._days), + s = Bt(t._months); e.isValid() && ((r = null == r || r), - s && Te(e, we(e, 'Month') + s * n), - a && Me(e, 'Date', we(e, 'Date') + a * n), + s && Ie(e, Le(e, 'Month') + s * n), + a && Pe(e, 'Date', Le(e, 'Date') + a * n), i && e._d.setTime(e._d.valueOf() + i * n), r && o.updateOffset(e, a || s)); } - (Bt.fn = Ct.prototype), - (Bt.invalid = function() { - return Bt(NaN); + ($t.fn = Ft.prototype), + ($t.invalid = function() { + return $t(NaN); }); - var Ut = Wt(1, 'add'), - Xt = Wt(-1, 'subtract'); - function Gt(e, t) { + var tn = Zt(1, 'add'), + nn = Zt(-1, 'subtract'); + function rn(e, t) { var n = 12 * (t.year() - e.year()) + (t.month() - e.month()), r = e.clone().add(n, 'months'); return ( @@ -1769,49 +1819,53 @@ ) || 0 ); } - function Kt(e) { + function on(e) { var t; return void 0 === e ? this._locale._abbr - : (null != (t = st(e)) && (this._locale = t), this); + : (null != (t = mt(e)) && (this._locale = t), this); } (o.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ'), (o.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]'); - var $t = A( + var an = O( 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.', function(e) { return void 0 === e ? this.localeData() : this.locale(e); } ); - function Qt() { + function sn() { return this._locale; } - function Jt(e, t) { + var cn = 1e3, + un = 60 * cn, + ln = 60 * un, + fn = 3506328 * ln; + function dn(e, t) { return ((e % t) + t) % t; } - function Zt(e, t, n) { + function pn(e, t, n) { return e < 100 && e >= 0 - ? new Date(e + 400, t, n) - 126227808e5 + ? new Date(e + 400, t, n) - fn : new Date(e, t, n).valueOf(); } - function en(e, t, n) { + function hn(e, t, n) { return e < 100 && e >= 0 - ? Date.UTC(e + 400, t, n) - 126227808e5 + ? Date.UTC(e + 400, t, n) - fn : Date.UTC(e, t, n); } - function tn(e, t) { + function gn(e, t) { W(0, [e, e.length], 0, t); } - function nn(e, t, n, r, o) { + function mn(e, t, n, r, o) { var i; return null == e - ? Ie(this, r, o).year - : (t > (i = Fe(e, r, o)) && (t = i), - rn.call(this, e, t, n, r, o)); + ? Xe(this, r, o).year + : (t > (i = Ge(e, r, o)) && (t = i), + bn.call(this, e, t, n, r, o)); } - function rn(e, t, n, r, o) { - var i = Re(e, t, n, r, o), - a = Ne(i.year, 0, i.dayOfYear); + function bn(e, t, n, r, o) { + var i = Ue(e, t, n, r, o), + a = We(i.year, 0, i.dayOfYear); return ( this.year(a.getUTCFullYear()), this.month(a.getUTCMonth()), @@ -1825,12 +1879,12 @@ W(0, ['GG', 2], 0, function() { return this.isoWeekYear() % 100; }), - tn('gggg', 'weekYear'), - tn('ggggg', 'weekYear'), - tn('GGGG', 'isoWeekYear'), - tn('GGGGG', 'isoWeekYear'), - z('weekYear', 'gg'), - z('isoWeekYear', 'GG'), + gn('gggg', 'weekYear'), + gn('ggggg', 'weekYear'), + gn('GGGG', 'isoWeekYear'), + gn('GGGGG', 'isoWeekYear'), + j('weekYear', 'gg'), + j('isoWeekYear', 'GG'), I('weekYear', 1), I('isoWeekYear', 1), le('G', ie), @@ -1848,14 +1902,14 @@ t[r] = o.parseTwoDigitYear(e); }), W('Q', 0, 'Qo', 'quarter'), - z('quarter', 'Q'), + j('quarter', 'Q'), I('quarter', 7), le('Q', X), he('Q', function(e, t) { - t[1] = 3 * (M(e) - 1); + t[ye] = 3 * (M(e) - 1); }), W('D', ['DD', 2], 'Do', 'date'), - z('date', 'D'), + j('date', 'D'), I('date', 9), le('D', J), le('DD', J, G), @@ -1864,13 +1918,13 @@ ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient; }), - he(['D', 'DD'], 2), + he(['D', 'DD'], ve), he('Do', function(e, t) { - t[2] = M(e.match(J)[0]); + t[ve] = M(e.match(J)[0]); }); - var on = xe('Date', !0); + var yn = Ce('Date', !0); W('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear'), - z('dayOfYear', 'DDD'), + j('dayOfYear', 'DDD'), I('dayOfYear', 4), le('DDD', te), le('DDDD', K), @@ -1878,20 +1932,20 @@ n._dayOfYear = M(e); }), W('m', ['mm', 2], 0, 'minute'), - z('minute', 'm'), + j('minute', 'm'), I('minute', 14), le('m', J), le('mm', J, G), - he(['m', 'mm'], 4); - var an = xe('Minutes', !1); + he(['m', 'mm'], we); + var vn = Ce('Minutes', !1); W('s', ['ss', 2], 0, 'second'), - z('second', 's'), + j('second', 's'), I('second', 15), le('s', J), le('ss', J, G), - he(['s', 'ss'], 5); - var sn, - cn = xe('Seconds', !1); + he(['s', 'ss'], xe); + var _n, + wn = Ce('Seconds', !1); for ( W('S', 0, 0, function() { return ~~(this.millisecond() / 100); @@ -1918,54 +1972,54 @@ W(0, ['SSSSSSSSS', 9], 0, function() { return 1e6 * this.millisecond(); }), - z('millisecond', 'ms'), + j('millisecond', 'ms'), I('millisecond', 16), le('S', te, X), le('SS', te, G), le('SSS', te, K), - sn = 'SSSS'; - sn.length <= 9; - sn += 'S' + _n = 'SSSS'; + _n.length <= 9; + _n += 'S' ) - le(sn, oe); - function un(e, t) { - t[6] = M(1e3 * ('0.' + e)); + le(_n, oe); + function xn(e, t) { + t[Me] = M(1e3 * ('0.' + e)); } - for (sn = 'S'; sn.length <= 9; sn += 'S') he(sn, un); - var ln = xe('Milliseconds', !1); + for (_n = 'S'; _n.length <= 9; _n += 'S') he(_n, xn); + var Mn = Ce('Milliseconds', !1); W('z', 0, 0, 'zoneAbbr'), W('zz', 0, 0, 'zoneName'); - var fn = _.prototype; - function dn(e) { + var kn = _.prototype; + function Sn(e) { return e; } - (fn.add = Ut), - (fn.calendar = function(e, t) { - var n = e || St(), - r = jt(n, this).startOf('day'), + (kn.add = tn), + (kn.calendar = function(e, t) { + var n = e || jt(), + r = Vt(n, this).startOf('day'), i = o.calendarFormat(this, r) || 'sameElse', a = t && (C(t[i]) ? t[i].call(this, n) : t[i]); return this.format( - a || this.localeData().calendar(i, this, St(n)) + a || this.localeData().calendar(i, this, jt(n)) ); }), - (fn.clone = function() { + (kn.clone = function() { return new _(this); }), - (fn.diff = function(e, t, n) { + (kn.diff = function(e, t, n) { var r, o, i; if (!this.isValid()) return NaN; - if (!(r = jt(e, this)).isValid()) return NaN; + if (!(r = Vt(e, this)).isValid()) return NaN; switch ( - ((o = 6e4 * (r.utcOffset() - this.utcOffset())), (t = N(t))) + ((o = 6e4 * (r.utcOffset() - this.utcOffset())), (t = z(t))) ) { case 'year': - i = Gt(this, r) / 12; + i = rn(this, r) / 12; break; case 'month': - i = Gt(this, r); + i = rn(this, r); break; case 'quarter': - i = Gt(this, r) / 3; + i = rn(this, r) / 3; break; case 'second': i = (this - r) / 1e3; @@ -1985,17 +2039,17 @@ default: i = this - r; } - return n ? i : w(i); + return n ? i : x(i); }), - (fn.endOf = function(e) { + (kn.endOf = function(e) { var t; if ( - void 0 === (e = N(e)) || + void 0 === (e = z(e)) || 'millisecond' === e || !this.isValid() ) return this; - var n = this._isUTC ? en : Zt; + var n = this._isUTC ? hn : pn; switch (e) { case 'year': t = n(this.year() + 1, 0, 1) - 1; @@ -2031,56 +2085,56 @@ case 'hour': (t = this._d.valueOf()), (t += - 36e5 - - Jt(t + (this._isUTC ? 0 : 6e4 * this.utcOffset()), 36e5) - + ln - + dn(t + (this._isUTC ? 0 : this.utcOffset() * un), ln) - 1); break; case 'minute': - (t = this._d.valueOf()), (t += 6e4 - Jt(t, 6e4) - 1); + (t = this._d.valueOf()), (t += un - dn(t, un) - 1); break; case 'second': - (t = this._d.valueOf()), (t += 1e3 - Jt(t, 1e3) - 1); + (t = this._d.valueOf()), (t += cn - dn(t, cn) - 1); } return this._d.setTime(t), o.updateOffset(this, !0), this; }), - (fn.format = function(e) { + (kn.format = function(e) { e || (e = this.isUtc() ? o.defaultFormatUtc : o.defaultFormat); var t = V(this, e); return this.localeData().postformat(t); }), - (fn.from = function(e, t) { + (kn.from = function(e, t) { return this.isValid() && - ((x(e) && e.isValid()) || St(e).isValid()) - ? Bt({ to: this, from: e }) + ((w(e) && e.isValid()) || jt(e).isValid()) + ? $t({ to: this, from: e }) .locale(this.locale()) .humanize(!t) : this.localeData().invalidDate(); }), - (fn.fromNow = function(e) { - return this.from(St(), e); + (kn.fromNow = function(e) { + return this.from(jt(), e); }), - (fn.to = function(e, t) { + (kn.to = function(e, t) { return this.isValid() && - ((x(e) && e.isValid()) || St(e).isValid()) - ? Bt({ from: this, to: e }) + ((w(e) && e.isValid()) || jt(e).isValid()) + ? $t({ from: this, to: e }) .locale(this.locale()) .humanize(!t) : this.localeData().invalidDate(); }), - (fn.toNow = function(e) { - return this.to(St(), e); + (kn.toNow = function(e) { + return this.to(jt(), e); }), - (fn.get = function(e) { - return C(this[(e = N(e))]) ? this[e]() : this; + (kn.get = function(e) { + return C(this[(e = z(e))]) ? this[e]() : this; }), - (fn.invalidAt = function() { + (kn.invalidAt = function() { return h(this).overflow; }), - (fn.isAfter = function(e, t) { - var n = x(e) ? e : St(e); + (kn.isAfter = function(e, t) { + var n = w(e) ? e : jt(e); return ( !(!this.isValid() || !n.isValid()) && - ('millisecond' === (t = N(t) || 'millisecond') + ('millisecond' === (t = z(t) || 'millisecond') ? this.valueOf() > n.valueOf() : n.valueOf() < this.clone() @@ -2088,20 +2142,20 @@ .valueOf()) ); }), - (fn.isBefore = function(e, t) { - var n = x(e) ? e : St(e); + (kn.isBefore = function(e, t) { + var n = w(e) ? e : jt(e); return ( !(!this.isValid() || !n.isValid()) && - ('millisecond' === (t = N(t) || 'millisecond') + ('millisecond' === (t = z(t) || 'millisecond') ? this.valueOf() < n.valueOf() : this.clone() .endOf(t) .valueOf() < n.valueOf()) ); }), - (fn.isBetween = function(e, t, n, r) { - var o = x(e) ? e : St(e), - i = x(t) ? t : St(t); + (kn.isBetween = function(e, t, n, r) { + var o = w(e) ? e : jt(e), + i = w(t) ? t : jt(t); return ( !!(this.isValid() && o.isValid() && i.isValid()) && ('(' === (r = r || '()')[0] @@ -2110,12 +2164,12 @@ (')' === r[1] ? this.isBefore(i, n) : !this.isAfter(i, n)) ); }), - (fn.isSame = function(e, t) { + (kn.isSame = function(e, t) { var n, - r = x(e) ? e : St(e); + r = w(e) ? e : jt(e); return ( !(!this.isValid() || !r.isValid()) && - ('millisecond' === (t = N(t) || 'millisecond') + ('millisecond' === (t = z(t) || 'millisecond') ? this.valueOf() === r.valueOf() : ((n = r.valueOf()), this.clone() @@ -2127,24 +2181,24 @@ .valueOf())) ); }), - (fn.isSameOrAfter = function(e, t) { + (kn.isSameOrAfter = function(e, t) { return this.isSame(e, t) || this.isAfter(e, t); }), - (fn.isSameOrBefore = function(e, t) { + (kn.isSameOrBefore = function(e, t) { return this.isSame(e, t) || this.isBefore(e, t); }), - (fn.isValid = function() { + (kn.isValid = function() { return g(this); }), - (fn.lang = $t), - (fn.locale = Kt), - (fn.localeData = Qt), - (fn.max = Ot), - (fn.min = At), - (fn.parsingFlags = function() { + (kn.lang = an), + (kn.locale = on), + (kn.localeData = sn), + (kn.max = Nt), + (kn.min = zt), + (kn.parsingFlags = function() { return d({}, h(this)); }), - (fn.set = function(e, t) { + (kn.set = function(e, t) { if ('object' == typeof e) for ( var n = (function(e) { @@ -2156,24 +2210,24 @@ }), t ); - })((e = j(e))), + })((e = N(e))), r = 0; r < n.length; r++ ) this[n[r].unit](e[n[r].unit]); - else if (C(this[(e = N(e))])) return this[e](t); + else if (C(this[(e = z(e))])) return this[e](t); return this; }), - (fn.startOf = function(e) { + (kn.startOf = function(e) { var t; if ( - void 0 === (e = N(e)) || + void 0 === (e = z(e)) || 'millisecond' === e || !this.isValid() ) return this; - var n = this._isUTC ? en : Zt; + var n = this._isUTC ? hn : pn; switch (e) { case 'year': t = n(this.year(), 0, 1); @@ -2204,21 +2258,21 @@ break; case 'hour': (t = this._d.valueOf()), - (t -= Jt( - t + (this._isUTC ? 0 : 6e4 * this.utcOffset()), - 36e5 + (t -= dn( + t + (this._isUTC ? 0 : this.utcOffset() * un), + ln )); break; case 'minute': - (t = this._d.valueOf()), (t -= Jt(t, 6e4)); + (t = this._d.valueOf()), (t -= dn(t, un)); break; case 'second': - (t = this._d.valueOf()), (t -= Jt(t, 1e3)); + (t = this._d.valueOf()), (t -= dn(t, cn)); } return this._d.setTime(t), o.updateOffset(this, !0), this; }), - (fn.subtract = Xt), - (fn.toArray = function() { + (kn.subtract = nn), + (kn.toArray = function() { var e = this; return [ e.year(), @@ -2230,7 +2284,7 @@ e.millisecond() ]; }), - (fn.toObject = function() { + (kn.toObject = function() { var e = this; return { years: e.year(), @@ -2242,10 +2296,10 @@ milliseconds: e.milliseconds() }; }), - (fn.toDate = function() { + (kn.toDate = function() { return new Date(this.valueOf()); }), - (fn.toISOString = function(e) { + (kn.toISOString = function(e) { if (!this.isValid()) return null; var t = !0 !== e, n = t ? this.clone().utc() : this; @@ -2269,7 +2323,7 @@ : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ' ); }), - (fn.inspect = function() { + (kn.inspect = function() { if (!this.isValid()) return 'moment.invalid(/* ' + this._i + ' */)'; var e = 'moment', @@ -2283,21 +2337,21 @@ o = t + '[")]'; return this.format(n + r + '-MM-DD[T]HH:mm:ss.SSS' + o); }), - (fn.toJSON = function() { + (kn.toJSON = function() { return this.isValid() ? this.toISOString() : null; }), - (fn.toString = function() { + (kn.toString = function() { return this.clone() .locale('en') .format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ'); }), - (fn.unix = function() { + (kn.unix = function() { return Math.floor(this.valueOf() / 1e3); }), - (fn.valueOf = function() { + (kn.valueOf = function() { return this._d.valueOf() - 6e4 * (this._offset || 0); }), - (fn.creationData = function() { + (kn.creationData = function() { return { input: this._i, format: this._f, @@ -2306,12 +2360,12 @@ strict: this._strict }; }), - (fn.year = _e), - (fn.isLeapYear = function() { - return ye(this.year()); + (kn.year = Te), + (kn.isLeapYear = function() { + return Ee(this.year()); }), - (fn.weekYear = function(e) { - return nn.call( + (kn.weekYear = function(e) { + return mn.call( this, e, this.week(), @@ -2320,35 +2374,35 @@ this.localeData()._week.doy ); }), - (fn.isoWeekYear = function(e) { - return nn.call(this, e, this.isoWeek(), this.isoWeekday(), 1, 4); + (kn.isoWeekYear = function(e) { + return mn.call(this, e, this.isoWeek(), this.isoWeekday(), 1, 4); }), - (fn.quarter = fn.quarters = function(e) { + (kn.quarter = kn.quarters = function(e) { return null == e ? Math.ceil((this.month() + 1) / 3) : this.month(3 * (e - 1) + (this.month() % 3)); }), - (fn.month = Ce), - (fn.daysInMonth = function() { - return ke(this.year(), this.month()); + (kn.month = Fe), + (kn.daysInMonth = function() { + return De(this.year(), this.month()); }), - (fn.week = fn.weeks = function(e) { + (kn.week = kn.weeks = function(e) { var t = this.localeData().week(this); return null == e ? t : this.add(7 * (e - t), 'd'); }), - (fn.isoWeek = fn.isoWeeks = function(e) { - var t = Ie(this, 1, 4).week; + (kn.isoWeek = kn.isoWeeks = function(e) { + var t = Xe(this, 1, 4).week; return null == e ? t : this.add(7 * (e - t), 'd'); }), - (fn.weeksInYear = function() { + (kn.weeksInYear = function() { var e = this.localeData()._week; - return Fe(this.year(), e.dow, e.doy); + return Ge(this.year(), e.dow, e.doy); }), - (fn.isoWeeksInYear = function() { - return Fe(this.year(), 1, 4); + (kn.isoWeeksInYear = function() { + return Ge(this.year(), 1, 4); }), - (fn.date = on), - (fn.day = fn.days = function(e) { + (kn.date = yn), + (kn.day = kn.days = function(e) { if (!this.isValid()) return null != e ? this : NaN; var t = this._isUTC ? this._d.getUTCDay() : this._d.getDay(); return null != e @@ -2364,12 +2418,12 @@ this.add(e - t, 'd')) : t; }), - (fn.weekday = function(e) { + (kn.weekday = function(e) { if (!this.isValid()) return null != e ? this : NaN; var t = (this.day() + 7 - this.localeData()._week.dow) % 7; return null == e ? t : this.add(e - t, 'd'); }), - (fn.isoWeekday = function(e) { + (kn.isoWeekday = function(e) { if (!this.isValid()) return null != e ? this : NaN; if (null != e) { var t = (function(e, t) { @@ -2383,7 +2437,7 @@ } return this.day() || 7; }), - (fn.dayOfYear = function(e) { + (kn.dayOfYear = function(e) { var t = Math.round( (this.clone().startOf('day') - this.clone().startOf('year')) / @@ -2391,26 +2445,26 @@ ) + 1; return null == e ? t : this.add(e - t, 'd'); }), - (fn.hour = fn.hours = Ze), - (fn.minute = fn.minutes = an), - (fn.second = fn.seconds = cn), - (fn.millisecond = fn.milliseconds = ln), - (fn.utcOffset = function(e, t, n) { + (kn.hour = kn.hours = ct), + (kn.minute = kn.minutes = vn), + (kn.second = kn.seconds = wn), + (kn.millisecond = kn.milliseconds = Mn), + (kn.utcOffset = function(e, t, n) { var r, i = this._offset || 0; if (!this.isValid()) return null != e ? this : NaN; if (null != e) { if ('string' == typeof e) { - if (null === (e = Nt(se, e))) return this; + if (null === (e = Wt(se, e))) return this; } else Math.abs(e) < 16 && !n && (e *= 60); return ( - !this._isUTC && t && (r = Rt(this)), + !this._isUTC && t && (r = Ut(this)), (this._offset = e), (this._isUTC = !0), null != r && this.add(r, 'm'), i !== e && (!t || this._changeInProgress - ? Vt(this, Bt(e - i, 'm'), 1, !1) + ? en(this, $t(e - i, 'm'), 1, !1) : this._changeInProgress || ((this._changeInProgress = !0), o.updateOffset(this, !0), @@ -2418,36 +2472,36 @@ this ); } - return this._isUTC ? i : Rt(this); + return this._isUTC ? i : Ut(this); }), - (fn.utc = function(e) { + (kn.utc = function(e) { return this.utcOffset(0, e); }), - (fn.local = function(e) { + (kn.local = function(e) { return ( this._isUTC && (this.utcOffset(0, e), (this._isUTC = !1), - e && this.subtract(Rt(this), 'm')), + e && this.subtract(Ut(this), 'm')), this ); }), - (fn.parseZone = function() { + (kn.parseZone = function() { if (null != this._tzm) this.utcOffset(this._tzm, !1, !0); else if ('string' == typeof this._i) { - var e = Nt(ae, this._i); + var e = Wt(ae, this._i); null != e ? this.utcOffset(e) : this.utcOffset(0, !0); } return this; }), - (fn.hasAlignedHourOffset = function(e) { + (kn.hasAlignedHourOffset = function(e) { return ( !!this.isValid() && - ((e = e ? St(e).utcOffset() : 0), + ((e = e ? jt(e).utcOffset() : 0), (this.utcOffset() - e) % 60 == 0) ); }), - (fn.isDST = function() { + (kn.isDST = function() { return ( this.utcOffset() > this.clone() @@ -2459,33 +2513,33 @@ .utcOffset() ); }), - (fn.isLocal = function() { + (kn.isLocal = function() { return !!this.isValid() && !this._isUTC; }), - (fn.isUtcOffset = function() { + (kn.isUtcOffset = function() { return !!this.isValid() && this._isUTC; }), - (fn.isUtc = It), - (fn.isUTC = It), - (fn.zoneAbbr = function() { + (kn.isUtc = Xt), + (kn.isUTC = Xt), + (kn.zoneAbbr = function() { return this._isUTC ? 'UTC' : ''; }), - (fn.zoneName = function() { + (kn.zoneName = function() { return this._isUTC ? 'Coordinated Universal Time' : ''; }), - (fn.dates = A( + (kn.dates = O( 'dates accessor is deprecated. Use date instead.', - on + yn )), - (fn.months = A( + (kn.months = O( 'months accessor is deprecated. Use month instead', - Ce + Fe )), - (fn.years = A( + (kn.years = O( 'years accessor is deprecated. Use year instead', - _e + Te )), - (fn.zone = A( + (kn.zone = O( 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', function(e, t) { return null != e @@ -2495,34 +2549,34 @@ : -this.utcOffset(); } )), - (fn.isDSTShifted = A( + (kn.isDSTShifted = O( 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', function() { if (!s(this._isDSTShifted)) return this._isDSTShifted; var e = {}; - if ((y(e, this), (e = Mt(e))._a)) { - var t = e._isUTC ? p(e._a) : St(e._a); + if ((y(e, this), (e = Pt(e))._a)) { + var t = e._isUTC ? p(e._a) : jt(e._a); this._isDSTShifted = this.isValid() && k(e._a, t.toArray()) > 0; } else this._isDSTShifted = !1; return this._isDSTShifted; } )); - var pn = P.prototype; - function hn(e, t, n, r) { - var o = st(), + var On = P.prototype; + function En(e, t, n, r) { + var o = mt(), i = p().set(r, t); return o[n](i, e); } - function gn(e, t, n) { + function An(e, t, n) { if ((c(e) && ((t = e), (e = void 0)), (e = e || ''), null != t)) - return hn(e, t, n, 'month'); + return En(e, t, n, 'month'); var r, o = []; - for (r = 0; r < 12; r++) o[r] = hn(e, r, n, 'month'); + for (r = 0; r < 12; r++) o[r] = En(e, r, n, 'month'); return o; } - function mn(e, t, n, r) { + function Tn(e, t, n, r) { 'boolean' == typeof e ? (c(t) && ((n = t), (t = void 0)), (t = t || '')) : ((n = t = e), @@ -2530,18 +2584,18 @@ c(t) && ((n = t), (t = void 0)), (t = t || '')); var o, - i = st(), + i = mt(), a = e ? i._week.dow : 0; - if (null != n) return hn(t, (n + a) % 7, r, 'day'); + if (null != n) return En(t, (n + a) % 7, r, 'day'); var s = []; - for (o = 0; o < 7; o++) s[o] = hn(t, (o + a) % 7, r, 'day'); + for (o = 0; o < 7; o++) s[o] = En(t, (o + a) % 7, r, 'day'); return s; } - (pn.calendar = function(e, t, n) { + (On.calendar = function(e, t, n) { var r = this._calendar[e] || this._calendar.sameElse; return C(r) ? r.call(t, n) : r; }), - (pn.longDateFormat = function(e) { + (On.longDateFormat = function(e) { var t = this._longDateFormat[e], n = this._longDateFormat[e.toUpperCase()]; return t || !n @@ -2554,23 +2608,23 @@ )), this._longDateFormat[e]); }), - (pn.invalidDate = function() { + (On.invalidDate = function() { return this._invalidDate; }), - (pn.ordinal = function(e) { + (On.ordinal = function(e) { return this._ordinal.replace('%d', e); }), - (pn.preparse = dn), - (pn.postformat = dn), - (pn.relativeTime = function(e, t, n, r) { + (On.preparse = Sn), + (On.postformat = Sn), + (On.relativeTime = function(e, t, n, r) { var o = this._relativeTime[n]; return C(o) ? o(e, t, n, r) : o.replace(/%d/i, e); }), - (pn.pastFuture = function(e, t) { + (On.pastFuture = function(e, t) { var n = this._relativeTime[e > 0 ? 'future' : 'past']; return C(n) ? n(t) : n.replace(/%s/i, t); }), - (pn.set = function(e) { + (On.set = function(e) { var t, n; for (n in e) C((t = e[n])) ? (this[n] = t) : (this['_' + n] = t); (this._config = e), @@ -2581,12 +2635,12 @@ /\d{1,2}/.source )); }), - (pn.months = function(e, t) { + (On.months = function(e, t) { return e ? i(this._months) ? this._months[e.month()] : this._months[ - (this._months.isFormat || Se).test(t) + (this._months.isFormat || je).test(t) ? 'format' : 'standalone' ][e.month()] @@ -2594,20 +2648,20 @@ ? this._months : this._months.standalone; }), - (pn.monthsShort = function(e, t) { + (On.monthsShort = function(e, t) { return e ? i(this._monthsShort) ? this._monthsShort[e.month()] - : this._monthsShort[Se.test(t) ? 'format' : 'standalone'][ + : this._monthsShort[je.test(t) ? 'format' : 'standalone'][ e.month() ] : i(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone; }), - (pn.monthsParse = function(e, t, n) { + (On.monthsParse = function(e, t, n) { var r, o, i; - if (this._monthsParseExact) return Ee.call(this, e, t, n); + if (this._monthsParseExact) return Re.call(this, e, t, n); for ( this._monthsParse || ((this._monthsParse = []), @@ -2648,35 +2702,35 @@ if (!n && this._monthsParse[r].test(e)) return r; } }), - (pn.monthsRegex = function(e) { + (On.monthsRegex = function(e) { return this._monthsParseExact - ? (f(this, '_monthsRegex') || De.call(this), + ? (f(this, '_monthsRegex') || He.call(this), e ? this._monthsStrictRegex : this._monthsRegex) - : (f(this, '_monthsRegex') || (this._monthsRegex = Pe), + : (f(this, '_monthsRegex') || (this._monthsRegex = Be), this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex); }), - (pn.monthsShortRegex = function(e) { + (On.monthsShortRegex = function(e) { return this._monthsParseExact - ? (f(this, '_monthsRegex') || De.call(this), + ? (f(this, '_monthsRegex') || He.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (f(this, '_monthsShortRegex') || - (this._monthsShortRegex = Le), + (this._monthsShortRegex = qe), this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex); }), - (pn.week = function(e) { - return Ie(e, this._week.dow, this._week.doy).week; + (On.week = function(e) { + return Xe(e, this._week.dow, this._week.doy).week; }), - (pn.firstDayOfYear = function() { + (On.firstDayOfYear = function() { return this._week.doy; }), - (pn.firstDayOfWeek = function() { + (On.firstDayOfWeek = function() { return this._week.dow; }), - (pn.weekdays = function(e, t) { + (On.weekdays = function(e, t) { var n = i(this._weekdays) ? this._weekdays : this._weekdays[ @@ -2684,25 +2738,25 @@ ? 'format' : 'standalone' ]; - return !0 === e ? qe(n, this._week.dow) : e ? n[e.day()] : n; + return !0 === e ? Ke(n, this._week.dow) : e ? n[e.day()] : n; }), - (pn.weekdaysMin = function(e) { + (On.weekdaysMin = function(e) { return !0 === e - ? qe(this._weekdaysMin, this._week.dow) + ? Ke(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin; }), - (pn.weekdaysShort = function(e) { + (On.weekdaysShort = function(e) { return !0 === e - ? qe(this._weekdaysShort, this._week.dow) + ? Ke(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort; }), - (pn.weekdaysParse = function(e, t, n) { + (On.weekdaysParse = function(e, t, n) { var r, o, i; - if (this._weekdaysParseExact) return We.call(this, e, t, n); + if (this._weekdaysParseExact) return Ze.call(this, e, t, n); for ( this._weekdaysParse || ((this._weekdaysParse = []), @@ -2753,42 +2807,42 @@ if (!n && this._weekdaysParse[r].test(e)) return r; } }), - (pn.weekdaysRegex = function(e) { + (On.weekdaysRegex = function(e) { return this._weekdaysParseExact - ? (f(this, '_weekdaysRegex') || Ge.call(this), + ? (f(this, '_weekdaysRegex') || rt.call(this), e ? this._weekdaysStrictRegex : this._weekdaysRegex) - : (f(this, '_weekdaysRegex') || (this._weekdaysRegex = Ve), + : (f(this, '_weekdaysRegex') || (this._weekdaysRegex = et), this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex); }), - (pn.weekdaysShortRegex = function(e) { + (On.weekdaysShortRegex = function(e) { return this._weekdaysParseExact - ? (f(this, '_weekdaysRegex') || Ge.call(this), + ? (f(this, '_weekdaysRegex') || rt.call(this), e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (f(this, '_weekdaysShortRegex') || - (this._weekdaysShortRegex = Ue), + (this._weekdaysShortRegex = tt), this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex); }), - (pn.weekdaysMinRegex = function(e) { + (On.weekdaysMinRegex = function(e) { return this._weekdaysParseExact - ? (f(this, '_weekdaysRegex') || Ge.call(this), + ? (f(this, '_weekdaysRegex') || rt.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (f(this, '_weekdaysMinRegex') || - (this._weekdaysMinRegex = Xe), + (this._weekdaysMinRegex = nt), this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex); }), - (pn.isPM = function(e) { + (On.isPM = function(e) { return 'p' === (e + '').toLowerCase().charAt(0); }), - (pn.meridiem = function(e, t, n) { + (On.meridiem = function(e, t, n) { return e > 11 ? (n ? 'pm' : 'PM') : n ? 'am' : 'AM'; }), - it('en', { + ht('en', { dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, ordinal: function(e) { var t = e % 10; @@ -2806,17 +2860,17 @@ ); } }), - (o.lang = A( + (o.lang = O( 'moment.lang is deprecated. Use moment.locale instead.', - it + ht )), - (o.langData = A( + (o.langData = O( 'moment.langData is deprecated. Use moment.localeData instead.', - st + mt )); - var bn = Math.abs; - function yn(e, t, n, r) { - var o = Bt(t, n); + var Cn = Math.abs; + function Ln(e, t, n, r) { + var o = $t(t, n); return ( (e._milliseconds += r * o._milliseconds), (e._days += r * o._days), @@ -2824,59 +2878,59 @@ e._bubble() ); } - function vn(e) { + function Pn(e) { return e < 0 ? Math.floor(e) : Math.ceil(e); } - function _n(e) { + function Dn(e) { return (4800 * e) / 146097; } - function xn(e) { + function jn(e) { return (146097 * e) / 4800; } - function wn(e) { + function zn(e) { return function() { return this.as(e); }; } - var Mn = wn('ms'), - kn = wn('s'), - Sn = wn('m'), - An = wn('h'), - On = wn('d'), - En = wn('w'), - Tn = wn('M'), - Cn = wn('Q'), - Ln = wn('y'); - function Pn(e) { + var Nn = zn('ms'), + Rn = zn('s'), + In = zn('m'), + Fn = zn('h'), + qn = zn('d'), + Bn = zn('w'), + Hn = zn('M'), + Yn = zn('Q'), + Wn = zn('y'); + function Vn(e) { return function() { return this.isValid() ? this._data[e] : NaN; }; } - var Dn = Pn('milliseconds'), - zn = Pn('seconds'), - Nn = Pn('minutes'), - jn = Pn('hours'), - Rn = Pn('days'), - In = Pn('months'), - Fn = Pn('years'), - qn = Math.round, - Bn = { ss: 44, s: 45, m: 45, h: 22, d: 26, M: 11 }; - function Hn(e, t, n, r, o) { + var Un = Vn('milliseconds'), + Xn = Vn('seconds'), + Gn = Vn('minutes'), + Kn = Vn('hours'), + $n = Vn('days'), + Qn = Vn('months'), + Jn = Vn('years'), + Zn = Math.round, + er = { ss: 44, s: 45, m: 45, h: 22, d: 26, M: 11 }; + function tr(e, t, n, r, o) { return o.relativeTime(t || 1, !!n, e, r); } - var Yn = Math.abs; - function Wn(e) { + var nr = Math.abs; + function rr(e) { return (e > 0) - (e < 0) || +e; } - function Vn() { + function or() { if (!this.isValid()) return this.localeData().invalidDate(); var e, t, - n = Yn(this._milliseconds) / 1e3, - r = Yn(this._days), - o = Yn(this._months); - (e = w(n / 60)), (t = w(e / 60)), (n %= 60), (e %= 60); - var i = w(o / 12), + n = nr(this._milliseconds) / 1e3, + r = nr(this._days), + o = nr(this._months); + (e = x(n / 60)), (t = x(e / 60)), (n %= 60), (e %= 60); + var i = x(o / 12), a = (o %= 12), s = r, c = t, @@ -2885,9 +2939,9 @@ f = this.asSeconds(); if (!f) return 'P0D'; var d = f < 0 ? '-' : '', - p = Wn(this._months) !== Wn(f) ? '-' : '', - h = Wn(this._days) !== Wn(f) ? '-' : '', - g = Wn(this._milliseconds) !== Wn(f) ? '-' : ''; + p = rr(this._months) !== rr(f) ? '-' : '', + h = rr(this._days) !== rr(f) ? '-' : '', + g = rr(this._milliseconds) !== rr(f) ? '-' : ''; return ( d + 'P' + @@ -2900,40 +2954,40 @@ (l ? g + l + 'S' : '') ); } - var Un = Ct.prototype; + var ir = Ft.prototype; return ( - (Un.isValid = function() { + (ir.isValid = function() { return this._isValid; }), - (Un.abs = function() { + (ir.abs = function() { var e = this._data; return ( - (this._milliseconds = bn(this._milliseconds)), - (this._days = bn(this._days)), - (this._months = bn(this._months)), - (e.milliseconds = bn(e.milliseconds)), - (e.seconds = bn(e.seconds)), - (e.minutes = bn(e.minutes)), - (e.hours = bn(e.hours)), - (e.months = bn(e.months)), - (e.years = bn(e.years)), + (this._milliseconds = Cn(this._milliseconds)), + (this._days = Cn(this._days)), + (this._months = Cn(this._months)), + (e.milliseconds = Cn(e.milliseconds)), + (e.seconds = Cn(e.seconds)), + (e.minutes = Cn(e.minutes)), + (e.hours = Cn(e.hours)), + (e.months = Cn(e.months)), + (e.years = Cn(e.years)), this ); }), - (Un.add = function(e, t) { - return yn(this, e, t, 1); + (ir.add = function(e, t) { + return Ln(this, e, t, 1); }), - (Un.subtract = function(e, t) { - return yn(this, e, t, -1); + (ir.subtract = function(e, t) { + return Ln(this, e, t, -1); }), - (Un.as = function(e) { + (ir.as = function(e) { if (!this.isValid()) return NaN; var t, n, r = this._milliseconds; - if ('month' === (e = N(e)) || 'quarter' === e || 'year' === e) + if ('month' === (e = z(e)) || 'quarter' === e || 'year' === e) switch ( - ((t = this._days + r / 864e5), (n = this._months + _n(t)), e) + ((t = this._days + r / 864e5), (n = this._months + Dn(t)), e) ) { case 'month': return n; @@ -2943,7 +2997,7 @@ return n / 12; } else - switch (((t = this._days + Math.round(xn(this._months))), e)) { + switch (((t = this._days + Math.round(jn(this._months))), e)) { case 'week': return t / 7 + r / 6048e5; case 'day': @@ -2960,16 +3014,16 @@ throw new Error('Unknown unit ' + e); } }), - (Un.asMilliseconds = Mn), - (Un.asSeconds = kn), - (Un.asMinutes = Sn), - (Un.asHours = An), - (Un.asDays = On), - (Un.asWeeks = En), - (Un.asMonths = Tn), - (Un.asQuarters = Cn), - (Un.asYears = Ln), - (Un.valueOf = function() { + (ir.asMilliseconds = Nn), + (ir.asSeconds = Rn), + (ir.asMinutes = In), + (ir.asHours = Fn), + (ir.asDays = qn), + (ir.asWeeks = Bn), + (ir.asMonths = Hn), + (ir.asQuarters = Yn), + (ir.asYears = Wn), + (ir.valueOf = function() { return this.isValid() ? this._milliseconds + 864e5 * this._days + @@ -2977,7 +3031,7 @@ 31536e6 * M(this._months / 12) : NaN; }), - (Un._bubble = function() { + (ir._bubble = function() { var e, t, n, @@ -2990,19 +3044,19 @@ return ( (i >= 0 && a >= 0 && s >= 0) || (i <= 0 && a <= 0 && s <= 0) || - ((i += 864e5 * vn(xn(s) + a)), (a = 0), (s = 0)), + ((i += 864e5 * Pn(jn(s) + a)), (a = 0), (s = 0)), (c.milliseconds = i % 1e3), - (e = w(i / 1e3)), + (e = x(i / 1e3)), (c.seconds = e % 60), - (t = w(e / 60)), + (t = x(e / 60)), (c.minutes = t % 60), - (n = w(t / 60)), + (n = x(t / 60)), (c.hours = n % 24), - (a += w(n / 24)), - (o = w(_n(a))), + (a += x(n / 24)), + (o = x(Dn(a))), (s += o), - (a -= vn(xn(o))), - (r = w(s / 12)), + (a -= Pn(jn(o))), + (r = x(s / 12)), (s %= 12), (c.days = a), (c.months = s), @@ -3010,60 +3064,60 @@ this ); }), - (Un.clone = function() { - return Bt(this); + (ir.clone = function() { + return $t(this); }), - (Un.get = function(e) { - return (e = N(e)), this.isValid() ? this[e + 's']() : NaN; + (ir.get = function(e) { + return (e = z(e)), this.isValid() ? this[e + 's']() : NaN; }), - (Un.milliseconds = Dn), - (Un.seconds = zn), - (Un.minutes = Nn), - (Un.hours = jn), - (Un.days = Rn), - (Un.weeks = function() { - return w(this.days() / 7); + (ir.milliseconds = Un), + (ir.seconds = Xn), + (ir.minutes = Gn), + (ir.hours = Kn), + (ir.days = $n), + (ir.weeks = function() { + return x(this.days() / 7); }), - (Un.months = In), - (Un.years = Fn), - (Un.humanize = function(e) { + (ir.months = Qn), + (ir.years = Jn), + (ir.humanize = function(e) { if (!this.isValid()) return this.localeData().invalidDate(); var t = this.localeData(), n = (function(e, t, n) { - var r = Bt(e).abs(), - o = qn(r.as('s')), - i = qn(r.as('m')), - a = qn(r.as('h')), - s = qn(r.as('d')), - c = qn(r.as('M')), - u = qn(r.as('y')), - l = (o <= Bn.ss && ['s', o]) || - (o < Bn.s && ['ss', o]) || + var r = $t(e).abs(), + o = Zn(r.as('s')), + i = Zn(r.as('m')), + a = Zn(r.as('h')), + s = Zn(r.as('d')), + c = Zn(r.as('M')), + u = Zn(r.as('y')), + l = (o <= er.ss && ['s', o]) || + (o < er.s && ['ss', o]) || (i <= 1 && ['m']) || - (i < Bn.m && ['mm', i]) || + (i < er.m && ['mm', i]) || (a <= 1 && ['h']) || - (a < Bn.h && ['hh', a]) || + (a < er.h && ['hh', a]) || (s <= 1 && ['d']) || - (s < Bn.d && ['dd', s]) || + (s < er.d && ['dd', s]) || (c <= 1 && ['M']) || - (c < Bn.M && ['MM', c]) || + (c < er.M && ['MM', c]) || (u <= 1 && ['y']) || ['yy', u]; return ( - (l[2] = t), (l[3] = +e > 0), (l[4] = n), Hn.apply(null, l) + (l[2] = t), (l[3] = +e > 0), (l[4] = n), tr.apply(null, l) ); })(this, !e, t); return e && (n = t.pastFuture(+this, n)), t.postformat(n); }), - (Un.toISOString = Vn), - (Un.toString = Vn), - (Un.toJSON = Vn), - (Un.locale = Kt), - (Un.localeData = Qt), - (Un.toIsoString = A( + (ir.toISOString = or), + (ir.toString = or), + (ir.toJSON = or), + (ir.locale = on), + (ir.localeData = sn), + (ir.toIsoString = O( 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', - Vn + or )), - (Un.lang = $t), + (ir.lang = an), W('X', 0, 0, 'unix'), W('x', 0, 0, 'valueOf'), le('x', ie), @@ -3075,81 +3129,79 @@ n._d = new Date(M(e)); }), (o.version = '2.24.0'), - (t = St), - (o.fn = fn), + (t = jt), + (o.fn = kn), (o.min = function() { - var e = [].slice.call(arguments, 0); - return Et('isBefore', e); + return Rt('isBefore', [].slice.call(arguments, 0)); }), (o.max = function() { - var e = [].slice.call(arguments, 0); - return Et('isAfter', e); + return Rt('isAfter', [].slice.call(arguments, 0)); }), (o.now = function() { return Date.now ? Date.now() : +new Date(); }), (o.utc = p), (o.unix = function(e) { - return St(1e3 * e); + return jt(1e3 * e); }), (o.months = function(e, t) { - return gn(e, t, 'months'); + return An(e, t, 'months'); }), (o.isDate = u), - (o.locale = it), + (o.locale = ht), (o.invalid = m), - (o.duration = Bt), - (o.isMoment = x), + (o.duration = $t), + (o.isMoment = w), (o.weekdays = function(e, t, n) { - return mn(e, t, n, 'weekdays'); + return Tn(e, t, n, 'weekdays'); }), (o.parseZone = function() { - return St.apply(null, arguments).parseZone(); + return jt.apply(null, arguments).parseZone(); }), - (o.localeData = st), - (o.isDuration = Lt), + (o.localeData = mt), + (o.isDuration = qt), (o.monthsShort = function(e, t) { - return gn(e, t, 'monthsShort'); + return An(e, t, 'monthsShort'); }), (o.weekdaysMin = function(e, t, n) { - return mn(e, t, n, 'weekdaysMin'); + return Tn(e, t, n, 'weekdaysMin'); }), - (o.defineLocale = at), + (o.defineLocale = gt), (o.updateLocale = function(e, t) { if (null != t) { var n, r, - o = et; - null != (r = ot(e)) && (o = r._config), + o = ut; + null != (r = pt(e)) && (o = r._config), (t = L(o, t)), - ((n = new P(t)).parentLocale = tt[e]), - (tt[e] = n), - it(e); + ((n = new P(t)).parentLocale = lt[e]), + (lt[e] = n), + ht(e); } else - null != tt[e] && - (null != tt[e].parentLocale - ? (tt[e] = tt[e].parentLocale) - : null != tt[e] && delete tt[e]); - return tt[e]; + null != lt[e] && + (null != lt[e].parentLocale + ? (lt[e] = lt[e].parentLocale) + : null != lt[e] && delete lt[e]); + return lt[e]; }), (o.locales = function() { - return O(tt); + return E(lt); }), (o.weekdaysShort = function(e, t, n) { - return mn(e, t, n, 'weekdaysShort'); + return Tn(e, t, n, 'weekdaysShort'); }), - (o.normalizeUnits = N), + (o.normalizeUnits = z), (o.relativeTimeRounding = function(e) { return void 0 === e - ? qn - : 'function' == typeof e && ((qn = e), !0); + ? Zn + : 'function' == typeof e && ((Zn = e), !0); }), (o.relativeTimeThreshold = function(e, t) { return ( - void 0 !== Bn[e] && + void 0 !== er[e] && (void 0 === t - ? Bn[e] - : ((Bn[e] = t), 's' === e && (Bn.ss = t - 1), !0)) + ? er[e] + : ((er[e] = t), 's' === e && (er.ss = t - 1), !0)) ); }), (o.calendarFormat = function(e, t) { @@ -3168,7 +3220,7 @@ ? 'nextWeek' : 'sameElse'; }), - (o.prototype = fn), + (o.prototype = kn), (o.HTML5_FMT = { DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', @@ -3183,26 +3235,32 @@ o ); })(); - }.call(this, n(63)(e))); + }.call(this, n(77)(e))); }, function(e, t, n) { 'use strict'; + function r() { + return (r = + Object.assign || + function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); + } + return e; + }).apply(this, arguments); + } n.d(t, 'a', function() { - return h; - }), - n.d(t, 'b', function() { - return k; - }), - n.d(t, 'c', function() { - return _; - }), - n.d(t, 'd', function() { - return x; - }); - var r = n(99), + return r; + }); + }, + function(e, t, n) { + 'use strict'; + var r = n(114), o = n.n(r), i = n(0), - a = n(81); + a = n(97); function s(e, t, n) { var r = ''; return ( @@ -3227,10 +3285,22 @@ } while (void 0 !== o); } }, - u = n(62), - l = n(128), - f = n(27), - d = Object(i.createContext)( + u = n(76), + l = n(143), + f = n(40); + n.d(t, 'a', function() { + return h; + }), + n.d(t, 'b', function() { + return k; + }), + n.d(t, 'c', function() { + return _; + }), + n.d(t, 'd', function() { + return w; + }); + var d = Object(i.createContext)( 'undefined' != typeof HTMLElement ? Object(a.a)() : null ), p = Object(i.createContext)({}), @@ -3283,7 +3353,7 @@ for (var c = 2; c < r; c++) o[c] = n[c]; return i.createElement.apply(null, o); }, - x = + w = (i.Component, function() { var e = f.a.apply(void 0, arguments), @@ -3297,7 +3367,7 @@ } }; }), - w = function e(t) { + x = function e(t) { for (var n = t.length, r = 0, o = ''; r < n; r++) { var i = t[r]; if (null != i) { @@ -3345,7 +3415,7 @@ o++ ) n[o] = arguments[o]; - return M(t.registered, r, w(n)); + return M(t.registered, r, x(n)); }, theme: n }, @@ -3369,18 +3439,422 @@ } } })(), - (e.exports = n(444)); + (e.exports = n(473)); + }, + function(e, t, n) { + 'use strict'; + (function(e) { + n.d(t, 'a', function() { + return y; + }); + var r = n(113), + o = n(1), + i = n.n(o), + a = n(0), + s = n.n(a); + function c(e) { + return (c = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function(e) { + return typeof e; + } + : function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e; + })(e); + } + function u(e, t, n) { + return ( + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), + e + ); + } + function l(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + 'function' == typeof Object.getOwnPropertySymbols && + (r = r.concat( + Object.getOwnPropertySymbols(n).filter(function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable; + }) + )), + r.forEach(function(t) { + u(e, t, n[t]); + }); + } + return e; + } + function f(e, t) { + if (null == e) return {}; + var n, + r, + o = (function(e, t) { + if (null == e) return {}; + var n, + r, + o = {}, + i = Object.keys(e); + for (r = 0; r < i.length; r++) + (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); + return o; + })(e, t); + if (Object.getOwnPropertySymbols) { + var i = Object.getOwnPropertySymbols(e); + for (r = 0; r < i.length; r++) + (n = i[r]), + t.indexOf(n) >= 0 || + (Object.prototype.propertyIsEnumerable.call(e, n) && + (o[n] = e[n])); + } + return o; + } + function d(e) { + return ( + (function(e) { + if (Array.isArray(e)) { + for (var t = 0, n = new Array(e.length); t < e.length; t++) + n[t] = e[t]; + return n; + } + })(e) || + (function(e) { + if ( + Symbol.iterator in Object(e) || + '[object Arguments]' === Object.prototype.toString.call(e) + ) + return Array.from(e); + })(e) || + (function() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance' + ); + })() + ); + } + var p = + 'undefined' != typeof window + ? window + : void 0 !== e + ? e + : 'undefined' != typeof self + ? self + : {}; + var h = (function(e, t) { + return e((t = { exports: {} }), t.exports), t.exports; + })(function(e) { + !(function(t) { + var n = function(e, t, r) { + if (!c(t) || l(t) || f(t) || d(t) || s(t)) return t; + var o, + i = 0, + a = 0; + if (u(t)) + for (o = [], a = t.length; i < a; i++) o.push(n(e, t[i], r)); + else + for (var p in ((o = {}), t)) + Object.prototype.hasOwnProperty.call(t, p) && + (o[e(p, r)] = n(e, t[p], r)); + return o; + }, + r = function(e) { + return p(e) + ? e + : (e = e.replace(/[\-_\s]+(.)?/g, function(e, t) { + return t ? t.toUpperCase() : ''; + })) + .substr(0, 1) + .toLowerCase() + e.substr(1); + }, + o = function(e) { + var t = r(e); + return t.substr(0, 1).toUpperCase() + t.substr(1); + }, + i = function(e, t) { + return (function(e, t) { + var n = (t = t || {}).separator || '_', + r = t.split || /(?=[A-Z])/; + return e.split(r).join(n); + })(e, t).toLowerCase(); + }, + a = Object.prototype.toString, + s = function(e) { + return 'function' == typeof e; + }, + c = function(e) { + return e === Object(e); + }, + u = function(e) { + return '[object Array]' == a.call(e); + }, + l = function(e) { + return '[object Date]' == a.call(e); + }, + f = function(e) { + return '[object RegExp]' == a.call(e); + }, + d = function(e) { + return '[object Boolean]' == a.call(e); + }, + p = function(e) { + return (e -= 0) == e; + }, + h = function(e, t) { + var n = t && 'process' in t ? t.process : t; + return 'function' != typeof n + ? e + : function(t, r) { + return n(t, e, r); + }; + }, + g = { + camelize: r, + decamelize: i, + pascalize: o, + depascalize: i, + camelizeKeys: function(e, t) { + return n(h(r, t), e); + }, + decamelizeKeys: function(e, t) { + return n(h(i, t), e, t); + }, + pascalizeKeys: function(e, t) { + return n(h(o, t), e); + }, + depascalizeKeys: function() { + return this.decamelizeKeys.apply(this, arguments); + } + }; + e.exports ? (e.exports = g) : (t.humps = g); + })(p); + }); + var g = !1; + try { + g = !0; + } catch (e) {} + function m(e, t) { + return (Array.isArray(t) && t.length > 0) || (!Array.isArray(t) && t) + ? u({}, e, t) + : {}; + } + function b(e) { + return null === e + ? null + : 'object' === c(e) && e.prefix && e.iconName + ? e + : Array.isArray(e) && 2 === e.length + ? { prefix: e[0], iconName: e[1] } + : 'string' == typeof e + ? { prefix: 'fas', iconName: e } + : void 0; + } + function y(e) { + var t = e.icon, + n = e.mask, + o = e.symbol, + i = e.className, + a = e.title, + s = b(t), + c = m( + 'classes', + [].concat( + d( + (function(e) { + var t, + n = + (u( + (t = { + 'fa-spin': e.spin, + 'fa-pulse': e.pulse, + 'fa-fw': e.fixedWidth, + 'fa-inverse': e.inverse, + 'fa-border': e.border, + 'fa-li': e.listItem, + 'fa-flip-horizontal': + 'horizontal' === e.flip || 'both' === e.flip, + 'fa-flip-vertical': + 'vertical' === e.flip || 'both' === e.flip + }), + 'fa-'.concat(e.size), + null !== e.size + ), + u( + t, + 'fa-rotate-'.concat(e.rotation), + null !== e.rotation + ), + u(t, 'fa-pull-'.concat(e.pull), null !== e.pull), + t); + return Object.keys(n) + .map(function(e) { + return n[e] ? e : null; + }) + .filter(function(e) { + return e; + }); + })(e) + ), + d(i.split(' ')) + ) + ), + f = m( + 'transform', + 'string' == typeof e.transform + ? r.c.transform(e.transform) + : e.transform + ), + p = m('mask', b(n)), + h = Object(r.a)(s, l({}, c, f, p, { symbol: o, title: a })); + if (!h) + return ( + (function() { + var e; + !g && + console && + 'function' == typeof console.error && + (e = console).error.apply(e, arguments); + })('Could not find icon', s), + null + ); + var _ = h.abstract, + w = {}; + return ( + Object.keys(e).forEach(function(t) { + y.defaultProps.hasOwnProperty(t) || (w[t] = e[t]); + }), + v(_[0], w) + ); + } + (y.displayName = 'FontAwesomeIcon'), + (y.propTypes = { + border: i.a.bool, + className: i.a.string, + mask: i.a.oneOfType([i.a.object, i.a.array, i.a.string]), + fixedWidth: i.a.bool, + inverse: i.a.bool, + flip: i.a.oneOf(['horizontal', 'vertical', 'both']), + icon: i.a.oneOfType([i.a.object, i.a.array, i.a.string]), + listItem: i.a.bool, + pull: i.a.oneOf(['right', 'left']), + pulse: i.a.bool, + rotation: i.a.oneOf([90, 180, 270]), + size: i.a.oneOf([ + 'lg', + 'xs', + 'sm', + '1x', + '2x', + '3x', + '4x', + '5x', + '6x', + '7x', + '8x', + '9x', + '10x' + ]), + spin: i.a.bool, + symbol: i.a.oneOfType([i.a.bool, i.a.string]), + title: i.a.string, + transform: i.a.oneOfType([i.a.string, i.a.object]) + }), + (y.defaultProps = { + border: !1, + className: '', + mask: null, + fixedWidth: !1, + inverse: !1, + flip: null, + icon: null, + listItem: !1, + pull: null, + pulse: !1, + rotation: null, + size: null, + spin: !1, + symbol: !1, + title: '', + transform: null + }); + var v = function e(t, n) { + var r = + arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; + if ('string' == typeof n) return n; + var o = (n.children || []).map(function(n) { + return e(t, n); + }), + i = Object.keys(n.attributes || {}).reduce( + function(e, t) { + var r = n.attributes[t]; + switch (t) { + case 'class': + (e.attrs.className = r), delete n.attributes.class; + break; + case 'style': + e.attrs.style = r + .split(';') + .map(function(e) { + return e.trim(); + }) + .filter(function(e) { + return e; + }) + .reduce(function(e, t) { + var n, + r = t.indexOf(':'), + o = h.camelize(t.slice(0, r)), + i = t.slice(r + 1).trim(); + return ( + o.startsWith('webkit') + ? (e[ + ((n = o), + n.charAt(0).toUpperCase() + n.slice(1)) + ] = i) + : (e[o] = i), + e + ); + }, {}); + break; + default: + 0 === t.indexOf('aria-') || 0 === t.indexOf('data-') + ? (e.attrs[t.toLowerCase()] = r) + : (e.attrs[h.camelize(t)] = r); + } + return e; + }, + { attrs: {} } + ), + a = r.style, + s = void 0 === a ? {} : a, + c = f(r, ['style']); + return ( + (i.attrs.style = l({}, i.attrs.style, s)), + t.apply(void 0, [n.tag, l({}, i.attrs, c)].concat(d(o))) + ); + }.bind(null, s.a.createElement); + }.call(this, n(33))); }, function(e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), (t.ReactCSS = t.loop = t.handleActive = t.handleHover = t.hover = void 0); - var r = u(n(597)), - o = u(n(617)), - i = u(n(634)), - a = u(n(635)), - s = u(n(636)), - c = u(n(637)); + var r = u(n(641)), + o = u(n(661)), + i = u(n(678)), + a = u(n(679)), + s = u(n(680)), + c = u(n(681)); function u(e) { return e && e.__esModule ? e : { default: e }; } @@ -3403,22 +3877,81 @@ }, function(e, t, n) { 'use strict'; - function r() { - return (r = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); + function r(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + } + n.d(t, 'a', function() { + return r; + }); + }, + function(e, t, n) { + 'use strict'; + function r(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + function o(e, t, n) { + return t && r(e.prototype, t), n && r(e, n), e; + } + n.d(t, 'a', function() { + return o; + }); + }, + function(e, t, n) { + 'use strict'; + n.d(t, 'a', function() { + return i; + }); + var r = n(42), + o = n(2); + function i(e, t) { + return !t || ('object' !== Object(r.a)(t) && 'function' != typeof t) + ? Object(o.a)(e) + : t; + } + }, + function(e, t, n) { + 'use strict'; + function r(e) { + return (r = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(e) { + return e.__proto__ || Object.getPrototypeOf(e); + })(e); } n.d(t, 'a', function() { return r; }); }, + function(e, t, n) { + 'use strict'; + function r(e, t) { + return (r = + Object.setPrototypeOf || + function(e, t) { + return (e.__proto__ = t), e; + })(e, t); + } + function o(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { value: e, writable: !0, configurable: !0 } + })), + t && r(e, t); + } + n.d(t, 'a', function() { + return o; + }); + }, function(e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), @@ -3450,19 +3983,6 @@ var r = new Set(['Shift', 'Control', 'Alt', 'Meta']); t.MODIFIER_KEY_NAMES = r; }, - function(e, t) { - function n(t) { - return ( - (e.exports = n = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(e) { - return e.__proto__ || Object.getPrototypeOf(e); - }), - n(t) - ); - } - e.exports = n; - }, function(e, t, n) { 'use strict'; (function(e) { @@ -3472,7 +3992,7 @@ n.d(t, 'a', function() { return s; }); - var r = n(441), + var r = n(470), o = void 0 !== e ? e : {}, i = Object(r.a)(o), a = @@ -3484,61 +4004,1028 @@ i.injectGlobal), s = (i.keyframes, i.css); i.sheet, i.caches; - }.call(this, n(26))); + }.call(this, n(33))); + }, + function(e, t, n) { + 'use strict'; + n.d(t, 'a', function() { + return o; + }); + var r = n(3); + function o(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + o = Object.keys(n); + 'function' == typeof Object.getOwnPropertySymbols && + (o = o.concat( + Object.getOwnPropertySymbols(n).filter(function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable; + }) + )), + o.forEach(function(t) { + Object(r.a)(e, t, n[t]); + }); + } + return e; + } + }, + function(e, t, n) { + 'use strict'; + var r, + o, + i, + a = + Object.assign || + function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); + } + return e; + }, + s = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + c = x(n(0)), + u = x(n(1)), + l = x(n(20)), + f = x(n(483)), + d = x(n(484)), + p = x(n(485)), + h = x(n(486)), + g = x(n(487)), + m = x(n(488)), + b = x(n(489)), + y = x(n(490)), + v = n(491), + _ = x(n(492)), + w = x(n(493)); + function x(e) { + return e && e.__esModule ? e : { default: e }; + } + var M = + (0, f.default)( + (r = + (0, d.default)( + (r = + (0, p.default)( + (r = + (0, h.default)( + (r = + (0, g.default)( + (r = + (0, m.default)( + ((i = o = (function(e) { + function t(e) { + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t); + var n = (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && + 'function' != typeof t) + ? e + : t; + })( + this, + ( + t.__proto__ || Object.getPrototypeOf(t) + ).call(this, e) + ); + return ( + (n.state = { + place: e.place || 'top', + desiredPlace: e.place || 'top', + type: 'dark', + effect: 'float', + show: !1, + border: !1, + offset: {}, + extraClass: '', + html: !1, + delayHide: 0, + delayShow: 0, + event: e.event || null, + eventOff: e.eventOff || null, + currentEvent: null, + currentTarget: null, + ariaProps: (0, v.parseAria)(e), + isEmptyTip: !1, + disable: !1, + originTooltip: null, + isMultiline: !1 + }), + n.bind([ + 'showTooltip', + 'updateTooltip', + 'hideTooltip', + 'hideTooltipOnScroll', + 'getTooltipContent', + 'globalRebuild', + 'globalShow', + 'globalHide', + 'onWindowResize', + 'mouseOnToolTip' + ]), + (n.mount = !0), + (n.delayShowLoop = null), + (n.delayHideLoop = null), + (n.delayReshow = null), + (n.intervalUpdateContent = null), + n + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create( + t && t.prototype, + { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + } + )), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + s( + t, + [ + { + key: 'bind', + value: function(e) { + var t = this; + e.forEach(function(e) { + t[e] = t[e].bind(t); + }); + } + }, + { + key: 'componentDidMount', + value: function() { + var e = this.props, + t = e.insecure, + n = e.resizeHide; + t && this.setStyleHeader(), + this.bindListener(), + this.bindWindowEvents(n); + } + }, + { + key: 'componentWillUnmount', + value: function() { + (this.mount = !1), + this.clearTimer(), + this.unbindListener(), + this.removeScrollListener(), + this.unbindWindowEvents(); + } + }, + { + key: 'mouseOnToolTip', + value: function() { + return ( + !( + !this.state.show || + !this.tooltipRef + ) && + (this.tooltipRef.matches || + (this.tooltipRef.msMatchesSelector + ? (this.tooltipRef.matches = this.tooltipRef.msMatchesSelector) + : (this.tooltipRef.matches = this.tooltipRef.mozMatchesSelector)), + this.tooltipRef.matches(':hover')) + ); + } + }, + { + key: 'getTargetArray', + value: function(e) { + var t = void 0; + if (e) { + var n = e + .replace(/\\/g, '\\\\') + .replace(/"/g, '\\"'); + t = document.querySelectorAll( + '[data-tip][data-for="' + n + '"]' + ); + } else + t = document.querySelectorAll( + '[data-tip]:not([data-for])' + ); + return (0, _.default)(t); + } + }, + { + key: 'bindListener', + value: function() { + var e = this, + t = this.props, + n = t.id, + r = t.globalEventOff, + o = t.isCapture; + this.getTargetArray(n).forEach( + function(t) { + var n = e.isCapture(t), + r = e.getEffect(t); + null === + t.getAttribute('currentItem') && + t.setAttribute( + 'currentItem', + 'false' + ), + e.unbindBasicListener(t), + e.isCustomEvent(t) + ? e.customBindListener(t) + : (t.addEventListener( + 'mouseenter', + e.showTooltip, + n + ), + 'float' === r && + t.addEventListener( + 'mousemove', + e.updateTooltip, + n + ), + t.addEventListener( + 'mouseleave', + e.hideTooltip, + n + )); + } + ), + r && + (window.removeEventListener( + r, + this.hideTooltip + ), + window.addEventListener( + r, + this.hideTooltip, + o + )), + this.bindRemovalTracker(); + } + }, + { + key: 'unbindListener', + value: function() { + var e = this, + t = this.props, + n = t.id, + r = t.globalEventOff; + this.getTargetArray(n).forEach( + function(t) { + e.unbindBasicListener(t), + e.isCustomEvent(t) && + e.customUnbindListener(t); + } + ), + r && + window.removeEventListener( + r, + this.hideTooltip + ), + this.unbindRemovalTracker(); + } + }, + { + key: 'unbindBasicListener', + value: function(e) { + var t = this.isCapture(e); + e.removeEventListener( + 'mouseenter', + this.showTooltip, + t + ), + e.removeEventListener( + 'mousemove', + this.updateTooltip, + t + ), + e.removeEventListener( + 'mouseleave', + this.hideTooltip, + t + ); + } + }, + { + key: 'getTooltipContent', + value: function() { + var e = this.props, + t = e.getContent, + n = e.children, + r = void 0; + return ( + t && + (r = Array.isArray(t) + ? t[0] && + t[0](this.state.originTooltip) + : t(this.state.originTooltip)), + (0, y.default)( + this.state.originTooltip, + n, + r, + this.state.isMultiline + ) + ); + } + }, + { + key: 'isEmptyTip', + value: function(e) { + return ( + ('string' == typeof e && + '' === e) || + null === e + ); + } + }, + { + key: 'showTooltip', + value: function(e, t) { + if ( + t && + !this.getTargetArray( + this.props.id + ).some(function(t) { + return t === e.currentTarget; + }) + ) + return; + var n = this.props, + r = n.multiline, + o = n.getContent, + i = e.currentTarget.getAttribute( + 'data-tip' + ), + a = + e.currentTarget.getAttribute( + 'data-multiline' + ) || + r || + !1, + s = + e instanceof window.FocusEvent || + t, + c = !0; + e.currentTarget.getAttribute( + 'data-scroll-hide' + ) + ? (c = + 'true' === + e.currentTarget.getAttribute( + 'data-scroll-hide' + )) + : null != this.props.scrollHide && + (c = this.props.scrollHide); + var u = + e.currentTarget.getAttribute( + 'data-place' + ) || + this.props.place || + 'top', + l = s + ? 'solid' + : this.getEffect(e.currentTarget), + f = + e.currentTarget.getAttribute( + 'data-offset' + ) || + this.props.offset || + {}, + d = (0, b.default)( + e, + e.currentTarget, + this.tooltipRef, + u, + u, + l, + f + ); + d.position && + this.props.overridePosition && + (d.position = this.props.overridePosition( + d.position, + e.currentTarget, + this.tooltipRef, + u, + u, + l, + f + )); + var p = d.isNewState + ? d.newState.place + : u; + this.clearTimer(); + var h = e.currentTarget, + g = this.state.show + ? h.getAttribute( + 'data-delay-update' + ) || this.props.delayUpdate + : 0, + m = this, + v = function() { + m.setState( + { + originTooltip: i, + isMultiline: a, + desiredPlace: u, + place: p, + type: + h.getAttribute( + 'data-type' + ) || + m.props.type || + 'dark', + effect: l, + offset: f, + html: h.getAttribute( + 'data-html' + ) + ? 'true' === + h.getAttribute( + 'data-html' + ) + : m.props.html || !1, + delayShow: + h.getAttribute( + 'data-delay-show' + ) || + m.props.delayShow || + 0, + delayHide: + h.getAttribute( + 'data-delay-hide' + ) || + m.props.delayHide || + 0, + delayUpdate: + h.getAttribute( + 'data-delay-update' + ) || + m.props.delayUpdate || + 0, + border: h.getAttribute( + 'data-border' + ) + ? 'true' === + h.getAttribute( + 'data-border' + ) + : m.props.border || !1, + extraClass: + h.getAttribute( + 'data-class' + ) || + m.props.class || + m.props.className || + '', + disable: h.getAttribute( + 'data-tip-disable' + ) + ? 'true' === + h.getAttribute( + 'data-tip-disable' + ) + : m.props.disable || !1, + currentTarget: h + }, + function() { + c && + m.addScrollListener( + m.state.currentTarget + ), + m.updateTooltip(e), + o && + Array.isArray(o) && + (m.intervalUpdateContent = setInterval( + function() { + if (m.mount) { + var e = + m.props + .getContent, + t = (0, + y.default)( + i, + '', + e[0](), + a + ), + n = m.isEmptyTip( + t + ); + m.setState({ + isEmptyTip: n + }), + m.updatePosition(); + } + }, + o[1] + )); + } + ); + }; + g + ? (this.delayReshow = setTimeout( + v, + g + )) + : v(); + } + }, + { + key: 'updateTooltip', + value: function(e) { + var t = this, + n = this.state, + r = n.delayShow, + o = n.disable, + i = this.props.afterShow, + a = this.getTooltipContent(), + s = parseInt(r, 10), + c = e.currentTarget || e.target; + if ( + !this.mouseOnToolTip() && + !this.isEmptyTip(a) && + !o + ) { + var u = function() { + if ( + (Array.isArray(a) && + a.length > 0) || + a + ) { + var n = !t.state.show; + t.setState( + { + currentEvent: e, + currentTarget: c, + show: !0 + }, + function() { + t.updatePosition(), + n && i && i(e); + } + ); + } + }; + clearTimeout(this.delayShowLoop), + r + ? (this.delayShowLoop = setTimeout( + u, + s + )) + : u(); + } + } + }, + { + key: 'listenForTooltipExit', + value: function() { + this.state.show && + this.tooltipRef && + this.tooltipRef.addEventListener( + 'mouseleave', + this.hideTooltip + ); + } + }, + { + key: 'removeListenerForTooltipExit', + value: function() { + this.state.show && + this.tooltipRef && + this.tooltipRef.removeEventListener( + 'mouseleave', + this.hideTooltip + ); + } + }, + { + key: 'hideTooltip', + value: function(e, t) { + var n = this, + r = + arguments.length > 2 && + void 0 !== arguments[2] + ? arguments[2] + : { isScroll: !1 }, + o = this.state.disable, + i = r.isScroll, + a = i ? 0 : this.state.delayHide, + s = this.props.afterHide, + c = this.getTooltipContent(); + if ( + this.mount && + !this.isEmptyTip(c) && + !o + ) { + if (t) { + var u = this.getTargetArray( + this.props.id + ), + l = u.some(function(t) { + return t === e.currentTarget; + }); + if (!l || !this.state.show) + return; + } + var f = function() { + var t = n.state.show; + n.mouseOnToolTip() + ? n.listenForTooltipExit() + : (n.removeListenerForTooltipExit(), + n.setState( + { show: !1 }, + function() { + n.removeScrollListener(), + t && s && s(e); + } + )); + }; + this.clearTimer(), + a + ? (this.delayHideLoop = setTimeout( + f, + parseInt(a, 10) + )) + : f(); + } + } + }, + { + key: 'hideTooltipOnScroll', + value: function(e, t) { + this.hideTooltip(e, t, { + isScroll: !0 + }); + } + }, + { + key: 'addScrollListener', + value: function(e) { + var t = this.isCapture(e); + window.addEventListener( + 'scroll', + this.hideTooltipOnScroll, + t + ); + } + }, + { + key: 'removeScrollListener', + value: function() { + window.removeEventListener( + 'scroll', + this.hideTooltipOnScroll + ); + } + }, + { + key: 'updatePosition', + value: function() { + var e = this, + t = this.state, + n = t.currentEvent, + r = t.currentTarget, + o = t.place, + i = t.desiredPlace, + a = t.effect, + s = t.offset, + c = this.tooltipRef, + u = (0, b.default)( + n, + r, + c, + o, + i, + a, + s + ); + if ( + (u.position && + this.props.overridePosition && + (u.position = this.props.overridePosition( + u.position, + n, + r, + c, + o, + i, + a, + s + )), + u.isNewState) + ) + return this.setState( + u.newState, + function() { + e.updatePosition(); + } + ); + (c.style.left = + u.position.left + 'px'), + (c.style.top = + u.position.top + 'px'); + } + }, + { + key: 'setStyleHeader', + value: function() { + var e = document.getElementsByTagName( + 'head' + )[0]; + if ( + !e.querySelector( + 'style[id="react-tooltip"]' + ) + ) { + var t = document.createElement( + 'style' + ); + (t.id = 'react-tooltip'), + (t.innerHTML = w.default), + n.nc && + t.setAttribute('nonce', n.nc), + e.insertBefore(t, e.firstChild); + } + } + }, + { + key: 'clearTimer', + value: function() { + clearTimeout(this.delayShowLoop), + clearTimeout(this.delayHideLoop), + clearTimeout(this.delayReshow), + clearInterval( + this.intervalUpdateContent + ); + } + }, + { + key: 'render', + value: function() { + var e = this, + n = this.state, + r = n.extraClass, + o = n.html, + i = n.ariaProps, + s = n.disable, + u = this.getTooltipContent(), + f = this.isEmptyTip(u), + d = (0, l.default)( + '__react_component_tooltip', + { + show: + this.state.show && !s && !f + }, + { border: this.state.border }, + { + 'place-top': + 'top' === this.state.place + }, + { + 'place-bottom': + 'bottom' === this.state.place + }, + { + 'place-left': + 'left' === this.state.place + }, + { + 'place-right': + 'right' === this.state.place + }, + { + 'type-dark': + 'dark' === this.state.type + }, + { + 'type-success': + 'success' === this.state.type + }, + { + 'type-warning': + 'warning' === this.state.type + }, + { + 'type-error': + 'error' === this.state.type + }, + { + 'type-info': + 'info' === this.state.type + }, + { + 'type-light': + 'light' === this.state.type + }, + { + allow_hover: this.props + .delayUpdate + }, + { + allow_click: this.props + .clickable + } + ), + p = this.props.wrapper; + return ( + t.supportedWrappers.indexOf(p) < + 0 && (p = t.defaultProps.wrapper), + o + ? c.default.createElement( + p, + a( + { + className: d + ' ' + r, + id: this.props.id, + ref: function(t) { + return (e.tooltipRef = t); + } + }, + i, + { + 'data-id': 'tooltip', + dangerouslySetInnerHTML: { + __html: u + } + } + ) + ) + : c.default.createElement( + p, + a( + { + className: d + ' ' + r, + id: this.props.id + }, + i, + { + ref: function(t) { + return (e.tooltipRef = t); + }, + 'data-id': 'tooltip' + } + ), + u + ) + ); + } + } + ], + [ + { + key: 'getDerivedStateFromProps', + value: function(e, t) { + var n = t.ariaProps, + r = (0, v.parseAria)(e); + return Object.keys(r).some(function( + e + ) { + return r[e] !== n[e]; + }) + ? a({}, t, { ariaProps: r }) + : null; + } + } + ] + ), + t + ); + })(c.default.Component)), + (o.propTypes = { + children: u.default.any, + place: u.default.string, + type: u.default.string, + effect: u.default.string, + offset: u.default.object, + multiline: u.default.bool, + border: u.default.bool, + insecure: u.default.bool, + class: u.default.string, + className: u.default.string, + id: u.default.string, + html: u.default.bool, + delayHide: u.default.number, + delayUpdate: u.default.number, + delayShow: u.default.number, + event: u.default.string, + eventOff: u.default.string, + watchWindow: u.default.bool, + isCapture: u.default.bool, + globalEventOff: u.default.string, + getContent: u.default.any, + afterShow: u.default.func, + afterHide: u.default.func, + overridePosition: u.default.func, + disable: u.default.bool, + scrollHide: u.default.bool, + resizeHide: u.default.bool, + wrapper: u.default.string, + clickable: u.default.bool + }), + (o.defaultProps = { + insecure: !0, + resizeHide: !0, + wrapper: 'div', + clickable: !1 + }), + (o.supportedWrappers = ['div', 'span']), + (o.displayName = 'ReactTooltip'), + (r = i)) + ) || r) + ) || r) + ) || r) + ) || r) + ) || r) + ) || r; + e.exports = M; }, function(e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }); - var r = n(638); + var r = n(682); Object.defineProperty(t, 'Alpha', { enumerable: !0, get: function() { return f(r).default; } }); - var o = n(150); + var o = n(165); Object.defineProperty(t, 'Checkboard', { enumerable: !0, get: function() { return f(o).default; } }); - var i = n(641); + var i = n(685); Object.defineProperty(t, 'EditableInput', { enumerable: !0, get: function() { return f(i).default; } }); - var a = n(642); + var a = n(686); Object.defineProperty(t, 'Hue', { enumerable: !0, get: function() { return f(a).default; } }); - var s = n(644); + var s = n(688); Object.defineProperty(t, 'Raised', { enumerable: !0, get: function() { return f(s).default; } }); - var c = n(645); + var c = n(689); Object.defineProperty(t, 'Saturation', { enumerable: !0, get: function() { return f(c).default; } }); - var u = n(239); + var u = n(261); Object.defineProperty(t, 'ColorWrap', { enumerable: !0, get: function() { return f(u).default; } }); - var l = n(651); + var l = n(695); function f(e) { return e && e.__esModule ? e : { default: e }; } @@ -3549,15 +5036,6 @@ } }); }, - function(e, t, n) { - e.exports = n(707); - }, - function(e, t) { - e.exports = function(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - }; - }, function(e, t, n) { var r; /*! @@ -3590,6 +5068,15 @@ }.apply(t, [])) || (e.exports = r); })(); }, + function(e, t, n) { + e.exports = n(751); + }, + function(e, t) { + e.exports = function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + }; + }, function(e, t) { e.exports = function(e, t, n) { return ( @@ -3605,6 +5092,28 @@ ); }; }, + function(e, t, n) { + 'use strict'; + n.d(t, 'a', function() { + return o; + }); + var r = n(25); + function o(e, t) { + if (null == e) return {}; + var n, + o, + i = Object(r.a)(e, t); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(e); + for (o = 0; o < a.length; o++) + (n = a[o]), + t.indexOf(n) >= 0 || + (Object.prototype.propertyIsEnumerable.call(e, n) && + (i[n] = e[n])); + } + return i; + } + }, function(e, t, n) { 'use strict'; function r(e, t) { @@ -3636,7 +5145,27 @@ }; }, function(e, t, n) { - var r = n(508); + var r = n(552), + o = n(112); + e.exports = function(e, t) { + return !t || ('object' !== r(t) && 'function' != typeof t) ? o(e) : t; + }; + }, + function(e, t) { + function n(t) { + return ( + (e.exports = n = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(e) { + return e.__proto__ || Object.getPrototypeOf(e); + }), + n(t) + ); + } + e.exports = n; + }, + function(e, t, n) { + var r = n(553); e.exports = function(e, t) { if ('function' != typeof t && null !== t) throw new TypeError( @@ -3649,14 +5178,7 @@ }; }, function(e, t, n) { - var r = n(509), - o = n(97); - e.exports = function(e, t) { - return !t || ('object' !== r(t) && 'function' != typeof t) ? o(e) : t; - }; - }, - function(e, t, n) { - var r = n(142); + var r = n(157); e.exports = function(e, t) { return r(e, t); }; @@ -3708,7 +5230,7 @@ var t = e.date; return 'Selected as end date. '.concat(t); }, - x = { + w = { calendarLabel: 'Calendar', closeDatePicker: 'Close', focusStartDate: r, @@ -3742,8 +5264,8 @@ dateIsSelectedAsStartDate: v, dateIsSelectedAsEndDate: _ }; - t.default = x; - var w = { + t.default = w; + var x = { calendarLabel: 'Calendar', closeDatePicker: 'Close', clearDates: 'Clear Dates', @@ -3775,7 +5297,7 @@ dateIsSelectedAsStartDate: v, dateIsSelectedAsEndDate: _ }; - t.DateRangePickerPhrases = w; + t.DateRangePickerPhrases = x; var M = { focusStartDate: r, clearDates: 'Clear Dates', @@ -3813,7 +5335,7 @@ t.SingleDatePickerPhrases = k; var S = { clearDate: 'Clear Date', keyboardNavigationInstructions: p }; t.SingleDatePickerInputPhrases = S; - var A = { + var O = { calendarLabel: 'Calendar', jumpToPrevMonth: o, jumpToNextMonth: i, @@ -3842,8 +5364,8 @@ dateIsSelectedAsStartDate: v, dateIsSelectedAsEndDate: _ }; - t.DayPickerPhrases = A; - var O = { + t.DayPickerPhrases = O; + var E = { keyboardShortcuts: 'Keyboard Shortcuts', showKeyboardShortcutsPanel: 'Open the keyboard shortcuts panel.', hideKeyboardShortcutsPanel: 'Close the shortcuts panel.', @@ -3862,9 +5384,9 @@ moveFocustoStartAndEndOfWeek: 'Go to the first or last day of a week.', returnFocusToInput: d }; - t.DayPickerKeyboardShortcutsPhrases = O; - var E = { jumpToPrevMonth: o, jumpToNextMonth: i }; - t.DayPickerNavigationPhrases = E; + t.DayPickerKeyboardShortcutsPhrases = E; + var A = { jumpToPrevMonth: o, jumpToNextMonth: i }; + t.DayPickerNavigationPhrases = A; var T = { chooseAvailableDate: m, dateIsUnavailable: b, @@ -3875,12 +5397,24 @@ t.CalendarDayPhrases = T; }, function(e, t, n) { - var r = n(455), - o = n(495)(function(e, t, n) { + var r = n(494), + o = n(534)(function(e, t, n) { r(e, t, n); }); e.exports = o; }, + function(e, t) { + var n; + n = (function() { + return this; + })(); + try { + n = n || new Function('return this')(); + } catch (e) { + 'object' == typeof window && (n = window); + } + e.exports = n; + }, function(e, t) { var n = Array.isArray; e.exports = n; @@ -3940,7 +5474,7 @@ 'use strict'; t.__esModule = !0; var r, - o = n(126), + o = n(141), i = (r = o) && r.__esModule ? r : { default: r }; t.default = function(e, t) { if (!e) @@ -3955,29 +5489,49 @@ }; }, function(e, t, n) { - var r = n(451), - o = n(452), - i = n(453), - a = n(454); + var r = n(480), + o = n(481), + i = n(482); e.exports = function(e) { - return r(e) || o(e) || i(e) || a(); + return r(e) || o(e) || i(); }; }, - function(e, t) { - var n; - n = (function() { - return this; - })(); - try { - n = n || new Function('return this')(); - } catch (e) { - 'object' == typeof window && (n = window); + function(e, t, n) { + 'use strict'; + e.exports = function(e, t, n, r, o, i, a, s) { + if (!e) { + var c; + if (void 0 === t) + c = new Error( + 'Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.' + ); + else { + var u = [n, r, o, i, a, s], + l = 0; + (c = new Error( + t.replace(/%s/g, function() { + return u[l++]; + }) + )).name = 'Invariant Violation'; + } + throw ((c.framesToPop = 1), c); + } + }; + }, + function(e, t, n) { + 'use strict'; + function r(e, t) { + (e.prototype = Object.create(t.prototype)), + (e.prototype.constructor = e), + (e.__proto__ = t); } - e.exports = n; + n.d(t, 'a', function() { + return r; + }); }, function(e, t, n) { 'use strict'; - var r = n(62); + var r = n(76); t.a = function() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; @@ -4005,7 +5559,7 @@ n.d(t, 'createStore', function() { return s; }); - var r = n(176), + var r = n(197), o = function() { return Math.random() .toString(36) @@ -4065,7 +5619,7 @@ throw new Error('Expected the listener to be a function.'); if (d) throw new Error( - 'You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.' + 'You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.' ); var t = !0; return ( @@ -4075,11 +5629,11 @@ if (t) { if (d) throw new Error( - 'You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.' + 'You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.' ); (t = !1), p(); var n = f.indexOf(e); - f.splice(n, 1), (l = null); + f.splice(n, 1); } } ); @@ -4104,35 +5658,38 @@ } return e; } - function b(e) { - if ('function' != typeof e) - throw new Error('Expected the nextReducer to be a function.'); - (c = e), m({ type: i.REPLACE }); - } - function y() { - var e, - t = g; - return ( - ((e = { - subscribe: function(e) { - if ('object' != typeof e || null === e) - throw new TypeError('Expected the observer to be an object.'); - function n() { - e.next && e.next(h()); - } - return n(), { unsubscribe: t(n) }; - } - })[r.a] = function() { - return this; - }), - e - ); - } return ( m({ type: i.INIT }), - ((o = { dispatch: m, subscribe: g, getState: h, replaceReducer: b })[ - r.a - ] = y), + ((o = { + dispatch: m, + subscribe: g, + getState: h, + replaceReducer: function(e) { + if ('function' != typeof e) + throw new Error('Expected the nextReducer to be a function.'); + (c = e), m({ type: i.REPLACE }); + } + })[r.a] = function() { + var e, + t = g; + return ( + ((e = { + subscribe: function(e) { + if ('object' != typeof e || null === e) + throw new TypeError( + 'Expected the observer to be an object.' + ); + function n() { + e.next && e.next(h()); + } + return n(), { unsubscribe: t(n) }; + } + })[r.a] = function() { + return this; + }), + e + ); + }), o ); } @@ -4189,7 +5746,7 @@ } (o[u] = d), (r = r || d !== f); } - return (r = r || s.length !== Object.keys(e).length) ? o : e; + return r ? o : e; }; } function l(e, t) { @@ -4296,6 +5853,42 @@ }; } }, + function(e, t, n) { + 'use strict'; + function r(e) { + return (r = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function(e) { + return typeof e; + } + : function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e; + })(e); + } + function o(e) { + return (o = + 'function' == typeof Symbol && 'symbol' === r(Symbol.iterator) + ? function(e) { + return r(e); + } + : function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : r(e); + })(e); + } + n.d(t, 'a', function() { + return o; + }); + }, function(e, t, n) { 'use strict'; (t.__esModule = !0), @@ -4307,9 +5900,9 @@ function(e, t, n) { 'use strict'; t.__esModule = !0; - var r = a(n(776)), - o = a(n(780)), - i = a(n(126)); + var r = a(n(829)), + o = a(n(833)), + i = a(n(141)); function a(e) { return e && e.__esModule ? e : { default: e }; } @@ -4332,18 +5925,7 @@ }, function(e, t, n) { 'use strict'; - function r(e, t) { - (e.prototype = Object.create(t.prototype)), - (e.prototype.constructor = e), - (e.__proto__ = t); - } - n.d(t, 'a', function() { - return r; - }); - }, - function(e, t, n) { - 'use strict'; - var r = n(704); + var r = n(748); e.exports = function(e, t, n) { return !r(e.props, t) || !r(e.state, n); }; @@ -4383,56 +5965,93 @@ s = void 0 === n ? 'styles' : n, l = t.themePropName, d = void 0 === l ? 'theme' : l, - b = t.cssPropName, - w = void 0 === b ? 'css' : b, - M = t.flushBefore, - k = void 0 !== M && M, - S = t.pureComponent, - A = void 0 !== S && S, + h = t.cssPropName, + y = void 0 === h ? 'css' : h, + v = t.flushBefore, + _ = void 0 !== v && v, + w = t.pureComponent, + x = void 0 !== w && w, + M = void 0, + k = void 0, + S = void 0, O = void 0, - E = void 0, - T = void 0, - C = void 0, - L = v(A); - function P(e) { + E = (function(e) { + if (e) { + if (!a.default.PureComponent) + throw new ReferenceError( + 'withStyles() pureComponent option requires React 15.3.0 or later' + ); + return a.default.PureComponent; + } + return a.default.Component; + })(x); + function A(e) { return e === u.DIRECTIONS.LTR ? f.default.resolveLTR : f.default.resolveRTL; } - function D(e) { - return e === u.DIRECTIONS.LTR ? T : C; - } - function z(t, n) { - var r = D(t), - o = t === u.DIRECTIONS.LTR ? O : E, + function T(t, n) { + var r = (function(e) { + return e === u.DIRECTIONS.LTR ? S : O; + })(t), + o = t === u.DIRECTIONS.LTR ? M : k, i = f.default.get(); - return ( - (o && r === i) || - (t === u.DIRECTIONS.RTL - ? ((E = e ? f.default.createRTL(e) : y), (C = i), (o = E)) - : ((O = e ? f.default.createLTR(e) : y), (T = i), (o = O))), - o - ); + return o && r === i + ? o + : (t === u.DIRECTIONS.RTL + ? ((k = e ? f.default.createRTL(e) : g), (O = i), (o = k)) + : ((M = e ? f.default.createLTR(e) : g), (S = i), (o = M)), + o); } - function N(e, t) { - return { resolveMethod: P(e), styleDef: z(e) }; + function C(e, t) { + return { resolveMethod: A(e), styleDef: T(e) }; } return function(e) { var t = e.displayName || e.name || 'Component', n = (function(t) { function n(e, t) { - p(this, n); - var r = h( + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, n); + var r = (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( this, (n.__proto__ || Object.getPrototypeOf(n)).call(this, e, t) ), o = r.context[u.CHANNEL] ? r.context[u.CHANNEL].getState() - : x; - return (r.state = N(o)), r; + : b; + return (r.state = C(o)), r; } return ( - g(n, t), + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(n, t), o(n, [ { key: 'componentDidMount', @@ -4442,7 +6061,7 @@ (this.channelUnsubscribe = this.context[ u.CHANNEL ].subscribe(function(t) { - e.setState(N(t)); + e.setState(C(t)); })); } }, @@ -4456,7 +6075,7 @@ key: 'render', value: function() { var t; - k && f.default.flush(); + _ && f.default.flush(); var n = this.state, o = n.resolveMethod, i = n.styleDef; @@ -4465,9 +6084,9 @@ r( {}, this.props, - (m((t = {}), d, f.default.get()), - m(t, s, i()), - m(t, w, o), + (p((t = {}), d, f.default.get()), + p(t, s, i()), + p(t, y, o), t) ) ); @@ -4476,63 +6095,33 @@ ]), n ); - })(L); + })(E); return ( (n.WrappedComponent = e), (n.displayName = 'withStyles(' + String(t) + ')'), - (n.contextTypes = _), + (n.contextTypes = m), e.propTypes && ((n.propTypes = (0, i.default)({}, e.propTypes)), delete n.propTypes[s], delete n.propTypes[d], - delete n.propTypes[w]), + delete n.propTypes[y]), e.defaultProps && (n.defaultProps = (0, i.default)({}, e.defaultProps)), (0, c.default)(n, e) ); }; }; - var i = d(n(708)), + var i = d(n(752)), a = d(n(0)), s = d(n(1)), - c = d(n(44)), - u = n(712), - l = d(n(713)), - f = d(n(714)); + c = d(n(57)), + u = n(756), + l = d(n(757)), + f = d(n(758)); function d(e) { return e && e.__esModule ? e : { default: e }; } - function p(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function h(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) ? e : t; - } - function g(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - } - function m(e, t, n) { + function p(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { @@ -4551,46 +6140,12 @@ theme: s.default.object.isRequired, css: s.default.func.isRequired }); - var b = {}, - y = function() { - return b; - }; - function v(e) { - if (e) { - if (!a.default.PureComponent) - throw new ReferenceError( - 'withStyles() pureComponent option requires React 15.3.0 or later' - ); - return a.default.PureComponent; - } - return a.default.Component; - } - var _ = m({}, u.CHANNEL, l.default), - x = u.DIRECTIONS.LTR; - }, - function(e, t, n) { - 'use strict'; - function r(e, t) { - if (e.length !== t.length) return !1; - for (var n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1; - return !0; - } - t.a = function(e, t) { - var n; - void 0 === t && (t = r); - var o, - i = [], - a = !1; - return function() { - for (var r = [], s = 0; s < arguments.length; s++) - r[s] = arguments[s]; - return ( - (a && n === this && t(r, i)) || - ((o = e.apply(this, r)), (a = !0), (n = this), (i = r)), - o - ); + var h = {}, + g = function() { + return h; }; - }; + var m = p({}, u.CHANNEL, l.default), + b = u.DIRECTIONS.LTR; }, function(e, t) { e.exports = function(e) { @@ -4599,7 +6154,7 @@ }; }, function(e, t, n) { - var r = n(183), + var r = n(204), o = 'object' == typeof self && self && self.Object === Object && self, i = r || o || Function('return this')(); e.exports = i; @@ -4608,8 +6163,8 @@ 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), (t.red = t.getContrastingColor = t.isValidHex = t.toState = t.simpleCheckForValidColor = void 0); - var r = i(n(648)), - o = i(n(650)); + var r = i(n(692)), + o = i(n(694)); function i(e) { return e && e.__esModule ? e : { default: e }; } @@ -4669,6 +6224,28 @@ }); t.default = t; }, + function(e, t, n) { + 'use strict'; + function r(e, t) { + if (e.length !== t.length) return !1; + for (var n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1; + return !0; + } + t.a = function(e, t) { + var n; + void 0 === t && (t = r); + var o, + i = [], + a = !1; + return function() { + for (var r = [], s = 0; s < arguments.length; s++) + r[s] = arguments[s]; + return a && n === this && t(r, i) + ? o + : ((o = e.apply(this, r)), (a = !0), (n = this), (i = r), o); + }; + }; + }, function(e, t, n) { (function(e, r) { var o; @@ -4680,136 +6257,177 @@ * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */ (function() { - var i = 'Expected a function', - a = '__lodash_placeholder__', - s = [ - ['ary', 128], - ['bind', 1], - ['bindKey', 2], - ['curry', 8], - ['curryRight', 16], - ['flip', 512], - ['partial', 32], - ['partialRight', 64], - ['rearg', 256] + var i, + a = 200, + s = + 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.', + c = 'Expected a function', + u = '__lodash_hash_undefined__', + l = 500, + f = '__lodash_placeholder__', + d = 1, + p = 2, + h = 4, + g = 1, + m = 2, + b = 1, + y = 2, + v = 4, + _ = 8, + w = 16, + x = 32, + M = 64, + k = 128, + S = 256, + O = 512, + E = 30, + A = '...', + T = 800, + C = 16, + L = 1, + P = 2, + D = 1 / 0, + j = 9007199254740991, + z = 17976931348623157e292, + N = NaN, + R = 4294967295, + I = R - 1, + F = R >>> 1, + q = [ + ['ary', k], + ['bind', b], + ['bindKey', y], + ['curry', _], + ['curryRight', w], + ['flip', O], + ['partial', x], + ['partialRight', M], + ['rearg', S] ], - c = '[object Arguments]', - u = '[object Array]', - l = '[object Boolean]', - f = '[object Date]', - d = '[object Error]', - p = '[object Function]', - h = '[object GeneratorFunction]', - g = '[object Map]', - m = '[object Number]', - b = '[object Object]', - y = '[object RegExp]', - v = '[object Set]', - _ = '[object String]', - x = '[object Symbol]', - w = '[object WeakMap]', - M = '[object ArrayBuffer]', - k = '[object DataView]', - S = '[object Float32Array]', - A = '[object Float64Array]', - O = '[object Int8Array]', - E = '[object Int16Array]', - T = '[object Int32Array]', - C = '[object Uint8Array]', - L = '[object Uint16Array]', - P = '[object Uint32Array]', - D = /\b__p \+= '';/g, - z = /\b(__p \+=) '' \+/g, - N = /(__e\(.*?\)|\b__t\)) \+\n'';/g, - j = /&(?:amp|lt|gt|quot|#39);/g, - R = /[&<>"']/g, - I = RegExp(j.source), - F = RegExp(R.source), - q = /<%-([\s\S]+?)%>/g, - B = /<%([\s\S]+?)%>/g, - H = /<%=([\s\S]+?)%>/g, - Y = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, - W = /^\w*$/, - V = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, - U = /[\\^$.*+?()[\]{}|]/g, - X = RegExp(U.source), - G = /^\s+|\s+$/g, - K = /^\s+/, - $ = /\s+$/, - Q = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, - J = /\{\n\/\* \[wrapped with (.+)\] \*/, - Z = /,? & /, - ee = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, - te = /\\(\\)?/g, - ne = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, - re = /\w*$/, - oe = /^[-+]0x[0-9a-f]+$/i, - ie = /^0b[01]+$/i, - ae = /^\[object .+?Constructor\]$/, - se = /^0o[0-7]+$/i, - ce = /^(?:0|[1-9]\d*)$/, - ue = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, - le = /($^)/, - fe = /['\n\r\u2028\u2029\\]/g, - de = '\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff', - pe = + B = '[object Arguments]', + H = '[object Array]', + Y = '[object AsyncFunction]', + W = '[object Boolean]', + V = '[object Date]', + U = '[object DOMException]', + X = '[object Error]', + G = '[object Function]', + K = '[object GeneratorFunction]', + $ = '[object Map]', + Q = '[object Number]', + J = '[object Null]', + Z = '[object Object]', + ee = '[object Proxy]', + te = '[object RegExp]', + ne = '[object Set]', + re = '[object String]', + oe = '[object Symbol]', + ie = '[object Undefined]', + ae = '[object WeakMap]', + se = '[object WeakSet]', + ce = '[object ArrayBuffer]', + ue = '[object DataView]', + le = '[object Float32Array]', + fe = '[object Float64Array]', + de = '[object Int8Array]', + pe = '[object Int16Array]', + he = '[object Int32Array]', + ge = '[object Uint8Array]', + me = '[object Uint8ClampedArray]', + be = '[object Uint16Array]', + ye = '[object Uint32Array]', + ve = /\b__p \+= '';/g, + _e = /\b(__p \+=) '' \+/g, + we = /(__e\(.*?\)|\b__t\)) \+\n'';/g, + xe = /&(?:amp|lt|gt|quot|#39);/g, + Me = /[&<>"']/g, + ke = RegExp(xe.source), + Se = RegExp(Me.source), + Oe = /<%-([\s\S]+?)%>/g, + Ee = /<%([\s\S]+?)%>/g, + Ae = /<%=([\s\S]+?)%>/g, + Te = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, + Ce = /^\w*$/, + Le = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, + Pe = /[\\^$.*+?()[\]{}|]/g, + De = RegExp(Pe.source), + je = /^\s+|\s+$/g, + ze = /^\s+/, + Ne = /\s+$/, + Re = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, + Ie = /\{\n\/\* \[wrapped with (.+)\] \*/, + Fe = /,? & /, + qe = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, + Be = /\\(\\)?/g, + He = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, + Ye = /\w*$/, + We = /^[-+]0x[0-9a-f]+$/i, + Ve = /^0b[01]+$/i, + Ue = /^\[object .+?Constructor\]$/, + Xe = /^0o[0-7]+$/i, + Ge = /^(?:0|[1-9]\d*)$/, + Ke = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, + $e = /($^)/, + Qe = /['\n\r\u2028\u2029\\]/g, + Je = '\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff', + Ze = '\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000', - he = '[\\ud800-\\udfff]', - ge = '[' + pe + ']', - me = '[' + de + ']', - be = '\\d+', - ye = '[\\u2700-\\u27bf]', - ve = '[a-z\\xdf-\\xf6\\xf8-\\xff]', - _e = + et = '[\\ud800-\\udfff]', + tt = '[' + Ze + ']', + nt = '[' + Je + ']', + rt = '\\d+', + ot = '[\\u2700-\\u27bf]', + it = '[a-z\\xdf-\\xf6\\xf8-\\xff]', + at = '[^\\ud800-\\udfff' + - pe + - be + + Ze + + rt + '\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]', - xe = '\\ud83c[\\udffb-\\udfff]', - we = '[^\\ud800-\\udfff]', - Me = '(?:\\ud83c[\\udde6-\\uddff]){2}', - ke = '[\\ud800-\\udbff][\\udc00-\\udfff]', - Se = '[A-Z\\xc0-\\xd6\\xd8-\\xde]', - Ae = '(?:' + ve + '|' + _e + ')', - Oe = '(?:' + Se + '|' + _e + ')', - Ee = '(?:' + me + '|' + xe + ')' + '?', - Te = + st = '\\ud83c[\\udffb-\\udfff]', + ct = '[^\\ud800-\\udfff]', + ut = '(?:\\ud83c[\\udde6-\\uddff]){2}', + lt = '[\\ud800-\\udbff][\\udc00-\\udfff]', + ft = '[A-Z\\xc0-\\xd6\\xd8-\\xde]', + dt = '(?:' + it + '|' + at + ')', + pt = '(?:' + ft + '|' + at + ')', + ht = '(?:' + nt + '|' + st + ')' + '?', + gt = '[\\ufe0e\\ufe0f]?' + - Ee + + ht + ('(?:\\u200d(?:' + - [we, Me, ke].join('|') + + [ct, ut, lt].join('|') + ')[\\ufe0e\\ufe0f]?' + - Ee + + ht + ')*'), - Ce = '(?:' + [ye, Me, ke].join('|') + ')' + Te, - Le = '(?:' + [we + me + '?', me, Me, ke, he].join('|') + ')', - Pe = RegExp("['’]", 'g'), - De = RegExp(me, 'g'), - ze = RegExp(xe + '(?=' + xe + ')|' + Le + Te, 'g'), - Ne = RegExp( + mt = '(?:' + [ot, ut, lt].join('|') + ')' + gt, + bt = '(?:' + [ct + nt + '?', nt, ut, lt, et].join('|') + ')', + yt = RegExp("['’]", 'g'), + vt = RegExp(nt, 'g'), + _t = RegExp(st + '(?=' + st + ')|' + bt + gt, 'g'), + wt = RegExp( [ - Se + + ft + '?' + - ve + + it + "+(?:['’](?:d|ll|m|re|s|t|ve))?(?=" + - [ge, Se, '$'].join('|') + + [tt, ft, '$'].join('|') + ')', - Oe + + pt + "+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=" + - [ge, Se + Ae, '$'].join('|') + + [tt, ft + dt, '$'].join('|') + ')', - Se + '?' + Ae + "+(?:['’](?:d|ll|m|re|s|t|ve))?", - Se + "+(?:['’](?:D|LL|M|RE|S|T|VE))?", + ft + '?' + dt + "+(?:['’](?:d|ll|m|re|s|t|ve))?", + ft + "+(?:['’](?:D|LL|M|RE|S|T|VE))?", '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])', '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])', - be, - Ce + rt, + mt ].join('|'), 'g' ), - je = RegExp('[\\u200d\\ud800-\\udfff' + de + '\\ufe0e\\ufe0f]'), - Re = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, - Ie = [ + xt = RegExp('[\\u200d\\ud800-\\udfff' + Je + '\\ufe0e\\ufe0f]'), + Mt = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, + kt = [ 'Array', 'Buffer', 'DataView', @@ -4841,24 +6459,22 @@ 'parseInt', 'setTimeout' ], - Fe = -1, - qe = {}; - (qe[S] = qe[A] = qe[O] = qe[E] = qe[T] = qe[C] = qe[ - '[object Uint8ClampedArray]' - ] = qe[L] = qe[P] = !0), - (qe[c] = qe[u] = qe[M] = qe[l] = qe[k] = qe[f] = qe[d] = qe[p] = qe[ - g - ] = qe[m] = qe[b] = qe[y] = qe[v] = qe[_] = qe[w] = !1); - var Be = {}; - (Be[c] = Be[u] = Be[M] = Be[k] = Be[l] = Be[f] = Be[S] = Be[A] = Be[ - O - ] = Be[E] = Be[T] = Be[g] = Be[m] = Be[b] = Be[y] = Be[v] = Be[ - _ - ] = Be[x] = Be[C] = Be['[object Uint8ClampedArray]'] = Be[L] = Be[ - P - ] = !0), - (Be[d] = Be[p] = Be[w] = !1); - var He = { + St = -1, + Ot = {}; + (Ot[le] = Ot[fe] = Ot[de] = Ot[pe] = Ot[he] = Ot[ge] = Ot[me] = Ot[ + be + ] = Ot[ye] = !0), + (Ot[B] = Ot[H] = Ot[ce] = Ot[W] = Ot[ue] = Ot[V] = Ot[X] = Ot[ + G + ] = Ot[$] = Ot[Q] = Ot[Z] = Ot[te] = Ot[ne] = Ot[re] = Ot[ae] = !1); + var Et = {}; + (Et[B] = Et[H] = Et[ce] = Et[ue] = Et[W] = Et[V] = Et[le] = Et[ + fe + ] = Et[de] = Et[pe] = Et[he] = Et[$] = Et[Q] = Et[Z] = Et[te] = Et[ + ne + ] = Et[re] = Et[oe] = Et[ge] = Et[me] = Et[be] = Et[ye] = !0), + (Et[X] = Et[G] = Et[ae] = !1); + var At = { '\\': '\\', "'": "'", '\n': 'n', @@ -4866,29 +6482,29 @@ '\u2028': 'u2028', '\u2029': 'u2029' }, - Ye = parseFloat, - We = parseInt, - Ve = 'object' == typeof e && e && e.Object === Object && e, - Ue = + Tt = parseFloat, + Ct = parseInt, + Lt = 'object' == typeof e && e && e.Object === Object && e, + Pt = 'object' == typeof self && self && self.Object === Object && self, - Xe = Ve || Ue || Function('return this')(), - Ge = t && !t.nodeType && t, - Ke = Ge && 'object' == typeof r && r && !r.nodeType && r, - $e = Ke && Ke.exports === Ge, - Qe = $e && Ve.process, - Je = (function() { + Dt = Lt || Pt || Function('return this')(), + jt = t && !t.nodeType && t, + zt = jt && 'object' == typeof r && r && !r.nodeType && r, + Nt = zt && zt.exports === jt, + Rt = Nt && Lt.process, + It = (function() { try { - var e = Ke && Ke.require && Ke.require('util').types; - return e || (Qe && Qe.binding && Qe.binding('util')); + var e = zt && zt.require && zt.require('util').types; + return e || (Rt && Rt.binding && Rt.binding('util')); } catch (e) {} })(), - Ze = Je && Je.isArrayBuffer, - et = Je && Je.isDate, - tt = Je && Je.isMap, - nt = Je && Je.isRegExp, - rt = Je && Je.isSet, - ot = Je && Je.isTypedArray; - function it(e, t, n) { + Ft = It && It.isArrayBuffer, + qt = It && It.isDate, + Bt = It && It.isMap, + Ht = It && It.isRegExp, + Yt = It && It.isSet, + Wt = It && It.isTypedArray; + function Vt(e, t, n) { switch (n.length) { case 0: return e.call(t); @@ -4901,14 +6517,14 @@ } return e.apply(t, n); } - function at(e, t, n, r) { + function Ut(e, t, n, r) { for (var o = -1, i = null == e ? 0 : e.length; ++o < i; ) { var a = e[o]; t(r, a, n(a), e); } return r; } - function st(e, t) { + function Xt(e, t) { for ( var n = -1, r = null == e ? 0 : e.length; ++n < r && !1 !== t(e[n], n, e); @@ -4916,7 +6532,7 @@ ); return e; } - function ct(e, t) { + function Gt(e, t) { for ( var n = null == e ? 0 : e.length; n-- && !1 !== t(e[n], n, e); @@ -4924,12 +6540,12 @@ ); return e; } - function ut(e, t) { + function Kt(e, t) { for (var n = -1, r = null == e ? 0 : e.length; ++n < r; ) if (!t(e[n], n, e)) return !1; return !0; } - function lt(e, t) { + function $t(e, t) { for ( var n = -1, r = null == e ? 0 : e.length, o = 0, i = []; ++n < r; @@ -4940,15 +6556,15 @@ } return i; } - function ft(e, t) { - return !!(null == e ? 0 : e.length) && xt(e, t, 0) > -1; + function Qt(e, t) { + return !!(null == e ? 0 : e.length) && cn(e, t, 0) > -1; } - function dt(e, t, n) { + function Jt(e, t, n) { for (var r = -1, o = null == e ? 0 : e.length; ++r < o; ) if (n(t, e[r])) return !0; return !1; } - function pt(e, t) { + function Zt(e, t) { for ( var n = -1, r = null == e ? 0 : e.length, o = Array(r); ++n < r; @@ -4957,29 +6573,29 @@ o[n] = t(e[n], n, e); return o; } - function ht(e, t) { + function en(e, t) { for (var n = -1, r = t.length, o = e.length; ++n < r; ) e[o + n] = t[n]; return e; } - function gt(e, t, n, r) { + function tn(e, t, n, r) { var o = -1, i = null == e ? 0 : e.length; for (r && i && (n = e[++o]); ++o < i; ) n = t(n, e[o], o, e); return n; } - function mt(e, t, n, r) { + function nn(e, t, n, r) { var o = null == e ? 0 : e.length; for (r && o && (n = e[--o]); o--; ) n = t(n, e[o], o, e); return n; } - function bt(e, t) { + function rn(e, t) { for (var n = -1, r = null == e ? 0 : e.length; ++n < r; ) if (t(e[n], n, e)) return !0; return !1; } - var yt = St('length'); - function vt(e, t, n) { + var on = dn('length'); + function an(e, t, n) { var r; return ( n(e, function(e, n, o) { @@ -4988,12 +6604,12 @@ r ); } - function _t(e, t, n, r) { + function sn(e, t, n, r) { for (var o = e.length, i = n + (r ? 1 : -1); r ? i-- : ++i < o; ) if (t(e[i], i, e)) return i; return -1; } - function xt(e, t, n) { + function cn(e, t, n) { return t == t ? (function(e, t, n) { var r = n - 1, @@ -5001,31 +6617,31 @@ for (; ++r < o; ) if (e[r] === t) return r; return -1; })(e, t, n) - : _t(e, Mt, n); + : sn(e, ln, n); } - function wt(e, t, n, r) { + function un(e, t, n, r) { for (var o = n - 1, i = e.length; ++o < i; ) if (r(e[o], t)) return o; return -1; } - function Mt(e) { + function ln(e) { return e != e; } - function kt(e, t) { + function fn(e, t) { var n = null == e ? 0 : e.length; - return n ? Et(e, t) / n : NaN; + return n ? gn(e, t) / n : N; } - function St(e) { + function dn(e) { return function(t) { - return null == t ? void 0 : t[e]; + return null == t ? i : t[e]; }; } - function At(e) { + function pn(e) { return function(t) { - return null == e ? void 0 : e[t]; + return null == e ? i : e[t]; }; } - function Ot(e, t, n, r, o) { + function hn(e, t, n, r, o) { return ( o(e, function(e, o, i) { n = r ? ((r = !1), e) : t(n, e, o, i); @@ -5033,43 +6649,39 @@ n ); } - function Et(e, t) { + function gn(e, t) { for (var n, r = -1, o = e.length; ++r < o; ) { - var i = t(e[r]); - void 0 !== i && (n = void 0 === n ? i : n + i); + var a = t(e[r]); + a !== i && (n = n === i ? a : n + a); } return n; } - function Tt(e, t) { + function mn(e, t) { for (var n = -1, r = Array(e); ++n < e; ) r[n] = t(n); return r; } - function Ct(e) { + function bn(e) { return function(t) { return e(t); }; } - function Lt(e, t) { - return pt(t, function(t) { + function yn(e, t) { + return Zt(t, function(t) { return e[t]; }); } - function Pt(e, t) { + function vn(e, t) { return e.has(t); } - function Dt(e, t) { - for (var n = -1, r = e.length; ++n < r && xt(t, e[n], 0) > -1; ); + function _n(e, t) { + for (var n = -1, r = e.length; ++n < r && cn(t, e[n], 0) > -1; ); return n; } - function zt(e, t) { - for (var n = e.length; n-- && xt(t, e[n], 0) > -1; ); + function wn(e, t) { + for (var n = e.length; n-- && cn(t, e[n], 0) > -1; ); return n; } - function Nt(e, t) { - for (var n = e.length, r = 0; n--; ) e[n] === t && ++r; - return r; - } - var jt = At({ + var xn = pn({ À: 'A', Á: 'A', Â: 'A', @@ -5261,20 +6873,20 @@ ʼn: "'n", ſ: 's' }), - Rt = At({ + Mn = pn({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }); - function It(e) { - return '\\' + He[e]; + function kn(e) { + return '\\' + At[e]; } - function Ft(e) { - return je.test(e); + function Sn(e) { + return xt.test(e); } - function qt(e) { + function On(e) { var t = -1, n = Array(e.size); return ( @@ -5284,19 +6896,19 @@ n ); } - function Bt(e, t) { + function En(e, t) { return function(n) { return e(t(n)); }; } - function Ht(e, t) { + function An(e, t) { for (var n = -1, r = e.length, o = 0, i = []; ++n < r; ) { - var s = e[n]; - (s !== t && s !== a) || ((e[n] = a), (i[o++] = n)); + var a = e[n]; + (a !== t && a !== f) || ((e[n] = f), (i[o++] = n)); } return i; } - function Yt(e) { + function Tn(e) { var t = -1, n = Array(e.size); return ( @@ -5306,7 +6918,7 @@ n ); } - function Wt(e) { + function Cn(e) { var t = -1, n = Array(e.size); return ( @@ -5316,153 +6928,154 @@ n ); } - function Vt(e) { - return Ft(e) + function Ln(e) { + return Sn(e) ? (function(e) { - var t = (ze.lastIndex = 0); - for (; ze.test(e); ) ++t; + var t = (_t.lastIndex = 0); + for (; _t.test(e); ) ++t; return t; })(e) - : yt(e); + : on(e); } - function Ut(e) { - return Ft(e) + function Pn(e) { + return Sn(e) ? (function(e) { - return e.match(ze) || []; + return e.match(_t) || []; })(e) : (function(e) { return e.split(''); })(e); } - var Xt = At({ + var Dn = pn({ '&': '&', '<': '<', '>': '>', '"': '"', ''': "'" }); - var Gt = (function e(t) { + var jn = (function e(t) { var n, r = (t = - null == t ? Xe : Gt.defaults(Xe.Object(), t, Gt.pick(Xe, Ie))) + null == t ? Dt : jn.defaults(Dt.Object(), t, jn.pick(Dt, kt))) .Array, o = t.Date, - de = t.Error, - pe = t.Function, - he = t.Math, - ge = t.Object, - me = t.RegExp, - be = t.String, - ye = t.TypeError, - ve = r.prototype, - _e = pe.prototype, - xe = ge.prototype, - we = t['__core-js_shared__'], - Me = _e.toString, - ke = xe.hasOwnProperty, - Se = 0, - Ae = (n = /[^.]+$/.exec( - (we && we.keys && we.keys.IE_PROTO) || '' + Je = t.Error, + Ze = t.Function, + et = t.Math, + tt = t.Object, + nt = t.RegExp, + rt = t.String, + ot = t.TypeError, + it = r.prototype, + at = Ze.prototype, + st = tt.prototype, + ct = t['__core-js_shared__'], + ut = at.toString, + lt = st.hasOwnProperty, + ft = 0, + dt = (n = /[^.]+$/.exec( + (ct && ct.keys && ct.keys.IE_PROTO) || '' )) ? 'Symbol(src)_1.' + n : '', - Oe = xe.toString, - Ee = Me.call(ge), - Te = Xe._, - Ce = me( + pt = st.toString, + ht = ut.call(tt), + gt = Dt._, + mt = nt( '^' + - Me.call(ke) - .replace(U, '\\$&') + ut + .call(lt) + .replace(Pe, '\\$&') .replace( /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?' ) + '$' ), - Le = $e ? t.Buffer : void 0, - ze = t.Symbol, - je = t.Uint8Array, - He = Le ? Le.allocUnsafe : void 0, - Ve = Bt(ge.getPrototypeOf, ge), - Ue = ge.create, - Ge = xe.propertyIsEnumerable, - Ke = ve.splice, - Qe = ze ? ze.isConcatSpreadable : void 0, - Je = ze ? ze.iterator : void 0, - yt = ze ? ze.toStringTag : void 0, - At = (function() { + bt = Nt ? t.Buffer : i, + _t = t.Symbol, + xt = t.Uint8Array, + At = bt ? bt.allocUnsafe : i, + Lt = En(tt.getPrototypeOf, tt), + Pt = tt.create, + jt = st.propertyIsEnumerable, + zt = it.splice, + Rt = _t ? _t.isConcatSpreadable : i, + It = _t ? _t.iterator : i, + on = _t ? _t.toStringTag : i, + pn = (function() { try { - var e = ei(ge, 'defineProperty'); + var e = Fi(tt, 'defineProperty'); return e({}, '', {}), e; } catch (e) {} })(), - Kt = t.clearTimeout !== Xe.clearTimeout && t.clearTimeout, - $t = o && o.now !== Xe.Date.now && o.now, - Qt = t.setTimeout !== Xe.setTimeout && t.setTimeout, - Jt = he.ceil, - Zt = he.floor, - en = ge.getOwnPropertySymbols, - tn = Le ? Le.isBuffer : void 0, - nn = t.isFinite, - rn = ve.join, - on = Bt(ge.keys, ge), - an = he.max, - sn = he.min, - cn = o.now, - un = t.parseInt, - ln = he.random, - fn = ve.reverse, - dn = ei(t, 'DataView'), - pn = ei(t, 'Map'), - hn = ei(t, 'Promise'), - gn = ei(t, 'Set'), - mn = ei(t, 'WeakMap'), - bn = ei(ge, 'create'), - yn = mn && new mn(), - vn = {}, - _n = Oi(dn), - xn = Oi(pn), - wn = Oi(hn), - Mn = Oi(gn), - kn = Oi(mn), - Sn = ze ? ze.prototype : void 0, - An = Sn ? Sn.valueOf : void 0, - On = Sn ? Sn.toString : void 0; - function En(e) { - if (Wa(e) && !Da(e) && !(e instanceof Pn)) { - if (e instanceof Ln) return e; - if (ke.call(e, '__wrapped__')) return Ei(e); - } - return new Ln(e); - } - var Tn = (function() { + zn = t.clearTimeout !== Dt.clearTimeout && t.clearTimeout, + Nn = o && o.now !== Dt.Date.now && o.now, + Rn = t.setTimeout !== Dt.setTimeout && t.setTimeout, + In = et.ceil, + Fn = et.floor, + qn = tt.getOwnPropertySymbols, + Bn = bt ? bt.isBuffer : i, + Hn = t.isFinite, + Yn = it.join, + Wn = En(tt.keys, tt), + Vn = et.max, + Un = et.min, + Xn = o.now, + Gn = t.parseInt, + Kn = et.random, + $n = it.reverse, + Qn = Fi(t, 'DataView'), + Jn = Fi(t, 'Map'), + Zn = Fi(t, 'Promise'), + er = Fi(t, 'Set'), + tr = Fi(t, 'WeakMap'), + nr = Fi(tt, 'create'), + rr = tr && new tr(), + or = {}, + ir = fa(Qn), + ar = fa(Jn), + sr = fa(Zn), + cr = fa(er), + ur = fa(tr), + lr = _t ? _t.prototype : i, + fr = lr ? lr.valueOf : i, + dr = lr ? lr.toString : i; + function pr(e) { + if (As(e) && !bs(e) && !(e instanceof br)) { + if (e instanceof mr) return e; + if (lt.call(e, '__wrapped__')) return da(e); + } + return new mr(e); + } + var hr = (function() { function e() {} return function(t) { - if (!Ya(t)) return {}; - if (Ue) return Ue(t); + if (!Es(t)) return {}; + if (Pt) return Pt(t); e.prototype = t; var n = new e(); - return (e.prototype = void 0), n; + return (e.prototype = i), n; }; })(); - function Cn() {} - function Ln(e, t) { + function gr() {} + function mr(e, t) { (this.__wrapped__ = e), (this.__actions__ = []), (this.__chain__ = !!t), (this.__index__ = 0), - (this.__values__ = void 0); + (this.__values__ = i); } - function Pn(e) { + function br(e) { (this.__wrapped__ = e), (this.__actions__ = []), (this.__dir__ = 1), (this.__filtered__ = !1), (this.__iteratees__ = []), - (this.__takeCount__ = 4294967295), + (this.__takeCount__ = R), (this.__views__ = []); } - function Dn(e) { + function yr(e) { var t = -1, n = null == e ? 0 : e.length; for (this.clear(); ++t < n; ) { @@ -5470,7 +7083,7 @@ this.set(r[0], r[1]); } } - function zn(e) { + function vr(e) { var t = -1, n = null == e ? 0 : e.length; for (this.clear(); ++t < n; ) { @@ -5478,7 +7091,7 @@ this.set(r[0], r[1]); } } - function Nn(e) { + function _r(e) { var t = -1, n = null == e ? 0 : e.length; for (this.clear(); ++t < n; ) { @@ -5486,25 +7099,25 @@ this.set(r[0], r[1]); } } - function jn(e) { + function wr(e) { var t = -1, n = null == e ? 0 : e.length; - for (this.__data__ = new Nn(); ++t < n; ) this.add(e[t]); + for (this.__data__ = new _r(); ++t < n; ) this.add(e[t]); } - function Rn(e) { - var t = (this.__data__ = new zn(e)); + function xr(e) { + var t = (this.__data__ = new vr(e)); this.size = t.size; } - function In(e, t) { - var n = Da(e), - r = !n && Pa(e), - o = !n && !r && Ra(e), - i = !n && !r && !o && Ja(e), + function Mr(e, t) { + var n = bs(e), + r = !n && ms(e), + o = !n && !r && ws(e), + i = !n && !r && !o && Ns(e), a = n || r || o || i, - s = a ? Tt(e.length, be) : [], + s = a ? mn(e.length, rt) : [], c = s.length; for (var u in e) - (!t && !ke.call(e, u)) || + (!t && !lt.call(e, u)) || (a && ('length' == u || (o && ('offset' == u || 'parent' == u)) || @@ -5512,47 +7125,45 @@ ('buffer' == u || 'byteLength' == u || 'byteOffset' == u)) || - si(u, c))) || + Ui(u, c))) || s.push(u); return s; } - function Fn(e) { + function kr(e) { var t = e.length; - return t ? e[jr(0, t - 1)] : void 0; + return t ? e[xo(0, t - 1)] : i; } - function qn(e, t) { - return ki(yo(e), Kn(t, 0, e.length)); + function Sr(e, t) { + return ca(ri(e), jr(t, 0, e.length)); } - function Bn(e) { - return ki(yo(e)); + function Or(e) { + return ca(ri(e)); } - function Hn(e, t, n) { - ((void 0 !== n && !Ta(e[t], n)) || (void 0 === n && !(t in e))) && - Xn(e, t, n); + function Er(e, t, n) { + ((n === i || ps(e[t], n)) && (n !== i || t in e)) || Pr(e, t, n); } - function Yn(e, t, n) { + function Ar(e, t, n) { var r = e[t]; - (ke.call(e, t) && Ta(r, n) && (void 0 !== n || t in e)) || - Xn(e, t, n); + (lt.call(e, t) && ps(r, n) && (n !== i || t in e)) || Pr(e, t, n); } - function Wn(e, t) { - for (var n = e.length; n--; ) if (Ta(e[n][0], t)) return n; + function Tr(e, t) { + for (var n = e.length; n--; ) if (ps(e[n][0], t)) return n; return -1; } - function Vn(e, t, n, r) { + function Cr(e, t, n, r) { return ( - er(e, function(e, o, i) { + Fr(e, function(e, o, i) { t(r, e, n(e), i); }), r ); } - function Un(e, t) { - return e && vo(t, _s(t), e); + function Lr(e, t) { + return e && oi(t, oc(t), e); } - function Xn(e, t, n) { - '__proto__' == t && At - ? At(e, t, { + function Pr(e, t, n) { + '__proto__' == t && pn + ? pn(e, t, { configurable: !0, enumerable: !0, value: n, @@ -5560,705 +7171,705 @@ }) : (e[t] = n); } - function Gn(e, t) { - for (var n = -1, o = t.length, i = r(o), a = null == e; ++n < o; ) - i[n] = a ? void 0 : gs(e, t[n]); - return i; + function Dr(e, t) { + for (var n = -1, o = t.length, a = r(o), s = null == e; ++n < o; ) + a[n] = s ? i : Zs(e, t[n]); + return a; } - function Kn(e, t, n) { + function jr(e, t, n) { return ( e == e && - (void 0 !== n && (e = e <= n ? e : n), - void 0 !== t && (e = e >= t ? e : t)), + (n !== i && (e = e <= n ? e : n), + t !== i && (e = e >= t ? e : t)), e ); } - function $n(e, t, n, r, o, i) { - var a, - s = 1 & t, - u = 2 & t, - d = 4 & t; - if ((n && (a = o ? n(e, r, o, i) : n(e)), void 0 !== a)) return a; - if (!Ya(e)) return e; - var w = Da(e); - if (w) { + function zr(e, t, n, r, o, a) { + var s, + c = t & d, + u = t & p, + l = t & h; + if ((n && (s = o ? n(e, r, o, a) : n(e)), s !== i)) return s; + if (!Es(e)) return e; + var f = bs(e); + if (f) { if ( - ((a = (function(e) { + ((s = (function(e) { var t = e.length, n = new e.constructor(t); t && 'string' == typeof e[0] && - ke.call(e, 'index') && + lt.call(e, 'index') && ((n.index = e.index), (n.input = e.input)); return n; })(e)), - !s) + !c) ) - return yo(e, a); + return ri(e, s); } else { - var D = ri(e), - z = D == p || D == h; - if (Ra(e)) return fo(e, s); - if (D == b || D == c || (z && !o)) { - if (((a = u || z ? {} : ii(e)), !s)) + var g = Hi(e), + m = g == G || g == K; + if (ws(e)) return Qo(e, c); + if (g == Z || g == B || (m && !o)) { + if (((s = u || m ? {} : Wi(e)), !c)) return u ? (function(e, t) { - return vo(e, ni(e), t); + return oi(e, Bi(e), t); })( e, (function(e, t) { - return e && vo(t, xs(t), e); - })(a, e) + return e && oi(t, ic(t), e); + })(s, e) ) : (function(e, t) { - return vo(e, ti(e), t); - })(e, Un(a, e)); + return oi(e, qi(e), t); + })(e, Lr(s, e)); } else { - if (!Be[D]) return o ? e : {}; - a = (function(e, t, n) { + if (!Et[g]) return o ? e : {}; + s = (function(e, t, n) { var r = e.constructor; switch (t) { - case M: - return po(e); - case l: - case f: + case ce: + return Jo(e); + case W: + case V: return new r(+e); - case k: + case ue: return (function(e, t) { - var n = t ? po(e.buffer) : e.buffer; + var n = t ? Jo(e.buffer) : e.buffer; return new e.constructor( n, e.byteOffset, e.byteLength ); })(e, n); - case S: - case A: - case O: - case E: - case T: - case C: - case '[object Uint8ClampedArray]': - case L: - case P: - return ho(e, n); - case g: + case le: + case fe: + case de: + case pe: + case he: + case ge: + case me: + case be: + case ye: + return Zo(e, n); + case $: return new r(); - case m: - case _: + case Q: + case re: return new r(e); - case y: + case te: return (function(e) { - var t = new e.constructor(e.source, re.exec(e)); + var t = new e.constructor(e.source, Ye.exec(e)); return (t.lastIndex = e.lastIndex), t; })(e); - case v: + case ne: return new r(); - case x: - return (o = e), An ? ge(An.call(o)) : {}; + case oe: + return (o = e), fr ? tt(fr.call(o)) : {}; } var o; - })(e, D, s); + })(e, g, c); } } - i || (i = new Rn()); - var N = i.get(e); - if (N) return N; - i.set(e, a), - Ka(e) + a || (a = new xr()); + var b = a.get(e); + if (b) return b; + a.set(e, s), + Ds(e) ? e.forEach(function(r) { - a.add($n(r, t, n, r, e, i)); + s.add(zr(r, t, n, r, e, a)); }) - : Va(e) && + : Ts(e) && e.forEach(function(r, o) { - a.set(o, $n(r, t, n, o, e, i)); + s.set(o, zr(r, t, n, o, e, a)); }); - var j = w ? void 0 : (d ? (u ? Xo : Uo) : u ? xs : _s)(e); + var y = f ? i : (l ? (u ? Pi : Li) : u ? ic : oc)(e); return ( - st(j || e, function(r, o) { - j && (r = e[(o = r)]), Yn(a, o, $n(r, t, n, o, e, i)); + Xt(y || e, function(r, o) { + y && (r = e[(o = r)]), Ar(s, o, zr(r, t, n, o, e, a)); }), - a + s ); } - function Qn(e, t, n) { + function Nr(e, t, n) { var r = n.length; if (null == e) return !r; - for (e = ge(e); r--; ) { + for (e = tt(e); r--; ) { var o = n[r], - i = t[o], - a = e[o]; - if ((void 0 === a && !(o in e)) || !i(a)) return !1; + a = t[o], + s = e[o]; + if ((s === i && !(o in e)) || !a(s)) return !1; } return !0; } - function Jn(e, t, n) { - if ('function' != typeof e) throw new ye(i); - return _i(function() { - e.apply(void 0, n); + function Rr(e, t, n) { + if ('function' != typeof e) throw new ot(c); + return oa(function() { + e.apply(i, n); }, t); } - function Zn(e, t, n, r) { + function Ir(e, t, n, r) { var o = -1, - i = ft, - a = !0, - s = e.length, - c = [], - u = t.length; - if (!s) return c; - n && (t = pt(t, Ct(n))), + i = Qt, + s = !0, + c = e.length, + u = [], + l = t.length; + if (!c) return u; + n && (t = Zt(t, bn(n))), r - ? ((i = dt), (a = !1)) - : t.length >= 200 && ((i = Pt), (a = !1), (t = new jn(t))); - e: for (; ++o < s; ) { - var l = e[o], - f = null == n ? l : n(l); - if (((l = r || 0 !== l ? l : 0), a && f == f)) { - for (var d = u; d--; ) if (t[d] === f) continue e; - c.push(l); - } else i(t, f, r) || c.push(l); - } - return c; - } - (En.templateSettings = { - escape: q, - evaluate: B, - interpolate: H, + ? ((i = Jt), (s = !1)) + : t.length >= a && ((i = vn), (s = !1), (t = new wr(t))); + e: for (; ++o < c; ) { + var f = e[o], + d = null == n ? f : n(f); + if (((f = r || 0 !== f ? f : 0), s && d == d)) { + for (var p = l; p--; ) if (t[p] === d) continue e; + u.push(f); + } else i(t, d, r) || u.push(f); + } + return u; + } + (pr.templateSettings = { + escape: Oe, + evaluate: Ee, + interpolate: Ae, variable: '', - imports: { _: En } - }), - (En.prototype = Cn.prototype), - (En.prototype.constructor = En), - (Ln.prototype = Tn(Cn.prototype)), - (Ln.prototype.constructor = Ln), - (Pn.prototype = Tn(Cn.prototype)), - (Pn.prototype.constructor = Pn), - (Dn.prototype.clear = function() { - (this.__data__ = bn ? bn(null) : {}), (this.size = 0); - }), - (Dn.prototype.delete = function(e) { + imports: { _: pr } + }), + (pr.prototype = gr.prototype), + (pr.prototype.constructor = pr), + (mr.prototype = hr(gr.prototype)), + (mr.prototype.constructor = mr), + (br.prototype = hr(gr.prototype)), + (br.prototype.constructor = br), + (yr.prototype.clear = function() { + (this.__data__ = nr ? nr(null) : {}), (this.size = 0); + }), + (yr.prototype.delete = function(e) { var t = this.has(e) && delete this.__data__[e]; return (this.size -= t ? 1 : 0), t; }), - (Dn.prototype.get = function(e) { + (yr.prototype.get = function(e) { var t = this.__data__; - if (bn) { + if (nr) { var n = t[e]; - return '__lodash_hash_undefined__' === n ? void 0 : n; + return n === u ? i : n; } - return ke.call(t, e) ? t[e] : void 0; + return lt.call(t, e) ? t[e] : i; }), - (Dn.prototype.has = function(e) { + (yr.prototype.has = function(e) { var t = this.__data__; - return bn ? void 0 !== t[e] : ke.call(t, e); + return nr ? t[e] !== i : lt.call(t, e); }), - (Dn.prototype.set = function(e, t) { + (yr.prototype.set = function(e, t) { var n = this.__data__; return ( (this.size += this.has(e) ? 0 : 1), - (n[e] = bn && void 0 === t ? '__lodash_hash_undefined__' : t), + (n[e] = nr && t === i ? u : t), this ); }), - (zn.prototype.clear = function() { + (vr.prototype.clear = function() { (this.__data__ = []), (this.size = 0); }), - (zn.prototype.delete = function(e) { + (vr.prototype.delete = function(e) { var t = this.__data__, - n = Wn(t, e); + n = Tr(t, e); return ( !(n < 0) && - (n == t.length - 1 ? t.pop() : Ke.call(t, n, 1), + (n == t.length - 1 ? t.pop() : zt.call(t, n, 1), --this.size, !0) ); }), - (zn.prototype.get = function(e) { + (vr.prototype.get = function(e) { var t = this.__data__, - n = Wn(t, e); - return n < 0 ? void 0 : t[n][1]; + n = Tr(t, e); + return n < 0 ? i : t[n][1]; }), - (zn.prototype.has = function(e) { - return Wn(this.__data__, e) > -1; + (vr.prototype.has = function(e) { + return Tr(this.__data__, e) > -1; }), - (zn.prototype.set = function(e, t) { + (vr.prototype.set = function(e, t) { var n = this.__data__, - r = Wn(n, e); + r = Tr(n, e); return ( r < 0 ? (++this.size, n.push([e, t])) : (n[r][1] = t), this ); }), - (Nn.prototype.clear = function() { + (_r.prototype.clear = function() { (this.size = 0), (this.__data__ = { - hash: new Dn(), - map: new (pn || zn)(), - string: new Dn() + hash: new yr(), + map: new (Jn || vr)(), + string: new yr() }); }), - (Nn.prototype.delete = function(e) { - var t = Jo(this, e).delete(e); + (_r.prototype.delete = function(e) { + var t = Ri(this, e).delete(e); return (this.size -= t ? 1 : 0), t; }), - (Nn.prototype.get = function(e) { - return Jo(this, e).get(e); + (_r.prototype.get = function(e) { + return Ri(this, e).get(e); }), - (Nn.prototype.has = function(e) { - return Jo(this, e).has(e); + (_r.prototype.has = function(e) { + return Ri(this, e).has(e); }), - (Nn.prototype.set = function(e, t) { - var n = Jo(this, e), + (_r.prototype.set = function(e, t) { + var n = Ri(this, e), r = n.size; return n.set(e, t), (this.size += n.size == r ? 0 : 1), this; }), - (jn.prototype.add = jn.prototype.push = function(e) { - return this.__data__.set(e, '__lodash_hash_undefined__'), this; + (wr.prototype.add = wr.prototype.push = function(e) { + return this.__data__.set(e, u), this; }), - (jn.prototype.has = function(e) { + (wr.prototype.has = function(e) { return this.__data__.has(e); }), - (Rn.prototype.clear = function() { - (this.__data__ = new zn()), (this.size = 0); + (xr.prototype.clear = function() { + (this.__data__ = new vr()), (this.size = 0); }), - (Rn.prototype.delete = function(e) { + (xr.prototype.delete = function(e) { var t = this.__data__, n = t.delete(e); return (this.size = t.size), n; }), - (Rn.prototype.get = function(e) { + (xr.prototype.get = function(e) { return this.__data__.get(e); }), - (Rn.prototype.has = function(e) { + (xr.prototype.has = function(e) { return this.__data__.has(e); }), - (Rn.prototype.set = function(e, t) { + (xr.prototype.set = function(e, t) { var n = this.__data__; - if (n instanceof zn) { + if (n instanceof vr) { var r = n.__data__; - if (!pn || r.length < 199) + if (!Jn || r.length < a - 1) return r.push([e, t]), (this.size = ++n.size), this; - n = this.__data__ = new Nn(r); + n = this.__data__ = new _r(r); } return n.set(e, t), (this.size = n.size), this; }); - var er = wo(cr), - tr = wo(ur, !0); - function nr(e, t) { + var Fr = si(Xr), + qr = si(Gr, !0); + function Br(e, t) { var n = !0; return ( - er(e, function(e, r, o) { + Fr(e, function(e, r, o) { return (n = !!t(e, r, o)); }), n ); } - function rr(e, t, n) { + function Hr(e, t, n) { for (var r = -1, o = e.length; ++r < o; ) { - var i = e[r], - a = t(i); - if (null != a && (void 0 === s ? a == a && !Qa(a) : n(a, s))) - var s = a, - c = i; + var a = e[r], + s = t(a); + if (null != s && (c === i ? s == s && !zs(s) : n(s, c))) + var c = s, + u = a; } - return c; + return u; } - function or(e, t) { + function Yr(e, t) { var n = []; return ( - er(e, function(e, r, o) { + Fr(e, function(e, r, o) { t(e, r, o) && n.push(e); }), n ); } - function ir(e, t, n, r, o) { + function Wr(e, t, n, r, o) { var i = -1, a = e.length; - for (n || (n = ai), o || (o = []); ++i < a; ) { + for (n || (n = Vi), o || (o = []); ++i < a; ) { var s = e[i]; t > 0 && n(s) ? t > 1 - ? ir(s, t - 1, n, r, o) - : ht(o, s) + ? Wr(s, t - 1, n, r, o) + : en(o, s) : r || (o[o.length] = s); } return o; } - var ar = Mo(), - sr = Mo(!0); - function cr(e, t) { - return e && ar(e, t, _s); + var Vr = ci(), + Ur = ci(!0); + function Xr(e, t) { + return e && Vr(e, t, oc); } - function ur(e, t) { - return e && sr(e, t, _s); + function Gr(e, t) { + return e && Ur(e, t, oc); } - function lr(e, t) { - return lt(t, function(t) { - return qa(e[t]); + function Kr(e, t) { + return $t(t, function(t) { + return ks(e[t]); }); } - function fr(e, t) { - for (var n = 0, r = (t = so(t, e)).length; null != e && n < r; ) - e = e[Ai(t[n++])]; - return n && n == r ? e : void 0; + function $r(e, t) { + for (var n = 0, r = (t = Xo(t, e)).length; null != e && n < r; ) + e = e[la(t[n++])]; + return n && n == r ? e : i; } - function dr(e, t, n) { + function Qr(e, t, n) { var r = t(e); - return Da(e) ? r : ht(r, n(e)); + return bs(e) ? r : en(r, n(e)); } - function pr(e) { + function Jr(e) { return null == e - ? void 0 === e - ? '[object Undefined]' - : '[object Null]' - : yt && yt in ge(e) + ? e === i + ? ie + : J + : on && on in tt(e) ? (function(e) { - var t = ke.call(e, yt), - n = e[yt]; + var t = lt.call(e, on), + n = e[on]; try { - e[yt] = void 0; + e[on] = i; var r = !0; } catch (e) {} - var o = Oe.call(e); - r && (t ? (e[yt] = n) : delete e[yt]); + var o = pt.call(e); + r && (t ? (e[on] = n) : delete e[on]); return o; })(e) : (function(e) { - return Oe.call(e); + return pt.call(e); })(e); } - function hr(e, t) { + function Zr(e, t) { return e > t; } - function gr(e, t) { - return null != e && ke.call(e, t); + function eo(e, t) { + return null != e && lt.call(e, t); } - function mr(e, t) { - return null != e && t in ge(e); + function to(e, t) { + return null != e && t in tt(e); } - function br(e, t, n) { + function no(e, t, n) { for ( - var o = n ? dt : ft, - i = e[0].length, - a = e.length, - s = a, - c = r(a), - u = 1 / 0, - l = []; - s--; + var o = n ? Jt : Qt, + a = e[0].length, + s = e.length, + c = s, + u = r(s), + l = 1 / 0, + f = []; + c--; ) { - var f = e[s]; - s && t && (f = pt(f, Ct(t))), - (u = sn(f.length, u)), - (c[s] = - !n && (t || (i >= 120 && f.length >= 120)) - ? new jn(s && f) - : void 0); - } - f = e[0]; - var d = -1, - p = c[0]; - e: for (; ++d < i && l.length < u; ) { - var h = f[d], - g = t ? t(h) : h; + var d = e[c]; + c && t && (d = Zt(d, bn(t))), + (l = Un(d.length, l)), + (u[c] = + !n && (t || (a >= 120 && d.length >= 120)) + ? new wr(c && d) + : i); + } + d = e[0]; + var p = -1, + h = u[0]; + e: for (; ++p < a && f.length < l; ) { + var g = d[p], + m = t ? t(g) : g; if ( - ((h = n || 0 !== h ? h : 0), !(p ? Pt(p, g) : o(l, g, n))) + ((g = n || 0 !== g ? g : 0), !(h ? vn(h, m) : o(f, m, n))) ) { - for (s = a; --s; ) { - var m = c[s]; - if (!(m ? Pt(m, g) : o(e[s], g, n))) continue e; + for (c = s; --c; ) { + var b = u[c]; + if (!(b ? vn(b, m) : o(e[c], m, n))) continue e; } - p && p.push(g), l.push(h); + h && h.push(m), f.push(g); } } - return l; + return f; } - function yr(e, t, n) { - var r = null == (e = mi(e, (t = so(t, e)))) ? e : e[Ai(Fi(t))]; - return null == r ? void 0 : it(r, e, n); + function ro(e, t, n) { + var r = null == (e = ta(e, (t = Xo(t, e)))) ? e : e[la(Ma(t))]; + return null == r ? i : Vt(r, e, n); } - function vr(e) { - return Wa(e) && pr(e) == c; + function oo(e) { + return As(e) && Jr(e) == B; } - function _r(e, t, n, r, o) { + function io(e, t, n, r, o) { return ( e === t || - (null == e || null == t || (!Wa(e) && !Wa(t)) + (null == e || null == t || (!As(e) && !As(t)) ? e != e && t != t - : (function(e, t, n, r, o, i) { - var a = Da(e), - s = Da(t), - p = a ? u : ri(e), - h = s ? u : ri(t), - w = (p = p == c ? b : p) == b, - S = (h = h == c ? b : h) == b, - A = p == h; - if (A && Ra(e)) { - if (!Ra(t)) return !1; - (a = !0), (w = !1); - } - if (A && !w) + : (function(e, t, n, r, o, a) { + var s = bs(e), + c = bs(t), + u = s ? H : Hi(e), + l = c ? H : Hi(t), + f = (u = u == B ? Z : u) == Z, + d = (l = l == B ? Z : l) == Z, + p = u == l; + if (p && ws(e)) { + if (!ws(t)) return !1; + (s = !0), (f = !1); + } + if (p && !f) return ( - i || (i = new Rn()), - a || Ja(e) - ? Wo(e, t, n, r, o, i) + a || (a = new xr()), + s || Ns(e) + ? Ti(e, t, n, r, o, a) : (function(e, t, n, r, o, i, a) { switch (n) { - case k: + case ue: if ( e.byteLength != t.byteLength || e.byteOffset != t.byteOffset ) return !1; (e = e.buffer), (t = t.buffer); - case M: + case ce: return !( e.byteLength != t.byteLength || - !i(new je(e), new je(t)) + !i(new xt(e), new xt(t)) ); - case l: - case f: - case m: - return Ta(+e, +t); - case d: + case W: + case V: + case Q: + return ps(+e, +t); + case X: return ( e.name == t.name && e.message == t.message ); - case y: - case _: + case te: + case re: return e == t + ''; - case g: - var s = qt; - case v: - var c = 1 & r; - if ((s || (s = Yt), e.size != t.size && !c)) + case $: + var s = On; + case ne: + var c = r & g; + if ((s || (s = Tn), e.size != t.size && !c)) return !1; var u = a.get(e); if (u) return u == t; - (r |= 2), a.set(e, t); - var p = Wo(s(e), s(t), r, o, i, a); - return a.delete(e), p; - case x: - if (An) return An.call(e) == An.call(t); + (r |= m), a.set(e, t); + var l = Ti(s(e), s(t), r, o, i, a); + return a.delete(e), l; + case oe: + if (fr) return fr.call(e) == fr.call(t); } return !1; - })(e, t, p, n, r, o, i) + })(e, t, u, n, r, o, a) ); - if (!(1 & n)) { - var O = w && ke.call(e, '__wrapped__'), - E = S && ke.call(t, '__wrapped__'); - if (O || E) { - var T = O ? e.value() : e, - C = E ? t.value() : t; - return i || (i = new Rn()), o(T, C, n, r, i); + if (!(n & g)) { + var h = f && lt.call(e, '__wrapped__'), + b = d && lt.call(t, '__wrapped__'); + if (h || b) { + var y = h ? e.value() : e, + v = b ? t.value() : t; + return a || (a = new xr()), o(y, v, n, r, a); } } - if (!A) return !1; + if (!p) return !1; return ( - i || (i = new Rn()), - (function(e, t, n, r, o, i) { - var a = 1 & n, - s = Uo(e), - c = s.length, - u = Uo(t).length; - if (c != u && !a) return !1; - var l = c; - for (; l--; ) { - var f = s[l]; - if (!(a ? f in t : ke.call(t, f))) return !1; + a || (a = new xr()), + (function(e, t, n, r, o, a) { + var s = n & g, + c = Li(e), + u = c.length, + l = Li(t).length; + if (u != l && !s) return !1; + var f = u; + for (; f--; ) { + var d = c[f]; + if (!(s ? d in t : lt.call(t, d))) return !1; } - var d = i.get(e); - if (d && i.get(t)) return d == t; - var p = !0; - i.set(e, t), i.set(t, e); - var h = a; - for (; ++l < c; ) { - f = s[l]; - var g = e[f], - m = t[f]; + var p = a.get(e); + if (p && a.get(t)) return p == t; + var h = !0; + a.set(e, t), a.set(t, e); + var m = s; + for (; ++f < u; ) { + d = c[f]; + var b = e[d], + y = t[d]; if (r) - var b = a - ? r(m, g, f, t, e, i) - : r(g, m, f, e, t, i); - if ( - !(void 0 === b ? g === m || o(g, m, n, r, i) : b) - ) { - p = !1; + var v = s + ? r(y, b, d, t, e, a) + : r(b, y, d, e, t, a); + if (!(v === i ? b === y || o(b, y, n, r, a) : v)) { + h = !1; break; } - h || (h = 'constructor' == f); + m || (m = 'constructor' == d); } - if (p && !h) { - var y = e.constructor, - v = t.constructor; - y == v || - !('constructor' in e) || - !('constructor' in t) || - ('function' == typeof y && - y instanceof y && - 'function' == typeof v && - v instanceof v) || - (p = !1); + if (h && !m) { + var _ = e.constructor, + w = t.constructor; + _ != w && + 'constructor' in e && + 'constructor' in t && + !( + 'function' == typeof _ && + _ instanceof _ && + 'function' == typeof w && + w instanceof w + ) && + (h = !1); } - return i.delete(e), i.delete(t), p; - })(e, t, n, r, o, i) + return a.delete(e), a.delete(t), h; + })(e, t, n, r, o, a) ); - })(e, t, n, r, _r, o)) + })(e, t, n, r, io, o)) ); } - function xr(e, t, n, r) { + function ao(e, t, n, r) { var o = n.length, - i = o, - a = !r; - if (null == e) return !i; - for (e = ge(e); o--; ) { - var s = n[o]; - if (a && s[2] ? s[1] !== e[s[0]] : !(s[0] in e)) return !1; - } - for (; ++o < i; ) { - var c = (s = n[o])[0], - u = e[c], - l = s[1]; - if (a && s[2]) { - if (void 0 === u && !(c in e)) return !1; + a = o, + s = !r; + if (null == e) return !a; + for (e = tt(e); o--; ) { + var c = n[o]; + if (s && c[2] ? c[1] !== e[c[0]] : !(c[0] in e)) return !1; + } + for (; ++o < a; ) { + var u = (c = n[o])[0], + l = e[u], + f = c[1]; + if (s && c[2]) { + if (l === i && !(u in e)) return !1; } else { - var f = new Rn(); - if (r) var d = r(u, l, c, e, t, f); - if (!(void 0 === d ? _r(l, u, 3, r, f) : d)) return !1; + var d = new xr(); + if (r) var p = r(l, f, u, e, t, d); + if (!(p === i ? io(f, l, g | m, r, d) : p)) return !1; } } return !0; } - function wr(e) { + function so(e) { return ( - !(!Ya(e) || ((t = e), Ae && Ae in t)) && - (qa(e) ? Ce : ae).test(Oi(e)) + !(!Es(e) || ((t = e), dt && dt in t)) && + (ks(e) ? mt : Ue).test(fa(e)) ); var t; } - function Mr(e) { + function co(e) { return 'function' == typeof e ? e : null == e - ? Us + ? Cc : 'object' == typeof e - ? Da(e) - ? Tr(e[0], e[1]) - : Er(e) - : tc(e); + ? bs(e) + ? go(e[0], e[1]) + : ho(e) + : Fc(e); } - function kr(e) { - if (!di(e)) return on(e); + function uo(e) { + if (!Qi(e)) return Wn(e); var t = []; - for (var n in ge(e)) - ke.call(e, n) && 'constructor' != n && t.push(n); + for (var n in tt(e)) + lt.call(e, n) && 'constructor' != n && t.push(n); return t; } - function Sr(e) { - if (!Ya(e)) + function lo(e) { + if (!Es(e)) return (function(e) { var t = []; - if (null != e) for (var n in ge(e)) t.push(n); + if (null != e) for (var n in tt(e)) t.push(n); return t; })(e); - var t = di(e), + var t = Qi(e), n = []; for (var r in e) - ('constructor' != r || (!t && ke.call(e, r))) && n.push(r); + ('constructor' != r || (!t && lt.call(e, r))) && n.push(r); return n; } - function Ar(e, t) { + function fo(e, t) { return e < t; } - function Or(e, t) { + function po(e, t) { var n = -1, - o = Na(e) ? r(e.length) : []; + o = vs(e) ? r(e.length) : []; return ( - er(e, function(e, r, i) { + Fr(e, function(e, r, i) { o[++n] = t(e, r, i); }), o ); } - function Er(e) { - var t = Zo(e); + function ho(e) { + var t = Ii(e); return 1 == t.length && t[0][2] - ? hi(t[0][0], t[0][1]) + ? Zi(t[0][0], t[0][1]) : function(n) { - return n === e || xr(n, e, t); + return n === e || ao(n, e, t); }; } - function Tr(e, t) { - return ui(e) && pi(t) - ? hi(Ai(e), t) + function go(e, t) { + return Gi(e) && Ji(t) + ? Zi(la(e), t) : function(n) { - var r = gs(n, e); - return void 0 === r && r === t ? ms(n, e) : _r(t, r, 3); + var r = Zs(n, e); + return r === i && r === t ? ec(n, e) : io(t, r, g | m); }; } - function Cr(e, t, n, r, o) { + function mo(e, t, n, r, o) { e !== t && - ar( + Vr( t, - function(i, a) { - if ((o || (o = new Rn()), Ya(i))) - !(function(e, t, n, r, o, i, a) { - var s = yi(e, n), - c = yi(t, n), - u = a.get(c); - if (u) return void Hn(e, n, u); - var l = i ? i(s, c, n + '', e, t, a) : void 0, - f = void 0 === l; - if (f) { - var d = Da(c), - p = !d && Ra(c), - h = !d && !p && Ja(c); - (l = c), - d || p || h - ? Da(s) - ? (l = s) - : ja(s) - ? (l = yo(s)) - : p - ? ((f = !1), (l = fo(c, !0))) + function(a, s) { + if ((o || (o = new xr()), Es(a))) + !(function(e, t, n, r, o, a, s) { + var c = na(e, n), + u = na(t, n), + l = s.get(u); + if (l) return void Er(e, n, l); + var f = a ? a(c, u, n + '', e, t, s) : i, + d = f === i; + if (d) { + var p = bs(u), + h = !p && ws(u), + g = !p && !h && Ns(u); + (f = u), + p || h || g + ? bs(c) + ? (f = c) + : _s(c) + ? (f = ri(c)) : h - ? ((f = !1), (l = ho(c, !0))) - : (l = []) - : Xa(c) || Pa(c) - ? ((l = s), - Pa(s) - ? (l = as(s)) - : (Ya(s) && !qa(s)) || (l = ii(c))) - : (f = !1); - } - f && (a.set(c, l), o(l, c, r, i, a), a.delete(c)); - Hn(e, n, l); - })(e, t, a, n, Cr, r, o); + ? ((d = !1), (f = Qo(u, !0))) + : g + ? ((d = !1), (f = Zo(u, !0))) + : (f = []) + : Ls(u) || ms(u) + ? ((f = c), + ms(c) + ? (f = Ws(c)) + : (Es(c) && !ks(c)) || (f = Wi(u))) + : (d = !1); + } + d && (s.set(u, f), o(f, u, r, a, s), s.delete(u)); + Er(e, n, f); + })(e, t, s, n, mo, r, o); else { - var s = r ? r(yi(e, a), i, a + '', e, t, o) : void 0; - void 0 === s && (s = i), Hn(e, a, s); + var c = r ? r(na(e, s), a, s + '', e, t, o) : i; + c === i && (c = a), Er(e, s, c); } }, - xs + ic ); } - function Lr(e, t) { + function bo(e, t) { var n = e.length; - if (n) return si((t += t < 0 ? n : 0), n) ? e[t] : void 0; + if (n) return Ui((t += t < 0 ? n : 0), n) ? e[t] : i; } - function Pr(e, t, n) { + function yo(e, t, n) { var r = -1; return ( - (t = pt(t.length ? t : [Us], Ct(Qo()))), + (t = Zt(t.length ? t : [Cc], bn(Ni()))), (function(e, t) { var n = e.length; for (e.sort(t); n--; ) e[n] = e[n].value; return e; })( - Or(e, function(e, n, o) { + po(e, function(e, n, o) { return { - criteria: pt(t, function(t) { + criteria: Zt(t, function(t) { return t(e); }), index: ++r, @@ -6273,7 +7884,7 @@ a = o.length, s = n.length; for (; ++r < a; ) { - var c = go(o[r], i[r]); + var c = ei(o[r], i[r]); if (c) { if (r >= s) return c; var u = n[r]; @@ -6286,96 +7897,96 @@ ) ); } - function Dr(e, t, n) { + function vo(e, t, n) { for (var r = -1, o = t.length, i = {}; ++r < o; ) { var a = t[r], - s = fr(e, a); - n(s, a) && Br(i, so(a, e), s); + s = $r(e, a); + n(s, a) && Eo(i, Xo(a, e), s); } return i; } - function zr(e, t, n, r) { - var o = r ? wt : xt, + function _o(e, t, n, r) { + var o = r ? un : cn, i = -1, a = t.length, s = e; - for (e === t && (t = yo(t)), n && (s = pt(e, Ct(n))); ++i < a; ) + for (e === t && (t = ri(t)), n && (s = Zt(e, bn(n))); ++i < a; ) for ( var c = 0, u = t[i], l = n ? n(u) : u; (c = o(s, l, c, r)) > -1; ) - s !== e && Ke.call(s, c, 1), Ke.call(e, c, 1); + s !== e && zt.call(s, c, 1), zt.call(e, c, 1); return e; } - function Nr(e, t) { + function wo(e, t) { for (var n = e ? t.length : 0, r = n - 1; n--; ) { var o = t[n]; if (n == r || o !== i) { var i = o; - si(o) ? Ke.call(e, o, 1) : Zr(e, o); + Ui(o) ? zt.call(e, o, 1) : Fo(e, o); } } return e; } - function jr(e, t) { - return e + Zt(ln() * (t - e + 1)); + function xo(e, t) { + return e + Fn(Kn() * (t - e + 1)); } - function Rr(e, t) { + function Mo(e, t) { var n = ''; - if (!e || t < 1 || t > 9007199254740991) return n; + if (!e || t < 1 || t > j) return n; do { - t % 2 && (n += e), (t = Zt(t / 2)) && (e += e); + t % 2 && (n += e), (t = Fn(t / 2)) && (e += e); } while (t); return n; } - function Ir(e, t) { - return xi(gi(e, t, Us), e + ''); + function ko(e, t) { + return ia(ea(e, t, Cc), e + ''); } - function Fr(e) { - return Fn(Ts(e)); + function So(e) { + return kr(pc(e)); } - function qr(e, t) { - var n = Ts(e); - return ki(n, Kn(t, 0, n.length)); + function Oo(e, t) { + var n = pc(e); + return ca(n, jr(t, 0, n.length)); } - function Br(e, t, n, r) { - if (!Ya(e)) return e; + function Eo(e, t, n, r) { + if (!Es(e)) return e; for ( - var o = -1, i = (t = so(t, e)).length, a = i - 1, s = e; - null != s && ++o < i; + var o = -1, a = (t = Xo(t, e)).length, s = a - 1, c = e; + null != c && ++o < a; ) { - var c = Ai(t[o]), - u = n; - if (o != a) { - var l = s[c]; - void 0 === (u = r ? r(l, c, s) : void 0) && - (u = Ya(l) ? l : si(t[o + 1]) ? [] : {}); + var u = la(t[o]), + l = n; + if (o != s) { + var f = c[u]; + (l = r ? r(f, u, c) : i) === i && + (l = Es(f) ? f : Ui(t[o + 1]) ? [] : {}); } - Yn(s, c, u), (s = s[c]); + Ar(c, u, l), (c = c[u]); } return e; } - var Hr = yn + var Ao = rr ? function(e, t) { - return yn.set(e, t), e; + return rr.set(e, t), e; } - : Us, - Yr = At + : Cc, + To = pn ? function(e, t) { - return At(e, 'toString', { + return pn(e, 'toString', { configurable: !0, enumerable: !1, - value: Ys(t), + value: Ec(t), writable: !0 }); } - : Us; - function Wr(e) { - return ki(Ts(e)); + : Cc; + function Co(e) { + return ca(pc(e)); } - function Vr(e, t, n) { + function Lo(e, t, n) { var o = -1, i = e.length; t < 0 && (t = -t > i ? 0 : i + t), @@ -6385,219 +7996,219 @@ for (var a = r(i); ++o < i; ) a[o] = e[o + t]; return a; } - function Ur(e, t) { + function Po(e, t) { var n; return ( - er(e, function(e, r, o) { + Fr(e, function(e, r, o) { return !(n = t(e, r, o)); }), !!n ); } - function Xr(e, t, n) { + function Do(e, t, n) { var r = 0, o = null == e ? r : e.length; - if ('number' == typeof t && t == t && o <= 2147483647) { + if ('number' == typeof t && t == t && o <= F) { for (; r < o; ) { var i = (r + o) >>> 1, a = e[i]; - null !== a && !Qa(a) && (n ? a <= t : a < t) + null !== a && !zs(a) && (n ? a <= t : a < t) ? (r = i + 1) : (o = i); } return o; } - return Gr(e, t, Us, n); + return jo(e, t, Cc, n); } - function Gr(e, t, n, r) { + function jo(e, t, n, r) { t = n(t); for ( var o = 0, - i = null == e ? 0 : e.length, - a = t != t, - s = null === t, - c = Qa(t), - u = void 0 === t; - o < i; + a = null == e ? 0 : e.length, + s = t != t, + c = null === t, + u = zs(t), + l = t === i; + o < a; ) { - var l = Zt((o + i) / 2), - f = n(e[l]), - d = void 0 !== f, - p = null === f, - h = f == f, - g = Qa(f); - if (a) var m = r || h; + var f = Fn((o + a) / 2), + d = n(e[f]), + p = d !== i, + h = null === d, + g = d == d, + m = zs(d); + if (s) var b = r || g; else - m = u - ? h && (r || d) - : s - ? h && d && (r || !p) + b = l + ? g && (r || p) : c - ? h && d && !p && (r || !g) - : !p && !g && (r ? f <= t : f < t); - m ? (o = l + 1) : (i = l); + ? g && p && (r || !h) + : u + ? g && p && !h && (r || !m) + : !h && !m && (r ? d <= t : d < t); + b ? (o = f + 1) : (a = f); } - return sn(i, 4294967294); + return Un(a, I); } - function Kr(e, t) { + function zo(e, t) { for (var n = -1, r = e.length, o = 0, i = []; ++n < r; ) { var a = e[n], s = t ? t(a) : a; - if (!n || !Ta(s, c)) { + if (!n || !ps(s, c)) { var c = s; i[o++] = 0 === a ? 0 : a; } } return i; } - function $r(e) { - return 'number' == typeof e ? e : Qa(e) ? NaN : +e; + function No(e) { + return 'number' == typeof e ? e : zs(e) ? N : +e; } - function Qr(e) { + function Ro(e) { if ('string' == typeof e) return e; - if (Da(e)) return pt(e, Qr) + ''; - if (Qa(e)) return On ? On.call(e) : ''; + if (bs(e)) return Zt(e, Ro) + ''; + if (zs(e)) return dr ? dr.call(e) : ''; var t = e + ''; - return '0' == t && 1 / e == -1 / 0 ? '-0' : t; + return '0' == t && 1 / e == -D ? '-0' : t; } - function Jr(e, t, n) { + function Io(e, t, n) { var r = -1, - o = ft, + o = Qt, i = e.length, - a = !0, - s = [], - c = s; - if (n) (a = !1), (o = dt); - else if (i >= 200) { - var u = t ? null : Io(e); - if (u) return Yt(u); - (a = !1), (o = Pt), (c = new jn()); - } else c = t ? [] : s; + s = !0, + c = [], + u = c; + if (n) (s = !1), (o = Jt); + else if (i >= a) { + var l = t ? null : Mi(e); + if (l) return Tn(l); + (s = !1), (o = vn), (u = new wr()); + } else u = t ? [] : c; e: for (; ++r < i; ) { - var l = e[r], - f = t ? t(l) : l; - if (((l = n || 0 !== l ? l : 0), a && f == f)) { - for (var d = c.length; d--; ) if (c[d] === f) continue e; - t && c.push(f), s.push(l); - } else o(c, f, n) || (c !== s && c.push(f), s.push(l)); + var f = e[r], + d = t ? t(f) : f; + if (((f = n || 0 !== f ? f : 0), s && d == d)) { + for (var p = u.length; p--; ) if (u[p] === d) continue e; + t && u.push(d), c.push(f); + } else o(u, d, n) || (u !== c && u.push(d), c.push(f)); } - return s; + return c; } - function Zr(e, t) { - return null == (e = mi(e, (t = so(t, e)))) || delete e[Ai(Fi(t))]; + function Fo(e, t) { + return null == (e = ta(e, (t = Xo(t, e)))) || delete e[la(Ma(t))]; } - function eo(e, t, n, r) { - return Br(e, t, n(fr(e, t)), r); + function qo(e, t, n, r) { + return Eo(e, t, n($r(e, t)), r); } - function to(e, t, n, r) { + function Bo(e, t, n, r) { for ( var o = e.length, i = r ? o : -1; (r ? i-- : ++i < o) && t(e[i], i, e); ); return n - ? Vr(e, r ? 0 : i, r ? i + 1 : o) - : Vr(e, r ? i + 1 : 0, r ? o : i); + ? Lo(e, r ? 0 : i, r ? i + 1 : o) + : Lo(e, r ? i + 1 : 0, r ? o : i); } - function no(e, t) { + function Ho(e, t) { var n = e; return ( - n instanceof Pn && (n = n.value()), - gt( + n instanceof br && (n = n.value()), + tn( t, function(e, t) { - return t.func.apply(t.thisArg, ht([e], t.args)); + return t.func.apply(t.thisArg, en([e], t.args)); }, n ) ); } - function ro(e, t, n) { + function Yo(e, t, n) { var o = e.length; - if (o < 2) return o ? Jr(e[0]) : []; + if (o < 2) return o ? Io(e[0]) : []; for (var i = -1, a = r(o); ++i < o; ) for (var s = e[i], c = -1; ++c < o; ) - c != i && (a[i] = Zn(a[i] || s, e[c], t, n)); - return Jr(ir(a, 1), t, n); + c != i && (a[i] = Ir(a[i] || s, e[c], t, n)); + return Io(Wr(a, 1), t, n); } - function oo(e, t, n) { - for (var r = -1, o = e.length, i = t.length, a = {}; ++r < o; ) { - var s = r < i ? t[r] : void 0; - n(a, e[r], s); + function Wo(e, t, n) { + for (var r = -1, o = e.length, a = t.length, s = {}; ++r < o; ) { + var c = r < a ? t[r] : i; + n(s, e[r], c); } - return a; + return s; } - function io(e) { - return ja(e) ? e : []; + function Vo(e) { + return _s(e) ? e : []; } - function ao(e) { - return 'function' == typeof e ? e : Us; + function Uo(e) { + return 'function' == typeof e ? e : Cc; } - function so(e, t) { - return Da(e) ? e : ui(e, t) ? [e] : Si(ss(e)); + function Xo(e, t) { + return bs(e) ? e : Gi(e, t) ? [e] : ua(Vs(e)); } - var co = Ir; - function uo(e, t, n) { + var Go = ko; + function Ko(e, t, n) { var r = e.length; - return (n = void 0 === n ? r : n), !t && n >= r ? e : Vr(e, t, n); + return (n = n === i ? r : n), !t && n >= r ? e : Lo(e, t, n); } - var lo = - Kt || + var $o = + zn || function(e) { - return Xe.clearTimeout(e); + return Dt.clearTimeout(e); }; - function fo(e, t) { + function Qo(e, t) { if (t) return e.slice(); var n = e.length, - r = He ? He(n) : new e.constructor(n); + r = At ? At(n) : new e.constructor(n); return e.copy(r), r; } - function po(e) { + function Jo(e) { var t = new e.constructor(e.byteLength); - return new je(t).set(new je(e)), t; + return new xt(t).set(new xt(e)), t; } - function ho(e, t) { - var n = t ? po(e.buffer) : e.buffer; + function Zo(e, t) { + var n = t ? Jo(e.buffer) : e.buffer; return new e.constructor(n, e.byteOffset, e.length); } - function go(e, t) { + function ei(e, t) { if (e !== t) { - var n = void 0 !== e, + var n = e !== i, r = null === e, o = e == e, - i = Qa(e), - a = void 0 !== t, - s = null === t, - c = t == t, - u = Qa(t); + a = zs(e), + s = t !== i, + c = null === t, + u = t == t, + l = zs(t); if ( - (!s && !u && !i && e > t) || - (i && a && c && !s && !u) || - (r && a && c) || - (!n && c) || + (!c && !l && !a && e > t) || + (a && s && u && !c && !l) || + (r && s && u) || + (!n && u) || !o ) return 1; if ( - (!r && !i && !u && e < t) || - (u && n && o && !r && !i) || - (s && n && o) || - (!a && o) || - !c + (!r && !a && !l && e < t) || + (l && n && o && !r && !a) || + (c && n && o) || + (!s && o) || + !u ) return -1; } return 0; } - function mo(e, t, n, o) { + function ti(e, t, n, o) { for ( var i = -1, a = e.length, s = n.length, c = -1, u = t.length, - l = an(a - s, 0), + l = Vn(a - s, 0), f = r(u + l), d = !o; ++c < u; @@ -6608,7 +8219,7 @@ for (; l--; ) f[c++] = e[i++]; return f; } - function bo(e, t, n, o) { + function ni(e, t, n, o) { for ( var i = -1, a = e.length, @@ -6616,7 +8227,7 @@ c = n.length, u = -1, l = t.length, - f = an(a - c, 0), + f = Vn(a - c, 0), d = r(f + l), p = !o; ++i < f; @@ -6627,86 +8238,83 @@ for (; ++s < c; ) (p || i < a) && (d[h + n[s]] = e[i++]); return d; } - function yo(e, t) { + function ri(e, t) { var n = -1, o = e.length; for (t || (t = r(o)); ++n < o; ) t[n] = e[n]; return t; } - function vo(e, t, n, r) { + function oi(e, t, n, r) { var o = !n; n || (n = {}); - for (var i = -1, a = t.length; ++i < a; ) { - var s = t[i], - c = r ? r(n[s], e[s], s, n, e) : void 0; - void 0 === c && (c = e[s]), o ? Xn(n, s, c) : Yn(n, s, c); + for (var a = -1, s = t.length; ++a < s; ) { + var c = t[a], + u = r ? r(n[c], e[c], c, n, e) : i; + u === i && (u = e[c]), o ? Pr(n, c, u) : Ar(n, c, u); } return n; } - function _o(e, t) { + function ii(e, t) { return function(n, r) { - var o = Da(n) ? at : Vn, + var o = bs(n) ? Ut : Cr, i = t ? t() : {}; - return o(n, e, Qo(r, 2), i); + return o(n, e, Ni(r, 2), i); }; } - function xo(e) { - return Ir(function(t, n) { + function ai(e) { + return ko(function(t, n) { var r = -1, o = n.length, - i = o > 1 ? n[o - 1] : void 0, - a = o > 2 ? n[2] : void 0; + a = o > 1 ? n[o - 1] : i, + s = o > 2 ? n[2] : i; for ( - i = - e.length > 3 && 'function' == typeof i ? (o--, i) : void 0, - a && - ci(n[0], n[1], a) && - ((i = o < 3 ? void 0 : i), (o = 1)), - t = ge(t); + a = e.length > 3 && 'function' == typeof a ? (o--, a) : i, + s && Xi(n[0], n[1], s) && ((a = o < 3 ? i : a), (o = 1)), + t = tt(t); ++r < o; ) { - var s = n[r]; - s && e(t, s, r, i); + var c = n[r]; + c && e(t, c, r, a); } return t; }); } - function wo(e, t) { + function si(e, t) { return function(n, r) { if (null == n) return n; - if (!Na(n)) return e(n, r); + if (!vs(n)) return e(n, r); for ( - var o = n.length, i = t ? o : -1, a = ge(n); + var o = n.length, i = t ? o : -1, a = tt(n); (t ? i-- : ++i < o) && !1 !== r(a[i], i, a); ); return n; }; } - function Mo(e) { + function ci(e) { return function(t, n, r) { - for (var o = -1, i = ge(t), a = r(t), s = a.length; s--; ) { + for (var o = -1, i = tt(t), a = r(t), s = a.length; s--; ) { var c = a[e ? s : ++o]; if (!1 === n(i[c], c, i)) break; } return t; }; } - function ko(e) { + function ui(e) { return function(t) { - var n = Ft((t = ss(t))) ? Ut(t) : void 0, + var n = Sn((t = Vs(t))) ? Pn(t) : i, r = n ? n[0] : t.charAt(0), - o = n ? uo(n, 1).join('') : t.slice(1); + o = n ? Ko(n, 1).join('') : t.slice(1); return r[e]() + o; }; } - function So(e) { + function li(e) { return function(t) { - return gt(qs(Ps(t).replace(Pe, '')), e, ''); + return tn(kc(mc(t).replace(yt, '')), e, ''); }; } - function Ao(e) { + function fi(e) { return function() { var t = arguments; switch (t.length) { @@ -6727,93 +8335,111 @@ case 7: return new e(t[0], t[1], t[2], t[3], t[4], t[5], t[6]); } - var n = Tn(e.prototype), + var n = hr(e.prototype), r = e.apply(n, t); - return Ya(r) ? r : n; + return Es(r) ? r : n; }; } - function Oo(e) { + function di(e) { return function(t, n, r) { - var o = ge(t); - if (!Na(t)) { - var i = Qo(n, 3); - (t = _s(t)), + var o = tt(t); + if (!vs(t)) { + var a = Ni(n, 3); + (t = oc(t)), (n = function(e) { - return i(o[e], e, o); + return a(o[e], e, o); }); } - var a = e(t, n, r); - return a > -1 ? o[i ? t[a] : a] : void 0; + var s = e(t, n, r); + return s > -1 ? o[a ? t[s] : s] : i; }; } - function Eo(e) { - return Vo(function(t) { + function pi(e) { + return Ci(function(t) { var n = t.length, r = n, - o = Ln.prototype.thru; + o = mr.prototype.thru; for (e && t.reverse(); r--; ) { var a = t[r]; - if ('function' != typeof a) throw new ye(i); - if (o && !s && 'wrapper' == Ko(a)) var s = new Ln([], !0); + if ('function' != typeof a) throw new ot(c); + if (o && !s && 'wrapper' == ji(a)) var s = new mr([], !0); } for (r = s ? r : n; ++r < n; ) { - var c = Ko((a = t[r])), - u = 'wrapper' == c ? Go(a) : void 0; + var u = ji((a = t[r])), + l = 'wrapper' == u ? Di(a) : i; s = - u && li(u[0]) && 424 == u[1] && !u[4].length && 1 == u[9] - ? s[Ko(u[0])].apply(s, u[3]) - : 1 == a.length && li(a) - ? s[c]() + l && + Ki(l[0]) && + l[1] == (k | _ | x | S) && + !l[4].length && + 1 == l[9] + ? s[ji(l[0])].apply(s, l[3]) + : 1 == a.length && Ki(a) + ? s[u]() : s.thru(a); } return function() { var e = arguments, r = e[0]; - if (s && 1 == e.length && Da(r)) return s.plant(r).value(); + if (s && 1 == e.length && bs(r)) return s.plant(r).value(); for (var o = 0, i = n ? t[o].apply(this, e) : r; ++o < n; ) i = t[o].call(this, i); return i; }; }); } - function To(e, t, n, o, i, a, s, c, u, l) { - var f = 128 & t, - d = 1 & t, - p = 2 & t, - h = 24 & t, - g = 512 & t, - m = p ? void 0 : Ao(e); + function hi(e, t, n, o, a, s, c, u, l, f) { + var d = t & k, + p = t & b, + h = t & y, + g = t & (_ | w), + m = t & O, + v = h ? i : fi(e); return function b() { - for (var y = arguments.length, v = r(y), _ = y; _--; ) - v[_] = arguments[_]; - if (h) - var x = $o(b), - w = Nt(v, x); + for (var y = arguments.length, _ = r(y), w = y; w--; ) + _[w] = arguments[w]; + if (g) + var x = zi(b), + M = (function(e, t) { + for (var n = e.length, r = 0; n--; ) e[n] === t && ++r; + return r; + })(_, x); if ( - (o && (v = mo(v, o, i, h)), - a && (v = bo(v, a, s, h)), - (y -= w), - h && y < l) + (o && (_ = ti(_, o, a, g)), + s && (_ = ni(_, s, c, g)), + (y -= M), + g && y < f) ) { - var M = Ht(v, x); - return jo(e, t, To, b.placeholder, n, v, M, c, u, l - y); + var k = An(_, x); + return wi(e, t, hi, b.placeholder, n, _, k, u, l, f - y); } - var k = d ? n : this, - S = p ? k[e] : e; + var S = p ? n : this, + O = h ? S[e] : e; return ( - (y = v.length), - c ? (v = bi(v, c)) : g && y > 1 && v.reverse(), - f && u < y && (v.length = u), - this && this !== Xe && this instanceof b && (S = m || Ao(S)), - S.apply(k, v) + (y = _.length), + u + ? (_ = (function(e, t) { + var n = e.length, + r = Un(t.length, n), + o = ri(e); + for (; r--; ) { + var a = t[r]; + e[r] = Ui(a, n) ? o[a] : i; + } + return e; + })(_, u)) + : m && y > 1 && _.reverse(), + d && l < y && (_.length = l), + this && this !== Dt && this instanceof b && (O = v || fi(O)), + O.apply(S, _) ); }; } - function Co(e, t) { + function gi(e, t) { return function(n, r) { return (function(e, t, n, r) { return ( - cr(e, function(e, o, i) { + Xr(e, function(e, o, i) { t(r, n(e), o, i); }), r @@ -6821,93 +8447,93 @@ })(n, e, t(r), {}); }; } - function Lo(e, t) { + function mi(e, t) { return function(n, r) { var o; - if (void 0 === n && void 0 === r) return t; - if ((void 0 !== n && (o = n), void 0 !== r)) { - if (void 0 === o) return r; + if (n === i && r === i) return t; + if ((n !== i && (o = n), r !== i)) { + if (o === i) return r; 'string' == typeof n || 'string' == typeof r - ? ((n = Qr(n)), (r = Qr(r))) - : ((n = $r(n)), (r = $r(r))), + ? ((n = Ro(n)), (r = Ro(r))) + : ((n = No(n)), (r = No(r))), (o = e(n, r)); } return o; }; } - function Po(e) { - return Vo(function(t) { + function bi(e) { + return Ci(function(t) { return ( - (t = pt(t, Ct(Qo()))), - Ir(function(n) { + (t = Zt(t, bn(Ni()))), + ko(function(n) { var r = this; return e(t, function(e) { - return it(e, r, n); + return Vt(e, r, n); }); }) ); }); } - function Do(e, t) { - var n = (t = void 0 === t ? ' ' : Qr(t)).length; - if (n < 2) return n ? Rr(t, e) : t; - var r = Rr(t, Jt(e / Vt(t))); - return Ft(t) ? uo(Ut(r), 0, e).join('') : r.slice(0, e); + function yi(e, t) { + var n = (t = t === i ? ' ' : Ro(t)).length; + if (n < 2) return n ? Mo(t, e) : t; + var r = Mo(t, In(e / Ln(t))); + return Sn(t) ? Ko(Pn(r), 0, e).join('') : r.slice(0, e); } - function zo(e) { + function vi(e) { return function(t, n, o) { return ( - o && 'number' != typeof o && ci(t, n, o) && (n = o = void 0), - (t = ns(t)), - void 0 === n ? ((n = t), (t = 0)) : (n = ns(n)), + o && 'number' != typeof o && Xi(t, n, o) && (n = o = i), + (t = qs(t)), + n === i ? ((n = t), (t = 0)) : (n = qs(n)), (function(e, t, n, o) { for ( - var i = -1, a = an(Jt((t - e) / (n || 1)), 0), s = r(a); + var i = -1, a = Vn(In((t - e) / (n || 1)), 0), s = r(a); a--; ) (s[o ? a : ++i] = e), (e += n); return s; - })(t, n, (o = void 0 === o ? (t < n ? 1 : -1) : ns(o)), e) + })(t, n, (o = o === i ? (t < n ? 1 : -1) : qs(o)), e) ); }; } - function No(e) { + function _i(e) { return function(t, n) { return ( ('string' == typeof t && 'string' == typeof n) || - ((t = is(t)), (n = is(n))), + ((t = Ys(t)), (n = Ys(n))), e(t, n) ); }; } - function jo(e, t, n, r, o, i, a, s, c, u) { - var l = 8 & t; - (t |= l ? 32 : 64), 4 & (t &= ~(l ? 64 : 32)) || (t &= -4); - var f = [ + function wi(e, t, n, r, o, a, s, c, u, l) { + var f = t & _; + (t |= f ? x : M), (t &= ~(f ? M : x)) & v || (t &= ~(b | y)); + var d = [ e, t, o, - l ? i : void 0, - l ? a : void 0, - l ? void 0 : i, - l ? void 0 : a, - s, + f ? a : i, + f ? s : i, + f ? i : a, + f ? i : s, c, - u + u, + l ], - d = n.apply(void 0, f); - return li(e) && vi(d, f), (d.placeholder = r), wi(d, e, t); + p = n.apply(i, d); + return Ki(e) && ra(p, d), (p.placeholder = r), aa(p, e, t); } - function Ro(e) { - var t = he[e]; + function xi(e) { + var t = et[e]; return function(e, n) { if ( - ((e = is(e)), (n = null == n ? 0 : sn(rs(n), 292)) && nn(e)) + ((e = Ys(e)), (n = null == n ? 0 : Un(Bs(n), 292)) && Hn(e)) ) { - var r = (ss(e) + 'e').split('e'); + var r = (Vs(e) + 'e').split('e'); return +( - (r = (ss(t(r[0] + 'e' + (+r[1] + n))) + 'e').split( + (r = (Vs(t(r[0] + 'e' + (+r[1] + n))) + 'e').split( 'e' ))[0] + 'e' + @@ -6917,123 +8543,116 @@ return t(e); }; } - var Io = - gn && 1 / Yt(new gn([, -0]))[1] == 1 / 0 + var Mi = + er && 1 / Tn(new er([, -0]))[1] == D ? function(e) { - return new gn(e); + return new er(e); } - : Qs; - function Fo(e) { + : zc; + function ki(e) { return function(t) { - var n = ri(t); - return n == g - ? qt(t) - : n == v - ? Wt(t) + var n = Hi(t); + return n == $ + ? On(t) + : n == ne + ? Cn(t) : (function(e, t) { - return pt(t, function(t) { + return Zt(t, function(t) { return [t, e[t]]; }); })(t, e(t)); }; } - function qo(e, t, n, o, s, c, u, l) { - var f = 2 & t; - if (!f && 'function' != typeof e) throw new ye(i); - var d = o ? o.length : 0; + function Si(e, t, n, o, a, s, u, l) { + var d = t & y; + if (!d && 'function' != typeof e) throw new ot(c); + var p = o ? o.length : 0; if ( - (d || ((t &= -97), (o = s = void 0)), - (u = void 0 === u ? u : an(rs(u), 0)), - (l = void 0 === l ? l : rs(l)), - (d -= s ? s.length : 0), - 64 & t) + (p || ((t &= ~(x | M)), (o = a = i)), + (u = u === i ? u : Vn(Bs(u), 0)), + (l = l === i ? l : Bs(l)), + (p -= a ? a.length : 0), + t & M) ) { - var p = o, - h = s; - o = s = void 0; + var h = o, + g = a; + o = a = i; } - var g = f ? void 0 : Go(e), - m = [e, t, n, o, s, p, h, c, u, l]; + var m = d ? i : Di(e), + O = [e, t, n, o, a, h, g, s, u, l]; if ( - (g && + (m && (function(e, t) { var n = e[1], r = t[1], o = n | r, - i = o < 131, - s = - (128 == r && 8 == n) || - (128 == r && 256 == n && e[7].length <= t[8]) || - (384 == r && t[7].length <= t[8] && 8 == n); - if (!i && !s) return e; - 1 & r && ((e[2] = t[2]), (o |= 1 & n ? 0 : 4)); - var c = t[3]; - if (c) { - var u = e[3]; - (e[3] = u ? mo(u, c, t[4]) : c), - (e[4] = u ? Ht(e[3], a) : t[4]); - } - (c = t[5]) && - ((u = e[5]), - (e[5] = u ? bo(u, c, t[6]) : c), - (e[6] = u ? Ht(e[5], a) : t[6])); - (c = t[7]) && (e[7] = c); - 128 & r && (e[8] = null == e[8] ? t[8] : sn(e[8], t[8])); + i = o < (b | y | k), + a = + (r == k && n == _) || + (r == k && n == S && e[7].length <= t[8]) || + (r == (k | S) && t[7].length <= t[8] && n == _); + if (!i && !a) return e; + r & b && ((e[2] = t[2]), (o |= n & b ? 0 : v)); + var s = t[3]; + if (s) { + var c = e[3]; + (e[3] = c ? ti(c, s, t[4]) : s), + (e[4] = c ? An(e[3], f) : t[4]); + } + (s = t[5]) && + ((c = e[5]), + (e[5] = c ? ni(c, s, t[6]) : s), + (e[6] = c ? An(e[5], f) : t[6])); + (s = t[7]) && (e[7] = s); + r & k && (e[8] = null == e[8] ? t[8] : Un(e[8], t[8])); null == e[9] && (e[9] = t[9]); (e[0] = t[0]), (e[1] = o); - })(m, g), - (e = m[0]), - (t = m[1]), - (n = m[2]), - (o = m[3]), - (s = m[4]), - !(l = m[9] = - void 0 === m[9] ? (f ? 0 : e.length) : an(m[9] - d, 0)) && - 24 & t && - (t &= -25), - t && 1 != t) + })(O, m), + (e = O[0]), + (t = O[1]), + (n = O[2]), + (o = O[3]), + (a = O[4]), + !(l = O[9] = + O[9] === i ? (d ? 0 : e.length) : Vn(O[9] - p, 0)) && + t & (_ | w) && + (t &= ~(_ | w)), + t && t != b) ) - b = - 8 == t || 16 == t + E = + t == _ || t == w ? (function(e, t, n) { - var o = Ao(e); - return function i() { + var o = fi(e); + return function a() { for ( - var a = arguments.length, - s = r(a), - c = a, - u = $o(i); - c--; + var s = arguments.length, + c = r(s), + u = s, + l = zi(a); + u--; ) - s[c] = arguments[c]; - var l = - a < 3 && s[0] !== u && s[a - 1] !== u - ? [] - : Ht(s, u); - if ((a -= l.length) < n) - return jo( - e, - t, - To, - i.placeholder, - void 0, - s, - l, - void 0, - void 0, - n - a - ); + c[u] = arguments[u]; var f = - this && this !== Xe && this instanceof i ? o : e; - return it(f, this, s); + s < 3 && c[0] !== l && c[s - 1] !== l + ? [] + : An(c, l); + return (s -= f.length) < n + ? wi(e, t, hi, a.placeholder, i, c, f, i, i, n - s) + : Vt( + this && this !== Dt && this instanceof a + ? o + : e, + this, + c + ); }; })(e, t, l) - : (32 != t && 33 != t) || s.length - ? To.apply(void 0, m) + : (t != x && t != (b | x)) || a.length + ? hi.apply(i, O) : (function(e, t, n, o) { - var i = 1 & t, - a = Ao(e); + var i = t & b, + a = fi(e); return function t() { for ( var s = -1, @@ -7042,7 +8661,7 @@ l = o.length, f = r(l + c), d = - this && this !== Xe && this instanceof t + this && this !== Dt && this instanceof t ? a : e; ++u < l; @@ -7050,89 +8669,91 @@ ) f[u] = o[u]; for (; c--; ) f[u++] = arguments[++s]; - return it(d, i ? n : this, f); + return Vt(d, i ? n : this, f); }; })(e, t, n, o); else - var b = (function(e, t, n) { - var r = 1 & t, - o = Ao(e); + var E = (function(e, t, n) { + var r = t & b, + o = fi(e); return function t() { - var i = this && this !== Xe && this instanceof t ? o : e; - return i.apply(r ? n : this, arguments); + return (this && this !== Dt && this instanceof t + ? o + : e + ).apply(r ? n : this, arguments); }; })(e, t, n); - return wi((g ? Hr : vi)(b, m), e, t); + return aa((m ? Ao : ra)(E, O), e, t); } - function Bo(e, t, n, r) { - return void 0 === e || (Ta(e, xe[n]) && !ke.call(r, n)) ? t : e; + function Oi(e, t, n, r) { + return e === i || (ps(e, st[n]) && !lt.call(r, n)) ? t : e; } - function Ho(e, t, n, r, o, i) { + function Ei(e, t, n, r, o, a) { return ( - Ya(e) && - Ya(t) && - (i.set(t, e), Cr(e, t, void 0, Ho, i), i.delete(t)), + Es(e) && + Es(t) && + (a.set(t, e), mo(e, t, i, Ei, a), a.delete(t)), e ); } - function Yo(e) { - return Xa(e) ? void 0 : e; - } - function Wo(e, t, n, r, o, i) { - var a = 1 & n, - s = e.length, - c = t.length; - if (s != c && !(a && c > s)) return !1; - var u = i.get(e); - if (u && i.get(t)) return u == t; - var l = -1, - f = !0, - d = 2 & n ? new jn() : void 0; - for (i.set(e, t), i.set(t, e); ++l < s; ) { - var p = e[l], - h = t[l]; - if (r) var g = a ? r(h, p, l, t, e, i) : r(p, h, l, e, t, i); - if (void 0 !== g) { - if (g) continue; - f = !1; + function Ai(e) { + return Ls(e) ? i : e; + } + function Ti(e, t, n, r, o, a) { + var s = n & g, + c = e.length, + u = t.length; + if (c != u && !(s && u > c)) return !1; + var l = a.get(e); + if (l && a.get(t)) return l == t; + var f = -1, + d = !0, + p = n & m ? new wr() : i; + for (a.set(e, t), a.set(t, e); ++f < c; ) { + var h = e[f], + b = t[f]; + if (r) var y = s ? r(b, h, f, t, e, a) : r(h, b, f, e, t, a); + if (y !== i) { + if (y) continue; + d = !1; break; } - if (d) { + if (p) { if ( - !bt(t, function(e, t) { - if (!Pt(d, t) && (p === e || o(p, e, n, r, i))) - return d.push(t); + !rn(t, function(e, t) { + if (!vn(p, t) && (h === e || o(h, e, n, r, a))) + return p.push(t); }) ) { - f = !1; + d = !1; break; } - } else if (p !== h && !o(p, h, n, r, i)) { - f = !1; + } else if (h !== b && !o(h, b, n, r, a)) { + d = !1; break; } } - return i.delete(e), i.delete(t), f; + return a.delete(e), a.delete(t), d; } - function Vo(e) { - return xi(gi(e, void 0, zi), e + ''); + function Ci(e) { + return ia(ea(e, i, ya), e + ''); } - function Uo(e) { - return dr(e, _s, ti); + function Li(e) { + return Qr(e, oc, qi); } - function Xo(e) { - return dr(e, xs, ni); + function Pi(e) { + return Qr(e, ic, Bi); } - var Go = yn + var Di = rr ? function(e) { - return yn.get(e); + return rr.get(e); } - : Qs; - function Ko(e) { + : zc; + function ji(e) { for ( var t = e.name + '', - n = vn[t], - r = ke.call(vn, t) ? n.length : 0; + n = or[t], + r = lt.call(or, t) ? n.length : 0; r--; ) { @@ -7142,17 +8763,17 @@ } return t; } - function $o(e) { - return (ke.call(En, 'placeholder') ? En : e).placeholder; + function zi(e) { + return (lt.call(pr, 'placeholder') ? pr : e).placeholder; } - function Qo() { - var e = En.iteratee || Xs; + function Ni() { + var e = pr.iteratee || Lc; return ( - (e = e === Xs ? Mr : e), + (e = e === Lc ? co : e), arguments.length ? e(arguments[0], arguments[1]) : e ); } - function Jo(e, t) { + function Ri(e, t) { var n = e.__data__; return (function(e) { var t = typeof e; @@ -7166,79 +8787,79 @@ ? n['string' == typeof t ? 'string' : 'hash'] : n.map; } - function Zo(e) { - for (var t = _s(e), n = t.length; n--; ) { + function Ii(e) { + for (var t = oc(e), n = t.length; n--; ) { var r = t[n], o = e[r]; - t[n] = [r, o, pi(o)]; + t[n] = [r, o, Ji(o)]; } return t; } - function ei(e, t) { + function Fi(e, t) { var n = (function(e, t) { - return null == e ? void 0 : e[t]; + return null == e ? i : e[t]; })(e, t); - return wr(n) ? n : void 0; + return so(n) ? n : i; } - var ti = en + var qi = qn ? function(e) { return null == e ? [] - : ((e = ge(e)), - lt(en(e), function(t) { - return Ge.call(e, t); + : ((e = tt(e)), + $t(qn(e), function(t) { + return jt.call(e, t); })); } - : oc, - ni = en + : Hc, + Bi = qn ? function(e) { - for (var t = []; e; ) ht(t, ti(e)), (e = Ve(e)); + for (var t = []; e; ) en(t, qi(e)), (e = Lt(e)); return t; } - : oc, - ri = pr; - function oi(e, t, n) { - for (var r = -1, o = (t = so(t, e)).length, i = !1; ++r < o; ) { - var a = Ai(t[r]); + : Hc, + Hi = Jr; + function Yi(e, t, n) { + for (var r = -1, o = (t = Xo(t, e)).length, i = !1; ++r < o; ) { + var a = la(t[r]); if (!(i = null != e && n(e, a))) break; e = e[a]; } return i || ++r != o ? i : !!(o = null == e ? 0 : e.length) && - Ha(o) && - si(a, o) && - (Da(e) || Pa(e)); + Os(o) && + Ui(a, o) && + (bs(e) || ms(e)); } - function ii(e) { - return 'function' != typeof e.constructor || di(e) + function Wi(e) { + return 'function' != typeof e.constructor || Qi(e) ? {} - : Tn(Ve(e)); + : hr(Lt(e)); } - function ai(e) { - return Da(e) || Pa(e) || !!(Qe && e && e[Qe]); + function Vi(e) { + return bs(e) || ms(e) || !!(Rt && e && e[Rt]); } - function si(e, t) { + function Ui(e, t) { var n = typeof e; return ( - !!(t = null == t ? 9007199254740991 : t) && - ('number' == n || ('symbol' != n && ce.test(e))) && + !!(t = null == t ? j : t) && + ('number' == n || ('symbol' != n && Ge.test(e))) && e > -1 && e % 1 == 0 && e < t ); } - function ci(e, t, n) { - if (!Ya(n)) return !1; + function Xi(e, t, n) { + if (!Es(n)) return !1; var r = typeof t; return ( !!('number' == r - ? Na(n) && si(t, n.length) - : 'string' == r && t in n) && Ta(n[t], e) + ? vs(n) && Ui(t, n.length) + : 'string' == r && t in n) && ps(n[t], e) ); } - function ui(e, t) { - if (Da(e)) return !1; + function Gi(e, t) { + if (bs(e)) return !1; var n = typeof e; return ( !( @@ -7246,64 +8867,64 @@ 'symbol' != n && 'boolean' != n && null != e && - !Qa(e) + !zs(e) ) || - W.test(e) || !Y.test(e) || (null != t && e in ge(t)) + (Ce.test(e) || !Te.test(e) || (null != t && e in tt(t))) ); } - function li(e) { - var t = Ko(e), - n = En[t]; - if ('function' != typeof n || !(t in Pn.prototype)) return !1; + function Ki(e) { + var t = ji(e), + n = pr[t]; + if ('function' != typeof n || !(t in br.prototype)) return !1; if (e === n) return !0; - var r = Go(n); + var r = Di(n); return !!r && e === r[0]; } - ((dn && ri(new dn(new ArrayBuffer(1))) != k) || - (pn && ri(new pn()) != g) || - (hn && '[object Promise]' != ri(hn.resolve())) || - (gn && ri(new gn()) != v) || - (mn && ri(new mn()) != w)) && - (ri = function(e) { - var t = pr(e), - n = t == b ? e.constructor : void 0, - r = n ? Oi(n) : ''; + ((Qn && Hi(new Qn(new ArrayBuffer(1))) != ue) || + (Jn && Hi(new Jn()) != $) || + (Zn && '[object Promise]' != Hi(Zn.resolve())) || + (er && Hi(new er()) != ne) || + (tr && Hi(new tr()) != ae)) && + (Hi = function(e) { + var t = Jr(e), + n = t == Z ? e.constructor : i, + r = n ? fa(n) : ''; if (r) switch (r) { - case _n: - return k; - case xn: - return g; - case wn: + case ir: + return ue; + case ar: + return $; + case sr: return '[object Promise]'; - case Mn: - return v; - case kn: - return w; + case cr: + return ne; + case ur: + return ae; } return t; }); - var fi = we ? qa : ic; - function di(e) { + var $i = ct ? ks : Yc; + function Qi(e) { var t = e && e.constructor; - return e === (('function' == typeof t && t.prototype) || xe); + return e === (('function' == typeof t && t.prototype) || st); } - function pi(e) { - return e == e && !Ya(e); + function Ji(e) { + return e == e && !Es(e); } - function hi(e, t) { + function Zi(e, t) { return function(n) { - return null != n && n[e] === t && (void 0 !== t || e in ge(n)); + return null != n && (n[e] === t && (t !== i || e in tt(n))); }; } - function gi(e, t, n) { + function ea(e, t, n) { return ( - (t = an(void 0 === t ? e.length - 1 : t, 0)), + (t = Vn(t === i ? e.length - 1 : t, 0)), function() { for ( var o = arguments, i = -1, - a = an(o.length - t, 0), + a = Vn(o.length - t, 0), s = r(a); ++i < a; @@ -7311,37 +8932,30 @@ s[i] = o[t + i]; i = -1; for (var c = r(t + 1); ++i < t; ) c[i] = o[i]; - return (c[t] = n(s)), it(e, this, c); + return (c[t] = n(s)), Vt(e, this, c); } ); } - function mi(e, t) { - return t.length < 2 ? e : fr(e, Vr(t, 0, -1)); - } - function bi(e, t) { - for (var n = e.length, r = sn(t.length, n), o = yo(e); r--; ) { - var i = t[r]; - e[r] = si(i, n) ? o[i] : void 0; - } - return e; + function ta(e, t) { + return t.length < 2 ? e : $r(e, Lo(t, 0, -1)); } - function yi(e, t) { + function na(e, t) { if ( ('constructor' !== t || 'function' != typeof e[t]) && '__proto__' != t ) return e[t]; } - var vi = Mi(Hr), - _i = - Qt || + var ra = sa(Ao), + oa = + Rn || function(e, t) { - return Xe.setTimeout(e, t); + return Dt.setTimeout(e, t); }, - xi = Mi(Yr); - function wi(e, t, n) { + ia = sa(To); + function aa(e, t, n) { var r = t + ''; - return xi( + return ia( e, (function(e, t) { var n = t.length; @@ -7350,54 +8964,54 @@ return ( (t[r] = (n > 1 ? '& ' : '') + t[r]), (t = t.join(n > 2 ? ', ' : ' ')), - e.replace(Q, '{\n/* [wrapped with ' + t + '] */\n') + e.replace(Re, '{\n/* [wrapped with ' + t + '] */\n') ); })( r, (function(e, t) { return ( - st(s, function(n) { + Xt(q, function(n) { var r = '_.' + n[0]; - t & n[1] && !ft(e, r) && e.push(r); + t & n[1] && !Qt(e, r) && e.push(r); }), e.sort() ); })( (function(e) { - var t = e.match(J); - return t ? t[1].split(Z) : []; + var t = e.match(Ie); + return t ? t[1].split(Fe) : []; })(r), n ) ) ); } - function Mi(e) { + function sa(e) { var t = 0, n = 0; return function() { - var r = cn(), - o = 16 - (r - n); + var r = Xn(), + o = C - (r - n); if (((n = r), o > 0)) { - if (++t >= 800) return arguments[0]; + if (++t >= T) return arguments[0]; } else t = 0; - return e.apply(void 0, arguments); + return e.apply(i, arguments); }; } - function ki(e, t) { + function ca(e, t) { var n = -1, r = e.length, o = r - 1; - for (t = void 0 === t ? r : t; ++n < t; ) { - var i = jr(n, o), - a = e[i]; - (e[i] = e[n]), (e[n] = a); + for (t = t === i ? r : t; ++n < t; ) { + var a = xo(n, o), + s = e[a]; + (e[a] = e[n]), (e[n] = s); } return (e.length = t), e; } - var Si = (function(e) { - var t = Ma(e, function(e) { - return 500 === n.size && n.clear(), e; + var ua = (function(e) { + var t = ss(e, function(e) { + return n.size === l && n.clear(), e; }), n = t.cache; return t; @@ -7405,21 +9019,21 @@ var t = []; return ( 46 === e.charCodeAt(0) && t.push(''), - e.replace(V, function(e, n, r, o) { - t.push(r ? o.replace(te, '$1') : n || e); + e.replace(Le, function(e, n, r, o) { + t.push(r ? o.replace(Be, '$1') : n || e); }), t ); }); - function Ai(e) { - if ('string' == typeof e || Qa(e)) return e; + function la(e) { + if ('string' == typeof e || zs(e)) return e; var t = e + ''; - return '0' == t && 1 / e == -1 / 0 ? '-0' : t; + return '0' == t && 1 / e == -D ? '-0' : t; } - function Oi(e) { + function fa(e) { if (null != e) { try { - return Me.call(e); + return ut.call(e); } catch (e) {} try { return e + ''; @@ -7427,218 +9041,214 @@ } return ''; } - function Ei(e) { - if (e instanceof Pn) return e.clone(); - var t = new Ln(e.__wrapped__, e.__chain__); + function da(e) { + if (e instanceof br) return e.clone(); + var t = new mr(e.__wrapped__, e.__chain__); return ( - (t.__actions__ = yo(e.__actions__)), + (t.__actions__ = ri(e.__actions__)), (t.__index__ = e.__index__), (t.__values__ = e.__values__), t ); } - var Ti = Ir(function(e, t) { - return ja(e) ? Zn(e, ir(t, 1, ja, !0)) : []; + var pa = ko(function(e, t) { + return _s(e) ? Ir(e, Wr(t, 1, _s, !0)) : []; }), - Ci = Ir(function(e, t) { - var n = Fi(t); + ha = ko(function(e, t) { + var n = Ma(t); return ( - ja(n) && (n = void 0), - ja(e) ? Zn(e, ir(t, 1, ja, !0), Qo(n, 2)) : [] + _s(n) && (n = i), + _s(e) ? Ir(e, Wr(t, 1, _s, !0), Ni(n, 2)) : [] ); }), - Li = Ir(function(e, t) { - var n = Fi(t); + ga = ko(function(e, t) { + var n = Ma(t); return ( - ja(n) && (n = void 0), - ja(e) ? Zn(e, ir(t, 1, ja, !0), void 0, n) : [] + _s(n) && (n = i), _s(e) ? Ir(e, Wr(t, 1, _s, !0), i, n) : [] ); }); - function Pi(e, t, n) { + function ma(e, t, n) { var r = null == e ? 0 : e.length; if (!r) return -1; - var o = null == n ? 0 : rs(n); - return o < 0 && (o = an(r + o, 0)), _t(e, Qo(t, 3), o); + var o = null == n ? 0 : Bs(n); + return o < 0 && (o = Vn(r + o, 0)), sn(e, Ni(t, 3), o); } - function Di(e, t, n) { + function ba(e, t, n) { var r = null == e ? 0 : e.length; if (!r) return -1; var o = r - 1; return ( - void 0 !== n && - ((o = rs(n)), (o = n < 0 ? an(r + o, 0) : sn(o, r - 1))), - _t(e, Qo(t, 3), o, !0) + n !== i && + ((o = Bs(n)), (o = n < 0 ? Vn(r + o, 0) : Un(o, r - 1))), + sn(e, Ni(t, 3), o, !0) ); } - function zi(e) { - return (null == e ? 0 : e.length) ? ir(e, 1) : []; + function ya(e) { + return (null == e ? 0 : e.length) ? Wr(e, 1) : []; } - function Ni(e) { - return e && e.length ? e[0] : void 0; + function va(e) { + return e && e.length ? e[0] : i; } - var ji = Ir(function(e) { - var t = pt(e, io); - return t.length && t[0] === e[0] ? br(t) : []; + var _a = ko(function(e) { + var t = Zt(e, Vo); + return t.length && t[0] === e[0] ? no(t) : []; }), - Ri = Ir(function(e) { - var t = Fi(e), - n = pt(e, io); + wa = ko(function(e) { + var t = Ma(e), + n = Zt(e, Vo); return ( - t === Fi(n) ? (t = void 0) : n.pop(), - n.length && n[0] === e[0] ? br(n, Qo(t, 2)) : [] + t === Ma(n) ? (t = i) : n.pop(), + n.length && n[0] === e[0] ? no(n, Ni(t, 2)) : [] ); }), - Ii = Ir(function(e) { - var t = Fi(e), - n = pt(e, io); + xa = ko(function(e) { + var t = Ma(e), + n = Zt(e, Vo); return ( - (t = 'function' == typeof t ? t : void 0) && n.pop(), - n.length && n[0] === e[0] ? br(n, void 0, t) : [] + (t = 'function' == typeof t ? t : i) && n.pop(), + n.length && n[0] === e[0] ? no(n, i, t) : [] ); }); - function Fi(e) { + function Ma(e) { var t = null == e ? 0 : e.length; - return t ? e[t - 1] : void 0; + return t ? e[t - 1] : i; } - var qi = Ir(Bi); - function Bi(e, t) { - return e && e.length && t && t.length ? zr(e, t) : e; + var ka = ko(Sa); + function Sa(e, t) { + return e && e.length && t && t.length ? _o(e, t) : e; } - var Hi = Vo(function(e, t) { + var Oa = Ci(function(e, t) { var n = null == e ? 0 : e.length, - r = Gn(e, t); + r = Dr(e, t); return ( - Nr( + wo( e, - pt(t, function(e) { - return si(e, n) ? +e : e; - }).sort(go) + Zt(t, function(e) { + return Ui(e, n) ? +e : e; + }).sort(ei) ), r ); }); - function Yi(e) { - return null == e ? e : fn.call(e); + function Ea(e) { + return null == e ? e : $n.call(e); } - var Wi = Ir(function(e) { - return Jr(ir(e, 1, ja, !0)); + var Aa = ko(function(e) { + return Io(Wr(e, 1, _s, !0)); }), - Vi = Ir(function(e) { - var t = Fi(e); - return ja(t) && (t = void 0), Jr(ir(e, 1, ja, !0), Qo(t, 2)); + Ta = ko(function(e) { + var t = Ma(e); + return _s(t) && (t = i), Io(Wr(e, 1, _s, !0), Ni(t, 2)); }), - Ui = Ir(function(e) { - var t = Fi(e); + Ca = ko(function(e) { + var t = Ma(e); return ( - (t = 'function' == typeof t ? t : void 0), - Jr(ir(e, 1, ja, !0), void 0, t) + (t = 'function' == typeof t ? t : i), + Io(Wr(e, 1, _s, !0), i, t) ); }); - function Xi(e) { + function La(e) { if (!e || !e.length) return []; var t = 0; return ( - (e = lt(e, function(e) { - if (ja(e)) return (t = an(e.length, t)), !0; + (e = $t(e, function(e) { + if (_s(e)) return (t = Vn(e.length, t)), !0; })), - Tt(t, function(t) { - return pt(e, St(t)); + mn(t, function(t) { + return Zt(e, dn(t)); }) ); } - function Gi(e, t) { + function Pa(e, t) { if (!e || !e.length) return []; - var n = Xi(e); + var n = La(e); return null == t ? n - : pt(n, function(e) { - return it(t, void 0, e); + : Zt(n, function(e) { + return Vt(t, i, e); }); } - var Ki = Ir(function(e, t) { - return ja(e) ? Zn(e, t) : []; + var Da = ko(function(e, t) { + return _s(e) ? Ir(e, t) : []; }), - $i = Ir(function(e) { - return ro(lt(e, ja)); + ja = ko(function(e) { + return Yo($t(e, _s)); }), - Qi = Ir(function(e) { - var t = Fi(e); - return ja(t) && (t = void 0), ro(lt(e, ja), Qo(t, 2)); + za = ko(function(e) { + var t = Ma(e); + return _s(t) && (t = i), Yo($t(e, _s), Ni(t, 2)); }), - Ji = Ir(function(e) { - var t = Fi(e); + Na = ko(function(e) { + var t = Ma(e); return ( - (t = 'function' == typeof t ? t : void 0), - ro(lt(e, ja), void 0, t) + (t = 'function' == typeof t ? t : i), Yo($t(e, _s), i, t) ); }), - Zi = Ir(Xi); - var ea = Ir(function(e) { + Ra = ko(La); + var Ia = ko(function(e) { var t = e.length, - n = t > 1 ? e[t - 1] : void 0; - return ( - (n = 'function' == typeof n ? (e.pop(), n) : void 0), Gi(e, n) - ); + n = t > 1 ? e[t - 1] : i; + return (n = 'function' == typeof n ? (e.pop(), n) : i), Pa(e, n); }); - function ta(e) { - var t = En(e); + function Fa(e) { + var t = pr(e); return (t.__chain__ = !0), t; } - function na(e, t) { + function qa(e, t) { return t(e); } - var ra = Vo(function(e) { + var Ba = Ci(function(e) { var t = e.length, n = t ? e[0] : 0, r = this.__wrapped__, o = function(t) { - return Gn(t, e); + return Dr(t, e); }; return !(t > 1 || this.__actions__.length) && - r instanceof Pn && - si(n) + r instanceof br && + Ui(n) ? ((r = r.slice(n, +n + (t ? 1 : 0))).__actions__.push({ - func: na, + func: qa, args: [o], - thisArg: void 0 + thisArg: i }), - new Ln(r, this.__chain__).thru(function(e) { - return t && !e.length && e.push(void 0), e; + new mr(r, this.__chain__).thru(function(e) { + return t && !e.length && e.push(i), e; })) : this.thru(o); }); - var oa = _o(function(e, t, n) { - ke.call(e, n) ? ++e[n] : Xn(e, n, 1); + var Ha = ii(function(e, t, n) { + lt.call(e, n) ? ++e[n] : Pr(e, n, 1); }); - var ia = Oo(Pi), - aa = Oo(Di); - function sa(e, t) { - return (Da(e) ? st : er)(e, Qo(t, 3)); + var Ya = di(ma), + Wa = di(ba); + function Va(e, t) { + return (bs(e) ? Xt : Fr)(e, Ni(t, 3)); } - function ca(e, t) { - return (Da(e) ? ct : tr)(e, Qo(t, 3)); + function Ua(e, t) { + return (bs(e) ? Gt : qr)(e, Ni(t, 3)); } - var ua = _o(function(e, t, n) { - ke.call(e, n) ? e[n].push(t) : Xn(e, n, [t]); + var Xa = ii(function(e, t, n) { + lt.call(e, n) ? e[n].push(t) : Pr(e, n, [t]); }); - var la = Ir(function(e, t, n) { + var Ga = ko(function(e, t, n) { var o = -1, i = 'function' == typeof t, - a = Na(e) ? r(e.length) : []; + a = vs(e) ? r(e.length) : []; return ( - er(e, function(e) { - a[++o] = i ? it(t, e, n) : yr(e, t, n); + Fr(e, function(e) { + a[++o] = i ? Vt(t, e, n) : ro(e, t, n); }), a ); }), - fa = _o(function(e, t, n) { - Xn(e, n, t); + Ka = ii(function(e, t, n) { + Pr(e, n, t); }); - function da(e, t) { - return (Da(e) ? pt : Or)(e, Qo(t, 3)); + function $a(e, t) { + return (bs(e) ? Zt : po)(e, Ni(t, 3)); } - var pa = _o( + var Qa = ii( function(e, t, n) { e[n ? 0 : 1].push(t); }, @@ -7646,139 +9256,132 @@ return [[], []]; } ); - var ha = Ir(function(e, t) { + var Ja = ko(function(e, t) { if (null == e) return []; var n = t.length; return ( - n > 1 && ci(e, t[0], t[1]) + n > 1 && Xi(e, t[0], t[1]) ? (t = []) - : n > 2 && ci(t[0], t[1], t[2]) && (t = [t[0]]), - Pr(e, ir(t, 1), []) + : n > 2 && Xi(t[0], t[1], t[2]) && (t = [t[0]]), + yo(e, Wr(t, 1), []) ); }), - ga = - $t || + Za = + Nn || function() { - return Xe.Date.now(); + return Dt.Date.now(); }; - function ma(e, t, n) { + function es(e, t, n) { return ( - (t = n ? void 0 : t), - qo( - e, - 128, - void 0, - void 0, - void 0, - void 0, - (t = e && null == t ? e.length : t) - ) + (t = n ? i : t), + (t = e && null == t ? e.length : t), + Si(e, k, i, i, i, i, t) ); } - function ba(e, t) { + function ts(e, t) { var n; - if ('function' != typeof t) throw new ye(i); + if ('function' != typeof t) throw new ot(c); return ( - (e = rs(e)), + (e = Bs(e)), function() { return ( --e > 0 && (n = t.apply(this, arguments)), - e <= 1 && (t = void 0), + e <= 1 && (t = i), n ); } ); } - var ya = Ir(function(e, t, n) { - var r = 1; + var ns = ko(function(e, t, n) { + var r = b; if (n.length) { - var o = Ht(n, $o(ya)); - r |= 32; + var o = An(n, zi(ns)); + r |= x; } - return qo(e, r, t, n, o); + return Si(e, r, t, n, o); }), - va = Ir(function(e, t, n) { - var r = 3; + rs = ko(function(e, t, n) { + var r = b | y; if (n.length) { - var o = Ht(n, $o(va)); - r |= 32; + var o = An(n, zi(rs)); + r |= x; } - return qo(t, r, e, n, o); + return Si(t, r, e, n, o); }); - function _a(e, t, n) { + function os(e, t, n) { var r, o, a, s, - c, u, - l = 0, - f = !1, + l, + f = 0, d = !1, - p = !0; - if ('function' != typeof e) throw new ye(i); - function h(t) { + p = !1, + h = !0; + if ('function' != typeof e) throw new ot(c); + function g(t) { var n = r, - i = o; - return (r = o = void 0), (l = t), (s = e.apply(i, n)); - } - function g(e) { - return (l = e), (c = _i(b, t)), f ? h(e) : s; + a = o; + return (r = o = i), (f = t), (s = e.apply(a, n)); } function m(e) { - var n = e - u; - return void 0 === u || n >= t || n < 0 || (d && e - l >= a); + var n = e - l; + return l === i || n >= t || n < 0 || (p && e - f >= a); } function b() { - var e = ga(); + var e = Za(); if (m(e)) return y(e); - c = _i( + u = oa( b, (function(e) { - var n = t - (e - u); - return d ? sn(n, a - (e - l)) : n; + var n = t - (e - l); + return p ? Un(n, a - (e - f)) : n; })(e) ); } function y(e) { - return (c = void 0), p && r ? h(e) : ((r = o = void 0), s); + return (u = i), h && r ? g(e) : ((r = o = i), s); } function v() { - var e = ga(), + var e = Za(), n = m(e); - if (((r = arguments), (o = this), (u = e), n)) { - if (void 0 === c) return g(u); - if (d) return lo(c), (c = _i(b, t)), h(u); + if (((r = arguments), (o = this), (l = e), n)) { + if (u === i) + return (function(e) { + return (f = e), (u = oa(b, t)), d ? g(e) : s; + })(l); + if (p) return $o(u), (u = oa(b, t)), g(l); } - return void 0 === c && (c = _i(b, t)), s; + return u === i && (u = oa(b, t)), s; } return ( - (t = is(t) || 0), - Ya(n) && - ((f = !!n.leading), - (a = (d = 'maxWait' in n) ? an(is(n.maxWait) || 0, t) : a), - (p = 'trailing' in n ? !!n.trailing : p)), + (t = Ys(t) || 0), + Es(n) && + ((d = !!n.leading), + (a = (p = 'maxWait' in n) ? Vn(Ys(n.maxWait) || 0, t) : a), + (h = 'trailing' in n ? !!n.trailing : h)), (v.cancel = function() { - void 0 !== c && lo(c), (l = 0), (r = u = o = c = void 0); + u !== i && $o(u), (f = 0), (r = l = o = u = i); }), (v.flush = function() { - return void 0 === c ? s : y(ga()); + return u === i ? s : y(Za()); }), v ); } - var xa = Ir(function(e, t) { - return Jn(e, 1, t); + var is = ko(function(e, t) { + return Rr(e, 1, t); }), - wa = Ir(function(e, t, n) { - return Jn(e, is(t) || 0, n); + as = ko(function(e, t, n) { + return Rr(e, Ys(t) || 0, n); }); - function Ma(e, t) { + function ss(e, t) { if ( 'function' != typeof e || (null != t && 'function' != typeof t) ) - throw new ye(i); + throw new ot(c); var n = function() { var r = arguments, o = t ? t.apply(this, r) : r[0], @@ -7787,10 +9390,10 @@ var a = e.apply(this, r); return (n.cache = i.set(o, a) || i), a; }; - return (n.cache = new (Ma.Cache || Nn)()), n; + return (n.cache = new (ss.Cache || _r)()), n; } - function ka(e) { - if ('function' != typeof e) throw new ye(i); + function cs(e) { + if ('function' != typeof e) throw new ot(c); return function() { var t = arguments; switch (t.length) { @@ -7806,159 +9409,151 @@ return !e.apply(this, t); }; } - Ma.Cache = Nn; - var Sa = co(function(e, t) { + ss.Cache = _r; + var us = Go(function(e, t) { var n = (t = - 1 == t.length && Da(t[0]) - ? pt(t[0], Ct(Qo())) - : pt(ir(t, 1), Ct(Qo()))).length; - return Ir(function(r) { - for (var o = -1, i = sn(r.length, n); ++o < i; ) + 1 == t.length && bs(t[0]) + ? Zt(t[0], bn(Ni())) + : Zt(Wr(t, 1), bn(Ni()))).length; + return ko(function(r) { + for (var o = -1, i = Un(r.length, n); ++o < i; ) r[o] = t[o].call(this, r[o]); - return it(e, this, r); + return Vt(e, this, r); }); }), - Aa = Ir(function(e, t) { - return qo(e, 32, void 0, t, Ht(t, $o(Aa))); + ls = ko(function(e, t) { + var n = An(t, zi(ls)); + return Si(e, x, i, t, n); }), - Oa = Ir(function(e, t) { - return qo(e, 64, void 0, t, Ht(t, $o(Oa))); + fs = ko(function(e, t) { + var n = An(t, zi(fs)); + return Si(e, M, i, t, n); }), - Ea = Vo(function(e, t) { - return qo(e, 256, void 0, void 0, void 0, t); + ds = Ci(function(e, t) { + return Si(e, S, i, i, i, t); }); - function Ta(e, t) { + function ps(e, t) { return e === t || (e != e && t != t); } - var Ca = No(hr), - La = No(function(e, t) { + var hs = _i(Zr), + gs = _i(function(e, t) { return e >= t; }), - Pa = vr( + ms = oo( (function() { return arguments; })() ) - ? vr + ? oo : function(e) { return ( - Wa(e) && ke.call(e, 'callee') && !Ge.call(e, 'callee') + As(e) && lt.call(e, 'callee') && !jt.call(e, 'callee') ); }, - Da = r.isArray, - za = Ze - ? Ct(Ze) + bs = r.isArray, + ys = Ft + ? bn(Ft) : function(e) { - return Wa(e) && pr(e) == M; + return As(e) && Jr(e) == ce; }; - function Na(e) { - return null != e && Ha(e.length) && !qa(e); + function vs(e) { + return null != e && Os(e.length) && !ks(e); } - function ja(e) { - return Wa(e) && Na(e); + function _s(e) { + return As(e) && vs(e); } - var Ra = tn || ic, - Ia = et - ? Ct(et) + var ws = Bn || Yc, + xs = qt + ? bn(qt) : function(e) { - return Wa(e) && pr(e) == f; + return As(e) && Jr(e) == V; }; - function Fa(e) { - if (!Wa(e)) return !1; - var t = pr(e); + function Ms(e) { + if (!As(e)) return !1; + var t = Jr(e); return ( - t == d || - '[object DOMException]' == t || + t == X || + t == U || ('string' == typeof e.message && 'string' == typeof e.name && - !Xa(e)) + !Ls(e)) ); } - function qa(e) { - if (!Ya(e)) return !1; - var t = pr(e); - return ( - t == p || - t == h || - '[object AsyncFunction]' == t || - '[object Proxy]' == t - ); + function ks(e) { + if (!Es(e)) return !1; + var t = Jr(e); + return t == G || t == K || t == Y || t == ee; } - function Ba(e) { - return 'number' == typeof e && e == rs(e); + function Ss(e) { + return 'number' == typeof e && e == Bs(e); } - function Ha(e) { - return ( - 'number' == typeof e && - e > -1 && - e % 1 == 0 && - e <= 9007199254740991 - ); + function Os(e) { + return 'number' == typeof e && e > -1 && e % 1 == 0 && e <= j; } - function Ya(e) { + function Es(e) { var t = typeof e; return null != e && ('object' == t || 'function' == t); } - function Wa(e) { + function As(e) { return null != e && 'object' == typeof e; } - var Va = tt - ? Ct(tt) + var Ts = Bt + ? bn(Bt) : function(e) { - return Wa(e) && ri(e) == g; + return As(e) && Hi(e) == $; }; - function Ua(e) { - return 'number' == typeof e || (Wa(e) && pr(e) == m); + function Cs(e) { + return 'number' == typeof e || (As(e) && Jr(e) == Q); } - function Xa(e) { - if (!Wa(e) || pr(e) != b) return !1; - var t = Ve(e); + function Ls(e) { + if (!As(e) || Jr(e) != Z) return !1; + var t = Lt(e); if (null === t) return !0; - var n = ke.call(t, 'constructor') && t.constructor; + var n = lt.call(t, 'constructor') && t.constructor; return ( - 'function' == typeof n && n instanceof n && Me.call(n) == Ee + 'function' == typeof n && n instanceof n && ut.call(n) == ht ); } - var Ga = nt - ? Ct(nt) + var Ps = Ht + ? bn(Ht) : function(e) { - return Wa(e) && pr(e) == y; + return As(e) && Jr(e) == te; }; - var Ka = rt - ? Ct(rt) + var Ds = Yt + ? bn(Yt) : function(e) { - return Wa(e) && ri(e) == v; + return As(e) && Hi(e) == ne; }; - function $a(e) { - return 'string' == typeof e || (!Da(e) && Wa(e) && pr(e) == _); + function js(e) { + return 'string' == typeof e || (!bs(e) && As(e) && Jr(e) == re); } - function Qa(e) { - return 'symbol' == typeof e || (Wa(e) && pr(e) == x); + function zs(e) { + return 'symbol' == typeof e || (As(e) && Jr(e) == oe); } - var Ja = ot - ? Ct(ot) + var Ns = Wt + ? bn(Wt) : function(e) { - return Wa(e) && Ha(e.length) && !!qe[pr(e)]; + return As(e) && Os(e.length) && !!Ot[Jr(e)]; }; - var Za = No(Ar), - es = No(function(e, t) { + var Rs = _i(fo), + Is = _i(function(e, t) { return e <= t; }); - function ts(e) { + function Fs(e) { if (!e) return []; - if (Na(e)) return $a(e) ? Ut(e) : yo(e); - if (Je && e[Je]) + if (vs(e)) return js(e) ? Pn(e) : ri(e); + if (It && e[It]) return (function(e) { for (var t, n = []; !(t = e.next()).done; ) n.push(t.value); return n; - })(e[Je]()); - var t = ri(e); - return (t == g ? qt : t == v ? Yt : Ts)(e); + })(e[It]()); + var t = Hi(e); + return (t == $ ? On : t == ne ? Tn : pc)(e); } - function ns(e) { + function qs(e) { return e - ? (e = is(e)) === 1 / 0 || e === -1 / 0 - ? 17976931348623157e292 * (e < 0 ? -1 : 1) + ? (e = Ys(e)) === D || e === -D + ? (e < 0 ? -1 : 1) * z : e == e ? e : 0 @@ -7966,231 +9561,231 @@ ? e : 0; } - function rs(e) { - var t = ns(e), + function Bs(e) { + var t = qs(e), n = t % 1; return t == t ? (n ? t - n : t) : 0; } - function os(e) { - return e ? Kn(rs(e), 0, 4294967295) : 0; + function Hs(e) { + return e ? jr(Bs(e), 0, R) : 0; } - function is(e) { + function Ys(e) { if ('number' == typeof e) return e; - if (Qa(e)) return NaN; - if (Ya(e)) { + if (zs(e)) return N; + if (Es(e)) { var t = 'function' == typeof e.valueOf ? e.valueOf() : e; - e = Ya(t) ? t + '' : t; + e = Es(t) ? t + '' : t; } if ('string' != typeof e) return 0 === e ? e : +e; - e = e.replace(G, ''); - var n = ie.test(e); - return n || se.test(e) - ? We(e.slice(2), n ? 2 : 8) - : oe.test(e) - ? NaN + e = e.replace(je, ''); + var n = Ve.test(e); + return n || Xe.test(e) + ? Ct(e.slice(2), n ? 2 : 8) + : We.test(e) + ? N : +e; } - function as(e) { - return vo(e, xs(e)); + function Ws(e) { + return oi(e, ic(e)); } - function ss(e) { - return null == e ? '' : Qr(e); + function Vs(e) { + return null == e ? '' : Ro(e); } - var cs = xo(function(e, t) { - if (di(t) || Na(t)) vo(t, _s(t), e); - else for (var n in t) ke.call(t, n) && Yn(e, n, t[n]); + var Us = ai(function(e, t) { + if (Qi(t) || vs(t)) oi(t, oc(t), e); + else for (var n in t) lt.call(t, n) && Ar(e, n, t[n]); }), - us = xo(function(e, t) { - vo(t, xs(t), e); + Xs = ai(function(e, t) { + oi(t, ic(t), e); }), - ls = xo(function(e, t, n, r) { - vo(t, xs(t), e, r); + Gs = ai(function(e, t, n, r) { + oi(t, ic(t), e, r); }), - fs = xo(function(e, t, n, r) { - vo(t, _s(t), e, r); + Ks = ai(function(e, t, n, r) { + oi(t, oc(t), e, r); }), - ds = Vo(Gn); - var ps = Ir(function(e, t) { - e = ge(e); + $s = Ci(Dr); + var Qs = ko(function(e, t) { + e = tt(e); var n = -1, r = t.length, - o = r > 2 ? t[2] : void 0; - for (o && ci(t[0], t[1], o) && (r = 1); ++n < r; ) + o = r > 2 ? t[2] : i; + for (o && Xi(t[0], t[1], o) && (r = 1); ++n < r; ) for ( - var i = t[n], a = xs(i), s = -1, c = a.length; - ++s < c; + var a = t[n], s = ic(a), c = -1, u = s.length; + ++c < u; ) { - var u = a[s], - l = e[u]; - (void 0 === l || (Ta(l, xe[u]) && !ke.call(e, u))) && - (e[u] = i[u]); + var l = s[c], + f = e[l]; + (f === i || (ps(f, st[l]) && !lt.call(e, l))) && + (e[l] = a[l]); } return e; }), - hs = Ir(function(e) { - return e.push(void 0, Ho), it(Ms, void 0, e); + Js = ko(function(e) { + return e.push(i, Ei), Vt(sc, i, e); }); - function gs(e, t, n) { - var r = null == e ? void 0 : fr(e, t); - return void 0 === r ? n : r; + function Zs(e, t, n) { + var r = null == e ? i : $r(e, t); + return r === i ? n : r; } - function ms(e, t) { - return null != e && oi(e, t, mr); + function ec(e, t) { + return null != e && Yi(e, t, to); } - var bs = Co(function(e, t, n) { + var tc = gi(function(e, t, n) { null != t && 'function' != typeof t.toString && - (t = Oe.call(t)), + (t = pt.call(t)), (e[t] = n); - }, Ys(Us)), - ys = Co(function(e, t, n) { + }, Ec(Cc)), + nc = gi(function(e, t, n) { null != t && 'function' != typeof t.toString && - (t = Oe.call(t)), - ke.call(e, t) ? e[t].push(n) : (e[t] = [n]); - }, Qo), - vs = Ir(yr); - function _s(e) { - return Na(e) ? In(e) : kr(e); + (t = pt.call(t)), + lt.call(e, t) ? e[t].push(n) : (e[t] = [n]); + }, Ni), + rc = ko(ro); + function oc(e) { + return vs(e) ? Mr(e) : uo(e); } - function xs(e) { - return Na(e) ? In(e, !0) : Sr(e); + function ic(e) { + return vs(e) ? Mr(e, !0) : lo(e); } - var ws = xo(function(e, t, n) { - Cr(e, t, n); + var ac = ai(function(e, t, n) { + mo(e, t, n); }), - Ms = xo(function(e, t, n, r) { - Cr(e, t, n, r); + sc = ai(function(e, t, n, r) { + mo(e, t, n, r); }), - ks = Vo(function(e, t) { + cc = Ci(function(e, t) { var n = {}; if (null == e) return n; var r = !1; - (t = pt(t, function(t) { - return (t = so(t, e)), r || (r = t.length > 1), t; + (t = Zt(t, function(t) { + return (t = Xo(t, e)), r || (r = t.length > 1), t; })), - vo(e, Xo(e), n), - r && (n = $n(n, 7, Yo)); - for (var o = t.length; o--; ) Zr(n, t[o]); + oi(e, Pi(e), n), + r && (n = zr(n, d | p | h, Ai)); + for (var o = t.length; o--; ) Fo(n, t[o]); return n; }); - var Ss = Vo(function(e, t) { + var uc = Ci(function(e, t) { return null == e ? {} : (function(e, t) { - return Dr(e, t, function(t, n) { - return ms(e, n); + return vo(e, t, function(t, n) { + return ec(e, n); }); })(e, t); }); - function As(e, t) { + function lc(e, t) { if (null == e) return {}; - var n = pt(Xo(e), function(e) { + var n = Zt(Pi(e), function(e) { return [e]; }); return ( - (t = Qo(t)), - Dr(e, n, function(e, n) { + (t = Ni(t)), + vo(e, n, function(e, n) { return t(e, n[0]); }) ); } - var Os = Fo(_s), - Es = Fo(xs); - function Ts(e) { - return null == e ? [] : Lt(e, _s(e)); + var fc = ki(oc), + dc = ki(ic); + function pc(e) { + return null == e ? [] : yn(e, oc(e)); } - var Cs = So(function(e, t, n) { - return (t = t.toLowerCase()), e + (n ? Ls(t) : t); + var hc = li(function(e, t, n) { + return (t = t.toLowerCase()), e + (n ? gc(t) : t); }); - function Ls(e) { - return Fs(ss(e).toLowerCase()); + function gc(e) { + return Mc(Vs(e).toLowerCase()); } - function Ps(e) { - return (e = ss(e)) && e.replace(ue, jt).replace(De, ''); + function mc(e) { + return (e = Vs(e)) && e.replace(Ke, xn).replace(vt, ''); } - var Ds = So(function(e, t, n) { + var bc = li(function(e, t, n) { return e + (n ? '-' : '') + t.toLowerCase(); }), - zs = So(function(e, t, n) { + yc = li(function(e, t, n) { return e + (n ? ' ' : '') + t.toLowerCase(); }), - Ns = ko('toLowerCase'); - var js = So(function(e, t, n) { + vc = ui('toLowerCase'); + var _c = li(function(e, t, n) { return e + (n ? '_' : '') + t.toLowerCase(); }); - var Rs = So(function(e, t, n) { - return e + (n ? ' ' : '') + Fs(t); + var wc = li(function(e, t, n) { + return e + (n ? ' ' : '') + Mc(t); }); - var Is = So(function(e, t, n) { + var xc = li(function(e, t, n) { return e + (n ? ' ' : '') + t.toUpperCase(); }), - Fs = ko('toUpperCase'); - function qs(e, t, n) { + Mc = ui('toUpperCase'); + function kc(e, t, n) { return ( - (e = ss(e)), - void 0 === (t = n ? void 0 : t) + (e = Vs(e)), + (t = n ? i : t) === i ? (function(e) { - return Re.test(e); + return Mt.test(e); })(e) ? (function(e) { - return e.match(Ne) || []; + return e.match(wt) || []; })(e) : (function(e) { - return e.match(ee) || []; + return e.match(qe) || []; })(e) : e.match(t) || [] ); } - var Bs = Ir(function(e, t) { + var Sc = ko(function(e, t) { try { - return it(e, void 0, t); + return Vt(e, i, t); } catch (e) { - return Fa(e) ? e : new de(e); + return Ms(e) ? e : new Je(e); } }), - Hs = Vo(function(e, t) { + Oc = Ci(function(e, t) { return ( - st(t, function(t) { - (t = Ai(t)), Xn(e, t, ya(e[t], e)); + Xt(t, function(t) { + (t = la(t)), Pr(e, t, ns(e[t], e)); }), e ); }); - function Ys(e) { + function Ec(e) { return function() { return e; }; } - var Ws = Eo(), - Vs = Eo(!0); - function Us(e) { + var Ac = pi(), + Tc = pi(!0); + function Cc(e) { return e; } - function Xs(e) { - return Mr('function' == typeof e ? e : $n(e, 1)); + function Lc(e) { + return co('function' == typeof e ? e : zr(e, d)); } - var Gs = Ir(function(e, t) { + var Pc = ko(function(e, t) { return function(n) { - return yr(n, e, t); + return ro(n, e, t); }; }), - Ks = Ir(function(e, t) { + Dc = ko(function(e, t) { return function(n) { - return yr(e, n, t); + return ro(e, n, t); }; }); - function $s(e, t, n) { - var r = _s(t), - o = lr(t, r); + function jc(e, t, n) { + var r = oc(t), + o = Kr(t, r); null != n || - (Ya(t) && (o.length || !r.length)) || - ((n = t), (t = e), (e = this), (o = lr(t, _s(t)))); - var i = !(Ya(n) && 'chain' in n && !n.chain), - a = qa(e); + (Es(t) && (o.length || !r.length)) || + ((n = t), (t = e), (e = this), (o = Kr(t, oc(t)))); + var i = !(Es(n) && 'chain' in n && !n.chain), + a = ks(e); return ( - st(o, function(n) { + Xt(o, function(n) { var r = t[n]; (e[n] = r), a && @@ -8198,91 +9793,91 @@ var t = this.__chain__; if (i || t) { var n = e(this.__wrapped__), - o = (n.__actions__ = yo(this.__actions__)); + o = (n.__actions__ = ri(this.__actions__)); return ( o.push({ func: r, args: arguments, thisArg: e }), (n.__chain__ = t), n ); } - return r.apply(e, ht([this.value()], arguments)); + return r.apply(e, en([this.value()], arguments)); }); }), e ); } - function Qs() {} - var Js = Po(pt), - Zs = Po(ut), - ec = Po(bt); - function tc(e) { - return ui(e) - ? St(Ai(e)) + function zc() {} + var Nc = bi(Zt), + Rc = bi(Kt), + Ic = bi(rn); + function Fc(e) { + return Gi(e) + ? dn(la(e)) : (function(e) { return function(t) { - return fr(t, e); + return $r(t, e); }; })(e); } - var nc = zo(), - rc = zo(!0); - function oc() { + var qc = vi(), + Bc = vi(!0); + function Hc() { return []; } - function ic() { + function Yc() { return !1; } - var ac = Lo(function(e, t) { + var Wc = mi(function(e, t) { return e + t; }, 0), - sc = Ro('ceil'), - cc = Lo(function(e, t) { + Vc = xi('ceil'), + Uc = mi(function(e, t) { return e / t; }, 1), - uc = Ro('floor'); - var lc, - fc = Lo(function(e, t) { + Xc = xi('floor'); + var Gc, + Kc = mi(function(e, t) { return e * t; }, 1), - dc = Ro('round'), - pc = Lo(function(e, t) { + $c = xi('round'), + Qc = mi(function(e, t) { return e - t; }, 0); return ( - (En.after = function(e, t) { - if ('function' != typeof t) throw new ye(i); + (pr.after = function(e, t) { + if ('function' != typeof t) throw new ot(c); return ( - (e = rs(e)), + (e = Bs(e)), function() { if (--e < 1) return t.apply(this, arguments); } ); }), - (En.ary = ma), - (En.assign = cs), - (En.assignIn = us), - (En.assignInWith = ls), - (En.assignWith = fs), - (En.at = ds), - (En.before = ba), - (En.bind = ya), - (En.bindAll = Hs), - (En.bindKey = va), - (En.castArray = function() { + (pr.ary = es), + (pr.assign = Us), + (pr.assignIn = Xs), + (pr.assignInWith = Gs), + (pr.assignWith = Ks), + (pr.at = $s), + (pr.before = ts), + (pr.bind = ns), + (pr.bindAll = Oc), + (pr.bindKey = rs), + (pr.castArray = function() { if (!arguments.length) return []; var e = arguments[0]; - return Da(e) ? e : [e]; + return bs(e) ? e : [e]; }), - (En.chain = ta), - (En.chunk = function(e, t, n) { - t = (n ? ci(e, t, n) : void 0 === t) ? 1 : an(rs(t), 0); + (pr.chain = Fa), + (pr.chunk = function(e, t, n) { + t = (n ? Xi(e, t, n) : t === i) ? 1 : Vn(Bs(t), 0); var o = null == e ? 0 : e.length; if (!o || t < 1) return []; - for (var i = 0, a = 0, s = r(Jt(o / t)); i < o; ) - s[a++] = Vr(e, i, (i += t)); - return s; + for (var a = 0, s = 0, c = r(In(o / t)); a < o; ) + c[s++] = Lo(e, a, (a += t)); + return c; }), - (En.compact = function(e) { + (pr.compact = function(e) { for ( var t = -1, n = null == e ? 0 : e.length, r = 0, o = []; ++t < n; @@ -8293,115 +9888,96 @@ } return o; }), - (En.concat = function() { + (pr.concat = function() { var e = arguments.length; if (!e) return []; for (var t = r(e - 1), n = arguments[0], o = e; o--; ) t[o - 1] = arguments[o]; - return ht(Da(n) ? yo(n) : [n], ir(t, 1)); + return en(bs(n) ? ri(n) : [n], Wr(t, 1)); }), - (En.cond = function(e) { + (pr.cond = function(e) { var t = null == e ? 0 : e.length, - n = Qo(); + n = Ni(); return ( (e = t - ? pt(e, function(e) { - if ('function' != typeof e[1]) throw new ye(i); + ? Zt(e, function(e) { + if ('function' != typeof e[1]) throw new ot(c); return [n(e[0]), e[1]]; }) : []), - Ir(function(n) { + ko(function(n) { for (var r = -1; ++r < t; ) { var o = e[r]; - if (it(o[0], this, n)) return it(o[1], this, n); + if (Vt(o[0], this, n)) return Vt(o[1], this, n); } }) ); }), - (En.conforms = function(e) { + (pr.conforms = function(e) { return (function(e) { - var t = _s(e); + var t = oc(e); return function(n) { - return Qn(n, e, t); + return Nr(n, e, t); }; - })($n(e, 1)); + })(zr(e, d)); }), - (En.constant = Ys), - (En.countBy = oa), - (En.create = function(e, t) { - var n = Tn(e); - return null == t ? n : Un(n, t); + (pr.constant = Ec), + (pr.countBy = Ha), + (pr.create = function(e, t) { + var n = hr(e); + return null == t ? n : Lr(n, t); }), - (En.curry = function e(t, n, r) { - var o = qo( - t, - 8, - void 0, - void 0, - void 0, - void 0, - void 0, - (n = r ? void 0 : n) - ); + (pr.curry = function e(t, n, r) { + var o = Si(t, _, i, i, i, i, i, (n = r ? i : n)); return (o.placeholder = e.placeholder), o; }), - (En.curryRight = function e(t, n, r) { - var o = qo( - t, - 16, - void 0, - void 0, - void 0, - void 0, - void 0, - (n = r ? void 0 : n) - ); + (pr.curryRight = function e(t, n, r) { + var o = Si(t, w, i, i, i, i, i, (n = r ? i : n)); return (o.placeholder = e.placeholder), o; }), - (En.debounce = _a), - (En.defaults = ps), - (En.defaultsDeep = hs), - (En.defer = xa), - (En.delay = wa), - (En.difference = Ti), - (En.differenceBy = Ci), - (En.differenceWith = Li), - (En.drop = function(e, t, n) { + (pr.debounce = os), + (pr.defaults = Qs), + (pr.defaultsDeep = Js), + (pr.defer = is), + (pr.delay = as), + (pr.difference = pa), + (pr.differenceBy = ha), + (pr.differenceWith = ga), + (pr.drop = function(e, t, n) { var r = null == e ? 0 : e.length; return r - ? Vr(e, (t = n || void 0 === t ? 1 : rs(t)) < 0 ? 0 : t, r) + ? Lo(e, (t = n || t === i ? 1 : Bs(t)) < 0 ? 0 : t, r) : []; }), - (En.dropRight = function(e, t, n) { + (pr.dropRight = function(e, t, n) { var r = null == e ? 0 : e.length; return r - ? Vr( + ? Lo( e, 0, - (t = r - (t = n || void 0 === t ? 1 : rs(t))) < 0 ? 0 : t + (t = r - (t = n || t === i ? 1 : Bs(t))) < 0 ? 0 : t ) : []; }), - (En.dropRightWhile = function(e, t) { - return e && e.length ? to(e, Qo(t, 3), !0, !0) : []; + (pr.dropRightWhile = function(e, t) { + return e && e.length ? Bo(e, Ni(t, 3), !0, !0) : []; }), - (En.dropWhile = function(e, t) { - return e && e.length ? to(e, Qo(t, 3), !0) : []; + (pr.dropWhile = function(e, t) { + return e && e.length ? Bo(e, Ni(t, 3), !0) : []; }), - (En.fill = function(e, t, n, r) { + (pr.fill = function(e, t, n, r) { var o = null == e ? 0 : e.length; return o ? (n && 'number' != typeof n && - ci(e, t, n) && + Xi(e, t, n) && ((n = 0), (r = o)), (function(e, t, n, r) { var o = e.length; for ( - (n = rs(n)) < 0 && (n = -n > o ? 0 : o + n), - (r = void 0 === r || r > o ? o : rs(r)) < 0 && - (r += o), - r = n > r ? 0 : os(r); + (n = Bs(n)) < 0 && (n = -n > o ? 0 : o + n), + (r = r === i || r > o ? o : Bs(r)) < 0 && (r += o), + r = n > r ? 0 : Hs(r); n < r; ) @@ -8410,35 +9986,35 @@ })(e, t, n, r)) : []; }), - (En.filter = function(e, t) { - return (Da(e) ? lt : or)(e, Qo(t, 3)); + (pr.filter = function(e, t) { + return (bs(e) ? $t : Yr)(e, Ni(t, 3)); }), - (En.flatMap = function(e, t) { - return ir(da(e, t), 1); + (pr.flatMap = function(e, t) { + return Wr($a(e, t), 1); }), - (En.flatMapDeep = function(e, t) { - return ir(da(e, t), 1 / 0); + (pr.flatMapDeep = function(e, t) { + return Wr($a(e, t), D); }), - (En.flatMapDepth = function(e, t, n) { - return (n = void 0 === n ? 1 : rs(n)), ir(da(e, t), n); + (pr.flatMapDepth = function(e, t, n) { + return (n = n === i ? 1 : Bs(n)), Wr($a(e, t), n); }), - (En.flatten = zi), - (En.flattenDeep = function(e) { - return (null == e ? 0 : e.length) ? ir(e, 1 / 0) : []; + (pr.flatten = ya), + (pr.flattenDeep = function(e) { + return (null == e ? 0 : e.length) ? Wr(e, D) : []; }), - (En.flattenDepth = function(e, t) { + (pr.flattenDepth = function(e, t) { return (null == e ? 0 : e.length) - ? ir(e, (t = void 0 === t ? 1 : rs(t))) + ? Wr(e, (t = t === i ? 1 : Bs(t))) : []; }), - (En.flip = function(e) { - return qo(e, 512); + (pr.flip = function(e) { + return Si(e, O); }), - (En.flow = Ws), - (En.flowRight = Vs), - (En.fromPairs = function(e) { + (pr.flow = Ac), + (pr.flowRight = Tc), + (pr.fromPairs = function(e) { for ( var t = -1, n = null == e ? 0 : e.length, r = {}; ++t < n; @@ -8449,884 +10025,867 @@ } return r; }), - (En.functions = function(e) { - return null == e ? [] : lr(e, _s(e)); - }), - (En.functionsIn = function(e) { - return null == e ? [] : lr(e, xs(e)); - }), - (En.groupBy = ua), - (En.initial = function(e) { - return (null == e ? 0 : e.length) ? Vr(e, 0, -1) : []; - }), - (En.intersection = ji), - (En.intersectionBy = Ri), - (En.intersectionWith = Ii), - (En.invert = bs), - (En.invertBy = ys), - (En.invokeMap = la), - (En.iteratee = Xs), - (En.keyBy = fa), - (En.keys = _s), - (En.keysIn = xs), - (En.map = da), - (En.mapKeys = function(e, t) { + (pr.functions = function(e) { + return null == e ? [] : Kr(e, oc(e)); + }), + (pr.functionsIn = function(e) { + return null == e ? [] : Kr(e, ic(e)); + }), + (pr.groupBy = Xa), + (pr.initial = function(e) { + return (null == e ? 0 : e.length) ? Lo(e, 0, -1) : []; + }), + (pr.intersection = _a), + (pr.intersectionBy = wa), + (pr.intersectionWith = xa), + (pr.invert = tc), + (pr.invertBy = nc), + (pr.invokeMap = Ga), + (pr.iteratee = Lc), + (pr.keyBy = Ka), + (pr.keys = oc), + (pr.keysIn = ic), + (pr.map = $a), + (pr.mapKeys = function(e, t) { var n = {}; return ( - (t = Qo(t, 3)), - cr(e, function(e, r, o) { - Xn(n, t(e, r, o), e); + (t = Ni(t, 3)), + Xr(e, function(e, r, o) { + Pr(n, t(e, r, o), e); }), n ); }), - (En.mapValues = function(e, t) { + (pr.mapValues = function(e, t) { var n = {}; return ( - (t = Qo(t, 3)), - cr(e, function(e, r, o) { - Xn(n, r, t(e, r, o)); + (t = Ni(t, 3)), + Xr(e, function(e, r, o) { + Pr(n, r, t(e, r, o)); }), n ); }), - (En.matches = function(e) { - return Er($n(e, 1)); + (pr.matches = function(e) { + return ho(zr(e, d)); }), - (En.matchesProperty = function(e, t) { - return Tr(e, $n(t, 1)); + (pr.matchesProperty = function(e, t) { + return go(e, zr(t, d)); }), - (En.memoize = Ma), - (En.merge = ws), - (En.mergeWith = Ms), - (En.method = Gs), - (En.methodOf = Ks), - (En.mixin = $s), - (En.negate = ka), - (En.nthArg = function(e) { + (pr.memoize = ss), + (pr.merge = ac), + (pr.mergeWith = sc), + (pr.method = Pc), + (pr.methodOf = Dc), + (pr.mixin = jc), + (pr.negate = cs), + (pr.nthArg = function(e) { return ( - (e = rs(e)), - Ir(function(t) { - return Lr(t, e); + (e = Bs(e)), + ko(function(t) { + return bo(t, e); }) ); }), - (En.omit = ks), - (En.omitBy = function(e, t) { - return As(e, ka(Qo(t))); + (pr.omit = cc), + (pr.omitBy = function(e, t) { + return lc(e, cs(Ni(t))); }), - (En.once = function(e) { - return ba(2, e); + (pr.once = function(e) { + return ts(2, e); }), - (En.orderBy = function(e, t, n, r) { + (pr.orderBy = function(e, t, n, r) { return null == e ? [] - : (Da(t) || (t = null == t ? [] : [t]), - Da((n = r ? void 0 : n)) || (n = null == n ? [] : [n]), - Pr(e, t, n)); - }), - (En.over = Js), - (En.overArgs = Sa), - (En.overEvery = Zs), - (En.overSome = ec), - (En.partial = Aa), - (En.partialRight = Oa), - (En.partition = pa), - (En.pick = Ss), - (En.pickBy = As), - (En.property = tc), - (En.propertyOf = function(e) { + : (bs(t) || (t = null == t ? [] : [t]), + bs((n = r ? i : n)) || (n = null == n ? [] : [n]), + yo(e, t, n)); + }), + (pr.over = Nc), + (pr.overArgs = us), + (pr.overEvery = Rc), + (pr.overSome = Ic), + (pr.partial = ls), + (pr.partialRight = fs), + (pr.partition = Qa), + (pr.pick = uc), + (pr.pickBy = lc), + (pr.property = Fc), + (pr.propertyOf = function(e) { return function(t) { - return null == e ? void 0 : fr(e, t); + return null == e ? i : $r(e, t); }; }), - (En.pull = qi), - (En.pullAll = Bi), - (En.pullAllBy = function(e, t, n) { - return e && e.length && t && t.length ? zr(e, t, Qo(n, 2)) : e; + (pr.pull = ka), + (pr.pullAll = Sa), + (pr.pullAllBy = function(e, t, n) { + return e && e.length && t && t.length ? _o(e, t, Ni(n, 2)) : e; }), - (En.pullAllWith = function(e, t, n) { - return e && e.length && t && t.length ? zr(e, t, void 0, n) : e; + (pr.pullAllWith = function(e, t, n) { + return e && e.length && t && t.length ? _o(e, t, i, n) : e; }), - (En.pullAt = Hi), - (En.range = nc), - (En.rangeRight = rc), - (En.rearg = Ea), - (En.reject = function(e, t) { - return (Da(e) ? lt : or)(e, ka(Qo(t, 3))); + (pr.pullAt = Oa), + (pr.range = qc), + (pr.rangeRight = Bc), + (pr.rearg = ds), + (pr.reject = function(e, t) { + return (bs(e) ? $t : Yr)(e, cs(Ni(t, 3))); }), - (En.remove = function(e, t) { + (pr.remove = function(e, t) { var n = []; if (!e || !e.length) return n; var r = -1, o = [], i = e.length; - for (t = Qo(t, 3); ++r < i; ) { + for (t = Ni(t, 3); ++r < i; ) { var a = e[r]; t(a, r, e) && (n.push(a), o.push(r)); } - return Nr(e, o), n; + return wo(e, o), n; }), - (En.rest = function(e, t) { - if ('function' != typeof e) throw new ye(i); - return Ir(e, (t = void 0 === t ? t : rs(t))); + (pr.rest = function(e, t) { + if ('function' != typeof e) throw new ot(c); + return ko(e, (t = t === i ? t : Bs(t))); }), - (En.reverse = Yi), - (En.sampleSize = function(e, t, n) { + (pr.reverse = Ea), + (pr.sampleSize = function(e, t, n) { return ( - (t = (n ? ci(e, t, n) : void 0 === t) ? 1 : rs(t)), - (Da(e) ? qn : qr)(e, t) + (t = (n ? Xi(e, t, n) : t === i) ? 1 : Bs(t)), + (bs(e) ? Sr : Oo)(e, t) ); }), - (En.set = function(e, t, n) { - return null == e ? e : Br(e, t, n); + (pr.set = function(e, t, n) { + return null == e ? e : Eo(e, t, n); }), - (En.setWith = function(e, t, n, r) { + (pr.setWith = function(e, t, n, r) { return ( - (r = 'function' == typeof r ? r : void 0), - null == e ? e : Br(e, t, n, r) + (r = 'function' == typeof r ? r : i), + null == e ? e : Eo(e, t, n, r) ); }), - (En.shuffle = function(e) { - return (Da(e) ? Bn : Wr)(e); + (pr.shuffle = function(e) { + return (bs(e) ? Or : Co)(e); }), - (En.slice = function(e, t, n) { + (pr.slice = function(e, t, n) { var r = null == e ? 0 : e.length; return r - ? (n && 'number' != typeof n && ci(e, t, n) + ? (n && 'number' != typeof n && Xi(e, t, n) ? ((t = 0), (n = r)) - : ((t = null == t ? 0 : rs(t)), - (n = void 0 === n ? r : rs(n))), - Vr(e, t, n)) + : ((t = null == t ? 0 : Bs(t)), + (n = n === i ? r : Bs(n))), + Lo(e, t, n)) : []; }), - (En.sortBy = ha), - (En.sortedUniq = function(e) { - return e && e.length ? Kr(e) : []; + (pr.sortBy = Ja), + (pr.sortedUniq = function(e) { + return e && e.length ? zo(e) : []; }), - (En.sortedUniqBy = function(e, t) { - return e && e.length ? Kr(e, Qo(t, 2)) : []; + (pr.sortedUniqBy = function(e, t) { + return e && e.length ? zo(e, Ni(t, 2)) : []; }), - (En.split = function(e, t, n) { + (pr.split = function(e, t, n) { return ( - n && 'number' != typeof n && ci(e, t, n) && (t = n = void 0), - (n = void 0 === n ? 4294967295 : n >>> 0) - ? (e = ss(e)) && - ('string' == typeof t || (null != t && !Ga(t))) && - !(t = Qr(t)) && - Ft(e) - ? uo(Ut(e), 0, n) + n && 'number' != typeof n && Xi(e, t, n) && (t = n = i), + (n = n === i ? R : n >>> 0) + ? (e = Vs(e)) && + ('string' == typeof t || (null != t && !Ps(t))) && + !(t = Ro(t)) && + Sn(e) + ? Ko(Pn(e), 0, n) : e.split(t, n) : [] ); }), - (En.spread = function(e, t) { - if ('function' != typeof e) throw new ye(i); + (pr.spread = function(e, t) { + if ('function' != typeof e) throw new ot(c); return ( - (t = null == t ? 0 : an(rs(t), 0)), - Ir(function(n) { + (t = null == t ? 0 : Vn(Bs(t), 0)), + ko(function(n) { var r = n[t], - o = uo(n, 0, t); - return r && ht(o, r), it(e, this, o); + o = Ko(n, 0, t); + return r && en(o, r), Vt(e, this, o); }) ); }), - (En.tail = function(e) { + (pr.tail = function(e) { var t = null == e ? 0 : e.length; - return t ? Vr(e, 1, t) : []; + return t ? Lo(e, 1, t) : []; }), - (En.take = function(e, t, n) { + (pr.take = function(e, t, n) { return e && e.length - ? Vr(e, 0, (t = n || void 0 === t ? 1 : rs(t)) < 0 ? 0 : t) + ? Lo(e, 0, (t = n || t === i ? 1 : Bs(t)) < 0 ? 0 : t) : []; }), - (En.takeRight = function(e, t, n) { + (pr.takeRight = function(e, t, n) { var r = null == e ? 0 : e.length; return r - ? Vr( + ? Lo( e, - (t = r - (t = n || void 0 === t ? 1 : rs(t))) < 0 ? 0 : t, + (t = r - (t = n || t === i ? 1 : Bs(t))) < 0 ? 0 : t, r ) : []; }), - (En.takeRightWhile = function(e, t) { - return e && e.length ? to(e, Qo(t, 3), !1, !0) : []; + (pr.takeRightWhile = function(e, t) { + return e && e.length ? Bo(e, Ni(t, 3), !1, !0) : []; }), - (En.takeWhile = function(e, t) { - return e && e.length ? to(e, Qo(t, 3)) : []; + (pr.takeWhile = function(e, t) { + return e && e.length ? Bo(e, Ni(t, 3)) : []; }), - (En.tap = function(e, t) { + (pr.tap = function(e, t) { return t(e), e; }), - (En.throttle = function(e, t, n) { + (pr.throttle = function(e, t, n) { var r = !0, o = !0; - if ('function' != typeof e) throw new ye(i); + if ('function' != typeof e) throw new ot(c); return ( - Ya(n) && + Es(n) && ((r = 'leading' in n ? !!n.leading : r), (o = 'trailing' in n ? !!n.trailing : o)), - _a(e, t, { leading: r, maxWait: t, trailing: o }) + os(e, t, { leading: r, maxWait: t, trailing: o }) ); }), - (En.thru = na), - (En.toArray = ts), - (En.toPairs = Os), - (En.toPairsIn = Es), - (En.toPath = function(e) { - return Da(e) ? pt(e, Ai) : Qa(e) ? [e] : yo(Si(ss(e))); + (pr.thru = qa), + (pr.toArray = Fs), + (pr.toPairs = fc), + (pr.toPairsIn = dc), + (pr.toPath = function(e) { + return bs(e) ? Zt(e, la) : zs(e) ? [e] : ri(ua(Vs(e))); }), - (En.toPlainObject = as), - (En.transform = function(e, t, n) { - var r = Da(e), - o = r || Ra(e) || Ja(e); - if (((t = Qo(t, 4)), null == n)) { + (pr.toPlainObject = Ws), + (pr.transform = function(e, t, n) { + var r = bs(e), + o = r || ws(e) || Ns(e); + if (((t = Ni(t, 4)), null == n)) { var i = e && e.constructor; - n = o ? (r ? new i() : []) : Ya(e) && qa(i) ? Tn(Ve(e)) : {}; + n = o ? (r ? new i() : []) : Es(e) && ks(i) ? hr(Lt(e)) : {}; } return ( - (o ? st : cr)(e, function(e, r, o) { + (o ? Xt : Xr)(e, function(e, r, o) { return t(n, e, r, o); }), n ); }), - (En.unary = function(e) { - return ma(e, 1); + (pr.unary = function(e) { + return es(e, 1); }), - (En.union = Wi), - (En.unionBy = Vi), - (En.unionWith = Ui), - (En.uniq = function(e) { - return e && e.length ? Jr(e) : []; + (pr.union = Aa), + (pr.unionBy = Ta), + (pr.unionWith = Ca), + (pr.uniq = function(e) { + return e && e.length ? Io(e) : []; }), - (En.uniqBy = function(e, t) { - return e && e.length ? Jr(e, Qo(t, 2)) : []; + (pr.uniqBy = function(e, t) { + return e && e.length ? Io(e, Ni(t, 2)) : []; }), - (En.uniqWith = function(e, t) { + (pr.uniqWith = function(e, t) { return ( - (t = 'function' == typeof t ? t : void 0), - e && e.length ? Jr(e, void 0, t) : [] + (t = 'function' == typeof t ? t : i), + e && e.length ? Io(e, i, t) : [] ); }), - (En.unset = function(e, t) { - return null == e || Zr(e, t); + (pr.unset = function(e, t) { + return null == e || Fo(e, t); }), - (En.unzip = Xi), - (En.unzipWith = Gi), - (En.update = function(e, t, n) { - return null == e ? e : eo(e, t, ao(n)); + (pr.unzip = La), + (pr.unzipWith = Pa), + (pr.update = function(e, t, n) { + return null == e ? e : qo(e, t, Uo(n)); }), - (En.updateWith = function(e, t, n, r) { + (pr.updateWith = function(e, t, n, r) { return ( - (r = 'function' == typeof r ? r : void 0), - null == e ? e : eo(e, t, ao(n), r) - ); - }), - (En.values = Ts), - (En.valuesIn = function(e) { - return null == e ? [] : Lt(e, xs(e)); - }), - (En.without = Ki), - (En.words = qs), - (En.wrap = function(e, t) { - return Aa(ao(t), e); - }), - (En.xor = $i), - (En.xorBy = Qi), - (En.xorWith = Ji), - (En.zip = Zi), - (En.zipObject = function(e, t) { - return oo(e || [], t || [], Yn); - }), - (En.zipObjectDeep = function(e, t) { - return oo(e || [], t || [], Br); - }), - (En.zipWith = ea), - (En.entries = Os), - (En.entriesIn = Es), - (En.extend = us), - (En.extendWith = ls), - $s(En, En), - (En.add = ac), - (En.attempt = Bs), - (En.camelCase = Cs), - (En.capitalize = Ls), - (En.ceil = sc), - (En.clamp = function(e, t, n) { + (r = 'function' == typeof r ? r : i), + null == e ? e : qo(e, t, Uo(n), r) + ); + }), + (pr.values = pc), + (pr.valuesIn = function(e) { + return null == e ? [] : yn(e, ic(e)); + }), + (pr.without = Da), + (pr.words = kc), + (pr.wrap = function(e, t) { + return ls(Uo(t), e); + }), + (pr.xor = ja), + (pr.xorBy = za), + (pr.xorWith = Na), + (pr.zip = Ra), + (pr.zipObject = function(e, t) { + return Wo(e || [], t || [], Ar); + }), + (pr.zipObjectDeep = function(e, t) { + return Wo(e || [], t || [], Eo); + }), + (pr.zipWith = Ia), + (pr.entries = fc), + (pr.entriesIn = dc), + (pr.extend = Xs), + (pr.extendWith = Gs), + jc(pr, pr), + (pr.add = Wc), + (pr.attempt = Sc), + (pr.camelCase = hc), + (pr.capitalize = gc), + (pr.ceil = Vc), + (pr.clamp = function(e, t, n) { return ( - void 0 === n && ((n = t), (t = void 0)), - void 0 !== n && (n = (n = is(n)) == n ? n : 0), - void 0 !== t && (t = (t = is(t)) == t ? t : 0), - Kn(is(e), t, n) + n === i && ((n = t), (t = i)), + n !== i && (n = (n = Ys(n)) == n ? n : 0), + t !== i && (t = (t = Ys(t)) == t ? t : 0), + jr(Ys(e), t, n) ); }), - (En.clone = function(e) { - return $n(e, 4); + (pr.clone = function(e) { + return zr(e, h); }), - (En.cloneDeep = function(e) { - return $n(e, 5); + (pr.cloneDeep = function(e) { + return zr(e, d | h); }), - (En.cloneDeepWith = function(e, t) { - return $n(e, 5, (t = 'function' == typeof t ? t : void 0)); + (pr.cloneDeepWith = function(e, t) { + return zr(e, d | h, (t = 'function' == typeof t ? t : i)); }), - (En.cloneWith = function(e, t) { - return $n(e, 4, (t = 'function' == typeof t ? t : void 0)); + (pr.cloneWith = function(e, t) { + return zr(e, h, (t = 'function' == typeof t ? t : i)); }), - (En.conformsTo = function(e, t) { - return null == t || Qn(e, t, _s(t)); + (pr.conformsTo = function(e, t) { + return null == t || Nr(e, t, oc(t)); }), - (En.deburr = Ps), - (En.defaultTo = function(e, t) { + (pr.deburr = mc), + (pr.defaultTo = function(e, t) { return null == e || e != e ? t : e; }), - (En.divide = cc), - (En.endsWith = function(e, t, n) { - (e = ss(e)), (t = Qr(t)); + (pr.divide = Uc), + (pr.endsWith = function(e, t, n) { + (e = Vs(e)), (t = Ro(t)); var r = e.length, - o = (n = void 0 === n ? r : Kn(rs(n), 0, r)); + o = (n = n === i ? r : jr(Bs(n), 0, r)); return (n -= t.length) >= 0 && e.slice(n, o) == t; }), - (En.eq = Ta), - (En.escape = function(e) { - return (e = ss(e)) && F.test(e) ? e.replace(R, Rt) : e; - }), - (En.escapeRegExp = function(e) { - return (e = ss(e)) && X.test(e) ? e.replace(U, '\\$&') : e; - }), - (En.every = function(e, t, n) { - var r = Da(e) ? ut : nr; - return n && ci(e, t, n) && (t = void 0), r(e, Qo(t, 3)); - }), - (En.find = ia), - (En.findIndex = Pi), - (En.findKey = function(e, t) { - return vt(e, Qo(t, 3), cr); - }), - (En.findLast = aa), - (En.findLastIndex = Di), - (En.findLastKey = function(e, t) { - return vt(e, Qo(t, 3), ur); - }), - (En.floor = uc), - (En.forEach = sa), - (En.forEachRight = ca), - (En.forIn = function(e, t) { - return null == e ? e : ar(e, Qo(t, 3), xs); - }), - (En.forInRight = function(e, t) { - return null == e ? e : sr(e, Qo(t, 3), xs); - }), - (En.forOwn = function(e, t) { - return e && cr(e, Qo(t, 3)); - }), - (En.forOwnRight = function(e, t) { - return e && ur(e, Qo(t, 3)); - }), - (En.get = gs), - (En.gt = Ca), - (En.gte = La), - (En.has = function(e, t) { - return null != e && oi(e, t, gr); - }), - (En.hasIn = ms), - (En.head = Ni), - (En.identity = Us), - (En.includes = function(e, t, n, r) { - (e = Na(e) ? e : Ts(e)), (n = n && !r ? rs(n) : 0); + (pr.eq = ps), + (pr.escape = function(e) { + return (e = Vs(e)) && Se.test(e) ? e.replace(Me, Mn) : e; + }), + (pr.escapeRegExp = function(e) { + return (e = Vs(e)) && De.test(e) ? e.replace(Pe, '\\$&') : e; + }), + (pr.every = function(e, t, n) { + var r = bs(e) ? Kt : Br; + return n && Xi(e, t, n) && (t = i), r(e, Ni(t, 3)); + }), + (pr.find = Ya), + (pr.findIndex = ma), + (pr.findKey = function(e, t) { + return an(e, Ni(t, 3), Xr); + }), + (pr.findLast = Wa), + (pr.findLastIndex = ba), + (pr.findLastKey = function(e, t) { + return an(e, Ni(t, 3), Gr); + }), + (pr.floor = Xc), + (pr.forEach = Va), + (pr.forEachRight = Ua), + (pr.forIn = function(e, t) { + return null == e ? e : Vr(e, Ni(t, 3), ic); + }), + (pr.forInRight = function(e, t) { + return null == e ? e : Ur(e, Ni(t, 3), ic); + }), + (pr.forOwn = function(e, t) { + return e && Xr(e, Ni(t, 3)); + }), + (pr.forOwnRight = function(e, t) { + return e && Gr(e, Ni(t, 3)); + }), + (pr.get = Zs), + (pr.gt = hs), + (pr.gte = gs), + (pr.has = function(e, t) { + return null != e && Yi(e, t, eo); + }), + (pr.hasIn = ec), + (pr.head = va), + (pr.identity = Cc), + (pr.includes = function(e, t, n, r) { + (e = vs(e) ? e : pc(e)), (n = n && !r ? Bs(n) : 0); var o = e.length; return ( - n < 0 && (n = an(o + n, 0)), - $a(e) + n < 0 && (n = Vn(o + n, 0)), + js(e) ? n <= o && e.indexOf(t, n) > -1 - : !!o && xt(e, t, n) > -1 + : !!o && cn(e, t, n) > -1 ); }), - (En.indexOf = function(e, t, n) { + (pr.indexOf = function(e, t, n) { var r = null == e ? 0 : e.length; if (!r) return -1; - var o = null == n ? 0 : rs(n); - return o < 0 && (o = an(r + o, 0)), xt(e, t, o); + var o = null == n ? 0 : Bs(n); + return o < 0 && (o = Vn(r + o, 0)), cn(e, t, o); }), - (En.inRange = function(e, t, n) { + (pr.inRange = function(e, t, n) { return ( - (t = ns(t)), - void 0 === n ? ((n = t), (t = 0)) : (n = ns(n)), + (t = qs(t)), + n === i ? ((n = t), (t = 0)) : (n = qs(n)), (function(e, t, n) { - return e >= sn(t, n) && e < an(t, n); - })((e = is(e)), t, n) + return e >= Un(t, n) && e < Vn(t, n); + })((e = Ys(e)), t, n) ); }), - (En.invoke = vs), - (En.isArguments = Pa), - (En.isArray = Da), - (En.isArrayBuffer = za), - (En.isArrayLike = Na), - (En.isArrayLikeObject = ja), - (En.isBoolean = function(e) { - return !0 === e || !1 === e || (Wa(e) && pr(e) == l); + (pr.invoke = rc), + (pr.isArguments = ms), + (pr.isArray = bs), + (pr.isArrayBuffer = ys), + (pr.isArrayLike = vs), + (pr.isArrayLikeObject = _s), + (pr.isBoolean = function(e) { + return !0 === e || !1 === e || (As(e) && Jr(e) == W); }), - (En.isBuffer = Ra), - (En.isDate = Ia), - (En.isElement = function(e) { - return Wa(e) && 1 === e.nodeType && !Xa(e); + (pr.isBuffer = ws), + (pr.isDate = xs), + (pr.isElement = function(e) { + return As(e) && 1 === e.nodeType && !Ls(e); }), - (En.isEmpty = function(e) { + (pr.isEmpty = function(e) { if (null == e) return !0; if ( - Na(e) && - (Da(e) || + vs(e) && + (bs(e) || 'string' == typeof e || 'function' == typeof e.splice || - Ra(e) || - Ja(e) || - Pa(e)) + ws(e) || + Ns(e) || + ms(e)) ) return !e.length; - var t = ri(e); - if (t == g || t == v) return !e.size; - if (di(e)) return !kr(e).length; - for (var n in e) if (ke.call(e, n)) return !1; + var t = Hi(e); + if (t == $ || t == ne) return !e.size; + if (Qi(e)) return !uo(e).length; + for (var n in e) if (lt.call(e, n)) return !1; return !0; }), - (En.isEqual = function(e, t) { - return _r(e, t); + (pr.isEqual = function(e, t) { + return io(e, t); }), - (En.isEqualWith = function(e, t, n) { - var r = (n = 'function' == typeof n ? n : void 0) - ? n(e, t) - : void 0; - return void 0 === r ? _r(e, t, void 0, n) : !!r; + (pr.isEqualWith = function(e, t, n) { + var r = (n = 'function' == typeof n ? n : i) ? n(e, t) : i; + return r === i ? io(e, t, i, n) : !!r; }), - (En.isError = Fa), - (En.isFinite = function(e) { - return 'number' == typeof e && nn(e); + (pr.isError = Ms), + (pr.isFinite = function(e) { + return 'number' == typeof e && Hn(e); }), - (En.isFunction = qa), - (En.isInteger = Ba), - (En.isLength = Ha), - (En.isMap = Va), - (En.isMatch = function(e, t) { - return e === t || xr(e, t, Zo(t)); + (pr.isFunction = ks), + (pr.isInteger = Ss), + (pr.isLength = Os), + (pr.isMap = Ts), + (pr.isMatch = function(e, t) { + return e === t || ao(e, t, Ii(t)); }), - (En.isMatchWith = function(e, t, n) { - return ( - (n = 'function' == typeof n ? n : void 0), xr(e, t, Zo(t), n) - ); + (pr.isMatchWith = function(e, t, n) { + return (n = 'function' == typeof n ? n : i), ao(e, t, Ii(t), n); }), - (En.isNaN = function(e) { - return Ua(e) && e != +e; + (pr.isNaN = function(e) { + return Cs(e) && e != +e; }), - (En.isNative = function(e) { - if (fi(e)) - throw new de( - 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.' - ); - return wr(e); + (pr.isNative = function(e) { + if ($i(e)) throw new Je(s); + return so(e); }), - (En.isNil = function(e) { + (pr.isNil = function(e) { return null == e; }), - (En.isNull = function(e) { + (pr.isNull = function(e) { return null === e; }), - (En.isNumber = Ua), - (En.isObject = Ya), - (En.isObjectLike = Wa), - (En.isPlainObject = Xa), - (En.isRegExp = Ga), - (En.isSafeInteger = function(e) { - return Ba(e) && e >= -9007199254740991 && e <= 9007199254740991; - }), - (En.isSet = Ka), - (En.isString = $a), - (En.isSymbol = Qa), - (En.isTypedArray = Ja), - (En.isUndefined = function(e) { - return void 0 === e; - }), - (En.isWeakMap = function(e) { - return Wa(e) && ri(e) == w; - }), - (En.isWeakSet = function(e) { - return Wa(e) && '[object WeakSet]' == pr(e); - }), - (En.join = function(e, t) { - return null == e ? '' : rn.call(e, t); - }), - (En.kebabCase = Ds), - (En.last = Fi), - (En.lastIndexOf = function(e, t, n) { + (pr.isNumber = Cs), + (pr.isObject = Es), + (pr.isObjectLike = As), + (pr.isPlainObject = Ls), + (pr.isRegExp = Ps), + (pr.isSafeInteger = function(e) { + return Ss(e) && e >= -j && e <= j; + }), + (pr.isSet = Ds), + (pr.isString = js), + (pr.isSymbol = zs), + (pr.isTypedArray = Ns), + (pr.isUndefined = function(e) { + return e === i; + }), + (pr.isWeakMap = function(e) { + return As(e) && Hi(e) == ae; + }), + (pr.isWeakSet = function(e) { + return As(e) && Jr(e) == se; + }), + (pr.join = function(e, t) { + return null == e ? '' : Yn.call(e, t); + }), + (pr.kebabCase = bc), + (pr.last = Ma), + (pr.lastIndexOf = function(e, t, n) { var r = null == e ? 0 : e.length; if (!r) return -1; var o = r; return ( - void 0 !== n && - (o = (o = rs(n)) < 0 ? an(r + o, 0) : sn(o, r - 1)), + n !== i && + (o = (o = Bs(n)) < 0 ? Vn(r + o, 0) : Un(o, r - 1)), t == t ? (function(e, t, n) { for (var r = n + 1; r--; ) if (e[r] === t) return r; return r; })(e, t, o) - : _t(e, Mt, o, !0) + : sn(e, ln, o, !0) ); }), - (En.lowerCase = zs), - (En.lowerFirst = Ns), - (En.lt = Za), - (En.lte = es), - (En.max = function(e) { - return e && e.length ? rr(e, Us, hr) : void 0; + (pr.lowerCase = yc), + (pr.lowerFirst = vc), + (pr.lt = Rs), + (pr.lte = Is), + (pr.max = function(e) { + return e && e.length ? Hr(e, Cc, Zr) : i; }), - (En.maxBy = function(e, t) { - return e && e.length ? rr(e, Qo(t, 2), hr) : void 0; + (pr.maxBy = function(e, t) { + return e && e.length ? Hr(e, Ni(t, 2), Zr) : i; }), - (En.mean = function(e) { - return kt(e, Us); + (pr.mean = function(e) { + return fn(e, Cc); }), - (En.meanBy = function(e, t) { - return kt(e, Qo(t, 2)); + (pr.meanBy = function(e, t) { + return fn(e, Ni(t, 2)); }), - (En.min = function(e) { - return e && e.length ? rr(e, Us, Ar) : void 0; + (pr.min = function(e) { + return e && e.length ? Hr(e, Cc, fo) : i; }), - (En.minBy = function(e, t) { - return e && e.length ? rr(e, Qo(t, 2), Ar) : void 0; + (pr.minBy = function(e, t) { + return e && e.length ? Hr(e, Ni(t, 2), fo) : i; }), - (En.stubArray = oc), - (En.stubFalse = ic), - (En.stubObject = function() { + (pr.stubArray = Hc), + (pr.stubFalse = Yc), + (pr.stubObject = function() { return {}; }), - (En.stubString = function() { + (pr.stubString = function() { return ''; }), - (En.stubTrue = function() { + (pr.stubTrue = function() { return !0; }), - (En.multiply = fc), - (En.nth = function(e, t) { - return e && e.length ? Lr(e, rs(t)) : void 0; + (pr.multiply = Kc), + (pr.nth = function(e, t) { + return e && e.length ? bo(e, Bs(t)) : i; }), - (En.noConflict = function() { - return Xe._ === this && (Xe._ = Te), this; + (pr.noConflict = function() { + return Dt._ === this && (Dt._ = gt), this; }), - (En.noop = Qs), - (En.now = ga), - (En.pad = function(e, t, n) { - e = ss(e); - var r = (t = rs(t)) ? Vt(e) : 0; + (pr.noop = zc), + (pr.now = Za), + (pr.pad = function(e, t, n) { + e = Vs(e); + var r = (t = Bs(t)) ? Ln(e) : 0; if (!t || r >= t) return e; var o = (t - r) / 2; - return Do(Zt(o), n) + e + Do(Jt(o), n); + return yi(Fn(o), n) + e + yi(In(o), n); }), - (En.padEnd = function(e, t, n) { - e = ss(e); - var r = (t = rs(t)) ? Vt(e) : 0; - return t && r < t ? e + Do(t - r, n) : e; + (pr.padEnd = function(e, t, n) { + e = Vs(e); + var r = (t = Bs(t)) ? Ln(e) : 0; + return t && r < t ? e + yi(t - r, n) : e; }), - (En.padStart = function(e, t, n) { - e = ss(e); - var r = (t = rs(t)) ? Vt(e) : 0; - return t && r < t ? Do(t - r, n) + e : e; + (pr.padStart = function(e, t, n) { + e = Vs(e); + var r = (t = Bs(t)) ? Ln(e) : 0; + return t && r < t ? yi(t - r, n) + e : e; }), - (En.parseInt = function(e, t, n) { + (pr.parseInt = function(e, t, n) { return ( n || null == t ? (t = 0) : t && (t = +t), - un(ss(e).replace(K, ''), t || 0) + Gn(Vs(e).replace(ze, ''), t || 0) ); }), - (En.random = function(e, t, n) { + (pr.random = function(e, t, n) { if ( - (n && - 'boolean' != typeof n && - ci(e, t, n) && - (t = n = void 0), - void 0 === n && + (n && 'boolean' != typeof n && Xi(e, t, n) && (t = n = i), + n === i && ('boolean' == typeof t - ? ((n = t), (t = void 0)) - : 'boolean' == typeof e && ((n = e), (e = void 0))), - void 0 === e && void 0 === t + ? ((n = t), (t = i)) + : 'boolean' == typeof e && ((n = e), (e = i))), + e === i && t === i ? ((e = 0), (t = 1)) - : ((e = ns(e)), - void 0 === t ? ((t = e), (e = 0)) : (t = ns(t))), + : ((e = qs(e)), t === i ? ((t = e), (e = 0)) : (t = qs(t))), e > t) ) { var r = e; (e = t), (t = r); } if (n || e % 1 || t % 1) { - var o = ln(); - return sn( - e + o * (t - e + Ye('1e-' + ((o + '').length - 1))), + var o = Kn(); + return Un( + e + o * (t - e + Tt('1e-' + ((o + '').length - 1))), t ); } - return jr(e, t); + return xo(e, t); }), - (En.reduce = function(e, t, n) { - var r = Da(e) ? gt : Ot, + (pr.reduce = function(e, t, n) { + var r = bs(e) ? tn : hn, o = arguments.length < 3; - return r(e, Qo(t, 4), n, o, er); + return r(e, Ni(t, 4), n, o, Fr); }), - (En.reduceRight = function(e, t, n) { - var r = Da(e) ? mt : Ot, + (pr.reduceRight = function(e, t, n) { + var r = bs(e) ? nn : hn, o = arguments.length < 3; - return r(e, Qo(t, 4), n, o, tr); + return r(e, Ni(t, 4), n, o, qr); }), - (En.repeat = function(e, t, n) { + (pr.repeat = function(e, t, n) { return ( - (t = (n ? ci(e, t, n) : void 0 === t) ? 1 : rs(t)), - Rr(ss(e), t) + (t = (n ? Xi(e, t, n) : t === i) ? 1 : Bs(t)), Mo(Vs(e), t) ); }), - (En.replace = function() { + (pr.replace = function() { var e = arguments, - t = ss(e[0]); + t = Vs(e[0]); return e.length < 3 ? t : t.replace(e[1], e[2]); }), - (En.result = function(e, t, n) { + (pr.result = function(e, t, n) { var r = -1, - o = (t = so(t, e)).length; - for (o || ((o = 1), (e = void 0)); ++r < o; ) { - var i = null == e ? void 0 : e[Ai(t[r])]; - void 0 === i && ((r = o), (i = n)), - (e = qa(i) ? i.call(e) : i); + o = (t = Xo(t, e)).length; + for (o || ((o = 1), (e = i)); ++r < o; ) { + var a = null == e ? i : e[la(t[r])]; + a === i && ((r = o), (a = n)), (e = ks(a) ? a.call(e) : a); } return e; }), - (En.round = dc), - (En.runInContext = e), - (En.sample = function(e) { - return (Da(e) ? Fn : Fr)(e); + (pr.round = $c), + (pr.runInContext = e), + (pr.sample = function(e) { + return (bs(e) ? kr : So)(e); }), - (En.size = function(e) { + (pr.size = function(e) { if (null == e) return 0; - if (Na(e)) return $a(e) ? Vt(e) : e.length; - var t = ri(e); - return t == g || t == v ? e.size : kr(e).length; + if (vs(e)) return js(e) ? Ln(e) : e.length; + var t = Hi(e); + return t == $ || t == ne ? e.size : uo(e).length; }), - (En.snakeCase = js), - (En.some = function(e, t, n) { - var r = Da(e) ? bt : Ur; - return n && ci(e, t, n) && (t = void 0), r(e, Qo(t, 3)); + (pr.snakeCase = _c), + (pr.some = function(e, t, n) { + var r = bs(e) ? rn : Po; + return n && Xi(e, t, n) && (t = i), r(e, Ni(t, 3)); }), - (En.sortedIndex = function(e, t) { - return Xr(e, t); + (pr.sortedIndex = function(e, t) { + return Do(e, t); }), - (En.sortedIndexBy = function(e, t, n) { - return Gr(e, t, Qo(n, 2)); + (pr.sortedIndexBy = function(e, t, n) { + return jo(e, t, Ni(n, 2)); }), - (En.sortedIndexOf = function(e, t) { + (pr.sortedIndexOf = function(e, t) { var n = null == e ? 0 : e.length; if (n) { - var r = Xr(e, t); - if (r < n && Ta(e[r], t)) return r; + var r = Do(e, t); + if (r < n && ps(e[r], t)) return r; } return -1; }), - (En.sortedLastIndex = function(e, t) { - return Xr(e, t, !0); + (pr.sortedLastIndex = function(e, t) { + return Do(e, t, !0); }), - (En.sortedLastIndexBy = function(e, t, n) { - return Gr(e, t, Qo(n, 2), !0); + (pr.sortedLastIndexBy = function(e, t, n) { + return jo(e, t, Ni(n, 2), !0); }), - (En.sortedLastIndexOf = function(e, t) { + (pr.sortedLastIndexOf = function(e, t) { if (null == e ? 0 : e.length) { - var n = Xr(e, t, !0) - 1; - if (Ta(e[n], t)) return n; + var n = Do(e, t, !0) - 1; + if (ps(e[n], t)) return n; } return -1; }), - (En.startCase = Rs), - (En.startsWith = function(e, t, n) { + (pr.startCase = wc), + (pr.startsWith = function(e, t, n) { return ( - (e = ss(e)), - (n = null == n ? 0 : Kn(rs(n), 0, e.length)), - (t = Qr(t)), + (e = Vs(e)), + (n = null == n ? 0 : jr(Bs(n), 0, e.length)), + (t = Ro(t)), e.slice(n, n + t.length) == t ); }), - (En.subtract = pc), - (En.sum = function(e) { - return e && e.length ? Et(e, Us) : 0; + (pr.subtract = Qc), + (pr.sum = function(e) { + return e && e.length ? gn(e, Cc) : 0; }), - (En.sumBy = function(e, t) { - return e && e.length ? Et(e, Qo(t, 2)) : 0; + (pr.sumBy = function(e, t) { + return e && e.length ? gn(e, Ni(t, 2)) : 0; }), - (En.template = function(e, t, n) { - var r = En.templateSettings; - n && ci(e, t, n) && (t = void 0), - (e = ss(e)), - (t = ls({}, t, r, Bo)); + (pr.template = function(e, t, n) { + var r = pr.templateSettings; + n && Xi(e, t, n) && (t = i), + (e = Vs(e)), + (t = Gs({}, t, r, Oi)); var o, - i, - a = ls({}, t.imports, r.imports, Bo), - s = _s(a), - c = Lt(a, s), - u = 0, - l = t.interpolate || le, - f = "__p += '", - d = me( - (t.escape || le).source + + a, + s = Gs({}, t.imports, r.imports, Oi), + c = oc(s), + u = yn(s, c), + l = 0, + f = t.interpolate || $e, + d = "__p += '", + p = nt( + (t.escape || $e).source + '|' + - l.source + + f.source + '|' + - (l === H ? ne : le).source + + (f === Ae ? He : $e).source + '|' + - (t.evaluate || le).source + + (t.evaluate || $e).source + '|$', 'g' ), - p = + h = '//# sourceURL=' + - (ke.call(t, 'sourceURL') + (lt.call(t, 'sourceURL') ? (t.sourceURL + '').replace(/[\r\n]/g, ' ') - : 'lodash.templateSources[' + ++Fe + ']') + + : 'lodash.templateSources[' + ++St + ']') + '\n'; - e.replace(d, function(t, n, r, a, s, c) { + e.replace(p, function(t, n, r, i, s, c) { return ( - r || (r = a), - (f += e.slice(u, c).replace(fe, It)), - n && ((o = !0), (f += "' +\n__e(" + n + ") +\n'")), - s && ((i = !0), (f += "';\n" + s + ";\n__p += '")), + r || (r = i), + (d += e.slice(l, c).replace(Qe, kn)), + n && ((o = !0), (d += "' +\n__e(" + n + ") +\n'")), + s && ((a = !0), (d += "';\n" + s + ";\n__p += '")), r && - (f += + (d += "' +\n((__t = (" + r + ")) == null ? '' : __t) +\n'"), - (u = c + t.length), + (l = c + t.length), t ); }), - (f += "';\n"); - var h = ke.call(t, 'variable') && t.variable; - h || (f = 'with (obj) {\n' + f + '\n}\n'), - (f = (i ? f.replace(D, '') : f) - .replace(z, '$1') - .replace(N, '$1;')), - (f = + (d += "';\n"); + var g = lt.call(t, 'variable') && t.variable; + g || (d = 'with (obj) {\n' + d + '\n}\n'), + (d = (a ? d.replace(ve, '') : d) + .replace(_e, '$1') + .replace(we, '$1;')), + (d = 'function(' + - (h || 'obj') + + (g || 'obj') + ') {\n' + - (h ? '' : 'obj || (obj = {});\n') + + (g ? '' : 'obj || (obj = {});\n') + "var __t, __p = ''" + (o ? ', __e = _.escape' : '') + - (i + (a ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n" : ';\n') + - f + + d + 'return __p\n}'); - var g = Bs(function() { - return pe(s, p + 'return ' + f).apply(void 0, c); + var m = Sc(function() { + return Ze(c, h + 'return ' + d).apply(i, u); }); - if (((g.source = f), Fa(g))) throw g; - return g; - }), - (En.times = function(e, t) { - if ((e = rs(e)) < 1 || e > 9007199254740991) return []; - var n = 4294967295, - r = sn(e, 4294967295); - e -= 4294967295; - for (var o = Tt(r, (t = Qo(t))); ++n < e; ) t(n); + if (((m.source = d), Ms(m))) throw m; + return m; + }), + (pr.times = function(e, t) { + if ((e = Bs(e)) < 1 || e > j) return []; + var n = R, + r = Un(e, R); + (t = Ni(t)), (e -= R); + for (var o = mn(r, t); ++n < e; ) t(n); return o; }), - (En.toFinite = ns), - (En.toInteger = rs), - (En.toLength = os), - (En.toLower = function(e) { - return ss(e).toLowerCase(); - }), - (En.toNumber = is), - (En.toSafeInteger = function(e) { - return e - ? Kn(rs(e), -9007199254740991, 9007199254740991) - : 0 === e - ? e - : 0; - }), - (En.toString = ss), - (En.toUpper = function(e) { - return ss(e).toUpperCase(); - }), - (En.trim = function(e, t, n) { - if ((e = ss(e)) && (n || void 0 === t)) return e.replace(G, ''); - if (!e || !(t = Qr(t))) return e; - var r = Ut(e), - o = Ut(t); - return uo(r, Dt(r, o), zt(r, o) + 1).join(''); - }), - (En.trimEnd = function(e, t, n) { - if ((e = ss(e)) && (n || void 0 === t)) return e.replace($, ''); - if (!e || !(t = Qr(t))) return e; - var r = Ut(e); - return uo(r, 0, zt(r, Ut(t)) + 1).join(''); - }), - (En.trimStart = function(e, t, n) { - if ((e = ss(e)) && (n || void 0 === t)) return e.replace(K, ''); - if (!e || !(t = Qr(t))) return e; - var r = Ut(e); - return uo(r, Dt(r, Ut(t))).join(''); - }), - (En.truncate = function(e, t) { - var n = 30, - r = '...'; - if (Ya(t)) { + (pr.toFinite = qs), + (pr.toInteger = Bs), + (pr.toLength = Hs), + (pr.toLower = function(e) { + return Vs(e).toLowerCase(); + }), + (pr.toNumber = Ys), + (pr.toSafeInteger = function(e) { + return e ? jr(Bs(e), -j, j) : 0 === e ? e : 0; + }), + (pr.toString = Vs), + (pr.toUpper = function(e) { + return Vs(e).toUpperCase(); + }), + (pr.trim = function(e, t, n) { + if ((e = Vs(e)) && (n || t === i)) return e.replace(je, ''); + if (!e || !(t = Ro(t))) return e; + var r = Pn(e), + o = Pn(t); + return Ko(r, _n(r, o), wn(r, o) + 1).join(''); + }), + (pr.trimEnd = function(e, t, n) { + if ((e = Vs(e)) && (n || t === i)) return e.replace(Ne, ''); + if (!e || !(t = Ro(t))) return e; + var r = Pn(e); + return Ko(r, 0, wn(r, Pn(t)) + 1).join(''); + }), + (pr.trimStart = function(e, t, n) { + if ((e = Vs(e)) && (n || t === i)) return e.replace(ze, ''); + if (!e || !(t = Ro(t))) return e; + var r = Pn(e); + return Ko(r, _n(r, Pn(t))).join(''); + }), + (pr.truncate = function(e, t) { + var n = E, + r = A; + if (Es(t)) { var o = 'separator' in t ? t.separator : o; - (n = 'length' in t ? rs(t.length) : n), - (r = 'omission' in t ? Qr(t.omission) : r); - } - var i = (e = ss(e)).length; - if (Ft(e)) { - var a = Ut(e); - i = a.length; - } - if (n >= i) return e; - var s = n - Vt(r); - if (s < 1) return r; - var c = a ? uo(a, 0, s).join('') : e.slice(0, s); - if (void 0 === o) return c + r; - if ((a && (s += c.length - s), Ga(o))) { - if (e.slice(s).search(o)) { - var u, - l = c; + (n = 'length' in t ? Bs(t.length) : n), + (r = 'omission' in t ? Ro(t.omission) : r); + } + var a = (e = Vs(e)).length; + if (Sn(e)) { + var s = Pn(e); + a = s.length; + } + if (n >= a) return e; + var c = n - Ln(r); + if (c < 1) return r; + var u = s ? Ko(s, 0, c).join('') : e.slice(0, c); + if (o === i) return u + r; + if ((s && (c += u.length - c), Ps(o))) { + if (e.slice(c).search(o)) { + var l, + f = u; for ( - o.global || (o = me(o.source, ss(re.exec(o)) + 'g')), + o.global || (o = nt(o.source, Vs(Ye.exec(o)) + 'g')), o.lastIndex = 0; - (u = o.exec(l)); + (l = o.exec(f)); ) - var f = u.index; - c = c.slice(0, void 0 === f ? s : f); - } - } else if (e.indexOf(Qr(o), s) != s) { - var d = c.lastIndexOf(o); - d > -1 && (c = c.slice(0, d)); - } - return c + r; - }), - (En.unescape = function(e) { - return (e = ss(e)) && I.test(e) ? e.replace(j, Xt) : e; - }), - (En.uniqueId = function(e) { - var t = ++Se; - return ss(e) + t; - }), - (En.upperCase = Is), - (En.upperFirst = Fs), - (En.each = sa), - (En.eachRight = ca), - (En.first = Ni), - $s( - En, - ((lc = {}), - cr(En, function(e, t) { - ke.call(En.prototype, t) || (lc[t] = e); - }), - lc), + var d = l.index; + u = u.slice(0, d === i ? c : d); + } + } else if (e.indexOf(Ro(o), c) != c) { + var p = u.lastIndexOf(o); + p > -1 && (u = u.slice(0, p)); + } + return u + r; + }), + (pr.unescape = function(e) { + return (e = Vs(e)) && ke.test(e) ? e.replace(xe, Dn) : e; + }), + (pr.uniqueId = function(e) { + var t = ++ft; + return Vs(e) + t; + }), + (pr.upperCase = xc), + (pr.upperFirst = Mc), + (pr.each = Va), + (pr.eachRight = Ua), + (pr.first = va), + jc( + pr, + ((Gc = {}), + Xr(pr, function(e, t) { + lt.call(pr.prototype, t) || (Gc[t] = e); + }), + Gc), { chain: !1 } ), - (En.VERSION = '4.17.15'), - st( + (pr.VERSION = '4.17.15'), + Xt( [ 'bind', 'bindKey', @@ -9336,183 +10895,179 @@ 'partialRight' ], function(e) { - En[e].placeholder = En; + pr[e].placeholder = pr; } ), - st(['drop', 'take'], function(e, t) { - (Pn.prototype[e] = function(n) { - n = void 0 === n ? 1 : an(rs(n), 0); - var r = this.__filtered__ && !t ? new Pn(this) : this.clone(); + Xt(['drop', 'take'], function(e, t) { + (br.prototype[e] = function(n) { + n = n === i ? 1 : Vn(Bs(n), 0); + var r = this.__filtered__ && !t ? new br(this) : this.clone(); return ( r.__filtered__ - ? (r.__takeCount__ = sn(n, r.__takeCount__)) + ? (r.__takeCount__ = Un(n, r.__takeCount__)) : r.__views__.push({ - size: sn(n, 4294967295), + size: Un(n, R), type: e + (r.__dir__ < 0 ? 'Right' : '') }), r ); }), - (Pn.prototype[e + 'Right'] = function(t) { + (br.prototype[e + 'Right'] = function(t) { return this.reverse() [e](t) .reverse(); }); }), - st(['filter', 'map', 'takeWhile'], function(e, t) { + Xt(['filter', 'map', 'takeWhile'], function(e, t) { var n = t + 1, - r = 1 == n || 3 == n; - Pn.prototype[e] = function(e) { + r = n == L || 3 == n; + br.prototype[e] = function(e) { var t = this.clone(); return ( - t.__iteratees__.push({ iteratee: Qo(e, 3), type: n }), + t.__iteratees__.push({ iteratee: Ni(e, 3), type: n }), (t.__filtered__ = t.__filtered__ || r), t ); }; }), - st(['head', 'last'], function(e, t) { + Xt(['head', 'last'], function(e, t) { var n = 'take' + (t ? 'Right' : ''); - Pn.prototype[e] = function() { + br.prototype[e] = function() { return this[n](1).value()[0]; }; }), - st(['initial', 'tail'], function(e, t) { + Xt(['initial', 'tail'], function(e, t) { var n = 'drop' + (t ? '' : 'Right'); - Pn.prototype[e] = function() { - return this.__filtered__ ? new Pn(this) : this[n](1); + br.prototype[e] = function() { + return this.__filtered__ ? new br(this) : this[n](1); }; }), - (Pn.prototype.compact = function() { - return this.filter(Us); + (br.prototype.compact = function() { + return this.filter(Cc); }), - (Pn.prototype.find = function(e) { + (br.prototype.find = function(e) { return this.filter(e).head(); }), - (Pn.prototype.findLast = function(e) { + (br.prototype.findLast = function(e) { return this.reverse().find(e); }), - (Pn.prototype.invokeMap = Ir(function(e, t) { + (br.prototype.invokeMap = ko(function(e, t) { return 'function' == typeof e - ? new Pn(this) + ? new br(this) : this.map(function(n) { - return yr(n, e, t); + return ro(n, e, t); }); })), - (Pn.prototype.reject = function(e) { - return this.filter(ka(Qo(e))); + (br.prototype.reject = function(e) { + return this.filter(cs(Ni(e))); }), - (Pn.prototype.slice = function(e, t) { - e = rs(e); + (br.prototype.slice = function(e, t) { + e = Bs(e); var n = this; return n.__filtered__ && (e > 0 || t < 0) - ? new Pn(n) + ? new br(n) : (e < 0 ? (n = n.takeRight(-e)) : e && (n = n.drop(e)), - void 0 !== t && - (n = (t = rs(t)) < 0 ? n.dropRight(-t) : n.take(t - e)), + t !== i && + (n = (t = Bs(t)) < 0 ? n.dropRight(-t) : n.take(t - e)), n); }), - (Pn.prototype.takeRightWhile = function(e) { + (br.prototype.takeRightWhile = function(e) { return this.reverse() .takeWhile(e) .reverse(); }), - (Pn.prototype.toArray = function() { - return this.take(4294967295); + (br.prototype.toArray = function() { + return this.take(R); }), - cr(Pn.prototype, function(e, t) { + Xr(br.prototype, function(e, t) { var n = /^(?:filter|find|map|reject)|While$/.test(t), r = /^(?:head|last)$/.test(t), - o = En[r ? 'take' + ('last' == t ? 'Right' : '') : t], - i = r || /^find/.test(t); + o = pr[r ? 'take' + ('last' == t ? 'Right' : '') : t], + a = r || /^find/.test(t); o && - (En.prototype[t] = function() { + (pr.prototype[t] = function() { var t = this.__wrapped__, - a = r ? [1] : arguments, - s = t instanceof Pn, - c = a[0], - u = s || Da(t), - l = function(e) { - var t = o.apply(En, ht([e], a)); - return r && f ? t[0] : t; + s = r ? [1] : arguments, + c = t instanceof br, + u = s[0], + l = c || bs(t), + f = function(e) { + var t = o.apply(pr, en([e], s)); + return r && d ? t[0] : t; }; - u && + l && n && - 'function' == typeof c && - 1 != c.length && - (s = u = !1); - var f = this.__chain__, - d = !!this.__actions__.length, - p = i && !f, - h = s && !d; - if (!i && u) { - t = h ? t : new Pn(this); - var g = e.apply(t, a); + 'function' == typeof u && + 1 != u.length && + (c = l = !1); + var d = this.__chain__, + p = !!this.__actions__.length, + h = a && !d, + g = c && !p; + if (!a && l) { + t = g ? t : new br(this); + var m = e.apply(t, s); return ( - g.__actions__.push({ - func: na, - args: [l], - thisArg: void 0 - }), - new Ln(g, f) + m.__actions__.push({ func: qa, args: [f], thisArg: i }), + new mr(m, d) ); } - return p && h - ? e.apply(this, a) - : ((g = this.thru(l)), - p ? (r ? g.value()[0] : g.value()) : g); + return h && g + ? e.apply(this, s) + : ((m = this.thru(f)), + h ? (r ? m.value()[0] : m.value()) : m); }); }), - st( + Xt( ['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(e) { - var t = ve[e], + var t = it[e], n = /^(?:push|sort|unshift)$/.test(e) ? 'tap' : 'thru', r = /^(?:pop|shift)$/.test(e); - En.prototype[e] = function() { + pr.prototype[e] = function() { var e = arguments; if (r && !this.__chain__) { var o = this.value(); - return t.apply(Da(o) ? o : [], e); + return t.apply(bs(o) ? o : [], e); } return this[n](function(n) { - return t.apply(Da(n) ? n : [], e); + return t.apply(bs(n) ? n : [], e); }); }; } ), - cr(Pn.prototype, function(e, t) { - var n = En[t]; + Xr(br.prototype, function(e, t) { + var n = pr[t]; if (n) { var r = n.name + ''; - ke.call(vn, r) || (vn[r] = []), - vn[r].push({ name: t, func: n }); + lt.call(or, r) || (or[r] = []), + or[r].push({ name: t, func: n }); } }), - (vn[To(void 0, 2).name] = [{ name: 'wrapper', func: void 0 }]), - (Pn.prototype.clone = function() { - var e = new Pn(this.__wrapped__); + (or[hi(i, y).name] = [{ name: 'wrapper', func: i }]), + (br.prototype.clone = function() { + var e = new br(this.__wrapped__); return ( - (e.__actions__ = yo(this.__actions__)), + (e.__actions__ = ri(this.__actions__)), (e.__dir__ = this.__dir__), (e.__filtered__ = this.__filtered__), - (e.__iteratees__ = yo(this.__iteratees__)), + (e.__iteratees__ = ri(this.__iteratees__)), (e.__takeCount__ = this.__takeCount__), - (e.__views__ = yo(this.__views__)), + (e.__views__ = ri(this.__views__)), e ); }), - (Pn.prototype.reverse = function() { + (br.prototype.reverse = function() { if (this.__filtered__) { - var e = new Pn(this); + var e = new br(this); (e.__dir__ = -1), (e.__filtered__ = !0); } else (e = this.clone()).__dir__ *= -1; return e; }), - (Pn.prototype.value = function() { + (br.prototype.value = function() { var e = this.__wrapped__.value(), t = this.__dir__, - n = Da(e), + n = bs(e), r = t < 0, o = n ? e.length : 0, i = (function(e, t, n) { @@ -9529,10 +11084,10 @@ t -= a; break; case 'take': - t = sn(t, e + a); + t = Un(t, e + a); break; case 'takeRight': - e = an(e, t - a); + e = Vn(e, t - a); } } return { start: e, end: t }; @@ -9544,9 +11099,9 @@ l = this.__iteratees__, f = l.length, d = 0, - p = sn(c, this.__takeCount__); + p = Un(c, this.__takeCount__); if (!n || (!r && o == c && p == c)) - return no(e, this.__actions__); + return Ho(e, this.__actions__); var h = []; e: for (; c-- && d < p; ) { for (var g = -1, m = e[(u += t)]; ++g < f; ) { @@ -9554,9 +11109,9 @@ y = b.iteratee, v = b.type, _ = y(m); - if (2 == v) m = _; + if (v == P) m = _; else if (!_) { - if (1 == v) continue e; + if (v == L) continue e; break e; } } @@ -9564,67 +11119,65 @@ } return h; }), - (En.prototype.at = ra), - (En.prototype.chain = function() { - return ta(this); + (pr.prototype.at = Ba), + (pr.prototype.chain = function() { + return Fa(this); }), - (En.prototype.commit = function() { - return new Ln(this.value(), this.__chain__); + (pr.prototype.commit = function() { + return new mr(this.value(), this.__chain__); }), - (En.prototype.next = function() { - void 0 === this.__values__ && - (this.__values__ = ts(this.value())); + (pr.prototype.next = function() { + this.__values__ === i && (this.__values__ = Fs(this.value())); var e = this.__index__ >= this.__values__.length; return { done: e, - value: e ? void 0 : this.__values__[this.__index__++] + value: e ? i : this.__values__[this.__index__++] }; }), - (En.prototype.plant = function(e) { - for (var t, n = this; n instanceof Cn; ) { - var r = Ei(n); + (pr.prototype.plant = function(e) { + for (var t, n = this; n instanceof gr; ) { + var r = da(n); (r.__index__ = 0), - (r.__values__ = void 0), + (r.__values__ = i), t ? (o.__wrapped__ = r) : (t = r); var o = r; n = n.__wrapped__; } return (o.__wrapped__ = e), t; }), - (En.prototype.reverse = function() { + (pr.prototype.reverse = function() { var e = this.__wrapped__; - if (e instanceof Pn) { + if (e instanceof br) { var t = e; return ( - this.__actions__.length && (t = new Pn(this)), + this.__actions__.length && (t = new br(this)), (t = t.reverse()).__actions__.push({ - func: na, - args: [Yi], - thisArg: void 0 + func: qa, + args: [Ea], + thisArg: i }), - new Ln(t, this.__chain__) + new mr(t, this.__chain__) ); } - return this.thru(Yi); + return this.thru(Ea); }), - (En.prototype.toJSON = En.prototype.valueOf = En.prototype.value = function() { - return no(this.__wrapped__, this.__actions__); + (pr.prototype.toJSON = pr.prototype.valueOf = pr.prototype.value = function() { + return Ho(this.__wrapped__, this.__actions__); }), - (En.prototype.first = En.prototype.head), - Je && - (En.prototype[Je] = function() { + (pr.prototype.first = pr.prototype.head), + It && + (pr.prototype[It] = function() { return this; }), - En + pr ); })(); - (Xe._ = Gt), - void 0 === - (o = function() { - return Gt; - }.call(t, n, t, r)) || (r.exports = o); + (Dt._ = jn), + (o = function() { + return jn; + }.call(t, n, t, r)) === i || (r.exports = o); }.call(this)); - }.call(this, n(26), n(63)(e))); + }.call(this, n(33), n(77)(e))); }, function(e, t) { function n() { @@ -9650,9 +11203,9 @@ }; }, function(e, t, n) { - var r = n(2), - o = n(705), - i = n(706); + var r = n(4), + o = n(749), + i = n(750); e.exports = { momentObj: i.createMomentChecker( 'object', @@ -9690,7 +11243,7 @@ 'use strict'; t.__esModule = !0; var r, - o = n(746), + o = n(799), i = (r = o) && r.__esModule ? r : { default: r }; t.default = i.default || @@ -9806,7 +11359,7 @@ }, function(e, t, n) { 'use strict'; - var r = n(78), + var r = n(92), o = { childContextTypes: !0, contextType: !0, @@ -9841,14 +11394,13 @@ function c(e) { return r.isMemo(e) ? a : s[e.$$typeof] || o; } - (s[r.ForwardRef] = { + s[r.ForwardRef] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 - }), - (s[r.Memo] = a); + }; var u = Object.defineProperty, l = Object.getOwnPropertyNames, f = Object.getOwnPropertySymbols, @@ -9872,22 +11424,23 @@ } catch (e) {} } } + return t; } return t; }; }, function(e, t, n) { - var r = n(133), - o = n(138); + var r = n(148), + o = n(153); e.exports = function(e) { return null != e && o(e.length) && !r(e); }; }, function(e, t, n) { - var r = n(231), - o = n(112), - i = n(615), - a = n(22); + var r = n(253), + o = n(127), + i = n(659), + a = n(34); e.exports = function(e, t) { return (a(e) ? r : i)(e, o(t, 3)); }; @@ -9896,12 +11449,11 @@ 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = function(e) { - if ('number' == typeof e) - return ''.concat(e, 'px ').concat('/* @noflip */'); - if ('string' == typeof e) - return ''.concat(e, ' ').concat('/* @noflip */'); + if ('number' == typeof e) return ''.concat(e, 'px ').concat(r); + if ('string' == typeof e) return ''.concat(e, ' ').concat(r); throw new TypeError('noflip expects a string or a number'); }); + var r = '/* @noflip */'; }, function(e, t) { var n = (e.exports = @@ -9913,11 +11465,11 @@ 'number' == typeof __g && (__g = n); }, function(e, t) { - var n = (e.exports = { version: '2.6.11' }); + var n = (e.exports = { version: '2.6.9' }); 'number' == typeof __e && (__e = n); }, function(e, t, n) { - e.exports = !n(96)(function() { + e.exports = !n(111)(function() { return ( 7 != Object.defineProperty({}, 'a', { @@ -9928,335 +11480,19 @@ ); }); }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }, - o = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - i = n(0), - a = c(i), - s = c(n(1)); - function c(e) { - return e && e.__esModule ? e : { default: e }; - } - var u = { - position: 'absolute', - top: 0, - left: 0, - visibility: 'hidden', - height: 0, - overflow: 'scroll', - whiteSpace: 'pre' - }, - l = [ - 'extraWidth', - 'injectStyles', - 'inputClassName', - 'inputRef', - 'inputStyle', - 'minWidth', - 'onAutosize', - 'placeholderIsMinWidth' - ], - f = function(e, t) { - (t.style.fontSize = e.fontSize), - (t.style.fontFamily = e.fontFamily), - (t.style.fontWeight = e.fontWeight), - (t.style.fontStyle = e.fontStyle), - (t.style.letterSpacing = e.letterSpacing), - (t.style.textTransform = e.textTransform); - }, - d = - !('undefined' == typeof window || !window.navigator) && - /MSIE |Trident\/|Edge\//.test(window.navigator.userAgent), - p = function() { - return d - ? '_' + - Math.random() - .toString(36) - .substr(2, 12) - : void 0; - }, - h = (function(e) { - function t(e) { - !(function(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - })(this, t); - var n = (function(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - })(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e)); - return ( - (n.inputRef = function(e) { - (n.input = e), - 'function' == typeof n.props.inputRef && n.props.inputRef(e); - }), - (n.placeHolderSizerRef = function(e) { - n.placeHolderSizer = e; - }), - (n.sizerRef = function(e) { - n.sizer = e; - }), - (n.state = { inputWidth: e.minWidth, inputId: e.id || p() }), - n - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(t, e), - o(t, [ - { - key: 'componentDidMount', - value: function() { - (this.mounted = !0), - this.copyInputStyles(), - this.updateInputWidth(); - } - }, - { - key: 'UNSAFE_componentWillReceiveProps', - value: function(e) { - var t = e.id; - t !== this.props.id && this.setState({ inputId: t || p() }); - } - }, - { - key: 'componentDidUpdate', - value: function(e, t) { - t.inputWidth !== this.state.inputWidth && - 'function' == typeof this.props.onAutosize && - this.props.onAutosize(this.state.inputWidth), - this.updateInputWidth(); - } - }, - { - key: 'componentWillUnmount', - value: function() { - this.mounted = !1; - } - }, - { - key: 'copyInputStyles', - value: function() { - if (this.mounted && window.getComputedStyle) { - var e = this.input && window.getComputedStyle(this.input); - e && - (f(e, this.sizer), - this.placeHolderSizer && f(e, this.placeHolderSizer)); - } - } - }, - { - key: 'updateInputWidth', - value: function() { - if ( - this.mounted && - this.sizer && - void 0 !== this.sizer.scrollWidth - ) { - var e = void 0; - (e = - this.props.placeholder && - (!this.props.value || - (this.props.value && this.props.placeholderIsMinWidth)) - ? Math.max( - this.sizer.scrollWidth, - this.placeHolderSizer.scrollWidth - ) + 2 - : this.sizer.scrollWidth + 2), - (e += - 'number' === this.props.type && - void 0 === this.props.extraWidth - ? 16 - : parseInt(this.props.extraWidth) || 0) < - this.props.minWidth && (e = this.props.minWidth), - e !== this.state.inputWidth && - this.setState({ inputWidth: e }); - } - } - }, - { - key: 'getInput', - value: function() { - return this.input; - } - }, - { - key: 'focus', - value: function() { - this.input.focus(); - } - }, - { - key: 'blur', - value: function() { - this.input.blur(); - } - }, - { - key: 'select', - value: function() { - this.input.select(); - } - }, - { - key: 'renderStyles', - value: function() { - var e = this.props.injectStyles; - return d && e - ? a.default.createElement('style', { - dangerouslySetInnerHTML: { - __html: - 'input#' + - this.state.inputId + - '::-ms-clear {display: none;}' - } - }) - : null; - } - }, - { - key: 'render', - value: function() { - var e = [ - this.props.defaultValue, - this.props.value, - '' - ].reduce(function(e, t) { - return null != e ? e : t; - }), - t = r({}, this.props.style); - t.display || (t.display = 'inline-block'); - var n = r( - { - boxSizing: 'content-box', - width: this.state.inputWidth + 'px' - }, - this.props.inputStyle - ), - o = (function(e, t) { - var n = {}; - for (var r in e) - t.indexOf(r) >= 0 || - (Object.prototype.hasOwnProperty.call(e, r) && - (n[r] = e[r])); - return n; - })(this.props, []); - return ( - (function(e) { - l.forEach(function(t) { - return delete e[t]; - }); - })(o), - (o.className = this.props.inputClassName), - (o.id = this.state.inputId), - (o.style = n), - a.default.createElement( - 'div', - { className: this.props.className, style: t }, - this.renderStyles(), - a.default.createElement( - 'input', - r({}, o, { ref: this.inputRef }) - ), - a.default.createElement( - 'div', - { ref: this.sizerRef, style: u }, - e - ), - this.props.placeholder - ? a.default.createElement( - 'div', - { ref: this.placeHolderSizerRef, style: u }, - this.props.placeholder - ) - : null - ) - ); - } - } - ]), - t - ); - })(i.Component); - (h.propTypes = { - className: s.default.string, - defaultValue: s.default.any, - extraWidth: s.default.oneOfType([s.default.number, s.default.string]), - id: s.default.string, - injectStyles: s.default.bool, - inputClassName: s.default.string, - inputRef: s.default.func, - inputStyle: s.default.object, - minWidth: s.default.oneOfType([s.default.number, s.default.string]), - onAutosize: s.default.func, - onChange: s.default.func, - placeholder: s.default.string, - placeholderIsMinWidth: s.default.bool, - style: s.default.object, - value: s.default.any - }), - (h.defaultProps = { minWidth: 1, injectStyles: !0 }), - (t.default = h); - }, function(e, t, n) { var r, o, i, a, s, c, u, l, f; window, (e.exports = ((r = n(0)), (o = n(1)), - (i = n(832)), - (a = n(53)), - (s = n(594)), - (c = n(595)), - (u = n(689)), - (l = n(827)), - (f = n(4)), + (i = n(884)), + (a = n(65)), + (s = n(638)), + (c = n(639)), + (u = n(733)), + (l = n(879)), + (f = n(7)), (function(e) { var t = {}; function n(r) { @@ -10359,37 +11595,42 @@ function(e, t, n) { (function(t) { var n, - r = '__lodash_hash_undefined__', - o = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, - i = /^\w*$/, - a = /^\./, - s = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, - c = /\\(\\)?/g, - u = /^\[object .+?Constructor\]$/, - l = /^(?:0|[1-9]\d*)$/, - f = 'object' == typeof t && t && t.Object === Object && t, - d = + r = 'Expected a function', + o = '__lodash_hash_undefined__', + i = 1 / 0, + a = 9007199254740991, + s = '[object Function]', + c = '[object GeneratorFunction]', + u = '[object Symbol]', + l = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, + f = /^\w*$/, + d = /^\./, + p = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, + h = /\\(\\)?/g, + g = /^\[object .+?Constructor\]$/, + m = /^(?:0|[1-9]\d*)$/, + b = 'object' == typeof t && t && t.Object === Object && t, + y = 'object' == typeof self && self && self.Object === Object && self, - p = f || d || Function('return this')(), - h = Array.prototype, - g = Function.prototype, - m = Object.prototype, - b = p['__core-js_shared__'], - y = (n = /[^.]+$/.exec( - (b && b.keys && b.keys.IE_PROTO) || '' + v = b || y || Function('return this')(), + _ = Array.prototype, + w = Function.prototype, + x = Object.prototype, + M = v['__core-js_shared__'], + k = (n = /[^.]+$/.exec( + (M && M.keys && M.keys.IE_PROTO) || '' )) ? 'Symbol(src)_1.' + n : '', - v = g.toString, - _ = m.hasOwnProperty, - x = m.toString, - w = RegExp( + S = w.toString, + O = x.hasOwnProperty, + E = x.toString, + A = RegExp( '^' + - v - .call(_) + S.call(O) .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') .replace( /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, @@ -10397,13 +11638,13 @@ ) + '$' ), - M = p.Symbol, - k = h.splice, - S = N(p, 'Map'), - A = N(Object, 'create'), - O = M ? M.prototype : void 0, - E = O ? O.toString : void 0; - function T(e) { + T = v.Symbol, + C = _.splice, + L = B(v, 'Map'), + P = B(Object, 'create'), + D = T ? T.prototype : void 0, + j = D ? D.toString : void 0; + function z(e) { var t = -1, n = e ? e.length : 0; for (this.clear(); ++t < n; ) { @@ -10411,7 +11652,7 @@ this.set(r[0], r[1]); } } - function C(e) { + function N(e) { var t = -1, n = e ? e.length : 0; for (this.clear(); ++t < n; ) { @@ -10419,7 +11660,7 @@ this.set(r[0], r[1]); } } - function L(e) { + function R(e) { var t = -1, n = e ? e.length : 0; for (this.clear(); ++t < n; ) { @@ -10427,16 +11668,16 @@ this.set(r[0], r[1]); } } - function P(e, t, n) { + function I(e, t, n) { var r = e[t]; - (_.call(e, t) && q(r, n) && (void 0 !== n || t in e)) || + (O.call(e, t) && U(r, n) && (void 0 !== n || t in e)) || (e[t] = n); } - function D(e, t) { - for (var n = e.length; n--; ) if (q(e[n][0], t)) return n; + function F(e, t) { + for (var n = e.length; n--; ) if (U(e[n][0], t)) return n; return -1; } - function z(e, t) { + function q(e, t) { var n = e.__data__; return (function(e) { var t = typeof e; @@ -10450,19 +11691,16 @@ ? n['string' == typeof t ? 'string' : 'hash'] : n.map; } - function N(e, t) { + function B(e, t) { var n = (function(e, t) { return null == e ? void 0 : e[t]; })(e, t); return (function(e) { return ( - !(!H(e) || ((t = e), y && y in t)) && + !(!G(e) || ((t = e), k && k in t)) && ((function(e) { - var t = H(e) ? x.call(e) : ''; - return ( - '[object Function]' == t || - '[object GeneratorFunction]' == t - ); + var t = G(e) ? E.call(e) : ''; + return t == s || t == c; })(e) || (function(e) { var t = !1; @@ -10472,13 +11710,13 @@ } catch (e) {} return t; })(e) - ? w - : u + ? A + : g ).test( (function(e) { if (null != e) { try { - return v.call(e); + return S.call(e); } catch (e) {} try { return e + ''; @@ -10493,107 +11731,107 @@ ? n : void 0; } - function j(e, t) { + function H(e, t) { return ( - !!(t = null == t ? 9007199254740991 : t) && - ('number' == typeof e || l.test(e)) && + !!(t = null == t ? a : t) && + ('number' == typeof e || m.test(e)) && e > -1 && e % 1 == 0 && e < t ); } - (T.prototype.clear = function() { - this.__data__ = A ? A(null) : {}; + (z.prototype.clear = function() { + this.__data__ = P ? P(null) : {}; }), - (T.prototype.delete = function(e) { + (z.prototype.delete = function(e) { return this.has(e) && delete this.__data__[e]; }), - (T.prototype.get = function(e) { + (z.prototype.get = function(e) { var t = this.__data__; - if (A) { + if (P) { var n = t[e]; - return n === r ? void 0 : n; + return n === o ? void 0 : n; } - return _.call(t, e) ? t[e] : void 0; + return O.call(t, e) ? t[e] : void 0; }), - (T.prototype.has = function(e) { + (z.prototype.has = function(e) { var t = this.__data__; - return A ? void 0 !== t[e] : _.call(t, e); + return P ? void 0 !== t[e] : O.call(t, e); }), - (T.prototype.set = function(e, t) { - return (this.__data__[e] = A && void 0 === t ? r : t), this; + (z.prototype.set = function(e, t) { + return (this.__data__[e] = P && void 0 === t ? o : t), this; }), - (C.prototype.clear = function() { + (N.prototype.clear = function() { this.__data__ = []; }), - (C.prototype.delete = function(e) { + (N.prototype.delete = function(e) { var t = this.__data__, - n = D(t, e); + n = F(t, e); return !( n < 0 || - (n == t.length - 1 ? t.pop() : k.call(t, n, 1), 0) + (n == t.length - 1 ? t.pop() : C.call(t, n, 1), 0) ); }), - (C.prototype.get = function(e) { + (N.prototype.get = function(e) { var t = this.__data__, - n = D(t, e); + n = F(t, e); return n < 0 ? void 0 : t[n][1]; }), - (C.prototype.has = function(e) { - return D(this.__data__, e) > -1; + (N.prototype.has = function(e) { + return F(this.__data__, e) > -1; }), - (C.prototype.set = function(e, t) { + (N.prototype.set = function(e, t) { var n = this.__data__, - r = D(n, e); + r = F(n, e); return r < 0 ? n.push([e, t]) : (n[r][1] = t), this; }), - (L.prototype.clear = function() { + (R.prototype.clear = function() { this.__data__ = { - hash: new T(), - map: new (S || C)(), - string: new T() + hash: new z(), + map: new (L || N)(), + string: new z() }; }), - (L.prototype.delete = function(e) { - return z(this, e).delete(e); + (R.prototype.delete = function(e) { + return q(this, e).delete(e); }), - (L.prototype.get = function(e) { - return z(this, e).get(e); + (R.prototype.get = function(e) { + return q(this, e).get(e); }), - (L.prototype.has = function(e) { - return z(this, e).has(e); + (R.prototype.has = function(e) { + return q(this, e).has(e); }), - (L.prototype.set = function(e, t) { - return z(this, e).set(e, t), this; + (R.prototype.set = function(e, t) { + return q(this, e).set(e, t), this; }); - var R = F(function(e) { + var Y = V(function(e) { e = (function(e) { return null == e ? '' : (function(e) { if ('string' == typeof e) return e; - if (Y(e)) return E ? E.call(e) : ''; + if (K(e)) return j ? j.call(e) : ''; var t = e + ''; - return '0' == t && 1 / e == -1 / 0 ? '-0' : t; + return '0' == t && 1 / e == -i ? '-0' : t; })(e); })(e); var t = []; return ( - a.test(e) && t.push(''), - e.replace(s, function(e, n, r, o) { - t.push(r ? o.replace(c, '$1') : n || e); + d.test(e) && t.push(''), + e.replace(p, function(e, n, r, o) { + t.push(r ? o.replace(h, '$1') : n || e); }), t ); }); - function I(e) { - if ('string' == typeof e || Y(e)) return e; + function W(e) { + if ('string' == typeof e || K(e)) return e; var t = e + ''; - return '0' == t && 1 / e == -1 / 0 ? '-0' : t; + return '0' == t && 1 / e == -i ? '-0' : t; } - function F(e, t) { + function V(e, t) { if ('function' != typeof e || (t && 'function' != typeof t)) - throw new TypeError('Expected a function'); + throw new TypeError(r); var n = function() { var r = arguments, o = t ? t.apply(this, r) : r[0], @@ -10602,35 +11840,35 @@ var a = e.apply(this, r); return (n.cache = i.set(o, a)), a; }; - return (n.cache = new (F.Cache || L)()), n; + return (n.cache = new (V.Cache || R)()), n; } - function q(e, t) { + function U(e, t) { return e === t || (e != e && t != t); } - F.Cache = L; - var B = Array.isArray; - function H(e) { + V.Cache = R; + var X = Array.isArray; + function G(e) { var t = typeof e; return !!e && ('object' == t || 'function' == t); } - function Y(e) { + function K(e) { return ( 'symbol' == typeof e || ((function(e) { return !!e && 'object' == typeof e; })(e) && - '[object Symbol]' == x.call(e)) + E.call(e) == u) ); } e.exports = function(e, t, n) { return null == e ? e : (function(e, t, n, r) { - if (!H(e)) return e; + if (!G(e)) return e; for ( - var a = -1, - s = (t = (function(e, t) { - if (B(e)) return !1; + var o = -1, + i = (t = (function(e, t) { + if (X(e)) return !1; var n = typeof e; return ( !( @@ -10638,30 +11876,30 @@ 'symbol' != n && 'boolean' != n && null != e && - !Y(e) + !K(e) ) || - i.test(e) || - !o.test(e) || + f.test(e) || + !l.test(e) || (null != t && (e in Object(t))) ); })(t, e) ? [t] : (function(e) { - return B(e) ? e : R(e); + return X(e) ? e : Y(e); })(t)).length, - c = s - 1, - u = e; - null != u && ++a < s; + a = i - 1, + s = e; + null != s && ++o < i; ) { - var l = I(t[a]), - f = n; - if (a != c) { - var d = u[l]; - void 0 === (f = r ? r(d, l, u) : void 0) && - (f = H(d) ? d : j(t[a + 1]) ? [] : {}); + var c = W(t[o]), + u = n; + if (o != a) { + var d = s[c]; + void 0 === (u = r ? r(d, c, s) : void 0) && + (u = G(d) ? d : H(t[o + 1]) ? [] : {}); } - P(u, l, f), (u = u[l]); + I(s, c, u), (s = s[c]); } return e; })(e, t, n); @@ -10734,59 +11972,67 @@ function(e, t, n) { (function(e, n) { var r = '__lodash_hash_undefined__', - o = 9007199254740991, - i = '[object Arguments]', - a = '[object Array]', - s = '[object Boolean]', - c = '[object Date]', - u = '[object Error]', - l = '[object Function]', - f = '[object Map]', - d = '[object Number]', - p = '[object Object]', - h = '[object RegExp]', - g = '[object Set]', - m = '[object String]', - b = '[object ArrayBuffer]', - y = '[object DataView]', - v = /^\[object .+?Constructor\]$/, - _ = /^(?:0|[1-9]\d*)$/, - x = {}; - (x['[object Float32Array]'] = x['[object Float64Array]'] = x[ + o = 1, + i = 2, + a = 9007199254740991, + s = '[object Arguments]', + c = '[object Array]', + u = '[object AsyncFunction]', + l = '[object Boolean]', + f = '[object Date]', + d = '[object Error]', + p = '[object Function]', + h = '[object GeneratorFunction]', + g = '[object Map]', + m = '[object Number]', + b = '[object Null]', + y = '[object Object]', + v = '[object Proxy]', + _ = '[object RegExp]', + w = '[object Set]', + x = '[object String]', + M = '[object Symbol]', + k = '[object Undefined]', + S = '[object ArrayBuffer]', + O = '[object DataView]', + E = /^\[object .+?Constructor\]$/, + A = /^(?:0|[1-9]\d*)$/, + T = {}; + (T['[object Float32Array]'] = T['[object Float64Array]'] = T[ '[object Int8Array]' - ] = x['[object Int16Array]'] = x['[object Int32Array]'] = x[ + ] = T['[object Int16Array]'] = T['[object Int32Array]'] = T[ '[object Uint8Array]' - ] = x['[object Uint8ClampedArray]'] = x[ + ] = T['[object Uint8ClampedArray]'] = T[ '[object Uint16Array]' - ] = x['[object Uint32Array]'] = !0), - (x[i] = x[a] = x[b] = x[s] = x[y] = x[c] = x[u] = x[l] = x[ - f - ] = x[d] = x[p] = x[h] = x[g] = x[m] = x[ + ] = T['[object Uint32Array]'] = !0), + (T[s] = T[c] = T[S] = T[l] = T[O] = T[f] = T[d] = T[p] = T[ + g + ] = T[m] = T[y] = T[_] = T[w] = T[x] = T[ '[object WeakMap]' ] = !1); - var w = 'object' == typeof e && e && e.Object === Object && e, - M = + var C = 'object' == typeof e && e && e.Object === Object && e, + L = 'object' == typeof self && self && self.Object === Object && self, - k = w || M || Function('return this')(), - S = t && !t.nodeType && t, - A = S && 'object' == typeof n && n && !n.nodeType && n, - O = A && A.exports === S, - E = O && w.process, - T = (function() { + P = C || L || Function('return this')(), + D = t && !t.nodeType && t, + j = D && 'object' == typeof n && n && !n.nodeType && n, + z = j && j.exports === D, + N = z && C.process, + R = (function() { try { - return E && E.binding && E.binding('util'); + return N && N.binding && N.binding('util'); } catch (e) {} })(), - C = T && T.isTypedArray; - function L(e, t) { + I = R && R.isTypedArray; + function F(e, t) { for (var n = -1, r = null == e ? 0 : e.length; ++n < r; ) if (t(e[n], n, e)) return !0; return !1; } - function P(e) { + function q(e) { var t = -1, n = Array(e.size); return ( @@ -10796,7 +12042,7 @@ n ); } - function D(e) { + function B(e) { var t = -1, n = Array(e.size); return ( @@ -10806,24 +12052,24 @@ n ); } - var z, - N, - j, - R = Array.prototype, - I = Function.prototype, - F = Object.prototype, - q = k['__core-js_shared__'], - B = I.toString, - H = F.hasOwnProperty, - Y = (z = /[^.]+$/.exec( - (q && q.keys && q.keys.IE_PROTO) || '' + var H, + Y, + W, + V = Array.prototype, + U = Function.prototype, + X = Object.prototype, + G = P['__core-js_shared__'], + K = U.toString, + $ = X.hasOwnProperty, + Q = (H = /[^.]+$/.exec( + (G && G.keys && G.keys.IE_PROTO) || '' )) - ? 'Symbol(src)_1.' + z + ? 'Symbol(src)_1.' + H : '', - W = F.toString, - V = RegExp( + J = X.toString, + Z = RegExp( '^' + - B.call(H) + K.call($) .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') .replace( /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, @@ -10831,34 +12077,34 @@ ) + '$' ), - U = O ? k.Buffer : void 0, - X = k.Symbol, - G = k.Uint8Array, - K = F.propertyIsEnumerable, - $ = R.splice, - Q = X ? X.toStringTag : void 0, - J = Object.getOwnPropertySymbols, - Z = U ? U.isBuffer : void 0, - ee = - ((N = Object.keys), - (j = Object), + ee = z ? P.Buffer : void 0, + te = P.Symbol, + ne = P.Uint8Array, + re = X.propertyIsEnumerable, + oe = V.splice, + ie = te ? te.toStringTag : void 0, + ae = Object.getOwnPropertySymbols, + se = ee ? ee.isBuffer : void 0, + ce = + ((Y = Object.keys), + (W = Object), function(e) { - return N(j(e)); - }), - te = Ae(k, 'DataView'), - ne = Ae(k, 'Map'), - re = Ae(k, 'Promise'), - oe = Ae(k, 'Set'), - ie = Ae(k, 'WeakMap'), - ae = Ae(Object, 'create'), - se = Ce(te), - ce = Ce(ne), - ue = Ce(re), - le = Ce(oe), - fe = Ce(ie), - de = X ? X.prototype : void 0, - pe = de ? de.valueOf : void 0; - function he(e) { + return Y(W(e)); + }), + ue = je(P, 'DataView'), + le = je(P, 'Map'), + fe = je(P, 'Promise'), + de = je(P, 'Set'), + pe = je(P, 'WeakMap'), + he = je(Object, 'create'), + ge = Ie(ue), + me = Ie(le), + be = Ie(fe), + ye = Ie(de), + ve = Ie(pe), + _e = te ? te.prototype : void 0, + we = _e ? _e.valueOf : void 0; + function xe(e) { var t = -1, n = null == e ? 0 : e.length; for (this.clear(); ++t < n; ) { @@ -10866,7 +12112,7 @@ this.set(r[0], r[1]); } } - function ge(e) { + function Me(e) { var t = -1, n = null == e ? 0 : e.length; for (this.clear(); ++t < n; ) { @@ -10874,7 +12120,7 @@ this.set(r[0], r[1]); } } - function me(e) { + function ke(e) { var t = -1, n = null == e ? 0 : e.length; for (this.clear(); ++t < n; ) { @@ -10882,216 +12128,216 @@ this.set(r[0], r[1]); } } - function be(e) { + function Se(e) { var t = -1, n = null == e ? 0 : e.length; - for (this.__data__ = new me(); ++t < n; ) this.add(e[t]); + for (this.__data__ = new ke(); ++t < n; ) this.add(e[t]); } - function ye(e) { - var t = (this.__data__ = new ge(e)); + function Oe(e) { + var t = (this.__data__ = new Me(e)); this.size = t.size; } - function ve(e, t) { - for (var n = e.length; n--; ) if (Le(e[n][0], t)) return n; + function Ee(e, t) { + for (var n = e.length; n--; ) if (Fe(e[n][0], t)) return n; return -1; } - function _e(e) { + function Ae(e) { return null == e ? void 0 === e - ? '[object Undefined]' - : '[object Null]' - : Q && Q in Object(e) + ? k + : b + : ie && ie in Object(e) ? (function(e) { - var t = H.call(e, Q), - n = e[Q]; + var t = $.call(e, ie), + n = e[ie]; try { - e[Q] = void 0; + e[ie] = void 0; var r = !0; } catch (e) {} - var o = W.call(e); - return r && (t ? (e[Q] = n) : delete e[Q]), o; + var o = J.call(e); + return r && (t ? (e[ie] = n) : delete e[ie]), o; })(e) : (function(e) { - return W.call(e); + return J.call(e); })(e); } - function xe(e) { - return Ie(e) && _e(e) == i; + function Te(e) { + return Ue(e) && Ae(e) == s; } - function we(e, t, n, r, o) { + function Ce(e, t, n, r, a) { return ( e === t || - (null == e || null == t || (!Ie(e) && !Ie(t)) + (null == e || null == t || (!Ue(e) && !Ue(t)) ? e != e && t != t - : (function(e, t, n, r, o, l) { - var v = De(e), - _ = De(t), - x = v ? a : Ee(e), - w = _ ? a : Ee(t), - M = (x = x == i ? p : x) == p, - k = (w = w == i ? p : w) == p, - S = x == w; - if (S && ze(e)) { - if (!ze(t)) return !1; - (v = !0), (M = !1); + : (function(e, t, n, r, a, u) { + var p = Be(e), + h = Be(t), + b = p ? c : Ne(e), + v = h ? c : Ne(t), + k = (b = b == s ? y : b) == y, + E = (v = v == s ? y : v) == y, + A = b == v; + if (A && He(e)) { + if (!He(t)) return !1; + (p = !0), (k = !1); } - if (S && !M) + if (A && !k) return ( - l || (l = new ye()), - v || Fe(e) - ? Me(e, t, n, r, o, l) - : (function(e, t, n, r, o, i, a) { + u || (u = new Oe()), + p || Xe(e) + ? Le(e, t, n, r, a, u) + : (function(e, t, n, r, a, s, c) { switch (n) { - case y: + case O: if ( e.byteLength != t.byteLength || e.byteOffset != t.byteOffset ) return !1; (e = e.buffer), (t = t.buffer); - case b: + case S: return !( e.byteLength != t.byteLength || - !i(new G(e), new G(t)) + !s(new ne(e), new ne(t)) ); - case s: - case c: + case l: + case f: + case m: + return Fe(+e, +t); case d: - return Le(+e, +t); - case u: return ( e.name == t.name && e.message == t.message ); - case h: - case m: + case _: + case x: return e == t + ''; - case f: - var l = P; case g: - var p = 1 & r; + var u = q; + case w: + var p = r & o; if ( - (l || (l = D), e.size != t.size && !p) + (u || (u = B), e.size != t.size && !p) ) return !1; - var v = a.get(e); - if (v) return v == t; - (r |= 2), a.set(e, t); - var _ = Me(l(e), l(t), r, o, i, a); - return a.delete(e), _; - case '[object Symbol]': - if (pe) return pe.call(e) == pe.call(t); + var h = c.get(e); + if (h) return h == t; + (r |= i), c.set(e, t); + var b = Le(u(e), u(t), r, a, s, c); + return c.delete(e), b; + case M: + if (we) return we.call(e) == we.call(t); } return !1; - })(e, t, x, n, r, o, l) + })(e, t, b, n, r, a, u) ); - if (!(1 & n)) { - var A = M && H.call(e, '__wrapped__'), - O = k && H.call(t, '__wrapped__'); - if (A || O) { - var E = A ? e.value() : e, - T = O ? t.value() : t; - return l || (l = new ye()), o(E, T, n, r, l); + if (!(n & o)) { + var T = k && $.call(e, '__wrapped__'), + C = E && $.call(t, '__wrapped__'); + if (T || C) { + var L = T ? e.value() : e, + P = C ? t.value() : t; + return u || (u = new Oe()), a(L, P, n, r, u); } } return ( - !!S && - (l || (l = new ye()), - (function(e, t, n, r, o, i) { - var a = 1 & n, - s = ke(e), - c = s.length; - if (c != ke(t).length && !a) return !1; - for (var u = c; u--; ) { - var l = s[u]; - if (!(a ? l in t : H.call(t, l))) return !1; + !!A && + (u || (u = new Oe()), + (function(e, t, n, r, i, a) { + var s = n & o, + c = Pe(e), + u = c.length; + if (u != Pe(t).length && !s) return !1; + for (var l = u; l--; ) { + var f = c[l]; + if (!(s ? f in t : $.call(t, f))) return !1; } - var f = i.get(e); - if (f && i.get(t)) return f == t; - var d = !0; - i.set(e, t), i.set(t, e); - for (var p = a; ++u < c; ) { - var h = e[(l = s[u])], - g = t[l]; + var d = a.get(e); + if (d && a.get(t)) return d == t; + var p = !0; + a.set(e, t), a.set(t, e); + for (var h = s; ++l < u; ) { + var g = e[(f = c[l])], + m = t[f]; if (r) - var m = a - ? r(g, h, l, t, e, i) - : r(h, g, l, e, t, i); + var b = s + ? r(m, g, f, t, e, a) + : r(g, m, f, e, t, a); if ( - !(void 0 === m - ? h === g || o(h, g, n, r, i) - : m) + !(void 0 === b + ? g === m || i(g, m, n, r, a) + : b) ) { - d = !1; + p = !1; break; } - p || (p = 'constructor' == l); + h || (h = 'constructor' == f); } - if (d && !p) { - var b = e.constructor, - y = t.constructor; - b != y && + if (p && !h) { + var y = e.constructor, + v = t.constructor; + y != v && 'constructor' in e && 'constructor' in t && !( - 'function' == typeof b && - b instanceof b && 'function' == typeof y && - y instanceof y + y instanceof y && + 'function' == typeof v && + v instanceof v ) && - (d = !1); + (p = !1); } - return i.delete(e), i.delete(t), d; - })(e, t, n, r, o, l)) + return a.delete(e), a.delete(t), p; + })(e, t, n, r, a, u)) ); - })(e, t, n, r, we, o)) - ); - } - function Me(e, t, n, r, o, i) { - var a = 1 & n, - s = e.length, - c = t.length; - if (s != c && !(a && c > s)) return !1; - var u = i.get(e); - if (u && i.get(t)) return u == t; - var l = -1, - f = !0, - d = 2 & n ? new be() : void 0; - for (i.set(e, t), i.set(t, e); ++l < s; ) { - var p = e[l], - h = t[l]; + })(e, t, n, r, Ce, a)) + ); + } + function Le(e, t, n, r, a, s) { + var c = n & o, + u = e.length, + l = t.length; + if (u != l && !(c && l > u)) return !1; + var f = s.get(e); + if (f && s.get(t)) return f == t; + var d = -1, + p = !0, + h = n & i ? new Se() : void 0; + for (s.set(e, t), s.set(t, e); ++d < u; ) { + var g = e[d], + m = t[d]; if (r) - var g = a ? r(h, p, l, t, e, i) : r(p, h, l, e, t, i); - if (void 0 !== g) { - if (g) continue; - f = !1; + var b = c ? r(m, g, d, t, e, s) : r(g, m, d, e, t, s); + if (void 0 !== b) { + if (b) continue; + p = !1; break; } - if (d) { + if (h) { if ( - !L(t, function(e, t) { + !F(t, function(e, t) { if ( - ((a = t), - !d.has(a) && (p === e || o(p, e, n, r, i))) + ((o = t), + !h.has(o) && (g === e || a(g, e, n, r, s))) ) - return d.push(t); - var a; + return h.push(t); + var o; }) ) { - f = !1; + p = !1; break; } - } else if (p !== h && !o(p, h, n, r, i)) { - f = !1; + } else if (g !== m && !a(g, m, n, r, s)) { + p = !1; break; } } - return i.delete(e), i.delete(t), f; + return s.delete(e), s.delete(t), p; } - function ke(e) { + function Pe(e) { return (function(e, t, n) { var r = t(e); - return De(e) + return Be(e) ? r : (function(e, t) { for ( @@ -11102,9 +12348,9 @@ e[o + n] = t[n]; return e; })(r, n(e)); - })(e, qe, Oe); + })(e, Ge, ze); } - function Se(e, t) { + function De(e, t) { var n = e.__data__; return (function(e) { var t = typeof e; @@ -11118,135 +12364,135 @@ ? n['string' == typeof t ? 'string' : 'hash'] : n.map; } - function Ae(e, t) { + function je(e, t) { var n = (function(e, t) { return null == e ? void 0 : e[t]; })(e, t); return (function(e) { return ( !( - !Re(e) || + !Ve(e) || (function(e) { - return !!Y && Y in e; + return !!Q && Q in e; })(e) - ) && (Ne(e) ? V : v).test(Ce(e)) + ) && (Ye(e) ? Z : E).test(Ie(e)) ); })(n) ? n : void 0; } - (he.prototype.clear = function() { - (this.__data__ = ae ? ae(null) : {}), (this.size = 0); + (xe.prototype.clear = function() { + (this.__data__ = he ? he(null) : {}), (this.size = 0); }), - (he.prototype.delete = function(e) { + (xe.prototype.delete = function(e) { var t = this.has(e) && delete this.__data__[e]; return (this.size -= t ? 1 : 0), t; }), - (he.prototype.get = function(e) { + (xe.prototype.get = function(e) { var t = this.__data__; - if (ae) { + if (he) { var n = t[e]; return n === r ? void 0 : n; } - return H.call(t, e) ? t[e] : void 0; + return $.call(t, e) ? t[e] : void 0; }), - (he.prototype.has = function(e) { + (xe.prototype.has = function(e) { var t = this.__data__; - return ae ? void 0 !== t[e] : H.call(t, e); + return he ? void 0 !== t[e] : $.call(t, e); }), - (he.prototype.set = function(e, t) { + (xe.prototype.set = function(e, t) { var n = this.__data__; return ( (this.size += this.has(e) ? 0 : 1), - (n[e] = ae && void 0 === t ? r : t), + (n[e] = he && void 0 === t ? r : t), this ); }), - (ge.prototype.clear = function() { + (Me.prototype.clear = function() { (this.__data__ = []), (this.size = 0); }), - (ge.prototype.delete = function(e) { + (Me.prototype.delete = function(e) { var t = this.__data__, - n = ve(t, e); + n = Ee(t, e); return !( n < 0 || - (n == t.length - 1 ? t.pop() : $.call(t, n, 1), + (n == t.length - 1 ? t.pop() : oe.call(t, n, 1), --this.size, 0) ); }), - (ge.prototype.get = function(e) { + (Me.prototype.get = function(e) { var t = this.__data__, - n = ve(t, e); + n = Ee(t, e); return n < 0 ? void 0 : t[n][1]; }), - (ge.prototype.has = function(e) { - return ve(this.__data__, e) > -1; + (Me.prototype.has = function(e) { + return Ee(this.__data__, e) > -1; }), - (ge.prototype.set = function(e, t) { + (Me.prototype.set = function(e, t) { var n = this.__data__, - r = ve(n, e); + r = Ee(n, e); return ( r < 0 ? (++this.size, n.push([e, t])) : (n[r][1] = t), this ); }), - (me.prototype.clear = function() { + (ke.prototype.clear = function() { (this.size = 0), (this.__data__ = { - hash: new he(), - map: new (ne || ge)(), - string: new he() + hash: new xe(), + map: new (le || Me)(), + string: new xe() }); }), - (me.prototype.delete = function(e) { - var t = Se(this, e).delete(e); + (ke.prototype.delete = function(e) { + var t = De(this, e).delete(e); return (this.size -= t ? 1 : 0), t; }), - (me.prototype.get = function(e) { - return Se(this, e).get(e); + (ke.prototype.get = function(e) { + return De(this, e).get(e); }), - (me.prototype.has = function(e) { - return Se(this, e).has(e); + (ke.prototype.has = function(e) { + return De(this, e).has(e); }), - (me.prototype.set = function(e, t) { - var n = Se(this, e), + (ke.prototype.set = function(e, t) { + var n = De(this, e), r = n.size; return ( n.set(e, t), (this.size += n.size == r ? 0 : 1), this ); }), - (be.prototype.add = be.prototype.push = function(e) { + (Se.prototype.add = Se.prototype.push = function(e) { return this.__data__.set(e, r), this; }), - (be.prototype.has = function(e) { + (Se.prototype.has = function(e) { return this.__data__.has(e); }), - (ye.prototype.clear = function() { - (this.__data__ = new ge()), (this.size = 0); + (Oe.prototype.clear = function() { + (this.__data__ = new Me()), (this.size = 0); }), - (ye.prototype.delete = function(e) { + (Oe.prototype.delete = function(e) { var t = this.__data__, n = t.delete(e); return (this.size = t.size), n; }), - (ye.prototype.get = function(e) { + (Oe.prototype.get = function(e) { return this.__data__.get(e); }), - (ye.prototype.has = function(e) { + (Oe.prototype.has = function(e) { return this.__data__.has(e); }), - (ye.prototype.set = function(e, t) { + (Oe.prototype.set = function(e, t) { var n = this.__data__; - if (n instanceof ge) { + if (n instanceof Me) { var r = n.__data__; - if (!ne || r.length < 199) + if (!le || r.length < 199) return r.push([e, t]), (this.size = ++n.size), this; - n = this.__data__ = new me(r); + n = this.__data__ = new ke(r); } return n.set(e, t), (this.size = n.size), this; }); - var Oe = J + var ze = ae ? function(e) { return null == e ? [] @@ -11264,27 +12510,27 @@ t(a) && (i[o++] = a); } return i; - })(J(e), function(t) { - return K.call(e, t); + })(ae(e), function(t) { + return re.call(e, t); })); } : function() { return []; }, - Ee = _e; - function Te(e, t) { + Ne = Ae; + function Re(e, t) { return ( - !!(t = null == t ? o : t) && - ('number' == typeof e || _.test(e)) && + !!(t = null == t ? a : t) && + ('number' == typeof e || A.test(e)) && e > -1 && e % 1 == 0 && e < t ); } - function Ce(e) { + function Ie(e) { if (null != e) { try { - return B.call(e); + return K.call(e); } catch (e) {} try { return e + ''; @@ -11292,88 +12538,83 @@ } return ''; } - function Le(e, t) { + function Fe(e, t) { return e === t || (e != e && t != t); } - ((te && Ee(new te(new ArrayBuffer(1))) != y) || - (ne && Ee(new ne()) != f) || - (re && '[object Promise]' != Ee(re.resolve())) || - (oe && Ee(new oe()) != g) || - (ie && '[object WeakMap]' != Ee(new ie()))) && - (Ee = function(e) { - var t = _e(e), - n = t == p ? e.constructor : void 0, - r = n ? Ce(n) : ''; + ((ue && Ne(new ue(new ArrayBuffer(1))) != O) || + (le && Ne(new le()) != g) || + (fe && '[object Promise]' != Ne(fe.resolve())) || + (de && Ne(new de()) != w) || + (pe && '[object WeakMap]' != Ne(new pe()))) && + (Ne = function(e) { + var t = Ae(e), + n = t == y ? e.constructor : void 0, + r = n ? Ie(n) : ''; if (r) switch (r) { - case se: - return y; - case ce: - return f; - case ue: - return '[object Promise]'; - case le: + case ge: + return O; + case me: return g; - case fe: + case be: + return '[object Promise]'; + case ye: + return w; + case ve: return '[object WeakMap]'; } return t; }); - var Pe = xe( + var qe = Te( (function() { return arguments; })() ) - ? xe + ? Te : function(e) { return ( - Ie(e) && H.call(e, 'callee') && !K.call(e, 'callee') + Ue(e) && $.call(e, 'callee') && !re.call(e, 'callee') ); }, - De = Array.isArray, - ze = - Z || + Be = Array.isArray, + He = + se || function() { return !1; }; - function Ne(e) { - if (!Re(e)) return !1; - var t = _e(e); - return ( - t == l || - '[object GeneratorFunction]' == t || - '[object AsyncFunction]' == t || - '[object Proxy]' == t - ); + function Ye(e) { + if (!Ve(e)) return !1; + var t = Ae(e); + return t == p || t == h || t == u || t == v; } - function je(e) { - return 'number' == typeof e && e > -1 && e % 1 == 0 && e <= o; + function We(e) { + return 'number' == typeof e && e > -1 && e % 1 == 0 && e <= a; } - function Re(e) { + function Ve(e) { var t = typeof e; return null != e && ('object' == t || 'function' == t); } - function Ie(e) { + function Ue(e) { return null != e && 'object' == typeof e; } - var Fe = C + var Xe = I ? (function(e) { return function(t) { return e(t); }; - })(C) + })(I) : function(e) { - return Ie(e) && je(e.length) && !!x[_e(e)]; + return Ue(e) && We(e.length) && !!T[Ae(e)]; }; - function qe(e) { + function Ge(e) { return (function(e) { - return null != e && je(e.length) && !Ne(e); + return null != e && We(e.length) && !Ye(e); })(e) ? (function(e, t) { - var n = De(e), - r = !n && Pe(e), - o = !n && !r && ze(e), - i = !n && !r && !o && Fe(e), + var n = Be(e), + r = !n && qe(e), + o = !n && !r && He(e), + i = !n && !r && !o && Xe(e), a = n || r || o || i, s = a ? (function(e, t) { @@ -11384,7 +12625,7 @@ : [], c = s.length; for (var u in e) - (!t && !H.call(e, u)) || + (!t && !$.call(e, u)) || (a && ('length' == u || (o && ('offset' == u || 'parent' == u)) || @@ -11392,7 +12633,7 @@ ('buffer' == u || 'byteLength' == u || 'byteOffset' == u)) || - Te(u, c))) || + Re(u, c))) || s.push(u); return s; })(e) @@ -11402,19 +12643,19 @@ var t = e && e.constructor; return ( e === - (('function' == typeof t && t.prototype) || F) + (('function' == typeof t && t.prototype) || X) ); })(e) ) - return ee(e); + return ce(e); var t = []; for (var n in Object(e)) - H.call(e, n) && 'constructor' != n && t.push(n); + $.call(e, n) && 'constructor' != n && t.push(n); return t; })(e); } n.exports = function(e, t) { - return we(e, t); + return Ce(e, t); }; }.call(this, n(36), n(20)(e))); }, @@ -11789,8 +13030,8 @@ if (t.singleton) { var a = l++; (n = u || (u = b(t))), - (r = w.bind(null, n, a, !1)), - (o = w.bind(null, n, a, !0)); + (r = x.bind(null, n, a, !1)), + (o = x.bind(null, n, a, !0)); } else e.sourceMap && 'function' == typeof URL && @@ -11867,14 +13108,14 @@ ); }; var _, - x = + w = ((_ = []), function(e, t) { return (_[e] = t), _.filter(Boolean).join('\n'); }); - function w(e, t, n, r) { + function x(e, t, n, r) { var o = n ? '' : r.css; - if (e.styleSheet) e.styleSheet.cssText = x(t, o); + if (e.styleSheet) e.styleSheet.cssText = w(t, o); else { var i = document.createTextNode(o), a = e.childNodes; @@ -12186,7 +13427,7 @@ function _(e, t) { return e.node.sortableInfo.index - t.node.sortableInfo.index; } - var x = function(e) { + var w = function(e) { return ( (function(e) { if (Array.isArray(e)) { @@ -12214,7 +13455,7 @@ })() ); }; - function w(e) { + function x(e) { for ( var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), @@ -12261,17 +13502,17 @@ e.style[n] = t[n]; }); } - function A(e, t) { + function O(e, t) { e.style[''.concat(k, 'Transform')] = null == t ? '' : 'translate3d('.concat(t.x, 'px,').concat(t.y, 'px,0)'); } - function O(e, t) { + function E(e, t) { e.style[''.concat(k, 'TransitionDuration')] = null == t ? '' : ''.concat(t, 'ms'); } - function E(e, t) { + function A(e, t) { for (; e; ) { if (t(e)) return e; e = e.parentNode; @@ -12302,7 +13543,7 @@ } : { x: e.pageX, y: e.pageY }; } - function z(e, t) { + function j(e, t) { var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] @@ -12312,10 +13553,10 @@ left: n.left + e.offsetLeft, top: n.top + e.offsetTop }; - return e.parentNode === t ? r : z(e.parentNode, t, r); + return e.parentNode === t ? r : j(e.parentNode, t, r); } } - function N(e) { + function z(e) { var t = e.lockOffset, n = e.width, r = e.height, @@ -12343,28 +13584,16 @@ { x: o, y: i } ); } - function j(e) { - return e instanceof HTMLElement - ? (function(e) { - var t = window.getComputedStyle(e), - n = /(auto|scroll)/; - return ['overflow', 'overflowX', 'overflowY'].find( - function(e) { - return n.test(t[e]); - } - ); - })(e) - ? e - : j(e.parentNode) - : null; - } - var R = 27, - I = 32, - F = 37, - q = 38, - B = 39, - H = 40, - Y = { + var N = { + TAB: 9, + ESC: 27, + SPACE: 32, + LEFT: 37, + UP: 38, + RIGHT: 39, + DOWN: 40 + }, + R = { Anchor: 'A', Button: 'BUTTON', Canvas: 'CANVAS', @@ -12373,7 +13602,7 @@ Textarea: 'TEXTAREA', Select: 'SELECT' }; - function W(e) { + function I(e) { var n, o, a = @@ -12424,10 +13653,10 @@ o ); } - function V(e) { + function F(e) { return null != e.sortableHandle; } - var U = (function() { + var q = (function() { function e(t, n) { u(this, e), (this.container = t), @@ -12491,7 +13720,7 @@ e ); })(), - X = { + B = { axis: n.oneOf(['x', 'y', 'xy']), contentWindow: n.any, disableAutoscroll: n.bool, @@ -12526,7 +13755,7 @@ useDragHandle: n.bool, useWindowAsScrollContainer: n.bool }, - G = { + H = { axis: 'y', disableAutoscroll: !1, distance: 0, @@ -12543,13 +13772,13 @@ return ( -1 !== [ - Y.Input, - Y.Textarea, - Y.Select, - Y.Option, - Y.Button + R.Input, + R.Textarea, + R.Select, + R.Option, + R.Button ].indexOf(e.target.tagName) || - !!E(e.target, function(e) { + !!A(e.target, function(e) { return 'true' === e.contentEditable; }) ); @@ -12557,8 +13786,8 @@ transitionDuration: 300, useWindowAsScrollContainer: !1 }, - K = Object.keys(X); - function $(e) { + Y = Object.keys(B); + function W(e) { var o, l, d = @@ -12578,7 +13807,7 @@ o = n.shouldCancelStart; if (2 !== e.button && !o(e)) { (t.touched = !0), (t.position = D(e)); - var i = E(e.target, function(e) { + var i = A(e.target, function(e) { return null != e.sortableInfo; }); if ( @@ -12592,7 +13821,7 @@ c = s.index, u = s.collection; if (s.disabled) return; - if (a && !E(e.target, V)) return; + if (a && !A(e.target, F)) return; (t.manager.active = { collection: u, index: c @@ -12604,7 +13833,7 @@ e.changedTouches.length) ); })(e) || - e.target.tagName !== Y.Anchor || + e.target.tagName !== R.Anchor || e.preventDefault(), r || (0 === t.props.pressDelay @@ -12677,7 +13906,7 @@ top: C(r.marginTop) }), _ = t.scrollContainer.getBoundingClientRect(), - w = a({ + x = a({ collection: h, index: y, node: p @@ -12685,8 +13914,8 @@ if ( ((t.node = p), (t.margin = v), - (t.width = w.width), - (t.height = w.height), + (t.width = x.width), + (t.height = x.height), (t.marginOffset = { x: t.margin.left + t.margin.right, y: Math.max( @@ -12702,7 +13931,7 @@ x: i.indexOf('x') >= 0, y: i.indexOf('y') >= 0 }), - (t.offsetEdge = z(p, t.container)), + (t.offsetEdge = j(p, t.container)), (t.initialOffset = D( g ? c({}, e, { @@ -12726,7 +13955,7 @@ 'input, textarea, select, canvas, [contenteditable]'), (m = (o = p).querySelectorAll(l)), (b = o.cloneNode(!0)), - x(b.querySelectorAll(l)).forEach( + w(b.querySelectorAll(l)).forEach( function(e, t) { 'file' !== e.type && (e.value = m[t].value), @@ -12735,7 +13964,7 @@ (e.name = '__sortableClone__'.concat( e.name )), - e.tagName === Y.Canvas && + e.tagName === R.Canvas && m[t].width > 0 && m[t].height > 0 && e @@ -12782,21 +14011,21 @@ t.contentWindow.innerHeight } : t.containerBoundingRect, - A = k.top, - O = k.left, - E = k.width, - T = A + k.height, - L = O + E; + O = k.top, + E = k.left, + A = k.width, + T = O + k.height, + L = E + A; t.axis.x && ((t.minTranslate.x = - O - t.boundingClientRect.left), + E - t.boundingClientRect.left), (t.maxTranslate.x = L - (t.boundingClientRect.left + t.width))), t.axis.y && ((t.minTranslate.y = - A - t.boundingClientRect.top), + O - t.boundingClientRect.top), (t.maxTranslate.y = T - (t.boundingClientRect.top + @@ -12997,8 +14226,8 @@ d = f.node; (f.edgeOffset = null), (f.boundingClientRect = null), - A(d, null), O(d, null), + E(d, null), (f.translate = null); } t.autoScroller.clear(), @@ -13039,7 +14268,7 @@ )), (i = t.translate.y - r.y)), (t.translate = r), - A(t.helper, t.translate), + O(t.helper, t.translate), (t.scrollContainer.scrollLeft += o), void (t.scrollContainer.scrollTop += i) ); @@ -13064,32 +14293,34 @@ if ( (!t.manager.active || t.manager.isKeySorting) && (t.manager.active || - (n === I && !r(e) && t.isValidSortingTarget(e))) + (n === N.SPACE && + !r(e) && + t.isValidSortingTarget(e))) ) switch ( (e.stopPropagation(), e.preventDefault(), n) ) { - case I: + case N.SPACE: t.manager.active ? t.keyDrop(e) : t.keyLift(e); break; - case H: - case B: + case N.DOWN: + case N.RIGHT: t.keyMove(1); break; - case q: - case F: + case N.UP: + case N.LEFT: t.keyMove(-1); break; - case R: + case N.ESC: (t.newIndex = t.manager.active.index), t.keyDrop(e); } }), s(p(p(t)), 'keyLift', function(e) { var n = e.target, - r = E(n, function(e) { + r = A(n, function(e) { return null != e.sortableInfo; }).sortableInfo, o = r.index, @@ -13144,14 +14375,14 @@ s(p(p(t)), 'isValidSortingTarget', function(e) { var n = t.props.useDragHandle, r = e.target, - o = E(r, function(e) { + o = A(r, function(e) { return null != e.sortableInfo; }); return ( o && o.sortableInfo && !o.sortableInfo.disabled && - (n ? V(r) : r.sortableInfo) + (n ? F(r) : r.sortableInfo) ); }), (function(e) { @@ -13198,8 +14429,26 @@ (e.scrollContainer = t ? e.document.scrollingElement || e.document.documentElement - : j(e.container) || e.container), - (e.autoScroller = new U( + : (function e(t) { + return t instanceof HTMLElement + ? (function(e) { + var t = window.getComputedStyle( + e + ), + n = /(auto|scroll)/; + return [ + 'overflow', + 'overflowX', + 'overflowY' + ].find(function(e) { + return n.test(t[e]); + }); + })(t) + ? t + : e(t.parentNode) + : null; + })(e.container) || e.container), + (e.autoScroller = new q( e.scrollContainer, e.onAutoScroll )), @@ -13284,8 +14533,8 @@ s = i[0], c = i[1]; return [ - N({ height: t, lockOffset: s, width: n }), - N({ height: t, lockOffset: c, width: n }) + z({ height: t, lockOffset: s, width: n }), + z({ height: t, lockOffset: c, width: n }) ]; })({ height: this.height, @@ -13315,8 +14564,8 @@ )); } 'x' === n ? (d.y = 0) : 'y' === n && (d.x = 0), - u && c && !l && O(this.helper, c), - A(this.helper, d); + u && c && !l && E(this.helper, c), + O(this.helper, d); } }, { @@ -13354,66 +14603,66 @@ y = u && h > this.index && h <= l, v = u && h < this.index && h >= l, _ = { x: 0, y: 0 }, - x = a[f].edgeOffset; - x || - ((x = z(p, this.container)), - (a[f].edgeOffset = x), + w = a[f].edgeOffset; + w || + ((w = j(p, this.container)), + (a[f].edgeOffset = w), u && (a[f].boundingClientRect = P(p, o))); - var w = f < a.length - 1 && a[f + 1], + var x = f < a.length - 1 && a[f + 1], M = f > 0 && a[f - 1]; - w && - !w.edgeOffset && - ((w.edgeOffset = z(w.node, this.container)), - u && (w.boundingClientRect = P(w.node, o))), + x && + !x.edgeOffset && + ((x.edgeOffset = j(x.node, this.container)), + u && (x.boundingClientRect = P(x.node, o))), h !== this.index - ? (t && O(p, t), + ? (t && E(p, t), this.axis.x ? this.axis.y ? v || (h < this.index && ((s + i.left - b.width <= - x.left && + w.left && c + i.top <= - x.top + b.height) || - c + i.top + b.height <= x.top)) + w.top + b.height) || + c + i.top + b.height <= w.top)) ? ((_.x = this.width + this.marginOffset.x), - x.left + _.x > + w.left + _.x > this.containerBoundingRect .width - b.width && - w && + x && ((_.x = - w.edgeOffset.left - x.left), + x.edgeOffset.left - w.left), (_.y = - w.edgeOffset.top - x.top)), + x.edgeOffset.top - w.top)), null === this.newIndex && (this.newIndex = h)) : (y || (h > this.index && ((s + i.left + b.width >= - x.left && + w.left && c + i.top + b.height >= - x.top) || + w.top) || c + i.top + b.height >= - x.top + m))) && + w.top + m))) && ((_.x = -( this.width + this.marginOffset.x )), - x.left + _.x < + w.left + _.x < this.containerBoundingRect .left + b.width && M && ((_.x = - M.edgeOffset.left - x.left), + M.edgeOffset.left - w.left), (_.y = - M.edgeOffset.top - x.top)), + M.edgeOffset.top - w.top)), (this.newIndex = h)) : y || (h > this.index && - s + i.left + b.width >= x.left) + s + i.left + b.width >= w.left) ? ((_.x = -( this.width + this.marginOffset.x )), @@ -13421,7 +14670,7 @@ : (v || (h < this.index && s + i.left <= - x.left + b.width)) && + w.left + b.width)) && ((_.x = this.width + this.marginOffset.x), null == this.newIndex && @@ -13429,7 +14678,7 @@ : this.axis.y && (y || (h > this.index && - c + i.top + b.height >= x.top) + c + i.top + b.height >= w.top) ? ((_.y = -( this.height + this.marginOffset.y @@ -13438,13 +14687,13 @@ : (v || (h < this.index && c + i.top <= - x.top + b.height)) && + w.top + b.height)) && ((_.y = this.height + this.marginOffset.y), null == this.newIndex && (this.newIndex = h))), - A(p, _), + O(p, _), (a[f].translate = _)) : n && ((this.sortableGhost = p), @@ -13499,7 +14748,7 @@ var n = d.withRef ? 'wrappedInstance' : null; return t.createElement( e, - i({ ref: n }, w(this.props, K)) + i({ ref: n }, x(this.props, Y)) ); } }, @@ -13546,19 +14795,19 @@ ); })(t.Component)), s(o, 'displayName', L('sortableList', e)), - s(o, 'defaultProps', G), - s(o, 'propTypes', X), + s(o, 'defaultProps', H), + s(o, 'propTypes', B), s(o, 'childContextTypes', { manager: n.object.isRequired }), l ); } - var Q = { + var V = { index: n.number.isRequired, collection: n.oneOfType([n.number, n.string]), disabled: n.bool }, - J = Object.keys(Q); - function Z(e) { + U = Object.keys(V); + function X(e) { var o, a, c = @@ -13645,7 +14894,7 @@ var n = c.withRef ? 'wrappedInstance' : null; return t.createElement( e, - i({ ref: n }, w(this.props, J)) + i({ ref: n }, x(this.props, U)) ); } } @@ -13655,17 +14904,17 @@ })(t.Component)), s(o, 'displayName', L('sortableElement', e)), s(o, 'contextTypes', { manager: n.object.isRequired }), - s(o, 'propTypes', Q), + s(o, 'propTypes', V), s(o, 'defaultProps', { collection: 0 }), a ); } - (e.SortableContainer = $), - (e.sortableContainer = $), - (e.SortableElement = Z), - (e.sortableElement = Z), - (e.SortableHandle = W), - (e.sortableHandle = W), + (e.SortableContainer = W), + (e.sortableContainer = W), + (e.SortableElement = X), + (e.sortableElement = X), + (e.SortableHandle = I), + (e.sortableHandle = I), (e.arrayMove = function(e, t, n) { return ( 'undefined' != typeof console && @@ -14405,7 +15654,7 @@ } function _() { var e = o(); - if (v(e)) return x(e); + if (v(e)) return w(e); d = setTimeout( _, (function(e) { @@ -14414,10 +15663,10 @@ })(e) ); } - function x(e) { + function w(e) { return (d = void 0), b && c ? y(e) : ((c = u = void 0), f); } - function w() { + function x() { var e = o(), n = v(e); if (((c = arguments), (u = this), (p = e), n)) { @@ -14435,15 +15684,15 @@ ((g = !!n.leading), (l = (m = 'maxWait' in n) ? a(i(n.maxWait) || 0, t) : l), (b = 'trailing' in n ? !!n.trailing : b)), - (w.cancel = function() { + (x.cancel = function() { void 0 !== d && clearTimeout(d), (h = 0), (c = p = u = d = void 0); }), - (w.flush = function() { - return void 0 === d ? f : x(o()); + (x.flush = function() { + return void 0 === d ? f : w(o()); }), - w + x ); }; }, @@ -14582,10 +15831,10 @@ function _() { this.revoked = !0; } - function x(e) { + function w(e) { return e.copy || e.base; } - function w(e, t) { + function x(e, t) { var n = e[i]; if (n && !n.finalizing) { n.finalizing = !0; @@ -14609,21 +15858,21 @@ } return l(e); } - function A(e) { + function O(e) { if (!0 === e.revoked) throw new Error( 'Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? ' + - JSON.stringify(x(e)) + JSON.stringify(w(e)) ); } - function O(e) { + function E(e) { for (var t = e.length - 1; t >= 0; t--) { var n = e[t][i]; n.modified || - (Array.isArray(n.base) ? T(n) && M(n) : E(n) && M(n)); + (Array.isArray(n.base) ? T(n) && M(n) : A(n) && M(n)); } } - function E(e) { + function A(e) { for ( var t = e.base, n = e.draft, @@ -14653,7 +15902,7 @@ e[i].finalizing = !0; }), n - ? a(t) && t[i].scope === e && O(e.drafts) + ? a(t) && t[i].scope === e && E(e.drafts) : (e.patches && (function e(t) { if (t && 'object' == typeof t) { @@ -14699,7 +15948,7 @@ } } })(e.drafts[0]), - O(e.drafts)); + E(e.drafts)); }, createProxy: function e(t, n) { var r = Array.isArray(t), @@ -14714,11 +15963,11 @@ enumerable: r, get: function() { return (function(t, n) { - A(t); - var r = w(x(t), n); + O(t); + var r = x(w(t), n); return t.finalizing ? r - : r === w(t.base, n) && s(r) + : r === x(t.base, n) && s(r) ? (k(t), (t.copy[n] = e(r, t))) : r; })(this[i], n); @@ -14726,9 +15975,9 @@ set: function(e) { !(function(e, t, n) { if ( - (A(e), (e.assigned[t] = !0), !e.modified) + (O(e), (e.assigned[t] = !0), !e.modified) ) { - if (h(n, w(x(e), t))) return; + if (h(n, x(w(e), t))) return; M(e), k(e); } e.copy[t] = n; @@ -14790,44 +16039,44 @@ if (t === i) return e; var n = e.drafts; if (!e.modified && p(n, t)) return n[t]; - var r = z(e)[t]; + var r = j(e)[t]; if (e.finalized || !s(r)) return r; if (e.modified) { - if (r !== N(e.base, t)) return r; + if (r !== z(e.base, t)) return r; n = e.copy; } return (n[t] = L(r, e)); }, has: function(e, t) { - return t in z(e); + return t in j(e); }, ownKeys: function(e) { - return Reflect.ownKeys(z(e)); + return Reflect.ownKeys(j(e)); }, set: function(e, t, n) { if (!e.modified) { - var r = N(e.base, t); + var r = z(e.base, t); if ( n ? h(r, n) || n === e.drafts[t] : h(r, n) && t in e.base ) return !0; - j(e); + N(e); } return (e.assigned[t] = !0), (e.copy[t] = n), !0; }, deleteProperty: function(e, t) { return ( - void 0 !== N(e.base, t) || t in e.base - ? ((e.assigned[t] = !1), j(e)) + void 0 !== z(e.base, t) || t in e.base + ? ((e.assigned[t] = !1), N(e)) : e.assigned[t] && delete e.assigned[t], e.copy && delete e.copy[t], !0 ); }, getOwnPropertyDescriptor: function(e, t) { - var n = z(e), + var n = j(e), r = Reflect.getOwnPropertyDescriptor(n, t); return ( r && @@ -14852,20 +16101,20 @@ } }, D = {}; - function z(e) { + function j(e) { return e.copy || e.base; } - function N(e, t) { + function z(e, t) { var n = e[i], - r = Reflect.getOwnPropertyDescriptor(n ? z(n) : e, t); + r = Reflect.getOwnPropertyDescriptor(n ? j(n) : e, t); return r && r.value; } - function j(e) { + function N(e) { e.modified || ((e.modified = !0), (e.copy = c(l(e.base), e.drafts)), (e.drafts = null), - e.parent && j(e.parent)); + e.parent && N(e.parent)); } f(P, function(e, t) { D[e] = function() { @@ -15478,10 +16727,10 @@ function _(e) { 0 == e.a && e.c && (e.c(), (e.c = null)); } - function x(e) { + function w(e) { this.a = e || '-'; } - function w(e, t) { + function x(e, t) { (this.c = e), (this.f = 4), (this.a = 'n'); var n = (t || 'n4').match(/^([nio])([1-9])$/i); n && ((this.a = n[1]), (this.f = parseInt(n[2], 10))); @@ -15509,7 +16758,7 @@ t ); } - function A(e) { + function O(e) { var t = 4, n = 'n', r = null; @@ -15527,15 +16776,15 @@ n + t ); } - function O(e, t) { + function E(e, t) { (this.c = e), (this.f = e.o.document.documentElement), (this.h = t), - (this.a = new x('-')), + (this.a = new w('-')), (this.j = !1 !== t.events), (this.g = !1 !== t.classes); } - function E(e) { + function A(e) { if (e.g) { var t = h(e.f, e.a.c('wf', 'active')), n = [], @@ -15574,7 +16823,7 @@ '00;' ); } - function z(e, t, n, r, o, i) { + function j(e, t, n, r, o, i) { (this.g = e), (this.j = t), (this.a = r), @@ -15582,7 +16831,7 @@ (this.f = o || 3e3), (this.h = i || void 0); } - function N(e, t, n, r, o, i, a) { + function z(e, t, n, r, o, i, a) { (this.v = e), (this.B = t), (this.c = n), @@ -15596,25 +16845,25 @@ (this.h = new L(this.c, this.s)), (this.j = new L(this.c, this.s)), (this.m = new L(this.c, this.s)), - (e = D((e = new w(this.a.c + ',serif', k(this.a))))), + (e = D((e = new x(this.a.c + ',serif', k(this.a))))), (this.g.a.style.cssText = e), - (e = D((e = new w(this.a.c + ',sans-serif', k(this.a))))), + (e = D((e = new x(this.a.c + ',sans-serif', k(this.a))))), (this.h.a.style.cssText = e), - (e = D((e = new w('serif', k(this.a))))), + (e = D((e = new x('serif', k(this.a))))), (this.j.a.style.cssText = e), - (e = D((e = new w('sans-serif', k(this.a))))), + (e = D((e = new x('sans-serif', k(this.a))))), (this.m.a.style.cssText = e), P(this.g), P(this.h), P(this.j), P(this.m); } - (x.prototype.c = function(e) { + (w.prototype.c = function(e) { for (var t = [], n = 0; n < arguments.length; n++) t.push(arguments[n].replace(/[\W_]+/g, '').toLowerCase()); return t.join(this.a); }), - (z.prototype.start = function() { + (j.prototype.start = function() { var e = this.c.o.document, t = this, n = s(), @@ -15654,7 +16903,7 @@ } ); }); - var j = { D: 'serif', C: 'sans-serif' }, + var N = { D: 'serif', C: 'sans-serif' }, R = null; function I() { if (null === R) { @@ -15670,11 +16919,11 @@ return R; } function F(e, t, n) { - for (var r in j) + for (var r in N) if ( - j.hasOwnProperty(r) && - t === e.f[j[r]] && - n === e.f[j[r]] + N.hasOwnProperty(r) && + t === e.f[N[r]] && + n === e.f[N[r]] ) return !0; return !1; @@ -15698,7 +16947,7 @@ (this.m = this.j = !1), (this.s = n); } - N.prototype.start = function() { + z.prototype.start = function() { (this.f.serif = this.j.a.offsetWidth), (this.f['sans-serif'] = this.m.a.offsetWidth), (this.A = s()), @@ -15738,7 +16987,7 @@ [e.a.c('wf', 'loading'), e.a.c('wf', 'inactive')] ), T(e, 'active')) - : E(e.a)); + : A(e.a)); } function W(e) { (this.j = e), @@ -15752,7 +17001,7 @@ setTimeout(function() { var e = o || null, s = r || {}; - if (0 === n.length && i) E(t.a); + if (0 === n.length && i) A(t.a); else { (t.f += n.length), i && (t.j = i); var c, @@ -15782,8 +17031,8 @@ H = h ? 42 < parseInt(h[1], 10) : !g; } else H = !1; (d = H - ? new z(a(t.g, t), a(t.h, t), t.c, l, t.s, f) - : new N(a(t.g, t), a(t.h, t), t.c, l, t.s, e, f)), + ? new j(a(t.g, t), a(t.h, t), t.c, l, t.s, f) + : new z(a(t.g, t), a(t.h, t), t.c, l, t.s, e, f)), u.push(d); } for (c = 0; c < u.length; c++) u[c].start(); @@ -15858,7 +17107,7 @@ r[t].load(function(t, n, r) { V(e, i, t, n, r); }); - })(this, new O(this.c, e), e); + })(this, new E(this.c, e), e); }), (U.prototype.load = function(e) { var t = this, @@ -15893,8 +17142,8 @@ null != i[s].fontWeight ? ((r = i[s].fontStyle + i[s].fontWeight), - a.push(new w(c, r))) - : a.push(new w(c)); + a.push(new x(c, r))) + : a.push(new x(c)); } e(a); } else @@ -15922,8 +17171,8 @@ u < c.length; u += 1 ) - s.push(new w(r[0], c[u])); - else s.push(new w(r[0])); + s.push(new x(r[0], c[u])); + else s.push(new x(r[0])); v(a, function() { e(s, i); }); @@ -16036,7 +17285,7 @@ r < i.length; r += 1 ) - e.a.push(new w(o, i[r])); + e.a.push(new x(o, i[r])); } })(i), g( @@ -16084,7 +17333,7 @@ s < a.length; s++ ) - r.push(new w(i, a[s])); + r.push(new x(i, a[s])); try { n.Typekit.load({ events: !1, @@ -16110,9 +17359,9 @@ for (var o = 0, i = n.fonts.length; o < i; ++o) { var a = n.fonts[o]; r.a.push( - new w( + new x( a.name, - A( + O( 'font-weight:' + a.weight + ';font-style:' + @@ -17878,26 +19127,26 @@ var y = c(e), v = c(t), _ = y ? d : s(e), - x = v ? d : s(t), - w = (_ = _ == f ? p : _) == p, - M = (x = x == f ? p : x) == p, - k = _ == x; + w = v ? d : s(t), + x = (_ = _ == f ? p : _) == p, + M = (w = w == f ? p : w) == p, + k = _ == w; if (k && u(e)) { if (!u(t)) return !1; - (y = !0), (w = !1); + (y = !0), (x = !1); } - if (k && !w) + if (k && !x) return ( b || (b = new r()), y || l(e) ? o(e, t, n, g, m, b) : i(e, t, _, n, g, m, b) ); if (!(1 & n)) { - var S = w && h.call(e, '__wrapped__'), - A = M && h.call(t, '__wrapped__'); - if (S || A) { - var O = S ? e.value() : e, - E = A ? t.value() : t; - return b || (b = new r()), m(O, E, n, g, b); + var S = x && h.call(e, '__wrapped__'), + O = M && h.call(t, '__wrapped__'); + if (S || O) { + var E = S ? e.value() : e, + A = O ? t.value() : t; + return b || (b = new r()), m(E, A, n, g, b); } } return !!k && (b || (b = new r()), a(e, t, n, g, m, b)); @@ -18144,13 +19393,14 @@ }; }, function(e, t, n) { - var r = n(48); - function o(e, t) { + var r = n(48), + o = 'Expected a function'; + function i(e, t) { if ( 'function' != typeof e || (null != t && 'function' != typeof t) ) - throw new TypeError('Expected a function'); + throw new TypeError(o); var n = function() { var r = arguments, o = t ? t.apply(this, r) : r[0], @@ -18159,9 +19409,9 @@ var a = e.apply(this, r); return (n.cache = i.set(o, a) || i), a; }; - return (n.cache = new (o.Cache || r)()), n; + return (n.cache = new (i.Cache || r)()), n; } - (o.Cache = r), (e.exports = o); + (i.Cache = r), (e.exports = i); }, function(e, t, n) { var r = n(164); @@ -18337,72 +19587,72 @@ y = n(3), v = n(21), _ = n(189), - x = n(4), - w = n(191), + w = n(4), + x = n(191), M = n(16), k = '[object Arguments]', S = '[object Function]', - A = '[object Object]', - O = {}; - (O[k] = O['[object Array]'] = O['[object ArrayBuffer]'] = O[ + O = '[object Object]', + E = {}; + (E[k] = E['[object Array]'] = E['[object ArrayBuffer]'] = E[ '[object DataView]' - ] = O['[object Boolean]'] = O['[object Date]'] = O[ + ] = E['[object Boolean]'] = E['[object Date]'] = E[ '[object Float32Array]' - ] = O['[object Float64Array]'] = O['[object Int8Array]'] = O[ + ] = E['[object Float64Array]'] = E['[object Int8Array]'] = E[ '[object Int16Array]' - ] = O['[object Int32Array]'] = O['[object Map]'] = O[ + ] = E['[object Int32Array]'] = E['[object Map]'] = E[ '[object Number]' - ] = O[A] = O['[object RegExp]'] = O['[object Set]'] = O[ + ] = E[O] = E['[object RegExp]'] = E['[object Set]'] = E[ '[object String]' - ] = O['[object Symbol]'] = O['[object Uint8Array]'] = O[ + ] = E['[object Symbol]'] = E['[object Uint8Array]'] = E[ '[object Uint8ClampedArray]' - ] = O['[object Uint16Array]'] = O['[object Uint32Array]'] = !0), - (O['[object Error]'] = O[S] = O['[object WeakMap]'] = !1), - (e.exports = function e(t, n, E, T, C, L) { + ] = E['[object Uint16Array]'] = E['[object Uint32Array]'] = !0), + (E['[object Error]'] = E[S] = E['[object WeakMap]'] = !1), + (e.exports = function e(t, n, A, T, C, L) { var P, D = 1 & n, - z = 2 & n, - N = 4 & n; - if ((E && (P = C ? E(t, T, C, L) : E(t)), void 0 !== P)) + j = 2 & n, + z = 4 & n; + if ((A && (P = C ? A(t, T, C, L) : A(t)), void 0 !== P)) return P; - if (!x(t)) return t; - var j = y(t); - if (j) { + if (!w(t)) return t; + var N = y(t); + if (N) { if (((P = g(t)), !D)) return u(t, P); } else { var R = h(t), I = R == S || '[object GeneratorFunction]' == R; if (v(t)) return c(t, D); - if (R == A || R == k || (I && !C)) { - if (((P = z || I ? {} : b(t)), !D)) - return z ? f(t, s(P, t)) : l(t, a(P, t)); + if (R == O || R == k || (I && !C)) { + if (((P = j || I ? {} : b(t)), !D)) + return j ? f(t, s(P, t)) : l(t, a(P, t)); } else { - if (!O[R]) return C ? t : {}; + if (!E[R]) return C ? t : {}; P = m(t, R, D); } } L || (L = new r()); var F = L.get(t); if (F) return F; - if ((L.set(t, P), w(t))) + if ((L.set(t, P), x(t))) return ( t.forEach(function(r) { - P.add(e(r, n, E, r, t, L)); + P.add(e(r, n, A, r, t, L)); }), P ); if (_(t)) return ( t.forEach(function(r, o) { - P.set(o, e(r, n, E, o, t, L)); + P.set(o, e(r, n, A, o, t, L)); }), P ); - var q = N ? (z ? p : d) : z ? keysIn : M, - B = j ? void 0 : q(t); + var q = z ? (j ? p : d) : j ? keysIn : M, + B = N ? void 0 : q(t); return ( o(B || t, function(r, o) { - B && (r = t[(o = r)]), i(P, o, e(r, n, E, o, t, L)); + B && (r = t[(o = r)]), i(P, o, e(r, n, A, o, t, L)); }), P ); @@ -18998,8 +20248,15 @@ function s(e) { return e && e.__esModule ? e : { default: e }; } - var c = [38, 40], - u = (t.EditableInput = (function(e) { + var c = 38, + u = [c, 40], + l = function(e) { + return u.indexOf(e) > -1; + }, + f = function(e) { + return Number(String(e).replace(/%/g, '')); + }, + d = (t.EditableInput = (function(e) { function t(e) { !(function(e, t) { if (!(e instanceof t)) @@ -19032,17 +20289,10 @@ n.setUpdatedValue(e.target.value, e); }), (n.handleKeyDown = function(e) { - var t = (function(e) { - return Number(String(e).replace(/%/g, '')); - })(e.target.value); - if ( - !isNaN(t) && - (function(e) { - return c.indexOf(e) > -1; - })(e.keyCode) - ) { + var t = f(e.target.value); + if (!isNaN(t) && l(e.keyCode)) { var r = n.getArrowOffset(), - o = 38 === e.keyCode ? t + r : t - r; + o = e.keyCode === c ? t + r : t - r; n.setUpdatedValue(o, e); } }), @@ -19222,7 +20472,7 @@ t ); })(o.PureComponent || o.Component)); - t.default = u; + t.default = d; }, function(e, t, n) { 'use strict'; @@ -19617,35 +20867,35 @@ g = n(40), m = n(85), b = n(207); - e.exports = function(e, t, n, y, v, _, x) { - var w = m(e, n), + e.exports = function(e, t, n, y, v, _, w) { + var x = m(e, n), M = m(t, n), - k = x.get(M); + k = w.get(M); if (k) r(e, n, k); else { - var S = _ ? _(w, M, n + '', e, t, x) : void 0, - A = void 0 === S; - if (A) { - var O = u(M), - E = !O && f(M), - T = !O && !E && g(M); + var S = _ ? _(x, M, n + '', e, t, w) : void 0, + O = void 0 === S; + if (O) { + var E = u(M), + A = !E && f(M), + T = !E && !A && g(M); (S = M), - O || E || T - ? u(w) - ? (S = w) - : l(w) - ? (S = a(w)) - : E - ? ((A = !1), (S = o(M, !0))) + E || A || T + ? u(x) + ? (S = x) + : l(x) + ? (S = a(x)) + : A + ? ((O = !1), (S = o(M, !0))) : T - ? ((A = !1), (S = i(M, !0))) + ? ((O = !1), (S = i(M, !0))) : (S = []) : h(M) || c(M) - ? ((S = w), - c(w) ? (S = b(w)) : (p(w) && !d(w)) || (S = s(M))) - : (A = !1); + ? ((S = x), + c(x) ? (S = b(x)) : (p(x) && !d(x)) || (S = s(M))) + : (O = !1); } - A && (x.set(M, S), v(S, M, y, _, x), x.delete(M)), r(e, n, S); + O && (w.set(M, S), v(S, M, y, _, w), w.delete(M)), r(e, n, S); } }; }, @@ -20361,31 +21611,31 @@ ? { h: t[1], s: t[2], v: t[3], a: t[4] } : (t = Y.hex8.exec(e)) ? { - r: N(t[1]), - g: N(t[2]), - b: N(t[3]), + r: z(t[1]), + g: z(t[2]), + b: z(t[3]), a: F(t[4]), format: n ? 'name' : 'hex8' } : (t = Y.hex6.exec(e)) ? { - r: N(t[1]), - g: N(t[2]), - b: N(t[3]), + r: z(t[1]), + g: z(t[2]), + b: z(t[3]), format: n ? 'name' : 'hex' } : (t = Y.hex4.exec(e)) ? { - r: N(t[1] + '' + t[1]), - g: N(t[2] + '' + t[2]), - b: N(t[3] + '' + t[3]), + r: z(t[1] + '' + t[1]), + g: z(t[2] + '' + t[2]), + b: z(t[3] + '' + t[3]), a: F(t[4] + '' + t[4]), format: n ? 'name' : 'hex8' } : !!(t = Y.hex3.exec(e)) && { - r: N(t[1] + '' + t[1]), - g: N(t[2] + '' + t[2]), - b: N(t[3] + '' + t[3]), + r: z(t[1] + '' + t[1]), + g: z(t[2] + '' + t[2]), + b: z(t[3] + '' + t[3]), format: n ? 'name' : 'hex' }; })(e)), @@ -20539,9 +21789,9 @@ } function g(e, t, n, r) { var o = [ - j(c(e).toString(16)), - j(c(t).toString(16)), - j(c(n).toString(16)) + N(c(e).toString(16)), + N(c(t).toString(16)), + N(c(n).toString(16)) ]; return r && o[0].charAt(0) == o[0].charAt(1) && @@ -20552,21 +21802,21 @@ } function m(e, t, n, r) { return [ - j(I(r)), - j(c(e).toString(16)), - j(c(t).toString(16)), - j(c(n).toString(16)) + N(I(r)), + N(c(e).toString(16)), + N(c(t).toString(16)), + N(c(n).toString(16)) ].join(''); } function b(e, t) { t = 0 === t ? 0 : t || 10; var n = d(e).toHsl(); - return (n.s -= t / 100), (n.s = z(n.s)), d(n); + return (n.s -= t / 100), (n.s = j(n.s)), d(n); } function y(e, t) { t = 0 === t ? 0 : t || 10; var n = d(e).toHsl(); - return (n.s += t / 100), (n.s = z(n.s)), d(n); + return (n.s += t / 100), (n.s = j(n.s)), d(n); } function v(e) { return d(e).desaturate(100); @@ -20574,9 +21824,9 @@ function _(e, t) { t = 0 === t ? 0 : t || 10; var n = d(e).toHsl(); - return (n.l += t / 100), (n.l = z(n.l)), d(n); + return (n.l += t / 100), (n.l = j(n.l)), d(n); } - function x(e, t) { + function w(e, t) { t = 0 === t ? 0 : t || 10; var n = d(e).toRgb(); return ( @@ -20586,10 +21836,10 @@ d(n) ); } - function w(e, t) { + function x(e, t) { t = 0 === t ? 0 : t || 10; var n = d(e).toHsl(); - return (n.l -= t / 100), (n.l = z(n.l)), d(n); + return (n.l -= t / 100), (n.l = j(n.l)), d(n); } function M(e, t) { var n = d(e).toHsl(), @@ -20609,7 +21859,7 @@ d({ h: (n + 240) % 360, s: t.s, l: t.l }) ]; } - function A(e) { + function O(e) { var t = d(e).toHsl(), n = t.h; return [ @@ -20619,7 +21869,7 @@ d({ h: (n + 270) % 360, s: t.s, l: t.l }) ]; } - function O(e) { + function E(e) { var t = d(e).toHsl(), n = t.h; return [ @@ -20628,7 +21878,7 @@ d({ h: (n + 216) % 360, s: t.s, l: t.l }) ]; } - function E(e, t, n) { + function A(e, t, n) { (t = t || 6), (n = n || 30); var r = d(e).toHsl(), o = 360 / n, @@ -20756,10 +22006,10 @@ toHex8: function(e) { return (function(e, t, n, r, o) { var i = [ - j(c(e).toString(16)), - j(c(t).toString(16)), - j(c(n).toString(16)), - j(I(r)) + N(c(e).toString(16)), + N(c(t).toString(16)), + N(c(n).toString(16)), + N(I(r)) ]; return o && i[0].charAt(0) == i[0].charAt(1) && @@ -20899,10 +22149,10 @@ return this._applyModification(_, arguments); }, brighten: function() { - return this._applyModification(x, arguments); + return this._applyModification(w, arguments); }, darken: function() { - return this._applyModification(w, arguments); + return this._applyModification(x, arguments); }, desaturate: function() { return this._applyModification(b, arguments); @@ -20920,7 +22170,7 @@ return e.apply(null, [this].concat([].slice.call(t))); }, analogous: function() { - return this._applyCombination(E, arguments); + return this._applyCombination(A, arguments); }, complement: function() { return this._applyCombination(k, arguments); @@ -20929,13 +22179,13 @@ return this._applyCombination(T, arguments); }, splitcomplement: function() { - return this._applyCombination(O, arguments); + return this._applyCombination(E, arguments); }, triad: function() { return this._applyCombination(S, arguments); }, tetrad: function() { - return this._applyCombination(A, arguments); + return this._applyCombination(O, arguments); } }), (d.fromRatio = function(e, t) { @@ -21209,13 +22459,13 @@ o.abs(e - t) < 1e-6 ? 1 : (e % t) / parseFloat(t) ); } - function z(e) { + function j(e) { return u(1, l(0, e)); } - function N(e) { + function z(e) { return parseInt(e, 16); } - function j(e) { + function N(e) { return 1 == e.length ? '0' + e : '' + e; } function R(e) { @@ -21225,7 +22475,7 @@ return o.round(255 * parseFloat(e)).toString(16); } function F(e) { - return N(e) / 255; + return z(e) / 255; } var q, B, @@ -21591,7 +22841,7 @@ y = n(89), v = n.n(y), _ = n(19), - x = { + w = { autocollector: { colors: [ '#5E77FF', @@ -21646,8 +22896,8 @@ ] } }; - function w() { - return (w = + function x() { + return (x = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { @@ -21682,8 +22932,8 @@ d: 'M320 48v32a16 16 0 01-16 16h-62.76l-80 320H208a16 16 0 0116 16v32a16 16 0 01-16 16H16a16 16 0 01-16-16v-32a16 16 0 0116-16h62.76l80-320H112a16 16 0 01-16-16V48a16 16 0 0116-16h192a16 16 0 0116 16z' }); - function A() { - return (A = + function O() { + return (O = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { @@ -21695,13 +22945,13 @@ return e; }).apply(this, arguments); } - var O = o.a.createElement('path', { + var E = o.a.createElement('path', { fill: 'currentColor', d: 'M12.83 352h262.34A12.82 12.82 0 00288 339.17v-38.34A12.82 12.82 0 00275.17 288H12.83A12.82 12.82 0 000 300.83v38.34A12.82 12.82 0 0012.83 352zm0-256h262.34A12.82 12.82 0 00288 83.17V44.83A12.82 12.82 0 00275.17 32H12.83A12.82 12.82 0 000 44.83v38.34A12.82 12.82 0 0012.83 96zM432 160H16a16 16 0 00-16 16v32a16 16 0 0016 16h416a16 16 0 0016-16v-32a16 16 0 00-16-16zm0 256H16a16 16 0 00-16 16v32a16 16 0 0016 16h416a16 16 0 0016-16v-32a16 16 0 00-16-16z' }); - function E() { - return (E = + function A() { + return (A = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { @@ -21758,7 +23008,7 @@ 'M24.184 24c.727 0 1.316.448 1.316 1s-.59 1-1.316 1H1.816C1.089 26 .5 25.552.5 25s.59-1 1.316-1h22.368zM13 4c.552 0 1 .61 1 1.364v11.325l3.306.001a.5.5 0 01.41.788l-.056.066-4.308 4.307a.5.5 0 01-.638.058l-.069-.058-4.308-4.307a.5.5 0 01.268-.847l.086-.007L12 16.689V5.364C12 4.61 12.448 4 13 4z' }) ), - z = o.a.createElement( + j = o.a.createElement( 'g', { fill: 'none', fillRule: 'evenodd' }, o.a.createElement( @@ -21784,8 +23034,8 @@ }) ) ); - function N() { - return (N = + function z() { + return (z = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { @@ -21797,7 +23047,7 @@ return e; }).apply(this, arguments); } - var j = o.a.createElement( + var N = o.a.createElement( 'defs', null, o.a.createElement('path', { @@ -22880,7 +24130,7 @@ function(e) { return o.a.createElement( 'svg', - w( + x( { 'aria-hidden': 'true', 'data-prefix': 'fas', @@ -22928,7 +24178,7 @@ function(e) { return o.a.createElement( 'svg', - A( + O( { 'aria-hidden': 'true', 'data-prefix': 'fas', @@ -22939,7 +24189,7 @@ }, e ), - O + E ); }, { width: '0.75rem' } @@ -22974,7 +24224,7 @@ function(e) { return o.a.createElement( 'svg', - E( + A( { 'aria-hidden': 'true', 'data-prefix': 'fas', @@ -23013,8 +24263,8 @@ function(e) { return o.a.createElement( 'svg', - N({ viewBox: '0 0 26 30' }, e), - j, + z({ viewBox: '0 0 26 30' }, e), + N, R ); }, @@ -23029,7 +24279,7 @@ 'svg', P({ viewBox: '0 0 26 30' }, e), D, - z + j ); }, { width: '0.85em' } @@ -23110,39 +24360,41 @@ ] } }, - x + w ), $ = [{ value: 'default', label: 'Default' }]; - Object.keys(x).forEach(function(e) { + Object.keys(w).forEach(function(e) { var t = { value: e, label: e.charAt(0).toUpperCase() + e.slice(1) }; $.push(t); }); - var Q = '#222222', - J = '#6f6f6f', - Z = '#e8e8e8', - ee = '#ffffff', - te = '#f3f5f6', - ne = '#e7e7ec', - re = [ + var Q = { + title: '#222222', + subtitle: '#6f6f6f', + border: '#e8e8e8', + background: '#ffffff', + row: '#f3f5f6', + rowHover: '#e7e7ec' + }, + J = [ { label: 'Top', value: 'top' }, { label: 'Right', value: 'right' }, { label: 'Bottom', value: 'bottom' }, { label: 'Left', value: 'left' } ], - oe = [ + Z = [ { label: 'Top', value: 'top' }, { label: 'Middle', value: 'middle' }, { label: 'Bottom', value: 'bottom' } ], - ie = [ + ee = [ { label: 'Left', value: 'left' }, { label: 'Center', value: 'center' }, { label: 'Right', value: 'right' } ], - ae = [ + te = [ { label: 'Auto', value: '' }, { label: '1', value: 1 }, { label: '2', value: 2 }, @@ -23155,13 +24407,13 @@ { label: '9', value: 9 }, { label: '10', value: 10 } ], - se = [ + ne = [ { label: '1px', value: 1 }, { label: '2px', value: 2 }, { label: '4px', value: 4 }, { label: '8px', value: 8 } ], - ce = [ + re = [ { label: 'Auto', value: 2.5 }, { label: '1', value: 1 }, { label: '2', value: 2 }, @@ -23174,26 +24426,27 @@ { label: '9', value: 9 }, { label: '10', value: 10 } ], - ue = [ + oe = [ { label: 'None', value: '' }, { label: 'Normal', value: 'normal' }, { label: 'Percent', value: 'percent' } ], - le = [ + ie = [ { label: 'World', value: 'world' }, { label: 'United States', value: 'us' } ], - fe = [ + ae = [ { label: 'Absolute', value: 'absolute' }, { label: 'Relative', value: 'relative' } ], - de = [ + se = [ { label: 'Both sides', value: 'both-sides' }, { label: 'Left', value: 'left' }, { label: 'Right', value: 'right' } ], - pe = 'transparent', - he = { + ce = 60, + ue = 'transparent', + le = { appearance: !0, title: !0, axis: !0, @@ -23204,22 +24457,22 @@ table: !0, funnel: !0 }, - ge = [ + fe = [ 'funnel', 'funnel-3d', 'horizontal-funnel', 'horizontal-funnel-3d' ], - me = { + de = { chart: G[0].value, chartPalette: $[0].value, colors: K[$[0].value].colors, general_prefix: '', general_suffix: '', chart_slider_show: !1, - appearance_background: ee, - appearance_border: Z, - appearance_color: ee, + appearance_background: Q.background, + appearance_border: Q.border, + appearance_color: Q.background, appearance_font_family: Y.value, appearance_font_size: W[11].value, appearance_font_bold: !0, @@ -23227,122 +24480,122 @@ appearance_sparkline: !1, title_show: !1, title_text: '', - title_textAlign: ie[0].value, - title_color: Q, + title_textAlign: ee[0].value, + title_color: Q.title, title_font_family: Y.value, title_font_size: W[0].value, title_font_bold: !1, title_font_italic: !1, subtitle_show: !1, subtitle_text: '', - subtitle_textAlign: ie[0].value, - subtitle_color: J, + subtitle_textAlign: ee[0].value, + subtitle_color: Q.subtitle, subtitle_font_family: Y.value, subtitle_font_size: W[0].value, subtitle_font_bold: !1, subtitle_font_italic: !1, axis_vertical_title_show: !1, axis_vertical_title_text: '', - axis_vertical_title_textAlign: oe[1].value, - axis_vertical_title_color: Q, + axis_vertical_title_textAlign: Z[1].value, + axis_vertical_title_color: Q.title, axis_vertical_title_font_family: Y.value, axis_vertical_title_font_size: W[0].value, axis_vertical_title_font_bold: !1, axis_vertical_title_font_italic: !1, axis_vertical_label_show: !1, - axis_vertical_label_color: Q, + axis_vertical_label_color: Q.title, axis_vertical_label_font_family: Y.value, axis_vertical_label_font_size: W[0].value, axis_vertical_label_font_bold: !1, axis_vertical_label_font_italic: !1, axis_horizontal_title_show: !1, axis_horizontal_title_text: '', - axis_horizontal_title_textAlign: ie[0].value, - axis_horizontal_title_color: Q, + axis_horizontal_title_textAlign: ee[0].value, + axis_horizontal_title_color: Q.title, axis_horizontal_title_font_family: Y.value, axis_horizontal_title_font_size: W[0].value, axis_horizontal_title_font_bold: !1, axis_horizontal_title_font_italic: !1, axis_horizontal_label_show: !1, - axis_horizontal_label_color: Q, + axis_horizontal_label_color: Q.title, axis_horizontal_label_font_family: Y.value, axis_horizontal_label_font_size: W[0].value, axis_horizontal_label_font_bold: !1, axis_horizontal_label_font_italic: !1, legend_show: !1, - legend_color: Q, + legend_color: Q.title, legend_font_family: Y.value, legend_font_size: W[0].value, legend_font_bold: !1, legend_font_italic: !1, - legend_layout: re[0].value, - legend_position_horizontal: ie[0].value, - legend_position_vertical: oe[0].value, + legend_layout: J[0].value, + legend_position_horizontal: ee[0].value, + legend_position_vertical: Z[0].value, grid_show: !1, - grid_lines_color: Z, - grid_lines_count: ae[0].value, + grid_lines_color: Q.border, + grid_lines_count: te[0].value, subgrid_show: !1, - subgrid_lines_color: Z, - subgrid_lines_count: ae[0].value, + subgrid_lines_color: Q.border, + subgrid_lines_count: te[0].value, series_label_show: !1, - series_label_color: Q, + series_label_color: Q.title, series_label_font_family: Y.value, series_label_font_size: W[0].value, series_label_font_bold: !1, series_label_font_italic: !1, - series_label_textAlign: ie[1].value, - series_line: se[0].value, + series_label_textAlign: ee[1].value, + series_line: ne[0].value, series_points_show: !1, - series_points_size: ce[0].value, - series_stacked: ue[0].value, - tooltip_color: Q, + series_points_size: re[0].value, + series_stacked: oe[0].value, + tooltip_color: Q.title, tooltip_font_family: Y.value, tooltip_font_size: W[0].value, tooltip_font_bold: !1, tooltip_font_italic: !1, - tooltip_background: ee, - tooltip_border: pe, + tooltip_background: Q.background, + tooltip_border: ue, tooltip_simpleTooltip: !1, table_pagination_show: !1, table_pagination_limit: 1, table_header_show: !1, - table_header_textAlign: ie[0].value, - table_header_color: Q, + table_header_textAlign: ee[0].value, + table_header_color: Q.title, table_header_font_family: Y.value, table_header_font_size: W[0].value, table_header_font_bold: !1, table_header_font_italic: !1, table_body_show: !1, - table_body_textAlign: ie[0].value, - table_body_color: Q, + table_body_textAlign: ee[0].value, + table_body_color: Q.title, table_body_font_family: Y.value, table_body_font_size: W[0].value, table_body_font_bold: !1, table_body_font_italic: !1, - table_body_row_alternate_color: te, - table_body_row_hover_background: ne, - choropleth_map: le[0].value, + table_body_row_alternate_color: Q.row, + table_body_row_hover_background: Q.rowHover, + choropleth_map: ie[0].value, choropleth_border_show: !1, - choropleth_border_size: se[0].value, - choropleth_border_color: Z, + choropleth_border_size: ne[0].value, + choropleth_border_color: Q.border, funnel_lines: !1, funnel_results: !1, funnel_percents_show: !1, - funnel_percents_count: fe[0].value, + funnel_percents_count: ae[0].value, funnel_percents_decimals: 0, funnel_hover: !1, funnel_margin: !1, funnel_minimal_size: 50, - funnel_effect3d: de[0].value, - funnel_label_textAlign: ie[1].value, - funnel_label_color: Q, + funnel_effect3d: se[0].value, + funnel_label_textAlign: ee[1].value, + funnel_label_color: Q.title, funnel_label_font_family: Y.value, funnel_label_font_size: W[0].value, funnel_label_font_bold: !1, funnel_label_font_italic: !1 }; - function be() { - return (be = + function pe() { + return (pe = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { @@ -23354,7 +24607,7 @@ return e; }).apply(this, arguments); } - var ye = o.a.createElement( + var he = o.a.createElement( 'defs', null, o.a.createElement('path', { @@ -23363,7 +24616,7 @@ id: 'edit_svg__a' }) ), - ve = o.a.createElement( + ge = o.a.createElement( 'g', { fill: 'none', fillRule: 'evenodd' }, o.a.createElement( @@ -23382,16 +24635,16 @@ o.a.createElement('path', { d: 'M-64-14.436H72v40H-64z' }) ) ), - _e = function(e) { + me = function(e) { return o.a.createElement( 'svg', - be({ width: 12, height: 12 }, e), - ye, - ve + pe({ width: 12, height: 12 }, e), + he, + ge ); }; - function xe() { - return (xe = + function be() { + return (be = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { @@ -23403,7 +24656,7 @@ return e; }).apply(this, arguments); } - var we = o.a.createElement( + var ye = o.a.createElement( 'defs', null, o.a.createElement('path', { @@ -23412,7 +24665,7 @@ id: 'remove-x_svg__a' }) ), - Me = o.a.createElement( + ve = o.a.createElement( 'g', { transform: 'translate(.5 .5)', @@ -23435,15 +24688,15 @@ o.a.createElement('path', { d: 'M-48-10.827H54v30H-48z' }) ) ), - ke = function(e) { + _e = function(e) { return o.a.createElement( 'svg', - xe({ width: 10, height: 10 }, e), - we, - Me + be({ width: 10, height: 10 }, e), + ye, + ve ); }; - function Se(e) { + function we(e) { return ( (function(e) { if (Array.isArray(e)) { @@ -23470,7 +24723,7 @@ })() ); } - function Ae(e, t) { + function xe(e, t) { return ( (function(e) { if (Array.isArray(e)) return e; @@ -23505,7 +24758,7 @@ })() ); } - var Oe = Object(b.sortableHandle)(function() { + var Me = Object(b.sortableHandle)(function() { return o.a.createElement('div', { style: { position: 'absolute', @@ -23516,13 +24769,13 @@ } }); }), - Ee = Object(b.sortableElement)(function(e) { + ke = Object(b.sortableElement)(function(e) { var t = e.value, n = e.index, i = e.removeItem, a = e.changeColor, s = e.shouldOpenPicker, - c = Ae(Object(r.useState)(!1), 2), + c = xe(Object(r.useState)(!1), 2), u = c[0], l = c[1], f = function() { @@ -23545,7 +24798,7 @@ }, style: { opacity: 0 } }, - o.a.createElement(ke, null) + o.a.createElement(_e, null) ), o.a.createElement( 'button', @@ -23555,7 +24808,7 @@ onClick: f, style: { opacity: 0 } }, - o.a.createElement(_e, null) + o.a.createElement(me, null) ), o.a.createElement( 'div', @@ -23573,7 +24826,7 @@ position: 'relative' } }, - o.a.createElement(Oe, null) + o.a.createElement(Me, null) ), u ? o.a.createElement( @@ -23598,7 +24851,7 @@ ) ); }), - Te = Object(b.sortableContainer)(function(e) { + Se = Object(b.sortableContainer)(function(e) { var t = e.children; return o.a.createElement( 'div', @@ -23606,13 +24859,13 @@ t ); }), - Ce = function(e) { + Oe = function(e) { var t = e.colors, n = e.onChange, - i = Ae(Object(r.useState)(Se(t)), 2), + i = xe(Object(r.useState)(we(t)), 2), a = i[0], s = i[1], - c = Ae(Object(r.useState)(!1), 2), + c = xe(Object(r.useState)(!1), 2), u = c[0], l = c[1], d = Object(r.useRef)(), @@ -23630,18 +24883,18 @@ [a] ); var h = function(e) { - var t = Se(a); + var t = we(a); t.splice(e, 1), s(t); }, g = function(e, t) { - var n = Se(a); + var n = we(a); (n[t] = e), s(n); }; return o.a.createElement( 'div', { className: 'color-palette' }, o.a.createElement( - Te, + Se, { onSortEnd: function(e) { var t = e.oldIndex, @@ -23654,7 +24907,7 @@ helperClass: 'color-palette__item-drag' }, a.map(function(e, t) { - return o.a.createElement(Ee, { + return o.a.createElement(ke, { key: 'color-'.concat(t), index: t, value: e, @@ -23670,7 +24923,7 @@ className: 'btn-list btn', type: 'button', onClick: function() { - var e = [].concat(Se(a), ['#222222']); + var e = [].concat(we(a), ['#222222']); s(e), l(!0); } }, @@ -23678,10 +24931,10 @@ ) ); }, - Le = Ce; - (Ce.propTypes = { colors: a.a.array, onChange: a.a.func }), - (Ce.defaultProps = { colors: [], onChange: function() {} }); - var Pe = function(e) { + Ee = Oe; + (Oe.propTypes = { colors: a.a.array, onChange: a.a.func }), + (Oe.defaultProps = { colors: [], onChange: function() {} }); + var Ae = function(e) { var t = e.items, n = e.singleChoice, r = e.groupName, @@ -23742,8 +24995,8 @@ ) ); }, - De = Pe; - (Pe.propTypes = { + Te = Ae; + (Ae.propTypes = { items: a.a.arrayOf( a.a.shape({ label: a.a.oneOfType([a.a.string, a.a.object]), @@ -23759,14 +25012,14 @@ title: a.a.string, onChange: a.a.func.isRequired }), - (Pe.defaultProps = { + (Ae.defaultProps = { items: [], singleChoice: !1, activeItem: [], onChange: function() {} }); - var ze = n(90); - function Ne(e, t) { + var Ce = n(90); + function Le(e, t) { return ( (function(e) { if (Array.isArray(e)) return e; @@ -23801,15 +25054,15 @@ })() ); } - var je = function(e) { + var Pe = function(e) { var t = e.title, n = e.initialColor, i = e.defaultColor, a = e.onChange, - s = Ne(Object(r.useState)({ hex: '#222222' }), 2), + s = Le(Object(r.useState)({ hex: '#222222' }), 2), c = s[0], u = s[1], - l = Ne(Object(r.useState)(!1), 2), + l = Le(Object(r.useState)(!1), 2), f = l[0], d = l[1]; Object(r.useEffect)(function() { @@ -23856,10 +25109,10 @@ style: p.color }) ), - o.a.createElement(ze.EditableInput, { + o.a.createElement(Ce.EditableInput, { style: p, label: 'hex', - value: c.hex === pe ? 'AUTO' : c.hex, + value: c.hex === ue ? 'AUTO' : c.hex, onChange: g }), f @@ -23879,7 +25132,7 @@ { className: 'btn btn__small btn-reset', onClick: function() { - g({ hex: i || pe }); + g({ hex: i || ue }); } }, 'Auto' @@ -23899,23 +25152,23 @@ ) ); }, - Re = Object(_.CustomPicker)(je); - (je.defaultProps = { title: '', onChange: function() {} }), - (je.propTypes = { + De = Object(_.CustomPicker)(Pe); + (Pe.defaultProps = { title: '', onChange: function() {} }), + (Pe.propTypes = { title: a.a.string, initialColor: a.a.string, onChange: a.a.func.isRequired }); - var Ie = n(91), - Fe = n.n(Ie), - qe = function(e) { + var je = n(91), + ze = n.n(je), + Ne = function(e) { var t, n = e.family, r = e.fonts, i = e.title, a = e.onChange; n && - (Fe.a.load({ google: { families: [n] } }), + (ze.a.load({ google: { families: [n] } }), (t = { label: n, value: n })); var s = [Y]; return ( @@ -23942,8 +25195,8 @@ ) ); }, - Be = qe; - function He(e, t, n) { + Re = Ne; + function Ie(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { @@ -23956,18 +25209,18 @@ e ); } - (qe.defaultProps = { + (Ne.defaultProps = { title: '', fonts: [], onChange: function() {} }), - (qe.propTypes = { + (Ne.propTypes = { title: a.a.string.isRequired, family: a.a.string, fonts: a.a.array, onChange: a.a.func.isRequired }); - var Ye = function(e) { + var Fe = function(e) { var t = e.isOpen, n = e.label, r = e.children, @@ -24010,19 +25263,19 @@ ) ); }; - (Ye.propTypes = { + (Fe.propTypes = { isOpen: a.a.bool, label: a.a.string, children: a.a.oneOfType([a.a.array, a.a.object]), onClick: a.a.func }), - (Ye.defaultProps = { + (Fe.defaultProps = { isOpen: !1, label: '', onClick: function() {}, children: [] }); - var We = function(e) { + var qe = function(e) { var t = e.children, n = e.allowMultipleOpen, i = (function(e, t) { @@ -24083,12 +25336,12 @@ ) )), r.forEach(function(t) { - He(e, t, n[t]); + Ie(e, t, n[t]); }); } return e; - })({}, a, He({}, e, !t)) - : He({}, e, !t); + })({}, a, Ie({}, e, !t)) + : Ie({}, e, !t); s(r); }; return o.a.createElement( @@ -24098,7 +25351,7 @@ return ( e && o.a.createElement( - Ye, + Fe, { key: e.props.label, isOpen: !!a[e.props.label], @@ -24111,14 +25364,14 @@ }) ); }, - Ve = We; - (We.defaultProps = { allowMultipleOpen: !1 }), - (We.propTypes = { + Be = qe; + (qe.defaultProps = { allowMultipleOpen: !1 }), + (qe.propTypes = { allowMultipleOpen: a.a.bool, children: a.a.array.isRequired }); - var Ue, - Xe = function(e) { + var He, + Ye = function(e) { var t = e.text, n = t.title, r = void 0 === n ? '' : n, @@ -24178,8 +25431,8 @@ ) ); }, - Ge = Xe; - function Ke(e, t, n) { + We = Ye; + function Ve(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { @@ -24192,8 +25445,8 @@ e ); } - function $e() { - return ($e = + function Ue() { + return (Ue = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { @@ -24205,8 +25458,8 @@ return e; }).apply(this, arguments); } - (Xe.defaultProps = { text: {}, onChange: function() {} }), - (Xe.propTypes = { + (Ye.defaultProps = { text: {}, onChange: function() {} }), + (Ye.propTypes = { text: a.a.shape({ title: a.a.string, on: a.a.string, @@ -24215,7 +25468,7 @@ checked: a.a.bool.isRequired, onChange: a.a.func.isRequired }); - var Qe = function(e) { + var Xe = function(e) { var t = e.name, n = e.type, i = e.placeholder, @@ -24324,7 +25577,7 @@ ), o.a.createElement( 'input', - $e( + Ue( { name: t, type: n, @@ -24342,11 +25595,11 @@ l && o.a.createElement('p', null, l) ); }, - Je = Qe; - (Qe.defaultProps = { type: 'text', className: '' }), - (Qe.propTypes = - (Ke( - (Ue = { + Ge = Xe; + (Xe.defaultProps = { type: 'text', className: '' }), + (Xe.propTypes = + (Ve( + (He = { name: a.a.string.isRequired, type: a.a.string, label: a.a.string, @@ -24355,19 +25608,19 @@ 'type', a.a.oneOf(['text', 'number', 'password', 'email']) ), - Ke(Ue, 'className', a.a.string), - Ke(Ue, 'value', a.a.any), - Ke(Ue, 'onChange', a.a.func.isRequired), - Ue)); - var Ze = n(35), + Ve(He, 'className', a.a.string), + Ve(He, 'value', a.a.any), + Ve(He, 'onChange', a.a.func.isRequired), + He)); + var Ke = n(35), + $e = n.n(Ke), + Qe = n(92), + Je = n.n(Qe), + Ze = n(93), et = n.n(Ze), - tt = n(92), - nt = n.n(tt), - rt = n(93), - ot = n.n(rt), - it = (n(229), n(94)); - function at(e) { - return (at = + tt = (n(229), n(94)); + function nt(e) { + return (nt = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { @@ -24382,7 +25635,7 @@ : typeof e; })(e); } - function st() { + function rt() { var e = (function(e, t) { return ( t || (t = e.slice(0)), @@ -24505,13 +25758,13 @@ '\n }\n ' ]); return ( - (st = function() { + (rt = function() { return e; }), e ); } - function ct(e, t) { + function ot(e, t) { if (null == e) return {}; var n, r, @@ -24535,22 +25788,22 @@ } return o; } - function ut(e) { + function it(e) { var t = (function(e, t) { - if ('object' !== at(e) || null === e) return e; + if ('object' !== nt(e) || null === e) return e; var n = e[Symbol.toPrimitive]; if (void 0 !== n) { var r = n.call(e, t); - if ('object' !== at(r)) return r; + if ('object' !== nt(r)) return r; throw new TypeError( '@@toPrimitive must return a primitive value.' ); } return String(e); })(e, 'string'); - return 'symbol' === at(t) ? t : String(t); + return 'symbol' === nt(t) ? t : String(t); } - function lt(e) { + function at(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}, r = Object.keys(n); @@ -24561,12 +25814,12 @@ }) )), r.forEach(function(t) { - ft(e, t, n[t]); + st(e, t, n[t]); }); } return e; } - function ft(e, t, n) { + function st(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { @@ -24579,7 +25832,7 @@ e ); } - function dt(e) { + function ct(e) { return { chartBackground: e.appearance_background ? 'background-color: '.concat(e.appearance_background, ';') @@ -24791,7 +26044,7 @@ ? 'background-color: '.concat(e.tooltip_background, ';') : '', tooltipBorder: - e.tooltip_border && e.tooltip_border !== pe + e.tooltip_border && e.tooltip_border !== ue ? 'border-color: '.concat(e.tooltip_border, ';') : '', tableHeaderFont: e.table_header_font_family @@ -24864,12 +26117,12 @@ : '' }; } - function pt(e) { + function ut(e) { var t = {}, - n = oe.map(function(e) { + n = Z.map(function(e) { return e.value; }), - r = ie.map(function(e) { + r = ee.map(function(e) { return e.value; }); if ( @@ -24894,13 +26147,13 @@ } return ( 'auto' !== e.axis_horizontal_font_size && - u()(t, 'x.height', 60), + u()(t, 'x.height', ce), 'auto' !== e.axis_vertical_font_size && - u()(t, 'y.height', 60), + u()(t, 'y.height', ce), t ); } - function ht() { + function lt() { for ( var e = arguments.length > 0 && void 0 !== arguments[0] @@ -24914,18 +26167,18 @@ ) n[r - 1] = arguments[r]; if (Array.isArray(n)) { - var o = lt({}, e); + var o = at({}, e); return ( n.forEach(function(e) { var t = o, - n = (t[e], ct(t, [e].map(ut))); - o = lt({}, n); + n = (t[e], ot(t, [e].map(it))); + o = at({}, n); }), o ); } } - function gt(e) { + function ft(e) { for ( var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), @@ -24936,17 +26189,17 @@ n[r - 1] = arguments[r]; if (Array.isArray(n)) { if (n.length > 1) { - var o = lt({}, e); + var o = at({}, e); return ( n.forEach(function(e) { - o = lt({}, gt(o, e)); + o = at({}, ft(o, e)); }), o ); } switch (n[0]) { case 'axis': - return ht( + return lt( e, 'axis_vertical_title_show', 'axis_vertical_title_text', @@ -24978,7 +26231,7 @@ 'axis_horizontal_label_font_italic' ); case 'legend': - return ht( + return lt( e, 'legend_show', 'legend_color', @@ -24991,7 +26244,7 @@ 'legend_position_vertical' ); case 'grid': - return ht( + return lt( e, 'grid_show', 'grid_lines_color', @@ -25001,7 +26254,7 @@ 'subgrid_lines_count' ); case 'series': - return ht( + return lt( e, 'series_label_show', 'series_label_textAlign', @@ -25016,7 +26269,7 @@ 'series_points_size' ); case 'tooltip': - return ht( + return lt( e, 'tooltip_color', 'tooltip_font_family', @@ -25027,7 +26280,7 @@ 'tooltip_border' ); case 'table': - return ht( + return lt( e, 'table_pagination_show', 'table_pagination_limit', @@ -25049,7 +26302,7 @@ 'table_body_row_hover_background' ); case 'funnel': - return ht( + return lt( e, 'funnel_lines', 'funnel_results', @@ -25072,12 +26325,12 @@ } } } - function mt(e, t) { - var n = dt(e), + function dt(e, t) { + var n = ct(e), r = t ? '#'.concat(t) : '.keen-theme-builder', o = new RegExp(/(^[ \t]*\n)/, 'gm'); - return Object(it.stripIndent)( - st(), + return Object(tt.stripIndent)( + rt(), r, n.chartBackground, n.chartBorder, @@ -25189,7 +26442,7 @@ n.funnelLabelFontItalic ).replace(o, ''); } - function bt(e, t) { + function pt(e, t) { var n, r = e.colors || [], o = !(!e.title_show || !e.title_text) && e.title_text, @@ -25208,7 +26461,7 @@ alignment: a } : { show: e.legend_show }, - c = pt(e), + c = ut(e), u = e.series_points_show ? { show: e.series_points_show, r: e.series_points_size } : { show: e.series_points_show }, @@ -25253,14 +26506,14 @@ } : {}, y = - 'default' === e.chart || ge.includes(e.chart) + 'default' === e.chart || fe.includes(e.chart) ? { lines: e.funnel_lines, resultValues: e.funnel_results, percents: { show: e.funnel_percents_show, countingMethod: - e.funnel_percents_count || fe[0].value, + e.funnel_percents_count || ae[0].value, decimals: e.funnel_percents_show ? parseInt(e.funnel_percents_decimals) : void 0 @@ -25295,7 +26548,7 @@ stacked: h, table: m }, - _ = ct(v, ['container', 'type']); + _ = ot(v, ['container', 'type']); return t ? _ : 'const chart = new KeenDataviz('.concat( @@ -25303,10 +26556,10 @@ ')' ); } - et.a.registerLanguage('css', nt.a), - et.a.registerLanguage('js', ot.a), + $e.a.registerLanguage('css', Je.a), + $e.a.registerLanguage('js', et.a), (document.createElement('li').className = 'placeholder'); - var yt = function(e) { + var ht = function(e) { var t = e.type, n = e.data, r = @@ -25336,7 +26589,7 @@ (o[n] = e[n])); } })(e, ['type', 'data']), - 'js' === t ? bt(n) : mt(n)); + 'js' === t ? pt(n) : dt(n)); return o.a.createElement( o.a.Fragment, null, @@ -25361,23 +26614,23 @@ 'Copy to Clipboard' ); })(r), - o.a.createElement(et.a, { + o.a.createElement($e.a, { language: t, value: r, className: 'builder__editor' }) ); }, - vt = yt; - (yt.defaultProps = { type: 'js', data: {} }), - (yt.propTypes = { + gt = ht; + (ht.defaultProps = { type: 'js', data: {} }), + (ht.propTypes = { type: a.a.oneOf(['js', 'css']).isRequired, data: a.a.object.isRequired }); - var _t = n(14), - xt = n.n(_t); - function wt() { - return (wt = + var mt = n(14), + bt = n.n(mt); + function yt() { + return (yt = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { @@ -25389,7 +26642,7 @@ return e; }).apply(this, arguments); } - var Mt = function(e) { + var vt = function(e) { var t, n = e.type, r = e.colors, @@ -25409,8 +26662,8 @@ y = e.slider, v = e.simpleTooltip, _ = e.sparkline, - x = e.stacked, - w = e.pagination, + w = e.stacked, + x = e.pagination, M = ((function(e, t) { if (null == e) return {}; @@ -25474,12 +26727,12 @@ return ( 'heatmap' === n && (t = { showSlider: y, simpleTooltip: v }), - 'table' === n && w && (k = { pagination: { limit: w } }), + 'table' === n && x && (k = { pagination: { limit: x } }), 'default' === n ? o.a.createElement( 'div', { className: 'builder__default-charts' }, - o.a.createElement(xt.a, { + o.a.createElement(bt.a, { type: 'bar', title: l, subtitle: f, @@ -25489,10 +26742,10 @@ data: d, point: p, sparkline: _, - stacked: x, + stacked: w, results: H.bar }), - o.a.createElement(xt.a, { + o.a.createElement(bt.a, { type: 'area', title: l, subtitle: f, @@ -25502,10 +26755,10 @@ data: d, point: p, sparkline: _, - stacked: x, + stacked: w, results: H.area }), - o.a.createElement(xt.a, { + o.a.createElement(bt.a, { type: 'funnel-3d', title: l, subtitle: f, @@ -25517,8 +26770,8 @@ results: H['funnel-3d'] }), o.a.createElement( - xt.a, - wt( + bt.a, + yt( { type: 'donut', title: l, @@ -25535,8 +26788,8 @@ ) ) : o.a.createElement( - xt.a, - wt( + bt.a, + yt( { type: n, title: l, @@ -25552,7 +26805,7 @@ choropleth: m, funnel: b, sparkline: _, - stacked: x, + stacked: w, table: k, results: 'choropleth' === n && 'us' === m.map @@ -25564,9 +26817,9 @@ ) ); }, - kt = Mt; - function St(e) { - return (St = + _t = vt; + function wt(e) { + return (wt = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { @@ -25581,7 +26834,7 @@ : typeof e; })(e); } - function At(e) { + function xt(e) { return ( (function(e) { if (Array.isArray(e)) { @@ -25608,7 +26861,7 @@ })() ); } - function Ot(e, t) { + function Mt(e, t) { if (null == e) return {}; var n, r, @@ -25632,7 +26885,7 @@ } return o; } - function Et(e) { + function kt(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}, r = Object.keys(n); @@ -25643,12 +26896,12 @@ }) )), r.forEach(function(t) { - Tt(e, t, n[t]); + St(e, t, n[t]); }); } return e; } - function Tt(e, t, n) { + function St(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { @@ -25661,7 +26914,7 @@ e ); } - function Ct(e, t) { + function Ot(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -25670,28 +26923,28 @@ Object.defineProperty(e, r.key, r); } } - function Lt(e) { - return (Lt = Object.setPrototypeOf + function Et(e) { + return (Et = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function Pt(e, t) { - return (Pt = + function At(e, t) { + return (At = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; })(e, t); } - (Mt.propTypes = { + (vt.propTypes = { type: a.a.string.isRequired, colors: a.a.array.isRequired }), n(232), n(234), n(236); - var Dt = (function(e) { + var Tt = (function(e) { function t(e) { var n; !(function(e, t) { @@ -25700,7 +26953,7 @@ })(this, t), ((n = (function(e, t) { return !t || - ('object' !== St(t) && 'function' != typeof t) + ('object' !== wt(t) && 'function' != typeof t) ? (function(e) { if (void 0 === e) throw new ReferenceError( @@ -25711,7 +26964,7 @@ : t; })( this, - Lt(t).call(this, e) + Et(t).call(this, e) )).handleChartTypeChange = function(e) { e.value && n.setState({ chart: e.value, isModified: !0 }); }), @@ -25733,7 +26986,7 @@ return o.a.createElement( 'div', { className: 'accordion__item__row two-elements' }, - o.a.createElement(Be, { + o.a.createElement(Re, { key: ''.concat(t, '.font'), title: e, family: n.state[''.concat(t, '_font_family')], @@ -25766,11 +27019,11 @@ return o.a.createElement( 'div', { className: s }, - o.a.createElement(Re, { + o.a.createElement(De, { key: t, title: e, initialColor: n.state[''.concat(t, '_color')], - defaultColor: i || Q, + defaultColor: i || Q.title, onChange: function(e) { return n.handleTextStateUpdate( ''.concat(t, '_color'), @@ -25778,7 +27031,7 @@ ); } }), - o.a.createElement(De, { + o.a.createElement(Te, { items: V, singleChoice: !1, groupName: ''.concat(t, '_style'), @@ -25827,12 +27080,12 @@ case 'area-spline': case 'step': case 'area-step': - return lt({}, gt(me, 'table', 'funnel')); + return at({}, ft(de, 'table', 'funnel')); case 'table': - return lt( + return at( {}, - gt( - me, + ft( + de, 'axis', 'legend', 'grid', @@ -25842,10 +27095,10 @@ ) ); case 'metric': - return lt( + return at( {}, - gt( - me, + ft( + de, 'axis', 'legend', 'grid', @@ -25858,22 +27111,22 @@ case 'pie': case 'donut': case 'gauge': - return lt( + return at( {}, - gt(me, 'axis', 'grid', 'table', 'funnel'), + ft(de, 'axis', 'grid', 'table', 'funnel'), { series_label_show: !0 } ); case 'gauge': - return lt( + return at( {}, - gt(me, 'axis', 'grid', 'legend', 'table', 'funnel') + ft(de, 'axis', 'grid', 'legend', 'table', 'funnel') ); case 'heatmap': case 'choropleth': - return lt( + return at( {}, - gt( - me, + ft( + de, 'axis', 'series', 'legend', @@ -25886,10 +27139,10 @@ case 'funnel-3d': case 'horizontal-funnel': case 'horizontal-funnel-3d': - return lt( + return at( {}, - gt( - me, + ft( + de, 'series', 'legend', 'grid', @@ -25899,11 +27152,11 @@ ) ); default: - return lt({}, me); + return at({}, de); } })(void 0 === r ? '' : r); return ( - (n.state = Et({}, i, e.options, { isModified: !1 })), n + (n.state = kt({}, i, e.options, { isModified: !1 })), n ); } var n, r; @@ -25916,7 +27169,7 @@ (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } })), - t && Pt(e, t); + t && At(e, t); })(t, e), (n = t), (r = [ @@ -25949,19 +27202,19 @@ var n = this; f()(e, this.props) || this.setState(function(e) { - return Et({}, e, n.props.options); + return kt({}, e, n.props.options); }); var r = this.state, o = (r.fonts, r.isModified), - i = Ot(r, ['fonts', 'isModified']), + i = Mt(r, ['fonts', 'isModified']), a = (t.fonts, t.isModified, - Ot(t, ['fonts', 'isModified'])), + Mt(t, ['fonts', 'isModified'])), s = this.props, c = s.isDashboardBuilderActive, u = (s.containerId, s.onChange), - l = c ? { theme: i, options: bt(i, !0) } : i; + l = c ? { theme: i, options: pt(i, !0) } : i; o && !f()(i, a) && u && this.props.onChange(l); } }, @@ -25981,7 +27234,7 @@ value: function() { this.setState(function(e) { return { - colors: [].concat(At(e.colors), ['#222222']), + colors: [].concat(xt(e.colors), ['#222222']), isModified: !0 }; }); @@ -25991,7 +27244,7 @@ key: 'removeItem', value: function(e) { this.setState(function(t) { - var n = At(t.colors); + var n = xt(t.colors); return n.splice(e, 1), { colors: n, isModified: !0 }; }); } @@ -26000,7 +27253,7 @@ key: 'onColorChange', value: function(e, t) { this.setState(function(n) { - var r = At(n.colors); + var r = xt(n.colors); return (r[t] = e), { colors: r, isModified: !0 }; }); } @@ -26034,10 +27287,10 @@ key: 'handleTextStateUpdate', value: function(e, t) { this.setState(function(n) { - return Et( + return kt( {}, n, - Tt({ isModified: !0 }, e, t !== pe ? t : '') + St({ isModified: !0 }, e, t !== ue ? t : '') ); }); } @@ -26054,7 +27307,7 @@ o.a.createElement( 'div', { className: 'accordion__item__row' }, - o.a.createElement(Je, { + o.a.createElement(Ge, { key: 'title', type: 'text', name: 'title', @@ -26081,7 +27334,7 @@ o.a.createElement( 'div', { className: 'accordion__item__row' }, - o.a.createElement(Je, { + o.a.createElement(Ge, { key: 'subtitle', type: 'text', name: 'subtitle', @@ -26099,7 +27352,7 @@ 'Subtitle format', 'subtitle', !0, - J + Q.subtitle ) ); } @@ -26114,7 +27367,7 @@ o.a.createElement( 'div', { className: 'accordion__item__row' }, - o.a.createElement(Je, { + o.a.createElement(Ge, { key: 'vertical-axis-title', type: 'text', name: 'vertical-axis-title', @@ -26136,11 +27389,11 @@ { className: 'accordion__item__row three-elements' }, - o.a.createElement(Re, { + o.a.createElement(De, { title: 'Title format', initialColor: this.state .axis_vertical_title_color, - defaultColor: Q, + defaultColor: Q.title, onChange: function(t) { return e.handleTextStateUpdate( 'axis_vertical_title_color', @@ -26148,7 +27401,7 @@ ); } }), - o.a.createElement(De, { + o.a.createElement(Te, { items: V, singleChoice: !1, groupName: 'verticalAxisTitleStyle', @@ -26213,7 +27466,7 @@ o.a.createElement( 'div', { className: 'accordion__item__row' }, - o.a.createElement(Je, { + o.a.createElement(Ge, { key: 'horizontal-axis-title', type: 'text', name: 'horizontal-axis-title', @@ -26267,12 +27520,12 @@ o.a.createElement( 'div', { className: 'accordion__item__row' }, - o.a.createElement(De, { - items: re, + o.a.createElement(Te, { + items: J, singleChoice: !0, groupName: 'legendLayout', title: 'Layout', - activeItem: re.find(function(t) { + activeItem: J.find(function(t) { return t.value === e.state.legend_layout; }), onChange: function(t) { @@ -26287,12 +27540,12 @@ 'div', { className: 'accordion__item__row' }, ('top' === t || 'bottom' === t) && - o.a.createElement(De, { - items: ie, + o.a.createElement(Te, { + items: ee, singleChoice: !0, groupName: 'legendPositionHorizontal', title: 'Alignment', - activeItem: ie.find(function(t) { + activeItem: ee.find(function(t) { return ( t.value === e.state.legend_position_horizontal @@ -26306,12 +27559,12 @@ } }), ('left' === t || 'right' === t) && - o.a.createElement(De, { - items: oe, + o.a.createElement(Te, { + items: Z, singleChoice: !0, groupName: 'legendPositionVertical', title: 'Alignment', - activeItem: oe.find(function(t) { + activeItem: Z.find(function(t) { return ( t.value === e.state.legend_position_vertical ); @@ -26336,10 +27589,10 @@ return o.a.createElement( 'div', { className: 'accordion__item__row two-elements' }, - o.a.createElement(Re, { + o.a.createElement(De, { title: 'Lines color', initialColor: this.state.grid_lines_color, - defaultColor: Z, + defaultColor: Q.border, onChange: function(t) { return e.handleTextStateUpdate( 'grid_lines_color', @@ -26356,8 +27609,8 @@ 'Count' ), o.a.createElement(h.a, { - defaultValue: ae[0], - options: ae, + defaultValue: te[0], + options: te, onChange: function(t) { return e.handleTextStateUpdate( 'grid_count', @@ -26377,10 +27630,10 @@ return o.a.createElement( 'div', { className: 'accordion__item__row two-elements' }, - o.a.createElement(Re, { + o.a.createElement(De, { title: 'Lines color', initialColor: this.state.subgrid_lines_color, - defaultColor: Z, + defaultColor: Q.border, onChange: function(t) { return e.handleTextStateUpdate( 'subgrid_lines_color', @@ -26397,8 +27650,8 @@ 'Count' ), o.a.createElement(h.a, { - defaultValue: ae[0], - options: ae, + defaultValue: te[0], + options: te, onChange: function(t) { return e.handleTextStateUpdate( 'subgrid_count', @@ -26430,7 +27683,7 @@ key: 'renderSeriesSection', value: function() { var e = this, - t = se.find(function(t) { + t = ne.find(function(t) { return t.value === e.state.series_line; }); return o.a.createElement( @@ -26445,8 +27698,8 @@ 'Line thickness' ), o.a.createElement(h.a, { - defaultValue: t || se[0], - options: se, + defaultValue: t || ne[0], + options: ne, onChange: function(t) { return e.handleTextStateUpdate( 'series_line', @@ -26463,7 +27716,7 @@ key: 'renderSeriesPointsSection', value: function() { var e = this, - t = ce.find(function(t) { + t = re.find(function(t) { return t.value === e.state.series_points_size; }); return o.a.createElement( @@ -26478,8 +27731,8 @@ 'Points size' ), o.a.createElement(h.a, { - defaultValue: t || ce[0], - options: ce, + defaultValue: t || re[0], + options: re, onChange: function(t) { return e.handleTextStateUpdate( 'series_points_size', @@ -26499,7 +27752,7 @@ return o.a.createElement( 'div', { className: 'keen-theme-builder__row two-elements' }, - o.a.createElement(Je, { + o.a.createElement(Ge, { key: 'metric-prefix', type: 'text', label: 'Prefix', @@ -26512,7 +27765,7 @@ ); } }), - o.a.createElement(Je, { + o.a.createElement(Ge, { key: 'metric-suffix', type: 'text', label: 'Suffix', @@ -26546,7 +27799,7 @@ : o.a.createElement( 'div', { className: 'accordion__item__row' }, - o.a.createElement(Be, { + o.a.createElement(Re, { title: 'Font', family: this.state.appearance_font_family, fonts: this.state.fonts, @@ -26563,7 +27816,7 @@ { key: 'generateHoverColor', value: function(e) { - if (!e.hsl) return ne; + if (!e.hsl) return Q.rowHover; var t = e.hsl, n = t.h, r = t.s, @@ -26609,7 +27862,7 @@ key: 'renderChoroplethMapDropdown', value: function() { var e = this, - t = le.find(function(t) { + t = ie.find(function(t) { return t.value === e.state.choropleth_map; }); return o.a.createElement( @@ -26621,8 +27874,8 @@ 'Map' ), o.a.createElement(h.a, { - defaultValue: t || le[0], - options: le, + defaultValue: t || ie[0], + options: ie, onChange: function(t) { return e.handleTextStateUpdate( 'choropleth_map', @@ -26638,7 +27891,7 @@ key: 'renderMapBorderSettings', value: function() { var e = this, - t = se.find(function(t) { + t = ne.find(function(t) { return t.value === e.state.choropleth_border_size; }); return o.a.createElement( @@ -26653,8 +27906,8 @@ 'Border size' ), o.a.createElement(h.a, { - defaultValue: t || se[0], - options: se, + defaultValue: t || ne[0], + options: ne, onChange: function(t) { return e.handleTextStateUpdate( 'choropleth_border_size', @@ -26668,10 +27921,10 @@ o.a.createElement( 'div', { className: 'accordion__item__row' }, - o.a.createElement(Re, { + o.a.createElement(De, { title: 'Chart border', initialColor: this.state.choropleth_border_color, - defaultColor: Z, + defaultColor: Q.border, onChange: function(t) { return e.handleStateChange( 'choropleth_border_color', @@ -26691,7 +27944,7 @@ o.a.Fragment, null, o.a.createElement( - Ge, + We, { checked: !!this.state.choropleth_border_show, onChange: function() { @@ -26717,7 +27970,7 @@ key: 'renderFunnelPercentsSection', value: function() { var e = this, - t = fe.find(function(t) { + t = ae.find(function(t) { return t.value === e.state.funnel_percents_count; }); return o.a.createElement( @@ -26732,8 +27985,8 @@ 'Counting method' ), o.a.createElement(h.a, { - defaultValue: t || fe[0], - options: fe, + defaultValue: t || ae[0], + options: ae, onChange: function(t) { return e.handleTextStateUpdate( 'funnel_percents_count', @@ -26747,7 +28000,7 @@ o.a.createElement( 'div', { className: 'accordion__item__row' }, - o.a.createElement(Je, { + o.a.createElement(Ge, { key: 'funnel-percents-decimals', type: 'text', label: 'Decimals', @@ -26769,7 +28022,7 @@ key: 'renderFunnel3dOptions', value: function() { var e = this, - t = de.find(function(t) { + t = se.find(function(t) { return t.value === e.state.funnel_effect3d; }); return o.a.createElement( @@ -26781,8 +28034,8 @@ '3d effect' ), o.a.createElement(h.a, { - defaultValue: t || de[0], - options: de, + defaultValue: t || se[0], + options: se, onChange: function(t) { return e.handleTextStateUpdate( 'funnel_effect3d', @@ -26816,9 +28069,9 @@ case 'area-spline': case 'step': case 'area-step': - return lt({}, he, { table: !1, funnel: !1 }); + return at({}, le, { table: !1, funnel: !1 }); case 'table': - return lt({}, he, { + return at({}, le, { axis: !1, legend: !1, gridline: !1, @@ -26827,7 +28080,7 @@ funnel: !1 }); case 'metric': - return lt({}, he, { + return at({}, le, { axis: !1, legend: !1, gridline: !1, @@ -26838,14 +28091,14 @@ }); case 'pie': case 'donut': - return lt({}, he, { + return at({}, le, { axis: !1, gridline: !1, table: !1, funnel: !1 }); case 'gauge': - return lt({}, he, { + return at({}, le, { axis: !1, gridline: !1, legend: !1, @@ -26854,7 +28107,7 @@ }); case 'heatmap': case 'choropleth': - return lt({}, he, { + return at({}, le, { axis: !1, series: !1, legend: !1, @@ -26866,7 +28119,7 @@ case 'funnel-3d': case 'horizontal-funnel': case 'horizontal-funnel-3d': - return lt({}, he, { + return at({}, le, { axis: !1, series: !1, legend: !1, @@ -26875,7 +28128,7 @@ table: !1 }); default: - return he; + return le; } })(r), a = $.find(function(t) { @@ -26895,7 +28148,7 @@ this.renderChoroplethMapDropdown(), ('heatmap' === r || 'choropleth' === r) && o.a.createElement( - Ge, + We, { checked: !!this.state.chart_slider_show, onChange: function() { @@ -26913,14 +28166,14 @@ ) ), o.a.createElement( - Ve, + Be, null, i.appearance && o.a.createElement( 'div', { label: 'Appearance' }, o.a.createElement( - Ge, + We, { checked: !!this.state.appearance_sparkline, onChange: function() { @@ -26939,11 +28192,11 @@ o.a.createElement( 'div', { className: 'accordion__item__row' }, - o.a.createElement(Re, { + o.a.createElement(De, { title: 'Chart background', initialColor: this.state .appearance_background, - defaultColor: ee, + defaultColor: Q.background, onChange: function(t) { return e.handleStateChange( 'appearance_background', @@ -26955,10 +28208,10 @@ o.a.createElement( 'div', { className: 'accordion__item__row' }, - o.a.createElement(Re, { + o.a.createElement(De, { title: 'Chart border', initialColor: this.state.appearance_border, - defaultColor: Z, + defaultColor: Q.border, onChange: function(t) { return e.handleStateChange( 'appearance_border', @@ -26986,7 +28239,7 @@ classNamePrefix: 'custom-dropdown' }) ), - o.a.createElement(Le, { + o.a.createElement(Ee, { colors: this.state.colors, onChange: this.handleColorsChange }) @@ -26996,7 +28249,7 @@ 'div', { label: 'Title & Subtitle' }, o.a.createElement( - Ge, + We, { checked: !!this.state.title_show, onChange: function() { @@ -27016,7 +28269,7 @@ this.state.title_show && this.renderTitleSection(), o.a.createElement( - Ge, + We, { checked: !!this.state.subtitle_show, onChange: function() { @@ -27042,7 +28295,7 @@ { label: 'Vertical axis' }, 'default' !== r && o.a.createElement( - Ge, + We, { checked: !!this.state .axis_vertical_title_show, @@ -27063,7 +28316,7 @@ this.state.axis_vertical_title_show && this.renderVerticalAxisTitleSection(), o.a.createElement( - Ge, + We, { checked: !!this.state .axis_vertical_label_show, @@ -27089,7 +28342,7 @@ { label: 'Horizontal axis' }, 'default' !== r && o.a.createElement( - Ge, + We, { checked: !!this.state .axis_horizontal_title_show, @@ -27110,7 +28363,7 @@ this.state.axis_horizontal_title_show && this.renderHorizontalAxisTitleSection(), o.a.createElement( - Ge, + We, { checked: !!this.state .axis_horizontal_label_show, @@ -27135,7 +28388,7 @@ 'div', { label: 'Legend' }, o.a.createElement( - Ge, + We, { checked: !!this.state.legend_show, onChange: function() { @@ -27159,7 +28412,7 @@ 'div', { label: 'Gridline' }, o.a.createElement( - Ge, + We, { checked: !!this.state.grid_show, onChange: function() { @@ -27178,7 +28431,7 @@ this.state.grid_show && this.renderGridSection(), o.a.createElement( - Ge, + We, { className: 'disabled', checked: !!this.state.subgrid_show, @@ -27204,7 +28457,7 @@ { label: 'Series' }, this.renderSeriesSection(), o.a.createElement( - Ge, + We, { checked: !!this.state.series_points_show, onChange: function() { @@ -27224,7 +28477,7 @@ this.state.series_points_show && this.renderSeriesPointsSection(), o.a.createElement( - Ge, + We, { checked: !!this.state.series_label_show, onChange: function() { @@ -27243,12 +28496,12 @@ ), this.state.series_label_show && this.renderSeriesLabelsSection(), - o.a.createElement(De, { - items: ue, + o.a.createElement(Te, { + items: oe, singleChoice: !0, groupName: 'stacked', title: 'Stacked', - activeItem: ue.find(function(t) { + activeItem: oe.find(function(t) { return t.value === e.state.series_stacked; }), onChange: function(t) { @@ -27272,11 +28525,11 @@ o.a.createElement( 'div', { className: 'accordion__item__row' }, - o.a.createElement(Re, { + o.a.createElement(De, { key: 'tooltip_background', title: 'Tooltip background', initialColor: this.state.tooltip_background, - defaultColor: ee, + defaultColor: Q.background, onChange: function(t) { return e.handleTextStateUpdate( 'tooltip_background', @@ -27288,7 +28541,7 @@ o.a.createElement( 'div', { className: 'accordion__item__row' }, - o.a.createElement(Re, { + o.a.createElement(De, { key: 'tooltip_border', title: 'Tooltip border', initialColor: this.state.tooltip_border, @@ -27302,7 +28555,7 @@ ), 'heatmap' === this.state.chart && o.a.createElement( - Ge, + We, { checked: !!this.state .tooltip_simpleTooltip, @@ -27325,7 +28578,7 @@ 'div', { label: 'Table' }, o.a.createElement( - Ge, + We, { checked: !!this.state.table_pagination_show, onChange: function() { @@ -27346,7 +28599,7 @@ o.a.createElement( 'div', { className: 'accordion__item__row' }, - o.a.createElement(Je, { + o.a.createElement(Ge, { key: 'table-pagination', type: 'text', label: 'Pagination limit', @@ -27362,7 +28615,7 @@ }) ), o.a.createElement( - Ge, + We, { checked: !!this.state.table_header_show, onChange: function() { @@ -27394,7 +28647,7 @@ ) ), o.a.createElement( - Ge, + We, { checked: !!this.state.table_body_show, onChange: function() { @@ -27427,11 +28680,11 @@ o.a.createElement( 'div', { className: 'accordion__item__row' }, - o.a.createElement(Re, { + o.a.createElement(De, { title: 'Alternate row background', initialColor: this.state .table_body_row_alternate_color, - defaultColor: te, + defaultColor: Q.row, onChange: function(t) { e.handleTextStateUpdate( 'table_body_row_alternate_color', @@ -27461,7 +28714,7 @@ !1 ), o.a.createElement( - Ge, + We, { checked: !!this.state.funnel_lines, onChange: function() { @@ -27479,7 +28732,7 @@ ) ), o.a.createElement( - Ge, + We, { checked: !!this.state.funnel_results, onChange: function() { @@ -27497,7 +28750,7 @@ ) ), o.a.createElement( - Ge, + We, { checked: !!this.state.funnel_percents_show, onChange: function() { @@ -27517,7 +28770,7 @@ this.state.funnel_percents_show && this.renderFunnelPercentsSection(), o.a.createElement( - Ge, + We, { checked: !!this.state.funnel_hover, onChange: function() { @@ -27535,7 +28788,7 @@ ) ), o.a.createElement( - Ge, + We, { checked: !!this.state.funnel_margin, onChange: function() { @@ -27555,7 +28808,7 @@ o.a.createElement( 'div', { className: 'accordion__item__row' }, - o.a.createElement(Je, { + o.a.createElement(Ge, { key: 'funnel-minimal-size', type: 'number', label: 'Minimal size', @@ -27581,7 +28834,7 @@ { key: 'renderTabChart', value: function() { - var e = dt(this.state), + var e = ct(this.state), t = !( !this.state.title_show || !this.state.title_text @@ -27629,7 +28882,7 @@ : void 0, p = 'default' === this.state.chart || - ge.includes(this.state.chart) + fe.includes(this.state.chart) ? { lines: this.state.funnel_lines, resultValues: this.state.funnel_results, @@ -27649,13 +28902,13 @@ return o.a.createElement( o.a.Fragment, null, - o.a.createElement(kt, { + o.a.createElement(_t, { type: this.state.chart, colors: this.state.colors, legend: i, title: t, subtitle: n, - axis: pt(this.state), + axis: ut(this.state), data: a, point: s, prefix: c, @@ -27900,7 +29153,7 @@ o.a.createElement( d.TabPanel, null, - o.a.createElement(vt, { + o.a.createElement(gt, { data: this.state, type: 'css' }) @@ -27908,7 +29161,7 @@ o.a.createElement( d.TabPanel, null, - o.a.createElement(vt, { + o.a.createElement(gt, { data: this.state, type: 'js' }) @@ -27932,72 +29185,46 @@ ); } } - ]) && Ct(n.prototype, r), + ]) && Ot(n.prototype, r), t ); })(r.PureComponent); - (Dt.propTypes = { + (Tt.propTypes = { options: a.a.object.isRequired, isDashboardBuilderActive: a.a.bool, onChange: a.a.func.isRequired }), - (Dt.defaultProps = { - options: me, + (Tt.defaultProps = { + options: de, isDashboardBuilderActive: !1, onChange: function() {} }), n.d(t, 'getStyles', function() { - return zt; + return Ct; }), - (t.default = Dt); - var zt = function(e, t) { - return mt(e, t); + (t.default = Tt); + var Ct = function(e, t) { + return dt(e, t); }; } ]))); }, function(e, t, n) { 'use strict'; - n.r(t), - n.d(t, 'Tabs', function() { - return S; - }), - n.d(t, 'TabList', function() { - return O; - }), - n.d(t, 'Tab', function() { - return T; - }), - n.d(t, 'TabPanel', function() { - return L; - }), - n.d(t, 'resetIdCounter', function() { - return y; - }); + n.r(t); n(1); var r = n(0), o = n.n(r); function i(e) { - return function(t) { - return !!t.type && t.type.tabsRole === e; - }; + return e.type && 'Tab' === e.type.tabsRole; } - var a = i('Tab'), - s = i('TabList'), - c = i('TabPanel'); - function u(e, t) { - var n = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var r = Object.getOwnPropertySymbols(e); - t && - (r = r.filter(function(t) { - return Object.getOwnPropertyDescriptor(e, t).enumerable; - })), - n.push.apply(n, r); - } - return n; + function a(e) { + return e.type && 'TabPanel' === e.type.tabsRole; } - function l(e, t, n) { + function s(e) { + return e.type && 'TabList' === e.type.tabsRole; + } + function c(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { @@ -28010,12 +29237,12 @@ e ); } - function f(e, t) { + function u(e, t) { return r.Children.map(e, function(e) { return null === e ? null : (function(e) { - return a(e) || s(e) || c(e); + return i(e) || s(e) || a(e); })(e) ? t(e) : e.props && e.props.children && 'object' == typeof e.props.children @@ -28023,62 +29250,59 @@ e, (function(e) { for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}; - t % 2 - ? u(Object(n), !0).forEach(function(t) { - l(e, t, n[t]); + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + 'function' == typeof Object.getOwnPropertySymbols && + (r = r.concat( + Object.getOwnPropertySymbols(n).filter(function(e) { + return Object.getOwnPropertyDescriptor( + n, + e + ).enumerable; }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties( - e, - Object.getOwnPropertyDescriptors(n) - ) - : u(Object(n)).forEach(function(t) { - Object.defineProperty( - e, - t, - Object.getOwnPropertyDescriptor(n, t) - ); - }); + )), + r.forEach(function(t) { + c(e, t, n[t]); + }); } return e; - })({}, e.props, { children: f(e.props.children, t) }) + })({}, e.props, { children: u(e.props.children, t) }) ) : e; }); } - function d(e, t) { + function l(e, t) { return r.Children.forEach(e, function(e) { null !== e && - (a(e) || c(e) + (i(e) || a(e) ? t(e) : e.props && e.props.children && 'object' == typeof e.props.children && - (s(e) && t(e), d(e.props.children, t))); + (s(e) && t(e), l(e.props.children, t))); }); } - var p, - h = n(13), - g = n.n(h), - m = 0; - function b() { - return 'react-tabs-' + m++; + var f, + d = n(20), + p = n.n(d), + h = 0; + function g() { + return 'react-tabs-' + h++; } - function y() { - m = 0; + function m() { + h = 0; } - function v(e) { + function b(e) { var t = 0; return ( - d(e, function(e) { - a(e) && t++; + l(e, function(e) { + i(e) && t++; }), t ); } - function _() { - return (_ = + function y() { + return (y = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { @@ -28089,63 +29313,58 @@ return e; }).apply(this, arguments); } - function x(e) { + function v(e) { return e && 'getAttribute' in e; } - function w(e) { - return x(e) && 'tab' === e.getAttribute('role'); + function _(e) { + return v(e) && 'tab' === e.getAttribute('role'); } - function M(e) { - return x(e) && 'true' === e.getAttribute('aria-disabled'); + function w(e) { + return v(e) && 'true' === e.getAttribute('aria-disabled'); } try { - p = !( + f = !( 'undefined' == typeof window || !window.document || !window.document.activeElement ); } catch (e) { - p = !1; + f = !1; } - var k = (function(e) { + var x = (function(e) { var t, n; - function i() { + function c() { for (var t, n = arguments.length, r = new Array(n), o = 0; o < n; o++) r[o] = arguments[o]; return ( ((t = e.call.apply(e, [this].concat(r)) || this).tabNodes = []), (t.handleKeyDown = function(e) { - var n = t.props.direction; if (t.isTabFromContainer(e.target)) { - var r = t.props.selectedIndex, - o = !1, - i = !1; + var n = t.props.selectedIndex, + r = !1, + o = !1; (32 !== e.keyCode && 13 !== e.keyCode) || - ((o = !0), (i = !1), t.handleClick(e)), + ((r = !0), (o = !1), t.handleClick(e)), 37 === e.keyCode || 38 === e.keyCode - ? ((r = 'rtl' === n ? t.getNextTab(r) : t.getPrevTab(r)), - (o = !0), - (i = !0)) + ? ((n = t.getPrevTab(n)), (r = !0), (o = !0)) : 39 === e.keyCode || 40 === e.keyCode - ? ((r = 'rtl' === n ? t.getPrevTab(r) : t.getNextTab(r)), - (o = !0), - (i = !0)) + ? ((n = t.getNextTab(n)), (r = !0), (o = !0)) : 35 === e.keyCode - ? ((r = t.getLastTab()), (o = !0), (i = !0)) + ? ((n = t.getLastTab()), (r = !0), (o = !0)) : 36 === e.keyCode && - ((r = t.getFirstTab()), (o = !0), (i = !0)), - o && e.preventDefault(), - i && t.setSelected(r, e); + ((n = t.getFirstTab()), (r = !0), (o = !0)), + r && e.preventDefault(), + o && t.setSelected(n, e); } }), (t.handleClick = function(e) { var n = e.target; do { if (t.isTabFromContainer(n)) { - if (M(n)) return; + if (w(n)) return; var r = [].slice .call(n.parentNode.children) - .filter(w) + .filter(_) .indexOf(n); return void t.setSelected(r, e); } @@ -28155,119 +29374,119 @@ ); } (n = e), - ((t = i).prototype = Object.create(n.prototype)), + ((t = c).prototype = Object.create(n.prototype)), (t.prototype.constructor = t), (t.__proto__ = n); - var u = i.prototype; + var d = c.prototype; return ( - (u.setSelected = function(e, t) { + (d.setSelected = function(e, t) { if (!(e < 0 || e >= this.getTabsCount())) { var n = this.props; (0, n.onSelect)(e, n.selectedIndex, t); } }), - (u.getNextTab = function(e) { + (d.getNextTab = function(e) { for (var t = this.getTabsCount(), n = e + 1; n < t; n++) - if (!M(this.getTab(n))) return n; - for (var r = 0; r < e; r++) if (!M(this.getTab(r))) return r; + if (!w(this.getTab(n))) return n; + for (var r = 0; r < e; r++) if (!w(this.getTab(r))) return r; return e; }), - (u.getPrevTab = function(e) { - for (var t = e; t--; ) if (!M(this.getTab(t))) return t; + (d.getPrevTab = function(e) { + for (var t = e; t--; ) if (!w(this.getTab(t))) return t; for (t = this.getTabsCount(); t-- > e; ) - if (!M(this.getTab(t))) return t; + if (!w(this.getTab(t))) return t; return e; }), - (u.getFirstTab = function() { + (d.getFirstTab = function() { for (var e = this.getTabsCount(), t = 0; t < e; t++) - if (!M(this.getTab(t))) return t; + if (!w(this.getTab(t))) return t; return null; }), - (u.getLastTab = function() { + (d.getLastTab = function() { for (var e = this.getTabsCount(); e--; ) - if (!M(this.getTab(e))) return e; + if (!w(this.getTab(e))) return e; return null; }), - (u.getTabsCount = function() { - return v(this.props.children); + (d.getTabsCount = function() { + return b(this.props.children); }), - (u.getPanelsCount = function() { + (d.getPanelsCount = function() { return (function(e) { var t = 0; return ( - d(e, function(e) { - c(e) && t++; + l(e, function(e) { + a(e) && t++; }), t ); })(this.props.children); }), - (u.getTab = function(e) { + (d.getTab = function(e) { return this.tabNodes['tabs-' + e]; }), - (u.getChildren = function() { + (d.getChildren = function() { var e = this, t = 0, n = this.props, - i = n.children, - u = n.disabledTabClassName, - l = n.focus, - d = n.forceRenderTabPanel, + c = n.children, + l = n.disabledTabClassName, + d = n.focus, + p = n.forceRenderTabPanel, h = n.selectedIndex, - g = n.selectedTabClassName, - m = n.selectedTabPanelClassName; + m = n.selectedTabClassName, + b = n.selectedTabPanelClassName; (this.tabIds = this.tabIds || []), (this.panelIds = this.panelIds || []); for (var y = this.tabIds.length - this.getTabsCount(); y++ < 0; ) - this.tabIds.push(b()), this.panelIds.push(b()); - return f(i, function(n) { - var i = n; + this.tabIds.push(g()), this.panelIds.push(g()); + return u(c, function(n) { + var c = n; if (s(n)) { - var b = 0, + var g = 0, y = !1; - p && + f && (y = o.a.Children.toArray(n.props.children) - .filter(a) + .filter(i) .some(function(t, n) { return document.activeElement === e.getTab(n); })), - (i = Object(r.cloneElement)(n, { - children: f(n.props.children, function(t) { - var n = 'tabs-' + b, - o = h === b, + (c = Object(r.cloneElement)(n, { + children: u(n.props.children, function(t) { + var n = 'tabs-' + g, + o = h === g, i = { tabRef: function(t) { e.tabNodes[n] = t; }, - id: e.tabIds[b], - panelId: e.panelIds[b], + id: e.tabIds[g], + panelId: e.panelIds[g], selected: o, - focus: o && (l || y) + focus: o && (d || y) }; return ( - g && (i.selectedClassName = g), - u && (i.disabledClassName = u), - b++, + m && (i.selectedClassName = m), + l && (i.disabledClassName = l), + g++, Object(r.cloneElement)(t, i) ); }) })); - } else if (c(n)) { + } else if (a(n)) { var v = { id: e.panelIds[t], tabId: e.tabIds[t], selected: h === t }; - d && (v.forceRender = d), - m && (v.selectedClassName = m), + p && (v.forceRender = p), + b && (v.selectedClassName = b), t++, - (i = Object(r.cloneElement)(n, v)); + (c = Object(r.cloneElement)(n, v)); } - return i; + return c; }); }), - (u.isTabFromContainer = function(e) { - if (!w(e)) return !1; + (d.isTabFromContainer = function(e) { + if (!_(e)) return !1; var t = e.parentElement; do { if (t === this.node) return !0; @@ -28276,7 +29495,7 @@ } while (t); return !1; }), - (u.render = function() { + (d.render = function() { var e = this, t = this.props, n = (t.children, t.className), @@ -28311,8 +29530,8 @@ ])); return o.a.createElement( 'div', - _({}, i, { - className: g()(n), + y({}, i, { + className: p()(n), onClick: this.handleClick, onKeyDown: this.handleKeyDown, ref: function(t) { @@ -28323,84 +29542,89 @@ this.getChildren() ); }), - i + c ); })(r.Component); - (k.defaultProps = { className: 'react-tabs', focus: !1 }), - (k.propTypes = {}); - var S = (function(e) { - var t, n; - function r(t) { - var n; + (x.defaultProps = { className: 'react-tabs', focus: !1 }), + (x.propTypes = {}); + var M = 1, + k = (function(e) { + var t, n; + function r(t) { + var n; + return ( + ((n = e.call(this, t) || this).handleSelected = function( + e, + t, + r + ) { + var o = n.props.onSelect, + i = n.state.mode; + if ('function' != typeof o || !1 !== o(e, t, r)) { + var a = { focus: 'keydown' === r.type }; + i === M && (a.selectedIndex = e), n.setState(a); + } + }), + (n.state = r.copyPropsToState(n.props, {}, t.defaultFocus)), + n + ); + } return ( - ((n = e.call(this, t) || this).handleSelected = function(e, t, r) { - var o = n.props.onSelect, - i = n.state.mode; - if ('function' != typeof o || !1 !== o(e, t, r)) { - var a = { focus: 'keydown' === r.type }; - 1 === i && (a.selectedIndex = e), n.setState(a); + (n = e), + ((t = r).prototype = Object.create(n.prototype)), + (t.prototype.constructor = t), + (t.__proto__ = n), + (r.getDerivedStateFromProps = function(e, t) { + return r.copyPropsToState(e, t); + }), + (r.getModeFromProps = function(e) { + return null === e.selectedIndex ? M : 0; + }), + (r.copyPropsToState = function(e, t, n) { + void 0 === n && (n = !1); + var o = { focus: n, mode: r.getModeFromProps(e) }; + if (o.mode === M) { + var i = b(e.children) - 1, + a = null; + (a = + null != t.selectedIndex + ? Math.min(t.selectedIndex, i) + : e.defaultIndex || 0), + (o.selectedIndex = a); } + return o; }), - (n.state = r.copyPropsToState(n.props, {}, t.defaultFocus)), - n + (r.prototype.render = function() { + var e = this.props, + t = e.children, + n = + (e.defaultIndex, + e.defaultFocus, + (function(e, t) { + if (null == e) return {}; + var n, + r, + o = {}, + i = Object.keys(e); + for (r = 0; r < i.length; r++) + (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); + return o; + })(e, ['children', 'defaultIndex', 'defaultFocus'])), + r = this.state, + i = r.focus, + a = r.selectedIndex; + return ( + (n.focus = i), + (n.onSelect = this.handleSelected), + null != a && (n.selectedIndex = a), + o.a.createElement(x, n, t) + ); + }), + r ); - } - return ( - (n = e), - ((t = r).prototype = Object.create(n.prototype)), - (t.prototype.constructor = t), - (t.__proto__ = n), - (r.getDerivedStateFromProps = function(e, t) { - return r.copyPropsToState(e, t); - }), - (r.getModeFromProps = function(e) { - return null === e.selectedIndex ? 1 : 0; - }), - (r.copyPropsToState = function(e, t, n) { - void 0 === n && (n = !1); - var o = { focus: n, mode: r.getModeFromProps(e) }; - if (1 === o.mode) { - var i = v(e.children) - 1, - a = null; - (a = - null != t.selectedIndex - ? Math.min(t.selectedIndex, i) - : e.defaultIndex || 0), - (o.selectedIndex = a); - } - return o; - }), - (r.prototype.render = function() { - var e = this.props, - t = e.children, - n = - (e.defaultIndex, - e.defaultFocus, - (function(e, t) { - if (null == e) return {}; - var n, - r, - o = {}, - i = Object.keys(e); - for (r = 0; r < i.length; r++) - (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); - return o; - })(e, ['children', 'defaultIndex', 'defaultFocus'])), - r = this.state, - i = r.focus, - a = r.selectedIndex; - return ( - (n.focus = i), - (n.onSelect = this.handleSelected), - null != a && (n.selectedIndex = a), - o.a.createElement(k, n, t) - ); - }), - r - ); - })(r.Component); - function A() { - return (A = + })(r.Component); + function S() { + return (S = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { @@ -28411,14 +29635,14 @@ return e; }).apply(this, arguments); } - (S.defaultProps = { + (k.defaultProps = { defaultFocus: !1, forceRenderTabPanel: !1, selectedIndex: null, defaultIndex: null }), - (S.propTypes = {}), - (S.tabsRole = 'Tabs'); + (k.propTypes = {}), + (k.tabsRole = 'Tabs'); var O = (function(e) { var t, n; function r() { @@ -28445,7 +29669,7 @@ })(e, ['children', 'className']); return o.a.createElement( 'ul', - A({}, r, { className: g()(n), role: 'tablist' }), + S({}, r, { className: p()(n), role: 'tablist' }), t ); }), @@ -28467,7 +29691,7 @@ (O.defaultProps = { className: 'react-tabs__tab-list' }), (O.propTypes = {}), (O.tabsRole = 'TabList'); - var T = (function(e) { + var A = (function(e) { var t, n; function r() { return e.apply(this, arguments) || this; @@ -28503,8 +29727,8 @@ l = n.selected, f = n.selectedClassName, d = n.tabIndex, - p = n.tabRef, - h = (function(e, t) { + h = n.tabRef, + g = (function(e, t) { if (null == e) return {}; var n, r, @@ -28528,10 +29752,10 @@ ]); return o.a.createElement( 'li', - E({}, h, { - className: g()(i, ((e = {}), (e[f] = l), (e[s] = a), e)), + E({}, g, { + className: p()(i, ((e = {}), (e[f] = l), (e[s] = a), e)), ref: function(e) { - (t.node = e), p && p(e); + (t.node = e), h && h(e); }, role: 'tab', id: c, @@ -28546,8 +29770,8 @@ r ); })(r.Component); - function C() { - return (C = + function T() { + return (T = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { @@ -28558,7 +29782,7 @@ return e; }).apply(this, arguments); } - (T.defaultProps = { + (A.defaultProps = { className: 'react-tabs__tab', disabledClassName: 'react-tabs__tab--disabled', focus: !1, @@ -28567,9 +29791,9 @@ selected: !1, selectedClassName: 'react-tabs__tab--selected' }), - (T.propTypes = {}), - (T.tabsRole = 'Tab'); - var L = (function(e) { + (A.propTypes = {}), + (A.tabsRole = 'Tab'); + var C = (function(e) { var t, n; function r() { return e.apply(this, arguments) || this; @@ -28609,8 +29833,8 @@ ]); return o.a.createElement( 'div', - C({}, l, { - className: g()(r, ((e = {}), (e[c] = s), e)), + T({}, l, { + className: p()(r, ((e = {}), (e[c] = s), e)), role: 'tabpanel', id: a, 'aria-labelledby': u @@ -28621,33 +29845,50 @@ r ); })(r.Component); - (L.defaultProps = { + (C.defaultProps = { className: 'react-tabs__tab-panel', forceRender: !1, selectedClassName: 'react-tabs__tab-panel--selected' }), - (L.propTypes = {}), - (L.tabsRole = 'TabPanel'); + (C.propTypes = {}), + (C.tabsRole = 'TabPanel'), + n.d(t, 'Tabs', function() { + return k; + }), + n.d(t, 'TabList', function() { + return O; + }), + n.d(t, 'Tab', function() { + return A; + }), + n.d(t, 'TabPanel', function() { + return C; + }), + n.d(t, 'resetIdCounter', function() { + return m; + }); }, function(e, t, n) { - var r = n(466), - o = n(471); + var r = n(505), + o = n(510); e.exports = function(e, t) { var n = o(e, t); return r(n) ? n : void 0; }; }, function(e, t, n) { - var r = n(85), - o = n(467), - i = n(468), - a = r ? r.toStringTag : void 0; + var r = n(100), + o = n(506), + i = n(507), + a = '[object Null]', + s = '[object Undefined]', + c = r ? r.toStringTag : void 0; e.exports = function(e) { return null == e ? void 0 === e - ? '[object Undefined]' - : '[object Null]' - : a && a in Object(e) + ? s + : a + : c && c in Object(e) ? o(e) : i(e); }; @@ -28738,7 +29979,7 @@ u = null, l = 0, f = [], - d = n(504); + d = n(548); function p(e, t) { for (var n = 0; n < e.length; n++) { var r = e[n], @@ -28811,8 +30052,8 @@ if (t.singleton) { var a = l++; (n = u || (u = b(t))), - (r = w.bind(null, n, a, !1)), - (o = w.bind(null, n, a, !0)); + (r = x.bind(null, n, a, !1)), + (o = x.bind(null, n, a, !0)); } else e.sourceMap && 'function' == typeof URL && @@ -28883,14 +30124,14 @@ ); }; var _, - x = + w = ((_ = []), function(e, t) { return (_[e] = t), _.filter(Boolean).join('\n'); }); - function w(e, t, n, r) { + function x(e, t, n, r) { var o = n ? '' : r.css; - if (e.styleSheet) e.styleSheet.cssText = x(t, o); + if (e.styleSheet) e.styleSheet.cssText = w(t, o); else { var i = document.createTextNode(o), a = e.childNodes; @@ -28929,26 +30170,224 @@ (t.default = void 0); var r, o = (r = n(1)) && r.__esModule ? r : { default: r }, - i = n(7); + i = n(15); var a = o.default.oneOf(i.WEEKDAYS); t.default = a; }, + function(e, t, n) { + 'use strict'; + var r = Object.getOwnPropertyDescriptor + ? (function() { + return Object.getOwnPropertyDescriptor(arguments, 'callee').get; + })() + : function() { + throw new TypeError(); + }, + o = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator, + i = + Object.getPrototypeOf || + function(e) { + return e.__proto__; + }, + a = void 0, + s = 'undefined' == typeof Uint8Array ? void 0 : i(Uint8Array), + c = { + '$ %Array%': Array, + '$ %ArrayBuffer%': + 'undefined' == typeof ArrayBuffer ? void 0 : ArrayBuffer, + '$ %ArrayBufferPrototype%': + 'undefined' == typeof ArrayBuffer ? void 0 : ArrayBuffer.prototype, + '$ %ArrayIteratorPrototype%': o ? i([][Symbol.iterator]()) : void 0, + '$ %ArrayPrototype%': Array.prototype, + '$ %ArrayProto_entries%': Array.prototype.entries, + '$ %ArrayProto_forEach%': Array.prototype.forEach, + '$ %ArrayProto_keys%': Array.prototype.keys, + '$ %ArrayProto_values%': Array.prototype.values, + '$ %AsyncFromSyncIteratorPrototype%': void 0, + '$ %AsyncFunction%': void 0, + '$ %AsyncFunctionPrototype%': void 0, + '$ %AsyncGenerator%': void 0, + '$ %AsyncGeneratorFunction%': void 0, + '$ %AsyncGeneratorPrototype%': void 0, + '$ %AsyncIteratorPrototype%': + a && o && Symbol.asyncIterator ? a[Symbol.asyncIterator]() : void 0, + '$ %Atomics%': 'undefined' == typeof Atomics ? void 0 : Atomics, + '$ %Boolean%': Boolean, + '$ %BooleanPrototype%': Boolean.prototype, + '$ %DataView%': 'undefined' == typeof DataView ? void 0 : DataView, + '$ %DataViewPrototype%': + 'undefined' == typeof DataView ? void 0 : DataView.prototype, + '$ %Date%': Date, + '$ %DatePrototype%': Date.prototype, + '$ %decodeURI%': decodeURI, + '$ %decodeURIComponent%': decodeURIComponent, + '$ %encodeURI%': encodeURI, + '$ %encodeURIComponent%': encodeURIComponent, + '$ %Error%': Error, + '$ %ErrorPrototype%': Error.prototype, + '$ %eval%': eval, + '$ %EvalError%': EvalError, + '$ %EvalErrorPrototype%': EvalError.prototype, + '$ %Float32Array%': + 'undefined' == typeof Float32Array ? void 0 : Float32Array, + '$ %Float32ArrayPrototype%': + 'undefined' == typeof Float32Array + ? void 0 + : Float32Array.prototype, + '$ %Float64Array%': + 'undefined' == typeof Float64Array ? void 0 : Float64Array, + '$ %Float64ArrayPrototype%': + 'undefined' == typeof Float64Array + ? void 0 + : Float64Array.prototype, + '$ %Function%': Function, + '$ %FunctionPrototype%': Function.prototype, + '$ %Generator%': void 0, + '$ %GeneratorFunction%': void 0, + '$ %GeneratorPrototype%': void 0, + '$ %Int8Array%': 'undefined' == typeof Int8Array ? void 0 : Int8Array, + '$ %Int8ArrayPrototype%': + 'undefined' == typeof Int8Array ? void 0 : Int8Array.prototype, + '$ %Int16Array%': + 'undefined' == typeof Int16Array ? void 0 : Int16Array, + '$ %Int16ArrayPrototype%': + 'undefined' == typeof Int16Array ? void 0 : Int8Array.prototype, + '$ %Int32Array%': + 'undefined' == typeof Int32Array ? void 0 : Int32Array, + '$ %Int32ArrayPrototype%': + 'undefined' == typeof Int32Array ? void 0 : Int32Array.prototype, + '$ %isFinite%': isFinite, + '$ %isNaN%': isNaN, + '$ %IteratorPrototype%': o ? i(i([][Symbol.iterator]())) : void 0, + '$ %JSON%': JSON, + '$ %JSONParse%': JSON.parse, + '$ %Map%': 'undefined' == typeof Map ? void 0 : Map, + '$ %MapIteratorPrototype%': + 'undefined' != typeof Map && o + ? i(new Map()[Symbol.iterator]()) + : void 0, + '$ %MapPrototype%': + 'undefined' == typeof Map ? void 0 : Map.prototype, + '$ %Math%': Math, + '$ %Number%': Number, + '$ %NumberPrototype%': Number.prototype, + '$ %Object%': Object, + '$ %ObjectPrototype%': Object.prototype, + '$ %ObjProto_toString%': Object.prototype.toString, + '$ %ObjProto_valueOf%': Object.prototype.valueOf, + '$ %parseFloat%': parseFloat, + '$ %parseInt%': parseInt, + '$ %Promise%': 'undefined' == typeof Promise ? void 0 : Promise, + '$ %PromisePrototype%': + 'undefined' == typeof Promise ? void 0 : Promise.prototype, + '$ %PromiseProto_then%': + 'undefined' == typeof Promise ? void 0 : Promise.prototype.then, + '$ %Promise_all%': + 'undefined' == typeof Promise ? void 0 : Promise.all, + '$ %Promise_reject%': + 'undefined' == typeof Promise ? void 0 : Promise.reject, + '$ %Promise_resolve%': + 'undefined' == typeof Promise ? void 0 : Promise.resolve, + '$ %Proxy%': 'undefined' == typeof Proxy ? void 0 : Proxy, + '$ %RangeError%': RangeError, + '$ %RangeErrorPrototype%': RangeError.prototype, + '$ %ReferenceError%': ReferenceError, + '$ %ReferenceErrorPrototype%': ReferenceError.prototype, + '$ %Reflect%': 'undefined' == typeof Reflect ? void 0 : Reflect, + '$ %RegExp%': RegExp, + '$ %RegExpPrototype%': RegExp.prototype, + '$ %Set%': 'undefined' == typeof Set ? void 0 : Set, + '$ %SetIteratorPrototype%': + 'undefined' != typeof Set && o + ? i(new Set()[Symbol.iterator]()) + : void 0, + '$ %SetPrototype%': + 'undefined' == typeof Set ? void 0 : Set.prototype, + '$ %SharedArrayBuffer%': + 'undefined' == typeof SharedArrayBuffer + ? void 0 + : SharedArrayBuffer, + '$ %SharedArrayBufferPrototype%': + 'undefined' == typeof SharedArrayBuffer + ? void 0 + : SharedArrayBuffer.prototype, + '$ %String%': String, + '$ %StringIteratorPrototype%': o ? i(''[Symbol.iterator]()) : void 0, + '$ %StringPrototype%': String.prototype, + '$ %Symbol%': o ? Symbol : void 0, + '$ %SymbolPrototype%': o ? Symbol.prototype : void 0, + '$ %SyntaxError%': SyntaxError, + '$ %SyntaxErrorPrototype%': SyntaxError.prototype, + '$ %ThrowTypeError%': r, + '$ %TypedArray%': s, + '$ %TypedArrayPrototype%': s ? s.prototype : void 0, + '$ %TypeError%': TypeError, + '$ %TypeErrorPrototype%': TypeError.prototype, + '$ %Uint8Array%': + 'undefined' == typeof Uint8Array ? void 0 : Uint8Array, + '$ %Uint8ArrayPrototype%': + 'undefined' == typeof Uint8Array ? void 0 : Uint8Array.prototype, + '$ %Uint8ClampedArray%': + 'undefined' == typeof Uint8ClampedArray + ? void 0 + : Uint8ClampedArray, + '$ %Uint8ClampedArrayPrototype%': + 'undefined' == typeof Uint8ClampedArray + ? void 0 + : Uint8ClampedArray.prototype, + '$ %Uint16Array%': + 'undefined' == typeof Uint16Array ? void 0 : Uint16Array, + '$ %Uint16ArrayPrototype%': + 'undefined' == typeof Uint16Array ? void 0 : Uint16Array.prototype, + '$ %Uint32Array%': + 'undefined' == typeof Uint32Array ? void 0 : Uint32Array, + '$ %Uint32ArrayPrototype%': + 'undefined' == typeof Uint32Array ? void 0 : Uint32Array.prototype, + '$ %URIError%': URIError, + '$ %URIErrorPrototype%': URIError.prototype, + '$ %WeakMap%': 'undefined' == typeof WeakMap ? void 0 : WeakMap, + '$ %WeakMapPrototype%': + 'undefined' == typeof WeakMap ? void 0 : WeakMap.prototype, + '$ %WeakSet%': 'undefined' == typeof WeakSet ? void 0 : WeakSet, + '$ %WeakSetPrototype%': + 'undefined' == typeof WeakSet ? void 0 : WeakSet.prototype + }; + e.exports = function(e, t) { + if (arguments.length > 1 && 'boolean' != typeof t) + throw new TypeError('"allowMissing" argument must be a boolean'); + var n = '$ ' + e; + if (!(n in c)) + throw new SyntaxError('intrinsic ' + e + ' does not exist!'); + if (void 0 === c[n] && !t) + throw new TypeError( + 'intrinsic ' + + e + + ' exists, but is not available. Please file an issue!' + ); + return c[n]; + }; + }, + function(e, t, n) { + 'use strict'; + var r = n(130); + e.exports = r.call(Function.call, Object.prototype.hasOwnProperty); + }, function(e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = void 0); var r, o = (r = n(1)) && r.__esModule ? r : { default: r }, - i = n(7); + i = n(15); var a = o.default.oneOf([i.OPEN_DOWN, i.OPEN_UP]); t.default = a; }, function(e, t, n) { - var r = n(95), - o = n(403), - i = n(160), + var r = n(110), + o = n(433), + i = n(178), a = Object.defineProperty; - t.f = n(50) + t.f = n(63) ? Object.defineProperty : function(e, t, n) { if ((r(e), (t = i(t, !0)), r(n), o)) @@ -28968,41 +30407,41 @@ }, function(e, t, n) { 'use strict'; - n.d(t, 'a', function() { - return h; - }); var r = function(e) { - for (var t, n = 0, r = 0, o = e.length; o >= 4; ++r, o -= 4) + for (var t, n = e.length, r = n ^ n, o = 0; n >= 4; ) (t = 1540483477 * (65535 & (t = - (255 & e.charCodeAt(r)) | - ((255 & e.charCodeAt(++r)) << 8) | - ((255 & e.charCodeAt(++r)) << 16) | - ((255 & e.charCodeAt(++r)) << 24))) + - ((59797 * (t >>> 16)) << 16)), - (n = - (1540483477 * (65535 & (t ^= t >>> 24)) + - ((59797 * (t >>> 16)) << 16)) ^ - (1540483477 * (65535 & n) + ((59797 * (n >>> 16)) << 16))); - switch (o) { + (255 & e.charCodeAt(o)) | + ((255 & e.charCodeAt(++o)) << 8) | + ((255 & e.charCodeAt(++o)) << 16) | + ((255 & e.charCodeAt(++o)) << 24))) + + (((1540483477 * (t >>> 16)) & 65535) << 16)), + (r = + (1540483477 * (65535 & r) + + (((1540483477 * (r >>> 16)) & 65535) << 16)) ^ + (t = + 1540483477 * (65535 & (t ^= t >>> 24)) + + (((1540483477 * (t >>> 16)) & 65535) << 16))), + (n -= 4), + ++o; + switch (n) { case 3: - n ^= (255 & e.charCodeAt(r + 2)) << 16; + r ^= (255 & e.charCodeAt(o + 2)) << 16; case 2: - n ^= (255 & e.charCodeAt(r + 1)) << 8; + r ^= (255 & e.charCodeAt(o + 1)) << 8; case 1: - n = - 1540483477 * (65535 & (n ^= 255 & e.charCodeAt(r))) + - ((59797 * (n >>> 16)) << 16); + r = + 1540483477 * (65535 & (r ^= 255 & e.charCodeAt(o))) + + (((1540483477 * (r >>> 16)) & 65535) << 16); } return ( - ((n = - 1540483477 * (65535 & (n ^= n >>> 13)) + - ((59797 * (n >>> 16)) << 16)) ^ - (n >>> 15)) >>> - 0 - ).toString(36); + (r = + 1540483477 * (65535 & (r ^= r >>> 13)) + + (((1540483477 * (r >>> 16)) & 65535) << 16)), + ((r ^= r >>> 15) >>> 0).toString(36) + ); }, o = { animationIterationCount: 1, @@ -29051,36 +30490,40 @@ strokeOpacity: 1, strokeWidth: 1 }; - var i = /[A-Z]|^ms/g, - a = /_EMO_([^_]+?)_([^]*?)_EMO_/g, - s = function(e) { + var i = function(e) { + var t = {}; + return function(n) { + return void 0 === t[n] && (t[n] = e(n)), t[n]; + }; + }; + n.d(t, 'a', function() { + return g; + }); + var a = /[A-Z]|^ms/g, + s = /_EMO_([^_]+?)_([^]*?)_EMO_/g, + c = function(e) { return 45 === e.charCodeAt(1); }, - c = function(e) { + u = function(e) { return null != e && 'boolean' != typeof e; }, - u = (function(e) { - var t = {}; - return function(n) { - return void 0 === t[n] && (t[n] = e(n)), t[n]; - }; - })(function(e) { - return s(e) ? e : e.replace(i, '-$&').toLowerCase(); + l = i(function(e) { + return c(e) ? e : e.replace(a, '-$&').toLowerCase(); }), - l = function(e, t) { + f = function(e, t) { switch (e) { case 'animation': case 'animationName': if ('string' == typeof t) - return t.replace(a, function(e, t, n) { - return (d = { name: t, styles: n, next: d }), t; + return t.replace(s, function(e, t, n) { + return (p = { name: t, styles: n, next: p }), t; }); } - return 1 === o[e] || s(e) || 'number' != typeof t || 0 === t + return 1 === o[e] || c(e) || 'number' != typeof t || 0 === t ? t : t + 'px'; }; - function f(e, t, n, r) { + function d(e, t, n, r) { if (null == n) return ''; if (void 0 !== n.__emotion_styles) return n; switch (typeof n) { @@ -29088,51 +30531,51 @@ return ''; case 'object': if (1 === n.anim) - return (d = { name: n.name, styles: n.styles, next: d }), n.name; + return (p = { name: n.name, styles: n.styles, next: p }), n.name; if (void 0 !== n.styles) { var o = n.next; if (void 0 !== o) for (; void 0 !== o; ) - (d = { name: o.name, styles: o.styles, next: d }), + (p = { name: o.name, styles: o.styles, next: p }), (o = o.next); return n.styles + ';'; } return (function(e, t, n) { var r = ''; if (Array.isArray(n)) - for (var o = 0; o < n.length; o++) r += f(e, t, n[o], !1); + for (var o = 0; o < n.length; o++) r += d(e, t, n[o], !1); else for (var i in n) { var a = n[i]; if ('object' != typeof a) null != t && void 0 !== t[a] ? (r += i + '{' + t[a] + '}') - : c(a) && (r += u(i) + ':' + l(i, a) + ';'); + : u(a) && (r += l(i) + ':' + f(i, a) + ';'); else if ( !Array.isArray(a) || 'string' != typeof a[0] || (null != t && void 0 !== t[a[0]]) ) { - var s = f(e, t, a, !1); + var s = d(e, t, a, !1); switch (i) { case 'animation': case 'animationName': - r += u(i) + ':' + s + ';'; + r += l(i) + ':' + s + ';'; break; default: r += i + '{' + s + '}'; } } else - for (var d = 0; d < a.length; d++) - c(a[d]) && (r += u(i) + ':' + l(i, a[d]) + ';'); + for (var c = 0; c < a.length; c++) + u(a[c]) && (r += l(i) + ':' + f(i, a[c]) + ';'); } return r; })(e, t, n); case 'function': if (void 0 !== e) { - var i = d, + var i = p, a = n(e); - return (d = i), f(e, t, a, r); + return (p = i), d(e, t, a, r); } break; case 'string': @@ -29141,9 +30584,9 @@ var s = t[n]; return void 0 === s || r ? n : s; } - var d, - p = /label:\s*([^\s;\n{]+)\s*;/g; - var h = function(e, t, n) { + var p, + h = /label:\s*([^\s;\n{]+)\s*;/g; + var g = function(e, t, n) { if ( 1 === e.length && 'object' == typeof e[0] && @@ -29153,17 +30596,17 @@ return e[0]; var o = !0, i = ''; - d = void 0; + p = void 0; var a = e[0]; null == a || void 0 === a.raw - ? ((o = !1), (i += f(n, t, a, !1))) + ? ((o = !1), (i += d(n, t, a, !1))) : (i += a[0]); for (var s = 1; s < e.length; s++) - (i += f(n, t, e[s], 46 === i.charCodeAt(i.length - 1))), + (i += d(n, t, e[s], 46 === i.charCodeAt(i.length - 1))), o && (i += a[s]); - p.lastIndex = 0; - for (var c, u = ''; null !== (c = p.exec(i)); ) u += '-' + c[1]; - return { name: r(i) + u, styles: i, next: d }; + h.lastIndex = 0; + for (var c, u = ''; null !== (c = h.exec(i)); ) u += '-' + c[1]; + return { name: r(i) + u, styles: i, next: p }; }; }, function(e, t) { @@ -29191,41 +30634,41 @@ }; }, function(e, t, n) { - var r = n(197), - o = n(211), - i = n(45); + var r = n(218), + o = n(233), + i = n(58); e.exports = function(e) { return i(e) ? r(e) : o(e); }; }, function(e, t, n) { - var r = n(217), - o = n(219); + var r = n(239), + o = n(241); function i(t, n) { return delete e.exports[t], (e.exports[t] = n), n; } e.exports = { Parser: r, - Tokenizer: n(218), - ElementType: n(90), + Tokenizer: n(240), + ElementType: n(105), DomHandler: o, get FeedHandler() { - return i('FeedHandler', n(560)); + return i('FeedHandler', n(604)); }, get Stream() { - return i('Stream', n(574)); + return i('Stream', n(618)); }, get WritableStream() { - return i('WritableStream', n(226)); + return i('WritableStream', n(248)); }, get ProxyHandler() { - return i('ProxyHandler', n(581)); + return i('ProxyHandler', n(625)); }, get DomUtils() { - return i('DomUtils', n(221)); + return i('DomUtils', n(243)); }, get CollectingHandler() { - return i('CollectingHandler', n(582)); + return i('CollectingHandler', n(626)); }, DefaultHandler: o, get RssHandler() { @@ -29261,7 +30704,7 @@ }, function(e, t, n) { 'use strict'; - var r = n(368), + var r = n(168), o = 'function' == typeof Symbol && 'symbol' == typeof Symbol('foo'), i = Object.prototype.toString, a = Array.prototype.concat, @@ -29280,10 +30723,10 @@ })(), u = function(e, t, n, r) { var o; - (!(t in e) || - ('function' == typeof (o = r) && - '[object Function]' === i.call(o) && - r())) && + (t in e && + ('function' != typeof (o = r) || + '[object Function]' !== i.call(o) || + !r())) || (c ? s(e, t, { configurable: !0, @@ -29307,13 +30750,13 @@ (t.default = function(e, t) { return ( !(!o.default.isMoment(e) || !o.default.isMoment(t)) && - e.date() === t.date() && + (e.date() === t.date() && e.month() === t.month() && - e.year() === t.year() + e.year() === t.year()) ); }); var r, - o = (r = n(2)) && r.__esModule ? r : { default: r }; + o = (r = n(4)) && r.__esModule ? r : { default: r }; }, function(e, t, n) { 'use strict'; @@ -29326,8 +30769,8 @@ return r.isValid() ? r.hour(12) : null; }); var r, - o = (r = n(2)) && r.__esModule ? r : { default: r }, - i = n(7); + o = (r = n(4)) && r.__esModule ? r : { default: r }, + i = n(15); }, function(e, t, n) { 'use strict'; @@ -29335,7 +30778,7 @@ (t.default = void 0); var r, o = (r = n(1)) && r.__esModule ? r : { default: r }, - i = n(7); + i = n(15); var a = o.default.oneOf([ i.HORIZONTAL_ORIENTATION, i.VERTICAL_ORIENTATION, @@ -29370,7 +30813,7 @@ (t.default = void 0); var r, o = (r = n(1)) && r.__esModule ? r : { default: r }, - i = n(7); + i = n(15); var a = o.default.oneOf([i.ICON_BEFORE_POSITION, i.ICON_AFTER_POSITION]); t.default = a; }, @@ -29383,18 +30826,18 @@ !(0, o.default)(e, t) ); }); - var r = i(n(2)), - o = i(n(93)); + var r = i(n(4)), + o = i(n(108)); function i(e) { return e && e.__esModule ? e : { default: e }; } }, function(e, t, n) { - var r = n(48), - o = n(49), - i = n(402), - a = n(74), - s = n(61), + var r = n(61), + o = n(62), + i = n(432), + a = n(88), + s = n(75), c = function(e, t, n) { var u, l, @@ -29452,9 +30895,9 @@ (e.exports = c); }, function(e, t, n) { - var r = n(60), - o = n(121); - e.exports = n(50) + var r = n(74), + o = n(136); + e.exports = n(63) ? function(e, t, n) { return r.f(e, t, o(1, n)); } @@ -29468,16 +30911,16 @@ }; }, function(e, t, n) { - var r = n(406), - o = n(161); + var r = n(436), + o = n(179); e.exports = function(e) { return r(o(e)); }; }, function(e, t, n) { - var r = n(164)('wks'), - o = n(124), - i = n(48).Symbol, + var r = n(182)('wks'), + o = n(139), + i = n(61).Symbol, a = 'function' == typeof i; (e.exports = function(e) { return r[e] || (r[e] = (a && i[e]) || (a ? i : o)('Symbol.' + e)); @@ -29485,82 +30928,126 @@ }, function(e, t, n) { 'use strict'; - e.exports = n(449); + e.exports = n(478); }, function(e, t, n) { - var r = n(35), - o = n(646), - i = n(238), - a = Math.max, - s = Math.min; + 'use strict'; + function r(e, t) { + return ( + t || (t = e.slice(0)), + Object.freeze( + Object.defineProperties(e, { raw: { value: Object.freeze(t) } }) + ) + ); + } + n.d(t, 'a', function() { + return r; + }); + }, + function(e, t, n) { + var r = n(47), + o = n(690), + i = n(260), + a = 'Expected a function', + s = Math.max, + c = Math.min; e.exports = function(e, t, n) { - var c, - u, + var u, l, f, d, p, - h = 0, - g = !1, + h, + g = 0, m = !1, - b = !0; - if ('function' != typeof e) throw new TypeError('Expected a function'); - function y(t) { - var n = c, - r = u; - return (c = u = void 0), (h = t), (f = e.apply(r, n)); - } - function v(e) { - return (h = e), (d = setTimeout(x, t)), g ? y(e) : f; + b = !1, + y = !0; + if ('function' != typeof e) throw new TypeError(a); + function v(t) { + var n = u, + r = l; + return (u = l = void 0), (g = t), (d = e.apply(r, n)); } function _(e) { - var n = e - p; - return void 0 === p || n >= t || n < 0 || (m && e - h >= l); + var n = e - h; + return void 0 === h || n >= t || n < 0 || (b && e - g >= f); } - function x() { + function w() { var e = o(); - if (_(e)) return w(e); - d = setTimeout( - x, + if (_(e)) return x(e); + p = setTimeout( + w, (function(e) { - var n = t - (e - p); - return m ? s(n, l - (e - h)) : n; + var n = t - (e - h); + return b ? c(n, f - (e - g)) : n; })(e) ); } - function w(e) { - return (d = void 0), b && c ? y(e) : ((c = u = void 0), f); + function x(e) { + return (p = void 0), y && u ? v(e) : ((u = l = void 0), d); } function M() { var e = o(), n = _(e); - if (((c = arguments), (u = this), (p = e), n)) { - if (void 0 === d) return v(p); - if (m) return clearTimeout(d), (d = setTimeout(x, t)), y(p); + if (((u = arguments), (l = this), (h = e), n)) { + if (void 0 === p) + return (function(e) { + return (g = e), (p = setTimeout(w, t)), m ? v(e) : d; + })(h); + if (b) return clearTimeout(p), (p = setTimeout(w, t)), v(h); } - return void 0 === d && (d = setTimeout(x, t)), f; + return void 0 === p && (p = setTimeout(w, t)), d; } return ( (t = i(t) || 0), r(n) && - ((g = !!n.leading), - (l = (m = 'maxWait' in n) ? a(i(n.maxWait) || 0, t) : l), - (b = 'trailing' in n ? !!n.trailing : b)), + ((m = !!n.leading), + (f = (b = 'maxWait' in n) ? s(i(n.maxWait) || 0, t) : f), + (y = 'trailing' in n ? !!n.trailing : y)), (M.cancel = function() { - void 0 !== d && clearTimeout(d), (h = 0), (c = p = u = d = void 0); + void 0 !== p && clearTimeout(p), (g = 0), (u = h = l = p = void 0); }), (M.flush = function() { - return void 0 === d ? f : w(o()); + return void 0 === p ? d : x(o()); }), M ); }; }, + function(e, t, n) { + 'use strict'; + function r(e) { + return ( + (function(e) { + if (Array.isArray(e)) { + for (var t = 0, n = new Array(e.length); t < e.length; t++) + n[t] = e[t]; + return n; + } + })(e) || + (function(e) { + if ( + Symbol.iterator in Object(e) || + '[object Arguments]' === Object.prototype.toString.call(e) + ) + return Array.from(e); + })(e) || + (function() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance' + ); + })() + ); + } + n.d(t, 'a', function() { + return r; + }); + }, function(e, t, n) { 'use strict'; t.__esModule = !0; var r, - o = n(412), + o = n(442), i = (r = o) && r.__esModule ? r : { default: r }; t.default = (function() { function e(e, t) { @@ -29579,7 +31066,7 @@ }, function(e, t, n) { 'use strict'; - var r = n(128); + var r = n(143); var o = function(e) { function t(e, t, r) { var o = t.trim().split(h); @@ -29761,14 +31248,14 @@ ); case 115: return ( - '-webkit-' + a + '-ms-flex-item-' + a.replace(w, '') + a + '-webkit-' + a + '-ms-flex-item-' + a.replace(x, '') + a ); default: return ( '-webkit-' + a + '-ms-flex-line-pack' + - a.replace('align-content', '').replace(w, '') + + a.replace('align-content', '').replace(x, '') + a ); } @@ -29819,7 +31306,7 @@ function i(e, t) { var n = r(t, t.charCodeAt(0), t.charCodeAt(1), t.charCodeAt(2)); return n !== t + ';' - ? n.replace(x, ' or ($1)').substring(4) + ? n.replace(w, ' or ($1)').substring(4) : '(' + t + ')'; } function a(e, t, n, r, o, i, a, s, u, l) { @@ -29850,7 +31337,7 @@ function c(e, n) { var s = e; if ((33 > s.charCodeAt(0) && (s = s.trim()), (s = [s]), 0 < P)) { - var c = a(-1, n, s, s, O, A, 0, 0, 0, 0); + var c = a(-1, n, s, s, E, O, 0, 0, 0, 0); void 0 !== c && 'string' == typeof c && (n = c); } var f = (function e(n, s, c, f, d) { @@ -29859,15 +31346,15 @@ h, g, v, - x, - w = 0, + w, + x = 0, M = 0, k = 0, S = 0, L = 0, D = 0, - N = (g = p = 0), - j = 0, + z = (g = p = 0), + N = 0, R = 0, I = 0, F = 0, @@ -29877,21 +31364,21 @@ Y = '', W = '', V = ''; - j < q; + N < q; ) { if ( - ((h = c.charCodeAt(j)), - j === B && - 0 !== M + S + k + w && + ((h = c.charCodeAt(N)), + N === B && + 0 !== M + S + k + x && (0 !== M && (h = 47 === M ? 10 : 47), - (S = k = w = 0), + (S = k = x = 0), q++, B++), - 0 === M + S + k + w) + 0 === M + S + k + x) ) { if ( - j === B && + N === B && (0 < R && (H = H.replace(l, '')), 0 < H.trim().length) ) { switch (h) { @@ -29902,18 +31389,18 @@ case 10: break; default: - H += c.charAt(j); + H += c.charAt(N); } h = 59; } switch (h) { case 123: for ( - p = (H = H.trim()).charCodeAt(0), g = 1, F = ++j; - j < q; + p = (H = H.trim()).charCodeAt(0), g = 1, F = ++N; + N < q; ) { - switch ((h = c.charCodeAt(j))) { + switch ((h = c.charCodeAt(N))) { case 123: g++; break; @@ -29921,29 +31408,29 @@ g--; break; case 47: - switch ((h = c.charCodeAt(j + 1))) { + switch ((h = c.charCodeAt(N + 1))) { case 42: case 47: e: { - for (N = j + 1; N < B; ++N) - switch (c.charCodeAt(N)) { + for (z = N + 1; z < B; ++z) + switch (c.charCodeAt(z)) { case 47: if ( 42 === h && - 42 === c.charCodeAt(N - 1) && - j + 2 !== N + 42 === c.charCodeAt(z - 1) && + N + 2 !== z ) { - j = N + 1; + N = z + 1; break e; } break; case 10: if (47 === h) { - j = N + 1; + N = z + 1; break e; } } - j = N; + N = z; } } break; @@ -29953,13 +31440,13 @@ h++; case 34: case 39: - for (; j++ < B && c.charCodeAt(j) !== h; ); + for (; N++ < B && c.charCodeAt(N) !== h; ); } if (0 === g) break; - j++; + N++; } switch ( - ((g = c.substring(F, j)), + ((g = c.substring(F, N)), 0 === p && (p = (H = H.replace(u, '').trim()).charCodeAt(0)), p) @@ -29981,21 +31468,21 @@ if ( ((F = (g = e(s, R, g, h, d + 1)).length), 0 < P && - ((x = a( + ((w = a( 3, g, (R = t(C, H, I)), s, + E, O, - A, F, h, d, f )), (H = R.join('')), - void 0 !== x && - 0 === (F = (g = x.trim()).length) && + void 0 !== w && + 0 === (F = (g = w.trim()).length) && ((h = 0), (g = ''))), 0 < F) ) @@ -30023,9 +31510,9 @@ g = e(s, t(s, H, I), g, f, d + 1); } (W += g), - (g = I = R = N = p = 0), + (g = I = R = z = p = 0), (H = ''), - (h = c.charCodeAt(++j)); + (h = c.charCodeAt(++N)); break; case 125: case 59: @@ -30034,14 +31521,14 @@ (F = (H = (0 < R ? H.replace(l, '') : H).trim()).length) ) switch ( - (0 === N && + (0 === z && ((p = H.charCodeAt(0)), 45 === p || (96 < p && 123 > p)) && (F = (H = H.replace(' ', ':')).length), 0 < P && void 0 !== - (x = a(1, H, s, n, O, A, Y.length, f, d, f)) && - 0 === (F = (H = x.trim()).length) && + (w = a(1, H, s, n, E, O, Y.length, f, d, f)) && + 0 === (F = (H = w.trim()).length) && (H = '\0\0'), (p = H.charCodeAt(0)), (h = H.charCodeAt(1)), @@ -30051,14 +31538,14 @@ break; case 64: if (105 === h || 99 === h) { - V += H + c.charAt(j); + V += H + c.charAt(N); break; } default: 58 !== H.charCodeAt(F - 1) && (Y += r(H, p, h, H.charCodeAt(2))); } - (I = R = N = p = 0), (H = ''), (h = c.charCodeAt(++j)); + (I = R = z = p = 0), (H = ''), (h = c.charCodeAt(++N)); } } switch (h) { @@ -30070,21 +31557,21 @@ 107 !== f && 0 < H.length && ((R = 1), (H += '\0')), - 0 < P * z && a(0, H, s, n, O, A, Y.length, f, d, f), - (A = 1), - O++; + 0 < P * j && a(0, H, s, n, E, O, Y.length, f, d, f), + (O = 1), + E++; break; case 59: case 125: - if (0 === M + S + k + w) { - A++; + if (0 === M + S + k + x) { + O++; break; } default: - switch ((A++, (v = c.charAt(j)), h)) { + switch ((O++, (v = c.charAt(N)), h)) { case 9: case 32: - if (0 === S + w + M) + if (0 === S + x + M) switch (L) { case 44: case 58: @@ -30106,38 +31593,38 @@ v = '\\v'; break; case 38: - 0 === S + M + w && ((R = I = 1), (v = '\f' + v)); + 0 === S + M + x && ((R = I = 1), (v = '\f' + v)); break; case 108: - if (0 === S + M + w + E && 0 < N) - switch (j - N) { + if (0 === S + M + x + A && 0 < z) + switch (N - z) { case 2: - 112 === L && 58 === c.charCodeAt(j - 3) && (E = L); + 112 === L && 58 === c.charCodeAt(N - 3) && (A = L); case 8: - 111 === D && (E = D); + 111 === D && (A = D); } break; case 58: - 0 === S + M + w && (N = j); + 0 === S + M + x && (z = N); break; case 44: - 0 === M + k + S + w && ((R = 1), (v += '\r')); + 0 === M + k + S + x && ((R = 1), (v += '\r')); break; case 34: case 39: 0 === M && (S = S === h ? 0 : 0 === S ? h : S); break; case 91: - 0 === S + M + k && w++; + 0 === S + M + k && x++; break; case 93: - 0 === S + M + k && w--; + 0 === S + M + k && x--; break; case 41: - 0 === S + M + w && k--; + 0 === S + M + x && k--; break; case 40: - if (0 === S + M + w) { + if (0 === S + M + x) { if (0 === p) switch (2 * L + 3 * D) { case 533: @@ -30149,45 +31636,45 @@ } break; case 64: - 0 === M + k + S + w + N + g && (g = 1); + 0 === M + k + S + x + z + g && (g = 1); break; case 42: case 47: - if (!(0 < S + w + k)) + if (!(0 < S + x + k)) switch (M) { case 0: - switch (2 * h + 3 * c.charCodeAt(j + 1)) { + switch (2 * h + 3 * c.charCodeAt(N + 1)) { case 235: M = 47; break; case 220: - (F = j), (M = 42); + (F = N), (M = 42); } break; case 42: 47 === h && 42 === L && - F + 2 !== j && + F + 2 !== N && (33 === c.charCodeAt(F + 2) && - (Y += c.substring(F, j + 1)), + (Y += c.substring(F, N + 1)), (v = ''), (M = 0)); } } 0 === M && (H += v); } - (D = L), (L = h), j++; + (D = L), (L = h), N++; } if (0 < (F = Y.length)) { if ( ((R = s), 0 < P && - void 0 !== (x = a(2, Y, R, n, O, A, F, f, d, f)) && - 0 === (Y = x).length) + (void 0 !== (w = a(2, Y, R, n, E, O, F, f, d, f)) && + 0 === (Y = w).length)) ) return V + Y + W; - if (((Y = R.join(',') + '{' + Y + '}'), 0 != T * E)) { - switch ((2 !== T || o(Y, 2) || (E = 0), E)) { + if (((Y = R.join(',') + '{' + Y + '}'), 0 != T * A)) { + switch ((2 !== T || o(Y, 2) || (A = 0), A)) { case 111: Y = Y.replace(y, ':-moz-$1') + Y; break; @@ -30198,18 +31685,18 @@ Y.replace(b, ':-ms-input-$1') + Y; } - E = 0; + A = 0; } } return V + Y + W; })(C, s, n, 0, 0); return ( 0 < P && - void 0 !== (c = a(-2, f, s, s, O, A, f.length, 0, 0, 0)) && - (f = c), + (void 0 !== (c = a(-2, f, s, s, E, O, f.length, 0, 0, 0)) && + (f = c)), '', - (E = 0), - (A = O = 1), + (A = 0), + (O = E = 1), f ); } @@ -30225,20 +31712,20 @@ y = /:(read-only)/g, v = /[svh]\w+-[tblr]{2}/, _ = /\(\s*(.*)\s*\)/g, - x = /([\s\S]*?);/g, - w = /-self|flex-/g, + w = /([\s\S]*?);/g, + x = /-self|flex-/g, M = /[^]*?(:[rp][el]a[\w-]+)[^]*/, k = /stretch|:\s*\w+\-(?:conte|avail)/, S = /([^-])(image-set\()/, - A = 1, O = 1, - E = 0, + E = 1, + A = 0, T = 1, C = [], L = [], P = 0, D = null, - z = 0; + j = 0; return ( (c.use = function e(t) { switch (t) { @@ -30250,7 +31737,7 @@ if ('function' == typeof t) L[P++] = t; else if ('object' == typeof t) for (var n = 0, r = t.length; n < r; ++n) e(t[n]); - else z = 0 | !!t; + else j = 0 | !!t; } return e; }), @@ -30329,28 +31816,6 @@ return d; }; }, - function(e, t, n) { - 'use strict'; - e.exports = function(e, t, n, r, o, i, a, s) { - if (!e) { - var c; - if (void 0 === t) - c = new Error( - 'Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.' - ); - else { - var u = [n, r, o, i, a, s], - l = 0; - (c = new Error( - t.replace(/%s/g, function() { - return u[l++]; - }) - )).name = 'Invariant Violation'; - } - throw ((c.framesToPop = 1), c); - } - }; - }, function(e, t, n) { 'use strict'; /* @@ -30417,23 +31882,23 @@ object-assign }; }, function(e, t, n) { - var r = n(36).Symbol; + var r = n(48).Symbol; e.exports = r; }, function(e, t, n) { (function(e) { - var r = n(36), - o = n(489), + var r = n(48), + o = n(528), i = t && !t.nodeType && t, a = i && 'object' == typeof e && e && !e.nodeType && e, s = a && a.exports === i ? r.Buffer : void 0, c = (s ? s.isBuffer : void 0) || o; e.exports = c; - }.call(this, n(63)(e))); + }.call(this, n(77)(e))); }, function(e, t, n) { - var r = n(196), - o = n(135); + var r = n(217), + o = n(150); e.exports = function(e, t, n, i) { var a = !n; n || (n = {}); @@ -30446,13 +31911,13 @@ object-assign }; }, function(e, t, n) { - var r = n(530), - o = n(132), - i = n(531), - a = n(532), - s = n(533), - c = n(55), - u = n(184), + var r = n(574), + o = n(147), + i = n(575), + a = n(576), + s = n(577), + c = n(67), + u = n(205), l = u(r), f = u(o), d = u(i), @@ -30488,13 +31953,13 @@ object-assign function(e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), - (t.bottom = c), + (t.bottom = l), (t.cloneLayout = function(e) { for (var t = Array(e.length), n = 0, r = e.length; n < r; n++) - t[n] = u(e[n]); + t[n] = f(e[n]); return t; }), - (t.cloneLayoutItem = u), + (t.cloneLayoutItem = f), (t.childrenEqual = function(e, t) { return (0, r.default)( o.default.Children.map(e, function(e) { @@ -30505,16 +31970,16 @@ object-assign }) ); }), - (t.collides = l), - (t.compact = f), - (t.compactItem = h), - (t.correctBounds = g), - (t.getLayoutItem = m), - (t.getFirstCollision = b), - (t.getAllCollisions = y), - (t.getStatics = v), - (t.moveElement = _), - (t.moveElementAwayFromCollision = x), + (t.collides = d), + (t.compact = p), + (t.compactItem = m), + (t.correctBounds = b), + (t.getLayoutItem = y), + (t.getFirstCollision = v), + (t.getAllCollisions = _), + (t.getStatics = w), + (t.moveElement = x), + (t.moveElementAwayFromCollision = M), (t.perc = function(e) { return 100 * e + '%'; }), @@ -30548,22 +32013,27 @@ object-assign position: 'absolute' }; }), - (t.sortLayoutItems = w), - (t.sortLayoutItemsByRowCol = M), - (t.sortLayoutItemsByColRow = k), + (t.sortLayoutItems = k), + (t.sortLayoutItemsByRowCol = S), + (t.sortLayoutItemsByColRow = O), (t.synchronizeLayoutWithChildren = function(e, t, n, r) { e = e || []; var i = []; return ( o.default.Children.forEach(t, function(t, n) { - var r = m(e, String(t.key)); - if (r) i[n] = u(r); + var r = y(e, String(t.key)); + if (r) i[n] = f(r); else { - 0; + !c && + t.props._grid && + console.warn( + '`_grid` properties on children have been deprecated as of React 15.2. Please use `data-grid` or add your properties directly to the `layout`.' + ); var o = t.props['data-grid'] || t.props._grid; - i[n] = u( - o - ? (function(e) { + o + ? (c || E([o], 'ReactGridLayout.children'), + (i[n] = f( + (function(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 @@ -30585,21 +32055,21 @@ object-assign } return e; })({}, o, { i: t.key }) - : { w: 1, h: 1, x: 0, y: c(i), i: String(t.key) } - ); + ))) + : (i[n] = f({ w: 1, h: 1, x: 0, y: l(i), i: String(t.key) })); } }), - (i = f((i = g(i, { cols: n })), r, n)) + (i = p((i = b(i, { cols: n })), r, n)) ); }), - (t.validateLayout = S), + (t.validateLayout = E), (t.autoBindHandlers = function(e, t) { t.forEach(function(t) { return (e[t] = e[t].bind(e)); }); }), (t.noop = void 0); - var r = i(n(144)), + var r = i(n(159)), o = i(n(0)); function i(e) { return e && e.__esModule ? e : { default: e }; @@ -30629,12 +32099,14 @@ object-assign e ); } - function c(e) { + var c = !0, + u = !1; + function l(e) { for (var t, n = 0, r = 0, o = e.length; r < o; r++) (t = e[r].y + e[r].h) > n && (n = t); return n; } - function u(e) { + function f(e) { return { w: e.w, h: e.h, @@ -30651,29 +32123,30 @@ object-assign isResizable: e.isResizable }; } - function l(e, t) { + function d(e, t) { return ( e.i !== t.i && - !(e.x + e.w <= t.x) && - !(e.x >= t.x + t.w) && !(e.y + e.h <= t.y) && !(e.y >= t.y + t.h) + (!(e.x + e.w <= t.x) && + (!(e.x >= t.x + t.w) && + (!(e.y + e.h <= t.y) && !(e.y >= t.y + t.h)))) ); } - function f(e, t, n) { + function p(e, t, n) { for ( - var r = v(e), o = w(e, t), i = Array(e.length), a = 0, s = o.length; + var r = w(e), o = k(e, t), i = Array(e.length), a = 0, s = o.length; a < s; a++ ) { - var c = u(o[a]); - c.static || ((c = h(r, c, t, n, o)), r.push(c)), + var c = f(o[a]); + c.static || ((c = m(r, c, t, n, o)), r.push(c)), (i[e.indexOf(o[a])] = c), (c.moved = !1); } return i; } - var d = { x: 'w', y: 'h' }; - function p(e, t, n, r) { - var o = d[r]; + var h = { x: 'w', y: 'h' }; + function g(e, t, n, r) { + var o = h[r]; t[r] += 1; for ( var i = @@ -30688,53 +32161,53 @@ object-assign var a = e[i]; if (!a.static) { if (a.y > t.y + t.h) break; - l(t, a) && p(e, a, n + t[o], r); + d(t, a) && g(e, a, n + t[o], r); } } t[r] = n; } - function h(e, t, n, r, o) { + function m(e, t, n, r, o) { var i, a = 'horizontal' === n; if ('vertical' === n) - for (t.y = Math.min(c(e), t.y); t.y > 0 && !b(e, t); ) t.y--; + for (t.y = Math.min(l(e), t.y); t.y > 0 && !v(e, t); ) t.y--; else if (a) - for (t.y = Math.min(c(e), t.y); t.x > 0 && !b(e, t); ) t.x--; - for (; (i = b(e, t)); ) - a ? p(o, t, i.x + i.w, 'x') : p(o, t, i.y + i.h, 'y'), + for (t.y = Math.min(l(e), t.y); t.x > 0 && !v(e, t); ) t.x--; + for (; (i = v(e, t)); ) + a ? g(o, t, i.x + i.w, 'x') : g(o, t, i.y + i.h, 'y'), a && t.x + t.w > r && ((t.x = r - t.w), t.y++); return t; } - function g(e, t) { - for (var n = v(e), r = 0, o = e.length; r < o; r++) { + function b(e, t) { + for (var n = w(e), r = 0, o = e.length; r < o; r++) { var i = e[r]; if ( (i.x + i.w > t.cols && (i.x = t.cols - i.w), i.x < 0 && ((i.x = 0), (i.w = t.cols)), i.static) ) - for (; b(n, i); ) i.y++; + for (; v(n, i); ) i.y++; else n.push(i); } return e; } - function m(e, t) { + function y(e, t) { for (var n = 0, r = e.length; n < r; n++) if (e[n].i === t) return e[n]; } - function b(e, t) { - for (var n = 0, r = e.length; n < r; n++) if (l(e[n], t)) return e[n]; + function v(e, t) { + for (var n = 0, r = e.length; n < r; n++) if (d(e[n], t)) return e[n]; } - function y(e, t) { + function _(e, t) { return e.filter(function(e) { - return l(e, t); + return d(e, t); }); } - function v(e) { + function w(e) { return e.filter(function(e) { return e.static; }); } - function _(e, t, n, r, o, i, a, s) { + function x(e, t, n, r, o, i, a, s) { if (t.static) return e; if (t.y === r && t.x === n) return e; A( @@ -30750,12 +32223,12 @@ object-assign 'number' == typeof n && (t.x = n), 'number' == typeof r && (t.y = r), (t.moved = !0); - var l = w(e, a); + var l = k(e, a); ('vertical' === a && 'number' == typeof r ? u >= r : 'horizontal' === a && 'number' == typeof n && c >= n) && (l = l.reverse()); - var f = y(l, t); + var f = _(l, t); if (i && f.length) return ( A('Collision prevented on '.concat(t.i, ', reverting.')), @@ -30776,11 +32249,11 @@ object-assign .concat(h.y, ']') ), h.moved || - (e = h.static ? x(e, h, t, o, a, s) : x(e, t, h, o, a, s)); + (e = h.static ? M(e, h, t, o, a, s) : M(e, t, h, o, a, s)); } return e; } - function x(e, t, n, r, o, i) { + function M(e, t, n, r, o, i) { var a = 'horizontal' === o, s = 'horizontal' !== o, c = t.static; @@ -30793,7 +32266,7 @@ object-assign h: n.h, i: '-1' }; - if (!b(e, u)) + if (!v(e, u)) return ( A( 'Doing reverse collision on ' @@ -30801,15 +32274,15 @@ object-assign .concat(u.x, ',') .concat(u.y, '].') ), - _(e, n, a ? u.x : void 0, s ? u.y : void 0, r, c, o, i) + x(e, n, a ? u.x : void 0, s ? u.y : void 0, r, c, o, i) ); } - return _(e, n, a ? n.x + 1 : void 0, s ? n.y + 1 : void 0, r, c, o, i); + return x(e, n, a ? n.x + 1 : void 0, s ? n.y + 1 : void 0, r, c, o, i); } - function w(e, t) { - return 'horizontal' === t ? k(e) : M(e); + function k(e, t) { + return 'horizontal' === t ? O(e) : S(e); } - function M(e) { + function S(e) { return [].concat(e).sort(function(e, t) { return e.y > t.y || (e.y === t.y && e.x > t.x) ? 1 @@ -30818,12 +32291,12 @@ object-assign : -1; }); } - function k(e) { + function O(e) { return [].concat(e).sort(function(e, t) { return e.x > t.x || (e.x === t.x && e.y > t.y) ? 1 : -1; }); } - function S(e) { + function E(e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] @@ -30852,7 +32325,10 @@ object-assign ); } } - function A() {} + function A() { + var e; + u && (e = console).log.apply(e, arguments); + } t.noop = function() {}; }, function(e, t) { @@ -30876,7 +32352,7 @@ object-assign (t.default = void 0); var r, o = (r = n(1)) && r.__esModule ? r : { default: r }, - i = n(7); + i = n(15); var a = o.default.oneOfType([ o.default.bool, o.default.oneOf([i.START_DATE, i.END_DATE]) @@ -30889,7 +32365,7 @@ object-assign (t.default = void 0); var r, o = (r = n(1)) && r.__esModule ? r : { default: r }, - i = n(7); + i = n(15); var a = o.default.oneOf([ i.INFO_POSITION_TOP, i.INFO_POSITION_BOTTOM, @@ -30912,7 +32388,7 @@ object-assign return s && c ? e.date() < t.date() : s ? r < a : n < i; }); var r, - o = (r = n(2)) && r.__esModule ? r : { default: r }; + o = (r = n(4)) && r.__esModule ? r : { default: r }; }, function(e, t, n) { 'use strict'; @@ -30936,7 +32412,7 @@ object-assign t.default = a; }, function(e, t, n) { - var r = n(75); + var r = n(89); e.exports = function(e) { if (!r(e)) throw TypeError(e + ' is not an object!'); return e; @@ -31052,13 +32528,13 @@ object-assign ); } n.d(t, 'a', function() { - return ke; + return De; }), n.d(t, 'b', function() { - return xe; + return Ce; }), n.d(t, 'c', function() { - return Me; + return Pe; }); var u = function() {}, l = {}, @@ -31081,23 +32557,25 @@ object-assign !!m.head && 'function' == typeof m.addEventListener && 'function' == typeof m.createElement), - v = - (~h.indexOf('MSIE') || h.indexOf('Trident/'), - (function() { + v = (~h.indexOf('MSIE') || h.indexOf('Trident/'), 'fa'), + _ = 'svg-inline--fa', + w = 'data-fa-i2svg', + x = + ((function() { try { } catch (e) { return !1; } })(), [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]), - _ = v.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]), - x = { + M = x.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]), + k = { GROUP: 'group', SWAP_OPACITY: 'swap-opacity', PRIMARY: 'primary', SECONDARY: 'secondary' }, - w = + S = ([ 'xs', 'sm', @@ -31123,18 +32601,18 @@ object-assign 'layers', 'layers-text', 'layers-counter', - x.GROUP, - x.SWAP_OPACITY, - x.PRIMARY, - x.SECONDARY + k.GROUP, + k.SWAP_OPACITY, + k.PRIMARY, + k.SECONDARY ] .concat( - v.map(function(e) { + x.map(function(e) { return ''.concat(e, 'x'); }) ) .concat( - _.map(function(e) { + M.map(function(e) { return 'w-'.concat(e); }) ), @@ -31164,14 +32642,14 @@ object-assign if (t) return t.getAttribute(e); })(n) ); - null != o && (w[r] = o); + null != o && (S[r] = o); }); } - var M = s( + var O = s( {}, { - familyPrefix: 'fa', - replacementClass: 'svg-inline--fa', + familyPrefix: v, + replacementClass: _, autoReplaceSvg: !0, autoAddCss: !0, autoA11y: !0, @@ -31182,18 +32660,18 @@ object-assign measurePerformance: !1, showMissingIcons: !0 }, - w + S ); - M.autoReplaceSvg || (M.observeMutations = !1); - var k = s({}, M); - g.FontAwesomeConfig = k; - var S = g || {}; - S.___FONT_AWESOME___ || (S.___FONT_AWESOME___ = {}), - S.___FONT_AWESOME___.styles || (S.___FONT_AWESOME___.styles = {}), - S.___FONT_AWESOME___.hooks || (S.___FONT_AWESOME___.hooks = {}), - S.___FONT_AWESOME___.shims || (S.___FONT_AWESOME___.shims = []); - var A = S.___FONT_AWESOME___, - O = []; + O.autoReplaceSvg || (O.observeMutations = !1); + var E = s({}, O); + g.FontAwesomeConfig = E; + var A = g || {}; + A.___FONT_AWESOME___ || (A.___FONT_AWESOME___ = {}), + A.___FONT_AWESOME___.styles || (A.___FONT_AWESOME___.styles = {}), + A.___FONT_AWESOME___.hooks || (A.___FONT_AWESOME___.hooks = {}), + A.___FONT_AWESOME___.shims || (A.___FONT_AWESOME___.shims = []); + var T = A.___FONT_AWESOME___, + C = []; y && ((m.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test( m.readyState @@ -31201,43 +32679,46 @@ object-assign m.addEventListener('DOMContentLoaded', function e() { m.removeEventListener('DOMContentLoaded', e), 1, - O.map(function(e) { + C.map(function(e) { return e(); }); })); - var E, - T = function() {}, - C = + var L, + P = 'pending', + D = 'settled', + j = 'fulfilled', + z = 'rejected', + N = function() {}, + R = void 0 !== e && void 0 !== e.process && 'function' == typeof e.process.emit, - L = void 0 === r ? setTimeout : r, - P = []; - function D() { - for (var e = 0; e < P.length; e++) P[e][0](P[e][1]); - (P = []), (E = !1); + I = void 0 === r ? setTimeout : r, + F = []; + function q() { + for (var e = 0; e < F.length; e++) F[e][0](F[e][1]); + (F = []), (L = !1); } - function z(e, t) { - P.push([e, t]), E || ((E = !0), L(D, 0)); + function B(e, t) { + F.push([e, t]), L || ((L = !0), I(q, 0)); } - function N(e) { + function H(e) { var t = e.owner, n = t._state, r = t._data, o = e[n], i = e.then; if ('function' == typeof o) { - n = 'fulfilled'; + n = j; try { r = o(r); } catch (e) { - F(i, e); + U(i, e); } } - j(i, r) || - ('fulfilled' === n && R(i, r), 'rejected' === n && F(i, r)); + Y(i, r) || (n === j && W(i, r), n === z && U(i, r)); } - function j(e, t) { + function Y(e, t) { var n; try { if (e === t) @@ -31251,88 +32732,85 @@ object-assign r.call( t, function(r) { - n || ((n = !0), t === r ? I(e, r) : R(e, r)); + n || ((n = !0), t === r ? V(e, r) : W(e, r)); }, function(t) { - n || ((n = !0), F(e, t)); + n || ((n = !0), U(e, t)); } ), !0 ); } } catch (t) { - return n || F(e, t), !0; + return n || U(e, t), !0; } return !1; } - function R(e, t) { - (e !== t && j(e, t)) || I(e, t); + function W(e, t) { + (e !== t && Y(e, t)) || V(e, t); } - function I(e, t) { - 'pending' === e._state && - ((e._state = 'settled'), (e._data = t), z(B, e)); + function V(e, t) { + e._state === P && ((e._state = D), (e._data = t), B(G, e)); } - function F(e, t) { - 'pending' === e._state && - ((e._state = 'settled'), (e._data = t), z(H, e)); + function U(e, t) { + e._state === P && ((e._state = D), (e._data = t), B(K, e)); } - function q(e) { - e._then = e._then.forEach(N); + function X(e) { + e._then = e._then.forEach(H); } - function B(e) { - (e._state = 'fulfilled'), q(e); + function G(e) { + (e._state = j), X(e); } - function H(t) { - (t._state = 'rejected'), - q(t), + function K(t) { + (t._state = z), + X(t), !t._handled && - C && + R && e.process.emit('unhandledRejection', t._data, t); } - function Y(t) { + function $(t) { e.process.emit('rejectionHandled', t); } - function W(e) { + function Q(e) { if ('function' != typeof e) throw new TypeError('Promise resolver ' + e + ' is not a function'); - if (this instanceof W == !1) + if (this instanceof Q == !1) throw new TypeError( "Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function." ); (this._then = []), (function(e, t) { function n(e) { - F(t, e); + U(t, e); } try { e(function(e) { - R(t, e); + W(t, e); }, n); } catch (e) { n(e); } })(e, this); } - (W.prototype = { - constructor: W, - _state: 'pending', + (Q.prototype = { + constructor: Q, + _state: P, _then: null, _data: void 0, _handled: !1, then: function(e, t) { var n = { owner: this, - then: new this.constructor(T), + then: new this.constructor(N), fulfilled: e, rejected: t }; return ( (!t && !e) || this._handled || - ((this._handled = !0), - 'rejected' === this._state && C && z(Y, this)), - 'fulfilled' === this._state || 'rejected' === this._state - ? z(N, n) + ((this._handled = !0), this._state === z && R && B($, this)), + this._state === j || this._state === z + ? B(H, n) : this._then.push(n), n.then ); @@ -31341,10 +32819,10 @@ object-assign return this.then(null, e); } }), - (W.all = function(e) { + (Q.all = function(e) { if (!Array.isArray(e)) throw new TypeError('You must pass an array to Promise.all().'); - return new W(function(t, n) { + return new Q(function(t, n) { var r = [], o = 0; function i(e) { @@ -31362,28 +32840,29 @@ object-assign o || t(r); }); }), - (W.race = function(e) { + (Q.race = function(e) { if (!Array.isArray(e)) throw new TypeError('You must pass an array to Promise.race().'); - return new W(function(t, n) { + return new Q(function(t, n) { for (var r, o = 0; o < e.length; o++) (r = e[o]) && 'function' == typeof r.then ? r.then(t, n) : t(r); }); }), - (W.resolve = function(e) { - return e && 'object' === o(e) && e.constructor === W + (Q.resolve = function(e) { + return e && 'object' === o(e) && e.constructor === Q ? e - : new W(function(t) { + : new Q(function(t) { t(e); }); }), - (W.reject = function(e) { - return new W(function(t, n) { + (Q.reject = function(e) { + return new Q(function(t, n) { n(e); }); }); - var V = { size: 16, x: 0, y: 0, rotate: 0, flipX: !1, flipY: !1 }; - function U(e) { + 'function' == typeof Promise && Promise; + var J = { size: 16, x: 0, y: 0, rotate: 0, flipX: !1, flipY: !1 }; + function Z(e) { if (e && y) { var t = m.createElement('style'); t.setAttribute('type', 'text/css'), (t.innerHTML = e); @@ -31399,14 +32878,13 @@ object-assign return m.head.insertBefore(t, r), e; } } - function X() { - for (var e = 12, t = ''; e-- > 0; ) - t += '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'[ - (62 * Math.random()) | 0 - ]; + var ee = + '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; + function te() { + for (var e = 12, t = ''; e-- > 0; ) t += ee[(62 * Math.random()) | 0]; return t; } - function G(e) { + function ne(e) { return '' .concat(e) .replace(/&/g, '&') @@ -31415,22 +32893,22 @@ object-assign .replace(//g, '>'); } - function K(e) { + function re(e) { return Object.keys(e || {}).reduce(function(t, n) { return t + ''.concat(n, ': ').concat(e[n], ';'); }, ''); } - function $(e) { + function oe(e) { return ( - e.size !== V.size || - e.x !== V.x || - e.y !== V.y || - e.rotate !== V.rotate || + e.size !== J.size || + e.x !== J.x || + e.y !== J.y || + e.rotate !== J.rotate || e.flipX || e.flipY ); } - function Q(e) { + function ie(e) { var t = e.transform, n = e.containerWidth, r = e.iconWidth, @@ -31451,8 +32929,8 @@ object-assign path: { transform: 'translate('.concat((r / 2) * -1, ' -256)') } }; } - var J = { x: 0, y: 0, width: '100%', height: '100%' }; - function Z(e) { + var ae = { x: 0, y: 0, width: '100%', height: '100%' }; + function se(e) { var t = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1]; return ( @@ -31462,7 +32940,7 @@ object-assign e ); } - function ee(e) { + function ce(e) { var t = e.icons, n = t.main, r = t.mask, @@ -31471,57 +32949,53 @@ object-assign a = e.transform, c = e.symbol, u = e.title, - l = e.maskId, - f = e.titleId, - d = e.extra, - p = e.watchable, - h = void 0 !== p && p, - g = r.found ? r : n, - m = g.width, - b = g.height, - y = 'fa-w-'.concat(Math.ceil((m / b) * 16)), - v = [ - k.replacementClass, - i ? ''.concat(k.familyPrefix, '-').concat(i) : '', - y + l = e.extra, + f = e.watchable, + d = void 0 !== f && f, + p = r.found ? r : n, + h = p.width, + g = p.height, + m = 'fa-w-'.concat(Math.ceil((h / g) * 16)), + b = [ + E.replacementClass, + i ? ''.concat(E.familyPrefix, '-').concat(i) : '', + m ] .filter(function(e) { - return -1 === d.classes.indexOf(e); + return -1 === l.classes.indexOf(e); }) - .concat(d.classes) + .concat(l.classes) .join(' '), - _ = { + y = { children: [], - attributes: s({}, d.attributes, { + attributes: s({}, l.attributes, { 'data-prefix': o, 'data-icon': i, - class: v, - role: d.attributes.role || 'img', + class: b, + role: l.attributes.role || 'img', xmlns: 'http://www.w3.org/2000/svg', - viewBox: '0 0 '.concat(m, ' ').concat(b) + viewBox: '0 0 '.concat(h, ' ').concat(g) }) }; - h && (_.attributes['data-fa-i2svg'] = ''), + d && (y.attributes[w] = ''), u && - _.children.push({ + y.children.push({ tag: 'title', attributes: { - id: - _.attributes['aria-labelledby'] || 'title-'.concat(f || X()) + id: y.attributes['aria-labelledby'] || 'title-'.concat(te()) }, children: [u] }); - var x = s({}, _, { + var v = s({}, y, { prefix: o, iconName: i, main: n, mask: r, - maskId: l, transform: a, symbol: c, - styles: d.styles + styles: l.styles }), - w = + _ = r.found && n.found ? (function(e) { var t, @@ -31529,84 +33003,83 @@ object-assign r = e.attributes, o = e.main, i = e.mask, - a = e.maskId, - c = e.transform, - u = o.width, - l = o.icon, - f = i.width, - d = i.icon, - p = Q({ transform: c, containerWidth: f, iconWidth: u }), - h = { + a = e.transform, + c = o.width, + u = o.icon, + l = i.width, + f = i.icon, + d = ie({ transform: a, containerWidth: l, iconWidth: c }), + p = { tag: 'rect', - attributes: s({}, J, { fill: 'white' }) + attributes: s({}, ae, { fill: 'white' }) }, - g = l.children ? { children: l.children.map(Z) } : {}, - m = { + h = u.children ? { children: u.children.map(se) } : {}, + g = { tag: 'g', - attributes: s({}, p.inner), + attributes: s({}, d.inner), children: [ - Z( + se( s( { - tag: l.tag, - attributes: s({}, l.attributes, p.path) + tag: u.tag, + attributes: s({}, u.attributes, d.path) }, - g + h ) ) ] }, - b = { + m = { tag: 'g', - attributes: s({}, p.outer), - children: [m] + attributes: s({}, d.outer), + children: [g] }, - y = 'mask-'.concat(a || X()), - v = 'clip-'.concat(a || X()), - _ = { + b = 'mask-'.concat(te()), + y = 'clip-'.concat(te()), + v = { tag: 'mask', - attributes: s({}, J, { - id: y, + attributes: s({}, ae, { + id: b, maskUnits: 'userSpaceOnUse', maskContentUnits: 'userSpaceOnUse' }), - children: [h, b] + children: [p, m] }, - x = { + _ = { tag: 'defs', children: [ { tag: 'clipPath', - attributes: { id: v }, + attributes: { id: y }, children: - ((t = d), 'g' === t.tag ? t.children : [t]) + ((t = f), 'g' === t.tag ? t.children : [t]) }, - _ + v ] }; return ( - n.push(x, { + n.push(_, { tag: 'rect', attributes: s( { fill: 'currentColor', - 'clip-path': 'url(#'.concat(v, ')'), - mask: 'url(#'.concat(y, ')') + 'clip-path': 'url(#'.concat(y, ')'), + mask: 'url(#'.concat(b, ')') }, - J + ae ) }), { children: n, attributes: r } ); - })(x) + })(v) : (function(e) { var t = e.children, n = e.attributes, r = e.main, o = e.transform, - i = K(e.styles); - if ((i.length > 0 && (n.style = i), $(o))) { - var a = Q({ + i = re(e.styles); + if ((i.length > 0 && (n.style = i), oe(o))) { + var a = ie({ transform: o, containerWidth: r.width, iconWidth: r.width @@ -31630,12 +33103,12 @@ object-assign }); } else t.push(r.icon); return { children: t, attributes: n }; - })(x), - M = w.children, - S = w.attributes; + })(v), + x = _.children, + M = _.attributes; return ( - (x.children = M), - (x.attributes = S), + (v.children = x), + (v.attributes = M), c ? (function(e) { var t = e.prefix, @@ -31655,7 +33128,7 @@ object-assign !0 === i ? '' .concat(t, '-') - .concat(k.familyPrefix, '-') + .concat(E.familyPrefix, '-') .concat(n) : i }), @@ -31664,7 +33137,7 @@ object-assign ] } ]; - })(x) + })(v) : (function(e) { var t = e.children, n = e.main, @@ -31672,9 +33145,9 @@ object-assign o = e.attributes, i = e.styles, a = e.transform; - if ($(a) && n.found && !r.found) { + if (oe(a) && n.found && !r.found) { var c = { x: n.width / n.height / 2, y: 0.5 }; - o.style = K( + o.style = re( s({}, i, { 'transform-origin': '' .concat(c.x + a.x / 16, 'em ') @@ -31683,12 +33156,12 @@ object-assign ); } return [{ tag: 'svg', attributes: o, children: t }]; - })(x) + })(v) ); } - var te = function() {}, - ne = - (k.measurePerformance && b && b.mark && b.measure, + var ue = function() {}, + le = + (E.measurePerformance && b && b.mark && b.measure, function(e, t, n, r) { var o, i, @@ -31711,30 +33184,29 @@ object-assign a = u(a, e[(i = s[o])], i, e); return a; }); - function re(e, t) { - var n = - arguments.length > 2 && void 0 !== arguments[2] - ? arguments[2] - : {}, - r = n.skipHooks, - o = void 0 !== r && r, - i = Object.keys(t).reduce(function(e, n) { + function fe(e, t) { + var n = (arguments.length > 2 && void 0 !== arguments[2] + ? arguments[2] + : {} + ).skipHooks, + r = void 0 !== n && n, + o = Object.keys(t).reduce(function(e, n) { var r = t[n]; return !!r.icon ? (e[r.iconName] = r.icon) : (e[n] = r), e; }, {}); - 'function' != typeof A.hooks.addPack || o - ? (A.styles[e] = s({}, A.styles[e] || {}, i)) - : A.hooks.addPack(e, i), - 'fas' === e && re('fa', t); - } - var oe = A.styles, - ie = A.shims, - ae = function() { + 'function' != typeof T.hooks.addPack || r + ? (T.styles[e] = s({}, T.styles[e] || {}, o)) + : T.hooks.addPack(e, o), + 'fas' === e && fe('fa', t); + } + var de = T.styles, + pe = T.shims, + he = function() { var e = function(e) { - return ne( - oe, + return le( + de, function(t, n, r) { - return (t[r] = ne(n, e, {})), t; + return (t[r] = le(n, e, {})), t; }, {} ); @@ -31752,9 +33224,9 @@ object-assign e ); }); - var t = 'far' in oe; - ne( - ie, + var t = 'far' in de; + le( + pe, function(e, n) { var r = n[0], o = n[1], @@ -31768,36 +33240,36 @@ object-assign {} ); }; - ae(); - A.styles; - function se(e, t, n) { + he(); + T.styles; + function ge(e, t, n) { if (e && e[t] && e[t][n]) return { prefix: t, iconName: n, icon: e[t][n] }; } - function ce(e) { + function me(e) { var t = e.tag, n = e.attributes, r = void 0 === n ? {} : n, o = e.children, i = void 0 === o ? [] : o; return 'string' == typeof e - ? G(e) + ? ne(e) : '<' .concat(t, ' ') .concat( (function(e) { return Object.keys(e || {}) .reduce(function(t, n) { - return t + ''.concat(n, '="').concat(G(e[n]), '" '); + return t + ''.concat(n, '="').concat(ne(e[n]), '" '); }, '') .trim(); })(r), '>' ) - .concat(i.map(ce).join(''), ''); } - var ue = function(e) { + var be = function(e) { var t = { size: 16, x: 0, y: 0, flipX: !1, flipY: !1, rotate: 0 }; return e ? e @@ -31836,40 +33308,40 @@ object-assign }, t) : t; }; - function le(e) { + function ye(e) { (this.name = 'MissingIcon'), (this.message = e || 'Icon unavailable'), (this.stack = new Error().stack); } - (le.prototype = Object.create(Error.prototype)), - (le.prototype.constructor = le); - var fe = { fill: 'currentColor' }, - de = { attributeType: 'XML', repeatCount: 'indefinite', dur: '2s' }, - pe = { + (ye.prototype = Object.create(Error.prototype)), + (ye.prototype.constructor = ye); + var ve = { fill: 'currentColor' }, + _e = { attributeType: 'XML', repeatCount: 'indefinite', dur: '2s' }, + we = { tag: 'path', - attributes: s({}, fe, { + attributes: s({}, ve, { d: 'M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z' }) }, - he = s({}, de, { attributeName: 'opacity' }); - s({}, fe, { cx: '256', cy: '364', r: '28' }), - s({}, de, { attributeName: 'r', values: '28;14;28;28;14;28;' }), - s({}, he, { values: '1;0;1;1;0;1;' }), - s({}, fe, { + xe = s({}, _e, { attributeName: 'opacity' }); + s({}, ve, { cx: '256', cy: '364', r: '28' }), + s({}, _e, { attributeName: 'r', values: '28;14;28;28;14;28;' }), + s({}, xe, { values: '1;0;1;1;0;1;' }), + s({}, ve, { opacity: '1', d: 'M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z' }), - s({}, he, { values: '1;0;0;0;0;1;' }), - s({}, fe, { + s({}, xe, { values: '1;0;0;0;0;1;' }), + s({}, ve, { opacity: '0', d: 'M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z' }), - s({}, he, { values: '0;0;1;1;0;0;' }), - A.styles; - function ge(e) { + s({}, xe, { values: '0;0;1;1;0;0;' }), + T.styles; + function Me(e) { var t = e[0], n = e[1], r = c(e.slice(4), 1)[0]; @@ -31881,15 +33353,15 @@ object-assign ? { tag: 'g', attributes: { - class: ''.concat(k.familyPrefix, '-').concat(x.GROUP) + class: ''.concat(E.familyPrefix, '-').concat(k.GROUP) }, children: [ { tag: 'path', attributes: { class: '' - .concat(k.familyPrefix, '-') - .concat(x.SECONDARY), + .concat(E.familyPrefix, '-') + .concat(k.SECONDARY), fill: 'currentColor', d: r[0] } @@ -31897,7 +33369,7 @@ object-assign { tag: 'path', attributes: { - class: ''.concat(k.familyPrefix, '-').concat(x.PRIMARY), + class: ''.concat(E.familyPrefix, '-').concat(k.PRIMARY), fill: 'currentColor', d: r[1] } @@ -31907,34 +33379,36 @@ object-assign : { tag: 'path', attributes: { fill: 'currentColor', d: r } } }; } - A.styles; - function me() { - var e = 'svg-inline--fa', - t = k.familyPrefix, - n = k.replacementClass, - r = - 'svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}'; - if ('fa' !== t || n !== e) { - var o = new RegExp('\\.'.concat('fa', '\\-'), 'g'), - i = new RegExp('\\--'.concat('fa', '\\-'), 'g'), - a = new RegExp('\\.'.concat(e), 'g'); - r = r - .replace(o, '.'.concat(t, '-')) - .replace(i, '--'.concat(t, '-')) - .replace(a, '.'.concat(n)); + T.styles; + var ke = + 'svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}'; + function Se() { + var e = v, + t = _, + n = E.familyPrefix, + r = E.replacementClass, + o = ke; + if (n !== e || r !== t) { + var i = new RegExp('\\.'.concat(e, '\\-'), 'g'), + a = new RegExp('\\--'.concat(e, '\\-'), 'g'), + s = new RegExp('\\.'.concat(t), 'g'); + o = o + .replace(i, '.'.concat(n, '-')) + .replace(a, '--'.concat(n, '-')) + .replace(s, '.'.concat(r)); } - return r; + return o; } - function be() { - k.autoAddCss && !we && (U(me()), (we = !0)); + function Oe() { + E.autoAddCss && !Le && (Z(Se()), (Le = !0)); } - function ye(e, t) { + function Ee(e, t) { return ( Object.defineProperty(e, 'abstract', { get: t }), Object.defineProperty(e, 'html', { get: function() { return e.abstract.map(function(e) { - return ce(e); + return me(e); }); } }), @@ -31949,14 +33423,14 @@ object-assign e ); } - function ve(e) { + function Ae(e) { var t = e.prefix, n = void 0 === t ? 'fa' : t, r = e.iconName; - if (r) return se(xe.definitions, n, r) || se(A.styles, n, r); + if (r) return ge(Ce.definitions, n, r) || ge(T.styles, n, r); } - var _e, - xe = new ((function() { + var Te, + Ce = new ((function() { function e() { !(function(e, t) { if (!(e instanceof t)) @@ -31983,8 +33457,8 @@ object-assign var o = n.reduce(this._pullDefinitions, {}); Object.keys(o).forEach(function(t) { (e.definitions[t] = s({}, e.definitions[t] || {}, o[t])), - re(t, o[t]), - ae(); + fe(t, o[t]), + he(); }); } }, @@ -32015,65 +33489,59 @@ object-assign e ); })())(), - we = !1, - Me = { + Le = !1, + Pe = { transform: function(e) { - return ue(e); + return be(e); } }, - ke = - ((_e = function(e) { + De = + ((Te = function(e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = t.transform, - r = void 0 === n ? V : n, + r = void 0 === n ? J : n, o = t.symbol, i = void 0 !== o && o, a = t.mask, c = void 0 === a ? null : a, - u = t.maskId, + u = t.title, l = void 0 === u ? null : u, - f = t.title, - d = void 0 === f ? null : f, - p = t.titleId, - h = void 0 === p ? null : p, - g = t.classes, - m = void 0 === g ? [] : g, - b = t.attributes, - y = void 0 === b ? {} : b, - v = t.styles, - _ = void 0 === v ? {} : v; + f = t.classes, + d = void 0 === f ? [] : f, + p = t.attributes, + h = void 0 === p ? {} : p, + g = t.styles, + m = void 0 === g ? {} : g; if (e) { - var x = e.prefix, - w = e.iconName, - M = e.icon; - return ye(s({ type: 'icon' }, e), function() { + var b = e.prefix, + y = e.iconName, + v = e.icon; + return Ee(s({ type: 'icon' }, e), function() { return ( - be(), - k.autoA11y && - (d - ? (y['aria-labelledby'] = '' - .concat(k.replacementClass, '-title-') - .concat(h || X())) - : ((y['aria-hidden'] = 'true'), - (y.focusable = 'false'))), - ee({ + Oe(), + E.autoA11y && + (l + ? (h['aria-labelledby'] = '' + .concat(E.replacementClass, '-title-') + .concat(te())) + : ((h['aria-hidden'] = 'true'), + (h.focusable = 'false'))), + ce({ icons: { - main: ge(M), + main: Me(v), mask: c - ? ge(c.icon) + ? Me(c.icon) : { found: !1, width: null, height: null, icon: {} } }, - prefix: x, - iconName: w, - transform: s({}, V, r), + prefix: b, + iconName: y, + transform: s({}, J, r), symbol: i, - title: d, - maskId: l, - titleId: h, - extra: { attributes: y, styles: _, classes: m } + title: l, + extra: { attributes: h, styles: m, classes: d } }) ); }); @@ -32084,14 +33552,14 @@ object-assign arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, - n = (e || {}).icon ? e : ve(e || {}), + n = (e || {}).icon ? e : Ae(e || {}), r = t.mask; return ( - r && (r = (r || {}).icon ? r : ve(r || {})), - _e(n, s({}, t, { mask: r })) + r && (r = (r || {}).icon ? r : Ae(r || {})), + Te(n, s({}, t, { mask: r })) ); }); - }.call(this, n(26), n(506).setImmediate)); + }.call(this, n(33), n(550).setImmediate)); }, function(e, t) { e.exports = function(e, t) { @@ -32103,7 +33571,7 @@ object-assign function(e, t, n) { (function(t) { for ( - var r = n(511), + var r = n(555), o = 'undefined' == typeof window ? t : window, i = ['moz', 'webkit'], a = 'AnimationFrame', @@ -32156,15 +33624,15 @@ object-assign (e.requestAnimationFrame = s), (e.cancelAnimationFrame = c); }); - }.call(this, n(26))); + }.call(this, n(33))); }, function(e, t, n) { - var r = n(102), - o = n(461), - i = n(462), - a = n(463), - s = n(464), - c = n(465); + var r = n(117), + o = n(500), + i = n(501), + a = n(502), + s = n(503), + c = n(504); function u(e) { var t = (this.__data__ = new r(e)); this.size = t.size; @@ -32177,11 +33645,11 @@ object-assign (e.exports = u); }, function(e, t, n) { - var r = n(456), - o = n(457), - i = n(458), - a = n(459), - s = n(460); + var r = n(495), + o = n(496), + i = n(497), + a = n(498), + s = n(499); function c(e) { var t = -1, n = null == e ? 0 : e.length; @@ -32198,18 +33666,18 @@ object-assign (e.exports = c); }, function(e, t, n) { - var r = n(84); + var r = n(99); e.exports = function(e, t) { for (var n = e.length; n--; ) if (r(e[n][0], t)) return n; return -1; }; }, function(e, t, n) { - var r = n(54)(Object, 'create'); + var r = n(66)(Object, 'create'); e.exports = r; }, function(e, t, n) { - var r = n(480); + var r = n(519); e.exports = function(e, t) { var n = e.__data__; return r(t) ? n['string' == typeof t ? 'string' : 'hash'] : n.map; @@ -32223,8 +33691,8 @@ object-assign }; }, function(e, t, n) { - var r = n(487), - o = n(40), + var r = n(526), + o = n(53), i = Object.prototype, a = i.hasOwnProperty, s = i.propertyIsEnumerable, @@ -32240,17 +33708,17 @@ object-assign e.exports = c; }, function(e, t, n) { - var r = n(490), - o = n(139), - i = n(140), + var r = n(529), + o = n(154), + i = n(155), a = i && i.isTypedArray, s = a ? o(a) : r; e.exports = s; }, function(e, t, n) { - var r = n(197), - o = n(493), - i = n(45); + var r = n(218), + o = n(532), + i = n(58); e.exports = function(e) { return i(e) ? r(e, !0) : o(e); }; @@ -32285,11 +33753,11 @@ object-assign }); }, function(e, t, n) { - var r = n(599), - o = n(602), - i = n(110), - a = n(22), - s = n(612); + var r = n(643), + o = n(646), + i = n(125), + a = n(34), + s = n(656); e.exports = function(e) { return 'function' == typeof e ? e @@ -32303,23 +33771,25 @@ object-assign }; }, function(e, t, n) { - var r = n(55), - o = n(40); + var r = n(67), + o = n(53), + i = '[object Symbol]'; e.exports = function(e) { - return 'symbol' == typeof e || (o(e) && '[object Symbol]' == r(e)); + return 'symbol' == typeof e || (o(e) && r(e) == i); }; }, function(e, t, n) { - var r = n(113); + var r = n(128), + o = 1 / 0; e.exports = function(e) { if ('string' == typeof e || r(e)) return e; var t = e + ''; - return '0' == t && 1 / e == -1 / 0 ? '-0' : t; + return '0' == t && 1 / e == -o ? '-0' : t; }; }, function(e, t, n) { 'use strict'; - var r = n(710); + var r = n(754); e.exports = Function.prototype.bind || r; }, function(e, t, n) { @@ -32364,7 +33834,7 @@ object-assign })() ); } - var s = (0, n(11).and)( + var s = (0, n(21).and)( [ o.default.instanceOf(Set), function(e, t) { @@ -32374,10 +33844,9 @@ object-assign s++ ) r[s - 2] = arguments[s]; - var c, - u = e[t]; + var c; return ( - a(u).some(function(e, n) { + a(e[t]).some(function(e, n) { var a, s = ''.concat(t, ': index ').concat(n); return ( @@ -32403,9 +33872,9 @@ object-assign var n = r.default.isMoment(e) ? e : (0, o.default)(e, t); return n ? n.format(i.ISO_FORMAT) : null; }); - var r = a(n(2)), - o = a(n(68)), - i = n(7); + var r = a(n(4)), + o = a(n(82)), + i = n(15); function a(e) { return e && e.__esModule ? e : { default: e }; } @@ -32414,7 +33883,7 @@ object-assign 'use strict'; n.r(t), n.d(t, 'addEventListener', function() { - return c; + return u; }); var r = !( 'undefined' == typeof window || @@ -32502,13 +33971,13 @@ object-assign } }; }); - function c(e, t, n, r) { - e.__consolidated_events_handlers__ || - (e.__consolidated_events_handlers__ = new s(e)); + var c = '__consolidated_events_handlers__'; + function u(e, t, n, r) { + e[c] || (e[c] = new s(e)); var o = (function(e) { if (e) return i() ? e : !!e.capture; })(r); - return e.__consolidated_events_handlers__.add(t, n, o); + return e[c].add(t, n, o); } }, function(e, t, n) { @@ -32518,9 +33987,9 @@ object-assign var n = r.default.isMoment(e) ? e : (0, o.default)(e, t); return n ? n.format(i.ISO_MONTH_FORMAT) : null; }); - var r = a(n(2)), - o = a(n(68)), - i = n(7); + var r = a(n(4)), + o = a(n(82)), + i = n(15); function a(e) { return e && e.__esModule ? e : { default: e }; } @@ -32531,12 +34000,12 @@ object-assign (t.default = function(e, t) { return ( !(!r.default.isMoment(e) || !r.default.isMoment(t)) && - !(0, o.default)(e, t) && !(0, i.default)(e, t) + (!(0, o.default)(e, t) && !(0, i.default)(e, t)) ); }); - var r = a(n(2)), - o = a(n(93)), - i = a(n(67)); + var r = a(n(4)), + o = a(n(108)), + i = a(n(81)); function a(e) { return e && e.__esModule ? e : { default: e }; } @@ -32552,8 +34021,8 @@ object-assign }; }, function(e, t, n) { - var r = n(405), - o = n(165); + var r = n(435), + o = n(183); e.exports = Object.keys || function(e) { @@ -32580,8 +34049,8 @@ object-assign function(e, t, n) { 'use strict'; t.__esModule = !0; - var r = a(n(754)), - o = a(n(766)), + var r = a(n(807)), + o = a(n(819)), i = 'function' == typeof o.default && 'symbol' == typeof r.default ? function(e) { @@ -32761,10 +34230,10 @@ object-assign function _(e) { 0 == e.a && e.c && (e.c(), (e.c = null)); } - function x(e) { + function w(e) { this.a = e || '-'; } - function w(e, t) { + function x(e, t) { (this.c = e), (this.f = 4), (this.a = 'n'); var n = (t || 'n4').match(/^([nio])([1-9])$/i); n && ((this.a = n[1]), (this.f = parseInt(n[2], 10))); @@ -32789,7 +34258,7 @@ object-assign 'o' === e.a ? (t = 'oblique') : 'i' === e.a && (t = 'italic'), t ); } - function A(e) { + function O(e) { var t = 4, n = 'n', r = null; @@ -32807,15 +34276,15 @@ object-assign n + t ); } - function O(e, t) { + function E(e, t) { (this.c = e), (this.f = e.o.document.documentElement), (this.h = t), - (this.a = new x('-')), + (this.a = new w('-')), (this.j = !1 !== t.events), (this.g = !1 !== t.classes); } - function E(e) { + function A(e) { if (e.g) { var t = h(e.f, e.a.c('wf', 'active')), n = [], @@ -32849,7 +34318,7 @@ object-assign '00;' ); } - function z(e, t, n, r, o, i) { + function j(e, t, n, r, o, i) { (this.g = e), (this.j = t), (this.a = r), @@ -32857,7 +34326,7 @@ object-assign (this.f = o || 3e3), (this.h = i || void 0); } - function N(e, t, n, r, o, i, a) { + function z(e, t, n, r, o, i, a) { (this.v = e), (this.B = t), (this.c = n), @@ -32871,25 +34340,25 @@ object-assign (this.h = new L(this.c, this.s)), (this.j = new L(this.c, this.s)), (this.m = new L(this.c, this.s)), - (e = D((e = new w(this.a.c + ',serif', k(this.a))))), + (e = D((e = new x(this.a.c + ',serif', k(this.a))))), (this.g.a.style.cssText = e), - (e = D((e = new w(this.a.c + ',sans-serif', k(this.a))))), + (e = D((e = new x(this.a.c + ',sans-serif', k(this.a))))), (this.h.a.style.cssText = e), - (e = D((e = new w('serif', k(this.a))))), + (e = D((e = new x('serif', k(this.a))))), (this.j.a.style.cssText = e), - (e = D((e = new w('sans-serif', k(this.a))))), + (e = D((e = new x('sans-serif', k(this.a))))), (this.m.a.style.cssText = e), P(this.g), P(this.h), P(this.j), P(this.m); } - (x.prototype.c = function(e) { + (w.prototype.c = function(e) { for (var t = [], n = 0; n < arguments.length; n++) t.push(arguments[n].replace(/[\W_]+/g, '').toLowerCase()); return t.join(this.a); }), - (z.prototype.start = function() { + (j.prototype.start = function() { var e = this.c.o.document, t = this, n = s(), @@ -32927,7 +34396,7 @@ object-assign } ); }); - var j = { D: 'serif', C: 'sans-serif' }, + var N = { D: 'serif', C: 'sans-serif' }, R = null; function I() { if (null === R) { @@ -32942,8 +34411,8 @@ object-assign return R; } function F(e, t, n) { - for (var r in j) - if (j.hasOwnProperty(r) && t === e.f[j[r]] && n === e.f[j[r]]) + for (var r in N) + if (N.hasOwnProperty(r) && t === e.f[N[r]] && n === e.f[N[r]]) return !0; return !1; } @@ -32985,7 +34454,7 @@ object-assign (this.m = this.j = !1), (this.s = n); } - N.prototype.start = function() { + z.prototype.start = function() { (this.f.serif = this.j.a.offsetWidth), (this.f['sans-serif'] = this.m.a.offsetWidth), (this.A = s()), @@ -33003,7 +34472,7 @@ object-assign [e.a.c('wf', 'loading'), e.a.c('wf', 'inactive')] ), T(e, 'active')) - : E(e.a)); + : A(e.a)); } function V(e) { (this.j = e), @@ -33017,7 +34486,7 @@ object-assign setTimeout(function() { var e = o || null, s = r || {}; - if (0 === n.length && i) E(t.a); + if (0 === n.length && i) A(t.a); else { (t.f += n.length), i && (t.j = i); var c, @@ -33045,8 +34514,8 @@ object-assign Y = h ? 42 < parseInt(h[1], 10) : !g; } else Y = !1; (d = Y - ? new z(a(t.g, t), a(t.h, t), t.c, l, t.s, f) - : new N(a(t.g, t), a(t.h, t), t.c, l, t.s, e, f)), + ? new j(a(t.g, t), a(t.h, t), t.c, l, t.s, f) + : new z(a(t.g, t), a(t.h, t), t.c, l, t.s, e, f)), u.push(d); } for (c = 0; c < u.length; c++) u[c].start(); @@ -33113,7 +34582,7 @@ object-assign r[t].load(function(t, n, r) { U(e, i, t, n, r); }); - })(this, new O(this.c, e), e); + })(this, new E(this.c, e), e); }), (X.prototype.load = function(e) { var t = this, @@ -33144,8 +34613,8 @@ object-assign var c = i[s].fontfamily; null != i[s].fontStyle && null != i[s].fontWeight ? ((r = i[s].fontStyle + i[s].fontWeight), - a.push(new w(c, r))) - : a.push(new w(c)); + a.push(new x(c, r))) + : a.push(new x(c)); } e(a); } else @@ -33169,8 +34638,8 @@ object-assign for (t = 0, n = o.length; t < n; t++) if ((r = o[t].split(':'))[1]) for (var c = r[1].split(','), u = 0; u < c.length; u += 1) - s.push(new w(r[0], c[u])); - else s.push(new w(r[0])); + s.push(new x(r[0], c[u])); + else s.push(new x(r[0])); v(a, function() { e(s, i); }); @@ -33280,7 +34749,7 @@ object-assign r < i.length; r += 1 ) - e.a.push(new w(o, i[r])); + e.a.push(new x(o, i[r])); } })(i), g( @@ -33324,7 +34793,7 @@ object-assign s < a.length; s++ ) - r.push(new w(i, a[s])); + r.push(new x(i, a[s])); try { n.Typekit.load({ events: !1, classes: !1, async: !0 }); } catch (e) {} @@ -33346,9 +34815,9 @@ object-assign for (var o = 0, i = n.fonts.length; o < i; ++o) { var a = n.fonts[o]; r.a.push( - new w( + new x( a.name, - A('font-weight:' + a.weight + ';font-style:' + a.style) + O('font-weight:' + a.weight + ';font-style:' + a.style) ) ); } @@ -33458,10 +34927,10 @@ object-assign }, function(e, t, n) { 'use strict'; - var r = s(n(512)), - o = s(n(517)), - i = s(n(204)), - a = s(n(202)); + var r = s(n(556)), + o = s(n(561)), + i = s(n(226)), + a = s(n(224)); function s(e) { return e && e.__esModule ? e : { default: e }; } @@ -33475,29 +34944,28 @@ object-assign , , function(e, t, n) { - var r = n(54)(n(36), 'Map'); + var r = n(66)(n(48), 'Map'); e.exports = r; }, function(e, t, n) { - var r = n(55), - o = n(35); + var r = n(67), + o = n(47), + i = '[object AsyncFunction]', + a = '[object Function]', + s = '[object GeneratorFunction]', + c = '[object Proxy]'; e.exports = function(e) { if (!o(e)) return !1; var t = r(e); - return ( - '[object Function]' == t || - '[object GeneratorFunction]' == t || - '[object AsyncFunction]' == t || - '[object Proxy]' == t - ); + return t == a || t == s || t == i || t == c; }; }, function(e, t, n) { - var r = n(472), - o = n(479), - i = n(481), - a = n(482), - s = n(483); + var r = n(511), + o = n(518), + i = n(520), + a = n(521), + s = n(522); function c(e) { var t = -1, n = null == e ? 0 : e.length; @@ -33514,7 +34982,7 @@ object-assign (e.exports = c); }, function(e, t, n) { - var r = n(186); + var r = n(207); e.exports = function(e, t, n) { '__proto__' == t && r ? r(e, t, { @@ -33527,21 +34995,20 @@ object-assign }; }, function(e, t, n) { - var r = n(190); + var r = n(211); e.exports = function(e) { var t = new e.constructor(e.byteLength); return new r(t).set(new r(e)), t; }; }, function(e, t, n) { - var r = n(193)(Object.getPrototypeOf, Object); + var r = n(214)(Object.getPrototypeOf, Object); e.exports = r; }, function(e, t) { + var n = 9007199254740991; e.exports = function(e) { - return ( - 'number' == typeof e && e > -1 && e % 1 == 0 && e <= 9007199254740991 - ); + return 'number' == typeof e && e > -1 && e % 1 == 0 && e <= n; }; }, function(e, t) { @@ -33553,7 +35020,7 @@ object-assign }, function(e, t, n) { (function(e) { - var r = n(183), + var r = n(204), o = t && !t.nodeType && t, i = o && 'object' == typeof e && e && !e.nodeType && e, a = i && i.exports === o && r.process, @@ -33564,15 +35031,16 @@ object-assign } catch (e) {} })(); e.exports = s; - }.call(this, n(63)(e))); + }.call(this, n(77)(e))); }, function(e, t) { - var n = /^(?:0|[1-9]\d*)$/; + var n = 9007199254740991, + r = /^(?:0|[1-9]\d*)$/; e.exports = function(e, t) { - var r = typeof e; + var o = typeof e; return ( - !!(t = null == t ? 9007199254740991 : t) && - ('number' == r || ('symbol' != r && n.test(e))) && + !!(t = null == t ? n : t) && + ('number' == o || ('symbol' != o && r.test(e))) && e > -1 && e % 1 == 0 && e < t @@ -33580,8 +35048,8 @@ object-assign }; }, function(e, t, n) { - var r = n(519), - o = n(40); + var r = n(563), + o = n(53); e.exports = function e(t, n, i, a, s) { return ( t === n || @@ -33592,8 +35060,8 @@ object-assign }; }, function(e, t, n) { - var r = n(528), - o = n(210), + var r = n(572), + o = n(232), i = Object.prototype.propertyIsEnumerable, a = Object.getOwnPropertySymbols, s = a @@ -33610,46 +35078,63 @@ object-assign }, function(e, t, n) { (function(e, n) { - var r = '[object Arguments]', - o = '[object Map]', - i = '[object Object]', - a = '[object Set]', - s = /^\[object .+?Constructor\]$/, - c = /^(?:0|[1-9]\d*)$/, - u = {}; - (u['[object Float32Array]'] = u['[object Float64Array]'] = u[ + var r = 200, + o = '__lodash_hash_undefined__', + i = 1, + a = 2, + s = 9007199254740991, + c = '[object Arguments]', + u = '[object Array]', + l = '[object AsyncFunction]', + f = '[object Boolean]', + d = '[object Date]', + p = '[object Error]', + h = '[object Function]', + g = '[object GeneratorFunction]', + m = '[object Map]', + b = '[object Number]', + y = '[object Null]', + v = '[object Object]', + _ = '[object Proxy]', + w = '[object RegExp]', + x = '[object Set]', + M = '[object String]', + k = '[object Symbol]', + S = '[object Undefined]', + O = '[object ArrayBuffer]', + E = '[object DataView]', + A = /^\[object .+?Constructor\]$/, + T = /^(?:0|[1-9]\d*)$/, + C = {}; + (C['[object Float32Array]'] = C['[object Float64Array]'] = C[ '[object Int8Array]' - ] = u['[object Int16Array]'] = u['[object Int32Array]'] = u[ + ] = C['[object Int16Array]'] = C['[object Int32Array]'] = C[ '[object Uint8Array]' - ] = u['[object Uint8ClampedArray]'] = u['[object Uint16Array]'] = u[ + ] = C['[object Uint8ClampedArray]'] = C['[object Uint16Array]'] = C[ '[object Uint32Array]' ] = !0), - (u[r] = u['[object Array]'] = u['[object ArrayBuffer]'] = u[ - '[object Boolean]' - ] = u['[object DataView]'] = u['[object Date]'] = u[ - '[object Error]' - ] = u['[object Function]'] = u[o] = u['[object Number]'] = u[i] = u[ - '[object RegExp]' - ] = u[a] = u['[object String]'] = u['[object WeakMap]'] = !1); - var l = 'object' == typeof e && e && e.Object === Object && e, - f = 'object' == typeof self && self && self.Object === Object && self, - d = l || f || Function('return this')(), - p = t && !t.nodeType && t, - h = p && 'object' == typeof n && n && !n.nodeType && n, - g = h && h.exports === p, - m = g && l.process, - b = (function() { + (C[c] = C[u] = C[O] = C[f] = C[E] = C[d] = C[p] = C[h] = C[m] = C[ + b + ] = C[v] = C[w] = C[x] = C[M] = C['[object WeakMap]'] = !1); + var L = 'object' == typeof e && e && e.Object === Object && e, + P = 'object' == typeof self && self && self.Object === Object && self, + D = L || P || Function('return this')(), + j = t && !t.nodeType && t, + z = j && 'object' == typeof n && n && !n.nodeType && n, + N = z && z.exports === j, + R = N && L.process, + I = (function() { try { - return m && m.binding && m.binding('util'); + return R && R.binding && R.binding('util'); } catch (e) {} })(), - y = b && b.isTypedArray; - function v(e, t) { + F = I && I.isTypedArray; + function q(e, t) { for (var n = -1, r = null == e ? 0 : e.length; ++n < r; ) if (t(e[n], n, e)) return !0; return !1; } - function _(e) { + function B(e) { var t = -1, n = Array(e.size); return ( @@ -33659,7 +35144,7 @@ object-assign n ); } - function x(e) { + function H(e) { var t = -1, n = Array(e.size); return ( @@ -33669,22 +35154,22 @@ object-assign n ); } - var w, - M, - k, - S = Array.prototype, - A = Function.prototype, - O = Object.prototype, - E = d['__core-js_shared__'], - T = A.toString, - C = O.hasOwnProperty, - L = (w = /[^.]+$/.exec((E && E.keys && E.keys.IE_PROTO) || '')) - ? 'Symbol(src)_1.' + w + var Y, + W, + V, + U = Array.prototype, + X = Function.prototype, + G = Object.prototype, + K = D['__core-js_shared__'], + $ = X.toString, + Q = G.hasOwnProperty, + J = (Y = /[^.]+$/.exec((K && K.keys && K.keys.IE_PROTO) || '')) + ? 'Symbol(src)_1.' + Y : '', - P = O.toString, - D = RegExp( + Z = G.toString, + ee = RegExp( '^' + - T.call(C) + $.call(Q) .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') .replace( /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, @@ -33692,34 +35177,34 @@ object-assign ) + '$' ), - z = g ? d.Buffer : void 0, - N = d.Symbol, - j = d.Uint8Array, - R = O.propertyIsEnumerable, - I = S.splice, - F = N ? N.toStringTag : void 0, - q = Object.getOwnPropertySymbols, - B = z ? z.isBuffer : void 0, - H = - ((M = Object.keys), - (k = Object), + te = N ? D.Buffer : void 0, + ne = D.Symbol, + re = D.Uint8Array, + oe = G.propertyIsEnumerable, + ie = U.splice, + ae = ne ? ne.toStringTag : void 0, + se = Object.getOwnPropertySymbols, + ce = te ? te.isBuffer : void 0, + ue = + ((W = Object.keys), + (V = Object), function(e) { - return M(k(e)); - }), - Y = be(d, 'DataView'), - W = be(d, 'Map'), - V = be(d, 'Promise'), - U = be(d, 'Set'), - X = be(d, 'WeakMap'), - G = be(Object, 'create'), - K = xe(Y), - $ = xe(W), - Q = xe(V), - J = xe(U), - Z = xe(X), - ee = N ? N.prototype : void 0, - te = ee ? ee.valueOf : void 0; - function ne(e) { + return W(V(e)); + }), + le = Ie(D, 'DataView'), + fe = Ie(D, 'Map'), + de = Ie(D, 'Promise'), + pe = Ie(D, 'Set'), + he = Ie(D, 'WeakMap'), + ge = Ie(Object, 'create'), + me = He(le), + be = He(fe), + ye = He(de), + ve = He(pe), + _e = He(he), + we = ne ? ne.prototype : void 0, + xe = we ? we.valueOf : void 0; + function Me(e) { var t = -1, n = null == e ? 0 : e.length; for (this.clear(); ++t < n; ) { @@ -33727,7 +35212,7 @@ object-assign this.set(r[0], r[1]); } } - function re(e) { + function ke(e) { var t = -1, n = null == e ? 0 : e.length; for (this.clear(); ++t < n; ) { @@ -33735,7 +35220,7 @@ object-assign this.set(r[0], r[1]); } } - function oe(e) { + function Se(e) { var t = -1, n = null == e ? 0 : e.length; for (this.clear(); ++t < n; ) { @@ -33743,20 +35228,20 @@ object-assign this.set(r[0], r[1]); } } - function ie(e) { + function Oe(e) { var t = -1, n = null == e ? 0 : e.length; - for (this.__data__ = new oe(); ++t < n; ) this.add(e[t]); + for (this.__data__ = new Se(); ++t < n; ) this.add(e[t]); } - function ae(e) { - var t = (this.__data__ = new re(e)); + function Ee(e) { + var t = (this.__data__ = new ke(e)); this.size = t.size; } - function se(e, t) { - var n = ke(e), - r = !n && Me(e), - o = !n && !r && Se(e), - i = !n && !r && !o && Ce(e), + function Ae(e, t) { + var n = Ve(e), + r = !n && We(e), + o = !n && !r && Ue(e), + i = !n && !r && !o && Qe(e), a = n || r || o || i, s = a ? (function(e, t) { @@ -33766,7 +35251,7 @@ object-assign : [], c = s.length; for (var u in e) - (!t && !C.call(e, u)) || + (!t && !Q.call(e, u)) || (a && ('length' == u || (o && ('offset' == u || 'parent' == u)) || @@ -33774,234 +35259,236 @@ object-assign ('buffer' == u || 'byteLength' == u || 'byteOffset' == u)) || - _e(u, c))) || + Be(u, c))) || s.push(u); return s; } - function ce(e, t) { - for (var n = e.length; n--; ) if (we(e[n][0], t)) return n; + function Te(e, t) { + for (var n = e.length; n--; ) if (Ye(e[n][0], t)) return n; return -1; } - function ue(e) { + function Ce(e) { return null == e ? void 0 === e - ? '[object Undefined]' - : '[object Null]' - : F && F in Object(e) + ? S + : y + : ae && ae in Object(e) ? (function(e) { - var t = C.call(e, F), - n = e[F]; + var t = Q.call(e, ae), + n = e[ae]; try { - e[F] = void 0; + e[ae] = void 0; var r = !0; } catch (e) {} - var o = P.call(e); - r && (t ? (e[F] = n) : delete e[F]); + var o = Z.call(e); + r && (t ? (e[ae] = n) : delete e[ae]); return o; })(e) : (function(e) { - return P.call(e); + return Z.call(e); })(e); } - function le(e) { - return Te(e) && ue(e) == r; + function Le(e) { + return $e(e) && Ce(e) == c; } - function fe(e, t, n, s, c) { + function Pe(e, t, n, r, o) { return ( e === t || - (null == e || null == t || (!Te(e) && !Te(t)) + (null == e || null == t || (!$e(e) && !$e(t)) ? e != e && t != t - : (function(e, t, n, s, c, u) { - var l = ke(e), - f = ke(t), - d = l ? '[object Array]' : ve(e), - p = f ? '[object Array]' : ve(t), - h = (d = d == r ? i : d) == i, - g = (p = p == r ? i : p) == i, - m = d == p; - if (m && Se(e)) { - if (!Se(t)) return !1; - (l = !0), (h = !1); - } - if (m && !h) + : (function(e, t, n, r, o, s) { + var l = Ve(e), + h = Ve(t), + g = l ? u : qe(e), + y = h ? u : qe(t), + _ = (g = g == c ? v : g) == v, + S = (y = y == c ? v : y) == v, + A = g == y; + if (A && Ue(e)) { + if (!Ue(t)) return !1; + (l = !0), (_ = !1); + } + if (A && !_) return ( - u || (u = new ae()), - l || Ce(e) - ? he(e, t, n, s, c, u) - : (function(e, t, n, r, i, s, c) { + s || (s = new Ee()), + l || Qe(e) + ? ze(e, t, n, r, o, s) + : (function(e, t, n, r, o, s, c) { switch (n) { - case '[object DataView]': + case E: if ( e.byteLength != t.byteLength || e.byteOffset != t.byteOffset ) return !1; (e = e.buffer), (t = t.buffer); - case '[object ArrayBuffer]': + case O: return !( e.byteLength != t.byteLength || - !s(new j(e), new j(t)) + !s(new re(e), new re(t)) ); - case '[object Boolean]': - case '[object Date]': - case '[object Number]': - return we(+e, +t); - case '[object Error]': + case f: + case d: + case b: + return Ye(+e, +t); + case p: return ( e.name == t.name && e.message == t.message ); - case '[object RegExp]': - case '[object String]': + case w: + case M: return e == t + ''; - case o: - var u = _; - case a: - var l = 1 & r; - if ((u || (u = x), e.size != t.size && !l)) + case m: + var u = B; + case x: + var l = r & i; + if ((u || (u = H), e.size != t.size && !l)) return !1; - var f = c.get(e); - if (f) return f == t; - (r |= 2), c.set(e, t); - var d = he(u(e), u(t), r, i, s, c); - return c.delete(e), d; - case '[object Symbol]': - if (te) return te.call(e) == te.call(t); + var h = c.get(e); + if (h) return h == t; + (r |= a), c.set(e, t); + var g = ze(u(e), u(t), r, o, s, c); + return c.delete(e), g; + case k: + if (xe) return xe.call(e) == xe.call(t); } return !1; - })(e, t, d, n, s, c, u) + })(e, t, g, n, r, o, s) ); - if (!(1 & n)) { - var b = h && C.call(e, '__wrapped__'), - y = g && C.call(t, '__wrapped__'); - if (b || y) { - var v = b ? e.value() : e, - w = y ? t.value() : t; - return u || (u = new ae()), c(v, w, n, s, u); + if (!(n & i)) { + var T = _ && Q.call(e, '__wrapped__'), + C = S && Q.call(t, '__wrapped__'); + if (T || C) { + var L = T ? e.value() : e, + P = C ? t.value() : t; + return s || (s = new Ee()), o(L, P, n, r, s); } } - if (!m) return !1; + if (!A) return !1; return ( - u || (u = new ae()), - (function(e, t, n, r, o, i) { - var a = 1 & n, - s = ge(e), - c = s.length, - u = ge(t).length; - if (c != u && !a) return !1; - var l = c; - for (; l--; ) { - var f = s[l]; - if (!(a ? f in t : C.call(t, f))) return !1; - } - var d = i.get(e); - if (d && i.get(t)) return d == t; - var p = !0; - i.set(e, t), i.set(t, e); - var h = a; - for (; ++l < c; ) { - f = s[l]; - var g = e[f], - m = t[f]; + s || (s = new Ee()), + (function(e, t, n, r, o, a) { + var s = n & i, + c = Ne(e), + u = c.length, + l = Ne(t).length; + if (u != l && !s) return !1; + var f = u; + for (; f--; ) { + var d = c[f]; + if (!(s ? d in t : Q.call(t, d))) return !1; + } + var p = a.get(e); + if (p && a.get(t)) return p == t; + var h = !0; + a.set(e, t), a.set(t, e); + var g = s; + for (; ++f < u; ) { + d = c[f]; + var m = e[d], + b = t[d]; if (r) - var b = a ? r(m, g, f, t, e, i) : r(g, m, f, e, t, i); - if (!(void 0 === b ? g === m || o(g, m, n, r, i) : b)) { - p = !1; + var y = s ? r(b, m, d, t, e, a) : r(m, b, d, e, t, a); + if (!(void 0 === y ? m === b || o(m, b, n, r, a) : y)) { + h = !1; break; } - h || (h = 'constructor' == f); + g || (g = 'constructor' == d); } - if (p && !h) { - var y = e.constructor, - v = t.constructor; - y == v || - !('constructor' in e) || - !('constructor' in t) || - ('function' == typeof y && - y instanceof y && + if (h && !g) { + var v = e.constructor, + _ = t.constructor; + v != _ && + 'constructor' in e && + 'constructor' in t && + !( 'function' == typeof v && - v instanceof v) || - (p = !1); + v instanceof v && + 'function' == typeof _ && + _ instanceof _ + ) && + (h = !1); } - return i.delete(e), i.delete(t), p; - })(e, t, n, s, c, u) + return a.delete(e), a.delete(t), h; + })(e, t, n, r, o, s) ); - })(e, t, n, s, fe, c)) + })(e, t, n, r, Pe, o)) ); } - function de(e) { + function De(e) { return ( !( - !Ee(e) || + !Ke(e) || (function(e) { - return !!L && L in e; + return !!J && J in e; })(e) - ) && (Ae(e) ? D : s).test(xe(e)) + ) && (Xe(e) ? ee : A).test(He(e)) ); } - function pe(e) { + function je(e) { if ( !(function(e) { var t = e && e.constructor, - n = ('function' == typeof t && t.prototype) || O; + n = ('function' == typeof t && t.prototype) || G; return e === n; })(e) ) - return H(e); + return ue(e); var t = []; for (var n in Object(e)) - C.call(e, n) && 'constructor' != n && t.push(n); + Q.call(e, n) && 'constructor' != n && t.push(n); return t; } - function he(e, t, n, r, o, i) { - var a = 1 & n, - s = e.length, - c = t.length; - if (s != c && !(a && c > s)) return !1; - var u = i.get(e); - if (u && i.get(t)) return u == t; - var l = -1, - f = !0, - d = 2 & n ? new ie() : void 0; - for (i.set(e, t), i.set(t, e); ++l < s; ) { - var p = e[l], - h = t[l]; - if (r) var g = a ? r(h, p, l, t, e, i) : r(p, h, l, e, t, i); - if (void 0 !== g) { - if (g) continue; - f = !1; + function ze(e, t, n, r, o, s) { + var c = n & i, + u = e.length, + l = t.length; + if (u != l && !(c && l > u)) return !1; + var f = s.get(e); + if (f && s.get(t)) return f == t; + var d = -1, + p = !0, + h = n & a ? new Oe() : void 0; + for (s.set(e, t), s.set(t, e); ++d < u; ) { + var g = e[d], + m = t[d]; + if (r) var b = c ? r(m, g, d, t, e, s) : r(g, m, d, e, t, s); + if (void 0 !== b) { + if (b) continue; + p = !1; break; } - if (d) { + if (h) { if ( - !v(t, function(e, t) { - if (((a = t), !d.has(a) && (p === e || o(p, e, n, r, i)))) - return d.push(t); - var a; + !q(t, function(e, t) { + if (((i = t), !h.has(i) && (g === e || o(g, e, n, r, s)))) + return h.push(t); + var i; }) ) { - f = !1; + p = !1; break; } - } else if (p !== h && !o(p, h, n, r, i)) { - f = !1; + } else if (g !== m && !o(g, m, n, r, s)) { + p = !1; break; } } - return i.delete(e), i.delete(t), f; + return s.delete(e), s.delete(t), p; } - function ge(e) { + function Ne(e) { return (function(e, t, n) { var r = t(e); - return ke(e) + return Ve(e) ? r : (function(e, t) { for (var n = -1, r = t.length, o = e.length; ++n < r; ) e[o + n] = t[n]; return e; })(r, n(e)); - })(e, Le, ye); + })(e, Je, Fe); } - function me(e, t) { + function Re(e, t) { var n = e.__data__; return (function(e) { var t = typeof e; @@ -34015,117 +35502,117 @@ object-assign ? n['string' == typeof t ? 'string' : 'hash'] : n.map; } - function be(e, t) { + function Ie(e, t) { var n = (function(e, t) { return null == e ? void 0 : e[t]; })(e, t); - return de(n) ? n : void 0; + return De(n) ? n : void 0; } - (ne.prototype.clear = function() { - (this.__data__ = G ? G(null) : {}), (this.size = 0); + (Me.prototype.clear = function() { + (this.__data__ = ge ? ge(null) : {}), (this.size = 0); }), - (ne.prototype.delete = function(e) { + (Me.prototype.delete = function(e) { var t = this.has(e) && delete this.__data__[e]; return (this.size -= t ? 1 : 0), t; }), - (ne.prototype.get = function(e) { + (Me.prototype.get = function(e) { var t = this.__data__; - if (G) { + if (ge) { var n = t[e]; - return '__lodash_hash_undefined__' === n ? void 0 : n; + return n === o ? void 0 : n; } - return C.call(t, e) ? t[e] : void 0; + return Q.call(t, e) ? t[e] : void 0; }), - (ne.prototype.has = function(e) { + (Me.prototype.has = function(e) { var t = this.__data__; - return G ? void 0 !== t[e] : C.call(t, e); + return ge ? void 0 !== t[e] : Q.call(t, e); }), - (ne.prototype.set = function(e, t) { + (Me.prototype.set = function(e, t) { var n = this.__data__; return ( (this.size += this.has(e) ? 0 : 1), - (n[e] = G && void 0 === t ? '__lodash_hash_undefined__' : t), + (n[e] = ge && void 0 === t ? o : t), this ); }), - (re.prototype.clear = function() { + (ke.prototype.clear = function() { (this.__data__ = []), (this.size = 0); }), - (re.prototype.delete = function(e) { + (ke.prototype.delete = function(e) { var t = this.__data__, - n = ce(t, e); + n = Te(t, e); return ( !(n < 0) && - (n == t.length - 1 ? t.pop() : I.call(t, n, 1), --this.size, !0) + (n == t.length - 1 ? t.pop() : ie.call(t, n, 1), --this.size, !0) ); }), - (re.prototype.get = function(e) { + (ke.prototype.get = function(e) { var t = this.__data__, - n = ce(t, e); + n = Te(t, e); return n < 0 ? void 0 : t[n][1]; }), - (re.prototype.has = function(e) { - return ce(this.__data__, e) > -1; + (ke.prototype.has = function(e) { + return Te(this.__data__, e) > -1; }), - (re.prototype.set = function(e, t) { + (ke.prototype.set = function(e, t) { var n = this.__data__, - r = ce(n, e); + r = Te(n, e); return r < 0 ? (++this.size, n.push([e, t])) : (n[r][1] = t), this; }), - (oe.prototype.clear = function() { + (Se.prototype.clear = function() { (this.size = 0), (this.__data__ = { - hash: new ne(), - map: new (W || re)(), - string: new ne() + hash: new Me(), + map: new (fe || ke)(), + string: new Me() }); }), - (oe.prototype.delete = function(e) { - var t = me(this, e).delete(e); + (Se.prototype.delete = function(e) { + var t = Re(this, e).delete(e); return (this.size -= t ? 1 : 0), t; }), - (oe.prototype.get = function(e) { - return me(this, e).get(e); + (Se.prototype.get = function(e) { + return Re(this, e).get(e); }), - (oe.prototype.has = function(e) { - return me(this, e).has(e); + (Se.prototype.has = function(e) { + return Re(this, e).has(e); }), - (oe.prototype.set = function(e, t) { - var n = me(this, e), + (Se.prototype.set = function(e, t) { + var n = Re(this, e), r = n.size; return n.set(e, t), (this.size += n.size == r ? 0 : 1), this; }), - (ie.prototype.add = ie.prototype.push = function(e) { - return this.__data__.set(e, '__lodash_hash_undefined__'), this; + (Oe.prototype.add = Oe.prototype.push = function(e) { + return this.__data__.set(e, o), this; }), - (ie.prototype.has = function(e) { + (Oe.prototype.has = function(e) { return this.__data__.has(e); }), - (ae.prototype.clear = function() { - (this.__data__ = new re()), (this.size = 0); + (Ee.prototype.clear = function() { + (this.__data__ = new ke()), (this.size = 0); }), - (ae.prototype.delete = function(e) { + (Ee.prototype.delete = function(e) { var t = this.__data__, n = t.delete(e); return (this.size = t.size), n; }), - (ae.prototype.get = function(e) { + (Ee.prototype.get = function(e) { return this.__data__.get(e); }), - (ae.prototype.has = function(e) { + (Ee.prototype.has = function(e) { return this.__data__.has(e); }), - (ae.prototype.set = function(e, t) { + (Ee.prototype.set = function(e, t) { var n = this.__data__; - if (n instanceof re) { - var r = n.__data__; - if (!W || r.length < 199) - return r.push([e, t]), (this.size = ++n.size), this; - n = this.__data__ = new oe(r); + if (n instanceof ke) { + var o = n.__data__; + if (!fe || o.length < r - 1) + return o.push([e, t]), (this.size = ++n.size), this; + n = this.__data__ = new Se(o); } return n.set(e, t), (this.size = n.size), this; }); - var ye = q + var Fe = se ? function(e) { return null == e ? [] @@ -34140,27 +35627,27 @@ object-assign t(a, n, e) && (i[o++] = a); } return i; - })(q(e), function(t) { - return R.call(e, t); + })(se(e), function(t) { + return oe.call(e, t); })); } : function() { return []; }, - ve = ue; - function _e(e, t) { + qe = Ce; + function Be(e, t) { return ( - !!(t = null == t ? 9007199254740991 : t) && - ('number' == typeof e || c.test(e)) && + !!(t = null == t ? s : t) && + ('number' == typeof e || T.test(e)) && e > -1 && e % 1 == 0 && e < t ); } - function xe(e) { + function He(e) { if (null != e) { try { - return T.call(e); + return $.call(e); } catch (e) {} try { return e + ''; @@ -34168,93 +35655,83 @@ object-assign } return ''; } - function we(e, t) { + function Ye(e, t) { return e === t || (e != e && t != t); } - ((Y && '[object DataView]' != ve(new Y(new ArrayBuffer(1)))) || - (W && ve(new W()) != o) || - (V && '[object Promise]' != ve(V.resolve())) || - (U && ve(new U()) != a) || - (X && '[object WeakMap]' != ve(new X()))) && - (ve = function(e) { - var t = ue(e), - n = t == i ? e.constructor : void 0, - r = n ? xe(n) : ''; + ((le && qe(new le(new ArrayBuffer(1))) != E) || + (fe && qe(new fe()) != m) || + (de && '[object Promise]' != qe(de.resolve())) || + (pe && qe(new pe()) != x) || + (he && '[object WeakMap]' != qe(new he()))) && + (qe = function(e) { + var t = Ce(e), + n = t == v ? e.constructor : void 0, + r = n ? He(n) : ''; if (r) switch (r) { - case K: - return '[object DataView]'; - case $: - return o; - case Q: + case me: + return E; + case be: + return m; + case ye: return '[object Promise]'; - case J: - return a; - case Z: + case ve: + return x; + case _e: return '[object WeakMap]'; } return t; }); - var Me = le( + var We = Le( (function() { return arguments; })() ) - ? le + ? Le : function(e) { - return Te(e) && C.call(e, 'callee') && !R.call(e, 'callee'); + return $e(e) && Q.call(e, 'callee') && !oe.call(e, 'callee'); }, - ke = Array.isArray; - var Se = - B || + Ve = Array.isArray; + var Ue = + ce || function() { return !1; }; - function Ae(e) { - if (!Ee(e)) return !1; - var t = ue(e); - return ( - '[object Function]' == t || - '[object GeneratorFunction]' == t || - '[object AsyncFunction]' == t || - '[object Proxy]' == t - ); + function Xe(e) { + if (!Ke(e)) return !1; + var t = Ce(e); + return t == h || t == g || t == l || t == _; } - function Oe(e) { - return ( - 'number' == typeof e && - e > -1 && - e % 1 == 0 && - e <= 9007199254740991 - ); + function Ge(e) { + return 'number' == typeof e && e > -1 && e % 1 == 0 && e <= s; } - function Ee(e) { + function Ke(e) { var t = typeof e; return null != e && ('object' == t || 'function' == t); } - function Te(e) { + function $e(e) { return null != e && 'object' == typeof e; } - var Ce = y + var Qe = F ? (function(e) { return function(t) { return e(t); }; - })(y) + })(F) : function(e) { - return Te(e) && Oe(e.length) && !!u[ue(e)]; + return $e(e) && Ge(e.length) && !!C[Ce(e)]; }; - function Le(e) { + function Je(e) { return (function(e) { - return null != e && Oe(e.length) && !Ae(e); + return null != e && Ge(e.length) && !Xe(e); })(e) - ? se(e) - : pe(e); + ? Ae(e) + : je(e); } n.exports = function(e, t) { - return fe(e, t); + return Pe(e, t); }; - }.call(this, n(26), n(63)(e))); + }.call(this, n(33), n(77)(e))); }, function(e, t, n) { 'use strict'; @@ -34271,8 +35748,8 @@ object-assign : r; }); }); - var r = i(n(551)), - o = i(n(216)); + var r = i(n(595)), + o = i(n(238)); function i(e) { return e && e.__esModule ? e : { default: e }; } @@ -34283,12 +35760,12 @@ object-assign /*! * The buffer module from node.js, for the browser. * - * @author Feross Aboukhadijeh + * @author Feross Aboukhadijeh * @license MIT */ - var r = n(578), - o = n(579), - i = n(580); + var r = n(622), + o = n(623), + i = n(624); function a() { return c.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823; } @@ -34348,7 +35825,9 @@ object-assign : (function(e, t) { if (c.isBuffer(t)) { var n = 0 | p(t.length); - return 0 === (e = s(e, n)).length || t.copy(e, 0, 0, n), e; + return 0 === (e = s(e, n)).length + ? e + : (t.copy(e, 0, 0, n), e); } if (t) { if ( @@ -34413,7 +35892,7 @@ object-assign case 'utf8': case 'utf-8': case void 0: - return q(e).length; + return B(e).length; case 'ucs2': case 'ucs-2': case 'utf16le': @@ -34422,9 +35901,9 @@ object-assign case 'hex': return n >>> 1; case 'base64': - return B(e).length; + return H(e).length; default: - if (r) return q(e).length; + if (r) return B(e).length; (t = ('' + t).toLowerCase()), (r = !0); } } @@ -34437,22 +35916,22 @@ object-assign for (e || (e = 'utf8'); ; ) switch (e) { case 'hex': - return T(this, t, n); + return C(this, t, n); case 'utf8': case 'utf-8': - return A(this, t, n); - case 'ascii': return O(this, t, n); + case 'ascii': + return A(this, t, n); case 'latin1': case 'binary': - return E(this, t, n); + return T(this, t, n); case 'base64': return S(this, t, n); case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': - return C(this, t, n); + return L(this, t, n); default: if (r) throw new TypeError('Unknown encoding: ' + e); (e = (e + '').toLowerCase()), (r = !0); @@ -34545,10 +36024,10 @@ object-assign return a; } function _(e, t, n, r) { - return H(q(t, e.length - n), e, n, r); + return Y(B(t, e.length - n), e, n, r); } - function x(e, t, n, r) { - return H( + function w(e, t, n, r) { + return Y( (function(e) { for (var t = [], n = 0; n < e.length; ++n) t.push(255 & e.charCodeAt(n)); @@ -34559,14 +36038,14 @@ object-assign r ); } - function w(e, t, n, r) { - return x(e, t, n, r); + function x(e, t, n, r) { + return w(e, t, n, r); } function M(e, t, n, r) { - return H(B(t), e, n, r); + return Y(H(t), e, n, r); } function k(e, t, n, r) { - return H( + return Y( (function(e, t) { for ( var n, r, o, i = [], a = 0; @@ -34590,7 +36069,7 @@ object-assign ? r.fromByteArray(e) : r.fromByteArray(e.slice(t, n)); } - function A(e, t, n) { + function O(e, t, n) { n = Math.min(e.length, n); for (var r = [], o = t; o < n; ) { var i, @@ -34646,11 +36125,11 @@ object-assign } return (function(e) { var t = e.length; - if (t <= 4096) return String.fromCharCode.apply(String, e); + if (t <= E) return String.fromCharCode.apply(String, e); var n = '', r = 0; for (; r < t; ) - n += String.fromCharCode.apply(String, e.slice(r, (r += 4096))); + n += String.fromCharCode.apply(String, e.slice(r, (r += E))); return n; })(r); } @@ -34809,7 +36288,7 @@ object-assign return 0 === e ? '' : 0 === arguments.length - ? A(this, 0, e) + ? O(this, 0, e) : g.apply(this, arguments); }), (c.prototype.equals = function(e) { @@ -34898,10 +36377,10 @@ object-assign case 'utf-8': return _(this, e, t, n); case 'ascii': - return x(this, e, t, n); + return w(this, e, t, n); case 'latin1': case 'binary': - return w(this, e, t, n); + return x(this, e, t, n); case 'base64': return M(this, e, t, n); case 'ucs2': @@ -34920,42 +36399,43 @@ object-assign data: Array.prototype.slice.call(this._arr || this, 0) }; }); - function O(e, t, n) { + var E = 4096; + function A(e, t, n) { var r = ''; n = Math.min(e.length, n); for (var o = t; o < n; ++o) r += String.fromCharCode(127 & e[o]); return r; } - function E(e, t, n) { + function T(e, t, n) { var r = ''; n = Math.min(e.length, n); for (var o = t; o < n; ++o) r += String.fromCharCode(e[o]); return r; } - function T(e, t, n) { + function C(e, t, n) { var r = e.length; (!t || t < 0) && (t = 0), (!n || n < 0 || n > r) && (n = r); - for (var o = '', i = t; i < n; ++i) o += F(e[i]); + for (var o = '', i = t; i < n; ++i) o += q(e[i]); return o; } - function C(e, t, n) { + function L(e, t, n) { for (var r = e.slice(t, n), o = '', i = 0; i < r.length; i += 2) o += String.fromCharCode(r[i] + 256 * r[i + 1]); return o; } - function L(e, t, n) { + function P(e, t, n) { if (e % 1 != 0 || e < 0) throw new RangeError('offset is not uint'); if (e + t > n) throw new RangeError('Trying to access beyond buffer length'); } - function P(e, t, n, r, o, i) { + function D(e, t, n, r, o, i) { if (!c.isBuffer(e)) throw new TypeError('"buffer" argument must be a Buffer instance'); if (t > o || t < i) throw new RangeError('"value" argument is out of bounds'); if (n + r > e.length) throw new RangeError('Index out of range'); } - function D(e, t, n, r) { + function j(e, t, n, r) { t < 0 && (t = 65535 + t + 1); for (var o = 0, i = Math.min(e.length - n, 2); o < i; ++o) e[n + o] = @@ -34970,10 +36450,10 @@ object-assign if (n + r > e.length) throw new RangeError('Index out of range'); if (n < 0) throw new RangeError('Index out of range'); } - function j(e, t, n, r, i) { + function R(e, t, n, r, i) { return i || N(e, 0, n, 4), o.write(e, t, n, r, 23, 4), n + 4; } - function R(e, t, n, r, i) { + function I(e, t, n, r, i) { return i || N(e, 0, n, 8), o.write(e, t, n, r, 52, 8), n + 8; } (c.prototype.slice = function(e, t) { @@ -34996,71 +36476,71 @@ object-assign return n; }), (c.prototype.readUIntLE = function(e, t, n) { - (e |= 0), (t |= 0), n || L(e, t, this.length); + (e |= 0), (t |= 0), n || P(e, t, this.length); for (var r = this[e], o = 1, i = 0; ++i < t && (o *= 256); ) r += this[e + i] * o; return r; }), (c.prototype.readUIntBE = function(e, t, n) { - (e |= 0), (t |= 0), n || L(e, t, this.length); + (e |= 0), (t |= 0), n || P(e, t, this.length); for (var r = this[e + --t], o = 1; t > 0 && (o *= 256); ) r += this[e + --t] * o; return r; }), (c.prototype.readUInt8 = function(e, t) { - return t || L(e, 1, this.length), this[e]; + return t || P(e, 1, this.length), this[e]; }), (c.prototype.readUInt16LE = function(e, t) { - return t || L(e, 2, this.length), this[e] | (this[e + 1] << 8); + return t || P(e, 2, this.length), this[e] | (this[e + 1] << 8); }), (c.prototype.readUInt16BE = function(e, t) { - return t || L(e, 2, this.length), (this[e] << 8) | this[e + 1]; + return t || P(e, 2, this.length), (this[e] << 8) | this[e + 1]; }), (c.prototype.readUInt32LE = function(e, t) { return ( - t || L(e, 4, this.length), + t || P(e, 4, this.length), (this[e] | (this[e + 1] << 8) | (this[e + 2] << 16)) + 16777216 * this[e + 3] ); }), (c.prototype.readUInt32BE = function(e, t) { return ( - t || L(e, 4, this.length), + t || P(e, 4, this.length), 16777216 * this[e] + ((this[e + 1] << 16) | (this[e + 2] << 8) | this[e + 3]) ); }), (c.prototype.readIntLE = function(e, t, n) { - (e |= 0), (t |= 0), n || L(e, t, this.length); + (e |= 0), (t |= 0), n || P(e, t, this.length); for (var r = this[e], o = 1, i = 0; ++i < t && (o *= 256); ) r += this[e + i] * o; return r >= (o *= 128) && (r -= Math.pow(2, 8 * t)), r; }), (c.prototype.readIntBE = function(e, t, n) { - (e |= 0), (t |= 0), n || L(e, t, this.length); + (e |= 0), (t |= 0), n || P(e, t, this.length); for (var r = t, o = 1, i = this[e + --r]; r > 0 && (o *= 256); ) i += this[e + --r] * o; return i >= (o *= 128) && (i -= Math.pow(2, 8 * t)), i; }), (c.prototype.readInt8 = function(e, t) { return ( - t || L(e, 1, this.length), + t || P(e, 1, this.length), 128 & this[e] ? -1 * (255 - this[e] + 1) : this[e] ); }), (c.prototype.readInt16LE = function(e, t) { - t || L(e, 2, this.length); + t || P(e, 2, this.length); var n = this[e] | (this[e + 1] << 8); return 32768 & n ? 4294901760 | n : n; }), (c.prototype.readInt16BE = function(e, t) { - t || L(e, 2, this.length); + t || P(e, 2, this.length); var n = this[e + 1] | (this[e] << 8); return 32768 & n ? 4294901760 | n : n; }), (c.prototype.readInt32LE = function(e, t) { return ( - t || L(e, 4, this.length), + t || P(e, 4, this.length), this[e] | (this[e + 1] << 8) | (this[e + 2] << 16) | @@ -35069,7 +36549,7 @@ object-assign }), (c.prototype.readInt32BE = function(e, t) { return ( - t || L(e, 4, this.length), + t || P(e, 4, this.length), (this[e] << 24) | (this[e + 1] << 16) | (this[e + 2] << 8) | @@ -35077,20 +36557,20 @@ object-assign ); }), (c.prototype.readFloatLE = function(e, t) { - return t || L(e, 4, this.length), o.read(this, e, !0, 23, 4); + return t || P(e, 4, this.length), o.read(this, e, !0, 23, 4); }), (c.prototype.readFloatBE = function(e, t) { - return t || L(e, 4, this.length), o.read(this, e, !1, 23, 4); + return t || P(e, 4, this.length), o.read(this, e, !1, 23, 4); }), (c.prototype.readDoubleLE = function(e, t) { - return t || L(e, 8, this.length), o.read(this, e, !0, 52, 8); + return t || P(e, 8, this.length), o.read(this, e, !0, 52, 8); }), (c.prototype.readDoubleBE = function(e, t) { - return t || L(e, 8, this.length), o.read(this, e, !1, 52, 8); + return t || P(e, 8, this.length), o.read(this, e, !1, 52, 8); }), (c.prototype.writeUIntLE = function(e, t, n, r) { ((e = +e), (t |= 0), (n |= 0), r) || - P(this, e, t, n, Math.pow(2, 8 * n) - 1, 0); + D(this, e, t, n, Math.pow(2, 8 * n) - 1, 0); var o = 1, i = 0; for (this[t] = 255 & e; ++i < n && (o *= 256); ) @@ -35099,7 +36579,7 @@ object-assign }), (c.prototype.writeUIntBE = function(e, t, n, r) { ((e = +e), (t |= 0), (n |= 0), r) || - P(this, e, t, n, Math.pow(2, 8 * n) - 1, 0); + D(this, e, t, n, Math.pow(2, 8 * n) - 1, 0); var o = n - 1, i = 1; for (this[t + o] = 255 & e; --o >= 0 && (i *= 256); ) @@ -35110,7 +36590,7 @@ object-assign return ( (e = +e), (t |= 0), - n || P(this, e, t, 1, 255, 0), + n || D(this, e, t, 1, 255, 0), c.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), (this[t] = 255 & e), t + 1 @@ -35120,10 +36600,10 @@ object-assign return ( (e = +e), (t |= 0), - n || P(this, e, t, 2, 65535, 0), + n || D(this, e, t, 2, 65535, 0), c.TYPED_ARRAY_SUPPORT ? ((this[t] = 255 & e), (this[t + 1] = e >>> 8)) - : D(this, e, t, !0), + : j(this, e, t, !0), t + 2 ); }), @@ -35131,10 +36611,10 @@ object-assign return ( (e = +e), (t |= 0), - n || P(this, e, t, 2, 65535, 0), + n || D(this, e, t, 2, 65535, 0), c.TYPED_ARRAY_SUPPORT ? ((this[t] = e >>> 8), (this[t + 1] = 255 & e)) - : D(this, e, t, !1), + : j(this, e, t, !1), t + 2 ); }), @@ -35142,7 +36622,7 @@ object-assign return ( (e = +e), (t |= 0), - n || P(this, e, t, 4, 4294967295, 0), + n || D(this, e, t, 4, 4294967295, 0), c.TYPED_ARRAY_SUPPORT ? ((this[t + 3] = e >>> 24), (this[t + 2] = e >>> 16), @@ -35156,7 +36636,7 @@ object-assign return ( (e = +e), (t |= 0), - n || P(this, e, t, 4, 4294967295, 0), + n || D(this, e, t, 4, 4294967295, 0), c.TYPED_ARRAY_SUPPORT ? ((this[t] = e >>> 24), (this[t + 1] = e >>> 16), @@ -35169,7 +36649,7 @@ object-assign (c.prototype.writeIntLE = function(e, t, n, r) { if (((e = +e), (t |= 0), !r)) { var o = Math.pow(2, 8 * n - 1); - P(this, e, t, n, o - 1, -o); + D(this, e, t, n, o - 1, -o); } var i = 0, a = 1, @@ -35182,7 +36662,7 @@ object-assign (c.prototype.writeIntBE = function(e, t, n, r) { if (((e = +e), (t |= 0), !r)) { var o = Math.pow(2, 8 * n - 1); - P(this, e, t, n, o - 1, -o); + D(this, e, t, n, o - 1, -o); } var i = n - 1, a = 1, @@ -35196,7 +36676,7 @@ object-assign return ( (e = +e), (t |= 0), - n || P(this, e, t, 1, 127, -128), + n || D(this, e, t, 1, 127, -128), c.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), e < 0 && (e = 255 + e + 1), (this[t] = 255 & e), @@ -35207,10 +36687,10 @@ object-assign return ( (e = +e), (t |= 0), - n || P(this, e, t, 2, 32767, -32768), + n || D(this, e, t, 2, 32767, -32768), c.TYPED_ARRAY_SUPPORT ? ((this[t] = 255 & e), (this[t + 1] = e >>> 8)) - : D(this, e, t, !0), + : j(this, e, t, !0), t + 2 ); }), @@ -35218,10 +36698,10 @@ object-assign return ( (e = +e), (t |= 0), - n || P(this, e, t, 2, 32767, -32768), + n || D(this, e, t, 2, 32767, -32768), c.TYPED_ARRAY_SUPPORT ? ((this[t] = e >>> 8), (this[t + 1] = 255 & e)) - : D(this, e, t, !1), + : j(this, e, t, !1), t + 2 ); }), @@ -35229,7 +36709,7 @@ object-assign return ( (e = +e), (t |= 0), - n || P(this, e, t, 4, 2147483647, -2147483648), + n || D(this, e, t, 4, 2147483647, -2147483648), c.TYPED_ARRAY_SUPPORT ? ((this[t] = 255 & e), (this[t + 1] = e >>> 8), @@ -35243,7 +36723,7 @@ object-assign return ( (e = +e), (t |= 0), - n || P(this, e, t, 4, 2147483647, -2147483648), + n || D(this, e, t, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), c.TYPED_ARRAY_SUPPORT ? ((this[t] = e >>> 24), @@ -35255,16 +36735,16 @@ object-assign ); }), (c.prototype.writeFloatLE = function(e, t, n) { - return j(this, e, t, !0, n); + return R(this, e, t, !0, n); }), (c.prototype.writeFloatBE = function(e, t, n) { - return j(this, e, t, !1, n); + return R(this, e, t, !1, n); }), (c.prototype.writeDoubleLE = function(e, t, n) { - return R(this, e, t, !0, n); + return I(this, e, t, !0, n); }), (c.prototype.writeDoubleBE = function(e, t, n) { - return R(this, e, t, !1, n); + return I(this, e, t, !1, n); }), (c.prototype.copy = function(e, t, n, r) { if ( @@ -35320,17 +36800,17 @@ object-assign ) for (i = t; i < n; ++i) this[i] = e; else { - var a = c.isBuffer(e) ? e : q(new c(e, r).toString()), + var a = c.isBuffer(e) ? e : B(new c(e, r).toString()), s = a.length; for (i = 0; i < n - t; ++i) this[i + t] = a[i % s]; } return this; }); - var I = /[^+\/0-9A-Za-z-_]/g; - function F(e) { + var F = /[^+\/0-9A-Za-z-_]/g; + function q(e) { return e < 16 ? '0' + e.toString(16) : e.toString(16); } - function q(e, t) { + function B(e, t) { var n; t = t || 1 / 0; for (var r = e.length, o = null, i = [], a = 0; a < r; ++a) { @@ -35375,13 +36855,13 @@ object-assign } return i; } - function B(e) { + function H(e) { return r.toByteArray( (function(e) { if ( (e = (function(e) { return e.trim ? e.trim() : e.replace(/^\s+|\s+$/g, ''); - })(e).replace(I, '')).length < 2 + })(e).replace(F, '')).length < 2 ) return ''; for (; e.length % 4 != 0; ) e += '='; @@ -35389,23 +36869,23 @@ object-assign })(e) ); } - function H(e, t, n, r) { + function Y(e, t, n, r) { for (var o = 0; o < r && !(o + n >= t.length || o >= e.length); ++o) t[o + n] = e[o]; return o; } - }.call(this, n(26))); + }.call(this, n(33))); }, function(e, t, n) { - var r = n(229), - o = n(230); + var r = n(251), + o = n(252); e.exports = function(e, t) { return e && r(e, o(t)); }; }, function(e, t, n) { - var r = n(22), - o = n(113), + var r = n(34), + o = n(128), i = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, a = /^\w*$/; e.exports = function(e, t) { @@ -35419,13 +36899,13 @@ object-assign null != e && !o(e) ) || - a.test(e) || !i.test(e) || (null != t && e in Object(t)) + (a.test(e) || !i.test(e) || (null != t && e in Object(t))) ); }; }, function(e, t, n) { - var r = n(229), - o = n(616)(r); + var r = n(251), + o = n(660)(r); e.exports = o; }, function(e, t, n) { @@ -35433,7 +36913,7 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.Checkboard = void 0); var r = a(n(0)), - o = a(n(5)), + o = a(n(9)), i = (function(e) { if (e && e.__esModule) return e; var t = {}; @@ -35441,7 +36921,7 @@ object-assign for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); return (t.default = e), t; - })(n(640)); + })(n(684)); function a(e) { return e && e.__esModule ? e : { default: e }; } @@ -35473,17 +36953,18 @@ object-assign (t.default = s); }, function(e, t, n) { - var r = n(79), - o = n(35); + var r = n(94), + o = n(47), + i = 'Expected a function'; e.exports = function(e, t, n) { - var i = !0, - a = !0; - if ('function' != typeof e) throw new TypeError('Expected a function'); + var a = !0, + s = !0; + if ('function' != typeof e) throw new TypeError(i); return ( o(n) && - ((i = 'leading' in n ? !!n.leading : i), - (a = 'trailing' in n ? !!n.trailing : a)), - r(e, t, { leading: i, maxWait: t, trailing: a }) + ((a = 'leading' in n ? !!n.leading : a), + (s = 'trailing' in n ? !!n.trailing : s)), + r(e, t, { leading: a, maxWait: t, trailing: s }) ); }; }, @@ -35491,13 +36972,13 @@ object-assign 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = t.PureCalendarDay = void 0); - var r = l(n(32)), + var r = l(n(45)), o = l(n(0)), - i = (l(n(1)), l(n(41)), n(11), n(33)), - a = l(n(2)), - s = n(20), - c = (l(n(23)), l(n(373))), - u = (l(n(116)), n(7)); + i = (l(n(1)), l(n(54)), n(21), n(46)), + a = l(n(4)), + s = n(31), + c = (l(n(35)), l(n(394))), + u = (l(n(131)), n(15)); function l(e) { return e && e.__esModule ? e : { default: e }; } @@ -35528,21 +37009,14 @@ object-assign return e; }).apply(this, arguments); } - function p(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function h(e, t) { - return !t || ('object' !== f(t) && 'function' != typeof t) ? v(e) : t; - } - function g(e) { - return (g = Object.setPrototypeOf + function p(e) { + return (p = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function m(e, t) { + function h(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -35551,24 +37025,24 @@ object-assign Object.defineProperty(e, r.key, r); } } - function b(e, t, n) { - return t && m(e.prototype, t), n && m(e, n), e; + function g(e, t, n) { + return t && h(e.prototype, t), n && h(e, n), e; } - function y(e, t) { - return (y = + function m(e, t) { + return (m = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; })(e, t); } - function v(e) { + function b(e) { if (void 0 === e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return e; } - var _ = { + var y = { day: (0, a.default)(), daySize: u.DAY_SIZE, isOutsideDay: !1, @@ -35582,17 +37056,24 @@ object-assign ariaLabelFormat: 'dddd, LL', phrases: s.CalendarDayPhrases }, - x = (function(e) { + v = (function(e) { function t() { var e, n; - p(this, t); + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, t); for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) o[i] = arguments[i]; return ( - ((n = h( + ((n = (function(e, t) { + return !t || ('object' !== f(t) && 'function' != typeof t) + ? b(e) + : t; + })( this, - (e = g(t)).call.apply(e, [this].concat(o)) - )).setButtonRef = n.setButtonRef.bind(v(v(n)))), + (e = p(t)).call.apply(e, [this].concat(o)) + )).setButtonRef = n.setButtonRef.bind(b(b(n)))), n ); } @@ -35605,9 +37086,9 @@ object-assign (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } })), - t && y(e, t); + t && m(e, t); })(t, e), - b(t, [ + g(t, [ { key: !o.default.PureComponent && 'shouldComponentUpdate', value: function(e, t) { @@ -35615,7 +37096,7 @@ object-assign } } ]), - b(t, [ + g(t, [ { key: 'componentDidUpdate', value: function(e) { @@ -35678,7 +37159,7 @@ object-assign y = g.selected, v = g.hoveredSpan, _ = g.isOutsideRange, - x = g.ariaLabel; + w = g.ariaLabel; return o.default.createElement( 'td', d( @@ -35715,7 +37196,7 @@ object-assign role: 'button', ref: this.setButtonRef, 'aria-disabled': u.has('blocked'), - 'aria-label': x, + 'aria-label': w, onMouseEnter: function(t) { e.onDayMouseEnter(n, t); }, @@ -35742,8 +37223,8 @@ object-assign t ); })(o.default.PureComponent || o.default.Component); - (t.PureCalendarDay = x), (x.propTypes = {}), (x.defaultProps = _); - var w = (0, i.withStyles)( + (t.PureCalendarDay = v), (v.propTypes = {}), (v.defaultProps = y); + var _ = (0, i.withStyles)( function(e) { var t = e.reactDates, n = t.color; @@ -35889,260 +37370,106 @@ object-assign }; }, { pureComponent: void 0 !== o.default.PureComponent } - )(x); - t.default = w; + )(v); + t.default = _; + }, + function(e, t, n) { + 'use strict'; + var r = Array.prototype.slice, + o = n(390), + i = Object.keys, + a = i + ? function(e) { + return i(e); + } + : n(753), + s = Object.keys; + (a.shim = function() { + Object.keys + ? (function() { + var e = Object.keys(arguments); + return e && e.length === arguments.length; + })(1, 2) || + (Object.keys = function(e) { + return o(e) ? s(r.call(e)) : s(e); + }) + : (Object.keys = a); + return Object.keys || a; + }), + (e.exports = a); }, function(e, t, n) { - e.exports = n(725); + e.exports = n(769); }, function(e, t, n) { 'use strict'; - var r = n(66), - o = n(379), - i = n(380), - a = n(732), + var r = n(80), + o = n(400), + i = n(410), + a = n(785), s = i(); r(s, { getPolyfill: i, implementation: o, shim: a }), (e.exports = s); }, function(e, t, n) { 'use strict'; - var r = TypeError, - o = Object.getOwnPropertyDescriptor; - if (o) - try { - o({}, ''); - } catch (e) { - o = null; - } - var i = function() { - throw new r(); - }, - a = o - ? (function() { - try { - return arguments.callee, i; - } catch (e) { - try { - return o(arguments, 'callee').get; - } catch (e) { - return i; - } - } - })() - : i, - s = n(729)(), - c = - Object.getPrototypeOf || - function(e) { - return e.__proto__; - }, - u = void 0, - l = 'undefined' == typeof Uint8Array ? void 0 : c(Uint8Array), - f = { - '%Array%': Array, - '%ArrayBuffer%': - 'undefined' == typeof ArrayBuffer ? void 0 : ArrayBuffer, - '%ArrayBufferPrototype%': - 'undefined' == typeof ArrayBuffer ? void 0 : ArrayBuffer.prototype, - '%ArrayIteratorPrototype%': s ? c([][Symbol.iterator]()) : void 0, - '%ArrayPrototype%': Array.prototype, - '%ArrayProto_entries%': Array.prototype.entries, - '%ArrayProto_forEach%': Array.prototype.forEach, - '%ArrayProto_keys%': Array.prototype.keys, - '%ArrayProto_values%': Array.prototype.values, - '%AsyncFromSyncIteratorPrototype%': void 0, - '%AsyncFunction%': void 0, - '%AsyncFunctionPrototype%': void 0, - '%AsyncGenerator%': void 0, - '%AsyncGeneratorFunction%': void 0, - '%AsyncGeneratorPrototype%': void 0, - '%AsyncIteratorPrototype%': - u && s && Symbol.asyncIterator ? u[Symbol.asyncIterator]() : void 0, - '%Atomics%': 'undefined' == typeof Atomics ? void 0 : Atomics, - '%Boolean%': Boolean, - '%BooleanPrototype%': Boolean.prototype, - '%DataView%': 'undefined' == typeof DataView ? void 0 : DataView, - '%DataViewPrototype%': - 'undefined' == typeof DataView ? void 0 : DataView.prototype, - '%Date%': Date, - '%DatePrototype%': Date.prototype, - '%decodeURI%': decodeURI, - '%decodeURIComponent%': decodeURIComponent, - '%encodeURI%': encodeURI, - '%encodeURIComponent%': encodeURIComponent, - '%Error%': Error, - '%ErrorPrototype%': Error.prototype, - '%eval%': eval, - '%EvalError%': EvalError, - '%EvalErrorPrototype%': EvalError.prototype, - '%Float32Array%': - 'undefined' == typeof Float32Array ? void 0 : Float32Array, - '%Float32ArrayPrototype%': - 'undefined' == typeof Float32Array - ? void 0 - : Float32Array.prototype, - '%Float64Array%': - 'undefined' == typeof Float64Array ? void 0 : Float64Array, - '%Float64ArrayPrototype%': - 'undefined' == typeof Float64Array - ? void 0 - : Float64Array.prototype, - '%Function%': Function, - '%FunctionPrototype%': Function.prototype, - '%Generator%': void 0, - '%GeneratorFunction%': void 0, - '%GeneratorPrototype%': void 0, - '%Int8Array%': 'undefined' == typeof Int8Array ? void 0 : Int8Array, - '%Int8ArrayPrototype%': - 'undefined' == typeof Int8Array ? void 0 : Int8Array.prototype, - '%Int16Array%': - 'undefined' == typeof Int16Array ? void 0 : Int16Array, - '%Int16ArrayPrototype%': - 'undefined' == typeof Int16Array ? void 0 : Int8Array.prototype, - '%Int32Array%': - 'undefined' == typeof Int32Array ? void 0 : Int32Array, - '%Int32ArrayPrototype%': - 'undefined' == typeof Int32Array ? void 0 : Int32Array.prototype, - '%isFinite%': isFinite, - '%isNaN%': isNaN, - '%IteratorPrototype%': s ? c(c([][Symbol.iterator]())) : void 0, - '%JSON%': 'object' == typeof JSON ? JSON : void 0, - '%JSONParse%': 'object' == typeof JSON ? JSON.parse : void 0, - '%Map%': 'undefined' == typeof Map ? void 0 : Map, - '%MapIteratorPrototype%': - 'undefined' != typeof Map && s - ? c(new Map()[Symbol.iterator]()) - : void 0, - '%MapPrototype%': 'undefined' == typeof Map ? void 0 : Map.prototype, - '%Math%': Math, - '%Number%': Number, - '%NumberPrototype%': Number.prototype, - '%Object%': Object, - '%ObjectPrototype%': Object.prototype, - '%ObjProto_toString%': Object.prototype.toString, - '%ObjProto_valueOf%': Object.prototype.valueOf, - '%parseFloat%': parseFloat, - '%parseInt%': parseInt, - '%Promise%': 'undefined' == typeof Promise ? void 0 : Promise, - '%PromisePrototype%': - 'undefined' == typeof Promise ? void 0 : Promise.prototype, - '%PromiseProto_then%': - 'undefined' == typeof Promise ? void 0 : Promise.prototype.then, - '%Promise_all%': 'undefined' == typeof Promise ? void 0 : Promise.all, - '%Promise_reject%': - 'undefined' == typeof Promise ? void 0 : Promise.reject, - '%Promise_resolve%': - 'undefined' == typeof Promise ? void 0 : Promise.resolve, - '%Proxy%': 'undefined' == typeof Proxy ? void 0 : Proxy, - '%RangeError%': RangeError, - '%RangeErrorPrototype%': RangeError.prototype, - '%ReferenceError%': ReferenceError, - '%ReferenceErrorPrototype%': ReferenceError.prototype, - '%Reflect%': 'undefined' == typeof Reflect ? void 0 : Reflect, - '%RegExp%': RegExp, - '%RegExpPrototype%': RegExp.prototype, - '%Set%': 'undefined' == typeof Set ? void 0 : Set, - '%SetIteratorPrototype%': - 'undefined' != typeof Set && s - ? c(new Set()[Symbol.iterator]()) - : void 0, - '%SetPrototype%': 'undefined' == typeof Set ? void 0 : Set.prototype, - '%SharedArrayBuffer%': - 'undefined' == typeof SharedArrayBuffer - ? void 0 - : SharedArrayBuffer, - '%SharedArrayBufferPrototype%': - 'undefined' == typeof SharedArrayBuffer - ? void 0 - : SharedArrayBuffer.prototype, - '%String%': String, - '%StringIteratorPrototype%': s ? c(''[Symbol.iterator]()) : void 0, - '%StringPrototype%': String.prototype, - '%Symbol%': s ? Symbol : void 0, - '%SymbolPrototype%': s ? Symbol.prototype : void 0, - '%SyntaxError%': SyntaxError, - '%SyntaxErrorPrototype%': SyntaxError.prototype, - '%ThrowTypeError%': a, - '%TypedArray%': l, - '%TypedArrayPrototype%': l ? l.prototype : void 0, - '%TypeError%': r, - '%TypeErrorPrototype%': r.prototype, - '%Uint8Array%': - 'undefined' == typeof Uint8Array ? void 0 : Uint8Array, - '%Uint8ArrayPrototype%': - 'undefined' == typeof Uint8Array ? void 0 : Uint8Array.prototype, - '%Uint8ClampedArray%': - 'undefined' == typeof Uint8ClampedArray - ? void 0 - : Uint8ClampedArray, - '%Uint8ClampedArrayPrototype%': - 'undefined' == typeof Uint8ClampedArray - ? void 0 - : Uint8ClampedArray.prototype, - '%Uint16Array%': - 'undefined' == typeof Uint16Array ? void 0 : Uint16Array, - '%Uint16ArrayPrototype%': - 'undefined' == typeof Uint16Array ? void 0 : Uint16Array.prototype, - '%Uint32Array%': - 'undefined' == typeof Uint32Array ? void 0 : Uint32Array, - '%Uint32ArrayPrototype%': - 'undefined' == typeof Uint32Array ? void 0 : Uint32Array.prototype, - '%URIError%': URIError, - '%URIErrorPrototype%': URIError.prototype, - '%WeakMap%': 'undefined' == typeof WeakMap ? void 0 : WeakMap, - '%WeakMapPrototype%': - 'undefined' == typeof WeakMap ? void 0 : WeakMap.prototype, - '%WeakSet%': 'undefined' == typeof WeakSet ? void 0 : WeakSet, - '%WeakSetPrototype%': - 'undefined' == typeof WeakSet ? void 0 : WeakSet.prototype - }, - d = n(115).call(Function.call, String.prototype.replace), - p = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, - h = /\\(\\)?/g, - g = function(e) { - var t = []; + (function(t) { + var r = t.Symbol, + o = n(392); + e.exports = function() { return ( - d(e, p, function(e, n, r, o) { - t[t.length] = r ? d(o, h, '$1') : n || e; - }), - t + 'function' == typeof r && + ('function' == typeof Symbol && + ('symbol' == typeof r('foo') && + ('symbol' == typeof Symbol('bar') && o()))) ); - }, - m = function(e, t) { - if (!(e in f)) - throw new SyntaxError('intrinsic ' + e + ' does not exist!'); - if (void 0 === f[e] && !t) - throw new r( - 'intrinsic ' + - e + - ' exists, but is not available. Please file an issue!' - ); - return f[e]; }; - e.exports = function(e, t) { - if ('string' != typeof e || 0 === e.length) - throw new TypeError('intrinsic name must be a non-empty string'); - if (arguments.length > 1 && 'boolean' != typeof t) - throw new TypeError('"allowMissing" argument must be a boolean'); - for ( - var n = g(e), i = m('%' + (n.length > 0 ? n[0] : '') + '%', t), a = 1; - a < n.length; - a += 1 - ) - if (null != i) - if (o && a + 1 >= n.length) { - var s = o(i, n[a]); - if (!t && !(n[a] in i)) - throw new r( - 'base intrinsic for ' + - e + - ' exists, but the property is not available.' - ); - i = s ? s.get || s.value : i[n[a]]; - } else i = i[n[a]]; - return i; + }.call(this, n(33))); + }, + function(e, t, n) { + 'use strict'; + var r = Function.prototype.toString, + o = /^\s*class\b/, + i = function(e) { + try { + var t = r.call(e); + return o.test(t); + } catch (e) { + return !1; + } + }, + a = Object.prototype.toString, + s = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.toStringTag; + e.exports = function(e) { + if (!e) return !1; + if ('function' != typeof e && 'object' != typeof e) return !1; + if ('function' == typeof e && !e.prototype) return !0; + if (s) + return (function(e) { + try { + return !i(e) && (r.call(e), !0); + } catch (e) { + return !1; + } + })(e); + if (i(e)) return !1; + var t = a.call(e); + return '[object Function]' === t || '[object GeneratorFunction]' === t; }; }, + function(e, t, n) { + 'use strict'; + var r = n(130), + o = n(71)('%Function%'), + i = o.apply, + a = o.call; + (e.exports = function() { + return r.apply(a, arguments); + }), + (e.exports.apply = function() { + return r.apply(i, arguments); + }); + }, function(e, t, n) { 'use strict'; function r(e, t, n) { @@ -36188,9 +37515,9 @@ object-assign var n = r.default.isMoment(e) ? e : (0, o.default)(e, t); return n ? n.format(i.DISPLAY_FORMAT) : null; }); - var r = a(n(2)), - o = a(n(68)), - i = n(7); + var r = a(n(4)), + o = a(n(82)), + i = n(15); function a(e) { return e && e.__esModule ? e : { default: e }; } @@ -36210,9 +37537,9 @@ object-assign a && (c = c.endOf('week')); return !(0, i.default)(e, c); }); - var r = a(n(2)), - o = a(n(93)), - i = a(n(120)); + var r = a(n(4)), + o = a(n(108)), + i = a(n(135)); function a(e) { return e && e.__esModule ? e : { default: e }; } @@ -36221,17 +37548,17 @@ object-assign 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = t.PureDayPicker = t.defaultProps = void 0); - var r = x(n(32)), - o = x(n(0)), - i = (x(n(1)), n(11), n(33)), - a = x(n(2)), - s = x(n(151)), - c = x(n(70)), - u = x(n(153)), - l = n(20), - f = (x(n(23)), x(n(47))), - d = x(n(376)), - p = x(n(736)), + var r = w(n(45)), + o = w(n(0)), + i = (w(n(1)), n(21), n(46)), + a = w(n(4)), + s = w(n(166)), + c = w(n(84)), + u = w(n(169)), + l = n(31), + f = (w(n(35)), w(n(60))), + d = w(n(397)), + p = w(n(789)), h = (function(e) { if (e && e.__esModule) return e; var t = {}; @@ -36245,18 +37572,18 @@ object-assign r.get || r.set ? Object.defineProperty(t, n, r) : (t[n] = e[n]); } return (t.default = e), t; - })(n(739)), - g = x(n(741)), - m = x(n(377)), - b = x(n(375)), - y = x(n(742)), - v = x(n(158)), - _ = (x(n(116)), x(n(69)), x(n(58)), x(n(92)), n(7)); - function x(e) { + })(n(792)), + g = w(n(794)), + m = w(n(398)), + b = w(n(396)), + y = w(n(795)), + v = w(n(176)), + _ = (w(n(131)), w(n(83)), w(n(70)), w(n(107)), n(15)); + function w(e) { return e && e.__esModule ? e : { default: e }; } - function w(e) { - return (w = + function x(e) { + return (x = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { return typeof e; @@ -36312,7 +37639,7 @@ object-assign return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function A(e, t) { + function O(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -36321,11 +37648,11 @@ object-assign Object.defineProperty(e, r.key, r); } } - function O(e, t, n) { - return t && A(e.prototype, t), n && A(e, n), e; + function E(e, t, n) { + return t && O(e.prototype, t), n && O(e, n), e; } - function E(e, t) { - return (E = + function A(e, t) { + return (A = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; @@ -36367,58 +37694,63 @@ object-assign e ); } - var P = { - enableOutsideDays: !1, - numberOfMonths: 2, - orientation: _.HORIZONTAL_ORIENTATION, - withPortal: !1, - onOutsideClick: function() {}, - hidden: !1, - initialVisibleMonth: function() { - return (0, a.default)(); - }, - firstDayOfWeek: null, - renderCalendarInfo: null, - calendarInfoPosition: _.INFO_POSITION_BOTTOM, - hideKeyboardShortcutsPanel: !1, - daySize: _.DAY_SIZE, - isRTL: !1, - verticalHeight: null, - noBorder: !1, - transitionDuration: void 0, - verticalBorderSpacing: void 0, - horizontalMonthPadding: 13, - disablePrev: !1, - disableNext: !1, - navPrev: null, - navNext: null, - noNavButtons: !1, - onPrevMonthClick: function() {}, - onNextMonthClick: function() {}, - onMonthChange: function() {}, - onYearChange: function() {}, - onMultiplyScrollableMonths: function() {}, - renderMonthText: null, - renderMonthElement: null, - modifiers: {}, - renderCalendarDay: void 0, - renderDayContents: null, - onDayClick: function() {}, - onDayMouseEnter: function() {}, - onDayMouseLeave: function() {}, - isFocused: !1, - getFirstFocusableDay: null, - onBlur: function() {}, - showKeyboardShortcuts: !1, - onTab: function() {}, - onShiftTab: function() {}, - monthFormat: 'MMMM YYYY', - weekDayFormat: 'dd', - phrases: l.DayPickerPhrases, - dayAriaLabelFormat: void 0 - }; - t.defaultProps = P; - var D = (function(e) { + var P = 23, + D = 'prev', + j = 'next', + z = 'month_selection', + N = 'year_selection', + R = { + enableOutsideDays: !1, + numberOfMonths: 2, + orientation: _.HORIZONTAL_ORIENTATION, + withPortal: !1, + onOutsideClick: function() {}, + hidden: !1, + initialVisibleMonth: function() { + return (0, a.default)(); + }, + firstDayOfWeek: null, + renderCalendarInfo: null, + calendarInfoPosition: _.INFO_POSITION_BOTTOM, + hideKeyboardShortcutsPanel: !1, + daySize: _.DAY_SIZE, + isRTL: !1, + verticalHeight: null, + noBorder: !1, + transitionDuration: void 0, + verticalBorderSpacing: void 0, + horizontalMonthPadding: 13, + disablePrev: !1, + disableNext: !1, + navPrev: null, + navNext: null, + noNavButtons: !1, + onPrevMonthClick: function() {}, + onNextMonthClick: function() {}, + onMonthChange: function() {}, + onYearChange: function() {}, + onMultiplyScrollableMonths: function() {}, + renderMonthText: null, + renderMonthElement: null, + modifiers: {}, + renderCalendarDay: void 0, + renderDayContents: null, + onDayClick: function() {}, + onDayMouseEnter: function() {}, + onDayMouseLeave: function() {}, + isFocused: !1, + getFirstFocusableDay: null, + onBlur: function() {}, + showKeyboardShortcuts: !1, + onTab: function() {}, + onShiftTab: function() {}, + monthFormat: 'MMMM YYYY', + weekDayFormat: 'dd', + phrases: l.DayPickerPhrases, + dayAriaLabelFormat: void 0 + }; + t.defaultProps = R; + var I = (function(e) { function t(e) { var n; !(function(e, t) { @@ -36426,7 +37758,7 @@ object-assign throw new TypeError('Cannot call a class as a function'); })(this, t), (n = (function(e, t) { - return !t || ('object' !== w(t) && 'function' != typeof t) + return !t || ('object' !== x(t) && 'function' != typeof t) ? T(e) : t; })(this, S(t).call(this, e))); @@ -36496,9 +37828,9 @@ object-assign (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } })), - t && E(e, t); + t && A(e, t); })(t, e), - O(t, [ + E(t, [ { key: !o.default.PureComponent && 'shouldComponentUpdate', value: function(e, t) { @@ -36506,7 +37838,7 @@ object-assign } } ]), - O(t, [ + E(t, [ { key: 'componentDidMount', value: function() { @@ -36713,7 +38045,7 @@ object-assign this.adjustDayPickerHeight(l); } this.setState({ - monthTransition: 'prev', + monthTransition: D, translationValue: t, focusedDate: null, nextFocusedDate: e @@ -36726,7 +38058,7 @@ object-assign this.setCalendarMonthWeeks(e), this.calculateAndSetDayPickerHeight(), this.setState({ - monthTransition: 'month_selection', + monthTransition: z, translationValue: 1e-5, focusedDate: null, nextFocusedDate: e, @@ -36740,7 +38072,7 @@ object-assign this.setCalendarMonthWeeks(e), this.calculateAndSetDayPickerHeight(), this.setState({ - monthTransition: 'year_selection', + monthTransition: N, translationValue: 1e-4, focusedDate: null, nextFocusedDate: e, @@ -36777,7 +38109,7 @@ object-assign this.adjustDayPickerHeight(l); } this.setState({ - monthTransition: 'next', + monthTransition: j, translationValue: t, focusedDate: null, nextFocusedDate: e @@ -36798,7 +38130,7 @@ object-assign t = this.state.monthTransition; if (e === _.VERTICAL_SCROLLABLE) return 0; var n = 1; - return 'prev' === t ? (n -= 1) : 'next' === t && (n += 1), n; + return t === D ? (n -= 1) : t === j && (n += 1), n; } }, { @@ -36936,24 +38268,21 @@ object-assign if (l) { var m = u.clone(), b = this.getFirstDayOfWeek(); - if ('prev' === l) { + if (l === D) { m.subtract(1, 'month'), n && n(m); var v = m.clone().subtract(1, 'month'), _ = (0, g.default)(v, b); this.calendarMonthWeeks = [_].concat( k(this.calendarMonthWeeks.slice(0, -1)) ); - } else if ('next' === l) { + } else if (l === j) { m.add(1, 'month'), r && r(m); - var x = m.clone().add(o, 'month'), - w = (0, g.default)(x, b); + var w = m.clone().add(o, 'month'), + x = (0, g.default)(w, b); this.calendarMonthWeeks = k( this.calendarMonthWeeks.slice(1) - ).concat([w]); - } else - 'month_selection' === l - ? i && i(m) - : 'year_selection' === l && a && a(m); + ).concat([x]); + } else l === z ? i && i(m) : l === N && a && a(m); var M = null; d ? (M = d) : f || p || (M = this.getFocusedDay(m)), this.setState( @@ -36982,7 +38311,7 @@ object-assign key: 'adjustDayPickerHeight', value: function(e) { var t = this, - n = e + 23; + n = e + P; n !== this.calendarMonthGridHeight && ((this.transitionContainer.style.height = ''.concat(n, 'px')), this.calendarMonthGridHeight || @@ -37132,21 +38461,21 @@ object-assign b = t.monthTitleHeight, y = this.props, v = y.enableOutsideDays, - x = y.numberOfMonths, - w = y.orientation, + w = y.numberOfMonths, + x = y.orientation, k = y.modifiers, S = y.withPortal, - A = y.onDayClick, - O = y.onDayMouseEnter, - E = y.onDayMouseLeave, + O = y.onDayClick, + E = y.onDayMouseEnter, + A = y.onDayMouseLeave, T = y.firstDayOfWeek, C = y.renderMonthText, L = y.renderCalendarDay, P = y.renderDayContents, D = y.renderCalendarInfo, - z = y.renderMonthElement, - N = y.calendarInfoPosition, - j = y.hideKeyboardShortcutsPanel, + j = y.renderMonthElement, + z = y.calendarInfoPosition, + N = y.hideKeyboardShortcutsPanel, R = y.onOutsideClick, I = y.monthFormat, F = y.daySize, @@ -37163,7 +38492,7 @@ object-assign $ = y.horizontalMonthPadding, Q = Y.reactDates.spacing.dayPickerHorizontalPadding, J = this.isHorizontal(), - Z = this.isVertical() ? 1 : x, + Z = this.isVertical() ? 1 : w, ee = [], te = 0; te < Z; @@ -37171,7 +38500,7 @@ object-assign ) ee.push(this.renderWeekHeader(te)); var ne, - re = w === _.VERTICAL_SCROLLABLE; + re = x === _.VERTICAL_SCROLLABLE; J ? (ne = this.calendarMonthGridHeight) : !this.isVertical() || re || S || (ne = V || 1.75 * n); @@ -37180,10 +38509,10 @@ object-assign ae = h.BOTTOM_RIGHT; this.isVertical() && (ae = S ? h.TOP_LEFT : h.TOP_RIGHT); var se = J && g, - ce = N === _.INFO_POSITION_TOP, - ue = N === _.INFO_POSITION_BOTTOM, - le = N === _.INFO_POSITION_BEFORE, - fe = N === _.INFO_POSITION_AFTER, + ce = z === _.INFO_POSITION_TOP, + ue = z === _.INFO_POSITION_BOTTOM, + le = z === _.INFO_POSITION_BEFORE, + fe = z === _.INFO_POSITION_AFTER, de = le || fe, pe = D && @@ -37197,7 +38526,7 @@ object-assign ), he = D && de ? m : 0, ge = this.getFirstVisibleIndex(), - me = n * x + 2 * Q, + me = n * w + 2 * Q, be = me + he + 1, ye = { width: J && me, height: ne }, ve = { width: J && me }, @@ -37283,17 +38612,17 @@ object-assign initialMonth: r, isAnimating: oe, modifiers: k, - orientation: w, - numberOfMonths: x * c, - onDayClick: A, - onDayMouseEnter: O, - onDayMouseLeave: E, + orientation: x, + numberOfMonths: w * c, + onDayClick: O, + onDayMouseEnter: E, + onDayMouseLeave: A, onMonthChange: this.onMonthChange, onYearChange: this.onYearChange, renderMonthText: C, renderCalendarDay: L, renderDayContents: P, - renderMonthElement: z, + renderMonthElement: j, onMonthTransitionEnd: this .updateStateAfterMonthTransition, monthFormat: I, @@ -37311,7 +38640,7 @@ object-assign re && this.renderNavigation() ), !p && - !j && + !N && o.default.createElement(h.default, { block: this.isVertical() && !S, buttonLocation: ae, @@ -37333,8 +38662,8 @@ object-assign t ); })(o.default.PureComponent || o.default.Component); - (t.PureDayPicker = D), (D.propTypes = {}), (D.defaultProps = P); - var z = (0, i.withStyles)( + (t.PureDayPicker = I), (I.propTypes = {}), (I.defaultProps = R); + var F = (0, i.withStyles)( function(e) { var t = e.reactDates, n = t.color, @@ -37437,11 +38766,11 @@ object-assign }; }, { pureComponent: void 0 !== o.default.PureComponent } - )(D); - t.default = z; + )(I); + t.default = F; }, function(e, t, n) { - var r = n(75); + var r = n(89); e.exports = function(e, t) { if (!r(e)) return e; var n, o; @@ -37468,21 +38797,21 @@ object-assign }; }, function(e, t, n) { - var r = n(164)('keys'), - o = n(124); + var r = n(182)('keys'), + o = n(139); e.exports = function(e) { return r[e] || (r[e] = o(e)); }; }, function(e, t, n) { - var r = n(49), - o = n(48), + var r = n(62), + o = n(61), i = o['__core-js_shared__'] || (o['__core-js_shared__'] = {}); (e.exports = function(e, t) { return i[e] || (i[e] = void 0 !== t ? t : {}); })('versions', []).push({ version: r.version, - mode: n(123) ? 'pure' : 'global', + mode: n(138) ? 'pure' : 'global', copyright: '© 2019 Denis Pushkarev (zloirock.ru)' }); }, @@ -37495,7 +38824,7 @@ object-assign t.f = Object.getOwnPropertySymbols; }, function(e, t, n) { - var r = n(161); + var r = n(179); e.exports = function(e) { return Object(r(e)); }; @@ -37504,18 +38833,18 @@ object-assign e.exports = {}; }, function(e, t, n) { - var r = n(95), - o = n(759), - i = n(165), - a = n(163)('IE_PROTO'), + var r = n(110), + o = n(812), + i = n(183), + a = n(181)('IE_PROTO'), s = function() {}, c = function() { var e, - t = n(404)('iframe'), + t = n(434)('iframe'), r = i.length; for ( t.style.display = 'none', - n(760).appendChild(t), + n(813).appendChild(t), t.src = 'javascript:', (e = t.contentWindow.document).open(), e.write(''), @@ -37543,9 +38872,9 @@ object-assign }; }, function(e, t, n) { - var r = n(60).f, - o = n(61), - i = n(77)('toStringTag'); + var r = n(74).f, + o = n(75), + i = n(91)('toStringTag'); e.exports = function(e, t, n) { e && !o((e = n ? e : e.prototype), i) && @@ -37553,14 +38882,14 @@ object-assign }; }, function(e, t, n) { - t.f = n(77); + t.f = n(91); }, function(e, t, n) { - var r = n(48), - o = n(49), - i = n(123), - a = n(171), - s = n(60).f; + var r = n(61), + o = n(62), + i = n(138), + a = n(189), + s = n(74).f; e.exports = function(e) { var t = o.Symbol || (o.Symbol = i ? {} : r.Symbol || {}); '_' == e.charAt(0) || e in t || s(t, e, { value: a.f(e) }); @@ -37571,7 +38900,7 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.canUseDOM = void 0); var r, - o = n(793); + o = n(846); var i = ((r = o) && r.__esModule ? r : { default: r }).default, a = i.canUseDOM ? window.HTMLElement : {}; t.canUseDOM = i.canUseDOM; @@ -37622,13 +38951,6 @@ object-assign n((n.s = 24)) ); })([ - function(e, t) { - e.exports = function(e) { - for (var t = 1; t < arguments.length; t++) - for (var n in arguments[t]) e[n] = arguments[t][n]; - return e; - }; - }, function(e, t) { e.exports = function(e, t, n) { var r; @@ -37655,6 +38977,13 @@ object-assign } e.exports = n; }, + function(e, t) { + e.exports = function(e) { + for (var t = 1; t < arguments.length; t++) + for (var n in arguments[t]) e[n] = arguments[t][n]; + return e; + }; + }, function(e, t, n) { 'use strict'; n.r(t), @@ -37671,7 +39000,7 @@ object-assign ? o.Promise.prototype.finally || (o.Promise.prototype.finally = r.a) : (o.Promise = t.a); - }.call(this, n(2)); + }.call(this, n(1)); }, function(e, t, n) { 'use strict'; @@ -37695,9 +39024,10 @@ object-assign !(function(e) { 'use strict'; if (!e.fetch) { - var t = 'URLSearchParams' in e, - n = 'Symbol' in e && 'iterator' in Symbol, - r = + var t = { + searchParams: 'URLSearchParams' in e, + iterable: 'Symbol' in e && 'iterator' in Symbol, + blob: 'FileReader' in e && 'Blob' in e && (function() { @@ -37707,10 +39037,11 @@ object-assign return !1; } })(), - o = 'FormData' in e, - i = 'ArrayBuffer' in e; - if (i) - var a = [ + formData: 'FormData' in e, + arrayBuffer: 'ArrayBuffer' in e + }; + if (t.arrayBuffer) + var n = [ '[object Int8Array]', '[object Uint8Array]', '[object Uint8ClampedArray]', @@ -37721,107 +39052,108 @@ object-assign '[object Float32Array]', '[object Float64Array]' ], - s = function(e) { + r = function(e) { return e && DataView.prototype.isPrototypeOf(e); }, - c = + o = ArrayBuffer.isView || function(e) { return ( e && - a.indexOf(Object.prototype.toString.call(e)) > -1 + n.indexOf(Object.prototype.toString.call(e)) > -1 ); }; - (h.prototype.append = function(e, t) { - (e = f(e)), (t = d(t)); + (l.prototype.append = function(e, t) { + (e = s(e)), (t = c(t)); var n = this.map[e]; this.map[e] = n ? n + ',' + t : t; }), - (h.prototype.delete = function(e) { - delete this.map[f(e)]; + (l.prototype.delete = function(e) { + delete this.map[s(e)]; }), - (h.prototype.get = function(e) { - return (e = f(e)), this.has(e) ? this.map[e] : null; + (l.prototype.get = function(e) { + return (e = s(e)), this.has(e) ? this.map[e] : null; }), - (h.prototype.has = function(e) { - return this.map.hasOwnProperty(f(e)); + (l.prototype.has = function(e) { + return this.map.hasOwnProperty(s(e)); }), - (h.prototype.set = function(e, t) { - this.map[f(e)] = d(t); + (l.prototype.set = function(e, t) { + this.map[s(e)] = c(t); }), - (h.prototype.forEach = function(e, t) { + (l.prototype.forEach = function(e, t) { for (var n in this.map) this.map.hasOwnProperty(n) && e.call(t, this.map[n], n, this); }), - (h.prototype.keys = function() { + (l.prototype.keys = function() { var e = []; return ( this.forEach(function(t, n) { e.push(n); }), - p(e) + u(e) ); }), - (h.prototype.values = function() { + (l.prototype.values = function() { var e = []; return ( this.forEach(function(t) { e.push(t); }), - p(e) + u(e) ); }), - (h.prototype.entries = function() { + (l.prototype.entries = function() { var e = []; return ( this.forEach(function(t, n) { e.push([n, t]); }), - p(e) + u(e) ); }), - n && (h.prototype[Symbol.iterator] = h.prototype.entries); - var u = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']; - (_.prototype.clone = function() { - return new _(this, { body: this._bodyInit }); + t.iterable && + (l.prototype[Symbol.iterator] = l.prototype.entries); + var i = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']; + (m.prototype.clone = function() { + return new m(this, { body: this._bodyInit }); }), - v.call(_.prototype), - v.call(w.prototype), - (w.prototype.clone = function() { - return new w(this._bodyInit, { + g.call(m.prototype), + g.call(y.prototype), + (y.prototype.clone = function() { + return new y(this._bodyInit, { status: this.status, statusText: this.statusText, - headers: new h(this.headers), + headers: new l(this.headers), url: this.url }); }), - (w.error = function() { - var e = new w(null, { status: 0, statusText: '' }); + (y.error = function() { + var e = new y(null, { status: 0, statusText: '' }); return (e.type = 'error'), e; }); - var l = [301, 302, 303, 307, 308]; - (w.redirect = function(e, t) { - if (-1 === l.indexOf(t)) + var a = [301, 302, 303, 307, 308]; + (y.redirect = function(e, t) { + if (-1 === a.indexOf(t)) throw new RangeError('Invalid status code'); - return new w(null, { status: t, headers: { location: e } }); - }), - (e.Headers = h), - (e.Request = _), - (e.Response = w), - (e.fetch = function(e, t) { - return new Promise(function(n, o) { - var i = new _(e, t), + return new y(null, { status: t, headers: { location: e } }); + }), + (e.Headers = l), + (e.Request = m), + (e.Response = y), + (e.fetch = function(e, n) { + return new Promise(function(r, o) { + var i = new m(e, n), a = new XMLHttpRequest(); (a.onload = function() { var e, t, - r = { + n = { status: a.status, statusText: a.statusText, headers: ((e = a.getAllResponseHeaders() || ''), - (t = new h()), + (t = new l()), e .replace(/\r?\n[\t ]+/g, ' ') .split(/\r?\n/) @@ -37835,12 +39167,12 @@ object-assign }), t) }; - r.url = + n.url = 'responseURL' in a ? a.responseURL - : r.headers.get('X-Request-URL'); + : n.headers.get('X-Request-URL'); var o = 'response' in a ? a.response : a.responseText; - n(new w(o, r)); + r(new y(o, n)); }), (a.onerror = function() { o(new TypeError('Network request failed')); @@ -37853,7 +39185,9 @@ object-assign ? (a.withCredentials = !0) : 'omit' === i.credentials && (a.withCredentials = !1), - 'responseType' in a && r && (a.responseType = 'blob'), + 'responseType' in a && + t.blob && + (a.responseType = 'blob'), i.headers.forEach(function(e, t) { a.setRequestHeader(t, e); }), @@ -37862,7 +39196,7 @@ object-assign }), (e.fetch.polyfill = !0); } - function f(e) { + function s(e) { if ( ('string' != typeof e && (e = String(e)), /[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e)) @@ -37872,27 +39206,27 @@ object-assign ); return e.toLowerCase(); } - function d(e) { + function c(e) { return 'string' != typeof e && (e = String(e)), e; } - function p(e) { - var t = { + function u(e) { + var n = { next: function() { var t = e.shift(); return { done: void 0 === t, value: t }; } }; return ( - n && - (t[Symbol.iterator] = function() { - return t; + t.iterable && + (n[Symbol.iterator] = function() { + return n; }), - t + n ); } - function h(e) { + function l(e) { (this.map = {}), - e instanceof h + e instanceof l ? e.forEach(function(e, t) { this.append(t, e); }, this) @@ -37905,12 +39239,12 @@ object-assign this.append(t, e[t]); }, this); } - function g(e) { + function f(e) { if (e.bodyUsed) return Promise.reject(new TypeError('Already read')); e.bodyUsed = !0; } - function m(e) { + function d(e) { return new Promise(function(t, n) { (e.onload = function() { t(e.result); @@ -37920,43 +39254,46 @@ object-assign }); }); } - function b(e) { + function p(e) { var t = new FileReader(), - n = m(t); + n = d(t); return t.readAsArrayBuffer(e), n; } - function y(e) { + function h(e) { if (e.slice) return e.slice(0); var t = new Uint8Array(e.byteLength); return t.set(new Uint8Array(e)), t.buffer; } - function v() { + function g() { return ( (this.bodyUsed = !1), (this._initBody = function(e) { if (((this._bodyInit = e), e)) if ('string' == typeof e) this._bodyText = e; - else if (r && Blob.prototype.isPrototypeOf(e)) + else if (t.blob && Blob.prototype.isPrototypeOf(e)) this._bodyBlob = e; - else if (o && FormData.prototype.isPrototypeOf(e)) + else if ( + t.formData && + FormData.prototype.isPrototypeOf(e) + ) this._bodyFormData = e; else if ( - t && + t.searchParams && URLSearchParams.prototype.isPrototypeOf(e) ) this._bodyText = e.toString(); - else if (i && r && s(e)) - (this._bodyArrayBuffer = y(e.buffer)), + else if (t.arrayBuffer && t.blob && r(e)) + (this._bodyArrayBuffer = h(e.buffer)), (this._bodyInit = new Blob([ this._bodyArrayBuffer ])); else { if ( - !i || - (!ArrayBuffer.prototype.isPrototypeOf(e) && !c(e)) + !t.arrayBuffer || + (!ArrayBuffer.prototype.isPrototypeOf(e) && !o(e)) ) throw new Error('unsupported BodyInit type'); - this._bodyArrayBuffer = y(e); + this._bodyArrayBuffer = h(e); } else this._bodyText = ''; this.headers.get('content-type') || @@ -37970,16 +39307,16 @@ object-assign 'content-type', this._bodyBlob.type ) - : t && + : t.searchParams && URLSearchParams.prototype.isPrototypeOf(e) && this.headers.set( 'content-type', 'application/x-www-form-urlencoded;charset=UTF-8' )); }), - r && + t.blob && ((this.blob = function() { - var e = g(this); + var e = f(this); if (e) return e; if (this._bodyBlob) return Promise.resolve(this._bodyBlob); @@ -37995,20 +39332,20 @@ object-assign }), (this.arrayBuffer = function() { return this._bodyArrayBuffer - ? g(this) || Promise.resolve(this._bodyArrayBuffer) - : this.blob().then(b); + ? f(this) || Promise.resolve(this._bodyArrayBuffer) + : this.blob().then(p); })), (this.text = function() { var e, t, n, - r = g(this); + r = f(this); if (r) return r; if (this._bodyBlob) return ( (e = this._bodyBlob), (t = new FileReader()), - (n = m(t)), + (n = d(t)), t.readAsText(e), n ); @@ -38030,9 +39367,9 @@ object-assign throw new Error('could not read FormData body as text'); return Promise.resolve(this._bodyText); }), - o && + t.formData && (this.formData = function() { - return this.text().then(x); + return this.text().then(b); }), (this.json = function() { return this.text().then(JSON.parse); @@ -38040,15 +39377,15 @@ object-assign this ); } - function _(e, t) { + function m(e, t) { var n, r, o = (t = t || {}).body; - if (e instanceof _) { + if (e instanceof m) { if (e.bodyUsed) throw new TypeError('Already read'); (this.url = e.url), (this.credentials = e.credentials), - t.headers || (this.headers = new h(e.headers)), + t.headers || (this.headers = new l(e.headers)), (this.method = e.method), (this.mode = e.mode), o || @@ -38059,11 +39396,11 @@ object-assign ((this.credentials = t.credentials || this.credentials || 'omit'), (!t.headers && this.headers) || - (this.headers = new h(t.headers)), + (this.headers = new l(t.headers)), (this.method = ((n = t.method || this.method || 'GET'), (r = n.toUpperCase()), - u.indexOf(r) > -1 ? r : n)), + i.indexOf(r) > -1 ? r : n)), (this.mode = t.mode || this.mode || null), (this.referrer = null), ('GET' === this.method || 'HEAD' === this.method) && o) @@ -38073,7 +39410,7 @@ object-assign ); this._initBody(o); } - function x(e) { + function b(e) { var t = new FormData(); return ( e @@ -38093,13 +39430,13 @@ object-assign t ); } - function w(e, t) { + function y(e, t) { t || (t = {}), (this.type = 'default'), (this.status = void 0 === t.status ? 200 : t.status), (this.ok = this.status >= 200 && this.status < 300), (this.statusText = 'statusText' in t ? t.statusText : 'OK'), - (this.headers = new h(t.headers)), + (this.headers = new l(t.headers)), (this.url = t.url || ''), this._initBody(e); } @@ -38108,7 +39445,7 @@ object-assign function(e) { e.exports = { name: 'keen-analysis', - version: '3.5.0', + version: '3.4.5', description: 'A JavaScript client for Keen.IO', main: 'dist/node/keen-analysis.js', browser: 'dist/keen-analysis.js', @@ -38127,7 +39464,7 @@ object-assign 'NODE_ENV=production TARGET=node webpack -p --config webpack.modules.config.js', profile: 'webpack --profile --json > stats.json', analyze: 'webpack-bundle-analyzer stats.json /dist', - preversion: 'npm run build && npm run test', + preversion: 'npm run build:node && npm run test', version: 'npm run build && git add .', postversion: 'git push && git push --tags && npm publish', demo: 'npm run build:node && node ./test/demo/index.node.js' @@ -38166,6 +39503,8 @@ object-assign dependencies: { crossfilter2: '^1.4.6', csvtojson: '^2.0.8', + handlebars: '^4.1.2', + 'js-yaml': '^3.13.1', 'keen-core': '^0.2.0', moment: '^2.22.2', 'promise-polyfill': '^8.0.0', @@ -38247,8 +39586,8 @@ object-assign }; }, function(e, t, n) { - var r = n(1); - n(0), + var r = n(0); + n(2), (e.exports = function(e) { var t = []; return ( @@ -39151,179 +40490,84 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.DEL = t.PUT = t.POST = t.GET = void 0); var r = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(e) { - return typeof e; - } - : function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - }, - o = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (e[r] = n[r]); - } - return e; - }; + Object.assign || + function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (e[r] = n[r]); + } + return e; + }; n(3), n(5); - var i = u(n(1)), - a = u(n(0)), - s = u(n(8)), - c = n(11); - function u(e) { + var o = s(n(0)), + i = s(n(8)), + a = n(11); + function s(e) { return e && e.__esModule ? e : { default: e }; } - var l = function e(t, n) { - var u = + var c = function e(t, n) { + var s = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, - l = {}, - f = n.url; + c = {}, + u = n.url; ('GET' !== t && 'DELETE' !== t) || - (-1 === f.indexOf('?') ? (f += '?') : (f += '&'), - n.api_key && (f += 'api_key=' + n.api_key + '&'), - n.params && (f += (0, s.default)(n.params))), - (0, i.default)(n.headers, function(e, t) { - 'string' == typeof e && (l[t] = e); + (-1 === u.indexOf('?') ? (u += '?') : (u += '&'), + n.api_key && (u += 'api_key=' + n.api_key + '&'), + n.params && (u += (0, i.default)(n.params))), + (0, o.default)(n.headers, function(e, t) { + 'string' == typeof e && (c[t] = e); }); - var d = { + var l = { method: t, body: 'GET' !== t && n.params ? JSON.stringify(n.params) : void 0, mode: 'cors', - headers: l + headers: c }; if ( n.cache && 'DELETE' !== t && 'PUT' !== t && - !u.notFoundInCache + !s.notFoundInCache ) - return (0, c.getFromCache)(f, d, n).then(function(r) { - if (r) return u.resolve(r); - e(t, n, o({}, u, { notFoundInCache: !0 })); + return (0, a.getFromCache)(u, l, n).then(function(o) { + if (o) return s.resolve(o); + e(t, n, r({}, s, { notFoundInCache: !0 })); }); - var p = void 0; - fetch(f, o({}, d, { signal: u.signal })) + var f = void 0; + fetch(u, r({}, l, { signal: s.signal })) .catch(function(e) { - u.reject(e); + s.reject(e); }) .then(function(e) { if (e) - return (p = e), e.ok && 'DELETE' === t ? {} : e.json(); + return (f = e), e.ok && 'DELETE' === t ? {} : e.json(); }) .then(function(e) { if (e) { - if (e.error_code || !p.ok) - return u.reject({ + if (e.error_code || !f.ok) + return s.reject({ ok: !1, error_code: e.error_code, body: e.message, - status: p.status, - statusText: p.statusText + status: f.status, + statusText: f.statusText }); n.cache && 'DELETE' !== t && 'PUT' !== t && - (0, c.saveToCache)(f, d, e); - var o = (0, a.default)({}, n); - if ( - (Array.isArray(e.result) - ? n.params.interval - ? n.params.group_by - ? 'extraction' === n.params.analysis_type - ? u.resolve(e) - : e.result && - Array.isArray(e.result) && - e.result.forEach(function(e) { - return e.value - ? Array.isArray(e.value) - ? void e.value.forEach(function(e) { - isNaN(Number(e.result)) || - (e.result = Number(e.result)); - }) - : e.value - : e; - }) - : e.result.forEach(function(e) { - isNaN(Number(e.value)) || - (e.value = Number(e.value)); - }) - : e.result.forEach(function(e) { - isNaN(Number(e.result)) || - (e.result = Number(e.result)); - }) - : isNaN(Number(e.result)) || - (e.result = Number(e.result)), - n.resultParsers) - ) - if (Array.isArray(e.result)) - n.params.interval - ? n.params.group_by - ? e.result.forEach(function(e) { - e.value.forEach(function(e) { - var t = void 0; - n.resultParsers.forEach(function(n) { - t = n(t || e.result); - }), - (e.result = t); - }); - }) - : e.result.forEach(function(e) { - var t = void 0; - n.resultParsers.forEach(function(n) { - t = n(t || e.value); - }), - (e.value = t); - }) - : e.result.forEach(function(e) { - var t = void 0; - n.resultParsers.forEach(function(n) { - t = n(t || e.result); - }), - (e.result = t); - }); - else if ('object' === r(e.result)) - Object.keys(e.result).forEach(function(t) { - var r = void 0; - n.resultParsers.forEach(function(n) { - r = n(r || e.result[t]); - }), - (e.result[t] = r); - }); - else { - var i = void 0; - n.resultParsers.forEach(function(t) { - i = t(i || e.result); - }), - (e.result = i); - } - if ( - o.params && - void 0 !== o.params.event_collection && - void 0 === e.query - ) { - var s = (0, a.default)({ query: o.params }, e); - u.resolve(s); - } - u.resolve(e); + (0, a.saveToCache)(u, l, e), + s.resolve(e); } }); }, - f = function() { + u = function() { var e = window || void 0; if ( e.XMLHttpRequest && @@ -39347,46 +40591,46 @@ object-assign } catch (e) {} return !1; }, - d = function(e, t) { + l = function(e, t) { var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, - r = f(), - o = n.callback, - a = t.url; + r = u(), + a = n.callback, + s = t.url; return ( (r.onreadystatechange = function() { var e = void 0; if (4 == r.readyState) if (r.status >= 200 && r.status < 300) - if (204 === r.status) o && o(null, r); + if (204 === r.status) a && a(null, r); else try { (e = JSON.parse(r.responseText)), - o && e && o(null, e); + a && e && a(null, e); } catch (e) { - o && o(r, null); + a && a(r, null); } else try { (e = JSON.parse(r.responseText)), - o && e && o(e, null); + a && e && a(e, null); } catch (e) { - o && o(r, null); + a && a(r, null); } }), 'GET' !== e - ? (r.open(e, a, !0), - (0, i.default)(t.headers, function(e, t) { + ? (r.open(e, s, !0), + (0, o.default)(t.headers, function(e, t) { 'string' == typeof e && r.setRequestHeader(t, e); }), t.params ? r.send(JSON.stringify(t.params)) : r.send()) - : ((a += '?'), - t.api_key && (a += 'api_key=' + t.api_key + '&'), - t.params && (a += (0, s.default)(t.params)), - r.open(e, a, !0), - (0, i.default)(t.headers, function(e, t) { + : ((s += '?'), + t.api_key && (s += 'api_key=' + t.api_key + '&'), + t.params && (s += (0, i.default)(t.params)), + r.open(e, s, !0), + (0, o.default)(t.headers, function(e, t) { 'string' == typeof e && r.setRequestHeader(t, e); }), r.send()), @@ -39395,9 +40639,9 @@ object-assign }; (t.GET = function(e, t) { return 'undefined' != typeof fetch + ? c('GET', e, t) + : u() ? l('GET', e, t) - : f() - ? d('GET', e, t) : (function(e) { var t = arguments.length > 1 && void 0 !== arguments[1] @@ -39406,25 +40650,25 @@ object-assign n = e.url, r = t.callback, o = new Date().getTime(), - i = document.createElement('script'), - a = document.getElementsByTagName('head')[0], + a = document.createElement('script'), + s = document.getElementsByTagName('head')[0], c = 'keenJSONPCallback', u = !1; for (c += o; c in window; ) c += 'a'; (window[c] = function(e) { !0 !== u && l(null, e); }), - e.params && (n += (0, s.default)(e.params)), - (i.onreadystatechange = function() { + e.params && (n += (0, i.default)(e.params)), + (a.onreadystatechange = function() { !1 === u && 'loaded' === this.readyState && l('An error occurred', null); }), - (i.onerror = function() { + (a.onerror = function() { !1 === u && l('An error occurred', null); }), - (i.src = n + '&jsonp=' + c), - a.appendChild(i); + (a.src = n + '&jsonp=' + c), + s.appendChild(a); var l = function(e, t) { (u = !0), r && @@ -39434,29 +40678,29 @@ object-assign try { delete window[c]; } catch (e) {} - a.removeChild(i); + s.removeChild(a); }; })(e, t); }), (t.POST = function(e, t) { return 'undefined' != typeof fetch + ? c('POST', e, t) + : u() ? l('POST', e, t) - : f() - ? d('POST', e, t) : void t.reject('XHR POST not supported'); }), (t.PUT = function(e, t) { return 'undefined' != typeof fetch + ? c('PUT', e, t) + : u() ? l('PUT', e, t) - : f() - ? d('PUT', e, t) : void t.reject('XHR PUT not supported'); }), (t.DEL = function(e, t) { return 'undefined' != typeof fetch + ? c('DELETE', e, t) + : u() ? l('DELETE', e, t) - : f() - ? d('DELETE', e, t) : void t.reject('XHR DELETE not supported'); }); }, @@ -39484,21 +40728,22 @@ object-assign return n && e(t.prototype, n), r && e(t, r), t; }; })(), - r = (function(e) { - function r() { - t(this, r); - var e = (function(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || - ('object' != typeof t && 'function' != typeof t) - ? e - : t; - })( + r = function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + }, + o = (function(e) { + function o() { + t(this, o); + var e = r( this, - (r.__proto__ || Object.getPrototypeOf(r)).call(this) + (o.__proto__ || Object.getPrototypeOf(o)).call(this) ); return (e.aborted = !1), (e.onabort = null), e; } @@ -39521,8 +40766,8 @@ object-assign (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); - })(r, e), - n(r, [ + })(o, e), + n(o, [ { key: 'toString', value: function() { @@ -39547,15 +40792,15 @@ object-assign var a = o.get; return void 0 !== a ? a.call(r) : void 0; })( - r.prototype.__proto__ || - Object.getPrototypeOf(r.prototype), + o.prototype.__proto__ || + Object.getPrototypeOf(o.prototype), 'dispatchEvent', this ).call(this, e); } } ]), - r + o ); })( (function() { @@ -39612,9 +40857,9 @@ object-assign ); })() ), - o = (function() { + i = (function() { function e() { - t(this, e), (this.signal = new r()); + t(this, e), (this.signal = new o()); } return ( n(e, [ @@ -39650,13 +40895,13 @@ object-assign })(); 'undefined' != typeof Symbol && Symbol.toStringTag && - ((o.prototype[Symbol.toStringTag] = 'AbortController'), - (r.prototype[Symbol.toStringTag] = 'AbortSignal')), + ((i.prototype[Symbol.toStringTag] = 'AbortController'), + (o.prototype[Symbol.toStringTag] = 'AbortSignal')), (function(e) { if (!e.AbortController) if ( - ((e.AbortController = o), - (e.AbortSignal = r), + ((e.AbortController = i), + (e.AbortSignal = o), e.fetch) ) { var t = (function(e) { @@ -39664,19 +40909,19 @@ object-assign var t = e, n = t.fetch, r = t.Request, - i = void 0 === r ? n.Request : r, + o = void 0 === r ? n.Request : r, a = t.AbortController, - s = i; + s = o; if (s) { - var c = new (void 0 === a ? o : a)().signal; + var c = new (void 0 === a ? i : a)().signal; if (new s('/', { signal: c }).signal) return { fetch: n, Request: s }; (s = function(e, t) { - var n = new i(e, t); + var n = new o(e, t); return ( t && t.signal && (n.signal = t.signal), n ); - }).prototype = i.prototype; + }).prototype = o.prototype; } var u = n; return { @@ -39716,15 +40961,15 @@ object-assign }; })(e), n = t.fetch, - i = t.Request; - (e.fetch = n), (e.Request = i); + r = t.Request; + (e.fetch = n), (e.Request = r); } else console.warn( 'fetch() is not available, cannot install abortcontroller-polyfill' ); })('undefined' != typeof self ? self : e); })(); - }.call(this, n(2))); + }.call(this, n(1))); }, function(e, t, n) { 'use strict'; @@ -39755,8 +41000,8 @@ object-assign return e; }; t.default = l; - var i = u(n(1)), - a = u(n(0)); + var i = u(n(0)), + a = u(n(2)); n(13), n(3); var s = n(7), c = n(6); @@ -39886,6 +41131,7 @@ object-assign ); }), (l.prototype.send = function(e) { + var t = this; if ( this.config && !this.config.api_key && @@ -39897,36 +41143,103 @@ object-assign e && 'object' === (void 0 === e ? 'undefined' : r(e)) ? (0, s.mapKeysToUnderscore)(e) : {}); - var t = this.config.method; - 'DELETE' === t && (t = 'DEL'); - var n = this.httpHandlers[t], - o = (0, a.default)({}, this.config); + var n = this.config.method; + 'DELETE' === n && (n = 'DEL'); + var o = this.httpHandlers[n], + i = (0, a.default)({}, this.config); 'DELETE' !== this.config.method && - void 0 === o.params.analysis_type && - o.url.indexOf('/queries/') > -1 && - o.url.indexOf('/saved/') < 0 && - (o.params.analysis_type = o.url.split('/queries/').pop()); - var i = void 0; + void 0 === i.params.analysis_type && + i.url.indexOf('/queries/') > -1 && + i.url.indexOf('/saved/') < 0 && + (i.params.analysis_type = i.url.split('/queries/').pop()); + var c = void 0; 'undefined' != typeof AbortController && - (i = new AbortController()); - var c = void 0, - u = new Promise(function(e, t) { - var r = {}; + (c = new AbortController()); + var u = void 0, + l = new Promise(function(e, t) { + var n = {}; return ( - i && (r.signal = i.signal), - (r.resolve = e), - (r.reject = t), - (c = n(o, r)) + c && (n.signal = c.signal), + (n.resolve = e), + (n.reject = t), + (u = o(i, n)) ); }).then(function(e) { - return e; + if ( + (Array.isArray(e.result) + ? t.config.params.interval + ? t.config.params.group_by + ? e.result.forEach(function(e) { + e.value.forEach(function(e) { + isNaN(Number(e.result)) || + (e.result = Number(e.result)); + }); + }) + : e.result.forEach(function(e) { + isNaN(Number(e.value)) || + (e.value = Number(e.value)); + }) + : e.result.forEach(function(e) { + isNaN(Number(e.result)) || + (e.result = Number(e.result)); + }) + : isNaN(Number(e.result)) || + (e.result = Number(e.result)), + t.config.resultParsers) + ) + if (Array.isArray(e.result)) + t.config.params.interval + ? t.config.params.group_by + ? e.result.forEach(function(e) { + e.value.forEach(function(e) { + var n = void 0; + t.config.resultParsers.forEach(function(t) { + n = t(n || e.result); + }), + (e.result = n); + }); + }) + : e.result.forEach(function(e) { + var n = void 0; + t.config.resultParsers.forEach(function(t) { + n = t(n || e.value); + }), + (e.value = n); + }) + : e.result.forEach(function(e) { + var n = void 0; + t.config.resultParsers.forEach(function(t) { + n = t(n || e.result); + }), + (e.result = n); + }); + else if ('object' === r(e.result)) + Object.keys(e.result).forEach(function(n) { + var r = void 0; + t.config.resultParsers.forEach(function(t) { + r = t(r || e.result[n]); + }), + (e.result[n] = r); + }); + else { + var n = void 0; + t.config.resultParsers.forEach(function(t) { + n = t(n || e.result); + }), + (e.result = n); + } + return i.params && + void 0 !== i.params.event_collection && + void 0 === e.query + ? (0, a.default)({ query: i.params }, e) + : e; }); return ( - (u.abort = function() { - if (i) return i.abort(); - c.emit('abort'); + (l.abort = function() { + if (c) return c.abort(); + u.emit('abort'); }), - u + l ); }); }, @@ -40046,8 +41359,8 @@ object-assign (function(t) { var r, o = t.Keen || void 0, - i = n(1), - a = n(0), + i = n(0), + a = n(2), s = n(17), c = n(8), u = n(16); @@ -40229,7 +41542,7 @@ object-assign ? self : {} )); - }.call(this, n(2))); + }.call(this, n(1))); }, function(e, t) { var n, @@ -40447,22 +41760,22 @@ object-assign try { !(function(e) { var t = e.callback, - n = e.args; - switch (n.length) { + r = e.args; + switch (r.length) { case 0: t(); break; case 1: - t(n[0]); + t(r[0]); break; case 2: - t(n[0], n[1]); + t(r[0], r[1]); break; case 3: - t(n[0], n[1], n[2]); + t(r[0], r[1], r[2]); break; default: - t.apply(void 0, n); + t.apply(n, r); } })(t); } finally { @@ -40474,7 +41787,7 @@ object-assign })( 'undefined' == typeof self ? (void 0 === e ? this : e) : self ); - }.call(this, n(2), n(19))); + }.call(this, n(1), n(19))); }, function(e, t, n) { (function(e) { @@ -40525,7 +41838,7 @@ object-assign ('undefined' != typeof self && self.clearImmediate) || (void 0 !== e && e.clearImmediate) || (this && this.clearImmediate)); - }.call(this, n(2))); + }.call(this, n(1))); }, function(e, t, n) { 'use strict'; @@ -40558,8 +41871,8 @@ object-assign }; n(3); var i = f(n(18)), - a = f(n(1)), - s = f(n(0)), + a = f(n(0)), + s = f(n(2)), c = n(15), u = n(7), l = f(n(6)); @@ -40795,7 +42108,7 @@ object-assign 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), (t.KeenAnalysis = t.Keen = t.keenGlobals = void 0), - a(n(0)); + a(n(2)); var r = a(n(22)), o = a(n(14)), i = (function(e) { @@ -41441,33 +42754,40 @@ object-assign n = e.label, r = void 0 === n ? 'Download' : n, o = e.type, - s = void 0 === o ? 'json' : o, - c = e.data, - u = 'keen-dataviz-button', - l = [].concat(a(t.parentNode.children)).find(function(e) { - return e.className === u; - }); - if (!l) { - var f = document.createElement('button'); - (f.innerText = r), - (f.className = u), - f.addEventListener('click', function(e) { - return (0, i.default)({ event: e, type: s, data: c }); + a = void 0 === o ? 'json' : o, + s = e.data; + if ( + ![] + .concat( + (function(e) { + if (Array.isArray(e)) { + for ( + var t = 0, n = Array(e.length); + t < e.length; + t++ + ) + n[t] = e[t]; + return n; + } + return Array.from(e); + })(t.parentNode.children) + ) + .find(function(e) { + return 'keen-dataviz-button' === e.className; + }) + ) { + var c = document.createElement('button'); + (c.innerText = r), + (c.className = 'keen-dataviz-button'), + c.addEventListener('click', function(e) { + return (0, i.default)({ event: e, type: a, data: s }); }), - t.parentNode.insertBefore(f, t.nextSibling); + t.parentNode.insertBefore(c, t.nextSibling); } }); var r, o = n(40), i = (r = o) && r.__esModule ? r : { default: r }; - function a(e) { - if (Array.isArray(e)) { - for (var t = 0, n = Array(e.length); t < e.length; t++) - n[t] = e[t]; - return n; - } - return Array.from(e); - } }, function(e, t, n) { 'use strict'; @@ -42267,24 +43587,24 @@ object-assign (t[n] = e[n]); return (t.default = e), t; })(n(2)), - s = x(n(10)), - c = x(n(31)), - u = x(n(32)), + s = w(n(10)), + c = w(n(31)), + u = w(n(32)), l = n(0), - f = x(n(11)), + f = w(n(11)), d = n(14), - p = (n(4), x(n(33))), + p = (n(4), w(n(33))), h = n(15), - g = x(n(17)), - m = x(n(18)), - b = x(n(16)), - y = x(n(53)), - v = x(n(1)), - _ = x(n(54)); - function x(e) { + g = w(n(17)), + m = w(n(18)), + b = w(n(16)), + y = w(n(53)), + v = w(n(1)), + _ = w(n(54)); + function w(e) { return e && e.__esModule ? e : { default: e }; } - var w = (t.Dataviz = function e() { + var x = (t.Dataviz = function e() { var t = this, n = arguments.length > 0 && void 0 !== arguments[0] @@ -42530,7 +43850,7 @@ object-assign }.bind(e) ); } - function A(e) { + function O(e) { e.config.sortGroups && e.data().length > 1 && ((0, f.default)(e.data()[1][0]) @@ -42543,11 +43863,11 @@ object-assign e.dataset.getRowSum )); } - function O(e) { + function E(e) { e.config.sortIntervals && e.dataset.sortRows(e.config.sortIntervals); } - function E(e, t) { + function A(e, t) { var n = '', r = '', o = ''; @@ -42661,28 +43981,28 @@ object-assign })(e)) : e(); } - (w.libraries = { default: {} }), + (x.libraries = { default: {} }), 'undefined' != typeof window && - (w.libraries.default = (0, p.default)(w)), - (w.visuals = []), - (w.register = function(e, t) { - (w.libraries[e] = w.libraries[e] || {}), + (x.libraries.default = (0, p.default)(x)), + (x.visuals = []), + (x.register = function(e, t) { + (x.libraries[e] = x.libraries[e] || {}), (0, l.each)(t, function(t, n) { - w.libraries[e][n] = t; + x.libraries[e][n] = t; }); }), - (w.find = function(e) { - if (!arguments.length) return w.visuals; + (x.find = function(e) { + if (!arguments.length) return x.visuals; var t = e.nodeName ? e : document.querySelector(e), n = null; return ( - (0, l.each)(w.visuals, function(e) { + (0, l.each)(x.visuals, function(e) { if (t == e.config.container) return (n = e), !1; }), n ); }), - (w.prototype.attributes = function(e) { + (x.prototype.attributes = function(e) { if ( (this.config.showDeprecationWarnings && console.log( @@ -42699,10 +44019,10 @@ object-assign this ); }), - (w.prototype.call = function(e) { + (x.prototype.call = function(e) { return e.call(this), this; }), - (w.prototype.chartOptions = function(e) { + (x.prototype.chartOptions = function(e) { return ( this.config.showDeprecationWarnings && console.log( @@ -42714,7 +44034,7 @@ object-assign : this.config ); }), - (w.prototype.colors = function(e) { + (x.prototype.colors = function(e) { return ( this.config.showDeprecationWarnings && console.log( @@ -42726,7 +44046,7 @@ object-assign : this.config.colors ); }), - (w.prototype.colorMapping = function(e) { + (x.prototype.colorMapping = function(e) { this.config.showDeprecationWarnings && console.log( '.colorMapping() is deprecated. Use: new KeenDataviz({ colorMapping: _your_value_here_ })' @@ -42742,8 +44062,8 @@ object-assign this) : this.config.colorMapping; }), - (w.prototype.data = u.default), - (w.prototype.dateFormat = function(e) { + (x.prototype.data = u.default), + (x.prototype.dateFormat = function(e) { return ( this.config.showDeprecationWarnings && console.log( @@ -42758,14 +44078,14 @@ object-assign : this.config.dateFormat ); }), - (w.prototype.destroy = function() { + (x.prototype.destroy = function() { var e = this.library(), t = this.config.type, n = this.el(); return ( - w.libraries[e] && - w.libraries[e][t] && - w.libraries[e][t].destroy.call(this), + x.libraries[e] && + x.libraries[e][t] && + x.libraries[e][t].destroy.call(this), n && (n.innerHTML = ''), (this.view._prepared = !1), (this.view._rendered = !1), @@ -42773,7 +44093,7 @@ object-assign this ); }), - (w.prototype.el = function(e) { + (x.prototype.el = function(e) { var t = this; return arguments.length ? (C(function() { @@ -42789,14 +44109,14 @@ object-assign this) : this.config.containerElement; }), - (w.prototype.height = function(e) { + (x.prototype.height = function(e) { return ( this.config.showDeprecationWarnings && console.log('.height() is deprecated - use CSS classes'), this ); }), - (w.prototype.indexBy = function(e) { + (x.prototype.indexBy = function(e) { return ( this.config.showDeprecationWarnings && console.log( @@ -42810,7 +44130,7 @@ object-assign : this.config.indexBy ); }), - (w.prototype.labels = function(e) { + (x.prototype.labels = function(e) { return ( this.config.showDeprecationWarnings && console.log( @@ -42823,7 +44143,7 @@ object-assign : this.config.labels ); }), - (w.prototype.labelMapping = function(e) { + (x.prototype.labelMapping = function(e) { return ( this.config.showDeprecationWarnings && console.log( @@ -42844,20 +44164,20 @@ object-assign : this.config.labelMapping ); }), - (w.prototype.library = function(e) { + (x.prototype.library = function(e) { return arguments.length ? ((this.config.library = e ? String(e) : null), this) : this.config.library; }), - (w.prototype.message = function() { + (x.prototype.message = function() { if ((this.view._rendered && this.destroy(), this.el())) { this.el().innerHTML = ''; - var e = w.libraries.default.message; + var e = x.libraries.default.message; e.render && e.render.apply(this, arguments); } return this; }), - (w.prototype.notes = function(e) { + (x.prototype.notes = function(e) { return ( this.config.showDeprecationWarnings && console.log( @@ -42868,7 +44188,7 @@ object-assign : this.config.notes ); }), - (w.prototype.prepare = function() { + (x.prototype.prepare = function() { var e = this; if (!this.el()) throw this.config.container + @@ -42877,14 +44197,14 @@ object-assign C(function() { if ((e.view._rendered && e.destroy(), e.el())) { e.el().innerHTML = ''; - var t = w.libraries.default.spinner; + var t = x.libraries.default.spinner; t.render && t.render.call(e), (e.view._prepared = !0); } }), this ); }), - (w.prototype.render = function() { + (x.prototype.render = function() { var e = this, t = arguments.length > 0 && void 0 !== arguments[0] @@ -42973,9 +44293,9 @@ object-assign this.config.labels && Object.keys(this.config.labels).length > 0 && M(n), - this.config.sortGroups && A(n), - this.config.sortIntervals && O(n); - var a = w.libraries.default.spinner, + this.config.sortGroups && O(n), + this.config.sortIntervals && E(n); + var a = x.libraries.default.spinner, s = this.config.library, c = this.config.type, u = this.el(); @@ -43009,17 +44329,17 @@ object-assign a.destroy && a.destroy.apply(n, arguments), (u.innerHTML = ''), - 'undefined' === w.libraries[s]) + 'undefined' === x.libraries[s]) ) { var r = 'Incorrect library'; throw (n.message(r), r); } - if (void 0 === w.libraries[s][c]) { + if (void 0 === x.libraries[s][c]) { var o = 'Incorrect chart type', i = this.config.errorMapping[o] || o; throw (n.message(i), o); } - E(u, n.config), + A(u, n.config), t && (0, b.default)({ element: u, @@ -43038,7 +44358,7 @@ object-assign e.forEach(function(e) { e.isIntersecting && (n.view._rendered || - (w.libraries[s][c].render.call(n), + (x.libraries[s][c].render.call(n), (n.view._rendered = !0))); }); }, @@ -43066,14 +44386,14 @@ object-assign void 0 === p) || document.addEventListener(h, g, { once: !0 }); } - w.libraries[s][c].render.call(n), + x.libraries[s][c].render.call(n), (n.view._rendered = !0); } }), f ); }), - (w.prototype.sortGroups = function(e) { + (x.prototype.sortGroups = function(e) { return ( this.config.showDeprecationWarnings && console.log( @@ -43081,12 +44401,12 @@ object-assign ), arguments.length ? ((this.config.sortGroups = e ? String(e) : null), - A(this), + O(this), this) : this.config.sortGroups ); }), - (w.prototype.sortIntervals = function(e) { + (x.prototype.sortIntervals = function(e) { return ( this.config.showDeprecationWarnings && console.log( @@ -43094,12 +44414,12 @@ object-assign ), arguments.length ? ((this.config.sortIntervals = e ? String(e) : null), - O(this), + E(this), this) : this.config.sortIntervals ); }), - (w.prototype.stacked = function(e) { + (x.prototype.stacked = function(e) { return ( this.config.showDeprecationWarnings && console.log( @@ -43110,7 +44430,7 @@ object-assign : this.config.stacked ); }), - (w.prototype.theme = function(e) { + (x.prototype.theme = function(e) { return ( this.config.showDeprecationWarnings && console.log( @@ -43121,7 +44441,7 @@ object-assign : this.config.theme ); }), - (w.prototype.title = function(e) { + (x.prototype.title = function(e) { return ( this.config.showDeprecationWarnings && console.log( @@ -43132,7 +44452,7 @@ object-assign : this.config.title ); }), - (w.prototype.type = function(e) { + (x.prototype.type = function(e) { return ( this.config.showDeprecationWarnings && console.log( @@ -43143,7 +44463,7 @@ object-assign : this.config.type ); }), - (w.prototype.update = function() { + (x.prototype.update = function() { var e = this.config.library, t = this.config.type, n = this.el(); @@ -43151,19 +44471,19 @@ object-assign e && t && n && - w.libraries[e][t].update && - w.libraries[e][t].update.apply(this, arguments), + x.libraries[e][t].update && + x.libraries[e][t].update.apply(this, arguments), this ); }), - (w.prototype.width = function(e) { + (x.prototype.width = function(e) { return ( this.config.showDeprecationWarnings && console.log('.width() is deprecated - use CSS classes'), this ); }), - (w.prototype.exportImage = function() { + (x.prototype.exportImage = function() { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] @@ -43178,24 +44498,24 @@ object-assign bgcolor: o }); }), - (w.prototype.exportData = function() { + (x.prototype.exportData = function() { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 'json'; (0, m.default)({ data: this.dataset.matrix, type: e }); }), - (w.prototype.chartType = w.prototype.type), - (w.prototype.error = w.prototype.message), - (w.prototype.parseRawData = w.prototype.data), - (w.prototype.parseRequest = function() { + (x.prototype.chartType = x.prototype.type), + (x.prototype.error = x.prototype.message), + (x.prototype.parseRawData = x.prototype.data), + (x.prototype.parseRequest = function() { return this; }), - (w.prototype.initialize = function() { + (x.prototype.initialize = function() { return this; }), - (w.version = c.default.version), - (t.default = w); + (x.version = c.default.version), + (t.default = x); }, function(e, t, n) { 'use strict'; @@ -43987,10 +45307,9 @@ object-assign return t; })(o)), (this.config.type = l)), - (t = i.default.parser.apply( - this, - [o].concat(f) - )((0, a.extend)(e, { query: c }))), + (t = i.default.parser.apply(this, [o].concat(f))( + (0, a.extend)(e, { query: c }) + )), o.indexOf('interval') > -1 && t.updateColumn(0, function(e, t) { return new Date(e); @@ -44069,8 +45388,8 @@ object-assign 'funnel-3d': new y.default(), 'horizontal-funnel': new v.default(), 'horizontal-funnel-3d': new _.default(), - 'metric-combo': new x.default(), - heatmap: new w.default(), + 'metric-combo': new w.default(), + heatmap: new x.default(), choropleth: new M.default() }, t = function(e, t) { @@ -44334,7 +45653,7 @@ object-assign format: { title: this.config.tooltip.format.title, value: function(t, n, r, o) { - var i = O.call(e, t, n, r, o); + var i = E.call(e, t, n, r, o); return e.config.tooltip && e.config.tooltip.format && e.config.tooltip.format.value @@ -44379,11 +45698,11 @@ object-assign }), !0 === p.legend.show) ) { - var x = r({}, p); - (x.data.color = A.bind(this)), - (x.legend.hide = !0), + var w = r({}, p); + (w.data.color = O.bind(this)), + (w.legend.hide = !0), (this.view._artifacts.c3 = o.default.generate( - x + w )), u.default.call( this, @@ -44395,19 +45714,19 @@ object-assign n && ('top' === p.legend.position || 'bottom' === p.legend.position - ? ((x.size.height -= + ? ((w.size.height -= n.offsetHeight), e.view._artifacts.c3.resize({ - height: x.size.height + height: w.size.height })) - : (0 === x.size.width && - (x.size.width = + : (0 === w.size.width && + (w.size.width = e.el().offsetWidth - t(e.el(), 'Left') - t(e.el(), 'Right')), - (x.size.width -= n.offsetWidth), + (w.size.width -= n.offsetWidth), e.view._artifacts.c3.resize({ - width: x.size.width + width: w.size.width }))); }, onPaginated: function() { @@ -44420,8 +45739,8 @@ object-assign p ); } else { - var w = 'No data to display', - M = this.config.errorMapping[w] || w; + var x = 'No data to display', + M = this.config.errorMapping[x] || x; this.config.showErrorMessages && this.message(M); } @@ -44459,8 +45778,8 @@ object-assign y = k(n(47)), v = k(n(48)), _ = k(n(49)), - x = k(n(50)), - w = k(n(51)), + w = k(n(50)), + x = k(n(51)), M = k(n(52)); function k(e) { return e && e.__esModule ? e : { default: e }; @@ -44473,7 +45792,7 @@ object-assign } return Array.from(e); } - function A(e, t) { + function O(e, t) { var n = this.config.type; if (this.view._artifacts.pagination && 'gauge' !== n) { var r = this.view._artifacts.pagination.labels; @@ -44486,7 +45805,7 @@ object-assign } return e; } - function O(e, t, n, r) { + function E(e, t, n, r) { var o = this.config.type; return this.view._artifacts.pagination && 'gauge' !== o ? this.view._artifacts.pagination.labels.indexOf(n) > -1 @@ -44674,10 +45993,10 @@ object-assign n >= 0 ? n : Math.floor(u.total / u.limit) * u.limit; }; t.addEventListener('click', function() { - n('forward'), y(), x(); + n('forward'), y(), w(); }), e.addEventListener('click', function() { - n('backward'), y(), x(); + n('backward'), y(), w(); }), 'left' === c.position || 'right' === c.position ? (e.setAttribute('class', 'up'), @@ -44689,7 +46008,7 @@ object-assign h.append(e), b.append(t)); } - function x() { + function w() { document.selection && document.selection.empty ? document.selection.empty() : window.getSelection && @@ -44976,55 +46295,58 @@ object-assign ); }, getAndEncode: function(e) { + var t = 3e4; return ( s.impl.options.cacheBust && (e += (/\?/.test(e) ? '&' : '?') + new Date().getTime()), - new Promise(function(t) { - var n, - r = new XMLHttpRequest(); + new Promise(function(n) { + var r, + o = new XMLHttpRequest(); if ( - ((r.onreadystatechange = function() { - if (4 === r.readyState) - if (200 === r.status) { - var o = new FileReader(); - (o.onloadend = function() { - var e = o.result.split(/,/)[1]; - t(e); + ((o.onreadystatechange = function() { + if (4 === o.readyState) + if (200 === o.status) { + var t = new FileReader(); + (t.onloadend = function() { + var e = t.result.split(/,/)[1]; + n(e); }), - o.readAsDataURL(r.response); + t.readAsDataURL(o.response); } else - n - ? t(n) - : i( + r + ? n(r) + : a( 'cannot fetch resource: ' + e + ', status: ' + - r.status + o.status ); }), - (r.ontimeout = function() { - n - ? t(n) - : i( - 'timeout of 30000ms occured while fetching resource: ' + + (o.ontimeout = function() { + r + ? n(r) + : a( + 'timeout of ' + + t + + 'ms occured while fetching resource: ' + e ); }), - (r.responseType = 'blob'), - (r.timeout = 3e4), - r.open('GET', e, !0), - r.send(), + (o.responseType = 'blob'), + (o.timeout = t), + o.open('GET', e, !0), + o.send(), s.impl.options.imagePlaceholder) ) { - var o = s.impl.options.imagePlaceholder.split( + var i = s.impl.options.imagePlaceholder.split( /,/ ); - o && o[1] && (n = o[1]); + i && i[1] && (r = i[1]); } - function i(e) { - console.error(e), t(''); + function a(e) { + console.error(e), n(''); } }) ); @@ -45321,8 +46643,29 @@ object-assign ? n.makeImage(e.toDataURL()) : e.cloneNode(!1); }) - .then(function(e) { - return i(t, e, r); + .then(function(o) { + return (function(t, r, o) { + var i = t.childNodes; + return 0 === i.length + ? Promise.resolve(r) + : (function(t, n, r) { + var o = Promise.resolve(); + return ( + n.forEach(function(n) { + o = o + .then(function() { + return e(n, r); + }) + .then(function(e) { + e && t.appendChild(e); + }); + }), + o + ); + })(r, n.asArray(i), o).then(function() { + return r; + }); + })(t, o, r); }) .then(function(e) { return (function(e, t) { @@ -45359,59 +46702,66 @@ object-assign i = o.getPropertyValue( 'content' ); - if ('' === i || 'none' === i) - return; - var a = n.uid(); - t.className = - t.className + ' ' + a; - var s = document.createElement( - 'style' - ); - s.appendChild( - (function(e, t, r) { - var o = '.' + e + ':' + t, - i = r.cssText - ? (function(e) { - var t = e.getPropertyValue( - 'content' - ); - return ( - e.cssText + - ' content: ' + - t + - ';' - ); - })(r) - : (function(e) { - return ( - n - .asArray(e) - .map(function( - t - ) { - return ( - t + - ': ' + - e.getPropertyValue( - t - ) + - (e.getPropertyPriority( + if ( + '' !== i && + 'none' !== i + ) { + var a = n.uid(); + t.className = + t.className + ' ' + a; + var s = document.createElement( + 'style' + ); + s.appendChild( + (function(e, t, r) { + var o = + '.' + e + ':' + t, + i = r.cssText + ? (function(e) { + var t = e.getPropertyValue( + 'content' + ); + return ( + e.cssText + + ' content: ' + + t + + ';' + ); + })(r) + : (function(e) { + return ( + n + .asArray(e) + .map( + function( t - ) - ? ' !important' - : '') - ); - }) - .join('; ') + - ';' - ); - })(r); - return document.createTextNode( - o + '{' + i + '}' - ); - })(a, r, o) - ), - t.appendChild(s); + ) { + return ( + t + + ': ' + + e.getPropertyValue( + t + ) + + (e.getPropertyPriority( + t + ) + ? ' !important' + : '') + ); + } + ) + .join( + '; ' + ) + ';' + ); + })(r); + return document.createTextNode( + o + '{' + i + '}' + ); + })(a, r, o) + ), + t.appendChild(s); + } })(r); } ); @@ -45447,29 +46797,6 @@ object-assign })(t, e); }) : Promise.resolve(); - function i(t, r, o) { - var i = t.childNodes; - return 0 === i.length - ? Promise.resolve(r) - : a(r, n.asArray(i), o).then(function() { - return r; - }); - function a(t, n, r) { - var o = Promise.resolve(); - return ( - n.forEach(function(n) { - o = o - .then(function() { - return e(n, r); - }) - .then(function(e) { - e && t.appendChild(e); - }); - }), - o - ); - } - } })(e, t.filter, !0); }) .then(l) @@ -45768,8 +47095,8 @@ object-assign y = this.config, v = y.results, _ = y.previousResults, - x = y.isExtraction, - w = y.comparedProp; + w = y.isExtraction, + x = y.comparedProp; if ( (v && _ && @@ -45783,7 +47110,7 @@ object-assign this.data()[1][1] && 'number' == typeof this.data()[1][1] && (c = this.data()[1][1]), - x && w) + w && x) ) { var M = (function(e, t) { var n = e.query, @@ -45799,7 +47126,7 @@ object-assign }), o ); - })(v, w); + })(v, x); (c = M[0].result), (h = (u = M[1].result) ? ' metric-comparison' : ''), (b = u && n ? '-smaller' : ''), @@ -45850,8 +47177,8 @@ object-assign '"> ' + (0, i.escapeHtml)(g) + ''), - x && - w && + w && + x && (c && u ? ((l += '
'; var S = !0, - A = !1, - O = void 0; + O = !1, + E = void 0; try { for ( - var E, T = k.entries()[Symbol.iterator](); - !(S = (E = T.next()).done); + var A, T = k.entries()[Symbol.iterator](); + !(S = (A = T.next()).done); S = !0 ) { - var C = E.value, + var C = A.value, L = o(C, 2), P = L[0], D = L[1]; b && D instanceof Date && (D = b(D)); - var z = (0, a.escapeHtml)(D); + var j = (0, a.escapeHtml)(D); h[P] - ? (n += '' + m[h[P]](z) + '') - : (n += '' + z + ''); + ? (n += '' + m[h[P]](j) + '') + : (n += '' + j + ''); } } catch (e) { - (A = !0), (O = e); + (O = !0), (E = e); } finally { try { !S && T.return && T.return(); } finally { - if (A) throw O; + if (O) throw E; } } n += ''; } } catch (e) { - (_ = !0), (x = e); + (_ = !0), (w = e); } finally { try { !v && M.return && M.return(); } finally { - if (_) throw x; + if (_) throw w; } } if (l > 1) { n += ''; - var N = 1, - j = 1 === u ? 1 : u - 1, + var z = 1, + N = 1 === u ? 1 : u - 1, R = u === l ? l : u + 1; for ( s.arrows && (n += - '«'); - N <= l; + '«'); + z <= l; ) (n += '' + - N + + z + ''), - N++; + z++; s.arrows && (n += '»'), @@ -46290,15 +47617,15 @@ object-assign y = d.marginBetweenSteps, v = d.resultValues, _ = d.hover, - x = d.minimalSize, - w = 20, + w = d.minimalSize, + x = 20, M = 30, k = 30, S = 200, - A = 0; - y && (A = 5); - var O = i.select(r), - E = i + O = 0; + y && (O = 5); + var E = i.select(r), + A = i .select( this.el().querySelector( '.' + @@ -46307,24 +47634,24 @@ object-assign ) ) .append('svg'), - T = O.style('width').slice(0, -2) - M - S, - C = O.style('height').slice(0, -2) - w - k - 30, + T = E.style('width').slice(0, -2) - M - S, + C = E.style('height').slice(0, -2) - x - k - 30, L = C / (e.length - 1), P = T, D = (100).toFixed(m), - z = 0; - x && (z = (T - x) / (e.length - 2)); - var N = e.slice(1).map(function(t, n) { + j = 0; + w && (j = (T - w) / (e.length - 2)); + var z = e.slice(1).map(function(t, n) { var r = [ - { x: (T - P) / 2, y: L * n + A }, - { x: (T - P) / 2 + P, y: L * n + A } + { x: (T - P) / 2, y: L * n + O }, + { x: (T - P) / 2 + P, y: L * n + O } ]; 0 !== n && ('relative' === g && - (x ? (P -= z) : (P = (P * t[1]) / e[n][1]), + (w ? (P -= j) : (P = (P * t[1]) / e[n][1]), (D = ((t[1] / e[n][1]) * 100).toFixed(m))), 'absolute' === g && - (x ? (P -= z) : (P = (T * t[1]) / e[1][1]), + (w ? (P -= j) : (P = (T * t[1]) / e[1][1]), (D = ((t[1] / e[1][1]) * 100).toFixed(m)))); var i = t[0]; if (Object.keys(o).length) @@ -46348,20 +47675,20 @@ object-assign ); }); if ( - (E.attr('preserveAspectRatio', 'xMidYMid slice') + (A.attr('preserveAspectRatio', 'xMidYMid slice') .attr( 'viewBox', - '0 0 ' + (T + S + M) + ' ' + (C + w + k - 30) + '0 0 ' + (T + S + M) + ' ' + (C + x + k - 30) ) .attr('height', '100%') .attr('width', '100%') .append('g') .attr( 'transform', - 'translate(' + S + ',' + w + ')' + 'translate(' + S + ',' + x + ')' ) .selectAll('polygon') - .data(N) + .data(z) .enter() .append('polygon') .attr('points', function(e) { @@ -46379,36 +47706,36 @@ object-assign }) .attr('cursor', 'pointer'), b && - (E.selectAll('line') - .data(N) + (A.selectAll('line') + .data(z) .enter() .append('line') .attr('x1', 10) .attr('y1', function(e) { - return e.points[0].y + w - A / 2; + return e.points[0].y + x - O / 2; }) .attr('x2', function(e) { return e.points[1].x + S; }) .attr('y2', function(e) { - return e.points[0].y + w - A / 2; + return e.points[0].y + x - O / 2; }) .attr('class', 'chart-lines'), - E.append('line') + A.append('line') .attr('x1', 10) .attr( 'y1', - N[N.length - 1].points[2].y + w + A / 2 + z[z.length - 1].points[2].y + x + O / 2 ) - .attr('x2', N[N.length - 1].points[2].x + S) + .attr('x2', z[z.length - 1].points[2].x + S) .attr( 'y2', - N[N.length - 1].points[2].y + w + A / 2 + z[z.length - 1].points[2].y + x + O / 2 ) .attr('class', 'chart-lines')), b && - E.selectAll('text.label') - .data(N) + A.selectAll('text.label') + .data(z) .enter() .append('text') .style('text-anchor', 'start') @@ -46417,8 +47744,8 @@ object-assign return ( (e.points[2].y - e.points[1].y) / 2 + e.points[1].y + - w + - A + + x + + O + 5 ); }) @@ -46431,8 +47758,8 @@ object-assign .call(a.textWrap, S) .attr('cursor', 'pointer'), b || - E.selectAll('text.label') - .data(N) + A.selectAll('text.label') + .data(z) .enter() .append('text') .style('text-anchor', 'end') @@ -46447,8 +47774,8 @@ object-assign return ( (e.points[2].y - e.points[1].y) / 2 + e.points[1].y + - w + - A + + x + + O + 5 ); }) @@ -46462,8 +47789,8 @@ object-assign .attr('cursor', 'pointer'), h && !v && - E.selectAll('text.label') - .data(N) + A.selectAll('text.label') + .data(z) .enter() .append('text') .style('text-anchor', 'middle') @@ -46472,8 +47799,8 @@ object-assign return ( (e.points[2].y - e.points[1].y) / 2 + e.points[1].y + - w + - A + + x + + O + 8 ); }) @@ -46486,8 +47813,8 @@ object-assign .attr('cursor', 'pointer'), v && !h && - E.selectAll('text.label') - .data(N) + A.selectAll('text.label') + .data(z) .enter() .append('text') .style('text-anchor', 'middle') @@ -46496,8 +47823,8 @@ object-assign return ( (e.points[2].y - e.points[1].y) / 2 + e.points[1].y + - w + - A + + x + + O + 8 ); }) @@ -46510,22 +47837,22 @@ object-assign .attr('cursor', 'pointer'), h && v && - (E.selectAll('text.label') - .data(N) + (A.selectAll('text.label') + .data(z) .enter() .append('text') .style('text-anchor', 'middle') .attr('x', T / 2 + S) .attr('y', function(e) { - return 0 === A + return 0 === O ? (e.points[2].y - e.points[1].y) / 2 + e.points[1].y + - w + + x + 16 : (e.points[2].y - e.points[1].y) / 2 + e.points[1].y + - w + - A + + x + + O + 12; }) .attr('class', function(e) { @@ -46535,21 +47862,21 @@ object-assign return e.percent; }) .attr('cursor', 'pointer'), - E.selectAll('text.label') - .data(N) + A.selectAll('text.label') + .data(z) .enter() .append('text') .style('text-anchor', 'middle') .attr('x', T / 2 + S) .attr('y', function(e) { - return 0 === A + return 0 === O ? (e.points[2].y - e.points[1].y) / 2 + e.points[1].y + - w + x : (e.points[2].y - e.points[1].y) / 2 + e.points[1].y + - w + - A - + x + + O - 5; }) .attr('class', function(e) { @@ -46561,25 +47888,25 @@ object-assign .attr('cursor', 'pointer')), _) ) { - var j = function(e) { + var N = function(e) { I.style('opacity', 0.5), F.style('opacity', 0.5); var t = /[^ ]*$/.exec( i.select(this).attr('class') )[0]; - E.selectAll('.' + t).style('opacity', 1); + A.selectAll('.' + t).style('opacity', 1); }, R = function(e) { I.style('opacity', 1), F.style('opacity', 1); }, - I = E.selectAll('polygon'); - I.on('mouseover', j).on('mouseout', R); - var F = E.selectAll('text'); - F.on('mouseover', j).on('mouseout', R); + I = A.selectAll('polygon'); + I.on('mouseover', N).on('mouseout', R); + var F = A.selectAll('text'); + F.on('mouseover', N).on('mouseout', R); } l && l.clickToCopyToClipboard && - E.selectAll('text').on('click', function(e) { + A.selectAll('text').on('click', function(e) { var t = e.percent, n = e.result; v @@ -46672,13 +47999,13 @@ object-assign y = d.resultValues, v = d.effect3d, _ = d.hover, - x = d.minimalSize, - w = 20, + w = d.minimalSize, + x = 20, M = 30, k = 60, S = 200, - A = i.select(r), - O = i + O = i.select(r), + E = i .select( this.el().querySelector( '.' + @@ -46687,27 +48014,27 @@ object-assign ) ) .append('svg'), - E = A.style('width').slice(0, -2) - M - S, - T = A.style('height').slice(0, -2) - w - k - 30, + A = O.style('width').slice(0, -2) - M - S, + T = O.style('height').slice(0, -2) - x - k - 30, C = T / (e.length - 1), L = 0.3 * C, P = 2.5 * L, - D = E, - z = (100).toFixed(m), - N = 0; - x && (N = (E - x) / (e.length - 2)); - var j = e.slice(1).map(function(t, n) { + D = A, + j = (100).toFixed(m), + z = 0; + w && (z = (A - w) / (e.length - 2)); + var N = e.slice(1).map(function(t, n) { var r = [ - { x: (E - D) / 2, y: C * n + L }, - { x: (E - D) / 2 + D, y: C * n + L } + { x: (A - D) / 2, y: C * n + L }, + { x: (A - D) / 2 + D, y: C * n + L } ]; 0 !== n && ('relative' === g && - (x ? (D -= N) : (D = (D * t[1]) / e[n][1]), - (z = ((t[1] / e[n][1]) * 100).toFixed(m))), + (w ? (D -= z) : (D = (D * t[1]) / e[n][1]), + (j = ((t[1] / e[n][1]) * 100).toFixed(m))), 'absolute' === g && - (x ? (D -= N) : (D = (E * t[1]) / e[1][1]), - (z = ((t[1] / e[1][1]) * 100).toFixed(m)))); + (w ? (D -= z) : (D = (A * t[1]) / e[1][1]), + (j = ((t[1] / e[1][1]) * 100).toFixed(m)))); var i = t[0]; if (Object.keys(o).length) for (var a in o) o[a] === t[0] && (i = a); @@ -46720,16 +48047,16 @@ object-assign { name: t[0], label: i, - percent: z + '%', + percent: j + '%', result: c, points: [].concat(r, [ - { x: (E - D) / 2 + D, y: C * (n + 1) }, - { x: (E - D) / 2, y: C * (n + 1) } + { x: (A - D) / 2 + D, y: C * (n + 1) }, + { x: (A - D) / 2, y: C * (n + 1) } ]) } ); }), - R = j.map(function(e, t) { + R = N.map(function(e, t) { return { label: e.label, points: [ @@ -46739,8 +48066,8 @@ object-assign x: 'left' === v ? e.points[2].x - : e.points[2].x - P < E / 2 - ? E / 2 + 5 + : e.points[2].x - P < A / 2 + ? A / 2 + 5 : e.points[2].x - P, y: 'left' === v @@ -46751,8 +48078,8 @@ object-assign x: 'right' === v ? e.points[3].x - : e.points[3].x + P > E / 2 - ? E / 2 - 5 + : e.points[3].x + P > A / 2 + ? A / 2 - 5 : e.points[3].x + P, y: 'right' === v @@ -46762,19 +48089,19 @@ object-assign ] }; }), - I = j.concat(R); + I = N.concat(R); if ( - (O.attr('preserveAspectRatio', 'xMidYMid meet') + (E.attr('preserveAspectRatio', 'xMidYMid meet') .attr( 'viewBox', - '0 0 ' + (E + S + M) + ' ' + (T + w + k - 30) + '0 0 ' + (A + S + M) + ' ' + (T + x + k - 30) ) .attr('height', '100%') .attr('width', '100%') .append('g') .attr( 'transform', - 'translate(' + S + ',' + w + ')' + 'translate(' + S + ',' + x + ')' ) .selectAll('polygon') .data(I) @@ -46788,10 +48115,10 @@ object-assign .join(' '); }) .style('fill', function(e, t) { - return t > j.length - 1 + return t > N.length - 1 ? c[e.label] ? i.rgb(c[e.label]).darker(1.5) - : i.rgb(n[t - j.length]).darker(1.5) + : i.rgb(n[t - N.length]).darker(1.5) : c[e.label] ? c[e.label] : n[t]; @@ -46801,13 +48128,13 @@ object-assign }) .attr('cursor', 'pointer'), b && - (O.selectAll('line') - .data(j) + (E.selectAll('line') + .data(N) .enter() .append('line') .attr('x1', 10) .attr('y1', function(e) { - return e.points[0].y + w - L / 5; + return e.points[0].y + x - L / 5; }) .attr('x2', function(e, t) { return 0 === t @@ -46815,24 +48142,24 @@ object-assign : e.points[1].x + S - P; }) .attr('y2', function(e) { - return e.points[0].y + w - L / 5; + return e.points[0].y + x - L / 5; }) .attr('class', 'chart-lines'), - O.append('line') + E.append('line') .attr('x1', 10) .attr( 'y1', - j[j.length - 1].points[2].y + w + L - L / 5 + N[N.length - 1].points[2].y + x + L - L / 5 ) - .attr('x2', j[j.length - 1].points[2].x + S - P) + .attr('x2', N[N.length - 1].points[2].x + S - P) .attr( 'y2', - j[j.length - 1].points[2].y + w + L - L / 5 + N[N.length - 1].points[2].y + x + L - L / 5 ) .attr('class', 'chart-lines')), b && - O.selectAll('text.label') - .data(j) + E.selectAll('text.label') + .data(N) .enter() .append('text') .style('text-anchor', 'start') @@ -46841,7 +48168,7 @@ object-assign return ( (e.points[2].y - e.points[1].y) / 2 + e.points[1].y + - w + + x + 5 + L / 4 ); @@ -46855,8 +48182,8 @@ object-assign .call(a.textWrap, S) .attr('cursor', 'pointer'), b || - O.selectAll('text.label') - .data(j) + E.selectAll('text.label') + .data(N) .enter() .append('text') .style('text-anchor', 'end') @@ -46871,7 +48198,7 @@ object-assign return ( (e.points[2].y - e.points[1].y) / 2 + e.points[1].y + - w + + x + 5 ); }) @@ -46885,17 +48212,17 @@ object-assign .attr('cursor', 'pointer'), h && !y && - O.selectAll('text.label') - .data(j) + E.selectAll('text.label') + .data(N) .enter() .append('text') .style('text-anchor', 'middle') - .attr('x', E / 2 + S) + .attr('x', A / 2 + S) .attr('y', function(e) { return ( (e.points[2].y - e.points[1].y) / 2 + e.points[1].y + - w + + x + 8 ); }) @@ -46908,17 +48235,17 @@ object-assign .attr('cursor', 'pointer'), y && !h && - O.selectAll('text.label') - .data(j) + E.selectAll('text.label') + .data(N) .enter() .append('text') .style('text-anchor', 'middle') - .attr('x', E / 2 + S) + .attr('x', A / 2 + S) .attr('y', function(e) { return ( (e.points[2].y - e.points[1].y) / 2 + e.points[1].y + - w + + x + 8 ); }) @@ -46931,17 +48258,17 @@ object-assign .attr('cursor', 'pointer'), h && y && - (O.selectAll('text.label') - .data(j) + (E.selectAll('text.label') + .data(N) .enter() .append('text') .style('text-anchor', 'middle') - .attr('x', E / 2 + S) + .attr('x', A / 2 + S) .attr('y', function(e) { return ( (e.points[2].y - e.points[1].y) / 2 + e.points[1].y + - w + + x + 18 ); }) @@ -46952,17 +48279,17 @@ object-assign return e.percent; }) .attr('cursor', 'pointer'), - O.selectAll('text.label') - .data(j) + E.selectAll('text.label') + .data(N) .enter() .append('text') .style('text-anchor', 'middle') - .attr('x', E / 2 + S) + .attr('x', A / 2 + S) .attr('y', function(e) { return ( (e.points[2].y - e.points[1].y) / 2 + e.points[1].y + - w + + x + 3 ); }) @@ -46981,739 +48308,739 @@ object-assign var t = /[^ ]*$/.exec( i.select(this).attr('class') )[0]; - O.selectAll('.' + t).style('opacity', 1); - }, - q = function(e) { - B.style('opacity', 1), H.style('opacity', 1); - }, - B = O.selectAll('polygon'); - B.on('mouseover', F).on('mouseout', q); - var H = O.selectAll('text'); - H.on('mouseover', F).on('mouseout', q); - } - l && - l.clickToCopyToClipboard && - O.selectAll('text').on('click', function(e) { - var t = e.percent, - n = e.result; - y - ? (0, u.default)(n, i.event) - : h && (0, u.default)(t, i.event); - }); - } - }, - { - key: 'update', - value: function() { - this.destroy(), this.render(); - } - }, - { - key: 'destroy', - value: function() { - i.select( - this.el().querySelector( - '.' + this.config.theme + '-rendering .c3-chart' - ) - ).remove(); - } - } - ]), - e - ); - })(); - t.default = l; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r, - o = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - i = (function(e) { - if (e && e.__esModule) return e; - var t = {}; - if (null != e) - for (var n in e) - Object.prototype.hasOwnProperty.call(e, n) && - (t[n] = e[n]); - return (t.default = e), t; - })(n(2)), - a = n(6), - s = n(3), - c = n(1), - u = (r = c) && r.__esModule ? r : { default: r }, - l = (function() { - function e() { - !(function(e, t) { - if (!(e instanceof t)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, e); - } - return ( - o(e, [ - { - key: 'render', - value: function() { - var e = this.dataset.matrix, - t = this.config, - n = t.colors, - r = t.container, - o = t.labelMapping, - c = t.colorMapping, - l = t.utils, - f = this.config, - d = this.config.funnel, - p = d.percents, - h = p.show, - g = p.countingMethod, - m = p.decimals, - b = d.lines, - y = d.marginBetweenSteps, - v = d.resultValues, - _ = d.hover, - x = d.minimalSize, - w = 20, - M = 30, - k = 100, - S = 10, - A = 0; - y && (A = 5); - var O = i.select(r), - E = i - .select( - this.el().querySelector( - '.' + - this.config.theme + - '-rendering .c3-chart' - ) - ) - .append('svg'), - T = O.style('width').slice(0, -2) - M - S, - C = O.style('height').slice(0, -2) - w - k - 30, - L = T / (e.length - 1), - P = C, - D = (100).toFixed(m), - z = 0; - x && (z = (C - x) / (e.length - 2)); - var N = e.slice(1).map(function(t, n) { - var r = [ - { x: L * n + A, y: (C - P) / 2 }, - { x: L * n + A, y: (C - P) / 2 + P } - ]; - 0 !== n && - ('relative' === g && - (x ? (P -= z) : (P = (P * t[1]) / e[n][1]), - (D = ((t[1] / e[n][1]) * 100).toFixed(m))), - 'absolute' === g && - (x ? (P -= z) : (P = (C * t[1]) / e[1][1]), - (D = ((t[1] / e[1][1]) * 100).toFixed(m)))); - var i = t[0]; - if (Object.keys(o).length) - for (var a in o) o[a] === t[0] && (i = a); - var c = t[1]; - return ( - (void 0 !== f.prettyNumber && - !0 !== f.prettyNumber) || - isNaN(parseInt(t[1])) || - (c = (0, s.prettyNumber)(t[1])), - { - name: t[0], - label: i, - percent: D + '%', - result: c, - points: [].concat(r, [ - { x: L * (n + 1), y: (C - P) / 2 + P }, - { x: L * (n + 1), y: (C - P) / 2 } - ]) - } - ); - }); - if ( - (E.attr('preserveAspectRatio', 'xMidYMid meet') - .attr( - 'viewBox', - '0 0 ' + (T + S + M) + ' ' + (C + w + k - 30) - ) - .attr('height', '100%') - .attr('width', '100%') - .append('g') - .attr( - 'transform', - 'translate(' + S + ',' + w + ')' - ) - .selectAll('polygon') - .data(N) - .enter() - .append('polygon') - .attr('points', function(e) { - return e.points - .map(function(e) { - return [e.x, e.y].join(','); - }) - .join(' '); - }) - .style('fill', function(e, t) { - return c[e.label] ? c[e.label] : n[t]; - }) - .attr('class', function(e) { - return e.label; - }) - .attr('cursor', 'pointer'), - b && - (E.selectAll('line') - .data(N) - .enter() - .append('line') - .attr('x1', function(e) { - return e.points[0].x + S - A / 2; - }) - .attr('y1', C + k) - .attr('x2', function(e) { - return e.points[0].x + S - A / 2; - }) - .attr('y2', function(e) { - return e.points[0].y + w; - }) - .attr('class', 'chart-lines'), - E.append('line') - .attr('x1', T + S - A / 2) - .attr('y1', C + k) - .attr( - 'x2', - N[N.length - 1].points[3].x + S + A / 2 - ) - .attr('y2', N[N.length - 1].points[3].y + w) - .attr('class', 'chart-lines')), - b && - E.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(e) { - return e.points[1].x + L / 2 + S; - }) - .attr('y', C + 0.5 * k + w) - .attr('class', function(e) { - return 'text-label ' + e.label; - }) - .text(function(e) { - return e.name; - }) - .call(a.textWrap, L) - .attr('cursor', 'pointer'), - b || - E.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(e) { - return e.points[1].x + L / 2 + S; - }) - .attr('y', function(e) { - return e.points[2].y + - (e.points[3].y - e.points[0].y) / 2 + - L / 4 > - C + k - 40 + w - ? C + k - 40 + w - : e.points[2].y + - (e.points[3].y - e.points[0].y) / 2 + - L / 4 + - w; - }) - .attr('class', function(e) { - return 'text-label ' + e.label; - }) - .text(function(e) { - return e.name; - }) - .call(a.textWrap, L) - .attr('cursor', 'pointer'), - h && - !v && - E.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(e) { - return e.points[1].x + L / 2 + S; - }) - .attr('y', C / 2 + w + 10) - .attr('class', function(e) { - return 'text-main ' + e.label; - }) - .text(function(e) { - return e.percent; - }) - .attr('cursor', 'pointer'), - v && - !h && - E.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(e) { - return e.points[1].x + L / 2 + S; - }) - .attr('y', C / 2 + w + 10) - .attr('class', function(e) { - return 'text-main ' + e.label; - }) - .text(function(e) { - return e.result; - }) - .attr('cursor', 'pointer'), - h && - v && - (E.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(e) { - return e.points[1].x + L / 2 + S; - }) - .attr('y', C / 2 + w + 16) - .attr('class', function(e) { - return 'text-second ' + e.label; - }) - .text(function(e) { - return e.percent; - }) - .attr('cursor', 'pointer'), - E.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(e) { - return e.points[1].x + L / 2 + S; - }) - .attr('y', C / 2 + w - 3) - .attr('class', function(e) { - return 'text-main ' + e.label; - }) - .text(function(e) { - return e.result; - }) - .attr('cursor', 'pointer')), - _) - ) { - var j = function(e) { - I.style('opacity', 0.5), - F.style('opacity', 0.5); - var t = /[^ ]*$/.exec( - i.select(this).attr('class') - )[0]; E.selectAll('.' + t).style('opacity', 1); }, - R = function(e) { - I.style('opacity', 1), F.style('opacity', 1); - }, - I = E.selectAll('polygon'); - I.on('mouseover', j).on('mouseout', R); - var F = E.selectAll('text'); - F.on('mouseover', j).on('mouseout', R); - } - l && - l.clickToCopyToClipboard && - E.selectAll('text').on('click', function(e) { - var t = e.percent, - n = e.result; - v - ? (0, u.default)(n, i.event) - : h && (0, u.default)(t, i.event); - }); - } - }, - { - key: 'update', - value: function() { - this.destroy(), this.render(); - } - }, - { - key: 'destroy', - value: function() { - i.select( - this.el().querySelector( - '.' + this.config.theme + '-rendering .c3-chart' - ) - ).remove(); - } - } - ]), - e - ); - })(); - t.default = l; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r, - o = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - i = (function(e) { - if (e && e.__esModule) return e; - var t = {}; - if (null != e) - for (var n in e) - Object.prototype.hasOwnProperty.call(e, n) && - (t[n] = e[n]); - return (t.default = e), t; - })(n(2)), - a = n(6), - s = n(3), - c = n(1), - u = (r = c) && r.__esModule ? r : { default: r }, - l = (function() { - function e() { - !(function(e, t) { - if (!(e instanceof t)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, e); - } - return ( - o(e, [ - { - key: 'render', - value: function() { - var e = this.dataset.matrix, - t = this.config, - n = t.colors, - r = t.container, - o = t.labelMapping, - c = t.colorMapping, - l = t.utils, - f = this.config, - d = this.config.funnel, - p = d.percents, - h = p.show, - g = p.countingMethod, - m = p.decimals, - b = d.lines, - y = d.resultValues, - v = d.effect3d, - _ = d.hover, - x = d.minimalSize, - w = 20, - M = 30, - k = 100, - S = 10, - A = i.select(r), - O = i - .select( - this.el().querySelector( - '.' + - this.config.theme + - '-rendering .c3-chart' - ) - ) - .append('svg'), - E = A.style('width').slice(0, -2) - M - S, - T = A.style('height').slice(0, -2) - w - k - 30, - C = E / (e.length - 1), - L = 0.3 * C, - P = L / 1.5, - D = T, - z = (100).toFixed(m), - N = 0; - x && (N = (T - x) / (e.length - 2)); - var j = e.slice(1).map(function(t, n) { - var r = [ - { x: C * n + L, y: (T - D) / 2 }, - { x: C * n + L, y: (T - D) / 2 + D } - ]; - 0 !== n && - ('relative' === g && - (x ? (D -= N) : (D = (D * t[1]) / e[n][1]), - (z = ((t[1] / e[n][1]) * 100).toFixed(m))), - 'absolute' === g && - (x ? (D -= N) : (D = (T * t[1]) / e[1][1]), - (z = ((t[1] / e[1][1]) * 100).toFixed(m)))); - var i = t[0]; - if (Object.keys(o).length) - for (var a in o) o[a] === t[0] && (i = a); - var c = t[1]; - return ( - (void 0 !== f.prettyNumber && - !0 !== f.prettyNumber) || - isNaN(parseInt(t[1])) || - (c = (0, s.prettyNumber)(t[1])), - { - name: t[0], - label: i, - percent: z + '%', - result: c, - points: [].concat(r, [ - { x: C * (n + 1), y: (T - D) / 2 + D }, - { x: C * (n + 1), y: (T - D) / 2 } - ]) - } - ); - }), - R = j.map(function(e, t) { - return { - label: e.label, - points: [ - { x: e.points[0].x, y: e.points[0].y }, - { x: e.points[1].x, y: e.points[1].y }, - { - x: - 'top' === v - ? e.points[1].x - : e.points[1].x - P, - y: - 'top' === v - ? e.points[1].y - : e.points[1].y - L < T / 2 - ? T / 2 + 5 - : e.points[1].y - L - }, - { - x: - 'bottom' === v - ? e.points[0].x - : e.points[0].x - P, - y: - 'bottom' === v - ? e.points[0].y - : e.points[0].y + L > T / 2 - ? T / 2 - 5 - : e.points[0].y + L - } - ] - }; - }), - I = j.concat(R); - if ( - (O.attr('preserveAspectRatio', 'xMidYMid meet') - .attr( - 'viewBox', - '0 0 ' + (E + S + M) + ' ' + (T + w + k - 30) - ) - .attr('height', '100%') - .attr('width', '100%') - .append('g') - .attr( - 'transform', - 'translate(' + S + ',' + w + ')' - ) - .selectAll('polygon') - .data(I) - .enter() - .append('polygon') - .attr('points', function(e) { - return e.points - .map(function(e) { - return [e.x, e.y].join(','); - }) - .join(' '); - }) - .style('fill', function(e, t) { - return t > j.length - 1 - ? c[e.label] - ? i.rgb(c[e.label]).darker(1.5) - : i.rgb(n[t - j.length]).darker(1.5) - : c[e.label] - ? c[e.label] - : n[t]; - }) - .attr('class', function(e) { - return e.label; - }) - .attr('cursor', 'pointer'), - b && - (O.selectAll('line') - .data(j) - .enter() - .append('line') - .attr('x1', function(e) { - return e.points[0].x + S - 0.8 * L; - }) - .attr('y1', T + k) - .attr('x2', function(e) { - return e.points[0].x + S - 0.8 * L; - }) - .attr('y2', function(e) { - return e.points[0].y + w; - }) - .attr('class', 'chart-lines'), - O.append('line') - .attr('x1', E + S + L / 4) - .attr('y1', T + k) - .attr( - 'x2', - j[j.length - 1].points[3].x + S + L / 4 - ) - .attr('y2', j[j.length - 1].points[3].y + w) - .attr('class', 'chart-lines')), - b && - O.selectAll('text.label') - .data(j) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(e) { - return e.points[0].x + S + 0.25 * C; - }) - .attr('y', T + 0.4 * k + w) - .attr('class', function(e) { - return 'text-label ' + e.label; - }) - .text(function(e) { - return e.name; - }) - .call(a.textWrap, C) - .attr('cursor', 'pointer'), - b || - O.selectAll('text.label') - .data(j) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(e) { - return e.points[0].x + S + 0.25 * C; - }) - .attr('y', function(e) { - return e.points[2].y + C / 4 > T + k - 40 - ? T + k - 40 + w - : e.points[2].y + C / 4 < e.points[1].y - ? e.points[1].y + 20 + w - : e.points[2].y + C / 4 + 10 + w; - }) - .attr('class', function(e) { - return 'text-label ' + e.label; - }) - .text(function(e) { - return e.name; - }) - .call(a.textWrap, C) - .attr('cursor', 'pointer'), - h && - !y && - O.selectAll('text.label') - .data(j) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(e) { - return e.points[1].x + C / 2.8 + S; - }) - .attr('y', T / 2 + w + 10) - .attr('class', function(e) { - return 'text-main ' + e.label; - }) - .text(function(e) { - return e.percent; - }) - .attr('cursor', 'pointer'), - y && - !h && - O.selectAll('text.label') - .data(j) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(e) { - return e.points[1].x + C / 2.8 + S; - }) - .attr('y', T / 2 + w + 10) - .attr('class', function(e) { - return 'text-main ' + e.label; - }) - .text(function(e) { - return e.result; - }) - .attr('cursor', 'pointer'), - h && - y && - (O.selectAll('text.label') - .data(j) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(e) { - return e.points[1].x + C / 2.8 + S; - }) - .attr('y', T / 2 + w + 16) - .attr('class', function(e) { - return 'text-second ' + e.label; - }) - .text(function(e) { - return e.percent; - }) - .attr('cursor', 'pointer'), - O.selectAll('text.label') - .data(j) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(e) { - return e.points[1].x + C / 2.8 + S; - }) - .attr('y', T / 2 + w - 3) - .attr('class', function(e) { - return 'text-main ' + e.label; - }) - .text(function(e) { - return e.result; - }) - .attr('cursor', 'pointer')), - _) - ) { - var F = function(e) { - B.style('opacity', 0.5), - H.style('opacity', 0.5); - var t = /[^ ]*$/.exec( - i.select(this).attr('class') - )[0]; - O.selectAll('.' + t).style('opacity', 1); - }, q = function(e) { B.style('opacity', 1), H.style('opacity', 1); }, - B = O.selectAll('polygon'); + B = E.selectAll('polygon'); B.on('mouseover', F).on('mouseout', q); - var H = O.selectAll('text'); + var H = E.selectAll('text'); H.on('mouseover', F).on('mouseout', q); } l && l.clickToCopyToClipboard && - O.selectAll('text').on('click', function(e) { + E.selectAll('text').on('click', function(e) { + var t = e.percent, + n = e.result; + y + ? (0, u.default)(n, i.event) + : h && (0, u.default)(t, i.event); + }); + } + }, + { + key: 'update', + value: function() { + this.destroy(), this.render(); + } + }, + { + key: 'destroy', + value: function() { + i.select( + this.el().querySelector( + '.' + this.config.theme + '-rendering .c3-chart' + ) + ).remove(); + } + } + ]), + e + ); + })(); + t.default = l; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r, + o = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + i = (function(e) { + if (e && e.__esModule) return e; + var t = {}; + if (null != e) + for (var n in e) + Object.prototype.hasOwnProperty.call(e, n) && + (t[n] = e[n]); + return (t.default = e), t; + })(n(2)), + a = n(6), + s = n(3), + c = n(1), + u = (r = c) && r.__esModule ? r : { default: r }, + l = (function() { + function e() { + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, e); + } + return ( + o(e, [ + { + key: 'render', + value: function() { + var e = this.dataset.matrix, + t = this.config, + n = t.colors, + r = t.container, + o = t.labelMapping, + c = t.colorMapping, + l = t.utils, + f = this.config, + d = this.config.funnel, + p = d.percents, + h = p.show, + g = p.countingMethod, + m = p.decimals, + b = d.lines, + y = d.marginBetweenSteps, + v = d.resultValues, + _ = d.hover, + w = d.minimalSize, + x = 20, + M = 30, + k = 100, + S = 10, + O = 0; + y && (O = 5); + var E = i.select(r), + A = i + .select( + this.el().querySelector( + '.' + + this.config.theme + + '-rendering .c3-chart' + ) + ) + .append('svg'), + T = E.style('width').slice(0, -2) - M - S, + C = E.style('height').slice(0, -2) - x - k - 30, + L = T / (e.length - 1), + P = C, + D = (100).toFixed(m), + j = 0; + w && (j = (C - w) / (e.length - 2)); + var z = e.slice(1).map(function(t, n) { + var r = [ + { x: L * n + O, y: (C - P) / 2 }, + { x: L * n + O, y: (C - P) / 2 + P } + ]; + 0 !== n && + ('relative' === g && + (w ? (P -= j) : (P = (P * t[1]) / e[n][1]), + (D = ((t[1] / e[n][1]) * 100).toFixed(m))), + 'absolute' === g && + (w ? (P -= j) : (P = (C * t[1]) / e[1][1]), + (D = ((t[1] / e[1][1]) * 100).toFixed(m)))); + var i = t[0]; + if (Object.keys(o).length) + for (var a in o) o[a] === t[0] && (i = a); + var c = t[1]; + return ( + (void 0 !== f.prettyNumber && + !0 !== f.prettyNumber) || + isNaN(parseInt(t[1])) || + (c = (0, s.prettyNumber)(t[1])), + { + name: t[0], + label: i, + percent: D + '%', + result: c, + points: [].concat(r, [ + { x: L * (n + 1), y: (C - P) / 2 + P }, + { x: L * (n + 1), y: (C - P) / 2 } + ]) + } + ); + }); + if ( + (A.attr('preserveAspectRatio', 'xMidYMid meet') + .attr( + 'viewBox', + '0 0 ' + (T + S + M) + ' ' + (C + x + k - 30) + ) + .attr('height', '100%') + .attr('width', '100%') + .append('g') + .attr( + 'transform', + 'translate(' + S + ',' + x + ')' + ) + .selectAll('polygon') + .data(z) + .enter() + .append('polygon') + .attr('points', function(e) { + return e.points + .map(function(e) { + return [e.x, e.y].join(','); + }) + .join(' '); + }) + .style('fill', function(e, t) { + return c[e.label] ? c[e.label] : n[t]; + }) + .attr('class', function(e) { + return e.label; + }) + .attr('cursor', 'pointer'), + b && + (A.selectAll('line') + .data(z) + .enter() + .append('line') + .attr('x1', function(e) { + return e.points[0].x + S - O / 2; + }) + .attr('y1', C + k) + .attr('x2', function(e) { + return e.points[0].x + S - O / 2; + }) + .attr('y2', function(e) { + return e.points[0].y + x; + }) + .attr('class', 'chart-lines'), + A.append('line') + .attr('x1', T + S - O / 2) + .attr('y1', C + k) + .attr( + 'x2', + z[z.length - 1].points[3].x + S + O / 2 + ) + .attr('y2', z[z.length - 1].points[3].y + x) + .attr('class', 'chart-lines')), + b && + A.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(e) { + return e.points[1].x + L / 2 + S; + }) + .attr('y', C + 0.5 * k + x) + .attr('class', function(e) { + return 'text-label ' + e.label; + }) + .text(function(e) { + return e.name; + }) + .call(a.textWrap, L) + .attr('cursor', 'pointer'), + b || + A.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(e) { + return e.points[1].x + L / 2 + S; + }) + .attr('y', function(e) { + return e.points[2].y + + (e.points[3].y - e.points[0].y) / 2 + + L / 4 > + C + k - 40 + x + ? C + k - 40 + x + : e.points[2].y + + (e.points[3].y - e.points[0].y) / 2 + + L / 4 + + x; + }) + .attr('class', function(e) { + return 'text-label ' + e.label; + }) + .text(function(e) { + return e.name; + }) + .call(a.textWrap, L) + .attr('cursor', 'pointer'), + h && + !v && + A.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(e) { + return e.points[1].x + L / 2 + S; + }) + .attr('y', C / 2 + x + 10) + .attr('class', function(e) { + return 'text-main ' + e.label; + }) + .text(function(e) { + return e.percent; + }) + .attr('cursor', 'pointer'), + v && + !h && + A.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(e) { + return e.points[1].x + L / 2 + S; + }) + .attr('y', C / 2 + x + 10) + .attr('class', function(e) { + return 'text-main ' + e.label; + }) + .text(function(e) { + return e.result; + }) + .attr('cursor', 'pointer'), + h && + v && + (A.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(e) { + return e.points[1].x + L / 2 + S; + }) + .attr('y', C / 2 + x + 16) + .attr('class', function(e) { + return 'text-second ' + e.label; + }) + .text(function(e) { + return e.percent; + }) + .attr('cursor', 'pointer'), + A.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(e) { + return e.points[1].x + L / 2 + S; + }) + .attr('y', C / 2 + x - 3) + .attr('class', function(e) { + return 'text-main ' + e.label; + }) + .text(function(e) { + return e.result; + }) + .attr('cursor', 'pointer')), + _) + ) { + var N = function(e) { + I.style('opacity', 0.5), + F.style('opacity', 0.5); + var t = /[^ ]*$/.exec( + i.select(this).attr('class') + )[0]; + A.selectAll('.' + t).style('opacity', 1); + }, + R = function(e) { + I.style('opacity', 1), F.style('opacity', 1); + }, + I = A.selectAll('polygon'); + I.on('mouseover', N).on('mouseout', R); + var F = A.selectAll('text'); + F.on('mouseover', N).on('mouseout', R); + } + l && + l.clickToCopyToClipboard && + A.selectAll('text').on('click', function(e) { + var t = e.percent, + n = e.result; + v + ? (0, u.default)(n, i.event) + : h && (0, u.default)(t, i.event); + }); + } + }, + { + key: 'update', + value: function() { + this.destroy(), this.render(); + } + }, + { + key: 'destroy', + value: function() { + i.select( + this.el().querySelector( + '.' + this.config.theme + '-rendering .c3-chart' + ) + ).remove(); + } + } + ]), + e + ); + })(); + t.default = l; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r, + o = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + i = (function(e) { + if (e && e.__esModule) return e; + var t = {}; + if (null != e) + for (var n in e) + Object.prototype.hasOwnProperty.call(e, n) && + (t[n] = e[n]); + return (t.default = e), t; + })(n(2)), + a = n(6), + s = n(3), + c = n(1), + u = (r = c) && r.__esModule ? r : { default: r }, + l = (function() { + function e() { + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, e); + } + return ( + o(e, [ + { + key: 'render', + value: function() { + var e = this.dataset.matrix, + t = this.config, + n = t.colors, + r = t.container, + o = t.labelMapping, + c = t.colorMapping, + l = t.utils, + f = this.config, + d = this.config.funnel, + p = d.percents, + h = p.show, + g = p.countingMethod, + m = p.decimals, + b = d.lines, + y = d.resultValues, + v = d.effect3d, + _ = d.hover, + w = d.minimalSize, + x = 20, + M = 30, + k = 100, + S = 10, + O = i.select(r), + E = i + .select( + this.el().querySelector( + '.' + + this.config.theme + + '-rendering .c3-chart' + ) + ) + .append('svg'), + A = O.style('width').slice(0, -2) - M - S, + T = O.style('height').slice(0, -2) - x - k - 30, + C = A / (e.length - 1), + L = 0.3 * C, + P = L / 1.5, + D = T, + j = (100).toFixed(m), + z = 0; + w && (z = (T - w) / (e.length - 2)); + var N = e.slice(1).map(function(t, n) { + var r = [ + { x: C * n + L, y: (T - D) / 2 }, + { x: C * n + L, y: (T - D) / 2 + D } + ]; + 0 !== n && + ('relative' === g && + (w ? (D -= z) : (D = (D * t[1]) / e[n][1]), + (j = ((t[1] / e[n][1]) * 100).toFixed(m))), + 'absolute' === g && + (w ? (D -= z) : (D = (T * t[1]) / e[1][1]), + (j = ((t[1] / e[1][1]) * 100).toFixed(m)))); + var i = t[0]; + if (Object.keys(o).length) + for (var a in o) o[a] === t[0] && (i = a); + var c = t[1]; + return ( + (void 0 !== f.prettyNumber && + !0 !== f.prettyNumber) || + isNaN(parseInt(t[1])) || + (c = (0, s.prettyNumber)(t[1])), + { + name: t[0], + label: i, + percent: j + '%', + result: c, + points: [].concat(r, [ + { x: C * (n + 1), y: (T - D) / 2 + D }, + { x: C * (n + 1), y: (T - D) / 2 } + ]) + } + ); + }), + R = N.map(function(e, t) { + return { + label: e.label, + points: [ + { x: e.points[0].x, y: e.points[0].y }, + { x: e.points[1].x, y: e.points[1].y }, + { + x: + 'top' === v + ? e.points[1].x + : e.points[1].x - P, + y: + 'top' === v + ? e.points[1].y + : e.points[1].y - L < T / 2 + ? T / 2 + 5 + : e.points[1].y - L + }, + { + x: + 'bottom' === v + ? e.points[0].x + : e.points[0].x - P, + y: + 'bottom' === v + ? e.points[0].y + : e.points[0].y + L > T / 2 + ? T / 2 - 5 + : e.points[0].y + L + } + ] + }; + }), + I = N.concat(R); + if ( + (E.attr('preserveAspectRatio', 'xMidYMid meet') + .attr( + 'viewBox', + '0 0 ' + (A + S + M) + ' ' + (T + x + k - 30) + ) + .attr('height', '100%') + .attr('width', '100%') + .append('g') + .attr( + 'transform', + 'translate(' + S + ',' + x + ')' + ) + .selectAll('polygon') + .data(I) + .enter() + .append('polygon') + .attr('points', function(e) { + return e.points + .map(function(e) { + return [e.x, e.y].join(','); + }) + .join(' '); + }) + .style('fill', function(e, t) { + return t > N.length - 1 + ? c[e.label] + ? i.rgb(c[e.label]).darker(1.5) + : i.rgb(n[t - N.length]).darker(1.5) + : c[e.label] + ? c[e.label] + : n[t]; + }) + .attr('class', function(e) { + return e.label; + }) + .attr('cursor', 'pointer'), + b && + (E.selectAll('line') + .data(N) + .enter() + .append('line') + .attr('x1', function(e) { + return e.points[0].x + S - 0.8 * L; + }) + .attr('y1', T + k) + .attr('x2', function(e) { + return e.points[0].x + S - 0.8 * L; + }) + .attr('y2', function(e) { + return e.points[0].y + x; + }) + .attr('class', 'chart-lines'), + E.append('line') + .attr('x1', A + S + L / 4) + .attr('y1', T + k) + .attr( + 'x2', + N[N.length - 1].points[3].x + S + L / 4 + ) + .attr('y2', N[N.length - 1].points[3].y + x) + .attr('class', 'chart-lines')), + b && + E.selectAll('text.label') + .data(N) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(e) { + return e.points[0].x + S + 0.25 * C; + }) + .attr('y', T + 0.4 * k + x) + .attr('class', function(e) { + return 'text-label ' + e.label; + }) + .text(function(e) { + return e.name; + }) + .call(a.textWrap, C) + .attr('cursor', 'pointer'), + b || + E.selectAll('text.label') + .data(N) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(e) { + return e.points[0].x + S + 0.25 * C; + }) + .attr('y', function(e) { + return e.points[2].y + C / 4 > T + k - 40 + ? T + k - 40 + x + : e.points[2].y + C / 4 < e.points[1].y + ? e.points[1].y + 20 + x + : e.points[2].y + C / 4 + 10 + x; + }) + .attr('class', function(e) { + return 'text-label ' + e.label; + }) + .text(function(e) { + return e.name; + }) + .call(a.textWrap, C) + .attr('cursor', 'pointer'), + h && + !y && + E.selectAll('text.label') + .data(N) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(e) { + return e.points[1].x + C / 2.8 + S; + }) + .attr('y', T / 2 + x + 10) + .attr('class', function(e) { + return 'text-main ' + e.label; + }) + .text(function(e) { + return e.percent; + }) + .attr('cursor', 'pointer'), + y && + !h && + E.selectAll('text.label') + .data(N) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(e) { + return e.points[1].x + C / 2.8 + S; + }) + .attr('y', T / 2 + x + 10) + .attr('class', function(e) { + return 'text-main ' + e.label; + }) + .text(function(e) { + return e.result; + }) + .attr('cursor', 'pointer'), + h && + y && + (E.selectAll('text.label') + .data(N) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(e) { + return e.points[1].x + C / 2.8 + S; + }) + .attr('y', T / 2 + x + 16) + .attr('class', function(e) { + return 'text-second ' + e.label; + }) + .text(function(e) { + return e.percent; + }) + .attr('cursor', 'pointer'), + E.selectAll('text.label') + .data(N) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(e) { + return e.points[1].x + C / 2.8 + S; + }) + .attr('y', T / 2 + x - 3) + .attr('class', function(e) { + return 'text-main ' + e.label; + }) + .text(function(e) { + return e.result; + }) + .attr('cursor', 'pointer')), + _) + ) { + var F = function(e) { + B.style('opacity', 0.5), + H.style('opacity', 0.5); + var t = /[^ ]*$/.exec( + i.select(this).attr('class') + )[0]; + E.selectAll('.' + t).style('opacity', 1); + }, + q = function(e) { + B.style('opacity', 1), H.style('opacity', 1); + }, + B = E.selectAll('polygon'); + B.on('mouseover', F).on('mouseout', q); + var H = E.selectAll('text'); + H.on('mouseover', F).on('mouseout', q); + } + l && + l.clickToCopyToClipboard && + E.selectAll('text').on('click', function(e) { var t = e.percent, n = e.result; y @@ -47823,8 +49150,8 @@ object-assign l + '
' : '', - x = document.querySelector(n); - x.innerHTML = + w = document.querySelector(n); + w.innerHTML = '\n
\n
\n
\n ' + v + '\n ' + @@ -47840,10 +49167,10 @@ object-assign '"> ' + (0, a.prettyNumber)(g) + '
\n
\n
\n
\n
\n
\n '; - var w = x.querySelector('.c3-chart'); + var x = w.querySelector('.c3-chart'); if ( (o.default.generate({ - bindto: w, + bindto: x, color: { pattern: ['#c3c4cc'] }, title: c, legend: { show: !1 }, @@ -47998,14 +49325,14 @@ object-assign y = 10, v = 50, _ = 50, - x = i.select(l), - w = parseInt(x.style('width'), 10) || 600, - M = parseInt(x.style('height'), 10) || 600, + w = i.select(l), + x = parseInt(w.style('width'), 10) || 600, + M = parseInt(w.style('height'), 10) || 600, k = this.el().querySelector('.c3-chart'), - S = w - y - _, - A = M - b - v, - O = new Set(), + S = x - y - _, + O = M - b - v, E = new Set(), + A = new Set(), T = ((e = i.timeFormat('%B %d')), (t = i.timeFormat('%H:%M')), @@ -48034,7 +49361,7 @@ object-assign }), n); T.forEach(function(e) { - O.add(e.x), E.add(e.y); + E.add(e.x), A.add(e.y); }); var C = T[0].value, L = T.reduce(function(e, t) { @@ -48048,7 +49375,7 @@ object-assign t = i.rgb('#00BBDE'); return i.color(e) && (t = i.rgb(e)), t; }, - z = i + j = i .scaleLinear() .domain([ 0, @@ -48057,8 +49384,8 @@ object-assign }) ]) .range([0, 1]), - N = function(e) { - var t = z(e), + z = function(e) { + var t = j(e), n = D(), r = (function(e) { var t = @@ -48077,11 +49404,11 @@ object-assign 'rgb(' + r[0] + ', ' + r[1] + ', ' + r[2] + ')' ); }, - j = i + N = i .select(k) .append('svg') .attr('preserveAspectRatio', 'xMidYMid slice') - .attr('viewBox', '0 0 ' + w + ' ' + M) + .attr('viewBox', '0 0 ' + x + ' ' + M) .attr('height', '100%') .attr('width', '100%') .append('g') @@ -48102,7 +49429,7 @@ object-assign value: [L, P], onChange: function(e) { return (function(e) { - var t = j.selectAll('rect'), + var t = N.selectAll('rect'), n = r(e, 2), o = n[0], a = n[1]; @@ -48151,29 +49478,29 @@ object-assign H = i .scaleBand() .range([0, S]) - .domain([].concat(u(O))) + .domain([].concat(u(E))) .padding(0.02); - j.append('g') + N.append('g') .style('font-size', 12) - .attr('transform', 'translate(0, ' + A + ')') + .attr('transform', 'translate(0, ' + O + ')') .call(i.axisBottom(H).tickSize(0)) .selectAll('text') .attr('dy', '1em') .filter(function(e, t) { - return t % B(5, O.size); + return t % B(5, E.size); }) .style('display', 'none'); var Y = i .scaleBand() - .range([A, 0]) - .domain([].concat(u(E)).sort()) + .range([O, 0]) + .domain([].concat(u(A)).sort()) .padding(0.02); - j.append('g') + N.append('g') .style('font-size', 12) .call(i.axisLeft(Y).tickSize(0)) .selectAll('text') .filter(function(e, t) { - return t % B(10, E.size); + return t % B(10, A.size); }) .style('display', 'none'); var W = i @@ -48188,7 +49515,7 @@ object-assign .style('box-shadow', '2px 2px 4px rgba(0,0,0,0.25') .style('display', 'none') .style('position', 'fixed'); - j.selectAll() + N.selectAll() .data(T, function(e) { return e.x + ':' + e.y; }) @@ -48203,7 +49530,7 @@ object-assign .attr('width', H.bandwidth()) .attr('height', Y.bandwidth()) .style('fill', function(e) { - return N(e.value); + return z(e.value); }) .style('cursor', 'pointer') .on('mouseover', function() { @@ -48369,33 +49696,33 @@ object-assign y = d.showSlider, v = this.config, _ = a.select(i), - x = a.select( + w = a.select( this.el().querySelector( '.' + this.config.theme + '-rendering .c3-chart' ) ), - w = Number(_.style('width').slice(0, -2)), + x = Number(_.style('width').slice(0, -2)), M = Number(_.style('height').slice(0, -2)), k = 0; f && (k += 31), y && (k += 20); - var S = x + var S = w .append('svg') - .attr('width', w) + .attr('width', x) .attr('height', M - k), - A = e.slice(1).map(function(e) { + O = e.slice(1).map(function(e) { return e[1]; }), - O = a.min(A), - E = a.max(A); - O === E && (O = 0); + E = a.min(O), + A = a.max(O); + E === A && (E = 0); var T = a.hsl(n[0]).brighter(1); T.l = 0.95; var C = n[0], L = a .scaleLinear() .domain([ - void 0 === O ? 0 : O, - void 0 === E ? 0 : E + void 0 === E ? 0 : E, + void 0 === A ? 0 : A ]) .range([T, C]); a.json( @@ -48406,10 +49733,7 @@ object-assign var f = a .zoom() .scaleExtent([1, 5]) - .translateExtent([ - [0, 0], - [w, M - 50] - ]) + .translateExtent([[0, 0], [x, M - 50]]) .on('zoom', function() { S.selectAll('.' + C).attr( 'transform', @@ -48419,19 +49743,19 @@ object-assign d = void 0; switch (p) { case 'world': - d = a.geoMercator().fitSize([w, M - 50], t); + d = a.geoMercator().fitSize([x, M - 50], t); break; case 'us': d = a .geoAlbersUsa() - .scale(w) - .fitSize([w, M - 50], t); + .scale(x) + .fitSize([x, M - 50], t); break; default: d = a .geoMercator() - .scale(w) - .fitSize([w, M - 50], t); + .scale(x) + .fitSize([x, M - 50], t); } var h = a.geoPath().projection(d), _ = t.features.map(function(t) { @@ -48451,11 +49775,11 @@ object-assign }); }); if (y) { - x + w .style('display', 'flex') .style('flex-direction', 'column') .style('justify-content', 'center'), - x + w .append('div') .style('width', '95%') .style('margin', 'auto') @@ -48465,7 +49789,7 @@ object-assign type: 'double', tooltips: !0, min: 0, - max: E, + max: A, onChange: function(e) { return (function(e) { var t = S.selectAll('.' + C), @@ -48489,7 +49813,7 @@ object-assign var k = i.className ? '.' + i.className.replace(/\s/g, '.') : i, - A = + O = '\n ' + k + ' .rangeable-progress,\n ' + @@ -48507,10 +49831,10 @@ object-assign ' .rangeable-handle {\n border-color: ' + n[0] + ';\n }\n ', - O = document.createElement('style'); - O.innerHTML = A; + E = document.createElement('style'); + E.innerHTML = O; var T = document.querySelector('script'); - T.parentNode.insertBefore(O, T); + T.parentNode.insertBefore(E, T); } var C = 'world' === p ? 'country' : 'state'; S.selectAll('path') @@ -48543,7 +49867,7 @@ object-assign .join('') ) .style('fill', function(e) { - return L(1.2 * E); + return L(1.2 * A); }) .style('stroke-width', 1.5 * m), P.style('opacity', 1).style('display', 'block'); @@ -48767,1250 +50091,328 @@ object-assign } ]); }), - (e.exports = r(n(422), n(593))); + (e.exports = r(n(196), n(637))); }, function(e, t, n) { 'use strict'; - (function(e, r) { - var o, - i = n(424); - o = - 'undefined' != typeof self - ? self - : 'undefined' != typeof window - ? window - : void 0 !== e - ? e - : r; - var a = Object(i.a)(o); - t.a = a; - }.call(this, n(26), n(450)(e))); - }, - function(e, t, n) { - var r = n(510); - (e.exports = p), - (e.exports.parse = i), - (e.exports.compile = function(e, t) { - return s(i(e, t), t); - }), - (e.exports.tokensToFunction = s), - (e.exports.tokensToRegExp = d); - var o = new RegExp( - [ - '(\\\\.)', - '([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))' - ].join('|'), - 'g' - ); - function i(e, t) { - for ( - var n, r = [], i = 0, a = 0, s = '', l = (t && t.delimiter) || '/'; - null != (n = o.exec(e)); - - ) { - var f = n[0], - d = n[1], - p = n.index; - if (((s += e.slice(a, p)), (a = p + f.length), d)) s += d[1]; - else { - var h = e[a], - g = n[2], - m = n[3], - b = n[4], - y = n[5], - v = n[6], - _ = n[7]; - s && (r.push(s), (s = '')); - var x = null != g && null != h && h !== g, - w = '+' === v || '*' === v, - M = '?' === v || '*' === v, - k = n[2] || l, - S = b || y; - r.push({ - name: m || i++, - prefix: g || '', - delimiter: k, - optional: M, - repeat: w, - partial: x, - asterisk: !!_, - pattern: S ? u(S) : _ ? '.*' : '[^' + c(k) + ']+?' - }); + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = + Object.assign || + function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); + } + return e; + }, + o = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } } - } - return a < e.length && (s += e.substr(a)), s && r.push(s), r; + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + i = n(0), + a = c(i), + s = c(n(1)); + function c(e) { + return e && e.__esModule ? e : { default: e }; } - function a(e) { - return encodeURI(e).replace(/[\/?#]/g, function(e) { + var u = { + position: 'absolute', + top: 0, + left: 0, + visibility: 'hidden', + height: 0, + overflow: 'scroll', + whiteSpace: 'pre' + }, + l = [ + 'extraWidth', + 'injectStyles', + 'inputClassName', + 'inputRef', + 'inputStyle', + 'minWidth', + 'onAutosize', + 'placeholderIsMinWidth' + ], + f = function(e, t) { + (t.style.fontSize = e.fontSize), + (t.style.fontFamily = e.fontFamily), + (t.style.fontWeight = e.fontWeight), + (t.style.fontStyle = e.fontStyle), + (t.style.letterSpacing = e.letterSpacing), + (t.style.textTransform = e.textTransform); + }, + d = + !('undefined' == typeof window || !window.navigator) && + /MSIE |Trident\/|Edge\//.test(window.navigator.userAgent), + p = function() { + return d + ? '_' + + Math.random() + .toString(36) + .substr(2, 12) + : void 0; + }, + h = (function(e) { + function t(e) { + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, t); + var n = (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e)); + return ( + (n.inputRef = function(e) { + (n.input = e), + 'function' == typeof n.props.inputRef && n.props.inputRef(e); + }), + (n.placeHolderSizerRef = function(e) { + n.placeHolderSizer = e; + }), + (n.sizerRef = function(e) { + n.sizer = e; + }), + (n.state = { inputWidth: e.minWidth, inputId: e.id || p() }), + n + ); + } return ( - '%' + - e - .charCodeAt(0) - .toString(16) - .toUpperCase() - ); - }); - } - function s(e, t) { - for (var n = new Array(e.length), o = 0; o < e.length; o++) - 'object' == typeof e[o] && - (n[o] = new RegExp('^(?:' + e[o].pattern + ')$', f(t))); - return function(t, o) { - for ( - var i = '', - s = t || {}, - c = (o || {}).pretty ? a : encodeURIComponent, - u = 0; - u < e.length; - u++ - ) { - var l = e[u]; - if ('string' != typeof l) { - var f, - d = s[l.name]; - if (null == d) { - if (l.optional) { - l.partial && (i += l.prefix); - continue; + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 } - throw new TypeError('Expected "' + l.name + '" to be defined'); - } - if (r(d)) { - if (!l.repeat) - throw new TypeError( - 'Expected "' + - l.name + - '" to not repeat, but received `' + - JSON.stringify(d) + - '`' - ); - if (0 === d.length) { - if (l.optional) continue; - throw new TypeError( - 'Expected "' + l.name + '" to not be empty' - ); + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + o(t, [ + { + key: 'componentDidMount', + value: function() { + (this.mounted = !0), + this.copyInputStyles(), + this.updateInputWidth(); } - for (var p = 0; p < d.length; p++) { - if (((f = c(d[p])), !n[u].test(f))) - throw new TypeError( - 'Expected all "' + - l.name + - '" to match "' + - l.pattern + - '", but received `' + - JSON.stringify(f) + - '`' - ); - i += (0 === p ? l.prefix : l.delimiter) + f; + }, + { + key: 'UNSAFE_componentWillReceiveProps', + value: function(e) { + var t = e.id; + t !== this.props.id && this.setState({ inputId: t || p() }); } - } else { - if ( - ((f = l.asterisk - ? encodeURI(d).replace(/[?#]/g, function(e) { - return ( - '%' + - e - .charCodeAt(0) - .toString(16) - .toUpperCase() - ); + }, + { + key: 'componentDidUpdate', + value: function(e, t) { + t.inputWidth !== this.state.inputWidth && + 'function' == typeof this.props.onAutosize && + this.props.onAutosize(this.state.inputWidth), + this.updateInputWidth(); + } + }, + { + key: 'componentWillUnmount', + value: function() { + this.mounted = !1; + } + }, + { + key: 'copyInputStyles', + value: function() { + if (this.mounted && window.getComputedStyle) { + var e = this.input && window.getComputedStyle(this.input); + e && + (f(e, this.sizer), + this.placeHolderSizer && f(e, this.placeHolderSizer)); + } + } + }, + { + key: 'updateInputWidth', + value: function() { + if ( + this.mounted && + this.sizer && + void 0 !== this.sizer.scrollWidth + ) { + var e = void 0; + (e = + this.props.placeholder && + (!this.props.value || + (this.props.value && this.props.placeholderIsMinWidth)) + ? Math.max( + this.sizer.scrollWidth, + this.placeHolderSizer.scrollWidth + ) + 2 + : this.sizer.scrollWidth + 2), + (e += + 'number' === this.props.type && + void 0 === this.props.extraWidth + ? 16 + : parseInt(this.props.extraWidth) || 0) < + this.props.minWidth && (e = this.props.minWidth), + e !== this.state.inputWidth && + this.setState({ inputWidth: e }); + } + } + }, + { + key: 'getInput', + value: function() { + return this.input; + } + }, + { + key: 'focus', + value: function() { + this.input.focus(); + } + }, + { + key: 'blur', + value: function() { + this.input.blur(); + } + }, + { + key: 'select', + value: function() { + this.input.select(); + } + }, + { + key: 'renderStyles', + value: function() { + var e = this.props.injectStyles; + return d && e + ? a.default.createElement('style', { + dangerouslySetInnerHTML: { + __html: + 'input#' + + this.state.inputId + + '::-ms-clear {display: none;}' + } }) - : c(d)), - !n[u].test(f)) - ) - throw new TypeError( - 'Expected "' + - l.name + - '" to match "' + - l.pattern + - '", but received "' + - f + - '"' - ); - i += l.prefix + f; - } - } else i += l; - } - return i; - }; - } - function c(e) { - return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1'); - } - function u(e) { - return e.replace(/([=!:$\/()])/g, '\\$1'); - } - function l(e, t) { - return (e.keys = t), e; - } - function f(e) { - return e && e.sensitive ? '' : 'i'; - } - function d(e, t, n) { - r(t) || ((n = t || n), (t = [])); - for ( - var o = (n = n || {}).strict, i = !1 !== n.end, a = '', s = 0; - s < e.length; - s++ - ) { - var u = e[s]; - if ('string' == typeof u) a += c(u); - else { - var d = c(u.prefix), - p = '(?:' + u.pattern + ')'; - t.push(u), - u.repeat && (p += '(?:' + d + p + ')*'), - (a += p = u.optional - ? u.partial - ? d + '(' + p + ')?' - : '(?:' + d + '(' + p + '))?' - : d + '(' + p + ')'); - } - } - var h = c(n.delimiter || '/'), - g = a.slice(-h.length) === h; - return ( - o || (a = (g ? a.slice(0, -h.length) : a) + '(?:' + h + '(?=$))?'), - (a += i ? '$' : o && g ? '' : '(?=' + h + '|$)'), - l(new RegExp('^' + a, f(n)), t) - ); - } - function p(e, t, n) { - return ( - r(t) || ((n = t || n), (t = [])), - (n = n || {}), - e instanceof RegExp - ? (function(e, t) { - var n = e.source.match(/\((?!\?)/g); - if (n) - for (var r = 0; r < n.length; r++) - t.push({ - name: r, - prefix: null, - delimiter: null, - optional: !1, - repeat: !1, - partial: !1, - asterisk: !1, - pattern: null - }); - return l(e, t); - })(e, t) - : r(e) - ? (function(e, t, n) { - for (var r = [], o = 0; o < e.length; o++) - r.push(p(e[o], t, n).source); - return l(new RegExp('(?:' + r.join('|') + ')', f(n)), t); - })(e, t, n) - : (function(e, t, n) { - return d(i(e, n), t, n); - })(e, t, n) - ); - } - }, - function(e, t, n) { - e.exports = n(534); - }, - function(e, t, n) { - (function(t) { - var n = (function(e) { - var t = /\blang(?:uage)?-([\w-]+)\b/i, - n = 0, - r = { - manual: e.Prism && e.Prism.manual, - disableWorkerMessageHandler: - e.Prism && e.Prism.disableWorkerMessageHandler, - util: { - encode: function e(t) { - return t instanceof o - ? new o(t.type, e(t.content), t.alias) - : Array.isArray(t) - ? t.map(e) - : t - .replace(/&/g, '&') - .replace(/= 0 || + (Object.prototype.hasOwnProperty.call(e, r) && + (n[r] = e[r])); + return n; + })(this.props, []); return ( - r.hooks.run('complete', u), void (i && i.call(u.element)) - ); - if ((r.hooks.run('before-highlight', u), u.grammar)) - if (o && e.Worker) { - var f = new Worker(r.filename); - (f.onmessage = function(e) { - l(e.data); - }), - f.postMessage( - JSON.stringify({ - language: u.language, - code: u.code, - immediateClose: !0 - }) - ); - } else l(r.highlight(u.code, u.grammar, u.language)); - else l(r.util.encode(u.code)); - }, - highlight: function(e, t, n) { - var i = { code: e, grammar: t, language: n }; - return ( - r.hooks.run('before-tokenize', i), - (i.tokens = r.tokenize(i.code, i.grammar)), - r.hooks.run('after-tokenize', i), - o.stringify(r.util.encode(i.tokens), i.language) - ); - }, - tokenize: function(e, t) { - var n = t.rest; - if (n) { - for (var c in n) t[c] = n[c]; - delete t.rest; - } - var u = new i(); - return ( - a(u, u.head, e), - (function e(t, n, i, c, u, l, f) { - for (var d in i) - if (i.hasOwnProperty(d) && i[d]) { - var p = i[d]; - p = Array.isArray(p) ? p : [p]; - for (var h = 0; h < p.length; ++h) { - if (f && f == d + ',' + h) return; - var g = p[h], - m = g.inside, - b = !!g.lookbehind, - y = !!g.greedy, - v = 0, - _ = g.alias; - if (y && !g.pattern.global) { - var x = g.pattern.toString().match(/[imsuy]*$/)[0]; - g.pattern = RegExp(g.pattern.source, x + 'g'); - } - g = g.pattern || g; - for ( - var w = c.next, M = u; - w !== n.tail; - M += w.value.length, w = w.next - ) { - var k = w.value; - if (n.length > t.length) return; - if (!(k instanceof o)) { - var S = 1; - if (y && w != n.tail.prev) { - if (((g.lastIndex = M), !(C = g.exec(t)))) - break; - var A = C.index + (b && C[1] ? C[1].length : 0), - O = C.index + C[0].length, - E = M; - for (E += w.value.length; A >= E; ) - (w = w.next), (E += w.value.length); - if ( - ((E -= w.value.length), - (M = E), - w.value instanceof o) - ) - continue; - for ( - var T = w; - T !== n.tail && - (E < O || - ('string' == typeof T.value && - !T.prev.value.greedy)); - T = T.next - ) - S++, (E += T.value.length); - S--, (k = t.slice(M, E)), (C.index -= M); - } else { - g.lastIndex = 0; - var C = g.exec(k); - } - if (C) { - b && (v = C[1] ? C[1].length : 0); - (A = C.index + v), - (C = C[0].slice(v)), - (O = A + C.length); - var L = k.slice(0, A), - P = k.slice(O), - D = w.prev; - L && ((D = a(n, D, L)), (M += L.length)), - s(n, D, S); - var z = new o( - d, - m ? r.tokenize(C, m) : C, - _, - C, - y - ); - if ( - ((w = a(n, D, z)), - P && a(n, w, P), - S > 1 && - e(t, n, i, w.prev, M, !0, d + ',' + h), - l) - ) - break; - } else if (l) break; - } - } - } - } - })(e, u, t, u.head, 0), - (function(e) { - var t = [], - n = e.head.next; - for (; n !== e.tail; ) t.push(n.value), (n = n.next); - return t; - })(u) - ); - }, - hooks: { - all: {}, - add: function(e, t) { - var n = r.hooks.all; - (n[e] = n[e] || []), n[e].push(t); - }, - run: function(e, t) { - var n = r.hooks.all[e]; - if (n && n.length) for (var o, i = 0; (o = n[i++]); ) o(t); - } - }, - Token: o - }; - function o(e, t, n, r, o) { - (this.type = e), - (this.content = t), - (this.alias = n), - (this.length = 0 | (r || '').length), - (this.greedy = !!o); - } - function i() { - var e = { value: null, prev: null, next: null }, - t = { value: null, prev: e, next: null }; - (e.next = t), (this.head = e), (this.tail = t), (this.length = 0); - } - function a(e, t, n) { - var r = t.next, - o = { value: n, prev: t, next: r }; - return (t.next = o), (r.prev = o), e.length++, o; - } - function s(e, t, n) { - for (var r = t.next, o = 0; o < n && r !== e.tail; o++) r = r.next; - (t.next = r), (r.prev = t), (e.length -= o); - } - if ( - ((e.Prism = r), - (o.stringify = function e(t, n) { - if ('string' == typeof t) return t; - if (Array.isArray(t)) { - var o = ''; - return ( - t.forEach(function(t) { - o += e(t, n); - }), - o - ); - } - var i = { - type: t.type, - content: e(t.content, n), - tag: 'span', - classes: ['token', t.type], - attributes: {}, - language: n - }, - a = t.alias; - a && - (Array.isArray(a) - ? Array.prototype.push.apply(i.classes, a) - : i.classes.push(a)), - r.hooks.run('wrap', i); - var s = ''; - for (var c in i.attributes) - s += - ' ' + - c + - '="' + - (i.attributes[c] || '').replace(/"/g, '"') + - '"'; - return ( - '<' + - i.tag + - ' class="' + - i.classes.join(' ') + - '"' + - s + - '>' + - i.content + - '' - ); - }), - !e.document) - ) - return e.addEventListener - ? (r.disableWorkerMessageHandler || - e.addEventListener( - 'message', - function(t) { - var n = JSON.parse(t.data), - o = n.language, - i = n.code, - a = n.immediateClose; - e.postMessage(r.highlight(i, r.languages[o], o)), - a && e.close(); - }, - !1 - ), - r) - : r; - var c = r.util.currentScript(); - function u() { - r.manual || r.highlightAll(); - } - if ( - (c && - ((r.filename = c.src), - c.hasAttribute('data-manual') && (r.manual = !0)), - !r.manual) - ) { - var l = document.readyState; - 'loading' === l || ('interactive' === l && c && c.defer) - ? document.addEventListener('DOMContentLoaded', u) - : window.requestAnimationFrame - ? window.requestAnimationFrame(u) - : window.setTimeout(u, 16); - } - return r; - })( - 'undefined' != typeof window - ? window - : 'undefined' != typeof WorkerGlobalScope && - self instanceof WorkerGlobalScope - ? self - : {} - ); - e.exports && (e.exports = n), void 0 !== t && (t.Prism = n); - }.call(this, n(26))); - }, - function(e, t, n) { - (e.exports = n(212).default), - (e.exports.utils = n(89)), - (e.exports.Responsive = n(549).default), - (e.exports.Responsive.utils = n(215)), - (e.exports.WidthProvider = n(550).default); - }, - , - function(e, t) { - e.exports = function(e, t) { - (null == t || t > e.length) && (t = e.length); - for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; - return r; - }; - }, - function(e, t, n) { - (function(t) { - var n = 'object' == typeof t && t && t.Object === Object && t; - e.exports = n; - }.call(this, n(26))); - }, - function(e, t) { - var n = Function.prototype.toString; - e.exports = function(e) { - if (null != e) { - try { - return n.call(e); - } catch (e) {} - try { - return e + ''; - } catch (e) {} - } - return ''; - }; - }, - function(e, t, n) { - var r = n(135), - o = n(84); - e.exports = function(e, t, n) { - ((void 0 !== n && !o(e[t], n)) || (void 0 === n && !(t in e))) && - r(e, t, n); - }; - }, - function(e, t, n) { - var r = n(54), - o = (function() { - try { - var e = r(Object, 'defineProperty'); - return e({}, '', {}), e; - } catch (e) {} - })(); - e.exports = o; - }, - function(e, t, n) { - var r = n(484)(); - e.exports = r; - }, - function(e, t, n) { - (function(e) { - var r = n(36), - o = t && !t.nodeType && t, - i = o && 'object' == typeof e && e && !e.nodeType && e, - a = i && i.exports === o ? r.Buffer : void 0, - s = a ? a.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; - }; - }.call(this, n(63)(e))); - }, - function(e, t, n) { - var r = n(136); - e.exports = function(e, t) { - var n = t ? r(e.buffer) : e.buffer; - return new e.constructor(n, e.byteOffset, e.length); - }; - }, - function(e, t, n) { - var r = n(36).Uint8Array; - e.exports = r; - }, - function(e, t) { - e.exports = function(e, t) { - var n = -1, - r = e.length; - for (t || (t = Array(r)); ++n < r; ) t[n] = e[n]; - return t; - }; - }, - function(e, t, n) { - var r = n(486), - o = n(137), - i = n(106); - e.exports = function(e) { - return 'function' != typeof e.constructor || i(e) ? {} : r(o(e)); - }; - }, - function(e, t) { - e.exports = function(e, t) { - return function(n) { - return e(t(n)); - }; - }; - }, - function(e, t, n) { - var r = n(55), - o = n(137), - i = n(40), - a = Function.prototype, - s = Object.prototype, - c = a.toString, - u = s.hasOwnProperty, - l = c.call(Object); - e.exports = function(e) { - if (!i(e) || '[object Object]' != r(e)) return !1; - var t = o(e); - if (null === t) return !0; - var n = u.call(t, 'constructor') && t.constructor; - return 'function' == typeof n && n instanceof n && c.call(n) == l; - }; - }, - function(e, t) { - e.exports = function(e, t) { - if ( - ('constructor' !== t || 'function' != typeof e[t]) && - '__proto__' != t - ) - return e[t]; - }; - }, - function(e, t, n) { - var r = n(135), - o = n(84), - i = Object.prototype.hasOwnProperty; - e.exports = function(e, t, n) { - var a = e[t]; - (i.call(e, t) && o(a, n) && (void 0 !== n || t in e)) || r(e, t, n); - }; - }, - function(e, t, n) { - var r = n(492), - o = n(107), - i = n(22), - a = n(86), - s = n(141), - c = n(108), - u = Object.prototype.hasOwnProperty; - e.exports = function(e, t) { - var n = i(e), - l = !n && o(e), - f = !n && !l && a(e), - d = !n && !l && !f && c(e), - p = n || l || f || d, - h = p ? r(e.length, String) : [], - g = h.length; - for (var m in e) - (!t && !u.call(e, m)) || - (p && - ('length' == m || - (f && ('offset' == m || 'parent' == m)) || - (d && - ('buffer' == m || 'byteLength' == m || 'byteOffset' == m)) || - s(m, g))) || - h.push(m); - return h; - }; - }, - function(e, t, n) { - var r = n(84), - o = n(45), - i = n(141), - a = n(35); - e.exports = function(e, t, n) { - if (!a(n)) return !1; - var s = typeof t; - return ( - !!('number' == s - ? o(n) && i(t, n.length) - : 'string' == s && t in n) && r(n[t], e) - ); - }; - }, - function(e, t, n) { - var r = n(503); - 'string' == typeof r && (r = [[e.i, r, '']]); - var o = { hmr: !0, transform: void 0, insertInto: void 0 }; - n(57)(r, o); - r.locals && (e.exports = r.locals); - }, - function(e, t, n) { - var r = n(505); - 'string' == typeof r && (r = [[e.i, r, '']]); - var o = { hmr: !0, transform: void 0, insertInto: void 0 }; - n(57)(r, o); - r.locals && (e.exports = r.locals); - }, - function(e, t) { - var n, - r, - o = (e.exports = {}); - function i() { - throw new Error('setTimeout has not been defined'); - } - function a() { - throw new Error('clearTimeout has not been defined'); - } - function s(e) { - if (n === setTimeout) return setTimeout(e, 0); - if ((n === i || !n) && setTimeout) - return (n = setTimeout), setTimeout(e, 0); - try { - return n(e, 0); - } catch (t) { - try { - return n.call(null, e, 0); - } catch (t) { - return n.call(this, e, 0); - } - } - } - !(function() { - try { - n = 'function' == typeof setTimeout ? setTimeout : i; - } catch (e) { - n = i; - } - try { - r = 'function' == typeof clearTimeout ? clearTimeout : a; - } catch (e) { - r = a; - } - })(); - var c, - u = [], - l = !1, - f = -1; - function d() { - l && - c && - ((l = !1), c.length ? (u = c.concat(u)) : (f = -1), u.length && p()); - } - function p() { - if (!l) { - var e = s(d); - l = !0; - for (var t = u.length; t; ) { - for (c = u, u = []; ++f < t; ) c && c[f].run(); - (f = -1), (t = u.length); - } - (c = null), - (l = !1), - (function(e) { - if (r === clearTimeout) return clearTimeout(e); - if ((r === a || !r) && clearTimeout) - return (r = clearTimeout), clearTimeout(e); - try { - r(e); - } catch (t) { - try { - return r.call(null, e); - } catch (t) { - return r.call(this, e); + (function(e) { + l.forEach(function(t) { + return delete e[t]; + }); + })(o), + (o.className = this.props.inputClassName), + (o.id = this.state.inputId), + (o.style = n), + a.default.createElement( + 'div', + { className: this.props.className, style: t }, + this.renderStyles(), + a.default.createElement( + 'input', + r({}, o, { ref: this.inputRef }) + ), + a.default.createElement( + 'div', + { ref: this.sizerRef, style: u }, + e + ), + this.props.placeholder + ? a.default.createElement( + 'div', + { ref: this.placeHolderSizerRef, style: u }, + this.props.placeholder + ) + : null + ) + ); } } - })(e); - } - } - function h(e, t) { - (this.fun = e), (this.array = t); - } - function g() {} - (o.nextTick = function(e) { - var t = new Array(arguments.length - 1); - if (arguments.length > 1) - for (var n = 1; n < arguments.length; n++) t[n - 1] = arguments[n]; - u.push(new h(e, t)), 1 !== u.length || l || s(p); - }), - (h.prototype.run = function() { - this.fun.apply(null, this.array); - }), - (o.title = 'browser'), - (o.browser = !0), - (o.env = {}), - (o.argv = []), - (o.version = ''), - (o.versions = {}), - (o.on = g), - (o.addListener = g), - (o.once = g), - (o.off = g), - (o.removeListener = g), - (o.removeAllListeners = g), - (o.emit = g), - (o.prependListener = g), - (o.prependOnceListener = g), - (o.listeners = function(e) { - return []; - }), - (o.binding = function(e) { - throw new Error('process.binding is not supported'); - }), - (o.cwd = function() { - return '/'; - }), - (o.chdir = function(e) { - throw new Error('process.chdir is not supported'); - }), - (o.umask = function() { - return 0; - }); - }, - function(e, t, n) { - 'use strict'; - (t.__esModule = !0), - (t.default = t.EXITING = t.ENTERED = t.ENTERING = t.EXITED = t.UNMOUNTED = void 0); - var r = (function(e) { - if (e && e.__esModule) return e; - var t = {}; - if (null != e) - for (var n in e) - if (Object.prototype.hasOwnProperty.call(e, n)) { - var r = - Object.defineProperty && Object.getOwnPropertyDescriptor - ? Object.getOwnPropertyDescriptor(e, n) - : {}; - r.get || r.set ? Object.defineProperty(t, n, r) : (t[n] = e[n]); - } - return (t.default = e), t; - })(n(1)), - o = s(n(0)), - i = s(n(4)), - a = n(43); - n(203); - function s(e) { - return e && e.__esModule ? e : { default: e }; - } - t.UNMOUNTED = 'unmounted'; - t.EXITED = 'exited'; - t.ENTERING = 'entering'; - t.ENTERED = 'entered'; - t.EXITING = 'exiting'; - var c = (function(e) { - var t, n; - function r(t, n) { - var r; - r = e.call(this, t, n) || this; - var o, - i = n.transitionGroup, - a = i && !i.isMounting ? t.enter : t.appear; - return ( - (r.appearStatus = null), - t.in - ? a - ? ((o = 'exited'), (r.appearStatus = 'entering')) - : (o = 'entered') - : (o = - t.unmountOnExit || t.mountOnEnter ? 'unmounted' : 'exited'), - (r.state = { status: o }), - (r.nextCallback = null), - r + ]), + t ); - } - (n = e), - ((t = r).prototype = Object.create(n.prototype)), - (t.prototype.constructor = t), - (t.__proto__ = n); - var a = r.prototype; - return ( - (a.getChildContext = function() { - return { transitionGroup: null }; - }), - (r.getDerivedStateFromProps = function(e, t) { - return e.in && 'unmounted' === t.status - ? { status: 'exited' } - : null; - }), - (a.componentDidMount = function() { - this.updateStatus(!0, this.appearStatus); - }), - (a.componentDidUpdate = function(e) { - var t = null; - if (e !== this.props) { - var n = this.state.status; - this.props.in - ? 'entering' !== n && 'entered' !== n && (t = 'entering') - : ('entering' !== n && 'entered' !== n) || (t = 'exiting'); - } - this.updateStatus(!1, t); - }), - (a.componentWillUnmount = function() { - this.cancelNextCallback(); - }), - (a.getTimeouts = function() { - var e, - t, - n, - r = this.props.timeout; - return ( - (e = t = n = r), - null != r && - 'number' != typeof r && - ((e = r.exit), - (t = r.enter), - (n = void 0 !== r.appear ? r.appear : t)), - { exit: e, enter: t, appear: n } - ); - }), - (a.updateStatus = function(e, t) { - if ((void 0 === e && (e = !1), null !== t)) { - this.cancelNextCallback(); - var n = i.default.findDOMNode(this); - 'entering' === t ? this.performEnter(n, e) : this.performExit(n); - } else - this.props.unmountOnExit && - 'exited' === this.state.status && - this.setState({ status: 'unmounted' }); - }), - (a.performEnter = function(e, t) { - var n = this, - r = this.props.enter, - o = this.context.transitionGroup - ? this.context.transitionGroup.isMounting - : t, - i = this.getTimeouts(), - a = o ? i.appear : i.enter; - t || r - ? (this.props.onEnter(e, o), - this.safeSetState({ status: 'entering' }, function() { - n.props.onEntering(e, o), - n.onTransitionEnd(e, a, function() { - n.safeSetState({ status: 'entered' }, function() { - n.props.onEntered(e, o); - }); - }); - })) - : this.safeSetState({ status: 'entered' }, function() { - n.props.onEntered(e); - }); - }), - (a.performExit = function(e) { - var t = this, - n = this.props.exit, - r = this.getTimeouts(); - n - ? (this.props.onExit(e), - this.safeSetState({ status: 'exiting' }, function() { - t.props.onExiting(e), - t.onTransitionEnd(e, r.exit, function() { - t.safeSetState({ status: 'exited' }, function() { - t.props.onExited(e); - }); - }); - })) - : this.safeSetState({ status: 'exited' }, function() { - t.props.onExited(e); - }); - }), - (a.cancelNextCallback = function() { - null !== this.nextCallback && - (this.nextCallback.cancel(), (this.nextCallback = null)); - }), - (a.safeSetState = function(e, t) { - (t = this.setNextCallback(t)), this.setState(e, t); - }), - (a.setNextCallback = function(e) { - var t = this, - n = !0; - return ( - (this.nextCallback = function(r) { - n && ((n = !1), (t.nextCallback = null), e(r)); - }), - (this.nextCallback.cancel = function() { - n = !1; - }), - this.nextCallback - ); - }), - (a.onTransitionEnd = function(e, t, n) { - this.setNextCallback(n); - var r = null == t && !this.props.addEndListener; - e && !r - ? (this.props.addEndListener && - this.props.addEndListener(e, this.nextCallback), - null != t && setTimeout(this.nextCallback, t)) - : setTimeout(this.nextCallback, 0); - }), - (a.render = function() { - var e = this.state.status; - if ('unmounted' === e) return null; - var t = this.props, - n = t.children, - r = (function(e, t) { - if (null == e) return {}; - var n, - r, - o = {}, - i = Object.keys(e); - for (r = 0; r < i.length; r++) - (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); - return o; - })(t, ['children']); - if ( - (delete r.in, - delete r.mountOnEnter, - delete r.unmountOnExit, - delete r.appear, - delete r.enter, - delete r.exit, - delete r.timeout, - delete r.addEndListener, - delete r.onEnter, - delete r.onEntering, - delete r.onEntered, - delete r.onExit, - delete r.onExiting, - delete r.onExited, - 'function' == typeof n) - ) - return n(e, r); - var i = o.default.Children.only(n); - return o.default.cloneElement(i, r); - }), - r - ); - })(o.default.Component); - function u() {} - (c.contextTypes = { transitionGroup: r.object }), - (c.childContextTypes = { transitionGroup: function() {} }), - (c.propTypes = {}), - (c.defaultProps = { - in: !1, - mountOnEnter: !1, - unmountOnExit: !1, - appear: !1, - enter: !0, - exit: !0, - onEnter: u, - onEntering: u, - onEntered: u, - onExit: u, - onExiting: u, - onExited: u - }), - (c.UNMOUNTED = 0), - (c.EXITED = 1), - (c.ENTERING = 2), - (c.ENTERED = 3), - (c.EXITING = 4); - var l = (0, a.polyfill)(c); - t.default = l; - }, - function(e, t, n) { - 'use strict'; - (t.__esModule = !0), (t.classNamesShape = t.timeoutsShape = void 0); - var r; - (r = n(1)) && r.__esModule; - t.timeoutsShape = null; - t.classNamesShape = null; + })(i.Component); + (h.propTypes = { + className: s.default.string, + defaultValue: s.default.any, + extraWidth: s.default.oneOfType([s.default.number, s.default.string]), + id: s.default.string, + injectStyles: s.default.bool, + inputClassName: s.default.string, + inputRef: s.default.func, + inputStyle: s.default.object, + minWidth: s.default.oneOfType([s.default.number, s.default.string]), + onAutosize: s.default.func, + onChange: s.default.func, + placeholder: s.default.string, + placeholderIsMinWidth: s.default.bool, + style: s.default.object, + value: s.default.any + }), + (h.defaultProps = { minWidth: 1, injectStyles: !0 }), + (t.default = h); }, function(e, t, n) { 'use strict'; - (t.__esModule = !0), (t.default = void 0); - var r = s(n(1)), - o = s(n(0)), - i = n(43), - a = n(518); - function s(e) { - return e && e.__esModule ? e : { default: e }; - } - function c() { - return (c = + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { @@ -50019,33910 +50421,17069 @@ object-assign Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; - }).apply(this, arguments); - } - function u(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return e; - } - var l = - Object.values || - function(e) { - return Object.keys(e).map(function(t) { - return e[t]; - }); }, - f = (function(e) { - var t, n; - function r(t, n) { - var r, - o = (r = e.call(this, t, n) || this).handleExited.bind(u(u(r))); - return (r.state = { handleExited: o, firstRender: !0 }), r; - } - (n = e), - ((t = r).prototype = Object.create(n.prototype)), - (t.prototype.constructor = t), - (t.__proto__ = n); - var i = r.prototype; - return ( - (i.getChildContext = function() { - return { transitionGroup: { isMounting: !this.appeared } }; - }), - (i.componentDidMount = function() { - (this.appeared = !0), (this.mounted = !0); - }), - (i.componentWillUnmount = function() { - this.mounted = !1; - }), - (r.getDerivedStateFromProps = function(e, t) { - var n = t.children, - r = t.handleExited; - return { - children: t.firstRender - ? (0, a.getInitialChildMapping)(e, r) - : (0, a.getNextChildMapping)(e, n, r), - firstRender: !1 - }; - }), - (i.handleExited = function(e, t) { - var n = (0, a.getChildMapping)(this.props.children); - e.key in n || - (e.props.onExited && e.props.onExited(t), - this.mounted && - this.setState(function(t) { - var n = c({}, t.children); - return delete n[e.key], { children: n }; - })); - }), - (i.render = function() { - var e = this.props, - t = e.component, - n = e.childFactory, - r = (function(e, t) { - if (null == e) return {}; - var n, - r, - o = {}, - i = Object.keys(e); - for (r = 0; r < i.length; r++) - (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); - return o; - })(e, ['component', 'childFactory']), - i = l(this.state.children).map(n); - return ( - delete r.appear, - delete r.enter, - delete r.exit, - null === t ? i : o.default.createElement(t, r, i) - ); - }), - r - ); - })(o.default.Component); - (f.childContextTypes = { transitionGroup: r.default.object.isRequired }), - (f.propTypes = {}), - (f.defaultProps = { - component: 'div', - childFactory: function(e) { - return e; - } - }); - var d = (0, i.polyfill)(f); - (t.default = d), (e.exports = t.default); - }, - function(e, t, n) { - var r = n(520), - o = n(206), - i = n(523); - e.exports = function(e, t, n, a, s, c) { - var u = 1 & n, - l = e.length, - f = t.length; - if (l != f && !(u && f > l)) return !1; - var d = c.get(e); - if (d && c.get(t)) return d == t; - var p = -1, - h = !0, - g = 2 & n ? new r() : void 0; - for (c.set(e, t), c.set(t, e); ++p < l; ) { - var m = e[p], - b = t[p]; - if (a) var y = u ? a(b, m, p, t, e, c) : a(m, b, p, e, t, c); - if (void 0 !== y) { - if (y) continue; - h = !1; - break; - } - if (g) { - if ( - !o(t, function(e, t) { - if (!i(g, t) && (m === e || s(m, e, n, a, c))) return g.push(t); - }) - ) { - h = !1; - break; + o = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); } - } else if (m !== b && !s(m, b, n, a, c)) { - h = !1; - break; } - } - return c.delete(e), c.delete(t), h; - }; - }, - function(e, t) { - e.exports = 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; - }; - }, - function(e, t, n) { - var r = n(208), - o = n(143), - i = n(64); - e.exports = function(e) { - return r(e, i, o); - }; - }, - function(e, t, n) { - var r = n(209), - o = n(22); - e.exports = function(e, t, n) { - var i = t(e); - return o(e) ? i : r(i, n(e)); - }; - }, - function(e, t) { - e.exports = function(e, t) { - for (var n = -1, r = t.length, o = e.length; ++n < r; ) e[o + n] = t[n]; - return e; - }; - }, - function(e, t) { - e.exports = function() { - return []; - }; - }, - function(e, t, n) { - var r = n(106), - o = n(529), - i = Object.prototype.hasOwnProperty; - e.exports = function(e) { - if (!r(e)) return o(e); - var t = []; - for (var n in Object(e)) - i.call(e, n) && 'constructor' != n && t.push(n); - return t; - }; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = void 0); - var r = u(n(0)), - o = u(n(1)), - i = u(n(144)), - a = u(n(13)), - s = n(89), - c = u(n(545)); - function u(e) { + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + i = n(0), + a = c(i), + s = c(n(1)); + function c(e) { return e && e.__esModule ? e : { default: e }; } - function l(e) { - return (l = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(e) { - return typeof e; - } - : function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - })(e); - } - function f(e, t) { - var n = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var r = Object.getOwnPropertySymbols(e); - t && - (r = r.filter(function(t) { - return Object.getOwnPropertyDescriptor(e, t).enumerable; - })), - n.push.apply(n, r); - } - return n; - } - function d(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}; - t % 2 - ? f(n, !0).forEach(function(t) { - y(e, t, n[t]); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) - : f(n).forEach(function(t) { - Object.defineProperty( - e, - t, - Object.getOwnPropertyDescriptor(n, t) - ); - }); - } - return e; - } - function p(e) { - return ( - (function(e) { - if (Array.isArray(e)) { - for (var t = 0, n = new Array(e.length); t < e.length; t++) - n[t] = e[t]; - return n; - } - })(e) || - (function(e) { - if ( - Symbol.iterator in Object(e) || - '[object Arguments]' === Object.prototype.toString.call(e) - ) - return Array.from(e); - })(e) || - (function() { - throw new TypeError( - 'Invalid attempt to spread non-iterable instance' - ); - })() - ); - } - function h(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - function g(e) { - return (g = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(e) { - return e.__proto__ || Object.getPrototypeOf(e); - })(e); - } - function m(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return e; - } - function b(e, t) { - return (b = - Object.setPrototypeOf || - function(e, t) { - return (e.__proto__ = t), e; - })(e, t); - } - function y(e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e - ); - } - var v = function(e) { - var t = e || {}, - n = t.verticalCompact, - r = t.compactType; - return !1 === n ? null : r; + var u = { + position: 'absolute', + top: 0, + left: 0, + visibility: 'hidden', + height: 0, + overflow: 'scroll', + whiteSpace: 'pre' }, - _ = !1; - try { - _ = navigator.userAgent.toLowerCase().includes('firefox'); - } catch (e) {} - var x = (function(e) { - function t(e, n) { - var o; - return ( - (function(e, t) { + l = [ + 'extraWidth', + 'injectStyles', + 'inputClassName', + 'inputRef', + 'inputStyle', + 'minWidth', + 'onAutosize', + 'placeholderIsMinWidth' + ], + f = function(e, t) { + (t.style.fontSize = e.fontSize), + (t.style.fontFamily = e.fontFamily), + (t.style.fontWeight = e.fontWeight), + (t.style.fontStyle = e.fontStyle), + (t.style.letterSpacing = e.letterSpacing), + (t.style.textTransform = e.textTransform); + }, + d = + !('undefined' == typeof window || !window.navigator) && + /MSIE |Trident\/|Edge\//.test(window.navigator.userAgent), + p = function() { + return d + ? '_' + + Math.random() + .toString(36) + .substr(2, 12) + : void 0; + }, + h = (function(e) { + function t(e) { + !(function(e, t) { if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function'); - })(this, t), - (o = (function(e, t) { - return !t || ('object' !== l(t) && 'function' != typeof t) - ? m(e) + })(this, t); + var n = (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || ('object' != typeof t && 'function' != typeof t) + ? e : t; - })(this, g(t).call(this, e, n))), - y(m(o), 'state', { - activeDrag: null, - layout: (0, s.synchronizeLayoutWithChildren)( - o.props.layout, - o.props.children, - o.props.cols, - v(o.props) - ), - mounted: !1, - oldDragItem: null, - oldLayout: null, - oldResizeItem: null, - droppingDOMNode: null, - children: [] - }), - y(m(o), 'dragEnterCounter', 0), - y(m(o), 'onDragOver', function(e) { - if ( - _ && - !e.nativeEvent.target.className.includes('react-grid-layout') - ) - return !1; - var t = o.props.droppingItem, - n = o.state.layout, - i = e.nativeEvent, - a = i.layerX, - s = i.layerY, - c = { x: a, y: s, e: e }; - if (o.state.droppingDOMNode) { - if (o.state.droppingPosition) { - (o.state.droppingPosition.x != a || - o.state.droppingPosition.y != s) && - o.setState({ droppingPosition: c }); - } - } else o.setState({ droppingDOMNode: r.default.createElement('div', { key: t.i }), droppingPosition: c, layout: [].concat(p(n), [d({}, t, { x: 0, y: 0, static: !1, isDraggable: !0 })]) }); - e.stopPropagation(), e.preventDefault(); - }), - y(m(o), 'removeDroppingPlaceholder', function() { - var e = o.props, - t = e.droppingItem, - n = e.cols, - r = o.state.layout, - i = (0, s.compact)( - r.filter(function(e) { - return e.i !== t.i; - }), - v(o.props), - n + })(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e)); + return ( + (n.inputRef = function(e) { + (n.input = e), + 'function' == typeof n.props.inputRef && n.props.inputRef(e); + }), + (n.placeHolderSizerRef = function(e) { + n.placeHolderSizer = e; + }), + (n.sizerRef = function(e) { + n.sizer = e; + }), + (n.state = { inputWidth: e.minWidth, inputId: e.id || p() }), + n + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t ); - o.setState({ - layout: i, - droppingDOMNode: null, - activeDrag: null, - droppingPosition: void 0 - }); - }), - y(m(o), 'onDragLeave', function() { - o.dragEnterCounter--, - 0 === o.dragEnterCounter && o.removeDroppingPlaceholder(); - }), - y(m(o), 'onDragEnter', function() { - o.dragEnterCounter++; - }), - y(m(o), 'onDrop', function() { - var e = o.props.droppingItem, - t = - o.state.layout.find(function(t) { - return t.i === e.i; - }) || {}, - n = t.x, - r = t.y, - i = t.w, - a = t.h; - (o.dragEnterCounter = 0), - o.removeDroppingPlaceholder(), - o.props.onDrop({ x: n, y: r, w: i, h: a }); - }), - (0, s.autoBindHandlers)(m(o), [ - 'onDragStart', - 'onDrag', - 'onDragStop', - 'onResizeStart', - 'onResize', - 'onResizeStop' - ]), - o - ); - } - var n, o, u; - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { value: e, writable: !0, configurable: !0 } - })), - t && b(e, t); - })(t, e), - (n = t), - (u = [ - { - key: 'getDerivedStateFromProps', - value: function(e, t) { - var n; - return t.activeDrag - ? null - : ((0, i.default)(e.layout, t.propsLayout) && - e.compactType === t.compactType - ? (0, s.childrenEqual)(e.children, t.children) || - (n = t.layout) - : (n = e.layout), - n - ? { - layout: (0, s.synchronizeLayoutWithChildren)( - n, - e.children, - e.cols, - v(e) - ), - compactType: e.compactType, - children: e.children, - propsLayout: e.layout - } - : null); - } - } - ]), - (o = [ - { - key: 'componentDidMount', - value: function() { - this.setState({ mounted: !0 }), - this.onLayoutMaybeChanged( - this.state.layout, - this.props.layout - ); - } - }, - { - key: 'componentDidUpdate', - value: function(e, t) { - if (!this.state.activeDrag) { - var n = this.state.layout, - r = t.layout; - this.onLayoutMaybeChanged(n, r); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 } - } - }, - { - key: 'containerHeight', - value: function() { - if (this.props.autoSize) { - var e = (0, s.bottom)(this.state.layout), - t = this.props.containerPadding - ? this.props.containerPadding[1] - : this.props.margin[1]; - return ( - e * this.props.rowHeight + - (e - 1) * this.props.margin[1] + - 2 * t + - 'px' - ); + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + o(t, [ + { + key: 'componentDidMount', + value: function() { + (this.mounted = !0), + this.copyInputStyles(), + this.updateInputWidth(); } - } - }, - { - key: 'onDragStart', - value: function(e, t, n, r) { - var o = r.e, - i = r.node, - a = this.state.layout, - c = (0, s.getLayoutItem)(a, e); - if (c) - return ( - this.setState({ - oldDragItem: (0, s.cloneLayoutItem)(c), - oldLayout: this.state.layout - }), - this.props.onDragStart(a, c, c, null, o, i) - ); - } - }, - { - key: 'onDrag', - value: function(e, t, n, r) { - var o = r.e, - i = r.node, - a = this.state.oldDragItem, - c = this.state.layout, - u = this.props.cols, - l = (0, s.getLayoutItem)(c, e); - if (l) { - var f = { - w: l.w, - h: l.h, - x: l.x, - y: l.y, - placeholder: !0, - i: e - }; - (c = (0, s.moveElement)( - c, - l, - t, - n, - !0, - this.props.preventCollision, - v(this.props), - u - )), - this.props.onDrag(c, a, l, f, o, i), - this.setState({ - layout: (0, s.compact)(c, v(this.props), u), - activeDrag: f - }); + }, + { + key: 'UNSAFE_componentWillReceiveProps', + value: function(e) { + var t = e.id; + t !== this.props.id && this.setState({ inputId: t || p() }); } - } - }, - { - key: 'onDragStop', - value: function(e, t, n, r) { - var o = r.e, - i = r.node, - a = this.state.oldDragItem, - c = this.state.layout, - u = this.props, - l = u.cols, - f = u.preventCollision, - d = (0, s.getLayoutItem)(c, e); - if (d) { - (c = (0, s.moveElement)(c, d, t, n, !0, f, v(this.props), l)), - this.state.activeDrag && - this.props.onDragStop(c, a, d, null, o, i); - var p = (0, s.compact)(c, v(this.props), l), - h = this.state.oldLayout; - this.setState({ - activeDrag: null, - layout: p, - oldDragItem: null, - oldLayout: null - }), - this.onLayoutMaybeChanged(p, h); + }, + { + key: 'componentDidUpdate', + value: function(e, t) { + t.inputWidth !== this.state.inputWidth && + 'function' == typeof this.props.onAutosize && + this.props.onAutosize(this.state.inputWidth), + this.updateInputWidth(); } - } - }, - { - key: 'onLayoutMaybeChanged', - value: function(e, t) { - t || (t = this.state.layout), - (0, i.default)(t, e) || this.props.onLayoutChange(e); - } - }, - { - key: 'onResizeStart', - value: function(e, t, n, r) { - var o = r.e, - i = r.node, - a = this.state.layout, - c = (0, s.getLayoutItem)(a, e); - c && - (this.setState({ - oldResizeItem: (0, s.cloneLayoutItem)(c), - oldLayout: this.state.layout - }), - this.props.onResizeStart(a, c, c, null, o, i)); - } - }, - { - key: 'onResize', - value: function(e, t, n, r) { - var o = r.e, - i = r.node, - a = this.state, - c = a.layout, - u = a.oldResizeItem, - l = this.props, - f = l.cols, - p = l.preventCollision, - h = (0, s.getLayoutItem)(c, e); - if (h) { - var g; - if (p) { - var m = (0, s.getAllCollisions)( - c, - d({}, h, { w: t, h: n }) - ).filter(function(e) { - return e.i !== h.i; - }); - if ((g = m.length > 0)) { - var b = 1 / 0, - y = 1 / 0; - m.forEach(function(e) { - e.x > h.x && (b = Math.min(b, e.x)), - e.y > h.y && (y = Math.min(y, e.y)); - }), - Number.isFinite(b) && (h.w = b - h.x), - Number.isFinite(y) && (h.h = y - h.y); - } + }, + { + key: 'componentWillUnmount', + value: function() { + this.mounted = !1; + } + }, + { + key: 'copyInputStyles', + value: function() { + if (this.mounted && window.getComputedStyle) { + var e = this.input && window.getComputedStyle(this.input); + e && + (f(e, this.sizer), + this.placeHolderSizer && f(e, this.placeHolderSizer)); } - g || ((h.w = t), (h.h = n)); - var _ = { w: h.w, h: h.h, x: h.x, y: h.y, static: !0, i: e }; - this.props.onResize(c, u, h, _, o, i), - this.setState({ - layout: (0, s.compact)(c, v(this.props), f), - activeDrag: _ - }); } - } - }, - { - key: 'onResizeStop', - value: function(e, t, n, r) { - var o = r.e, - i = r.node, - a = this.state, - c = a.layout, - u = a.oldResizeItem, - l = this.props.cols, - f = (0, s.getLayoutItem)(c, e); - this.props.onResizeStop(c, u, f, null, o, i); - var d = (0, s.compact)(c, v(this.props), l), - p = this.state.oldLayout; - this.setState({ - activeDrag: null, - layout: d, - oldResizeItem: null, - oldLayout: null - }), - this.onLayoutMaybeChanged(d, p); - } - }, - { - key: 'placeholder', - value: function() { - var e = this.state.activeDrag; - if (!e) return null; - var t = this.props, - n = t.width, - o = t.cols, - i = t.margin, - a = t.containerPadding, - s = t.rowHeight, - u = t.maxRows, - l = t.useCSSTransforms, - f = t.transformScale; - return r.default.createElement( - c.default, - { - w: e.w, - h: e.h, - x: e.x, - y: e.y, - i: e.i, - className: 'react-grid-placeholder', - containerWidth: n, - cols: o, - margin: i, - containerPadding: a || i, - maxRows: u, - rowHeight: s, - isDraggable: !1, - isResizable: !1, - useCSSTransforms: l, - transformScale: f - }, - r.default.createElement('div', null) - ); - } - }, - { - key: 'processGridItem', - value: function(e, t) { - if (e && e.key) { - var n = (0, s.getLayoutItem)( - this.state.layout, - String(e.key) - ); - if (!n) return null; - var o = this.props, - i = o.width, - a = o.cols, - u = o.margin, - l = o.containerPadding, - f = o.rowHeight, - d = o.maxRows, - p = o.isDraggable, - h = o.isResizable, - g = o.useCSSTransforms, - m = o.transformScale, - b = o.draggableCancel, - y = o.draggableHandle, - v = this.state, - _ = v.mounted, - x = v.droppingPosition, - w = Boolean( - !n.static && p && (n.isDraggable || null == n.isDraggable) + }, + { + key: 'updateInputWidth', + value: function() { + if ( + this.mounted && + this.sizer && + void 0 !== this.sizer.scrollWidth + ) { + var e = void 0; + (e = + this.props.placeholder && + (!this.props.value || + (this.props.value && this.props.placeholderIsMinWidth)) + ? Math.max( + this.sizer.scrollWidth, + this.placeHolderSizer.scrollWidth + ) + 2 + : this.sizer.scrollWidth + 2), + (e += + 'number' === this.props.type && + void 0 === this.props.extraWidth + ? 16 + : parseInt(this.props.extraWidth) || 0) < + this.props.minWidth && (e = this.props.minWidth), + e !== this.state.inputWidth && + this.setState({ inputWidth: e }); + } + } + }, + { + key: 'getInput', + value: function() { + return this.input; + } + }, + { + key: 'focus', + value: function() { + this.input.focus(); + } + }, + { + key: 'blur', + value: function() { + this.input.blur(); + } + }, + { + key: 'select', + value: function() { + this.input.select(); + } + }, + { + key: 'renderStyles', + value: function() { + var e = this.props.injectStyles; + return d && e + ? a.default.createElement('style', { + dangerouslySetInnerHTML: { + __html: + 'input#' + + this.state.inputId + + '::-ms-clear {display: none;}' + } + }) + : null; + } + }, + { + key: 'render', + value: function() { + var e = [ + this.props.defaultValue, + this.props.value, + '' + ].reduce(function(e, t) { + return null != e ? e : t; + }), + t = r({}, this.props.style); + t.display || (t.display = 'inline-block'); + var n = r( + { + boxSizing: 'content-box', + width: this.state.inputWidth + 'px' + }, + this.props.inputStyle ), - M = Boolean( - !n.static && h && (n.isResizable || null == n.isResizable) - ); - return r.default.createElement( - c.default, - { - containerWidth: i, - cols: a, - margin: u, - containerPadding: l || u, - maxRows: d, - rowHeight: f, - cancel: b, - handle: y, - onDragStop: this.onDragStop, - onDragStart: this.onDragStart, - onDrag: this.onDrag, - onResizeStart: this.onResizeStart, - onResize: this.onResize, - onResizeStop: this.onResizeStop, - isDraggable: w, - isResizable: M, - useCSSTransforms: g && _, - usePercentages: !_, - transformScale: m, - w: n.w, - h: n.h, - x: n.x, - y: n.y, - i: n.i, - minH: n.minH, - minW: n.minW, - maxH: n.maxH, - maxW: n.maxW, - static: n.static, - droppingPosition: t ? x : void 0 - }, - e + o = (function(e, t) { + var n = {}; + for (var r in e) + t.indexOf(r) >= 0 || + (Object.prototype.hasOwnProperty.call(e, r) && + (n[r] = e[r])); + return n; + })(this.props, []); + return ( + (function(e) { + l.forEach(function(t) { + return delete e[t]; + }); + })(o), + (o.className = this.props.inputClassName), + (o.id = this.state.inputId), + (o.style = n), + a.default.createElement( + 'div', + { className: this.props.className, style: t }, + this.renderStyles(), + a.default.createElement( + 'input', + r({}, o, { ref: this.inputRef }) + ), + a.default.createElement( + 'div', + { ref: this.sizerRef, style: u }, + e + ), + this.props.placeholder + ? a.default.createElement( + 'div', + { ref: this.placeHolderSizerRef, style: u }, + this.props.placeholder + ) + : null + ) ); } } - }, + ]), + t + ); + })(i.Component); + (h.propTypes = { + className: s.default.string, + defaultValue: s.default.any, + extraWidth: s.default.oneOfType([s.default.number, s.default.string]), + id: s.default.string, + injectStyles: s.default.bool, + inputClassName: s.default.string, + inputRef: s.default.func, + inputStyle: s.default.object, + minWidth: s.default.oneOfType([s.default.number, s.default.string]), + onAutosize: s.default.func, + onChange: s.default.func, + placeholder: s.default.string, + placeholderIsMinWidth: s.default.bool, + style: s.default.object, + value: s.default.any + }), + (h.defaultProps = { minWidth: 1, injectStyles: !0 }), + (t.default = h); + }, + function(e, t, n) { + 'use strict'; + n.r(t); + var r = function(e, t) { + return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN; + }, + o = function(e) { + var t; + return ( + 1 === e.length && + ((t = e), + (e = function(e, n) { + return r(t(e), n); + })), { - key: 'render', - value: function() { - var e = this, - t = this.props, - n = t.className, - o = t.style, - i = t.isDroppable, - c = (0, a.default)('react-grid-layout', n), - u = d({ height: this.containerHeight() }, o); - return r.default.createElement( - 'div', - { - className: c, - style: u, - onDrop: i ? this.onDrop : s.noop, - onDragLeave: i ? this.onDragLeave : s.noop, - onDragEnter: i ? this.onDragEnter : s.noop, - onDragOver: i ? this.onDragOver : s.noop - }, - r.default.Children.map(this.props.children, function(t) { - return e.processGridItem(t); - }), - i && - this.state.droppingDOMNode && - this.processGridItem(this.state.droppingDOMNode, !0), - this.placeholder() - ); + left: function(t, n, r, o) { + for ( + null == r && (r = 0), null == o && (o = t.length); + r < o; + + ) { + var i = (r + o) >>> 1; + e(t[i], n) < 0 ? (r = i + 1) : (o = i); + } + return r; + }, + right: function(t, n, r, o) { + for ( + null == r && (r = 0), null == o && (o = t.length); + r < o; + + ) { + var i = (r + o) >>> 1; + e(t[i], n) > 0 ? (o = i) : (r = i + 1); + } + return r; } } - ]) && h(n.prototype, o), - u && h(n, u), - t + ); + }; + var i = o(r), + a = i.right, + s = i.left, + c = a, + u = function(e, t) { + null == t && (t = l); + for ( + var n = 0, r = e.length - 1, o = e[0], i = new Array(r < 0 ? 0 : r); + n < r; + + ) + i[n] = t(o, (o = e[++n])); + return i; + }; + function l(e, t) { + return [e, t]; + } + var f = function(e, t, n) { + var r, + o, + i, + a, + s = e.length, + c = t.length, + u = new Array(s * c); + for (null == n && (n = l), r = i = 0; r < s; ++r) + for (a = e[r], o = 0; o < c; ++o, ++i) u[i] = n(a, t[o]); + return u; + }, + d = function(e, t) { + return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; + }, + p = function(e) { + return null === e ? NaN : +e; + }, + h = function(e, t) { + var n, + r, + o = e.length, + i = 0, + a = -1, + s = 0, + c = 0; + if (null == t) + for (; ++a < o; ) + isNaN((n = p(e[a]))) || (c += (r = n - s) * (n - (s += r / ++i))); + else + for (; ++a < o; ) + isNaN((n = p(t(e[a], a, e)))) || + (c += (r = n - s) * (n - (s += r / ++i))); + if (i > 1) return c / (i - 1); + }, + g = function(e, t) { + var n = h(e, t); + return n ? Math.sqrt(n) : n; + }, + m = function(e, t) { + var n, + r, + o, + i = e.length, + a = -1; + if (null == t) { + for (; ++a < i; ) + if (null != (n = e[a]) && n >= n) + for (r = o = n; ++a < i; ) + null != (n = e[a]) && (r > n && (r = n), o < n && (o = n)); + } else + for (; ++a < i; ) + if (null != (n = t(e[a], a, e)) && n >= n) + for (r = o = n; ++a < i; ) + null != (n = t(e[a], a, e)) && + (r > n && (r = n), o < n && (o = n)); + return [r, o]; + }, + b = Array.prototype, + y = b.slice, + v = b.map, + _ = function(e) { + return function() { + return e; + }; + }, + w = function(e) { + return e; + }, + x = function(e, t, n) { + (e = +e), + (t = +t), + (n = + (o = arguments.length) < 2 + ? ((t = e), (e = 0), 1) + : o < 3 + ? 1 + : +n); + for ( + var r = -1, + o = 0 | Math.max(0, Math.ceil((t - e) / n)), + i = new Array(o); + ++r < o; + + ) + i[r] = e + r * n; + return i; + }, + M = Math.sqrt(50), + k = Math.sqrt(10), + S = Math.sqrt(2), + O = function(e, t, n) { + var r, + o, + i, + a, + s = -1; + if (((n = +n), (e = +e) === (t = +t) && n > 0)) return [e]; + if ( + ((r = t < e) && ((o = e), (e = t), (t = o)), + 0 === (a = E(e, t, n)) || !isFinite(a)) + ) + return []; + if (a > 0) + for ( + e = Math.ceil(e / a), + t = Math.floor(t / a), + i = new Array((o = Math.ceil(t - e + 1))); + ++s < o; + + ) + i[s] = (e + s) * a; + else + for ( + e = Math.floor(e * a), + t = Math.ceil(t * a), + i = new Array((o = Math.ceil(e - t + 1))); + ++s < o; + + ) + i[s] = (e - s) / a; + return r && i.reverse(), i; + }; + function E(e, t, n) { + var r = (t - e) / Math.max(0, n), + o = Math.floor(Math.log(r) / Math.LN10), + i = r / Math.pow(10, o); + return o >= 0 + ? (i >= M ? 10 : i >= k ? 5 : i >= S ? 2 : 1) * Math.pow(10, o) + : -Math.pow(10, -o) / (i >= M ? 10 : i >= k ? 5 : i >= S ? 2 : 1); + } + function A(e, t, n) { + var r = Math.abs(t - e) / Math.max(0, n), + o = Math.pow(10, Math.floor(Math.log(r) / Math.LN10)), + i = r / o; + return ( + i >= M ? (o *= 10) : i >= k ? (o *= 5) : i >= S && (o *= 2), + t < e ? -o : o ); - })(r.default.Component); - (t.default = x), - y(x, 'displayName', 'ReactGridLayout'), - y(x, 'propTypes', { - className: o.default.string, - style: o.default.object, - width: o.default.number, - autoSize: o.default.bool, - cols: o.default.number, - draggableCancel: o.default.string, - draggableHandle: o.default.string, - verticalCompact: function(e) { - e.verticalCompact, 0; - }, - compactType: o.default.oneOf(['vertical', 'horizontal']), - layout: function(e) { - var t = e.layout; - void 0 !== t && (0, s.validateLayout)(t, 'layout'); - }, - margin: o.default.arrayOf(o.default.number), - containerPadding: o.default.arrayOf(o.default.number), - rowHeight: o.default.number, - maxRows: o.default.number, - isDraggable: o.default.bool, - isResizable: o.default.bool, - preventCollision: o.default.bool, - useCSSTransforms: o.default.bool, - transformScale: o.default.number, - isDroppable: o.default.bool, - onLayoutChange: o.default.func, - onDragStart: o.default.func, - onDrag: o.default.func, - onDragStop: o.default.func, - onResizeStart: o.default.func, - onResize: o.default.func, - onResizeStop: o.default.func, - onDrop: o.default.func, - droppingItem: o.default.shape({ - i: o.default.string.isRequired, - w: o.default.number.isRequired, - h: o.default.number.isRequired - }), - children: function(e, t) { - var n = e[t], - o = {}; - r.default.Children.forEach(n, function(e) { - if (o[e.key]) - throw new Error( - 'Duplicate child key "' + - e.key + - '" found! This will cause problems in ReactGridLayout.' - ); - o[e.key] = !0; + } + var T = function(e) { + return Math.ceil(Math.log(e.length) / Math.LN2) + 1; + }, + C = function() { + var e = w, + t = m, + n = T; + function r(r) { + var o, + i, + a = r.length, + s = new Array(a); + for (o = 0; o < a; ++o) s[o] = e(r[o], o, r); + var u = t(s), + l = u[0], + f = u[1], + d = n(s, l, f); + Array.isArray(d) || + ((d = A(l, f, d)), (d = x(Math.ceil(l / d) * d, f, d))); + for (var p = d.length; d[0] <= l; ) d.shift(), --p; + for (; d[p - 1] > f; ) d.pop(), --p; + var h, + g = new Array(p + 1); + for (o = 0; o <= p; ++o) + ((h = g[o] = []).x0 = o > 0 ? d[o - 1] : l), + (h.x1 = o < p ? d[o] : f); + for (o = 0; o < a; ++o) + l <= (i = s[o]) && i <= f && g[c(d, i, 0, p)].push(r[o]); + return g; + } + return ( + (r.value = function(t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : _(t)), r) + : e; + }), + (r.domain = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : _([e[0], e[1]])), r) + : t; + }), + (r.thresholds = function(e) { + return arguments.length + ? ((n = + 'function' == typeof e + ? e + : Array.isArray(e) + ? _(y.call(e)) + : _(e)), + r) + : n; + }), + r + ); + }, + L = function(e, t, n) { + if ((null == n && (n = p), (r = e.length))) { + if ((t = +t) <= 0 || r < 2) return +n(e[0], 0, e); + if (t >= 1) return +n(e[r - 1], r - 1, e); + var r, + o = (r - 1) * t, + i = Math.floor(o), + a = +n(e[i], i, e); + return a + (+n(e[i + 1], i + 1, e) - a) * (o - i); + } + }, + P = function(e, t, n) { + return ( + (e = v.call(e, p).sort(r)), + Math.ceil( + (n - t) / + (2 * (L(e, 0.75) - L(e, 0.25)) * Math.pow(e.length, -1 / 3)) + ) + ); + }, + D = function(e, t, n) { + return Math.ceil((n - t) / (3.5 * g(e) * Math.pow(e.length, -1 / 3))); + }, + j = function(e, t) { + var n, + r, + o = e.length, + i = -1; + if (null == t) { + for (; ++i < o; ) + if (null != (n = e[i]) && n >= n) + for (r = n; ++i < o; ) null != (n = e[i]) && n > r && (r = n); + } else + for (; ++i < o; ) + if (null != (n = t(e[i], i, e)) && n >= n) + for (r = n; ++i < o; ) + null != (n = t(e[i], i, e)) && n > r && (r = n); + return r; + }, + z = function(e, t) { + var n, + r = e.length, + o = r, + i = -1, + a = 0; + if (null == t) + for (; ++i < r; ) isNaN((n = p(e[i]))) ? --o : (a += n); + else for (; ++i < r; ) isNaN((n = p(t(e[i], i, e)))) ? --o : (a += n); + if (o) return a / o; + }, + N = function(e, t) { + var n, + o = e.length, + i = -1, + a = []; + if (null == t) for (; ++i < o; ) isNaN((n = p(e[i]))) || a.push(n); + else for (; ++i < o; ) isNaN((n = p(t(e[i], i, e)))) || a.push(n); + return L(a.sort(r), 0.5); + }, + R = function(e) { + for (var t, n, r, o = e.length, i = -1, a = 0; ++i < o; ) + a += e[i].length; + for (n = new Array(a); --o >= 0; ) + for (t = (r = e[o]).length; --t >= 0; ) n[--a] = r[t]; + return n; + }, + I = function(e, t) { + var n, + r, + o = e.length, + i = -1; + if (null == t) { + for (; ++i < o; ) + if (null != (n = e[i]) && n >= n) + for (r = n; ++i < o; ) null != (n = e[i]) && r > n && (r = n); + } else + for (; ++i < o; ) + if (null != (n = t(e[i], i, e)) && n >= n) + for (r = n; ++i < o; ) + null != (n = t(e[i], i, e)) && r > n && (r = n); + return r; + }, + F = function(e, t) { + for (var n = t.length, r = new Array(n); n--; ) r[n] = e[t[n]]; + return r; + }, + q = function(e, t) { + if ((n = e.length)) { + var n, + o, + i = 0, + a = 0, + s = e[a]; + for (null == t && (t = r); ++i < n; ) + (t((o = e[i]), s) < 0 || 0 !== t(s, s)) && ((s = o), (a = i)); + return 0 === t(s, s) ? a : void 0; + } + }, + B = function(e, t, n) { + for ( + var r, o, i = (null == n ? e.length : n) - (t = null == t ? 0 : +t); + i; + + ) + (o = (Math.random() * i--) | 0), + (r = e[i + t]), + (e[i + t] = e[o + t]), + (e[o + t] = r); + return e; + }, + H = function(e, t) { + var n, + r = e.length, + o = -1, + i = 0; + if (null == t) for (; ++o < r; ) (n = +e[o]) && (i += n); + else for (; ++o < r; ) (n = +t(e[o], o, e)) && (i += n); + return i; + }, + Y = function(e) { + if (!(o = e.length)) return []; + for (var t = -1, n = I(e, W), r = new Array(n); ++t < n; ) + for (var o, i = -1, a = (r[t] = new Array(o)); ++i < o; ) + a[i] = e[i][t]; + return r; + }; + function W(e) { + return e.length; + } + var V = function() { + return Y(arguments); + }, + U = Array.prototype.slice, + X = function(e) { + return e; + }, + G = 1, + K = 2, + $ = 3, + Q = 4, + J = 1e-6; + function Z(e) { + return 'translate(' + (e + 0.5) + ',0)'; + } + function ee(e) { + return 'translate(0,' + (e + 0.5) + ')'; + } + function te(e) { + return function(t) { + return +e(t); + }; + } + function ne(e) { + var t = Math.max(0, e.bandwidth() - 1) / 2; + return ( + e.round() && (t = Math.round(t)), + function(n) { + return +e(n) + t; + } + ); + } + function re() { + return !this.__axis; + } + function oe(e, t) { + var n = [], + r = null, + o = null, + i = 6, + a = 6, + s = 3, + c = e === G || e === Q ? -1 : 1, + u = e === Q || e === K ? 'x' : 'y', + l = e === G || e === $ ? Z : ee; + function f(f) { + var d = null == r ? (t.ticks ? t.ticks.apply(t, n) : t.domain()) : r, + p = null == o ? (t.tickFormat ? t.tickFormat.apply(t, n) : X) : o, + h = Math.max(i, 0) + s, + g = t.range(), + m = +g[0] + 0.5, + b = +g[g.length - 1] + 0.5, + y = (t.bandwidth ? ne : te)(t.copy()), + v = f.selection ? f.selection() : f, + _ = v.selectAll('.domain').data([null]), + w = v + .selectAll('.tick') + .data(d, t) + .order(), + x = w.exit(), + M = w + .enter() + .append('g') + .attr('class', 'tick'), + k = w.select('line'), + S = w.select('text'); + (_ = _.merge( + _.enter() + .insert('path', '.tick') + .attr('class', 'domain') + .attr('stroke', 'currentColor') + )), + (w = w.merge(M)), + (k = k.merge( + M.append('line') + .attr('stroke', 'currentColor') + .attr(u + '2', c * i) + )), + (S = S.merge( + M.append('text') + .attr('fill', 'currentColor') + .attr(u, c * h) + .attr('dy', e === G ? '0em' : e === $ ? '0.71em' : '0.32em') + )), + f !== v && + ((_ = _.transition(f)), + (w = w.transition(f)), + (k = k.transition(f)), + (S = S.transition(f)), + (x = x + .transition(f) + .attr('opacity', J) + .attr('transform', function(e) { + return isFinite((e = y(e))) + ? l(e) + : this.getAttribute('transform'); + })), + M.attr('opacity', J).attr('transform', function(e) { + var t = this.parentNode.__axis; + return l(t && isFinite((t = t(e))) ? t : y(e)); + })), + x.remove(), + _.attr( + 'd', + e === Q || e == K + ? a + ? 'M' + c * a + ',' + m + 'H0.5V' + b + 'H' + c * a + : 'M0.5,' + m + 'V' + b + : a + ? 'M' + m + ',' + c * a + 'V0.5H' + b + 'V' + c * a + : 'M' + m + ',0.5H' + b + ), + w.attr('opacity', 1).attr('transform', function(e) { + return l(y(e)); + }), + k.attr(u + '2', c * i), + S.attr(u, c * h).text(p), + v + .filter(re) + .attr('fill', 'none') + .attr('font-size', 10) + .attr('font-family', 'sans-serif') + .attr( + 'text-anchor', + e === K ? 'start' : e === Q ? 'end' : 'middle' + ), + v.each(function() { + this.__axis = y; }); + } + return ( + (f.scale = function(e) { + return arguments.length ? ((t = e), f) : t; + }), + (f.ticks = function() { + return (n = U.call(arguments)), f; + }), + (f.tickArguments = function(e) { + return arguments.length + ? ((n = null == e ? [] : U.call(e)), f) + : n.slice(); + }), + (f.tickValues = function(e) { + return arguments.length + ? ((r = null == e ? null : U.call(e)), f) + : r && r.slice(); + }), + (f.tickFormat = function(e) { + return arguments.length ? ((o = e), f) : o; + }), + (f.tickSize = function(e) { + return arguments.length ? ((i = a = +e), f) : i; + }), + (f.tickSizeInner = function(e) { + return arguments.length ? ((i = +e), f) : i; + }), + (f.tickSizeOuter = function(e) { + return arguments.length ? ((a = +e), f) : a; + }), + (f.tickPadding = function(e) { + return arguments.length ? ((s = +e), f) : s; + }), + f + ); + } + function ie(e) { + return oe(G, e); + } + function ae(e) { + return oe(K, e); + } + function se(e) { + return oe($, e); + } + function ce(e) { + return oe(Q, e); + } + var ue = { value: function() {} }; + function le() { + for (var e, t = 0, n = arguments.length, r = {}; t < n; ++t) { + if (!(e = arguments[t] + '') || e in r || /[\s.]/.test(e)) + throw new Error('illegal type: ' + e); + r[e] = []; + } + return new fe(r); + } + function fe(e) { + this._ = e; + } + function de(e, t) { + return e + .trim() + .split(/^|\s+/) + .map(function(e) { + var n = '', + r = e.indexOf('.'); + if ( + (r >= 0 && ((n = e.slice(r + 1)), (e = e.slice(0, r))), + e && !t.hasOwnProperty(e)) + ) + throw new Error('unknown type: ' + e); + return { type: e, name: n }; + }); + } + function pe(e, t) { + for (var n, r = 0, o = e.length; r < o; ++r) + if ((n = e[r]).name === t) return n.value; + } + function he(e, t, n) { + for (var r = 0, o = e.length; r < o; ++r) + if (e[r].name === t) { + (e[r] = ue), (e = e.slice(0, r).concat(e.slice(r + 1))); + break; } - }), - y(x, 'defaultProps', { - autoSize: !0, - cols: 12, - className: '', - style: {}, - draggableHandle: '', - draggableCancel: '', - containerPadding: null, - rowHeight: 150, - maxRows: 1 / 0, - layout: [], - margin: [10, 10], - isDraggable: !0, - isResizable: !0, - isDroppable: !1, - useCSSTransforms: !0, - transformScale: 1, - verticalCompact: !0, - compactType: 'vertical', - preventCollision: !1, - droppingItem: { i: '__dropping-elem__', h: 1, w: 1 }, - onLayoutChange: s.noop, - onDragStart: s.noop, - onDrag: s.noop, - onDragStop: s.noop, - onResizeStart: s.noop, - onResize: s.noop, - onResizeStop: s.noop, - onDrop: s.noop - }); - }, - function(e, t, n) { - var r, o; - window, - (e.exports = - ((r = n(4)), - (o = n(0)), - (function(e) { - var t = {}; - function n(r) { - if (t[r]) return t[r].exports; - var o = (t[r] = { i: r, l: !1, exports: {} }); - return ( - e[r].call(o.exports, o, o.exports, n), (o.l = !0), o.exports - ); - } + return null != n && e.push({ name: t, value: n }), e; + } + fe.prototype = le.prototype = { + constructor: fe, + on: function(e, t) { + var n, + r = this._, + o = de(e + '', r), + i = -1, + a = o.length; + if (!(arguments.length < 2)) { + if (null != t && 'function' != typeof t) + throw new Error('invalid callback: ' + t); + for (; ++i < a; ) + if ((n = (e = o[i]).type)) r[n] = he(r[n], e.name, t); + else if (null == t) for (n in r) r[n] = he(r[n], e.name, null); + return this; + } + for (; ++i < a; ) + if ((n = (e = o[i]).type) && (n = pe(r[n], e.name))) return n; + }, + copy: function() { + var e = {}, + t = this._; + for (var n in t) e[n] = t[n].slice(); + return new fe(e); + }, + call: function(e, t) { + if ((n = arguments.length - 2) > 0) + for (var n, r, o = new Array(n), i = 0; i < n; ++i) + o[i] = arguments[i + 2]; + if (!this._.hasOwnProperty(e)) throw new Error('unknown type: ' + e); + for (i = 0, n = (r = this._[e]).length; i < n; ++i) + r[i].value.apply(t, o); + }, + apply: function(e, t, n) { + if (!this._.hasOwnProperty(e)) throw new Error('unknown type: ' + e); + for (var r = this._[e], o = 0, i = r.length; o < i; ++o) + r[o].value.apply(t, n); + } + }; + var ge = le; + function me() {} + var be = function(e) { + return null == e + ? me + : function() { + return this.querySelector(e); + }; + }; + function ye() { + return []; + } + var ve = function(e) { + return null == e + ? ye + : function() { + return this.querySelectorAll(e); + }; + }, + _e = function(e) { + return function() { + return this.matches(e); + }; + }, + we = function(e) { + return new Array(e.length); + }; + function xe(e, t) { + (this.ownerDocument = e.ownerDocument), + (this.namespaceURI = e.namespaceURI), + (this._next = null), + (this._parent = e), + (this.__data__ = t); + } + xe.prototype = { + constructor: xe, + appendChild: function(e) { + return this._parent.insertBefore(e, this._next); + }, + insertBefore: function(e, t) { + return this._parent.insertBefore(e, t); + }, + querySelector: function(e) { + return this._parent.querySelector(e); + }, + querySelectorAll: function(e) { + return this._parent.querySelectorAll(e); + } + }; + var Me = '$'; + function ke(e, t, n, r, o, i) { + for (var a, s = 0, c = t.length, u = i.length; s < u; ++s) + (a = t[s]) + ? ((a.__data__ = i[s]), (r[s] = a)) + : (n[s] = new xe(e, i[s])); + for (; s < c; ++s) (a = t[s]) && (o[s] = a); + } + function Se(e, t, n, r, o, i, a) { + var s, + c, + u, + l = {}, + f = t.length, + d = i.length, + p = new Array(f); + for (s = 0; s < f; ++s) + (c = t[s]) && + ((p[s] = u = Me + a.call(c, c.__data__, s, t)), + u in l ? (o[s] = c) : (l[u] = c)); + for (s = 0; s < d; ++s) + (c = l[(u = Me + a.call(e, i[s], s, i))]) + ? ((r[s] = c), (c.__data__ = i[s]), (l[u] = null)) + : (n[s] = new xe(e, i[s])); + for (s = 0; s < f; ++s) (c = t[s]) && l[p[s]] === c && (o[s] = c); + } + function Oe(e, t) { + return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN; + } + var Ee = 'http://www.w3.org/1999/xhtml', + Ae = { + svg: 'http://www.w3.org/2000/svg', + xhtml: Ee, + xlink: 'http://www.w3.org/1999/xlink', + xml: 'http://www.w3.org/XML/1998/namespace', + xmlns: 'http://www.w3.org/2000/xmlns/' + }, + Te = function(e) { + var t = (e += ''), + n = t.indexOf(':'); + return ( + n >= 0 && 'xmlns' !== (t = e.slice(0, n)) && (e = e.slice(n + 1)), + Ae.hasOwnProperty(t) ? { space: Ae[t], local: e } : e + ); + }; + function Ce(e) { + return function() { + this.removeAttribute(e); + }; + } + function Le(e) { + return function() { + this.removeAttributeNS(e.space, e.local); + }; + } + function Pe(e, t) { + return function() { + this.setAttribute(e, t); + }; + } + function De(e, t) { + return function() { + this.setAttributeNS(e.space, e.local, t); + }; + } + function je(e, t) { + return function() { + var n = t.apply(this, arguments); + null == n ? this.removeAttribute(e) : this.setAttribute(e, n); + }; + } + function ze(e, t) { + return function() { + var n = t.apply(this, arguments); + null == n + ? this.removeAttributeNS(e.space, e.local) + : this.setAttributeNS(e.space, e.local, n); + }; + } + var Ne = function(e) { + return ( + (e.ownerDocument && e.ownerDocument.defaultView) || + (e.document && e) || + e.defaultView + ); + }; + function Re(e) { + return function() { + this.style.removeProperty(e); + }; + } + function Ie(e, t, n) { + return function() { + this.style.setProperty(e, t, n); + }; + } + function Fe(e, t, n) { + return function() { + var r = t.apply(this, arguments); + null == r + ? this.style.removeProperty(e) + : this.style.setProperty(e, r, n); + }; + } + function qe(e, t) { + return ( + e.style.getPropertyValue(t) || + Ne(e) + .getComputedStyle(e, null) + .getPropertyValue(t) + ); + } + function Be(e) { + return function() { + delete this[e]; + }; + } + function He(e, t) { + return function() { + this[e] = t; + }; + } + function Ye(e, t) { + return function() { + var n = t.apply(this, arguments); + null == n ? delete this[e] : (this[e] = n); + }; + } + function We(e) { + return e.trim().split(/^|\s+/); + } + function Ve(e) { + return e.classList || new Ue(e); + } + function Ue(e) { + (this._node = e), (this._names = We(e.getAttribute('class') || '')); + } + function Xe(e, t) { + for (var n = Ve(e), r = -1, o = t.length; ++r < o; ) n.add(t[r]); + } + function Ge(e, t) { + for (var n = Ve(e), r = -1, o = t.length; ++r < o; ) n.remove(t[r]); + } + function Ke(e) { + return function() { + Xe(this, e); + }; + } + function $e(e) { + return function() { + Ge(this, e); + }; + } + function Qe(e, t) { + return function() { + (t.apply(this, arguments) ? Xe : Ge)(this, e); + }; + } + Ue.prototype = { + add: function(e) { + this._names.indexOf(e) < 0 && + (this._names.push(e), + this._node.setAttribute('class', this._names.join(' '))); + }, + remove: function(e) { + var t = this._names.indexOf(e); + t >= 0 && + (this._names.splice(t, 1), + this._node.setAttribute('class', this._names.join(' '))); + }, + contains: function(e) { + return this._names.indexOf(e) >= 0; + } + }; + function Je() { + this.textContent = ''; + } + function Ze(e) { + return function() { + this.textContent = e; + }; + } + function et(e) { + return function() { + var t = e.apply(this, arguments); + this.textContent = null == t ? '' : t; + }; + } + function tt() { + this.innerHTML = ''; + } + function nt(e) { + return function() { + this.innerHTML = e; + }; + } + function rt(e) { + return function() { + var t = e.apply(this, arguments); + this.innerHTML = null == t ? '' : t; + }; + } + function ot() { + this.nextSibling && this.parentNode.appendChild(this); + } + function it() { + this.previousSibling && + this.parentNode.insertBefore(this, this.parentNode.firstChild); + } + function at(e) { + return function() { + var t = this.ownerDocument, + n = this.namespaceURI; + return n === Ee && t.documentElement.namespaceURI === Ee + ? t.createElement(e) + : t.createElementNS(n, e); + }; + } + function st(e) { + return function() { + return this.ownerDocument.createElementNS(e.space, e.local); + }; + } + var ct = function(e) { + var t = Te(e); + return (t.local ? st : at)(t); + }; + function ut() { + return null; + } + function lt() { + var e = this.parentNode; + e && e.removeChild(this); + } + function ft() { + var e = this.cloneNode(!1), + t = this.parentNode; + return t ? t.insertBefore(e, this.nextSibling) : e; + } + function dt() { + var e = this.cloneNode(!0), + t = this.parentNode; + return t ? t.insertBefore(e, this.nextSibling) : e; + } + var pt = {}, + ht = null; + 'undefined' != typeof document && + ('onmouseenter' in document.documentElement || + (pt = { mouseenter: 'mouseover', mouseleave: 'mouseout' })); + function gt(e, t, n) { + return ( + (e = mt(e, t, n)), + function(t) { + var n = t.relatedTarget; + (n && (n === this || 8 & n.compareDocumentPosition(this))) || + e.call(this, t); + } + ); + } + function mt(e, t, n) { + return function(r) { + var o = ht; + ht = r; + try { + e.call(this, this.__data__, t, n); + } finally { + ht = o; + } + }; + } + function bt(e) { + return e + .trim() + .split(/^|\s+/) + .map(function(e) { + var t = '', + n = e.indexOf('.'); return ( - (n.m = e), - (n.c = t), - (n.d = function(e, t, r) { - n.o(e, t) || - Object.defineProperty(e, t, { enumerable: !0, get: r }); - }), - (n.r = function(e) { - 'undefined' != typeof Symbol && - Symbol.toStringTag && - Object.defineProperty(e, Symbol.toStringTag, { - value: 'Module' - }), - Object.defineProperty(e, '__esModule', { value: !0 }); - }), - (n.t = function(e, t) { - if ((1 & t && (e = n(e)), 8 & t)) return e; - if (4 & t && 'object' == typeof e && e && e.__esModule) - return e; - var r = Object.create(null); - if ( - (n.r(r), - Object.defineProperty(r, 'default', { - enumerable: !0, - value: e - }), - 2 & t && 'string' != typeof e) - ) - for (var o in e) - n.d( - r, - o, - function(t) { - return e[t]; - }.bind(null, o) - ); - return r; - }), - (n.n = function(e) { - var t = - e && e.__esModule - ? function() { - return e.default; - } - : function() { - return e; - }; - return n.d(t, 'a', t), t; - }), - (n.o = function(e, t) { - return Object.prototype.hasOwnProperty.call(e, t); - }), - (n.p = ''), - n((n.s = 4)) + n >= 0 && ((t = e.slice(n + 1)), (e = e.slice(0, n))), + { type: e, name: t } ); - })([ - function(e, t, n) { - e.exports = n(5)(); - }, - function(e, t) { - e.exports = r; - }, - function(e, t) { - e.exports = o; - }, - function(e, t, n) { - var r; - !(function() { - 'use strict'; - var n = {}.hasOwnProperty; - function o() { - for (var e = [], t = 0; t < arguments.length; t++) { - var r = arguments[t]; - if (r) { - var i = typeof r; - if ('string' === i || 'number' === i) e.push(r); - else if (Array.isArray(r) && r.length) { - var a = o.apply(null, r); - a && e.push(a); - } else if ('object' === i) - for (var s in r) n.call(r, s) && r[s] && e.push(s); - } - } - return e.join(' '); - } - e.exports - ? ((o.default = o), (e.exports = o)) - : void 0 === - (r = function() { - return o; - }.apply(t, [])) || (e.exports = r); - })(); - }, - function(e, t, n) { - var r = n(7), - o = r.default, - i = r.DraggableCore; - (e.exports = o), - (e.exports.default = o), - (e.exports.DraggableCore = i); - }, - function(e, t, n) { - 'use strict'; - var r = n(6); - function o() {} - function i() {} - (i.resetWarningCache = o), - (e.exports = function() { - function e(e, t, n, o, i, a) { - if (a !== r) { - var s = 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 ((s.name = 'Invariant Violation'), s); - } - } - function t() { - return e; - } - e.isRequired = e; - var n = { - array: e, - bool: e, - func: e, - number: e, - object: e, - string: e, - symbol: e, - any: e, - arrayOf: t, - element: e, - elementType: e, - instanceOf: t, - node: e, - objectOf: t, - oneOf: t, - oneOfType: t, - shape: t, - exact: t, - checkPropTypes: i, - resetWarningCache: o - }; - return (n.PropTypes = n), n; - }); - }, - function(e, t, n) { - 'use strict'; - e.exports = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; - }, - function(e, t, n) { - 'use strict'; - n.r(t), - n.d(t, 'default', function() { - return me; - }), - n.d(t, 'DraggableCore', function() { - return ne; - }); - var r = n(2), - o = n.n(r), - i = n(0), - a = n.n(i), - s = n(1), - c = n.n(s), - u = n(3), - l = n.n(u); - function f(e, t) { - for (var n = 0, r = e.length; n < r; n++) - if (t.apply(t, [e[n], n, e])) return e[n]; - } - function d(e) { + }); + } + function yt(e) { + return function() { + var t = this.__on; + if (t) { + for (var n, r = 0, o = -1, i = t.length; r < i; ++r) + (n = t[r]), + (e.type && n.type !== e.type) || n.name !== e.name + ? (t[++o] = n) + : this.removeEventListener(n.type, n.listener, n.capture); + ++o ? (t.length = o) : delete this.__on; + } + }; + } + function vt(e, t, n) { + var r = pt.hasOwnProperty(e.type) ? gt : mt; + return function(o, i, a) { + var s, + c = this.__on, + u = r(t, i, a); + if (c) + for (var l = 0, f = c.length; l < f; ++l) + if ((s = c[l]).type === e.type && s.name === e.name) return ( - 'function' == typeof e || - '[object Function]' === Object.prototype.toString.call(e) + this.removeEventListener(s.type, s.listener, s.capture), + this.addEventListener( + s.type, + (s.listener = u), + (s.capture = n) + ), + void (s.value = t) ); + this.addEventListener(e.type, u, n), + (s = { + type: e.type, + name: e.name, + value: t, + listener: u, + capture: n + }), + c ? c.push(s) : (this.__on = [s]); + }; + } + function _t(e, t, n, r) { + var o = ht; + (e.sourceEvent = ht), (ht = e); + try { + return t.apply(n, r); + } finally { + ht = o; + } + } + function wt(e, t, n) { + var r = Ne(e), + o = r.CustomEvent; + 'function' == typeof o + ? (o = new o(t, n)) + : ((o = r.document.createEvent('Event')), + n + ? (o.initEvent(t, n.bubbles, n.cancelable), (o.detail = n.detail)) + : o.initEvent(t, !1, !1)), + e.dispatchEvent(o); + } + function xt(e, t) { + return function() { + return wt(this, e, t); + }; + } + function Mt(e, t) { + return function() { + return wt(this, e, t.apply(this, arguments)); + }; + } + var kt = [null]; + function St(e, t) { + (this._groups = e), (this._parents = t); + } + function Ot() { + return new St([[document.documentElement]], kt); + } + St.prototype = Ot.prototype = { + constructor: St, + select: function(e) { + 'function' != typeof e && (e = be(e)); + for ( + var t = this._groups, n = t.length, r = new Array(n), o = 0; + o < n; + ++o + ) + for ( + var i, + a, + s = t[o], + c = s.length, + u = (r[o] = new Array(c)), + l = 0; + l < c; + ++l + ) + (i = s[l]) && + (a = e.call(i, i.__data__, l, s)) && + ('__data__' in i && (a.__data__ = i.__data__), (u[l] = a)); + return new St(r, this._parents); + }, + selectAll: function(e) { + 'function' != typeof e && (e = ve(e)); + for ( + var t = this._groups, n = t.length, r = [], o = [], i = 0; + i < n; + ++i + ) + for (var a, s = t[i], c = s.length, u = 0; u < c; ++u) + (a = s[u]) && (r.push(e.call(a, a.__data__, u, s)), o.push(a)); + return new St(r, o); + }, + filter: function(e) { + 'function' != typeof e && (e = _e(e)); + for ( + var t = this._groups, n = t.length, r = new Array(n), o = 0; + o < n; + ++o + ) + for ( + var i, a = t[o], s = a.length, c = (r[o] = []), u = 0; + u < s; + ++u + ) + (i = a[u]) && e.call(i, i.__data__, u, a) && c.push(i); + return new St(r, this._parents); + }, + data: function(e, t) { + if (!e) + return ( + (h = new Array(this.size())), + (l = -1), + this.each(function(e) { + h[++l] = e; + }), + h + ); + var n, + r = t ? Se : ke, + o = this._parents, + i = this._groups; + 'function' != typeof e && + ((n = e), + (e = function() { + return n; + })); + for ( + var a = i.length, + s = new Array(a), + c = new Array(a), + u = new Array(a), + l = 0; + l < a; + ++l + ) { + var f = o[l], + d = i[l], + p = d.length, + h = e.call(f, f && f.__data__, l, o), + g = h.length, + m = (c[l] = new Array(g)), + b = (s[l] = new Array(g)); + r(f, d, m, b, (u[l] = new Array(p)), h, t); + for (var y, v, _ = 0, w = 0; _ < g; ++_) + if ((y = m[_])) { + for (_ >= w && (w = _ + 1); !(v = b[w]) && ++w < g; ); + y._next = v || null; } - function p(e) { - return 'number' == typeof e && !isNaN(e); - } - function h(e) { - return parseInt(e, 10); - } - function g(e, t, n) { - if (e[t]) - return new Error( - 'Invalid prop ' - .concat(t, ' passed to ') - .concat(n, ' - do not set this, set it on the child.') - ); - } - var m = ['Moz', 'Webkit', 'O', 'ms']; - function b(e, t) { - return t - ? ''.concat(t).concat( - (function(e) { - for (var t = '', n = !0, r = 0; r < e.length; r++) - n - ? ((t += e[r].toUpperCase()), (n = !1)) - : '-' === e[r] - ? (n = !0) - : (t += e[r]); - return t; - })(e) - ) - : e; - } - var y = (function() { - var e = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : 'transform'; - if ('undefined' == typeof window || void 0 === window.document) - return ''; - var t = window.document.documentElement.style; - if (e in t) return ''; - for (var n = 0; n < m.length; n++) - if (b(e, m[n]) in t) return m[n]; - return ''; - })(); - function v(e, t) { - var n = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var r = Object.getOwnPropertySymbols(e); - t && - (r = r.filter(function(t) { - return Object.getOwnPropertyDescriptor(e, t).enumerable; - })), - n.push.apply(n, r); - } - return n; - } - function _(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}; - t % 2 - ? v(Object(n), !0).forEach(function(t) { - x(e, t, n[t]); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties( - e, - Object.getOwnPropertyDescriptors(n) - ) - : v(Object(n)).forEach(function(t) { - Object.defineProperty( - e, - t, - Object.getOwnPropertyDescriptor(n, t) - ); - }); - } - return e; - } - function x(e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e - ); - } - var w = ''; - function M(e, t) { - return ( - w || - (w = f( - [ - 'matches', - 'webkitMatchesSelector', - 'mozMatchesSelector', - 'msMatchesSelector', - 'oMatchesSelector' - ], - function(t) { - return d(e[t]); + } + return ((s = new St(s, o))._enter = c), (s._exit = u), s; + }, + enter: function() { + return new St(this._enter || this._groups.map(we), this._parents); + }, + exit: function() { + return new St(this._exit || this._groups.map(we), this._parents); + }, + join: function(e, t, n) { + var r = this.enter(), + o = this, + i = this.exit(); + return ( + (r = 'function' == typeof e ? e(r) : r.append(e + '')), + null != t && (o = t(o)), + null == n ? i.remove() : n(i), + r && o ? r.merge(o).order() : o + ); + }, + merge: function(e) { + for ( + var t = this._groups, + n = e._groups, + r = t.length, + o = n.length, + i = Math.min(r, o), + a = new Array(r), + s = 0; + s < i; + ++s + ) + for ( + var c, + u = t[s], + l = n[s], + f = u.length, + d = (a[s] = new Array(f)), + p = 0; + p < f; + ++p + ) + (c = u[p] || l[p]) && (d[p] = c); + for (; s < r; ++s) a[s] = t[s]; + return new St(a, this._parents); + }, + order: function() { + for (var e = this._groups, t = -1, n = e.length; ++t < n; ) + for (var r, o = e[t], i = o.length - 1, a = o[i]; --i >= 0; ) + (r = o[i]) && + (a && + 4 ^ r.compareDocumentPosition(a) && + a.parentNode.insertBefore(r, a), + (a = r)); + return this; + }, + sort: function(e) { + function t(t, n) { + return t && n ? e(t.__data__, n.__data__) : !t - !n; + } + e || (e = Oe); + for ( + var n = this._groups, r = n.length, o = new Array(r), i = 0; + i < r; + ++i + ) { + for ( + var a, s = n[i], c = s.length, u = (o[i] = new Array(c)), l = 0; + l < c; + ++l + ) + (a = s[l]) && (u[l] = a); + u.sort(t); + } + return new St(o, this._parents).order(); + }, + call: function() { + var e = arguments[0]; + return (arguments[0] = this), e.apply(null, arguments), this; + }, + nodes: function() { + var e = new Array(this.size()), + t = -1; + return ( + this.each(function() { + e[++t] = this; + }), + e + ); + }, + node: function() { + for (var e = this._groups, t = 0, n = e.length; t < n; ++t) + for (var r = e[t], o = 0, i = r.length; o < i; ++o) { + var a = r[o]; + if (a) return a; + } + return null; + }, + size: function() { + var e = 0; + return ( + this.each(function() { + ++e; + }), + e + ); + }, + empty: function() { + return !this.node(); + }, + each: function(e) { + for (var t = this._groups, n = 0, r = t.length; n < r; ++n) + for (var o, i = t[n], a = 0, s = i.length; a < s; ++a) + (o = i[a]) && e.call(o, o.__data__, a, i); + return this; + }, + attr: function(e, t) { + var n = Te(e); + if (arguments.length < 2) { + var r = this.node(); + return n.local + ? r.getAttributeNS(n.space, n.local) + : r.getAttribute(n); + } + return this.each( + (null == t + ? n.local + ? Le + : Ce + : 'function' == typeof t + ? n.local + ? ze + : je + : n.local + ? De + : Pe)(n, t) + ); + }, + style: function(e, t, n) { + return arguments.length > 1 + ? this.each( + (null == t ? Re : 'function' == typeof t ? Fe : Ie)( + e, + t, + null == n ? '' : n + ) + ) + : qe(this.node(), e); + }, + property: function(e, t) { + return arguments.length > 1 + ? this.each( + (null == t ? Be : 'function' == typeof t ? Ye : He)(e, t) + ) + : this.node()[e]; + }, + classed: function(e, t) { + var n = We(e + ''); + if (arguments.length < 2) { + for (var r = Ve(this.node()), o = -1, i = n.length; ++o < i; ) + if (!r.contains(n[o])) return !1; + return !0; + } + return this.each(('function' == typeof t ? Qe : t ? Ke : $e)(n, t)); + }, + text: function(e) { + return arguments.length + ? this.each(null == e ? Je : ('function' == typeof e ? et : Ze)(e)) + : this.node().textContent; + }, + html: function(e) { + return arguments.length + ? this.each(null == e ? tt : ('function' == typeof e ? rt : nt)(e)) + : this.node().innerHTML; + }, + raise: function() { + return this.each(ot); + }, + lower: function() { + return this.each(it); + }, + append: function(e) { + var t = 'function' == typeof e ? e : ct(e); + return this.select(function() { + return this.appendChild(t.apply(this, arguments)); + }); + }, + insert: function(e, t) { + var n = 'function' == typeof e ? e : ct(e), + r = null == t ? ut : 'function' == typeof t ? t : be(t); + return this.select(function() { + return this.insertBefore( + n.apply(this, arguments), + r.apply(this, arguments) || null + ); + }); + }, + remove: function() { + return this.each(lt); + }, + clone: function(e) { + return this.select(e ? dt : ft); + }, + datum: function(e) { + return arguments.length + ? this.property('__data__', e) + : this.node().__data__; + }, + on: function(e, t, n) { + var r, + o, + i = bt(e + ''), + a = i.length; + if (!(arguments.length < 2)) { + for (s = t ? vt : yt, null == n && (n = !1), r = 0; r < a; ++r) + this.each(s(i[r], t, n)); + return this; + } + var s = this.node().__on; + if (s) + for (var c, u = 0, l = s.length; u < l; ++u) + for (r = 0, c = s[u]; r < a; ++r) + if ((o = i[r]).type === c.type && o.name === c.name) + return c.value; + }, + dispatch: function(e, t) { + return this.each(('function' == typeof t ? Mt : xt)(e, t)); + } + }; + var Et = Ot, + At = function(e) { + return 'string' == typeof e + ? new St([[document.querySelector(e)]], [document.documentElement]) + : new St([[e]], kt); + }; + function Tt() { + ht.stopImmediatePropagation(); + } + var Ct = function() { + ht.preventDefault(), ht.stopImmediatePropagation(); + }, + Lt = function(e) { + var t = e.document.documentElement, + n = At(e).on('dragstart.drag', Ct, !0); + 'onselectstart' in t + ? n.on('selectstart.drag', Ct, !0) + : ((t.__noselect = t.style.MozUserSelect), + (t.style.MozUserSelect = 'none')); + }; + function Pt(e, t) { + var n = e.document.documentElement, + r = At(e).on('dragstart.drag', null); + t && + (r.on('click.drag', Ct, !0), + setTimeout(function() { + r.on('click.drag', null); + }, 0)), + 'onselectstart' in n + ? r.on('selectstart.drag', null) + : ((n.style.MozUserSelect = n.__noselect), delete n.__noselect); + } + var Dt = function(e, t, n) { + (e.prototype = t.prototype = n), (n.constructor = e); + }; + function jt(e, t) { + var n = Object.create(e.prototype); + for (var r in t) n[r] = t[r]; + return n; + } + function zt() {} + var Nt = '\\s*([+-]?\\d+)\\s*', + Rt = '\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*', + It = '\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*', + Ft = /^#([0-9a-f]{3,8})$/, + qt = new RegExp('^rgb\\(' + [Nt, Nt, Nt] + '\\)$'), + Bt = new RegExp('^rgb\\(' + [It, It, It] + '\\)$'), + Ht = new RegExp('^rgba\\(' + [Nt, Nt, Nt, Rt] + '\\)$'), + Yt = new RegExp('^rgba\\(' + [It, It, It, Rt] + '\\)$'), + Wt = new RegExp('^hsl\\(' + [Rt, It, It] + '\\)$'), + Vt = new RegExp('^hsla\\(' + [Rt, It, It, Rt] + '\\)$'), + Ut = { + 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 Xt() { + return this.rgb().formatHex(); + } + function Gt() { + return this.rgb().formatRgb(); + } + function Kt(e) { + var t, n; + return ( + (e = (e + '').trim().toLowerCase()), + (t = Ft.exec(e)) + ? ((n = t[1].length), + (t = parseInt(t[1], 16)), + 6 === n + ? $t(t) + : 3 === n + ? new en( + ((t >> 8) & 15) | ((t >> 4) & 240), + ((t >> 4) & 15) | (240 & t), + ((15 & t) << 4) | (15 & t), + 1 + ) + : 8 === n + ? new en( + (t >> 24) & 255, + (t >> 16) & 255, + (t >> 8) & 255, + (255 & t) / 255 + ) + : 4 === n + ? new en( + ((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 = qt.exec(e)) + ? new en(t[1], t[2], t[3], 1) + : (t = Bt.exec(e)) + ? new en( + (255 * t[1]) / 100, + (255 * t[2]) / 100, + (255 * t[3]) / 100, + 1 + ) + : (t = Ht.exec(e)) + ? Qt(t[1], t[2], t[3], t[4]) + : (t = Yt.exec(e)) + ? Qt( + (255 * t[1]) / 100, + (255 * t[2]) / 100, + (255 * t[3]) / 100, + t[4] + ) + : (t = Wt.exec(e)) + ? on(t[1], t[2] / 100, t[3] / 100, 1) + : (t = Vt.exec(e)) + ? on(t[1], t[2] / 100, t[3] / 100, t[4]) + : Ut.hasOwnProperty(e) + ? $t(Ut[e]) + : 'transparent' === e + ? new en(NaN, NaN, NaN, 0) + : null + ); + } + function $t(e) { + return new en((e >> 16) & 255, (e >> 8) & 255, 255 & e, 1); + } + function Qt(e, t, n, r) { + return r <= 0 && (e = t = n = NaN), new en(e, t, n, r); + } + function Jt(e) { + return ( + e instanceof zt || (e = Kt(e)), + e ? new en((e = e.rgb()).r, e.g, e.b, e.opacity) : new en() + ); + } + function Zt(e, t, n, r) { + return 1 === arguments.length + ? Jt(e) + : new en(e, t, n, null == r ? 1 : r); + } + function en(e, t, n, r) { + (this.r = +e), (this.g = +t), (this.b = +n), (this.opacity = +r); + } + function tn() { + return '#' + rn(this.r) + rn(this.g) + rn(this.b); + } + function nn() { + 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 rn(e) { + return ( + ((e = Math.max(0, Math.min(255, Math.round(e) || 0))) < 16 + ? '0' + : '') + e.toString(16) + ); + } + function on(e, t, n, r) { + return ( + r <= 0 + ? (e = t = n = NaN) + : n <= 0 || n >= 1 + ? (e = t = NaN) + : t <= 0 && (e = NaN), + new cn(e, t, n, r) + ); + } + function an(e) { + if (e instanceof cn) return new cn(e.h, e.s, e.l, e.opacity); + if ((e instanceof zt || (e = Kt(e)), !e)) return new cn(); + if (e instanceof cn) return e; + var t = (e = e.rgb()).r / 255, + n = e.g / 255, + r = e.b / 255, + o = Math.min(t, n, r), + i = Math.max(t, n, r), + a = NaN, + s = i - o, + c = (i + o) / 2; + return ( + s + ? ((a = + t === i + ? (n - r) / s + 6 * (n < r) + : n === i + ? (r - t) / s + 2 + : (t - n) / s + 4), + (s /= c < 0.5 ? i + o : 2 - i - o), + (a *= 60)) + : (s = c > 0 && c < 1 ? 0 : a), + new cn(a, s, c, e.opacity) + ); + } + function sn(e, t, n, r) { + return 1 === arguments.length + ? an(e) + : new cn(e, t, n, null == r ? 1 : r); + } + function cn(e, t, n, r) { + (this.h = +e), (this.s = +t), (this.l = +n), (this.opacity = +r); + } + function un(e, t, n) { + return ( + 255 * + (e < 60 + ? t + ((n - t) * e) / 60 + : e < 180 + ? n + : e < 240 + ? t + ((n - t) * (240 - e)) / 60 + : t) + ); + } + function ln(e, t, n, r, o) { + var i = e * e, + a = i * e; + return ( + ((1 - 3 * e + 3 * i - a) * t + + (4 - 6 * i + 3 * a) * n + + (1 + 3 * e + 3 * i - 3 * a) * r + + a * o) / + 6 + ); + } + Dt(zt, Kt, { + copy: function(e) { + return Object.assign(new this.constructor(), this, e); + }, + displayable: function() { + return this.rgb().displayable(); + }, + hex: Xt, + formatHex: Xt, + formatHsl: function() { + return an(this).formatHsl(); + }, + formatRgb: Gt, + toString: Gt + }), + Dt( + en, + Zt, + jt(zt, { + brighter: function(e) { + return ( + (e = null == e ? 1 / 0.7 : Math.pow(1 / 0.7, e)), + new en(this.r * e, this.g * e, this.b * e, this.opacity) + ); + }, + darker: function(e) { + return ( + (e = null == e ? 0.7 : Math.pow(0.7, e)), + new en(this.r * e, this.g * e, this.b * e, this.opacity) + ); + }, + rgb: function() { + return this; + }, + displayable: function() { + return ( + -0.5 <= this.r && + this.r < 255.5 && + -0.5 <= this.g && + this.g < 255.5 && + -0.5 <= this.b && + this.b < 255.5 && + 0 <= this.opacity && + this.opacity <= 1 + ); + }, + hex: tn, + formatHex: tn, + formatRgb: nn, + toString: nn + }) + ), + Dt( + cn, + sn, + jt(zt, { + brighter: function(e) { + return ( + (e = null == e ? 1 / 0.7 : Math.pow(1 / 0.7, e)), + new cn(this.h, this.s, this.l * e, this.opacity) + ); + }, + darker: function(e) { + return ( + (e = null == e ? 0.7 : Math.pow(0.7, e)), + new cn(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 < 0.5 ? n : 1 - n) * t, + o = 2 * n - r; + return new en( + un(e >= 240 ? e - 240 : e + 120, o, r), + un(e, o, r), + un(e < 120 ? e + 240 : e - 120, o, r), + this.opacity + ); + }, + displayable: function() { + return ( + ((0 <= this.s && this.s <= 1) || isNaN(this.s)) && + 0 <= this.l && + this.l <= 1 && + 0 <= this.opacity && + this.opacity <= 1 + ); + }, + formatHsl: function() { + var e = this.opacity; + return ( + (1 === (e = isNaN(e) ? 1 : Math.max(0, Math.min(1, e))) + ? 'hsl(' + : 'hsla(') + + (this.h || 0) + + ', ' + + 100 * (this.s || 0) + + '%, ' + + 100 * (this.l || 0) + + '%' + + (1 === e ? ')' : ', ' + e + ')') + ); + } + }) + ); + var fn = 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), + o = e[r], + i = e[r + 1], + a = r > 0 ? e[r - 1] : 2 * o - i, + s = r < t - 1 ? e[r + 2] : 2 * i - o; + return ln((n - r / t) * t, a, o, i, s); + }; + }, + dn = function(e) { + var t = e.length; + return function(n) { + var r = Math.floor(((n %= 1) < 0 ? ++n : n) * t), + o = e[(r + t - 1) % t], + i = e[r % t], + a = e[(r + 1) % t], + s = e[(r + 2) % t]; + return ln((n - r / t) * t, o, i, a, s); + }; + }, + pn = function(e) { + return function() { + return e; + }; + }; + function hn(e, t) { + return function(n) { + return e + n * t; + }; + } + function gn(e, t) { + var n = t - e; + return n + ? hn(e, n > 180 || n < -180 ? n - 360 * Math.round(n / 360) : n) + : pn(isNaN(e) ? t : e); + } + function mn(e) { + return 1 == (e = +e) + ? bn + : 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); } - )), - !!d(e[w]) && e[w](t) - ); - } - function k(e, t, n) { - var r = e; - do { - if (M(r, t)) return !0; - if (r === n) return !1; - r = r.parentNode; - } while (r); - return !1; - } - function S(e, t, n, r) { - if (e) { - var o = _({ capture: !0 }, r); - e.addEventListener - ? e.addEventListener(t, n, o) - : e.attachEvent - ? e.attachEvent('on' + t, n) - : (e['on' + t] = n); - } - } - function A(e, t, n, r) { - if (e) { - var o = _({ capture: !0 }, r); - e.removeEventListener - ? e.removeEventListener(t, n, o) - : e.detachEvent - ? e.detachEvent('on' + t, n) - : (e['on' + t] = null); + ); + })(t, n, e) + : pn(isNaN(t) ? n : t); + }; + } + function bn(e, t) { + var n = t - e; + return n ? hn(e, n) : pn(isNaN(e) ? t : e); + } + var yn = (function e(t) { + var n = mn(t); + function r(e, t) { + var r = n((e = Zt(e)).r, (t = Zt(t)).r), + o = n(e.g, t.g), + i = n(e.b, t.b), + a = bn(e.opacity, t.opacity); + return function(t) { + return ( + (e.r = r(t)), + (e.g = o(t)), + (e.b = i(t)), + (e.opacity = a(t)), + e + '' + ); + }; + } + return (r.gamma = e), r; + })(1); + function vn(e) { + return function(t) { + var n, + r, + o = t.length, + i = new Array(o), + a = new Array(o), + s = new Array(o); + for (n = 0; n < o; ++n) + (r = Zt(t[n])), + (i[n] = r.r || 0), + (a[n] = r.g || 0), + (s[n] = r.b || 0); + return ( + (i = e(i)), + (a = e(a)), + (s = e(s)), + (r.opacity = 1), + function(e) { + return (r.r = i(e)), (r.g = a(e)), (r.b = s(e)), r + ''; + } + ); + }; + } + var _n = vn(fn), + wn = vn(dn), + xn = function(e, t) { + t || (t = []); + var n, + r = e ? Math.min(t.length, e.length) : 0, + o = t.slice(); + return function(i) { + for (n = 0; n < r; ++n) o[n] = e[n] * (1 - i) + t[n] * i; + return o; + }; + }; + function Mn(e) { + return ArrayBuffer.isView(e) && !(e instanceof DataView); + } + var kn = function(e, t) { + return (Mn(t) ? xn : Sn)(e, t); + }; + function Sn(e, t) { + var n, + r = t ? t.length : 0, + o = e ? Math.min(r, e.length) : 0, + i = new Array(o), + a = new Array(r); + for (n = 0; n < o; ++n) i[n] = jn(e[n], t[n]); + for (; n < r; ++n) a[n] = t[n]; + return function(e) { + for (n = 0; n < o; ++n) a[n] = i[n](e); + return a; + }; + } + var On = function(e, t) { + var n = new Date(); + return ( + (e = +e), + (t = +t), + function(r) { + return n.setTime(e * (1 - r) + t * r), n; + } + ); + }, + En = function(e, t) { + return ( + (e = +e), + (t = +t), + function(n) { + return e * (1 - n) + t * n; + } + ); + }, + An = function(e, t) { + var n, + r = {}, + o = {}; + for (n in ((null !== e && 'object' == typeof e) || (e = {}), + (null !== t && 'object' == typeof t) || (t = {}), + t)) + n in e ? (r[n] = jn(e[n], t[n])) : (o[n] = t[n]); + return function(e) { + for (n in r) o[n] = r[n](e); + return o; + }; + }, + Tn = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, + Cn = new RegExp(Tn.source, 'g'); + var Ln, + Pn, + Dn = function(e, t) { + var n, + r, + o, + i = (Tn.lastIndex = Cn.lastIndex = 0), + a = -1, + s = [], + c = []; + for (e += '', t += ''; (n = Tn.exec(e)) && (r = Cn.exec(t)); ) + (o = r.index) > i && + ((o = t.slice(i, o)), s[a] ? (s[a] += o) : (s[++a] = o)), + (n = n[0]) === (r = r[0]) + ? s[a] + ? (s[a] += r) + : (s[++a] = r) + : ((s[++a] = null), c.push({ i: a, x: En(n, r) })), + (i = Cn.lastIndex); + return ( + i < t.length && + ((o = t.slice(i)), s[a] ? (s[a] += o) : (s[++a] = o)), + s.length < 2 + ? c[0] + ? (function(e) { + return function(t) { + return e(t) + ''; + }; + })(c[0].x) + : (function(e) { + return function() { + return e; + }; + })(t) + : ((t = c.length), + function(e) { + for (var n, r = 0; r < t; ++r) s[(n = c[r]).i] = n.x(e); + return s.join(''); + }) + ); + }, + jn = function(e, t) { + var n, + r = typeof t; + return null == t || 'boolean' === r + ? pn(t) + : ('number' === r + ? En + : 'string' === r + ? (n = Kt(t)) + ? ((t = n), yn) + : Dn + : t instanceof Kt + ? yn + : t instanceof Date + ? On + : Mn(t) + ? xn + : Array.isArray(t) + ? Sn + : ('function' != typeof t.valueOf && + 'function' != typeof t.toString) || + isNaN(t) + ? An + : En)(e, t); + }, + zn = function() { + for (var e, t = ht; (e = t.sourceEvent); ) t = e; + return t; + }, + Nn = function(e, t) { + var n = e.ownerSVGElement || e; + if (n.createSVGPoint) { + var r = n.createSVGPoint(); + return ( + (r.x = t.clientX), + (r.y = t.clientY), + [(r = r.matrixTransform(e.getScreenCTM().inverse())).x, r.y] + ); + } + var o = e.getBoundingClientRect(); + return [ + t.clientX - o.left - e.clientLeft, + t.clientY - o.top - e.clientTop + ]; + }, + Rn = function(e, t, n) { + arguments.length < 3 && ((n = t), (t = zn().changedTouches)); + for (var r, o = 0, i = t ? t.length : 0; o < i; ++o) + if ((r = t[o]).identifier === n) return Nn(e, r); + return null; + }, + In = function(e) { + var t = zn(); + return t.changedTouches && (t = t.changedTouches[0]), Nn(e, t); + }, + Fn = 0, + qn = 0, + Bn = 0, + Hn = 1e3, + Yn = 0, + Wn = 0, + Vn = 0, + Un = + 'object' == typeof performance && performance.now + ? performance + : Date, + Xn = + 'object' == typeof window && window.requestAnimationFrame + ? window.requestAnimationFrame.bind(window) + : function(e) { + setTimeout(e, 17); + }; + function Gn() { + return Wn || (Xn(Kn), (Wn = Un.now() + Vn)); + } + function Kn() { + Wn = 0; + } + function $n() { + this._call = this._time = this._next = null; + } + function Qn(e, t, n) { + var r = new $n(); + return r.restart(e, t, n), r; + } + function Jn() { + Gn(), ++Fn; + for (var e, t = Ln; t; ) + (e = Wn - t._time) >= 0 && t._call.call(null, e), (t = t._next); + --Fn; + } + function Zn() { + (Wn = (Yn = Un.now()) + Vn), (Fn = qn = 0); + try { + Jn(); + } finally { + (Fn = 0), + (function() { + var e, + t, + n = Ln, + r = 1 / 0; + for (; n; ) + n._call + ? (r > n._time && (r = n._time), (e = n), (n = n._next)) + : ((t = n._next), + (n._next = null), + (n = e ? (e._next = t) : (Ln = t))); + (Pn = e), tr(r); + })(), + (Wn = 0); + } + } + function er() { + var e = Un.now(), + t = e - Yn; + t > Hn && ((Vn -= t), (Yn = e)); + } + function tr(e) { + Fn || + (qn && (qn = clearTimeout(qn)), + e - Wn > 24 + ? (e < 1 / 0 && (qn = setTimeout(Zn, e - Un.now() - Vn)), + Bn && (Bn = clearInterval(Bn))) + : (Bn || ((Yn = Un.now()), (Bn = setInterval(er, Hn))), + (Fn = 1), + Xn(Zn))); + } + $n.prototype = Qn.prototype = { + constructor: $n, + restart: function(e, t, n) { + if ('function' != typeof e) + throw new TypeError('callback is not a function'); + (n = (null == n ? Gn() : +n) + (null == t ? 0 : +t)), + this._next || + Pn === this || + (Pn ? (Pn._next = this) : (Ln = this), (Pn = this)), + (this._call = e), + (this._time = n), + tr(); + }, + stop: function() { + this._call && ((this._call = null), (this._time = 1 / 0), tr()); + } + }; + var nr = function(e, t, n) { + var r = new $n(); + return ( + (t = null == t ? 0 : +t), + r.restart( + function(n) { + r.stop(), e(n + t); + }, + t, + n + ), + r + ); + }, + rr = ge('start', 'end', 'cancel', 'interrupt'), + or = [], + ir = 0, + ar = 1, + sr = 2, + cr = 3, + ur = 4, + lr = 5, + fr = 6, + dr = function(e, t, n, r, o, i) { + var a = e.__transition; + if (a) { + if (n in a) return; + } else e.__transition = {}; + !(function(e, t, n) { + var r, + o = e.__transition; + function i(c) { + var u, l, f, d; + if (n.state !== ar) return s(); + for (u in o) + if ((d = o[u]).name === n.name) { + if (d.state === cr) return nr(i); + d.state === ur + ? ((d.state = fr), + d.timer.stop(), + d.on.call('interrupt', e, e.__data__, d.index, d.group), + delete o[u]) + : +u < t && + ((d.state = fr), + d.timer.stop(), + d.on.call('cancel', e, e.__data__, d.index, d.group), + delete o[u]); } + if ( + (nr(function() { + n.state === cr && + ((n.state = ur), n.timer.restart(a, n.delay, n.time), a(c)); + }), + (n.state = sr), + n.on.call('start', e, e.__data__, n.index, n.group), + n.state === sr) + ) { + for ( + n.state = cr, + r = new Array((f = n.tween.length)), + u = 0, + l = -1; + u < f; + ++u + ) + (d = n.tween[u].value.call( + e, + e.__data__, + n.index, + n.group + )) && (r[++l] = d); + r.length = l + 1; } - function O(e) { - var t = e.clientHeight, - n = e.ownerDocument.defaultView.getComputedStyle(e); - return (t += h(n.borderTopWidth)) + h(n.borderBottomWidth); - } - function E(e) { - var t = e.clientWidth, - n = e.ownerDocument.defaultView.getComputedStyle(e); - return (t += h(n.borderLeftWidth)) + h(n.borderRightWidth); - } - function T(e) { - var t = e.clientHeight, - n = e.ownerDocument.defaultView.getComputedStyle(e); - return (t -= h(n.paddingTop)) - h(n.paddingBottom); - } - function C(e) { - var t = e.clientWidth, - n = e.ownerDocument.defaultView.getComputedStyle(e); - return (t -= h(n.paddingLeft)) - h(n.paddingRight); - } - function L(e, t, n) { - var r = e.x, - o = e.y, - i = 'translate(' - .concat(r) - .concat(n, ',') - .concat(o) - .concat(n, ')'); - if (t) { - var a = ''.concat('string' == typeof t.x ? t.x : t.x + n), - s = ''.concat('string' == typeof t.y ? t.y : t.y + n); - i = 'translate('.concat(a, ', ').concat(s, ')') + i; - } - return i; - } - function P(e) { - return e.targetTouches && e.targetTouches[0] - ? e.targetTouches[0].identifier - : e.changedTouches && e.changedTouches[0] - ? e.changedTouches[0].identifier - : void 0; - } - function D(e) { - if (e) { - var t, - n, - r = e.getElementById('react-draggable-style-el'); - r || - (((r = e.createElement('style')).type = 'text/css'), - (r.id = 'react-draggable-style-el'), - (r.innerHTML = - '.react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n'), - (r.innerHTML += - '.react-draggable-transparent-selection *::selection {all: inherit;}\n'), - e.getElementsByTagName('head')[0].appendChild(r)), - e.body && - ((n = 'react-draggable-transparent-selection'), - (t = e.body).classList - ? t.classList.add(n) - : t.className.match( - new RegExp('(?:^|\\s)'.concat(n, '(?!\\S)')) - ) || (t.className += ' '.concat(n))); - } - } - function z(e) { - var t, n; - if (e) - try { - if ( - (e.body && - ((t = e.body), - (n = 'react-draggable-transparent-selection'), - t.classList - ? t.classList.remove(n) - : (t.className = t.className.replace( - new RegExp('(?:^|\\s)'.concat(n, '(?!\\S)'), 'g'), - '' - ))), - e.selection) - ) - e.selection.empty(); - else { - var r = (e.defaultView || window).getSelection(); - r && 'Caret' !== r.type && r.removeAllRanges(); - } - } catch (e) {} - } - function N(e, t, n) { - return [ - Math.round(t / e[0]) * e[0], - Math.round(n / e[1]) * e[1] - ]; - } - function j(e) { - return 'both' === e.props.axis || 'x' === e.props.axis; - } - function R(e) { - return 'both' === e.props.axis || 'y' === e.props.axis; - } - function I(e, t, n) { - var r = - 'number' == typeof t - ? (function(e, t) { - return ( - (e.targetTouches && - f(e.targetTouches, function(e) { - return t === e.identifier; - })) || - (e.changedTouches && - f(e.changedTouches, function(e) { - return t === e.identifier; - })) - ); - })(e, t) - : null; - if ('number' == typeof t && !r) return null; - var o = B(n); - return (function(e, t, n) { - var r = - t === t.ownerDocument.body - ? { left: 0, top: 0 } - : t.getBoundingClientRect(); - return { - x: (e.clientX + t.scrollLeft - r.left) / n, - y: (e.clientY + t.scrollTop - r.top) / n - }; - })( - r || e, - n.props.offsetParent || - o.offsetParent || - o.ownerDocument.body, - n.props.scale - ); - } - function F(e, t, n) { - var r = e.state, - o = !p(r.lastX), - i = B(e); - return o - ? { - node: i, - deltaX: 0, - deltaY: 0, - lastX: t, - lastY: n, - x: t, - y: n - } - : { - node: i, - deltaX: t - r.lastX, - deltaY: n - r.lastY, - lastX: r.lastX, - lastY: r.lastY, - x: t, - y: n - }; - } - function q(e, t) { - var n = e.props.scale; - return { - node: t.node, - x: e.state.x + t.deltaX / n, - y: e.state.y + t.deltaY / n, - deltaX: t.deltaX / n, - deltaY: t.deltaY / n, - lastX: e.state.x, - lastY: e.state.y - }; - } - function B(e) { - var t = c.a.findDOMNode(e); - if (!t) - throw new Error(': Unmounted during event!'); - return t; - } - function H(e) { - return (H = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(e) { - return typeof e; - } - : function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - })(e); - } - function Y(e, t) { - return ( - (function(e) { - if (Array.isArray(e)) return e; - })(e) || - (function(e, t) { - if ( - 'undefined' != typeof Symbol && - Symbol.iterator in Object(e) - ) { - var n = [], - r = !0, - o = !1, - i = void 0; - try { - for ( - var a, s = e[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !t || n.length !== t); - r = !0 - ); - } catch (e) { - (o = !0), (i = e); - } finally { - try { - r || null == s.return || s.return(); - } finally { - if (o) throw i; - } - } - return n; - } - })(e, t) || - (function(e, t) { - if (e) { - if ('string' == typeof e) return W(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(n) - : 'Arguments' === n || - /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) - ? W(e, t) - : void 0 - ); - } - })(e, t) || - (function() { - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' - ); - })() - ); - } - function W(e, t) { - (null == t || t > e.length) && (t = e.length); - for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; - return r; - } - function V(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function U(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - function X(e, t) { - return !t || ('object' !== H(t) && 'function' != typeof t) - ? G(e) - : t; - } - function G(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return e; - } - function K() { - if ('undefined' == typeof Reflect || !Reflect.construct) - return !1; - if (Reflect.construct.sham) return !1; - if ('function' == typeof Proxy) return !0; - try { - return ( - Date.prototype.toString.call( - Reflect.construct(Date, [], function() {}) - ), - !0 - ); - } catch (e) { - return !1; - } - } - function $(e) { - return ($ = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(e) { - return e.__proto__ || Object.getPrototypeOf(e); - })(e); - } - function Q(e, t) { - return (Q = - Object.setPrototypeOf || - function(e, t) { - return (e.__proto__ = t), e; - })(e, t); - } - function J(e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e - ); - } - var Z = { - start: 'touchstart', - move: 'touchmove', - stop: 'touchend' - }, - ee = { start: 'mousedown', move: 'mousemove', stop: 'mouseup' }, - te = ee, - ne = (function(e) { - !(function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { value: e, writable: !0, configurable: !0 } - })), - t && Q(e, t); - })(a, e); - var t, - n, - r, - i = - ((t = a), - function() { - var e, - n = $(t); - if (K()) { - var r = $(this).constructor; - e = Reflect.construct(n, arguments, r); - } else e = n.apply(this, arguments); - return X(this, e); - }); - function a() { - var e; - V(this, a); - for ( - var t = arguments.length, n = new Array(t), r = 0; - r < t; - r++ - ) - n[r] = arguments[r]; - return ( - J(G((e = i.call.apply(i, [this].concat(n)))), 'state', { - dragging: !1, - lastX: NaN, - lastY: NaN, - touchIdentifier: null - }), - J(G(e), 'mounted', !1), - J(G(e), 'handleDragStart', function(t) { - if ( - (e.props.onMouseDown(t), - !e.props.allowAnyClick && - 'number' == typeof t.button && - 0 !== t.button) - ) - return !1; - var n = c.a.findDOMNode(G(e)); - if (!n || !n.ownerDocument || !n.ownerDocument.body) - throw new Error( - ' not mounted on DragStart!' - ); - var r = n.ownerDocument; - if ( - !( - e.props.disabled || - !(t.target instanceof r.defaultView.Node) || - (e.props.handle && - !k(t.target, e.props.handle, n)) || - (e.props.cancel && k(t.target, e.props.cancel, n)) - ) - ) { - 'touchstart' === t.type && t.preventDefault(); - var o = P(t); - e.setState({ touchIdentifier: o }); - var i = I(t, o, G(e)); - if (null != i) { - var a = i.x, - s = i.y, - u = F(G(e), a, s); - e.props.onStart, - !1 !== e.props.onStart(t, u) && - !1 !== e.mounted && - (e.props.enableUserSelectHack && D(r), - e.setState({ - dragging: !0, - lastX: a, - lastY: s - }), - S(r, te.move, e.handleDrag), - S(r, te.stop, e.handleDragStop)); - } - } - }), - J(G(e), 'handleDrag', function(t) { - var n = I(t, e.state.touchIdentifier, G(e)); - if (null != n) { - var r = n.x, - o = n.y; - if (Array.isArray(e.props.grid)) { - var i = r - e.state.lastX, - a = o - e.state.lastY, - s = Y(N(e.props.grid, i, a), 2); - if (((i = s[0]), (a = s[1]), !i && !a)) return; - (r = e.state.lastX + i), (o = e.state.lastY + a); - } - var c = F(G(e), r, o); - if (!1 !== e.props.onDrag(t, c) && !1 !== e.mounted) - e.setState({ lastX: r, lastY: o }); - else - try { - e.handleDragStop(new MouseEvent('mouseup')); - } catch (t) { - var u = document.createEvent('MouseEvents'); - u.initMouseEvent( - 'mouseup', - !0, - !0, - window, - 0, - 0, - 0, - 0, - 0, - !1, - !1, - !1, - !1, - 0, - null - ), - e.handleDragStop(u); - } - } - }), - J(G(e), 'handleDragStop', function(t) { - if (e.state.dragging) { - var n = I(t, e.state.touchIdentifier, G(e)); - if (null != n) { - var r = n.x, - o = n.y, - i = F(G(e), r, o); - if (!1 === e.props.onStop(t, i) || !1 === e.mounted) - return !1; - var a = c.a.findDOMNode(G(e)); - a && - e.props.enableUserSelectHack && - z(a.ownerDocument), - e.setState({ - dragging: !1, - lastX: NaN, - lastY: NaN - }), - a && - (A(a.ownerDocument, te.move, e.handleDrag), - A(a.ownerDocument, te.stop, e.handleDragStop)); - } - } - }), - J(G(e), 'onMouseDown', function(t) { - return (te = ee), e.handleDragStart(t); - }), - J(G(e), 'onMouseUp', function(t) { - return (te = ee), e.handleDragStop(t); - }), - J(G(e), 'onTouchStart', function(t) { - return (te = Z), e.handleDragStart(t); - }), - J(G(e), 'onTouchEnd', function(t) { - return (te = Z), e.handleDragStop(t); - }), - e - ); - } - return ( - (n = a), - (r = [ - { - key: 'componentDidMount', - value: function() { - this.mounted = !0; - var e = c.a.findDOMNode(this); - e && - S(e, Z.start, this.onTouchStart, { passive: !1 }); - } - }, - { - key: 'componentWillUnmount', - value: function() { - this.mounted = !1; - var e = c.a.findDOMNode(this); - if (e) { - var t = e.ownerDocument; - A(t, ee.move, this.handleDrag), - A(t, Z.move, this.handleDrag), - A(t, ee.stop, this.handleDragStop), - A(t, Z.stop, this.handleDragStop), - A(e, Z.start, this.onTouchStart, { passive: !1 }), - this.props.enableUserSelectHack && z(t); - } - } - }, - { - key: 'render', - value: function() { - return o.a.cloneElement( - o.a.Children.only(this.props.children), - { - onMouseDown: this.onMouseDown, - onMouseUp: this.onMouseUp, - onTouchEnd: this.onTouchEnd - } - ); - } - } - ]) && U(n.prototype, r), - a - ); - })(o.a.Component); - function re(e) { - return (re = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(e) { - return typeof e; - } - : function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - })(e); - } - function oe() { - return (oe = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - function ie(e, t) { - (null == t || t > e.length) && (t = e.length); - for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; - return r; - } - function ae(e, t) { - var n = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var r = Object.getOwnPropertySymbols(e); - t && - (r = r.filter(function(t) { - return Object.getOwnPropertyDescriptor(e, t).enumerable; - })), - n.push.apply(n, r); - } - return n; - } - function se(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}; - t % 2 - ? ae(Object(n), !0).forEach(function(t) { - ge(e, t, n[t]); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties( - e, - Object.getOwnPropertyDescriptors(n) - ) - : ae(Object(n)).forEach(function(t) { - Object.defineProperty( - e, - t, - Object.getOwnPropertyDescriptor(n, t) - ); - }); - } - return e; - } - function ce(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - function ue(e, t, n) { - return t && ce(e.prototype, t), n && ce(e, n), e; - } - function le(e, t) { - return !t || ('object' !== re(t) && 'function' != typeof t) - ? fe(e) - : t; - } - function fe(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return e; - } - function de() { - if ('undefined' == typeof Reflect || !Reflect.construct) - return !1; - if (Reflect.construct.sham) return !1; - if ('function' == typeof Proxy) return !0; - try { - return ( - Date.prototype.toString.call( - Reflect.construct(Date, [], function() {}) - ), - !0 - ); - } catch (e) { - return !1; - } - } - function pe(e) { - return (pe = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(e) { - return e.__proto__ || Object.getPrototypeOf(e); - })(e); - } - function he(e, t) { - return (he = - Object.setPrototypeOf || - function(e, t) { - return (e.__proto__ = t), e; - })(e, t); - } - function ge(e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e - ); - } - J(ne, 'displayName', 'DraggableCore'), - J(ne, 'propTypes', { - allowAnyClick: a.a.bool, - disabled: a.a.bool, - enableUserSelectHack: a.a.bool, - offsetParent: function(e, t) { - if (e[t] && 1 !== e[t].nodeType) - throw new Error( - "Draggable's offsetParent must be a DOM Node." - ); - }, - grid: a.a.arrayOf(a.a.number), - handle: a.a.string, - cancel: a.a.string, - onStart: a.a.func, - onDrag: a.a.func, - onStop: a.a.func, - onMouseDown: a.a.func, - scale: a.a.number, - className: g, - style: g, - transform: g - }), - J(ne, 'defaultProps', { - allowAnyClick: !1, - cancel: null, - disabled: !1, - enableUserSelectHack: !0, - offsetParent: null, - handle: null, - grid: null, - transform: null, - onStart: function() {}, - onDrag: function() {}, - onStop: function() {}, - onMouseDown: function() {}, - scale: 1 - }); - var me = (function(e) { - !(function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { value: e, writable: !0, configurable: !0 } - })), - t && he(e, t); - })(r, e); - var t, - n = - ((t = r), - function() { - var e, - n = pe(t); - if (de()) { - var r = pe(this).constructor; - e = Reflect.construct(n, arguments, r); - } else e = n.apply(this, arguments); - return le(this, e); - }); - function r(e) { - var t; - return ( - (function(e, t) { - if (!(e instanceof t)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, r), - ge(fe((t = n.call(this, e))), 'onDragStart', function( - e, - n - ) { - if (!1 === t.props.onStart(e, q(fe(t), n))) return !1; - t.setState({ dragging: !0, dragged: !0 }); - }), - ge(fe(t), 'onDrag', function(e, n) { - if (!t.state.dragging) return !1; - var r = q(fe(t), n), - o = { x: r.x, y: r.y }; - if (t.props.bounds) { - var i = o.x, - a = o.y; - (o.x += t.state.slackX), (o.y += t.state.slackY); - var s = (function(e, t) { - return ( - (function(e) { - if (Array.isArray(e)) return e; - })(e) || - (function(e, t) { - if ( - 'undefined' != typeof Symbol && - Symbol.iterator in Object(e) - ) { - var n = [], - r = !0, - o = !1, - i = void 0; - try { - for ( - var a, s = e[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !t || n.length !== t); - r = !0 - ); - } catch (e) { - (o = !0), (i = e); - } finally { - try { - r || null == s.return || s.return(); - } finally { - if (o) throw i; - } - } - return n; - } - })(e, t) || - (function(e, t) { - if (e) { - if ('string' == typeof e) return ie(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(n) - : 'Arguments' === n || - /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test( - n - ) - ? ie(e, t) - : void 0 - ); - } - })(e, t) || - (function() { - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' - ); - })() - ); - })( - (function(e, t, n) { - if (!e.props.bounds) return [t, n]; - var r = e.props.bounds; - r = - 'string' == typeof r - ? r - : (function(e) { - return { - left: e.left, - top: e.top, - right: e.right, - bottom: e.bottom - }; - })(r); - var o = B(e); - if ('string' == typeof r) { - var i, - a = o.ownerDocument, - s = a.defaultView; - if ( - !( - (i = - 'parent' === r - ? o.parentNode - : a.querySelector(r)) instanceof - s.HTMLElement - ) - ) - throw new Error( - 'Bounds selector "' + - r + - '" could not find an element.' - ); - var c = s.getComputedStyle(o), - u = s.getComputedStyle(i); - r = { - left: - -o.offsetLeft + - h(u.paddingLeft) + - h(c.marginLeft), - top: - -o.offsetTop + - h(u.paddingTop) + - h(c.marginTop), - right: - C(i) - - E(o) - - o.offsetLeft + - h(u.paddingRight) - - h(c.marginRight), - bottom: - T(i) - - O(o) - - o.offsetTop + - h(u.paddingBottom) - - h(c.marginBottom) - }; - } - return ( - p(r.right) && (t = Math.min(t, r.right)), - p(r.bottom) && (n = Math.min(n, r.bottom)), - p(r.left) && (t = Math.max(t, r.left)), - p(r.top) && (n = Math.max(n, r.top)), - [t, n] - ); - })(fe(t), o.x, o.y), - 2 - ), - c = s[0], - u = s[1]; - (o.x = c), - (o.y = u), - (o.slackX = t.state.slackX + (i - o.x)), - (o.slackY = t.state.slackY + (a - o.y)), - (r.x = o.x), - (r.y = o.y), - (r.deltaX = o.x - t.state.x), - (r.deltaY = o.y - t.state.y); - } - if (!1 === t.props.onDrag(e, r)) return !1; - t.setState(o); - }), - ge(fe(t), 'onDragStop', function(e, n) { - if (!t.state.dragging) return !1; - if (!1 === t.props.onStop(e, q(fe(t), n))) return !1; - var r = { dragging: !1, slackX: 0, slackY: 0 }; - if (Boolean(t.props.position)) { - var o = t.props.position, - i = o.x, - a = o.y; - (r.x = i), (r.y = a); - } - t.setState(r); - }), - (t.state = { - dragging: !1, - dragged: !1, - x: e.position ? e.position.x : e.defaultPosition.x, - y: e.position ? e.position.y : e.defaultPosition.y, - prevPropsPosition: se({}, e.position), - slackX: 0, - slackY: 0, - isElementSVG: !1 - }), - !e.position || - e.onDrag || - e.onStop || - console.warn( - 'A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.' - ), - t - ); - } - return ( - ue(r, null, [ - { - key: 'getDerivedStateFromProps', - value: function(e, t) { - var n = e.position, - r = t.prevPropsPosition; - return !n || (r && n.x === r.x && n.y === r.y) - ? null - : { x: n.x, y: n.y, prevPropsPosition: se({}, n) }; - } - } - ]), - ue(r, [ - { - key: 'componentDidMount', - value: function() { - void 0 !== window.SVGElement && - c.a.findDOMNode(this) instanceof window.SVGElement && - this.setState({ isElementSVG: !0 }); - } - }, - { - key: 'componentWillUnmount', - value: function() { - this.setState({ dragging: !1 }); - } - }, - { - key: 'render', - value: function() { - var e, - t = this.props, - n = (t.axis, t.bounds, t.children), - r = t.defaultPosition, - i = t.defaultClassName, - a = t.defaultClassNameDragging, - s = t.defaultClassNameDragged, - c = t.position, - u = t.positionOffset, - f = - (t.scale, - (function(e, t) { - if (null == e) return {}; - var n, - r, - o = (function(e, t) { - if (null == e) return {}; - var n, - r, - o = {}, - i = Object.keys(e); - for (r = 0; r < i.length; r++) - (n = i[r]), - t.indexOf(n) >= 0 || (o[n] = e[n]); - return o; - })(e, t); - if (Object.getOwnPropertySymbols) { - var i = Object.getOwnPropertySymbols(e); - for (r = 0; r < i.length; r++) - (n = i[r]), - t.indexOf(n) >= 0 || - (Object.prototype.propertyIsEnumerable.call( - e, - n - ) && - (o[n] = e[n])); - } - return o; - })(t, [ - 'axis', - 'bounds', - 'children', - 'defaultPosition', - 'defaultClassName', - 'defaultClassNameDragging', - 'defaultClassNameDragged', - 'position', - 'positionOffset', - 'scale' - ])), - d = {}, - p = null, - h = !Boolean(c) || this.state.dragging, - g = c || r, - m = { - x: j(this) && h ? this.state.x : g.x, - y: R(this) && h ? this.state.y : g.y - }; - this.state.isElementSVG - ? (p = (function(e, t) { - return L(e, t, ''); - })(m, u)) - : (d = (function(e, t) { - var n = L(e, t, 'px'); - return x({}, b('transform', y), n); - })(m, u)); - var v = l()( - n.props.className || '', - i, - (ge((e = {}), a, this.state.dragging), - ge(e, s, this.state.dragged), - e) - ); - return o.a.createElement( - ne, - oe({}, f, { - onStart: this.onDragStart, - onDrag: this.onDrag, - onStop: this.onDragStop - }), - o.a.cloneElement(o.a.Children.only(n), { - className: v, - style: se({}, n.props.style, {}, d), - transform: p - }) - ); - } - } - ]), - r - ); - })(o.a.Component); - ge(me, 'displayName', 'Draggable'), - ge( - me, - 'propTypes', - se({}, ne.propTypes, { - axis: a.a.oneOf(['both', 'x', 'y', 'none']), - bounds: a.a.oneOfType([ - a.a.shape({ - left: a.a.number, - right: a.a.number, - top: a.a.number, - bottom: a.a.number - }), - a.a.string, - a.a.oneOf([!1]) - ]), - defaultClassName: a.a.string, - defaultClassNameDragging: a.a.string, - defaultClassNameDragged: a.a.string, - defaultPosition: a.a.shape({ - x: a.a.number, - y: a.a.number - }), - positionOffset: a.a.shape({ - x: a.a.oneOfType([a.a.number, a.a.string]), - y: a.a.oneOfType([a.a.number, a.a.string]) - }), - position: a.a.shape({ x: a.a.number, y: a.a.number }), - className: g, - style: g, - transform: g - }) - ), - ge( - me, - 'defaultProps', - se({}, ne.defaultProps, { - axis: 'both', - bounds: !1, - defaultClassName: 'react-draggable', - defaultClassNameDragging: 'react-draggable-dragging', - defaultClassNameDragged: 'react-draggable-dragged', - defaultPosition: { x: 0, y: 0 }, - position: null, - scale: 1 - }) - ); } - ]))); - }, - function(e, t, n) { - 'use strict'; - (t.__esModule = !0), (t.default = void 0); - var r = s(n(0)), - o = s(n(1)), - i = n(213), - a = n(547); - function s(e) { - return e && e.__esModule ? e : { default: e }; - } - function c() { - return (c = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); + function a(t) { + for ( + var o = + t < n.duration + ? n.ease.call(null, t / n.duration) + : (n.timer.restart(s), (n.state = lr), 1), + i = -1, + a = r.length; + ++i < a; + + ) + r[i].call(e, o); + n.state === lr && + (n.on.call('end', e, e.__data__, n.index, n.group), s()); } - return e; - }).apply(this, arguments); - } - function u(e, t) { - var n = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var r = Object.getOwnPropertySymbols(e); - t && - (r = r.filter(function(t) { - return Object.getOwnPropertyDescriptor(e, t).enumerable; - })), - n.push.apply(n, r); - } + function s() { + for (var r in ((n.state = fr), n.timer.stop(), delete o[t], o)) + return; + delete e.__transition; + } + (o[t] = n), + (n.timer = Qn( + function(e) { + (n.state = ar), + n.timer.restart(i, n.delay, n.time), + n.delay <= e && i(e - n.delay); + }, + 0, + n.time + )); + })(e, n, { + name: t, + index: r, + group: o, + on: rr, + tween: or, + time: i.time, + delay: i.delay, + duration: i.duration, + ease: i.ease, + timer: null, + state: ir + }); + }; + function pr(e, t) { + var n = gr(e, t); + if (n.state > ir) throw new Error('too late; already scheduled'); return n; } - function l(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return e; + function hr(e, t) { + var n = gr(e, t); + if (n.state > cr) throw new Error('too late; already running'); + return n; } - function f(e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e - ); + function gr(e, t) { + var n = e.__transition; + if (!n || !(n = n[t])) throw new Error('transition not found'); + return n; } - var d = (function(e) { - var t, n; - function o() { - for (var t, n = arguments.length, r = new Array(n), o = 0; o < n; o++) - r[o] = arguments[o]; + var mr, + br, + yr, + vr, + _r = function(e, t) { + var n, + r, + o, + i = e.__transition, + a = !0; + if (i) { + for (o in ((t = null == t ? null : t + ''), i)) + (n = i[o]).name === t + ? ((r = n.state > sr && n.state < lr), + (n.state = fr), + n.timer.stop(), + n.on.call( + r ? 'interrupt' : 'cancel', + e, + e.__data__, + n.index, + n.group + ), + delete i[o]) + : (a = !1); + a && delete e.__transition; + } + }, + wr = 180 / Math.PI, + xr = { + translateX: 0, + translateY: 0, + rotate: 0, + skewX: 0, + scaleX: 1, + scaleY: 1 + }, + Mr = function(e, t, n, r, o, i) { + var a, s, c; return ( - f(l((t = e.call.apply(e, [this].concat(r)) || this)), 'state', { - slackW: 0, - slackH: 0 - }), - t + (a = Math.sqrt(e * e + t * t)) && ((e /= a), (t /= a)), + (c = e * n + t * r) && ((n -= e * c), (r -= t * c)), + (s = Math.sqrt(n * n + r * r)) && ((n /= s), (r /= s), (c /= s)), + e * r < t * n && ((e = -e), (t = -t), (c = -c), (a = -a)), + { + translateX: o, + translateY: i, + rotate: Math.atan2(t, e) * wr, + skewX: Math.atan(c) * wr, + scaleX: a, + scaleY: s + } ); + }; + function kr(e, t, n, r) { + function o(e) { + return e.length ? e.pop() + ' ' : ''; } - (n = e), - ((t = o).prototype = Object.create(n.prototype)), - (t.prototype.constructor = t), - (t.__proto__ = n); - var s = o.prototype; + return function(i, a) { + var s = [], + c = []; + return ( + (i = e(i)), + (a = e(a)), + (function(e, r, o, i, a, s) { + if (e !== o || r !== i) { + var c = a.push('translate(', null, t, null, n); + s.push({ i: c - 4, x: En(e, o) }, { i: c - 2, x: En(r, i) }); + } else (o || i) && a.push('translate(' + o + t + i + n); + })(i.translateX, i.translateY, a.translateX, a.translateY, s, c), + (function(e, t, n, i) { + e !== t + ? (e - t > 180 ? (t += 360) : t - e > 180 && (e += 360), + i.push({ + i: n.push(o(n) + 'rotate(', null, r) - 2, + x: En(e, t) + })) + : t && n.push(o(n) + 'rotate(' + t + r); + })(i.rotate, a.rotate, s, c), + (function(e, t, n, i) { + e !== t + ? i.push({ + i: n.push(o(n) + 'skewX(', null, r) - 2, + x: En(e, t) + }) + : t && n.push(o(n) + 'skewX(' + t + r); + })(i.skewX, a.skewX, s, c), + (function(e, t, n, r, i, a) { + if (e !== n || t !== r) { + var s = i.push(o(i) + 'scale(', null, ',', null, ')'); + a.push({ i: s - 4, x: En(e, n) }, { i: s - 2, x: En(t, r) }); + } else + (1 === n && 1 === r) || + i.push(o(i) + 'scale(' + n + ',' + r + ')'); + })(i.scaleX, i.scaleY, a.scaleX, a.scaleY, s, c), + (i = a = null), + function(e) { + for (var t, n = -1, r = c.length; ++n < r; ) + s[(t = c[n]).i] = t.x(e); + return s.join(''); + } + ); + }; + } + var Sr = kr( + function(e) { + return 'none' === e + ? xr + : (mr || + ((mr = document.createElement('DIV')), + (br = document.documentElement), + (yr = document.defaultView)), + (mr.style.transform = e), + (e = yr + .getComputedStyle(br.appendChild(mr), null) + .getPropertyValue('transform')), + br.removeChild(mr), + (e = e.slice(7, -1).split(',')), + Mr(+e[0], +e[1], +e[2], +e[3], +e[4], +e[5])); + }, + 'px, ', + 'px)', + 'deg)' + ), + Or = kr( + function(e) { + return null == e + ? xr + : (vr || + (vr = document.createElementNS( + 'http://www.w3.org/2000/svg', + 'g' + )), + vr.setAttribute('transform', e), + (e = vr.transform.baseVal.consolidate()) + ? ((e = e.matrix), Mr(e.a, e.b, e.c, e.d, e.e, e.f)) + : xr); + }, + ', ', + ')', + ')' + ); + function Er(e, t) { + var n, r; + return function() { + var o = hr(this, e), + i = o.tween; + if (i !== n) + for (var a = 0, s = (r = n = i).length; a < s; ++a) + if (r[a].name === t) { + (r = r.slice()).splice(a, 1); + break; + } + o.tween = r; + }; + } + function Ar(e, t, n) { + var r, o; + if ('function' != typeof n) throw new Error(); + return function() { + var i = hr(this, e), + a = i.tween; + if (a !== r) { + o = (r = a).slice(); + for (var s = { name: t, value: n }, c = 0, u = o.length; c < u; ++c) + if (o[c].name === t) { + o[c] = s; + break; + } + c === u && o.push(s); + } + i.tween = o; + }; + } + function Tr(e, t, n) { + var r = e._id; return ( - (s.lockAspectRatio = function(e, t, n) { - return [(e = (t = e / n) * n), t]; + e.each(function() { + var e = hr(this, r); + (e.value || (e.value = {}))[t] = n.apply(this, arguments); }), - (s.runConstraints = function(e, t) { - var n = [this.props.minConstraints, this.props.maxConstraints], - r = n[0], - o = n[1]; - if (!r && !o) return [e, t]; - if (this.props.lockAspectRatio) - if (t === this.props.height) { - var i = this.props.width / this.props.height; - e = (t = e / i) * i; - } else { - var a = this.props.height / this.props.width; - t = (e = t / a) * a; - } - var s = e, - c = t, - u = this.state, - l = u.slackW, - f = u.slackH; - return ( - (e += l), - (t += f), - r && ((e = Math.max(r[0], e)), (t = Math.max(r[1], t))), - o && ((e = Math.min(o[0], e)), (t = Math.min(o[1], t))), - (f += c - t), - ((l += s - e) === this.state.slackW && f === this.state.slackH) || - this.setState({ slackW: l, slackH: f }), - [e, t] - ); - }), - (s.resizeHandler = function(e, t) { - var n = this; - return function(r, o) { - var i = o.node, - a = o.deltaX, - s = o.deltaY; - (a /= n.props.transformScale), (s /= n.props.transformScale); - var c = - ('both' === n.props.axis || 'x' === n.props.axis) && - -1 === ['n', 's'].indexOf(t), - u = - ('both' === n.props.axis || 'y' === n.props.axis) && - -1 === ['e', 'w'].indexOf(t); - c && 'w' === t[t.length - 1] && (a = -a), - u && 'n' === t[0] && (s = -s); - var l = n.props.width + (c ? a : 0), - f = n.props.height + (u ? s : 0), - d = l !== n.props.width, - p = f !== n.props.height; - if ('onResize' !== e || d || p) { - var h = n.runConstraints(l, f); - (l = h[0]), (f = h[1]); - var g = {}; - if ('onResizeStart' === e); - else if ('onResizeStop' === e) g.slackW = g.slackH = 0; - else if (l === n.props.width && f === n.props.height) return; - 'function' == typeof n.props[e] - ? ('function' == typeof r.persist && r.persist(), - n.setState(g, function() { - return n.props[e](r, { - node: i, - size: { width: l, height: f }, - handle: t - }); - })) - : n.setState(g); - } - }; - }), - (s.renderResizeHandle = function(e) { - var t = this.props.handle; - return t - ? 'function' == typeof t - ? t(e) - : t - : r.default.createElement('span', { - className: - 'react-resizable-handle react-resizable-handle-' + e - }); - }), - (s.render = function() { - var e = this, - t = this.props, - n = t.children, - o = t.draggableOpts, - s = - (t.width, - t.height, - t.handleSize, - t.lockAspectRatio, - t.axis, - t.minConstraints, - t.maxConstraints, - t.onResize, - t.onResizeStop, - t.onResizeStart, - t.resizeHandles), - l = - (t.transformScale, - (function(e, t) { - if (null == e) return {}; - var n, - r, - o = {}, - i = Object.keys(e); - for (r = 0; r < i.length; r++) - (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); - return o; - })(t, [ - 'children', - 'draggableOpts', - 'width', - 'height', - 'handleSize', - 'lockAspectRatio', - 'axis', - 'minConstraints', - 'maxConstraints', - 'onResize', - 'onResizeStop', - 'onResizeStart', - 'resizeHandles', - 'transformScale' - ])), - d = l.className - ? l.className + ' react-resizable' - : 'react-resizable'; - return (0, a.cloneElement)( - n, - (function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}; - t % 2 - ? u(n, !0).forEach(function(t) { - f(e, t, n[t]); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties( - e, - Object.getOwnPropertyDescriptors(n) - ) - : u(n).forEach(function(t) { - Object.defineProperty( - e, - t, - Object.getOwnPropertyDescriptor(n, t) - ); - }); - } - return e; - })({}, l, { - className: d, - children: [ - n.props.children, - s.map(function(t) { - return r.default.createElement( - i.DraggableCore, - c({}, o, { - key: 'resizableHandle-' + t, - onStop: e.resizeHandler('onResizeStop', t), - onStart: e.resizeHandler('onResizeStart', t), - onDrag: e.resizeHandler('onResize', t) - }), - e.renderResizeHandle(t) - ); - }) - ] - }) - ); - }), - o + function(e) { + return gr(e, r).value[t]; + } ); - })(r.default.Component); - (t.default = d), - f(d, 'propTypes', { - children: o.default.element.isRequired, - width: o.default.number.isRequired, - height: o.default.number.isRequired, - handle: o.default.element, - handleSize: o.default.array, - resizeHandles: o.default.arrayOf( - o.default.oneOf(['s', 'w', 'e', 'n', 'sw', 'nw', 'se', 'ne']) - ), - transformScale: o.default.number, - lockAspectRatio: o.default.bool, - axis: o.default.oneOf(['both', 'x', 'y', 'none']), - minConstraints: o.default.arrayOf(o.default.number), - maxConstraints: o.default.arrayOf(o.default.number), - onResizeStop: o.default.func, - onResizeStart: o.default.func, - onResize: o.default.func, - draggableOpts: o.default.object - }), - f(d, 'defaultProps', { - handleSize: [20, 20], - lockAspectRatio: !1, - axis: 'both', - minConstraints: [20, 20], - maxConstraints: [1 / 0, 1 / 0], - resizeHandles: ['se'], - transformScale: 1 - }); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.getBreakpointFromWidth = function(e, t) { - for (var n = o(e), r = n[0], i = 1, a = n.length; i < a; i++) { - var s = n[i]; - t > e[s] && (r = s); + } + var Cr = function(e, t) { + var n; + return ('number' == typeof t + ? En + : t instanceof Kt + ? yn + : (n = Kt(t)) + ? ((t = n), yn) + : Dn)(e, t); + }; + function Lr(e) { + return function() { + this.removeAttribute(e); + }; + } + function Pr(e) { + return function() { + this.removeAttributeNS(e.space, e.local); + }; + } + function Dr(e, t, n) { + var r, + o, + i = n + ''; + return function() { + var a = this.getAttribute(e); + return a === i ? null : a === r ? o : (o = t((r = a), n)); + }; + } + function jr(e, t, n) { + var r, + o, + i = n + ''; + return function() { + var a = this.getAttributeNS(e.space, e.local); + return a === i ? null : a === r ? o : (o = t((r = a), n)); + }; + } + function zr(e, t, n) { + var r, o, i; + return function() { + var a, + s, + c = n(this); + if (null != c) + return (a = this.getAttribute(e)) === (s = c + '') + ? null + : a === r && s === o + ? i + : ((o = s), (i = t((r = a), c))); + this.removeAttribute(e); + }; + } + function Nr(e, t, n) { + var r, o, i; + return function() { + var a, + s, + c = n(this); + if (null != c) + return (a = this.getAttributeNS(e.space, e.local)) === (s = c + '') + ? null + : a === r && s === o + ? i + : ((o = s), (i = t((r = a), c))); + this.removeAttributeNS(e.space, e.local); + }; + } + function Rr(e, t) { + var n, r; + function o() { + var o = t.apply(this, arguments); + return ( + o !== r && + (n = + (r = o) && + (function(e, t) { + return function(n) { + this.setAttributeNS(e.space, e.local, t.call(this, n)); + }; + })(e, o)), + n + ); + } + return (o._value = t), o; + } + function Ir(e, t) { + var n, r; + function o() { + var o = t.apply(this, arguments); + return ( + o !== r && + (n = + (r = o) && + (function(e, t) { + return function(n) { + this.setAttribute(e, t.call(this, n)); + }; + })(e, o)), + n + ); + } + return (o._value = t), o; + } + function Fr(e, t) { + return function() { + pr(this, e).delay = +t.apply(this, arguments); + }; + } + function qr(e, t) { + return ( + (t = +t), + function() { + pr(this, e).delay = t; } - return r; - }), - (t.getColsFromBreakpoint = function(e, t) { - if (!t[e]) - throw new Error( - 'ResponsiveReactGridLayout: `cols` entry for breakpoint ' + - e + - ' is missing!' - ); - return t[e]; - }), - (t.findOrGenerateResponsiveLayout = function(e, t, n, i, a, s) { - if (e[n]) return (0, r.cloneLayout)(e[n]); - for ( - var c = e[i], - u = o(t), - l = u.slice(u.indexOf(n)), - f = 0, - d = l.length; - f < d; - f++ - ) { - var p = l[f]; - if (e[p]) { - c = e[p]; - break; - } + ); + } + function Br(e, t) { + return function() { + hr(this, e).duration = +t.apply(this, arguments); + }; + } + function Hr(e, t) { + return ( + (t = +t), + function() { + hr(this, e).duration = t; } + ); + } + function Yr(e, t) { + if ('function' != typeof t) throw new Error(); + return function() { + hr(this, e).ease = t; + }; + } + function Wr(e, t, n) { + var r, + o, + i = (function(e) { + return (e + '') + .trim() + .split(/^|\s+/) + .every(function(e) { + var t = e.indexOf('.'); + return t >= 0 && (e = e.slice(0, t)), !e || 'start' === e; + }); + })(t) + ? pr + : hr; + return function() { + var a = i(this, e), + s = a.on; + s !== r && (o = (r = s).copy()).on(t, n), (a.on = o); + }; + } + var Vr = Et.prototype.constructor; + function Ur(e) { + return function() { + this.style.removeProperty(e); + }; + } + function Xr(e, t, n) { + var r, o; + function i() { + var i = t.apply(this, arguments); return ( - (c = (0, r.cloneLayout)(c || [])), - (0, r.compact)((0, r.correctBounds)(c, { cols: a }), s, a) + i !== o && + (r = + (o = i) && + (function(e, t, n) { + return function(r) { + this.style.setProperty(e, t.call(this, r), n); + }; + })(e, i, n)), + r ); - }), - (t.sortBreakpoints = o); - var r = n(89); - function o(e) { - return Object.keys(e).sort(function(t, n) { - return e[t] - e[n]; - }); + } + return (i._value = t), i; } - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = function(e, t, n) { - return i.default[e.type](e, t, n); - }); - var r, - o = n(552), - i = (r = o) && r.__esModule ? r : { default: r }; - }, - function(e, t, n) { - var r = n(218), - o = { - input: !0, - option: !0, - optgroup: !0, - select: !0, - button: !0, - datalist: !0, - textarea: !0 - }, - i = { - tr: { tr: !0, th: !0, td: !0 }, - th: { th: !0 }, - td: { thead: !0, th: !0, td: !0 }, - body: { head: !0, link: !0, script: !0 }, - li: { li: !0 }, - p: { p: !0 }, - h1: { p: !0 }, - h2: { p: !0 }, - h3: { p: !0 }, - h4: { p: !0 }, - h5: { p: !0 }, - h6: { p: !0 }, - select: o, - input: o, - output: o, - button: o, - datalist: o, - textarea: o, - option: { option: !0 }, - optgroup: { optgroup: !0 } + function Gr(e) { + var t, n; + function r() { + var r = e.apply(this, arguments); + return ( + r !== n && + (t = + (n = r) && + (function(e) { + return function(t) { + this.textContent = e.call(this, t); + }; + })(r)), + t + ); + } + return (r._value = e), r; + } + var Kr = 0; + function $r(e, t, n, r) { + (this._groups = e), + (this._parents = t), + (this._name = n), + (this._id = r); + } + function Qr(e) { + return Et().transition(e); + } + function Jr() { + return ++Kr; + } + var Zr = Et.prototype; + function eo(e) { + return e * e * e; + } + function to(e) { + return --e * e * e + 1; + } + function no(e) { + return ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2; + } + $r.prototype = Qr.prototype = { + constructor: $r, + select: function(e) { + var t = this._name, + n = this._id; + 'function' != typeof e && (e = be(e)); + for ( + var r = this._groups, o = r.length, i = new Array(o), a = 0; + a < o; + ++a + ) + for ( + var s, + c, + u = r[a], + l = u.length, + f = (i[a] = new Array(l)), + d = 0; + d < l; + ++d + ) + (s = u[d]) && + (c = e.call(s, s.__data__, d, u)) && + ('__data__' in s && (c.__data__ = s.__data__), + (f[d] = c), + dr(f[d], t, n, d, f, gr(s, n))); + return new $r(i, this._parents, t, n); }, - a = { - __proto__: null, - area: !0, - base: !0, - basefont: !0, - br: !0, - col: !0, - command: !0, - embed: !0, - frame: !0, - hr: !0, - img: !0, - input: !0, - isindex: !0, - keygen: !0, - link: !0, - meta: !0, - param: !0, - source: !0, - track: !0, - wbr: !0 + selectAll: function(e) { + var t = this._name, + n = this._id; + 'function' != typeof e && (e = ve(e)); + for ( + var r = this._groups, o = r.length, i = [], a = [], s = 0; + s < o; + ++s + ) + for (var c, u = r[s], l = u.length, f = 0; f < l; ++f) + if ((c = u[f])) { + for ( + var d, + p = e.call(c, c.__data__, f, u), + h = gr(c, n), + g = 0, + m = p.length; + g < m; + ++g + ) + (d = p[g]) && dr(d, t, n, g, p, h); + i.push(p), a.push(c); + } + return new $r(i, a, t, n); }, - s = { __proto__: null, math: !0, svg: !0 }, - c = { - __proto__: null, - mi: !0, - mo: !0, - mn: !0, - ms: !0, - mtext: !0, - 'annotation-xml': !0, - foreignObject: !0, - desc: !0, - title: !0 + filter: function(e) { + 'function' != typeof e && (e = _e(e)); + for ( + var t = this._groups, n = t.length, r = new Array(n), o = 0; + o < n; + ++o + ) + for ( + var i, a = t[o], s = a.length, c = (r[o] = []), u = 0; + u < s; + ++u + ) + (i = a[u]) && e.call(i, i.__data__, u, a) && c.push(i); + return new $r(r, this._parents, this._name, this._id); }, - u = /\s|\//; - function l(e, t) { - (this._options = t || {}), - (this._cbs = e || {}), - (this._tagname = ''), - (this._attribname = ''), - (this._attribvalue = ''), - (this._attribs = null), - (this._stack = []), - (this._foreignContext = []), - (this.startIndex = 0), - (this.endIndex = null), - (this._lowerCaseTagNames = - 'lowerCaseTags' in this._options - ? !!this._options.lowerCaseTags - : !this._options.xmlMode), - (this._lowerCaseAttributeNames = - 'lowerCaseAttributeNames' in this._options - ? !!this._options.lowerCaseAttributeNames - : !this._options.xmlMode), - this._options.Tokenizer && (r = this._options.Tokenizer), - (this._tokenizer = new r(this._options, this)), - this._cbs.onparserinit && this._cbs.onparserinit(this); - } - n(111)(l, n(558).EventEmitter), - (l.prototype._updatePosition = function(e) { - null === this.endIndex - ? this._tokenizer._sectionStart <= e - ? (this.startIndex = 0) - : (this.startIndex = this._tokenizer._sectionStart - e) - : (this.startIndex = this.endIndex + 1), - (this.endIndex = this._tokenizer.getAbsoluteIndex()); - }), - (l.prototype.ontext = function(e) { - this._updatePosition(1), - this.endIndex--, - this._cbs.ontext && this._cbs.ontext(e); - }), - (l.prototype.onopentagname = function(e) { - if ( - (this._lowerCaseTagNames && (e = e.toLowerCase()), - (this._tagname = e), - !this._options.xmlMode && e in i) + merge: function(e) { + if (e._id !== this._id) throw new Error(); + for ( + var t = this._groups, + n = e._groups, + r = t.length, + o = n.length, + i = Math.min(r, o), + a = new Array(r), + s = 0; + s < i; + ++s ) for ( - var t; - (t = this._stack[this._stack.length - 1]) in i[e]; - this.onclosetag(t) - ); - (!this._options.xmlMode && e in a) || - (this._stack.push(e), - e in s - ? this._foreignContext.push(!0) - : e in c && this._foreignContext.push(!1)), - this._cbs.onopentagname && this._cbs.onopentagname(e), - this._cbs.onopentag && (this._attribs = {}); - }), - (l.prototype.onopentagend = function() { - this._updatePosition(1), - this._attribs && - (this._cbs.onopentag && - this._cbs.onopentag(this._tagname, this._attribs), - (this._attribs = null)), - !this._options.xmlMode && - this._cbs.onclosetag && - this._tagname in a && - this._cbs.onclosetag(this._tagname), - (this._tagname = ''); - }), - (l.prototype.onclosetag = function(e) { - if ( - (this._updatePosition(1), - this._lowerCaseTagNames && (e = e.toLowerCase()), - (e in s || e in c) && this._foreignContext.pop(), - !this._stack.length || (e in a && !this._options.xmlMode)) + var c, + u = t[s], + l = n[s], + f = u.length, + d = (a[s] = new Array(f)), + p = 0; + p < f; + ++p + ) + (c = u[p] || l[p]) && (d[p] = c); + for (; s < r; ++s) a[s] = t[s]; + return new $r(a, this._parents, this._name, this._id); + }, + selection: function() { + return new Vr(this._groups, this._parents); + }, + transition: function() { + for ( + var e = this._name, + t = this._id, + n = Jr(), + r = this._groups, + o = r.length, + i = 0; + i < o; + ++i ) - this._options.xmlMode || - ('br' !== e && 'p' !== e) || - (this.onopentagname(e), this._closeCurrentTag()); - else { - var t = this._stack.lastIndexOf(e); - if (-1 !== t) - if (this._cbs.onclosetag) - for (t = this._stack.length - t; t--; ) - this._cbs.onclosetag(this._stack.pop()); - else this._stack.length = t; - else - 'p' !== e || - this._options.xmlMode || - (this.onopentagname(e), this._closeCurrentTag()); - } - }), - (l.prototype.onselfclosingtag = function() { - this._options.xmlMode || - this._options.recognizeSelfClosing || - this._foreignContext[this._foreignContext.length - 1] - ? this._closeCurrentTag() - : this.onopentagend(); - }), - (l.prototype._closeCurrentTag = function() { - var e = this._tagname; - this.onopentagend(), - this._stack[this._stack.length - 1] === e && - (this._cbs.onclosetag && this._cbs.onclosetag(e), - this._stack.pop()); - }), - (l.prototype.onattribname = function(e) { - this._lowerCaseAttributeNames && (e = e.toLowerCase()), - (this._attribname = e); - }), - (l.prototype.onattribdata = function(e) { - this._attribvalue += e; - }), - (l.prototype.onattribend = function() { - this._cbs.onattribute && - this._cbs.onattribute(this._attribname, this._attribvalue), - this._attribs && - !Object.prototype.hasOwnProperty.call( - this._attribs, - this._attribname - ) && - (this._attribs[this._attribname] = this._attribvalue), - (this._attribname = ''), - (this._attribvalue = ''); - }), - (l.prototype._getInstructionName = function(e) { - var t = e.search(u), - n = t < 0 ? e : e.substr(0, t); - return this._lowerCaseTagNames && (n = n.toLowerCase()), n; - }), - (l.prototype.ondeclaration = function(e) { - if (this._cbs.onprocessinginstruction) { - var t = this._getInstructionName(e); - this._cbs.onprocessinginstruction('!' + t, '!' + e); - } - }), - (l.prototype.onprocessinginstruction = function(e) { - if (this._cbs.onprocessinginstruction) { - var t = this._getInstructionName(e); - this._cbs.onprocessinginstruction('?' + t, '?' + e); - } - }), - (l.prototype.oncomment = function(e) { - this._updatePosition(4), - this._cbs.oncomment && this._cbs.oncomment(e), - this._cbs.oncommentend && this._cbs.oncommentend(); - }), - (l.prototype.oncdata = function(e) { - this._updatePosition(1), - this._options.xmlMode || this._options.recognizeCDATA - ? (this._cbs.oncdatastart && this._cbs.oncdatastart(), - this._cbs.ontext && this._cbs.ontext(e), - this._cbs.oncdataend && this._cbs.oncdataend()) - : this.oncomment('[CDATA[' + e + ']]'); - }), - (l.prototype.onerror = function(e) { - this._cbs.onerror && this._cbs.onerror(e); - }), - (l.prototype.onend = function() { - if (this._cbs.onclosetag) + for (var a, s = r[i], c = s.length, u = 0; u < c; ++u) + if ((a = s[u])) { + var l = gr(a, t); + dr(a, e, n, u, s, { + time: l.time + l.delay + l.duration, + delay: 0, + duration: l.duration, + ease: l.ease + }); + } + return new $r(r, this._parents, e, n); + }, + call: Zr.call, + nodes: Zr.nodes, + node: Zr.node, + size: Zr.size, + empty: Zr.empty, + each: Zr.each, + on: function(e, t) { + var n = this._id; + return arguments.length < 2 + ? gr(this.node(), n).on.on(e) + : this.each(Wr(n, e, t)); + }, + attr: function(e, t) { + var n = Te(e), + r = 'transform' === n ? Or : Cr; + return this.attrTween( + e, + 'function' == typeof t + ? (n.local ? Nr : zr)(n, r, Tr(this, 'attr.' + e, t)) + : null == t + ? (n.local ? Pr : Lr)(n) + : (n.local ? jr : Dr)(n, r, t) + ); + }, + attrTween: function(e, t) { + var n = 'attr.' + e; + if (arguments.length < 2) return (n = this.tween(n)) && n._value; + if (null == t) return this.tween(n, null); + if ('function' != typeof t) throw new Error(); + var r = Te(e); + return this.tween(n, (r.local ? Rr : Ir)(r, t)); + }, + style: function(e, t, n) { + var r = 'transform' == (e += '') ? Sr : Cr; + return null == t + ? this.styleTween( + e, + (function(e, t) { + var n, r, o; + return function() { + var i = qe(this, e), + a = (this.style.removeProperty(e), qe(this, e)); + return i === a + ? null + : i === n && a === r + ? o + : (o = t((n = i), (r = a))); + }; + })(e, r) + ).on('end.style.' + e, Ur(e)) + : 'function' == typeof t + ? this.styleTween( + e, + (function(e, t, n) { + var r, o, i; + return function() { + var a = qe(this, e), + s = n(this), + c = s + ''; + return ( + null == s && + (this.style.removeProperty(e), (c = s = qe(this, e))), + a === c + ? null + : a === r && c === o + ? i + : ((o = c), (i = t((r = a), s))) + ); + }; + })(e, r, Tr(this, 'style.' + e, t)) + ).each( + (function(e, t) { + var n, + r, + o, + i, + a = 'style.' + t, + s = 'end.' + a; + return function() { + var c = hr(this, e), + u = c.on, + l = null == c.value[a] ? i || (i = Ur(t)) : void 0; + (u === n && o === l) || (r = (n = u).copy()).on(s, (o = l)), + (c.on = r); + }; + })(this._id, e) + ) + : this.styleTween( + e, + (function(e, t, n) { + var r, + o, + i = n + ''; + return function() { + var a = qe(this, e); + return a === i ? null : a === r ? o : (o = t((r = a), n)); + }; + })(e, r, t), + n + ).on('end.style.' + e, null); + }, + styleTween: function(e, t, n) { + var r = 'style.' + (e += ''); + if (arguments.length < 2) return (r = this.tween(r)) && r._value; + if (null == t) return this.tween(r, null); + if ('function' != typeof t) throw new Error(); + return this.tween(r, Xr(e, t, null == n ? '' : n)); + }, + text: function(e) { + return this.tween( + 'text', + 'function' == typeof e + ? (function(e) { + return function() { + var t = e(this); + this.textContent = null == t ? '' : t; + }; + })(Tr(this, 'text', e)) + : (function(e) { + return function() { + this.textContent = e; + }; + })(null == e ? '' : e + '') + ); + }, + textTween: function(e) { + var t = 'text'; + if (arguments.length < 1) return (t = this.tween(t)) && t._value; + if (null == e) return this.tween(t, null); + if ('function' != typeof e) throw new Error(); + return this.tween(t, Gr(e)); + }, + remove: function() { + return this.on( + 'end.remove', + ((e = this._id), + function() { + var t = this.parentNode; + for (var n in this.__transition) if (+n !== e) return; + t && t.removeChild(this); + }) + ); + var e; + }, + tween: function(e, t) { + var n = this._id; + if (((e += ''), arguments.length < 2)) { for ( - var e = this._stack.length; - e > 0; - this._cbs.onclosetag(this._stack[--e]) - ); - this._cbs.onend && this._cbs.onend(); - }), - (l.prototype.reset = function() { - this._cbs.onreset && this._cbs.onreset(), - this._tokenizer.reset(), - (this._tagname = ''), - (this._attribname = ''), - (this._attribs = null), - (this._stack = []), - this._cbs.onparserinit && this._cbs.onparserinit(this); - }), - (l.prototype.parseComplete = function(e) { - this.reset(), this.end(e); - }), - (l.prototype.write = function(e) { - this._tokenizer.write(e); - }), - (l.prototype.end = function(e) { - this._tokenizer.end(e); - }), - (l.prototype.pause = function() { - this._tokenizer.pause(); - }), - (l.prototype.resume = function() { - this._tokenizer.resume(); - }), - (l.prototype.parseChunk = l.prototype.write), - (l.prototype.done = l.prototype.end), - (e.exports = l); - }, - function(e, t, n) { - e.exports = me; - var r = n(553), - o = n(555), - i = n(556), - a = n(557), - s = 0, - c = s++, - u = s++, - l = s++, - f = s++, - d = s++, - p = s++, - h = s++, - g = s++, - m = s++, - b = s++, - y = s++, - v = s++, - _ = s++, - x = s++, - w = s++, - M = s++, - k = s++, - S = s++, - A = s++, - O = s++, - E = s++, - T = s++, - C = s++, - L = s++, - P = s++, - D = s++, - z = s++, - N = s++, - j = s++, - R = s++, - I = s++, - F = s++, - q = s++, - B = s++, - H = s++, - Y = s++, - W = s++, - V = s++, - U = s++, - X = s++, - G = s++, - K = s++, - $ = s++, - Q = s++, - J = s++, - Z = s++, - ee = s++, - te = s++, - ne = s++, - re = s++, - oe = s++, - ie = s++, - ae = s++, - se = s++, - ce = s++, - ue = 0, - le = ue++, - fe = ue++, - de = ue++; - function pe(e) { - return ( - ' ' === e || '\n' === e || '\t' === e || '\f' === e || '\r' === e - ); - } - function he(e, t, n) { - var r = e.toLowerCase(); - return e === r - ? function(e) { - e === r ? (this._state = t) : ((this._state = n), this._index--); - } - : function(o) { - o === r || o === e - ? (this._state = t) - : ((this._state = n), this._index--); - }; + var r, o = gr(this.node(), n).tween, i = 0, a = o.length; + i < a; + ++i + ) + if ((r = o[i]).name === e) return r.value; + return null; + } + return this.each((null == t ? Er : Ar)(n, e, t)); + }, + delay: function(e) { + var t = this._id; + return arguments.length + ? this.each(('function' == typeof e ? Fr : qr)(t, e)) + : gr(this.node(), t).delay; + }, + duration: function(e) { + var t = this._id; + return arguments.length + ? this.each(('function' == typeof e ? Br : Hr)(t, e)) + : gr(this.node(), t).duration; + }, + ease: function(e) { + var t = this._id; + return arguments.length + ? this.each(Yr(t, e)) + : gr(this.node(), t).ease; + }, + end: function() { + var e, + t, + n = this, + r = n._id, + o = n.size(); + return new Promise(function(i, a) { + var s = { value: a }, + c = { + value: function() { + 0 == --o && i(); + } + }; + n.each(function() { + var n = hr(this, r), + o = n.on; + o !== e && + ((t = (e = o).copy())._.cancel.push(s), + t._.interrupt.push(s), + t._.end.push(c)), + (n.on = t); + }); + }); + } + }; + var ro = { time: null, delay: 0, duration: 250, ease: no }; + function oo(e, t) { + for (var n; !(n = e.__transition) || !(n = n[t]); ) + if (!(e = e.parentNode)) return (ro.time = Gn()), ro; + return n; } - function ge(e, t) { - var n = e.toLowerCase(); - return function(r) { - r === n || r === e - ? (this._state = t) - : ((this._state = l), this._index--); + (Et.prototype.interrupt = function(e) { + return this.each(function() { + _r(this, e); + }); + }), + (Et.prototype.transition = function(e) { + var t, n; + e instanceof $r + ? ((t = e._id), (e = e._name)) + : ((t = Jr()), + ((n = ro).time = Gn()), + (e = null == e ? null : e + '')); + for (var r = this._groups, o = r.length, i = 0; i < o; ++i) + for (var a, s = r[i], c = s.length, u = 0; u < c; ++u) + (a = s[u]) && dr(a, e, t, u, s, n || oo(a, t)); + return new $r(r, this._parents, e, t); + }); + var io = [null], + ao = function(e, t) { + var n, + r, + o = e.__transition; + if (o) + for (r in ((t = null == t ? null : t + ''), o)) + if ((n = o[r]).state > ar && n.name === t) + return new $r([[e]], io, t, +r); + return null; + }, + so = function(e) { + return function() { + return e; + }; + }, + co = function(e, t, n) { + (this.target = e), (this.type = t), (this.selection = n); }; + function uo() { + ht.stopImmediatePropagation(); } - function me(e, t) { - (this._state = c), - (this._buffer = ''), - (this._sectionStart = 0), - (this._index = 0), - (this._bufferOffset = 0), - (this._baseState = c), - (this._special = le), - (this._cbs = t), - (this._running = !0), - (this._ended = !1), - (this._xmlMode = !(!e || !e.xmlMode)), - (this._decodeEntities = !(!e || !e.decodeEntities)); + var lo = function() { + ht.preventDefault(), ht.stopImmediatePropagation(); + }, + fo = { name: 'drag' }, + po = { name: 'space' }, + ho = { name: 'handle' }, + go = { name: 'center' }; + function mo(e) { + return [+e[0], +e[1]]; } - (me.prototype._stateText = function(e) { - '<' === e - ? (this._index > this._sectionStart && - this._cbs.ontext(this._getSection()), - (this._state = u), - (this._sectionStart = this._index)) - : this._decodeEntities && - this._special === le && - '&' === e && - (this._index > this._sectionStart && - this._cbs.ontext(this._getSection()), - (this._baseState = c), - (this._state = oe), - (this._sectionStart = this._index)); - }), - (me.prototype._stateBeforeTagName = function(e) { - '/' === e - ? (this._state = d) - : '<' === e - ? (this._cbs.ontext(this._getSection()), - (this._sectionStart = this._index)) - : '>' === e || this._special !== le || pe(e) - ? (this._state = c) - : '!' === e - ? ((this._state = w), (this._sectionStart = this._index + 1)) - : '?' === e - ? ((this._state = k), (this._sectionStart = this._index + 1)) - : ((this._state = - this._xmlMode || ('s' !== e && 'S' !== e) ? l : I), - (this._sectionStart = this._index)); - }), - (me.prototype._stateInTagName = function(e) { - ('/' === e || '>' === e || pe(e)) && - (this._emitToken('onopentagname'), - (this._state = g), - this._index--); - }), - (me.prototype._stateBeforeCloseingTagName = function(e) { - pe(e) || - ('>' === e - ? (this._state = c) - : this._special !== le - ? 's' === e || 'S' === e - ? (this._state = F) - : ((this._state = c), this._index--) - : ((this._state = p), (this._sectionStart = this._index))); - }), - (me.prototype._stateInCloseingTagName = function(e) { - ('>' === e || pe(e)) && - (this._emitToken('onclosetag'), (this._state = h), this._index--); - }), - (me.prototype._stateAfterCloseingTagName = function(e) { - '>' === e && - ((this._state = c), (this._sectionStart = this._index + 1)); - }), - (me.prototype._stateBeforeAttributeName = function(e) { - '>' === e - ? (this._cbs.onopentagend(), - (this._state = c), - (this._sectionStart = this._index + 1)) - : '/' === e - ? (this._state = f) - : pe(e) || ((this._state = m), (this._sectionStart = this._index)); - }), - (me.prototype._stateInSelfClosingTag = function(e) { - '>' === e - ? (this._cbs.onselfclosingtag(), - (this._state = c), - (this._sectionStart = this._index + 1)) - : pe(e) || ((this._state = g), this._index--); - }), - (me.prototype._stateInAttributeName = function(e) { - ('=' === e || '/' === e || '>' === e || pe(e)) && - (this._cbs.onattribname(this._getSection()), - (this._sectionStart = -1), - (this._state = b), - this._index--); - }), - (me.prototype._stateAfterAttributeName = function(e) { - '=' === e - ? (this._state = y) - : '/' === e || '>' === e - ? (this._cbs.onattribend(), (this._state = g), this._index--) - : pe(e) || - (this._cbs.onattribend(), - (this._state = m), - (this._sectionStart = this._index)); - }), - (me.prototype._stateBeforeAttributeValue = function(e) { - '"' === e - ? ((this._state = v), (this._sectionStart = this._index + 1)) - : "'" === e - ? ((this._state = _), (this._sectionStart = this._index + 1)) - : pe(e) || - ((this._state = x), - (this._sectionStart = this._index), - this._index--); - }), - (me.prototype._stateInAttributeValueDoubleQuotes = function(e) { - '"' === e - ? (this._emitToken('onattribdata'), - this._cbs.onattribend(), - (this._state = g)) - : this._decodeEntities && - '&' === e && - (this._emitToken('onattribdata'), - (this._baseState = this._state), - (this._state = oe), - (this._sectionStart = this._index)); - }), - (me.prototype._stateInAttributeValueSingleQuotes = function(e) { - "'" === e - ? (this._emitToken('onattribdata'), - this._cbs.onattribend(), - (this._state = g)) - : this._decodeEntities && - '&' === e && - (this._emitToken('onattribdata'), - (this._baseState = this._state), - (this._state = oe), - (this._sectionStart = this._index)); - }), - (me.prototype._stateInAttributeValueNoQuotes = function(e) { - pe(e) || '>' === e - ? (this._emitToken('onattribdata'), - this._cbs.onattribend(), - (this._state = g), - this._index--) - : this._decodeEntities && - '&' === e && - (this._emitToken('onattribdata'), - (this._baseState = this._state), - (this._state = oe), - (this._sectionStart = this._index)); - }), - (me.prototype._stateBeforeDeclaration = function(e) { - this._state = '[' === e ? T : '-' === e ? S : M; - }), - (me.prototype._stateInDeclaration = function(e) { - '>' === e && - (this._cbs.ondeclaration(this._getSection()), - (this._state = c), - (this._sectionStart = this._index + 1)); - }), - (me.prototype._stateInProcessingInstruction = function(e) { - '>' === e && - (this._cbs.onprocessinginstruction(this._getSection()), - (this._state = c), - (this._sectionStart = this._index + 1)); - }), - (me.prototype._stateBeforeComment = function(e) { - '-' === e - ? ((this._state = A), (this._sectionStart = this._index + 1)) - : (this._state = M); - }), - (me.prototype._stateInComment = function(e) { - '-' === e && (this._state = O); - }), - (me.prototype._stateAfterComment1 = function(e) { - this._state = '-' === e ? E : A; - }), - (me.prototype._stateAfterComment2 = function(e) { - '>' === e - ? (this._cbs.oncomment( - this._buffer.substring(this._sectionStart, this._index - 2) - ), - (this._state = c), - (this._sectionStart = this._index + 1)) - : '-' !== e && (this._state = A); - }), - (me.prototype._stateBeforeCdata1 = he('C', C, M)), - (me.prototype._stateBeforeCdata2 = he('D', L, M)), - (me.prototype._stateBeforeCdata3 = he('A', P, M)), - (me.prototype._stateBeforeCdata4 = he('T', D, M)), - (me.prototype._stateBeforeCdata5 = he('A', z, M)), - (me.prototype._stateBeforeCdata6 = function(e) { - '[' === e - ? ((this._state = N), (this._sectionStart = this._index + 1)) - : ((this._state = M), this._index--); - }), - (me.prototype._stateInCdata = function(e) { - ']' === e && (this._state = j); - }), - (me.prototype._stateAfterCdata1 = function(e) { - this._state = ']' === e ? R : N; - }), - (me.prototype._stateAfterCdata2 = function(e) { - '>' === e - ? (this._cbs.oncdata( - this._buffer.substring(this._sectionStart, this._index - 2) - ), - (this._state = c), - (this._sectionStart = this._index + 1)) - : ']' !== e && (this._state = N); - }), - (me.prototype._stateBeforeSpecial = function(e) { - 'c' === e || 'C' === e - ? (this._state = q) - : 't' === e || 'T' === e - ? (this._state = $) - : ((this._state = l), this._index--); - }), - (me.prototype._stateBeforeSpecialEnd = function(e) { - this._special !== fe || ('c' !== e && 'C' !== e) - ? this._special !== de || ('t' !== e && 'T' !== e) - ? (this._state = c) - : (this._state = ee) - : (this._state = V); - }), - (me.prototype._stateBeforeScript1 = ge('R', B)), - (me.prototype._stateBeforeScript2 = ge('I', H)), - (me.prototype._stateBeforeScript3 = ge('P', Y)), - (me.prototype._stateBeforeScript4 = ge('T', W)), - (me.prototype._stateBeforeScript5 = function(e) { - ('/' === e || '>' === e || pe(e)) && (this._special = fe), - (this._state = l), - this._index--; - }), - (me.prototype._stateAfterScript1 = he('R', U, c)), - (me.prototype._stateAfterScript2 = he('I', X, c)), - (me.prototype._stateAfterScript3 = he('P', G, c)), - (me.prototype._stateAfterScript4 = he('T', K, c)), - (me.prototype._stateAfterScript5 = function(e) { - '>' === e || pe(e) - ? ((this._special = le), - (this._state = p), - (this._sectionStart = this._index - 6), - this._index--) - : (this._state = c); - }), - (me.prototype._stateBeforeStyle1 = ge('Y', Q)), - (me.prototype._stateBeforeStyle2 = ge('L', J)), - (me.prototype._stateBeforeStyle3 = ge('E', Z)), - (me.prototype._stateBeforeStyle4 = function(e) { - ('/' === e || '>' === e || pe(e)) && (this._special = de), - (this._state = l), - this._index--; - }), - (me.prototype._stateAfterStyle1 = he('Y', te, c)), - (me.prototype._stateAfterStyle2 = he('L', ne, c)), - (me.prototype._stateAfterStyle3 = he('E', re, c)), - (me.prototype._stateAfterStyle4 = function(e) { - '>' === e || pe(e) - ? ((this._special = le), - (this._state = p), - (this._sectionStart = this._index - 5), - this._index--) - : (this._state = c); - }), - (me.prototype._stateBeforeEntity = he('#', ie, ae)), - (me.prototype._stateBeforeNumericEntity = he('X', ce, se)), - (me.prototype._parseNamedEntityStrict = function() { - if (this._sectionStart + 1 < this._index) { - var e = this._buffer.substring(this._sectionStart + 1, this._index), - t = this._xmlMode ? a : o; - t.hasOwnProperty(e) && - (this._emitPartial(t[e]), (this._sectionStart = this._index + 1)); - } - }), - (me.prototype._parseLegacyEntity = function() { - var e = this._sectionStart + 1, - t = this._index - e; - for (t > 6 && (t = 6); t >= 2; ) { - var n = this._buffer.substr(e, t); - if (i.hasOwnProperty(n)) - return ( - this._emitPartial(i[n]), void (this._sectionStart += t + 1) - ); - t--; - } - }), - (me.prototype._stateInNamedEntity = function(e) { - ';' === e - ? (this._parseNamedEntityStrict(), - this._sectionStart + 1 < this._index && - !this._xmlMode && - this._parseLegacyEntity(), - (this._state = this._baseState)) - : (e < 'a' || e > 'z') && - (e < 'A' || e > 'Z') && - (e < '0' || e > '9') && - (this._xmlMode || - this._sectionStart + 1 === this._index || - (this._baseState !== c - ? '=' !== e && this._parseNamedEntityStrict() - : this._parseLegacyEntity()), - (this._state = this._baseState), - this._index--); - }), - (me.prototype._decodeNumericEntity = function(e, t) { - var n = this._sectionStart + e; - if (n !== this._index) { - var o = this._buffer.substring(n, this._index), - i = parseInt(o, t); - this._emitPartial(r(i)), (this._sectionStart = this._index); - } else this._sectionStart--; - this._state = this._baseState; - }), - (me.prototype._stateInNumericEntity = function(e) { - ';' === e - ? (this._decodeNumericEntity(2, 10), this._sectionStart++) - : (e < '0' || e > '9') && - (this._xmlMode - ? (this._state = this._baseState) - : this._decodeNumericEntity(2, 10), - this._index--); - }), - (me.prototype._stateInHexEntity = function(e) { - ';' === e - ? (this._decodeNumericEntity(3, 16), this._sectionStart++) - : (e < 'a' || e > 'f') && - (e < 'A' || e > 'F') && - (e < '0' || e > '9') && - (this._xmlMode - ? (this._state = this._baseState) - : this._decodeNumericEntity(3, 16), - this._index--); - }), - (me.prototype._cleanup = function() { - this._sectionStart < 0 - ? ((this._buffer = ''), - (this._bufferOffset += this._index), - (this._index = 0)) - : this._running && - (this._state === c - ? (this._sectionStart !== this._index && - this._cbs.ontext(this._buffer.substr(this._sectionStart)), - (this._buffer = ''), - (this._bufferOffset += this._index), - (this._index = 0)) - : this._sectionStart === this._index - ? ((this._buffer = ''), - (this._bufferOffset += this._index), - (this._index = 0)) - : ((this._buffer = this._buffer.substr(this._sectionStart)), - (this._index -= this._sectionStart), - (this._bufferOffset += this._sectionStart)), - (this._sectionStart = 0)); - }), - (me.prototype.write = function(e) { - this._ended && this._cbs.onerror(Error('.write() after done!')), - (this._buffer += e), - this._parse(); - }), - (me.prototype._parse = function() { - for (; this._index < this._buffer.length && this._running; ) { - var e = this._buffer.charAt(this._index); - this._state === c - ? this._stateText(e) - : this._state === u - ? this._stateBeforeTagName(e) - : this._state === l - ? this._stateInTagName(e) - : this._state === d - ? this._stateBeforeCloseingTagName(e) - : this._state === p - ? this._stateInCloseingTagName(e) - : this._state === h - ? this._stateAfterCloseingTagName(e) - : this._state === f - ? this._stateInSelfClosingTag(e) - : this._state === g - ? this._stateBeforeAttributeName(e) - : this._state === m - ? this._stateInAttributeName(e) - : this._state === b - ? this._stateAfterAttributeName(e) - : this._state === y - ? this._stateBeforeAttributeValue(e) - : this._state === v - ? this._stateInAttributeValueDoubleQuotes(e) - : this._state === _ - ? this._stateInAttributeValueSingleQuotes(e) - : this._state === x - ? this._stateInAttributeValueNoQuotes(e) - : this._state === w - ? this._stateBeforeDeclaration(e) - : this._state === M - ? this._stateInDeclaration(e) - : this._state === k - ? this._stateInProcessingInstruction(e) - : this._state === S - ? this._stateBeforeComment(e) - : this._state === A - ? this._stateInComment(e) - : this._state === O - ? this._stateAfterComment1(e) - : this._state === E - ? this._stateAfterComment2(e) - : this._state === T - ? this._stateBeforeCdata1(e) - : this._state === C - ? this._stateBeforeCdata2(e) - : this._state === L - ? this._stateBeforeCdata3(e) - : this._state === P - ? this._stateBeforeCdata4(e) - : this._state === D - ? this._stateBeforeCdata5(e) - : this._state === z - ? this._stateBeforeCdata6(e) - : this._state === N - ? this._stateInCdata(e) - : this._state === j - ? this._stateAfterCdata1(e) - : this._state === R - ? this._stateAfterCdata2(e) - : this._state === I - ? this._stateBeforeSpecial(e) - : this._state === F - ? this._stateBeforeSpecialEnd(e) - : this._state === q - ? this._stateBeforeScript1(e) - : this._state === B - ? this._stateBeforeScript2(e) - : this._state === H - ? this._stateBeforeScript3(e) - : this._state === Y - ? this._stateBeforeScript4(e) - : this._state === W - ? this._stateBeforeScript5(e) - : this._state === V - ? this._stateAfterScript1(e) - : this._state === U - ? this._stateAfterScript2(e) - : this._state === X - ? this._stateAfterScript3(e) - : this._state === G - ? this._stateAfterScript4(e) - : this._state === K - ? this._stateAfterScript5(e) - : this._state === $ - ? this._stateBeforeStyle1(e) - : this._state === Q - ? this._stateBeforeStyle2(e) - : this._state === J - ? this._stateBeforeStyle3(e) - : this._state === Z - ? this._stateBeforeStyle4(e) - : this._state === ee - ? this._stateAfterStyle1(e) - : this._state === te - ? this._stateAfterStyle2(e) - : this._state === ne - ? this._stateAfterStyle3(e) - : this._state === re - ? this._stateAfterStyle4(e) - : this._state === oe - ? this._stateBeforeEntity(e) - : this._state === ie - ? this._stateBeforeNumericEntity(e) - : this._state === ae - ? this._stateInNamedEntity(e) - : this._state === se - ? this._stateInNumericEntity(e) - : this._state === ce - ? this._stateInHexEntity(e) - : this._cbs.onerror(Error('unknown _state'), this._state), - this._index++; - } - this._cleanup(); - }), - (me.prototype.pause = function() { - this._running = !1; - }), - (me.prototype.resume = function() { - (this._running = !0), - this._index < this._buffer.length && this._parse(), - this._ended && this._finish(); - }), - (me.prototype.end = function(e) { - this._ended && this._cbs.onerror(Error('.end() after done!')), - e && this.write(e), - (this._ended = !0), - this._running && this._finish(); - }), - (me.prototype._finish = function() { - this._sectionStart < this._index && this._handleTrailingData(), - this._cbs.onend(); - }), - (me.prototype._handleTrailingData = function() { - var e = this._buffer.substr(this._sectionStart); - this._state === N || this._state === j || this._state === R - ? this._cbs.oncdata(e) - : this._state === A || this._state === O || this._state === E - ? this._cbs.oncomment(e) - : this._state !== ae || this._xmlMode - ? this._state !== se || this._xmlMode - ? this._state !== ce || this._xmlMode - ? this._state !== l && - this._state !== g && - this._state !== y && - this._state !== b && - this._state !== m && - this._state !== _ && - this._state !== v && - this._state !== x && - this._state !== p && - this._cbs.ontext(e) - : (this._decodeNumericEntity(3, 16), - this._sectionStart < this._index && - ((this._state = this._baseState), - this._handleTrailingData())) - : (this._decodeNumericEntity(2, 10), - this._sectionStart < this._index && - ((this._state = this._baseState), this._handleTrailingData())) - : (this._parseLegacyEntity(), - this._sectionStart < this._index && - ((this._state = this._baseState), this._handleTrailingData())); - }), - (me.prototype.reset = function() { - me.call( - this, - { xmlMode: this._xmlMode, decodeEntities: this._decodeEntities }, - this._cbs - ); - }), - (me.prototype.getAbsoluteIndex = function() { - return this._bufferOffset + this._index; - }), - (me.prototype._getSection = function() { - return this._buffer.substring(this._sectionStart, this._index); - }), - (me.prototype._emitToken = function(e) { - this._cbs[e](this._getSection()), (this._sectionStart = -1); - }), - (me.prototype._emitPartial = function(e) { - this._baseState !== c - ? this._cbs.onattribdata(e) - : this._cbs.ontext(e); - }); - }, - function(e, t, n) { - var r = n(90), - o = /\s+/g, - i = n(220), - a = n(559); - function s(e, t, n) { - 'object' == typeof e - ? ((n = t), (t = e), (e = null)) - : 'function' == typeof t && ((n = t), (t = c)), - (this._callback = e), - (this._options = t || c), - (this._elementCB = n), - (this.dom = []), - (this._done = !1), - (this._tagStack = []), - (this._parser = this._parser || null); + function bo(e) { + return [mo(e[0]), mo(e[1])]; } - var c = { - normalizeWhitespace: !1, - withStartIndices: !1, - withEndIndices: !1 - }; - (s.prototype.onparserinit = function(e) { - this._parser = e; - }), - (s.prototype.onreset = function() { - s.call(this, this._callback, this._options, this._elementCB); - }), - (s.prototype.onend = function() { - this._done || - ((this._done = !0), - (this._parser = null), - this._handleCallback(null)); - }), - (s.prototype._handleCallback = s.prototype.onerror = function(e) { - if ('function' == typeof this._callback) this._callback(e, this.dom); - else if (e) throw e; - }), - (s.prototype.onclosetag = function() { - var e = this._tagStack.pop(); - this._options.withEndIndices && - e && - (e.endIndex = this._parser.endIndex), - this._elementCB && this._elementCB(e); - }), - (s.prototype._createDomElement = function(e) { - if (!this._options.withDomLvl1) return e; - var t; - for (var n in ((t = - 'tag' === e.type ? Object.create(a) : Object.create(i)), - e)) - e.hasOwnProperty(n) && (t[n] = e[n]); - return t; - }), - (s.prototype._addDomElement = function(e) { - var t = this._tagStack[this._tagStack.length - 1], - n = t ? t.children : this.dom, - r = n[n.length - 1]; - (e.next = null), - this._options.withStartIndices && - (e.startIndex = this._parser.startIndex), - this._options.withEndIndices && - (e.endIndex = this._parser.endIndex), - r ? ((e.prev = r), (r.next = e)) : (e.prev = null), - n.push(e), - (e.parent = t || null); - }), - (s.prototype.onopentag = function(e, t) { - var n = { - type: 'script' === e ? r.Script : 'style' === e ? r.Style : r.Tag, - name: e, - attribs: t, - children: [] - }, - o = this._createDomElement(n); - this._addDomElement(o), this._tagStack.push(o); - }), - (s.prototype.ontext = function(e) { - var t, - n = - this._options.normalizeWhitespace || - this._options.ignoreWhitespace; - if ( - !this._tagStack.length && - this.dom.length && - (t = this.dom[this.dom.length - 1]).type === r.Text - ) - n ? (t.data = (t.data + e).replace(o, ' ')) : (t.data += e); - else if ( - this._tagStack.length && - (t = this._tagStack[this._tagStack.length - 1]) && - (t = t.children[t.children.length - 1]) && - t.type === r.Text - ) - n ? (t.data = (t.data + e).replace(o, ' ')) : (t.data += e); - else { - n && (e = e.replace(o, ' ')); - var i = this._createDomElement({ data: e, type: r.Text }); - this._addDomElement(i); - } - }), - (s.prototype.oncomment = function(e) { - var t = this._tagStack[this._tagStack.length - 1]; - if (t && t.type === r.Comment) t.data += e; - else { - var n = { data: e, type: r.Comment }, - o = this._createDomElement(n); - this._addDomElement(o), this._tagStack.push(o); - } - }), - (s.prototype.oncdatastart = function() { - var e = { children: [{ data: '', type: r.Text }], type: r.CDATA }, - t = this._createDomElement(e); - this._addDomElement(t), this._tagStack.push(t); - }), - (s.prototype.oncommentend = s.prototype.oncdataend = function() { - this._tagStack.pop(); - }), - (s.prototype.onprocessinginstruction = function(e, t) { - var n = this._createDomElement({ - name: e, - data: t, - type: r.Directive - }); - this._addDomElement(n); - }), - (e.exports = s); - }, - function(e, t) { - var n = (e.exports = { - get firstChild() { - var e = this.children; - return (e && e[0]) || null; + var yo = { + name: 'x', + handles: ['w', 'e'].map(Oo), + input: function(e, t) { + return null == e ? null : [[+e[0], t[0][1]], [+e[1], t[1][1]]]; }, - get lastChild() { - var e = this.children; - return (e && e[e.length - 1]) || null; + output: function(e) { + return e && [e[0][0], e[1][0]]; + } + }, + vo = { + name: 'y', + handles: ['n', 's'].map(Oo), + input: function(e, t) { + return null == e ? null : [[t[0][0], +e[0]], [t[1][0], +e[1]]]; }, - get nodeType() { - return o[this.type] || o.element; + output: function(e) { + return e && [e[0][1], e[1][1]]; } - }), - r = { - tagName: 'name', - childNodes: 'children', - parentNode: 'parent', - previousSibling: 'prev', - nextSibling: 'next', - nodeValue: 'data' }, - o = { element: 1, text: 3, cdata: 4, comment: 8 }; - Object.keys(r).forEach(function(e) { - var t = r[e]; - Object.defineProperty(n, e, { - get: function() { - return this[t] || null; + _o = { + name: 'xy', + handles: ['n', 'w', 'e', 's', 'nw', 'ne', 'sw', 'se'].map(Oo), + input: function(e) { + return null == e ? null : bo(e); }, - set: function(e) { - return (this[t] = e), e; + output: function(e) { + return e; } - }); - }); - }, - function(e, t, n) { - var r = e.exports; - [n(561), n(569), n(570), n(571), n(572), n(573)].forEach(function(e) { - Object.keys(e).forEach(function(t) { - r[t] = e[t].bind(r); - }); - }); - }, - function(e, t, n) { - 'use strict'; - var r = - (this && this.__importDefault) || - function(e) { - return e && e.__esModule ? e : { default: e }; - }; - Object.defineProperty(t, '__esModule', { value: !0 }); - var o = r(n(223)), - i = r(n(565)), - a = r(n(224)), - s = r(n(566)); - function c(e) { - var t = Object.keys(e).join('|'), - n = l(e), - r = new RegExp( - '&(?:' + (t += '|#[xX][\\da-fA-F]+|#\\d+') + ');', - 'g' - ); - return function(e) { - return String(e).replace(r, n); - }; - } - (t.decodeXML = c(a.default)), (t.decodeHTMLStrict = c(o.default)); - var u = function(e, t) { - return e < t ? 1 : -1; - }; - function l(e) { - return function(t) { - return '#' === t.charAt(1) - ? 'X' === t.charAt(2) || 'x' === t.charAt(2) - ? s.default(parseInt(t.substr(3), 16)) - : s.default(parseInt(t.substr(2), 10)) - : e[t.slice(1, -1)]; + }, + wo = { + overlay: 'crosshair', + selection: 'move', + n: 'ns-resize', + e: 'ew-resize', + s: 'ns-resize', + w: 'ew-resize', + nw: 'nwse-resize', + ne: 'nesw-resize', + se: 'nwse-resize', + sw: 'nesw-resize' + }, + xo = { e: 'w', w: 'e', nw: 'ne', ne: 'nw', se: 'sw', sw: 'se' }, + Mo = { n: 's', s: 'n', nw: 'sw', ne: 'se', se: 'ne', sw: 'nw' }, + ko = { + overlay: 1, + selection: 1, + n: null, + e: 1, + s: null, + w: -1, + nw: -1, + ne: 1, + se: 1, + sw: -1 + }, + So = { + overlay: 1, + selection: 1, + n: -1, + e: null, + s: 1, + w: null, + nw: -1, + ne: -1, + se: 1, + sw: 1 }; + function Oo(e) { + return { type: e }; } - t.decodeHTML = (function() { - for ( - var e = Object.keys(i.default).sort(u), - t = Object.keys(o.default).sort(u), - n = 0, - r = 0; - n < t.length; - n++ - ) - e[r] === t[n] ? ((t[n] += ';?'), r++) : (t[n] += ';'); - var a = new RegExp( - '&(?:' + t.join('|') + '|#[xX][\\da-fA-F]+;?|#\\d+;?)', - 'g' - ), - s = l(o.default); - function c(e) { - return ';' !== e.substr(-1) && (e += ';'), s(e); - } - return function(e) { - return String(e).replace(a, c); - }; - })(); - }, - function(e) { - e.exports = JSON.parse( - '{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}' - ); - }, - function(e) { - e.exports = JSON.parse( - '{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}' - ); - }, - function(e, t, n) { - 'use strict'; - var r = - (this && this.__importDefault) || - function(e) { - return e && e.__esModule ? e : { default: e }; - }; - Object.defineProperty(t, '__esModule', { value: !0 }); - var o = c(r(n(224)).default), - i = u(o); - t.encodeXML = h(o, i); - var a = c(r(n(223)).default), - s = u(a); - function c(e) { - return Object.keys(e) - .sort() - .reduce(function(t, n) { - return (t[e[n]] = '&' + n + ';'), t; - }, {}); + function Eo() { + return !ht.ctrlKey && !ht.button; } - function u(e) { - var t = [], - n = []; - return ( - Object.keys(e).forEach(function(e) { - return 1 === e.length ? t.push('\\' + e) : n.push(e); - }), - n.unshift('[' + t.join('') + ']'), - new RegExp(n.join('|'), 'g') - ); + function Ao() { + var e = this.ownerSVGElement || this; + return e.hasAttribute('viewBox') + ? [[(e = e.viewBox.baseVal).x, e.y], [e.x + e.width, e.y + e.height]] + : [[0, 0], [e.width.baseVal.value, e.height.baseVal.value]]; } - t.encodeHTML = h(a, s); - var l = /[^\0-\x7F]/g, - f = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g; - function d(e) { - return ( - '&#x' + - e - .charCodeAt(0) - .toString(16) - .toUpperCase() + - ';' - ); + function To() { + return navigator.maxTouchPoints || 'ontouchstart' in this; } - function p(e, t) { - return ( - '&#x' + - (1024 * (e.charCodeAt(0) - 55296) + e.charCodeAt(1) - 56320 + 65536) - .toString(16) - .toUpperCase() + - ';' - ); + function Co(e) { + for (; !e.__brush; ) if (!(e = e.parentNode)) return; + return e.__brush; } - function h(e, t) { - return function(n) { - return n - .replace(t, function(t) { - return e[t]; - }) - .replace(f, p) - .replace(l, d); - }; + function Lo(e) { + var t = e.__brush; + return t ? t.dim.output(t.selection) : null; } - var g = u(o); - t.escape = function(e) { - return e - .replace(g, d) - .replace(f, p) - .replace(l, d); - }; - }, - function(e, t, n) { - e.exports = s; - var r = n(217), - o = n(575).Writable, - i = n(576).StringDecoder, - a = n(146).Buffer; - function s(e, t) { - var n = (this._parser = new r(e, t)), - a = (this._decoder = new i()); - o.call(this, { decodeStrings: !1 }), - this.once('finish', function() { - n.end(a.end()); - }); + function Po() { + return zo(yo); } - n(111)(s, o), - (s.prototype._write = function(e, t, n) { - e instanceof a && (e = this._decoder.write(e)), - this._parser.write(e), - n(); - }); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }; - t.default = function(e, t) { - var n = r({}, (0, o.default)(e), { key: t }); - 'string' == typeof n.style || n.style instanceof String - ? (n.style = (0, i.default)(n.style)) - : delete n.style; - return n; - }; - var o = a(n(585)), - i = a(n(588)); - function a(e) { - return e && e.__esModule ? e : { default: e }; + function Do() { + return zo(vo); } - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = function(e) { - o.hasOwnProperty(e) || (o[e] = r.test(e)); - return o[e]; - }); - var r = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, - o = {}; - }, - function(e, t, n) { - var r = n(187), - o = n(64); - e.exports = function(e, t) { - return e && r(e, t, o); - }; - }, - function(e, t, n) { - var r = n(110); - e.exports = function(e) { - return 'function' == typeof e ? e : r; - }; - }, - function(e, t) { - e.exports = function(e, t) { - for (var n = -1, r = null == e ? 0 : e.length, o = Array(r); ++n < r; ) - o[n] = t(e[n], n, e); - return o; - }; - }, - function(e, t, n) { - var r = n(35); - e.exports = function(e) { - return e == e && !r(e); - }; - }, - function(e, t) { - e.exports = function(e, t) { - return function(n) { - return null != n && n[e] === t && (void 0 !== t || e in Object(n)); - }; - }; - }, - function(e, t, n) { - var r = n(235), - o = n(114); - e.exports = function(e, t) { - for (var n = 0, i = (t = r(t, e)).length; null != e && n < i; ) - e = e[o(t[n++])]; - return n && n == i ? e : void 0; - }; - }, - function(e, t, n) { - var r = n(22), - o = n(148), - i = n(604), - a = n(607); - e.exports = function(e, t) { - return r(e) ? e : o(e, t) ? [e] : i(a(e)); - }; - }, - function(e, t) { - e.exports = function(e, t) { - for ( - var n = -1, r = null == e ? 0 : e.length; - ++n < r && !1 !== t(e[n], n, e); - - ); - return e; - }; - }, - function(e, t, n) { - var r = n(209), - o = n(137), - i = n(143), - a = n(210), - s = Object.getOwnPropertySymbols - ? function(e) { - for (var t = []; e; ) r(t, i(e)), (e = o(e)); - return t; - } - : a; - e.exports = s; - }, - function(e, t, n) { - var r = n(35), - o = n(113), - i = /^\s+|\s+$/g, - a = /^[-+]0x[0-9a-f]+$/i, - s = /^0b[01]+$/i, - c = /^0o[0-7]+$/i, - u = parseInt; - e.exports = function(e) { - if ('number' == typeof e) return e; - if (o(e)) return NaN; - if (r(e)) { - var t = 'function' == typeof e.valueOf ? e.valueOf() : e; - e = r(t) ? t + '' : t; - } - if ('string' != typeof e) return 0 === e ? e : +e; - e = e.replace(i, ''); - var n = s.test(e); - return n || c.test(e) ? u(e.slice(2), n ? 2 : 8) : a.test(e) ? NaN : +e; + var jo = function() { + return zo(_o); }; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.ColorWrap = void 0); - var r = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }, - o = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - i = n(0), - a = u(i), - s = u(n(79)), - c = u(n(37)); - function u(e) { - return e && e.__esModule ? e : { default: e }; - } - var l = (t.ColorWrap = function(e) { - var t = (function(t) { - function n(e) { - !(function(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - })(this, n); - var t = (function(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - })(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this)); - return ( - (t.handleChange = function(e, n) { - if (c.default.simpleCheckForValidColor(e)) { - var r = c.default.toState(e, e.h || t.state.oldHue); - t.setState(r), - t.props.onChangeComplete && - t.debounce(t.props.onChangeComplete, r, n), - t.props.onChange && t.props.onChange(r, n); - } - }), - (t.handleSwatchHover = function(e, n) { - if (c.default.simpleCheckForValidColor(e)) { - var r = c.default.toState(e, e.h || t.state.oldHue); - t.props.onSwatchHover && t.props.onSwatchHover(r, n); - } + function zo(e) { + var t, + n = Ao, + r = Eo, + o = To, + i = !0, + a = ge('start', 'brush', 'end'), + s = 6; + function c(t) { + var n = t + .property('__brush', g) + .selectAll('.overlay') + .data([Oo('overlay')]); + n + .enter() + .append('rect') + .attr('class', 'overlay') + .attr('pointer-events', 'all') + .attr('cursor', wo.overlay) + .merge(n) + .each(function() { + var e = Co(this).extent; + At(this) + .attr('x', e[0][0]) + .attr('y', e[0][1]) + .attr('width', e[1][0] - e[0][0]) + .attr('height', e[1][1] - e[0][1]); + }), + t + .selectAll('.selection') + .data([Oo('selection')]) + .enter() + .append('rect') + .attr('class', 'selection') + .attr('cursor', wo.selection) + .attr('fill', '#777') + .attr('fill-opacity', 0.3) + .attr('stroke', '#fff') + .attr('shape-rendering', 'crispEdges'); + var r = t.selectAll('.handle').data(e.handles, function(e) { + return e.type; + }); + r.exit().remove(), + r + .enter() + .append('rect') + .attr('class', function(e) { + return 'handle handle--' + e.type; + }) + .attr('cursor', function(e) { + return wo[e.type]; }), - (t.state = r({}, c.default.toState(e.color, 0))), - (t.debounce = (0, s.default)(function(e, t, n) { - e(t, n); - }, 100)), - t - ); + t + .each(u) + .attr('fill', 'none') + .attr('pointer-events', 'all') + .on('mousedown.brush', d) + .filter(o) + .on('touchstart.brush', d) + .on('touchmove.brush', p) + .on('touchend.brush touchcancel.brush', h) + .style('touch-action', 'none') + .style('-webkit-tap-highlight-color', 'rgba(0,0,0,0)'); + } + function u() { + var e = At(this), + t = Co(this).selection; + t + ? (e + .selectAll('.selection') + .style('display', null) + .attr('x', t[0][0]) + .attr('y', t[0][1]) + .attr('width', t[1][0] - t[0][0]) + .attr('height', t[1][1] - t[0][1]), + e + .selectAll('.handle') + .style('display', null) + .attr('x', function(e) { + return 'e' === e.type[e.type.length - 1] + ? t[1][0] - s / 2 + : t[0][0] - s / 2; + }) + .attr('y', function(e) { + return 's' === e.type[0] ? t[1][1] - s / 2 : t[0][1] - s / 2; + }) + .attr('width', function(e) { + return 'n' === e.type || 's' === e.type + ? t[1][0] - t[0][0] + s + : s; + }) + .attr('height', function(e) { + return 'e' === e.type || 'w' === e.type + ? t[1][1] - t[0][1] + s + : s; + })) + : e + .selectAll('.selection,.handle') + .style('display', 'none') + .attr('x', null) + .attr('y', null) + .attr('width', null) + .attr('height', null); + } + function l(e, t, n) { + return (!n && e.__brush.emitter) || new f(e, t); + } + function f(e, t) { + (this.that = e), + (this.args = t), + (this.state = e.__brush), + (this.active = 0); + } + function d() { + if ((!t || ht.touches) && r.apply(this, arguments)) { + var n, + o, + a, + s, + c, + f, + d, + p, + h, + g, + m, + b, + y = this, + v = ht.target.__data__.type, + _ = + 'selection' === (i && ht.metaKey ? (v = 'overlay') : v) + ? fo + : i && ht.altKey + ? go + : ho, + w = e === vo ? null : ko[v], + x = e === yo ? null : So[v], + M = Co(y), + k = M.extent, + S = M.selection, + O = k[0][0], + E = k[0][1], + A = k[1][0], + T = k[1][1], + C = 0, + L = 0, + P = w && x && i && ht.shiftKey, + D = ht.touches + ? ((b = ht.changedTouches[0].identifier), + function(e) { + return Rn(e, ht.touches, b); + }) + : In, + j = D(y), + z = j, + N = l(y, arguments, !0).beforestart(); + 'overlay' === v + ? (S && (h = !0), + (M.selection = S = [ + [(n = e === vo ? O : j[0]), (a = e === yo ? E : j[1])], + [(c = e === vo ? A : n), (d = e === yo ? T : a)] + ])) + : ((n = S[0][0]), (a = S[0][1]), (c = S[1][0]), (d = S[1][1])), + (o = n), + (s = a), + (f = c), + (p = d); + var R = At(y).attr('pointer-events', 'none'), + I = R.selectAll('.overlay').attr('cursor', wo[v]); + if (ht.touches) (N.moved = q), (N.ended = H); + else { + var F = At(ht.view) + .on('mousemove.brush', q, !0) + .on('mouseup.brush', H, !0); + i && + F.on( + 'keydown.brush', + function() { + switch (ht.keyCode) { + case 16: + P = w && x; + break; + case 18: + _ === ho && + (w && ((c = f - C * w), (n = o + C * w)), + x && ((d = p - L * x), (a = s + L * x)), + (_ = go), + B()); + break; + case 32: + (_ !== ho && _ !== go) || + (w < 0 ? (c = f - C) : w > 0 && (n = o - C), + x < 0 ? (d = p - L) : x > 0 && (a = s - L), + (_ = po), + I.attr('cursor', wo.selection), + B()); + break; + default: + return; + } + lo(); + }, + !0 + ).on( + 'keyup.brush', + function() { + switch (ht.keyCode) { + case 16: + P && ((g = m = P = !1), B()); + break; + case 18: + _ === go && + (w < 0 ? (c = f) : w > 0 && (n = o), + x < 0 ? (d = p) : x > 0 && (a = s), + (_ = ho), + B()); + break; + case 32: + _ === po && + (ht.altKey + ? (w && ((c = f - C * w), (n = o + C * w)), + x && ((d = p - L * x), (a = s + L * x)), + (_ = go)) + : (w < 0 ? (c = f) : w > 0 && (n = o), + x < 0 ? (d = p) : x > 0 && (a = s), + (_ = ho)), + I.attr('cursor', wo[v]), + B()); + break; + default: + return; + } + lo(); + }, + !0 + ), + Lt(ht.view); + } + uo(), _r(y), u.call(y), N.start(); } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t + function q() { + var e = D(y); + !P || + g || + m || + (Math.abs(e[0] - z[0]) > Math.abs(e[1] - z[1]) + ? (m = !0) + : (g = !0)), + (z = e), + (h = !0), + lo(), + B(); + } + function B() { + var e; + switch (((C = z[0] - j[0]), (L = z[1] - j[1]), _)) { + case po: + case fo: + w && + ((C = Math.max(O - n, Math.min(A - c, C))), + (o = n + C), + (f = c + C)), + x && + ((L = Math.max(E - a, Math.min(T - d, L))), + (s = a + L), + (p = d + L)); + break; + case ho: + w < 0 + ? ((C = Math.max(O - n, Math.min(A - n, C))), + (o = n + C), + (f = c)) + : w > 0 && + ((C = Math.max(O - c, Math.min(A - c, C))), + (o = n), + (f = c + C)), + x < 0 + ? ((L = Math.max(E - a, Math.min(T - a, L))), + (s = a + L), + (p = d)) + : x > 0 && + ((L = Math.max(E - d, Math.min(T - d, L))), + (s = a), + (p = d + L)); + break; + case go: + w && + ((o = Math.max(O, Math.min(A, n - C * w))), + (f = Math.max(O, Math.min(A, c + C * w)))), + x && + ((s = Math.max(E, Math.min(T, a - L * x))), + (p = Math.max(E, Math.min(T, d + L * x)))); + } + f < o && + ((w *= -1), + (e = n), + (n = c), + (c = e), + (e = o), + (o = f), + (f = e), + v in xo && I.attr('cursor', wo[(v = xo[v])])), + p < s && + ((x *= -1), + (e = a), + (a = d), + (d = e), + (e = s), + (s = p), + (p = e), + v in Mo && I.attr('cursor', wo[(v = Mo[v])])), + M.selection && (S = M.selection), + g && ((o = S[0][0]), (f = S[1][0])), + m && ((s = S[0][1]), (p = S[1][1])), + (S[0][0] === o && + S[0][1] === s && + S[1][0] === f && + S[1][1] === p) || + ((M.selection = [[o, s], [f, p]]), u.call(y), N.brush()); + } + function H() { + if ((uo(), ht.touches)) { + if (ht.touches.length) return; + t && clearTimeout(t), + (t = setTimeout(function() { + t = null; + }, 500)); + } else + Pt(ht.view, h), + F.on( + 'keydown.brush keyup.brush mousemove.brush mouseup.brush', + null ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(n, t), - o( - n, - [ - { - key: 'render', - value: function() { - var t = {}; - return ( - this.props.onSwatchHover && - (t.onSwatchHover = this.handleSwatchHover), - a.default.createElement( - e, - r( - {}, - this.props, - this.state, - { onChange: this.handleChange }, - t - ) - ) - ); - } - } - ], - [ - { - key: 'getDerivedStateFromProps', - value: function(e, t) { - return r({}, c.default.toState(e.color, t.oldHue)); - } - } - ] - ), - n - ); - })(i.PureComponent || i.Component); + R.attr('pointer-events', 'all'), + I.attr('cursor', wo.overlay), + M.selection && (S = M.selection), + (function(e) { + return e[0][0] === e[1][0] || e[0][1] === e[1][1]; + })(S) && ((M.selection = null), u.call(y)), + N.end(); + } + } + function p() { + l(this, arguments).moved(); + } + function h() { + l(this, arguments).ended(); + } + function g() { + var t = this.__brush || { selection: null }; + return (t.extent = bo(n.apply(this, arguments))), (t.dim = e), t; + } return ( - (t.propTypes = r({}, e.propTypes)), - (t.defaultProps = r({}, e.defaultProps, { - color: { h: 250, s: 0.5, l: 0.2, a: 1 } - })), - t + (c.move = function(t, n) { + t.selection + ? t + .on('start.brush', function() { + l(this, arguments) + .beforestart() + .start(); + }) + .on('interrupt.brush end.brush', function() { + l(this, arguments).end(); + }) + .tween('brush', function() { + var t = this, + r = t.__brush, + o = l(t, arguments), + i = r.selection, + a = e.input( + 'function' == typeof n ? n.apply(this, arguments) : n, + r.extent + ), + s = jn(i, a); + function c(e) { + (r.selection = 1 === e && null === a ? null : s(e)), + u.call(t), + o.brush(); + } + return null !== i && null !== a ? c : c(1); + }) + : t.each(function() { + var t = this, + r = arguments, + o = t.__brush, + i = e.input( + 'function' == typeof n ? n.apply(t, r) : n, + o.extent + ), + a = l(t, r).beforestart(); + _r(t), + (o.selection = null === i ? null : i), + u.call(t), + a + .start() + .brush() + .end(); + }); + }), + (c.clear = function(e) { + c.move(e, null); + }), + (f.prototype = { + beforestart: function() { + return ( + 1 == ++this.active && + ((this.state.emitter = this), (this.starting = !0)), + this + ); + }, + start: function() { + return ( + this.starting + ? ((this.starting = !1), this.emit('start')) + : this.emit('brush'), + this + ); + }, + brush: function() { + return this.emit('brush'), this; + }, + end: function() { + return ( + 0 == --this.active && + (delete this.state.emitter, this.emit('end')), + this + ); + }, + emit: function(t) { + _t(new co(c, t, e.output(this.state.selection)), a.apply, a, [ + t, + this.that, + this.args + ]); + } + }), + (c.extent = function(e) { + return arguments.length + ? ((n = 'function' == typeof e ? e : so(bo(e))), c) + : n; + }), + (c.filter = function(e) { + return arguments.length + ? ((r = 'function' == typeof e ? e : so(!!e)), c) + : r; + }), + (c.touchable = function(e) { + return arguments.length + ? ((o = 'function' == typeof e ? e : so(!!e)), c) + : o; + }), + (c.handleSize = function(e) { + return arguments.length ? ((s = +e), c) : s; + }), + (c.keyModifiers = function(e) { + return arguments.length ? ((i = !!e), c) : i; + }), + (c.on = function() { + var e = a.on.apply(a, arguments); + return e === a ? c : e; + }), + c ); - }); - t.default = l; - }, - function(e, t, n) { - 'use strict'; - n.r(t), - n.d(t, 'red', function() { - return r; - }), - n.d(t, 'pink', function() { - return o; - }), - n.d(t, 'purple', function() { - return i; - }), - n.d(t, 'deepPurple', function() { - return a; - }), - n.d(t, 'indigo', function() { - return s; - }), - n.d(t, 'blue', function() { - return c; - }), - n.d(t, 'lightBlue', function() { - return u; - }), - n.d(t, 'cyan', function() { - return l; - }), - n.d(t, 'teal', function() { - return f; - }), - n.d(t, 'green', function() { - return d; - }), - n.d(t, 'lightGreen', function() { - return p; - }), - n.d(t, 'lime', function() { - return h; - }), - n.d(t, 'yellow', function() { - return g; - }), - n.d(t, 'amber', function() { - return m; - }), - n.d(t, 'orange', function() { - return b; - }), - n.d(t, 'deepOrange', function() { - return y; - }), - n.d(t, 'brown', function() { - return v; - }), - n.d(t, 'grey', function() { - return _; - }), - n.d(t, 'blueGrey', function() { - return x; - }), - n.d(t, 'darkText', function() { - return w; - }), - n.d(t, 'lightText', function() { - return M; - }), - n.d(t, 'darkIcons', function() { - return k; - }), - n.d(t, 'lightIcons', function() { - return S; - }), - n.d(t, 'white', function() { - return A; - }), - n.d(t, 'black', function() { - return O; - }); - var r = { - 50: '#ffebee', - 100: '#ffcdd2', - 200: '#ef9a9a', - 300: '#e57373', - 400: '#ef5350', - 500: '#f44336', - 600: '#e53935', - 700: '#d32f2f', - 800: '#c62828', - 900: '#b71c1c', - a100: '#ff8a80', - a200: '#ff5252', - a400: '#ff1744', - a700: '#d50000' + } + var No = Math.cos, + Ro = Math.sin, + Io = Math.PI, + Fo = Io / 2, + qo = 2 * Io, + Bo = Math.max; + function Ho(e) { + return function(t, n) { + return e( + t.source.value + t.target.value, + n.source.value + n.target.value + ); + }; + } + var Yo = function() { + var e = 0, + t = null, + n = null, + r = null; + function o(o) { + var i, + a, + s, + c, + u, + l, + f = o.length, + d = [], + p = x(f), + h = [], + g = [], + m = (g.groups = new Array(f)), + b = new Array(f * f); + for (i = 0, u = -1; ++u < f; ) { + for (a = 0, l = -1; ++l < f; ) a += o[u][l]; + d.push(a), h.push(x(f)), (i += a); + } + for ( + t && + p.sort(function(e, n) { + return t(d[e], d[n]); + }), + n && + h.forEach(function(e, t) { + e.sort(function(e, r) { + return n(o[t][e], o[t][r]); + }); + }), + c = (i = Bo(0, qo - e * f) / i) ? e : qo / f, + a = 0, + u = -1; + ++u < f; + + ) { + for (s = a, l = -1; ++l < f; ) { + var y = p[u], + v = h[y][l], + _ = o[y][v], + w = a, + M = (a += _ * i); + b[v * f + y] = { + index: y, + subindex: v, + startAngle: w, + endAngle: M, + value: _ + }; + } + (m[y] = { index: y, startAngle: s, endAngle: a, value: d[y] }), + (a += c); + } + for (u = -1; ++u < f; ) + for (l = u - 1; ++l < f; ) { + var k = b[l * f + u], + S = b[u * f + l]; + (k.value || S.value) && + g.push( + k.value < S.value + ? { source: S, target: k } + : { source: k, target: S } + ); + } + return r ? g.sort(r) : g; + } + return ( + (o.padAngle = function(t) { + return arguments.length ? ((e = Bo(0, t)), o) : e; + }), + (o.sortGroups = function(e) { + return arguments.length ? ((t = e), o) : t; + }), + (o.sortSubgroups = function(e) { + return arguments.length ? ((n = e), o) : n; + }), + (o.sortChords = function(e) { + return arguments.length + ? (null == e ? (r = null) : ((r = Ho(e))._ = e), o) + : r && r._; + }), + o + ); }, - o = { - 50: '#fce4ec', - 100: '#f8bbd0', - 200: '#f48fb1', - 300: '#f06292', - 400: '#ec407a', - 500: '#e91e63', - 600: '#d81b60', - 700: '#c2185b', - 800: '#ad1457', - 900: '#880e4f', - a100: '#ff80ab', - a200: '#ff4081', - a400: '#f50057', - a700: '#c51162' + Wo = Array.prototype.slice, + Vo = function(e) { + return function() { + return e; + }; }, - i = { - 50: '#f3e5f5', - 100: '#e1bee7', - 200: '#ce93d8', - 300: '#ba68c8', - 400: '#ab47bc', - 500: '#9c27b0', - 600: '#8e24aa', - 700: '#7b1fa2', - 800: '#6a1b9a', - 900: '#4a148c', - a100: '#ea80fc', - a200: '#e040fb', - a400: '#d500f9', - a700: '#aa00ff' + Uo = Math.PI, + Xo = 2 * Uo, + Go = Xo - 1e-6; + function Ko() { + (this._x0 = this._y0 = this._x1 = this._y1 = null), (this._ = ''); + } + function $o() { + return new Ko(); + } + Ko.prototype = $o.prototype = { + constructor: Ko, + moveTo: function(e, t) { + this._ += + 'M' + (this._x0 = this._x1 = +e) + ',' + (this._y0 = this._y1 = +t); }, - a = { - 50: '#ede7f6', - 100: '#d1c4e9', - 200: '#b39ddb', - 300: '#9575cd', - 400: '#7e57c2', - 500: '#673ab7', - 600: '#5e35b1', - 700: '#512da8', - 800: '#4527a0', - 900: '#311b92', - a100: '#b388ff', - a200: '#7c4dff', - a400: '#651fff', - a700: '#6200ea' + closePath: function() { + null !== this._x1 && + ((this._x1 = this._x0), (this._y1 = this._y0), (this._ += 'Z')); }, - s = { - 50: '#e8eaf6', - 100: '#c5cae9', - 200: '#9fa8da', - 300: '#7986cb', - 400: '#5c6bc0', - 500: '#3f51b5', - 600: '#3949ab', - 700: '#303f9f', - 800: '#283593', - 900: '#1a237e', - a100: '#8c9eff', - a200: '#536dfe', - a400: '#3d5afe', - a700: '#304ffe' + lineTo: function(e, t) { + this._ += 'L' + (this._x1 = +e) + ',' + (this._y1 = +t); }, - c = { - 50: '#e3f2fd', - 100: '#bbdefb', - 200: '#90caf9', - 300: '#64b5f6', - 400: '#42a5f5', - 500: '#2196f3', - 600: '#1e88e5', - 700: '#1976d2', - 800: '#1565c0', - 900: '#0d47a1', - a100: '#82b1ff', - a200: '#448aff', - a400: '#2979ff', - a700: '#2962ff' + quadraticCurveTo: function(e, t, n, r) { + this._ += + 'Q' + +e + ',' + +t + ',' + (this._x1 = +n) + ',' + (this._y1 = +r); }, - u = { - 50: '#e1f5fe', - 100: '#b3e5fc', - 200: '#81d4fa', - 300: '#4fc3f7', - 400: '#29b6f6', - 500: '#03a9f4', - 600: '#039be5', - 700: '#0288d1', - 800: '#0277bd', - 900: '#01579b', - a100: '#80d8ff', - a200: '#40c4ff', - a400: '#00b0ff', - a700: '#0091ea' + bezierCurveTo: function(e, t, n, r, o, i) { + this._ += + 'C' + + +e + + ',' + + +t + + ',' + + +n + + ',' + + +r + + ',' + + (this._x1 = +o) + + ',' + + (this._y1 = +i); }, - l = { - 50: '#e0f7fa', - 100: '#b2ebf2', - 200: '#80deea', - 300: '#4dd0e1', - 400: '#26c6da', - 500: '#00bcd4', - 600: '#00acc1', - 700: '#0097a7', - 800: '#00838f', - 900: '#006064', - a100: '#84ffff', - a200: '#18ffff', - a400: '#00e5ff', - a700: '#00b8d4' + arcTo: function(e, t, n, r, o) { + (e = +e), (t = +t), (n = +n), (r = +r), (o = +o); + var i = this._x1, + a = this._y1, + s = n - e, + c = r - t, + u = i - e, + l = a - t, + f = u * u + l * l; + if (o < 0) throw new Error('negative radius: ' + o); + if (null === this._x1) + this._ += 'M' + (this._x1 = e) + ',' + (this._y1 = t); + else if (f > 1e-6) + if (Math.abs(l * s - c * u) > 1e-6 && o) { + var d = n - i, + p = r - a, + h = s * s + c * c, + g = d * d + p * p, + m = Math.sqrt(h), + b = Math.sqrt(f), + y = + o * Math.tan((Uo - Math.acos((h + f - g) / (2 * m * b))) / 2), + v = y / b, + _ = y / m; + Math.abs(v - 1) > 1e-6 && + (this._ += 'L' + (e + v * u) + ',' + (t + v * l)), + (this._ += + 'A' + + o + + ',' + + o + + ',0,0,' + + +(l * d > u * p) + + ',' + + (this._x1 = e + _ * s) + + ',' + + (this._y1 = t + _ * c)); + } else this._ += 'L' + (this._x1 = e) + ',' + (this._y1 = t); + else; }, - f = { - 50: '#e0f2f1', - 100: '#b2dfdb', - 200: '#80cbc4', - 300: '#4db6ac', - 400: '#26a69a', - 500: '#009688', - 600: '#00897b', - 700: '#00796b', - 800: '#00695c', - 900: '#004d40', - a100: '#a7ffeb', - a200: '#64ffda', - a400: '#1de9b6', - a700: '#00bfa5' + arc: function(e, t, n, r, o, i) { + (e = +e), (t = +t), (i = !!i); + var a = (n = +n) * Math.cos(r), + s = n * Math.sin(r), + c = e + a, + u = t + s, + l = 1 ^ i, + f = i ? r - o : o - r; + if (n < 0) throw new Error('negative radius: ' + n); + null === this._x1 + ? (this._ += 'M' + c + ',' + u) + : (Math.abs(this._x1 - c) > 1e-6 || + Math.abs(this._y1 - u) > 1e-6) && + (this._ += 'L' + c + ',' + u), + n && + (f < 0 && (f = (f % Xo) + Xo), + f > Go + ? (this._ += + 'A' + + n + + ',' + + n + + ',0,1,' + + l + + ',' + + (e - a) + + ',' + + (t - s) + + 'A' + + n + + ',' + + n + + ',0,1,' + + l + + ',' + + (this._x1 = c) + + ',' + + (this._y1 = u)) + : f > 1e-6 && + (this._ += + 'A' + + n + + ',' + + n + + ',0,' + + +(f >= Uo) + + ',' + + l + + ',' + + (this._x1 = e + n * Math.cos(o)) + + ',' + + (this._y1 = t + n * Math.sin(o)))); }, - d = { - 50: '#e8f5e9', - 100: '#c8e6c9', - 200: '#a5d6a7', - 300: '#81c784', - 400: '#66bb6a', - 500: '#4caf50', - 600: '#43a047', - 700: '#388e3c', - 800: '#2e7d32', - 900: '#1b5e20', - a100: '#b9f6ca', - a200: '#69f0ae', - a400: '#00e676', - a700: '#00c853' + 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'; }, - p = { - 50: '#f1f8e9', - 100: '#dcedc8', - 200: '#c5e1a5', - 300: '#aed581', - 400: '#9ccc65', - 500: '#8bc34a', - 600: '#7cb342', - 700: '#689f38', - 800: '#558b2f', - 900: '#33691e', - a100: '#ccff90', - a200: '#b2ff59', - a400: '#76ff03', - a700: '#64dd17' + toString: function() { + return this._; + } + }; + var Qo = $o; + function Jo(e) { + return e.source; + } + function Zo(e) { + return e.target; + } + function ei(e) { + return e.radius; + } + function ti(e) { + return e.startAngle; + } + function ni(e) { + return e.endAngle; + } + var ri = function() { + var e = Jo, + t = Zo, + n = ei, + r = ti, + o = ni, + i = null; + function a() { + var a, + s = Wo.call(arguments), + c = e.apply(this, s), + u = t.apply(this, s), + l = +n.apply(this, ((s[0] = c), s)), + f = r.apply(this, s) - Fo, + d = o.apply(this, s) - Fo, + p = l * No(f), + h = l * Ro(f), + g = +n.apply(this, ((s[0] = u), s)), + m = r.apply(this, s) - Fo, + b = o.apply(this, s) - Fo; + if ( + (i || (i = a = Qo()), + i.moveTo(p, h), + i.arc(0, 0, l, f, d), + (f === m && d === b) || + (i.quadraticCurveTo(0, 0, g * No(m), g * Ro(m)), + i.arc(0, 0, g, m, b)), + i.quadraticCurveTo(0, 0, p, h), + i.closePath(), + a) + ) + return (i = null), a + '' || null; + } + return ( + (a.radius = function(e) { + return arguments.length + ? ((n = 'function' == typeof e ? e : Vo(+e)), a) + : n; + }), + (a.startAngle = function(e) { + return arguments.length + ? ((r = 'function' == typeof e ? e : Vo(+e)), a) + : r; + }), + (a.endAngle = function(e) { + return arguments.length + ? ((o = 'function' == typeof e ? e : Vo(+e)), a) + : o; + }), + (a.source = function(t) { + return arguments.length ? ((e = t), a) : e; + }), + (a.target = function(e) { + return arguments.length ? ((t = e), a) : t; + }), + (a.context = function(e) { + return arguments.length ? ((i = null == e ? null : e), a) : i; + }), + a + ); + }; + function oi() {} + function ii(e, t) { + var n = new oi(); + if (e instanceof oi) + e.each(function(e, t) { + n.set(t, e); + }); + else if (Array.isArray(e)) { + var r, + o = -1, + i = e.length; + if (null == t) for (; ++o < i; ) n.set(o, e[o]); + else for (; ++o < i; ) n.set(t((r = e[o]), o, e), r); + } else if (e) for (var a in e) n.set(a, e[a]); + return n; + } + oi.prototype = ii.prototype = { + constructor: oi, + has: function(e) { + return '$' + e in this; }, - h = { - 50: '#f9fbe7', - 100: '#f0f4c3', - 200: '#e6ee9c', - 300: '#dce775', - 400: '#d4e157', - 500: '#cddc39', - 600: '#c0ca33', - 700: '#afb42b', - 800: '#9e9d24', - 900: '#827717', - a100: '#f4ff81', - a200: '#eeff41', - a400: '#c6ff00', - a700: '#aeea00' + get: function(e) { + return this['$' + e]; }, - g = { - 50: '#fffde7', - 100: '#fff9c4', - 200: '#fff59d', - 300: '#fff176', - 400: '#ffee58', - 500: '#ffeb3b', - 600: '#fdd835', - 700: '#fbc02d', - 800: '#f9a825', - 900: '#f57f17', - a100: '#ffff8d', - a200: '#ffff00', - a400: '#ffea00', - a700: '#ffd600' + set: function(e, t) { + return (this['$' + e] = t), this; }, - m = { - 50: '#fff8e1', - 100: '#ffecb3', - 200: '#ffe082', - 300: '#ffd54f', - 400: '#ffca28', - 500: '#ffc107', - 600: '#ffb300', - 700: '#ffa000', - 800: '#ff8f00', - 900: '#ff6f00', - a100: '#ffe57f', - a200: '#ffd740', - a400: '#ffc400', - a700: '#ffab00' + remove: function(e) { + var t = '$' + e; + return t in this && delete this[t]; }, - b = { - 50: '#fff3e0', - 100: '#ffe0b2', - 200: '#ffcc80', - 300: '#ffb74d', - 400: '#ffa726', - 500: '#ff9800', - 600: '#fb8c00', - 700: '#f57c00', - 800: '#ef6c00', - 900: '#e65100', - a100: '#ffd180', - a200: '#ffab40', - a400: '#ff9100', - a700: '#ff6d00' + clear: function() { + for (var e in this) '$' === e[0] && delete this[e]; }, - y = { - 50: '#fbe9e7', - 100: '#ffccbc', - 200: '#ffab91', - 300: '#ff8a65', - 400: '#ff7043', - 500: '#ff5722', - 600: '#f4511e', - 700: '#e64a19', - 800: '#d84315', - 900: '#bf360c', - a100: '#ff9e80', - a200: '#ff6e40', - a400: '#ff3d00', - a700: '#dd2c00' - }, - v = { - 50: '#efebe9', - 100: '#d7ccc8', - 200: '#bcaaa4', - 300: '#a1887f', - 400: '#8d6e63', - 500: '#795548', - 600: '#6d4c41', - 700: '#5d4037', - 800: '#4e342e', - 900: '#3e2723' + keys: function() { + var e = []; + for (var t in this) '$' === t[0] && e.push(t.slice(1)); + return e; }, - _ = { - 50: '#fafafa', - 100: '#f5f5f5', - 200: '#eeeeee', - 300: '#e0e0e0', - 400: '#bdbdbd', - 500: '#9e9e9e', - 600: '#757575', - 700: '#616161', - 800: '#424242', - 900: '#212121' + values: function() { + var e = []; + for (var t in this) '$' === t[0] && e.push(this[t]); + return e; }, - x = { - 50: '#eceff1', - 100: '#cfd8dc', - 200: '#b0bec5', - 300: '#90a4ae', - 400: '#78909c', - 500: '#607d8b', - 600: '#546e7a', - 700: '#455a64', - 800: '#37474f', - 900: '#263238' + entries: function() { + var e = []; + for (var t in this) + '$' === t[0] && e.push({ key: t.slice(1), value: this[t] }); + return e; }, - w = { - primary: 'rgba(0, 0, 0, 0.87)', - secondary: 'rgba(0, 0, 0, 0.54)', - disabled: 'rgba(0, 0, 0, 0.38)', - dividers: 'rgba(0, 0, 0, 0.12)' + size: function() { + var e = 0; + for (var t in this) '$' === t[0] && ++e; + return e; }, - M = { - primary: 'rgba(255, 255, 255, 1)', - secondary: 'rgba(255, 255, 255, 0.7)', - disabled: 'rgba(255, 255, 255, 0.5)', - dividers: 'rgba(255, 255, 255, 0.12)' + empty: function() { + for (var e in this) if ('$' === e[0]) return !1; + return !0; }, - k = { active: 'rgba(0, 0, 0, 0.54)', inactive: 'rgba(0, 0, 0, 0.38)' }, - S = { - active: 'rgba(255, 255, 255, 1)', - inactive: 'rgba(255, 255, 255, 0.5)' + each: function(e) { + for (var t in this) '$' === t[0] && e(this[t], t.slice(1), this); + } + }; + var ai = ii, + si = function() { + var e, + t, + n, + r = [], + o = []; + function i(n, o, a, s) { + if (o >= r.length) + return null != e && n.sort(e), null != t ? t(n) : n; + for ( + var c, u, l, f = -1, d = n.length, p = r[o++], h = ai(), g = a(); + ++f < d; + + ) + (l = h.get((c = p((u = n[f])) + ''))) ? l.push(u) : h.set(c, [u]); + return ( + h.each(function(e, t) { + s(g, t, i(e, o, a, s)); + }), + g + ); + } + return (n = { + object: function(e) { + return i(e, 0, ci, ui); + }, + map: function(e) { + return i(e, 0, li, fi); + }, + entries: function(e) { + return (function e(n, i) { + if (++i > r.length) return n; + var a, + s = o[i - 1]; + return ( + null != t && i >= r.length + ? (a = n.entries()) + : ((a = []), + n.each(function(t, n) { + a.push({ key: n, values: e(t, i) }); + })), + null != s + ? a.sort(function(e, t) { + return s(e.key, t.key); + }) + : a + ); + })(i(e, 0, li, fi), 0); + }, + key: function(e) { + return r.push(e), n; + }, + sortKeys: function(e) { + return (o[r.length - 1] = e), n; + }, + sortValues: function(t) { + return (e = t), n; + }, + rollup: function(e) { + return (t = e), n; + } + }); + }; + function ci() { + return {}; + } + function ui(e, t, n) { + e[t] = n; + } + function li() { + return ai(); + } + function fi(e, t, n) { + e.set(t, n); + } + function di() {} + var pi = ai.prototype; + function hi(e, t) { + var n = new di(); + if (e instanceof di) + e.each(function(e) { + n.add(e); + }); + else if (e) { + var r = -1, + o = e.length; + if (null == t) for (; ++r < o; ) n.add(e[r]); + else for (; ++r < o; ) n.add(t(e[r], r, e)); + } + return n; + } + di.prototype = hi.prototype = { + constructor: di, + has: pi.has, + add: function(e) { + return (this['$' + (e += '')] = e), this; }, - A = '#ffffff', - O = '#000000'; - t.default = { - red: r, - pink: o, - purple: i, - deepPurple: a, - indigo: s, - blue: c, - lightBlue: u, - cyan: l, - teal: f, - green: d, - lightGreen: p, - lime: h, - yellow: g, - amber: m, - orange: b, - deepOrange: y, - brown: v, - grey: _, - blueGrey: x, - darkText: w, - lightText: M, - darkIcons: k, - lightIcons: S, - white: A, - black: O + remove: pi.remove, + clear: pi.clear, + values: pi.keys, + size: pi.size, + empty: pi.empty, + each: pi.each }; - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('af', { - months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split( - '_' - ), - weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split( - '_' - ), - weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'), - weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'), - meridiemParse: /vm|nm/i, - isPM: function(e) { - return /^nm$/i.test(e); - }, - meridiem: function(e, t, n) { - return e < 12 ? (n ? 'vm' : 'VM') : n ? 'nm' : 'NM'; - }, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Vandag om] LT', - nextDay: '[Môre om] LT', - nextWeek: 'dddd [om] LT', - lastDay: '[Gister om] LT', - lastWeek: '[Laas] dddd [om] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'oor %s', - past: '%s gelede', - s: "'n paar sekondes", - ss: '%d sekondes', - m: "'n minuut", - mm: '%d minute', - h: "'n uur", - hh: '%d ure', - d: "'n dag", - dd: '%d dae', - M: "'n maand", - MM: '%d maande', - y: "'n jaar", - yy: '%d jaar' - }, - dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, - ordinal: function(e) { - return e + (1 === e || 8 === e || e >= 20 ? 'ste' : 'de'); - }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = { - 1: '١', - 2: '٢', - 3: '٣', - 4: '٤', - 5: '٥', - 6: '٦', - 7: '٧', - 8: '٨', - 9: '٩', - 0: '٠' - }, - n = { - '١': '1', - '٢': '2', - '٣': '3', - '٤': '4', - '٥': '5', - '٦': '6', - '٧': '7', - '٨': '8', - '٩': '9', - '٠': '0' - }, - r = function(e) { - return 0 === e - ? 0 - : 1 === e - ? 1 - : 2 === e - ? 2 - : e % 100 >= 3 && e % 100 <= 10 - ? 3 - : e % 100 >= 11 - ? 4 - : 5; - }, - o = { - s: [ - 'أقل من ثانية', - 'ثانية واحدة', - ['ثانيتان', 'ثانيتين'], - '%d ثوان', - '%d ثانية', - '%d ثانية' - ], - m: [ - 'أقل من دقيقة', - 'دقيقة واحدة', - ['دقيقتان', 'دقيقتين'], - '%d دقائق', - '%d دقيقة', - '%d دقيقة' - ], - h: [ - 'أقل من ساعة', - 'ساعة واحدة', - ['ساعتان', 'ساعتين'], - '%d ساعات', - '%d ساعة', - '%d ساعة' - ], - d: [ - 'أقل من يوم', - 'يوم واحد', - ['يومان', 'يومين'], - '%d أيام', - '%d يومًا', - '%d يوم' - ], - M: [ - 'أقل من شهر', - 'شهر واحد', - ['شهران', 'شهرين'], - '%d أشهر', - '%d شهرا', - '%d شهر' - ], - y: [ - 'أقل من عام', - 'عام واحد', - ['عامان', 'عامين'], - '%d أعوام', - '%d عامًا', - '%d عام' - ] - }, - i = function(e) { - return function(t, n, i, a) { - var s = r(t), - c = o[e][r(t)]; - return 2 === s && (c = c[n ? 0 : 1]), c.replace(/%d/i, t); - }; - }, - a = [ - 'يناير', - 'فبراير', - 'مارس', - 'أبريل', - 'مايو', - 'يونيو', - 'يوليو', - 'أغسطس', - 'سبتمبر', - 'أكتوبر', - 'نوفمبر', - 'ديسمبر' - ]; - e.defineLocale('ar', { - months: a, - monthsShort: a, - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split( - '_' - ), - weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'D/‏M/‏YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - meridiemParse: /ص|م/, - isPM: function(e) { - return 'م' === e; - }, - meridiem: function(e, t, n) { - return e < 12 ? 'ص' : 'م'; - }, - calendar: { - sameDay: '[اليوم عند الساعة] LT', - nextDay: '[غدًا عند الساعة] LT', - nextWeek: 'dddd [عند الساعة] LT', - lastDay: '[أمس عند الساعة] LT', - lastWeek: 'dddd [عند الساعة] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'بعد %s', - past: 'منذ %s', - s: i('s'), - ss: i('s'), - m: i('m'), - mm: i('m'), - h: i('h'), - hh: i('h'), - d: i('d'), - dd: i('d'), - M: i('M'), - MM: i('M'), - y: i('y'), - yy: i('y') - }, - preparse: function(e) { - return e - .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function(e) { - return n[e]; - }) - .replace(/،/g, ','); - }, - postformat: function(e) { - return e - .replace(/\d/g, function(e) { - return t[e]; - }) - .replace(/,/g, '،'); - }, - week: { dow: 6, doy: 12 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('ar-dz', { - months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( - '_' - ), - monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( - '_' - ), - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split( - '_' - ), - weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'في %s', - past: 'منذ %s', - s: 'ثوان', - ss: '%d ثانية', - m: 'دقيقة', - mm: '%d دقائق', - h: 'ساعة', - hh: '%d ساعات', - d: 'يوم', - dd: '%d أيام', - M: 'شهر', - MM: '%d أشهر', - y: 'سنة', - yy: '%d سنوات' - }, - week: { dow: 0, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('ar-kw', { - months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( - '_' - ), - monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( - '_' - ), - weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split( - '_' - ), - weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'في %s', - past: 'منذ %s', - s: 'ثوان', - ss: '%d ثانية', - m: 'دقيقة', - mm: '%d دقائق', - h: 'ساعة', - hh: '%d ساعات', - d: 'يوم', - dd: '%d أيام', - M: 'شهر', - MM: '%d أشهر', - y: 'سنة', - yy: '%d سنوات' - }, - week: { dow: 0, doy: 12 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = { - 1: '1', - 2: '2', - 3: '3', - 4: '4', - 5: '5', - 6: '6', - 7: '7', - 8: '8', - 9: '9', - 0: '0' - }, - n = function(e) { - return 0 === e - ? 0 - : 1 === e - ? 1 - : 2 === e - ? 2 - : e % 100 >= 3 && e % 100 <= 10 - ? 3 - : e % 100 >= 11 - ? 4 - : 5; - }, - r = { - s: [ - 'أقل من ثانية', - 'ثانية واحدة', - ['ثانيتان', 'ثانيتين'], - '%d ثوان', - '%d ثانية', - '%d ثانية' - ], - m: [ - 'أقل من دقيقة', - 'دقيقة واحدة', - ['دقيقتان', 'دقيقتين'], - '%d دقائق', - '%d دقيقة', - '%d دقيقة' - ], - h: [ - 'أقل من ساعة', - 'ساعة واحدة', - ['ساعتان', 'ساعتين'], - '%d ساعات', - '%d ساعة', - '%d ساعة' - ], - d: [ - 'أقل من يوم', - 'يوم واحد', - ['يومان', 'يومين'], - '%d أيام', - '%d يومًا', - '%d يوم' - ], - M: [ - 'أقل من شهر', - 'شهر واحد', - ['شهران', 'شهرين'], - '%d أشهر', - '%d شهرا', - '%d شهر' - ], - y: [ - 'أقل من عام', - 'عام واحد', - ['عامان', 'عامين'], - '%d أعوام', - '%d عامًا', - '%d عام' - ] - }, - o = function(e) { - return function(t, o, i, a) { - var s = n(t), - c = r[e][n(t)]; - return 2 === s && (c = c[o ? 0 : 1]), c.replace(/%d/i, t); - }; - }, - i = [ - 'يناير', - 'فبراير', - 'مارس', - 'أبريل', - 'مايو', - 'يونيو', - 'يوليو', - 'أغسطس', - 'سبتمبر', - 'أكتوبر', - 'نوفمبر', - 'ديسمبر' - ]; - e.defineLocale('ar-ly', { - months: i, - monthsShort: i, - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split( - '_' - ), - weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'D/‏M/‏YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - meridiemParse: /ص|م/, - isPM: function(e) { - return 'م' === e; - }, - meridiem: function(e, t, n) { - return e < 12 ? 'ص' : 'م'; - }, - calendar: { - sameDay: '[اليوم عند الساعة] LT', - nextDay: '[غدًا عند الساعة] LT', - nextWeek: 'dddd [عند الساعة] LT', - lastDay: '[أمس عند الساعة] LT', - lastWeek: 'dddd [عند الساعة] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'بعد %s', - past: 'منذ %s', - s: o('s'), - ss: o('s'), - m: o('m'), - mm: o('m'), - h: o('h'), - hh: o('h'), - d: o('d'), - dd: o('d'), - M: o('M'), - MM: o('M'), - y: o('y'), - yy: o('y') - }, - preparse: function(e) { - return e.replace(/،/g, ','); - }, - postformat: function(e) { - return e - .replace(/\d/g, function(e) { - return t[e]; - }) - .replace(/,/g, '،'); - }, - week: { dow: 6, doy: 12 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('ar-ma', { - months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( - '_' - ), - monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( - '_' - ), - weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split( - '_' - ), - weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' + var gi = hi, + mi = function(e) { + var t = []; + for (var n in e) t.push(n); + return t; + }, + bi = function(e) { + var t = []; + for (var n in e) t.push(e[n]); + return t; + }, + yi = function(e) { + var t = []; + for (var n in e) t.push({ key: n, value: e[n] }); + return t; + }, + vi = Math.PI / 180, + _i = 180 / Math.PI, + wi = 0.96422, + xi = 1, + Mi = 0.82521, + ki = 4 / 29, + Si = 6 / 29, + Oi = 3 * Si * Si, + Ei = Si * Si * Si; + function Ai(e) { + if (e instanceof Li) return new Li(e.l, e.a, e.b, e.opacity); + if (e instanceof Fi) return qi(e); + e instanceof en || (e = Jt(e)); + var t, + n, + r = zi(e.r), + o = zi(e.g), + i = zi(e.b), + a = Pi((0.2225045 * r + 0.7168786 * o + 0.0606169 * i) / xi); + return ( + r === o && o === i + ? (t = n = a) + : ((t = Pi((0.4360747 * r + 0.3850649 * o + 0.1430804 * i) / wi)), + (n = Pi((0.0139322 * r + 0.0971045 * o + 0.7141733 * i) / Mi))), + new Li(116 * a - 16, 500 * (t - a), 200 * (a - n), e.opacity) + ); + } + function Ti(e, t) { + return new Li(e, 0, 0, null == t ? 1 : t); + } + function Ci(e, t, n, r) { + return 1 === arguments.length + ? Ai(e) + : new Li(e, t, n, null == r ? 1 : r); + } + function Li(e, t, n, r) { + (this.l = +e), (this.a = +t), (this.b = +n), (this.opacity = +r); + } + function Pi(e) { + return e > Ei ? Math.pow(e, 1 / 3) : e / Oi + ki; + } + function Di(e) { + return e > Si ? e * e * e : Oi * (e - ki); + } + function ji(e) { + return ( + 255 * + (e <= 0.0031308 ? 12.92 * e : 1.055 * Math.pow(e, 1 / 2.4) - 0.055) + ); + } + function zi(e) { + return (e /= 255) <= 0.04045 + ? e / 12.92 + : Math.pow((e + 0.055) / 1.055, 2.4); + } + function Ni(e) { + if (e instanceof Fi) return new Fi(e.h, e.c, e.l, e.opacity); + if ((e instanceof Li || (e = Ai(e)), 0 === e.a && 0 === e.b)) + return new Fi(NaN, 0 < e.l && e.l < 100 ? 0 : NaN, e.l, e.opacity); + var t = Math.atan2(e.b, e.a) * _i; + return new Fi( + t < 0 ? t + 360 : t, + Math.sqrt(e.a * e.a + e.b * e.b), + e.l, + e.opacity + ); + } + function Ri(e, t, n, r) { + return 1 === arguments.length + ? Ni(e) + : new Fi(n, t, e, null == r ? 1 : r); + } + function Ii(e, t, n, r) { + return 1 === arguments.length + ? Ni(e) + : new Fi(e, t, n, null == r ? 1 : r); + } + function Fi(e, t, n, r) { + (this.h = +e), (this.c = +t), (this.l = +n), (this.opacity = +r); + } + function qi(e) { + if (isNaN(e.h)) return new Li(e.l, 0, 0, e.opacity); + var t = e.h * vi; + return new Li(e.l, Math.cos(t) * e.c, Math.sin(t) * e.c, e.opacity); + } + Dt( + Li, + Ci, + jt(zt, { + brighter: function(e) { + return new Li( + this.l + 18 * (null == e ? 1 : e), + this.a, + this.b, + this.opacity + ); }, - calendar: { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L' + darker: function(e) { + return new Li( + this.l - 18 * (null == e ? 1 : e), + this.a, + this.b, + this.opacity + ); }, - relativeTime: { - future: 'في %s', - past: 'منذ %s', - s: 'ثوان', - ss: '%d ثانية', - m: 'دقيقة', - mm: '%d دقائق', - h: 'ساعة', - hh: '%d ساعات', - d: 'يوم', - dd: '%d أيام', - M: 'شهر', - MM: '%d أشهر', - y: 'سنة', - yy: '%d سنوات' + rgb: function() { + var e = (this.l + 16) / 116, + t = isNaN(this.a) ? e : e + this.a / 500, + n = isNaN(this.b) ? e : e - this.b / 200; + return new en( + ji( + 3.1338561 * (t = wi * Di(t)) - + 1.6168667 * (e = xi * Di(e)) - + 0.4906146 * (n = Mi * Di(n)) + ), + ji(-0.9787684 * t + 1.9161415 * e + 0.033454 * n), + ji(0.0719453 * t - 0.2289914 * e + 1.4052427 * n), + this.opacity + ); + } + }) + ), + Dt( + Fi, + Ii, + jt(zt, { + brighter: function(e) { + return new Fi( + this.h, + this.c, + this.l + 18 * (null == e ? 1 : e), + this.opacity + ); + }, + darker: function(e) { + return new Fi( + this.h, + this.c, + this.l - 18 * (null == e ? 1 : e), + this.opacity + ); + }, + rgb: function() { + return qi(this).rgb(); + } + }) + ); + var Bi = -0.29227, + Hi = -0.90649, + Yi = 1.97294, + Wi = Yi * Hi, + Vi = 1.78277 * Yi, + Ui = 1.78277 * Bi - -0.14861 * Hi; + function Xi(e, t, n, r) { + return 1 === arguments.length + ? (function(e) { + if (e instanceof Gi) return new Gi(e.h, e.s, e.l, e.opacity); + e instanceof en || (e = Jt(e)); + var t = e.r / 255, + n = e.g / 255, + r = e.b / 255, + o = (Ui * r + Wi * t - Vi * n) / (Ui + Wi - Vi), + i = r - o, + a = (Yi * (n - o) - Bi * i) / Hi, + s = Math.sqrt(a * a + i * i) / (Yi * o * (1 - o)), + c = s ? Math.atan2(a, i) * _i - 120 : NaN; + return new Gi(c < 0 ? c + 360 : c, s, o, e.opacity); + })(e) + : new Gi(e, t, n, null == r ? 1 : r); + } + function Gi(e, t, n, r) { + (this.h = +e), (this.s = +t), (this.l = +n), (this.opacity = +r); + } + Dt( + Gi, + Xi, + jt(zt, { + brighter: function(e) { + return ( + (e = null == e ? 1 / 0.7 : Math.pow(1 / 0.7, e)), + new Gi(this.h, this.s, this.l * e, this.opacity) + ); }, - week: { dow: 6, doy: 12 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = { - 1: '١', - 2: '٢', - 3: '٣', - 4: '٤', - 5: '٥', - 6: '٦', - 7: '٧', - 8: '٨', - 9: '٩', - 0: '٠' + darker: function(e) { + return ( + (e = null == e ? 0.7 : Math.pow(0.7, e)), + new Gi(this.h, this.s, this.l * e, this.opacity) + ); }, - n = { - '١': '1', - '٢': '2', - '٣': '3', - '٤': '4', - '٥': '5', - '٦': '6', - '٧': '7', - '٨': '8', - '٩': '9', - '٠': '0' + rgb: function() { + var e = isNaN(this.h) ? 0 : (this.h + 120) * vi, + t = +this.l, + n = isNaN(this.s) ? 0 : this.s * t * (1 - t), + r = Math.cos(e), + o = Math.sin(e); + return new en( + 255 * (t + n * (-0.14861 * r + 1.78277 * o)), + 255 * (t + n * (Bi * r + Hi * o)), + 255 * (t + n * (Yi * r)), + this.opacity + ); + } + }) + ); + var Ki = Array.prototype.slice, + $i = function(e, t) { + return e - t; + }, + Qi = function(e) { + for ( + var t = 0, + n = e.length, + r = e[n - 1][1] * e[0][0] - e[n - 1][0] * e[0][1]; + ++t < n; + + ) + r += e[t - 1][1] * e[t][0] - e[t - 1][0] * e[t][1]; + return r; + }, + Ji = function(e) { + return function() { + return e; }; - e.defineLocale('ar-sa', { - months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( - '_' - ), - monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( - '_' - ), - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split( - '_' - ), - weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - meridiemParse: /ص|م/, - isPM: function(e) { - return 'م' === e; - }, - meridiem: function(e, t, n) { - return e < 12 ? 'ص' : 'م'; - }, - calendar: { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'في %s', - past: 'منذ %s', - s: 'ثوان', - ss: '%d ثانية', - m: 'دقيقة', - mm: '%d دقائق', - h: 'ساعة', - hh: '%d ساعات', - d: 'يوم', - dd: '%d أيام', - M: 'شهر', - MM: '%d أشهر', - y: 'سنة', - yy: '%d سنوات' - }, - preparse: function(e) { - return e - .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function(e) { - return n[e]; - }) - .replace(/،/g, ','); - }, - postformat: function(e) { - return e - .replace(/\d/g, function(e) { - return t[e]; - }) - .replace(/,/g, '،'); - }, - week: { dow: 0, doy: 6 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('ar-tn', { - months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( - '_' - ), - monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( - '_' - ), - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split( - '_' - ), - weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'في %s', - past: 'منذ %s', - s: 'ثوان', - ss: '%d ثانية', - m: 'دقيقة', - mm: '%d دقائق', - h: 'ساعة', - hh: '%d ساعات', - d: 'يوم', - dd: '%d أيام', - M: 'شهر', - MM: '%d أشهر', - y: 'سنة', - yy: '%d سنوات' - }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = { - 1: '-inci', - 5: '-inci', - 8: '-inci', - 70: '-inci', - 80: '-inci', - 2: '-nci', - 7: '-nci', - 20: '-nci', - 50: '-nci', - 3: '-üncü', - 4: '-üncü', - 100: '-üncü', - 6: '-ncı', - 9: '-uncu', - 10: '-uncu', - 30: '-uncu', - 60: '-ıncı', - 90: '-ıncı' + }, + Zi = function(e, t) { + for (var n, r = -1, o = t.length; ++r < o; ) + if ((n = ea(e, t[r]))) return n; + return 0; }; - e.defineLocale('az', { - months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split( - '_' - ), - monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split( - '_' - ), - weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split( - '_' - ), - weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'), - weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[bugün saat] LT', - nextDay: '[sabah saat] LT', - nextWeek: '[gələn həftə] dddd [saat] LT', - lastDay: '[dünən] LT', - lastWeek: '[keçən həftə] dddd [saat] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s sonra', - past: '%s əvvəl', - s: 'birneçə saniyə', - ss: '%d saniyə', - m: 'bir dəqiqə', - mm: '%d dəqiqə', - h: 'bir saat', - hh: '%d saat', - d: 'bir gün', - dd: '%d gün', - M: 'bir ay', - MM: '%d ay', - y: 'bir il', - yy: '%d il' - }, - meridiemParse: /gecə|səhər|gündüz|axşam/, - isPM: function(e) { - return /^(gündüz|axşam)$/.test(e); - }, - meridiem: function(e, t, n) { - return e < 4 - ? 'gecə' - : e < 12 - ? 'səhər' - : e < 17 - ? 'gündüz' - : 'axşam'; - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/, - ordinal: function(e) { - if (0 === e) return e + '-ıncı'; - var n = e % 10; - return e + (t[n] || t[(e % 100) - n] || t[e >= 100 ? 100 : null]); - }, - week: { dow: 1, doy: 7 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - function t(e, t, n) { - var r, o; - return 'm' === n - ? t - ? 'хвіліна' - : 'хвіліну' - : 'h' === n - ? t - ? 'гадзіна' - : 'гадзіну' - : e + - ' ' + - ((r = +e), - (o = { - ss: t ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд', - mm: t ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін', - hh: t ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін', - dd: 'дзень_дні_дзён', - MM: 'месяц_месяцы_месяцаў', - yy: 'год_гады_гадоў' - }[n].split('_')), - r % 10 == 1 && r % 100 != 11 - ? o[0] - : r % 10 >= 2 && r % 10 <= 4 && (r % 100 < 10 || r % 100 >= 20) - ? o[1] - : o[2]); + function ea(e, t) { + for ( + var n = t[0], r = t[1], o = -1, i = 0, a = e.length, s = a - 1; + i < a; + s = i++ + ) { + var c = e[i], + u = c[0], + l = c[1], + f = e[s], + d = f[0], + p = f[1]; + if (ta(c, f, t)) return 0; + l > r != p > r && n < ((d - u) * (r - l)) / (p - l) + u && (o = -o); } - e.defineLocale('be', { - months: { - format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split( - '_' - ), - standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split( - '_' - ) - }, - monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split( - '_' - ), - weekdays: { - format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split( - '_' - ), - standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split( - '_' - ), - isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/ - }, - weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'), - weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY г.', - LLL: 'D MMMM YYYY г., HH:mm', - LLLL: 'dddd, D MMMM YYYY г., HH:mm' - }, - calendar: { - sameDay: '[Сёння ў] LT', - nextDay: '[Заўтра ў] LT', - lastDay: '[Учора ў] LT', - nextWeek: function() { - return '[У] dddd [ў] LT'; - }, - lastWeek: function() { - switch (this.day()) { - case 0: - case 3: - case 5: - case 6: - return '[У мінулую] dddd [ў] LT'; - case 1: - case 2: - case 4: - return '[У мінулы] dddd [ў] LT'; - } - }, - sameElse: 'L' - }, - relativeTime: { - future: 'праз %s', - past: '%s таму', - s: 'некалькі секунд', - m: t, - mm: t, - h: t, - hh: t, - d: 'дзень', - dd: t, - M: 'месяц', - MM: t, - y: 'год', - yy: t - }, - meridiemParse: /ночы|раніцы|дня|вечара/, - isPM: function(e) { - return /^(дня|вечара)$/.test(e); - }, - meridiem: function(e, t, n) { - return e < 4 - ? 'ночы' - : e < 12 - ? 'раніцы' - : e < 17 - ? 'дня' - : 'вечара'; - }, - dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/, - ordinal: function(e, t) { - switch (t) { - case 'M': - case 'd': - case 'DDD': - case 'w': - case 'W': - return (e % 10 != 2 && e % 10 != 3) || - e % 100 == 12 || - e % 100 == 13 - ? e + '-ы' - : e + '-і'; - case 'D': - return e + '-га'; - default: - return e; + return o; + } + function ta(e, t, n) { + var r, o, i, a; + return ( + (function(e, t, n) { + return ( + (t[0] - e[0]) * (n[1] - e[1]) == (n[0] - e[0]) * (t[1] - e[1]) + ); + })(e, t, n) && + ((o = e[(r = +(e[0] === t[0]))]), + (i = n[r]), + (a = t[r]), + (o <= i && i <= a) || (a <= i && i <= o)) + ); + } + var na = function() {}, + ra = [ + [], + [[[1, 1.5], [0.5, 1]]], + [[[1.5, 1], [1, 1.5]]], + [[[1.5, 1], [0.5, 1]]], + [[[1, 0.5], [1.5, 1]]], + [[[1, 1.5], [0.5, 1]], [[1, 0.5], [1.5, 1]]], + [[[1, 0.5], [1, 1.5]]], + [[[1, 0.5], [0.5, 1]]], + [[[0.5, 1], [1, 0.5]]], + [[[1, 1.5], [1, 0.5]]], + [[[0.5, 1], [1, 0.5]], [[1.5, 1], [1, 1.5]]], + [[[1.5, 1], [1, 0.5]]], + [[[0.5, 1], [1.5, 1]]], + [[[1, 1.5], [1.5, 1]]], + [[[0.5, 1], [1, 1.5]]], + [] + ], + oa = function() { + var e = 1, + t = 1, + n = T, + r = s; + function o(e) { + var t = n(e); + if (Array.isArray(t)) t = t.slice().sort($i); + else { + var r = m(e), + o = r[0], + a = r[1]; + (t = A(o, a, t)), + (t = x(Math.floor(o / t) * t, Math.floor(a / t) * t, t)); } - }, - week: { dow: 1, doy: 7 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('bg', { - months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split( - '_' - ), - monthsShort: 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split( - '_' - ), - weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split( - '_' - ), - weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'), - weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'D.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY H:mm', - LLLL: 'dddd, D MMMM YYYY H:mm' - }, - calendar: { - sameDay: '[Днес в] LT', - nextDay: '[Утре в] LT', - nextWeek: 'dddd [в] LT', - lastDay: '[Вчера в] LT', - lastWeek: function() { - switch (this.day()) { - case 0: - case 3: - case 6: - return '[В изминалата] dddd [в] LT'; - case 1: - case 2: - case 4: - case 5: - return '[В изминалия] dddd [в] LT'; - } - }, - sameElse: 'L' - }, - relativeTime: { - future: 'след %s', - past: 'преди %s', - s: 'няколко секунди', - ss: '%d секунди', - m: 'минута', - mm: '%d минути', - h: 'час', - hh: '%d часа', - d: 'ден', - dd: '%d дни', - M: 'месец', - MM: '%d месеца', - y: 'година', - yy: '%d години' - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, - ordinal: function(e) { - var t = e % 10, - n = e % 100; - return 0 === e - ? e + '-ев' - : 0 === n - ? e + '-ен' - : n > 10 && n < 20 - ? e + '-ти' - : 1 === t - ? e + '-ви' - : 2 === t - ? e + '-ри' - : 7 === t || 8 === t - ? e + '-ми' - : e + '-ти'; - }, - week: { dow: 1, doy: 7 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('bm', { - months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split( - '_' - ), - monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split( - '_' - ), - weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'), - weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'), - weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'MMMM [tile] D [san] YYYY', - LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm', - LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm' - }, - calendar: { - sameDay: '[Bi lɛrɛ] LT', - nextDay: '[Sini lɛrɛ] LT', - nextWeek: 'dddd [don lɛrɛ] LT', - lastDay: '[Kunu lɛrɛ] LT', - lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s kɔnɔ', - past: 'a bɛ %s bɔ', - s: 'sanga dama dama', - ss: 'sekondi %d', - m: 'miniti kelen', - mm: 'miniti %d', - h: 'lɛrɛ kelen', - hh: 'lɛrɛ %d', - d: 'tile kelen', - dd: 'tile %d', - M: 'kalo kelen', - MM: 'kalo %d', - y: 'san kelen', - yy: 'san %d' - }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = { - 1: '১', - 2: '২', - 3: '৩', - 4: '৪', - 5: '৫', - 6: '৬', - 7: '৭', - 8: '৮', - 9: '৯', - 0: '০' - }, - n = { - '১': '1', - '২': '2', - '৩': '3', - '৪': '4', - '৫': '5', - '৬': '6', - '৭': '7', - '৮': '8', - '৯': '9', - '০': '0' - }; - e.defineLocale('bn', { - months: 'জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split( - '_' - ), - monthsShort: 'জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে'.split( - '_' - ), - weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split( - '_' - ), - weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'), - weekdaysMin: 'রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি'.split('_'), - longDateFormat: { - LT: 'A h:mm সময়', - LTS: 'A h:mm:ss সময়', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm সময়', - LLLL: 'dddd, D MMMM YYYY, A h:mm সময়' - }, - calendar: { - sameDay: '[আজ] LT', - nextDay: '[আগামীকাল] LT', - nextWeek: 'dddd, LT', - lastDay: '[গতকাল] LT', - lastWeek: '[গত] dddd, LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s পরে', - past: '%s আগে', - s: 'কয়েক সেকেন্ড', - ss: '%d সেকেন্ড', - m: 'এক মিনিট', - mm: '%d মিনিট', - h: 'এক ঘন্টা', - hh: '%d ঘন্টা', - d: 'এক দিন', - dd: '%d দিন', - M: 'এক মাস', - MM: '%d মাস', - y: 'এক বছর', - yy: '%d বছর' - }, - preparse: function(e) { - return e.replace(/[১২৩৪৫৬৭৮৯০]/g, function(e) { - return n[e]; - }); - }, - postformat: function(e) { - return e.replace(/\d/g, function(e) { - return t[e]; + return t.map(function(t) { + return i(e, t); }); - }, - meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/, - meridiemHour: function(e, t) { + } + function i(n, o) { + var i = [], + s = []; return ( - 12 === e && (e = 0), - ('রাত' === t && e >= 4) || - ('দুপুর' === t && e < 5) || - 'বিকাল' === t - ? e + 12 - : e + (function(n, r, o) { + var i, + s, + c, + u, + l, + f, + d = new Array(), + p = new Array(); + (i = s = -1), (u = n[0] >= r), ra[u << 1].forEach(h); + for (; ++i < e - 1; ) + (c = u), (u = n[i + 1] >= r), ra[c | (u << 1)].forEach(h); + ra[u << 0].forEach(h); + for (; ++s < t - 1; ) { + for ( + i = -1, + u = n[s * e + e] >= r, + l = n[s * e] >= r, + ra[(u << 1) | (l << 2)].forEach(h); + ++i < e - 1; + + ) + (c = u), + (u = n[s * e + e + i + 1] >= r), + (f = l), + (l = n[s * e + i + 1] >= r), + ra[c | (u << 1) | (l << 2) | (f << 3)].forEach(h); + ra[u | (l << 3)].forEach(h); + } + (i = -1), (l = n[s * e] >= r), ra[l << 2].forEach(h); + for (; ++i < e - 1; ) + (f = l), + (l = n[s * e + i + 1] >= r), + ra[(l << 2) | (f << 3)].forEach(h); + function h(e) { + var t, + n, + r = [e[0][0] + i, e[0][1] + s], + c = [e[1][0] + i, e[1][1] + s], + u = a(r), + l = a(c); + (t = p[u]) + ? (n = d[l]) + ? (delete p[t.end], + delete d[n.start], + t === n + ? (t.ring.push(c), o(t.ring)) + : (d[t.start] = p[n.end] = { + start: t.start, + end: n.end, + ring: t.ring.concat(n.ring) + })) + : (delete p[t.end], t.ring.push(c), (p[(t.end = l)] = t)) + : (t = d[l]) + ? (n = p[u]) + ? (delete d[t.start], + delete p[n.end], + t === n + ? (t.ring.push(c), o(t.ring)) + : (d[n.start] = p[t.end] = { + start: n.start, + end: t.end, + ring: n.ring.concat(t.ring) + })) + : (delete d[t.start], + t.ring.unshift(r), + (d[(t.start = u)] = t)) + : (d[u] = p[l] = { start: u, end: l, ring: [r, c] }); + } + ra[l << 3].forEach(h); + })(n, o, function(e) { + r(e, n, o), Qi(e) > 0 ? i.push([e]) : s.push(e); + }), + s.forEach(function(e) { + for (var t, n = 0, r = i.length; n < r; ++n) + if (-1 !== Zi((t = i[n])[0], e)) return void t.push(e); + }), + { type: 'MultiPolygon', value: o, coordinates: i } ); - }, - meridiem: function(e, t, n) { - return e < 4 - ? 'রাত' - : e < 10 - ? 'সকাল' - : e < 17 - ? 'দুপুর' - : e < 20 - ? 'বিকাল' - : 'রাত'; - }, - week: { dow: 0, doy: 6 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = { - 1: '༡', - 2: '༢', - 3: '༣', - 4: '༤', - 5: '༥', - 6: '༦', - 7: '༧', - 8: '༨', - 9: '༩', - 0: '༠' - }, - n = { - '༡': '1', - '༢': '2', - '༣': '3', - '༤': '4', - '༥': '5', - '༦': '6', - '༧': '7', - '༨': '8', - '༩': '9', - '༠': '0' - }; - e.defineLocale('bo', { - months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split( - '_' - ), - monthsShort: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split( - '_' - ), - weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split( - '_' - ), - weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split( - '_' - ), - weekdaysMin: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split( - '_' - ), - longDateFormat: { - LT: 'A h:mm', - LTS: 'A h:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm', - LLLL: 'dddd, D MMMM YYYY, A h:mm' - }, - calendar: { - sameDay: '[དི་རིང] LT', - nextDay: '[སང་ཉིན] LT', - nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT', - lastDay: '[ཁ་སང] LT', - lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s ལ་', - past: '%s སྔན་ལ', - s: 'ལམ་སང', - ss: '%d སྐར་ཆ།', - m: 'སྐར་མ་གཅིག', - mm: '%d སྐར་མ', - h: 'ཆུ་ཚོད་གཅིག', - hh: '%d ཆུ་ཚོད', - d: 'ཉིན་གཅིག', - dd: '%d ཉིན་', - M: 'ཟླ་བ་གཅིག', - MM: '%d ཟླ་བ', - y: 'ལོ་གཅིག', - yy: '%d ལོ' - }, - preparse: function(e) { - return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function(e) { - return n[e]; - }); - }, - postformat: function(e) { - return e.replace(/\d/g, function(e) { - return t[e]; + } + function a(t) { + return 2 * t[0] + t[1] * (e + 1) * 4; + } + function s(n, r, o) { + n.forEach(function(n) { + var i, + a = n[0], + s = n[1], + c = 0 | a, + u = 0 | s, + l = r[u * e + c]; + a > 0 && + a < e && + c === a && + ((i = r[u * e + c - 1]), (n[0] = a + (o - i) / (l - i) - 0.5)), + s > 0 && + s < t && + u === s && + ((i = r[(u - 1) * e + c]), + (n[1] = s + (o - i) / (l - i) - 0.5)); }); - }, - meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/, - meridiemHour: function(e, t) { + } + return ( + (o.contour = i), + (o.size = function(n) { + if (!arguments.length) return [e, t]; + var r = Math.ceil(n[0]), + i = Math.ceil(n[1]); + if (!(r > 0 && i > 0)) throw new Error('invalid size'); + return (e = r), (t = i), o; + }), + (o.thresholds = function(e) { + return arguments.length + ? ((n = + 'function' == typeof e + ? e + : Array.isArray(e) + ? Ji(Ki.call(e)) + : Ji(e)), + o) + : n; + }), + (o.smooth = function(e) { + return arguments.length ? ((r = e ? s : na), o) : r === s; + }), + o + ); + }; + function ia(e, t, n) { + for (var r = e.width, o = e.height, i = 1 + (n << 1), a = 0; a < o; ++a) + for (var s = 0, c = 0; s < r + n; ++s) + s < r && (c += e.data[s + a * r]), + s >= n && + (s >= i && (c -= e.data[s - i + a * r]), + (t.data[s - n + a * r] = + c / Math.min(s + 1, r - 1 + i - s, i))); + } + function aa(e, t, n) { + for (var r = e.width, o = e.height, i = 1 + (n << 1), a = 0; a < r; ++a) + for (var s = 0, c = 0; s < o + n; ++s) + s < o && (c += e.data[a + s * r]), + s >= n && + (s >= i && (c -= e.data[a + (s - i) * r]), + (t.data[a + (s - n) * r] = + c / Math.min(s + 1, o - 1 + i - s, i))); + } + function sa(e) { + return e[0]; + } + function ca(e) { + return e[1]; + } + function ua() { + return 1; + } + var la = function() { + var e = sa, + t = ca, + n = ua, + r = 960, + o = 500, + i = 20, + a = 2, + s = 3 * i, + c = (r + 2 * s) >> a, + u = (o + 2 * s) >> a, + l = Ji(20); + function f(r) { + var o = new Float32Array(c * u), + f = new Float32Array(c * u); + r.forEach(function(r, i, l) { + var f = (+e(r, i, l) + s) >> a, + d = (+t(r, i, l) + s) >> a, + p = +n(r, i, l); + f >= 0 && f < c && d >= 0 && d < u && (o[f + d * c] += p); + }), + ia( + { width: c, height: u, data: o }, + { width: c, height: u, data: f }, + i >> a + ), + aa( + { width: c, height: u, data: f }, + { width: c, height: u, data: o }, + i >> a + ), + ia( + { width: c, height: u, data: o }, + { width: c, height: u, data: f }, + i >> a + ), + aa( + { width: c, height: u, data: f }, + { width: c, height: u, data: o }, + i >> a + ), + ia( + { width: c, height: u, data: o }, + { width: c, height: u, data: f }, + i >> a + ), + aa( + { width: c, height: u, data: f }, + { width: c, height: u, data: o }, + i >> a + ); + var p = l(o); + if (!Array.isArray(p)) { + var h = j(o); + (p = A(0, h, p)), (p = x(0, Math.floor(h / p) * p, p)).shift(); + } + return oa() + .thresholds(p) + .size([c, u])(o) + .map(d); + } + function d(e) { return ( - 12 === e && (e = 0), - ('མཚན་མོ' === t && e >= 4) || - ('ཉིན་གུང' === t && e < 5) || - 'དགོང་དག' === t - ? e + 12 - : e + (e.value *= Math.pow(2, -2 * a)), e.coordinates.forEach(p), e ); - }, - meridiem: function(e, t, n) { - return e < 4 - ? 'མཚན་མོ' - : e < 10 - ? 'ཞོགས་ཀས' - : e < 17 - ? 'ཉིན་གུང' - : e < 20 - ? 'དགོང་དག' - : 'མཚན་མོ'; - }, - week: { dow: 0, doy: 6 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - function t(e, t, n) { + } + function p(e) { + e.forEach(h); + } + function h(e) { + e.forEach(g); + } + function g(e) { + (e[0] = e[0] * Math.pow(2, a) - s), + (e[1] = e[1] * Math.pow(2, a) - s); + } + function m() { + return (c = (r + 2 * (s = 3 * i)) >> a), (u = (o + 2 * s) >> a), f; + } return ( - e + - ' ' + - (function(e, t) { - return 2 === t - ? (function(e) { - var t = { m: 'v', b: 'v', d: 'z' }; - return void 0 === t[e.charAt(0)] - ? e - : t[e.charAt(0)] + e.substring(1); - })(e) + (f.x = function(t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : Ji(+t)), f) : e; - })({ mm: 'munutenn', MM: 'miz', dd: 'devezh' }[n], e) + }), + (f.y = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : Ji(+e)), f) + : t; + }), + (f.weight = function(e) { + return arguments.length + ? ((n = 'function' == typeof e ? e : Ji(+e)), f) + : n; + }), + (f.size = function(e) { + if (!arguments.length) return [r, o]; + var t = Math.ceil(e[0]), + n = Math.ceil(e[1]); + if (!(t >= 0 || t >= 0)) throw new Error('invalid size'); + return (r = t), (o = n), m(); + }), + (f.cellSize = function(e) { + if (!arguments.length) return 1 << a; + if (!((e = +e) >= 1)) throw new Error('invalid cell size'); + return (a = Math.floor(Math.log(e) / Math.LN2)), m(); + }), + (f.thresholds = function(e) { + return arguments.length + ? ((l = + 'function' == typeof e + ? e + : Array.isArray(e) + ? Ji(Ki.call(e)) + : Ji(e)), + f) + : l; + }), + (f.bandwidth = function(e) { + if (!arguments.length) return Math.sqrt(i * (i + 1)); + if (!((e = +e) >= 0)) throw new Error('invalid bandwidth'); + return (i = Math.round((Math.sqrt(4 * e * e + 1) - 1) / 2)), m(); + }), + f ); - } - e.defineLocale('br', { - months: "Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split( - '_' - ), - monthsShort: "Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split( - '_' - ), - weekdays: "Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split('_'), - weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'), - weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'h[e]mm A', - LTS: 'h[e]mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D [a viz] MMMM YYYY', - LLL: 'D [a viz] MMMM YYYY h[e]mm A', - LLLL: 'dddd, D [a viz] MMMM YYYY h[e]mm A' - }, - calendar: { - sameDay: '[Hiziv da] LT', - nextDay: "[Warc'hoazh da] LT", - nextWeek: 'dddd [da] LT', - lastDay: "[Dec'h da] LT", - lastWeek: 'dddd [paset da] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'a-benn %s', - past: "%s 'zo", - s: 'un nebeud segondennoù', - ss: '%d eilenn', - m: 'ur vunutenn', - mm: t, - h: 'un eur', - hh: '%d eur', - d: 'un devezh', - dd: t, - M: 'ur miz', - MM: t, - y: 'ur bloaz', - yy: function(e) { - switch ( - (function e(t) { - return t > 9 ? e(t % 10) : t; - })(e) - ) { - case 1: - case 3: - case 4: - case 5: - case 9: - return e + ' bloaz'; - default: - return e + ' vloaz'; - } + }, + fa = function(e) { + return function() { + return e; + }; + }; + function da(e, t, n, r, o, i, a, s, c, u) { + (this.target = e), + (this.type = t), + (this.subject = n), + (this.identifier = r), + (this.active = o), + (this.x = i), + (this.y = a), + (this.dx = s), + (this.dy = c), + (this._ = u); + } + function pa() { + return !ht.ctrlKey && !ht.button; + } + function ha() { + return this.parentNode; + } + function ga(e) { + return null == e ? { x: ht.x, y: ht.y } : e; + } + function ma() { + return navigator.maxTouchPoints || 'ontouchstart' in this; + } + da.prototype.on = function() { + var e = this._.on.apply(this._, arguments); + return e === this._ ? this : e; + }; + var ba = function() { + var e, + t, + n, + r, + o = pa, + i = ha, + a = ga, + s = ma, + c = {}, + u = ge('start', 'drag', 'end'), + l = 0, + f = 0; + function d(e) { + e.on('mousedown.drag', p) + .filter(s) + .on('touchstart.drag', m) + .on('touchmove.drag', b) + .on('touchend.drag touchcancel.drag', y) + .style('touch-action', 'none') + .style('-webkit-tap-highlight-color', 'rgba(0,0,0,0)'); + } + function p() { + if (!r && o.apply(this, arguments)) { + var a = v('mouse', i.apply(this, arguments), In, this, arguments); + a && + (At(ht.view) + .on('mousemove.drag', h, !0) + .on('mouseup.drag', g, !0), + Lt(ht.view), + Tt(), + (n = !1), + (e = ht.clientX), + (t = ht.clientY), + a('start')); } - }, - dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/, - ordinal: function(e) { - return e + (1 === e ? 'añ' : 'vet'); - }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - function t(e, t, n) { - var r = e + ' '; - switch (n) { - case 'ss': - return (r += - 1 === e - ? 'sekunda' - : 2 === e || 3 === e || 4 === e - ? 'sekunde' - : 'sekundi'); - case 'm': - return t ? 'jedna minuta' : 'jedne minute'; - case 'mm': - return (r += - 1 === e - ? 'minuta' - : 2 === e || 3 === e || 4 === e - ? 'minute' - : 'minuta'); - case 'h': - return t ? 'jedan sat' : 'jednog sata'; - case 'hh': - return (r += - 1 === e - ? 'sat' - : 2 === e || 3 === e || 4 === e - ? 'sata' - : 'sati'); - case 'dd': - return (r += 1 === e ? 'dan' : 'dana'); - case 'MM': - return (r += - 1 === e - ? 'mjesec' - : 2 === e || 3 === e || 4 === e - ? 'mjeseca' - : 'mjeseci'); - case 'yy': - return (r += - 1 === e - ? 'godina' - : 2 === e || 3 === e || 4 === e - ? 'godine' - : 'godina'); } - } - e.defineLocale('bs', { - months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split( - '_' - ), - monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( - '_' - ), - weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), - weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm' - }, - calendar: { - sameDay: '[danas u] LT', - nextDay: '[sutra u] LT', - nextWeek: function() { - switch (this.day()) { - case 0: - return '[u] [nedjelju] [u] LT'; - case 3: - return '[u] [srijedu] [u] LT'; - case 6: - return '[u] [subotu] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[u] dddd [u] LT'; + function h() { + if ((Ct(), !n)) { + var r = ht.clientX - e, + o = ht.clientY - t; + n = r * r + o * o > f; + } + c.mouse('drag'); + } + function g() { + At(ht.view).on('mousemove.drag mouseup.drag', null), + Pt(ht.view, n), + Ct(), + c.mouse('end'); + } + function m() { + if (o.apply(this, arguments)) { + var e, + t, + n = ht.changedTouches, + r = i.apply(this, arguments), + a = n.length; + for (e = 0; e < a; ++e) + (t = v(n[e].identifier, r, Rn, this, arguments)) && + (Tt(), t('start')); + } + } + function b() { + var e, + t, + n = ht.changedTouches, + r = n.length; + for (e = 0; e < r; ++e) + (t = c[n[e].identifier]) && (Ct(), t('drag')); + } + function y() { + var e, + t, + n = ht.changedTouches, + o = n.length; + for ( + r && clearTimeout(r), + r = setTimeout(function() { + r = null; + }, 500), + e = 0; + e < o; + ++e + ) + (t = c[n[e].identifier]) && (Tt(), t('end')); + } + function v(e, t, n, r, o) { + var i, + s, + f, + p = n(t, e), + h = u.copy(); + if ( + _t( + new da(d, 'beforestart', i, e, l, p[0], p[1], 0, 0, h), + function() { + return ( + null != (ht.subject = i = a.apply(r, o)) && + ((s = i.x - p[0] || 0), (f = i.y - p[1] || 0), !0) + ); + } + ) + ) + return function a(u) { + var g, + m = p; + switch (u) { + case 'start': + (c[e] = a), (g = l++); + break; + case 'end': + delete c[e], --l; + case 'drag': + (p = n(t, e)), (g = l); + } + _t( + new da( + d, + u, + i, + e, + g, + p[0] + s, + p[1] + f, + p[0] - m[0], + p[1] - m[1], + h + ), + h.apply, + h, + [u, r, o] + ); + }; + } + return ( + (d.filter = function(e) { + return arguments.length + ? ((o = 'function' == typeof e ? e : fa(!!e)), d) + : o; + }), + (d.container = function(e) { + return arguments.length + ? ((i = 'function' == typeof e ? e : fa(e)), d) + : i; + }), + (d.subject = function(e) { + return arguments.length + ? ((a = 'function' == typeof e ? e : fa(e)), d) + : a; + }), + (d.touchable = function(e) { + return arguments.length + ? ((s = 'function' == typeof e ? e : fa(!!e)), d) + : s; + }), + (d.on = function() { + var e = u.on.apply(u, arguments); + return e === u ? d : e; + }), + (d.clickDistance = function(e) { + return arguments.length ? ((f = (e = +e) * e), d) : Math.sqrt(f); + }), + d + ); + }, + ya = {}, + va = {}, + _a = 34, + wa = 10, + xa = 13; + function Ma(e) { + return new Function( + 'd', + 'return {' + + e + .map(function(e, t) { + return JSON.stringify(e) + ': d[' + t + '] || ""'; + }) + .join(',') + + '}' + ); + } + function ka(e) { + var t = Object.create(null), + n = []; + return ( + e.forEach(function(e) { + for (var r in e) r in t || n.push((t[r] = r)); + }), + n + ); + } + function Sa(e, t) { + var n = e + '', + r = n.length; + return r < t ? new Array(t - r + 1).join(0) + n : n; + } + function Oa(e) { + var t, + n = e.getUTCHours(), + r = e.getUTCMinutes(), + o = e.getUTCSeconds(), + i = e.getUTCMilliseconds(); + return isNaN(e) + ? 'Invalid Date' + : ((t = e.getUTCFullYear()) < 0 + ? '-' + Sa(-t, 6) + : t > 9999 + ? '+' + Sa(t, 6) + : Sa(t, 4)) + + '-' + + Sa(e.getUTCMonth() + 1, 2) + + '-' + + Sa(e.getUTCDate(), 2) + + (i + ? 'T' + + Sa(n, 2) + + ':' + + Sa(r, 2) + + ':' + + Sa(o, 2) + + '.' + + Sa(i, 3) + + 'Z' + : o + ? 'T' + Sa(n, 2) + ':' + Sa(r, 2) + ':' + Sa(o, 2) + 'Z' + : r || n + ? 'T' + Sa(n, 2) + ':' + Sa(r, 2) + 'Z' + : ''); + } + var Ea = function(e) { + var t = new RegExp('["' + e + '\n\r]'), + n = e.charCodeAt(0); + function r(e, t) { + var r, + o = [], + i = e.length, + a = 0, + s = 0, + c = i <= 0, + u = !1; + function l() { + if (c) return va; + if (u) return (u = !1), ya; + var t, + r, + o = a; + if (e.charCodeAt(o) === _a) { + for ( + ; + (a++ < i && e.charCodeAt(a) !== _a) || + e.charCodeAt(++a) === _a; + + ); + return ( + (t = a) >= i + ? (c = !0) + : (r = e.charCodeAt(a++)) === wa + ? (u = !0) + : r === xa && ((u = !0), e.charCodeAt(a) === wa && ++a), + e.slice(o + 1, t - 1).replace(/""/g, '"') + ); } - }, - lastDay: '[jučer u] LT', - lastWeek: function() { - switch (this.day()) { - case 0: - case 3: - return '[prošlu] dddd [u] LT'; - case 6: - return '[prošle] [subote] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[prošli] dddd [u] LT'; + for (; a < i; ) { + if ((r = e.charCodeAt((t = a++))) === wa) u = !0; + else if (r === xa) (u = !0), e.charCodeAt(a) === wa && ++a; + else if (r !== n) continue; + return e.slice(o, t); } + return (c = !0), e.slice(o, i); + } + for ( + e.charCodeAt(i - 1) === wa && --i, + e.charCodeAt(i - 1) === xa && --i; + (r = l()) !== va; + + ) { + for (var f = []; r !== ya && r !== va; ) f.push(r), (r = l()); + (t && null == (f = t(f, s++))) || o.push(f); + } + return o; + } + function o(t, n) { + return t.map(function(t) { + return n + .map(function(e) { + return a(t[e]); + }) + .join(e); + }); + } + function i(t) { + return t.map(a).join(e); + } + function a(e) { + return null == e + ? '' + : e instanceof Date + ? Oa(e) + : t.test((e += '')) + ? '"' + e.replace(/"/g, '""') + '"' + : e; + } + return { + parse: function(e, t) { + var n, + o, + i = r(e, function(e, r) { + if (n) return n(e, r - 1); + (o = e), + (n = t + ? (function(e, t) { + var n = Ma(e); + return function(r, o) { + return t(n(r), o, e); + }; + })(e, t) + : Ma(e)); + }); + return (i.columns = o || []), i; }, - sameElse: 'L' - }, - relativeTime: { - future: 'za %s', - past: 'prije %s', - s: 'par sekundi', - ss: t, - m: t, - mm: t, - h: t, - hh: t, - d: 'dan', - dd: t, - M: 'mjesec', - MM: t, - y: 'godinu', - yy: t - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 7 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('ca', { - months: { - standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split( - '_' - ), - format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split( - '_' - ), - isFormat: /D[oD]?(\s)+MMMM/ - }, - monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split( - '_' - ), - weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'), - weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM [de] YYYY', - ll: 'D MMM YYYY', - LLL: 'D MMMM [de] YYYY [a les] H:mm', - lll: 'D MMM YYYY, H:mm', - LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm', - llll: 'ddd D MMM YYYY, H:mm' - }, - calendar: { - sameDay: function() { - return '[avui a ' + (1 !== this.hours() ? 'les' : 'la') + '] LT'; - }, - nextDay: function() { - return '[demà a ' + (1 !== this.hours() ? 'les' : 'la') + '] LT'; - }, - nextWeek: function() { - return 'dddd [a ' + (1 !== this.hours() ? 'les' : 'la') + '] LT'; - }, - lastDay: function() { - return '[ahir a ' + (1 !== this.hours() ? 'les' : 'la') + '] LT'; - }, - lastWeek: function() { + parseRows: r, + format: function(t, n) { return ( - '[el] dddd [passat a ' + - (1 !== this.hours() ? 'les' : 'la') + - '] LT' + null == n && (n = ka(t)), + [n.map(a).join(e)].concat(o(t, n)).join('\n') ); }, - sameElse: 'L' - }, - relativeTime: { - future: "d'aquí %s", - past: 'fa %s', - s: 'uns segons', - ss: '%d segons', - m: 'un minut', - mm: '%d minuts', - h: 'una hora', - hh: '%d hores', - d: 'un dia', - dd: '%d dies', - M: 'un mes', - MM: '%d mesos', - y: 'un any', - yy: '%d anys' - }, - dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/, - ordinal: function(e, t) { - var n = - 1 === e - ? 'r' - : 2 === e - ? 'n' - : 3 === e - ? 'r' - : 4 === e - ? 't' - : 'è'; - return ('w' !== t && 'W' !== t) || (n = 'a'), e + n; - }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split( - '_' - ), - n = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'), - r = [ - /^led/i, - /^úno/i, - /^bře/i, - /^dub/i, - /^kvě/i, - /^(čvn|červen$|června)/i, - /^(čvc|červenec|července)/i, - /^srp/i, - /^zář/i, - /^říj/i, - /^lis/i, - /^pro/i - ], - o = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i; - function i(e) { - return e > 1 && e < 5 && 1 != ~~(e / 10); + formatBody: function(e, t) { + return null == t && (t = ka(e)), o(e, t).join('\n'); + }, + formatRows: function(e) { + return e.map(i).join('\n'); + }, + formatRow: i, + formatValue: a + }; + }, + Aa = Ea(','), + Ta = Aa.parse, + Ca = Aa.parseRows, + La = Aa.format, + Pa = Aa.formatBody, + Da = Aa.formatRows, + ja = Aa.formatRow, + za = Aa.formatValue, + Na = Ea('\t'), + Ra = Na.parse, + Ia = Na.parseRows, + Fa = Na.format, + qa = Na.formatBody, + Ba = Na.formatRows, + Ha = Na.formatRow, + Ya = Na.formatValue; + function Wa(e) { + for (var t in e) { + var n, + r, + o = e[t].trim(); + if (o) + if ('true' === o) o = !0; + else if ('false' === o) o = !1; + else if ('NaN' === o) o = NaN; + else if (isNaN((n = +o))) { + if ( + !(r = o.match( + /^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/ + )) + ) + continue; + Va && + r[4] && + !r[7] && + (o = o.replace(/-/g, '/').replace(/T/, ' ')), + (o = new Date(o)); + } else o = n; + else o = null; + e[t] = o; } - function a(e, t, n, r) { - var o = e + ' '; - switch (n) { - case 's': - return t || r ? 'pár sekund' : 'pár sekundami'; - case 'ss': - return t || r - ? o + (i(e) ? 'sekundy' : 'sekund') - : o + 'sekundami'; - case 'm': - return t ? 'minuta' : r ? 'minutu' : 'minutou'; - case 'mm': - return t || r ? o + (i(e) ? 'minuty' : 'minut') : o + 'minutami'; - case 'h': - return t ? 'hodina' : r ? 'hodinu' : 'hodinou'; - case 'hh': - return t || r ? o + (i(e) ? 'hodiny' : 'hodin') : o + 'hodinami'; - case 'd': - return t || r ? 'den' : 'dnem'; - case 'dd': - return t || r ? o + (i(e) ? 'dny' : 'dní') : o + 'dny'; - case 'M': - return t || r ? 'měsíc' : 'měsícem'; - case 'MM': - return t || r ? o + (i(e) ? 'měsíce' : 'měsíců') : o + 'měsíci'; - case 'y': - return t || r ? 'rok' : 'rokem'; - case 'yy': - return t || r ? o + (i(e) ? 'roky' : 'let') : o + 'lety'; + return e; + } + var Va = + new Date('2019-01-01T00:00').getHours() || + new Date('2019-07-01T00:00').getHours(); + function Ua(e) { + return +e; + } + function Xa(e) { + return e * e; + } + function Ga(e) { + return e * (2 - e); + } + function Ka(e) { + return ((e *= 2) <= 1 ? e * e : --e * (2 - e) + 1) / 2; + } + var $a = (function e(t) { + function n(e) { + return Math.pow(e, t); } - } - e.defineLocale('cs', { - months: t, - monthsShort: n, - monthsRegex: o, - monthsShortRegex: o, - monthsStrictRegex: /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i, - monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i, - monthsParse: r, - longMonthsParse: r, - shortMonthsParse: r, - weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split( - '_' - ), - weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'), - weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd D. MMMM YYYY H:mm', - l: 'D. M. YYYY' - }, - calendar: { - sameDay: '[dnes v] LT', - nextDay: '[zítra v] LT', - nextWeek: function() { - switch (this.day()) { + return (t = +t), (n.exponent = e), n; + })(3), + Qa = (function e(t) { + function n(e) { + return 1 - Math.pow(1 - e, t); + } + return (t = +t), (n.exponent = e), n; + })(3), + Ja = (function e(t) { + function n(e) { + return ( + ((e *= 2) <= 1 ? Math.pow(e, t) : 2 - Math.pow(2 - e, t)) / 2 + ); + } + return (t = +t), (n.exponent = e), n; + })(3), + Za = Math.PI, + es = Za / 2; + function ts(e) { + return 1 - Math.cos(e * es); + } + function ns(e) { + return Math.sin(e * es); + } + function rs(e) { + return (1 - Math.cos(Za * e)) / 2; + } + function os(e) { + return Math.pow(2, 10 * e - 10); + } + function is(e) { + return 1 - Math.pow(2, -10 * e); + } + function as(e) { + return ( + ((e *= 2) <= 1 + ? Math.pow(2, 10 * e - 10) + : 2 - Math.pow(2, 10 - 10 * e)) / 2 + ); + } + function ss(e) { + return 1 - Math.sqrt(1 - e * e); + } + function cs(e) { + return Math.sqrt(1 - --e * e); + } + function us(e) { + return ( + ((e *= 2) <= 1 + ? 1 - Math.sqrt(1 - e * e) + : Math.sqrt(1 - (e -= 2) * e) + 1) / 2 + ); + } + var ls = 4 / 11, + fs = 6 / 11, + ds = 8 / 11, + ps = 0.75, + hs = 9 / 11, + gs = 10 / 11, + ms = 0.9375, + bs = 21 / 22, + ys = 63 / 64, + vs = 1 / ls / ls; + function _s(e) { + return 1 - ws(1 - e); + } + function ws(e) { + return (e = +e) < ls + ? vs * e * e + : e < ds + ? vs * (e -= fs) * e + ps + : e < gs + ? vs * (e -= hs) * e + ms + : vs * (e -= bs) * e + ys; + } + function xs(e) { + return ((e *= 2) <= 1 ? 1 - ws(1 - e) : ws(e - 1) + 1) / 2; + } + var Ms = (function e(t) { + function n(e) { + return e * e * ((t + 1) * e - t); + } + return (t = +t), (n.overshoot = e), n; + })(1.70158), + ks = (function e(t) { + function n(e) { + return --e * e * ((t + 1) * e + t) + 1; + } + return (t = +t), (n.overshoot = e), n; + })(1.70158), + Ss = (function e(t) { + function n(e) { + return ( + ((e *= 2) < 1 + ? e * e * ((t + 1) * e - t) + : (e -= 2) * e * ((t + 1) * e + t) + 2) / 2 + ); + } + return (t = +t), (n.overshoot = e), n; + })(1.70158), + Os = 2 * Math.PI, + Es = (function e(t, n) { + var r = Math.asin(1 / (t = Math.max(1, t))) * (n /= Os); + function o(e) { + return t * Math.pow(2, 10 * --e) * Math.sin((r - e) / n); + } + return ( + (o.amplitude = function(t) { + return e(t, n * Os); + }), + (o.period = function(n) { + return e(t, n); + }), + o + ); + })(1, 0.3), + As = (function e(t, n) { + var r = Math.asin(1 / (t = Math.max(1, t))) * (n /= Os); + function o(e) { + return 1 - t * Math.pow(2, -10 * (e = +e)) * Math.sin((e + r) / n); + } + return ( + (o.amplitude = function(t) { + return e(t, n * Os); + }), + (o.period = function(n) { + return e(t, n); + }), + o + ); + })(1, 0.3), + Ts = (function e(t, n) { + var r = Math.asin(1 / (t = Math.max(1, t))) * (n /= Os); + function o(e) { + return ( + ((e = 2 * e - 1) < 0 + ? t * Math.pow(2, 10 * e) * Math.sin((r - e) / n) + : 2 - t * Math.pow(2, -10 * e) * Math.sin((r + e) / n)) / 2 + ); + } + return ( + (o.amplitude = function(t) { + return e(t, n * Os); + }), + (o.period = function(n) { + return e(t, n); + }), + o + ); + })(1, 0.3); + function Cs(e) { + if (!e.ok) throw new Error(e.status + ' ' + e.statusText); + return e.blob(); + } + var Ls = function(e, t) { + return fetch(e, t).then(Cs); + }; + function Ps(e) { + if (!e.ok) throw new Error(e.status + ' ' + e.statusText); + return e.arrayBuffer(); + } + var Ds = function(e, t) { + return fetch(e, t).then(Ps); + }; + function js(e) { + if (!e.ok) throw new Error(e.status + ' ' + e.statusText); + return e.text(); + } + var zs = function(e, t) { + return fetch(e, t).then(js); + }; + function Ns(e) { + return function(t, n, r) { + return ( + 2 === arguments.length && + 'function' == typeof n && + ((r = n), (n = void 0)), + zs(t, n).then(function(t) { + return e(t, r); + }) + ); + }; + } + function Rs(e, t, n, r) { + 3 === arguments.length && + 'function' == typeof n && + ((r = n), (n = void 0)); + var o = Ea(e); + return zs(t, n).then(function(e) { + return o.parse(e, r); + }); + } + var Is = Ns(Ta), + Fs = Ns(Ra), + qs = function(e, t) { + return new Promise(function(n, r) { + var o = new Image(); + for (var i in t) o[i] = t[i]; + (o.onerror = r), + (o.onload = function() { + n(o); + }), + (o.src = e); + }); + }; + function Bs(e) { + if (!e.ok) throw new Error(e.status + ' ' + e.statusText); + return e.json(); + } + var Hs = function(e, t) { + return fetch(e, t).then(Bs); + }; + function Ys(e) { + return function(t, n) { + return zs(t, n).then(function(t) { + return new DOMParser().parseFromString(t, e); + }); + }; + } + var Ws = Ys('application/xml'), + Vs = Ys('text/html'), + Us = Ys('image/svg+xml'), + Xs = function(e, t) { + var n; + function r() { + var r, + o, + i = n.length, + a = 0, + s = 0; + for (r = 0; r < i; ++r) (a += (o = n[r]).x), (s += o.y); + for (a = a / i - e, s = s / i - t, r = 0; r < i; ++r) + ((o = n[r]).x -= a), (o.y -= s); + } + return ( + null == e && (e = 0), + null == t && (t = 0), + (r.initialize = function(e) { + n = e; + }), + (r.x = function(t) { + return arguments.length ? ((e = +t), r) : e; + }), + (r.y = function(e) { + return arguments.length ? ((t = +e), r) : t; + }), + r + ); + }, + Gs = function(e) { + return function() { + return e; + }; + }, + Ks = function() { + return 1e-6 * (Math.random() - 0.5); + }; + function $s(e, t, n, r) { + if (isNaN(t) || isNaN(n)) return e; + var o, + i, + a, + s, + c, + u, + l, + f, + d, + p = e._root, + h = { data: r }, + g = e._x0, + m = e._y0, + b = e._x1, + y = e._y1; + if (!p) return (e._root = h), e; + for (; p.length; ) + if ( + ((u = t >= (i = (g + b) / 2)) ? (g = i) : (b = i), + (l = n >= (a = (m + y) / 2)) ? (m = a) : (y = a), + (o = p), + !(p = p[(f = (l << 1) | u)])) + ) + return (o[f] = h), e; + if ( + ((s = +e._x.call(null, p.data)), + (c = +e._y.call(null, p.data)), + t === s && n === c) + ) + return (h.next = p), o ? (o[f] = h) : (e._root = h), e; + do { + (o = o ? (o[f] = new Array(4)) : (e._root = new Array(4))), + (u = t >= (i = (g + b) / 2)) ? (g = i) : (b = i), + (l = n >= (a = (m + y) / 2)) ? (m = a) : (y = a); + } while ((f = (l << 1) | u) == (d = ((c >= a) << 1) | (s >= i))); + return (o[d] = p), (o[f] = h), e; + } + var Qs = function(e, t, n, r, o) { + (this.node = e), + (this.x0 = t), + (this.y0 = n), + (this.x1 = r), + (this.y1 = o); + }; + function Js(e) { + return e[0]; + } + function Zs(e) { + return e[1]; + } + function ec(e, t, n) { + var r = new tc( + null == t ? Js : t, + null == n ? Zs : n, + NaN, + NaN, + NaN, + NaN + ); + return null == e ? r : r.addAll(e); + } + function tc(e, t, n, r, o, i) { + (this._x = e), + (this._y = t), + (this._x0 = n), + (this._y0 = r), + (this._x1 = o), + (this._y1 = i), + (this._root = void 0); + } + function nc(e) { + for (var t = { data: e.data }, n = t; (e = e.next); ) + n = n.next = { data: e.data }; + return t; + } + var rc = (ec.prototype = tc.prototype); + function oc(e) { + return e.x + e.vx; + } + function ic(e) { + return e.y + e.vy; + } + (rc.copy = function() { + var e, + t, + n = new tc(this._x, this._y, this._x0, this._y0, this._x1, this._y1), + r = this._root; + if (!r) return n; + if (!r.length) return (n._root = nc(r)), n; + for ( + e = [{ source: r, target: (n._root = new Array(4)) }]; + (r = e.pop()); + + ) + for (var o = 0; o < 4; ++o) + (t = r.source[o]) && + (t.length + ? e.push({ source: t, target: (r.target[o] = new Array(4)) }) + : (r.target[o] = nc(t))); + return n; + }), + (rc.add = function(e) { + var t = +this._x.call(null, e), + n = +this._y.call(null, e); + return $s(this.cover(t, n), t, n, e); + }), + (rc.addAll = function(e) { + var t, + n, + r, + o, + i = e.length, + a = new Array(i), + s = new Array(i), + c = 1 / 0, + u = 1 / 0, + l = -1 / 0, + f = -1 / 0; + for (n = 0; n < i; ++n) + isNaN((r = +this._x.call(null, (t = e[n])))) || + isNaN((o = +this._y.call(null, t))) || + ((a[n] = r), + (s[n] = o), + r < c && (c = r), + r > l && (l = r), + o < u && (u = o), + o > f && (f = o)); + if (c > l || u > f) return this; + for (this.cover(c, u).cover(l, f), n = 0; n < i; ++n) + $s(this, a[n], s[n], e[n]); + return this; + }), + (rc.cover = function(e, t) { + if (isNaN((e = +e)) || isNaN((t = +t))) return this; + var n = this._x0, + r = this._y0, + o = this._x1, + i = this._y1; + if (isNaN(n)) + (o = (n = Math.floor(e)) + 1), (i = (r = Math.floor(t)) + 1); + else { + for ( + var a, s, c = o - n, u = this._root; + n > e || e >= o || r > t || t >= i; + + ) + switch ( + ((s = ((t < r) << 1) | (e < n)), + ((a = new Array(4))[s] = u), + (u = a), + (c *= 2), + s) + ) { case 0: - return '[v neděli v] LT'; + (o = n + c), (i = r + c); + break; case 1: + (n = o - c), (i = r + c); + break; case 2: - return '[v] dddd [v] LT'; + (o = n + c), (r = i - c); + break; case 3: - return '[ve středu v] LT'; - case 4: - return '[ve čtvrtek v] LT'; - case 5: - return '[v pátek v] LT'; - case 6: - return '[v sobotu v] LT'; + (n = o - c), (r = i - c); } - }, - lastDay: '[včera v] LT', - lastWeek: function() { - switch (this.day()) { - case 0: - return '[minulou neděli v] LT'; - case 1: - case 2: - return '[minulé] dddd [v] LT'; - case 3: - return '[minulou středu v] LT'; - case 4: - case 5: - return '[minulý] dddd [v] LT'; - case 6: - return '[minulou sobotu v] LT'; + this._root && this._root.length && (this._root = u); + } + return ( + (this._x0 = n), (this._y0 = r), (this._x1 = o), (this._y1 = i), this + ); + }), + (rc.data = function() { + var e = []; + return ( + this.visit(function(t) { + if (!t.length) + do { + e.push(t.data); + } while ((t = t.next)); + }), + e + ); + }), + (rc.extent = function(e) { + return arguments.length + ? this.cover(+e[0][0], +e[0][1]).cover(+e[1][0], +e[1][1]) + : isNaN(this._x0) + ? void 0 + : [[this._x0, this._y0], [this._x1, this._y1]]; + }), + (rc.find = function(e, t, n) { + var r, + o, + i, + a, + s, + c, + u, + l = this._x0, + f = this._y0, + d = this._x1, + p = this._y1, + h = [], + g = this._root; + for ( + g && h.push(new Qs(g, l, f, d, p)), + null == n + ? (n = 1 / 0) + : ((l = e - n), + (f = t - n), + (d = e + n), + (p = t + n), + (n *= n)); + (c = h.pop()); + + ) + if ( + !( + !(g = c.node) || + (o = c.x0) > d || + (i = c.y0) > p || + (a = c.x1) < l || + (s = c.y1) < f + ) + ) + if (g.length) { + var m = (o + a) / 2, + b = (i + s) / 2; + h.push( + new Qs(g[3], m, b, a, s), + new Qs(g[2], o, b, m, s), + new Qs(g[1], m, i, a, b), + new Qs(g[0], o, i, m, b) + ), + (u = ((t >= b) << 1) | (e >= m)) && + ((c = h[h.length - 1]), + (h[h.length - 1] = h[h.length - 1 - u]), + (h[h.length - 1 - u] = c)); + } else { + var y = e - +this._x.call(null, g.data), + v = t - +this._y.call(null, g.data), + _ = y * y + v * v; + if (_ < n) { + var w = Math.sqrt((n = _)); + (l = e - w), + (f = t - w), + (d = e + w), + (p = t + w), + (r = g.data); + } } - }, - sameElse: 'L' - }, - relativeTime: { - future: 'za %s', - past: 'před %s', - s: a, - ss: a, - m: a, - mm: a, - h: a, - hh: a, - d: a, - dd: a, - M: a, - MM: a, - y: a, - yy: a - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('cv', { - months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split( - '_' - ), - monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split( - '_' - ), - weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split( - '_' - ), - weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'), - weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD-MM-YYYY', - LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]', - LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm', - LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm' - }, - calendar: { - sameDay: '[Паян] LT [сехетре]', - nextDay: '[Ыран] LT [сехетре]', - lastDay: '[Ӗнер] LT [сехетре]', - nextWeek: '[Ҫитес] dddd LT [сехетре]', - lastWeek: '[Иртнӗ] dddd LT [сехетре]', - sameElse: 'L' - }, - relativeTime: { - future: function(e) { - return ( - e + - (/сехет$/i.exec(e) ? 'рен' : /ҫул$/i.exec(e) ? 'тан' : 'ран') - ); - }, - past: '%s каялла', - s: 'пӗр-ик ҫеккунт', - ss: '%d ҫеккунт', - m: 'пӗр минут', - mm: '%d минут', - h: 'пӗр сехет', - hh: '%d сехет', - d: 'пӗр кун', - dd: '%d кун', - M: 'пӗр уйӑх', - MM: '%d уйӑх', - y: 'пӗр ҫул', - yy: '%d ҫул' - }, - dayOfMonthOrdinalParse: /\d{1,2}-мӗш/, - ordinal: '%d-мӗш', - week: { dow: 1, doy: 7 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('cy', { - months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split( - '_' - ), - monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split( - '_' - ), - weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split( - '_' - ), - weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'), - weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Heddiw am] LT', - nextDay: '[Yfory am] LT', - nextWeek: 'dddd [am] LT', - lastDay: '[Ddoe am] LT', - lastWeek: 'dddd [diwethaf am] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'mewn %s', - past: '%s yn ôl', - s: 'ychydig eiliadau', - ss: '%d eiliad', - m: 'munud', - mm: '%d munud', - h: 'awr', - hh: '%d awr', - d: 'diwrnod', - dd: '%d diwrnod', - M: 'mis', - MM: '%d mis', - y: 'blwyddyn', - yy: '%d flynedd' - }, - dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/, - ordinal: function(e) { - var t = ''; - return ( - e > 20 - ? (t = - 40 === e || 50 === e || 60 === e || 80 === e || 100 === e - ? 'fed' - : 'ain') - : e > 0 && - (t = [ - '', - 'af', - 'il', - 'ydd', - 'ydd', - 'ed', - 'ed', - 'ed', - 'fed', - 'fed', - 'fed', - 'eg', - 'fed', - 'eg', - 'eg', - 'fed', - 'eg', - 'eg', - 'fed', - 'eg', - 'fed' - ][e]), - e + t - ); - }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('da', { - months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split( - '_' - ), - monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split( - '_' - ), - weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split( - '_' - ), - weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'), - weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY HH:mm', - LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm' - }, - calendar: { - sameDay: '[i dag kl.] LT', - nextDay: '[i morgen kl.] LT', - nextWeek: 'på dddd [kl.] LT', - lastDay: '[i går kl.] LT', - lastWeek: '[i] dddd[s kl.] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'om %s', - past: '%s siden', - s: 'få sekunder', - ss: '%d sekunder', - m: 'et minut', - mm: '%d minutter', - h: 'en time', - hh: '%d timer', - d: 'en dag', - dd: '%d dage', - M: 'en måned', - MM: '%d måneder', - y: 'et år', - yy: '%d år' - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } + return r; + }), + (rc.remove = function(e) { + if ( + isNaN((i = +this._x.call(null, e))) || + isNaN((a = +this._y.call(null, e))) + ) + return this; + var t, + n, + r, + o, + i, + a, + s, + c, + u, + l, + f, + d, + p = this._root, + h = this._x0, + g = this._y0, + m = this._x1, + b = this._y1; + if (!p) return this; + if (p.length) + for (;;) { + if ( + ((u = i >= (s = (h + m) / 2)) ? (h = s) : (m = s), + (l = a >= (c = (g + b) / 2)) ? (g = c) : (b = c), + (t = p), + !(p = p[(f = (l << 1) | u)])) + ) + return this; + if (!p.length) break; + (t[(f + 1) & 3] || t[(f + 2) & 3] || t[(f + 3) & 3]) && + ((n = t), (d = f)); + } + for (; p.data !== e; ) if (((r = p), !(p = p.next))) return this; + return ( + (o = p.next) && delete p.next, + r + ? (o ? (r.next = o) : delete r.next, this) + : t + ? (o ? (t[f] = o) : delete t[f], + (p = t[0] || t[1] || t[2] || t[3]) && + p === (t[3] || t[2] || t[1] || t[0]) && + !p.length && + (n ? (n[d] = p) : (this._root = p)), + this) + : ((this._root = o), this) + ); + }), + (rc.removeAll = function(e) { + for (var t = 0, n = e.length; t < n; ++t) this.remove(e[t]); + return this; + }), + (rc.root = function() { + return this._root; + }), + (rc.size = function() { + var e = 0; + return ( + this.visit(function(t) { + if (!t.length) + do { + ++e; + } while ((t = t.next)); + }), + e + ); + }), + (rc.visit = function(e) { + var t, + n, + r, + o, + i, + a, + s = [], + c = this._root; + for ( + c && s.push(new Qs(c, this._x0, this._y0, this._x1, this._y1)); + (t = s.pop()); + + ) + if ( + !e( + (c = t.node), + (r = t.x0), + (o = t.y0), + (i = t.x1), + (a = t.y1) + ) && + c.length + ) { + var u = (r + i) / 2, + l = (o + a) / 2; + (n = c[3]) && s.push(new Qs(n, u, l, i, a)), + (n = c[2]) && s.push(new Qs(n, r, l, u, a)), + (n = c[1]) && s.push(new Qs(n, u, o, i, l)), + (n = c[0]) && s.push(new Qs(n, r, o, u, l)); + } + return this; + }), + (rc.visitAfter = function(e) { + var t, + n = [], + r = []; + for ( + this._root && + n.push(new Qs(this._root, this._x0, this._y0, this._x1, this._y1)); + (t = n.pop()); + + ) { + var o = t.node; + if (o.length) { + var i, + a = t.x0, + s = t.y0, + c = t.x1, + u = t.y1, + l = (a + c) / 2, + f = (s + u) / 2; + (i = o[0]) && n.push(new Qs(i, a, s, l, f)), + (i = o[1]) && n.push(new Qs(i, l, s, c, f)), + (i = o[2]) && n.push(new Qs(i, a, f, l, u)), + (i = o[3]) && n.push(new Qs(i, l, f, c, u)); + } + r.push(t); + } + for (; (t = r.pop()); ) e(t.node, t.x0, t.y0, t.x1, t.y1); + return this; + }), + (rc.x = function(e) { + return arguments.length ? ((this._x = e), this) : this._x; + }), + (rc.y = function(e) { + return arguments.length ? ((this._y = e), this) : this._y; }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - function t(e, t, n, r) { - var o = { - m: ['eine Minute', 'einer Minute'], - h: ['eine Stunde', 'einer Stunde'], - d: ['ein Tag', 'einem Tag'], - dd: [e + ' Tage', e + ' Tagen'], - M: ['ein Monat', 'einem Monat'], - MM: [e + ' Monate', e + ' Monaten'], - y: ['ein Jahr', 'einem Jahr'], - yy: [e + ' Jahre', e + ' Jahren'] - }; - return t ? o[n][0] : o[n][1]; + var ac = function(e) { + var t, + n, + r = 1, + o = 1; + function i() { + for (var e, i, s, c, u, l, f, d = t.length, p = 0; p < o; ++p) + for (i = ec(t, oc, ic).visitAfter(a), e = 0; e < d; ++e) + (s = t[e]), + (l = n[s.index]), + (f = l * l), + (c = s.x + s.vx), + (u = s.y + s.vy), + i.visit(h); + function h(e, t, n, o, i) { + var a = e.data, + d = e.r, + p = l + d; + if (!a) return t > c + p || o < c - p || n > u + p || i < u - p; + if (a.index > s.index) { + var h = c - a.x - a.vx, + g = u - a.y - a.vy, + m = h * h + g * g; + m < p * p && + (0 === h && (m += (h = Ks()) * h), + 0 === g && (m += (g = Ks()) * g), + (m = ((p - (m = Math.sqrt(m))) / m) * r), + (s.vx += (h *= m) * (p = (d *= d) / (f + d))), + (s.vy += (g *= m) * p), + (a.vx -= h * (p = 1 - p)), + (a.vy -= g * p)); + } + } } - e.defineLocale('de', { - months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( - '_' - ), - monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( - '_' - ), - weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), - weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY HH:mm', - LLLL: 'dddd, D. MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[heute um] LT [Uhr]', - sameElse: 'L', - nextDay: '[morgen um] LT [Uhr]', - nextWeek: 'dddd [um] LT [Uhr]', - lastDay: '[gestern um] LT [Uhr]', - lastWeek: '[letzten] dddd [um] LT [Uhr]' - }, - relativeTime: { - future: 'in %s', - past: 'vor %s', - s: 'ein paar Sekunden', - ss: '%d Sekunden', - m: t, - mm: '%d Minuten', - h: t, - hh: '%d Stunden', - d: t, - dd: t, - M: t, - MM: t, - y: t, - yy: t - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - function t(e, t, n, r) { - var o = { - m: ['eine Minute', 'einer Minute'], - h: ['eine Stunde', 'einer Stunde'], - d: ['ein Tag', 'einem Tag'], - dd: [e + ' Tage', e + ' Tagen'], - M: ['ein Monat', 'einem Monat'], - MM: [e + ' Monate', e + ' Monaten'], - y: ['ein Jahr', 'einem Jahr'], - yy: [e + ' Jahre', e + ' Jahren'] - }; - return t ? o[n][0] : o[n][1]; + function a(e) { + if (e.data) return (e.r = n[e.data.index]); + for (var t = (e.r = 0); t < 4; ++t) + e[t] && e[t].r > e.r && (e.r = e[t].r); } - e.defineLocale('de-at', { - months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( - '_' - ), - monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( - '_' - ), - weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), - weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY HH:mm', - LLLL: 'dddd, D. MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[heute um] LT [Uhr]', - sameElse: 'L', - nextDay: '[morgen um] LT [Uhr]', - nextWeek: 'dddd [um] LT [Uhr]', - lastDay: '[gestern um] LT [Uhr]', - lastWeek: '[letzten] dddd [um] LT [Uhr]' - }, - relativeTime: { - future: 'in %s', - past: 'vor %s', - s: 'ein paar Sekunden', - ss: '%d Sekunden', - m: t, - mm: '%d Minuten', - h: t, - hh: '%d Stunden', - d: t, - dd: t, - M: t, - MM: t, - y: t, - yy: t - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - function t(e, t, n, r) { - var o = { - m: ['eine Minute', 'einer Minute'], - h: ['eine Stunde', 'einer Stunde'], - d: ['ein Tag', 'einem Tag'], - dd: [e + ' Tage', e + ' Tagen'], - M: ['ein Monat', 'einem Monat'], - MM: [e + ' Monate', e + ' Monaten'], - y: ['ein Jahr', 'einem Jahr'], - yy: [e + ' Jahre', e + ' Jahren'] - }; - return t ? o[n][0] : o[n][1]; + function s() { + if (t) { + var r, + o, + i = t.length; + for (n = new Array(i), r = 0; r < i; ++r) + (o = t[r]), (n[o.index] = +e(o, r, t)); + } } - e.defineLocale('de-ch', { - months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( - '_' - ), - monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( - '_' - ), - weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), - weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY HH:mm', - LLLL: 'dddd, D. MMMM YYYY HH:mm' + return ( + 'function' != typeof e && (e = Gs(null == e ? 1 : +e)), + (i.initialize = function(e) { + (t = e), s(); + }), + (i.iterations = function(e) { + return arguments.length ? ((o = +e), i) : o; + }), + (i.strength = function(e) { + return arguments.length ? ((r = +e), i) : r; + }), + (i.radius = function(t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : Gs(+t)), s(), i) + : e; + }), + i + ); + }; + function sc(e) { + return e.index; + } + function cc(e, t) { + var n = e.get(t); + if (!n) throw new Error('missing: ' + t); + return n; + } + var uc = function(e) { + var t, + n, + r, + o, + i, + a = sc, + s = function(e) { + return 1 / Math.min(o[e.source.index], o[e.target.index]); }, - calendar: { - sameDay: '[heute um] LT [Uhr]', - sameElse: 'L', - nextDay: '[morgen um] LT [Uhr]', - nextWeek: 'dddd [um] LT [Uhr]', - lastDay: '[gestern um] LT [Uhr]', - lastWeek: '[letzten] dddd [um] LT [Uhr]' + c = Gs(30), + u = 1; + function l(r) { + for (var o = 0, a = e.length; o < u; ++o) + for (var s, c, l, f, d, p, h, g = 0; g < a; ++g) + (c = (s = e[g]).source), + (f = (l = s.target).x + l.vx - c.x - c.vx || Ks()), + (d = l.y + l.vy - c.y - c.vy || Ks()), + (f *= p = + (((p = Math.sqrt(f * f + d * d)) - n[g]) / p) * r * t[g]), + (d *= p), + (l.vx -= f * (h = i[g])), + (l.vy -= d * h), + (c.vx += f * (h = 1 - h)), + (c.vy += d * h); + } + function f() { + if (r) { + var s, + c, + u = r.length, + l = e.length, + f = ai(r, a); + for (s = 0, o = new Array(u); s < l; ++s) + ((c = e[s]).index = s), + 'object' != typeof c.source && (c.source = cc(f, c.source)), + 'object' != typeof c.target && (c.target = cc(f, c.target)), + (o[c.source.index] = (o[c.source.index] || 0) + 1), + (o[c.target.index] = (o[c.target.index] || 0) + 1); + for (s = 0, i = new Array(l); s < l; ++s) + (c = e[s]), + (i[s] = + o[c.source.index] / (o[c.source.index] + o[c.target.index])); + (t = new Array(l)), d(), (n = new Array(l)), p(); + } + } + function d() { + if (r) + for (var n = 0, o = e.length; n < o; ++n) t[n] = +s(e[n], n, e); + } + function p() { + if (r) + for (var t = 0, o = e.length; t < o; ++t) n[t] = +c(e[t], t, e); + } + return ( + null == e && (e = []), + (l.initialize = function(e) { + (r = e), f(); + }), + (l.links = function(t) { + return arguments.length ? ((e = t), f(), l) : e; + }), + (l.id = function(e) { + return arguments.length ? ((a = e), l) : a; + }), + (l.iterations = function(e) { + return arguments.length ? ((u = +e), l) : u; + }), + (l.strength = function(e) { + return arguments.length + ? ((s = 'function' == typeof e ? e : Gs(+e)), d(), l) + : s; + }), + (l.distance = function(e) { + return arguments.length + ? ((c = 'function' == typeof e ? e : Gs(+e)), p(), l) + : c; + }), + l + ); + }; + function lc(e) { + return e.x; + } + function fc(e) { + return e.y; + } + var dc = 10, + pc = Math.PI * (3 - Math.sqrt(5)), + hc = function(e) { + var t, + n = 1, + r = 0.001, + o = 1 - Math.pow(r, 1 / 300), + i = 0, + a = 0.6, + s = ai(), + c = Qn(l), + u = ge('tick', 'end'); + function l() { + f(), u.call('tick', t), n < r && (c.stop(), u.call('end', t)); + } + function f(r) { + var c, + u, + l = e.length; + void 0 === r && (r = 1); + for (var f = 0; f < r; ++f) + for ( + n += (i - n) * o, + s.each(function(e) { + e(n); + }), + c = 0; + c < l; + ++c + ) + null == (u = e[c]).fx + ? (u.x += u.vx *= a) + : ((u.x = u.fx), (u.vx = 0)), + null == u.fy + ? (u.y += u.vy *= a) + : ((u.y = u.fy), (u.vy = 0)); + return t; + } + function d() { + for (var t, n = 0, r = e.length; n < r; ++n) { + if ( + (((t = e[n]).index = n), + null != t.fx && (t.x = t.fx), + null != t.fy && (t.y = t.fy), + isNaN(t.x) || isNaN(t.y)) + ) { + var o = dc * Math.sqrt(n), + i = n * pc; + (t.x = o * Math.cos(i)), (t.y = o * Math.sin(i)); + } + (isNaN(t.vx) || isNaN(t.vy)) && (t.vx = t.vy = 0); + } + } + function p(t) { + return t.initialize && t.initialize(e), t; + } + return ( + null == e && (e = []), + d(), + (t = { + tick: f, + restart: function() { + return c.restart(l), t; + }, + stop: function() { + return c.stop(), t; + }, + nodes: function(n) { + return arguments.length ? ((e = n), d(), s.each(p), t) : e; + }, + alpha: function(e) { + return arguments.length ? ((n = +e), t) : n; + }, + alphaMin: function(e) { + return arguments.length ? ((r = +e), t) : r; + }, + alphaDecay: function(e) { + return arguments.length ? ((o = +e), t) : +o; + }, + alphaTarget: function(e) { + return arguments.length ? ((i = +e), t) : i; + }, + velocityDecay: function(e) { + return arguments.length ? ((a = 1 - e), t) : 1 - a; + }, + force: function(e, n) { + return arguments.length > 1 + ? (null == n ? s.remove(e) : s.set(e, p(n)), t) + : s.get(e); + }, + find: function(t, n, r) { + var o, + i, + a, + s, + c, + u = 0, + l = e.length; + for (null == r ? (r = 1 / 0) : (r *= r), u = 0; u < l; ++u) + (a = (o = t - (s = e[u]).x) * o + (i = n - s.y) * i) < r && + ((c = s), (r = a)); + return c; + }, + on: function(e, n) { + return arguments.length > 1 ? (u.on(e, n), t) : u.on(e); + } + }) + ); + }, + gc = function() { + var e, + t, + n, + r, + o = Gs(-30), + i = 1, + a = 1 / 0, + s = 0.81; + function c(r) { + var o, + i = e.length, + a = ec(e, lc, fc).visitAfter(l); + for (n = r, o = 0; o < i; ++o) (t = e[o]), a.visit(f); + } + function u() { + if (e) { + var t, + n, + i = e.length; + for (r = new Array(i), t = 0; t < i; ++t) + (n = e[t]), (r[n.index] = +o(n, t, e)); + } + } + function l(e) { + var t, + n, + o, + i, + a, + s = 0, + c = 0; + if (e.length) { + for (o = i = a = 0; a < 4; ++a) + (t = e[a]) && + (n = Math.abs(t.value)) && + ((s += t.value), (c += n), (o += n * t.x), (i += n * t.y)); + (e.x = o / c), (e.y = i / c); + } else { + ((t = e).x = t.data.x), (t.y = t.data.y); + do { + s += r[t.data.index]; + } while ((t = t.next)); + } + e.value = s; + } + function f(e, o, c, u) { + if (!e.value) return !0; + var l = e.x - t.x, + f = e.y - t.y, + d = u - o, + p = l * l + f * f; + if ((d * d) / s < p) + return ( + p < a && + (0 === l && (p += (l = Ks()) * l), + 0 === f && (p += (f = Ks()) * f), + p < i && (p = Math.sqrt(i * p)), + (t.vx += (l * e.value * n) / p), + (t.vy += (f * e.value * n) / p)), + !0 + ); + if (!(e.length || p >= a)) { + (e.data !== t || e.next) && + (0 === l && (p += (l = Ks()) * l), + 0 === f && (p += (f = Ks()) * f), + p < i && (p = Math.sqrt(i * p))); + do { + e.data !== t && + ((d = (r[e.data.index] * n) / p), + (t.vx += l * d), + (t.vy += f * d)); + } while ((e = e.next)); + } + } + return ( + (c.initialize = function(t) { + (e = t), u(); + }), + (c.strength = function(e) { + return arguments.length + ? ((o = 'function' == typeof e ? e : Gs(+e)), u(), c) + : o; + }), + (c.distanceMin = function(e) { + return arguments.length ? ((i = e * e), c) : Math.sqrt(i); + }), + (c.distanceMax = function(e) { + return arguments.length ? ((a = e * e), c) : Math.sqrt(a); + }), + (c.theta = function(e) { + return arguments.length ? ((s = e * e), c) : Math.sqrt(s); + }), + c + ); + }, + mc = function(e, t, n) { + var r, + o, + i, + a = Gs(0.1); + function s(e) { + for (var a = 0, s = r.length; a < s; ++a) { + var c = r[a], + u = c.x - t || 1e-6, + l = c.y - n || 1e-6, + f = Math.sqrt(u * u + l * l), + d = ((i[a] - f) * o[a] * e) / f; + (c.vx += u * d), (c.vy += l * d); + } + } + function c() { + if (r) { + var t, + n = r.length; + for (o = new Array(n), i = new Array(n), t = 0; t < n; ++t) + (i[t] = +e(r[t], t, r)), + (o[t] = isNaN(i[t]) ? 0 : +a(r[t], t, r)); + } + } + return ( + 'function' != typeof e && (e = Gs(+e)), + null == t && (t = 0), + null == n && (n = 0), + (s.initialize = function(e) { + (r = e), c(); + }), + (s.strength = function(e) { + return arguments.length + ? ((a = 'function' == typeof e ? e : Gs(+e)), c(), s) + : a; + }), + (s.radius = function(t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : Gs(+t)), c(), s) + : e; + }), + (s.x = function(e) { + return arguments.length ? ((t = +e), s) : t; + }), + (s.y = function(e) { + return arguments.length ? ((n = +e), s) : n; + }), + s + ); + }, + bc = function(e) { + var t, + n, + r, + o = Gs(0.1); + function i(e) { + for (var o, i = 0, a = t.length; i < a; ++i) + (o = t[i]).vx += (r[i] - o.x) * n[i] * e; + } + function a() { + if (t) { + var i, + a = t.length; + for (n = new Array(a), r = new Array(a), i = 0; i < a; ++i) + n[i] = isNaN((r[i] = +e(t[i], i, t))) ? 0 : +o(t[i], i, t); + } + } + return ( + 'function' != typeof e && (e = Gs(null == e ? 0 : +e)), + (i.initialize = function(e) { + (t = e), a(); + }), + (i.strength = function(e) { + return arguments.length + ? ((o = 'function' == typeof e ? e : Gs(+e)), a(), i) + : o; + }), + (i.x = function(t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : Gs(+t)), a(), i) + : e; + }), + i + ); + }, + yc = function(e) { + var t, + n, + r, + o = Gs(0.1); + function i(e) { + for (var o, i = 0, a = t.length; i < a; ++i) + (o = t[i]).vy += (r[i] - o.y) * n[i] * e; + } + function a() { + if (t) { + var i, + a = t.length; + for (n = new Array(a), r = new Array(a), i = 0; i < a; ++i) + n[i] = isNaN((r[i] = +e(t[i], i, t))) ? 0 : +o(t[i], i, t); + } + } + return ( + 'function' != typeof e && (e = Gs(null == e ? 0 : +e)), + (i.initialize = function(e) { + (t = e), a(); + }), + (i.strength = function(e) { + return arguments.length + ? ((o = 'function' == typeof e ? e : Gs(+e)), a(), i) + : o; + }), + (i.y = function(t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : Gs(+t)), a(), i) + : e; + }), + i + ); + }, + vc = function(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)]; + }, + _c = function(e) { + return (e = vc(Math.abs(e))) ? e[1] : NaN; + }, + wc = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i; + function xc(e) { + if (!(t = wc.exec(e))) throw new Error('invalid format: ' + e); + var t; + return new Mc({ + 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 Mc(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 + ''); + } + (xc.prototype = Mc.prototype), + (Mc.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 kc, + Sc, + Oc, + Ec, + Ac = function(e) { + e: for (var t, n = e.length, r = 1, o = -1; r < n; ++r) + switch (e[r]) { + case '.': + o = t = r; + break; + case '0': + 0 === o && (o = r), (t = r); + break; + default: + if (!+e[r]) break e; + o > 0 && (o = 0); + } + return o > 0 ? e.slice(0, o) + e.slice(t + 1) : e; + }, + Tc = function(e, t) { + var n = vc(e, t); + if (!n) return e + ''; + var r = n[0], + o = n[1]; + return o < 0 + ? '0.' + new Array(-o).join('0') + r + : r.length > o + 1 + ? r.slice(0, o + 1) + '.' + r.slice(o + 1) + : r + new Array(o - r.length + 2).join('0'); + }, + Cc = { + '%': function(e, t) { + return (100 * e).toFixed(t); }, - relativeTime: { - future: 'in %s', - past: 'vor %s', - s: 'ein paar Sekunden', - ss: '%d Sekunden', - m: t, - mm: '%d Minuten', - h: t, - hh: '%d Stunden', - d: t, - dd: t, - M: t, - MM: t, - y: t, - yy: t + b: function(e) { + return Math.round(e).toString(2); }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = [ - 'ޖެނުއަރީ', - 'ފެބްރުއަރީ', - 'މާރިޗު', - 'އޭޕްރީލު', - 'މޭ', - 'ޖޫން', - 'ޖުލައި', - 'އޯގަސްޓު', - 'ސެޕްޓެމްބަރު', - 'އޮކްޓޯބަރު', - 'ނޮވެމްބަރު', - 'ޑިސެމްބަރު' - ], - n = [ - 'އާދިއްތަ', - 'ހޯމަ', - 'އަންގާރަ', - 'ބުދަ', - 'ބުރާސްފަތި', - 'ހުކުރު', - 'ހޮނިހިރު' - ]; - e.defineLocale('dv', { - months: t, - monthsShort: t, - weekdays: n, - weekdaysShort: n, - weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'D/M/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' + c: function(e) { + return e + ''; }, - meridiemParse: /މކ|މފ/, - isPM: function(e) { - return 'މފ' === e; + d: function(e) { + return Math.round(e).toString(10); }, - meridiem: function(e, t, n) { - return e < 12 ? 'މކ' : 'މފ'; + e: function(e, t) { + return e.toExponential(t); }, - calendar: { - sameDay: '[މިއަދު] LT', - nextDay: '[މާދަމާ] LT', - nextWeek: 'dddd LT', - lastDay: '[އިއްޔެ] LT', - lastWeek: '[ފާއިތުވި] dddd LT', - sameElse: 'L' + f: function(e, t) { + return e.toFixed(t); }, - relativeTime: { - future: 'ތެރޭގައި %s', - past: 'ކުރިން %s', - s: 'ސިކުންތުކޮޅެއް', - ss: 'd% ސިކުންތު', - m: 'މިނިޓެއް', - mm: 'މިނިޓު %d', - h: 'ގަޑިއިރެއް', - hh: 'ގަޑިއިރު %d', - d: 'ދުވަހެއް', - dd: 'ދުވަސް %d', - M: 'މަހެއް', - MM: 'މަސް %d', - y: 'އަހަރެއް', - yy: 'އަހަރު %d' + g: function(e, t) { + return e.toPrecision(t); }, - preparse: function(e) { - return e.replace(/،/g, ','); + o: function(e) { + return Math.round(e).toString(8); }, - postformat: function(e) { - return e.replace(/,/g, '،'); + p: function(e, t) { + return Tc(100 * e, t); }, - week: { dow: 7, doy: 12 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('el', { - monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split( - '_' - ), - monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split( - '_' - ), - months: function(e, t) { - return e - ? 'string' == typeof t && - /D/.test(t.substring(0, t.indexOf('MMMM'))) - ? this._monthsGenitiveEl[e.month()] - : this._monthsNominativeEl[e.month()] - : this._monthsNominativeEl; - }, - monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split( - '_' - ), - weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split( - '_' - ), - weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'), - weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'), - meridiem: function(e, t, n) { - return e > 11 ? (n ? 'μμ' : 'ΜΜ') : n ? 'πμ' : 'ΠΜ'; - }, - isPM: function(e) { - return 'μ' === (e + '').toLowerCase()[0]; + r: Tc, + s: function(e, t) { + var n = vc(e, t); + if (!n) return e + ''; + var r = n[0], + o = n[1], + i = + o - (kc = 3 * Math.max(-8, Math.min(8, Math.floor(o / 3)))) + 1, + a = r.length; + return i === a + ? r + : i > a + ? r + new Array(i - a + 1).join('0') + : i > 0 + ? r.slice(0, i) + '.' + r.slice(i) + : '0.' + + new Array(1 - i).join('0') + + vc(e, Math.max(0, t + i - 1))[0]; }, - meridiemParse: /[ΠΜ]\.?Μ?\.?/i, - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A' + X: function(e) { + return Math.round(e) + .toString(16) + .toUpperCase(); }, - calendarEl: { - sameDay: '[Σήμερα {}] LT', - nextDay: '[Αύριο {}] LT', - nextWeek: 'dddd [{}] LT', - lastDay: '[Χθες {}] LT', - lastWeek: function() { - switch (this.day()) { - case 6: - return '[το προηγούμενο] dddd [{}] LT'; + x: function(e) { + return Math.round(e).toString(16); + } + }, + Lc = function(e) { + return e; + }, + Pc = Array.prototype.map, + Dc = [ + 'y', + 'z', + 'a', + 'f', + 'p', + 'n', + 'µ', + 'm', + '', + 'k', + 'M', + 'G', + 'T', + 'P', + 'E', + 'Z', + 'Y' + ], + jc = function(e) { + var t, + n, + r = + void 0 === e.grouping || void 0 === e.thousands + ? Lc + : ((t = Pc.call(e.grouping, Number)), + (n = e.thousands + ''), + function(e, r) { + for ( + var o = e.length, i = [], a = 0, s = t[0], c = 0; + o > 0 && + s > 0 && + (c + s + 1 > r && (s = Math.max(1, r - c)), + i.push(e.substring((o -= s), o + s)), + !((c += s + 1) > r)); + + ) + s = t[(a = (a + 1) % t.length)]; + return i.reverse().join(n); + }), + o = void 0 === e.currency ? '' : e.currency[0] + '', + i = void 0 === e.currency ? '' : e.currency[1] + '', + a = void 0 === e.decimal ? '.' : e.decimal + '', + s = + void 0 === e.numerals + ? Lc + : (function(e) { + return function(t) { + return t.replace(/[0-9]/g, function(t) { + return e[+t]; + }); + }; + })(Pc.call(e.numerals, String)), + c = void 0 === e.percent ? '%' : e.percent + '', + u = void 0 === e.minus ? '-' : e.minus + '', + l = void 0 === e.nan ? 'NaN' : e.nan + ''; + function f(e) { + var t = (e = xc(e)).fill, + n = e.align, + f = e.sign, + d = e.symbol, + p = e.zero, + h = e.width, + g = e.comma, + m = e.precision, + b = e.trim, + y = e.type; + 'n' === y + ? ((g = !0), (y = 'g')) + : Cc[y] || (void 0 === m && (m = 12), (b = !0), (y = 'g')), + (p || ('0' === t && '=' === n)) && + ((p = !0), (t = '0'), (n = '=')); + var v = + '$' === d + ? o + : '#' === d && /[boxX]/.test(y) + ? '0' + y.toLowerCase() + : '', + _ = '$' === d ? i : /[%p]/.test(y) ? c : '', + w = Cc[y], + x = /[defgprs%]/.test(y); + function M(e) { + var o, + i, + c, + d = v, + M = _; + if ('c' === y) (M = w(e) + M), (e = ''); + else { + var k = (e = +e) < 0; + if ( + ((e = isNaN(e) ? l : w(Math.abs(e), m)), + b && (e = Ac(e)), + k && 0 == +e && (k = !1), + (d = + (k + ? '(' === f + ? f + : u + : '-' === f || '(' === f + ? '' + : f) + d), + (M = + ('s' === y ? Dc[8 + kc / 3] : '') + + M + + (k && '(' === f ? ')' : '')), + x) + ) + for (o = -1, i = e.length; ++o < i; ) + if (48 > (c = e.charCodeAt(o)) || c > 57) { + (M = (46 === c ? a + e.slice(o + 1) : e.slice(o)) + M), + (e = e.slice(0, o)); + break; + } + } + g && !p && (e = r(e, 1 / 0)); + var S = d.length + e.length + M.length, + O = S < h ? new Array(h - S + 1).join(t) : ''; + switch ( + (g && + p && + ((e = r(O + e, O.length ? h - M.length : 1 / 0)), (O = '')), + n) + ) { + case '<': + e = d + e + M + O; + break; + case '=': + e = d + O + e + M; + break; + case '^': + e = O.slice(0, (S = O.length >> 1)) + d + e + M + O.slice(S); + break; default: - return '[την προηγούμενη] dddd [{}] LT'; + e = O + d + e + M; } - }, - sameElse: 'L' - }, - calendar: function(e, t) { - var n, - r = this._calendarEl[e], - o = t && t.hours(); + return s(e); + } return ( - ((n = r) instanceof Function || - '[object Function]' === Object.prototype.toString.call(n)) && - (r = r.apply(t)), - r.replace('{}', o % 12 == 1 ? 'στη' : 'στις') + (m = + void 0 === m + ? 6 + : /[gprs]/.test(y) + ? Math.max(1, Math.min(21, m)) + : Math.max(0, Math.min(20, m))), + (M.toString = function() { + return e + ''; + }), + M ); + } + return { + format: f, + formatPrefix: function(e, t) { + var n = f((((e = xc(e)).type = 'f'), e)), + r = 3 * Math.max(-8, Math.min(8, Math.floor(_c(t) / 3))), + o = Math.pow(10, -r), + i = Dc[8 + r / 3]; + return function(e) { + return n(o * e) + i; + }; + } + }; + }; + function zc(e) { + return (Sc = jc(e)), (Oc = Sc.format), (Ec = Sc.formatPrefix), Sc; + } + zc({ + decimal: '.', + thousands: ',', + grouping: [3], + currency: ['$', ''], + minus: '-' + }); + var Nc = function(e) { + return Math.max(0, -_c(Math.abs(e))); + }, + Rc = function(e, t) { + return Math.max( + 0, + 3 * Math.max(-8, Math.min(8, Math.floor(_c(t) / 3))) - + _c(Math.abs(e)) + ); + }, + Ic = function(e, t) { + return ( + (e = Math.abs(e)), + (t = Math.abs(t) - e), + Math.max(0, _c(t) - _c(e)) + 1 + ); + }, + Fc = function() { + return new qc(); + }; + function qc() { + this.reset(); + } + qc.prototype = { + constructor: qc, + reset: function() { + this.s = this.t = 0; + }, + add: function(e) { + Hc(Bc, e, this.t), + Hc(this, Bc.s, this.s), + this.s ? (this.t += Bc.t) : (this.s = Bc.t); + }, + valueOf: function() { + return this.s; + } + }; + var Bc = new qc(); + function Hc(e, t, n) { + var r = (e.s = t + n), + o = r - t, + i = r - o; + e.t = t - i + (n - o); + } + var Yc = 1e-6, + Wc = 1e-12, + Vc = Math.PI, + Uc = Vc / 2, + Xc = Vc / 4, + Gc = 2 * Vc, + Kc = 180 / Vc, + $c = Vc / 180, + Qc = Math.abs, + Jc = Math.atan, + Zc = Math.atan2, + eu = Math.cos, + tu = Math.ceil, + nu = Math.exp, + ru = (Math.floor, Math.log), + ou = Math.pow, + iu = Math.sin, + au = + Math.sign || + function(e) { + return e > 0 ? 1 : e < 0 ? -1 : 0; }, - relativeTime: { - future: 'σε %s', - past: '%s πριν', - s: 'λίγα δευτερόλεπτα', - ss: '%d δευτερόλεπτα', - m: 'ένα λεπτό', - mm: '%d λεπτά', - h: 'μία ώρα', - hh: '%d ώρες', - d: 'μία μέρα', - dd: '%d μέρες', - M: 'ένας μήνας', - MM: '%d μήνες', - y: 'ένας χρόνος', - yy: '%d χρόνια' - }, - dayOfMonthOrdinalParse: /\d{1,2}η/, - ordinal: '%dη', - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('en-SG', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( - '_' - ), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years' - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function(e) { - var t = e % 10; - return ( - e + - (1 == ~~((e % 100) / 10) - ? 'th' - : 1 === t - ? 'st' - : 2 === t - ? 'nd' - : 3 === t - ? 'rd' - : 'th') - ); + su = Math.sqrt, + cu = Math.tan; + function uu(e) { + return e > 1 ? 0 : e < -1 ? Vc : Math.acos(e); + } + function lu(e) { + return e > 1 ? Uc : e < -1 ? -Uc : Math.asin(e); + } + function fu(e) { + return (e = iu(e / 2)) * e; + } + function du() {} + function pu(e, t) { + e && gu.hasOwnProperty(e.type) && gu[e.type](e, t); + } + var hu = { + Feature: function(e, t) { + pu(e.geometry, t); }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('en-au', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( - '_' - ), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A' + FeatureCollection: function(e, t) { + for (var n = e.features, r = -1, o = n.length; ++r < o; ) + pu(n[r].geometry, t); + } + }, + gu = { + Sphere: function(e, t) { + t.sphere(); }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L' + Point: function(e, t) { + (e = e.coordinates), t.point(e[0], e[1], e[2]); }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years' + MultiPoint: function(e, t) { + for (var n = e.coordinates, r = -1, o = n.length; ++r < o; ) + (e = n[r]), t.point(e[0], e[1], e[2]); }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function(e) { - var t = e % 10; - return ( - e + - (1 == ~~((e % 100) / 10) - ? 'th' - : 1 === t - ? 'st' - : 2 === t - ? 'nd' - : 3 === t - ? 'rd' - : 'th') - ); + LineString: function(e, t) { + mu(e.coordinates, t, 0); }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('en-ca', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( - '_' - ), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'YYYY-MM-DD', - LL: 'MMMM D, YYYY', - LLL: 'MMMM D, YYYY h:mm A', - LLLL: 'dddd, MMMM D, YYYY h:mm A' + MultiLineString: function(e, t) { + for (var n = e.coordinates, r = -1, o = n.length; ++r < o; ) + mu(n[r], t, 0); }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L' + Polygon: function(e, t) { + bu(e.coordinates, t); }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years' + MultiPolygon: function(e, t) { + for (var n = e.coordinates, r = -1, o = n.length; ++r < o; ) + bu(n[r], t); }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function(e) { - var t = e % 10; - return ( - e + - (1 == ~~((e % 100) / 10) - ? 'th' - : 1 === t - ? 'st' - : 2 === t - ? 'nd' - : 3 === t - ? 'rd' - : 'th') - ); + GeometryCollection: function(e, t) { + for (var n = e.geometries, r = -1, o = n.length; ++r < o; ) + pu(n[r], t); } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('en-gb', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( - '_' - ), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years' + }; + function mu(e, t, n) { + var r, + o = -1, + i = e.length - n; + for (t.lineStart(); ++o < i; ) (r = e[o]), t.point(r[0], r[1], r[2]); + t.lineEnd(); + } + function bu(e, t) { + var n = -1, + r = e.length; + for (t.polygonStart(); ++n < r; ) mu(e[n], t, 1); + t.polygonEnd(); + } + var yu, + vu, + _u, + wu, + xu, + Mu = function(e, t) { + e && hu.hasOwnProperty(e.type) ? hu[e.type](e, t) : pu(e, t); + }, + ku = Fc(), + Su = Fc(), + Ou = { + point: du, + lineStart: du, + lineEnd: du, + polygonStart: function() { + ku.reset(), (Ou.lineStart = Eu), (Ou.lineEnd = Au); }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function(e) { - var t = e % 10; - return ( - e + - (1 == ~~((e % 100) / 10) - ? 'th' - : 1 === t - ? 'st' - : 2 === t - ? 'nd' - : 3 === t - ? 'rd' - : 'th') - ); + polygonEnd: function() { + var e = +ku; + Su.add(e < 0 ? Gc + e : e), + (this.lineStart = this.lineEnd = this.point = du); }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('en-ie', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( - '_' - ), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' + sphere: function() { + Su.add(Gc); + } + }; + function Eu() { + Ou.point = Tu; + } + function Au() { + Cu(yu, vu); + } + function Tu(e, t) { + (Ou.point = Cu), + (yu = e), + (vu = t), + (_u = e *= $c), + (wu = eu((t = (t *= $c) / 2 + Xc))), + (xu = iu(t)); + } + function Cu(e, t) { + var n = (e *= $c) - _u, + r = n >= 0 ? 1 : -1, + o = r * n, + i = eu((t = (t *= $c) / 2 + Xc)), + a = iu(t), + s = xu * a, + c = wu * i + s * eu(o), + u = s * r * iu(o); + ku.add(Zc(u, c)), (_u = e), (wu = i), (xu = a); + } + var Lu = function(e) { + return Su.reset(), Mu(e, Ou), 2 * Su; + }; + function Pu(e) { + return [Zc(e[1], e[0]), lu(e[2])]; + } + function Du(e) { + var t = e[0], + n = e[1], + r = eu(n); + return [r * eu(t), r * iu(t), iu(n)]; + } + function ju(e, t) { + return e[0] * t[0] + e[1] * t[1] + e[2] * t[2]; + } + function zu(e, t) { + return [ + e[1] * t[2] - e[2] * t[1], + e[2] * t[0] - e[0] * t[2], + e[0] * t[1] - e[1] * t[0] + ]; + } + function Nu(e, t) { + (e[0] += t[0]), (e[1] += t[1]), (e[2] += t[2]); + } + function Ru(e, t) { + return [e[0] * t, e[1] * t, e[2] * t]; + } + function Iu(e) { + var t = su(e[0] * e[0] + e[1] * e[1] + e[2] * e[2]); + (e[0] /= t), (e[1] /= t), (e[2] /= t); + } + var Fu, + qu, + Bu, + Hu, + Yu, + Wu, + Vu, + Uu, + Xu, + Gu, + Ku = Fc(), + $u = { + point: Qu, + lineStart: Zu, + lineEnd: el, + polygonStart: function() { + ($u.point = tl), + ($u.lineStart = nl), + ($u.lineEnd = rl), + Ku.reset(), + Ou.polygonStart(); }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L' + polygonEnd: function() { + Ou.polygonEnd(), + ($u.point = Qu), + ($u.lineStart = Zu), + ($u.lineEnd = el), + ku < 0 + ? ((Fu = -(Bu = 180)), (qu = -(Hu = 90))) + : Ku > Yc + ? (Hu = 90) + : Ku < -Yc && (qu = -90), + (Gu[0] = Fu), + (Gu[1] = Bu); }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years' + sphere: function() { + (Fu = -(Bu = 180)), (qu = -(Hu = 90)); + } + }; + function Qu(e, t) { + Xu.push((Gu = [(Fu = e), (Bu = e)])), + t < qu && (qu = t), + t > Hu && (Hu = t); + } + function Ju(e, t) { + var n = Du([e * $c, t * $c]); + if (Uu) { + var r = zu(Uu, n), + o = zu([r[1], -r[0], 0], r); + Iu(o), (o = Pu(o)); + var i, + a = e - Yu, + s = a > 0 ? 1 : -1, + c = o[0] * Kc * s, + u = Qc(a) > 180; + u ^ (s * Yu < c && c < s * e) + ? (i = o[1] * Kc) > Hu && (Hu = i) + : u ^ (s * Yu < (c = ((c + 360) % 360) - 180) && c < s * e) + ? (i = -o[1] * Kc) < qu && (qu = i) + : (t < qu && (qu = t), t > Hu && (Hu = t)), + u + ? e < Yu + ? ol(Fu, e) > ol(Fu, Bu) && (Bu = e) + : ol(e, Bu) > ol(Fu, Bu) && (Fu = e) + : Bu >= Fu + ? (e < Fu && (Fu = e), e > Bu && (Bu = e)) + : e > Yu + ? ol(Fu, e) > ol(Fu, Bu) && (Bu = e) + : ol(e, Bu) > ol(Fu, Bu) && (Fu = e); + } else Xu.push((Gu = [(Fu = e), (Bu = e)])); + t < qu && (qu = t), t > Hu && (Hu = t), (Uu = n), (Yu = e); + } + function Zu() { + $u.point = Ju; + } + function el() { + (Gu[0] = Fu), (Gu[1] = Bu), ($u.point = Qu), (Uu = null); + } + function tl(e, t) { + if (Uu) { + var n = e - Yu; + Ku.add(Qc(n) > 180 ? n + (n > 0 ? 360 : -360) : n); + } else (Wu = e), (Vu = t); + Ou.point(e, t), Ju(e, t); + } + function nl() { + Ou.lineStart(); + } + function rl() { + tl(Wu, Vu), + Ou.lineEnd(), + Qc(Ku) > Yc && (Fu = -(Bu = 180)), + (Gu[0] = Fu), + (Gu[1] = Bu), + (Uu = null); + } + function ol(e, t) { + return (t -= e) < 0 ? t + 360 : t; + } + function il(e, t) { + return e[0] - t[0]; + } + function al(e, t) { + return e[0] <= e[1] ? e[0] <= t && t <= e[1] : t < e[0] || e[1] < t; + } + var sl, + cl, + ul, + ll, + fl, + dl, + pl, + hl, + gl, + ml, + bl, + yl, + vl, + _l, + wl, + xl, + Ml = function(e) { + var t, n, r, o, i, a, s; + if ( + ((Hu = Bu = -(Fu = qu = 1 / 0)), + (Xu = []), + Mu(e, $u), + (n = Xu.length)) + ) { + for (Xu.sort(il), t = 1, i = [(r = Xu[0])]; t < n; ++t) + al(r, (o = Xu[t])[0]) || al(r, o[1]) + ? (ol(r[0], o[1]) > ol(r[0], r[1]) && (r[1] = o[1]), + ol(o[0], r[1]) > ol(r[0], r[1]) && (r[0] = o[0])) + : i.push((r = o)); + for ( + a = -1 / 0, t = 0, r = i[(n = i.length - 1)]; + t <= n; + r = o, ++t + ) + (o = i[t]), + (s = ol(r[1], o[0])) > a && ((a = s), (Fu = o[0]), (Bu = r[1])); + } + return ( + (Xu = Gu = null), + Fu === 1 / 0 || qu === 1 / 0 + ? [[NaN, NaN], [NaN, NaN]] + : [[Fu, qu], [Bu, Hu]] + ); + }, + kl = { + sphere: du, + point: Sl, + lineStart: El, + lineEnd: Cl, + polygonStart: function() { + (kl.lineStart = Ll), (kl.lineEnd = Pl); }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function(e) { - var t = e % 10; + polygonEnd: function() { + (kl.lineStart = El), (kl.lineEnd = Cl); + } + }; + function Sl(e, t) { + e *= $c; + var n = eu((t *= $c)); + Ol(n * eu(e), n * iu(e), iu(t)); + } + function Ol(e, t, n) { + (ul += (e - ul) / ++sl), (ll += (t - ll) / sl), (fl += (n - fl) / sl); + } + function El() { + kl.point = Al; + } + function Al(e, t) { + e *= $c; + var n = eu((t *= $c)); + (_l = n * eu(e)), + (wl = n * iu(e)), + (xl = iu(t)), + (kl.point = Tl), + Ol(_l, wl, xl); + } + function Tl(e, t) { + e *= $c; + var n = eu((t *= $c)), + r = n * eu(e), + o = n * iu(e), + i = iu(t), + a = Zc( + su( + (a = wl * i - xl * o) * a + + (a = xl * r - _l * i) * a + + (a = _l * o - wl * r) * a + ), + _l * r + wl * o + xl * i + ); + (cl += a), + (dl += a * (_l + (_l = r))), + (pl += a * (wl + (wl = o))), + (hl += a * (xl + (xl = i))), + Ol(_l, wl, xl); + } + function Cl() { + kl.point = Sl; + } + function Ll() { + kl.point = Dl; + } + function Pl() { + jl(yl, vl), (kl.point = Sl); + } + function Dl(e, t) { + (yl = e), (vl = t), (e *= $c), (t *= $c), (kl.point = jl); + var n = eu(t); + (_l = n * eu(e)), (wl = n * iu(e)), (xl = iu(t)), Ol(_l, wl, xl); + } + function jl(e, t) { + e *= $c; + var n = eu((t *= $c)), + r = n * eu(e), + o = n * iu(e), + i = iu(t), + a = wl * i - xl * o, + s = xl * r - _l * i, + c = _l * o - wl * r, + u = su(a * a + s * s + c * c), + l = lu(u), + f = u && -l / u; + (gl += f * a), + (ml += f * s), + (bl += f * c), + (cl += l), + (dl += l * (_l + (_l = r))), + (pl += l * (wl + (wl = o))), + (hl += l * (xl + (xl = i))), + Ol(_l, wl, xl); + } + var zl = function(e) { + (sl = cl = ul = ll = fl = dl = pl = hl = gl = ml = bl = 0), Mu(e, kl); + var t = gl, + n = ml, + r = bl, + o = t * t + n * n + r * r; + return o < Wc && + ((t = dl), + (n = pl), + (r = hl), + cl < Yc && ((t = ul), (n = ll), (r = fl)), + (o = t * t + n * n + r * r) < Wc) + ? [NaN, NaN] + : [Zc(n, t) * Kc, lu(r / su(o)) * Kc]; + }, + Nl = function(e) { + return function() { + return e; + }; + }, + Rl = function(e, t) { + function n(n, r) { + return (n = e(n, r)), t(n[0], n[1]); + } + return ( + e.invert && + t.invert && + (n.invert = function(n, r) { + return (n = t.invert(n, r)) && e.invert(n[0], n[1]); + }), + n + ); + }; + function Il(e, t) { + return [Qc(e) > Vc ? e + Math.round(-e / Gc) * Gc : e, t]; + } + function Fl(e, t, n) { + return (e %= Gc) + ? t || n + ? Rl(Bl(e), Hl(t, n)) + : Bl(e) + : t || n + ? Hl(t, n) + : Il; + } + function ql(e) { + return function(t, n) { + return [(t += e) > Vc ? t - Gc : t < -Vc ? t + Gc : t, n]; + }; + } + function Bl(e) { + var t = ql(e); + return (t.invert = ql(-e)), t; + } + function Hl(e, t) { + var n = eu(e), + r = iu(e), + o = eu(t), + i = iu(t); + function a(e, t) { + var a = eu(t), + s = eu(e) * a, + c = iu(e) * a, + u = iu(t), + l = u * n + s * r; + return [Zc(c * o - l * i, s * n - u * r), lu(l * o + c * i)]; + } + return ( + (a.invert = function(e, t) { + var a = eu(t), + s = eu(e) * a, + c = iu(e) * a, + u = iu(t), + l = u * o - c * i; + return [Zc(c * o + u * i, s * n + l * r), lu(l * n - s * r)]; + }), + a + ); + } + Il.invert = Il; + var Yl = function(e) { + function t(t) { + return ((t = e(t[0] * $c, t[1] * $c))[0] *= Kc), (t[1] *= Kc), t; + } + return ( + (e = Fl(e[0] * $c, e[1] * $c, e.length > 2 ? e[2] * $c : 0)), + (t.invert = function(t) { return ( - e + - (1 == ~~((e % 100) / 10) - ? 'th' - : 1 === t - ? 'st' - : 2 === t - ? 'nd' - : 3 === t - ? 'rd' - : 'th') + ((t = e.invert(t[0] * $c, t[1] * $c))[0] *= Kc), (t[1] *= Kc), t ); - }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('en-il', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( - '_' - ), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years' - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function(e) { - var t = e % 10; + }), + t + ); + }; + function Wl(e, t, n, r, o, i) { + if (n) { + var a = eu(t), + s = iu(t), + c = r * n; + null == o + ? ((o = t + r * Gc), (i = t - c / 2)) + : ((o = Vl(a, o)), + (i = Vl(a, i)), + (r > 0 ? o < i : o > i) && (o += r * Gc)); + for (var u, l = o; r > 0 ? l > i : l < i; l -= c) + (u = Pu([a, -s * eu(l), -s * iu(l)])), e.point(u[0], u[1]); + } + } + function Vl(e, t) { + ((t = Du(t))[0] -= e), Iu(t); + var n = uu(-t[1]); + return ((-t[2] < 0 ? -n : n) + Gc - Yc) % Gc; + } + var Ul = function() { + var e, + t, + n = Nl([0, 0]), + r = Nl(90), + o = Nl(6), + i = { + point: function(n, r) { + e.push((n = t(n, r))), (n[0] *= Kc), (n[1] *= Kc); + } + }; + function a() { + var a = n.apply(this, arguments), + s = r.apply(this, arguments) * $c, + c = o.apply(this, arguments) * $c; return ( - e + - (1 == ~~((e % 100) / 10) - ? 'th' - : 1 === t - ? 'st' - : 2 === t - ? 'nd' - : 3 === t - ? 'rd' - : 'th') + (e = []), + (t = Fl(-a[0] * $c, -a[1] * $c, 0).invert), + Wl(i, s, c, 1), + (a = { type: 'Polygon', coordinates: [e] }), + (e = t = null), + a ); } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('en-nz', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( - '_' - ), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A' - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years' - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function(e) { - var t = e % 10; - return ( - e + - (1 == ~~((e % 100) / 10) - ? 'th' - : 1 === t - ? 'st' - : 2 === t - ? 'nd' - : 3 === t - ? 'rd' - : 'th') - ); - }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('eo', { - months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split( - '_' - ), - monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split( - '_' - ), - weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split( - '_' - ), - weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'), - weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'D[-a de] MMMM, YYYY', - LLL: 'D[-a de] MMMM, YYYY HH:mm', - LLLL: 'dddd, [la] D[-a de] MMMM, YYYY HH:mm' - }, - meridiemParse: /[ap]\.t\.m/i, - isPM: function(e) { - return 'p' === e.charAt(0).toLowerCase(); - }, - meridiem: function(e, t, n) { - return e > 11 ? (n ? 'p.t.m.' : 'P.T.M.') : n ? 'a.t.m.' : 'A.T.M.'; - }, - calendar: { - sameDay: '[Hodiaŭ je] LT', - nextDay: '[Morgaŭ je] LT', - nextWeek: 'dddd [je] LT', - lastDay: '[Hieraŭ je] LT', - lastWeek: '[pasinta] dddd [je] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'post %s', - past: 'antaŭ %s', - s: 'sekundoj', - ss: '%d sekundoj', - m: 'minuto', - mm: '%d minutoj', - h: 'horo', - hh: '%d horoj', - d: 'tago', - dd: '%d tagoj', - M: 'monato', - MM: '%d monatoj', - y: 'jaro', - yy: '%d jaroj' - }, - dayOfMonthOrdinalParse: /\d{1,2}a/, - ordinal: '%da', - week: { dow: 1, doy: 7 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( - '_' - ), - n = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), - r = [ - /^ene/i, - /^feb/i, - /^mar/i, - /^abr/i, - /^may/i, - /^jun/i, - /^jul/i, - /^ago/i, - /^sep/i, - /^oct/i, - /^nov/i, - /^dic/i - ], - o = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; - e.defineLocale('es', { - months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( - '_' - ), - monthsShort: function(e, r) { - return e ? (/-MMM-/.test(r) ? n[e.month()] : t[e.month()]) : t; - }, - monthsRegex: o, - monthsShortRegex: o, - monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, - monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, - monthsParse: r, - longMonthsParse: r, - shortMonthsParse: r, - weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split( - '_' - ), - weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), - weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY H:mm', - LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm' - }, - calendar: { - sameDay: function() { - return '[hoy a la' + (1 !== this.hours() ? 's' : '') + '] LT'; + return ( + (a.center = function(e) { + return arguments.length + ? ((n = 'function' == typeof e ? e : Nl([+e[0], +e[1]])), a) + : n; + }), + (a.radius = function(e) { + return arguments.length + ? ((r = 'function' == typeof e ? e : Nl(+e)), a) + : r; + }), + (a.precision = function(e) { + return arguments.length + ? ((o = 'function' == typeof e ? e : Nl(+e)), a) + : o; + }), + a + ); + }, + Xl = function() { + var e, + t = []; + return { + point: function(t, n) { + e.push([t, n]); }, - nextDay: function() { - return '[mañana a la' + (1 !== this.hours() ? 's' : '') + '] LT'; - }, - nextWeek: function() { - return 'dddd [a la' + (1 !== this.hours() ? 's' : '') + '] LT'; + lineStart: function() { + t.push((e = [])); }, - lastDay: function() { - return '[ayer a la' + (1 !== this.hours() ? 's' : '') + '] LT'; + lineEnd: du, + rejoin: function() { + t.length > 1 && t.push(t.pop().concat(t.shift())); }, - lastWeek: function() { - return ( - '[el] dddd [pasado a la' + - (1 !== this.hours() ? 's' : '') + - '] LT' - ); + result: function() { + var n = t; + return (t = []), (e = null), n; + } + }; + }, + Gl = function(e, t) { + return Qc(e[0] - t[0]) < Yc && Qc(e[1] - t[1]) < Yc; + }; + function Kl(e, t, n, r) { + (this.x = e), + (this.z = t), + (this.o = n), + (this.e = r), + (this.v = !1), + (this.n = this.p = null); + } + var $l = function(e, t, n, r, o) { + var i, + a, + s = [], + c = []; + if ( + (e.forEach(function(e) { + if (!((t = e.length - 1) <= 0)) { + var t, + n, + r = e[0], + a = e[t]; + if (Gl(r, a)) { + for (o.lineStart(), i = 0; i < t; ++i) + o.point((r = e[i])[0], r[1]); + o.lineEnd(); + } else + s.push((n = new Kl(r, e, null, !0))), + c.push((n.o = new Kl(r, null, n, !1))), + s.push((n = new Kl(a, e, null, !1))), + c.push((n.o = new Kl(a, null, n, !0))); + } + }), + s.length) + ) { + for (c.sort(t), Ql(s), Ql(c), i = 0, a = c.length; i < a; ++i) + c[i].e = n = !n; + for (var u, l, f = s[0]; ; ) { + for (var d = f, p = !0; d.v; ) if ((d = d.n) === f) return; + (u = d.z), o.lineStart(); + do { + if (((d.v = d.o.v = !0), d.e)) { + if (p) + for (i = 0, a = u.length; i < a; ++i) + o.point((l = u[i])[0], l[1]); + else r(d.x, d.n.x, 1, o); + d = d.n; + } else { + if (p) + for (u = d.p.z, i = u.length - 1; i >= 0; --i) + o.point((l = u[i])[0], l[1]); + else r(d.x, d.p.x, -1, o); + d = d.p; + } + (u = (d = d.o).z), (p = !p); + } while (!d.v); + o.lineEnd(); + } + } + }; + function Ql(e) { + if ((t = e.length)) { + for (var t, n, r = 0, o = e[0]; ++r < t; ) + (o.n = n = e[r]), (n.p = o), (o = n); + (o.n = n = e[0]), (n.p = o); + } + } + var Jl = Fc(); + function Zl(e) { + return Qc(e[0]) <= Vc ? e[0] : au(e[0]) * (((Qc(e[0]) + Vc) % Gc) - Vc); + } + var ef = function(e, t) { + var n = Zl(t), + r = t[1], + o = iu(r), + i = [iu(n), -eu(n), 0], + a = 0, + s = 0; + Jl.reset(), 1 === o ? (r = Uc + Yc) : -1 === o && (r = -Uc - Yc); + for (var c = 0, u = e.length; c < u; ++c) + if ((f = (l = e[c]).length)) + for ( + var l, + f, + d = l[f - 1], + p = Zl(d), + h = d[1] / 2 + Xc, + g = iu(h), + m = eu(h), + b = 0; + b < f; + ++b, p = v, g = w, m = x, d = y + ) { + var y = l[b], + v = Zl(y), + _ = y[1] / 2 + Xc, + w = iu(_), + x = eu(_), + M = v - p, + k = M >= 0 ? 1 : -1, + S = k * M, + O = S > Vc, + E = g * w; + if ( + (Jl.add(Zc(E * k * iu(S), m * x + E * eu(S))), + (a += O ? M + k * Gc : M), + O ^ (p >= n) ^ (v >= n)) + ) { + var A = zu(Du(d), Du(y)); + Iu(A); + var T = zu(i, A); + Iu(T); + var C = (O ^ (M >= 0) ? -1 : 1) * lu(T[2]); + (r > C || (r === C && (A[0] || A[1]))) && + (s += O ^ (M >= 0) ? 1 : -1); + } + } + return (a < -Yc || (a < Yc && Jl < -Yc)) ^ (1 & s); + }, + tf = function(e, t, n, r) { + return function(o) { + var i, + a, + s, + c = t(o), + u = Xl(), + l = t(u), + f = !1, + d = { + point: p, + lineStart: g, + lineEnd: m, + polygonStart: function() { + (d.point = b), + (d.lineStart = y), + (d.lineEnd = v), + (a = []), + (i = []); + }, + polygonEnd: function() { + (d.point = p), (d.lineStart = g), (d.lineEnd = m), (a = R(a)); + var e = ef(i, r); + a.length + ? (f || (o.polygonStart(), (f = !0)), $l(a, rf, e, n, o)) + : e && + (f || (o.polygonStart(), (f = !0)), + o.lineStart(), + n(null, null, 1, o), + o.lineEnd()), + f && (o.polygonEnd(), (f = !1)), + (a = i = null); + }, + sphere: function() { + o.polygonStart(), + o.lineStart(), + n(null, null, 1, o), + o.lineEnd(), + o.polygonEnd(); + } + }; + function p(t, n) { + e(t, n) && o.point(t, n); + } + function h(e, t) { + c.point(e, t); + } + function g() { + (d.point = h), c.lineStart(); + } + function m() { + (d.point = p), c.lineEnd(); + } + function b(e, t) { + s.push([e, t]), l.point(e, t); + } + function y() { + l.lineStart(), (s = []); + } + function v() { + b(s[0][0], s[0][1]), l.lineEnd(); + var e, + t, + n, + r, + c = l.clean(), + d = u.result(), + p = d.length; + if ((s.pop(), i.push(s), (s = null), p)) + if (1 & c) { + if ((t = (n = d[0]).length - 1) > 0) { + for ( + f || (o.polygonStart(), (f = !0)), o.lineStart(), e = 0; + e < t; + ++e + ) + o.point((r = n[e])[0], r[1]); + o.lineEnd(); + } + } else + p > 1 && 2 & c && d.push(d.pop().concat(d.shift())), + a.push(d.filter(nf)); + } + return d; + }; + }; + function nf(e) { + return e.length > 1; + } + function rf(e, t) { + return ( + ((e = e.x)[0] < 0 ? e[1] - Uc - Yc : Uc - e[1]) - + ((t = t.x)[0] < 0 ? t[1] - Uc - Yc : Uc - t[1]) + ); + } + var of = tf( + function() { + return !0; + }, + function(e) { + var t, + n = NaN, + r = NaN, + o = NaN; + return { + lineStart: function() { + e.lineStart(), (t = 1); }, - sameElse: 'L' - }, - relativeTime: { - future: 'en %s', - past: 'hace %s', - s: 'unos segundos', - ss: '%d segundos', - m: 'un minuto', - mm: '%d minutos', - h: 'una hora', - hh: '%d horas', - d: 'un día', - dd: '%d días', - M: 'un mes', - MM: '%d meses', - y: 'un año', - yy: '%d años' - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( - '_' - ), - n = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), - r = [ - /^ene/i, - /^feb/i, - /^mar/i, - /^abr/i, - /^may/i, - /^jun/i, - /^jul/i, - /^ago/i, - /^sep/i, - /^oct/i, - /^nov/i, - /^dic/i - ], - o = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; - e.defineLocale('es-do', { - months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( - '_' - ), - monthsShort: function(e, r) { - return e ? (/-MMM-/.test(r) ? n[e.month()] : t[e.month()]) : t; - }, - monthsRegex: o, - monthsShortRegex: o, - monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, - monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, - monthsParse: r, - longMonthsParse: r, - shortMonthsParse: r, - weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split( - '_' - ), - weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), - weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY h:mm A', - LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A' - }, - calendar: { - sameDay: function() { - return '[hoy a la' + (1 !== this.hours() ? 's' : '') + '] LT'; + point: function(i, a) { + var s = i > 0 ? Vc : -Vc, + c = Qc(i - n); + Qc(c - Vc) < Yc + ? (e.point(n, (r = (r + a) / 2 > 0 ? Uc : -Uc)), + e.point(o, r), + e.lineEnd(), + e.lineStart(), + e.point(s, r), + e.point(i, r), + (t = 0)) + : o !== s && + c >= Vc && + (Qc(n - o) < Yc && (n -= o * Yc), + Qc(i - s) < Yc && (i -= s * Yc), + (r = (function(e, t, n, r) { + var o, + i, + a = iu(e - n); + return Qc(a) > Yc + ? Jc( + (iu(t) * (i = eu(r)) * iu(n) - + iu(r) * (o = eu(t)) * iu(e)) / + (o * i * a) + ) + : (t + r) / 2; + })(n, r, i, a)), + e.point(o, r), + e.lineEnd(), + e.lineStart(), + e.point(s, r), + (t = 0)), + e.point((n = i), (r = a)), + (o = s); }, - nextDay: function() { - return '[mañana a la' + (1 !== this.hours() ? 's' : '') + '] LT'; + lineEnd: function() { + e.lineEnd(), (n = r = NaN); }, - nextWeek: function() { - return 'dddd [a la' + (1 !== this.hours() ? 's' : '') + '] LT'; + clean: function() { + return 2 - t; + } + }; + }, + function(e, t, n, r) { + var o; + if (null == e) + (o = n * Uc), + r.point(-Vc, o), + r.point(0, o), + r.point(Vc, o), + r.point(Vc, 0), + r.point(Vc, -o), + r.point(0, -o), + r.point(-Vc, -o), + r.point(-Vc, 0), + r.point(-Vc, o); + else if (Qc(e[0] - t[0]) > Yc) { + var i = e[0] < t[0] ? Vc : -Vc; + (o = (n * i) / 2), r.point(-i, o), r.point(0, o), r.point(i, o); + } else r.point(t[0], t[1]); + }, + [-Vc, -Uc] + ); + var af = function(e) { + var t = eu(e), + n = 6 * $c, + r = t > 0, + o = Qc(t) > Yc; + function i(e, n) { + return eu(e) * eu(n) > t; + } + function a(e, n, r) { + var o = [1, 0, 0], + i = zu(Du(e), Du(n)), + a = ju(i, i), + s = i[0], + c = a - s * s; + if (!c) return !r && e; + var u = (t * a) / c, + l = (-t * s) / c, + f = zu(o, i), + d = Ru(o, u); + Nu(d, Ru(i, l)); + var p = f, + h = ju(d, p), + g = ju(p, p), + m = h * h - g * (ju(d, d) - 1); + if (!(m < 0)) { + var b = su(m), + y = Ru(p, (-h - b) / g); + if ((Nu(y, d), (y = Pu(y)), !r)) return y; + var v, + _ = e[0], + w = n[0], + x = e[1], + M = n[1]; + w < _ && ((v = _), (_ = w), (w = v)); + var k = w - _, + S = Qc(k - Vc) < Yc; + if ( + (!S && M < x && ((v = x), (x = M), (M = v)), + S || k < Yc + ? S + ? (x + M > 0) ^ (y[1] < (Qc(y[0] - _) < Yc ? x : M)) + : x <= y[1] && y[1] <= M + : (k > Vc) ^ (_ <= y[0] && y[0] <= w)) + ) { + var O = Ru(p, (-h + b) / g); + return Nu(O, d), [y, Pu(O)]; + } + } + } + function s(t, n) { + var o = r ? e : Vc - e, + i = 0; + return ( + t < -o ? (i |= 1) : t > o && (i |= 2), + n < -o ? (i |= 4) : n > o && (i |= 8), + i + ); + } + return tf( + i, + function(e) { + var t, n, c, u, l; + return { + lineStart: function() { + (u = c = !1), (l = 1); + }, + point: function(f, d) { + var p, + h = [f, d], + g = i(f, d), + m = r + ? g + ? 0 + : s(f, d) + : g + ? s(f + (f < 0 ? Vc : -Vc), d) + : 0; + if ( + (!t && (u = c = g) && e.lineStart(), + g !== c && + (!(p = a(t, h)) || Gl(t, p) || Gl(h, p)) && + ((h[0] += Yc), (h[1] += Yc), (g = i(h[0], h[1]))), + g !== c) + ) + (l = 0), + g + ? (e.lineStart(), (p = a(h, t)), e.point(p[0], p[1])) + : ((p = a(t, h)), e.point(p[0], p[1]), e.lineEnd()), + (t = p); + else if (o && t && r ^ g) { + var b; + m & n || + !(b = a(h, t, !0)) || + ((l = 0), + r + ? (e.lineStart(), + e.point(b[0][0], b[0][1]), + e.point(b[1][0], b[1][1]), + e.lineEnd()) + : (e.point(b[1][0], b[1][1]), + e.lineEnd(), + e.lineStart(), + e.point(b[0][0], b[0][1]))); + } + !g || (t && Gl(t, h)) || e.point(h[0], h[1]), + (t = h), + (c = g), + (n = m); + }, + lineEnd: function() { + c && e.lineEnd(), (t = null); + }, + clean: function() { + return l | ((u && c) << 1); + } + }; }, - lastDay: function() { - return '[ayer a la' + (1 !== this.hours() ? 's' : '') + '] LT'; + function(t, r, o, i) { + Wl(i, e, n, o, t, r); }, - lastWeek: function() { - return ( - '[el] dddd [pasado a la' + - (1 !== this.hours() ? 's' : '') + - '] LT' - ); + r ? [0, -e] : [-Vc, e - Vc] + ); + }, + sf = function(e, t, n, r, o, i) { + var a, + s = e[0], + c = e[1], + u = 0, + l = 1, + f = t[0] - s, + d = t[1] - c; + if (((a = n - s), f || !(a > 0))) { + if (((a /= f), f < 0)) { + if (a < u) return; + a < l && (l = a); + } else if (f > 0) { + if (a > l) return; + a > u && (u = a); + } + if (((a = o - s), f || !(a < 0))) { + if (((a /= f), f < 0)) { + if (a > l) return; + a > u && (u = a); + } else if (f > 0) { + if (a < u) return; + a < l && (l = a); + } + if (((a = r - c), d || !(a > 0))) { + if (((a /= d), d < 0)) { + if (a < u) return; + a < l && (l = a); + } else if (d > 0) { + if (a > l) return; + a > u && (u = a); + } + if (((a = i - c), d || !(a < 0))) { + if (((a /= d), d < 0)) { + if (a > l) return; + a > u && (u = a); + } else if (d > 0) { + if (a < u) return; + a < l && (l = a); + } + return ( + u > 0 && ((e[0] = s + u * f), (e[1] = c + u * d)), + l < 1 && ((t[0] = s + l * f), (t[1] = c + l * d)), + !0 + ); + } + } + } + } + }, + cf = 1e9, + uf = -cf; + function lf(e, t, n, r) { + function o(o, i) { + return e <= o && o <= n && t <= i && i <= r; + } + function i(o, i, s, u) { + var l = 0, + f = 0; + if ( + null == o || + (l = a(o, s)) !== (f = a(i, s)) || + (c(o, i) < 0) ^ (s > 0) + ) + do { + u.point(0 === l || 3 === l ? e : n, l > 1 ? r : t); + } while ((l = (l + s + 4) % 4) !== f); + else u.point(i[0], i[1]); + } + function a(r, o) { + return Qc(r[0] - e) < Yc + ? o > 0 + ? 0 + : 3 + : Qc(r[0] - n) < Yc + ? o > 0 + ? 2 + : 1 + : Qc(r[1] - t) < Yc + ? o > 0 + ? 1 + : 0 + : o > 0 + ? 3 + : 2; + } + function s(e, t) { + return c(e.x, t.x); + } + function c(e, t) { + var n = a(e, 1), + r = a(t, 1); + return n !== r + ? n - r + : 0 === n + ? t[1] - e[1] + : 1 === n + ? e[0] - t[0] + : 2 === n + ? e[1] - t[1] + : t[0] - e[0]; + } + return function(a) { + var c, + u, + l, + f, + d, + p, + h, + g, + m, + b, + y, + v = a, + _ = Xl(), + w = { + point: x, + lineStart: function() { + (w.point = M), u && u.push((l = [])); + (b = !0), (m = !1), (h = g = NaN); + }, + lineEnd: function() { + c && (M(f, d), p && m && _.rejoin(), c.push(_.result())); + (w.point = x), m && v.lineEnd(); + }, + polygonStart: function() { + (v = _), (c = []), (u = []), (y = !0); + }, + polygonEnd: function() { + var t = (function() { + for (var t = 0, n = 0, o = u.length; n < o; ++n) + for ( + var i, + a, + s = u[n], + c = 1, + l = s.length, + f = s[0], + d = f[0], + p = f[1]; + c < l; + ++c + ) + (i = d), + (a = p), + (f = s[c]), + (d = f[0]), + (p = f[1]), + a <= r + ? p > r && + (d - i) * (r - a) > (p - a) * (e - i) && + ++t + : p <= r && + (d - i) * (r - a) < (p - a) * (e - i) && + --t; + return t; + })(), + n = y && t, + o = (c = R(c)).length; + (n || o) && + (a.polygonStart(), + n && (a.lineStart(), i(null, null, 1, a), a.lineEnd()), + o && $l(c, s, t, i, a), + a.polygonEnd()); + (v = a), (c = u = l = null); + } + }; + function x(e, t) { + o(e, t) && v.point(e, t); + } + function M(i, a) { + var s = o(i, a); + if ((u && l.push([i, a]), b)) + (f = i), + (d = a), + (p = s), + (b = !1), + s && (v.lineStart(), v.point(i, a)); + else if (s && m) v.point(i, a); + else { + var c = [ + (h = Math.max(uf, Math.min(cf, h))), + (g = Math.max(uf, Math.min(cf, g))) + ], + _ = [ + (i = Math.max(uf, Math.min(cf, i))), + (a = Math.max(uf, Math.min(cf, a))) + ]; + sf(c, _, e, t, n, r) + ? (m || (v.lineStart(), v.point(c[0], c[1])), + v.point(_[0], _[1]), + s || v.lineEnd(), + (y = !1)) + : s && (v.lineStart(), v.point(i, a), (y = !1)); + } + (h = i), (g = a), (m = s); + } + return w; + }; + } + var ff, + df, + pf, + hf = function() { + var e, + t, + n, + r = 0, + o = 0, + i = 960, + a = 500; + return (n = { + stream: function(n) { + return e && t === n ? e : (e = lf(r, o, i, a)((t = n))); }, - sameElse: 'L' + extent: function(s) { + return arguments.length + ? ((r = +s[0][0]), + (o = +s[0][1]), + (i = +s[1][0]), + (a = +s[1][1]), + (e = t = null), + n) + : [[r, o], [i, a]]; + } + }); + }, + gf = Fc(), + mf = { + sphere: du, + point: du, + lineStart: function() { + (mf.point = yf), (mf.lineEnd = bf); }, - relativeTime: { - future: 'en %s', - past: 'hace %s', - s: 'unos segundos', - ss: '%d segundos', - m: 'un minuto', - mm: '%d minutos', - h: 'una hora', - hh: '%d horas', - d: 'un día', - dd: '%d días', - M: 'un mes', - MM: '%d meses', - y: 'un año', - yy: '%d años' + lineEnd: du, + polygonStart: du, + polygonEnd: du + }; + function bf() { + mf.point = mf.lineEnd = du; + } + function yf(e, t) { + (ff = e *= $c), (df = iu((t *= $c))), (pf = eu(t)), (mf.point = vf); + } + function vf(e, t) { + e *= $c; + var n = iu((t *= $c)), + r = eu(t), + o = Qc(e - ff), + i = eu(o), + a = r * iu(o), + s = pf * n - df * r * i, + c = df * n + pf * r * i; + gf.add(Zc(su(a * a + s * s), c)), (ff = e), (df = n), (pf = r); + } + var _f = function(e) { + return gf.reset(), Mu(e, mf), +gf; + }, + wf = [null, null], + xf = { type: 'LineString', coordinates: wf }, + Mf = function(e, t) { + return (wf[0] = e), (wf[1] = t), _f(xf); + }, + kf = { + Feature: function(e, t) { + return Of(e.geometry, t); }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( - '_' - ), - n = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), - r = [ - /^ene/i, - /^feb/i, - /^mar/i, - /^abr/i, - /^may/i, - /^jun/i, - /^jul/i, - /^ago/i, - /^sep/i, - /^oct/i, - /^nov/i, - /^dic/i - ], - o = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; - e.defineLocale('es-us', { - months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( - '_' - ), - monthsShort: function(e, r) { - return e ? (/-MMM-/.test(r) ? n[e.month()] : t[e.month()]) : t; + FeatureCollection: function(e, t) { + for (var n = e.features, r = -1, o = n.length; ++r < o; ) + if (Of(n[r].geometry, t)) return !0; + return !1; + } + }, + Sf = { + Sphere: function() { + return !0; }, - monthsRegex: o, - monthsShortRegex: o, - monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, - monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, - monthsParse: r, - longMonthsParse: r, - shortMonthsParse: r, - weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split( - '_' - ), - weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), - weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'MM/DD/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY h:mm A', - LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A' + Point: function(e, t) { + return Ef(e.coordinates, t); }, - calendar: { - sameDay: function() { - return '[hoy a la' + (1 !== this.hours() ? 's' : '') + '] LT'; - }, - nextDay: function() { - return '[mañana a la' + (1 !== this.hours() ? 's' : '') + '] LT'; - }, - nextWeek: function() { - return 'dddd [a la' + (1 !== this.hours() ? 's' : '') + '] LT'; - }, - lastDay: function() { - return '[ayer a la' + (1 !== this.hours() ? 's' : '') + '] LT'; - }, - lastWeek: function() { - return ( - '[el] dddd [pasado a la' + - (1 !== this.hours() ? 's' : '') + - '] LT' - ); - }, - sameElse: 'L' + MultiPoint: function(e, t) { + for (var n = e.coordinates, r = -1, o = n.length; ++r < o; ) + if (Ef(n[r], t)) return !0; + return !1; }, - relativeTime: { - future: 'en %s', - past: 'hace %s', - s: 'unos segundos', - ss: '%d segundos', - m: 'un minuto', - mm: '%d minutos', - h: 'una hora', - hh: '%d horas', - d: 'un día', - dd: '%d días', - M: 'un mes', - MM: '%d meses', - y: 'un año', - yy: '%d años' + LineString: function(e, t) { + return Af(e.coordinates, t); }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { dow: 0, doy: 6 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - function t(e, t, n, r) { - var o = { - s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'], - ss: [e + 'sekundi', e + 'sekundit'], - m: ['ühe minuti', 'üks minut'], - mm: [e + ' minuti', e + ' minutit'], - h: ['ühe tunni', 'tund aega', 'üks tund'], - hh: [e + ' tunni', e + ' tundi'], - d: ['ühe päeva', 'üks päev'], - M: ['kuu aja', 'kuu aega', 'üks kuu'], - MM: [e + ' kuu', e + ' kuud'], - y: ['ühe aasta', 'aasta', 'üks aasta'], - yy: [e + ' aasta', e + ' aastat'] - }; - return t ? (o[n][2] ? o[n][2] : o[n][1]) : r ? o[n][0] : o[n][1]; - } - e.defineLocale('et', { - months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split( - '_' - ), - monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split( - '_' - ), - weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split( - '_' - ), - weekdaysShort: 'P_E_T_K_N_R_L'.split('_'), - weekdaysMin: 'P_E_T_K_N_R_L'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm' + MultiLineString: function(e, t) { + for (var n = e.coordinates, r = -1, o = n.length; ++r < o; ) + if (Af(n[r], t)) return !0; + return !1; }, - calendar: { - sameDay: '[Täna,] LT', - nextDay: '[Homme,] LT', - nextWeek: '[Järgmine] dddd LT', - lastDay: '[Eile,] LT', - lastWeek: '[Eelmine] dddd LT', - sameElse: 'L' + Polygon: function(e, t) { + return Tf(e.coordinates, t); }, - relativeTime: { - future: '%s pärast', - past: '%s tagasi', - s: t, - ss: t, - m: t, - mm: t, - h: t, - hh: t, - d: t, - dd: '%d päeva', - M: t, - MM: t, - y: t, - yy: t + MultiPolygon: function(e, t) { + for (var n = e.coordinates, r = -1, o = n.length; ++r < o; ) + if (Tf(n[r], t)) return !0; + return !1; }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('eu', { - months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split( - '_' - ), - monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split( - '_' - ), - weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'), - weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'YYYY[ko] MMMM[ren] D[a]', - LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm', - LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm', - l: 'YYYY-M-D', - ll: 'YYYY[ko] MMM D[a]', - lll: 'YYYY[ko] MMM D[a] HH:mm', - llll: 'ddd, YYYY[ko] MMM D[a] HH:mm' + GeometryCollection: function(e, t) { + for (var n = e.geometries, r = -1, o = n.length; ++r < o; ) + if (Of(n[r], t)) return !0; + return !1; + } + }; + function Of(e, t) { + return !(!e || !Sf.hasOwnProperty(e.type)) && Sf[e.type](e, t); + } + function Ef(e, t) { + return 0 === Mf(e, t); + } + function Af(e, t) { + for (var n, r, o, i = 0, a = e.length; i < a; i++) { + if (0 === (r = Mf(e[i], t))) return !0; + if ( + i > 0 && + (o = Mf(e[i], e[i - 1])) > 0 && + n <= o && + r <= o && + (n + r - o) * (1 - Math.pow((n - r) / o, 2)) < Wc * o + ) + return !0; + n = r; + } + return !1; + } + function Tf(e, t) { + return !!ef(e.map(Cf), Lf(t)); + } + function Cf(e) { + return (e = e.map(Lf)).pop(), e; + } + function Lf(e) { + return [e[0] * $c, e[1] * $c]; + } + var Pf = function(e, t) { + return (e && kf.hasOwnProperty(e.type) ? kf[e.type] : Of)(e, t); + }; + function Df(e, t, n) { + var r = x(e, t - Yc, n).concat(t); + return function(e) { + return r.map(function(t) { + return [e, t]; + }); + }; + } + function jf(e, t, n) { + var r = x(e, t - Yc, n).concat(t); + return function(e) { + return r.map(function(t) { + return [t, e]; + }); + }; + } + function zf() { + var e, + t, + n, + r, + o, + i, + a, + s, + c, + u, + l, + f, + d = 10, + p = d, + h = 90, + g = 360, + m = 2.5; + function b() { + return { type: 'MultiLineString', coordinates: y() }; + } + function y() { + return x(tu(r / h) * h, n, h) + .map(l) + .concat(x(tu(s / g) * g, a, g).map(f)) + .concat( + x(tu(t / d) * d, e, d) + .filter(function(e) { + return Qc(e % h) > Yc; + }) + .map(c) + ) + .concat( + x(tu(i / p) * p, o, p) + .filter(function(e) { + return Qc(e % g) > Yc; + }) + .map(u) + ); + } + return ( + (b.lines = function() { + return y().map(function(e) { + return { type: 'LineString', coordinates: e }; + }); + }), + (b.outline = function() { + return { + type: 'Polygon', + coordinates: [ + l(r).concat( + f(a).slice(1), + l(n) + .reverse() + .slice(1), + f(s) + .reverse() + .slice(1) + ) + ] + }; + }), + (b.extent = function(e) { + return arguments.length + ? b.extentMajor(e).extentMinor(e) + : b.extentMinor(); + }), + (b.extentMajor = function(e) { + return arguments.length + ? ((r = +e[0][0]), + (n = +e[1][0]), + (s = +e[0][1]), + (a = +e[1][1]), + r > n && ((e = r), (r = n), (n = e)), + s > a && ((e = s), (s = a), (a = e)), + b.precision(m)) + : [[r, s], [n, a]]; + }), + (b.extentMinor = function(n) { + return arguments.length + ? ((t = +n[0][0]), + (e = +n[1][0]), + (i = +n[0][1]), + (o = +n[1][1]), + t > e && ((n = t), (t = e), (e = n)), + i > o && ((n = i), (i = o), (o = n)), + b.precision(m)) + : [[t, i], [e, o]]; + }), + (b.step = function(e) { + return arguments.length + ? b.stepMajor(e).stepMinor(e) + : b.stepMinor(); + }), + (b.stepMajor = function(e) { + return arguments.length ? ((h = +e[0]), (g = +e[1]), b) : [h, g]; + }), + (b.stepMinor = function(e) { + return arguments.length ? ((d = +e[0]), (p = +e[1]), b) : [d, p]; + }), + (b.precision = function(d) { + return arguments.length + ? ((m = +d), + (c = Df(i, o, 90)), + (u = jf(t, e, m)), + (l = Df(s, a, 90)), + (f = jf(r, n, m)), + b) + : m; + }), + b + .extentMajor([[-180, -90 + Yc], [180, 90 - Yc]]) + .extentMinor([[-180, -80 - Yc], [180, 80 + Yc]]) + ); + } + function Nf() { + return zf()(); + } + var Rf, + If, + Ff, + qf, + Bf = function(e, t) { + var n = e[0] * $c, + r = e[1] * $c, + o = t[0] * $c, + i = t[1] * $c, + a = eu(r), + s = iu(r), + c = eu(i), + u = iu(i), + l = a * eu(n), + f = a * iu(n), + d = c * eu(o), + p = c * iu(o), + h = 2 * lu(su(fu(i - r) + a * c * fu(o - n))), + g = iu(h), + m = h + ? function(e) { + var t = iu((e *= h)) / g, + n = iu(h - e) / g, + r = n * l + t * d, + o = n * f + t * p, + i = n * s + t * u; + return [Zc(o, r) * Kc, Zc(i, su(r * r + o * o)) * Kc]; + } + : function() { + return [n * Kc, r * Kc]; + }; + return (m.distance = h), m; + }, + Hf = function(e) { + return e; + }, + Yf = Fc(), + Wf = Fc(), + Vf = { + point: du, + lineStart: du, + lineEnd: du, + polygonStart: function() { + (Vf.lineStart = Uf), (Vf.lineEnd = Kf); }, - calendar: { - sameDay: '[gaur] LT[etan]', - nextDay: '[bihar] LT[etan]', - nextWeek: 'dddd LT[etan]', - lastDay: '[atzo] LT[etan]', - lastWeek: '[aurreko] dddd LT[etan]', - sameElse: 'L' + polygonEnd: function() { + (Vf.lineStart = Vf.lineEnd = Vf.point = du), + Yf.add(Qc(Wf)), + Wf.reset(); }, - relativeTime: { - future: '%s barru', - past: 'duela %s', - s: 'segundo batzuk', - ss: '%d segundo', - m: 'minutu bat', - mm: '%d minutu', - h: 'ordu bat', - hh: '%d ordu', - d: 'egun bat', - dd: '%d egun', - M: 'hilabete bat', - MM: '%d hilabete', - y: 'urte bat', - yy: '%d urte' + result: function() { + var e = Yf / 2; + return Yf.reset(), e; + } + }; + function Uf() { + Vf.point = Xf; + } + function Xf(e, t) { + (Vf.point = Gf), (Rf = Ff = e), (If = qf = t); + } + function Gf(e, t) { + Wf.add(qf * e - Ff * t), (Ff = e), (qf = t); + } + function Kf() { + Gf(Rf, If); + } + var $f = Vf, + Qf = 1 / 0, + Jf = Qf, + Zf = -Qf, + ed = Zf; + var td, + nd, + rd, + od, + id = { + point: function(e, t) { + e < Qf && (Qf = e); + e > Zf && (Zf = e); + t < Jf && (Jf = t); + t > ed && (ed = t); + }, + lineStart: du, + lineEnd: du, + polygonStart: du, + polygonEnd: du, + result: function() { + var e = [[Qf, Jf], [Zf, ed]]; + return (Zf = ed = -(Jf = Qf = 1 / 0)), e; + } + }, + ad = 0, + sd = 0, + cd = 0, + ud = 0, + ld = 0, + fd = 0, + dd = 0, + pd = 0, + hd = 0, + gd = { + point: md, + lineStart: bd, + lineEnd: _d, + polygonStart: function() { + (gd.lineStart = wd), (gd.lineEnd = xd); }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 7 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = { - 1: '۱', - 2: '۲', - 3: '۳', - 4: '۴', - 5: '۵', - 6: '۶', - 7: '۷', - 8: '۸', - 9: '۹', - 0: '۰' + polygonEnd: function() { + (gd.point = md), (gd.lineStart = bd), (gd.lineEnd = _d); }, - n = { - '۱': '1', - '۲': '2', - '۳': '3', - '۴': '4', - '۵': '5', - '۶': '6', - '۷': '7', - '۸': '8', - '۹': '9', - '۰': '0' - }; - e.defineLocale('fa', { - months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split( - '_' - ), - monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split( - '_' - ), - weekdays: 'یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه'.split( - '_' - ), - weekdaysShort: 'یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه'.split( - '_' - ), - weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' + result: function() { + var e = hd + ? [dd / hd, pd / hd] + : fd + ? [ud / fd, ld / fd] + : cd + ? [ad / cd, sd / cd] + : [NaN, NaN]; + return (ad = sd = cd = ud = ld = fd = dd = pd = hd = 0), e; + } + }; + function md(e, t) { + (ad += e), (sd += t), ++cd; + } + function bd() { + gd.point = yd; + } + function yd(e, t) { + (gd.point = vd), md((rd = e), (od = t)); + } + function vd(e, t) { + var n = e - rd, + r = t - od, + o = su(n * n + r * r); + (ud += (o * (rd + e)) / 2), + (ld += (o * (od + t)) / 2), + (fd += o), + md((rd = e), (od = t)); + } + function _d() { + gd.point = md; + } + function wd() { + gd.point = Md; + } + function xd() { + kd(td, nd); + } + function Md(e, t) { + (gd.point = kd), md((td = rd = e), (nd = od = t)); + } + function kd(e, t) { + var n = e - rd, + r = t - od, + o = su(n * n + r * r); + (ud += (o * (rd + e)) / 2), + (ld += (o * (od + t)) / 2), + (fd += o), + (dd += (o = od * e - rd * t) * (rd + e)), + (pd += o * (od + t)), + (hd += 3 * o), + md((rd = e), (od = t)); + } + var Sd = gd; + function Od(e) { + this._context = e; + } + Od.prototype = { + _radius: 4.5, + pointRadius: function(e) { + return (this._radius = e), this; + }, + polygonStart: function() { + this._line = 0; + }, + polygonEnd: function() { + this._line = NaN; + }, + lineStart: function() { + this._point = 0; + }, + lineEnd: function() { + 0 === this._line && this._context.closePath(), (this._point = NaN); + }, + point: function(e, t) { + switch (this._point) { + case 0: + this._context.moveTo(e, t), (this._point = 1); + break; + case 1: + this._context.lineTo(e, t); + break; + default: + this._context.moveTo(e + this._radius, t), + this._context.arc(e, t, this._radius, 0, Gc); + } + }, + result: du + }; + var Ed, + Ad, + Td, + Cd, + Ld, + Pd = Fc(), + Dd = { + point: du, + lineStart: function() { + Dd.point = jd; }, - meridiemParse: /قبل از ظهر|بعد از ظهر/, - isPM: function(e) { - return /بعد از ظهر/.test(e); + lineEnd: function() { + Ed && zd(Ad, Td), (Dd.point = du); }, - meridiem: function(e, t, n) { - return e < 12 ? 'قبل از ظهر' : 'بعد از ظهر'; + polygonStart: function() { + Ed = !0; }, - calendar: { - sameDay: '[امروز ساعت] LT', - nextDay: '[فردا ساعت] LT', - nextWeek: 'dddd [ساعت] LT', - lastDay: '[دیروز ساعت] LT', - lastWeek: 'dddd [پیش] [ساعت] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'در %s', - past: '%s پیش', - s: 'چند ثانیه', - ss: 'ثانیه d%', - m: 'یک دقیقه', - mm: '%d دقیقه', - h: 'یک ساعت', - hh: '%d ساعت', - d: 'یک روز', - dd: '%d روز', - M: 'یک ماه', - MM: '%d ماه', - y: 'یک سال', - yy: '%d سال' - }, - preparse: function(e) { - return e - .replace(/[۰-۹]/g, function(e) { - return n[e]; - }) - .replace(/،/g, ','); - }, - postformat: function(e) { - return e - .replace(/\d/g, function(e) { - return t[e]; - }) - .replace(/,/g, '،'); + polygonEnd: function() { + Ed = null; }, - dayOfMonthOrdinalParse: /\d{1,2}م/, - ordinal: '%dم', - week: { dow: 6, doy: 12 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split( - ' ' - ), - n = [ - 'nolla', - 'yhden', - 'kahden', - 'kolmen', - 'neljän', - 'viiden', - 'kuuden', - t[7], - t[8], - t[9] - ]; - function r(e, r, o, i) { - var a = ''; - switch (o) { - case 's': - return i ? 'muutaman sekunnin' : 'muutama sekunti'; - case 'ss': - return i ? 'sekunnin' : 'sekuntia'; - case 'm': - return i ? 'minuutin' : 'minuutti'; - case 'mm': - a = i ? 'minuutin' : 'minuuttia'; - break; - case 'h': - return i ? 'tunnin' : 'tunti'; - case 'hh': - a = i ? 'tunnin' : 'tuntia'; - break; - case 'd': - return i ? 'päivän' : 'päivä'; - case 'dd': - a = i ? 'päivän' : 'päivää'; + result: function() { + var e = +Pd; + return Pd.reset(), e; + } + }; + function jd(e, t) { + (Dd.point = zd), (Ad = Cd = e), (Td = Ld = t); + } + function zd(e, t) { + (Cd -= e), (Ld -= t), Pd.add(su(Cd * Cd + Ld * Ld)), (Cd = e), (Ld = t); + } + var Nd = Dd; + function Rd() { + this._string = []; + } + function Id(e) { + return ( + 'm0,' + + e + + 'a' + + e + + ',' + + e + + ' 0 1,1 0,' + + -2 * e + + 'a' + + e + + ',' + + e + + ' 0 1,1 0,' + + 2 * e + + 'z' + ); + } + Rd.prototype = { + _radius: 4.5, + _circle: Id(4.5), + pointRadius: function(e) { + return ( + (e = +e) !== this._radius && + ((this._radius = e), (this._circle = null)), + this + ); + }, + polygonStart: function() { + this._line = 0; + }, + polygonEnd: function() { + this._line = NaN; + }, + lineStart: function() { + this._point = 0; + }, + lineEnd: function() { + 0 === this._line && this._string.push('Z'), (this._point = NaN); + }, + point: function(e, t) { + switch (this._point) { + case 0: + this._string.push('M', e, ',', t), (this._point = 1); break; - case 'M': - return i ? 'kuukauden' : 'kuukausi'; - case 'MM': - a = i ? 'kuukauden' : 'kuukautta'; + case 1: + this._string.push('L', e, ',', t); break; - case 'y': - return i ? 'vuoden' : 'vuosi'; - case 'yy': - a = i ? 'vuoden' : 'vuotta'; + default: + null == this._circle && (this._circle = Id(this._radius)), + this._string.push('M', e, ',', t, this._circle); } - return (a = - (function(e, r) { - return e < 10 ? (r ? n[e] : t[e]) : e; - })(e, i) + - ' ' + - a); + }, + result: function() { + if (this._string.length) { + var e = this._string.join(''); + return (this._string = []), e; + } + return null; } - e.defineLocale('fi', { - months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split( - '_' - ), - monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split( - '_' - ), - weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split( - '_' - ), - weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'), - weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD.MM.YYYY', - LL: 'Do MMMM[ta] YYYY', - LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm', - LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm', - l: 'D.M.YYYY', - ll: 'Do MMM YYYY', - lll: 'Do MMM YYYY, [klo] HH.mm', - llll: 'ddd, Do MMM YYYY, [klo] HH.mm' + }; + var Fd = function(e, t) { + var n, + r, + o = 4.5; + function i(e) { + return ( + e && + ('function' == typeof o && + r.pointRadius(+o.apply(this, arguments)), + Mu(e, n(r))), + r.result() + ); + } + return ( + (i.area = function(e) { + return Mu(e, n($f)), $f.result(); + }), + (i.measure = function(e) { + return Mu(e, n(Nd)), Nd.result(); + }), + (i.bounds = function(e) { + return Mu(e, n(id)), id.result(); + }), + (i.centroid = function(e) { + return Mu(e, n(Sd)), Sd.result(); + }), + (i.projection = function(t) { + return arguments.length + ? ((n = null == t ? ((e = null), Hf) : (e = t).stream), i) + : e; + }), + (i.context = function(e) { + return arguments.length + ? ((r = null == e ? ((t = null), new Rd()) : new Od((t = e))), + 'function' != typeof o && r.pointRadius(o), + i) + : t; + }), + (i.pointRadius = function(e) { + return arguments.length + ? ((o = 'function' == typeof e ? e : (r.pointRadius(+e), +e)), + i) + : o; + }), + i.projection(e).context(t) + ); + }, + qd = function(e) { + return { stream: Bd(e) }; + }; + function Bd(e) { + return function(t) { + var n = new Hd(); + for (var r in e) n[r] = e[r]; + return (n.stream = t), n; + }; + } + function Hd() {} + function Yd(e, t, n) { + var r = e.clipExtent && e.clipExtent(); + return ( + e.scale(150).translate([0, 0]), + null != r && e.clipExtent(null), + Mu(n, e.stream(id)), + t(id.result()), + null != r && e.clipExtent(r), + e + ); + } + function Wd(e, t, n) { + return Yd( + e, + function(n) { + var r = t[1][0] - t[0][0], + o = t[1][1] - t[0][1], + i = Math.min(r / (n[1][0] - n[0][0]), o / (n[1][1] - n[0][1])), + a = +t[0][0] + (r - i * (n[1][0] + n[0][0])) / 2, + s = +t[0][1] + (o - i * (n[1][1] + n[0][1])) / 2; + e.scale(150 * i).translate([a, s]); }, - calendar: { - sameDay: '[tänään] [klo] LT', - nextDay: '[huomenna] [klo] LT', - nextWeek: 'dddd [klo] LT', - lastDay: '[eilen] [klo] LT', - lastWeek: '[viime] dddd[na] [klo] LT', - sameElse: 'L' + n + ); + } + function Vd(e, t, n) { + return Wd(e, [[0, 0], t], n); + } + function Ud(e, t, n) { + return Yd( + e, + function(n) { + var r = +t, + o = r / (n[1][0] - n[0][0]), + i = (r - o * (n[1][0] + n[0][0])) / 2, + a = -o * n[0][1]; + e.scale(150 * o).translate([i, a]); }, - relativeTime: { - future: '%s päästä', - past: '%s sitten', - s: r, - ss: r, - m: r, - mm: r, - h: r, - hh: r, - d: r, - dd: r, - M: r, - MM: r, - y: r, - yy: r + n + ); + } + function Xd(e, t, n) { + return Yd( + e, + function(n) { + var r = +t, + o = r / (n[1][1] - n[0][1]), + i = -o * n[0][0], + a = (r - o * (n[1][1] + n[0][1])) / 2; + e.scale(150 * o).translate([i, a]); }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } + n + ); + } + Hd.prototype = { + constructor: Hd, + point: function(e, t) { + this.stream.point(e, t); + }, + sphere: function() { + this.stream.sphere(); + }, + lineStart: function() { + this.stream.lineStart(); + }, + lineEnd: function() { + this.stream.lineEnd(); + }, + polygonStart: function() { + this.stream.polygonStart(); + }, + polygonEnd: function() { + this.stream.polygonEnd(); + } + }; + var Gd = 16, + Kd = eu(30 * $c), + $d = function(e, t) { + return +t + ? (function(e, t) { + function n(r, o, i, a, s, c, u, l, f, d, p, h, g, m) { + var b = u - r, + y = l - o, + v = b * b + y * y; + if (v > 4 * t && g--) { + var _ = a + d, + w = s + p, + x = c + h, + M = su(_ * _ + w * w + x * x), + k = lu((x /= M)), + S = + Qc(Qc(x) - 1) < Yc || Qc(i - f) < Yc + ? (i + f) / 2 + : Zc(w, _), + O = e(S, k), + E = O[0], + A = O[1], + T = E - r, + C = A - o, + L = y * T - b * C; + ((L * L) / v > t || + Qc((b * T + y * C) / v - 0.5) > 0.3 || + a * d + s * p + c * h < Kd) && + (n( + r, + o, + i, + a, + s, + c, + E, + A, + S, + (_ /= M), + (w /= M), + x, + g, + m + ), + m.point(E, A), + n(E, A, S, _, w, x, u, l, f, d, p, h, g, m)); + } + } + return function(t) { + var r, + o, + i, + a, + s, + c, + u, + l, + f, + d, + p, + h, + g = { + point: m, + lineStart: b, + lineEnd: v, + polygonStart: function() { + t.polygonStart(), (g.lineStart = _); + }, + polygonEnd: function() { + t.polygonEnd(), (g.lineStart = b); + } + }; + function m(n, r) { + (n = e(n, r)), t.point(n[0], n[1]); + } + function b() { + (l = NaN), (g.point = y), t.lineStart(); + } + function y(r, o) { + var i = Du([r, o]), + a = e(r, o); + n( + l, + f, + u, + d, + p, + h, + (l = a[0]), + (f = a[1]), + (u = r), + (d = i[0]), + (p = i[1]), + (h = i[2]), + Gd, + t + ), + t.point(l, f); + } + function v() { + (g.point = m), t.lineEnd(); + } + function _() { + b(), (g.point = w), (g.lineEnd = x); + } + function w(e, t) { + y((r = e), t), + (o = l), + (i = f), + (a = d), + (s = p), + (c = h), + (g.point = y); + } + function x() { + n(l, f, u, d, p, h, o, i, r, a, s, c, Gd, t), + (g.lineEnd = v), + v(); + } + return g; + }; + })(e, t) + : (function(e) { + return Bd({ + point: function(t, n) { + (t = e(t, n)), this.stream.point(t[0], t[1]); + } + }); + })(e); + }; + var Qd = Bd({ + point: function(e, t) { + this.stream.point(e * $c, t * $c); + } + }); + function Jd(e, t, n) { + function r(r, o) { + return [t + e * r, n - e * o]; + } + return ( + (r.invert = function(r, o) { + return [(r - t) / e, (n - o) / e]; + }), + r + ); + } + function Zd(e, t, n, r) { + var o = eu(r), + i = iu(r), + a = o * e, + s = i * e, + c = o / e, + u = i / e, + l = (i * n - o * t) / e, + f = (i * t + o * n) / e; + function d(e, r) { + return [a * e - s * r + t, n - s * e - a * r]; + } + return ( + (d.invert = function(e, t) { + return [c * e - u * t + l, f - u * e - c * t]; + }), + d + ); + } + function ep(e) { + return tp(function() { + return e; + })(); + } + function tp(e) { + var t, + n, + r, + o, + i, + a, + s, + c, + u, + l, + f = 150, + d = 480, + p = 250, + h = 0, + g = 0, + m = 0, + b = 0, + y = 0, + v = 0, + _ = null, + w = of, + x = null, + M = Hf, + k = 0.5; + function S(e) { + return c(e[0] * $c, e[1] * $c); + } + function O(e) { + return (e = c.invert(e[0], e[1])) && [e[0] * Kc, e[1] * Kc]; + } + function E() { + var e = Zd(f, 0, 0, v).apply(null, t(h, g)), + r = (v ? Zd : Jd)(f, d - e[0], p - e[1], v); + return ( + (n = Fl(m, b, y)), + (s = Rl(t, r)), + (c = Rl(n, s)), + (a = $d(s, k)), + A() + ); + } + function A() { + return (u = l = null), S; + } + return ( + (S.stream = function(e) { + return u && l === e + ? u + : (u = Qd( + (function(e) { + return Bd({ + point: function(t, n) { + var r = e(t, n); + return this.stream.point(r[0], r[1]); + } + }); + })(n)(w(a(M((l = e))))) + )); + }), + (S.preclip = function(e) { + return arguments.length ? ((w = e), (_ = void 0), A()) : w; + }), + (S.postclip = function(e) { + return arguments.length + ? ((M = e), (x = r = o = i = null), A()) + : M; + }), + (S.clipAngle = function(e) { + return arguments.length + ? ((w = +e ? af((_ = e * $c)) : ((_ = null), of)), A()) + : _ * Kc; + }), + (S.clipExtent = function(e) { + return arguments.length + ? ((M = + null == e + ? ((x = r = o = i = null), Hf) + : lf( + (x = +e[0][0]), + (r = +e[0][1]), + (o = +e[1][0]), + (i = +e[1][1]) + )), + A()) + : null == x + ? null + : [[x, r], [o, i]]; + }), + (S.scale = function(e) { + return arguments.length ? ((f = +e), E()) : f; + }), + (S.translate = function(e) { + return arguments.length ? ((d = +e[0]), (p = +e[1]), E()) : [d, p]; + }), + (S.center = function(e) { + return arguments.length + ? ((h = (e[0] % 360) * $c), (g = (e[1] % 360) * $c), E()) + : [h * Kc, g * Kc]; + }), + (S.rotate = function(e) { + return arguments.length + ? ((m = (e[0] % 360) * $c), + (b = (e[1] % 360) * $c), + (y = e.length > 2 ? (e[2] % 360) * $c : 0), + E()) + : [m * Kc, b * Kc, y * Kc]; + }), + (S.angle = function(e) { + return arguments.length ? ((v = (e % 360) * $c), E()) : v * Kc; + }), + (S.precision = function(e) { + return arguments.length ? ((a = $d(s, (k = e * e))), A()) : su(k); + }), + (S.fitExtent = function(e, t) { + return Wd(S, e, t); + }), + (S.fitSize = function(e, t) { + return Vd(S, e, t); + }), + (S.fitWidth = function(e, t) { + return Ud(S, e, t); + }), + (S.fitHeight = function(e, t) { + return Xd(S, e, t); + }), + function() { + return ( + (t = e.apply(this, arguments)), (S.invert = t.invert && O), E() + ); + } + ); + } + function np(e) { + var t = 0, + n = Vc / 3, + r = tp(e), + o = r(t, n); + return ( + (o.parallels = function(e) { + return arguments.length + ? r((t = e[0] * $c), (n = e[1] * $c)) + : [t * Kc, n * Kc]; + }), + o + ); + } + function rp(e, t) { + var n = iu(e), + r = (n + iu(t)) / 2; + if (Qc(r) < Yc) + return (function(e) { + var t = eu(e); + function n(e, n) { + return [e * t, iu(n) / t]; + } + return ( + (n.invert = function(e, n) { + return [e / t, lu(n * t)]; + }), + n + ); + })(e); + var o = 1 + n * (2 * r - n), + i = su(o) / r; + function a(e, t) { + var n = su(o - 2 * r * iu(t)) / r; + return [n * iu((e *= r)), i - n * eu(e)]; + } + return ( + (a.invert = function(e, t) { + var n = i - t; + return [ + (Zc(e, Qc(n)) / r) * au(n), + lu((o - (e * e + n * n) * r * r) / (2 * r)) + ]; + }), + a + ); + } + var op = function() { + return np(rp) + .scale(155.424) + .center([0, 33.6442]); + }, + ip = function() { + return op() + .parallels([29.5, 45.5]) + .scale(1070) + .translate([480, 250]) + .rotate([96, 0]) + .center([-0.6, 38.7]); + }; + var ap = function() { + var e, + t, + n, + r, + o, + i, + a = ip(), + s = op() + .rotate([154, 0]) + .center([-2, 58.5]) + .parallels([55, 65]), + c = op() + .rotate([157, 0]) + .center([-3, 19.9]) + .parallels([8, 18]), + u = { + point: function(e, t) { + i = [e, t]; + } + }; + function l(e) { + var t = e[0], + a = e[1]; + return ( + (i = null), + n.point(t, a), + i || (r.point(t, a), i) || (o.point(t, a), i) + ); + } + function f() { + return (e = t = null), l; + } + return ( + (l.invert = function(e) { + var t = a.scale(), + n = a.translate(), + r = (e[0] - n[0]) / t, + o = (e[1] - n[1]) / t; + return (o >= 0.12 && o < 0.234 && r >= -0.425 && r < -0.214 + ? s + : o >= 0.166 && o < 0.234 && r >= -0.214 && r < -0.115 + ? c + : a + ).invert(e); + }), + (l.stream = function(n) { + return e && t === n + ? e + : ((r = [a.stream((t = n)), s.stream(n), c.stream(n)]), + (o = r.length), + (e = { + point: function(e, t) { + for (var n = -1; ++n < o; ) r[n].point(e, t); + }, + sphere: function() { + for (var e = -1; ++e < o; ) r[e].sphere(); + }, + lineStart: function() { + for (var e = -1; ++e < o; ) r[e].lineStart(); + }, + lineEnd: function() { + for (var e = -1; ++e < o; ) r[e].lineEnd(); + }, + polygonStart: function() { + for (var e = -1; ++e < o; ) r[e].polygonStart(); + }, + polygonEnd: function() { + for (var e = -1; ++e < o; ) r[e].polygonEnd(); + } + })); + var r, o; + }), + (l.precision = function(e) { + return arguments.length + ? (a.precision(e), s.precision(e), c.precision(e), f()) + : a.precision(); + }), + (l.scale = function(e) { + return arguments.length + ? (a.scale(e), + s.scale(0.35 * e), + c.scale(e), + l.translate(a.translate())) + : a.scale(); + }), + (l.translate = function(e) { + if (!arguments.length) return a.translate(); + var t = a.scale(), + i = +e[0], + l = +e[1]; + return ( + (n = a + .translate(e) + .clipExtent([ + [i - 0.455 * t, l - 0.238 * t], + [i + 0.455 * t, l + 0.238 * t] + ]) + .stream(u)), + (r = s + .translate([i - 0.307 * t, l + 0.201 * t]) + .clipExtent([ + [i - 0.425 * t + Yc, l + 0.12 * t + Yc], + [i - 0.214 * t - Yc, l + 0.234 * t - Yc] + ]) + .stream(u)), + (o = c + .translate([i - 0.205 * t, l + 0.212 * t]) + .clipExtent([ + [i - 0.214 * t + Yc, l + 0.166 * t + Yc], + [i - 0.115 * t - Yc, l + 0.234 * t - Yc] + ]) + .stream(u)), + f() + ); + }), + (l.fitExtent = function(e, t) { + return Wd(l, e, t); + }), + (l.fitSize = function(e, t) { + return Vd(l, e, t); + }), + (l.fitWidth = function(e, t) { + return Ud(l, e, t); + }), + (l.fitHeight = function(e, t) { + return Xd(l, e, t); + }), + l.scale(1070) + ); + }; + function sp(e) { + return function(t, n) { + var r = eu(t), + o = eu(n), + i = e(r * o); + return [i * o * iu(t), i * iu(n)]; + }; + } + function cp(e) { + return function(t, n) { + var r = su(t * t + n * n), + o = e(r), + i = iu(o), + a = eu(o); + return [Zc(t * i, r * a), lu(r && (n * i) / r)]; + }; + } + var up = sp(function(e) { + return su(2 / (1 + e)); + }); + up.invert = cp(function(e) { + return 2 * lu(e / 2); + }); + var lp = function() { + return ep(up) + .scale(124.75) + .clipAngle(179.999); + }, + fp = sp(function(e) { + return (e = uu(e)) && e / iu(e); }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('fo', { - months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split( - '_' - ), - monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split( - '_' - ), - weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split( - '_' - ), - weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'), - weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D. MMMM, YYYY HH:mm' + fp.invert = cp(function(e) { + return e; + }); + var dp = function() { + return ep(fp) + .scale(79.4188) + .clipAngle(179.999); + }; + function pp(e, t) { + return [e, ru(cu((Uc + t) / 2))]; + } + pp.invert = function(e, t) { + return [e, 2 * Jc(nu(t)) - Uc]; + }; + var hp = function() { + return gp(pp).scale(961 / Gc); + }; + function gp(e) { + var t, + n, + r, + o = ep(e), + i = o.center, + a = o.scale, + s = o.translate, + c = o.clipExtent, + u = null; + function l() { + var i = Vc * a(), + s = o(Yl(o.rotate()).invert([0, 0])); + return c( + null == u + ? [[s[0] - i, s[1] - i], [s[0] + i, s[1] + i]] + : e === pp + ? [[Math.max(s[0] - i, u), t], [Math.min(s[0] + i, n), r]] + : [[u, Math.max(s[1] - i, t)], [n, Math.min(s[1] + i, r)]] + ); + } + return ( + (o.scale = function(e) { + return arguments.length ? (a(e), l()) : a(); + }), + (o.translate = function(e) { + return arguments.length ? (s(e), l()) : s(); + }), + (o.center = function(e) { + return arguments.length ? (i(e), l()) : i(); + }), + (o.clipExtent = function(e) { + return arguments.length + ? (null == e + ? (u = t = n = r = null) + : ((u = +e[0][0]), + (t = +e[0][1]), + (n = +e[1][0]), + (r = +e[1][1])), + l()) + : null == u + ? null + : [[u, t], [n, r]]; + }), + l() + ); + } + function mp(e) { + return cu((Uc + e) / 2); + } + function bp(e, t) { + var n = eu(e), + r = e === t ? iu(e) : ru(n / eu(t)) / ru(mp(t) / mp(e)), + o = (n * ou(mp(e), r)) / r; + if (!r) return pp; + function i(e, t) { + o > 0 ? t < -Uc + Yc && (t = -Uc + Yc) : t > Uc - Yc && (t = Uc - Yc); + var n = o / ou(mp(t), r); + return [n * iu(r * e), o - n * eu(r * e)]; + } + return ( + (i.invert = function(e, t) { + var n = o - t, + i = au(r) * su(e * e + n * n); + return [(Zc(e, Qc(n)) / r) * au(n), 2 * Jc(ou(o / i, 1 / r)) - Uc]; + }), + i + ); + } + var yp = function() { + return np(bp) + .scale(109.5) + .parallels([30, 30]); + }; + function vp(e, t) { + return [e, t]; + } + vp.invert = vp; + var _p = function() { + return ep(vp).scale(152.63); + }; + function wp(e, t) { + var n = eu(e), + r = e === t ? iu(e) : (n - eu(t)) / (t - e), + o = n / r + e; + if (Qc(r) < Yc) return vp; + function i(e, t) { + var n = o - t, + i = r * e; + return [n * iu(i), o - n * eu(i)]; + } + return ( + (i.invert = function(e, t) { + var n = o - t; + return [(Zc(e, Qc(n)) / r) * au(n), o - au(r) * su(e * e + n * n)]; + }), + i + ); + } + var xp = function() { + return np(wp) + .scale(131.154) + .center([0, 13.9389]); + }, + Mp = 1.340264, + kp = -0.081106, + Sp = 893e-6, + Op = 0.003796, + Ep = su(3) / 2; + function Ap(e, t) { + var n = lu(Ep * iu(t)), + r = n * n, + o = r * r * r; + return [ + (e * eu(n)) / (Ep * (Mp + 3 * kp * r + o * (7 * Sp + 9 * Op * r))), + n * (Mp + kp * r + o * (Sp + Op * r)) + ]; + } + Ap.invert = function(e, t) { + for ( + var n, r = t, o = r * r, i = o * o * o, a = 0; + a < 12 && + ((i = + (o = + (r -= n = + (r * (Mp + kp * o + i * (Sp + Op * o)) - t) / + (Mp + 3 * kp * o + i * (7 * Sp + 9 * Op * o))) * r) * + o * + o), + !(Qc(n) < Wc)); + ++a + ); + return [ + (Ep * e * (Mp + 3 * kp * o + i * (7 * Sp + 9 * Op * o))) / eu(r), + lu(iu(r) / Ep) + ]; + }; + var Tp = function() { + return ep(Ap).scale(177.158); + }; + function Cp(e, t) { + var n = eu(t), + r = eu(e) * n; + return [(n * iu(e)) / r, iu(t) / r]; + } + Cp.invert = cp(Jc); + var Lp = function() { + return ep(Cp) + .scale(144.049) + .clipAngle(60); + }; + function Pp(e, t, n, r) { + return 1 === e && 1 === t && 0 === n && 0 === r + ? Hf + : Bd({ + point: function(o, i) { + this.stream.point(o * e + n, i * t + r); + } + }); + } + var Dp = function() { + var e, + t, + n, + r, + o, + i, + a = 1, + s = 0, + c = 0, + u = 1, + l = 1, + f = Hf, + d = null, + p = Hf; + function h() { + return (r = o = null), i; + } + return (i = { + stream: function(e) { + return r && o === e ? r : (r = f(p((o = e)))); }, - calendar: { - sameDay: '[Í dag kl.] LT', - nextDay: '[Í morgin kl.] LT', - nextWeek: 'dddd [kl.] LT', - lastDay: '[Í gjár kl.] LT', - lastWeek: '[síðstu] dddd [kl] LT', - sameElse: 'L' + postclip: function(r) { + return arguments.length + ? ((p = r), (d = e = t = n = null), h()) + : p; }, - relativeTime: { - future: 'um %s', - past: '%s síðani', - s: 'fá sekund', - ss: '%d sekundir', - m: 'ein minuttur', - mm: '%d minuttir', - h: 'ein tími', - hh: '%d tímar', - d: 'ein dagur', - dd: '%d dagar', - M: 'ein mánaður', - MM: '%d mánaðir', - y: 'eitt ár', - yy: '%d ár' + clipExtent: function(r) { + return arguments.length + ? ((p = + null == r + ? ((d = e = t = n = null), Hf) + : lf( + (d = +r[0][0]), + (e = +r[0][1]), + (t = +r[1][0]), + (n = +r[1][1]) + )), + h()) + : null == d + ? null + : [[d, e], [t, n]]; }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('fr', { - months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( - '_' - ), - monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split( - '_' - ), - weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), - weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' + scale: function(e) { + return arguments.length + ? ((f = Pp((a = +e) * u, a * l, s, c)), h()) + : a; }, - calendar: { - sameDay: '[Aujourd’hui à] LT', - nextDay: '[Demain à] LT', - nextWeek: 'dddd [à] LT', - lastDay: '[Hier à] LT', - lastWeek: 'dddd [dernier à] LT', - sameElse: 'L' + translate: function(e) { + return arguments.length + ? ((f = Pp(a * u, a * l, (s = +e[0]), (c = +e[1]))), h()) + : [s, c]; }, - relativeTime: { - future: 'dans %s', - past: 'il y a %s', - s: 'quelques secondes', - ss: '%d secondes', - m: 'une minute', - mm: '%d minutes', - h: 'une heure', - hh: '%d heures', - d: 'un jour', - dd: '%d jours', - M: 'un mois', - MM: '%d mois', - y: 'un an', - yy: '%d ans' + reflectX: function(e) { + return arguments.length + ? ((f = Pp(a * (u = e ? -1 : 1), a * l, s, c)), h()) + : u < 0; }, - dayOfMonthOrdinalParse: /\d{1,2}(er|)/, - ordinal: function(e, t) { - switch (t) { - case 'D': - return e + (1 === e ? 'er' : ''); - default: - case 'M': - case 'Q': - case 'DDD': - case 'd': - return e + (1 === e ? 'er' : 'e'); - case 'w': - case 'W': - return e + (1 === e ? 're' : 'e'); - } + reflectY: function(e) { + return arguments.length + ? ((f = Pp(a * u, a * (l = e ? -1 : 1), s, c)), h()) + : l < 0; }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('fr-ca', { - months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( - '_' - ), - monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split( - '_' - ), - weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), - weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' + fitExtent: function(e, t) { + return Wd(i, e, t); }, - calendar: { - sameDay: '[Aujourd’hui à] LT', - nextDay: '[Demain à] LT', - nextWeek: 'dddd [à] LT', - lastDay: '[Hier à] LT', - lastWeek: 'dddd [dernier à] LT', - sameElse: 'L' + fitSize: function(e, t) { + return Vd(i, e, t); }, - relativeTime: { - future: 'dans %s', - past: 'il y a %s', - s: 'quelques secondes', - ss: '%d secondes', - m: 'une minute', - mm: '%d minutes', - h: 'une heure', - hh: '%d heures', - d: 'un jour', - dd: '%d jours', - M: 'un mois', - MM: '%d mois', - y: 'un an', - yy: '%d ans' + fitWidth: function(e, t) { + return Ud(i, e, t); }, - dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, - ordinal: function(e, t) { - switch (t) { - default: - case 'M': - case 'Q': - case 'D': - case 'DDD': - case 'd': - return e + (1 === e ? 'er' : 'e'); - case 'w': - case 'W': - return e + (1 === e ? 're' : 'e'); - } + fitHeight: function(e, t) { + return Xd(i, e, t); } }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('fr-ch', { - months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( - '_' - ), - monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split( - '_' - ), - weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), - weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Aujourd’hui à] LT', - nextDay: '[Demain à] LT', - nextWeek: 'dddd [à] LT', - lastDay: '[Hier à] LT', - lastWeek: 'dddd [dernier à] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'dans %s', - past: 'il y a %s', - s: 'quelques secondes', - ss: '%d secondes', - m: 'une minute', - mm: '%d minutes', - h: 'une heure', - hh: '%d heures', - d: 'un jour', - dd: '%d jours', - M: 'un mois', - MM: '%d mois', - y: 'un an', - yy: '%d ans' - }, - dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, - ordinal: function(e, t) { - switch (t) { - default: - case 'M': - case 'Q': - case 'D': - case 'DDD': - case 'd': - return e + (1 === e ? 'er' : 'e'); - case 'w': - case 'W': - return e + (1 === e ? 're' : 'e'); - } - }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split( - '_' - ), - n = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'); - e.defineLocale('fy', { - months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split( - '_' - ), - monthsShort: function(e, r) { - return e ? (/-MMM-/.test(r) ? n[e.month()] : t[e.month()]) : t; - }, - monthsParseExact: !0, - weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split( - '_' - ), - weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'), - weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD-MM-YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[hjoed om] LT', - nextDay: '[moarn om] LT', - nextWeek: 'dddd [om] LT', - lastDay: '[juster om] LT', - lastWeek: '[ôfrûne] dddd [om] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'oer %s', - past: '%s lyn', - s: 'in pear sekonden', - ss: '%d sekonden', - m: 'ien minút', - mm: '%d minuten', - h: 'ien oere', - hh: '%d oeren', - d: 'ien dei', - dd: '%d dagen', - M: 'ien moanne', - MM: '%d moannen', - y: 'ien jier', - yy: '%d jierren' - }, - dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, - ordinal: function(e) { - return e + (1 === e || 8 === e || e >= 20 ? 'ste' : 'de'); - }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('ga', { - months: [ - 'Eanáir', - 'Feabhra', - 'Márta', - 'Aibreán', - 'Bealtaine', - 'Méitheamh', - 'Iúil', - 'Lúnasa', - 'Meán Fómhair', - 'Deaireadh Fómhair', - 'Samhain', - 'Nollaig' - ], - monthsShort: [ - 'Eaná', - 'Feab', - 'Márt', - 'Aibr', - 'Beal', - 'Méit', - 'Iúil', - 'Lúna', - 'Meán', - 'Deai', - 'Samh', - 'Noll' - ], - monthsParseExact: !0, - weekdays: [ - 'Dé Domhnaigh', - 'Dé Luain', - 'Dé Máirt', - 'Dé Céadaoin', - 'Déardaoin', - 'Dé hAoine', - 'Dé Satharn' - ], - weekdaysShort: ['Dom', 'Lua', 'Mái', 'Céa', 'Déa', 'hAo', 'Sat'], - weekdaysMin: ['Do', 'Lu', 'Má', 'Ce', 'Dé', 'hA', 'Sa'], - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Inniu ag] LT', - nextDay: '[Amárach ag] LT', - nextWeek: 'dddd [ag] LT', - lastDay: '[Inné aig] LT', - lastWeek: 'dddd [seo caite] [ag] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'i %s', - past: '%s ó shin', - s: 'cúpla soicind', - ss: '%d soicind', - m: 'nóiméad', - mm: '%d nóiméad', - h: 'uair an chloig', - hh: '%d uair an chloig', - d: 'lá', - dd: '%d lá', - M: 'mí', - MM: '%d mí', - y: 'bliain', - yy: '%d bliain' - }, - dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/, - ordinal: function(e) { - return e + (1 === e ? 'd' : e % 10 == 2 ? 'na' : 'mh'); - }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('gd', { - months: [ - 'Am Faoilleach', - 'An Gearran', - 'Am Màrt', - 'An Giblean', - 'An Cèitean', - 'An t-Ògmhios', - 'An t-Iuchar', - 'An Lùnastal', - 'An t-Sultain', - 'An Dàmhair', - 'An t-Samhain', - 'An Dùbhlachd' - ], - monthsShort: [ - 'Faoi', - 'Gear', - 'Màrt', - 'Gibl', - 'Cèit', - 'Ògmh', - 'Iuch', - 'Lùn', - 'Sult', - 'Dàmh', - 'Samh', - 'Dùbh' - ], - monthsParseExact: !0, - weekdays: [ - 'Didòmhnaich', - 'Diluain', - 'Dimàirt', - 'Diciadain', - 'Diardaoin', - 'Dihaoine', - 'Disathairne' - ], - weekdaysShort: ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'], - weekdaysMin: ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'], - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[An-diugh aig] LT', - nextDay: '[A-màireach aig] LT', - nextWeek: 'dddd [aig] LT', - lastDay: '[An-dè aig] LT', - lastWeek: 'dddd [seo chaidh] [aig] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'ann an %s', - past: 'bho chionn %s', - s: 'beagan diogan', - ss: '%d diogan', - m: 'mionaid', - mm: '%d mionaidean', - h: 'uair', - hh: '%d uairean', - d: 'latha', - dd: '%d latha', - M: 'mìos', - MM: '%d mìosan', - y: 'bliadhna', - yy: '%d bliadhna' - }, - dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/, - ordinal: function(e) { - return e + (1 === e ? 'd' : e % 10 == 2 ? 'na' : 'mh'); - }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('gl', { - months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split( - '_' - ), - monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split( - '_' - ), - weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'), - weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY H:mm', - LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm' - }, - calendar: { - sameDay: function() { - return '[hoxe ' + (1 !== this.hours() ? 'ás' : 'á') + '] LT'; - }, - nextDay: function() { - return '[mañá ' + (1 !== this.hours() ? 'ás' : 'á') + '] LT'; - }, - nextWeek: function() { - return 'dddd [' + (1 !== this.hours() ? 'ás' : 'a') + '] LT'; - }, - lastDay: function() { - return '[onte ' + (1 !== this.hours() ? 'á' : 'a') + '] LT'; - }, - lastWeek: function() { - return ( - '[o] dddd [pasado ' + (1 !== this.hours() ? 'ás' : 'a') + '] LT' - ); - }, - sameElse: 'L' - }, - relativeTime: { - future: function(e) { - return 0 === e.indexOf('un') ? 'n' + e : 'en ' + e; - }, - past: 'hai %s', - s: 'uns segundos', - ss: '%d segundos', - m: 'un minuto', - mm: '%d minutos', - h: 'unha hora', - hh: '%d horas', - d: 'un día', - dd: '%d días', - M: 'un mes', - MM: '%d meses', - y: 'un ano', - yy: '%d anos' - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - function t(e, t, n, r) { - var o = { - s: ['thodde secondanim', 'thodde second'], - ss: [e + ' secondanim', e + ' second'], - m: ['eka mintan', 'ek minute'], - mm: [e + ' mintanim', e + ' mintam'], - h: ['eka voran', 'ek vor'], - hh: [e + ' voranim', e + ' voram'], - d: ['eka disan', 'ek dis'], - dd: [e + ' disanim', e + ' dis'], - M: ['eka mhoinean', 'ek mhoino'], - MM: [e + ' mhoineanim', e + ' mhoine'], - y: ['eka vorsan', 'ek voros'], - yy: [e + ' vorsanim', e + ' vorsam'] - }; - return t ? o[n][0] : o[n][1]; + }; + function jp(e, t) { + var n = t * t, + r = n * n; + return [ + e * + (0.8707 - + 0.131979 * n + + r * (r * (0.003971 * n - 0.001529 * r) - 0.013791)), + t * + (1.007226 + + n * (0.015085 + r * (0.028874 * n - 0.044475 - 0.005916 * r))) + ]; + } + jp.invert = function(e, t) { + var n, + r = t, + o = 25; + do { + var i = r * r, + a = i * i; + r -= n = + (r * + (1.007226 + + i * (0.015085 + a * (0.028874 * i - 0.044475 - 0.005916 * a))) - + t) / + (1.007226 + + i * + (0.045255 + a * (0.259866 * i - 0.311325 - 0.005916 * 11 * a))); + } while (Qc(n) > Yc && --o > 0); + return [ + e / + (0.8707 + + (i = r * r) * + (i * (i * i * i * (0.003971 - 0.001529 * i) - 0.013791) - + 0.131979)), + r + ]; + }; + var zp = function() { + return ep(jp).scale(175.295); + }; + function Np(e, t) { + return [eu(t) * iu(e), iu(t)]; + } + Np.invert = cp(lu); + var Rp = function() { + return ep(Np) + .scale(249.5) + .clipAngle(90 + Yc); + }; + function Ip(e, t) { + var n = eu(t), + r = 1 + eu(e) * n; + return [(n * iu(e)) / r, iu(t) / r]; + } + Ip.invert = cp(function(e) { + return 2 * Jc(e); + }); + var Fp = function() { + return ep(Ip) + .scale(250) + .clipAngle(142); + }; + function qp(e, t) { + return [ru(cu((Uc + t) / 2)), -e]; + } + qp.invert = function(e, t) { + return [-t, 2 * Jc(nu(e)) - Uc]; + }; + var Bp = function() { + var e = gp(qp), + t = e.center, + n = e.rotate; + return ( + (e.center = function(e) { + return arguments.length ? t([-e[1], e[0]]) : [(e = t())[1], -e[0]]; + }), + (e.rotate = function(e) { + return arguments.length + ? n([e[0], e[1], e.length > 2 ? e[2] + 90 : 90]) + : [(e = n())[0], e[1], e[2] - 90]; + }), + n([0, 0, 90]).scale(159.155) + ); + }; + function Hp(e, t) { + return e.parent === t.parent ? 1 : 2; + } + function Yp(e, t) { + return e + t.x; + } + function Wp(e, t) { + return Math.max(e, t.y); + } + var Vp = function() { + var e = Hp, + t = 1, + n = 1, + r = !1; + function o(o) { + var i, + a = 0; + o.eachAfter(function(t) { + var n = t.children; + n + ? ((t.x = (function(e) { + return e.reduce(Yp, 0) / e.length; + })(n)), + (t.y = (function(e) { + return 1 + e.reduce(Wp, 0); + })(n))) + : ((t.x = i ? (a += e(t, i)) : 0), (t.y = 0), (i = t)); + }); + var s = (function(e) { + for (var t; (t = e.children); ) e = t[0]; + return e; + })(o), + c = (function(e) { + for (var t; (t = e.children); ) e = t[t.length - 1]; + return e; + })(o), + u = s.x - e(s, c) / 2, + l = c.x + e(c, s) / 2; + return o.eachAfter( + r + ? function(e) { + (e.x = (e.x - o.x) * t), (e.y = (o.y - e.y) * n); + } + : function(e) { + (e.x = ((e.x - u) / (l - u)) * t), + (e.y = (1 - (o.y ? e.y / o.y : 1)) * n); + } + ); } - e.defineLocale('gom-latn', { - months: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split( - '_' - ), - monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: "Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split( - '_' - ), - weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'), - weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'A h:mm [vazta]', - LTS: 'A h:mm:ss [vazta]', - L: 'DD-MM-YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY A h:mm [vazta]', - LLLL: 'dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]', - llll: 'ddd, D MMM YYYY, A h:mm [vazta]' - }, - calendar: { - sameDay: '[Aiz] LT', - nextDay: '[Faleam] LT', - nextWeek: '[Ieta to] dddd[,] LT', - lastDay: '[Kal] LT', - lastWeek: '[Fatlo] dddd[,] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s', - past: '%s adim', - s: t, - ss: t, - m: t, - mm: t, - h: t, - hh: t, - d: t, - dd: t, - M: t, - MM: t, - y: t, - yy: t - }, - dayOfMonthOrdinalParse: /\d{1,2}(er)/, - ordinal: function(e, t) { - switch (t) { - case 'D': - return e + 'er'; - default: - case 'M': - case 'Q': - case 'DDD': - case 'd': - case 'w': - case 'W': - return e; + return ( + (o.separation = function(t) { + return arguments.length ? ((e = t), o) : e; + }), + (o.size = function(e) { + return arguments.length + ? ((r = !1), (t = +e[0]), (n = +e[1]), o) + : r + ? null + : [t, n]; + }), + (o.nodeSize = function(e) { + return arguments.length + ? ((r = !0), (t = +e[0]), (n = +e[1]), o) + : r + ? [t, n] + : null; + }), + o + ); + }; + function Up(e) { + var t = 0, + n = e.children, + r = n && n.length; + if (r) for (; --r >= 0; ) t += n[r].value; + else t = 1; + e.value = t; + } + function Xp(e, t) { + var n, + r, + o, + i, + a, + s = new Qp(e), + c = +e.value && (s.value = e.value), + u = [s]; + for (null == t && (t = Gp); (n = u.pop()); ) + if ( + (c && (n.value = +n.data.value), (o = t(n.data)) && (a = o.length)) + ) + for (n.children = new Array(a), i = a - 1; i >= 0; --i) + u.push((r = n.children[i] = new Qp(o[i]))), + (r.parent = n), + (r.depth = n.depth + 1); + return s.eachBefore($p); + } + function Gp(e) { + return e.children; + } + function Kp(e) { + e.data = e.data.data; + } + function $p(e) { + var t = 0; + do { + e.height = t; + } while ((e = e.parent) && e.height < ++t); + } + function Qp(e) { + (this.data = e), (this.depth = this.height = 0), (this.parent = null); + } + Qp.prototype = Xp.prototype = { + constructor: Qp, + count: function() { + return this.eachAfter(Up); + }, + each: function(e) { + var t, + n, + r, + o, + i = this, + a = [i]; + do { + for (t = a.reverse(), a = []; (i = t.pop()); ) + if ((e(i), (n = i.children))) + for (r = 0, o = n.length; r < o; ++r) a.push(n[r]); + } while (a.length); + return this; + }, + eachAfter: function(e) { + for (var t, n, r, o = this, i = [o], a = []; (o = i.pop()); ) + if ((a.push(o), (t = o.children))) + for (n = 0, r = t.length; n < r; ++n) i.push(t[n]); + for (; (o = a.pop()); ) e(o); + return this; + }, + eachBefore: function(e) { + for (var t, n, r = this, o = [r]; (r = o.pop()); ) + if ((e(r), (t = r.children))) + for (n = t.length - 1; n >= 0; --n) o.push(t[n]); + return this; + }, + sum: function(e) { + return this.eachAfter(function(t) { + for ( + var n = +e(t.data) || 0, r = t.children, o = r && r.length; + --o >= 0; + + ) + n += r[o].value; + t.value = n; + }); + }, + sort: function(e) { + return this.eachBefore(function(t) { + t.children && t.children.sort(e); + }); + }, + path: function(e) { + for ( + var t = this, + n = (function(e, t) { + if (e === t) return e; + var n = e.ancestors(), + r = t.ancestors(), + o = null; + (e = n.pop()), (t = r.pop()); + for (; e === t; ) (o = e), (e = n.pop()), (t = r.pop()); + return o; + })(t, e), + r = [t]; + t !== n; + + ) + (t = t.parent), r.push(t); + for (var o = r.length; e !== n; ) r.splice(o, 0, e), (e = e.parent); + return r; + }, + ancestors: function() { + for (var e = this, t = [e]; (e = e.parent); ) t.push(e); + return t; + }, + descendants: function() { + var e = []; + return ( + this.each(function(t) { + e.push(t); + }), + e + ); + }, + leaves: function() { + var e = []; + return ( + this.eachBefore(function(t) { + t.children || e.push(t); + }), + e + ); + }, + links: function() { + var e = this, + t = []; + return ( + e.each(function(n) { + n !== e && t.push({ source: n.parent, target: n }); + }), + t + ); + }, + copy: function() { + return Xp(this).eachBefore(Kp); + } + }; + var Jp = Array.prototype.slice; + var Zp = function(e) { + for ( + var t, + n, + r = 0, + o = (e = (function(e) { + for (var t, n, r = e.length; r; ) + (n = (Math.random() * r--) | 0), + (t = e[r]), + (e[r] = e[n]), + (e[n] = t); + return e; + })(Jp.call(e))).length, + i = []; + r < o; + + ) + (t = e[r]), n && nh(n, t) ? ++r : ((n = oh((i = eh(i, t)))), (r = 0)); + return n; + }; + function eh(e, t) { + var n, r; + if (rh(t, e)) return [t]; + for (n = 0; n < e.length; ++n) + if (th(t, e[n]) && rh(ih(e[n], t), e)) return [e[n], t]; + for (n = 0; n < e.length - 1; ++n) + for (r = n + 1; r < e.length; ++r) + if ( + th(ih(e[n], e[r]), t) && + th(ih(e[n], t), e[r]) && + th(ih(e[r], t), e[n]) && + rh(ah(e[n], e[r], t), e) + ) + return [e[n], e[r], t]; + throw new Error(); + } + function th(e, t) { + var n = e.r - t.r, + r = t.x - e.x, + o = t.y - e.y; + return n < 0 || n * n < r * r + o * o; + } + function nh(e, t) { + var n = e.r - t.r + 1e-6, + r = t.x - e.x, + o = t.y - e.y; + return n > 0 && n * n > r * r + o * o; + } + function rh(e, t) { + for (var n = 0; n < t.length; ++n) if (!nh(e, t[n])) return !1; + return !0; + } + function oh(e) { + switch (e.length) { + case 1: + return { x: (t = e[0]).x, y: t.y, r: t.r }; + case 2: + return ih(e[0], e[1]); + case 3: + return ah(e[0], e[1], e[2]); + } + var t; + } + function ih(e, t) { + var n = e.x, + r = e.y, + o = e.r, + i = t.x, + a = t.y, + s = t.r, + c = i - n, + u = a - r, + l = s - o, + f = Math.sqrt(c * c + u * u); + return { + x: (n + i + (c / f) * l) / 2, + y: (r + a + (u / f) * l) / 2, + r: (f + o + s) / 2 + }; + } + function ah(e, t, n) { + var r = e.x, + o = e.y, + i = e.r, + a = t.x, + s = t.y, + c = t.r, + u = n.x, + l = n.y, + f = n.r, + d = r - a, + p = r - u, + h = o - s, + g = o - l, + m = c - i, + b = f - i, + y = r * r + o * o - i * i, + v = y - a * a - s * s + c * c, + _ = y - u * u - l * l + f * f, + w = p * h - d * g, + x = (h * _ - g * v) / (2 * w) - r, + M = (g * m - h * b) / w, + k = (p * v - d * _) / (2 * w) - o, + S = (d * b - p * m) / w, + O = M * M + S * S - 1, + E = 2 * (i + x * M + k * S), + A = x * x + k * k - i * i, + T = -(O ? (E + Math.sqrt(E * E - 4 * O * A)) / (2 * O) : A / E); + return { x: r + x + M * T, y: o + k + S * T, r: T }; + } + function sh(e, t, n) { + var r, + o, + i, + a, + s = e.x - t.x, + c = e.y - t.y, + u = s * s + c * c; + u + ? ((o = t.r + n.r), + (o *= o), + (a = e.r + n.r), + o > (a *= a) + ? ((r = (u + a - o) / (2 * u)), + (i = Math.sqrt(Math.max(0, a / u - r * r))), + (n.x = e.x - r * s - i * c), + (n.y = e.y - r * c + i * s)) + : ((r = (u + o - a) / (2 * u)), + (i = Math.sqrt(Math.max(0, o / u - r * r))), + (n.x = t.x + r * s - i * c), + (n.y = t.y + r * c + i * s))) + : ((n.x = t.x + n.r), (n.y = t.y)); + } + function ch(e, t) { + var n = e.r + t.r - 1e-6, + r = t.x - e.x, + o = t.y - e.y; + return n > 0 && n * n > r * r + o * o; + } + function uh(e) { + var t = e._, + n = e.next._, + r = t.r + n.r, + o = (t.x * n.r + n.x * t.r) / r, + i = (t.y * n.r + n.y * t.r) / r; + return o * o + i * i; + } + function lh(e) { + (this._ = e), (this.next = null), (this.previous = null); + } + function fh(e) { + if (!(o = e.length)) return 0; + var t, n, r, o, i, a, s, c, u, l, f; + if ((((t = e[0]).x = 0), (t.y = 0), !(o > 1))) return t.r; + if (((n = e[1]), (t.x = -n.r), (n.x = t.r), (n.y = 0), !(o > 2))) + return t.r + n.r; + sh(n, t, (r = e[2])), + (t = new lh(t)), + (n = new lh(n)), + (r = new lh(r)), + (t.next = r.previous = n), + (n.next = t.previous = r), + (r.next = n.previous = t); + e: for (s = 3; s < o; ++s) { + sh(t._, n._, (r = e[s])), + (r = new lh(r)), + (c = n.next), + (u = t.previous), + (l = n._.r), + (f = t._.r); + do { + if (l <= f) { + if (ch(c._, r._)) { + (n = c), (t.next = n), (n.previous = t), --s; + continue e; + } + (l += c._.r), (c = c.next); + } else { + if (ch(u._, r._)) { + ((t = u).next = n), (n.previous = t), --s; + continue e; + } + (f += u._.r), (u = u.previous); } - }, - week: { dow: 1, doy: 4 }, - meridiemParse: /rati|sokalli|donparam|sanje/, - meridiemHour: function(e, t) { + } while (c !== u.next); + for ( + r.previous = t, r.next = n, t.next = n.previous = n = r, i = uh(t); + (r = r.next) !== n; + + ) + (a = uh(r)) < i && ((t = r), (i = a)); + n = t.next; + } + for (t = [n._], r = n; (r = r.next) !== n; ) t.push(r._); + for (r = Zp(t), s = 0; s < o; ++s) ((t = e[s]).x -= r.x), (t.y -= r.y); + return r.r; + } + var dh = function(e) { + return fh(e), e; + }; + function ph(e) { + return null == e ? null : hh(e); + } + function hh(e) { + if ('function' != typeof e) throw new Error(); + return e; + } + function gh() { + return 0; + } + var mh = function(e) { + return function() { + return e; + }; + }; + function bh(e) { + return Math.sqrt(e.value); + } + var yh = function() { + var e = null, + t = 1, + n = 1, + r = gh; + function o(o) { + return ( + (o.x = t / 2), + (o.y = n / 2), + e + ? o + .eachBefore(vh(e)) + .eachAfter(_h(r, 0.5)) + .eachBefore(wh(1)) + : o + .eachBefore(vh(bh)) + .eachAfter(_h(gh, 1)) + .eachAfter(_h(r, o.r / Math.min(t, n))) + .eachBefore(wh(Math.min(t, n) / (2 * o.r))), + o + ); + } + return ( + (o.radius = function(t) { + return arguments.length ? ((e = ph(t)), o) : e; + }), + (o.size = function(e) { + return arguments.length ? ((t = +e[0]), (n = +e[1]), o) : [t, n]; + }), + (o.padding = function(e) { + return arguments.length + ? ((r = 'function' == typeof e ? e : mh(+e)), o) + : r; + }), + o + ); + }; + function vh(e) { + return function(t) { + t.children || (t.r = Math.max(0, +e(t) || 0)); + }; + } + function _h(e, t) { + return function(n) { + if ((r = n.children)) { + var r, + o, + i, + a = r.length, + s = e(n) * t || 0; + if (s) for (o = 0; o < a; ++o) r[o].r += s; + if (((i = fh(r)), s)) for (o = 0; o < a; ++o) r[o].r -= s; + n.r = i + s; + } + }; + } + function wh(e) { + return function(t) { + var n = t.parent; + (t.r *= e), n && ((t.x = n.x + e * t.x), (t.y = n.y + e * t.y)); + }; + } + var xh = function(e) { + (e.x0 = Math.round(e.x0)), + (e.y0 = Math.round(e.y0)), + (e.x1 = Math.round(e.x1)), + (e.y1 = Math.round(e.y1)); + }, + Mh = function(e, t, n, r, o) { + for ( + var i, + a = e.children, + s = -1, + c = a.length, + u = e.value && (r - t) / e.value; + ++s < c; + + ) + ((i = a[s]).y0 = n), + (i.y1 = o), + (i.x0 = t), + (i.x1 = t += i.value * u); + }, + kh = function() { + var e = 1, + t = 1, + n = 0, + r = !1; + function o(o) { + var i = o.height + 1; return ( - 12 === e && (e = 0), - 'rati' === t - ? e < 4 - ? e - : e + 12 - : 'sokalli' === t - ? e - : 'donparam' === t - ? e > 12 - ? e - : e + 12 - : 'sanje' === t - ? e + 12 - : void 0 + (o.x0 = o.y0 = n), + (o.x1 = e), + (o.y1 = t / i), + o.eachBefore( + (function(e, t) { + return function(r) { + r.children && + Mh( + r, + r.x0, + (e * (r.depth + 1)) / t, + r.x1, + (e * (r.depth + 2)) / t + ); + var o = r.x0, + i = r.y0, + a = r.x1 - n, + s = r.y1 - n; + a < o && (o = a = (o + a) / 2), + s < i && (i = s = (i + s) / 2), + (r.x0 = o), + (r.y0 = i), + (r.x1 = a), + (r.y1 = s); + }; + })(t, i) + ), + r && o.eachBefore(xh), + o ); - }, - meridiem: function(e, t, n) { - return e < 4 - ? 'rati' - : e < 12 - ? 'sokalli' - : e < 16 - ? 'donparam' - : e < 20 - ? 'sanje' - : 'rati'; } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = { - 1: '૧', - 2: '૨', - 3: '૩', - 4: '૪', - 5: '૫', - 6: '૬', - 7: '૭', - 8: '૮', - 9: '૯', - 0: '૦' - }, - n = { - '૧': '1', - '૨': '2', - '૩': '3', - '૪': '4', - '૫': '5', - '૬': '6', - '૭': '7', - '૮': '8', - '૯': '9', - '૦': '0' - }; - e.defineLocale('gu', { - months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split( - '_' - ), - monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split( - '_' - ), - weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'), - weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'), - longDateFormat: { - LT: 'A h:mm વાગ્યે', - LTS: 'A h:mm:ss વાગ્યે', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm વાગ્યે', - LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે' - }, - calendar: { - sameDay: '[આજ] LT', - nextDay: '[કાલે] LT', - nextWeek: 'dddd, LT', - lastDay: '[ગઇકાલે] LT', - lastWeek: '[પાછલા] dddd, LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s મા', - past: '%s પેહલા', - s: 'અમુક પળો', - ss: '%d સેકંડ', - m: 'એક મિનિટ', - mm: '%d મિનિટ', - h: 'એક કલાક', - hh: '%d કલાક', - d: 'એક દિવસ', - dd: '%d દિવસ', - M: 'એક મહિનો', - MM: '%d મહિનો', - y: 'એક વર્ષ', - yy: '%d વર્ષ' - }, - preparse: function(e) { - return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function(e) { - return n[e]; - }); - }, - postformat: function(e) { - return e.replace(/\d/g, function(e) { - return t[e]; - }); - }, - meridiemParse: /રાત|બપોર|સવાર|સાંજ/, - meridiemHour: function(e, t) { - return ( - 12 === e && (e = 0), - 'રાત' === t - ? e < 4 - ? e - : e + 12 - : 'સવાર' === t - ? e - : 'બપોર' === t - ? e >= 10 - ? e - : e + 12 - : 'સાંજ' === t - ? e + 12 - : void 0 + return ( + (o.round = function(e) { + return arguments.length ? ((r = !!e), o) : r; + }), + (o.size = function(n) { + return arguments.length ? ((e = +n[0]), (t = +n[1]), o) : [e, t]; + }), + (o.padding = function(e) { + return arguments.length ? ((n = +e), o) : n; + }), + o + ); + }, + Sh = '$', + Oh = { depth: -1 }, + Eh = {}; + function Ah(e) { + return e.id; + } + function Th(e) { + return e.parentId; + } + var Ch = function() { + var e = Ah, + t = Th; + function n(n) { + var r, + o, + i, + a, + s, + c, + u, + l = n.length, + f = new Array(l), + d = {}; + for (o = 0; o < l; ++o) + (r = n[o]), + (s = f[o] = new Qp(r)), + null != (c = e(r, o, n)) && + (c += '') && + (d[(u = Sh + (s.id = c))] = u in d ? Eh : s); + for (o = 0; o < l; ++o) + if (((s = f[o]), null != (c = t(n[o], o, n)) && (c += ''))) { + if (!(a = d[Sh + c])) throw new Error('missing: ' + c); + if (a === Eh) throw new Error('ambiguous: ' + c); + a.children ? a.children.push(s) : (a.children = [s]), + (s.parent = a); + } else { + if (i) throw new Error('multiple roots'); + i = s; + } + if (!i) throw new Error('no root'); + if ( + ((i.parent = Oh), + i + .eachBefore(function(e) { + (e.depth = e.parent.depth + 1), --l; + }) + .eachBefore($p), + (i.parent = null), + l > 0) + ) + throw new Error('cycle'); + return i; + } + return ( + (n.id = function(t) { + return arguments.length ? ((e = hh(t)), n) : e; + }), + (n.parentId = function(e) { + return arguments.length ? ((t = hh(e)), n) : t; + }), + n + ); + }; + function Lh(e, t) { + return e.parent === t.parent ? 1 : 2; + } + function Ph(e) { + var t = e.children; + return t ? t[0] : e.t; + } + function Dh(e) { + var t = e.children; + return t ? t[t.length - 1] : e.t; + } + function jh(e, t, n) { + var r = n / (t.i - e.i); + (t.c -= r), (t.s += n), (e.c += r), (t.z += n), (t.m += n); + } + function zh(e, t, n) { + return e.a.parent === t.parent ? e.a : n; + } + function Nh(e, t) { + (this._ = e), + (this.parent = null), + (this.children = null), + (this.A = null), + (this.a = this), + (this.z = 0), + (this.m = 0), + (this.c = 0), + (this.s = 0), + (this.t = null), + (this.i = t); + } + Nh.prototype = Object.create(Qp.prototype); + var Rh = function() { + var e = Lh, + t = 1, + n = 1, + r = null; + function o(o) { + var c = (function(e) { + for ( + var t, n, r, o, i, a = new Nh(e, 0), s = [a]; + (t = s.pop()); + + ) + if ((r = t._.children)) + for ( + t.children = new Array((i = r.length)), o = i - 1; + o >= 0; + --o + ) + s.push((n = t.children[o] = new Nh(r[o], o))), + (n.parent = t); + return ((a.parent = new Nh(null, 0)).children = [a]), a; + })(o); + if ((c.eachAfter(i), (c.parent.m = -c.z), c.eachBefore(a), r)) + o.eachBefore(s); + else { + var u = o, + l = o, + f = o; + o.eachBefore(function(e) { + e.x < u.x && (u = e), + e.x > l.x && (l = e), + e.depth > f.depth && (f = e); + }); + var d = u === l ? 1 : e(u, l) / 2, + p = d - u.x, + h = t / (l.x + d + p), + g = n / (f.depth || 1); + o.eachBefore(function(e) { + (e.x = (e.x + p) * h), (e.y = e.depth * g); + }); + } + return o; + } + function i(t) { + var n = t.children, + r = t.parent.children, + o = t.i ? r[t.i - 1] : null; + if (n) { + !(function(e) { + for ( + var t, n = 0, r = 0, o = e.children, i = o.length; + --i >= 0; + + ) + ((t = o[i]).z += n), (t.m += n), (n += t.s + (r += t.c)); + })(t); + var i = (n[0].z + n[n.length - 1].z) / 2; + o ? ((t.z = o.z + e(t._, o._)), (t.m = t.z - i)) : (t.z = i); + } else o && (t.z = o.z + e(t._, o._)); + t.parent.A = (function(t, n, r) { + if (n) { + for ( + var o, + i = t, + a = t, + s = n, + c = i.parent.children[0], + u = i.m, + l = a.m, + f = s.m, + d = c.m; + (s = Dh(s)), (i = Ph(i)), s && i; + + ) + (c = Ph(c)), + ((a = Dh(a)).a = t), + (o = s.z + f - i.z - u + e(s._, i._)) > 0 && + (jh(zh(s, t, r), t, o), (u += o), (l += o)), + (f += s.m), + (u += i.m), + (d += c.m), + (l += a.m); + s && !Dh(a) && ((a.t = s), (a.m += f - l)), + i && !Ph(c) && ((c.t = i), (c.m += u - d), (r = t)); + } + return r; + })(t, o, t.parent.A || r[0]); + } + function a(e) { + (e._.x = e.z + e.parent.m), (e.m += e.parent.m); + } + function s(e) { + (e.x *= t), (e.y = e.depth * n); + } + return ( + (o.separation = function(t) { + return arguments.length ? ((e = t), o) : e; + }), + (o.size = function(e) { + return arguments.length + ? ((r = !1), (t = +e[0]), (n = +e[1]), o) + : r + ? null + : [t, n]; + }), + (o.nodeSize = function(e) { + return arguments.length + ? ((r = !0), (t = +e[0]), (n = +e[1]), o) + : r + ? [t, n] + : null; + }), + o + ); + }, + Ih = function(e, t, n, r, o) { + for ( + var i, + a = e.children, + s = -1, + c = a.length, + u = e.value && (o - n) / e.value; + ++s < c; + + ) + ((i = a[s]).x0 = t), + (i.x1 = r), + (i.y0 = n), + (i.y1 = n += i.value * u); + }, + Fh = (1 + Math.sqrt(5)) / 2; + function qh(e, t, n, r, o, i) { + for ( + var a, + s, + c, + u, + l, + f, + d, + p, + h, + g, + m, + b = [], + y = t.children, + v = 0, + _ = 0, + w = y.length, + x = t.value; + v < w; + + ) { + (c = o - n), (u = i - r); + do { + l = y[_++].value; + } while (!l && _ < w); + for ( + f = d = l, + m = l * l * (g = Math.max(u / c, c / u) / (x * e)), + h = Math.max(d / m, m / f); + _ < w; + ++_ + ) { + if ( + ((l += s = y[_].value), + s < f && (f = s), + s > d && (d = s), + (m = l * l * g), + (p = Math.max(d / m, m / f)) > h) + ) { + l -= s; + break; + } + h = p; + } + b.push((a = { value: l, dice: c < u, children: y.slice(v, _) })), + a.dice + ? Mh(a, n, r, o, x ? (r += (u * l) / x) : i) + : Ih(a, n, r, x ? (n += (c * l) / x) : o, i), + (x -= l), + (v = _); + } + return b; + } + var Bh = (function e(t) { + function n(e, n, r, o, i) { + qh(t, e, n, r, o, i); + } + return ( + (n.ratio = function(t) { + return e((t = +t) > 1 ? t : 1); + }), + n + ); + })(Fh), + Hh = function() { + var e = Bh, + t = !1, + n = 1, + r = 1, + o = [0], + i = gh, + a = gh, + s = gh, + c = gh, + u = gh; + function l(e) { + return ( + (e.x0 = e.y0 = 0), + (e.x1 = n), + (e.y1 = r), + e.eachBefore(f), + (o = [0]), + t && e.eachBefore(xh), + e ); - }, - meridiem: function(e, t, n) { - return e < 4 - ? 'રાત' - : e < 10 - ? 'સવાર' - : e < 17 - ? 'બપોર' - : e < 20 - ? 'સાંજ' - : 'રાત'; - }, - week: { dow: 0, doy: 6 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('he', { - months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split( - '_' - ), - monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split( - '_' - ), - weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'), - weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'), - weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D [ב]MMMM YYYY', - LLL: 'D [ב]MMMM YYYY HH:mm', - LLLL: 'dddd, D [ב]MMMM YYYY HH:mm', - l: 'D/M/YYYY', - ll: 'D MMM YYYY', - lll: 'D MMM YYYY HH:mm', - llll: 'ddd, D MMM YYYY HH:mm' - }, - calendar: { - sameDay: '[היום ב־]LT', - nextDay: '[מחר ב־]LT', - nextWeek: 'dddd [בשעה] LT', - lastDay: '[אתמול ב־]LT', - lastWeek: '[ביום] dddd [האחרון בשעה] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'בעוד %s', - past: 'לפני %s', - s: 'מספר שניות', - ss: '%d שניות', - m: 'דקה', - mm: '%d דקות', - h: 'שעה', - hh: function(e) { - return 2 === e ? 'שעתיים' : e + ' שעות'; - }, - d: 'יום', - dd: function(e) { - return 2 === e ? 'יומיים' : e + ' ימים'; - }, - M: 'חודש', - MM: function(e) { - return 2 === e ? 'חודשיים' : e + ' חודשים'; - }, - y: 'שנה', - yy: function(e) { - return 2 === e - ? 'שנתיים' - : e % 10 == 0 && 10 !== e - ? e + ' שנה' - : e + ' שנים'; + } + function f(t) { + var n = o[t.depth], + r = t.x0 + n, + l = t.y0 + n, + f = t.x1 - n, + d = t.y1 - n; + f < r && (r = f = (r + f) / 2), + d < l && (l = d = (l + d) / 2), + (t.x0 = r), + (t.y0 = l), + (t.x1 = f), + (t.y1 = d), + t.children && + ((n = o[t.depth + 1] = i(t) / 2), + (r += u(t) - n), + (l += a(t) - n), + (f -= s(t) - n) < r && (r = f = (r + f) / 2), + (d -= c(t) - n) < l && (l = d = (l + d) / 2), + e(t, r, l, f, d)); + } + return ( + (l.round = function(e) { + return arguments.length ? ((t = !!e), l) : t; + }), + (l.size = function(e) { + return arguments.length ? ((n = +e[0]), (r = +e[1]), l) : [n, r]; + }), + (l.tile = function(t) { + return arguments.length ? ((e = hh(t)), l) : e; + }), + (l.padding = function(e) { + return arguments.length + ? l.paddingInner(e).paddingOuter(e) + : l.paddingInner(); + }), + (l.paddingInner = function(e) { + return arguments.length + ? ((i = 'function' == typeof e ? e : mh(+e)), l) + : i; + }), + (l.paddingOuter = function(e) { + return arguments.length + ? l + .paddingTop(e) + .paddingRight(e) + .paddingBottom(e) + .paddingLeft(e) + : l.paddingTop(); + }), + (l.paddingTop = function(e) { + return arguments.length + ? ((a = 'function' == typeof e ? e : mh(+e)), l) + : a; + }), + (l.paddingRight = function(e) { + return arguments.length + ? ((s = 'function' == typeof e ? e : mh(+e)), l) + : s; + }), + (l.paddingBottom = function(e) { + return arguments.length + ? ((c = 'function' == typeof e ? e : mh(+e)), l) + : c; + }), + (l.paddingLeft = function(e) { + return arguments.length + ? ((u = 'function' == typeof e ? e : mh(+e)), l) + : u; + }), + l + ); + }, + Yh = function(e, t, n, r, o) { + var i, + a, + s = e.children, + c = s.length, + u = new Array(c + 1); + for (u[0] = a = i = 0; i < c; ++i) u[i + 1] = a += s[i].value; + !(function e(t, n, r, o, i, a, c) { + if (t >= n - 1) { + var l = s[t]; + return (l.x0 = o), (l.y0 = i), (l.x1 = a), void (l.y1 = c); } - }, - meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i, - isPM: function(e) { - return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(e); - }, - meridiem: function(e, t, n) { - return e < 5 - ? 'לפנות בוקר' - : e < 10 - ? 'בבוקר' - : e < 12 - ? n - ? 'לפנה"צ' - : 'לפני הצהריים' - : e < 18 - ? n - ? 'אחה"צ' - : 'אחרי הצהריים' - : 'בערב'; + var f = u[t], + d = r / 2 + f, + p = t + 1, + h = n - 1; + for (; p < h; ) { + var g = (p + h) >>> 1; + u[g] < d ? (p = g + 1) : (h = g); + } + d - u[p - 1] < u[p] - d && t + 1 < p && --p; + var m = u[p] - f, + b = r - m; + if (a - o > c - i) { + var y = (o * b + a * m) / r; + e(t, p, m, o, i, y, c), e(p, n, b, y, i, a, c); + } else { + var v = (i * b + c * m) / r; + e(t, p, m, o, i, a, v), e(p, n, b, o, v, a, c); + } + })(0, c, e.value, t, n, r, o); + }, + Wh = function(e, t, n, r, o) { + (1 & e.depth ? Ih : Mh)(e, t, n, r, o); + }, + Vh = (function e(t) { + function n(e, n, r, o, i) { + if ((a = e._squarify) && a.ratio === t) + for ( + var a, s, c, u, l, f = -1, d = a.length, p = e.value; + ++f < d; + + ) { + for ( + c = (s = a[f]).children, u = s.value = 0, l = c.length; + u < l; + ++u + ) + s.value += c[u].value; + s.dice + ? Mh(s, n, r, o, (r += ((i - r) * s.value) / p)) + : Ih(s, n, r, (n += ((o - n) * s.value) / p), i), + (p -= s.value); + } + else (e._squarify = a = qh(t, e, n, r, o, i)), (a.ratio = t); } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = { - 1: '१', - 2: '२', - 3: '३', - 4: '४', - 5: '५', - 6: '६', - 7: '७', - 8: '८', - 9: '९', - 0: '०' - }, - n = { - '१': '1', - '२': '2', - '३': '3', - '४': '4', - '५': '5', - '६': '6', - '७': '7', - '८': '8', - '९': '9', - '०': '0' + return ( + (n.ratio = function(t) { + return e((t = +t) > 1 ? t : 1); + }), + n + ); + })(Fh), + Uh = function(e) { + var t = e.length; + return function(n) { + return e[Math.max(0, Math.min(t - 1, Math.floor(n * t)))]; }; - e.defineLocale('hi', { - months: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split( - '_' - ), - monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split( - '_' - ), - weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'), - weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'), - longDateFormat: { - LT: 'A h:mm बजे', - LTS: 'A h:mm:ss बजे', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm बजे', - LLLL: 'dddd, D MMMM YYYY, A h:mm बजे' - }, - calendar: { - sameDay: '[आज] LT', - nextDay: '[कल] LT', - nextWeek: 'dddd, LT', - lastDay: '[कल] LT', - lastWeek: '[पिछले] dddd, LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s में', - past: '%s पहले', - s: 'कुछ ही क्षण', - ss: '%d सेकंड', - m: 'एक मिनट', - mm: '%d मिनट', - h: 'एक घंटा', - hh: '%d घंटे', - d: 'एक दिन', - dd: '%d दिन', - M: 'एक महीने', - MM: '%d महीने', - y: 'एक वर्ष', - yy: '%d वर्ष' - }, - preparse: function(e) { - return e.replace(/[१२३४५६७८९०]/g, function(e) { - return n[e]; + }, + Xh = function(e, t) { + var n = gn(+e, +t); + return function(e) { + var t = n(e); + return t - 360 * Math.floor(t / 360); + }; + }, + Gh = function(e, t) { + return ( + (e = +e), + (t = +t), + function(n) { + return Math.round(e * (1 - n) + t * n); + } + ); + }, + Kh = Math.SQRT2; + function $h(e) { + return ((e = Math.exp(e)) + 1 / e) / 2; + } + var Qh = function(e, t) { + var n, + r, + o = e[0], + i = e[1], + a = e[2], + s = t[0], + c = t[1], + u = t[2], + l = s - o, + f = c - i, + d = l * l + f * f; + if (d < 1e-12) + (r = Math.log(u / a) / Kh), + (n = function(e) { + return [o + e * l, i + e * f, a * Math.exp(Kh * e * r)]; }); - }, - postformat: function(e) { - return e.replace(/\d/g, function(e) { - return t[e]; + else { + var p = Math.sqrt(d), + h = (u * u - a * a + 4 * d) / (2 * a * 2 * p), + g = (u * u - a * a - 4 * d) / (2 * u * 2 * p), + m = Math.log(Math.sqrt(h * h + 1) - h), + b = Math.log(Math.sqrt(g * g + 1) - g); + (r = (b - m) / Kh), + (n = function(e) { + var t, + n = e * r, + s = $h(m), + c = + (a / (2 * p)) * + (s * + ((t = Kh * n + m), ((t = Math.exp(2 * t)) - 1) / (t + 1)) - + (function(e) { + return ((e = Math.exp(e)) - 1 / e) / 2; + })(m)); + return [o + c * l, i + c * f, (a * s) / $h(Kh * n + m)]; }); - }, - meridiemParse: /रात|सुबह|दोपहर|शाम/, - meridiemHour: function(e, t) { + } + return (n.duration = 1e3 * r), n; + }; + function Jh(e) { + return function(t, n) { + var r = e((t = sn(t)).h, (n = sn(n)).h), + o = bn(t.s, n.s), + i = bn(t.l, n.l), + a = bn(t.opacity, n.opacity); + return function(e) { return ( - 12 === e && (e = 0), - 'रात' === t - ? e < 4 - ? e - : e + 12 - : 'सुबह' === t - ? e - : 'दोपहर' === t - ? e >= 10 - ? e - : e + 12 - : 'शाम' === t - ? e + 12 - : void 0 + (t.h = r(e)), + (t.s = o(e)), + (t.l = i(e)), + (t.opacity = a(e)), + t + '' ); - }, - meridiem: function(e, t, n) { - return e < 4 - ? 'रात' - : e < 10 - ? 'सुबह' - : e < 17 - ? 'दोपहर' - : e < 20 - ? 'शाम' - : 'रात'; - }, - week: { dow: 0, doy: 6 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - function t(e, t, n) { - var r = e + ' '; - switch (n) { - case 'ss': - return (r += - 1 === e - ? 'sekunda' - : 2 === e || 3 === e || 4 === e - ? 'sekunde' - : 'sekundi'); - case 'm': - return t ? 'jedna minuta' : 'jedne minute'; - case 'mm': - return (r += - 1 === e - ? 'minuta' - : 2 === e || 3 === e || 4 === e - ? 'minute' - : 'minuta'); - case 'h': - return t ? 'jedan sat' : 'jednog sata'; - case 'hh': - return (r += - 1 === e - ? 'sat' - : 2 === e || 3 === e || 4 === e - ? 'sata' - : 'sati'); - case 'dd': - return (r += 1 === e ? 'dan' : 'dana'); - case 'MM': - return (r += - 1 === e - ? 'mjesec' - : 2 === e || 3 === e || 4 === e - ? 'mjeseca' - : 'mjeseci'); - case 'yy': - return (r += - 1 === e - ? 'godina' - : 2 === e || 3 === e || 4 === e - ? 'godine' - : 'godina'); + }; + }; + } + var Zh = Jh(gn), + eg = Jh(bn); + function tg(e, t) { + var n = bn((e = Ci(e)).l, (t = Ci(t)).l), + r = bn(e.a, t.a), + o = bn(e.b, t.b), + i = bn(e.opacity, t.opacity); + return function(t) { + return ( + (e.l = n(t)), (e.a = r(t)), (e.b = o(t)), (e.opacity = i(t)), e + '' + ); + }; + } + function ng(e) { + return function(t, n) { + var r = e((t = Ii(t)).h, (n = Ii(n)).h), + o = bn(t.c, n.c), + i = bn(t.l, n.l), + a = bn(t.opacity, n.opacity); + return function(e) { + return ( + (t.h = r(e)), + (t.c = o(e)), + (t.l = i(e)), + (t.opacity = a(e)), + t + '' + ); + }; + }; + } + var rg = ng(gn), + og = ng(bn); + function ig(e) { + return (function t(n) { + function r(t, r) { + var o = e((t = Xi(t)).h, (r = Xi(r)).h), + i = bn(t.s, r.s), + a = bn(t.l, r.l), + s = bn(t.opacity, r.opacity); + return function(e) { + return ( + (t.h = o(e)), + (t.s = i(e)), + (t.l = a(Math.pow(e, n))), + (t.opacity = s(e)), + t + '' + ); + }; } + return (n = +n), (r.gamma = t), r; + })(1); + } + var ag = ig(gn), + sg = ig(bn); + function cg(e, t) { + for ( + var n = 0, r = t.length - 1, o = t[0], i = new Array(r < 0 ? 0 : r); + n < r; + + ) + i[n] = e(o, (o = t[++n])); + return function(e) { + var t = Math.max(0, Math.min(r - 1, Math.floor((e *= r)))); + return i[t](e - t); + }; + } + var ug = function(e, t) { + for (var n = new Array(t), r = 0; r < t; ++r) n[r] = e(r / (t - 1)); + return n; + }, + lg = function(e) { + for (var t, n = -1, r = e.length, o = e[r - 1], i = 0; ++n < r; ) + (t = o), (o = e[n]), (i += t[1] * o[0] - t[0] * o[1]); + return i / 2; + }, + fg = function(e) { + for ( + var t, n, r = -1, o = e.length, i = 0, a = 0, s = e[o - 1], c = 0; + ++r < o; + + ) + (t = s), + (s = e[r]), + (c += n = t[0] * s[1] - s[0] * t[1]), + (i += (t[0] + s[0]) * n), + (a += (t[1] + s[1]) * n); + return [i / (c *= 3), a / c]; + }, + dg = function(e, t, n) { + return (t[0] - e[0]) * (n[1] - e[1]) - (t[1] - e[1]) * (n[0] - e[0]); + }; + function pg(e, t) { + return e[0] - t[0] || e[1] - t[1]; + } + function hg(e) { + for (var t = e.length, n = [0, 1], r = 2, o = 2; o < t; ++o) { + for (; r > 1 && dg(e[n[r - 2]], e[n[r - 1]], e[o]) <= 0; ) --r; + n[r++] = o; } - e.defineLocale('hr', { - months: { - format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split( - '_' - ), - standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split( - '_' - ) - }, - monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( - '_' - ), - weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), - weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm' - }, - calendar: { - sameDay: '[danas u] LT', - nextDay: '[sutra u] LT', - nextWeek: function() { - switch (this.day()) { - case 0: - return '[u] [nedjelju] [u] LT'; - case 3: - return '[u] [srijedu] [u] LT'; - case 6: - return '[u] [subotu] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[u] dddd [u] LT'; + return n.slice(0, r); + } + var gg = function(e) { + if ((n = e.length) < 3) return null; + var t, + n, + r = new Array(n), + o = new Array(n); + for (t = 0; t < n; ++t) r[t] = [+e[t][0], +e[t][1], t]; + for (r.sort(pg), t = 0; t < n; ++t) o[t] = [r[t][0], -r[t][1]]; + var i = hg(r), + a = hg(o), + s = a[0] === i[0], + c = a[a.length - 1] === i[i.length - 1], + u = []; + for (t = i.length - 1; t >= 0; --t) u.push(e[r[i[t]][2]]); + for (t = +s; t < a.length - c; ++t) u.push(e[r[a[t]][2]]); + return u; + }, + mg = function(e, t) { + for ( + var n, + r, + o = e.length, + i = e[o - 1], + a = t[0], + s = t[1], + c = i[0], + u = i[1], + l = !1, + f = 0; + f < o; + ++f + ) + (n = (i = e[f])[0]), + (r = i[1]) > s != u > s && + a < ((c - n) * (s - r)) / (u - r) + n && + (l = !l), + (c = n), + (u = r); + return l; + }, + bg = function(e) { + for ( + var t, + n, + r = -1, + o = e.length, + i = e[o - 1], + a = i[0], + s = i[1], + c = 0; + ++r < o; + + ) + (t = a), + (n = s), + (t -= a = (i = e[r])[0]), + (n -= s = i[1]), + (c += Math.sqrt(t * t + n * n)); + return c; + }, + yg = function() { + return Math.random(); + }, + vg = (function e(t) { + function n(e, n) { + return ( + (e = null == e ? 0 : +e), + (n = null == n ? 1 : +n), + 1 === arguments.length ? ((n = e), (e = 0)) : (n -= e), + function() { + return t() * n + e; } - }, - lastDay: '[jučer u] LT', - lastWeek: function() { - switch (this.day()) { - case 0: - case 3: - return '[prošlu] dddd [u] LT'; - case 6: - return '[prošle] [subote] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[prošli] dddd [u] LT'; + ); + } + return (n.source = e), n; + })(yg), + _g = (function e(t) { + function n(e, n) { + var r, o; + return ( + (e = null == e ? 0 : +e), + (n = null == n ? 1 : +n), + function() { + var i; + if (null != r) (i = r), (r = null); + else + do { + (r = 2 * t() - 1), (i = 2 * t() - 1), (o = r * r + i * i); + } while (!o || o > 1); + return e + n * i * Math.sqrt((-2 * Math.log(o)) / o); } - }, - sameElse: 'L' - }, - relativeTime: { - future: 'za %s', - past: 'prije %s', - s: 'par sekundi', - ss: t, - m: t, - mm: t, - h: t, - hh: t, - d: 'dan', - dd: t, - M: 'mjesec', - MM: t, - y: 'godinu', - yy: t - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 7 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split( - ' ' - ); - function n(e, t, n, r) { - var o = e; - switch (n) { - case 's': - return r || t ? 'néhány másodperc' : 'néhány másodperce'; - case 'ss': - return o + (r || t) ? ' másodperc' : ' másodperce'; - case 'm': - return 'egy' + (r || t ? ' perc' : ' perce'); - case 'mm': - return o + (r || t ? ' perc' : ' perce'); - case 'h': - return 'egy' + (r || t ? ' óra' : ' órája'); - case 'hh': - return o + (r || t ? ' óra' : ' órája'); - case 'd': - return 'egy' + (r || t ? ' nap' : ' napja'); - case 'dd': - return o + (r || t ? ' nap' : ' napja'); - case 'M': - return 'egy' + (r || t ? ' hónap' : ' hónapja'); - case 'MM': - return o + (r || t ? ' hónap' : ' hónapja'); - case 'y': - return 'egy' + (r || t ? ' év' : ' éve'); - case 'yy': - return o + (r || t ? ' év' : ' éve'); + ); } - return ''; + return (n.source = e), n; + })(yg), + wg = (function e(t) { + function n() { + var e = _g.source(t).apply(this, arguments); + return function() { + return Math.exp(e()); + }; + } + return (n.source = e), n; + })(yg), + xg = (function e(t) { + function n(e) { + return function() { + for (var n = 0, r = 0; r < e; ++r) n += t(); + return n; + }; + } + return (n.source = e), n; + })(yg), + Mg = (function e(t) { + function n(e) { + var n = xg.source(t)(e); + return function() { + return n() / e; + }; + } + return (n.source = e), n; + })(yg), + kg = (function e(t) { + function n(e) { + return function() { + return -Math.log(1 - t()) / e; + }; + } + return (n.source = e), n; + })(yg); + function Sg(e, t) { + switch (arguments.length) { + case 0: + break; + case 1: + this.range(e); + break; + default: + this.range(t).domain(e); } - function r(e) { - return (e ? '' : '[múlt] ') + '[' + t[this.day()] + '] LT[-kor]'; + return this; + } + function Og(e, t) { + switch (arguments.length) { + case 0: + break; + case 1: + this.interpolator(e); + break; + default: + this.interpolator(t).domain(e); } - e.defineLocale('hu', { - months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split( - '_' - ), - monthsShort: 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split( - '_' - ), - weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split( - '_' - ), - weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'), - weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'YYYY.MM.DD.', - LL: 'YYYY. MMMM D.', - LLL: 'YYYY. MMMM D. H:mm', - LLLL: 'YYYY. MMMM D., dddd H:mm' + return this; + } + var Eg = Array.prototype, + Ag = Eg.map, + Tg = Eg.slice, + Cg = { name: 'implicit' }; + function Lg() { + var e = ai(), + t = [], + n = [], + r = Cg; + function o(o) { + var i = o + '', + a = e.get(i); + if (!a) { + if (r !== Cg) return r; + e.set(i, (a = t.push(o))); + } + return n[(a - 1) % n.length]; + } + return ( + (o.domain = function(n) { + if (!arguments.length) return t.slice(); + (t = []), (e = ai()); + for (var r, i, a = -1, s = n.length; ++a < s; ) + e.has((i = (r = n[a]) + '')) || e.set(i, t.push(r)); + return o; + }), + (o.range = function(e) { + return arguments.length ? ((n = Tg.call(e)), o) : n.slice(); + }), + (o.unknown = function(e) { + return arguments.length ? ((r = e), o) : r; + }), + (o.copy = function() { + return Lg(t, n).unknown(r); + }), + Sg.apply(o, arguments), + o + ); + } + function Pg() { + var e, + t, + n = Lg().unknown(void 0), + r = n.domain, + o = n.range, + i = [0, 1], + a = !1, + s = 0, + c = 0, + u = 0.5; + function l() { + var n = r().length, + l = i[1] < i[0], + f = i[l - 0], + d = i[1 - l]; + (e = (d - f) / Math.max(1, n - s + 2 * c)), + a && (e = Math.floor(e)), + (f += (d - f - e * (n - s)) * u), + (t = e * (1 - s)), + a && ((f = Math.round(f)), (t = Math.round(t))); + var p = x(n).map(function(t) { + return f + e * t; + }); + return o(l ? p.reverse() : p); + } + return ( + delete n.unknown, + (n.domain = function(e) { + return arguments.length ? (r(e), l()) : r(); + }), + (n.range = function(e) { + return arguments.length ? ((i = [+e[0], +e[1]]), l()) : i.slice(); + }), + (n.rangeRound = function(e) { + return (i = [+e[0], +e[1]]), (a = !0), l(); + }), + (n.bandwidth = function() { + return t; + }), + (n.step = function() { + return e; + }), + (n.round = function(e) { + return arguments.length ? ((a = !!e), l()) : a; + }), + (n.padding = function(e) { + return arguments.length ? ((s = Math.min(1, (c = +e))), l()) : s; + }), + (n.paddingInner = function(e) { + return arguments.length ? ((s = Math.min(1, e)), l()) : s; + }), + (n.paddingOuter = function(e) { + return arguments.length ? ((c = +e), l()) : c; + }), + (n.align = function(e) { + return arguments.length + ? ((u = Math.max(0, Math.min(1, e))), l()) + : u; + }), + (n.copy = function() { + return Pg(r(), i) + .round(a) + .paddingInner(s) + .paddingOuter(c) + .align(u); + }), + Sg.apply(l(), arguments) + ); + } + function Dg() { + return (function e(t) { + var n = t.copy; + return ( + (t.padding = t.paddingOuter), + delete t.paddingInner, + delete t.paddingOuter, + (t.copy = function() { + return e(n()); + }), + t + ); + })(Pg.apply(null, arguments).paddingInner(1)); + } + var jg = function(e) { + return function() { + return e; + }; + }, + zg = function(e) { + return +e; + }, + Ng = [0, 1]; + function Rg(e) { + return e; + } + function Ig(e, t) { + return (t -= e = +e) + ? function(n) { + return (n - e) / t; + } + : jg(isNaN(t) ? NaN : 0.5); + } + function Fg(e) { + var t, + n = e[0], + r = e[e.length - 1]; + return ( + n > r && ((t = n), (n = r), (r = t)), + function(e) { + return Math.max(n, Math.min(r, e)); + } + ); + } + function qg(e, t, n) { + var r = e[0], + o = e[1], + i = t[0], + a = t[1]; + return ( + o < r + ? ((r = Ig(o, r)), (i = n(a, i))) + : ((r = Ig(r, o)), (i = n(i, a))), + function(e) { + return i(r(e)); + } + ); + } + function Bg(e, t, n) { + var r = Math.min(e.length, t.length) - 1, + o = new Array(r), + i = new Array(r), + a = -1; + for ( + e[r] < e[0] && ((e = e.slice().reverse()), (t = t.slice().reverse())); + ++a < r; + + ) + (o[a] = Ig(e[a], e[a + 1])), (i[a] = n(t[a], t[a + 1])); + return function(t) { + var n = c(e, t, 1, r) - 1; + return i[n](o[n](t)); + }; + } + function Hg(e, t) { + return t + .domain(e.domain()) + .range(e.range()) + .interpolate(e.interpolate()) + .clamp(e.clamp()) + .unknown(e.unknown()); + } + function Yg() { + var e, + t, + n, + r, + o, + i, + a = Ng, + s = Ng, + c = jn, + u = Rg; + function l() { + return ( + (r = Math.min(a.length, s.length) > 2 ? Bg : qg), (o = i = null), f + ); + } + function f(t) { + return isNaN((t = +t)) ? n : (o || (o = r(a.map(e), s, c)))(e(u(t))); + } + return ( + (f.invert = function(n) { + return u(t((i || (i = r(s, a.map(e), En)))(n))); + }), + (f.domain = function(e) { + return arguments.length + ? ((a = Ag.call(e, zg)), u === Rg || (u = Fg(a)), l()) + : a.slice(); + }), + (f.range = function(e) { + return arguments.length ? ((s = Tg.call(e)), l()) : s.slice(); + }), + (f.rangeRound = function(e) { + return (s = Tg.call(e)), (c = Gh), l(); + }), + (f.clamp = function(e) { + return arguments.length ? ((u = e ? Fg(a) : Rg), f) : u !== Rg; + }), + (f.interpolate = function(e) { + return arguments.length ? ((c = e), l()) : c; + }), + (f.unknown = function(e) { + return arguments.length ? ((n = e), f) : n; + }), + function(n, r) { + return (e = n), (t = r), l(); + } + ); + } + function Wg(e, t) { + return Yg()(e, t); + } + var Vg = function(e, t, n, r) { + var o, + i = A(e, t, n); + switch ((r = xc(null == r ? ',f' : r)).type) { + case 's': + var a = Math.max(Math.abs(e), Math.abs(t)); + return ( + null != r.precision || isNaN((o = Rc(i, a))) || (r.precision = o), + Ec(r, a) + ); + case '': + case 'e': + case 'g': + case 'p': + case 'r': + null != r.precision || + isNaN((o = Ic(i, Math.max(Math.abs(e), Math.abs(t))))) || + (r.precision = o - ('e' === r.type)); + break; + case 'f': + case '%': + null != r.precision || + isNaN((o = Nc(i))) || + (r.precision = o - 2 * ('%' === r.type)); + } + return Oc(r); + }; + function Ug(e) { + var t = e.domain; + return ( + (e.ticks = function(e) { + var n = t(); + return O(n[0], n[n.length - 1], null == e ? 10 : e); + }), + (e.tickFormat = function(e, n) { + var r = t(); + return Vg(r[0], r[r.length - 1], null == e ? 10 : e, n); + }), + (e.nice = function(n) { + null == n && (n = 10); + var r, + o = t(), + i = 0, + a = o.length - 1, + s = o[i], + c = o[a]; + return ( + c < s && ((r = s), (s = c), (c = r), (r = i), (i = a), (a = r)), + (r = E(s, c, n)) > 0 + ? (r = E( + (s = Math.floor(s / r) * r), + (c = Math.ceil(c / r) * r), + n + )) + : r < 0 && + (r = E( + (s = Math.ceil(s * r) / r), + (c = Math.floor(c * r) / r), + n + )), + r > 0 + ? ((o[i] = Math.floor(s / r) * r), + (o[a] = Math.ceil(c / r) * r), + t(o)) + : r < 0 && + ((o[i] = Math.ceil(s * r) / r), + (o[a] = Math.floor(c * r) / r), + t(o)), + e + ); + }), + e + ); + } + function Xg() { + var e = Wg(Rg, Rg); + return ( + (e.copy = function() { + return Hg(e, Xg()); + }), + Sg.apply(e, arguments), + Ug(e) + ); + } + function Gg(e) { + var t; + function n(e) { + return isNaN((e = +e)) ? t : e; + } + return ( + (n.invert = n), + (n.domain = n.range = function(t) { + return arguments.length ? ((e = Ag.call(t, zg)), n) : e.slice(); + }), + (n.unknown = function(e) { + return arguments.length ? ((t = e), n) : t; + }), + (n.copy = function() { + return Gg(e).unknown(t); + }), + (e = arguments.length ? Ag.call(e, zg) : [0, 1]), + Ug(n) + ); + } + var Kg = function(e, t) { + var n, + r = 0, + o = (e = e.slice()).length - 1, + i = e[r], + a = e[o]; + return ( + a < i && ((n = r), (r = o), (o = n), (n = i), (i = a), (a = n)), + (e[r] = t.floor(i)), + (e[o] = t.ceil(a)), + e + ); + }; + function $g(e) { + return Math.log(e); + } + function Qg(e) { + return Math.exp(e); + } + function Jg(e) { + return -Math.log(-e); + } + function Zg(e) { + return -Math.exp(-e); + } + function em(e) { + return isFinite(e) ? +('1e' + e) : e < 0 ? 0 : e; + } + function tm(e) { + return function(t) { + return -e(-t); + }; + } + function nm(e) { + var t, + n, + r = e($g, Qg), + o = r.domain, + i = 10; + function a() { + 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; + }); + })(i)), + (n = (function(e) { + return 10 === e + ? em + : e === Math.E + ? Math.exp + : function(t) { + return Math.pow(e, t); + }; + })(i)), + o()[0] < 0 ? ((t = tm(t)), (n = tm(n)), e(Jg, Zg)) : e($g, Qg), + r + ); + } + return ( + (r.base = function(e) { + return arguments.length ? ((i = +e), a()) : i; + }), + (r.domain = function(e) { + return arguments.length ? (o(e), a()) : o(); + }), + (r.ticks = function(e) { + var r, + a = o(), + s = a[0], + c = a[a.length - 1]; + (r = c < s) && ((d = s), (s = c), (c = d)); + var u, + l, + f, + d = t(s), + p = t(c), + h = null == e ? 10 : +e, + g = []; + if (!(i % 1) && p - d < h) { + if (((d = Math.round(d) - 1), (p = Math.round(p) + 1), s > 0)) { + for (; d < p; ++d) + for (l = 1, u = n(d); l < i; ++l) + if (!((f = u * l) < s)) { + if (f > c) break; + g.push(f); + } + } else + for (; d < p; ++d) + for (l = i - 1, u = n(d); l >= 1; --l) + if (!((f = u * l) < s)) { + if (f > c) break; + g.push(f); + } + } else g = O(d, p, Math.min(p - d, h)).map(n); + return r ? g.reverse() : g; + }), + (r.tickFormat = function(e, o) { + if ( + (null == o && (o = 10 === i ? '.0e' : ','), + 'function' != typeof o && (o = Oc(o)), + e === 1 / 0) + ) + return o; + null == e && (e = 10); + var a = Math.max(1, (i * e) / r.ticks().length); + return function(e) { + var r = e / n(Math.round(t(e))); + return r * i < i - 0.5 && (r *= i), r <= a ? o(e) : ''; + }; + }), + (r.nice = function() { + return o( + Kg(o(), { + floor: function(e) { + return n(Math.floor(t(e))); + }, + ceil: function(e) { + return n(Math.ceil(t(e))); + } + }) + ); + }), + r + ); + } + function rm() { + var e = nm(Yg()).domain([1, 10]); + return ( + (e.copy = function() { + return Hg(e, rm()).base(e.base()); + }), + Sg.apply(e, arguments), + e + ); + } + function om(e) { + return function(t) { + return Math.sign(t) * Math.log1p(Math.abs(t / e)); + }; + } + function im(e) { + return function(t) { + return Math.sign(t) * Math.expm1(Math.abs(t)) * e; + }; + } + function am(e) { + var t = 1, + n = e(om(t), im(t)); + return ( + (n.constant = function(n) { + return arguments.length ? e(om((t = +n)), im(t)) : t; + }), + Ug(n) + ); + } + function sm() { + var e = am(Yg()); + return ( + (e.copy = function() { + return Hg(e, sm()).constant(e.constant()); + }), + Sg.apply(e, arguments) + ); + } + function cm(e) { + return function(t) { + return t < 0 ? -Math.pow(-t, e) : Math.pow(t, e); + }; + } + function um(e) { + return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e); + } + function lm(e) { + return e < 0 ? -e * e : e * e; + } + function fm(e) { + var t = e(Rg, Rg), + n = 1; + function r() { + return 1 === n + ? e(Rg, Rg) + : 0.5 === n + ? e(um, lm) + : e(cm(n), cm(1 / n)); + } + return ( + (t.exponent = function(e) { + return arguments.length ? ((n = +e), r()) : n; + }), + Ug(t) + ); + } + function dm() { + var e = fm(Yg()); + return ( + (e.copy = function() { + return Hg(e, dm()).exponent(e.exponent()); + }), + Sg.apply(e, arguments), + e + ); + } + function pm() { + return dm.apply(null, arguments).exponent(0.5); + } + function hm() { + var e, + t = [], + n = [], + o = []; + function i() { + var e = 0, + r = Math.max(1, n.length); + for (o = new Array(r - 1); ++e < r; ) o[e - 1] = L(t, e / r); + return a; + } + function a(t) { + return isNaN((t = +t)) ? e : n[c(o, t)]; + } + return ( + (a.invertExtent = function(e) { + var r = n.indexOf(e); + return r < 0 + ? [NaN, NaN] + : [ + r > 0 ? o[r - 1] : t[0], + r < o.length ? o[r] : t[t.length - 1] + ]; + }), + (a.domain = function(e) { + if (!arguments.length) return t.slice(); + t = []; + for (var n, o = 0, a = e.length; o < a; ++o) + null == (n = e[o]) || isNaN((n = +n)) || t.push(n); + return t.sort(r), i(); + }), + (a.range = function(e) { + return arguments.length ? ((n = Tg.call(e)), i()) : n.slice(); + }), + (a.unknown = function(t) { + return arguments.length ? ((e = t), a) : e; + }), + (a.quantiles = function() { + return o.slice(); + }), + (a.copy = function() { + return hm() + .domain(t) + .range(n) + .unknown(e); + }), + Sg.apply(a, arguments) + ); + } + function gm() { + var e, + t = 0, + n = 1, + r = 1, + o = [0.5], + i = [0, 1]; + function a(t) { + return t <= t ? i[c(o, t, 0, r)] : e; + } + function s() { + var e = -1; + for (o = new Array(r); ++e < r; ) + o[e] = ((e + 1) * n - (e - r) * t) / (r + 1); + return a; + } + return ( + (a.domain = function(e) { + return arguments.length ? ((t = +e[0]), (n = +e[1]), s()) : [t, n]; + }), + (a.range = function(e) { + return arguments.length + ? ((r = (i = Tg.call(e)).length - 1), s()) + : i.slice(); + }), + (a.invertExtent = function(e) { + var a = i.indexOf(e); + return a < 0 + ? [NaN, NaN] + : a < 1 + ? [t, o[0]] + : a >= r + ? [o[r - 1], n] + : [o[a - 1], o[a]]; + }), + (a.unknown = function(t) { + return arguments.length ? ((e = t), a) : a; + }), + (a.thresholds = function() { + return o.slice(); + }), + (a.copy = function() { + return gm() + .domain([t, n]) + .range(i) + .unknown(e); + }), + Sg.apply(Ug(a), arguments) + ); + } + function mm() { + var e, + t = [0.5], + n = [0, 1], + r = 1; + function o(o) { + return o <= o ? n[c(t, o, 0, r)] : e; + } + return ( + (o.domain = function(e) { + return arguments.length + ? ((t = Tg.call(e)), (r = Math.min(t.length, n.length - 1)), o) + : t.slice(); + }), + (o.range = function(e) { + return arguments.length + ? ((n = Tg.call(e)), (r = Math.min(t.length, n.length - 1)), o) + : n.slice(); + }), + (o.invertExtent = function(e) { + var r = n.indexOf(e); + return [t[r - 1], t[r]]; + }), + (o.unknown = function(t) { + return arguments.length ? ((e = t), o) : e; + }), + (o.copy = function() { + return mm() + .domain(t) + .range(n) + .unknown(e); + }), + Sg.apply(o, arguments) + ); + } + var bm = new Date(), + ym = new Date(); + function vm(e, t, n, r) { + function o(t) { + return e((t = 0 === arguments.length ? new Date() : new Date(+t))), t; + } + return ( + (o.floor = function(t) { + return e((t = new Date(+t))), t; + }), + (o.ceil = function(n) { + return e((n = new Date(n - 1))), t(n, 1), e(n), n; + }), + (o.round = function(e) { + var t = o(e), + n = o.ceil(e); + return e - t < n - e ? t : n; + }), + (o.offset = function(e, n) { + return t((e = new Date(+e)), null == n ? 1 : Math.floor(n)), e; + }), + (o.range = function(n, r, i) { + var a, + s = []; + if ( + ((n = o.ceil(n)), + (i = null == i ? 1 : Math.floor(i)), + !(n < r && i > 0)) + ) + return s; + do { + s.push((a = new Date(+n))), t(n, i), e(n); + } while (a < n && n < r); + return s; + }), + (o.filter = function(n) { + return vm( + 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 && + ((o.count = function(t, r) { + return ( + bm.setTime(+t), + ym.setTime(+r), + e(bm), + e(ym), + Math.floor(n(bm, ym)) + ); + }), + (o.every = function(e) { + return ( + (e = Math.floor(e)), + isFinite(e) && e > 0 + ? e > 1 + ? o.filter( + r + ? function(t) { + return r(t) % e == 0; + } + : function(t) { + return o.count(0, t) % e == 0; + } + ) + : o + : null + ); + })), + o + ); + } + var _m = vm( + 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(); + } + ); + _m.every = function(e) { + return isFinite((e = Math.floor(e))) && e > 0 + ? vm( + 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 wm = _m, + xm = _m.range, + Mm = vm( + function(e) { + e.setDate(1), e.setHours(0, 0, 0, 0); }, - meridiemParse: /de|du/i, - isPM: function(e) { - return 'u' === e.charAt(1).toLowerCase(); + function(e, t) { + e.setMonth(e.getMonth() + t); }, - meridiem: function(e, t, n) { - return e < 12 ? (!0 === n ? 'de' : 'DE') : !0 === n ? 'du' : 'DU'; + function(e, t) { + return ( + t.getMonth() - + e.getMonth() + + 12 * (t.getFullYear() - e.getFullYear()) + ); }, - calendar: { - sameDay: '[ma] LT[-kor]', - nextDay: '[holnap] LT[-kor]', - nextWeek: function() { - return r.call(this, !0); - }, - lastDay: '[tegnap] LT[-kor]', - lastWeek: function() { - return r.call(this, !1); - }, - sameElse: 'L' + function(e) { + return e.getMonth(); + } + ), + km = Mm, + Sm = Mm.range, + Om = 6e4, + Em = 6048e5; + function Am(e) { + return vm( + function(t) { + t.setDate(t.getDate() - ((t.getDay() + 7 - e) % 7)), + t.setHours(0, 0, 0, 0); }, - relativeTime: { - future: '%s múlva', - past: '%s', - s: n, - ss: n, - m: n, - mm: n, - h: n, - hh: n, - d: n, - dd: n, - M: n, - MM: n, - y: n, - yy: n + function(e, t) { + e.setDate(e.getDate() + 7 * t); }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('hy-am', { - months: { - format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split( - '_' - ), - standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split( - '_' - ) + function(e, t) { + return ( + (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * Om) / + Em + ); + } + ); + } + var Tm = Am(0), + Cm = Am(1), + Lm = Am(2), + Pm = Am(3), + Dm = Am(4), + jm = Am(5), + zm = Am(6), + Nm = Tm.range, + Rm = Cm.range, + Im = Lm.range, + Fm = Pm.range, + qm = Dm.range, + Bm = jm.range, + Hm = zm.range, + Ym = vm( + function(e) { + e.setHours(0, 0, 0, 0); }, - monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split( - '_' - ), - weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split( - '_' - ), - weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), - weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY թ.', - LLL: 'D MMMM YYYY թ., HH:mm', - LLLL: 'dddd, D MMMM YYYY թ., HH:mm' + function(e, t) { + e.setDate(e.getDate() + t); }, - calendar: { - sameDay: '[այսօր] LT', - nextDay: '[վաղը] LT', - lastDay: '[երեկ] LT', - nextWeek: function() { - return 'dddd [օրը ժամը] LT'; - }, - lastWeek: function() { - return '[անցած] dddd [օրը ժամը] LT'; - }, - sameElse: 'L' + function(e, t) { + return ( + (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * Om) / + 864e5 + ); }, - relativeTime: { - future: '%s հետո', - past: '%s առաջ', - s: 'մի քանի վայրկյան', - ss: '%d վայրկյան', - m: 'րոպե', - mm: '%d րոպե', - h: 'ժամ', - hh: '%d ժամ', - d: 'օր', - dd: '%d օր', - M: 'ամիս', - MM: '%d ամիս', - y: 'տարի', - yy: '%d տարի' + function(e) { + return e.getDate() - 1; + } + ), + Wm = Ym, + Vm = Ym.range, + Um = vm( + function(e) { + e.setTime( + e - + e.getMilliseconds() - + 1e3 * e.getSeconds() - + e.getMinutes() * Om + ); }, - meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/, - isPM: function(e) { - return /^(ցերեկվա|երեկոյան)$/.test(e); + function(e, t) { + e.setTime(+e + 36e5 * t); }, - meridiem: function(e) { - return e < 4 - ? 'գիշերվա' - : e < 12 - ? 'առավոտվա' - : e < 17 - ? 'ցերեկվա' - : 'երեկոյան'; + function(e, t) { + return (t - e) / 36e5; }, - dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/, - ordinal: function(e, t) { - switch (t) { - case 'DDD': - case 'w': - case 'W': - case 'DDDo': - return 1 === e ? e + '-ին' : e + '-րդ'; - default: - return e; - } + function(e) { + return e.getHours(); + } + ), + Xm = Um, + Gm = Um.range, + Km = vm( + function(e) { + e.setTime(e - e.getMilliseconds() - 1e3 * e.getSeconds()); }, - week: { dow: 1, doy: 7 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('id', { - months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split( - '_' - ), - weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'), - weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'), - weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [pukul] HH.mm', - LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm' + function(e, t) { + e.setTime(+e + t * Om); }, - meridiemParse: /pagi|siang|sore|malam/, - meridiemHour: function(e, t) { - return ( - 12 === e && (e = 0), - 'pagi' === t - ? e - : 'siang' === t - ? e >= 11 - ? e - : e + 12 - : 'sore' === t || 'malam' === t - ? e + 12 - : void 0 - ); + function(e, t) { + return (t - e) / Om; }, - meridiem: function(e, t, n) { - return e < 11 - ? 'pagi' - : e < 15 - ? 'siang' - : e < 19 - ? 'sore' - : 'malam'; + function(e) { + return e.getMinutes(); + } + ), + $m = Km, + Qm = Km.range, + Jm = vm( + function(e) { + e.setTime(e - e.getMilliseconds()); }, - calendar: { - sameDay: '[Hari ini pukul] LT', - nextDay: '[Besok pukul] LT', - nextWeek: 'dddd [pukul] LT', - lastDay: '[Kemarin pukul] LT', - lastWeek: 'dddd [lalu pukul] LT', - sameElse: 'L' + function(e, t) { + e.setTime(+e + 1e3 * t); }, - relativeTime: { - future: 'dalam %s', - past: '%s yang lalu', - s: 'beberapa detik', - ss: '%d detik', - m: 'semenit', - mm: '%d menit', - h: 'sejam', - hh: '%d jam', - d: 'sehari', - dd: '%d hari', - M: 'sebulan', - MM: '%d bulan', - y: 'setahun', - yy: '%d tahun' + function(e, t) { + return (t - e) / 1e3; }, - week: { dow: 1, doy: 7 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - function t(e) { - return e % 100 == 11 || e % 10 != 1; - } - function n(e, n, r, o) { - var i = e + ' '; - switch (r) { - case 's': - return n || o ? 'nokkrar sekúndur' : 'nokkrum sekúndum'; - case 'ss': - return t(e) - ? i + (n || o ? 'sekúndur' : 'sekúndum') - : i + 'sekúnda'; - case 'm': - return n ? 'mínúta' : 'mínútu'; - case 'mm': - return t(e) - ? i + (n || o ? 'mínútur' : 'mínútum') - : n - ? i + 'mínúta' - : i + 'mínútu'; - case 'hh': - return t(e) - ? i + (n || o ? 'klukkustundir' : 'klukkustundum') - : i + 'klukkustund'; - case 'd': - return n ? 'dagur' : o ? 'dag' : 'degi'; - case 'dd': - return t(e) - ? n - ? i + 'dagar' - : i + (o ? 'daga' : 'dögum') - : n - ? i + 'dagur' - : i + (o ? 'dag' : 'degi'); - case 'M': - return n ? 'mánuður' : o ? 'mánuð' : 'mánuði'; - case 'MM': - return t(e) - ? n - ? i + 'mánuðir' - : i + (o ? 'mánuði' : 'mánuðum') - : n - ? i + 'mánuður' - : i + (o ? 'mánuð' : 'mánuði'); - case 'y': - return n || o ? 'ár' : 'ári'; - case 'yy': - return t(e) - ? i + (n || o ? 'ár' : 'árum') - : i + (n || o ? 'ár' : 'ári'); + function(e) { + return e.getUTCSeconds(); } - } - e.defineLocale('is', { - months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split( - '_' - ), - monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split( - '_' - ), - weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split( - '_' - ), - weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'), - weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY [kl.] H:mm', - LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm' + ), + Zm = Jm, + eb = Jm.range, + tb = vm( + function() {}, + function(e, t) { + e.setTime(+e + t); }, - calendar: { - sameDay: '[í dag kl.] LT', - nextDay: '[á morgun kl.] LT', - nextWeek: 'dddd [kl.] LT', - lastDay: '[í gær kl.] LT', - lastWeek: '[síðasta] dddd [kl.] LT', - sameElse: 'L' + function(e, t) { + return t - e; + } + ); + tb.every = function(e) { + return ( + (e = Math.floor(e)), + isFinite(e) && e > 0 + ? e > 1 + ? vm( + function(t) { + t.setTime(Math.floor(t / e) * e); + }, + function(t, n) { + t.setTime(+t + n * e); + }, + function(t, n) { + return (n - t) / e; + } + ) + : tb + : null + ); + }; + var nb = tb, + rb = tb.range; + function ob(e) { + return vm( + function(t) { + t.setUTCDate(t.getUTCDate() - ((t.getUTCDay() + 7 - e) % 7)), + t.setUTCHours(0, 0, 0, 0); }, - relativeTime: { - future: 'eftir %s', - past: 'fyrir %s síðan', - s: n, - ss: n, - m: n, - mm: n, - h: 'klukkustund', - hh: n, - d: n, - dd: n, - M: n, - MM: n, - y: n, - yy: n + function(e, t) { + e.setUTCDate(e.getUTCDate() + 7 * t); }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('it', { - months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split( - '_' - ), - monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split( - '_' - ), - weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split( - '_' - ), - weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'), - weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' + function(e, t) { + return (t - e) / Em; + } + ); + } + var ib = ob(0), + ab = ob(1), + sb = ob(2), + cb = ob(3), + ub = ob(4), + lb = ob(5), + fb = ob(6), + db = ib.range, + pb = ab.range, + hb = sb.range, + gb = cb.range, + mb = ub.range, + bb = lb.range, + yb = fb.range, + vb = vm( + function(e) { + e.setUTCHours(0, 0, 0, 0); }, - calendar: { - sameDay: '[Oggi alle] LT', - nextDay: '[Domani alle] LT', - nextWeek: 'dddd [alle] LT', - lastDay: '[Ieri alle] LT', - lastWeek: function() { - switch (this.day()) { - case 0: - return '[la scorsa] dddd [alle] LT'; - default: - return '[lo scorso] dddd [alle] LT'; - } - }, - sameElse: 'L' + function(e, t) { + e.setUTCDate(e.getUTCDate() + t); }, - relativeTime: { - future: function(e) { - return (/^[0-9].+$/.test(e) ? 'tra' : 'in') + ' ' + e; - }, - past: '%s fa', - s: 'alcuni secondi', - ss: '%d secondi', - m: 'un minuto', - mm: '%d minuti', - h: "un'ora", - hh: '%d ore', - d: 'un giorno', - dd: '%d giorni', - M: 'un mese', - MM: '%d mesi', - y: 'un anno', - yy: '%d anni' + function(e, t) { + return (t - e) / 864e5; }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('it-ch', { - months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split( - '_' - ), - monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split( - '_' - ), - weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split( - '_' - ), - weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'), - weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' + function(e) { + return e.getUTCDate() - 1; + } + ), + _b = vb, + wb = vb.range, + xb = vm( + function(e) { + e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0); }, - calendar: { - sameDay: '[Oggi alle] LT', - nextDay: '[Domani alle] LT', - nextWeek: 'dddd [alle] LT', - lastDay: '[Ieri alle] LT', - lastWeek: function() { - switch (this.day()) { - case 0: - return '[la scorsa] dddd [alle] LT'; - default: - return '[lo scorso] dddd [alle] LT'; + function(e, t) { + e.setUTCFullYear(e.getUTCFullYear() + t); + }, + function(e, t) { + return t.getUTCFullYear() - e.getUTCFullYear(); + }, + function(e) { + return e.getUTCFullYear(); + } + ); + xb.every = function(e) { + return isFinite((e = Math.floor(e))) && e > 0 + ? vm( + 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 Mb = xb, + kb = xb.range; + function Sb(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 Ob(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 Eb(e, t, n) { + return { y: e, m: t, d: n, H: 0, M: 0, S: 0, L: 0 }; + } + function Ab(e) { + var t = e.dateTime, + n = e.date, + r = e.time, + o = e.periods, + i = e.days, + a = e.shortDays, + s = e.months, + c = e.shortMonths, + u = qb(o), + l = Bb(o), + f = qb(i), + d = Bb(i), + p = qb(a), + h = Bb(a), + g = qb(s), + m = Bb(s), + b = qb(c), + y = Bb(c), + v = { + a: function(e) { + return a[e.getDay()]; }, - sameElse: 'L' - }, - relativeTime: { - future: function(e) { - return (/^[0-9].+$/.test(e) ? 'tra' : 'in') + ' ' + e; + A: function(e) { + return i[e.getDay()]; }, - past: '%s fa', - s: 'alcuni secondi', - ss: '%d secondi', - m: 'un minuto', - mm: '%d minuti', - h: "un'ora", - hh: '%d ore', - d: 'un giorno', - dd: '%d giorni', - M: 'un mese', - MM: '%d mesi', - y: 'un anno', - yy: '%d anni' - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('ja', { - months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( - '_' - ), - monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( - '_' - ), - weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split( - '_' - ), - weekdaysShort: '日_月_火_水_木_金_土'.split('_'), - weekdaysMin: '日_月_火_水_木_金_土'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY/MM/DD', - LL: 'YYYY年M月D日', - LLL: 'YYYY年M月D日 HH:mm', - LLLL: 'YYYY年M月D日 dddd HH:mm', - l: 'YYYY/MM/DD', - ll: 'YYYY年M月D日', - lll: 'YYYY年M月D日 HH:mm', - llll: 'YYYY年M月D日(ddd) HH:mm' - }, - meridiemParse: /午前|午後/i, - isPM: function(e) { - return '午後' === e; - }, - meridiem: function(e, t, n) { - return e < 12 ? '午前' : '午後'; + b: function(e) { + return c[e.getMonth()]; + }, + B: function(e) { + return s[e.getMonth()]; + }, + c: null, + d: cy, + e: cy, + f: py, + H: uy, + I: ly, + j: fy, + L: dy, + m: hy, + M: gy, + p: function(e) { + return o[+(e.getHours() >= 12)]; + }, + q: function(e) { + return 1 + ~~(e.getMonth() / 3); + }, + Q: Yy, + s: Wy, + S: my, + u: by, + U: yy, + V: vy, + w: _y, + W: wy, + x: null, + X: null, + y: xy, + Y: My, + Z: ky, + '%': Hy }, - calendar: { - sameDay: '[今日] LT', - nextDay: '[明日] LT', - nextWeek: function(e) { - return e.week() < this.week() ? '[来週]dddd LT' : 'dddd LT'; + _ = { + a: function(e) { + return a[e.getUTCDay()]; }, - lastDay: '[昨日] LT', - lastWeek: function(e) { - return this.week() < e.week() ? '[先週]dddd LT' : 'dddd LT'; + A: function(e) { + return i[e.getUTCDay()]; }, - sameElse: 'L' + b: function(e) { + return c[e.getUTCMonth()]; + }, + B: function(e) { + return s[e.getUTCMonth()]; + }, + c: null, + d: Sy, + e: Sy, + f: Cy, + H: Oy, + I: Ey, + j: Ay, + L: Ty, + m: Ly, + M: Py, + p: function(e) { + return o[+(e.getUTCHours() >= 12)]; + }, + q: function(e) { + return 1 + ~~(e.getUTCMonth() / 3); + }, + Q: Yy, + s: Wy, + S: Dy, + u: jy, + U: zy, + V: Ny, + w: Ry, + W: Iy, + x: null, + X: null, + y: Fy, + Y: qy, + Z: By, + '%': Hy }, - dayOfMonthOrdinalParse: /\d{1,2}日/, - ordinal: function(e, t) { - switch (t) { - case 'd': - case 'D': - case 'DDD': - return e + '日'; - default: - return e; + w = { + a: function(e, t, n) { + var r = p.exec(t.slice(n)); + return r ? ((e.w = h[r[0].toLowerCase()]), n + r[0].length) : -1; + }, + A: function(e, t, n) { + var r = f.exec(t.slice(n)); + return r ? ((e.w = d[r[0].toLowerCase()]), n + r[0].length) : -1; + }, + b: function(e, t, n) { + var r = b.exec(t.slice(n)); + return r ? ((e.m = y[r[0].toLowerCase()]), n + r[0].length) : -1; + }, + B: function(e, t, n) { + var r = g.exec(t.slice(n)); + return r ? ((e.m = m[r[0].toLowerCase()]), n + r[0].length) : -1; + }, + c: function(e, n, r) { + return k(e, t, n, r); + }, + d: Jb, + e: Jb, + f: oy, + H: ey, + I: ey, + j: Zb, + L: ry, + m: Qb, + M: ty, + p: function(e, t, n) { + var r = u.exec(t.slice(n)); + return r ? ((e.p = l[r[0].toLowerCase()]), n + r[0].length) : -1; + }, + q: $b, + Q: ay, + s: sy, + S: ny, + u: Yb, + U: Wb, + V: Vb, + w: Hb, + W: Ub, + x: function(e, t, r) { + return k(e, n, t, r); + }, + X: function(e, t, n) { + return k(e, r, t, n); + }, + y: Gb, + Y: Xb, + Z: Kb, + '%': iy + }; + function x(e, t) { + return function(n) { + var r, + o, + i, + a = [], + s = -1, + c = 0, + u = e.length; + for (n instanceof Date || (n = new Date(+n)); ++s < u; ) + 37 === e.charCodeAt(s) && + (a.push(e.slice(c, s)), + null != (o = jb[(r = e.charAt(++s))]) + ? (r = e.charAt(++s)) + : (o = 'e' === r ? ' ' : '0'), + (i = t[r]) && (r = i(n, o)), + a.push(r), + (c = s + 1)); + return a.push(e.slice(c, s)), a.join(''); + }; + } + function M(e, t) { + return function(n) { + var r, + o, + i = Eb(1900, void 0, 1); + if (k(i, e, (n += ''), 0) != n.length) return null; + if ('Q' in i) return new Date(i.Q); + if ('s' in i) return new Date(1e3 * i.s + ('L' in i ? i.L : 0)); + if ( + (!t || 'Z' in i || (i.Z = 0), + 'p' in i && (i.H = (i.H % 12) + 12 * i.p), + void 0 === i.m && (i.m = 'q' in i ? i.q : 0), + 'V' in i) + ) { + if (i.V < 1 || i.V > 53) return null; + 'w' in i || (i.w = 1), + 'Z' in i + ? ((o = (r = Ob(Eb(i.y, 0, 1))).getUTCDay()), + (r = o > 4 || 0 === o ? ab.ceil(r) : ab(r)), + (r = _b.offset(r, 7 * (i.V - 1))), + (i.y = r.getUTCFullYear()), + (i.m = r.getUTCMonth()), + (i.d = r.getUTCDate() + ((i.w + 6) % 7))) + : ((o = (r = Sb(Eb(i.y, 0, 1))).getDay()), + (r = o > 4 || 0 === o ? Cm.ceil(r) : Cm(r)), + (r = Wm.offset(r, 7 * (i.V - 1))), + (i.y = r.getFullYear()), + (i.m = r.getMonth()), + (i.d = r.getDate() + ((i.w + 6) % 7))); + } else + ('W' in i || 'U' in i) && + ('w' in i || (i.w = 'u' in i ? i.u % 7 : 'W' in i ? 1 : 0), + (o = + 'Z' in i + ? Ob(Eb(i.y, 0, 1)).getUTCDay() + : Sb(Eb(i.y, 0, 1)).getDay()), + (i.m = 0), + (i.d = + 'W' in i + ? ((i.w + 6) % 7) + 7 * i.W - ((o + 5) % 7) + : i.w + 7 * i.U - ((o + 6) % 7))); + return 'Z' in i + ? ((i.H += (i.Z / 100) | 0), (i.M += i.Z % 100), Ob(i)) + : Sb(i); + }; + } + function k(e, t, n, r) { + for (var o, i, a = 0, s = t.length, c = n.length; a < s; ) { + if (r >= c) return -1; + if (37 === (o = t.charCodeAt(a++))) { + if ( + ((o = t.charAt(a++)), + !(i = w[o in jb ? t.charAt(a++) : o]) || (r = i(e, n, r)) < 0) + ) + return -1; + } else if (o != n.charCodeAt(r++)) return -1; + } + return r; + } + return ( + (v.x = x(n, v)), + (v.X = x(r, v)), + (v.c = x(t, v)), + (_.x = x(n, _)), + (_.X = x(r, _)), + (_.c = x(t, _)), + { + format: function(e) { + var t = x((e += ''), v); + return ( + (t.toString = function() { + return e; + }), + t + ); + }, + parse: function(e) { + var t = M((e += ''), !1); + return ( + (t.toString = function() { + return e; + }), + t + ); + }, + utcFormat: function(e) { + var t = x((e += ''), _); + return ( + (t.toString = function() { + return e; + }), + t + ); + }, + utcParse: function(e) { + var t = M((e += ''), !0); + return ( + (t.toString = function() { + return e; + }), + t + ); } - }, - relativeTime: { - future: '%s後', - past: '%s前', - s: '数秒', - ss: '%d秒', - m: '1分', - mm: '%d分', - h: '1時間', - hh: '%d時間', - d: '1日', - dd: '%d日', - M: '1ヶ月', - MM: '%dヶ月', - y: '1年', - yy: '%d年' } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('jv', { - months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split( - '_' - ), - weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'), - weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'), - weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [pukul] HH.mm', - LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm' - }, - meridiemParse: /enjing|siyang|sonten|ndalu/, - meridiemHour: function(e, t) { + ); + } + var Tb, + Cb, + Lb, + Pb, + Db, + jb = { '-': '', _: ' ', 0: '0' }, + zb = /^\s*\d+/, + Nb = /^%/, + Rb = /[\\^$*+?|[\]().{}]/g; + function Ib(e, t, n) { + var r = e < 0 ? '-' : '', + o = (r ? -e : e) + '', + i = o.length; + return r + (i < n ? new Array(n - i + 1).join(t) + o : o); + } + function Fb(e) { + return e.replace(Rb, '\\$&'); + } + function qb(e) { + return new RegExp('^(?:' + e.map(Fb).join('|') + ')', 'i'); + } + function Bb(e) { + for (var t = {}, n = -1, r = e.length; ++n < r; ) + t[e[n].toLowerCase()] = n; + return t; + } + function Hb(e, t, n) { + var r = zb.exec(t.slice(n, n + 1)); + return r ? ((e.w = +r[0]), n + r[0].length) : -1; + } + function Yb(e, t, n) { + var r = zb.exec(t.slice(n, n + 1)); + return r ? ((e.u = +r[0]), n + r[0].length) : -1; + } + function Wb(e, t, n) { + var r = zb.exec(t.slice(n, n + 2)); + return r ? ((e.U = +r[0]), n + r[0].length) : -1; + } + function Vb(e, t, n) { + var r = zb.exec(t.slice(n, n + 2)); + return r ? ((e.V = +r[0]), n + r[0].length) : -1; + } + function Ub(e, t, n) { + var r = zb.exec(t.slice(n, n + 2)); + return r ? ((e.W = +r[0]), n + r[0].length) : -1; + } + function Xb(e, t, n) { + var r = zb.exec(t.slice(n, n + 4)); + return r ? ((e.y = +r[0]), n + r[0].length) : -1; + } + function Gb(e, t, n) { + var r = zb.exec(t.slice(n, n + 2)); + return r + ? ((e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3)), n + r[0].length) + : -1; + } + function Kb(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 $b(e, t, n) { + var r = zb.exec(t.slice(n, n + 1)); + return r ? ((e.q = 3 * r[0] - 3), n + r[0].length) : -1; + } + function Qb(e, t, n) { + var r = zb.exec(t.slice(n, n + 2)); + return r ? ((e.m = r[0] - 1), n + r[0].length) : -1; + } + function Jb(e, t, n) { + var r = zb.exec(t.slice(n, n + 2)); + return r ? ((e.d = +r[0]), n + r[0].length) : -1; + } + function Zb(e, t, n) { + var r = zb.exec(t.slice(n, n + 3)); + return r ? ((e.m = 0), (e.d = +r[0]), n + r[0].length) : -1; + } + function ey(e, t, n) { + var r = zb.exec(t.slice(n, n + 2)); + return r ? ((e.H = +r[0]), n + r[0].length) : -1; + } + function ty(e, t, n) { + var r = zb.exec(t.slice(n, n + 2)); + return r ? ((e.M = +r[0]), n + r[0].length) : -1; + } + function ny(e, t, n) { + var r = zb.exec(t.slice(n, n + 2)); + return r ? ((e.S = +r[0]), n + r[0].length) : -1; + } + function ry(e, t, n) { + var r = zb.exec(t.slice(n, n + 3)); + return r ? ((e.L = +r[0]), n + r[0].length) : -1; + } + function oy(e, t, n) { + var r = zb.exec(t.slice(n, n + 6)); + return r ? ((e.L = Math.floor(r[0] / 1e3)), n + r[0].length) : -1; + } + function iy(e, t, n) { + var r = Nb.exec(t.slice(n, n + 1)); + return r ? n + r[0].length : -1; + } + function ay(e, t, n) { + var r = zb.exec(t.slice(n)); + return r ? ((e.Q = +r[0]), n + r[0].length) : -1; + } + function sy(e, t, n) { + var r = zb.exec(t.slice(n)); + return r ? ((e.s = +r[0]), n + r[0].length) : -1; + } + function cy(e, t) { + return Ib(e.getDate(), t, 2); + } + function uy(e, t) { + return Ib(e.getHours(), t, 2); + } + function ly(e, t) { + return Ib(e.getHours() % 12 || 12, t, 2); + } + function fy(e, t) { + return Ib(1 + Wm.count(wm(e), e), t, 3); + } + function dy(e, t) { + return Ib(e.getMilliseconds(), t, 3); + } + function py(e, t) { + return dy(e, t) + '000'; + } + function hy(e, t) { + return Ib(e.getMonth() + 1, t, 2); + } + function gy(e, t) { + return Ib(e.getMinutes(), t, 2); + } + function my(e, t) { + return Ib(e.getSeconds(), t, 2); + } + function by(e) { + var t = e.getDay(); + return 0 === t ? 7 : t; + } + function yy(e, t) { + return Ib(Tm.count(wm(e) - 1, e), t, 2); + } + function vy(e, t) { + var n = e.getDay(); + return ( + (e = n >= 4 || 0 === n ? Dm(e) : Dm.ceil(e)), + Ib(Dm.count(wm(e), e) + (4 === wm(e).getDay()), t, 2) + ); + } + function _y(e) { + return e.getDay(); + } + function wy(e, t) { + return Ib(Cm.count(wm(e) - 1, e), t, 2); + } + function xy(e, t) { + return Ib(e.getFullYear() % 100, t, 2); + } + function My(e, t) { + return Ib(e.getFullYear() % 1e4, t, 4); + } + function ky(e) { + var t = e.getTimezoneOffset(); + return ( + (t > 0 ? '-' : ((t *= -1), '+')) + + Ib((t / 60) | 0, '0', 2) + + Ib(t % 60, '0', 2) + ); + } + function Sy(e, t) { + return Ib(e.getUTCDate(), t, 2); + } + function Oy(e, t) { + return Ib(e.getUTCHours(), t, 2); + } + function Ey(e, t) { + return Ib(e.getUTCHours() % 12 || 12, t, 2); + } + function Ay(e, t) { + return Ib(1 + _b.count(Mb(e), e), t, 3); + } + function Ty(e, t) { + return Ib(e.getUTCMilliseconds(), t, 3); + } + function Cy(e, t) { + return Ty(e, t) + '000'; + } + function Ly(e, t) { + return Ib(e.getUTCMonth() + 1, t, 2); + } + function Py(e, t) { + return Ib(e.getUTCMinutes(), t, 2); + } + function Dy(e, t) { + return Ib(e.getUTCSeconds(), t, 2); + } + function jy(e) { + var t = e.getUTCDay(); + return 0 === t ? 7 : t; + } + function zy(e, t) { + return Ib(ib.count(Mb(e) - 1, e), t, 2); + } + function Ny(e, t) { + var n = e.getUTCDay(); + return ( + (e = n >= 4 || 0 === n ? ub(e) : ub.ceil(e)), + Ib(ub.count(Mb(e), e) + (4 === Mb(e).getUTCDay()), t, 2) + ); + } + function Ry(e) { + return e.getUTCDay(); + } + function Iy(e, t) { + return Ib(ab.count(Mb(e) - 1, e), t, 2); + } + function Fy(e, t) { + return Ib(e.getUTCFullYear() % 100, t, 2); + } + function qy(e, t) { + return Ib(e.getUTCFullYear() % 1e4, t, 4); + } + function By() { + return '+0000'; + } + function Hy() { + return '%'; + } + function Yy(e) { + return +e; + } + function Wy(e) { + return Math.floor(+e / 1e3); + } + function Vy(e) { + return ( + (Tb = Ab(e)), + (Cb = Tb.format), + (Lb = Tb.parse), + (Pb = Tb.utcFormat), + (Db = Tb.utcParse), + Tb + ); + } + Vy({ + dateTime: '%x, %X', + date: '%-m/%-d/%Y', + time: '%-I:%M:%S %p', + periods: ['AM', 'PM'], + days: [ + 'Sunday', + 'Monday', + 'Tuesday', + 'Wednesday', + 'Thursday', + 'Friday', + 'Saturday' + ], + shortDays: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], + months: [ + 'January', + 'February', + 'March', + 'April', + 'May', + 'June', + 'July', + 'August', + 'September', + 'October', + 'November', + 'December' + ], + shortMonths: [ + 'Jan', + 'Feb', + 'Mar', + 'Apr', + 'May', + 'Jun', + 'Jul', + 'Aug', + 'Sep', + 'Oct', + 'Nov', + 'Dec' + ] + }); + var Uy = 1e3, + Xy = 60 * Uy, + Gy = 60 * Xy, + Ky = 24 * Gy, + $y = 7 * Ky, + Qy = 30 * Ky, + Jy = 365 * Ky; + function Zy(e) { + return new Date(e); + } + function ev(e) { + return e instanceof Date ? +e : +new Date(+e); + } + function tv(e, t, n, r, i, a, s, c, u) { + var l = Wg(Rg, Rg), + f = l.invert, + d = l.domain, + p = u('.%L'), + h = u(':%S'), + g = u('%I:%M'), + m = u('%I %p'), + b = u('%a %d'), + y = u('%b %d'), + v = u('%B'), + _ = u('%Y'), + w = [ + [s, 1, Uy], + [s, 5, 5 * Uy], + [s, 15, 15 * Uy], + [s, 30, 30 * Uy], + [a, 1, Xy], + [a, 5, 5 * Xy], + [a, 15, 15 * Xy], + [a, 30, 30 * Xy], + [i, 1, Gy], + [i, 3, 3 * Gy], + [i, 6, 6 * Gy], + [i, 12, 12 * Gy], + [r, 1, Ky], + [r, 2, 2 * Ky], + [n, 1, $y], + [t, 1, Qy], + [t, 3, 3 * Qy], + [e, 1, Jy] + ]; + function x(o) { + return (s(o) < o + ? p + : a(o) < o + ? h + : i(o) < o + ? g + : r(o) < o + ? m + : t(o) < o + ? n(o) < o + ? b + : y + : e(o) < o + ? v + : _)(o); + } + function M(t, n, r, i) { + if ((null == t && (t = 10), 'number' == typeof t)) { + var a = Math.abs(r - n) / t, + s = o(function(e) { + return e[2]; + }).right(w, a); + s === w.length + ? ((i = A(n / Jy, r / Jy, t)), (t = e)) + : s + ? ((i = (s = w[a / w[s - 1][2] < w[s][2] / a ? s - 1 : s])[1]), + (t = s[0])) + : ((i = Math.max(A(n, r, t), 1)), (t = c)); + } + return null == i ? t : t.every(i); + } + return ( + (l.invert = function(e) { + return new Date(f(e)); + }), + (l.domain = function(e) { + return arguments.length ? d(Ag.call(e, ev)) : d().map(Zy); + }), + (l.ticks = function(e, t) { + var n, + r = d(), + o = r[0], + i = r[r.length - 1], + a = i < o; return ( - 12 === e && (e = 0), - 'enjing' === t - ? e - : 'siyang' === t - ? e >= 11 - ? e - : e + 12 - : 'sonten' === t || 'ndalu' === t - ? e + 12 - : void 0 + a && ((n = o), (o = i), (i = n)), + (n = (n = M(e, o, i, t)) ? n.range(o, i + 1) : []), + a ? n.reverse() : n ); + }), + (l.tickFormat = function(e, t) { + return null == t ? x : u(t); + }), + (l.nice = function(e, t) { + var n = d(); + return (e = M(e, n[0], n[n.length - 1], t)) ? d(Kg(n, e)) : l; + }), + (l.copy = function() { + return Hg(l, tv(e, t, n, r, i, a, s, c, u)); + }), + l + ); + } + var nv = function() { + return Sg.apply( + tv(wm, km, Tm, Wm, Xm, $m, Zm, nb, Cb).domain([ + new Date(2e3, 0, 1), + new Date(2e3, 0, 2) + ]), + arguments + ); + }, + rv = vm( + function(e) { + e.setUTCDate(1), e.setUTCHours(0, 0, 0, 0); }, - meridiem: function(e, t, n) { - return e < 11 - ? 'enjing' - : e < 15 - ? 'siyang' - : e < 19 - ? 'sonten' - : 'ndalu'; - }, - calendar: { - sameDay: '[Dinten puniko pukul] LT', - nextDay: '[Mbenjang pukul] LT', - nextWeek: 'dddd [pukul] LT', - lastDay: '[Kala wingi pukul] LT', - lastWeek: 'dddd [kepengker pukul] LT', - sameElse: 'L' + function(e, t) { + e.setUTCMonth(e.getUTCMonth() + t); }, - relativeTime: { - future: 'wonten ing %s', - past: '%s ingkang kepengker', - s: 'sawetawis detik', - ss: '%d detik', - m: 'setunggal menit', - mm: '%d menit', - h: 'setunggal jam', - hh: '%d jam', - d: 'sedinten', - dd: '%d dinten', - M: 'sewulan', - MM: '%d wulan', - y: 'setaun', - yy: '%d taun' + function(e, t) { + return ( + t.getUTCMonth() - + e.getUTCMonth() + + 12 * (t.getUTCFullYear() - e.getUTCFullYear()) + ); }, - week: { dow: 1, doy: 7 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('ka', { - months: { - standalone: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split( - '_' - ), - format: 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split( - '_' - ) + function(e) { + return e.getUTCMonth(); + } + ), + ov = rv, + iv = rv.range, + av = vm( + function(e) { + e.setUTCMinutes(0, 0, 0); }, - monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split( - '_' - ), - weekdays: { - standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split( - '_' - ), - format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split( - '_' - ), - isFormat: /(წინა|შემდეგ)/ + function(e, t) { + e.setTime(+e + 36e5 * t); }, - weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'), - weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'), - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A' + function(e, t) { + return (t - e) / 36e5; }, - calendar: { - sameDay: '[დღეს] LT[-ზე]', - nextDay: '[ხვალ] LT[-ზე]', - lastDay: '[გუშინ] LT[-ზე]', - nextWeek: '[შემდეგ] dddd LT[-ზე]', - lastWeek: '[წინა] dddd LT-ზე', - sameElse: 'L' + function(e) { + return e.getUTCHours(); + } + ), + sv = av, + cv = av.range, + uv = vm( + function(e) { + e.setUTCSeconds(0, 0); }, - relativeTime: { - future: function(e) { - return /(წამი|წუთი|საათი|წელი)/.test(e) - ? e.replace(/ი$/, 'ში') - : e + 'ში'; - }, - past: function(e) { - return /(წამი|წუთი|საათი|დღე|თვე)/.test(e) - ? e.replace(/(ი|ე)$/, 'ის წინ') - : /წელი/.test(e) - ? e.replace(/წელი$/, 'წლის წინ') - : void 0; - }, - s: 'რამდენიმე წამი', - ss: '%d წამი', - m: 'წუთი', - mm: '%d წუთი', - h: 'საათი', - hh: '%d საათი', - d: 'დღე', - dd: '%d დღე', - M: 'თვე', - MM: '%d თვე', - y: 'წელი', - yy: '%d წელი' + function(e, t) { + e.setTime(+e + t * Om); }, - dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/, - ordinal: function(e) { - return 0 === e - ? e - : 1 === e - ? e + '-ლი' - : e < 20 || (e <= 100 && e % 20 == 0) || e % 100 == 0 - ? 'მე-' + e - : e + '-ე'; + function(e, t) { + return (t - e) / Om; }, - week: { dow: 1, doy: 7 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = { - 0: '-ші', - 1: '-ші', - 2: '-ші', - 3: '-ші', - 4: '-ші', - 5: '-ші', - 6: '-шы', - 7: '-ші', - 8: '-ші', - 9: '-шы', - 10: '-шы', - 20: '-шы', - 30: '-шы', - 40: '-шы', - 50: '-ші', - 60: '-шы', - 70: '-ші', - 80: '-ші', - 90: '-шы', - 100: '-ші' + function(e) { + return e.getUTCMinutes(); + } + ), + lv = uv, + fv = uv.range, + dv = function() { + return Sg.apply( + tv(Mb, ov, ib, _b, sv, lv, Zm, nb, Pb).domain([ + Date.UTC(2e3, 0, 1), + Date.UTC(2e3, 0, 2) + ]), + arguments + ); }; - e.defineLocale('kk', { - months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split( - '_' - ), - monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split( - '_' - ), - weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split( - '_' - ), - weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'), - weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Бүгін сағат] LT', - nextDay: '[Ертең сағат] LT', - nextWeek: 'dddd [сағат] LT', - lastDay: '[Кеше сағат] LT', - lastWeek: '[Өткен аптаның] dddd [сағат] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s ішінде', - past: '%s бұрын', - s: 'бірнеше секунд', - ss: '%d секунд', - m: 'бір минут', - mm: '%d минут', - h: 'бір сағат', - hh: '%d сағат', - d: 'бір күн', - dd: '%d күн', - M: 'бір ай', - MM: '%d ай', - y: 'бір жыл', - yy: '%d жыл' - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/, - ordinal: function(e) { - return e + (t[e] || t[e % 10] || t[e >= 100 ? 100 : null]); - }, - week: { dow: 1, doy: 7 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = { - 1: '១', - 2: '២', - 3: '៣', - 4: '៤', - 5: '៥', - 6: '៦', - 7: '៧', - 8: '៨', - 9: '៩', - 0: '០' - }, - n = { - '១': '1', - '២': '2', - '៣': '3', - '៤': '4', - '៥': '5', - '៦': '6', - '៧': '7', - '៨': '8', - '៩': '9', - '០': '0' - }; - e.defineLocale('km', { - months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split( - '_' - ), - monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split( - '_' - ), - weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), - weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'), - weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - meridiemParse: /ព្រឹក|ល្ងាច/, - isPM: function(e) { - return 'ល្ងាច' === e; - }, - meridiem: function(e, t, n) { - return e < 12 ? 'ព្រឹក' : 'ល្ងាច'; - }, - calendar: { - sameDay: '[ថ្ងៃនេះ ម៉ោង] LT', - nextDay: '[ស្អែក ម៉ោង] LT', - nextWeek: 'dddd [ម៉ោង] LT', - lastDay: '[ម្សិលមិញ ម៉ោង] LT', - lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%sទៀត', - past: '%sមុន', - s: 'ប៉ុន្មានវិនាទី', - ss: '%d វិនាទី', - m: 'មួយនាទី', - mm: '%d នាទី', - h: 'មួយម៉ោង', - hh: '%d ម៉ោង', - d: 'មួយថ្ងៃ', - dd: '%d ថ្ងៃ', - M: 'មួយខែ', - MM: '%d ខែ', - y: 'មួយឆ្នាំ', - yy: '%d ឆ្នាំ' - }, - dayOfMonthOrdinalParse: /ទី\d{1,2}/, - ordinal: 'ទី%d', - preparse: function(e) { - return e.replace(/[១២៣៤៥៦៧៨៩០]/g, function(e) { - return n[e]; - }); - }, - postformat: function(e) { - return e.replace(/\d/g, function(e) { - return t[e]; - }); - }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = { - 1: '೧', - 2: '೨', - 3: '೩', - 4: '೪', - 5: '೫', - 6: '೬', - 7: '೭', - 8: '೮', - 9: '೯', - 0: '೦' - }, - n = { - '೧': '1', - '೨': '2', - '೩': '3', - '೪': '4', - '೫': '5', - '೬': '6', - '೭': '7', - '೮': '8', - '೯': '9', - '೦': '0' - }; - e.defineLocale('kn', { - months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split( - '_' - ), - monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split( - '_' - ), - weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'), - weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'), - longDateFormat: { - LT: 'A h:mm', - LTS: 'A h:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm', - LLLL: 'dddd, D MMMM YYYY, A h:mm' - }, - calendar: { - sameDay: '[ಇಂದು] LT', - nextDay: '[ನಾಳೆ] LT', - nextWeek: 'dddd, LT', - lastDay: '[ನಿನ್ನೆ] LT', - lastWeek: '[ಕೊನೆಯ] dddd, LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s ನಂತರ', - past: '%s ಹಿಂದೆ', - s: 'ಕೆಲವು ಕ್ಷಣಗಳು', - ss: '%d ಸೆಕೆಂಡುಗಳು', - m: 'ಒಂದು ನಿಮಿಷ', - mm: '%d ನಿಮಿಷ', - h: 'ಒಂದು ಗಂಟೆ', - hh: '%d ಗಂಟೆ', - d: 'ಒಂದು ದಿನ', - dd: '%d ದಿನ', - M: 'ಒಂದು ತಿಂಗಳು', - MM: '%d ತಿಂಗಳು', - y: 'ಒಂದು ವರ್ಷ', - yy: '%d ವರ್ಷ' - }, - preparse: function(e) { - return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function(e) { - return n[e]; - }); - }, - postformat: function(e) { - return e.replace(/\d/g, function(e) { - return t[e]; - }); - }, - meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/, - meridiemHour: function(e, t) { + function pv() { + var e, + t, + n, + r, + o, + i = 0, + a = 1, + s = Rg, + c = !1; + function u(t) { + return isNaN((t = +t)) + ? o + : s( + 0 === n + ? 0.5 + : ((t = (r(t) - e) * n), c ? Math.max(0, Math.min(1, t)) : t) + ); + } + return ( + (u.domain = function(o) { + return arguments.length + ? ((e = r((i = +o[0]))), + (t = r((a = +o[1]))), + (n = e === t ? 0 : 1 / (t - e)), + u) + : [i, a]; + }), + (u.clamp = function(e) { + return arguments.length ? ((c = !!e), u) : c; + }), + (u.interpolator = function(e) { + return arguments.length ? ((s = e), u) : s; + }), + (u.unknown = function(e) { + return arguments.length ? ((o = e), u) : o; + }), + function(o) { return ( - 12 === e && (e = 0), - 'ರಾತ್ರಿ' === t - ? e < 4 - ? e - : e + 12 - : 'ಬೆಳಿಗ್ಗೆ' === t - ? e - : 'ಮಧ್ಯಾಹ್ನ' === t - ? e >= 10 - ? e - : e + 12 - : 'ಸಂಜೆ' === t - ? e + 12 - : void 0 + (r = o), + (e = o(i)), + (t = o(a)), + (n = e === t ? 0 : 1 / (t - e)), + u ); - }, - meridiem: function(e, t, n) { - return e < 4 - ? 'ರಾತ್ರಿ' - : e < 10 - ? 'ಬೆಳಿಗ್ಗೆ' - : e < 17 - ? 'ಮಧ್ಯಾಹ್ನ' - : e < 20 - ? 'ಸಂಜೆ' - : 'ರಾತ್ರಿ'; - }, - dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/, - ordinal: function(e) { - return e + 'ನೇ'; - }, - week: { dow: 0, doy: 6 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('ko', { - months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split( - '_' - ), - monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split( - '_' - ), - weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split( - '_' - ), - weekdaysShort: '일_월_화_수_목_금_토'.split('_'), - weekdaysMin: '일_월_화_수_목_금_토'.split('_'), - longDateFormat: { - LT: 'A h:mm', - LTS: 'A h:mm:ss', - L: 'YYYY.MM.DD.', - LL: 'YYYY년 MMMM D일', - LLL: 'YYYY년 MMMM D일 A h:mm', - LLLL: 'YYYY년 MMMM D일 dddd A h:mm', - l: 'YYYY.MM.DD.', - ll: 'YYYY년 MMMM D일', - lll: 'YYYY년 MMMM D일 A h:mm', - llll: 'YYYY년 MMMM D일 dddd A h:mm' - }, - calendar: { - sameDay: '오늘 LT', - nextDay: '내일 LT', - nextWeek: 'dddd LT', - lastDay: '어제 LT', - lastWeek: '지난주 dddd LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s 후', - past: '%s 전', - s: '몇 초', - ss: '%d초', - m: '1분', - mm: '%d분', - h: '한 시간', - hh: '%d시간', - d: '하루', - dd: '%d일', - M: '한 달', - MM: '%d달', - y: '일 년', - yy: '%d년' - }, - dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/, - ordinal: function(e, t) { - switch (t) { - case 'd': - case 'D': - case 'DDD': - return e + '일'; - case 'M': - return e + '월'; - case 'w': - case 'W': - return e + '주'; - default: - return e; - } - }, - meridiemParse: /오전|오후/, - isPM: function(e) { - return '오후' === e; - }, - meridiem: function(e, t, n) { - return e < 12 ? '오전' : '오후'; - } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = { - 1: '١', - 2: '٢', - 3: '٣', - 4: '٤', - 5: '٥', - 6: '٦', - 7: '٧', - 8: '٨', - 9: '٩', - 0: '٠' - }, - n = { - '١': '1', - '٢': '2', - '٣': '3', - '٤': '4', - '٥': '5', - '٦': '6', - '٧': '7', - '٨': '8', - '٩': '9', - '٠': '0' - }, - r = [ - 'کانونی دووەم', - 'شوبات', - 'ئازار', - 'نیسان', - 'ئایار', - 'حوزەیران', - 'تەمموز', - 'ئاب', - 'ئەیلوول', - 'تشرینی یەكەم', - 'تشرینی دووەم', - 'كانونی یەکەم' - ]; - e.defineLocale('ku', { - months: r, - monthsShort: r, - weekdays: 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split( - '_' - ), - weekdaysShort: 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split( - '_' - ), - weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - meridiemParse: /ئێواره‌|به‌یانی/, - isPM: function(e) { - return /ئێواره‌/.test(e); - }, - meridiem: function(e, t, n) { - return e < 12 ? 'به‌یانی' : 'ئێواره‌'; - }, - calendar: { - sameDay: '[ئه‌مرۆ كاتژمێر] LT', - nextDay: '[به‌یانی كاتژمێر] LT', - nextWeek: 'dddd [كاتژمێر] LT', - lastDay: '[دوێنێ كاتژمێر] LT', - lastWeek: 'dddd [كاتژمێر] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'له‌ %s', - past: '%s', - s: 'چه‌ند چركه‌یه‌ك', - ss: 'چركه‌ %d', - m: 'یه‌ك خوله‌ك', - mm: '%d خوله‌ك', - h: 'یه‌ك كاتژمێر', - hh: '%d كاتژمێر', - d: 'یه‌ك ڕۆژ', - dd: '%d ڕۆژ', - M: 'یه‌ك مانگ', - MM: '%d مانگ', - y: 'یه‌ك ساڵ', - yy: '%d ساڵ' - }, - preparse: function(e) { - return e - .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function(e) { - return n[e]; - }) - .replace(/،/g, ','); - }, - postformat: function(e) { - return e - .replace(/\d/g, function(e) { - return t[e]; - }) - .replace(/,/g, '،'); - }, - week: { dow: 6, doy: 12 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = { - 0: '-чү', - 1: '-чи', - 2: '-чи', - 3: '-чү', - 4: '-чү', - 5: '-чи', - 6: '-чы', - 7: '-чи', - 8: '-чи', - 9: '-чу', - 10: '-чу', - 20: '-чы', - 30: '-чу', - 40: '-чы', - 50: '-чү', - 60: '-чы', - 70: '-чи', - 80: '-чи', - 90: '-чу', - 100: '-чү' - }; - e.defineLocale('ky', { - months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split( - '_' - ), - monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split( - '_' - ), - weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split( - '_' - ), - weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'), - weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Бүгүн саат] LT', - nextDay: '[Эртең саат] LT', - nextWeek: 'dddd [саат] LT', - lastDay: '[Кечээ саат] LT', - lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s ичинде', - past: '%s мурун', - s: 'бирнече секунд', - ss: '%d секунд', - m: 'бир мүнөт', - mm: '%d мүнөт', - h: 'бир саат', - hh: '%d саат', - d: 'бир күн', - dd: '%d күн', - M: 'бир ай', - MM: '%d ай', - y: 'бир жыл', - yy: '%d жыл' - }, - dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/, - ordinal: function(e) { - return e + (t[e] || t[e % 10] || t[e >= 100 ? 100 : null]); - }, - week: { dow: 1, doy: 7 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - function t(e, t, n, r) { - var o = { - m: ['eng Minutt', 'enger Minutt'], - h: ['eng Stonn', 'enger Stonn'], - d: ['een Dag', 'engem Dag'], - M: ['ee Mount', 'engem Mount'], - y: ['ee Joer', 'engem Joer'] - }; - return t ? o[n][0] : o[n][1]; - } - function n(e) { - if (((e = parseInt(e, 10)), isNaN(e))) return !1; - if (e < 0) return !0; - if (e < 10) return 4 <= e && e <= 7; - if (e < 100) { - var t = e % 10; - return n(0 === t ? e / 10 : t); - } - if (e < 1e4) { - for (; e >= 10; ) e /= 10; - return n(e); - } - return n((e /= 1e3)); - } - e.defineLocale('lb', { - months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split( - '_' - ), - monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split( - '_' - ), - weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'), - weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'H:mm [Auer]', - LTS: 'H:mm:ss [Auer]', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm [Auer]', - LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]' - }, - calendar: { - sameDay: '[Haut um] LT', - sameElse: 'L', - nextDay: '[Muer um] LT', - nextWeek: 'dddd [um] LT', - lastDay: '[Gëschter um] LT', - lastWeek: function() { - switch (this.day()) { - case 2: - case 4: - return '[Leschten] dddd [um] LT'; - default: - return '[Leschte] dddd [um] LT'; - } - } - }, - relativeTime: { - future: function(e) { - return n(e.substr(0, e.indexOf(' '))) ? 'a ' + e : 'an ' + e; - }, - past: function(e) { - return n(e.substr(0, e.indexOf(' '))) - ? 'viru ' + e - : 'virun ' + e; - }, - s: 'e puer Sekonnen', - ss: '%d Sekonnen', - m: t, - mm: '%d Minutten', - h: t, - hh: '%d Stonnen', - d: t, - dd: '%d Deeg', - M: t, - MM: '%d Méint', - y: t, - yy: '%d Joer' - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('lo', { - months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split( - '_' - ), - monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split( - '_' - ), - weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), - weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), - weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'ວັນdddd D MMMM YYYY HH:mm' - }, - meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/, - isPM: function(e) { - return 'ຕອນແລງ' === e; - }, - meridiem: function(e, t, n) { - return e < 12 ? 'ຕອນເຊົ້າ' : 'ຕອນແລງ'; - }, - calendar: { - sameDay: '[ມື້ນີ້ເວລາ] LT', - nextDay: '[ມື້ອື່ນເວລາ] LT', - nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT', - lastDay: '[ມື້ວານນີ້ເວລາ] LT', - lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'ອີກ %s', - past: '%sຜ່ານມາ', - s: 'ບໍ່ເທົ່າໃດວິນາທີ', - ss: '%d ວິນາທີ', - m: '1 ນາທີ', - mm: '%d ນາທີ', - h: '1 ຊົ່ວໂມງ', - hh: '%d ຊົ່ວໂມງ', - d: '1 ມື້', - dd: '%d ມື້', - M: '1 ເດືອນ', - MM: '%d ເດືອນ', - y: '1 ປີ', - yy: '%d ປີ' - }, - dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/, - ordinal: function(e) { - return 'ທີ່' + e; } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = { - ss: 'sekundė_sekundžių_sekundes', - m: 'minutė_minutės_minutę', - mm: 'minutės_minučių_minutes', - h: 'valanda_valandos_valandą', - hh: 'valandos_valandų_valandas', - d: 'diena_dienos_dieną', - dd: 'dienos_dienų_dienas', - M: 'mėnuo_mėnesio_mėnesį', - MM: 'mėnesiai_mėnesių_mėnesius', - y: 'metai_metų_metus', - yy: 'metai_metų_metus' - }; - function n(e, t, n, r) { - return t ? o(n)[0] : r ? o(n)[1] : o(n)[2]; - } - function r(e) { - return e % 10 == 0 || (e > 10 && e < 20); - } - function o(e) { - return t[e].split('_'); - } - function i(e, t, i, a) { - var s = e + ' '; - return 1 === e - ? s + n(0, t, i[0], a) - : t - ? s + (r(e) ? o(i)[1] : o(i)[0]) - : a - ? s + o(i)[1] - : s + (r(e) ? o(i)[1] : o(i)[2]); - } - e.defineLocale('lt', { - months: { - format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split( - '_' - ), - standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split( - '_' - ), - isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/ - }, - monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split( - '_' - ), - weekdays: { - format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split( - '_' - ), - standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split( - '_' - ), - isFormat: /dddd HH:mm/ - }, - weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'), - weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'YYYY [m.] MMMM D [d.]', - LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]', - LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]', - l: 'YYYY-MM-DD', - ll: 'YYYY [m.] MMMM D [d.]', - lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]', - llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]' - }, - calendar: { - sameDay: '[Šiandien] LT', - nextDay: '[Rytoj] LT', - nextWeek: 'dddd LT', - lastDay: '[Vakar] LT', - lastWeek: '[Praėjusį] dddd LT', - sameElse: 'L' - }, - relativeTime: { - future: 'po %s', - past: 'prieš %s', - s: function(e, t, n, r) { - return t - ? 'kelios sekundės' - : r - ? 'kelių sekundžių' - : 'kelias sekundes'; - }, - ss: i, - m: n, - mm: i, - h: n, - hh: i, - d: n, - dd: i, - M: n, - MM: i, - y: n, - yy: i - }, - dayOfMonthOrdinalParse: /\d{1,2}-oji/, - ordinal: function(e) { - return e + '-oji'; - }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = { - ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'), - m: 'minūtes_minūtēm_minūte_minūtes'.split('_'), - mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'), - h: 'stundas_stundām_stunda_stundas'.split('_'), - hh: 'stundas_stundām_stunda_stundas'.split('_'), - d: 'dienas_dienām_diena_dienas'.split('_'), - dd: 'dienas_dienām_diena_dienas'.split('_'), - M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), - MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), - y: 'gada_gadiem_gads_gadi'.split('_'), - yy: 'gada_gadiem_gads_gadi'.split('_') - }; - function n(e, t, n) { - return n - ? t % 10 == 1 && t % 100 != 11 - ? e[2] - : e[3] - : t % 10 == 1 && t % 100 != 11 - ? e[0] - : e[1]; - } - function r(e, r, o) { - return e + ' ' + n(t[o], e, r); + ); + } + function hv(e, t) { + return t + .domain(e.domain()) + .interpolator(e.interpolator()) + .clamp(e.clamp()) + .unknown(e.unknown()); + } + function gv() { + var e = Ug(pv()(Rg)); + return ( + (e.copy = function() { + return hv(e, gv()); + }), + Og.apply(e, arguments) + ); + } + function mv() { + var e = nm(pv()).domain([1, 10]); + return ( + (e.copy = function() { + return hv(e, mv()).base(e.base()); + }), + Og.apply(e, arguments) + ); + } + function bv() { + var e = am(pv()); + return ( + (e.copy = function() { + return hv(e, bv()).constant(e.constant()); + }), + Og.apply(e, arguments) + ); + } + function yv() { + var e = fm(pv()); + return ( + (e.copy = function() { + return hv(e, yv()).exponent(e.exponent()); + }), + Og.apply(e, arguments) + ); + } + function vv() { + return yv.apply(null, arguments).exponent(0.5); + } + function _v() { + var e = [], + t = Rg; + function n(n) { + if (!isNaN((n = +n))) return t((c(e, n) - 1) / (e.length - 1)); } - function o(e, r, o) { - return n(t[o], e, r); + return ( + (n.domain = function(t) { + if (!arguments.length) return e.slice(); + e = []; + for (var o, i = 0, a = t.length; i < a; ++i) + null == (o = t[i]) || isNaN((o = +o)) || e.push(o); + return e.sort(r), n; + }), + (n.interpolator = function(e) { + return arguments.length ? ((t = e), n) : t; + }), + (n.copy = function() { + return _v(t).domain(e); + }), + Og.apply(n, arguments) + ); + } + function wv() { + var e, + t, + n, + r, + o, + i, + a, + s = 0, + c = 0.5, + u = 1, + l = Rg, + f = !1; + function d(e) { + return isNaN((e = +e)) + ? a + : ((e = 0.5 + ((e = +i(e)) - t) * (e < t ? r : o)), + l(f ? Math.max(0, Math.min(1, e)) : e)); } - e.defineLocale('lv', { - months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split( - '_' - ), - monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split( - '_' - ), - weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split( - '_' - ), - weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'), - weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY.', - LL: 'YYYY. [gada] D. MMMM', - LLL: 'YYYY. [gada] D. MMMM, HH:mm', - LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm' - }, - calendar: { - sameDay: '[Šodien pulksten] LT', - nextDay: '[Rīt pulksten] LT', - nextWeek: 'dddd [pulksten] LT', - lastDay: '[Vakar pulksten] LT', - lastWeek: '[Pagājušā] dddd [pulksten] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'pēc %s', - past: 'pirms %s', - s: function(e, t) { - return t ? 'dažas sekundes' : 'dažām sekundēm'; - }, - ss: r, - m: o, - mm: r, - h: o, - hh: r, - d: o, - dd: r, - M: o, - MM: r, - y: o, - yy: r - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = { - words: { - ss: ['sekund', 'sekunda', 'sekundi'], - m: ['jedan minut', 'jednog minuta'], - mm: ['minut', 'minuta', 'minuta'], - h: ['jedan sat', 'jednog sata'], - hh: ['sat', 'sata', 'sati'], - dd: ['dan', 'dana', 'dana'], - MM: ['mjesec', 'mjeseca', 'mjeseci'], - yy: ['godina', 'godine', 'godina'] - }, - correctGrammaticalCase: function(e, t) { - return 1 === e ? t[0] : e >= 2 && e <= 4 ? t[1] : t[2]; - }, - translate: function(e, n, r) { - var o = t.words[r]; - return 1 === r.length - ? n - ? o[0] - : o[1] - : e + ' ' + t.correctGrammaticalCase(e, o); + return ( + (d.domain = function(a) { + return arguments.length + ? ((e = i((s = +a[0]))), + (t = i((c = +a[1]))), + (n = i((u = +a[2]))), + (r = e === t ? 0 : 0.5 / (t - e)), + (o = t === n ? 0 : 0.5 / (n - t)), + d) + : [s, c, u]; + }), + (d.clamp = function(e) { + return arguments.length ? ((f = !!e), d) : f; + }), + (d.interpolator = function(e) { + return arguments.length ? ((l = e), d) : l; + }), + (d.unknown = function(e) { + return arguments.length ? ((a = e), d) : a; + }), + function(a) { + return ( + (i = a), + (e = a(s)), + (t = a(c)), + (n = a(u)), + (r = e === t ? 0 : 0.5 / (t - e)), + (o = t === n ? 0 : 0.5 / (n - t)), + d + ); } - }; - e.defineLocale('me', { - months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split( - '_' - ), - monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( - '_' - ), - weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), - weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm' - }, - calendar: { - sameDay: '[danas u] LT', - nextDay: '[sjutra u] LT', - nextWeek: function() { - switch (this.day()) { - case 0: - return '[u] [nedjelju] [u] LT'; - case 3: - return '[u] [srijedu] [u] LT'; - case 6: - return '[u] [subotu] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[u] dddd [u] LT'; - } - }, - lastDay: '[juče u] LT', - lastWeek: function() { - return [ - '[prošle] [nedjelje] [u] LT', - '[prošlog] [ponedjeljka] [u] LT', - '[prošlog] [utorka] [u] LT', - '[prošle] [srijede] [u] LT', - '[prošlog] [četvrtka] [u] LT', - '[prošlog] [petka] [u] LT', - '[prošle] [subote] [u] LT' - ][this.day()]; - }, - sameElse: 'L' - }, - relativeTime: { - future: 'za %s', - past: 'prije %s', - s: 'nekoliko sekundi', - ss: t.translate, - m: t.translate, - mm: t.translate, - h: t.translate, - hh: t.translate, - d: 'dan', - dd: t.translate, - M: 'mjesec', - MM: t.translate, - y: 'godinu', - yy: t.translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 7 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('mi', { - months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split( - '_' - ), - monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split( - '_' - ), - monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, - monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, - monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, - monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i, - weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split( - '_' - ), - weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), - weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [i] HH:mm', - LLLL: 'dddd, D MMMM YYYY [i] HH:mm' - }, - calendar: { - sameDay: '[i teie mahana, i] LT', - nextDay: '[apopo i] LT', - nextWeek: 'dddd [i] LT', - lastDay: '[inanahi i] LT', - lastWeek: 'dddd [whakamutunga i] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'i roto i %s', - past: '%s i mua', - s: 'te hēkona ruarua', - ss: '%d hēkona', - m: 'he meneti', - mm: '%d meneti', - h: 'te haora', - hh: '%d haora', - d: 'he ra', - dd: '%d ra', - M: 'he marama', - MM: '%d marama', - y: 'he tau', - yy: '%d tau' - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('mk', { - months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split( - '_' - ), - monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split( - '_' - ), - weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split( - '_' - ), - weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'), - weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'D.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY H:mm', - LLLL: 'dddd, D MMMM YYYY H:mm' - }, - calendar: { - sameDay: '[Денес во] LT', - nextDay: '[Утре во] LT', - nextWeek: '[Во] dddd [во] LT', - lastDay: '[Вчера во] LT', - lastWeek: function() { - switch (this.day()) { - case 0: - case 3: - case 6: - return '[Изминатата] dddd [во] LT'; - case 1: - case 2: - case 4: - case 5: - return '[Изминатиот] dddd [во] LT'; - } - }, - sameElse: 'L' - }, - relativeTime: { - future: 'после %s', - past: 'пред %s', - s: 'неколку секунди', - ss: '%d секунди', - m: 'минута', - mm: '%d минути', - h: 'час', - hh: '%d часа', - d: 'ден', - dd: '%d дена', - M: 'месец', - MM: '%d месеци', - y: 'година', - yy: '%d години' - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, - ordinal: function(e) { - var t = e % 10, - n = e % 100; - return 0 === e - ? e + '-ев' - : 0 === n - ? e + '-ен' - : n > 10 && n < 20 - ? e + '-ти' - : 1 === t - ? e + '-ви' - : 2 === t - ? e + '-ри' - : 7 === t || 8 === t - ? e + '-ми' - : e + '-ти'; - }, - week: { dow: 1, doy: 7 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('ml', { - months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split( - '_' - ), - monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split( - '_' - ), - weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'), - weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'), - longDateFormat: { - LT: 'A h:mm -നു', - LTS: 'A h:mm:ss -നു', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm -നു', - LLLL: 'dddd, D MMMM YYYY, A h:mm -നു' - }, - calendar: { - sameDay: '[ഇന്ന്] LT', - nextDay: '[നാളെ] LT', - nextWeek: 'dddd, LT', - lastDay: '[ഇന്നലെ] LT', - lastWeek: '[കഴിഞ്ഞ] dddd, LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s കഴിഞ്ഞ്', - past: '%s മുൻപ്', - s: 'അൽപ നിമിഷങ്ങൾ', - ss: '%d സെക്കൻഡ്', - m: 'ഒരു മിനിറ്റ്', - mm: '%d മിനിറ്റ്', - h: 'ഒരു മണിക്കൂർ', - hh: '%d മണിക്കൂർ', - d: 'ഒരു ദിവസം', - dd: '%d ദിവസം', - M: 'ഒരു മാസം', - MM: '%d മാസം', - y: 'ഒരു വർഷം', - yy: '%d വർഷം' - }, - meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i, - meridiemHour: function(e, t) { - return ( - 12 === e && (e = 0), - ('രാത്രി' === t && e >= 4) || - 'ഉച്ച കഴിഞ്ഞ്' === t || - 'വൈകുന്നേരം' === t - ? e + 12 - : e - ); - }, - meridiem: function(e, t, n) { - return e < 4 - ? 'രാത്രി' - : e < 12 - ? 'രാവിലെ' - : e < 17 - ? 'ഉച്ച കഴിഞ്ഞ്' - : e < 20 - ? 'വൈകുന്നേരം' - : 'രാത്രി'; + ); + } + function xv() { + var e = Ug(wv()(Rg)); + return ( + (e.copy = function() { + return hv(e, xv()); + }), + Og.apply(e, arguments) + ); + } + function Mv() { + var e = nm(wv()).domain([0.1, 1, 10]); + return ( + (e.copy = function() { + return hv(e, Mv()).base(e.base()); + }), + Og.apply(e, arguments) + ); + } + function kv() { + var e = am(wv()); + return ( + (e.copy = function() { + return hv(e, kv()).constant(e.constant()); + }), + Og.apply(e, arguments) + ); + } + function Sv() { + var e = fm(wv()); + return ( + (e.copy = function() { + return hv(e, Sv()).exponent(e.exponent()); + }), + Og.apply(e, arguments) + ); + } + function Ov() { + return Sv.apply(null, arguments).exponent(0.5); + } + var Ev = function(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; + }, + Av = Ev('1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf'), + Tv = Ev('7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666'), + Cv = Ev('1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666'), + Lv = Ev( + 'a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928' + ), + Pv = Ev('fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2'), + Dv = Ev('b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc'), + jv = Ev('e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999'), + zv = Ev('66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3'), + Nv = Ev( + '8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f' + ), + Rv = Ev('4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab'), + Iv = function(e) { + return _n(e[e.length - 1]); + }, + Fv = new Array(3) + .concat( + 'd8b365f5f5f55ab4ac', + 'a6611adfc27d80cdc1018571', + 'a6611adfc27df5f5f580cdc1018571', + '8c510ad8b365f6e8c3c7eae55ab4ac01665e', + '8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e', + '8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e', + '8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e', + '5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30', + '5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30' + ) + .map(Ev), + qv = Iv(Fv), + Bv = new Array(3) + .concat( + 'af8dc3f7f7f77fbf7b', + '7b3294c2a5cfa6dba0008837', + '7b3294c2a5cff7f7f7a6dba0008837', + '762a83af8dc3e7d4e8d9f0d37fbf7b1b7837', + '762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837', + '762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837', + '762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837', + '40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b', + '40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b' + ) + .map(Ev), + Hv = Iv(Bv), + Yv = new Array(3) + .concat( + 'e9a3c9f7f7f7a1d76a', + 'd01c8bf1b6dab8e1864dac26', + 'd01c8bf1b6daf7f7f7b8e1864dac26', + 'c51b7de9a3c9fde0efe6f5d0a1d76a4d9221', + 'c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221', + 'c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221', + 'c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221', + '8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419', + '8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419' + ) + .map(Ev), + Wv = Iv(Yv), + Vv = new Array(3) + .concat( + '998ec3f7f7f7f1a340', + '5e3c99b2abd2fdb863e66101', + '5e3c99b2abd2f7f7f7fdb863e66101', + '542788998ec3d8daebfee0b6f1a340b35806', + '542788998ec3d8daebf7f7f7fee0b6f1a340b35806', + '5427888073acb2abd2d8daebfee0b6fdb863e08214b35806', + '5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806', + '2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08', + '2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08' + ) + .map(Ev), + Uv = Iv(Vv), + Xv = new Array(3) + .concat( + 'ef8a62f7f7f767a9cf', + 'ca0020f4a58292c5de0571b0', + 'ca0020f4a582f7f7f792c5de0571b0', + 'b2182bef8a62fddbc7d1e5f067a9cf2166ac', + 'b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac', + 'b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac', + 'b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac', + '67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061', + '67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061' + ) + .map(Ev), + Gv = Iv(Xv), + Kv = new Array(3) + .concat( + 'ef8a62ffffff999999', + 'ca0020f4a582bababa404040', + 'ca0020f4a582ffffffbababa404040', + 'b2182bef8a62fddbc7e0e0e09999994d4d4d', + 'b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d', + 'b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d', + 'b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d', + '67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a', + '67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a' + ) + .map(Ev), + $v = Iv(Kv), + Qv = new Array(3) + .concat( + 'fc8d59ffffbf91bfdb', + 'd7191cfdae61abd9e92c7bb6', + 'd7191cfdae61ffffbfabd9e92c7bb6', + 'd73027fc8d59fee090e0f3f891bfdb4575b4', + 'd73027fc8d59fee090ffffbfe0f3f891bfdb4575b4', + 'd73027f46d43fdae61fee090e0f3f8abd9e974add14575b4', + 'd73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4', + 'a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695', + 'a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695' + ) + .map(Ev), + Jv = Iv(Qv), + Zv = new Array(3) + .concat( + 'fc8d59ffffbf91cf60', + 'd7191cfdae61a6d96a1a9641', + 'd7191cfdae61ffffbfa6d96a1a9641', + 'd73027fc8d59fee08bd9ef8b91cf601a9850', + 'd73027fc8d59fee08bffffbfd9ef8b91cf601a9850', + 'd73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850', + 'd73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850', + 'a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837', + 'a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837' + ) + .map(Ev), + e_ = Iv(Zv), + t_ = new Array(3) + .concat( + 'fc8d59ffffbf99d594', + 'd7191cfdae61abdda42b83ba', + 'd7191cfdae61ffffbfabdda42b83ba', + 'd53e4ffc8d59fee08be6f59899d5943288bd', + 'd53e4ffc8d59fee08bffffbfe6f59899d5943288bd', + 'd53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd', + 'd53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd', + '9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2', + '9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2' + ) + .map(Ev), + n_ = Iv(t_), + r_ = new Array(3) + .concat( + 'e5f5f999d8c92ca25f', + 'edf8fbb2e2e266c2a4238b45', + 'edf8fbb2e2e266c2a42ca25f006d2c', + 'edf8fbccece699d8c966c2a42ca25f006d2c', + 'edf8fbccece699d8c966c2a441ae76238b45005824', + 'f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824', + 'f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b' + ) + .map(Ev), + o_ = Iv(r_), + i_ = new Array(3) + .concat( + 'e0ecf49ebcda8856a7', + 'edf8fbb3cde38c96c688419d', + 'edf8fbb3cde38c96c68856a7810f7c', + 'edf8fbbfd3e69ebcda8c96c68856a7810f7c', + 'edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b', + 'f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b', + 'f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b' + ) + .map(Ev), + a_ = Iv(i_), + s_ = new Array(3) + .concat( + 'e0f3dba8ddb543a2ca', + 'f0f9e8bae4bc7bccc42b8cbe', + 'f0f9e8bae4bc7bccc443a2ca0868ac', + 'f0f9e8ccebc5a8ddb57bccc443a2ca0868ac', + 'f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e', + 'f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e', + 'f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081' + ) + .map(Ev), + c_ = Iv(s_), + u_ = new Array(3) + .concat( + 'fee8c8fdbb84e34a33', + 'fef0d9fdcc8afc8d59d7301f', + 'fef0d9fdcc8afc8d59e34a33b30000', + 'fef0d9fdd49efdbb84fc8d59e34a33b30000', + 'fef0d9fdd49efdbb84fc8d59ef6548d7301f990000', + 'fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000', + 'fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000' + ) + .map(Ev), + l_ = Iv(u_), + f_ = new Array(3) + .concat( + 'ece2f0a6bddb1c9099', + 'f6eff7bdc9e167a9cf02818a', + 'f6eff7bdc9e167a9cf1c9099016c59', + 'f6eff7d0d1e6a6bddb67a9cf1c9099016c59', + 'f6eff7d0d1e6a6bddb67a9cf3690c002818a016450', + 'fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450', + 'fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636' + ) + .map(Ev), + d_ = Iv(f_), + p_ = new Array(3) + .concat( + 'ece7f2a6bddb2b8cbe', + 'f1eef6bdc9e174a9cf0570b0', + 'f1eef6bdc9e174a9cf2b8cbe045a8d', + 'f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d', + 'f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b', + 'fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b', + 'fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858' + ) + .map(Ev), + h_ = Iv(p_), + g_ = new Array(3) + .concat( + 'e7e1efc994c7dd1c77', + 'f1eef6d7b5d8df65b0ce1256', + 'f1eef6d7b5d8df65b0dd1c77980043', + 'f1eef6d4b9dac994c7df65b0dd1c77980043', + 'f1eef6d4b9dac994c7df65b0e7298ace125691003f', + 'f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f', + 'f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f' + ) + .map(Ev), + m_ = Iv(g_), + b_ = new Array(3) + .concat( + 'fde0ddfa9fb5c51b8a', + 'feebe2fbb4b9f768a1ae017e', + 'feebe2fbb4b9f768a1c51b8a7a0177', + 'feebe2fcc5c0fa9fb5f768a1c51b8a7a0177', + 'feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177', + 'fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177', + 'fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a' + ) + .map(Ev), + y_ = Iv(b_), + v_ = new Array(3) + .concat( + 'edf8b17fcdbb2c7fb8', + 'ffffcca1dab441b6c4225ea8', + 'ffffcca1dab441b6c42c7fb8253494', + 'ffffccc7e9b47fcdbb41b6c42c7fb8253494', + 'ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84', + 'ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84', + 'ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58' + ) + .map(Ev), + __ = Iv(v_), + w_ = new Array(3) + .concat( + 'f7fcb9addd8e31a354', + 'ffffccc2e69978c679238443', + 'ffffccc2e69978c67931a354006837', + 'ffffccd9f0a3addd8e78c67931a354006837', + 'ffffccd9f0a3addd8e78c67941ab5d238443005a32', + 'ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32', + 'ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529' + ) + .map(Ev), + x_ = Iv(w_), + M_ = new Array(3) + .concat( + 'fff7bcfec44fd95f0e', + 'ffffd4fed98efe9929cc4c02', + 'ffffd4fed98efe9929d95f0e993404', + 'ffffd4fee391fec44ffe9929d95f0e993404', + 'ffffd4fee391fec44ffe9929ec7014cc4c028c2d04', + 'ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04', + 'ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506' + ) + .map(Ev), + k_ = Iv(M_), + S_ = new Array(3) + .concat( + 'ffeda0feb24cf03b20', + 'ffffb2fecc5cfd8d3ce31a1c', + 'ffffb2fecc5cfd8d3cf03b20bd0026', + 'ffffb2fed976feb24cfd8d3cf03b20bd0026', + 'ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026', + 'ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026', + 'ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026' + ) + .map(Ev), + O_ = Iv(S_), + E_ = new Array(3) + .concat( + 'deebf79ecae13182bd', + 'eff3ffbdd7e76baed62171b5', + 'eff3ffbdd7e76baed63182bd08519c', + 'eff3ffc6dbef9ecae16baed63182bd08519c', + 'eff3ffc6dbef9ecae16baed64292c62171b5084594', + 'f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594', + 'f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b' + ) + .map(Ev), + A_ = Iv(E_), + T_ = new Array(3) + .concat( + 'e5f5e0a1d99b31a354', + 'edf8e9bae4b374c476238b45', + 'edf8e9bae4b374c47631a354006d2c', + 'edf8e9c7e9c0a1d99b74c47631a354006d2c', + 'edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32', + 'f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32', + 'f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b' + ) + .map(Ev), + C_ = Iv(T_), + L_ = new Array(3) + .concat( + 'f0f0f0bdbdbd636363', + 'f7f7f7cccccc969696525252', + 'f7f7f7cccccc969696636363252525', + 'f7f7f7d9d9d9bdbdbd969696636363252525', + 'f7f7f7d9d9d9bdbdbd969696737373525252252525', + 'fffffff0f0f0d9d9d9bdbdbd969696737373525252252525', + 'fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000' + ) + .map(Ev), + P_ = Iv(L_), + D_ = new Array(3) + .concat( + 'efedf5bcbddc756bb1', + 'f2f0f7cbc9e29e9ac86a51a3', + 'f2f0f7cbc9e29e9ac8756bb154278f', + 'f2f0f7dadaebbcbddc9e9ac8756bb154278f', + 'f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486', + 'fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486', + 'fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d' + ) + .map(Ev), + j_ = Iv(D_), + z_ = new Array(3) + .concat( + 'fee0d2fc9272de2d26', + 'fee5d9fcae91fb6a4acb181d', + 'fee5d9fcae91fb6a4ade2d26a50f15', + 'fee5d9fcbba1fc9272fb6a4ade2d26a50f15', + 'fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d', + 'fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d', + 'fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d' + ) + .map(Ev), + N_ = Iv(z_), + R_ = new Array(3) + .concat( + 'fee6cefdae6be6550d', + 'feeddefdbe85fd8d3cd94701', + 'feeddefdbe85fd8d3ce6550da63603', + 'feeddefdd0a2fdae6bfd8d3ce6550da63603', + 'feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04', + 'fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04', + 'fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704' + ) + .map(Ev), + I_ = Iv(R_), + F_ = 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)))) + ) + ) + ) + + ')' + ); + }, + q_ = sg(Xi(300, 0.5, 0), Xi(-240, 0.5, 1)), + B_ = sg(Xi(-100, 0.75, 0.35), Xi(80, 1.5, 0.8)), + H_ = sg(Xi(260, 0.75, 0.35), Xi(80, 1.5, 0.8)), + Y_ = Xi(), + W_ = function(e) { + (e < 0 || e > 1) && (e -= Math.floor(e)); + var t = Math.abs(e - 0.5); + return ( + (Y_.h = 360 * e - 100), + (Y_.s = 1.5 - 1.5 * t), + (Y_.l = 0.8 - 0.9 * t), + Y_ + '' + ); + }, + V_ = Zt(), + U_ = Math.PI / 3, + X_ = (2 * Math.PI) / 3, + G_ = function(e) { + var t; + return ( + (e = (0.5 - e) * Math.PI), + (V_.r = 255 * (t = Math.sin(e)) * t), + (V_.g = 255 * (t = Math.sin(e + U_)) * t), + (V_.b = 255 * (t = Math.sin(e + X_)) * t), + V_ + '' + ); + }, + K_ = 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)))) + ) + ) + ) + + ')' + ); + }; + function $_(e) { + var t = e.length; + return function(n) { + return e[Math.max(0, Math.min(t - 1, Math.floor(n * t)))]; + }; + } + var Q_ = $_( + Ev( + '44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725' + ) + ), + J_ = $_( + Ev( + '00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf' + ) + ), + Z_ = $_( + Ev( + '00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4' + ) + ), + ew = $_( + Ev( + '0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921' + ) + ), + tw = function(e) { + return At(ct(e).call(document.documentElement)); + }, + nw = 0; + function rw() { + return new ow(); + } + function ow() { + this._ = '@' + (++nw).toString(36); + } + ow.prototype = rw.prototype = { + constructor: ow, + get: function(e) { + for (var t = this._; !(t in e); ) if (!(e = e.parentNode)) return; + return e[t]; + }, + set: function(e, t) { + return (e[this._] = t); + }, + remove: function(e) { + return this._ in e && delete e[this._]; + }, + toString: function() { + return this._; + } + }; + var iw = function(e) { + return 'string' == typeof e + ? new St([document.querySelectorAll(e)], [document.documentElement]) + : new St([null == e ? [] : e], kt); + }, + aw = function(e, t) { + null == t && (t = zn().touches); + for (var n = 0, r = t ? t.length : 0, o = new Array(r); n < r; ++n) + o[n] = Nn(e, t[n]); + return o; + }, + sw = function(e) { + return function() { + return e; + }; + }, + cw = Math.abs, + uw = Math.atan2, + lw = Math.cos, + fw = Math.max, + dw = Math.min, + pw = Math.sin, + hw = Math.sqrt, + gw = 1e-12, + mw = Math.PI, + bw = mw / 2, + yw = 2 * mw; + function vw(e) { + return e >= 1 ? bw : e <= -1 ? -bw : Math.asin(e); + } + function _w(e) { + return e.innerRadius; + } + function ww(e) { + return e.outerRadius; + } + function xw(e) { + return e.startAngle; + } + function Mw(e) { + return e.endAngle; + } + function kw(e) { + return e && e.padAngle; + } + function Sw(e, t, n, r, o, i, a) { + var s = e - n, + c = t - r, + u = (a ? i : -i) / hw(s * s + c * c), + l = u * c, + f = -u * s, + d = e + l, + p = t + f, + h = n + l, + g = r + f, + m = (d + h) / 2, + b = (p + g) / 2, + y = h - d, + v = g - p, + _ = y * y + v * v, + w = o - i, + x = d * g - h * p, + M = (v < 0 ? -1 : 1) * hw(fw(0, w * w * _ - x * x)), + k = (x * v - y * M) / _, + S = (-x * y - v * M) / _, + O = (x * v + y * M) / _, + E = (-x * y + v * M) / _, + A = k - m, + T = S - b, + C = O - m, + L = E - b; + return ( + A * A + T * T > C * C + L * L && ((k = O), (S = E)), + { + cx: k, + cy: S, + x01: -l, + y01: -f, + x11: k * (o / w - 1), + y11: S * (o / w - 1) } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - function t(e, t, n, r) { - switch (n) { - case 's': - return t ? 'хэдхэн секунд' : 'хэдхэн секундын'; - case 'ss': - return e + (t ? ' секунд' : ' секундын'); - case 'm': - case 'mm': - return e + (t ? ' минут' : ' минутын'); - case 'h': - case 'hh': - return e + (t ? ' цаг' : ' цагийн'); - case 'd': - case 'dd': - return e + (t ? ' өдөр' : ' өдрийн'); - case 'M': - case 'MM': - return e + (t ? ' сар' : ' сарын'); - case 'y': - case 'yy': - return e + (t ? ' жил' : ' жилийн'); + ); + } + var Ow = function() { + var e = _w, + t = ww, + n = sw(0), + r = null, + o = xw, + i = Mw, + a = kw, + s = null; + function c() { + var c, + u, + l, + f = +e.apply(this, arguments), + d = +t.apply(this, arguments), + p = o.apply(this, arguments) - bw, + h = i.apply(this, arguments) - bw, + g = cw(h - p), + m = h > p; + if ( + (s || (s = c = Qo()), d < f && ((u = d), (d = f), (f = u)), d > gw) + ) + if (g > yw - gw) + s.moveTo(d * lw(p), d * pw(p)), + s.arc(0, 0, d, p, h, !m), + f > gw && + (s.moveTo(f * lw(h), f * pw(h)), s.arc(0, 0, f, h, p, m)); + else { + var b, + y, + v = p, + _ = h, + w = p, + x = h, + M = g, + k = g, + S = a.apply(this, arguments) / 2, + O = + S > gw && (r ? +r.apply(this, arguments) : hw(f * f + d * d)), + E = dw(cw(d - f) / 2, +n.apply(this, arguments)), + A = E, + T = E; + if (O > gw) { + var C = vw((O / f) * pw(S)), + L = vw((O / d) * pw(S)); + (M -= 2 * C) > gw + ? ((w += C *= m ? 1 : -1), (x -= C)) + : ((M = 0), (w = x = (p + h) / 2)), + (k -= 2 * L) > gw + ? ((v += L *= m ? 1 : -1), (_ -= L)) + : ((k = 0), (v = _ = (p + h) / 2)); + } + var P = d * lw(v), + D = d * pw(v), + j = f * lw(x), + z = f * pw(x); + if (E > gw) { + var N, + R = d * lw(_), + I = d * pw(_), + F = f * lw(w), + q = f * pw(w); + if ( + g < mw && + (N = (function(e, t, n, r, o, i, a, s) { + var c = n - e, + u = r - t, + l = a - o, + f = s - i, + d = f * c - l * u; + if (!(d * d < gw)) + return [ + e + (d = (l * (t - i) - f * (e - o)) / d) * c, + t + d * u + ]; + })(P, D, F, q, R, I, j, z)) + ) { + var B = P - N[0], + H = D - N[1], + Y = R - N[0], + W = I - N[1], + V = + 1 / + pw( + ((l = + (B * Y + H * W) / + (hw(B * B + H * H) * hw(Y * Y + W * W))) > 1 + ? 0 + : l < -1 + ? mw + : Math.acos(l)) / 2 + ), + U = hw(N[0] * N[0] + N[1] * N[1]); + (A = dw(E, (f - U) / (V - 1))), + (T = dw(E, (d - U) / (V + 1))); + } + } + k > gw + ? T > gw + ? ((b = Sw(F, q, P, D, d, T, m)), + (y = Sw(R, I, j, z, d, T, m)), + s.moveTo(b.cx + b.x01, b.cy + b.y01), + T < E + ? s.arc( + b.cx, + b.cy, + T, + uw(b.y01, b.x01), + uw(y.y01, y.x01), + !m + ) + : (s.arc( + b.cx, + b.cy, + T, + uw(b.y01, b.x01), + uw(b.y11, b.x11), + !m + ), + s.arc( + 0, + 0, + d, + uw(b.cy + b.y11, b.cx + b.x11), + uw(y.cy + y.y11, y.cx + y.x11), + !m + ), + s.arc( + y.cx, + y.cy, + T, + uw(y.y11, y.x11), + uw(y.y01, y.x01), + !m + ))) + : (s.moveTo(P, D), s.arc(0, 0, d, v, _, !m)) + : s.moveTo(P, D), + f > gw && M > gw + ? A > gw + ? ((b = Sw(j, z, R, I, f, -A, m)), + (y = Sw(P, D, F, q, f, -A, m)), + s.lineTo(b.cx + b.x01, b.cy + b.y01), + A < E + ? s.arc( + b.cx, + b.cy, + A, + uw(b.y01, b.x01), + uw(y.y01, y.x01), + !m + ) + : (s.arc( + b.cx, + b.cy, + A, + uw(b.y01, b.x01), + uw(b.y11, b.x11), + !m + ), + s.arc( + 0, + 0, + f, + uw(b.cy + b.y11, b.cx + b.x11), + uw(y.cy + y.y11, y.cx + y.x11), + m + ), + s.arc( + y.cx, + y.cy, + A, + uw(y.y11, y.x11), + uw(y.y01, y.x01), + !m + ))) + : s.arc(0, 0, f, x, w, m) + : s.lineTo(j, z); + } + else s.moveTo(0, 0); + if ((s.closePath(), c)) return (s = null), c + '' || null; + } + return ( + (c.centroid = function() { + var n = (+e.apply(this, arguments) + +t.apply(this, arguments)) / 2, + r = + (+o.apply(this, arguments) + +i.apply(this, arguments)) / 2 - + mw / 2; + return [lw(r) * n, pw(r) * n]; + }), + (c.innerRadius = function(t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : sw(+t)), c) + : e; + }), + (c.outerRadius = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : sw(+e)), c) + : t; + }), + (c.cornerRadius = function(e) { + return arguments.length + ? ((n = 'function' == typeof e ? e : sw(+e)), c) + : n; + }), + (c.padRadius = function(e) { + return arguments.length + ? ((r = null == e ? null : 'function' == typeof e ? e : sw(+e)), + c) + : r; + }), + (c.startAngle = function(e) { + return arguments.length + ? ((o = 'function' == typeof e ? e : sw(+e)), c) + : o; + }), + (c.endAngle = function(e) { + return arguments.length + ? ((i = 'function' == typeof e ? e : sw(+e)), c) + : i; + }), + (c.padAngle = function(e) { + return arguments.length + ? ((a = 'function' == typeof e ? e : sw(+e)), c) + : a; + }), + (c.context = function(e) { + return arguments.length ? ((s = null == e ? null : e), c) : s; + }), + c + ); + }; + function Ew(e) { + this._context = e; + } + Ew.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: - return e; + this._context.lineTo(e, t); } } - e.defineLocale('mn', { - months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split( - '_' - ), - monthsShort: '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'), - weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'), - weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'YYYY оны MMMMын D', - LLL: 'YYYY оны MMMMын D HH:mm', - LLLL: 'dddd, YYYY оны MMMMын D HH:mm' - }, - meridiemParse: /ҮӨ|ҮХ/i, - isPM: function(e) { - return 'ҮХ' === e; - }, - meridiem: function(e, t, n) { - return e < 12 ? 'ҮӨ' : 'ҮХ'; - }, - calendar: { - sameDay: '[Өнөөдөр] LT', - nextDay: '[Маргааш] LT', - nextWeek: '[Ирэх] dddd LT', - lastDay: '[Өчигдөр] LT', - lastWeek: '[Өнгөрсөн] dddd LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s дараа', - past: '%s өмнө', - s: t, - ss: t, - m: t, - mm: t, - h: t, - hh: t, - d: t, - dd: t, - M: t, - MM: t, - y: t, - yy: t - }, - dayOfMonthOrdinalParse: /\d{1,2} өдөр/, - ordinal: function(e, t) { - switch (t) { - case 'd': - case 'D': - case 'DDD': - return e + ' өдөр'; - default: - return e; - } + }; + var Aw = function(e) { + return new Ew(e); + }; + function Tw(e) { + return e[0]; + } + function Cw(e) { + return e[1]; + } + var Lw = function() { + var e = Tw, + t = Cw, + n = sw(!0), + r = null, + o = Aw, + i = null; + function a(a) { + var s, + c, + u, + l = a.length, + f = !1; + for (null == r && (i = o((u = Qo()))), s = 0; s <= l; ++s) + !(s < l && n((c = a[s]), s, a)) === f && + ((f = !f) ? i.lineStart() : i.lineEnd()), + f && i.point(+e(c, s, a), +t(c, s, a)); + if (u) return (i = null), u + '' || null; } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = { - 1: '१', - 2: '२', - 3: '३', - 4: '४', - 5: '५', - 6: '६', - 7: '७', - 8: '८', - 9: '९', - 0: '०' - }, - n = { - '१': '1', - '२': '2', - '३': '3', - '४': '4', - '५': '5', - '६': '6', - '७': '7', - '८': '8', - '९': '9', - '०': '0' - }; - function r(e, t, n, r) { - var o = ''; - if (t) - switch (n) { - case 's': - o = 'काही सेकंद'; - break; - case 'ss': - o = '%d सेकंद'; - break; - case 'm': - o = 'एक मिनिट'; - break; - case 'mm': - o = '%d मिनिटे'; - break; - case 'h': - o = 'एक तास'; - break; - case 'hh': - o = '%d तास'; - break; - case 'd': - o = 'एक दिवस'; - break; - case 'dd': - o = '%d दिवस'; - break; - case 'M': - o = 'एक महिना'; - break; - case 'MM': - o = '%d महिने'; - break; - case 'y': - o = 'एक वर्ष'; - break; - case 'yy': - o = '%d वर्षे'; - } - else - switch (n) { - case 's': - o = 'काही सेकंदां'; - break; - case 'ss': - o = '%d सेकंदां'; - break; - case 'm': - o = 'एका मिनिटा'; - break; - case 'mm': - o = '%d मिनिटां'; - break; - case 'h': - o = 'एका तासा'; - break; - case 'hh': - o = '%d तासां'; - break; - case 'd': - o = 'एका दिवसा'; - break; - case 'dd': - o = '%d दिवसां'; - break; - case 'M': - o = 'एका महिन्या'; - break; - case 'MM': - o = '%d महिन्यां'; - break; - case 'y': - o = 'एका वर्षा'; - break; - case 'yy': - o = '%d वर्षां'; + return ( + (a.x = function(t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : sw(+t)), a) + : e; + }), + (a.y = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : sw(+e)), a) + : t; + }), + (a.defined = function(e) { + return arguments.length + ? ((n = 'function' == typeof e ? e : sw(!!e)), a) + : n; + }), + (a.curve = function(e) { + return arguments.length + ? ((o = e), null != r && (i = o(r)), a) + : o; + }), + (a.context = function(e) { + return arguments.length + ? (null == e ? (r = i = null) : (i = o((r = e))), a) + : r; + }), + a + ); + }, + Pw = function() { + var e = Tw, + t = null, + n = sw(0), + r = Cw, + o = sw(!0), + i = null, + a = Aw, + s = null; + function c(c) { + var u, + l, + f, + d, + p, + h = c.length, + g = !1, + m = new Array(h), + b = new Array(h); + for (null == i && (s = a((p = Qo()))), u = 0; u <= h; ++u) { + if (!(u < h && o((d = c[u]), u, c)) === g) + if ((g = !g)) (l = u), s.areaStart(), s.lineStart(); + else { + for (s.lineEnd(), s.lineStart(), f = u - 1; f >= l; --f) + s.point(m[f], b[f]); + s.lineEnd(), s.areaEnd(); + } + g && + ((m[u] = +e(d, u, c)), + (b[u] = +n(d, u, c)), + s.point(t ? +t(d, u, c) : m[u], r ? +r(d, u, c) : b[u])); } - return o.replace(/%d/i, e); - } - e.defineLocale('mr', { - months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split( - '_' - ), - monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split( - '_' - ), - weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'), - weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'), - longDateFormat: { - LT: 'A h:mm वाजता', - LTS: 'A h:mm:ss वाजता', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm वाजता', - LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता' - }, - calendar: { - sameDay: '[आज] LT', - nextDay: '[उद्या] LT', - nextWeek: 'dddd, LT', - lastDay: '[काल] LT', - lastWeek: '[मागील] dddd, LT', - sameElse: 'L' - }, - relativeTime: { - future: '%sमध्ये', - past: '%sपूर्वी', - s: r, - ss: r, - m: r, - mm: r, - h: r, - hh: r, - d: r, - dd: r, - M: r, - MM: r, - y: r, - yy: r - }, - preparse: function(e) { - return e.replace(/[१२३४५६७८९०]/g, function(e) { - return n[e]; - }); - }, - postformat: function(e) { - return e.replace(/\d/g, function(e) { - return t[e]; - }); - }, - meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/, - meridiemHour: function(e, t) { - return ( - 12 === e && (e = 0), - 'रात्री' === t - ? e < 4 - ? e - : e + 12 - : 'सकाळी' === t - ? e - : 'दुपारी' === t - ? e >= 10 - ? e - : e + 12 - : 'सायंकाळी' === t - ? e + 12 - : void 0 - ); - }, - meridiem: function(e, t, n) { - return e < 4 - ? 'रात्री' - : e < 10 - ? 'सकाळी' - : e < 17 - ? 'दुपारी' - : e < 20 - ? 'सायंकाळी' - : 'रात्री'; - }, - week: { dow: 0, doy: 6 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('ms', { - months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split( - '_' - ), - weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), - weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), - weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [pukul] HH.mm', - LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm' - }, - meridiemParse: /pagi|tengahari|petang|malam/, - meridiemHour: function(e, t) { - return ( - 12 === e && (e = 0), - 'pagi' === t - ? e - : 'tengahari' === t - ? e >= 11 - ? e - : e + 12 - : 'petang' === t || 'malam' === t - ? e + 12 - : void 0 - ); - }, - meridiem: function(e, t, n) { - return e < 11 - ? 'pagi' - : e < 15 - ? 'tengahari' - : e < 19 - ? 'petang' - : 'malam'; - }, - calendar: { - sameDay: '[Hari ini pukul] LT', - nextDay: '[Esok pukul] LT', - nextWeek: 'dddd [pukul] LT', - lastDay: '[Kelmarin pukul] LT', - lastWeek: 'dddd [lepas pukul] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'dalam %s', - past: '%s yang lepas', - s: 'beberapa saat', - ss: '%d saat', - m: 'seminit', - mm: '%d minit', - h: 'sejam', - hh: '%d jam', - d: 'sehari', - dd: '%d hari', - M: 'sebulan', - MM: '%d bulan', - y: 'setahun', - yy: '%d tahun' - }, - week: { dow: 1, doy: 7 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('ms-my', { - months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split( - '_' - ), - weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), - weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), - weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [pukul] HH.mm', - LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm' - }, - meridiemParse: /pagi|tengahari|petang|malam/, - meridiemHour: function(e, t) { - return ( - 12 === e && (e = 0), - 'pagi' === t - ? e - : 'tengahari' === t - ? e >= 11 - ? e - : e + 12 - : 'petang' === t || 'malam' === t - ? e + 12 - : void 0 - ); - }, - meridiem: function(e, t, n) { - return e < 11 - ? 'pagi' - : e < 15 - ? 'tengahari' - : e < 19 - ? 'petang' - : 'malam'; - }, - calendar: { - sameDay: '[Hari ini pukul] LT', - nextDay: '[Esok pukul] LT', - nextWeek: 'dddd [pukul] LT', - lastDay: '[Kelmarin pukul] LT', - lastWeek: 'dddd [lepas pukul] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'dalam %s', - past: '%s yang lepas', - s: 'beberapa saat', - ss: '%d saat', - m: 'seminit', - mm: '%d minit', - h: 'sejam', - hh: '%d jam', - d: 'sehari', - dd: '%d hari', - M: 'sebulan', - MM: '%d bulan', - y: 'setahun', - yy: '%d tahun' - }, - week: { dow: 1, doy: 7 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('mt', { - months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split( - '_' - ), - monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split( - '_' - ), - weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split( - '_' - ), - weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'), - weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Illum fil-]LT', - nextDay: '[Għada fil-]LT', - nextWeek: 'dddd [fil-]LT', - lastDay: '[Il-bieraħ fil-]LT', - lastWeek: 'dddd [li għadda] [fil-]LT', - sameElse: 'L' - }, - relativeTime: { - future: 'f’ %s', - past: '%s ilu', - s: 'ftit sekondi', - ss: '%d sekondi', - m: 'minuta', - mm: '%d minuti', - h: 'siegħa', - hh: '%d siegħat', - d: 'ġurnata', - dd: '%d ġranet', - M: 'xahar', - MM: '%d xhur', - y: 'sena', - yy: '%d sni' - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = { - 1: '၁', - 2: '၂', - 3: '၃', - 4: '၄', - 5: '၅', - 6: '၆', - 7: '၇', - 8: '၈', - 9: '၉', - 0: '၀' - }, - n = { - '၁': '1', - '၂': '2', - '၃': '3', - '၄': '4', - '၅': '5', - '၆': '6', - '၇': '7', - '၈': '8', - '၉': '9', - '၀': '0' - }; - e.defineLocale('my', { - months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split( - '_' - ), - monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split( - '_' - ), - weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split( - '_' - ), - weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), - weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[ယနေ.] LT [မှာ]', - nextDay: '[မနက်ဖြန်] LT [မှာ]', - nextWeek: 'dddd LT [မှာ]', - lastDay: '[မနေ.က] LT [မှာ]', - lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]', - sameElse: 'L' - }, - relativeTime: { - future: 'လာမည့် %s မှာ', - past: 'လွန်ခဲ့သော %s က', - s: 'စက္ကန်.အနည်းငယ်', - ss: '%d စက္ကန့်', - m: 'တစ်မိနစ်', - mm: '%d မိနစ်', - h: 'တစ်နာရီ', - hh: '%d နာရီ', - d: 'တစ်ရက်', - dd: '%d ရက်', - M: 'တစ်လ', - MM: '%d လ', - y: 'တစ်နှစ်', - yy: '%d နှစ်' - }, - preparse: function(e) { - return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function(e) { - return n[e]; - }); - }, - postformat: function(e) { - return e.replace(/\d/g, function(e) { - return t[e]; - }); - }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('nb', { - months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split( - '_' - ), - monthsShort: 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split( - '_' - ), - weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'), - weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY [kl.] HH:mm', - LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm' - }, - calendar: { - sameDay: '[i dag kl.] LT', - nextDay: '[i morgen kl.] LT', - nextWeek: 'dddd [kl.] LT', - lastDay: '[i går kl.] LT', - lastWeek: '[forrige] dddd [kl.] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'om %s', - past: '%s siden', - s: 'noen sekunder', - ss: '%d sekunder', - m: 'ett minutt', - mm: '%d minutter', - h: 'en time', - hh: '%d timer', - d: 'en dag', - dd: '%d dager', - M: 'en måned', - MM: '%d måneder', - y: 'ett år', - yy: '%d år' - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = { - 1: '१', - 2: '२', - 3: '३', - 4: '४', - 5: '५', - 6: '६', - 7: '७', - 8: '८', - 9: '९', - 0: '०' - }, - n = { - '१': '1', - '२': '2', - '३': '3', - '४': '4', - '५': '5', - '६': '6', - '७': '7', - '८': '8', - '९': '9', - '०': '0' - }; - e.defineLocale('ne', { - months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split( - '_' - ), - monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split( - '_' - ), - weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'), - weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'Aको h:mm बजे', - LTS: 'Aको h:mm:ss बजे', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, Aको h:mm बजे', - LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे' - }, - preparse: function(e) { - return e.replace(/[१२३४५६७८९०]/g, function(e) { - return n[e]; - }); - }, - postformat: function(e) { - return e.replace(/\d/g, function(e) { - return t[e]; - }); - }, - meridiemParse: /राति|बिहान|दिउँसो|साँझ/, - meridiemHour: function(e, t) { - return ( - 12 === e && (e = 0), - 'राति' === t - ? e < 4 - ? e - : e + 12 - : 'बिहान' === t - ? e - : 'दिउँसो' === t - ? e >= 10 - ? e - : e + 12 - : 'साँझ' === t - ? e + 12 - : void 0 - ); - }, - meridiem: function(e, t, n) { - return e < 3 - ? 'राति' - : e < 12 - ? 'बिहान' - : e < 16 - ? 'दिउँसो' - : e < 20 - ? 'साँझ' - : 'राति'; - }, - calendar: { - sameDay: '[आज] LT', - nextDay: '[भोलि] LT', - nextWeek: '[आउँदो] dddd[,] LT', - lastDay: '[हिजो] LT', - lastWeek: '[गएको] dddd[,] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%sमा', - past: '%s अगाडि', - s: 'केही क्षण', - ss: '%d सेकेण्ड', - m: 'एक मिनेट', - mm: '%d मिनेट', - h: 'एक घण्टा', - hh: '%d घण्टा', - d: 'एक दिन', - dd: '%d दिन', - M: 'एक महिना', - MM: '%d महिना', - y: 'एक बर्ष', - yy: '%d बर्ष' - }, - week: { dow: 0, doy: 6 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split( - '_' - ), - n = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'), - r = [ - /^jan/i, - /^feb/i, - /^maart|mrt.?$/i, - /^apr/i, - /^mei$/i, - /^jun[i.]?$/i, - /^jul[i.]?$/i, - /^aug/i, - /^sep/i, - /^okt/i, - /^nov/i, - /^dec/i - ], - o = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; - e.defineLocale('nl', { - months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split( - '_' - ), - monthsShort: function(e, r) { - return e ? (/-MMM-/.test(r) ? n[e.month()] : t[e.month()]) : t; - }, - monthsRegex: o, - monthsShortRegex: o, - monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i, - monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, - monthsParse: r, - longMonthsParse: r, - shortMonthsParse: r, - weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split( - '_' - ), - weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'), - weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD-MM-YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[vandaag om] LT', - nextDay: '[morgen om] LT', - nextWeek: 'dddd [om] LT', - lastDay: '[gisteren om] LT', - lastWeek: '[afgelopen] dddd [om] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'over %s', - past: '%s geleden', - s: 'een paar seconden', - ss: '%d seconden', - m: 'één minuut', - mm: '%d minuten', - h: 'één uur', - hh: '%d uur', - d: 'één dag', - dd: '%d dagen', - M: 'één maand', - MM: '%d maanden', - y: 'één jaar', - yy: '%d jaar' - }, - dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, - ordinal: function(e) { - return e + (1 === e || 8 === e || e >= 20 ? 'ste' : 'de'); - }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split( - '_' - ), - n = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'), - r = [ - /^jan/i, - /^feb/i, - /^maart|mrt.?$/i, - /^apr/i, - /^mei$/i, - /^jun[i.]?$/i, - /^jul[i.]?$/i, - /^aug/i, - /^sep/i, - /^okt/i, - /^nov/i, - /^dec/i - ], - o = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; - e.defineLocale('nl-be', { - months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split( - '_' - ), - monthsShort: function(e, r) { - return e ? (/-MMM-/.test(r) ? n[e.month()] : t[e.month()]) : t; - }, - monthsRegex: o, - monthsShortRegex: o, - monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i, - monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, - monthsParse: r, - longMonthsParse: r, - shortMonthsParse: r, - weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split( - '_' - ), - weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'), - weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[vandaag om] LT', - nextDay: '[morgen om] LT', - nextWeek: 'dddd [om] LT', - lastDay: '[gisteren om] LT', - lastWeek: '[afgelopen] dddd [om] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'over %s', - past: '%s geleden', - s: 'een paar seconden', - ss: '%d seconden', - m: 'één minuut', - mm: '%d minuten', - h: 'één uur', - hh: '%d uur', - d: 'één dag', - dd: '%d dagen', - M: 'één maand', - MM: '%d maanden', - y: 'één jaar', - yy: '%d jaar' - }, - dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, - ordinal: function(e) { - return e + (1 === e || 8 === e || e >= 20 ? 'ste' : 'de'); - }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('nn', { - months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split( - '_' - ), - monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split( - '_' - ), - weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split( - '_' - ), - weekdaysShort: 'sun_mån_tys_ons_tor_fre_lau'.split('_'), - weekdaysMin: 'su_må_ty_on_to_fr_lø'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY [kl.] H:mm', - LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm' - }, - calendar: { - sameDay: '[I dag klokka] LT', - nextDay: '[I morgon klokka] LT', - nextWeek: 'dddd [klokka] LT', - lastDay: '[I går klokka] LT', - lastWeek: '[Føregåande] dddd [klokka] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'om %s', - past: '%s sidan', - s: 'nokre sekund', - ss: '%d sekund', - m: 'eit minutt', - mm: '%d minutt', - h: 'ein time', - hh: '%d timar', - d: 'ein dag', - dd: '%d dagar', - M: 'ein månad', - MM: '%d månader', - y: 'eit år', - yy: '%d år' - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = { - 1: '੧', - 2: '੨', - 3: '੩', - 4: '੪', - 5: '੫', - 6: '੬', - 7: '੭', - 8: '੮', - 9: '੯', - 0: '੦' - }, - n = { - '੧': '1', - '੨': '2', - '੩': '3', - '੪': '4', - '੫': '5', - '੬': '6', - '੭': '7', - '੮': '8', - '੯': '9', - '੦': '0' - }; - e.defineLocale('pa-in', { - months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split( - '_' - ), - monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split( - '_' - ), - weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split( - '_' - ), - weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), - weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), - longDateFormat: { - LT: 'A h:mm ਵਜੇ', - LTS: 'A h:mm:ss ਵਜੇ', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm ਵਜੇ', - LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ' - }, - calendar: { - sameDay: '[ਅਜ] LT', - nextDay: '[ਕਲ] LT', - nextWeek: '[ਅਗਲਾ] dddd, LT', - lastDay: '[ਕਲ] LT', - lastWeek: '[ਪਿਛਲੇ] dddd, LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s ਵਿੱਚ', - past: '%s ਪਿਛਲੇ', - s: 'ਕੁਝ ਸਕਿੰਟ', - ss: '%d ਸਕਿੰਟ', - m: 'ਇਕ ਮਿੰਟ', - mm: '%d ਮਿੰਟ', - h: 'ਇੱਕ ਘੰਟਾ', - hh: '%d ਘੰਟੇ', - d: 'ਇੱਕ ਦਿਨ', - dd: '%d ਦਿਨ', - M: 'ਇੱਕ ਮਹੀਨਾ', - MM: '%d ਮਹੀਨੇ', - y: 'ਇੱਕ ਸਾਲ', - yy: '%d ਸਾਲ' - }, - preparse: function(e) { - return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function(e) { - return n[e]; - }); - }, - postformat: function(e) { - return e.replace(/\d/g, function(e) { - return t[e]; - }); - }, - meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/, - meridiemHour: function(e, t) { - return ( - 12 === e && (e = 0), - 'ਰਾਤ' === t - ? e < 4 - ? e - : e + 12 - : 'ਸਵੇਰ' === t - ? e - : 'ਦੁਪਹਿਰ' === t - ? e >= 10 - ? e - : e + 12 - : 'ਸ਼ਾਮ' === t - ? e + 12 - : void 0 - ); - }, - meridiem: function(e, t, n) { - return e < 4 - ? 'ਰਾਤ' - : e < 10 - ? 'ਸਵੇਰ' - : e < 17 - ? 'ਦੁਪਹਿਰ' - : e < 20 - ? 'ਸ਼ਾਮ' - : 'ਰਾਤ'; - }, - week: { dow: 0, doy: 6 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split( - '_' - ), - n = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split( - '_' + if (p) return (s = null), p + '' || null; + } + function u() { + return Lw() + .defined(o) + .curve(a) + .context(i); + } + return ( + (c.x = function(n) { + return arguments.length + ? ((e = 'function' == typeof n ? n : sw(+n)), (t = null), c) + : e; + }), + (c.x0 = function(t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : sw(+t)), c) + : e; + }), + (c.x1 = function(e) { + return arguments.length + ? ((t = null == e ? null : 'function' == typeof e ? e : sw(+e)), + c) + : t; + }), + (c.y = function(e) { + return arguments.length + ? ((n = 'function' == typeof e ? e : sw(+e)), (r = null), c) + : n; + }), + (c.y0 = function(e) { + return arguments.length + ? ((n = 'function' == typeof e ? e : sw(+e)), c) + : n; + }), + (c.y1 = function(e) { + return arguments.length + ? ((r = null == e ? null : 'function' == typeof e ? e : sw(+e)), + c) + : r; + }), + (c.lineX0 = c.lineY0 = function() { + return u() + .x(e) + .y(n); + }), + (c.lineY1 = function() { + return u() + .x(e) + .y(r); + }), + (c.lineX1 = function() { + return u() + .x(t) + .y(n); + }), + (c.defined = function(e) { + return arguments.length + ? ((o = 'function' == typeof e ? e : sw(!!e)), c) + : o; + }), + (c.curve = function(e) { + return arguments.length + ? ((a = e), null != i && (s = a(i)), c) + : a; + }), + (c.context = function(e) { + return arguments.length + ? (null == e ? (i = s = null) : (s = a((i = e))), c) + : i; + }), + c ); - function r(e) { - return e % 10 < 5 && e % 10 > 1 && ~~(e / 10) % 10 != 1; - } - function o(e, t, n) { - var o = e + ' '; - switch (n) { - case 'ss': - return o + (r(e) ? 'sekundy' : 'sekund'); - case 'm': - return t ? 'minuta' : 'minutę'; - case 'mm': - return o + (r(e) ? 'minuty' : 'minut'); - case 'h': - return t ? 'godzina' : 'godzinę'; - case 'hh': - return o + (r(e) ? 'godziny' : 'godzin'); - case 'MM': - return o + (r(e) ? 'miesiące' : 'miesięcy'); - case 'yy': - return o + (r(e) ? 'lata' : 'lat'); + }, + Dw = function(e, t) { + return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; + }, + jw = function(e) { + return e; + }, + zw = function() { + var e = jw, + t = Dw, + n = null, + r = sw(0), + o = sw(yw), + i = sw(0); + function a(a) { + var s, + c, + u, + l, + f, + d = a.length, + p = 0, + h = new Array(d), + g = new Array(d), + m = +r.apply(this, arguments), + b = Math.min(yw, Math.max(-yw, o.apply(this, arguments) - m)), + y = Math.min(Math.abs(b) / d, i.apply(this, arguments)), + v = y * (b < 0 ? -1 : 1); + for (s = 0; s < d; ++s) + (f = g[(h[s] = s)] = +e(a[s], s, a)) > 0 && (p += f); + for ( + null != t + ? h.sort(function(e, n) { + return t(g[e], g[n]); + }) + : null != n && + h.sort(function(e, t) { + return n(a[e], a[t]); + }), + s = 0, + u = p ? (b - d * v) / p : 0; + s < d; + ++s, m = l + ) + (c = h[s]), + (l = m + ((f = g[c]) > 0 ? f * u : 0) + v), + (g[c] = { + data: a[c], + index: s, + value: f, + startAngle: m, + endAngle: l, + padAngle: y + }); + return g; } + return ( + (a.value = function(t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : sw(+t)), a) + : e; + }), + (a.sortValues = function(e) { + return arguments.length ? ((t = e), (n = null), a) : t; + }), + (a.sort = function(e) { + return arguments.length ? ((n = e), (t = null), a) : n; + }), + (a.startAngle = function(e) { + return arguments.length + ? ((r = 'function' == typeof e ? e : sw(+e)), a) + : r; + }), + (a.endAngle = function(e) { + return arguments.length + ? ((o = 'function' == typeof e ? e : sw(+e)), a) + : o; + }), + (a.padAngle = function(e) { + return arguments.length + ? ((i = 'function' == typeof e ? e : sw(+e)), a) + : i; + }), + a + ); + }, + Nw = Iw(Aw); + function Rw(e) { + this._curve = e; + } + function Iw(e) { + function t(t) { + return new Rw(e(t)); } - e.defineLocale('pl', { - months: function(e, r) { - return e - ? '' === r - ? '(' + n[e.month()] + '|' + t[e.month()] + ')' - : /D MMMM/.test(r) - ? n[e.month()] - : t[e.month()] - : t; - }, - monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split( - '_' - ), - weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split( - '_' - ), - weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'), - weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Dziś o] LT', - nextDay: '[Jutro o] LT', - nextWeek: function() { - switch (this.day()) { - case 0: - return '[W niedzielę o] LT'; - case 2: - return '[We wtorek o] LT'; - case 3: - return '[W środę o] LT'; - case 6: - return '[W sobotę o] LT'; - default: - return '[W] dddd [o] LT'; - } - }, - lastDay: '[Wczoraj o] LT', - lastWeek: function() { - switch (this.day()) { - case 0: - return '[W zeszłą niedzielę o] LT'; - case 3: - return '[W zeszłą środę o] LT'; - case 6: - return '[W zeszłą sobotę o] LT'; - default: - return '[W zeszły] dddd [o] LT'; - } - }, - sameElse: 'L' - }, - relativeTime: { - future: 'za %s', - past: '%s temu', - s: 'kilka sekund', - ss: o, - m: o, - mm: o, - h: o, - hh: o, - d: '1 dzień', - dd: '%d dni', - M: 'miesiąc', - MM: o, - y: 'rok', - yy: o - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('pt', { - months: 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split( - '_' - ), - monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split( - '_' - ), - weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split( - '_' - ), - weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'), - weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY HH:mm', - LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm' - }, - calendar: { - sameDay: '[Hoje às] LT', - nextDay: '[Amanhã às] LT', - nextWeek: 'dddd [às] LT', - lastDay: '[Ontem às] LT', - lastWeek: function() { - return 0 === this.day() || 6 === this.day() - ? '[Último] dddd [às] LT' - : '[Última] dddd [às] LT'; - }, - sameElse: 'L' - }, - relativeTime: { - future: 'em %s', - past: 'há %s', - s: 'segundos', - ss: '%d segundos', - m: 'um minuto', - mm: '%d minutos', - h: 'uma hora', - hh: '%d horas', - d: 'um dia', - dd: '%d dias', - M: 'um mês', - MM: '%d meses', - y: 'um ano', - yy: '%d anos' - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('pt-br', { - months: 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split( - '_' - ), - monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split( - '_' - ), - weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split( - '_' - ), - weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'), - weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY [às] HH:mm', - LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm' - }, - calendar: { - sameDay: '[Hoje às] LT', - nextDay: '[Amanhã às] LT', - nextWeek: 'dddd [às] LT', - lastDay: '[Ontem às] LT', - lastWeek: function() { - return 0 === this.day() || 6 === this.day() - ? '[Último] dddd [às] LT' - : '[Última] dddd [às] LT'; - }, - sameElse: 'L' - }, - relativeTime: { - future: 'em %s', - past: 'há %s', - s: 'poucos segundos', - ss: '%d segundos', - m: 'um minuto', - mm: '%d minutos', - h: 'uma hora', - hh: '%d horas', - d: 'um dia', - dd: '%d dias', - M: 'um mês', - MM: '%d meses', - y: 'um ano', - yy: '%d anos' - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº' - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - function t(e, t, n) { - var r = ' '; + return (t._curve = e), t; + } + function Fw(e) { + var t = e.curve; + return ( + (e.angle = e.x), + delete e.x, + (e.radius = e.y), + delete e.y, + (e.curve = function(e) { + return arguments.length ? t(Iw(e)) : t()._curve; + }), + e + ); + } + Rw.prototype = { + areaStart: function() { + this._curve.areaStart(); + }, + areaEnd: function() { + this._curve.areaEnd(); + }, + lineStart: function() { + this._curve.lineStart(); + }, + lineEnd: function() { + this._curve.lineEnd(); + }, + point: function(e, t) { + this._curve.point(t * Math.sin(e), t * -Math.cos(e)); + } + }; + var qw = function() { + return Fw(Lw().curve(Nw)); + }, + Bw = function() { + var e = Pw().curve(Nw), + t = e.curve, + n = e.lineX0, + r = e.lineX1, + o = e.lineY0, + i = e.lineY1; return ( - (e % 100 >= 20 || (e >= 100 && e % 100 == 0)) && (r = ' de '), - e + - r + - { - ss: 'secunde', - mm: 'minute', - hh: 'ore', - dd: 'zile', - MM: 'luni', - yy: 'ani' - }[n] + (e.angle = e.x), + delete e.x, + (e.startAngle = e.x0), + delete e.x0, + (e.endAngle = e.x1), + delete e.x1, + (e.radius = e.y), + delete e.y, + (e.innerRadius = e.y0), + delete e.y0, + (e.outerRadius = e.y1), + delete e.y1, + (e.lineStartAngle = function() { + return Fw(n()); + }), + delete e.lineX0, + (e.lineEndAngle = function() { + return Fw(r()); + }), + delete e.lineX1, + (e.lineInnerRadius = function() { + return Fw(o()); + }), + delete e.lineY0, + (e.lineOuterRadius = function() { + return Fw(i()); + }), + delete e.lineY1, + (e.curve = function(e) { + return arguments.length ? t(Iw(e)) : t()._curve; + }), + e ); - } - e.defineLocale('ro', { - months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split( - '_' - ), - monthsShort: 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split( - '_' - ), - weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'), - weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY H:mm', - LLLL: 'dddd, D MMMM YYYY H:mm' - }, - calendar: { - sameDay: '[azi la] LT', - nextDay: '[mâine la] LT', - nextWeek: 'dddd [la] LT', - lastDay: '[ieri la] LT', - lastWeek: '[fosta] dddd [la] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'peste %s', - past: '%s în urmă', - s: 'câteva secunde', - ss: t, - m: 'un minut', - mm: t, - h: 'o oră', - hh: t, - d: 'o zi', - dd: t, - M: 'o lună', - MM: t, - y: 'un an', - yy: t - }, - week: { dow: 1, doy: 7 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - function t(e, t, n) { - var r, o; - return 'm' === n - ? t - ? 'минута' - : 'минуту' - : e + - ' ' + - ((r = +e), - (o = { - ss: t ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд', - mm: t ? 'минута_минуты_минут' : 'минуту_минуты_минут', - hh: 'час_часа_часов', - dd: 'день_дня_дней', - MM: 'месяц_месяца_месяцев', - yy: 'год_года_лет' - }[n].split('_')), - r % 10 == 1 && r % 100 != 11 - ? o[0] - : r % 10 >= 2 && - r % 10 <= 4 && - (r % 100 < 10 || r % 100 >= 20) - ? o[1] - : o[2]); - } - var n = [ - /^янв/i, - /^фев/i, - /^мар/i, - /^апр/i, - /^ма[йя]/i, - /^июн/i, - /^июл/i, - /^авг/i, - /^сен/i, - /^окт/i, - /^ноя/i, - /^дек/i - ]; - e.defineLocale('ru', { - months: { - format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split( - '_' - ), - standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split( - '_' - ) - }, - monthsShort: { - format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split( - '_' - ), - standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split( - '_' - ) - }, - weekdays: { - standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split( - '_' - ), - format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split( - '_' + }, + Hw = function(e, t) { + return [(t = +t) * Math.cos((e -= Math.PI / 2)), t * Math.sin(e)]; + }, + Yw = Array.prototype.slice; + function Ww(e) { + return e.source; + } + function Vw(e) { + return e.target; + } + function Uw(e) { + var t = Ww, + n = Vw, + r = Tw, + o = Cw, + i = null; + function a() { + var a, + s = Yw.call(arguments), + c = t.apply(this, s), + u = n.apply(this, s); + if ( + (i || (i = a = Qo()), + e( + i, + +r.apply(this, ((s[0] = c), s)), + +o.apply(this, s), + +r.apply(this, ((s[0] = u), s)), + +o.apply(this, s) ), - isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/ - }, - weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'), - weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'), - monthsParse: n, - longMonthsParse: n, - shortMonthsParse: n, - monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, - monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, - monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i, - monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY г.', - LLL: 'D MMMM YYYY г., H:mm', - LLLL: 'dddd, D MMMM YYYY г., H:mm' - }, - calendar: { - sameDay: '[Сегодня, в] LT', - nextDay: '[Завтра, в] LT', - lastDay: '[Вчера, в] LT', - nextWeek: function(e) { - if (e.week() === this.week()) - return 2 === this.day() - ? '[Во] dddd, [в] LT' - : '[В] dddd, [в] LT'; - switch (this.day()) { - case 0: - return '[В следующее] dddd, [в] LT'; - case 1: - case 2: - case 4: - return '[В следующий] dddd, [в] LT'; - case 3: - case 5: - case 6: - return '[В следующую] dddd, [в] LT'; - } - }, - lastWeek: function(e) { - if (e.week() === this.week()) - return 2 === this.day() - ? '[Во] dddd, [в] LT' - : '[В] dddd, [в] LT'; - switch (this.day()) { - case 0: - return '[В прошлое] dddd, [в] LT'; - case 1: - case 2: - case 4: - return '[В прошлый] dddd, [в] LT'; - case 3: - case 5: - case 6: - return '[В прошлую] dddd, [в] LT'; - } - }, - sameElse: 'L' - }, - relativeTime: { - future: 'через %s', - past: '%s назад', - s: 'несколько секунд', - ss: t, - m: t, - mm: t, - h: 'час', - hh: t, - d: 'день', - dd: t, - M: 'месяц', - MM: t, - y: 'год', - yy: t - }, - meridiemParse: /ночи|утра|дня|вечера/i, - isPM: function(e) { - return /^(дня|вечера)$/.test(e); - }, - meridiem: function(e, t, n) { - return e < 4 ? 'ночи' : e < 12 ? 'утра' : e < 17 ? 'дня' : 'вечера'; - }, - dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/, - ordinal: function(e, t) { - switch (t) { - case 'M': - case 'd': - case 'DDD': - return e + '-й'; - case 'D': - return e + '-го'; - case 'w': - case 'W': - return e + '-я'; - default: - return e; + a) + ) + return (i = null), a + '' || null; + } + return ( + (a.source = function(e) { + return arguments.length ? ((t = e), a) : t; + }), + (a.target = function(e) { + return arguments.length ? ((n = e), a) : n; + }), + (a.x = function(e) { + return arguments.length + ? ((r = 'function' == typeof e ? e : sw(+e)), a) + : r; + }), + (a.y = function(e) { + return arguments.length + ? ((o = 'function' == typeof e ? e : sw(+e)), a) + : o; + }), + (a.context = function(e) { + return arguments.length ? ((i = null == e ? null : e), a) : i; + }), + a + ); + } + function Xw(e, t, n, r, o) { + e.moveTo(t, n), e.bezierCurveTo((t = (t + r) / 2), n, t, o, r, o); + } + function Gw(e, t, n, r, o) { + e.moveTo(t, n), e.bezierCurveTo(t, (n = (n + o) / 2), r, n, r, o); + } + function Kw(e, t, n, r, o) { + var i = Hw(t, n), + a = Hw(t, (n = (n + o) / 2)), + s = Hw(r, n), + c = Hw(r, o); + e.moveTo(i[0], i[1]), + e.bezierCurveTo(a[0], a[1], s[0], s[1], c[0], c[1]); + } + function $w() { + return Uw(Xw); + } + function Qw() { + return Uw(Gw); + } + function Jw() { + var e = Uw(Kw); + return (e.angle = e.x), delete e.x, (e.radius = e.y), delete e.y, e; + } + var Zw = { + draw: function(e, t) { + var n = Math.sqrt(t / mw); + e.moveTo(n, 0), e.arc(0, 0, n, 0, yw); + } + }, + ex = { + draw: function(e, t) { + var n = Math.sqrt(t / 5) / 2; + e.moveTo(-3 * n, -n), + e.lineTo(-n, -n), + e.lineTo(-n, -3 * n), + e.lineTo(n, -3 * n), + e.lineTo(n, -n), + e.lineTo(3 * n, -n), + e.lineTo(3 * n, n), + e.lineTo(n, n), + e.lineTo(n, 3 * n), + e.lineTo(-n, 3 * n), + e.lineTo(-n, n), + e.lineTo(-3 * n, n), + e.closePath(); + } + }, + tx = Math.sqrt(1 / 3), + nx = 2 * tx, + rx = { + draw: function(e, t) { + var n = Math.sqrt(t / nx), + r = n * tx; + e.moveTo(0, -n), + e.lineTo(r, 0), + e.lineTo(0, n), + e.lineTo(-r, 0), + e.closePath(); + } + }, + ox = Math.sin(mw / 10) / Math.sin((7 * mw) / 10), + ix = Math.sin(yw / 10) * ox, + ax = -Math.cos(yw / 10) * ox, + sx = { + draw: function(e, t) { + var n = Math.sqrt(0.8908130915292852 * t), + r = ix * n, + o = ax * n; + e.moveTo(0, -n), e.lineTo(r, o); + for (var i = 1; i < 5; ++i) { + var a = (yw * i) / 5, + s = Math.cos(a), + c = Math.sin(a); + e.lineTo(c * n, -s * n), e.lineTo(s * r - c * o, c * r + s * o); } - }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = [ - 'جنوري', - 'فيبروري', - 'مارچ', - 'اپريل', - 'مئي', - 'جون', - 'جولاءِ', - 'آگسٽ', - 'سيپٽمبر', - 'آڪٽوبر', - 'نومبر', - 'ڊسمبر' - ], - n = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر']; - e.defineLocale('sd', { - months: t, - monthsShort: t, - weekdays: n, - weekdaysShort: n, - weekdaysMin: n, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd، D MMMM YYYY HH:mm' - }, - meridiemParse: /صبح|شام/, - isPM: function(e) { - return 'شام' === e; - }, - meridiem: function(e, t, n) { - return e < 12 ? 'صبح' : 'شام'; - }, - calendar: { - sameDay: '[اڄ] LT', - nextDay: '[سڀاڻي] LT', - nextWeek: 'dddd [اڳين هفتي تي] LT', - lastDay: '[ڪالهه] LT', - lastWeek: '[گزريل هفتي] dddd [تي] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s پوء', - past: '%s اڳ', - s: 'چند سيڪنڊ', - ss: '%d سيڪنڊ', - m: 'هڪ منٽ', - mm: '%d منٽ', - h: 'هڪ ڪلاڪ', - hh: '%d ڪلاڪ', - d: 'هڪ ڏينهن', - dd: '%d ڏينهن', - M: 'هڪ مهينو', - MM: '%d مهينا', - y: 'هڪ سال', - yy: '%d سال' - }, - preparse: function(e) { - return e.replace(/،/g, ','); - }, - postformat: function(e) { - return e.replace(/,/g, '،'); - }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('se', { - months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split( - '_' - ), - monthsShort: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split( - '_' - ), - weekdays: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split( - '_' - ), - weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'), - weekdaysMin: 's_v_m_g_d_b_L'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'MMMM D. [b.] YYYY', - LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm', - LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm' - }, - calendar: { - sameDay: '[otne ti] LT', - nextDay: '[ihttin ti] LT', - nextWeek: 'dddd [ti] LT', - lastDay: '[ikte ti] LT', - lastWeek: '[ovddit] dddd [ti] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s geažes', - past: 'maŋit %s', - s: 'moadde sekunddat', - ss: '%d sekunddat', - m: 'okta minuhta', - mm: '%d minuhtat', - h: 'okta diimmu', - hh: '%d diimmut', - d: 'okta beaivi', - dd: '%d beaivvit', - M: 'okta mánnu', - MM: '%d mánut', - y: 'okta jahki', - yy: '%d jagit' - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('si', { - months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split( - '_' - ), - monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split( - '_' - ), - weekdays: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split( - '_' - ), - weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'), - weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'a h:mm', - LTS: 'a h:mm:ss', - L: 'YYYY/MM/DD', - LL: 'YYYY MMMM D', - LLL: 'YYYY MMMM D, a h:mm', - LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss' - }, - calendar: { - sameDay: '[අද] LT[ට]', - nextDay: '[හෙට] LT[ට]', - nextWeek: 'dddd LT[ට]', - lastDay: '[ඊයේ] LT[ට]', - lastWeek: '[පසුගිය] dddd LT[ට]', - sameElse: 'L' - }, - relativeTime: { - future: '%sකින්', - past: '%sකට පෙර', - s: 'තත්පර කිහිපය', - ss: 'තත්පර %d', - m: 'මිනිත්තුව', - mm: 'මිනිත්තු %d', - h: 'පැය', - hh: 'පැය %d', - d: 'දිනය', - dd: 'දින %d', - M: 'මාසය', - MM: 'මාස %d', - y: 'වසර', - yy: 'වසර %d' - }, - dayOfMonthOrdinalParse: /\d{1,2} වැනි/, - ordinal: function(e) { - return e + ' වැනි'; - }, - meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./, - isPM: function(e) { - return 'ප.ව.' === e || 'පස් වරු' === e; - }, - meridiem: function(e, t, n) { - return e > 11 ? (n ? 'ප.ව.' : 'පස් වරු') : n ? 'පෙ.ව.' : 'පෙර වරු'; + e.closePath(); } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split( - '_' - ), - n = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_'); - function r(e) { - return e > 1 && e < 5; + }, + cx = { + draw: function(e, t) { + var n = Math.sqrt(t), + r = -n / 2; + e.rect(r, r, n, n); + } + }, + ux = Math.sqrt(3), + lx = { + draw: function(e, t) { + var n = -Math.sqrt(t / (3 * ux)); + e.moveTo(0, 2 * n), + e.lineTo(-ux * n, -n), + e.lineTo(ux * n, -n), + e.closePath(); + } + }, + fx = Math.sqrt(3) / 2, + dx = 1 / Math.sqrt(12), + px = 3 * (dx / 2 + 1), + hx = { + draw: function(e, t) { + var n = Math.sqrt(t / px), + r = n / 2, + o = n * dx, + i = r, + a = n * dx + n, + s = -i, + c = a; + e.moveTo(r, o), + e.lineTo(i, a), + e.lineTo(s, c), + e.lineTo(-0.5 * r - fx * o, fx * r + -0.5 * o), + e.lineTo(-0.5 * i - fx * a, fx * i + -0.5 * a), + e.lineTo(-0.5 * s - fx * c, fx * s + -0.5 * c), + e.lineTo(-0.5 * r + fx * o, -0.5 * o - fx * r), + e.lineTo(-0.5 * i + fx * a, -0.5 * a - fx * i), + e.lineTo(-0.5 * s + fx * c, -0.5 * c - fx * s), + e.closePath(); + } + }, + gx = [Zw, ex, rx, cx, sx, lx, hx], + mx = function() { + var e = sw(Zw), + t = sw(64), + n = null; + function r() { + var r; + if ( + (n || (n = r = Qo()), + e.apply(this, arguments).draw(n, +t.apply(this, arguments)), + r) + ) + return (n = null), r + '' || null; + } + return ( + (r.type = function(t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : sw(t)), r) + : e; + }), + (r.size = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : sw(+e)), r) + : t; + }), + (r.context = function(e) { + return arguments.length ? ((n = null == e ? null : e), r) : n; + }), + r + ); + }, + bx = function() {}; + function yx(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 vx(e) { + this._context = e; + } + vx.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: + yx(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: + yx(this, e, t); + } + (this._x0 = this._x1), + (this._x1 = e), + (this._y0 = this._y1), + (this._y1 = t); } - function o(e, t, n, o) { - var i = e + ' '; - switch (n) { - case 's': - return t || o ? 'pár sekúnd' : 'pár sekundami'; - case 'ss': - return t || o - ? i + (r(e) ? 'sekundy' : 'sekúnd') - : i + 'sekundami'; - case 'm': - return t ? 'minúta' : o ? 'minútu' : 'minútou'; - case 'mm': - return t || o ? i + (r(e) ? 'minúty' : 'minút') : i + 'minútami'; - case 'h': - return t ? 'hodina' : o ? 'hodinu' : 'hodinou'; - case 'hh': - return t || o ? i + (r(e) ? 'hodiny' : 'hodín') : i + 'hodinami'; - case 'd': - return t || o ? 'deň' : 'dňom'; - case 'dd': - return t || o ? i + (r(e) ? 'dni' : 'dní') : i + 'dňami'; - case 'M': - return t || o ? 'mesiac' : 'mesiacom'; - case 'MM': - return t || o - ? i + (r(e) ? 'mesiace' : 'mesiacov') - : i + 'mesiacmi'; - case 'y': - return t || o ? 'rok' : 'rokom'; - case 'yy': - return t || o ? i + (r(e) ? 'roky' : 'rokov') : i + 'rokmi'; + }; + var _x = function(e) { + return new vx(e); + }; + function wx(e) { + this._context = e; + } + wx.prototype = { + areaStart: bx, + areaEnd: bx, + 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: + yx(this, e, t); } + (this._x0 = this._x1), + (this._x1 = e), + (this._y0 = this._y1), + (this._y1 = t); } - e.defineLocale('sk', { - months: t, - monthsShort: n, - weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split( - '_' - ), - weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'), - weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd D. MMMM YYYY H:mm' - }, - calendar: { - sameDay: '[dnes o] LT', - nextDay: '[zajtra o] LT', - nextWeek: function() { - switch (this.day()) { - case 0: - return '[v nedeľu o] LT'; - case 1: - case 2: - return '[v] dddd [o] LT'; - case 3: - return '[v stredu o] LT'; - case 4: - return '[vo štvrtok o] LT'; - case 5: - return '[v piatok o] LT'; - case 6: - return '[v sobotu o] LT'; - } - }, - lastDay: '[včera o] LT', - lastWeek: function() { - switch (this.day()) { - case 0: - return '[minulú nedeľu o] LT'; - case 1: - case 2: - return '[minulý] dddd [o] LT'; - case 3: - return '[minulú stredu o] LT'; - case 4: - case 5: - return '[minulý] dddd [o] LT'; - case 6: - return '[minulú sobotu o] LT'; - } - }, - sameElse: 'L' - }, - relativeTime: { - future: 'za %s', - past: 'pred %s', - s: o, - ss: o, - m: o, - mm: o, - h: o, - hh: o, - d: o, - dd: o, - M: o, - MM: o, - y: o, - yy: o - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - function t(e, t, n, r) { - var o = e + ' '; - switch (n) { - case 's': - return t || r ? 'nekaj sekund' : 'nekaj sekundami'; - case 'ss': - return (o += - 1 === e - ? t - ? 'sekundo' - : 'sekundi' - : 2 === e - ? t || r - ? 'sekundi' - : 'sekundah' - : e < 5 - ? t || r - ? 'sekunde' - : 'sekundah' - : 'sekund'); - case 'm': - return t ? 'ena minuta' : 'eno minuto'; - case 'mm': - return (o += - 1 === e - ? t - ? 'minuta' - : 'minuto' - : 2 === e - ? t || r - ? 'minuti' - : 'minutama' - : e < 5 - ? t || r - ? 'minute' - : 'minutami' - : t || r - ? 'minut' - : 'minutami'); - case 'h': - return t ? 'ena ura' : 'eno uro'; - case 'hh': - return (o += - 1 === e - ? t - ? 'ura' - : 'uro' - : 2 === e - ? t || r - ? 'uri' - : 'urama' - : e < 5 - ? t || r - ? 'ure' - : 'urami' - : t || r - ? 'ur' - : 'urami'); - case 'd': - return t || r ? 'en dan' : 'enim dnem'; - case 'dd': - return (o += - 1 === e - ? t || r - ? 'dan' - : 'dnem' - : 2 === e - ? t || r - ? 'dni' - : 'dnevoma' - : t || r - ? 'dni' - : 'dnevi'); - case 'M': - return t || r ? 'en mesec' : 'enim mesecem'; - case 'MM': - return (o += - 1 === e - ? t || r - ? 'mesec' - : 'mesecem' - : 2 === e - ? t || r - ? 'meseca' - : 'mesecema' - : e < 5 - ? t || r - ? 'mesece' - : 'meseci' - : t || r - ? 'mesecev' - : 'meseci'); - case 'y': - return t || r ? 'eno leto' : 'enim letom'; - case 'yy': - return (o += - 1 === e - ? t || r - ? 'leto' - : 'letom' - : 2 === e - ? t || r - ? 'leti' - : 'letoma' - : e < 5 - ? t || r - ? 'leta' - : 'leti' - : t || r - ? 'let' - : 'leti'); + }; + var xx = function(e) { + return new wx(e); + }; + function Mx(e) { + this._context = e; + } + Mx.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: + yx(this, e, t); } + (this._x0 = this._x1), + (this._x1 = e), + (this._y0 = this._y1), + (this._y1 = t); } - e.defineLocale('sl', { - months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split( - '_' - ), - monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split( - '_' - ), - weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'), - weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm' - }, - calendar: { - sameDay: '[danes ob] LT', - nextDay: '[jutri ob] LT', - nextWeek: function() { - switch (this.day()) { - case 0: - return '[v] [nedeljo] [ob] LT'; - case 3: - return '[v] [sredo] [ob] LT'; - case 6: - return '[v] [soboto] [ob] LT'; - case 1: - case 2: - case 4: - case 5: - return '[v] dddd [ob] LT'; - } - }, - lastDay: '[včeraj ob] LT', - lastWeek: function() { - switch (this.day()) { - case 0: - return '[prejšnjo] [nedeljo] [ob] LT'; - case 3: - return '[prejšnjo] [sredo] [ob] LT'; - case 6: - return '[prejšnjo] [soboto] [ob] LT'; - case 1: - case 2: - case 4: - case 5: - return '[prejšnji] dddd [ob] LT'; - } - }, - sameElse: 'L' - }, - relativeTime: { - future: 'čez %s', - past: 'pred %s', - s: t, - ss: t, - m: t, - mm: t, - h: t, - hh: t, - d: t, - dd: t, - M: t, - MM: t, - y: t, - yy: t - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 7 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('sq', { - months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split( - '_' - ), - monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split( - '_' - ), - weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split( - '_' - ), - weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'), - weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'), - weekdaysParseExact: !0, - meridiemParse: /PD|MD/, - isPM: function(e) { - return 'M' === e.charAt(0); + }; + var kx = function(e) { + return new Mx(e); + }; + function Sx(e, t) { + (this._basis = new vx(e)), (this._beta = t); + } + Sx.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, o = e[0], i = t[0], a = e[n] - o, s = t[n] - i, c = -1; + ++c <= n; + + ) + (r = c / n), + this._basis.point( + this._beta * e[c] + (1 - this._beta) * (o + r * a), + this._beta * t[c] + (1 - this._beta) * (i + r * s) + ); + (this._x = this._y = null), this._basis.lineEnd(); + }, + point: function(e, t) { + this._x.push(+e), this._y.push(+t); + } + }; + var Ox = (function e(t) { + function n(e) { + return 1 === t ? new vx(e) : new Sx(e, t); + } + return ( + (n.beta = function(t) { + return e(+t); + }), + n + ); + })(0.85); + function Ex(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 Ax(e, t) { + (this._context = e), (this._k = (1 - t) / 6); + } + Ax.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: + Ex(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: + Ex(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 Tx = (function e(t) { + function n(e) { + return new Ax(e, t); + } + return ( + (n.tension = function(t) { + return e(+t); + }), + n + ); + })(0); + function Cx(e, t) { + (this._context = e), (this._k = (1 - t) / 6); + } + Cx.prototype = { + areaStart: bx, + areaEnd: bx, + 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: + Ex(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 Lx = (function e(t) { + function n(e) { + return new Cx(e, t); + } + return ( + (n.tension = function(t) { + return e(+t); + }), + n + ); + })(0); + function Px(e, t) { + (this._context = e), (this._k = (1 - t) / 6); + } + Px.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: + Ex(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 Dx = (function e(t) { + function n(e) { + return new Px(e, t); + } + return ( + (n.tension = function(t) { + return e(+t); + }), + n + ); + })(0); + function jx(e, t, n) { + var r = e._x1, + o = e._y1, + i = e._x2, + a = e._y2; + if (e._l01_a > gw) { + var s = 2 * e._l01_2a + 3 * e._l01_a * e._l12_a + e._l12_2a, + c = 3 * e._l01_a * (e._l01_a + e._l12_a); + (r = (r * s - e._x0 * e._l12_2a + e._x2 * e._l01_2a) / c), + (o = (o * s - e._y0 * e._l12_2a + e._y2 * e._l01_2a) / c); + } + if (e._l23_a > gw) { + var u = 2 * e._l23_2a + 3 * e._l23_a * e._l12_a + e._l12_2a, + l = 3 * e._l23_a * (e._l23_a + e._l12_a); + (i = (i * u + e._x1 * e._l23_2a - t * e._l12_2a) / l), + (a = (a * u + e._y1 * e._l23_2a - n * e._l12_2a) / l); + } + e._context.bezierCurveTo(r, o, i, a, e._x2, e._y2); + } + function zx(e, t) { + (this._context = e), (this._alpha = t); + } + zx.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: + jx(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 Nx = (function e(t) { + function n(e) { + return t ? new zx(e, t) : new Ax(e, 0); + } + return ( + (n.alpha = function(t) { + return e(+t); + }), + n + ); + })(0.5); + function Rx(e, t) { + (this._context = e), (this._alpha = t); + } + Rx.prototype = { + areaStart: bx, + areaEnd: bx, + 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: + jx(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 Ix = (function e(t) { + function n(e) { + return t ? new Rx(e, t) : new Cx(e, 0); + } + return ( + (n.alpha = function(t) { + return e(+t); + }), + n + ); + })(0.5); + function Fx(e, t) { + (this._context = e), (this._alpha = t); + } + Fx.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: + jx(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 qx = (function e(t) { + function n(e) { + return t ? new Fx(e, t) : new Px(e, 0); + } + return ( + (n.alpha = function(t) { + return e(+t); + }), + n + ); + })(0.5); + function Bx(e) { + this._context = e; + } + Bx.prototype = { + areaStart: bx, + areaEnd: bx, + 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)); + } + }; + var Hx = function(e) { + return new Bx(e); + }; + function Yx(e) { + return e < 0 ? -1 : 1; + } + function Wx(e, t, n) { + var r = e._x1 - e._x0, + o = t - e._x1, + i = (e._y1 - e._y0) / (r || (o < 0 && -0)), + a = (n - e._y1) / (o || (r < 0 && -0)), + s = (i * o + a * r) / (r + o); + return ( + (Yx(i) + Yx(a)) * + Math.min(Math.abs(i), Math.abs(a), 0.5 * Math.abs(s)) || 0 + ); + } + function Vx(e, t) { + var n = e._x1 - e._x0; + return n ? ((3 * (e._y1 - e._y0)) / n - t) / 2 : t; + } + function Ux(e, t, n) { + var r = e._x0, + o = e._y0, + i = e._x1, + a = e._y1, + s = (i - r) / 3; + e._context.bezierCurveTo(r + s, o + s * t, i - s, a - s * n, i, a); + } + function Xx(e) { + this._context = e; + } + function Gx(e) { + this._context = new Kx(e); + } + function Kx(e) { + this._context = e; + } + function $x(e) { + return new Xx(e); + } + function Qx(e) { + return new Gx(e); + } + function Jx(e) { + this._context = e; + } + function Zx(e) { + var t, + n, + r = e.length - 1, + o = new Array(r), + i = new Array(r), + a = new Array(r); + for (o[0] = 0, i[0] = 2, a[0] = e[0] + 2 * e[1], t = 1; t < r - 1; ++t) + (o[t] = 1), (i[t] = 4), (a[t] = 4 * e[t] + 2 * e[t + 1]); + for ( + o[r - 1] = 2, i[r - 1] = 7, a[r - 1] = 8 * e[r - 1] + e[r], t = 1; + t < r; + ++t + ) + (n = o[t] / i[t - 1]), (i[t] -= n), (a[t] -= n * a[t - 1]); + for (o[r - 1] = a[r - 1] / i[r - 1], t = r - 2; t >= 0; --t) + o[t] = (a[t] - o[t + 1]) / i[t]; + for (i[r - 1] = (e[r] + o[r - 1]) / 2, t = 0; t < r - 1; ++t) + i[t] = 2 * e[t + 1] - o[t + 1]; + return [o, i]; + } + (Xx.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: + Ux(this, this._t0, Vx(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), Ux(this, Vx(this, (n = Wx(this, e, t))), n); + break; + default: + Ux(this, this._t0, (n = Wx(this, e, t))); + } + (this._x0 = this._x1), + (this._x1 = e), + (this._y0 = this._y1), + (this._y1 = t), + (this._t0 = n); + } + } + }), + ((Gx.prototype = Object.create(Xx.prototype)).point = function(e, t) { + Xx.prototype.point.call(this, t, e); + }), + (Kx.prototype = { + moveTo: function(e, t) { + this._context.moveTo(t, e); }, - meridiem: function(e, t, n) { - return e < 12 ? 'PD' : 'MD'; + closePath: function() { + this._context.closePath(); }, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' + lineTo: function(e, t) { + this._context.lineTo(t, e); }, - calendar: { - sameDay: '[Sot në] LT', - nextDay: '[Nesër në] LT', - nextWeek: 'dddd [në] LT', - lastDay: '[Dje në] LT', - lastWeek: 'dddd [e kaluar në] LT', - sameElse: 'L' + bezierCurveTo: function(e, t, n, r, o, i) { + this._context.bezierCurveTo(t, e, r, n, i, o); + } + }), + (Jx.prototype = { + areaStart: function() { + this._line = 0; }, - relativeTime: { - future: 'në %s', - past: '%s më parë', - s: 'disa sekonda', - ss: '%d sekonda', - m: 'një minutë', - mm: '%d minuta', - h: 'një orë', - hh: '%d orë', - d: 'një ditë', - dd: '%d ditë', - M: 'një muaj', - MM: '%d muaj', - y: 'një vit', - yy: '%d vite' + areaEnd: function() { + this._line = NaN; }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = { - words: { - ss: ['sekunda', 'sekunde', 'sekundi'], - m: ['jedan minut', 'jedne minute'], - mm: ['minut', 'minute', 'minuta'], - h: ['jedan sat', 'jednog sata'], - hh: ['sat', 'sata', 'sati'], - dd: ['dan', 'dana', 'dana'], - MM: ['mesec', 'meseca', 'meseci'], - yy: ['godina', 'godine', 'godina'] + lineStart: function() { + (this._x = []), (this._y = []); }, - correctGrammaticalCase: function(e, t) { - return 1 === e ? t[0] : e >= 2 && e <= 4 ? t[1] : t[2]; + 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 = Zx(e), o = Zx(t), i = 0, a = 1; a < n; ++i, ++a) + this._context.bezierCurveTo( + r[0][i], + o[0][i], + r[1][i], + o[1][i], + e[a], + t[a] + ); + (this._line || (0 !== this._line && 1 === n)) && + this._context.closePath(), + (this._line = 1 - this._line), + (this._x = this._y = null); }, - translate: function(e, n, r) { - var o = t.words[r]; - return 1 === r.length - ? n - ? o[0] - : o[1] - : e + ' ' + t.correctGrammaticalCase(e, o); + point: function(e, t) { + this._x.push(+e), this._y.push(+t); } - }; - e.defineLocale('sr', { - months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split( - '_' - ), - monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split( - '_' - ), - weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'), - weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm' - }, - calendar: { - sameDay: '[danas u] LT', - nextDay: '[sutra u] LT', - nextWeek: function() { - switch (this.day()) { - case 0: - return '[u] [nedelju] [u] LT'; - case 3: - return '[u] [sredu] [u] LT'; - case 6: - return '[u] [subotu] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[u] dddd [u] LT'; - } - }, - lastDay: '[juče u] LT', - lastWeek: function() { - return [ - '[prošle] [nedelje] [u] LT', - '[prošlog] [ponedeljka] [u] LT', - '[prošlog] [utorka] [u] LT', - '[prošle] [srede] [u] LT', - '[prošlog] [četvrtka] [u] LT', - '[prošlog] [petka] [u] LT', - '[prošle] [subote] [u] LT' - ][this.day()]; - }, - sameElse: 'L' - }, - relativeTime: { - future: 'za %s', - past: 'pre %s', - s: 'nekoliko sekundi', - ss: t.translate, - m: t.translate, - mm: t.translate, - h: t.translate, - hh: t.translate, - d: 'dan', - dd: t.translate, - M: 'mesec', - MM: t.translate, - y: 'godinu', - yy: t.translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 7 } }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = { - words: { - ss: ['секунда', 'секунде', 'секунди'], - m: ['један минут', 'једне минуте'], - mm: ['минут', 'минуте', 'минута'], - h: ['један сат', 'једног сата'], - hh: ['сат', 'сата', 'сати'], - dd: ['дан', 'дана', 'дана'], - MM: ['месец', 'месеца', 'месеци'], - yy: ['година', 'године', 'година'] - }, - correctGrammaticalCase: function(e, t) { - return 1 === e ? t[0] : e >= 2 && e <= 4 ? t[1] : t[2]; - }, - translate: function(e, n, r) { - var o = t.words[r]; - return 1 === r.length - ? n - ? o[0] - : o[1] - : e + ' ' + t.correctGrammaticalCase(e, o); + var eM = function(e) { + return new Jx(e); + }; + function tM(e, t) { + (this._context = e), (this._t = t); + } + tM.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 nM = function(e) { + return new tM(e, 0.5); + }; + function rM(e) { + return new tM(e, 0); + } + function oM(e) { + return new tM(e, 1); + } + var iM = function(e, t) { + if ((o = e.length) > 1) + for (var n, r, o, i = 1, a = e[t[0]], s = a.length; i < o; ++i) + for (r = a, a = e[t[i]], n = 0; n < s; ++n) + a[n][1] += a[n][0] = isNaN(r[n][1]) ? r[n][0] : r[n][1]; + }, + aM = function(e) { + for (var t = e.length, n = new Array(t); --t >= 0; ) n[t] = t; + return n; }; - e.defineLocale('sr-cyrl', { - months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split( - '_' - ), - monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split( - '_' - ), - weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'), - weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm' - }, - calendar: { - sameDay: '[данас у] LT', - nextDay: '[сутра у] LT', - nextWeek: function() { - switch (this.day()) { - case 0: - return '[у] [недељу] [у] LT'; - case 3: - return '[у] [среду] [у] LT'; - case 6: - return '[у] [суботу] [у] LT'; - case 1: - case 2: - case 4: - case 5: - return '[у] dddd [у] LT'; + function sM(e, t) { + return e[t]; + } + var cM = function() { + var e = sw([]), + t = aM, + n = iM, + r = sM; + function o(o) { + var i, + a, + s = e.apply(this, arguments), + c = o.length, + u = s.length, + l = new Array(u); + for (i = 0; i < u; ++i) { + for ( + var f, d = s[i], p = (l[i] = new Array(c)), h = 0; + h < c; + ++h + ) + (p[h] = f = [0, +r(o[h], d, h, o)]), (f.data = o[h]); + p.key = d; + } + for (i = 0, a = t(l); i < u; ++i) l[a[i]].index = i; + return n(l, a), l; + } + return ( + (o.keys = function(t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : sw(Yw.call(t))), o) + : e; + }), + (o.value = function(e) { + return arguments.length + ? ((r = 'function' == typeof e ? e : sw(+e)), o) + : r; + }), + (o.order = function(e) { + return arguments.length + ? ((t = + null == e + ? aM + : 'function' == typeof e + ? e + : sw(Yw.call(e))), + o) + : t; + }), + (o.offset = function(e) { + return arguments.length ? ((n = null == e ? iM : e), o) : n; + }), + o + ); + }, + uM = function(e, t) { + if ((r = e.length) > 0) { + for (var n, r, o, i = 0, a = e[0].length; i < a; ++i) { + for (o = n = 0; n < r; ++n) o += e[n][i][1] || 0; + if (o) for (n = 0; n < r; ++n) e[n][i][1] /= o; + } + iM(e, t); + } + }, + lM = function(e, t) { + if ((s = e.length) > 0) + for (var n, r, o, i, a, s, c = 0, u = e[t[0]].length; c < u; ++c) + for (i = a = 0, n = 0; n < s; ++n) + (o = (r = e[t[n]][c])[1] - r[0]) > 0 + ? ((r[0] = i), (r[1] = i += o)) + : o < 0 + ? ((r[1] = a), (r[0] = a += o)) + : ((r[0] = 0), (r[1] = o)); + }, + fM = function(e, t) { + if ((n = e.length) > 0) { + for (var n, r = 0, o = e[t[0]], i = o.length; r < i; ++r) { + for (var a = 0, s = 0; a < n; ++a) s += e[a][r][1] || 0; + o[r][1] += o[r][0] = -s / 2; + } + iM(e, t); + } + }, + dM = function(e, t) { + if ((o = e.length) > 0 && (r = (n = e[t[0]]).length) > 0) { + for (var n, r, o, i = 0, a = 1; a < r; ++a) { + for (var s = 0, c = 0, u = 0; s < o; ++s) { + for ( + var l = e[t[s]], + f = l[a][1] || 0, + d = (f - (l[a - 1][1] || 0)) / 2, + p = 0; + p < s; + ++p + ) { + var h = e[t[p]]; + d += (h[a][1] || 0) - (h[a - 1][1] || 0); + } + (c += f), (u += d * f); } - }, - lastDay: '[јуче у] LT', - lastWeek: function() { - return [ - '[прошле] [недеље] [у] LT', - '[прошлог] [понедељка] [у] LT', - '[прошлог] [уторка] [у] LT', - '[прошле] [среде] [у] LT', - '[прошлог] [четвртка] [у] LT', - '[прошлог] [петка] [у] LT', - '[прошле] [суботе] [у] LT' - ][this.day()]; - }, - sameElse: 'L' - }, - relativeTime: { - future: 'за %s', - past: 'пре %s', - s: 'неколико секунди', - ss: t.translate, - m: t.translate, - mm: t.translate, - h: t.translate, - hh: t.translate, - d: 'дан', - dd: t.translate, - M: 'месец', - MM: t.translate, - y: 'годину', - yy: t.translate - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 7 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('ss', { - months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split( - '_' - ), - monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split( - '_' - ), - weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split( - '_' - ), - weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'), - weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A' - }, - calendar: { - sameDay: '[Namuhla nga] LT', - nextDay: '[Kusasa nga] LT', - nextWeek: 'dddd [nga] LT', - lastDay: '[Itolo nga] LT', - lastWeek: 'dddd [leliphelile] [nga] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'nga %s', - past: 'wenteka nga %s', - s: 'emizuzwana lomcane', - ss: '%d mzuzwana', - m: 'umzuzu', - mm: '%d emizuzu', - h: 'lihora', - hh: '%d emahora', - d: 'lilanga', - dd: '%d emalanga', - M: 'inyanga', - MM: '%d tinyanga', - y: 'umnyaka', - yy: '%d iminyaka' - }, - meridiemParse: /ekuseni|emini|entsambama|ebusuku/, - meridiem: function(e, t, n) { - return e < 11 - ? 'ekuseni' - : e < 15 - ? 'emini' - : e < 19 - ? 'entsambama' - : 'ebusuku'; - }, - meridiemHour: function(e, t) { - return ( - 12 === e && (e = 0), - 'ekuseni' === t - ? e - : 'emini' === t - ? e >= 11 - ? e - : e + 12 - : 'entsambama' === t || 'ebusuku' === t - ? 0 === e - ? 0 - : e + 12 - : void 0 - ); - }, - dayOfMonthOrdinalParse: /\d{1,2}/, - ordinal: '%d', - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('sv', { - months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split( - '_' - ), - monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split( - '_' - ), - weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split( - '_' - ), - weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'), - weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [kl.] HH:mm', - LLLL: 'dddd D MMMM YYYY [kl.] HH:mm', - lll: 'D MMM YYYY HH:mm', - llll: 'ddd D MMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Idag] LT', - nextDay: '[Imorgon] LT', - lastDay: '[Igår] LT', - nextWeek: '[På] dddd LT', - lastWeek: '[I] dddd[s] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'om %s', - past: 'för %s sedan', - s: 'några sekunder', - ss: '%d sekunder', - m: 'en minut', - mm: '%d minuter', - h: 'en timme', - hh: '%d timmar', - d: 'en dag', - dd: '%d dagar', - M: 'en månad', - MM: '%d månader', - y: 'ett år', - yy: '%d år' - }, - dayOfMonthOrdinalParse: /\d{1,2}(e|a)/, - ordinal: function(e) { - var t = e % 10; - return ( - e + - (1 == ~~((e % 100) / 10) ? 'e' : 1 === t || 2 === t ? 'a' : 'e') - ); - }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('sw', { - months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split( - '_' - ), - weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split( - '_' - ), - weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'), - weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[leo saa] LT', - nextDay: '[kesho saa] LT', - nextWeek: '[wiki ijayo] dddd [saat] LT', - lastDay: '[jana] LT', - lastWeek: '[wiki iliyopita] dddd [saat] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s baadaye', - past: 'tokea %s', - s: 'hivi punde', - ss: 'sekunde %d', - m: 'dakika moja', - mm: 'dakika %d', - h: 'saa limoja', - hh: 'masaa %d', - d: 'siku moja', - dd: 'masiku %d', - M: 'mwezi mmoja', - MM: 'miezi %d', - y: 'mwaka mmoja', - yy: 'miaka %d' - }, - week: { dow: 1, doy: 7 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = { - 1: '௧', - 2: '௨', - 3: '௩', - 4: '௪', - 5: '௫', - 6: '௬', - 7: '௭', - 8: '௮', - 9: '௯', - 0: '௦' - }, - n = { - '௧': '1', - '௨': '2', - '௩': '3', - '௪': '4', - '௫': '5', - '௬': '6', - '௭': '7', - '௮': '8', - '௯': '9', - '௦': '0' - }; - e.defineLocale('ta', { - months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split( - '_' - ), - monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split( - '_' - ), - weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split( - '_' - ), - weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split( - '_' - ), - weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, HH:mm', - LLLL: 'dddd, D MMMM YYYY, HH:mm' - }, - calendar: { - sameDay: '[இன்று] LT', - nextDay: '[நாளை] LT', - nextWeek: 'dddd, LT', - lastDay: '[நேற்று] LT', - lastWeek: '[கடந்த வாரம்] dddd, LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s இல்', - past: '%s முன்', - s: 'ஒரு சில விநாடிகள்', - ss: '%d விநாடிகள்', - m: 'ஒரு நிமிடம்', - mm: '%d நிமிடங்கள்', - h: 'ஒரு மணி நேரம்', - hh: '%d மணி நேரம்', - d: 'ஒரு நாள்', - dd: '%d நாட்கள்', - M: 'ஒரு மாதம்', - MM: '%d மாதங்கள்', - y: 'ஒரு வருடம்', - yy: '%d ஆண்டுகள்' - }, - dayOfMonthOrdinalParse: /\d{1,2}வது/, - ordinal: function(e) { - return e + 'வது'; - }, - preparse: function(e) { - return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function(e) { - return n[e]; - }); - }, - postformat: function(e) { - return e.replace(/\d/g, function(e) { - return t[e]; - }); - }, - meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/, - meridiem: function(e, t, n) { - return e < 2 - ? ' யாமம்' - : e < 6 - ? ' வைகறை' - : e < 10 - ? ' காலை' - : e < 14 - ? ' நண்பகல்' - : e < 18 - ? ' எற்பாடு' - : e < 22 - ? ' மாலை' - : ' யாமம்'; - }, - meridiemHour: function(e, t) { - return ( - 12 === e && (e = 0), - 'யாமம்' === t - ? e < 2 - ? e - : e + 12 - : 'வைகறை' === t || 'காலை' === t || ('நண்பகல்' === t && e >= 10) - ? e - : e + 12 - ); - }, - week: { dow: 0, doy: 6 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('te', { - months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split( - '_' - ), - monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split( - '_' - ), - weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'), - weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'), - longDateFormat: { - LT: 'A h:mm', - LTS: 'A h:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm', - LLLL: 'dddd, D MMMM YYYY, A h:mm' - }, - calendar: { - sameDay: '[నేడు] LT', - nextDay: '[రేపు] LT', - nextWeek: 'dddd, LT', - lastDay: '[నిన్న] LT', - lastWeek: '[గత] dddd, LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s లో', - past: '%s క్రితం', - s: 'కొన్ని క్షణాలు', - ss: '%d సెకన్లు', - m: 'ఒక నిమిషం', - mm: '%d నిమిషాలు', - h: 'ఒక గంట', - hh: '%d గంటలు', - d: 'ఒక రోజు', - dd: '%d రోజులు', - M: 'ఒక నెల', - MM: '%d నెలలు', - y: 'ఒక సంవత్సరం', - yy: '%d సంవత్సరాలు' - }, - dayOfMonthOrdinalParse: /\d{1,2}వ/, - ordinal: '%dవ', - meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/, - meridiemHour: function(e, t) { - return ( - 12 === e && (e = 0), - 'రాత్రి' === t - ? e < 4 - ? e - : e + 12 - : 'ఉదయం' === t - ? e - : 'మధ్యాహ్నం' === t - ? e >= 10 - ? e - : e + 12 - : 'సాయంత్రం' === t - ? e + 12 - : void 0 - ); - }, - meridiem: function(e, t, n) { - return e < 4 - ? 'రాత్రి' - : e < 10 - ? 'ఉదయం' - : e < 17 - ? 'మధ్యాహ్నం' - : e < 20 - ? 'సాయంత్రం' - : 'రాత్రి'; - }, - week: { dow: 0, doy: 6 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('tet', { - months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split( - '_' - ), - monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split( - '_' - ), - weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split( - '_' - ), - weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'), - weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Ohin iha] LT', - nextDay: '[Aban iha] LT', - nextWeek: 'dddd [iha] LT', - lastDay: '[Horiseik iha] LT', - lastWeek: 'dddd [semana kotuk] [iha] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'iha %s', - past: '%s liuba', - s: 'minutu balun', - ss: 'minutu %d', - m: 'minutu ida', - mm: 'minutu %d', - h: 'oras ida', - hh: 'oras %d', - d: 'loron ida', - dd: 'loron %d', - M: 'fulan ida', - MM: 'fulan %d', - y: 'tinan ida', - yy: 'tinan %d' - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function(e) { - var t = e % 10; - return ( - e + - (1 == ~~((e % 100) / 10) - ? 'th' - : 1 === t - ? 'st' - : 2 === t - ? 'nd' - : 3 === t - ? 'rd' - : 'th') - ); - }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = { - 0: '-ум', - 1: '-ум', - 2: '-юм', - 3: '-юм', - 4: '-ум', - 5: '-ум', - 6: '-ум', - 7: '-ум', - 8: '-ум', - 9: '-ум', - 10: '-ум', - 12: '-ум', - 13: '-ум', - 20: '-ум', - 30: '-юм', - 40: '-ум', - 50: '-ум', - 60: '-ум', - 70: '-ум', - 80: '-ум', - 90: '-ум', - 100: '-ум' + (n[a - 1][1] += n[a - 1][0] = i), c && (i -= u / c); + } + (n[a - 1][1] += n[a - 1][0] = i), iM(e, t); + } + }, + pM = function(e) { + var t = e.map(hM); + return aM(e).sort(function(e, n) { + return t[e] - t[n]; + }); }; - e.defineLocale('tg', { - months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split( - '_' - ), - monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split( - '_' - ), - weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split( - '_' - ), - weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'), - weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Имрӯз соати] LT', - nextDay: '[Пагоҳ соати] LT', - lastDay: '[Дирӯз соати] LT', - nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT', - lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'баъди %s', - past: '%s пеш', - s: 'якчанд сония', - m: 'як дақиқа', - mm: '%d дақиқа', - h: 'як соат', - hh: '%d соат', - d: 'як рӯз', - dd: '%d рӯз', - M: 'як моҳ', - MM: '%d моҳ', - y: 'як сол', - yy: '%d сол' - }, - meridiemParse: /шаб|субҳ|рӯз|бегоҳ/, - meridiemHour: function(e, t) { - return ( - 12 === e && (e = 0), - 'шаб' === t - ? e < 4 - ? e - : e + 12 - : 'субҳ' === t - ? e - : 'рӯз' === t - ? e >= 11 - ? e - : e + 12 - : 'бегоҳ' === t - ? e + 12 - : void 0 - ); - }, - meridiem: function(e, t, n) { - return e < 4 - ? 'шаб' - : e < 11 - ? 'субҳ' - : e < 16 - ? 'рӯз' - : e < 19 - ? 'бегоҳ' - : 'шаб'; - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/, - ordinal: function(e) { - return e + (t[e] || t[e % 10] || t[e >= 100 ? 100 : null]); - }, - week: { dow: 1, doy: 7 } + function hM(e) { + for (var t, n = -1, r = 0, o = e.length, i = -1 / 0; ++n < o; ) + (t = +e[n][1]) > i && ((i = t), (r = n)); + return r; + } + var gM = function(e) { + var t = e.map(mM); + return aM(e).sort(function(e, n) { + return t[e] - t[n]; }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('th', { - months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split( - '_' - ), - monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'), - weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split( - '_' - ), - weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY เวลา H:mm', - LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm' - }, - meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/, - isPM: function(e) { - return 'หลังเที่ยง' === e; - }, - meridiem: function(e, t, n) { - return e < 12 ? 'ก่อนเที่ยง' : 'หลังเที่ยง'; - }, - calendar: { - sameDay: '[วันนี้ เวลา] LT', - nextDay: '[พรุ่งนี้ เวลา] LT', - nextWeek: 'dddd[หน้า เวลา] LT', - lastDay: '[เมื่อวานนี้ เวลา] LT', - lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'อีก %s', - past: '%sที่แล้ว', - s: 'ไม่กี่วินาที', - ss: '%d วินาที', - m: '1 นาที', - mm: '%d นาที', - h: '1 ชั่วโมง', - hh: '%d ชั่วโมง', - d: '1 วัน', - dd: '%d วัน', - M: '1 เดือน', - MM: '%d เดือน', - y: '1 ปี', - yy: '%d ปี' + }; + function mM(e) { + for (var t, n = 0, r = -1, o = e.length; ++r < o; ) + (t = +e[r][1]) && (n += t); + return n; + } + var bM = function(e) { + return gM(e).reverse(); + }, + yM = function(e) { + var t, + n, + r = e.length, + o = e.map(mM), + i = pM(e), + a = 0, + s = 0, + c = [], + u = []; + for (t = 0; t < r; ++t) + (n = i[t]), + a < s ? ((a += o[n]), c.push(n)) : ((s += o[n]), u.push(n)); + return u.reverse().concat(c); + }, + vM = function(e) { + return aM(e).reverse(); + }; + var _M = Date.prototype.toISOString + ? function(e) { + return e.toISOString(); } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('tl-ph', { - months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split( - '_' - ), - monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split( - '_' - ), - weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split( - '_' - ), - weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'), - weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'MM/D/YYYY', - LL: 'MMMM D, YYYY', - LLL: 'MMMM D, YYYY HH:mm', - LLLL: 'dddd, MMMM DD, YYYY HH:mm' - }, - calendar: { - sameDay: 'LT [ngayong araw]', - nextDay: '[Bukas ng] LT', - nextWeek: 'LT [sa susunod na] dddd', - lastDay: 'LT [kahapon]', - lastWeek: 'LT [noong nakaraang] dddd', - sameElse: 'L' - }, - relativeTime: { - future: 'sa loob ng %s', - past: '%s ang nakalipas', - s: 'ilang segundo', - ss: '%d segundo', - m: 'isang minuto', - mm: '%d minuto', - h: 'isang oras', - hh: '%d oras', - d: 'isang araw', - dd: '%d araw', - M: 'isang buwan', - MM: '%d buwan', - y: 'isang taon', - yy: '%d taon' - }, - dayOfMonthOrdinalParse: /\d{1,2}/, - ordinal: function(e) { + : Pb('%Y-%m-%dT%H:%M:%S.%LZ'); + var wM = +new Date('2000-01-01T00:00:00.000Z') + ? function(e) { + var t = new Date(e); + return isNaN(t) ? null : t; + } + : Db('%Y-%m-%dT%H:%M:%S.%LZ'), + xM = function(e, t, n) { + var r = new $n(), + o = t; + return null == t + ? (r.restart(e, t, n), r) + : ((t = +t), + (n = null == n ? Gn() : +n), + r.restart( + function i(a) { + (a += o), r.restart(i, (o += t), n), e(a); + }, + t, + n + ), + r); + }, + MM = function(e) { + return function() { return e; - }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_'); - function n(e, n, r, o) { - var i = (function(e) { - var n = Math.floor((e % 1e3) / 100), - r = Math.floor((e % 100) / 10), - o = e % 10, - i = ''; - return ( - n > 0 && (i += t[n] + 'vatlh'), - r > 0 && (i += ('' !== i ? ' ' : '') + t[r] + 'maH'), - o > 0 && (i += ('' !== i ? ' ' : '') + t[o]), - '' === i ? 'pagh' : i - ); - })(e); - switch (r) { - case 'ss': - return i + ' lup'; - case 'mm': - return i + ' tup'; - case 'hh': - return i + ' rep'; - case 'dd': - return i + ' jaj'; - case 'MM': - return i + ' jar'; - case 'yy': - return i + ' DIS'; - } - } - e.defineLocale('tlh', { - months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split( - '_' - ), - monthsShort: 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split( - '_' - ), - weekdaysShort: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split( - '_' - ), - weekdaysMin: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split( - '_' - ), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[DaHjaj] LT', - nextDay: '[wa’leS] LT', - nextWeek: 'LLL', - lastDay: '[wa’Hu’] LT', - lastWeek: 'LLL', - sameElse: 'L' - }, - relativeTime: { - future: function(e) { - var t = e; - return (t = - -1 !== e.indexOf('jaj') - ? t.slice(0, -3) + 'leS' - : -1 !== e.indexOf('jar') - ? t.slice(0, -3) + 'waQ' - : -1 !== e.indexOf('DIS') - ? t.slice(0, -3) + 'nem' - : t + ' pIq'); - }, - past: function(e) { - var t = e; - return (t = - -1 !== e.indexOf('jaj') - ? t.slice(0, -3) + 'Hu’' - : -1 !== e.indexOf('jar') - ? t.slice(0, -3) + 'wen' - : -1 !== e.indexOf('DIS') - ? t.slice(0, -3) + 'ben' - : t + ' ret'); - }, - s: 'puS lup', - ss: n, - m: 'wa’ tup', - mm: n, - h: 'wa’ rep', - hh: n, - d: 'wa’ jaj', - dd: n, - M: 'wa’ jar', - MM: n, - y: 'wa’ DIS', - yy: n - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = { - 1: "'inci", - 5: "'inci", - 8: "'inci", - 70: "'inci", - 80: "'inci", - 2: "'nci", - 7: "'nci", - 20: "'nci", - 50: "'nci", - 3: "'üncü", - 4: "'üncü", - 100: "'üncü", - 6: "'ncı", - 9: "'uncu", - 10: "'uncu", - 30: "'uncu", - 60: "'ıncı", - 90: "'ıncı" + }; }; - e.defineLocale('tr', { - months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split( - '_' - ), - monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split( - '_' - ), - weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split( - '_' - ), - weekdaysShort: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'), - weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[bugün saat] LT', - nextDay: '[yarın saat] LT', - nextWeek: '[gelecek] dddd [saat] LT', - lastDay: '[dün] LT', - lastWeek: '[geçen] dddd [saat] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s sonra', - past: '%s önce', - s: 'birkaç saniye', - ss: '%d saniye', - m: 'bir dakika', - mm: '%d dakika', - h: 'bir saat', - hh: '%d saat', - d: 'bir gün', - dd: '%d gün', - M: 'bir ay', - MM: '%d ay', - y: 'bir yıl', - yy: '%d yıl' - }, - ordinal: function(e, n) { - switch (n) { - case 'd': - case 'D': - case 'Do': - case 'DD': - return e; - default: - if (0 === e) return e + "'ıncı"; - var r = e % 10; + function kM(e) { + return e[0]; + } + function SM(e) { + return e[1]; + } + function OM() { + this._ = null; + } + function EM(e) { + e.U = e.C = e.L = e.R = e.P = e.N = null; + } + function AM(e, t) { + var n = t, + r = t.R, + o = n.U; + o ? (o.L === n ? (o.L = r) : (o.R = r)) : (e._ = r), + (r.U = o), + (n.U = r), + (n.R = r.L), + n.R && (n.R.U = n), + (r.L = n); + } + function TM(e, t) { + var n = t, + r = t.L, + o = n.U; + o ? (o.L === n ? (o.L = r) : (o.R = r)) : (e._ = r), + (r.U = o), + (n.U = r), + (n.L = r.R), + n.L && (n.L.U = n), + (r.R = n); + } + function CM(e) { + for (; e.L; ) e = e.L; + return e; + } + OM.prototype = { + constructor: OM, + insert: function(e, t) { + var n, r, o; + if (e) { + if (((t.P = e), (t.N = e.N), e.N && (e.N.P = t), (e.N = t), e.R)) { + for (e = e.R; e.L; ) e = e.L; + e.L = t; + } else e.R = t; + n = e; + } else + this._ + ? ((e = CM(this._)), + (t.P = null), + (t.N = e), + (e.P = e.L = t), + (n = e)) + : ((t.P = t.N = null), (this._ = t), (n = null)); + for (t.L = t.R = null, t.U = n, t.C = !0, e = t; n && n.C; ) + n === (r = n.U).L + ? (o = r.R) && o.C + ? ((n.C = o.C = !1), (r.C = !0), (e = r)) + : (e === n.R && (AM(this, n), (n = (e = n).U)), + (n.C = !1), + (r.C = !0), + TM(this, r)) + : (o = r.L) && o.C + ? ((n.C = o.C = !1), (r.C = !0), (e = r)) + : (e === n.L && (TM(this, n), (n = (e = n).U)), + (n.C = !1), + (r.C = !0), + AM(this, r)), + (n = e.U); + this._.C = !1; + }, + remove: function(e) { + e.N && (e.N.P = e.P), e.P && (e.P.N = e.N), (e.N = e.P = null); + var t, + n, + r, + o = e.U, + i = e.L, + a = e.R; + if ( + ((n = i ? (a ? CM(a) : i) : a), + o ? (o.L === e ? (o.L = n) : (o.R = n)) : (this._ = n), + i && a + ? ((r = n.C), + (n.C = e.C), + (n.L = i), + (i.U = n), + n !== a + ? ((o = n.U), + (n.U = e.U), + (e = n.R), + (o.L = e), + (n.R = a), + (a.U = n)) + : ((n.U = o), (o = n), (e = n.R))) + : ((r = e.C), (e = n)), + e && (e.U = o), + !r) + ) + if (e && e.C) e.C = !1; + else { + do { + if (e === this._) break; + if (e === o.L) { + if ( + ((t = o.R).C && + ((t.C = !1), (o.C = !0), AM(this, o), (t = o.R)), + (t.L && t.L.C) || (t.R && t.R.C)) + ) { + (t.R && t.R.C) || + ((t.L.C = !1), (t.C = !0), TM(this, t), (t = o.R)), + (t.C = o.C), + (o.C = t.R.C = !1), + AM(this, o), + (e = this._); + break; + } + } else if ( + ((t = o.L).C && + ((t.C = !1), (o.C = !0), TM(this, o), (t = o.L)), + (t.L && t.L.C) || (t.R && t.R.C)) + ) { + (t.L && t.L.C) || + ((t.R.C = !1), (t.C = !0), AM(this, t), (t = o.L)), + (t.C = o.C), + (o.C = t.L.C = !1), + TM(this, o), + (e = this._); + break; + } + (t.C = !0), (e = o), (o = o.U); + } while (!e.C); + e && (e.C = !1); + } + } + }; + var LM = OM; + function PM(e, t, n, r) { + var o = [null, null], + i = nk.push(o) - 1; + return ( + (o.left = e), + (o.right = t), + n && jM(o, e, t, n), + r && jM(o, t, e, r), + ek[e.index].halfedges.push(i), + ek[t.index].halfedges.push(i), + o + ); + } + function DM(e, t, n) { + var r = [t, n]; + return (r.left = e), r; + } + function jM(e, t, n, r) { + e[0] || e[1] + ? e.left === n + ? (e[1] = r) + : (e[0] = r) + : ((e[0] = r), (e.left = t), (e.right = n)); + } + function zM(e, t, n, r, o) { + var i, + a = e[0], + s = e[1], + c = a[0], + u = a[1], + l = 0, + f = 1, + d = s[0] - c, + p = s[1] - u; + if (((i = t - c), d || !(i > 0))) { + if (((i /= d), d < 0)) { + if (i < l) return; + i < f && (f = i); + } else if (d > 0) { + if (i > f) return; + i > l && (l = i); + } + if (((i = r - c), d || !(i < 0))) { + if (((i /= d), d < 0)) { + if (i > f) return; + i > l && (l = i); + } else if (d > 0) { + if (i < l) return; + i < f && (f = i); + } + if (((i = n - u), p || !(i > 0))) { + if (((i /= p), p < 0)) { + if (i < l) return; + i < f && (f = i); + } else if (p > 0) { + if (i > f) return; + i > l && (l = i); + } + if (((i = o - u), p || !(i < 0))) { + if (((i /= p), p < 0)) { + if (i > f) return; + i > l && (l = i); + } else if (p > 0) { + if (i < l) return; + i < f && (f = i); + } return ( - e + (t[r] || t[(e % 100) - r] || t[e >= 100 ? 100 : null]) + !(l > 0 || f < 1) || + (l > 0 && (e[0] = [c + l * d, u + l * p]), + f < 1 && (e[1] = [c + f * d, u + f * p]), + !0) ); + } } - }, - week: { dow: 1, doy: 7 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - function t(e, t, n, r) { - var o = { - s: ['viensas secunds', "'iensas secunds"], - ss: [e + ' secunds', e + ' secunds'], - m: ["'n míut", "'iens míut"], - mm: [e + ' míuts', e + ' míuts'], - h: ["'n þora", "'iensa þora"], - hh: [e + ' þoras', e + ' þoras'], - d: ["'n ziua", "'iensa ziua"], - dd: [e + ' ziuas', e + ' ziuas'], - M: ["'n mes", "'iens mes"], - MM: [e + ' mesen', e + ' mesen'], - y: ["'n ar", "'iens ar"], - yy: [e + ' ars', e + ' ars'] - }; - return r || t ? o[n][0] : o[n][1]; + } } - e.defineLocale('tzl', { - months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split( - '_' - ), - monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split( - '_' - ), - weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split( - '_' - ), - weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'), - weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM [dallas] YYYY', - LLL: 'D. MMMM [dallas] YYYY HH.mm', - LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm' - }, - meridiemParse: /d\'o|d\'a/i, - isPM: function(e) { - return "d'o" === e.toLowerCase(); - }, - meridiem: function(e, t, n) { - return e > 11 ? (n ? "d'o" : "D'O") : n ? "d'a" : "D'A"; - }, - calendar: { - sameDay: '[oxhi à] LT', - nextDay: '[demà à] LT', - nextWeek: 'dddd [à] LT', - lastDay: '[ieiri à] LT', - lastWeek: '[sür el] dddd [lasteu à] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'osprei %s', - past: 'ja%s', - s: t, - ss: t, - m: t, - mm: t, - h: t, - hh: t, - d: t, - dd: t, - M: t, - MM: t, - y: t, - yy: t - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('tzm', { - months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split( - '_' - ), - monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split( - '_' - ), - weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split( - '_' - ), - weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split( - '_' - ), - weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split( - '_' - ), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[ⴰⵙⴷⵅ ⴴ] LT', - nextDay: '[ⴰⵙⴽⴰ ⴴ] LT', - nextWeek: 'dddd [ⴴ] LT', - lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT', - lastWeek: 'dddd [ⴴ] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s', - past: 'ⵢⴰⵏ %s', - s: 'ⵉⵎⵉⴽ', - ss: '%d ⵉⵎⵉⴽ', - m: 'ⵎⵉⵏⵓⴺ', - mm: '%d ⵎⵉⵏⵓⴺ', - h: 'ⵙⴰⵄⴰ', - hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ', - d: 'ⴰⵙⵙ', - dd: '%d oⵙⵙⴰⵏ', - M: 'ⴰⵢoⵓⵔ', - MM: '%d ⵉⵢⵢⵉⵔⵏ', - y: 'ⴰⵙⴳⴰⵙ', - yy: '%d ⵉⵙⴳⴰⵙⵏ' - }, - week: { dow: 6, doy: 12 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('tzm-latn', { - months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split( - '_' - ), - monthsShort: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split( - '_' - ), - weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split( - '_' - ), - weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split( - '_' - ), - weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split( - '_' - ), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[asdkh g] LT', - nextDay: '[aska g] LT', - nextWeek: 'dddd [g] LT', - lastDay: '[assant g] LT', - lastWeek: 'dddd [g] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'dadkh s yan %s', - past: 'yan %s', - s: 'imik', - ss: '%d imik', - m: 'minuḍ', - mm: '%d minuḍ', - h: 'saɛa', - hh: '%d tassaɛin', - d: 'ass', - dd: '%d ossan', - M: 'ayowr', - MM: '%d iyyirn', - y: 'asgas', - yy: '%d isgasn' - }, - week: { dow: 6, doy: 12 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('ug-cn', { - months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split( - '_' - ), - monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split( - '_' - ), - weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split( - '_' - ), - weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'), - weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى', - LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm', - LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm' - }, - meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/, - meridiemHour: function(e, t) { + } + function NM(e, t, n, r, o) { + var i = e[1]; + if (i) return !0; + var a, + s, + c = e[0], + u = e.left, + l = e.right, + f = u[0], + d = u[1], + p = l[0], + h = l[1], + g = (f + p) / 2, + m = (d + h) / 2; + if (h === d) { + if (g < t || g >= r) return; + if (f > p) { + if (c) { + if (c[1] >= o) return; + } else c = [g, n]; + i = [g, o]; + } else { + if (c) { + if (c[1] < n) return; + } else c = [g, o]; + i = [g, n]; + } + } else if (((s = m - (a = (f - p) / (h - d)) * g), a < -1 || a > 1)) + if (f > p) { + if (c) { + if (c[1] >= o) return; + } else c = [(n - s) / a, n]; + i = [(o - s) / a, o]; + } else { + if (c) { + if (c[1] < n) return; + } else c = [(o - s) / a, o]; + i = [(n - s) / a, n]; + } + else if (d < h) { + if (c) { + if (c[0] >= r) return; + } else c = [t, a * t + s]; + i = [r, a * r + s]; + } else { + if (c) { + if (c[0] < t) return; + } else c = [r, a * r + s]; + i = [t, a * t + s]; + } + return (e[0] = c), (e[1] = i), !0; + } + function RM(e, t) { + var n = e.site, + r = t.left, + o = t.right; + return ( + n === o && ((o = r), (r = n)), + o + ? Math.atan2(o[1] - r[1], o[0] - r[0]) + : (n === r ? ((r = t[1]), (o = t[0])) : ((r = t[0]), (o = t[1])), + Math.atan2(r[0] - o[0], o[1] - r[1])) + ); + } + function IM(e, t) { + return t[+(t.left !== e.site)]; + } + function FM(e, t) { + return t[+(t.left === e.site)]; + } + var qM, + BM = []; + function HM() { + EM(this), (this.x = this.y = this.arc = this.site = this.cy = null); + } + function YM(e) { + var t = e.P, + n = e.N; + if (t && n) { + var r = t.site, + o = e.site, + i = n.site; + if (r !== i) { + var a = o[0], + s = o[1], + c = r[0] - a, + u = r[1] - s, + l = i[0] - a, + f = i[1] - s, + d = 2 * (c * f - u * l); + if (!(d >= -ok)) { + var p = c * c + u * u, + h = l * l + f * f, + g = (f * p - u * h) / d, + m = (c * h - l * p) / d, + b = BM.pop() || new HM(); + (b.arc = e), + (b.site = o), + (b.x = g + a), + (b.y = (b.cy = m + s) + Math.sqrt(g * g + m * m)), + (e.circle = b); + for (var y = null, v = tk._; v; ) + if (b.y < v.y || (b.y === v.y && b.x <= v.x)) { + if (!v.L) { + y = v.P; + break; + } + v = v.L; + } else { + if (!v.R) { + y = v; + break; + } + v = v.R; + } + tk.insert(y, b), y || (qM = b); + } + } + } + } + function WM(e) { + var t = e.circle; + t && + (t.P || (qM = t.N), + tk.remove(t), + BM.push(t), + EM(t), + (e.circle = null)); + } + var VM = []; + function UM() { + EM(this), (this.edge = this.site = this.circle = null); + } + function XM(e) { + var t = VM.pop() || new UM(); + return (t.site = e), t; + } + function GM(e) { + WM(e), ZM.remove(e), VM.push(e), EM(e); + } + function KM(e) { + var t = e.circle, + n = t.x, + r = t.cy, + o = [n, r], + i = e.P, + a = e.N, + s = [e]; + GM(e); + for ( + var c = i; + c.circle && + Math.abs(n - c.circle.x) < rk && + Math.abs(r - c.circle.cy) < rk; + + ) + (i = c.P), s.unshift(c), GM(c), (c = i); + s.unshift(c), WM(c); + for ( + var u = a; + u.circle && + Math.abs(n - u.circle.x) < rk && + Math.abs(r - u.circle.cy) < rk; + + ) + (a = u.N), s.push(u), GM(u), (u = a); + s.push(u), WM(u); + var l, + f = s.length; + for (l = 1; l < f; ++l) + (u = s[l]), (c = s[l - 1]), jM(u.edge, c.site, u.site, o); + (c = s[0]), + ((u = s[f - 1]).edge = PM(c.site, u.site, null, o)), + YM(c), + YM(u); + } + function $M(e) { + for (var t, n, r, o, i = e[0], a = e[1], s = ZM._; s; ) + if ((r = QM(s, a) - i) > rk) s = s.L; + else { + if (!((o = i - JM(s, a)) > rk)) { + r > -rk + ? ((t = s.P), (n = s)) + : o > -rk + ? ((t = s), (n = s.N)) + : (t = n = s); + break; + } + if (!s.R) { + t = s; + break; + } + s = s.R; + } + !(function(e) { + ek[e.index] = { site: e, halfedges: [] }; + })(e); + var c = XM(e); + if ((ZM.insert(t, c), t || n)) { + if (t === n) return ( - 12 === e && (e = 0), - 'يېرىم كېچە' === t || 'سەھەر' === t || 'چۈشتىن بۇرۇن' === t - ? e - : 'چۈشتىن كېيىن' === t || 'كەچ' === t - ? e + 12 - : e >= 11 - ? e - : e + 12 + WM(t), + (n = XM(t.site)), + ZM.insert(c, n), + (c.edge = n.edge = PM(t.site, c.site)), + YM(t), + void YM(n) ); - }, - meridiem: function(e, t, n) { - var r = 100 * e + t; - return r < 600 - ? 'يېرىم كېچە' - : r < 900 - ? 'سەھەر' - : r < 1130 - ? 'چۈشتىن بۇرۇن' - : r < 1230 - ? 'چۈش' - : r < 1800 - ? 'چۈشتىن كېيىن' - : 'كەچ'; - }, - calendar: { - sameDay: '[بۈگۈن سائەت] LT', - nextDay: '[ئەتە سائەت] LT', - nextWeek: '[كېلەركى] dddd [سائەت] LT', - lastDay: '[تۆنۈگۈن] LT', - lastWeek: '[ئالدىنقى] dddd [سائەت] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s كېيىن', - past: '%s بۇرۇن', - s: 'نەچچە سېكونت', - ss: '%d سېكونت', - m: 'بىر مىنۇت', - mm: '%d مىنۇت', - h: 'بىر سائەت', - hh: '%d سائەت', - d: 'بىر كۈن', - dd: '%d كۈن', - M: 'بىر ئاي', - MM: '%d ئاي', - y: 'بىر يىل', - yy: '%d يىل' - }, - dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/, - ordinal: function(e, t) { - switch (t) { - case 'd': - case 'D': - case 'DDD': - return e + '-كۈنى'; - case 'w': - case 'W': - return e + '-ھەپتە'; - default: - return e; - } - }, - preparse: function(e) { - return e.replace(/،/g, ','); - }, - postformat: function(e) { - return e.replace(/,/g, '،'); - }, - week: { dow: 1, doy: 7 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - function t(e, t, n) { - var r, o; - return 'm' === n - ? t - ? 'хвилина' - : 'хвилину' - : 'h' === n - ? t - ? 'година' - : 'годину' - : e + - ' ' + - ((r = +e), - (o = { - ss: t ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд', - mm: t ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин', - hh: t ? 'година_години_годин' : 'годину_години_годин', - dd: 'день_дні_днів', - MM: 'місяць_місяці_місяців', - yy: 'рік_роки_років' - }[n].split('_')), - r % 10 == 1 && r % 100 != 11 - ? o[0] - : r % 10 >= 2 && r % 10 <= 4 && (r % 100 < 10 || r % 100 >= 20) - ? o[1] - : o[2]); + if (n) { + WM(t), WM(n); + var u = t.site, + l = u[0], + f = u[1], + d = e[0] - l, + p = e[1] - f, + h = n.site, + g = h[0] - l, + m = h[1] - f, + b = 2 * (d * m - p * g), + y = d * d + p * p, + v = g * g + m * m, + _ = [(m * y - p * v) / b + l, (d * v - g * y) / b + f]; + jM(n.edge, u, h, _), + (c.edge = PM(u, e, null, _)), + (n.edge = PM(e, h, null, _)), + YM(t), + YM(n); + } else c.edge = PM(t.site, c.site); } - function n(e) { + } + function QM(e, t) { + var n = e.site, + r = n[0], + o = n[1], + i = o - t; + if (!i) return r; + var a = e.P; + if (!a) return -1 / 0; + var s = (n = a.site)[0], + c = n[1], + u = c - t; + if (!u) return s; + var l = s - r, + f = 1 / i - 1 / u, + d = l / u; + return f + ? (-d + + Math.sqrt( + d * d - 2 * f * ((l * l) / (-2 * u) - c + u / 2 + o - i / 2) + )) / + f + + r + : (r + s) / 2; + } + function JM(e, t) { + var n = e.N; + if (n) return QM(n, t); + var r = e.site; + return r[1] === t ? r[0] : 1 / 0; + } + var ZM, + ek, + tk, + nk, + rk = 1e-6, + ok = 1e-12; + function ik(e, t) { + return t[1] - e[1] || t[0] - e[0]; + } + function ak(e, t) { + var n, + r, + o, + i = e.sort(ik).pop(); + for ( + nk = [], ek = new Array(e.length), ZM = new LM(), tk = new LM(); + ; + + ) + if ( + ((o = qM), i && (!o || i[1] < o.y || (i[1] === o.y && i[0] < o.x))) + ) + (i[0] === n && i[1] === r) || ($M(i), (n = i[0]), (r = i[1])), + (i = e.pop()); + else { + if (!o) break; + KM(o.arc); + } + if ( + ((function() { + for (var e, t, n, r, o = 0, i = ek.length; o < i; ++o) + if ((e = ek[o]) && (r = (t = e.halfedges).length)) { + var a = new Array(r), + s = new Array(r); + for (n = 0; n < r; ++n) (a[n] = n), (s[n] = RM(e, nk[t[n]])); + for ( + a.sort(function(e, t) { + return s[t] - s[e]; + }), + n = 0; + n < r; + ++n + ) + s[n] = t[a[n]]; + for (n = 0; n < r; ++n) t[n] = s[n]; + } + })(), + t) + ) { + var a = +t[0][0], + s = +t[0][1], + c = +t[1][0], + u = +t[1][1]; + !(function(e, t, n, r) { + for (var o, i = nk.length; i--; ) + (NM((o = nk[i]), e, t, n, r) && + zM(o, e, t, n, r) && + (Math.abs(o[0][0] - o[1][0]) > rk || + Math.abs(o[0][1] - o[1][1]) > rk)) || + delete nk[i]; + })(a, s, c, u), + (function(e, t, n, r) { + var o, + i, + a, + s, + c, + u, + l, + f, + d, + p, + h, + g, + m = ek.length, + b = !0; + for (o = 0; o < m; ++o) + if ((i = ek[o])) { + for (a = i.site, s = (c = i.halfedges).length; s--; ) + nk[c[s]] || c.splice(s, 1); + for (s = 0, u = c.length; s < u; ) + (h = (p = FM(i, nk[c[s]]))[0]), + (g = p[1]), + (f = (l = IM(i, nk[c[++s % u]]))[0]), + (d = l[1]), + (Math.abs(h - f) > rk || Math.abs(g - d) > rk) && + (c.splice( + s, + 0, + nk.push( + DM( + a, + p, + Math.abs(h - e) < rk && r - g > rk + ? [e, Math.abs(f - e) < rk ? d : r] + : Math.abs(g - r) < rk && n - h > rk + ? [Math.abs(d - r) < rk ? f : n, r] + : Math.abs(h - n) < rk && g - t > rk + ? [n, Math.abs(f - n) < rk ? d : t] + : Math.abs(g - t) < rk && h - e > rk + ? [Math.abs(d - t) < rk ? f : e, t] + : null + ) + ) - 1 + ), + ++u); + u && (b = !1); + } + if (b) { + var y, + v, + _, + w = 1 / 0; + for (o = 0, b = null; o < m; ++o) + (i = ek[o]) && + (_ = (y = (a = i.site)[0] - e) * y + (v = a[1] - t) * v) < + w && + ((w = _), (b = i)); + if (b) { + var x = [e, t], + M = [e, r], + k = [n, r], + S = [n, t]; + b.halfedges.push( + nk.push(DM((a = b.site), x, M)) - 1, + nk.push(DM(a, M, k)) - 1, + nk.push(DM(a, k, S)) - 1, + nk.push(DM(a, S, x)) - 1 + ); + } + } + for (o = 0; o < m; ++o) + (i = ek[o]) && (i.halfedges.length || delete ek[o]); + })(a, s, c, u); + } + (this.edges = nk), (this.cells = ek), (ZM = tk = nk = ek = null); + } + ak.prototype = { + constructor: ak, + polygons: function() { + var e = this.edges; + return this.cells.map(function(t) { + var n = t.halfedges.map(function(n) { + return IM(t, e[n]); + }); + return (n.data = t.site.data), n; + }); + }, + triangles: function() { + var e = [], + t = this.edges; + return ( + this.cells.forEach(function(n, r) { + if ((i = (o = n.halfedges).length)) + for ( + var o, + i, + a, + s, + c, + u, + l = n.site, + f = -1, + d = t[o[i - 1]], + p = d.left === l ? d.right : d.left; + ++f < i; + + ) + (a = p), + (p = (d = t[o[f]]).left === l ? d.right : d.left), + a && + p && + r < a.index && + r < p.index && + ((c = a), + (u = p), + ((s = l)[0] - u[0]) * (c[1] - s[1]) - + (s[0] - c[0]) * (u[1] - s[1]) < + 0) && + e.push([l.data, a.data, p.data]); + }), + e + ); + }, + links: function() { + return this.edges + .filter(function(e) { + return e.right; + }) + .map(function(e) { + return { source: e.left.data, target: e.right.data }; + }); + }, + find: function(e, t, n) { + for ( + var r, o, i = this, a = i._found || 0, s = i.cells.length; + !(o = i.cells[a]); + + ) + if (++a >= s) return null; + var c = e - o.site[0], + u = t - o.site[1], + l = c * c + u * u; + do { + (o = i.cells[(r = a)]), + (a = null), + o.halfedges.forEach(function(n) { + var r = i.edges[n], + s = r.left; + if ((s !== o.site && s) || (s = r.right)) { + var c = e - s[0], + u = t - s[1], + f = c * c + u * u; + f < l && ((l = f), (a = s.index)); + } + }); + } while (null !== a); + return (i._found = r), null == n || l <= n * n ? o.site : null; + } + }; + var sk = function() { + var e = kM, + t = SM, + n = null; + function r(r) { + return new ak( + r.map(function(n, o) { + var i = [ + Math.round(e(n, o, r) / rk) * rk, + Math.round(t(n, o, r) / rk) * rk + ]; + return (i.index = o), (i.data = n), i; + }), + n + ); + } + return ( + (r.polygons = function(e) { + return r(e).polygons(); + }), + (r.links = function(e) { + return r(e).links(); + }), + (r.triangles = function(e) { + return r(e).triangles(); + }), + (r.x = function(t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : MM(+t)), r) + : e; + }), + (r.y = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : MM(+e)), r) + : t; + }), + (r.extent = function(e) { + return arguments.length + ? ((n = + null == e + ? null + : [[+e[0][0], +e[0][1]], [+e[1][0], +e[1][1]]]), + r) + : n && [[n[0][0], n[0][1]], [n[1][0], n[1][1]]]; + }), + (r.size = function(e) { + return arguments.length + ? ((n = null == e ? null : [[0, 0], [+e[0], +e[1]]]), r) + : n && [n[1][0] - n[0][0], n[1][1] - n[0][1]]; + }), + r + ); + }, + ck = function(e) { return function() { - return e + 'о' + (11 === this.hours() ? 'б' : '') + '] LT'; + return e; }; + }; + function uk(e, t, n) { + (this.target = e), (this.type = t), (this.transform = n); + } + function lk(e, t, n) { + (this.k = e), (this.x = t), (this.y = n); + } + lk.prototype = { + constructor: lk, + scale: function(e) { + return 1 === e ? this : new lk(this.k * e, this.x, this.y); + }, + translate: function(e, t) { + return (0 === e) & (0 === t) + ? this + : new lk(this.k, this.x + this.k * e, this.y + this.k * t); + }, + apply: function(e) { + return [e[0] * this.k + this.x, e[1] * this.k + this.y]; + }, + applyX: function(e) { + return e * this.k + this.x; + }, + applyY: function(e) { + return e * this.k + this.y; + }, + invert: function(e) { + return [(e[0] - this.x) / this.k, (e[1] - this.y) / this.k]; + }, + invertX: function(e) { + return (e - this.x) / this.k; + }, + invertY: function(e) { + return (e - this.y) / this.k; + }, + rescaleX: function(e) { + return e.copy().domain( + e + .range() + .map(this.invertX, this) + .map(e.invert, e) + ); + }, + rescaleY: function(e) { + return e.copy().domain( + e + .range() + .map(this.invertY, this) + .map(e.invert, e) + ); + }, + toString: function() { + return ( + 'translate(' + this.x + ',' + this.y + ') scale(' + this.k + ')' + ); } - e.defineLocale('uk', { - months: { - format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split( - '_' - ), - standalone: 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split( - '_' - ) - }, - monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split( - '_' - ), - weekdays: function(e, t) { - var n = { - nominative: 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split( - '_' - ), - accusative: 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split( - '_' - ), - genitive: 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split( - '_' - ) - }; - return !0 === e - ? n.nominative.slice(1, 7).concat(n.nominative.slice(0, 1)) - : e - ? n[ - /(\[[ВвУу]\]) ?dddd/.test(t) - ? 'accusative' - : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(t) - ? 'genitive' - : 'nominative' - ][e.day()] - : n.nominative; - }, - weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), - weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY р.', - LLL: 'D MMMM YYYY р., HH:mm', - LLLL: 'dddd, D MMMM YYYY р., HH:mm' - }, - calendar: { - sameDay: n('[Сьогодні '), - nextDay: n('[Завтра '), - lastDay: n('[Вчора '), - nextWeek: n('[У] dddd ['), - lastWeek: function() { - switch (this.day()) { - case 0: - case 3: - case 5: - case 6: - return n('[Минулої] dddd [').call(this); - case 1: - case 2: - case 4: - return n('[Минулого] dddd [').call(this); - } - }, - sameElse: 'L' - }, - relativeTime: { - future: 'за %s', - past: '%s тому', - s: 'декілька секунд', - ss: t, - m: t, - mm: t, - h: 'годину', - hh: t, - d: 'день', - dd: t, - M: 'місяць', - MM: t, - y: 'рік', - yy: t - }, - meridiemParse: /ночі|ранку|дня|вечора/, - isPM: function(e) { - return /^(дня|вечора)$/.test(e); - }, - meridiem: function(e, t, n) { - return e < 4 - ? 'ночі' - : e < 12 - ? 'ранку' - : e < 17 - ? 'дня' - : 'вечора'; - }, - dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/, - ordinal: function(e, t) { - switch (t) { - case 'M': - case 'd': - case 'DDD': - case 'w': - case 'W': - return e + '-й'; - case 'D': - return e + '-го'; - default: - return e; - } - }, - week: { dow: 1, doy: 7 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - var t = [ - 'جنوری', - 'فروری', - 'مارچ', - 'اپریل', - 'مئی', - 'جون', - 'جولائی', - 'اگست', - 'ستمبر', - 'اکتوبر', - 'نومبر', - 'دسمبر' - ], - n = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ']; - e.defineLocale('ur', { - months: t, - monthsShort: t, - weekdays: n, - weekdaysShort: n, - weekdaysMin: n, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd، D MMMM YYYY HH:mm' - }, - meridiemParse: /صبح|شام/, - isPM: function(e) { - return 'شام' === e; - }, - meridiem: function(e, t, n) { - return e < 12 ? 'صبح' : 'شام'; - }, - calendar: { - sameDay: '[آج بوقت] LT', - nextDay: '[کل بوقت] LT', - nextWeek: 'dddd [بوقت] LT', - lastDay: '[گذشتہ روز بوقت] LT', - lastWeek: '[گذشتہ] dddd [بوقت] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s بعد', - past: '%s قبل', - s: 'چند سیکنڈ', - ss: '%d سیکنڈ', - m: 'ایک منٹ', - mm: '%d منٹ', - h: 'ایک گھنٹہ', - hh: '%d گھنٹے', - d: 'ایک دن', - dd: '%d دن', - M: 'ایک ماہ', - MM: '%d ماہ', - y: 'ایک سال', - yy: '%d سال' - }, - preparse: function(e) { - return e.replace(/،/g, ','); - }, - postformat: function(e) { - return e.replace(/,/g, '،'); - }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('uz', { - months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split( - '_' - ), - monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split( - '_' - ), - weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split( - '_' - ), - weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'), - weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'D MMMM YYYY, dddd HH:mm' - }, - calendar: { - sameDay: '[Бугун соат] LT [да]', - nextDay: '[Эртага] LT [да]', - nextWeek: 'dddd [куни соат] LT [да]', - lastDay: '[Кеча соат] LT [да]', - lastWeek: '[Утган] dddd [куни соат] LT [да]', - sameElse: 'L' - }, - relativeTime: { - future: 'Якин %s ичида', - past: 'Бир неча %s олдин', - s: 'фурсат', - ss: '%d фурсат', - m: 'бир дакика', - mm: '%d дакика', - h: 'бир соат', - hh: '%d соат', - d: 'бир кун', - dd: '%d кун', - M: 'бир ой', - MM: '%d ой', - y: 'бир йил', - yy: '%d йил' - }, - week: { dow: 1, doy: 7 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('uz-latn', { - months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split( - '_' - ), - monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split( - '_' - ), - weekdays: 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split( - '_' - ), - weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'), - weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'D MMMM YYYY, dddd HH:mm' - }, - calendar: { - sameDay: '[Bugun soat] LT [da]', - nextDay: '[Ertaga] LT [da]', - nextWeek: 'dddd [kuni soat] LT [da]', - lastDay: '[Kecha soat] LT [da]', - lastWeek: "[O'tgan] dddd [kuni soat] LT [da]", - sameElse: 'L' - }, - relativeTime: { - future: 'Yaqin %s ichida', - past: 'Bir necha %s oldin', - s: 'soniya', - ss: '%d soniya', - m: 'bir daqiqa', - mm: '%d daqiqa', - h: 'bir soat', - hh: '%d soat', - d: 'bir kun', - dd: '%d kun', - M: 'bir oy', - MM: '%d oy', - y: 'bir yil', - yy: '%d yil' - }, - week: { dow: 1, doy: 7 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('vi', { - months: 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split( - '_' - ), - monthsShort: 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split( - '_' - ), - weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'), - weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'), - weekdaysParseExact: !0, - meridiemParse: /sa|ch/i, - isPM: function(e) { - return /^ch$/i.test(e); - }, - meridiem: function(e, t, n) { - return e < 12 ? (n ? 'sa' : 'SA') : n ? 'ch' : 'CH'; - }, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM [năm] YYYY', - LLL: 'D MMMM [năm] YYYY HH:mm', - LLLL: 'dddd, D MMMM [năm] YYYY HH:mm', - l: 'DD/M/YYYY', - ll: 'D MMM YYYY', - lll: 'D MMM YYYY HH:mm', - llll: 'ddd, D MMM YYYY HH:mm' - }, - calendar: { - sameDay: '[Hôm nay lúc] LT', - nextDay: '[Ngày mai lúc] LT', - nextWeek: 'dddd [tuần tới lúc] LT', - lastDay: '[Hôm qua lúc] LT', - lastWeek: 'dddd [tuần rồi lúc] LT', - sameElse: 'L' - }, - relativeTime: { - future: '%s tới', - past: '%s trước', - s: 'vài giây', - ss: '%d giây', - m: 'một phút', - mm: '%d phút', - h: 'một giờ', - hh: '%d giờ', - d: 'một ngày', - dd: '%d ngày', - M: 'một tháng', - MM: '%d tháng', - y: 'một năm', - yy: '%d năm' - }, - dayOfMonthOrdinalParse: /\d{1,2}/, - ordinal: function(e) { - return e; - }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('x-pseudo', { - months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split( - '_' - ), - monthsShort: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split( - '_' - ), - monthsParseExact: !0, - weekdays: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split( - '_' - ), - weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'), - weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'), - weekdaysParseExact: !0, - longDateFormat: { - LT: 'HH:mm', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm' - }, - calendar: { - sameDay: '[T~ódá~ý át] LT', - nextDay: '[T~ómó~rró~w át] LT', - nextWeek: 'dddd [át] LT', - lastDay: '[Ý~ést~érdá~ý át] LT', - lastWeek: '[L~ást] dddd [át] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'í~ñ %s', - past: '%s á~gó', - s: 'á ~féw ~sécó~ñds', - ss: '%d s~écóñ~ds', - m: 'á ~míñ~úté', - mm: '%d m~íñú~tés', - h: 'á~ñ hó~úr', - hh: '%d h~óúrs', - d: 'á ~dáý', - dd: '%d d~áýs', - M: 'á ~móñ~th', - MM: '%d m~óñt~hs', - y: 'á ~ýéár', - yy: '%d ý~éárs' - }, - dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, - ordinal: function(e) { - var t = e % 10; - return ( - e + - (1 == ~~((e % 100) / 10) - ? 'th' - : 1 === t - ? 'st' - : 2 === t - ? 'nd' - : 3 === t - ? 'rd' - : 'th') - ); - }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('yo', { - months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split( - '_' - ), - monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split( - '_' - ), - weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'), - weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'), - weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'), - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A' - }, - calendar: { - sameDay: '[Ònì ni] LT', - nextDay: '[Ọ̀la ni] LT', - nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT", - lastDay: '[Àna ni] LT', - lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT', - sameElse: 'L' - }, - relativeTime: { - future: 'ní %s', - past: '%s kọjá', - s: 'ìsẹjú aayá die', - ss: 'aayá %d', - m: 'ìsẹjú kan', - mm: 'ìsẹjú %d', - h: 'wákati kan', - hh: 'wákati %d', - d: 'ọjọ́ kan', - dd: 'ọjọ́ %d', - M: 'osù kan', - MM: 'osù %d', - y: 'ọdún kan', - yy: 'ọdún %d' - }, - dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/, - ordinal: 'ọjọ́ %d', - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('zh-cn', { - months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( - '_' - ), - monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( - '_' - ), - weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split( - '_' - ), - weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'), - weekdaysMin: '日_一_二_三_四_五_六'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY/MM/DD', - LL: 'YYYY年M月D日', - LLL: 'YYYY年M月D日Ah点mm分', - LLLL: 'YYYY年M月D日ddddAh点mm分', - l: 'YYYY/M/D', - ll: 'YYYY年M月D日', - lll: 'YYYY年M月D日 HH:mm', - llll: 'YYYY年M月D日dddd HH:mm' - }, - meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, - meridiemHour: function(e, t) { - return ( - 12 === e && (e = 0), - '凌晨' === t || '早上' === t || '上午' === t - ? e - : '下午' === t || '晚上' === t - ? e + 12 - : e >= 11 - ? e - : e + 12 - ); - }, - meridiem: function(e, t, n) { - var r = 100 * e + t; - return r < 600 - ? '凌晨' - : r < 900 - ? '早上' - : r < 1130 - ? '上午' - : r < 1230 - ? '中午' - : r < 1800 - ? '下午' - : '晚上'; - }, - calendar: { - sameDay: '[今天]LT', - nextDay: '[明天]LT', - nextWeek: '[下]ddddLT', - lastDay: '[昨天]LT', - lastWeek: '[上]ddddLT', - sameElse: 'L' - }, - dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/, - ordinal: function(e, t) { - switch (t) { - case 'd': - case 'D': - case 'DDD': - return e + '日'; - case 'M': - return e + '月'; - case 'w': - case 'W': - return e + '周'; - default: - return e; - } - }, - relativeTime: { - future: '%s内', - past: '%s前', - s: '几秒', - ss: '%d 秒', - m: '1 分钟', - mm: '%d 分钟', - h: '1 小时', - hh: '%d 小时', - d: '1 天', - dd: '%d 天', - M: '1 个月', - MM: '%d 个月', - y: '1 年', - yy: '%d 年' - }, - week: { dow: 1, doy: 4 } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('zh-hk', { - months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( - '_' - ), - monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( - '_' - ), - weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split( - '_' - ), - weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'), - weekdaysMin: '日_一_二_三_四_五_六'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY/MM/DD', - LL: 'YYYY年M月D日', - LLL: 'YYYY年M月D日 HH:mm', - LLLL: 'YYYY年M月D日dddd HH:mm', - l: 'YYYY/M/D', - ll: 'YYYY年M月D日', - lll: 'YYYY年M月D日 HH:mm', - llll: 'YYYY年M月D日dddd HH:mm' - }, - meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, - meridiemHour: function(e, t) { - return ( - 12 === e && (e = 0), - '凌晨' === t || '早上' === t || '上午' === t - ? e - : '中午' === t - ? e >= 11 - ? e - : e + 12 - : '下午' === t || '晚上' === t - ? e + 12 - : void 0 - ); - }, - meridiem: function(e, t, n) { - var r = 100 * e + t; - return r < 600 - ? '凌晨' - : r < 900 - ? '早上' - : r < 1130 - ? '上午' - : r < 1230 - ? '中午' - : r < 1800 - ? '下午' - : '晚上'; - }, - calendar: { - sameDay: '[今天]LT', - nextDay: '[明天]LT', - nextWeek: '[下]ddddLT', - lastDay: '[昨天]LT', - lastWeek: '[上]ddddLT', - sameElse: 'L' - }, - dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, - ordinal: function(e, t) { - switch (t) { - case 'd': - case 'D': - case 'DDD': - return e + '日'; - case 'M': - return e + '月'; - case 'w': - case 'W': - return e + '週'; - default: - return e; - } - }, - relativeTime: { - future: '%s內', - past: '%s前', - s: '幾秒', - ss: '%d 秒', - m: '1 分鐘', - mm: '%d 分鐘', - h: '1 小時', - hh: '%d 小時', - d: '1 天', - dd: '%d 天', - M: '1 個月', - MM: '%d 個月', - y: '1 年', - yy: '%d 年' - } - }); - })(n(2)); - }, - function(e, t, n) { - !(function(e) { - 'use strict'; - e.defineLocale('zh-tw', { - months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( - '_' - ), - monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( - '_' - ), - weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split( - '_' - ), - weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'), - weekdaysMin: '日_一_二_三_四_五_六'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY/MM/DD', - LL: 'YYYY年M月D日', - LLL: 'YYYY年M月D日 HH:mm', - LLLL: 'YYYY年M月D日dddd HH:mm', - l: 'YYYY/M/D', - ll: 'YYYY年M月D日', - lll: 'YYYY年M月D日 HH:mm', - llll: 'YYYY年M月D日dddd HH:mm' - }, - meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, - meridiemHour: function(e, t) { - return ( - 12 === e && (e = 0), - '凌晨' === t || '早上' === t || '上午' === t - ? e - : '中午' === t - ? e >= 11 - ? e - : e + 12 - : '下午' === t || '晚上' === t - ? e + 12 - : void 0 - ); - }, - meridiem: function(e, t, n) { - var r = 100 * e + t; - return r < 600 - ? '凌晨' - : r < 900 - ? '早上' - : r < 1130 - ? '上午' - : r < 1230 - ? '中午' - : r < 1800 - ? '下午' - : '晚上'; - }, - calendar: { - sameDay: '[今天] LT', - nextDay: '[明天] LT', - nextWeek: '[下]dddd LT', - lastDay: '[昨天] LT', - lastWeek: '[上]dddd LT', - sameElse: 'L' - }, - dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, - ordinal: function(e, t) { - switch (t) { - case 'd': - case 'D': - case 'DDD': - return e + '日'; - case 'M': - return e + '月'; - case 'w': - case 'W': - return e + '週'; - default: - return e; - } - }, - relativeTime: { - future: '%s內', - past: '%s前', - s: '幾秒', - ss: '%d 秒', - m: '1 分鐘', - mm: '%d 分鐘', - h: '1 小時', - hh: '%d 小時', - d: '1 天', - dd: '%d 天', - M: '1 個月', - MM: '%d 個月', - y: '1 年', - yy: '%d 年' - } - }); - })(n(2)); - }, - function(e, t, n) { - 'use strict'; - var r = Array.prototype.slice, - o = n(369), - i = Object.keys, - a = i - ? function(e) { - return i(e); - } - : n(709), - s = Object.keys; - (a.shim = function() { - Object.keys - ? (function() { - var e = Object.keys(arguments); - return e && e.length === arguments.length; - })(1, 2) || - (Object.keys = function(e) { - return o(e) ? s(r.call(e)) : s(e); - }) - : (Object.keys = a); - return Object.keys || a; - }), - (e.exports = a); - }, - function(e, t, n) { - 'use strict'; - var r = Object.prototype.toString; - e.exports = function(e) { - var t = r.call(e), - n = '[object Arguments]' === t; - return ( - n || - (n = - '[object Array]' !== t && - null !== e && - 'object' == typeof e && - 'number' == typeof e.length && - e.length >= 0 && - '[object Function]' === r.call(e.callee)), - n - ); - }; - }, - function(e, t, n) { - 'use strict'; - var r = n(368), - o = n(115), - i = function(e) { - return null != e; - }, - a = n(371)(), - s = Object, - c = o.call(Function.call, Array.prototype.push), - u = o.call(Function.call, Object.prototype.propertyIsEnumerable), - l = a ? Object.getOwnPropertySymbols : null; - e.exports = function(e, t) { - if (!i(e)) throw new TypeError('target must be an object'); - var n, - o, - f, - d, - p, - h, - g, - m = s(e); - for (n = 1; n < arguments.length; ++n) { - (o = s(arguments[n])), (d = r(o)); - var b = a && (Object.getOwnPropertySymbols || l); - if (b) - for (p = b(o), f = 0; f < p.length; ++f) - (g = p[f]), u(o, g) && c(d, g); - for (f = 0; f < d.length; ++f) - (h = o[(g = d[f])]), u(o, g) && (m[g] = h); - } - return m; - }; - }, - function(e, t, n) { - 'use strict'; - e.exports = function() { - if ( - 'function' != typeof Symbol || - 'function' != typeof Object.getOwnPropertySymbols - ) - return !1; - if ('symbol' == typeof Symbol.iterator) return !0; - var e = {}, - t = Symbol('test'), - n = Object(t); - if ('string' == typeof t) return !1; - if ('[object Symbol]' !== Object.prototype.toString.call(t)) return !1; - if ('[object Symbol]' !== Object.prototype.toString.call(n)) return !1; - for (t in ((e[t] = 42), e)) return !1; - if ('function' == typeof Object.keys && 0 !== Object.keys(e).length) - return !1; - if ( - 'function' == typeof Object.getOwnPropertyNames && - 0 !== Object.getOwnPropertyNames(e).length - ) - return !1; - var r = Object.getOwnPropertySymbols(e); - if (1 !== r.length || r[0] !== t) return !1; - if (!Object.prototype.propertyIsEnumerable.call(e, t)) return !1; - if ('function' == typeof Object.getOwnPropertyDescriptor) { - var o = Object.getOwnPropertyDescriptor(e, t); - if (42 !== o.value || !0 !== o.enumerable) return !1; - } - return !0; - }; - }, - function(e, t, n) { - 'use strict'; - var r = n(370); - e.exports = function() { - return Object.assign - ? (function() { - if (!Object.assign) return !1; - for ( - var e = 'abcdefghijklmnopqrst', t = e.split(''), n = {}, r = 0; - r < t.length; - ++r - ) - n[t[r]] = t[r]; - var o = Object.assign({}, n), - i = ''; - for (var a in o) i += a; - return e !== i; - })() || - (function() { - if (!Object.assign || !Object.preventExtensions) return !1; - var e = Object.preventExtensions({ 1: 2 }); - try { - Object.assign(e, 'xy'); - } catch (t) { - return 'y' === e[1]; - } - return !1; - })() - ? r - : Object.assign - : r; }; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = function(e, t, n, r, o) { - return { - ariaLabel: u(o, r, e, t), - hoveredSpan: c(r), - isOutsideRange: r.has('blocked-out-of-range'), - selected: a(r), - useDefaultCursor: s(r), - daySizeStyles: { width: n, height: n - 1 } - }; - }); - var r, - o = (r = n(715)) && r.__esModule ? r : { default: r }, - i = n(7); - function a(e) { - return ( - e.has('selected') || - e.has('selected-span') || - e.has('selected-start') || - e.has('selected-end') - ); + var fk = new lk(1, 0, 0); + function dk(e) { + for (; !e.__zoom; ) if (!(e = e.parentNode)) return fk; + return e.__zoom; } - function s(e) { - return ( - e.has('blocked-minimum-nights') || - e.has('blocked-calendar') || - e.has('blocked-out-of-range') - ); + function pk() { + ht.stopImmediatePropagation(); } - function c(e) { - return !a(e) && (e.has('hovered-span') || e.has('after-hovered-start')); + dk.prototype = lk.prototype; + var hk = function() { + ht.preventDefault(), ht.stopImmediatePropagation(); + }; + function gk() { + return !ht.ctrlKey && !ht.button; } - function u(e, t, n, r) { - var s = e.chooseAvailableDate, - c = e.dateIsUnavailable, - u = e.dateIsSelected, - l = e.dateIsSelectedAsStartDate, - f = e.dateIsSelectedAsEndDate, - d = { date: n.format(r) }; - return t.has('selected-start') && l - ? (0, o.default)(l, d) - : t.has('selected-end') && f - ? (0, o.default)(f, d) - : a(t) && u - ? (0, o.default)(u, d) - : t.has(i.BLOCKED_MODIFIER) - ? (0, o.default)(c, d) - : (0, o.default)(s, d); + function mk() { + var e = this; + return e instanceof SVGElement + ? (e = e.ownerSVGElement || e).hasAttribute('viewBox') + ? [ + [(e = e.viewBox.baseVal).x, e.y], + [e.x + e.width, e.y + e.height] + ] + : [[0, 0], [e.width.baseVal.value, e.height.baseVal.value]] + : [[0, 0], [e.clientWidth, e.clientHeight]]; } - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = void 0); - var r = g(n(32)), - o = g(n(0)), - i = (g(n(1)), g(n(41)), n(11), n(33)), - a = g(n(2)), - s = n(20), - c = (g(n(23)), g(n(716))), - u = g(n(152)), - l = g(n(375)), - f = g(n(719)), - d = g(n(67)), - p = g(n(117)), - h = (g(n(116)), g(n(69)), g(n(58)), n(7)); - function g(e) { - return e && e.__esModule ? e : { default: e }; + function bk() { + return this.__zoom || fk; } - function m(e) { - return (m = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(e) { - return typeof e; - } - : function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - })(e); + function yk() { + return ( + -ht.deltaY * (1 === ht.deltaMode ? 0.05 : ht.deltaMode ? 1 : 0.002) + ); } - function b() { - return (b = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); + function vk() { + return navigator.maxTouchPoints || 'ontouchstart' in this; } - function y(e) { - return (y = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(e) { - return e.__proto__ || Object.getPrototypeOf(e); - })(e); + function _k(e, t, n) { + var r = e.invertX(t[0][0]) - n[0][0], + o = e.invertX(t[1][0]) - n[1][0], + i = e.invertY(t[0][1]) - n[0][1], + a = e.invertY(t[1][1]) - n[1][1]; + return e.translate( + o > r ? (r + o) / 2 : Math.min(0, r) || Math.max(0, o), + a > i ? (i + a) / 2 : Math.min(0, i) || Math.max(0, a) + ); } - function v(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); + var wk = function() { + var e, + t, + n = gk, + r = mk, + o = _k, + i = yk, + a = vk, + s = [0, 1 / 0], + c = [[-1 / 0, -1 / 0], [1 / 0, 1 / 0]], + u = 250, + l = Qh, + f = ge('start', 'zoom', 'end'), + d = 500, + p = 150, + h = 0; + function g(e) { + e.property('__zoom', bk) + .on('wheel.zoom', x) + .on('mousedown.zoom', M) + .on('dblclick.zoom', k) + .filter(a) + .on('touchstart.zoom', S) + .on('touchmove.zoom', O) + .on('touchend.zoom touchcancel.zoom', E) + .style('touch-action', 'none') + .style('-webkit-tap-highlight-color', 'rgba(0,0,0,0)'); } - } - function _(e, t, n) { - return t && v(e.prototype, t), n && v(e, n), e; - } - function x(e, t) { - return (x = - Object.setPrototypeOf || - function(e, t) { - return (e.__proto__ = t), e; - })(e, t); - } - function w(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return e; - } - var M = { - month: (0, a.default)(), - horizontalMonthPadding: 13, - isVisible: !0, - enableOutsideDays: !1, - modifiers: {}, - orientation: h.HORIZONTAL_ORIENTATION, - daySize: h.DAY_SIZE, - onDayClick: function() {}, - onDayMouseEnter: function() {}, - onDayMouseLeave: function() {}, - onMonthSelect: function() {}, - onYearSelect: function() {}, - renderMonthText: null, - renderCalendarDay: function(e) { - return o.default.createElement(u.default, e); - }, - renderDayContents: null, - renderMonthElement: null, - firstDayOfWeek: null, - setMonthTitleHeight: null, - focusedDate: null, - isFocused: !1, - monthFormat: 'MMMM YYYY', - phrases: s.CalendarDayPhrases, - dayAriaLabelFormat: void 0, - verticalBorderSpacing: void 0 - }, - k = (function(e) { - function t(e) { - var n; - return ( - (function(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - })(this, t), - ((n = (function(e, t) { - return !t || ('object' !== m(t) && 'function' != typeof t) - ? w(e) - : t; - })(this, y(t).call(this, e))).state = { - weeks: (0, f.default)( - e.month, - e.enableOutsideDays, - null == e.firstDayOfWeek - ? a.default.localeData().firstDayOfWeek() - : e.firstDayOfWeek - ) - }), - (n.setCaptionRef = n.setCaptionRef.bind(w(w(n)))), - (n.setMonthTitleHeight = n.setMonthTitleHeight.bind(w(w(n)))), - n - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { value: e, writable: !0, configurable: !0 } - })), - t && x(e, t); - })(t, e), - _(t, [ - { - key: !o.default.PureComponent && 'shouldComponentUpdate', - value: function(e, t) { - return (0, r.default)(this, e, t); - } - } - ]), - _(t, [ - { - key: 'componentDidMount', - value: function() { - this.setMonthTitleHeightTimeout = setTimeout( - this.setMonthTitleHeight, - 0 - ); - } - }, - { - key: 'componentWillReceiveProps', - value: function(e) { - var t = e.month, - n = e.enableOutsideDays, - r = e.firstDayOfWeek, - o = this.props, - i = o.month, - s = o.enableOutsideDays, - c = o.firstDayOfWeek; - (t.isSame(i) && n === s && r === c) || - this.setState({ - weeks: (0, f.default)( - t, - n, - null == r ? a.default.localeData().firstDayOfWeek() : r - ) - }); - } - }, - { - key: 'componentWillUnmount', - value: function() { - this.setMonthTitleHeightTimeout && - clearTimeout(this.setMonthTitleHeightTimeout); - } - }, - { - key: 'setMonthTitleHeight', - value: function() { - var e = this.props.setMonthTitleHeight; - e && e((0, l.default)(this.captionRef, 'height', !0, !0)); - } - }, - { - key: 'setCaptionRef', - value: function(e) { - this.captionRef = e; - } - }, - { - key: 'render', - value: function() { - var e = this.props, - t = e.dayAriaLabelFormat, - n = e.daySize, - r = e.focusedDate, - a = e.horizontalMonthPadding, - s = e.isFocused, - u = e.isVisible, - l = e.modifiers, - f = e.month, - g = e.monthFormat, - m = e.onDayClick, - y = e.onDayMouseEnter, - v = e.onDayMouseLeave, - _ = e.onMonthSelect, - x = e.onYearSelect, - w = e.orientation, - M = e.phrases, - k = e.renderCalendarDay, - S = e.renderDayContents, - A = e.renderMonthElement, - O = e.renderMonthText, - E = e.styles, - T = e.verticalBorderSpacing, - C = this.state.weeks, - L = O ? O(f) : f.format(g), - P = w === h.VERTICAL_SCROLLABLE; - return o.default.createElement( - 'div', - b( - {}, - (0, i.css)(E.CalendarMonth, { - padding: '0 '.concat(a, 'px') - }), - { 'data-visible': u } - ), - o.default.createElement( - 'div', - b( - { ref: this.setCaptionRef }, - (0, i.css)( - E.CalendarMonth_caption, - P && E.CalendarMonth_caption__verticalScrollable - ) - ), - A - ? A({ month: f, onMonthSelect: _, onYearSelect: x }) - : o.default.createElement('strong', null, L) - ), - o.default.createElement( - 'table', - b( - {}, - (0, i.css)( - !T && E.CalendarMonth_table, - T && E.CalendarMonth_verticalSpacing, - T && { borderSpacing: '0px '.concat(T, 'px') } - ), - { role: 'presentation' } - ), - o.default.createElement( - 'tbody', - null, - C.map(function(e, i) { - return o.default.createElement( - c.default, - { key: i }, - e.map(function(e, o) { - return k({ - key: o, - day: e, - daySize: n, - isOutsideDay: !e || e.month() !== f.month(), - tabIndex: u && (0, d.default)(e, r) ? 0 : -1, - isFocused: s, - onDayMouseEnter: y, - onDayMouseLeave: v, - onDayClick: m, - renderDayContents: S, - phrases: M, - modifiers: l[(0, p.default)(e)], - ariaLabelFormat: t - }); - }) - ); - }) - ) - ) - ); + function m(e, t) { + return (t = Math.max(s[0], Math.min(s[1], t))) === e.k + ? e + : new lk(t, e.x, e.y); + } + function b(e, t, n) { + var r = t[0] - n[0] * e.k, + o = t[1] - n[1] * e.k; + return r === e.x && o === e.y ? e : new lk(e.k, r, o); + } + function y(e) { + return [(+e[0][0] + +e[1][0]) / 2, (+e[0][1] + +e[1][1]) / 2]; + } + function v(e, t, n) { + e.on('start.zoom', function() { + _(this, arguments).start(); + }) + .on('interrupt.zoom end.zoom', function() { + _(this, arguments).end(); + }) + .tween('zoom', function() { + var e = this, + o = arguments, + i = _(e, o), + a = r.apply(e, o), + s = + null == n ? y(a) : 'function' == typeof n ? n.apply(e, o) : n, + c = Math.max(a[1][0] - a[0][0], a[1][1] - a[0][1]), + u = e.__zoom, + f = 'function' == typeof t ? t.apply(e, o) : t, + d = l(u.invert(s).concat(c / u.k), f.invert(s).concat(c / f.k)); + return function(e) { + if (1 === e) e = f; + else { + var t = d(e), + n = c / t[2]; + e = new lk(n, s[0] - t[0] * n, s[1] - t[1] * n); } - } - ]), - t - ); - })(o.default.PureComponent || o.default.Component); - (k.propTypes = {}), (k.defaultProps = M); - var S = (0, i.withStyles)( - function(e) { - var t = e.reactDates, - n = t.color, - r = t.font, - o = t.spacing; - return { - CalendarMonth: { - background: n.background, - textAlign: 'center', - verticalAlign: 'top', - userSelect: 'none' - }, - CalendarMonth_table: { - borderCollapse: 'collapse', - borderSpacing: 0 - }, - CalendarMonth_verticalSpacing: { borderCollapse: 'separate' }, - CalendarMonth_caption: { - color: n.text, - fontSize: r.captionSize, - textAlign: 'center', - paddingTop: o.captionPaddingTop, - paddingBottom: o.captionPaddingBottom, - captionSide: 'initial' - }, - CalendarMonth_caption__verticalScrollable: { - paddingTop: 12, - paddingBottom: 7 - } - }; - }, - { pureComponent: void 0 !== o.default.PureComponent } - )(k); - t.default = S; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = function(e, t) { - var n = - arguments.length > 2 && void 0 !== arguments[2] && arguments[2], - r = arguments.length > 3 && void 0 !== arguments[3] && arguments[3]; - if (!e) return 0; - var o = 'width' === t ? 'Left' : 'Top', - i = 'width' === t ? 'Right' : 'Bottom', - a = !n || r ? window.getComputedStyle(e) : null, - s = e.offsetWidth, - c = e.offsetHeight, - u = 'width' === t ? s : c; - n || - (u -= - parseFloat(a['padding'.concat(o)]) + - parseFloat(a['padding'.concat(i)]) + - parseFloat(a['border'.concat(o, 'Width')]) + - parseFloat(a['border'.concat(i, 'Width')])); - r && - (u += - parseFloat(a['margin'.concat(o)]) + - parseFloat(a['margin'.concat(i)])); - return u; - }); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = void 0); - var r = y(n(32)), - o = y(n(0)), - i = (y(n(1)), y(n(41)), n(11), n(33)), - a = y(n(2)), - s = n(118), - c = n(20), - u = (y(n(23)), y(n(47))), - l = y(n(374)), - f = y(n(720)), - d = y(n(721)), - p = y(n(377)), - h = y(n(119)), - g = y(n(722)), - m = y(n(723)), - b = (y(n(116)), y(n(69)), y(n(58)), n(7)); - function y(e) { - return e && e.__esModule ? e : { default: e }; - } - function v(e) { - return (v = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(e) { - return typeof e; - } - : function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - })(e); - } - function _() { - return (_ = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); + i.zoom(null, e); + }; + }); + } + function _(e, t, n) { + return (!n && e.__zooming) || new w(e, t); + } + function w(e, t) { + (this.that = e), + (this.args = t), + (this.active = 0), + (this.extent = r.apply(e, t)), + (this.taps = 0); + } + function x() { + if (n.apply(this, arguments)) { + var e = _(this, arguments), + t = this.__zoom, + r = Math.max( + s[0], + Math.min(s[1], t.k * Math.pow(2, i.apply(this, arguments))) + ), + a = In(this); + if (e.wheel) + (e.mouse[0][0] === a[0] && e.mouse[0][1] === a[1]) || + (e.mouse[1] = t.invert((e.mouse[0] = a))), + clearTimeout(e.wheel); + else { + if (t.k === r) return; + (e.mouse = [a, t.invert(a)]), _r(this), e.start(); } - return e; - }).apply(this, arguments); - } - function x(e) { - return (x = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(e) { - return e.__proto__ || Object.getPrototypeOf(e); - })(e); - } - function w(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); + hk(), + (e.wheel = setTimeout(function() { + (e.wheel = null), e.end(); + }, p)), + e.zoom( + 'mouse', + o(b(m(t, r), e.mouse[0], e.mouse[1]), e.extent, c) + ); + } } - } - function M(e, t, n) { - return t && w(e.prototype, t), n && w(e, n), e; - } - function k(e, t) { - return (k = - Object.setPrototypeOf || - function(e, t) { - return (e.__proto__ = t), e; - })(e, t); - } - function S(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return e; - } - function A(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}, - r = Object.keys(n); - 'function' == typeof Object.getOwnPropertySymbols && - (r = r.concat( - Object.getOwnPropertySymbols(n).filter(function(e) { - return Object.getOwnPropertyDescriptor(n, e).enumerable; - }) - )), - r.forEach(function(t) { - O(e, t, n[t]); - }); + function M() { + if (!t && n.apply(this, arguments)) { + var e = _(this, arguments, !0), + r = At(ht.view) + .on( + 'mousemove.zoom', + function() { + if ((hk(), !e.moved)) { + var t = ht.clientX - a, + n = ht.clientY - s; + e.moved = t * t + n * n > h; + } + e.zoom( + 'mouse', + o( + b(e.that.__zoom, (e.mouse[0] = In(e.that)), e.mouse[1]), + e.extent, + c + ) + ); + }, + !0 + ) + .on( + 'mouseup.zoom', + function() { + r.on('mousemove.zoom mouseup.zoom', null), + Pt(ht.view, e.moved), + hk(), + e.end(); + }, + !0 + ), + i = In(this), + a = ht.clientX, + s = ht.clientY; + Lt(ht.view), + pk(), + (e.mouse = [i, this.__zoom.invert(i)]), + _r(this), + e.start(); + } } - return e; - } - function O(e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e - ); - } - var E = { - enableOutsideDays: !1, - firstVisibleMonthIndex: 0, - horizontalMonthPadding: 13, - initialMonth: (0, a.default)(), - isAnimating: !1, - numberOfMonths: 1, - modifiers: {}, - orientation: b.HORIZONTAL_ORIENTATION, - onDayClick: function() {}, - onDayMouseEnter: function() {}, - onDayMouseLeave: function() {}, - onMonthChange: function() {}, - onYearChange: function() {}, - onMonthTransitionEnd: function() {}, - renderMonthText: null, - renderCalendarDay: void 0, - renderDayContents: null, - translationValue: null, - renderMonthElement: null, - daySize: b.DAY_SIZE, - focusedDate: null, - isFocused: !1, - firstDayOfWeek: null, - setMonthTitleHeight: null, - isRTL: !1, - transitionDuration: 200, - verticalBorderSpacing: void 0, - monthFormat: 'MMMM YYYY', - phrases: c.CalendarDayPhrases, - dayAriaLabelFormat: void 0 - }; - function T(e, t, n) { - var r = e.clone(); - n || (r = r.subtract(1, 'month')); - for (var o = [], i = 0; i < (n ? t : t + 2); i += 1) - o.push(r), (r = r.clone().add(1, 'month')); - return o; - } - var C = (function(e) { - function t(e) { - var n; - !(function(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - })(this, t), - (n = (function(e, t) { - return !t || ('object' !== v(t) && 'function' != typeof t) - ? S(e) - : t; - })(this, x(t).call(this, e))); - var r = e.orientation === b.VERTICAL_SCROLLABLE; - return ( - (n.state = { months: T(e.initialMonth, e.numberOfMonths, r) }), - (n.isTransitionEndSupported = (0, f.default)()), - (n.onTransitionEnd = n.onTransitionEnd.bind(S(S(n)))), - (n.setContainerRef = n.setContainerRef.bind(S(S(n)))), - (n.locale = a.default.locale()), - (n.onMonthSelect = n.onMonthSelect.bind(S(S(n)))), - (n.onYearSelect = n.onYearSelect.bind(S(S(n)))), - n - ); + function k() { + if (n.apply(this, arguments)) { + var e = this.__zoom, + t = In(this), + i = e.invert(t), + a = e.k * (ht.shiftKey ? 0.5 : 2), + s = o(b(m(e, a), t, i), r.apply(this, arguments), c); + hk(), + u > 0 + ? At(this) + .transition() + .duration(u) + .call(v, s, t) + : At(this).call(g.transform, s); + } + } + function S() { + if (n.apply(this, arguments)) { + var t, + r, + o, + i, + a = ht.touches, + s = a.length, + c = _(this, arguments, ht.changedTouches.length === s); + for (pk(), r = 0; r < s; ++r) + (o = a[r]), + (i = [ + (i = Rn(this, a, o.identifier)), + this.__zoom.invert(i), + o.identifier + ]), + c.touch0 + ? c.touch1 || + c.touch0[2] === i[2] || + ((c.touch1 = i), (c.taps = 0)) + : ((c.touch0 = i), (t = !0), (c.taps = 1 + !!e)); + e && (e = clearTimeout(e)), + t && + (c.taps < 2 && + (e = setTimeout(function() { + e = null; + }, d)), + _r(this), + c.start()); + } + } + function O() { + if (this.__zooming) { + var t, + n, + r, + i, + a = _(this, arguments), + s = ht.changedTouches, + u = s.length; + for ( + hk(), e && (e = clearTimeout(e)), a.taps = 0, t = 0; + t < u; + ++t + ) + (n = s[t]), + (r = Rn(this, s, n.identifier)), + a.touch0 && a.touch0[2] === n.identifier + ? (a.touch0[0] = r) + : a.touch1 && + a.touch1[2] === n.identifier && + (a.touch1[0] = r); + if (((n = a.that.__zoom), a.touch1)) { + var l = a.touch0[0], + f = a.touch0[1], + d = a.touch1[0], + p = a.touch1[1], + h = (h = d[0] - l[0]) * h + (h = d[1] - l[1]) * h, + g = (g = p[0] - f[0]) * g + (g = p[1] - f[1]) * g; + (n = m(n, Math.sqrt(h / g))), + (r = [(l[0] + d[0]) / 2, (l[1] + d[1]) / 2]), + (i = [(f[0] + p[0]) / 2, (f[1] + p[1]) / 2]); + } else { + if (!a.touch0) return; + (r = a.touch0[0]), (i = a.touch0[1]); + } + a.zoom('touch', o(b(n, r, i), a.extent, c)); + } + } + function E() { + if (this.__zooming) { + var e, + n, + r = _(this, arguments), + o = ht.changedTouches, + i = o.length; + for ( + pk(), + t && clearTimeout(t), + t = setTimeout(function() { + t = null; + }, d), + e = 0; + e < i; + ++e + ) + (n = o[e]), + r.touch0 && r.touch0[2] === n.identifier + ? delete r.touch0 + : r.touch1 && r.touch1[2] === n.identifier && delete r.touch1; + if ( + (r.touch1 && + !r.touch0 && + ((r.touch0 = r.touch1), delete r.touch1), + r.touch0) + ) + r.touch0[1] = this.__zoom.invert(r.touch0[0]); + else if ((r.end(), 2 === r.taps)) { + var a = At(this).on('dblclick.zoom'); + a && a.apply(this, arguments); + } + } } return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function' + (g.transform = function(e, t, n) { + var r = e.selection ? e.selection() : e; + r.property('__zoom', bk), + e !== r + ? v(e, t, n) + : r.interrupt().each(function() { + _(this, arguments) + .start() + .zoom( + null, + 'function' == typeof t ? t.apply(this, arguments) : t + ) + .end(); + }); + }), + (g.scaleBy = function(e, t, n) { + g.scaleTo( + e, + function() { + var e = this.__zoom.k, + n = 'function' == typeof t ? t.apply(this, arguments) : t; + return e * n; + }, + n + ); + }), + (g.scaleTo = function(e, t, n) { + g.transform( + e, + function() { + var e = r.apply(this, arguments), + i = this.__zoom, + a = + null == n + ? y(e) + : 'function' == typeof n + ? n.apply(this, arguments) + : n, + s = i.invert(a), + u = 'function' == typeof t ? t.apply(this, arguments) : t; + return o(b(m(i, u), a, s), e, c); + }, + n + ); + }), + (g.translateBy = function(e, t, n) { + g.transform(e, function() { + return o( + this.__zoom.translate( + 'function' == typeof t ? t.apply(this, arguments) : t, + 'function' == typeof n ? n.apply(this, arguments) : n + ), + r.apply(this, arguments), + c ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { value: e, writable: !0, configurable: !0 } - })), - t && k(e, t); - })(t, e), - M(t, [ - { - key: !o.default.PureComponent && 'shouldComponentUpdate', - value: function(e, t) { - return (0, r.default)(this, e, t); - } - } - ]), - M(t, [ - { - key: 'componentDidMount', - value: function() { - this.removeEventListener = (0, s.addEventListener)( - this.container, - 'transitionend', - this.onTransitionEnd + }); + }), + (g.translateTo = function(e, t, n, i) { + g.transform( + e, + function() { + var e = r.apply(this, arguments), + a = this.__zoom, + s = + null == i + ? y(e) + : 'function' == typeof i + ? i.apply(this, arguments) + : i; + return o( + fk + .translate(s[0], s[1]) + .scale(a.k) + .translate( + 'function' == typeof t ? -t.apply(this, arguments) : -t, + 'function' == typeof n ? -n.apply(this, arguments) : -n + ), + e, + c ); - } - }, - { - key: 'componentWillReceiveProps', - value: function(e) { - var t = this, - n = e.initialMonth, - r = e.numberOfMonths, - o = e.orientation, - i = this.state.months, - s = this.props, - c = s.initialMonth, - u = s.numberOfMonths !== r, - l = i; - c.isSame(n, 'month') || - u || - ((0, m.default)(c, n) - ? (l = i.slice(1)).push( - i[i.length - 1].clone().add(1, 'month') - ) - : (0, g.default)(c, n) - ? (l = i.slice(0, i.length - 1)).unshift( - i[0].clone().subtract(1, 'month') - ) - : (l = T(n, r, o === b.VERTICAL_SCROLLABLE))); - u && (l = T(n, r, o === b.VERTICAL_SCROLLABLE)); - var f = a.default.locale(); - this.locale !== f && - ((this.locale = f), - (l = l.map(function(e) { - return e.locale(t.locale); - }))), - this.setState({ months: l }); - } - }, - { - key: 'componentDidUpdate', - value: function() { - var e = this.props, - t = e.isAnimating, - n = e.transitionDuration, - r = e.onMonthTransitionEnd; - (this.isTransitionEndSupported && n) || !t || r(); - } - }, - { - key: 'componentWillUnmount', - value: function() { - this.removeEventListener && this.removeEventListener(); - } - }, - { - key: 'onTransitionEnd', - value: function() { - (0, this.props.onMonthTransitionEnd)(); - } - }, - { - key: 'onMonthSelect', - value: function(e, t) { - var n = e.clone(), - r = this.props, - o = r.onMonthChange, - i = r.orientation, - a = this.state.months, - s = i === b.VERTICAL_SCROLLABLE, - c = a.indexOf(e); - s || (c -= 1), n.set('month', t).subtract(c, 'months'), o(n); - } + }, + i + ); + }), + (w.prototype = { + start: function() { + return ( + 1 == ++this.active && + ((this.that.__zooming = this), this.emit('start')), + this + ); }, - { - key: 'onYearSelect', - value: function(e, t) { - var n = e.clone(), - r = this.props, - o = r.onYearChange, - i = r.orientation, - a = this.state.months, - s = i === b.VERTICAL_SCROLLABLE, - c = a.indexOf(e); - s || (c -= 1), n.set('year', t).subtract(c, 'months'), o(n); - } + zoom: function(e, t) { + return ( + this.mouse && + 'mouse' !== e && + (this.mouse[1] = t.invert(this.mouse[0])), + this.touch0 && + 'touch' !== e && + (this.touch0[1] = t.invert(this.touch0[0])), + this.touch1 && + 'touch' !== e && + (this.touch1[1] = t.invert(this.touch1[0])), + (this.that.__zoom = t), + this.emit('zoom'), + this + ); }, - { - key: 'setContainerRef', - value: function(e) { - this.container = e; - } + end: function() { + return ( + 0 == --this.active && + (delete this.that.__zooming, this.emit('end')), + this + ); }, - { - key: 'render', - value: function() { - var e = this, - t = this.props, - n = t.enableOutsideDays, - r = t.firstVisibleMonthIndex, - a = t.horizontalMonthPadding, - s = t.isAnimating, - c = t.modifiers, - u = t.numberOfMonths, - f = t.monthFormat, - g = t.orientation, - m = t.translationValue, - y = t.daySize, - v = t.onDayMouseEnter, - x = t.onDayMouseLeave, - w = t.onDayClick, - M = t.renderMonthText, - k = t.renderCalendarDay, - S = t.renderDayContents, - O = t.renderMonthElement, - E = t.onMonthTransitionEnd, - T = t.firstDayOfWeek, - C = t.focusedDate, - L = t.isFocused, - P = t.isRTL, - D = t.styles, - z = t.phrases, - N = t.dayAriaLabelFormat, - j = t.transitionDuration, - R = t.verticalBorderSpacing, - I = t.setMonthTitleHeight, - F = this.state.months, - q = g === b.VERTICAL_ORIENTATION, - B = g === b.VERTICAL_SCROLLABLE, - H = g === b.HORIZONTAL_ORIENTATION, - Y = (0, p.default)(y, a), - W = q || B ? Y : (u + 2) * Y, - V = '' - .concat(q || B ? 'translateY' : 'translateX', '(') - .concat(m, 'px)'); - return o.default.createElement( - 'div', - _( - {}, - (0, i.css)( - D.CalendarMonthGrid, - H && D.CalendarMonthGrid__horizontal, - q && D.CalendarMonthGrid__vertical, - B && D.CalendarMonthGrid__vertical_scrollable, - s && D.CalendarMonthGrid__animating, - s && - j && { - transition: 'transform '.concat(j, 'ms ease-in-out') - }, - A({}, (0, d.default)(V), { width: W }) - ), - { ref: this.setContainerRef, onTransitionEnd: E } - ), - F.map(function(t, d) { - var p = d >= r && d < r + u, - b = 0 === d && !p, - A = 0 === d && s && p, - E = (0, h.default)(t); - return o.default.createElement( - 'div', - _( - { key: E }, - (0, i.css)( - H && D.CalendarMonthGrid_month__horizontal, - b && D.CalendarMonthGrid_month__hideForAnimation, - A && !q && !P && { position: 'absolute', left: -Y }, - A && !q && P && { position: 'absolute', right: 0 }, - A && q && { position: 'absolute', top: -m }, - !p && !s && D.CalendarMonthGrid_month__hidden - ) - ), - o.default.createElement(l.default, { - month: t, - isVisible: p, - enableOutsideDays: n, - modifiers: c[E], - monthFormat: f, - orientation: g, - onDayMouseEnter: v, - onDayMouseLeave: x, - onDayClick: w, - onMonthSelect: e.onMonthSelect, - onYearSelect: e.onYearSelect, - renderMonthText: M, - renderCalendarDay: k, - renderDayContents: S, - renderMonthElement: O, - firstDayOfWeek: T, - daySize: y, - focusedDate: p ? C : null, - isFocused: L, - phrases: z, - setMonthTitleHeight: I, - dayAriaLabelFormat: N, - verticalBorderSpacing: R, - horizontalMonthPadding: a - }) - ); - }) - ); - } + emit: function(e) { + _t(new uk(g, e, this.that.__zoom), f.apply, f, [ + e, + this.that, + this.args + ]); } - ]), - t + }), + (g.wheelDelta = function(e) { + return arguments.length + ? ((i = 'function' == typeof e ? e : ck(+e)), g) + : i; + }), + (g.filter = function(e) { + return arguments.length + ? ((n = 'function' == typeof e ? e : ck(!!e)), g) + : n; + }), + (g.touchable = function(e) { + return arguments.length + ? ((a = 'function' == typeof e ? e : ck(!!e)), g) + : a; + }), + (g.extent = function(e) { + return arguments.length + ? ((r = + 'function' == typeof e + ? e + : ck([[+e[0][0], +e[0][1]], [+e[1][0], +e[1][1]]])), + g) + : r; + }), + (g.scaleExtent = function(e) { + return arguments.length + ? ((s[0] = +e[0]), (s[1] = +e[1]), g) + : [s[0], s[1]]; + }), + (g.translateExtent = function(e) { + return arguments.length + ? ((c[0][0] = +e[0][0]), + (c[1][0] = +e[1][0]), + (c[0][1] = +e[0][1]), + (c[1][1] = +e[1][1]), + g) + : [[c[0][0], c[0][1]], [c[1][0], c[1][1]]]; + }), + (g.constrain = function(e) { + return arguments.length ? ((o = e), g) : o; + }), + (g.duration = function(e) { + return arguments.length ? ((u = +e), g) : u; + }), + (g.interpolate = function(e) { + return arguments.length ? ((l = e), g) : l; + }), + (g.on = function() { + var e = f.on.apply(f, arguments); + return e === f ? g : e; + }), + (g.clickDistance = function(e) { + return arguments.length ? ((h = (e = +e) * e), g) : Math.sqrt(h); + }), + g ); - })(o.default.PureComponent || o.default.Component); - (C.propTypes = {}), (C.defaultProps = E); - var L = (0, i.withStyles)( - function(e) { - var t = e.reactDates, - n = t.color, - r = t.noScrollBarOnVerticalScrollable, - o = t.spacing, - i = t.zIndex; - return { - CalendarMonthGrid: { - background: n.background, - textAlign: (0, u.default)('left'), - zIndex: i - }, - CalendarMonthGrid__animating: { zIndex: i + 1 }, - CalendarMonthGrid__horizontal: { - position: 'absolute', - left: (0, u.default)(o.dayPickerHorizontalPadding) - }, - CalendarMonthGrid__vertical: { margin: '0 auto' }, - CalendarMonthGrid__vertical_scrollable: A( - { margin: '0 auto', overflowY: 'scroll' }, - r && { - '-webkitOverflowScrolling': 'touch', - '::-webkit-scrollbar': { - '-webkit-appearance': 'none', - display: 'none' - } - } - ), - CalendarMonthGrid_month__horizontal: { - display: 'inline-block', - verticalAlign: 'top', - minHeight: '100%' - }, - CalendarMonthGrid_month__hideForAnimation: { - position: 'absolute', - zIndex: i - 1, - opacity: 0, - pointerEvents: 'none' - }, - CalendarMonthGrid_month__hidden: { visibility: 'hidden' } - }; - }, - { pureComponent: void 0 !== o.default.PureComponent } - )(C); - t.default = L; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = function(e) { - var t = - arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0; - return 7 * e + 2 * t + 1; - }); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = function(e, t) { - return ( - !(!o.default.isMoment(e) || !o.default.isMoment(t)) && - e.month() === t.month() && e.year() === t.year() - ); - }); - var r, - o = (r = n(2)) && r.__esModule ? r : { default: r }; - }, - function(e, t, n) { - 'use strict'; - var r = n(726), - o = n(727), - i = n(730)('Object.prototype.propertyIsEnumerable'); - e.exports = function(e) { - var t = o(e), - n = []; - for (var a in t) r(t, a) && i(t, a) && n.push(t[a]); - return n; - }; - }, - function(e, t, n) { - 'use strict'; - var r = n(379); - e.exports = function() { - return 'function' == typeof Object.values ? Object.values : r; - }; - }, - function(e, t, n) { - 'use strict'; - e.exports = function(e) { - if (arguments.length < 1) throw new TypeError('1 argument is required'); - if ('object' != typeof e) - throw new TypeError( - 'Argument 1 (”other“) to Node.contains must be an instance of Node' - ); - var t = e; - do { - if (this === t) return !0; - t && (t = t.parentNode); - } while (t); - return !1; - }; - }, - function(e, t, n) { - 'use strict'; - var r = n(381); - e.exports = function() { - if ('undefined' != typeof document) { - if (document.contains) return document.contains; - if (document.body && document.body.contains) - return document.body.contains; - } - return r; }; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = void 0); - var r = m(n(1)), - o = m(n(41)), - i = n(11), - a = n(20), - s = m(n(23)), - c = m(n(384)), - u = m(n(71)), - l = m(n(385)), - f = m(n(91)), - d = m(n(386)), - p = m(n(59)), - h = m(n(58)), - g = m(n(92)); - function m(e) { - return e && e.__esModule ? e : { default: e }; - } - var b = { - startDate: o.default.momentObj, - endDate: o.default.momentObj, - onDatesChange: r.default.func.isRequired, - focusedInput: c.default, - onFocusChange: r.default.func.isRequired, - onClose: r.default.func, - startDateId: r.default.string.isRequired, - startDatePlaceholderText: r.default.string, - startDateOffset: r.default.func, - endDateOffset: r.default.func, - endDateId: r.default.string.isRequired, - endDatePlaceholderText: r.default.string, - disabled: f.default, - required: r.default.bool, - readOnly: r.default.bool, - screenReaderInputMessage: r.default.string, - showClearDates: r.default.bool, - showDefaultInputIcon: r.default.bool, - inputIconPosition: u.default, - customInputIcon: r.default.node, - customArrowIcon: r.default.node, - customCloseIcon: r.default.node, - noBorder: r.default.bool, - block: r.default.bool, - small: r.default.bool, - regular: r.default.bool, - keepFocusOnInput: r.default.bool, - renderMonthText: (0, i.mutuallyExclusiveProps)( - r.default.func, - 'renderMonthText', - 'renderMonthElement' - ), - renderMonthElement: (0, i.mutuallyExclusiveProps)( - r.default.func, - 'renderMonthText', - 'renderMonthElement' - ), - orientation: l.default, - anchorDirection: d.default, - openDirection: p.default, - horizontalMargin: r.default.number, - withPortal: r.default.bool, - withFullScreenPortal: r.default.bool, - appendToBody: r.default.bool, - disableScroll: r.default.bool, - daySize: i.nonNegativeInteger, - isRTL: r.default.bool, - firstDayOfWeek: h.default, - initialVisibleMonth: r.default.func, - numberOfMonths: r.default.number, - keepOpenOnDateSelect: r.default.bool, - reopenPickerOnClearDates: r.default.bool, - renderCalendarInfo: r.default.func, - calendarInfoPosition: g.default, - hideKeyboardShortcutsPanel: r.default.bool, - verticalHeight: i.nonNegativeInteger, - transitionDuration: i.nonNegativeInteger, - verticalSpacing: i.nonNegativeInteger, - horizontalMonthPadding: i.nonNegativeInteger, - navPrev: r.default.node, - navNext: r.default.node, - onPrevMonthClick: r.default.func, - onNextMonthClick: r.default.func, - renderCalendarDay: r.default.func, - renderDayContents: r.default.func, - minimumNights: r.default.number, - enableOutsideDays: r.default.bool, - isDayBlocked: r.default.func, - isOutsideRange: r.default.func, - isDayHighlighted: r.default.func, - displayFormat: r.default.oneOfType([r.default.string, r.default.func]), - monthFormat: r.default.string, - weekDayFormat: r.default.string, - phrases: r.default.shape((0, s.default)(a.DateRangePickerPhrases)), - dayAriaLabelFormat: r.default.string - }; - t.default = b; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = void 0); - var r, - o = (r = n(1)) && r.__esModule ? r : { default: r }, - i = n(7); - var a = o.default.oneOf([i.START_DATE, i.END_DATE]); - t.default = a; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = void 0); - var r, - o = (r = n(1)) && r.__esModule ? r : { default: r }, - i = n(7); - var a = o.default.oneOf([ - i.HORIZONTAL_ORIENTATION, - i.VERTICAL_ORIENTATION - ]); - t.default = a; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = void 0); - var r, - o = (r = n(1)) && r.__esModule ? r : { default: r }, - i = n(7); - var a = o.default.oneOf([i.ANCHOR_LEFT, i.ANCHOR_RIGHT]); - t.default = a; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = function(e, t, n, o) { - var i = 'undefined' != typeof window ? window.innerWidth : 0, - a = e === r.ANCHOR_LEFT ? i - n : n, - s = o || 0; - return (function(e, t, n) { - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n); - return e; - })({}, e, Math.min(t + a - s, 0)); - }); - var r = n(7); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = function(e, t, n) { - var o = n.getBoundingClientRect(), - i = o.left, - a = o.top; - e === r.OPEN_UP && (a = -(window.innerHeight - o.bottom)); - t === r.ANCHOR_RIGHT && (i = -(window.innerWidth - o.right)); - return { - transform: 'translate3d(' - .concat(Math.round(i), 'px, ') - .concat(Math.round(a), 'px, 0)') - }; - }); - var r = n(7); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.getScrollParent = o), - (t.getScrollAncestorsOverflowY = i), - (t.default = function(e) { - var t = i(e), - n = function(e) { - return t.forEach(function(t, n) { - n.style.setProperty('overflow-y', e ? 'hidden' : t); - }); - }; - return ( - n(!0), - function() { - return n(!1); - } - ); - }); - var r = function() { - return document.scrollingElement || document.documentElement; - }; - function o(e) { - var t = e.parentElement; - if (null == t) return r(); - var n = window.getComputedStyle(t).overflowY; - return 'visible' !== n && - 'hidden' !== n && - t.scrollHeight > t.clientHeight - ? t - : o(t); - } - function i(e) { - var t = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : new Map(), - n = r(), - a = o(e); - return t.set(a, a.style.overflowY), a === n ? t : i(a, t); - } - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = void 0); - var r = p(n(32)), - o = p(n(0)), - i = (p(n(1)), p(n(2))), - a = (p(n(41)), n(11), p(n(59)), n(20)), - s = (p(n(23)), p(n(391))), - c = (p(n(71)), p(n(91)), p(n(68))), - u = p(n(157)), - l = p(n(72)), - f = p(n(93)), - d = n(7); - function p(e) { - return e && e.__esModule ? e : { default: e }; - } - function h(e) { - return (h = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(e) { - return typeof e; - } - : function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - })(e); - } - function g(e) { - return (g = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(e) { - return e.__proto__ || Object.getPrototypeOf(e); - })(e); - } - function m(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - function b(e, t, n) { - return t && m(e.prototype, t), n && m(e, n), e; - } - function y(e, t) { - return (y = - Object.setPrototypeOf || - function(e, t) { - return (e.__proto__ = t), e; - })(e, t); - } - function v(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return e; - } - var _ = { - children: null, - startDate: null, - startDateId: d.START_DATE, - startDatePlaceholderText: 'Start Date', - isStartDateFocused: !1, - endDate: null, - endDateId: d.END_DATE, - endDatePlaceholderText: 'End Date', - isEndDateFocused: !1, - screenReaderMessage: '', - showClearDates: !1, - showCaret: !1, - showDefaultInputIcon: !1, - inputIconPosition: d.ICON_BEFORE_POSITION, - disabled: !1, - required: !1, - readOnly: !1, - openDirection: d.OPEN_DOWN, - noBorder: !1, - block: !1, - small: !1, - regular: !1, - verticalSpacing: void 0, - keepOpenOnDateSelect: !1, - reopenPickerOnClearDates: !1, - withFullScreenPortal: !1, - minimumNights: 1, - isOutsideRange: function(e) { - return !(0, l.default)(e, (0, i.default)()); - }, - displayFormat: function() { - return i.default.localeData().longDateFormat('L'); - }, - onFocusChange: function() {}, - onClose: function() {}, - onDatesChange: function() {}, - onKeyDownArrowDown: function() {}, - onKeyDownQuestionMark: function() {}, - customInputIcon: null, - customArrowIcon: null, - customCloseIcon: null, - isFocused: !1, - phrases: a.DateRangePickerInputPhrases, - isRTL: !1 - }, - x = (function(e) { - function t(e) { - var n; - return ( - (function(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - })(this, t), - ((n = (function(e, t) { - return !t || ('object' !== h(t) && 'function' != typeof t) - ? v(e) - : t; - })(this, g(t).call(this, e))).onClearFocus = n.onClearFocus.bind( - v(v(n)) - )), - (n.onStartDateChange = n.onStartDateChange.bind(v(v(n)))), - (n.onStartDateFocus = n.onStartDateFocus.bind(v(v(n)))), - (n.onEndDateChange = n.onEndDateChange.bind(v(v(n)))), - (n.onEndDateFocus = n.onEndDateFocus.bind(v(v(n)))), - (n.clearDates = n.clearDates.bind(v(v(n)))), - n - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { value: e, writable: !0, configurable: !0 } - })), - t && y(e, t); - })(t, e), - b(t, [ - { - key: !o.default.PureComponent && 'shouldComponentUpdate', - value: function(e, t) { - return (0, r.default)(this, e, t); - } - } - ]), - b(t, [ - { - key: 'onClearFocus', - value: function() { - var e = this.props, - t = e.onFocusChange, - n = e.onClose, - r = e.startDate, - o = e.endDate; - t(null), n({ startDate: r, endDate: o }); - } - }, - { - key: 'onEndDateChange', - value: function(e) { - var t = this.props, - n = t.startDate, - r = t.isOutsideRange, - o = t.minimumNights, - i = t.keepOpenOnDateSelect, - a = t.onDatesChange, - s = (0, c.default)(e, this.getDisplayFormat()); - !s || - r(s) || - (n && (0, f.default)(s, n.clone().add(o, 'days'))) - ? a({ startDate: n, endDate: null }) - : (a({ startDate: n, endDate: s }), - i || this.onClearFocus()); - } - }, - { - key: 'onEndDateFocus', - value: function() { - var e = this.props, - t = e.startDate, - n = e.onFocusChange, - r = e.withFullScreenPortal, - o = e.disabled; - t || !r || (o && o !== d.END_DATE) - ? (o && o !== d.START_DATE) || n(d.END_DATE) - : n(d.START_DATE); - } - }, - { - key: 'onStartDateChange', - value: function(e) { - var t = this.props.endDate, - n = this.props, - r = n.isOutsideRange, - o = n.minimumNights, - i = n.onDatesChange, - a = n.onFocusChange, - s = n.disabled, - u = (0, c.default)(e, this.getDisplayFormat()), - l = u && (0, f.default)(t, u.clone().add(o, 'days')); - !u || r(u) || (s === d.END_DATE && l) - ? i({ startDate: null, endDate: t }) - : (l && (t = null), - i({ startDate: u, endDate: t }), - a(d.END_DATE)); - } - }, - { - key: 'onStartDateFocus', - value: function() { - var e = this.props, - t = e.disabled, - n = e.onFocusChange; - (t && t !== d.END_DATE) || n(d.START_DATE); - } - }, - { - key: 'getDisplayFormat', - value: function() { - var e = this.props.displayFormat; - return 'string' == typeof e ? e : e(); - } - }, - { - key: 'getDateString', - value: function(e) { - var t = this.getDisplayFormat(); - return e && t ? e && e.format(t) : (0, u.default)(e); - } - }, - { - key: 'clearDates', - value: function() { - var e = this.props, - t = e.onDatesChange, - n = e.reopenPickerOnClearDates, - r = e.onFocusChange; - t({ startDate: null, endDate: null }), n && r(d.START_DATE); - } - }, - { - key: 'render', - value: function() { - var e = this.props, - t = e.children, - n = e.startDate, - r = e.startDateId, - i = e.startDatePlaceholderText, - a = e.isStartDateFocused, - c = e.endDate, - u = e.endDateId, - l = e.endDatePlaceholderText, - f = e.isEndDateFocused, - d = e.screenReaderMessage, - p = e.showClearDates, - h = e.showCaret, - g = e.showDefaultInputIcon, - m = e.inputIconPosition, - b = e.customInputIcon, - y = e.customArrowIcon, - v = e.customCloseIcon, - _ = e.disabled, - x = e.required, - w = e.readOnly, - M = e.openDirection, - k = e.isFocused, - S = e.phrases, - A = e.onKeyDownArrowDown, - O = e.onKeyDownQuestionMark, - E = e.isRTL, - T = e.noBorder, - C = e.block, - L = e.small, - P = e.regular, - D = e.verticalSpacing, - z = this.getDateString(n), - N = this.getDateString(c); - return o.default.createElement( - s.default, - { - startDate: z, - startDateId: r, - startDatePlaceholderText: i, - isStartDateFocused: a, - endDate: N, - endDateId: u, - endDatePlaceholderText: l, - isEndDateFocused: f, - isFocused: k, - disabled: _, - required: x, - readOnly: w, - openDirection: M, - showCaret: h, - showDefaultInputIcon: g, - inputIconPosition: m, - customInputIcon: b, - customArrowIcon: y, - customCloseIcon: v, - phrases: S, - onStartDateChange: this.onStartDateChange, - onStartDateFocus: this.onStartDateFocus, - onStartDateShiftTab: this.onClearFocus, - onEndDateChange: this.onEndDateChange, - onEndDateFocus: this.onEndDateFocus, - showClearDates: p, - onClearDates: this.clearDates, - screenReaderMessage: d, - onKeyDownArrowDown: A, - onKeyDownQuestionMark: O, - isRTL: E, - noBorder: T, - block: C, - small: L, - regular: P, - verticalSpacing: D - }, - t - ); - } - } - ]), - t - ); - })(o.default.PureComponent || o.default.Component); - (t.default = x), (x.propTypes = {}), (x.defaultProps = _); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = void 0); - var r = p(n(0)), - o = (p(n(1)), n(11), n(33)), - i = n(20), - a = (p(n(23)), p(n(47))), - s = (p(n(59)), p(n(392))), - c = (p(n(71)), p(n(91)), p(n(393))), - u = p(n(394)), - l = p(n(94)), - f = p(n(395)), - d = n(7); - function p(e) { - return e && e.__esModule ? e : { default: e }; - } - function h() { - return (h = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - var g = { - children: null, - startDateId: d.START_DATE, - endDateId: d.END_DATE, - startDatePlaceholderText: 'Start Date', - endDatePlaceholderText: 'End Date', - screenReaderMessage: '', - onStartDateFocus: function() {}, - onEndDateFocus: function() {}, - onStartDateChange: function() {}, - onEndDateChange: function() {}, - onStartDateShiftTab: function() {}, - onEndDateTab: function() {}, - onClearDates: function() {}, - onKeyDownArrowDown: function() {}, - onKeyDownQuestionMark: function() {}, - startDate: '', - endDate: '', - isStartDateFocused: !1, - isEndDateFocused: !1, - showClearDates: !1, - disabled: !1, - required: !1, - readOnly: !1, - openDirection: d.OPEN_DOWN, - showCaret: !1, - showDefaultInputIcon: !1, - inputIconPosition: d.ICON_BEFORE_POSITION, - customInputIcon: null, - customArrowIcon: null, - customCloseIcon: null, - noBorder: !1, - block: !1, - small: !1, - regular: !1, - verticalSpacing: void 0, - isFocused: !1, - phrases: i.DateRangePickerInputPhrases, - isRTL: !1 - }; - function m(e) { - var t = e.children, - n = e.startDate, - i = e.startDateId, - a = e.startDatePlaceholderText, - p = e.screenReaderMessage, - g = e.isStartDateFocused, - m = e.onStartDateChange, - b = e.onStartDateFocus, - y = e.onStartDateShiftTab, - v = e.endDate, - _ = e.endDateId, - x = e.endDatePlaceholderText, - w = e.isEndDateFocused, - M = e.onEndDateChange, - k = e.onEndDateFocus, - S = e.onEndDateTab, - A = e.onKeyDownArrowDown, - O = e.onKeyDownQuestionMark, - E = e.onClearDates, - T = e.showClearDates, - C = e.disabled, - L = e.required, - P = e.readOnly, - D = e.showCaret, - z = e.openDirection, - N = e.showDefaultInputIcon, - j = e.inputIconPosition, - R = e.customInputIcon, - I = e.customArrowIcon, - F = e.customCloseIcon, - q = e.isFocused, - B = e.phrases, - H = e.isRTL, - Y = e.noBorder, - W = e.block, - V = e.verticalSpacing, - U = e.small, - X = e.regular, - G = e.styles, - K = - R || - r.default.createElement( - f.default, - (0, o.css)(G.DateRangePickerInput_calendarIcon_svg) - ), - $ = - I || - r.default.createElement( - c.default, - (0, o.css)(G.DateRangePickerInput_arrow_svg) - ); - H && - ($ = r.default.createElement( - u.default, - (0, o.css)(G.DateRangePickerInput_arrow_svg) - )), - U && ($ = '-'); - var Q = - F || - r.default.createElement( - l.default, - (0, o.css)( - G.DateRangePickerInput_clearDates_svg, - U && G.DateRangePickerInput_clearDates_svg__small - ) - ), - J = p || B.keyboardNavigationInstructions, - Z = - (N || null !== R) && - r.default.createElement( - 'button', - h({}, (0, o.css)(G.DateRangePickerInput_calendarIcon), { - type: 'button', - disabled: C, - 'aria-label': B.focusStartDate, - onClick: A - }), - K - ), - ee = C === d.START_DATE || !0 === C, - te = C === d.END_DATE || !0 === C; - return r.default.createElement( - 'div', - (0, o.css)( - G.DateRangePickerInput, - C && G.DateRangePickerInput__disabled, - H && G.DateRangePickerInput__rtl, - !Y && G.DateRangePickerInput__withBorder, - W && G.DateRangePickerInput__block, - T && G.DateRangePickerInput__showClearDates - ), - j === d.ICON_BEFORE_POSITION && Z, - r.default.createElement(s.default, { - id: i, - placeholder: a, - displayValue: n, - screenReaderMessage: J, - focused: g, - isFocused: q, - disabled: ee, - required: L, - readOnly: P, - showCaret: D, - openDirection: z, - onChange: m, - onFocus: b, - onKeyDownShiftTab: y, - onKeyDownArrowDown: A, - onKeyDownQuestionMark: O, - verticalSpacing: V, - small: U, - regular: X - }), - r.default.createElement( - 'div', - h({}, (0, o.css)(G.DateRangePickerInput_arrow), { - 'aria-hidden': 'true', - role: 'presentation' - }), - $ - ), - g && t, - r.default.createElement(s.default, { - id: _, - placeholder: x, - displayValue: v, - screenReaderMessage: J, - focused: w, - isFocused: q, - disabled: te, - required: L, - readOnly: P, - showCaret: D, - openDirection: z, - onChange: M, - onFocus: k, - onKeyDownArrowDown: A, - onKeyDownQuestionMark: O, - onKeyDownTab: S, - verticalSpacing: V, - small: U, - regular: X - }), - w && t, - T && - r.default.createElement( - 'button', - h( - { type: 'button', 'aria-label': B.clearDates }, - (0, o.css)( - G.DateRangePickerInput_clearDates, - U && G.DateRangePickerInput_clearDates__small, - !F && G.DateRangePickerInput_clearDates_default, - !(n || v) && G.DateRangePickerInput_clearDates__hide - ), - { onClick: E, disabled: C } - ), - Q - ), - j === d.ICON_AFTER_POSITION && Z - ); - } - (m.propTypes = {}), (m.defaultProps = g); - var b = (0, o.withStyles)( - function(e) { - var t = e.reactDates, - n = t.border, - r = t.color, - o = t.sizing; - return { - DateRangePickerInput: { - backgroundColor: r.background, - display: 'inline-block' - }, - DateRangePickerInput__disabled: { background: r.disabled }, - DateRangePickerInput__withBorder: { - borderColor: r.border, - borderWidth: n.pickerInput.borderWidth, - borderStyle: n.pickerInput.borderStyle, - borderRadius: n.pickerInput.borderRadius - }, - DateRangePickerInput__rtl: { direction: (0, a.default)('rtl') }, - DateRangePickerInput__block: { display: 'block' }, - DateRangePickerInput__showClearDates: { paddingRight: 30 }, - DateRangePickerInput_arrow: { - display: 'inline-block', - verticalAlign: 'middle', - color: r.text - }, - DateRangePickerInput_arrow_svg: { - verticalAlign: 'middle', - fill: r.text, - height: o.arrowWidth, - width: o.arrowWidth - }, - DateRangePickerInput_clearDates: { - background: 'none', - border: 0, - color: 'inherit', - font: 'inherit', - lineHeight: 'normal', - overflow: 'visible', - cursor: 'pointer', - padding: 10, - margin: '0 10px 0 5px', - position: 'absolute', - right: 0, - top: '50%', - transform: 'translateY(-50%)' - }, - DateRangePickerInput_clearDates__small: { padding: 6 }, - DateRangePickerInput_clearDates_default: { - ':focus': { background: r.core.border, borderRadius: '50%' }, - ':hover': { background: r.core.border, borderRadius: '50%' } - }, - DateRangePickerInput_clearDates__hide: { visibility: 'hidden' }, - DateRangePickerInput_clearDates_svg: { - fill: r.core.grayLight, - height: 12, - width: 15, - verticalAlign: 'middle' - }, - DateRangePickerInput_clearDates_svg__small: { height: 9 }, - DateRangePickerInput_calendarIcon: { - background: 'none', - border: 0, - color: 'inherit', - font: 'inherit', - lineHeight: 'normal', - overflow: 'visible', - cursor: 'pointer', - display: 'inline-block', - verticalAlign: 'middle', - padding: 10, - margin: '0 5px 0 10px' - }, - DateRangePickerInput_calendarIcon_svg: { - fill: r.core.grayLight, - height: 15, - width: 14, - verticalAlign: 'middle' - } - }; - }, - { pureComponent: void 0 !== r.default.PureComponent } - )(m); - t.default = b; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = void 0); - var r = f(n(32)), - o = f(n(0)), - i = (f(n(1)), n(11), n(33)), - a = f(n(151)), - s = f(n(70)), - c = f(n(47)), - u = f(n(156)), - l = (f(n(59)), n(7)); - function f(e) { - return e && e.__esModule ? e : { default: e }; - } - function d(e) { - return (d = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(e) { - return typeof e; - } - : function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - })(e); - } - function p() { - return (p = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - function h(e) { - return (h = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(e) { - return e.__proto__ || Object.getPrototypeOf(e); - })(e); - } - function g(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - function m(e, t, n) { - return t && g(e.prototype, t), n && g(e, n), e; - } - function b(e, t) { - return (b = - Object.setPrototypeOf || - function(e, t) { - return (e.__proto__ = t), e; - })(e, t); - } - function y(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return e; - } - var v = 'M0,' - .concat(l.FANG_HEIGHT_PX, ' ') - .concat(l.FANG_WIDTH_PX, ',') - .concat(l.FANG_HEIGHT_PX, ' ') - .concat(l.FANG_WIDTH_PX / 2, ',0z'), - _ = 'M0,' - .concat(l.FANG_HEIGHT_PX, ' ') - .concat(l.FANG_WIDTH_PX / 2, ',0 ') - .concat(l.FANG_WIDTH_PX, ',') - .concat(l.FANG_HEIGHT_PX), - x = 'M0,0 ' - .concat(l.FANG_WIDTH_PX, ',0 ') - .concat(l.FANG_WIDTH_PX / 2, ',') - .concat(l.FANG_HEIGHT_PX, 'z'), - w = 'M0,0 ' - .concat(l.FANG_WIDTH_PX / 2, ',') - .concat(l.FANG_HEIGHT_PX, ' ') - .concat(l.FANG_WIDTH_PX, ',0'), - M = { - placeholder: 'Select Date', - displayValue: '', - screenReaderMessage: '', - focused: !1, - disabled: !1, - required: !1, - readOnly: null, - openDirection: l.OPEN_DOWN, - showCaret: !1, - verticalSpacing: l.DEFAULT_VERTICAL_SPACING, - small: !1, - block: !1, - regular: !1, - onChange: function() {}, - onFocus: function() {}, - onKeyDownShiftTab: function() {}, - onKeyDownTab: function() {}, - onKeyDownArrowDown: function() {}, - onKeyDownQuestionMark: function() {}, - isFocused: !1 - }, - k = (function(e) { - function t(e) { - var n; - return ( - (function(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - })(this, t), - ((n = (function(e, t) { - return !t || ('object' !== d(t) && 'function' != typeof t) - ? y(e) - : t; - })(this, h(t).call(this, e))).state = { - dateString: '', - isTouchDevice: !1 - }), - (n.onChange = n.onChange.bind(y(y(n)))), - (n.onKeyDown = n.onKeyDown.bind(y(y(n)))), - (n.setInputRef = n.setInputRef.bind(y(y(n)))), - (n.throttledKeyDown = (0, a.default)(n.onFinalKeyDown, 300, { - trailing: !1 - })), - n - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { value: e, writable: !0, configurable: !0 } - })), - t && b(e, t); - })(t, e), - m(t, [ - { - key: !o.default.PureComponent && 'shouldComponentUpdate', - value: function(e, t) { - return (0, r.default)(this, e, t); - } - } - ]), - m(t, [ - { - key: 'componentDidMount', - value: function() { - this.setState({ isTouchDevice: (0, s.default)() }); - } - }, - { - key: 'componentWillReceiveProps', - value: function(e) { - this.state.dateString && - e.displayValue && - this.setState({ dateString: '' }); - } - }, - { - key: 'componentDidUpdate', - value: function(e) { - var t = this.props, - n = t.focused, - r = t.isFocused; - (e.focused === n && e.isFocused === r) || - (n && r && this.inputRef.focus()); - } - }, - { - key: 'onChange', - value: function(e) { - var t = this.props, - n = t.onChange, - r = t.onKeyDownQuestionMark, - o = e.target.value; - '?' === o[o.length - 1] - ? r(e) - : this.setState({ dateString: o }, function() { - return n(o); - }); - } - }, - { - key: 'onKeyDown', - value: function(e) { - e.stopPropagation(), - l.MODIFIER_KEY_NAMES.has(e.key) || this.throttledKeyDown(e); - } - }, - { - key: 'onFinalKeyDown', - value: function(e) { - var t = this.props, - n = t.onKeyDownShiftTab, - r = t.onKeyDownTab, - o = t.onKeyDownArrowDown, - i = t.onKeyDownQuestionMark, - a = e.key; - 'Tab' === a - ? e.shiftKey - ? n(e) - : r(e) - : 'ArrowDown' === a - ? o(e) - : '?' === a && (e.preventDefault(), i(e)); - } - }, - { - key: 'setInputRef', - value: function(e) { - this.inputRef = e; - } - }, - { - key: 'render', - value: function() { - var e = this.state, - t = e.dateString, - n = e.isTouchDevice, - r = this.props, - a = r.id, - s = r.placeholder, - c = r.displayValue, - f = r.screenReaderMessage, - d = r.focused, - h = r.showCaret, - g = r.onFocus, - m = r.disabled, - b = r.required, - y = r.readOnly, - M = r.openDirection, - k = r.verticalSpacing, - S = r.small, - A = r.regular, - O = r.block, - E = r.styles, - T = r.theme.reactDates, - C = t || c || '', - L = 'DateInput__screen-reader-message-'.concat(a), - P = h && d, - D = (0, u.default)(T, S); - return o.default.createElement( - 'div', - (0, i.css)( - E.DateInput, - S && E.DateInput__small, - O && E.DateInput__block, - P && E.DateInput__withFang, - m && E.DateInput__disabled, - P && M === l.OPEN_DOWN && E.DateInput__openDown, - P && M === l.OPEN_UP && E.DateInput__openUp - ), - o.default.createElement( - 'input', - p( - {}, - (0, i.css)( - E.DateInput_input, - S && E.DateInput_input__small, - A && E.DateInput_input__regular, - y && E.DateInput_input__readOnly, - d && E.DateInput_input__focused, - m && E.DateInput_input__disabled - ), - { - 'aria-label': s, - type: 'text', - id: a, - name: a, - ref: this.setInputRef, - value: C, - onChange: this.onChange, - onKeyDown: this.onKeyDown, - onFocus: g, - placeholder: s, - autoComplete: 'off', - disabled: m, - readOnly: 'boolean' == typeof y ? y : n, - required: b, - 'aria-describedby': f && L - } - ) - ), - P && - o.default.createElement( - 'svg', - p( - { role: 'presentation', focusable: 'false' }, - (0, i.css)( - E.DateInput_fang, - M === l.OPEN_DOWN && { - top: D + k - l.FANG_HEIGHT_PX - 1 - }, - M === l.OPEN_UP && { - bottom: D + k - l.FANG_HEIGHT_PX - 1 - } - ) - ), - o.default.createElement( - 'path', - p({}, (0, i.css)(E.DateInput_fangShape), { - d: M === l.OPEN_DOWN ? v : x - }) - ), - o.default.createElement( - 'path', - p({}, (0, i.css)(E.DateInput_fangStroke), { - d: M === l.OPEN_DOWN ? _ : w - }) - ) - ), - f && - o.default.createElement( - 'p', - p({}, (0, i.css)(E.DateInput_screenReaderMessage), { - id: L - }), - f - ) - ); - } - } - ]), - t - ); - })(o.default.PureComponent || o.default.Component); - (k.propTypes = {}), (k.defaultProps = M); - var S = (0, i.withStyles)( - function(e) { - var t = e.reactDates, - n = t.border, - r = t.color, - o = t.sizing, - i = t.spacing, - a = t.font, - s = t.zIndex; - return { - DateInput: { - margin: 0, - padding: i.inputPadding, - background: r.background, - position: 'relative', - display: 'inline-block', - width: o.inputWidth, - verticalAlign: 'middle' - }, - DateInput__small: { width: o.inputWidth_small }, - DateInput__block: { width: '100%' }, - DateInput__disabled: { - background: r.disabled, - color: r.textDisabled - }, - DateInput_input: { - fontWeight: 200, - fontSize: a.input.size, - lineHeight: a.input.lineHeight, - color: r.text, - backgroundColor: r.background, - width: '100%', - padding: '' - .concat(i.displayTextPaddingVertical, 'px ') - .concat(i.displayTextPaddingHorizontal, 'px'), - paddingTop: i.displayTextPaddingTop, - paddingBottom: i.displayTextPaddingBottom, - paddingLeft: (0, c.default)(i.displayTextPaddingLeft), - paddingRight: (0, c.default)(i.displayTextPaddingRight), - border: n.input.border, - borderTop: n.input.borderTop, - borderRight: (0, c.default)(n.input.borderRight), - borderBottom: n.input.borderBottom, - borderLeft: (0, c.default)(n.input.borderLeft), - borderRadius: n.input.borderRadius - }, - DateInput_input__small: { - fontSize: a.input.size_small, - lineHeight: a.input.lineHeight_small, - letterSpacing: a.input.letterSpacing_small, - padding: '' - .concat(i.displayTextPaddingVertical_small, 'px ') - .concat(i.displayTextPaddingHorizontal_small, 'px'), - paddingTop: i.displayTextPaddingTop_small, - paddingBottom: i.displayTextPaddingBottom_small, - paddingLeft: (0, c.default)(i.displayTextPaddingLeft_small), - paddingRight: (0, c.default)(i.displayTextPaddingRight_small) - }, - DateInput_input__regular: { fontWeight: 'auto' }, - DateInput_input__readOnly: { userSelect: 'none' }, - DateInput_input__focused: { - outline: n.input.outlineFocused, - background: r.backgroundFocused, - border: n.input.borderFocused, - borderTop: n.input.borderTopFocused, - borderRight: (0, c.default)(n.input.borderRightFocused), - borderBottom: n.input.borderBottomFocused, - borderLeft: (0, c.default)(n.input.borderLeftFocused) - }, - DateInput_input__disabled: { - background: r.disabled, - fontStyle: a.input.styleDisabled - }, - DateInput_screenReaderMessage: { - border: 0, - clip: 'rect(0, 0, 0, 0)', - height: 1, - margin: -1, - overflow: 'hidden', - padding: 0, - position: 'absolute', - width: 1 - }, - DateInput_fang: { - position: 'absolute', - width: l.FANG_WIDTH_PX, - height: l.FANG_HEIGHT_PX, - left: 22, - zIndex: s + 2 - }, - DateInput_fangShape: { fill: r.background }, - DateInput_fangStroke: { stroke: r.core.border, fill: 'transparent' } - }; - }, - { pureComponent: void 0 !== o.default.PureComponent } - )(k); - t.default = S; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = void 0); - var r, - o = (r = n(0)) && r.__esModule ? r : { default: r }; - var i = function(e) { - return o.default.createElement( - 'svg', - e, - o.default.createElement('path', { - d: - 'M694.4 242.4l249.1 249.1c11 11 11 21 0 32L694.4 772.7c-5 5-10 7-16 7s-11-2-16-7c-11-11-11-21 0-32l210.1-210.1H67.1c-13 0-23-10-23-23s10-23 23-23h805.4L662.4 274.5c-21-21.1 11-53.1 32-32.1z' - }) - ); - }; - i.defaultProps = { focusable: 'false', viewBox: '0 0 1000 1000' }; - var a = i; - t.default = a; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = void 0); - var r, - o = (r = n(0)) && r.__esModule ? r : { default: r }; - var i = function(e) { - return o.default.createElement( - 'svg', - e, - o.default.createElement('path', { - d: - 'M336.2 274.5l-210.1 210h805.4c13 0 23 10 23 23s-10 23-23 23H126.1l210.1 210.1c11 11 11 21 0 32-5 5-10 7-16 7s-11-2-16-7l-249.1-249c-11-11-11-21 0-32l249.1-249.1c21-21.1 53 10.9 32 32z' - }) - ); - }; - i.defaultProps = { focusable: 'false', viewBox: '0 0 1000 1000' }; - var a = i; - t.default = a; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = void 0); - var r, - o = (r = n(0)) && r.__esModule ? r : { default: r }; - var i = function(e) { - return o.default.createElement( - 'svg', - e, - o.default.createElement('path', { - d: - 'M107.2 1392.9h241.1v-241.1H107.2v241.1zm294.7 0h267.9v-241.1H401.9v241.1zm-294.7-294.7h241.1V830.4H107.2v267.8zm294.7 0h267.9V830.4H401.9v267.8zM107.2 776.8h241.1V535.7H107.2v241.1zm616.2 616.1h267.9v-241.1H723.4v241.1zM401.9 776.8h267.9V535.7H401.9v241.1zm642.9 616.1H1286v-241.1h-241.1v241.1zm-321.4-294.7h267.9V830.4H723.4v267.8zM428.7 375V133.9c0-7.3-2.7-13.5-8-18.8-5.3-5.3-11.6-8-18.8-8h-53.6c-7.3 0-13.5 2.7-18.8 8-5.3 5.3-8 11.6-8 18.8V375c0 7.3 2.7 13.5 8 18.8 5.3 5.3 11.6 8 18.8 8h53.6c7.3 0 13.5-2.7 18.8-8 5.3-5.3 8-11.5 8-18.8zm616.1 723.2H1286V830.4h-241.1v267.8zM723.4 776.8h267.9V535.7H723.4v241.1zm321.4 0H1286V535.7h-241.1v241.1zm26.8-401.8V133.9c0-7.3-2.7-13.5-8-18.8-5.3-5.3-11.6-8-18.8-8h-53.6c-7.3 0-13.5 2.7-18.8 8-5.3 5.3-8 11.6-8 18.8V375c0 7.3 2.7 13.5 8 18.8 5.3 5.3 11.6 8 18.8 8h53.6c7.3 0 13.5-2.7 18.8-8 5.4-5.3 8-11.5 8-18.8zm321.5-53.6v1071.4c0 29-10.6 54.1-31.8 75.3-21.2 21.2-46.3 31.8-75.3 31.8H107.2c-29 0-54.1-10.6-75.3-31.8C10.6 1447 0 1421.9 0 1392.9V321.4c0-29 10.6-54.1 31.8-75.3s46.3-31.8 75.3-31.8h107.2v-80.4c0-36.8 13.1-68.4 39.3-94.6S311.4 0 348.3 0h53.6c36.8 0 68.4 13.1 94.6 39.3 26.2 26.2 39.3 57.8 39.3 94.6v80.4h321.5v-80.4c0-36.8 13.1-68.4 39.3-94.6C922.9 13.1 954.4 0 991.3 0h53.6c36.8 0 68.4 13.1 94.6 39.3s39.3 57.8 39.3 94.6v80.4H1286c29 0 54.1 10.6 75.3 31.8 21.2 21.2 31.8 46.3 31.8 75.3z' - }) - ); - }; - i.defaultProps = { focusable: 'false', viewBox: '0 0 1393.1 1500' }; - var a = i; - t.default = a; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = void 0); - var r = x(n(32)), - o = x(n(0)), - i = (x(n(1)), x(n(41)), n(11), x(n(2))), - a = x(n(154)), - s = x(n(70)), - c = n(20), - u = (x(n(23)), x(n(72))), - l = x(n(397)), - f = x(n(67)), - d = x(n(120)), - p = x(n(93)), - h = x(n(398)), - g = x(n(158)), - m = x(n(735)), - b = x(n(117)), - y = x(n(119)), - v = (x(n(91)), x(n(384)), x(n(69)), x(n(58)), x(n(92)), n(7)), - _ = x(n(159)); - function x(e) { - return e && e.__esModule ? e : { default: e }; - } - function w(e) { - return (w = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(e) { - return typeof e; - } - : function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - })(e); - } - function M(e, t) { - return ( - (function(e) { - if (Array.isArray(e)) return e; - })(e) || - (function(e, t) { - var n = [], - r = !0, - o = !1, - i = void 0; - try { - for ( - var a, s = e[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !t || n.length !== t); - r = !0 - ); - } catch (e) { - (o = !0), (i = e); - } finally { - try { - r || null == s.return || s.return(); - } finally { - if (o) throw i; - } - } - return n; - })(e, t) || - (function() { - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance' - ); - })() - ); - } - function k(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}, - r = Object.keys(n); - 'function' == typeof Object.getOwnPropertySymbols && - (r = r.concat( - Object.getOwnPropertySymbols(n).filter(function(e) { - return Object.getOwnPropertyDescriptor(n, e).enumerable; - }) - )), - r.forEach(function(t) { - S(e, t, n[t]); - }); - } - return e; - } - function S(e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e - ); - } - function A(e) { - return (A = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(e) { - return e.__proto__ || Object.getPrototypeOf(e); - })(e); - } - function O(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - function E(e, t, n) { - return t && O(e.prototype, t), n && O(e, n), e; - } - function T(e, t) { - return (T = - Object.setPrototypeOf || - function(e, t) { - return (e.__proto__ = t), e; - })(e, t); - } - function C(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return e; - } - var L = { - startDate: void 0, - endDate: void 0, - minDate: null, - maxDate: null, - onDatesChange: function() {}, - startDateOffset: void 0, - endDateOffset: void 0, - focusedInput: null, - onFocusChange: function() {}, - onClose: function() {}, - keepOpenOnDateSelect: !1, - minimumNights: 1, - disabled: !1, - isOutsideRange: function() {}, - isDayBlocked: function() {}, - isDayHighlighted: function() {}, - renderMonthText: null, - enableOutsideDays: !1, - numberOfMonths: 1, - orientation: v.HORIZONTAL_ORIENTATION, - withPortal: !1, - hideKeyboardShortcutsPanel: !1, - initialVisibleMonth: null, - daySize: v.DAY_SIZE, - navPrev: null, - navNext: null, - noNavButtons: !1, - onPrevMonthClick: function() {}, - onNextMonthClick: function() {}, - onOutsideClick: function() {}, - renderCalendarDay: void 0, - renderDayContents: null, - renderCalendarInfo: null, - renderMonthElement: null, - calendarInfoPosition: v.INFO_POSITION_BOTTOM, - firstDayOfWeek: null, - verticalHeight: null, - noBorder: !1, - transitionDuration: void 0, - verticalBorderSpacing: void 0, - horizontalMonthPadding: 13, - onBlur: function() {}, - isFocused: !1, - showKeyboardShortcuts: !1, - onTab: function() {}, - onShiftTab: function() {}, - monthFormat: 'MMMM YYYY', - weekDayFormat: 'dd', - phrases: c.DayPickerPhrases, - dayAriaLabelFormat: void 0, - isRTL: !1 - }, - P = function(e, t) { - return t === v.START_DATE - ? e.chooseAvailableStartDate - : t === v.END_DATE - ? e.chooseAvailableEndDate - : e.chooseAvailableDate; - }, - D = (function(e) { - function t(e) { - var n; - !(function(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - })(this, t), - ((n = (function(e, t) { - return !t || ('object' !== w(t) && 'function' != typeof t) - ? C(e) - : t; - })(this, A(t).call(this, e))).isTouchDevice = (0, s.default)()), - (n.today = (0, i.default)()), - (n.modifiers = { - today: function(e) { - return n.isToday(e); - }, - blocked: function(e) { - return n.isBlocked(e); - }, - 'blocked-calendar': function(t) { - return e.isDayBlocked(t); - }, - 'blocked-out-of-range': function(t) { - return e.isOutsideRange(t); - }, - 'highlighted-calendar': function(t) { - return e.isDayHighlighted(t); - }, - valid: function(e) { - return !n.isBlocked(e); - }, - 'selected-start': function(e) { - return n.isStartDate(e); - }, - 'selected-end': function(e) { - return n.isEndDate(e); - }, - 'blocked-minimum-nights': function(e) { - return n.doesNotMeetMinimumNights(e); - }, - 'selected-span': function(e) { - return n.isInSelectedSpan(e); - }, - 'last-in-range': function(e) { - return n.isLastInRange(e); - }, - hovered: function(e) { - return n.isHovered(e); - }, - 'hovered-span': function(e) { - return n.isInHoveredSpan(e); - }, - 'hovered-offset': function(e) { - return n.isInHoveredSpan(e); - }, - 'after-hovered-start': function(e) { - return n.isDayAfterHoveredStartDate(e); - }, - 'first-day-of-week': function(e) { - return n.isFirstDayOfWeek(e); - }, - 'last-day-of-week': function(e) { - return n.isLastDayOfWeek(e); - } - }); - var r = n.getStateForNewMonth(e), - o = r.currentMonth, - a = r.visibleDays, - c = P(e.phrases, e.focusedInput); - return ( - (n.state = { - hoverDate: null, - currentMonth: o, - phrases: k({}, e.phrases, { chooseAvailableDate: c }), - visibleDays: a, - disablePrev: n.shouldDisableMonthNavigation(e.minDate, o), - disableNext: n.shouldDisableMonthNavigation(e.maxDate, o) - }), - (n.onDayClick = n.onDayClick.bind(C(C(n)))), - (n.onDayMouseEnter = n.onDayMouseEnter.bind(C(C(n)))), - (n.onDayMouseLeave = n.onDayMouseLeave.bind(C(C(n)))), - (n.onPrevMonthClick = n.onPrevMonthClick.bind(C(C(n)))), - (n.onNextMonthClick = n.onNextMonthClick.bind(C(C(n)))), - (n.onMonthChange = n.onMonthChange.bind(C(C(n)))), - (n.onYearChange = n.onYearChange.bind(C(C(n)))), - (n.onMultiplyScrollableMonths = n.onMultiplyScrollableMonths.bind( - C(C(n)) - )), - (n.getFirstFocusableDay = n.getFirstFocusableDay.bind(C(C(n)))), - n - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { value: e, writable: !0, configurable: !0 } - })), - t && T(e, t); - })(t, e), - E(t, [ - { - key: !o.default.PureComponent && 'shouldComponentUpdate', - value: function(e, t) { - return (0, r.default)(this, e, t); - } - } - ]), - E(t, [ - { - key: 'componentWillReceiveProps', - value: function(e) { - var t = this, - n = e.startDate, - r = e.endDate, - o = e.focusedInput, - s = e.minimumNights, - c = e.isOutsideRange, - u = e.isDayBlocked, - l = e.isDayHighlighted, - d = e.phrases, - p = e.initialVisibleMonth, - h = e.numberOfMonths, - g = e.enableOutsideDays, - m = this.props, - b = m.startDate, - y = m.endDate, - _ = m.focusedInput, - x = m.minimumNights, - w = m.isOutsideRange, - M = m.isDayBlocked, - S = m.isDayHighlighted, - A = m.phrases, - O = m.initialVisibleMonth, - E = m.numberOfMonths, - T = m.enableOutsideDays, - C = this.state.visibleDays, - L = !1, - D = !1, - z = !1; - c !== w && - ((this.modifiers['blocked-out-of-range'] = function(e) { - return c(e); - }), - (L = !0)), - u !== M && - ((this.modifiers['blocked-calendar'] = function(e) { - return u(e); - }), - (D = !0)), - l !== S && - ((this.modifiers['highlighted-calendar'] = function(e) { - return l(e); - }), - (z = !0)); - var N = L || D || z, - j = n !== b, - R = r !== y, - I = o !== _; - if (h !== E || g !== T || (p !== O && !_ && I)) { - var F = this.getStateForNewMonth(e), - q = F.currentMonth; - (C = F.visibleDays), - this.setState({ currentMonth: q, visibleDays: C }); - } - var B = {}; - if ( - j && - ((B = this.deleteModifier(B, b, 'selected-start')), - (B = this.addModifier(B, n, 'selected-start')), - b) - ) { - var H = b.clone().add(1, 'day'), - Y = b.clone().add(x + 1, 'days'); - B = this.deleteModifierFromRange( - B, - H, - Y, - 'after-hovered-start' - ); - } - if ( - (R && - ((B = this.deleteModifier(B, y, 'selected-end')), - (B = this.addModifier(B, r, 'selected-end'))), - (j || R) && - (b && - y && - (B = this.deleteModifierFromRange( - B, - b, - y.clone().add(1, 'day'), - 'selected-span' - )), - n && - r && - ((B = this.deleteModifierFromRange( - B, - n, - r.clone().add(1, 'day'), - 'hovered-span' - )), - (B = this.addModifierToRange( - B, - n.clone().add(1, 'day'), - r, - 'selected-span' - )))), - !this.isTouchDevice && j && n && !r) - ) { - var W = n.clone().add(1, 'day'), - V = n.clone().add(s + 1, 'days'); - B = this.addModifierToRange(B, W, V, 'after-hovered-start'); - } - if (x > 0 && (I || j || s !== x)) { - var U = b || this.today; - (B = this.deleteModifierFromRange( - B, - U, - U.clone().add(x, 'days'), - 'blocked-minimum-nights' - )), - (B = this.deleteModifierFromRange( - B, - U, - U.clone().add(x, 'days'), - 'blocked' - )); - } - (I || N) && - (0, a.default)(C).forEach(function(e) { - Object.keys(e).forEach(function(e) { - var n = (0, i.default)(e), - r = !1; - (I || L) && - (c(n) - ? ((B = t.addModifier( - B, - n, - 'blocked-out-of-range' - )), - (r = !0)) - : (B = t.deleteModifier( - B, - n, - 'blocked-out-of-range' - ))), - (I || D) && - (u(n) - ? ((B = t.addModifier(B, n, 'blocked-calendar')), - (r = !0)) - : (B = t.deleteModifier( - B, - n, - 'blocked-calendar' - ))), - (B = r - ? t.addModifier(B, n, 'blocked') - : t.deleteModifier(B, n, 'blocked')), - (I || z) && - (B = l(n) - ? t.addModifier(B, n, 'highlighted-calendar') - : t.deleteModifier(B, n, 'highlighted-calendar')); - }); - }), - s > 0 && - n && - o === v.END_DATE && - ((B = this.addModifierToRange( - B, - n, - n.clone().add(s, 'days'), - 'blocked-minimum-nights' - )), - (B = this.addModifierToRange( - B, - n, - n.clone().add(s, 'days'), - 'blocked' - ))); - var X = (0, i.default)(); - if ( - ((0, f.default)(this.today, X) || - ((B = this.deleteModifier(B, this.today, 'today')), - (B = this.addModifier(B, X, 'today')), - (this.today = X)), - Object.keys(B).length > 0 && - this.setState({ visibleDays: k({}, C, B) }), - I || d !== A) - ) { - var G = P(d, o); - this.setState({ - phrases: k({}, d, { chooseAvailableDate: G }) - }); - } - } - }, - { - key: 'onDayClick', - value: function(e, t) { - var n = this.props, - r = n.keepOpenOnDateSelect, - o = n.minimumNights, - i = n.onBlur, - a = n.focusedInput, - s = n.onFocusChange, - c = n.onClose, - l = n.onDatesChange, - f = n.startDateOffset, - h = n.endDateOffset, - g = n.disabled; - if ((t && t.preventDefault(), !this.isBlocked(e))) { - var b = this.props, - y = b.startDate, - _ = b.endDate; - if (f || h) { - if ( - ((y = (0, m.default)(f, e)), - (_ = (0, m.default)(h, e)), - this.isBlocked(y) || this.isBlocked(_)) - ) - return; - l({ startDate: y, endDate: _ }), - r || (s(null), c({ startDate: y, endDate: _ })); - } else if (a === v.START_DATE) { - var x = _ && _.clone().subtract(o, 'days'), - w = (0, p.default)(x, e) || (0, d.default)(y, _), - M = g === v.END_DATE; - (M && w) || ((y = e), w && (_ = null)), - l({ startDate: y, endDate: _ }), - M && !w - ? (s(null), c({ startDate: y, endDate: _ })) - : M || s(v.END_DATE); - } else if (a === v.END_DATE) { - var k = y && y.clone().add(o, 'days'); - y - ? (0, u.default)(e, k) - ? (l({ startDate: y, endDate: (_ = e) }), - r || (s(null), c({ startDate: y, endDate: _ }))) - : g !== v.START_DATE - ? l({ startDate: (y = e), endDate: (_ = null) }) - : l({ startDate: y, endDate: _ }) - : (l({ startDate: y, endDate: (_ = e) }), - s(v.START_DATE)); - } else l({ startDate: y, endDate: _ }); - i(); - } - } - }, - { - key: 'onDayMouseEnter', - value: function(e) { - if (!this.isTouchDevice) { - var t = this.props, - n = t.startDate, - r = t.endDate, - o = t.focusedInput, - i = t.minimumNights, - a = t.startDateOffset, - s = t.endDateOffset, - c = this.state, - u = c.hoverDate, - l = c.visibleDays, - h = c.dateOffset, - g = null; - if (o) { - var b = a || s, - y = {}; - if (b) { - var _ = (0, m.default)(a, e), - x = (0, m.default)(s, e, function(e) { - return e.add(1, 'day'); - }); - (g = { start: _, end: x }), - h && - h.start && - h.end && - (y = this.deleteModifierFromRange( - y, - h.start, - h.end, - 'hovered-offset' - )), - (y = this.addModifierToRange( - y, - _, - x, - 'hovered-offset' - )); - } - if (!b) { - if ( - ((y = this.deleteModifier(y, u, 'hovered')), - (y = this.addModifier(y, e, 'hovered')), - n && !r && o === v.END_DATE) - ) { - if ((0, d.default)(u, n)) { - var w = u.clone().add(1, 'day'); - y = this.deleteModifierFromRange( - y, - n, - w, - 'hovered-span' - ); - } - if (!this.isBlocked(e) && (0, d.default)(e, n)) { - var M = e.clone().add(1, 'day'); - y = this.addModifierToRange( - y, - n, - M, - 'hovered-span' - ); - } - } - if ( - (!n && - r && - o === v.START_DATE && - ((0, p.default)(u, r) && - (y = this.deleteModifierFromRange( - y, - u, - r, - 'hovered-span' - )), - !this.isBlocked(e) && - (0, p.default)(e, r) && - (y = this.addModifierToRange( - y, - e, - r, - 'hovered-span' - ))), - n) - ) { - var S = n.clone().add(1, 'day'), - A = n.clone().add(i + 1, 'days'); - if ( - ((y = this.deleteModifierFromRange( - y, - S, - A, - 'after-hovered-start' - )), - (0, f.default)(e, n)) - ) { - var O = n.clone().add(1, 'day'), - E = n.clone().add(i + 1, 'days'); - y = this.addModifierToRange( - y, - O, - E, - 'after-hovered-start' - ); - } - } - } - this.setState({ - hoverDate: e, - dateOffset: g, - visibleDays: k({}, l, y) - }); - } - } - } - }, - { - key: 'onDayMouseLeave', - value: function(e) { - var t = this.props, - n = t.startDate, - r = t.endDate, - o = t.minimumNights, - i = this.state, - a = i.hoverDate, - s = i.visibleDays, - c = i.dateOffset; - if (!this.isTouchDevice && a) { - var u = {}; - if ( - ((u = this.deleteModifier(u, a, 'hovered')), - c && - (u = this.deleteModifierFromRange( - u, - c.start, - c.end, - 'hovered-offset' - )), - n && !r && (0, d.default)(a, n)) - ) { - var l = a.clone().add(1, 'day'); - u = this.deleteModifierFromRange(u, n, l, 'hovered-span'); - } - if ( - (!n && - r && - (0, d.default)(r, a) && - (u = this.deleteModifierFromRange( - u, - a, - r, - 'hovered-span' - )), - n && (0, f.default)(e, n)) - ) { - var p = n.clone().add(1, 'day'), - h = n.clone().add(o + 1, 'days'); - u = this.deleteModifierFromRange( - u, - p, - h, - 'after-hovered-start' - ); - } - this.setState({ - hoverDate: null, - visibleDays: k({}, s, u) - }); - } - } - }, - { - key: 'onPrevMonthClick', - value: function() { - var e = this.props, - t = e.enableOutsideDays, - n = e.maxDate, - r = e.minDate, - o = e.numberOfMonths, - i = e.onPrevMonthClick, - a = this.state, - s = a.currentMonth, - c = a.visibleDays, - u = {}; - Object.keys(c) - .sort() - .slice(0, o + 1) - .forEach(function(e) { - u[e] = c[e]; - }); - var l = s.clone().subtract(2, 'months'), - f = (0, h.default)(l, 1, t, !0), - d = s.clone().subtract(1, 'month'); - this.setState( - { - currentMonth: d, - disablePrev: this.shouldDisableMonthNavigation(r, d), - disableNext: this.shouldDisableMonthNavigation(n, d), - visibleDays: k({}, u, this.getModifiers(f)) - }, - function() { - i(d.clone()); - } - ); - } - }, - { - key: 'onNextMonthClick', - value: function() { - var e = this.props, - t = e.enableOutsideDays, - n = e.maxDate, - r = e.minDate, - o = e.numberOfMonths, - i = e.onNextMonthClick, - a = this.state, - s = a.currentMonth, - c = a.visibleDays, - u = {}; - Object.keys(c) - .sort() - .slice(1) - .forEach(function(e) { - u[e] = c[e]; - }); - var l = s.clone().add(o + 1, 'month'), - f = (0, h.default)(l, 1, t, !0), - d = s.clone().add(1, 'month'); - this.setState( - { - currentMonth: d, - disablePrev: this.shouldDisableMonthNavigation(r, d), - disableNext: this.shouldDisableMonthNavigation(n, d), - visibleDays: k({}, u, this.getModifiers(f)) - }, - function() { - i(d.clone()); - } - ); - } - }, - { - key: 'onMonthChange', - value: function(e) { - var t = this.props, - n = t.numberOfMonths, - r = t.enableOutsideDays, - o = t.orientation === v.VERTICAL_SCROLLABLE, - i = (0, h.default)(e, n, r, o); - this.setState({ - currentMonth: e.clone(), - visibleDays: this.getModifiers(i) - }); - } - }, - { - key: 'onYearChange', - value: function(e) { - var t = this.props, - n = t.numberOfMonths, - r = t.enableOutsideDays, - o = t.orientation === v.VERTICAL_SCROLLABLE, - i = (0, h.default)(e, n, r, o); - this.setState({ - currentMonth: e.clone(), - visibleDays: this.getModifiers(i) - }); - } - }, - { - key: 'onMultiplyScrollableMonths', - value: function() { - var e = this.props, - t = e.numberOfMonths, - n = e.enableOutsideDays, - r = this.state, - o = r.currentMonth, - i = r.visibleDays, - a = Object.keys(i).length, - s = o.clone().add(a, 'month'), - c = (0, h.default)(s, t, n, !0); - this.setState({ - visibleDays: k({}, i, this.getModifiers(c)) - }); - } - }, - { - key: 'getFirstFocusableDay', - value: function(e) { - var t = this, - n = this.props, - r = n.startDate, - o = n.endDate, - i = n.focusedInput, - a = n.minimumNights, - s = n.numberOfMonths, - c = e.clone().startOf('month'); - if ( - (i === v.START_DATE && r - ? (c = r.clone()) - : i === v.END_DATE && !o && r - ? (c = r.clone().add(a, 'days')) - : i === v.END_DATE && o && (c = o.clone()), - this.isBlocked(c)) - ) { - for ( - var u = [], - l = e - .clone() - .add(s - 1, 'months') - .endOf('month'), - f = c.clone(); - !(0, d.default)(f, l); - - ) - (f = f.clone().add(1, 'day')), u.push(f); - var p = u.filter(function(e) { - return !t.isBlocked(e); - }); - p.length > 0 && (c = M(p, 1)[0]); - } - return c; - } - }, - { - key: 'getModifiers', - value: function(e) { - var t = this, - n = {}; - return ( - Object.keys(e).forEach(function(r) { - (n[r] = {}), - e[r].forEach(function(e) { - n[r][(0, b.default)(e)] = t.getModifiersForDay(e); - }); - }), - n - ); - } - }, - { - key: 'getModifiersForDay', - value: function(e) { - var t = this; - return new Set( - Object.keys(this.modifiers).filter(function(n) { - return t.modifiers[n](e); - }) - ); - } - }, - { - key: 'getStateForNewMonth', - value: function(e) { - var t = this, - n = e.initialVisibleMonth, - r = e.numberOfMonths, - o = e.enableOutsideDays, - i = e.orientation, - a = e.startDate, - s = ( - n || - (a - ? function() { - return a; - } - : function() { - return t.today; - }) - )(), - c = i === v.VERTICAL_SCROLLABLE; - return { - currentMonth: s, - visibleDays: this.getModifiers((0, h.default)(s, r, o, c)) - }; - } - }, - { - key: 'shouldDisableMonthNavigation', - value: function(e, t) { - if (!e) return !1; - var n = this.props, - r = n.numberOfMonths, - o = n.enableOutsideDays; - return (0, g.default)(e, t, r, o); - } - }, - { - key: 'addModifier', - value: function(e, t, n) { - var r = this.props, - o = r.numberOfMonths, - i = r.enableOutsideDays, - a = r.orientation, - s = this.state, - c = s.currentMonth, - u = s.visibleDays, - l = c, - f = o; - if ( - (a === v.VERTICAL_SCROLLABLE - ? (f = Object.keys(u).length) - : ((l = l.clone().subtract(1, 'month')), (f += 2)), - !t || !(0, g.default)(t, l, f, i)) - ) - return e; - var d = (0, b.default)(t), - p = k({}, e); - if (i) - p = Object.keys(u) - .filter(function(e) { - return Object.keys(u[e]).indexOf(d) > -1; - }) - .reduce(function(t, r) { - var o = e[r] || u[r], - i = new Set(o[d]); - return ( - i.add(n), k({}, t, S({}, r, k({}, o, S({}, d, i)))) - ); - }, p); - else { - var h = (0, y.default)(t), - m = e[h] || u[h], - _ = new Set(m[d]); - _.add(n), (p = k({}, p, S({}, h, k({}, m, S({}, d, _))))); - } - return p; - } - }, - { - key: 'addModifierToRange', - value: function(e, t, n, r) { - for (var o = e, i = t.clone(); (0, p.default)(i, n); ) - (o = this.addModifier(o, i, r)), - (i = i.clone().add(1, 'day')); - return o; - } - }, - { - key: 'deleteModifier', - value: function(e, t, n) { - var r = this.props, - o = r.numberOfMonths, - i = r.enableOutsideDays, - a = r.orientation, - s = this.state, - c = s.currentMonth, - u = s.visibleDays, - l = c, - f = o; - if ( - (a === v.VERTICAL_SCROLLABLE - ? (f = Object.keys(u).length) - : ((l = l.clone().subtract(1, 'month')), (f += 2)), - !t || !(0, g.default)(t, l, f, i)) - ) - return e; - var d = (0, b.default)(t), - p = k({}, e); - if (i) - p = Object.keys(u) - .filter(function(e) { - return Object.keys(u[e]).indexOf(d) > -1; - }) - .reduce(function(t, r) { - var o = e[r] || u[r], - i = new Set(o[d]); - return ( - i.delete(n), k({}, t, S({}, r, k({}, o, S({}, d, i)))) - ); - }, p); - else { - var h = (0, y.default)(t), - m = e[h] || u[h], - _ = new Set(m[d]); - _.delete(n), - (p = k({}, p, S({}, h, k({}, m, S({}, d, _))))); - } - return p; - } - }, - { - key: 'deleteModifierFromRange', - value: function(e, t, n, r) { - for (var o = e, i = t.clone(); (0, p.default)(i, n); ) - (o = this.deleteModifier(o, i, r)), - (i = i.clone().add(1, 'day')); - return o; - } - }, - { - key: 'doesNotMeetMinimumNights', - value: function(e) { - var t = this.props, - n = t.startDate, - r = t.isOutsideRange, - o = t.focusedInput, - a = t.minimumNights; - if (o !== v.END_DATE) return !1; - if (n) { - var s = e.diff( - n - .clone() - .startOf('day') - .hour(12), - 'days' - ); - return s < a && s >= 0; - } - return r((0, i.default)(e).subtract(a, 'days')); - } - }, - { - key: 'isDayAfterHoveredStartDate', - value: function(e) { - var t = this.props, - n = t.startDate, - r = t.endDate, - o = t.minimumNights, - i = (this.state || {}).hoverDate; - return ( - !!n && - !r && - !this.isBlocked(e) && - (0, l.default)(i, e) && - o > 0 && - (0, f.default)(i, n) - ); - } - }, - { - key: 'isEndDate', - value: function(e) { - var t = this.props.endDate; - return (0, f.default)(e, t); - } - }, - { - key: 'isHovered', - value: function(e) { - var t = (this.state || {}).hoverDate; - return !!this.props.focusedInput && (0, f.default)(e, t); - } - }, - { - key: 'isInHoveredSpan', - value: function(e) { - var t = this.props, - n = t.startDate, - r = t.endDate, - o = (this.state || {}).hoverDate, - i = - !!n && !r && (e.isBetween(n, o) || (0, f.default)(o, e)), - a = - !!r && !n && (e.isBetween(o, r) || (0, f.default)(o, e)), - s = o && !this.isBlocked(o); - return (i || a) && s; - } - }, - { - key: 'isInSelectedSpan', - value: function(e) { - var t = this.props, - n = t.startDate, - r = t.endDate; - return e.isBetween(n, r); - } - }, - { - key: 'isLastInRange', - value: function(e) { - var t = this.props.endDate; - return this.isInSelectedSpan(e) && (0, l.default)(e, t); - } - }, - { - key: 'isStartDate', - value: function(e) { - var t = this.props.startDate; - return (0, f.default)(e, t); - } - }, - { - key: 'isBlocked', - value: function(e) { - var t = this.props, - n = t.isDayBlocked, - r = t.isOutsideRange; - return n(e) || r(e) || this.doesNotMeetMinimumNights(e); - } - }, - { - key: 'isToday', - value: function(e) { - return (0, f.default)(e, this.today); - } - }, - { - key: 'isFirstDayOfWeek', - value: function(e) { - var t = this.props.firstDayOfWeek; - return ( - e.day() === (t || i.default.localeData().firstDayOfWeek()) - ); - } - }, - { - key: 'isLastDayOfWeek', - value: function(e) { - var t = this.props.firstDayOfWeek; - return ( - e.day() === - ((t || i.default.localeData().firstDayOfWeek()) + 6) % 7 - ); - } - }, - { - key: 'render', - value: function() { - var e = this.props, - t = e.numberOfMonths, - n = e.orientation, - r = e.monthFormat, - i = e.renderMonthText, - a = e.navPrev, - s = e.navNext, - c = e.noNavButtons, - u = e.onOutsideClick, - l = e.withPortal, - f = e.enableOutsideDays, - d = e.firstDayOfWeek, - p = e.hideKeyboardShortcutsPanel, - h = e.daySize, - g = e.focusedInput, - m = e.renderCalendarDay, - b = e.renderDayContents, - y = e.renderCalendarInfo, - v = e.renderMonthElement, - x = e.calendarInfoPosition, - w = e.onBlur, - M = e.onShiftTab, - k = e.onTab, - S = e.isFocused, - A = e.showKeyboardShortcuts, - O = e.isRTL, - E = e.weekDayFormat, - T = e.dayAriaLabelFormat, - C = e.verticalHeight, - L = e.noBorder, - P = e.transitionDuration, - D = e.verticalBorderSpacing, - z = e.horizontalMonthPadding, - N = this.state, - j = N.currentMonth, - R = N.phrases, - I = N.visibleDays, - F = N.disablePrev, - q = N.disableNext; - return o.default.createElement(_.default, { - orientation: n, - enableOutsideDays: f, - modifiers: I, - numberOfMonths: t, - onDayClick: this.onDayClick, - onDayMouseEnter: this.onDayMouseEnter, - onDayMouseLeave: this.onDayMouseLeave, - onPrevMonthClick: this.onPrevMonthClick, - onNextMonthClick: this.onNextMonthClick, - onMonthChange: this.onMonthChange, - onTab: k, - onShiftTab: M, - onYearChange: this.onYearChange, - onMultiplyScrollableMonths: this.onMultiplyScrollableMonths, - monthFormat: r, - renderMonthText: i, - withPortal: l, - hidden: !g, - initialVisibleMonth: function() { - return j; - }, - daySize: h, - onOutsideClick: u, - disablePrev: F, - disableNext: q, - navPrev: a, - navNext: s, - noNavButtons: c, - renderCalendarDay: m, - renderDayContents: b, - renderCalendarInfo: y, - renderMonthElement: v, - calendarInfoPosition: x, - firstDayOfWeek: d, - hideKeyboardShortcutsPanel: p, - isFocused: S, - getFirstFocusableDay: this.getFirstFocusableDay, - onBlur: w, - showKeyboardShortcuts: A, - phrases: R, - isRTL: O, - weekDayFormat: E, - dayAriaLabelFormat: T, - verticalHeight: C, - verticalBorderSpacing: D, - noBorder: L, - transitionDuration: P, - horizontalMonthPadding: z - }); - } - } - ]), - t - ); - })(o.default.PureComponent || o.default.Component); - (t.default = D), (D.propTypes = {}), (D.defaultProps = L); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = function(e, t) { - if (!r.default.isMoment(e) || !r.default.isMoment(t)) return !1; - var n = (0, r.default)(e).add(1, 'day'); - return (0, o.default)(n, t); - }); - var r = i(n(2)), - o = i(n(67)); - function i(e) { - return e && e.__esModule ? e : { default: e }; - } - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = function(e, t, n, i) { - if (!r.default.isMoment(e)) return {}; - for ( - var a = {}, - s = i ? e.clone() : e.clone().subtract(1, 'month'), - c = 0; - c < (i ? t : t + 2); - c += 1 - ) { - var u = [], - l = s.clone(), - f = l - .clone() - .startOf('month') - .hour(12), - d = l - .clone() - .endOf('month') - .hour(12), - p = f.clone(); - if (n) - for (var h = 0; h < p.weekday(); h += 1) { - var g = p.clone().subtract(h + 1, 'day'); - u.unshift(g); - } - for (; p < d; ) u.push(p.clone()), p.add(1, 'day'); - if (n && 0 !== p.weekday()) - for (var m = p.weekday(), b = 0; m < 7; m += 1, b += 1) { - var y = p.clone().add(b, 'day'); - u.push(y); - } - (a[(0, o.default)(s)] = u), (s = s.clone().add(1, 'month')); - } - return a; - }); - var r = i(n(2)), - o = i(n(119)); - function i(e) { - return e && e.__esModule ? e : { default: e }; - } - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = void 0); - var r = b(n(32)), - o = b(n(0)), - i = (b(n(1)), b(n(41)), n(11), b(n(2))), - a = b(n(154)), - s = b(n(70)), - c = n(20), - u = (b(n(23)), b(n(67))), - l = b(n(120)), - f = b(n(398)), - d = b(n(158)), - p = b(n(117)), - h = b(n(119)), - g = (b(n(69)), b(n(58)), b(n(92)), n(7)), - m = b(n(159)); - function b(e) { - return e && e.__esModule ? e : { default: e }; - } - function y(e) { - return (y = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(e) { - return typeof e; - } - : function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - })(e); - } - function v(e, t) { - return ( - (function(e) { - if (Array.isArray(e)) return e; - })(e) || - (function(e, t) { - var n = [], - r = !0, - o = !1, - i = void 0; - try { - for ( - var a, s = e[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !t || n.length !== t); - r = !0 - ); - } catch (e) { - (o = !0), (i = e); - } finally { - try { - r || null == s.return || s.return(); - } finally { - if (o) throw i; - } - } - return n; - })(e, t) || - (function() { - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance' - ); - })() - ); - } - function _(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}, - r = Object.keys(n); - 'function' == typeof Object.getOwnPropertySymbols && - (r = r.concat( - Object.getOwnPropertySymbols(n).filter(function(e) { - return Object.getOwnPropertyDescriptor(n, e).enumerable; - }) - )), - r.forEach(function(t) { - x(e, t, n[t]); - }); - } - return e; - } - function x(e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e - ); - } - function w(e) { - return (w = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(e) { - return e.__proto__ || Object.getPrototypeOf(e); - })(e); - } - function M(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - function k(e, t, n) { - return t && M(e.prototype, t), n && M(e, n), e; - } - function S(e, t) { - return (S = - Object.setPrototypeOf || - function(e, t) { - return (e.__proto__ = t), e; - })(e, t); - } - function A(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return e; - } - var O = { - date: void 0, - onDateChange: function() {}, - focused: !1, - onFocusChange: function() {}, - onClose: function() {}, - keepOpenOnDateSelect: !1, - isOutsideRange: function() {}, - isDayBlocked: function() {}, - isDayHighlighted: function() {}, - renderMonthText: null, - enableOutsideDays: !1, - numberOfMonths: 1, - orientation: g.HORIZONTAL_ORIENTATION, - withPortal: !1, - hideKeyboardShortcutsPanel: !1, - initialVisibleMonth: null, - firstDayOfWeek: null, - daySize: g.DAY_SIZE, - verticalHeight: null, - noBorder: !1, - verticalBorderSpacing: void 0, - transitionDuration: void 0, - horizontalMonthPadding: 13, - navPrev: null, - navNext: null, - onPrevMonthClick: function() {}, - onNextMonthClick: function() {}, - onOutsideClick: function() {}, - renderCalendarDay: void 0, - renderDayContents: null, - renderCalendarInfo: null, - renderMonthElement: null, - calendarInfoPosition: g.INFO_POSITION_BOTTOM, - onBlur: function() {}, - isFocused: !1, - showKeyboardShortcuts: !1, - onTab: function() {}, - onShiftTab: function() {}, - monthFormat: 'MMMM YYYY', - weekDayFormat: 'dd', - phrases: c.DayPickerPhrases, - dayAriaLabelFormat: void 0, - isRTL: !1 - }, - E = (function(e) { - function t(e) { - var n; - !(function(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - })(this, t), - ((n = (function(e, t) { - return !t || ('object' !== y(t) && 'function' != typeof t) - ? A(e) - : t; - })(this, w(t).call(this, e))).isTouchDevice = !1), - (n.today = (0, i.default)()), - (n.modifiers = { - today: function(e) { - return n.isToday(e); - }, - blocked: function(e) { - return n.isBlocked(e); - }, - 'blocked-calendar': function(t) { - return e.isDayBlocked(t); - }, - 'blocked-out-of-range': function(t) { - return e.isOutsideRange(t); - }, - 'highlighted-calendar': function(t) { - return e.isDayHighlighted(t); - }, - valid: function(e) { - return !n.isBlocked(e); - }, - hovered: function(e) { - return n.isHovered(e); - }, - selected: function(e) { - return n.isSelected(e); - }, - 'first-day-of-week': function(e) { - return n.isFirstDayOfWeek(e); - }, - 'last-day-of-week': function(e) { - return n.isLastDayOfWeek(e); - } - }); - var r = n.getStateForNewMonth(e), - o = r.currentMonth, - a = r.visibleDays; - return ( - (n.state = { hoverDate: null, currentMonth: o, visibleDays: a }), - (n.onDayMouseEnter = n.onDayMouseEnter.bind(A(A(n)))), - (n.onDayMouseLeave = n.onDayMouseLeave.bind(A(A(n)))), - (n.onDayClick = n.onDayClick.bind(A(A(n)))), - (n.onPrevMonthClick = n.onPrevMonthClick.bind(A(A(n)))), - (n.onNextMonthClick = n.onNextMonthClick.bind(A(A(n)))), - (n.onMonthChange = n.onMonthChange.bind(A(A(n)))), - (n.onYearChange = n.onYearChange.bind(A(A(n)))), - (n.getFirstFocusableDay = n.getFirstFocusableDay.bind(A(A(n)))), - n - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { value: e, writable: !0, configurable: !0 } - })), - t && S(e, t); - })(t, e), - k(t, [ - { - key: !o.default.PureComponent && 'shouldComponentUpdate', - value: function(e, t) { - return (0, r.default)(this, e, t); - } - } - ]), - k(t, [ - { - key: 'componentDidMount', - value: function() { - this.isTouchDevice = (0, s.default)(); - } - }, - { - key: 'componentWillReceiveProps', - value: function(e) { - var t = this, - n = e.date, - r = e.focused, - o = e.isOutsideRange, - s = e.isDayBlocked, - c = e.isDayHighlighted, - l = e.initialVisibleMonth, - f = e.numberOfMonths, - d = e.enableOutsideDays, - p = this.props, - h = p.isOutsideRange, - g = p.isDayBlocked, - m = p.isDayHighlighted, - b = p.numberOfMonths, - y = p.enableOutsideDays, - v = p.initialVisibleMonth, - x = p.focused, - w = p.date, - M = this.state.visibleDays, - k = !1, - S = !1, - A = !1; - o !== h && - ((this.modifiers['blocked-out-of-range'] = function(e) { - return o(e); - }), - (k = !0)), - s !== g && - ((this.modifiers['blocked-calendar'] = function(e) { - return s(e); - }), - (S = !0)), - c !== m && - ((this.modifiers['highlighted-calendar'] = function(e) { - return c(e); - }), - (A = !0)); - var O = k || S || A; - if (f !== b || d !== y || (l !== v && !x && r)) { - var E = this.getStateForNewMonth(e), - T = E.currentMonth; - (M = E.visibleDays), - this.setState({ currentMonth: T, visibleDays: M }); - } - var C = r !== x, - L = {}; - n !== w && - ((L = this.deleteModifier(L, w, 'selected')), - (L = this.addModifier(L, n, 'selected'))), - (C || O) && - (0, a.default)(M).forEach(function(e) { - Object.keys(e).forEach(function(e) { - var n = (0, i.default)(e); - (L = t.isBlocked(n) - ? t.addModifier(L, n, 'blocked') - : t.deleteModifier(L, n, 'blocked')), - (C || k) && - (L = o(n) - ? t.addModifier(L, n, 'blocked-out-of-range') - : t.deleteModifier( - L, - n, - 'blocked-out-of-range' - )), - (C || S) && - (L = s(n) - ? t.addModifier(L, n, 'blocked-calendar') - : t.deleteModifier(L, n, 'blocked-calendar')), - (C || A) && - (L = c(n) - ? t.addModifier(L, n, 'highlighted-calendar') - : t.deleteModifier( - L, - n, - 'highlighted-calendar' - )); - }); - }); - var P = (0, i.default)(); - (0, u.default)(this.today, P) || - ((L = this.deleteModifier(L, this.today, 'today')), - (L = this.addModifier(L, P, 'today')), - (this.today = P)), - Object.keys(L).length > 0 && - this.setState({ visibleDays: _({}, M, L) }); - } - }, - { - key: 'componentWillUpdate', - value: function() { - this.today = (0, i.default)(); - } - }, - { - key: 'onDayClick', - value: function(e, t) { - if ((t && t.preventDefault(), !this.isBlocked(e))) { - var n = this.props, - r = n.onDateChange, - o = n.keepOpenOnDateSelect, - i = n.onFocusChange, - a = n.onClose; - r(e), o || (i({ focused: !1 }), a({ date: e })); - } - } - }, - { - key: 'onDayMouseEnter', - value: function(e) { - if (!this.isTouchDevice) { - var t = this.state, - n = t.hoverDate, - r = t.visibleDays, - o = this.deleteModifier({}, n, 'hovered'); - (o = this.addModifier(o, e, 'hovered')), - this.setState({ hoverDate: e, visibleDays: _({}, r, o) }); - } - } - }, - { - key: 'onDayMouseLeave', - value: function() { - var e = this.state, - t = e.hoverDate, - n = e.visibleDays; - if (!this.isTouchDevice && t) { - var r = this.deleteModifier({}, t, 'hovered'); - this.setState({ - hoverDate: null, - visibleDays: _({}, n, r) - }); - } - } - }, - { - key: 'onPrevMonthClick', - value: function() { - var e = this.props, - t = e.onPrevMonthClick, - n = e.numberOfMonths, - r = e.enableOutsideDays, - o = this.state, - i = o.currentMonth, - a = o.visibleDays, - s = {}; - Object.keys(a) - .sort() - .slice(0, n + 1) - .forEach(function(e) { - s[e] = a[e]; - }); - var c = i.clone().subtract(1, 'month'), - u = (0, f.default)(c, 1, r); - this.setState( - { - currentMonth: c, - visibleDays: _({}, s, this.getModifiers(u)) - }, - function() { - t(c.clone()); - } - ); - } - }, - { - key: 'onNextMonthClick', - value: function() { - var e = this.props, - t = e.onNextMonthClick, - n = e.numberOfMonths, - r = e.enableOutsideDays, - o = this.state, - i = o.currentMonth, - a = o.visibleDays, - s = {}; - Object.keys(a) - .sort() - .slice(1) - .forEach(function(e) { - s[e] = a[e]; - }); - var c = i.clone().add(n, 'month'), - u = (0, f.default)(c, 1, r), - l = i.clone().add(1, 'month'); - this.setState( - { - currentMonth: l, - visibleDays: _({}, s, this.getModifiers(u)) - }, - function() { - t(l.clone()); - } - ); - } - }, - { - key: 'onMonthChange', - value: function(e) { - var t = this.props, - n = t.numberOfMonths, - r = t.enableOutsideDays, - o = t.orientation === g.VERTICAL_SCROLLABLE, - i = (0, f.default)(e, n, r, o); - this.setState({ - currentMonth: e.clone(), - visibleDays: this.getModifiers(i) - }); - } - }, - { - key: 'onYearChange', - value: function(e) { - var t = this.props, - n = t.numberOfMonths, - r = t.enableOutsideDays, - o = t.orientation === g.VERTICAL_SCROLLABLE, - i = (0, f.default)(e, n, r, o); - this.setState({ - currentMonth: e.clone(), - visibleDays: this.getModifiers(i) - }); - } - }, - { - key: 'getFirstFocusableDay', - value: function(e) { - var t = this, - n = this.props, - r = n.date, - o = n.numberOfMonths, - i = e.clone().startOf('month'); - if ((r && (i = r.clone()), this.isBlocked(i))) { - for ( - var a = [], - s = e - .clone() - .add(o - 1, 'months') - .endOf('month'), - c = i.clone(); - !(0, l.default)(c, s); - - ) - (c = c.clone().add(1, 'day')), a.push(c); - var u = a.filter(function(e) { - return !t.isBlocked(e) && (0, l.default)(e, i); - }); - if (u.length > 0) { - var f = v(u, 1); - i = f[0]; - } - } - return i; - } - }, - { - key: 'getModifiers', - value: function(e) { - var t = this, - n = {}; - return ( - Object.keys(e).forEach(function(r) { - (n[r] = {}), - e[r].forEach(function(e) { - n[r][(0, p.default)(e)] = t.getModifiersForDay(e); - }); - }), - n - ); - } - }, - { - key: 'getModifiersForDay', - value: function(e) { - var t = this; - return new Set( - Object.keys(this.modifiers).filter(function(n) { - return t.modifiers[n](e); - }) - ); - } - }, - { - key: 'getStateForNewMonth', - value: function(e) { - var t = this, - n = e.initialVisibleMonth, - r = e.date, - o = e.numberOfMonths, - i = e.enableOutsideDays, - a = ( - n || - (r - ? function() { - return r; - } - : function() { - return t.today; - }) - )(); - return { - currentMonth: a, - visibleDays: this.getModifiers((0, f.default)(a, o, i)) - }; - } - }, - { - key: 'addModifier', - value: function(e, t, n) { - var r = this.props, - o = r.numberOfMonths, - i = r.enableOutsideDays, - a = r.orientation, - s = this.state, - c = s.currentMonth, - u = s.visibleDays, - l = c, - f = o; - if ( - (a === g.VERTICAL_SCROLLABLE - ? (f = Object.keys(u).length) - : ((l = l.clone().subtract(1, 'month')), (f += 2)), - !t || !(0, d.default)(t, l, f, i)) - ) - return e; - var m = (0, p.default)(t), - b = _({}, e); - if (i) - b = Object.keys(u) - .filter(function(e) { - return Object.keys(u[e]).indexOf(m) > -1; - }) - .reduce(function(t, r) { - var o = e[r] || u[r], - i = new Set(o[m]); - return ( - i.add(n), _({}, t, x({}, r, _({}, o, x({}, m, i)))) - ); - }, b); - else { - var y = (0, h.default)(t), - v = e[y] || u[y], - w = new Set(v[m]); - w.add(n), (b = _({}, b, x({}, y, _({}, v, x({}, m, w))))); - } - return b; - } - }, - { - key: 'deleteModifier', - value: function(e, t, n) { - var r = this.props, - o = r.numberOfMonths, - i = r.enableOutsideDays, - a = r.orientation, - s = this.state, - c = s.currentMonth, - u = s.visibleDays, - l = c, - f = o; - if ( - (a === g.VERTICAL_SCROLLABLE - ? (f = Object.keys(u).length) - : ((l = l.clone().subtract(1, 'month')), (f += 2)), - !t || !(0, d.default)(t, l, f, i)) - ) - return e; - var m = (0, p.default)(t), - b = _({}, e); - if (i) - b = Object.keys(u) - .filter(function(e) { - return Object.keys(u[e]).indexOf(m) > -1; - }) - .reduce(function(t, r) { - var o = e[r] || u[r], - i = new Set(o[m]); - return ( - i.delete(n), _({}, t, x({}, r, _({}, o, x({}, m, i)))) - ); - }, b); - else { - var y = (0, h.default)(t), - v = e[y] || u[y], - w = new Set(v[m]); - w.delete(n), - (b = _({}, b, x({}, y, _({}, v, x({}, m, w))))); - } - return b; - } - }, - { - key: 'isBlocked', - value: function(e) { - var t = this.props, - n = t.isDayBlocked, - r = t.isOutsideRange; - return n(e) || r(e); - } - }, - { - key: 'isHovered', - value: function(e) { - var t = (this.state || {}).hoverDate; - return (0, u.default)(e, t); - } - }, - { - key: 'isSelected', - value: function(e) { - var t = this.props.date; - return (0, u.default)(e, t); - } - }, - { - key: 'isToday', - value: function(e) { - return (0, u.default)(e, this.today); - } - }, - { - key: 'isFirstDayOfWeek', - value: function(e) { - var t = this.props.firstDayOfWeek; - return ( - e.day() === (t || i.default.localeData().firstDayOfWeek()) - ); - } - }, - { - key: 'isLastDayOfWeek', - value: function(e) { - var t = this.props.firstDayOfWeek; - return ( - e.day() === - ((t || i.default.localeData().firstDayOfWeek()) + 6) % 7 - ); - } - }, - { - key: 'render', - value: function() { - var e = this.props, - t = e.numberOfMonths, - n = e.orientation, - r = e.monthFormat, - i = e.renderMonthText, - a = e.navPrev, - s = e.navNext, - c = e.onOutsideClick, - u = e.onShiftTab, - l = e.onTab, - f = e.withPortal, - d = e.focused, - p = e.enableOutsideDays, - h = e.hideKeyboardShortcutsPanel, - g = e.daySize, - b = e.firstDayOfWeek, - y = e.renderCalendarDay, - v = e.renderDayContents, - _ = e.renderCalendarInfo, - x = e.renderMonthElement, - w = e.calendarInfoPosition, - M = e.isFocused, - k = e.isRTL, - S = e.phrases, - A = e.dayAriaLabelFormat, - O = e.onBlur, - E = e.showKeyboardShortcuts, - T = e.weekDayFormat, - C = e.verticalHeight, - L = e.noBorder, - P = e.transitionDuration, - D = e.verticalBorderSpacing, - z = e.horizontalMonthPadding, - N = this.state, - j = N.currentMonth, - R = N.visibleDays; - return o.default.createElement(m.default, { - orientation: n, - enableOutsideDays: p, - modifiers: R, - numberOfMonths: t, - onDayClick: this.onDayClick, - onDayMouseEnter: this.onDayMouseEnter, - onDayMouseLeave: this.onDayMouseLeave, - onPrevMonthClick: this.onPrevMonthClick, - onNextMonthClick: this.onNextMonthClick, - onMonthChange: this.onMonthChange, - onYearChange: this.onYearChange, - monthFormat: r, - withPortal: f, - hidden: !d, - hideKeyboardShortcutsPanel: h, - initialVisibleMonth: function() { - return j; - }, - firstDayOfWeek: b, - onOutsideClick: c, - navPrev: a, - navNext: s, - renderMonthText: i, - renderCalendarDay: y, - renderDayContents: v, - renderCalendarInfo: _, - renderMonthElement: x, - calendarInfoPosition: w, - isFocused: M, - getFirstFocusableDay: this.getFirstFocusableDay, - onBlur: O, - onTab: l, - onShiftTab: u, - phrases: S, - daySize: g, - isRTL: k, - showKeyboardShortcuts: E, - weekDayFormat: T, - dayAriaLabelFormat: A, - verticalHeight: C, - noBorder: L, - transitionDuration: P, - verticalBorderSpacing: D, - horizontalMonthPadding: z - }); - } - } - ]), - t - ); - })(o.default.PureComponent || o.default.Component); - (t.default = E), (E.propTypes = {}), (E.defaultProps = O); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = void 0); - var r = h(n(1)), - o = h(n(41)), - i = n(11), - a = n(20), - s = h(n(23)), - c = h(n(71)), - u = h(n(385)), - l = h(n(386)), - f = h(n(59)), - d = h(n(58)), - p = h(n(92)); - function h(e) { - return e && e.__esModule ? e : { default: e }; - } - var g = { - date: o.default.momentObj, - onDateChange: r.default.func.isRequired, - focused: r.default.bool, - onFocusChange: r.default.func.isRequired, - id: r.default.string.isRequired, - placeholder: r.default.string, - disabled: r.default.bool, - required: r.default.bool, - readOnly: r.default.bool, - screenReaderInputMessage: r.default.string, - showClearDate: r.default.bool, - customCloseIcon: r.default.node, - showDefaultInputIcon: r.default.bool, - inputIconPosition: c.default, - customInputIcon: r.default.node, - noBorder: r.default.bool, - block: r.default.bool, - small: r.default.bool, - regular: r.default.bool, - verticalSpacing: i.nonNegativeInteger, - keepFocusOnInput: r.default.bool, - renderMonthText: (0, i.mutuallyExclusiveProps)( - r.default.func, - 'renderMonthText', - 'renderMonthElement' - ), - renderMonthElement: (0, i.mutuallyExclusiveProps)( - r.default.func, - 'renderMonthText', - 'renderMonthElement' - ), - orientation: u.default, - anchorDirection: l.default, - openDirection: f.default, - horizontalMargin: r.default.number, - withPortal: r.default.bool, - withFullScreenPortal: r.default.bool, - appendToBody: r.default.bool, - disableScroll: r.default.bool, - initialVisibleMonth: r.default.func, - firstDayOfWeek: d.default, - numberOfMonths: r.default.number, - keepOpenOnDateSelect: r.default.bool, - reopenPickerOnClearDate: r.default.bool, - renderCalendarInfo: r.default.func, - calendarInfoPosition: p.default, - hideKeyboardShortcutsPanel: r.default.bool, - daySize: i.nonNegativeInteger, - isRTL: r.default.bool, - verticalHeight: i.nonNegativeInteger, - transitionDuration: i.nonNegativeInteger, - horizontalMonthPadding: i.nonNegativeInteger, - navPrev: r.default.node, - navNext: r.default.node, - onPrevMonthClick: r.default.func, - onNextMonthClick: r.default.func, - onClose: r.default.func, - renderCalendarDay: r.default.func, - renderDayContents: r.default.func, - enableOutsideDays: r.default.bool, - isDayBlocked: r.default.func, - isOutsideRange: r.default.func, - isDayHighlighted: r.default.func, - displayFormat: r.default.oneOfType([r.default.string, r.default.func]), - monthFormat: r.default.string, - weekDayFormat: r.default.string, - phrases: r.default.shape((0, s.default)(a.SingleDatePickerPhrases)), - dayAriaLabelFormat: r.default.string - }; - t.default = g; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = void 0); - var r = f(n(0)), - o = (f(n(1)), n(11), n(33)), - i = n(20), - a = (f(n(23)), f(n(47))), - s = f(n(392)), - c = (f(n(71)), f(n(94))), - u = f(n(395)), - l = (f(n(59)), n(7)); - function f(e) { - return e && e.__esModule ? e : { default: e }; - } - function d() { - return (d = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - var p = { - children: null, - placeholder: 'Select Date', - displayValue: '', - screenReaderMessage: '', - focused: !1, - isFocused: !1, - disabled: !1, - required: !1, - readOnly: !1, - openDirection: l.OPEN_DOWN, - showCaret: !1, - showClearDate: !1, - showDefaultInputIcon: !1, - inputIconPosition: l.ICON_BEFORE_POSITION, - customCloseIcon: null, - customInputIcon: null, - isRTL: !1, - noBorder: !1, - block: !1, - small: !1, - regular: !1, - verticalSpacing: void 0, - onChange: function() {}, - onClearDate: function() {}, - onFocus: function() {}, - onKeyDownShiftTab: function() {}, - onKeyDownTab: function() {}, - onKeyDownArrowDown: function() {}, - onKeyDownQuestionMark: function() {}, - phrases: i.SingleDatePickerInputPhrases - }; - function h(e) { - var t = e.id, - n = e.children, - i = e.placeholder, - a = e.displayValue, - f = e.focused, - p = e.isFocused, - h = e.disabled, - g = e.required, - m = e.readOnly, - b = e.showCaret, - y = e.showClearDate, - v = e.showDefaultInputIcon, - _ = e.inputIconPosition, - x = e.phrases, - w = e.onClearDate, - M = e.onChange, - k = e.onFocus, - S = e.onKeyDownShiftTab, - A = e.onKeyDownTab, - O = e.onKeyDownArrowDown, - E = e.onKeyDownQuestionMark, - T = e.screenReaderMessage, - C = e.customCloseIcon, - L = e.customInputIcon, - P = e.openDirection, - D = e.isRTL, - z = e.noBorder, - N = e.block, - j = e.small, - R = e.regular, - I = e.verticalSpacing, - F = e.styles, - q = - L || - r.default.createElement( - u.default, - (0, o.css)(F.SingleDatePickerInput_calendarIcon_svg) - ), - B = - C || - r.default.createElement( - c.default, - (0, o.css)( - F.SingleDatePickerInput_clearDate_svg, - j && F.SingleDatePickerInput_clearDate_svg__small - ) - ), - H = T || x.keyboardNavigationInstructions, - Y = - (v || null !== L) && - r.default.createElement( - 'button', - d({}, (0, o.css)(F.SingleDatePickerInput_calendarIcon), { - type: 'button', - disabled: h, - 'aria-label': x.focusStartDate, - onClick: k - }), - q - ); - return r.default.createElement( - 'div', - (0, o.css)( - F.SingleDatePickerInput, - h && F.SingleDatePickerInput__disabled, - D && F.SingleDatePickerInput__rtl, - !z && F.SingleDatePickerInput__withBorder, - N && F.SingleDatePickerInput__block, - y && F.SingleDatePickerInput__showClearDate - ), - _ === l.ICON_BEFORE_POSITION && Y, - r.default.createElement(s.default, { - id: t, - placeholder: i, - displayValue: a, - screenReaderMessage: H, - focused: f, - isFocused: p, - disabled: h, - required: g, - readOnly: m, - showCaret: b, - onChange: M, - onFocus: k, - onKeyDownShiftTab: S, - onKeyDownTab: A, - onKeyDownArrowDown: O, - onKeyDownQuestionMark: E, - openDirection: P, - verticalSpacing: I, - small: j, - regular: R, - block: N - }), - n, - y && - r.default.createElement( - 'button', - d( - {}, - (0, o.css)( - F.SingleDatePickerInput_clearDate, - j && F.SingleDatePickerInput_clearDate__small, - !C && F.SingleDatePickerInput_clearDate__default, - !a && F.SingleDatePickerInput_clearDate__hide - ), - { - type: 'button', - 'aria-label': x.clearDate, - disabled: h, - onClick: w - } - ), - B - ), - _ === l.ICON_AFTER_POSITION && Y - ); - } - (h.propTypes = {}), (h.defaultProps = p); - var g = (0, o.withStyles)( - function(e) { - var t = e.reactDates, - n = t.border, - r = t.color; - return { - SingleDatePickerInput: { - display: 'inline-block', - backgroundColor: r.background - }, - SingleDatePickerInput__withBorder: { - borderColor: r.border, - borderWidth: n.pickerInput.borderWidth, - borderStyle: n.pickerInput.borderStyle, - borderRadius: n.pickerInput.borderRadius - }, - SingleDatePickerInput__rtl: { direction: (0, a.default)('rtl') }, - SingleDatePickerInput__disabled: { backgroundColor: r.disabled }, - SingleDatePickerInput__block: { display: 'block' }, - SingleDatePickerInput__showClearDate: { paddingRight: 30 }, - SingleDatePickerInput_clearDate: { - background: 'none', - border: 0, - color: 'inherit', - font: 'inherit', - lineHeight: 'normal', - overflow: 'visible', - cursor: 'pointer', - padding: 10, - margin: '0 10px 0 5px', - position: 'absolute', - right: 0, - top: '50%', - transform: 'translateY(-50%)' - }, - SingleDatePickerInput_clearDate__default: { - ':focus': { background: r.core.border, borderRadius: '50%' }, - ':hover': { background: r.core.border, borderRadius: '50%' } - }, - SingleDatePickerInput_clearDate__small: { padding: 6 }, - SingleDatePickerInput_clearDate__hide: { visibility: 'hidden' }, - SingleDatePickerInput_clearDate_svg: { - fill: r.core.grayLight, - height: 12, - width: 15, - verticalAlign: 'middle' - }, - SingleDatePickerInput_clearDate_svg__small: { height: 9 }, - SingleDatePickerInput_calendarIcon: { - background: 'none', - border: 0, - color: 'inherit', - font: 'inherit', - lineHeight: 'normal', - overflow: 'visible', - cursor: 'pointer', - display: 'inline-block', - verticalAlign: 'middle', - padding: 10, - margin: '0 5px 0 10px' - }, - SingleDatePickerInput_calendarIcon_svg: { - fill: r.core.grayLight, - height: 15, - width: 14, - verticalAlign: 'middle' - } - }; - }, - { pureComponent: void 0 !== r.default.PureComponent } - )(h); - t.default = g; - }, - function(e, t, n) { - var r = n(749); - e.exports = function(e, t, n) { - if ((r(e), void 0 === t)) return e; - switch (n) { - case 1: - return function(n) { - return e.call(t, n); - }; - case 2: - return function(n, r) { - return e.call(t, n, r); - }; - case 3: - return function(n, r, o) { - return e.call(t, n, r, o); - }; - } - return function() { - return e.apply(t, arguments); - }; - }; - }, - function(e, t, n) { - e.exports = - !n(50) && - !n(96)(function() { - return ( - 7 != - Object.defineProperty(n(404)('div'), 'a', { - get: function() { - return 7; - } - }).a - ); - }); - }, - function(e, t, n) { - var r = n(75), - o = n(48).document, - i = r(o) && r(o.createElement); - e.exports = function(e) { - return i ? o.createElement(e) : {}; - }; - }, - function(e, t, n) { - var r = n(61), - o = n(76), - i = n(751)(!1), - a = n(163)('IE_PROTO'); - e.exports = function(e, t) { - var n, - s = o(e), - c = 0, - u = []; - for (n in s) n != a && r(s, n) && u.push(n); - for (; t.length > c; ) r(s, (n = t[c++])) && (~i(u, n) || u.push(n)); - return u; - }; - }, - function(e, t, n) { - var r = n(407); - e.exports = Object('z').propertyIsEnumerable(0) - ? Object - : function(e) { - return 'String' == r(e) ? e.split('') : Object(e); - }; - }, - function(e, t) { - var n = {}.toString; - e.exports = function(e) { - return n.call(e).slice(8, -1); - }; - }, - function(e, t, n) { - 'use strict'; - var r = n(123), - o = n(73), - i = n(409), - a = n(74), - s = n(168), - c = n(758), - u = n(170), - l = n(761), - f = n(77)('iterator'), - d = !([].keys && 'next' in [].keys()), - p = function() { - return this; - }; - e.exports = function(e, t, n, h, g, m, b) { - c(n, t, h); - var y, - v, - _, - x = function(e) { - if (!d && e in S) return S[e]; - switch (e) { - case 'keys': - case 'values': - return function() { - return new n(this, e); - }; - } - return function() { - return new n(this, e); - }; - }, - w = t + ' Iterator', - M = 'values' == g, - k = !1, - S = e.prototype, - A = S[f] || S['@@iterator'] || (g && S[g]), - O = A || x(g), - E = g ? (M ? x('entries') : O) : void 0, - T = ('Array' == t && S.entries) || A; - if ( - (T && - (_ = l(T.call(new e()))) !== Object.prototype && - _.next && - (u(_, w, !0), r || 'function' == typeof _[f] || a(_, f, p)), - M && - A && - 'values' !== A.name && - ((k = !0), - (O = function() { - return A.call(this); - })), - (r && !b) || (!d && !k && S[f]) || a(S, f, O), - (s[t] = O), - (s[w] = p), - g) - ) - if ( - ((y = { - values: M ? O : x('values'), - keys: m ? O : x('keys'), - entries: E - }), - b) - ) - for (v in y) v in S || i(S, v, y[v]); - else o(o.P + o.F * (d || k), t, y); - return y; - }; - }, - function(e, t, n) { - e.exports = n(74); - }, - function(e, t, n) { - var r = n(405), - o = n(165).concat('length', 'prototype'); - t.f = - Object.getOwnPropertyNames || - function(e) { - return r(e, o); - }; - }, - function(e, t, n) { - var r = n(125), - o = n(121), - i = n(76), - a = n(160), - s = n(61), - c = n(403), - u = Object.getOwnPropertyDescriptor; - t.f = n(50) - ? u - : function(e, t) { - if (((e = i(e)), (t = a(t, !0)), c)) - try { - return u(e, t); - } catch (e) {} - if (s(e, t)) return o(!r.f.call(e, t), e[t]); - }; - }, - function(e, t, n) { - e.exports = { default: n(785), __esModule: !0 }; - }, - function(e, t) { - e.exports = function(e, t) { - if (e.indexOf) return e.indexOf(t); - for (var n = 0; n < e.length; ++n) if (e[n] === t) return n; - return -1; - }; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = function(e) { - return [].slice.call(e.querySelectorAll('*'), 0).filter(a); - }); - /*! - * Adapted from jQuery UI core - * - * http://jqueryui.com - * - * Copyright 2014 jQuery Foundation and other contributors - * Released under the MIT license. - * http://jquery.org/license - * - * http://api.jqueryui.com/category/ui-core/ - */ - var r = /input|select|textarea|button|object/; - function o(e) { - var t = e.offsetWidth <= 0 && e.offsetHeight <= 0; - if (t && !e.innerHTML) return !0; - var n = window.getComputedStyle(e); - return t - ? 'visible' !== n.getPropertyValue('overflow') || - (e.scrollWidth <= 0 && e.scrollHeight <= 0) - : 'none' == n.getPropertyValue('display'); - } - function i(e, t) { - var n = e.nodeName.toLowerCase(); - return ( - ((r.test(n) && !e.disabled) || ('a' === n && e.href) || t) && - (function(e) { - for (var t = e; t && t !== document.body; ) { - if (o(t)) return !1; - t = t.parentNode; - } - return !0; - })(e) - ); - } - function a(e) { - var t = e.getAttribute('tabindex'); - null === t && (t = void 0); - var n = isNaN(t); - return (n || t >= 0) && i(e, !n); - } - e.exports = t.default; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.assertNodeList = c), - (t.setElement = function(e) { - var t = e; - if ('string' == typeof t && a.canUseDOM) { - var n = document.querySelectorAll(t); - c(n, t), (t = 'length' in n ? n[0] : n); - } - return (s = t || s); - }), - (t.validateElement = u), - (t.hide = function(e) { - u(e) && (e || s).setAttribute('aria-hidden', 'true'); - }), - (t.show = function(e) { - u(e) && (e || s).removeAttribute('aria-hidden'); - }), - (t.documentNotReadyOrSSRTesting = function() { - s = null; - }), - (t.resetForTesting = function() { - s = null; - }); - var r, - o = n(792), - i = (r = o) && r.__esModule ? r : { default: r }, - a = n(173); - var s = null; - function c(e, t) { - if (!e || !e.length) - throw new Error( - 'react-modal: No elements were found for selector ' + t + '.' - ); - } - function u(e) { - return ( - !(!e && !s) || - ((0, i.default)( - !1, - [ - 'react-modal: App element is not defined.', - 'Please use `Modal.setAppElement(el)` or set `appElement={el}`.', - "This is needed so screen readers don't see main content", - 'when modal is opened. It is not recommended, but you can opt-out', - 'by setting `ariaHideApp={false}`.' - ].join(' ') - ), - !1) - ); - } - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r = new (function e() { - var t = this; - !(function(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - })(this, e), - (this.register = function(e) { - -1 === t.openInstances.indexOf(e) && - (t.openInstances.push(e), t.emit('register')); - }), - (this.deregister = function(e) { - var n = t.openInstances.indexOf(e); - -1 !== n && (t.openInstances.splice(n, 1), t.emit('deregister')); - }), - (this.subscribe = function(e) { - t.subscribers.push(e); - }), - (this.emit = function(e) { - t.subscribers.forEach(function(n) { - return n(e, t.openInstances.slice()); - }); - }), - (this.openInstances = []), - (this.subscribers = []); - })(); - (t.default = r), (e.exports = t.default); - }, - function(e, t, n) { - (function(t) { - /*! - * Quill Editor v1.3.7 - * https://quilljs.com/ - * Copyright (c) 2014, Jason Chen - * Copyright (c) 2013, salesforce.com - */ - var n; - 'undefined' != typeof self && self, - (n = function() { - return (function(e) { - var t = {}; - function n(r) { - if (t[r]) return t[r].exports; - var o = (t[r] = { i: r, l: !1, exports: {} }); - return ( - e[r].call(o.exports, o, o.exports, n), (o.l = !0), o.exports - ); - } - return ( - (n.m = e), - (n.c = t), - (n.d = function(e, t, r) { - n.o(e, t) || - Object.defineProperty(e, t, { - configurable: !1, - enumerable: !0, - get: r - }); - }), - (n.n = function(e) { - var t = - e && e.__esModule - ? function() { - return e.default; - } - : function() { - return e; - }; - return n.d(t, 'a', t), t; - }), - (n.o = function(e, t) { - return Object.prototype.hasOwnProperty.call(e, t); - }), - (n.p = ''), - n((n.s = 109)) - ); - })([ - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r = n(17), - o = n(18), - i = n(19), - a = n(45), - s = n(46), - c = n(47), - u = n(48), - l = n(49), - f = n(12), - d = n(32), - p = n(33), - h = n(31), - g = n(1), - m = { - Scope: g.Scope, - create: g.create, - find: g.find, - query: g.query, - register: g.register, - Container: r.default, - Format: o.default, - Leaf: i.default, - Embed: u.default, - Scroll: a.default, - Block: c.default, - Inline: s.default, - Text: l.default, - Attributor: { - Attribute: f.default, - Class: d.default, - Style: p.default, - Store: h.default - } - }; - t.default = m; - }, - function(e, t, n) { - 'use strict'; - var r, - o = - (this && this.__extends) || - ((r = - Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && - function(e, t) { - e.__proto__ = t; - }) || - function(e, t) { - for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); - }), - function(e, t) { - function n() { - this.constructor = e; - } - r(e, t), - (e.prototype = - null === t - ? Object.create(t) - : ((n.prototype = t.prototype), new n())); - }); - Object.defineProperty(t, '__esModule', { value: !0 }); - var i = (function(e) { - function t(t) { - var n = this; - return ( - (t = '[Parchment] ' + t), - ((n = e.call(this, t) || this).message = t), - (n.name = n.constructor.name), - n - ); - } - return o(t, e), t; - })(Error); - t.ParchmentError = i; - var a, - s = {}, - c = {}, - u = {}, - l = {}; - function f(e, t) { - var n; - if ((void 0 === t && (t = a.ANY), 'string' == typeof e)) - n = l[e] || s[e]; - else if (e instanceof Text || e.nodeType === Node.TEXT_NODE) - n = l.text; - else if ('number' == typeof e) - e & a.LEVEL & a.BLOCK - ? (n = l.block) - : e & a.LEVEL & a.INLINE && (n = l.inline); - else if (e instanceof HTMLElement) { - var r = (e.getAttribute('class') || '').split(/\s+/); - for (var o in r) if ((n = c[r[o]])) break; - n = n || u[e.tagName]; - } - return null == n - ? null - : t & a.LEVEL & n.scope && t & a.TYPE & n.scope - ? n - : null; - } - (t.DATA_KEY = '__blot'), - (function(e) { - (e[(e.TYPE = 3)] = 'TYPE'), - (e[(e.LEVEL = 12)] = 'LEVEL'), - (e[(e.ATTRIBUTE = 13)] = 'ATTRIBUTE'), - (e[(e.BLOT = 14)] = 'BLOT'), - (e[(e.INLINE = 7)] = 'INLINE'), - (e[(e.BLOCK = 11)] = 'BLOCK'), - (e[(e.BLOCK_BLOT = 10)] = 'BLOCK_BLOT'), - (e[(e.INLINE_BLOT = 6)] = 'INLINE_BLOT'), - (e[(e.BLOCK_ATTRIBUTE = 9)] = 'BLOCK_ATTRIBUTE'), - (e[(e.INLINE_ATTRIBUTE = 5)] = 'INLINE_ATTRIBUTE'), - (e[(e.ANY = 15)] = 'ANY'); - })((a = t.Scope || (t.Scope = {}))), - (t.create = function(e, t) { - var n = f(e); - if (null == n) - throw new i('Unable to create ' + e + ' blot'); - var r = n, - o = - e instanceof Node || e.nodeType === Node.TEXT_NODE - ? e - : r.create(t); - return new r(o, t); - }), - (t.find = function e(n, r) { - return ( - void 0 === r && (r = !1), - null == n - ? null - : null != n[t.DATA_KEY] - ? n[t.DATA_KEY].blot - : r - ? e(n.parentNode, r) - : null - ); - }), - (t.query = f), - (t.register = function e() { - for (var t = [], n = 0; n < arguments.length; n++) - t[n] = arguments[n]; - if (t.length > 1) - return t.map(function(t) { - return e(t); - }); - var r = t[0]; - if ( - 'string' != typeof r.blotName && - 'string' != typeof r.attrName - ) - throw new i('Invalid definition'); - if ('abstract' === r.blotName) - throw new i('Cannot register abstract class'); - if ( - ((l[r.blotName || r.attrName] = r), - 'string' == typeof r.keyName) - ) - s[r.keyName] = r; - else if ( - (null != r.className && (c[r.className] = r), - null != r.tagName) - ) { - Array.isArray(r.tagName) - ? (r.tagName = r.tagName.map(function(e) { - return e.toUpperCase(); - })) - : (r.tagName = r.tagName.toUpperCase()); - var o = Array.isArray(r.tagName) - ? r.tagName - : [r.tagName]; - o.forEach(function(e) { - (null != u[e] && null != r.className) || (u[e] = r); - }); - } - return r; - }); - }, - function(e, t, n) { - var r = n(51), - o = n(11), - i = n(3), - a = n(20), - s = String.fromCharCode(0), - c = function(e) { - Array.isArray(e) - ? (this.ops = e) - : null != e && Array.isArray(e.ops) - ? (this.ops = e.ops) - : (this.ops = []); - }; - (c.prototype.insert = function(e, t) { - var n = {}; - return 0 === e.length - ? this - : ((n.insert = e), - null != t && - 'object' == typeof t && - Object.keys(t).length > 0 && - (n.attributes = t), - this.push(n)); - }), - (c.prototype.delete = function(e) { - return e <= 0 ? this : this.push({ delete: e }); - }), - (c.prototype.retain = function(e, t) { - if (e <= 0) return this; - var n = { retain: e }; - return ( - null != t && - 'object' == typeof t && - Object.keys(t).length > 0 && - (n.attributes = t), - this.push(n) - ); - }), - (c.prototype.push = function(e) { - var t = this.ops.length, - n = this.ops[t - 1]; - if (((e = i(!0, {}, e)), 'object' == typeof n)) { - if ( - 'number' == typeof e.delete && - 'number' == typeof n.delete - ) - return ( - (this.ops[t - 1] = { delete: n.delete + e.delete }), - this - ); - if ( - 'number' == typeof n.delete && - null != e.insert && - ((t -= 1), 'object' != typeof (n = this.ops[t - 1])) - ) - return this.ops.unshift(e), this; - if (o(e.attributes, n.attributes)) { - if ( - 'string' == typeof e.insert && - 'string' == typeof n.insert - ) - return ( - (this.ops[t - 1] = { insert: n.insert + e.insert }), - 'object' == typeof e.attributes && - (this.ops[t - 1].attributes = e.attributes), - this - ); - if ( - 'number' == typeof e.retain && - 'number' == typeof n.retain - ) - return ( - (this.ops[t - 1] = { retain: n.retain + e.retain }), - 'object' == typeof e.attributes && - (this.ops[t - 1].attributes = e.attributes), - this - ); - } - } - return ( - t === this.ops.length - ? this.ops.push(e) - : this.ops.splice(t, 0, e), - this - ); - }), - (c.prototype.chop = function() { - var e = this.ops[this.ops.length - 1]; - return ( - e && e.retain && !e.attributes && this.ops.pop(), this - ); - }), - (c.prototype.filter = function(e) { - return this.ops.filter(e); - }), - (c.prototype.forEach = function(e) { - this.ops.forEach(e); - }), - (c.prototype.map = function(e) { - return this.ops.map(e); - }), - (c.prototype.partition = function(e) { - var t = [], - n = []; - return ( - this.forEach(function(r) { - (e(r) ? t : n).push(r); - }), - [t, n] - ); - }), - (c.prototype.reduce = function(e, t) { - return this.ops.reduce(e, t); - }), - (c.prototype.changeLength = function() { - return this.reduce(function(e, t) { - return t.insert - ? e + a.length(t) - : t.delete - ? e - t.delete - : e; - }, 0); - }), - (c.prototype.length = function() { - return this.reduce(function(e, t) { - return e + a.length(t); - }, 0); - }), - (c.prototype.slice = function(e, t) { - (e = e || 0), 'number' != typeof t && (t = 1 / 0); - for ( - var n = [], r = a.iterator(this.ops), o = 0; - o < t && r.hasNext(); - - ) { - var i; - o < e - ? (i = r.next(e - o)) - : ((i = r.next(t - o)), n.push(i)), - (o += a.length(i)); - } - return new c(n); - }), - (c.prototype.compose = function(e) { - var t = a.iterator(this.ops), - n = a.iterator(e.ops), - r = [], - i = n.peek(); - if ( - null != i && - 'number' == typeof i.retain && - null == i.attributes - ) { - for ( - var s = i.retain; - 'insert' === t.peekType() && t.peekLength() <= s; - - ) - (s -= t.peekLength()), r.push(t.next()); - i.retain - s > 0 && n.next(i.retain - s); - } - for (var u = new c(r); t.hasNext() || n.hasNext(); ) - if ('insert' === n.peekType()) u.push(n.next()); - else if ('delete' === t.peekType()) u.push(t.next()); - else { - var l = Math.min(t.peekLength(), n.peekLength()), - f = t.next(l), - d = n.next(l); - if ('number' == typeof d.retain) { - var p = {}; - 'number' == typeof f.retain - ? (p.retain = l) - : (p.insert = f.insert); - var h = a.attributes.compose( - f.attributes, - d.attributes, - 'number' == typeof f.retain - ); - if ( - (h && (p.attributes = h), - u.push(p), - !n.hasNext() && o(u.ops[u.ops.length - 1], p)) - ) { - var g = new c(t.rest()); - return u.concat(g).chop(); - } - } else - 'number' == typeof d.delete && - 'number' == typeof f.retain && - u.push(d); - } - return u.chop(); - }), - (c.prototype.concat = function(e) { - var t = new c(this.ops.slice()); - return ( - e.ops.length > 0 && - (t.push(e.ops[0]), - (t.ops = t.ops.concat(e.ops.slice(1)))), - t - ); - }), - (c.prototype.diff = function(e, t) { - if (this.ops === e.ops) return new c(); - var n = [this, e].map(function(t) { - return t - .map(function(n) { - if (null != n.insert) - return 'string' == typeof n.insert ? n.insert : s; - throw new Error( - 'diff() called ' + - (t === e ? 'on' : 'with') + - ' non-document' - ); - }) - .join(''); - }), - i = new c(), - u = r(n[0], n[1], t), - l = a.iterator(this.ops), - f = a.iterator(e.ops); - return ( - u.forEach(function(e) { - for (var t = e[1].length; t > 0; ) { - var n = 0; - switch (e[0]) { - case r.INSERT: - (n = Math.min(f.peekLength(), t)), - i.push(f.next(n)); - break; - case r.DELETE: - (n = Math.min(t, l.peekLength())), - l.next(n), - i.delete(n); - break; - case r.EQUAL: - n = Math.min(l.peekLength(), f.peekLength(), t); - var s = l.next(n), - c = f.next(n); - o(s.insert, c.insert) - ? i.retain( - n, - a.attributes.diff( - s.attributes, - c.attributes - ) - ) - : i.push(c).delete(n); - } - t -= n; - } - }), - i.chop() - ); - }), - (c.prototype.eachLine = function(e, t) { - t = t || '\n'; - for ( - var n = a.iterator(this.ops), r = new c(), o = 0; - n.hasNext(); - - ) { - if ('insert' !== n.peekType()) return; - var i = n.peek(), - s = a.length(i) - n.peekLength(), - u = - 'string' == typeof i.insert - ? i.insert.indexOf(t, s) - s - : -1; - if (u < 0) r.push(n.next()); - else if (u > 0) r.push(n.next(u)); - else { - if (!1 === e(r, n.next(1).attributes || {}, o)) return; - (o += 1), (r = new c()); - } - } - r.length() > 0 && e(r, {}, o); - }), - (c.prototype.transform = function(e, t) { - if (((t = !!t), 'number' == typeof e)) - return this.transformPosition(e, t); - for ( - var n = a.iterator(this.ops), - r = a.iterator(e.ops), - o = new c(); - n.hasNext() || r.hasNext(); - - ) - if ( - 'insert' !== n.peekType() || - (!t && 'insert' === r.peekType()) - ) - if ('insert' === r.peekType()) o.push(r.next()); - else { - var i = Math.min(n.peekLength(), r.peekLength()), - s = n.next(i), - u = r.next(i); - if (s.delete) continue; - u.delete - ? o.push(u) - : o.retain( - i, - a.attributes.transform( - s.attributes, - u.attributes, - t - ) - ); - } - else o.retain(a.length(n.next())); - return o.chop(); - }), - (c.prototype.transformPosition = function(e, t) { - t = !!t; - for ( - var n = a.iterator(this.ops), r = 0; - n.hasNext() && r <= e; - - ) { - var o = n.peekLength(), - i = n.peekType(); - n.next(), - 'delete' !== i - ? ('insert' === i && (r < e || !t) && (e += o), - (r += o)) - : (e -= Math.min(o, e - r)); - } - return e; - }), - (e.exports = c); - }, - function(e, t) { - 'use strict'; - var n = Object.prototype.hasOwnProperty, - r = Object.prototype.toString, - o = Object.defineProperty, - i = Object.getOwnPropertyDescriptor, - a = function(e) { - return 'function' == typeof Array.isArray - ? Array.isArray(e) - : '[object Array]' === r.call(e); - }, - s = function(e) { - if (!e || '[object Object]' !== r.call(e)) return !1; - var t, - o = n.call(e, 'constructor'), - i = - e.constructor && - e.constructor.prototype && - n.call(e.constructor.prototype, 'isPrototypeOf'); - if (e.constructor && !o && !i) return !1; - for (t in e); - return void 0 === t || n.call(e, t); - }, - c = function(e, t) { - o && '__proto__' === t.name - ? o(e, t.name, { - enumerable: !0, - configurable: !0, - value: t.newValue, - writable: !0 - }) - : (e[t.name] = t.newValue); - }, - u = function(e, t) { - if ('__proto__' === t) { - if (!n.call(e, t)) return; - if (i) return i(e, t).value; - } - return e[t]; - }; - e.exports = function e() { - var t, - n, - r, - o, - i, - l, - f = arguments[0], - d = 1, - p = arguments.length, - h = !1; - for ( - 'boolean' == typeof f && - ((h = f), (f = arguments[1] || {}), (d = 2)), - (null == f || - ('object' != typeof f && 'function' != typeof f)) && - (f = {}); - d < p; - ++d - ) - if (null != (t = arguments[d])) - for (n in t) - (r = u(f, n)), - f !== (o = u(t, n)) && - (h && o && (s(o) || (i = a(o))) - ? (i - ? ((i = !1), (l = r && a(r) ? r : [])) - : (l = r && s(r) ? r : {}), - c(f, { name: n, newValue: e(h, l, o) })) - : void 0 !== o && c(f, { name: n, newValue: o })); - return f; - }; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = t.BlockEmbed = t.bubbleFormats = void 0); - var r = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - o = function e(t, n, r) { - null === t && (t = Function.prototype); - var o = Object.getOwnPropertyDescriptor(t, n); - if (void 0 === o) { - var i = Object.getPrototypeOf(t); - return null === i ? void 0 : e(i, n, r); - } - if ('value' in o) return o.value; - var a = o.get; - return void 0 !== a ? a.call(r) : void 0; - }, - i = f(n(3)), - a = f(n(2)), - s = f(n(0)), - c = f(n(16)), - u = f(n(6)), - l = f(n(7)); - function f(e) { - return e && e.__esModule ? e : { default: e }; - } - function d(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function p(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } - function h(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - } - var g = (function(e) { - function t() { - return ( - d(this, t), - p( - this, - (t.__proto__ || Object.getPrototypeOf(t)).apply( - this, - arguments - ) - ) - ); - } - return ( - h(t, e), - r(t, [ - { - key: 'attach', - value: function() { - o( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'attach', - this - ).call(this), - (this.attributes = new s.default.Attributor.Store( - this.domNode - )); - } - }, - { - key: 'delta', - value: function() { - return new a.default().insert( - this.value(), - (0, i.default)( - this.formats(), - this.attributes.values() - ) - ); - } - }, - { - key: 'format', - value: function(e, t) { - var n = s.default.query( - e, - s.default.Scope.BLOCK_ATTRIBUTE - ); - null != n && this.attributes.attribute(n, t); - } - }, - { - key: 'formatAt', - value: function(e, t, n, r) { - this.format(n, r); - } - }, - { - key: 'insertAt', - value: function(e, n, r) { - if ('string' == typeof n && n.endsWith('\n')) { - var i = s.default.create(m.blotName); - this.parent.insertBefore( - i, - 0 === e ? this : this.next - ), - i.insertAt(0, n.slice(0, -1)); - } else - o( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'insertAt', - this - ).call(this, e, n, r); - } - } - ]), - t - ); - })(s.default.Embed); - g.scope = s.default.Scope.BLOCK_BLOT; - var m = (function(e) { - function t(e) { - d(this, t); - var n = p( - this, - (t.__proto__ || Object.getPrototypeOf(t)).call(this, e) - ); - return (n.cache = {}), n; - } - return ( - h(t, e), - r(t, [ - { - key: 'delta', - value: function() { - return ( - null == this.cache.delta && - (this.cache.delta = this.descendants( - s.default.Leaf - ) - .reduce(function(e, t) { - return 0 === t.length() - ? e - : e.insert(t.value(), b(t)); - }, new a.default()) - .insert('\n', b(this))), - this.cache.delta - ); - } - }, - { - key: 'deleteAt', - value: function(e, n) { - o( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'deleteAt', - this - ).call(this, e, n), - (this.cache = {}); - } - }, - { - key: 'formatAt', - value: function(e, n, r, i) { - n <= 0 || - (s.default.query(r, s.default.Scope.BLOCK) - ? e + n === this.length() && this.format(r, i) - : o( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'formatAt', - this - ).call( - this, - e, - Math.min(n, this.length() - e - 1), - r, - i - ), - (this.cache = {})); - } - }, - { - key: 'insertAt', - value: function(e, n, r) { - if (null != r) - return o( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'insertAt', - this - ).call(this, e, n, r); - if (0 !== n.length) { - var i = n.split('\n'), - a = i.shift(); - a.length > 0 && - (e < this.length() - 1 || - null == this.children.tail - ? o( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'insertAt', - this - ).call( - this, - Math.min(e, this.length() - 1), - a - ) - : this.children.tail.insertAt( - this.children.tail.length(), - a - ), - (this.cache = {})); - var s = this; - i.reduce(function(e, t) { - return ( - (s = s.split(e, !0)).insertAt(0, t), t.length - ); - }, e + a.length); - } - } - }, - { - key: 'insertBefore', - value: function(e, n) { - var r = this.children.head; - o( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'insertBefore', - this - ).call(this, e, n), - r instanceof c.default && r.remove(), - (this.cache = {}); - } - }, - { - key: 'length', - value: function() { - return ( - null == this.cache.length && - (this.cache.length = - o( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'length', - this - ).call(this) + 1), - this.cache.length - ); - } - }, - { - key: 'moveChildren', - value: function(e, n) { - o( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'moveChildren', - this - ).call(this, e, n), - (this.cache = {}); - } - }, - { - key: 'optimize', - value: function(e) { - o( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'optimize', - this - ).call(this, e), - (this.cache = {}); - } - }, - { - key: 'path', - value: function(e) { - return o( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'path', - this - ).call(this, e, !0); - } - }, - { - key: 'removeChild', - value: function(e) { - o( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'removeChild', - this - ).call(this, e), - (this.cache = {}); - } - }, - { - key: 'split', - value: function(e) { - var n = - arguments.length > 1 && - void 0 !== arguments[1] && - arguments[1]; - if (n && (0 === e || e >= this.length() - 1)) { - var r = this.clone(); - return 0 === e - ? (this.parent.insertBefore(r, this), this) - : (this.parent.insertBefore(r, this.next), r); - } - var i = o( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'split', - this - ).call(this, e, n); - return (this.cache = {}), i; - } - } - ]), - t - ); - })(s.default.Block); - function b(e) { - var t = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : {}; - return null == e - ? t - : ('function' == typeof e.formats && - (t = (0, i.default)(t, e.formats())), - null == e.parent || - 'scroll' == e.parent.blotName || - e.parent.statics.scope !== e.statics.scope - ? t - : b(e.parent, t)); - } - (m.blotName = 'block'), - (m.tagName = 'P'), - (m.defaultChild = 'break'), - (m.allowedChildren = [u.default, s.default.Embed, l.default]), - (t.bubbleFormats = b), - (t.BlockEmbed = g), - (t.default = m); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = t.overload = t.expandConfig = void 0); - var r = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(e) { - return typeof e; - } - : function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - }, - o = function(e, t) { - if (Array.isArray(e)) return e; - if (Symbol.iterator in Object(e)) - return (function(e, t) { - var n = [], - r = !0, - o = !1, - i = void 0; - try { - for ( - var a, s = e[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !t || n.length !== t); - r = !0 - ); - } catch (e) { - (o = !0), (i = e); - } finally { - try { - !r && s.return && s.return(); - } finally { - if (o) throw i; - } - } - return n; - })(e, t); - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance' - ); - }, - i = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(); - n(50); - var a = m(n(2)), - s = m(n(14)), - c = m(n(8)), - u = m(n(9)), - l = m(n(0)), - f = n(15), - d = m(f), - p = m(n(3)), - h = m(n(10)), - g = m(n(34)); - function m(e) { - return e && e.__esModule ? e : { default: e }; - } - function b(e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e - ); - } - function y(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - var v = (0, h.default)('quill'), - _ = (function() { - function e(t) { - var n = this, - r = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : {}; - if ( - (y(this, e), - (this.options = x(t, r)), - (this.container = this.options.container), - null == this.container) - ) - return v.error('Invalid Quill container', t); - this.options.debug && e.debug(this.options.debug); - var o = this.container.innerHTML.trim(); - this.container.classList.add('ql-container'), - (this.container.innerHTML = ''), - (this.container.__quill = this), - (this.root = this.addContainer('ql-editor')), - this.root.classList.add('ql-blank'), - this.root.setAttribute('data-gramm', !1), - (this.scrollingContainer = - this.options.scrollingContainer || this.root), - (this.emitter = new c.default()), - (this.scroll = l.default.create(this.root, { - emitter: this.emitter, - whitelist: this.options.formats - })), - (this.editor = new s.default(this.scroll)), - (this.selection = new d.default( - this.scroll, - this.emitter - )), - (this.theme = new this.options.theme( - this, - this.options - )), - (this.keyboard = this.theme.addModule('keyboard')), - (this.clipboard = this.theme.addModule('clipboard')), - (this.history = this.theme.addModule('history')), - this.theme.init(), - this.emitter.on( - c.default.events.EDITOR_CHANGE, - function(e) { - e === c.default.events.TEXT_CHANGE && - n.root.classList.toggle( - 'ql-blank', - n.editor.isBlank() - ); - } - ), - this.emitter.on( - c.default.events.SCROLL_UPDATE, - function(e, t) { - var r = n.selection.lastRange, - o = r && 0 === r.length ? r.index : void 0; - w.call( - n, - function() { - return n.editor.update(null, t, o); - }, - e - ); - } - ); - var i = this.clipboard.convert( - '
' + - o + - '


' - ); - this.setContents(i), - this.history.clear(), - this.options.placeholder && - this.root.setAttribute( - 'data-placeholder', - this.options.placeholder - ), - this.options.readOnly && this.disable(); - } - return ( - i(e, null, [ - { - key: 'debug', - value: function(e) { - !0 === e && (e = 'log'), h.default.level(e); - } - }, - { - key: 'find', - value: function(e) { - return e.__quill || l.default.find(e); - } - }, - { - key: 'import', - value: function(e) { - return ( - null == this.imports[e] && - v.error( - 'Cannot import ' + - e + - '. Are you sure it was registered?' - ), - this.imports[e] - ); - } - }, - { - key: 'register', - value: function(e, t) { - var n = this, - r = - arguments.length > 2 && - void 0 !== arguments[2] && - arguments[2]; - if ('string' != typeof e) { - var o = e.attrName || e.blotName; - 'string' == typeof o - ? this.register('formats/' + o, e, t) - : Object.keys(e).forEach(function(r) { - n.register(r, e[r], t); - }); - } else - null == this.imports[e] || - r || - v.warn('Overwriting ' + e + ' with', t), - (this.imports[e] = t), - (e.startsWith('blots/') || - e.startsWith('formats/')) && - 'abstract' !== t.blotName - ? l.default.register(t) - : e.startsWith('modules') && - 'function' == typeof t.register && - t.register(); - } - } - ]), - i(e, [ - { - key: 'addContainer', - value: function(e) { - var t = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : null; - if ('string' == typeof e) { - var n = e; - (e = document.createElement('div')).classList.add( - n - ); - } - return this.container.insertBefore(e, t), e; - } - }, - { - key: 'blur', - value: function() { - this.selection.setRange(null); - } - }, - { - key: 'deleteText', - value: function(e, t, n) { - var r = this, - i = M(e, t, n), - a = o(i, 4); - return ( - (e = a[0]), - (t = a[1]), - (n = a[3]), - w.call( - this, - function() { - return r.editor.deleteText(e, t); - }, - n, - e, - -1 * t - ) - ); - } - }, - { - key: 'disable', - value: function() { - this.enable(!1); - } - }, - { - key: 'enable', - value: function() { - var e = - !( - arguments.length > 0 && void 0 !== arguments[0] - ) || arguments[0]; - this.scroll.enable(e), - this.container.classList.toggle( - 'ql-disabled', - !e - ); - } - }, - { - key: 'focus', - value: function() { - var e = this.scrollingContainer.scrollTop; - this.selection.focus(), - (this.scrollingContainer.scrollTop = e), - this.scrollIntoView(); - } - }, - { - key: 'format', - value: function(e, t) { - var n = this, - r = - arguments.length > 2 && void 0 !== arguments[2] - ? arguments[2] - : c.default.sources.API; - return w.call( - this, - function() { - var r = n.getSelection(!0), - o = new a.default(); - if (null == r) return o; - if (l.default.query(e, l.default.Scope.BLOCK)) - o = n.editor.formatLine( - r.index, - r.length, - b({}, e, t) - ); - else { - if (0 === r.length) - return n.selection.format(e, t), o; - o = n.editor.formatText( - r.index, - r.length, - b({}, e, t) - ); - } - return ( - n.setSelection(r, c.default.sources.SILENT), o - ); - }, - r - ); - } - }, - { - key: 'formatLine', - value: function(e, t, n, r, i) { - var a, - s = this, - c = M(e, t, n, r, i), - u = o(c, 4); - return ( - (e = u[0]), - (t = u[1]), - (a = u[2]), - (i = u[3]), - w.call( - this, - function() { - return s.editor.formatLine(e, t, a); - }, - i, - e, - 0 - ) - ); - } - }, - { - key: 'formatText', - value: function(e, t, n, r, i) { - var a, - s = this, - c = M(e, t, n, r, i), - u = o(c, 4); - return ( - (e = u[0]), - (t = u[1]), - (a = u[2]), - (i = u[3]), - w.call( - this, - function() { - return s.editor.formatText(e, t, a); - }, - i, - e, - 0 - ) - ); - } - }, - { - key: 'getBounds', - value: function(e) { - var t = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : 0, - n = void 0; - n = - 'number' == typeof e - ? this.selection.getBounds(e, t) - : this.selection.getBounds(e.index, e.length); - var r = this.container.getBoundingClientRect(); - return { - bottom: n.bottom - r.top, - height: n.height, - left: n.left - r.left, - right: n.right - r.left, - top: n.top - r.top, - width: n.width - }; - } - }, - { - key: 'getContents', - value: function() { - var e = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : 0, - t = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : this.getLength() - e, - n = M(e, t), - r = o(n, 2); - return ( - (e = r[0]), - (t = r[1]), - this.editor.getContents(e, t) - ); - } - }, - { - key: 'getFormat', - value: function() { - var e = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : this.getSelection(!0), - t = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : 0; - return 'number' == typeof e - ? this.editor.getFormat(e, t) - : this.editor.getFormat(e.index, e.length); - } - }, - { - key: 'getIndex', - value: function(e) { - return e.offset(this.scroll); - } - }, - { - key: 'getLength', - value: function() { - return this.scroll.length(); - } - }, - { - key: 'getLeaf', - value: function(e) { - return this.scroll.leaf(e); - } - }, - { - key: 'getLine', - value: function(e) { - return this.scroll.line(e); - } - }, - { - key: 'getLines', - value: function() { - var e = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : 0, - t = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : Number.MAX_VALUE; - return 'number' != typeof e - ? this.scroll.lines(e.index, e.length) - : this.scroll.lines(e, t); - } - }, - { - key: 'getModule', - value: function(e) { - return this.theme.modules[e]; - } - }, - { - key: 'getSelection', - value: function() { - var e = - arguments.length > 0 && - void 0 !== arguments[0] && - arguments[0]; - return ( - e && this.focus(), - this.update(), - this.selection.getRange()[0] - ); - } - }, - { - key: 'getText', - value: function() { - var e = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : 0, - t = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : this.getLength() - e, - n = M(e, t), - r = o(n, 2); - return ( - (e = r[0]), (t = r[1]), this.editor.getText(e, t) - ); - } - }, - { - key: 'hasFocus', - value: function() { - return this.selection.hasFocus(); - } - }, - { - key: 'insertEmbed', - value: function(t, n, r) { - var o = this, - i = - arguments.length > 3 && void 0 !== arguments[3] - ? arguments[3] - : e.sources.API; - return w.call( - this, - function() { - return o.editor.insertEmbed(t, n, r); - }, - i, - t - ); - } - }, - { - key: 'insertText', - value: function(e, t, n, r, i) { - var a, - s = this, - c = M(e, 0, n, r, i), - u = o(c, 4); - return ( - (e = u[0]), - (a = u[2]), - (i = u[3]), - w.call( - this, - function() { - return s.editor.insertText(e, t, a); - }, - i, - e, - t.length - ) - ); - } - }, - { - key: 'isEnabled', - value: function() { - return !this.container.classList.contains( - 'ql-disabled' - ); - } - }, - { - key: 'off', - value: function() { - return this.emitter.off.apply( - this.emitter, - arguments - ); - } - }, - { - key: 'on', - value: function() { - return this.emitter.on.apply( - this.emitter, - arguments - ); - } - }, - { - key: 'once', - value: function() { - return this.emitter.once.apply( - this.emitter, - arguments - ); - } - }, - { - key: 'pasteHTML', - value: function(e, t, n) { - this.clipboard.dangerouslyPasteHTML(e, t, n); - } - }, - { - key: 'removeFormat', - value: function(e, t, n) { - var r = this, - i = M(e, t, n), - a = o(i, 4); - return ( - (e = a[0]), - (t = a[1]), - (n = a[3]), - w.call( - this, - function() { - return r.editor.removeFormat(e, t); - }, - n, - e - ) - ); - } - }, - { - key: 'scrollIntoView', - value: function() { - this.selection.scrollIntoView( - this.scrollingContainer - ); - } - }, - { - key: 'setContents', - value: function(e) { - var t = this, - n = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : c.default.sources.API; - return w.call( - this, - function() { - e = new a.default(e); - var n = t.getLength(), - r = t.editor.deleteText(0, n), - o = t.editor.applyDelta(e), - i = o.ops[o.ops.length - 1]; - return ( - null != i && - 'string' == typeof i.insert && - '\n' === i.insert[i.insert.length - 1] && - (t.editor.deleteText(t.getLength() - 1, 1), - o.delete(1)), - r.compose(o) - ); - }, - n - ); - } - }, - { - key: 'setSelection', - value: function(t, n, r) { - if (null == t) - this.selection.setRange(null, n || e.sources.API); - else { - var i = M(t, n, r), - a = o(i, 4); - (t = a[0]), - (n = a[1]), - (r = a[3]), - this.selection.setRange(new f.Range(t, n), r), - r !== c.default.sources.SILENT && - this.selection.scrollIntoView( - this.scrollingContainer - ); - } - } - }, - { - key: 'setText', - value: function(e) { - var t = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : c.default.sources.API, - n = new a.default().insert(e); - return this.setContents(n, t); - } - }, - { - key: 'update', - value: function() { - var e = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : c.default.sources.USER, - t = this.scroll.update(e); - return this.selection.update(e), t; - } - }, - { - key: 'updateContents', - value: function(e) { - var t = this, - n = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : c.default.sources.API; - return w.call( - this, - function() { - return ( - (e = new a.default(e)), - t.editor.applyDelta(e, n) - ); - }, - n, - !0 - ); - } - } - ]), - e - ); - })(); - function x(e, t) { - if ( - (t = (0, p.default)( - !0, - { - container: e, - modules: { clipboard: !0, keyboard: !0, history: !0 } - }, - t - )).theme && - t.theme !== _.DEFAULTS.theme - ) { - if ( - ((t.theme = _.import('themes/' + t.theme)), - null == t.theme) - ) - throw new Error( - 'Invalid theme ' + t.theme + '. Did you register it?' - ); - } else t.theme = g.default; - var n = (0, p.default)(!0, {}, t.theme.DEFAULTS); - [n, t].forEach(function(e) { - (e.modules = e.modules || {}), - Object.keys(e.modules).forEach(function(t) { - !0 === e.modules[t] && (e.modules[t] = {}); - }); - }); - var r = Object.keys(n.modules) - .concat(Object.keys(t.modules)) - .reduce(function(e, t) { - var n = _.import('modules/' + t); - return ( - null == n - ? v.error( - 'Cannot load ' + - t + - ' module. Are you sure you registered it?' - ) - : (e[t] = n.DEFAULTS || {}), - e - ); - }, {}); - return ( - null != t.modules && - t.modules.toolbar && - t.modules.toolbar.constructor !== Object && - (t.modules.toolbar = { container: t.modules.toolbar }), - (t = (0, p.default)( - !0, - {}, - _.DEFAULTS, - { modules: r }, - n, - t - )), - ['bounds', 'container', 'scrollingContainer'].forEach( - function(e) { - 'string' == typeof t[e] && - (t[e] = document.querySelector(t[e])); - } - ), - (t.modules = Object.keys(t.modules).reduce(function(e, n) { - return t.modules[n] && (e[n] = t.modules[n]), e; - }, {})), - t - ); - } - function w(e, t, n, r) { - if ( - this.options.strict && - !this.isEnabled() && - t === c.default.sources.USER - ) - return new a.default(); - var o = null == n ? null : this.getSelection(), - i = this.editor.delta, - s = e(); - if ( - (null != o && - (!0 === n && (n = o.index), - null == r - ? (o = k(o, s, t)) - : 0 !== r && (o = k(o, n, r, t)), - this.setSelection(o, c.default.sources.SILENT)), - s.length() > 0) - ) { - var u, - l, - f = [c.default.events.TEXT_CHANGE, s, i, t]; - (u = this.emitter).emit.apply( - u, - [c.default.events.EDITOR_CHANGE].concat(f) - ), - t !== c.default.sources.SILENT && - (l = this.emitter).emit.apply(l, f); - } - return s; - } - function M(e, t, n, o, i) { - var a = {}; - return ( - 'number' == typeof e.index && 'number' == typeof e.length - ? 'number' != typeof t - ? ((i = o), - (o = n), - (n = t), - (t = e.length), - (e = e.index)) - : ((t = e.length), (e = e.index)) - : 'number' != typeof t && - ((i = o), (o = n), (n = t), (t = 0)), - 'object' === (void 0 === n ? 'undefined' : r(n)) - ? ((a = n), (i = o)) - : 'string' == typeof n && - (null != o ? (a[n] = o) : (i = n)), - [e, t, a, (i = i || c.default.sources.API)] - ); - } - function k(e, t, n, r) { - if (null == e) return null; - var i = void 0, - s = void 0; - if (t instanceof a.default) { - var u = [e.index, e.index + e.length].map(function(e) { - return t.transformPosition( - e, - r !== c.default.sources.USER - ); - }), - l = o(u, 2); - (i = l[0]), (s = l[1]); - } else { - var d = [e.index, e.index + e.length].map(function(e) { - return e < t || - (e === t && r === c.default.sources.USER) - ? e - : n >= 0 - ? e + n - : Math.max(t, e + n); - }), - p = o(d, 2); - (i = p[0]), (s = p[1]); - } - return new f.Range(i, s - i); - } - (_.DEFAULTS = { - bounds: null, - formats: null, - modules: {}, - placeholder: '', - readOnly: !1, - scrollingContainer: null, - strict: !0, - theme: 'default' - }), - (_.events = c.default.events), - (_.sources = c.default.sources), - (_.version = '1.3.7'), - (_.imports = { - delta: a.default, - parchment: l.default, - 'core/module': u.default, - 'core/theme': g.default - }), - (t.expandConfig = x), - (t.overload = M), - (t.default = _); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - o = function e(t, n, r) { - null === t && (t = Function.prototype); - var o = Object.getOwnPropertyDescriptor(t, n); - if (void 0 === o) { - var i = Object.getPrototypeOf(t); - return null === i ? void 0 : e(i, n, r); - } - if ('value' in o) return o.value; - var a = o.get; - return void 0 !== a ? a.call(r) : void 0; - }, - i = s(n(7)), - a = s(n(0)); - function s(e) { - return e && e.__esModule ? e : { default: e }; - } - function c(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function u(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } - var l = (function(e) { - function t() { - return ( - c(this, t), - u( - this, - (t.__proto__ || Object.getPrototypeOf(t)).apply( - this, - arguments - ) - ) - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(t, e), - r( - t, - [ - { - key: 'formatAt', - value: function(e, n, r, i) { - if ( - t.compare(this.statics.blotName, r) < 0 && - a.default.query(r, a.default.Scope.BLOT) - ) { - var s = this.isolate(e, n); - i && s.wrap(r, i); - } else - o( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'formatAt', - this - ).call(this, e, n, r, i); - } - }, - { - key: 'optimize', - value: function(e) { - if ( - (o( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'optimize', - this - ).call(this, e), - this.parent instanceof t && - t.compare( - this.statics.blotName, - this.parent.statics.blotName - ) > 0) - ) { - var n = this.parent.isolate( - this.offset(), - this.length() - ); - this.moveChildren(n), n.wrap(this); - } - } - } - ], - [ - { - key: 'compare', - value: function(e, n) { - var r = t.order.indexOf(e), - o = t.order.indexOf(n); - return r >= 0 || o >= 0 - ? r - o - : e === n - ? 0 - : e < n - ? -1 - : 1; - } - } - ] - ), - t - ); - })(a.default.Inline); - (l.allowedChildren = [l, a.default.Embed, i.default]), - (l.order = [ - 'cursor', - 'inline', - 'underline', - 'strike', - 'italic', - 'bold', - 'script', - 'link', - 'code' - ]), - (t.default = l); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r, - o = n(0); - function i(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function a(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } - var s = (function(e) { - function t() { - return ( - i(this, t), - a( - this, - (t.__proto__ || Object.getPrototypeOf(t)).apply( - this, - arguments - ) - ) - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(t, e), - t - ); - })(((r = o) && r.__esModule ? r : { default: r }).default.Text); - t.default = s; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - o = function e(t, n, r) { - null === t && (t = Function.prototype); - var o = Object.getOwnPropertyDescriptor(t, n); - if (void 0 === o) { - var i = Object.getPrototypeOf(t); - return null === i ? void 0 : e(i, n, r); - } - if ('value' in o) return o.value; - var a = o.get; - return void 0 !== a ? a.call(r) : void 0; - }, - i = a(n(54)); - function a(e) { - return e && e.__esModule ? e : { default: e }; - } - var s = (0, a(n(10)).default)('quill:events'); - ['selectionchange', 'mousedown', 'mouseup', 'click'].forEach( - function(e) { - document.addEventListener(e, function() { - for ( - var e = arguments.length, t = Array(e), n = 0; - n < e; - n++ - ) - t[n] = arguments[n]; - [].slice - .call(document.querySelectorAll('.ql-container')) - .forEach(function(e) { - var n; - e.__quill && - e.__quill.emitter && - (n = e.__quill.emitter).handleDOM.apply(n, t); - }); - }); - } - ); - var c = (function(e) { - function t() { - !(function(e, t) { - if (!(e instanceof t)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, t); - var e = (function(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || - ('object' != typeof t && 'function' != typeof t) - ? e - : t; - })( - this, - (t.__proto__ || Object.getPrototypeOf(t)).call(this) - ); - return (e.listeners = {}), e.on('error', s.error), e; - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(t, e), - r(t, [ - { - key: 'emit', - value: function() { - s.log.apply(s, arguments), - o( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'emit', - this - ).apply(this, arguments); - } - }, - { - key: 'handleDOM', - value: function(e) { - for ( - var t = arguments.length, - n = Array(t > 1 ? t - 1 : 0), - r = 1; - r < t; - r++ - ) - n[r - 1] = arguments[r]; - (this.listeners[e.type] || []).forEach(function(t) { - var r = t.node, - o = t.handler; - (e.target === r || r.contains(e.target)) && - o.apply(void 0, [e].concat(n)); - }); - } - }, - { - key: 'listenDOM', - value: function(e, t, n) { - this.listeners[e] || (this.listeners[e] = []), - this.listeners[e].push({ node: t, handler: n }); - } - } - ]), - t - ); - })(i.default); - (c.events = { - EDITOR_CHANGE: 'editor-change', - SCROLL_BEFORE_UPDATE: 'scroll-before-update', - SCROLL_OPTIMIZE: 'scroll-optimize', - SCROLL_UPDATE: 'scroll-update', - SELECTION_CHANGE: 'selection-change', - TEXT_CHANGE: 'text-change' - }), - (c.sources = { API: 'api', SILENT: 'silent', USER: 'user' }), - (t.default = c); - }, - function(e, t, n) { - 'use strict'; - function r(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - Object.defineProperty(t, '__esModule', { value: !0 }); - var o = function e(t) { - var n = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : {}; - r(this, e), (this.quill = t), (this.options = n); - }; - (o.DEFAULTS = {}), (t.default = o); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r = ['error', 'warn', 'log', 'info'], - o = 'warn'; - function i(e) { - if (r.indexOf(e) <= r.indexOf(o)) { - for ( - var t, - n = arguments.length, - i = Array(n > 1 ? n - 1 : 0), - a = 1; - a < n; - a++ - ) - i[a - 1] = arguments[a]; - (t = console)[e].apply(t, i); - } - } - function a(e) { - return r.reduce(function(t, n) { - return (t[n] = i.bind(console, n, e)), t; - }, {}); - } - (i.level = a.level = function(e) { - o = e; - }), - (t.default = a); - }, - function(e, t, n) { - var r = Array.prototype.slice, - o = n(52), - i = n(53), - a = (e.exports = function(e, t, n) { - return ( - n || (n = {}), - e === t || - (e instanceof Date && t instanceof Date - ? e.getTime() === t.getTime() - : !e || - !t || - ('object' != typeof e && 'object' != typeof t) - ? n.strict - ? e === t - : e == t - : (function(e, t, n) { - var u, l; - if (s(e) || s(t)) return !1; - if (e.prototype !== t.prototype) return !1; - if (i(e)) - return ( - !!i(t) && - ((e = r.call(e)), (t = r.call(t)), a(e, t, n)) - ); - if (c(e)) { - if (!c(t)) return !1; - if (e.length !== t.length) return !1; - for (u = 0; u < e.length; u++) - if (e[u] !== t[u]) return !1; - return !0; - } - try { - var f = o(e), - d = o(t); - } catch (e) { - return !1; - } - if (f.length != d.length) return !1; - for ( - f.sort(), d.sort(), u = f.length - 1; - u >= 0; - u-- - ) - if (f[u] != d[u]) return !1; - for (u = f.length - 1; u >= 0; u--) - if (((l = f[u]), !a(e[l], t[l], n))) return !1; - return typeof e == typeof t; - })(e, t, n)) - ); - }); - function s(e) { - return null == e; - } - function c(e) { - return !( - !e || - 'object' != typeof e || - 'number' != typeof e.length || - 'function' != typeof e.copy || - 'function' != typeof e.slice || - (e.length > 0 && 'number' != typeof e[0]) - ); - } - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r = n(1), - o = (function() { - function e(e, t, n) { - void 0 === n && (n = {}), - (this.attrName = e), - (this.keyName = t); - var o = r.Scope.TYPE & r.Scope.ATTRIBUTE; - null != n.scope - ? (this.scope = (n.scope & r.Scope.LEVEL) | o) - : (this.scope = r.Scope.ATTRIBUTE), - null != n.whitelist && (this.whitelist = n.whitelist); - } - return ( - (e.keys = function(e) { - return [].map.call(e.attributes, function(e) { - return e.name; - }); - }), - (e.prototype.add = function(e, t) { - return ( - !!this.canAdd(e, t) && - (e.setAttribute(this.keyName, t), !0) - ); - }), - (e.prototype.canAdd = function(e, t) { - return ( - null != - r.query( - e, - r.Scope.BLOT & (this.scope | r.Scope.TYPE) - ) && - (null == this.whitelist || - ('string' == typeof t - ? this.whitelist.indexOf(t.replace(/["']/g, '')) > - -1 - : this.whitelist.indexOf(t) > -1)) - ); - }), - (e.prototype.remove = function(e) { - e.removeAttribute(this.keyName); - }), - (e.prototype.value = function(e) { - var t = e.getAttribute(this.keyName); - return this.canAdd(e, t) && t ? t : ''; - }), - e - ); - })(); - t.default = o; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = t.Code = void 0); - var r = function(e, t) { - if (Array.isArray(e)) return e; - if (Symbol.iterator in Object(e)) - return (function(e, t) { - var n = [], - r = !0, - o = !1, - i = void 0; - try { - for ( - var a, s = e[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !t || n.length !== t); - r = !0 - ); - } catch (e) { - (o = !0), (i = e); - } finally { - try { - !r && s.return && s.return(); - } finally { - if (o) throw i; - } - } - return n; - })(e, t); - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance' - ); - }, - o = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - i = function e(t, n, r) { - null === t && (t = Function.prototype); - var o = Object.getOwnPropertyDescriptor(t, n); - if (void 0 === o) { - var i = Object.getPrototypeOf(t); - return null === i ? void 0 : e(i, n, r); - } - if ('value' in o) return o.value; - var a = o.get; - return void 0 !== a ? a.call(r) : void 0; - }, - a = f(n(2)), - s = f(n(0)), - c = f(n(4)), - u = f(n(6)), - l = f(n(7)); - function f(e) { - return e && e.__esModule ? e : { default: e }; - } - function d(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function p(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } - function h(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - } - var g = (function(e) { - function t() { - return ( - d(this, t), - p( - this, - (t.__proto__ || Object.getPrototypeOf(t)).apply( - this, - arguments - ) - ) - ); - } - return h(t, e), t; - })(u.default); - (g.blotName = 'code'), (g.tagName = 'CODE'); - var m = (function(e) { - function t() { - return ( - d(this, t), - p( - this, - (t.__proto__ || Object.getPrototypeOf(t)).apply( - this, - arguments - ) - ) - ); - } - return ( - h(t, e), - o( - t, - [ - { - key: 'delta', - value: function() { - var e = this, - t = this.domNode.textContent; - return ( - t.endsWith('\n') && (t = t.slice(0, -1)), - t.split('\n').reduce(function(t, n) { - return t.insert(n).insert('\n', e.formats()); - }, new a.default()) - ); - } - }, - { - key: 'format', - value: function(e, n) { - if (e !== this.statics.blotName || !n) { - var o = this.descendant( - l.default, - this.length() - 1 - ), - a = r(o, 1)[0]; - null != a && a.deleteAt(a.length() - 1, 1), - i( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'format', - this - ).call(this, e, n); - } - } - }, - { - key: 'formatAt', - value: function(e, n, r, o) { - if ( - 0 !== n && - null != - s.default.query(r, s.default.Scope.BLOCK) && - (r !== this.statics.blotName || - o !== this.statics.formats(this.domNode)) - ) { - var i = this.newlineIndex(e); - if (!(i < 0 || i >= e + n)) { - var a = this.newlineIndex(e, !0) + 1, - c = i - a + 1, - u = this.isolate(a, c), - l = u.next; - u.format(r, o), - l instanceof t && - l.formatAt(0, e - a + n - c, r, o); - } - } - } - }, - { - key: 'insertAt', - value: function(e, t, n) { - if (null == n) { - var o = this.descendant(l.default, e), - i = r(o, 2), - a = i[0], - s = i[1]; - a.insertAt(s, t); - } - } - }, - { - key: 'length', - value: function() { - var e = this.domNode.textContent.length; - return this.domNode.textContent.endsWith('\n') - ? e - : e + 1; - } - }, - { - key: 'newlineIndex', - value: function(e) { - var t = - arguments.length > 1 && - void 0 !== arguments[1] && - arguments[1]; - if (t) - return this.domNode.textContent - .slice(0, e) - .lastIndexOf('\n'); - var n = this.domNode.textContent - .slice(e) - .indexOf('\n'); - return n > -1 ? e + n : -1; - } - }, - { - key: 'optimize', - value: function(e) { - this.domNode.textContent.endsWith('\n') || - this.appendChild(s.default.create('text', '\n')), - i( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'optimize', - this - ).call(this, e); - var n = this.next; - null != n && - n.prev === this && - n.statics.blotName === this.statics.blotName && - this.statics.formats(this.domNode) === - n.statics.formats(n.domNode) && - (n.optimize(e), n.moveChildren(this), n.remove()); - } - }, - { - key: 'replace', - value: function(e) { - i( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'replace', - this - ).call(this, e), - [].slice - .call(this.domNode.querySelectorAll('*')) - .forEach(function(e) { - var t = s.default.find(e); - null == t - ? e.parentNode.removeChild(e) - : t instanceof s.default.Embed - ? t.remove() - : t.unwrap(); - }); - } - } - ], - [ - { - key: 'create', - value: function(e) { - var n = i( - t.__proto__ || Object.getPrototypeOf(t), - 'create', - this - ).call(this, e); - return n.setAttribute('spellcheck', !1), n; - } - }, - { - key: 'formats', - value: function() { - return !0; - } - } - ] - ), - t - ); - })(c.default); - (m.blotName = 'code-block'), - (m.tagName = 'PRE'), - (m.TAB = ' '), - (t.Code = g), - (t.default = m); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(e) { - return typeof e; - } - : function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - }, - o = function(e, t) { - if (Array.isArray(e)) return e; - if (Symbol.iterator in Object(e)) - return (function(e, t) { - var n = [], - r = !0, - o = !1, - i = void 0; - try { - for ( - var a, s = e[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !t || n.length !== t); - r = !0 - ); - } catch (e) { - (o = !0), (i = e); - } finally { - try { - !r && s.return && s.return(); - } finally { - if (o) throw i; - } - } - return n; - })(e, t); - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance' - ); - }, - i = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - a = b(n(2)), - s = b(n(20)), - c = b(n(0)), - u = b(n(13)), - l = b(n(24)), - f = n(4), - d = b(f), - p = b(n(16)), - h = b(n(21)), - g = b(n(11)), - m = b(n(3)); - function b(e) { - return e && e.__esModule ? e : { default: e }; - } - var y = /^[ -~]*$/, - v = (function() { - function e(t) { - !(function(e, t) { - if (!(e instanceof t)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, e), - (this.scroll = t), - (this.delta = this.getDelta()); - } - return ( - i(e, [ - { - key: 'applyDelta', - value: function(e) { - var t = this, - n = !1; - this.scroll.update(); - var i = this.scroll.length(); - return ( - this.scroll.batchStart(), - (e = (function(e) { - return e.reduce(function(e, t) { - if (1 === t.insert) { - var n = (0, h.default)(t.attributes); - return ( - delete n.image, - e.insert({ image: t.attributes.image }, n) - ); - } - if ( - (null == t.attributes || - (!0 !== t.attributes.list && - !0 !== t.attributes.bullet) || - ((t = (0, h.default)(t)).attributes.list - ? (t.attributes.list = 'ordered') - : ((t.attributes.list = 'bullet'), - delete t.attributes.bullet)), - 'string' == typeof t.insert) - ) { - var r = t.insert - .replace(/\r\n/g, '\n') - .replace(/\r/g, '\n'); - return e.insert(r, t.attributes); - } - return e.push(t); - }, new a.default()); - })(e)).reduce(function(e, a) { - var u = - a.retain || - a.delete || - a.insert.length || - 1, - l = a.attributes || {}; - if (null != a.insert) { - if ('string' == typeof a.insert) { - var p = a.insert; - p.endsWith('\n') && - n && - ((n = !1), (p = p.slice(0, -1))), - e >= i && !p.endsWith('\n') && (n = !0), - t.scroll.insertAt(e, p); - var h = t.scroll.line(e), - g = o(h, 2), - b = g[0], - y = g[1], - v = (0, m.default)( - {}, - (0, f.bubbleFormats)(b) - ); - if (b instanceof d.default) { - var _ = b.descendant(c.default.Leaf, y), - x = o(_, 1)[0]; - v = (0, m.default)( - v, - (0, f.bubbleFormats)(x) - ); - } - l = s.default.attributes.diff(v, l) || {}; - } else if ('object' === r(a.insert)) { - var w = Object.keys(a.insert)[0]; - if (null == w) return e; - t.scroll.insertAt(e, w, a.insert[w]); - } - i += u; - } - return ( - Object.keys(l).forEach(function(n) { - t.scroll.formatAt(e, u, n, l[n]); - }), - e + u - ); - }, 0), - e.reduce(function(e, n) { - return 'number' == typeof n.delete - ? (t.scroll.deleteAt(e, n.delete), e) - : e + (n.retain || n.insert.length || 1); - }, 0), - this.scroll.batchEnd(), - this.update(e) - ); - } - }, - { - key: 'deleteText', - value: function(e, t) { - return ( - this.scroll.deleteAt(e, t), - this.update(new a.default().retain(e).delete(t)) - ); - } - }, - { - key: 'formatLine', - value: function(e, t) { - var n = this, - r = - arguments.length > 2 && void 0 !== arguments[2] - ? arguments[2] - : {}; - return ( - this.scroll.update(), - Object.keys(r).forEach(function(o) { - if ( - null == n.scroll.whitelist || - n.scroll.whitelist[o] - ) { - var i = n.scroll.lines(e, Math.max(t, 1)), - a = t; - i.forEach(function(t) { - var i = t.length(); - if (t instanceof u.default) { - var s = e - t.offset(n.scroll), - c = t.newlineIndex(s + a) - s + 1; - t.formatAt(s, c, o, r[o]); - } else t.format(o, r[o]); - a -= i; - }); - } - }), - this.scroll.optimize(), - this.update( - new a.default() - .retain(e) - .retain(t, (0, h.default)(r)) - ) - ); - } - }, - { - key: 'formatText', - value: function(e, t) { - var n = this, - r = - arguments.length > 2 && void 0 !== arguments[2] - ? arguments[2] - : {}; - return ( - Object.keys(r).forEach(function(o) { - n.scroll.formatAt(e, t, o, r[o]); - }), - this.update( - new a.default() - .retain(e) - .retain(t, (0, h.default)(r)) - ) - ); - } - }, - { - key: 'getContents', - value: function(e, t) { - return this.delta.slice(e, e + t); - } - }, - { - key: 'getDelta', - value: function() { - return this.scroll.lines().reduce(function(e, t) { - return e.concat(t.delta()); - }, new a.default()); - } - }, - { - key: 'getFormat', - value: function(e) { - var t = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : 0, - n = [], - r = []; - 0 === t - ? this.scroll.path(e).forEach(function(e) { - var t = o(e, 1)[0]; - t instanceof d.default - ? n.push(t) - : t instanceof c.default.Leaf && r.push(t); - }) - : ((n = this.scroll.lines(e, t)), - (r = this.scroll.descendants( - c.default.Leaf, - e, - t - ))); - var i = [n, r].map(function(e) { - if (0 === e.length) return {}; - for ( - var t = (0, f.bubbleFormats)(e.shift()); - Object.keys(t).length > 0; - - ) { - var n = e.shift(); - if (null == n) return t; - t = _((0, f.bubbleFormats)(n), t); - } - return t; - }); - return m.default.apply(m.default, i); - } - }, - { - key: 'getText', - value: function(e, t) { - return this.getContents(e, t) - .filter(function(e) { - return 'string' == typeof e.insert; - }) - .map(function(e) { - return e.insert; - }) - .join(''); - } - }, - { - key: 'insertEmbed', - value: function(e, t, n) { - return ( - this.scroll.insertAt(e, t, n), - this.update( - new a.default().retain(e).insert( - (function(e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e - ); - })({}, t, n) - ) - ) - ); - } - }, - { - key: 'insertText', - value: function(e, t) { - var n = this, - r = - arguments.length > 2 && void 0 !== arguments[2] - ? arguments[2] - : {}; - return ( - (t = t - .replace(/\r\n/g, '\n') - .replace(/\r/g, '\n')), - this.scroll.insertAt(e, t), - Object.keys(r).forEach(function(o) { - n.scroll.formatAt(e, t.length, o, r[o]); - }), - this.update( - new a.default() - .retain(e) - .insert(t, (0, h.default)(r)) - ) - ); - } - }, - { - key: 'isBlank', - value: function() { - if (0 == this.scroll.children.length) return !0; - if (this.scroll.children.length > 1) return !1; - var e = this.scroll.children.head; - return ( - e.statics.blotName === d.default.blotName && - !(e.children.length > 1) && - e.children.head instanceof p.default - ); - } - }, - { - key: 'removeFormat', - value: function(e, t) { - var n = this.getText(e, t), - r = this.scroll.line(e + t), - i = o(r, 2), - s = i[0], - c = i[1], - l = 0, - f = new a.default(); - null != s && - ((l = - s instanceof u.default - ? s.newlineIndex(c) - c + 1 - : s.length() - c), - (f = s - .delta() - .slice(c, c + l - 1) - .insert('\n'))); - var d = this.getContents(e, t + l).diff( - new a.default().insert(n).concat(f) - ), - p = new a.default().retain(e).concat(d); - return this.applyDelta(p); - } - }, - { - key: 'update', - value: function(e) { - var t = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : [], - n = - arguments.length > 2 && void 0 !== arguments[2] - ? arguments[2] - : void 0, - r = this.delta; - if ( - 1 === t.length && - 'characterData' === t[0].type && - t[0].target.data.match(y) && - c.default.find(t[0].target) - ) { - var o = c.default.find(t[0].target), - i = (0, f.bubbleFormats)(o), - s = o.offset(this.scroll), - u = t[0].oldValue.replace( - l.default.CONTENTS, - '' - ), - d = new a.default().insert(u), - p = new a.default().insert(o.value()), - h = new a.default() - .retain(s) - .concat(d.diff(p, n)); - (e = h.reduce(function(e, t) { - return t.insert - ? e.insert(t.insert, i) - : e.push(t); - }, new a.default())), - (this.delta = r.compose(e)); - } else - (this.delta = this.getDelta()), - (e && - (0, g.default)(r.compose(e), this.delta)) || - (e = r.diff(this.delta, n)); - return e; - } - } - ]), - e - ); - })(); - function _(e, t) { - return Object.keys(t).reduce(function(n, r) { - return ( - null == e[r] || - (t[r] === e[r] - ? (n[r] = t[r]) - : Array.isArray(t[r]) - ? t[r].indexOf(e[r]) < 0 && - (n[r] = t[r].concat([e[r]])) - : (n[r] = [t[r], e[r]])), - n - ); - }, {}); - } - t.default = v; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = t.Range = void 0); - var r = function(e, t) { - if (Array.isArray(e)) return e; - if (Symbol.iterator in Object(e)) - return (function(e, t) { - var n = [], - r = !0, - o = !1, - i = void 0; - try { - for ( - var a, s = e[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !t || n.length !== t); - r = !0 - ); - } catch (e) { - (o = !0), (i = e); - } finally { - try { - !r && s.return && s.return(); - } finally { - if (o) throw i; - } - } - return n; - })(e, t); - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance' - ); - }, - o = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - i = u(n(0)), - a = u(n(21)), - s = u(n(11)), - c = u(n(8)); - function u(e) { - return e && e.__esModule ? e : { default: e }; - } - function l(e) { - if (Array.isArray(e)) { - for (var t = 0, n = Array(e.length); t < e.length; t++) - n[t] = e[t]; - return n; - } - return Array.from(e); - } - function f(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - var d = (0, u(n(10)).default)('quill:selection'), - p = function e(t) { - var n = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : 0; - f(this, e), (this.index = t), (this.length = n); - }, - h = (function() { - function e(t, n) { - var r = this; - f(this, e), - (this.emitter = n), - (this.scroll = t), - (this.composing = !1), - (this.mouseDown = !1), - (this.root = this.scroll.domNode), - (this.cursor = i.default.create('cursor', this)), - (this.lastRange = this.savedRange = new p(0, 0)), - this.handleComposition(), - this.handleDragging(), - this.emitter.listenDOM( - 'selectionchange', - document, - function() { - r.mouseDown || - setTimeout( - r.update.bind(r, c.default.sources.USER), - 1 - ); - } - ), - this.emitter.on( - c.default.events.EDITOR_CHANGE, - function(e, t) { - e === c.default.events.TEXT_CHANGE && - t.length() > 0 && - r.update(c.default.sources.SILENT); - } - ), - this.emitter.on( - c.default.events.SCROLL_BEFORE_UPDATE, - function() { - if (r.hasFocus()) { - var e = r.getNativeRange(); - null != e && - e.start.node !== r.cursor.textNode && - r.emitter.once( - c.default.events.SCROLL_UPDATE, - function() { - try { - r.setNativeRange( - e.start.node, - e.start.offset, - e.end.node, - e.end.offset - ); - } catch (e) {} - } - ); - } - } - ), - this.emitter.on( - c.default.events.SCROLL_OPTIMIZE, - function(e, t) { - if (t.range) { - var n = t.range, - o = n.startNode, - i = n.startOffset, - a = n.endNode, - s = n.endOffset; - r.setNativeRange(o, i, a, s); - } - } - ), - this.update(c.default.sources.SILENT); - } - return ( - o(e, [ - { - key: 'handleComposition', - value: function() { - var e = this; - this.root.addEventListener( - 'compositionstart', - function() { - e.composing = !0; - } - ), - this.root.addEventListener( - 'compositionend', - function() { - if (((e.composing = !1), e.cursor.parent)) { - var t = e.cursor.restore(); - if (!t) return; - setTimeout(function() { - e.setNativeRange( - t.startNode, - t.startOffset, - t.endNode, - t.endOffset - ); - }, 1); - } - } - ); - } - }, - { - key: 'handleDragging', - value: function() { - var e = this; - this.emitter.listenDOM( - 'mousedown', - document.body, - function() { - e.mouseDown = !0; - } - ), - this.emitter.listenDOM( - 'mouseup', - document.body, - function() { - (e.mouseDown = !1), - e.update(c.default.sources.USER); - } - ); - } - }, - { - key: 'focus', - value: function() { - this.hasFocus() || - (this.root.focus(), - this.setRange(this.savedRange)); - } - }, - { - key: 'format', - value: function(e, t) { - if ( - null == this.scroll.whitelist || - this.scroll.whitelist[e] - ) { - this.scroll.update(); - var n = this.getNativeRange(); - if ( - null != n && - n.native.collapsed && - !i.default.query(e, i.default.Scope.BLOCK) - ) { - if (n.start.node !== this.cursor.textNode) { - var r = i.default.find(n.start.node, !1); - if (null == r) return; - if (r instanceof i.default.Leaf) { - var o = r.split(n.start.offset); - r.parent.insertBefore(this.cursor, o); - } else - r.insertBefore(this.cursor, n.start.node); - this.cursor.attach(); - } - this.cursor.format(e, t), - this.scroll.optimize(), - this.setNativeRange( - this.cursor.textNode, - this.cursor.textNode.data.length - ), - this.update(); - } - } - } - }, - { - key: 'getBounds', - value: function(e) { - var t = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : 0, - n = this.scroll.length(); - (e = Math.min(e, n - 1)), - (t = Math.min(e + t, n - 1) - e); - var o = void 0, - i = this.scroll.leaf(e), - a = r(i, 2), - s = a[0], - c = a[1]; - if (null == s) return null; - var u = s.position(c, !0), - l = r(u, 2); - (o = l[0]), (c = l[1]); - var f = document.createRange(); - if (t > 0) { - f.setStart(o, c); - var d = this.scroll.leaf(e + t), - p = r(d, 2); - if (((s = p[0]), (c = p[1]), null == s)) - return null; - var h = s.position(c, !0), - g = r(h, 2); - return ( - (o = g[0]), - (c = g[1]), - f.setEnd(o, c), - f.getBoundingClientRect() - ); - } - var m = 'left', - b = void 0; - return ( - o instanceof Text - ? (c < o.data.length - ? (f.setStart(o, c), f.setEnd(o, c + 1)) - : (f.setStart(o, c - 1), - f.setEnd(o, c), - (m = 'right')), - (b = f.getBoundingClientRect())) - : ((b = s.domNode.getBoundingClientRect()), - c > 0 && (m = 'right')), - { - bottom: b.top + b.height, - height: b.height, - left: b[m], - right: b[m], - top: b.top, - width: 0 - } - ); - } - }, - { - key: 'getNativeRange', - value: function() { - var e = document.getSelection(); - if (null == e || e.rangeCount <= 0) return null; - var t = e.getRangeAt(0); - if (null == t) return null; - var n = this.normalizeNative(t); - return d.info('getNativeRange', n), n; - } - }, - { - key: 'getRange', - value: function() { - var e = this.getNativeRange(); - return null == e - ? [null, null] - : [this.normalizedToRange(e), e]; - } - }, - { - key: 'hasFocus', - value: function() { - return document.activeElement === this.root; - } - }, - { - key: 'normalizedToRange', - value: function(e) { - var t = this, - n = [[e.start.node, e.start.offset]]; - e.native.collapsed || - n.push([e.end.node, e.end.offset]); - var o = n.map(function(e) { - var n = r(e, 2), - o = n[0], - a = n[1], - s = i.default.find(o, !0), - c = s.offset(t.scroll); - return 0 === a - ? c - : s instanceof i.default.Container - ? c + s.length() - : c + s.index(o, a); - }), - a = Math.min( - Math.max.apply(Math, l(o)), - this.scroll.length() - 1 - ), - s = Math.min.apply(Math, [a].concat(l(o))); - return new p(s, a - s); - } - }, - { - key: 'normalizeNative', - value: function(e) { - if ( - !g(this.root, e.startContainer) || - (!e.collapsed && !g(this.root, e.endContainer)) - ) - return null; - var t = { - start: { - node: e.startContainer, - offset: e.startOffset - }, - end: { - node: e.endContainer, - offset: e.endOffset - }, - native: e - }; - return ( - [t.start, t.end].forEach(function(e) { - for ( - var t = e.node, n = e.offset; - !(t instanceof Text) && - t.childNodes.length > 0; - - ) - if (t.childNodes.length > n) - (t = t.childNodes[n]), (n = 0); - else { - if (t.childNodes.length !== n) break; - n = - (t = t.lastChild) instanceof Text - ? t.data.length - : t.childNodes.length + 1; - } - (e.node = t), (e.offset = n); - }), - t - ); - } - }, - { - key: 'rangeToNative', - value: function(e) { - var t = this, - n = e.collapsed - ? [e.index] - : [e.index, e.index + e.length], - o = [], - i = this.scroll.length(); - return ( - n.forEach(function(e, n) { - e = Math.min(i - 1, e); - var a, - s = t.scroll.leaf(e), - c = r(s, 2), - u = c[0], - l = c[1], - f = u.position(l, 0 !== n), - d = r(f, 2); - (a = d[0]), (l = d[1]), o.push(a, l); - }), - o.length < 2 && (o = o.concat(o)), - o - ); - } - }, - { - key: 'scrollIntoView', - value: function(e) { - var t = this.lastRange; - if (null != t) { - var n = this.getBounds(t.index, t.length); - if (null != n) { - var o = this.scroll.length() - 1, - i = this.scroll.line(Math.min(t.index, o)), - a = r(i, 1)[0], - s = a; - if (t.length > 0) { - var c = this.scroll.line( - Math.min(t.index + t.length, o) - ); - s = r(c, 1)[0]; - } - if (null != a && null != s) { - var u = e.getBoundingClientRect(); - n.top < u.top - ? (e.scrollTop -= u.top - n.top) - : n.bottom > u.bottom && - (e.scrollTop += n.bottom - u.bottom); - } - } - } - } - }, - { - key: 'setNativeRange', - value: function(e, t) { - var n = - arguments.length > 2 && void 0 !== arguments[2] - ? arguments[2] - : e, - r = - arguments.length > 3 && void 0 !== arguments[3] - ? arguments[3] - : t, - o = - arguments.length > 4 && - void 0 !== arguments[4] && - arguments[4]; - if ( - (d.info('setNativeRange', e, t, n, r), - null == e || - (null != this.root.parentNode && - null != e.parentNode && - null != n.parentNode)) - ) { - var i = document.getSelection(); - if (null != i) - if (null != e) { - this.hasFocus() || this.root.focus(); - var a = (this.getNativeRange() || {}).native; - if ( - null == a || - o || - e !== a.startContainer || - t !== a.startOffset || - n !== a.endContainer || - r !== a.endOffset - ) { - 'BR' == e.tagName && - ((t = [].indexOf.call( - e.parentNode.childNodes, - e - )), - (e = e.parentNode)), - 'BR' == n.tagName && - ((r = [].indexOf.call( - n.parentNode.childNodes, - n - )), - (n = n.parentNode)); - var s = document.createRange(); - s.setStart(e, t), - s.setEnd(n, r), - i.removeAllRanges(), - i.addRange(s); - } - } else - i.removeAllRanges(), - this.root.blur(), - document.body.focus(); - } - } - }, - { - key: 'setRange', - value: function(e) { - var t = - arguments.length > 1 && - void 0 !== arguments[1] && - arguments[1], - n = - arguments.length > 2 && void 0 !== arguments[2] - ? arguments[2] - : c.default.sources.API; - if ( - ('string' == typeof t && ((n = t), (t = !1)), - d.info('setRange', e), - null != e) - ) { - var r = this.rangeToNative(e); - this.setNativeRange.apply(this, l(r).concat([t])); - } else this.setNativeRange(null); - this.update(n); - } - }, - { - key: 'update', - value: function() { - var e = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : c.default.sources.USER, - t = this.lastRange, - n = this.getRange(), - o = r(n, 2), - i = o[0], - u = o[1]; - if ( - ((this.lastRange = i), - null != this.lastRange && - (this.savedRange = this.lastRange), - !(0, s.default)(t, this.lastRange)) - ) { - var l; - !this.composing && - null != u && - u.native.collapsed && - u.start.node !== this.cursor.textNode && - this.cursor.restore(); - var f, - d = [ - c.default.events.SELECTION_CHANGE, - (0, a.default)(this.lastRange), - (0, a.default)(t), - e - ]; - (l = this.emitter).emit.apply( - l, - [c.default.events.EDITOR_CHANGE].concat(d) - ), - e !== c.default.sources.SILENT && - (f = this.emitter).emit.apply(f, d); - } - } - } - ]), - e - ); - })(); - function g(e, t) { - try { - t.parentNode; - } catch (e) { - return !1; - } - return t instanceof Text && (t = t.parentNode), e.contains(t); - } - (t.Range = p), (t.default = h); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r, - o = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - i = n(0); - function a(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function s(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } - var c = (function(e) { - function t() { - return ( - a(this, t), - s( - this, - (t.__proto__ || Object.getPrototypeOf(t)).apply( - this, - arguments - ) - ) - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(t, e), - o( - t, - [ - { - key: 'insertInto', - value: function(e, n) { - 0 === e.children.length - ? (function e(t, n, r) { - null === t && (t = Function.prototype); - var o = Object.getOwnPropertyDescriptor(t, n); - if (void 0 === o) { - var i = Object.getPrototypeOf(t); - return null === i ? void 0 : e(i, n, r); - } - if ('value' in o) return o.value; - var a = o.get; - return void 0 !== a ? a.call(r) : void 0; - })( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'insertInto', - this - ).call(this, e, n) - : this.remove(); - } - }, - { - key: 'length', - value: function() { - return 0; - } - }, - { - key: 'value', - value: function() { - return ''; - } - } - ], - [{ key: 'value', value: function() {} }] - ), - t - ); - })( - ((r = i) && r.__esModule ? r : { default: r }).default.Embed - ); - (c.blotName = 'break'), (c.tagName = 'BR'), (t.default = c); - }, - function(e, t, n) { - 'use strict'; - var r, - o = - (this && this.__extends) || - ((r = - Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && - function(e, t) { - e.__proto__ = t; - }) || - function(e, t) { - for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); - }), - function(e, t) { - function n() { - this.constructor = e; - } - r(e, t), - (e.prototype = - null === t - ? Object.create(t) - : ((n.prototype = t.prototype), new n())); - }); - Object.defineProperty(t, '__esModule', { value: !0 }); - var i = n(44), - a = n(30), - s = n(1), - c = (function(e) { - function t(t) { - var n = e.call(this, t) || this; - return n.build(), n; - } - return ( - o(t, e), - (t.prototype.appendChild = function(e) { - this.insertBefore(e); - }), - (t.prototype.attach = function() { - e.prototype.attach.call(this), - this.children.forEach(function(e) { - e.attach(); - }); - }), - (t.prototype.build = function() { - var e = this; - (this.children = new i.default()), - [].slice - .call(this.domNode.childNodes) - .reverse() - .forEach(function(t) { - try { - var n = u(t); - e.insertBefore(n, e.children.head || void 0); - } catch (e) { - if (e instanceof s.ParchmentError) return; - throw e; - } - }); - }), - (t.prototype.deleteAt = function(e, t) { - if (0 === e && t === this.length()) - return this.remove(); - this.children.forEachAt(e, t, function(e, t, n) { - e.deleteAt(t, n); - }); - }), - (t.prototype.descendant = function(e, n) { - var r = this.children.find(n), - o = r[0], - i = r[1]; - return (null == e.blotName && e(o)) || - (null != e.blotName && o instanceof e) - ? [o, i] - : o instanceof t - ? o.descendant(e, i) - : [null, -1]; - }), - (t.prototype.descendants = function(e, n, r) { - void 0 === n && (n = 0), - void 0 === r && (r = Number.MAX_VALUE); - var o = [], - i = r; - return ( - this.children.forEachAt(n, r, function(n, r, a) { - ((null == e.blotName && e(n)) || - (null != e.blotName && n instanceof e)) && - o.push(n), - n instanceof t && - (o = o.concat(n.descendants(e, r, i))), - (i -= a); - }), - o - ); - }), - (t.prototype.detach = function() { - this.children.forEach(function(e) { - e.detach(); - }), - e.prototype.detach.call(this); - }), - (t.prototype.formatAt = function(e, t, n, r) { - this.children.forEachAt(e, t, function(e, t, o) { - e.formatAt(t, o, n, r); - }); - }), - (t.prototype.insertAt = function(e, t, n) { - var r = this.children.find(e), - o = r[0], - i = r[1]; - if (o) o.insertAt(i, t, n); - else { - var a = - null == n ? s.create('text', t) : s.create(t, n); - this.appendChild(a); - } - }), - (t.prototype.insertBefore = function(e, t) { - if ( - null != this.statics.allowedChildren && - !this.statics.allowedChildren.some(function(t) { - return e instanceof t; - }) - ) - throw new s.ParchmentError( - 'Cannot insert ' + - e.statics.blotName + - ' into ' + - this.statics.blotName - ); - e.insertInto(this, t); - }), - (t.prototype.length = function() { - return this.children.reduce(function(e, t) { - return e + t.length(); - }, 0); - }), - (t.prototype.moveChildren = function(e, t) { - this.children.forEach(function(n) { - e.insertBefore(n, t); - }); - }), - (t.prototype.optimize = function(t) { - if ( - (e.prototype.optimize.call(this, t), - 0 === this.children.length) - ) - if (null != this.statics.defaultChild) { - var n = s.create(this.statics.defaultChild); - this.appendChild(n), n.optimize(t); - } else this.remove(); - }), - (t.prototype.path = function(e, n) { - void 0 === n && (n = !1); - var r = this.children.find(e, n), - o = r[0], - i = r[1], - a = [[this, e]]; - return o instanceof t - ? a.concat(o.path(i, n)) - : (null != o && a.push([o, i]), a); - }), - (t.prototype.removeChild = function(e) { - this.children.remove(e); - }), - (t.prototype.replace = function(n) { - n instanceof t && n.moveChildren(this), - e.prototype.replace.call(this, n); - }), - (t.prototype.split = function(e, t) { - if ((void 0 === t && (t = !1), !t)) { - if (0 === e) return this; - if (e === this.length()) return this.next; - } - var n = this.clone(); - return ( - this.parent.insertBefore(n, this.next), - this.children.forEachAt(e, this.length(), function( - e, - r, - o - ) { - (e = e.split(r, t)), n.appendChild(e); - }), - n - ); - }), - (t.prototype.unwrap = function() { - this.moveChildren(this.parent, this.next), - this.remove(); - }), - (t.prototype.update = function(e, t) { - var n = this, - r = [], - o = []; - e.forEach(function(e) { - e.target === n.domNode && - 'childList' === e.type && - (r.push.apply(r, e.addedNodes), - o.push.apply(o, e.removedNodes)); - }), - o.forEach(function(e) { - if ( - !( - null != e.parentNode && - 'IFRAME' !== e.tagName && - document.body.compareDocumentPosition(e) & - Node.DOCUMENT_POSITION_CONTAINED_BY - ) - ) { - var t = s.find(e); - null != t && - ((null != t.domNode.parentNode && - t.domNode.parentNode !== n.domNode) || - t.detach()); - } - }), - r - .filter(function(e) { - return e.parentNode == n.domNode; - }) - .sort(function(e, t) { - return e === t - ? 0 - : e.compareDocumentPosition(t) & - Node.DOCUMENT_POSITION_FOLLOWING - ? 1 - : -1; - }) - .forEach(function(e) { - var t = null; - null != e.nextSibling && - (t = s.find(e.nextSibling)); - var r = u(e); - (r.next == t && null != r.next) || - (null != r.parent && r.parent.removeChild(n), - n.insertBefore(r, t || void 0)); - }); - }), - t - ); - })(a.default); - function u(e) { - var t = s.find(e); - if (null == t) - try { - t = s.create(e); - } catch (n) { - (t = s.create(s.Scope.INLINE)), - [].slice.call(e.childNodes).forEach(function(e) { - t.domNode.appendChild(e); - }), - e.parentNode && e.parentNode.replaceChild(t.domNode, e), - t.attach(); - } - return t; - } - t.default = c; - }, - function(e, t, n) { - 'use strict'; - var r, - o = - (this && this.__extends) || - ((r = - Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && - function(e, t) { - e.__proto__ = t; - }) || - function(e, t) { - for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); - }), - function(e, t) { - function n() { - this.constructor = e; - } - r(e, t), - (e.prototype = - null === t - ? Object.create(t) - : ((n.prototype = t.prototype), new n())); - }); - Object.defineProperty(t, '__esModule', { value: !0 }); - var i = n(12), - a = n(31), - s = n(17), - c = n(1), - u = (function(e) { - function t(t) { - var n = e.call(this, t) || this; - return (n.attributes = new a.default(n.domNode)), n; - } - return ( - o(t, e), - (t.formats = function(e) { - return ( - 'string' == typeof this.tagName || - (Array.isArray(this.tagName) - ? e.tagName.toLowerCase() - : void 0) - ); - }), - (t.prototype.format = function(e, t) { - var n = c.query(e); - n instanceof i.default - ? this.attributes.attribute(n, t) - : t && - (null == n || - (e === this.statics.blotName && - this.formats()[e] === t) || - this.replaceWith(e, t)); - }), - (t.prototype.formats = function() { - var e = this.attributes.values(), - t = this.statics.formats(this.domNode); - return null != t && (e[this.statics.blotName] = t), e; - }), - (t.prototype.replaceWith = function(t, n) { - var r = e.prototype.replaceWith.call(this, t, n); - return this.attributes.copy(r), r; - }), - (t.prototype.update = function(t, n) { - var r = this; - e.prototype.update.call(this, t, n), - t.some(function(e) { - return ( - e.target === r.domNode && 'attributes' === e.type - ); - }) && this.attributes.build(); - }), - (t.prototype.wrap = function(n, r) { - var o = e.prototype.wrap.call(this, n, r); - return ( - o instanceof t && - o.statics.scope === this.statics.scope && - this.attributes.move(o), - o - ); - }), - t - ); - })(s.default); - t.default = u; - }, - function(e, t, n) { - 'use strict'; - var r, - o = - (this && this.__extends) || - ((r = - Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && - function(e, t) { - e.__proto__ = t; - }) || - function(e, t) { - for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); - }), - function(e, t) { - function n() { - this.constructor = e; - } - r(e, t), - (e.prototype = - null === t - ? Object.create(t) - : ((n.prototype = t.prototype), new n())); - }); - Object.defineProperty(t, '__esModule', { value: !0 }); - var i = n(30), - a = n(1), - s = (function(e) { - function t() { - return (null !== e && e.apply(this, arguments)) || this; - } - return ( - o(t, e), - (t.value = function(e) { - return !0; - }), - (t.prototype.index = function(e, t) { - return this.domNode === e || - this.domNode.compareDocumentPosition(e) & - Node.DOCUMENT_POSITION_CONTAINED_BY - ? Math.min(t, 1) - : -1; - }), - (t.prototype.position = function(e, t) { - var n = [].indexOf.call( - this.parent.domNode.childNodes, - this.domNode - ); - return e > 0 && (n += 1), [this.parent.domNode, n]; - }), - (t.prototype.value = function() { - var e; - return ( - ((e = {})[this.statics.blotName] = - this.statics.value(this.domNode) || !0), - e - ); - }), - (t.scope = a.Scope.INLINE_BLOT), - t - ); - })(i.default); - t.default = s; - }, - function(e, t, n) { - var r = n(11), - o = n(3), - i = { - attributes: { - compose: function(e, t, n) { - 'object' != typeof e && (e = {}), - 'object' != typeof t && (t = {}); - var r = o(!0, {}, t); - for (var i in (n || - (r = Object.keys(r).reduce(function(e, t) { - return null != r[t] && (e[t] = r[t]), e; - }, {})), - e)) - void 0 !== e[i] && void 0 === t[i] && (r[i] = e[i]); - return Object.keys(r).length > 0 ? r : void 0; - }, - diff: function(e, t) { - 'object' != typeof e && (e = {}), - 'object' != typeof t && (t = {}); - var n = Object.keys(e) - .concat(Object.keys(t)) - .reduce(function(n, o) { - return ( - r(e[o], t[o]) || - (n[o] = void 0 === t[o] ? null : t[o]), - n - ); - }, {}); - return Object.keys(n).length > 0 ? n : void 0; - }, - transform: function(e, t, n) { - if ('object' != typeof e) return t; - if ('object' == typeof t) { - if (!n) return t; - var r = Object.keys(t).reduce(function(n, r) { - return void 0 === e[r] && (n[r] = t[r]), n; - }, {}); - return Object.keys(r).length > 0 ? r : void 0; - } - } - }, - iterator: function(e) { - return new a(e); - }, - length: function(e) { - return 'number' == typeof e.delete - ? e.delete - : 'number' == typeof e.retain - ? e.retain - : 'string' == typeof e.insert - ? e.insert.length - : 1; - } - }; - function a(e) { - (this.ops = e), (this.index = 0), (this.offset = 0); - } - (a.prototype.hasNext = function() { - return this.peekLength() < 1 / 0; - }), - (a.prototype.next = function(e) { - e || (e = 1 / 0); - var t = this.ops[this.index]; - if (t) { - var n = this.offset, - r = i.length(t); - if ( - (e >= r - n - ? ((e = r - n), (this.index += 1), (this.offset = 0)) - : (this.offset += e), - 'number' == typeof t.delete) - ) - return { delete: e }; - var o = {}; - return ( - t.attributes && (o.attributes = t.attributes), - 'number' == typeof t.retain - ? (o.retain = e) - : 'string' == typeof t.insert - ? (o.insert = t.insert.substr(n, e)) - : (o.insert = t.insert), - o - ); - } - return { retain: 1 / 0 }; - }), - (a.prototype.peek = function() { - return this.ops[this.index]; - }), - (a.prototype.peekLength = function() { - return this.ops[this.index] - ? i.length(this.ops[this.index]) - this.offset - : 1 / 0; - }), - (a.prototype.peekType = function() { - return this.ops[this.index] - ? 'number' == typeof this.ops[this.index].delete - ? 'delete' - : 'number' == typeof this.ops[this.index].retain - ? 'retain' - : 'insert' - : 'retain'; - }), - (a.prototype.rest = function() { - if (this.hasNext()) { - if (0 === this.offset) return this.ops.slice(this.index); - var e = this.offset, - t = this.index, - n = this.next(), - r = this.ops.slice(this.index); - return (this.offset = e), (this.index = t), [n].concat(r); - } - return []; - }), - (e.exports = i); - }, - function(e, n) { - var r = (function() { - 'use strict'; - function e(e, t) { - return null != t && e instanceof t; - } - var n, r, o; - try { - n = Map; - } catch (e) { - n = function() {}; - } - try { - r = Set; - } catch (e) { - r = function() {}; - } - try { - o = Promise; - } catch (e) { - o = function() {}; - } - function i(a, c, u, l, f) { - 'object' == typeof c && - ((u = c.depth), - (l = c.prototype), - (f = c.includeNonEnumerable), - (c = c.circular)); - var d = [], - p = [], - h = void 0 !== t; - return ( - void 0 === c && (c = !0), - void 0 === u && (u = 1 / 0), - (function a(u, g) { - if (null === u) return null; - if (0 === g) return u; - var m, b; - if ('object' != typeof u) return u; - if (e(u, n)) m = new n(); - else if (e(u, r)) m = new r(); - else if (e(u, o)) - m = new o(function(e, t) { - u.then( - function(t) { - e(a(t, g - 1)); - }, - function(e) { - t(a(e, g - 1)); - } - ); - }); - else if (i.__isArray(u)) m = []; - else if (i.__isRegExp(u)) - (m = new RegExp(u.source, s(u))), - u.lastIndex && (m.lastIndex = u.lastIndex); - else if (i.__isDate(u)) m = new Date(u.getTime()); - else { - if (h && t.isBuffer(u)) - return ( - (m = t.allocUnsafe - ? t.allocUnsafe(u.length) - : new t(u.length)), - u.copy(m), - m - ); - e(u, Error) - ? (m = Object.create(u)) - : void 0 === l - ? ((b = Object.getPrototypeOf(u)), - (m = Object.create(b))) - : ((m = Object.create(l)), (b = l)); - } - if (c) { - var y = d.indexOf(u); - if (-1 != y) return p[y]; - d.push(u), p.push(m); - } - for (var v in (e(u, n) && - u.forEach(function(e, t) { - var n = a(t, g - 1), - r = a(e, g - 1); - m.set(n, r); - }), - e(u, r) && - u.forEach(function(e) { - var t = a(e, g - 1); - m.add(t); - }), - u)) { - var _; - b && (_ = Object.getOwnPropertyDescriptor(b, v)), - (_ && null == _.set) || (m[v] = a(u[v], g - 1)); - } - if (Object.getOwnPropertySymbols) { - var x = Object.getOwnPropertySymbols(u); - for (v = 0; v < x.length; v++) { - var w = x[v]; - (!(k = Object.getOwnPropertyDescriptor(u, w)) || - k.enumerable || - f) && - ((m[w] = a(u[w], g - 1)), - k.enumerable || - Object.defineProperty(m, w, { - enumerable: !1 - })); - } - } - if (f) { - var M = Object.getOwnPropertyNames(u); - for (v = 0; v < M.length; v++) { - var k, - S = M[v]; - ((k = Object.getOwnPropertyDescriptor(u, S)) && - k.enumerable) || - ((m[S] = a(u[S], g - 1)), - Object.defineProperty(m, S, { enumerable: !1 })); - } - } - return m; - })(a, u) - ); - } - function a(e) { - return Object.prototype.toString.call(e); - } - function s(e) { - var t = ''; - return ( - e.global && (t += 'g'), - e.ignoreCase && (t += 'i'), - e.multiline && (t += 'm'), - t - ); - } - return ( - (i.clonePrototype = function(e) { - if (null === e) return null; - var t = function() {}; - return (t.prototype = e), new t(); - }), - (i.__objToStr = a), - (i.__isDate = function(e) { - return 'object' == typeof e && '[object Date]' === a(e); - }), - (i.__isArray = function(e) { - return 'object' == typeof e && '[object Array]' === a(e); - }), - (i.__isRegExp = function(e) { - return 'object' == typeof e && '[object RegExp]' === a(e); - }), - (i.__getRegExpFlags = s), - i - ); - })(); - 'object' == typeof e && e.exports && (e.exports = r); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r = function(e, t) { - if (Array.isArray(e)) return e; - if (Symbol.iterator in Object(e)) - return (function(e, t) { - var n = [], - r = !0, - o = !1, - i = void 0; - try { - for ( - var a, s = e[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !t || n.length !== t); - r = !0 - ); - } catch (e) { - (o = !0), (i = e); - } finally { - try { - !r && s.return && s.return(); - } finally { - if (o) throw i; - } - } - return n; - })(e, t); - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance' - ); - }, - o = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - i = function e(t, n, r) { - null === t && (t = Function.prototype); - var o = Object.getOwnPropertyDescriptor(t, n); - if (void 0 === o) { - var i = Object.getPrototypeOf(t); - return null === i ? void 0 : e(i, n, r); - } - if ('value' in o) return o.value; - var a = o.get; - return void 0 !== a ? a.call(r) : void 0; - }, - a = p(n(0)), - s = p(n(8)), - c = n(4), - u = p(c), - l = p(n(16)), - f = p(n(13)), - d = p(n(25)); - function p(e) { - return e && e.__esModule ? e : { default: e }; - } - function h(e) { - return e instanceof u.default || e instanceof c.BlockEmbed; - } - var g = (function(e) { - function t(e, n) { - !(function(e, t) { - if (!(e instanceof t)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, t); - var r = (function(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || - ('object' != typeof t && 'function' != typeof t) - ? e - : t; - })( - this, - (t.__proto__ || Object.getPrototypeOf(t)).call(this, e) - ); - return ( - (r.emitter = n.emitter), - Array.isArray(n.whitelist) && - (r.whitelist = n.whitelist.reduce(function(e, t) { - return (e[t] = !0), e; - }, {})), - r.domNode.addEventListener( - 'DOMNodeInserted', - function() {} - ), - r.optimize(), - r.enable(), - r - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(t, e), - o(t, [ - { - key: 'batchStart', - value: function() { - this.batch = !0; - } - }, - { - key: 'batchEnd', - value: function() { - (this.batch = !1), this.optimize(); - } - }, - { - key: 'deleteAt', - value: function(e, n) { - var o = this.line(e), - a = r(o, 2), - s = a[0], - u = a[1], - d = this.line(e + n), - p = r(d, 1)[0]; - if ( - (i( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'deleteAt', - this - ).call(this, e, n), - null != p && s !== p && u > 0) - ) { - if ( - s instanceof c.BlockEmbed || - p instanceof c.BlockEmbed - ) - return void this.optimize(); - if (s instanceof f.default) { - var h = s.newlineIndex(s.length(), !0); - if (h > -1 && (s = s.split(h + 1)) === p) - return void this.optimize(); - } else if (p instanceof f.default) { - var g = p.newlineIndex(0); - g > -1 && p.split(g + 1); - } - var m = - p.children.head instanceof l.default - ? null - : p.children.head; - s.moveChildren(p, m), s.remove(); - } - this.optimize(); - } - }, - { - key: 'enable', - value: function() { - var e = - !( - arguments.length > 0 && void 0 !== arguments[0] - ) || arguments[0]; - this.domNode.setAttribute('contenteditable', e); - } - }, - { - key: 'formatAt', - value: function(e, n, r, o) { - (null == this.whitelist || this.whitelist[r]) && - (i( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'formatAt', - this - ).call(this, e, n, r, o), - this.optimize()); - } - }, - { - key: 'insertAt', - value: function(e, n, r) { - if ( - null == r || - null == this.whitelist || - this.whitelist[n] - ) { - if (e >= this.length()) - if ( - null == r || - null == - a.default.query(n, a.default.Scope.BLOCK) - ) { - var o = a.default.create( - this.statics.defaultChild - ); - this.appendChild(o), - null == r && - n.endsWith('\n') && - (n = n.slice(0, -1)), - o.insertAt(0, n, r); - } else { - var s = a.default.create(n, r); - this.appendChild(s); - } - else - i( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'insertAt', - this - ).call(this, e, n, r); - this.optimize(); - } - } - }, - { - key: 'insertBefore', - value: function(e, n) { - if (e.statics.scope === a.default.Scope.INLINE_BLOT) { - var r = a.default.create(this.statics.defaultChild); - r.appendChild(e), (e = r); - } - i( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'insertBefore', - this - ).call(this, e, n); - } - }, - { - key: 'leaf', - value: function(e) { - return this.path(e).pop() || [null, -1]; - } - }, - { - key: 'line', - value: function(e) { - return e === this.length() - ? this.line(e - 1) - : this.descendant(h, e); - } - }, - { - key: 'lines', - value: function() { - var e = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : 0, - t = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : Number.MAX_VALUE, - n = function e(t, n, r) { - var o = [], - i = r; - return ( - t.children.forEachAt(n, r, function(t, n, r) { - h(t) - ? o.push(t) - : t instanceof a.default.Container && - (o = o.concat(e(t, n, i))), - (i -= r); - }), - o - ); - }; - return n(this, e, t); - } - }, - { - key: 'optimize', - value: function() { - var e = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : [], - n = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : {}; - !0 !== this.batch && - (i( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'optimize', - this - ).call(this, e, n), - e.length > 0 && - this.emitter.emit( - s.default.events.SCROLL_OPTIMIZE, - e, - n - )); - } - }, - { - key: 'path', - value: function(e) { - return i( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'path', - this - ) - .call(this, e) - .slice(1); - } - }, - { - key: 'update', - value: function(e) { - if (!0 !== this.batch) { - var n = s.default.sources.USER; - 'string' == typeof e && (n = e), - Array.isArray(e) || - (e = this.observer.takeRecords()), - e.length > 0 && - this.emitter.emit( - s.default.events.SCROLL_BEFORE_UPDATE, - n, - e - ), - i( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'update', - this - ).call(this, e.concat([])), - e.length > 0 && - this.emitter.emit( - s.default.events.SCROLL_UPDATE, - n, - e - ); - } - } - } - ]), - t - ); - })(a.default.Scroll); - (g.blotName = 'scroll'), - (g.className = 'ql-editor'), - (g.tagName = 'DIV'), - (g.defaultChild = 'block'), - (g.allowedChildren = [u.default, c.BlockEmbed, d.default]), - (t.default = g); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.SHORTKEY = t.default = void 0); - var r = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(e) { - return typeof e; - } - : function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - }, - o = function(e, t) { - if (Array.isArray(e)) return e; - if (Symbol.iterator in Object(e)) - return (function(e, t) { - var n = [], - r = !0, - o = !1, - i = void 0; - try { - for ( - var a, s = e[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !t || n.length !== t); - r = !0 - ); - } catch (e) { - (o = !0), (i = e); - } finally { - try { - !r && s.return && s.return(); - } finally { - if (o) throw i; - } - } - return n; - })(e, t); - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance' - ); - }, - i = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - a = g(n(21)), - s = g(n(11)), - c = g(n(3)), - u = g(n(2)), - l = g(n(20)), - f = g(n(0)), - d = g(n(5)), - p = g(n(10)), - h = g(n(9)); - function g(e) { - return e && e.__esModule ? e : { default: e }; - } - function m(e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e - ); - } - var b = (0, p.default)('quill:keyboard'), - y = /Mac/i.test(navigator.platform) ? 'metaKey' : 'ctrlKey', - v = (function(e) { - function t(e, n) { - !(function(e, t) { - if (!(e instanceof t)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, t); - var r = (function(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || - ('object' != typeof t && 'function' != typeof t) - ? e - : t; - })( - this, - (t.__proto__ || Object.getPrototypeOf(t)).call( - this, - e, - n - ) - ); - return ( - (r.bindings = {}), - Object.keys(r.options.bindings).forEach(function(t) { - ('list autofill' !== t || - null == e.scroll.whitelist || - e.scroll.whitelist.list) && - r.options.bindings[t] && - r.addBinding(r.options.bindings[t]); - }), - r.addBinding({ key: t.keys.ENTER, shiftKey: null }, k), - r.addBinding( - { - key: t.keys.ENTER, - metaKey: null, - ctrlKey: null, - altKey: null - }, - function() {} - ), - /Firefox/i.test(navigator.userAgent) - ? (r.addBinding( - { key: t.keys.BACKSPACE }, - { collapsed: !0 }, - x - ), - r.addBinding( - { key: t.keys.DELETE }, - { collapsed: !0 }, - w - )) - : (r.addBinding( - { key: t.keys.BACKSPACE }, - { collapsed: !0, prefix: /^.?$/ }, - x - ), - r.addBinding( - { key: t.keys.DELETE }, - { collapsed: !0, suffix: /^.?$/ }, - w - )), - r.addBinding( - { key: t.keys.BACKSPACE }, - { collapsed: !1 }, - M - ), - r.addBinding( - { key: t.keys.DELETE }, - { collapsed: !1 }, - M - ), - r.addBinding( - { - key: t.keys.BACKSPACE, - altKey: null, - ctrlKey: null, - metaKey: null, - shiftKey: null - }, - { collapsed: !0, offset: 0 }, - x - ), - r.listen(), - r - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(t, e), - i(t, null, [ - { - key: 'match', - value: function(e, t) { - return ( - (t = O(t)), - ![ - 'altKey', - 'ctrlKey', - 'metaKey', - 'shiftKey' - ].some(function(n) { - return !!t[n] !== e[n] && null !== t[n]; - }) && t.key === (e.which || e.keyCode) - ); - } - } - ]), - i(t, [ - { - key: 'addBinding', - value: function(e) { - var t = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : {}, - n = - arguments.length > 2 && void 0 !== arguments[2] - ? arguments[2] - : {}, - r = O(e); - if (null == r || null == r.key) - return b.warn( - 'Attempted to add invalid keyboard binding', - r - ); - 'function' == typeof t && (t = { handler: t }), - 'function' == typeof n && (n = { handler: n }), - (r = (0, c.default)(r, t, n)), - (this.bindings[r.key] = - this.bindings[r.key] || []), - this.bindings[r.key].push(r); - } - }, - { - key: 'listen', - value: function() { - var e = this; - this.quill.root.addEventListener( - 'keydown', - function(n) { - if (!n.defaultPrevented) { - var i = n.which || n.keyCode, - a = (e.bindings[i] || []).filter(function( - e - ) { - return t.match(n, e); - }); - if (0 !== a.length) { - var c = e.quill.getSelection(); - if (null != c && e.quill.hasFocus()) { - var u = e.quill.getLine(c.index), - l = o(u, 2), - d = l[0], - p = l[1], - h = e.quill.getLeaf(c.index), - g = o(h, 2), - m = g[0], - b = g[1], - y = - 0 === c.length - ? [m, b] - : e.quill.getLeaf( - c.index + c.length - ), - v = o(y, 2), - _ = v[0], - x = v[1], - w = - m instanceof f.default.Text - ? m.value().slice(0, b) - : '', - M = - _ instanceof f.default.Text - ? _.value().slice(x) - : '', - k = { - collapsed: 0 === c.length, - empty: - 0 === c.length && d.length() <= 1, - format: e.quill.getFormat(c), - offset: p, - prefix: w, - suffix: M - }; - a.some(function(t) { - if ( - null != t.collapsed && - t.collapsed !== k.collapsed - ) - return !1; - if ( - null != t.empty && - t.empty !== k.empty - ) - return !1; - if ( - null != t.offset && - t.offset !== k.offset - ) - return !1; - if (Array.isArray(t.format)) { - if ( - t.format.every(function(e) { - return null == k.format[e]; - }) - ) - return !1; - } else if ( - 'object' === r(t.format) && - !Object.keys(t.format).every(function( - e - ) { - return !0 === t.format[e] - ? null != k.format[e] - : !1 === t.format[e] - ? null == k.format[e] - : (0, s.default)( - t.format[e], - k.format[e] - ); - }) - ) - return !1; - return !( - (null != t.prefix && - !t.prefix.test(k.prefix)) || - (null != t.suffix && - !t.suffix.test(k.suffix)) || - !0 === t.handler.call(e, c, k) - ); - }) && n.preventDefault(); - } - } - } - } - ); - } - } - ]), - t - ); - })(h.default); - function _(e, t) { - var n, - r = e === v.keys.LEFT ? 'prefix' : 'suffix'; - return ( - m((n = { key: e, shiftKey: t, altKey: null }), r, /^$/), - m(n, 'handler', function(n) { - var r = n.index; - e === v.keys.RIGHT && (r += n.length + 1); - var i = this.quill.getLeaf(r); - return !( - o(i, 1)[0] instanceof f.default.Embed && - (e === v.keys.LEFT - ? t - ? this.quill.setSelection( - n.index - 1, - n.length + 1, - d.default.sources.USER - ) - : this.quill.setSelection( - n.index - 1, - d.default.sources.USER - ) - : t - ? this.quill.setSelection( - n.index, - n.length + 1, - d.default.sources.USER - ) - : this.quill.setSelection( - n.index + n.length + 1, - d.default.sources.USER - ), - 1) - ); - }), - n - ); - } - function x(e, t) { - if (!(0 === e.index || this.quill.getLength() <= 1)) { - var n = this.quill.getLine(e.index), - r = o(n, 1)[0], - i = {}; - if (0 === t.offset) { - var a = this.quill.getLine(e.index - 1), - s = o(a, 1)[0]; - if (null != s && s.length() > 1) { - var c = r.formats(), - u = this.quill.getFormat(e.index - 1, 1); - i = l.default.attributes.diff(c, u) || {}; - } - } - var f = /[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix) - ? 2 - : 1; - this.quill.deleteText( - e.index - f, - f, - d.default.sources.USER - ), - Object.keys(i).length > 0 && - this.quill.formatLine( - e.index - f, - f, - i, - d.default.sources.USER - ), - this.quill.focus(); - } - } - function w(e, t) { - var n = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix) - ? 2 - : 1; - if (!(e.index >= this.quill.getLength() - n)) { - var r = {}, - i = 0, - a = this.quill.getLine(e.index), - s = o(a, 1)[0]; - if (t.offset >= s.length() - 1) { - var c = this.quill.getLine(e.index + 1), - u = o(c, 1)[0]; - if (u) { - var f = s.formats(), - p = this.quill.getFormat(e.index, 1); - (r = l.default.attributes.diff(f, p) || {}), - (i = u.length()); - } - } - this.quill.deleteText(e.index, n, d.default.sources.USER), - Object.keys(r).length > 0 && - this.quill.formatLine( - e.index + i - 1, - n, - r, - d.default.sources.USER - ); - } - } - function M(e) { - var t = this.quill.getLines(e), - n = {}; - if (t.length > 1) { - var r = t[0].formats(), - o = t[t.length - 1].formats(); - n = l.default.attributes.diff(o, r) || {}; - } - this.quill.deleteText(e, d.default.sources.USER), - Object.keys(n).length > 0 && - this.quill.formatLine( - e.index, - 1, - n, - d.default.sources.USER - ), - this.quill.setSelection(e.index, d.default.sources.SILENT), - this.quill.focus(); - } - function k(e, t) { - var n = this; - e.length > 0 && this.quill.scroll.deleteAt(e.index, e.length); - var r = Object.keys(t.format).reduce(function(e, n) { - return ( - f.default.query(n, f.default.Scope.BLOCK) && - !Array.isArray(t.format[n]) && - (e[n] = t.format[n]), - e - ); - }, {}); - this.quill.insertText( - e.index, - '\n', - r, - d.default.sources.USER - ), - this.quill.setSelection( - e.index + 1, - d.default.sources.SILENT - ), - this.quill.focus(), - Object.keys(t.format).forEach(function(e) { - null == r[e] && - (Array.isArray(t.format[e]) || - ('link' !== e && - n.quill.format( - e, - t.format[e], - d.default.sources.USER - ))); - }); - } - function S(e) { - return { - key: v.keys.TAB, - shiftKey: !e, - format: { 'code-block': !0 }, - handler: function(t) { - var n = f.default.query('code-block'), - r = t.index, - i = t.length, - a = this.quill.scroll.descendant(n, r), - s = o(a, 2), - c = s[0], - u = s[1]; - if (null != c) { - var l = this.quill.getIndex(c), - p = c.newlineIndex(u, !0) + 1, - h = c.newlineIndex(l + u + i), - g = c.domNode.textContent.slice(p, h).split('\n'); - (u = 0), - g.forEach(function(t, o) { - e - ? (c.insertAt(p + u, n.TAB), - (u += n.TAB.length), - 0 === o - ? (r += n.TAB.length) - : (i += n.TAB.length)) - : t.startsWith(n.TAB) && - (c.deleteAt(p + u, n.TAB.length), - (u -= n.TAB.length), - 0 === o - ? (r -= n.TAB.length) - : (i -= n.TAB.length)), - (u += t.length + 1); - }), - this.quill.update(d.default.sources.USER), - this.quill.setSelection( - r, - i, - d.default.sources.SILENT - ); - } - } - }; - } - function A(e) { - return { - key: e[0].toUpperCase(), - shortKey: !0, - handler: function(t, n) { - this.quill.format( - e, - !n.format[e], - d.default.sources.USER - ); - } - }; - } - function O(e) { - if ('string' == typeof e || 'number' == typeof e) - return O({ key: e }); - if ( - ('object' === (void 0 === e ? 'undefined' : r(e)) && - (e = (0, a.default)(e, !1)), - 'string' == typeof e.key) - ) - if (null != v.keys[e.key.toUpperCase()]) - e.key = v.keys[e.key.toUpperCase()]; - else { - if (1 !== e.key.length) return null; - e.key = e.key.toUpperCase().charCodeAt(0); - } - return ( - e.shortKey && ((e[y] = e.shortKey), delete e.shortKey), e - ); - } - (v.keys = { - BACKSPACE: 8, - TAB: 9, - ENTER: 13, - ESCAPE: 27, - LEFT: 37, - UP: 38, - RIGHT: 39, - DOWN: 40, - DELETE: 46 - }), - (v.DEFAULTS = { - bindings: { - bold: A('bold'), - italic: A('italic'), - underline: A('underline'), - indent: { - key: v.keys.TAB, - format: ['blockquote', 'indent', 'list'], - handler: function(e, t) { - if (t.collapsed && 0 !== t.offset) return !0; - this.quill.format( - 'indent', - '+1', - d.default.sources.USER - ); - } - }, - outdent: { - key: v.keys.TAB, - shiftKey: !0, - format: ['blockquote', 'indent', 'list'], - handler: function(e, t) { - if (t.collapsed && 0 !== t.offset) return !0; - this.quill.format( - 'indent', - '-1', - d.default.sources.USER - ); - } - }, - 'outdent backspace': { - key: v.keys.BACKSPACE, - collapsed: !0, - shiftKey: null, - metaKey: null, - ctrlKey: null, - altKey: null, - format: ['indent', 'list'], - offset: 0, - handler: function(e, t) { - null != t.format.indent - ? this.quill.format( - 'indent', - '-1', - d.default.sources.USER - ) - : null != t.format.list && - this.quill.format( - 'list', - !1, - d.default.sources.USER - ); - } - }, - 'indent code-block': S(!0), - 'outdent code-block': S(!1), - 'remove tab': { - key: v.keys.TAB, - shiftKey: !0, - collapsed: !0, - prefix: /\t$/, - handler: function(e) { - this.quill.deleteText( - e.index - 1, - 1, - d.default.sources.USER - ); - } - }, - tab: { - key: v.keys.TAB, - handler: function(e) { - this.quill.history.cutoff(); - var t = new u.default() - .retain(e.index) - .delete(e.length) - .insert('\t'); - this.quill.updateContents(t, d.default.sources.USER), - this.quill.history.cutoff(), - this.quill.setSelection( - e.index + 1, - d.default.sources.SILENT - ); - } - }, - 'list empty enter': { - key: v.keys.ENTER, - collapsed: !0, - format: ['list'], - empty: !0, - handler: function(e, t) { - this.quill.format('list', !1, d.default.sources.USER), - t.format.indent && - this.quill.format( - 'indent', - !1, - d.default.sources.USER - ); - } - }, - 'checklist enter': { - key: v.keys.ENTER, - collapsed: !0, - format: { list: 'checked' }, - handler: function(e) { - var t = this.quill.getLine(e.index), - n = o(t, 2), - r = n[0], - i = n[1], - a = (0, c.default)({}, r.formats(), { - list: 'checked' - }), - s = new u.default() - .retain(e.index) - .insert('\n', a) - .retain(r.length() - i - 1) - .retain(1, { list: 'unchecked' }); - this.quill.updateContents(s, d.default.sources.USER), - this.quill.setSelection( - e.index + 1, - d.default.sources.SILENT - ), - this.quill.scrollIntoView(); - } - }, - 'header enter': { - key: v.keys.ENTER, - collapsed: !0, - format: ['header'], - suffix: /^$/, - handler: function(e, t) { - var n = this.quill.getLine(e.index), - r = o(n, 2), - i = r[0], - a = r[1], - s = new u.default() - .retain(e.index) - .insert('\n', t.format) - .retain(i.length() - a - 1) - .retain(1, { header: null }); - this.quill.updateContents(s, d.default.sources.USER), - this.quill.setSelection( - e.index + 1, - d.default.sources.SILENT - ), - this.quill.scrollIntoView(); - } - }, - 'list autofill': { - key: ' ', - collapsed: !0, - format: { list: !1 }, - prefix: /^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/, - handler: function(e, t) { - var n = t.prefix.length, - r = this.quill.getLine(e.index), - i = o(r, 2), - a = i[0], - s = i[1]; - if (s > n) return !0; - var c = void 0; - switch (t.prefix.trim()) { - case '[]': - case '[ ]': - c = 'unchecked'; - break; - case '[x]': - c = 'checked'; - break; - case '-': - case '*': - c = 'bullet'; - break; - default: - c = 'ordered'; - } - this.quill.insertText( - e.index, - ' ', - d.default.sources.USER - ), - this.quill.history.cutoff(); - var l = new u.default() - .retain(e.index - s) - .delete(n + 1) - .retain(a.length() - 2 - s) - .retain(1, { list: c }); - this.quill.updateContents(l, d.default.sources.USER), - this.quill.history.cutoff(), - this.quill.setSelection( - e.index - n, - d.default.sources.SILENT - ); - } - }, - 'code exit': { - key: v.keys.ENTER, - collapsed: !0, - format: ['code-block'], - prefix: /\n\n$/, - suffix: /^\s+$/, - handler: function(e) { - var t = this.quill.getLine(e.index), - n = o(t, 2), - r = n[0], - i = n[1], - a = new u.default() - .retain(e.index + r.length() - i - 2) - .retain(1, { 'code-block': null }) - .delete(1); - this.quill.updateContents(a, d.default.sources.USER); - } - }, - 'embed left': _(v.keys.LEFT, !1), - 'embed left shift': _(v.keys.LEFT, !0), - 'embed right': _(v.keys.RIGHT, !1), - 'embed right shift': _(v.keys.RIGHT, !0) - } - }), - (t.default = v), - (t.SHORTKEY = y); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r = function(e, t) { - if (Array.isArray(e)) return e; - if (Symbol.iterator in Object(e)) - return (function(e, t) { - var n = [], - r = !0, - o = !1, - i = void 0; - try { - for ( - var a, s = e[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !t || n.length !== t); - r = !0 - ); - } catch (e) { - (o = !0), (i = e); - } finally { - try { - !r && s.return && s.return(); - } finally { - if (o) throw i; - } - } - return n; - })(e, t); - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance' - ); - }, - o = function e(t, n, r) { - null === t && (t = Function.prototype); - var o = Object.getOwnPropertyDescriptor(t, n); - if (void 0 === o) { - var i = Object.getPrototypeOf(t); - return null === i ? void 0 : e(i, n, r); - } - if ('value' in o) return o.value; - var a = o.get; - return void 0 !== a ? a.call(r) : void 0; - }, - i = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - a = c(n(0)), - s = c(n(7)); - function c(e) { - return e && e.__esModule ? e : { default: e }; - } - var u = (function(e) { - function t(e, n) { - !(function(e, t) { - if (!(e instanceof t)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, t); - var r = (function(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || - ('object' != typeof t && 'function' != typeof t) - ? e - : t; - })( - this, - (t.__proto__ || Object.getPrototypeOf(t)).call(this, e) - ); - return ( - (r.selection = n), - (r.textNode = document.createTextNode(t.CONTENTS)), - r.domNode.appendChild(r.textNode), - (r._length = 0), - r - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(t, e), - i(t, null, [{ key: 'value', value: function() {} }]), - i(t, [ - { - key: 'detach', - value: function() { - null != this.parent && this.parent.removeChild(this); - } - }, - { - key: 'format', - value: function(e, n) { - if (0 !== this._length) - return o( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'format', - this - ).call(this, e, n); - for ( - var r = this, i = 0; - null != r && - r.statics.scope !== a.default.Scope.BLOCK_BLOT; - - ) - (i += r.offset(r.parent)), (r = r.parent); - null != r && - ((this._length = t.CONTENTS.length), - r.optimize(), - r.formatAt(i, t.CONTENTS.length, e, n), - (this._length = 0)); - } - }, - { - key: 'index', - value: function(e, n) { - return e === this.textNode - ? 0 - : o( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'index', - this - ).call(this, e, n); - } - }, - { - key: 'length', - value: function() { - return this._length; - } - }, - { - key: 'position', - value: function() { - return [this.textNode, this.textNode.data.length]; - } - }, - { - key: 'remove', - value: function() { - o( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'remove', - this - ).call(this), - (this.parent = null); - } - }, - { - key: 'restore', - value: function() { - if ( - !this.selection.composing && - null != this.parent - ) { - var e = this.textNode, - n = this.selection.getNativeRange(), - o = void 0, - i = void 0, - c = void 0; - if ( - null != n && - n.start.node === e && - n.end.node === e - ) { - var u = [e, n.start.offset, n.end.offset]; - (o = u[0]), (i = u[1]), (c = u[2]); - } - for ( - ; - null != this.domNode.lastChild && - this.domNode.lastChild !== this.textNode; - - ) - this.domNode.parentNode.insertBefore( - this.domNode.lastChild, - this.domNode - ); - if (this.textNode.data !== t.CONTENTS) { - var l = this.textNode.data - .split(t.CONTENTS) - .join(''); - this.next instanceof s.default - ? ((o = this.next.domNode), - this.next.insertAt(0, l), - (this.textNode.data = t.CONTENTS)) - : ((this.textNode.data = l), - this.parent.insertBefore( - a.default.create(this.textNode), - this - ), - (this.textNode = document.createTextNode( - t.CONTENTS - )), - this.domNode.appendChild(this.textNode)); - } - if ((this.remove(), null != i)) { - var f = [i, c].map(function(e) { - return Math.max( - 0, - Math.min(o.data.length, e - 1) - ); - }), - d = r(f, 2); - return ( - (i = d[0]), - (c = d[1]), - { - startNode: o, - startOffset: i, - endNode: o, - endOffset: c - } - ); - } - } - } - }, - { - key: 'update', - value: function(e, t) { - var n = this; - if ( - e.some(function(e) { - return ( - 'characterData' === e.type && - e.target === n.textNode - ); - }) - ) { - var r = this.restore(); - r && (t.range = r); - } - } - }, - { - key: 'value', - value: function() { - return ''; - } - } - ]), - t - ); - })(a.default.Embed); - (u.blotName = 'cursor'), - (u.className = 'ql-cursor'), - (u.tagName = 'span'), - (u.CONTENTS = '\ufeff'), - (t.default = u); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r = a(n(0)), - o = n(4), - i = a(o); - function a(e) { - return e && e.__esModule ? e : { default: e }; - } - function s(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function c(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } - var u = (function(e) { - function t() { - return ( - s(this, t), - c( - this, - (t.__proto__ || Object.getPrototypeOf(t)).apply( - this, - arguments - ) - ) - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(t, e), - t - ); - })(r.default.Container); - (u.allowedChildren = [i.default, o.BlockEmbed, u]), - (t.default = u); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.ColorStyle = t.ColorClass = t.ColorAttributor = void 0); - var r, - o = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - i = n(0), - a = (r = i) && r.__esModule ? r : { default: r }; - function s(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function c(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } - var u = (function(e) { - function t() { - return ( - s(this, t), - c( - this, - (t.__proto__ || Object.getPrototypeOf(t)).apply( - this, - arguments - ) - ) - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(t, e), - o(t, [ - { - key: 'value', - value: function(e) { - var n = (function e(t, n, r) { - null === t && (t = Function.prototype); - var o = Object.getOwnPropertyDescriptor(t, n); - if (void 0 === o) { - var i = Object.getPrototypeOf(t); - return null === i ? void 0 : e(i, n, r); - } - if ('value' in o) return o.value; - var a = o.get; - return void 0 !== a ? a.call(r) : void 0; - })( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'value', - this - ).call(this, e); - return n.startsWith('rgb(') - ? ((n = n - .replace(/^[^\d]+/, '') - .replace(/[^\d]+$/, '')), - '#' + - n - .split(',') - .map(function(e) { - return ( - '00' + parseInt(e).toString(16) - ).slice(-2); - }) - .join('')) - : n; - } - } - ]), - t - ); - })(a.default.Attributor.Style), - l = new a.default.Attributor.Class('color', 'ql-color', { - scope: a.default.Scope.INLINE - }), - f = new u('color', 'color', { - scope: a.default.Scope.INLINE - }); - (t.ColorAttributor = u), (t.ColorClass = l), (t.ColorStyle = f); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.sanitize = t.default = void 0); - var r, - o = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - i = function e(t, n, r) { - null === t && (t = Function.prototype); - var o = Object.getOwnPropertyDescriptor(t, n); - if (void 0 === o) { - var i = Object.getPrototypeOf(t); - return null === i ? void 0 : e(i, n, r); - } - if ('value' in o) return o.value; - var a = o.get; - return void 0 !== a ? a.call(r) : void 0; - }, - a = n(6); - function s(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function c(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } - var u = (function(e) { - function t() { - return ( - s(this, t), - c( - this, - (t.__proto__ || Object.getPrototypeOf(t)).apply( - this, - arguments - ) - ) - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(t, e), - o( - t, - [ - { - key: 'format', - value: function(e, n) { - if (e !== this.statics.blotName || !n) - return i( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'format', - this - ).call(this, e, n); - (n = this.constructor.sanitize(n)), - this.domNode.setAttribute('href', n); - } - } - ], - [ - { - key: 'create', - value: function(e) { - var n = i( - t.__proto__ || Object.getPrototypeOf(t), - 'create', - this - ).call(this, e); - return ( - (e = this.sanitize(e)), - n.setAttribute('href', e), - n.setAttribute('rel', 'noopener noreferrer'), - n.setAttribute('target', '_blank'), - n - ); - } - }, - { - key: 'formats', - value: function(e) { - return e.getAttribute('href'); - } - }, - { - key: 'sanitize', - value: function(e) { - return l(e, this.PROTOCOL_WHITELIST) - ? e - : this.SANITIZED_URL; - } - } - ] - ), - t - ); - })(((r = a) && r.__esModule ? r : { default: r }).default); - function l(e, t) { - var n = document.createElement('a'); - n.href = e; - var r = n.href.slice(0, n.href.indexOf(':')); - return t.indexOf(r) > -1; - } - (u.blotName = 'link'), - (u.tagName = 'A'), - (u.SANITIZED_URL = 'about:blank'), - (u.PROTOCOL_WHITELIST = ['http', 'https', 'mailto', 'tel']), - (t.default = u), - (t.sanitize = l); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(e) { - return typeof e; - } - : function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - }, - o = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - i = s(n(23)), - a = s(n(107)); - function s(e) { - return e && e.__esModule ? e : { default: e }; - } - var c = 0; - function u(e, t) { - e.setAttribute(t, !('true' === e.getAttribute(t))); - } - var l = (function() { - function e(t) { - var n = this; - !(function(e, t) { - if (!(e instanceof t)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, e), - (this.select = t), - (this.container = document.createElement('span')), - this.buildPicker(), - (this.select.style.display = 'none'), - this.select.parentNode.insertBefore( - this.container, - this.select - ), - this.label.addEventListener('mousedown', function() { - n.togglePicker(); - }), - this.label.addEventListener('keydown', function(e) { - switch (e.keyCode) { - case i.default.keys.ENTER: - n.togglePicker(); - break; - case i.default.keys.ESCAPE: - n.escape(), e.preventDefault(); - } - }), - this.select.addEventListener( - 'change', - this.update.bind(this) - ); - } - return ( - o(e, [ - { - key: 'togglePicker', - value: function() { - this.container.classList.toggle('ql-expanded'), - u(this.label, 'aria-expanded'), - u(this.options, 'aria-hidden'); - } - }, - { - key: 'buildItem', - value: function(e) { - var t = this, - n = document.createElement('span'); - return ( - (n.tabIndex = '0'), - n.setAttribute('role', 'button'), - n.classList.add('ql-picker-item'), - e.hasAttribute('value') && - n.setAttribute( - 'data-value', - e.getAttribute('value') - ), - e.textContent && - n.setAttribute('data-label', e.textContent), - n.addEventListener('click', function() { - t.selectItem(n, !0); - }), - n.addEventListener('keydown', function(e) { - switch (e.keyCode) { - case i.default.keys.ENTER: - t.selectItem(n, !0), e.preventDefault(); - break; - case i.default.keys.ESCAPE: - t.escape(), e.preventDefault(); - } - }), - n - ); - } - }, - { - key: 'buildLabel', - value: function() { - var e = document.createElement('span'); - return ( - e.classList.add('ql-picker-label'), - (e.innerHTML = a.default), - (e.tabIndex = '0'), - e.setAttribute('role', 'button'), - e.setAttribute('aria-expanded', 'false'), - this.container.appendChild(e), - e - ); - } - }, - { - key: 'buildOptions', - value: function() { - var e = this, - t = document.createElement('span'); - t.classList.add('ql-picker-options'), - t.setAttribute('aria-hidden', 'true'), - (t.tabIndex = '-1'), - (t.id = 'ql-picker-options-' + c), - (c += 1), - this.label.setAttribute('aria-controls', t.id), - (this.options = t), - [].slice - .call(this.select.options) - .forEach(function(n) { - var r = e.buildItem(n); - t.appendChild(r), - !0 === n.selected && e.selectItem(r); - }), - this.container.appendChild(t); - } - }, - { - key: 'buildPicker', - value: function() { - var e = this; - [].slice - .call(this.select.attributes) - .forEach(function(t) { - e.container.setAttribute(t.name, t.value); - }), - this.container.classList.add('ql-picker'), - (this.label = this.buildLabel()), - this.buildOptions(); - } - }, - { - key: 'escape', - value: function() { - var e = this; - this.close(), - setTimeout(function() { - return e.label.focus(); - }, 1); - } - }, - { - key: 'close', - value: function() { - this.container.classList.remove('ql-expanded'), - this.label.setAttribute('aria-expanded', 'false'), - this.options.setAttribute('aria-hidden', 'true'); - } - }, - { - key: 'selectItem', - value: function(e) { - var t = - arguments.length > 1 && - void 0 !== arguments[1] && - arguments[1], - n = this.container.querySelector('.ql-selected'); - if ( - e !== n && - (null != n && n.classList.remove('ql-selected'), - null != e && - (e.classList.add('ql-selected'), - (this.select.selectedIndex = [].indexOf.call( - e.parentNode.children, - e - )), - e.hasAttribute('data-value') - ? this.label.setAttribute( - 'data-value', - e.getAttribute('data-value') - ) - : this.label.removeAttribute('data-value'), - e.hasAttribute('data-label') - ? this.label.setAttribute( - 'data-label', - e.getAttribute('data-label') - ) - : this.label.removeAttribute('data-label'), - t)) - ) { - if ('function' == typeof Event) - this.select.dispatchEvent(new Event('change')); - else if ( - 'object' === - ('undefined' == typeof Event - ? 'undefined' - : r(Event)) - ) { - var o = document.createEvent('Event'); - o.initEvent('change', !0, !0), - this.select.dispatchEvent(o); - } - this.close(); - } - } - }, - { - key: 'update', - value: function() { - var e = void 0; - if (this.select.selectedIndex > -1) { - var t = this.container.querySelector( - '.ql-picker-options' - ).children[this.select.selectedIndex]; - (e = this.select.options[ - this.select.selectedIndex - ]), - this.selectItem(t); - } else this.selectItem(null); - var n = - null != e && - e !== this.select.querySelector('option[selected]'); - this.label.classList.toggle('ql-active', n); - } - } - ]), - e - ); - })(); - t.default = l; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r = b(n(0)), - o = b(n(5)), - i = n(4), - a = b(i), - s = b(n(16)), - c = b(n(25)), - u = b(n(24)), - l = b(n(35)), - f = b(n(6)), - d = b(n(22)), - p = b(n(7)), - h = b(n(55)), - g = b(n(42)), - m = b(n(23)); - function b(e) { - return e && e.__esModule ? e : { default: e }; - } - o.default.register({ - 'blots/block': a.default, - 'blots/block/embed': i.BlockEmbed, - 'blots/break': s.default, - 'blots/container': c.default, - 'blots/cursor': u.default, - 'blots/embed': l.default, - 'blots/inline': f.default, - 'blots/scroll': d.default, - 'blots/text': p.default, - 'modules/clipboard': h.default, - 'modules/history': g.default, - 'modules/keyboard': m.default - }), - r.default.register( - a.default, - s.default, - u.default, - f.default, - d.default, - p.default - ), - (t.default = o.default); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r = n(1), - o = (function() { - function e(e) { - (this.domNode = e), - (this.domNode[r.DATA_KEY] = { blot: this }); - } - return ( - Object.defineProperty(e.prototype, 'statics', { - get: function() { - return this.constructor; - }, - enumerable: !0, - configurable: !0 - }), - (e.create = function(e) { - if (null == this.tagName) - throw new r.ParchmentError( - 'Blot definition missing tagName' - ); - var t; - return ( - Array.isArray(this.tagName) - ? ('string' == typeof e && - ((e = e.toUpperCase()), - parseInt(e).toString() === e && - (e = parseInt(e))), - (t = - 'number' == typeof e - ? document.createElement(this.tagName[e - 1]) - : this.tagName.indexOf(e) > -1 - ? document.createElement(e) - : document.createElement(this.tagName[0]))) - : (t = document.createElement(this.tagName)), - this.className && t.classList.add(this.className), - t - ); - }), - (e.prototype.attach = function() { - null != this.parent && - (this.scroll = this.parent.scroll); - }), - (e.prototype.clone = function() { - var e = this.domNode.cloneNode(!1); - return r.create(e); - }), - (e.prototype.detach = function() { - null != this.parent && this.parent.removeChild(this), - delete this.domNode[r.DATA_KEY]; - }), - (e.prototype.deleteAt = function(e, t) { - this.isolate(e, t).remove(); - }), - (e.prototype.formatAt = function(e, t, n, o) { - var i = this.isolate(e, t); - if (null != r.query(n, r.Scope.BLOT) && o) i.wrap(n, o); - else if (null != r.query(n, r.Scope.ATTRIBUTE)) { - var a = r.create(this.statics.scope); - i.wrap(a), a.format(n, o); - } - }), - (e.prototype.insertAt = function(e, t, n) { - var o = - null == n ? r.create('text', t) : r.create(t, n), - i = this.split(e); - this.parent.insertBefore(o, i); - }), - (e.prototype.insertInto = function(e, t) { - void 0 === t && (t = null), - null != this.parent && - this.parent.children.remove(this); - var n = null; - e.children.insertBefore(this, t), - null != t && (n = t.domNode), - (this.domNode.parentNode == e.domNode && - this.domNode.nextSibling == n) || - e.domNode.insertBefore(this.domNode, n), - (this.parent = e), - this.attach(); - }), - (e.prototype.isolate = function(e, t) { - var n = this.split(e); - return n.split(t), n; - }), - (e.prototype.length = function() { - return 1; - }), - (e.prototype.offset = function(e) { - return ( - void 0 === e && (e = this.parent), - null == this.parent || this == e - ? 0 - : this.parent.children.offset(this) + - this.parent.offset(e) - ); - }), - (e.prototype.optimize = function(e) { - null != this.domNode[r.DATA_KEY] && - delete this.domNode[r.DATA_KEY].mutations; - }), - (e.prototype.remove = function() { - null != this.domNode.parentNode && - this.domNode.parentNode.removeChild(this.domNode), - this.detach(); - }), - (e.prototype.replace = function(e) { - null != e.parent && - (e.parent.insertBefore(this, e.next), e.remove()); - }), - (e.prototype.replaceWith = function(e, t) { - var n = 'string' == typeof e ? r.create(e, t) : e; - return n.replace(this), n; - }), - (e.prototype.split = function(e, t) { - return 0 === e ? this : this.next; - }), - (e.prototype.update = function(e, t) {}), - (e.prototype.wrap = function(e, t) { - var n = 'string' == typeof e ? r.create(e, t) : e; - return ( - null != this.parent && - this.parent.insertBefore(n, this.next), - n.appendChild(this), - n - ); - }), - (e.blotName = 'abstract'), - e - ); - })(); - t.default = o; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r = n(12), - o = n(32), - i = n(33), - a = n(1), - s = (function() { - function e(e) { - (this.attributes = {}), (this.domNode = e), this.build(); - } - return ( - (e.prototype.attribute = function(e, t) { - t - ? e.add(this.domNode, t) && - (null != e.value(this.domNode) - ? (this.attributes[e.attrName] = e) - : delete this.attributes[e.attrName]) - : (e.remove(this.domNode), - delete this.attributes[e.attrName]); - }), - (e.prototype.build = function() { - var e = this; - this.attributes = {}; - var t = r.default.keys(this.domNode), - n = o.default.keys(this.domNode), - s = i.default.keys(this.domNode); - t.concat(n) - .concat(s) - .forEach(function(t) { - var n = a.query(t, a.Scope.ATTRIBUTE); - n instanceof r.default && - (e.attributes[n.attrName] = n); - }); - }), - (e.prototype.copy = function(e) { - var t = this; - Object.keys(this.attributes).forEach(function(n) { - var r = t.attributes[n].value(t.domNode); - e.format(n, r); - }); - }), - (e.prototype.move = function(e) { - var t = this; - this.copy(e), - Object.keys(this.attributes).forEach(function(e) { - t.attributes[e].remove(t.domNode); - }), - (this.attributes = {}); - }), - (e.prototype.values = function() { - var e = this; - return Object.keys(this.attributes).reduce(function( - t, - n - ) { - return (t[n] = e.attributes[n].value(e.domNode)), t; - }, - {}); - }), - e - ); - })(); - t.default = s; - }, - function(e, t, n) { - 'use strict'; - var r, - o = - (this && this.__extends) || - ((r = - Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && - function(e, t) { - e.__proto__ = t; - }) || - function(e, t) { - for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); - }), - function(e, t) { - function n() { - this.constructor = e; - } - r(e, t), - (e.prototype = - null === t - ? Object.create(t) - : ((n.prototype = t.prototype), new n())); - }); - function i(e, t) { - return (e.getAttribute('class') || '') - .split(/\s+/) - .filter(function(e) { - return 0 === e.indexOf(t + '-'); - }); - } - Object.defineProperty(t, '__esModule', { value: !0 }); - var a = (function(e) { - function t() { - return (null !== e && e.apply(this, arguments)) || this; - } - return ( - o(t, e), - (t.keys = function(e) { - return (e.getAttribute('class') || '') - .split(/\s+/) - .map(function(e) { - return e - .split('-') - .slice(0, -1) - .join('-'); - }); - }), - (t.prototype.add = function(e, t) { - return ( - !!this.canAdd(e, t) && - (this.remove(e), - e.classList.add(this.keyName + '-' + t), - !0) - ); - }), - (t.prototype.remove = function(e) { - i(e, this.keyName).forEach(function(t) { - e.classList.remove(t); - }), - 0 === e.classList.length && e.removeAttribute('class'); - }), - (t.prototype.value = function(e) { - var t = (i(e, this.keyName)[0] || '').slice( - this.keyName.length + 1 - ); - return this.canAdd(e, t) ? t : ''; - }), - t - ); - })(n(12).default); - t.default = a; - }, - function(e, t, n) { - 'use strict'; - var r, - o = - (this && this.__extends) || - ((r = - Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && - function(e, t) { - e.__proto__ = t; - }) || - function(e, t) { - for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); - }), - function(e, t) { - function n() { - this.constructor = e; - } - r(e, t), - (e.prototype = - null === t - ? Object.create(t) - : ((n.prototype = t.prototype), new n())); - }); - function i(e) { - var t = e.split('-'), - n = t - .slice(1) - .map(function(e) { - return e[0].toUpperCase() + e.slice(1); - }) - .join(''); - return t[0] + n; - } - Object.defineProperty(t, '__esModule', { value: !0 }); - var a = (function(e) { - function t() { - return (null !== e && e.apply(this, arguments)) || this; - } - return ( - o(t, e), - (t.keys = function(e) { - return (e.getAttribute('style') || '') - .split(';') - .map(function(e) { - return e.split(':')[0].trim(); - }); - }), - (t.prototype.add = function(e, t) { - return ( - !!this.canAdd(e, t) && - ((e.style[i(this.keyName)] = t), !0) - ); - }), - (t.prototype.remove = function(e) { - (e.style[i(this.keyName)] = ''), - e.getAttribute('style') || e.removeAttribute('style'); - }), - (t.prototype.value = function(e) { - var t = e.style[i(this.keyName)]; - return this.canAdd(e, t) ? t : ''; - }), - t - ); - })(n(12).default); - t.default = a; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - o = (function() { - function e(t, n) { - !(function(e, t) { - if (!(e instanceof t)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, e), - (this.quill = t), - (this.options = n), - (this.modules = {}); - } - return ( - r(e, [ - { - key: 'init', - value: function() { - var e = this; - Object.keys(this.options.modules).forEach(function( - t - ) { - null == e.modules[t] && e.addModule(t); - }); - } - }, - { - key: 'addModule', - value: function(e) { - var t = this.quill.constructor.import( - 'modules/' + e - ); - return ( - (this.modules[e] = new t( - this.quill, - this.options.modules[e] || {} - )), - this.modules[e] - ); - } - } - ]), - e - ); - })(); - (o.DEFAULTS = { modules: {} }), - (o.themes = { default: o }), - (t.default = o); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - o = a(n(0)), - i = a(n(7)); - function a(e) { - return e && e.__esModule ? e : { default: e }; - } - var s = (function(e) { - function t(e) { - !(function(e, t) { - if (!(e instanceof t)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, t); - var n = (function(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || - ('object' != typeof t && 'function' != typeof t) - ? e - : t; - })( - this, - (t.__proto__ || Object.getPrototypeOf(t)).call(this, e) - ); - return ( - (n.contentNode = document.createElement('span')), - n.contentNode.setAttribute('contenteditable', !1), - [].slice.call(n.domNode.childNodes).forEach(function(e) { - n.contentNode.appendChild(e); - }), - (n.leftGuard = document.createTextNode('\ufeff')), - (n.rightGuard = document.createTextNode('\ufeff')), - n.domNode.appendChild(n.leftGuard), - n.domNode.appendChild(n.contentNode), - n.domNode.appendChild(n.rightGuard), - n - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(t, e), - r(t, [ - { - key: 'index', - value: function(e, n) { - return e === this.leftGuard - ? 0 - : e === this.rightGuard - ? 1 - : (function e(t, n, r) { - null === t && (t = Function.prototype); - var o = Object.getOwnPropertyDescriptor(t, n); - if (void 0 === o) { - var i = Object.getPrototypeOf(t); - return null === i ? void 0 : e(i, n, r); - } - if ('value' in o) return o.value; - var a = o.get; - return void 0 !== a ? a.call(r) : void 0; - })( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'index', - this - ).call(this, e, n); - } - }, - { - key: 'restore', - value: function(e) { - var t = void 0, - n = void 0, - r = e.data.split('\ufeff').join(''); - if (e === this.leftGuard) - if (this.prev instanceof i.default) { - var a = this.prev.length(); - this.prev.insertAt(a, r), - (t = { - startNode: this.prev.domNode, - startOffset: a + r.length - }); - } else - (n = document.createTextNode(r)), - this.parent.insertBefore( - o.default.create(n), - this - ), - (t = { startNode: n, startOffset: r.length }); - else - e === this.rightGuard && - (this.next instanceof i.default - ? (this.next.insertAt(0, r), - (t = { - startNode: this.next.domNode, - startOffset: r.length - })) - : ((n = document.createTextNode(r)), - this.parent.insertBefore( - o.default.create(n), - this.next - ), - (t = { - startNode: n, - startOffset: r.length - }))); - return (e.data = '\ufeff'), t; - } - }, - { - key: 'update', - value: function(e, t) { - var n = this; - e.forEach(function(e) { - if ( - 'characterData' === e.type && - (e.target === n.leftGuard || - e.target === n.rightGuard) - ) { - var r = n.restore(e.target); - r && (t.range = r); - } - }); - } - } - ]), - t - ); - })(o.default.Embed); - t.default = s; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.AlignStyle = t.AlignClass = t.AlignAttribute = void 0); - var r, - o = n(0), - i = (r = o) && r.__esModule ? r : { default: r }, - a = { - scope: i.default.Scope.BLOCK, - whitelist: ['right', 'center', 'justify'] - }, - s = new i.default.Attributor.Attribute('align', 'align', a), - c = new i.default.Attributor.Class('align', 'ql-align', a), - u = new i.default.Attributor.Style('align', 'text-align', a); - (t.AlignAttribute = s), (t.AlignClass = c), (t.AlignStyle = u); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.BackgroundStyle = t.BackgroundClass = void 0); - var r, - o = n(0), - i = (r = o) && r.__esModule ? r : { default: r }, - a = n(26), - s = new i.default.Attributor.Class('background', 'ql-bg', { - scope: i.default.Scope.INLINE - }), - c = new a.ColorAttributor('background', 'background-color', { - scope: i.default.Scope.INLINE - }); - (t.BackgroundClass = s), (t.BackgroundStyle = c); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.DirectionStyle = t.DirectionClass = t.DirectionAttribute = void 0); - var r, - o = n(0), - i = (r = o) && r.__esModule ? r : { default: r }, - a = { scope: i.default.Scope.BLOCK, whitelist: ['rtl'] }, - s = new i.default.Attributor.Attribute('direction', 'dir', a), - c = new i.default.Attributor.Class( - 'direction', - 'ql-direction', - a - ), - u = new i.default.Attributor.Style( - 'direction', - 'direction', - a - ); - (t.DirectionAttribute = s), - (t.DirectionClass = c), - (t.DirectionStyle = u); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.FontClass = t.FontStyle = void 0); - var r, - o = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - i = n(0), - a = (r = i) && r.__esModule ? r : { default: r }; - function s(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function c(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } - var u = { - scope: a.default.Scope.INLINE, - whitelist: ['serif', 'monospace'] - }, - l = new a.default.Attributor.Class('font', 'ql-font', u), - f = new ((function(e) { - function t() { - return ( - s(this, t), - c( - this, - (t.__proto__ || Object.getPrototypeOf(t)).apply( - this, - arguments - ) - ) - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(t, e), - o(t, [ - { - key: 'value', - value: function(e) { - return (function e(t, n, r) { - null === t && (t = Function.prototype); - var o = Object.getOwnPropertyDescriptor(t, n); - if (void 0 === o) { - var i = Object.getPrototypeOf(t); - return null === i ? void 0 : e(i, n, r); - } - if ('value' in o) return o.value; - var a = o.get; - return void 0 !== a ? a.call(r) : void 0; - })( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'value', - this - ) - .call(this, e) - .replace(/["']/g, ''); - } - } - ]), - t - ); - })(a.default.Attributor.Style))('font', 'font-family', u); - (t.FontStyle = f), (t.FontClass = l); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.SizeStyle = t.SizeClass = void 0); - var r, - o = n(0), - i = (r = o) && r.__esModule ? r : { default: r }, - a = new i.default.Attributor.Class('size', 'ql-size', { - scope: i.default.Scope.INLINE, - whitelist: ['small', 'large', 'huge'] - }), - s = new i.default.Attributor.Style('size', 'font-size', { - scope: i.default.Scope.INLINE, - whitelist: ['10px', '18px', '32px'] - }); - (t.SizeClass = a), (t.SizeStyle = s); - }, - function(e, t, n) { - 'use strict'; - e.exports = { - align: { - '': n(76), - center: n(77), - right: n(78), - justify: n(79) - }, - background: n(80), - blockquote: n(81), - bold: n(82), - clean: n(83), - code: n(58), - 'code-block': n(58), - color: n(84), - direction: { '': n(85), rtl: n(86) }, - float: { - center: n(87), - full: n(88), - left: n(89), - right: n(90) - }, - formula: n(91), - header: { 1: n(92), 2: n(93) }, - italic: n(94), - image: n(95), - indent: { '+1': n(96), '-1': n(97) }, - link: n(98), - list: { ordered: n(99), bullet: n(100), check: n(101) }, - script: { sub: n(102), super: n(103) }, - strike: n(104), - underline: n(105), - video: n(106) - }; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.getLastChangeIndex = t.default = void 0); - var r = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - o = a(n(0)), - i = a(n(5)); - function a(e) { - return e && e.__esModule ? e : { default: e }; - } - var s = (function(e) { - function t(e, n) { - !(function(e, t) { - if (!(e instanceof t)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, t); - var r = (function(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || - ('object' != typeof t && 'function' != typeof t) - ? e - : t; - })( - this, - (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n) - ); - return ( - (r.lastRecorded = 0), - (r.ignoreChange = !1), - r.clear(), - r.quill.on(i.default.events.EDITOR_CHANGE, function( - e, - t, - n, - o - ) { - e !== i.default.events.TEXT_CHANGE || - r.ignoreChange || - (r.options.userOnly && o !== i.default.sources.USER - ? r.transform(t) - : r.record(t, n)); - }), - r.quill.keyboard.addBinding( - { key: 'Z', shortKey: !0 }, - r.undo.bind(r) - ), - r.quill.keyboard.addBinding( - { key: 'Z', shortKey: !0, shiftKey: !0 }, - r.redo.bind(r) - ), - /Win/i.test(navigator.platform) && - r.quill.keyboard.addBinding( - { key: 'Y', shortKey: !0 }, - r.redo.bind(r) - ), - r - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(t, e), - r(t, [ - { - key: 'change', - value: function(e, t) { - if (0 !== this.stack[e].length) { - var n = this.stack[e].pop(); - this.stack[t].push(n), - (this.lastRecorded = 0), - (this.ignoreChange = !0), - this.quill.updateContents( - n[e], - i.default.sources.USER - ), - (this.ignoreChange = !1); - var r = c(n[e]); - this.quill.setSelection(r); - } - } - }, - { - key: 'clear', - value: function() { - this.stack = { undo: [], redo: [] }; - } - }, - { - key: 'cutoff', - value: function() { - this.lastRecorded = 0; - } - }, - { - key: 'record', - value: function(e, t) { - if (0 !== e.ops.length) { - this.stack.redo = []; - var n = this.quill.getContents().diff(t), - r = Date.now(); - if ( - this.lastRecorded + this.options.delay > r && - this.stack.undo.length > 0 - ) { - var o = this.stack.undo.pop(); - (n = n.compose(o.undo)), (e = o.redo.compose(e)); - } else this.lastRecorded = r; - this.stack.undo.push({ redo: e, undo: n }), - this.stack.undo.length > this.options.maxStack && - this.stack.undo.shift(); - } - } - }, - { - key: 'redo', - value: function() { - this.change('redo', 'undo'); - } - }, - { - key: 'transform', - value: function(e) { - this.stack.undo.forEach(function(t) { - (t.undo = e.transform(t.undo, !0)), - (t.redo = e.transform(t.redo, !0)); - }), - this.stack.redo.forEach(function(t) { - (t.undo = e.transform(t.undo, !0)), - (t.redo = e.transform(t.redo, !0)); - }); - } - }, - { - key: 'undo', - value: function() { - this.change('undo', 'redo'); - } - } - ]), - t - ); - })(a(n(9)).default); - function c(e) { - var t = e.reduce(function(e, t) { - return (e += t.delete || 0); - }, 0), - n = e.length() - t; - return ( - (function(e) { - var t = e.ops[e.ops.length - 1]; - return ( - null != t && - (null != t.insert - ? 'string' == typeof t.insert && - t.insert.endsWith('\n') - : null != t.attributes && - Object.keys(t.attributes).some(function(e) { - return ( - null != - o.default.query(e, o.default.Scope.BLOCK) - ); - })) - ); - })(e) && (n -= 1), - n - ); - } - (s.DEFAULTS = { delay: 1e3, maxStack: 100, userOnly: !1 }), - (t.default = s), - (t.getLastChangeIndex = c); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = t.BaseTooltip = void 0); - var r = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - o = p(n(3)), - i = p(n(2)), - a = p(n(8)), - s = p(n(23)), - c = p(n(34)), - u = p(n(59)), - l = p(n(60)), - f = p(n(28)), - d = p(n(61)); - function p(e) { - return e && e.__esModule ? e : { default: e }; - } - function h(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function g(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } - function m(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - } - var b = [!1, 'center', 'right', 'justify'], - y = [ - '#000000', - '#e60000', - '#ff9900', - '#ffff00', - '#008a00', - '#0066cc', - '#9933ff', - '#ffffff', - '#facccc', - '#ffebcc', - '#ffffcc', - '#cce8cc', - '#cce0f5', - '#ebd6ff', - '#bbbbbb', - '#f06666', - '#ffc266', - '#ffff66', - '#66b966', - '#66a3e0', - '#c285ff', - '#888888', - '#a10000', - '#b26b00', - '#b2b200', - '#006100', - '#0047b2', - '#6b24b2', - '#444444', - '#5c0000', - '#663d00', - '#666600', - '#003700', - '#002966', - '#3d1466' - ], - v = [!1, 'serif', 'monospace'], - _ = ['1', '2', '3', !1], - x = ['small', !1, 'large', 'huge'], - w = (function(e) { - function t(e, n) { - h(this, t); - var r = g( - this, - (t.__proto__ || Object.getPrototypeOf(t)).call( - this, - e, - n - ) - ); - return ( - e.emitter.listenDOM('click', document.body, function t( - n - ) { - if (!document.body.contains(e.root)) - return document.body.removeEventListener( - 'click', - t - ); - null == r.tooltip || - r.tooltip.root.contains(n.target) || - document.activeElement === r.tooltip.textbox || - r.quill.hasFocus() || - r.tooltip.hide(), - null != r.pickers && - r.pickers.forEach(function(e) { - e.container.contains(n.target) || e.close(); - }); - }), - r - ); - } - return ( - m(t, e), - r(t, [ - { - key: 'addModule', - value: function(e) { - var n = (function e(t, n, r) { - null === t && (t = Function.prototype); - var o = Object.getOwnPropertyDescriptor(t, n); - if (void 0 === o) { - var i = Object.getPrototypeOf(t); - return null === i ? void 0 : e(i, n, r); - } - if ('value' in o) return o.value; - var a = o.get; - return void 0 !== a ? a.call(r) : void 0; - })( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'addModule', - this - ).call(this, e); - return 'toolbar' === e && this.extendToolbar(n), n; - } - }, - { - key: 'buildButtons', - value: function(e, t) { - e.forEach(function(e) { - (e.getAttribute('class') || '') - .split(/\s+/) - .forEach(function(n) { - if ( - n.startsWith('ql-') && - ((n = n.slice('ql-'.length)), null != t[n]) - ) - if ('direction' === n) - e.innerHTML = t[n][''] + t[n].rtl; - else if ('string' == typeof t[n]) - e.innerHTML = t[n]; - else { - var r = e.value || ''; - null != r && - t[n][r] && - (e.innerHTML = t[n][r]); - } - }); - }); - } - }, - { - key: 'buildPickers', - value: function(e, t) { - var n = this; - (this.pickers = e.map(function(e) { - if (e.classList.contains('ql-align')) - return ( - null == e.querySelector('option') && k(e, b), - new l.default(e, t.align) - ); - if ( - e.classList.contains('ql-background') || - e.classList.contains('ql-color') - ) { - var n = e.classList.contains('ql-background') - ? 'background' - : 'color'; - return ( - null == e.querySelector('option') && - k( - e, - y, - 'background' === n ? '#ffffff' : '#000000' - ), - new u.default(e, t[n]) - ); - } - return ( - null == e.querySelector('option') && - (e.classList.contains('ql-font') - ? k(e, v) - : e.classList.contains('ql-header') - ? k(e, _) - : e.classList.contains('ql-size') && - k(e, x)), - new f.default(e) - ); - })), - this.quill.on( - a.default.events.EDITOR_CHANGE, - function() { - n.pickers.forEach(function(e) { - e.update(); - }); - } - ); - } - } - ]), - t - ); - })(c.default); - w.DEFAULTS = (0, o.default)(!0, {}, c.default.DEFAULTS, { - modules: { - toolbar: { - handlers: { - formula: function() { - this.quill.theme.tooltip.edit('formula'); - }, - image: function() { - var e = this, - t = this.container.querySelector( - 'input.ql-image[type=file]' - ); - null == t && - ((t = document.createElement('input')).setAttribute( - 'type', - 'file' - ), - t.setAttribute( - 'accept', - 'image/png, image/gif, image/jpeg, image/bmp, image/x-icon' - ), - t.classList.add('ql-image'), - t.addEventListener('change', function() { - if (null != t.files && null != t.files[0]) { - var n = new FileReader(); - (n.onload = function(n) { - var r = e.quill.getSelection(!0); - e.quill.updateContents( - new i.default() - .retain(r.index) - .delete(r.length) - .insert({ image: n.target.result }), - a.default.sources.USER - ), - e.quill.setSelection( - r.index + 1, - a.default.sources.SILENT - ), - (t.value = ''); - }), - n.readAsDataURL(t.files[0]); - } - }), - this.container.appendChild(t)), - t.click(); - }, - video: function() { - this.quill.theme.tooltip.edit('video'); - } - } - } - } - }); - var M = (function(e) { - function t(e, n) { - h(this, t); - var r = g( - this, - (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n) - ); - return ( - (r.textbox = r.root.querySelector('input[type="text"]')), - r.listen(), - r - ); - } - return ( - m(t, e), - r(t, [ - { - key: 'listen', - value: function() { - var e = this; - this.textbox.addEventListener('keydown', function(t) { - s.default.match(t, 'enter') - ? (e.save(), t.preventDefault()) - : s.default.match(t, 'escape') && - (e.cancel(), t.preventDefault()); - }); - } - }, - { - key: 'cancel', - value: function() { - this.hide(); - } - }, - { - key: 'edit', - value: function() { - var e = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : 'link', - t = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : null; - this.root.classList.remove('ql-hidden'), - this.root.classList.add('ql-editing'), - null != t - ? (this.textbox.value = t) - : e !== this.root.getAttribute('data-mode') && - (this.textbox.value = ''), - this.position( - this.quill.getBounds( - this.quill.selection.savedRange - ) - ), - this.textbox.select(), - this.textbox.setAttribute( - 'placeholder', - this.textbox.getAttribute('data-' + e) || '' - ), - this.root.setAttribute('data-mode', e); - } - }, - { - key: 'restoreFocus', - value: function() { - var e = this.quill.scrollingContainer.scrollTop; - this.quill.focus(), - (this.quill.scrollingContainer.scrollTop = e); - } - }, - { - key: 'save', - value: function() { - var e, - t, - n = this.textbox.value; - switch (this.root.getAttribute('data-mode')) { - case 'link': - var r = this.quill.root.scrollTop; - this.linkRange - ? (this.quill.formatText( - this.linkRange, - 'link', - n, - a.default.sources.USER - ), - delete this.linkRange) - : (this.restoreFocus(), - this.quill.format( - 'link', - n, - a.default.sources.USER - )), - (this.quill.root.scrollTop = r); - break; - case 'video': - (t = - (e = n).match( - /^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/ - ) || - e.match( - /^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/ - )), - (n = t - ? (t[1] || 'https') + - '://www.youtube.com/embed/' + - t[2] + - '?showinfo=0' - : (t = e.match( - /^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/ - )) - ? (t[1] || 'https') + - '://player.vimeo.com/video/' + - t[2] + - '/' - : e); - case 'formula': - if (!n) break; - var o = this.quill.getSelection(!0); - if (null != o) { - var i = o.index + o.length; - this.quill.insertEmbed( - i, - this.root.getAttribute('data-mode'), - n, - a.default.sources.USER - ), - 'formula' === - this.root.getAttribute('data-mode') && - this.quill.insertText( - i + 1, - ' ', - a.default.sources.USER - ), - this.quill.setSelection( - i + 2, - a.default.sources.USER - ); - } - } - (this.textbox.value = ''), this.hide(); - } - } - ]), - t - ); - })(d.default); - function k(e, t) { - var n = - arguments.length > 2 && - void 0 !== arguments[2] && - arguments[2]; - t.forEach(function(t) { - var r = document.createElement('option'); - t === n - ? r.setAttribute('selected', 'selected') - : r.setAttribute('value', t), - e.appendChild(r); - }); - } - (t.BaseTooltip = M), (t.default = w); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r = (function() { - function e() { - (this.head = this.tail = null), (this.length = 0); - } - return ( - (e.prototype.append = function() { - for (var e = [], t = 0; t < arguments.length; t++) - e[t] = arguments[t]; - this.insertBefore(e[0], null), - e.length > 1 && this.append.apply(this, e.slice(1)); - }), - (e.prototype.contains = function(e) { - for (var t, n = this.iterator(); (t = n()); ) - if (t === e) return !0; - return !1; - }), - (e.prototype.insertBefore = function(e, t) { - e && - ((e.next = t), - null != t - ? ((e.prev = t.prev), - null != t.prev && (t.prev.next = e), - (t.prev = e), - t === this.head && (this.head = e)) - : null != this.tail - ? ((this.tail.next = e), - (e.prev = this.tail), - (this.tail = e)) - : ((e.prev = null), (this.head = this.tail = e)), - (this.length += 1)); - }), - (e.prototype.offset = function(e) { - for (var t = 0, n = this.head; null != n; ) { - if (n === e) return t; - (t += n.length()), (n = n.next); - } - return -1; - }), - (e.prototype.remove = function(e) { - this.contains(e) && - (null != e.prev && (e.prev.next = e.next), - null != e.next && (e.next.prev = e.prev), - e === this.head && (this.head = e.next), - e === this.tail && (this.tail = e.prev), - (this.length -= 1)); - }), - (e.prototype.iterator = function(e) { - return ( - void 0 === e && (e = this.head), - function() { - var t = e; - return null != e && (e = e.next), t; - } - ); - }), - (e.prototype.find = function(e, t) { - void 0 === t && (t = !1); - for (var n, r = this.iterator(); (n = r()); ) { - var o = n.length(); - if ( - e < o || - (t && - e === o && - (null == n.next || 0 !== n.next.length())) - ) - return [n, e]; - e -= o; - } - return [null, 0]; - }), - (e.prototype.forEach = function(e) { - for (var t, n = this.iterator(); (t = n()); ) e(t); - }), - (e.prototype.forEachAt = function(e, t, n) { - if (!(t <= 0)) - for ( - var r, - o = this.find(e), - i = o[0], - a = e - o[1], - s = this.iterator(i); - (r = s()) && a < e + t; - - ) { - var c = r.length(); - e > a - ? n(r, e - a, Math.min(t, a + c - e)) - : n(r, 0, Math.min(c, e + t - a)), - (a += c); - } - }), - (e.prototype.map = function(e) { - return this.reduce(function(t, n) { - return t.push(e(n)), t; - }, []); - }), - (e.prototype.reduce = function(e, t) { - for (var n, r = this.iterator(); (n = r()); ) t = e(t, n); - return t; - }), - e - ); - })(); - t.default = r; - }, - function(e, t, n) { - 'use strict'; - var r, - o = - (this && this.__extends) || - ((r = - Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && - function(e, t) { - e.__proto__ = t; - }) || - function(e, t) { - for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); - }), - function(e, t) { - function n() { - this.constructor = e; - } - r(e, t), - (e.prototype = - null === t - ? Object.create(t) - : ((n.prototype = t.prototype), new n())); - }); - Object.defineProperty(t, '__esModule', { value: !0 }); - var i = n(17), - a = n(1), - s = { - attributes: !0, - characterData: !0, - characterDataOldValue: !0, - childList: !0, - subtree: !0 - }, - c = (function(e) { - function t(t) { - var n = e.call(this, t) || this; - return ( - (n.scroll = n), - (n.observer = new MutationObserver(function(e) { - n.update(e); - })), - n.observer.observe(n.domNode, s), - n.attach(), - n - ); - } - return ( - o(t, e), - (t.prototype.detach = function() { - e.prototype.detach.call(this), - this.observer.disconnect(); - }), - (t.prototype.deleteAt = function(t, n) { - this.update(), - 0 === t && n === this.length() - ? this.children.forEach(function(e) { - e.remove(); - }) - : e.prototype.deleteAt.call(this, t, n); - }), - (t.prototype.formatAt = function(t, n, r, o) { - this.update(), - e.prototype.formatAt.call(this, t, n, r, o); - }), - (t.prototype.insertAt = function(t, n, r) { - this.update(), e.prototype.insertAt.call(this, t, n, r); - }), - (t.prototype.optimize = function(t, n) { - var r = this; - void 0 === t && (t = []), - void 0 === n && (n = {}), - e.prototype.optimize.call(this, n); - for ( - var o = [].slice.call(this.observer.takeRecords()); - o.length > 0; - - ) - t.push(o.pop()); - for ( - var s = function(e, t) { - void 0 === t && (t = !0), - null != e && - e !== r && - null != e.domNode.parentNode && - (null == e.domNode[a.DATA_KEY].mutations && - (e.domNode[a.DATA_KEY].mutations = []), - t && s(e.parent)); - }, - c = function(e) { - null != e.domNode[a.DATA_KEY] && - null != e.domNode[a.DATA_KEY].mutations && - (e instanceof i.default && - e.children.forEach(c), - e.optimize(n)); - }, - u = t, - l = 0; - u.length > 0; - l += 1 - ) { - if (l >= 100) - throw new Error( - '[Parchment] Maximum optimize iterations reached' - ); - for ( - u.forEach(function(e) { - var t = a.find(e.target, !0); - null != t && - (t.domNode === e.target && - ('childList' === e.type - ? (s(a.find(e.previousSibling, !1)), - [].forEach.call(e.addedNodes, function( - e - ) { - var t = a.find(e, !1); - s(t, !1), - t instanceof i.default && - t.children.forEach(function(e) { - s(e, !1); - }); - })) - : 'attributes' === e.type && s(t.prev)), - s(t)); - }), - this.children.forEach(c), - o = (u = [].slice.call( - this.observer.takeRecords() - )).slice(); - o.length > 0; - - ) - t.push(o.pop()); - } - }), - (t.prototype.update = function(t, n) { - var r = this; - void 0 === n && (n = {}), - (t = t || this.observer.takeRecords()) - .map(function(e) { - var t = a.find(e.target, !0); - return null == t - ? null - : null == t.domNode[a.DATA_KEY].mutations - ? ((t.domNode[a.DATA_KEY].mutations = [e]), t) - : (t.domNode[a.DATA_KEY].mutations.push(e), - null); - }) - .forEach(function(e) { - null != e && - e !== r && - null != e.domNode[a.DATA_KEY] && - e.update( - e.domNode[a.DATA_KEY].mutations || [], - n - ); - }), - null != this.domNode[a.DATA_KEY].mutations && - e.prototype.update.call( - this, - this.domNode[a.DATA_KEY].mutations, - n - ), - this.optimize(t, n); - }), - (t.blotName = 'scroll'), - (t.defaultChild = 'block'), - (t.scope = a.Scope.BLOCK_BLOT), - (t.tagName = 'DIV'), - t - ); - })(i.default); - t.default = c; - }, - function(e, t, n) { - 'use strict'; - var r, - o = - (this && this.__extends) || - ((r = - Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && - function(e, t) { - e.__proto__ = t; - }) || - function(e, t) { - for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); - }), - function(e, t) { - function n() { - this.constructor = e; - } - r(e, t), - (e.prototype = - null === t - ? Object.create(t) - : ((n.prototype = t.prototype), new n())); - }); - Object.defineProperty(t, '__esModule', { value: !0 }); - var i = n(18), - a = n(1), - s = (function(e) { - function t() { - return (null !== e && e.apply(this, arguments)) || this; - } - return ( - o(t, e), - (t.formats = function(n) { - if (n.tagName !== t.tagName) - return e.formats.call(this, n); - }), - (t.prototype.format = function(n, r) { - var o = this; - n !== this.statics.blotName || r - ? e.prototype.format.call(this, n, r) - : (this.children.forEach(function(e) { - e instanceof i.default || - (e = e.wrap(t.blotName, !0)), - o.attributes.copy(e); - }), - this.unwrap()); - }), - (t.prototype.formatAt = function(t, n, r, o) { - null != this.formats()[r] || - a.query(r, a.Scope.ATTRIBUTE) - ? this.isolate(t, n).format(r, o) - : e.prototype.formatAt.call(this, t, n, r, o); - }), - (t.prototype.optimize = function(n) { - e.prototype.optimize.call(this, n); - var r = this.formats(); - if (0 === Object.keys(r).length) return this.unwrap(); - var o = this.next; - o instanceof t && - o.prev === this && - (function(e, t) { - if (Object.keys(e).length !== Object.keys(t).length) - return !1; - for (var n in e) if (e[n] !== t[n]) return !1; - return !0; - })(r, o.formats()) && - (o.moveChildren(this), o.remove()); - }), - (t.blotName = 'inline'), - (t.scope = a.Scope.INLINE_BLOT), - (t.tagName = 'SPAN'), - t - ); - })(i.default); - t.default = s; - }, - function(e, t, n) { - 'use strict'; - var r, - o = - (this && this.__extends) || - ((r = - Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && - function(e, t) { - e.__proto__ = t; - }) || - function(e, t) { - for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); - }), - function(e, t) { - function n() { - this.constructor = e; - } - r(e, t), - (e.prototype = - null === t - ? Object.create(t) - : ((n.prototype = t.prototype), new n())); - }); - Object.defineProperty(t, '__esModule', { value: !0 }); - var i = n(18), - a = n(1), - s = (function(e) { - function t() { - return (null !== e && e.apply(this, arguments)) || this; - } - return ( - o(t, e), - (t.formats = function(n) { - var r = a.query(t.blotName).tagName; - if (n.tagName !== r) return e.formats.call(this, n); - }), - (t.prototype.format = function(n, r) { - null != a.query(n, a.Scope.BLOCK) && - (n !== this.statics.blotName || r - ? e.prototype.format.call(this, n, r) - : this.replaceWith(t.blotName)); - }), - (t.prototype.formatAt = function(t, n, r, o) { - null != a.query(r, a.Scope.BLOCK) - ? this.format(r, o) - : e.prototype.formatAt.call(this, t, n, r, o); - }), - (t.prototype.insertAt = function(t, n, r) { - if (null == r || null != a.query(n, a.Scope.INLINE)) - e.prototype.insertAt.call(this, t, n, r); - else { - var o = this.split(t), - i = a.create(n, r); - o.parent.insertBefore(i, o); - } - }), - (t.prototype.update = function(t, n) { - navigator.userAgent.match(/Trident/) - ? this.build() - : e.prototype.update.call(this, t, n); - }), - (t.blotName = 'block'), - (t.scope = a.Scope.BLOCK_BLOT), - (t.tagName = 'P'), - t - ); - })(i.default); - t.default = s; - }, - function(e, t, n) { - 'use strict'; - var r, - o = - (this && this.__extends) || - ((r = - Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && - function(e, t) { - e.__proto__ = t; - }) || - function(e, t) { - for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); - }), - function(e, t) { - function n() { - this.constructor = e; - } - r(e, t), - (e.prototype = - null === t - ? Object.create(t) - : ((n.prototype = t.prototype), new n())); - }); - Object.defineProperty(t, '__esModule', { value: !0 }); - var i = (function(e) { - function t() { - return (null !== e && e.apply(this, arguments)) || this; - } - return ( - o(t, e), - (t.formats = function(e) {}), - (t.prototype.format = function(t, n) { - e.prototype.formatAt.call(this, 0, this.length(), t, n); - }), - (t.prototype.formatAt = function(t, n, r, o) { - 0 === t && n === this.length() - ? this.format(r, o) - : e.prototype.formatAt.call(this, t, n, r, o); - }), - (t.prototype.formats = function() { - return this.statics.formats(this.domNode); - }), - t - ); - })(n(19).default); - t.default = i; - }, - function(e, t, n) { - 'use strict'; - var r, - o = - (this && this.__extends) || - ((r = - Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && - function(e, t) { - e.__proto__ = t; - }) || - function(e, t) { - for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); - }), - function(e, t) { - function n() { - this.constructor = e; - } - r(e, t), - (e.prototype = - null === t - ? Object.create(t) - : ((n.prototype = t.prototype), new n())); - }); - Object.defineProperty(t, '__esModule', { value: !0 }); - var i = n(19), - a = n(1), - s = (function(e) { - function t(t) { - var n = e.call(this, t) || this; - return (n.text = n.statics.value(n.domNode)), n; - } - return ( - o(t, e), - (t.create = function(e) { - return document.createTextNode(e); - }), - (t.value = function(e) { - var t = e.data; - return t.normalize && (t = t.normalize()), t; - }), - (t.prototype.deleteAt = function(e, t) { - this.domNode.data = this.text = - this.text.slice(0, e) + this.text.slice(e + t); - }), - (t.prototype.index = function(e, t) { - return this.domNode === e ? t : -1; - }), - (t.prototype.insertAt = function(t, n, r) { - null == r - ? ((this.text = - this.text.slice(0, t) + n + this.text.slice(t)), - (this.domNode.data = this.text)) - : e.prototype.insertAt.call(this, t, n, r); - }), - (t.prototype.length = function() { - return this.text.length; - }), - (t.prototype.optimize = function(n) { - e.prototype.optimize.call(this, n), - (this.text = this.statics.value(this.domNode)), - 0 === this.text.length - ? this.remove() - : this.next instanceof t && - this.next.prev === this && - (this.insertAt(this.length(), this.next.value()), - this.next.remove()); - }), - (t.prototype.position = function(e, t) { - return void 0 === t && (t = !1), [this.domNode, e]; - }), - (t.prototype.split = function(e, t) { - if ((void 0 === t && (t = !1), !t)) { - if (0 === e) return this; - if (e === this.length()) return this.next; - } - var n = a.create(this.domNode.splitText(e)); - return ( - this.parent.insertBefore(n, this.next), - (this.text = this.statics.value(this.domNode)), - n - ); - }), - (t.prototype.update = function(e, t) { - var n = this; - e.some(function(e) { - return ( - 'characterData' === e.type && e.target === n.domNode - ); - }) && (this.text = this.statics.value(this.domNode)); - }), - (t.prototype.value = function() { - return this.text; - }), - (t.blotName = 'text'), - (t.scope = a.Scope.INLINE_BLOT), - t - ); - })(i.default); - t.default = s; - }, - function(e, t, n) { - 'use strict'; - var r = document.createElement('div'); - if ( - (r.classList.toggle('test-class', !1), - r.classList.contains('test-class')) - ) { - var o = DOMTokenList.prototype.toggle; - DOMTokenList.prototype.toggle = function(e, t) { - return arguments.length > 1 && !this.contains(e) == !t - ? t - : o.call(this, e); - }; - } - String.prototype.startsWith || - (String.prototype.startsWith = function(e, t) { - return (t = t || 0), this.substr(t, e.length) === e; - }), - String.prototype.endsWith || - (String.prototype.endsWith = function(e, t) { - var n = this.toString(); - ('number' != typeof t || - !isFinite(t) || - Math.floor(t) !== t || - t > n.length) && - (t = n.length), - (t -= e.length); - var r = n.indexOf(e, t); - return -1 !== r && r === t; - }), - Array.prototype.find || - Object.defineProperty(Array.prototype, 'find', { - value: function(e) { - if (null === this) - throw new TypeError( - 'Array.prototype.find called on null or undefined' - ); - if ('function' != typeof e) - throw new TypeError('predicate must be a function'); - for ( - var t, - n = Object(this), - r = n.length >>> 0, - o = arguments[1], - i = 0; - i < r; - i++ - ) - if (((t = n[i]), e.call(o, t, i, n))) return t; - } - }), - document.addEventListener('DOMContentLoaded', function() { - document.execCommand('enableObjectResizing', !1, !1), - document.execCommand('autoUrlDetect', !1, !1); - }); - }, - function(e, t) { - function n(e, t, a) { - if (e == t) return e ? [[0, e]] : []; - (a < 0 || e.length < a) && (a = null); - var c = o(e, t), - u = e.substring(0, c); - c = i((e = e.substring(c)), (t = t.substring(c))); - var l = e.substring(e.length - c), - f = (function(e, t) { - var a; - if (!e) return [[1, t]]; - if (!t) return [[-1, e]]; - var s = e.length > t.length ? e : t, - c = e.length > t.length ? t : e, - u = s.indexOf(c); - if (-1 != u) - return ( - (a = [ - [1, s.substring(0, u)], - [0, c], - [1, s.substring(u + c.length)] - ]), - e.length > t.length && (a[0][0] = a[2][0] = -1), - a - ); - if (1 == c.length) - return [ - [-1, e], - [1, t] - ]; - var l = (function(e, t) { - var n = e.length > t.length ? e : t, - r = e.length > t.length ? t : e; - if (n.length < 4 || 2 * r.length < n.length) - return null; - function a(e, t, n) { - for ( - var r, - a, - s, - c, - u = e.substring(n, n + Math.floor(e.length / 4)), - l = -1, - f = ''; - -1 != (l = t.indexOf(u, l + 1)); - - ) { - var d = o(e.substring(n), t.substring(l)), - p = i(e.substring(0, n), t.substring(0, l)); - f.length < p + d && - ((f = - t.substring(l - p, l) + t.substring(l, l + d)), - (r = e.substring(0, n - p)), - (a = e.substring(n + d)), - (s = t.substring(0, l - p)), - (c = t.substring(l + d))); - } - return 2 * f.length >= e.length - ? [r, a, s, c, f] - : null; - } - var s, - c, - u, - l, - f, - d = a(n, r, Math.ceil(n.length / 4)), - p = a(n, r, Math.ceil(n.length / 2)); - if (!d && !p) return null; - (s = p ? (d && d[4].length > p[4].length ? d : p) : d), - e.length > t.length - ? ((c = s[0]), (u = s[1]), (l = s[2]), (f = s[3])) - : ((l = s[0]), (f = s[1]), (c = s[2]), (u = s[3])); - var h = s[4]; - return [c, u, l, f, h]; - })(e, t); - if (l) { - var f = l[0], - d = l[1], - p = l[2], - h = l[3], - g = l[4], - m = n(f, p), - b = n(d, h); - return m.concat([[0, g]], b); - } - return (function(e, t) { - for ( - var n = e.length, - o = t.length, - i = Math.ceil((n + o) / 2), - a = i, - s = 2 * i, - c = new Array(s), - u = new Array(s), - l = 0; - l < s; - l++ - ) - (c[l] = -1), (u[l] = -1); - (c[a + 1] = 0), (u[a + 1] = 0); - for ( - var f = n - o, - d = f % 2 != 0, - p = 0, - h = 0, - g = 0, - m = 0, - b = 0; - b < i; - b++ - ) { - for (var y = -b + p; y <= b - h; y += 2) { - for ( - var v = a + y, - _ = - (S = - y == -b || (y != b && c[v - 1] < c[v + 1]) - ? c[v + 1] - : c[v - 1] + 1) - y; - S < n && _ < o && e.charAt(S) == t.charAt(_); - - ) - S++, _++; - if (((c[v] = S), S > n)) h += 2; - else if (_ > o) p += 2; - else if ( - d && - (M = a + f - y) >= 0 && - M < s && - -1 != u[M] - ) { - var x = n - u[M]; - if (S >= x) return r(e, t, S, _); - } - } - for (var w = -b + g; w <= b - m; w += 2) { - for ( - var M = a + w, - k = - (x = - w == -b || (w != b && u[M - 1] < u[M + 1]) - ? u[M + 1] - : u[M - 1] + 1) - w; - x < n && - k < o && - e.charAt(n - x - 1) == t.charAt(o - k - 1); - - ) - x++, k++; - if (((u[M] = x), x > n)) m += 2; - else if (k > o) g += 2; - else if ( - !d && - (v = a + f - w) >= 0 && - v < s && - -1 != c[v] - ) { - var S = c[v]; - if (((_ = a + S - v), S >= (x = n - x))) - return r(e, t, S, _); - } - } - } - return [ - [-1, e], - [1, t] - ]; - })(e, t); - })( - (e = e.substring(0, e.length - c)), - (t = t.substring(0, t.length - c)) - ); - return ( - u && f.unshift([0, u]), - l && f.push([0, l]), - (function e(t) { - t.push([0, '']); - for ( - var n, r = 0, a = 0, s = 0, c = '', u = ''; - r < t.length; - - ) - switch (t[r][0]) { - case 1: - s++, (u += t[r][1]), r++; - break; - case -1: - a++, (c += t[r][1]), r++; - break; - case 0: - a + s > 1 - ? (0 !== a && - 0 !== s && - (0 !== (n = o(u, c)) && - (r - a - s > 0 && 0 == t[r - a - s - 1][0] - ? (t[r - a - s - 1][1] += u.substring( - 0, - n - )) - : (t.splice(0, 0, [0, u.substring(0, n)]), - r++), - (u = u.substring(n)), - (c = c.substring(n))), - 0 !== (n = i(u, c)) && - ((t[r][1] = - u.substring(u.length - n) + t[r][1]), - (u = u.substring(0, u.length - n)), - (c = c.substring(0, c.length - n)))), - 0 === a - ? t.splice(r - s, a + s, [1, u]) - : 0 === s - ? t.splice(r - a, a + s, [-1, c]) - : t.splice(r - a - s, a + s, [-1, c], [1, u]), - (r = r - a - s + (a ? 1 : 0) + (s ? 1 : 0) + 1)) - : 0 !== r && 0 == t[r - 1][0] - ? ((t[r - 1][1] += t[r][1]), t.splice(r, 1)) - : r++, - (s = 0), - (a = 0), - (c = ''), - (u = ''); - } - '' === t[t.length - 1][1] && t.pop(); - var l = !1; - for (r = 1; r < t.length - 1; ) - 0 == t[r - 1][0] && - 0 == t[r + 1][0] && - (t[r][1].substring( - t[r][1].length - t[r - 1][1].length - ) == t[r - 1][1] - ? ((t[r][1] = - t[r - 1][1] + - t[r][1].substring( - 0, - t[r][1].length - t[r - 1][1].length - )), - (t[r + 1][1] = t[r - 1][1] + t[r + 1][1]), - t.splice(r - 1, 1), - (l = !0)) - : t[r][1].substring(0, t[r + 1][1].length) == - t[r + 1][1] && - ((t[r - 1][1] += t[r + 1][1]), - (t[r][1] = - t[r][1].substring(t[r + 1][1].length) + - t[r + 1][1]), - t.splice(r + 1, 1), - (l = !0))), - r++; - l && e(t); - })(f), - null != a && - (f = (function(e, t) { - var n = (function(e, t) { - if (0 === t) return [0, e]; - for (var n = 0, r = 0; r < e.length; r++) { - var o = e[r]; - if (-1 === o[0] || 0 === o[0]) { - var i = n + o[1].length; - if (t === i) return [r + 1, e]; - if (t < i) { - e = e.slice(); - var a = t - n, - s = [o[0], o[1].slice(0, a)], - c = [o[0], o[1].slice(a)]; - return e.splice(r, 1, s, c), [r + 1, e]; - } - n = i; - } - } - throw new Error('cursor_pos is out of bounds!'); - })(e, t), - r = n[1], - o = n[0], - i = r[o], - a = r[o + 1]; - if (null == i) return e; - if (0 !== i[0]) return e; - if (null != a && i[1] + a[1] === a[1] + i[1]) - return r.splice(o, 2, a, i), s(r, o, 2); - if (null != a && 0 === a[1].indexOf(i[1])) { - r.splice(o, 2, [a[0], i[1]], [0, i[1]]); - var c = a[1].slice(i[1].length); - return ( - c.length > 0 && r.splice(o + 2, 0, [a[0], c]), - s(r, o, 3) - ); - } - return e; - })(f, a)), - (f = (function(e) { - for ( - var t = !1, - n = function(e) { - return ( - e.charCodeAt(0) >= 56320 && - e.charCodeAt(0) <= 57343 - ); - }, - r = 2; - r < e.length; - r += 1 - ) - 0 === e[r - 2][0] && - (o = e[r - 2][1]).charCodeAt(o.length - 1) >= 55296 && - o.charCodeAt(o.length - 1) <= 56319 && - -1 === e[r - 1][0] && - n(e[r - 1][1]) && - 1 === e[r][0] && - n(e[r][1]) && - ((t = !0), - (e[r - 1][1] = e[r - 2][1].slice(-1) + e[r - 1][1]), - (e[r][1] = e[r - 2][1].slice(-1) + e[r][1]), - (e[r - 2][1] = e[r - 2][1].slice(0, -1))); - var o; - if (!t) return e; - var i = []; - for (r = 0; r < e.length; r += 1) - e[r][1].length > 0 && i.push(e[r]); - return i; - })(f)) - ); - } - function r(e, t, r, o) { - var i = e.substring(0, r), - a = t.substring(0, o), - s = e.substring(r), - c = t.substring(o), - u = n(i, a), - l = n(s, c); - return u.concat(l); - } - function o(e, t) { - if (!e || !t || e.charAt(0) != t.charAt(0)) return 0; - for ( - var n = 0, r = Math.min(e.length, t.length), o = r, i = 0; - n < o; - - ) - e.substring(i, o) == t.substring(i, o) - ? (i = n = o) - : (r = o), - (o = Math.floor((r - n) / 2 + n)); - return o; - } - function i(e, t) { - if ( - !e || - !t || - e.charAt(e.length - 1) != t.charAt(t.length - 1) - ) - return 0; - for ( - var n = 0, r = Math.min(e.length, t.length), o = r, i = 0; - n < o; - - ) - e.substring(e.length - o, e.length - i) == - t.substring(t.length - o, t.length - i) - ? (i = n = o) - : (r = o), - (o = Math.floor((r - n) / 2 + n)); - return o; - } - var a = n; - function s(e, t, n) { - for (var r = t + n - 1; r >= 0 && r >= t - 1; r--) - if (r + 1 < e.length) { - var o = e[r], - i = e[r + 1]; - o[0] === i[1] && e.splice(r, 2, [o[0], o[1] + i[1]]); - } - return e; - } - (a.INSERT = 1), (a.DELETE = -1), (a.EQUAL = 0), (e.exports = a); - }, - function(e, t) { - function n(e) { - var t = []; - for (var n in e) t.push(n); - return t; - } - (e.exports = - 'function' == typeof Object.keys ? Object.keys : n).shim = n; - }, - function(e, t) { - var n = - '[object Arguments]' == - (function() { - return Object.prototype.toString.call(arguments); - })(); - function r(e) { - return ( - '[object Arguments]' == Object.prototype.toString.call(e) - ); - } - function o(e) { - return ( - (e && - 'object' == typeof e && - 'number' == typeof e.length && - Object.prototype.hasOwnProperty.call(e, 'callee') && - !Object.prototype.propertyIsEnumerable.call( - e, - 'callee' - )) || - !1 - ); - } - ((t = e.exports = n ? r : o).supported = r), - (t.unsupported = o); - }, - function(e, t) { - 'use strict'; - var n = Object.prototype.hasOwnProperty, - r = '~'; - function o() {} - function i(e, t, n) { - (this.fn = e), (this.context = t), (this.once = n || !1); - } - function a() { - (this._events = new o()), (this._eventsCount = 0); - } - Object.create && - ((o.prototype = Object.create(null)), - new o().__proto__ || (r = !1)), - (a.prototype.eventNames = function() { - var e, - t, - o = []; - if (0 === this._eventsCount) return o; - for (t in (e = this._events)) - n.call(e, t) && o.push(r ? t.slice(1) : t); - return Object.getOwnPropertySymbols - ? o.concat(Object.getOwnPropertySymbols(e)) - : o; - }), - (a.prototype.listeners = function(e, t) { - var n = r ? r + e : e, - o = this._events[n]; - if (t) return !!o; - if (!o) return []; - if (o.fn) return [o.fn]; - for (var i = 0, a = o.length, s = new Array(a); i < a; i++) - s[i] = o[i].fn; - return s; - }), - (a.prototype.emit = function(e, t, n, o, i, a) { - var s = r ? r + e : e; - if (!this._events[s]) return !1; - var c, - u, - l = this._events[s], - f = arguments.length; - if (l.fn) { - switch ( - (l.once && this.removeListener(e, l.fn, void 0, !0), f) - ) { - case 1: - return l.fn.call(l.context), !0; - case 2: - return l.fn.call(l.context, t), !0; - case 3: - return l.fn.call(l.context, t, n), !0; - case 4: - return l.fn.call(l.context, t, n, o), !0; - case 5: - return l.fn.call(l.context, t, n, o, i), !0; - case 6: - return l.fn.call(l.context, t, n, o, i, a), !0; - } - for (u = 1, c = new Array(f - 1); u < f; u++) - c[u - 1] = arguments[u]; - l.fn.apply(l.context, c); - } else { - var d, - p = l.length; - for (u = 0; u < p; u++) - switch ( - (l[u].once && - this.removeListener(e, l[u].fn, void 0, !0), - f) - ) { - case 1: - l[u].fn.call(l[u].context); - break; - case 2: - l[u].fn.call(l[u].context, t); - break; - case 3: - l[u].fn.call(l[u].context, t, n); - break; - case 4: - l[u].fn.call(l[u].context, t, n, o); - break; - default: - if (!c) - for (d = 1, c = new Array(f - 1); d < f; d++) - c[d - 1] = arguments[d]; - l[u].fn.apply(l[u].context, c); - } - } - return !0; - }), - (a.prototype.on = function(e, t, n) { - var o = new i(t, n || this), - a = r ? r + e : e; - return ( - this._events[a] - ? this._events[a].fn - ? (this._events[a] = [this._events[a], o]) - : this._events[a].push(o) - : ((this._events[a] = o), this._eventsCount++), - this - ); - }), - (a.prototype.once = function(e, t, n) { - var o = new i(t, n || this, !0), - a = r ? r + e : e; - return ( - this._events[a] - ? this._events[a].fn - ? (this._events[a] = [this._events[a], o]) - : this._events[a].push(o) - : ((this._events[a] = o), this._eventsCount++), - this - ); - }), - (a.prototype.removeListener = function(e, t, n, i) { - var a = r ? r + e : e; - if (!this._events[a]) return this; - if (!t) - return ( - 0 == --this._eventsCount - ? (this._events = new o()) - : delete this._events[a], - this - ); - var s = this._events[a]; - if (s.fn) - s.fn !== t || - (i && !s.once) || - (n && s.context !== n) || - (0 == --this._eventsCount - ? (this._events = new o()) - : delete this._events[a]); - else { - for (var c = 0, u = [], l = s.length; c < l; c++) - (s[c].fn !== t || - (i && !s[c].once) || - (n && s[c].context !== n)) && - u.push(s[c]); - u.length - ? (this._events[a] = 1 === u.length ? u[0] : u) - : 0 == --this._eventsCount - ? (this._events = new o()) - : delete this._events[a]; - } - return this; - }), - (a.prototype.removeAllListeners = function(e) { - var t; - return ( - e - ? ((t = r ? r + e : e), - this._events[t] && - (0 == --this._eventsCount - ? (this._events = new o()) - : delete this._events[t])) - : ((this._events = new o()), (this._eventsCount = 0)), - this - ); - }), - (a.prototype.off = a.prototype.removeListener), - (a.prototype.addListener = a.prototype.on), - (a.prototype.setMaxListeners = function() { - return this; - }), - (a.prefixed = r), - (a.EventEmitter = a), - void 0 !== e && (e.exports = a); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.matchText = t.matchSpacing = t.matchNewline = t.matchBlot = t.matchAttributor = t.default = void 0); - var r = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(e) { - return typeof e; - } - : function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - }, - o = function(e, t) { - if (Array.isArray(e)) return e; - if (Symbol.iterator in Object(e)) - return (function(e, t) { - var n = [], - r = !0, - o = !1, - i = void 0; - try { - for ( - var a, s = e[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !t || n.length !== t); - r = !0 - ); - } catch (e) { - (o = !0), (i = e); - } finally { - try { - !r && s.return && s.return(); - } finally { - if (o) throw i; - } - } - return n; - })(e, t); - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance' - ); - }, - i = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - a = v(n(3)), - s = v(n(2)), - c = v(n(0)), - u = v(n(5)), - l = v(n(10)), - f = v(n(9)), - d = n(36), - p = n(37), - h = v(n(13)), - g = n(26), - m = n(38), - b = n(39), - y = n(40); - function v(e) { - return e && e.__esModule ? e : { default: e }; - } - function _(e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e - ); - } - var x = (0, l.default)('quill:clipboard'), - w = '__ql-matcher', - M = [ - [Node.TEXT_NODE, j], - [Node.TEXT_NODE, z], - [ - 'br', - function(e, t) { - return T(t, '\n') || t.insert('\n'), t; - } - ], - [Node.ELEMENT_NODE, z], - [Node.ELEMENT_NODE, D], - [Node.ELEMENT_NODE, N], - [Node.ELEMENT_NODE, P], - [ - Node.ELEMENT_NODE, - function(e, t) { - var n = {}, - r = e.style || {}; - return ( - r.fontStyle && - 'italic' === E(e).fontStyle && - (n.italic = !0), - r.fontWeight && - (E(e).fontWeight.startsWith('bold') || - parseInt(E(e).fontWeight) >= 700) && - (n.bold = !0), - Object.keys(n).length > 0 && (t = O(t, n)), - parseFloat(r.textIndent || 0) > 0 && - (t = new s.default().insert('\t').concat(t)), - t - ); - } - ], - [ - 'li', - function(e, t) { - var n = c.default.query(e); - if ( - null == n || - 'list-item' !== n.blotName || - !T(t, '\n') - ) - return t; - for ( - var r = -1, o = e.parentNode; - !o.classList.contains('ql-clipboard'); - - ) - 'list' === (c.default.query(o) || {}).blotName && - (r += 1), - (o = o.parentNode); - return r <= 0 - ? t - : t.compose( - new s.default() - .retain(t.length() - 1) - .retain(1, { indent: r }) - ); - } - ], - ['b', L.bind(L, 'bold')], - ['i', L.bind(L, 'italic')], - [ - 'style', - function() { - return new s.default(); - } - ] - ], - k = [d.AlignAttribute, m.DirectionAttribute].reduce(function( - e, - t - ) { - return (e[t.keyName] = t), e; - }, - {}), - S = [ - d.AlignStyle, - p.BackgroundStyle, - g.ColorStyle, - m.DirectionStyle, - b.FontStyle, - y.SizeStyle - ].reduce(function(e, t) { - return (e[t.keyName] = t), e; - }, {}), - A = (function(e) { - function t(e, n) { - !(function(e, t) { - if (!(e instanceof t)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, t); - var r = (function(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || - ('object' != typeof t && 'function' != typeof t) - ? e - : t; - })( - this, - (t.__proto__ || Object.getPrototypeOf(t)).call( - this, - e, - n - ) - ); - return ( - r.quill.root.addEventListener( - 'paste', - r.onPaste.bind(r) - ), - (r.container = r.quill.addContainer('ql-clipboard')), - r.container.setAttribute('contenteditable', !0), - r.container.setAttribute('tabindex', -1), - (r.matchers = []), - M.concat(r.options.matchers).forEach(function(e) { - var t = o(e, 2), - i = t[0], - a = t[1]; - (n.matchVisual || a !== N) && r.addMatcher(i, a); - }), - r - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(t, e), - i(t, [ - { - key: 'addMatcher', - value: function(e, t) { - this.matchers.push([e, t]); - } - }, - { - key: 'convert', - value: function(e) { - if ('string' == typeof e) - return ( - (this.container.innerHTML = e.replace( - /\>\r?\n +\<' - )), - this.convert() - ); - var t = this.quill.getFormat( - this.quill.selection.savedRange.index - ); - if (t[h.default.blotName]) { - var n = this.container.innerText; - return ( - (this.container.innerHTML = ''), - new s.default().insert( - n, - _( - {}, - h.default.blotName, - t[h.default.blotName] - ) - ) - ); - } - var r = this.prepareMatching(), - i = o(r, 2), - a = i[0], - c = i[1], - u = (function e(t, n, r) { - return t.nodeType === t.TEXT_NODE - ? r.reduce(function(e, n) { - return n(t, e); - }, new s.default()) - : t.nodeType === t.ELEMENT_NODE - ? [].reduce.call( - t.childNodes || [], - function(o, i) { - var a = e(i, n, r); - return ( - i.nodeType === t.ELEMENT_NODE && - ((a = n.reduce(function(e, t) { - return t(i, e); - }, a)), - (a = (i[w] || []).reduce(function( - e, - t - ) { - return t(i, e); - }, - a))), - o.concat(a) - ); - }, - new s.default() - ) - : new s.default(); - })(this.container, a, c); - return ( - T(u, '\n') && - null == u.ops[u.ops.length - 1].attributes && - (u = u.compose( - new s.default() - .retain(u.length() - 1) - .delete(1) - )), - x.log('convert', this.container.innerHTML, u), - (this.container.innerHTML = ''), - u - ); - } - }, - { - key: 'dangerouslyPasteHTML', - value: function(e, t) { - var n = - arguments.length > 2 && void 0 !== arguments[2] - ? arguments[2] - : u.default.sources.API; - if ('string' == typeof e) - this.quill.setContents(this.convert(e), t), - this.quill.setSelection( - 0, - u.default.sources.SILENT - ); - else { - var r = this.convert(t); - this.quill.updateContents( - new s.default().retain(e).concat(r), - n - ), - this.quill.setSelection( - e + r.length(), - u.default.sources.SILENT - ); - } - } - }, - { - key: 'onPaste', - value: function(e) { - var t = this; - if (!e.defaultPrevented && this.quill.isEnabled()) { - var n = this.quill.getSelection(), - r = new s.default().retain(n.index), - o = this.quill.scrollingContainer.scrollTop; - this.container.focus(), - this.quill.selection.update( - u.default.sources.SILENT - ), - setTimeout(function() { - (r = r.concat(t.convert()).delete(n.length)), - t.quill.updateContents( - r, - u.default.sources.USER - ), - t.quill.setSelection( - r.length() - n.length, - u.default.sources.SILENT - ), - (t.quill.scrollingContainer.scrollTop = o), - t.quill.focus(); - }, 1); - } - } - }, - { - key: 'prepareMatching', - value: function() { - var e = this, - t = [], - n = []; - return ( - this.matchers.forEach(function(r) { - var i = o(r, 2), - a = i[0], - s = i[1]; - switch (a) { - case Node.TEXT_NODE: - n.push(s); - break; - case Node.ELEMENT_NODE: - t.push(s); - break; - default: - [].forEach.call( - e.container.querySelectorAll(a), - function(e) { - (e[w] = e[w] || []), e[w].push(s); - } - ); - } - }), - [t, n] - ); - } - } - ]), - t - ); - })(f.default); - function O(e, t, n) { - return 'object' === (void 0 === t ? 'undefined' : r(t)) - ? Object.keys(t).reduce(function(e, n) { - return O(e, n, t[n]); - }, e) - : e.reduce(function(e, r) { - return r.attributes && r.attributes[t] - ? e.push(r) - : e.insert( - r.insert, - (0, a.default)({}, _({}, t, n), r.attributes) - ); - }, new s.default()); - } - function E(e) { - return e.nodeType !== Node.ELEMENT_NODE - ? {} - : e['__ql-computed-style'] || - (e['__ql-computed-style'] = window.getComputedStyle(e)); - } - function T(e, t) { - for ( - var n = '', r = e.ops.length - 1; - r >= 0 && n.length < t.length; - --r - ) { - var o = e.ops[r]; - if ('string' != typeof o.insert) break; - n = o.insert + n; - } - return n.slice(-1 * t.length) === t; - } - function C(e) { - if (0 === e.childNodes.length) return !1; - var t = E(e); - return ['block', 'list-item'].indexOf(t.display) > -1; - } - function L(e, t, n) { - return O(n, e, !0); - } - function P(e, t) { - var n = c.default.Attributor.Attribute.keys(e), - r = c.default.Attributor.Class.keys(e), - o = c.default.Attributor.Style.keys(e), - i = {}; - return ( - n - .concat(r) - .concat(o) - .forEach(function(t) { - var n = c.default.query(t, c.default.Scope.ATTRIBUTE); - (null != n && - ((i[n.attrName] = n.value(e)), i[n.attrName])) || - (null == (n = k[t]) || - (n.attrName !== t && n.keyName !== t) || - (i[n.attrName] = n.value(e) || void 0), - null == (n = S[t]) || - (n.attrName !== t && n.keyName !== t) || - ((n = S[t]), - (i[n.attrName] = n.value(e) || void 0))); - }), - Object.keys(i).length > 0 && (t = O(t, i)), - t - ); - } - function D(e, t) { - var n = c.default.query(e); - if (null == n) return t; - if (n.prototype instanceof c.default.Embed) { - var r = {}, - o = n.value(e); - null != o && - ((r[n.blotName] = o), - (t = new s.default().insert(r, n.formats(e)))); - } else - 'function' == typeof n.formats && - (t = O(t, n.blotName, n.formats(e))); - return t; - } - function z(e, t) { - return ( - T(t, '\n') || - ((C(e) || - (t.length() > 0 && - e.nextSibling && - C(e.nextSibling))) && - t.insert('\n')), - t - ); - } - function N(e, t) { - if (C(e) && null != e.nextElementSibling && !T(t, '\n\n')) { - var n = - e.offsetHeight + - parseFloat(E(e).marginTop) + - parseFloat(E(e).marginBottom); - e.nextElementSibling.offsetTop > e.offsetTop + 1.5 * n && - t.insert('\n'); - } - return t; - } - function j(e, t) { - var n = e.data; - if ('O:P' === e.parentNode.tagName) return t.insert(n.trim()); - if ( - 0 === n.trim().length && - e.parentNode.classList.contains('ql-clipboard') - ) - return t; - if (!E(e.parentNode).whiteSpace.startsWith('pre')) { - var r = function(e, t) { - return (t = t.replace(/[^\u00a0]/g, '')).length < 1 && e - ? ' ' - : t; - }; - (n = (n = n - .replace(/\r\n/g, ' ') - .replace(/\n/g, ' ')).replace(/\s\s+/g, r.bind(r, !0))), - ((null == e.previousSibling && C(e.parentNode)) || - (null != e.previousSibling && C(e.previousSibling))) && - (n = n.replace(/^\s+/, r.bind(r, !1))), - ((null == e.nextSibling && C(e.parentNode)) || - (null != e.nextSibling && C(e.nextSibling))) && - (n = n.replace(/\s+$/, r.bind(r, !1))); - } - return t.insert(n); - } - (A.DEFAULTS = { matchers: [], matchVisual: !0 }), - (t.default = A), - (t.matchAttributor = P), - (t.matchBlot = D), - (t.matchNewline = z), - (t.matchSpacing = N), - (t.matchText = j); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r, - o = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - i = function e(t, n, r) { - null === t && (t = Function.prototype); - var o = Object.getOwnPropertyDescriptor(t, n); - if (void 0 === o) { - var i = Object.getPrototypeOf(t); - return null === i ? void 0 : e(i, n, r); - } - if ('value' in o) return o.value; - var a = o.get; - return void 0 !== a ? a.call(r) : void 0; - }, - a = n(6); - function s(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function c(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } - var u = (function(e) { - function t() { - return ( - s(this, t), - c( - this, - (t.__proto__ || Object.getPrototypeOf(t)).apply( - this, - arguments - ) - ) - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(t, e), - o( - t, - [ - { - key: 'optimize', - value: function(e) { - i( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'optimize', - this - ).call(this, e), - this.domNode.tagName !== - this.statics.tagName[0] && - this.replaceWith(this.statics.blotName); - } - } - ], - [ - { - key: 'create', - value: function() { - return i( - t.__proto__ || Object.getPrototypeOf(t), - 'create', - this - ).call(this); - } - }, - { - key: 'formats', - value: function() { - return !0; - } - } - ] - ), - t - ); - })(((r = a) && r.__esModule ? r : { default: r }).default); - (u.blotName = 'bold'), - (u.tagName = ['STRONG', 'B']), - (t.default = u); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.addControls = t.default = void 0); - var r = function(e, t) { - if (Array.isArray(e)) return e; - if (Symbol.iterator in Object(e)) - return (function(e, t) { - var n = [], - r = !0, - o = !1, - i = void 0; - try { - for ( - var a, s = e[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !t || n.length !== t); - r = !0 - ); - } catch (e) { - (o = !0), (i = e); - } finally { - try { - !r && s.return && s.return(); - } finally { - if (o) throw i; - } - } - return n; - })(e, t); - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance' - ); - }, - o = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - i = l(n(2)), - a = l(n(0)), - s = l(n(5)), - c = l(n(10)), - u = l(n(9)); - function l(e) { - return e && e.__esModule ? e : { default: e }; - } - function f(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } - var d = (0, c.default)('quill:toolbar'), - p = (function(e) { - function t(e, n) { - !(function(e, t) { - if (!(e instanceof t)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, t); - var o, - i = f( - this, - (t.__proto__ || Object.getPrototypeOf(t)).call( - this, - e, - n - ) - ); - if (Array.isArray(i.options.container)) { - var a = document.createElement('div'); - g(a, i.options.container), - e.container.parentNode.insertBefore(a, e.container), - (i.container = a); - } else - 'string' == typeof i.options.container - ? (i.container = document.querySelector( - i.options.container - )) - : (i.container = i.options.container); - return i.container instanceof HTMLElement - ? (i.container.classList.add('ql-toolbar'), - (i.controls = []), - (i.handlers = {}), - Object.keys(i.options.handlers).forEach(function(e) { - i.addHandler(e, i.options.handlers[e]); - }), - [].forEach.call( - i.container.querySelectorAll('button, select'), - function(e) { - i.attach(e); - } - ), - i.quill.on(s.default.events.EDITOR_CHANGE, function( - e, - t - ) { - e === s.default.events.SELECTION_CHANGE && - i.update(t); - }), - i.quill.on( - s.default.events.SCROLL_OPTIMIZE, - function() { - var e = i.quill.selection.getRange(), - t = r(e, 1)[0]; - i.update(t); - } - ), - i) - : ((o = d.error( - 'Container required for toolbar', - i.options - )), - f(i, o)); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(t, e), - o(t, [ - { - key: 'addHandler', - value: function(e, t) { - this.handlers[e] = t; - } - }, - { - key: 'attach', - value: function(e) { - var t = this, - n = [].find.call(e.classList, function(e) { - return 0 === e.indexOf('ql-'); - }); - if (n) { - if ( - ((n = n.slice('ql-'.length)), - 'BUTTON' === e.tagName && - e.setAttribute('type', 'button'), - null == this.handlers[n]) - ) { - if ( - null != this.quill.scroll.whitelist && - null == this.quill.scroll.whitelist[n] - ) - return void d.warn( - 'ignoring attaching to disabled format', - n, - e - ); - if (null == a.default.query(n)) - return void d.warn( - 'ignoring attaching to nonexistent format', - n, - e - ); - } - var o = - 'SELECT' === e.tagName ? 'change' : 'click'; - e.addEventListener(o, function(o) { - var c = void 0; - if ('SELECT' === e.tagName) { - if (e.selectedIndex < 0) return; - var u = e.options[e.selectedIndex]; - c = - !u.hasAttribute('selected') && - (u.value || !1); - } else (c = !e.classList.contains('ql-active') && (e.value || !e.hasAttribute('value'))), o.preventDefault(); - t.quill.focus(); - var l = t.quill.selection.getRange(), - f = r(l, 1)[0]; - if (null != t.handlers[n]) - t.handlers[n].call(t, c); - else if ( - a.default.query(n).prototype instanceof - a.default.Embed - ) { - if (!(c = prompt('Enter ' + n))) return; - t.quill.updateContents( - new i.default() - .retain(f.index) - .delete(f.length) - .insert( - (function(e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e - ); - })({}, n, c) - ), - s.default.sources.USER - ); - } else - t.quill.format(n, c, s.default.sources.USER); - t.update(f); - }), - this.controls.push([n, e]); - } - } - }, - { - key: 'update', - value: function(e) { - var t = null == e ? {} : this.quill.getFormat(e); - this.controls.forEach(function(n) { - var o = r(n, 2), - i = o[0], - a = o[1]; - if ('SELECT' === a.tagName) { - var s = void 0; - if (null == e) s = null; - else if (null == t[i]) - s = a.querySelector('option[selected]'); - else if (!Array.isArray(t[i])) { - var c = t[i]; - 'string' == typeof c && - (c = c.replace(/\"/g, '\\"')), - (s = a.querySelector( - 'option[value="' + c + '"]' - )); - } - null == s - ? ((a.value = ''), (a.selectedIndex = -1)) - : (s.selected = !0); - } else if (null == e) - a.classList.remove('ql-active'); - else if (a.hasAttribute('value')) { - var u = - t[i] === a.getAttribute('value') || - (null != t[i] && - t[i].toString() === - a.getAttribute('value')) || - (null == t[i] && !a.getAttribute('value')); - a.classList.toggle('ql-active', u); - } else - a.classList.toggle('ql-active', null != t[i]); - }); - } - } - ]), - t - ); - })(u.default); - function h(e, t, n) { - var r = document.createElement('button'); - r.setAttribute('type', 'button'), - r.classList.add('ql-' + t), - null != n && (r.value = n), - e.appendChild(r); - } - function g(e, t) { - Array.isArray(t[0]) || (t = [t]), - t.forEach(function(t) { - var n = document.createElement('span'); - n.classList.add('ql-formats'), - t.forEach(function(e) { - if ('string' == typeof e) h(n, e); - else { - var t = Object.keys(e)[0], - r = e[t]; - Array.isArray(r) - ? (function(e, t, n) { - var r = document.createElement('select'); - r.classList.add('ql-' + t), - n.forEach(function(e) { - var t = document.createElement('option'); - !1 !== e - ? t.setAttribute('value', e) - : t.setAttribute( - 'selected', - 'selected' - ), - r.appendChild(t); - }), - e.appendChild(r); - })(n, t, r) - : h(n, t, r); - } - }), - e.appendChild(n); - }); - } - (p.DEFAULTS = {}), - (p.DEFAULTS = { - container: null, - handlers: { - clean: function() { - var e = this, - t = this.quill.getSelection(); - if (null != t) - if (0 == t.length) { - var n = this.quill.getFormat(); - Object.keys(n).forEach(function(t) { - null != - a.default.query(t, a.default.Scope.INLINE) && - e.quill.format(t, !1); - }); - } else - this.quill.removeFormat(t, s.default.sources.USER); - }, - direction: function(e) { - var t = this.quill.getFormat().align; - 'rtl' === e && null == t - ? this.quill.format( - 'align', - 'right', - s.default.sources.USER - ) - : e || - 'right' !== t || - this.quill.format( - 'align', - !1, - s.default.sources.USER - ), - this.quill.format( - 'direction', - e, - s.default.sources.USER - ); - }, - indent: function(e) { - var t = this.quill.getSelection(), - n = this.quill.getFormat(t), - r = parseInt(n.indent || 0); - if ('+1' === e || '-1' === e) { - var o = '+1' === e ? 1 : -1; - 'rtl' === n.direction && (o *= -1), - this.quill.format( - 'indent', - r + o, - s.default.sources.USER - ); - } - }, - link: function(e) { - !0 === e && (e = prompt('Enter link URL:')), - this.quill.format('link', e, s.default.sources.USER); - }, - list: function(e) { - var t = this.quill.getSelection(), - n = this.quill.getFormat(t); - 'check' === e - ? 'checked' === n.list || 'unchecked' === n.list - ? this.quill.format( - 'list', - !1, - s.default.sources.USER - ) - : this.quill.format( - 'list', - 'unchecked', - s.default.sources.USER - ) - : this.quill.format( - 'list', - e, - s.default.sources.USER - ); - } - } - }), - (t.default = p), - (t.addControls = g); - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r, - o = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - i = function e(t, n, r) { - null === t && (t = Function.prototype); - var o = Object.getOwnPropertyDescriptor(t, n); - if (void 0 === o) { - var i = Object.getPrototypeOf(t); - return null === i ? void 0 : e(i, n, r); - } - if ('value' in o) return o.value; - var a = o.get; - return void 0 !== a ? a.call(r) : void 0; - }, - a = n(28), - s = (function(e) { - function t(e, n) { - !(function(e, t) { - if (!(e instanceof t)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, t); - var r = (function(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || - ('object' != typeof t && 'function' != typeof t) - ? e - : t; - })( - this, - (t.__proto__ || Object.getPrototypeOf(t)).call(this, e) - ); - return ( - (r.label.innerHTML = n), - r.container.classList.add('ql-color-picker'), - [].slice - .call( - r.container.querySelectorAll('.ql-picker-item'), - 0, - 7 - ) - .forEach(function(e) { - e.classList.add('ql-primary'); - }), - r - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(t, e), - o(t, [ - { - key: 'buildItem', - value: function(e) { - var n = i( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'buildItem', - this - ).call(this, e); - return ( - (n.style.backgroundColor = - e.getAttribute('value') || ''), - n - ); - } - }, - { - key: 'selectItem', - value: function(e, n) { - i( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'selectItem', - this - ).call(this, e, n); - var r = this.label.querySelector('.ql-color-label'), - o = (e && e.getAttribute('data-value')) || ''; - r && - ('line' === r.tagName - ? (r.style.stroke = o) - : (r.style.fill = o)); - } - } - ]), - t - ); - })(((r = a) && r.__esModule ? r : { default: r }).default); - t.default = s; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r, - o = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - i = n(28), - a = (function(e) { - function t(e, n) { - !(function(e, t) { - if (!(e instanceof t)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, t); - var r = (function(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || - ('object' != typeof t && 'function' != typeof t) - ? e - : t; - })( - this, - (t.__proto__ || Object.getPrototypeOf(t)).call(this, e) - ); - return ( - r.container.classList.add('ql-icon-picker'), - [].forEach.call( - r.container.querySelectorAll('.ql-picker-item'), - function(e) { - e.innerHTML = n[e.getAttribute('data-value') || '']; - } - ), - (r.defaultItem = r.container.querySelector( - '.ql-selected' - )), - r.selectItem(r.defaultItem), - r - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(t, e), - o(t, [ - { - key: 'selectItem', - value: function(e, n) { - (function e(t, n, r) { - null === t && (t = Function.prototype); - var o = Object.getOwnPropertyDescriptor(t, n); - if (void 0 === o) { - var i = Object.getPrototypeOf(t); - return null === i ? void 0 : e(i, n, r); - } - if ('value' in o) return o.value; - var a = o.get; - return void 0 !== a ? a.call(r) : void 0; - })( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'selectItem', - this - ).call(this, e, n), - (e = e || this.defaultItem), - (this.label.innerHTML = e.innerHTML); - } - } - ]), - t - ); - })(((r = i) && r.__esModule ? r : { default: r }).default); - t.default = a; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - o = (function() { - function e(t, n) { - var r = this; - !(function(e, t) { - if (!(e instanceof t)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, e), - (this.quill = t), - (this.boundsContainer = n || document.body), - (this.root = t.addContainer('ql-tooltip')), - (this.root.innerHTML = this.constructor.TEMPLATE), - this.quill.root === this.quill.scrollingContainer && - this.quill.root.addEventListener( - 'scroll', - function() { - r.root.style.marginTop = - -1 * r.quill.root.scrollTop + 'px'; - } - ), - this.hide(); - } - return ( - r(e, [ - { - key: 'hide', - value: function() { - this.root.classList.add('ql-hidden'); - } - }, - { - key: 'position', - value: function(e) { - var t = - e.left + - e.width / 2 - - this.root.offsetWidth / 2, - n = e.bottom + this.quill.root.scrollTop; - (this.root.style.left = t + 'px'), - (this.root.style.top = n + 'px'), - this.root.classList.remove('ql-flip'); - var r = this.boundsContainer.getBoundingClientRect(), - o = this.root.getBoundingClientRect(), - i = 0; - if ( - (o.right > r.right && - ((i = r.right - o.right), - (this.root.style.left = t + i + 'px')), - o.left < r.left && - ((i = r.left - o.left), - (this.root.style.left = t + i + 'px')), - o.bottom > r.bottom) - ) { - var a = o.bottom - o.top, - s = e.bottom - e.top + a; - (this.root.style.top = n - s + 'px'), - this.root.classList.add('ql-flip'); - } - return i; - } - }, - { - key: 'show', - value: function() { - this.root.classList.remove('ql-editing'), - this.root.classList.remove('ql-hidden'); - } - } - ]), - e - ); - })(); - t.default = o; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r = function(e, t) { - if (Array.isArray(e)) return e; - if (Symbol.iterator in Object(e)) - return (function(e, t) { - var n = [], - r = !0, - o = !1, - i = void 0; - try { - for ( - var a, s = e[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !t || n.length !== t); - r = !0 - ); - } catch (e) { - (o = !0), (i = e); - } finally { - try { - !r && s.return && s.return(); - } finally { - if (o) throw i; - } - } - return n; - })(e, t); - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance' - ); - }, - o = function e(t, n, r) { - null === t && (t = Function.prototype); - var o = Object.getOwnPropertyDescriptor(t, n); - if (void 0 === o) { - var i = Object.getPrototypeOf(t); - return null === i ? void 0 : e(i, n, r); - } - if ('value' in o) return o.value; - var a = o.get; - return void 0 !== a ? a.call(r) : void 0; - }, - i = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - a = p(n(3)), - s = p(n(8)), - c = n(43), - u = p(c), - l = p(n(27)), - f = n(15), - d = p(n(41)); - function p(e) { - return e && e.__esModule ? e : { default: e }; - } - function h(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function g(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } - function m(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - } - var b = [ - [{ header: ['1', '2', '3', !1] }], - ['bold', 'italic', 'underline', 'link'], - [{ list: 'ordered' }, { list: 'bullet' }], - ['clean'] - ], - y = (function(e) { - function t(e, n) { - h(this, t), - null != n.modules.toolbar && - null == n.modules.toolbar.container && - (n.modules.toolbar.container = b); - var r = g( - this, - (t.__proto__ || Object.getPrototypeOf(t)).call( - this, - e, - n - ) - ); - return r.quill.container.classList.add('ql-snow'), r; - } - return ( - m(t, e), - i(t, [ - { - key: 'extendToolbar', - value: function(e) { - e.container.classList.add('ql-snow'), - this.buildButtons( - [].slice.call( - e.container.querySelectorAll('button') - ), - d.default - ), - this.buildPickers( - [].slice.call( - e.container.querySelectorAll('select') - ), - d.default - ), - (this.tooltip = new v( - this.quill, - this.options.bounds - )), - e.container.querySelector('.ql-link') && - this.quill.keyboard.addBinding( - { key: 'K', shortKey: !0 }, - function(t, n) { - e.handlers.link.call(e, !n.format.link); - } - ); - } - } - ]), - t - ); - })(u.default); - y.DEFAULTS = (0, a.default)(!0, {}, u.default.DEFAULTS, { - modules: { - toolbar: { - handlers: { - link: function(e) { - if (e) { - var t = this.quill.getSelection(); - if (null == t || 0 == t.length) return; - var n = this.quill.getText(t); - /^\S+@\S+\.\S+$/.test(n) && - 0 !== n.indexOf('mailto:') && - (n = 'mailto:' + n), - this.quill.theme.tooltip.edit('link', n); - } else this.quill.format('link', !1); - } - } - } - } - }); - var v = (function(e) { - function t(e, n) { - h(this, t); - var r = g( - this, - (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n) - ); - return ( - (r.preview = r.root.querySelector('a.ql-preview')), r - ); - } - return ( - m(t, e), - i(t, [ - { - key: 'listen', - value: function() { - var e = this; - o( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'listen', - this - ).call(this), - this.root - .querySelector('a.ql-action') - .addEventListener('click', function(t) { - e.root.classList.contains('ql-editing') - ? e.save() - : e.edit('link', e.preview.textContent), - t.preventDefault(); - }), - this.root - .querySelector('a.ql-remove') - .addEventListener('click', function(t) { - if (null != e.linkRange) { - var n = e.linkRange; - e.restoreFocus(), - e.quill.formatText( - n, - 'link', - !1, - s.default.sources.USER - ), - delete e.linkRange; - } - t.preventDefault(), e.hide(); - }), - this.quill.on( - s.default.events.SELECTION_CHANGE, - function(t, n, o) { - if (null != t) { - if ( - 0 === t.length && - o === s.default.sources.USER - ) { - var i = e.quill.scroll.descendant( - l.default, - t.index - ), - a = r(i, 2), - c = a[0], - u = a[1]; - if (null != c) { - e.linkRange = new f.Range( - t.index - u, - c.length() - ); - var d = l.default.formats(c.domNode); - return ( - (e.preview.textContent = d), - e.preview.setAttribute('href', d), - e.show(), - void e.position( - e.quill.getBounds(e.linkRange) - ) - ); - } - } else delete e.linkRange; - e.hide(); - } - } - ); - } - }, - { - key: 'show', - value: function() { - o( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'show', - this - ).call(this), - this.root.removeAttribute('data-mode'); - } - } - ]), - t - ); - })(c.BaseTooltip); - (v.TEMPLATE = [ - '', - '', - '', - '' - ].join('')), - (t.default = y); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r = N(n(29)), - o = n(36), - i = n(38), - a = n(64), - s = N(n(65)), - c = N(n(66)), - u = n(67), - l = N(u), - f = n(37), - d = n(26), - p = n(39), - h = n(40), - g = N(n(56)), - m = N(n(68)), - b = N(n(27)), - y = N(n(69)), - v = N(n(70)), - _ = N(n(71)), - x = N(n(72)), - w = N(n(73)), - M = n(13), - k = N(M), - S = N(n(74)), - A = N(n(75)), - O = N(n(57)), - E = N(n(41)), - T = N(n(28)), - C = N(n(59)), - L = N(n(60)), - P = N(n(61)), - D = N(n(108)), - z = N(n(62)); - function N(e) { - return e && e.__esModule ? e : { default: e }; - } - r.default.register( - { - 'attributors/attribute/direction': i.DirectionAttribute, - 'attributors/class/align': o.AlignClass, - 'attributors/class/background': f.BackgroundClass, - 'attributors/class/color': d.ColorClass, - 'attributors/class/direction': i.DirectionClass, - 'attributors/class/font': p.FontClass, - 'attributors/class/size': h.SizeClass, - 'attributors/style/align': o.AlignStyle, - 'attributors/style/background': f.BackgroundStyle, - 'attributors/style/color': d.ColorStyle, - 'attributors/style/direction': i.DirectionStyle, - 'attributors/style/font': p.FontStyle, - 'attributors/style/size': h.SizeStyle - }, - !0 - ), - r.default.register( - { - 'formats/align': o.AlignClass, - 'formats/direction': i.DirectionClass, - 'formats/indent': a.IndentClass, - 'formats/background': f.BackgroundStyle, - 'formats/color': d.ColorStyle, - 'formats/font': p.FontClass, - 'formats/size': h.SizeClass, - 'formats/blockquote': s.default, - 'formats/code-block': k.default, - 'formats/header': c.default, - 'formats/list': l.default, - 'formats/bold': g.default, - 'formats/code': M.Code, - 'formats/italic': m.default, - 'formats/link': b.default, - 'formats/script': y.default, - 'formats/strike': v.default, - 'formats/underline': _.default, - 'formats/image': x.default, - 'formats/video': w.default, - 'formats/list/item': u.ListItem, - 'modules/formula': S.default, - 'modules/syntax': A.default, - 'modules/toolbar': O.default, - 'themes/bubble': D.default, - 'themes/snow': z.default, - 'ui/icons': E.default, - 'ui/picker': T.default, - 'ui/icon-picker': L.default, - 'ui/color-picker': C.default, - 'ui/tooltip': P.default - }, - !0 - ), - (t.default = r.default); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.IndentClass = void 0); - var r, - o = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - i = function e(t, n, r) { - null === t && (t = Function.prototype); - var o = Object.getOwnPropertyDescriptor(t, n); - if (void 0 === o) { - var i = Object.getPrototypeOf(t); - return null === i ? void 0 : e(i, n, r); - } - if ('value' in o) return o.value; - var a = o.get; - return void 0 !== a ? a.call(r) : void 0; - }, - a = n(0), - s = (r = a) && r.__esModule ? r : { default: r }; - function c(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function u(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } - var l = new ((function(e) { - function t() { - return ( - c(this, t), - u( - this, - (t.__proto__ || Object.getPrototypeOf(t)).apply( - this, - arguments - ) - ) - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(t, e), - o(t, [ - { - key: 'add', - value: function(e, n) { - if ('+1' === n || '-1' === n) { - var r = this.value(e) || 0; - n = '+1' === n ? r + 1 : r - 1; - } - return 0 === n - ? (this.remove(e), !0) - : i( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'add', - this - ).call(this, e, n); - } - }, - { - key: 'canAdd', - value: function(e, n) { - return ( - i( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'canAdd', - this - ).call(this, e, n) || - i( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'canAdd', - this - ).call(this, e, parseInt(n)) - ); - } - }, - { - key: 'value', - value: function(e) { - return ( - parseInt( - i( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'value', - this - ).call(this, e) - ) || void 0 - ); - } - } - ]), - t - ); - })(s.default.Attributor.Class))('indent', 'ql-indent', { - scope: s.default.Scope.BLOCK, - whitelist: [1, 2, 3, 4, 5, 6, 7, 8] - }); - t.IndentClass = l; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r, - o = n(4); - function i(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function a(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } - var s = (function(e) { - function t() { - return ( - i(this, t), - a( - this, - (t.__proto__ || Object.getPrototypeOf(t)).apply( - this, - arguments - ) - ) - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(t, e), - t - ); - })(((r = o) && r.__esModule ? r : { default: r }).default); - (s.blotName = 'blockquote'), - (s.tagName = 'blockquote'), - (t.default = s); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r, - o = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - i = n(4); - function a(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function s(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } - var c = (function(e) { - function t() { - return ( - a(this, t), - s( - this, - (t.__proto__ || Object.getPrototypeOf(t)).apply( - this, - arguments - ) - ) - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(t, e), - o(t, null, [ - { - key: 'formats', - value: function(e) { - return this.tagName.indexOf(e.tagName) + 1; - } - } - ]), - t - ); - })(((r = i) && r.__esModule ? r : { default: r }).default); - (c.blotName = 'header'), - (c.tagName = ['H1', 'H2', 'H3', 'H4', 'H5', 'H6']), - (t.default = c); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = t.ListItem = void 0); - var r = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - o = function e(t, n, r) { - null === t && (t = Function.prototype); - var o = Object.getOwnPropertyDescriptor(t, n); - if (void 0 === o) { - var i = Object.getPrototypeOf(t); - return null === i ? void 0 : e(i, n, r); - } - if ('value' in o) return o.value; - var a = o.get; - return void 0 !== a ? a.call(r) : void 0; - }, - i = c(n(0)), - a = c(n(4)), - s = c(n(25)); - function c(e) { - return e && e.__esModule ? e : { default: e }; - } - function u(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function l(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } - function f(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - } - var d = (function(e) { - function t() { - return ( - u(this, t), - l( - this, - (t.__proto__ || Object.getPrototypeOf(t)).apply( - this, - arguments - ) - ) - ); - } - return ( - f(t, e), - r( - t, - [ - { - key: 'format', - value: function(e, n) { - e !== p.blotName || n - ? o( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'format', - this - ).call(this, e, n) - : this.replaceWith( - i.default.create(this.statics.scope) - ); - } - }, - { - key: 'remove', - value: function() { - null == this.prev && null == this.next - ? this.parent.remove() - : o( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'remove', - this - ).call(this); - } - }, - { - key: 'replaceWith', - value: function(e, n) { - return ( - this.parent.isolate( - this.offset(this.parent), - this.length() - ), - e === this.parent.statics.blotName - ? (this.parent.replaceWith(e, n), this) - : (this.parent.unwrap(), - o( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'replaceWith', - this - ).call(this, e, n)) - ); - } - } - ], - [ - { - key: 'formats', - value: function(e) { - return e.tagName === this.tagName - ? void 0 - : o( - t.__proto__ || Object.getPrototypeOf(t), - 'formats', - this - ).call(this, e); - } - } - ] - ), - t - ); - })(a.default); - (d.blotName = 'list-item'), (d.tagName = 'LI'); - var p = (function(e) { - function t(e) { - u(this, t); - var n = l( - this, - (t.__proto__ || Object.getPrototypeOf(t)).call(this, e) - ), - r = function(t) { - if (t.target.parentNode === e) { - var r = n.statics.formats(e), - o = i.default.find(t.target); - 'checked' === r - ? o.format('list', 'unchecked') - : 'unchecked' === r && o.format('list', 'checked'); - } - }; - return ( - e.addEventListener('touchstart', r), - e.addEventListener('mousedown', r), - n - ); - } - return ( - f(t, e), - r(t, null, [ - { - key: 'create', - value: function(e) { - var n = 'ordered' === e ? 'OL' : 'UL', - r = o( - t.__proto__ || Object.getPrototypeOf(t), - 'create', - this - ).call(this, n); - return ( - ('checked' !== e && 'unchecked' !== e) || - r.setAttribute('data-checked', 'checked' === e), - r - ); - } - }, - { - key: 'formats', - value: function(e) { - return 'OL' === e.tagName - ? 'ordered' - : 'UL' === e.tagName - ? e.hasAttribute('data-checked') - ? 'true' === e.getAttribute('data-checked') - ? 'checked' - : 'unchecked' - : 'bullet' - : void 0; - } - } - ]), - r(t, [ - { - key: 'format', - value: function(e, t) { - this.children.length > 0 && - this.children.tail.format(e, t); - } - }, - { - key: 'formats', - value: function() { - return (function(e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e - ); - })( - {}, - this.statics.blotName, - this.statics.formats(this.domNode) - ); - } - }, - { - key: 'insertBefore', - value: function(e, n) { - if (e instanceof d) - o( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'insertBefore', - this - ).call(this, e, n); - else { - var r = null == n ? this.length() : n.offset(this), - i = this.split(r); - i.parent.insertBefore(e, i); - } - } - }, - { - key: 'optimize', - value: function(e) { - o( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'optimize', - this - ).call(this, e); - var n = this.next; - null != n && - n.prev === this && - n.statics.blotName === this.statics.blotName && - n.domNode.tagName === this.domNode.tagName && - n.domNode.getAttribute('data-checked') === - this.domNode.getAttribute('data-checked') && - (n.moveChildren(this), n.remove()); - } - }, - { - key: 'replace', - value: function(e) { - if (e.statics.blotName !== this.statics.blotName) { - var n = i.default.create(this.statics.defaultChild); - e.moveChildren(n), this.appendChild(n); - } - o( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'replace', - this - ).call(this, e); - } - } - ]), - t - ); - })(s.default); - (p.blotName = 'list'), - (p.scope = i.default.Scope.BLOCK_BLOT), - (p.tagName = ['OL', 'UL']), - (p.defaultChild = 'list-item'), - (p.allowedChildren = [d]), - (t.ListItem = d), - (t.default = p); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r, - o = n(56); - function i(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function a(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } - var s = (function(e) { - function t() { - return ( - i(this, t), - a( - this, - (t.__proto__ || Object.getPrototypeOf(t)).apply( - this, - arguments - ) - ) - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(t, e), - t - ); - })(((r = o) && r.__esModule ? r : { default: r }).default); - (s.blotName = 'italic'), - (s.tagName = ['EM', 'I']), - (t.default = s); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r, - o = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - i = n(6); - function a(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function s(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } - var c = (function(e) { - function t() { - return ( - a(this, t), - s( - this, - (t.__proto__ || Object.getPrototypeOf(t)).apply( - this, - arguments - ) - ) - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(t, e), - o(t, null, [ - { - key: 'create', - value: function(e) { - return 'super' === e - ? document.createElement('sup') - : 'sub' === e - ? document.createElement('sub') - : (function e(t, n, r) { - null === t && (t = Function.prototype); - var o = Object.getOwnPropertyDescriptor(t, n); - if (void 0 === o) { - var i = Object.getPrototypeOf(t); - return null === i ? void 0 : e(i, n, r); - } - if ('value' in o) return o.value; - var a = o.get; - return void 0 !== a ? a.call(r) : void 0; - })( - t.__proto__ || Object.getPrototypeOf(t), - 'create', - this - ).call(this, e); - } - }, - { - key: 'formats', - value: function(e) { - return 'SUB' === e.tagName - ? 'sub' - : 'SUP' === e.tagName - ? 'super' - : void 0; - } - } - ]), - t - ); - })(((r = i) && r.__esModule ? r : { default: r }).default); - (c.blotName = 'script'), - (c.tagName = ['SUB', 'SUP']), - (t.default = c); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r, - o = n(6); - function i(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function a(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } - var s = (function(e) { - function t() { - return ( - i(this, t), - a( - this, - (t.__proto__ || Object.getPrototypeOf(t)).apply( - this, - arguments - ) - ) - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(t, e), - t - ); - })(((r = o) && r.__esModule ? r : { default: r }).default); - (s.blotName = 'strike'), (s.tagName = 'S'), (t.default = s); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r, - o = n(6); - function i(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function a(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } - var s = (function(e) { - function t() { - return ( - i(this, t), - a( - this, - (t.__proto__ || Object.getPrototypeOf(t)).apply( - this, - arguments - ) - ) - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(t, e), - t - ); - })(((r = o) && r.__esModule ? r : { default: r }).default); - (s.blotName = 'underline'), (s.tagName = 'U'), (t.default = s); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r, - o = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - i = function e(t, n, r) { - null === t && (t = Function.prototype); - var o = Object.getOwnPropertyDescriptor(t, n); - if (void 0 === o) { - var i = Object.getPrototypeOf(t); - return null === i ? void 0 : e(i, n, r); - } - if ('value' in o) return o.value; - var a = o.get; - return void 0 !== a ? a.call(r) : void 0; - }, - a = n(0), - s = (r = a) && r.__esModule ? r : { default: r }, - c = n(27); - function u(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function l(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } - var f = ['alt', 'height', 'width'], - d = (function(e) { - function t() { - return ( - u(this, t), - l( - this, - (t.__proto__ || Object.getPrototypeOf(t)).apply( - this, - arguments - ) - ) - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(t, e), - o( - t, - [ - { - key: 'format', - value: function(e, n) { - f.indexOf(e) > -1 - ? n - ? this.domNode.setAttribute(e, n) - : this.domNode.removeAttribute(e) - : i( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'format', - this - ).call(this, e, n); - } - } - ], - [ - { - key: 'create', - value: function(e) { - var n = i( - t.__proto__ || Object.getPrototypeOf(t), - 'create', - this - ).call(this, e); - return ( - 'string' == typeof e && - n.setAttribute('src', this.sanitize(e)), - n - ); - } - }, - { - key: 'formats', - value: function(e) { - return f.reduce(function(t, n) { - return ( - e.hasAttribute(n) && - (t[n] = e.getAttribute(n)), - t - ); - }, {}); - } - }, - { - key: 'match', - value: function(e) { - return ( - /\.(jpe?g|gif|png)$/.test(e) || - /^data:image\/.+;base64/.test(e) - ); - } - }, - { - key: 'sanitize', - value: function(e) { - return (0, c.sanitize)(e, [ - 'http', - 'https', - 'data' - ]) - ? e - : '//:0'; - } - }, - { - key: 'value', - value: function(e) { - return e.getAttribute('src'); - } - } - ] - ), - t - ); - })(s.default.Embed); - (d.blotName = 'image'), (d.tagName = 'IMG'), (t.default = d); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r, - o = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - i = function e(t, n, r) { - null === t && (t = Function.prototype); - var o = Object.getOwnPropertyDescriptor(t, n); - if (void 0 === o) { - var i = Object.getPrototypeOf(t); - return null === i ? void 0 : e(i, n, r); - } - if ('value' in o) return o.value; - var a = o.get; - return void 0 !== a ? a.call(r) : void 0; - }, - a = n(4), - s = n(27), - c = (r = s) && r.__esModule ? r : { default: r }; - function u(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function l(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } - var f = ['height', 'width'], - d = (function(e) { - function t() { - return ( - u(this, t), - l( - this, - (t.__proto__ || Object.getPrototypeOf(t)).apply( - this, - arguments - ) - ) - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(t, e), - o( - t, - [ - { - key: 'format', - value: function(e, n) { - f.indexOf(e) > -1 - ? n - ? this.domNode.setAttribute(e, n) - : this.domNode.removeAttribute(e) - : i( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'format', - this - ).call(this, e, n); - } - } - ], - [ - { - key: 'create', - value: function(e) { - var n = i( - t.__proto__ || Object.getPrototypeOf(t), - 'create', - this - ).call(this, e); - return ( - n.setAttribute('frameborder', '0'), - n.setAttribute('allowfullscreen', !0), - n.setAttribute('src', this.sanitize(e)), - n - ); - } - }, - { - key: 'formats', - value: function(e) { - return f.reduce(function(t, n) { - return ( - e.hasAttribute(n) && - (t[n] = e.getAttribute(n)), - t - ); - }, {}); - } - }, - { - key: 'sanitize', - value: function(e) { - return c.default.sanitize(e); - } - }, - { - key: 'value', - value: function(e) { - return e.getAttribute('src'); - } - } - ] - ), - t - ); - })(a.BlockEmbed); - (d.blotName = 'video'), - (d.className = 'ql-video'), - (d.tagName = 'IFRAME'), - (t.default = d); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = t.FormulaBlot = void 0); - var r = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - o = s(n(35)), - i = s(n(5)), - a = s(n(9)); - function s(e) { - return e && e.__esModule ? e : { default: e }; - } - function c(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function u(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } - function l(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - } - var f = (function(e) { - function t() { - return ( - c(this, t), - u( - this, - (t.__proto__ || Object.getPrototypeOf(t)).apply( - this, - arguments - ) - ) - ); - } - return ( - l(t, e), - r(t, null, [ - { - key: 'create', - value: function(e) { - var n = (function e(t, n, r) { - null === t && (t = Function.prototype); - var o = Object.getOwnPropertyDescriptor(t, n); - if (void 0 === o) { - var i = Object.getPrototypeOf(t); - return null === i ? void 0 : e(i, n, r); - } - if ('value' in o) return o.value; - var a = o.get; - return void 0 !== a ? a.call(r) : void 0; - })( - t.__proto__ || Object.getPrototypeOf(t), - 'create', - this - ).call(this, e); - return ( - 'string' == typeof e && - (window.katex.render(e, n, { - throwOnError: !1, - errorColor: '#f00' - }), - n.setAttribute('data-value', e)), - n - ); - } - }, - { - key: 'value', - value: function(e) { - return e.getAttribute('data-value'); - } - } - ]), - t - ); - })(o.default); - (f.blotName = 'formula'), - (f.className = 'ql-formula'), - (f.tagName = 'SPAN'); - var d = (function(e) { - function t() { - c(this, t); - var e = u( - this, - (t.__proto__ || Object.getPrototypeOf(t)).call(this) - ); - if (null == window.katex) - throw new Error('Formula module requires KaTeX.'); - return e; - } - return ( - l(t, e), - r(t, null, [ - { - key: 'register', - value: function() { - i.default.register(f, !0); - } - } - ]), - t - ); - })(a.default); - (t.FormulaBlot = f), (t.default = d); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = t.CodeToken = t.CodeBlock = void 0); - var r = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - o = s(n(0)), - i = s(n(5)), - a = s(n(9)); - function s(e) { - return e && e.__esModule ? e : { default: e }; - } - function c(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function u(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } - function l(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - } - var f = (function(e) { - function t() { - return ( - c(this, t), - u( - this, - (t.__proto__ || Object.getPrototypeOf(t)).apply( - this, - arguments - ) - ) - ); - } - return ( - l(t, e), - r(t, [ - { - key: 'replaceWith', - value: function(e) { - (this.domNode.textContent = this.domNode.textContent), - this.attach(), - (function e(t, n, r) { - null === t && (t = Function.prototype); - var o = Object.getOwnPropertyDescriptor(t, n); - if (void 0 === o) { - var i = Object.getPrototypeOf(t); - return null === i ? void 0 : e(i, n, r); - } - if ('value' in o) return o.value; - var a = o.get; - return void 0 !== a ? a.call(r) : void 0; - })( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'replaceWith', - this - ).call(this, e); - } - }, - { - key: 'highlight', - value: function(e) { - var t = this.domNode.textContent; - this.cachedText !== t && - ((t.trim().length > 0 || null == this.cachedText) && - ((this.domNode.innerHTML = e(t)), - this.domNode.normalize(), - this.attach()), - (this.cachedText = t)); - } - } - ]), - t - ); - })(s(n(13)).default); - f.className = 'ql-syntax'; - var d = new o.default.Attributor.Class('token', 'hljs', { - scope: o.default.Scope.INLINE - }), - p = (function(e) { - function t(e, n) { - c(this, t); - var r = u( - this, - (t.__proto__ || Object.getPrototypeOf(t)).call( - this, - e, - n - ) - ); - if ('function' != typeof r.options.highlight) - throw new Error( - 'Syntax module requires highlight.js. Please include the library on the page before Quill.' - ); - var o = null; - return ( - r.quill.on( - i.default.events.SCROLL_OPTIMIZE, - function() { - clearTimeout(o), - (o = setTimeout(function() { - r.highlight(), (o = null); - }, r.options.interval)); - } - ), - r.highlight(), - r - ); - } - return ( - l(t, e), - r(t, null, [ - { - key: 'register', - value: function() { - i.default.register(d, !0), - i.default.register(f, !0); - } - } - ]), - r(t, [ - { - key: 'highlight', - value: function() { - var e = this; - if (!this.quill.selection.composing) { - this.quill.update(i.default.sources.USER); - var t = this.quill.getSelection(); - this.quill.scroll - .descendants(f) - .forEach(function(t) { - t.highlight(e.options.highlight); - }), - this.quill.update(i.default.sources.SILENT), - null != t && - this.quill.setSelection( - t, - i.default.sources.SILENT - ); - } - } - } - ]), - t - ); - })(a.default); - (p.DEFAULTS = { - highlight: - null == window.hljs - ? null - : function(e) { - return window.hljs.highlightAuto(e).value; - }, - interval: 1e3 - }), - (t.CodeBlock = f), - (t.CodeToken = d), - (t.default = p); - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t) { - e.exports = - ' '; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = t.BubbleTooltip = void 0); - var r = function e(t, n, r) { - null === t && (t = Function.prototype); - var o = Object.getOwnPropertyDescriptor(t, n); - if (void 0 === o) { - var i = Object.getPrototypeOf(t); - return null === i ? void 0 : e(i, n, r); - } - if ('value' in o) return o.value; - var a = o.get; - return void 0 !== a ? a.call(r) : void 0; - }, - o = (function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - return function(t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; - }; - })(), - i = f(n(3)), - a = f(n(8)), - s = n(43), - c = f(s), - u = n(15), - l = f(n(41)); - function f(e) { - return e && e.__esModule ? e : { default: e }; - } - function d(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function p(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } - function h(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - } - var g = [ - ['bold', 'italic', 'link'], - [{ header: 1 }, { header: 2 }, 'blockquote'] - ], - m = (function(e) { - function t(e, n) { - d(this, t), - null != n.modules.toolbar && - null == n.modules.toolbar.container && - (n.modules.toolbar.container = g); - var r = p( - this, - (t.__proto__ || Object.getPrototypeOf(t)).call( - this, - e, - n - ) - ); - return r.quill.container.classList.add('ql-bubble'), r; - } - return ( - h(t, e), - o(t, [ - { - key: 'extendToolbar', - value: function(e) { - (this.tooltip = new b( - this.quill, - this.options.bounds - )), - this.tooltip.root.appendChild(e.container), - this.buildButtons( - [].slice.call( - e.container.querySelectorAll('button') - ), - l.default - ), - this.buildPickers( - [].slice.call( - e.container.querySelectorAll('select') - ), - l.default - ); - } - } - ]), - t - ); - })(c.default); - m.DEFAULTS = (0, i.default)(!0, {}, c.default.DEFAULTS, { - modules: { - toolbar: { - handlers: { - link: function(e) { - e - ? this.quill.theme.tooltip.edit() - : this.quill.format('link', !1); - } - } - } - } - }); - var b = (function(e) { - function t(e, n) { - d(this, t); - var r = p( - this, - (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n) - ); - return ( - r.quill.on(a.default.events.EDITOR_CHANGE, function( - e, - t, - n, - o - ) { - if (e === a.default.events.SELECTION_CHANGE) - if ( - null != t && - t.length > 0 && - o === a.default.sources.USER - ) { - r.show(), - (r.root.style.left = '0px'), - (r.root.style.width = ''), - (r.root.style.width = r.root.offsetWidth + 'px'); - var i = r.quill.getLines(t.index, t.length); - if (1 === i.length) - r.position(r.quill.getBounds(t)); - else { - var s = i[i.length - 1], - c = r.quill.getIndex(s), - l = Math.min( - s.length() - 1, - t.index + t.length - c - ), - f = r.quill.getBounds(new u.Range(c, l)); - r.position(f); - } - } else - document.activeElement !== r.textbox && - r.quill.hasFocus() && - r.hide(); - }), - r - ); - } - return ( - h(t, e), - o(t, [ - { - key: 'listen', - value: function() { - var e = this; - r( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'listen', - this - ).call(this), - this.root - .querySelector('.ql-close') - .addEventListener('click', function() { - e.root.classList.remove('ql-editing'); - }), - this.quill.on( - a.default.events.SCROLL_OPTIMIZE, - function() { - setTimeout(function() { - if (!e.root.classList.contains('ql-hidden')) { - var t = e.quill.getSelection(); - null != t && - e.position(e.quill.getBounds(t)); - } - }, 1); - } - ); - } - }, - { - key: 'cancel', - value: function() { - this.show(); - } - }, - { - key: 'position', - value: function(e) { - var n = r( - t.prototype.__proto__ || - Object.getPrototypeOf(t.prototype), - 'position', - this - ).call(this, e), - o = this.root.querySelector('.ql-tooltip-arrow'); - if (((o.style.marginLeft = ''), 0 === n)) return n; - o.style.marginLeft = - -1 * n - o.offsetWidth / 2 + 'px'; - } - } - ]), - t - ); - })(s.BaseTooltip); - (b.TEMPLATE = [ - '', - '
', - '', - '', - '
' - ].join('')), - (t.BubbleTooltip = b), - (t.default = m); - }, - function(e, t, n) { - e.exports = n(63); - } - ]).default; - }), - (e.exports = n()); - }.call(this, n(146).Buffer)); - }, - function(e, t, n) { - 'use strict'; - var r = n(0), - o = n(801); - if (void 0 === r) - throw Error( - 'create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.' - ); - var i = new r.Component().updater; - e.exports = o(r.Component, r.isValidElement, i); - }, - function(e, t, n) { - 'use strict'; - var r = n(417), - o = { - createEditor: function(e, t) { - var n = new r(e, t); - return ( - void 0 !== t.tabIndex && this.setEditorTabIndex(n, t.tabIndex), - this.hookEditor(n), - n - ); - }, - hookEditor: function(e) { - var t = this.makeUnprivilegedEditor(e); - (this.handleTextChange = function(n, r, o) { - this.onEditorChangeText && - (this.onEditorChangeText(e.root.innerHTML, n, o, t), - this.onEditorChangeSelection(e.getSelection(), o, t)); - }.bind(this)), - (this.handleSelectionChange = function(e, n, r) { - this.onEditorChangeSelection && - this.onEditorChangeSelection(e, r, t); - }.bind(this)), - e.on( - 'editor-change', - function(e, t, n, o) { - e === r.events.SELECTION_CHANGE && - this.handleSelectionChange(t, n, o), - e === r.events.TEXT_CHANGE && - this.handleTextChange(t, n, o); - }.bind(this) - ); - }, - unhookEditor: function(e) { - e.off('selection-change'), e.off('text-change'); - }, - setEditorReadOnly: function(e, t) { - t ? e.disable() : e.enable(); - }, - setEditorContents: function(e, t) { - var n = e.getSelection(); - 'string' == typeof t - ? e.setContents(e.clipboard.convert(t)) - : e.setContents(t), - n && e.hasFocus() && this.setEditorSelection(e, n); - }, - setEditorSelection: function(e, t) { - if (t) { - var n = e.getLength(); - (t.index = Math.max(0, Math.min(t.index, n - 1))), - (t.length = Math.max(0, Math.min(t.length, n - 1 - t.index))); - } - e.setSelection(t); - }, - setEditorTabIndex: function(e, t) { - e.editor && - e.editor.scroll && - e.editor.scroll.domNode && - (e.editor.scroll.domNode.tabIndex = t); - }, - makeUnprivilegedEditor: function(e) { - var t = e; - return { - getLength: function() { - return t.getLength.apply(t, arguments); - }, - getText: function() { - return t.getText.apply(t, arguments); - }, - getHTML: function() { - return t.root.innerHTML; - }, - getContents: function() { - return t.getContents.apply(t, arguments); - }, - getSelection: function() { - return t.getSelection.apply(t, arguments); - }, - getBounds: function() { - return t.getBounds.apply(t, arguments); - } - }; - } - }; - e.exports = o; - }, - function(e, t, n) { - var r = n(804)(n(805)); - e.exports = r; - }, - function(e, t, n) { - 'use strict'; - e.exports = (function(e) { - function t(t) { - var n = e.createElement.bind(null, t); - return (n.type = t), n; - } - return { - a: t('a'), - abbr: t('abbr'), - address: t('address'), - area: t('area'), - article: t('article'), - aside: t('aside'), - audio: t('audio'), - b: t('b'), - base: t('base'), - bdi: t('bdi'), - bdo: t('bdo'), - big: t('big'), - blockquote: t('blockquote'), - body: t('body'), - br: t('br'), - button: t('button'), - canvas: t('canvas'), - caption: t('caption'), - cite: t('cite'), - code: t('code'), - col: t('col'), - colgroup: t('colgroup'), - data: t('data'), - datalist: t('datalist'), - dd: t('dd'), - del: t('del'), - details: t('details'), - dfn: t('dfn'), - dialog: t('dialog'), - div: t('div'), - dl: t('dl'), - dt: t('dt'), - em: t('em'), - embed: t('embed'), - fieldset: t('fieldset'), - figcaption: t('figcaption'), - figure: t('figure'), - footer: t('footer'), - form: t('form'), - h1: t('h1'), - h2: t('h2'), - h3: t('h3'), - h4: t('h4'), - h5: t('h5'), - h6: t('h6'), - head: t('head'), - header: t('header'), - hgroup: t('hgroup'), - hr: t('hr'), - html: t('html'), - i: t('i'), - iframe: t('iframe'), - img: t('img'), - input: t('input'), - ins: t('ins'), - kbd: t('kbd'), - keygen: t('keygen'), - label: t('label'), - legend: t('legend'), - li: t('li'), - link: t('link'), - main: t('main'), - map: t('map'), - mark: t('mark'), - menu: t('menu'), - menuitem: t('menuitem'), - meta: t('meta'), - meter: t('meter'), - nav: t('nav'), - noscript: t('noscript'), - object: t('object'), - ol: t('ol'), - optgroup: t('optgroup'), - option: t('option'), - output: t('output'), - p: t('p'), - param: t('param'), - picture: t('picture'), - pre: t('pre'), - progress: t('progress'), - q: t('q'), - rp: t('rp'), - rt: t('rt'), - ruby: t('ruby'), - s: t('s'), - samp: t('samp'), - script: t('script'), - section: t('section'), - select: t('select'), - small: t('small'), - source: t('source'), - span: t('span'), - strong: t('strong'), - style: t('style'), - sub: t('sub'), - summary: t('summary'), - sup: t('sup'), - table: t('table'), - tbody: t('tbody'), - td: t('td'), - textarea: t('textarea'), - tfoot: t('tfoot'), - th: t('th'), - thead: t('thead'), - time: t('time'), - title: t('title'), - tr: t('tr'), - track: t('track'), - u: t('u'), - ul: t('ul'), - var: t('var'), - video: t('video'), - wbr: t('wbr'), - circle: t('circle'), - clipPath: t('clipPath'), - defs: t('defs'), - ellipse: t('ellipse'), - g: t('g'), - image: t('image'), - line: t('line'), - linearGradient: t('linearGradient'), - mask: t('mask'), - path: t('path'), - pattern: t('pattern'), - polygon: t('polygon'), - polyline: t('polyline'), - radialGradient: t('radialGradient'), - rect: t('rect'), - stop: t('stop'), - svg: t('svg'), - text: t('text'), - tspan: t('tspan') - }; - })(n(0)); - }, - function(e, t, n) { - 'use strict'; - n.r(t), - n.d(t, 'version', function() { - return r; - }), + n.d(t, 'version', function() { + return '5.15.0'; + }), n.d(t, 'bisect', function() { - return u; + return c; }), n.d(t, 'bisectRight', function() { - return s; + return a; }), n.d(t, 'bisectLeft', function() { - return c; + return s; }), n.d(t, 'ascending', function() { - return o; + return r; }), n.d(t, 'bisector', function() { - return i; + return o; }), n.d(t, 'cross', function() { - return d; + return f; }), n.d(t, 'descending', function() { - return p; + return d; }), n.d(t, 'deviation', function() { - return m; + return g; }), n.d(t, 'extent', function() { - return b; + return m; }), n.d(t, 'histogram', function() { - return L; + return C; }), n.d(t, 'thresholdFreedmanDiaconis', function() { - return D; + return P; }), n.d(t, 'thresholdScott', function() { - return z; + return D; }), n.d(t, 'thresholdSturges', function() { - return C; + return T; }), n.d(t, 'max', function() { - return N; + return j; }), n.d(t, 'mean', function() { - return j; + return z; }), n.d(t, 'median', function() { - return R; + return N; }), n.d(t, 'merge', function() { - return I; + return R; }), n.d(t, 'min', function() { - return F; + return I; }), n.d(t, 'pairs', function() { - return l; + return u; }), n.d(t, 'permute', function() { - return q; + return F; }), n.d(t, 'quantile', function() { - return P; + return L; }), n.d(t, 'range', function() { - return M; + return x; }), n.d(t, 'scan', function() { - return B; + return q; }), n.d(t, 'shuffle', function() { - return H; + return B; }), n.d(t, 'sum', function() { - return Y; + return H; }), n.d(t, 'ticks', function() { return O; @@ -83931,18248 +67492,36441 @@ object-assign return E; }), n.d(t, 'tickStep', function() { - return T; + return A; }), n.d(t, 'transpose', function() { - return W; + return Y; }), n.d(t, 'variance', function() { - return g; + return h; }), n.d(t, 'zip', function() { - return U; + return V; }), n.d(t, 'axisTop', function() { - return te; + return ie; }), n.d(t, 'axisRight', function() { - return ne; + return ae; }), n.d(t, 'axisBottom', function() { - return re; + return se; }), n.d(t, 'axisLeft', function() { - return oe; + return ce; }), n.d(t, 'brush', function() { - return Oo; + return jo; }), n.d(t, 'brushX', function() { - return So; + return Po; }), n.d(t, 'brushY', function() { - return Ao; + return Do; }), n.d(t, 'brushSelection', function() { - return ko; + return Lo; }), n.d(t, 'chord', function() { - return jo; + return Yo; }), n.d(t, 'ribbon', function() { - return $o; + return ri; }), n.d(t, 'nest', function() { - return ei; + return si; }), n.d(t, 'set', function() { - return ci; + return gi; }), n.d(t, 'map', function() { - return Zo; + return ai; }), n.d(t, 'keys', function() { - return ui; + return mi; }), n.d(t, 'values', function() { - return li; + return bi; }), n.d(t, 'entries', function() { - return fi; + return yi; }), n.d(t, 'color', function() { - return Wt; + return Kt; }), n.d(t, 'rgb', function() { - return Gt; + return Zt; }), n.d(t, 'hsl', function() { - return tn; + return sn; }), n.d(t, 'lab', function() { - return mi; + return Ci; }), n.d(t, 'hcl', function() { - return ki; + return Ii; }), n.d(t, 'lch', function() { - return Mi; + return Ri; }), n.d(t, 'gray', function() { - return gi; + return Ti; }), n.d(t, 'cubehelix', function() { - return Pi; + return Xi; }), n.d(t, 'contours', function() { - return Hi; + return oa; }), n.d(t, 'contourDensity', function() { - return Gi; + return la; }), n.d(t, 'dispatch', function() { - return fe; + return ge; }), n.d(t, 'drag', function() { - return ta; + return ba; }), n.d(t, 'dragDisable', function() { - return At; + return Lt; }), n.d(t, 'dragEnable', function() { - return Ot; + return Pt; }), n.d(t, 'dsvFormat', function() { - return ca; + return Ea; }), n.d(t, 'csvParse', function() { - return la; + return Ta; }), n.d(t, 'csvParseRows', function() { - return fa; + return Ca; }), n.d(t, 'csvFormat', function() { - return da; + return La; }), n.d(t, 'csvFormatBody', function() { - return pa; + return Pa; }), n.d(t, 'csvFormatRows', function() { - return ha; + return Da; }), n.d(t, 'csvFormatRow', function() { - return ga; + return ja; }), n.d(t, 'csvFormatValue', function() { - return ma; + return za; }), n.d(t, 'tsvParse', function() { - return ya; + return Ra; }), n.d(t, 'tsvParseRows', function() { - return va; + return Ia; }), n.d(t, 'tsvFormat', function() { - return _a; + return Fa; }), n.d(t, 'tsvFormatBody', function() { - return xa; + return qa; }), n.d(t, 'tsvFormatRows', function() { - return wa; + return Ba; }), n.d(t, 'tsvFormatRow', function() { - return Ma; + return Ha; }), n.d(t, 'tsvFormatValue', function() { - return ka; + return Ya; }), n.d(t, 'autoType', function() { - return Sa; + return Wa; }), n.d(t, 'easeLinear', function() { - return Oa; + return Ua; }), n.d(t, 'easeQuad', function() { - return Ca; + return Ka; }), n.d(t, 'easeQuadIn', function() { - return Ea; + return Xa; }), n.d(t, 'easeQuadOut', function() { - return Ta; + return Ga; }), n.d(t, 'easeQuadInOut', function() { - return Ca; + return Ka; }), n.d(t, 'easeCubic', function() { - return Xr; + return no; }), n.d(t, 'easeCubicIn', function() { - return Vr; + return eo; }), n.d(t, 'easeCubicOut', function() { - return Ur; + return to; }), n.d(t, 'easeCubicInOut', function() { - return Xr; + return no; }), n.d(t, 'easePoly', function() { - return Da; + return Ja; }), n.d(t, 'easePolyIn', function() { - return La; + return $a; }), n.d(t, 'easePolyOut', function() { - return Pa; + return Qa; }), n.d(t, 'easePolyInOut', function() { - return Da; + return Ja; }), n.d(t, 'easeSin', function() { - return Ia; + return rs; }), n.d(t, 'easeSinIn', function() { - return ja; + return ts; }), n.d(t, 'easeSinOut', function() { - return Ra; + return ns; }), n.d(t, 'easeSinInOut', function() { - return Ia; + return rs; }), n.d(t, 'easeExp', function() { - return Ba; + return as; }), n.d(t, 'easeExpIn', function() { - return Fa; + return os; }), n.d(t, 'easeExpOut', function() { - return qa; + return is; }), n.d(t, 'easeExpInOut', function() { - return Ba; + return as; }), n.d(t, 'easeCircle', function() { - return Wa; + return us; }), n.d(t, 'easeCircleIn', function() { - return Ha; + return ss; }), n.d(t, 'easeCircleOut', function() { - return Ya; + return cs; }), n.d(t, 'easeCircleInOut', function() { - return Wa; + return us; }), n.d(t, 'easeBounce', function() { - return Ua; + return ws; }), n.d(t, 'easeBounceIn', function() { - return Va; + return _s; }), n.d(t, 'easeBounceOut', function() { - return Ua; + return ws; }), n.d(t, 'easeBounceInOut', function() { - return Xa; + return xs; }), n.d(t, 'easeBack', function() { - return $a; + return Ss; }), n.d(t, 'easeBackIn', function() { - return Ga; + return Ms; }), n.d(t, 'easeBackOut', function() { - return Ka; + return ks; }), n.d(t, 'easeBackInOut', function() { - return $a; + return Ss; }), n.d(t, 'easeElastic', function() { - return Za; + return As; }), n.d(t, 'easeElasticIn', function() { - return Ja; + return Es; }), n.d(t, 'easeElasticOut', function() { - return Za; + return As; }), n.d(t, 'easeElasticInOut', function() { - return es; + return Ts; }), n.d(t, 'blob', function() { - return ns; + return Ls; }), n.d(t, 'buffer', function() { - return os; + return Ds; }), n.d(t, 'dsv', function() { - return cs; + return Rs; }), n.d(t, 'csv', function() { - return us; + return Is; }), n.d(t, 'tsv', function() { - return ls; + return Fs; }), n.d(t, 'image', function() { - return fs; + return qs; }), n.d(t, 'json', function() { - return ps; + return Hs; }), n.d(t, 'text', function() { - return as; + return zs; }), n.d(t, 'xml', function() { - return gs; + return Ws; }), n.d(t, 'html', function() { - return ms; + return Vs; }), n.d(t, 'svg', function() { - return bs; + return Us; }), n.d(t, 'forceCenter', function() { - return ys; + return Xs; }), n.d(t, 'forceCollide', function() { - return Ls; + return ac; }), n.d(t, 'forceLink', function() { - return zs; + return uc; }), n.d(t, 'forceManyBody', function() { - return Fs; + return gc; }), n.d(t, 'forceRadial', function() { - return qs; + return mc; }), n.d(t, 'forceSimulation', function() { - return Is; + return hc; }), n.d(t, 'forceX', function() { - return Bs; + return bc; }), n.d(t, 'forceY', function() { - return Hs; + return yc; }), n.d(t, 'formatDefaultLocale', function() { - return oc; + return zc; }), n.d(t, 'format', function() { - return $s; + return Oc; }), n.d(t, 'formatPrefix', function() { - return Qs; + return Ec; }), n.d(t, 'formatLocale', function() { - return rc; + return jc; }), n.d(t, 'formatSpecifier', function() { - return Us; + return xc; }), n.d(t, 'FormatSpecifier', function() { - return Xs; + return Mc; }), n.d(t, 'precisionFixed', function() { - return ic; + return Nc; }), n.d(t, 'precisionPrefix', function() { - return ac; + return Rc; }), n.d(t, 'precisionRound', function() { - return sc; + return Ic; }), n.d(t, 'geoArea', function() { - return Jc; + return Lu; }), n.d(t, 'geoBounds', function() { - return Wu; + return Ml; }), n.d(t, 'geoCentroid', function() { - return nl; + return zl; }), n.d(t, 'geoCircle', function() { - return pl; + return Ul; }), n.d(t, 'geoClipAntimeridian', function() { - return Sl; + return of; }), n.d(t, 'geoClipCircle', function() { - return Al; + return af; }), n.d(t, 'geoClipExtent', function() { - return Ll; + return hf; }), n.d(t, 'geoClipRectangle', function() { - return Ol; + return lf; }), n.d(t, 'geoContains', function() { - return Kl; + return Pf; }), n.d(t, 'geoDistance', function() { - return ql; + return Mf; }), n.d(t, 'geoGraticule', function() { - return Jl; + return zf; }), n.d(t, 'geoGraticule10', function() { - return Zl; + return Nf; }), n.d(t, 'geoInterpolate', function() { - return of; + return Bf; }), n.d(t, 'geoLength', function() { - return Rl; + return _f; }), n.d(t, 'geoPath', function() { - return rd; + return Fd; }), n.d(t, 'geoAlbers', function() { - return wd; + return ip; }), n.d(t, 'geoAlbersUsa', function() { - return Md; + return ap; }), n.d(t, 'geoAzimuthalEqualArea', function() { - return Od; + return lp; }), n.d(t, 'geoAzimuthalEqualAreaRaw', function() { - return Ad; + return up; }), n.d(t, 'geoAzimuthalEquidistant', function() { - return Td; + return dp; }), n.d(t, 'geoAzimuthalEquidistantRaw', function() { - return Ed; + return fp; }), n.d(t, 'geoConicConformal', function() { - return Nd; + return yp; }), n.d(t, 'geoConicConformalRaw', function() { - return zd; + return bp; }), n.d(t, 'geoConicEqualArea', function() { - return xd; + return op; }), n.d(t, 'geoConicEqualAreaRaw', function() { - return _d; + return rp; }), n.d(t, 'geoConicEquidistant', function() { - return Fd; + return xp; }), n.d(t, 'geoConicEquidistantRaw', function() { - return Id; + return wp; }), n.d(t, 'geoEqualEarth', function() { - return Ud; + return Tp; }), n.d(t, 'geoEqualEarthRaw', function() { - return Vd; + return Ap; }), n.d(t, 'geoEquirectangular', function() { - return Rd; + return _p; }), n.d(t, 'geoEquirectangularRaw', function() { - return jd; + return vp; }), n.d(t, 'geoGnomonic', function() { - return Gd; + return Lp; }), n.d(t, 'geoGnomonicRaw', function() { - return Xd; + return Cp; }), n.d(t, 'geoIdentity', function() { - return Kd; + return Dp; }), n.d(t, 'geoProjection', function() { - return bd; + return ep; }), n.d(t, 'geoProjectionMutator', function() { - return yd; + return tp; }), n.d(t, 'geoMercator', function() { - return Ld; + return hp; }), n.d(t, 'geoMercatorRaw', function() { - return Cd; + return pp; }), n.d(t, 'geoNaturalEarth1', function() { - return Qd; + return zp; }), n.d(t, 'geoNaturalEarth1Raw', function() { - return $d; + return jp; }), n.d(t, 'geoOrthographic', function() { - return Zd; + return Rp; }), n.d(t, 'geoOrthographicRaw', function() { - return Jd; + return Np; }), n.d(t, 'geoStereographic', function() { - return tp; + return Fp; }), n.d(t, 'geoStereographicRaw', function() { - return ep; + return Ip; }), n.d(t, 'geoTransverseMercator', function() { - return rp; + return Bp; }), n.d(t, 'geoTransverseMercatorRaw', function() { - return np; + return qp; }), n.d(t, 'geoRotation', function() { - return ll; + return Yl; }), n.d(t, 'geoStream', function() { - return Wc; + return Mu; }), n.d(t, 'geoTransform', function() { - return od; + return qd; }), n.d(t, 'cluster', function() { - return sp; + return Vp; }), n.d(t, 'hierarchy', function() { - return up; + return Xp; }), n.d(t, 'pack', function() { - return zp; + return yh; }), n.d(t, 'packSiblings', function() { - return Ep; + return dh; }), n.d(t, 'packEnclose', function() { - return gp; + return Zp; }), n.d(t, 'partition', function() { - return qp; + return kh; }), n.d(t, 'stratify', function() { - return Vp; + return Ch; }), n.d(t, 'tree', function() { - return Jp; + return Rh; }), n.d(t, 'treemap', function() { - return rh; + return Hh; }), n.d(t, 'treemapBinary', function() { - return oh; + return Yh; }), n.d(t, 'treemapDice', function() { - return Fp; + return Mh; }), n.d(t, 'treemapSlice', function() { - return Zp; + return Ih; }), n.d(t, 'treemapSliceDice', function() { - return ih; + return Wh; }), n.d(t, 'treemapSquarify', function() { - return nh; + return Bh; }), n.d(t, 'treemapResquarify', function() { - return ah; + return Vh; }), n.d(t, 'interpolate', function() { - return Tn; + return jn; }), n.d(t, 'interpolateArray', function() { - return vn; + return kn; }), n.d(t, 'interpolateBasis', function() { - return an; + return fn; }), n.d(t, 'interpolateBasisClosed', function() { - return sn; + return dn; }), n.d(t, 'interpolateDate', function() { - return xn; + return On; }), n.d(t, 'interpolateDiscrete', function() { - return sh; + return Uh; }), n.d(t, 'interpolateHue', function() { - return ch; + return Xh; }), n.d(t, 'interpolateNumber', function() { - return wn; + return En; }), n.d(t, 'interpolateNumberArray', function() { - return bn; + return xn; }), n.d(t, 'interpolateObject', function() { - return Mn; + return An; }), n.d(t, 'interpolateRound', function() { - return uh; + return Gh; }), n.d(t, 'interpolateString', function() { - return En; + return Dn; }), n.d(t, 'interpolateTransformCss', function() { - return dr; + return Sr; }), n.d(t, 'interpolateTransformSvg', function() { - return pr; + return Or; }), n.d(t, 'interpolateZoom', function() { - return dh; + return Qh; }), n.d(t, 'interpolateRgb', function() { - return pn; + return yn; }), n.d(t, 'interpolateRgbBasis', function() { - return gn; + return _n; }), n.d(t, 'interpolateRgbBasisClosed', function() { - return mn; + return wn; }), n.d(t, 'interpolateHsl', function() { - return hh; + return Zh; }), n.d(t, 'interpolateHslLong', function() { - return gh; + return eg; }), n.d(t, 'interpolateLab', function() { - return mh; + return tg; }), n.d(t, 'interpolateHcl', function() { - return yh; + return rg; }), n.d(t, 'interpolateHclLong', function() { - return vh; + return og; }), n.d(t, 'interpolateCubehelix', function() { - return xh; + return ag; }), n.d(t, 'interpolateCubehelixLong', function() { - return wh; + return sg; }), n.d(t, 'piecewise', function() { - return Mh; + return cg; }), n.d(t, 'quantize', function() { - return kh; + return ug; }), n.d(t, 'path', function() { - return Wo; + return Qo; }), n.d(t, 'polygonArea', function() { - return Sh; + return lg; }), n.d(t, 'polygonCentroid', function() { - return Ah; + return fg; }), n.d(t, 'polygonHull', function() { - return Th; + return gg; }), n.d(t, 'polygonContains', function() { - return Ch; + return mg; }), n.d(t, 'polygonLength', function() { - return Lh; + return bg; }), n.d(t, 'quadtree', function() { - return Ss; + return ec; }), n.d(t, 'randomUniform', function() { - return Dh; + return vg; }), n.d(t, 'randomNormal', function() { - return zh; + return _g; }), n.d(t, 'randomLogNormal', function() { - return Nh; + return wg; }), n.d(t, 'randomBates', function() { - return Rh; + return Mg; }), n.d(t, 'randomIrwinHall', function() { - return jh; + return xg; }), n.d(t, 'randomExponential', function() { - return Ih; + return kg; }), n.d(t, 'scaleBand', function() { - return Uh; + return Pg; }), n.d(t, 'scalePoint', function() { - return Gh; + return Dg; }), n.d(t, 'scaleIdentity', function() { - return cg; + return Gg; }), n.d(t, 'scaleLinear', function() { - return sg; + return Xg; }), n.d(t, 'scaleLog', function() { - return bg; + return rm; }), n.d(t, 'scaleSymlog', function() { - return xg; + return sm; }), n.d(t, 'scaleOrdinal', function() { - return Vh; + return Lg; }), n.d(t, 'scaleImplicit', function() { - return Wh; + return Cg; }), n.d(t, 'scalePow', function() { - return Ag; + return dm; }), n.d(t, 'scaleSqrt', function() { - return Og; + return pm; }), n.d(t, 'scaleQuantile', function() { - return Eg; + return hm; }), n.d(t, 'scaleQuantize', function() { - return Tg; + return gm; }), n.d(t, 'scaleThreshold', function() { - return Cg; + return mm; }), n.d(t, 'scaleTime', function() { - return sy; + return nv; }), n.d(t, 'scaleUtc', function() { - return by; + return dv; }), n.d(t, 'scaleSequential', function() { - return _y; + return gv; }), n.d(t, 'scaleSequentialLog', function() { - return xy; + return mv; }), n.d(t, 'scaleSequentialPow', function() { - return My; + return yv; }), n.d(t, 'scaleSequentialSqrt', function() { - return ky; + return vv; }), n.d(t, 'scaleSequentialSymlog', function() { - return wy; + return bv; }), n.d(t, 'scaleSequentialQuantile', function() { - return Sy; + return _v; }), n.d(t, 'scaleDiverging', function() { - return Oy; + return xv; }), n.d(t, 'scaleDivergingLog', function() { - return Ey; + return Mv; }), n.d(t, 'scaleDivergingPow', function() { - return Cy; + return Sv; }), n.d(t, 'scaleDivergingSqrt', function() { - return Ly; + return Ov; }), n.d(t, 'scaleDivergingSymlog', function() { - return Ty; + return kv; }), n.d(t, 'tickFormat', function() { - return ig; + return Vg; }), n.d(t, 'schemeCategory10', function() { - return Dy; + return Av; }), n.d(t, 'schemeAccent', function() { - return zy; + return Tv; }), n.d(t, 'schemeDark2', function() { - return Ny; + return Cv; }), n.d(t, 'schemePaired', function() { - return jy; + return Lv; }), n.d(t, 'schemePastel1', function() { - return Ry; + return Pv; }), n.d(t, 'schemePastel2', function() { - return Iy; + return Dv; }), n.d(t, 'schemeSet1', function() { - return Fy; + return jv; }), n.d(t, 'schemeSet2', function() { - return qy; + return zv; }), n.d(t, 'schemeSet3', function() { - return By; + return Nv; }), n.d(t, 'schemeTableau10', function() { - return Hy; + return Rv; }), n.d(t, 'interpolateBrBG', function() { - return Vy; + return qv; }), n.d(t, 'schemeBrBG', function() { - return Wy; + return Fv; }), n.d(t, 'interpolatePRGn', function() { - return Xy; + return Hv; }), n.d(t, 'schemePRGn', function() { - return Uy; + return Bv; }), n.d(t, 'interpolatePiYG', function() { - return Ky; + return Wv; }), n.d(t, 'schemePiYG', function() { - return Gy; + return Yv; }), n.d(t, 'interpolatePuOr', function() { - return Qy; + return Uv; }), n.d(t, 'schemePuOr', function() { - return $y; + return Vv; }), n.d(t, 'interpolateRdBu', function() { - return Zy; + return Gv; }), n.d(t, 'schemeRdBu', function() { - return Jy; + return Xv; }), n.d(t, 'interpolateRdGy', function() { - return tv; + return $v; }), n.d(t, 'schemeRdGy', function() { - return ev; + return Kv; }), n.d(t, 'interpolateRdYlBu', function() { - return rv; + return Jv; }), n.d(t, 'schemeRdYlBu', function() { - return nv; + return Qv; }), n.d(t, 'interpolateRdYlGn', function() { - return iv; + return e_; }), n.d(t, 'schemeRdYlGn', function() { - return ov; + return Zv; }), n.d(t, 'interpolateSpectral', function() { - return sv; + return n_; }), n.d(t, 'schemeSpectral', function() { - return av; + return t_; }), n.d(t, 'interpolateBuGn', function() { - return uv; + return o_; }), n.d(t, 'schemeBuGn', function() { - return cv; + return r_; }), n.d(t, 'interpolateBuPu', function() { - return fv; + return a_; }), n.d(t, 'schemeBuPu', function() { - return lv; + return i_; }), n.d(t, 'interpolateGnBu', function() { - return pv; + return c_; }), n.d(t, 'schemeGnBu', function() { - return dv; + return s_; }), n.d(t, 'interpolateOrRd', function() { - return gv; + return l_; }), n.d(t, 'schemeOrRd', function() { - return hv; + return u_; }), n.d(t, 'interpolatePuBuGn', function() { - return bv; + return d_; }), n.d(t, 'schemePuBuGn', function() { - return mv; + return f_; }), n.d(t, 'interpolatePuBu', function() { - return vv; + return h_; }), n.d(t, 'schemePuBu', function() { - return yv; + return p_; }), n.d(t, 'interpolatePuRd', function() { - return xv; + return m_; }), n.d(t, 'schemePuRd', function() { - return _v; + return g_; }), n.d(t, 'interpolateRdPu', function() { - return Mv; + return y_; }), n.d(t, 'schemeRdPu', function() { - return wv; + return b_; }), n.d(t, 'interpolateYlGnBu', function() { - return Sv; + return __; }), n.d(t, 'schemeYlGnBu', function() { - return kv; + return v_; }), n.d(t, 'interpolateYlGn', function() { - return Ov; + return x_; }), n.d(t, 'schemeYlGn', function() { - return Av; + return w_; }), n.d(t, 'interpolateYlOrBr', function() { - return Tv; + return k_; }), n.d(t, 'schemeYlOrBr', function() { - return Ev; + return M_; }), n.d(t, 'interpolateYlOrRd', function() { - return Lv; + return O_; }), n.d(t, 'schemeYlOrRd', function() { - return Cv; + return S_; }), n.d(t, 'interpolateBlues', function() { - return Dv; + return A_; }), n.d(t, 'schemeBlues', function() { - return Pv; + return E_; }), n.d(t, 'interpolateGreens', function() { - return Nv; + return C_; }), n.d(t, 'schemeGreens', function() { - return zv; + return T_; }), n.d(t, 'interpolateGreys', function() { - return Rv; + return P_; }), n.d(t, 'schemeGreys', function() { - return jv; + return L_; }), n.d(t, 'interpolatePurples', function() { - return Fv; + return j_; }), n.d(t, 'schemePurples', function() { - return Iv; + return D_; }), n.d(t, 'interpolateReds', function() { - return Bv; + return N_; }), n.d(t, 'schemeReds', function() { - return qv; + return z_; }), n.d(t, 'interpolateOranges', function() { - return Yv; + return I_; }), n.d(t, 'schemeOranges', function() { - return Hv; + return R_; }), n.d(t, 'interpolateCividis', function() { - return Wv; + return F_; }), n.d(t, 'interpolateCubehelixDefault', function() { - return Vv; + return q_; }), n.d(t, 'interpolateRainbow', function() { - return Kv; + return W_; }), n.d(t, 'interpolateWarm', function() { - return Uv; + return B_; }), n.d(t, 'interpolateCool', function() { - return Xv; + return H_; }), n.d(t, 'interpolateSinebow', function() { - return Zv; + return G_; }), n.d(t, 'interpolateTurbo', function() { - return e_; + return K_; }), n.d(t, 'interpolateViridis', function() { - return n_; + return Q_; }), n.d(t, 'interpolateMagma', function() { - return r_; + return J_; }), n.d(t, 'interpolateInferno', function() { - return o_; + return Z_; }), n.d(t, 'interpolatePlasma', function() { - return i_; + return ew; }), n.d(t, 'create', function() { - return a_; + return tw; }), n.d(t, 'creator', function() { - return rt; + return ct; }), n.d(t, 'local', function() { - return c_; + return rw; }), n.d(t, 'matcher', function() { - return me; + return _e; }), n.d(t, 'mouse', function() { - return Dn; + return In; }), n.d(t, 'namespace', function() { - return ke; + return Te; }), n.d(t, 'namespaces', function() { - return Me; + return Ae; }), n.d(t, 'clientPoint', function() { - return Ln; + return Nn; }), n.d(t, 'select', function() { - return Mt; + return At; }), n.d(t, 'selectAll', function() { - return l_; + return iw; }), n.d(t, 'selection', function() { - return wt; + return Et; }), n.d(t, 'selector', function() { - return pe; + return be; }), n.d(t, 'selectorAll', function() { - return ge; + return ve; }), n.d(t, 'style', function() { - return Ne; + return qe; }), n.d(t, 'touch', function() { - return Pn; + return Rn; }), n.d(t, 'touches', function() { - return f_; + return aw; }), n.d(t, 'window', function() { - return Le; + return Ne; }), n.d(t, 'event', function() { - return ut; + return ht; }), n.d(t, 'customEvent', function() { - return gt; + return _t; }), n.d(t, 'arc', function() { - return P_; + return Ow; }), n.d(t, 'area', function() { - return I_; + return Pw; }), n.d(t, 'line', function() { - return R_; + return Lw; }), n.d(t, 'pie', function() { - return B_; + return zw; }), n.d(t, 'areaRadial', function() { - return X_; + return Bw; }), n.d(t, 'radialArea', function() { - return X_; + return Bw; }), n.d(t, 'lineRadial', function() { - return U_; + return qw; }), n.d(t, 'radialLine', function() { - return U_; + return qw; }), n.d(t, 'pointRadial', function() { - return G_; + return Hw; }), n.d(t, 'linkHorizontal', function() { - return nx; + return $w; }), n.d(t, 'linkVertical', function() { - return rx; + return Qw; }), n.d(t, 'linkRadial', function() { - return ox; + return Jw; }), n.d(t, 'symbol', function() { - return wx; + return mx; }), n.d(t, 'symbols', function() { + return gx; + }), + n.d(t, 'symbolCircle', function() { + return Zw; + }), + n.d(t, 'symbolCross', function() { + return ex; + }), + n.d(t, 'symbolDiamond', function() { + return rx; + }), + n.d(t, 'symbolSquare', function() { + return cx; + }), + n.d(t, 'symbolStar', function() { + return sx; + }), + n.d(t, 'symbolTriangle', function() { + return lx; + }), + n.d(t, 'symbolWye', function() { + return hx; + }), + n.d(t, 'curveBasisClosed', function() { return xx; }), - n.d(t, 'symbolCircle', function() { - return ix; + n.d(t, 'curveBasisOpen', function() { + return kx; + }), + n.d(t, 'curveBasis', function() { + return _x; + }), + n.d(t, 'curveBundle', function() { + return Ox; + }), + n.d(t, 'curveCardinalClosed', function() { + return Lx; + }), + n.d(t, 'curveCardinalOpen', function() { + return Dx; + }), + n.d(t, 'curveCardinal', function() { + return Tx; + }), + n.d(t, 'curveCatmullRomClosed', function() { + return Ix; + }), + n.d(t, 'curveCatmullRomOpen', function() { + return qx; + }), + n.d(t, 'curveCatmullRom', function() { + return Nx; + }), + n.d(t, 'curveLinearClosed', function() { + return Hx; + }), + n.d(t, 'curveLinear', function() { + return Aw; + }), + n.d(t, 'curveMonotoneX', function() { + return $x; + }), + n.d(t, 'curveMonotoneY', function() { + return Qx; + }), + n.d(t, 'curveNatural', function() { + return eM; + }), + n.d(t, 'curveStep', function() { + return nM; + }), + n.d(t, 'curveStepAfter', function() { + return oM; + }), + n.d(t, 'curveStepBefore', function() { + return rM; + }), + n.d(t, 'stack', function() { + return cM; + }), + n.d(t, 'stackOffsetExpand', function() { + return uM; + }), + n.d(t, 'stackOffsetDiverging', function() { + return lM; + }), + n.d(t, 'stackOffsetNone', function() { + return iM; + }), + n.d(t, 'stackOffsetSilhouette', function() { + return fM; + }), + n.d(t, 'stackOffsetWiggle', function() { + return dM; + }), + n.d(t, 'stackOrderAppearance', function() { + return pM; + }), + n.d(t, 'stackOrderAscending', function() { + return gM; + }), + n.d(t, 'stackOrderDescending', function() { + return bM; + }), + n.d(t, 'stackOrderInsideOut', function() { + return yM; + }), + n.d(t, 'stackOrderNone', function() { + return aM; + }), + n.d(t, 'stackOrderReverse', function() { + return vM; + }), + n.d(t, 'timeInterval', function() { + return vm; + }), + n.d(t, 'timeMillisecond', function() { + return nb; + }), + n.d(t, 'timeMilliseconds', function() { + return rb; + }), + n.d(t, 'utcMillisecond', function() { + return nb; + }), + n.d(t, 'utcMilliseconds', function() { + return rb; + }), + n.d(t, 'timeSecond', function() { + return Zm; + }), + n.d(t, 'timeSeconds', function() { + return eb; + }), + n.d(t, 'utcSecond', function() { + return Zm; + }), + n.d(t, 'utcSeconds', function() { + return eb; + }), + n.d(t, 'timeMinute', function() { + return $m; + }), + n.d(t, 'timeMinutes', function() { + return Qm; + }), + n.d(t, 'timeHour', function() { + return Xm; + }), + n.d(t, 'timeHours', function() { + return Gm; + }), + n.d(t, 'timeDay', function() { + return Wm; + }), + n.d(t, 'timeDays', function() { + return Vm; + }), + n.d(t, 'timeWeek', function() { + return Tm; + }), + n.d(t, 'timeWeeks', function() { + return Nm; + }), + n.d(t, 'timeSunday', function() { + return Tm; + }), + n.d(t, 'timeSundays', function() { + return Nm; + }), + n.d(t, 'timeMonday', function() { + return Cm; + }), + n.d(t, 'timeMondays', function() { + return Rm; + }), + n.d(t, 'timeTuesday', function() { + return Lm; + }), + n.d(t, 'timeTuesdays', function() { + return Im; + }), + n.d(t, 'timeWednesday', function() { + return Pm; + }), + n.d(t, 'timeWednesdays', function() { + return Fm; + }), + n.d(t, 'timeThursday', function() { + return Dm; + }), + n.d(t, 'timeThursdays', function() { + return qm; + }), + n.d(t, 'timeFriday', function() { + return jm; + }), + n.d(t, 'timeFridays', function() { + return Bm; + }), + n.d(t, 'timeSaturday', function() { + return zm; + }), + n.d(t, 'timeSaturdays', function() { + return Hm; + }), + n.d(t, 'timeMonth', function() { + return km; + }), + n.d(t, 'timeMonths', function() { + return Sm; + }), + n.d(t, 'timeYear', function() { + return wm; + }), + n.d(t, 'timeYears', function() { + return xm; + }), + n.d(t, 'utcMinute', function() { + return lv; + }), + n.d(t, 'utcMinutes', function() { + return fv; + }), + n.d(t, 'utcHour', function() { + return sv; + }), + n.d(t, 'utcHours', function() { + return cv; + }), + n.d(t, 'utcDay', function() { + return _b; + }), + n.d(t, 'utcDays', function() { + return wb; + }), + n.d(t, 'utcWeek', function() { + return ib; + }), + n.d(t, 'utcWeeks', function() { + return db; + }), + n.d(t, 'utcSunday', function() { + return ib; + }), + n.d(t, 'utcSundays', function() { + return db; + }), + n.d(t, 'utcMonday', function() { + return ab; + }), + n.d(t, 'utcMondays', function() { + return pb; + }), + n.d(t, 'utcTuesday', function() { + return sb; + }), + n.d(t, 'utcTuesdays', function() { + return hb; + }), + n.d(t, 'utcWednesday', function() { + return cb; + }), + n.d(t, 'utcWednesdays', function() { + return gb; + }), + n.d(t, 'utcThursday', function() { + return ub; + }), + n.d(t, 'utcThursdays', function() { + return mb; + }), + n.d(t, 'utcFriday', function() { + return lb; + }), + n.d(t, 'utcFridays', function() { + return bb; + }), + n.d(t, 'utcSaturday', function() { + return fb; + }), + n.d(t, 'utcSaturdays', function() { + return yb; + }), + n.d(t, 'utcMonth', function() { + return ov; + }), + n.d(t, 'utcMonths', function() { + return iv; + }), + n.d(t, 'utcYear', function() { + return Mb; + }), + n.d(t, 'utcYears', function() { + return kb; + }), + n.d(t, 'timeFormatDefaultLocale', function() { + return Vy; + }), + n.d(t, 'timeFormat', function() { + return Cb; + }), + n.d(t, 'timeParse', function() { + return Lb; + }), + n.d(t, 'utcFormat', function() { + return Pb; + }), + n.d(t, 'utcParse', function() { + return Db; + }), + n.d(t, 'timeFormatLocale', function() { + return Ab; + }), + n.d(t, 'isoFormat', function() { + return _M; + }), + n.d(t, 'isoParse', function() { + return wM; + }), + n.d(t, 'now', function() { + return Gn; + }), + n.d(t, 'timer', function() { + return Qn; + }), + n.d(t, 'timerFlush', function() { + return Jn; + }), + n.d(t, 'timeout', function() { + return nr; + }), + n.d(t, 'interval', function() { + return xM; + }), + n.d(t, 'transition', function() { + return Qr; + }), + n.d(t, 'active', function() { + return ao; + }), + n.d(t, 'interrupt', function() { + return _r; + }), + n.d(t, 'voronoi', function() { + return sk; + }), + n.d(t, 'zoom', function() { + return wk; + }), + n.d(t, 'zoomTransform', function() { + return dk; + }), + n.d(t, 'zoomIdentity', function() { + return fk; + }); + }, + function(e, t, n) { + 'use strict'; + (function(e, r) { + var o, + i = n(452); + o = + 'undefined' != typeof self + ? self + : 'undefined' != typeof window + ? window + : void 0 !== e + ? e + : r; + var a = Object(i.a)(o); + t.a = a; + }.call(this, n(33), n(479)(e))); + }, + function(e, t, n) { + var r = n(554); + (e.exports = p), + (e.exports.parse = i), + (e.exports.compile = function(e, t) { + return s(i(e, t)); + }), + (e.exports.tokensToFunction = s), + (e.exports.tokensToRegExp = d); + var o = new RegExp( + [ + '(\\\\.)', + '([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))' + ].join('|'), + 'g' + ); + function i(e, t) { + for ( + var n, r = [], i = 0, a = 0, s = '', l = (t && t.delimiter) || '/'; + null != (n = o.exec(e)); + + ) { + var f = n[0], + d = n[1], + p = n.index; + if (((s += e.slice(a, p)), (a = p + f.length), d)) s += d[1]; + else { + var h = e[a], + g = n[2], + m = n[3], + b = n[4], + y = n[5], + v = n[6], + _ = n[7]; + s && (r.push(s), (s = '')); + var w = null != g && null != h && h !== g, + x = '+' === v || '*' === v, + M = '?' === v || '*' === v, + k = n[2] || l, + S = b || y; + r.push({ + name: m || i++, + prefix: g || '', + delimiter: k, + optional: M, + repeat: x, + partial: w, + asterisk: !!_, + pattern: S ? u(S) : _ ? '.*' : '[^' + c(k) + ']+?' + }); + } + } + return a < e.length && (s += e.substr(a)), s && r.push(s), r; + } + function a(e) { + return encodeURI(e).replace(/[\/?#]/g, function(e) { + return ( + '%' + + e + .charCodeAt(0) + .toString(16) + .toUpperCase() + ); + }); + } + function s(e) { + for (var t = new Array(e.length), n = 0; n < e.length; n++) + 'object' == typeof e[n] && + (t[n] = new RegExp('^(?:' + e[n].pattern + ')$')); + return function(n, o) { + for ( + var i = '', + s = n || {}, + c = (o || {}).pretty ? a : encodeURIComponent, + u = 0; + u < e.length; + u++ + ) { + var l = e[u]; + if ('string' != typeof l) { + var f, + d = s[l.name]; + if (null == d) { + if (l.optional) { + l.partial && (i += l.prefix); + continue; + } + throw new TypeError('Expected "' + l.name + '" to be defined'); + } + if (r(d)) { + if (!l.repeat) + throw new TypeError( + 'Expected "' + + l.name + + '" to not repeat, but received `' + + JSON.stringify(d) + + '`' + ); + if (0 === d.length) { + if (l.optional) continue; + throw new TypeError( + 'Expected "' + l.name + '" to not be empty' + ); + } + for (var p = 0; p < d.length; p++) { + if (((f = c(d[p])), !t[u].test(f))) + throw new TypeError( + 'Expected all "' + + l.name + + '" to match "' + + l.pattern + + '", but received `' + + JSON.stringify(f) + + '`' + ); + i += (0 === p ? l.prefix : l.delimiter) + f; + } + } else { + if ( + ((f = l.asterisk + ? encodeURI(d).replace(/[?#]/g, function(e) { + return ( + '%' + + e + .charCodeAt(0) + .toString(16) + .toUpperCase() + ); + }) + : c(d)), + !t[u].test(f)) + ) + throw new TypeError( + 'Expected "' + + l.name + + '" to match "' + + l.pattern + + '", but received "' + + f + + '"' + ); + i += l.prefix + f; + } + } else i += l; + } + return i; + }; + } + function c(e) { + return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1'); + } + function u(e) { + return e.replace(/([=!:$\/()])/g, '\\$1'); + } + function l(e, t) { + return (e.keys = t), e; + } + function f(e) { + return e.sensitive ? '' : 'i'; + } + function d(e, t, n) { + r(t) || ((n = t || n), (t = [])); + for ( + var o = (n = n || {}).strict, i = !1 !== n.end, a = '', s = 0; + s < e.length; + s++ + ) { + var u = e[s]; + if ('string' == typeof u) a += c(u); + else { + var d = c(u.prefix), + p = '(?:' + u.pattern + ')'; + t.push(u), + u.repeat && (p += '(?:' + d + p + ')*'), + (a += p = u.optional + ? u.partial + ? d + '(' + p + ')?' + : '(?:' + d + '(' + p + '))?' + : d + '(' + p + ')'); + } + } + var h = c(n.delimiter || '/'), + g = a.slice(-h.length) === h; + return ( + o || (a = (g ? a.slice(0, -h.length) : a) + '(?:' + h + '(?=$))?'), + (a += i ? '$' : o && g ? '' : '(?=' + h + '|$)'), + l(new RegExp('^' + a, f(n)), t) + ); + } + function p(e, t, n) { + return ( + r(t) || ((n = t || n), (t = [])), + (n = n || {}), + e instanceof RegExp + ? (function(e, t) { + var n = e.source.match(/\((?!\?)/g); + if (n) + for (var r = 0; r < n.length; r++) + t.push({ + name: r, + prefix: null, + delimiter: null, + optional: !1, + repeat: !1, + partial: !1, + asterisk: !1, + pattern: null + }); + return l(e, t); + })(e, t) + : r(e) + ? (function(e, t, n) { + for (var r = [], o = 0; o < e.length; o++) + r.push(p(e[o], t, n).source); + return l(new RegExp('(?:' + r.join('|') + ')', f(n)), t); + })(e, t, n) + : (function(e, t, n) { + return d(i(e, n), t, n); + })(e, t, n) + ); + } + }, + function(e, t, n) { + e.exports = n(578); + }, + function(e, t, n) { + (function(t) { + var n = (function(e) { + var t = /\blang(?:uage)?-([\w-]+)\b/i, + n = 0, + r = { + manual: e.Prism && e.Prism.manual, + disableWorkerMessageHandler: + e.Prism && e.Prism.disableWorkerMessageHandler, + util: { + encode: function(e) { + return e instanceof o + ? new o(e.type, r.util.encode(e.content), e.alias) + : Array.isArray(e) + ? e.map(r.util.encode) + : e + .replace(/&/g, '&') + .replace(/ e.length) return; + if (!(w instanceof o)) { + if (g && v != t.length - 1) { + if (((d.lastIndex = _), !(E = d.exec(e)))) break; + for ( + var x = E.index + (h ? E[1].length : 0), + M = E.index + E[0].length, + k = v, + S = _, + O = t.length; + k < O && + (S < M || (!t[k].type && !t[k - 1].greedy)); + ++k + ) + x >= (S += t[k].length) && (++v, (_ = S)); + if (t[v] instanceof o) continue; + (A = k - v), (w = e.slice(_, S)), (E.index -= _); + } else { + d.lastIndex = 0; + var E = d.exec(w), + A = 1; + } + if (E) { + h && (m = E[1] ? E[1].length : 0); + M = (x = E.index + m) + (E = E[0].slice(m)).length; + var T = w.slice(0, x), + C = w.slice(M), + L = [v, A]; + T && (++v, (_ += T.length), L.push(T)); + var P = new o(u, p ? r.tokenize(E, p) : E, b, E, g); + if ( + (L.push(P), + C && L.push(C), + Array.prototype.splice.apply(t, L), + 1 != A && r.matchGrammar(e, t, n, v, _, !0, u), + s) + ) + break; + } else if (s) break; + } + } + } + } + }, + tokenize: function(e, t) { + var n = [e], + o = t.rest; + if (o) { + for (var i in o) t[i] = o[i]; + delete t.rest; + } + return r.matchGrammar(e, n, t, 0, 0, !1), n; + }, + hooks: { + all: {}, + add: function(e, t) { + var n = r.hooks.all; + (n[e] = n[e] || []), n[e].push(t); + }, + run: function(e, t) { + var n = r.hooks.all[e]; + if (n && n.length) for (var o, i = 0; (o = n[i++]); ) o(t); + } + }, + Token: o + }; + function o(e, t, n, r, o) { + (this.type = e), + (this.content = t), + (this.alias = n), + (this.length = 0 | (r || '').length), + (this.greedy = !!o); + } + if ( + ((e.Prism = r), + (o.stringify = function(e, t) { + if ('string' == typeof e) return e; + if (Array.isArray(e)) + return e + .map(function(e) { + return o.stringify(e, t); + }) + .join(''); + var n = { + type: e.type, + content: o.stringify(e.content, t), + tag: 'span', + classes: ['token', e.type], + attributes: {}, + language: t + }; + if (e.alias) { + var i = Array.isArray(e.alias) ? e.alias : [e.alias]; + Array.prototype.push.apply(n.classes, i); + } + r.hooks.run('wrap', n); + var a = Object.keys(n.attributes) + .map(function(e) { + return ( + e + + '="' + + (n.attributes[e] || '').replace(/"/g, '"') + + '"' + ); + }) + .join(' '); + return ( + '<' + + n.tag + + ' class="' + + n.classes.join(' ') + + '"' + + (a ? ' ' + a : '') + + '>' + + n.content + + '' + ); + }), + !e.document) + ) + return e.addEventListener + ? (r.disableWorkerMessageHandler || + e.addEventListener( + 'message', + function(t) { + var n = JSON.parse(t.data), + o = n.language, + i = n.code, + a = n.immediateClose; + e.postMessage(r.highlight(i, r.languages[o], o)), + a && e.close(); + }, + !1 + ), + r) + : r; + var i = + document.currentScript || + [].slice.call(document.getElementsByTagName('script')).pop(); + return ( + i && + ((r.filename = i.src), + r.manual || + i.hasAttribute('data-manual') || + ('loading' !== document.readyState + ? window.requestAnimationFrame + ? window.requestAnimationFrame(r.highlightAll) + : window.setTimeout(r.highlightAll, 16) + : document.addEventListener( + 'DOMContentLoaded', + r.highlightAll + ))), + r + ); + })( + 'undefined' != typeof window + ? window + : 'undefined' != typeof WorkerGlobalScope && + self instanceof WorkerGlobalScope + ? self + : {} + ); + e.exports && (e.exports = n), void 0 !== t && (t.Prism = n); + }.call(this, n(33))); + }, + function(e, t, n) { + (e.exports = n(234).default), + (e.exports.utils = n(104)), + (e.exports.Responsive = n(593).default), + (e.exports.Responsive.utils = n(237)), + (e.exports.WidthProvider = n(594).default); + }, + , + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = { + GLOBAL: { + HIDE: '__react_tooltip_hide_event', + REBUILD: '__react_tooltip_rebuild_event', + SHOW: '__react_tooltip_show_event' + } + }); + }, + function(e, t, n) { + (function(t) { + var n = 'object' == typeof t && t && t.Object === Object && t; + e.exports = n; + }.call(this, n(33))); + }, + function(e, t) { + var n = Function.prototype.toString; + e.exports = function(e) { + if (null != e) { + try { + return n.call(e); + } catch (e) {} + try { + return e + ''; + } catch (e) {} + } + return ''; + }; + }, + function(e, t, n) { + var r = n(150), + o = n(99); + e.exports = function(e, t, n) { + ((void 0 === n || o(e[t], n)) && (void 0 !== n || t in e)) || + r(e, t, n); + }; + }, + function(e, t, n) { + var r = n(66), + o = (function() { + try { + var e = r(Object, 'defineProperty'); + return e({}, '', {}), e; + } catch (e) {} + })(); + e.exports = o; + }, + function(e, t, n) { + var r = n(523)(); + e.exports = r; + }, + function(e, t, n) { + (function(e) { + var r = n(48), + o = t && !t.nodeType && t, + i = o && 'object' == typeof e && e && !e.nodeType && e, + a = i && i.exports === o ? r.Buffer : void 0, + s = a ? a.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; + }; + }.call(this, n(77)(e))); + }, + function(e, t, n) { + var r = n(151); + e.exports = function(e, t) { + var n = t ? r(e.buffer) : e.buffer; + return new e.constructor(n, e.byteOffset, e.length); + }; + }, + function(e, t, n) { + var r = n(48).Uint8Array; + e.exports = r; + }, + function(e, t) { + e.exports = function(e, t) { + var n = -1, + r = e.length; + for (t || (t = Array(r)); ++n < r; ) t[n] = e[n]; + return t; + }; + }, + function(e, t, n) { + var r = n(525), + o = n(152), + i = n(121); + e.exports = function(e) { + return 'function' != typeof e.constructor || i(e) ? {} : r(o(e)); + }; + }, + function(e, t) { + e.exports = function(e, t) { + return function(n) { + return e(t(n)); + }; + }; + }, + function(e, t, n) { + var r = n(67), + o = n(152), + i = n(53), + a = '[object Object]', + s = Function.prototype, + c = Object.prototype, + u = s.toString, + l = c.hasOwnProperty, + f = u.call(Object); + e.exports = function(e) { + if (!i(e) || r(e) != a) return !1; + var t = o(e); + if (null === t) return !0; + var n = l.call(t, 'constructor') && t.constructor; + return 'function' == typeof n && n instanceof n && u.call(n) == f; + }; + }, + function(e, t) { + e.exports = function(e, t) { + if ( + ('constructor' !== t || 'function' != typeof e[t]) && + '__proto__' != t + ) + return e[t]; + }; + }, + function(e, t, n) { + var r = n(150), + o = n(99), + i = Object.prototype.hasOwnProperty; + e.exports = function(e, t, n) { + var a = e[t]; + (i.call(e, t) && o(a, n) && (void 0 !== n || t in e)) || r(e, t, n); + }; + }, + function(e, t, n) { + var r = n(531), + o = n(122), + i = n(34), + a = n(101), + s = n(156), + c = n(123), + u = Object.prototype.hasOwnProperty; + e.exports = function(e, t) { + var n = i(e), + l = !n && o(e), + f = !n && !l && a(e), + d = !n && !l && !f && c(e), + p = n || l || f || d, + h = p ? r(e.length, String) : [], + g = h.length; + for (var m in e) + (!t && !u.call(e, m)) || + (p && + ('length' == m || + (f && ('offset' == m || 'parent' == m)) || + (d && + ('buffer' == m || 'byteLength' == m || 'byteOffset' == m)) || + s(m, g))) || + h.push(m); + return h; + }; + }, + function(e, t, n) { + var r = n(99), + o = n(58), + i = n(156), + a = n(47); + e.exports = function(e, t, n) { + if (!a(n)) return !1; + var s = typeof t; + return ( + !!('number' == s + ? o(n) && i(t, n.length) + : 'string' == s && t in n) && r(n[t], e) + ); + }; + }, + function(e, t) { + for (var n = [], r = 0; r < 256; ++r) + n[r] = (r + 256).toString(16).substr(1); + e.exports = function(e, t) { + var r = t || 0, + o = n; + return [ + o[e[r++]], + o[e[r++]], + o[e[r++]], + o[e[r++]], + '-', + o[e[r++]], + o[e[r++]], + '-', + o[e[r++]], + o[e[r++]], + '-', + o[e[r++]], + o[e[r++]], + '-', + o[e[r++]], + o[e[r++]], + o[e[r++]], + o[e[r++]], + o[e[r++]], + o[e[r++]] + ].join(''); + }; + }, + function(e, t, n) { + var r = n(547); + 'string' == typeof r && (r = [[e.i, r, '']]); + var o = { hmr: !0, transform: void 0, insertInto: void 0 }; + n(69)(r, o); + r.locals && (e.exports = r.locals); + }, + function(e, t, n) { + var r = n(549); + 'string' == typeof r && (r = [[e.i, r, '']]); + var o = { hmr: !0, transform: void 0, insertInto: void 0 }; + n(69)(r, o); + r.locals && (e.exports = r.locals); + }, + function(e, t) { + var n, + r, + o = (e.exports = {}); + function i() { + throw new Error('setTimeout has not been defined'); + } + function a() { + throw new Error('clearTimeout has not been defined'); + } + function s(e) { + if (n === setTimeout) return setTimeout(e, 0); + if ((n === i || !n) && setTimeout) + return (n = setTimeout), setTimeout(e, 0); + try { + return n(e, 0); + } catch (t) { + try { + return n.call(null, e, 0); + } catch (t) { + return n.call(this, e, 0); + } + } + } + !(function() { + try { + n = 'function' == typeof setTimeout ? setTimeout : i; + } catch (e) { + n = i; + } + try { + r = 'function' == typeof clearTimeout ? clearTimeout : a; + } catch (e) { + r = a; + } + })(); + var c, + u = [], + l = !1, + f = -1; + function d() { + l && + c && + ((l = !1), c.length ? (u = c.concat(u)) : (f = -1), u.length && p()); + } + function p() { + if (!l) { + var e = s(d); + l = !0; + for (var t = u.length; t; ) { + for (c = u, u = []; ++f < t; ) c && c[f].run(); + (f = -1), (t = u.length); + } + (c = null), + (l = !1), + (function(e) { + if (r === clearTimeout) return clearTimeout(e); + if ((r === a || !r) && clearTimeout) + return (r = clearTimeout), clearTimeout(e); + try { + r(e); + } catch (t) { + try { + return r.call(null, e); + } catch (t) { + return r.call(this, e); + } + } + })(e); + } + } + function h(e, t) { + (this.fun = e), (this.array = t); + } + function g() {} + (o.nextTick = function(e) { + var t = new Array(arguments.length - 1); + if (arguments.length > 1) + for (var n = 1; n < arguments.length; n++) t[n - 1] = arguments[n]; + u.push(new h(e, t)), 1 !== u.length || l || s(p); + }), + (h.prototype.run = function() { + this.fun.apply(null, this.array); + }), + (o.title = 'browser'), + (o.browser = !0), + (o.env = {}), + (o.argv = []), + (o.version = ''), + (o.versions = {}), + (o.on = g), + (o.addListener = g), + (o.once = g), + (o.off = g), + (o.removeListener = g), + (o.removeAllListeners = g), + (o.emit = g), + (o.prependListener = g), + (o.prependOnceListener = g), + (o.listeners = function(e) { + return []; }), - n.d(t, 'symbolCross', function() { - return ax; + (o.binding = function(e) { + throw new Error('process.binding is not supported'); }), - n.d(t, 'symbolDiamond', function() { - return ux; + (o.cwd = function() { + return '/'; }), - n.d(t, 'symbolSquare', function() { - return hx; + (o.chdir = function(e) { + throw new Error('process.chdir is not supported'); }), - n.d(t, 'symbolStar', function() { - return px; + (o.umask = function() { + return 0; + }); + }, + function(e, t, n) { + 'use strict'; + (t.__esModule = !0), + (t.default = t.EXITING = t.ENTERED = t.ENTERING = t.EXITED = t.UNMOUNTED = void 0); + var r = (function(e) { + if (e && e.__esModule) return e; + var t = {}; + if (null != e) + for (var n in e) + if (Object.prototype.hasOwnProperty.call(e, n)) { + var r = + Object.defineProperty && Object.getOwnPropertyDescriptor + ? Object.getOwnPropertyDescriptor(e, n) + : {}; + r.get || r.set ? Object.defineProperty(t, n, r) : (t[n] = e[n]); + } + return (t.default = e), t; + })(n(1)), + o = s(n(0)), + i = s(n(7)), + a = n(56); + n(225); + function s(e) { + return e && e.__esModule ? e : { default: e }; + } + var c = 'unmounted'; + t.UNMOUNTED = c; + var u = 'exited'; + t.EXITED = u; + var l = 'entering'; + t.ENTERING = l; + var f = 'entered'; + t.ENTERED = f; + t.EXITING = 'exiting'; + var d = (function(e) { + var t, n; + function r(t, n) { + var r; + r = e.call(this, t, n) || this; + var o, + i = n.transitionGroup, + a = i && !i.isMounting ? t.enter : t.appear; + return ( + (r.appearStatus = null), + t.in + ? a + ? ((o = u), (r.appearStatus = l)) + : (o = f) + : (o = t.unmountOnExit || t.mountOnEnter ? c : u), + (r.state = { status: o }), + (r.nextCallback = null), + r + ); + } + (n = e), + ((t = r).prototype = Object.create(n.prototype)), + (t.prototype.constructor = t), + (t.__proto__ = n); + var a = r.prototype; + return ( + (a.getChildContext = function() { + return { transitionGroup: null }; + }), + (r.getDerivedStateFromProps = function(e, t) { + return e.in && t.status === c ? { status: u } : null; + }), + (a.componentDidMount = function() { + this.updateStatus(!0, this.appearStatus); + }), + (a.componentDidUpdate = function(e) { + var t = null; + if (e !== this.props) { + var n = this.state.status; + this.props.in + ? n !== l && n !== f && (t = l) + : (n !== l && n !== f) || (t = 'exiting'); + } + this.updateStatus(!1, t); + }), + (a.componentWillUnmount = function() { + this.cancelNextCallback(); + }), + (a.getTimeouts = function() { + var e, + t, + n, + r = this.props.timeout; + return ( + (e = t = n = r), + null != r && + 'number' != typeof r && + ((e = r.exit), + (t = r.enter), + (n = void 0 !== r.appear ? r.appear : t)), + { exit: e, enter: t, appear: n } + ); + }), + (a.updateStatus = function(e, t) { + if ((void 0 === e && (e = !1), null !== t)) { + this.cancelNextCallback(); + var n = i.default.findDOMNode(this); + t === l ? this.performEnter(n, e) : this.performExit(n); + } else + this.props.unmountOnExit && + this.state.status === u && + this.setState({ status: c }); + }), + (a.performEnter = function(e, t) { + var n = this, + r = this.props.enter, + o = this.context.transitionGroup + ? this.context.transitionGroup.isMounting + : t, + i = this.getTimeouts(), + a = o ? i.appear : i.enter; + t || r + ? (this.props.onEnter(e, o), + this.safeSetState({ status: l }, function() { + n.props.onEntering(e, o), + n.onTransitionEnd(e, a, function() { + n.safeSetState({ status: f }, function() { + n.props.onEntered(e, o); + }); + }); + })) + : this.safeSetState({ status: f }, function() { + n.props.onEntered(e); + }); + }), + (a.performExit = function(e) { + var t = this, + n = this.props.exit, + r = this.getTimeouts(); + n + ? (this.props.onExit(e), + this.safeSetState({ status: 'exiting' }, function() { + t.props.onExiting(e), + t.onTransitionEnd(e, r.exit, function() { + t.safeSetState({ status: u }, function() { + t.props.onExited(e); + }); + }); + })) + : this.safeSetState({ status: u }, function() { + t.props.onExited(e); + }); + }), + (a.cancelNextCallback = function() { + null !== this.nextCallback && + (this.nextCallback.cancel(), (this.nextCallback = null)); + }), + (a.safeSetState = function(e, t) { + (t = this.setNextCallback(t)), this.setState(e, t); + }), + (a.setNextCallback = function(e) { + var t = this, + n = !0; + return ( + (this.nextCallback = function(r) { + n && ((n = !1), (t.nextCallback = null), e(r)); + }), + (this.nextCallback.cancel = function() { + n = !1; + }), + this.nextCallback + ); + }), + (a.onTransitionEnd = function(e, t, n) { + this.setNextCallback(n); + var r = null == t && !this.props.addEndListener; + e && !r + ? (this.props.addEndListener && + this.props.addEndListener(e, this.nextCallback), + null != t && setTimeout(this.nextCallback, t)) + : setTimeout(this.nextCallback, 0); + }), + (a.render = function() { + var e = this.state.status; + if (e === c) return null; + var t = this.props, + n = t.children, + r = (function(e, t) { + if (null == e) return {}; + var n, + r, + o = {}, + i = Object.keys(e); + for (r = 0; r < i.length; r++) + (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); + return o; + })(t, ['children']); + if ( + (delete r.in, + delete r.mountOnEnter, + delete r.unmountOnExit, + delete r.appear, + delete r.enter, + delete r.exit, + delete r.timeout, + delete r.addEndListener, + delete r.onEnter, + delete r.onEntering, + delete r.onEntered, + delete r.onExit, + delete r.onExiting, + delete r.onExited, + 'function' == typeof n) + ) + return n(e, r); + var i = o.default.Children.only(n); + return o.default.cloneElement(i, r); + }), + r + ); + })(o.default.Component); + function p() {} + (d.contextTypes = { transitionGroup: r.object }), + (d.childContextTypes = { transitionGroup: function() {} }), + (d.propTypes = {}), + (d.defaultProps = { + in: !1, + mountOnEnter: !1, + unmountOnExit: !1, + appear: !1, + enter: !0, + exit: !0, + onEnter: p, + onEntering: p, + onEntered: p, + onExit: p, + onExiting: p, + onExited: p + }), + (d.UNMOUNTED = 0), + (d.EXITED = 1), + (d.ENTERING = 2), + (d.ENTERED = 3), + (d.EXITING = 4); + var h = (0, a.polyfill)(d); + t.default = h; + }, + function(e, t, n) { + 'use strict'; + (t.__esModule = !0), (t.classNamesShape = t.timeoutsShape = void 0); + var r; + (r = n(1)) && r.__esModule; + t.timeoutsShape = null; + t.classNamesShape = null; + }, + function(e, t, n) { + 'use strict'; + (t.__esModule = !0), (t.default = void 0); + var r = s(n(1)), + o = s(n(0)), + i = n(56), + a = n(562); + function s(e) { + return e && e.__esModule ? e : { default: e }; + } + function c() { + return (c = + Object.assign || + function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); + } + return e; + }).apply(this, arguments); + } + function u(e) { + if (void 0 === e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return e; + } + var l = + Object.values || + function(e) { + return Object.keys(e).map(function(t) { + return e[t]; + }); + }, + f = (function(e) { + var t, n; + function r(t, n) { + var r, + o = (r = e.call(this, t, n) || this).handleExited.bind(u(u(r))); + return (r.state = { handleExited: o, firstRender: !0 }), r; + } + (n = e), + ((t = r).prototype = Object.create(n.prototype)), + (t.prototype.constructor = t), + (t.__proto__ = n); + var i = r.prototype; + return ( + (i.getChildContext = function() { + return { transitionGroup: { isMounting: !this.appeared } }; + }), + (i.componentDidMount = function() { + (this.appeared = !0), (this.mounted = !0); + }), + (i.componentWillUnmount = function() { + this.mounted = !1; + }), + (r.getDerivedStateFromProps = function(e, t) { + var n = t.children, + r = t.handleExited; + return { + children: t.firstRender + ? (0, a.getInitialChildMapping)(e, r) + : (0, a.getNextChildMapping)(e, n, r), + firstRender: !1 + }; + }), + (i.handleExited = function(e, t) { + var n = (0, a.getChildMapping)(this.props.children); + e.key in n || + (e.props.onExited && e.props.onExited(t), + this.mounted && + this.setState(function(t) { + var n = c({}, t.children); + return delete n[e.key], { children: n }; + })); + }), + (i.render = function() { + var e = this.props, + t = e.component, + n = e.childFactory, + r = (function(e, t) { + if (null == e) return {}; + var n, + r, + o = {}, + i = Object.keys(e); + for (r = 0; r < i.length; r++) + (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); + return o; + })(e, ['component', 'childFactory']), + i = l(this.state.children).map(n); + return ( + delete r.appear, + delete r.enter, + delete r.exit, + null === t ? i : o.default.createElement(t, r, i) + ); + }), + r + ); + })(o.default.Component); + (f.childContextTypes = { transitionGroup: r.default.object.isRequired }), + (f.propTypes = {}), + (f.defaultProps = { + component: 'div', + childFactory: function(e) { + return e; + } + }); + var d = (0, i.polyfill)(f); + (t.default = d), (e.exports = t.default); + }, + function(e, t, n) { + var r = n(564), + o = n(228), + i = n(567), + a = 1, + s = 2; + e.exports = function(e, t, n, c, u, l) { + var f = n & a, + d = e.length, + p = t.length; + if (d != p && !(f && p > d)) return !1; + var h = l.get(e); + if (h && l.get(t)) return h == t; + var g = -1, + m = !0, + b = n & s ? new r() : void 0; + for (l.set(e, t), l.set(t, e); ++g < d; ) { + var y = e[g], + v = t[g]; + if (c) var _ = f ? c(v, y, g, t, e, l) : c(y, v, g, e, t, l); + if (void 0 !== _) { + if (_) continue; + m = !1; + break; + } + if (b) { + if ( + !o(t, function(e, t) { + if (!i(b, t) && (y === e || u(y, e, n, c, l))) return b.push(t); + }) + ) { + m = !1; + break; + } + } else if (y !== v && !u(y, v, n, c, l)) { + m = !1; + break; + } + } + return l.delete(e), l.delete(t), m; + }; + }, + function(e, t) { + e.exports = 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; + }; + }, + function(e, t, n) { + var r = n(230), + o = n(158), + i = n(78); + e.exports = function(e) { + return r(e, i, o); + }; + }, + function(e, t, n) { + var r = n(231), + o = n(34); + e.exports = function(e, t, n) { + var i = t(e); + return o(e) ? i : r(i, n(e)); + }; + }, + function(e, t) { + e.exports = function(e, t) { + for (var n = -1, r = t.length, o = e.length; ++n < r; ) e[o + n] = t[n]; + return e; + }; + }, + function(e, t) { + e.exports = function() { + return []; + }; + }, + function(e, t, n) { + var r = n(121), + o = n(573), + i = Object.prototype.hasOwnProperty; + e.exports = function(e) { + if (!r(e)) return o(e); + var t = []; + for (var n in Object(e)) + i.call(e, n) && 'constructor' != n && t.push(n); + return t; + }; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = void 0); + var r = u(n(0)), + o = u(n(1)), + i = u(n(159)), + a = u(n(20)), + s = n(104), + c = u(n(589)); + function u(e) { + return e && e.__esModule ? e : { default: e }; + } + function l(e) { + return (l = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function(e) { + return typeof e; + } + : function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e; + })(e); + } + function f(e, t) { + var n = Object.keys(e); + if (Object.getOwnPropertySymbols) { + var r = Object.getOwnPropertySymbols(e); + t && + (r = r.filter(function(t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable; + })), + n.push.apply(n, r); + } + return n; + } + function d(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}; + t % 2 + ? f(n, !0).forEach(function(t) { + y(e, t, n[t]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) + : f(n).forEach(function(t) { + Object.defineProperty( + e, + t, + Object.getOwnPropertyDescriptor(n, t) + ); + }); + } + return e; + } + function p(e) { + return ( + (function(e) { + if (Array.isArray(e)) { + for (var t = 0, n = new Array(e.length); t < e.length; t++) + n[t] = e[t]; + return n; + } + })(e) || + (function(e) { + if ( + Symbol.iterator in Object(e) || + '[object Arguments]' === Object.prototype.toString.call(e) + ) + return Array.from(e); + })(e) || + (function() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance' + ); + })() + ); + } + function h(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + function g(e) { + return (g = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(e) { + return e.__proto__ || Object.getPrototypeOf(e); + })(e); + } + function m(e) { + if (void 0 === e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return e; + } + function b(e, t) { + return (b = + Object.setPrototypeOf || + function(e, t) { + return (e.__proto__ = t), e; + })(e, t); + } + function y(e, t, n) { + return ( + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), + e + ); + } + var v = function(e) { + var t = e || {}, + n = t.verticalCompact, + r = t.compactType; + return !1 === n ? null : r; + }, + _ = 'react-grid-layout', + w = !1; + try { + w = navigator.userAgent.toLowerCase().includes('firefox'); + } catch (e) {} + var x = (function(e) { + function t(e, n) { + var o; + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, t), + (o = (function(e, t) { + return !t || ('object' !== l(t) && 'function' != typeof t) + ? m(e) + : t; + })(this, g(t).call(this, e, n))), + y(m(o), 'state', { + activeDrag: null, + layout: (0, s.synchronizeLayoutWithChildren)( + o.props.layout, + o.props.children, + o.props.cols, + v(o.props) + ), + mounted: !1, + oldDragItem: null, + oldLayout: null, + oldResizeItem: null, + droppingDOMNode: null, + children: [] + }), + y(m(o), 'dragEnterCounter', 0), + y(m(o), 'onDragOver', function(e) { + if (w && !e.nativeEvent.target.className.includes(_)) return !1; + var t = o.props.droppingItem, + n = o.state.layout, + i = e.nativeEvent, + a = i.layerX, + s = i.layerY, + c = { x: a, y: s, e: e }; + if (o.state.droppingDOMNode) { + if (o.state.droppingPosition) { + (o.state.droppingPosition.x != a || + o.state.droppingPosition.y != s) && + o.setState({ droppingPosition: c }); + } + } else o.setState({ droppingDOMNode: r.default.createElement('div', { key: t.i }), droppingPosition: c, layout: [].concat(p(n), [d({}, t, { x: 0, y: 0, static: !1, isDraggable: !0 })]) }); + e.stopPropagation(), e.preventDefault(); + }), + y(m(o), 'removeDroppingPlaceholder', function() { + var e = o.props, + t = e.droppingItem, + n = e.cols, + r = o.state.layout, + i = (0, s.compact)( + r.filter(function(e) { + return e.i !== t.i; + }), + v(o.props), + n + ); + o.setState({ + layout: i, + droppingDOMNode: null, + activeDrag: null, + droppingPosition: void 0 + }); + }), + y(m(o), 'onDragLeave', function() { + o.dragEnterCounter--, + 0 === o.dragEnterCounter && o.removeDroppingPlaceholder(); + }), + y(m(o), 'onDragEnter', function() { + o.dragEnterCounter++; + }), + y(m(o), 'onDrop', function() { + var e = o.props.droppingItem, + t = + o.state.layout.find(function(t) { + return t.i === e.i; + }) || {}, + n = t.x, + r = t.y, + i = t.w, + a = t.h; + (o.dragEnterCounter = 0), + o.removeDroppingPlaceholder(), + o.props.onDrop({ x: n, y: r, w: i, h: a }); + }), + (0, s.autoBindHandlers)(m(o), [ + 'onDragStart', + 'onDrag', + 'onDragStop', + 'onResizeStart', + 'onResize', + 'onResizeStop' + ]), + o + ); + } + var n, o, u; + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { value: e, writable: !0, configurable: !0 } + })), + t && b(e, t); + })(t, e), + (n = t), + (u = [ + { + key: 'getDerivedStateFromProps', + value: function(e, t) { + var n; + return t.activeDrag + ? null + : ((0, i.default)(e.layout, t.propsLayout) && + e.compactType === t.compactType + ? (0, s.childrenEqual)(e.children, t.children) || + (n = t.layout) + : (n = e.layout), + n + ? { + layout: (0, s.synchronizeLayoutWithChildren)( + n, + e.children, + e.cols, + v(e) + ), + compactType: e.compactType, + children: e.children, + propsLayout: e.layout + } + : null); + } + } + ]), + (o = [ + { + key: 'componentDidMount', + value: function() { + this.setState({ mounted: !0 }), + this.onLayoutMaybeChanged( + this.state.layout, + this.props.layout + ); + } + }, + { + key: 'componentDidUpdate', + value: function(e, t) { + if (!this.state.activeDrag) { + var n = this.state.layout, + r = t.layout; + this.onLayoutMaybeChanged(n, r); + } + } + }, + { + key: 'containerHeight', + value: function() { + if (this.props.autoSize) { + var e = (0, s.bottom)(this.state.layout), + t = this.props.containerPadding + ? this.props.containerPadding[1] + : this.props.margin[1]; + return ( + e * this.props.rowHeight + + (e - 1) * this.props.margin[1] + + 2 * t + + 'px' + ); + } + } + }, + { + key: 'onDragStart', + value: function(e, t, n, r) { + var o = r.e, + i = r.node, + a = this.state.layout, + c = (0, s.getLayoutItem)(a, e); + if (c) + return ( + this.setState({ + oldDragItem: (0, s.cloneLayoutItem)(c), + oldLayout: this.state.layout + }), + this.props.onDragStart(a, c, c, null, o, i) + ); + } + }, + { + key: 'onDrag', + value: function(e, t, n, r) { + var o = r.e, + i = r.node, + a = this.state.oldDragItem, + c = this.state.layout, + u = this.props.cols, + l = (0, s.getLayoutItem)(c, e); + if (l) { + var f = { + w: l.w, + h: l.h, + x: l.x, + y: l.y, + placeholder: !0, + i: e + }; + (c = (0, s.moveElement)( + c, + l, + t, + n, + !0, + this.props.preventCollision, + v(this.props), + u + )), + this.props.onDrag(c, a, l, f, o, i), + this.setState({ + layout: (0, s.compact)(c, v(this.props), u), + activeDrag: f + }); + } + } + }, + { + key: 'onDragStop', + value: function(e, t, n, r) { + var o = r.e, + i = r.node, + a = this.state.oldDragItem, + c = this.state.layout, + u = this.props, + l = u.cols, + f = u.preventCollision, + d = (0, s.getLayoutItem)(c, e); + if (d) { + (c = (0, s.moveElement)(c, d, t, n, !0, f, v(this.props), l)), + this.state.activeDrag && + this.props.onDragStop(c, a, d, null, o, i); + var p = (0, s.compact)(c, v(this.props), l), + h = this.state.oldLayout; + this.setState({ + activeDrag: null, + layout: p, + oldDragItem: null, + oldLayout: null + }), + this.onLayoutMaybeChanged(p, h); + } + } + }, + { + key: 'onLayoutMaybeChanged', + value: function(e, t) { + t || (t = this.state.layout), + (0, i.default)(t, e) || this.props.onLayoutChange(e); + } + }, + { + key: 'onResizeStart', + value: function(e, t, n, r) { + var o = r.e, + i = r.node, + a = this.state.layout, + c = (0, s.getLayoutItem)(a, e); + c && + (this.setState({ + oldResizeItem: (0, s.cloneLayoutItem)(c), + oldLayout: this.state.layout + }), + this.props.onResizeStart(a, c, c, null, o, i)); + } + }, + { + key: 'onResize', + value: function(e, t, n, r) { + var o = r.e, + i = r.node, + a = this.state, + c = a.layout, + u = a.oldResizeItem, + l = this.props, + f = l.cols, + p = l.preventCollision, + h = (0, s.getLayoutItem)(c, e); + if (h) { + var g; + if (p) { + var m = (0, s.getAllCollisions)( + c, + d({}, h, { w: t, h: n }) + ).filter(function(e) { + return e.i !== h.i; + }); + if ((g = m.length > 0)) { + var b = 1 / 0, + y = 1 / 0; + m.forEach(function(e) { + e.x > h.x && (b = Math.min(b, e.x)), + e.y > h.y && (y = Math.min(y, e.y)); + }), + Number.isFinite(b) && (h.w = b - h.x), + Number.isFinite(y) && (h.h = y - h.y); + } + } + g || ((h.w = t), (h.h = n)); + var _ = { w: h.w, h: h.h, x: h.x, y: h.y, static: !0, i: e }; + this.props.onResize(c, u, h, _, o, i), + this.setState({ + layout: (0, s.compact)(c, v(this.props), f), + activeDrag: _ + }); + } + } + }, + { + key: 'onResizeStop', + value: function(e, t, n, r) { + var o = r.e, + i = r.node, + a = this.state, + c = a.layout, + u = a.oldResizeItem, + l = this.props.cols, + f = (0, s.getLayoutItem)(c, e); + this.props.onResizeStop(c, u, f, null, o, i); + var d = (0, s.compact)(c, v(this.props), l), + p = this.state.oldLayout; + this.setState({ + activeDrag: null, + layout: d, + oldResizeItem: null, + oldLayout: null + }), + this.onLayoutMaybeChanged(d, p); + } + }, + { + key: 'placeholder', + value: function() { + var e = this.state.activeDrag; + if (!e) return null; + var t = this.props, + n = t.width, + o = t.cols, + i = t.margin, + a = t.containerPadding, + s = t.rowHeight, + u = t.maxRows, + l = t.useCSSTransforms, + f = t.transformScale; + return r.default.createElement( + c.default, + { + w: e.w, + h: e.h, + x: e.x, + y: e.y, + i: e.i, + className: 'react-grid-placeholder', + containerWidth: n, + cols: o, + margin: i, + containerPadding: a || i, + maxRows: u, + rowHeight: s, + isDraggable: !1, + isResizable: !1, + useCSSTransforms: l, + transformScale: f + }, + r.default.createElement('div', null) + ); + } + }, + { + key: 'processGridItem', + value: function(e, t) { + if (e && e.key) { + var n = (0, s.getLayoutItem)( + this.state.layout, + String(e.key) + ); + if (!n) return null; + var o = this.props, + i = o.width, + a = o.cols, + u = o.margin, + l = o.containerPadding, + f = o.rowHeight, + d = o.maxRows, + p = o.isDraggable, + h = o.isResizable, + g = o.useCSSTransforms, + m = o.transformScale, + b = o.draggableCancel, + y = o.draggableHandle, + v = this.state, + _ = v.mounted, + w = v.droppingPosition, + x = Boolean( + !n.static && p && (n.isDraggable || null == n.isDraggable) + ), + M = Boolean( + !n.static && h && (n.isResizable || null == n.isResizable) + ); + return r.default.createElement( + c.default, + { + containerWidth: i, + cols: a, + margin: u, + containerPadding: l || u, + maxRows: d, + rowHeight: f, + cancel: b, + handle: y, + onDragStop: this.onDragStop, + onDragStart: this.onDragStart, + onDrag: this.onDrag, + onResizeStart: this.onResizeStart, + onResize: this.onResize, + onResizeStop: this.onResizeStop, + isDraggable: x, + isResizable: M, + useCSSTransforms: g && _, + usePercentages: !_, + transformScale: m, + w: n.w, + h: n.h, + x: n.x, + y: n.y, + i: n.i, + minH: n.minH, + minW: n.minW, + maxH: n.maxH, + maxW: n.maxW, + static: n.static, + droppingPosition: t ? w : void 0 + }, + e + ); + } + } + }, + { + key: 'render', + value: function() { + var e = this, + t = this.props, + n = t.className, + o = t.style, + i = t.isDroppable, + c = (0, a.default)(_, n), + u = d({ height: this.containerHeight() }, o); + return r.default.createElement( + 'div', + { + className: c, + style: u, + onDrop: i ? this.onDrop : s.noop, + onDragLeave: i ? this.onDragLeave : s.noop, + onDragEnter: i ? this.onDragEnter : s.noop, + onDragOver: i ? this.onDragOver : s.noop + }, + r.default.Children.map(this.props.children, function(t) { + return e.processGridItem(t); + }), + i && + this.state.droppingDOMNode && + this.processGridItem(this.state.droppingDOMNode, !0), + this.placeholder() + ); + } + } + ]) && h(n.prototype, o), + u && h(n, u), + t + ); + })(r.default.Component); + (t.default = x), + y(x, 'displayName', 'ReactGridLayout'), + y(x, 'propTypes', { + className: o.default.string, + style: o.default.object, + width: o.default.number, + autoSize: o.default.bool, + cols: o.default.number, + draggableCancel: o.default.string, + draggableHandle: o.default.string, + verticalCompact: function(e) { + e.verticalCompact, 0; + }, + compactType: o.default.oneOf(['vertical', 'horizontal']), + layout: function(e) { + var t = e.layout; + void 0 !== t && (0, s.validateLayout)(t, 'layout'); + }, + margin: o.default.arrayOf(o.default.number), + containerPadding: o.default.arrayOf(o.default.number), + rowHeight: o.default.number, + maxRows: o.default.number, + isDraggable: o.default.bool, + isResizable: o.default.bool, + preventCollision: o.default.bool, + useCSSTransforms: o.default.bool, + transformScale: o.default.number, + isDroppable: o.default.bool, + onLayoutChange: o.default.func, + onDragStart: o.default.func, + onDrag: o.default.func, + onDragStop: o.default.func, + onResizeStart: o.default.func, + onResize: o.default.func, + onResizeStop: o.default.func, + onDrop: o.default.func, + droppingItem: o.default.shape({ + i: o.default.string.isRequired, + w: o.default.number.isRequired, + h: o.default.number.isRequired + }), + children: function(e, t) { + var n = e[t], + o = {}; + r.default.Children.forEach(n, function(e) { + if (o[e.key]) + throw new Error( + 'Duplicate child key "' + + e.key + + '" found! This will cause problems in ReactGridLayout.' + ); + o[e.key] = !0; + }); + } }), - n.d(t, 'symbolTriangle', function() { - return mx; + y(x, 'defaultProps', { + autoSize: !0, + cols: 12, + className: '', + style: {}, + draggableHandle: '', + draggableCancel: '', + containerPadding: null, + rowHeight: 150, + maxRows: 1 / 0, + layout: [], + margin: [10, 10], + isDraggable: !0, + isResizable: !0, + isDroppable: !1, + useCSSTransforms: !0, + transformScale: 1, + verticalCompact: !0, + compactType: 'vertical', + preventCollision: !1, + droppingItem: { i: '__dropping-elem__', h: 1, w: 1 }, + onLayoutChange: s.noop, + onDragStart: s.noop, + onDrag: s.noop, + onDragStop: s.noop, + onResizeStart: s.noop, + onResize: s.noop, + onResizeStop: s.noop, + onDrop: s.noop + }); + }, + function(e, t, n) { + var r, o; + window, + (e.exports = + ((r = n(0)), + (o = n(7)), + (function(e) { + var t = {}; + function n(r) { + if (t[r]) return t[r].exports; + var o = (t[r] = { i: r, l: !1, exports: {} }); + return ( + e[r].call(o.exports, o, o.exports, n), (o.l = !0), o.exports + ); + } + return ( + (n.m = e), + (n.c = t), + (n.d = function(e, t, r) { + n.o(e, t) || + Object.defineProperty(e, t, { enumerable: !0, get: r }); + }), + (n.r = function(e) { + 'undefined' != typeof Symbol && + Symbol.toStringTag && + Object.defineProperty(e, Symbol.toStringTag, { + value: 'Module' + }), + Object.defineProperty(e, '__esModule', { value: !0 }); + }), + (n.t = function(e, t) { + if ((1 & t && (e = n(e)), 8 & t)) return e; + if (4 & t && 'object' == typeof e && e && e.__esModule) + return e; + var r = Object.create(null); + if ( + (n.r(r), + Object.defineProperty(r, 'default', { + enumerable: !0, + value: e + }), + 2 & t && 'string' != typeof e) + ) + for (var o in e) + n.d( + r, + o, + function(t) { + return e[t]; + }.bind(null, o) + ); + return r; + }), + (n.n = function(e) { + var t = + e && e.__esModule + ? function() { + return e.default; + } + : function() { + return e; + }; + return n.d(t, 'a', t), t; + }), + (n.o = function(e, t) { + return Object.prototype.hasOwnProperty.call(e, t); + }), + (n.p = ''), + n((n.s = 4)) + ); + })([ + function(e, t, n) { + e.exports = n(5)(); + }, + function(e, t) { + e.exports = r; + }, + function(e, t) { + e.exports = o; + }, + function(e, t, n) { + var r; + /*! + Copyright (c) 2017 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/ !(function() { + 'use strict'; + var n = {}.hasOwnProperty; + function o() { + for (var e = [], t = 0; t < arguments.length; t++) { + var r = arguments[t]; + if (r) { + var i = typeof r; + if ('string' === i || 'number' === i) e.push(r); + else if (Array.isArray(r) && r.length) { + var a = o.apply(null, r); + a && e.push(a); + } else if ('object' === i) + for (var s in r) n.call(r, s) && r[s] && e.push(s); + } + } + return e.join(' '); + } + e.exports + ? ((o.default = o), (e.exports = o)) + : void 0 === + (r = function() { + return o; + }.apply(t, [])) || (e.exports = r); + })(); + }, + function(e, t, n) { + var r = n(7), + o = r.default, + i = r.DraggableCore; + (e.exports = o), + (e.exports.default = o), + (e.exports.DraggableCore = i); + }, + function(e, t, n) { + 'use strict'; + var r = n(6); + function o() {} + function i() {} + (i.resetWarningCache = o), + (e.exports = function() { + function e(e, t, n, o, i, a) { + if (a !== r) { + var s = 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 ((s.name = 'Invariant Violation'), s); + } + } + function t() { + return e; + } + e.isRequired = e; + var n = { + array: e, + bool: e, + func: e, + number: e, + object: e, + string: e, + symbol: e, + any: e, + arrayOf: t, + element: e, + elementType: e, + instanceOf: t, + node: e, + objectOf: t, + oneOf: t, + oneOfType: t, + shape: t, + exact: t, + checkPropTypes: i, + resetWarningCache: o + }; + return (n.PropTypes = n), n; + }); + }, + function(e, t, n) { + 'use strict'; + e.exports = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + }, + function(e, t, n) { + 'use strict'; + n.r(t); + var r = n(1), + o = n.n(r), + i = n(0), + a = n.n(i), + s = n(2), + c = n.n(s), + u = n(3), + l = n.n(u); + function f(e, t) { + for (var n = 0, r = e.length; n < r; n++) + if (t.apply(t, [e[n], n, e])) return e[n]; + } + function d(e) { + return ( + 'function' == typeof e || + '[object Function]' === Object.prototype.toString.call(e) + ); + } + function p(e) { + return 'number' == typeof e && !isNaN(e); + } + function h(e) { + return parseInt(e, 10); + } + function g(e, t, n) { + if (e[t]) + return new Error( + 'Invalid prop ' + .concat(t, ' passed to ') + .concat(n, ' - do not set this, set it on the child.') + ); + } + var m = ['Moz', 'Webkit', 'O', 'ms']; + function b(e, t) { + return t + ? ''.concat(t).concat( + (function(e) { + for (var t = '', n = !0, r = 0; r < e.length; r++) + n + ? ((t += e[r].toUpperCase()), (n = !1)) + : '-' === e[r] + ? (n = !0) + : (t += e[r]); + return t; + })(e) + ) + : e; + } + var y = (function() { + var e = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : 'transform'; + if ('undefined' == typeof window || void 0 === window.document) + return ''; + var t = window.document.documentElement.style; + if (e in t) return ''; + for (var n = 0; n < m.length; n++) + if (b(e, m[n]) in t) return m[n]; + return ''; + })(); + function v(e, t) { + var n = Object.keys(e); + if (Object.getOwnPropertySymbols) { + var r = Object.getOwnPropertySymbols(e); + t && + (r = r.filter(function(t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable; + })), + n.push.apply(n, r); + } + return n; + } + function _(e, t, n) { + return ( + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), + e + ); + } + var w = ''; + function x(e, t) { + return ( + w || + (w = f( + [ + 'matches', + 'webkitMatchesSelector', + 'mozMatchesSelector', + 'msMatchesSelector', + 'oMatchesSelector' + ], + function(t) { + return d(e[t]); + } + )), + !!d(e[w]) && e[w](t) + ); + } + function M(e, t, n) { + var r = e; + do { + if (x(r, t)) return !0; + if (r === n) return !1; + r = r.parentNode; + } while (r); + return !1; + } + function k(e, t, n) { + e && + (e.attachEvent + ? e.attachEvent('on' + t, n) + : e.addEventListener + ? e.addEventListener(t, n, !0) + : (e['on' + t] = n)); + } + function S(e, t, n) { + e && + (e.detachEvent + ? e.detachEvent('on' + t, n) + : e.removeEventListener + ? e.removeEventListener(t, n, !0) + : (e['on' + t] = null)); + } + function O(e) { + var t = e.clientHeight, + n = e.ownerDocument.defaultView.getComputedStyle(e); + return (t += h(n.borderTopWidth)) + h(n.borderBottomWidth); + } + function E(e) { + var t = e.clientWidth, + n = e.ownerDocument.defaultView.getComputedStyle(e); + return (t += h(n.borderLeftWidth)) + h(n.borderRightWidth); + } + function A(e) { + var t = e.clientHeight, + n = e.ownerDocument.defaultView.getComputedStyle(e); + return (t -= h(n.paddingTop)) - h(n.paddingBottom); + } + function T(e) { + var t = e.clientWidth, + n = e.ownerDocument.defaultView.getComputedStyle(e); + return (t -= h(n.paddingLeft)) - h(n.paddingRight); + } + function C(e, t, n) { + var r = e.x, + o = e.y, + i = 'translate(' + .concat(r) + .concat(n, ',') + .concat(o) + .concat(n, ')'); + if (t) { + var a = ''.concat('string' == typeof t.x ? t.x : t.x + n), + s = ''.concat('string' == typeof t.y ? t.y : t.y + n); + i = 'translate('.concat(a, ', ').concat(s, ')') + i; + } + return i; + } + function L(e) { + try { + e && + e.body && + ((t = e.body), + (n = 'react-draggable-transparent-selection'), + t.classList + ? t.classList.remove(n) + : (t.className = t.className.replace( + new RegExp('(?:^|\\s)'.concat(n, '(?!\\S)'), 'g'), + '' + ))), + e.selection + ? e.selection.empty() + : window.getSelection().removeAllRanges(); + } catch (e) {} + var t, n; + } + function P() { + return (function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}; + t % 2 + ? v(n, !0).forEach(function(t) { + _(e, t, n[t]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties( + e, + Object.getOwnPropertyDescriptors(n) + ) + : v(n).forEach(function(t) { + Object.defineProperty( + e, + t, + Object.getOwnPropertyDescriptor(n, t) + ); + }); + } + return e; + })( + { touchAction: 'none' }, + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : {} + ); + } + function D(e) { + return 'both' === e.props.axis || 'x' === e.props.axis; + } + function j(e) { + return 'both' === e.props.axis || 'y' === e.props.axis; + } + function z(e, t, n) { + var r = + 'number' == typeof t + ? (function(e, t) { + return ( + (e.targetTouches && + f(e.targetTouches, function(e) { + return t === e.identifier; + })) || + (e.changedTouches && + f(e.changedTouches, function(e) { + return t === e.identifier; + })) + ); + })(e, t) + : null; + if ('number' == typeof t && !r) return null; + var o = I(n); + return (function(e, t) { + var n = + t === t.ownerDocument.body + ? { left: 0, top: 0 } + : t.getBoundingClientRect(); + return { + x: e.clientX + t.scrollLeft - n.left, + y: e.clientY + t.scrollTop - n.top + }; + })( + r || e, + n.props.offsetParent || o.offsetParent || o.ownerDocument.body + ); + } + function N(e, t, n) { + var r = e.state, + o = !p(r.lastX), + i = I(e); + return o + ? { + node: i, + deltaX: 0, + deltaY: 0, + lastX: t, + lastY: n, + x: t, + y: n + } + : { + node: i, + deltaX: t - r.lastX, + deltaY: n - r.lastY, + lastX: r.lastX, + lastY: r.lastY, + x: t, + y: n + }; + } + function R(e, t) { + var n = e.props.scale; + return { + node: t.node, + x: e.state.x + t.deltaX / n, + y: e.state.y + t.deltaY / n, + deltaX: t.deltaX / n, + deltaY: t.deltaY / n, + lastX: e.state.x, + lastY: e.state.y + }; + } + function I(e) { + var t = c.a.findDOMNode(e); + if (!t) + throw new Error(': Unmounted during event!'); + return t; + } + function F(e) { + return (F = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(e) { + return typeof e; + } + : function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e; + })(e); + } + function q(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + function B(e) { + return (B = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(e) { + return e.__proto__ || Object.getPrototypeOf(e); + })(e); + } + function H(e) { + if (void 0 === e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return e; + } + function Y(e, t) { + return (Y = + Object.setPrototypeOf || + function(e, t) { + return (e.__proto__ = t), e; + })(e, t); + } + function W(e, t, n) { + return ( + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), + e + ); + } + var V = { + touch: { + start: 'touchstart', + move: 'touchmove', + stop: 'touchend' + }, + mouse: { + start: 'mousedown', + move: 'mousemove', + stop: 'mouseup' + } + }, + U = V.mouse, + X = (function(e) { + function t() { + var e, n, r; + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t); + for ( + var o = arguments.length, i = new Array(o), a = 0; + a < o; + a++ + ) + i[a] = arguments[a]; + return ( + (r = (e = B(t)).call.apply(e, [this].concat(i))), + (n = + !r || ('object' !== F(r) && 'function' != typeof r) + ? H(this) + : r), + W(H(n), 'state', { + dragging: !1, + lastX: NaN, + lastY: NaN, + touchIdentifier: null + }), + W(H(n), 'handleDragStart', function(e) { + if ( + (n.props.onMouseDown(e), + !n.props.allowAnyClick && + 'number' == typeof e.button && + 0 !== e.button) + ) + return !1; + var t = c.a.findDOMNode(H(n)); + if (!t || !t.ownerDocument || !t.ownerDocument.body) + throw new Error( + ' not mounted on DragStart!' + ); + var r = t.ownerDocument; + if ( + !( + n.props.disabled || + !(e.target instanceof r.defaultView.Node) || + (n.props.handle && + !M(e.target, n.props.handle, t)) || + (n.props.cancel && M(e.target, n.props.cancel, t)) + ) + ) { + var o = (function(e) { + return e.targetTouches && e.targetTouches[0] + ? e.targetTouches[0].identifier + : e.changedTouches && e.changedTouches[0] + ? e.changedTouches[0].identifier + : void 0; + })(e); + n.setState({ touchIdentifier: o }); + var i = z(e, o, H(n)); + if (null != i) { + var a = i.x, + s = i.y, + u = N(H(n), a, s); + n.props.onStart, + !1 !== n.props.onStart(e, u) && + (n.props.enableUserSelectHack && + (function(e) { + if (e) { + var t, + n, + r = e.getElementById( + 'react-draggable-style-el' + ); + r || + (((r = e.createElement('style')).type = + 'text/css'), + (r.id = 'react-draggable-style-el'), + (r.innerHTML = + '.react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n'), + (r.innerHTML += + '.react-draggable-transparent-selection *::selection {all: inherit;}\n'), + e + .getElementsByTagName('head')[0] + .appendChild(r)), + e.body && + ((n = + 'react-draggable-transparent-selection'), + (t = e.body).classList + ? t.classList.add(n) + : t.className.match( + new RegExp( + '(?:^|\\s)'.concat( + n, + '(?!\\S)' + ) + ) + ) || + (t.className += ' '.concat(n))); + } + })(r), + n.setState({ + dragging: !0, + lastX: a, + lastY: s + }), + k(r, U.move, n.handleDrag), + k(r, U.stop, n.handleDragStop)); + } + } + }), + W(H(n), 'handleDrag', function(e) { + 'touchmove' === e.type && e.preventDefault(); + var t = z(e, n.state.touchIdentifier, H(n)); + if (null != t) { + var r, + o, + i, + a = t.x, + s = t.y; + if (Array.isArray(n.props.grid)) { + var c = a - n.state.lastX, + u = s - n.state.lastY, + l = (function(e, t) { + return ( + (function(e) { + if (Array.isArray(e)) return e; + })(e) || + (function(e, t) { + var n = [], + r = !0, + o = !1, + i = void 0; + try { + for ( + var a, s = e[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !t || n.length !== t); + r = !0 + ); + } catch (e) { + (o = !0), (i = e); + } finally { + try { + r || null == s.return || s.return(); + } finally { + if (o) throw i; + } + } + return n; + })(e, t) || + (function() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' + ); + })() + ); + })( + ((r = n.props.grid), + (o = c), + (i = u), + [ + Math.round(o / r[0]) * r[0], + Math.round(i / r[1]) * r[1] + ]), + 2 + ); + if (((c = l[0]), (u = l[1]), !c && !u)) return; + (a = n.state.lastX + c), (s = n.state.lastY + u); + } + var f = N(H(n), a, s); + if (!1 !== n.props.onDrag(e, f)) + n.setState({ lastX: a, lastY: s }); + else + try { + n.handleDragStop(new MouseEvent('mouseup')); + } catch (e) { + var d = document.createEvent('MouseEvents'); + d.initMouseEvent( + 'mouseup', + !0, + !0, + window, + 0, + 0, + 0, + 0, + 0, + !1, + !1, + !1, + !1, + 0, + null + ), + n.handleDragStop(d); + } + } + }), + W(H(n), 'handleDragStop', function(e) { + if (n.state.dragging) { + var t = z(e, n.state.touchIdentifier, H(n)); + if (null != t) { + var r = t.x, + o = t.y, + i = N(H(n), r, o), + a = c.a.findDOMNode(H(n)); + a && + n.props.enableUserSelectHack && + L(a.ownerDocument), + n.setState({ + dragging: !1, + lastX: NaN, + lastY: NaN + }), + n.props.onStop(e, i), + a && + (S(a.ownerDocument, U.move, n.handleDrag), + S(a.ownerDocument, U.stop, n.handleDragStop)); + } + } + }), + W(H(n), 'onMouseDown', function(e) { + return (U = V.mouse), n.handleDragStart(e); + }), + W(H(n), 'onMouseUp', function(e) { + return (U = V.mouse), n.handleDragStop(e); + }), + W(H(n), 'onTouchStart', function(e) { + return (U = V.touch), n.handleDragStart(e); + }), + W(H(n), 'onTouchEnd', function(e) { + return (U = V.touch), n.handleDragStop(e); + }), + n + ); + } + var n, r; + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + writable: !0, + configurable: !0 + } + })), + t && Y(e, t); + })(t, o.a.Component), + (n = t), + (r = [ + { + key: 'componentWillUnmount', + value: function() { + var e = c.a.findDOMNode(this); + if (e) { + var t = e.ownerDocument; + S(t, V.mouse.move, this.handleDrag), + S(t, V.touch.move, this.handleDrag), + S(t, V.mouse.stop, this.handleDragStop), + S(t, V.touch.stop, this.handleDragStop), + this.props.enableUserSelectHack && L(t); + } + } + }, + { + key: 'render', + value: function() { + return o.a.cloneElement( + o.a.Children.only(this.props.children), + { + style: P(this.props.children.props.style), + onMouseDown: this.onMouseDown, + onTouchStart: this.onTouchStart, + onMouseUp: this.onMouseUp, + onTouchEnd: this.onTouchEnd + } + ); + } + } + ]) && q(n.prototype, r), + t + ); + })(); + function G(e) { + return (G = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(e) { + return typeof e; + } + : function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e; + })(e); + } + function K() { + return (K = + Object.assign || + function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (e[r] = n[r]); + } + return e; + }).apply(this, arguments); + } + function $(e, t) { + var n = Object.keys(e); + if (Object.getOwnPropertySymbols) { + var r = Object.getOwnPropertySymbols(e); + t && + (r = r.filter(function(t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable; + })), + n.push.apply(n, r); + } + return n; + } + function Q(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}; + t % 2 + ? $(n, !0).forEach(function(t) { + re(e, t, n[t]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties( + e, + Object.getOwnPropertyDescriptors(n) + ) + : $(n).forEach(function(t) { + Object.defineProperty( + e, + t, + Object.getOwnPropertyDescriptor(n, t) + ); + }); + } + return e; + } + function J(e) { + return (J = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(e) { + return e.__proto__ || Object.getPrototypeOf(e); + })(e); + } + function Z(e) { + if (void 0 === e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return e; + } + function ee(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + function te(e, t, n) { + return t && ee(e.prototype, t), n && ee(e, n), e; + } + function ne(e, t) { + return (ne = + Object.setPrototypeOf || + function(e, t) { + return (e.__proto__ = t), e; + })(e, t); + } + function re(e, t, n) { + return ( + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), + e + ); + } + W(X, 'displayName', 'DraggableCore'), + W(X, 'propTypes', { + allowAnyClick: a.a.bool, + disabled: a.a.bool, + enableUserSelectHack: a.a.bool, + offsetParent: function(e, t) { + if (e[t] && 1 !== e[t].nodeType) + throw new Error( + "Draggable's offsetParent must be a DOM Node." + ); + }, + grid: a.a.arrayOf(a.a.number), + handle: a.a.string, + cancel: a.a.string, + onStart: a.a.func, + onDrag: a.a.func, + onStop: a.a.func, + onMouseDown: a.a.func, + className: g, + style: g, + transform: g + }), + W(X, 'defaultProps', { + allowAnyClick: !1, + cancel: null, + disabled: !1, + enableUserSelectHack: !0, + offsetParent: null, + handle: null, + grid: null, + transform: null, + onStart: function() {}, + onDrag: function() {}, + onStop: function() {}, + onMouseDown: function() {} + }), + n.d(t, 'default', function() { + return oe; + }), + n.d(t, 'DraggableCore', function() { + return X; + }); + var oe = (function(e) { + function t(e) { + var n, r; + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (r = J(t).call(this, e)), + (n = + !r || ('object' !== G(r) && 'function' != typeof r) + ? Z(this) + : r), + re(Z(n), 'onDragStart', function(e, t) { + if (!1 === n.props.onStart(e, R(Z(n), t))) return !1; + n.setState({ dragging: !0, dragged: !0 }); + }), + re(Z(n), 'onDrag', function(e, t) { + if (!n.state.dragging) return !1; + var r = R(Z(n), t), + o = { x: r.x, y: r.y }; + if (n.props.bounds) { + var i = o.x, + a = o.y; + (o.x += n.state.slackX), (o.y += n.state.slackY); + var s = (function(e, t) { + return ( + (function(e) { + if (Array.isArray(e)) return e; + })(e) || + (function(e, t) { + var n = [], + r = !0, + o = !1, + i = void 0; + try { + for ( + var a, s = e[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !t || n.length !== t); + r = !0 + ); + } catch (e) { + (o = !0), (i = e); + } finally { + try { + r || null == s.return || s.return(); + } finally { + if (o) throw i; + } + } + return n; + })(e, t) || + (function() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' + ); + })() + ); + })( + (function(e, t, n) { + if (!e.props.bounds) return [t, n]; + var r = e.props.bounds; + r = + 'string' == typeof r + ? r + : (function(e) { + return { + left: e.left, + top: e.top, + right: e.right, + bottom: e.bottom + }; + })(r); + var o = I(e); + if ('string' == typeof r) { + var i, + a = o.ownerDocument, + s = a.defaultView; + if ( + !( + (i = + 'parent' === r + ? o.parentNode + : a.querySelector(r)) instanceof + s.HTMLElement + ) + ) + throw new Error( + 'Bounds selector "' + + r + + '" could not find an element.' + ); + var c = s.getComputedStyle(o), + u = s.getComputedStyle(i); + r = { + left: + -o.offsetLeft + + h(u.paddingLeft) + + h(c.marginLeft), + top: + -o.offsetTop + + h(u.paddingTop) + + h(c.marginTop), + right: + T(i) - + E(o) - + o.offsetLeft + + h(u.paddingRight) - + h(c.marginRight), + bottom: + A(i) - + O(o) - + o.offsetTop + + h(u.paddingBottom) - + h(c.marginBottom) + }; + } + return ( + p(r.right) && (t = Math.min(t, r.right)), + p(r.bottom) && (n = Math.min(n, r.bottom)), + p(r.left) && (t = Math.max(t, r.left)), + p(r.top) && (n = Math.max(n, r.top)), + [t, n] + ); + })(Z(n), o.x, o.y), + 2 + ), + c = s[0], + u = s[1]; + (o.x = c), + (o.y = u), + (o.slackX = n.state.slackX + (i - o.x)), + (o.slackY = n.state.slackY + (a - o.y)), + (r.x = o.x), + (r.y = o.y), + (r.deltaX = o.x - n.state.x), + (r.deltaY = o.y - n.state.y); + } + if (!1 === n.props.onDrag(e, r)) return !1; + n.setState(o); + }), + re(Z(n), 'onDragStop', function(e, t) { + if (!n.state.dragging) return !1; + if (!1 === n.props.onStop(e, R(Z(n), t))) return !1; + var r = { dragging: !1, slackX: 0, slackY: 0 }; + if (Boolean(n.props.position)) { + var o = n.props.position, + i = o.x, + a = o.y; + (r.x = i), (r.y = a); + } + n.setState(r); + }), + (n.state = { + dragging: !1, + dragged: !1, + x: e.position ? e.position.x : e.defaultPosition.x, + y: e.position ? e.position.y : e.defaultPosition.y, + prevPropsPosition: Q({}, e.position), + slackX: 0, + slackY: 0, + isElementSVG: !1 + }), + !e.position || + e.onDrag || + e.onStop || + console.warn( + 'A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.' + ), + n + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { value: e, writable: !0, configurable: !0 } + })), + t && ne(e, t); + })(t, o.a.Component), + te(t, null, [ + { + key: 'getDerivedStateFromProps', + value: function(e, t) { + var n = e.position, + r = t.prevPropsPosition; + return !n || (r && n.x === r.x && n.y === r.y) + ? null + : { x: n.x, y: n.y, prevPropsPosition: Q({}, n) }; + } + } + ]), + te(t, [ + { + key: 'componentDidMount', + value: function() { + void 0 !== window.SVGElement && + c.a.findDOMNode(this) instanceof window.SVGElement && + this.setState({ isElementSVG: !0 }); + } + }, + { + key: 'componentWillUnmount', + value: function() { + this.setState({ dragging: !1 }); + } + }, + { + key: 'render', + value: function() { + var e, + t = this.props, + n = (t.axis, t.bounds, t.children), + r = t.defaultPosition, + i = t.defaultClassName, + a = t.defaultClassNameDragging, + s = t.defaultClassNameDragged, + c = t.position, + u = t.positionOffset, + f = + (t.scale, + (function(e, t) { + if (null == e) return {}; + var n, + r, + o = (function(e, t) { + if (null == e) return {}; + var n, + r, + o = {}, + i = Object.keys(e); + for (r = 0; r < i.length; r++) + (n = i[r]), + t.indexOf(n) >= 0 || (o[n] = e[n]); + return o; + })(e, t); + if (Object.getOwnPropertySymbols) { + var i = Object.getOwnPropertySymbols(e); + for (r = 0; r < i.length; r++) + (n = i[r]), + t.indexOf(n) >= 0 || + (Object.prototype.propertyIsEnumerable.call( + e, + n + ) && + (o[n] = e[n])); + } + return o; + })(t, [ + 'axis', + 'bounds', + 'children', + 'defaultPosition', + 'defaultClassName', + 'defaultClassNameDragging', + 'defaultClassNameDragged', + 'position', + 'positionOffset', + 'scale' + ])), + d = {}, + p = null, + h = !Boolean(c) || this.state.dragging, + g = c || r, + m = { + x: D(this) && h ? this.state.x : g.x, + y: j(this) && h ? this.state.y : g.y + }; + this.state.isElementSVG + ? (p = (function(e, t) { + return C(e, t, ''); + })(m, u)) + : (d = (function(e, t) { + var n = C(e, t, 'px'); + return _({}, b('transform', y), n); + })(m, u)); + var v = l()( + n.props.className || '', + i, + (re((e = {}), a, this.state.dragging), + re(e, s, this.state.dragged), + e) + ); + return o.a.createElement( + X, + K({}, f, { + onStart: this.onDragStart, + onDrag: this.onDrag, + onStop: this.onDragStop + }), + o.a.cloneElement(o.a.Children.only(n), { + className: v, + style: Q({}, n.props.style, {}, d), + transform: p + }) + ); + } + } + ]), + t + ); + })(); + re(oe, 'displayName', 'Draggable'), + re( + oe, + 'propTypes', + Q({}, X.propTypes, { + axis: a.a.oneOf(['both', 'x', 'y', 'none']), + bounds: a.a.oneOfType([ + a.a.shape({ + left: a.a.number, + right: a.a.number, + top: a.a.number, + bottom: a.a.number + }), + a.a.string, + a.a.oneOf([!1]) + ]), + defaultClassName: a.a.string, + defaultClassNameDragging: a.a.string, + defaultClassNameDragged: a.a.string, + defaultPosition: a.a.shape({ + x: a.a.number, + y: a.a.number + }), + positionOffset: a.a.shape({ + x: a.a.oneOfType([a.a.number, a.a.string]), + y: a.a.oneOfType([a.a.number, a.a.string]) + }), + position: a.a.shape({ x: a.a.number, y: a.a.number }), + className: g, + style: g, + transform: g + }) + ), + re( + oe, + 'defaultProps', + Q({}, X.defaultProps, { + axis: 'both', + bounds: !1, + defaultClassName: 'react-draggable', + defaultClassNameDragging: 'react-draggable-dragging', + defaultClassNameDragged: 'react-draggable-dragged', + defaultPosition: { x: 0, y: 0 }, + position: null, + scale: 1 + }) + ); + } + ]))); + }, + function(e, t, n) { + 'use strict'; + (t.__esModule = !0), (t.default = void 0); + var r = s(n(0)), + o = s(n(1)), + i = n(235), + a = n(591); + function s(e) { + return e && e.__esModule ? e : { default: e }; + } + function c() { + return (c = + Object.assign || + function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); + } + return e; + }).apply(this, arguments); + } + function u(e, t) { + var n = Object.keys(e); + if (Object.getOwnPropertySymbols) { + var r = Object.getOwnPropertySymbols(e); + t && + (r = r.filter(function(t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable; + })), + n.push.apply(n, r); + } + return n; + } + function l(e, t, n) { + return ( + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), + e + ); + } + var f = (function(e) { + var t, n; + function o() { + for (var t, n = arguments.length, r = new Array(n), o = 0; o < n; o++) + r[o] = arguments[o]; + return ( + l( + (function(e) { + if (void 0 === e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return e; + })((t = e.call.apply(e, [this].concat(r)) || this)), + 'state', + { slackW: 0, slackH: 0 } + ), + t + ); + } + (n = e), + ((t = o).prototype = Object.create(n.prototype)), + (t.prototype.constructor = t), + (t.__proto__ = n); + var s = o.prototype; + return ( + (s.lockAspectRatio = function(e, t, n) { + return [(e = (t = e / n) * n), t]; + }), + (s.runConstraints = function(e, t) { + var n = [this.props.minConstraints, this.props.maxConstraints], + r = n[0], + o = n[1]; + if (!r && !o) return [e, t]; + if (this.props.lockAspectRatio) + if (t === this.props.height) { + var i = this.props.width / this.props.height; + e = (t = e / i) * i; + } else { + var a = this.props.height / this.props.width; + t = (e = t / a) * a; + } + var s = e, + c = t, + u = this.state, + l = u.slackW, + f = u.slackH; + return ( + (e += l), + (t += f), + r && ((e = Math.max(r[0], e)), (t = Math.max(r[1], t))), + o && ((e = Math.min(o[0], e)), (t = Math.min(o[1], t))), + (f += c - t), + ((l += s - e) === this.state.slackW && f === this.state.slackH) || + this.setState({ slackW: l, slackH: f }), + [e, t] + ); + }), + (s.resizeHandler = function(e, t) { + var n = this; + return function(r, o) { + var i = o.node, + a = o.deltaX, + s = o.deltaY, + c = + ('both' === n.props.axis || 'x' === n.props.axis) && + -1 === ['n', 's'].indexOf(t), + u = + ('both' === n.props.axis || 'y' === n.props.axis) && + -1 === ['e', 'w'].indexOf(t); + c && 'w' === t[t.length - 1] && (a = -a), + u && 'n' === t[0] && (s = -s); + var l = n.props.width + (c ? a : 0), + f = n.props.height + (u ? s : 0), + d = l !== n.props.width, + p = f !== n.props.height; + if ('onResize' !== e || d || p) { + var h = n.runConstraints(l, f); + (l = h[0]), (f = h[1]); + var g = {}; + if ('onResizeStart' === e); + else if ('onResizeStop' === e) g.slackW = g.slackH = 0; + else if (l === n.props.width && f === n.props.height) return; + 'function' == typeof n.props[e] + ? ('function' == typeof r.persist && r.persist(), + n.setState(g, function() { + return n.props[e](r, { + node: i, + size: { width: l, height: f }, + handle: t + }); + })) + : n.setState(g); + } + }; + }), + (s.renderResizeHandle = function(e) { + var t = this.props.handle; + return t + ? 'function' == typeof t + ? t(e) + : t + : r.default.createElement('span', { + className: + 'react-resizable-handle react-resizable-handle-' + e + }); + }), + (s.render = function() { + var e = this, + t = this.props, + n = t.children, + o = t.draggableOpts, + s = + (t.width, + t.height, + t.handleSize, + t.lockAspectRatio, + t.axis, + t.minConstraints, + t.maxConstraints, + t.onResize, + t.onResizeStop, + t.onResizeStart, + t.resizeHandles), + f = (function(e, t) { + if (null == e) return {}; + var n, + r, + o = {}, + i = Object.keys(e); + for (r = 0; r < i.length; r++) + (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); + return o; + })(t, [ + 'children', + 'draggableOpts', + 'width', + 'height', + 'handleSize', + 'lockAspectRatio', + 'axis', + 'minConstraints', + 'maxConstraints', + 'onResize', + 'onResizeStop', + 'onResizeStart', + 'resizeHandles' + ]), + d = f.className + ? f.className + ' react-resizable' + : 'react-resizable'; + return (0, a.cloneElement)( + n, + (function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}; + t % 2 + ? u(n, !0).forEach(function(t) { + l(e, t, n[t]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties( + e, + Object.getOwnPropertyDescriptors(n) + ) + : u(n).forEach(function(t) { + Object.defineProperty( + e, + t, + Object.getOwnPropertyDescriptor(n, t) + ); + }); + } + return e; + })({}, f, { + className: d, + children: [ + n.props.children, + s.map(function(t) { + return r.default.createElement( + i.DraggableCore, + c({}, o, { + key: 'resizableHandle-' + t, + onStop: e.resizeHandler('onResizeStop', t), + onStart: e.resizeHandler('onResizeStart', t), + onDrag: e.resizeHandler('onResize', t) + }), + e.renderResizeHandle(t) + ); + }) + ] + }) + ); + }), + o + ); + })(r.default.Component); + (t.default = f), + l(f, 'propTypes', { + children: o.default.element.isRequired, + width: o.default.number.isRequired, + height: o.default.number.isRequired, + handle: o.default.element, + handleSize: o.default.array, + resizeHandles: o.default.arrayOf( + o.default.oneOf(['s', 'w', 'e', 'n', 'sw', 'nw', 'se', 'ne']) + ), + lockAspectRatio: o.default.bool, + axis: o.default.oneOf(['both', 'x', 'y', 'none']), + minConstraints: o.default.arrayOf(o.default.number), + maxConstraints: o.default.arrayOf(o.default.number), + onResizeStop: o.default.func, + onResizeStart: o.default.func, + onResize: o.default.func, + draggableOpts: o.default.object }), - n.d(t, 'symbolWye', function() { - return _x; + l(f, 'defaultProps', { + handleSize: [20, 20], + lockAspectRatio: !1, + axis: 'both', + minConstraints: [20, 20], + maxConstraints: [1 / 0, 1 / 0], + resizeHandles: ['se'] + }); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.getBreakpointFromWidth = function(e, t) { + for (var n = o(e), r = n[0], i = 1, a = n.length; i < a; i++) { + var s = n[i]; + t > e[s] && (r = s); + } + return r; }), - n.d(t, 'curveBasisClosed', function() { - return Ex; + (t.getColsFromBreakpoint = function(e, t) { + if (!t[e]) + throw new Error( + 'ResponsiveReactGridLayout: `cols` entry for breakpoint ' + + e + + ' is missing!' + ); + return t[e]; }), - n.d(t, 'curveBasisOpen', function() { - return Cx; + (t.findOrGenerateResponsiveLayout = function(e, t, n, i, a, s) { + if (e[n]) return (0, r.cloneLayout)(e[n]); + for ( + var c = e[i], + u = o(t), + l = u.slice(u.indexOf(n)), + f = 0, + d = l.length; + f < d; + f++ + ) { + var p = l[f]; + if (e[p]) { + c = e[p]; + break; + } + } + return ( + (c = (0, r.cloneLayout)(c || [])), + (0, r.compact)((0, r.correctBounds)(c, { cols: a }), s, a) + ); }), - n.d(t, 'curveBasis', function() { - return Ax; + (t.sortBreakpoints = o); + var r = n(104); + function o(e) { + return Object.keys(e).sort(function(t, n) { + return e[t] - e[n]; + }); + } + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = function(e, t, n) { + return i.default[e.type](e, t, n); + }); + var r, + o = n(596), + i = (r = o) && r.__esModule ? r : { default: r }; + }, + function(e, t, n) { + var r = n(240), + o = { + input: !0, + option: !0, + optgroup: !0, + select: !0, + button: !0, + datalist: !0, + textarea: !0 + }, + i = { + tr: { tr: !0, th: !0, td: !0 }, + th: { th: !0 }, + td: { thead: !0, th: !0, td: !0 }, + body: { head: !0, link: !0, script: !0 }, + li: { li: !0 }, + p: { p: !0 }, + h1: { p: !0 }, + h2: { p: !0 }, + h3: { p: !0 }, + h4: { p: !0 }, + h5: { p: !0 }, + h6: { p: !0 }, + select: o, + input: o, + output: o, + button: o, + datalist: o, + textarea: o, + option: { option: !0 }, + optgroup: { optgroup: !0 } + }, + a = { + __proto__: null, + area: !0, + base: !0, + basefont: !0, + br: !0, + col: !0, + command: !0, + embed: !0, + frame: !0, + hr: !0, + img: !0, + input: !0, + isindex: !0, + keygen: !0, + link: !0, + meta: !0, + param: !0, + source: !0, + track: !0, + wbr: !0 + }, + s = { __proto__: null, math: !0, svg: !0 }, + c = { + __proto__: null, + mi: !0, + mo: !0, + mn: !0, + ms: !0, + mtext: !0, + 'annotation-xml': !0, + foreignObject: !0, + desc: !0, + title: !0 + }, + u = /\s|\//; + function l(e, t) { + (this._options = t || {}), + (this._cbs = e || {}), + (this._tagname = ''), + (this._attribname = ''), + (this._attribvalue = ''), + (this._attribs = null), + (this._stack = []), + (this._foreignContext = []), + (this.startIndex = 0), + (this.endIndex = null), + (this._lowerCaseTagNames = + 'lowerCaseTags' in this._options + ? !!this._options.lowerCaseTags + : !this._options.xmlMode), + (this._lowerCaseAttributeNames = + 'lowerCaseAttributeNames' in this._options + ? !!this._options.lowerCaseAttributeNames + : !this._options.xmlMode), + this._options.Tokenizer && (r = this._options.Tokenizer), + (this._tokenizer = new r(this._options, this)), + this._cbs.onparserinit && this._cbs.onparserinit(this); + } + n(126)(l, n(602).EventEmitter), + (l.prototype._updatePosition = function(e) { + null === this.endIndex + ? this._tokenizer._sectionStart <= e + ? (this.startIndex = 0) + : (this.startIndex = this._tokenizer._sectionStart - e) + : (this.startIndex = this.endIndex + 1), + (this.endIndex = this._tokenizer.getAbsoluteIndex()); }), - n.d(t, 'curveBundle', function() { - return Px; + (l.prototype.ontext = function(e) { + this._updatePosition(1), + this.endIndex--, + this._cbs.ontext && this._cbs.ontext(e); }), - n.d(t, 'curveCardinalClosed', function() { - return Rx; + (l.prototype.onopentagname = function(e) { + if ( + (this._lowerCaseTagNames && (e = e.toLowerCase()), + (this._tagname = e), + !this._options.xmlMode && e in i) + ) + for ( + var t; + (t = this._stack[this._stack.length - 1]) in i[e]; + this.onclosetag(t) + ); + (!this._options.xmlMode && e in a) || + (this._stack.push(e), + e in s + ? this._foreignContext.push(!0) + : e in c && this._foreignContext.push(!1)), + this._cbs.onopentagname && this._cbs.onopentagname(e), + this._cbs.onopentag && (this._attribs = {}); }), - n.d(t, 'curveCardinalOpen', function() { - return Fx; + (l.prototype.onopentagend = function() { + this._updatePosition(1), + this._attribs && + (this._cbs.onopentag && + this._cbs.onopentag(this._tagname, this._attribs), + (this._attribs = null)), + !this._options.xmlMode && + this._cbs.onclosetag && + this._tagname in a && + this._cbs.onclosetag(this._tagname), + (this._tagname = ''); }), - n.d(t, 'curveCardinal', function() { - return Nx; + (l.prototype.onclosetag = function(e) { + if ( + (this._updatePosition(1), + this._lowerCaseTagNames && (e = e.toLowerCase()), + (e in s || e in c) && this._foreignContext.pop(), + !this._stack.length || (e in a && !this._options.xmlMode)) + ) + this._options.xmlMode || + ('br' !== e && 'p' !== e) || + (this.onopentagname(e), this._closeCurrentTag()); + else { + var t = this._stack.lastIndexOf(e); + if (-1 !== t) + if (this._cbs.onclosetag) + for (t = this._stack.length - t; t--; ) + this._cbs.onclosetag(this._stack.pop()); + else this._stack.length = t; + else + 'p' !== e || + this._options.xmlMode || + (this.onopentagname(e), this._closeCurrentTag()); + } }), - n.d(t, 'curveCatmullRomClosed', function() { - return Wx; + (l.prototype.onselfclosingtag = function() { + this._options.xmlMode || + this._options.recognizeSelfClosing || + this._foreignContext[this._foreignContext.length - 1] + ? this._closeCurrentTag() + : this.onopentagend(); }), - n.d(t, 'curveCatmullRomOpen', function() { - return Ux; + (l.prototype._closeCurrentTag = function() { + var e = this._tagname; + this.onopentagend(), + this._stack[this._stack.length - 1] === e && + (this._cbs.onclosetag && this._cbs.onclosetag(e), + this._stack.pop()); }), - n.d(t, 'curveCatmullRom', function() { - return Hx; + (l.prototype.onattribname = function(e) { + this._lowerCaseAttributeNames && (e = e.toLowerCase()), + (this._attribname = e); }), - n.d(t, 'curveLinearClosed', function() { - return Gx; + (l.prototype.onattribdata = function(e) { + this._attribvalue += e; }), - n.d(t, 'curveLinear', function() { - return z_; + (l.prototype.onattribend = function() { + this._cbs.onattribute && + this._cbs.onattribute(this._attribname, this._attribvalue), + this._attribs && + !Object.prototype.hasOwnProperty.call( + this._attribs, + this._attribname + ) && + (this._attribs[this._attribname] = this._attribvalue), + (this._attribname = ''), + (this._attribvalue = ''); }), - n.d(t, 'curveMonotoneX', function() { - return nw; + (l.prototype._getInstructionName = function(e) { + var t = e.search(u), + n = t < 0 ? e : e.substr(0, t); + return this._lowerCaseTagNames && (n = n.toLowerCase()), n; }), - n.d(t, 'curveMonotoneY', function() { - return rw; + (l.prototype.ondeclaration = function(e) { + if (this._cbs.onprocessinginstruction) { + var t = this._getInstructionName(e); + this._cbs.onprocessinginstruction('!' + t, '!' + e); + } }), - n.d(t, 'curveNatural', function() { - return aw; + (l.prototype.onprocessinginstruction = function(e) { + if (this._cbs.onprocessinginstruction) { + var t = this._getInstructionName(e); + this._cbs.onprocessinginstruction('?' + t, '?' + e); + } }), - n.d(t, 'curveStep', function() { - return cw; + (l.prototype.oncomment = function(e) { + this._updatePosition(4), + this._cbs.oncomment && this._cbs.oncomment(e), + this._cbs.oncommentend && this._cbs.oncommentend(); }), - n.d(t, 'curveStepAfter', function() { - return lw; + (l.prototype.oncdata = function(e) { + this._updatePosition(1), + this._options.xmlMode || this._options.recognizeCDATA + ? (this._cbs.oncdatastart && this._cbs.oncdatastart(), + this._cbs.ontext && this._cbs.ontext(e), + this._cbs.oncdataend && this._cbs.oncdataend()) + : this.oncomment('[CDATA[' + e + ']]'); }), - n.d(t, 'curveStepBefore', function() { - return uw; + (l.prototype.onerror = function(e) { + this._cbs.onerror && this._cbs.onerror(e); }), - n.d(t, 'stack', function() { - return hw; + (l.prototype.onend = function() { + if (this._cbs.onclosetag) + for ( + var e = this._stack.length; + e > 0; + this._cbs.onclosetag(this._stack[--e]) + ); + this._cbs.onend && this._cbs.onend(); }), - n.d(t, 'stackOffsetExpand', function() { - return gw; + (l.prototype.reset = function() { + this._cbs.onreset && this._cbs.onreset(), + this._tokenizer.reset(), + (this._tagname = ''), + (this._attribname = ''), + (this._attribs = null), + (this._stack = []), + this._cbs.onparserinit && this._cbs.onparserinit(this); }), - n.d(t, 'stackOffsetDiverging', function() { - return mw; + (l.prototype.parseComplete = function(e) { + this.reset(), this.end(e); }), - n.d(t, 'stackOffsetNone', function() { - return fw; + (l.prototype.write = function(e) { + this._tokenizer.write(e); }), - n.d(t, 'stackOffsetSilhouette', function() { - return bw; + (l.prototype.end = function(e) { + this._tokenizer.end(e); }), - n.d(t, 'stackOffsetWiggle', function() { - return yw; + (l.prototype.pause = function() { + this._tokenizer.pause(); }), - n.d(t, 'stackOrderAppearance', function() { - return vw; + (l.prototype.resume = function() { + this._tokenizer.resume(); }), - n.d(t, 'stackOrderAscending', function() { - return xw; + (l.prototype.parseChunk = l.prototype.write), + (l.prototype.done = l.prototype.end), + (e.exports = l); + }, + function(e, t, n) { + e.exports = me; + var r = n(597), + o = n(599), + i = n(600), + a = n(601), + s = 0, + c = s++, + u = s++, + l = s++, + f = s++, + d = s++, + p = s++, + h = s++, + g = s++, + m = s++, + b = s++, + y = s++, + v = s++, + _ = s++, + w = s++, + x = s++, + M = s++, + k = s++, + S = s++, + O = s++, + E = s++, + A = s++, + T = s++, + C = s++, + L = s++, + P = s++, + D = s++, + j = s++, + z = s++, + N = s++, + R = s++, + I = s++, + F = s++, + q = s++, + B = s++, + H = s++, + Y = s++, + W = s++, + V = s++, + U = s++, + X = s++, + G = s++, + K = s++, + $ = s++, + Q = s++, + J = s++, + Z = s++, + ee = s++, + te = s++, + ne = s++, + re = s++, + oe = s++, + ie = s++, + ae = s++, + se = s++, + ce = s++, + ue = 0, + le = ue++, + fe = ue++, + de = ue++; + function pe(e) { + return ( + ' ' === e || '\n' === e || '\t' === e || '\f' === e || '\r' === e + ); + } + function he(e, t, n) { + var r = e.toLowerCase(); + return e === r + ? function(e) { + e === r ? (this._state = t) : ((this._state = n), this._index--); + } + : function(o) { + o === r || o === e + ? (this._state = t) + : ((this._state = n), this._index--); + }; + } + function ge(e, t) { + var n = e.toLowerCase(); + return function(r) { + r === n || r === e + ? (this._state = t) + : ((this._state = l), this._index--); + }; + } + function me(e, t) { + (this._state = c), + (this._buffer = ''), + (this._sectionStart = 0), + (this._index = 0), + (this._bufferOffset = 0), + (this._baseState = c), + (this._special = le), + (this._cbs = t), + (this._running = !0), + (this._ended = !1), + (this._xmlMode = !(!e || !e.xmlMode)), + (this._decodeEntities = !(!e || !e.decodeEntities)); + } + (me.prototype._stateText = function(e) { + '<' === e + ? (this._index > this._sectionStart && + this._cbs.ontext(this._getSection()), + (this._state = u), + (this._sectionStart = this._index)) + : this._decodeEntities && + this._special === le && + '&' === e && + (this._index > this._sectionStart && + this._cbs.ontext(this._getSection()), + (this._baseState = c), + (this._state = oe), + (this._sectionStart = this._index)); + }), + (me.prototype._stateBeforeTagName = function(e) { + '/' === e + ? (this._state = d) + : '<' === e + ? (this._cbs.ontext(this._getSection()), + (this._sectionStart = this._index)) + : '>' === e || this._special !== le || pe(e) + ? (this._state = c) + : '!' === e + ? ((this._state = x), (this._sectionStart = this._index + 1)) + : '?' === e + ? ((this._state = k), (this._sectionStart = this._index + 1)) + : ((this._state = + this._xmlMode || ('s' !== e && 'S' !== e) ? l : I), + (this._sectionStart = this._index)); }), - n.d(t, 'stackOrderDescending', function() { - return Mw; + (me.prototype._stateInTagName = function(e) { + ('/' === e || '>' === e || pe(e)) && + (this._emitToken('onopentagname'), + (this._state = g), + this._index--); }), - n.d(t, 'stackOrderInsideOut', function() { - return kw; + (me.prototype._stateBeforeCloseingTagName = function(e) { + pe(e) || + ('>' === e + ? (this._state = c) + : this._special !== le + ? 's' === e || 'S' === e + ? (this._state = F) + : ((this._state = c), this._index--) + : ((this._state = p), (this._sectionStart = this._index))); }), - n.d(t, 'stackOrderNone', function() { - return dw; + (me.prototype._stateInCloseingTagName = function(e) { + ('>' === e || pe(e)) && + (this._emitToken('onclosetag'), (this._state = h), this._index--); }), - n.d(t, 'stackOrderReverse', function() { - return Sw; + (me.prototype._stateAfterCloseingTagName = function(e) { + '>' === e && + ((this._state = c), (this._sectionStart = this._index + 1)); }), - n.d(t, 'timeInterval', function() { - return Dg; + (me.prototype._stateBeforeAttributeName = function(e) { + '>' === e + ? (this._cbs.onopentagend(), + (this._state = c), + (this._sectionStart = this._index + 1)) + : '/' === e + ? (this._state = f) + : pe(e) || ((this._state = m), (this._sectionStart = this._index)); }), - n.d(t, 'timeMillisecond', function() { - return hm; + (me.prototype._stateInSelfClosingTag = function(e) { + '>' === e + ? (this._cbs.onselfclosingtag(), + (this._state = c), + (this._sectionStart = this._index + 1)) + : pe(e) || ((this._state = g), this._index--); }), - n.d(t, 'timeMilliseconds', function() { - return gm; + (me.prototype._stateInAttributeName = function(e) { + ('=' === e || '/' === e || '>' === e || pe(e)) && + (this._cbs.onattribname(this._getSection()), + (this._sectionStart = -1), + (this._state = b), + this._index--); }), - n.d(t, 'utcMillisecond', function() { - return hm; + (me.prototype._stateAfterAttributeName = function(e) { + '=' === e + ? (this._state = y) + : '/' === e || '>' === e + ? (this._cbs.onattribend(), (this._state = g), this._index--) + : pe(e) || + (this._cbs.onattribend(), + (this._state = m), + (this._sectionStart = this._index)); }), - n.d(t, 'utcMilliseconds', function() { - return gm; + (me.prototype._stateBeforeAttributeValue = function(e) { + '"' === e + ? ((this._state = v), (this._sectionStart = this._index + 1)) + : "'" === e + ? ((this._state = _), (this._sectionStart = this._index + 1)) + : pe(e) || + ((this._state = w), + (this._sectionStart = this._index), + this._index--); }), - n.d(t, 'timeSecond', function() { - return fm; + (me.prototype._stateInAttributeValueDoubleQuotes = function(e) { + '"' === e + ? (this._emitToken('onattribdata'), + this._cbs.onattribend(), + (this._state = g)) + : this._decodeEntities && + '&' === e && + (this._emitToken('onattribdata'), + (this._baseState = this._state), + (this._state = oe), + (this._sectionStart = this._index)); }), - n.d(t, 'timeSeconds', function() { - return dm; + (me.prototype._stateInAttributeValueSingleQuotes = function(e) { + "'" === e + ? (this._emitToken('onattribdata'), + this._cbs.onattribend(), + (this._state = g)) + : this._decodeEntities && + '&' === e && + (this._emitToken('onattribdata'), + (this._baseState = this._state), + (this._state = oe), + (this._sectionStart = this._index)); }), - n.d(t, 'utcSecond', function() { - return fm; + (me.prototype._stateInAttributeValueNoQuotes = function(e) { + pe(e) || '>' === e + ? (this._emitToken('onattribdata'), + this._cbs.onattribend(), + (this._state = g), + this._index--) + : this._decodeEntities && + '&' === e && + (this._emitToken('onattribdata'), + (this._baseState = this._state), + (this._state = oe), + (this._sectionStart = this._index)); }), - n.d(t, 'utcSeconds', function() { - return dm; + (me.prototype._stateBeforeDeclaration = function(e) { + this._state = '[' === e ? T : '-' === e ? S : M; }), - n.d(t, 'timeMinute', function() { - return cm; + (me.prototype._stateInDeclaration = function(e) { + '>' === e && + (this._cbs.ondeclaration(this._getSection()), + (this._state = c), + (this._sectionStart = this._index + 1)); }), - n.d(t, 'timeMinutes', function() { - return um; + (me.prototype._stateInProcessingInstruction = function(e) { + '>' === e && + (this._cbs.onprocessinginstruction(this._getSection()), + (this._state = c), + (this._sectionStart = this._index + 1)); }), - n.d(t, 'timeHour', function() { - return im; + (me.prototype._stateBeforeComment = function(e) { + '-' === e + ? ((this._state = O), (this._sectionStart = this._index + 1)) + : (this._state = M); }), - n.d(t, 'timeHours', function() { - return am; + (me.prototype._stateInComment = function(e) { + '-' === e && (this._state = E); }), - n.d(t, 'timeDay', function() { - return nm; + (me.prototype._stateAfterComment1 = function(e) { + this._state = '-' === e ? A : O; }), - n.d(t, 'timeDays', function() { - return rm; + (me.prototype._stateAfterComment2 = function(e) { + '>' === e + ? (this._cbs.oncomment( + this._buffer.substring(this._sectionStart, this._index - 2) + ), + (this._state = c), + (this._sectionStart = this._index + 1)) + : '-' !== e && (this._state = O); }), - n.d(t, 'timeWeek', function() { - return Bg; + (me.prototype._stateBeforeCdata1 = he('C', C, M)), + (me.prototype._stateBeforeCdata2 = he('D', L, M)), + (me.prototype._stateBeforeCdata3 = he('A', P, M)), + (me.prototype._stateBeforeCdata4 = he('T', D, M)), + (me.prototype._stateBeforeCdata5 = he('A', j, M)), + (me.prototype._stateBeforeCdata6 = function(e) { + '[' === e + ? ((this._state = z), (this._sectionStart = this._index + 1)) + : ((this._state = M), this._index--); }), - n.d(t, 'timeWeeks', function() { - return Gg; + (me.prototype._stateInCdata = function(e) { + ']' === e && (this._state = N); }), - n.d(t, 'timeSunday', function() { - return Bg; + (me.prototype._stateAfterCdata1 = function(e) { + this._state = ']' === e ? R : z; }), - n.d(t, 'timeSundays', function() { - return Gg; + (me.prototype._stateAfterCdata2 = function(e) { + '>' === e + ? (this._cbs.oncdata( + this._buffer.substring(this._sectionStart, this._index - 2) + ), + (this._state = c), + (this._sectionStart = this._index + 1)) + : ']' !== e && (this._state = z); }), - n.d(t, 'timeMonday', function() { - return Hg; + (me.prototype._stateBeforeSpecial = function(e) { + 'c' === e || 'C' === e + ? (this._state = q) + : 't' === e || 'T' === e + ? (this._state = $) + : ((this._state = l), this._index--); }), - n.d(t, 'timeMondays', function() { - return Kg; + (me.prototype._stateBeforeSpecialEnd = function(e) { + this._special !== fe || ('c' !== e && 'C' !== e) + ? this._special !== de || ('t' !== e && 'T' !== e) + ? (this._state = c) + : (this._state = ee) + : (this._state = V); }), - n.d(t, 'timeTuesday', function() { - return Yg; + (me.prototype._stateBeforeScript1 = ge('R', B)), + (me.prototype._stateBeforeScript2 = ge('I', H)), + (me.prototype._stateBeforeScript3 = ge('P', Y)), + (me.prototype._stateBeforeScript4 = ge('T', W)), + (me.prototype._stateBeforeScript5 = function(e) { + ('/' === e || '>' === e || pe(e)) && (this._special = fe), + (this._state = l), + this._index--; }), - n.d(t, 'timeTuesdays', function() { - return $g; + (me.prototype._stateAfterScript1 = he('R', U, c)), + (me.prototype._stateAfterScript2 = he('I', X, c)), + (me.prototype._stateAfterScript3 = he('P', G, c)), + (me.prototype._stateAfterScript4 = he('T', K, c)), + (me.prototype._stateAfterScript5 = function(e) { + '>' === e || pe(e) + ? ((this._special = le), + (this._state = p), + (this._sectionStart = this._index - 6), + this._index--) + : (this._state = c); }), - n.d(t, 'timeWednesday', function() { - return Wg; + (me.prototype._stateBeforeStyle1 = ge('Y', Q)), + (me.prototype._stateBeforeStyle2 = ge('L', J)), + (me.prototype._stateBeforeStyle3 = ge('E', Z)), + (me.prototype._stateBeforeStyle4 = function(e) { + ('/' === e || '>' === e || pe(e)) && (this._special = de), + (this._state = l), + this._index--; }), - n.d(t, 'timeWednesdays', function() { - return Qg; + (me.prototype._stateAfterStyle1 = he('Y', te, c)), + (me.prototype._stateAfterStyle2 = he('L', ne, c)), + (me.prototype._stateAfterStyle3 = he('E', re, c)), + (me.prototype._stateAfterStyle4 = function(e) { + '>' === e || pe(e) + ? ((this._special = le), + (this._state = p), + (this._sectionStart = this._index - 5), + this._index--) + : (this._state = c); }), - n.d(t, 'timeThursday', function() { - return Vg; + (me.prototype._stateBeforeEntity = he('#', ie, ae)), + (me.prototype._stateBeforeNumericEntity = he('X', ce, se)), + (me.prototype._parseNamedEntityStrict = function() { + if (this._sectionStart + 1 < this._index) { + var e = this._buffer.substring(this._sectionStart + 1, this._index), + t = this._xmlMode ? a : o; + t.hasOwnProperty(e) && + (this._emitPartial(t[e]), (this._sectionStart = this._index + 1)); + } }), - n.d(t, 'timeThursdays', function() { - return Jg; + (me.prototype._parseLegacyEntity = function() { + var e = this._sectionStart + 1, + t = this._index - e; + for (t > 6 && (t = 6); t >= 2; ) { + var n = this._buffer.substr(e, t); + if (i.hasOwnProperty(n)) + return ( + this._emitPartial(i[n]), void (this._sectionStart += t + 1) + ); + t--; + } }), - n.d(t, 'timeFriday', function() { - return Ug; + (me.prototype._stateInNamedEntity = function(e) { + ';' === e + ? (this._parseNamedEntityStrict(), + this._sectionStart + 1 < this._index && + !this._xmlMode && + this._parseLegacyEntity(), + (this._state = this._baseState)) + : (e < 'a' || e > 'z') && + (e < 'A' || e > 'Z') && + (e < '0' || e > '9') && + (this._xmlMode || + this._sectionStart + 1 === this._index || + (this._baseState !== c + ? '=' !== e && this._parseNamedEntityStrict() + : this._parseLegacyEntity()), + (this._state = this._baseState), + this._index--); }), - n.d(t, 'timeFridays', function() { - return Zg; + (me.prototype._decodeNumericEntity = function(e, t) { + var n = this._sectionStart + e; + if (n !== this._index) { + var o = this._buffer.substring(n, this._index), + i = parseInt(o, t); + this._emitPartial(r(i)), (this._sectionStart = this._index); + } else this._sectionStart--; + this._state = this._baseState; }), - n.d(t, 'timeSaturday', function() { - return Xg; + (me.prototype._stateInNumericEntity = function(e) { + ';' === e + ? (this._decodeNumericEntity(2, 10), this._sectionStart++) + : (e < '0' || e > '9') && + (this._xmlMode + ? (this._state = this._baseState) + : this._decodeNumericEntity(2, 10), + this._index--); }), - n.d(t, 'timeSaturdays', function() { - return em; + (me.prototype._stateInHexEntity = function(e) { + ';' === e + ? (this._decodeNumericEntity(3, 16), this._sectionStart++) + : (e < 'a' || e > 'f') && + (e < 'A' || e > 'F') && + (e < '0' || e > '9') && + (this._xmlMode + ? (this._state = this._baseState) + : this._decodeNumericEntity(3, 16), + this._index--); }), - n.d(t, 'timeMonth', function() { - return Ig; + (me.prototype._cleanup = function() { + this._sectionStart < 0 + ? ((this._buffer = ''), + (this._bufferOffset += this._index), + (this._index = 0)) + : this._running && + (this._state === c + ? (this._sectionStart !== this._index && + this._cbs.ontext(this._buffer.substr(this._sectionStart)), + (this._buffer = ''), + (this._bufferOffset += this._index), + (this._index = 0)) + : this._sectionStart === this._index + ? ((this._buffer = ''), + (this._bufferOffset += this._index), + (this._index = 0)) + : ((this._buffer = this._buffer.substr(this._sectionStart)), + (this._index -= this._sectionStart), + (this._bufferOffset += this._sectionStart)), + (this._sectionStart = 0)); }), - n.d(t, 'timeMonths', function() { - return Fg; + (me.prototype.write = function(e) { + this._ended && this._cbs.onerror(Error('.write() after done!')), + (this._buffer += e), + this._parse(); }), - n.d(t, 'timeYear', function() { - return Ng; + (me.prototype._parse = function() { + for (; this._index < this._buffer.length && this._running; ) { + var e = this._buffer.charAt(this._index); + this._state === c + ? this._stateText(e) + : this._state === u + ? this._stateBeforeTagName(e) + : this._state === l + ? this._stateInTagName(e) + : this._state === d + ? this._stateBeforeCloseingTagName(e) + : this._state === p + ? this._stateInCloseingTagName(e) + : this._state === h + ? this._stateAfterCloseingTagName(e) + : this._state === f + ? this._stateInSelfClosingTag(e) + : this._state === g + ? this._stateBeforeAttributeName(e) + : this._state === m + ? this._stateInAttributeName(e) + : this._state === b + ? this._stateAfterAttributeName(e) + : this._state === y + ? this._stateBeforeAttributeValue(e) + : this._state === v + ? this._stateInAttributeValueDoubleQuotes(e) + : this._state === _ + ? this._stateInAttributeValueSingleQuotes(e) + : this._state === w + ? this._stateInAttributeValueNoQuotes(e) + : this._state === x + ? this._stateBeforeDeclaration(e) + : this._state === M + ? this._stateInDeclaration(e) + : this._state === k + ? this._stateInProcessingInstruction(e) + : this._state === S + ? this._stateBeforeComment(e) + : this._state === O + ? this._stateInComment(e) + : this._state === E + ? this._stateAfterComment1(e) + : this._state === A + ? this._stateAfterComment2(e) + : this._state === T + ? this._stateBeforeCdata1(e) + : this._state === C + ? this._stateBeforeCdata2(e) + : this._state === L + ? this._stateBeforeCdata3(e) + : this._state === P + ? this._stateBeforeCdata4(e) + : this._state === D + ? this._stateBeforeCdata5(e) + : this._state === j + ? this._stateBeforeCdata6(e) + : this._state === z + ? this._stateInCdata(e) + : this._state === N + ? this._stateAfterCdata1(e) + : this._state === R + ? this._stateAfterCdata2(e) + : this._state === I + ? this._stateBeforeSpecial(e) + : this._state === F + ? this._stateBeforeSpecialEnd(e) + : this._state === q + ? this._stateBeforeScript1(e) + : this._state === B + ? this._stateBeforeScript2(e) + : this._state === H + ? this._stateBeforeScript3(e) + : this._state === Y + ? this._stateBeforeScript4(e) + : this._state === W + ? this._stateBeforeScript5(e) + : this._state === V + ? this._stateAfterScript1(e) + : this._state === U + ? this._stateAfterScript2(e) + : this._state === X + ? this._stateAfterScript3(e) + : this._state === G + ? this._stateAfterScript4(e) + : this._state === K + ? this._stateAfterScript5(e) + : this._state === $ + ? this._stateBeforeStyle1(e) + : this._state === Q + ? this._stateBeforeStyle2(e) + : this._state === J + ? this._stateBeforeStyle3(e) + : this._state === Z + ? this._stateBeforeStyle4(e) + : this._state === ee + ? this._stateAfterStyle1(e) + : this._state === te + ? this._stateAfterStyle2(e) + : this._state === ne + ? this._stateAfterStyle3(e) + : this._state === re + ? this._stateAfterStyle4(e) + : this._state === oe + ? this._stateBeforeEntity(e) + : this._state === ie + ? this._stateBeforeNumericEntity(e) + : this._state === ae + ? this._stateInNamedEntity(e) + : this._state === se + ? this._stateInNumericEntity(e) + : this._state === ce + ? this._stateInHexEntity(e) + : this._cbs.onerror(Error('unknown _state'), this._state), + this._index++; + } + this._cleanup(); }), - n.d(t, 'timeYears', function() { - return jg; + (me.prototype.pause = function() { + this._running = !1; }), - n.d(t, 'utcMinute', function() { - return gy; + (me.prototype.resume = function() { + (this._running = !0), + this._index < this._buffer.length && this._parse(), + this._ended && this._finish(); }), - n.d(t, 'utcMinutes', function() { - return my; + (me.prototype.end = function(e) { + this._ended && this._cbs.onerror(Error('.end() after done!')), + e && this.write(e), + (this._ended = !0), + this._running && this._finish(); }), - n.d(t, 'utcHour', function() { - return dy; + (me.prototype._finish = function() { + this._sectionStart < this._index && this._handleTrailingData(), + this._cbs.onend(); }), - n.d(t, 'utcHours', function() { - return py; + (me.prototype._handleTrailingData = function() { + var e = this._buffer.substr(this._sectionStart); + this._state === z || this._state === N || this._state === R + ? this._cbs.oncdata(e) + : this._state === O || this._state === E || this._state === A + ? this._cbs.oncomment(e) + : this._state !== ae || this._xmlMode + ? this._state !== se || this._xmlMode + ? this._state !== ce || this._xmlMode + ? this._state !== l && + this._state !== g && + this._state !== y && + this._state !== b && + this._state !== m && + this._state !== _ && + this._state !== v && + this._state !== w && + this._state !== p && + this._cbs.ontext(e) + : (this._decodeNumericEntity(3, 16), + this._sectionStart < this._index && + ((this._state = this._baseState), + this._handleTrailingData())) + : (this._decodeNumericEntity(2, 10), + this._sectionStart < this._index && + ((this._state = this._baseState), this._handleTrailingData())) + : (this._parseLegacyEntity(), + this._sectionStart < this._index && + ((this._state = this._baseState), this._handleTrailingData())); }), - n.d(t, 'utcDay', function() { - return Pm; + (me.prototype.reset = function() { + me.call( + this, + { xmlMode: this._xmlMode, decodeEntities: this._decodeEntities }, + this._cbs + ); }), - n.d(t, 'utcDays', function() { - return Dm; + (me.prototype.getAbsoluteIndex = function() { + return this._bufferOffset + this._index; }), - n.d(t, 'utcWeek', function() { - return bm; + (me.prototype._getSection = function() { + return this._buffer.substring(this._sectionStart, this._index); }), - n.d(t, 'utcWeeks', function() { - return km; + (me.prototype._emitToken = function(e) { + this._cbs[e](this._getSection()), (this._sectionStart = -1); }), - n.d(t, 'utcSunday', function() { - return bm; + (me.prototype._emitPartial = function(e) { + this._baseState !== c + ? this._cbs.onattribdata(e) + : this._cbs.ontext(e); + }); + }, + function(e, t, n) { + var r = n(105), + o = /\s+/g, + i = n(242), + a = n(603); + function s(e, t, n) { + 'object' == typeof e + ? ((n = t), (t = e), (e = null)) + : 'function' == typeof t && ((n = t), (t = c)), + (this._callback = e), + (this._options = t || c), + (this._elementCB = n), + (this.dom = []), + (this._done = !1), + (this._tagStack = []), + (this._parser = this._parser || null); + } + var c = { + normalizeWhitespace: !1, + withStartIndices: !1, + withEndIndices: !1 + }; + (s.prototype.onparserinit = function(e) { + this._parser = e; + }), + (s.prototype.onreset = function() { + s.call(this, this._callback, this._options, this._elementCB); }), - n.d(t, 'utcSundays', function() { - return km; + (s.prototype.onend = function() { + this._done || + ((this._done = !0), + (this._parser = null), + this._handleCallback(null)); }), - n.d(t, 'utcMonday', function() { - return ym; + (s.prototype._handleCallback = s.prototype.onerror = function(e) { + if ('function' == typeof this._callback) this._callback(e, this.dom); + else if (e) throw e; }), - n.d(t, 'utcMondays', function() { - return Sm; + (s.prototype.onclosetag = function() { + var e = this._tagStack.pop(); + this._options.withEndIndices && + e && + (e.endIndex = this._parser.endIndex), + this._elementCB && this._elementCB(e); }), - n.d(t, 'utcTuesday', function() { - return vm; + (s.prototype._createDomElement = function(e) { + if (!this._options.withDomLvl1) return e; + var t; + for (var n in ((t = + 'tag' === e.type ? Object.create(a) : Object.create(i)), + e)) + e.hasOwnProperty(n) && (t[n] = e[n]); + return t; }), - n.d(t, 'utcTuesdays', function() { - return Am; + (s.prototype._addDomElement = function(e) { + var t = this._tagStack[this._tagStack.length - 1], + n = t ? t.children : this.dom, + r = n[n.length - 1]; + (e.next = null), + this._options.withStartIndices && + (e.startIndex = this._parser.startIndex), + this._options.withEndIndices && + (e.endIndex = this._parser.endIndex), + r ? ((e.prev = r), (r.next = e)) : (e.prev = null), + n.push(e), + (e.parent = t || null); }), - n.d(t, 'utcWednesday', function() { - return _m; + (s.prototype.onopentag = function(e, t) { + var n = { + type: 'script' === e ? r.Script : 'style' === e ? r.Style : r.Tag, + name: e, + attribs: t, + children: [] + }, + o = this._createDomElement(n); + this._addDomElement(o), this._tagStack.push(o); }), - n.d(t, 'utcWednesdays', function() { - return Om; + (s.prototype.ontext = function(e) { + var t, + n = + this._options.normalizeWhitespace || + this._options.ignoreWhitespace; + if ( + !this._tagStack.length && + this.dom.length && + (t = this.dom[this.dom.length - 1]).type === r.Text + ) + n ? (t.data = (t.data + e).replace(o, ' ')) : (t.data += e); + else if ( + this._tagStack.length && + (t = this._tagStack[this._tagStack.length - 1]) && + (t = t.children[t.children.length - 1]) && + t.type === r.Text + ) + n ? (t.data = (t.data + e).replace(o, ' ')) : (t.data += e); + else { + n && (e = e.replace(o, ' ')); + var i = this._createDomElement({ data: e, type: r.Text }); + this._addDomElement(i); + } }), - n.d(t, 'utcThursday', function() { - return xm; + (s.prototype.oncomment = function(e) { + var t = this._tagStack[this._tagStack.length - 1]; + if (t && t.type === r.Comment) t.data += e; + else { + var n = { data: e, type: r.Comment }, + o = this._createDomElement(n); + this._addDomElement(o), this._tagStack.push(o); + } }), - n.d(t, 'utcThursdays', function() { - return Em; + (s.prototype.oncdatastart = function() { + var e = { children: [{ data: '', type: r.Text }], type: r.CDATA }, + t = this._createDomElement(e); + this._addDomElement(t), this._tagStack.push(t); }), - n.d(t, 'utcFriday', function() { - return wm; + (s.prototype.oncommentend = s.prototype.oncdataend = function() { + this._tagStack.pop(); }), - n.d(t, 'utcFridays', function() { - return Tm; + (s.prototype.onprocessinginstruction = function(e, t) { + var n = this._createDomElement({ + name: e, + data: t, + type: r.Directive + }); + this._addDomElement(n); }), - n.d(t, 'utcSaturday', function() { - return Mm; + (e.exports = s); + }, + function(e, t) { + var n = (e.exports = { + get firstChild() { + var e = this.children; + return (e && e[0]) || null; + }, + get lastChild() { + var e = this.children; + return (e && e[e.length - 1]) || null; + }, + get nodeType() { + return o[this.type] || o.element; + } }), - n.d(t, 'utcSaturdays', function() { - return Cm; + r = { + tagName: 'name', + childNodes: 'children', + parentNode: 'parent', + previousSibling: 'prev', + nextSibling: 'next', + nodeValue: 'data' + }, + o = { element: 1, text: 3, cdata: 4, comment: 8 }; + Object.keys(r).forEach(function(e) { + var t = r[e]; + Object.defineProperty(n, e, { + get: function() { + return this[t] || null; + }, + set: function(e) { + return (this[t] = e), e; + } + }); + }); + }, + function(e, t, n) { + var r = e.exports; + [n(605), n(613), n(614), n(615), n(616), n(617)].forEach(function(e) { + Object.keys(e).forEach(function(t) { + r[t] = e[t].bind(r); + }); + }); + }, + function(e, t, n) { + 'use strict'; + var r = + (this && this.__importDefault) || + function(e) { + return e && e.__esModule ? e : { default: e }; + }; + Object.defineProperty(t, '__esModule', { value: !0 }); + var o = r(n(245)), + i = r(n(609)), + a = r(n(246)), + s = r(n(610)); + function c(e) { + var t = Object.keys(e).join('|'), + n = l(e), + r = new RegExp( + '&(?:' + (t += '|#[xX][\\da-fA-F]+|#\\d+') + ');', + 'g' + ); + return function(e) { + return String(e).replace(r, n); + }; + } + (t.decodeXML = c(a.default)), (t.decodeHTMLStrict = c(o.default)); + var u = function(e, t) { + return e < t ? 1 : -1; + }; + function l(e) { + return function(t) { + return '#' === t.charAt(1) + ? 'X' === t.charAt(2) || 'x' === t.charAt(2) + ? s.default(parseInt(t.substr(3), 16)) + : s.default(parseInt(t.substr(2), 10)) + : e[t.slice(1, -1)]; + }; + } + t.decodeHTML = (function() { + for ( + var e = Object.keys(i.default).sort(u), + t = Object.keys(o.default).sort(u), + n = 0, + r = 0; + n < t.length; + n++ + ) + e[r] === t[n] ? ((t[n] += ';?'), r++) : (t[n] += ';'); + var a = new RegExp( + '&(?:' + t.join('|') + '|#[xX][\\da-fA-F]+;?|#\\d+;?)', + 'g' + ), + s = l(o.default); + function c(e) { + return ';' !== e.substr(-1) && (e += ';'), s(e); + } + return function(e) { + return String(e).replace(a, c); + }; + })(); + }, + function(e) { + e.exports = JSON.parse( + '{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}' + ); + }, + function(e) { + e.exports = JSON.parse( + '{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}' + ); + }, + function(e, t, n) { + 'use strict'; + var r = + (this && this.__importDefault) || + function(e) { + return e && e.__esModule ? e : { default: e }; + }; + Object.defineProperty(t, '__esModule', { value: !0 }); + var o = c(r(n(246)).default), + i = u(o); + t.encodeXML = h(o, i); + var a = c(r(n(245)).default), + s = u(a); + function c(e) { + return Object.keys(e) + .sort() + .reduce(function(t, n) { + return (t[e[n]] = '&' + n + ';'), t; + }, {}); + } + function u(e) { + var t = [], + n = []; + return ( + Object.keys(e).forEach(function(e) { + return 1 === e.length ? t.push('\\' + e) : n.push(e); + }), + n.unshift('[' + t.join('') + ']'), + new RegExp(n.join('|'), 'g') + ); + } + t.encodeHTML = h(a, s); + var l = /[^\0-\x7F]/g, + f = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g; + function d(e) { + return ( + '&#x' + + e + .charCodeAt(0) + .toString(16) + .toUpperCase() + + ';' + ); + } + function p(e, t) { + return ( + '&#x' + + (1024 * (e.charCodeAt(0) - 55296) + e.charCodeAt(1) - 56320 + 65536) + .toString(16) + .toUpperCase() + + ';' + ); + } + function h(e, t) { + return function(n) { + return n + .replace(t, function(t) { + return e[t]; + }) + .replace(f, p) + .replace(l, d); + }; + } + var g = u(o); + t.escape = function(e) { + return e + .replace(g, d) + .replace(f, p) + .replace(l, d); + }; + }, + function(e, t, n) { + e.exports = s; + var r = n(239), + o = n(619).Writable, + i = n(620).StringDecoder, + a = n(161).Buffer; + function s(e, t) { + var n = (this._parser = new r(e, t)), + a = (this._decoder = new i()); + o.call(this, { decodeStrings: !1 }), + this.once('finish', function() { + n.end(a.end()); + }); + } + n(126)(s, o), + (s.prototype._write = function(e, t, n) { + e instanceof a && (e = this._decoder.write(e)), + this._parser.write(e), + n(); + }); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = + Object.assign || + function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); + } + return e; + }; + t.default = function(e, t) { + var n = r({}, (0, o.default)(e), { key: t }); + 'string' == typeof n.style || n.style instanceof String + ? (n.style = (0, i.default)(n.style)) + : delete n.style; + return n; + }; + var o = a(n(629)), + i = a(n(632)); + function a(e) { + return e && e.__esModule ? e : { default: e }; + } + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = function(e) { + o.hasOwnProperty(e) || (o[e] = r.test(e)); + return o[e]; + }); + var r = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, + o = {}; + }, + function(e, t, n) { + var r = n(208), + o = n(78); + e.exports = function(e, t) { + return e && r(e, t, o); + }; + }, + function(e, t, n) { + var r = n(125); + e.exports = function(e) { + return 'function' == typeof e ? e : r; + }; + }, + function(e, t) { + e.exports = function(e, t) { + for (var n = -1, r = null == e ? 0 : e.length, o = Array(r); ++n < r; ) + o[n] = t(e[n], n, e); + return o; + }; + }, + function(e, t, n) { + var r = n(47); + e.exports = function(e) { + return e == e && !r(e); + }; + }, + function(e, t) { + e.exports = function(e, t) { + return function(n) { + return null != n && (n[e] === t && (void 0 !== t || e in Object(n))); + }; + }; + }, + function(e, t, n) { + var r = n(257), + o = n(129); + e.exports = function(e, t) { + for (var n = 0, i = (t = r(t, e)).length; null != e && n < i; ) + e = e[o(t[n++])]; + return n && n == i ? e : void 0; + }; + }, + function(e, t, n) { + var r = n(34), + o = n(163), + i = n(648), + a = n(651); + e.exports = function(e, t) { + return r(e) ? e : o(e, t) ? [e] : i(a(e)); + }; + }, + function(e, t) { + e.exports = function(e, t) { + for ( + var n = -1, r = null == e ? 0 : e.length; + ++n < r && !1 !== t(e[n], n, e); + + ); + return e; + }; + }, + function(e, t, n) { + var r = n(231), + o = n(152), + i = n(158), + a = n(232), + s = Object.getOwnPropertySymbols + ? function(e) { + for (var t = []; e; ) r(t, i(e)), (e = o(e)); + return t; + } + : a; + e.exports = s; + }, + function(e, t, n) { + var r = n(47), + o = n(128), + i = NaN, + a = /^\s+|\s+$/g, + s = /^[-+]0x[0-9a-f]+$/i, + c = /^0b[01]+$/i, + u = /^0o[0-7]+$/i, + l = parseInt; + e.exports = function(e) { + if ('number' == typeof e) return e; + if (o(e)) return i; + if (r(e)) { + var t = 'function' == typeof e.valueOf ? e.valueOf() : e; + e = r(t) ? t + '' : t; + } + if ('string' != typeof e) return 0 === e ? e : +e; + e = e.replace(a, ''); + var n = c.test(e); + return n || u.test(e) ? l(e.slice(2), n ? 2 : 8) : s.test(e) ? i : +e; + }; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.ColorWrap = void 0); + var r = + Object.assign || + function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); + } + return e; + }, + o = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + i = n(0), + a = u(i), + s = u(n(94)), + c = u(n(49)); + function u(e) { + return e && e.__esModule ? e : { default: e }; + } + var l = (t.ColorWrap = function(e) { + var t = (function(t) { + function n(e) { + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, n); + var t = (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this)); + return ( + (t.handleChange = function(e, n) { + if (c.default.simpleCheckForValidColor(e)) { + var r = c.default.toState(e, e.h || t.state.oldHue); + t.setState(r), + t.props.onChangeComplete && + t.debounce(t.props.onChangeComplete, r, n), + t.props.onChange && t.props.onChange(r, n); + } + }), + (t.handleSwatchHover = function(e, n) { + if (c.default.simpleCheckForValidColor(e)) { + var r = c.default.toState(e, e.h || t.state.oldHue); + t.props.onSwatchHover && t.props.onSwatchHover(r, n); + } + }), + (t.state = r({}, c.default.toState(e.color, 0))), + (t.debounce = (0, s.default)(function(e, t, n) { + e(t, n); + }, 100)), + t + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(n, t), + o( + n, + [ + { + key: 'render', + value: function() { + var t = {}; + return ( + this.props.onSwatchHover && + (t.onSwatchHover = this.handleSwatchHover), + a.default.createElement( + e, + r( + {}, + this.props, + this.state, + { onChange: this.handleChange }, + t + ) + ) + ); + } + } + ], + [ + { + key: 'getDerivedStateFromProps', + value: function(e, t) { + return r({}, c.default.toState(e.color, t.oldHue)); + } + } + ] + ), + n + ); + })(i.PureComponent || i.Component); + return ( + (t.propTypes = r({}, e.propTypes)), + (t.defaultProps = r({}, e.defaultProps, { + color: { h: 250, s: 0.5, l: 0.2, a: 1 } + })), + t + ); + }); + t.default = l; + }, + function(e, t, n) { + 'use strict'; + n.r(t), + n.d(t, 'red', function() { + return r; }), - n.d(t, 'utcMonth', function() { - return uy; + n.d(t, 'pink', function() { + return o; }), - n.d(t, 'utcMonths', function() { - return ly; + n.d(t, 'purple', function() { + return i; }), - n.d(t, 'utcYear', function() { - return Nm; + n.d(t, 'deepPurple', function() { + return a; }), - n.d(t, 'utcYears', function() { - return jm; + n.d(t, 'indigo', function() { + return s; }), - n.d(t, 'timeFormatDefaultLocale', function() { - return ry; + n.d(t, 'blue', function() { + return c; }), - n.d(t, 'timeFormat', function() { - return Hm; + n.d(t, 'lightBlue', function() { + return u; }), - n.d(t, 'timeParse', function() { - return Ym; + n.d(t, 'cyan', function() { + return l; }), - n.d(t, 'utcFormat', function() { - return Wm; + n.d(t, 'teal', function() { + return f; }), - n.d(t, 'utcParse', function() { - return Vm; + n.d(t, 'green', function() { + return d; }), - n.d(t, 'timeFormatLocale', function() { - return qm; + n.d(t, 'lightGreen', function() { + return p; }), - n.d(t, 'isoFormat', function() { - return Aw; + n.d(t, 'lime', function() { + return h; }), - n.d(t, 'isoParse', function() { - return Ow; + n.d(t, 'yellow', function() { + return g; }), - n.d(t, 'now', function() { - return Hn; + n.d(t, 'amber', function() { + return m; }), - n.d(t, 'timer', function() { - return Vn; + n.d(t, 'orange', function() { + return b; }), - n.d(t, 'timerFlush', function() { - return Un; + n.d(t, 'deepOrange', function() { + return y; }), - n.d(t, 'timeout', function() { - return $n; + n.d(t, 'brown', function() { + return v; }), - n.d(t, 'interval', function() { - return Ew; + n.d(t, 'grey', function() { + return _; }), - n.d(t, 'transition', function() { - return Hr; + n.d(t, 'blueGrey', function() { + return w; }), - n.d(t, 'active', function() { - return Qr; + n.d(t, 'darkText', function() { + return x; }), - n.d(t, 'interrupt', function() { - return sr; + n.d(t, 'lightText', function() { + return M; }), - n.d(t, 'voronoi', function() { - return pM; + n.d(t, 'darkIcons', function() { + return k; }), - n.d(t, 'zoom', function() { - return OM; + n.d(t, 'lightIcons', function() { + return S; }), - n.d(t, 'zoomTransform', function() { - return yM; + n.d(t, 'white', function() { + return O; }), - n.d(t, 'zoomIdentity', function() { - return bM; + n.d(t, 'black', function() { + return E; + }); + var r = { + 50: '#ffebee', + 100: '#ffcdd2', + 200: '#ef9a9a', + 300: '#e57373', + 400: '#ef5350', + 500: '#f44336', + 600: '#e53935', + 700: '#d32f2f', + 800: '#c62828', + 900: '#b71c1c', + a100: '#ff8a80', + a200: '#ff5252', + a400: '#ff1744', + a700: '#d50000' + }, + o = { + 50: '#fce4ec', + 100: '#f8bbd0', + 200: '#f48fb1', + 300: '#f06292', + 400: '#ec407a', + 500: '#e91e63', + 600: '#d81b60', + 700: '#c2185b', + 800: '#ad1457', + 900: '#880e4f', + a100: '#ff80ab', + a200: '#ff4081', + a400: '#f50057', + a700: '#c51162' + }, + i = { + 50: '#f3e5f5', + 100: '#e1bee7', + 200: '#ce93d8', + 300: '#ba68c8', + 400: '#ab47bc', + 500: '#9c27b0', + 600: '#8e24aa', + 700: '#7b1fa2', + 800: '#6a1b9a', + 900: '#4a148c', + a100: '#ea80fc', + a200: '#e040fb', + a400: '#d500f9', + a700: '#aa00ff' + }, + a = { + 50: '#ede7f6', + 100: '#d1c4e9', + 200: '#b39ddb', + 300: '#9575cd', + 400: '#7e57c2', + 500: '#673ab7', + 600: '#5e35b1', + 700: '#512da8', + 800: '#4527a0', + 900: '#311b92', + a100: '#b388ff', + a200: '#7c4dff', + a400: '#651fff', + a700: '#6200ea' + }, + s = { + 50: '#e8eaf6', + 100: '#c5cae9', + 200: '#9fa8da', + 300: '#7986cb', + 400: '#5c6bc0', + 500: '#3f51b5', + 600: '#3949ab', + 700: '#303f9f', + 800: '#283593', + 900: '#1a237e', + a100: '#8c9eff', + a200: '#536dfe', + a400: '#3d5afe', + a700: '#304ffe' + }, + c = { + 50: '#e3f2fd', + 100: '#bbdefb', + 200: '#90caf9', + 300: '#64b5f6', + 400: '#42a5f5', + 500: '#2196f3', + 600: '#1e88e5', + 700: '#1976d2', + 800: '#1565c0', + 900: '#0d47a1', + a100: '#82b1ff', + a200: '#448aff', + a400: '#2979ff', + a700: '#2962ff' + }, + u = { + 50: '#e1f5fe', + 100: '#b3e5fc', + 200: '#81d4fa', + 300: '#4fc3f7', + 400: '#29b6f6', + 500: '#03a9f4', + 600: '#039be5', + 700: '#0288d1', + 800: '#0277bd', + 900: '#01579b', + a100: '#80d8ff', + a200: '#40c4ff', + a400: '#00b0ff', + a700: '#0091ea' + }, + l = { + 50: '#e0f7fa', + 100: '#b2ebf2', + 200: '#80deea', + 300: '#4dd0e1', + 400: '#26c6da', + 500: '#00bcd4', + 600: '#00acc1', + 700: '#0097a7', + 800: '#00838f', + 900: '#006064', + a100: '#84ffff', + a200: '#18ffff', + a400: '#00e5ff', + a700: '#00b8d4' + }, + f = { + 50: '#e0f2f1', + 100: '#b2dfdb', + 200: '#80cbc4', + 300: '#4db6ac', + 400: '#26a69a', + 500: '#009688', + 600: '#00897b', + 700: '#00796b', + 800: '#00695c', + 900: '#004d40', + a100: '#a7ffeb', + a200: '#64ffda', + a400: '#1de9b6', + a700: '#00bfa5' + }, + d = { + 50: '#e8f5e9', + 100: '#c8e6c9', + 200: '#a5d6a7', + 300: '#81c784', + 400: '#66bb6a', + 500: '#4caf50', + 600: '#43a047', + 700: '#388e3c', + 800: '#2e7d32', + 900: '#1b5e20', + a100: '#b9f6ca', + a200: '#69f0ae', + a400: '#00e676', + a700: '#00c853' + }, + p = { + 50: '#f1f8e9', + 100: '#dcedc8', + 200: '#c5e1a5', + 300: '#aed581', + 400: '#9ccc65', + 500: '#8bc34a', + 600: '#7cb342', + 700: '#689f38', + 800: '#558b2f', + 900: '#33691e', + a100: '#ccff90', + a200: '#b2ff59', + a400: '#76ff03', + a700: '#64dd17' + }, + h = { + 50: '#f9fbe7', + 100: '#f0f4c3', + 200: '#e6ee9c', + 300: '#dce775', + 400: '#d4e157', + 500: '#cddc39', + 600: '#c0ca33', + 700: '#afb42b', + 800: '#9e9d24', + 900: '#827717', + a100: '#f4ff81', + a200: '#eeff41', + a400: '#c6ff00', + a700: '#aeea00' + }, + g = { + 50: '#fffde7', + 100: '#fff9c4', + 200: '#fff59d', + 300: '#fff176', + 400: '#ffee58', + 500: '#ffeb3b', + 600: '#fdd835', + 700: '#fbc02d', + 800: '#f9a825', + 900: '#f57f17', + a100: '#ffff8d', + a200: '#ffff00', + a400: '#ffea00', + a700: '#ffd600' + }, + m = { + 50: '#fff8e1', + 100: '#ffecb3', + 200: '#ffe082', + 300: '#ffd54f', + 400: '#ffca28', + 500: '#ffc107', + 600: '#ffb300', + 700: '#ffa000', + 800: '#ff8f00', + 900: '#ff6f00', + a100: '#ffe57f', + a200: '#ffd740', + a400: '#ffc400', + a700: '#ffab00' + }, + b = { + 50: '#fff3e0', + 100: '#ffe0b2', + 200: '#ffcc80', + 300: '#ffb74d', + 400: '#ffa726', + 500: '#ff9800', + 600: '#fb8c00', + 700: '#f57c00', + 800: '#ef6c00', + 900: '#e65100', + a100: '#ffd180', + a200: '#ffab40', + a400: '#ff9100', + a700: '#ff6d00' + }, + y = { + 50: '#fbe9e7', + 100: '#ffccbc', + 200: '#ffab91', + 300: '#ff8a65', + 400: '#ff7043', + 500: '#ff5722', + 600: '#f4511e', + 700: '#e64a19', + 800: '#d84315', + 900: '#bf360c', + a100: '#ff9e80', + a200: '#ff6e40', + a400: '#ff3d00', + a700: '#dd2c00' + }, + v = { + 50: '#efebe9', + 100: '#d7ccc8', + 200: '#bcaaa4', + 300: '#a1887f', + 400: '#8d6e63', + 500: '#795548', + 600: '#6d4c41', + 700: '#5d4037', + 800: '#4e342e', + 900: '#3e2723' + }, + _ = { + 50: '#fafafa', + 100: '#f5f5f5', + 200: '#eeeeee', + 300: '#e0e0e0', + 400: '#bdbdbd', + 500: '#9e9e9e', + 600: '#757575', + 700: '#616161', + 800: '#424242', + 900: '#212121' + }, + w = { + 50: '#eceff1', + 100: '#cfd8dc', + 200: '#b0bec5', + 300: '#90a4ae', + 400: '#78909c', + 500: '#607d8b', + 600: '#546e7a', + 700: '#455a64', + 800: '#37474f', + 900: '#263238' + }, + x = { + primary: 'rgba(0, 0, 0, 0.87)', + secondary: 'rgba(0, 0, 0, 0.54)', + disabled: 'rgba(0, 0, 0, 0.38)', + dividers: 'rgba(0, 0, 0, 0.12)' + }, + M = { + primary: 'rgba(255, 255, 255, 1)', + secondary: 'rgba(255, 255, 255, 0.7)', + disabled: 'rgba(255, 255, 255, 0.5)', + dividers: 'rgba(255, 255, 255, 0.12)' + }, + k = { active: 'rgba(0, 0, 0, 0.54)', inactive: 'rgba(0, 0, 0, 0.38)' }, + S = { + active: 'rgba(255, 255, 255, 1)', + inactive: 'rgba(255, 255, 255, 0.5)' + }, + O = '#ffffff', + E = '#000000'; + t.default = { + red: r, + pink: o, + purple: i, + deepPurple: a, + indigo: s, + blue: c, + lightBlue: u, + cyan: l, + teal: f, + green: d, + lightGreen: p, + lime: h, + yellow: g, + amber: m, + orange: b, + deepOrange: y, + brown: v, + grey: _, + blueGrey: w, + darkText: x, + lightText: M, + darkIcons: k, + lightIcons: S, + white: O, + black: E + }; + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('af', { + months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split( + '_' + ), + weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split( + '_' + ), + weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'), + weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'), + meridiemParse: /vm|nm/i, + isPM: function(e) { + return /^nm$/i.test(e); + }, + meridiem: function(e, t, n) { + return e < 12 ? (n ? 'vm' : 'VM') : n ? 'nm' : 'NM'; + }, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[Vandag om] LT', + nextDay: '[Môre om] LT', + nextWeek: 'dddd [om] LT', + lastDay: '[Gister om] LT', + lastWeek: '[Laas] dddd [om] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'oor %s', + past: '%s gelede', + s: "'n paar sekondes", + ss: '%d sekondes', + m: "'n minuut", + mm: '%d minute', + h: "'n uur", + hh: '%d ure', + d: "'n dag", + dd: '%d dae', + M: "'n maand", + MM: '%d maande', + y: "'n jaar", + yy: '%d jaar' + }, + dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, + ordinal: function(e) { + return e + (1 === e || 8 === e || e >= 20 ? 'ste' : 'de'); + }, + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = { + 1: '١', + 2: '٢', + 3: '٣', + 4: '٤', + 5: '٥', + 6: '٦', + 7: '٧', + 8: '٨', + 9: '٩', + 0: '٠' + }, + n = { + '١': '1', + '٢': '2', + '٣': '3', + '٤': '4', + '٥': '5', + '٦': '6', + '٧': '7', + '٨': '8', + '٩': '9', + '٠': '0' + }, + r = function(e) { + return 0 === e + ? 0 + : 1 === e + ? 1 + : 2 === e + ? 2 + : e % 100 >= 3 && e % 100 <= 10 + ? 3 + : e % 100 >= 11 + ? 4 + : 5; + }, + o = { + s: [ + 'أقل من ثانية', + 'ثانية واحدة', + ['ثانيتان', 'ثانيتين'], + '%d ثوان', + '%d ثانية', + '%d ثانية' + ], + m: [ + 'أقل من دقيقة', + 'دقيقة واحدة', + ['دقيقتان', 'دقيقتين'], + '%d دقائق', + '%d دقيقة', + '%d دقيقة' + ], + h: [ + 'أقل من ساعة', + 'ساعة واحدة', + ['ساعتان', 'ساعتين'], + '%d ساعات', + '%d ساعة', + '%d ساعة' + ], + d: [ + 'أقل من يوم', + 'يوم واحد', + ['يومان', 'يومين'], + '%d أيام', + '%d يومًا', + '%d يوم' + ], + M: [ + 'أقل من شهر', + 'شهر واحد', + ['شهران', 'شهرين'], + '%d أشهر', + '%d شهرا', + '%d شهر' + ], + y: [ + 'أقل من عام', + 'عام واحد', + ['عامان', 'عامين'], + '%d أعوام', + '%d عامًا', + '%d عام' + ] + }, + i = function(e) { + return function(t, n, i, a) { + var s = r(t), + c = o[e][r(t)]; + return 2 === s && (c = c[n ? 0 : 1]), c.replace(/%d/i, t); + }; + }, + a = [ + 'يناير', + 'فبراير', + 'مارس', + 'أبريل', + 'مايو', + 'يونيو', + 'يوليو', + 'أغسطس', + 'سبتمبر', + 'أكتوبر', + 'نوفمبر', + 'ديسمبر' + ]; + e.defineLocale('ar', { + months: a, + monthsShort: a, + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split( + '_' + ), + weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'D/‏M/‏YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm' + }, + meridiemParse: /ص|م/, + isPM: function(e) { + return 'م' === e; + }, + meridiem: function(e, t, n) { + return e < 12 ? 'ص' : 'م'; + }, + calendar: { + sameDay: '[اليوم عند الساعة] LT', + nextDay: '[غدًا عند الساعة] LT', + nextWeek: 'dddd [عند الساعة] LT', + lastDay: '[أمس عند الساعة] LT', + lastWeek: 'dddd [عند الساعة] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'بعد %s', + past: 'منذ %s', + s: i('s'), + ss: i('s'), + m: i('m'), + mm: i('m'), + h: i('h'), + hh: i('h'), + d: i('d'), + dd: i('d'), + M: i('M'), + MM: i('M'), + y: i('y'), + yy: i('y') + }, + preparse: function(e) { + return e + .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function(e) { + return n[e]; + }) + .replace(/،/g, ','); + }, + postformat: function(e) { + return e + .replace(/\d/g, function(e) { + return t[e]; + }) + .replace(/,/g, '،'); + }, + week: { dow: 6, doy: 12 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('ar-dz', { + months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( + '_' + ), + monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( + '_' + ), + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split( + '_' + ), + weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[اليوم على الساعة] LT', + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'في %s', + past: 'منذ %s', + s: 'ثوان', + ss: '%d ثانية', + m: 'دقيقة', + mm: '%d دقائق', + h: 'ساعة', + hh: '%d ساعات', + d: 'يوم', + dd: '%d أيام', + M: 'شهر', + MM: '%d أشهر', + y: 'سنة', + yy: '%d سنوات' + }, + week: { dow: 0, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('ar-kw', { + months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( + '_' + ), + monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( + '_' + ), + weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split( + '_' + ), + weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[اليوم على الساعة] LT', + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'في %s', + past: 'منذ %s', + s: 'ثوان', + ss: '%d ثانية', + m: 'دقيقة', + mm: '%d دقائق', + h: 'ساعة', + hh: '%d ساعات', + d: 'يوم', + dd: '%d أيام', + M: 'شهر', + MM: '%d أشهر', + y: 'سنة', + yy: '%d سنوات' + }, + week: { dow: 0, doy: 12 } }); - var r = '5.16.0', - o = function(e, t) { - return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN; - }, - i = function(e) { - var t; - return ( - 1 === e.length && - ((t = e), - (e = function(e, n) { - return o(t(e), n); - })), - { - left: function(t, n, r, o) { - for ( - null == r && (r = 0), null == o && (o = t.length); - r < o; - - ) { - var i = (r + o) >>> 1; - e(t[i], n) < 0 ? (r = i + 1) : (o = i); - } - return r; - }, - right: function(t, n, r, o) { - for ( - null == r && (r = 0), null == o && (o = t.length); - r < o; - - ) { - var i = (r + o) >>> 1; - e(t[i], n) > 0 ? (o = i) : (r = i + 1); - } - return r; + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = { + 1: '1', + 2: '2', + 3: '3', + 4: '4', + 5: '5', + 6: '6', + 7: '7', + 8: '8', + 9: '9', + 0: '0' + }, + n = function(e) { + return 0 === e + ? 0 + : 1 === e + ? 1 + : 2 === e + ? 2 + : e % 100 >= 3 && e % 100 <= 10 + ? 3 + : e % 100 >= 11 + ? 4 + : 5; + }, + r = { + s: [ + 'أقل من ثانية', + 'ثانية واحدة', + ['ثانيتان', 'ثانيتين'], + '%d ثوان', + '%d ثانية', + '%d ثانية' + ], + m: [ + 'أقل من دقيقة', + 'دقيقة واحدة', + ['دقيقتان', 'دقيقتين'], + '%d دقائق', + '%d دقيقة', + '%d دقيقة' + ], + h: [ + 'أقل من ساعة', + 'ساعة واحدة', + ['ساعتان', 'ساعتين'], + '%d ساعات', + '%d ساعة', + '%d ساعة' + ], + d: [ + 'أقل من يوم', + 'يوم واحد', + ['يومان', 'يومين'], + '%d أيام', + '%d يومًا', + '%d يوم' + ], + M: [ + 'أقل من شهر', + 'شهر واحد', + ['شهران', 'شهرين'], + '%d أشهر', + '%d شهرا', + '%d شهر' + ], + y: [ + 'أقل من عام', + 'عام واحد', + ['عامان', 'عامين'], + '%d أعوام', + '%d عامًا', + '%d عام' + ] + }, + o = function(e) { + return function(t, o, i, a) { + var s = n(t), + c = r[e][n(t)]; + return 2 === s && (c = c[o ? 0 : 1]), c.replace(/%d/i, t); + }; + }, + i = [ + 'يناير', + 'فبراير', + 'مارس', + 'أبريل', + 'مايو', + 'يونيو', + 'يوليو', + 'أغسطس', + 'سبتمبر', + 'أكتوبر', + 'نوفمبر', + 'ديسمبر' + ]; + e.defineLocale('ar-ly', { + months: i, + monthsShort: i, + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split( + '_' + ), + weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'D/‏M/‏YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm' + }, + meridiemParse: /ص|م/, + isPM: function(e) { + return 'م' === e; + }, + meridiem: function(e, t, n) { + return e < 12 ? 'ص' : 'م'; + }, + calendar: { + sameDay: '[اليوم عند الساعة] LT', + nextDay: '[غدًا عند الساعة] LT', + nextWeek: 'dddd [عند الساعة] LT', + lastDay: '[أمس عند الساعة] LT', + lastWeek: 'dddd [عند الساعة] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'بعد %s', + past: 'منذ %s', + s: o('s'), + ss: o('s'), + m: o('m'), + mm: o('m'), + h: o('h'), + hh: o('h'), + d: o('d'), + dd: o('d'), + M: o('M'), + MM: o('M'), + y: o('y'), + yy: o('y') + }, + preparse: function(e) { + return e.replace(/،/g, ','); + }, + postformat: function(e) { + return e + .replace(/\d/g, function(e) { + return t[e]; + }) + .replace(/,/g, '،'); + }, + week: { dow: 6, doy: 12 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('ar-ma', { + months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( + '_' + ), + monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( + '_' + ), + weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split( + '_' + ), + weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[اليوم على الساعة] LT', + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'في %s', + past: 'منذ %s', + s: 'ثوان', + ss: '%d ثانية', + m: 'دقيقة', + mm: '%d دقائق', + h: 'ساعة', + hh: '%d ساعات', + d: 'يوم', + dd: '%d أيام', + M: 'شهر', + MM: '%d أشهر', + y: 'سنة', + yy: '%d سنوات' + }, + week: { dow: 6, doy: 12 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = { + 1: '١', + 2: '٢', + 3: '٣', + 4: '٤', + 5: '٥', + 6: '٦', + 7: '٧', + 8: '٨', + 9: '٩', + 0: '٠' + }, + n = { + '١': '1', + '٢': '2', + '٣': '3', + '٤': '4', + '٥': '5', + '٦': '6', + '٧': '7', + '٨': '8', + '٩': '9', + '٠': '0' + }; + e.defineLocale('ar-sa', { + months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( + '_' + ), + monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( + '_' + ), + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split( + '_' + ), + weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm' + }, + meridiemParse: /ص|م/, + isPM: function(e) { + return 'م' === e; + }, + meridiem: function(e, t, n) { + return e < 12 ? 'ص' : 'م'; + }, + calendar: { + sameDay: '[اليوم على الساعة] LT', + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'في %s', + past: 'منذ %s', + s: 'ثوان', + ss: '%d ثانية', + m: 'دقيقة', + mm: '%d دقائق', + h: 'ساعة', + hh: '%d ساعات', + d: 'يوم', + dd: '%d أيام', + M: 'شهر', + MM: '%d أشهر', + y: 'سنة', + yy: '%d سنوات' + }, + preparse: function(e) { + return e + .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function(e) { + return n[e]; + }) + .replace(/،/g, ','); + }, + postformat: function(e) { + return e + .replace(/\d/g, function(e) { + return t[e]; + }) + .replace(/,/g, '،'); + }, + week: { dow: 0, doy: 6 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('ar-tn', { + months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( + '_' + ), + monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( + '_' + ), + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split( + '_' + ), + weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[اليوم على الساعة] LT', + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'في %s', + past: 'منذ %s', + s: 'ثوان', + ss: '%d ثانية', + m: 'دقيقة', + mm: '%d دقائق', + h: 'ساعة', + hh: '%d ساعات', + d: 'يوم', + dd: '%d أيام', + M: 'شهر', + MM: '%d أشهر', + y: 'سنة', + yy: '%d سنوات' + }, + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = { + 1: '-inci', + 5: '-inci', + 8: '-inci', + 70: '-inci', + 80: '-inci', + 2: '-nci', + 7: '-nci', + 20: '-nci', + 50: '-nci', + 3: '-üncü', + 4: '-üncü', + 100: '-üncü', + 6: '-ncı', + 9: '-uncu', + 10: '-uncu', + 30: '-uncu', + 60: '-ıncı', + 90: '-ıncı' + }; + e.defineLocale('az', { + months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split( + '_' + ), + monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split( + '_' + ), + weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split( + '_' + ), + weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'), + weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[bugün saat] LT', + nextDay: '[sabah saat] LT', + nextWeek: '[gələn həftə] dddd [saat] LT', + lastDay: '[dünən] LT', + lastWeek: '[keçən həftə] dddd [saat] LT', + sameElse: 'L' + }, + relativeTime: { + future: '%s sonra', + past: '%s əvvəl', + s: 'birneçə saniyə', + ss: '%d saniyə', + m: 'bir dəqiqə', + mm: '%d dəqiqə', + h: 'bir saat', + hh: '%d saat', + d: 'bir gün', + dd: '%d gün', + M: 'bir ay', + MM: '%d ay', + y: 'bir il', + yy: '%d il' + }, + meridiemParse: /gecə|səhər|gündüz|axşam/, + isPM: function(e) { + return /^(gündüz|axşam)$/.test(e); + }, + meridiem: function(e, t, n) { + return e < 4 + ? 'gecə' + : e < 12 + ? 'səhər' + : e < 17 + ? 'gündüz' + : 'axşam'; + }, + dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/, + ordinal: function(e) { + if (0 === e) return e + '-ıncı'; + var n = e % 10; + return e + (t[n] || t[(e % 100) - n] || t[e >= 100 ? 100 : null]); + }, + week: { dow: 1, doy: 7 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + function t(e, t, n) { + var r, o; + return 'm' === n + ? t + ? 'хвіліна' + : 'хвіліну' + : 'h' === n + ? t + ? 'гадзіна' + : 'гадзіну' + : e + + ' ' + + ((r = +e), + (o = { + ss: t ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд', + mm: t ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін', + hh: t ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін', + dd: 'дзень_дні_дзён', + MM: 'месяц_месяцы_месяцаў', + yy: 'год_гады_гадоў' + }[n].split('_')), + r % 10 == 1 && r % 100 != 11 + ? o[0] + : r % 10 >= 2 && r % 10 <= 4 && (r % 100 < 10 || r % 100 >= 20) + ? o[1] + : o[2]); + } + e.defineLocale('be', { + months: { + format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split( + '_' + ), + standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split( + '_' + ) + }, + monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split( + '_' + ), + weekdays: { + format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split( + '_' + ), + standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split( + '_' + ), + isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/ + }, + weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'), + weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY г.', + LLL: 'D MMMM YYYY г., HH:mm', + LLLL: 'dddd, D MMMM YYYY г., HH:mm' + }, + calendar: { + sameDay: '[Сёння ў] LT', + nextDay: '[Заўтра ў] LT', + lastDay: '[Учора ў] LT', + nextWeek: function() { + return '[У] dddd [ў] LT'; + }, + lastWeek: function() { + switch (this.day()) { + case 0: + case 3: + case 5: + case 6: + return '[У мінулую] dddd [ў] LT'; + case 1: + case 2: + case 4: + return '[У мінулы] dddd [ў] LT'; } + }, + sameElse: 'L' + }, + relativeTime: { + future: 'праз %s', + past: '%s таму', + s: 'некалькі секунд', + m: t, + mm: t, + h: t, + hh: t, + d: 'дзень', + dd: t, + M: 'месяц', + MM: t, + y: 'год', + yy: t + }, + meridiemParse: /ночы|раніцы|дня|вечара/, + isPM: function(e) { + return /^(дня|вечара)$/.test(e); + }, + meridiem: function(e, t, n) { + return e < 4 + ? 'ночы' + : e < 12 + ? 'раніцы' + : e < 17 + ? 'дня' + : 'вечара'; + }, + dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/, + ordinal: function(e, t) { + switch (t) { + case 'M': + case 'd': + case 'DDD': + case 'w': + case 'W': + return (e % 10 != 2 && e % 10 != 3) || + e % 100 == 12 || + e % 100 == 13 + ? e + '-ы' + : e + '-і'; + case 'D': + return e + '-га'; + default: + return e; } - ); - }; - var a = i(o), - s = a.right, - c = a.left, - u = s, - l = function(e, t) { - null == t && (t = f); - for ( - var n = 0, r = e.length - 1, o = e[0], i = new Array(r < 0 ? 0 : r); - n < r; - - ) - i[n] = t(o, (o = e[++n])); - return i; - }; - function f(e, t) { - return [e, t]; - } - var d = function(e, t, n) { - var r, - o, - i, - a, - s = e.length, - c = t.length, - u = new Array(s * c); - for (null == n && (n = f), r = i = 0; r < s; ++r) - for (a = e[r], o = 0; o < c; ++o, ++i) u[i] = n(a, t[o]); - return u; - }, - p = function(e, t) { - return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; - }, - h = function(e) { - return null === e ? NaN : +e; - }, - g = function(e, t) { - var n, - r, - o = e.length, - i = 0, - a = -1, - s = 0, - c = 0; - if (null == t) - for (; ++a < o; ) - isNaN((n = h(e[a]))) || (c += (r = n - s) * (n - (s += r / ++i))); - else - for (; ++a < o; ) - isNaN((n = h(t(e[a], a, e)))) || - (c += (r = n - s) * (n - (s += r / ++i))); - if (i > 1) return c / (i - 1); - }, - m = function(e, t) { - var n = g(e, t); - return n ? Math.sqrt(n) : n; - }, - b = function(e, t) { - var n, - r, - o, - i = e.length, - a = -1; - if (null == t) { - for (; ++a < i; ) - if (null != (n = e[a]) && n >= n) - for (r = o = n; ++a < i; ) - null != (n = e[a]) && (r > n && (r = n), o < n && (o = n)); - } else - for (; ++a < i; ) - if (null != (n = t(e[a], a, e)) && n >= n) - for (r = o = n; ++a < i; ) - null != (n = t(e[a], a, e)) && - (r > n && (r = n), o < n && (o = n)); - return [r, o]; - }, - y = Array.prototype, - v = y.slice, - _ = y.map, - x = function(e) { - return function() { - return e; + }, + week: { dow: 1, doy: 7 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('bg', { + months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split( + '_' + ), + monthsShort: 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split( + '_' + ), + weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split( + '_' + ), + weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'), + weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'D.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY H:mm', + LLLL: 'dddd, D MMMM YYYY H:mm' + }, + calendar: { + sameDay: '[Днес в] LT', + nextDay: '[Утре в] LT', + nextWeek: 'dddd [в] LT', + lastDay: '[Вчера в] LT', + lastWeek: function() { + switch (this.day()) { + case 0: + case 3: + case 6: + return '[В изминалата] dddd [в] LT'; + case 1: + case 2: + case 4: + case 5: + return '[В изминалия] dddd [в] LT'; + } + }, + sameElse: 'L' + }, + relativeTime: { + future: 'след %s', + past: 'преди %s', + s: 'няколко секунди', + ss: '%d секунди', + m: 'минута', + mm: '%d минути', + h: 'час', + hh: '%d часа', + d: 'ден', + dd: '%d дни', + M: 'месец', + MM: '%d месеца', + y: 'година', + yy: '%d години' + }, + dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, + ordinal: function(e) { + var t = e % 10, + n = e % 100; + return 0 === e + ? e + '-ев' + : 0 === n + ? e + '-ен' + : n > 10 && n < 20 + ? e + '-ти' + : 1 === t + ? e + '-ви' + : 2 === t + ? e + '-ри' + : 7 === t || 8 === t + ? e + '-ми' + : e + '-ти'; + }, + week: { dow: 1, doy: 7 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('bm', { + months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split( + '_' + ), + monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split( + '_' + ), + weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'), + weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'), + weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'MMMM [tile] D [san] YYYY', + LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm', + LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm' + }, + calendar: { + sameDay: '[Bi lɛrɛ] LT', + nextDay: '[Sini lɛrɛ] LT', + nextWeek: 'dddd [don lɛrɛ] LT', + lastDay: '[Kunu lɛrɛ] LT', + lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT', + sameElse: 'L' + }, + relativeTime: { + future: '%s kɔnɔ', + past: 'a bɛ %s bɔ', + s: 'sanga dama dama', + ss: 'sekondi %d', + m: 'miniti kelen', + mm: 'miniti %d', + h: 'lɛrɛ kelen', + hh: 'lɛrɛ %d', + d: 'tile kelen', + dd: 'tile %d', + M: 'kalo kelen', + MM: 'kalo %d', + y: 'san kelen', + yy: 'san %d' + }, + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = { + 1: '১', + 2: '২', + 3: '৩', + 4: '৪', + 5: '৫', + 6: '৬', + 7: '৭', + 8: '৮', + 9: '৯', + 0: '০' + }, + n = { + '১': '1', + '২': '2', + '৩': '3', + '৪': '4', + '৫': '5', + '৬': '6', + '৭': '7', + '৮': '8', + '৯': '9', + '০': '0' }; - }, - w = function(e) { - return e; - }, - M = function(e, t, n) { - (e = +e), - (t = +t), - (n = - (o = arguments.length) < 2 - ? ((t = e), (e = 0), 1) - : o < 3 - ? 1 - : +n); - for ( - var r = -1, - o = 0 | Math.max(0, Math.ceil((t - e) / n)), - i = new Array(o); - ++r < o; - - ) - i[r] = e + r * n; - return i; - }, - k = Math.sqrt(50), - S = Math.sqrt(10), - A = Math.sqrt(2), - O = function(e, t, n) { - var r, - o, - i, - a, - s = -1; - if (((n = +n), (e = +e) === (t = +t) && n > 0)) return [e]; - if ( - ((r = t < e) && ((o = e), (e = t), (t = o)), - 0 === (a = E(e, t, n)) || !isFinite(a)) - ) - return []; - if (a > 0) - for ( - e = Math.ceil(e / a), - t = Math.floor(t / a), - i = new Array((o = Math.ceil(t - e + 1))); - ++s < o; - - ) - i[s] = (e + s) * a; - else - for ( - e = Math.floor(e * a), - t = Math.ceil(t * a), - i = new Array((o = Math.ceil(e - t + 1))); - ++s < o; - - ) - i[s] = (e - s) / a; - return r && i.reverse(), i; - }; - function E(e, t, n) { - var r = (t - e) / Math.max(0, n), - o = Math.floor(Math.log(r) / Math.LN10), - i = r / Math.pow(10, o); - return o >= 0 - ? (i >= k ? 10 : i >= S ? 5 : i >= A ? 2 : 1) * Math.pow(10, o) - : -Math.pow(10, -o) / (i >= k ? 10 : i >= S ? 5 : i >= A ? 2 : 1); - } - function T(e, t, n) { - var r = Math.abs(t - e) / Math.max(0, n), - o = Math.pow(10, Math.floor(Math.log(r) / Math.LN10)), - i = r / o; - return ( - i >= k ? (o *= 10) : i >= S ? (o *= 5) : i >= A && (o *= 2), - t < e ? -o : o - ); - } - var C = function(e) { - return Math.ceil(Math.log(e.length) / Math.LN2) + 1; - }, - L = function() { - var e = w, - t = b, - n = C; - function r(r) { - var o, - i, - a = r.length, - s = new Array(a); - for (o = 0; o < a; ++o) s[o] = e(r[o], o, r); - var c = t(s), - l = c[0], - f = c[1], - d = n(s, l, f); - Array.isArray(d) || - ((d = T(l, f, d)), (d = M(Math.ceil(l / d) * d, f, d))); - for (var p = d.length; d[0] <= l; ) d.shift(), --p; - for (; d[p - 1] > f; ) d.pop(), --p; - var h, - g = new Array(p + 1); - for (o = 0; o <= p; ++o) - ((h = g[o] = []).x0 = o > 0 ? d[o - 1] : l), - (h.x1 = o < p ? d[o] : f); - for (o = 0; o < a; ++o) - l <= (i = s[o]) && i <= f && g[u(d, i, 0, p)].push(r[o]); - return g; - } + e.defineLocale('bn', { + months: 'জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split( + '_' + ), + monthsShort: 'জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে'.split( + '_' + ), + weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split( + '_' + ), + weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'), + weekdaysMin: 'রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি'.split('_'), + longDateFormat: { + LT: 'A h:mm সময়', + LTS: 'A h:mm:ss সময়', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm সময়', + LLLL: 'dddd, D MMMM YYYY, A h:mm সময়' + }, + calendar: { + sameDay: '[আজ] LT', + nextDay: '[আগামীকাল] LT', + nextWeek: 'dddd, LT', + lastDay: '[গতকাল] LT', + lastWeek: '[গত] dddd, LT', + sameElse: 'L' + }, + relativeTime: { + future: '%s পরে', + past: '%s আগে', + s: 'কয়েক সেকেন্ড', + ss: '%d সেকেন্ড', + m: 'এক মিনিট', + mm: '%d মিনিট', + h: 'এক ঘন্টা', + hh: '%d ঘন্টা', + d: 'এক দিন', + dd: '%d দিন', + M: 'এক মাস', + MM: '%d মাস', + y: 'এক বছর', + yy: '%d বছর' + }, + preparse: function(e) { + return e.replace(/[১২৩৪৫৬৭৮৯০]/g, function(e) { + return n[e]; + }); + }, + postformat: function(e) { + return e.replace(/\d/g, function(e) { + return t[e]; + }); + }, + meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/, + meridiemHour: function(e, t) { + return ( + 12 === e && (e = 0), + ('রাত' === t && e >= 4) || + ('দুপুর' === t && e < 5) || + 'বিকাল' === t + ? e + 12 + : e + ); + }, + meridiem: function(e, t, n) { + return e < 4 + ? 'রাত' + : e < 10 + ? 'সকাল' + : e < 17 + ? 'দুপুর' + : e < 20 + ? 'বিকাল' + : 'রাত'; + }, + week: { dow: 0, doy: 6 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = { + 1: '༡', + 2: '༢', + 3: '༣', + 4: '༤', + 5: '༥', + 6: '༦', + 7: '༧', + 8: '༨', + 9: '༩', + 0: '༠' + }, + n = { + '༡': '1', + '༢': '2', + '༣': '3', + '༤': '4', + '༥': '5', + '༦': '6', + '༧': '7', + '༨': '8', + '༩': '9', + '༠': '0' + }; + e.defineLocale('bo', { + months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split( + '_' + ), + monthsShort: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split( + '_' + ), + weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split( + '_' + ), + weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split( + '_' + ), + weekdaysMin: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split( + '_' + ), + longDateFormat: { + LT: 'A h:mm', + LTS: 'A h:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm', + LLLL: 'dddd, D MMMM YYYY, A h:mm' + }, + calendar: { + sameDay: '[དི་རིང] LT', + nextDay: '[སང་ཉིན] LT', + nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT', + lastDay: '[ཁ་སང] LT', + lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT', + sameElse: 'L' + }, + relativeTime: { + future: '%s ལ་', + past: '%s སྔན་ལ', + s: 'ལམ་སང', + ss: '%d སྐར་ཆ།', + m: 'སྐར་མ་གཅིག', + mm: '%d སྐར་མ', + h: 'ཆུ་ཚོད་གཅིག', + hh: '%d ཆུ་ཚོད', + d: 'ཉིན་གཅིག', + dd: '%d ཉིན་', + M: 'ཟླ་བ་གཅིག', + MM: '%d ཟླ་བ', + y: 'ལོ་གཅིག', + yy: '%d ལོ' + }, + preparse: function(e) { + return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function(e) { + return n[e]; + }); + }, + postformat: function(e) { + return e.replace(/\d/g, function(e) { + return t[e]; + }); + }, + meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/, + meridiemHour: function(e, t) { + return ( + 12 === e && (e = 0), + ('མཚན་མོ' === t && e >= 4) || + ('ཉིན་གུང' === t && e < 5) || + 'དགོང་དག' === t + ? e + 12 + : e + ); + }, + meridiem: function(e, t, n) { + return e < 4 + ? 'མཚན་མོ' + : e < 10 + ? 'ཞོགས་ཀས' + : e < 17 + ? 'ཉིན་གུང' + : e < 20 + ? 'དགོང་དག' + : 'མཚན་མོ'; + }, + week: { dow: 0, doy: 6 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + function t(e, t, n) { return ( - (r.value = function(t) { - return arguments.length - ? ((e = 'function' == typeof t ? t : x(t)), r) - : e; - }), - (r.domain = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : x([e[0], e[1]])), r) - : t; - }), - (r.thresholds = function(e) { - return arguments.length - ? ((n = - 'function' == typeof e + e + + ' ' + + (function(e, t) { + return 2 === t + ? (function(e) { + var t = { m: 'v', b: 'v', d: 'z' }; + return void 0 === t[e.charAt(0)] ? e - : Array.isArray(e) - ? x(v.call(e)) - : x(e)), - r) - : n; - }), - r - ); - }, - P = function(e, t, n) { - if ((null == n && (n = h), (r = e.length))) { - if ((t = +t) <= 0 || r < 2) return +n(e[0], 0, e); - if (t >= 1) return +n(e[r - 1], r - 1, e); - var r, - o = (r - 1) * t, - i = Math.floor(o), - a = +n(e[i], i, e); - return a + (+n(e[i + 1], i + 1, e) - a) * (o - i); - } - }, - D = function(e, t, n) { - return ( - (e = _.call(e, h).sort(o)), - Math.ceil( - (n - t) / - (2 * (P(e, 0.75) - P(e, 0.25)) * Math.pow(e.length, -1 / 3)) - ) + : t[e.charAt(0)] + e.substring(1); + })(e) + : e; + })({ mm: 'munutenn', MM: 'miz', dd: 'devezh' }[n], e) ); - }, - z = function(e, t, n) { - return Math.ceil((n - t) / (3.5 * m(e) * Math.pow(e.length, -1 / 3))); - }, - N = function(e, t) { - var n, - r, - o = e.length, - i = -1; - if (null == t) { - for (; ++i < o; ) - if (null != (n = e[i]) && n >= n) - for (r = n; ++i < o; ) null != (n = e[i]) && n > r && (r = n); - } else - for (; ++i < o; ) - if (null != (n = t(e[i], i, e)) && n >= n) - for (r = n; ++i < o; ) - null != (n = t(e[i], i, e)) && n > r && (r = n); - return r; - }, - j = function(e, t) { - var n, - r = e.length, - o = r, - i = -1, - a = 0; - if (null == t) - for (; ++i < r; ) isNaN((n = h(e[i]))) ? --o : (a += n); - else for (; ++i < r; ) isNaN((n = h(t(e[i], i, e)))) ? --o : (a += n); - if (o) return a / o; - }, - R = function(e, t) { - var n, - r = e.length, - i = -1, - a = []; - if (null == t) for (; ++i < r; ) isNaN((n = h(e[i]))) || a.push(n); - else for (; ++i < r; ) isNaN((n = h(t(e[i], i, e)))) || a.push(n); - return P(a.sort(o), 0.5); - }, - I = function(e) { - for (var t, n, r, o = e.length, i = -1, a = 0; ++i < o; ) - a += e[i].length; - for (n = new Array(a); --o >= 0; ) - for (t = (r = e[o]).length; --t >= 0; ) n[--a] = r[t]; - return n; - }, - F = function(e, t) { - var n, - r, - o = e.length, - i = -1; - if (null == t) { - for (; ++i < o; ) - if (null != (n = e[i]) && n >= n) - for (r = n; ++i < o; ) null != (n = e[i]) && r > n && (r = n); - } else - for (; ++i < o; ) - if (null != (n = t(e[i], i, e)) && n >= n) - for (r = n; ++i < o; ) - null != (n = t(e[i], i, e)) && r > n && (r = n); - return r; - }, - q = function(e, t) { - for (var n = t.length, r = new Array(n); n--; ) r[n] = e[t[n]]; - return r; - }, - B = function(e, t) { - if ((n = e.length)) { - var n, - r, - i = 0, - a = 0, - s = e[a]; - for (null == t && (t = o); ++i < n; ) - (t((r = e[i]), s) < 0 || 0 !== t(s, s)) && ((s = r), (a = i)); - return 0 === t(s, s) ? a : void 0; - } - }, - H = function(e, t, n) { - for ( - var r, o, i = (null == n ? e.length : n) - (t = null == t ? 0 : +t); - i; - - ) - (o = (Math.random() * i--) | 0), - (r = e[i + t]), - (e[i + t] = e[o + t]), - (e[o + t] = r); - return e; - }, - Y = function(e, t) { - var n, - r = e.length, - o = -1, - i = 0; - if (null == t) for (; ++o < r; ) (n = +e[o]) && (i += n); - else for (; ++o < r; ) (n = +t(e[o], o, e)) && (i += n); - return i; - }, - W = function(e) { - if (!(o = e.length)) return []; - for (var t = -1, n = F(e, V), r = new Array(n); ++t < n; ) - for (var o, i = -1, a = (r[t] = new Array(o)); ++i < o; ) - a[i] = e[i][t]; - return r; - }; - function V(e) { - return e.length; - } - var U = function() { - return W(arguments); - }, - X = Array.prototype.slice, - G = function(e) { - return e; - }; - function K(e) { - return 'translate(' + (e + 0.5) + ',0)'; - } - function $(e) { - return 'translate(0,' + (e + 0.5) + ')'; - } - function Q(e) { - return function(t) { - return +e(t); - }; - } - function J(e) { - var t = Math.max(0, e.bandwidth() - 1) / 2; - return ( - e.round() && (t = Math.round(t)), - function(n) { - return +e(n) + t; + } + e.defineLocale('br', { + months: "Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split( + '_' + ), + monthsShort: "Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split( + '_' + ), + weekdays: "Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split('_'), + weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'), + weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'h[e]mm A', + LTS: 'h[e]mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D [a viz] MMMM YYYY', + LLL: 'D [a viz] MMMM YYYY h[e]mm A', + LLLL: 'dddd, D [a viz] MMMM YYYY h[e]mm A' + }, + calendar: { + sameDay: '[Hiziv da] LT', + nextDay: "[Warc'hoazh da] LT", + nextWeek: 'dddd [da] LT', + lastDay: "[Dec'h da] LT", + lastWeek: 'dddd [paset da] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'a-benn %s', + past: "%s 'zo", + s: 'un nebeud segondennoù', + ss: '%d eilenn', + m: 'ur vunutenn', + mm: t, + h: 'un eur', + hh: '%d eur', + d: 'un devezh', + dd: t, + M: 'ur miz', + MM: t, + y: 'ur bloaz', + yy: function(e) { + switch ( + (function e(t) { + return t > 9 ? e(t % 10) : t; + })(e) + ) { + case 1: + case 3: + case 4: + case 5: + case 9: + return e + ' bloaz'; + default: + return e + ' vloaz'; + } + } + }, + dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/, + ordinal: function(e) { + return e + (1 === e ? 'añ' : 'vet'); + }, + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + function t(e, t, n) { + var r = e + ' '; + switch (n) { + case 'ss': + return (r += + 1 === e + ? 'sekunda' + : 2 === e || 3 === e || 4 === e + ? 'sekunde' + : 'sekundi'); + case 'm': + return t ? 'jedna minuta' : 'jedne minute'; + case 'mm': + return (r += + 1 === e + ? 'minuta' + : 2 === e || 3 === e || 4 === e + ? 'minute' + : 'minuta'); + case 'h': + return t ? 'jedan sat' : 'jednog sata'; + case 'hh': + return (r += + 1 === e + ? 'sat' + : 2 === e || 3 === e || 4 === e + ? 'sata' + : 'sati'); + case 'dd': + return (r += 1 === e ? 'dan' : 'dana'); + case 'MM': + return (r += + 1 === e + ? 'mjesec' + : 2 === e || 3 === e || 4 === e + ? 'mjeseca' + : 'mjeseci'); + case 'yy': + return (r += + 1 === e + ? 'godina' + : 2 === e || 3 === e || 4 === e + ? 'godine' + : 'godina'); } - ); - } - function Z() { - return !this.__axis; - } - function ee(e, t) { - var n = [], - r = null, - o = null, - i = 6, - a = 6, - s = 3, - c = 1 === e || 4 === e ? -1 : 1, - u = 4 === e || 2 === e ? 'x' : 'y', - l = 1 === e || 3 === e ? K : $; - function f(f) { - var d = null == r ? (t.ticks ? t.ticks.apply(t, n) : t.domain()) : r, - p = null == o ? (t.tickFormat ? t.tickFormat.apply(t, n) : G) : o, - h = Math.max(i, 0) + s, - g = t.range(), - m = +g[0] + 0.5, - b = +g[g.length - 1] + 0.5, - y = (t.bandwidth ? J : Q)(t.copy()), - v = f.selection ? f.selection() : f, - _ = v.selectAll('.domain').data([null]), - x = v - .selectAll('.tick') - .data(d, t) - .order(), - w = x.exit(), - M = x - .enter() - .append('g') - .attr('class', 'tick'), - k = x.select('line'), - S = x.select('text'); - (_ = _.merge( - _.enter() - .insert('path', '.tick') - .attr('class', 'domain') - .attr('stroke', 'currentColor') - )), - (x = x.merge(M)), - (k = k.merge( - M.append('line') - .attr('stroke', 'currentColor') - .attr(u + '2', c * i) - )), - (S = S.merge( - M.append('text') - .attr('fill', 'currentColor') - .attr(u, c * h) - .attr('dy', 1 === e ? '0em' : 3 === e ? '0.71em' : '0.32em') - )), - f !== v && - ((_ = _.transition(f)), - (x = x.transition(f)), - (k = k.transition(f)), - (S = S.transition(f)), - (w = w - .transition(f) - .attr('opacity', 1e-6) - .attr('transform', function(e) { - return isFinite((e = y(e))) - ? l(e) - : this.getAttribute('transform'); - })), - M.attr('opacity', 1e-6).attr('transform', function(e) { - var t = this.parentNode.__axis; - return l(t && isFinite((t = t(e))) ? t : y(e)); - })), - w.remove(), - _.attr( - 'd', - 4 === e || 2 == e - ? a - ? 'M' + c * a + ',' + m + 'H0.5V' + b + 'H' + c * a - : 'M0.5,' + m + 'V' + b - : a - ? 'M' + m + ',' + c * a + 'V0.5H' + b + 'V' + c * a - : 'M' + m + ',0.5H' + b - ), - x.attr('opacity', 1).attr('transform', function(e) { - return l(y(e)); - }), - k.attr(u + '2', c * i), - S.attr(u, c * h).text(p), - v - .filter(Z) - .attr('fill', 'none') - .attr('font-size', 10) - .attr('font-family', 'sans-serif') - .attr( - 'text-anchor', - 2 === e ? 'start' : 4 === e ? 'end' : 'middle' - ), - v.each(function() { - this.__axis = y; - }); } - return ( - (f.scale = function(e) { - return arguments.length ? ((t = e), f) : t; - }), - (f.ticks = function() { - return (n = X.call(arguments)), f; - }), - (f.tickArguments = function(e) { - return arguments.length - ? ((n = null == e ? [] : X.call(e)), f) - : n.slice(); - }), - (f.tickValues = function(e) { - return arguments.length - ? ((r = null == e ? null : X.call(e)), f) - : r && r.slice(); - }), - (f.tickFormat = function(e) { - return arguments.length ? ((o = e), f) : o; - }), - (f.tickSize = function(e) { - return arguments.length ? ((i = a = +e), f) : i; - }), - (f.tickSizeInner = function(e) { - return arguments.length ? ((i = +e), f) : i; - }), - (f.tickSizeOuter = function(e) { - return arguments.length ? ((a = +e), f) : a; - }), - (f.tickPadding = function(e) { - return arguments.length ? ((s = +e), f) : s; - }), - f - ); - } - function te(e) { - return ee(1, e); - } - function ne(e) { - return ee(2, e); - } - function re(e) { - return ee(3, e); - } - function oe(e) { - return ee(4, e); - } - var ie = { value: function() {} }; - function ae() { - for (var e, t = 0, n = arguments.length, r = {}; t < n; ++t) { - if (!(e = arguments[t] + '') || e in r || /[\s.]/.test(e)) - throw new Error('illegal type: ' + e); - r[e] = []; + e.defineLocale('bs', { + months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split( + '_' + ), + monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( + '_' + ), + weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), + weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm' + }, + calendar: { + sameDay: '[danas u] LT', + nextDay: '[sutra u] LT', + nextWeek: function() { + switch (this.day()) { + case 0: + return '[u] [nedjelju] [u] LT'; + case 3: + return '[u] [srijedu] [u] LT'; + case 6: + return '[u] [subotu] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[u] dddd [u] LT'; + } + }, + lastDay: '[jučer u] LT', + lastWeek: function() { + switch (this.day()) { + case 0: + case 3: + return '[prošlu] dddd [u] LT'; + case 6: + return '[prošle] [subote] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[prošli] dddd [u] LT'; + } + }, + sameElse: 'L' + }, + relativeTime: { + future: 'za %s', + past: 'prije %s', + s: 'par sekundi', + ss: t, + m: t, + mm: t, + h: t, + hh: t, + d: 'dan', + dd: t, + M: 'mjesec', + MM: t, + y: 'godinu', + yy: t + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 7 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('ca', { + months: { + standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split( + '_' + ), + format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split( + '_' + ), + isFormat: /D[oD]?(\s)+MMMM/ + }, + monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split( + '_' + ), + weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'), + weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM [de] YYYY', + ll: 'D MMM YYYY', + LLL: 'D MMMM [de] YYYY [a les] H:mm', + lll: 'D MMM YYYY, H:mm', + LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm', + llll: 'ddd D MMM YYYY, H:mm' + }, + calendar: { + sameDay: function() { + return '[avui a ' + (1 !== this.hours() ? 'les' : 'la') + '] LT'; + }, + nextDay: function() { + return '[demà a ' + (1 !== this.hours() ? 'les' : 'la') + '] LT'; + }, + nextWeek: function() { + return 'dddd [a ' + (1 !== this.hours() ? 'les' : 'la') + '] LT'; + }, + lastDay: function() { + return '[ahir a ' + (1 !== this.hours() ? 'les' : 'la') + '] LT'; + }, + lastWeek: function() { + return ( + '[el] dddd [passat a ' + + (1 !== this.hours() ? 'les' : 'la') + + '] LT' + ); + }, + sameElse: 'L' + }, + relativeTime: { + future: "d'aquí %s", + past: 'fa %s', + s: 'uns segons', + ss: '%d segons', + m: 'un minut', + mm: '%d minuts', + h: 'una hora', + hh: '%d hores', + d: 'un dia', + dd: '%d dies', + M: 'un mes', + MM: '%d mesos', + y: 'un any', + yy: '%d anys' + }, + dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/, + ordinal: function(e, t) { + var n = + 1 === e + ? 'r' + : 2 === e + ? 'n' + : 3 === e + ? 'r' + : 4 === e + ? 't' + : 'è'; + return ('w' !== t && 'W' !== t) || (n = 'a'), e + n; + }, + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split( + '_' + ), + n = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'), + r = [ + /^led/i, + /^úno/i, + /^bře/i, + /^dub/i, + /^kvě/i, + /^(čvn|červen$|června)/i, + /^(čvc|červenec|července)/i, + /^srp/i, + /^zář/i, + /^říj/i, + /^lis/i, + /^pro/i + ], + o = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i; + function i(e) { + return e > 1 && e < 5 && 1 != ~~(e / 10); } - return new se(r); - } - function se(e) { - this._ = e; - } - function ce(e, t) { - return e - .trim() - .split(/^|\s+/) - .map(function(e) { - var n = '', - r = e.indexOf('.'); - if ( - (r >= 0 && ((n = e.slice(r + 1)), (e = e.slice(0, r))), - e && !t.hasOwnProperty(e)) - ) - throw new Error('unknown type: ' + e); - return { type: e, name: n }; - }); - } - function ue(e, t) { - for (var n, r = 0, o = e.length; r < o; ++r) - if ((n = e[r]).name === t) return n.value; - } - function le(e, t, n) { - for (var r = 0, o = e.length; r < o; ++r) - if (e[r].name === t) { - (e[r] = ie), (e = e.slice(0, r).concat(e.slice(r + 1))); - break; - } - return null != n && e.push({ name: t, value: n }), e; - } - se.prototype = ae.prototype = { - constructor: se, - on: function(e, t) { - var n, - r = this._, - o = ce(e + '', r), - i = -1, - a = o.length; - if (!(arguments.length < 2)) { - if (null != t && 'function' != typeof t) - throw new Error('invalid callback: ' + t); - for (; ++i < a; ) - if ((n = (e = o[i]).type)) r[n] = le(r[n], e.name, t); - else if (null == t) for (n in r) r[n] = le(r[n], e.name, null); - return this; + function a(e, t, n, r) { + var o = e + ' '; + switch (n) { + case 's': + return t || r ? 'pár sekund' : 'pár sekundami'; + case 'ss': + return t || r + ? o + (i(e) ? 'sekundy' : 'sekund') + : o + 'sekundami'; + case 'm': + return t ? 'minuta' : r ? 'minutu' : 'minutou'; + case 'mm': + return t || r ? o + (i(e) ? 'minuty' : 'minut') : o + 'minutami'; + case 'h': + return t ? 'hodina' : r ? 'hodinu' : 'hodinou'; + case 'hh': + return t || r ? o + (i(e) ? 'hodiny' : 'hodin') : o + 'hodinami'; + case 'd': + return t || r ? 'den' : 'dnem'; + case 'dd': + return t || r ? o + (i(e) ? 'dny' : 'dní') : o + 'dny'; + case 'M': + return t || r ? 'měsíc' : 'měsícem'; + case 'MM': + return t || r ? o + (i(e) ? 'měsíce' : 'měsíců') : o + 'měsíci'; + case 'y': + return t || r ? 'rok' : 'rokem'; + case 'yy': + return t || r ? o + (i(e) ? 'roky' : 'let') : o + 'lety'; } - for (; ++i < a; ) - if ((n = (e = o[i]).type) && (n = ue(r[n], e.name))) return n; - }, - copy: function() { - var e = {}, - t = this._; - for (var n in t) e[n] = t[n].slice(); - return new se(e); - }, - call: function(e, t) { - if ((n = arguments.length - 2) > 0) - for (var n, r, o = new Array(n), i = 0; i < n; ++i) - o[i] = arguments[i + 2]; - if (!this._.hasOwnProperty(e)) throw new Error('unknown type: ' + e); - for (i = 0, n = (r = this._[e]).length; i < n; ++i) - r[i].value.apply(t, o); - }, - apply: function(e, t, n) { - if (!this._.hasOwnProperty(e)) throw new Error('unknown type: ' + e); - for (var r = this._[e], o = 0, i = r.length; o < i; ++o) - r[o].value.apply(t, n); } - }; - var fe = ae; - function de() {} - var pe = function(e) { - return null == e - ? de - : function() { - return this.querySelector(e); - }; - }; - function he() { - return []; - } - var ge = function(e) { - return null == e - ? he - : function() { - return this.querySelectorAll(e); - }; - }, - me = function(e) { - return function() { - return this.matches(e); + e.defineLocale('cs', { + months: t, + monthsShort: n, + monthsRegex: o, + monthsShortRegex: o, + monthsStrictRegex: /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i, + monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i, + monthsParse: r, + longMonthsParse: r, + shortMonthsParse: r, + weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split( + '_' + ), + weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'), + weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd D. MMMM YYYY H:mm', + l: 'D. M. YYYY' + }, + calendar: { + sameDay: '[dnes v] LT', + nextDay: '[zítra v] LT', + nextWeek: function() { + switch (this.day()) { + case 0: + return '[v neděli v] LT'; + case 1: + case 2: + return '[v] dddd [v] LT'; + case 3: + return '[ve středu v] LT'; + case 4: + return '[ve čtvrtek v] LT'; + case 5: + return '[v pátek v] LT'; + case 6: + return '[v sobotu v] LT'; + } + }, + lastDay: '[včera v] LT', + lastWeek: function() { + switch (this.day()) { + case 0: + return '[minulou neděli v] LT'; + case 1: + case 2: + return '[minulé] dddd [v] LT'; + case 3: + return '[minulou středu v] LT'; + case 4: + case 5: + return '[minulý] dddd [v] LT'; + case 6: + return '[minulou sobotu v] LT'; + } + }, + sameElse: 'L' + }, + relativeTime: { + future: 'za %s', + past: 'před %s', + s: a, + ss: a, + m: a, + mm: a, + h: a, + hh: a, + d: a, + dd: a, + M: a, + MM: a, + y: a, + yy: a + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('cv', { + months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split( + '_' + ), + monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split( + '_' + ), + weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split( + '_' + ), + weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'), + weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD-MM-YYYY', + LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]', + LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm', + LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm' + }, + calendar: { + sameDay: '[Паян] LT [сехетре]', + nextDay: '[Ыран] LT [сехетре]', + lastDay: '[Ӗнер] LT [сехетре]', + nextWeek: '[Ҫитес] dddd LT [сехетре]', + lastWeek: '[Иртнӗ] dddd LT [сехетре]', + sameElse: 'L' + }, + relativeTime: { + future: function(e) { + return ( + e + + (/сехет$/i.exec(e) ? 'рен' : /ҫул$/i.exec(e) ? 'тан' : 'ран') + ); + }, + past: '%s каялла', + s: 'пӗр-ик ҫеккунт', + ss: '%d ҫеккунт', + m: 'пӗр минут', + mm: '%d минут', + h: 'пӗр сехет', + hh: '%d сехет', + d: 'пӗр кун', + dd: '%d кун', + M: 'пӗр уйӑх', + MM: '%d уйӑх', + y: 'пӗр ҫул', + yy: '%d ҫул' + }, + dayOfMonthOrdinalParse: /\d{1,2}-мӗш/, + ordinal: '%d-мӗш', + week: { dow: 1, doy: 7 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('cy', { + months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split( + '_' + ), + monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split( + '_' + ), + weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split( + '_' + ), + weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'), + weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[Heddiw am] LT', + nextDay: '[Yfory am] LT', + nextWeek: 'dddd [am] LT', + lastDay: '[Ddoe am] LT', + lastWeek: 'dddd [diwethaf am] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'mewn %s', + past: '%s yn ôl', + s: 'ychydig eiliadau', + ss: '%d eiliad', + m: 'munud', + mm: '%d munud', + h: 'awr', + hh: '%d awr', + d: 'diwrnod', + dd: '%d diwrnod', + M: 'mis', + MM: '%d mis', + y: 'blwyddyn', + yy: '%d flynedd' + }, + dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/, + ordinal: function(e) { + var t = ''; + return ( + e > 20 + ? (t = + 40 === e || 50 === e || 60 === e || 80 === e || 100 === e + ? 'fed' + : 'ain') + : e > 0 && + (t = [ + '', + 'af', + 'il', + 'ydd', + 'ydd', + 'ed', + 'ed', + 'ed', + 'fed', + 'fed', + 'fed', + 'eg', + 'fed', + 'eg', + 'eg', + 'fed', + 'eg', + 'eg', + 'fed', + 'eg', + 'fed' + ][e]), + e + t + ); + }, + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('da', { + months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split( + '_' + ), + weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split( + '_' + ), + weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'), + weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY HH:mm', + LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm' + }, + calendar: { + sameDay: '[i dag kl.] LT', + nextDay: '[i morgen kl.] LT', + nextWeek: 'på dddd [kl.] LT', + lastDay: '[i går kl.] LT', + lastWeek: '[i] dddd[s kl.] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'om %s', + past: '%s siden', + s: 'få sekunder', + ss: '%d sekunder', + m: 'et minut', + mm: '%d minutter', + h: 'en time', + hh: '%d timer', + d: 'en dag', + dd: '%d dage', + M: 'en måned', + MM: '%d måneder', + y: 'et år', + yy: '%d år' + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + function t(e, t, n, r) { + var o = { + m: ['eine Minute', 'einer Minute'], + h: ['eine Stunde', 'einer Stunde'], + d: ['ein Tag', 'einem Tag'], + dd: [e + ' Tage', e + ' Tagen'], + M: ['ein Monat', 'einem Monat'], + MM: [e + ' Monate', e + ' Monaten'], + y: ['ein Jahr', 'einem Jahr'], + yy: [e + ' Jahre', e + ' Jahren'] + }; + return t ? o[n][0] : o[n][1]; + } + e.defineLocale('de', { + months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( + '_' + ), + monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( + '_' + ), + weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), + weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY HH:mm', + LLLL: 'dddd, D. MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[heute um] LT [Uhr]', + sameElse: 'L', + nextDay: '[morgen um] LT [Uhr]', + nextWeek: 'dddd [um] LT [Uhr]', + lastDay: '[gestern um] LT [Uhr]', + lastWeek: '[letzten] dddd [um] LT [Uhr]' + }, + relativeTime: { + future: 'in %s', + past: 'vor %s', + s: 'ein paar Sekunden', + ss: '%d Sekunden', + m: t, + mm: '%d Minuten', + h: t, + hh: '%d Stunden', + d: t, + dd: t, + M: t, + MM: t, + y: t, + yy: t + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + function t(e, t, n, r) { + var o = { + m: ['eine Minute', 'einer Minute'], + h: ['eine Stunde', 'einer Stunde'], + d: ['ein Tag', 'einem Tag'], + dd: [e + ' Tage', e + ' Tagen'], + M: ['ein Monat', 'einem Monat'], + MM: [e + ' Monate', e + ' Monaten'], + y: ['ein Jahr', 'einem Jahr'], + yy: [e + ' Jahre', e + ' Jahren'] }; - }, - be = function(e) { - return new Array(e.length); - }; - function ye(e, t) { - (this.ownerDocument = e.ownerDocument), - (this.namespaceURI = e.namespaceURI), - (this._next = null), - (this._parent = e), - (this.__data__ = t); - } - ye.prototype = { - constructor: ye, - appendChild: function(e) { - return this._parent.insertBefore(e, this._next); - }, - insertBefore: function(e, t) { - return this._parent.insertBefore(e, t); - }, - querySelector: function(e) { - return this._parent.querySelector(e); - }, - querySelectorAll: function(e) { - return this._parent.querySelectorAll(e); + return t ? o[n][0] : o[n][1]; } - }; - function ve(e, t, n, r, o, i) { - for (var a, s = 0, c = t.length, u = i.length; s < u; ++s) - (a = t[s]) - ? ((a.__data__ = i[s]), (r[s] = a)) - : (n[s] = new ye(e, i[s])); - for (; s < c; ++s) (a = t[s]) && (o[s] = a); - } - function _e(e, t, n, r, o, i, a) { - var s, - c, - u, - l = {}, - f = t.length, - d = i.length, - p = new Array(f); - for (s = 0; s < f; ++s) - (c = t[s]) && - ((p[s] = u = '$' + a.call(c, c.__data__, s, t)), - u in l ? (o[s] = c) : (l[u] = c)); - for (s = 0; s < d; ++s) - (c = l[(u = '$' + a.call(e, i[s], s, i))]) - ? ((r[s] = c), (c.__data__ = i[s]), (l[u] = null)) - : (n[s] = new ye(e, i[s])); - for (s = 0; s < f; ++s) (c = t[s]) && l[p[s]] === c && (o[s] = c); - } - function xe(e, t) { - return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN; - } - var we = 'http://www.w3.org/1999/xhtml', - Me = { - svg: 'http://www.w3.org/2000/svg', - xhtml: we, - xlink: 'http://www.w3.org/1999/xlink', - xml: 'http://www.w3.org/XML/1998/namespace', - xmlns: 'http://www.w3.org/2000/xmlns/' - }, - ke = function(e) { - var t = (e += ''), - n = t.indexOf(':'); - return ( - n >= 0 && 'xmlns' !== (t = e.slice(0, n)) && (e = e.slice(n + 1)), - Me.hasOwnProperty(t) ? { space: Me[t], local: e } : e - ); - }; - function Se(e) { - return function() { - this.removeAttribute(e); - }; - } - function Ae(e) { - return function() { - this.removeAttributeNS(e.space, e.local); - }; - } - function Oe(e, t) { - return function() { - this.setAttribute(e, t); - }; - } - function Ee(e, t) { - return function() { - this.setAttributeNS(e.space, e.local, t); - }; - } - function Te(e, t) { - return function() { - var n = t.apply(this, arguments); - null == n ? this.removeAttribute(e) : this.setAttribute(e, n); - }; - } - function Ce(e, t) { - return function() { - var n = t.apply(this, arguments); - null == n - ? this.removeAttributeNS(e.space, e.local) - : this.setAttributeNS(e.space, e.local, n); - }; - } - var Le = function(e) { - return ( - (e.ownerDocument && e.ownerDocument.defaultView) || - (e.document && e) || - e.defaultView - ); - }; - function Pe(e) { - return function() { - this.style.removeProperty(e); - }; - } - function De(e, t, n) { - return function() { - this.style.setProperty(e, t, n); - }; - } - function ze(e, t, n) { - return function() { - var r = t.apply(this, arguments); - null == r - ? this.style.removeProperty(e) - : this.style.setProperty(e, r, n); - }; - } - function Ne(e, t) { - return ( - e.style.getPropertyValue(t) || - Le(e) - .getComputedStyle(e, null) - .getPropertyValue(t) - ); - } - function je(e) { - return function() { - delete this[e]; - }; - } - function Re(e, t) { - return function() { - this[e] = t; - }; - } - function Ie(e, t) { - return function() { - var n = t.apply(this, arguments); - null == n ? delete this[e] : (this[e] = n); - }; - } - function Fe(e) { - return e.trim().split(/^|\s+/); - } - function qe(e) { - return e.classList || new Be(e); - } - function Be(e) { - (this._node = e), (this._names = Fe(e.getAttribute('class') || '')); - } - function He(e, t) { - for (var n = qe(e), r = -1, o = t.length; ++r < o; ) n.add(t[r]); - } - function Ye(e, t) { - for (var n = qe(e), r = -1, o = t.length; ++r < o; ) n.remove(t[r]); - } - function We(e) { - return function() { - He(this, e); - }; - } - function Ve(e) { - return function() { - Ye(this, e); - }; - } - function Ue(e, t) { - return function() { - (t.apply(this, arguments) ? He : Ye)(this, e); - }; - } - Be.prototype = { - add: function(e) { - this._names.indexOf(e) < 0 && - (this._names.push(e), - this._node.setAttribute('class', this._names.join(' '))); - }, - remove: function(e) { - var t = this._names.indexOf(e); - t >= 0 && - (this._names.splice(t, 1), - this._node.setAttribute('class', this._names.join(' '))); - }, - contains: function(e) { - return this._names.indexOf(e) >= 0; + e.defineLocale('de-at', { + months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( + '_' + ), + monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( + '_' + ), + weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), + weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY HH:mm', + LLLL: 'dddd, D. MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[heute um] LT [Uhr]', + sameElse: 'L', + nextDay: '[morgen um] LT [Uhr]', + nextWeek: 'dddd [um] LT [Uhr]', + lastDay: '[gestern um] LT [Uhr]', + lastWeek: '[letzten] dddd [um] LT [Uhr]' + }, + relativeTime: { + future: 'in %s', + past: 'vor %s', + s: 'ein paar Sekunden', + ss: '%d Sekunden', + m: t, + mm: '%d Minuten', + h: t, + hh: '%d Stunden', + d: t, + dd: t, + M: t, + MM: t, + y: t, + yy: t + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + function t(e, t, n, r) { + var o = { + m: ['eine Minute', 'einer Minute'], + h: ['eine Stunde', 'einer Stunde'], + d: ['ein Tag', 'einem Tag'], + dd: [e + ' Tage', e + ' Tagen'], + M: ['ein Monat', 'einem Monat'], + MM: [e + ' Monate', e + ' Monaten'], + y: ['ein Jahr', 'einem Jahr'], + yy: [e + ' Jahre', e + ' Jahren'] + }; + return t ? o[n][0] : o[n][1]; } - }; - function Xe() { - this.textContent = ''; - } - function Ge(e) { - return function() { - this.textContent = e; - }; - } - function Ke(e) { - return function() { - var t = e.apply(this, arguments); - this.textContent = null == t ? '' : t; - }; - } - function $e() { - this.innerHTML = ''; - } - function Qe(e) { - return function() { - this.innerHTML = e; - }; - } - function Je(e) { - return function() { - var t = e.apply(this, arguments); - this.innerHTML = null == t ? '' : t; - }; - } - function Ze() { - this.nextSibling && this.parentNode.appendChild(this); - } - function et() { - this.previousSibling && - this.parentNode.insertBefore(this, this.parentNode.firstChild); - } - function tt(e) { - return function() { - var t = this.ownerDocument, - n = this.namespaceURI; - return n === we && t.documentElement.namespaceURI === we - ? t.createElement(e) - : t.createElementNS(n, e); - }; - } - function nt(e) { - return function() { - return this.ownerDocument.createElementNS(e.space, e.local); - }; - } - var rt = function(e) { - var t = ke(e); - return (t.local ? nt : tt)(t); - }; - function ot() { - return null; - } - function it() { - var e = this.parentNode; - e && e.removeChild(this); - } - function at() { - var e = this.cloneNode(!1), - t = this.parentNode; - return t ? t.insertBefore(e, this.nextSibling) : e; - } - function st() { - var e = this.cloneNode(!0), - t = this.parentNode; - return t ? t.insertBefore(e, this.nextSibling) : e; - } - var ct = {}, - ut = null; - 'undefined' != typeof document && - ('onmouseenter' in document.documentElement || - (ct = { mouseenter: 'mouseover', mouseleave: 'mouseout' })); - function lt(e, t, n) { - return ( - (e = ft(e, t, n)), - function(t) { - var n = t.relatedTarget; - (n && (n === this || 8 & n.compareDocumentPosition(this))) || - e.call(this, t); - } - ); - } - function ft(e, t, n) { - return function(r) { - var o = ut; - ut = r; - try { - e.call(this, this.__data__, t, n); - } finally { - ut = o; + e.defineLocale('de-ch', { + months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( + '_' + ), + monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( + '_' + ), + weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), + weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY HH:mm', + LLLL: 'dddd, D. MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[heute um] LT [Uhr]', + sameElse: 'L', + nextDay: '[morgen um] LT [Uhr]', + nextWeek: 'dddd [um] LT [Uhr]', + lastDay: '[gestern um] LT [Uhr]', + lastWeek: '[letzten] dddd [um] LT [Uhr]' + }, + relativeTime: { + future: 'in %s', + past: 'vor %s', + s: 'ein paar Sekunden', + ss: '%d Sekunden', + m: t, + mm: '%d Minuten', + h: t, + hh: '%d Stunden', + d: t, + dd: t, + M: t, + MM: t, + y: t, + yy: t + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = [ + 'ޖެނުއަރީ', + 'ފެބްރުއަރީ', + 'މާރިޗު', + 'އޭޕްރީލު', + 'މޭ', + 'ޖޫން', + 'ޖުލައި', + 'އޯގަސްޓު', + 'ސެޕްޓެމްބަރު', + 'އޮކްޓޯބަރު', + 'ނޮވެމްބަރު', + 'ޑިސެމްބަރު' + ], + n = [ + 'އާދިއްތަ', + 'ހޯމަ', + 'އަންގާރަ', + 'ބުދަ', + 'ބުރާސްފަތި', + 'ހުކުރު', + 'ހޮނިހިރު' + ]; + e.defineLocale('dv', { + months: t, + monthsShort: t, + weekdays: n, + weekdaysShort: n, + weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'D/M/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm' + }, + meridiemParse: /މކ|މފ/, + isPM: function(e) { + return 'މފ' === e; + }, + meridiem: function(e, t, n) { + return e < 12 ? 'މކ' : 'މފ'; + }, + calendar: { + sameDay: '[މިއަދު] LT', + nextDay: '[މާދަމާ] LT', + nextWeek: 'dddd LT', + lastDay: '[އިއްޔެ] LT', + lastWeek: '[ފާއިތުވި] dddd LT', + sameElse: 'L' + }, + relativeTime: { + future: 'ތެރޭގައި %s', + past: 'ކުރިން %s', + s: 'ސިކުންތުކޮޅެއް', + ss: 'd% ސިކުންތު', + m: 'މިނިޓެއް', + mm: 'މިނިޓު %d', + h: 'ގަޑިއިރެއް', + hh: 'ގަޑިއިރު %d', + d: 'ދުވަހެއް', + dd: 'ދުވަސް %d', + M: 'މަހެއް', + MM: 'މަސް %d', + y: 'އަހަރެއް', + yy: 'އަހަރު %d' + }, + preparse: function(e) { + return e.replace(/،/g, ','); + }, + postformat: function(e) { + return e.replace(/,/g, '،'); + }, + week: { dow: 7, doy: 12 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('el', { + monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split( + '_' + ), + monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split( + '_' + ), + months: function(e, t) { + return e + ? 'string' == typeof t && + /D/.test(t.substring(0, t.indexOf('MMMM'))) + ? this._monthsGenitiveEl[e.month()] + : this._monthsNominativeEl[e.month()] + : this._monthsNominativeEl; + }, + monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split( + '_' + ), + weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split( + '_' + ), + weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'), + weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'), + meridiem: function(e, t, n) { + return e > 11 ? (n ? 'μμ' : 'ΜΜ') : n ? 'πμ' : 'ΠΜ'; + }, + isPM: function(e) { + return 'μ' === (e + '').toLowerCase()[0]; + }, + meridiemParse: /[ΠΜ]\.?Μ?\.?/i, + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A' + }, + calendarEl: { + sameDay: '[Σήμερα {}] LT', + nextDay: '[Αύριο {}] LT', + nextWeek: 'dddd [{}] LT', + lastDay: '[Χθες {}] LT', + lastWeek: function() { + switch (this.day()) { + case 6: + return '[το προηγούμενο] dddd [{}] LT'; + default: + return '[την προηγούμενη] dddd [{}] LT'; + } + }, + sameElse: 'L' + }, + calendar: function(e, t) { + var n, + r = this._calendarEl[e], + o = t && t.hours(); + return ( + ((n = r) instanceof Function || + '[object Function]' === Object.prototype.toString.call(n)) && + (r = r.apply(t)), + r.replace('{}', o % 12 == 1 ? 'στη' : 'στις') + ); + }, + relativeTime: { + future: 'σε %s', + past: '%s πριν', + s: 'λίγα δευτερόλεπτα', + ss: '%d δευτερόλεπτα', + m: 'ένα λεπτό', + mm: '%d λεπτά', + h: 'μία ώρα', + hh: '%d ώρες', + d: 'μία μέρα', + dd: '%d μέρες', + M: 'ένας μήνας', + MM: '%d μήνες', + y: 'ένας χρόνος', + yy: '%d χρόνια' + }, + dayOfMonthOrdinalParse: /\d{1,2}η/, + ordinal: '%dη', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('en-SG', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( + '_' + ), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years' + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function(e) { + var t = e % 10; + return ( + e + + (1 == ~~((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') + ); + }, + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('en-au', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( + '_' + ), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A' + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years' + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function(e) { + var t = e % 10; + return ( + e + + (1 == ~~((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') + ); + }, + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('en-ca', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( + '_' + ), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'YYYY-MM-DD', + LL: 'MMMM D, YYYY', + LLL: 'MMMM D, YYYY h:mm A', + LLLL: 'dddd, MMMM D, YYYY h:mm A' + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years' + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function(e) { + var t = e % 10; + return ( + e + + (1 == ~~((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') + ); } - }; - } - function dt(e) { - return e - .trim() - .split(/^|\s+/) - .map(function(e) { - var t = '', - n = e.indexOf('.'); + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('en-gb', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( + '_' + ), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years' + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function(e) { + var t = e % 10; + return ( + e + + (1 == ~~((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') + ); + }, + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('en-ie', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( + '_' + ), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years' + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function(e) { + var t = e % 10; + return ( + e + + (1 == ~~((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') + ); + }, + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('en-il', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( + '_' + ), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years' + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function(e) { + var t = e % 10; return ( - n >= 0 && ((t = e.slice(n + 1)), (e = e.slice(0, n))), - { type: e, name: t } + e + + (1 == ~~((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') ); - }); - } - function pt(e) { - return function() { - var t = this.__on; - if (t) { - for (var n, r = 0, o = -1, i = t.length; r < i; ++r) - (n = t[r]), - (e.type && n.type !== e.type) || n.name !== e.name - ? (t[++o] = n) - : this.removeEventListener(n.type, n.listener, n.capture); - ++o ? (t.length = o) : delete this.__on; } - }; - } - function ht(e, t, n) { - var r = ct.hasOwnProperty(e.type) ? lt : ft; - return function(o, i, a) { - var s, - c = this.__on, - u = r(t, i, a); - if (c) - for (var l = 0, f = c.length; l < f; ++l) - if ((s = c[l]).type === e.type && s.name === e.name) - return ( - this.removeEventListener(s.type, s.listener, s.capture), - this.addEventListener( - s.type, - (s.listener = u), - (s.capture = n) - ), - void (s.value = t) - ); - this.addEventListener(e.type, u, n), - (s = { - type: e.type, - name: e.name, - value: t, - listener: u, - capture: n - }), - c ? c.push(s) : (this.__on = [s]); - }; - } - function gt(e, t, n, r) { - var o = ut; - (e.sourceEvent = ut), (ut = e); - try { - return t.apply(n, r); - } finally { - ut = o; - } - } - function mt(e, t, n) { - var r = Le(e), - o = r.CustomEvent; - 'function' == typeof o - ? (o = new o(t, n)) - : ((o = r.document.createEvent('Event')), - n - ? (o.initEvent(t, n.bubbles, n.cancelable), (o.detail = n.detail)) - : o.initEvent(t, !1, !1)), - e.dispatchEvent(o); - } - function bt(e, t) { - return function() { - return mt(this, e, t); - }; - } - function yt(e, t) { - return function() { - return mt(this, e, t.apply(this, arguments)); - }; - } - var vt = [null]; - function _t(e, t) { - (this._groups = e), (this._parents = t); - } - function xt() { - return new _t([[document.documentElement]], vt); - } - _t.prototype = xt.prototype = { - constructor: _t, - select: function(e) { - 'function' != typeof e && (e = pe(e)); - for ( - var t = this._groups, n = t.length, r = new Array(n), o = 0; - o < n; - ++o - ) - for ( - var i, - a, - s = t[o], - c = s.length, - u = (r[o] = new Array(c)), - l = 0; - l < c; - ++l - ) - (i = s[l]) && - (a = e.call(i, i.__data__, l, s)) && - ('__data__' in i && (a.__data__ = i.__data__), (u[l] = a)); - return new _t(r, this._parents); - }, - selectAll: function(e) { - 'function' != typeof e && (e = ge(e)); - for ( - var t = this._groups, n = t.length, r = [], o = [], i = 0; - i < n; - ++i - ) - for (var a, s = t[i], c = s.length, u = 0; u < c; ++u) - (a = s[u]) && (r.push(e.call(a, a.__data__, u, s)), o.push(a)); - return new _t(r, o); - }, - filter: function(e) { - 'function' != typeof e && (e = me(e)); - for ( - var t = this._groups, n = t.length, r = new Array(n), o = 0; - o < n; - ++o - ) - for ( - var i, a = t[o], s = a.length, c = (r[o] = []), u = 0; - u < s; - ++u - ) - (i = a[u]) && e.call(i, i.__data__, u, a) && c.push(i); - return new _t(r, this._parents); - }, - data: function(e, t) { - if (!e) + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('en-nz', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( + '_' + ), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A' + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years' + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function(e) { + var t = e % 10; return ( - (h = new Array(this.size())), - (l = -1), - this.each(function(e) { - h[++l] = e; - }), - h - ); - var n, - r = t ? _e : ve, - o = this._parents, - i = this._groups; - 'function' != typeof e && - ((n = e), - (e = function() { - return n; - })); - for ( - var a = i.length, - s = new Array(a), - c = new Array(a), - u = new Array(a), - l = 0; - l < a; - ++l - ) { - var f = o[l], - d = i[l], - p = d.length, - h = e.call(f, f && f.__data__, l, o), - g = h.length, - m = (c[l] = new Array(g)), - b = (s[l] = new Array(g)); - r(f, d, m, b, (u[l] = new Array(p)), h, t); - for (var y, v, _ = 0, x = 0; _ < g; ++_) - if ((y = m[_])) { - for (_ >= x && (x = _ + 1); !(v = b[x]) && ++x < g; ); - y._next = v || null; - } - } - return ((s = new _t(s, o))._enter = c), (s._exit = u), s; - }, - enter: function() { - return new _t(this._enter || this._groups.map(be), this._parents); - }, - exit: function() { - return new _t(this._exit || this._groups.map(be), this._parents); - }, - join: function(e, t, n) { - var r = this.enter(), - o = this, - i = this.exit(); - return ( - (r = 'function' == typeof e ? e(r) : r.append(e + '')), - null != t && (o = t(o)), - null == n ? i.remove() : n(i), - r && o ? r.merge(o).order() : o - ); - }, - merge: function(e) { - for ( - var t = this._groups, - n = e._groups, - r = t.length, - o = n.length, - i = Math.min(r, o), - a = new Array(r), - s = 0; - s < i; - ++s - ) - for ( - var c, - u = t[s], - l = n[s], - f = u.length, - d = (a[s] = new Array(f)), - p = 0; - p < f; - ++p - ) - (c = u[p] || l[p]) && (d[p] = c); - for (; s < r; ++s) a[s] = t[s]; - return new _t(a, this._parents); - }, - order: function() { - for (var e = this._groups, t = -1, n = e.length; ++t < n; ) - for (var r, o = e[t], i = o.length - 1, a = o[i]; --i >= 0; ) - (r = o[i]) && - (a && - 4 ^ r.compareDocumentPosition(a) && - a.parentNode.insertBefore(r, a), - (a = r)); - return this; - }, - sort: function(e) { - function t(t, n) { - return t && n ? e(t.__data__, n.__data__) : !t - !n; - } - e || (e = xe); - for ( - var n = this._groups, r = n.length, o = new Array(r), i = 0; - i < r; - ++i - ) { - for ( - var a, s = n[i], c = s.length, u = (o[i] = new Array(c)), l = 0; - l < c; - ++l - ) - (a = s[l]) && (u[l] = a); - u.sort(t); - } - return new _t(o, this._parents).order(); - }, - call: function() { - var e = arguments[0]; - return (arguments[0] = this), e.apply(null, arguments), this; - }, - nodes: function() { - var e = new Array(this.size()), - t = -1; - return ( - this.each(function() { - e[++t] = this; - }), - e - ); - }, - node: function() { - for (var e = this._groups, t = 0, n = e.length; t < n; ++t) - for (var r = e[t], o = 0, i = r.length; o < i; ++o) { - var a = r[o]; - if (a) return a; - } - return null; - }, - size: function() { - var e = 0; - return ( - this.each(function() { - ++e; - }), - e - ); - }, - empty: function() { - return !this.node(); - }, - each: function(e) { - for (var t = this._groups, n = 0, r = t.length; n < r; ++n) - for (var o, i = t[n], a = 0, s = i.length; a < s; ++a) - (o = i[a]) && e.call(o, o.__data__, a, i); - return this; - }, - attr: function(e, t) { - var n = ke(e); - if (arguments.length < 2) { - var r = this.node(); - return n.local - ? r.getAttributeNS(n.space, n.local) - : r.getAttribute(n); - } - return this.each( - (null == t - ? n.local - ? Ae - : Se - : 'function' == typeof t - ? n.local - ? Ce - : Te - : n.local - ? Ee - : Oe)(n, t) - ); - }, - style: function(e, t, n) { - return arguments.length > 1 - ? this.each( - (null == t ? Pe : 'function' == typeof t ? ze : De)( - e, - t, - null == n ? '' : n - ) - ) - : Ne(this.node(), e); - }, - property: function(e, t) { - return arguments.length > 1 - ? this.each( - (null == t ? je : 'function' == typeof t ? Ie : Re)(e, t) - ) - : this.node()[e]; - }, - classed: function(e, t) { - var n = Fe(e + ''); - if (arguments.length < 2) { - for (var r = qe(this.node()), o = -1, i = n.length; ++o < i; ) - if (!r.contains(n[o])) return !1; - return !0; - } - return this.each(('function' == typeof t ? Ue : t ? We : Ve)(n, t)); - }, - text: function(e) { - return arguments.length - ? this.each(null == e ? Xe : ('function' == typeof e ? Ke : Ge)(e)) - : this.node().textContent; - }, - html: function(e) { - return arguments.length - ? this.each(null == e ? $e : ('function' == typeof e ? Je : Qe)(e)) - : this.node().innerHTML; - }, - raise: function() { - return this.each(Ze); - }, - lower: function() { - return this.each(et); - }, - append: function(e) { - var t = 'function' == typeof e ? e : rt(e); - return this.select(function() { - return this.appendChild(t.apply(this, arguments)); - }); - }, - insert: function(e, t) { - var n = 'function' == typeof e ? e : rt(e), - r = null == t ? ot : 'function' == typeof t ? t : pe(t); - return this.select(function() { - return this.insertBefore( - n.apply(this, arguments), - r.apply(this, arguments) || null + e + + (1 == ~~((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') ); - }); - }, - remove: function() { - return this.each(it); - }, - clone: function(e) { - return this.select(e ? st : at); - }, - datum: function(e) { - return arguments.length - ? this.property('__data__', e) - : this.node().__data__; - }, - on: function(e, t, n) { - var r, - o, - i = dt(e + ''), - a = i.length; - if (!(arguments.length < 2)) { - for (s = t ? ht : pt, null == n && (n = !1), r = 0; r < a; ++r) - this.each(s(i[r], t, n)); - return this; - } - var s = this.node().__on; - if (s) - for (var c, u = 0, l = s.length; u < l; ++u) - for (r = 0, c = s[u]; r < a; ++r) - if ((o = i[r]).type === c.type && o.name === c.name) - return c.value; - }, - dispatch: function(e, t) { - return this.each(('function' == typeof t ? yt : bt)(e, t)); - } - }; - var wt = xt, - Mt = function(e) { - return 'string' == typeof e - ? new _t([[document.querySelector(e)]], [document.documentElement]) - : new _t([[e]], vt); - }; - function kt() { - ut.stopImmediatePropagation(); - } - var St = function() { - ut.preventDefault(), ut.stopImmediatePropagation(); - }, - At = function(e) { - var t = e.document.documentElement, - n = Mt(e).on('dragstart.drag', St, !0); - 'onselectstart' in t - ? n.on('selectstart.drag', St, !0) - : ((t.__noselect = t.style.MozUserSelect), - (t.style.MozUserSelect = 'none')); - }; - function Ot(e, t) { - var n = e.document.documentElement, - r = Mt(e).on('dragstart.drag', null); - t && - (r.on('click.drag', St, !0), - setTimeout(function() { - r.on('click.drag', null); - }, 0)), - 'onselectstart' in n - ? r.on('selectstart.drag', null) - : ((n.style.MozUserSelect = n.__noselect), delete n.__noselect); - } - var Et = function(e, t, n) { - (e.prototype = t.prototype = n), (n.constructor = e); - }; - function Tt(e, t) { - var n = Object.create(e.prototype); - for (var r in t) n[r] = t[r]; - return n; - } - function Ct() {} - var Lt = '\\s*([+-]?\\d+)\\s*', - Pt = '\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*', - Dt = '\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*', - zt = /^#([0-9a-f]{3,8})$/, - Nt = new RegExp('^rgb\\(' + [Lt, Lt, Lt] + '\\)$'), - jt = new RegExp('^rgb\\(' + [Dt, Dt, Dt] + '\\)$'), - Rt = new RegExp('^rgba\\(' + [Lt, Lt, Lt, Pt] + '\\)$'), - It = new RegExp('^rgba\\(' + [Dt, Dt, Dt, Pt] + '\\)$'), - Ft = new RegExp('^hsl\\(' + [Pt, Dt, Dt] + '\\)$'), - qt = new RegExp('^hsla\\(' + [Pt, Dt, Dt, Pt] + '\\)$'), - Bt = { - 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 Ht() { - return this.rgb().formatHex(); - } - function Yt() { - return this.rgb().formatRgb(); - } - function Wt(e) { - var t, n; - return ( - (e = (e + '').trim().toLowerCase()), - (t = zt.exec(e)) - ? ((n = t[1].length), - (t = parseInt(t[1], 16)), - 6 === n - ? Vt(t) - : 3 === n - ? new Kt( - ((t >> 8) & 15) | ((t >> 4) & 240), - ((t >> 4) & 15) | (240 & t), - ((15 & t) << 4) | (15 & t), - 1 - ) - : 8 === n - ? Ut( - (t >> 24) & 255, - (t >> 16) & 255, - (t >> 8) & 255, - (255 & t) / 255 - ) - : 4 === n - ? Ut( - ((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 = Nt.exec(e)) - ? new Kt(t[1], t[2], t[3], 1) - : (t = jt.exec(e)) - ? new Kt( - (255 * t[1]) / 100, - (255 * t[2]) / 100, - (255 * t[3]) / 100, - 1 - ) - : (t = Rt.exec(e)) - ? Ut(t[1], t[2], t[3], t[4]) - : (t = It.exec(e)) - ? Ut( - (255 * t[1]) / 100, - (255 * t[2]) / 100, - (255 * t[3]) / 100, - t[4] - ) - : (t = Ft.exec(e)) - ? Zt(t[1], t[2] / 100, t[3] / 100, 1) - : (t = qt.exec(e)) - ? Zt(t[1], t[2] / 100, t[3] / 100, t[4]) - : Bt.hasOwnProperty(e) - ? Vt(Bt[e]) - : 'transparent' === e - ? new Kt(NaN, NaN, NaN, 0) - : null - ); - } - function Vt(e) { - return new Kt((e >> 16) & 255, (e >> 8) & 255, 255 & e, 1); - } - function Ut(e, t, n, r) { - return r <= 0 && (e = t = n = NaN), new Kt(e, t, n, r); - } - function Xt(e) { - return ( - e instanceof Ct || (e = Wt(e)), - e ? new Kt((e = e.rgb()).r, e.g, e.b, e.opacity) : new Kt() - ); - } - function Gt(e, t, n, r) { - return 1 === arguments.length - ? Xt(e) - : new Kt(e, t, n, null == r ? 1 : r); - } - function Kt(e, t, n, r) { - (this.r = +e), (this.g = +t), (this.b = +n), (this.opacity = +r); - } - function $t() { - return '#' + Jt(this.r) + Jt(this.g) + Jt(this.b); - } - function Qt() { - 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 Jt(e) { - return ( - ((e = Math.max(0, Math.min(255, Math.round(e) || 0))) < 16 - ? '0' - : '') + e.toString(16) - ); - } - function Zt(e, t, n, r) { - return ( - r <= 0 - ? (e = t = n = NaN) - : n <= 0 || n >= 1 - ? (e = t = NaN) - : t <= 0 && (e = NaN), - new nn(e, t, n, r) - ); - } - function en(e) { - if (e instanceof nn) return new nn(e.h, e.s, e.l, e.opacity); - if ((e instanceof Ct || (e = Wt(e)), !e)) return new nn(); - if (e instanceof nn) return e; - var t = (e = e.rgb()).r / 255, - n = e.g / 255, - r = e.b / 255, - o = Math.min(t, n, r), - i = Math.max(t, n, r), - a = NaN, - s = i - o, - c = (i + o) / 2; - return ( - s - ? ((a = - t === i - ? (n - r) / s + 6 * (n < r) - : n === i - ? (r - t) / s + 2 - : (t - n) / s + 4), - (s /= c < 0.5 ? i + o : 2 - i - o), - (a *= 60)) - : (s = c > 0 && c < 1 ? 0 : a), - new nn(a, s, c, e.opacity) - ); - } - function tn(e, t, n, r) { - return 1 === arguments.length - ? en(e) - : new nn(e, t, n, null == r ? 1 : r); - } - function nn(e, t, n, r) { - (this.h = +e), (this.s = +t), (this.l = +n), (this.opacity = +r); - } - function rn(e, t, n) { - return ( - 255 * - (e < 60 - ? t + ((n - t) * e) / 60 - : e < 180 - ? n - : e < 240 - ? t + ((n - t) * (240 - e)) / 60 - : t) - ); - } - function on(e, t, n, r, o) { - var i = e * e, - a = i * e; - return ( - ((1 - 3 * e + 3 * i - a) * t + - (4 - 6 * i + 3 * a) * n + - (1 + 3 * e + 3 * i - 3 * a) * r + - a * o) / - 6 - ); - } - Et(Ct, Wt, { - copy: function(e) { - return Object.assign(new this.constructor(), this, e); - }, - displayable: function() { - return this.rgb().displayable(); - }, - hex: Ht, - formatHex: Ht, - formatHsl: function() { - return en(this).formatHsl(); - }, - formatRgb: Yt, - toString: Yt - }), - Et( - Kt, - Gt, - Tt(Ct, { - brighter: function(e) { + }, + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('eo', { + months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split( + '_' + ), + weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split( + '_' + ), + weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'), + weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'D[-a de] MMMM, YYYY', + LLL: 'D[-a de] MMMM, YYYY HH:mm', + LLLL: 'dddd, [la] D[-a de] MMMM, YYYY HH:mm' + }, + meridiemParse: /[ap]\.t\.m/i, + isPM: function(e) { + return 'p' === e.charAt(0).toLowerCase(); + }, + meridiem: function(e, t, n) { + return e > 11 ? (n ? 'p.t.m.' : 'P.T.M.') : n ? 'a.t.m.' : 'A.T.M.'; + }, + calendar: { + sameDay: '[Hodiaŭ je] LT', + nextDay: '[Morgaŭ je] LT', + nextWeek: 'dddd [je] LT', + lastDay: '[Hieraŭ je] LT', + lastWeek: '[pasinta] dddd [je] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'post %s', + past: 'antaŭ %s', + s: 'sekundoj', + ss: '%d sekundoj', + m: 'minuto', + mm: '%d minutoj', + h: 'horo', + hh: '%d horoj', + d: 'tago', + dd: '%d tagoj', + M: 'monato', + MM: '%d monatoj', + y: 'jaro', + yy: '%d jaroj' + }, + dayOfMonthOrdinalParse: /\d{1,2}a/, + ordinal: '%da', + week: { dow: 1, doy: 7 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( + '_' + ), + n = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), + r = [ + /^ene/i, + /^feb/i, + /^mar/i, + /^abr/i, + /^may/i, + /^jun/i, + /^jul/i, + /^ago/i, + /^sep/i, + /^oct/i, + /^nov/i, + /^dic/i + ], + o = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; + e.defineLocale('es', { + months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( + '_' + ), + monthsShort: function(e, r) { + return e ? (/-MMM-/.test(r) ? n[e.month()] : t[e.month()]) : t; + }, + monthsRegex: o, + monthsShortRegex: o, + monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, + monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, + monthsParse: r, + longMonthsParse: r, + shortMonthsParse: r, + weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split( + '_' + ), + weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), + weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY H:mm', + LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm' + }, + calendar: { + sameDay: function() { + return '[hoy a la' + (1 !== this.hours() ? 's' : '') + '] LT'; + }, + nextDay: function() { + return '[mañana a la' + (1 !== this.hours() ? 's' : '') + '] LT'; + }, + nextWeek: function() { + return 'dddd [a la' + (1 !== this.hours() ? 's' : '') + '] LT'; + }, + lastDay: function() { + return '[ayer a la' + (1 !== this.hours() ? 's' : '') + '] LT'; + }, + lastWeek: function() { return ( - (e = null == e ? 1 / 0.7 : Math.pow(1 / 0.7, e)), - new Kt(this.r * e, this.g * e, this.b * e, this.opacity) + '[el] dddd [pasado a la' + + (1 !== this.hours() ? 's' : '') + + '] LT' + ); + }, + sameElse: 'L' + }, + relativeTime: { + future: 'en %s', + past: 'hace %s', + s: 'unos segundos', + ss: '%d segundos', + m: 'un minuto', + mm: '%d minutos', + h: 'una hora', + hh: '%d horas', + d: 'un día', + dd: '%d días', + M: 'un mes', + MM: '%d meses', + y: 'un año', + yy: '%d años' + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( + '_' + ), + n = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), + r = [ + /^ene/i, + /^feb/i, + /^mar/i, + /^abr/i, + /^may/i, + /^jun/i, + /^jul/i, + /^ago/i, + /^sep/i, + /^oct/i, + /^nov/i, + /^dic/i + ], + o = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; + e.defineLocale('es-do', { + months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( + '_' + ), + monthsShort: function(e, r) { + return e ? (/-MMM-/.test(r) ? n[e.month()] : t[e.month()]) : t; + }, + monthsRegex: o, + monthsShortRegex: o, + monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, + monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, + monthsParse: r, + longMonthsParse: r, + shortMonthsParse: r, + weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split( + '_' + ), + weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), + weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY h:mm A', + LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A' + }, + calendar: { + sameDay: function() { + return '[hoy a la' + (1 !== this.hours() ? 's' : '') + '] LT'; + }, + nextDay: function() { + return '[mañana a la' + (1 !== this.hours() ? 's' : '') + '] LT'; + }, + nextWeek: function() { + return 'dddd [a la' + (1 !== this.hours() ? 's' : '') + '] LT'; + }, + lastDay: function() { + return '[ayer a la' + (1 !== this.hours() ? 's' : '') + '] LT'; + }, + lastWeek: function() { + return ( + '[el] dddd [pasado a la' + + (1 !== this.hours() ? 's' : '') + + '] LT' ); }, - darker: function(e) { - return ( - (e = null == e ? 0.7 : Math.pow(0.7, e)), - new Kt(this.r * e, this.g * e, this.b * e, this.opacity) - ); + sameElse: 'L' + }, + relativeTime: { + future: 'en %s', + past: 'hace %s', + s: 'unos segundos', + ss: '%d segundos', + m: 'un minuto', + mm: '%d minutos', + h: 'una hora', + hh: '%d horas', + d: 'un día', + dd: '%d días', + M: 'un mes', + MM: '%d meses', + y: 'un año', + yy: '%d años' + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( + '_' + ), + n = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), + r = [ + /^ene/i, + /^feb/i, + /^mar/i, + /^abr/i, + /^may/i, + /^jun/i, + /^jul/i, + /^ago/i, + /^sep/i, + /^oct/i, + /^nov/i, + /^dic/i + ], + o = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; + e.defineLocale('es-us', { + months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( + '_' + ), + monthsShort: function(e, r) { + return e ? (/-MMM-/.test(r) ? n[e.month()] : t[e.month()]) : t; + }, + monthsRegex: o, + monthsShortRegex: o, + monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, + monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, + monthsParse: r, + longMonthsParse: r, + shortMonthsParse: r, + weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split( + '_' + ), + weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), + weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'MM/DD/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY h:mm A', + LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A' + }, + calendar: { + sameDay: function() { + return '[hoy a la' + (1 !== this.hours() ? 's' : '') + '] LT'; + }, + nextDay: function() { + return '[mañana a la' + (1 !== this.hours() ? 's' : '') + '] LT'; }, - rgb: function() { - return this; + nextWeek: function() { + return 'dddd [a la' + (1 !== this.hours() ? 's' : '') + '] LT'; }, - displayable: function() { - return ( - -0.5 <= this.r && - this.r < 255.5 && - -0.5 <= this.g && - this.g < 255.5 && - -0.5 <= this.b && - this.b < 255.5 && - 0 <= this.opacity && - this.opacity <= 1 - ); + lastDay: function() { + return '[ayer a la' + (1 !== this.hours() ? 's' : '') + '] LT'; }, - hex: $t, - formatHex: $t, - formatRgb: Qt, - toString: Qt - }) - ), - Et( - nn, - tn, - Tt(Ct, { - brighter: function(e) { + lastWeek: function() { return ( - (e = null == e ? 1 / 0.7 : Math.pow(1 / 0.7, e)), - new nn(this.h, this.s, this.l * e, this.opacity) + '[el] dddd [pasado a la' + + (1 !== this.hours() ? 's' : '') + + '] LT' ); }, - darker: function(e) { - return ( - (e = null == e ? 0.7 : Math.pow(0.7, e)), - new nn(this.h, this.s, this.l * e, this.opacity) - ); + sameElse: 'L' + }, + relativeTime: { + future: 'en %s', + past: 'hace %s', + s: 'unos segundos', + ss: '%d segundos', + m: 'un minuto', + mm: '%d minutos', + h: 'una hora', + hh: '%d horas', + d: 'un día', + dd: '%d días', + M: 'un mes', + MM: '%d meses', + y: 'un año', + yy: '%d años' + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { dow: 0, doy: 6 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + function t(e, t, n, r) { + var o = { + s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'], + ss: [e + 'sekundi', e + 'sekundit'], + m: ['ühe minuti', 'üks minut'], + mm: [e + ' minuti', e + ' minutit'], + h: ['ühe tunni', 'tund aega', 'üks tund'], + hh: [e + ' tunni', e + ' tundi'], + d: ['ühe päeva', 'üks päev'], + M: ['kuu aja', 'kuu aega', 'üks kuu'], + MM: [e + ' kuu', e + ' kuud'], + y: ['ühe aasta', 'aasta', 'üks aasta'], + yy: [e + ' aasta', e + ' aastat'] + }; + return t ? (o[n][2] ? o[n][2] : o[n][1]) : r ? o[n][0] : o[n][1]; + } + e.defineLocale('et', { + months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split( + '_' + ), + monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split( + '_' + ), + weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split( + '_' + ), + weekdaysShort: 'P_E_T_K_N_R_L'.split('_'), + weekdaysMin: 'P_E_T_K_N_R_L'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm' + }, + calendar: { + sameDay: '[Täna,] LT', + nextDay: '[Homme,] LT', + nextWeek: '[Järgmine] dddd LT', + lastDay: '[Eile,] LT', + lastWeek: '[Eelmine] dddd LT', + sameElse: 'L' + }, + relativeTime: { + future: '%s pärast', + past: '%s tagasi', + s: t, + ss: t, + m: t, + mm: t, + h: t, + hh: t, + d: t, + dd: '%d päeva', + M: t, + MM: t, + y: t, + yy: t + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('eu', { + months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split( + '_' + ), + monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split( + '_' + ), + weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'), + weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'YYYY[ko] MMMM[ren] D[a]', + LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm', + LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm', + l: 'YYYY-M-D', + ll: 'YYYY[ko] MMM D[a]', + lll: 'YYYY[ko] MMM D[a] HH:mm', + llll: 'ddd, YYYY[ko] MMM D[a] HH:mm' + }, + calendar: { + sameDay: '[gaur] LT[etan]', + nextDay: '[bihar] LT[etan]', + nextWeek: 'dddd LT[etan]', + lastDay: '[atzo] LT[etan]', + lastWeek: '[aurreko] dddd LT[etan]', + sameElse: 'L' + }, + relativeTime: { + future: '%s barru', + past: 'duela %s', + s: 'segundo batzuk', + ss: '%d segundo', + m: 'minutu bat', + mm: '%d minutu', + h: 'ordu bat', + hh: '%d ordu', + d: 'egun bat', + dd: '%d egun', + M: 'hilabete bat', + MM: '%d hilabete', + y: 'urte bat', + yy: '%d urte' + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 7 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = { + 1: '۱', + 2: '۲', + 3: '۳', + 4: '۴', + 5: '۵', + 6: '۶', + 7: '۷', + 8: '۸', + 9: '۹', + 0: '۰' + }, + n = { + '۱': '1', + '۲': '2', + '۳': '3', + '۴': '4', + '۵': '5', + '۶': '6', + '۷': '7', + '۸': '8', + '۹': '9', + '۰': '0' + }; + e.defineLocale('fa', { + months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split( + '_' + ), + monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split( + '_' + ), + weekdays: 'یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه'.split( + '_' + ), + weekdaysShort: 'یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه'.split( + '_' + ), + weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm' + }, + meridiemParse: /قبل از ظهر|بعد از ظهر/, + isPM: function(e) { + return /بعد از ظهر/.test(e); + }, + meridiem: function(e, t, n) { + return e < 12 ? 'قبل از ظهر' : 'بعد از ظهر'; + }, + calendar: { + sameDay: '[امروز ساعت] LT', + nextDay: '[فردا ساعت] LT', + nextWeek: 'dddd [ساعت] LT', + lastDay: '[دیروز ساعت] LT', + lastWeek: 'dddd [پیش] [ساعت] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'در %s', + past: '%s پیش', + s: 'چند ثانیه', + ss: 'ثانیه d%', + m: 'یک دقیقه', + mm: '%d دقیقه', + h: 'یک ساعت', + hh: '%d ساعت', + d: 'یک روز', + dd: '%d روز', + M: 'یک ماه', + MM: '%d ماه', + y: 'یک سال', + yy: '%d سال' + }, + preparse: function(e) { + return e + .replace(/[۰-۹]/g, function(e) { + return n[e]; + }) + .replace(/،/g, ','); + }, + postformat: function(e) { + return e + .replace(/\d/g, function(e) { + return t[e]; + }) + .replace(/,/g, '،'); + }, + dayOfMonthOrdinalParse: /\d{1,2}م/, + ordinal: '%dم', + week: { dow: 6, doy: 12 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split( + ' ' + ), + n = [ + 'nolla', + 'yhden', + 'kahden', + 'kolmen', + 'neljän', + 'viiden', + 'kuuden', + t[7], + t[8], + t[9] + ]; + function r(e, r, o, i) { + var a = ''; + switch (o) { + case 's': + return i ? 'muutaman sekunnin' : 'muutama sekunti'; + case 'ss': + return i ? 'sekunnin' : 'sekuntia'; + case 'm': + return i ? 'minuutin' : 'minuutti'; + case 'mm': + a = i ? 'minuutin' : 'minuuttia'; + break; + case 'h': + return i ? 'tunnin' : 'tunti'; + case 'hh': + a = i ? 'tunnin' : 'tuntia'; + break; + case 'd': + return i ? 'päivän' : 'päivä'; + case 'dd': + a = i ? 'päivän' : 'päivää'; + break; + case 'M': + return i ? 'kuukauden' : 'kuukausi'; + case 'MM': + a = i ? 'kuukauden' : 'kuukautta'; + break; + case 'y': + return i ? 'vuoden' : 'vuosi'; + case 'yy': + a = i ? 'vuoden' : 'vuotta'; + } + return (a = + (function(e, r) { + return e < 10 ? (r ? n[e] : t[e]) : e; + })(e, i) + + ' ' + + a); + } + e.defineLocale('fi', { + months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split( + '_' + ), + monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split( + '_' + ), + weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split( + '_' + ), + weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'), + weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'), + longDateFormat: { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L: 'DD.MM.YYYY', + LL: 'Do MMMM[ta] YYYY', + LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm', + LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm', + l: 'D.M.YYYY', + ll: 'Do MMM YYYY', + lll: 'Do MMM YYYY, [klo] HH.mm', + llll: 'ddd, Do MMM YYYY, [klo] HH.mm' + }, + calendar: { + sameDay: '[tänään] [klo] LT', + nextDay: '[huomenna] [klo] LT', + nextWeek: 'dddd [klo] LT', + lastDay: '[eilen] [klo] LT', + lastWeek: '[viime] dddd[na] [klo] LT', + sameElse: 'L' + }, + relativeTime: { + future: '%s päästä', + past: '%s sitten', + s: r, + ss: r, + m: r, + mm: r, + h: r, + hh: r, + d: r, + dd: r, + M: r, + MM: r, + y: r, + yy: r + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('fo', { + months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split( + '_' + ), + weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split( + '_' + ), + weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'), + weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D. MMMM, YYYY HH:mm' + }, + calendar: { + sameDay: '[Í dag kl.] LT', + nextDay: '[Í morgin kl.] LT', + nextWeek: 'dddd [kl.] LT', + lastDay: '[Í gjár kl.] LT', + lastWeek: '[síðstu] dddd [kl] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'um %s', + past: '%s síðani', + s: 'fá sekund', + ss: '%d sekundir', + m: 'ein minuttur', + mm: '%d minuttir', + h: 'ein tími', + hh: '%d tímar', + d: 'ein dagur', + dd: '%d dagar', + M: 'ein mánaður', + MM: '%d mánaðir', + y: 'eitt ár', + yy: '%d ár' + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('fr', { + months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( + '_' + ), + monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split( + '_' + ), + weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), + weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[Aujourd’hui à] LT', + nextDay: '[Demain à] LT', + nextWeek: 'dddd [à] LT', + lastDay: '[Hier à] LT', + lastWeek: 'dddd [dernier à] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'dans %s', + past: 'il y a %s', + s: 'quelques secondes', + ss: '%d secondes', + m: 'une minute', + mm: '%d minutes', + h: 'une heure', + hh: '%d heures', + d: 'un jour', + dd: '%d jours', + M: 'un mois', + MM: '%d mois', + y: 'un an', + yy: '%d ans' + }, + dayOfMonthOrdinalParse: /\d{1,2}(er|)/, + ordinal: function(e, t) { + switch (t) { + case 'D': + return e + (1 === e ? 'er' : ''); + default: + case 'M': + case 'Q': + case 'DDD': + case 'd': + return e + (1 === e ? 'er' : 'e'); + case 'w': + case 'W': + return e + (1 === e ? 're' : 'e'); + } + }, + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('fr-ca', { + months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( + '_' + ), + monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split( + '_' + ), + weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), + weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[Aujourd’hui à] LT', + nextDay: '[Demain à] LT', + nextWeek: 'dddd [à] LT', + lastDay: '[Hier à] LT', + lastWeek: 'dddd [dernier à] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'dans %s', + past: 'il y a %s', + s: 'quelques secondes', + ss: '%d secondes', + m: 'une minute', + mm: '%d minutes', + h: 'une heure', + hh: '%d heures', + d: 'un jour', + dd: '%d jours', + M: 'un mois', + MM: '%d mois', + y: 'un an', + yy: '%d ans' + }, + dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, + ordinal: function(e, t) { + switch (t) { + default: + case 'M': + case 'Q': + case 'D': + case 'DDD': + case 'd': + return e + (1 === e ? 'er' : 'e'); + case 'w': + case 'W': + return e + (1 === e ? 're' : 'e'); + } + } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('fr-ch', { + months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( + '_' + ), + monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split( + '_' + ), + weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), + weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[Aujourd’hui à] LT', + nextDay: '[Demain à] LT', + nextWeek: 'dddd [à] LT', + lastDay: '[Hier à] LT', + lastWeek: 'dddd [dernier à] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'dans %s', + past: 'il y a %s', + s: 'quelques secondes', + ss: '%d secondes', + m: 'une minute', + mm: '%d minutes', + h: 'une heure', + hh: '%d heures', + d: 'un jour', + dd: '%d jours', + M: 'un mois', + MM: '%d mois', + y: 'un an', + yy: '%d ans' + }, + dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, + ordinal: function(e, t) { + switch (t) { + default: + case 'M': + case 'Q': + case 'D': + case 'DDD': + case 'd': + return e + (1 === e ? 'er' : 'e'); + case 'w': + case 'W': + return e + (1 === e ? 're' : 'e'); + } + }, + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split( + '_' + ), + n = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'); + e.defineLocale('fy', { + months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split( + '_' + ), + monthsShort: function(e, r) { + return e ? (/-MMM-/.test(r) ? n[e.month()] : t[e.month()]) : t; + }, + monthsParseExact: !0, + weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split( + '_' + ), + weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'), + weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD-MM-YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[hjoed om] LT', + nextDay: '[moarn om] LT', + nextWeek: 'dddd [om] LT', + lastDay: '[juster om] LT', + lastWeek: '[ôfrûne] dddd [om] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'oer %s', + past: '%s lyn', + s: 'in pear sekonden', + ss: '%d sekonden', + m: 'ien minút', + mm: '%d minuten', + h: 'ien oere', + hh: '%d oeren', + d: 'ien dei', + dd: '%d dagen', + M: 'ien moanne', + MM: '%d moannen', + y: 'ien jier', + yy: '%d jierren' + }, + dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, + ordinal: function(e) { + return e + (1 === e || 8 === e || e >= 20 ? 'ste' : 'de'); + }, + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('ga', { + months: [ + 'Eanáir', + 'Feabhra', + 'Márta', + 'Aibreán', + 'Bealtaine', + 'Méitheamh', + 'Iúil', + 'Lúnasa', + 'Meán Fómhair', + 'Deaireadh Fómhair', + 'Samhain', + 'Nollaig' + ], + monthsShort: [ + 'Eaná', + 'Feab', + 'Márt', + 'Aibr', + 'Beal', + 'Méit', + 'Iúil', + 'Lúna', + 'Meán', + 'Deai', + 'Samh', + 'Noll' + ], + monthsParseExact: !0, + weekdays: [ + 'Dé Domhnaigh', + 'Dé Luain', + 'Dé Máirt', + 'Dé Céadaoin', + 'Déardaoin', + 'Dé hAoine', + 'Dé Satharn' + ], + weekdaysShort: ['Dom', 'Lua', 'Mái', 'Céa', 'Déa', 'hAo', 'Sat'], + weekdaysMin: ['Do', 'Lu', 'Má', 'Ce', 'Dé', 'hA', 'Sa'], + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[Inniu ag] LT', + nextDay: '[Amárach ag] LT', + nextWeek: 'dddd [ag] LT', + lastDay: '[Inné aig] LT', + lastWeek: 'dddd [seo caite] [ag] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'i %s', + past: '%s ó shin', + s: 'cúpla soicind', + ss: '%d soicind', + m: 'nóiméad', + mm: '%d nóiméad', + h: 'uair an chloig', + hh: '%d uair an chloig', + d: 'lá', + dd: '%d lá', + M: 'mí', + MM: '%d mí', + y: 'bliain', + yy: '%d bliain' + }, + dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/, + ordinal: function(e) { + return e + (1 === e ? 'd' : e % 10 == 2 ? 'na' : 'mh'); + }, + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('gd', { + months: [ + 'Am Faoilleach', + 'An Gearran', + 'Am Màrt', + 'An Giblean', + 'An Cèitean', + 'An t-Ògmhios', + 'An t-Iuchar', + 'An Lùnastal', + 'An t-Sultain', + 'An Dàmhair', + 'An t-Samhain', + 'An Dùbhlachd' + ], + monthsShort: [ + 'Faoi', + 'Gear', + 'Màrt', + 'Gibl', + 'Cèit', + 'Ògmh', + 'Iuch', + 'Lùn', + 'Sult', + 'Dàmh', + 'Samh', + 'Dùbh' + ], + monthsParseExact: !0, + weekdays: [ + 'Didòmhnaich', + 'Diluain', + 'Dimàirt', + 'Diciadain', + 'Diardaoin', + 'Dihaoine', + 'Disathairne' + ], + weekdaysShort: ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'], + weekdaysMin: ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'], + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[An-diugh aig] LT', + nextDay: '[A-màireach aig] LT', + nextWeek: 'dddd [aig] LT', + lastDay: '[An-dè aig] LT', + lastWeek: 'dddd [seo chaidh] [aig] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'ann an %s', + past: 'bho chionn %s', + s: 'beagan diogan', + ss: '%d diogan', + m: 'mionaid', + mm: '%d mionaidean', + h: 'uair', + hh: '%d uairean', + d: 'latha', + dd: '%d latha', + M: 'mìos', + MM: '%d mìosan', + y: 'bliadhna', + yy: '%d bliadhna' + }, + dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/, + ordinal: function(e) { + return e + (1 === e ? 'd' : e % 10 == 2 ? 'na' : 'mh'); + }, + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('gl', { + months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split( + '_' + ), + monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split( + '_' + ), + weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'), + weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY H:mm', + LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm' + }, + calendar: { + sameDay: function() { + return '[hoxe ' + (1 !== this.hours() ? 'ás' : 'á') + '] LT'; }, - 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 < 0.5 ? n : 1 - n) * t, - o = 2 * n - r; - return new Kt( - rn(e >= 240 ? e - 240 : e + 120, o, r), - rn(e, o, r), - rn(e < 120 ? e + 240 : e - 120, o, r), - this.opacity - ); + nextDay: function() { + return '[mañá ' + (1 !== this.hours() ? 'ás' : 'á') + '] LT'; }, - displayable: function() { - return ( - ((0 <= this.s && this.s <= 1) || isNaN(this.s)) && - 0 <= this.l && - this.l <= 1 && - 0 <= this.opacity && - this.opacity <= 1 - ); + nextWeek: function() { + return 'dddd [' + (1 !== this.hours() ? 'ás' : 'a') + '] LT'; }, - formatHsl: function() { - var e = this.opacity; + lastDay: function() { + return '[onte ' + (1 !== this.hours() ? 'á' : 'a') + '] LT'; + }, + lastWeek: function() { 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 + ')') + '[o] dddd [pasado ' + (1 !== this.hours() ? 'ás' : 'a') + '] LT' ); - } - }) - ); - var an = 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), - o = e[r], - i = e[r + 1], - a = r > 0 ? e[r - 1] : 2 * o - i, - s = r < t - 1 ? e[r + 2] : 2 * i - o; - return on((n - r / t) * t, a, o, i, s); - }; - }, - sn = function(e) { - var t = e.length; - return function(n) { - var r = Math.floor(((n %= 1) < 0 ? ++n : n) * t), - o = e[(r + t - 1) % t], - i = e[r % t], - a = e[(r + 1) % t], - s = e[(r + 2) % t]; - return on((n - r / t) * t, o, i, a, s); - }; - }, - cn = function(e) { - return function() { - return e; - }; - }; - function un(e, t) { - return function(n) { - return e + n * t; - }; - } - function ln(e, t) { - var n = t - e; - return n - ? un(e, n > 180 || n < -180 ? n - 360 * Math.round(n / 360) : n) - : cn(isNaN(e) ? t : e); - } - function fn(e) { - return 1 == (e = +e) - ? dn - : 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) - : cn(isNaN(t) ? n : t); - }; - } - function dn(e, t) { - var n = t - e; - return n ? un(e, n) : cn(isNaN(e) ? t : e); - } - var pn = (function e(t) { - var n = fn(t); - function r(e, t) { - var r = n((e = Gt(e)).r, (t = Gt(t)).r), - o = n(e.g, t.g), - i = n(e.b, t.b), - a = dn(e.opacity, t.opacity); - return function(t) { - return ( - (e.r = r(t)), - (e.g = o(t)), - (e.b = i(t)), - (e.opacity = a(t)), - e + '' - ); + }, + sameElse: 'L' + }, + relativeTime: { + future: function(e) { + return 0 === e.indexOf('un') ? 'n' + e : 'en ' + e; + }, + past: 'hai %s', + s: 'uns segundos', + ss: '%d segundos', + m: 'un minuto', + mm: '%d minutos', + h: 'unha hora', + hh: '%d horas', + d: 'un día', + dd: '%d días', + M: 'un mes', + MM: '%d meses', + y: 'un ano', + yy: '%d anos' + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + function t(e, t, n, r) { + var o = { + s: ['thodde secondanim', 'thodde second'], + ss: [e + ' secondanim', e + ' second'], + m: ['eka mintan', 'ek minute'], + mm: [e + ' mintanim', e + ' mintam'], + h: ['eka voran', 'ek vor'], + hh: [e + ' voranim', e + ' voram'], + d: ['eka disan', 'ek dis'], + dd: [e + ' disanim', e + ' dis'], + M: ['eka mhoinean', 'ek mhoino'], + MM: [e + ' mhoineanim', e + ' mhoine'], + y: ['eka vorsan', 'ek voros'], + yy: [e + ' vorsanim', e + ' vorsam'] }; + return t ? o[n][0] : o[n][1]; } - return (r.gamma = e), r; - })(1); - function hn(e) { - return function(t) { - var n, - r, - o = t.length, - i = new Array(o), - a = new Array(o), - s = new Array(o); - for (n = 0; n < o; ++n) - (r = Gt(t[n])), - (i[n] = r.r || 0), - (a[n] = r.g || 0), - (s[n] = r.b || 0); - return ( - (i = e(i)), - (a = e(a)), - (s = e(s)), - (r.opacity = 1), - function(e) { - return (r.r = i(e)), (r.g = a(e)), (r.b = s(e)), r + ''; + e.defineLocale('gom-latn', { + months: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split( + '_' + ), + monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: "Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split( + '_' + ), + weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'), + weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'A h:mm [vazta]', + LTS: 'A h:mm:ss [vazta]', + L: 'DD-MM-YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY A h:mm [vazta]', + LLLL: 'dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]', + llll: 'ddd, D MMM YYYY, A h:mm [vazta]' + }, + calendar: { + sameDay: '[Aiz] LT', + nextDay: '[Faleam] LT', + nextWeek: '[Ieta to] dddd[,] LT', + lastDay: '[Kal] LT', + lastWeek: '[Fatlo] dddd[,] LT', + sameElse: 'L' + }, + relativeTime: { + future: '%s', + past: '%s adim', + s: t, + ss: t, + m: t, + mm: t, + h: t, + hh: t, + d: t, + dd: t, + M: t, + MM: t, + y: t, + yy: t + }, + dayOfMonthOrdinalParse: /\d{1,2}(er)/, + ordinal: function(e, t) { + switch (t) { + case 'D': + return e + 'er'; + default: + case 'M': + case 'Q': + case 'DDD': + case 'd': + case 'w': + case 'W': + return e; } - ); - }; - } - var gn = hn(an), - mn = hn(sn), - bn = function(e, t) { - t || (t = []); - var n, - r = e ? Math.min(t.length, e.length) : 0, - o = t.slice(); - return function(i) { - for (n = 0; n < r; ++n) o[n] = e[n] * (1 - i) + t[n] * i; - return o; + }, + week: { dow: 1, doy: 4 }, + meridiemParse: /rati|sokalli|donparam|sanje/, + meridiemHour: function(e, t) { + return ( + 12 === e && (e = 0), + 'rati' === t + ? e < 4 + ? e + : e + 12 + : 'sokalli' === t + ? e + : 'donparam' === t + ? e > 12 + ? e + : e + 12 + : 'sanje' === t + ? e + 12 + : void 0 + ); + }, + meridiem: function(e, t, n) { + return e < 4 + ? 'rati' + : e < 12 + ? 'sokalli' + : e < 16 + ? 'donparam' + : e < 20 + ? 'sanje' + : 'rati'; + } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = { + 1: '૧', + 2: '૨', + 3: '૩', + 4: '૪', + 5: '૫', + 6: '૬', + 7: '૭', + 8: '૮', + 9: '૯', + 0: '૦' + }, + n = { + '૧': '1', + '૨': '2', + '૩': '3', + '૪': '4', + '૫': '5', + '૬': '6', + '૭': '7', + '૮': '8', + '૯': '9', + '૦': '0' }; - }; - function yn(e) { - return ArrayBuffer.isView(e) && !(e instanceof DataView); - } - var vn = function(e, t) { - return (yn(t) ? bn : _n)(e, t); - }; - function _n(e, t) { - var n, - r = t ? t.length : 0, - o = e ? Math.min(r, e.length) : 0, - i = new Array(o), - a = new Array(r); - for (n = 0; n < o; ++n) i[n] = Tn(e[n], t[n]); - for (; n < r; ++n) a[n] = t[n]; - return function(e) { - for (n = 0; n < o; ++n) a[n] = i[n](e); - return a; - }; - } - var xn = function(e, t) { - var n = new Date(); - return ( - (e = +e), - (t = +t), - function(r) { - return n.setTime(e * (1 - r) + t * r), n; - } - ); - }, - wn = function(e, t) { - return ( - (e = +e), - (t = +t), - function(n) { - return e * (1 - n) + t * n; + e.defineLocale('gu', { + months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split( + '_' + ), + monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split( + '_' + ), + weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'), + weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'), + longDateFormat: { + LT: 'A h:mm વાગ્યે', + LTS: 'A h:mm:ss વાગ્યે', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm વાગ્યે', + LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે' + }, + calendar: { + sameDay: '[આજ] LT', + nextDay: '[કાલે] LT', + nextWeek: 'dddd, LT', + lastDay: '[ગઇકાલે] LT', + lastWeek: '[પાછલા] dddd, LT', + sameElse: 'L' + }, + relativeTime: { + future: '%s મા', + past: '%s પેહલા', + s: 'અમુક પળો', + ss: '%d સેકંડ', + m: 'એક મિનિટ', + mm: '%d મિનિટ', + h: 'એક કલાક', + hh: '%d કલાક', + d: 'એક દિવસ', + dd: '%d દિવસ', + M: 'એક મહિનો', + MM: '%d મહિનો', + y: 'એક વર્ષ', + yy: '%d વર્ષ' + }, + preparse: function(e) { + return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function(e) { + return n[e]; + }); + }, + postformat: function(e) { + return e.replace(/\d/g, function(e) { + return t[e]; + }); + }, + meridiemParse: /રાત|બપોર|સવાર|સાંજ/, + meridiemHour: function(e, t) { + return ( + 12 === e && (e = 0), + 'રાત' === t + ? e < 4 + ? e + : e + 12 + : 'સવાર' === t + ? e + : 'બપોર' === t + ? e >= 10 + ? e + : e + 12 + : 'સાંજ' === t + ? e + 12 + : void 0 + ); + }, + meridiem: function(e, t, n) { + return e < 4 + ? 'રાત' + : e < 10 + ? 'સવાર' + : e < 17 + ? 'બપોર' + : e < 20 + ? 'સાંજ' + : 'રાત'; + }, + week: { dow: 0, doy: 6 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('he', { + months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split( + '_' + ), + monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split( + '_' + ), + weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'), + weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'), + weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D [ב]MMMM YYYY', + LLL: 'D [ב]MMMM YYYY HH:mm', + LLLL: 'dddd, D [ב]MMMM YYYY HH:mm', + l: 'D/M/YYYY', + ll: 'D MMM YYYY', + lll: 'D MMM YYYY HH:mm', + llll: 'ddd, D MMM YYYY HH:mm' + }, + calendar: { + sameDay: '[היום ב־]LT', + nextDay: '[מחר ב־]LT', + nextWeek: 'dddd [בשעה] LT', + lastDay: '[אתמול ב־]LT', + lastWeek: '[ביום] dddd [האחרון בשעה] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'בעוד %s', + past: 'לפני %s', + s: 'מספר שניות', + ss: '%d שניות', + m: 'דקה', + mm: '%d דקות', + h: 'שעה', + hh: function(e) { + return 2 === e ? 'שעתיים' : e + ' שעות'; + }, + d: 'יום', + dd: function(e) { + return 2 === e ? 'יומיים' : e + ' ימים'; + }, + M: 'חודש', + MM: function(e) { + return 2 === e ? 'חודשיים' : e + ' חודשים'; + }, + y: 'שנה', + yy: function(e) { + return 2 === e + ? 'שנתיים' + : e % 10 == 0 && 10 !== e + ? e + ' שנה' + : e + ' שנים'; } - ); - }, - Mn = function(e, t) { - var n, - r = {}, - o = {}; - for (n in ((null !== e && 'object' == typeof e) || (e = {}), - (null !== t && 'object' == typeof t) || (t = {}), - t)) - n in e ? (r[n] = Tn(e[n], t[n])) : (o[n] = t[n]); - return function(e) { - for (n in r) o[n] = r[n](e); - return o; + }, + meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i, + isPM: function(e) { + return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(e); + }, + meridiem: function(e, t, n) { + return e < 5 + ? 'לפנות בוקר' + : e < 10 + ? 'בבוקר' + : e < 12 + ? n + ? 'לפנה"צ' + : 'לפני הצהריים' + : e < 18 + ? n + ? 'אחה"צ' + : 'אחרי הצהריים' + : 'בערב'; + } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = { + 1: '१', + 2: '२', + 3: '३', + 4: '४', + 5: '५', + 6: '६', + 7: '७', + 8: '८', + 9: '९', + 0: '०' + }, + n = { + '१': '1', + '२': '2', + '३': '3', + '४': '4', + '५': '5', + '६': '6', + '७': '7', + '८': '8', + '९': '9', + '०': '0' }; - }, - kn = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, - Sn = new RegExp(kn.source, 'g'); - var An, - On, - En = function(e, t) { - var n, - r, - o, - i = (kn.lastIndex = Sn.lastIndex = 0), - a = -1, - s = [], - c = []; - for (e += '', t += ''; (n = kn.exec(e)) && (r = Sn.exec(t)); ) - (o = r.index) > i && - ((o = t.slice(i, o)), s[a] ? (s[a] += o) : (s[++a] = o)), - (n = n[0]) === (r = r[0]) - ? s[a] - ? (s[a] += r) - : (s[++a] = r) - : ((s[++a] = null), c.push({ i: a, x: wn(n, r) })), - (i = Sn.lastIndex); - return ( - i < t.length && - ((o = t.slice(i)), s[a] ? (s[a] += o) : (s[++a] = o)), - s.length < 2 - ? c[0] - ? (function(e) { - return function(t) { - return e(t) + ''; - }; - })(c[0].x) - : (function(e) { - return function() { - return e; - }; - })(t) - : ((t = c.length), - function(e) { - for (var n, r = 0; r < t; ++r) s[(n = c[r]).i] = n.x(e); - return s.join(''); - }) - ); - }, - Tn = function(e, t) { - var n, - r = typeof t; - return null == t || 'boolean' === r - ? cn(t) - : ('number' === r - ? wn - : 'string' === r - ? (n = Wt(t)) - ? ((t = n), pn) - : En - : t instanceof Wt - ? pn - : t instanceof Date - ? xn - : yn(t) - ? bn - : Array.isArray(t) - ? _n - : ('function' != typeof t.valueOf && - 'function' != typeof t.toString) || - isNaN(t) - ? Mn - : wn)(e, t); - }, - Cn = function() { - for (var e, t = ut; (e = t.sourceEvent); ) t = e; - return t; - }, - Ln = function(e, t) { - var n = e.ownerSVGElement || e; - if (n.createSVGPoint) { - var r = n.createSVGPoint(); + e.defineLocale('hi', { + months: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split( + '_' + ), + monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split( + '_' + ), + weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'), + weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'), + longDateFormat: { + LT: 'A h:mm बजे', + LTS: 'A h:mm:ss बजे', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm बजे', + LLLL: 'dddd, D MMMM YYYY, A h:mm बजे' + }, + calendar: { + sameDay: '[आज] LT', + nextDay: '[कल] LT', + nextWeek: 'dddd, LT', + lastDay: '[कल] LT', + lastWeek: '[पिछले] dddd, LT', + sameElse: 'L' + }, + relativeTime: { + future: '%s में', + past: '%s पहले', + s: 'कुछ ही क्षण', + ss: '%d सेकंड', + m: 'एक मिनट', + mm: '%d मिनट', + h: 'एक घंटा', + hh: '%d घंटे', + d: 'एक दिन', + dd: '%d दिन', + M: 'एक महीने', + MM: '%d महीने', + y: 'एक वर्ष', + yy: '%d वर्ष' + }, + preparse: function(e) { + return e.replace(/[१२३४५६७८९०]/g, function(e) { + return n[e]; + }); + }, + postformat: function(e) { + return e.replace(/\d/g, function(e) { + return t[e]; + }); + }, + meridiemParse: /रात|सुबह|दोपहर|शाम/, + meridiemHour: function(e, t) { return ( - (r.x = t.clientX), - (r.y = t.clientY), - [(r = r.matrixTransform(e.getScreenCTM().inverse())).x, r.y] + 12 === e && (e = 0), + 'रात' === t + ? e < 4 + ? e + : e + 12 + : 'सुबह' === t + ? e + : 'दोपहर' === t + ? e >= 10 + ? e + : e + 12 + : 'शाम' === t + ? e + 12 + : void 0 ); + }, + meridiem: function(e, t, n) { + return e < 4 + ? 'रात' + : e < 10 + ? 'सुबह' + : e < 17 + ? 'दोपहर' + : e < 20 + ? 'शाम' + : 'रात'; + }, + week: { dow: 0, doy: 6 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + function t(e, t, n) { + var r = e + ' '; + switch (n) { + case 'ss': + return (r += + 1 === e + ? 'sekunda' + : 2 === e || 3 === e || 4 === e + ? 'sekunde' + : 'sekundi'); + case 'm': + return t ? 'jedna minuta' : 'jedne minute'; + case 'mm': + return (r += + 1 === e + ? 'minuta' + : 2 === e || 3 === e || 4 === e + ? 'minute' + : 'minuta'); + case 'h': + return t ? 'jedan sat' : 'jednog sata'; + case 'hh': + return (r += + 1 === e + ? 'sat' + : 2 === e || 3 === e || 4 === e + ? 'sata' + : 'sati'); + case 'dd': + return (r += 1 === e ? 'dan' : 'dana'); + case 'MM': + return (r += + 1 === e + ? 'mjesec' + : 2 === e || 3 === e || 4 === e + ? 'mjeseca' + : 'mjeseci'); + case 'yy': + return (r += + 1 === e + ? 'godina' + : 2 === e || 3 === e || 4 === e + ? 'godine' + : 'godina'); } - var o = e.getBoundingClientRect(); - return [ - t.clientX - o.left - e.clientLeft, - t.clientY - o.top - e.clientTop - ]; - }, - Pn = function(e, t, n) { - arguments.length < 3 && ((n = t), (t = Cn().changedTouches)); - for (var r, o = 0, i = t ? t.length : 0; o < i; ++o) - if ((r = t[o]).identifier === n) return Ln(e, r); - return null; - }, - Dn = function(e) { - var t = Cn(); - return t.changedTouches && (t = t.changedTouches[0]), Ln(e, t); - }, - zn = 0, - Nn = 0, - jn = 0, - Rn = 0, - In = 0, - Fn = 0, - qn = - 'object' == typeof performance && performance.now - ? performance - : Date, - Bn = - 'object' == typeof window && window.requestAnimationFrame - ? window.requestAnimationFrame.bind(window) - : function(e) { - setTimeout(e, 17); - }; - function Hn() { - return In || (Bn(Yn), (In = qn.now() + Fn)); - } - function Yn() { - In = 0; - } - function Wn() { - this._call = this._time = this._next = null; - } - function Vn(e, t, n) { - var r = new Wn(); - return r.restart(e, t, n), r; - } - function Un() { - Hn(), ++zn; - for (var e, t = An; t; ) - (e = In - t._time) >= 0 && t._call.call(null, e), (t = t._next); - --zn; - } - function Xn() { - (In = (Rn = qn.now()) + Fn), (zn = Nn = 0); - try { - Un(); - } finally { - (zn = 0), - (function() { - var e, - t, - n = An, - r = 1 / 0; - for (; n; ) - n._call - ? (r > n._time && (r = n._time), (e = n), (n = n._next)) - : ((t = n._next), - (n._next = null), - (n = e ? (e._next = t) : (An = t))); - (On = e), Kn(r); - })(), - (In = 0); - } - } - function Gn() { - var e = qn.now(), - t = e - Rn; - t > 1e3 && ((Fn -= t), (Rn = e)); - } - function Kn(e) { - zn || - (Nn && (Nn = clearTimeout(Nn)), - e - In > 24 - ? (e < 1 / 0 && (Nn = setTimeout(Xn, e - qn.now() - Fn)), - jn && (jn = clearInterval(jn))) - : (jn || ((Rn = qn.now()), (jn = setInterval(Gn, 1e3))), - (zn = 1), - Bn(Xn))); - } - Wn.prototype = Vn.prototype = { - constructor: Wn, - restart: function(e, t, n) { - if ('function' != typeof e) - throw new TypeError('callback is not a function'); - (n = (null == n ? Hn() : +n) + (null == t ? 0 : +t)), - this._next || - On === this || - (On ? (On._next = this) : (An = this), (On = this)), - (this._call = e), - (this._time = n), - Kn(); - }, - stop: function() { - this._call && ((this._call = null), (this._time = 1 / 0), Kn()); } - }; - var $n = function(e, t, n) { - var r = new Wn(); - return ( - (t = null == t ? 0 : +t), - r.restart( - function(n) { - r.stop(), e(n + t); - }, - t, - n + e.defineLocale('hr', { + months: { + format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split( + '_' ), - r - ); - }, - Qn = fe('start', 'end', 'cancel', 'interrupt'), - Jn = [], - Zn = function(e, t, n, r, o, i) { - var a = e.__transition; - if (a) { - if (n in a) return; - } else e.__transition = {}; - !(function(e, t, n) { - var r, - o = e.__transition; - function i(c) { - var u, l, f, d; - if (1 !== n.state) return s(); - for (u in o) - if ((d = o[u]).name === n.name) { - if (3 === d.state) return $n(i); - 4 === d.state - ? ((d.state = 6), - d.timer.stop(), - d.on.call('interrupt', e, e.__data__, d.index, d.group), - delete o[u]) - : +u < t && - ((d.state = 6), - d.timer.stop(), - d.on.call('cancel', e, e.__data__, d.index, d.group), - delete o[u]); - } - if ( - ($n(function() { - 3 === n.state && - ((n.state = 4), n.timer.restart(a, n.delay, n.time), a(c)); - }), - (n.state = 2), - n.on.call('start', e, e.__data__, n.index, n.group), - 2 === n.state) - ) { - for ( - n.state = 3, - r = new Array((f = n.tween.length)), - u = 0, - l = -1; - u < f; - ++u - ) - (d = n.tween[u].value.call( - e, - e.__data__, - n.index, - n.group - )) && (r[++l] = d); - r.length = l + 1; + standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split( + '_' + ) + }, + monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( + '_' + ), + weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), + weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm' + }, + calendar: { + sameDay: '[danas u] LT', + nextDay: '[sutra u] LT', + nextWeek: function() { + switch (this.day()) { + case 0: + return '[u] [nedjelju] [u] LT'; + case 3: + return '[u] [srijedu] [u] LT'; + case 6: + return '[u] [subotu] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[u] dddd [u] LT'; } - } - function a(t) { - for ( - var o = - t < n.duration - ? n.ease.call(null, t / n.duration) - : (n.timer.restart(s), (n.state = 5), 1), - i = -1, - a = r.length; - ++i < a; - - ) - r[i].call(e, o); - 5 === n.state && - (n.on.call('end', e, e.__data__, n.index, n.group), s()); - } - function s() { - for (var r in ((n.state = 6), n.timer.stop(), delete o[t], o)) - return; - delete e.__transition; - } - (o[t] = n), - (n.timer = Vn( - function(e) { - (n.state = 1), - n.timer.restart(i, n.delay, n.time), - n.delay <= e && i(e - n.delay); - }, - 0, - n.time - )); - })(e, n, { - name: t, - index: r, - group: o, - on: Qn, - tween: Jn, - time: i.time, - delay: i.delay, - duration: i.duration, - ease: i.ease, - timer: null, - state: 0 - }); - }; - function er(e, t) { - var n = nr(e, t); - if (n.state > 0) throw new Error('too late; already scheduled'); - return n; - } - function tr(e, t) { - var n = nr(e, t); - if (n.state > 3) throw new Error('too late; already running'); - return n; - } - function nr(e, t) { - var n = e.__transition; - if (!n || !(n = n[t])) throw new Error('transition not found'); - return n; - } - var rr, - or, - ir, - ar, - sr = function(e, t) { - var n, - r, - o, - i = e.__transition, - a = !0; - if (i) { - for (o in ((t = null == t ? null : t + ''), i)) - (n = i[o]).name === t - ? ((r = n.state > 2 && n.state < 5), - (n.state = 6), - n.timer.stop(), - n.on.call( - r ? 'interrupt' : 'cancel', - e, - e.__data__, - n.index, - n.group - ), - delete i[o]) - : (a = !1); - a && delete e.__transition; + }, + lastDay: '[jučer u] LT', + lastWeek: function() { + switch (this.day()) { + case 0: + case 3: + return '[prošlu] dddd [u] LT'; + case 6: + return '[prošle] [subote] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[prošli] dddd [u] LT'; + } + }, + sameElse: 'L' + }, + relativeTime: { + future: 'za %s', + past: 'prije %s', + s: 'par sekundi', + ss: t, + m: t, + mm: t, + h: t, + hh: t, + d: 'dan', + dd: t, + M: 'mjesec', + MM: t, + y: 'godinu', + yy: t + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 7 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split( + ' ' + ); + function n(e, t, n, r) { + var o = e; + switch (n) { + case 's': + return r || t ? 'néhány másodperc' : 'néhány másodperce'; + case 'ss': + return o + (r || t) ? ' másodperc' : ' másodperce'; + case 'm': + return 'egy' + (r || t ? ' perc' : ' perce'); + case 'mm': + return o + (r || t ? ' perc' : ' perce'); + case 'h': + return 'egy' + (r || t ? ' óra' : ' órája'); + case 'hh': + return o + (r || t ? ' óra' : ' órája'); + case 'd': + return 'egy' + (r || t ? ' nap' : ' napja'); + case 'dd': + return o + (r || t ? ' nap' : ' napja'); + case 'M': + return 'egy' + (r || t ? ' hónap' : ' hónapja'); + case 'MM': + return o + (r || t ? ' hónap' : ' hónapja'); + case 'y': + return 'egy' + (r || t ? ' év' : ' éve'); + case 'yy': + return o + (r || t ? ' év' : ' éve'); } - }, - cr = 180 / Math.PI, - ur = { - translateX: 0, - translateY: 0, - rotate: 0, - skewX: 0, - scaleX: 1, - scaleY: 1 - }, - lr = function(e, t, n, r, o, i) { - var a, s, c; - return ( - (a = Math.sqrt(e * e + t * t)) && ((e /= a), (t /= a)), - (c = e * n + t * r) && ((n -= e * c), (r -= t * c)), - (s = Math.sqrt(n * n + r * r)) && ((n /= s), (r /= s), (c /= s)), - e * r < t * n && ((e = -e), (t = -t), (c = -c), (a = -a)), - { - translateX: o, - translateY: i, - rotate: Math.atan2(t, e) * cr, - skewX: Math.atan(c) * cr, - scaleX: a, - scaleY: s - } - ); - }; - function fr(e, t, n, r) { - function o(e) { - return e.length ? e.pop() + ' ' : ''; + return ''; } - return function(i, a) { - var s = [], - c = []; - return ( - (i = e(i)), - (a = e(a)), - (function(e, r, o, i, a, s) { - if (e !== o || r !== i) { - var c = a.push('translate(', null, t, null, n); - s.push({ i: c - 4, x: wn(e, o) }, { i: c - 2, x: wn(r, i) }); - } else (o || i) && a.push('translate(' + o + t + i + n); - })(i.translateX, i.translateY, a.translateX, a.translateY, s, c), - (function(e, t, n, i) { - e !== t - ? (e - t > 180 ? (t += 360) : t - e > 180 && (e += 360), - i.push({ - i: n.push(o(n) + 'rotate(', null, r) - 2, - x: wn(e, t) - })) - : t && n.push(o(n) + 'rotate(' + t + r); - })(i.rotate, a.rotate, s, c), - (function(e, t, n, i) { - e !== t - ? i.push({ - i: n.push(o(n) + 'skewX(', null, r) - 2, - x: wn(e, t) - }) - : t && n.push(o(n) + 'skewX(' + t + r); - })(i.skewX, a.skewX, s, c), - (function(e, t, n, r, i, a) { - if (e !== n || t !== r) { - var s = i.push(o(i) + 'scale(', null, ',', null, ')'); - a.push({ i: s - 4, x: wn(e, n) }, { i: s - 2, x: wn(t, r) }); - } else - (1 === n && 1 === r) || - i.push(o(i) + 'scale(' + n + ',' + r + ')'); - })(i.scaleX, i.scaleY, a.scaleX, a.scaleY, s, c), - (i = a = null), - function(e) { - for (var t, n = -1, r = c.length; ++n < r; ) - s[(t = c[n]).i] = t.x(e); - return s.join(''); + function r(e) { + return (e ? '' : '[múlt] ') + '[' + t[this.day()] + '] LT[-kor]'; + } + e.defineLocale('hu', { + months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split( + '_' + ), + monthsShort: 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split( + '_' + ), + weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split( + '_' + ), + weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'), + weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'YYYY.MM.DD.', + LL: 'YYYY. MMMM D.', + LLL: 'YYYY. MMMM D. H:mm', + LLLL: 'YYYY. MMMM D., dddd H:mm' + }, + meridiemParse: /de|du/i, + isPM: function(e) { + return 'u' === e.charAt(1).toLowerCase(); + }, + meridiem: function(e, t, n) { + return e < 12 ? (!0 === n ? 'de' : 'DE') : !0 === n ? 'du' : 'DU'; + }, + calendar: { + sameDay: '[ma] LT[-kor]', + nextDay: '[holnap] LT[-kor]', + nextWeek: function() { + return r.call(this, !0); + }, + lastDay: '[tegnap] LT[-kor]', + lastWeek: function() { + return r.call(this, !1); + }, + sameElse: 'L' + }, + relativeTime: { + future: '%s múlva', + past: '%s', + s: n, + ss: n, + m: n, + mm: n, + h: n, + hh: n, + d: n, + dd: n, + M: n, + MM: n, + y: n, + yy: n + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('hy-am', { + months: { + format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split( + '_' + ), + standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split( + '_' + ) + }, + monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split( + '_' + ), + weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split( + '_' + ), + weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), + weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY թ.', + LLL: 'D MMMM YYYY թ., HH:mm', + LLLL: 'dddd, D MMMM YYYY թ., HH:mm' + }, + calendar: { + sameDay: '[այսօր] LT', + nextDay: '[վաղը] LT', + lastDay: '[երեկ] LT', + nextWeek: function() { + return 'dddd [օրը ժամը] LT'; + }, + lastWeek: function() { + return '[անցած] dddd [օրը ժամը] LT'; + }, + sameElse: 'L' + }, + relativeTime: { + future: '%s հետո', + past: '%s առաջ', + s: 'մի քանի վայրկյան', + ss: '%d վայրկյան', + m: 'րոպե', + mm: '%d րոպե', + h: 'ժամ', + hh: '%d ժամ', + d: 'օր', + dd: '%d օր', + M: 'ամիս', + MM: '%d ամիս', + y: 'տարի', + yy: '%d տարի' + }, + meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/, + isPM: function(e) { + return /^(ցերեկվա|երեկոյան)$/.test(e); + }, + meridiem: function(e) { + return e < 4 + ? 'գիշերվա' + : e < 12 + ? 'առավոտվա' + : e < 17 + ? 'ցերեկվա' + : 'երեկոյան'; + }, + dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/, + ordinal: function(e, t) { + switch (t) { + case 'DDD': + case 'w': + case 'W': + case 'DDDo': + return 1 === e ? e + '-ին' : e + '-րդ'; + default: + return e; } - ); - }; - } - var dr = fr( - function(e) { - return 'none' === e - ? ur - : (rr || - ((rr = document.createElement('DIV')), - (or = document.documentElement), - (ir = document.defaultView)), - (rr.style.transform = e), - (e = ir - .getComputedStyle(or.appendChild(rr), null) - .getPropertyValue('transform')), - or.removeChild(rr), - (e = e.slice(7, -1).split(',')), - lr(+e[0], +e[1], +e[2], +e[3], +e[4], +e[5])); }, - 'px, ', - 'px)', - 'deg)' - ), - pr = fr( - function(e) { - return null == e - ? ur - : (ar || - (ar = document.createElementNS( - 'http://www.w3.org/2000/svg', - 'g' - )), - ar.setAttribute('transform', e), - (e = ar.transform.baseVal.consolidate()) - ? ((e = e.matrix), lr(e.a, e.b, e.c, e.d, e.e, e.f)) - : ur); + week: { dow: 1, doy: 7 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('id', { + months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split( + '_' + ), + weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'), + weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'), + weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'), + longDateFormat: { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [pukul] HH.mm', + LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm' }, - ', ', - ')', - ')' - ); - function hr(e, t) { - var n, r; - return function() { - var o = tr(this, e), - i = o.tween; - if (i !== n) - for (var a = 0, s = (r = n = i).length; a < s; ++a) - if (r[a].name === t) { - (r = r.slice()).splice(a, 1); - break; - } - o.tween = r; - }; - } - function gr(e, t, n) { - var r, o; - if ('function' != typeof n) throw new Error(); - return function() { - var i = tr(this, e), - a = i.tween; - if (a !== r) { - o = (r = a).slice(); - for (var s = { name: t, value: n }, c = 0, u = o.length; c < u; ++c) - if (o[c].name === t) { - o[c] = s; - break; - } - c === u && o.push(s); - } - i.tween = o; - }; - } - function mr(e, t, n) { - var r = e._id; - return ( - e.each(function() { - var e = tr(this, r); - (e.value || (e.value = {}))[t] = n.apply(this, arguments); - }), - function(e) { - return nr(e, r).value[t]; - } - ); - } - var br = function(e, t) { - var n; - return ('number' == typeof t - ? wn - : t instanceof Wt - ? pn - : (n = Wt(t)) - ? ((t = n), pn) - : En)(e, t); - }; - function yr(e) { - return function() { - this.removeAttribute(e); - }; - } - function vr(e) { - return function() { - this.removeAttributeNS(e.space, e.local); - }; - } - function _r(e, t, n) { - var r, - o, - i = n + ''; - return function() { - var a = this.getAttribute(e); - return a === i ? null : a === r ? o : (o = t((r = a), n)); - }; - } - function xr(e, t, n) { - var r, - o, - i = n + ''; - return function() { - var a = this.getAttributeNS(e.space, e.local); - return a === i ? null : a === r ? o : (o = t((r = a), n)); - }; - } - function wr(e, t, n) { - var r, o, i; - return function() { - var a, - s, - c = n(this); - if (null != c) - return (a = this.getAttribute(e)) === (s = c + '') - ? null - : a === r && s === o - ? i - : ((o = s), (i = t((r = a), c))); - this.removeAttribute(e); - }; - } - function Mr(e, t, n) { - var r, o, i; - return function() { - var a, - s, - c = n(this); - if (null != c) - return (a = this.getAttributeNS(e.space, e.local)) === (s = c + '') - ? null - : a === r && s === o - ? i - : ((o = s), (i = t((r = a), c))); - this.removeAttributeNS(e.space, e.local); - }; - } - function kr(e, t) { - return function(n) { - this.setAttribute(e, t.call(this, n)); - }; - } - function Sr(e, t) { - return function(n) { - this.setAttributeNS(e.space, e.local, t.call(this, n)); - }; - } - function Ar(e, t) { - var n, r; - function o() { - var o = t.apply(this, arguments); - return o !== r && (n = (r = o) && Sr(e, o)), n; - } - return (o._value = t), o; - } - function Or(e, t) { - var n, r; - function o() { - var o = t.apply(this, arguments); - return o !== r && (n = (r = o) && kr(e, o)), n; + meridiemParse: /pagi|siang|sore|malam/, + meridiemHour: function(e, t) { + return ( + 12 === e && (e = 0), + 'pagi' === t + ? e + : 'siang' === t + ? e >= 11 + ? e + : e + 12 + : 'sore' === t || 'malam' === t + ? e + 12 + : void 0 + ); + }, + meridiem: function(e, t, n) { + return e < 11 + ? 'pagi' + : e < 15 + ? 'siang' + : e < 19 + ? 'sore' + : 'malam'; + }, + calendar: { + sameDay: '[Hari ini pukul] LT', + nextDay: '[Besok pukul] LT', + nextWeek: 'dddd [pukul] LT', + lastDay: '[Kemarin pukul] LT', + lastWeek: 'dddd [lalu pukul] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'dalam %s', + past: '%s yang lalu', + s: 'beberapa detik', + ss: '%d detik', + m: 'semenit', + mm: '%d menit', + h: 'sejam', + hh: '%d jam', + d: 'sehari', + dd: '%d hari', + M: 'sebulan', + MM: '%d bulan', + y: 'setahun', + yy: '%d tahun' + }, + week: { dow: 1, doy: 7 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + function t(e) { + return e % 100 == 11 || e % 10 != 1; } - return (o._value = t), o; - } - function Er(e, t) { - return function() { - er(this, e).delay = +t.apply(this, arguments); - }; - } - function Tr(e, t) { - return ( - (t = +t), - function() { - er(this, e).delay = t; - } - ); - } - function Cr(e, t) { - return function() { - tr(this, e).duration = +t.apply(this, arguments); - }; - } - function Lr(e, t) { - return ( - (t = +t), - function() { - tr(this, e).duration = t; + function n(e, n, r, o) { + var i = e + ' '; + switch (r) { + case 's': + return n || o ? 'nokkrar sekúndur' : 'nokkrum sekúndum'; + case 'ss': + return t(e) + ? i + (n || o ? 'sekúndur' : 'sekúndum') + : i + 'sekúnda'; + case 'm': + return n ? 'mínúta' : 'mínútu'; + case 'mm': + return t(e) + ? i + (n || o ? 'mínútur' : 'mínútum') + : n + ? i + 'mínúta' + : i + 'mínútu'; + case 'hh': + return t(e) + ? i + (n || o ? 'klukkustundir' : 'klukkustundum') + : i + 'klukkustund'; + case 'd': + return n ? 'dagur' : o ? 'dag' : 'degi'; + case 'dd': + return t(e) + ? n + ? i + 'dagar' + : i + (o ? 'daga' : 'dögum') + : n + ? i + 'dagur' + : i + (o ? 'dag' : 'degi'); + case 'M': + return n ? 'mánuður' : o ? 'mánuð' : 'mánuði'; + case 'MM': + return t(e) + ? n + ? i + 'mánuðir' + : i + (o ? 'mánuði' : 'mánuðum') + : n + ? i + 'mánuður' + : i + (o ? 'mánuð' : 'mánuði'); + case 'y': + return n || o ? 'ár' : 'ári'; + case 'yy': + return t(e) + ? i + (n || o ? 'ár' : 'árum') + : i + (n || o ? 'ár' : 'ári'); } - ); - } - function Pr(e, t) { - if ('function' != typeof t) throw new Error(); - return function() { - tr(this, e).ease = t; - }; - } - function Dr(e, t, n) { - var r, - o, - i = (function(e) { - return (e + '') - .trim() - .split(/^|\s+/) - .every(function(e) { - var t = e.indexOf('.'); - return t >= 0 && (e = e.slice(0, t)), !e || 'start' === e; - }); - })(t) - ? er - : tr; - return function() { - var a = i(this, e), - s = a.on; - s !== r && (o = (r = s).copy()).on(t, n), (a.on = o); - }; - } - var zr = wt.prototype.constructor; - function Nr(e) { - return function() { - this.style.removeProperty(e); - }; - } - function jr(e, t, n) { - return function(r) { - this.style.setProperty(e, t.call(this, r), n); - }; - } - function Rr(e, t, n) { - var r, o; - function i() { - var i = t.apply(this, arguments); - return i !== o && (r = (o = i) && jr(e, i, n)), r; - } - return (i._value = t), i; - } - function Ir(e) { - return function(t) { - this.textContent = e.call(this, t); - }; - } - function Fr(e) { - var t, n; - function r() { - var r = e.apply(this, arguments); - return r !== n && (t = (n = r) && Ir(r)), t; } - return (r._value = e), r; - } - var qr = 0; - function Br(e, t, n, r) { - (this._groups = e), - (this._parents = t), - (this._name = n), - (this._id = r); - } - function Hr(e) { - return wt().transition(e); - } - function Yr() { - return ++qr; - } - var Wr = wt.prototype; - function Vr(e) { - return e * e * e; - } - function Ur(e) { - return --e * e * e + 1; - } - function Xr(e) { - return ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2; - } - Br.prototype = Hr.prototype = { - constructor: Br, - select: function(e) { - var t = this._name, - n = this._id; - 'function' != typeof e && (e = pe(e)); - for ( - var r = this._groups, o = r.length, i = new Array(o), a = 0; - a < o; - ++a - ) - for ( - var s, - c, - u = r[a], - l = u.length, - f = (i[a] = new Array(l)), - d = 0; - d < l; - ++d - ) - (s = u[d]) && - (c = e.call(s, s.__data__, d, u)) && - ('__data__' in s && (c.__data__ = s.__data__), - (f[d] = c), - Zn(f[d], t, n, d, f, nr(s, n))); - return new Br(i, this._parents, t, n); - }, - selectAll: function(e) { - var t = this._name, - n = this._id; - 'function' != typeof e && (e = ge(e)); - for ( - var r = this._groups, o = r.length, i = [], a = [], s = 0; - s < o; - ++s - ) - for (var c, u = r[s], l = u.length, f = 0; f < l; ++f) - if ((c = u[f])) { - for ( - var d, - p = e.call(c, c.__data__, f, u), - h = nr(c, n), - g = 0, - m = p.length; - g < m; - ++g - ) - (d = p[g]) && Zn(d, t, n, g, p, h); - i.push(p), a.push(c); + e.defineLocale('is', { + months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split( + '_' + ), + weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split( + '_' + ), + weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'), + weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY [kl.] H:mm', + LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm' + }, + calendar: { + sameDay: '[í dag kl.] LT', + nextDay: '[á morgun kl.] LT', + nextWeek: 'dddd [kl.] LT', + lastDay: '[í gær kl.] LT', + lastWeek: '[síðasta] dddd [kl.] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'eftir %s', + past: 'fyrir %s síðan', + s: n, + ss: n, + m: n, + mm: n, + h: 'klukkustund', + hh: n, + d: n, + dd: n, + M: n, + MM: n, + y: n, + yy: n + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('it', { + months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split( + '_' + ), + monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split( + '_' + ), + weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split( + '_' + ), + weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'), + weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[Oggi alle] LT', + nextDay: '[Domani alle] LT', + nextWeek: 'dddd [alle] LT', + lastDay: '[Ieri alle] LT', + lastWeek: function() { + switch (this.day()) { + case 0: + return '[la scorsa] dddd [alle] LT'; + default: + return '[lo scorso] dddd [alle] LT'; } - return new Br(i, a, t, n); - }, - filter: function(e) { - 'function' != typeof e && (e = me(e)); - for ( - var t = this._groups, n = t.length, r = new Array(n), o = 0; - o < n; - ++o - ) - for ( - var i, a = t[o], s = a.length, c = (r[o] = []), u = 0; - u < s; - ++u - ) - (i = a[u]) && e.call(i, i.__data__, u, a) && c.push(i); - return new Br(r, this._parents, this._name, this._id); - }, - merge: function(e) { - if (e._id !== this._id) throw new Error(); - for ( - var t = this._groups, - n = e._groups, - r = t.length, - o = n.length, - i = Math.min(r, o), - a = new Array(r), - s = 0; - s < i; - ++s - ) - for ( - var c, - u = t[s], - l = n[s], - f = u.length, - d = (a[s] = new Array(f)), - p = 0; - p < f; - ++p - ) - (c = u[p] || l[p]) && (d[p] = c); - for (; s < r; ++s) a[s] = t[s]; - return new Br(a, this._parents, this._name, this._id); - }, - selection: function() { - return new zr(this._groups, this._parents); - }, - transition: function() { - for ( - var e = this._name, - t = this._id, - n = Yr(), - r = this._groups, - o = r.length, - i = 0; - i < o; - ++i - ) - for (var a, s = r[i], c = s.length, u = 0; u < c; ++u) - if ((a = s[u])) { - var l = nr(a, t); - Zn(a, e, n, u, s, { - time: l.time + l.delay + l.duration, - delay: 0, - duration: l.duration, - ease: l.ease - }); + }, + sameElse: 'L' + }, + relativeTime: { + future: function(e) { + return (/^[0-9].+$/.test(e) ? 'tra' : 'in') + ' ' + e; + }, + past: '%s fa', + s: 'alcuni secondi', + ss: '%d secondi', + m: 'un minuto', + mm: '%d minuti', + h: "un'ora", + hh: '%d ore', + d: 'un giorno', + dd: '%d giorni', + M: 'un mese', + MM: '%d mesi', + y: 'un anno', + yy: '%d anni' + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('it-ch', { + months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split( + '_' + ), + monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split( + '_' + ), + weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split( + '_' + ), + weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'), + weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[Oggi alle] LT', + nextDay: '[Domani alle] LT', + nextWeek: 'dddd [alle] LT', + lastDay: '[Ieri alle] LT', + lastWeek: function() { + switch (this.day()) { + case 0: + return '[la scorsa] dddd [alle] LT'; + default: + return '[lo scorso] dddd [alle] LT'; } - return new Br(r, this._parents, e, n); - }, - call: Wr.call, - nodes: Wr.nodes, - node: Wr.node, - size: Wr.size, - empty: Wr.empty, - each: Wr.each, - on: function(e, t) { - var n = this._id; - return arguments.length < 2 - ? nr(this.node(), n).on.on(e) - : this.each(Dr(n, e, t)); - }, - attr: function(e, t) { - var n = ke(e), - r = 'transform' === n ? pr : br; - return this.attrTween( - e, - 'function' == typeof t - ? (n.local ? Mr : wr)(n, r, mr(this, 'attr.' + e, t)) - : null == t - ? (n.local ? vr : yr)(n) - : (n.local ? xr : _r)(n, r, t) - ); - }, - attrTween: function(e, t) { - var n = 'attr.' + e; - if (arguments.length < 2) return (n = this.tween(n)) && n._value; - if (null == t) return this.tween(n, null); - if ('function' != typeof t) throw new Error(); - var r = ke(e); - return this.tween(n, (r.local ? Ar : Or)(r, t)); - }, - style: function(e, t, n) { - var r = 'transform' == (e += '') ? dr : br; - return null == t - ? this.styleTween( - e, - (function(e, t) { - var n, r, o; - return function() { - var i = Ne(this, e), - a = (this.style.removeProperty(e), Ne(this, e)); - return i === a - ? null - : i === n && a === r - ? o - : (o = t((n = i), (r = a))); - }; - })(e, r) - ).on('end.style.' + e, Nr(e)) - : 'function' == typeof t - ? this.styleTween( - e, - (function(e, t, n) { - var r, o, i; - return function() { - var a = Ne(this, e), - s = n(this), - c = s + ''; - return ( - null == s && - (this.style.removeProperty(e), (c = s = Ne(this, e))), - a === c - ? null - : a === r && c === o - ? i - : ((o = c), (i = t((r = a), s))) - ); - }; - })(e, r, mr(this, 'style.' + e, t)) - ).each( - (function(e, t) { - var n, - r, - o, - i, - a = 'style.' + t, - s = 'end.' + a; - return function() { - var c = tr(this, e), - u = c.on, - l = null == c.value[a] ? i || (i = Nr(t)) : void 0; - (u === n && o === l) || (r = (n = u).copy()).on(s, (o = l)), - (c.on = r); - }; - })(this._id, e) - ) - : this.styleTween( - e, - (function(e, t, n) { - var r, - o, - i = n + ''; - return function() { - var a = Ne(this, e); - return a === i ? null : a === r ? o : (o = t((r = a), n)); - }; - })(e, r, t), - n - ).on('end.style.' + e, null); - }, - styleTween: function(e, t, n) { - var r = 'style.' + (e += ''); - if (arguments.length < 2) return (r = this.tween(r)) && r._value; - if (null == t) return this.tween(r, null); - if ('function' != typeof t) throw new Error(); - return this.tween(r, Rr(e, t, null == n ? '' : n)); - }, - text: function(e) { - return this.tween( - 'text', - 'function' == typeof e - ? (function(e) { - return function() { - var t = e(this); - this.textContent = null == t ? '' : t; - }; - })(mr(this, 'text', e)) - : (function(e) { - return function() { - this.textContent = e; - }; - })(null == e ? '' : e + '') - ); - }, - textTween: function(e) { - var t = 'text'; - if (arguments.length < 1) return (t = this.tween(t)) && t._value; - if (null == e) return this.tween(t, null); - if ('function' != typeof e) throw new Error(); - return this.tween(t, Fr(e)); - }, - remove: function() { - return this.on( - 'end.remove', - ((e = this._id), - function() { - var t = this.parentNode; - for (var n in this.__transition) if (+n !== e) return; - t && t.removeChild(this); - }) - ); - var e; - }, - tween: function(e, t) { - var n = this._id; - if (((e += ''), arguments.length < 2)) { - for ( - var r, o = nr(this.node(), n).tween, i = 0, a = o.length; - i < a; - ++i - ) - if ((r = o[i]).name === e) return r.value; - return null; + }, + sameElse: 'L' + }, + relativeTime: { + future: function(e) { + return (/^[0-9].+$/.test(e) ? 'tra' : 'in') + ' ' + e; + }, + past: '%s fa', + s: 'alcuni secondi', + ss: '%d secondi', + m: 'un minuto', + mm: '%d minuti', + h: "un'ora", + hh: '%d ore', + d: 'un giorno', + dd: '%d giorni', + M: 'un mese', + MM: '%d mesi', + y: 'un anno', + yy: '%d anni' + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('ja', { + months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( + '_' + ), + monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( + '_' + ), + weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split( + '_' + ), + weekdaysShort: '日_月_火_水_木_金_土'.split('_'), + weekdaysMin: '日_月_火_水_木_金_土'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY/MM/DD', + LL: 'YYYY年M月D日', + LLL: 'YYYY年M月D日 HH:mm', + LLLL: 'YYYY年M月D日 dddd HH:mm', + l: 'YYYY/MM/DD', + ll: 'YYYY年M月D日', + lll: 'YYYY年M月D日 HH:mm', + llll: 'YYYY年M月D日(ddd) HH:mm' + }, + meridiemParse: /午前|午後/i, + isPM: function(e) { + return '午後' === e; + }, + meridiem: function(e, t, n) { + return e < 12 ? '午前' : '午後'; + }, + calendar: { + sameDay: '[今日] LT', + nextDay: '[明日] LT', + nextWeek: function(e) { + return e.week() < this.week() ? '[来週]dddd LT' : 'dddd LT'; + }, + lastDay: '[昨日] LT', + lastWeek: function(e) { + return this.week() < e.week() ? '[先週]dddd LT' : 'dddd LT'; + }, + sameElse: 'L' + }, + dayOfMonthOrdinalParse: /\d{1,2}日/, + ordinal: function(e, t) { + switch (t) { + case 'd': + case 'D': + case 'DDD': + return e + '日'; + default: + return e; + } + }, + relativeTime: { + future: '%s後', + past: '%s前', + s: '数秒', + ss: '%d秒', + m: '1分', + mm: '%d分', + h: '1時間', + hh: '%d時間', + d: '1日', + dd: '%d日', + M: '1ヶ月', + MM: '%dヶ月', + y: '1年', + yy: '%d年' } - return this.each((null == t ? hr : gr)(n, e, t)); - }, - delay: function(e) { - var t = this._id; - return arguments.length - ? this.each(('function' == typeof e ? Er : Tr)(t, e)) - : nr(this.node(), t).delay; - }, - duration: function(e) { - var t = this._id; - return arguments.length - ? this.each(('function' == typeof e ? Cr : Lr)(t, e)) - : nr(this.node(), t).duration; - }, - ease: function(e) { - var t = this._id; - return arguments.length - ? this.each(Pr(t, e)) - : nr(this.node(), t).ease; - }, - end: function() { - var e, - t, - n = this, - r = n._id, - o = n.size(); - return new Promise(function(i, a) { - var s = { value: a }, - c = { - value: function() { - 0 == --o && i(); - } - }; - n.each(function() { - var n = tr(this, r), - o = n.on; - o !== e && - ((t = (e = o).copy())._.cancel.push(s), - t._.interrupt.push(s), - t._.end.push(c)), - (n.on = t); - }); - }); - } - }; - var Gr = { time: null, delay: 0, duration: 250, ease: Xr }; - function Kr(e, t) { - for (var n; !(n = e.__transition) || !(n = n[t]); ) - if (!(e = e.parentNode)) return (Gr.time = Hn()), Gr; - return n; - } - (wt.prototype.interrupt = function(e) { - return this.each(function() { - sr(this, e); }); - }), - (wt.prototype.transition = function(e) { - var t, n; - e instanceof Br - ? ((t = e._id), (e = e._name)) - : ((t = Yr()), - ((n = Gr).time = Hn()), - (e = null == e ? null : e + '')); - for (var r = this._groups, o = r.length, i = 0; i < o; ++i) - for (var a, s = r[i], c = s.length, u = 0; u < c; ++u) - (a = s[u]) && Zn(a, e, t, u, s, n || Kr(a, t)); - return new Br(r, this._parents, e, t); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('jv', { + months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split( + '_' + ), + weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'), + weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'), + weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'), + longDateFormat: { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [pukul] HH.mm', + LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm' + }, + meridiemParse: /enjing|siyang|sonten|ndalu/, + meridiemHour: function(e, t) { + return ( + 12 === e && (e = 0), + 'enjing' === t + ? e + : 'siyang' === t + ? e >= 11 + ? e + : e + 12 + : 'sonten' === t || 'ndalu' === t + ? e + 12 + : void 0 + ); + }, + meridiem: function(e, t, n) { + return e < 11 + ? 'enjing' + : e < 15 + ? 'siyang' + : e < 19 + ? 'sonten' + : 'ndalu'; + }, + calendar: { + sameDay: '[Dinten puniko pukul] LT', + nextDay: '[Mbenjang pukul] LT', + nextWeek: 'dddd [pukul] LT', + lastDay: '[Kala wingi pukul] LT', + lastWeek: 'dddd [kepengker pukul] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'wonten ing %s', + past: '%s ingkang kepengker', + s: 'sawetawis detik', + ss: '%d detik', + m: 'setunggal menit', + mm: '%d menit', + h: 'setunggal jam', + hh: '%d jam', + d: 'sedinten', + dd: '%d dinten', + M: 'sewulan', + MM: '%d wulan', + y: 'setaun', + yy: '%d taun' + }, + week: { dow: 1, doy: 7 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('ka', { + months: { + standalone: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split( + '_' + ), + format: 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split( + '_' + ) + }, + monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split( + '_' + ), + weekdays: { + standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split( + '_' + ), + format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split( + '_' + ), + isFormat: /(წინა|შემდეგ)/ + }, + weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'), + weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'), + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A' + }, + calendar: { + sameDay: '[დღეს] LT[-ზე]', + nextDay: '[ხვალ] LT[-ზე]', + lastDay: '[გუშინ] LT[-ზე]', + nextWeek: '[შემდეგ] dddd LT[-ზე]', + lastWeek: '[წინა] dddd LT-ზე', + sameElse: 'L' + }, + relativeTime: { + future: function(e) { + return /(წამი|წუთი|საათი|წელი)/.test(e) + ? e.replace(/ი$/, 'ში') + : e + 'ში'; + }, + past: function(e) { + return /(წამი|წუთი|საათი|დღე|თვე)/.test(e) + ? e.replace(/(ი|ე)$/, 'ის წინ') + : /წელი/.test(e) + ? e.replace(/წელი$/, 'წლის წინ') + : void 0; + }, + s: 'რამდენიმე წამი', + ss: '%d წამი', + m: 'წუთი', + mm: '%d წუთი', + h: 'საათი', + hh: '%d საათი', + d: 'დღე', + dd: '%d დღე', + M: 'თვე', + MM: '%d თვე', + y: 'წელი', + yy: '%d წელი' + }, + dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/, + ordinal: function(e) { + return 0 === e + ? e + : 1 === e + ? e + '-ლი' + : e < 20 || (e <= 100 && e % 20 == 0) || e % 100 == 0 + ? 'მე-' + e + : e + '-ე'; + }, + week: { dow: 1, doy: 7 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = { + 0: '-ші', + 1: '-ші', + 2: '-ші', + 3: '-ші', + 4: '-ші', + 5: '-ші', + 6: '-шы', + 7: '-ші', + 8: '-ші', + 9: '-шы', + 10: '-шы', + 20: '-шы', + 30: '-шы', + 40: '-шы', + 50: '-ші', + 60: '-шы', + 70: '-ші', + 80: '-ші', + 90: '-шы', + 100: '-ші' + }; + e.defineLocale('kk', { + months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split( + '_' + ), + monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split( + '_' + ), + weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split( + '_' + ), + weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'), + weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[Бүгін сағат] LT', + nextDay: '[Ертең сағат] LT', + nextWeek: 'dddd [сағат] LT', + lastDay: '[Кеше сағат] LT', + lastWeek: '[Өткен аптаның] dddd [сағат] LT', + sameElse: 'L' + }, + relativeTime: { + future: '%s ішінде', + past: '%s бұрын', + s: 'бірнеше секунд', + ss: '%d секунд', + m: 'бір минут', + mm: '%d минут', + h: 'бір сағат', + hh: '%d сағат', + d: 'бір күн', + dd: '%d күн', + M: 'бір ай', + MM: '%d ай', + y: 'бір жыл', + yy: '%d жыл' + }, + dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/, + ordinal: function(e) { + return e + (t[e] || t[e % 10] || t[e >= 100 ? 100 : null]); + }, + week: { dow: 1, doy: 7 } }); - var $r = [null], - Qr = function(e, t) { - var n, - r, - o = e.__transition; - if (o) - for (r in ((t = null == t ? null : t + ''), o)) - if ((n = o[r]).state > 1 && n.name === t) - return new Br([[e]], $r, t, +r); - return null; - }, - Jr = function(e) { - return function() { - return e; + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = { + 1: '១', + 2: '២', + 3: '៣', + 4: '៤', + 5: '៥', + 6: '៦', + 7: '៧', + 8: '៨', + 9: '៩', + 0: '០' + }, + n = { + '១': '1', + '២': '2', + '៣': '3', + '៤': '4', + '៥': '5', + '៦': '6', + '៧': '7', + '៨': '8', + '៩': '9', + '០': '0' }; - }, - Zr = function(e, t, n) { - (this.target = e), (this.type = t), (this.selection = n); - }; - function eo() { - ut.stopImmediatePropagation(); - } - var to = function() { - ut.preventDefault(), ut.stopImmediatePropagation(); - }, - no = { name: 'drag' }, - ro = { name: 'space' }, - oo = { name: 'handle' }, - io = { name: 'center' }; - function ao(e) { - return [+e[0], +e[1]]; - } - function so(e) { - return [ao(e[0]), ao(e[1])]; - } - function co(e) { - return function(t) { - return Pn(t, ut.touches, e); - }; - } - var uo = { - name: 'x', - handles: ['w', 'e'].map(yo), - input: function(e, t) { - return null == e - ? null - : [ - [+e[0], t[0][1]], - [+e[1], t[1][1]] - ]; + e.defineLocale('km', { + months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split( + '_' + ), + monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split( + '_' + ), + weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), + weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'), + weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm' }, - output: function(e) { - return e && [e[0][0], e[1][0]]; - } - }, - lo = { - name: 'y', - handles: ['n', 's'].map(yo), - input: function(e, t) { - return null == e - ? null - : [ - [t[0][0], +e[0]], - [t[1][0], +e[1]] - ]; + meridiemParse: /ព្រឹក|ល្ងាច/, + isPM: function(e) { + return 'ល្ងាច' === e; }, - output: function(e) { - return e && [e[0][1], e[1][1]]; - } - }, - fo = { - name: 'xy', - handles: ['n', 'w', 'e', 's', 'nw', 'ne', 'sw', 'se'].map(yo), - input: function(e) { - return null == e ? null : so(e); + meridiem: function(e, t, n) { + return e < 12 ? 'ព្រឹក' : 'ល្ងាច'; }, - output: function(e) { - return e; + calendar: { + sameDay: '[ថ្ងៃនេះ ម៉ោង] LT', + nextDay: '[ស្អែក ម៉ោង] LT', + nextWeek: 'dddd [ម៉ោង] LT', + lastDay: '[ម្សិលមិញ ម៉ោង] LT', + lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT', + sameElse: 'L' + }, + relativeTime: { + future: '%sទៀត', + past: '%sមុន', + s: 'ប៉ុន្មានវិនាទី', + ss: '%d វិនាទី', + m: 'មួយនាទី', + mm: '%d នាទី', + h: 'មួយម៉ោង', + hh: '%d ម៉ោង', + d: 'មួយថ្ងៃ', + dd: '%d ថ្ងៃ', + M: 'មួយខែ', + MM: '%d ខែ', + y: 'មួយឆ្នាំ', + yy: '%d ឆ្នាំ' + }, + dayOfMonthOrdinalParse: /ទី\d{1,2}/, + ordinal: 'ទី%d', + preparse: function(e) { + return e.replace(/[១២៣៤៥៦៧៨៩០]/g, function(e) { + return n[e]; + }); + }, + postformat: function(e) { + return e.replace(/\d/g, function(e) { + return t[e]; + }); + }, + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = { + 1: '೧', + 2: '೨', + 3: '೩', + 4: '೪', + 5: '೫', + 6: '೬', + 7: '೭', + 8: '೮', + 9: '೯', + 0: '೦' + }, + n = { + '೧': '1', + '೨': '2', + '೩': '3', + '೪': '4', + '೫': '5', + '೬': '6', + '೭': '7', + '೮': '8', + '೯': '9', + '೦': '0' + }; + e.defineLocale('kn', { + months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split( + '_' + ), + monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split( + '_' + ), + weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'), + weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'), + longDateFormat: { + LT: 'A h:mm', + LTS: 'A h:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm', + LLLL: 'dddd, D MMMM YYYY, A h:mm' + }, + calendar: { + sameDay: '[ಇಂದು] LT', + nextDay: '[ನಾಳೆ] LT', + nextWeek: 'dddd, LT', + lastDay: '[ನಿನ್ನೆ] LT', + lastWeek: '[ಕೊನೆಯ] dddd, LT', + sameElse: 'L' + }, + relativeTime: { + future: '%s ನಂತರ', + past: '%s ಹಿಂದೆ', + s: 'ಕೆಲವು ಕ್ಷಣಗಳು', + ss: '%d ಸೆಕೆಂಡುಗಳು', + m: 'ಒಂದು ನಿಮಿಷ', + mm: '%d ನಿಮಿಷ', + h: 'ಒಂದು ಗಂಟೆ', + hh: '%d ಗಂಟೆ', + d: 'ಒಂದು ದಿನ', + dd: '%d ದಿನ', + M: 'ಒಂದು ತಿಂಗಳು', + MM: '%d ತಿಂಗಳು', + y: 'ಒಂದು ವರ್ಷ', + yy: '%d ವರ್ಷ' + }, + preparse: function(e) { + return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function(e) { + return n[e]; + }); + }, + postformat: function(e) { + return e.replace(/\d/g, function(e) { + return t[e]; + }); + }, + meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/, + meridiemHour: function(e, t) { + return ( + 12 === e && (e = 0), + 'ರಾತ್ರಿ' === t + ? e < 4 + ? e + : e + 12 + : 'ಬೆಳಿಗ್ಗೆ' === t + ? e + : 'ಮಧ್ಯಾಹ್ನ' === t + ? e >= 10 + ? e + : e + 12 + : 'ಸಂಜೆ' === t + ? e + 12 + : void 0 + ); + }, + meridiem: function(e, t, n) { + return e < 4 + ? 'ರಾತ್ರಿ' + : e < 10 + ? 'ಬೆಳಿಗ್ಗೆ' + : e < 17 + ? 'ಮಧ್ಯಾಹ್ನ' + : e < 20 + ? 'ಸಂಜೆ' + : 'ರಾತ್ರಿ'; + }, + dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/, + ordinal: function(e) { + return e + 'ನೇ'; + }, + week: { dow: 0, doy: 6 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('ko', { + months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split( + '_' + ), + monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split( + '_' + ), + weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split( + '_' + ), + weekdaysShort: '일_월_화_수_목_금_토'.split('_'), + weekdaysMin: '일_월_화_수_목_금_토'.split('_'), + longDateFormat: { + LT: 'A h:mm', + LTS: 'A h:mm:ss', + L: 'YYYY.MM.DD.', + LL: 'YYYY년 MMMM D일', + LLL: 'YYYY년 MMMM D일 A h:mm', + LLLL: 'YYYY년 MMMM D일 dddd A h:mm', + l: 'YYYY.MM.DD.', + ll: 'YYYY년 MMMM D일', + lll: 'YYYY년 MMMM D일 A h:mm', + llll: 'YYYY년 MMMM D일 dddd A h:mm' + }, + calendar: { + sameDay: '오늘 LT', + nextDay: '내일 LT', + nextWeek: 'dddd LT', + lastDay: '어제 LT', + lastWeek: '지난주 dddd LT', + sameElse: 'L' + }, + relativeTime: { + future: '%s 후', + past: '%s 전', + s: '몇 초', + ss: '%d초', + m: '1분', + mm: '%d분', + h: '한 시간', + hh: '%d시간', + d: '하루', + dd: '%d일', + M: '한 달', + MM: '%d달', + y: '일 년', + yy: '%d년' + }, + dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/, + ordinal: function(e, t) { + switch (t) { + case 'd': + case 'D': + case 'DDD': + return e + '일'; + case 'M': + return e + '월'; + case 'w': + case 'W': + return e + '주'; + default: + return e; + } + }, + meridiemParse: /오전|오후/, + isPM: function(e) { + return '오후' === e; + }, + meridiem: function(e, t, n) { + return e < 12 ? '오전' : '오후'; } - }, - po = { - overlay: 'crosshair', - selection: 'move', - n: 'ns-resize', - e: 'ew-resize', - s: 'ns-resize', - w: 'ew-resize', - nw: 'nwse-resize', - ne: 'nesw-resize', - se: 'nwse-resize', - sw: 'nesw-resize' - }, - ho = { e: 'w', w: 'e', nw: 'ne', ne: 'nw', se: 'sw', sw: 'se' }, - go = { n: 's', s: 'n', nw: 'sw', ne: 'se', se: 'ne', sw: 'nw' }, - mo = { - overlay: 1, - selection: 1, - n: null, - e: 1, - s: null, - w: -1, - nw: -1, - ne: 1, - se: 1, - sw: -1 - }, - bo = { - overlay: 1, - selection: 1, - n: -1, - e: null, - s: 1, - w: null, - nw: -1, - ne: -1, - se: 1, - sw: 1 - }; - function yo(e) { - return { type: e }; - } - function vo() { - return !ut.ctrlKey && !ut.button; - } - function _o() { - var e = this.ownerSVGElement || this; - return e.hasAttribute('viewBox') - ? [ - [(e = e.viewBox.baseVal).x, e.y], - [e.x + e.width, e.y + e.height] - ] - : [ - [0, 0], - [e.width.baseVal.value, e.height.baseVal.value] - ]; - } - function xo() { - return navigator.maxTouchPoints || 'ontouchstart' in this; - } - function wo(e) { - for (; !e.__brush; ) if (!(e = e.parentNode)) return; - return e.__brush; - } - function Mo(e) { - return e[0][0] === e[1][0] || e[0][1] === e[1][1]; - } - function ko(e) { - var t = e.__brush; - return t ? t.dim.output(t.selection) : null; - } - function So() { - return Eo(uo); - } - function Ao() { - return Eo(lo); - } - var Oo = function() { - return Eo(fo); - }; - function Eo(e) { - var t, - n = _o, - r = vo, - o = xo, - i = !0, - a = fe('start', 'brush', 'end'), - s = 6; - function c(t) { - var n = t - .property('__brush', g) - .selectAll('.overlay') - .data([yo('overlay')]); - n - .enter() - .append('rect') - .attr('class', 'overlay') - .attr('pointer-events', 'all') - .attr('cursor', po.overlay) - .merge(n) - .each(function() { - var e = wo(this).extent; - Mt(this) - .attr('x', e[0][0]) - .attr('y', e[0][1]) - .attr('width', e[1][0] - e[0][0]) - .attr('height', e[1][1] - e[0][1]); - }), - t - .selectAll('.selection') - .data([yo('selection')]) - .enter() - .append('rect') - .attr('class', 'selection') - .attr('cursor', po.selection) - .attr('fill', '#777') - .attr('fill-opacity', 0.3) - .attr('stroke', '#fff') - .attr('shape-rendering', 'crispEdges'); - var r = t.selectAll('.handle').data(e.handles, function(e) { - return e.type; - }); - r.exit().remove(), - r - .enter() - .append('rect') - .attr('class', function(e) { - return 'handle handle--' + e.type; + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = { + 1: '١', + 2: '٢', + 3: '٣', + 4: '٤', + 5: '٥', + 6: '٦', + 7: '٧', + 8: '٨', + 9: '٩', + 0: '٠' + }, + n = { + '١': '1', + '٢': '2', + '٣': '3', + '٤': '4', + '٥': '5', + '٦': '6', + '٧': '7', + '٨': '8', + '٩': '9', + '٠': '0' + }, + r = [ + 'کانونی دووەم', + 'شوبات', + 'ئازار', + 'نیسان', + 'ئایار', + 'حوزەیران', + 'تەمموز', + 'ئاب', + 'ئەیلوول', + 'تشرینی یەكەم', + 'تشرینی دووەم', + 'كانونی یەکەم' + ]; + e.defineLocale('ku', { + months: r, + monthsShort: r, + weekdays: 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split( + '_' + ), + weekdaysShort: 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split( + '_' + ), + weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm' + }, + meridiemParse: /ئێواره‌|به‌یانی/, + isPM: function(e) { + return /ئێواره‌/.test(e); + }, + meridiem: function(e, t, n) { + return e < 12 ? 'به‌یانی' : 'ئێواره‌'; + }, + calendar: { + sameDay: '[ئه‌مرۆ كاتژمێر] LT', + nextDay: '[به‌یانی كاتژمێر] LT', + nextWeek: 'dddd [كاتژمێر] LT', + lastDay: '[دوێنێ كاتژمێر] LT', + lastWeek: 'dddd [كاتژمێر] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'له‌ %s', + past: '%s', + s: 'چه‌ند چركه‌یه‌ك', + ss: 'چركه‌ %d', + m: 'یه‌ك خوله‌ك', + mm: '%d خوله‌ك', + h: 'یه‌ك كاتژمێر', + hh: '%d كاتژمێر', + d: 'یه‌ك ڕۆژ', + dd: '%d ڕۆژ', + M: 'یه‌ك مانگ', + MM: '%d مانگ', + y: 'یه‌ك ساڵ', + yy: '%d ساڵ' + }, + preparse: function(e) { + return e + .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function(e) { + return n[e]; }) - .attr('cursor', function(e) { - return po[e.type]; - }), - t - .each(u) - .attr('fill', 'none') - .attr('pointer-events', 'all') - .on('mousedown.brush', d) - .filter(o) - .on('touchstart.brush', d) - .on('touchmove.brush', p) - .on('touchend.brush touchcancel.brush', h) - .style('touch-action', 'none') - .style('-webkit-tap-highlight-color', 'rgba(0,0,0,0)'); - } - function u() { - var e = Mt(this), - t = wo(this).selection; - t - ? (e - .selectAll('.selection') - .style('display', null) - .attr('x', t[0][0]) - .attr('y', t[0][1]) - .attr('width', t[1][0] - t[0][0]) - .attr('height', t[1][1] - t[0][1]), - e - .selectAll('.handle') - .style('display', null) - .attr('x', function(e) { - return 'e' === e.type[e.type.length - 1] - ? t[1][0] - s / 2 - : t[0][0] - s / 2; - }) - .attr('y', function(e) { - return 's' === e.type[0] ? t[1][1] - s / 2 : t[0][1] - s / 2; - }) - .attr('width', function(e) { - return 'n' === e.type || 's' === e.type - ? t[1][0] - t[0][0] + s - : s; - }) - .attr('height', function(e) { - return 'e' === e.type || 'w' === e.type - ? t[1][1] - t[0][1] + s - : s; - })) - : e - .selectAll('.selection,.handle') - .style('display', 'none') - .attr('x', null) - .attr('y', null) - .attr('width', null) - .attr('height', null); - } - function l(e, t, n) { - return (!n && e.__brush.emitter) || new f(e, t); - } - function f(e, t) { - (this.that = e), - (this.args = t), - (this.state = e.__brush), - (this.active = 0); + .replace(/،/g, ','); + }, + postformat: function(e) { + return e + .replace(/\d/g, function(e) { + return t[e]; + }) + .replace(/,/g, '،'); + }, + week: { dow: 6, doy: 12 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = { + 0: '-чү', + 1: '-чи', + 2: '-чи', + 3: '-чү', + 4: '-чү', + 5: '-чи', + 6: '-чы', + 7: '-чи', + 8: '-чи', + 9: '-чу', + 10: '-чу', + 20: '-чы', + 30: '-чу', + 40: '-чы', + 50: '-чү', + 60: '-чы', + 70: '-чи', + 80: '-чи', + 90: '-чу', + 100: '-чү' + }; + e.defineLocale('ky', { + months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split( + '_' + ), + monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split( + '_' + ), + weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split( + '_' + ), + weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'), + weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[Бүгүн саат] LT', + nextDay: '[Эртең саат] LT', + nextWeek: 'dddd [саат] LT', + lastDay: '[Кечээ саат] LT', + lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT', + sameElse: 'L' + }, + relativeTime: { + future: '%s ичинде', + past: '%s мурун', + s: 'бирнече секунд', + ss: '%d секунд', + m: 'бир мүнөт', + mm: '%d мүнөт', + h: 'бир саат', + hh: '%d саат', + d: 'бир күн', + dd: '%d күн', + M: 'бир ай', + MM: '%d ай', + y: 'бир жыл', + yy: '%d жыл' + }, + dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/, + ordinal: function(e) { + return e + (t[e] || t[e % 10] || t[e >= 100 ? 100 : null]); + }, + week: { dow: 1, doy: 7 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + function t(e, t, n, r) { + var o = { + m: ['eng Minutt', 'enger Minutt'], + h: ['eng Stonn', 'enger Stonn'], + d: ['een Dag', 'engem Dag'], + M: ['ee Mount', 'engem Mount'], + y: ['ee Joer', 'engem Joer'] + }; + return t ? o[n][0] : o[n][1]; } - function d() { - if ((!t || ut.touches) && r.apply(this, arguments)) { - var n, - o, - a, - s, - c, - f, - d, - p, - h, - g, - m, - b = this, - y = ut.target.__data__.type, - v = - 'selection' === (i && ut.metaKey ? (y = 'overlay') : y) - ? no - : i && ut.altKey - ? io - : oo, - _ = e === lo ? null : mo[y], - x = e === uo ? null : bo[y], - w = wo(b), - M = w.extent, - k = w.selection, - S = M[0][0], - A = M[0][1], - O = M[1][0], - E = M[1][1], - T = 0, - C = 0, - L = _ && x && i && ut.shiftKey, - P = ut.touches ? co(ut.changedTouches[0].identifier) : Dn, - D = P(b), - z = D, - N = l(b, arguments, !0).beforestart(); - 'overlay' === y - ? (k && (h = !0), - (w.selection = k = [ - [(n = e === lo ? S : D[0]), (a = e === uo ? A : D[1])], - [(c = e === lo ? O : n), (d = e === uo ? E : a)] - ])) - : ((n = k[0][0]), (a = k[0][1]), (c = k[1][0]), (d = k[1][1])), - (o = n), - (s = a), - (f = c), - (p = d); - var j = Mt(b).attr('pointer-events', 'none'), - R = j.selectAll('.overlay').attr('cursor', po[y]); - if (ut.touches) (N.moved = F), (N.ended = B); - else { - var I = Mt(ut.view) - .on('mousemove.brush', F, !0) - .on('mouseup.brush', B, !0); - i && I.on('keydown.brush', H, !0).on('keyup.brush', Y, !0), - At(ut.view); - } - eo(), sr(b), u.call(b), N.start(); - } - function F() { - var e = P(b); - !L || - g || - m || - (Math.abs(e[0] - z[0]) > Math.abs(e[1] - z[1]) - ? (m = !0) - : (g = !0)), - (z = e), - (h = !0), - to(), - q(); - } - function q() { - var e; - switch (((T = z[0] - D[0]), (C = z[1] - D[1]), v)) { - case ro: - case no: - _ && - ((T = Math.max(S - n, Math.min(O - c, T))), - (o = n + T), - (f = c + T)), - x && - ((C = Math.max(A - a, Math.min(E - d, C))), - (s = a + C), - (p = d + C)); - break; - case oo: - _ < 0 - ? ((T = Math.max(S - n, Math.min(O - n, T))), - (o = n + T), - (f = c)) - : _ > 0 && - ((T = Math.max(S - c, Math.min(O - c, T))), - (o = n), - (f = c + T)), - x < 0 - ? ((C = Math.max(A - a, Math.min(E - a, C))), - (s = a + C), - (p = d)) - : x > 0 && - ((C = Math.max(A - d, Math.min(E - d, C))), - (s = a), - (p = d + C)); - break; - case io: - _ && - ((o = Math.max(S, Math.min(O, n - T * _))), - (f = Math.max(S, Math.min(O, c + T * _)))), - x && - ((s = Math.max(A, Math.min(E, a - C * x))), - (p = Math.max(A, Math.min(E, d + C * x)))); - } - f < o && - ((_ *= -1), - (e = n), - (n = c), - (c = e), - (e = o), - (o = f), - (f = e), - y in ho && R.attr('cursor', po[(y = ho[y])])), - p < s && - ((x *= -1), - (e = a), - (a = d), - (d = e), - (e = s), - (s = p), - (p = e), - y in go && R.attr('cursor', po[(y = go[y])])), - w.selection && (k = w.selection), - g && ((o = k[0][0]), (f = k[1][0])), - m && ((s = k[0][1]), (p = k[1][1])), - (k[0][0] === o && - k[0][1] === s && - k[1][0] === f && - k[1][1] === p) || - ((w.selection = [ - [o, s], - [f, p] - ]), - u.call(b), - N.brush()); - } - function B() { - if ((eo(), ut.touches)) { - if (ut.touches.length) return; - t && clearTimeout(t), - (t = setTimeout(function() { - t = null; - }, 500)); - } else - Ot(ut.view, h), - I.on( - 'keydown.brush keyup.brush mousemove.brush mouseup.brush', - null - ); - j.attr('pointer-events', 'all'), - R.attr('cursor', po.overlay), - w.selection && (k = w.selection), - Mo(k) && ((w.selection = null), u.call(b)), - N.end(); + function n(e) { + if (((e = parseInt(e, 10)), isNaN(e))) return !1; + if (e < 0) return !0; + if (e < 10) return 4 <= e && e <= 7; + if (e < 100) { + var t = e % 10; + return n(0 === t ? e / 10 : t); } - function H() { - switch (ut.keyCode) { - case 16: - L = _ && x; - break; - case 18: - v === oo && - (_ && ((c = f - T * _), (n = o + T * _)), - x && ((d = p - C * x), (a = s + C * x)), - (v = io), - q()); - break; - case 32: - (v !== oo && v !== io) || - (_ < 0 ? (c = f - T) : _ > 0 && (n = o - T), - x < 0 ? (d = p - C) : x > 0 && (a = s - C), - (v = ro), - R.attr('cursor', po.selection), - q()); - break; - default: - return; - } - to(); + if (e < 1e4) { + for (; e >= 10; ) e /= 10; + return n(e); } - function Y() { - switch (ut.keyCode) { - case 16: - L && ((g = m = L = !1), q()); - break; - case 18: - v === io && - (_ < 0 ? (c = f) : _ > 0 && (n = o), - x < 0 ? (d = p) : x > 0 && (a = s), - (v = oo), - q()); - break; - case 32: - v === ro && - (ut.altKey - ? (_ && ((c = f - T * _), (n = o + T * _)), - x && ((d = p - C * x), (a = s + C * x)), - (v = io)) - : (_ < 0 ? (c = f) : _ > 0 && (n = o), - x < 0 ? (d = p) : x > 0 && (a = s), - (v = oo)), - R.attr('cursor', po[y]), - q()); - break; - default: - return; + return n((e /= 1e3)); + } + e.defineLocale('lb', { + months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split( + '_' + ), + monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split( + '_' + ), + weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'), + weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm [Auer]', + LTS: 'H:mm:ss [Auer]', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm [Auer]', + LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]' + }, + calendar: { + sameDay: '[Haut um] LT', + sameElse: 'L', + nextDay: '[Muer um] LT', + nextWeek: 'dddd [um] LT', + lastDay: '[Gëschter um] LT', + lastWeek: function() { + switch (this.day()) { + case 2: + case 4: + return '[Leschten] dddd [um] LT'; + default: + return '[Leschte] dddd [um] LT'; + } } - to(); + }, + relativeTime: { + future: function(e) { + return n(e.substr(0, e.indexOf(' '))) ? 'a ' + e : 'an ' + e; + }, + past: function(e) { + return n(e.substr(0, e.indexOf(' '))) + ? 'viru ' + e + : 'virun ' + e; + }, + s: 'e puer Sekonnen', + ss: '%d Sekonnen', + m: t, + mm: '%d Minutten', + h: t, + hh: '%d Stonnen', + d: t, + dd: '%d Deeg', + M: t, + MM: '%d Méint', + y: t, + yy: '%d Joer' + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('lo', { + months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split( + '_' + ), + monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split( + '_' + ), + weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), + weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), + weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'ວັນdddd D MMMM YYYY HH:mm' + }, + meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/, + isPM: function(e) { + return 'ຕອນແລງ' === e; + }, + meridiem: function(e, t, n) { + return e < 12 ? 'ຕອນເຊົ້າ' : 'ຕອນແລງ'; + }, + calendar: { + sameDay: '[ມື້ນີ້ເວລາ] LT', + nextDay: '[ມື້ອື່ນເວລາ] LT', + nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT', + lastDay: '[ມື້ວານນີ້ເວລາ] LT', + lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'ອີກ %s', + past: '%sຜ່ານມາ', + s: 'ບໍ່ເທົ່າໃດວິນາທີ', + ss: '%d ວິນາທີ', + m: '1 ນາທີ', + mm: '%d ນາທີ', + h: '1 ຊົ່ວໂມງ', + hh: '%d ຊົ່ວໂມງ', + d: '1 ມື້', + dd: '%d ມື້', + M: '1 ເດືອນ', + MM: '%d ເດືອນ', + y: '1 ປີ', + yy: '%d ປີ' + }, + dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/, + ordinal: function(e) { + return 'ທີ່' + e; } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = { + ss: 'sekundė_sekundžių_sekundes', + m: 'minutė_minutės_minutę', + mm: 'minutės_minučių_minutes', + h: 'valanda_valandos_valandą', + hh: 'valandos_valandų_valandas', + d: 'diena_dienos_dieną', + dd: 'dienos_dienų_dienas', + M: 'mėnuo_mėnesio_mėnesį', + MM: 'mėnesiai_mėnesių_mėnesius', + y: 'metai_metų_metus', + yy: 'metai_metų_metus' + }; + function n(e, t, n, r) { + return t ? o(n)[0] : r ? o(n)[1] : o(n)[2]; } - function p() { - l(this, arguments).moved(); + function r(e) { + return e % 10 == 0 || (e > 10 && e < 20); } - function h() { - l(this, arguments).ended(); + function o(e) { + return t[e].split('_'); } - function g() { - var t = this.__brush || { selection: null }; - return (t.extent = so(n.apply(this, arguments))), (t.dim = e), t; + function i(e, t, i, a) { + var s = e + ' '; + return 1 === e + ? s + n(0, t, i[0], a) + : t + ? s + (r(e) ? o(i)[1] : o(i)[0]) + : a + ? s + o(i)[1] + : s + (r(e) ? o(i)[1] : o(i)[2]); } - return ( - (c.move = function(t, n) { - t.selection - ? t - .on('start.brush', function() { - l(this, arguments) - .beforestart() - .start(); - }) - .on('interrupt.brush end.brush', function() { - l(this, arguments).end(); - }) - .tween('brush', function() { - var t = this, - r = t.__brush, - o = l(t, arguments), - i = r.selection, - a = e.input( - 'function' == typeof n ? n.apply(this, arguments) : n, - r.extent - ), - s = Tn(i, a); - function c(e) { - (r.selection = 1 === e && null === a ? null : s(e)), - u.call(t), - o.brush(); - } - return null !== i && null !== a ? c : c(1); - }) - : t.each(function() { - var t = this, - r = arguments, - o = t.__brush, - i = e.input( - 'function' == typeof n ? n.apply(t, r) : n, - o.extent - ), - a = l(t, r).beforestart(); - sr(t), - (o.selection = null === i ? null : i), - u.call(t), - a - .start() - .brush() - .end(); - }); - }), - (c.clear = function(e) { - c.move(e, null); - }), - (f.prototype = { - beforestart: function() { - return ( - 1 == ++this.active && - ((this.state.emitter = this), (this.starting = !0)), - this - ); - }, - start: function() { - return ( - this.starting - ? ((this.starting = !1), this.emit('start')) - : this.emit('brush'), - this - ); - }, - brush: function() { - return this.emit('brush'), this; - }, - end: function() { - return ( - 0 == --this.active && - (delete this.state.emitter, this.emit('end')), - this - ); + e.defineLocale('lt', { + months: { + format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split( + '_' + ), + standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split( + '_' + ), + isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/ + }, + monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split( + '_' + ), + weekdays: { + format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split( + '_' + ), + standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split( + '_' + ), + isFormat: /dddd HH:mm/ + }, + weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'), + weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'YYYY [m.] MMMM D [d.]', + LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]', + LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]', + l: 'YYYY-MM-DD', + ll: 'YYYY [m.] MMMM D [d.]', + lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]', + llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]' + }, + calendar: { + sameDay: '[Šiandien] LT', + nextDay: '[Rytoj] LT', + nextWeek: 'dddd LT', + lastDay: '[Vakar] LT', + lastWeek: '[Praėjusį] dddd LT', + sameElse: 'L' + }, + relativeTime: { + future: 'po %s', + past: 'prieš %s', + s: function(e, t, n, r) { + return t + ? 'kelios sekundės' + : r + ? 'kelių sekundžių' + : 'kelias sekundes'; }, - emit: function(t) { - gt(new Zr(c, t, e.output(this.state.selection)), a.apply, a, [ - t, - this.that, - this.args - ]); - } - }), - (c.extent = function(e) { - return arguments.length - ? ((n = 'function' == typeof e ? e : Jr(so(e))), c) - : n; - }), - (c.filter = function(e) { - return arguments.length - ? ((r = 'function' == typeof e ? e : Jr(!!e)), c) - : r; - }), - (c.touchable = function(e) { - return arguments.length - ? ((o = 'function' == typeof e ? e : Jr(!!e)), c) - : o; - }), - (c.handleSize = function(e) { - return arguments.length ? ((s = +e), c) : s; - }), - (c.keyModifiers = function(e) { - return arguments.length ? ((i = !!e), c) : i; - }), - (c.on = function() { - var e = a.on.apply(a, arguments); - return e === a ? c : e; - }), - c - ); - } - var To = Math.cos, - Co = Math.sin, - Lo = Math.PI, - Po = Lo / 2, - Do = 2 * Lo, - zo = Math.max; - function No(e) { - return function(t, n) { - return e( - t.source.value + t.target.value, - n.source.value + n.target.value - ); + ss: i, + m: n, + mm: i, + h: n, + hh: i, + d: n, + dd: i, + M: n, + MM: i, + y: n, + yy: i + }, + dayOfMonthOrdinalParse: /\d{1,2}-oji/, + ordinal: function(e) { + return e + '-oji'; + }, + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = { + ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'), + m: 'minūtes_minūtēm_minūte_minūtes'.split('_'), + mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'), + h: 'stundas_stundām_stunda_stundas'.split('_'), + hh: 'stundas_stundām_stunda_stundas'.split('_'), + d: 'dienas_dienām_diena_dienas'.split('_'), + dd: 'dienas_dienām_diena_dienas'.split('_'), + M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), + MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), + y: 'gada_gadiem_gads_gadi'.split('_'), + yy: 'gada_gadiem_gads_gadi'.split('_') }; - } - var jo = function() { - var e = 0, - t = null, - n = null, - r = null; - function o(o) { - var i, - a, - s, - c, - u, - l, - f = o.length, - d = [], - p = M(f), - h = [], - g = [], - m = (g.groups = new Array(f)), - b = new Array(f * f); - for (i = 0, u = -1; ++u < f; ) { - for (a = 0, l = -1; ++l < f; ) a += o[u][l]; - d.push(a), h.push(M(f)), (i += a); - } - for ( - t && - p.sort(function(e, n) { - return t(d[e], d[n]); - }), - n && - h.forEach(function(e, t) { - e.sort(function(e, r) { - return n(o[t][e], o[t][r]); - }); - }), - c = (i = zo(0, Do - e * f) / i) ? e : Do / f, - a = 0, - u = -1; - ++u < f; - - ) { - for (s = a, l = -1; ++l < f; ) { - var y = p[u], - v = h[y][l], - _ = o[y][v], - x = a, - w = (a += _ * i); - b[v * f + y] = { - index: y, - subindex: v, - startAngle: x, - endAngle: w, - value: _ - }; - } - (m[y] = { index: y, startAngle: s, endAngle: a, value: d[y] }), - (a += c); - } - for (u = -1; ++u < f; ) - for (l = u - 1; ++l < f; ) { - var k = b[l * f + u], - S = b[u * f + l]; - (k.value || S.value) && - g.push( - k.value < S.value - ? { source: S, target: k } - : { source: k, target: S } - ); - } - return r ? g.sort(r) : g; - } - return ( - (o.padAngle = function(t) { - return arguments.length ? ((e = zo(0, t)), o) : e; - }), - (o.sortGroups = function(e) { - return arguments.length ? ((t = e), o) : t; - }), - (o.sortSubgroups = function(e) { - return arguments.length ? ((n = e), o) : n; - }), - (o.sortChords = function(e) { - return arguments.length - ? (null == e ? (r = null) : ((r = No(e))._ = e), o) - : r && r._; - }), - o - ); - }, - Ro = Array.prototype.slice, - Io = function(e) { - return function() { - return e; - }; - }, - Fo = Math.PI, - qo = 2 * Fo, - Bo = qo - 1e-6; - function Ho() { - (this._x0 = this._y0 = this._x1 = this._y1 = null), (this._ = ''); - } - function Yo() { - return new Ho(); - } - Ho.prototype = Yo.prototype = { - constructor: Ho, - 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, o, i) { - this._ += - 'C' + - +e + - ',' + - +t + - ',' + - +n + - ',' + - +r + - ',' + - (this._x1 = +o) + - ',' + - (this._y1 = +i); - }, - arcTo: function(e, t, n, r, o) { - (e = +e), (t = +t), (n = +n), (r = +r), (o = +o); - var i = this._x1, - a = this._y1, - s = n - e, - c = r - t, - u = i - e, - l = a - t, - f = u * u + l * l; - if (o < 0) throw new Error('negative radius: ' + o); - if (null === this._x1) - this._ += 'M' + (this._x1 = e) + ',' + (this._y1 = t); - else if (f > 1e-6) - if (Math.abs(l * s - c * u) > 1e-6 && o) { - var d = n - i, - p = r - a, - h = s * s + c * c, - g = d * d + p * p, - m = Math.sqrt(h), - b = Math.sqrt(f), - y = - o * Math.tan((Fo - Math.acos((h + f - g) / (2 * m * b))) / 2), - v = y / b, - _ = y / m; - Math.abs(v - 1) > 1e-6 && - (this._ += 'L' + (e + v * u) + ',' + (t + v * l)), - (this._ += - 'A' + - o + - ',' + - o + - ',0,0,' + - +(l * d > u * p) + - ',' + - (this._x1 = e + _ * s) + - ',' + - (this._y1 = t + _ * c)); - } else this._ += 'L' + (this._x1 = e) + ',' + (this._y1 = t); - else; - }, - arc: function(e, t, n, r, o, i) { - (e = +e), (t = +t), (i = !!i); - var a = (n = +n) * Math.cos(r), - s = n * Math.sin(r), - c = e + a, - u = t + s, - l = 1 ^ i, - f = i ? r - o : o - r; - if (n < 0) throw new Error('negative radius: ' + n); - null === this._x1 - ? (this._ += 'M' + c + ',' + u) - : (Math.abs(this._x1 - c) > 1e-6 || - Math.abs(this._y1 - u) > 1e-6) && - (this._ += 'L' + c + ',' + u), - n && - (f < 0 && (f = (f % qo) + qo), - f > Bo - ? (this._ += - 'A' + - n + - ',' + - n + - ',0,1,' + - l + - ',' + - (e - a) + - ',' + - (t - s) + - 'A' + - n + - ',' + - n + - ',0,1,' + - l + - ',' + - (this._x1 = c) + - ',' + - (this._y1 = u)) - : f > 1e-6 && - (this._ += - 'A' + - n + - ',' + - n + - ',0,' + - +(f >= Fo) + - ',' + - l + - ',' + - (this._x1 = e + n * Math.cos(o)) + - ',' + - (this._y1 = t + n * Math.sin(o)))); - }, - 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._; + function n(e, t, n) { + return n + ? t % 10 == 1 && t % 100 != 11 + ? e[2] + : e[3] + : t % 10 == 1 && t % 100 != 11 + ? e[0] + : e[1]; } - }; - var Wo = Yo; - function Vo(e) { - return e.source; - } - function Uo(e) { - return e.target; - } - function Xo(e) { - return e.radius; - } - function Go(e) { - return e.startAngle; - } - function Ko(e) { - return e.endAngle; - } - var $o = function() { - var e = Vo, - t = Uo, - n = Xo, - r = Go, - o = Ko, - i = null; - function a() { - var a, - s = Ro.call(arguments), - c = e.apply(this, s), - u = t.apply(this, s), - l = +n.apply(this, ((s[0] = c), s)), - f = r.apply(this, s) - Po, - d = o.apply(this, s) - Po, - p = l * To(f), - h = l * Co(f), - g = +n.apply(this, ((s[0] = u), s)), - m = r.apply(this, s) - Po, - b = o.apply(this, s) - Po; - if ( - (i || (i = a = Wo()), - i.moveTo(p, h), - i.arc(0, 0, l, f, d), - (f === m && d === b) || - (i.quadraticCurveTo(0, 0, g * To(m), g * Co(m)), - i.arc(0, 0, g, m, b)), - i.quadraticCurveTo(0, 0, p, h), - i.closePath(), - a) - ) - return (i = null), a + '' || null; + function r(e, r, o) { + return e + ' ' + n(t[o], e, r); } - return ( - (a.radius = function(e) { - return arguments.length - ? ((n = 'function' == typeof e ? e : Io(+e)), a) - : n; - }), - (a.startAngle = function(e) { - return arguments.length - ? ((r = 'function' == typeof e ? e : Io(+e)), a) - : r; - }), - (a.endAngle = function(e) { - return arguments.length - ? ((o = 'function' == typeof e ? e : Io(+e)), a) - : o; - }), - (a.source = function(t) { - return arguments.length ? ((e = t), a) : e; - }), - (a.target = function(e) { - return arguments.length ? ((t = e), a) : t; - }), - (a.context = function(e) { - return arguments.length ? ((i = null == e ? null : e), a) : i; - }), - a - ); - }; - function Qo() {} - function Jo(e, t) { - var n = new Qo(); - if (e instanceof Qo) - e.each(function(e, t) { - n.set(t, e); - }); - else if (Array.isArray(e)) { - var r, - o = -1, - i = e.length; - if (null == t) for (; ++o < i; ) n.set(o, e[o]); - else for (; ++o < i; ) n.set(t((r = e[o]), o, e), r); - } else if (e) for (var a in e) n.set(a, e[a]); - return n; - } - Qo.prototype = Jo.prototype = { - constructor: Qo, - has: function(e) { - return '$' + e in this; - }, - get: function(e) { - return this['$' + e]; - }, - set: function(e, t) { - return (this['$' + e] = t), this; - }, - remove: function(e) { - var t = '$' + e; - return t in this && delete this[t]; - }, - clear: function() { - for (var e in this) '$' === e[0] && delete this[e]; - }, - keys: function() { - var e = []; - for (var t in this) '$' === t[0] && e.push(t.slice(1)); - return e; - }, - values: function() { - var e = []; - for (var t in this) '$' === t[0] && e.push(this[t]); - return e; - }, - entries: function() { - var e = []; - for (var t in this) - '$' === t[0] && e.push({ key: t.slice(1), value: this[t] }); - return e; - }, - size: function() { - var e = 0; - for (var t in this) '$' === t[0] && ++e; - return e; - }, - empty: function() { - for (var e in this) if ('$' === e[0]) return !1; - return !0; - }, - each: function(e) { - for (var t in this) '$' === t[0] && e(this[t], t.slice(1), this); + function o(e, r, o) { + return n(t[o], e, r); } - }; - var Zo = Jo, - ei = function() { - var e, - t, - n, - r = [], - o = []; - function i(n, o, a, s) { - if (o >= r.length) - return null != e && n.sort(e), null != t ? t(n) : n; - for ( - var c, u, l, f = -1, d = n.length, p = r[o++], h = Zo(), g = a(); - ++f < d; - - ) - (l = h.get((c = p((u = n[f])) + ''))) ? l.push(u) : h.set(c, [u]); + e.defineLocale('lv', { + months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split( + '_' + ), + weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split( + '_' + ), + weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'), + weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY.', + LL: 'YYYY. [gada] D. MMMM', + LLL: 'YYYY. [gada] D. MMMM, HH:mm', + LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm' + }, + calendar: { + sameDay: '[Šodien pulksten] LT', + nextDay: '[Rīt pulksten] LT', + nextWeek: 'dddd [pulksten] LT', + lastDay: '[Vakar pulksten] LT', + lastWeek: '[Pagājušā] dddd [pulksten] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'pēc %s', + past: 'pirms %s', + s: function(e, t) { + return t ? 'dažas sekundes' : 'dažām sekundēm'; + }, + ss: r, + m: o, + mm: r, + h: o, + hh: r, + d: o, + dd: r, + M: o, + MM: r, + y: o, + yy: r + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = { + words: { + ss: ['sekund', 'sekunda', 'sekundi'], + m: ['jedan minut', 'jednog minuta'], + mm: ['minut', 'minuta', 'minuta'], + h: ['jedan sat', 'jednog sata'], + hh: ['sat', 'sata', 'sati'], + dd: ['dan', 'dana', 'dana'], + MM: ['mjesec', 'mjeseca', 'mjeseci'], + yy: ['godina', 'godine', 'godina'] + }, + correctGrammaticalCase: function(e, t) { + return 1 === e ? t[0] : e >= 2 && e <= 4 ? t[1] : t[2]; + }, + translate: function(e, n, r) { + var o = t.words[r]; + return 1 === r.length + ? n + ? o[0] + : o[1] + : e + ' ' + t.correctGrammaticalCase(e, o); + } + }; + e.defineLocale('me', { + months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split( + '_' + ), + monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( + '_' + ), + weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), + weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm' + }, + calendar: { + sameDay: '[danas u] LT', + nextDay: '[sjutra u] LT', + nextWeek: function() { + switch (this.day()) { + case 0: + return '[u] [nedjelju] [u] LT'; + case 3: + return '[u] [srijedu] [u] LT'; + case 6: + return '[u] [subotu] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[u] dddd [u] LT'; + } + }, + lastDay: '[juče u] LT', + lastWeek: function() { + return [ + '[prošle] [nedjelje] [u] LT', + '[prošlog] [ponedjeljka] [u] LT', + '[prošlog] [utorka] [u] LT', + '[prošle] [srijede] [u] LT', + '[prošlog] [četvrtka] [u] LT', + '[prošlog] [petka] [u] LT', + '[prošle] [subote] [u] LT' + ][this.day()]; + }, + sameElse: 'L' + }, + relativeTime: { + future: 'za %s', + past: 'prije %s', + s: 'nekoliko sekundi', + ss: t.translate, + m: t.translate, + mm: t.translate, + h: t.translate, + hh: t.translate, + d: 'dan', + dd: t.translate, + M: 'mjesec', + MM: t.translate, + y: 'godinu', + yy: t.translate + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 7 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('mi', { + months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split( + '_' + ), + monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split( + '_' + ), + monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, + monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, + monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, + monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i, + weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split( + '_' + ), + weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), + weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [i] HH:mm', + LLLL: 'dddd, D MMMM YYYY [i] HH:mm' + }, + calendar: { + sameDay: '[i teie mahana, i] LT', + nextDay: '[apopo i] LT', + nextWeek: 'dddd [i] LT', + lastDay: '[inanahi i] LT', + lastWeek: 'dddd [whakamutunga i] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'i roto i %s', + past: '%s i mua', + s: 'te hēkona ruarua', + ss: '%d hēkona', + m: 'he meneti', + mm: '%d meneti', + h: 'te haora', + hh: '%d haora', + d: 'he ra', + dd: '%d ra', + M: 'he marama', + MM: '%d marama', + y: 'he tau', + yy: '%d tau' + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('mk', { + months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split( + '_' + ), + monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split( + '_' + ), + weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split( + '_' + ), + weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'), + weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'D.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY H:mm', + LLLL: 'dddd, D MMMM YYYY H:mm' + }, + calendar: { + sameDay: '[Денес во] LT', + nextDay: '[Утре во] LT', + nextWeek: '[Во] dddd [во] LT', + lastDay: '[Вчера во] LT', + lastWeek: function() { + switch (this.day()) { + case 0: + case 3: + case 6: + return '[Изминатата] dddd [во] LT'; + case 1: + case 2: + case 4: + case 5: + return '[Изминатиот] dddd [во] LT'; + } + }, + sameElse: 'L' + }, + relativeTime: { + future: 'после %s', + past: 'пред %s', + s: 'неколку секунди', + ss: '%d секунди', + m: 'минута', + mm: '%d минути', + h: 'час', + hh: '%d часа', + d: 'ден', + dd: '%d дена', + M: 'месец', + MM: '%d месеци', + y: 'година', + yy: '%d години' + }, + dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, + ordinal: function(e) { + var t = e % 10, + n = e % 100; + return 0 === e + ? e + '-ев' + : 0 === n + ? e + '-ен' + : n > 10 && n < 20 + ? e + '-ти' + : 1 === t + ? e + '-ви' + : 2 === t + ? e + '-ри' + : 7 === t || 8 === t + ? e + '-ми' + : e + '-ти'; + }, + week: { dow: 1, doy: 7 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('ml', { + months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split( + '_' + ), + monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split( + '_' + ), + weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'), + weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'), + longDateFormat: { + LT: 'A h:mm -നു', + LTS: 'A h:mm:ss -നു', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm -നു', + LLLL: 'dddd, D MMMM YYYY, A h:mm -നു' + }, + calendar: { + sameDay: '[ഇന്ന്] LT', + nextDay: '[നാളെ] LT', + nextWeek: 'dddd, LT', + lastDay: '[ഇന്നലെ] LT', + lastWeek: '[കഴിഞ്ഞ] dddd, LT', + sameElse: 'L' + }, + relativeTime: { + future: '%s കഴിഞ്ഞ്', + past: '%s മുൻപ്', + s: 'അൽപ നിമിഷങ്ങൾ', + ss: '%d സെക്കൻഡ്', + m: 'ഒരു മിനിറ്റ്', + mm: '%d മിനിറ്റ്', + h: 'ഒരു മണിക്കൂർ', + hh: '%d മണിക്കൂർ', + d: 'ഒരു ദിവസം', + dd: '%d ദിവസം', + M: 'ഒരു മാസം', + MM: '%d മാസം', + y: 'ഒരു വർഷം', + yy: '%d വർഷം' + }, + meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i, + meridiemHour: function(e, t) { return ( - h.each(function(e, t) { - s(g, t, i(e, o, a, s)); - }), - g + 12 === e && (e = 0), + ('രാത്രി' === t && e >= 4) || + 'ഉച്ച കഴിഞ്ഞ്' === t || + 'വൈകുന്നേരം' === t + ? e + 12 + : e ); + }, + meridiem: function(e, t, n) { + return e < 4 + ? 'രാത്രി' + : e < 12 + ? 'രാവിലെ' + : e < 17 + ? 'ഉച്ച കഴിഞ്ഞ്' + : e < 20 + ? 'വൈകുന്നേരം' + : 'രാത്രി'; + } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + function t(e, t, n, r) { + switch (n) { + case 's': + return t ? 'хэдхэн секунд' : 'хэдхэн секундын'; + case 'ss': + return e + (t ? ' секунд' : ' секундын'); + case 'm': + case 'mm': + return e + (t ? ' минут' : ' минутын'); + case 'h': + case 'hh': + return e + (t ? ' цаг' : ' цагийн'); + case 'd': + case 'dd': + return e + (t ? ' өдөр' : ' өдрийн'); + case 'M': + case 'MM': + return e + (t ? ' сар' : ' сарын'); + case 'y': + case 'yy': + return e + (t ? ' жил' : ' жилийн'); + default: + return e; + } + } + e.defineLocale('mn', { + months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split( + '_' + ), + monthsShort: '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'), + weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'), + weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'YYYY оны MMMMын D', + LLL: 'YYYY оны MMMMын D HH:mm', + LLLL: 'dddd, YYYY оны MMMMын D HH:mm' + }, + meridiemParse: /ҮӨ|ҮХ/i, + isPM: function(e) { + return 'ҮХ' === e; + }, + meridiem: function(e, t, n) { + return e < 12 ? 'ҮӨ' : 'ҮХ'; + }, + calendar: { + sameDay: '[Өнөөдөр] LT', + nextDay: '[Маргааш] LT', + nextWeek: '[Ирэх] dddd LT', + lastDay: '[Өчигдөр] LT', + lastWeek: '[Өнгөрсөн] dddd LT', + sameElse: 'L' + }, + relativeTime: { + future: '%s дараа', + past: '%s өмнө', + s: t, + ss: t, + m: t, + mm: t, + h: t, + hh: t, + d: t, + dd: t, + M: t, + MM: t, + y: t, + yy: t + }, + dayOfMonthOrdinalParse: /\d{1,2} өдөр/, + ordinal: function(e, t) { + switch (t) { + case 'd': + case 'D': + case 'DDD': + return e + ' өдөр'; + default: + return e; + } } - return (n = { - object: function(e) { - return i(e, 0, ti, ni); - }, - map: function(e) { - return i(e, 0, ri, oi); - }, - entries: function(e) { - return (function e(n, i) { - if (++i > r.length) return n; - var a, - s = o[i - 1]; - return ( - null != t && i >= r.length - ? (a = n.entries()) - : ((a = []), - n.each(function(t, n) { - a.push({ key: n, values: e(t, i) }); - })), - null != s - ? a.sort(function(e, t) { - return s(e.key, t.key); - }) - : a - ); - })(i(e, 0, ri, oi), 0); - }, - key: function(e) { - return r.push(e), n; - }, - sortKeys: function(e) { - return (o[r.length - 1] = e), n; - }, - sortValues: function(t) { - return (e = t), n; - }, - rollup: function(e) { - return (t = e), n; + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = { + 1: '१', + 2: '२', + 3: '३', + 4: '४', + 5: '५', + 6: '६', + 7: '७', + 8: '८', + 9: '९', + 0: '०' + }, + n = { + '१': '1', + '२': '2', + '३': '3', + '४': '4', + '५': '5', + '६': '6', + '७': '7', + '८': '8', + '९': '9', + '०': '0' + }; + function r(e, t, n, r) { + var o = ''; + if (t) + switch (n) { + case 's': + o = 'काही सेकंद'; + break; + case 'ss': + o = '%d सेकंद'; + break; + case 'm': + o = 'एक मिनिट'; + break; + case 'mm': + o = '%d मिनिटे'; + break; + case 'h': + o = 'एक तास'; + break; + case 'hh': + o = '%d तास'; + break; + case 'd': + o = 'एक दिवस'; + break; + case 'dd': + o = '%d दिवस'; + break; + case 'M': + o = 'एक महिना'; + break; + case 'MM': + o = '%d महिने'; + break; + case 'y': + o = 'एक वर्ष'; + break; + case 'yy': + o = '%d वर्षे'; } - }); - }; - function ti() { - return {}; - } - function ni(e, t, n) { - e[t] = n; - } - function ri() { - return Zo(); - } - function oi(e, t, n) { - e.set(t, n); - } - function ii() {} - var ai = Zo.prototype; - function si(e, t) { - var n = new ii(); - if (e instanceof ii) - e.each(function(e) { - n.add(e); - }); - else if (e) { - var r = -1, - o = e.length; - if (null == t) for (; ++r < o; ) n.add(e[r]); - else for (; ++r < o; ) n.add(t(e[r], r, e)); + else + switch (n) { + case 's': + o = 'काही सेकंदां'; + break; + case 'ss': + o = '%d सेकंदां'; + break; + case 'm': + o = 'एका मिनिटा'; + break; + case 'mm': + o = '%d मिनिटां'; + break; + case 'h': + o = 'एका तासा'; + break; + case 'hh': + o = '%d तासां'; + break; + case 'd': + o = 'एका दिवसा'; + break; + case 'dd': + o = '%d दिवसां'; + break; + case 'M': + o = 'एका महिन्या'; + break; + case 'MM': + o = '%d महिन्यां'; + break; + case 'y': + o = 'एका वर्षा'; + break; + case 'yy': + o = '%d वर्षां'; + } + return o.replace(/%d/i, e); } - return n; - } - ii.prototype = si.prototype = { - constructor: ii, - has: ai.has, - add: function(e) { - return (this['$' + (e += '')] = e), this; - }, - remove: ai.remove, - clear: ai.clear, - values: ai.keys, - size: ai.size, - empty: ai.empty, - each: ai.each - }; - var ci = si, - ui = function(e) { - var t = []; - for (var n in e) t.push(n); - return t; - }, - li = function(e) { - var t = []; - for (var n in e) t.push(e[n]); - return t; - }, - fi = function(e) { - var t = []; - for (var n in e) t.push({ key: n, value: e[n] }); - return t; - }, - di = Math.PI / 180, - pi = 180 / Math.PI; - function hi(e) { - if (e instanceof bi) return new bi(e.l, e.a, e.b, e.opacity); - if (e instanceof Si) return Ai(e); - e instanceof Kt || (e = Xt(e)); - var t, - n, - r = xi(e.r), - o = xi(e.g), - i = xi(e.b), - a = yi((0.2225045 * r + 0.7168786 * o + 0.0606169 * i) / 1); - return ( - r === o && o === i - ? (t = n = a) - : ((t = yi( - (0.4360747 * r + 0.3850649 * o + 0.1430804 * i) / 0.96422 - )), - (n = yi( - (0.0139322 * r + 0.0971045 * o + 0.7141733 * i) / 0.82521 - ))), - new bi(116 * a - 16, 500 * (t - a), 200 * (a - n), e.opacity) - ); - } - function gi(e, t) { - return new bi(e, 0, 0, null == t ? 1 : t); - } - function mi(e, t, n, r) { - return 1 === arguments.length - ? hi(e) - : new bi(e, t, n, null == r ? 1 : r); - } - function bi(e, t, n, r) { - (this.l = +e), (this.a = +t), (this.b = +n), (this.opacity = +r); - } - function yi(e) { - return e > (6 / 29) * (6 / 29) * (6 / 29) - ? Math.pow(e, 1 / 3) - : e / ((6 / 29) * 3 * (6 / 29)) + 4 / 29; - } - function vi(e) { - return e > 6 / 29 ? e * e * e : (6 / 29) * 3 * (6 / 29) * (e - 4 / 29); - } - function _i(e) { - return ( - 255 * - (e <= 0.0031308 ? 12.92 * e : 1.055 * Math.pow(e, 1 / 2.4) - 0.055) - ); - } - function xi(e) { - return (e /= 255) <= 0.04045 - ? e / 12.92 - : Math.pow((e + 0.055) / 1.055, 2.4); - } - function wi(e) { - if (e instanceof Si) return new Si(e.h, e.c, e.l, e.opacity); - if ((e instanceof bi || (e = hi(e)), 0 === e.a && 0 === e.b)) - return new Si(NaN, 0 < e.l && e.l < 100 ? 0 : NaN, e.l, e.opacity); - var t = Math.atan2(e.b, e.a) * pi; - return new Si( - t < 0 ? t + 360 : t, - Math.sqrt(e.a * e.a + e.b * e.b), - e.l, - e.opacity - ); - } - function Mi(e, t, n, r) { - return 1 === arguments.length - ? wi(e) - : new Si(n, t, e, null == r ? 1 : r); - } - function ki(e, t, n, r) { - return 1 === arguments.length - ? wi(e) - : new Si(e, t, n, null == r ? 1 : r); - } - function Si(e, t, n, r) { - (this.h = +e), (this.c = +t), (this.l = +n), (this.opacity = +r); - } - function Ai(e) { - if (isNaN(e.h)) return new bi(e.l, 0, 0, e.opacity); - var t = e.h * di; - return new bi(e.l, Math.cos(t) * e.c, Math.sin(t) * e.c, e.opacity); - } - Et( - bi, - mi, - Tt(Ct, { - brighter: function(e) { - return new bi( - this.l + 18 * (null == e ? 1 : e), - this.a, - this.b, - this.opacity + e.defineLocale('mr', { + months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split( + '_' + ), + monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split( + '_' + ), + weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'), + weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'), + longDateFormat: { + LT: 'A h:mm वाजता', + LTS: 'A h:mm:ss वाजता', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm वाजता', + LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता' + }, + calendar: { + sameDay: '[आज] LT', + nextDay: '[उद्या] LT', + nextWeek: 'dddd, LT', + lastDay: '[काल] LT', + lastWeek: '[मागील] dddd, LT', + sameElse: 'L' + }, + relativeTime: { + future: '%sमध्ये', + past: '%sपूर्वी', + s: r, + ss: r, + m: r, + mm: r, + h: r, + hh: r, + d: r, + dd: r, + M: r, + MM: r, + y: r, + yy: r + }, + preparse: function(e) { + return e.replace(/[१२३४५६७८९०]/g, function(e) { + return n[e]; + }); + }, + postformat: function(e) { + return e.replace(/\d/g, function(e) { + return t[e]; + }); + }, + meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/, + meridiemHour: function(e, t) { + return ( + 12 === e && (e = 0), + 'रात्री' === t + ? e < 4 + ? e + : e + 12 + : 'सकाळी' === t + ? e + : 'दुपारी' === t + ? e >= 10 + ? e + : e + 12 + : 'सायंकाळी' === t + ? e + 12 + : void 0 ); }, - darker: function(e) { - return new bi( - this.l - 18 * (null == e ? 1 : e), - this.a, - this.b, - this.opacity + meridiem: function(e, t, n) { + return e < 4 + ? 'रात्री' + : e < 10 + ? 'सकाळी' + : e < 17 + ? 'दुपारी' + : e < 20 + ? 'सायंकाळी' + : 'रात्री'; + }, + week: { dow: 0, doy: 6 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('ms', { + months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split( + '_' + ), + weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), + weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), + weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), + longDateFormat: { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [pukul] HH.mm', + LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm' + }, + meridiemParse: /pagi|tengahari|petang|malam/, + meridiemHour: function(e, t) { + return ( + 12 === e && (e = 0), + 'pagi' === t + ? e + : 'tengahari' === t + ? e >= 11 + ? e + : e + 12 + : 'petang' === t || 'malam' === t + ? e + 12 + : void 0 + ); + }, + meridiem: function(e, t, n) { + return e < 11 + ? 'pagi' + : e < 15 + ? 'tengahari' + : e < 19 + ? 'petang' + : 'malam'; + }, + calendar: { + sameDay: '[Hari ini pukul] LT', + nextDay: '[Esok pukul] LT', + nextWeek: 'dddd [pukul] LT', + lastDay: '[Kelmarin pukul] LT', + lastWeek: 'dddd [lepas pukul] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'dalam %s', + past: '%s yang lepas', + s: 'beberapa saat', + ss: '%d saat', + m: 'seminit', + mm: '%d minit', + h: 'sejam', + hh: '%d jam', + d: 'sehari', + dd: '%d hari', + M: 'sebulan', + MM: '%d bulan', + y: 'setahun', + yy: '%d tahun' + }, + week: { dow: 1, doy: 7 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('ms-my', { + months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split( + '_' + ), + weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), + weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), + weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), + longDateFormat: { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [pukul] HH.mm', + LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm' + }, + meridiemParse: /pagi|tengahari|petang|malam/, + meridiemHour: function(e, t) { + return ( + 12 === e && (e = 0), + 'pagi' === t + ? e + : 'tengahari' === t + ? e >= 11 + ? e + : e + 12 + : 'petang' === t || 'malam' === t + ? e + 12 + : void 0 + ); + }, + meridiem: function(e, t, n) { + return e < 11 + ? 'pagi' + : e < 15 + ? 'tengahari' + : e < 19 + ? 'petang' + : 'malam'; + }, + calendar: { + sameDay: '[Hari ini pukul] LT', + nextDay: '[Esok pukul] LT', + nextWeek: 'dddd [pukul] LT', + lastDay: '[Kelmarin pukul] LT', + lastWeek: 'dddd [lepas pukul] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'dalam %s', + past: '%s yang lepas', + s: 'beberapa saat', + ss: '%d saat', + m: 'seminit', + mm: '%d minit', + h: 'sejam', + hh: '%d jam', + d: 'sehari', + dd: '%d hari', + M: 'sebulan', + MM: '%d bulan', + y: 'setahun', + yy: '%d tahun' + }, + week: { dow: 1, doy: 7 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('mt', { + months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split( + '_' + ), + monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split( + '_' + ), + weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split( + '_' + ), + weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'), + weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[Illum fil-]LT', + nextDay: '[Għada fil-]LT', + nextWeek: 'dddd [fil-]LT', + lastDay: '[Il-bieraħ fil-]LT', + lastWeek: 'dddd [li għadda] [fil-]LT', + sameElse: 'L' + }, + relativeTime: { + future: 'f’ %s', + past: '%s ilu', + s: 'ftit sekondi', + ss: '%d sekondi', + m: 'minuta', + mm: '%d minuti', + h: 'siegħa', + hh: '%d siegħat', + d: 'ġurnata', + dd: '%d ġranet', + M: 'xahar', + MM: '%d xhur', + y: 'sena', + yy: '%d sni' + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = { + 1: '၁', + 2: '၂', + 3: '၃', + 4: '၄', + 5: '၅', + 6: '၆', + 7: '၇', + 8: '၈', + 9: '၉', + 0: '၀' + }, + n = { + '၁': '1', + '၂': '2', + '၃': '3', + '၄': '4', + '၅': '5', + '၆': '6', + '၇': '7', + '၈': '8', + '၉': '9', + '၀': '0' + }; + e.defineLocale('my', { + months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split( + '_' + ), + monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split( + '_' + ), + weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split( + '_' + ), + weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), + weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[ယနေ.] LT [မှာ]', + nextDay: '[မနက်ဖြန်] LT [မှာ]', + nextWeek: 'dddd LT [မှာ]', + lastDay: '[မနေ.က] LT [မှာ]', + lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]', + sameElse: 'L' + }, + relativeTime: { + future: 'လာမည့် %s မှာ', + past: 'လွန်ခဲ့သော %s က', + s: 'စက္ကန်.အနည်းငယ်', + ss: '%d စက္ကန့်', + m: 'တစ်မိနစ်', + mm: '%d မိနစ်', + h: 'တစ်နာရီ', + hh: '%d နာရီ', + d: 'တစ်ရက်', + dd: '%d ရက်', + M: 'တစ်လ', + MM: '%d လ', + y: 'တစ်နှစ်', + yy: '%d နှစ်' + }, + preparse: function(e) { + return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function(e) { + return n[e]; + }); + }, + postformat: function(e) { + return e.replace(/\d/g, function(e) { + return t[e]; + }); + }, + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('nb', { + months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split( + '_' + ), + monthsShort: 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split( + '_' + ), + weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'), + weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY [kl.] HH:mm', + LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm' + }, + calendar: { + sameDay: '[i dag kl.] LT', + nextDay: '[i morgen kl.] LT', + nextWeek: 'dddd [kl.] LT', + lastDay: '[i går kl.] LT', + lastWeek: '[forrige] dddd [kl.] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'om %s', + past: '%s siden', + s: 'noen sekunder', + ss: '%d sekunder', + m: 'ett minutt', + mm: '%d minutter', + h: 'en time', + hh: '%d timer', + d: 'en dag', + dd: '%d dager', + M: 'en måned', + MM: '%d måneder', + y: 'ett år', + yy: '%d år' + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = { + 1: '१', + 2: '२', + 3: '३', + 4: '४', + 5: '५', + 6: '६', + 7: '७', + 8: '८', + 9: '९', + 0: '०' + }, + n = { + '१': '1', + '२': '2', + '३': '3', + '४': '4', + '५': '5', + '६': '6', + '७': '7', + '८': '8', + '९': '9', + '०': '0' + }; + e.defineLocale('ne', { + months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split( + '_' + ), + monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split( + '_' + ), + weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'), + weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'Aको h:mm बजे', + LTS: 'Aको h:mm:ss बजे', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, Aको h:mm बजे', + LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे' + }, + preparse: function(e) { + return e.replace(/[१२३४५६७८९०]/g, function(e) { + return n[e]; + }); + }, + postformat: function(e) { + return e.replace(/\d/g, function(e) { + return t[e]; + }); + }, + meridiemParse: /राति|बिहान|दिउँसो|साँझ/, + meridiemHour: function(e, t) { + return ( + 12 === e && (e = 0), + 'राति' === t + ? e < 4 + ? e + : e + 12 + : 'बिहान' === t + ? e + : 'दिउँसो' === t + ? e >= 10 + ? e + : e + 12 + : 'साँझ' === t + ? e + 12 + : void 0 ); }, - rgb: function() { - var e = (this.l + 16) / 116, - t = isNaN(this.a) ? e : e + this.a / 500, - n = isNaN(this.b) ? e : e - this.b / 200; - return new Kt( - _i( - 3.1338561 * (t = 0.96422 * vi(t)) - - 1.6168667 * (e = 1 * vi(e)) - - 0.4906146 * (n = 0.82521 * vi(n)) - ), - _i(-0.9787684 * t + 1.9161415 * e + 0.033454 * n), - _i(0.0719453 * t - 0.2289914 * e + 1.4052427 * n), - this.opacity - ); - } - }) - ), - Et( - Si, - ki, - Tt(Ct, { - brighter: function(e) { - return new Si( - this.h, - this.c, - this.l + 18 * (null == e ? 1 : e), - this.opacity - ); - }, - darker: function(e) { - return new Si( - this.h, - this.c, - this.l - 18 * (null == e ? 1 : e), - this.opacity - ); - }, - rgb: function() { - return Ai(this).rgb(); - } - }) - ); - var Oi = -0.29227, - Ei = -1.7884503806, - Ti = 3.5172982438, - Ci = -0.6557636667999999; - function Li(e) { - if (e instanceof Di) return new Di(e.h, e.s, e.l, e.opacity); - e instanceof Kt || (e = Xt(e)); - var t = e.r / 255, - n = e.g / 255, - r = e.b / 255, - o = (Ci * r + Ei * t - Ti * n) / (Ci + Ei - Ti), - i = r - o, - a = (1.97294 * (n - o) - Oi * i) / -0.90649, - s = Math.sqrt(a * a + i * i) / (1.97294 * o * (1 - o)), - c = s ? Math.atan2(a, i) * pi - 120 : NaN; - return new Di(c < 0 ? c + 360 : c, s, o, e.opacity); - } - function Pi(e, t, n, r) { - return 1 === arguments.length - ? Li(e) - : new Di(e, t, n, null == r ? 1 : r); - } - function Di(e, t, n, r) { - (this.h = +e), (this.s = +t), (this.l = +n), (this.opacity = +r); - } - Et( - Di, - Pi, - Tt(Ct, { - brighter: function(e) { - return ( - (e = null == e ? 1 / 0.7 : Math.pow(1 / 0.7, e)), - new Di(this.h, this.s, this.l * e, this.opacity) - ); + meridiem: function(e, t, n) { + return e < 3 + ? 'राति' + : e < 12 + ? 'बिहान' + : e < 16 + ? 'दिउँसो' + : e < 20 + ? 'साँझ' + : 'राति'; + }, + calendar: { + sameDay: '[आज] LT', + nextDay: '[भोलि] LT', + nextWeek: '[आउँदो] dddd[,] LT', + lastDay: '[हिजो] LT', + lastWeek: '[गएको] dddd[,] LT', + sameElse: 'L' + }, + relativeTime: { + future: '%sमा', + past: '%s अगाडि', + s: 'केही क्षण', + ss: '%d सेकेण्ड', + m: 'एक मिनेट', + mm: '%d मिनेट', + h: 'एक घण्टा', + hh: '%d घण्टा', + d: 'एक दिन', + dd: '%d दिन', + M: 'एक महिना', + MM: '%d महिना', + y: 'एक बर्ष', + yy: '%d बर्ष' + }, + week: { dow: 0, doy: 6 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split( + '_' + ), + n = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'), + r = [ + /^jan/i, + /^feb/i, + /^maart|mrt.?$/i, + /^apr/i, + /^mei$/i, + /^jun[i.]?$/i, + /^jul[i.]?$/i, + /^aug/i, + /^sep/i, + /^okt/i, + /^nov/i, + /^dec/i + ], + o = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; + e.defineLocale('nl', { + months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split( + '_' + ), + monthsShort: function(e, r) { + return e ? (/-MMM-/.test(r) ? n[e.month()] : t[e.month()]) : t; + }, + monthsRegex: o, + monthsShortRegex: o, + monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i, + monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, + monthsParse: r, + longMonthsParse: r, + shortMonthsParse: r, + weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split( + '_' + ), + weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'), + weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD-MM-YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[vandaag om] LT', + nextDay: '[morgen om] LT', + nextWeek: 'dddd [om] LT', + lastDay: '[gisteren om] LT', + lastWeek: '[afgelopen] dddd [om] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'over %s', + past: '%s geleden', + s: 'een paar seconden', + ss: '%d seconden', + m: 'één minuut', + mm: '%d minuten', + h: 'één uur', + hh: '%d uur', + d: 'één dag', + dd: '%d dagen', + M: 'één maand', + MM: '%d maanden', + y: 'één jaar', + yy: '%d jaar' + }, + dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, + ordinal: function(e) { + return e + (1 === e || 8 === e || e >= 20 ? 'ste' : 'de'); + }, + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split( + '_' + ), + n = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'), + r = [ + /^jan/i, + /^feb/i, + /^maart|mrt.?$/i, + /^apr/i, + /^mei$/i, + /^jun[i.]?$/i, + /^jul[i.]?$/i, + /^aug/i, + /^sep/i, + /^okt/i, + /^nov/i, + /^dec/i + ], + o = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; + e.defineLocale('nl-be', { + months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split( + '_' + ), + monthsShort: function(e, r) { + return e ? (/-MMM-/.test(r) ? n[e.month()] : t[e.month()]) : t; + }, + monthsRegex: o, + monthsShortRegex: o, + monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i, + monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, + monthsParse: r, + longMonthsParse: r, + shortMonthsParse: r, + weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split( + '_' + ), + weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'), + weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[vandaag om] LT', + nextDay: '[morgen om] LT', + nextWeek: 'dddd [om] LT', + lastDay: '[gisteren om] LT', + lastWeek: '[afgelopen] dddd [om] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'over %s', + past: '%s geleden', + s: 'een paar seconden', + ss: '%d seconden', + m: 'één minuut', + mm: '%d minuten', + h: 'één uur', + hh: '%d uur', + d: 'één dag', + dd: '%d dagen', + M: 'één maand', + MM: '%d maanden', + y: 'één jaar', + yy: '%d jaar' + }, + dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, + ordinal: function(e) { + return e + (1 === e || 8 === e || e >= 20 ? 'ste' : 'de'); + }, + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('nn', { + months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split( + '_' + ), + weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split( + '_' + ), + weekdaysShort: 'sun_mån_tys_ons_tor_fre_lau'.split('_'), + weekdaysMin: 'su_må_ty_on_to_fr_lø'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY [kl.] H:mm', + LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm' + }, + calendar: { + sameDay: '[I dag klokka] LT', + nextDay: '[I morgon klokka] LT', + nextWeek: 'dddd [klokka] LT', + lastDay: '[I går klokka] LT', + lastWeek: '[Føregåande] dddd [klokka] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'om %s', + past: '%s sidan', + s: 'nokre sekund', + ss: '%d sekund', + m: 'eit minutt', + mm: '%d minutt', + h: 'ein time', + hh: '%d timar', + d: 'ein dag', + dd: '%d dagar', + M: 'ein månad', + MM: '%d månader', + y: 'eit år', + yy: '%d år' + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = { + 1: '੧', + 2: '੨', + 3: '੩', + 4: '੪', + 5: '੫', + 6: '੬', + 7: '੭', + 8: '੮', + 9: '੯', + 0: '੦' + }, + n = { + '੧': '1', + '੨': '2', + '੩': '3', + '੪': '4', + '੫': '5', + '੬': '6', + '੭': '7', + '੮': '8', + '੯': '9', + '੦': '0' + }; + e.defineLocale('pa-in', { + months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split( + '_' + ), + monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split( + '_' + ), + weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split( + '_' + ), + weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), + weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), + longDateFormat: { + LT: 'A h:mm ਵਜੇ', + LTS: 'A h:mm:ss ਵਜੇ', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm ਵਜੇ', + LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ' + }, + calendar: { + sameDay: '[ਅਜ] LT', + nextDay: '[ਕਲ] LT', + nextWeek: '[ਅਗਲਾ] dddd, LT', + lastDay: '[ਕਲ] LT', + lastWeek: '[ਪਿਛਲੇ] dddd, LT', + sameElse: 'L' }, - darker: function(e) { - return ( - (e = null == e ? 0.7 : Math.pow(0.7, e)), - new Di(this.h, this.s, this.l * e, this.opacity) - ); + relativeTime: { + future: '%s ਵਿੱਚ', + past: '%s ਪਿਛਲੇ', + s: 'ਕੁਝ ਸਕਿੰਟ', + ss: '%d ਸਕਿੰਟ', + m: 'ਇਕ ਮਿੰਟ', + mm: '%d ਮਿੰਟ', + h: 'ਇੱਕ ਘੰਟਾ', + hh: '%d ਘੰਟੇ', + d: 'ਇੱਕ ਦਿਨ', + dd: '%d ਦਿਨ', + M: 'ਇੱਕ ਮਹੀਨਾ', + MM: '%d ਮਹੀਨੇ', + y: 'ਇੱਕ ਸਾਲ', + yy: '%d ਸਾਲ' }, - rgb: function() { - var e = isNaN(this.h) ? 0 : (this.h + 120) * di, - t = +this.l, - n = isNaN(this.s) ? 0 : this.s * t * (1 - t), - r = Math.cos(e), - o = Math.sin(e); - return new Kt( - 255 * (t + n * (-0.14861 * r + 1.78277 * o)), - 255 * (t + n * (Oi * r + -0.90649 * o)), - 255 * (t + n * (1.97294 * r)), - this.opacity - ); - } - }) - ); - var zi = Array.prototype.slice, - Ni = function(e, t) { - return e - t; - }, - ji = function(e) { - return function() { - return e; - }; - }, - Ri = function(e, t) { - for (var n, r = -1, o = t.length; ++r < o; ) - if ((n = Ii(e, t[r]))) return n; - return 0; - }; - function Ii(e, t) { - for ( - var n = t[0], r = t[1], o = -1, i = 0, a = e.length, s = a - 1; - i < a; - s = i++ - ) { - var c = e[i], - u = c[0], - l = c[1], - f = e[s], - d = f[0], - p = f[1]; - if (Fi(c, f, t)) return 0; - l > r != p > r && n < ((d - u) * (r - l)) / (p - l) + u && (o = -o); - } - return o; - } - function Fi(e, t, n) { - var r, o, i, a; - return ( - (function(e, t, n) { - return ( - (t[0] - e[0]) * (n[1] - e[1]) == (n[0] - e[0]) * (t[1] - e[1]) - ); - })(e, t, n) && - ((o = e[(r = +(e[0] === t[0]))]), - (i = n[r]), - (a = t[r]), - (o <= i && i <= a) || (a <= i && i <= o)) - ); - } - var qi = function() {}, - Bi = [ - [], - [ - [ - [1, 1.5], - [0.5, 1] - ] - ], - [ - [ - [1.5, 1], - [1, 1.5] - ] - ], - [ - [ - [1.5, 1], - [0.5, 1] - ] - ], - [ - [ - [1, 0.5], - [1.5, 1] - ] - ], - [ - [ - [1, 1.5], - [0.5, 1] - ], - [ - [1, 0.5], - [1.5, 1] - ] - ], - [ - [ - [1, 0.5], - [1, 1.5] - ] - ], - [ - [ - [1, 0.5], - [0.5, 1] - ] - ], - [ - [ - [0.5, 1], - [1, 0.5] - ] - ], - [ - [ - [1, 1.5], - [1, 0.5] - ] - ], - [ - [ - [0.5, 1], - [1, 0.5] - ], - [ - [1.5, 1], - [1, 1.5] - ] - ], - [ - [ - [1.5, 1], - [1, 0.5] - ] - ], - [ - [ - [0.5, 1], - [1.5, 1] - ] - ], - [ - [ - [1, 1.5], - [1.5, 1] - ] - ], - [ - [ - [0.5, 1], - [1, 1.5] - ] - ], - [] - ], - Hi = function() { - var e = 1, - t = 1, - n = C, - r = s; - function o(e) { - var t = n(e); - if (Array.isArray(t)) t = t.slice().sort(Ni); - else { - var r = b(e), - o = r[0], - a = r[1]; - (t = T(o, a, t)), - (t = M(Math.floor(o / t) * t, Math.floor(a / t) * t, t)); - } - return t.map(function(t) { - return i(e, t); + preparse: function(e) { + return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function(e) { + return n[e]; }); - } - function i(n, o) { - var i = [], - s = []; - return ( - (function(n, r, o) { - var i, - s, - c, - u, - l, - f, - d = new Array(), - p = new Array(); - (i = s = -1), (u = n[0] >= r), Bi[u << 1].forEach(h); - for (; ++i < e - 1; ) - (c = u), (u = n[i + 1] >= r), Bi[c | (u << 1)].forEach(h); - Bi[u << 0].forEach(h); - for (; ++s < t - 1; ) { - for ( - i = -1, - u = n[s * e + e] >= r, - l = n[s * e] >= r, - Bi[(u << 1) | (l << 2)].forEach(h); - ++i < e - 1; - - ) - (c = u), - (u = n[s * e + e + i + 1] >= r), - (f = l), - (l = n[s * e + i + 1] >= r), - Bi[c | (u << 1) | (l << 2) | (f << 3)].forEach(h); - Bi[u | (l << 3)].forEach(h); - } - (i = -1), (l = n[s * e] >= r), Bi[l << 2].forEach(h); - for (; ++i < e - 1; ) - (f = l), - (l = n[s * e + i + 1] >= r), - Bi[(l << 2) | (f << 3)].forEach(h); - function h(e) { - var t, - n, - r = [e[0][0] + i, e[0][1] + s], - c = [e[1][0] + i, e[1][1] + s], - u = a(r), - l = a(c); - (t = p[u]) - ? (n = d[l]) - ? (delete p[t.end], - delete d[n.start], - t === n - ? (t.ring.push(c), o(t.ring)) - : (d[t.start] = p[n.end] = { - start: t.start, - end: n.end, - ring: t.ring.concat(n.ring) - })) - : (delete p[t.end], t.ring.push(c), (p[(t.end = l)] = t)) - : (t = d[l]) - ? (n = p[u]) - ? (delete d[t.start], - delete p[n.end], - t === n - ? (t.ring.push(c), o(t.ring)) - : (d[n.start] = p[t.end] = { - start: n.start, - end: t.end, - ring: n.ring.concat(t.ring) - })) - : (delete d[t.start], - t.ring.unshift(r), - (d[(t.start = u)] = t)) - : (d[u] = p[l] = { start: u, end: l, ring: [r, c] }); - } - Bi[l << 3].forEach(h); - })(n, o, function(e) { - r(e, n, o), - (function(e) { - for ( - var t = 0, - n = e.length, - r = e[n - 1][1] * e[0][0] - e[n - 1][0] * e[0][1]; - ++t < n; - - ) - r += e[t - 1][1] * e[t][0] - e[t - 1][0] * e[t][1]; - return r; - })(e) > 0 - ? i.push([e]) - : s.push(e); - }), - s.forEach(function(e) { - for (var t, n = 0, r = i.length; n < r; ++n) - if (-1 !== Ri((t = i[n])[0], e)) return void t.push(e); - }), - { type: 'MultiPolygon', value: o, coordinates: i } - ); - } - function a(t) { - return 2 * t[0] + t[1] * (e + 1) * 4; - } - function s(n, r, o) { - n.forEach(function(n) { - var i, - a = n[0], - s = n[1], - c = 0 | a, - u = 0 | s, - l = r[u * e + c]; - a > 0 && - a < e && - c === a && - ((i = r[u * e + c - 1]), (n[0] = a + (o - i) / (l - i) - 0.5)), - s > 0 && - s < t && - u === s && - ((i = r[(u - 1) * e + c]), - (n[1] = s + (o - i) / (l - i) - 0.5)); + }, + postformat: function(e) { + return e.replace(/\d/g, function(e) { + return t[e]; }); - } - return ( - (o.contour = i), - (o.size = function(n) { - if (!arguments.length) return [e, t]; - var r = Math.ceil(n[0]), - i = Math.ceil(n[1]); - if (!(r > 0 && i > 0)) throw new Error('invalid size'); - return (e = r), (t = i), o; - }), - (o.thresholds = function(e) { - return arguments.length - ? ((n = - 'function' == typeof e - ? e - : Array.isArray(e) - ? ji(zi.call(e)) - : ji(e)), - o) - : n; - }), - (o.smooth = function(e) { - return arguments.length ? ((r = e ? s : qi), o) : r === s; - }), - o - ); - }; - function Yi(e, t, n) { - for (var r = e.width, o = e.height, i = 1 + (n << 1), a = 0; a < o; ++a) - for (var s = 0, c = 0; s < r + n; ++s) - s < r && (c += e.data[s + a * r]), - s >= n && - (s >= i && (c -= e.data[s - i + a * r]), - (t.data[s - n + a * r] = - c / Math.min(s + 1, r - 1 + i - s, i))); - } - function Wi(e, t, n) { - for (var r = e.width, o = e.height, i = 1 + (n << 1), a = 0; a < r; ++a) - for (var s = 0, c = 0; s < o + n; ++s) - s < o && (c += e.data[a + s * r]), - s >= n && - (s >= i && (c -= e.data[a + (s - i) * r]), - (t.data[a + (s - n) * r] = - c / Math.min(s + 1, o - 1 + i - s, i))); - } - function Vi(e) { - return e[0]; - } - function Ui(e) { - return e[1]; - } - function Xi() { - return 1; - } - var Gi = function() { - var e = Vi, - t = Ui, - n = Xi, - r = 960, - o = 500, - i = 20, - a = 2, - s = 3 * i, - c = (r + 2 * s) >> a, - u = (o + 2 * s) >> a, - l = ji(20); - function f(r) { - var o = new Float32Array(c * u), - f = new Float32Array(c * u); - r.forEach(function(r, i, l) { - var f = (+e(r, i, l) + s) >> a, - d = (+t(r, i, l) + s) >> a, - p = +n(r, i, l); - f >= 0 && f < c && d >= 0 && d < u && (o[f + d * c] += p); - }), - Yi( - { width: c, height: u, data: o }, - { width: c, height: u, data: f }, - i >> a - ), - Wi( - { width: c, height: u, data: f }, - { width: c, height: u, data: o }, - i >> a - ), - Yi( - { width: c, height: u, data: o }, - { width: c, height: u, data: f }, - i >> a - ), - Wi( - { width: c, height: u, data: f }, - { width: c, height: u, data: o }, - i >> a - ), - Yi( - { width: c, height: u, data: o }, - { width: c, height: u, data: f }, - i >> a - ), - Wi( - { width: c, height: u, data: f }, - { width: c, height: u, data: o }, - i >> a - ); - var p = l(o); - if (!Array.isArray(p)) { - var h = N(o); - (p = T(0, h, p)), (p = M(0, Math.floor(h / p) * p, p)).shift(); - } - return Hi() - .thresholds(p) - .size([c, u])(o) - .map(d); - } - function d(e) { + }, + meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/, + meridiemHour: function(e, t) { return ( - (e.value *= Math.pow(2, -2 * a)), e.coordinates.forEach(p), e + 12 === e && (e = 0), + 'ਰਾਤ' === t + ? e < 4 + ? e + : e + 12 + : 'ਸਵੇਰ' === t + ? e + : 'ਦੁਪਹਿਰ' === t + ? e >= 10 + ? e + : e + 12 + : 'ਸ਼ਾਮ' === t + ? e + 12 + : void 0 ); - } - function p(e) { - e.forEach(h); - } - function h(e) { - e.forEach(g); - } - function g(e) { - (e[0] = e[0] * Math.pow(2, a) - s), - (e[1] = e[1] * Math.pow(2, a) - s); - } - function m() { - return (c = (r + 2 * (s = 3 * i)) >> a), (u = (o + 2 * s) >> a), f; - } - return ( - (f.x = function(t) { - return arguments.length - ? ((e = 'function' == typeof t ? t : ji(+t)), f) - : e; - }), - (f.y = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : ji(+e)), f) - : t; - }), - (f.weight = function(e) { - return arguments.length - ? ((n = 'function' == typeof e ? e : ji(+e)), f) - : n; - }), - (f.size = function(e) { - if (!arguments.length) return [r, o]; - var t = Math.ceil(e[0]), - n = Math.ceil(e[1]); - if (!(t >= 0 || t >= 0)) throw new Error('invalid size'); - return (r = t), (o = n), m(); - }), - (f.cellSize = function(e) { - if (!arguments.length) return 1 << a; - if (!((e = +e) >= 1)) throw new Error('invalid cell size'); - return (a = Math.floor(Math.log(e) / Math.LN2)), m(); - }), - (f.thresholds = function(e) { - return arguments.length - ? ((l = - 'function' == typeof e - ? e - : Array.isArray(e) - ? ji(zi.call(e)) - : ji(e)), - f) - : l; - }), - (f.bandwidth = function(e) { - if (!arguments.length) return Math.sqrt(i * (i + 1)); - if (!((e = +e) >= 0)) throw new Error('invalid bandwidth'); - return (i = Math.round((Math.sqrt(4 * e * e + 1) - 1) / 2)), m(); - }), - f + }, + meridiem: function(e, t, n) { + return e < 4 + ? 'ਰਾਤ' + : e < 10 + ? 'ਸਵੇਰ' + : e < 17 + ? 'ਦੁਪਹਿਰ' + : e < 20 + ? 'ਸ਼ਾਮ' + : 'ਰਾਤ'; + }, + week: { dow: 0, doy: 6 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split( + '_' + ), + n = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split( + '_' ); - }, - Ki = function(e) { - return function() { - return e; - }; - }; - function $i(e, t, n, r, o, i, a, s, c, u) { - (this.target = e), - (this.type = t), - (this.subject = n), - (this.identifier = r), - (this.active = o), - (this.x = i), - (this.y = a), - (this.dx = s), - (this.dy = c), - (this._ = u); - } - function Qi() { - return !ut.ctrlKey && !ut.button; - } - function Ji() { - return this.parentNode; - } - function Zi(e) { - return null == e ? { x: ut.x, y: ut.y } : e; - } - function ea() { - return navigator.maxTouchPoints || 'ontouchstart' in this; - } - $i.prototype.on = function() { - var e = this._.on.apply(this._, arguments); - return e === this._ ? this : e; - }; - var ta = function() { - var e, - t, - n, - r, - o = Qi, - i = Ji, - a = Zi, - s = ea, - c = {}, - u = fe('start', 'drag', 'end'), - l = 0, - f = 0; - function d(e) { - e.on('mousedown.drag', p) - .filter(s) - .on('touchstart.drag', m) - .on('touchmove.drag', b) - .on('touchend.drag touchcancel.drag', y) - .style('touch-action', 'none') - .style('-webkit-tap-highlight-color', 'rgba(0,0,0,0)'); - } - function p() { - if (!r && o.apply(this, arguments)) { - var a = v('mouse', i.apply(this, arguments), Dn, this, arguments); - a && - (Mt(ut.view) - .on('mousemove.drag', h, !0) - .on('mouseup.drag', g, !0), - At(ut.view), - kt(), - (n = !1), - (e = ut.clientX), - (t = ut.clientY), - a('start')); - } - } - function h() { - if ((St(), !n)) { - var r = ut.clientX - e, - o = ut.clientY - t; - n = r * r + o * o > f; - } - c.mouse('drag'); - } - function g() { - Mt(ut.view).on('mousemove.drag mouseup.drag', null), - Ot(ut.view, n), - St(), - c.mouse('end'); - } - function m() { - if (o.apply(this, arguments)) { - var e, - t, - n = ut.changedTouches, - r = i.apply(this, arguments), - a = n.length; - for (e = 0; e < a; ++e) - (t = v(n[e].identifier, r, Pn, this, arguments)) && - (kt(), t('start')); - } - } - function b() { - var e, - t, - n = ut.changedTouches, - r = n.length; - for (e = 0; e < r; ++e) - (t = c[n[e].identifier]) && (St(), t('drag')); - } - function y() { - var e, - t, - n = ut.changedTouches, - o = n.length; - for ( - r && clearTimeout(r), - r = setTimeout(function() { - r = null; - }, 500), - e = 0; - e < o; - ++e - ) - (t = c[n[e].identifier]) && (kt(), t('end')); - } - function v(e, t, n, r, o) { - var i, - s, - f, - p = n(t, e), - h = u.copy(); - if ( - gt( - new $i(d, 'beforestart', i, e, l, p[0], p[1], 0, 0, h), - function() { - return ( - null != (ut.subject = i = a.apply(r, o)) && - ((s = i.x - p[0] || 0), (f = i.y - p[1] || 0), !0) - ); - } - ) - ) - return function a(u) { - var g, - m = p; - switch (u) { - case 'start': - (c[e] = a), (g = l++); - break; - case 'end': - delete c[e], --l; - case 'drag': - (p = n(t, e)), (g = l); - } - gt( - new $i( - d, - u, - i, - e, - g, - p[0] + s, - p[1] + f, - p[0] - m[0], - p[1] - m[1], - h - ), - h.apply, - h, - [u, r, o] - ); - }; + function r(e) { + return e % 10 < 5 && e % 10 > 1 && ~~(e / 10) % 10 != 1; + } + function o(e, t, n) { + var o = e + ' '; + switch (n) { + case 'ss': + return o + (r(e) ? 'sekundy' : 'sekund'); + case 'm': + return t ? 'minuta' : 'minutę'; + case 'mm': + return o + (r(e) ? 'minuty' : 'minut'); + case 'h': + return t ? 'godzina' : 'godzinę'; + case 'hh': + return o + (r(e) ? 'godziny' : 'godzin'); + case 'MM': + return o + (r(e) ? 'miesiące' : 'miesięcy'); + case 'yy': + return o + (r(e) ? 'lata' : 'lat'); } - return ( - (d.filter = function(e) { - return arguments.length - ? ((o = 'function' == typeof e ? e : Ki(!!e)), d) - : o; - }), - (d.container = function(e) { - return arguments.length - ? ((i = 'function' == typeof e ? e : Ki(e)), d) - : i; - }), - (d.subject = function(e) { - return arguments.length - ? ((a = 'function' == typeof e ? e : Ki(e)), d) - : a; - }), - (d.touchable = function(e) { - return arguments.length - ? ((s = 'function' == typeof e ? e : Ki(!!e)), d) - : s; - }), - (d.on = function() { - var e = u.on.apply(u, arguments); - return e === u ? d : e; - }), - (d.clickDistance = function(e) { - return arguments.length ? ((f = (e = +e) * e), d) : Math.sqrt(f); - }), - d - ); - }, - na = {}, - ra = {}; - function oa(e) { - return new Function( - 'd', - 'return {' + - e - .map(function(e, t) { - return JSON.stringify(e) + ': d[' + t + '] || ""'; - }) - .join(',') + - '}' - ); - } - function ia(e) { - var t = Object.create(null), - n = []; - return ( - e.forEach(function(e) { - for (var r in e) r in t || n.push((t[r] = r)); - }), - n - ); - } - function aa(e, t) { - var n = e + '', - r = n.length; - return r < t ? new Array(t - r + 1).join(0) + n : n; - } - function sa(e) { - var t, - n = e.getUTCHours(), - r = e.getUTCMinutes(), - o = e.getUTCSeconds(), - i = e.getUTCMilliseconds(); - return isNaN(e) - ? 'Invalid Date' - : ((t = e.getUTCFullYear()) < 0 - ? '-' + aa(-t, 6) - : t > 9999 - ? '+' + aa(t, 6) - : aa(t, 4)) + - '-' + - aa(e.getUTCMonth() + 1, 2) + - '-' + - aa(e.getUTCDate(), 2) + - (i - ? 'T' + - aa(n, 2) + - ':' + - aa(r, 2) + - ':' + - aa(o, 2) + - '.' + - aa(i, 3) + - 'Z' - : o - ? 'T' + aa(n, 2) + ':' + aa(r, 2) + ':' + aa(o, 2) + 'Z' - : r || n - ? 'T' + aa(n, 2) + ':' + aa(r, 2) + 'Z' - : ''); - } - var ca = function(e) { - var t = new RegExp('["' + e + '\n\r]'), - n = e.charCodeAt(0); - function r(e, t) { - var r, - o = [], - i = e.length, - a = 0, - s = 0, - c = i <= 0, - u = !1; - function l() { - if (c) return ra; - if (u) return (u = !1), na; - var t, - r, - o = a; - if (34 === e.charCodeAt(o)) { - for ( - ; - (a++ < i && 34 !== e.charCodeAt(a)) || - 34 === e.charCodeAt(++a); - - ); - return ( - (t = a) >= i - ? (c = !0) - : 10 === (r = e.charCodeAt(a++)) - ? (u = !0) - : 13 === r && ((u = !0), 10 === e.charCodeAt(a) && ++a), - e.slice(o + 1, t - 1).replace(/""/g, '"') - ); - } - for (; a < i; ) { - if (10 === (r = e.charCodeAt((t = a++)))) u = !0; - else if (13 === r) (u = !0), 10 === e.charCodeAt(a) && ++a; - else if (r !== n) continue; - return e.slice(o, t); + } + e.defineLocale('pl', { + months: function(e, r) { + return e + ? '' === r + ? '(' + n[e.month()] + '|' + t[e.month()] + ')' + : /D MMMM/.test(r) + ? n[e.month()] + : t[e.month()] + : t; + }, + monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split( + '_' + ), + weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split( + '_' + ), + weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'), + weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[Dziś o] LT', + nextDay: '[Jutro o] LT', + nextWeek: function() { + switch (this.day()) { + case 0: + return '[W niedzielę o] LT'; + case 2: + return '[We wtorek o] LT'; + case 3: + return '[W środę o] LT'; + case 6: + return '[W sobotę o] LT'; + default: + return '[W] dddd [o] LT'; } - return (c = !0), e.slice(o, i); - } - for ( - 10 === e.charCodeAt(i - 1) && --i, - 13 === e.charCodeAt(i - 1) && --i; - (r = l()) !== ra; - - ) { - for (var f = []; r !== na && r !== ra; ) f.push(r), (r = l()); - (t && null == (f = t(f, s++))) || o.push(f); - } - return o; - } - function o(t, n) { - return t.map(function(t) { - return n - .map(function(e) { - return a(t[e]); - }) - .join(e); - }); - } - function i(t) { - return t.map(a).join(e); - } - function a(e) { - return null == e - ? '' - : e instanceof Date - ? sa(e) - : t.test((e += '')) - ? '"' + e.replace(/"/g, '""') + '"' - : e; - } - return { - parse: function(e, t) { - var n, - o, - i = r(e, function(e, r) { - if (n) return n(e, r - 1); - (o = e), - (n = t - ? (function(e, t) { - var n = oa(e); - return function(r, o) { - return t(n(r), o, e); - }; - })(e, t) - : oa(e)); - }); - return (i.columns = o || []), i; - }, - parseRows: r, - format: function(t, n) { - return ( - null == n && (n = ia(t)), - [n.map(a).join(e)].concat(o(t, n)).join('\n') - ); - }, - formatBody: function(e, t) { - return null == t && (t = ia(e)), o(e, t).join('\n'); - }, - formatRows: function(e) { - return e.map(i).join('\n'); }, - formatRow: i, - formatValue: a - }; - }, - ua = ca(','), - la = ua.parse, - fa = ua.parseRows, - da = ua.format, - pa = ua.formatBody, - ha = ua.formatRows, - ga = ua.formatRow, - ma = ua.formatValue, - ba = ca('\t'), - ya = ba.parse, - va = ba.parseRows, - _a = ba.format, - xa = ba.formatBody, - wa = ba.formatRows, - Ma = ba.formatRow, - ka = ba.formatValue; - function Sa(e) { - for (var t in e) { - var n, - r, - o = e[t].trim(); - if (o) - if ('true' === o) o = !0; - else if ('false' === o) o = !1; - else if ('NaN' === o) o = NaN; - else if (isNaN((n = +o))) { - if ( - !(r = o.match( - /^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/ - )) - ) - continue; - Aa && - r[4] && - !r[7] && - (o = o.replace(/-/g, '/').replace(/T/, ' ')), - (o = new Date(o)); - } else o = n; - else o = null; - e[t] = o; - } - return e; - } - var Aa = - new Date('2019-01-01T00:00').getHours() || - new Date('2019-07-01T00:00').getHours(); - function Oa(e) { - return +e; - } - function Ea(e) { - return e * e; - } - function Ta(e) { - return e * (2 - e); - } - function Ca(e) { - return ((e *= 2) <= 1 ? e * e : --e * (2 - e) + 1) / 2; - } - var La = (function e(t) { - function n(e) { - return Math.pow(e, t); - } - return (t = +t), (n.exponent = e), n; - })(3), - Pa = (function e(t) { - function n(e) { - return 1 - Math.pow(1 - e, t); - } - return (t = +t), (n.exponent = e), n; - })(3), - Da = (function e(t) { - function n(e) { - return ( - ((e *= 2) <= 1 ? Math.pow(e, t) : 2 - Math.pow(2 - e, t)) / 2 - ); - } - return (t = +t), (n.exponent = e), n; - })(3), - za = Math.PI, - Na = za / 2; - function ja(e) { - return 1 - Math.cos(e * Na); - } - function Ra(e) { - return Math.sin(e * Na); - } - function Ia(e) { - return (1 - Math.cos(za * e)) / 2; - } - function Fa(e) { - return Math.pow(2, 10 * e - 10); - } - function qa(e) { - return 1 - Math.pow(2, -10 * e); - } - function Ba(e) { - return ( - ((e *= 2) <= 1 - ? Math.pow(2, 10 * e - 10) - : 2 - Math.pow(2, 10 - 10 * e)) / 2 - ); - } - function Ha(e) { - return 1 - Math.sqrt(1 - e * e); - } - function Ya(e) { - return Math.sqrt(1 - --e * e); - } - function Wa(e) { - return ( - ((e *= 2) <= 1 - ? 1 - Math.sqrt(1 - e * e) - : Math.sqrt(1 - (e -= 2) * e) + 1) / 2 - ); - } - function Va(e) { - return 1 - Ua(1 - e); - } - function Ua(e) { - return (e = +e) < 4 / 11 - ? 7.5625 * e * e - : e < 8 / 11 - ? 7.5625 * (e -= 6 / 11) * e + 3 / 4 - : e < 10 / 11 - ? 7.5625 * (e -= 9 / 11) * e + 15 / 16 - : 7.5625 * (e -= 21 / 22) * e + 63 / 64; - } - function Xa(e) { - return ((e *= 2) <= 1 ? 1 - Ua(1 - e) : Ua(e - 1) + 1) / 2; - } - var Ga = (function e(t) { - function n(e) { - return e * e * ((t + 1) * e - t); - } - return (t = +t), (n.overshoot = e), n; - })(1.70158), - Ka = (function e(t) { - function n(e) { - return --e * e * ((t + 1) * e + t) + 1; - } - return (t = +t), (n.overshoot = e), n; - })(1.70158), - $a = (function e(t) { - function n(e) { - return ( - ((e *= 2) < 1 - ? e * e * ((t + 1) * e - t) - : (e -= 2) * e * ((t + 1) * e + t) + 2) / 2 - ); - } - return (t = +t), (n.overshoot = e), n; - })(1.70158), - Qa = 2 * Math.PI, - Ja = (function e(t, n) { - var r = Math.asin(1 / (t = Math.max(1, t))) * (n /= Qa); - function o(e) { - return t * Math.pow(2, 10 * --e) * Math.sin((r - e) / n); - } - return ( - (o.amplitude = function(t) { - return e(t, n * Qa); - }), - (o.period = function(n) { - return e(t, n); - }), - o - ); - })(1, 0.3), - Za = (function e(t, n) { - var r = Math.asin(1 / (t = Math.max(1, t))) * (n /= Qa); - function o(e) { - return 1 - t * Math.pow(2, -10 * (e = +e)) * Math.sin((e + r) / n); - } - return ( - (o.amplitude = function(t) { - return e(t, n * Qa); - }), - (o.period = function(n) { - return e(t, n); - }), - o - ); - })(1, 0.3), - es = (function e(t, n) { - var r = Math.asin(1 / (t = Math.max(1, t))) * (n /= Qa); - function o(e) { - return ( - ((e = 2 * e - 1) < 0 - ? t * Math.pow(2, 10 * e) * Math.sin((r - e) / n) - : 2 - t * Math.pow(2, -10 * e) * Math.sin((r + e) / n)) / 2 - ); - } - return ( - (o.amplitude = function(t) { - return e(t, n * Qa); - }), - (o.period = function(n) { - return e(t, n); - }), - o - ); - })(1, 0.3); - function ts(e) { - if (!e.ok) throw new Error(e.status + ' ' + e.statusText); - return e.blob(); - } - var ns = function(e, t) { - return fetch(e, t).then(ts); - }; - function rs(e) { - if (!e.ok) throw new Error(e.status + ' ' + e.statusText); - return e.arrayBuffer(); - } - var os = function(e, t) { - return fetch(e, t).then(rs); - }; - function is(e) { - if (!e.ok) throw new Error(e.status + ' ' + e.statusText); - return e.text(); - } - var as = function(e, t) { - return fetch(e, t).then(is); - }; - function ss(e) { - return function(t, n, r) { - return ( - 2 === arguments.length && - 'function' == typeof n && - ((r = n), (n = void 0)), - as(t, n).then(function(t) { - return e(t, r); - }) - ); - }; - } - function cs(e, t, n, r) { - 3 === arguments.length && - 'function' == typeof n && - ((r = n), (n = void 0)); - var o = ca(e); - return as(t, n).then(function(e) { - return o.parse(e, r); + lastDay: '[Wczoraj o] LT', + lastWeek: function() { + switch (this.day()) { + case 0: + return '[W zeszłą niedzielę o] LT'; + case 3: + return '[W zeszłą środę o] LT'; + case 6: + return '[W zeszłą sobotę o] LT'; + default: + return '[W zeszły] dddd [o] LT'; + } + }, + sameElse: 'L' + }, + relativeTime: { + future: 'za %s', + past: '%s temu', + s: 'kilka sekund', + ss: o, + m: o, + mm: o, + h: o, + hh: o, + d: '1 dzień', + dd: '%d dni', + M: 'miesiąc', + MM: o, + y: 'rok', + yy: o + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 } }); - } - var us = ss(la), - ls = ss(ya), - fs = function(e, t) { - return new Promise(function(n, r) { - var o = new Image(); - for (var i in t) o[i] = t[i]; - (o.onerror = r), - (o.onload = function() { - n(o); - }), - (o.src = e); - }); - }; - function ds(e) { - if (!e.ok) throw new Error(e.status + ' ' + e.statusText); - return e.json(); - } - var ps = function(e, t) { - return fetch(e, t).then(ds); - }; - function hs(e) { - return function(t, n) { - return as(t, n).then(function(t) { - return new DOMParser().parseFromString(t, e); - }); - }; - } - var gs = hs('application/xml'), - ms = hs('text/html'), - bs = hs('image/svg+xml'), - ys = function(e, t) { - var n; - function r() { - var r, - o, - i = n.length, - a = 0, - s = 0; - for (r = 0; r < i; ++r) (a += (o = n[r]).x), (s += o.y); - for (a = a / i - e, s = s / i - t, r = 0; r < i; ++r) - ((o = n[r]).x -= a), (o.y -= s); - } + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('pt', { + months: 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split( + '_' + ), + monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split( + '_' + ), + weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split( + '_' + ), + weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'), + weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY HH:mm', + LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm' + }, + calendar: { + sameDay: '[Hoje às] LT', + nextDay: '[Amanhã às] LT', + nextWeek: 'dddd [às] LT', + lastDay: '[Ontem às] LT', + lastWeek: function() { + return 0 === this.day() || 6 === this.day() + ? '[Último] dddd [às] LT' + : '[Última] dddd [às] LT'; + }, + sameElse: 'L' + }, + relativeTime: { + future: 'em %s', + past: 'há %s', + s: 'segundos', + ss: '%d segundos', + m: 'um minuto', + mm: '%d minutos', + h: 'uma hora', + hh: '%d horas', + d: 'um dia', + dd: '%d dias', + M: 'um mês', + MM: '%d meses', + y: 'um ano', + yy: '%d anos' + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('pt-br', { + months: 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split( + '_' + ), + monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split( + '_' + ), + weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split( + '_' + ), + weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'), + weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY [às] HH:mm', + LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm' + }, + calendar: { + sameDay: '[Hoje às] LT', + nextDay: '[Amanhã às] LT', + nextWeek: 'dddd [às] LT', + lastDay: '[Ontem às] LT', + lastWeek: function() { + return 0 === this.day() || 6 === this.day() + ? '[Último] dddd [às] LT' + : '[Última] dddd [às] LT'; + }, + sameElse: 'L' + }, + relativeTime: { + future: 'em %s', + past: 'há %s', + s: 'poucos segundos', + ss: '%d segundos', + m: 'um minuto', + mm: '%d minutos', + h: 'uma hora', + hh: '%d horas', + d: 'um dia', + dd: '%d dias', + M: 'um mês', + MM: '%d meses', + y: 'um ano', + yy: '%d anos' + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº' + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + function t(e, t, n) { + var r = ' '; return ( - null == e && (e = 0), - null == t && (t = 0), - (r.initialize = function(e) { - n = e; - }), - (r.x = function(t) { - return arguments.length ? ((e = +t), r) : e; - }), - (r.y = function(e) { - return arguments.length ? ((t = +e), r) : t; - }), - r + (e % 100 >= 20 || (e >= 100 && e % 100 == 0)) && (r = ' de '), + e + + r + + { + ss: 'secunde', + mm: 'minute', + hh: 'ore', + dd: 'zile', + MM: 'luni', + yy: 'ani' + }[n] ); - }, - vs = function(e) { - return function() { - return e; - }; - }, - _s = function() { - return 1e-6 * (Math.random() - 0.5); - }; - function xs(e, t, n, r) { - if (isNaN(t) || isNaN(n)) return e; - var o, - i, - a, - s, - c, - u, - l, - f, - d, - p = e._root, - h = { data: r }, - g = e._x0, - m = e._y0, - b = e._x1, - y = e._y1; - if (!p) return (e._root = h), e; - for (; p.length; ) - if ( - ((u = t >= (i = (g + b) / 2)) ? (g = i) : (b = i), - (l = n >= (a = (m + y) / 2)) ? (m = a) : (y = a), - (o = p), - !(p = p[(f = (l << 1) | u)])) - ) - return (o[f] = h), e; - if ( - ((s = +e._x.call(null, p.data)), - (c = +e._y.call(null, p.data)), - t === s && n === c) - ) - return (h.next = p), o ? (o[f] = h) : (e._root = h), e; - do { - (o = o ? (o[f] = new Array(4)) : (e._root = new Array(4))), - (u = t >= (i = (g + b) / 2)) ? (g = i) : (b = i), - (l = n >= (a = (m + y) / 2)) ? (m = a) : (y = a); - } while ((f = (l << 1) | u) == (d = ((c >= a) << 1) | (s >= i))); - return (o[d] = p), (o[f] = h), e; - } - var ws = function(e, t, n, r, o) { - (this.node = e), - (this.x0 = t), - (this.y0 = n), - (this.x1 = r), - (this.y1 = o); - }; - function Ms(e) { - return e[0]; - } - function ks(e) { - return e[1]; - } - function Ss(e, t, n) { - var r = new As( - null == t ? Ms : t, - null == n ? ks : n, - NaN, - NaN, - NaN, - NaN - ); - return null == e ? r : r.addAll(e); - } - function As(e, t, n, r, o, i) { - (this._x = e), - (this._y = t), - (this._x0 = n), - (this._y0 = r), - (this._x1 = o), - (this._y1 = i), - (this._root = void 0); - } - function Os(e) { - for (var t = { data: e.data }, n = t; (e = e.next); ) - n = n.next = { data: e.data }; - return t; - } - var Es = (Ss.prototype = As.prototype); - function Ts(e) { - return e.x + e.vx; - } - function Cs(e) { - return e.y + e.vy; - } - (Es.copy = function() { - var e, - t, - n = new As(this._x, this._y, this._x0, this._y0, this._x1, this._y1), - r = this._root; - if (!r) return n; - if (!r.length) return (n._root = Os(r)), n; - for ( - e = [{ source: r, target: (n._root = new Array(4)) }]; - (r = e.pop()); - - ) - for (var o = 0; o < 4; ++o) - (t = r.source[o]) && - (t.length - ? e.push({ source: t, target: (r.target[o] = new Array(4)) }) - : (r.target[o] = Os(t))); - return n; - }), - (Es.add = function(e) { - var t = +this._x.call(null, e), - n = +this._y.call(null, e); - return xs(this.cover(t, n), t, n, e); - }), - (Es.addAll = function(e) { - var t, - n, - r, - o, - i = e.length, - a = new Array(i), - s = new Array(i), - c = 1 / 0, - u = 1 / 0, - l = -1 / 0, - f = -1 / 0; - for (n = 0; n < i; ++n) - isNaN((r = +this._x.call(null, (t = e[n])))) || - isNaN((o = +this._y.call(null, t))) || - ((a[n] = r), - (s[n] = o), - r < c && (c = r), - r > l && (l = r), - o < u && (u = o), - o > f && (f = o)); - if (c > l || u > f) return this; - for (this.cover(c, u).cover(l, f), n = 0; n < i; ++n) - xs(this, a[n], s[n], e[n]); - return this; - }), - (Es.cover = function(e, t) { - if (isNaN((e = +e)) || isNaN((t = +t))) return this; - var n = this._x0, - r = this._y0, - o = this._x1, - i = this._y1; - if (isNaN(n)) - (o = (n = Math.floor(e)) + 1), (i = (r = Math.floor(t)) + 1); - else { - for ( - var a, s, c = o - n, u = this._root; - n > e || e >= o || r > t || t >= i; - + } + e.defineLocale('ro', { + months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split( + '_' + ), + monthsShort: 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split( + '_' + ), + weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'), + weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY H:mm', + LLLL: 'dddd, D MMMM YYYY H:mm' + }, + calendar: { + sameDay: '[azi la] LT', + nextDay: '[mâine la] LT', + nextWeek: 'dddd [la] LT', + lastDay: '[ieri la] LT', + lastWeek: '[fosta] dddd [la] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'peste %s', + past: '%s în urmă', + s: 'câteva secunde', + ss: t, + m: 'un minut', + mm: t, + h: 'o oră', + hh: t, + d: 'o zi', + dd: t, + M: 'o lună', + MM: t, + y: 'un an', + yy: t + }, + week: { dow: 1, doy: 7 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + function t(e, t, n) { + var r, o; + return 'm' === n + ? t + ? 'минута' + : 'минуту' + : e + + ' ' + + ((r = +e), + (o = { + ss: t ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд', + mm: t ? 'минута_минуты_минут' : 'минуту_минуты_минут', + hh: 'час_часа_часов', + dd: 'день_дня_дней', + MM: 'месяц_месяца_месяцев', + yy: 'год_года_лет' + }[n].split('_')), + r % 10 == 1 && r % 100 != 11 + ? o[0] + : r % 10 >= 2 && + r % 10 <= 4 && + (r % 100 < 10 || r % 100 >= 20) + ? o[1] + : o[2]); + } + var n = [ + /^янв/i, + /^фев/i, + /^мар/i, + /^апр/i, + /^ма[йя]/i, + /^июн/i, + /^июл/i, + /^авг/i, + /^сен/i, + /^окт/i, + /^ноя/i, + /^дек/i + ]; + e.defineLocale('ru', { + months: { + format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split( + '_' + ), + standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split( + '_' ) - switch ( - ((s = ((t < r) << 1) | (e < n)), - ((a = new Array(4))[s] = u), - (u = a), - (c *= 2), - s) - ) { + }, + monthsShort: { + format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split( + '_' + ), + standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split( + '_' + ) + }, + weekdays: { + standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split( + '_' + ), + format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split( + '_' + ), + isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/ + }, + weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'), + weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'), + monthsParse: n, + longMonthsParse: n, + shortMonthsParse: n, + monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, + monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, + monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i, + monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY г.', + LLL: 'D MMMM YYYY г., H:mm', + LLLL: 'dddd, D MMMM YYYY г., H:mm' + }, + calendar: { + sameDay: '[Сегодня, в] LT', + nextDay: '[Завтра, в] LT', + lastDay: '[Вчера, в] LT', + nextWeek: function(e) { + if (e.week() === this.week()) + return 2 === this.day() + ? '[Во] dddd, [в] LT' + : '[В] dddd, [в] LT'; + switch (this.day()) { case 0: - (o = n + c), (i = r + c); - break; + return '[В следующее] dddd, [в] LT'; case 1: - (n = o - c), (i = r + c); - break; case 2: - (o = n + c), (r = i - c); - break; + case 4: + return '[В следующий] dddd, [в] LT'; case 3: - (n = o - c), (r = i - c); + case 5: + case 6: + return '[В следующую] dddd, [в] LT'; } - this._root && this._root.length && (this._root = u); - } - return ( - (this._x0 = n), (this._y0 = r), (this._x1 = o), (this._y1 = i), this - ); - }), - (Es.data = function() { - var e = []; - return ( - this.visit(function(t) { - if (!t.length) - do { - e.push(t.data); - } while ((t = t.next)); - }), - e - ); - }), - (Es.extent = function(e) { - return arguments.length - ? this.cover(+e[0][0], +e[0][1]).cover(+e[1][0], +e[1][1]) - : isNaN(this._x0) - ? void 0 - : [ - [this._x0, this._y0], - [this._x1, this._y1] - ]; - }), - (Es.find = function(e, t, n) { - var r, - o, - i, - a, - s, - c, - u, - l = this._x0, - f = this._y0, - d = this._x1, - p = this._y1, - h = [], - g = this._root; - for ( - g && h.push(new ws(g, l, f, d, p)), - null == n - ? (n = 1 / 0) - : ((l = e - n), - (f = t - n), - (d = e + n), - (p = t + n), - (n *= n)); - (c = h.pop()); - - ) - if ( - !( - !(g = c.node) || - (o = c.x0) > d || - (i = c.y0) > p || - (a = c.x1) < l || - (s = c.y1) < f - ) - ) - if (g.length) { - var m = (o + a) / 2, - b = (i + s) / 2; - h.push( - new ws(g[3], m, b, a, s), - new ws(g[2], o, b, m, s), - new ws(g[1], m, i, a, b), - new ws(g[0], o, i, m, b) - ), - (u = ((t >= b) << 1) | (e >= m)) && - ((c = h[h.length - 1]), - (h[h.length - 1] = h[h.length - 1 - u]), - (h[h.length - 1 - u] = c)); - } else { - var y = e - +this._x.call(null, g.data), - v = t - +this._y.call(null, g.data), - _ = y * y + v * v; - if (_ < n) { - var x = Math.sqrt((n = _)); - (l = e - x), - (f = t - x), - (d = e + x), - (p = t + x), - (r = g.data); - } + }, + lastWeek: function(e) { + if (e.week() === this.week()) + return 2 === this.day() + ? '[Во] dddd, [в] LT' + : '[В] dddd, [в] LT'; + switch (this.day()) { + case 0: + return '[В прошлое] dddd, [в] LT'; + case 1: + case 2: + case 4: + return '[В прошлый] dddd, [в] LT'; + case 3: + case 5: + case 6: + return '[В прошлую] dddd, [в] LT'; } - return r; - }), - (Es.remove = function(e) { - if ( - isNaN((i = +this._x.call(null, e))) || - isNaN((a = +this._y.call(null, e))) - ) - return this; - var t, - n, - r, - o, - i, - a, - s, - c, - u, - l, - f, - d, - p = this._root, - h = this._x0, - g = this._y0, - m = this._x1, - b = this._y1; - if (!p) return this; - if (p.length) - for (;;) { - if ( - ((u = i >= (s = (h + m) / 2)) ? (h = s) : (m = s), - (l = a >= (c = (g + b) / 2)) ? (g = c) : (b = c), - (t = p), - !(p = p[(f = (l << 1) | u)])) - ) - return this; - if (!p.length) break; - (t[(f + 1) & 3] || t[(f + 2) & 3] || t[(f + 3) & 3]) && - ((n = t), (d = f)); - } - for (; p.data !== e; ) if (((r = p), !(p = p.next))) return this; - return ( - (o = p.next) && delete p.next, - r - ? (o ? (r.next = o) : delete r.next, this) - : t - ? (o ? (t[f] = o) : delete t[f], - (p = t[0] || t[1] || t[2] || t[3]) && - p === (t[3] || t[2] || t[1] || t[0]) && - !p.length && - (n ? (n[d] = p) : (this._root = p)), - this) - : ((this._root = o), this) - ); - }), - (Es.removeAll = function(e) { - for (var t = 0, n = e.length; t < n; ++t) this.remove(e[t]); - return this; - }), - (Es.root = function() { - return this._root; - }), - (Es.size = function() { - var e = 0; - return ( - this.visit(function(t) { - if (!t.length) - do { - ++e; - } while ((t = t.next)); - }), - e - ); - }), - (Es.visit = function(e) { - var t, - n, - r, - o, - i, - a, - s = [], - c = this._root; - for ( - c && s.push(new ws(c, this._x0, this._y0, this._x1, this._y1)); - (t = s.pop()); - - ) - if ( - !e( - (c = t.node), - (r = t.x0), - (o = t.y0), - (i = t.x1), - (a = t.y1) - ) && - c.length - ) { - var u = (r + i) / 2, - l = (o + a) / 2; - (n = c[3]) && s.push(new ws(n, u, l, i, a)), - (n = c[2]) && s.push(new ws(n, r, l, u, a)), - (n = c[1]) && s.push(new ws(n, u, o, i, l)), - (n = c[0]) && s.push(new ws(n, r, o, u, l)); - } - return this; - }), - (Es.visitAfter = function(e) { - var t, - n = [], - r = []; - for ( - this._root && - n.push(new ws(this._root, this._x0, this._y0, this._x1, this._y1)); - (t = n.pop()); - - ) { - var o = t.node; - if (o.length) { - var i, - a = t.x0, - s = t.y0, - c = t.x1, - u = t.y1, - l = (a + c) / 2, - f = (s + u) / 2; - (i = o[0]) && n.push(new ws(i, a, s, l, f)), - (i = o[1]) && n.push(new ws(i, l, s, c, f)), - (i = o[2]) && n.push(new ws(i, a, f, l, u)), - (i = o[3]) && n.push(new ws(i, l, f, c, u)); + }, + sameElse: 'L' + }, + relativeTime: { + future: 'через %s', + past: '%s назад', + s: 'несколько секунд', + ss: t, + m: t, + mm: t, + h: 'час', + hh: t, + d: 'день', + dd: t, + M: 'месяц', + MM: t, + y: 'год', + yy: t + }, + meridiemParse: /ночи|утра|дня|вечера/i, + isPM: function(e) { + return /^(дня|вечера)$/.test(e); + }, + meridiem: function(e, t, n) { + return e < 4 ? 'ночи' : e < 12 ? 'утра' : e < 17 ? 'дня' : 'вечера'; + }, + dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/, + ordinal: function(e, t) { + switch (t) { + case 'M': + case 'd': + case 'DDD': + return e + '-й'; + case 'D': + return e + '-го'; + case 'w': + case 'W': + return e + '-я'; + default: + return e; } - r.push(t); - } - for (; (t = r.pop()); ) e(t.node, t.x0, t.y0, t.x1, t.y1); - return this; - }), - (Es.x = function(e) { - return arguments.length ? ((this._x = e), this) : this._x; - }), - (Es.y = function(e) { - return arguments.length ? ((this._y = e), this) : this._y; + }, + week: { dow: 1, doy: 4 } }); - var Ls = function(e) { - var t, - n, - r = 1, - o = 1; - function i() { - for (var e, i, s, c, u, l, f, d = t.length, p = 0; p < o; ++p) - for (i = Ss(t, Ts, Cs).visitAfter(a), e = 0; e < d; ++e) - (s = t[e]), - (l = n[s.index]), - (f = l * l), - (c = s.x + s.vx), - (u = s.y + s.vy), - i.visit(h); - function h(e, t, n, o, i) { - var a = e.data, - d = e.r, - p = l + d; - if (!a) return t > c + p || o < c - p || n > u + p || i < u - p; - if (a.index > s.index) { - var h = c - a.x - a.vx, - g = u - a.y - a.vy, - m = h * h + g * g; - m < p * p && - (0 === h && (m += (h = _s()) * h), - 0 === g && (m += (g = _s()) * g), - (m = ((p - (m = Math.sqrt(m))) / m) * r), - (s.vx += (h *= m) * (p = (d *= d) / (f + d))), - (s.vy += (g *= m) * p), - (a.vx -= h * (p = 1 - p)), - (a.vy -= g * p)); - } - } - } - function a(e) { - if (e.data) return (e.r = n[e.data.index]); - for (var t = (e.r = 0); t < 4; ++t) - e[t] && e[t].r > e.r && (e.r = e[t].r); - } - function s() { - if (t) { - var r, - o, - i = t.length; - for (n = new Array(i), r = 0; r < i; ++r) - (o = t[r]), (n[o.index] = +e(o, r, t)); - } - } - return ( - 'function' != typeof e && (e = vs(null == e ? 1 : +e)), - (i.initialize = function(e) { - (t = e), s(); - }), - (i.iterations = function(e) { - return arguments.length ? ((o = +e), i) : o; - }), - (i.strength = function(e) { - return arguments.length ? ((r = +e), i) : r; - }), - (i.radius = function(t) { - return arguments.length - ? ((e = 'function' == typeof t ? t : vs(+t)), s(), i) - : e; - }), - i - ); - }; - function Ps(e) { - return e.index; - } - function Ds(e, t) { - var n = e.get(t); - if (!n) throw new Error('missing: ' + t); - return n; - } - var zs = function(e) { - var t, - n, - r, - o, - i, - a = Ps, - s = function(e) { - return 1 / Math.min(o[e.source.index], o[e.target.index]); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = [ + 'جنوري', + 'فيبروري', + 'مارچ', + 'اپريل', + 'مئي', + 'جون', + 'جولاءِ', + 'آگسٽ', + 'سيپٽمبر', + 'آڪٽوبر', + 'نومبر', + 'ڊسمبر' + ], + n = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر']; + e.defineLocale('sd', { + months: t, + monthsShort: t, + weekdays: n, + weekdaysShort: n, + weekdaysMin: n, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd، D MMMM YYYY HH:mm' }, - c = vs(30), - u = 1; - function l(r) { - for (var o = 0, a = e.length; o < u; ++o) - for (var s, c, l, f, d, p, h, g = 0; g < a; ++g) - (c = (s = e[g]).source), - (f = (l = s.target).x + l.vx - c.x - c.vx || _s()), - (d = l.y + l.vy - c.y - c.vy || _s()), - (f *= p = - (((p = Math.sqrt(f * f + d * d)) - n[g]) / p) * r * t[g]), - (d *= p), - (l.vx -= f * (h = i[g])), - (l.vy -= d * h), - (c.vx += f * (h = 1 - h)), - (c.vy += d * h); - } - function f() { - if (r) { - var s, - c, - u = r.length, - l = e.length, - f = Zo(r, a); - for (s = 0, o = new Array(u); s < l; ++s) - ((c = e[s]).index = s), - 'object' != typeof c.source && (c.source = Ds(f, c.source)), - 'object' != typeof c.target && (c.target = Ds(f, c.target)), - (o[c.source.index] = (o[c.source.index] || 0) + 1), - (o[c.target.index] = (o[c.target.index] || 0) + 1); - for (s = 0, i = new Array(l); s < l; ++s) - (c = e[s]), - (i[s] = - o[c.source.index] / (o[c.source.index] + o[c.target.index])); - (t = new Array(l)), d(), (n = new Array(l)), p(); + meridiemParse: /صبح|شام/, + isPM: function(e) { + return 'شام' === e; + }, + meridiem: function(e, t, n) { + return e < 12 ? 'صبح' : 'شام'; + }, + calendar: { + sameDay: '[اڄ] LT', + nextDay: '[سڀاڻي] LT', + nextWeek: 'dddd [اڳين هفتي تي] LT', + lastDay: '[ڪالهه] LT', + lastWeek: '[گزريل هفتي] dddd [تي] LT', + sameElse: 'L' + }, + relativeTime: { + future: '%s پوء', + past: '%s اڳ', + s: 'چند سيڪنڊ', + ss: '%d سيڪنڊ', + m: 'هڪ منٽ', + mm: '%d منٽ', + h: 'هڪ ڪلاڪ', + hh: '%d ڪلاڪ', + d: 'هڪ ڏينهن', + dd: '%d ڏينهن', + M: 'هڪ مهينو', + MM: '%d مهينا', + y: 'هڪ سال', + yy: '%d سال' + }, + preparse: function(e) { + return e.replace(/،/g, ','); + }, + postformat: function(e) { + return e.replace(/,/g, '،'); + }, + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('se', { + months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split( + '_' + ), + monthsShort: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split( + '_' + ), + weekdays: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split( + '_' + ), + weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'), + weekdaysMin: 's_v_m_g_d_b_L'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'MMMM D. [b.] YYYY', + LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm', + LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm' + }, + calendar: { + sameDay: '[otne ti] LT', + nextDay: '[ihttin ti] LT', + nextWeek: 'dddd [ti] LT', + lastDay: '[ikte ti] LT', + lastWeek: '[ovddit] dddd [ti] LT', + sameElse: 'L' + }, + relativeTime: { + future: '%s geažes', + past: 'maŋit %s', + s: 'moadde sekunddat', + ss: '%d sekunddat', + m: 'okta minuhta', + mm: '%d minuhtat', + h: 'okta diimmu', + hh: '%d diimmut', + d: 'okta beaivi', + dd: '%d beaivvit', + M: 'okta mánnu', + MM: '%d mánut', + y: 'okta jahki', + yy: '%d jagit' + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('si', { + months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split( + '_' + ), + monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split( + '_' + ), + weekdays: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split( + '_' + ), + weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'), + weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'a h:mm', + LTS: 'a h:mm:ss', + L: 'YYYY/MM/DD', + LL: 'YYYY MMMM D', + LLL: 'YYYY MMMM D, a h:mm', + LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss' + }, + calendar: { + sameDay: '[අද] LT[ට]', + nextDay: '[හෙට] LT[ට]', + nextWeek: 'dddd LT[ට]', + lastDay: '[ඊයේ] LT[ට]', + lastWeek: '[පසුගිය] dddd LT[ට]', + sameElse: 'L' + }, + relativeTime: { + future: '%sකින්', + past: '%sකට පෙර', + s: 'තත්පර කිහිපය', + ss: 'තත්පර %d', + m: 'මිනිත්තුව', + mm: 'මිනිත්තු %d', + h: 'පැය', + hh: 'පැය %d', + d: 'දිනය', + dd: 'දින %d', + M: 'මාසය', + MM: 'මාස %d', + y: 'වසර', + yy: 'වසර %d' + }, + dayOfMonthOrdinalParse: /\d{1,2} වැනි/, + ordinal: function(e) { + return e + ' වැනි'; + }, + meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./, + isPM: function(e) { + return 'ප.ව.' === e || 'පස් වරු' === e; + }, + meridiem: function(e, t, n) { + return e > 11 ? (n ? 'ප.ව.' : 'පස් වරු') : n ? 'පෙ.ව.' : 'පෙර වරු'; } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split( + '_' + ), + n = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_'); + function r(e) { + return e > 1 && e < 5; } - function d() { - if (r) - for (var n = 0, o = e.length; n < o; ++n) t[n] = +s(e[n], n, e); - } - function p() { - if (r) - for (var t = 0, o = e.length; t < o; ++t) n[t] = +c(e[t], t, e); - } - return ( - null == e && (e = []), - (l.initialize = function(e) { - (r = e), f(); - }), - (l.links = function(t) { - return arguments.length ? ((e = t), f(), l) : e; - }), - (l.id = function(e) { - return arguments.length ? ((a = e), l) : a; - }), - (l.iterations = function(e) { - return arguments.length ? ((u = +e), l) : u; - }), - (l.strength = function(e) { - return arguments.length - ? ((s = 'function' == typeof e ? e : vs(+e)), d(), l) - : s; - }), - (l.distance = function(e) { - return arguments.length - ? ((c = 'function' == typeof e ? e : vs(+e)), p(), l) - : c; - }), - l - ); - }; - function Ns(e) { - return e.x; - } - function js(e) { - return e.y; - } - var Rs = Math.PI * (3 - Math.sqrt(5)), - Is = function(e) { - var t, - n = 1, - r = 0.001, - o = 1 - Math.pow(r, 1 / 300), - i = 0, - a = 0.6, - s = Zo(), - c = Vn(l), - u = fe('tick', 'end'); - function l() { - f(), u.call('tick', t), n < r && (c.stop(), u.call('end', t)); - } - function f(r) { - var c, - u, - l = e.length; - void 0 === r && (r = 1); - for (var f = 0; f < r; ++f) - for ( - n += (i - n) * o, - s.each(function(e) { - e(n); - }), - c = 0; - c < l; - ++c - ) - null == (u = e[c]).fx - ? (u.x += u.vx *= a) - : ((u.x = u.fx), (u.vx = 0)), - null == u.fy - ? (u.y += u.vy *= a) - : ((u.y = u.fy), (u.vy = 0)); - return t; + function o(e, t, n, o) { + var i = e + ' '; + switch (n) { + case 's': + return t || o ? 'pár sekúnd' : 'pár sekundami'; + case 'ss': + return t || o + ? i + (r(e) ? 'sekundy' : 'sekúnd') + : i + 'sekundami'; + case 'm': + return t ? 'minúta' : o ? 'minútu' : 'minútou'; + case 'mm': + return t || o ? i + (r(e) ? 'minúty' : 'minút') : i + 'minútami'; + case 'h': + return t ? 'hodina' : o ? 'hodinu' : 'hodinou'; + case 'hh': + return t || o ? i + (r(e) ? 'hodiny' : 'hodín') : i + 'hodinami'; + case 'd': + return t || o ? 'deň' : 'dňom'; + case 'dd': + return t || o ? i + (r(e) ? 'dni' : 'dní') : i + 'dňami'; + case 'M': + return t || o ? 'mesiac' : 'mesiacom'; + case 'MM': + return t || o + ? i + (r(e) ? 'mesiace' : 'mesiacov') + : i + 'mesiacmi'; + case 'y': + return t || o ? 'rok' : 'rokom'; + case 'yy': + return t || o ? i + (r(e) ? 'roky' : 'rokov') : i + 'rokmi'; } - function d() { - for (var t, n = 0, r = e.length; n < r; ++n) { - if ( - (((t = e[n]).index = n), - null != t.fx && (t.x = t.fx), - null != t.fy && (t.y = t.fy), - isNaN(t.x) || isNaN(t.y)) - ) { - var o = 10 * Math.sqrt(n), - i = n * Rs; - (t.x = o * Math.cos(i)), (t.y = o * Math.sin(i)); + } + e.defineLocale('sk', { + months: t, + monthsShort: n, + weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split( + '_' + ), + weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'), + weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd D. MMMM YYYY H:mm' + }, + calendar: { + sameDay: '[dnes o] LT', + nextDay: '[zajtra o] LT', + nextWeek: function() { + switch (this.day()) { + case 0: + return '[v nedeľu o] LT'; + case 1: + case 2: + return '[v] dddd [o] LT'; + case 3: + return '[v stredu o] LT'; + case 4: + return '[vo štvrtok o] LT'; + case 5: + return '[v piatok o] LT'; + case 6: + return '[v sobotu o] LT'; } - (isNaN(t.vx) || isNaN(t.vy)) && (t.vx = t.vy = 0); - } - } - function p(t) { - return t.initialize && t.initialize(e), t; - } - return ( - null == e && (e = []), - d(), - (t = { - tick: f, - restart: function() { - return c.restart(l), t; - }, - stop: function() { - return c.stop(), t; - }, - nodes: function(n) { - return arguments.length ? ((e = n), d(), s.each(p), t) : e; - }, - alpha: function(e) { - return arguments.length ? ((n = +e), t) : n; - }, - alphaMin: function(e) { - return arguments.length ? ((r = +e), t) : r; - }, - alphaDecay: function(e) { - return arguments.length ? ((o = +e), t) : +o; - }, - alphaTarget: function(e) { - return arguments.length ? ((i = +e), t) : i; - }, - velocityDecay: function(e) { - return arguments.length ? ((a = 1 - e), t) : 1 - a; - }, - force: function(e, n) { - return arguments.length > 1 - ? (null == n ? s.remove(e) : s.set(e, p(n)), t) - : s.get(e); - }, - find: function(t, n, r) { - var o, - i, - a, - s, - c, - u = 0, - l = e.length; - for (null == r ? (r = 1 / 0) : (r *= r), u = 0; u < l; ++u) - (a = (o = t - (s = e[u]).x) * o + (i = n - s.y) * i) < r && - ((c = s), (r = a)); - return c; - }, - on: function(e, n) { - return arguments.length > 1 ? (u.on(e, n), t) : u.on(e); + }, + lastDay: '[včera o] LT', + lastWeek: function() { + switch (this.day()) { + case 0: + return '[minulú nedeľu o] LT'; + case 1: + case 2: + return '[minulý] dddd [o] LT'; + case 3: + return '[minulú stredu o] LT'; + case 4: + case 5: + return '[minulý] dddd [o] LT'; + case 6: + return '[minulú sobotu o] LT'; } - }) - ); - }, - Fs = function() { - var e, - t, - n, - r, - o = vs(-30), - i = 1, - a = 1 / 0, - s = 0.81; - function c(r) { - var o, - i = e.length, - a = Ss(e, Ns, js).visitAfter(l); - for (n = r, o = 0; o < i; ++o) (t = e[o]), a.visit(f); - } - function u() { - if (e) { - var t, - n, - i = e.length; - for (r = new Array(i), t = 0; t < i; ++t) - (n = e[t]), (r[n.index] = +o(n, t, e)); - } - } - function l(e) { - var t, - n, - o, - i, - a, - s = 0, - c = 0; - if (e.length) { - for (o = i = a = 0; a < 4; ++a) - (t = e[a]) && - (n = Math.abs(t.value)) && - ((s += t.value), (c += n), (o += n * t.x), (i += n * t.y)); - (e.x = o / c), (e.y = i / c); - } else { - ((t = e).x = t.data.x), (t.y = t.data.y); - do { - s += r[t.data.index]; - } while ((t = t.next)); - } - e.value = s; - } - function f(e, o, c, u) { - if (!e.value) return !0; - var l = e.x - t.x, - f = e.y - t.y, - d = u - o, - p = l * l + f * f; - if ((d * d) / s < p) - return ( - p < a && - (0 === l && (p += (l = _s()) * l), - 0 === f && (p += (f = _s()) * f), - p < i && (p = Math.sqrt(i * p)), - (t.vx += (l * e.value * n) / p), - (t.vy += (f * e.value * n) / p)), - !0 - ); - if (!(e.length || p >= a)) { - (e.data !== t || e.next) && - (0 === l && (p += (l = _s()) * l), - 0 === f && (p += (f = _s()) * f), - p < i && (p = Math.sqrt(i * p))); - do { - e.data !== t && - ((d = (r[e.data.index] * n) / p), - (t.vx += l * d), - (t.vy += f * d)); - } while ((e = e.next)); - } - } - return ( - (c.initialize = function(t) { - (e = t), u(); - }), - (c.strength = function(e) { - return arguments.length - ? ((o = 'function' == typeof e ? e : vs(+e)), u(), c) - : o; - }), - (c.distanceMin = function(e) { - return arguments.length ? ((i = e * e), c) : Math.sqrt(i); - }), - (c.distanceMax = function(e) { - return arguments.length ? ((a = e * e), c) : Math.sqrt(a); - }), - (c.theta = function(e) { - return arguments.length ? ((s = e * e), c) : Math.sqrt(s); - }), - c - ); - }, - qs = function(e, t, n) { - var r, - o, - i, - a = vs(0.1); - function s(e) { - for (var a = 0, s = r.length; a < s; ++a) { - var c = r[a], - u = c.x - t || 1e-6, - l = c.y - n || 1e-6, - f = Math.sqrt(u * u + l * l), - d = ((i[a] - f) * o[a] * e) / f; - (c.vx += u * d), (c.vy += l * d); - } - } - function c() { - if (r) { - var t, - n = r.length; - for (o = new Array(n), i = new Array(n), t = 0; t < n; ++t) - (i[t] = +e(r[t], t, r)), - (o[t] = isNaN(i[t]) ? 0 : +a(r[t], t, r)); - } - } - return ( - 'function' != typeof e && (e = vs(+e)), - null == t && (t = 0), - null == n && (n = 0), - (s.initialize = function(e) { - (r = e), c(); - }), - (s.strength = function(e) { - return arguments.length - ? ((a = 'function' == typeof e ? e : vs(+e)), c(), s) - : a; - }), - (s.radius = function(t) { - return arguments.length - ? ((e = 'function' == typeof t ? t : vs(+t)), c(), s) - : e; - }), - (s.x = function(e) { - return arguments.length ? ((t = +e), s) : t; - }), - (s.y = function(e) { - return arguments.length ? ((n = +e), s) : n; - }), - s - ); - }, - Bs = function(e) { - var t, - n, - r, - o = vs(0.1); - function i(e) { - for (var o, i = 0, a = t.length; i < a; ++i) - (o = t[i]).vx += (r[i] - o.x) * n[i] * e; - } - function a() { - if (t) { - var i, - a = t.length; - for (n = new Array(a), r = new Array(a), i = 0; i < a; ++i) - n[i] = isNaN((r[i] = +e(t[i], i, t))) ? 0 : +o(t[i], i, t); - } + }, + sameElse: 'L' + }, + relativeTime: { + future: 'za %s', + past: 'pred %s', + s: o, + ss: o, + m: o, + mm: o, + h: o, + hh: o, + d: o, + dd: o, + M: o, + MM: o, + y: o, + yy: o + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + function t(e, t, n, r) { + var o = e + ' '; + switch (n) { + case 's': + return t || r ? 'nekaj sekund' : 'nekaj sekundami'; + case 'ss': + return (o += + 1 === e + ? t + ? 'sekundo' + : 'sekundi' + : 2 === e + ? t || r + ? 'sekundi' + : 'sekundah' + : e < 5 + ? t || r + ? 'sekunde' + : 'sekundah' + : 'sekund'); + case 'm': + return t ? 'ena minuta' : 'eno minuto'; + case 'mm': + return (o += + 1 === e + ? t + ? 'minuta' + : 'minuto' + : 2 === e + ? t || r + ? 'minuti' + : 'minutama' + : e < 5 + ? t || r + ? 'minute' + : 'minutami' + : t || r + ? 'minut' + : 'minutami'); + case 'h': + return t ? 'ena ura' : 'eno uro'; + case 'hh': + return (o += + 1 === e + ? t + ? 'ura' + : 'uro' + : 2 === e + ? t || r + ? 'uri' + : 'urama' + : e < 5 + ? t || r + ? 'ure' + : 'urami' + : t || r + ? 'ur' + : 'urami'); + case 'd': + return t || r ? 'en dan' : 'enim dnem'; + case 'dd': + return (o += + 1 === e + ? t || r + ? 'dan' + : 'dnem' + : 2 === e + ? t || r + ? 'dni' + : 'dnevoma' + : t || r + ? 'dni' + : 'dnevi'); + case 'M': + return t || r ? 'en mesec' : 'enim mesecem'; + case 'MM': + return (o += + 1 === e + ? t || r + ? 'mesec' + : 'mesecem' + : 2 === e + ? t || r + ? 'meseca' + : 'mesecema' + : e < 5 + ? t || r + ? 'mesece' + : 'meseci' + : t || r + ? 'mesecev' + : 'meseci'); + case 'y': + return t || r ? 'eno leto' : 'enim letom'; + case 'yy': + return (o += + 1 === e + ? t || r + ? 'leto' + : 'letom' + : 2 === e + ? t || r + ? 'leti' + : 'letoma' + : e < 5 + ? t || r + ? 'leta' + : 'leti' + : t || r + ? 'let' + : 'leti'); } - return ( - 'function' != typeof e && (e = vs(null == e ? 0 : +e)), - (i.initialize = function(e) { - (t = e), a(); - }), - (i.strength = function(e) { - return arguments.length - ? ((o = 'function' == typeof e ? e : vs(+e)), a(), i) - : o; - }), - (i.x = function(t) { - return arguments.length - ? ((e = 'function' == typeof t ? t : vs(+t)), a(), i) - : e; - }), - i - ); - }, - Hs = function(e) { - var t, - n, - r, - o = vs(0.1); - function i(e) { - for (var o, i = 0, a = t.length; i < a; ++i) - (o = t[i]).vy += (r[i] - o.y) * n[i] * e; + } + e.defineLocale('sl', { + months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split( + '_' + ), + monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split( + '_' + ), + weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'), + weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm' + }, + calendar: { + sameDay: '[danes ob] LT', + nextDay: '[jutri ob] LT', + nextWeek: function() { + switch (this.day()) { + case 0: + return '[v] [nedeljo] [ob] LT'; + case 3: + return '[v] [sredo] [ob] LT'; + case 6: + return '[v] [soboto] [ob] LT'; + case 1: + case 2: + case 4: + case 5: + return '[v] dddd [ob] LT'; + } + }, + lastDay: '[včeraj ob] LT', + lastWeek: function() { + switch (this.day()) { + case 0: + return '[prejšnjo] [nedeljo] [ob] LT'; + case 3: + return '[prejšnjo] [sredo] [ob] LT'; + case 6: + return '[prejšnjo] [soboto] [ob] LT'; + case 1: + case 2: + case 4: + case 5: + return '[prejšnji] dddd [ob] LT'; + } + }, + sameElse: 'L' + }, + relativeTime: { + future: 'čez %s', + past: 'pred %s', + s: t, + ss: t, + m: t, + mm: t, + h: t, + hh: t, + d: t, + dd: t, + M: t, + MM: t, + y: t, + yy: t + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 7 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('sq', { + months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split( + '_' + ), + monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split( + '_' + ), + weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split( + '_' + ), + weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'), + weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'), + weekdaysParseExact: !0, + meridiemParse: /PD|MD/, + isPM: function(e) { + return 'M' === e.charAt(0); + }, + meridiem: function(e, t, n) { + return e < 12 ? 'PD' : 'MD'; + }, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[Sot në] LT', + nextDay: '[Nesër në] LT', + nextWeek: 'dddd [në] LT', + lastDay: '[Dje në] LT', + lastWeek: 'dddd [e kaluar në] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'në %s', + past: '%s më parë', + s: 'disa sekonda', + ss: '%d sekonda', + m: 'një minutë', + mm: '%d minuta', + h: 'një orë', + hh: '%d orë', + d: 'një ditë', + dd: '%d ditë', + M: 'një muaj', + MM: '%d muaj', + y: 'një vit', + yy: '%d vite' + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = { + words: { + ss: ['sekunda', 'sekunde', 'sekundi'], + m: ['jedan minut', 'jedne minute'], + mm: ['minut', 'minute', 'minuta'], + h: ['jedan sat', 'jednog sata'], + hh: ['sat', 'sata', 'sati'], + dd: ['dan', 'dana', 'dana'], + MM: ['mesec', 'meseca', 'meseci'], + yy: ['godina', 'godine', 'godina'] + }, + correctGrammaticalCase: function(e, t) { + return 1 === e ? t[0] : e >= 2 && e <= 4 ? t[1] : t[2]; + }, + translate: function(e, n, r) { + var o = t.words[r]; + return 1 === r.length + ? n + ? o[0] + : o[1] + : e + ' ' + t.correctGrammaticalCase(e, o); } - function a() { - if (t) { - var i, - a = t.length; - for (n = new Array(a), r = new Array(a), i = 0; i < a; ++i) - n[i] = isNaN((r[i] = +e(t[i], i, t))) ? 0 : +o(t[i], i, t); - } + }; + e.defineLocale('sr', { + months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split( + '_' + ), + monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split( + '_' + ), + weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'), + weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm' + }, + calendar: { + sameDay: '[danas u] LT', + nextDay: '[sutra u] LT', + nextWeek: function() { + switch (this.day()) { + case 0: + return '[u] [nedelju] [u] LT'; + case 3: + return '[u] [sredu] [u] LT'; + case 6: + return '[u] [subotu] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[u] dddd [u] LT'; + } + }, + lastDay: '[juče u] LT', + lastWeek: function() { + return [ + '[prošle] [nedelje] [u] LT', + '[prošlog] [ponedeljka] [u] LT', + '[prošlog] [utorka] [u] LT', + '[prošle] [srede] [u] LT', + '[prošlog] [četvrtka] [u] LT', + '[prošlog] [petka] [u] LT', + '[prošle] [subote] [u] LT' + ][this.day()]; + }, + sameElse: 'L' + }, + relativeTime: { + future: 'za %s', + past: 'pre %s', + s: 'nekoliko sekundi', + ss: t.translate, + m: t.translate, + mm: t.translate, + h: t.translate, + hh: t.translate, + d: 'dan', + dd: t.translate, + M: 'mesec', + MM: t.translate, + y: 'godinu', + yy: t.translate + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 7 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = { + words: { + ss: ['секунда', 'секунде', 'секунди'], + m: ['један минут', 'једне минуте'], + mm: ['минут', 'минуте', 'минута'], + h: ['један сат', 'једног сата'], + hh: ['сат', 'сата', 'сати'], + dd: ['дан', 'дана', 'дана'], + MM: ['месец', 'месеца', 'месеци'], + yy: ['година', 'године', 'година'] + }, + correctGrammaticalCase: function(e, t) { + return 1 === e ? t[0] : e >= 2 && e <= 4 ? t[1] : t[2]; + }, + translate: function(e, n, r) { + var o = t.words[r]; + return 1 === r.length + ? n + ? o[0] + : o[1] + : e + ' ' + t.correctGrammaticalCase(e, o); } - return ( - 'function' != typeof e && (e = vs(null == e ? 0 : +e)), - (i.initialize = function(e) { - (t = e), a(); - }), - (i.strength = function(e) { - return arguments.length - ? ((o = 'function' == typeof e ? e : vs(+e)), a(), i) - : o; - }), - (i.y = function(t) { - return arguments.length - ? ((e = 'function' == typeof t ? t : vs(+t)), a(), i) - : e; - }), - i - ); - }, - Ys = function(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)]; - }, - Ws = function(e) { - return (e = Ys(Math.abs(e))) ? e[1] : NaN; - }, - Vs = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i; - function Us(e) { - if (!(t = Vs.exec(e))) throw new Error('invalid format: ' + e); - var t; - return new Xs({ - 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] + }; + e.defineLocale('sr-cyrl', { + months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split( + '_' + ), + monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split( + '_' + ), + weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'), + weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm' + }, + calendar: { + sameDay: '[данас у] LT', + nextDay: '[сутра у] LT', + nextWeek: function() { + switch (this.day()) { + case 0: + return '[у] [недељу] [у] LT'; + case 3: + return '[у] [среду] [у] LT'; + case 6: + return '[у] [суботу] [у] LT'; + case 1: + case 2: + case 4: + case 5: + return '[у] dddd [у] LT'; + } + }, + lastDay: '[јуче у] LT', + lastWeek: function() { + return [ + '[прошле] [недеље] [у] LT', + '[прошлог] [понедељка] [у] LT', + '[прошлог] [уторка] [у] LT', + '[прошле] [среде] [у] LT', + '[прошлог] [четвртка] [у] LT', + '[прошлог] [петка] [у] LT', + '[прошле] [суботе] [у] LT' + ][this.day()]; + }, + sameElse: 'L' + }, + relativeTime: { + future: 'за %s', + past: 'пре %s', + s: 'неколико секунди', + ss: t.translate, + m: t.translate, + mm: t.translate, + h: t.translate, + hh: t.translate, + d: 'дан', + dd: t.translate, + M: 'месец', + MM: t.translate, + y: 'годину', + yy: t.translate + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 7 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('ss', { + months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split( + '_' + ), + monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split( + '_' + ), + weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split( + '_' + ), + weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'), + weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A' + }, + calendar: { + sameDay: '[Namuhla nga] LT', + nextDay: '[Kusasa nga] LT', + nextWeek: 'dddd [nga] LT', + lastDay: '[Itolo nga] LT', + lastWeek: 'dddd [leliphelile] [nga] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'nga %s', + past: 'wenteka nga %s', + s: 'emizuzwana lomcane', + ss: '%d mzuzwana', + m: 'umzuzu', + mm: '%d emizuzu', + h: 'lihora', + hh: '%d emahora', + d: 'lilanga', + dd: '%d emalanga', + M: 'inyanga', + MM: '%d tinyanga', + y: 'umnyaka', + yy: '%d iminyaka' + }, + meridiemParse: /ekuseni|emini|entsambama|ebusuku/, + meridiem: function(e, t, n) { + return e < 11 + ? 'ekuseni' + : e < 15 + ? 'emini' + : e < 19 + ? 'entsambama' + : 'ebusuku'; + }, + meridiemHour: function(e, t) { + return ( + 12 === e && (e = 0), + 'ekuseni' === t + ? e + : 'emini' === t + ? e >= 11 + ? e + : e + 12 + : 'entsambama' === t || 'ebusuku' === t + ? 0 === e + ? 0 + : e + 12 + : void 0 + ); + }, + dayOfMonthOrdinalParse: /\d{1,2}/, + ordinal: '%d', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('sv', { + months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split( + '_' + ), + weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split( + '_' + ), + weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'), + weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [kl.] HH:mm', + LLLL: 'dddd D MMMM YYYY [kl.] HH:mm', + lll: 'D MMM YYYY HH:mm', + llll: 'ddd D MMM YYYY HH:mm' + }, + calendar: { + sameDay: '[Idag] LT', + nextDay: '[Imorgon] LT', + lastDay: '[Igår] LT', + nextWeek: '[På] dddd LT', + lastWeek: '[I] dddd[s] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'om %s', + past: 'för %s sedan', + s: 'några sekunder', + ss: '%d sekunder', + m: 'en minut', + mm: '%d minuter', + h: 'en timme', + hh: '%d timmar', + d: 'en dag', + dd: '%d dagar', + M: 'en månad', + MM: '%d månader', + y: 'ett år', + yy: '%d år' + }, + dayOfMonthOrdinalParse: /\d{1,2}(e|a)/, + ordinal: function(e) { + var t = e % 10; + return ( + e + + (1 == ~~((e % 100) / 10) + ? 'e' + : 1 === t + ? 'a' + : 2 === t + ? 'a' + : 'e') + ); + }, + week: { dow: 1, doy: 4 } }); - } - function Xs(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 + ''); - } - (Us.prototype = Xs.prototype), - (Xs.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 - ); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('sw', { + months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split( + '_' + ), + weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split( + '_' + ), + weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'), + weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[leo saa] LT', + nextDay: '[kesho saa] LT', + nextWeek: '[wiki ijayo] dddd [saat] LT', + lastDay: '[jana] LT', + lastWeek: '[wiki iliyopita] dddd [saat] LT', + sameElse: 'L' + }, + relativeTime: { + future: '%s baadaye', + past: 'tokea %s', + s: 'hivi punde', + ss: 'sekunde %d', + m: 'dakika moja', + mm: 'dakika %d', + h: 'saa limoja', + hh: 'masaa %d', + d: 'siku moja', + dd: 'masiku %d', + M: 'mwezi mmoja', + MM: 'miezi %d', + y: 'mwaka mmoja', + yy: 'miaka %d' + }, + week: { dow: 1, doy: 7 } }); - var Gs, - Ks, - $s, - Qs, - Js = function(e, t) { - var n = Ys(e, t); - if (!n) return e + ''; - var r = n[0], - o = n[1]; - return o < 0 - ? '0.' + new Array(-o).join('0') + r - : r.length > o + 1 - ? r.slice(0, o + 1) + '.' + r.slice(o + 1) - : r + new Array(o - r.length + 2).join('0'); - }, - Zs = { - '%': function(e, t) { - return (100 * e).toFixed(t); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = { + 1: '௧', + 2: '௨', + 3: '௩', + 4: '௪', + 5: '௫', + 6: '௬', + 7: '௭', + 8: '௮', + 9: '௯', + 0: '௦' }, - b: function(e) { - return Math.round(e).toString(2); + n = { + '௧': '1', + '௨': '2', + '௩': '3', + '௪': '4', + '௫': '5', + '௬': '6', + '௭': '7', + '௮': '8', + '௯': '9', + '௦': '0' + }; + e.defineLocale('ta', { + months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split( + '_' + ), + monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split( + '_' + ), + weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split( + '_' + ), + weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split( + '_' + ), + weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, HH:mm', + LLLL: 'dddd, D MMMM YYYY, HH:mm' }, - c: function(e) { - return e + ''; + calendar: { + sameDay: '[இன்று] LT', + nextDay: '[நாளை] LT', + nextWeek: 'dddd, LT', + lastDay: '[நேற்று] LT', + lastWeek: '[கடந்த வாரம்] dddd, LT', + sameElse: 'L' }, - d: function(e) { - return Math.round(e).toString(10); + relativeTime: { + future: '%s இல்', + past: '%s முன்', + s: 'ஒரு சில விநாடிகள்', + ss: '%d விநாடிகள்', + m: 'ஒரு நிமிடம்', + mm: '%d நிமிடங்கள்', + h: 'ஒரு மணி நேரம்', + hh: '%d மணி நேரம்', + d: 'ஒரு நாள்', + dd: '%d நாட்கள்', + M: 'ஒரு மாதம்', + MM: '%d மாதங்கள்', + y: 'ஒரு வருடம்', + yy: '%d ஆண்டுகள்' }, - e: function(e, t) { - return e.toExponential(t); + dayOfMonthOrdinalParse: /\d{1,2}வது/, + ordinal: function(e) { + return e + 'வது'; }, - f: function(e, t) { - return e.toFixed(t); + preparse: function(e) { + return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function(e) { + return n[e]; + }); }, - g: function(e, t) { - return e.toPrecision(t); + postformat: function(e) { + return e.replace(/\d/g, function(e) { + return t[e]; + }); }, - o: function(e) { - return Math.round(e).toString(8); + meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/, + meridiem: function(e, t, n) { + return e < 2 + ? ' யாமம்' + : e < 6 + ? ' வைகறை' + : e < 10 + ? ' காலை' + : e < 14 + ? ' நண்பகல்' + : e < 18 + ? ' எற்பாடு' + : e < 22 + ? ' மாலை' + : ' யாமம்'; }, - p: function(e, t) { - return Js(100 * e, t); + meridiemHour: function(e, t) { + return ( + 12 === e && (e = 0), + 'யாமம்' === t + ? e < 2 + ? e + : e + 12 + : 'வைகறை' === t || 'காலை' === t + ? e + : 'நண்பகல்' === t && e >= 10 + ? e + : e + 12 + ); }, - r: Js, - s: function(e, t) { - var n = Ys(e, t); - if (!n) return e + ''; - var r = n[0], - o = n[1], - i = - o - (Gs = 3 * Math.max(-8, Math.min(8, Math.floor(o / 3)))) + 1, - a = r.length; - return i === a - ? r - : i > a - ? r + new Array(i - a + 1).join('0') - : i > 0 - ? r.slice(0, i) + '.' + r.slice(i) - : '0.' + - new Array(1 - i).join('0') + - Ys(e, Math.max(0, t + i - 1))[0]; + week: { dow: 0, doy: 6 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('te', { + months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split( + '_' + ), + monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split( + '_' + ), + weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'), + weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'), + longDateFormat: { + LT: 'A h:mm', + LTS: 'A h:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm', + LLLL: 'dddd, D MMMM YYYY, A h:mm' }, - X: function(e) { - return Math.round(e) - .toString(16) - .toUpperCase(); + calendar: { + sameDay: '[నేడు] LT', + nextDay: '[రేపు] LT', + nextWeek: 'dddd, LT', + lastDay: '[నిన్న] LT', + lastWeek: '[గత] dddd, LT', + sameElse: 'L' }, - x: function(e) { - return Math.round(e).toString(16); + relativeTime: { + future: '%s లో', + past: '%s క్రితం', + s: 'కొన్ని క్షణాలు', + ss: '%d సెకన్లు', + m: 'ఒక నిమిషం', + mm: '%d నిమిషాలు', + h: 'ఒక గంట', + hh: '%d గంటలు', + d: 'ఒక రోజు', + dd: '%d రోజులు', + M: 'ఒక నెల', + MM: '%d నెలలు', + y: 'ఒక సంవత్సరం', + yy: '%d సంవత్సరాలు' + }, + dayOfMonthOrdinalParse: /\d{1,2}వ/, + ordinal: '%dవ', + meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/, + meridiemHour: function(e, t) { + return ( + 12 === e && (e = 0), + 'రాత్రి' === t + ? e < 4 + ? e + : e + 12 + : 'ఉదయం' === t + ? e + : 'మధ్యాహ్నం' === t + ? e >= 10 + ? e + : e + 12 + : 'సాయంత్రం' === t + ? e + 12 + : void 0 + ); + }, + meridiem: function(e, t, n) { + return e < 4 + ? 'రాత్రి' + : e < 10 + ? 'ఉదయం' + : e < 17 + ? 'మధ్యాహ్నం' + : e < 20 + ? 'సాయంత్రం' + : 'రాత్రి'; + }, + week: { dow: 0, doy: 6 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('tet', { + months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split( + '_' + ), + monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split( + '_' + ), + weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split( + '_' + ), + weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'), + weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[Ohin iha] LT', + nextDay: '[Aban iha] LT', + nextWeek: 'dddd [iha] LT', + lastDay: '[Horiseik iha] LT', + lastWeek: 'dddd [semana kotuk] [iha] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'iha %s', + past: '%s liuba', + s: 'minutu balun', + ss: 'minutu %d', + m: 'minutu ida', + mm: 'minutu %d', + h: 'oras ida', + hh: 'oras %d', + d: 'loron ida', + dd: 'loron %d', + M: 'fulan ida', + MM: 'fulan %d', + y: 'tinan ida', + yy: 'tinan %d' + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function(e) { + var t = e % 10; + return ( + e + + (1 == ~~((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') + ); + }, + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = { + 0: '-ум', + 1: '-ум', + 2: '-юм', + 3: '-юм', + 4: '-ум', + 5: '-ум', + 6: '-ум', + 7: '-ум', + 8: '-ум', + 9: '-ум', + 10: '-ум', + 12: '-ум', + 13: '-ум', + 20: '-ум', + 30: '-юм', + 40: '-ум', + 50: '-ум', + 60: '-ум', + 70: '-ум', + 80: '-ум', + 90: '-ум', + 100: '-ум' + }; + e.defineLocale('tg', { + months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split( + '_' + ), + monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split( + '_' + ), + weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split( + '_' + ), + weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'), + weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[Имрӯз соати] LT', + nextDay: '[Пагоҳ соати] LT', + lastDay: '[Дирӯз соати] LT', + nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT', + lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'баъди %s', + past: '%s пеш', + s: 'якчанд сония', + m: 'як дақиқа', + mm: '%d дақиқа', + h: 'як соат', + hh: '%d соат', + d: 'як рӯз', + dd: '%d рӯз', + M: 'як моҳ', + MM: '%d моҳ', + y: 'як сол', + yy: '%d сол' + }, + meridiemParse: /шаб|субҳ|рӯз|бегоҳ/, + meridiemHour: function(e, t) { + return ( + 12 === e && (e = 0), + 'шаб' === t + ? e < 4 + ? e + : e + 12 + : 'субҳ' === t + ? e + : 'рӯз' === t + ? e >= 11 + ? e + : e + 12 + : 'бегоҳ' === t + ? e + 12 + : void 0 + ); + }, + meridiem: function(e, t, n) { + return e < 4 + ? 'шаб' + : e < 11 + ? 'субҳ' + : e < 16 + ? 'рӯз' + : e < 19 + ? 'бегоҳ' + : 'шаб'; + }, + dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/, + ordinal: function(e) { + return e + (t[e] || t[e % 10] || t[e >= 100 ? 100 : null]); + }, + week: { dow: 1, doy: 7 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('th', { + months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split( + '_' + ), + monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'), + weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split( + '_' + ), + weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY เวลา H:mm', + LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm' + }, + meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/, + isPM: function(e) { + return 'หลังเที่ยง' === e; + }, + meridiem: function(e, t, n) { + return e < 12 ? 'ก่อนเที่ยง' : 'หลังเที่ยง'; + }, + calendar: { + sameDay: '[วันนี้ เวลา] LT', + nextDay: '[พรุ่งนี้ เวลา] LT', + nextWeek: 'dddd[หน้า เวลา] LT', + lastDay: '[เมื่อวานนี้ เวลา] LT', + lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'อีก %s', + past: '%sที่แล้ว', + s: 'ไม่กี่วินาที', + ss: '%d วินาที', + m: '1 นาที', + mm: '%d นาที', + h: '1 ชั่วโมง', + hh: '%d ชั่วโมง', + d: '1 วัน', + dd: '%d วัน', + M: '1 เดือน', + MM: '%d เดือน', + y: '1 ปี', + yy: '%d ปี' } - }, - ec = function(e) { - return e; - }, - tc = Array.prototype.map, - nc = [ - 'y', - 'z', - 'a', - 'f', - 'p', - 'n', - 'µ', - 'm', - '', - 'k', - 'M', - 'G', - 'T', - 'P', - 'E', - 'Z', - 'Y' - ], - rc = function(e) { - var t, - n, - r = - void 0 === e.grouping || void 0 === e.thousands - ? ec - : ((t = tc.call(e.grouping, Number)), - (n = e.thousands + ''), - function(e, r) { - for ( - var o = e.length, i = [], a = 0, s = t[0], c = 0; - o > 0 && - s > 0 && - (c + s + 1 > r && (s = Math.max(1, r - c)), - i.push(e.substring((o -= s), o + s)), - !((c += s + 1) > r)); - - ) - s = t[(a = (a + 1) % t.length)]; - return i.reverse().join(n); - }), - o = void 0 === e.currency ? '' : e.currency[0] + '', - i = void 0 === e.currency ? '' : e.currency[1] + '', - a = void 0 === e.decimal ? '.' : e.decimal + '', - s = - void 0 === e.numerals - ? ec - : (function(e) { - return function(t) { - return t.replace(/[0-9]/g, function(t) { - return e[+t]; - }); - }; - })(tc.call(e.numerals, String)), - c = void 0 === e.percent ? '%' : e.percent + '', - u = void 0 === e.minus ? '-' : e.minus + '', - l = void 0 === e.nan ? 'NaN' : e.nan + ''; - function f(e) { - var t = (e = Us(e)).fill, - n = e.align, - f = e.sign, - d = e.symbol, - p = e.zero, - h = e.width, - g = e.comma, - m = e.precision, - b = e.trim, - y = e.type; - 'n' === y - ? ((g = !0), (y = 'g')) - : Zs[y] || (void 0 === m && (m = 12), (b = !0), (y = 'g')), - (p || ('0' === t && '=' === n)) && - ((p = !0), (t = '0'), (n = '=')); - var v = - '$' === d - ? o - : '#' === d && /[boxX]/.test(y) - ? '0' + y.toLowerCase() - : '', - _ = '$' === d ? i : /[%p]/.test(y) ? c : '', - x = Zs[y], - w = /[defgprs%]/.test(y); - function M(e) { - var o, - i, - c, - d = v, - M = _; - if ('c' === y) (M = x(e) + M), (e = ''); - else { - var k = (e = +e) < 0 || 1 / e < 0; - if ( - ((e = isNaN(e) ? l : x(Math.abs(e), m)), - b && - (e = (function(e) { - e: for (var t, n = e.length, r = 1, o = -1; r < n; ++r) - switch (e[r]) { - case '.': - o = t = r; - break; - case '0': - 0 === o && (o = r), (t = r); - break; - default: - if (!+e[r]) break e; - o > 0 && (o = 0); - } - return o > 0 ? e.slice(0, o) + e.slice(t + 1) : e; - })(e)), - k && 0 == +e && '+' !== f && (k = !1), - (d = - (k - ? '(' === f - ? f - : u - : '-' === f || '(' === f - ? '' - : f) + d), - (M = - ('s' === y ? nc[8 + Gs / 3] : '') + - M + - (k && '(' === f ? ')' : '')), - w) - ) - for (o = -1, i = e.length; ++o < i; ) - if (48 > (c = e.charCodeAt(o)) || c > 57) { - (M = (46 === c ? a + e.slice(o + 1) : e.slice(o)) + M), - (e = e.slice(0, o)); - break; - } - } - g && !p && (e = r(e, 1 / 0)); - var S = d.length + e.length + M.length, - A = S < h ? new Array(h - S + 1).join(t) : ''; - switch ( - (g && - p && - ((e = r(A + e, A.length ? h - M.length : 1 / 0)), (A = '')), - n) - ) { - case '<': - e = d + e + M + A; - break; - case '=': - e = d + A + e + M; - break; - case '^': - e = A.slice(0, (S = A.length >> 1)) + d + e + M + A.slice(S); - break; - default: - e = A + d + e + M; - } - return s(e); - } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('tl-ph', { + months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split( + '_' + ), + monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split( + '_' + ), + weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split( + '_' + ), + weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'), + weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'MM/D/YYYY', + LL: 'MMMM D, YYYY', + LLL: 'MMMM D, YYYY HH:mm', + LLLL: 'dddd, MMMM DD, YYYY HH:mm' + }, + calendar: { + sameDay: 'LT [ngayong araw]', + nextDay: '[Bukas ng] LT', + nextWeek: 'LT [sa susunod na] dddd', + lastDay: 'LT [kahapon]', + lastWeek: 'LT [noong nakaraang] dddd', + sameElse: 'L' + }, + relativeTime: { + future: 'sa loob ng %s', + past: '%s ang nakalipas', + s: 'ilang segundo', + ss: '%d segundo', + m: 'isang minuto', + mm: '%d minuto', + h: 'isang oras', + hh: '%d oras', + d: 'isang araw', + dd: '%d araw', + M: 'isang buwan', + MM: '%d buwan', + y: 'isang taon', + yy: '%d taon' + }, + dayOfMonthOrdinalParse: /\d{1,2}/, + ordinal: function(e) { + return e; + }, + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_'); + function n(e, n, r, o) { + var i = (function(e) { + var n = Math.floor((e % 1e3) / 100), + r = Math.floor((e % 100) / 10), + o = e % 10, + i = ''; return ( - (m = - void 0 === m - ? 6 - : /[gprs]/.test(y) - ? Math.max(1, Math.min(21, m)) - : Math.max(0, Math.min(20, m))), - (M.toString = function() { - return e + ''; - }), - M + n > 0 && (i += t[n] + 'vatlh'), + r > 0 && (i += ('' !== i ? ' ' : '') + t[r] + 'maH'), + o > 0 && (i += ('' !== i ? ' ' : '') + t[o]), + '' === i ? 'pagh' : i ); + })(e); + switch (r) { + case 'ss': + return i + ' lup'; + case 'mm': + return i + ' tup'; + case 'hh': + return i + ' rep'; + case 'dd': + return i + ' jaj'; + case 'MM': + return i + ' jar'; + case 'yy': + return i + ' DIS'; } - return { - format: f, - formatPrefix: function(e, t) { - var n = f((((e = Us(e)).type = 'f'), e)), - r = 3 * Math.max(-8, Math.min(8, Math.floor(Ws(t) / 3))), - o = Math.pow(10, -r), - i = nc[8 + r / 3]; - return function(e) { - return n(o * e) + i; - }; - } - }; - }; - function oc(e) { - return (Ks = rc(e)), ($s = Ks.format), (Qs = Ks.formatPrefix), Ks; - } - oc({ - decimal: '.', - thousands: ',', - grouping: [3], - currency: ['$', ''], - minus: '-' - }); - var ic = function(e) { - return Math.max(0, -Ws(Math.abs(e))); - }, - ac = function(e, t) { - return Math.max( - 0, - 3 * Math.max(-8, Math.min(8, Math.floor(Ws(t) / 3))) - - Ws(Math.abs(e)) - ); - }, - sc = function(e, t) { - return ( - (e = Math.abs(e)), - (t = Math.abs(t) - e), - Math.max(0, Ws(t) - Ws(e)) + 1 - ); - }, - cc = function() { - return new uc(); - }; - function uc() { - this.reset(); - } - uc.prototype = { - constructor: uc, - reset: function() { - this.s = this.t = 0; - }, - add: function(e) { - fc(lc, e, this.t), - fc(this, lc.s, this.s), - this.s ? (this.t += lc.t) : (this.s = lc.t); - }, - valueOf: function() { - return this.s; } - }; - var lc = new uc(); - function fc(e, t, n) { - var r = (e.s = t + n), - o = r - t, - i = r - o; - e.t = t - i + (n - o); - } - var dc = Math.PI, - pc = dc / 2, - hc = dc / 4, - gc = 2 * dc, - mc = 180 / dc, - bc = dc / 180, - yc = Math.abs, - vc = Math.atan, - _c = Math.atan2, - xc = Math.cos, - wc = Math.ceil, - Mc = Math.exp, - kc = (Math.floor, Math.log), - Sc = Math.pow, - Ac = Math.sin, - Oc = - Math.sign || - function(e) { - return e > 0 ? 1 : e < 0 ? -1 : 0; + e.defineLocale('tlh', { + months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split( + '_' + ), + monthsShort: 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split( + '_' + ), + weekdaysShort: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split( + '_' + ), + weekdaysMin: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split( + '_' + ), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm' }, - Ec = Math.sqrt, - Tc = Math.tan; - function Cc(e) { - return e > 1 ? 0 : e < -1 ? dc : Math.acos(e); - } - function Lc(e) { - return e > 1 ? pc : e < -1 ? -pc : Math.asin(e); - } - function Pc(e) { - return (e = Ac(e / 2)) * e; - } - function Dc() {} - function zc(e, t) { - e && jc.hasOwnProperty(e.type) && jc[e.type](e, t); - } - var Nc = { - Feature: function(e, t) { - zc(e.geometry, t); + calendar: { + sameDay: '[DaHjaj] LT', + nextDay: '[wa’leS] LT', + nextWeek: 'LLL', + lastDay: '[wa’Hu’] LT', + lastWeek: 'LLL', + sameElse: 'L' }, - FeatureCollection: function(e, t) { - for (var n = e.features, r = -1, o = n.length; ++r < o; ) - zc(n[r].geometry, t); - } - }, - jc = { - Sphere: function(e, t) { - t.sphere(); + relativeTime: { + future: function(e) { + var t = e; + return (t = + -1 !== e.indexOf('jaj') + ? t.slice(0, -3) + 'leS' + : -1 !== e.indexOf('jar') + ? t.slice(0, -3) + 'waQ' + : -1 !== e.indexOf('DIS') + ? t.slice(0, -3) + 'nem' + : t + ' pIq'); + }, + past: function(e) { + var t = e; + return (t = + -1 !== e.indexOf('jaj') + ? t.slice(0, -3) + 'Hu’' + : -1 !== e.indexOf('jar') + ? t.slice(0, -3) + 'wen' + : -1 !== e.indexOf('DIS') + ? t.slice(0, -3) + 'ben' + : t + ' ret'); + }, + s: 'puS lup', + ss: n, + m: 'wa’ tup', + mm: n, + h: 'wa’ rep', + hh: n, + d: 'wa’ jaj', + dd: n, + M: 'wa’ jar', + MM: n, + y: 'wa’ DIS', + yy: n + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = { + 1: "'inci", + 5: "'inci", + 8: "'inci", + 70: "'inci", + 80: "'inci", + 2: "'nci", + 7: "'nci", + 20: "'nci", + 50: "'nci", + 3: "'üncü", + 4: "'üncü", + 100: "'üncü", + 6: "'ncı", + 9: "'uncu", + 10: "'uncu", + 30: "'uncu", + 60: "'ıncı", + 90: "'ıncı" + }; + e.defineLocale('tr', { + months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split( + '_' + ), + monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split( + '_' + ), + weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split( + '_' + ), + weekdaysShort: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'), + weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[bugün saat] LT', + nextDay: '[yarın saat] LT', + nextWeek: '[gelecek] dddd [saat] LT', + lastDay: '[dün] LT', + lastWeek: '[geçen] dddd [saat] LT', + sameElse: 'L' + }, + relativeTime: { + future: '%s sonra', + past: '%s önce', + s: 'birkaç saniye', + ss: '%d saniye', + m: 'bir dakika', + mm: '%d dakika', + h: 'bir saat', + hh: '%d saat', + d: 'bir gün', + dd: '%d gün', + M: 'bir ay', + MM: '%d ay', + y: 'bir yıl', + yy: '%d yıl' + }, + ordinal: function(e, n) { + switch (n) { + case 'd': + case 'D': + case 'Do': + case 'DD': + return e; + default: + if (0 === e) return e + "'ıncı"; + var r = e % 10; + return ( + e + (t[r] || t[(e % 100) - r] || t[e >= 100 ? 100 : null]) + ); + } + }, + week: { dow: 1, doy: 7 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + function t(e, t, n, r) { + var o = { + s: ['viensas secunds', "'iensas secunds"], + ss: [e + ' secunds', e + ' secunds'], + m: ["'n míut", "'iens míut"], + mm: [e + ' míuts', e + ' míuts'], + h: ["'n þora", "'iensa þora"], + hh: [e + ' þoras', e + ' þoras'], + d: ["'n ziua", "'iensa ziua"], + dd: [e + ' ziuas', e + ' ziuas'], + M: ["'n mes", "'iens mes"], + MM: [e + ' mesen', e + ' mesen'], + y: ["'n ar", "'iens ar"], + yy: [e + ' ars', e + ' ars'] + }; + return r ? o[n][0] : t ? o[n][0] : o[n][1]; + } + e.defineLocale('tzl', { + months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split( + '_' + ), + monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split( + '_' + ), + weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split( + '_' + ), + weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'), + weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'), + longDateFormat: { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM [dallas] YYYY', + LLL: 'D. MMMM [dallas] YYYY HH.mm', + LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm' }, - Point: function(e, t) { - (e = e.coordinates), t.point(e[0], e[1], e[2]); + meridiemParse: /d\'o|d\'a/i, + isPM: function(e) { + return "d'o" === e.toLowerCase(); }, - MultiPoint: function(e, t) { - for (var n = e.coordinates, r = -1, o = n.length; ++r < o; ) - (e = n[r]), t.point(e[0], e[1], e[2]); + meridiem: function(e, t, n) { + return e > 11 ? (n ? "d'o" : "D'O") : n ? "d'a" : "D'A"; }, - LineString: function(e, t) { - Rc(e.coordinates, t, 0); + calendar: { + sameDay: '[oxhi à] LT', + nextDay: '[demà à] LT', + nextWeek: 'dddd [à] LT', + lastDay: '[ieiri à] LT', + lastWeek: '[sür el] dddd [lasteu à] LT', + sameElse: 'L' }, - MultiLineString: function(e, t) { - for (var n = e.coordinates, r = -1, o = n.length; ++r < o; ) - Rc(n[r], t, 0); + relativeTime: { + future: 'osprei %s', + past: 'ja%s', + s: t, + ss: t, + m: t, + mm: t, + h: t, + hh: t, + d: t, + dd: t, + M: t, + MM: t, + y: t, + yy: t }, - Polygon: function(e, t) { - Ic(e.coordinates, t); + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('tzm', { + months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split( + '_' + ), + monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split( + '_' + ), + weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split( + '_' + ), + weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split( + '_' + ), + weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split( + '_' + ), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm' }, - MultiPolygon: function(e, t) { - for (var n = e.coordinates, r = -1, o = n.length; ++r < o; ) - Ic(n[r], t); + calendar: { + sameDay: '[ⴰⵙⴷⵅ ⴴ] LT', + nextDay: '[ⴰⵙⴽⴰ ⴴ] LT', + nextWeek: 'dddd [ⴴ] LT', + lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT', + lastWeek: 'dddd [ⴴ] LT', + sameElse: 'L' }, - GeometryCollection: function(e, t) { - for (var n = e.geometries, r = -1, o = n.length; ++r < o; ) - zc(n[r], t); - } - }; - function Rc(e, t, n) { - var r, - o = -1, - i = e.length - n; - for (t.lineStart(); ++o < i; ) (r = e[o]), t.point(r[0], r[1], r[2]); - t.lineEnd(); - } - function Ic(e, t) { - var n = -1, - r = e.length; - for (t.polygonStart(); ++n < r; ) Rc(e[n], t, 1); - t.polygonEnd(); - } - var Fc, - qc, - Bc, - Hc, - Yc, - Wc = function(e, t) { - e && Nc.hasOwnProperty(e.type) ? Nc[e.type](e, t) : zc(e, t); - }, - Vc = cc(), - Uc = cc(), - Xc = { - point: Dc, - lineStart: Dc, - lineEnd: Dc, - polygonStart: function() { - Vc.reset(), (Xc.lineStart = Gc), (Xc.lineEnd = Kc); + relativeTime: { + future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s', + past: 'ⵢⴰⵏ %s', + s: 'ⵉⵎⵉⴽ', + ss: '%d ⵉⵎⵉⴽ', + m: 'ⵎⵉⵏⵓⴺ', + mm: '%d ⵎⵉⵏⵓⴺ', + h: 'ⵙⴰⵄⴰ', + hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ', + d: 'ⴰⵙⵙ', + dd: '%d oⵙⵙⴰⵏ', + M: 'ⴰⵢoⵓⵔ', + MM: '%d ⵉⵢⵢⵉⵔⵏ', + y: 'ⴰⵙⴳⴰⵙ', + yy: '%d ⵉⵙⴳⴰⵙⵏ' }, - polygonEnd: function() { - var e = +Vc; - Uc.add(e < 0 ? gc + e : e), - (this.lineStart = this.lineEnd = this.point = Dc); + week: { dow: 6, doy: 12 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('tzm-latn', { + months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split( + '_' + ), + monthsShort: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split( + '_' + ), + weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split( + '_' + ), + weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split( + '_' + ), + weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split( + '_' + ), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm' }, - sphere: function() { - Uc.add(gc); - } - }; - function Gc() { - Xc.point = $c; - } - function Kc() { - Qc(Fc, qc); - } - function $c(e, t) { - (Xc.point = Qc), - (Fc = e), - (qc = t), - (Bc = e *= bc), - (Hc = xc((t = (t *= bc) / 2 + hc))), - (Yc = Ac(t)); - } - function Qc(e, t) { - var n = (e *= bc) - Bc, - r = n >= 0 ? 1 : -1, - o = r * n, - i = xc((t = (t *= bc) / 2 + hc)), - a = Ac(t), - s = Yc * a, - c = Hc * i + s * xc(o), - u = s * r * Ac(o); - Vc.add(_c(u, c)), (Bc = e), (Hc = i), (Yc = a); - } - var Jc = function(e) { - return Uc.reset(), Wc(e, Xc), 2 * Uc; - }; - function Zc(e) { - return [_c(e[1], e[0]), Lc(e[2])]; - } - function eu(e) { - var t = e[0], - n = e[1], - r = xc(n); - return [r * xc(t), r * Ac(t), Ac(n)]; - } - function tu(e, t) { - return e[0] * t[0] + e[1] * t[1] + e[2] * t[2]; - } - function nu(e, t) { - return [ - e[1] * t[2] - e[2] * t[1], - e[2] * t[0] - e[0] * t[2], - e[0] * t[1] - e[1] * t[0] - ]; - } - function ru(e, t) { - (e[0] += t[0]), (e[1] += t[1]), (e[2] += t[2]); - } - function ou(e, t) { - return [e[0] * t, e[1] * t, e[2] * t]; - } - function iu(e) { - var t = Ec(e[0] * e[0] + e[1] * e[1] + e[2] * e[2]); - (e[0] /= t), (e[1] /= t), (e[2] /= t); - } - var au, - su, - cu, - uu, - lu, - fu, - du, - pu, - hu, - gu, - mu = cc(), - bu = { - point: yu, - lineStart: _u, - lineEnd: xu, - polygonStart: function() { - (bu.point = wu), - (bu.lineStart = Mu), - (bu.lineEnd = ku), - mu.reset(), - Xc.polygonStart(); + calendar: { + sameDay: '[asdkh g] LT', + nextDay: '[aska g] LT', + nextWeek: 'dddd [g] LT', + lastDay: '[assant g] LT', + lastWeek: 'dddd [g] LT', + sameElse: 'L' }, - polygonEnd: function() { - Xc.polygonEnd(), - (bu.point = yu), - (bu.lineStart = _u), - (bu.lineEnd = xu), - Vc < 0 - ? ((au = -(cu = 180)), (su = -(uu = 90))) - : mu > 1e-6 - ? (uu = 90) - : mu < -1e-6 && (su = -90), - (gu[0] = au), - (gu[1] = cu); + relativeTime: { + future: 'dadkh s yan %s', + past: 'yan %s', + s: 'imik', + ss: '%d imik', + m: 'minuḍ', + mm: '%d minuḍ', + h: 'saɛa', + hh: '%d tassaɛin', + d: 'ass', + dd: '%d ossan', + M: 'ayowr', + MM: '%d iyyirn', + y: 'asgas', + yy: '%d isgasn' }, - sphere: function() { - (au = -(cu = 180)), (su = -(uu = 90)); - } - }; - function yu(e, t) { - hu.push((gu = [(au = e), (cu = e)])), - t < su && (su = t), - t > uu && (uu = t); - } - function vu(e, t) { - var n = eu([e * bc, t * bc]); - if (pu) { - var r = nu(pu, n), - o = nu([r[1], -r[0], 0], r); - iu(o), (o = Zc(o)); - var i, - a = e - lu, - s = a > 0 ? 1 : -1, - c = o[0] * mc * s, - u = yc(a) > 180; - u ^ (s * lu < c && c < s * e) - ? (i = o[1] * mc) > uu && (uu = i) - : u ^ (s * lu < (c = ((c + 360) % 360) - 180) && c < s * e) - ? (i = -o[1] * mc) < su && (su = i) - : (t < su && (su = t), t > uu && (uu = t)), - u - ? e < lu - ? Su(au, e) > Su(au, cu) && (cu = e) - : Su(e, cu) > Su(au, cu) && (au = e) - : cu >= au - ? (e < au && (au = e), e > cu && (cu = e)) - : e > lu - ? Su(au, e) > Su(au, cu) && (cu = e) - : Su(e, cu) > Su(au, cu) && (au = e); - } else hu.push((gu = [(au = e), (cu = e)])); - t < su && (su = t), t > uu && (uu = t), (pu = n), (lu = e); - } - function _u() { - bu.point = vu; - } - function xu() { - (gu[0] = au), (gu[1] = cu), (bu.point = yu), (pu = null); - } - function wu(e, t) { - if (pu) { - var n = e - lu; - mu.add(yc(n) > 180 ? n + (n > 0 ? 360 : -360) : n); - } else (fu = e), (du = t); - Xc.point(e, t), vu(e, t); - } - function Mu() { - Xc.lineStart(); - } - function ku() { - wu(fu, du), - Xc.lineEnd(), - yc(mu) > 1e-6 && (au = -(cu = 180)), - (gu[0] = au), - (gu[1] = cu), - (pu = null); - } - function Su(e, t) { - return (t -= e) < 0 ? t + 360 : t; - } - function Au(e, t) { - return e[0] - t[0]; - } - function Ou(e, t) { - return e[0] <= e[1] ? e[0] <= t && t <= e[1] : t < e[0] || e[1] < t; - } - var Eu, - Tu, - Cu, - Lu, - Pu, - Du, - zu, - Nu, - ju, - Ru, - Iu, - Fu, - qu, - Bu, - Hu, - Yu, - Wu = function(e) { - var t, n, r, o, i, a, s; - if ( - ((uu = cu = -(au = su = 1 / 0)), - (hu = []), - Wc(e, bu), - (n = hu.length)) - ) { - for (hu.sort(Au), t = 1, i = [(r = hu[0])]; t < n; ++t) - Ou(r, (o = hu[t])[0]) || Ou(r, o[1]) - ? (Su(r[0], o[1]) > Su(r[0], r[1]) && (r[1] = o[1]), - Su(o[0], r[1]) > Su(r[0], r[1]) && (r[0] = o[0])) - : i.push((r = o)); - for ( - a = -1 / 0, t = 0, r = i[(n = i.length - 1)]; - t <= n; - r = o, ++t - ) - (o = i[t]), - (s = Su(r[1], o[0])) > a && ((a = s), (au = o[0]), (cu = r[1])); - } - return ( - (hu = gu = null), - au === 1 / 0 || su === 1 / 0 - ? [ - [NaN, NaN], - [NaN, NaN] - ] - : [ - [au, su], - [cu, uu] - ] - ); - }, - Vu = { - sphere: Dc, - point: Uu, - lineStart: Gu, - lineEnd: Qu, - polygonStart: function() { - (Vu.lineStart = Ju), (Vu.lineEnd = Zu); + week: { dow: 6, doy: 12 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('ug-cn', { + months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split( + '_' + ), + monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split( + '_' + ), + weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split( + '_' + ), + weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'), + weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى', + LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm', + LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm' }, - polygonEnd: function() { - (Vu.lineStart = Gu), (Vu.lineEnd = Qu); - } - }; - function Uu(e, t) { - e *= bc; - var n = xc((t *= bc)); - Xu(n * xc(e), n * Ac(e), Ac(t)); - } - function Xu(e, t, n) { - ++Eu, - (Cu += (e - Cu) / Eu), - (Lu += (t - Lu) / Eu), - (Pu += (n - Pu) / Eu); - } - function Gu() { - Vu.point = Ku; - } - function Ku(e, t) { - e *= bc; - var n = xc((t *= bc)); - (Bu = n * xc(e)), - (Hu = n * Ac(e)), - (Yu = Ac(t)), - (Vu.point = $u), - Xu(Bu, Hu, Yu); - } - function $u(e, t) { - e *= bc; - var n = xc((t *= bc)), - r = n * xc(e), - o = n * Ac(e), - i = Ac(t), - a = _c( - Ec( - (a = Hu * i - Yu * o) * a + - (a = Yu * r - Bu * i) * a + - (a = Bu * o - Hu * r) * a - ), - Bu * r + Hu * o + Yu * i - ); - (Tu += a), - (Du += a * (Bu + (Bu = r))), - (zu += a * (Hu + (Hu = o))), - (Nu += a * (Yu + (Yu = i))), - Xu(Bu, Hu, Yu); - } - function Qu() { - Vu.point = Uu; - } - function Ju() { - Vu.point = el; - } - function Zu() { - tl(Fu, qu), (Vu.point = Uu); - } - function el(e, t) { - (Fu = e), (qu = t), (e *= bc), (t *= bc), (Vu.point = tl); - var n = xc(t); - (Bu = n * xc(e)), (Hu = n * Ac(e)), (Yu = Ac(t)), Xu(Bu, Hu, Yu); - } - function tl(e, t) { - e *= bc; - var n = xc((t *= bc)), - r = n * xc(e), - o = n * Ac(e), - i = Ac(t), - a = Hu * i - Yu * o, - s = Yu * r - Bu * i, - c = Bu * o - Hu * r, - u = Ec(a * a + s * s + c * c), - l = Lc(u), - f = u && -l / u; - (ju += f * a), - (Ru += f * s), - (Iu += f * c), - (Tu += l), - (Du += l * (Bu + (Bu = r))), - (zu += l * (Hu + (Hu = o))), - (Nu += l * (Yu + (Yu = i))), - Xu(Bu, Hu, Yu); - } - var nl = function(e) { - (Eu = Tu = Cu = Lu = Pu = Du = zu = Nu = ju = Ru = Iu = 0), Wc(e, Vu); - var t = ju, - n = Ru, - r = Iu, - o = t * t + n * n + r * r; - return o < 1e-12 && - ((t = Du), - (n = zu), - (r = Nu), - Tu < 1e-6 && ((t = Cu), (n = Lu), (r = Pu)), - (o = t * t + n * n + r * r) < 1e-12) - ? [NaN, NaN] - : [_c(n, t) * mc, Lc(r / Ec(o)) * mc]; - }, - rl = function(e) { - return function() { - return e; - }; - }, - ol = function(e, t) { - function n(n, r) { - return (n = e(n, r)), t(n[0], n[1]); - } - return ( - e.invert && - t.invert && - (n.invert = function(n, r) { - return (n = t.invert(n, r)) && e.invert(n[0], n[1]); - }), - n - ); - }; - function il(e, t) { - return [yc(e) > dc ? e + Math.round(-e / gc) * gc : e, t]; - } - function al(e, t, n) { - return (e %= gc) - ? t || n - ? ol(cl(e), ul(t, n)) - : cl(e) - : t || n - ? ul(t, n) - : il; - } - function sl(e) { - return function(t, n) { - return [(t += e) > dc ? t - gc : t < -dc ? t + gc : t, n]; - }; - } - function cl(e) { - var t = sl(e); - return (t.invert = sl(-e)), t; - } - function ul(e, t) { - var n = xc(e), - r = Ac(e), - o = xc(t), - i = Ac(t); - function a(e, t) { - var a = xc(t), - s = xc(e) * a, - c = Ac(e) * a, - u = Ac(t), - l = u * n + s * r; - return [_c(c * o - l * i, s * n - u * r), Lc(l * o + c * i)]; - } - return ( - (a.invert = function(e, t) { - var a = xc(t), - s = xc(e) * a, - c = Ac(e) * a, - u = Ac(t), - l = u * o - c * i; - return [_c(c * o + u * i, s * n + l * r), Lc(l * n - s * r)]; - }), - a - ); - } - il.invert = il; - var ll = function(e) { - function t(t) { - return ((t = e(t[0] * bc, t[1] * bc))[0] *= mc), (t[1] *= mc), t; - } - return ( - (e = al(e[0] * bc, e[1] * bc, e.length > 2 ? e[2] * bc : 0)), - (t.invert = function(t) { - return ( - ((t = e.invert(t[0] * bc, t[1] * bc))[0] *= mc), (t[1] *= mc), t - ); - }), - t - ); - }; - function fl(e, t, n, r, o, i) { - if (n) { - var a = xc(t), - s = Ac(t), - c = r * n; - null == o - ? ((o = t + r * gc), (i = t - c / 2)) - : ((o = dl(a, o)), - (i = dl(a, i)), - (r > 0 ? o < i : o > i) && (o += r * gc)); - for (var u, l = o; r > 0 ? l > i : l < i; l -= c) - (u = Zc([a, -s * xc(l), -s * Ac(l)])), e.point(u[0], u[1]); - } - } - function dl(e, t) { - ((t = eu(t))[0] -= e), iu(t); - var n = Cc(-t[1]); - return ((-t[2] < 0 ? -n : n) + gc - 1e-6) % gc; - } - var pl = function() { - var e, - t, - n = rl([0, 0]), - r = rl(90), - o = rl(6), - i = { - point: function(n, r) { - e.push((n = t(n, r))), (n[0] *= mc), (n[1] *= mc); - } - }; - function a() { - var a = n.apply(this, arguments), - s = r.apply(this, arguments) * bc, - c = o.apply(this, arguments) * bc; + meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/, + meridiemHour: function(e, t) { return ( - (e = []), - (t = al(-a[0] * bc, -a[1] * bc, 0).invert), - fl(i, s, c, 1), - (a = { type: 'Polygon', coordinates: [e] }), - (e = t = null), - a + 12 === e && (e = 0), + 'يېرىم كېچە' === t || 'سەھەر' === t || 'چۈشتىن بۇرۇن' === t + ? e + : 'چۈشتىن كېيىن' === t || 'كەچ' === t + ? e + 12 + : e >= 11 + ? e + : e + 12 ); - } - return ( - (a.center = function(e) { - return arguments.length - ? ((n = 'function' == typeof e ? e : rl([+e[0], +e[1]])), a) - : n; - }), - (a.radius = function(e) { - return arguments.length - ? ((r = 'function' == typeof e ? e : rl(+e)), a) - : r; - }), - (a.precision = function(e) { - return arguments.length - ? ((o = 'function' == typeof e ? e : rl(+e)), a) - : o; - }), - a - ); - }, - hl = function() { - var e, - t = []; - return { - point: function(t, n) { - e.push([t, n]); - }, - lineStart: function() { - t.push((e = [])); - }, - lineEnd: Dc, - rejoin: function() { - t.length > 1 && t.push(t.pop().concat(t.shift())); - }, - result: function() { - var n = t; - return (t = []), (e = null), n; - } - }; - }, - gl = function(e, t) { - return yc(e[0] - t[0]) < 1e-6 && yc(e[1] - t[1]) < 1e-6; - }; - function ml(e, t, n, r) { - (this.x = e), - (this.z = t), - (this.o = n), - (this.e = r), - (this.v = !1), - (this.n = this.p = null); - } - var bl = function(e, t, n, r, o) { - var i, - a, - s = [], - c = []; - if ( - (e.forEach(function(e) { - if (!((t = e.length - 1) <= 0)) { - var t, - n, - r = e[0], - a = e[t]; - if (gl(r, a)) { - for (o.lineStart(), i = 0; i < t; ++i) - o.point((r = e[i])[0], r[1]); - o.lineEnd(); - } else - s.push((n = new ml(r, e, null, !0))), - c.push((n.o = new ml(r, null, n, !1))), - s.push((n = new ml(a, e, null, !1))), - c.push((n.o = new ml(a, null, n, !0))); + }, + meridiem: function(e, t, n) { + var r = 100 * e + t; + return r < 600 + ? 'يېرىم كېچە' + : r < 900 + ? 'سەھەر' + : r < 1130 + ? 'چۈشتىن بۇرۇن' + : r < 1230 + ? 'چۈش' + : r < 1800 + ? 'چۈشتىن كېيىن' + : 'كەچ'; + }, + calendar: { + sameDay: '[بۈگۈن سائەت] LT', + nextDay: '[ئەتە سائەت] LT', + nextWeek: '[كېلەركى] dddd [سائەت] LT', + lastDay: '[تۆنۈگۈن] LT', + lastWeek: '[ئالدىنقى] dddd [سائەت] LT', + sameElse: 'L' + }, + relativeTime: { + future: '%s كېيىن', + past: '%s بۇرۇن', + s: 'نەچچە سېكونت', + ss: '%d سېكونت', + m: 'بىر مىنۇت', + mm: '%d مىنۇت', + h: 'بىر سائەت', + hh: '%d سائەت', + d: 'بىر كۈن', + dd: '%d كۈن', + M: 'بىر ئاي', + MM: '%d ئاي', + y: 'بىر يىل', + yy: '%d يىل' + }, + dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/, + ordinal: function(e, t) { + switch (t) { + case 'd': + case 'D': + case 'DDD': + return e + '-كۈنى'; + case 'w': + case 'W': + return e + '-ھەپتە'; + default: + return e; } - }), - s.length) - ) { - for (c.sort(t), yl(s), yl(c), i = 0, a = c.length; i < a; ++i) - c[i].e = n = !n; - for (var u, l, f = s[0]; ; ) { - for (var d = f, p = !0; d.v; ) if ((d = d.n) === f) return; - (u = d.z), o.lineStart(); - do { - if (((d.v = d.o.v = !0), d.e)) { - if (p) - for (i = 0, a = u.length; i < a; ++i) - o.point((l = u[i])[0], l[1]); - else r(d.x, d.n.x, 1, o); - d = d.n; - } else { - if (p) - for (u = d.p.z, i = u.length - 1; i >= 0; --i) - o.point((l = u[i])[0], l[1]); - else r(d.x, d.p.x, -1, o); - d = d.p; - } - (u = (d = d.o).z), (p = !p); - } while (!d.v); - o.lineEnd(); - } - } - }; - function yl(e) { - if ((t = e.length)) { - for (var t, n, r = 0, o = e[0]; ++r < t; ) - (o.n = n = e[r]), (n.p = o), (o = n); - (o.n = n = e[0]), (n.p = o); + }, + preparse: function(e) { + return e.replace(/،/g, ','); + }, + postformat: function(e) { + return e.replace(/,/g, '،'); + }, + week: { dow: 1, doy: 7 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + function t(e, t, n) { + var r, o; + return 'm' === n + ? t + ? 'хвилина' + : 'хвилину' + : 'h' === n + ? t + ? 'година' + : 'годину' + : e + + ' ' + + ((r = +e), + (o = { + ss: t ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд', + mm: t ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин', + hh: t ? 'година_години_годин' : 'годину_години_годин', + dd: 'день_дні_днів', + MM: 'місяць_місяці_місяців', + yy: 'рік_роки_років' + }[n].split('_')), + r % 10 == 1 && r % 100 != 11 + ? o[0] + : r % 10 >= 2 && r % 10 <= 4 && (r % 100 < 10 || r % 100 >= 20) + ? o[1] + : o[2]); } - } - var vl = cc(); - function _l(e) { - return yc(e[0]) <= dc ? e[0] : Oc(e[0]) * (((yc(e[0]) + dc) % gc) - dc); - } - var xl = function(e, t) { - var n = _l(t), - r = t[1], - o = Ac(r), - i = [Ac(n), -xc(n), 0], - a = 0, - s = 0; - vl.reset(), 1 === o ? (r = pc + 1e-6) : -1 === o && (r = -pc - 1e-6); - for (var c = 0, u = e.length; c < u; ++c) - if ((f = (l = e[c]).length)) - for ( - var l, - f, - d = l[f - 1], - p = _l(d), - h = d[1] / 2 + hc, - g = Ac(h), - m = xc(h), - b = 0; - b < f; - ++b, p = v, g = x, m = w, d = y - ) { - var y = l[b], - v = _l(y), - _ = y[1] / 2 + hc, - x = Ac(_), - w = xc(_), - M = v - p, - k = M >= 0 ? 1 : -1, - S = k * M, - A = S > dc, - O = g * x; - if ( - (vl.add(_c(O * k * Ac(S), m * w + O * xc(S))), - (a += A ? M + k * gc : M), - A ^ (p >= n) ^ (v >= n)) - ) { - var E = nu(eu(d), eu(y)); - iu(E); - var T = nu(i, E); - iu(T); - var C = (A ^ (M >= 0) ? -1 : 1) * Lc(T[2]); - (r > C || (r === C && (E[0] || E[1]))) && - (s += A ^ (M >= 0) ? 1 : -1); - } - } - return (a < -1e-6 || (a < 1e-6 && vl < -1e-6)) ^ (1 & s); - }, - wl = function(e, t, n, r) { - return function(o) { - var i, - a, - s, - c = t(o), - u = hl(), - l = t(u), - f = !1, - d = { - point: p, - lineStart: g, - lineEnd: m, - polygonStart: function() { - (d.point = b), - (d.lineStart = y), - (d.lineEnd = v), - (a = []), - (i = []); - }, - polygonEnd: function() { - (d.point = p), (d.lineStart = g), (d.lineEnd = m), (a = I(a)); - var e = xl(i, r); - a.length - ? (f || (o.polygonStart(), (f = !0)), bl(a, kl, e, n, o)) - : e && - (f || (o.polygonStart(), (f = !0)), - o.lineStart(), - n(null, null, 1, o), - o.lineEnd()), - f && (o.polygonEnd(), (f = !1)), - (a = i = null); - }, - sphere: function() { - o.polygonStart(), - o.lineStart(), - n(null, null, 1, o), - o.lineEnd(), - o.polygonEnd(); - } - }; - function p(t, n) { - e(t, n) && o.point(t, n); - } - function h(e, t) { - c.point(e, t); - } - function g() { - (d.point = h), c.lineStart(); - } - function m() { - (d.point = p), c.lineEnd(); - } - function b(e, t) { - s.push([e, t]), l.point(e, t); - } - function y() { - l.lineStart(), (s = []); - } - function v() { - b(s[0][0], s[0][1]), l.lineEnd(); - var e, - t, - n, - r, - c = l.clean(), - d = u.result(), - p = d.length; - if ((s.pop(), i.push(s), (s = null), p)) - if (1 & c) { - if ((t = (n = d[0]).length - 1) > 0) { - for ( - f || (o.polygonStart(), (f = !0)), o.lineStart(), e = 0; - e < t; - ++e - ) - o.point((r = n[e])[0], r[1]); - o.lineEnd(); - } - } else - p > 1 && 2 & c && d.push(d.pop().concat(d.shift())), - a.push(d.filter(Ml)); - } - return d; - }; - }; - function Ml(e) { - return e.length > 1; - } - function kl(e, t) { - return ( - ((e = e.x)[0] < 0 ? e[1] - pc - 1e-6 : pc - e[1]) - - ((t = t.x)[0] < 0 ? t[1] - pc - 1e-6 : pc - t[1]) - ); - } - var Sl = wl( - function() { - return !0; - }, - function(e) { - var t, - n = NaN, - r = NaN, - o = NaN; - return { - lineStart: function() { - e.lineStart(), (t = 1); - }, - point: function(i, a) { - var s = i > 0 ? dc : -dc, - c = yc(i - n); - yc(c - dc) < 1e-6 - ? (e.point(n, (r = (r + a) / 2 > 0 ? pc : -pc)), - e.point(o, r), - e.lineEnd(), - e.lineStart(), - e.point(s, r), - e.point(i, r), - (t = 0)) - : o !== s && - c >= dc && - (yc(n - o) < 1e-6 && (n -= 1e-6 * o), - yc(i - s) < 1e-6 && (i -= 1e-6 * s), - (r = (function(e, t, n, r) { - var o, - i, - a = Ac(e - n); - return yc(a) > 1e-6 - ? vc( - (Ac(t) * (i = xc(r)) * Ac(n) - - Ac(r) * (o = xc(t)) * Ac(e)) / - (o * i * a) - ) - : (t + r) / 2; - })(n, r, i, a)), - e.point(o, r), - e.lineEnd(), - e.lineStart(), - e.point(s, r), - (t = 0)), - e.point((n = i), (r = a)), - (o = s); - }, - lineEnd: function() { - e.lineEnd(), (n = r = NaN); - }, - clean: function() { - return 2 - t; - } + function n(e) { + return function() { + return e + 'о' + (11 === this.hours() ? 'б' : '') + '] LT'; }; - }, - function(e, t, n, r) { - var o; - if (null == e) - (o = n * pc), - r.point(-dc, o), - r.point(0, o), - r.point(dc, o), - r.point(dc, 0), - r.point(dc, -o), - r.point(0, -o), - r.point(-dc, -o), - r.point(-dc, 0), - r.point(-dc, o); - else if (yc(e[0] - t[0]) > 1e-6) { - var i = e[0] < t[0] ? dc : -dc; - (o = (n * i) / 2), r.point(-i, o), r.point(0, o), r.point(i, o); - } else r.point(t[0], t[1]); - }, - [-dc, -pc] - ); - var Al = function(e) { - var t = xc(e), - n = 6 * bc, - r = t > 0, - o = yc(t) > 1e-6; - function i(e, n) { - return xc(e) * xc(n) > t; - } - function a(e, n, r) { - var o = [1, 0, 0], - i = nu(eu(e), eu(n)), - a = tu(i, i), - s = i[0], - c = a - s * s; - if (!c) return !r && e; - var u = (t * a) / c, - l = (-t * s) / c, - f = nu(o, i), - d = ou(o, u); - ru(d, ou(i, l)); - var p = f, - h = tu(d, p), - g = tu(p, p), - m = h * h - g * (tu(d, d) - 1); - if (!(m < 0)) { - var b = Ec(m), - y = ou(p, (-h - b) / g); - if ((ru(y, d), (y = Zc(y)), !r)) return y; - var v, - _ = e[0], - x = n[0], - w = e[1], - M = n[1]; - x < _ && ((v = _), (_ = x), (x = v)); - var k = x - _, - S = yc(k - dc) < 1e-6; - if ( - (!S && M < w && ((v = w), (w = M), (M = v)), - S || k < 1e-6 - ? S - ? (w + M > 0) ^ (y[1] < (yc(y[0] - _) < 1e-6 ? w : M)) - : w <= y[1] && y[1] <= M - : (k > dc) ^ (_ <= y[0] && y[0] <= x)) - ) { - var A = ou(p, (-h + b) / g); - return ru(A, d), [y, Zc(A)]; - } - } - } - function s(t, n) { - var o = r ? e : dc - e, - i = 0; - return ( - t < -o ? (i |= 1) : t > o && (i |= 2), - n < -o ? (i |= 4) : n > o && (i |= 8), - i - ); } - return wl( - i, - function(e) { - var t, n, c, u, l; - return { - lineStart: function() { - (u = c = !1), (l = 1); - }, - point: function(f, d) { - var p, - h = [f, d], - g = i(f, d), - m = r - ? g - ? 0 - : s(f, d) - : g - ? s(f + (f < 0 ? dc : -dc), d) - : 0; - if ( - (!t && (u = c = g) && e.lineStart(), - g !== c && - (!(p = a(t, h)) || gl(t, p) || gl(h, p)) && - ((h[0] += 1e-6), (h[1] += 1e-6), (g = i(h[0], h[1]))), - g !== c) - ) - (l = 0), - g - ? (e.lineStart(), (p = a(h, t)), e.point(p[0], p[1])) - : ((p = a(t, h)), e.point(p[0], p[1]), e.lineEnd()), - (t = p); - else if (o && t && r ^ g) { - var b; - m & n || - !(b = a(h, t, !0)) || - ((l = 0), - r - ? (e.lineStart(), - e.point(b[0][0], b[0][1]), - e.point(b[1][0], b[1][1]), - e.lineEnd()) - : (e.point(b[1][0], b[1][1]), - e.lineEnd(), - e.lineStart(), - e.point(b[0][0], b[0][1]))); - } - !g || (t && gl(t, h)) || e.point(h[0], h[1]), - (t = h), - (c = g), - (n = m); - }, - lineEnd: function() { - c && e.lineEnd(), (t = null); - }, - clean: function() { - return l | ((u && c) << 1); - } + e.defineLocale('uk', { + months: { + format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split( + '_' + ), + standalone: 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split( + '_' + ) + }, + monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split( + '_' + ), + weekdays: function(e, t) { + var n = { + nominative: 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split( + '_' + ), + accusative: 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split( + '_' + ), + genitive: 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split( + '_' + ) }; + return !0 === e + ? n.nominative.slice(1, 7).concat(n.nominative.slice(0, 1)) + : e + ? n[ + /(\[[ВвУу]\]) ?dddd/.test(t) + ? 'accusative' + : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(t) + ? 'genitive' + : 'nominative' + ][e.day()] + : n.nominative; }, - function(t, r, o, i) { - fl(i, e, n, o, t, r); + weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), + weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY р.', + LLL: 'D MMMM YYYY р., HH:mm', + LLLL: 'dddd, D MMMM YYYY р., HH:mm' }, - r ? [0, -e] : [-dc, e - dc] - ); - }; - function Ol(e, t, n, r) { - function o(o, i) { - return e <= o && o <= n && t <= i && i <= r; - } - function i(o, i, s, u) { - var l = 0, - f = 0; - if ( - null == o || - (l = a(o, s)) !== (f = a(i, s)) || - (c(o, i) < 0) ^ (s > 0) - ) - do { - u.point(0 === l || 3 === l ? e : n, l > 1 ? r : t); - } while ((l = (l + s + 4) % 4) !== f); - else u.point(i[0], i[1]); - } - function a(r, o) { - return yc(r[0] - e) < 1e-6 - ? o > 0 - ? 0 - : 3 - : yc(r[0] - n) < 1e-6 - ? o > 0 - ? 2 - : 1 - : yc(r[1] - t) < 1e-6 - ? o > 0 - ? 1 - : 0 - : o > 0 - ? 3 - : 2; - } - function s(e, t) { - return c(e.x, t.x); - } - function c(e, t) { - var n = a(e, 1), - r = a(t, 1); - return n !== r - ? n - r - : 0 === n - ? t[1] - e[1] - : 1 === n - ? e[0] - t[0] - : 2 === n - ? e[1] - t[1] - : t[0] - e[0]; - } - return function(a) { - var c, - u, - l, - f, - d, - p, - h, - g, - m, - b, - y, - v = a, - _ = hl(), - x = { - point: w, - lineStart: function() { - (x.point = M), u && u.push((l = [])); - (b = !0), (m = !1), (h = g = NaN); - }, - lineEnd: function() { - c && (M(f, d), p && m && _.rejoin(), c.push(_.result())); - (x.point = w), m && v.lineEnd(); - }, - polygonStart: function() { - (v = _), (c = []), (u = []), (y = !0); - }, - polygonEnd: function() { - var t = (function() { - for (var t = 0, n = 0, o = u.length; n < o; ++n) - for ( - var i, - a, - s = u[n], - c = 1, - l = s.length, - f = s[0], - d = f[0], - p = f[1]; - c < l; - ++c - ) - (i = d), - (a = p), - (f = s[c]), - (d = f[0]), - (p = f[1]), - a <= r - ? p > r && - (d - i) * (r - a) > (p - a) * (e - i) && - ++t - : p <= r && - (d - i) * (r - a) < (p - a) * (e - i) && - --t; - return t; - })(), - n = y && t, - o = (c = I(c)).length; - (n || o) && - (a.polygonStart(), - n && (a.lineStart(), i(null, null, 1, a), a.lineEnd()), - o && bl(c, s, t, i, a), - a.polygonEnd()); - (v = a), (c = u = l = null); + calendar: { + sameDay: n('[Сьогодні '), + nextDay: n('[Завтра '), + lastDay: n('[Вчора '), + nextWeek: n('[У] dddd ['), + lastWeek: function() { + switch (this.day()) { + case 0: + case 3: + case 5: + case 6: + return n('[Минулої] dddd [').call(this); + case 1: + case 2: + case 4: + return n('[Минулого] dddd [').call(this); } - }; - function w(e, t) { - o(e, t) && v.point(e, t); - } - function M(i, a) { - var s = o(i, a); - if ((u && l.push([i, a]), b)) - (f = i), - (d = a), - (p = s), - (b = !1), - s && (v.lineStart(), v.point(i, a)); - else if (s && m) v.point(i, a); - else { - var c = [ - (h = Math.max(-1e9, Math.min(1e9, h))), - (g = Math.max(-1e9, Math.min(1e9, g))) - ], - _ = [ - (i = Math.max(-1e9, Math.min(1e9, i))), - (a = Math.max(-1e9, Math.min(1e9, a))) - ]; - !(function(e, t, n, r, o, i) { - var a, - s = e[0], - c = e[1], - u = 0, - l = 1, - f = t[0] - s, - d = t[1] - c; - if (((a = n - s), f || !(a > 0))) { - if (((a /= f), f < 0)) { - if (a < u) return; - a < l && (l = a); - } else if (f > 0) { - if (a > l) return; - a > u && (u = a); - } - if (((a = o - s), f || !(a < 0))) { - if (((a /= f), f < 0)) { - if (a > l) return; - a > u && (u = a); - } else if (f > 0) { - if (a < u) return; - a < l && (l = a); - } - if (((a = r - c), d || !(a > 0))) { - if (((a /= d), d < 0)) { - if (a < u) return; - a < l && (l = a); - } else if (d > 0) { - if (a > l) return; - a > u && (u = a); - } - if (((a = i - c), d || !(a < 0))) { - if (((a /= d), d < 0)) { - if (a > l) return; - a > u && (u = a); - } else if (d > 0) { - if (a < u) return; - a < l && (l = a); - } - return ( - u > 0 && ((e[0] = s + u * f), (e[1] = c + u * d)), - l < 1 && ((t[0] = s + l * f), (t[1] = c + l * d)), - !0 - ); - } - } - } - } - })(c, _, e, t, n, r) - ? s && (v.lineStart(), v.point(i, a), (y = !1)) - : (m || (v.lineStart(), v.point(c[0], c[1])), - v.point(_[0], _[1]), - s || v.lineEnd(), - (y = !1)); - } - (h = i), (g = a), (m = s); - } - return x; - }; - } - var El, - Tl, - Cl, - Ll = function() { - var e, - t, - n, - r = 0, - o = 0, - i = 960, - a = 500; - return (n = { - stream: function(n) { - return e && t === n ? e : (e = Ol(r, o, i, a)((t = n))); }, - extent: function(s) { - return arguments.length - ? ((r = +s[0][0]), - (o = +s[0][1]), - (i = +s[1][0]), - (a = +s[1][1]), - (e = t = null), - n) - : [ - [r, o], - [i, a] - ]; + sameElse: 'L' + }, + relativeTime: { + future: 'за %s', + past: '%s тому', + s: 'декілька секунд', + ss: t, + m: t, + mm: t, + h: 'годину', + hh: t, + d: 'день', + dd: t, + M: 'місяць', + MM: t, + y: 'рік', + yy: t + }, + meridiemParse: /ночі|ранку|дня|вечора/, + isPM: function(e) { + return /^(дня|вечора)$/.test(e); + }, + meridiem: function(e, t, n) { + return e < 4 + ? 'ночі' + : e < 12 + ? 'ранку' + : e < 17 + ? 'дня' + : 'вечора'; + }, + dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/, + ordinal: function(e, t) { + switch (t) { + case 'M': + case 'd': + case 'DDD': + case 'w': + case 'W': + return e + '-й'; + case 'D': + return e + '-го'; + default: + return e; } - }); - }, - Pl = cc(), - Dl = { - sphere: Dc, - point: Dc, - lineStart: function() { - (Dl.point = Nl), (Dl.lineEnd = zl); }, - lineEnd: Dc, - polygonStart: Dc, - polygonEnd: Dc - }; - function zl() { - Dl.point = Dl.lineEnd = Dc; - } - function Nl(e, t) { - (El = e *= bc), (Tl = Ac((t *= bc))), (Cl = xc(t)), (Dl.point = jl); - } - function jl(e, t) { - e *= bc; - var n = Ac((t *= bc)), - r = xc(t), - o = yc(e - El), - i = xc(o), - a = r * Ac(o), - s = Cl * n - Tl * r * i, - c = Tl * n + Cl * r * i; - Pl.add(_c(Ec(a * a + s * s), c)), (El = e), (Tl = n), (Cl = r); - } - var Rl = function(e) { - return Pl.reset(), Wc(e, Dl), +Pl; - }, - Il = [null, null], - Fl = { type: 'LineString', coordinates: Il }, - ql = function(e, t) { - return (Il[0] = e), (Il[1] = t), Rl(Fl); - }, - Bl = { - Feature: function(e, t) { - return Yl(e.geometry, t); + week: { dow: 1, doy: 7 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + var t = [ + 'جنوری', + 'فروری', + 'مارچ', + 'اپریل', + 'مئی', + 'جون', + 'جولائی', + 'اگست', + 'ستمبر', + 'اکتوبر', + 'نومبر', + 'دسمبر' + ], + n = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ']; + e.defineLocale('ur', { + months: t, + monthsShort: t, + weekdays: n, + weekdaysShort: n, + weekdaysMin: n, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd، D MMMM YYYY HH:mm' + }, + meridiemParse: /صبح|شام/, + isPM: function(e) { + return 'شام' === e; }, - FeatureCollection: function(e, t) { - for (var n = e.features, r = -1, o = n.length; ++r < o; ) - if (Yl(n[r].geometry, t)) return !0; - return !1; - } - }, - Hl = { - Sphere: function() { - return !0; + meridiem: function(e, t, n) { + return e < 12 ? 'صبح' : 'شام'; }, - Point: function(e, t) { - return Wl(e.coordinates, t); + calendar: { + sameDay: '[آج بوقت] LT', + nextDay: '[کل بوقت] LT', + nextWeek: 'dddd [بوقت] LT', + lastDay: '[گذشتہ روز بوقت] LT', + lastWeek: '[گذشتہ] dddd [بوقت] LT', + sameElse: 'L' }, - MultiPoint: function(e, t) { - for (var n = e.coordinates, r = -1, o = n.length; ++r < o; ) - if (Wl(n[r], t)) return !0; - return !1; + relativeTime: { + future: '%s بعد', + past: '%s قبل', + s: 'چند سیکنڈ', + ss: '%d سیکنڈ', + m: 'ایک منٹ', + mm: '%d منٹ', + h: 'ایک گھنٹہ', + hh: '%d گھنٹے', + d: 'ایک دن', + dd: '%d دن', + M: 'ایک ماہ', + MM: '%d ماہ', + y: 'ایک سال', + yy: '%d سال' }, - LineString: function(e, t) { - return Vl(e.coordinates, t); + preparse: function(e) { + return e.replace(/،/g, ','); }, - MultiLineString: function(e, t) { - for (var n = e.coordinates, r = -1, o = n.length; ++r < o; ) - if (Vl(n[r], t)) return !0; - return !1; + postformat: function(e) { + return e.replace(/,/g, '،'); }, - Polygon: function(e, t) { - return Ul(e.coordinates, t); + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('uz', { + months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split( + '_' + ), + monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split( + '_' + ), + weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split( + '_' + ), + weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'), + weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'D MMMM YYYY, dddd HH:mm' }, - MultiPolygon: function(e, t) { - for (var n = e.coordinates, r = -1, o = n.length; ++r < o; ) - if (Ul(n[r], t)) return !0; - return !1; + calendar: { + sameDay: '[Бугун соат] LT [да]', + nextDay: '[Эртага] LT [да]', + nextWeek: 'dddd [куни соат] LT [да]', + lastDay: '[Кеча соат] LT [да]', + lastWeek: '[Утган] dddd [куни соат] LT [да]', + sameElse: 'L' }, - GeometryCollection: function(e, t) { - for (var n = e.geometries, r = -1, o = n.length; ++r < o; ) - if (Yl(n[r], t)) return !0; - return !1; - } - }; - function Yl(e, t) { - return !(!e || !Hl.hasOwnProperty(e.type)) && Hl[e.type](e, t); - } - function Wl(e, t) { - return 0 === ql(e, t); - } - function Vl(e, t) { - for (var n, r, o, i = 0, a = e.length; i < a; i++) { - if (0 === (r = ql(e[i], t))) return !0; - if ( - i > 0 && - (o = ql(e[i], e[i - 1])) > 0 && - n <= o && - r <= o && - (n + r - o) * (1 - Math.pow((n - r) / o, 2)) < 1e-12 * o - ) - return !0; - n = r; - } - return !1; - } - function Ul(e, t) { - return !!xl(e.map(Xl), Gl(t)); - } - function Xl(e) { - return (e = e.map(Gl)).pop(), e; - } - function Gl(e) { - return [e[0] * bc, e[1] * bc]; - } - var Kl = function(e, t) { - return (e && Bl.hasOwnProperty(e.type) ? Bl[e.type] : Yl)(e, t); - }; - function $l(e, t, n) { - var r = M(e, t - 1e-6, n).concat(t); - return function(e) { - return r.map(function(t) { - return [e, t]; - }); - }; - } - function Ql(e, t, n) { - var r = M(e, t - 1e-6, n).concat(t); - return function(e) { - return r.map(function(t) { - return [t, e]; - }); - }; - } - function Jl() { - var e, - t, - n, - r, - o, - i, - a, - s, - c, - u, - l, - f, - d = 10, - p = d, - h = 90, - g = 360, - m = 2.5; - function b() { - return { type: 'MultiLineString', coordinates: y() }; - } - function y() { - return M(wc(r / h) * h, n, h) - .map(l) - .concat(M(wc(s / g) * g, a, g).map(f)) - .concat( - M(wc(t / d) * d, e, d) - .filter(function(e) { - return yc(e % h) > 1e-6; - }) - .map(c) - ) - .concat( - M(wc(i / p) * p, o, p) - .filter(function(e) { - return yc(e % g) > 1e-6; - }) - .map(u) - ); - } - return ( - (b.lines = function() { - return y().map(function(e) { - return { type: 'LineString', coordinates: e }; - }); - }), - (b.outline = function() { - return { - type: 'Polygon', - coordinates: [ - l(r).concat( - f(a).slice(1), - l(n) - .reverse() - .slice(1), - f(s) - .reverse() - .slice(1) - ) - ] - }; - }), - (b.extent = function(e) { - return arguments.length - ? b.extentMajor(e).extentMinor(e) - : b.extentMinor(); - }), - (b.extentMajor = function(e) { - return arguments.length - ? ((r = +e[0][0]), - (n = +e[1][0]), - (s = +e[0][1]), - (a = +e[1][1]), - r > n && ((e = r), (r = n), (n = e)), - s > a && ((e = s), (s = a), (a = e)), - b.precision(m)) - : [ - [r, s], - [n, a] - ]; - }), - (b.extentMinor = function(n) { - return arguments.length - ? ((t = +n[0][0]), - (e = +n[1][0]), - (i = +n[0][1]), - (o = +n[1][1]), - t > e && ((n = t), (t = e), (e = n)), - i > o && ((n = i), (i = o), (o = n)), - b.precision(m)) - : [ - [t, i], - [e, o] - ]; - }), - (b.step = function(e) { - return arguments.length - ? b.stepMajor(e).stepMinor(e) - : b.stepMinor(); - }), - (b.stepMajor = function(e) { - return arguments.length ? ((h = +e[0]), (g = +e[1]), b) : [h, g]; - }), - (b.stepMinor = function(e) { - return arguments.length ? ((d = +e[0]), (p = +e[1]), b) : [d, p]; - }), - (b.precision = function(d) { - return arguments.length - ? ((m = +d), - (c = $l(i, o, 90)), - (u = Ql(t, e, m)), - (l = $l(s, a, 90)), - (f = Ql(r, n, m)), - b) - : m; - }), - b - .extentMajor([ - [-180, -89.999999], - [180, 89.999999] - ]) - .extentMinor([ - [-180, -80.000001], - [180, 80.000001] - ]) - ); - } - function Zl() { - return Jl()(); - } - var ef, - tf, - nf, - rf, - of = function(e, t) { - var n = e[0] * bc, - r = e[1] * bc, - o = t[0] * bc, - i = t[1] * bc, - a = xc(r), - s = Ac(r), - c = xc(i), - u = Ac(i), - l = a * xc(n), - f = a * Ac(n), - d = c * xc(o), - p = c * Ac(o), - h = 2 * Lc(Ec(Pc(i - r) + a * c * Pc(o - n))), - g = Ac(h), - m = h - ? function(e) { - var t = Ac((e *= h)) / g, - n = Ac(h - e) / g, - r = n * l + t * d, - o = n * f + t * p, - i = n * s + t * u; - return [_c(o, r) * mc, _c(i, Ec(r * r + o * o)) * mc]; - } - : function() { - return [n * mc, r * mc]; - }; - return (m.distance = h), m; - }, - af = function(e) { - return e; - }, - sf = cc(), - cf = cc(), - uf = { - point: Dc, - lineStart: Dc, - lineEnd: Dc, - polygonStart: function() { - (uf.lineStart = lf), (uf.lineEnd = pf); + relativeTime: { + future: 'Якин %s ичида', + past: 'Бир неча %s олдин', + s: 'фурсат', + ss: '%d фурсат', + m: 'бир дакика', + mm: '%d дакика', + h: 'бир соат', + hh: '%d соат', + d: 'бир кун', + dd: '%d кун', + M: 'бир ой', + MM: '%d ой', + y: 'бир йил', + yy: '%d йил' }, - polygonEnd: function() { - (uf.lineStart = uf.lineEnd = uf.point = Dc), - sf.add(yc(cf)), - cf.reset(); + week: { dow: 1, doy: 7 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('uz-latn', { + months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split( + '_' + ), + monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split( + '_' + ), + weekdays: 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split( + '_' + ), + weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'), + weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'D MMMM YYYY, dddd HH:mm' }, - result: function() { - var e = sf / 2; - return sf.reset(), e; - } - }; - function lf() { - uf.point = ff; - } - function ff(e, t) { - (uf.point = df), (ef = nf = e), (tf = rf = t); - } - function df(e, t) { - cf.add(rf * e - nf * t), (nf = e), (rf = t); - } - function pf() { - df(ef, tf); - } - var hf = uf, - gf = 1 / 0, - mf = gf, - bf = -gf, - yf = bf; - var vf, - _f, - xf, - wf, - Mf = { - point: function(e, t) { - e < gf && (gf = e); - e > bf && (bf = e); - t < mf && (mf = t); - t > yf && (yf = t); - }, - lineStart: Dc, - lineEnd: Dc, - polygonStart: Dc, - polygonEnd: Dc, - result: function() { - var e = [ - [gf, mf], - [bf, yf] - ]; - return (bf = yf = -(mf = gf = 1 / 0)), e; - } - }, - kf = 0, - Sf = 0, - Af = 0, - Of = 0, - Ef = 0, - Tf = 0, - Cf = 0, - Lf = 0, - Pf = 0, - Df = { - point: zf, - lineStart: Nf, - lineEnd: If, - polygonStart: function() { - (Df.lineStart = Ff), (Df.lineEnd = qf); + calendar: { + sameDay: '[Bugun soat] LT [da]', + nextDay: '[Ertaga] LT [da]', + nextWeek: 'dddd [kuni soat] LT [da]', + lastDay: '[Kecha soat] LT [da]', + lastWeek: "[O'tgan] dddd [kuni soat] LT [da]", + sameElse: 'L' }, - polygonEnd: function() { - (Df.point = zf), (Df.lineStart = Nf), (Df.lineEnd = If); + relativeTime: { + future: 'Yaqin %s ichida', + past: 'Bir necha %s oldin', + s: 'soniya', + ss: '%d soniya', + m: 'bir daqiqa', + mm: '%d daqiqa', + h: 'bir soat', + hh: '%d soat', + d: 'bir kun', + dd: '%d kun', + M: 'bir oy', + MM: '%d oy', + y: 'bir yil', + yy: '%d yil' }, - result: function() { - var e = Pf - ? [Cf / Pf, Lf / Pf] - : Tf - ? [Of / Tf, Ef / Tf] - : Af - ? [kf / Af, Sf / Af] - : [NaN, NaN]; - return (kf = Sf = Af = Of = Ef = Tf = Cf = Lf = Pf = 0), e; - } - }; - function zf(e, t) { - (kf += e), (Sf += t), ++Af; - } - function Nf() { - Df.point = jf; - } - function jf(e, t) { - (Df.point = Rf), zf((xf = e), (wf = t)); - } - function Rf(e, t) { - var n = e - xf, - r = t - wf, - o = Ec(n * n + r * r); - (Of += (o * (xf + e)) / 2), - (Ef += (o * (wf + t)) / 2), - (Tf += o), - zf((xf = e), (wf = t)); - } - function If() { - Df.point = zf; - } - function Ff() { - Df.point = Bf; - } - function qf() { - Hf(vf, _f); - } - function Bf(e, t) { - (Df.point = Hf), zf((vf = xf = e), (_f = wf = t)); - } - function Hf(e, t) { - var n = e - xf, - r = t - wf, - o = Ec(n * n + r * r); - (Of += (o * (xf + e)) / 2), - (Ef += (o * (wf + t)) / 2), - (Tf += o), - (Cf += (o = wf * e - xf * t) * (xf + e)), - (Lf += o * (wf + t)), - (Pf += 3 * o), - zf((xf = e), (wf = t)); - } - var Yf = Df; - function Wf(e) { - this._context = e; - } - Wf.prototype = { - _radius: 4.5, - pointRadius: function(e) { - return (this._radius = e), this; - }, - polygonStart: function() { - this._line = 0; - }, - polygonEnd: function() { - this._line = NaN; - }, - lineStart: function() { - this._point = 0; - }, - lineEnd: function() { - 0 === this._line && this._context.closePath(), (this._point = NaN); - }, - point: function(e, t) { - switch (this._point) { - case 0: - this._context.moveTo(e, t), (this._point = 1); - break; - case 1: - this._context.lineTo(e, t); - break; - default: - this._context.moveTo(e + this._radius, t), - this._context.arc(e, t, this._radius, 0, gc); - } - }, - result: Dc - }; - var Vf, - Uf, - Xf, - Gf, - Kf, - $f = cc(), - Qf = { - point: Dc, - lineStart: function() { - Qf.point = Jf; + week: { dow: 1, doy: 7 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('vi', { + months: 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split( + '_' + ), + monthsShort: 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split( + '_' + ), + weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'), + weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'), + weekdaysParseExact: !0, + meridiemParse: /sa|ch/i, + isPM: function(e) { + return /^ch$/i.test(e); }, - lineEnd: function() { - Vf && Zf(Uf, Xf), (Qf.point = Dc); + meridiem: function(e, t, n) { + return e < 12 ? (n ? 'sa' : 'SA') : n ? 'ch' : 'CH'; }, - polygonStart: function() { - Vf = !0; + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM [năm] YYYY', + LLL: 'D MMMM [năm] YYYY HH:mm', + LLLL: 'dddd, D MMMM [năm] YYYY HH:mm', + l: 'DD/M/YYYY', + ll: 'D MMM YYYY', + lll: 'D MMM YYYY HH:mm', + llll: 'ddd, D MMM YYYY HH:mm' }, - polygonEnd: function() { - Vf = null; + calendar: { + sameDay: '[Hôm nay lúc] LT', + nextDay: '[Ngày mai lúc] LT', + nextWeek: 'dddd [tuần tới lúc] LT', + lastDay: '[Hôm qua lúc] LT', + lastWeek: 'dddd [tuần rồi lúc] LT', + sameElse: 'L' }, - result: function() { - var e = +$f; - return $f.reset(), e; - } - }; - function Jf(e, t) { - (Qf.point = Zf), (Uf = Gf = e), (Xf = Kf = t); - } - function Zf(e, t) { - (Gf -= e), (Kf -= t), $f.add(Ec(Gf * Gf + Kf * Kf)), (Gf = e), (Kf = t); - } - var ed = Qf; - function td() { - this._string = []; - } - function nd(e) { - return ( - 'm0,' + - e + - 'a' + - e + - ',' + - e + - ' 0 1,1 0,' + - -2 * e + - 'a' + - e + - ',' + - e + - ' 0 1,1 0,' + - 2 * e + - 'z' - ); - } - td.prototype = { - _radius: 4.5, - _circle: nd(4.5), - pointRadius: function(e) { - return ( - (e = +e) !== this._radius && - ((this._radius = e), (this._circle = null)), - this - ); - }, - polygonStart: function() { - this._line = 0; - }, - polygonEnd: function() { - this._line = NaN; - }, - lineStart: function() { - this._point = 0; - }, - lineEnd: function() { - 0 === this._line && this._string.push('Z'), (this._point = NaN); - }, - point: function(e, t) { - switch (this._point) { - case 0: - this._string.push('M', e, ',', t), (this._point = 1); - break; - case 1: - this._string.push('L', e, ',', t); - break; - default: - null == this._circle && (this._circle = nd(this._radius)), - this._string.push('M', e, ',', t, this._circle); - } - }, - result: function() { - if (this._string.length) { - var e = this._string.join(''); - return (this._string = []), e; - } - return null; - } - }; - var rd = function(e, t) { - var n, - r, - o = 4.5; - function i(e) { + relativeTime: { + future: '%s tới', + past: '%s trước', + s: 'vài giây', + ss: '%d giây', + m: 'một phút', + mm: '%d phút', + h: 'một giờ', + hh: '%d giờ', + d: 'một ngày', + dd: '%d ngày', + M: 'một tháng', + MM: '%d tháng', + y: 'một năm', + yy: '%d năm' + }, + dayOfMonthOrdinalParse: /\d{1,2}/, + ordinal: function(e) { + return e; + }, + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('x-pseudo', { + months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split( + '_' + ), + monthsShort: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split( + '_' + ), + weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'), + weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm' + }, + calendar: { + sameDay: '[T~ódá~ý át] LT', + nextDay: '[T~ómó~rró~w át] LT', + nextWeek: 'dddd [át] LT', + lastDay: '[Ý~ést~érdá~ý át] LT', + lastWeek: '[L~ást] dddd [át] LT', + sameElse: 'L' + }, + relativeTime: { + future: 'í~ñ %s', + past: '%s á~gó', + s: 'á ~féw ~sécó~ñds', + ss: '%d s~écóñ~ds', + m: 'á ~míñ~úté', + mm: '%d m~íñú~tés', + h: 'á~ñ hó~úr', + hh: '%d h~óúrs', + d: 'á ~dáý', + dd: '%d d~áýs', + M: 'á ~móñ~th', + MM: '%d m~óñt~hs', + y: 'á ~ýéár', + yy: '%d ý~éárs' + }, + dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, + ordinal: function(e) { + var t = e % 10; return ( - e && - ('function' == typeof o && - r.pointRadius(+o.apply(this, arguments)), - Wc(e, n(r))), - r.result() + e + + (1 == ~~((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') ); - } - return ( - (i.area = function(e) { - return Wc(e, n(hf)), hf.result(); - }), - (i.measure = function(e) { - return Wc(e, n(ed)), ed.result(); - }), - (i.bounds = function(e) { - return Wc(e, n(Mf)), Mf.result(); - }), - (i.centroid = function(e) { - return Wc(e, n(Yf)), Yf.result(); - }), - (i.projection = function(t) { - return arguments.length - ? ((n = null == t ? ((e = null), af) : (e = t).stream), i) - : e; - }), - (i.context = function(e) { - return arguments.length - ? ((r = null == e ? ((t = null), new td()) : new Wf((t = e))), - 'function' != typeof o && r.pointRadius(o), - i) - : t; - }), - (i.pointRadius = function(e) { - return arguments.length - ? ((o = 'function' == typeof e ? e : (r.pointRadius(+e), +e)), - i) - : o; - }), - i.projection(e).context(t) - ); - }, - od = function(e) { - return { stream: id(e) }; - }; - function id(e) { - return function(t) { - var n = new ad(); - for (var r in e) n[r] = e[r]; - return (n.stream = t), n; - }; - } - function ad() {} - function sd(e, t, n) { - var r = e.clipExtent && e.clipExtent(); - return ( - e.scale(150).translate([0, 0]), - null != r && e.clipExtent(null), - Wc(n, e.stream(Mf)), - t(Mf.result()), - null != r && e.clipExtent(r), - e - ); - } - function cd(e, t, n) { - return sd( - e, - function(n) { - var r = t[1][0] - t[0][0], - o = t[1][1] - t[0][1], - i = Math.min(r / (n[1][0] - n[0][0]), o / (n[1][1] - n[0][1])), - a = +t[0][0] + (r - i * (n[1][0] + n[0][0])) / 2, - s = +t[0][1] + (o - i * (n[1][1] + n[0][1])) / 2; - e.scale(150 * i).translate([a, s]); }, - n - ); - } - function ud(e, t, n) { - return cd(e, [[0, 0], t], n); - } - function ld(e, t, n) { - return sd( - e, - function(n) { - var r = +t, - o = r / (n[1][0] - n[0][0]), - i = (r - o * (n[1][0] + n[0][0])) / 2, - a = -o * n[0][1]; - e.scale(150 * o).translate([i, a]); + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('yo', { + months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split( + '_' + ), + monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split( + '_' + ), + weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'), + weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'), + weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'), + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A' }, - n - ); - } - function fd(e, t, n) { - return sd( - e, - function(n) { - var r = +t, - o = r / (n[1][1] - n[0][1]), - i = -o * n[0][0], - a = (r - o * (n[1][1] + n[0][1])) / 2; - e.scale(150 * o).translate([i, a]); + calendar: { + sameDay: '[Ònì ni] LT', + nextDay: '[Ọ̀la ni] LT', + nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT", + lastDay: '[Àna ni] LT', + lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT', + sameElse: 'L' }, - n - ); - } - ad.prototype = { - constructor: ad, - point: function(e, t) { - this.stream.point(e, t); - }, - sphere: function() { - this.stream.sphere(); - }, - lineStart: function() { - this.stream.lineStart(); - }, - lineEnd: function() { - this.stream.lineEnd(); - }, - polygonStart: function() { - this.stream.polygonStart(); - }, - polygonEnd: function() { - this.stream.polygonEnd(); - } - }; - var dd = xc(30 * bc), - pd = function(e, t) { - return +t - ? (function(e, t) { - function n(r, o, i, a, s, c, u, l, f, d, p, h, g, m) { - var b = u - r, - y = l - o, - v = b * b + y * y; - if (v > 4 * t && g--) { - var _ = a + d, - x = s + p, - w = c + h, - M = Ec(_ * _ + x * x + w * w), - k = Lc((w /= M)), - S = - yc(yc(w) - 1) < 1e-6 || yc(i - f) < 1e-6 - ? (i + f) / 2 - : _c(x, _), - A = e(S, k), - O = A[0], - E = A[1], - T = O - r, - C = E - o, - L = y * T - b * C; - ((L * L) / v > t || - yc((b * T + y * C) / v - 0.5) > 0.3 || - a * d + s * p + c * h < dd) && - (n( - r, - o, - i, - a, - s, - c, - O, - E, - S, - (_ /= M), - (x /= M), - w, - g, - m - ), - m.point(O, E), - n(O, E, S, _, x, w, u, l, f, d, p, h, g, m)); - } - } - return function(t) { - var r, - o, - i, - a, - s, - c, - u, - l, - f, - d, - p, - h, - g = { - point: m, - lineStart: b, - lineEnd: v, - polygonStart: function() { - t.polygonStart(), (g.lineStart = _); - }, - polygonEnd: function() { - t.polygonEnd(), (g.lineStart = b); - } - }; - function m(n, r) { - (n = e(n, r)), t.point(n[0], n[1]); - } - function b() { - (l = NaN), (g.point = y), t.lineStart(); - } - function y(r, o) { - var i = eu([r, o]), - a = e(r, o); - n( - l, - f, - u, - d, - p, - h, - (l = a[0]), - (f = a[1]), - (u = r), - (d = i[0]), - (p = i[1]), - (h = i[2]), - 16, - t - ), - t.point(l, f); - } - function v() { - (g.point = m), t.lineEnd(); - } - function _() { - b(), (g.point = x), (g.lineEnd = w); - } - function x(e, t) { - y((r = e), t), - (o = l), - (i = f), - (a = d), - (s = p), - (c = h), - (g.point = y); - } - function w() { - n(l, f, u, d, p, h, o, i, r, a, s, c, 16, t), - (g.lineEnd = v), - v(); - } - return g; - }; - })(e, t) - : (function(e) { - return id({ - point: function(t, n) { - (t = e(t, n)), this.stream.point(t[0], t[1]); - } - }); - })(e); - }; - var hd = id({ - point: function(e, t) { - this.stream.point(e * bc, t * bc); - } - }); - function gd(e, t, n, r, o) { - function i(i, a) { - return [t + e * (i *= r), n - e * (a *= o)]; - } - return ( - (i.invert = function(i, a) { - return [((i - t) / e) * r, ((n - a) / e) * o]; - }), - i - ); - } - function md(e, t, n, r, o, i) { - var a = xc(i), - s = Ac(i), - c = a * e, - u = s * e, - l = a / e, - f = s / e, - d = (s * n - a * t) / e, - p = (s * t + a * n) / e; - function h(e, i) { - return [c * (e *= r) - u * (i *= o) + t, n - u * e - c * i]; - } - return ( - (h.invert = function(e, t) { - return [r * (l * e - f * t + d), o * (p - f * e - l * t)]; - }), - h - ); - } - function bd(e) { - return yd(function() { - return e; - })(); - } - function yd(e) { - var t, - n, - r, - o, - i, - a, - s, - c, - u, - l, - f = 150, - d = 480, - p = 250, - h = 0, - g = 0, - m = 0, - b = 0, - y = 0, - v = 0, - _ = 1, - x = 1, - w = null, - M = Sl, - k = null, - S = af, - A = 0.5; - function O(e) { - return c(e[0] * bc, e[1] * bc); - } - function E(e) { - return (e = c.invert(e[0], e[1])) && [e[0] * mc, e[1] * mc]; - } - function T() { - var e = md(f, 0, 0, _, x, v).apply(null, t(h, g)), - r = (v ? md : gd)(f, d - e[0], p - e[1], _, x, v); - return ( - (n = al(m, b, y)), - (s = ol(t, r)), - (c = ol(n, s)), - (a = pd(s, A)), - C() - ); - } - function C() { - return (u = l = null), O; - } - return ( - (O.stream = function(e) { - return u && l === e - ? u - : (u = hd( - (function(e) { - return id({ - point: function(t, n) { - var r = e(t, n); - return this.stream.point(r[0], r[1]); - } - }); - })(n)(M(a(S((l = e))))) - )); - }), - (O.preclip = function(e) { - return arguments.length ? ((M = e), (w = void 0), C()) : M; - }), - (O.postclip = function(e) { - return arguments.length - ? ((S = e), (k = r = o = i = null), C()) - : S; - }), - (O.clipAngle = function(e) { - return arguments.length - ? ((M = +e ? Al((w = e * bc)) : ((w = null), Sl)), C()) - : w * mc; - }), - (O.clipExtent = function(e) { - return arguments.length - ? ((S = - null == e - ? ((k = r = o = i = null), af) - : Ol( - (k = +e[0][0]), - (r = +e[0][1]), - (o = +e[1][0]), - (i = +e[1][1]) - )), - C()) - : null == k - ? null - : [ - [k, r], - [o, i] - ]; - }), - (O.scale = function(e) { - return arguments.length ? ((f = +e), T()) : f; - }), - (O.translate = function(e) { - return arguments.length ? ((d = +e[0]), (p = +e[1]), T()) : [d, p]; - }), - (O.center = function(e) { - return arguments.length - ? ((h = (e[0] % 360) * bc), (g = (e[1] % 360) * bc), T()) - : [h * mc, g * mc]; - }), - (O.rotate = function(e) { - return arguments.length - ? ((m = (e[0] % 360) * bc), - (b = (e[1] % 360) * bc), - (y = e.length > 2 ? (e[2] % 360) * bc : 0), - T()) - : [m * mc, b * mc, y * mc]; - }), - (O.angle = function(e) { - return arguments.length ? ((v = (e % 360) * bc), T()) : v * mc; - }), - (O.reflectX = function(e) { - return arguments.length ? ((_ = e ? -1 : 1), T()) : _ < 0; - }), - (O.reflectY = function(e) { - return arguments.length ? ((x = e ? -1 : 1), T()) : x < 0; - }), - (O.precision = function(e) { - return arguments.length ? ((a = pd(s, (A = e * e))), C()) : Ec(A); - }), - (O.fitExtent = function(e, t) { - return cd(O, e, t); - }), - (O.fitSize = function(e, t) { - return ud(O, e, t); - }), - (O.fitWidth = function(e, t) { - return ld(O, e, t); - }), - (O.fitHeight = function(e, t) { - return fd(O, e, t); - }), - function() { + relativeTime: { + future: 'ní %s', + past: '%s kọjá', + s: 'ìsẹjú aayá die', + ss: 'aayá %d', + m: 'ìsẹjú kan', + mm: 'ìsẹjú %d', + h: 'wákati kan', + hh: 'wákati %d', + d: 'ọjọ́ kan', + dd: 'ọjọ́ %d', + M: 'osù kan', + MM: 'osù %d', + y: 'ọdún kan', + yy: 'ọdún %d' + }, + dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/, + ordinal: 'ọjọ́ %d', + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('zh-cn', { + months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( + '_' + ), + monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( + '_' + ), + weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split( + '_' + ), + weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'), + weekdaysMin: '日_一_二_三_四_五_六'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY/MM/DD', + LL: 'YYYY年M月D日', + LLL: 'YYYY年M月D日Ah点mm分', + LLLL: 'YYYY年M月D日ddddAh点mm分', + l: 'YYYY/M/D', + ll: 'YYYY年M月D日', + lll: 'YYYY年M月D日 HH:mm', + llll: 'YYYY年M月D日dddd HH:mm' + }, + meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, + meridiemHour: function(e, t) { + return ( + 12 === e && (e = 0), + '凌晨' === t || '早上' === t || '上午' === t + ? e + : '下午' === t || '晚上' === t + ? e + 12 + : e >= 11 + ? e + : e + 12 + ); + }, + meridiem: function(e, t, n) { + var r = 100 * e + t; + return r < 600 + ? '凌晨' + : r < 900 + ? '早上' + : r < 1130 + ? '上午' + : r < 1230 + ? '中午' + : r < 1800 + ? '下午' + : '晚上'; + }, + calendar: { + sameDay: '[今天]LT', + nextDay: '[明天]LT', + nextWeek: '[下]ddddLT', + lastDay: '[昨天]LT', + lastWeek: '[上]ddddLT', + sameElse: 'L' + }, + dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/, + ordinal: function(e, t) { + switch (t) { + case 'd': + case 'D': + case 'DDD': + return e + '日'; + case 'M': + return e + '月'; + case 'w': + case 'W': + return e + '周'; + default: + return e; + } + }, + relativeTime: { + future: '%s内', + past: '%s前', + s: '几秒', + ss: '%d 秒', + m: '1 分钟', + mm: '%d 分钟', + h: '1 小时', + hh: '%d 小时', + d: '1 天', + dd: '%d 天', + M: '1 个月', + MM: '%d 个月', + y: '1 年', + yy: '%d 年' + }, + week: { dow: 1, doy: 4 } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('zh-hk', { + months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( + '_' + ), + monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( + '_' + ), + weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split( + '_' + ), + weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'), + weekdaysMin: '日_一_二_三_四_五_六'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY/MM/DD', + LL: 'YYYY年M月D日', + LLL: 'YYYY年M月D日 HH:mm', + LLLL: 'YYYY年M月D日dddd HH:mm', + l: 'YYYY/M/D', + ll: 'YYYY年M月D日', + lll: 'YYYY年M月D日 HH:mm', + llll: 'YYYY年M月D日dddd HH:mm' + }, + meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, + meridiemHour: function(e, t) { return ( - (t = e.apply(this, arguments)), (O.invert = t.invert && E), T() + 12 === e && (e = 0), + '凌晨' === t || '早上' === t || '上午' === t + ? e + : '中午' === t + ? e >= 11 + ? e + : e + 12 + : '下午' === t || '晚上' === t + ? e + 12 + : void 0 ); - } - ); - } - function vd(e) { - var t = 0, - n = dc / 3, - r = yd(e), - o = r(t, n); - return ( - (o.parallels = function(e) { - return arguments.length - ? r((t = e[0] * bc), (n = e[1] * bc)) - : [t * mc, n * mc]; - }), - o - ); - } - function _d(e, t) { - var n = Ac(e), - r = (n + Ac(t)) / 2; - if (yc(r) < 1e-6) - return (function(e) { - var t = xc(e); - function n(e, n) { - return [e * t, Ac(n) / t]; + }, + meridiem: function(e, t, n) { + var r = 100 * e + t; + return r < 600 + ? '凌晨' + : r < 900 + ? '早上' + : r < 1130 + ? '上午' + : r < 1230 + ? '中午' + : r < 1800 + ? '下午' + : '晚上'; + }, + calendar: { + sameDay: '[今天]LT', + nextDay: '[明天]LT', + nextWeek: '[下]ddddLT', + lastDay: '[昨天]LT', + lastWeek: '[上]ddddLT', + sameElse: 'L' + }, + dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, + ordinal: function(e, t) { + switch (t) { + case 'd': + case 'D': + case 'DDD': + return e + '日'; + case 'M': + return e + '月'; + case 'w': + case 'W': + return e + '週'; + default: + return e; } + }, + relativeTime: { + future: '%s內', + past: '%s前', + s: '幾秒', + ss: '%d 秒', + m: '1 分鐘', + mm: '%d 分鐘', + h: '1 小時', + hh: '%d 小時', + d: '1 天', + dd: '%d 天', + M: '1 個月', + MM: '%d 個月', + y: '1 年', + yy: '%d 年' + } + }); + })(n(4)); + }, + function(e, t, n) { + !(function(e) { + 'use strict'; + e.defineLocale('zh-tw', { + months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( + '_' + ), + monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( + '_' + ), + weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split( + '_' + ), + weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'), + weekdaysMin: '日_一_二_三_四_五_六'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY/MM/DD', + LL: 'YYYY年M月D日', + LLL: 'YYYY年M月D日 HH:mm', + LLLL: 'YYYY年M月D日dddd HH:mm', + l: 'YYYY/M/D', + ll: 'YYYY年M月D日', + lll: 'YYYY年M月D日 HH:mm', + llll: 'YYYY年M月D日dddd HH:mm' + }, + meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, + meridiemHour: function(e, t) { return ( - (n.invert = function(e, n) { - return [e / t, Lc(n * t)]; - }), - n - ); - })(e); - var o = 1 + n * (2 * r - n), - i = Ec(o) / r; - function a(e, t) { - var n = Ec(o - 2 * r * Ac(t)) / r; - return [n * Ac((e *= r)), i - n * xc(e)]; - } - return ( - (a.invert = function(e, t) { - var n = i - t, - a = _c(e, yc(n)) * Oc(n); - return ( - n * r < 0 && (a -= dc * Oc(e) * Oc(n)), - [a / r, Lc((o - (e * e + n * n) * r * r) / (2 * r))] + 12 === e && (e = 0), + '凌晨' === t || '早上' === t || '上午' === t + ? e + : '中午' === t + ? e >= 11 + ? e + : e + 12 + : '下午' === t || '晚上' === t + ? e + 12 + : void 0 ); - }), - a - ); - } - var xd = function() { - return vd(_d) - .scale(155.424) - .center([0, 33.6442]); - }, - wd = function() { - return xd() - .parallels([29.5, 45.5]) - .scale(1070) - .translate([480, 250]) - .rotate([96, 0]) - .center([-0.6, 38.7]); - }; - var Md = function() { - var e, - t, - n, - r, - o, - i, - a = wd(), - s = xd() - .rotate([154, 0]) - .center([-2, 58.5]) - .parallels([55, 65]), - c = xd() - .rotate([157, 0]) - .center([-3, 19.9]) - .parallels([8, 18]), - u = { - point: function(e, t) { - i = [e, t]; + }, + meridiem: function(e, t, n) { + var r = 100 * e + t; + return r < 600 + ? '凌晨' + : r < 900 + ? '早上' + : r < 1130 + ? '上午' + : r < 1230 + ? '中午' + : r < 1800 + ? '下午' + : '晚上'; + }, + calendar: { + sameDay: '[今天] LT', + nextDay: '[明天] LT', + nextWeek: '[下]dddd LT', + lastDay: '[昨天] LT', + lastWeek: '[上]dddd LT', + sameElse: 'L' + }, + dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, + ordinal: function(e, t) { + switch (t) { + case 'd': + case 'D': + case 'DDD': + return e + '日'; + case 'M': + return e + '月'; + case 'w': + case 'W': + return e + '週'; + default: + return e; } - }; - function l(e) { - var t = e[0], - a = e[1]; - return ( - (i = null), - n.point(t, a), - i || (r.point(t, a), i) || (o.point(t, a), i) - ); - } - function f() { - return (e = t = null), l; - } + }, + relativeTime: { + future: '%s內', + past: '%s前', + s: '幾秒', + ss: '%d 秒', + m: '1 分鐘', + mm: '%d 分鐘', + h: '1 小時', + hh: '%d 小時', + d: '1 天', + dd: '%d 天', + M: '1 個月', + MM: '%d 個月', + y: '1 年', + yy: '%d 年' + } + }); + })(n(4)); + }, + function(e, t, n) { + 'use strict'; + var r = Object.prototype.toString; + e.exports = function(e) { + var t = r.call(e), + n = '[object Arguments]' === t; return ( - (l.invert = function(e) { - var t = a.scale(), - n = a.translate(), - r = (e[0] - n[0]) / t, - o = (e[1] - n[1]) / t; - return (o >= 0.12 && o < 0.234 && r >= -0.425 && r < -0.214 - ? s - : o >= 0.166 && o < 0.234 && r >= -0.214 && r < -0.115 - ? c - : a - ).invert(e); - }), - (l.stream = function(n) { - return e && t === n - ? e - : ((r = [a.stream((t = n)), s.stream(n), c.stream(n)]), - (o = r.length), - (e = { - point: function(e, t) { - for (var n = -1; ++n < o; ) r[n].point(e, t); - }, - sphere: function() { - for (var e = -1; ++e < o; ) r[e].sphere(); - }, - lineStart: function() { - for (var e = -1; ++e < o; ) r[e].lineStart(); - }, - lineEnd: function() { - for (var e = -1; ++e < o; ) r[e].lineEnd(); - }, - polygonStart: function() { - for (var e = -1; ++e < o; ) r[e].polygonStart(); - }, - polygonEnd: function() { - for (var e = -1; ++e < o; ) r[e].polygonEnd(); - } - })); - var r, o; - }), - (l.precision = function(e) { - return arguments.length - ? (a.precision(e), s.precision(e), c.precision(e), f()) - : a.precision(); - }), - (l.scale = function(e) { - return arguments.length - ? (a.scale(e), - s.scale(0.35 * e), - c.scale(e), - l.translate(a.translate())) - : a.scale(); - }), - (l.translate = function(e) { - if (!arguments.length) return a.translate(); - var t = a.scale(), - i = +e[0], - l = +e[1]; - return ( - (n = a - .translate(e) - .clipExtent([ - [i - 0.455 * t, l - 0.238 * t], - [i + 0.455 * t, l + 0.238 * t] - ]) - .stream(u)), - (r = s - .translate([i - 0.307 * t, l + 0.201 * t]) - .clipExtent([ - [i - 0.425 * t + 1e-6, l + 0.12 * t + 1e-6], - [i - 0.214 * t - 1e-6, l + 0.234 * t - 1e-6] - ]) - .stream(u)), - (o = c - .translate([i - 0.205 * t, l + 0.212 * t]) - .clipExtent([ - [i - 0.214 * t + 1e-6, l + 0.166 * t + 1e-6], - [i - 0.115 * t - 1e-6, l + 0.234 * t - 1e-6] - ]) - .stream(u)), - f() - ); - }), - (l.fitExtent = function(e, t) { - return cd(l, e, t); - }), - (l.fitSize = function(e, t) { - return ud(l, e, t); - }), - (l.fitWidth = function(e, t) { - return ld(l, e, t); - }), - (l.fitHeight = function(e, t) { - return fd(l, e, t); - }), - l.scale(1070) + n || + (n = + '[object Array]' !== t && + null !== e && + 'object' == typeof e && + 'number' == typeof e.length && + e.length >= 0 && + '[object Function]' === r.call(e.callee)), + n ); }; - function kd(e) { - return function(t, n) { - var r = xc(t), - o = xc(n), - i = e(r * o); - return [i * o * Ac(t), i * Ac(n)]; - }; - } - function Sd(e) { - return function(t, n) { - var r = Ec(t * t + n * n), - o = e(r), - i = Ac(o), - a = xc(o); - return [_c(t * i, r * a), Lc(r && (n * i) / r)]; - }; - } - var Ad = kd(function(e) { - return Ec(2 / (1 + e)); - }); - Ad.invert = Sd(function(e) { - return 2 * Lc(e / 2); - }); - var Od = function() { - return bd(Ad) - .scale(124.75) - .clipAngle(179.999); + }, + function(e, t, n) { + 'use strict'; + var r = n(168), + o = n(130), + i = function(e) { + return null != e; }, - Ed = kd(function(e) { - return (e = Cc(e)) && e / Ac(e); - }); - Ed.invert = Sd(function(e) { - return e; - }); - var Td = function() { - return bd(Ed) - .scale(79.4188) - .clipAngle(179.999); + a = n(392)(), + s = Object, + c = o.call(Function.call, Array.prototype.push), + u = o.call(Function.call, Object.prototype.propertyIsEnumerable), + l = a ? Object.getOwnPropertySymbols : null; + e.exports = function(e, t) { + if (!i(e)) throw new TypeError('target must be an object'); + var n, + o, + f, + d, + p, + h, + g, + m = s(e); + for (n = 1; n < arguments.length; ++n) { + (o = s(arguments[n])), (d = r(o)); + var b = a && (Object.getOwnPropertySymbols || l); + if (b) + for (p = b(o), f = 0; f < p.length; ++f) + (g = p[f]), u(o, g) && c(d, g); + for (f = 0; f < d.length; ++f) + (h = o[(g = d[f])]), u(o, g) && (m[g] = h); + } + return m; }; - function Cd(e, t) { - return [e, kc(Tc((pc + t) / 2))]; - } - Cd.invert = function(e, t) { - return [e, 2 * vc(Mc(t)) - pc]; + }, + function(e, t, n) { + 'use strict'; + e.exports = function() { + if ( + 'function' != typeof Symbol || + 'function' != typeof Object.getOwnPropertySymbols + ) + return !1; + if ('symbol' == typeof Symbol.iterator) return !0; + var e = {}, + t = Symbol('test'), + n = Object(t); + if ('string' == typeof t) return !1; + if ('[object Symbol]' !== Object.prototype.toString.call(t)) return !1; + if ('[object Symbol]' !== Object.prototype.toString.call(n)) return !1; + for (t in ((e[t] = 42), e)) return !1; + if ('function' == typeof Object.keys && 0 !== Object.keys(e).length) + return !1; + if ( + 'function' == typeof Object.getOwnPropertyNames && + 0 !== Object.getOwnPropertyNames(e).length + ) + return !1; + var r = Object.getOwnPropertySymbols(e); + if (1 !== r.length || r[0] !== t) return !1; + if (!Object.prototype.propertyIsEnumerable.call(e, t)) return !1; + if ('function' == typeof Object.getOwnPropertyDescriptor) { + var o = Object.getOwnPropertyDescriptor(e, t); + if (42 !== o.value || !0 !== o.enumerable) return !1; + } + return !0; }; - var Ld = function() { - return Pd(Cd).scale(961 / gc); + }, + function(e, t, n) { + 'use strict'; + var r = n(391); + e.exports = function() { + return Object.assign + ? (function() { + if (!Object.assign) return !1; + for ( + var e = 'abcdefghijklmnopqrst', t = e.split(''), n = {}, r = 0; + r < t.length; + ++r + ) + n[t[r]] = t[r]; + var o = Object.assign({}, n), + i = ''; + for (var a in o) i += a; + return e !== i; + })() + ? r + : (function() { + if (!Object.assign || !Object.preventExtensions) return !1; + var e = Object.preventExtensions({ 1: 2 }); + try { + Object.assign(e, 'xy'); + } catch (t) { + return 'y' === e[1]; + } + return !1; + })() + ? r + : Object.assign + : r; }; - function Pd(e) { - var t, - n, - r, - o = bd(e), - i = o.center, - a = o.scale, - s = o.translate, - c = o.clipExtent, - u = null; - function l() { - var i = dc * a(), - s = o(ll(o.rotate()).invert([0, 0])); - return c( - null == u - ? [ - [s[0] - i, s[1] - i], - [s[0] + i, s[1] + i] - ] - : e === Cd - ? [ - [Math.max(s[0] - i, u), t], - [Math.min(s[0] + i, n), r] - ] - : [ - [u, Math.max(s[1] - i, t)], - [n, Math.min(s[1] + i, r)] - ] - ); - } + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = function(e, t, n, r, o) { + return { + ariaLabel: u(o, r, e, t), + hoveredSpan: c(r), + isOutsideRange: r.has('blocked-out-of-range'), + selected: a(r), + useDefaultCursor: s(r), + daySizeStyles: { width: n, height: n - 1 } + }; + }); + var r, + o = (r = n(759)) && r.__esModule ? r : { default: r }, + i = n(15); + function a(e) { return ( - (o.scale = function(e) { - return arguments.length ? (a(e), l()) : a(); - }), - (o.translate = function(e) { - return arguments.length ? (s(e), l()) : s(); - }), - (o.center = function(e) { - return arguments.length ? (i(e), l()) : i(); - }), - (o.clipExtent = function(e) { - return arguments.length - ? (null == e - ? (u = t = n = r = null) - : ((u = +e[0][0]), - (t = +e[0][1]), - (n = +e[1][0]), - (r = +e[1][1])), - l()) - : null == u - ? null - : [ - [u, t], - [n, r] - ]; - }), - l() + e.has('selected') || + e.has('selected-span') || + e.has('selected-start') || + e.has('selected-end') ); } - function Dd(e) { - return Tc((pc + e) / 2); - } - function zd(e, t) { - var n = xc(e), - r = e === t ? Ac(e) : kc(n / xc(t)) / kc(Dd(t) / Dd(e)), - o = (n * Sc(Dd(e), r)) / r; - if (!r) return Cd; - function i(e, t) { - o > 0 - ? t < 1e-6 - pc && (t = 1e-6 - pc) - : t > pc - 1e-6 && (t = pc - 1e-6); - var n = o / Sc(Dd(t), r); - return [n * Ac(r * e), o - n * xc(r * e)]; - } + function s(e) { return ( - (i.invert = function(e, t) { - var n = o - t, - i = Oc(r) * Ec(e * e + n * n), - a = _c(e, yc(n)) * Oc(n); - return ( - n * r < 0 && (a -= dc * Oc(e) * Oc(n)), - [a / r, 2 * vc(Sc(o / i, 1 / r)) - pc] - ); - }), - i + e.has('blocked-minimum-nights') || + e.has('blocked-calendar') || + e.has('blocked-out-of-range') ); } - var Nd = function() { - return vd(zd) - .scale(109.5) - .parallels([30, 30]); - }; - function jd(e, t) { - return [e, t]; + function c(e) { + return !a(e) && (e.has('hovered-span') || e.has('after-hovered-start')); } - jd.invert = jd; - var Rd = function() { - return bd(jd).scale(152.63); - }; - function Id(e, t) { - var n = xc(e), - r = e === t ? Ac(e) : (n - xc(t)) / (t - e), - o = n / r + e; - if (yc(r) < 1e-6) return jd; - function i(e, t) { - var n = o - t, - i = r * e; - return [n * Ac(i), o - n * xc(i)]; - } - return ( - (i.invert = function(e, t) { - var n = o - t, - i = _c(e, yc(n)) * Oc(n); - return ( - n * r < 0 && (i -= dc * Oc(e) * Oc(n)), - [i / r, o - Oc(r) * Ec(e * e + n * n)] - ); - }), - i - ); + function u(e, t, n, r) { + var s = e.chooseAvailableDate, + c = e.dateIsUnavailable, + u = e.dateIsSelected, + l = e.dateIsSelectedAsStartDate, + f = e.dateIsSelectedAsEndDate, + d = { date: n.format(r) }; + return t.has('selected-start') && l + ? (0, o.default)(l, d) + : t.has('selected-end') && f + ? (0, o.default)(f, d) + : a(t) && u + ? (0, o.default)(u, d) + : t.has(i.BLOCKED_MODIFIER) + ? (0, o.default)(c, d) + : (0, o.default)(s, d); } - var Fd = function() { - return vd(Id) - .scale(131.154) - .center([0, 13.9389]); - }, - qd = 1.340264, - Bd = -0.081106, - Hd = 893e-6, - Yd = 0.003796, - Wd = Ec(3) / 2; - function Vd(e, t) { - var n = Lc(Wd * Ac(t)), - r = n * n, - o = r * r * r; - return [ - (e * xc(n)) / (Wd * (qd + 3 * Bd * r + o * (7 * Hd + 9 * Yd * r))), - n * (qd + Bd * r + o * (Hd + Yd * r)) - ]; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = void 0); + var r = g(n(45)), + o = g(n(0)), + i = (g(n(1)), g(n(54)), n(21), n(46)), + a = g(n(4)), + s = n(31), + c = (g(n(35)), g(n(760))), + u = g(n(167)), + l = g(n(396)), + f = g(n(763)), + d = g(n(81)), + p = g(n(132)), + h = (g(n(131)), g(n(83)), g(n(70)), n(15)); + function g(e) { + return e && e.__esModule ? e : { default: e }; } - Vd.invert = function(e, t) { - for ( - var n, r = t, o = r * r, i = o * o * o, a = 0; - a < 12 && - ((i = - (o = - (r -= n = - (r * (qd + Bd * o + i * (Hd + Yd * o)) - t) / - (qd + 3 * Bd * o + i * (7 * Hd + 9 * Yd * o))) * r) * - o * - o), - !(yc(n) < 1e-12)); - ++a - ); - return [ - (Wd * e * (qd + 3 * Bd * o + i * (7 * Hd + 9 * Yd * o))) / xc(r), - Lc(Ac(r) / Wd) - ]; - }; - var Ud = function() { - return bd(Vd).scale(177.158); - }; - function Xd(e, t) { - var n = xc(t), - r = xc(e) * n; - return [(n * Ac(e)) / r, Ac(t) / r]; - } - Xd.invert = Sd(vc); - var Gd = function() { - return bd(Xd) - .scale(144.049) - .clipAngle(60); - }, - Kd = function() { - var e, - t, - n, - r, - o, - i, - a, - s = 1, - c = 0, - u = 0, - l = 1, - f = 1, - d = 0, - p = null, - h = 1, - g = 1, - m = id({ - point: function(e, t) { - var n = v([e, t]); - this.stream.point(n[0], n[1]); - } - }), - b = af; - function y() { - return (h = s * l), (g = s * f), (i = a = null), v; - } - function v(n) { - var r = n[0] * h, - o = n[1] * g; - if (d) { - var i = o * e - r * t; - (r = r * e + o * t), (o = i); - } - return [r + c, o + u]; - } - return ( - (v.invert = function(n) { - var r = n[0] - c, - o = n[1] - u; - if (d) { - var i = o * e + r * t; - (r = r * e - o * t), (o = i); + function m(e) { + return (m = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function(e) { + return typeof e; } - return [r / h, o / g]; - }), - (v.stream = function(e) { - return i && a === e ? i : (i = m(b((a = e)))); - }), - (v.postclip = function(e) { - return arguments.length - ? ((b = e), (p = n = r = o = null), y()) - : b; - }), - (v.clipExtent = function(e) { - return arguments.length - ? ((b = - null == e - ? ((p = n = r = o = null), af) - : Ol( - (p = +e[0][0]), - (n = +e[0][1]), - (r = +e[1][0]), - (o = +e[1][1]) - )), - y()) - : null == p - ? null - : [ - [p, n], - [r, o] - ]; - }), - (v.scale = function(e) { - return arguments.length ? ((s = +e), y()) : s; - }), - (v.translate = function(e) { - return arguments.length - ? ((c = +e[0]), (u = +e[1]), y()) - : [c, u]; - }), - (v.angle = function(n) { - return arguments.length - ? ((t = Ac((d = (n % 360) * bc))), (e = xc(d)), y()) - : d * mc; - }), - (v.reflectX = function(e) { - return arguments.length ? ((l = e ? -1 : 1), y()) : l < 0; - }), - (v.reflectY = function(e) { - return arguments.length ? ((f = e ? -1 : 1), y()) : f < 0; - }), - (v.fitExtent = function(e, t) { - return cd(v, e, t); - }), - (v.fitSize = function(e, t) { - return ud(v, e, t); - }), - (v.fitWidth = function(e, t) { - return ld(v, e, t); - }), - (v.fitHeight = function(e, t) { - return fd(v, e, t); - }), - v - ); - }; - function $d(e, t) { - var n = t * t, - r = n * n; - return [ - e * - (0.8707 - - 0.131979 * n + - r * (r * (0.003971 * n - 0.001529 * r) - 0.013791)), - t * - (1.007226 + - n * (0.015085 + r * (0.028874 * n - 0.044475 - 0.005916 * r))) - ]; - } - $d.invert = function(e, t) { - var n, - r = t, - o = 25; - do { - var i = r * r, - a = i * i; - r -= n = - (r * - (1.007226 + - i * (0.015085 + a * (0.028874 * i - 0.044475 - 0.005916 * a))) - - t) / - (1.007226 + - i * - (0.045255 + a * (0.259866 * i - 0.311325 - 0.005916 * 11 * a))); - } while (yc(n) > 1e-6 && --o > 0); - return [ - e / - (0.8707 + - (i = r * r) * - (i * (i * i * i * (0.003971 - 0.001529 * i) - 0.013791) - - 0.131979)), - r - ]; - }; - var Qd = function() { - return bd($d).scale(175.295); - }; - function Jd(e, t) { - return [xc(t) * Ac(e), Ac(t)]; - } - Jd.invert = Sd(Lc); - var Zd = function() { - return bd(Jd) - .scale(249.5) - .clipAngle(90.000001); - }; - function ep(e, t) { - var n = xc(t), - r = 1 + xc(e) * n; - return [(n * Ac(e)) / r, Ac(t) / r]; - } - ep.invert = Sd(function(e) { - return 2 * vc(e); - }); - var tp = function() { - return bd(ep) - .scale(250) - .clipAngle(142); - }; - function np(e, t) { - return [kc(Tc((pc + t) / 2)), -e]; - } - np.invert = function(e, t) { - return [-t, 2 * vc(Mc(e)) - pc]; - }; - var rp = function() { - var e = Pd(np), - t = e.center, - n = e.rotate; - return ( - (e.center = function(e) { - return arguments.length ? t([-e[1], e[0]]) : [(e = t())[1], -e[0]]; - }), - (e.rotate = function(e) { - return arguments.length - ? n([e[0], e[1], e.length > 2 ? e[2] + 90 : 90]) - : [(e = n())[0], e[1], e[2] - 90]; - }), - n([0, 0, 90]).scale(159.155) - ); - }; - function op(e, t) { - return e.parent === t.parent ? 1 : 2; + : function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e; + })(e); } - function ip(e, t) { - return e + t.x; + function b() { + return (b = + Object.assign || + function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); + } + return e; + }).apply(this, arguments); } - function ap(e, t) { - return Math.max(e, t.y); + function y(e) { + return (y = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(e) { + return e.__proto__ || Object.getPrototypeOf(e); + })(e); } - var sp = function() { - var e = op, - t = 1, - n = 1, - r = !1; - function o(o) { - var i, - a = 0; - o.eachAfter(function(t) { - var n = t.children; - n - ? ((t.x = (function(e) { - return e.reduce(ip, 0) / e.length; - })(n)), - (t.y = (function(e) { - return 1 + e.reduce(ap, 0); - })(n))) - : ((t.x = i ? (a += e(t, i)) : 0), (t.y = 0), (i = t)); - }); - var s = (function(e) { - for (var t; (t = e.children); ) e = t[0]; - return e; - })(o), - c = (function(e) { - for (var t; (t = e.children); ) e = t[t.length - 1]; - return e; - })(o), - u = s.x - e(s, c) / 2, - l = c.x + e(c, s) / 2; - return o.eachAfter( - r - ? function(e) { - (e.x = (e.x - o.x) * t), (e.y = (o.y - e.y) * n); - } - : function(e) { - (e.x = ((e.x - u) / (l - u)) * t), - (e.y = (1 - (o.y ? e.y / o.y : 1)) * n); - } - ); + function v(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); } - return ( - (o.separation = function(t) { - return arguments.length ? ((e = t), o) : e; - }), - (o.size = function(e) { - return arguments.length - ? ((r = !1), (t = +e[0]), (n = +e[1]), o) - : r - ? null - : [t, n]; - }), - (o.nodeSize = function(e) { - return arguments.length - ? ((r = !0), (t = +e[0]), (n = +e[1]), o) - : r - ? [t, n] - : null; - }), - o - ); - }; - function cp(e) { - var t = 0, - n = e.children, - r = n && n.length; - if (r) for (; --r >= 0; ) t += n[r].value; - else t = 1; - e.value = t; - } - function up(e, t) { - var n, - r, - o, - i, - a, - s = new pp(e), - c = +e.value && (s.value = e.value), - u = [s]; - for (null == t && (t = lp); (n = u.pop()); ) - if ( - (c && (n.value = +n.data.value), (o = t(n.data)) && (a = o.length)) - ) - for (n.children = new Array(a), i = a - 1; i >= 0; --i) - u.push((r = n.children[i] = new pp(o[i]))), - (r.parent = n), - (r.depth = n.depth + 1); - return s.eachBefore(dp); - } - function lp(e) { - return e.children; - } - function fp(e) { - e.data = e.data.data; } - function dp(e) { - var t = 0; - do { - e.height = t; - } while ((e = e.parent) && e.height < ++t); + function _(e, t, n) { + return t && v(e.prototype, t), n && v(e, n), e; } - function pp(e) { - (this.data = e), (this.depth = this.height = 0), (this.parent = null); + function w(e, t) { + return (w = + Object.setPrototypeOf || + function(e, t) { + return (e.__proto__ = t), e; + })(e, t); } - pp.prototype = up.prototype = { - constructor: pp, - count: function() { - return this.eachAfter(cp); - }, - each: function(e) { - var t, - n, - r, - o, - i = this, - a = [i]; - do { - for (t = a.reverse(), a = []; (i = t.pop()); ) - if ((e(i), (n = i.children))) - for (r = 0, o = n.length; r < o; ++r) a.push(n[r]); - } while (a.length); - return this; - }, - eachAfter: function(e) { - for (var t, n, r, o = this, i = [o], a = []; (o = i.pop()); ) - if ((a.push(o), (t = o.children))) - for (n = 0, r = t.length; n < r; ++n) i.push(t[n]); - for (; (o = a.pop()); ) e(o); - return this; - }, - eachBefore: function(e) { - for (var t, n, r = this, o = [r]; (r = o.pop()); ) - if ((e(r), (t = r.children))) - for (n = t.length - 1; n >= 0; --n) o.push(t[n]); - return this; - }, - sum: function(e) { - return this.eachAfter(function(t) { - for ( - var n = +e(t.data) || 0, r = t.children, o = r && r.length; - --o >= 0; - - ) - n += r[o].value; - t.value = n; - }); - }, - sort: function(e) { - return this.eachBefore(function(t) { - t.children && t.children.sort(e); - }); - }, - path: function(e) { - for ( - var t = this, - n = (function(e, t) { - if (e === t) return e; - var n = e.ancestors(), - r = t.ancestors(), - o = null; - (e = n.pop()), (t = r.pop()); - for (; e === t; ) (o = e), (e = n.pop()), (t = r.pop()); - return o; - })(t, e), - r = [t]; - t !== n; - - ) - (t = t.parent), r.push(t); - for (var o = r.length; e !== n; ) r.splice(o, 0, e), (e = e.parent); - return r; - }, - ancestors: function() { - for (var e = this, t = [e]; (e = e.parent); ) t.push(e); - return t; - }, - descendants: function() { - var e = []; - return ( - this.each(function(t) { - e.push(t); - }), - e - ); - }, - leaves: function() { - var e = []; - return ( - this.eachBefore(function(t) { - t.children || e.push(t); - }), - e + function x(e) { + if (void 0 === e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" ); + return e; + } + var M = { + month: (0, a.default)(), + horizontalMonthPadding: 13, + isVisible: !0, + enableOutsideDays: !1, + modifiers: {}, + orientation: h.HORIZONTAL_ORIENTATION, + daySize: h.DAY_SIZE, + onDayClick: function() {}, + onDayMouseEnter: function() {}, + onDayMouseLeave: function() {}, + onMonthSelect: function() {}, + onYearSelect: function() {}, + renderMonthText: null, + renderCalendarDay: function(e) { + return o.default.createElement(u.default, e); + }, + renderDayContents: null, + renderMonthElement: null, + firstDayOfWeek: null, + setMonthTitleHeight: null, + focusedDate: null, + isFocused: !1, + monthFormat: 'MMMM YYYY', + phrases: s.CalendarDayPhrases, + dayAriaLabelFormat: void 0, + verticalBorderSpacing: void 0 }, - links: function() { - var e = this, - t = []; + k = (function(e) { + function t(e) { + var n; + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, t), + ((n = (function(e, t) { + return !t || ('object' !== m(t) && 'function' != typeof t) + ? x(e) + : t; + })(this, y(t).call(this, e))).state = { + weeks: (0, f.default)( + e.month, + e.enableOutsideDays, + null == e.firstDayOfWeek + ? a.default.localeData().firstDayOfWeek() + : e.firstDayOfWeek + ) + }), + (n.setCaptionRef = n.setCaptionRef.bind(x(x(n)))), + (n.setMonthTitleHeight = n.setMonthTitleHeight.bind(x(x(n)))), + n + ); + } return ( - e.each(function(n) { - n !== e && t.push({ source: n.parent, target: n }); - }), + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { value: e, writable: !0, configurable: !0 } + })), + t && w(e, t); + })(t, e), + _(t, [ + { + key: !o.default.PureComponent && 'shouldComponentUpdate', + value: function(e, t) { + return (0, r.default)(this, e, t); + } + } + ]), + _(t, [ + { + key: 'componentDidMount', + value: function() { + this.setMonthTitleHeightTimeout = setTimeout( + this.setMonthTitleHeight, + 0 + ); + } + }, + { + key: 'componentWillReceiveProps', + value: function(e) { + var t = e.month, + n = e.enableOutsideDays, + r = e.firstDayOfWeek, + o = this.props, + i = o.month, + s = o.enableOutsideDays, + c = o.firstDayOfWeek; + (t.isSame(i) && n === s && r === c) || + this.setState({ + weeks: (0, f.default)( + t, + n, + null == r ? a.default.localeData().firstDayOfWeek() : r + ) + }); + } + }, + { + key: 'componentWillUnmount', + value: function() { + this.setMonthTitleHeightTimeout && + clearTimeout(this.setMonthTitleHeightTimeout); + } + }, + { + key: 'setMonthTitleHeight', + value: function() { + var e = this.props.setMonthTitleHeight; + e && e((0, l.default)(this.captionRef, 'height', !0, !0)); + } + }, + { + key: 'setCaptionRef', + value: function(e) { + this.captionRef = e; + } + }, + { + key: 'render', + value: function() { + var e = this.props, + t = e.dayAriaLabelFormat, + n = e.daySize, + r = e.focusedDate, + a = e.horizontalMonthPadding, + s = e.isFocused, + u = e.isVisible, + l = e.modifiers, + f = e.month, + g = e.monthFormat, + m = e.onDayClick, + y = e.onDayMouseEnter, + v = e.onDayMouseLeave, + _ = e.onMonthSelect, + w = e.onYearSelect, + x = e.orientation, + M = e.phrases, + k = e.renderCalendarDay, + S = e.renderDayContents, + O = e.renderMonthElement, + E = e.renderMonthText, + A = e.styles, + T = e.verticalBorderSpacing, + C = this.state.weeks, + L = E ? E(f) : f.format(g), + P = x === h.VERTICAL_SCROLLABLE; + return o.default.createElement( + 'div', + b( + {}, + (0, i.css)(A.CalendarMonth, { + padding: '0 '.concat(a, 'px') + }), + { 'data-visible': u } + ), + o.default.createElement( + 'div', + b( + { ref: this.setCaptionRef }, + (0, i.css)( + A.CalendarMonth_caption, + P && A.CalendarMonth_caption__verticalScrollable + ) + ), + O + ? O({ month: f, onMonthSelect: _, onYearSelect: w }) + : o.default.createElement('strong', null, L) + ), + o.default.createElement( + 'table', + b( + {}, + (0, i.css)( + !T && A.CalendarMonth_table, + T && A.CalendarMonth_verticalSpacing, + T && { borderSpacing: '0px '.concat(T, 'px') } + ), + { role: 'presentation' } + ), + o.default.createElement( + 'tbody', + null, + C.map(function(e, i) { + return o.default.createElement( + c.default, + { key: i }, + e.map(function(e, o) { + return k({ + key: o, + day: e, + daySize: n, + isOutsideDay: !e || e.month() !== f.month(), + tabIndex: u && (0, d.default)(e, r) ? 0 : -1, + isFocused: s, + onDayMouseEnter: y, + onDayMouseLeave: v, + onDayClick: m, + renderDayContents: S, + phrases: M, + modifiers: l[(0, p.default)(e)], + ariaLabelFormat: t + }); + }) + ); + }) + ) + ) + ); + } + } + ]), t ); + })(o.default.PureComponent || o.default.Component); + (k.propTypes = {}), (k.defaultProps = M); + var S = (0, i.withStyles)( + function(e) { + var t = e.reactDates, + n = t.color, + r = t.font, + o = t.spacing; + return { + CalendarMonth: { + background: n.background, + textAlign: 'center', + verticalAlign: 'top', + userSelect: 'none' + }, + CalendarMonth_table: { + borderCollapse: 'collapse', + borderSpacing: 0 + }, + CalendarMonth_verticalSpacing: { borderCollapse: 'separate' }, + CalendarMonth_caption: { + color: n.text, + fontSize: r.captionSize, + textAlign: 'center', + paddingTop: o.captionPaddingTop, + paddingBottom: o.captionPaddingBottom, + captionSide: 'initial' + }, + CalendarMonth_caption__verticalScrollable: { + paddingTop: 12, + paddingBottom: 7 + } + }; }, - copy: function() { - return up(this).eachBefore(fp); - } - }; - var hp = Array.prototype.slice; - var gp = function(e) { - for ( - var t, - n, - r = 0, - o = (e = (function(e) { - for (var t, n, r = e.length; r; ) - (n = (Math.random() * r--) | 0), - (t = e[r]), - (e[r] = e[n]), - (e[n] = t); - return e; - })(hp.call(e))).length, - i = []; - r < o; - - ) - (t = e[r]), n && yp(n, t) ? ++r : ((n = _p((i = mp(i, t)))), (r = 0)); - return n; - }; - function mp(e, t) { - var n, r; - if (vp(t, e)) return [t]; - for (n = 0; n < e.length; ++n) - if (bp(t, e[n]) && vp(xp(e[n], t), e)) return [e[n], t]; - for (n = 0; n < e.length - 1; ++n) - for (r = n + 1; r < e.length; ++r) - if ( - bp(xp(e[n], e[r]), t) && - bp(xp(e[n], t), e[r]) && - bp(xp(e[r], t), e[n]) && - vp(wp(e[n], e[r], t), e) - ) - return [e[n], e[r], t]; - throw new Error(); + { pureComponent: void 0 !== o.default.PureComponent } + )(k); + t.default = S; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = function(e, t) { + var n = + arguments.length > 2 && void 0 !== arguments[2] && arguments[2], + r = arguments.length > 3 && void 0 !== arguments[3] && arguments[3]; + if (!e) return 0; + var o = 'width' === t ? 'Left' : 'Top', + i = 'width' === t ? 'Right' : 'Bottom', + a = !n || r ? window.getComputedStyle(e) : null, + s = e.offsetWidth, + c = e.offsetHeight, + u = 'width' === t ? s : c; + n || + (u -= + parseFloat(a['padding'.concat(o)]) + + parseFloat(a['padding'.concat(i)]) + + parseFloat(a['border'.concat(o, 'Width')]) + + parseFloat(a['border'.concat(i, 'Width')])); + r && + (u += + parseFloat(a['margin'.concat(o)]) + + parseFloat(a['margin'.concat(i)])); + return u; + }); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = void 0); + var r = y(n(45)), + o = y(n(0)), + i = (y(n(1)), y(n(54)), n(21), n(46)), + a = y(n(4)), + s = n(133), + c = n(31), + u = (y(n(35)), y(n(60))), + l = y(n(395)), + f = y(n(764)), + d = y(n(765)), + p = y(n(398)), + h = y(n(134)), + g = y(n(766)), + m = y(n(767)), + b = (y(n(131)), y(n(83)), y(n(70)), n(15)); + function y(e) { + return e && e.__esModule ? e : { default: e }; } - function bp(e, t) { - var n = e.r - t.r, - r = t.x - e.x, - o = t.y - e.y; - return n < 0 || n * n < r * r + o * o; + function v(e) { + return (v = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function(e) { + return typeof e; + } + : function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e; + })(e); } - function yp(e, t) { - var n = e.r - t.r + 1e-6, - r = t.x - e.x, - o = t.y - e.y; - return n > 0 && n * n > r * r + o * o; + function _() { + return (_ = + Object.assign || + function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); + } + return e; + }).apply(this, arguments); } - function vp(e, t) { - for (var n = 0; n < t.length; ++n) if (!yp(e, t[n])) return !1; - return !0; + function w(e) { + return (w = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(e) { + return e.__proto__ || Object.getPrototypeOf(e); + })(e); } - function _p(e) { - switch (e.length) { - case 1: - return { x: (t = e[0]).x, y: t.y, r: t.r }; - case 2: - return xp(e[0], e[1]); - case 3: - return wp(e[0], e[1], e[2]); + function x(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); } - var t; } - function xp(e, t) { - var n = e.x, - r = e.y, - o = e.r, - i = t.x, - a = t.y, - s = t.r, - c = i - n, - u = a - r, - l = s - o, - f = Math.sqrt(c * c + u * u); - return { - x: (n + i + (c / f) * l) / 2, - y: (r + a + (u / f) * l) / 2, - r: (f + o + s) / 2 - }; - } - function wp(e, t, n) { - var r = e.x, - o = e.y, - i = e.r, - a = t.x, - s = t.y, - c = t.r, - u = n.x, - l = n.y, - f = n.r, - d = r - a, - p = r - u, - h = o - s, - g = o - l, - m = c - i, - b = f - i, - y = r * r + o * o - i * i, - v = y - a * a - s * s + c * c, - _ = y - u * u - l * l + f * f, - x = p * h - d * g, - w = (h * _ - g * v) / (2 * x) - r, - M = (g * m - h * b) / x, - k = (p * v - d * _) / (2 * x) - o, - S = (d * b - p * m) / x, - A = M * M + S * S - 1, - O = 2 * (i + w * M + k * S), - E = w * w + k * k - i * i, - T = -(A ? (O + Math.sqrt(O * O - 4 * A * E)) / (2 * A) : E / O); - return { x: r + w + M * T, y: o + k + S * T, r: T }; - } - function Mp(e, t, n) { - var r, - o, - i, - a, - s = e.x - t.x, - c = e.y - t.y, - u = s * s + c * c; - u - ? ((o = t.r + n.r), - (o *= o), - (a = e.r + n.r), - o > (a *= a) - ? ((r = (u + a - o) / (2 * u)), - (i = Math.sqrt(Math.max(0, a / u - r * r))), - (n.x = e.x - r * s - i * c), - (n.y = e.y - r * c + i * s)) - : ((r = (u + o - a) / (2 * u)), - (i = Math.sqrt(Math.max(0, o / u - r * r))), - (n.x = t.x + r * s - i * c), - (n.y = t.y + r * c + i * s))) - : ((n.x = t.x + n.r), (n.y = t.y)); - } - function kp(e, t) { - var n = e.r + t.r - 1e-6, - r = t.x - e.x, - o = t.y - e.y; - return n > 0 && n * n > r * r + o * o; + function M(e, t, n) { + return t && x(e.prototype, t), n && x(e, n), e; } - function Sp(e) { - var t = e._, - n = e.next._, - r = t.r + n.r, - o = (t.x * n.r + n.x * t.r) / r, - i = (t.y * n.r + n.y * t.r) / r; - return o * o + i * i; + function k(e, t) { + return (k = + Object.setPrototypeOf || + function(e, t) { + return (e.__proto__ = t), e; + })(e, t); } - function Ap(e) { - (this._ = e), (this.next = null), (this.previous = null); + function S(e) { + if (void 0 === e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return e; } - function Op(e) { - if (!(o = e.length)) return 0; - var t, n, r, o, i, a, s, c, u, l, f; - if ((((t = e[0]).x = 0), (t.y = 0), !(o > 1))) return t.r; - if (((n = e[1]), (t.x = -n.r), (n.x = t.r), (n.y = 0), !(o > 2))) - return t.r + n.r; - Mp(n, t, (r = e[2])), - (t = new Ap(t)), - (n = new Ap(n)), - (r = new Ap(r)), - (t.next = r.previous = n), - (n.next = t.previous = r), - (r.next = n.previous = t); - e: for (s = 3; s < o; ++s) { - Mp(t._, n._, (r = e[s])), - (r = new Ap(r)), - (c = n.next), - (u = t.previous), - (l = n._.r), - (f = t._.r); - do { - if (l <= f) { - if (kp(c._, r._)) { - (n = c), (t.next = n), (n.previous = t), --s; - continue e; - } - (l += c._.r), (c = c.next); - } else { - if (kp(u._, r._)) { - ((t = u).next = n), (n.previous = t), --s; - continue e; - } - (f += u._.r), (u = u.previous); - } - } while (c !== u.next); - for ( - r.previous = t, r.next = n, t.next = n.previous = n = r, i = Sp(t); - (r = r.next) !== n; - - ) - (a = Sp(r)) < i && ((t = r), (i = a)); - n = t.next; + function O(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + 'function' == typeof Object.getOwnPropertySymbols && + (r = r.concat( + Object.getOwnPropertySymbols(n).filter(function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable; + }) + )), + r.forEach(function(t) { + E(e, t, n[t]); + }); } - for (t = [n._], r = n; (r = r.next) !== n; ) t.push(r._); - for (r = gp(t), s = 0; s < o; ++s) ((t = e[s]).x -= r.x), (t.y -= r.y); - return r.r; - } - var Ep = function(e) { - return Op(e), e; - }; - function Tp(e) { - return null == e ? null : Cp(e); - } - function Cp(e) { - if ('function' != typeof e) throw new Error(); return e; } - function Lp() { - return 0; + function E(e, t, n) { + return ( + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), + e + ); } - var Pp = function(e) { - return function() { - return e; - }; + var A = { + enableOutsideDays: !1, + firstVisibleMonthIndex: 0, + horizontalMonthPadding: 13, + initialMonth: (0, a.default)(), + isAnimating: !1, + numberOfMonths: 1, + modifiers: {}, + orientation: b.HORIZONTAL_ORIENTATION, + onDayClick: function() {}, + onDayMouseEnter: function() {}, + onDayMouseLeave: function() {}, + onMonthChange: function() {}, + onYearChange: function() {}, + onMonthTransitionEnd: function() {}, + renderMonthText: null, + renderCalendarDay: void 0, + renderDayContents: null, + translationValue: null, + renderMonthElement: null, + daySize: b.DAY_SIZE, + focusedDate: null, + isFocused: !1, + firstDayOfWeek: null, + setMonthTitleHeight: null, + isRTL: !1, + transitionDuration: 200, + verticalBorderSpacing: void 0, + monthFormat: 'MMMM YYYY', + phrases: c.CalendarDayPhrases, + dayAriaLabelFormat: void 0 }; - function Dp(e) { - return Math.sqrt(e.value); + function T(e, t, n) { + var r = e.clone(); + n || (r = r.subtract(1, 'month')); + for (var o = [], i = 0; i < (n ? t : t + 2); i += 1) + o.push(r), (r = r.clone().add(1, 'month')); + return o; } - var zp = function() { - var e = null, - t = 1, - n = 1, - r = Lp; - function o(o) { + var C = (function(e) { + function t(e) { + var n; + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, t), + (n = (function(e, t) { + return !t || ('object' !== v(t) && 'function' != typeof t) + ? S(e) + : t; + })(this, w(t).call(this, e))); + var r = e.orientation === b.VERTICAL_SCROLLABLE; return ( - (o.x = t / 2), - (o.y = n / 2), - e - ? o - .eachBefore(Np(e)) - .eachAfter(jp(r, 0.5)) - .eachBefore(Rp(1)) - : o - .eachBefore(Np(Dp)) - .eachAfter(jp(Lp, 1)) - .eachAfter(jp(r, o.r / Math.min(t, n))) - .eachBefore(Rp(Math.min(t, n) / (2 * o.r))), - o + (n.state = { months: T(e.initialMonth, e.numberOfMonths, r) }), + (n.isTransitionEndSupported = (0, f.default)()), + (n.onTransitionEnd = n.onTransitionEnd.bind(S(S(n)))), + (n.setContainerRef = n.setContainerRef.bind(S(S(n)))), + (n.locale = a.default.locale()), + (n.onMonthSelect = n.onMonthSelect.bind(S(S(n)))), + (n.onYearSelect = n.onYearSelect.bind(S(S(n)))), + n ); } return ( - (o.radius = function(t) { - return arguments.length ? ((e = Tp(t)), o) : e; - }), - (o.size = function(e) { - return arguments.length ? ((t = +e[0]), (n = +e[1]), o) : [t, n]; - }), - (o.padding = function(e) { - return arguments.length - ? ((r = 'function' == typeof e ? e : Pp(+e)), o) - : r; - }), - o + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { value: e, writable: !0, configurable: !0 } + })), + t && k(e, t); + })(t, e), + M(t, [ + { + key: !o.default.PureComponent && 'shouldComponentUpdate', + value: function(e, t) { + return (0, r.default)(this, e, t); + } + } + ]), + M(t, [ + { + key: 'componentDidMount', + value: function() { + this.removeEventListener = (0, s.addEventListener)( + this.container, + 'transitionend', + this.onTransitionEnd + ); + } + }, + { + key: 'componentWillReceiveProps', + value: function(e) { + var t = this, + n = e.initialMonth, + r = e.numberOfMonths, + o = e.orientation, + i = this.state.months, + s = this.props, + c = s.initialMonth, + u = s.numberOfMonths !== r, + l = i; + c.isSame(n, 'month') || + u || + ((0, m.default)(c, n) + ? (l = i.slice(1)).push( + i[i.length - 1].clone().add(1, 'month') + ) + : (0, g.default)(c, n) + ? (l = i.slice(0, i.length - 1)).unshift( + i[0].clone().subtract(1, 'month') + ) + : (l = T(n, r, o === b.VERTICAL_SCROLLABLE))); + u && (l = T(n, r, o === b.VERTICAL_SCROLLABLE)); + var f = a.default.locale(); + this.locale !== f && + ((this.locale = f), + (l = l.map(function(e) { + return e.locale(t.locale); + }))), + this.setState({ months: l }); + } + }, + { + key: 'componentDidUpdate', + value: function() { + var e = this.props, + t = e.isAnimating, + n = e.transitionDuration, + r = e.onMonthTransitionEnd; + (this.isTransitionEndSupported && n) || !t || r(); + } + }, + { + key: 'componentWillUnmount', + value: function() { + this.removeEventListener && this.removeEventListener(); + } + }, + { + key: 'onTransitionEnd', + value: function() { + (0, this.props.onMonthTransitionEnd)(); + } + }, + { + key: 'onMonthSelect', + value: function(e, t) { + var n = e.clone(), + r = this.props, + o = r.onMonthChange, + i = r.orientation, + a = this.state.months, + s = i === b.VERTICAL_SCROLLABLE, + c = a.indexOf(e); + s || (c -= 1), n.set('month', t).subtract(c, 'months'), o(n); + } + }, + { + key: 'onYearSelect', + value: function(e, t) { + var n = e.clone(), + r = this.props, + o = r.onYearChange, + i = r.orientation, + a = this.state.months, + s = i === b.VERTICAL_SCROLLABLE, + c = a.indexOf(e); + s || (c -= 1), n.set('year', t).subtract(c, 'months'), o(n); + } + }, + { + key: 'setContainerRef', + value: function(e) { + this.container = e; + } + }, + { + key: 'render', + value: function() { + var e = this, + t = this.props, + n = t.enableOutsideDays, + r = t.firstVisibleMonthIndex, + a = t.horizontalMonthPadding, + s = t.isAnimating, + c = t.modifiers, + u = t.numberOfMonths, + f = t.monthFormat, + g = t.orientation, + m = t.translationValue, + y = t.daySize, + v = t.onDayMouseEnter, + w = t.onDayMouseLeave, + x = t.onDayClick, + M = t.renderMonthText, + k = t.renderCalendarDay, + S = t.renderDayContents, + E = t.renderMonthElement, + A = t.onMonthTransitionEnd, + T = t.firstDayOfWeek, + C = t.focusedDate, + L = t.isFocused, + P = t.isRTL, + D = t.styles, + j = t.phrases, + z = t.dayAriaLabelFormat, + N = t.transitionDuration, + R = t.verticalBorderSpacing, + I = t.setMonthTitleHeight, + F = this.state.months, + q = g === b.VERTICAL_ORIENTATION, + B = g === b.VERTICAL_SCROLLABLE, + H = g === b.HORIZONTAL_ORIENTATION, + Y = (0, p.default)(y, a), + W = q || B ? Y : (u + 2) * Y, + V = '' + .concat(q || B ? 'translateY' : 'translateX', '(') + .concat(m, 'px)'); + return o.default.createElement( + 'div', + _( + {}, + (0, i.css)( + D.CalendarMonthGrid, + H && D.CalendarMonthGrid__horizontal, + q && D.CalendarMonthGrid__vertical, + B && D.CalendarMonthGrid__vertical_scrollable, + s && D.CalendarMonthGrid__animating, + s && + N && { + transition: 'transform '.concat(N, 'ms ease-in-out') + }, + O({}, (0, d.default)(V), { width: W }) + ), + { ref: this.setContainerRef, onTransitionEnd: A } + ), + F.map(function(t, d) { + var p = d >= r && d < r + u, + b = 0 === d && !p, + O = 0 === d && s && p, + A = (0, h.default)(t); + return o.default.createElement( + 'div', + _( + { key: A }, + (0, i.css)( + H && D.CalendarMonthGrid_month__horizontal, + b && D.CalendarMonthGrid_month__hideForAnimation, + O && !q && !P && { position: 'absolute', left: -Y }, + O && !q && P && { position: 'absolute', right: 0 }, + O && q && { position: 'absolute', top: -m }, + !p && !s && D.CalendarMonthGrid_month__hidden + ) + ), + o.default.createElement(l.default, { + month: t, + isVisible: p, + enableOutsideDays: n, + modifiers: c[A], + monthFormat: f, + orientation: g, + onDayMouseEnter: v, + onDayMouseLeave: w, + onDayClick: x, + onMonthSelect: e.onMonthSelect, + onYearSelect: e.onYearSelect, + renderMonthText: M, + renderCalendarDay: k, + renderDayContents: S, + renderMonthElement: E, + firstDayOfWeek: T, + daySize: y, + focusedDate: p ? C : null, + isFocused: L, + phrases: j, + setMonthTitleHeight: I, + dayAriaLabelFormat: z, + verticalBorderSpacing: R, + horizontalMonthPadding: a + }) + ); + }) + ); + } + } + ]), + t ); + })(o.default.PureComponent || o.default.Component); + (C.propTypes = {}), (C.defaultProps = A); + var L = (0, i.withStyles)( + function(e) { + var t = e.reactDates, + n = t.color, + r = t.noScrollBarOnVerticalScrollable, + o = t.spacing, + i = t.zIndex; + return { + CalendarMonthGrid: { + background: n.background, + textAlign: (0, u.default)('left'), + zIndex: i + }, + CalendarMonthGrid__animating: { zIndex: i + 1 }, + CalendarMonthGrid__horizontal: { + position: 'absolute', + left: (0, u.default)(o.dayPickerHorizontalPadding) + }, + CalendarMonthGrid__vertical: { margin: '0 auto' }, + CalendarMonthGrid__vertical_scrollable: O( + { margin: '0 auto', overflowY: 'scroll' }, + r && { + '-webkitOverflowScrolling': 'touch', + '::-webkit-scrollbar': { + '-webkit-appearance': 'none', + display: 'none' + } + } + ), + CalendarMonthGrid_month__horizontal: { + display: 'inline-block', + verticalAlign: 'top', + minHeight: '100%' + }, + CalendarMonthGrid_month__hideForAnimation: { + position: 'absolute', + zIndex: i - 1, + opacity: 0, + pointerEvents: 'none' + }, + CalendarMonthGrid_month__hidden: { visibility: 'hidden' } + }; + }, + { pureComponent: void 0 !== o.default.PureComponent } + )(C); + t.default = L; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = function(e) { + var t = + arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0; + return 7 * e + 2 * t + 1; + }); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = function(e, t) { + return ( + !(!o.default.isMoment(e) || !o.default.isMoment(t)) && + (e.month() === t.month() && e.year() === t.year()) + ); + }); + var r, + o = (r = n(4)) && r.__esModule ? r : { default: r }; + }, + function(e, t, n) { + 'use strict'; + var r = n(770), + o = n(72), + i = n(130).call(Function.call, Object.prototype.propertyIsEnumerable); + e.exports = function(e) { + var t = r.RequireObjectCoercible(e), + n = []; + for (var a in t) o(t, a) && i(t, a) && n.push(t[a]); + return n; }; - function Np(e) { - return function(t) { - t.children || (t.r = Math.max(0, +e(t) || 0)); - }; - } - function jp(e, t) { - return function(n) { - if ((r = n.children)) { - var r, - o, - i, - a = r.length, - s = e(n) * t || 0; - if (s) for (o = 0; o < a; ++o) r[o].r += s; - if (((i = Op(r)), s)) for (o = 0; o < a; ++o) r[o].r -= s; - n.r = i + s; + }, + function(e, t) { + e.exports = function(e) { + return null === e || ('function' != typeof e && 'object' != typeof e); + }; + }, + function(e, t, n) { + 'use strict'; + var r = n(71), + o = r('%TypeError%'), + i = r('%SyntaxError%'), + a = n(72), + s = { + 'Property Descriptor': function(e, t) { + if ('Object' !== e.Type(t)) return !1; + var n = { + '[[Configurable]]': !0, + '[[Enumerable]]': !0, + '[[Get]]': !0, + '[[Set]]': !0, + '[[Value]]': !0, + '[[Writable]]': !0 + }; + for (var r in t) if (a(t, r) && !n[r]) return !1; + var i = a(t, '[[Value]]'), + s = a(t, '[[Get]]') || a(t, '[[Set]]'); + if (i && s) + throw new o( + 'Property Descriptors may not be both accessor and data descriptors' + ); + return !0; } }; - } - function Rp(e) { - return function(t) { - var n = t.parent; - (t.r *= e), n && ((t.x = n.x + e * t.x), (t.y = n.y + e * t.y)); + e.exports = function(e, t, n, r) { + var a = s[t]; + if ('function' != typeof a) throw new i('unknown record type: ' + t); + if (!a(e, r)) throw new o(n + ' must be a ' + t); + }; + }, + function(e, t, n) { + 'use strict'; + e.exports = + Number.isNaN || + function(e) { + return e != e; + }; + }, + function(e, t, n) { + 'use strict'; + var r = + Number.isNaN || + function(e) { + return e != e; + }; + e.exports = + Number.isFinite || + function(e) { + return 'number' == typeof e && !r(e) && e !== 1 / 0 && e !== -1 / 0; + }; + }, + function(e, t, n) { + 'use strict'; + var r = n(71), + o = n(72), + i = r('%Object%').assign; + e.exports = function(e, t) { + if (i) return i(e, t); + for (var n in t) o(t, n) && (e[n] = t[n]); + return e; + }; + }, + function(e, t, n) { + 'use strict'; + e.exports = function(e) { + return e >= 0 ? 1 : -1; + }; + }, + function(e, t, n) { + 'use strict'; + e.exports = function(e, t) { + var n = e % t; + return Math.floor(n >= 0 ? n : n + t); + }; + }, + function(e, t, n) { + 'use strict'; + e.exports = function(e, t) { + for (var n = 0; n < e.length; n += 1) if (!t(e[n], n, e)) return !1; + return !0; + }; + }, + function(e, t, n) { + 'use strict'; + var r = n(71), + o = n(72), + i = r('%TypeError%'); + e.exports = function(e, t) { + if ('Object' !== e.Type(t)) return !1; + var n = { + '[[Configurable]]': !0, + '[[Enumerable]]': !0, + '[[Get]]': !0, + '[[Set]]': !0, + '[[Value]]': !0, + '[[Writable]]': !0 }; + for (var r in t) if (o(t, r) && !n[r]) return !1; + if (e.IsDataDescriptor(t) && e.IsAccessorDescriptor(t)) + throw new i( + 'Property Descriptors may not be both accessor and data descriptors' + ); + return !0; + }; + }, + function(e, t, n) { + 'use strict'; + var r = n(400); + e.exports = function() { + return 'function' == typeof Object.values ? Object.values : r; + }; + }, + function(e, t, n) { + 'use strict'; + e.exports = function(e) { + if (arguments.length < 1) throw new TypeError('1 argument is required'); + if ('object' != typeof e) + throw new TypeError( + 'Argument 1 (”other“) to Node.contains must be an instance of Node' + ); + var t = e; + do { + if (this === t) return !0; + t && (t = t.parentNode); + } while (t); + return !1; + }; + }, + function(e, t, n) { + 'use strict'; + var r = n(411); + e.exports = function() { + if ('undefined' != typeof document) { + if (document.contains) return document.contains; + if (document.body && document.body.contains) + return document.body.contains; + } + return r; + }; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = void 0); + var r = m(n(1)), + o = m(n(54)), + i = n(21), + a = n(31), + s = m(n(35)), + c = m(n(414)), + u = m(n(85)), + l = m(n(415)), + f = m(n(106)), + d = m(n(416)), + p = m(n(73)), + h = m(n(70)), + g = m(n(107)); + function m(e) { + return e && e.__esModule ? e : { default: e }; } - var Ip = function(e) { - (e.x0 = Math.round(e.x0)), - (e.y0 = Math.round(e.y0)), - (e.x1 = Math.round(e.x1)), - (e.y1 = Math.round(e.y1)); - }, - Fp = function(e, t, n, r, o) { - for ( - var i, - a = e.children, - s = -1, - c = a.length, - u = e.value && (r - t) / e.value; - ++s < c; - - ) - ((i = a[s]).y0 = n), - (i.y1 = o), - (i.x0 = t), - (i.x1 = t += i.value * u); - }, - qp = function() { - var e = 1, - t = 1, - n = 0, - r = !1; - function o(o) { - var i = o.height + 1; - return ( - (o.x0 = o.y0 = n), - (o.x1 = e), - (o.y1 = t / i), - o.eachBefore( - (function(e, t) { - return function(r) { - r.children && - Fp( - r, - r.x0, - (e * (r.depth + 1)) / t, - r.x1, - (e * (r.depth + 2)) / t - ); - var o = r.x0, - i = r.y0, - a = r.x1 - n, - s = r.y1 - n; - a < o && (o = a = (o + a) / 2), - s < i && (i = s = (i + s) / 2), - (r.x0 = o), - (r.y0 = i), - (r.x1 = a), - (r.y1 = s); - }; - })(t, i) - ), - r && o.eachBefore(Ip), - o - ); - } + var b = { + startDate: o.default.momentObj, + endDate: o.default.momentObj, + onDatesChange: r.default.func.isRequired, + focusedInput: c.default, + onFocusChange: r.default.func.isRequired, + onClose: r.default.func, + startDateId: r.default.string.isRequired, + startDatePlaceholderText: r.default.string, + startDateOffset: r.default.func, + endDateOffset: r.default.func, + endDateId: r.default.string.isRequired, + endDatePlaceholderText: r.default.string, + disabled: f.default, + required: r.default.bool, + readOnly: r.default.bool, + screenReaderInputMessage: r.default.string, + showClearDates: r.default.bool, + showDefaultInputIcon: r.default.bool, + inputIconPosition: u.default, + customInputIcon: r.default.node, + customArrowIcon: r.default.node, + customCloseIcon: r.default.node, + noBorder: r.default.bool, + block: r.default.bool, + small: r.default.bool, + regular: r.default.bool, + keepFocusOnInput: r.default.bool, + renderMonthText: (0, i.mutuallyExclusiveProps)( + r.default.func, + 'renderMonthText', + 'renderMonthElement' + ), + renderMonthElement: (0, i.mutuallyExclusiveProps)( + r.default.func, + 'renderMonthText', + 'renderMonthElement' + ), + orientation: l.default, + anchorDirection: d.default, + openDirection: p.default, + horizontalMargin: r.default.number, + withPortal: r.default.bool, + withFullScreenPortal: r.default.bool, + appendToBody: r.default.bool, + disableScroll: r.default.bool, + daySize: i.nonNegativeInteger, + isRTL: r.default.bool, + firstDayOfWeek: h.default, + initialVisibleMonth: r.default.func, + numberOfMonths: r.default.number, + keepOpenOnDateSelect: r.default.bool, + reopenPickerOnClearDates: r.default.bool, + renderCalendarInfo: r.default.func, + calendarInfoPosition: g.default, + hideKeyboardShortcutsPanel: r.default.bool, + verticalHeight: i.nonNegativeInteger, + transitionDuration: i.nonNegativeInteger, + verticalSpacing: i.nonNegativeInteger, + horizontalMonthPadding: i.nonNegativeInteger, + navPrev: r.default.node, + navNext: r.default.node, + onPrevMonthClick: r.default.func, + onNextMonthClick: r.default.func, + renderCalendarDay: r.default.func, + renderDayContents: r.default.func, + minimumNights: r.default.number, + enableOutsideDays: r.default.bool, + isDayBlocked: r.default.func, + isOutsideRange: r.default.func, + isDayHighlighted: r.default.func, + displayFormat: r.default.oneOfType([r.default.string, r.default.func]), + monthFormat: r.default.string, + weekDayFormat: r.default.string, + phrases: r.default.shape((0, s.default)(a.DateRangePickerPhrases)), + dayAriaLabelFormat: r.default.string + }; + t.default = b; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = void 0); + var r, + o = (r = n(1)) && r.__esModule ? r : { default: r }, + i = n(15); + var a = o.default.oneOf([i.START_DATE, i.END_DATE]); + t.default = a; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = void 0); + var r, + o = (r = n(1)) && r.__esModule ? r : { default: r }, + i = n(15); + var a = o.default.oneOf([ + i.HORIZONTAL_ORIENTATION, + i.VERTICAL_ORIENTATION + ]); + t.default = a; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = void 0); + var r, + o = (r = n(1)) && r.__esModule ? r : { default: r }, + i = n(15); + var a = o.default.oneOf([i.ANCHOR_LEFT, i.ANCHOR_RIGHT]); + t.default = a; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = function(e, t, n, o) { + var i = 'undefined' != typeof window ? window.innerWidth : 0, + a = e === r.ANCHOR_LEFT ? i - n : n, + s = o || 0; + return (function(e, t, n) { + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n); + return e; + })({}, e, Math.min(t + a - s, 0)); + }); + var r = n(15); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = function(e, t, n) { + var o = n.getBoundingClientRect(), + i = o.left, + a = o.top; + e === r.OPEN_UP && (a = -(window.innerHeight - o.bottom)); + t === r.ANCHOR_RIGHT && (i = -(window.innerWidth - o.right)); + return { + transform: 'translate3d(' + .concat(Math.round(i), 'px, ') + .concat(Math.round(a), 'px, 0)') + }; + }); + var r = n(15); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.getScrollParent = o), + (t.getScrollAncestorsOverflowY = i), + (t.default = function(e) { + var t = i(e), + n = function(e) { + return t.forEach(function(t, n) { + n.style.setProperty('overflow-y', e ? 'hidden' : t); + }); + }; return ( - (o.round = function(e) { - return arguments.length ? ((r = !!e), o) : r; - }), - (o.size = function(n) { - return arguments.length ? ((e = +n[0]), (t = +n[1]), o) : [e, t]; - }), - (o.padding = function(e) { - return arguments.length ? ((n = +e), o) : n; - }), - o + n(!0), + function() { + return n(!1); + } ); - }, - Bp = { depth: -1 }, - Hp = {}; - function Yp(e) { - return e.id; + }); + var r = function() { + return document.scrollingElement || document.documentElement; + }; + function o(e) { + var t = e.parentElement; + if (null == t) return r(); + var n = window.getComputedStyle(t).overflowY; + return 'visible' !== n && + 'hidden' !== n && + t.scrollHeight > t.clientHeight + ? t + : o(t); } - function Wp(e) { - return e.parentId; + function i(e) { + var t = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : new Map(), + n = r(), + a = o(e); + return t.set(a, a.style.overflowY), a === n ? t : i(a, t); } - var Vp = function() { - var e = Yp, - t = Wp; - function n(n) { - var r, - o, - i, - a, - s, - c, - u, - l = n.length, - f = new Array(l), - d = {}; - for (o = 0; o < l; ++o) - (r = n[o]), - (s = f[o] = new pp(r)), - null != (c = e(r, o, n)) && - (c += '') && - (d[(u = '$' + (s.id = c))] = u in d ? Hp : s); - for (o = 0; o < l; ++o) - if (((s = f[o]), null != (c = t(n[o], o, n)) && (c += ''))) { - if (!(a = d['$' + c])) throw new Error('missing: ' + c); - if (a === Hp) throw new Error('ambiguous: ' + c); - a.children ? a.children.push(s) : (a.children = [s]), - (s.parent = a); - } else { - if (i) throw new Error('multiple roots'); - i = s; - } - if (!i) throw new Error('no root'); - if ( - ((i.parent = Bp), - i - .eachBefore(function(e) { - (e.depth = e.parent.depth + 1), --l; - }) - .eachBefore(dp), - (i.parent = null), - l > 0) - ) - throw new Error('cycle'); - return i; - } - return ( - (n.id = function(t) { - return arguments.length ? ((e = Cp(t)), n) : e; - }), - (n.parentId = function(e) { - return arguments.length ? ((t = Cp(e)), n) : t; - }), - n - ); - }; - function Up(e, t) { - return e.parent === t.parent ? 1 : 2; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = void 0); + var r = p(n(45)), + o = p(n(0)), + i = (p(n(1)), p(n(4))), + a = (p(n(54)), n(21), p(n(73)), n(31)), + s = (p(n(35)), p(n(421))), + c = (p(n(85)), p(n(106)), p(n(82))), + u = p(n(175)), + l = p(n(86)), + f = p(n(108)), + d = n(15); + function p(e) { + return e && e.__esModule ? e : { default: e }; } - function Xp(e) { - var t = e.children; - return t ? t[0] : e.t; + function h(e) { + return (h = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function(e) { + return typeof e; + } + : function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e; + })(e); } - function Gp(e) { - var t = e.children; - return t ? t[t.length - 1] : e.t; + function g(e) { + return (g = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(e) { + return e.__proto__ || Object.getPrototypeOf(e); + })(e); } - function Kp(e, t, n) { - var r = n / (t.i - e.i); - (t.c -= r), (t.s += n), (e.c += r), (t.z += n), (t.m += n); + function m(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } } - function $p(e, t, n) { - return e.a.parent === t.parent ? e.a : n; + function b(e, t, n) { + return t && m(e.prototype, t), n && m(e, n), e; } - function Qp(e, t) { - (this._ = e), - (this.parent = null), - (this.children = null), - (this.A = null), - (this.a = this), - (this.z = 0), - (this.m = 0), - (this.c = 0), - (this.s = 0), - (this.t = null), - (this.i = t); + function y(e, t) { + return (y = + Object.setPrototypeOf || + function(e, t) { + return (e.__proto__ = t), e; + })(e, t); } - Qp.prototype = Object.create(pp.prototype); - var Jp = function() { - var e = Up, - t = 1, - n = 1, - r = null; - function o(o) { - var c = (function(e) { - for ( - var t, n, r, o, i, a = new Qp(e, 0), s = [a]; - (t = s.pop()); - - ) - if ((r = t._.children)) - for ( - t.children = new Array((i = r.length)), o = i - 1; - o >= 0; - --o - ) - s.push((n = t.children[o] = new Qp(r[o], o))), - (n.parent = t); - return ((a.parent = new Qp(null, 0)).children = [a]), a; - })(o); - if ((c.eachAfter(i), (c.parent.m = -c.z), c.eachBefore(a), r)) - o.eachBefore(s); - else { - var u = o, - l = o, - f = o; - o.eachBefore(function(e) { - e.x < u.x && (u = e), - e.x > l.x && (l = e), - e.depth > f.depth && (f = e); - }); - var d = u === l ? 1 : e(u, l) / 2, - p = d - u.x, - h = t / (l.x + d + p), - g = n / (f.depth || 1); - o.eachBefore(function(e) { - (e.x = (e.x + p) * h), (e.y = e.depth * g); - }); - } - return o; - } - function i(t) { - var n = t.children, - r = t.parent.children, - o = t.i ? r[t.i - 1] : null; - if (n) { - !(function(e) { - for ( - var t, n = 0, r = 0, o = e.children, i = o.length; - --i >= 0; - - ) - ((t = o[i]).z += n), (t.m += n), (n += t.s + (r += t.c)); - })(t); - var i = (n[0].z + n[n.length - 1].z) / 2; - o ? ((t.z = o.z + e(t._, o._)), (t.m = t.z - i)) : (t.z = i); - } else o && (t.z = o.z + e(t._, o._)); - t.parent.A = (function(t, n, r) { - if (n) { - for ( - var o, - i = t, - a = t, - s = n, - c = i.parent.children[0], - u = i.m, - l = a.m, - f = s.m, - d = c.m; - (s = Gp(s)), (i = Xp(i)), s && i; - - ) - (c = Xp(c)), - ((a = Gp(a)).a = t), - (o = s.z + f - i.z - u + e(s._, i._)) > 0 && - (Kp($p(s, t, r), t, o), (u += o), (l += o)), - (f += s.m), - (u += i.m), - (d += c.m), - (l += a.m); - s && !Gp(a) && ((a.t = s), (a.m += f - l)), - i && !Xp(c) && ((c.t = i), (c.m += u - d), (r = t)); - } - return r; - })(t, o, t.parent.A || r[0]); - } - function a(e) { - (e._.x = e.z + e.parent.m), (e.m += e.parent.m); - } - function s(e) { - (e.x *= t), (e.y = e.depth * n); - } - return ( - (o.separation = function(t) { - return arguments.length ? ((e = t), o) : e; - }), - (o.size = function(e) { - return arguments.length - ? ((r = !1), (t = +e[0]), (n = +e[1]), o) - : r - ? null - : [t, n]; - }), - (o.nodeSize = function(e) { - return arguments.length - ? ((r = !0), (t = +e[0]), (n = +e[1]), o) - : r - ? [t, n] - : null; - }), - o + function v(e) { + if (void 0 === e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" ); - }, - Zp = function(e, t, n, r, o) { - for ( - var i, - a = e.children, - s = -1, - c = a.length, - u = e.value && (o - n) / e.value; - ++s < c; - - ) - ((i = a[s]).x0 = t), - (i.x1 = r), - (i.y0 = n), - (i.y1 = n += i.value * u); - }, - eh = (1 + Math.sqrt(5)) / 2; - function th(e, t, n, r, o, i) { - for ( - var a, - s, - c, - u, - l, - f, - d, - p, - h, - g, - m, - b = [], - y = t.children, - v = 0, - _ = 0, - x = y.length, - w = t.value; - v < x; - - ) { - (c = o - n), (u = i - r); - do { - l = y[_++].value; - } while (!l && _ < x); - for ( - f = d = l, - m = l * l * (g = Math.max(u / c, c / u) / (w * e)), - h = Math.max(d / m, m / f); - _ < x; - ++_ - ) { - if ( - ((l += s = y[_].value), - s < f && (f = s), - s > d && (d = s), - (m = l * l * g), - (p = Math.max(d / m, m / f)) > h) - ) { - l -= s; - break; - } - h = p; - } - b.push((a = { value: l, dice: c < u, children: y.slice(v, _) })), - a.dice - ? Fp(a, n, r, o, w ? (r += (u * l) / w) : i) - : Zp(a, n, r, w ? (n += (c * l) / w) : o, i), - (w -= l), - (v = _); - } - return b; + return e; } - var nh = (function e(t) { - function n(e, n, r, o, i) { - th(t, e, n, r, o, i); - } - return ( - (n.ratio = function(t) { - return e((t = +t) > 1 ? t : 1); - }), - n - ); - })(eh), - rh = function() { - var e = nh, - t = !1, - n = 1, - r = 1, - o = [0], - i = Lp, - a = Lp, - s = Lp, - c = Lp, - u = Lp; - function l(e) { + var _ = { + children: null, + startDate: null, + startDateId: d.START_DATE, + startDatePlaceholderText: 'Start Date', + isStartDateFocused: !1, + endDate: null, + endDateId: d.END_DATE, + endDatePlaceholderText: 'End Date', + isEndDateFocused: !1, + screenReaderMessage: '', + showClearDates: !1, + showCaret: !1, + showDefaultInputIcon: !1, + inputIconPosition: d.ICON_BEFORE_POSITION, + disabled: !1, + required: !1, + readOnly: !1, + openDirection: d.OPEN_DOWN, + noBorder: !1, + block: !1, + small: !1, + regular: !1, + verticalSpacing: void 0, + keepOpenOnDateSelect: !1, + reopenPickerOnClearDates: !1, + withFullScreenPortal: !1, + minimumNights: 1, + isOutsideRange: function(e) { + return !(0, l.default)(e, (0, i.default)()); + }, + displayFormat: function() { + return i.default.localeData().longDateFormat('L'); + }, + onFocusChange: function() {}, + onClose: function() {}, + onDatesChange: function() {}, + onKeyDownArrowDown: function() {}, + onKeyDownQuestionMark: function() {}, + customInputIcon: null, + customArrowIcon: null, + customCloseIcon: null, + isFocused: !1, + phrases: a.DateRangePickerInputPhrases, + isRTL: !1 + }, + w = (function(e) { + function t(e) { + var n; return ( - (e.x0 = e.y0 = 0), - (e.x1 = n), - (e.y1 = r), - e.eachBefore(f), - (o = [0]), - t && e.eachBefore(Ip), - e + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, t), + ((n = (function(e, t) { + return !t || ('object' !== h(t) && 'function' != typeof t) + ? v(e) + : t; + })(this, g(t).call(this, e))).onClearFocus = n.onClearFocus.bind( + v(v(n)) + )), + (n.onStartDateChange = n.onStartDateChange.bind(v(v(n)))), + (n.onStartDateFocus = n.onStartDateFocus.bind(v(v(n)))), + (n.onEndDateChange = n.onEndDateChange.bind(v(v(n)))), + (n.onEndDateFocus = n.onEndDateFocus.bind(v(v(n)))), + (n.clearDates = n.clearDates.bind(v(v(n)))), + n ); } - function f(t) { - var n = o[t.depth], - r = t.x0 + n, - l = t.y0 + n, - f = t.x1 - n, - d = t.y1 - n; - f < r && (r = f = (r + f) / 2), - d < l && (l = d = (l + d) / 2), - (t.x0 = r), - (t.y0 = l), - (t.x1 = f), - (t.y1 = d), - t.children && - ((n = o[t.depth + 1] = i(t) / 2), - (r += u(t) - n), - (l += a(t) - n), - (f -= s(t) - n) < r && (r = f = (r + f) / 2), - (d -= c(t) - n) < l && (l = d = (l + d) / 2), - e(t, r, l, f, d)); - } return ( - (l.round = function(e) { - return arguments.length ? ((t = !!e), l) : t; - }), - (l.size = function(e) { - return arguments.length ? ((n = +e[0]), (r = +e[1]), l) : [n, r]; - }), - (l.tile = function(t) { - return arguments.length ? ((e = Cp(t)), l) : e; - }), - (l.padding = function(e) { - return arguments.length - ? l.paddingInner(e).paddingOuter(e) - : l.paddingInner(); - }), - (l.paddingInner = function(e) { - return arguments.length - ? ((i = 'function' == typeof e ? e : Pp(+e)), l) - : i; - }), - (l.paddingOuter = function(e) { - return arguments.length - ? l - .paddingTop(e) - .paddingRight(e) - .paddingBottom(e) - .paddingLeft(e) - : l.paddingTop(); - }), - (l.paddingTop = function(e) { - return arguments.length - ? ((a = 'function' == typeof e ? e : Pp(+e)), l) - : a; - }), - (l.paddingRight = function(e) { - return arguments.length - ? ((s = 'function' == typeof e ? e : Pp(+e)), l) - : s; - }), - (l.paddingBottom = function(e) { - return arguments.length - ? ((c = 'function' == typeof e ? e : Pp(+e)), l) - : c; - }), - (l.paddingLeft = function(e) { - return arguments.length - ? ((u = 'function' == typeof e ? e : Pp(+e)), l) - : u; - }), - l + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { value: e, writable: !0, configurable: !0 } + })), + t && y(e, t); + })(t, e), + b(t, [ + { + key: !o.default.PureComponent && 'shouldComponentUpdate', + value: function(e, t) { + return (0, r.default)(this, e, t); + } + } + ]), + b(t, [ + { + key: 'onClearFocus', + value: function() { + var e = this.props, + t = e.onFocusChange, + n = e.onClose, + r = e.startDate, + o = e.endDate; + t(null), n({ startDate: r, endDate: o }); + } + }, + { + key: 'onEndDateChange', + value: function(e) { + var t = this.props, + n = t.startDate, + r = t.isOutsideRange, + o = t.minimumNights, + i = t.keepOpenOnDateSelect, + a = t.onDatesChange, + s = (0, c.default)(e, this.getDisplayFormat()); + !s || + r(s) || + (n && (0, f.default)(s, n.clone().add(o, 'days'))) + ? a({ startDate: n, endDate: null }) + : (a({ startDate: n, endDate: s }), + i || this.onClearFocus()); + } + }, + { + key: 'onEndDateFocus', + value: function() { + var e = this.props, + t = e.startDate, + n = e.onFocusChange, + r = e.withFullScreenPortal, + o = e.disabled; + t || !r || (o && o !== d.END_DATE) + ? (o && o !== d.START_DATE) || n(d.END_DATE) + : n(d.START_DATE); + } + }, + { + key: 'onStartDateChange', + value: function(e) { + var t = this.props.endDate, + n = this.props, + r = n.isOutsideRange, + o = n.minimumNights, + i = n.onDatesChange, + a = n.onFocusChange, + s = n.disabled, + u = (0, c.default)(e, this.getDisplayFormat()), + l = u && (0, f.default)(t, u.clone().add(o, 'days')); + !u || r(u) || (s === d.END_DATE && l) + ? i({ startDate: null, endDate: t }) + : (l && (t = null), + i({ startDate: u, endDate: t }), + a(d.END_DATE)); + } + }, + { + key: 'onStartDateFocus', + value: function() { + var e = this.props, + t = e.disabled, + n = e.onFocusChange; + (t && t !== d.END_DATE) || n(d.START_DATE); + } + }, + { + key: 'getDisplayFormat', + value: function() { + var e = this.props.displayFormat; + return 'string' == typeof e ? e : e(); + } + }, + { + key: 'getDateString', + value: function(e) { + var t = this.getDisplayFormat(); + return e && t ? e && e.format(t) : (0, u.default)(e); + } + }, + { + key: 'clearDates', + value: function() { + var e = this.props, + t = e.onDatesChange, + n = e.reopenPickerOnClearDates, + r = e.onFocusChange; + t({ startDate: null, endDate: null }), n && r(d.START_DATE); + } + }, + { + key: 'render', + value: function() { + var e = this.props, + t = e.children, + n = e.startDate, + r = e.startDateId, + i = e.startDatePlaceholderText, + a = e.isStartDateFocused, + c = e.endDate, + u = e.endDateId, + l = e.endDatePlaceholderText, + f = e.isEndDateFocused, + d = e.screenReaderMessage, + p = e.showClearDates, + h = e.showCaret, + g = e.showDefaultInputIcon, + m = e.inputIconPosition, + b = e.customInputIcon, + y = e.customArrowIcon, + v = e.customCloseIcon, + _ = e.disabled, + w = e.required, + x = e.readOnly, + M = e.openDirection, + k = e.isFocused, + S = e.phrases, + O = e.onKeyDownArrowDown, + E = e.onKeyDownQuestionMark, + A = e.isRTL, + T = e.noBorder, + C = e.block, + L = e.small, + P = e.regular, + D = e.verticalSpacing, + j = this.getDateString(n), + z = this.getDateString(c); + return o.default.createElement( + s.default, + { + startDate: j, + startDateId: r, + startDatePlaceholderText: i, + isStartDateFocused: a, + endDate: z, + endDateId: u, + endDatePlaceholderText: l, + isEndDateFocused: f, + isFocused: k, + disabled: _, + required: w, + readOnly: x, + openDirection: M, + showCaret: h, + showDefaultInputIcon: g, + inputIconPosition: m, + customInputIcon: b, + customArrowIcon: y, + customCloseIcon: v, + phrases: S, + onStartDateChange: this.onStartDateChange, + onStartDateFocus: this.onStartDateFocus, + onStartDateShiftTab: this.onClearFocus, + onEndDateChange: this.onEndDateChange, + onEndDateFocus: this.onEndDateFocus, + showClearDates: p, + onClearDates: this.clearDates, + screenReaderMessage: d, + onKeyDownArrowDown: O, + onKeyDownQuestionMark: E, + isRTL: A, + noBorder: T, + block: C, + small: L, + regular: P, + verticalSpacing: D + }, + t + ); + } + } + ]), + t ); - }, - oh = function(e, t, n, r, o) { - var i, - a, - s = e.children, - c = s.length, - u = new Array(c + 1); - for (u[0] = a = i = 0; i < c; ++i) u[i + 1] = a += s[i].value; - !(function e(t, n, r, o, i, a, c) { - if (t >= n - 1) { - var l = s[t]; - return (l.x0 = o), (l.y0 = i), (l.x1 = a), void (l.y1 = c); - } - var f = u[t], - d = r / 2 + f, - p = t + 1, - h = n - 1; - for (; p < h; ) { - var g = (p + h) >>> 1; - u[g] < d ? (p = g + 1) : (h = g); - } - d - u[p - 1] < u[p] - d && t + 1 < p && --p; - var m = u[p] - f, - b = r - m; - if (a - o > c - i) { - var y = (o * b + a * m) / r; - e(t, p, m, o, i, y, c), e(p, n, b, y, i, a, c); - } else { - var v = (i * b + c * m) / r; - e(t, p, m, o, i, a, v), e(p, n, b, o, v, a, c); + })(o.default.PureComponent || o.default.Component); + (t.default = w), (w.propTypes = {}), (w.defaultProps = _); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = void 0); + var r = p(n(0)), + o = (p(n(1)), n(21), n(46)), + i = n(31), + a = (p(n(35)), p(n(60))), + s = (p(n(73)), p(n(422))), + c = (p(n(85)), p(n(106)), p(n(423))), + u = p(n(424)), + l = p(n(109)), + f = p(n(425)), + d = n(15); + function p(e) { + return e && e.__esModule ? e : { default: e }; + } + function h() { + return (h = + Object.assign || + function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } - })(0, c, e.value, t, n, r, o); - }, - ih = function(e, t, n, r, o) { - (1 & e.depth ? Zp : Fp)(e, t, n, r, o); - }, - ah = (function e(t) { - function n(e, n, r, o, i) { - if ((a = e._squarify) && a.ratio === t) - for ( - var a, s, c, u, l, f = -1, d = a.length, p = e.value; - ++f < d; - - ) { - for ( - c = (s = a[f]).children, u = s.value = 0, l = c.length; - u < l; - ++u - ) - s.value += c[u].value; - s.dice - ? Fp(s, n, r, o, (r += ((i - r) * s.value) / p)) - : Zp(s, n, r, (n += ((o - n) * s.value) / p), i), - (p -= s.value); - } - else (e._squarify = a = th(t, e, n, r, o, i)), (a.ratio = t); - } - return ( - (n.ratio = function(t) { - return e((t = +t) > 1 ? t : 1); + return e; + }).apply(this, arguments); + } + var g = { + children: null, + startDateId: d.START_DATE, + endDateId: d.END_DATE, + startDatePlaceholderText: 'Start Date', + endDatePlaceholderText: 'End Date', + screenReaderMessage: '', + onStartDateFocus: function() {}, + onEndDateFocus: function() {}, + onStartDateChange: function() {}, + onEndDateChange: function() {}, + onStartDateShiftTab: function() {}, + onEndDateTab: function() {}, + onClearDates: function() {}, + onKeyDownArrowDown: function() {}, + onKeyDownQuestionMark: function() {}, + startDate: '', + endDate: '', + isStartDateFocused: !1, + isEndDateFocused: !1, + showClearDates: !1, + disabled: !1, + required: !1, + readOnly: !1, + openDirection: d.OPEN_DOWN, + showCaret: !1, + showDefaultInputIcon: !1, + inputIconPosition: d.ICON_BEFORE_POSITION, + customInputIcon: null, + customArrowIcon: null, + customCloseIcon: null, + noBorder: !1, + block: !1, + small: !1, + regular: !1, + verticalSpacing: void 0, + isFocused: !1, + phrases: i.DateRangePickerInputPhrases, + isRTL: !1 + }; + function m(e) { + var t = e.children, + n = e.startDate, + i = e.startDateId, + a = e.startDatePlaceholderText, + p = e.screenReaderMessage, + g = e.isStartDateFocused, + m = e.onStartDateChange, + b = e.onStartDateFocus, + y = e.onStartDateShiftTab, + v = e.endDate, + _ = e.endDateId, + w = e.endDatePlaceholderText, + x = e.isEndDateFocused, + M = e.onEndDateChange, + k = e.onEndDateFocus, + S = e.onEndDateTab, + O = e.onKeyDownArrowDown, + E = e.onKeyDownQuestionMark, + A = e.onClearDates, + T = e.showClearDates, + C = e.disabled, + L = e.required, + P = e.readOnly, + D = e.showCaret, + j = e.openDirection, + z = e.showDefaultInputIcon, + N = e.inputIconPosition, + R = e.customInputIcon, + I = e.customArrowIcon, + F = e.customCloseIcon, + q = e.isFocused, + B = e.phrases, + H = e.isRTL, + Y = e.noBorder, + W = e.block, + V = e.verticalSpacing, + U = e.small, + X = e.regular, + G = e.styles, + K = + R || + r.default.createElement( + f.default, + (0, o.css)(G.DateRangePickerInput_calendarIcon_svg) + ), + $ = + I || + r.default.createElement( + c.default, + (0, o.css)(G.DateRangePickerInput_arrow_svg) + ); + H && + ($ = r.default.createElement( + u.default, + (0, o.css)(G.DateRangePickerInput_arrow_svg) + )), + U && ($ = '-'); + var Q = + F || + r.default.createElement( + l.default, + (0, o.css)( + G.DateRangePickerInput_clearDates_svg, + U && G.DateRangePickerInput_clearDates_svg__small + ) + ), + J = p || B.keyboardNavigationInstructions, + Z = + (z || null !== R) && + r.default.createElement( + 'button', + h({}, (0, o.css)(G.DateRangePickerInput_calendarIcon), { + type: 'button', + disabled: C, + 'aria-label': B.focusStartDate, + onClick: O + }), + K + ), + ee = C === d.START_DATE || !0 === C, + te = C === d.END_DATE || !0 === C; + return r.default.createElement( + 'div', + (0, o.css)( + G.DateRangePickerInput, + C && G.DateRangePickerInput__disabled, + H && G.DateRangePickerInput__rtl, + !Y && G.DateRangePickerInput__withBorder, + W && G.DateRangePickerInput__block, + T && G.DateRangePickerInput__showClearDates + ), + N === d.ICON_BEFORE_POSITION && Z, + r.default.createElement(s.default, { + id: i, + placeholder: a, + displayValue: n, + screenReaderMessage: J, + focused: g, + isFocused: q, + disabled: ee, + required: L, + readOnly: P, + showCaret: D, + openDirection: j, + onChange: m, + onFocus: b, + onKeyDownShiftTab: y, + onKeyDownArrowDown: O, + onKeyDownQuestionMark: E, + verticalSpacing: V, + small: U, + regular: X + }), + r.default.createElement( + 'div', + h({}, (0, o.css)(G.DateRangePickerInput_arrow), { + 'aria-hidden': 'true', + role: 'presentation' }), - n - ); - })(eh), - sh = function(e) { - var t = e.length; - return function(n) { - return e[Math.max(0, Math.min(t - 1, Math.floor(n * t)))]; - }; - }, - ch = function(e, t) { - var n = ln(+e, +t); - return function(e) { - var t = n(e); - return t - 360 * Math.floor(t / 360); - }; - }, - uh = function(e, t) { - return ( - (e = +e), - (t = +t), - function(n) { - return Math.round(e * (1 - n) + t * n); + $ + ), + g && t, + r.default.createElement(s.default, { + id: _, + placeholder: w, + displayValue: v, + screenReaderMessage: J, + focused: x, + isFocused: q, + disabled: te, + required: L, + readOnly: P, + showCaret: D, + openDirection: j, + onChange: M, + onFocus: k, + onKeyDownArrowDown: O, + onKeyDownQuestionMark: E, + onKeyDownTab: S, + verticalSpacing: V, + small: U, + regular: X + }), + x && t, + T && + r.default.createElement( + 'button', + h( + { type: 'button', 'aria-label': B.clearDates }, + (0, o.css)( + G.DateRangePickerInput_clearDates, + U && G.DateRangePickerInput_clearDates__small, + !F && G.DateRangePickerInput_clearDates_default, + !(n || v) && G.DateRangePickerInput_clearDates__hide + ), + { onClick: A, disabled: C } + ), + Q + ), + N === d.ICON_AFTER_POSITION && Z + ); + } + (m.propTypes = {}), (m.defaultProps = g); + var b = (0, o.withStyles)( + function(e) { + var t = e.reactDates, + n = t.border, + r = t.color, + o = t.sizing; + return { + DateRangePickerInput: { + backgroundColor: r.background, + display: 'inline-block' + }, + DateRangePickerInput__disabled: { background: r.disabled }, + DateRangePickerInput__withBorder: { + borderColor: r.border, + borderWidth: n.pickerInput.borderWidth, + borderStyle: n.pickerInput.borderStyle, + borderRadius: n.pickerInput.borderRadius + }, + DateRangePickerInput__rtl: { direction: (0, a.default)('rtl') }, + DateRangePickerInput__block: { display: 'block' }, + DateRangePickerInput__showClearDates: { paddingRight: 30 }, + DateRangePickerInput_arrow: { + display: 'inline-block', + verticalAlign: 'middle', + color: r.text + }, + DateRangePickerInput_arrow_svg: { + verticalAlign: 'middle', + fill: r.text, + height: o.arrowWidth, + width: o.arrowWidth + }, + DateRangePickerInput_clearDates: { + background: 'none', + border: 0, + color: 'inherit', + font: 'inherit', + lineHeight: 'normal', + overflow: 'visible', + cursor: 'pointer', + padding: 10, + margin: '0 10px 0 5px', + position: 'absolute', + right: 0, + top: '50%', + transform: 'translateY(-50%)' + }, + DateRangePickerInput_clearDates__small: { padding: 6 }, + DateRangePickerInput_clearDates_default: { + ':focus': { background: r.core.border, borderRadius: '50%' }, + ':hover': { background: r.core.border, borderRadius: '50%' } + }, + DateRangePickerInput_clearDates__hide: { visibility: 'hidden' }, + DateRangePickerInput_clearDates_svg: { + fill: r.core.grayLight, + height: 12, + width: 15, + verticalAlign: 'middle' + }, + DateRangePickerInput_clearDates_svg__small: { height: 9 }, + DateRangePickerInput_calendarIcon: { + background: 'none', + border: 0, + color: 'inherit', + font: 'inherit', + lineHeight: 'normal', + overflow: 'visible', + cursor: 'pointer', + display: 'inline-block', + verticalAlign: 'middle', + padding: 10, + margin: '0 5px 0 10px' + }, + DateRangePickerInput_calendarIcon_svg: { + fill: r.core.grayLight, + height: 15, + width: 14, + verticalAlign: 'middle' } - ); + }; }, - lh = Math.SQRT2; - function fh(e) { - return ((e = Math.exp(e)) + 1 / e) / 2; + { pureComponent: void 0 !== r.default.PureComponent } + )(m); + t.default = b; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = void 0); + var r = f(n(45)), + o = f(n(0)), + i = (f(n(1)), n(21), n(46)), + a = f(n(166)), + s = f(n(84)), + c = f(n(60)), + u = f(n(174)), + l = (f(n(73)), n(15)); + function f(e) { + return e && e.__esModule ? e : { default: e }; } - var dh = function(e, t) { - var n, - r, - o = e[0], - i = e[1], - a = e[2], - s = t[0], - c = t[1], - u = t[2], - l = s - o, - f = c - i, - d = l * l + f * f; - if (d < 1e-12) - (r = Math.log(u / a) / lh), - (n = function(e) { - return [o + e * l, i + e * f, a * Math.exp(lh * e * r)]; - }); - else { - var p = Math.sqrt(d), - h = (u * u - a * a + 4 * d) / (2 * a * 2 * p), - g = (u * u - a * a - 4 * d) / (2 * u * 2 * p), - m = Math.log(Math.sqrt(h * h + 1) - h), - b = Math.log(Math.sqrt(g * g + 1) - g); - (r = (b - m) / lh), - (n = function(e) { - var t, - n = e * r, - s = fh(m), - c = - (a / (2 * p)) * - (s * - ((t = lh * n + m), ((t = Math.exp(2 * t)) - 1) / (t + 1)) - - (function(e) { - return ((e = Math.exp(e)) - 1 / e) / 2; - })(m)); - return [o + c * l, i + c * f, (a * s) / fh(lh * n + m)]; - }); - } - return (n.duration = 1e3 * r), n; - }; - function ph(e) { - return function(t, n) { - var r = e((t = tn(t)).h, (n = tn(n)).h), - o = dn(t.s, n.s), - i = dn(t.l, n.l), - a = dn(t.opacity, n.opacity); - return function(e) { - return ( - (t.h = r(e)), - (t.s = o(e)), - (t.l = i(e)), - (t.opacity = a(e)), - t + '' - ); - }; - }; + function d(e) { + return (d = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function(e) { + return typeof e; + } + : function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e; + })(e); } - var hh = ph(ln), - gh = ph(dn); - function mh(e, t) { - var n = dn((e = mi(e)).l, (t = mi(t)).l), - r = dn(e.a, t.a), - o = dn(e.b, t.b), - i = dn(e.opacity, t.opacity); - return function(t) { - return ( - (e.l = n(t)), (e.a = r(t)), (e.b = o(t)), (e.opacity = i(t)), e + '' - ); - }; + function p() { + return (p = + Object.assign || + function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); + } + return e; + }).apply(this, arguments); } - function bh(e) { - return function(t, n) { - var r = e((t = ki(t)).h, (n = ki(n)).h), - o = dn(t.c, n.c), - i = dn(t.l, n.l), - a = dn(t.opacity, n.opacity); - return function(e) { - return ( - (t.h = r(e)), - (t.c = o(e)), - (t.l = i(e)), - (t.opacity = a(e)), - t + '' - ); - }; - }; + function h(e) { + return (h = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(e) { + return e.__proto__ || Object.getPrototypeOf(e); + })(e); } - var yh = bh(ln), - vh = bh(dn); - function _h(e) { - return (function t(n) { - function r(t, r) { - var o = e((t = Pi(t)).h, (r = Pi(r)).h), - i = dn(t.s, r.s), - a = dn(t.l, r.l), - s = dn(t.opacity, r.opacity); - return function(e) { - return ( - (t.h = o(e)), - (t.s = i(e)), - (t.l = a(Math.pow(e, n))), - (t.opacity = s(e)), - t + '' - ); - }; - } - return (n = +n), (r.gamma = t), r; - })(1); + function g(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } } - var xh = _h(ln), - wh = _h(dn); - function Mh(e, t) { - for ( - var n = 0, r = t.length - 1, o = t[0], i = new Array(r < 0 ? 0 : r); - n < r; - - ) - i[n] = e(o, (o = t[++n])); - return function(e) { - var t = Math.max(0, Math.min(r - 1, Math.floor((e *= r)))); - return i[t](e - t); - }; + function m(e, t, n) { + return t && g(e.prototype, t), n && g(e, n), e; } - var kh = function(e, t) { - for (var n = new Array(t), r = 0; r < t; ++r) n[r] = e(r / (t - 1)); - return n; - }, - Sh = function(e) { - for (var t, n = -1, r = e.length, o = e[r - 1], i = 0; ++n < r; ) - (t = o), (o = e[n]), (i += t[1] * o[0] - t[0] * o[1]); - return i / 2; - }, - Ah = function(e) { - for ( - var t, n, r = -1, o = e.length, i = 0, a = 0, s = e[o - 1], c = 0; - ++r < o; - - ) - (t = s), - (s = e[r]), - (c += n = t[0] * s[1] - s[0] * t[1]), - (i += (t[0] + s[0]) * n), - (a += (t[1] + s[1]) * n); - return [i / (c *= 3), a / c]; - }; - function Oh(e, t) { - return e[0] - t[0] || e[1] - t[1]; + function b(e, t) { + return (b = + Object.setPrototypeOf || + function(e, t) { + return (e.__proto__ = t), e; + })(e, t); } - function Eh(e) { - for (var t, n, r, o = e.length, i = [0, 1], a = 2, s = 2; s < o; ++s) { - for ( - ; - a > 1 && - ((t = e[i[a - 2]]), - (n = e[i[a - 1]]), - (r = e[s]), - (n[0] - t[0]) * (r[1] - t[1]) - (n[1] - t[1]) * (r[0] - t[0]) <= 0); - - ) - --a; - i[a++] = s; - } - return i.slice(0, a); + function y(e) { + if (void 0 === e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return e; } - var Th = function(e) { - if ((n = e.length) < 3) return null; - var t, - n, - r = new Array(n), - o = new Array(n); - for (t = 0; t < n; ++t) r[t] = [+e[t][0], +e[t][1], t]; - for (r.sort(Oh), t = 0; t < n; ++t) o[t] = [r[t][0], -r[t][1]]; - var i = Eh(r), - a = Eh(o), - s = a[0] === i[0], - c = a[a.length - 1] === i[i.length - 1], - u = []; - for (t = i.length - 1; t >= 0; --t) u.push(e[r[i[t]][2]]); - for (t = +s; t < a.length - c; ++t) u.push(e[r[a[t]][2]]); - return u; - }, - Ch = function(e, t) { - for ( - var n, - r, - o = e.length, - i = e[o - 1], - a = t[0], - s = t[1], - c = i[0], - u = i[1], - l = !1, - f = 0; - f < o; - ++f - ) - (n = (i = e[f])[0]), - (r = i[1]) > s != u > s && - a < ((c - n) * (s - r)) / (u - r) + n && - (l = !l), - (c = n), - (u = r); - return l; - }, - Lh = function(e) { - for ( - var t, - n, - r = -1, - o = e.length, - i = e[o - 1], - a = i[0], - s = i[1], - c = 0; - ++r < o; - - ) - (t = a), - (n = s), - (t -= a = (i = e[r])[0]), - (n -= s = i[1]), - (c += Math.sqrt(t * t + n * n)); - return c; - }, - Ph = function() { - return Math.random(); + var v = 'M0,' + .concat(l.FANG_HEIGHT_PX, ' ') + .concat(l.FANG_WIDTH_PX, ',') + .concat(l.FANG_HEIGHT_PX, ' ') + .concat(l.FANG_WIDTH_PX / 2, ',0z'), + _ = 'M0,' + .concat(l.FANG_HEIGHT_PX, ' ') + .concat(l.FANG_WIDTH_PX / 2, ',0 ') + .concat(l.FANG_WIDTH_PX, ',') + .concat(l.FANG_HEIGHT_PX), + w = 'M0,0 ' + .concat(l.FANG_WIDTH_PX, ',0 ') + .concat(l.FANG_WIDTH_PX / 2, ',') + .concat(l.FANG_HEIGHT_PX, 'z'), + x = 'M0,0 ' + .concat(l.FANG_WIDTH_PX / 2, ',') + .concat(l.FANG_HEIGHT_PX, ' ') + .concat(l.FANG_WIDTH_PX, ',0'), + M = { + placeholder: 'Select Date', + displayValue: '', + screenReaderMessage: '', + focused: !1, + disabled: !1, + required: !1, + readOnly: null, + openDirection: l.OPEN_DOWN, + showCaret: !1, + verticalSpacing: l.DEFAULT_VERTICAL_SPACING, + small: !1, + block: !1, + regular: !1, + onChange: function() {}, + onFocus: function() {}, + onKeyDownShiftTab: function() {}, + onKeyDownTab: function() {}, + onKeyDownArrowDown: function() {}, + onKeyDownQuestionMark: function() {}, + isFocused: !1 }, - Dh = (function e(t) { - function n(e, n) { + k = (function(e) { + function t(e) { + var n; return ( - (e = null == e ? 0 : +e), - (n = null == n ? 1 : +n), - 1 === arguments.length ? ((n = e), (e = 0)) : (n -= e), - function() { - return t() * n + e; - } + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, t), + ((n = (function(e, t) { + return !t || ('object' !== d(t) && 'function' != typeof t) + ? y(e) + : t; + })(this, h(t).call(this, e))).state = { + dateString: '', + isTouchDevice: !1 + }), + (n.onChange = n.onChange.bind(y(y(n)))), + (n.onKeyDown = n.onKeyDown.bind(y(y(n)))), + (n.setInputRef = n.setInputRef.bind(y(y(n)))), + (n.throttledKeyDown = (0, a.default)(n.onFinalKeyDown, 300, { + trailing: !1 + })), + n ); } - return (n.source = e), n; - })(Ph), - zh = (function e(t) { - function n(e, n) { - var r, o; - return ( - (e = null == e ? 0 : +e), - (n = null == n ? 1 : +n), - function() { - var i; - if (null != r) (i = r), (r = null); - else - do { - (r = 2 * t() - 1), (i = 2 * t() - 1), (o = r * r + i * i); - } while (!o || o > 1); - return e + n * i * Math.sqrt((-2 * Math.log(o)) / o); + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { value: e, writable: !0, configurable: !0 } + })), + t && b(e, t); + })(t, e), + m(t, [ + { + key: !o.default.PureComponent && 'shouldComponentUpdate', + value: function(e, t) { + return (0, r.default)(this, e, t); + } } - ); - } - return (n.source = e), n; - })(Ph), - Nh = (function e(t) { - function n() { - var e = zh.source(t).apply(this, arguments); - return function() { - return Math.exp(e()); - }; - } - return (n.source = e), n; - })(Ph), - jh = (function e(t) { - function n(e) { - return function() { - for (var n = 0, r = 0; r < e; ++r) n += t(); - return n; - }; - } - return (n.source = e), n; - })(Ph), - Rh = (function e(t) { - function n(e) { - var n = jh.source(t)(e); - return function() { - return n() / e; - }; - } - return (n.source = e), n; - })(Ph), - Ih = (function e(t) { - function n(e) { - return function() { - return -Math.log(1 - t()) / e; - }; - } - return (n.source = e), n; - })(Ph); - function Fh(e, t) { - switch (arguments.length) { - case 0: - break; - case 1: - this.range(e); - break; - default: - this.range(t).domain(e); - } - return this; + ]), + m(t, [ + { + key: 'componentDidMount', + value: function() { + this.setState({ isTouchDevice: (0, s.default)() }); + } + }, + { + key: 'componentWillReceiveProps', + value: function(e) { + this.state.dateString && + e.displayValue && + this.setState({ dateString: '' }); + } + }, + { + key: 'componentDidUpdate', + value: function(e) { + var t = this.props, + n = t.focused, + r = t.isFocused; + (e.focused === n && e.isFocused === r) || + (n && r && this.inputRef.focus()); + } + }, + { + key: 'onChange', + value: function(e) { + var t = this.props, + n = t.onChange, + r = t.onKeyDownQuestionMark, + o = e.target.value; + '?' === o[o.length - 1] + ? r(e) + : this.setState({ dateString: o }, function() { + return n(o); + }); + } + }, + { + key: 'onKeyDown', + value: function(e) { + e.stopPropagation(), + l.MODIFIER_KEY_NAMES.has(e.key) || this.throttledKeyDown(e); + } + }, + { + key: 'onFinalKeyDown', + value: function(e) { + var t = this.props, + n = t.onKeyDownShiftTab, + r = t.onKeyDownTab, + o = t.onKeyDownArrowDown, + i = t.onKeyDownQuestionMark, + a = e.key; + 'Tab' === a + ? e.shiftKey + ? n(e) + : r(e) + : 'ArrowDown' === a + ? o(e) + : '?' === a && (e.preventDefault(), i(e)); + } + }, + { + key: 'setInputRef', + value: function(e) { + this.inputRef = e; + } + }, + { + key: 'render', + value: function() { + var e = this.state, + t = e.dateString, + n = e.isTouchDevice, + r = this.props, + a = r.id, + s = r.placeholder, + c = r.displayValue, + f = r.screenReaderMessage, + d = r.focused, + h = r.showCaret, + g = r.onFocus, + m = r.disabled, + b = r.required, + y = r.readOnly, + M = r.openDirection, + k = r.verticalSpacing, + S = r.small, + O = r.regular, + E = r.block, + A = r.styles, + T = r.theme.reactDates, + C = t || c || '', + L = 'DateInput__screen-reader-message-'.concat(a), + P = h && d, + D = (0, u.default)(T, S); + return o.default.createElement( + 'div', + (0, i.css)( + A.DateInput, + S && A.DateInput__small, + E && A.DateInput__block, + P && A.DateInput__withFang, + m && A.DateInput__disabled, + P && M === l.OPEN_DOWN && A.DateInput__openDown, + P && M === l.OPEN_UP && A.DateInput__openUp + ), + o.default.createElement( + 'input', + p( + {}, + (0, i.css)( + A.DateInput_input, + S && A.DateInput_input__small, + O && A.DateInput_input__regular, + y && A.DateInput_input__readOnly, + d && A.DateInput_input__focused, + m && A.DateInput_input__disabled + ), + { + 'aria-label': s, + type: 'text', + id: a, + name: a, + ref: this.setInputRef, + value: C, + onChange: this.onChange, + onKeyDown: this.onKeyDown, + onFocus: g, + placeholder: s, + autoComplete: 'off', + disabled: m, + readOnly: 'boolean' == typeof y ? y : n, + required: b, + 'aria-describedby': f && L + } + ) + ), + P && + o.default.createElement( + 'svg', + p( + { role: 'presentation', focusable: 'false' }, + (0, i.css)( + A.DateInput_fang, + M === l.OPEN_DOWN && { + top: D + k - l.FANG_HEIGHT_PX - 1 + }, + M === l.OPEN_UP && { + bottom: D + k - l.FANG_HEIGHT_PX - 1 + } + ) + ), + o.default.createElement( + 'path', + p({}, (0, i.css)(A.DateInput_fangShape), { + d: M === l.OPEN_DOWN ? v : w + }) + ), + o.default.createElement( + 'path', + p({}, (0, i.css)(A.DateInput_fangStroke), { + d: M === l.OPEN_DOWN ? _ : x + }) + ) + ), + f && + o.default.createElement( + 'p', + p({}, (0, i.css)(A.DateInput_screenReaderMessage), { + id: L + }), + f + ) + ); + } + } + ]), + t + ); + })(o.default.PureComponent || o.default.Component); + (k.propTypes = {}), (k.defaultProps = M); + var S = (0, i.withStyles)( + function(e) { + var t = e.reactDates, + n = t.border, + r = t.color, + o = t.sizing, + i = t.spacing, + a = t.font, + s = t.zIndex; + return { + DateInput: { + margin: 0, + padding: i.inputPadding, + background: r.background, + position: 'relative', + display: 'inline-block', + width: o.inputWidth, + verticalAlign: 'middle' + }, + DateInput__small: { width: o.inputWidth_small }, + DateInput__block: { width: '100%' }, + DateInput__disabled: { + background: r.disabled, + color: r.textDisabled + }, + DateInput_input: { + fontWeight: 200, + fontSize: a.input.size, + lineHeight: a.input.lineHeight, + color: r.text, + backgroundColor: r.background, + width: '100%', + padding: '' + .concat(i.displayTextPaddingVertical, 'px ') + .concat(i.displayTextPaddingHorizontal, 'px'), + paddingTop: i.displayTextPaddingTop, + paddingBottom: i.displayTextPaddingBottom, + paddingLeft: (0, c.default)(i.displayTextPaddingLeft), + paddingRight: (0, c.default)(i.displayTextPaddingRight), + border: n.input.border, + borderTop: n.input.borderTop, + borderRight: (0, c.default)(n.input.borderRight), + borderBottom: n.input.borderBottom, + borderLeft: (0, c.default)(n.input.borderLeft), + borderRadius: n.input.borderRadius + }, + DateInput_input__small: { + fontSize: a.input.size_small, + lineHeight: a.input.lineHeight_small, + letterSpacing: a.input.letterSpacing_small, + padding: '' + .concat(i.displayTextPaddingVertical_small, 'px ') + .concat(i.displayTextPaddingHorizontal_small, 'px'), + paddingTop: i.displayTextPaddingTop_small, + paddingBottom: i.displayTextPaddingBottom_small, + paddingLeft: (0, c.default)(i.displayTextPaddingLeft_small), + paddingRight: (0, c.default)(i.displayTextPaddingRight_small) + }, + DateInput_input__regular: { fontWeight: 'auto' }, + DateInput_input__readOnly: { userSelect: 'none' }, + DateInput_input__focused: { + outline: n.input.outlineFocused, + background: r.backgroundFocused, + border: n.input.borderFocused, + borderTop: n.input.borderTopFocused, + borderRight: (0, c.default)(n.input.borderRightFocused), + borderBottom: n.input.borderBottomFocused, + borderLeft: (0, c.default)(n.input.borderLeftFocused) + }, + DateInput_input__disabled: { + background: r.disabled, + fontStyle: a.input.styleDisabled + }, + DateInput_screenReaderMessage: { + border: 0, + clip: 'rect(0, 0, 0, 0)', + height: 1, + margin: -1, + overflow: 'hidden', + padding: 0, + position: 'absolute', + width: 1 + }, + DateInput_fang: { + position: 'absolute', + width: l.FANG_WIDTH_PX, + height: l.FANG_HEIGHT_PX, + left: 22, + zIndex: s + 2 + }, + DateInput_fangShape: { fill: r.background }, + DateInput_fangStroke: { stroke: r.core.border, fill: 'transparent' } + }; + }, + { pureComponent: void 0 !== o.default.PureComponent } + )(k); + t.default = S; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = void 0); + var r, + o = (r = n(0)) && r.__esModule ? r : { default: r }; + var i = function(e) { + return o.default.createElement( + 'svg', + e, + o.default.createElement('path', { + d: + 'M694.4 242.4l249.1 249.1c11 11 11 21 0 32L694.4 772.7c-5 5-10 7-16 7s-11-2-16-7c-11-11-11-21 0-32l210.1-210.1H67.1c-13 0-23-10-23-23s10-23 23-23h805.4L662.4 274.5c-21-21.1 11-53.1 32-32.1z' + }) + ); + }; + i.defaultProps = { focusable: 'false', viewBox: '0 0 1000 1000' }; + var a = i; + t.default = a; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = void 0); + var r, + o = (r = n(0)) && r.__esModule ? r : { default: r }; + var i = function(e) { + return o.default.createElement( + 'svg', + e, + o.default.createElement('path', { + d: + 'M336.2 274.5l-210.1 210h805.4c13 0 23 10 23 23s-10 23-23 23H126.1l210.1 210.1c11 11 11 21 0 32-5 5-10 7-16 7s-11-2-16-7l-249.1-249c-11-11-11-21 0-32l249.1-249.1c21-21.1 53 10.9 32 32z' + }) + ); + }; + i.defaultProps = { focusable: 'false', viewBox: '0 0 1000 1000' }; + var a = i; + t.default = a; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = void 0); + var r, + o = (r = n(0)) && r.__esModule ? r : { default: r }; + var i = function(e) { + return o.default.createElement( + 'svg', + e, + o.default.createElement('path', { + d: + 'M107.2 1392.9h241.1v-241.1H107.2v241.1zm294.7 0h267.9v-241.1H401.9v241.1zm-294.7-294.7h241.1V830.4H107.2v267.8zm294.7 0h267.9V830.4H401.9v267.8zM107.2 776.8h241.1V535.7H107.2v241.1zm616.2 616.1h267.9v-241.1H723.4v241.1zM401.9 776.8h267.9V535.7H401.9v241.1zm642.9 616.1H1286v-241.1h-241.1v241.1zm-321.4-294.7h267.9V830.4H723.4v267.8zM428.7 375V133.9c0-7.3-2.7-13.5-8-18.8-5.3-5.3-11.6-8-18.8-8h-53.6c-7.3 0-13.5 2.7-18.8 8-5.3 5.3-8 11.6-8 18.8V375c0 7.3 2.7 13.5 8 18.8 5.3 5.3 11.6 8 18.8 8h53.6c7.3 0 13.5-2.7 18.8-8 5.3-5.3 8-11.5 8-18.8zm616.1 723.2H1286V830.4h-241.1v267.8zM723.4 776.8h267.9V535.7H723.4v241.1zm321.4 0H1286V535.7h-241.1v241.1zm26.8-401.8V133.9c0-7.3-2.7-13.5-8-18.8-5.3-5.3-11.6-8-18.8-8h-53.6c-7.3 0-13.5 2.7-18.8 8-5.3 5.3-8 11.6-8 18.8V375c0 7.3 2.7 13.5 8 18.8 5.3 5.3 11.6 8 18.8 8h53.6c7.3 0 13.5-2.7 18.8-8 5.4-5.3 8-11.5 8-18.8zm321.5-53.6v1071.4c0 29-10.6 54.1-31.8 75.3-21.2 21.2-46.3 31.8-75.3 31.8H107.2c-29 0-54.1-10.6-75.3-31.8C10.6 1447 0 1421.9 0 1392.9V321.4c0-29 10.6-54.1 31.8-75.3s46.3-31.8 75.3-31.8h107.2v-80.4c0-36.8 13.1-68.4 39.3-94.6S311.4 0 348.3 0h53.6c36.8 0 68.4 13.1 94.6 39.3 26.2 26.2 39.3 57.8 39.3 94.6v80.4h321.5v-80.4c0-36.8 13.1-68.4 39.3-94.6C922.9 13.1 954.4 0 991.3 0h53.6c36.8 0 68.4 13.1 94.6 39.3s39.3 57.8 39.3 94.6v80.4H1286c29 0 54.1 10.6 75.3 31.8 21.2 21.2 31.8 46.3 31.8 75.3z' + }) + ); + }; + i.defaultProps = { focusable: 'false', viewBox: '0 0 1393.1 1500' }; + var a = i; + t.default = a; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = void 0); + var r = w(n(45)), + o = w(n(0)), + i = (w(n(1)), w(n(54)), n(21), w(n(4))), + a = w(n(170)), + s = w(n(84)), + c = n(31), + u = (w(n(35)), w(n(86))), + l = w(n(427)), + f = w(n(81)), + d = w(n(135)), + p = w(n(108)), + h = w(n(428)), + g = w(n(176)), + m = w(n(788)), + b = w(n(132)), + y = w(n(134)), + v = (w(n(106)), w(n(414)), w(n(83)), w(n(70)), w(n(107)), n(15)), + _ = w(n(177)); + function w(e) { + return e && e.__esModule ? e : { default: e }; } - function qh(e, t) { - switch (arguments.length) { - case 0: - break; - case 1: - this.interpolator(e); - break; - default: - this.interpolator(t).domain(e); - } - return this; + function x(e) { + return (x = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function(e) { + return typeof e; + } + : function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e; + })(e); } - var Bh = Array.prototype, - Hh = Bh.map, - Yh = Bh.slice, - Wh = { name: 'implicit' }; - function Vh() { - var e = Zo(), - t = [], - n = [], - r = Wh; - function o(o) { - var i = o + '', - a = e.get(i); - if (!a) { - if (r !== Wh) return r; - e.set(i, (a = t.push(o))); - } - return n[(a - 1) % n.length]; - } + function M(e, t) { return ( - (o.domain = function(n) { - if (!arguments.length) return t.slice(); - (t = []), (e = Zo()); - for (var r, i, a = -1, s = n.length; ++a < s; ) - e.has((i = (r = n[a]) + '')) || e.set(i, t.push(r)); - return o; - }), - (o.range = function(e) { - return arguments.length ? ((n = Yh.call(e)), o) : n.slice(); - }), - (o.unknown = function(e) { - return arguments.length ? ((r = e), o) : r; - }), - (o.copy = function() { - return Vh(t, n).unknown(r); - }), - Fh.apply(o, arguments), - o + (function(e) { + if (Array.isArray(e)) return e; + })(e) || + (function(e, t) { + var n = [], + r = !0, + o = !1, + i = void 0; + try { + for ( + var a, s = e[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !t || n.length !== t); + r = !0 + ); + } catch (e) { + (o = !0), (i = e); + } finally { + try { + r || null == s.return || s.return(); + } finally { + if (o) throw i; + } + } + return n; + })(e, t) || + (function() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' + ); + })() ); } - function Uh() { - var e, - t, - n = Vh().unknown(void 0), - r = n.domain, - o = n.range, - i = [0, 1], - a = !1, - s = 0, - c = 0, - u = 0.5; - function l() { - var n = r().length, - l = i[1] < i[0], - f = i[l - 0], - d = i[1 - l]; - (e = (d - f) / Math.max(1, n - s + 2 * c)), - a && (e = Math.floor(e)), - (f += (d - f - e * (n - s)) * u), - (t = e * (1 - s)), - a && ((f = Math.round(f)), (t = Math.round(t))); - var p = M(n).map(function(t) { - return f + e * t; - }); - return o(l ? p.reverse() : p); + function k(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + 'function' == typeof Object.getOwnPropertySymbols && + (r = r.concat( + Object.getOwnPropertySymbols(n).filter(function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable; + }) + )), + r.forEach(function(t) { + S(e, t, n[t]); + }); } - return ( - delete n.unknown, - (n.domain = function(e) { - return arguments.length ? (r(e), l()) : r(); - }), - (n.range = function(e) { - return arguments.length ? ((i = [+e[0], +e[1]]), l()) : i.slice(); - }), - (n.rangeRound = function(e) { - return (i = [+e[0], +e[1]]), (a = !0), l(); - }), - (n.bandwidth = function() { - return t; - }), - (n.step = function() { - return e; - }), - (n.round = function(e) { - return arguments.length ? ((a = !!e), l()) : a; - }), - (n.padding = function(e) { - return arguments.length ? ((s = Math.min(1, (c = +e))), l()) : s; - }), - (n.paddingInner = function(e) { - return arguments.length ? ((s = Math.min(1, e)), l()) : s; - }), - (n.paddingOuter = function(e) { - return arguments.length ? ((c = +e), l()) : c; - }), - (n.align = function(e) { - return arguments.length - ? ((u = Math.max(0, Math.min(1, e))), l()) - : u; - }), - (n.copy = function() { - return Uh(r(), i) - .round(a) - .paddingInner(s) - .paddingOuter(c) - .align(u); - }), - Fh.apply(l(), arguments) - ); + return e; } - function Xh(e) { - var t = e.copy; + function S(e, t, n) { return ( - (e.padding = e.paddingOuter), - delete e.paddingInner, - delete e.paddingOuter, - (e.copy = function() { - return Xh(t()); - }), + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), e ); } - function Gh() { - return Xh(Uh.apply(null, arguments).paddingInner(1)); + function O(e) { + return (O = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(e) { + return e.__proto__ || Object.getPrototypeOf(e); + })(e); } - var Kh = function(e) { - return +e; - }, - $h = [0, 1]; - function Qh(e) { - return e; + function E(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } } - function Jh(e, t) { - return (t -= e = +e) - ? function(n) { - return (n - e) / t; - } - : ((n = isNaN(t) ? NaN : 0.5), - function() { - return n; - }); - var n; + function A(e, t, n) { + return t && E(e.prototype, t), n && E(e, n), e; } - function Zh(e) { - var t, - n = e[0], - r = e[e.length - 1]; - return ( - n > r && ((t = n), (n = r), (r = t)), - function(e) { - return Math.max(n, Math.min(r, e)); - } - ); + function T(e, t) { + return (T = + Object.setPrototypeOf || + function(e, t) { + return (e.__proto__ = t), e; + })(e, t); } - function eg(e, t, n) { - var r = e[0], - o = e[1], - i = t[0], - a = t[1]; - return ( - o < r - ? ((r = Jh(o, r)), (i = n(a, i))) - : ((r = Jh(r, o)), (i = n(i, a))), - function(e) { - return i(r(e)); + function C(e) { + if (void 0 === e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return e; + } + var L = { + startDate: void 0, + endDate: void 0, + minDate: null, + maxDate: null, + onDatesChange: function() {}, + startDateOffset: void 0, + endDateOffset: void 0, + focusedInput: null, + onFocusChange: function() {}, + onClose: function() {}, + keepOpenOnDateSelect: !1, + minimumNights: 1, + disabled: !1, + isOutsideRange: function() {}, + isDayBlocked: function() {}, + isDayHighlighted: function() {}, + renderMonthText: null, + enableOutsideDays: !1, + numberOfMonths: 1, + orientation: v.HORIZONTAL_ORIENTATION, + withPortal: !1, + hideKeyboardShortcutsPanel: !1, + initialVisibleMonth: null, + daySize: v.DAY_SIZE, + navPrev: null, + navNext: null, + noNavButtons: !1, + onPrevMonthClick: function() {}, + onNextMonthClick: function() {}, + onOutsideClick: function() {}, + renderCalendarDay: void 0, + renderDayContents: null, + renderCalendarInfo: null, + renderMonthElement: null, + calendarInfoPosition: v.INFO_POSITION_BOTTOM, + firstDayOfWeek: null, + verticalHeight: null, + noBorder: !1, + transitionDuration: void 0, + verticalBorderSpacing: void 0, + horizontalMonthPadding: 13, + onBlur: function() {}, + isFocused: !1, + showKeyboardShortcuts: !1, + onTab: function() {}, + onShiftTab: function() {}, + monthFormat: 'MMMM YYYY', + weekDayFormat: 'dd', + phrases: c.DayPickerPhrases, + dayAriaLabelFormat: void 0, + isRTL: !1 + }, + P = function(e, t) { + return t === v.START_DATE + ? e.chooseAvailableStartDate + : t === v.END_DATE + ? e.chooseAvailableEndDate + : e.chooseAvailableDate; + }, + D = (function(e) { + function t(e) { + var n; + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, t), + ((n = (function(e, t) { + return !t || ('object' !== x(t) && 'function' != typeof t) + ? C(e) + : t; + })(this, O(t).call(this, e))).isTouchDevice = (0, s.default)()), + (n.today = (0, i.default)()), + (n.modifiers = { + today: function(e) { + return n.isToday(e); + }, + blocked: function(e) { + return n.isBlocked(e); + }, + 'blocked-calendar': function(t) { + return e.isDayBlocked(t); + }, + 'blocked-out-of-range': function(t) { + return e.isOutsideRange(t); + }, + 'highlighted-calendar': function(t) { + return e.isDayHighlighted(t); + }, + valid: function(e) { + return !n.isBlocked(e); + }, + 'selected-start': function(e) { + return n.isStartDate(e); + }, + 'selected-end': function(e) { + return n.isEndDate(e); + }, + 'blocked-minimum-nights': function(e) { + return n.doesNotMeetMinimumNights(e); + }, + 'selected-span': function(e) { + return n.isInSelectedSpan(e); + }, + 'last-in-range': function(e) { + return n.isLastInRange(e); + }, + hovered: function(e) { + return n.isHovered(e); + }, + 'hovered-span': function(e) { + return n.isInHoveredSpan(e); + }, + 'hovered-offset': function(e) { + return n.isInHoveredSpan(e); + }, + 'after-hovered-start': function(e) { + return n.isDayAfterHoveredStartDate(e); + }, + 'first-day-of-week': function(e) { + return n.isFirstDayOfWeek(e); + }, + 'last-day-of-week': function(e) { + return n.isLastDayOfWeek(e); + } + }); + var r = n.getStateForNewMonth(e), + o = r.currentMonth, + a = r.visibleDays, + c = P(e.phrases, e.focusedInput); + return ( + (n.state = { + hoverDate: null, + currentMonth: o, + phrases: k({}, e.phrases, { chooseAvailableDate: c }), + visibleDays: a, + disablePrev: n.shouldDisableMonthNavigation(e.minDate, o), + disableNext: n.shouldDisableMonthNavigation(e.maxDate, o) + }), + (n.onDayClick = n.onDayClick.bind(C(C(n)))), + (n.onDayMouseEnter = n.onDayMouseEnter.bind(C(C(n)))), + (n.onDayMouseLeave = n.onDayMouseLeave.bind(C(C(n)))), + (n.onPrevMonthClick = n.onPrevMonthClick.bind(C(C(n)))), + (n.onNextMonthClick = n.onNextMonthClick.bind(C(C(n)))), + (n.onMonthChange = n.onMonthChange.bind(C(C(n)))), + (n.onYearChange = n.onYearChange.bind(C(C(n)))), + (n.onMultiplyScrollableMonths = n.onMultiplyScrollableMonths.bind( + C(C(n)) + )), + (n.getFirstFocusableDay = n.getFirstFocusableDay.bind(C(C(n)))), + n + ); } - ); - } - function tg(e, t, n) { - var r = Math.min(e.length, t.length) - 1, - o = new Array(r), - i = new Array(r), - a = -1; - for ( - e[r] < e[0] && ((e = e.slice().reverse()), (t = t.slice().reverse())); - ++a < r; - - ) - (o[a] = Jh(e[a], e[a + 1])), (i[a] = n(t[a], t[a + 1])); - return function(t) { - var n = u(e, t, 1, r) - 1; - return i[n](o[n](t)); - }; - } - function ng(e, t) { - return t - .domain(e.domain()) - .range(e.range()) - .interpolate(e.interpolate()) - .clamp(e.clamp()) - .unknown(e.unknown()); - } - function rg() { - var e, - t, - n, - r, - o, - i, - a = $h, - s = $h, - c = Tn, - u = Qh; - function l() { return ( - (r = Math.min(a.length, s.length) > 2 ? tg : eg), (o = i = null), f + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { value: e, writable: !0, configurable: !0 } + })), + t && T(e, t); + })(t, e), + A(t, [ + { + key: !o.default.PureComponent && 'shouldComponentUpdate', + value: function(e, t) { + return (0, r.default)(this, e, t); + } + } + ]), + A(t, [ + { + key: 'componentWillReceiveProps', + value: function(e) { + var t = this, + n = e.startDate, + r = e.endDate, + o = e.focusedInput, + s = e.minimumNights, + c = e.isOutsideRange, + u = e.isDayBlocked, + l = e.isDayHighlighted, + d = e.phrases, + p = e.initialVisibleMonth, + h = e.numberOfMonths, + g = e.enableOutsideDays, + m = this.props, + b = m.startDate, + y = m.endDate, + _ = m.focusedInput, + w = m.minimumNights, + x = m.isOutsideRange, + M = m.isDayBlocked, + S = m.isDayHighlighted, + O = m.phrases, + E = m.initialVisibleMonth, + A = m.numberOfMonths, + T = m.enableOutsideDays, + C = this.state.visibleDays, + L = !1, + D = !1, + j = !1; + c !== x && + ((this.modifiers['blocked-out-of-range'] = function(e) { + return c(e); + }), + (L = !0)), + u !== M && + ((this.modifiers['blocked-calendar'] = function(e) { + return u(e); + }), + (D = !0)), + l !== S && + ((this.modifiers['highlighted-calendar'] = function(e) { + return l(e); + }), + (j = !0)); + var z = L || D || j, + N = n !== b, + R = r !== y, + I = o !== _; + if (h !== A || g !== T || (p !== E && !_ && I)) { + var F = this.getStateForNewMonth(e), + q = F.currentMonth; + (C = F.visibleDays), + this.setState({ currentMonth: q, visibleDays: C }); + } + var B = {}; + if ( + N && + ((B = this.deleteModifier(B, b, 'selected-start')), + (B = this.addModifier(B, n, 'selected-start')), + b) + ) { + var H = b.clone().add(1, 'day'), + Y = b.clone().add(w + 1, 'days'); + B = this.deleteModifierFromRange( + B, + H, + Y, + 'after-hovered-start' + ); + } + if ( + (R && + ((B = this.deleteModifier(B, y, 'selected-end')), + (B = this.addModifier(B, r, 'selected-end'))), + (N || R) && + (b && + y && + (B = this.deleteModifierFromRange( + B, + b, + y.clone().add(1, 'day'), + 'selected-span' + )), + n && + r && + ((B = this.deleteModifierFromRange( + B, + n, + r.clone().add(1, 'day'), + 'hovered-span' + )), + (B = this.addModifierToRange( + B, + n.clone().add(1, 'day'), + r, + 'selected-span' + )))), + !this.isTouchDevice && N && n && !r) + ) { + var W = n.clone().add(1, 'day'), + V = n.clone().add(s + 1, 'days'); + B = this.addModifierToRange(B, W, V, 'after-hovered-start'); + } + if (w > 0 && (I || N || s !== w)) { + var U = b || this.today; + (B = this.deleteModifierFromRange( + B, + U, + U.clone().add(w, 'days'), + 'blocked-minimum-nights' + )), + (B = this.deleteModifierFromRange( + B, + U, + U.clone().add(w, 'days'), + 'blocked' + )); + } + (I || z) && + (0, a.default)(C).forEach(function(e) { + Object.keys(e).forEach(function(e) { + var n = (0, i.default)(e), + r = !1; + (I || L) && + (c(n) + ? ((B = t.addModifier( + B, + n, + 'blocked-out-of-range' + )), + (r = !0)) + : (B = t.deleteModifier( + B, + n, + 'blocked-out-of-range' + ))), + (I || D) && + (u(n) + ? ((B = t.addModifier(B, n, 'blocked-calendar')), + (r = !0)) + : (B = t.deleteModifier( + B, + n, + 'blocked-calendar' + ))), + (B = r + ? t.addModifier(B, n, 'blocked') + : t.deleteModifier(B, n, 'blocked')), + (I || j) && + (B = l(n) + ? t.addModifier(B, n, 'highlighted-calendar') + : t.deleteModifier(B, n, 'highlighted-calendar')); + }); + }), + s > 0 && + n && + o === v.END_DATE && + ((B = this.addModifierToRange( + B, + n, + n.clone().add(s, 'days'), + 'blocked-minimum-nights' + )), + (B = this.addModifierToRange( + B, + n, + n.clone().add(s, 'days'), + 'blocked' + ))); + var X = (0, i.default)(); + if ( + ((0, f.default)(this.today, X) || + ((B = this.deleteModifier(B, this.today, 'today')), + (B = this.addModifier(B, X, 'today')), + (this.today = X)), + Object.keys(B).length > 0 && + this.setState({ visibleDays: k({}, C, B) }), + I || d !== O) + ) { + var G = P(d, o); + this.setState({ + phrases: k({}, d, { chooseAvailableDate: G }) + }); + } + } + }, + { + key: 'onDayClick', + value: function(e, t) { + var n = this.props, + r = n.keepOpenOnDateSelect, + o = n.minimumNights, + i = n.onBlur, + a = n.focusedInput, + s = n.onFocusChange, + c = n.onClose, + l = n.onDatesChange, + f = n.startDateOffset, + h = n.endDateOffset, + g = n.disabled; + if ((t && t.preventDefault(), !this.isBlocked(e))) { + var b = this.props, + y = b.startDate, + _ = b.endDate; + if (f || h) { + if ( + ((y = (0, m.default)(f, e)), + (_ = (0, m.default)(h, e)), + this.isBlocked(y) || this.isBlocked(_)) + ) + return; + l({ startDate: y, endDate: _ }), + r || (s(null), c({ startDate: y, endDate: _ })); + } else if (a === v.START_DATE) { + var w = _ && _.clone().subtract(o, 'days'), + x = (0, p.default)(w, e) || (0, d.default)(y, _), + M = g === v.END_DATE; + (M && x) || ((y = e), x && (_ = null)), + l({ startDate: y, endDate: _ }), + M && !x + ? (s(null), c({ startDate: y, endDate: _ })) + : M || s(v.END_DATE); + } else if (a === v.END_DATE) { + var k = y && y.clone().add(o, 'days'); + y + ? (0, u.default)(e, k) + ? (l({ startDate: y, endDate: (_ = e) }), + r || (s(null), c({ startDate: y, endDate: _ }))) + : g !== v.START_DATE + ? l({ startDate: (y = e), endDate: (_ = null) }) + : l({ startDate: y, endDate: _ }) + : (l({ startDate: y, endDate: (_ = e) }), + s(v.START_DATE)); + } else l({ startDate: y, endDate: _ }); + i(); + } + } + }, + { + key: 'onDayMouseEnter', + value: function(e) { + if (!this.isTouchDevice) { + var t = this.props, + n = t.startDate, + r = t.endDate, + o = t.focusedInput, + i = t.minimumNights, + a = t.startDateOffset, + s = t.endDateOffset, + c = this.state, + u = c.hoverDate, + l = c.visibleDays, + h = c.dateOffset, + g = null; + if (o) { + var b = a || s, + y = {}; + if (b) { + var _ = (0, m.default)(a, e), + w = (0, m.default)(s, e, function(e) { + return e.add(1, 'day'); + }); + (g = { start: _, end: w }), + h && + h.start && + h.end && + (y = this.deleteModifierFromRange( + y, + h.start, + h.end, + 'hovered-offset' + )), + (y = this.addModifierToRange( + y, + _, + w, + 'hovered-offset' + )); + } + if (!b) { + if ( + ((y = this.deleteModifier(y, u, 'hovered')), + (y = this.addModifier(y, e, 'hovered')), + n && !r && o === v.END_DATE) + ) { + if ((0, d.default)(u, n)) { + var x = u.clone().add(1, 'day'); + y = this.deleteModifierFromRange( + y, + n, + x, + 'hovered-span' + ); + } + if (!this.isBlocked(e) && (0, d.default)(e, n)) { + var M = e.clone().add(1, 'day'); + y = this.addModifierToRange( + y, + n, + M, + 'hovered-span' + ); + } + } + if ( + (!n && + r && + o === v.START_DATE && + ((0, p.default)(u, r) && + (y = this.deleteModifierFromRange( + y, + u, + r, + 'hovered-span' + )), + !this.isBlocked(e) && + (0, p.default)(e, r) && + (y = this.addModifierToRange( + y, + e, + r, + 'hovered-span' + ))), + n) + ) { + var S = n.clone().add(1, 'day'), + O = n.clone().add(i + 1, 'days'); + if ( + ((y = this.deleteModifierFromRange( + y, + S, + O, + 'after-hovered-start' + )), + (0, f.default)(e, n)) + ) { + var E = n.clone().add(1, 'day'), + A = n.clone().add(i + 1, 'days'); + y = this.addModifierToRange( + y, + E, + A, + 'after-hovered-start' + ); + } + } + } + this.setState({ + hoverDate: e, + dateOffset: g, + visibleDays: k({}, l, y) + }); + } + } + } + }, + { + key: 'onDayMouseLeave', + value: function(e) { + var t = this.props, + n = t.startDate, + r = t.endDate, + o = t.minimumNights, + i = this.state, + a = i.hoverDate, + s = i.visibleDays, + c = i.dateOffset; + if (!this.isTouchDevice && a) { + var u = {}; + if ( + ((u = this.deleteModifier(u, a, 'hovered')), + c && + (u = this.deleteModifierFromRange( + u, + c.start, + c.end, + 'hovered-offset' + )), + n && !r && (0, d.default)(a, n)) + ) { + var l = a.clone().add(1, 'day'); + u = this.deleteModifierFromRange(u, n, l, 'hovered-span'); + } + if ( + (!n && + r && + (0, d.default)(r, a) && + (u = this.deleteModifierFromRange( + u, + a, + r, + 'hovered-span' + )), + n && (0, f.default)(e, n)) + ) { + var p = n.clone().add(1, 'day'), + h = n.clone().add(o + 1, 'days'); + u = this.deleteModifierFromRange( + u, + p, + h, + 'after-hovered-start' + ); + } + this.setState({ + hoverDate: null, + visibleDays: k({}, s, u) + }); + } + } + }, + { + key: 'onPrevMonthClick', + value: function() { + var e = this.props, + t = e.enableOutsideDays, + n = e.maxDate, + r = e.minDate, + o = e.numberOfMonths, + i = e.onPrevMonthClick, + a = this.state, + s = a.currentMonth, + c = a.visibleDays, + u = {}; + Object.keys(c) + .sort() + .slice(0, o + 1) + .forEach(function(e) { + u[e] = c[e]; + }); + var l = s.clone().subtract(2, 'months'), + f = (0, h.default)(l, 1, t, !0), + d = s.clone().subtract(1, 'month'); + this.setState( + { + currentMonth: d, + disablePrev: this.shouldDisableMonthNavigation(r, d), + disableNext: this.shouldDisableMonthNavigation(n, d), + visibleDays: k({}, u, this.getModifiers(f)) + }, + function() { + i(d.clone()); + } + ); + } + }, + { + key: 'onNextMonthClick', + value: function() { + var e = this.props, + t = e.enableOutsideDays, + n = e.maxDate, + r = e.minDate, + o = e.numberOfMonths, + i = e.onNextMonthClick, + a = this.state, + s = a.currentMonth, + c = a.visibleDays, + u = {}; + Object.keys(c) + .sort() + .slice(1) + .forEach(function(e) { + u[e] = c[e]; + }); + var l = s.clone().add(o + 1, 'month'), + f = (0, h.default)(l, 1, t, !0), + d = s.clone().add(1, 'month'); + this.setState( + { + currentMonth: d, + disablePrev: this.shouldDisableMonthNavigation(r, d), + disableNext: this.shouldDisableMonthNavigation(n, d), + visibleDays: k({}, u, this.getModifiers(f)) + }, + function() { + i(d.clone()); + } + ); + } + }, + { + key: 'onMonthChange', + value: function(e) { + var t = this.props, + n = t.numberOfMonths, + r = t.enableOutsideDays, + o = t.orientation === v.VERTICAL_SCROLLABLE, + i = (0, h.default)(e, n, r, o); + this.setState({ + currentMonth: e.clone(), + visibleDays: this.getModifiers(i) + }); + } + }, + { + key: 'onYearChange', + value: function(e) { + var t = this.props, + n = t.numberOfMonths, + r = t.enableOutsideDays, + o = t.orientation === v.VERTICAL_SCROLLABLE, + i = (0, h.default)(e, n, r, o); + this.setState({ + currentMonth: e.clone(), + visibleDays: this.getModifiers(i) + }); + } + }, + { + key: 'onMultiplyScrollableMonths', + value: function() { + var e = this.props, + t = e.numberOfMonths, + n = e.enableOutsideDays, + r = this.state, + o = r.currentMonth, + i = r.visibleDays, + a = Object.keys(i).length, + s = o.clone().add(a, 'month'), + c = (0, h.default)(s, t, n, !0); + this.setState({ + visibleDays: k({}, i, this.getModifiers(c)) + }); + } + }, + { + key: 'getFirstFocusableDay', + value: function(e) { + var t = this, + n = this.props, + r = n.startDate, + o = n.endDate, + i = n.focusedInput, + a = n.minimumNights, + s = n.numberOfMonths, + c = e.clone().startOf('month'); + if ( + (i === v.START_DATE && r + ? (c = r.clone()) + : i === v.END_DATE && !o && r + ? (c = r.clone().add(a, 'days')) + : i === v.END_DATE && o && (c = o.clone()), + this.isBlocked(c)) + ) { + for ( + var u = [], + l = e + .clone() + .add(s - 1, 'months') + .endOf('month'), + f = c.clone(); + !(0, d.default)(f, l); + + ) + (f = f.clone().add(1, 'day')), u.push(f); + var p = u.filter(function(e) { + return !t.isBlocked(e); + }); + p.length > 0 && (c = M(p, 1)[0]); + } + return c; + } + }, + { + key: 'getModifiers', + value: function(e) { + var t = this, + n = {}; + return ( + Object.keys(e).forEach(function(r) { + (n[r] = {}), + e[r].forEach(function(e) { + n[r][(0, b.default)(e)] = t.getModifiersForDay(e); + }); + }), + n + ); + } + }, + { + key: 'getModifiersForDay', + value: function(e) { + var t = this; + return new Set( + Object.keys(this.modifiers).filter(function(n) { + return t.modifiers[n](e); + }) + ); + } + }, + { + key: 'getStateForNewMonth', + value: function(e) { + var t = this, + n = e.initialVisibleMonth, + r = e.numberOfMonths, + o = e.enableOutsideDays, + i = e.orientation, + a = e.startDate, + s = (n || + (a + ? function() { + return a; + } + : function() { + return t.today; + }))(), + c = i === v.VERTICAL_SCROLLABLE; + return { + currentMonth: s, + visibleDays: this.getModifiers((0, h.default)(s, r, o, c)) + }; + } + }, + { + key: 'shouldDisableMonthNavigation', + value: function(e, t) { + if (!e) return !1; + var n = this.props, + r = n.numberOfMonths, + o = n.enableOutsideDays; + return (0, g.default)(e, t, r, o); + } + }, + { + key: 'addModifier', + value: function(e, t, n) { + var r = this.props, + o = r.numberOfMonths, + i = r.enableOutsideDays, + a = r.orientation, + s = this.state, + c = s.currentMonth, + u = s.visibleDays, + l = c, + f = o; + if ( + (a === v.VERTICAL_SCROLLABLE + ? (f = Object.keys(u).length) + : ((l = l.clone().subtract(1, 'month')), (f += 2)), + !t || !(0, g.default)(t, l, f, i)) + ) + return e; + var d = (0, b.default)(t), + p = k({}, e); + if (i) + p = Object.keys(u) + .filter(function(e) { + return Object.keys(u[e]).indexOf(d) > -1; + }) + .reduce(function(t, r) { + var o = e[r] || u[r], + i = new Set(o[d]); + return ( + i.add(n), k({}, t, S({}, r, k({}, o, S({}, d, i)))) + ); + }, p); + else { + var h = (0, y.default)(t), + m = e[h] || u[h], + _ = new Set(m[d]); + _.add(n), (p = k({}, p, S({}, h, k({}, m, S({}, d, _))))); + } + return p; + } + }, + { + key: 'addModifierToRange', + value: function(e, t, n, r) { + for (var o = e, i = t.clone(); (0, p.default)(i, n); ) + (o = this.addModifier(o, i, r)), + (i = i.clone().add(1, 'day')); + return o; + } + }, + { + key: 'deleteModifier', + value: function(e, t, n) { + var r = this.props, + o = r.numberOfMonths, + i = r.enableOutsideDays, + a = r.orientation, + s = this.state, + c = s.currentMonth, + u = s.visibleDays, + l = c, + f = o; + if ( + (a === v.VERTICAL_SCROLLABLE + ? (f = Object.keys(u).length) + : ((l = l.clone().subtract(1, 'month')), (f += 2)), + !t || !(0, g.default)(t, l, f, i)) + ) + return e; + var d = (0, b.default)(t), + p = k({}, e); + if (i) + p = Object.keys(u) + .filter(function(e) { + return Object.keys(u[e]).indexOf(d) > -1; + }) + .reduce(function(t, r) { + var o = e[r] || u[r], + i = new Set(o[d]); + return ( + i.delete(n), k({}, t, S({}, r, k({}, o, S({}, d, i)))) + ); + }, p); + else { + var h = (0, y.default)(t), + m = e[h] || u[h], + _ = new Set(m[d]); + _.delete(n), + (p = k({}, p, S({}, h, k({}, m, S({}, d, _))))); + } + return p; + } + }, + { + key: 'deleteModifierFromRange', + value: function(e, t, n, r) { + for (var o = e, i = t.clone(); (0, p.default)(i, n); ) + (o = this.deleteModifier(o, i, r)), + (i = i.clone().add(1, 'day')); + return o; + } + }, + { + key: 'doesNotMeetMinimumNights', + value: function(e) { + var t = this.props, + n = t.startDate, + r = t.isOutsideRange, + o = t.focusedInput, + a = t.minimumNights; + if (o !== v.END_DATE) return !1; + if (n) { + var s = e.diff( + n + .clone() + .startOf('day') + .hour(12), + 'days' + ); + return s < a && s >= 0; + } + return r((0, i.default)(e).subtract(a, 'days')); + } + }, + { + key: 'isDayAfterHoveredStartDate', + value: function(e) { + var t = this.props, + n = t.startDate, + r = t.endDate, + o = t.minimumNights, + i = (this.state || {}).hoverDate; + return ( + !!n && + !r && + !this.isBlocked(e) && + (0, l.default)(i, e) && + o > 0 && + (0, f.default)(i, n) + ); + } + }, + { + key: 'isEndDate', + value: function(e) { + var t = this.props.endDate; + return (0, f.default)(e, t); + } + }, + { + key: 'isHovered', + value: function(e) { + var t = (this.state || {}).hoverDate; + return !!this.props.focusedInput && (0, f.default)(e, t); + } + }, + { + key: 'isInHoveredSpan', + value: function(e) { + var t = this.props, + n = t.startDate, + r = t.endDate, + o = (this.state || {}).hoverDate, + i = + !!n && !r && (e.isBetween(n, o) || (0, f.default)(o, e)), + a = + !!r && !n && (e.isBetween(o, r) || (0, f.default)(o, e)), + s = o && !this.isBlocked(o); + return (i || a) && s; + } + }, + { + key: 'isInSelectedSpan', + value: function(e) { + var t = this.props, + n = t.startDate, + r = t.endDate; + return e.isBetween(n, r); + } + }, + { + key: 'isLastInRange', + value: function(e) { + var t = this.props.endDate; + return this.isInSelectedSpan(e) && (0, l.default)(e, t); + } + }, + { + key: 'isStartDate', + value: function(e) { + var t = this.props.startDate; + return (0, f.default)(e, t); + } + }, + { + key: 'isBlocked', + value: function(e) { + var t = this.props, + n = t.isDayBlocked, + r = t.isOutsideRange; + return n(e) || r(e) || this.doesNotMeetMinimumNights(e); + } + }, + { + key: 'isToday', + value: function(e) { + return (0, f.default)(e, this.today); + } + }, + { + key: 'isFirstDayOfWeek', + value: function(e) { + var t = this.props.firstDayOfWeek; + return ( + e.day() === (t || i.default.localeData().firstDayOfWeek()) + ); + } + }, + { + key: 'isLastDayOfWeek', + value: function(e) { + var t = this.props.firstDayOfWeek; + return ( + e.day() === + ((t || i.default.localeData().firstDayOfWeek()) + 6) % 7 + ); + } + }, + { + key: 'render', + value: function() { + var e = this.props, + t = e.numberOfMonths, + n = e.orientation, + r = e.monthFormat, + i = e.renderMonthText, + a = e.navPrev, + s = e.navNext, + c = e.noNavButtons, + u = e.onOutsideClick, + l = e.withPortal, + f = e.enableOutsideDays, + d = e.firstDayOfWeek, + p = e.hideKeyboardShortcutsPanel, + h = e.daySize, + g = e.focusedInput, + m = e.renderCalendarDay, + b = e.renderDayContents, + y = e.renderCalendarInfo, + v = e.renderMonthElement, + w = e.calendarInfoPosition, + x = e.onBlur, + M = e.onShiftTab, + k = e.onTab, + S = e.isFocused, + O = e.showKeyboardShortcuts, + E = e.isRTL, + A = e.weekDayFormat, + T = e.dayAriaLabelFormat, + C = e.verticalHeight, + L = e.noBorder, + P = e.transitionDuration, + D = e.verticalBorderSpacing, + j = e.horizontalMonthPadding, + z = this.state, + N = z.currentMonth, + R = z.phrases, + I = z.visibleDays, + F = z.disablePrev, + q = z.disableNext; + return o.default.createElement(_.default, { + orientation: n, + enableOutsideDays: f, + modifiers: I, + numberOfMonths: t, + onDayClick: this.onDayClick, + onDayMouseEnter: this.onDayMouseEnter, + onDayMouseLeave: this.onDayMouseLeave, + onPrevMonthClick: this.onPrevMonthClick, + onNextMonthClick: this.onNextMonthClick, + onMonthChange: this.onMonthChange, + onTab: k, + onShiftTab: M, + onYearChange: this.onYearChange, + onMultiplyScrollableMonths: this.onMultiplyScrollableMonths, + monthFormat: r, + renderMonthText: i, + withPortal: l, + hidden: !g, + initialVisibleMonth: function() { + return N; + }, + daySize: h, + onOutsideClick: u, + disablePrev: F, + disableNext: q, + navPrev: a, + navNext: s, + noNavButtons: c, + renderCalendarDay: m, + renderDayContents: b, + renderCalendarInfo: y, + renderMonthElement: v, + calendarInfoPosition: w, + firstDayOfWeek: d, + hideKeyboardShortcutsPanel: p, + isFocused: S, + getFirstFocusableDay: this.getFirstFocusableDay, + onBlur: x, + showKeyboardShortcuts: O, + phrases: R, + isRTL: E, + weekDayFormat: A, + dayAriaLabelFormat: T, + verticalHeight: C, + verticalBorderSpacing: D, + noBorder: L, + transitionDuration: P, + horizontalMonthPadding: j + }); + } + } + ]), + t ); - } - function f(t) { - return isNaN((t = +t)) ? n : (o || (o = r(a.map(e), s, c)))(e(u(t))); - } - return ( - (f.invert = function(n) { - return u(t((i || (i = r(s, a.map(e), wn)))(n))); - }), - (f.domain = function(e) { - return arguments.length - ? ((a = Hh.call(e, Kh)), u === Qh || (u = Zh(a)), l()) - : a.slice(); - }), - (f.range = function(e) { - return arguments.length ? ((s = Yh.call(e)), l()) : s.slice(); - }), - (f.rangeRound = function(e) { - return (s = Yh.call(e)), (c = uh), l(); - }), - (f.clamp = function(e) { - return arguments.length ? ((u = e ? Zh(a) : Qh), f) : u !== Qh; - }), - (f.interpolate = function(e) { - return arguments.length ? ((c = e), l()) : c; - }), - (f.unknown = function(e) { - return arguments.length ? ((n = e), f) : n; - }), - function(n, r) { - return (e = n), (t = r), l(); + })(o.default.PureComponent || o.default.Component); + (t.default = D), (D.propTypes = {}), (D.defaultProps = L); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = function(e, t) { + if (!r.default.isMoment(e) || !r.default.isMoment(t)) return !1; + var n = (0, r.default)(e).add(1, 'day'); + return (0, o.default)(n, t); + }); + var r = i(n(4)), + o = i(n(81)); + function i(e) { + return e && e.__esModule ? e : { default: e }; + } + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = function(e, t, n, i) { + if (!r.default.isMoment(e)) return {}; + for ( + var a = {}, + s = i ? e.clone() : e.clone().subtract(1, 'month'), + c = 0; + c < (i ? t : t + 2); + c += 1 + ) { + var u = [], + l = s.clone(), + f = l + .clone() + .startOf('month') + .hour(12), + d = l + .clone() + .endOf('month') + .hour(12), + p = f.clone(); + if (n) + for (var h = 0; h < p.weekday(); h += 1) { + var g = p.clone().subtract(h + 1, 'day'); + u.unshift(g); + } + for (; p < d; ) u.push(p.clone()), p.add(1, 'day'); + if (n && 0 !== p.weekday()) + for (var m = p.weekday(), b = 0; m < 7; m += 1, b += 1) { + var y = p.clone().add(b, 'day'); + u.push(y); + } + (a[(0, o.default)(s)] = u), (s = s.clone().add(1, 'month')); } - ); + return a; + }); + var r = i(n(4)), + o = i(n(134)); + function i(e) { + return e && e.__esModule ? e : { default: e }; } - function og(e, t) { - return rg()(e, t); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = void 0); + var r = b(n(45)), + o = b(n(0)), + i = (b(n(1)), b(n(54)), n(21), b(n(4))), + a = b(n(170)), + s = b(n(84)), + c = n(31), + u = (b(n(35)), b(n(81))), + l = b(n(135)), + f = b(n(428)), + d = b(n(176)), + p = b(n(132)), + h = b(n(134)), + g = (b(n(83)), b(n(70)), b(n(107)), n(15)), + m = b(n(177)); + function b(e) { + return e && e.__esModule ? e : { default: e }; } - var ig = function(e, t, n, r) { - var o, - i = T(e, t, n); - switch ((r = Us(null == r ? ',f' : r)).type) { - case 's': - var a = Math.max(Math.abs(e), Math.abs(t)); - return ( - null != r.precision || isNaN((o = ac(i, a))) || (r.precision = o), - Qs(r, a) - ); - case '': - case 'e': - case 'g': - case 'p': - case 'r': - null != r.precision || - isNaN((o = sc(i, Math.max(Math.abs(e), Math.abs(t))))) || - (r.precision = o - ('e' === r.type)); - break; - case 'f': - case '%': - null != r.precision || - isNaN((o = ic(i))) || - (r.precision = o - 2 * ('%' === r.type)); - } - return $s(r); - }; - function ag(e) { - var t = e.domain; - return ( - (e.ticks = function(e) { - var n = t(); - return O(n[0], n[n.length - 1], null == e ? 10 : e); - }), - (e.tickFormat = function(e, n) { - var r = t(); - return ig(r[0], r[r.length - 1], null == e ? 10 : e, n); - }), - (e.nice = function(n) { - null == n && (n = 10); - var r, - o = t(), - i = 0, - a = o.length - 1, - s = o[i], - c = o[a]; - return ( - c < s && ((r = s), (s = c), (c = r), (r = i), (i = a), (a = r)), - (r = E(s, c, n)) > 0 - ? (r = E( - (s = Math.floor(s / r) * r), - (c = Math.ceil(c / r) * r), - n - )) - : r < 0 && - (r = E( - (s = Math.ceil(s * r) / r), - (c = Math.floor(c * r) / r), - n - )), - r > 0 - ? ((o[i] = Math.floor(s / r) * r), - (o[a] = Math.ceil(c / r) * r), - t(o)) - : r < 0 && - ((o[i] = Math.ceil(s * r) / r), - (o[a] = Math.floor(c * r) / r), - t(o)), - e - ); - }), - e - ); + function y(e) { + return (y = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function(e) { + return typeof e; + } + : function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e; + })(e); } - function sg() { - var e = og(Qh, Qh); + function v(e, t) { return ( - (e.copy = function() { - return ng(e, sg()); - }), - Fh.apply(e, arguments), - ag(e) + (function(e) { + if (Array.isArray(e)) return e; + })(e) || + (function(e, t) { + var n = [], + r = !0, + o = !1, + i = void 0; + try { + for ( + var a, s = e[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !t || n.length !== t); + r = !0 + ); + } catch (e) { + (o = !0), (i = e); + } finally { + try { + r || null == s.return || s.return(); + } finally { + if (o) throw i; + } + } + return n; + })(e, t) || + (function() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' + ); + })() ); } - function cg(e) { - var t; - function n(e) { - return isNaN((e = +e)) ? t : e; + function _(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + 'function' == typeof Object.getOwnPropertySymbols && + (r = r.concat( + Object.getOwnPropertySymbols(n).filter(function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable; + }) + )), + r.forEach(function(t) { + w(e, t, n[t]); + }); } - return ( - (n.invert = n), - (n.domain = n.range = function(t) { - return arguments.length ? ((e = Hh.call(t, Kh)), n) : e.slice(); - }), - (n.unknown = function(e) { - return arguments.length ? ((t = e), n) : t; - }), - (n.copy = function() { - return cg(e).unknown(t); - }), - (e = arguments.length ? Hh.call(e, Kh) : [0, 1]), - ag(n) - ); + return e; } - var ug = function(e, t) { - var n, - r = 0, - o = (e = e.slice()).length - 1, - i = e[r], - a = e[o]; + function w(e, t, n) { return ( - a < i && ((n = r), (r = o), (o = n), (n = i), (i = a), (a = n)), - (e[r] = t.floor(i)), - (e[o] = t.ceil(a)), + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), e ); - }; - function lg(e) { - return Math.log(e); } - function fg(e) { - return Math.exp(e); + function x(e) { + return (x = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(e) { + return e.__proto__ || Object.getPrototypeOf(e); + })(e); } - function dg(e) { - return -Math.log(-e); + function M(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } } - function pg(e) { - return -Math.exp(-e); + function k(e, t, n) { + return t && M(e.prototype, t), n && M(e, n), e; } - function hg(e) { - return isFinite(e) ? +('1e' + e) : e < 0 ? 0 : e; + function S(e, t) { + return (S = + Object.setPrototypeOf || + function(e, t) { + return (e.__proto__ = t), e; + })(e, t); } - function gg(e) { - return function(t) { - return -e(-t); - }; + function O(e) { + if (void 0 === e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return e; } - function mg(e) { - var t, - n, - r = e(lg, fg), - o = r.domain, - i = 10; - function a() { + var E = { + date: void 0, + onDateChange: function() {}, + focused: !1, + onFocusChange: function() {}, + onClose: function() {}, + keepOpenOnDateSelect: !1, + isOutsideRange: function() {}, + isDayBlocked: function() {}, + isDayHighlighted: function() {}, + renderMonthText: null, + enableOutsideDays: !1, + numberOfMonths: 1, + orientation: g.HORIZONTAL_ORIENTATION, + withPortal: !1, + hideKeyboardShortcutsPanel: !1, + initialVisibleMonth: null, + firstDayOfWeek: null, + daySize: g.DAY_SIZE, + verticalHeight: null, + noBorder: !1, + verticalBorderSpacing: void 0, + transitionDuration: void 0, + horizontalMonthPadding: 13, + navPrev: null, + navNext: null, + onPrevMonthClick: function() {}, + onNextMonthClick: function() {}, + onOutsideClick: function() {}, + renderCalendarDay: void 0, + renderDayContents: null, + renderCalendarInfo: null, + renderMonthElement: null, + calendarInfoPosition: g.INFO_POSITION_BOTTOM, + onBlur: function() {}, + isFocused: !1, + showKeyboardShortcuts: !1, + onTab: function() {}, + onShiftTab: function() {}, + monthFormat: 'MMMM YYYY', + weekDayFormat: 'dd', + phrases: c.DayPickerPhrases, + dayAriaLabelFormat: void 0, + isRTL: !1 + }, + A = (function(e) { + function t(e) { + var n; + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, t), + ((n = (function(e, t) { + return !t || ('object' !== y(t) && 'function' != typeof t) + ? O(e) + : t; + })(this, x(t).call(this, e))).isTouchDevice = !1), + (n.today = (0, i.default)()), + (n.modifiers = { + today: function(e) { + return n.isToday(e); + }, + blocked: function(e) { + return n.isBlocked(e); + }, + 'blocked-calendar': function(t) { + return e.isDayBlocked(t); + }, + 'blocked-out-of-range': function(t) { + return e.isOutsideRange(t); + }, + 'highlighted-calendar': function(t) { + return e.isDayHighlighted(t); + }, + valid: function(e) { + return !n.isBlocked(e); + }, + hovered: function(e) { + return n.isHovered(e); + }, + selected: function(e) { + return n.isSelected(e); + }, + 'first-day-of-week': function(e) { + return n.isFirstDayOfWeek(e); + }, + 'last-day-of-week': function(e) { + return n.isLastDayOfWeek(e); + } + }); + var r = n.getStateForNewMonth(e), + o = r.currentMonth, + a = r.visibleDays; + return ( + (n.state = { hoverDate: null, currentMonth: o, visibleDays: a }), + (n.onDayMouseEnter = n.onDayMouseEnter.bind(O(O(n)))), + (n.onDayMouseLeave = n.onDayMouseLeave.bind(O(O(n)))), + (n.onDayClick = n.onDayClick.bind(O(O(n)))), + (n.onPrevMonthClick = n.onPrevMonthClick.bind(O(O(n)))), + (n.onNextMonthClick = n.onNextMonthClick.bind(O(O(n)))), + (n.onMonthChange = n.onMonthChange.bind(O(O(n)))), + (n.onYearChange = n.onYearChange.bind(O(O(n)))), + (n.getFirstFocusableDay = n.getFirstFocusableDay.bind(O(O(n)))), + n + ); + } 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; + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { value: e, writable: !0, configurable: !0 } + })), + t && S(e, t); + })(t, e), + k(t, [ + { + key: !o.default.PureComponent && 'shouldComponentUpdate', + value: function(e, t) { + return (0, r.default)(this, e, t); + } + } + ]), + k(t, [ + { + key: 'componentDidMount', + value: function() { + this.isTouchDevice = (0, s.default)(); + } + }, + { + key: 'componentWillReceiveProps', + value: function(e) { + var t = this, + n = e.date, + r = e.focused, + o = e.isOutsideRange, + s = e.isDayBlocked, + c = e.isDayHighlighted, + l = e.initialVisibleMonth, + f = e.numberOfMonths, + d = e.enableOutsideDays, + p = this.props, + h = p.isOutsideRange, + g = p.isDayBlocked, + m = p.isDayHighlighted, + b = p.numberOfMonths, + y = p.enableOutsideDays, + v = p.initialVisibleMonth, + w = p.focused, + x = p.date, + M = this.state.visibleDays, + k = !1, + S = !1, + O = !1; + o !== h && + ((this.modifiers['blocked-out-of-range'] = function(e) { + return o(e); + }), + (k = !0)), + s !== g && + ((this.modifiers['blocked-calendar'] = function(e) { + return s(e); + }), + (S = !0)), + c !== m && + ((this.modifiers['highlighted-calendar'] = function(e) { + return c(e); + }), + (O = !0)); + var E = k || S || O; + if (f !== b || d !== y || (l !== v && !w && r)) { + var A = this.getStateForNewMonth(e), + T = A.currentMonth; + (M = A.visibleDays), + this.setState({ currentMonth: T, visibleDays: M }); + } + var C = r !== w, + L = {}; + n !== x && + ((L = this.deleteModifier(L, x, 'selected')), + (L = this.addModifier(L, n, 'selected'))), + (C || E) && + (0, a.default)(M).forEach(function(e) { + Object.keys(e).forEach(function(e) { + var n = (0, i.default)(e); + (L = t.isBlocked(n) + ? t.addModifier(L, n, 'blocked') + : t.deleteModifier(L, n, 'blocked')), + (C || k) && + (L = o(n) + ? t.addModifier(L, n, 'blocked-out-of-range') + : t.deleteModifier( + L, + n, + 'blocked-out-of-range' + )), + (C || S) && + (L = s(n) + ? t.addModifier(L, n, 'blocked-calendar') + : t.deleteModifier(L, n, 'blocked-calendar')), + (C || O) && + (L = c(n) + ? t.addModifier(L, n, 'highlighted-calendar') + : t.deleteModifier( + L, + n, + 'highlighted-calendar' + )); + }); + }); + var P = (0, i.default)(); + (0, u.default)(this.today, P) || + ((L = this.deleteModifier(L, this.today, 'today')), + (L = this.addModifier(L, P, 'today')), + (this.today = P)), + Object.keys(L).length > 0 && + this.setState({ visibleDays: _({}, M, L) }); + } + }, + { + key: 'componentWillUpdate', + value: function() { + this.today = (0, i.default)(); + } + }, + { + key: 'onDayClick', + value: function(e, t) { + if ((t && t.preventDefault(), !this.isBlocked(e))) { + var n = this.props, + r = n.onDateChange, + o = n.keepOpenOnDateSelect, + i = n.onFocusChange, + a = n.onClose; + r(e), o || (i({ focused: !1 }), a({ date: e })); + } + } + }, + { + key: 'onDayMouseEnter', + value: function(e) { + if (!this.isTouchDevice) { + var t = this.state, + n = t.hoverDate, + r = t.visibleDays, + o = this.deleteModifier({}, n, 'hovered'); + (o = this.addModifier(o, e, 'hovered')), + this.setState({ hoverDate: e, visibleDays: _({}, r, o) }); + } + } + }, + { + key: 'onDayMouseLeave', + value: function() { + var e = this.state, + t = e.hoverDate, + n = e.visibleDays; + if (!this.isTouchDevice && t) { + var r = this.deleteModifier({}, t, 'hovered'); + this.setState({ + hoverDate: null, + visibleDays: _({}, n, r) }); - })(i)), - (n = (function(e) { - return 10 === e - ? hg - : e === Math.E - ? Math.exp - : function(t) { - return Math.pow(e, t); - }; - })(i)), - o()[0] < 0 ? ((t = gg(t)), (n = gg(n)), e(dg, pg)) : e(lg, fg), - r - ); - } - return ( - (r.base = function(e) { - return arguments.length ? ((i = +e), a()) : i; - }), - (r.domain = function(e) { - return arguments.length ? (o(e), a()) : o(); - }), - (r.ticks = function(e) { - var r, - a = o(), - s = a[0], - c = a[a.length - 1]; - (r = c < s) && ((d = s), (s = c), (c = d)); - var u, - l, - f, - d = t(s), - p = t(c), - h = null == e ? 10 : +e, - g = []; - if (!(i % 1) && p - d < h) { - if (((d = Math.round(d) - 1), (p = Math.round(p) + 1), s > 0)) { - for (; d < p; ++d) - for (l = 1, u = n(d); l < i; ++l) - if (!((f = u * l) < s)) { - if (f > c) break; - g.push(f); + } + } + }, + { + key: 'onPrevMonthClick', + value: function() { + var e = this.props, + t = e.onPrevMonthClick, + n = e.numberOfMonths, + r = e.enableOutsideDays, + o = this.state, + i = o.currentMonth, + a = o.visibleDays, + s = {}; + Object.keys(a) + .sort() + .slice(0, n + 1) + .forEach(function(e) { + s[e] = a[e]; + }); + var c = i.clone().subtract(1, 'month'), + u = (0, f.default)(c, 1, r); + this.setState( + { + currentMonth: c, + visibleDays: _({}, s, this.getModifiers(u)) + }, + function() { + t(c.clone()); } - } else - for (; d < p; ++d) - for (l = i - 1, u = n(d); l >= 1; --l) - if (!((f = u * l) < s)) { - if (f > c) break; - g.push(f); + ); + } + }, + { + key: 'onNextMonthClick', + value: function() { + var e = this.props, + t = e.onNextMonthClick, + n = e.numberOfMonths, + r = e.enableOutsideDays, + o = this.state, + i = o.currentMonth, + a = o.visibleDays, + s = {}; + Object.keys(a) + .sort() + .slice(1) + .forEach(function(e) { + s[e] = a[e]; + }); + var c = i.clone().add(n, 'month'), + u = (0, f.default)(c, 1, r), + l = i.clone().add(1, 'month'); + this.setState( + { + currentMonth: l, + visibleDays: _({}, s, this.getModifiers(u)) + }, + function() { + t(l.clone()); } - } else g = O(d, p, Math.min(p - d, h)).map(n); - return r ? g.reverse() : g; - }), - (r.tickFormat = function(e, o) { - if ( - (null == o && (o = 10 === i ? '.0e' : ','), - 'function' != typeof o && (o = $s(o)), - e === 1 / 0) - ) - return o; - null == e && (e = 10); - var a = Math.max(1, (i * e) / r.ticks().length); - return function(e) { - var r = e / n(Math.round(t(e))); - return r * i < i - 0.5 && (r *= i), r <= a ? o(e) : ''; - }; - }), - (r.nice = function() { - return o( - ug(o(), { - floor: function(e) { - return n(Math.floor(t(e))); - }, - ceil: function(e) { - return n(Math.ceil(t(e))); + ); + } + }, + { + key: 'onMonthChange', + value: function(e) { + var t = this.props, + n = t.numberOfMonths, + r = t.enableOutsideDays, + o = t.orientation === g.VERTICAL_SCROLLABLE, + i = (0, f.default)(e, n, r, o); + this.setState({ + currentMonth: e.clone(), + visibleDays: this.getModifiers(i) + }); + } + }, + { + key: 'onYearChange', + value: function(e) { + var t = this.props, + n = t.numberOfMonths, + r = t.enableOutsideDays, + o = t.orientation === g.VERTICAL_SCROLLABLE, + i = (0, f.default)(e, n, r, o); + this.setState({ + currentMonth: e.clone(), + visibleDays: this.getModifiers(i) + }); + } + }, + { + key: 'getFirstFocusableDay', + value: function(e) { + var t = this, + n = this.props, + r = n.date, + o = n.numberOfMonths, + i = e.clone().startOf('month'); + if ((r && (i = r.clone()), this.isBlocked(i))) { + for ( + var a = [], + s = e + .clone() + .add(o - 1, 'months') + .endOf('month'), + c = i.clone(); + !(0, l.default)(c, s); + + ) + (c = c.clone().add(1, 'day')), a.push(c); + var u = a.filter(function(e) { + return !t.isBlocked(e) && (0, l.default)(e, i); + }); + if (u.length > 0) { + var f = v(u, 1); + i = f[0]; + } + } + return i; + } + }, + { + key: 'getModifiers', + value: function(e) { + var t = this, + n = {}; + return ( + Object.keys(e).forEach(function(r) { + (n[r] = {}), + e[r].forEach(function(e) { + n[r][(0, p.default)(e)] = t.getModifiersForDay(e); + }); + }), + n + ); + } + }, + { + key: 'getModifiersForDay', + value: function(e) { + var t = this; + return new Set( + Object.keys(this.modifiers).filter(function(n) { + return t.modifiers[n](e); + }) + ); + } + }, + { + key: 'getStateForNewMonth', + value: function(e) { + var t = this, + n = e.initialVisibleMonth, + r = e.date, + o = e.numberOfMonths, + i = e.enableOutsideDays, + a = (n || + (r + ? function() { + return r; + } + : function() { + return t.today; + }))(); + return { + currentMonth: a, + visibleDays: this.getModifiers((0, f.default)(a, o, i)) + }; + } + }, + { + key: 'addModifier', + value: function(e, t, n) { + var r = this.props, + o = r.numberOfMonths, + i = r.enableOutsideDays, + a = r.orientation, + s = this.state, + c = s.currentMonth, + u = s.visibleDays, + l = c, + f = o; + if ( + (a === g.VERTICAL_SCROLLABLE + ? (f = Object.keys(u).length) + : ((l = l.clone().subtract(1, 'month')), (f += 2)), + !t || !(0, d.default)(t, l, f, i)) + ) + return e; + var m = (0, p.default)(t), + b = _({}, e); + if (i) + b = Object.keys(u) + .filter(function(e) { + return Object.keys(u[e]).indexOf(m) > -1; + }) + .reduce(function(t, r) { + var o = e[r] || u[r], + i = new Set(o[m]); + return ( + i.add(n), _({}, t, w({}, r, _({}, o, w({}, m, i)))) + ); + }, b); + else { + var y = (0, h.default)(t), + v = e[y] || u[y], + x = new Set(v[m]); + x.add(n), (b = _({}, b, w({}, y, _({}, v, w({}, m, x))))); + } + return b; + } + }, + { + key: 'deleteModifier', + value: function(e, t, n) { + var r = this.props, + o = r.numberOfMonths, + i = r.enableOutsideDays, + a = r.orientation, + s = this.state, + c = s.currentMonth, + u = s.visibleDays, + l = c, + f = o; + if ( + (a === g.VERTICAL_SCROLLABLE + ? (f = Object.keys(u).length) + : ((l = l.clone().subtract(1, 'month')), (f += 2)), + !t || !(0, d.default)(t, l, f, i)) + ) + return e; + var m = (0, p.default)(t), + b = _({}, e); + if (i) + b = Object.keys(u) + .filter(function(e) { + return Object.keys(u[e]).indexOf(m) > -1; + }) + .reduce(function(t, r) { + var o = e[r] || u[r], + i = new Set(o[m]); + return ( + i.delete(n), _({}, t, w({}, r, _({}, o, w({}, m, i)))) + ); + }, b); + else { + var y = (0, h.default)(t), + v = e[y] || u[y], + x = new Set(v[m]); + x.delete(n), + (b = _({}, b, w({}, y, _({}, v, w({}, m, x))))); + } + return b; } - }) - ); - }), - r - ); - } - function bg() { - var e = mg(rg()).domain([1, 10]); - return ( - (e.copy = function() { - return ng(e, bg()).base(e.base()); - }), - Fh.apply(e, arguments), - e - ); - } - function yg(e) { - return function(t) { - return Math.sign(t) * Math.log1p(Math.abs(t / e)); - }; - } - function vg(e) { - return function(t) { - return Math.sign(t) * Math.expm1(Math.abs(t)) * e; - }; - } - function _g(e) { - var t = 1, - n = e(yg(t), vg(t)); - return ( - (n.constant = function(n) { - return arguments.length ? e(yg((t = +n)), vg(t)) : t; - }), - ag(n) - ); - } - function xg() { - var e = _g(rg()); - return ( - (e.copy = function() { - return ng(e, xg()).constant(e.constant()); - }), - Fh.apply(e, arguments) - ); - } - function wg(e) { - return function(t) { - return t < 0 ? -Math.pow(-t, e) : Math.pow(t, e); - }; - } - function Mg(e) { - return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e); - } - function kg(e) { - return e < 0 ? -e * e : e * e; - } - function Sg(e) { - var t = e(Qh, Qh), - n = 1; - function r() { - return 1 === n - ? e(Qh, Qh) - : 0.5 === n - ? e(Mg, kg) - : e(wg(n), wg(1 / n)); - } - return ( - (t.exponent = function(e) { - return arguments.length ? ((n = +e), r()) : n; - }), - ag(t) - ); - } - function Ag() { - var e = Sg(rg()); - return ( - (e.copy = function() { - return ng(e, Ag()).exponent(e.exponent()); - }), - Fh.apply(e, arguments), - e - ); - } - function Og() { - return Ag.apply(null, arguments).exponent(0.5); - } - function Eg() { - var e, - t = [], - n = [], - r = []; - function i() { - var e = 0, - o = Math.max(1, n.length); - for (r = new Array(o - 1); ++e < o; ) r[e - 1] = P(t, e / o); - return a; - } - function a(t) { - return isNaN((t = +t)) ? e : n[u(r, t)]; - } - return ( - (a.invertExtent = function(e) { - var o = n.indexOf(e); - return o < 0 - ? [NaN, NaN] - : [ - o > 0 ? r[o - 1] : t[0], - o < r.length ? r[o] : t[t.length - 1] - ]; - }), - (a.domain = function(e) { - if (!arguments.length) return t.slice(); - t = []; - for (var n, r = 0, a = e.length; r < a; ++r) - null == (n = e[r]) || isNaN((n = +n)) || t.push(n); - return t.sort(o), i(); - }), - (a.range = function(e) { - return arguments.length ? ((n = Yh.call(e)), i()) : n.slice(); - }), - (a.unknown = function(t) { - return arguments.length ? ((e = t), a) : e; - }), - (a.quantiles = function() { - return r.slice(); - }), - (a.copy = function() { - return Eg() - .domain(t) - .range(n) - .unknown(e); - }), - Fh.apply(a, arguments) - ); - } - function Tg() { - var e, - t = 0, - n = 1, - r = 1, - o = [0.5], - i = [0, 1]; - function a(t) { - return t <= t ? i[u(o, t, 0, r)] : e; - } - function s() { - var e = -1; - for (o = new Array(r); ++e < r; ) - o[e] = ((e + 1) * n - (e - r) * t) / (r + 1); - return a; - } - return ( - (a.domain = function(e) { - return arguments.length ? ((t = +e[0]), (n = +e[1]), s()) : [t, n]; - }), - (a.range = function(e) { - return arguments.length - ? ((r = (i = Yh.call(e)).length - 1), s()) - : i.slice(); - }), - (a.invertExtent = function(e) { - var a = i.indexOf(e); - return a < 0 - ? [NaN, NaN] - : a < 1 - ? [t, o[0]] - : a >= r - ? [o[r - 1], n] - : [o[a - 1], o[a]]; - }), - (a.unknown = function(t) { - return arguments.length ? ((e = t), a) : a; - }), - (a.thresholds = function() { - return o.slice(); - }), - (a.copy = function() { - return Tg() - .domain([t, n]) - .range(i) - .unknown(e); - }), - Fh.apply(ag(a), arguments) - ); - } - function Cg() { - var e, - t = [0.5], - n = [0, 1], - r = 1; - function o(o) { - return o <= o ? n[u(t, o, 0, r)] : e; - } - return ( - (o.domain = function(e) { - return arguments.length - ? ((t = Yh.call(e)), (r = Math.min(t.length, n.length - 1)), o) - : t.slice(); - }), - (o.range = function(e) { - return arguments.length - ? ((n = Yh.call(e)), (r = Math.min(t.length, n.length - 1)), o) - : n.slice(); - }), - (o.invertExtent = function(e) { - var r = n.indexOf(e); - return [t[r - 1], t[r]]; - }), - (o.unknown = function(t) { - return arguments.length ? ((e = t), o) : e; - }), - (o.copy = function() { - return Cg() - .domain(t) - .range(n) - .unknown(e); - }), - Fh.apply(o, arguments) - ); - } - var Lg = new Date(), - Pg = new Date(); - function Dg(e, t, n, r) { - function o(t) { - return e((t = 0 === arguments.length ? new Date() : new Date(+t))), t; - } - return ( - (o.floor = function(t) { - return e((t = new Date(+t))), t; - }), - (o.ceil = function(n) { - return e((n = new Date(n - 1))), t(n, 1), e(n), n; - }), - (o.round = function(e) { - var t = o(e), - n = o.ceil(e); - return e - t < n - e ? t : n; - }), - (o.offset = function(e, n) { - return t((e = new Date(+e)), null == n ? 1 : Math.floor(n)), e; - }), - (o.range = function(n, r, i) { - var a, - s = []; - if ( - ((n = o.ceil(n)), - (i = null == i ? 1 : Math.floor(i)), - !(n < r && i > 0)) - ) - return s; - do { - s.push((a = new Date(+n))), t(n, i), e(n); - } while (a < n && n < r); - return s; - }), - (o.filter = function(n) { - return Dg( - 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 && - ((o.count = function(t, r) { - return ( - Lg.setTime(+t), - Pg.setTime(+r), - e(Lg), - e(Pg), - Math.floor(n(Lg, Pg)) - ); - }), - (o.every = function(e) { - return ( - (e = Math.floor(e)), - isFinite(e) && e > 0 - ? e > 1 - ? o.filter( - r - ? function(t) { - return r(t) % e == 0; - } - : function(t) { - return o.count(0, t) % e == 0; - } - ) - : o - : null - ); - })), - o - ); - } - var zg = Dg( - 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(); - } - ); - zg.every = function(e) { - return isFinite((e = Math.floor(e))) && e > 0 - ? Dg( - function(t) { - t.setFullYear(Math.floor(t.getFullYear() / e) * e), - t.setMonth(0, 1), - t.setHours(0, 0, 0, 0); + { + key: 'isBlocked', + value: function(e) { + var t = this.props, + n = t.isDayBlocked, + r = t.isOutsideRange; + return n(e) || r(e); + } }, - function(t, n) { - t.setFullYear(t.getFullYear() + n * e); + { + key: 'isHovered', + value: function(e) { + var t = (this.state || {}).hoverDate; + return (0, u.default)(e, t); + } + }, + { + key: 'isSelected', + value: function(e) { + var t = this.props.date; + return (0, u.default)(e, t); + } + }, + { + key: 'isToday', + value: function(e) { + return (0, u.default)(e, this.today); + } + }, + { + key: 'isFirstDayOfWeek', + value: function(e) { + var t = this.props.firstDayOfWeek; + return ( + e.day() === (t || i.default.localeData().firstDayOfWeek()) + ); + } + }, + { + key: 'isLastDayOfWeek', + value: function(e) { + var t = this.props.firstDayOfWeek; + return ( + e.day() === + ((t || i.default.localeData().firstDayOfWeek()) + 6) % 7 + ); + } + }, + { + key: 'render', + value: function() { + var e = this.props, + t = e.numberOfMonths, + n = e.orientation, + r = e.monthFormat, + i = e.renderMonthText, + a = e.navPrev, + s = e.navNext, + c = e.onOutsideClick, + u = e.onShiftTab, + l = e.onTab, + f = e.withPortal, + d = e.focused, + p = e.enableOutsideDays, + h = e.hideKeyboardShortcutsPanel, + g = e.daySize, + b = e.firstDayOfWeek, + y = e.renderCalendarDay, + v = e.renderDayContents, + _ = e.renderCalendarInfo, + w = e.renderMonthElement, + x = e.calendarInfoPosition, + M = e.isFocused, + k = e.isRTL, + S = e.phrases, + O = e.dayAriaLabelFormat, + E = e.onBlur, + A = e.showKeyboardShortcuts, + T = e.weekDayFormat, + C = e.verticalHeight, + L = e.noBorder, + P = e.transitionDuration, + D = e.verticalBorderSpacing, + j = e.horizontalMonthPadding, + z = this.state, + N = z.currentMonth, + R = z.visibleDays; + return o.default.createElement(m.default, { + orientation: n, + enableOutsideDays: p, + modifiers: R, + numberOfMonths: t, + onDayClick: this.onDayClick, + onDayMouseEnter: this.onDayMouseEnter, + onDayMouseLeave: this.onDayMouseLeave, + onPrevMonthClick: this.onPrevMonthClick, + onNextMonthClick: this.onNextMonthClick, + onMonthChange: this.onMonthChange, + onYearChange: this.onYearChange, + monthFormat: r, + withPortal: f, + hidden: !d, + hideKeyboardShortcutsPanel: h, + initialVisibleMonth: function() { + return N; + }, + firstDayOfWeek: b, + onOutsideClick: c, + navPrev: a, + navNext: s, + renderMonthText: i, + renderCalendarDay: y, + renderDayContents: v, + renderCalendarInfo: _, + renderMonthElement: w, + calendarInfoPosition: x, + isFocused: M, + getFirstFocusableDay: this.getFirstFocusableDay, + onBlur: E, + onTab: l, + onShiftTab: u, + phrases: S, + daySize: g, + isRTL: k, + showKeyboardShortcuts: A, + weekDayFormat: T, + dayAriaLabelFormat: O, + verticalHeight: C, + noBorder: L, + transitionDuration: P, + verticalBorderSpacing: D, + horizontalMonthPadding: j + }); + } } - ) - : null; - }; - var Ng = zg, - jg = zg.range, - Rg = Dg( - 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(); - } - ), - Ig = Rg, - Fg = Rg.range; - function qg(e) { - return Dg( - 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 - 6e4 * (t.getTimezoneOffset() - e.getTimezoneOffset())) / - 6048e5 - ); - } - ); + ]), + t + ); + })(o.default.PureComponent || o.default.Component); + (t.default = A), (A.propTypes = {}), (A.defaultProps = E); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = void 0); + var r = h(n(1)), + o = h(n(54)), + i = n(21), + a = n(31), + s = h(n(35)), + c = h(n(85)), + u = h(n(415)), + l = h(n(416)), + f = h(n(73)), + d = h(n(70)), + p = h(n(107)); + function h(e) { + return e && e.__esModule ? e : { default: e }; } - var Bg = qg(0), - Hg = qg(1), - Yg = qg(2), - Wg = qg(3), - Vg = qg(4), - Ug = qg(5), - Xg = qg(6), - Gg = Bg.range, - Kg = Hg.range, - $g = Yg.range, - Qg = Wg.range, - Jg = Vg.range, - Zg = Ug.range, - em = Xg.range, - tm = Dg( - function(e) { - e.setHours(0, 0, 0, 0); - }, - function(e, t) { - e.setDate(e.getDate() + t); - }, - function(e, t) { - return ( - (t - e - 6e4 * (t.getTimezoneOffset() - e.getTimezoneOffset())) / - 864e5 - ); - }, - function(e) { - return e.getDate() - 1; - } - ), - nm = tm, - rm = tm.range, - om = Dg( - function(e) { - e.setTime( - e - - e.getMilliseconds() - - 1e3 * e.getSeconds() - - 6e4 * e.getMinutes() - ); - }, - function(e, t) { - e.setTime(+e + 36e5 * t); - }, - function(e, t) { - return (t - e) / 36e5; - }, - function(e) { - return e.getHours(); - } - ), - im = om, - am = om.range, - sm = Dg( - function(e) { - e.setTime(e - e.getMilliseconds() - 1e3 * e.getSeconds()); - }, - function(e, t) { - e.setTime(+e + 6e4 * t); - }, - function(e, t) { - return (t - e) / 6e4; - }, - function(e) { - return e.getMinutes(); - } + var g = { + date: o.default.momentObj, + onDateChange: r.default.func.isRequired, + focused: r.default.bool, + onFocusChange: r.default.func.isRequired, + id: r.default.string.isRequired, + placeholder: r.default.string, + disabled: r.default.bool, + required: r.default.bool, + readOnly: r.default.bool, + screenReaderInputMessage: r.default.string, + showClearDate: r.default.bool, + customCloseIcon: r.default.node, + showDefaultInputIcon: r.default.bool, + inputIconPosition: c.default, + customInputIcon: r.default.node, + noBorder: r.default.bool, + block: r.default.bool, + small: r.default.bool, + regular: r.default.bool, + verticalSpacing: i.nonNegativeInteger, + keepFocusOnInput: r.default.bool, + renderMonthText: (0, i.mutuallyExclusiveProps)( + r.default.func, + 'renderMonthText', + 'renderMonthElement' ), - cm = sm, - um = sm.range, - lm = Dg( - function(e) { - e.setTime(e - e.getMilliseconds()); - }, - function(e, t) { - e.setTime(+e + 1e3 * t); - }, - function(e, t) { - return (t - e) / 1e3; - }, - function(e) { - return e.getUTCSeconds(); - } + renderMonthElement: (0, i.mutuallyExclusiveProps)( + r.default.func, + 'renderMonthText', + 'renderMonthElement' ), - fm = lm, - dm = lm.range, - pm = Dg( - function() {}, - function(e, t) { - e.setTime(+e + t); - }, - function(e, t) { - return t - e; - } - ); - pm.every = function(e) { - return ( - (e = Math.floor(e)), - isFinite(e) && e > 0 - ? e > 1 - ? Dg( - function(t) { - t.setTime(Math.floor(t / e) * e); - }, - function(t, n) { - t.setTime(+t + n * e); - }, - function(t, n) { - return (n - t) / e; - } - ) - : pm - : null - ); + orientation: u.default, + anchorDirection: l.default, + openDirection: f.default, + horizontalMargin: r.default.number, + withPortal: r.default.bool, + withFullScreenPortal: r.default.bool, + appendToBody: r.default.bool, + disableScroll: r.default.bool, + initialVisibleMonth: r.default.func, + firstDayOfWeek: d.default, + numberOfMonths: r.default.number, + keepOpenOnDateSelect: r.default.bool, + reopenPickerOnClearDate: r.default.bool, + renderCalendarInfo: r.default.func, + calendarInfoPosition: p.default, + hideKeyboardShortcutsPanel: r.default.bool, + daySize: i.nonNegativeInteger, + isRTL: r.default.bool, + verticalHeight: i.nonNegativeInteger, + transitionDuration: i.nonNegativeInteger, + horizontalMonthPadding: i.nonNegativeInteger, + navPrev: r.default.node, + navNext: r.default.node, + onPrevMonthClick: r.default.func, + onNextMonthClick: r.default.func, + onClose: r.default.func, + renderCalendarDay: r.default.func, + renderDayContents: r.default.func, + enableOutsideDays: r.default.bool, + isDayBlocked: r.default.func, + isOutsideRange: r.default.func, + isDayHighlighted: r.default.func, + displayFormat: r.default.oneOfType([r.default.string, r.default.func]), + monthFormat: r.default.string, + weekDayFormat: r.default.string, + phrases: r.default.shape((0, s.default)(a.SingleDatePickerPhrases)), + dayAriaLabelFormat: r.default.string }; - var hm = pm, - gm = pm.range; - function mm(e) { - return Dg( - 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) / 6048e5; - } - ); + t.default = g; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = void 0); + var r = f(n(0)), + o = (f(n(1)), n(21), n(46)), + i = n(31), + a = (f(n(35)), f(n(60))), + s = f(n(422)), + c = (f(n(85)), f(n(109))), + u = f(n(425)), + l = (f(n(73)), n(15)); + function f(e) { + return e && e.__esModule ? e : { default: e }; } - var bm = mm(0), - ym = mm(1), - vm = mm(2), - _m = mm(3), - xm = mm(4), - wm = mm(5), - Mm = mm(6), - km = bm.range, - Sm = ym.range, - Am = vm.range, - Om = _m.range, - Em = xm.range, - Tm = wm.range, - Cm = Mm.range, - Lm = Dg( - function(e) { - e.setUTCHours(0, 0, 0, 0); - }, - function(e, t) { - e.setUTCDate(e.getUTCDate() + t); - }, - function(e, t) { - return (t - e) / 864e5; - }, - function(e) { - return e.getUTCDate() - 1; - } - ), - Pm = Lm, - Dm = Lm.range, - zm = Dg( - 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 d() { + return (d = + Object.assign || function(e) { - return e.getUTCFullYear(); - } - ); - zm.every = function(e) { - return isFinite((e = Math.floor(e))) && e > 0 - ? Dg( - 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 Nm = zm, - jm = zm.range; - function Rm(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 Im(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)); + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); + } + return e; + }).apply(this, arguments); } - function Fm(e, t, n) { - return { y: e, m: t, d: n, H: 0, M: 0, S: 0, L: 0 }; + var p = { + children: null, + placeholder: 'Select Date', + displayValue: '', + screenReaderMessage: '', + focused: !1, + isFocused: !1, + disabled: !1, + required: !1, + readOnly: !1, + openDirection: l.OPEN_DOWN, + showCaret: !1, + showClearDate: !1, + showDefaultInputIcon: !1, + inputIconPosition: l.ICON_BEFORE_POSITION, + customCloseIcon: null, + customInputIcon: null, + isRTL: !1, + noBorder: !1, + block: !1, + small: !1, + regular: !1, + verticalSpacing: void 0, + onChange: function() {}, + onClearDate: function() {}, + onFocus: function() {}, + onKeyDownShiftTab: function() {}, + onKeyDownTab: function() {}, + onKeyDownArrowDown: function() {}, + onKeyDownQuestionMark: function() {}, + phrases: i.SingleDatePickerInputPhrases + }; + function h(e) { + var t = e.id, + n = e.children, + i = e.placeholder, + a = e.displayValue, + f = e.focused, + p = e.isFocused, + h = e.disabled, + g = e.required, + m = e.readOnly, + b = e.showCaret, + y = e.showClearDate, + v = e.showDefaultInputIcon, + _ = e.inputIconPosition, + w = e.phrases, + x = e.onClearDate, + M = e.onChange, + k = e.onFocus, + S = e.onKeyDownShiftTab, + O = e.onKeyDownTab, + E = e.onKeyDownArrowDown, + A = e.onKeyDownQuestionMark, + T = e.screenReaderMessage, + C = e.customCloseIcon, + L = e.customInputIcon, + P = e.openDirection, + D = e.isRTL, + j = e.noBorder, + z = e.block, + N = e.small, + R = e.regular, + I = e.verticalSpacing, + F = e.styles, + q = + L || + r.default.createElement( + u.default, + (0, o.css)(F.SingleDatePickerInput_calendarIcon_svg) + ), + B = + C || + r.default.createElement( + c.default, + (0, o.css)( + F.SingleDatePickerInput_clearDate_svg, + N && F.SingleDatePickerInput_clearDate_svg__small + ) + ), + H = T || w.keyboardNavigationInstructions, + Y = + (v || null !== L) && + r.default.createElement( + 'button', + d({}, (0, o.css)(F.SingleDatePickerInput_calendarIcon), { + type: 'button', + disabled: h, + 'aria-label': w.focusStartDate, + onClick: k + }), + q + ); + return r.default.createElement( + 'div', + (0, o.css)( + F.SingleDatePickerInput, + h && F.SingleDatePickerInput__disabled, + D && F.SingleDatePickerInput__rtl, + !j && F.SingleDatePickerInput__withBorder, + z && F.SingleDatePickerInput__block, + y && F.SingleDatePickerInput__showClearDate + ), + _ === l.ICON_BEFORE_POSITION && Y, + r.default.createElement(s.default, { + id: t, + placeholder: i, + displayValue: a, + screenReaderMessage: H, + focused: f, + isFocused: p, + disabled: h, + required: g, + readOnly: m, + showCaret: b, + onChange: M, + onFocus: k, + onKeyDownShiftTab: S, + onKeyDownTab: O, + onKeyDownArrowDown: E, + onKeyDownQuestionMark: A, + openDirection: P, + verticalSpacing: I, + small: N, + regular: R, + block: z + }), + n, + y && + r.default.createElement( + 'button', + d( + {}, + (0, o.css)( + F.SingleDatePickerInput_clearDate, + N && F.SingleDatePickerInput_clearDate__small, + !C && F.SingleDatePickerInput_clearDate__default, + !a && F.SingleDatePickerInput_clearDate__hide + ), + { + type: 'button', + 'aria-label': w.clearDate, + disabled: h, + onClick: x + } + ), + B + ), + _ === l.ICON_AFTER_POSITION && Y + ); } - function qm(e) { - var t = e.dateTime, - n = e.date, - r = e.time, - o = e.periods, - i = e.days, - a = e.shortDays, - s = e.months, - c = e.shortMonths, - u = Jm(o), - l = Zm(o), - f = Jm(i), - d = Zm(i), - p = Jm(a), - h = Zm(a), - g = Jm(s), - m = Zm(s), - b = Jm(c), - y = Zm(c), - v = { - a: function(e) { - return a[e.getDay()]; - }, - A: function(e) { - return i[e.getDay()]; - }, - b: function(e) { - return c[e.getMonth()]; - }, - B: function(e) { - return s[e.getMonth()]; - }, - c: null, - d: _b, - e: _b, - f: Sb, - H: xb, - I: wb, - j: Mb, - L: kb, - m: Ab, - M: Ob, - p: function(e) { - return o[+(e.getHours() >= 12)]; - }, - q: function(e) { - return 1 + ~~(e.getMonth() / 3); - }, - Q: ty, - s: ny, - S: Eb, - u: Tb, - U: Cb, - V: Lb, - w: Pb, - W: Db, - x: null, - X: null, - y: zb, - Y: Nb, - Z: jb, - '%': ey - }, - _ = { - a: function(e) { - return a[e.getUTCDay()]; - }, - A: function(e) { - return i[e.getUTCDay()]; - }, - b: function(e) { - return c[e.getUTCMonth()]; - }, - B: function(e) { - return s[e.getUTCMonth()]; - }, - c: null, - d: Rb, - e: Rb, - f: Hb, - H: Ib, - I: Fb, - j: qb, - L: Bb, - m: Yb, - M: Wb, - p: function(e) { - return o[+(e.getUTCHours() >= 12)]; - }, - q: function(e) { - return 1 + ~~(e.getUTCMonth() / 3); - }, - Q: ty, - s: ny, - S: Vb, - u: Ub, - U: Xb, - V: Gb, - w: Kb, - W: $b, - x: null, - X: null, - y: Qb, - Y: Jb, - Z: Zb, - '%': ey - }, - x = { - a: function(e, t, n) { - var r = p.exec(t.slice(n)); - return r ? ((e.w = h[r[0].toLowerCase()]), n + r[0].length) : -1; - }, - A: function(e, t, n) { - var r = f.exec(t.slice(n)); - return r ? ((e.w = d[r[0].toLowerCase()]), n + r[0].length) : -1; - }, - b: function(e, t, n) { - var r = b.exec(t.slice(n)); - return r ? ((e.m = y[r[0].toLowerCase()]), n + r[0].length) : -1; - }, - B: function(e, t, n) { - var r = g.exec(t.slice(n)); - return r ? ((e.m = m[r[0].toLowerCase()]), n + r[0].length) : -1; - }, - c: function(e, n, r) { - return k(e, t, n, r); - }, - d: lb, - e: lb, - f: mb, - H: db, - I: db, - j: fb, - L: gb, - m: ub, - M: pb, - p: function(e, t, n) { - var r = u.exec(t.slice(n)); - return r ? ((e.p = l[r[0].toLowerCase()]), n + r[0].length) : -1; - }, - q: cb, - Q: yb, - s: vb, - S: hb, - u: tb, - U: nb, - V: rb, - w: eb, - W: ob, - x: function(e, t, r) { - return k(e, n, t, r); + (h.propTypes = {}), (h.defaultProps = p); + var g = (0, o.withStyles)( + function(e) { + var t = e.reactDates, + n = t.border, + r = t.color; + return { + SingleDatePickerInput: { + display: 'inline-block', + backgroundColor: r.background }, - X: function(e, t, n) { - return k(e, r, t, n); + SingleDatePickerInput__withBorder: { + borderColor: r.border, + borderWidth: n.pickerInput.borderWidth, + borderStyle: n.pickerInput.borderStyle, + borderRadius: n.pickerInput.borderRadius }, - y: ab, - Y: ib, - Z: sb, - '%': bb - }; - function w(e, t) { - return function(n) { - var r, - o, - i, - a = [], - s = -1, - c = 0, - u = e.length; - for (n instanceof Date || (n = new Date(+n)); ++s < u; ) - 37 === e.charCodeAt(s) && - (a.push(e.slice(c, s)), - null != (o = Um[(r = e.charAt(++s))]) - ? (r = e.charAt(++s)) - : (o = 'e' === r ? ' ' : '0'), - (i = t[r]) && (r = i(n, o)), - a.push(r), - (c = s + 1)); - return a.push(e.slice(c, s)), a.join(''); - }; - } - function M(e, t) { - return function(n) { - var r, - o, - i = Fm(1900, void 0, 1); - if (k(i, e, (n += ''), 0) != n.length) return null; - if ('Q' in i) return new Date(i.Q); - if ('s' in i) return new Date(1e3 * i.s + ('L' in i ? i.L : 0)); - if ( - (t && !('Z' in i) && (i.Z = 0), - 'p' in i && (i.H = (i.H % 12) + 12 * i.p), - void 0 === i.m && (i.m = 'q' in i ? i.q : 0), - 'V' in i) - ) { - if (i.V < 1 || i.V > 53) return null; - 'w' in i || (i.w = 1), - 'Z' in i - ? ((o = (r = Im(Fm(i.y, 0, 1))).getUTCDay()), - (r = o > 4 || 0 === o ? ym.ceil(r) : ym(r)), - (r = Pm.offset(r, 7 * (i.V - 1))), - (i.y = r.getUTCFullYear()), - (i.m = r.getUTCMonth()), - (i.d = r.getUTCDate() + ((i.w + 6) % 7))) - : ((o = (r = Rm(Fm(i.y, 0, 1))).getDay()), - (r = o > 4 || 0 === o ? Hg.ceil(r) : Hg(r)), - (r = nm.offset(r, 7 * (i.V - 1))), - (i.y = r.getFullYear()), - (i.m = r.getMonth()), - (i.d = r.getDate() + ((i.w + 6) % 7))); - } else - ('W' in i || 'U' in i) && - ('w' in i || (i.w = 'u' in i ? i.u % 7 : 'W' in i ? 1 : 0), - (o = - 'Z' in i - ? Im(Fm(i.y, 0, 1)).getUTCDay() - : Rm(Fm(i.y, 0, 1)).getDay()), - (i.m = 0), - (i.d = - 'W' in i - ? ((i.w + 6) % 7) + 7 * i.W - ((o + 5) % 7) - : i.w + 7 * i.U - ((o + 6) % 7))); - return 'Z' in i - ? ((i.H += (i.Z / 100) | 0), (i.M += i.Z % 100), Im(i)) - : Rm(i); - }; - } - function k(e, t, n, r) { - for (var o, i, a = 0, s = t.length, c = n.length; a < s; ) { - if (r >= c) return -1; - if (37 === (o = t.charCodeAt(a++))) { - if ( - ((o = t.charAt(a++)), - !(i = x[o in Um ? t.charAt(a++) : o]) || (r = i(e, n, r)) < 0) - ) - return -1; - } else if (o != n.charCodeAt(r++)) return -1; - } - return r; - } - return ( - (v.x = w(n, v)), - (v.X = w(r, v)), - (v.c = w(t, v)), - (_.x = w(n, _)), - (_.X = w(r, _)), - (_.c = w(t, _)), - { - format: function(e) { - var t = w((e += ''), v); - return ( - (t.toString = function() { - return e; - }), - t - ); + SingleDatePickerInput__rtl: { direction: (0, a.default)('rtl') }, + SingleDatePickerInput__disabled: { backgroundColor: r.disabled }, + SingleDatePickerInput__block: { display: 'block' }, + SingleDatePickerInput__showClearDate: { paddingRight: 30 }, + SingleDatePickerInput_clearDate: { + background: 'none', + border: 0, + color: 'inherit', + font: 'inherit', + lineHeight: 'normal', + overflow: 'visible', + cursor: 'pointer', + padding: 10, + margin: '0 10px 0 5px', + position: 'absolute', + right: 0, + top: '50%', + transform: 'translateY(-50%)' }, - parse: function(e) { - var t = M((e += ''), !1); - return ( - (t.toString = function() { - return e; - }), - t - ); + SingleDatePickerInput_clearDate__default: { + ':focus': { background: r.core.border, borderRadius: '50%' }, + ':hover': { background: r.core.border, borderRadius: '50%' } }, - utcFormat: function(e) { - var t = w((e += ''), _); - return ( - (t.toString = function() { - return e; - }), - t - ); + SingleDatePickerInput_clearDate__small: { padding: 6 }, + SingleDatePickerInput_clearDate__hide: { visibility: 'hidden' }, + SingleDatePickerInput_clearDate_svg: { + fill: r.core.grayLight, + height: 12, + width: 15, + verticalAlign: 'middle' }, - utcParse: function(e) { - var t = M((e += ''), !0); - return ( - (t.toString = function() { - return e; - }), - t - ); - } - } - ); - } - var Bm, - Hm, - Ym, - Wm, - Vm, - Um = { '-': '', _: ' ', 0: '0' }, - Xm = /^\s*\d+/, - Gm = /^%/, - Km = /[\\^$*+?|[\]().{}]/g; - function $m(e, t, n) { - var r = e < 0 ? '-' : '', - o = (r ? -e : e) + '', - i = o.length; - return r + (i < n ? new Array(n - i + 1).join(t) + o : o); - } - function Qm(e) { - return e.replace(Km, '\\$&'); - } - function Jm(e) { - return new RegExp('^(?:' + e.map(Qm).join('|') + ')', 'i'); - } - function Zm(e) { - for (var t = {}, n = -1, r = e.length; ++n < r; ) - t[e[n].toLowerCase()] = n; - return t; - } - function eb(e, t, n) { - var r = Xm.exec(t.slice(n, n + 1)); - return r ? ((e.w = +r[0]), n + r[0].length) : -1; - } - function tb(e, t, n) { - var r = Xm.exec(t.slice(n, n + 1)); - return r ? ((e.u = +r[0]), n + r[0].length) : -1; - } - function nb(e, t, n) { - var r = Xm.exec(t.slice(n, n + 2)); - return r ? ((e.U = +r[0]), n + r[0].length) : -1; - } - function rb(e, t, n) { - var r = Xm.exec(t.slice(n, n + 2)); - return r ? ((e.V = +r[0]), n + r[0].length) : -1; - } - function ob(e, t, n) { - var r = Xm.exec(t.slice(n, n + 2)); - return r ? ((e.W = +r[0]), n + r[0].length) : -1; - } - function ib(e, t, n) { - var r = Xm.exec(t.slice(n, n + 4)); - return r ? ((e.y = +r[0]), n + r[0].length) : -1; - } - function ab(e, t, n) { - var r = Xm.exec(t.slice(n, n + 2)); - return r - ? ((e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3)), n + r[0].length) - : -1; - } - function sb(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 cb(e, t, n) { - var r = Xm.exec(t.slice(n, n + 1)); - return r ? ((e.q = 3 * r[0] - 3), n + r[0].length) : -1; - } - function ub(e, t, n) { - var r = Xm.exec(t.slice(n, n + 2)); - return r ? ((e.m = r[0] - 1), n + r[0].length) : -1; - } - function lb(e, t, n) { - var r = Xm.exec(t.slice(n, n + 2)); - return r ? ((e.d = +r[0]), n + r[0].length) : -1; - } - function fb(e, t, n) { - var r = Xm.exec(t.slice(n, n + 3)); - return r ? ((e.m = 0), (e.d = +r[0]), n + r[0].length) : -1; - } - function db(e, t, n) { - var r = Xm.exec(t.slice(n, n + 2)); - return r ? ((e.H = +r[0]), n + r[0].length) : -1; - } - function pb(e, t, n) { - var r = Xm.exec(t.slice(n, n + 2)); - return r ? ((e.M = +r[0]), n + r[0].length) : -1; - } - function hb(e, t, n) { - var r = Xm.exec(t.slice(n, n + 2)); - return r ? ((e.S = +r[0]), n + r[0].length) : -1; - } - function gb(e, t, n) { - var r = Xm.exec(t.slice(n, n + 3)); - return r ? ((e.L = +r[0]), n + r[0].length) : -1; - } - function mb(e, t, n) { - var r = Xm.exec(t.slice(n, n + 6)); - return r ? ((e.L = Math.floor(r[0] / 1e3)), n + r[0].length) : -1; - } - function bb(e, t, n) { - var r = Gm.exec(t.slice(n, n + 1)); - return r ? n + r[0].length : -1; - } - function yb(e, t, n) { - var r = Xm.exec(t.slice(n)); - return r ? ((e.Q = +r[0]), n + r[0].length) : -1; - } - function vb(e, t, n) { - var r = Xm.exec(t.slice(n)); - return r ? ((e.s = +r[0]), n + r[0].length) : -1; - } - function _b(e, t) { - return $m(e.getDate(), t, 2); - } - function xb(e, t) { - return $m(e.getHours(), t, 2); - } - function wb(e, t) { - return $m(e.getHours() % 12 || 12, t, 2); - } - function Mb(e, t) { - return $m(1 + nm.count(Ng(e), e), t, 3); - } - function kb(e, t) { - return $m(e.getMilliseconds(), t, 3); - } - function Sb(e, t) { - return kb(e, t) + '000'; - } - function Ab(e, t) { - return $m(e.getMonth() + 1, t, 2); - } - function Ob(e, t) { - return $m(e.getMinutes(), t, 2); - } - function Eb(e, t) { - return $m(e.getSeconds(), t, 2); - } - function Tb(e) { - var t = e.getDay(); - return 0 === t ? 7 : t; - } - function Cb(e, t) { - return $m(Bg.count(Ng(e) - 1, e), t, 2); - } - function Lb(e, t) { - var n = e.getDay(); - return ( - (e = n >= 4 || 0 === n ? Vg(e) : Vg.ceil(e)), - $m(Vg.count(Ng(e), e) + (4 === Ng(e).getDay()), t, 2) - ); - } - function Pb(e) { - return e.getDay(); - } - function Db(e, t) { - return $m(Hg.count(Ng(e) - 1, e), t, 2); - } - function zb(e, t) { - return $m(e.getFullYear() % 100, t, 2); - } - function Nb(e, t) { - return $m(e.getFullYear() % 1e4, t, 4); - } - function jb(e) { - var t = e.getTimezoneOffset(); - return ( - (t > 0 ? '-' : ((t *= -1), '+')) + - $m((t / 60) | 0, '0', 2) + - $m(t % 60, '0', 2) - ); - } - function Rb(e, t) { - return $m(e.getUTCDate(), t, 2); - } - function Ib(e, t) { - return $m(e.getUTCHours(), t, 2); - } - function Fb(e, t) { - return $m(e.getUTCHours() % 12 || 12, t, 2); - } - function qb(e, t) { - return $m(1 + Pm.count(Nm(e), e), t, 3); - } - function Bb(e, t) { - return $m(e.getUTCMilliseconds(), t, 3); - } - function Hb(e, t) { - return Bb(e, t) + '000'; - } - function Yb(e, t) { - return $m(e.getUTCMonth() + 1, t, 2); - } - function Wb(e, t) { - return $m(e.getUTCMinutes(), t, 2); - } - function Vb(e, t) { - return $m(e.getUTCSeconds(), t, 2); - } - function Ub(e) { - var t = e.getUTCDay(); - return 0 === t ? 7 : t; - } - function Xb(e, t) { - return $m(bm.count(Nm(e) - 1, e), t, 2); - } - function Gb(e, t) { - var n = e.getUTCDay(); - return ( - (e = n >= 4 || 0 === n ? xm(e) : xm.ceil(e)), - $m(xm.count(Nm(e), e) + (4 === Nm(e).getUTCDay()), t, 2) - ); - } - function Kb(e) { - return e.getUTCDay(); - } - function $b(e, t) { - return $m(ym.count(Nm(e) - 1, e), t, 2); - } - function Qb(e, t) { - return $m(e.getUTCFullYear() % 100, t, 2); - } - function Jb(e, t) { - return $m(e.getUTCFullYear() % 1e4, t, 4); - } - function Zb() { - return '+0000'; - } - function ey() { - return '%'; - } - function ty(e) { - return +e; - } - function ny(e) { - return Math.floor(+e / 1e3); - } - function ry(e) { - return ( - (Bm = qm(e)), - (Hm = Bm.format), - (Ym = Bm.parse), - (Wm = Bm.utcFormat), - (Vm = Bm.utcParse), - Bm - ); - } - ry({ - 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' - ] - }); - function oy(e) { - return new Date(e); - } - function iy(e) { - return e instanceof Date ? +e : +new Date(+e); - } - function ay(e, t, n, r, o, a, s, c, u) { - var l = og(Qh, Qh), - f = l.invert, - d = l.domain, - p = u('.%L'), - h = u(':%S'), - g = u('%I:%M'), - m = u('%I %p'), - b = u('%a %d'), - y = u('%b %d'), - v = u('%B'), - _ = u('%Y'), - x = [ - [s, 1, 1e3], - [s, 5, 5e3], - [s, 15, 15e3], - [s, 30, 3e4], - [a, 1, 6e4], - [a, 5, 3e5], - [a, 15, 9e5], - [a, 30, 18e5], - [o, 1, 36e5], - [o, 3, 108e5], - [o, 6, 216e5], - [o, 12, 432e5], - [r, 1, 864e5], - [r, 2, 1728e5], - [n, 1, 6048e5], - [t, 1, 2592e6], - [t, 3, 7776e6], - [e, 1, 31536e6] - ]; - function w(i) { - return (s(i) < i - ? p - : a(i) < i - ? h - : o(i) < i - ? g - : r(i) < i - ? m - : t(i) < i - ? n(i) < i - ? b - : y - : e(i) < i - ? v - : _)(i); - } - function M(t, n, r, o) { - if ((null == t && (t = 10), 'number' == typeof t)) { - var a = Math.abs(r - n) / t, - s = i(function(e) { - return e[2]; - }).right(x, a); - s === x.length - ? ((o = T(n / 31536e6, r / 31536e6, t)), (t = e)) - : s - ? ((o = (s = x[a / x[s - 1][2] < x[s][2] / a ? s - 1 : s])[1]), - (t = s[0])) - : ((o = Math.max(T(n, r, t), 1)), (t = c)); - } - return null == o ? t : t.every(o); + SingleDatePickerInput_clearDate_svg__small: { height: 9 }, + SingleDatePickerInput_calendarIcon: { + background: 'none', + border: 0, + color: 'inherit', + font: 'inherit', + lineHeight: 'normal', + overflow: 'visible', + cursor: 'pointer', + display: 'inline-block', + verticalAlign: 'middle', + padding: 10, + margin: '0 5px 0 10px' + }, + SingleDatePickerInput_calendarIcon_svg: { + fill: r.core.grayLight, + height: 15, + width: 14, + verticalAlign: 'middle' + } + }; + }, + { pureComponent: void 0 !== r.default.PureComponent } + )(h); + t.default = g; + }, + function(e, t, n) { + var r = n(802); + e.exports = function(e, t, n) { + if ((r(e), void 0 === t)) return e; + switch (n) { + case 1: + return function(n) { + return e.call(t, n); + }; + case 2: + return function(n, r) { + return e.call(t, n, r); + }; + case 3: + return function(n, r, o) { + return e.call(t, n, r, o); + }; } - return ( - (l.invert = function(e) { - return new Date(f(e)); - }), - (l.domain = function(e) { - return arguments.length ? d(Hh.call(e, iy)) : d().map(oy); - }), - (l.ticks = function(e, t) { - var n, - r = d(), - o = r[0], - i = r[r.length - 1], - a = i < o; - return ( - a && ((n = o), (o = i), (i = n)), - (n = (n = M(e, o, i, t)) ? n.range(o, i + 1) : []), - a ? n.reverse() : n - ); - }), - (l.tickFormat = function(e, t) { - return null == t ? w : u(t); - }), - (l.nice = function(e, t) { - var n = d(); - return (e = M(e, n[0], n[n.length - 1], t)) ? d(ug(n, e)) : l; - }), - (l.copy = function() { - return ng(l, ay(e, t, n, r, o, a, s, c, u)); - }), - l - ); - } - var sy = function() { - return Fh.apply( - ay(Ng, Ig, Bg, nm, im, cm, fm, hm, Hm).domain([ - new Date(2e3, 0, 1), - new Date(2e3, 0, 2) - ]), - arguments + return function() { + return e.apply(t, arguments); + }; + }; + }, + function(e, t, n) { + e.exports = + !n(63) && + !n(111)(function() { + return ( + 7 != + Object.defineProperty(n(434)('div'), 'a', { + get: function() { + return 7; + } + }).a ); - }, - cy = Dg( - 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(); - } - ), - uy = cy, - ly = cy.range, - fy = Dg( - function(e) { - e.setUTCMinutes(0, 0, 0); - }, - function(e, t) { - e.setTime(+e + 36e5 * t); - }, - function(e, t) { - return (t - e) / 36e5; - }, - function(e) { - return e.getUTCHours(); - } - ), - dy = fy, - py = fy.range, - hy = Dg( - function(e) { - e.setUTCSeconds(0, 0); - }, - function(e, t) { - e.setTime(+e + 6e4 * t); - }, - function(e, t) { - return (t - e) / 6e4; + }); + }, + function(e, t, n) { + var r = n(89), + o = n(61).document, + i = r(o) && r(o.createElement); + e.exports = function(e) { + return i ? o.createElement(e) : {}; + }; + }, + function(e, t, n) { + var r = n(75), + o = n(90), + i = n(804)(!1), + a = n(181)('IE_PROTO'); + e.exports = function(e, t) { + var n, + s = o(e), + c = 0, + u = []; + for (n in s) n != a && r(s, n) && u.push(n); + for (; t.length > c; ) r(s, (n = t[c++])) && (~i(u, n) || u.push(n)); + return u; + }; + }, + function(e, t, n) { + var r = n(437); + e.exports = Object('z').propertyIsEnumerable(0) + ? Object + : function(e) { + return 'String' == r(e) ? e.split('') : Object(e); + }; + }, + function(e, t) { + var n = {}.toString; + e.exports = function(e) { + return n.call(e).slice(8, -1); + }; + }, + function(e, t, n) { + 'use strict'; + var r = n(138), + o = n(87), + i = n(439), + a = n(88), + s = n(186), + c = n(811), + u = n(188), + l = n(814), + f = n(91)('iterator'), + d = !([].keys && 'next' in [].keys()), + p = function() { + return this; + }; + e.exports = function(e, t, n, h, g, m, b) { + c(n, t, h); + var y, + v, + _, + w = function(e) { + if (!d && e in S) return S[e]; + switch (e) { + case 'keys': + case 'values': + return function() { + return new n(this, e); + }; + } + return function() { + return new n(this, e); + }; }, - function(e) { - return e.getUTCMinutes(); - } - ), - gy = hy, - my = hy.range, - by = function() { - return Fh.apply( - ay(Nm, uy, bm, Pm, dy, gy, fm, hm, Wm).domain([ - Date.UTC(2e3, 0, 1), - Date.UTC(2e3, 0, 2) - ]), - arguments - ); + x = t + ' Iterator', + M = 'values' == g, + k = !1, + S = e.prototype, + O = S[f] || S['@@iterator'] || (g && S[g]), + E = O || w(g), + A = g ? (M ? w('entries') : E) : void 0, + T = ('Array' == t && S.entries) || O; + if ( + (T && + (_ = l(T.call(new e()))) !== Object.prototype && + _.next && + (u(_, x, !0), r || 'function' == typeof _[f] || a(_, f, p)), + M && + O && + 'values' !== O.name && + ((k = !0), + (E = function() { + return O.call(this); + })), + (r && !b) || (!d && !k && S[f]) || a(S, f, E), + (s[t] = E), + (s[x] = p), + g) + ) + if ( + ((y = { + values: M ? E : w('values'), + keys: m ? E : w('keys'), + entries: A + }), + b) + ) + for (v in y) v in S || i(S, v, y[v]); + else o(o.P + o.F * (d || k), t, y); + return y; + }; + }, + function(e, t, n) { + e.exports = n(88); + }, + function(e, t, n) { + var r = n(435), + o = n(183).concat('length', 'prototype'); + t.f = + Object.getOwnPropertyNames || + function(e) { + return r(e, o); }; - function yy() { - var e, - t, - n, - r, - o, - i = 0, - a = 1, - s = Qh, - c = !1; - function u(t) { - return isNaN((t = +t)) - ? o - : s( - 0 === n - ? 0.5 - : ((t = (r(t) - e) * n), c ? Math.max(0, Math.min(1, t)) : t) - ); - } - return ( - (u.domain = function(o) { - return arguments.length - ? ((e = r((i = +o[0]))), - (t = r((a = +o[1]))), - (n = e === t ? 0 : 1 / (t - e)), - u) - : [i, a]; - }), - (u.clamp = function(e) { - return arguments.length ? ((c = !!e), u) : c; - }), - (u.interpolator = function(e) { - return arguments.length ? ((s = e), u) : s; - }), - (u.unknown = function(e) { - return arguments.length ? ((o = e), u) : o; - }), - function(o) { - return ( - (r = o), - (e = o(i)), - (t = o(a)), - (n = e === t ? 0 : 1 / (t - e)), - u - ); - } - ); - } - function vy(e, t) { + }, + function(e, t, n) { + var r = n(140), + o = n(136), + i = n(90), + a = n(178), + s = n(75), + c = n(433), + u = Object.getOwnPropertyDescriptor; + t.f = n(63) + ? u + : function(e, t) { + if (((e = i(e)), (t = a(t, !0)), c)) + try { + return u(e, t); + } catch (e) {} + if (s(e, t)) return o(!r.f.call(e, t), e[t]); + }; + }, + function(e, t, n) { + e.exports = { default: n(838), __esModule: !0 }; + }, + function(e, t) { + e.exports = function(e, t) { + if (e.indexOf) return e.indexOf(t); + for (var n = 0; n < e.length; ++n) if (e[n] === t) return n; + return -1; + }; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = function(e) { + return [].slice.call(e.querySelectorAll('*'), 0).filter(a); + }); + /*! + * Adapted from jQuery UI core + * + * http://jqueryui.com + * + * Copyright 2014 jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + * + * http://api.jqueryui.com/category/ui-core/ + */ + var r = /input|select|textarea|button|object/; + function o(e) { + var t = e.offsetWidth <= 0 && e.offsetHeight <= 0; + if (t && !e.innerHTML) return !0; + var n = window.getComputedStyle(e); return t - .domain(e.domain()) - .interpolator(e.interpolator()) - .clamp(e.clamp()) - .unknown(e.unknown()); - } - function _y() { - var e = ag(yy()(Qh)); - return ( - (e.copy = function() { - return vy(e, _y()); - }), - qh.apply(e, arguments) - ); - } - function xy() { - var e = mg(yy()).domain([1, 10]); - return ( - (e.copy = function() { - return vy(e, xy()).base(e.base()); - }), - qh.apply(e, arguments) - ); - } - function wy() { - var e = _g(yy()); - return ( - (e.copy = function() { - return vy(e, wy()).constant(e.constant()); - }), - qh.apply(e, arguments) - ); + ? 'visible' !== n.getPropertyValue('overflow') + : 'none' == n.getPropertyValue('display'); } - function My() { - var e = Sg(yy()); + function i(e, t) { + var n = e.nodeName.toLowerCase(); return ( - (e.copy = function() { - return vy(e, My()).exponent(e.exponent()); - }), - qh.apply(e, arguments) + ((r.test(n) && !e.disabled) || ('a' === n && e.href) || t) && + (function(e) { + for (var t = e; t && t !== document.body; ) { + if (o(t)) return !1; + t = t.parentNode; + } + return !0; + })(e) ); } - function ky() { - return My.apply(null, arguments).exponent(0.5); - } - function Sy() { - var e = [], - t = Qh; - function n(n) { - if (!isNaN((n = +n))) return t((u(e, n) - 1) / (e.length - 1)); - } - return ( - (n.domain = function(t) { - if (!arguments.length) return e.slice(); - e = []; - for (var r, i = 0, a = t.length; i < a; ++i) - null == (r = t[i]) || isNaN((r = +r)) || e.push(r); - return e.sort(o), n; - }), - (n.interpolator = function(e) { - return arguments.length ? ((t = e), n) : t; - }), - (n.copy = function() { - return Sy(t).domain(e); - }), - qh.apply(n, arguments) - ); + function a(e) { + var t = e.getAttribute('tabindex'); + null === t && (t = void 0); + var n = isNaN(t); + return (n || t >= 0) && i(e, !n); } - function Ay() { - var e, - t, - n, - r, - o, - i, - a, - s = 0, - c = 0.5, - u = 1, - l = Qh, - f = !1; - function d(e) { - return isNaN((e = +e)) - ? a - : ((e = 0.5 + ((e = +i(e)) - t) * (e < t ? r : o)), - l(f ? Math.max(0, Math.min(1, e)) : e)); - } - return ( - (d.domain = function(a) { - return arguments.length - ? ((e = i((s = +a[0]))), - (t = i((c = +a[1]))), - (n = i((u = +a[2]))), - (r = e === t ? 0 : 0.5 / (t - e)), - (o = t === n ? 0 : 0.5 / (n - t)), - d) - : [s, c, u]; - }), - (d.clamp = function(e) { - return arguments.length ? ((f = !!e), d) : f; - }), - (d.interpolator = function(e) { - return arguments.length ? ((l = e), d) : l; - }), - (d.unknown = function(e) { - return arguments.length ? ((a = e), d) : a; - }), - function(a) { - return ( - (i = a), - (e = a(s)), - (t = a(c)), - (n = a(u)), - (r = e === t ? 0 : 0.5 / (t - e)), - (o = t === n ? 0 : 0.5 / (n - t)), - d - ); + e.exports = t.default; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.assertNodeList = c), + (t.setElement = function(e) { + var t = e; + if ('string' == typeof t && a.canUseDOM) { + var n = document.querySelectorAll(t); + c(n, t), (t = 'length' in n ? n[0] : n); } - ); - } - function Oy() { - var e = ag(Ay()(Qh)); - return ( - (e.copy = function() { - return vy(e, Oy()); - }), - qh.apply(e, arguments) - ); - } - function Ey() { - var e = mg(Ay()).domain([0.1, 1, 10]); - return ( - (e.copy = function() { - return vy(e, Ey()).base(e.base()); - }), - qh.apply(e, arguments) - ); - } - function Ty() { - var e = _g(Ay()); - return ( - (e.copy = function() { - return vy(e, Ty()).constant(e.constant()); - }), - qh.apply(e, arguments) - ); + return (s = t || s); + }), + (t.validateElement = u), + (t.hide = function(e) { + u(e) && (e || s).setAttribute('aria-hidden', 'true'); + }), + (t.show = function(e) { + u(e) && (e || s).removeAttribute('aria-hidden'); + }), + (t.documentNotReadyOrSSRTesting = function() { + s = null; + }), + (t.resetForTesting = function() { + s = null; + }); + var r, + o = n(845), + i = (r = o) && r.__esModule ? r : { default: r }, + a = n(191); + var s = null; + function c(e, t) { + if (!e || !e.length) + throw new Error( + 'react-modal: No elements were found for selector ' + t + '.' + ); } - function Cy() { - var e = Sg(Ay()); + function u(e) { return ( - (e.copy = function() { - return vy(e, Cy()).exponent(e.exponent()); - }), - qh.apply(e, arguments) + !(!e && !s) || + ((0, i.default)( + !1, + [ + 'react-modal: App element is not defined.', + 'Please use `Modal.setAppElement(el)` or set `appElement={el}`.', + "This is needed so screen readers don't see main content", + 'when modal is opened. It is not recommended, but you can opt-out', + 'by setting `ariaHideApp={false}`.' + ].join(' ') + ), + !1) ); } - function Ly() { - return Cy.apply(null, arguments).exponent(0.5); - } - var Py = function(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; - }, - Dy = Py('1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf'), - zy = Py('7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666'), - Ny = Py('1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666'), - jy = Py( - 'a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928' - ), - Ry = Py('fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2'), - Iy = Py('b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc'), - Fy = Py('e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999'), - qy = Py('66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3'), - By = Py( - '8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f' - ), - Hy = Py('4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab'), - Yy = function(e) { - return gn(e[e.length - 1]); - }, - Wy = new Array(3) - .concat( - 'd8b365f5f5f55ab4ac', - 'a6611adfc27d80cdc1018571', - 'a6611adfc27df5f5f580cdc1018571', - '8c510ad8b365f6e8c3c7eae55ab4ac01665e', - '8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e', - '8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e', - '8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e', - '5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30', - '5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30' - ) - .map(Py), - Vy = Yy(Wy), - Uy = new Array(3) - .concat( - 'af8dc3f7f7f77fbf7b', - '7b3294c2a5cfa6dba0008837', - '7b3294c2a5cff7f7f7a6dba0008837', - '762a83af8dc3e7d4e8d9f0d37fbf7b1b7837', - '762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837', - '762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837', - '762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837', - '40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b', - '40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b' - ) - .map(Py), - Xy = Yy(Uy), - Gy = new Array(3) - .concat( - 'e9a3c9f7f7f7a1d76a', - 'd01c8bf1b6dab8e1864dac26', - 'd01c8bf1b6daf7f7f7b8e1864dac26', - 'c51b7de9a3c9fde0efe6f5d0a1d76a4d9221', - 'c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221', - 'c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221', - 'c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221', - '8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419', - '8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419' - ) - .map(Py), - Ky = Yy(Gy), - $y = new Array(3) - .concat( - '998ec3f7f7f7f1a340', - '5e3c99b2abd2fdb863e66101', - '5e3c99b2abd2f7f7f7fdb863e66101', - '542788998ec3d8daebfee0b6f1a340b35806', - '542788998ec3d8daebf7f7f7fee0b6f1a340b35806', - '5427888073acb2abd2d8daebfee0b6fdb863e08214b35806', - '5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806', - '2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08', - '2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08' - ) - .map(Py), - Qy = Yy($y), - Jy = new Array(3) - .concat( - 'ef8a62f7f7f767a9cf', - 'ca0020f4a58292c5de0571b0', - 'ca0020f4a582f7f7f792c5de0571b0', - 'b2182bef8a62fddbc7d1e5f067a9cf2166ac', - 'b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac', - 'b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac', - 'b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac', - '67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061', - '67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061' - ) - .map(Py), - Zy = Yy(Jy), - ev = new Array(3) - .concat( - 'ef8a62ffffff999999', - 'ca0020f4a582bababa404040', - 'ca0020f4a582ffffffbababa404040', - 'b2182bef8a62fddbc7e0e0e09999994d4d4d', - 'b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d', - 'b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d', - 'b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d', - '67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a', - '67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a' - ) - .map(Py), - tv = Yy(ev), - nv = new Array(3) - .concat( - 'fc8d59ffffbf91bfdb', - 'd7191cfdae61abd9e92c7bb6', - 'd7191cfdae61ffffbfabd9e92c7bb6', - 'd73027fc8d59fee090e0f3f891bfdb4575b4', - 'd73027fc8d59fee090ffffbfe0f3f891bfdb4575b4', - 'd73027f46d43fdae61fee090e0f3f8abd9e974add14575b4', - 'd73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4', - 'a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695', - 'a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695' - ) - .map(Py), - rv = Yy(nv), - ov = new Array(3) - .concat( - 'fc8d59ffffbf91cf60', - 'd7191cfdae61a6d96a1a9641', - 'd7191cfdae61ffffbfa6d96a1a9641', - 'd73027fc8d59fee08bd9ef8b91cf601a9850', - 'd73027fc8d59fee08bffffbfd9ef8b91cf601a9850', - 'd73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850', - 'd73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850', - 'a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837', - 'a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837' - ) - .map(Py), - iv = Yy(ov), - av = new Array(3) - .concat( - 'fc8d59ffffbf99d594', - 'd7191cfdae61abdda42b83ba', - 'd7191cfdae61ffffbfabdda42b83ba', - 'd53e4ffc8d59fee08be6f59899d5943288bd', - 'd53e4ffc8d59fee08bffffbfe6f59899d5943288bd', - 'd53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd', - 'd53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd', - '9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2', - '9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2' - ) - .map(Py), - sv = Yy(av), - cv = new Array(3) - .concat( - 'e5f5f999d8c92ca25f', - 'edf8fbb2e2e266c2a4238b45', - 'edf8fbb2e2e266c2a42ca25f006d2c', - 'edf8fbccece699d8c966c2a42ca25f006d2c', - 'edf8fbccece699d8c966c2a441ae76238b45005824', - 'f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824', - 'f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b' - ) - .map(Py), - uv = Yy(cv), - lv = new Array(3) - .concat( - 'e0ecf49ebcda8856a7', - 'edf8fbb3cde38c96c688419d', - 'edf8fbb3cde38c96c68856a7810f7c', - 'edf8fbbfd3e69ebcda8c96c68856a7810f7c', - 'edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b', - 'f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b', - 'f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b' - ) - .map(Py), - fv = Yy(lv), - dv = new Array(3) - .concat( - 'e0f3dba8ddb543a2ca', - 'f0f9e8bae4bc7bccc42b8cbe', - 'f0f9e8bae4bc7bccc443a2ca0868ac', - 'f0f9e8ccebc5a8ddb57bccc443a2ca0868ac', - 'f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e', - 'f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e', - 'f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081' - ) - .map(Py), - pv = Yy(dv), - hv = new Array(3) - .concat( - 'fee8c8fdbb84e34a33', - 'fef0d9fdcc8afc8d59d7301f', - 'fef0d9fdcc8afc8d59e34a33b30000', - 'fef0d9fdd49efdbb84fc8d59e34a33b30000', - 'fef0d9fdd49efdbb84fc8d59ef6548d7301f990000', - 'fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000', - 'fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000' - ) - .map(Py), - gv = Yy(hv), - mv = new Array(3) - .concat( - 'ece2f0a6bddb1c9099', - 'f6eff7bdc9e167a9cf02818a', - 'f6eff7bdc9e167a9cf1c9099016c59', - 'f6eff7d0d1e6a6bddb67a9cf1c9099016c59', - 'f6eff7d0d1e6a6bddb67a9cf3690c002818a016450', - 'fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450', - 'fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636' - ) - .map(Py), - bv = Yy(mv), - yv = new Array(3) - .concat( - 'ece7f2a6bddb2b8cbe', - 'f1eef6bdc9e174a9cf0570b0', - 'f1eef6bdc9e174a9cf2b8cbe045a8d', - 'f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d', - 'f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b', - 'fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b', - 'fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858' - ) - .map(Py), - vv = Yy(yv), - _v = new Array(3) - .concat( - 'e7e1efc994c7dd1c77', - 'f1eef6d7b5d8df65b0ce1256', - 'f1eef6d7b5d8df65b0dd1c77980043', - 'f1eef6d4b9dac994c7df65b0dd1c77980043', - 'f1eef6d4b9dac994c7df65b0e7298ace125691003f', - 'f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f', - 'f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f' - ) - .map(Py), - xv = Yy(_v), - wv = new Array(3) - .concat( - 'fde0ddfa9fb5c51b8a', - 'feebe2fbb4b9f768a1ae017e', - 'feebe2fbb4b9f768a1c51b8a7a0177', - 'feebe2fcc5c0fa9fb5f768a1c51b8a7a0177', - 'feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177', - 'fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177', - 'fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a' - ) - .map(Py), - Mv = Yy(wv), - kv = new Array(3) - .concat( - 'edf8b17fcdbb2c7fb8', - 'ffffcca1dab441b6c4225ea8', - 'ffffcca1dab441b6c42c7fb8253494', - 'ffffccc7e9b47fcdbb41b6c42c7fb8253494', - 'ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84', - 'ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84', - 'ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58' - ) - .map(Py), - Sv = Yy(kv), - Av = new Array(3) - .concat( - 'f7fcb9addd8e31a354', - 'ffffccc2e69978c679238443', - 'ffffccc2e69978c67931a354006837', - 'ffffccd9f0a3addd8e78c67931a354006837', - 'ffffccd9f0a3addd8e78c67941ab5d238443005a32', - 'ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32', - 'ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529' - ) - .map(Py), - Ov = Yy(Av), - Ev = new Array(3) - .concat( - 'fff7bcfec44fd95f0e', - 'ffffd4fed98efe9929cc4c02', - 'ffffd4fed98efe9929d95f0e993404', - 'ffffd4fee391fec44ffe9929d95f0e993404', - 'ffffd4fee391fec44ffe9929ec7014cc4c028c2d04', - 'ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04', - 'ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506' - ) - .map(Py), - Tv = Yy(Ev), - Cv = new Array(3) - .concat( - 'ffeda0feb24cf03b20', - 'ffffb2fecc5cfd8d3ce31a1c', - 'ffffb2fecc5cfd8d3cf03b20bd0026', - 'ffffb2fed976feb24cfd8d3cf03b20bd0026', - 'ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026', - 'ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026', - 'ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026' - ) - .map(Py), - Lv = Yy(Cv), - Pv = new Array(3) - .concat( - 'deebf79ecae13182bd', - 'eff3ffbdd7e76baed62171b5', - 'eff3ffbdd7e76baed63182bd08519c', - 'eff3ffc6dbef9ecae16baed63182bd08519c', - 'eff3ffc6dbef9ecae16baed64292c62171b5084594', - 'f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594', - 'f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b' - ) - .map(Py), - Dv = Yy(Pv), - zv = new Array(3) - .concat( - 'e5f5e0a1d99b31a354', - 'edf8e9bae4b374c476238b45', - 'edf8e9bae4b374c47631a354006d2c', - 'edf8e9c7e9c0a1d99b74c47631a354006d2c', - 'edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32', - 'f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32', - 'f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b' - ) - .map(Py), - Nv = Yy(zv), - jv = new Array(3) - .concat( - 'f0f0f0bdbdbd636363', - 'f7f7f7cccccc969696525252', - 'f7f7f7cccccc969696636363252525', - 'f7f7f7d9d9d9bdbdbd969696636363252525', - 'f7f7f7d9d9d9bdbdbd969696737373525252252525', - 'fffffff0f0f0d9d9d9bdbdbd969696737373525252252525', - 'fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000' - ) - .map(Py), - Rv = Yy(jv), - Iv = new Array(3) - .concat( - 'efedf5bcbddc756bb1', - 'f2f0f7cbc9e29e9ac86a51a3', - 'f2f0f7cbc9e29e9ac8756bb154278f', - 'f2f0f7dadaebbcbddc9e9ac8756bb154278f', - 'f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486', - 'fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486', - 'fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d' - ) - .map(Py), - Fv = Yy(Iv), - qv = new Array(3) - .concat( - 'fee0d2fc9272de2d26', - 'fee5d9fcae91fb6a4acb181d', - 'fee5d9fcae91fb6a4ade2d26a50f15', - 'fee5d9fcbba1fc9272fb6a4ade2d26a50f15', - 'fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d', - 'fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d', - 'fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d' - ) - .map(Py), - Bv = Yy(qv), - Hv = new Array(3) - .concat( - 'fee6cefdae6be6550d', - 'feeddefdbe85fd8d3cd94701', - 'feeddefdbe85fd8d3ce6550da63603', - 'feeddefdd0a2fdae6bfd8d3ce6550da63603', - 'feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04', - 'fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04', - 'fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704' - ) - .map(Py), - Yv = Yy(Hv), - Wv = 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)))) - ) - ) - ) + - ')' - ); - }, - Vv = wh(Pi(300, 0.5, 0), Pi(-240, 0.5, 1)), - Uv = wh(Pi(-100, 0.75, 0.35), Pi(80, 1.5, 0.8)), - Xv = wh(Pi(260, 0.75, 0.35), Pi(80, 1.5, 0.8)), - Gv = Pi(), - Kv = function(e) { - (e < 0 || e > 1) && (e -= Math.floor(e)); - var t = Math.abs(e - 0.5); - return ( - (Gv.h = 360 * e - 100), - (Gv.s = 1.5 - 1.5 * t), - (Gv.l = 0.8 - 0.9 * t), - Gv + '' - ); - }, - $v = Gt(), - Qv = Math.PI / 3, - Jv = (2 * Math.PI) / 3, - Zv = function(e) { - var t; - return ( - (e = (0.5 - e) * Math.PI), - ($v.r = 255 * (t = Math.sin(e)) * t), - ($v.g = 255 * (t = Math.sin(e + Qv)) * t), - ($v.b = 255 * (t = Math.sin(e + Jv)) * t), - $v + '' - ); - }, - e_ = 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)))) + }, + function(e, t, n) { + (function(t) { + /*! + * Quill Editor v1.3.7 + * https://quilljs.com/ + * Copyright (c) 2014, Jason Chen + * Copyright (c) 2013, salesforce.com + */ + var n; + 'undefined' != typeof self && self, + (n = function() { + return (function(e) { + var t = {}; + function n(r) { + if (t[r]) return t[r].exports; + var o = (t[r] = { i: r, l: !1, exports: {} }); + return ( + e[r].call(o.exports, o, o.exports, n), (o.l = !0), o.exports + ); + } + return ( + (n.m = e), + (n.c = t), + (n.d = function(e, t, r) { + n.o(e, t) || + Object.defineProperty(e, t, { + configurable: !1, + enumerable: !0, + get: r + }); + }), + (n.n = function(e) { + var t = + e && e.__esModule + ? function() { + return e.default; + } + : function() { + return e; + }; + return n.d(t, 'a', t), t; + }), + (n.o = function(e, t) { + return Object.prototype.hasOwnProperty.call(e, t); + }), + (n.p = ''), + n((n.s = 109)) + ); + })([ + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(17), + o = n(18), + i = n(19), + a = n(45), + s = n(46), + c = n(47), + u = n(48), + l = n(49), + f = n(12), + d = n(32), + p = n(33), + h = n(31), + g = n(1), + m = { + Scope: g.Scope, + create: g.create, + find: g.find, + query: g.query, + register: g.register, + Container: r.default, + Format: o.default, + Leaf: i.default, + Embed: u.default, + Scroll: a.default, + Block: c.default, + Inline: s.default, + Text: l.default, + Attributor: { + Attribute: f.default, + Class: d.default, + Style: p.default, + Store: h.default + } + }; + t.default = m; + }, + function(e, t, n) { + 'use strict'; + var r, + o = + (this && this.__extends) || + ((r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function(e, t) { + e.__proto__ = t; + }) || + function(e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + }), + function(e, t) { + function n() { + this.constructor = e; + } + r(e, t), + (e.prototype = + null === t + ? Object.create(t) + : ((n.prototype = t.prototype), new n())); + }); + Object.defineProperty(t, '__esModule', { value: !0 }); + var i = (function(e) { + function t(t) { + var n = this; + return ( + (t = '[Parchment] ' + t), + ((n = e.call(this, t) || this).message = t), + (n.name = n.constructor.name), + n + ); + } + return o(t, e), t; + })(Error); + t.ParchmentError = i; + var a, + s = {}, + c = {}, + u = {}, + l = {}; + function f(e, t) { + var n; + if ((void 0 === t && (t = a.ANY), 'string' == typeof e)) + n = l[e] || s[e]; + else if (e instanceof Text || e.nodeType === Node.TEXT_NODE) + n = l.text; + else if ('number' == typeof e) + e & a.LEVEL & a.BLOCK + ? (n = l.block) + : e & a.LEVEL & a.INLINE && (n = l.inline); + else if (e instanceof HTMLElement) { + var r = (e.getAttribute('class') || '').split(/\s+/); + for (var o in r) if ((n = c[r[o]])) break; + n = n || u[e.tagName]; + } + return null == n + ? null + : t & a.LEVEL & n.scope && t & a.TYPE & n.scope + ? n + : null; + } + (t.DATA_KEY = '__blot'), + (function(e) { + (e[(e.TYPE = 3)] = 'TYPE'), + (e[(e.LEVEL = 12)] = 'LEVEL'), + (e[(e.ATTRIBUTE = 13)] = 'ATTRIBUTE'), + (e[(e.BLOT = 14)] = 'BLOT'), + (e[(e.INLINE = 7)] = 'INLINE'), + (e[(e.BLOCK = 11)] = 'BLOCK'), + (e[(e.BLOCK_BLOT = 10)] = 'BLOCK_BLOT'), + (e[(e.INLINE_BLOT = 6)] = 'INLINE_BLOT'), + (e[(e.BLOCK_ATTRIBUTE = 9)] = 'BLOCK_ATTRIBUTE'), + (e[(e.INLINE_ATTRIBUTE = 5)] = 'INLINE_ATTRIBUTE'), + (e[(e.ANY = 15)] = 'ANY'); + })((a = t.Scope || (t.Scope = {}))), + (t.create = function(e, t) { + var n = f(e); + if (null == n) + throw new i('Unable to create ' + e + ' blot'); + var r = n, + o = + e instanceof Node || e.nodeType === Node.TEXT_NODE + ? e + : r.create(t); + return new r(o, t); + }), + (t.find = function e(n, r) { + return ( + void 0 === r && (r = !1), + null == n + ? null + : null != n[t.DATA_KEY] + ? n[t.DATA_KEY].blot + : r + ? e(n.parentNode, r) + : null + ); + }), + (t.query = f), + (t.register = function e() { + for (var t = [], n = 0; n < arguments.length; n++) + t[n] = arguments[n]; + if (t.length > 1) + return t.map(function(t) { + return e(t); + }); + var r = t[0]; + if ( + 'string' != typeof r.blotName && + 'string' != typeof r.attrName + ) + throw new i('Invalid definition'); + if ('abstract' === r.blotName) + throw new i('Cannot register abstract class'); + return ( + (l[r.blotName || r.attrName] = r), + 'string' == typeof r.keyName + ? (s[r.keyName] = r) + : (null != r.className && (c[r.className] = r), + null != r.tagName && + (Array.isArray(r.tagName) + ? (r.tagName = r.tagName.map(function(e) { + return e.toUpperCase(); + })) + : (r.tagName = r.tagName.toUpperCase()), + (Array.isArray(r.tagName) + ? r.tagName + : [r.tagName] + ).forEach(function(e) { + (null != u[e] && null != r.className) || + (u[e] = r); + }))), + r + ); + }); + }, + function(e, t, n) { + var r = n(51), + o = n(11), + i = n(3), + a = n(20), + s = String.fromCharCode(0), + c = function(e) { + Array.isArray(e) + ? (this.ops = e) + : null != e && Array.isArray(e.ops) + ? (this.ops = e.ops) + : (this.ops = []); + }; + (c.prototype.insert = function(e, t) { + var n = {}; + return 0 === e.length + ? this + : ((n.insert = e), + null != t && + 'object' == typeof t && + Object.keys(t).length > 0 && + (n.attributes = t), + this.push(n)); + }), + (c.prototype.delete = function(e) { + return e <= 0 ? this : this.push({ delete: e }); + }), + (c.prototype.retain = function(e, t) { + if (e <= 0) return this; + var n = { retain: e }; + return ( + null != t && + 'object' == typeof t && + Object.keys(t).length > 0 && + (n.attributes = t), + this.push(n) + ); + }), + (c.prototype.push = function(e) { + var t = this.ops.length, + n = this.ops[t - 1]; + if (((e = i(!0, {}, e)), 'object' == typeof n)) { + if ( + 'number' == typeof e.delete && + 'number' == typeof n.delete + ) + return ( + (this.ops[t - 1] = { delete: n.delete + e.delete }), + this + ); + if ( + 'number' == typeof n.delete && + null != e.insert && + ((t -= 1), 'object' != typeof (n = this.ops[t - 1])) + ) + return this.ops.unshift(e), this; + if (o(e.attributes, n.attributes)) { + if ( + 'string' == typeof e.insert && + 'string' == typeof n.insert + ) + return ( + (this.ops[t - 1] = { insert: n.insert + e.insert }), + 'object' == typeof e.attributes && + (this.ops[t - 1].attributes = e.attributes), + this + ); + if ( + 'number' == typeof e.retain && + 'number' == typeof n.retain + ) + return ( + (this.ops[t - 1] = { retain: n.retain + e.retain }), + 'object' == typeof e.attributes && + (this.ops[t - 1].attributes = e.attributes), + this + ); + } + } + return ( + t === this.ops.length + ? this.ops.push(e) + : this.ops.splice(t, 0, e), + this + ); + }), + (c.prototype.chop = function() { + var e = this.ops[this.ops.length - 1]; + return ( + e && e.retain && !e.attributes && this.ops.pop(), this + ); + }), + (c.prototype.filter = function(e) { + return this.ops.filter(e); + }), + (c.prototype.forEach = function(e) { + this.ops.forEach(e); + }), + (c.prototype.map = function(e) { + return this.ops.map(e); + }), + (c.prototype.partition = function(e) { + var t = [], + n = []; + return ( + this.forEach(function(r) { + (e(r) ? t : n).push(r); + }), + [t, n] + ); + }), + (c.prototype.reduce = function(e, t) { + return this.ops.reduce(e, t); + }), + (c.prototype.changeLength = function() { + return this.reduce(function(e, t) { + return t.insert + ? e + a.length(t) + : t.delete + ? e - t.delete + : e; + }, 0); + }), + (c.prototype.length = function() { + return this.reduce(function(e, t) { + return e + a.length(t); + }, 0); + }), + (c.prototype.slice = function(e, t) { + (e = e || 0), 'number' != typeof t && (t = 1 / 0); + for ( + var n = [], r = a.iterator(this.ops), o = 0; + o < t && r.hasNext(); + + ) { + var i; + o < e + ? (i = r.next(e - o)) + : ((i = r.next(t - o)), n.push(i)), + (o += a.length(i)); + } + return new c(n); + }), + (c.prototype.compose = function(e) { + var t = a.iterator(this.ops), + n = a.iterator(e.ops), + r = [], + i = n.peek(); + if ( + null != i && + 'number' == typeof i.retain && + null == i.attributes + ) { + for ( + var s = i.retain; + 'insert' === t.peekType() && t.peekLength() <= s; + + ) + (s -= t.peekLength()), r.push(t.next()); + i.retain - s > 0 && n.next(i.retain - s); + } + for (var u = new c(r); t.hasNext() || n.hasNext(); ) + if ('insert' === n.peekType()) u.push(n.next()); + else if ('delete' === t.peekType()) u.push(t.next()); + else { + var l = Math.min(t.peekLength(), n.peekLength()), + f = t.next(l), + d = n.next(l); + if ('number' == typeof d.retain) { + var p = {}; + 'number' == typeof f.retain + ? (p.retain = l) + : (p.insert = f.insert); + var h = a.attributes.compose( + f.attributes, + d.attributes, + 'number' == typeof f.retain + ); + if ( + (h && (p.attributes = h), + u.push(p), + !n.hasNext() && o(u.ops[u.ops.length - 1], p)) + ) { + var g = new c(t.rest()); + return u.concat(g).chop(); + } + } else + 'number' == typeof d.delete && + 'number' == typeof f.retain && + u.push(d); + } + return u.chop(); + }), + (c.prototype.concat = function(e) { + var t = new c(this.ops.slice()); + return ( + e.ops.length > 0 && + (t.push(e.ops[0]), + (t.ops = t.ops.concat(e.ops.slice(1)))), + t + ); + }), + (c.prototype.diff = function(e, t) { + if (this.ops === e.ops) return new c(); + var n = [this, e].map(function(t) { + return t + .map(function(n) { + if (null != n.insert) + return 'string' == typeof n.insert ? n.insert : s; + throw new Error( + 'diff() called ' + + (t === e ? 'on' : 'with') + + ' non-document' + ); + }) + .join(''); + }), + i = new c(), + u = r(n[0], n[1], t), + l = a.iterator(this.ops), + f = a.iterator(e.ops); + return ( + u.forEach(function(e) { + for (var t = e[1].length; t > 0; ) { + var n = 0; + switch (e[0]) { + case r.INSERT: + (n = Math.min(f.peekLength(), t)), + i.push(f.next(n)); + break; + case r.DELETE: + (n = Math.min(t, l.peekLength())), + l.next(n), + i.delete(n); + break; + case r.EQUAL: + n = Math.min(l.peekLength(), f.peekLength(), t); + var s = l.next(n), + c = f.next(n); + o(s.insert, c.insert) + ? i.retain( + n, + a.attributes.diff( + s.attributes, + c.attributes + ) + ) + : i.push(c).delete(n); + } + t -= n; + } + }), + i.chop() + ); + }), + (c.prototype.eachLine = function(e, t) { + t = t || '\n'; + for ( + var n = a.iterator(this.ops), r = new c(), o = 0; + n.hasNext(); + + ) { + if ('insert' !== n.peekType()) return; + var i = n.peek(), + s = a.length(i) - n.peekLength(), + u = + 'string' == typeof i.insert + ? i.insert.indexOf(t, s) - s + : -1; + if (u < 0) r.push(n.next()); + else if (u > 0) r.push(n.next(u)); + else { + if (!1 === e(r, n.next(1).attributes || {}, o)) return; + (o += 1), (r = new c()); + } + } + r.length() > 0 && e(r, {}, o); + }), + (c.prototype.transform = function(e, t) { + if (((t = !!t), 'number' == typeof e)) + return this.transformPosition(e, t); + for ( + var n = a.iterator(this.ops), + r = a.iterator(e.ops), + o = new c(); + n.hasNext() || r.hasNext(); + + ) + if ( + 'insert' !== n.peekType() || + (!t && 'insert' === r.peekType()) + ) + if ('insert' === r.peekType()) o.push(r.next()); + else { + var i = Math.min(n.peekLength(), r.peekLength()), + s = n.next(i), + u = r.next(i); + if (s.delete) continue; + u.delete + ? o.push(u) + : o.retain( + i, + a.attributes.transform( + s.attributes, + u.attributes, + t + ) + ); + } + else o.retain(a.length(n.next())); + return o.chop(); + }), + (c.prototype.transformPosition = function(e, t) { + t = !!t; + for ( + var n = a.iterator(this.ops), r = 0; + n.hasNext() && r <= e; + + ) { + var o = n.peekLength(), + i = n.peekType(); + n.next(), + 'delete' !== i + ? ('insert' === i && (r < e || !t) && (e += o), + (r += o)) + : (e -= Math.min(o, e - r)); + } + return e; + }), + (e.exports = c); + }, + function(e, t) { + 'use strict'; + var n = Object.prototype.hasOwnProperty, + r = Object.prototype.toString, + o = Object.defineProperty, + i = Object.getOwnPropertyDescriptor, + a = function(e) { + return 'function' == typeof Array.isArray + ? Array.isArray(e) + : '[object Array]' === r.call(e); + }, + s = function(e) { + if (!e || '[object Object]' !== r.call(e)) return !1; + var t, + o = n.call(e, 'constructor'), + i = + e.constructor && + e.constructor.prototype && + n.call(e.constructor.prototype, 'isPrototypeOf'); + if (e.constructor && !o && !i) return !1; + for (t in e); + return void 0 === t || n.call(e, t); + }, + c = function(e, t) { + o && '__proto__' === t.name + ? o(e, t.name, { + enumerable: !0, + configurable: !0, + value: t.newValue, + writable: !0 + }) + : (e[t.name] = t.newValue); + }, + u = function(e, t) { + if ('__proto__' === t) { + if (!n.call(e, t)) return; + if (i) return i(e, t).value; + } + return e[t]; + }; + e.exports = function e() { + var t, + n, + r, + o, + i, + l, + f = arguments[0], + d = 1, + p = arguments.length, + h = !1; + for ( + 'boolean' == typeof f && + ((h = f), (f = arguments[1] || {}), (d = 2)), + (null == f || + ('object' != typeof f && 'function' != typeof f)) && + (f = {}); + d < p; + ++d ) - ) - ) + - ', ' + - 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)))) + if (null != (t = arguments[d])) + for (n in t) + (r = u(f, n)), + f !== (o = u(t, n)) && + (h && o && (s(o) || (i = a(o))) + ? (i + ? ((i = !1), (l = r && a(r) ? r : [])) + : (l = r && s(r) ? r : {}), + c(f, { name: n, newValue: e(h, l, o) })) + : void 0 !== o && c(f, { name: n, newValue: o })); + return f; + }; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = t.BlockEmbed = t.bubbleFormats = void 0); + var r = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + o = function e(t, n, r) { + null === t && (t = Function.prototype); + var o = Object.getOwnPropertyDescriptor(t, n); + if (void 0 === o) { + var i = Object.getPrototypeOf(t); + return null === i ? void 0 : e(i, n, r); + } + if ('value' in o) return o.value; + var a = o.get; + return void 0 !== a ? a.call(r) : void 0; + }, + i = f(n(3)), + a = f(n(2)), + s = f(n(0)), + c = f(n(16)), + u = f(n(6)), + l = f(n(7)); + function f(e) { + return e && e.__esModule ? e : { default: e }; + } + function d(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + } + function p(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || ('object' != typeof t && 'function' != typeof t) + ? e + : t; + } + function h(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + } + var g = (function(e) { + function t() { + return ( + d(this, t), + p( + this, + (t.__proto__ || Object.getPrototypeOf(t)).apply( + this, + arguments + ) + ) + ); + } + return ( + h(t, e), + r(t, [ + { + key: 'attach', + value: function() { + o( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'attach', + this + ).call(this), + (this.attributes = new s.default.Attributor.Store( + this.domNode + )); + } + }, + { + key: 'delta', + value: function() { + return new a.default().insert( + this.value(), + (0, i.default)( + this.formats(), + this.attributes.values() + ) + ); + } + }, + { + key: 'format', + value: function(e, t) { + var n = s.default.query( + e, + s.default.Scope.BLOCK_ATTRIBUTE + ); + null != n && this.attributes.attribute(n, t); + } + }, + { + key: 'formatAt', + value: function(e, t, n, r) { + this.format(n, r); + } + }, + { + key: 'insertAt', + value: function(e, n, r) { + if ('string' == typeof n && n.endsWith('\n')) { + var i = s.default.create(m.blotName); + this.parent.insertBefore( + i, + 0 === e ? this : this.next + ), + i.insertAt(0, n.slice(0, -1)); + } else + o( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'insertAt', + this + ).call(this, e, n, r); + } + } + ]), + t + ); + })(s.default.Embed); + g.scope = s.default.Scope.BLOCK_BLOT; + var m = (function(e) { + function t(e) { + d(this, t); + var n = p( + this, + (t.__proto__ || Object.getPrototypeOf(t)).call(this, e) + ); + return (n.cache = {}), n; + } + return ( + h(t, e), + r(t, [ + { + key: 'delta', + value: function() { + return ( + null == this.cache.delta && + (this.cache.delta = this.descendants( + s.default.Leaf + ) + .reduce(function(e, t) { + return 0 === t.length() + ? e + : e.insert(t.value(), b(t)); + }, new a.default()) + .insert('\n', b(this))), + this.cache.delta + ); + } + }, + { + key: 'deleteAt', + value: function(e, n) { + o( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'deleteAt', + this + ).call(this, e, n), + (this.cache = {}); + } + }, + { + key: 'formatAt', + value: function(e, n, r, i) { + n <= 0 || + (s.default.query(r, s.default.Scope.BLOCK) + ? e + n === this.length() && this.format(r, i) + : o( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'formatAt', + this + ).call( + this, + e, + Math.min(n, this.length() - e - 1), + r, + i + ), + (this.cache = {})); + } + }, + { + key: 'insertAt', + value: function(e, n, r) { + if (null != r) + return o( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'insertAt', + this + ).call(this, e, n, r); + if (0 !== n.length) { + var i = n.split('\n'), + a = i.shift(); + a.length > 0 && + (e < this.length() - 1 || + null == this.children.tail + ? o( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'insertAt', + this + ).call( + this, + Math.min(e, this.length() - 1), + a + ) + : this.children.tail.insertAt( + this.children.tail.length(), + a + ), + (this.cache = {})); + var s = this; + i.reduce(function(e, t) { + return ( + (s = s.split(e, !0)).insertAt(0, t), t.length + ); + }, e + a.length); + } + } + }, + { + key: 'insertBefore', + value: function(e, n) { + var r = this.children.head; + o( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'insertBefore', + this + ).call(this, e, n), + r instanceof c.default && r.remove(), + (this.cache = {}); + } + }, + { + key: 'length', + value: function() { + return ( + null == this.cache.length && + (this.cache.length = + o( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'length', + this + ).call(this) + 1), + this.cache.length + ); + } + }, + { + key: 'moveChildren', + value: function(e, n) { + o( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'moveChildren', + this + ).call(this, e, n), + (this.cache = {}); + } + }, + { + key: 'optimize', + value: function(e) { + o( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'optimize', + this + ).call(this, e), + (this.cache = {}); + } + }, + { + key: 'path', + value: function(e) { + return o( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'path', + this + ).call(this, e, !0); + } + }, + { + key: 'removeChild', + value: function(e) { + o( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'removeChild', + this + ).call(this, e), + (this.cache = {}); + } + }, + { + key: 'split', + value: function(e) { + var n = + arguments.length > 1 && + void 0 !== arguments[1] && + arguments[1]; + if (n && (0 === e || e >= this.length() - 1)) { + var r = this.clone(); + return 0 === e + ? (this.parent.insertBefore(r, this), this) + : (this.parent.insertBefore(r, this.next), r); + } + var i = o( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'split', + this + ).call(this, e, n); + return (this.cache = {}), i; + } + } + ]), + t + ); + })(s.default.Block); + function b(e) { + var t = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : {}; + return null == e + ? t + : ('function' == typeof e.formats && + (t = (0, i.default)(t, e.formats())), + null == e.parent || + 'scroll' == e.parent.blotName || + e.parent.statics.scope !== e.statics.scope + ? t + : b(e.parent, t)); + } + (m.blotName = 'block'), + (m.tagName = 'P'), + (m.defaultChild = 'break'), + (m.allowedChildren = [u.default, s.default.Embed, l.default]), + (t.bubbleFormats = b), + (t.BlockEmbed = g), + (t.default = m); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = t.overload = t.expandConfig = void 0); + var r = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(e) { + return typeof e; + } + : function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e; + }, + o = function(e, t) { + if (Array.isArray(e)) return e; + if (Symbol.iterator in Object(e)) + return (function(e, t) { + var n = [], + r = !0, + o = !1, + i = void 0; + try { + for ( + var a, s = e[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !t || n.length !== t); + r = !0 + ); + } catch (e) { + (o = !0), (i = e); + } finally { + try { + !r && s.return && s.return(); + } finally { + if (o) throw i; + } + } + return n; + })(e, t); + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' + ); + }, + i = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(); + n(50); + var a = m(n(2)), + s = m(n(14)), + c = m(n(8)), + u = m(n(9)), + l = m(n(0)), + f = n(15), + d = m(f), + p = m(n(3)), + h = m(n(10)), + g = m(n(34)); + function m(e) { + return e && e.__esModule ? e : { default: e }; + } + function b(e, t, n) { + return ( + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), + e + ); + } + var y = (0, h.default)('quill'), + v = (function() { + function e(t) { + var n = this, + r = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : {}; + if ( + ((function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, e), + (this.options = _(t, r)), + (this.container = this.options.container), + null == this.container) + ) + return y.error('Invalid Quill container', t); + this.options.debug && e.debug(this.options.debug); + var o = this.container.innerHTML.trim(); + this.container.classList.add('ql-container'), + (this.container.innerHTML = ''), + (this.container.__quill = this), + (this.root = this.addContainer('ql-editor')), + this.root.classList.add('ql-blank'), + this.root.setAttribute('data-gramm', !1), + (this.scrollingContainer = + this.options.scrollingContainer || this.root), + (this.emitter = new c.default()), + (this.scroll = l.default.create(this.root, { + emitter: this.emitter, + whitelist: this.options.formats + })), + (this.editor = new s.default(this.scroll)), + (this.selection = new d.default( + this.scroll, + this.emitter + )), + (this.theme = new this.options.theme( + this, + this.options + )), + (this.keyboard = this.theme.addModule('keyboard')), + (this.clipboard = this.theme.addModule('clipboard')), + (this.history = this.theme.addModule('history')), + this.theme.init(), + this.emitter.on( + c.default.events.EDITOR_CHANGE, + function(e) { + e === c.default.events.TEXT_CHANGE && + n.root.classList.toggle( + 'ql-blank', + n.editor.isBlank() + ); + } + ), + this.emitter.on( + c.default.events.SCROLL_UPDATE, + function(e, t) { + var r = n.selection.lastRange, + o = r && 0 === r.length ? r.index : void 0; + w.call( + n, + function() { + return n.editor.update(null, t, o); + }, + e + ); + } + ); + var i = this.clipboard.convert( + '
' + + o + + '


' + ); + this.setContents(i), + this.history.clear(), + this.options.placeholder && + this.root.setAttribute( + 'data-placeholder', + this.options.placeholder + ), + this.options.readOnly && this.disable(); + } + return ( + i(e, null, [ + { + key: 'debug', + value: function(e) { + !0 === e && (e = 'log'), h.default.level(e); + } + }, + { + key: 'find', + value: function(e) { + return e.__quill || l.default.find(e); + } + }, + { + key: 'import', + value: function(e) { + return ( + null == this.imports[e] && + y.error( + 'Cannot import ' + + e + + '. Are you sure it was registered?' + ), + this.imports[e] + ); + } + }, + { + key: 'register', + value: function(e, t) { + var n = this, + r = + arguments.length > 2 && + void 0 !== arguments[2] && + arguments[2]; + if ('string' != typeof e) { + var o = e.attrName || e.blotName; + 'string' == typeof o + ? this.register('formats/' + o, e, t) + : Object.keys(e).forEach(function(r) { + n.register(r, e[r], t); + }); + } else + null == this.imports[e] || + r || + y.warn('Overwriting ' + e + ' with', t), + (this.imports[e] = t), + (e.startsWith('blots/') || + e.startsWith('formats/')) && + 'abstract' !== t.blotName + ? l.default.register(t) + : e.startsWith('modules') && + 'function' == typeof t.register && + t.register(); + } + } + ]), + i(e, [ + { + key: 'addContainer', + value: function(e) { + var t = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : null; + if ('string' == typeof e) { + var n = e; + (e = document.createElement('div')).classList.add( + n + ); + } + return this.container.insertBefore(e, t), e; + } + }, + { + key: 'blur', + value: function() { + this.selection.setRange(null); + } + }, + { + key: 'deleteText', + value: function(e, t, n) { + var r = this, + i = x(e, t, n), + a = o(i, 4); + return ( + (e = a[0]), + (t = a[1]), + (n = a[3]), + w.call( + this, + function() { + return r.editor.deleteText(e, t); + }, + n, + e, + -1 * t + ) + ); + } + }, + { + key: 'disable', + value: function() { + this.enable(!1); + } + }, + { + key: 'enable', + value: function() { + var e = + !( + arguments.length > 0 && void 0 !== arguments[0] + ) || arguments[0]; + this.scroll.enable(e), + this.container.classList.toggle( + 'ql-disabled', + !e + ); + } + }, + { + key: 'focus', + value: function() { + var e = this.scrollingContainer.scrollTop; + this.selection.focus(), + (this.scrollingContainer.scrollTop = e), + this.scrollIntoView(); + } + }, + { + key: 'format', + value: function(e, t) { + var n = this, + r = + arguments.length > 2 && void 0 !== arguments[2] + ? arguments[2] + : c.default.sources.API; + return w.call( + this, + function() { + var r = n.getSelection(!0), + o = new a.default(); + if (null == r) return o; + if (l.default.query(e, l.default.Scope.BLOCK)) + o = n.editor.formatLine( + r.index, + r.length, + b({}, e, t) + ); + else { + if (0 === r.length) + return n.selection.format(e, t), o; + o = n.editor.formatText( + r.index, + r.length, + b({}, e, t) + ); + } + return ( + n.setSelection(r, c.default.sources.SILENT), o + ); + }, + r + ); + } + }, + { + key: 'formatLine', + value: function(e, t, n, r, i) { + var a, + s = this, + c = x(e, t, n, r, i), + u = o(c, 4); + return ( + (e = u[0]), + (t = u[1]), + (a = u[2]), + (i = u[3]), + w.call( + this, + function() { + return s.editor.formatLine(e, t, a); + }, + i, + e, + 0 + ) + ); + } + }, + { + key: 'formatText', + value: function(e, t, n, r, i) { + var a, + s = this, + c = x(e, t, n, r, i), + u = o(c, 4); + return ( + (e = u[0]), + (t = u[1]), + (a = u[2]), + (i = u[3]), + w.call( + this, + function() { + return s.editor.formatText(e, t, a); + }, + i, + e, + 0 + ) + ); + } + }, + { + key: 'getBounds', + value: function(e) { + var t = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : 0, + n = void 0; + n = + 'number' == typeof e + ? this.selection.getBounds(e, t) + : this.selection.getBounds(e.index, e.length); + var r = this.container.getBoundingClientRect(); + return { + bottom: n.bottom - r.top, + height: n.height, + left: n.left - r.left, + right: n.right - r.left, + top: n.top - r.top, + width: n.width + }; + } + }, + { + key: 'getContents', + value: function() { + var e = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : 0, + t = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : this.getLength() - e, + n = x(e, t), + r = o(n, 2); + return ( + (e = r[0]), + (t = r[1]), + this.editor.getContents(e, t) + ); + } + }, + { + key: 'getFormat', + value: function() { + var e = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : this.getSelection(!0), + t = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : 0; + return 'number' == typeof e + ? this.editor.getFormat(e, t) + : this.editor.getFormat(e.index, e.length); + } + }, + { + key: 'getIndex', + value: function(e) { + return e.offset(this.scroll); + } + }, + { + key: 'getLength', + value: function() { + return this.scroll.length(); + } + }, + { + key: 'getLeaf', + value: function(e) { + return this.scroll.leaf(e); + } + }, + { + key: 'getLine', + value: function(e) { + return this.scroll.line(e); + } + }, + { + key: 'getLines', + value: function() { + var e = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : 0, + t = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : Number.MAX_VALUE; + return 'number' != typeof e + ? this.scroll.lines(e.index, e.length) + : this.scroll.lines(e, t); + } + }, + { + key: 'getModule', + value: function(e) { + return this.theme.modules[e]; + } + }, + { + key: 'getSelection', + value: function() { + var e = + arguments.length > 0 && + void 0 !== arguments[0] && + arguments[0]; + return ( + e && this.focus(), + this.update(), + this.selection.getRange()[0] + ); + } + }, + { + key: 'getText', + value: function() { + var e = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : 0, + t = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : this.getLength() - e, + n = x(e, t), + r = o(n, 2); + return ( + (e = r[0]), (t = r[1]), this.editor.getText(e, t) + ); + } + }, + { + key: 'hasFocus', + value: function() { + return this.selection.hasFocus(); + } + }, + { + key: 'insertEmbed', + value: function(t, n, r) { + var o = this, + i = + arguments.length > 3 && void 0 !== arguments[3] + ? arguments[3] + : e.sources.API; + return w.call( + this, + function() { + return o.editor.insertEmbed(t, n, r); + }, + i, + t + ); + } + }, + { + key: 'insertText', + value: function(e, t, n, r, i) { + var a, + s = this, + c = x(e, 0, n, r, i), + u = o(c, 4); + return ( + (e = u[0]), + (a = u[2]), + (i = u[3]), + w.call( + this, + function() { + return s.editor.insertText(e, t, a); + }, + i, + e, + t.length + ) + ); + } + }, + { + key: 'isEnabled', + value: function() { + return !this.container.classList.contains( + 'ql-disabled' + ); + } + }, + { + key: 'off', + value: function() { + return this.emitter.off.apply( + this.emitter, + arguments + ); + } + }, + { + key: 'on', + value: function() { + return this.emitter.on.apply( + this.emitter, + arguments + ); + } + }, + { + key: 'once', + value: function() { + return this.emitter.once.apply( + this.emitter, + arguments + ); + } + }, + { + key: 'pasteHTML', + value: function(e, t, n) { + this.clipboard.dangerouslyPasteHTML(e, t, n); + } + }, + { + key: 'removeFormat', + value: function(e, t, n) { + var r = this, + i = x(e, t, n), + a = o(i, 4); + return ( + (e = a[0]), + (t = a[1]), + (n = a[3]), + w.call( + this, + function() { + return r.editor.removeFormat(e, t); + }, + n, + e + ) + ); + } + }, + { + key: 'scrollIntoView', + value: function() { + this.selection.scrollIntoView( + this.scrollingContainer + ); + } + }, + { + key: 'setContents', + value: function(e) { + var t = this, + n = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : c.default.sources.API; + return w.call( + this, + function() { + e = new a.default(e); + var n = t.getLength(), + r = t.editor.deleteText(0, n), + o = t.editor.applyDelta(e), + i = o.ops[o.ops.length - 1]; + return ( + null != i && + 'string' == typeof i.insert && + '\n' === i.insert[i.insert.length - 1] && + (t.editor.deleteText(t.getLength() - 1, 1), + o.delete(1)), + r.compose(o) + ); + }, + n + ); + } + }, + { + key: 'setSelection', + value: function(t, n, r) { + if (null == t) + this.selection.setRange(null, n || e.sources.API); + else { + var i = x(t, n, r), + a = o(i, 4); + (t = a[0]), + (n = a[1]), + (r = a[3]), + this.selection.setRange(new f.Range(t, n), r), + r !== c.default.sources.SILENT && + this.selection.scrollIntoView( + this.scrollingContainer + ); + } + } + }, + { + key: 'setText', + value: function(e) { + var t = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : c.default.sources.API, + n = new a.default().insert(e); + return this.setContents(n, t); + } + }, + { + key: 'update', + value: function() { + var e = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : c.default.sources.USER, + t = this.scroll.update(e); + return this.selection.update(e), t; + } + }, + { + key: 'updateContents', + value: function(e) { + var t = this, + n = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : c.default.sources.API; + return w.call( + this, + function() { + return ( + (e = new a.default(e)), + t.editor.applyDelta(e, n) + ); + }, + n, + !0 + ); + } + } + ]), + e + ); + })(); + function _(e, t) { + if ( + (t = (0, p.default)( + !0, + { + container: e, + modules: { clipboard: !0, keyboard: !0, history: !0 } + }, + t + )).theme && + t.theme !== v.DEFAULTS.theme + ) { + if ( + ((t.theme = v.import('themes/' + t.theme)), + null == t.theme) + ) + throw new Error( + 'Invalid theme ' + t.theme + '. Did you register it?' + ); + } else t.theme = g.default; + var n = (0, p.default)(!0, {}, t.theme.DEFAULTS); + [n, t].forEach(function(e) { + (e.modules = e.modules || {}), + Object.keys(e.modules).forEach(function(t) { + !0 === e.modules[t] && (e.modules[t] = {}); + }); + }); + var r = Object.keys(n.modules) + .concat(Object.keys(t.modules)) + .reduce(function(e, t) { + var n = v.import('modules/' + t); + return ( + null == n + ? y.error( + 'Cannot load ' + + t + + ' module. Are you sure you registered it?' + ) + : (e[t] = n.DEFAULTS || {}), + e + ); + }, {}); + return ( + null != t.modules && + t.modules.toolbar && + t.modules.toolbar.constructor !== Object && + (t.modules.toolbar = { container: t.modules.toolbar }), + (t = (0, p.default)( + !0, + {}, + v.DEFAULTS, + { modules: r }, + n, + t + )), + ['bounds', 'container', 'scrollingContainer'].forEach( + function(e) { + 'string' == typeof t[e] && + (t[e] = document.querySelector(t[e])); + } + ), + (t.modules = Object.keys(t.modules).reduce(function(e, n) { + return t.modules[n] && (e[n] = t.modules[n]), e; + }, {})), + t + ); + } + function w(e, t, n, r) { + if ( + this.options.strict && + !this.isEnabled() && + t === c.default.sources.USER ) - ) - ) + - ', ' + - Math.max( - 0, - Math.min( - 255, - Math.round( - 27.2 + - e * - (3211.1 - - e * - (15327.97 - - e * (27814 - e * (22569.18 - 6838.66 * e)))) + return new a.default(); + var o = null == n ? null : this.getSelection(), + i = this.editor.delta, + s = e(); + if ( + (null != o && + (!0 === n && (n = o.index), + null == r + ? (o = M(o, s, t)) + : 0 !== r && (o = M(o, n, r, t)), + this.setSelection(o, c.default.sources.SILENT)), + s.length() > 0) + ) { + var u, + l, + f = [c.default.events.TEXT_CHANGE, s, i, t]; + (u = this.emitter).emit.apply( + u, + [c.default.events.EDITOR_CHANGE].concat(f) + ), + t !== c.default.sources.SILENT && + (l = this.emitter).emit.apply(l, f); + } + return s; + } + function x(e, t, n, o, i) { + var a = {}; + return ( + 'number' == typeof e.index && 'number' == typeof e.length + ? 'number' != typeof t + ? ((i = o), + (o = n), + (n = t), + (t = e.length), + (e = e.index)) + : ((t = e.length), (e = e.index)) + : 'number' != typeof t && + ((i = o), (o = n), (n = t), (t = 0)), + 'object' === (void 0 === n ? 'undefined' : r(n)) + ? ((a = n), (i = o)) + : 'string' == typeof n && + (null != o ? (a[n] = o) : (i = n)), + [e, t, a, (i = i || c.default.sources.API)] + ); + } + function M(e, t, n, r) { + if (null == e) return null; + var i = void 0, + s = void 0; + if (t instanceof a.default) { + var u = [e.index, e.index + e.length].map(function(e) { + return t.transformPosition( + e, + r !== c.default.sources.USER + ); + }), + l = o(u, 2); + (i = l[0]), (s = l[1]); + } else { + var d = [e.index, e.index + e.length].map(function(e) { + return e < t || + (e === t && r === c.default.sources.USER) + ? e + : n >= 0 + ? e + n + : Math.max(t, e + n); + }), + p = o(d, 2); + (i = p[0]), (s = p[1]); + } + return new f.Range(i, s - i); + } + (v.DEFAULTS = { + bounds: null, + formats: null, + modules: {}, + placeholder: '', + readOnly: !1, + scrollingContainer: null, + strict: !0, + theme: 'default' + }), + (v.events = c.default.events), + (v.sources = c.default.sources), + (v.version = '1.3.7'), + (v.imports = { + delta: a.default, + parchment: l.default, + 'core/module': u.default, + 'core/theme': g.default + }), + (t.expandConfig = _), + (t.overload = x), + (t.default = v); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + o = function e(t, n, r) { + null === t && (t = Function.prototype); + var o = Object.getOwnPropertyDescriptor(t, n); + if (void 0 === o) { + var i = Object.getPrototypeOf(t); + return null === i ? void 0 : e(i, n, r); + } + if ('value' in o) return o.value; + var a = o.get; + return void 0 !== a ? a.call(r) : void 0; + }, + i = s(n(7)), + a = s(n(0)); + function s(e) { + return e && e.__esModule ? e : { default: e }; + } + var c = (function(e) { + function t() { + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( + this, + (t.__proto__ || Object.getPrototypeOf(t)).apply( + this, + arguments + ) + ) + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + r( + t, + [ + { + key: 'formatAt', + value: function(e, n, r, i) { + if ( + t.compare(this.statics.blotName, r) < 0 && + a.default.query(r, a.default.Scope.BLOT) + ) { + var s = this.isolate(e, n); + i && s.wrap(r, i); + } else + o( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'formatAt', + this + ).call(this, e, n, r, i); + } + }, + { + key: 'optimize', + value: function(e) { + if ( + (o( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'optimize', + this + ).call(this, e), + this.parent instanceof t && + t.compare( + this.statics.blotName, + this.parent.statics.blotName + ) > 0) + ) { + var n = this.parent.isolate( + this.offset(), + this.length() + ); + this.moveChildren(n), n.wrap(this); + } + } + } + ], + [ + { + key: 'compare', + value: function(e, n) { + var r = t.order.indexOf(e), + o = t.order.indexOf(n); + return r >= 0 || o >= 0 + ? r - o + : e === n + ? 0 + : e < n + ? -1 + : 1; + } + } + ] + ), + t + ); + })(a.default.Inline); + (c.allowedChildren = [c, a.default.Embed, i.default]), + (c.order = [ + 'cursor', + 'inline', + 'underline', + 'strike', + 'italic', + 'bold', + 'script', + 'link', + 'code' + ]), + (t.default = c); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r, + o = n(0), + i = (function(e) { + function t() { + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( + this, + (t.__proto__ || Object.getPrototypeOf(t)).apply( + this, + arguments + ) + ) + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + t + ); + })( + ((r = o) && r.__esModule ? r : { default: r }).default.Text + ); + t.default = i; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + o = function e(t, n, r) { + null === t && (t = Function.prototype); + var o = Object.getOwnPropertyDescriptor(t, n); + if (void 0 === o) { + var i = Object.getPrototypeOf(t); + return null === i ? void 0 : e(i, n, r); + } + if ('value' in o) return o.value; + var a = o.get; + return void 0 !== a ? a.call(r) : void 0; + }, + i = a(n(54)); + function a(e) { + return e && e.__esModule ? e : { default: e }; + } + var s = (0, a(n(10)).default)('quill:events'); + ['selectionchange', 'mousedown', 'mouseup', 'click'].forEach( + function(e) { + document.addEventListener(e, function() { + for ( + var e = arguments.length, t = Array(e), n = 0; + n < e; + n++ + ) + t[n] = arguments[n]; + [].slice + .call(document.querySelectorAll('.ql-container')) + .forEach(function(e) { + var n; + e.__quill && + e.__quill.emitter && + (n = e.__quill.emitter).handleDOM.apply(n, t); + }); + }); + } + ); + var c = (function(e) { + function t() { + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t); + var e = (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( + this, + (t.__proto__ || Object.getPrototypeOf(t)).call(this) + ); + return (e.listeners = {}), e.on('error', s.error), e; + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + r(t, [ + { + key: 'emit', + value: function() { + s.log.apply(s, arguments), + o( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'emit', + this + ).apply(this, arguments); + } + }, + { + key: 'handleDOM', + value: function(e) { + for ( + var t = arguments.length, + n = Array(t > 1 ? t - 1 : 0), + r = 1; + r < t; + r++ + ) + n[r - 1] = arguments[r]; + (this.listeners[e.type] || []).forEach(function(t) { + var r = t.node, + o = t.handler; + (e.target === r || r.contains(e.target)) && + o.apply(void 0, [e].concat(n)); + }); + } + }, + { + key: 'listenDOM', + value: function(e, t, n) { + this.listeners[e] || (this.listeners[e] = []), + this.listeners[e].push({ node: t, handler: n }); + } + } + ]), + t + ); + })(i.default); + (c.events = { + EDITOR_CHANGE: 'editor-change', + SCROLL_BEFORE_UPDATE: 'scroll-before-update', + SCROLL_OPTIMIZE: 'scroll-optimize', + SCROLL_UPDATE: 'scroll-update', + SELECTION_CHANGE: 'selection-change', + TEXT_CHANGE: 'text-change' + }), + (c.sources = { API: 'api', SILENT: 'silent', USER: 'user' }), + (t.default = c); + }, + function(e, t, n) { + 'use strict'; + function r(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + } + Object.defineProperty(t, '__esModule', { value: !0 }); + var o = function e(t) { + var n = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : {}; + r(this, e), (this.quill = t), (this.options = n); + }; + (o.DEFAULTS = {}), (t.default = o); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = ['error', 'warn', 'log', 'info'], + o = 'warn'; + function i(e) { + if (r.indexOf(e) <= r.indexOf(o)) { + for ( + var t, + n = arguments.length, + i = Array(n > 1 ? n - 1 : 0), + a = 1; + a < n; + a++ + ) + i[a - 1] = arguments[a]; + (t = console)[e].apply(t, i); + } + } + function a(e) { + return r.reduce(function(t, n) { + return (t[n] = i.bind(console, n, e)), t; + }, {}); + } + (i.level = a.level = function(e) { + o = e; + }), + (t.default = a); + }, + function(e, t, n) { + var r = Array.prototype.slice, + o = n(52), + i = n(53), + a = (e.exports = function(e, t, n) { + return ( + n || (n = {}), + e === t || + (e instanceof Date && t instanceof Date + ? e.getTime() === t.getTime() + : !e || + !t || + ('object' != typeof e && 'object' != typeof t) + ? n.strict + ? e === t + : e == t + : (function(e, t, n) { + var u, l; + if (s(e) || s(t)) return !1; + if (e.prototype !== t.prototype) return !1; + if (i(e)) + return ( + !!i(t) && + ((e = r.call(e)), (t = r.call(t)), a(e, t, n)) + ); + if (c(e)) { + if (!c(t)) return !1; + if (e.length !== t.length) return !1; + for (u = 0; u < e.length; u++) + if (e[u] !== t[u]) return !1; + return !0; + } + try { + var f = o(e), + d = o(t); + } catch (e) { + return !1; + } + if (f.length != d.length) return !1; + for ( + f.sort(), d.sort(), u = f.length - 1; + u >= 0; + u-- + ) + if (f[u] != d[u]) return !1; + for (u = f.length - 1; u >= 0; u--) + if (((l = f[u]), !a(e[l], t[l], n))) return !1; + return typeof e == typeof t; + })(e, t, n)) + ); + }); + function s(e) { + return null == e; + } + function c(e) { + return !( + !e || + 'object' != typeof e || + 'number' != typeof e.length || + 'function' != typeof e.copy || + 'function' != typeof e.slice || + (e.length > 0 && 'number' != typeof e[0]) + ); + } + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(1), + o = (function() { + function e(e, t, n) { + void 0 === n && (n = {}), + (this.attrName = e), + (this.keyName = t); + var o = r.Scope.TYPE & r.Scope.ATTRIBUTE; + null != n.scope + ? (this.scope = (n.scope & r.Scope.LEVEL) | o) + : (this.scope = r.Scope.ATTRIBUTE), + null != n.whitelist && (this.whitelist = n.whitelist); + } + return ( + (e.keys = function(e) { + return [].map.call(e.attributes, function(e) { + return e.name; + }); + }), + (e.prototype.add = function(e, t) { + return ( + !!this.canAdd(e, t) && + (e.setAttribute(this.keyName, t), !0) + ); + }), + (e.prototype.canAdd = function(e, t) { + return ( + null != + r.query( + e, + r.Scope.BLOT & (this.scope | r.Scope.TYPE) + ) && + (null == this.whitelist || + ('string' == typeof t + ? this.whitelist.indexOf(t.replace(/["']/g, '')) > + -1 + : this.whitelist.indexOf(t) > -1)) + ); + }), + (e.prototype.remove = function(e) { + e.removeAttribute(this.keyName); + }), + (e.prototype.value = function(e) { + var t = e.getAttribute(this.keyName); + return this.canAdd(e, t) && t ? t : ''; + }), + e + ); + })(); + t.default = o; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = t.Code = void 0); + var r = function(e, t) { + if (Array.isArray(e)) return e; + if (Symbol.iterator in Object(e)) + return (function(e, t) { + var n = [], + r = !0, + o = !1, + i = void 0; + try { + for ( + var a, s = e[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !t || n.length !== t); + r = !0 + ); + } catch (e) { + (o = !0), (i = e); + } finally { + try { + !r && s.return && s.return(); + } finally { + if (o) throw i; + } + } + return n; + })(e, t); + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' + ); + }, + o = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + i = function e(t, n, r) { + null === t && (t = Function.prototype); + var o = Object.getOwnPropertyDescriptor(t, n); + if (void 0 === o) { + var i = Object.getPrototypeOf(t); + return null === i ? void 0 : e(i, n, r); + } + if ('value' in o) return o.value; + var a = o.get; + return void 0 !== a ? a.call(r) : void 0; + }, + a = f(n(2)), + s = f(n(0)), + c = f(n(4)), + u = f(n(6)), + l = f(n(7)); + function f(e) { + return e && e.__esModule ? e : { default: e }; + } + function d(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + } + function p(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || ('object' != typeof t && 'function' != typeof t) + ? e + : t; + } + function h(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + } + var g = (function(e) { + function t() { + return ( + d(this, t), + p( + this, + (t.__proto__ || Object.getPrototypeOf(t)).apply( + this, + arguments + ) + ) + ); + } + return h(t, e), t; + })(u.default); + (g.blotName = 'code'), (g.tagName = 'CODE'); + var m = (function(e) { + function t() { + return ( + d(this, t), + p( + this, + (t.__proto__ || Object.getPrototypeOf(t)).apply( + this, + arguments + ) + ) + ); + } + return ( + h(t, e), + o( + t, + [ + { + key: 'delta', + value: function() { + var e = this, + t = this.domNode.textContent; + return ( + t.endsWith('\n') && (t = t.slice(0, -1)), + t.split('\n').reduce(function(t, n) { + return t.insert(n).insert('\n', e.formats()); + }, new a.default()) + ); + } + }, + { + key: 'format', + value: function(e, n) { + if (e !== this.statics.blotName || !n) { + var o = this.descendant( + l.default, + this.length() - 1 + ), + a = r(o, 1)[0]; + null != a && a.deleteAt(a.length() - 1, 1), + i( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'format', + this + ).call(this, e, n); + } + } + }, + { + key: 'formatAt', + value: function(e, n, r, o) { + if ( + 0 !== n && + null != + s.default.query(r, s.default.Scope.BLOCK) && + (r !== this.statics.blotName || + o !== this.statics.formats(this.domNode)) + ) { + var i = this.newlineIndex(e); + if (!(i < 0 || i >= e + n)) { + var a = this.newlineIndex(e, !0) + 1, + c = i - a + 1, + u = this.isolate(a, c), + l = u.next; + u.format(r, o), + l instanceof t && + l.formatAt(0, e - a + n - c, r, o); + } + } + } + }, + { + key: 'insertAt', + value: function(e, t, n) { + if (null == n) { + var o = this.descendant(l.default, e), + i = r(o, 2), + a = i[0], + s = i[1]; + a.insertAt(s, t); + } + } + }, + { + key: 'length', + value: function() { + var e = this.domNode.textContent.length; + return this.domNode.textContent.endsWith('\n') + ? e + : e + 1; + } + }, + { + key: 'newlineIndex', + value: function(e) { + var t = + arguments.length > 1 && + void 0 !== arguments[1] && + arguments[1]; + if (t) + return this.domNode.textContent + .slice(0, e) + .lastIndexOf('\n'); + var n = this.domNode.textContent + .slice(e) + .indexOf('\n'); + return n > -1 ? e + n : -1; + } + }, + { + key: 'optimize', + value: function(e) { + this.domNode.textContent.endsWith('\n') || + this.appendChild(s.default.create('text', '\n')), + i( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'optimize', + this + ).call(this, e); + var n = this.next; + null != n && + n.prev === this && + n.statics.blotName === this.statics.blotName && + this.statics.formats(this.domNode) === + n.statics.formats(n.domNode) && + (n.optimize(e), n.moveChildren(this), n.remove()); + } + }, + { + key: 'replace', + value: function(e) { + i( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'replace', + this + ).call(this, e), + [].slice + .call(this.domNode.querySelectorAll('*')) + .forEach(function(e) { + var t = s.default.find(e); + null == t + ? e.parentNode.removeChild(e) + : t instanceof s.default.Embed + ? t.remove() + : t.unwrap(); + }); + } + } + ], + [ + { + key: 'create', + value: function(e) { + var n = i( + t.__proto__ || Object.getPrototypeOf(t), + 'create', + this + ).call(this, e); + return n.setAttribute('spellcheck', !1), n; + } + }, + { + key: 'formats', + value: function() { + return !0; + } + } + ] + ), + t + ); + })(c.default); + (m.blotName = 'code-block'), + (m.tagName = 'PRE'), + (m.TAB = ' '), + (t.Code = g), + (t.default = m); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(e) { + return typeof e; + } + : function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e; + }, + o = function(e, t) { + if (Array.isArray(e)) return e; + if (Symbol.iterator in Object(e)) + return (function(e, t) { + var n = [], + r = !0, + o = !1, + i = void 0; + try { + for ( + var a, s = e[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !t || n.length !== t); + r = !0 + ); + } catch (e) { + (o = !0), (i = e); + } finally { + try { + !r && s.return && s.return(); + } finally { + if (o) throw i; + } + } + return n; + })(e, t); + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' + ); + }, + i = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + a = b(n(2)), + s = b(n(20)), + c = b(n(0)), + u = b(n(13)), + l = b(n(24)), + f = n(4), + d = b(f), + p = b(n(16)), + h = b(n(21)), + g = b(n(11)), + m = b(n(3)); + function b(e) { + return e && e.__esModule ? e : { default: e }; + } + var y = /^[ -~]*$/, + v = (function() { + function e(t) { + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, e), + (this.scroll = t), + (this.delta = this.getDelta()); + } + return ( + i(e, [ + { + key: 'applyDelta', + value: function(e) { + var t = this, + n = !1; + this.scroll.update(); + var i = this.scroll.length(); + return ( + this.scroll.batchStart(), + (e = (function(e) { + return e.reduce(function(e, t) { + if (1 === t.insert) { + var n = (0, h.default)(t.attributes); + return ( + delete n.image, + e.insert({ image: t.attributes.image }, n) + ); + } + if ( + (null == t.attributes || + (!0 !== t.attributes.list && + !0 !== t.attributes.bullet) || + ((t = (0, h.default)(t)).attributes.list + ? (t.attributes.list = 'ordered') + : ((t.attributes.list = 'bullet'), + delete t.attributes.bullet)), + 'string' == typeof t.insert) + ) { + var r = t.insert + .replace(/\r\n/g, '\n') + .replace(/\r/g, '\n'); + return e.insert(r, t.attributes); + } + return e.push(t); + }, new a.default()); + })(e)).reduce(function(e, a) { + var u = + a.retain || + a.delete || + a.insert.length || + 1, + l = a.attributes || {}; + if (null != a.insert) { + if ('string' == typeof a.insert) { + var p = a.insert; + p.endsWith('\n') && + n && + ((n = !1), (p = p.slice(0, -1))), + e >= i && !p.endsWith('\n') && (n = !0), + t.scroll.insertAt(e, p); + var h = t.scroll.line(e), + g = o(h, 2), + b = g[0], + y = g[1], + v = (0, m.default)( + {}, + (0, f.bubbleFormats)(b) + ); + if (b instanceof d.default) { + var _ = b.descendant(c.default.Leaf, y), + w = o(_, 1)[0]; + v = (0, m.default)( + v, + (0, f.bubbleFormats)(w) + ); + } + l = s.default.attributes.diff(v, l) || {}; + } else if ('object' === r(a.insert)) { + var x = Object.keys(a.insert)[0]; + if (null == x) return e; + t.scroll.insertAt(e, x, a.insert[x]); + } + i += u; + } + return ( + Object.keys(l).forEach(function(n) { + t.scroll.formatAt(e, u, n, l[n]); + }), + e + u + ); + }, 0), + e.reduce(function(e, n) { + return 'number' == typeof n.delete + ? (t.scroll.deleteAt(e, n.delete), e) + : e + (n.retain || n.insert.length || 1); + }, 0), + this.scroll.batchEnd(), + this.update(e) + ); + } + }, + { + key: 'deleteText', + value: function(e, t) { + return ( + this.scroll.deleteAt(e, t), + this.update(new a.default().retain(e).delete(t)) + ); + } + }, + { + key: 'formatLine', + value: function(e, t) { + var n = this, + r = + arguments.length > 2 && void 0 !== arguments[2] + ? arguments[2] + : {}; + return ( + this.scroll.update(), + Object.keys(r).forEach(function(o) { + if ( + null == n.scroll.whitelist || + n.scroll.whitelist[o] + ) { + var i = n.scroll.lines(e, Math.max(t, 1)), + a = t; + i.forEach(function(t) { + var i = t.length(); + if (t instanceof u.default) { + var s = e - t.offset(n.scroll), + c = t.newlineIndex(s + a) - s + 1; + t.formatAt(s, c, o, r[o]); + } else t.format(o, r[o]); + a -= i; + }); + } + }), + this.scroll.optimize(), + this.update( + new a.default() + .retain(e) + .retain(t, (0, h.default)(r)) + ) + ); + } + }, + { + key: 'formatText', + value: function(e, t) { + var n = this, + r = + arguments.length > 2 && void 0 !== arguments[2] + ? arguments[2] + : {}; + return ( + Object.keys(r).forEach(function(o) { + n.scroll.formatAt(e, t, o, r[o]); + }), + this.update( + new a.default() + .retain(e) + .retain(t, (0, h.default)(r)) + ) + ); + } + }, + { + key: 'getContents', + value: function(e, t) { + return this.delta.slice(e, e + t); + } + }, + { + key: 'getDelta', + value: function() { + return this.scroll.lines().reduce(function(e, t) { + return e.concat(t.delta()); + }, new a.default()); + } + }, + { + key: 'getFormat', + value: function(e) { + var t = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : 0, + n = [], + r = []; + 0 === t + ? this.scroll.path(e).forEach(function(e) { + var t = o(e, 1)[0]; + t instanceof d.default + ? n.push(t) + : t instanceof c.default.Leaf && r.push(t); + }) + : ((n = this.scroll.lines(e, t)), + (r = this.scroll.descendants( + c.default.Leaf, + e, + t + ))); + var i = [n, r].map(function(e) { + if (0 === e.length) return {}; + for ( + var t = (0, f.bubbleFormats)(e.shift()); + Object.keys(t).length > 0; + + ) { + var n = e.shift(); + if (null == n) return t; + t = _((0, f.bubbleFormats)(n), t); + } + return t; + }); + return m.default.apply(m.default, i); + } + }, + { + key: 'getText', + value: function(e, t) { + return this.getContents(e, t) + .filter(function(e) { + return 'string' == typeof e.insert; + }) + .map(function(e) { + return e.insert; + }) + .join(''); + } + }, + { + key: 'insertEmbed', + value: function(e, t, n) { + return ( + this.scroll.insertAt(e, t, n), + this.update( + new a.default().retain(e).insert( + (function(e, t, n) { + return ( + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), + e + ); + })({}, t, n) + ) + ) + ); + } + }, + { + key: 'insertText', + value: function(e, t) { + var n = this, + r = + arguments.length > 2 && void 0 !== arguments[2] + ? arguments[2] + : {}; + return ( + (t = t + .replace(/\r\n/g, '\n') + .replace(/\r/g, '\n')), + this.scroll.insertAt(e, t), + Object.keys(r).forEach(function(o) { + n.scroll.formatAt(e, t.length, o, r[o]); + }), + this.update( + new a.default() + .retain(e) + .insert(t, (0, h.default)(r)) + ) + ); + } + }, + { + key: 'isBlank', + value: function() { + if (0 == this.scroll.children.length) return !0; + if (this.scroll.children.length > 1) return !1; + var e = this.scroll.children.head; + return ( + e.statics.blotName === d.default.blotName && + !(e.children.length > 1) && + e.children.head instanceof p.default + ); + } + }, + { + key: 'removeFormat', + value: function(e, t) { + var n = this.getText(e, t), + r = this.scroll.line(e + t), + i = o(r, 2), + s = i[0], + c = i[1], + l = 0, + f = new a.default(); + null != s && + ((l = + s instanceof u.default + ? s.newlineIndex(c) - c + 1 + : s.length() - c), + (f = s + .delta() + .slice(c, c + l - 1) + .insert('\n'))); + var d = this.getContents(e, t + l).diff( + new a.default().insert(n).concat(f) + ), + p = new a.default().retain(e).concat(d); + return this.applyDelta(p); + } + }, + { + key: 'update', + value: function(e) { + var t = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : [], + n = + arguments.length > 2 && void 0 !== arguments[2] + ? arguments[2] + : void 0, + r = this.delta; + if ( + 1 === t.length && + 'characterData' === t[0].type && + t[0].target.data.match(y) && + c.default.find(t[0].target) + ) { + var o = c.default.find(t[0].target), + i = (0, f.bubbleFormats)(o), + s = o.offset(this.scroll), + u = t[0].oldValue.replace( + l.default.CONTENTS, + '' + ), + d = new a.default().insert(u), + p = new a.default().insert(o.value()), + h = new a.default() + .retain(s) + .concat(d.diff(p, n)); + (e = h.reduce(function(e, t) { + return t.insert + ? e.insert(t.insert, i) + : e.push(t); + }, new a.default())), + (this.delta = r.compose(e)); + } else + (this.delta = this.getDelta()), + (e && + (0, g.default)(r.compose(e), this.delta)) || + (e = r.diff(this.delta, n)); + return e; + } + } + ]), + e + ); + })(); + function _(e, t) { + return Object.keys(t).reduce(function(n, r) { + return null == e[r] + ? n + : (t[r] === e[r] + ? (n[r] = t[r]) + : Array.isArray(t[r]) + ? t[r].indexOf(e[r]) < 0 && + (n[r] = t[r].concat([e[r]])) + : (n[r] = [t[r], e[r]]), + n); + }, {}); + } + t.default = v; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = t.Range = void 0); + var r = function(e, t) { + if (Array.isArray(e)) return e; + if (Symbol.iterator in Object(e)) + return (function(e, t) { + var n = [], + r = !0, + o = !1, + i = void 0; + try { + for ( + var a, s = e[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !t || n.length !== t); + r = !0 + ); + } catch (e) { + (o = !0), (i = e); + } finally { + try { + !r && s.return && s.return(); + } finally { + if (o) throw i; + } + } + return n; + })(e, t); + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' + ); + }, + o = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + i = u(n(0)), + a = u(n(21)), + s = u(n(11)), + c = u(n(8)); + function u(e) { + return e && e.__esModule ? e : { default: e }; + } + function l(e) { + if (Array.isArray(e)) { + for (var t = 0, n = Array(e.length); t < e.length; t++) + n[t] = e[t]; + return n; + } + return Array.from(e); + } + function f(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + } + var d = (0, u(n(10)).default)('quill:selection'), + p = function e(t) { + var n = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : 0; + f(this, e), (this.index = t), (this.length = n); + }, + h = (function() { + function e(t, n) { + var r = this; + f(this, e), + (this.emitter = n), + (this.scroll = t), + (this.composing = !1), + (this.mouseDown = !1), + (this.root = this.scroll.domNode), + (this.cursor = i.default.create('cursor', this)), + (this.lastRange = this.savedRange = new p(0, 0)), + this.handleComposition(), + this.handleDragging(), + this.emitter.listenDOM( + 'selectionchange', + document, + function() { + r.mouseDown || + setTimeout( + r.update.bind(r, c.default.sources.USER), + 1 + ); + } + ), + this.emitter.on( + c.default.events.EDITOR_CHANGE, + function(e, t) { + e === c.default.events.TEXT_CHANGE && + t.length() > 0 && + r.update(c.default.sources.SILENT); + } + ), + this.emitter.on( + c.default.events.SCROLL_BEFORE_UPDATE, + function() { + if (r.hasFocus()) { + var e = r.getNativeRange(); + null != e && + e.start.node !== r.cursor.textNode && + r.emitter.once( + c.default.events.SCROLL_UPDATE, + function() { + try { + r.setNativeRange( + e.start.node, + e.start.offset, + e.end.node, + e.end.offset + ); + } catch (e) {} + } + ); + } + } + ), + this.emitter.on( + c.default.events.SCROLL_OPTIMIZE, + function(e, t) { + if (t.range) { + var n = t.range, + o = n.startNode, + i = n.startOffset, + a = n.endNode, + s = n.endOffset; + r.setNativeRange(o, i, a, s); + } + } + ), + this.update(c.default.sources.SILENT); + } + return ( + o(e, [ + { + key: 'handleComposition', + value: function() { + var e = this; + this.root.addEventListener( + 'compositionstart', + function() { + e.composing = !0; + } + ), + this.root.addEventListener( + 'compositionend', + function() { + if (((e.composing = !1), e.cursor.parent)) { + var t = e.cursor.restore(); + if (!t) return; + setTimeout(function() { + e.setNativeRange( + t.startNode, + t.startOffset, + t.endNode, + t.endOffset + ); + }, 1); + } + } + ); + } + }, + { + key: 'handleDragging', + value: function() { + var e = this; + this.emitter.listenDOM( + 'mousedown', + document.body, + function() { + e.mouseDown = !0; + } + ), + this.emitter.listenDOM( + 'mouseup', + document.body, + function() { + (e.mouseDown = !1), + e.update(c.default.sources.USER); + } + ); + } + }, + { + key: 'focus', + value: function() { + this.hasFocus() || + (this.root.focus(), + this.setRange(this.savedRange)); + } + }, + { + key: 'format', + value: function(e, t) { + if ( + null == this.scroll.whitelist || + this.scroll.whitelist[e] + ) { + this.scroll.update(); + var n = this.getNativeRange(); + if ( + null != n && + n.native.collapsed && + !i.default.query(e, i.default.Scope.BLOCK) + ) { + if (n.start.node !== this.cursor.textNode) { + var r = i.default.find(n.start.node, !1); + if (null == r) return; + if (r instanceof i.default.Leaf) { + var o = r.split(n.start.offset); + r.parent.insertBefore(this.cursor, o); + } else + r.insertBefore(this.cursor, n.start.node); + this.cursor.attach(); + } + this.cursor.format(e, t), + this.scroll.optimize(), + this.setNativeRange( + this.cursor.textNode, + this.cursor.textNode.data.length + ), + this.update(); + } + } + } + }, + { + key: 'getBounds', + value: function(e) { + var t = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : 0, + n = this.scroll.length(); + (e = Math.min(e, n - 1)), + (t = Math.min(e + t, n - 1) - e); + var o = void 0, + i = this.scroll.leaf(e), + a = r(i, 2), + s = a[0], + c = a[1]; + if (null == s) return null; + var u = s.position(c, !0), + l = r(u, 2); + (o = l[0]), (c = l[1]); + var f = document.createRange(); + if (t > 0) { + f.setStart(o, c); + var d = this.scroll.leaf(e + t), + p = r(d, 2); + if (((s = p[0]), (c = p[1]), null == s)) + return null; + var h = s.position(c, !0), + g = r(h, 2); + return ( + (o = g[0]), + (c = g[1]), + f.setEnd(o, c), + f.getBoundingClientRect() + ); + } + var m = 'left', + b = void 0; + return ( + o instanceof Text + ? (c < o.data.length + ? (f.setStart(o, c), f.setEnd(o, c + 1)) + : (f.setStart(o, c - 1), + f.setEnd(o, c), + (m = 'right')), + (b = f.getBoundingClientRect())) + : ((b = s.domNode.getBoundingClientRect()), + c > 0 && (m = 'right')), + { + bottom: b.top + b.height, + height: b.height, + left: b[m], + right: b[m], + top: b.top, + width: 0 + } + ); + } + }, + { + key: 'getNativeRange', + value: function() { + var e = document.getSelection(); + if (null == e || e.rangeCount <= 0) return null; + var t = e.getRangeAt(0); + if (null == t) return null; + var n = this.normalizeNative(t); + return d.info('getNativeRange', n), n; + } + }, + { + key: 'getRange', + value: function() { + var e = this.getNativeRange(); + return null == e + ? [null, null] + : [this.normalizedToRange(e), e]; + } + }, + { + key: 'hasFocus', + value: function() { + return document.activeElement === this.root; + } + }, + { + key: 'normalizedToRange', + value: function(e) { + var t = this, + n = [[e.start.node, e.start.offset]]; + e.native.collapsed || + n.push([e.end.node, e.end.offset]); + var o = n.map(function(e) { + var n = r(e, 2), + o = n[0], + a = n[1], + s = i.default.find(o, !0), + c = s.offset(t.scroll); + return 0 === a + ? c + : s instanceof i.default.Container + ? c + s.length() + : c + s.index(o, a); + }), + a = Math.min( + Math.max.apply(Math, l(o)), + this.scroll.length() - 1 + ), + s = Math.min.apply(Math, [a].concat(l(o))); + return new p(s, a - s); + } + }, + { + key: 'normalizeNative', + value: function(e) { + if ( + !g(this.root, e.startContainer) || + (!e.collapsed && !g(this.root, e.endContainer)) + ) + return null; + var t = { + start: { + node: e.startContainer, + offset: e.startOffset + }, + end: { + node: e.endContainer, + offset: e.endOffset + }, + native: e + }; + return ( + [t.start, t.end].forEach(function(e) { + for ( + var t = e.node, n = e.offset; + !(t instanceof Text) && + t.childNodes.length > 0; + + ) + if (t.childNodes.length > n) + (t = t.childNodes[n]), (n = 0); + else { + if (t.childNodes.length !== n) break; + n = + (t = t.lastChild) instanceof Text + ? t.data.length + : t.childNodes.length + 1; + } + (e.node = t), (e.offset = n); + }), + t + ); + } + }, + { + key: 'rangeToNative', + value: function(e) { + var t = this, + n = e.collapsed + ? [e.index] + : [e.index, e.index + e.length], + o = [], + i = this.scroll.length(); + return ( + n.forEach(function(e, n) { + e = Math.min(i - 1, e); + var a, + s = t.scroll.leaf(e), + c = r(s, 2), + u = c[0], + l = c[1], + f = u.position(l, 0 !== n), + d = r(f, 2); + (a = d[0]), (l = d[1]), o.push(a, l); + }), + o.length < 2 && (o = o.concat(o)), + o + ); + } + }, + { + key: 'scrollIntoView', + value: function(e) { + var t = this.lastRange; + if (null != t) { + var n = this.getBounds(t.index, t.length); + if (null != n) { + var o = this.scroll.length() - 1, + i = this.scroll.line(Math.min(t.index, o)), + a = r(i, 1)[0], + s = a; + if (t.length > 0) { + var c = this.scroll.line( + Math.min(t.index + t.length, o) + ); + s = r(c, 1)[0]; + } + if (null != a && null != s) { + var u = e.getBoundingClientRect(); + n.top < u.top + ? (e.scrollTop -= u.top - n.top) + : n.bottom > u.bottom && + (e.scrollTop += n.bottom - u.bottom); + } + } + } + } + }, + { + key: 'setNativeRange', + value: function(e, t) { + var n = + arguments.length > 2 && void 0 !== arguments[2] + ? arguments[2] + : e, + r = + arguments.length > 3 && void 0 !== arguments[3] + ? arguments[3] + : t, + o = + arguments.length > 4 && + void 0 !== arguments[4] && + arguments[4]; + if ( + (d.info('setNativeRange', e, t, n, r), + null == e || + (null != this.root.parentNode && + null != e.parentNode && + null != n.parentNode)) + ) { + var i = document.getSelection(); + if (null != i) + if (null != e) { + this.hasFocus() || this.root.focus(); + var a = (this.getNativeRange() || {}).native; + if ( + null == a || + o || + e !== a.startContainer || + t !== a.startOffset || + n !== a.endContainer || + r !== a.endOffset + ) { + 'BR' == e.tagName && + ((t = [].indexOf.call( + e.parentNode.childNodes, + e + )), + (e = e.parentNode)), + 'BR' == n.tagName && + ((r = [].indexOf.call( + n.parentNode.childNodes, + n + )), + (n = n.parentNode)); + var s = document.createRange(); + s.setStart(e, t), + s.setEnd(n, r), + i.removeAllRanges(), + i.addRange(s); + } + } else + i.removeAllRanges(), + this.root.blur(), + document.body.focus(); + } + } + }, + { + key: 'setRange', + value: function(e) { + var t = + arguments.length > 1 && + void 0 !== arguments[1] && + arguments[1], + n = + arguments.length > 2 && void 0 !== arguments[2] + ? arguments[2] + : c.default.sources.API; + if ( + ('string' == typeof t && ((n = t), (t = !1)), + d.info('setRange', e), + null != e) + ) { + var r = this.rangeToNative(e); + this.setNativeRange.apply(this, l(r).concat([t])); + } else this.setNativeRange(null); + this.update(n); + } + }, + { + key: 'update', + value: function() { + var e = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : c.default.sources.USER, + t = this.lastRange, + n = this.getRange(), + o = r(n, 2), + i = o[0], + u = o[1]; + if ( + ((this.lastRange = i), + null != this.lastRange && + (this.savedRange = this.lastRange), + !(0, s.default)(t, this.lastRange)) + ) { + var l; + !this.composing && + null != u && + u.native.collapsed && + u.start.node !== this.cursor.textNode && + this.cursor.restore(); + var f, + d = [ + c.default.events.SELECTION_CHANGE, + (0, a.default)(this.lastRange), + (0, a.default)(t), + e + ]; + (l = this.emitter).emit.apply( + l, + [c.default.events.EDITOR_CHANGE].concat(d) + ), + e !== c.default.sources.SILENT && + (f = this.emitter).emit.apply(f, d); + } + } + } + ]), + e + ); + })(); + function g(e, t) { + try { + t.parentNode; + } catch (e) { + return !1; + } + return t instanceof Text && (t = t.parentNode), e.contains(t); + } + (t.Range = p), (t.default = h); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r, + o = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + i = n(0), + a = (function(e) { + function t() { + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( + this, + (t.__proto__ || Object.getPrototypeOf(t)).apply( + this, + arguments + ) + ) + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + o( + t, + [ + { + key: 'insertInto', + value: function(e, n) { + 0 === e.children.length + ? (function e(t, n, r) { + null === t && (t = Function.prototype); + var o = Object.getOwnPropertyDescriptor( + t, + n + ); + if (void 0 === o) { + var i = Object.getPrototypeOf(t); + return null === i ? void 0 : e(i, n, r); + } + if ('value' in o) return o.value; + var a = o.get; + return void 0 !== a ? a.call(r) : void 0; + })( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'insertInto', + this + ).call(this, e, n) + : this.remove(); + } + }, + { + key: 'length', + value: function() { + return 0; + } + }, + { + key: 'value', + value: function() { + return ''; + } + } + ], + [{ key: 'value', value: function() {} }] + ), + t + ); + })( + ((r = i) && r.__esModule ? r : { default: r }).default.Embed + ); + (a.blotName = 'break'), (a.tagName = 'BR'), (t.default = a); + }, + function(e, t, n) { + 'use strict'; + var r, + o = + (this && this.__extends) || + ((r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function(e, t) { + e.__proto__ = t; + }) || + function(e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + }), + function(e, t) { + function n() { + this.constructor = e; + } + r(e, t), + (e.prototype = + null === t + ? Object.create(t) + : ((n.prototype = t.prototype), new n())); + }); + Object.defineProperty(t, '__esModule', { value: !0 }); + var i = n(44), + a = n(30), + s = n(1), + c = (function(e) { + function t(t) { + var n = e.call(this, t) || this; + return n.build(), n; + } + return ( + o(t, e), + (t.prototype.appendChild = function(e) { + this.insertBefore(e); + }), + (t.prototype.attach = function() { + e.prototype.attach.call(this), + this.children.forEach(function(e) { + e.attach(); + }); + }), + (t.prototype.build = function() { + var e = this; + (this.children = new i.default()), + [].slice + .call(this.domNode.childNodes) + .reverse() + .forEach(function(t) { + try { + var n = u(t); + e.insertBefore(n, e.children.head || void 0); + } catch (e) { + if (e instanceof s.ParchmentError) return; + throw e; + } + }); + }), + (t.prototype.deleteAt = function(e, t) { + if (0 === e && t === this.length()) + return this.remove(); + this.children.forEachAt(e, t, function(e, t, n) { + e.deleteAt(t, n); + }); + }), + (t.prototype.descendant = function(e, n) { + var r = this.children.find(n), + o = r[0], + i = r[1]; + return (null == e.blotName && e(o)) || + (null != e.blotName && o instanceof e) + ? [o, i] + : o instanceof t + ? o.descendant(e, i) + : [null, -1]; + }), + (t.prototype.descendants = function(e, n, r) { + void 0 === n && (n = 0), + void 0 === r && (r = Number.MAX_VALUE); + var o = [], + i = r; + return ( + this.children.forEachAt(n, r, function(n, r, a) { + ((null == e.blotName && e(n)) || + (null != e.blotName && n instanceof e)) && + o.push(n), + n instanceof t && + (o = o.concat(n.descendants(e, r, i))), + (i -= a); + }), + o + ); + }), + (t.prototype.detach = function() { + this.children.forEach(function(e) { + e.detach(); + }), + e.prototype.detach.call(this); + }), + (t.prototype.formatAt = function(e, t, n, r) { + this.children.forEachAt(e, t, function(e, t, o) { + e.formatAt(t, o, n, r); + }); + }), + (t.prototype.insertAt = function(e, t, n) { + var r = this.children.find(e), + o = r[0], + i = r[1]; + if (o) o.insertAt(i, t, n); + else { + var a = + null == n ? s.create('text', t) : s.create(t, n); + this.appendChild(a); + } + }), + (t.prototype.insertBefore = function(e, t) { + if ( + null != this.statics.allowedChildren && + !this.statics.allowedChildren.some(function(t) { + return e instanceof t; + }) + ) + throw new s.ParchmentError( + 'Cannot insert ' + + e.statics.blotName + + ' into ' + + this.statics.blotName + ); + e.insertInto(this, t); + }), + (t.prototype.length = function() { + return this.children.reduce(function(e, t) { + return e + t.length(); + }, 0); + }), + (t.prototype.moveChildren = function(e, t) { + this.children.forEach(function(n) { + e.insertBefore(n, t); + }); + }), + (t.prototype.optimize = function(t) { + if ( + (e.prototype.optimize.call(this, t), + 0 === this.children.length) + ) + if (null != this.statics.defaultChild) { + var n = s.create(this.statics.defaultChild); + this.appendChild(n), n.optimize(t); + } else this.remove(); + }), + (t.prototype.path = function(e, n) { + void 0 === n && (n = !1); + var r = this.children.find(e, n), + o = r[0], + i = r[1], + a = [[this, e]]; + return o instanceof t + ? a.concat(o.path(i, n)) + : (null != o && a.push([o, i]), a); + }), + (t.prototype.removeChild = function(e) { + this.children.remove(e); + }), + (t.prototype.replace = function(n) { + n instanceof t && n.moveChildren(this), + e.prototype.replace.call(this, n); + }), + (t.prototype.split = function(e, t) { + if ((void 0 === t && (t = !1), !t)) { + if (0 === e) return this; + if (e === this.length()) return this.next; + } + var n = this.clone(); + return ( + this.parent.insertBefore(n, this.next), + this.children.forEachAt(e, this.length(), function( + e, + r, + o + ) { + (e = e.split(r, t)), n.appendChild(e); + }), + n + ); + }), + (t.prototype.unwrap = function() { + this.moveChildren(this.parent, this.next), + this.remove(); + }), + (t.prototype.update = function(e, t) { + var n = this, + r = [], + o = []; + e.forEach(function(e) { + e.target === n.domNode && + 'childList' === e.type && + (r.push.apply(r, e.addedNodes), + o.push.apply(o, e.removedNodes)); + }), + o.forEach(function(e) { + if ( + !( + null != e.parentNode && + 'IFRAME' !== e.tagName && + document.body.compareDocumentPosition(e) & + Node.DOCUMENT_POSITION_CONTAINED_BY + ) + ) { + var t = s.find(e); + null != t && + ((null != t.domNode.parentNode && + t.domNode.parentNode !== n.domNode) || + t.detach()); + } + }), + r + .filter(function(e) { + return e.parentNode == n.domNode; + }) + .sort(function(e, t) { + return e === t + ? 0 + : e.compareDocumentPosition(t) & + Node.DOCUMENT_POSITION_FOLLOWING + ? 1 + : -1; + }) + .forEach(function(e) { + var t = null; + null != e.nextSibling && + (t = s.find(e.nextSibling)); + var r = u(e); + (r.next == t && null != r.next) || + (null != r.parent && r.parent.removeChild(n), + n.insertBefore(r, t || void 0)); + }); + }), + t + ); + })(a.default); + function u(e) { + var t = s.find(e); + if (null == t) + try { + t = s.create(e); + } catch (n) { + (t = s.create(s.Scope.INLINE)), + [].slice.call(e.childNodes).forEach(function(e) { + t.domNode.appendChild(e); + }), + e.parentNode && e.parentNode.replaceChild(t.domNode, e), + t.attach(); + } + return t; + } + t.default = c; + }, + function(e, t, n) { + 'use strict'; + var r, + o = + (this && this.__extends) || + ((r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function(e, t) { + e.__proto__ = t; + }) || + function(e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + }), + function(e, t) { + function n() { + this.constructor = e; + } + r(e, t), + (e.prototype = + null === t + ? Object.create(t) + : ((n.prototype = t.prototype), new n())); + }); + Object.defineProperty(t, '__esModule', { value: !0 }); + var i = n(12), + a = n(31), + s = n(17), + c = n(1), + u = (function(e) { + function t(t) { + var n = e.call(this, t) || this; + return (n.attributes = new a.default(n.domNode)), n; + } + return ( + o(t, e), + (t.formats = function(e) { + return ( + 'string' == typeof this.tagName || + (Array.isArray(this.tagName) + ? e.tagName.toLowerCase() + : void 0) + ); + }), + (t.prototype.format = function(e, t) { + var n = c.query(e); + n instanceof i.default + ? this.attributes.attribute(n, t) + : t && + (null == n || + (e === this.statics.blotName && + this.formats()[e] === t) || + this.replaceWith(e, t)); + }), + (t.prototype.formats = function() { + var e = this.attributes.values(), + t = this.statics.formats(this.domNode); + return null != t && (e[this.statics.blotName] = t), e; + }), + (t.prototype.replaceWith = function(t, n) { + var r = e.prototype.replaceWith.call(this, t, n); + return this.attributes.copy(r), r; + }), + (t.prototype.update = function(t, n) { + var r = this; + e.prototype.update.call(this, t, n), + t.some(function(e) { + return ( + e.target === r.domNode && 'attributes' === e.type + ); + }) && this.attributes.build(); + }), + (t.prototype.wrap = function(n, r) { + var o = e.prototype.wrap.call(this, n, r); + return ( + o instanceof t && + o.statics.scope === this.statics.scope && + this.attributes.move(o), + o + ); + }), + t + ); + })(s.default); + t.default = u; + }, + function(e, t, n) { + 'use strict'; + var r, + o = + (this && this.__extends) || + ((r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function(e, t) { + e.__proto__ = t; + }) || + function(e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + }), + function(e, t) { + function n() { + this.constructor = e; + } + r(e, t), + (e.prototype = + null === t + ? Object.create(t) + : ((n.prototype = t.prototype), new n())); + }); + Object.defineProperty(t, '__esModule', { value: !0 }); + var i = n(30), + a = n(1), + s = (function(e) { + function t() { + return (null !== e && e.apply(this, arguments)) || this; + } + return ( + o(t, e), + (t.value = function(e) { + return !0; + }), + (t.prototype.index = function(e, t) { + return this.domNode === e || + this.domNode.compareDocumentPosition(e) & + Node.DOCUMENT_POSITION_CONTAINED_BY + ? Math.min(t, 1) + : -1; + }), + (t.prototype.position = function(e, t) { + var n = [].indexOf.call( + this.parent.domNode.childNodes, + this.domNode + ); + return e > 0 && (n += 1), [this.parent.domNode, n]; + }), + (t.prototype.value = function() { + var e; + return ( + ((e = {})[this.statics.blotName] = + this.statics.value(this.domNode) || !0), + e + ); + }), + (t.scope = a.Scope.INLINE_BLOT), + t + ); + })(i.default); + t.default = s; + }, + function(e, t, n) { + var r = n(11), + o = n(3), + i = { + attributes: { + compose: function(e, t, n) { + 'object' != typeof e && (e = {}), + 'object' != typeof t && (t = {}); + var r = o(!0, {}, t); + for (var i in (n || + (r = Object.keys(r).reduce(function(e, t) { + return null != r[t] && (e[t] = r[t]), e; + }, {})), + e)) + void 0 !== e[i] && void 0 === t[i] && (r[i] = e[i]); + return Object.keys(r).length > 0 ? r : void 0; + }, + diff: function(e, t) { + 'object' != typeof e && (e = {}), + 'object' != typeof t && (t = {}); + var n = Object.keys(e) + .concat(Object.keys(t)) + .reduce(function(n, o) { + return ( + r(e[o], t[o]) || + (n[o] = void 0 === t[o] ? null : t[o]), + n + ); + }, {}); + return Object.keys(n).length > 0 ? n : void 0; + }, + transform: function(e, t, n) { + if ('object' != typeof e) return t; + if ('object' == typeof t) { + if (!n) return t; + var r = Object.keys(t).reduce(function(n, r) { + return void 0 === e[r] && (n[r] = t[r]), n; + }, {}); + return Object.keys(r).length > 0 ? r : void 0; + } + } + }, + iterator: function(e) { + return new a(e); + }, + length: function(e) { + return 'number' == typeof e.delete + ? e.delete + : 'number' == typeof e.retain + ? e.retain + : 'string' == typeof e.insert + ? e.insert.length + : 1; + } + }; + function a(e) { + (this.ops = e), (this.index = 0), (this.offset = 0); + } + (a.prototype.hasNext = function() { + return this.peekLength() < 1 / 0; + }), + (a.prototype.next = function(e) { + e || (e = 1 / 0); + var t = this.ops[this.index]; + if (t) { + var n = this.offset, + r = i.length(t); + if ( + (e >= r - n + ? ((e = r - n), (this.index += 1), (this.offset = 0)) + : (this.offset += e), + 'number' == typeof t.delete) + ) + return { delete: e }; + var o = {}; + return ( + t.attributes && (o.attributes = t.attributes), + 'number' == typeof t.retain + ? (o.retain = e) + : 'string' == typeof t.insert + ? (o.insert = t.insert.substr(n, e)) + : (o.insert = t.insert), + o + ); + } + return { retain: 1 / 0 }; + }), + (a.prototype.peek = function() { + return this.ops[this.index]; + }), + (a.prototype.peekLength = function() { + return this.ops[this.index] + ? i.length(this.ops[this.index]) - this.offset + : 1 / 0; + }), + (a.prototype.peekType = function() { + return this.ops[this.index] + ? 'number' == typeof this.ops[this.index].delete + ? 'delete' + : 'number' == typeof this.ops[this.index].retain + ? 'retain' + : 'insert' + : 'retain'; + }), + (a.prototype.rest = function() { + if (this.hasNext()) { + if (0 === this.offset) return this.ops.slice(this.index); + var e = this.offset, + t = this.index, + n = this.next(), + r = this.ops.slice(this.index); + return (this.offset = e), (this.index = t), [n].concat(r); + } + return []; + }), + (e.exports = i); + }, + function(e, n) { + var r = (function() { + 'use strict'; + function e(e, t) { + return null != t && e instanceof t; + } + var n, r, o; + try { + n = Map; + } catch (e) { + n = function() {}; + } + try { + r = Set; + } catch (e) { + r = function() {}; + } + try { + o = Promise; + } catch (e) { + o = function() {}; + } + function i(a, c, u, l, f) { + 'object' == typeof c && + ((u = c.depth), + (l = c.prototype), + (f = c.includeNonEnumerable), + (c = c.circular)); + var d = [], + p = [], + h = void 0 !== t; + return ( + void 0 === c && (c = !0), + void 0 === u && (u = 1 / 0), + (function a(u, g) { + if (null === u) return null; + if (0 === g) return u; + var m, b; + if ('object' != typeof u) return u; + if (e(u, n)) m = new n(); + else if (e(u, r)) m = new r(); + else if (e(u, o)) + m = new o(function(e, t) { + u.then( + function(t) { + e(a(t, g - 1)); + }, + function(e) { + t(a(e, g - 1)); + } + ); + }); + else if (i.__isArray(u)) m = []; + else if (i.__isRegExp(u)) + (m = new RegExp(u.source, s(u))), + u.lastIndex && (m.lastIndex = u.lastIndex); + else if (i.__isDate(u)) m = new Date(u.getTime()); + else { + if (h && t.isBuffer(u)) + return ( + (m = t.allocUnsafe + ? t.allocUnsafe(u.length) + : new t(u.length)), + u.copy(m), + m + ); + e(u, Error) + ? (m = Object.create(u)) + : void 0 === l + ? ((b = Object.getPrototypeOf(u)), + (m = Object.create(b))) + : ((m = Object.create(l)), (b = l)); + } + if (c) { + var y = d.indexOf(u); + if (-1 != y) return p[y]; + d.push(u), p.push(m); + } + for (var v in (e(u, n) && + u.forEach(function(e, t) { + var n = a(t, g - 1), + r = a(e, g - 1); + m.set(n, r); + }), + e(u, r) && + u.forEach(function(e) { + var t = a(e, g - 1); + m.add(t); + }), + u)) { + var _; + b && (_ = Object.getOwnPropertyDescriptor(b, v)), + (_ && null == _.set) || (m[v] = a(u[v], g - 1)); + } + if (Object.getOwnPropertySymbols) { + var w = Object.getOwnPropertySymbols(u); + for (v = 0; v < w.length; v++) { + var x = w[v]; + (!(k = Object.getOwnPropertyDescriptor(u, x)) || + k.enumerable || + f) && + ((m[x] = a(u[x], g - 1)), + k.enumerable || + Object.defineProperty(m, x, { + enumerable: !1 + })); + } + } + if (f) { + var M = Object.getOwnPropertyNames(u); + for (v = 0; v < M.length; v++) { + var k, + S = M[v]; + ((k = Object.getOwnPropertyDescriptor(u, S)) && + k.enumerable) || + ((m[S] = a(u[S], g - 1)), + Object.defineProperty(m, S, { enumerable: !1 })); + } + } + return m; + })(a, u) + ); + } + function a(e) { + return Object.prototype.toString.call(e); + } + function s(e) { + var t = ''; + return ( + e.global && (t += 'g'), + e.ignoreCase && (t += 'i'), + e.multiline && (t += 'm'), + t + ); + } + return ( + (i.clonePrototype = function(e) { + if (null === e) return null; + var t = function() {}; + return (t.prototype = e), new t(); + }), + (i.__objToStr = a), + (i.__isDate = function(e) { + return 'object' == typeof e && '[object Date]' === a(e); + }), + (i.__isArray = function(e) { + return 'object' == typeof e && '[object Array]' === a(e); + }), + (i.__isRegExp = function(e) { + return 'object' == typeof e && '[object RegExp]' === a(e); + }), + (i.__getRegExpFlags = s), + i + ); + })(); + 'object' == typeof e && e.exports && (e.exports = r); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = function(e, t) { + if (Array.isArray(e)) return e; + if (Symbol.iterator in Object(e)) + return (function(e, t) { + var n = [], + r = !0, + o = !1, + i = void 0; + try { + for ( + var a, s = e[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !t || n.length !== t); + r = !0 + ); + } catch (e) { + (o = !0), (i = e); + } finally { + try { + !r && s.return && s.return(); + } finally { + if (o) throw i; + } + } + return n; + })(e, t); + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' + ); + }, + o = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + i = function e(t, n, r) { + null === t && (t = Function.prototype); + var o = Object.getOwnPropertyDescriptor(t, n); + if (void 0 === o) { + var i = Object.getPrototypeOf(t); + return null === i ? void 0 : e(i, n, r); + } + if ('value' in o) return o.value; + var a = o.get; + return void 0 !== a ? a.call(r) : void 0; + }, + a = p(n(0)), + s = p(n(8)), + c = n(4), + u = p(c), + l = p(n(16)), + f = p(n(13)), + d = p(n(25)); + function p(e) { + return e && e.__esModule ? e : { default: e }; + } + function h(e) { + return e instanceof u.default || e instanceof c.BlockEmbed; + } + var g = (function(e) { + function t(e, n) { + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t); + var r = (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( + this, + (t.__proto__ || Object.getPrototypeOf(t)).call(this, e) + ); + return ( + (r.emitter = n.emitter), + Array.isArray(n.whitelist) && + (r.whitelist = n.whitelist.reduce(function(e, t) { + return (e[t] = !0), e; + }, {})), + r.domNode.addEventListener( + 'DOMNodeInserted', + function() {} + ), + r.optimize(), + r.enable(), + r + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + o(t, [ + { + key: 'batchStart', + value: function() { + this.batch = !0; + } + }, + { + key: 'batchEnd', + value: function() { + (this.batch = !1), this.optimize(); + } + }, + { + key: 'deleteAt', + value: function(e, n) { + var o = this.line(e), + a = r(o, 2), + s = a[0], + u = a[1], + d = this.line(e + n), + p = r(d, 1)[0]; + if ( + (i( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'deleteAt', + this + ).call(this, e, n), + null != p && s !== p && u > 0) + ) { + if ( + s instanceof c.BlockEmbed || + p instanceof c.BlockEmbed + ) + return void this.optimize(); + if (s instanceof f.default) { + var h = s.newlineIndex(s.length(), !0); + if (h > -1 && (s = s.split(h + 1)) === p) + return void this.optimize(); + } else if (p instanceof f.default) { + var g = p.newlineIndex(0); + g > -1 && p.split(g + 1); + } + var m = + p.children.head instanceof l.default + ? null + : p.children.head; + s.moveChildren(p, m), s.remove(); + } + this.optimize(); + } + }, + { + key: 'enable', + value: function() { + var e = + !( + arguments.length > 0 && void 0 !== arguments[0] + ) || arguments[0]; + this.domNode.setAttribute('contenteditable', e); + } + }, + { + key: 'formatAt', + value: function(e, n, r, o) { + (null == this.whitelist || this.whitelist[r]) && + (i( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'formatAt', + this + ).call(this, e, n, r, o), + this.optimize()); + } + }, + { + key: 'insertAt', + value: function(e, n, r) { + if ( + null == r || + null == this.whitelist || + this.whitelist[n] + ) { + if (e >= this.length()) + if ( + null == r || + null == + a.default.query(n, a.default.Scope.BLOCK) + ) { + var o = a.default.create( + this.statics.defaultChild + ); + this.appendChild(o), + null == r && + n.endsWith('\n') && + (n = n.slice(0, -1)), + o.insertAt(0, n, r); + } else { + var s = a.default.create(n, r); + this.appendChild(s); + } + else + i( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'insertAt', + this + ).call(this, e, n, r); + this.optimize(); + } + } + }, + { + key: 'insertBefore', + value: function(e, n) { + if (e.statics.scope === a.default.Scope.INLINE_BLOT) { + var r = a.default.create(this.statics.defaultChild); + r.appendChild(e), (e = r); + } + i( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'insertBefore', + this + ).call(this, e, n); + } + }, + { + key: 'leaf', + value: function(e) { + return this.path(e).pop() || [null, -1]; + } + }, + { + key: 'line', + value: function(e) { + return e === this.length() + ? this.line(e - 1) + : this.descendant(h, e); + } + }, + { + key: 'lines', + value: function() { + var e = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : 0, + t = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : Number.MAX_VALUE, + n = function e(t, n, r) { + var o = [], + i = r; + return ( + t.children.forEachAt(n, r, function(t, n, r) { + h(t) + ? o.push(t) + : t instanceof a.default.Container && + (o = o.concat(e(t, n, i))), + (i -= r); + }), + o + ); + }; + return n(this, e, t); + } + }, + { + key: 'optimize', + value: function() { + var e = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : [], + n = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : {}; + !0 !== this.batch && + (i( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'optimize', + this + ).call(this, e, n), + e.length > 0 && + this.emitter.emit( + s.default.events.SCROLL_OPTIMIZE, + e, + n + )); + } + }, + { + key: 'path', + value: function(e) { + return i( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'path', + this + ) + .call(this, e) + .slice(1); + } + }, + { + key: 'update', + value: function(e) { + if (!0 !== this.batch) { + var n = s.default.sources.USER; + 'string' == typeof e && (n = e), + Array.isArray(e) || + (e = this.observer.takeRecords()), + e.length > 0 && + this.emitter.emit( + s.default.events.SCROLL_BEFORE_UPDATE, + n, + e + ), + i( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'update', + this + ).call(this, e.concat([])), + e.length > 0 && + this.emitter.emit( + s.default.events.SCROLL_UPDATE, + n, + e + ); + } + } + } + ]), + t + ); + })(a.default.Scroll); + (g.blotName = 'scroll'), + (g.className = 'ql-editor'), + (g.tagName = 'DIV'), + (g.defaultChild = 'block'), + (g.allowedChildren = [u.default, c.BlockEmbed, d.default]), + (t.default = g); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.SHORTKEY = t.default = void 0); + var r = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(e) { + return typeof e; + } + : function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e; + }, + o = function(e, t) { + if (Array.isArray(e)) return e; + if (Symbol.iterator in Object(e)) + return (function(e, t) { + var n = [], + r = !0, + o = !1, + i = void 0; + try { + for ( + var a, s = e[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !t || n.length !== t); + r = !0 + ); + } catch (e) { + (o = !0), (i = e); + } finally { + try { + !r && s.return && s.return(); + } finally { + if (o) throw i; + } + } + return n; + })(e, t); + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' + ); + }, + i = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + a = g(n(21)), + s = g(n(11)), + c = g(n(3)), + u = g(n(2)), + l = g(n(20)), + f = g(n(0)), + d = g(n(5)), + p = g(n(10)), + h = g(n(9)); + function g(e) { + return e && e.__esModule ? e : { default: e }; + } + function m(e, t, n) { + return ( + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), + e + ); + } + var b = (0, p.default)('quill:keyboard'), + y = /Mac/i.test(navigator.platform) ? 'metaKey' : 'ctrlKey', + v = (function(e) { + function t(e, n) { + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t); + var r = (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( + this, + (t.__proto__ || Object.getPrototypeOf(t)).call( + this, + e, + n + ) + ); + return ( + (r.bindings = {}), + Object.keys(r.options.bindings).forEach(function(t) { + ('list autofill' !== t || + null == e.scroll.whitelist || + e.scroll.whitelist.list) && + r.options.bindings[t] && + r.addBinding(r.options.bindings[t]); + }), + r.addBinding({ key: t.keys.ENTER, shiftKey: null }, k), + r.addBinding( + { + key: t.keys.ENTER, + metaKey: null, + ctrlKey: null, + altKey: null + }, + function() {} + ), + /Firefox/i.test(navigator.userAgent) + ? (r.addBinding( + { key: t.keys.BACKSPACE }, + { collapsed: !0 }, + w + ), + r.addBinding( + { key: t.keys.DELETE }, + { collapsed: !0 }, + x + )) + : (r.addBinding( + { key: t.keys.BACKSPACE }, + { collapsed: !0, prefix: /^.?$/ }, + w + ), + r.addBinding( + { key: t.keys.DELETE }, + { collapsed: !0, suffix: /^.?$/ }, + x + )), + r.addBinding( + { key: t.keys.BACKSPACE }, + { collapsed: !1 }, + M + ), + r.addBinding( + { key: t.keys.DELETE }, + { collapsed: !1 }, + M + ), + r.addBinding( + { + key: t.keys.BACKSPACE, + altKey: null, + ctrlKey: null, + metaKey: null, + shiftKey: null + }, + { collapsed: !0, offset: 0 }, + w + ), + r.listen(), + r + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + i(t, null, [ + { + key: 'match', + value: function(e, t) { + return ( + (t = E(t)), + ![ + 'altKey', + 'ctrlKey', + 'metaKey', + 'shiftKey' + ].some(function(n) { + return !!t[n] !== e[n] && null !== t[n]; + }) && t.key === (e.which || e.keyCode) + ); + } + } + ]), + i(t, [ + { + key: 'addBinding', + value: function(e) { + var t = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : {}, + n = + arguments.length > 2 && void 0 !== arguments[2] + ? arguments[2] + : {}, + r = E(e); + if (null == r || null == r.key) + return b.warn( + 'Attempted to add invalid keyboard binding', + r + ); + 'function' == typeof t && (t = { handler: t }), + 'function' == typeof n && (n = { handler: n }), + (r = (0, c.default)(r, t, n)), + (this.bindings[r.key] = + this.bindings[r.key] || []), + this.bindings[r.key].push(r); + } + }, + { + key: 'listen', + value: function() { + var e = this; + this.quill.root.addEventListener( + 'keydown', + function(n) { + if (!n.defaultPrevented) { + var i = n.which || n.keyCode, + a = (e.bindings[i] || []).filter(function( + e + ) { + return t.match(n, e); + }); + if (0 !== a.length) { + var c = e.quill.getSelection(); + if (null != c && e.quill.hasFocus()) { + var u = e.quill.getLine(c.index), + l = o(u, 2), + d = l[0], + p = l[1], + h = e.quill.getLeaf(c.index), + g = o(h, 2), + m = g[0], + b = g[1], + y = + 0 === c.length + ? [m, b] + : e.quill.getLeaf( + c.index + c.length + ), + v = o(y, 2), + _ = v[0], + w = v[1], + x = + m instanceof f.default.Text + ? m.value().slice(0, b) + : '', + M = + _ instanceof f.default.Text + ? _.value().slice(w) + : '', + k = { + collapsed: 0 === c.length, + empty: + 0 === c.length && d.length() <= 1, + format: e.quill.getFormat(c), + offset: p, + prefix: x, + suffix: M + }; + a.some(function(t) { + if ( + null != t.collapsed && + t.collapsed !== k.collapsed + ) + return !1; + if ( + null != t.empty && + t.empty !== k.empty + ) + return !1; + if ( + null != t.offset && + t.offset !== k.offset + ) + return !1; + if (Array.isArray(t.format)) { + if ( + t.format.every(function(e) { + return null == k.format[e]; + }) + ) + return !1; + } else if ( + 'object' === r(t.format) && + !Object.keys(t.format).every(function( + e + ) { + return !0 === t.format[e] + ? null != k.format[e] + : !1 === t.format[e] + ? null == k.format[e] + : (0, s.default)( + t.format[e], + k.format[e] + ); + }) + ) + return !1; + return !( + (null != t.prefix && + !t.prefix.test(k.prefix)) || + (null != t.suffix && + !t.suffix.test(k.suffix)) || + !0 === t.handler.call(e, c, k) + ); + }) && n.preventDefault(); + } + } + } + } + ); + } + } + ]), + t + ); + })(h.default); + function _(e, t) { + var n, + r = e === v.keys.LEFT ? 'prefix' : 'suffix'; + return ( + m((n = { key: e, shiftKey: t, altKey: null }), r, /^$/), + m(n, 'handler', function(n) { + var r = n.index; + e === v.keys.RIGHT && (r += n.length + 1); + var i = this.quill.getLeaf(r); + return !( + o(i, 1)[0] instanceof f.default.Embed && + (e === v.keys.LEFT + ? t + ? this.quill.setSelection( + n.index - 1, + n.length + 1, + d.default.sources.USER + ) + : this.quill.setSelection( + n.index - 1, + d.default.sources.USER + ) + : t + ? this.quill.setSelection( + n.index, + n.length + 1, + d.default.sources.USER + ) + : this.quill.setSelection( + n.index + n.length + 1, + d.default.sources.USER + ), + 1) + ); + }), + n + ); + } + function w(e, t) { + if (!(0 === e.index || this.quill.getLength() <= 1)) { + var n = this.quill.getLine(e.index), + r = o(n, 1)[0], + i = {}; + if (0 === t.offset) { + var a = this.quill.getLine(e.index - 1), + s = o(a, 1)[0]; + if (null != s && s.length() > 1) { + var c = r.formats(), + u = this.quill.getFormat(e.index - 1, 1); + i = l.default.attributes.diff(c, u) || {}; + } + } + var f = /[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix) + ? 2 + : 1; + this.quill.deleteText( + e.index - f, + f, + d.default.sources.USER + ), + Object.keys(i).length > 0 && + this.quill.formatLine( + e.index - f, + f, + i, + d.default.sources.USER + ), + this.quill.focus(); + } + } + function x(e, t) { + var n = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix) + ? 2 + : 1; + if (!(e.index >= this.quill.getLength() - n)) { + var r = {}, + i = 0, + a = this.quill.getLine(e.index), + s = o(a, 1)[0]; + if (t.offset >= s.length() - 1) { + var c = this.quill.getLine(e.index + 1), + u = o(c, 1)[0]; + if (u) { + var f = s.formats(), + p = this.quill.getFormat(e.index, 1); + (r = l.default.attributes.diff(f, p) || {}), + (i = u.length()); + } + } + this.quill.deleteText(e.index, n, d.default.sources.USER), + Object.keys(r).length > 0 && + this.quill.formatLine( + e.index + i - 1, + n, + r, + d.default.sources.USER + ); + } + } + function M(e) { + var t = this.quill.getLines(e), + n = {}; + if (t.length > 1) { + var r = t[0].formats(), + o = t[t.length - 1].formats(); + n = l.default.attributes.diff(o, r) || {}; + } + this.quill.deleteText(e, d.default.sources.USER), + Object.keys(n).length > 0 && + this.quill.formatLine( + e.index, + 1, + n, + d.default.sources.USER + ), + this.quill.setSelection(e.index, d.default.sources.SILENT), + this.quill.focus(); + } + function k(e, t) { + var n = this; + e.length > 0 && this.quill.scroll.deleteAt(e.index, e.length); + var r = Object.keys(t.format).reduce(function(e, n) { + return ( + f.default.query(n, f.default.Scope.BLOCK) && + !Array.isArray(t.format[n]) && + (e[n] = t.format[n]), + e + ); + }, {}); + this.quill.insertText( + e.index, + '\n', + r, + d.default.sources.USER + ), + this.quill.setSelection( + e.index + 1, + d.default.sources.SILENT + ), + this.quill.focus(), + Object.keys(t.format).forEach(function(e) { + null == r[e] && + (Array.isArray(t.format[e]) || + ('link' !== e && + n.quill.format( + e, + t.format[e], + d.default.sources.USER + ))); + }); + } + function S(e) { + return { + key: v.keys.TAB, + shiftKey: !e, + format: { 'code-block': !0 }, + handler: function(t) { + var n = f.default.query('code-block'), + r = t.index, + i = t.length, + a = this.quill.scroll.descendant(n, r), + s = o(a, 2), + c = s[0], + u = s[1]; + if (null != c) { + var l = this.quill.getIndex(c), + p = c.newlineIndex(u, !0) + 1, + h = c.newlineIndex(l + u + i), + g = c.domNode.textContent.slice(p, h).split('\n'); + (u = 0), + g.forEach(function(t, o) { + e + ? (c.insertAt(p + u, n.TAB), + (u += n.TAB.length), + 0 === o + ? (r += n.TAB.length) + : (i += n.TAB.length)) + : t.startsWith(n.TAB) && + (c.deleteAt(p + u, n.TAB.length), + (u -= n.TAB.length), + 0 === o + ? (r -= n.TAB.length) + : (i -= n.TAB.length)), + (u += t.length + 1); + }), + this.quill.update(d.default.sources.USER), + this.quill.setSelection( + r, + i, + d.default.sources.SILENT + ); + } + } + }; + } + function O(e) { + return { + key: e[0].toUpperCase(), + shortKey: !0, + handler: function(t, n) { + this.quill.format( + e, + !n.format[e], + d.default.sources.USER + ); + } + }; + } + function E(e) { + if ('string' == typeof e || 'number' == typeof e) + return E({ key: e }); + if ( + ('object' === (void 0 === e ? 'undefined' : r(e)) && + (e = (0, a.default)(e, !1)), + 'string' == typeof e.key) ) - ) - ) + - ')' - ); - }; - function t_(e) { - var t = e.length; - return function(n) { - return e[Math.max(0, Math.min(t - 1, Math.floor(n * t)))]; - }; - } - var n_ = t_( - Py( - '44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725' - ) - ), - r_ = t_( - Py( - '00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf' - ) - ), - o_ = t_( - Py( - '00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4' - ) - ), - i_ = t_( - Py( - '0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921' - ) - ), - a_ = function(e) { - return Mt(rt(e).call(document.documentElement)); - }, - s_ = 0; - function c_() { - return new u_(); - } - function u_() { - this._ = '@' + (++s_).toString(36); - } - u_.prototype = c_.prototype = { - constructor: u_, - get: function(e) { - for (var t = this._; !(t in e); ) if (!(e = e.parentNode)) return; - return e[t]; - }, - set: function(e, t) { - return (e[this._] = t); - }, - remove: function(e) { - return this._ in e && delete e[this._]; - }, - toString: function() { - return this._; - } - }; - var l_ = function(e) { - return 'string' == typeof e - ? new _t([document.querySelectorAll(e)], [document.documentElement]) - : new _t([null == e ? [] : e], vt); - }, - f_ = function(e, t) { - null == t && (t = Cn().touches); - for (var n = 0, r = t ? t.length : 0, o = new Array(r); n < r; ++n) - o[n] = Ln(e, t[n]); - return o; - }, - d_ = function(e) { - return function() { - return e; - }; - }, - p_ = Math.abs, - h_ = Math.atan2, - g_ = Math.cos, - m_ = Math.max, - b_ = Math.min, - y_ = Math.sin, - v_ = Math.sqrt, - __ = Math.PI, - x_ = __ / 2, - w_ = 2 * __; - function M_(e) { - return e > 1 ? 0 : e < -1 ? __ : Math.acos(e); - } - function k_(e) { - return e >= 1 ? x_ : e <= -1 ? -x_ : Math.asin(e); - } - function S_(e) { - return e.innerRadius; - } - function A_(e) { - return e.outerRadius; - } - function O_(e) { - return e.startAngle; - } - function E_(e) { - return e.endAngle; - } - function T_(e) { - return e && e.padAngle; - } - function C_(e, t, n, r, o, i, a, s) { - var c = n - e, - u = r - t, - l = a - o, - f = s - i, - d = f * c - l * u; - if (!(d * d < 1e-12)) - return [e + (d = (l * (t - i) - f * (e - o)) / d) * c, t + d * u]; - } - function L_(e, t, n, r, o, i, a) { - var s = e - n, - c = t - r, - u = (a ? i : -i) / v_(s * s + c * c), - l = u * c, - f = -u * s, - d = e + l, - p = t + f, - h = n + l, - g = r + f, - m = (d + h) / 2, - b = (p + g) / 2, - y = h - d, - v = g - p, - _ = y * y + v * v, - x = o - i, - w = d * g - h * p, - M = (v < 0 ? -1 : 1) * v_(m_(0, x * x * _ - w * w)), - k = (w * v - y * M) / _, - S = (-w * y - v * M) / _, - A = (w * v + y * M) / _, - O = (-w * y + v * M) / _, - E = k - m, - T = S - b, - C = A - m, - L = O - b; - return ( - E * E + T * T > C * C + L * L && ((k = A), (S = O)), - { - cx: k, - cy: S, - x01: -l, - y01: -f, - x11: k * (o / x - 1), - y11: S * (o / x - 1) - } - ); - } - var P_ = function() { - var e = S_, - t = A_, - n = d_(0), - r = null, - o = O_, - i = E_, - a = T_, - s = null; - function c() { - var c, - u, - l = +e.apply(this, arguments), - f = +t.apply(this, arguments), - d = o.apply(this, arguments) - x_, - p = i.apply(this, arguments) - x_, - h = p_(p - d), - g = p > d; - if ( - (s || (s = c = Wo()), - f < l && ((u = f), (f = l), (l = u)), - f > 1e-12) - ) - if (h > w_ - 1e-12) - s.moveTo(f * g_(d), f * y_(d)), - s.arc(0, 0, f, d, p, !g), - l > 1e-12 && - (s.moveTo(l * g_(p), l * y_(p)), s.arc(0, 0, l, p, d, g)); - else { - var m, - b, - y = d, - v = p, - _ = d, - x = p, - w = h, - M = h, - k = a.apply(this, arguments) / 2, - S = - k > 1e-12 && - (r ? +r.apply(this, arguments) : v_(l * l + f * f)), - A = b_(p_(f - l) / 2, +n.apply(this, arguments)), - O = A, - E = A; - if (S > 1e-12) { - var T = k_((S / l) * y_(k)), - C = k_((S / f) * y_(k)); - (w -= 2 * T) > 1e-12 - ? ((_ += T *= g ? 1 : -1), (x -= T)) - : ((w = 0), (_ = x = (d + p) / 2)), - (M -= 2 * C) > 1e-12 - ? ((y += C *= g ? 1 : -1), (v -= C)) - : ((M = 0), (y = v = (d + p) / 2)); - } - var L = f * g_(y), - P = f * y_(y), - D = l * g_(x), - z = l * y_(x); - if (A > 1e-12) { - var N, - j = f * g_(v), - R = f * y_(v), - I = l * g_(_), - F = l * y_(_); - if (h < __ && (N = C_(L, P, I, F, j, R, D, z))) { - var q = L - N[0], - B = P - N[1], - H = j - N[0], - Y = R - N[1], - W = - 1 / - y_( - M_( - (q * H + B * Y) / - (v_(q * q + B * B) * v_(H * H + Y * Y)) - ) / 2 + if (null != v.keys[e.key.toUpperCase()]) + e.key = v.keys[e.key.toUpperCase()]; + else { + if (1 !== e.key.length) return null; + e.key = e.key.toUpperCase().charCodeAt(0); + } + return ( + e.shortKey && ((e[y] = e.shortKey), delete e.shortKey), e + ); + } + (v.keys = { + BACKSPACE: 8, + TAB: 9, + ENTER: 13, + ESCAPE: 27, + LEFT: 37, + UP: 38, + RIGHT: 39, + DOWN: 40, + DELETE: 46 + }), + (v.DEFAULTS = { + bindings: { + bold: O('bold'), + italic: O('italic'), + underline: O('underline'), + indent: { + key: v.keys.TAB, + format: ['blockquote', 'indent', 'list'], + handler: function(e, t) { + if (t.collapsed && 0 !== t.offset) return !0; + this.quill.format( + 'indent', + '+1', + d.default.sources.USER + ); + } + }, + outdent: { + key: v.keys.TAB, + shiftKey: !0, + format: ['blockquote', 'indent', 'list'], + handler: function(e, t) { + if (t.collapsed && 0 !== t.offset) return !0; + this.quill.format( + 'indent', + '-1', + d.default.sources.USER + ); + } + }, + 'outdent backspace': { + key: v.keys.BACKSPACE, + collapsed: !0, + shiftKey: null, + metaKey: null, + ctrlKey: null, + altKey: null, + format: ['indent', 'list'], + offset: 0, + handler: function(e, t) { + null != t.format.indent + ? this.quill.format( + 'indent', + '-1', + d.default.sources.USER + ) + : null != t.format.list && + this.quill.format( + 'list', + !1, + d.default.sources.USER + ); + } + }, + 'indent code-block': S(!0), + 'outdent code-block': S(!1), + 'remove tab': { + key: v.keys.TAB, + shiftKey: !0, + collapsed: !0, + prefix: /\t$/, + handler: function(e) { + this.quill.deleteText( + e.index - 1, + 1, + d.default.sources.USER + ); + } + }, + tab: { + key: v.keys.TAB, + handler: function(e) { + this.quill.history.cutoff(); + var t = new u.default() + .retain(e.index) + .delete(e.length) + .insert('\t'); + this.quill.updateContents(t, d.default.sources.USER), + this.quill.history.cutoff(), + this.quill.setSelection( + e.index + 1, + d.default.sources.SILENT + ); + } + }, + 'list empty enter': { + key: v.keys.ENTER, + collapsed: !0, + format: ['list'], + empty: !0, + handler: function(e, t) { + this.quill.format('list', !1, d.default.sources.USER), + t.format.indent && + this.quill.format( + 'indent', + !1, + d.default.sources.USER + ); + } + }, + 'checklist enter': { + key: v.keys.ENTER, + collapsed: !0, + format: { list: 'checked' }, + handler: function(e) { + var t = this.quill.getLine(e.index), + n = o(t, 2), + r = n[0], + i = n[1], + a = (0, c.default)({}, r.formats(), { + list: 'checked' + }), + s = new u.default() + .retain(e.index) + .insert('\n', a) + .retain(r.length() - i - 1) + .retain(1, { list: 'unchecked' }); + this.quill.updateContents(s, d.default.sources.USER), + this.quill.setSelection( + e.index + 1, + d.default.sources.SILENT + ), + this.quill.scrollIntoView(); + } + }, + 'header enter': { + key: v.keys.ENTER, + collapsed: !0, + format: ['header'], + suffix: /^$/, + handler: function(e, t) { + var n = this.quill.getLine(e.index), + r = o(n, 2), + i = r[0], + a = r[1], + s = new u.default() + .retain(e.index) + .insert('\n', t.format) + .retain(i.length() - a - 1) + .retain(1, { header: null }); + this.quill.updateContents(s, d.default.sources.USER), + this.quill.setSelection( + e.index + 1, + d.default.sources.SILENT + ), + this.quill.scrollIntoView(); + } + }, + 'list autofill': { + key: ' ', + collapsed: !0, + format: { list: !1 }, + prefix: /^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/, + handler: function(e, t) { + var n = t.prefix.length, + r = this.quill.getLine(e.index), + i = o(r, 2), + a = i[0], + s = i[1]; + if (s > n) return !0; + var c = void 0; + switch (t.prefix.trim()) { + case '[]': + case '[ ]': + c = 'unchecked'; + break; + case '[x]': + c = 'checked'; + break; + case '-': + case '*': + c = 'bullet'; + break; + default: + c = 'ordered'; + } + this.quill.insertText( + e.index, + ' ', + d.default.sources.USER + ), + this.quill.history.cutoff(); + var l = new u.default() + .retain(e.index - s) + .delete(n + 1) + .retain(a.length() - 2 - s) + .retain(1, { list: c }); + this.quill.updateContents(l, d.default.sources.USER), + this.quill.history.cutoff(), + this.quill.setSelection( + e.index - n, + d.default.sources.SILENT + ); + } + }, + 'code exit': { + key: v.keys.ENTER, + collapsed: !0, + format: ['code-block'], + prefix: /\n\n$/, + suffix: /^\s+$/, + handler: function(e) { + var t = this.quill.getLine(e.index), + n = o(t, 2), + r = n[0], + i = n[1], + a = new u.default() + .retain(e.index + r.length() - i - 2) + .retain(1, { 'code-block': null }) + .delete(1); + this.quill.updateContents(a, d.default.sources.USER); + } + }, + 'embed left': _(v.keys.LEFT, !1), + 'embed left shift': _(v.keys.LEFT, !0), + 'embed right': _(v.keys.RIGHT, !1), + 'embed right shift': _(v.keys.RIGHT, !0) + } + }), + (t.default = v), + (t.SHORTKEY = y); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = function(e, t) { + if (Array.isArray(e)) return e; + if (Symbol.iterator in Object(e)) + return (function(e, t) { + var n = [], + r = !0, + o = !1, + i = void 0; + try { + for ( + var a, s = e[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !t || n.length !== t); + r = !0 + ); + } catch (e) { + (o = !0), (i = e); + } finally { + try { + !r && s.return && s.return(); + } finally { + if (o) throw i; + } + } + return n; + })(e, t); + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' + ); + }, + o = function e(t, n, r) { + null === t && (t = Function.prototype); + var o = Object.getOwnPropertyDescriptor(t, n); + if (void 0 === o) { + var i = Object.getPrototypeOf(t); + return null === i ? void 0 : e(i, n, r); + } + if ('value' in o) return o.value; + var a = o.get; + return void 0 !== a ? a.call(r) : void 0; + }, + i = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + a = c(n(0)), + s = c(n(7)); + function c(e) { + return e && e.__esModule ? e : { default: e }; + } + var u = (function(e) { + function t(e, n) { + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t); + var r = (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( + this, + (t.__proto__ || Object.getPrototypeOf(t)).call(this, e) + ); + return ( + (r.selection = n), + (r.textNode = document.createTextNode(t.CONTENTS)), + r.domNode.appendChild(r.textNode), + (r._length = 0), + r + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + i(t, null, [{ key: 'value', value: function() {} }]), + i(t, [ + { + key: 'detach', + value: function() { + null != this.parent && this.parent.removeChild(this); + } + }, + { + key: 'format', + value: function(e, n) { + if (0 !== this._length) + return o( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'format', + this + ).call(this, e, n); + for ( + var r = this, i = 0; + null != r && + r.statics.scope !== a.default.Scope.BLOCK_BLOT; + + ) + (i += r.offset(r.parent)), (r = r.parent); + null != r && + ((this._length = t.CONTENTS.length), + r.optimize(), + r.formatAt(i, t.CONTENTS.length, e, n), + (this._length = 0)); + } + }, + { + key: 'index', + value: function(e, n) { + return e === this.textNode + ? 0 + : o( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'index', + this + ).call(this, e, n); + } + }, + { + key: 'length', + value: function() { + return this._length; + } + }, + { + key: 'position', + value: function() { + return [this.textNode, this.textNode.data.length]; + } + }, + { + key: 'remove', + value: function() { + o( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'remove', + this + ).call(this), + (this.parent = null); + } + }, + { + key: 'restore', + value: function() { + if ( + !this.selection.composing && + null != this.parent + ) { + var e = this.textNode, + n = this.selection.getNativeRange(), + o = void 0, + i = void 0, + c = void 0; + if ( + null != n && + n.start.node === e && + n.end.node === e + ) { + var u = [e, n.start.offset, n.end.offset]; + (o = u[0]), (i = u[1]), (c = u[2]); + } + for ( + ; + null != this.domNode.lastChild && + this.domNode.lastChild !== this.textNode; + + ) + this.domNode.parentNode.insertBefore( + this.domNode.lastChild, + this.domNode + ); + if (this.textNode.data !== t.CONTENTS) { + var l = this.textNode.data + .split(t.CONTENTS) + .join(''); + this.next instanceof s.default + ? ((o = this.next.domNode), + this.next.insertAt(0, l), + (this.textNode.data = t.CONTENTS)) + : ((this.textNode.data = l), + this.parent.insertBefore( + a.default.create(this.textNode), + this + ), + (this.textNode = document.createTextNode( + t.CONTENTS + )), + this.domNode.appendChild(this.textNode)); + } + if ((this.remove(), null != i)) { + var f = [i, c].map(function(e) { + return Math.max( + 0, + Math.min(o.data.length, e - 1) + ); + }), + d = r(f, 2); + return ( + (i = d[0]), + (c = d[1]), + { + startNode: o, + startOffset: i, + endNode: o, + endOffset: c + } + ); + } + } + } + }, + { + key: 'update', + value: function(e, t) { + var n = this; + if ( + e.some(function(e) { + return ( + 'characterData' === e.type && + e.target === n.textNode + ); + }) + ) { + var r = this.restore(); + r && (t.range = r); + } + } + }, + { + key: 'value', + value: function() { + return ''; + } + } + ]), + t + ); + })(a.default.Embed); + (u.blotName = 'cursor'), + (u.className = 'ql-cursor'), + (u.tagName = 'span'), + (u.CONTENTS = '\ufeff'), + (t.default = u); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = a(n(0)), + o = n(4), + i = a(o); + function a(e) { + return e && e.__esModule ? e : { default: e }; + } + var s = (function(e) { + function t() { + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( + this, + (t.__proto__ || Object.getPrototypeOf(t)).apply( + this, + arguments + ) + ) + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + t + ); + })(r.default.Container); + (s.allowedChildren = [i.default, o.BlockEmbed, s]), + (t.default = s); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.ColorStyle = t.ColorClass = t.ColorAttributor = void 0); + var r, + o = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + i = n(0), + a = (r = i) && r.__esModule ? r : { default: r }, + s = (function(e) { + function t() { + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( + this, + (t.__proto__ || Object.getPrototypeOf(t)).apply( + this, + arguments + ) + ) + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + o(t, [ + { + key: 'value', + value: function(e) { + var n = (function e(t, n, r) { + null === t && (t = Function.prototype); + var o = Object.getOwnPropertyDescriptor(t, n); + if (void 0 === o) { + var i = Object.getPrototypeOf(t); + return null === i ? void 0 : e(i, n, r); + } + if ('value' in o) return o.value; + var a = o.get; + return void 0 !== a ? a.call(r) : void 0; + })( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'value', + this + ).call(this, e); + return n.startsWith('rgb(') + ? ((n = n + .replace(/^[^\d]+/, '') + .replace(/[^\d]+$/, '')), + '#' + + n + .split(',') + .map(function(e) { + return ( + '00' + parseInt(e).toString(16) + ).slice(-2); + }) + .join('')) + : n; + } + } + ]), + t + ); + })(a.default.Attributor.Style), + c = new a.default.Attributor.Class('color', 'ql-color', { + scope: a.default.Scope.INLINE + }), + u = new s('color', 'color', { + scope: a.default.Scope.INLINE + }); + (t.ColorAttributor = s), (t.ColorClass = c), (t.ColorStyle = u); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.sanitize = t.default = void 0); + var r, + o = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + i = function e(t, n, r) { + null === t && (t = Function.prototype); + var o = Object.getOwnPropertyDescriptor(t, n); + if (void 0 === o) { + var i = Object.getPrototypeOf(t); + return null === i ? void 0 : e(i, n, r); + } + if ('value' in o) return o.value; + var a = o.get; + return void 0 !== a ? a.call(r) : void 0; + }, + a = n(6), + s = (function(e) { + function t() { + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( + this, + (t.__proto__ || Object.getPrototypeOf(t)).apply( + this, + arguments + ) + ) + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + o( + t, + [ + { + key: 'format', + value: function(e, n) { + if (e !== this.statics.blotName || !n) + return i( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'format', + this + ).call(this, e, n); + (n = this.constructor.sanitize(n)), + this.domNode.setAttribute('href', n); + } + } + ], + [ + { + key: 'create', + value: function(e) { + var n = i( + t.__proto__ || Object.getPrototypeOf(t), + 'create', + this + ).call(this, e); + return ( + (e = this.sanitize(e)), + n.setAttribute('href', e), + n.setAttribute('rel', 'noopener noreferrer'), + n.setAttribute('target', '_blank'), + n + ); + } + }, + { + key: 'formats', + value: function(e) { + return e.getAttribute('href'); + } + }, + { + key: 'sanitize', + value: function(e) { + return c(e, this.PROTOCOL_WHITELIST) + ? e + : this.SANITIZED_URL; + } + } + ] + ), + t + ); + })(((r = a) && r.__esModule ? r : { default: r }).default); + function c(e, t) { + var n = document.createElement('a'); + n.href = e; + var r = n.href.slice(0, n.href.indexOf(':')); + return t.indexOf(r) > -1; + } + (s.blotName = 'link'), + (s.tagName = 'A'), + (s.SANITIZED_URL = 'about:blank'), + (s.PROTOCOL_WHITELIST = ['http', 'https', 'mailto', 'tel']), + (t.default = s), + (t.sanitize = c); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(e) { + return typeof e; + } + : function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e; + }, + o = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + i = s(n(23)), + a = s(n(107)); + function s(e) { + return e && e.__esModule ? e : { default: e }; + } + var c = 0; + function u(e, t) { + e.setAttribute(t, !('true' === e.getAttribute(t))); + } + var l = (function() { + function e(t) { + var n = this; + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, e), + (this.select = t), + (this.container = document.createElement('span')), + this.buildPicker(), + (this.select.style.display = 'none'), + this.select.parentNode.insertBefore( + this.container, + this.select + ), + this.label.addEventListener('mousedown', function() { + n.togglePicker(); + }), + this.label.addEventListener('keydown', function(e) { + switch (e.keyCode) { + case i.default.keys.ENTER: + n.togglePicker(); + break; + case i.default.keys.ESCAPE: + n.escape(), e.preventDefault(); + } + }), + this.select.addEventListener( + 'change', + this.update.bind(this) + ); + } + return ( + o(e, [ + { + key: 'togglePicker', + value: function() { + this.container.classList.toggle('ql-expanded'), + u(this.label, 'aria-expanded'), + u(this.options, 'aria-hidden'); + } + }, + { + key: 'buildItem', + value: function(e) { + var t = this, + n = document.createElement('span'); + return ( + (n.tabIndex = '0'), + n.setAttribute('role', 'button'), + n.classList.add('ql-picker-item'), + e.hasAttribute('value') && + n.setAttribute( + 'data-value', + e.getAttribute('value') + ), + e.textContent && + n.setAttribute('data-label', e.textContent), + n.addEventListener('click', function() { + t.selectItem(n, !0); + }), + n.addEventListener('keydown', function(e) { + switch (e.keyCode) { + case i.default.keys.ENTER: + t.selectItem(n, !0), e.preventDefault(); + break; + case i.default.keys.ESCAPE: + t.escape(), e.preventDefault(); + } + }), + n + ); + } + }, + { + key: 'buildLabel', + value: function() { + var e = document.createElement('span'); + return ( + e.classList.add('ql-picker-label'), + (e.innerHTML = a.default), + (e.tabIndex = '0'), + e.setAttribute('role', 'button'), + e.setAttribute('aria-expanded', 'false'), + this.container.appendChild(e), + e + ); + } + }, + { + key: 'buildOptions', + value: function() { + var e = this, + t = document.createElement('span'); + t.classList.add('ql-picker-options'), + t.setAttribute('aria-hidden', 'true'), + (t.tabIndex = '-1'), + (t.id = 'ql-picker-options-' + c), + (c += 1), + this.label.setAttribute('aria-controls', t.id), + (this.options = t), + [].slice + .call(this.select.options) + .forEach(function(n) { + var r = e.buildItem(n); + t.appendChild(r), + !0 === n.selected && e.selectItem(r); + }), + this.container.appendChild(t); + } + }, + { + key: 'buildPicker', + value: function() { + var e = this; + [].slice + .call(this.select.attributes) + .forEach(function(t) { + e.container.setAttribute(t.name, t.value); + }), + this.container.classList.add('ql-picker'), + (this.label = this.buildLabel()), + this.buildOptions(); + } + }, + { + key: 'escape', + value: function() { + var e = this; + this.close(), + setTimeout(function() { + return e.label.focus(); + }, 1); + } + }, + { + key: 'close', + value: function() { + this.container.classList.remove('ql-expanded'), + this.label.setAttribute('aria-expanded', 'false'), + this.options.setAttribute('aria-hidden', 'true'); + } + }, + { + key: 'selectItem', + value: function(e) { + var t = + arguments.length > 1 && + void 0 !== arguments[1] && + arguments[1], + n = this.container.querySelector('.ql-selected'); + if ( + e !== n && + (null != n && n.classList.remove('ql-selected'), + null != e && + (e.classList.add('ql-selected'), + (this.select.selectedIndex = [].indexOf.call( + e.parentNode.children, + e + )), + e.hasAttribute('data-value') + ? this.label.setAttribute( + 'data-value', + e.getAttribute('data-value') + ) + : this.label.removeAttribute('data-value'), + e.hasAttribute('data-label') + ? this.label.setAttribute( + 'data-label', + e.getAttribute('data-label') + ) + : this.label.removeAttribute('data-label'), + t)) + ) { + if ('function' == typeof Event) + this.select.dispatchEvent(new Event('change')); + else if ( + 'object' === + ('undefined' == typeof Event + ? 'undefined' + : r(Event)) + ) { + var o = document.createEvent('Event'); + o.initEvent('change', !0, !0), + this.select.dispatchEvent(o); + } + this.close(); + } + } + }, + { + key: 'update', + value: function() { + var e = void 0; + if (this.select.selectedIndex > -1) { + var t = this.container.querySelector( + '.ql-picker-options' + ).children[this.select.selectedIndex]; + (e = this.select.options[ + this.select.selectedIndex + ]), + this.selectItem(t); + } else this.selectItem(null); + var n = + null != e && + e !== this.select.querySelector('option[selected]'); + this.label.classList.toggle('ql-active', n); + } + } + ]), + e + ); + })(); + t.default = l; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = b(n(0)), + o = b(n(5)), + i = n(4), + a = b(i), + s = b(n(16)), + c = b(n(25)), + u = b(n(24)), + l = b(n(35)), + f = b(n(6)), + d = b(n(22)), + p = b(n(7)), + h = b(n(55)), + g = b(n(42)), + m = b(n(23)); + function b(e) { + return e && e.__esModule ? e : { default: e }; + } + o.default.register({ + 'blots/block': a.default, + 'blots/block/embed': i.BlockEmbed, + 'blots/break': s.default, + 'blots/container': c.default, + 'blots/cursor': u.default, + 'blots/embed': l.default, + 'blots/inline': f.default, + 'blots/scroll': d.default, + 'blots/text': p.default, + 'modules/clipboard': h.default, + 'modules/history': g.default, + 'modules/keyboard': m.default + }), + r.default.register( + a.default, + s.default, + u.default, + f.default, + d.default, + p.default + ), + (t.default = o.default); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(1), + o = (function() { + function e(e) { + (this.domNode = e), + (this.domNode[r.DATA_KEY] = { blot: this }); + } + return ( + Object.defineProperty(e.prototype, 'statics', { + get: function() { + return this.constructor; + }, + enumerable: !0, + configurable: !0 + }), + (e.create = function(e) { + if (null == this.tagName) + throw new r.ParchmentError( + 'Blot definition missing tagName' + ); + var t; + return ( + Array.isArray(this.tagName) + ? ('string' == typeof e && + ((e = e.toUpperCase()), + parseInt(e).toString() === e && + (e = parseInt(e))), + (t = + 'number' == typeof e + ? document.createElement(this.tagName[e - 1]) + : this.tagName.indexOf(e) > -1 + ? document.createElement(e) + : document.createElement(this.tagName[0]))) + : (t = document.createElement(this.tagName)), + this.className && t.classList.add(this.className), + t + ); + }), + (e.prototype.attach = function() { + null != this.parent && + (this.scroll = this.parent.scroll); + }), + (e.prototype.clone = function() { + var e = this.domNode.cloneNode(!1); + return r.create(e); + }), + (e.prototype.detach = function() { + null != this.parent && this.parent.removeChild(this), + delete this.domNode[r.DATA_KEY]; + }), + (e.prototype.deleteAt = function(e, t) { + this.isolate(e, t).remove(); + }), + (e.prototype.formatAt = function(e, t, n, o) { + var i = this.isolate(e, t); + if (null != r.query(n, r.Scope.BLOT) && o) i.wrap(n, o); + else if (null != r.query(n, r.Scope.ATTRIBUTE)) { + var a = r.create(this.statics.scope); + i.wrap(a), a.format(n, o); + } + }), + (e.prototype.insertAt = function(e, t, n) { + var o = + null == n ? r.create('text', t) : r.create(t, n), + i = this.split(e); + this.parent.insertBefore(o, i); + }), + (e.prototype.insertInto = function(e, t) { + void 0 === t && (t = null), + null != this.parent && + this.parent.children.remove(this); + var n = null; + e.children.insertBefore(this, t), + null != t && (n = t.domNode), + (this.domNode.parentNode == e.domNode && + this.domNode.nextSibling == n) || + e.domNode.insertBefore(this.domNode, n), + (this.parent = e), + this.attach(); + }), + (e.prototype.isolate = function(e, t) { + var n = this.split(e); + return n.split(t), n; + }), + (e.prototype.length = function() { + return 1; + }), + (e.prototype.offset = function(e) { + return ( + void 0 === e && (e = this.parent), + null == this.parent || this == e + ? 0 + : this.parent.children.offset(this) + + this.parent.offset(e) + ); + }), + (e.prototype.optimize = function(e) { + null != this.domNode[r.DATA_KEY] && + delete this.domNode[r.DATA_KEY].mutations; + }), + (e.prototype.remove = function() { + null != this.domNode.parentNode && + this.domNode.parentNode.removeChild(this.domNode), + this.detach(); + }), + (e.prototype.replace = function(e) { + null != e.parent && + (e.parent.insertBefore(this, e.next), e.remove()); + }), + (e.prototype.replaceWith = function(e, t) { + var n = 'string' == typeof e ? r.create(e, t) : e; + return n.replace(this), n; + }), + (e.prototype.split = function(e, t) { + return 0 === e ? this : this.next; + }), + (e.prototype.update = function(e, t) {}), + (e.prototype.wrap = function(e, t) { + var n = 'string' == typeof e ? r.create(e, t) : e; + return ( + null != this.parent && + this.parent.insertBefore(n, this.next), + n.appendChild(this), + n + ); + }), + (e.blotName = 'abstract'), + e + ); + })(); + t.default = o; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(12), + o = n(32), + i = n(33), + a = n(1), + s = (function() { + function e(e) { + (this.attributes = {}), (this.domNode = e), this.build(); + } + return ( + (e.prototype.attribute = function(e, t) { + t + ? e.add(this.domNode, t) && + (null != e.value(this.domNode) + ? (this.attributes[e.attrName] = e) + : delete this.attributes[e.attrName]) + : (e.remove(this.domNode), + delete this.attributes[e.attrName]); + }), + (e.prototype.build = function() { + var e = this; + this.attributes = {}; + var t = r.default.keys(this.domNode), + n = o.default.keys(this.domNode), + s = i.default.keys(this.domNode); + t.concat(n) + .concat(s) + .forEach(function(t) { + var n = a.query(t, a.Scope.ATTRIBUTE); + n instanceof r.default && + (e.attributes[n.attrName] = n); + }); + }), + (e.prototype.copy = function(e) { + var t = this; + Object.keys(this.attributes).forEach(function(n) { + var r = t.attributes[n].value(t.domNode); + e.format(n, r); + }); + }), + (e.prototype.move = function(e) { + var t = this; + this.copy(e), + Object.keys(this.attributes).forEach(function(e) { + t.attributes[e].remove(t.domNode); + }), + (this.attributes = {}); + }), + (e.prototype.values = function() { + var e = this; + return Object.keys(this.attributes).reduce(function( + t, + n + ) { + return (t[n] = e.attributes[n].value(e.domNode)), t; + }, + {}); + }), + e + ); + })(); + t.default = s; + }, + function(e, t, n) { + 'use strict'; + var r, + o = + (this && this.__extends) || + ((r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function(e, t) { + e.__proto__ = t; + }) || + function(e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + }), + function(e, t) { + function n() { + this.constructor = e; + } + r(e, t), + (e.prototype = + null === t + ? Object.create(t) + : ((n.prototype = t.prototype), new n())); + }); + function i(e, t) { + return (e.getAttribute('class') || '') + .split(/\s+/) + .filter(function(e) { + return 0 === e.indexOf(t + '-'); + }); + } + Object.defineProperty(t, '__esModule', { value: !0 }); + var a = (function(e) { + function t() { + return (null !== e && e.apply(this, arguments)) || this; + } + return ( + o(t, e), + (t.keys = function(e) { + return (e.getAttribute('class') || '') + .split(/\s+/) + .map(function(e) { + return e + .split('-') + .slice(0, -1) + .join('-'); + }); + }), + (t.prototype.add = function(e, t) { + return ( + !!this.canAdd(e, t) && + (this.remove(e), + e.classList.add(this.keyName + '-' + t), + !0) + ); + }), + (t.prototype.remove = function(e) { + i(e, this.keyName).forEach(function(t) { + e.classList.remove(t); + }), + 0 === e.classList.length && e.removeAttribute('class'); + }), + (t.prototype.value = function(e) { + var t = (i(e, this.keyName)[0] || '').slice( + this.keyName.length + 1 + ); + return this.canAdd(e, t) ? t : ''; + }), + t + ); + })(n(12).default); + t.default = a; + }, + function(e, t, n) { + 'use strict'; + var r, + o = + (this && this.__extends) || + ((r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function(e, t) { + e.__proto__ = t; + }) || + function(e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + }), + function(e, t) { + function n() { + this.constructor = e; + } + r(e, t), + (e.prototype = + null === t + ? Object.create(t) + : ((n.prototype = t.prototype), new n())); + }); + function i(e) { + var t = e.split('-'), + n = t + .slice(1) + .map(function(e) { + return e[0].toUpperCase() + e.slice(1); + }) + .join(''); + return t[0] + n; + } + Object.defineProperty(t, '__esModule', { value: !0 }); + var a = (function(e) { + function t() { + return (null !== e && e.apply(this, arguments)) || this; + } + return ( + o(t, e), + (t.keys = function(e) { + return (e.getAttribute('style') || '') + .split(';') + .map(function(e) { + return e.split(':')[0].trim(); + }); + }), + (t.prototype.add = function(e, t) { + return ( + !!this.canAdd(e, t) && + ((e.style[i(this.keyName)] = t), !0) + ); + }), + (t.prototype.remove = function(e) { + (e.style[i(this.keyName)] = ''), + e.getAttribute('style') || e.removeAttribute('style'); + }), + (t.prototype.value = function(e) { + var t = e.style[i(this.keyName)]; + return this.canAdd(e, t) ? t : ''; + }), + t + ); + })(n(12).default); + t.default = a; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + o = (function() { + function e(t, n) { + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, e), + (this.quill = t), + (this.options = n), + (this.modules = {}); + } + return ( + r(e, [ + { + key: 'init', + value: function() { + var e = this; + Object.keys(this.options.modules).forEach(function( + t + ) { + null == e.modules[t] && e.addModule(t); + }); + } + }, + { + key: 'addModule', + value: function(e) { + var t = this.quill.constructor.import( + 'modules/' + e + ); + return ( + (this.modules[e] = new t( + this.quill, + this.options.modules[e] || {} + )), + this.modules[e] + ); + } + } + ]), + e + ); + })(); + (o.DEFAULTS = { modules: {} }), + (o.themes = { default: o }), + (t.default = o); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + o = a(n(0)), + i = a(n(7)); + function a(e) { + return e && e.__esModule ? e : { default: e }; + } + var s = '\ufeff', + c = (function(e) { + function t(e) { + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t); + var n = (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( + this, + (t.__proto__ || Object.getPrototypeOf(t)).call(this, e) + ); + return ( + (n.contentNode = document.createElement('span')), + n.contentNode.setAttribute('contenteditable', !1), + [].slice + .call(n.domNode.childNodes) + .forEach(function(e) { + n.contentNode.appendChild(e); + }), + (n.leftGuard = document.createTextNode(s)), + (n.rightGuard = document.createTextNode(s)), + n.domNode.appendChild(n.leftGuard), + n.domNode.appendChild(n.contentNode), + n.domNode.appendChild(n.rightGuard), + n + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + r(t, [ + { + key: 'index', + value: function(e, n) { + return e === this.leftGuard + ? 0 + : e === this.rightGuard + ? 1 + : (function e(t, n, r) { + null === t && (t = Function.prototype); + var o = Object.getOwnPropertyDescriptor(t, n); + if (void 0 === o) { + var i = Object.getPrototypeOf(t); + return null === i ? void 0 : e(i, n, r); + } + if ('value' in o) return o.value; + var a = o.get; + return void 0 !== a ? a.call(r) : void 0; + })( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'index', + this + ).call(this, e, n); + } + }, + { + key: 'restore', + value: function(e) { + var t = void 0, + n = void 0, + r = e.data.split(s).join(''); + if (e === this.leftGuard) + if (this.prev instanceof i.default) { + var a = this.prev.length(); + this.prev.insertAt(a, r), + (t = { + startNode: this.prev.domNode, + startOffset: a + r.length + }); + } else + (n = document.createTextNode(r)), + this.parent.insertBefore( + o.default.create(n), + this + ), + (t = { startNode: n, startOffset: r.length }); + else + e === this.rightGuard && + (this.next instanceof i.default + ? (this.next.insertAt(0, r), + (t = { + startNode: this.next.domNode, + startOffset: r.length + })) + : ((n = document.createTextNode(r)), + this.parent.insertBefore( + o.default.create(n), + this.next + ), + (t = { + startNode: n, + startOffset: r.length + }))); + return (e.data = s), t; + } + }, + { + key: 'update', + value: function(e, t) { + var n = this; + e.forEach(function(e) { + if ( + 'characterData' === e.type && + (e.target === n.leftGuard || + e.target === n.rightGuard) + ) { + var r = n.restore(e.target); + r && (t.range = r); + } + }); + } + } + ]), + t + ); + })(o.default.Embed); + t.default = c; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.AlignStyle = t.AlignClass = t.AlignAttribute = void 0); + var r, + o = n(0), + i = (r = o) && r.__esModule ? r : { default: r }, + a = { + scope: i.default.Scope.BLOCK, + whitelist: ['right', 'center', 'justify'] + }, + s = new i.default.Attributor.Attribute('align', 'align', a), + c = new i.default.Attributor.Class('align', 'ql-align', a), + u = new i.default.Attributor.Style('align', 'text-align', a); + (t.AlignAttribute = s), (t.AlignClass = c), (t.AlignStyle = u); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.BackgroundStyle = t.BackgroundClass = void 0); + var r, + o = n(0), + i = (r = o) && r.__esModule ? r : { default: r }, + a = n(26), + s = new i.default.Attributor.Class('background', 'ql-bg', { + scope: i.default.Scope.INLINE + }), + c = new a.ColorAttributor('background', 'background-color', { + scope: i.default.Scope.INLINE + }); + (t.BackgroundClass = s), (t.BackgroundStyle = c); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.DirectionStyle = t.DirectionClass = t.DirectionAttribute = void 0); + var r, + o = n(0), + i = (r = o) && r.__esModule ? r : { default: r }, + a = { scope: i.default.Scope.BLOCK, whitelist: ['rtl'] }, + s = new i.default.Attributor.Attribute('direction', 'dir', a), + c = new i.default.Attributor.Class( + 'direction', + 'ql-direction', + a + ), + u = new i.default.Attributor.Style( + 'direction', + 'direction', + a + ); + (t.DirectionAttribute = s), + (t.DirectionClass = c), + (t.DirectionStyle = u); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.FontClass = t.FontStyle = void 0); + var r, + o = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + i = n(0), + a = (r = i) && r.__esModule ? r : { default: r }, + s = { + scope: a.default.Scope.INLINE, + whitelist: ['serif', 'monospace'] + }, + c = new a.default.Attributor.Class('font', 'ql-font', s), + u = new ((function(e) { + function t() { + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( + this, + (t.__proto__ || Object.getPrototypeOf(t)).apply( + this, + arguments + ) + ) + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + o(t, [ + { + key: 'value', + value: function(e) { + return (function e(t, n, r) { + null === t && (t = Function.prototype); + var o = Object.getOwnPropertyDescriptor(t, n); + if (void 0 === o) { + var i = Object.getPrototypeOf(t); + return null === i ? void 0 : e(i, n, r); + } + if ('value' in o) return o.value; + var a = o.get; + return void 0 !== a ? a.call(r) : void 0; + })( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'value', + this + ) + .call(this, e) + .replace(/["']/g, ''); + } + } + ]), + t + ); + })(a.default.Attributor.Style))('font', 'font-family', s); + (t.FontStyle = u), (t.FontClass = c); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.SizeStyle = t.SizeClass = void 0); + var r, + o = n(0), + i = (r = o) && r.__esModule ? r : { default: r }, + a = new i.default.Attributor.Class('size', 'ql-size', { + scope: i.default.Scope.INLINE, + whitelist: ['small', 'large', 'huge'] + }), + s = new i.default.Attributor.Style('size', 'font-size', { + scope: i.default.Scope.INLINE, + whitelist: ['10px', '18px', '32px'] + }); + (t.SizeClass = a), (t.SizeStyle = s); + }, + function(e, t, n) { + 'use strict'; + e.exports = { + align: { + '': n(76), + center: n(77), + right: n(78), + justify: n(79) + }, + background: n(80), + blockquote: n(81), + bold: n(82), + clean: n(83), + code: n(58), + 'code-block': n(58), + color: n(84), + direction: { '': n(85), rtl: n(86) }, + float: { + center: n(87), + full: n(88), + left: n(89), + right: n(90) + }, + formula: n(91), + header: { 1: n(92), 2: n(93) }, + italic: n(94), + image: n(95), + indent: { '+1': n(96), '-1': n(97) }, + link: n(98), + list: { ordered: n(99), bullet: n(100), check: n(101) }, + script: { sub: n(102), super: n(103) }, + strike: n(104), + underline: n(105), + video: n(106) + }; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.getLastChangeIndex = t.default = void 0); + var r = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + o = a(n(0)), + i = a(n(5)); + function a(e) { + return e && e.__esModule ? e : { default: e }; + } + var s = (function(e) { + function t(e, n) { + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t); + var r = (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( + this, + (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n) + ); + return ( + (r.lastRecorded = 0), + (r.ignoreChange = !1), + r.clear(), + r.quill.on(i.default.events.EDITOR_CHANGE, function( + e, + t, + n, + o + ) { + e !== i.default.events.TEXT_CHANGE || + r.ignoreChange || + (r.options.userOnly && o !== i.default.sources.USER + ? r.transform(t) + : r.record(t, n)); + }), + r.quill.keyboard.addBinding( + { key: 'Z', shortKey: !0 }, + r.undo.bind(r) + ), + r.quill.keyboard.addBinding( + { key: 'Z', shortKey: !0, shiftKey: !0 }, + r.redo.bind(r) ), - V = v_(N[0] * N[0] + N[1] * N[1]); - (O = b_(A, (l - V) / (W - 1))), - (E = b_(A, (f - V) / (W + 1))); + /Win/i.test(navigator.platform) && + r.quill.keyboard.addBinding( + { key: 'Y', shortKey: !0 }, + r.redo.bind(r) + ), + r + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + r(t, [ + { + key: 'change', + value: function(e, t) { + if (0 !== this.stack[e].length) { + var n = this.stack[e].pop(); + this.stack[t].push(n), + (this.lastRecorded = 0), + (this.ignoreChange = !0), + this.quill.updateContents( + n[e], + i.default.sources.USER + ), + (this.ignoreChange = !1); + var r = c(n[e]); + this.quill.setSelection(r); + } + } + }, + { + key: 'clear', + value: function() { + this.stack = { undo: [], redo: [] }; + } + }, + { + key: 'cutoff', + value: function() { + this.lastRecorded = 0; + } + }, + { + key: 'record', + value: function(e, t) { + if (0 !== e.ops.length) { + this.stack.redo = []; + var n = this.quill.getContents().diff(t), + r = Date.now(); + if ( + this.lastRecorded + this.options.delay > r && + this.stack.undo.length > 0 + ) { + var o = this.stack.undo.pop(); + (n = n.compose(o.undo)), (e = o.redo.compose(e)); + } else this.lastRecorded = r; + this.stack.undo.push({ redo: e, undo: n }), + this.stack.undo.length > this.options.maxStack && + this.stack.undo.shift(); + } + } + }, + { + key: 'redo', + value: function() { + this.change('redo', 'undo'); + } + }, + { + key: 'transform', + value: function(e) { + this.stack.undo.forEach(function(t) { + (t.undo = e.transform(t.undo, !0)), + (t.redo = e.transform(t.redo, !0)); + }), + this.stack.redo.forEach(function(t) { + (t.undo = e.transform(t.undo, !0)), + (t.redo = e.transform(t.redo, !0)); + }); + } + }, + { + key: 'undo', + value: function() { + this.change('undo', 'redo'); + } + } + ]), + t + ); + })(a(n(9)).default); + function c(e) { + var t = e.reduce(function(e, t) { + return (e += t.delete || 0); + }, 0), + n = e.length() - t; + return ( + (function(e) { + var t = e.ops[e.ops.length - 1]; + return ( + null != t && + (null != t.insert + ? 'string' == typeof t.insert && + t.insert.endsWith('\n') + : null != t.attributes && + Object.keys(t.attributes).some(function(e) { + return ( + null != + o.default.query(e, o.default.Scope.BLOCK) + ); + })) + ); + })(e) && (n -= 1), + n + ); + } + (s.DEFAULTS = { delay: 1e3, maxStack: 100, userOnly: !1 }), + (t.default = s), + (t.getLastChangeIndex = c); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = t.BaseTooltip = void 0); + var r = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + o = p(n(3)), + i = p(n(2)), + a = p(n(8)), + s = p(n(23)), + c = p(n(34)), + u = p(n(59)), + l = p(n(60)), + f = p(n(28)), + d = p(n(61)); + function p(e) { + return e && e.__esModule ? e : { default: e }; + } + function h(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + } + function g(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || ('object' != typeof t && 'function' != typeof t) + ? e + : t; + } + function m(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + } + var b = [!1, 'center', 'right', 'justify'], + y = [ + '#000000', + '#e60000', + '#ff9900', + '#ffff00', + '#008a00', + '#0066cc', + '#9933ff', + '#ffffff', + '#facccc', + '#ffebcc', + '#ffffcc', + '#cce8cc', + '#cce0f5', + '#ebd6ff', + '#bbbbbb', + '#f06666', + '#ffc266', + '#ffff66', + '#66b966', + '#66a3e0', + '#c285ff', + '#888888', + '#a10000', + '#b26b00', + '#b2b200', + '#006100', + '#0047b2', + '#6b24b2', + '#444444', + '#5c0000', + '#663d00', + '#666600', + '#003700', + '#002966', + '#3d1466' + ], + v = [!1, 'serif', 'monospace'], + _ = ['1', '2', '3', !1], + w = ['small', !1, 'large', 'huge'], + x = (function(e) { + function t(e, n) { + h(this, t); + var r = g( + this, + (t.__proto__ || Object.getPrototypeOf(t)).call( + this, + e, + n + ) + ); + return ( + e.emitter.listenDOM('click', document.body, function t( + n + ) { + if (!document.body.contains(e.root)) + return document.body.removeEventListener( + 'click', + t + ); + null == r.tooltip || + r.tooltip.root.contains(n.target) || + document.activeElement === r.tooltip.textbox || + r.quill.hasFocus() || + r.tooltip.hide(), + null != r.pickers && + r.pickers.forEach(function(e) { + e.container.contains(n.target) || e.close(); + }); + }), + r + ); + } + return ( + m(t, e), + r(t, [ + { + key: 'addModule', + value: function(e) { + var n = (function e(t, n, r) { + null === t && (t = Function.prototype); + var o = Object.getOwnPropertyDescriptor(t, n); + if (void 0 === o) { + var i = Object.getPrototypeOf(t); + return null === i ? void 0 : e(i, n, r); + } + if ('value' in o) return o.value; + var a = o.get; + return void 0 !== a ? a.call(r) : void 0; + })( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'addModule', + this + ).call(this, e); + return 'toolbar' === e && this.extendToolbar(n), n; + } + }, + { + key: 'buildButtons', + value: function(e, t) { + e.forEach(function(e) { + (e.getAttribute('class') || '') + .split(/\s+/) + .forEach(function(n) { + if ( + n.startsWith('ql-') && + ((n = n.slice('ql-'.length)), null != t[n]) + ) + if ('direction' === n) + e.innerHTML = t[n][''] + t[n].rtl; + else if ('string' == typeof t[n]) + e.innerHTML = t[n]; + else { + var r = e.value || ''; + null != r && + t[n][r] && + (e.innerHTML = t[n][r]); + } + }); + }); + } + }, + { + key: 'buildPickers', + value: function(e, t) { + var n = this; + (this.pickers = e.map(function(e) { + if (e.classList.contains('ql-align')) + return ( + null == e.querySelector('option') && k(e, b), + new l.default(e, t.align) + ); + if ( + e.classList.contains('ql-background') || + e.classList.contains('ql-color') + ) { + var n = e.classList.contains('ql-background') + ? 'background' + : 'color'; + return ( + null == e.querySelector('option') && + k( + e, + y, + 'background' === n ? '#ffffff' : '#000000' + ), + new u.default(e, t[n]) + ); + } + return ( + null == e.querySelector('option') && + (e.classList.contains('ql-font') + ? k(e, v) + : e.classList.contains('ql-header') + ? k(e, _) + : e.classList.contains('ql-size') && + k(e, w)), + new f.default(e) + ); + })), + this.quill.on( + a.default.events.EDITOR_CHANGE, + function() { + n.pickers.forEach(function(e) { + e.update(); + }); + } + ); + } + } + ]), + t + ); + })(c.default); + x.DEFAULTS = (0, o.default)(!0, {}, c.default.DEFAULTS, { + modules: { + toolbar: { + handlers: { + formula: function() { + this.quill.theme.tooltip.edit('formula'); + }, + image: function() { + var e = this, + t = this.container.querySelector( + 'input.ql-image[type=file]' + ); + null == t && + ((t = document.createElement('input')).setAttribute( + 'type', + 'file' + ), + t.setAttribute( + 'accept', + 'image/png, image/gif, image/jpeg, image/bmp, image/x-icon' + ), + t.classList.add('ql-image'), + t.addEventListener('change', function() { + if (null != t.files && null != t.files[0]) { + var n = new FileReader(); + (n.onload = function(n) { + var r = e.quill.getSelection(!0); + e.quill.updateContents( + new i.default() + .retain(r.index) + .delete(r.length) + .insert({ image: n.target.result }), + a.default.sources.USER + ), + e.quill.setSelection( + r.index + 1, + a.default.sources.SILENT + ), + (t.value = ''); + }), + n.readAsDataURL(t.files[0]); + } + }), + this.container.appendChild(t)), + t.click(); + }, + video: function() { + this.quill.theme.tooltip.edit('video'); + } + } + } + } + }); + var M = (function(e) { + function t(e, n) { + h(this, t); + var r = g( + this, + (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n) + ); + return ( + (r.textbox = r.root.querySelector('input[type="text"]')), + r.listen(), + r + ); + } + return ( + m(t, e), + r(t, [ + { + key: 'listen', + value: function() { + var e = this; + this.textbox.addEventListener('keydown', function(t) { + s.default.match(t, 'enter') + ? (e.save(), t.preventDefault()) + : s.default.match(t, 'escape') && + (e.cancel(), t.preventDefault()); + }); + } + }, + { + key: 'cancel', + value: function() { + this.hide(); + } + }, + { + key: 'edit', + value: function() { + var e = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : 'link', + t = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : null; + this.root.classList.remove('ql-hidden'), + this.root.classList.add('ql-editing'), + null != t + ? (this.textbox.value = t) + : e !== this.root.getAttribute('data-mode') && + (this.textbox.value = ''), + this.position( + this.quill.getBounds( + this.quill.selection.savedRange + ) + ), + this.textbox.select(), + this.textbox.setAttribute( + 'placeholder', + this.textbox.getAttribute('data-' + e) || '' + ), + this.root.setAttribute('data-mode', e); + } + }, + { + key: 'restoreFocus', + value: function() { + var e = this.quill.scrollingContainer.scrollTop; + this.quill.focus(), + (this.quill.scrollingContainer.scrollTop = e); + } + }, + { + key: 'save', + value: function() { + var e, + t, + n = this.textbox.value; + switch (this.root.getAttribute('data-mode')) { + case 'link': + var r = this.quill.root.scrollTop; + this.linkRange + ? (this.quill.formatText( + this.linkRange, + 'link', + n, + a.default.sources.USER + ), + delete this.linkRange) + : (this.restoreFocus(), + this.quill.format( + 'link', + n, + a.default.sources.USER + )), + (this.quill.root.scrollTop = r); + break; + case 'video': + (t = + (e = n).match( + /^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/ + ) || + e.match( + /^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/ + )), + (n = t + ? (t[1] || 'https') + + '://www.youtube.com/embed/' + + t[2] + + '?showinfo=0' + : (t = e.match( + /^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/ + )) + ? (t[1] || 'https') + + '://player.vimeo.com/video/' + + t[2] + + '/' + : e); + case 'formula': + if (!n) break; + var o = this.quill.getSelection(!0); + if (null != o) { + var i = o.index + o.length; + this.quill.insertEmbed( + i, + this.root.getAttribute('data-mode'), + n, + a.default.sources.USER + ), + 'formula' === + this.root.getAttribute('data-mode') && + this.quill.insertText( + i + 1, + ' ', + a.default.sources.USER + ), + this.quill.setSelection( + i + 2, + a.default.sources.USER + ); + } + } + (this.textbox.value = ''), this.hide(); + } + } + ]), + t + ); + })(d.default); + function k(e, t) { + var n = + arguments.length > 2 && + void 0 !== arguments[2] && + arguments[2]; + t.forEach(function(t) { + var r = document.createElement('option'); + t === n + ? r.setAttribute('selected', 'selected') + : r.setAttribute('value', t), + e.appendChild(r); + }); + } + (t.BaseTooltip = M), (t.default = x); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = (function() { + function e() { + (this.head = this.tail = null), (this.length = 0); + } + return ( + (e.prototype.append = function() { + for (var e = [], t = 0; t < arguments.length; t++) + e[t] = arguments[t]; + this.insertBefore(e[0], null), + e.length > 1 && this.append.apply(this, e.slice(1)); + }), + (e.prototype.contains = function(e) { + for (var t, n = this.iterator(); (t = n()); ) + if (t === e) return !0; + return !1; + }), + (e.prototype.insertBefore = function(e, t) { + e && + ((e.next = t), + null != t + ? ((e.prev = t.prev), + null != t.prev && (t.prev.next = e), + (t.prev = e), + t === this.head && (this.head = e)) + : null != this.tail + ? ((this.tail.next = e), + (e.prev = this.tail), + (this.tail = e)) + : ((e.prev = null), (this.head = this.tail = e)), + (this.length += 1)); + }), + (e.prototype.offset = function(e) { + for (var t = 0, n = this.head; null != n; ) { + if (n === e) return t; + (t += n.length()), (n = n.next); + } + return -1; + }), + (e.prototype.remove = function(e) { + this.contains(e) && + (null != e.prev && (e.prev.next = e.next), + null != e.next && (e.next.prev = e.prev), + e === this.head && (this.head = e.next), + e === this.tail && (this.tail = e.prev), + (this.length -= 1)); + }), + (e.prototype.iterator = function(e) { + return ( + void 0 === e && (e = this.head), + function() { + var t = e; + return null != e && (e = e.next), t; + } + ); + }), + (e.prototype.find = function(e, t) { + void 0 === t && (t = !1); + for (var n, r = this.iterator(); (n = r()); ) { + var o = n.length(); + if ( + e < o || + (t && + e === o && + (null == n.next || 0 !== n.next.length())) + ) + return [n, e]; + e -= o; + } + return [null, 0]; + }), + (e.prototype.forEach = function(e) { + for (var t, n = this.iterator(); (t = n()); ) e(t); + }), + (e.prototype.forEachAt = function(e, t, n) { + if (!(t <= 0)) + for ( + var r, + o = this.find(e), + i = o[0], + a = e - o[1], + s = this.iterator(i); + (r = s()) && a < e + t; + + ) { + var c = r.length(); + e > a + ? n(r, e - a, Math.min(t, a + c - e)) + : n(r, 0, Math.min(c, e + t - a)), + (a += c); + } + }), + (e.prototype.map = function(e) { + return this.reduce(function(t, n) { + return t.push(e(n)), t; + }, []); + }), + (e.prototype.reduce = function(e, t) { + for (var n, r = this.iterator(); (n = r()); ) t = e(t, n); + return t; + }), + e + ); + })(); + t.default = r; + }, + function(e, t, n) { + 'use strict'; + var r, + o = + (this && this.__extends) || + ((r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function(e, t) { + e.__proto__ = t; + }) || + function(e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + }), + function(e, t) { + function n() { + this.constructor = e; + } + r(e, t), + (e.prototype = + null === t + ? Object.create(t) + : ((n.prototype = t.prototype), new n())); + }); + Object.defineProperty(t, '__esModule', { value: !0 }); + var i = n(17), + a = n(1), + s = { + attributes: !0, + characterData: !0, + characterDataOldValue: !0, + childList: !0, + subtree: !0 + }, + c = (function(e) { + function t(t) { + var n = e.call(this, t) || this; + return ( + (n.scroll = n), + (n.observer = new MutationObserver(function(e) { + n.update(e); + })), + n.observer.observe(n.domNode, s), + n.attach(), + n + ); + } + return ( + o(t, e), + (t.prototype.detach = function() { + e.prototype.detach.call(this), + this.observer.disconnect(); + }), + (t.prototype.deleteAt = function(t, n) { + this.update(), + 0 === t && n === this.length() + ? this.children.forEach(function(e) { + e.remove(); + }) + : e.prototype.deleteAt.call(this, t, n); + }), + (t.prototype.formatAt = function(t, n, r, o) { + this.update(), + e.prototype.formatAt.call(this, t, n, r, o); + }), + (t.prototype.insertAt = function(t, n, r) { + this.update(), e.prototype.insertAt.call(this, t, n, r); + }), + (t.prototype.optimize = function(t, n) { + var r = this; + void 0 === t && (t = []), + void 0 === n && (n = {}), + e.prototype.optimize.call(this, n); + for ( + var o = [].slice.call(this.observer.takeRecords()); + o.length > 0; + + ) + t.push(o.pop()); + for ( + var s = function(e, t) { + void 0 === t && (t = !0), + null != e && + e !== r && + null != e.domNode.parentNode && + (null == e.domNode[a.DATA_KEY].mutations && + (e.domNode[a.DATA_KEY].mutations = []), + t && s(e.parent)); + }, + c = function(e) { + null != e.domNode[a.DATA_KEY] && + null != e.domNode[a.DATA_KEY].mutations && + (e instanceof i.default && + e.children.forEach(c), + e.optimize(n)); + }, + u = t, + l = 0; + u.length > 0; + l += 1 + ) { + if (l >= 100) + throw new Error( + '[Parchment] Maximum optimize iterations reached' + ); + for ( + u.forEach(function(e) { + var t = a.find(e.target, !0); + null != t && + (t.domNode === e.target && + ('childList' === e.type + ? (s(a.find(e.previousSibling, !1)), + [].forEach.call(e.addedNodes, function( + e + ) { + var t = a.find(e, !1); + s(t, !1), + t instanceof i.default && + t.children.forEach(function(e) { + s(e, !1); + }); + })) + : 'attributes' === e.type && s(t.prev)), + s(t)); + }), + this.children.forEach(c), + o = (u = [].slice.call( + this.observer.takeRecords() + )).slice(); + o.length > 0; + + ) + t.push(o.pop()); + } + }), + (t.prototype.update = function(t, n) { + var r = this; + void 0 === n && (n = {}), + (t = t || this.observer.takeRecords()) + .map(function(e) { + var t = a.find(e.target, !0); + return null == t + ? null + : null == t.domNode[a.DATA_KEY].mutations + ? ((t.domNode[a.DATA_KEY].mutations = [e]), t) + : (t.domNode[a.DATA_KEY].mutations.push(e), + null); + }) + .forEach(function(e) { + null != e && + e !== r && + null != e.domNode[a.DATA_KEY] && + e.update( + e.domNode[a.DATA_KEY].mutations || [], + n + ); + }), + null != this.domNode[a.DATA_KEY].mutations && + e.prototype.update.call( + this, + this.domNode[a.DATA_KEY].mutations, + n + ), + this.optimize(t, n); + }), + (t.blotName = 'scroll'), + (t.defaultChild = 'block'), + (t.scope = a.Scope.BLOCK_BLOT), + (t.tagName = 'DIV'), + t + ); + })(i.default); + t.default = c; + }, + function(e, t, n) { + 'use strict'; + var r, + o = + (this && this.__extends) || + ((r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function(e, t) { + e.__proto__ = t; + }) || + function(e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + }), + function(e, t) { + function n() { + this.constructor = e; + } + r(e, t), + (e.prototype = + null === t + ? Object.create(t) + : ((n.prototype = t.prototype), new n())); + }); + Object.defineProperty(t, '__esModule', { value: !0 }); + var i = n(18), + a = n(1), + s = (function(e) { + function t() { + return (null !== e && e.apply(this, arguments)) || this; + } + return ( + o(t, e), + (t.formats = function(n) { + if (n.tagName !== t.tagName) + return e.formats.call(this, n); + }), + (t.prototype.format = function(n, r) { + var o = this; + n !== this.statics.blotName || r + ? e.prototype.format.call(this, n, r) + : (this.children.forEach(function(e) { + e instanceof i.default || + (e = e.wrap(t.blotName, !0)), + o.attributes.copy(e); + }), + this.unwrap()); + }), + (t.prototype.formatAt = function(t, n, r, o) { + null != this.formats()[r] || + a.query(r, a.Scope.ATTRIBUTE) + ? this.isolate(t, n).format(r, o) + : e.prototype.formatAt.call(this, t, n, r, o); + }), + (t.prototype.optimize = function(n) { + e.prototype.optimize.call(this, n); + var r = this.formats(); + if (0 === Object.keys(r).length) return this.unwrap(); + var o = this.next; + o instanceof t && + o.prev === this && + (function(e, t) { + if (Object.keys(e).length !== Object.keys(t).length) + return !1; + for (var n in e) if (e[n] !== t[n]) return !1; + return !0; + })(r, o.formats()) && + (o.moveChildren(this), o.remove()); + }), + (t.blotName = 'inline'), + (t.scope = a.Scope.INLINE_BLOT), + (t.tagName = 'SPAN'), + t + ); + })(i.default); + t.default = s; + }, + function(e, t, n) { + 'use strict'; + var r, + o = + (this && this.__extends) || + ((r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function(e, t) { + e.__proto__ = t; + }) || + function(e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + }), + function(e, t) { + function n() { + this.constructor = e; + } + r(e, t), + (e.prototype = + null === t + ? Object.create(t) + : ((n.prototype = t.prototype), new n())); + }); + Object.defineProperty(t, '__esModule', { value: !0 }); + var i = n(18), + a = n(1), + s = (function(e) { + function t() { + return (null !== e && e.apply(this, arguments)) || this; + } + return ( + o(t, e), + (t.formats = function(n) { + var r = a.query(t.blotName).tagName; + if (n.tagName !== r) return e.formats.call(this, n); + }), + (t.prototype.format = function(n, r) { + null != a.query(n, a.Scope.BLOCK) && + (n !== this.statics.blotName || r + ? e.prototype.format.call(this, n, r) + : this.replaceWith(t.blotName)); + }), + (t.prototype.formatAt = function(t, n, r, o) { + null != a.query(r, a.Scope.BLOCK) + ? this.format(r, o) + : e.prototype.formatAt.call(this, t, n, r, o); + }), + (t.prototype.insertAt = function(t, n, r) { + if (null == r || null != a.query(n, a.Scope.INLINE)) + e.prototype.insertAt.call(this, t, n, r); + else { + var o = this.split(t), + i = a.create(n, r); + o.parent.insertBefore(i, o); + } + }), + (t.prototype.update = function(t, n) { + navigator.userAgent.match(/Trident/) + ? this.build() + : e.prototype.update.call(this, t, n); + }), + (t.blotName = 'block'), + (t.scope = a.Scope.BLOCK_BLOT), + (t.tagName = 'P'), + t + ); + })(i.default); + t.default = s; + }, + function(e, t, n) { + 'use strict'; + var r, + o = + (this && this.__extends) || + ((r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function(e, t) { + e.__proto__ = t; + }) || + function(e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + }), + function(e, t) { + function n() { + this.constructor = e; + } + r(e, t), + (e.prototype = + null === t + ? Object.create(t) + : ((n.prototype = t.prototype), new n())); + }); + Object.defineProperty(t, '__esModule', { value: !0 }); + var i = (function(e) { + function t() { + return (null !== e && e.apply(this, arguments)) || this; + } + return ( + o(t, e), + (t.formats = function(e) {}), + (t.prototype.format = function(t, n) { + e.prototype.formatAt.call(this, 0, this.length(), t, n); + }), + (t.prototype.formatAt = function(t, n, r, o) { + 0 === t && n === this.length() + ? this.format(r, o) + : e.prototype.formatAt.call(this, t, n, r, o); + }), + (t.prototype.formats = function() { + return this.statics.formats(this.domNode); + }), + t + ); + })(n(19).default); + t.default = i; + }, + function(e, t, n) { + 'use strict'; + var r, + o = + (this && this.__extends) || + ((r = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function(e, t) { + e.__proto__ = t; + }) || + function(e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + }), + function(e, t) { + function n() { + this.constructor = e; + } + r(e, t), + (e.prototype = + null === t + ? Object.create(t) + : ((n.prototype = t.prototype), new n())); + }); + Object.defineProperty(t, '__esModule', { value: !0 }); + var i = n(19), + a = n(1), + s = (function(e) { + function t(t) { + var n = e.call(this, t) || this; + return (n.text = n.statics.value(n.domNode)), n; + } + return ( + o(t, e), + (t.create = function(e) { + return document.createTextNode(e); + }), + (t.value = function(e) { + var t = e.data; + return t.normalize && (t = t.normalize()), t; + }), + (t.prototype.deleteAt = function(e, t) { + this.domNode.data = this.text = + this.text.slice(0, e) + this.text.slice(e + t); + }), + (t.prototype.index = function(e, t) { + return this.domNode === e ? t : -1; + }), + (t.prototype.insertAt = function(t, n, r) { + null == r + ? ((this.text = + this.text.slice(0, t) + n + this.text.slice(t)), + (this.domNode.data = this.text)) + : e.prototype.insertAt.call(this, t, n, r); + }), + (t.prototype.length = function() { + return this.text.length; + }), + (t.prototype.optimize = function(n) { + e.prototype.optimize.call(this, n), + (this.text = this.statics.value(this.domNode)), + 0 === this.text.length + ? this.remove() + : this.next instanceof t && + this.next.prev === this && + (this.insertAt(this.length(), this.next.value()), + this.next.remove()); + }), + (t.prototype.position = function(e, t) { + return void 0 === t && (t = !1), [this.domNode, e]; + }), + (t.prototype.split = function(e, t) { + if ((void 0 === t && (t = !1), !t)) { + if (0 === e) return this; + if (e === this.length()) return this.next; + } + var n = a.create(this.domNode.splitText(e)); + return ( + this.parent.insertBefore(n, this.next), + (this.text = this.statics.value(this.domNode)), + n + ); + }), + (t.prototype.update = function(e, t) { + var n = this; + e.some(function(e) { + return ( + 'characterData' === e.type && e.target === n.domNode + ); + }) && (this.text = this.statics.value(this.domNode)); + }), + (t.prototype.value = function() { + return this.text; + }), + (t.blotName = 'text'), + (t.scope = a.Scope.INLINE_BLOT), + t + ); + })(i.default); + t.default = s; + }, + function(e, t, n) { + 'use strict'; + var r = document.createElement('div'); + if ( + (r.classList.toggle('test-class', !1), + r.classList.contains('test-class')) + ) { + var o = DOMTokenList.prototype.toggle; + DOMTokenList.prototype.toggle = function(e, t) { + return arguments.length > 1 && !this.contains(e) == !t + ? t + : o.call(this, e); + }; } - } - M > 1e-12 - ? E > 1e-12 - ? ((m = L_(I, F, L, P, f, E, g)), - (b = L_(j, R, D, z, f, E, g)), - s.moveTo(m.cx + m.x01, m.cy + m.y01), - E < A - ? s.arc( - m.cx, - m.cy, - E, - h_(m.y01, m.x01), - h_(b.y01, b.x01), - !g + String.prototype.startsWith || + (String.prototype.startsWith = function(e, t) { + return (t = t || 0), this.substr(t, e.length) === e; + }), + String.prototype.endsWith || + (String.prototype.endsWith = function(e, t) { + var n = this.toString(); + ('number' != typeof t || + !isFinite(t) || + Math.floor(t) !== t || + t > n.length) && + (t = n.length), + (t -= e.length); + var r = n.indexOf(e, t); + return -1 !== r && r === t; + }), + Array.prototype.find || + Object.defineProperty(Array.prototype, 'find', { + value: function(e) { + if (null === this) + throw new TypeError( + 'Array.prototype.find called on null or undefined' + ); + if ('function' != typeof e) + throw new TypeError('predicate must be a function'); + for ( + var t, + n = Object(this), + r = n.length >>> 0, + o = arguments[1], + i = 0; + i < r; + i++ ) - : (s.arc( - m.cx, - m.cy, - E, - h_(m.y01, m.x01), - h_(m.y11, m.x11), - !g - ), - s.arc( - 0, - 0, + if (((t = n[i]), e.call(o, t, i, n))) return t; + } + }), + document.addEventListener('DOMContentLoaded', function() { + document.execCommand('enableObjectResizing', !1, !1), + document.execCommand('autoUrlDetect', !1, !1); + }); + }, + function(e, t) { + var n = -1, + r = 1, + o = 0; + function i(e, t, u) { + if (e == t) return e ? [[o, e]] : []; + (u < 0 || e.length < u) && (u = null); + var f = s(e, t), + d = e.substring(0, f); + f = c((e = e.substring(f)), (t = t.substring(f))); + var p = e.substring(e.length - f), + h = (function(e, t) { + var u; + if (!e) return [[r, t]]; + if (!t) return [[n, e]]; + var l = e.length > t.length ? e : t, + f = e.length > t.length ? t : e, + d = l.indexOf(f); + if (-1 != d) + return ( + (u = [ + [r, l.substring(0, d)], + [o, f], + [r, l.substring(d + f.length)] + ]), + e.length > t.length && (u[0][0] = u[2][0] = n), + u + ); + if (1 == f.length) return [[n, e], [r, t]]; + var p = (function(e, t) { + var n = e.length > t.length ? e : t, + r = e.length > t.length ? t : e; + if (n.length < 4 || 2 * r.length < n.length) + return null; + function o(e, t, n) { + for ( + var r, + o, + i, + a, + u = e.substring(n, n + Math.floor(e.length / 4)), + l = -1, + f = ''; + -1 != (l = t.indexOf(u, l + 1)); + + ) { + var d = s(e.substring(n), t.substring(l)), + p = c(e.substring(0, n), t.substring(0, l)); + f.length < p + d && + ((f = + t.substring(l - p, l) + t.substring(l, l + d)), + (r = e.substring(0, n - p)), + (o = e.substring(n + d)), + (i = t.substring(0, l - p)), + (a = t.substring(l + d))); + } + return 2 * f.length >= e.length + ? [r, o, i, a, f] + : null; + } + var i, + a, + u, + l, f, - h_(m.cy + m.y11, m.cx + m.x11), - h_(b.cy + b.y11, b.cx + b.x11), - !g - ), - s.arc( - b.cx, - b.cy, - E, - h_(b.y11, b.x11), - h_(b.y01, b.x01), - !g - ))) - : (s.moveTo(L, P), s.arc(0, 0, f, y, v, !g)) - : s.moveTo(L, P), - l > 1e-12 && w > 1e-12 - ? O > 1e-12 - ? ((m = L_(D, z, j, R, l, -O, g)), - (b = L_(L, P, I, F, l, -O, g)), - s.lineTo(m.cx + m.x01, m.cy + m.y01), - O < A - ? s.arc( - m.cx, - m.cy, - O, - h_(m.y01, m.x01), - h_(b.y01, b.x01), - !g - ) - : (s.arc( - m.cx, - m.cy, - O, - h_(m.y01, m.x01), - h_(m.y11, m.x11), - !g - ), - s.arc( - 0, - 0, - l, - h_(m.cy + m.y11, m.cx + m.x11), - h_(b.cy + b.y11, b.cx + b.x11), - g - ), - s.arc( - b.cx, - b.cy, - O, - h_(b.y11, b.x11), - h_(b.y01, b.x01), - !g - ))) - : s.arc(0, 0, l, x, _, g) - : s.lineTo(D, z); - } - else s.moveTo(0, 0); - if ((s.closePath(), c)) return (s = null), c + '' || null; - } - return ( - (c.centroid = function() { - var n = (+e.apply(this, arguments) + +t.apply(this, arguments)) / 2, - r = - (+o.apply(this, arguments) + +i.apply(this, arguments)) / 2 - - __ / 2; - return [g_(r) * n, y_(r) * n]; - }), - (c.innerRadius = function(t) { - return arguments.length - ? ((e = 'function' == typeof t ? t : d_(+t)), c) - : e; - }), - (c.outerRadius = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : d_(+e)), c) - : t; - }), - (c.cornerRadius = function(e) { - return arguments.length - ? ((n = 'function' == typeof e ? e : d_(+e)), c) - : n; - }), - (c.padRadius = function(e) { - return arguments.length - ? ((r = null == e ? null : 'function' == typeof e ? e : d_(+e)), - c) - : r; - }), - (c.startAngle = function(e) { - return arguments.length - ? ((o = 'function' == typeof e ? e : d_(+e)), c) - : o; - }), - (c.endAngle = function(e) { - return arguments.length - ? ((i = 'function' == typeof e ? e : d_(+e)), c) - : i; - }), - (c.padAngle = function(e) { - return arguments.length - ? ((a = 'function' == typeof e ? e : d_(+e)), c) - : a; - }), - (c.context = function(e) { - return arguments.length ? ((s = null == e ? null : e), c) : s; - }), - c - ); - }; - function D_(e) { - this._context = e; - } - D_.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 z_ = function(e) { - return new D_(e); - }; - function N_(e) { - return e[0]; - } - function j_(e) { - return e[1]; - } - var R_ = function() { - var e = N_, - t = j_, - n = d_(!0), - r = null, - o = z_, - i = null; - function a(a) { - var s, - c, - u, - l = a.length, - f = !1; - for (null == r && (i = o((u = Wo()))), s = 0; s <= l; ++s) - !(s < l && n((c = a[s]), s, a)) === f && - ((f = !f) ? i.lineStart() : i.lineEnd()), - f && i.point(+e(c, s, a), +t(c, s, a)); - if (u) return (i = null), u + '' || null; - } - return ( - (a.x = function(t) { - return arguments.length - ? ((e = 'function' == typeof t ? t : d_(+t)), a) - : e; - }), - (a.y = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : d_(+e)), a) - : t; - }), - (a.defined = function(e) { - return arguments.length - ? ((n = 'function' == typeof e ? e : d_(!!e)), a) - : n; - }), - (a.curve = function(e) { - return arguments.length - ? ((o = e), null != r && (i = o(r)), a) - : o; - }), - (a.context = function(e) { - return arguments.length - ? (null == e ? (r = i = null) : (i = o((r = e))), a) - : r; - }), - a - ); - }, - I_ = function() { - var e = N_, - t = null, - n = d_(0), - r = j_, - o = d_(!0), - i = null, - a = z_, - s = null; - function c(c) { - var u, - l, - f, - d, - p, - h = c.length, - g = !1, - m = new Array(h), - b = new Array(h); - for (null == i && (s = a((p = Wo()))), u = 0; u <= h; ++u) { - if (!(u < h && o((d = c[u]), u, c)) === g) - if ((g = !g)) (l = u), s.areaStart(), s.lineStart(); - else { - for (s.lineEnd(), s.lineStart(), f = u - 1; f >= l; --f) - s.point(m[f], b[f]); - s.lineEnd(), s.areaEnd(); - } - g && - ((m[u] = +e(d, u, c)), - (b[u] = +n(d, u, c)), - s.point(t ? +t(d, u, c) : m[u], r ? +r(d, u, c) : b[u])); - } - if (p) return (s = null), p + '' || null; - } - function u() { - return R_() - .defined(o) - .curve(a) - .context(i); - } - return ( - (c.x = function(n) { - return arguments.length - ? ((e = 'function' == typeof n ? n : d_(+n)), (t = null), c) - : e; - }), - (c.x0 = function(t) { - return arguments.length - ? ((e = 'function' == typeof t ? t : d_(+t)), c) - : e; - }), - (c.x1 = function(e) { - return arguments.length - ? ((t = null == e ? null : 'function' == typeof e ? e : d_(+e)), - c) - : t; - }), - (c.y = function(e) { - return arguments.length - ? ((n = 'function' == typeof e ? e : d_(+e)), (r = null), c) - : n; - }), - (c.y0 = function(e) { - return arguments.length - ? ((n = 'function' == typeof e ? e : d_(+e)), c) - : n; - }), - (c.y1 = function(e) { - return arguments.length - ? ((r = null == e ? null : 'function' == typeof e ? e : d_(+e)), - c) - : r; - }), - (c.lineX0 = c.lineY0 = function() { - return u() - .x(e) - .y(n); - }), - (c.lineY1 = function() { - return u() - .x(e) - .y(r); - }), - (c.lineX1 = function() { - return u() - .x(t) - .y(n); - }), - (c.defined = function(e) { - return arguments.length - ? ((o = 'function' == typeof e ? e : d_(!!e)), c) - : o; - }), - (c.curve = function(e) { - return arguments.length - ? ((a = e), null != i && (s = a(i)), c) - : a; - }), - (c.context = function(e) { - return arguments.length - ? (null == e ? (i = s = null) : (s = a((i = e))), c) - : i; - }), - c - ); - }, - F_ = function(e, t) { - return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; - }, - q_ = function(e) { - return e; - }, - B_ = function() { - var e = q_, - t = F_, - n = null, - r = d_(0), - o = d_(w_), - i = d_(0); - function a(a) { - var s, - c, - u, - l, - f, - d = a.length, - p = 0, - h = new Array(d), - g = new Array(d), - m = +r.apply(this, arguments), - b = Math.min(w_, Math.max(-w_, o.apply(this, arguments) - m)), - y = Math.min(Math.abs(b) / d, i.apply(this, arguments)), - v = y * (b < 0 ? -1 : 1); - for (s = 0; s < d; ++s) - (f = g[(h[s] = s)] = +e(a[s], s, a)) > 0 && (p += f); - for ( - null != t - ? h.sort(function(e, n) { - return t(g[e], g[n]); - }) - : null != n && - h.sort(function(e, t) { - return n(a[e], a[t]); - }), - s = 0, - u = p ? (b - d * v) / p : 0; - s < d; - ++s, m = l - ) - (c = h[s]), - (l = m + ((f = g[c]) > 0 ? f * u : 0) + v), - (g[c] = { - data: a[c], - index: s, - value: f, - startAngle: m, - endAngle: l, - padAngle: y - }); - return g; - } - return ( - (a.value = function(t) { - return arguments.length - ? ((e = 'function' == typeof t ? t : d_(+t)), a) - : e; - }), - (a.sortValues = function(e) { - return arguments.length ? ((t = e), (n = null), a) : t; - }), - (a.sort = function(e) { - return arguments.length ? ((n = e), (t = null), a) : n; - }), - (a.startAngle = function(e) { - return arguments.length - ? ((r = 'function' == typeof e ? e : d_(+e)), a) - : r; - }), - (a.endAngle = function(e) { - return arguments.length - ? ((o = 'function' == typeof e ? e : d_(+e)), a) - : o; - }), - (a.padAngle = function(e) { - return arguments.length - ? ((i = 'function' == typeof e ? e : d_(+e)), a) - : i; - }), - a - ); - }, - H_ = W_(z_); - function Y_(e) { - this._curve = e; - } - function W_(e) { - function t(t) { - return new Y_(e(t)); - } - return (t._curve = e), t; - } - function V_(e) { - var t = e.curve; - return ( - (e.angle = e.x), - delete e.x, - (e.radius = e.y), - delete e.y, - (e.curve = function(e) { - return arguments.length ? t(W_(e)) : t()._curve; - }), - e - ); - } - Y_.prototype = { - areaStart: function() { - this._curve.areaStart(); - }, - areaEnd: function() { - this._curve.areaEnd(); - }, - lineStart: function() { - this._curve.lineStart(); - }, - lineEnd: function() { - this._curve.lineEnd(); - }, - point: function(e, t) { - this._curve.point(t * Math.sin(e), t * -Math.cos(e)); - } - }; - var U_ = function() { - return V_(R_().curve(H_)); - }, - X_ = function() { - var e = I_().curve(H_), - t = e.curve, - n = e.lineX0, - r = e.lineX1, - o = e.lineY0, - i = e.lineY1; - return ( - (e.angle = e.x), - delete e.x, - (e.startAngle = e.x0), - delete e.x0, - (e.endAngle = e.x1), - delete e.x1, - (e.radius = e.y), - delete e.y, - (e.innerRadius = e.y0), - delete e.y0, - (e.outerRadius = e.y1), - delete e.y1, - (e.lineStartAngle = function() { - return V_(n()); - }), - delete e.lineX0, - (e.lineEndAngle = function() { - return V_(r()); - }), - delete e.lineX1, - (e.lineInnerRadius = function() { - return V_(o()); - }), - delete e.lineY0, - (e.lineOuterRadius = function() { - return V_(i()); - }), - delete e.lineY1, - (e.curve = function(e) { - return arguments.length ? t(W_(e)) : t()._curve; - }), - e - ); - }, - G_ = function(e, t) { - return [(t = +t) * Math.cos((e -= Math.PI / 2)), t * Math.sin(e)]; - }, - K_ = Array.prototype.slice; - function $_(e) { - return e.source; - } - function Q_(e) { - return e.target; - } - function J_(e) { - var t = $_, - n = Q_, - r = N_, - o = j_, - i = null; - function a() { - var a, - s = K_.call(arguments), - c = t.apply(this, s), - u = n.apply(this, s); - if ( - (i || (i = a = Wo()), - e( - i, - +r.apply(this, ((s[0] = c), s)), - +o.apply(this, s), - +r.apply(this, ((s[0] = u), s)), - +o.apply(this, s) - ), - a) - ) - return (i = null), a + '' || null; - } - return ( - (a.source = function(e) { - return arguments.length ? ((t = e), a) : t; - }), - (a.target = function(e) { - return arguments.length ? ((n = e), a) : n; - }), - (a.x = function(e) { - return arguments.length - ? ((r = 'function' == typeof e ? e : d_(+e)), a) - : r; - }), - (a.y = function(e) { - return arguments.length - ? ((o = 'function' == typeof e ? e : d_(+e)), a) - : o; - }), - (a.context = function(e) { - return arguments.length ? ((i = null == e ? null : e), a) : i; - }), - a - ); - } - function Z_(e, t, n, r, o) { - e.moveTo(t, n), e.bezierCurveTo((t = (t + r) / 2), n, t, o, r, o); - } - function ex(e, t, n, r, o) { - e.moveTo(t, n), e.bezierCurveTo(t, (n = (n + o) / 2), r, n, r, o); - } - function tx(e, t, n, r, o) { - var i = G_(t, n), - a = G_(t, (n = (n + o) / 2)), - s = G_(r, n), - c = G_(r, o); - e.moveTo(i[0], i[1]), - e.bezierCurveTo(a[0], a[1], s[0], s[1], c[0], c[1]); - } - function nx() { - return J_(Z_); - } - function rx() { - return J_(ex); - } - function ox() { - var e = J_(tx); - return (e.angle = e.x), delete e.x, (e.radius = e.y), delete e.y, e; - } - var ix = { - draw: function(e, t) { - var n = Math.sqrt(t / __); - e.moveTo(n, 0), e.arc(0, 0, n, 0, w_); - } - }, - ax = { - draw: function(e, t) { - var n = Math.sqrt(t / 5) / 2; - e.moveTo(-3 * n, -n), - e.lineTo(-n, -n), - e.lineTo(-n, -3 * n), - e.lineTo(n, -3 * n), - e.lineTo(n, -n), - e.lineTo(3 * n, -n), - e.lineTo(3 * n, n), - e.lineTo(n, n), - e.lineTo(n, 3 * n), - e.lineTo(-n, 3 * n), - e.lineTo(-n, n), - e.lineTo(-3 * n, n), - e.closePath(); - } - }, - sx = Math.sqrt(1 / 3), - cx = 2 * sx, - ux = { - draw: function(e, t) { - var n = Math.sqrt(t / cx), - r = n * sx; - e.moveTo(0, -n), - e.lineTo(r, 0), - e.lineTo(0, n), - e.lineTo(-r, 0), - e.closePath(); - } - }, - lx = Math.sin(__ / 10) / Math.sin((7 * __) / 10), - fx = Math.sin(w_ / 10) * lx, - dx = -Math.cos(w_ / 10) * lx, - px = { - draw: function(e, t) { - var n = Math.sqrt(0.8908130915292852 * t), - r = fx * n, - o = dx * n; - e.moveTo(0, -n), e.lineTo(r, o); - for (var i = 1; i < 5; ++i) { - var a = (w_ * i) / 5, - s = Math.cos(a), - c = Math.sin(a); - e.lineTo(c * n, -s * n), e.lineTo(s * r - c * o, c * r + s * o); - } - e.closePath(); - } - }, - hx = { - draw: function(e, t) { - var n = Math.sqrt(t), - r = -n / 2; - e.rect(r, r, n, n); - } - }, - gx = Math.sqrt(3), - mx = { - draw: function(e, t) { - var n = -Math.sqrt(t / (3 * gx)); - e.moveTo(0, 2 * n), - e.lineTo(-gx * n, -n), - e.lineTo(gx * n, -n), - e.closePath(); - } - }, - bx = Math.sqrt(3) / 2, - yx = 1 / Math.sqrt(12), - vx = 3 * (yx / 2 + 1), - _x = { - draw: function(e, t) { - var n = Math.sqrt(t / vx), - r = n / 2, - o = n * yx, - i = r, - a = n * yx + n, - s = -i, - c = a; - e.moveTo(r, o), - e.lineTo(i, a), - e.lineTo(s, c), - e.lineTo(-0.5 * r - bx * o, bx * r + -0.5 * o), - e.lineTo(-0.5 * i - bx * a, bx * i + -0.5 * a), - e.lineTo(-0.5 * s - bx * c, bx * s + -0.5 * c), - e.lineTo(-0.5 * r + bx * o, -0.5 * o - bx * r), - e.lineTo(-0.5 * i + bx * a, -0.5 * a - bx * i), - e.lineTo(-0.5 * s + bx * c, -0.5 * c - bx * s), - e.closePath(); - } - }, - xx = [ix, ax, ux, hx, px, mx, _x], - wx = function() { - var e = d_(ix), - t = d_(64), - n = null; - function r() { - var r; - if ( - (n || (n = r = Wo()), - e.apply(this, arguments).draw(n, +t.apply(this, arguments)), - r) - ) - return (n = null), r + '' || null; - } - return ( - (r.type = function(t) { - return arguments.length - ? ((e = 'function' == typeof t ? t : d_(t)), r) - : e; - }), - (r.size = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : d_(+e)), r) - : t; - }), - (r.context = function(e) { - return arguments.length ? ((n = null == e ? null : e), r) : n; - }), - r - ); - }, - Mx = function() {}; - function kx(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 Sx(e) { - this._context = e; - } - Sx.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: - kx(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: - kx(this, e, t); - } - (this._x0 = this._x1), - (this._x1 = e), - (this._y0 = this._y1), - (this._y1 = t); - } - }; - var Ax = function(e) { - return new Sx(e); - }; - function Ox(e) { - this._context = e; - } - Ox.prototype = { - areaStart: Mx, - areaEnd: Mx, - 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: - kx(this, e, t); - } - (this._x0 = this._x1), - (this._x1 = e), - (this._y0 = this._y1), - (this._y1 = t); - } - }; - var Ex = function(e) { - return new Ox(e); - }; - function Tx(e) { - this._context = e; - } - Tx.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: - kx(this, e, t); - } - (this._x0 = this._x1), - (this._x1 = e), - (this._y0 = this._y1), - (this._y1 = t); - } - }; - var Cx = function(e) { - return new Tx(e); - }; - function Lx(e, t) { - (this._basis = new Sx(e)), (this._beta = t); - } - Lx.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, o = e[0], i = t[0], a = e[n] - o, s = t[n] - i, c = -1; - ++c <= n; + d = o(n, r, Math.ceil(n.length / 4)), + p = o(n, r, Math.ceil(n.length / 2)); + if (!d && !p) return null; + (i = p ? (d && d[4].length > p[4].length ? d : p) : d), + e.length > t.length + ? ((a = i[0]), (u = i[1]), (l = i[2]), (f = i[3])) + : ((l = i[0]), (f = i[1]), (a = i[2]), (u = i[3])); + var h = i[4]; + return [a, u, l, f, h]; + })(e, t); + if (p) { + var h = p[0], + g = p[1], + m = p[2], + b = p[3], + y = p[4], + v = i(h, m), + _ = i(g, b); + return v.concat([[o, y]], _); + } + return (function(e, t) { + for ( + var o = e.length, + i = t.length, + s = Math.ceil((o + i) / 2), + c = s, + u = 2 * s, + l = new Array(u), + f = new Array(u), + d = 0; + d < u; + d++ + ) + (l[d] = -1), (f[d] = -1); + (l[c + 1] = 0), (f[c + 1] = 0); + for ( + var p = o - i, + h = p % 2 != 0, + g = 0, + m = 0, + b = 0, + y = 0, + v = 0; + v < s; + v++ + ) { + for (var _ = -v + g; _ <= v - m; _ += 2) { + for ( + var w = c + _, + x = + (E = + _ == -v || (_ != v && l[w - 1] < l[w + 1]) + ? l[w + 1] + : l[w - 1] + 1) - _; + E < o && x < i && e.charAt(E) == t.charAt(x); + + ) + E++, x++; + if (((l[w] = E), E > o)) m += 2; + else if (x > i) g += 2; + else if ( + h && + (S = c + p - _) >= 0 && + S < u && + -1 != f[S] + ) { + var M = o - f[S]; + if (E >= M) return a(e, t, E, x); + } + } + for (var k = -v + b; k <= v - y; k += 2) { + for ( + var S = c + k, + O = + (M = + k == -v || (k != v && f[S - 1] < f[S + 1]) + ? f[S + 1] + : f[S - 1] + 1) - k; + M < o && + O < i && + e.charAt(o - M - 1) == t.charAt(i - O - 1); - ) - (r = c / n), - this._basis.point( - this._beta * e[c] + (1 - this._beta) * (o + r * a), - this._beta * t[c] + (1 - this._beta) * (i + r * s) - ); - (this._x = this._y = null), this._basis.lineEnd(); - }, - point: function(e, t) { - this._x.push(+e), this._y.push(+t); - } - }; - var Px = (function e(t) { - function n(e) { - return 1 === t ? new Sx(e) : new Lx(e, t); - } - return ( - (n.beta = function(t) { - return e(+t); - }), - n - ); - })(0.85); - function Dx(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 zx(e, t) { - (this._context = e), (this._k = (1 - t) / 6); - } - zx.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: - Dx(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: - Dx(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 Nx = (function e(t) { - function n(e) { - return new zx(e, t); - } - return ( - (n.tension = function(t) { - return e(+t); - }), - n - ); - })(0); - function jx(e, t) { - (this._context = e), (this._k = (1 - t) / 6); - } - jx.prototype = { - areaStart: Mx, - areaEnd: Mx, - 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: - Dx(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 Rx = (function e(t) { - function n(e) { - return new jx(e, t); - } - return ( - (n.tension = function(t) { - return e(+t); - }), - n - ); - })(0); - function Ix(e, t) { - (this._context = e), (this._k = (1 - t) / 6); - } - Ix.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: - Dx(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 Fx = (function e(t) { - function n(e) { - return new Ix(e, t); - } - return ( - (n.tension = function(t) { - return e(+t); - }), - n - ); - })(0); - function qx(e, t, n) { - var r = e._x1, - o = e._y1, - i = e._x2, - a = e._y2; - if (e._l01_a > 1e-12) { - var s = 2 * e._l01_2a + 3 * e._l01_a * e._l12_a + e._l12_2a, - c = 3 * e._l01_a * (e._l01_a + e._l12_a); - (r = (r * s - e._x0 * e._l12_2a + e._x2 * e._l01_2a) / c), - (o = (o * s - e._y0 * e._l12_2a + e._y2 * e._l01_2a) / c); - } - if (e._l23_a > 1e-12) { - var u = 2 * e._l23_2a + 3 * e._l23_a * e._l12_a + e._l12_2a, - l = 3 * e._l23_a * (e._l23_a + e._l12_a); - (i = (i * u + e._x1 * e._l23_2a - t * e._l12_2a) / l), - (a = (a * u + e._y1 * e._l23_2a - n * e._l12_2a) / l); - } - e._context.bezierCurveTo(r, o, i, a, e._x2, e._y2); - } - function Bx(e, t) { - (this._context = e), (this._alpha = t); - } - Bx.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: - qx(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 Hx = (function e(t) { - function n(e) { - return t ? new Bx(e, t) : new zx(e, 0); - } - return ( - (n.alpha = function(t) { - return e(+t); - }), - n - ); - })(0.5); - function Yx(e, t) { - (this._context = e), (this._alpha = t); - } - Yx.prototype = { - areaStart: Mx, - areaEnd: Mx, - 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: - qx(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 Wx = (function e(t) { - function n(e) { - return t ? new Yx(e, t) : new jx(e, 0); - } - return ( - (n.alpha = function(t) { - return e(+t); - }), - n - ); - })(0.5); - function Vx(e, t) { - (this._context = e), (this._alpha = t); - } - Vx.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: - qx(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 Ux = (function e(t) { - function n(e) { - return t ? new Vx(e, t) : new Ix(e, 0); - } - return ( - (n.alpha = function(t) { - return e(+t); - }), - n - ); - })(0.5); - function Xx(e) { - this._context = e; - } - Xx.prototype = { - areaStart: Mx, - areaEnd: Mx, - 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)); - } - }; - var Gx = function(e) { - return new Xx(e); - }; - function Kx(e) { - return e < 0 ? -1 : 1; - } - function $x(e, t, n) { - var r = e._x1 - e._x0, - o = t - e._x1, - i = (e._y1 - e._y0) / (r || (o < 0 && -0)), - a = (n - e._y1) / (o || (r < 0 && -0)), - s = (i * o + a * r) / (r + o); - return ( - (Kx(i) + Kx(a)) * - Math.min(Math.abs(i), Math.abs(a), 0.5 * Math.abs(s)) || 0 - ); - } - function Qx(e, t) { - var n = e._x1 - e._x0; - return n ? ((3 * (e._y1 - e._y0)) / n - t) / 2 : t; - } - function Jx(e, t, n) { - var r = e._x0, - o = e._y0, - i = e._x1, - a = e._y1, - s = (i - r) / 3; - e._context.bezierCurveTo(r + s, o + s * t, i - s, a - s * n, i, a); - } - function Zx(e) { - this._context = e; - } - function ew(e) { - this._context = new tw(e); - } - function tw(e) { - this._context = e; - } - function nw(e) { - return new Zx(e); - } - function rw(e) { - return new ew(e); - } - function ow(e) { - this._context = e; - } - function iw(e) { - var t, - n, - r = e.length - 1, - o = new Array(r), - i = new Array(r), - a = new Array(r); - for (o[0] = 0, i[0] = 2, a[0] = e[0] + 2 * e[1], t = 1; t < r - 1; ++t) - (o[t] = 1), (i[t] = 4), (a[t] = 4 * e[t] + 2 * e[t + 1]); - for ( - o[r - 1] = 2, i[r - 1] = 7, a[r - 1] = 8 * e[r - 1] + e[r], t = 1; - t < r; - ++t - ) - (n = o[t] / i[t - 1]), (i[t] -= n), (a[t] -= n * a[t - 1]); - for (o[r - 1] = a[r - 1] / i[r - 1], t = r - 2; t >= 0; --t) - o[t] = (a[t] - o[t + 1]) / i[t]; - for (i[r - 1] = (e[r] + o[r - 1]) / 2, t = 0; t < r - 1; ++t) - i[t] = 2 * e[t + 1] - o[t + 1]; - return [o, i]; - } - (Zx.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: - Jx(this, this._t0, Qx(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), Jx(this, Qx(this, (n = $x(this, e, t))), n); - break; - default: - Jx(this, this._t0, (n = $x(this, e, t))); - } - (this._x0 = this._x1), - (this._x1 = e), - (this._y0 = this._y1), - (this._y1 = t), - (this._t0 = n); - } - } - }), - ((ew.prototype = Object.create(Zx.prototype)).point = function(e, t) { - Zx.prototype.point.call(this, t, e); - }), - (tw.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, o, i) { - this._context.bezierCurveTo(t, e, r, n, i, o); - } - }), - (ow.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 = iw(e), o = iw(t), i = 0, a = 1; a < n; ++i, ++a) - this._context.bezierCurveTo( - r[0][i], - o[0][i], - r[1][i], - o[1][i], - e[a], - t[a] + ) + M++, O++; + if (((f[S] = M), M > o)) y += 2; + else if (O > i) b += 2; + else if ( + !h && + (w = c + p - k) >= 0 && + w < u && + -1 != l[w] + ) { + var E = l[w]; + if (((x = c + E - w), E >= (M = o - M))) + return a(e, t, E, x); + } + } + } + return [[n, e], [r, t]]; + })(e, t); + })( + (e = e.substring(0, e.length - f)), + (t = t.substring(0, t.length - f)) + ); + return ( + d && h.unshift([o, d]), + p && h.push([o, p]), + (function e(t) { + t.push([o, '']); + for ( + var i, a = 0, u = 0, l = 0, f = '', d = ''; + a < t.length; + + ) + switch (t[a][0]) { + case r: + l++, (d += t[a][1]), a++; + break; + case n: + u++, (f += t[a][1]), a++; + break; + case o: + u + l > 1 + ? (0 !== u && + 0 !== l && + (0 !== (i = s(d, f)) && + (a - u - l > 0 && t[a - u - l - 1][0] == o + ? (t[a - u - l - 1][1] += d.substring( + 0, + i + )) + : (t.splice(0, 0, [o, d.substring(0, i)]), + a++), + (d = d.substring(i)), + (f = f.substring(i))), + 0 !== (i = c(d, f)) && + ((t[a][1] = + d.substring(d.length - i) + t[a][1]), + (d = d.substring(0, d.length - i)), + (f = f.substring(0, f.length - i)))), + 0 === u + ? t.splice(a - l, u + l, [r, d]) + : 0 === l + ? t.splice(a - u, u + l, [n, f]) + : t.splice(a - u - l, u + l, [n, f], [r, d]), + (a = a - u - l + (u ? 1 : 0) + (l ? 1 : 0) + 1)) + : 0 !== a && t[a - 1][0] == o + ? ((t[a - 1][1] += t[a][1]), t.splice(a, 1)) + : a++, + (l = 0), + (u = 0), + (f = ''), + (d = ''); + } + '' === t[t.length - 1][1] && t.pop(); + var p = !1; + for (a = 1; a < t.length - 1; ) + t[a - 1][0] == o && + t[a + 1][0] == o && + (t[a][1].substring( + t[a][1].length - t[a - 1][1].length + ) == t[a - 1][1] + ? ((t[a][1] = + t[a - 1][1] + + t[a][1].substring( + 0, + t[a][1].length - t[a - 1][1].length + )), + (t[a + 1][1] = t[a - 1][1] + t[a + 1][1]), + t.splice(a - 1, 1), + (p = !0)) + : t[a][1].substring(0, t[a + 1][1].length) == + t[a + 1][1] && + ((t[a - 1][1] += t[a + 1][1]), + (t[a][1] = + t[a][1].substring(t[a + 1][1].length) + + t[a + 1][1]), + t.splice(a + 1, 1), + (p = !0))), + a++; + p && e(t); + })(h), + null != u && + (h = (function(e, t) { + var r = (function(e, t) { + if (0 === t) return [o, e]; + for (var r = 0, i = 0; i < e.length; i++) { + var a = e[i]; + if (a[0] === n || a[0] === o) { + var s = r + a[1].length; + if (t === s) return [i + 1, e]; + if (t < s) { + e = e.slice(); + var c = t - r, + u = [a[0], a[1].slice(0, c)], + l = [a[0], a[1].slice(c)]; + return e.splice(i, 1, u, l), [i + 1, e]; + } + r = s; + } + } + throw new Error('cursor_pos is out of bounds!'); + })(e, t), + i = r[1], + a = r[0], + s = i[a], + c = i[a + 1]; + if (null == s) return e; + if (s[0] !== o) return e; + if (null != c && s[1] + c[1] === c[1] + s[1]) + return i.splice(a, 2, c, s), l(i, a, 2); + if (null != c && 0 === c[1].indexOf(s[1])) { + i.splice(a, 2, [c[0], s[1]], [0, s[1]]); + var u = c[1].slice(s[1].length); + return ( + u.length > 0 && i.splice(a + 2, 0, [c[0], u]), + l(i, a, 3) + ); + } + return e; + })(h, u)), + (h = (function(e) { + for ( + var t = !1, + i = function(e) { + return ( + e.charCodeAt(0) >= 56320 && + e.charCodeAt(0) <= 57343 + ); + }, + a = 2; + a < e.length; + a += 1 + ) + e[a - 2][0] === o && + (s = e[a - 2][1]).charCodeAt(s.length - 1) >= 55296 && + s.charCodeAt(s.length - 1) <= 56319 && + e[a - 1][0] === n && + i(e[a - 1][1]) && + e[a][0] === r && + i(e[a][1]) && + ((t = !0), + (e[a - 1][1] = e[a - 2][1].slice(-1) + e[a - 1][1]), + (e[a][1] = e[a - 2][1].slice(-1) + e[a][1]), + (e[a - 2][1] = e[a - 2][1].slice(0, -1))); + var s; + if (!t) return e; + var c = []; + for (a = 0; a < e.length; a += 1) + e[a][1].length > 0 && c.push(e[a]); + return c; + })(h)) + ); + } + function a(e, t, n, r) { + var o = e.substring(0, n), + a = t.substring(0, r), + s = e.substring(n), + c = t.substring(r), + u = i(o, a), + l = i(s, c); + return u.concat(l); + } + function s(e, t) { + if (!e || !t || e.charAt(0) != t.charAt(0)) return 0; + for ( + var n = 0, r = Math.min(e.length, t.length), o = r, i = 0; + n < o; + + ) + e.substring(i, o) == t.substring(i, o) + ? (i = n = o) + : (r = o), + (o = Math.floor((r - n) / 2 + n)); + return o; + } + function c(e, t) { + if ( + !e || + !t || + e.charAt(e.length - 1) != t.charAt(t.length - 1) + ) + return 0; + for ( + var n = 0, r = Math.min(e.length, t.length), o = r, i = 0; + n < o; + + ) + e.substring(e.length - o, e.length - i) == + t.substring(t.length - o, t.length - i) + ? (i = n = o) + : (r = o), + (o = Math.floor((r - n) / 2 + n)); + return o; + } + var u = i; + function l(e, t, n) { + for (var r = t + n - 1; r >= 0 && r >= t - 1; r--) + if (r + 1 < e.length) { + var o = e[r], + i = e[r + 1]; + o[0] === i[1] && e.splice(r, 2, [o[0], o[1] + i[1]]); + } + return e; + } + (u.INSERT = r), (u.DELETE = n), (u.EQUAL = o), (e.exports = u); + }, + function(e, t) { + function n(e) { + var t = []; + for (var n in e) t.push(n); + return t; + } + (e.exports = + 'function' == typeof Object.keys ? Object.keys : n).shim = n; + }, + function(e, t) { + var n = + '[object Arguments]' == + (function() { + return Object.prototype.toString.call(arguments); + })(); + function r(e) { + return ( + '[object Arguments]' == Object.prototype.toString.call(e) + ); + } + function o(e) { + return ( + (e && + 'object' == typeof e && + 'number' == typeof e.length && + Object.prototype.hasOwnProperty.call(e, 'callee') && + !Object.prototype.propertyIsEnumerable.call( + e, + 'callee' + )) || + !1 + ); + } + ((t = e.exports = n ? r : o).supported = r), + (t.unsupported = o); + }, + function(e, t) { + 'use strict'; + var n = Object.prototype.hasOwnProperty, + r = '~'; + function o() {} + function i(e, t, n) { + (this.fn = e), (this.context = t), (this.once = n || !1); + } + function a() { + (this._events = new o()), (this._eventsCount = 0); + } + Object.create && + ((o.prototype = Object.create(null)), + new o().__proto__ || (r = !1)), + (a.prototype.eventNames = function() { + var e, + t, + o = []; + if (0 === this._eventsCount) return o; + for (t in (e = this._events)) + n.call(e, t) && o.push(r ? t.slice(1) : t); + return Object.getOwnPropertySymbols + ? o.concat(Object.getOwnPropertySymbols(e)) + : o; + }), + (a.prototype.listeners = function(e, t) { + var n = r ? r + e : e, + o = this._events[n]; + if (t) return !!o; + if (!o) return []; + if (o.fn) return [o.fn]; + for (var i = 0, a = o.length, s = new Array(a); i < a; i++) + s[i] = o[i].fn; + return s; + }), + (a.prototype.emit = function(e, t, n, o, i, a) { + var s = r ? r + e : e; + if (!this._events[s]) return !1; + var c, + u, + l = this._events[s], + f = arguments.length; + if (l.fn) { + switch ( + (l.once && this.removeListener(e, l.fn, void 0, !0), f) + ) { + case 1: + return l.fn.call(l.context), !0; + case 2: + return l.fn.call(l.context, t), !0; + case 3: + return l.fn.call(l.context, t, n), !0; + case 4: + return l.fn.call(l.context, t, n, o), !0; + case 5: + return l.fn.call(l.context, t, n, o, i), !0; + case 6: + return l.fn.call(l.context, t, n, o, i, a), !0; + } + for (u = 1, c = new Array(f - 1); u < f; u++) + c[u - 1] = arguments[u]; + l.fn.apply(l.context, c); + } else { + var d, + p = l.length; + for (u = 0; u < p; u++) + switch ( + (l[u].once && + this.removeListener(e, l[u].fn, void 0, !0), + f) + ) { + case 1: + l[u].fn.call(l[u].context); + break; + case 2: + l[u].fn.call(l[u].context, t); + break; + case 3: + l[u].fn.call(l[u].context, t, n); + break; + case 4: + l[u].fn.call(l[u].context, t, n, o); + break; + default: + if (!c) + for (d = 1, c = new Array(f - 1); d < f; d++) + c[d - 1] = arguments[d]; + l[u].fn.apply(l[u].context, c); + } + } + return !0; + }), + (a.prototype.on = function(e, t, n) { + var o = new i(t, n || this), + a = r ? r + e : e; + return ( + this._events[a] + ? this._events[a].fn + ? (this._events[a] = [this._events[a], o]) + : this._events[a].push(o) + : ((this._events[a] = o), this._eventsCount++), + this + ); + }), + (a.prototype.once = function(e, t, n) { + var o = new i(t, n || this, !0), + a = r ? r + e : e; + return ( + this._events[a] + ? this._events[a].fn + ? (this._events[a] = [this._events[a], o]) + : this._events[a].push(o) + : ((this._events[a] = o), this._eventsCount++), + this + ); + }), + (a.prototype.removeListener = function(e, t, n, i) { + var a = r ? r + e : e; + if (!this._events[a]) return this; + if (!t) + return ( + 0 == --this._eventsCount + ? (this._events = new o()) + : delete this._events[a], + this + ); + var s = this._events[a]; + if (s.fn) + s.fn !== t || + (i && !s.once) || + (n && s.context !== n) || + (0 == --this._eventsCount + ? (this._events = new o()) + : delete this._events[a]); + else { + for (var c = 0, u = [], l = s.length; c < l; c++) + (s[c].fn !== t || + (i && !s[c].once) || + (n && s[c].context !== n)) && + u.push(s[c]); + u.length + ? (this._events[a] = 1 === u.length ? u[0] : u) + : 0 == --this._eventsCount + ? (this._events = new o()) + : delete this._events[a]; + } + return this; + }), + (a.prototype.removeAllListeners = function(e) { + var t; + return ( + e + ? ((t = r ? r + e : e), + this._events[t] && + (0 == --this._eventsCount + ? (this._events = new o()) + : delete this._events[t])) + : ((this._events = new o()), (this._eventsCount = 0)), + this + ); + }), + (a.prototype.off = a.prototype.removeListener), + (a.prototype.addListener = a.prototype.on), + (a.prototype.setMaxListeners = function() { + return this; + }), + (a.prefixed = r), + (a.EventEmitter = a), + void 0 !== e && (e.exports = a); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.matchText = t.matchSpacing = t.matchNewline = t.matchBlot = t.matchAttributor = t.default = void 0); + var r = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(e) { + return typeof e; + } + : function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e; + }, + o = function(e, t) { + if (Array.isArray(e)) return e; + if (Symbol.iterator in Object(e)) + return (function(e, t) { + var n = [], + r = !0, + o = !1, + i = void 0; + try { + for ( + var a, s = e[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !t || n.length !== t); + r = !0 + ); + } catch (e) { + (o = !0), (i = e); + } finally { + try { + !r && s.return && s.return(); + } finally { + if (o) throw i; + } + } + return n; + })(e, t); + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' + ); + }, + i = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + a = v(n(3)), + s = v(n(2)), + c = v(n(0)), + u = v(n(5)), + l = v(n(10)), + f = v(n(9)), + d = n(36), + p = n(37), + h = v(n(13)), + g = n(26), + m = n(38), + b = n(39), + y = n(40); + function v(e) { + return e && e.__esModule ? e : { default: e }; + } + function _(e, t, n) { + return ( + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), + e + ); + } + var w = (0, l.default)('quill:clipboard'), + x = '__ql-matcher', + M = [ + [Node.TEXT_NODE, N], + [Node.TEXT_NODE, j], + [ + 'br', + function(e, t) { + return T(t, '\n') || t.insert('\n'), t; + } + ], + [Node.ELEMENT_NODE, j], + [Node.ELEMENT_NODE, D], + [Node.ELEMENT_NODE, z], + [Node.ELEMENT_NODE, P], + [ + Node.ELEMENT_NODE, + function(e, t) { + var n = {}, + r = e.style || {}; + return ( + r.fontStyle && + 'italic' === A(e).fontStyle && + (n.italic = !0), + r.fontWeight && + (A(e).fontWeight.startsWith('bold') || + parseInt(A(e).fontWeight) >= 700) && + (n.bold = !0), + Object.keys(n).length > 0 && (t = E(t, n)), + parseFloat(r.textIndent || 0) > 0 && + (t = new s.default().insert('\t').concat(t)), + t + ); + } + ], + [ + 'li', + function(e, t) { + var n = c.default.query(e); + if ( + null == n || + 'list-item' !== n.blotName || + !T(t, '\n') + ) + return t; + for ( + var r = -1, o = e.parentNode; + !o.classList.contains('ql-clipboard'); + + ) + 'list' === (c.default.query(o) || {}).blotName && + (r += 1), + (o = o.parentNode); + return r <= 0 + ? t + : t.compose( + new s.default() + .retain(t.length() - 1) + .retain(1, { indent: r }) + ); + } + ], + ['b', L.bind(L, 'bold')], + ['i', L.bind(L, 'italic')], + [ + 'style', + function() { + return new s.default(); + } + ] + ], + k = [d.AlignAttribute, m.DirectionAttribute].reduce(function( + e, + t + ) { + return (e[t.keyName] = t), e; + }, + {}), + S = [ + d.AlignStyle, + p.BackgroundStyle, + g.ColorStyle, + m.DirectionStyle, + b.FontStyle, + y.SizeStyle + ].reduce(function(e, t) { + return (e[t.keyName] = t), e; + }, {}), + O = (function(e) { + function t(e, n) { + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t); + var r = (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( + this, + (t.__proto__ || Object.getPrototypeOf(t)).call( + this, + e, + n + ) + ); + return ( + r.quill.root.addEventListener( + 'paste', + r.onPaste.bind(r) + ), + (r.container = r.quill.addContainer('ql-clipboard')), + r.container.setAttribute('contenteditable', !0), + r.container.setAttribute('tabindex', -1), + (r.matchers = []), + M.concat(r.options.matchers).forEach(function(e) { + var t = o(e, 2), + i = t[0], + a = t[1]; + (n.matchVisual || a !== z) && r.addMatcher(i, a); + }), + r + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + i(t, [ + { + key: 'addMatcher', + value: function(e, t) { + this.matchers.push([e, t]); + } + }, + { + key: 'convert', + value: function(e) { + if ('string' == typeof e) + return ( + (this.container.innerHTML = e.replace( + /\>\r?\n +\<' + )), + this.convert() + ); + var t = this.quill.getFormat( + this.quill.selection.savedRange.index + ); + if (t[h.default.blotName]) { + var n = this.container.innerText; + return ( + (this.container.innerHTML = ''), + new s.default().insert( + n, + _( + {}, + h.default.blotName, + t[h.default.blotName] + ) + ) + ); + } + var r = this.prepareMatching(), + i = o(r, 2), + a = i[0], + c = i[1], + u = (function e(t, n, r) { + return t.nodeType === t.TEXT_NODE + ? r.reduce(function(e, n) { + return n(t, e); + }, new s.default()) + : t.nodeType === t.ELEMENT_NODE + ? [].reduce.call( + t.childNodes || [], + function(o, i) { + var a = e(i, n, r); + return ( + i.nodeType === t.ELEMENT_NODE && + ((a = n.reduce(function(e, t) { + return t(i, e); + }, a)), + (a = (i[x] || []).reduce(function( + e, + t + ) { + return t(i, e); + }, + a))), + o.concat(a) + ); + }, + new s.default() + ) + : new s.default(); + })(this.container, a, c); + return ( + T(u, '\n') && + null == u.ops[u.ops.length - 1].attributes && + (u = u.compose( + new s.default() + .retain(u.length() - 1) + .delete(1) + )), + w.log('convert', this.container.innerHTML, u), + (this.container.innerHTML = ''), + u + ); + } + }, + { + key: 'dangerouslyPasteHTML', + value: function(e, t) { + var n = + arguments.length > 2 && void 0 !== arguments[2] + ? arguments[2] + : u.default.sources.API; + if ('string' == typeof e) + this.quill.setContents(this.convert(e), t), + this.quill.setSelection( + 0, + u.default.sources.SILENT + ); + else { + var r = this.convert(t); + this.quill.updateContents( + new s.default().retain(e).concat(r), + n + ), + this.quill.setSelection( + e + r.length(), + u.default.sources.SILENT + ); + } + } + }, + { + key: 'onPaste', + value: function(e) { + var t = this; + if (!e.defaultPrevented && this.quill.isEnabled()) { + var n = this.quill.getSelection(), + r = new s.default().retain(n.index), + o = this.quill.scrollingContainer.scrollTop; + this.container.focus(), + this.quill.selection.update( + u.default.sources.SILENT + ), + setTimeout(function() { + (r = r.concat(t.convert()).delete(n.length)), + t.quill.updateContents( + r, + u.default.sources.USER + ), + t.quill.setSelection( + r.length() - n.length, + u.default.sources.SILENT + ), + (t.quill.scrollingContainer.scrollTop = o), + t.quill.focus(); + }, 1); + } + } + }, + { + key: 'prepareMatching', + value: function() { + var e = this, + t = [], + n = []; + return ( + this.matchers.forEach(function(r) { + var i = o(r, 2), + a = i[0], + s = i[1]; + switch (a) { + case Node.TEXT_NODE: + n.push(s); + break; + case Node.ELEMENT_NODE: + t.push(s); + break; + default: + [].forEach.call( + e.container.querySelectorAll(a), + function(e) { + (e[x] = e[x] || []), e[x].push(s); + } + ); + } + }), + [t, n] + ); + } + } + ]), + t + ); + })(f.default); + function E(e, t, n) { + return 'object' === (void 0 === t ? 'undefined' : r(t)) + ? Object.keys(t).reduce(function(e, n) { + return E(e, n, t[n]); + }, e) + : e.reduce(function(e, r) { + return r.attributes && r.attributes[t] + ? e.push(r) + : e.insert( + r.insert, + (0, a.default)({}, _({}, t, n), r.attributes) + ); + }, new s.default()); + } + function A(e) { + return e.nodeType !== Node.ELEMENT_NODE + ? {} + : e['__ql-computed-style'] || + (e['__ql-computed-style'] = window.getComputedStyle(e)); + } + function T(e, t) { + for ( + var n = '', r = e.ops.length - 1; + r >= 0 && n.length < t.length; + --r + ) { + var o = e.ops[r]; + if ('string' != typeof o.insert) break; + n = o.insert + n; + } + return n.slice(-1 * t.length) === t; + } + function C(e) { + if (0 === e.childNodes.length) return !1; + var t = A(e); + return ['block', 'list-item'].indexOf(t.display) > -1; + } + function L(e, t, n) { + return E(n, e, !0); + } + function P(e, t) { + var n = c.default.Attributor.Attribute.keys(e), + r = c.default.Attributor.Class.keys(e), + o = c.default.Attributor.Style.keys(e), + i = {}; + return ( + n + .concat(r) + .concat(o) + .forEach(function(t) { + var n = c.default.query(t, c.default.Scope.ATTRIBUTE); + (null != n && + ((i[n.attrName] = n.value(e)), i[n.attrName])) || + (null == (n = k[t]) || + (n.attrName !== t && n.keyName !== t) || + (i[n.attrName] = n.value(e) || void 0), + null == (n = S[t]) || + (n.attrName !== t && n.keyName !== t) || + ((n = S[t]), + (i[n.attrName] = n.value(e) || void 0))); + }), + Object.keys(i).length > 0 && (t = E(t, i)), + t ); - (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); - } - }); - var aw = function(e) { - return new ow(e); - }; - function sw(e, t) { - (this._context = e), (this._t = t); - } - sw.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 cw = function(e) { - return new sw(e, 0.5); - }; - function uw(e) { - return new sw(e, 0); - } - function lw(e) { - return new sw(e, 1); - } - var fw = function(e, t) { - if ((o = e.length) > 1) - for (var n, r, o, i = 1, a = e[t[0]], s = a.length; i < o; ++i) - for (r = a, a = e[t[i]], n = 0; n < s; ++n) - a[n][1] += a[n][0] = isNaN(r[n][1]) ? r[n][0] : r[n][1]; - }, - dw = function(e) { - for (var t = e.length, n = new Array(t); --t >= 0; ) n[t] = t; - return n; - }; - function pw(e, t) { - return e[t]; - } - var hw = function() { - var e = d_([]), - t = dw, - n = fw, - r = pw; - function o(o) { - var i, - a, - s = e.apply(this, arguments), - c = o.length, - u = s.length, - l = new Array(u); - for (i = 0; i < u; ++i) { - for ( - var f, d = s[i], p = (l[i] = new Array(c)), h = 0; - h < c; - ++h - ) - (p[h] = f = [0, +r(o[h], d, h, o)]), (f.data = o[h]); - p.key = d; - } - for (i = 0, a = t(l); i < u; ++i) l[a[i]].index = i; - return n(l, a), l; - } - return ( - (o.keys = function(t) { - return arguments.length - ? ((e = 'function' == typeof t ? t : d_(K_.call(t))), o) - : e; - }), - (o.value = function(e) { - return arguments.length - ? ((r = 'function' == typeof e ? e : d_(+e)), o) - : r; - }), - (o.order = function(e) { - return arguments.length - ? ((t = - null == e - ? dw - : 'function' == typeof e - ? e - : d_(K_.call(e))), - o) - : t; - }), - (o.offset = function(e) { - return arguments.length ? ((n = null == e ? fw : e), o) : n; - }), - o - ); - }, - gw = function(e, t) { - if ((r = e.length) > 0) { - for (var n, r, o, i = 0, a = e[0].length; i < a; ++i) { - for (o = n = 0; n < r; ++n) o += e[n][i][1] || 0; - if (o) for (n = 0; n < r; ++n) e[n][i][1] /= o; - } - fw(e, t); - } - }, - mw = function(e, t) { - if ((s = e.length) > 0) - for (var n, r, o, i, a, s, c = 0, u = e[t[0]].length; c < u; ++c) - for (i = a = 0, n = 0; n < s; ++n) - (o = (r = e[t[n]][c])[1] - r[0]) > 0 - ? ((r[0] = i), (r[1] = i += o)) - : o < 0 - ? ((r[1] = a), (r[0] = a += o)) - : ((r[0] = 0), (r[1] = o)); - }, - bw = function(e, t) { - if ((n = e.length) > 0) { - for (var n, r = 0, o = e[t[0]], i = o.length; r < i; ++r) { - for (var a = 0, s = 0; a < n; ++a) s += e[a][r][1] || 0; - o[r][1] += o[r][0] = -s / 2; - } - fw(e, t); - } - }, - yw = function(e, t) { - if ((o = e.length) > 0 && (r = (n = e[t[0]]).length) > 0) { - for (var n, r, o, i = 0, a = 1; a < r; ++a) { - for (var s = 0, c = 0, u = 0; s < o; ++s) { - for ( - var l = e[t[s]], - f = l[a][1] || 0, - d = (f - (l[a - 1][1] || 0)) / 2, - p = 0; - p < s; - ++p - ) { - var h = e[t[p]]; - d += (h[a][1] || 0) - (h[a - 1][1] || 0); } - (c += f), (u += d * f); - } - (n[a - 1][1] += n[a - 1][0] = i), c && (i -= u / c); - } - (n[a - 1][1] += n[a - 1][0] = i), fw(e, t); - } - }, - vw = function(e) { - var t = e.map(_w); - return dw(e).sort(function(e, n) { - return t[e] - t[n]; - }); - }; - function _w(e) { - for (var t, n = -1, r = 0, o = e.length, i = -1 / 0; ++n < o; ) - (t = +e[n][1]) > i && ((i = t), (r = n)); - return r; - } - var xw = function(e) { - var t = e.map(ww); - return dw(e).sort(function(e, n) { - return t[e] - t[n]; - }); - }; - function ww(e) { - for (var t, n = 0, r = -1, o = e.length; ++r < o; ) - (t = +e[r][1]) && (n += t); - return n; - } - var Mw = function(e) { - return xw(e).reverse(); - }, - kw = function(e) { - var t, - n, - r = e.length, - o = e.map(ww), - i = vw(e), - a = 0, - s = 0, - c = [], - u = []; - for (t = 0; t < r; ++t) - (n = i[t]), - a < s ? ((a += o[n]), c.push(n)) : ((s += o[n]), u.push(n)); - return u.reverse().concat(c); - }, - Sw = function(e) { - return dw(e).reverse(); - }; - var Aw = Date.prototype.toISOString - ? function(e) { - return e.toISOString(); - } - : Wm('%Y-%m-%dT%H:%M:%S.%LZ'); - var Ow = +new Date('2000-01-01T00:00:00.000Z') - ? function(e) { - var t = new Date(e); - return isNaN(t) ? null : t; - } - : Vm('%Y-%m-%dT%H:%M:%S.%LZ'), - Ew = function(e, t, n) { - var r = new Wn(), - o = t; - return null == t - ? (r.restart(e, t, n), r) - : ((t = +t), - (n = null == n ? Hn() : +n), - r.restart( - function i(a) { - (a += o), r.restart(i, (o += t), n), e(a); - }, - t, - n - ), - r); - }, - Tw = function(e) { - return function() { - return e; - }; - }; - function Cw(e) { - return e[0]; - } - function Lw(e) { - return e[1]; - } - function Pw() { - this._ = null; - } - function Dw(e) { - e.U = e.C = e.L = e.R = e.P = e.N = null; - } - function zw(e, t) { - var n = t, - r = t.R, - o = n.U; - o ? (o.L === n ? (o.L = r) : (o.R = r)) : (e._ = r), - (r.U = o), - (n.U = r), - (n.R = r.L), - n.R && (n.R.U = n), - (r.L = n); - } - function Nw(e, t) { - var n = t, - r = t.L, - o = n.U; - o ? (o.L === n ? (o.L = r) : (o.R = r)) : (e._ = r), - (r.U = o), - (n.U = r), - (n.L = r.R), - n.L && (n.L.U = n), - (r.R = n); - } - function jw(e) { - for (; e.L; ) e = e.L; - return e; - } - Pw.prototype = { - constructor: Pw, - insert: function(e, t) { - var n, r, o; - if (e) { - if (((t.P = e), (t.N = e.N), e.N && (e.N.P = t), (e.N = t), e.R)) { - for (e = e.R; e.L; ) e = e.L; - e.L = t; - } else e.R = t; - n = e; - } else - this._ - ? ((e = jw(this._)), - (t.P = null), - (t.N = e), - (e.P = e.L = t), - (n = e)) - : ((t.P = t.N = null), (this._ = t), (n = null)); - for (t.L = t.R = null, t.U = n, t.C = !0, e = t; n && n.C; ) - n === (r = n.U).L - ? (o = r.R) && o.C - ? ((n.C = o.C = !1), (r.C = !0), (e = r)) - : (e === n.R && (zw(this, n), (n = (e = n).U)), - (n.C = !1), - (r.C = !0), - Nw(this, r)) - : (o = r.L) && o.C - ? ((n.C = o.C = !1), (r.C = !0), (e = r)) - : (e === n.L && (Nw(this, n), (n = (e = n).U)), - (n.C = !1), - (r.C = !0), - zw(this, r)), - (n = e.U); - this._.C = !1; - }, - remove: function(e) { - e.N && (e.N.P = e.P), e.P && (e.P.N = e.N), (e.N = e.P = null); - var t, - n, - r, - o = e.U, - i = e.L, - a = e.R; - if ( - ((n = i ? (a ? jw(a) : i) : a), - o ? (o.L === e ? (o.L = n) : (o.R = n)) : (this._ = n), - i && a - ? ((r = n.C), - (n.C = e.C), - (n.L = i), - (i.U = n), - n !== a - ? ((o = n.U), - (n.U = e.U), - (e = n.R), - (o.L = e), - (n.R = a), - (a.U = n)) - : ((n.U = o), (o = n), (e = n.R))) - : ((r = e.C), (e = n)), - e && (e.U = o), - !r) - ) - if (e && e.C) e.C = !1; - else { - do { - if (e === this._) break; - if (e === o.L) { - if ( - ((t = o.R).C && - ((t.C = !1), (o.C = !0), zw(this, o), (t = o.R)), - (t.L && t.L.C) || (t.R && t.R.C)) - ) { - (t.R && t.R.C) || - ((t.L.C = !1), (t.C = !0), Nw(this, t), (t = o.R)), - (t.C = o.C), - (o.C = t.R.C = !1), - zw(this, o), - (e = this._); - break; + function D(e, t) { + var n = c.default.query(e); + if (null == n) return t; + if (n.prototype instanceof c.default.Embed) { + var r = {}, + o = n.value(e); + null != o && + ((r[n.blotName] = o), + (t = new s.default().insert(r, n.formats(e)))); + } else + 'function' == typeof n.formats && + (t = E(t, n.blotName, n.formats(e))); + return t; + } + function j(e, t) { + return ( + T(t, '\n') || + ((C(e) || + (t.length() > 0 && + e.nextSibling && + C(e.nextSibling))) && + t.insert('\n')), + t + ); + } + function z(e, t) { + if (C(e) && null != e.nextElementSibling && !T(t, '\n\n')) { + var n = + e.offsetHeight + + parseFloat(A(e).marginTop) + + parseFloat(A(e).marginBottom); + e.nextElementSibling.offsetTop > e.offsetTop + 1.5 * n && + t.insert('\n'); + } + return t; + } + function N(e, t) { + var n = e.data; + if ('O:P' === e.parentNode.tagName) return t.insert(n.trim()); + if ( + 0 === n.trim().length && + e.parentNode.classList.contains('ql-clipboard') + ) + return t; + if (!A(e.parentNode).whiteSpace.startsWith('pre')) { + var r = function(e, t) { + return (t = t.replace(/[^\u00a0]/g, '')).length < 1 && e + ? ' ' + : t; + }; + (n = (n = n + .replace(/\r\n/g, ' ') + .replace(/\n/g, ' ')).replace(/\s\s+/g, r.bind(r, !0))), + ((null == e.previousSibling && C(e.parentNode)) || + (null != e.previousSibling && C(e.previousSibling))) && + (n = n.replace(/^\s+/, r.bind(r, !1))), + ((null == e.nextSibling && C(e.parentNode)) || + (null != e.nextSibling && C(e.nextSibling))) && + (n = n.replace(/\s+$/, r.bind(r, !1))); + } + return t.insert(n); + } + (O.DEFAULTS = { matchers: [], matchVisual: !0 }), + (t.default = O), + (t.matchAttributor = P), + (t.matchBlot = D), + (t.matchNewline = j), + (t.matchSpacing = z), + (t.matchText = N); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r, + o = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + i = function e(t, n, r) { + null === t && (t = Function.prototype); + var o = Object.getOwnPropertyDescriptor(t, n); + if (void 0 === o) { + var i = Object.getPrototypeOf(t); + return null === i ? void 0 : e(i, n, r); + } + if ('value' in o) return o.value; + var a = o.get; + return void 0 !== a ? a.call(r) : void 0; + }, + a = n(6), + s = (function(e) { + function t() { + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( + this, + (t.__proto__ || Object.getPrototypeOf(t)).apply( + this, + arguments + ) + ) + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + o( + t, + [ + { + key: 'optimize', + value: function(e) { + i( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'optimize', + this + ).call(this, e), + this.domNode.tagName !== + this.statics.tagName[0] && + this.replaceWith(this.statics.blotName); + } + } + ], + [ + { + key: 'create', + value: function() { + return i( + t.__proto__ || Object.getPrototypeOf(t), + 'create', + this + ).call(this); + } + }, + { + key: 'formats', + value: function() { + return !0; + } + } + ] + ), + t + ); + })(((r = a) && r.__esModule ? r : { default: r }).default); + (s.blotName = 'bold'), + (s.tagName = ['STRONG', 'B']), + (t.default = s); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.addControls = t.default = void 0); + var r = function(e, t) { + if (Array.isArray(e)) return e; + if (Symbol.iterator in Object(e)) + return (function(e, t) { + var n = [], + r = !0, + o = !1, + i = void 0; + try { + for ( + var a, s = e[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !t || n.length !== t); + r = !0 + ); + } catch (e) { + (o = !0), (i = e); + } finally { + try { + !r && s.return && s.return(); + } finally { + if (o) throw i; + } + } + return n; + })(e, t); + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' + ); + }, + o = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + i = l(n(2)), + a = l(n(0)), + s = l(n(5)), + c = l(n(10)), + u = l(n(9)); + function l(e) { + return e && e.__esModule ? e : { default: e }; + } + function f(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || ('object' != typeof t && 'function' != typeof t) + ? e + : t; + } + var d = (0, c.default)('quill:toolbar'), + p = (function(e) { + function t(e, n) { + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t); + var o, + i = f( + this, + (t.__proto__ || Object.getPrototypeOf(t)).call( + this, + e, + n + ) + ); + if (Array.isArray(i.options.container)) { + var a = document.createElement('div'); + g(a, i.options.container), + e.container.parentNode.insertBefore(a, e.container), + (i.container = a); + } else + 'string' == typeof i.options.container + ? (i.container = document.querySelector( + i.options.container + )) + : (i.container = i.options.container); + return i.container instanceof HTMLElement + ? (i.container.classList.add('ql-toolbar'), + (i.controls = []), + (i.handlers = {}), + Object.keys(i.options.handlers).forEach(function(e) { + i.addHandler(e, i.options.handlers[e]); + }), + [].forEach.call( + i.container.querySelectorAll('button, select'), + function(e) { + i.attach(e); + } + ), + i.quill.on(s.default.events.EDITOR_CHANGE, function( + e, + t + ) { + e === s.default.events.SELECTION_CHANGE && + i.update(t); + }), + i.quill.on( + s.default.events.SCROLL_OPTIMIZE, + function() { + var e = i.quill.selection.getRange(), + t = r(e, 1)[0]; + i.update(t); + } + ), + i) + : ((o = d.error( + 'Container required for toolbar', + i.options + )), + f(i, o)); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + o(t, [ + { + key: 'addHandler', + value: function(e, t) { + this.handlers[e] = t; + } + }, + { + key: 'attach', + value: function(e) { + var t = this, + n = [].find.call(e.classList, function(e) { + return 0 === e.indexOf('ql-'); + }); + if (n) { + if ( + ((n = n.slice('ql-'.length)), + 'BUTTON' === e.tagName && + e.setAttribute('type', 'button'), + null == this.handlers[n]) + ) { + if ( + null != this.quill.scroll.whitelist && + null == this.quill.scroll.whitelist[n] + ) + return void d.warn( + 'ignoring attaching to disabled format', + n, + e + ); + if (null == a.default.query(n)) + return void d.warn( + 'ignoring attaching to nonexistent format', + n, + e + ); + } + var o = + 'SELECT' === e.tagName ? 'change' : 'click'; + e.addEventListener(o, function(o) { + var c = void 0; + if ('SELECT' === e.tagName) { + if (e.selectedIndex < 0) return; + var u = e.options[e.selectedIndex]; + c = + !u.hasAttribute('selected') && + (u.value || !1); + } else (c = !e.classList.contains('ql-active') && (e.value || !e.hasAttribute('value'))), o.preventDefault(); + t.quill.focus(); + var l = t.quill.selection.getRange(), + f = r(l, 1)[0]; + if (null != t.handlers[n]) + t.handlers[n].call(t, c); + else if ( + a.default.query(n).prototype instanceof + a.default.Embed + ) { + if (!(c = prompt('Enter ' + n))) return; + t.quill.updateContents( + new i.default() + .retain(f.index) + .delete(f.length) + .insert( + (function(e, t, n) { + return ( + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), + e + ); + })({}, n, c) + ), + s.default.sources.USER + ); + } else + t.quill.format(n, c, s.default.sources.USER); + t.update(f); + }), + this.controls.push([n, e]); + } + } + }, + { + key: 'update', + value: function(e) { + var t = null == e ? {} : this.quill.getFormat(e); + this.controls.forEach(function(n) { + var o = r(n, 2), + i = o[0], + a = o[1]; + if ('SELECT' === a.tagName) { + var s = void 0; + if (null == e) s = null; + else if (null == t[i]) + s = a.querySelector('option[selected]'); + else if (!Array.isArray(t[i])) { + var c = t[i]; + 'string' == typeof c && + (c = c.replace(/\"/g, '\\"')), + (s = a.querySelector( + 'option[value="' + c + '"]' + )); + } + null == s + ? ((a.value = ''), (a.selectedIndex = -1)) + : (s.selected = !0); + } else if (null == e) + a.classList.remove('ql-active'); + else if (a.hasAttribute('value')) { + var u = + t[i] === a.getAttribute('value') || + (null != t[i] && + t[i].toString() === + a.getAttribute('value')) || + (null == t[i] && !a.getAttribute('value')); + a.classList.toggle('ql-active', u); + } else + a.classList.toggle('ql-active', null != t[i]); + }); + } + } + ]), + t + ); + })(u.default); + function h(e, t, n) { + var r = document.createElement('button'); + r.setAttribute('type', 'button'), + r.classList.add('ql-' + t), + null != n && (r.value = n), + e.appendChild(r); + } + function g(e, t) { + Array.isArray(t[0]) || (t = [t]), + t.forEach(function(t) { + var n = document.createElement('span'); + n.classList.add('ql-formats'), + t.forEach(function(e) { + if ('string' == typeof e) h(n, e); + else { + var t = Object.keys(e)[0], + r = e[t]; + Array.isArray(r) + ? (function(e, t, n) { + var r = document.createElement('select'); + r.classList.add('ql-' + t), + n.forEach(function(e) { + var t = document.createElement('option'); + !1 !== e + ? t.setAttribute('value', e) + : t.setAttribute( + 'selected', + 'selected' + ), + r.appendChild(t); + }), + e.appendChild(r); + })(n, t, r) + : h(n, t, r); + } + }), + e.appendChild(n); + }); + } + (p.DEFAULTS = {}), + (p.DEFAULTS = { + container: null, + handlers: { + clean: function() { + var e = this, + t = this.quill.getSelection(); + if (null != t) + if (0 == t.length) { + var n = this.quill.getFormat(); + Object.keys(n).forEach(function(t) { + null != + a.default.query(t, a.default.Scope.INLINE) && + e.quill.format(t, !1); + }); + } else + this.quill.removeFormat(t, s.default.sources.USER); + }, + direction: function(e) { + var t = this.quill.getFormat().align; + 'rtl' === e && null == t + ? this.quill.format( + 'align', + 'right', + s.default.sources.USER + ) + : e || + 'right' !== t || + this.quill.format( + 'align', + !1, + s.default.sources.USER + ), + this.quill.format( + 'direction', + e, + s.default.sources.USER + ); + }, + indent: function(e) { + var t = this.quill.getSelection(), + n = this.quill.getFormat(t), + r = parseInt(n.indent || 0); + if ('+1' === e || '-1' === e) { + var o = '+1' === e ? 1 : -1; + 'rtl' === n.direction && (o *= -1), + this.quill.format( + 'indent', + r + o, + s.default.sources.USER + ); + } + }, + link: function(e) { + !0 === e && (e = prompt('Enter link URL:')), + this.quill.format('link', e, s.default.sources.USER); + }, + list: function(e) { + var t = this.quill.getSelection(), + n = this.quill.getFormat(t); + 'check' === e + ? 'checked' === n.list || 'unchecked' === n.list + ? this.quill.format( + 'list', + !1, + s.default.sources.USER + ) + : this.quill.format( + 'list', + 'unchecked', + s.default.sources.USER + ) + : this.quill.format( + 'list', + e, + s.default.sources.USER + ); + } + } + }), + (t.default = p), + (t.addControls = g); + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r, + o = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + i = function e(t, n, r) { + null === t && (t = Function.prototype); + var o = Object.getOwnPropertyDescriptor(t, n); + if (void 0 === o) { + var i = Object.getPrototypeOf(t); + return null === i ? void 0 : e(i, n, r); + } + if ('value' in o) return o.value; + var a = o.get; + return void 0 !== a ? a.call(r) : void 0; + }, + a = n(28), + s = (function(e) { + function t(e, n) { + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t); + var r = (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( + this, + (t.__proto__ || Object.getPrototypeOf(t)).call(this, e) + ); + return ( + (r.label.innerHTML = n), + r.container.classList.add('ql-color-picker'), + [].slice + .call( + r.container.querySelectorAll('.ql-picker-item'), + 0, + 7 + ) + .forEach(function(e) { + e.classList.add('ql-primary'); + }), + r + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + o(t, [ + { + key: 'buildItem', + value: function(e) { + var n = i( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'buildItem', + this + ).call(this, e); + return ( + (n.style.backgroundColor = + e.getAttribute('value') || ''), + n + ); + } + }, + { + key: 'selectItem', + value: function(e, n) { + i( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'selectItem', + this + ).call(this, e, n); + var r = this.label.querySelector('.ql-color-label'), + o = (e && e.getAttribute('data-value')) || ''; + r && + ('line' === r.tagName + ? (r.style.stroke = o) + : (r.style.fill = o)); + } + } + ]), + t + ); + })(((r = a) && r.__esModule ? r : { default: r }).default); + t.default = s; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r, + o = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + i = n(28), + a = (function(e) { + function t(e, n) { + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t); + var r = (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( + this, + (t.__proto__ || Object.getPrototypeOf(t)).call(this, e) + ); + return ( + r.container.classList.add('ql-icon-picker'), + [].forEach.call( + r.container.querySelectorAll('.ql-picker-item'), + function(e) { + e.innerHTML = n[e.getAttribute('data-value') || '']; + } + ), + (r.defaultItem = r.container.querySelector( + '.ql-selected' + )), + r.selectItem(r.defaultItem), + r + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + o(t, [ + { + key: 'selectItem', + value: function(e, n) { + (function e(t, n, r) { + null === t && (t = Function.prototype); + var o = Object.getOwnPropertyDescriptor(t, n); + if (void 0 === o) { + var i = Object.getPrototypeOf(t); + return null === i ? void 0 : e(i, n, r); + } + if ('value' in o) return o.value; + var a = o.get; + return void 0 !== a ? a.call(r) : void 0; + })( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'selectItem', + this + ).call(this, e, n), + (e = e || this.defaultItem), + (this.label.innerHTML = e.innerHTML); + } + } + ]), + t + ); + })(((r = i) && r.__esModule ? r : { default: r }).default); + t.default = a; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + o = (function() { + function e(t, n) { + var r = this; + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, e), + (this.quill = t), + (this.boundsContainer = n || document.body), + (this.root = t.addContainer('ql-tooltip')), + (this.root.innerHTML = this.constructor.TEMPLATE), + this.quill.root === this.quill.scrollingContainer && + this.quill.root.addEventListener( + 'scroll', + function() { + r.root.style.marginTop = + -1 * r.quill.root.scrollTop + 'px'; + } + ), + this.hide(); + } + return ( + r(e, [ + { + key: 'hide', + value: function() { + this.root.classList.add('ql-hidden'); + } + }, + { + key: 'position', + value: function(e) { + var t = + e.left + + e.width / 2 - + this.root.offsetWidth / 2, + n = e.bottom + this.quill.root.scrollTop; + (this.root.style.left = t + 'px'), + (this.root.style.top = n + 'px'), + this.root.classList.remove('ql-flip'); + var r = this.boundsContainer.getBoundingClientRect(), + o = this.root.getBoundingClientRect(), + i = 0; + if ( + (o.right > r.right && + ((i = r.right - o.right), + (this.root.style.left = t + i + 'px')), + o.left < r.left && + ((i = r.left - o.left), + (this.root.style.left = t + i + 'px')), + o.bottom > r.bottom) + ) { + var a = o.bottom - o.top, + s = e.bottom - e.top + a; + (this.root.style.top = n - s + 'px'), + this.root.classList.add('ql-flip'); + } + return i; + } + }, + { + key: 'show', + value: function() { + this.root.classList.remove('ql-editing'), + this.root.classList.remove('ql-hidden'); + } + } + ]), + e + ); + })(); + t.default = o; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = function(e, t) { + if (Array.isArray(e)) return e; + if (Symbol.iterator in Object(e)) + return (function(e, t) { + var n = [], + r = !0, + o = !1, + i = void 0; + try { + for ( + var a, s = e[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !t || n.length !== t); + r = !0 + ); + } catch (e) { + (o = !0), (i = e); + } finally { + try { + !r && s.return && s.return(); + } finally { + if (o) throw i; + } + } + return n; + })(e, t); + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' + ); + }, + o = function e(t, n, r) { + null === t && (t = Function.prototype); + var o = Object.getOwnPropertyDescriptor(t, n); + if (void 0 === o) { + var i = Object.getPrototypeOf(t); + return null === i ? void 0 : e(i, n, r); + } + if ('value' in o) return o.value; + var a = o.get; + return void 0 !== a ? a.call(r) : void 0; + }, + i = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + a = p(n(3)), + s = p(n(8)), + c = n(43), + u = p(c), + l = p(n(27)), + f = n(15), + d = p(n(41)); + function p(e) { + return e && e.__esModule ? e : { default: e }; + } + function h(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + } + function g(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || ('object' != typeof t && 'function' != typeof t) + ? e + : t; + } + function m(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + } + var b = [ + [{ header: ['1', '2', '3', !1] }], + ['bold', 'italic', 'underline', 'link'], + [{ list: 'ordered' }, { list: 'bullet' }], + ['clean'] + ], + y = (function(e) { + function t(e, n) { + h(this, t), + null != n.modules.toolbar && + null == n.modules.toolbar.container && + (n.modules.toolbar.container = b); + var r = g( + this, + (t.__proto__ || Object.getPrototypeOf(t)).call( + this, + e, + n + ) + ); + return r.quill.container.classList.add('ql-snow'), r; + } + return ( + m(t, e), + i(t, [ + { + key: 'extendToolbar', + value: function(e) { + e.container.classList.add('ql-snow'), + this.buildButtons( + [].slice.call( + e.container.querySelectorAll('button') + ), + d.default + ), + this.buildPickers( + [].slice.call( + e.container.querySelectorAll('select') + ), + d.default + ), + (this.tooltip = new v( + this.quill, + this.options.bounds + )), + e.container.querySelector('.ql-link') && + this.quill.keyboard.addBinding( + { key: 'K', shortKey: !0 }, + function(t, n) { + e.handlers.link.call(e, !n.format.link); + } + ); + } + } + ]), + t + ); + })(u.default); + y.DEFAULTS = (0, a.default)(!0, {}, u.default.DEFAULTS, { + modules: { + toolbar: { + handlers: { + link: function(e) { + if (e) { + var t = this.quill.getSelection(); + if (null == t || 0 == t.length) return; + var n = this.quill.getText(t); + /^\S+@\S+\.\S+$/.test(n) && + 0 !== n.indexOf('mailto:') && + (n = 'mailto:' + n), + this.quill.theme.tooltip.edit('link', n); + } else this.quill.format('link', !1); + } + } + } } - } else if ( - ((t = o.L).C && - ((t.C = !1), (o.C = !0), Nw(this, o), (t = o.L)), - (t.L && t.L.C) || (t.R && t.R.C)) - ) { - (t.L && t.L.C) || - ((t.R.C = !1), (t.C = !0), zw(this, t), (t = o.L)), - (t.C = o.C), - (o.C = t.L.C = !1), - Nw(this, o), - (e = this._); - break; + }); + var v = (function(e) { + function t(e, n) { + h(this, t); + var r = g( + this, + (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n) + ); + return ( + (r.preview = r.root.querySelector('a.ql-preview')), r + ); + } + return ( + m(t, e), + i(t, [ + { + key: 'listen', + value: function() { + var e = this; + o( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'listen', + this + ).call(this), + this.root + .querySelector('a.ql-action') + .addEventListener('click', function(t) { + e.root.classList.contains('ql-editing') + ? e.save() + : e.edit('link', e.preview.textContent), + t.preventDefault(); + }), + this.root + .querySelector('a.ql-remove') + .addEventListener('click', function(t) { + if (null != e.linkRange) { + var n = e.linkRange; + e.restoreFocus(), + e.quill.formatText( + n, + 'link', + !1, + s.default.sources.USER + ), + delete e.linkRange; + } + t.preventDefault(), e.hide(); + }), + this.quill.on( + s.default.events.SELECTION_CHANGE, + function(t, n, o) { + if (null != t) { + if ( + 0 === t.length && + o === s.default.sources.USER + ) { + var i = e.quill.scroll.descendant( + l.default, + t.index + ), + a = r(i, 2), + c = a[0], + u = a[1]; + if (null != c) { + e.linkRange = new f.Range( + t.index - u, + c.length() + ); + var d = l.default.formats(c.domNode); + return ( + (e.preview.textContent = d), + e.preview.setAttribute('href', d), + e.show(), + void e.position( + e.quill.getBounds(e.linkRange) + ) + ); + } + } else delete e.linkRange; + e.hide(); + } + } + ); + } + }, + { + key: 'show', + value: function() { + o( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'show', + this + ).call(this), + this.root.removeAttribute('data-mode'); + } + } + ]), + t + ); + })(c.BaseTooltip); + (v.TEMPLATE = [ + '', + '', + '', + '' + ].join('')), + (t.default = y); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = z(n(29)), + o = n(36), + i = n(38), + a = n(64), + s = z(n(65)), + c = z(n(66)), + u = n(67), + l = z(u), + f = n(37), + d = n(26), + p = n(39), + h = n(40), + g = z(n(56)), + m = z(n(68)), + b = z(n(27)), + y = z(n(69)), + v = z(n(70)), + _ = z(n(71)), + w = z(n(72)), + x = z(n(73)), + M = n(13), + k = z(M), + S = z(n(74)), + O = z(n(75)), + E = z(n(57)), + A = z(n(41)), + T = z(n(28)), + C = z(n(59)), + L = z(n(60)), + P = z(n(61)), + D = z(n(108)), + j = z(n(62)); + function z(e) { + return e && e.__esModule ? e : { default: e }; + } + r.default.register( + { + 'attributors/attribute/direction': i.DirectionAttribute, + 'attributors/class/align': o.AlignClass, + 'attributors/class/background': f.BackgroundClass, + 'attributors/class/color': d.ColorClass, + 'attributors/class/direction': i.DirectionClass, + 'attributors/class/font': p.FontClass, + 'attributors/class/size': h.SizeClass, + 'attributors/style/align': o.AlignStyle, + 'attributors/style/background': f.BackgroundStyle, + 'attributors/style/color': d.ColorStyle, + 'attributors/style/direction': i.DirectionStyle, + 'attributors/style/font': p.FontStyle, + 'attributors/style/size': h.SizeStyle + }, + !0 + ), + r.default.register( + { + 'formats/align': o.AlignClass, + 'formats/direction': i.DirectionClass, + 'formats/indent': a.IndentClass, + 'formats/background': f.BackgroundStyle, + 'formats/color': d.ColorStyle, + 'formats/font': p.FontClass, + 'formats/size': h.SizeClass, + 'formats/blockquote': s.default, + 'formats/code-block': k.default, + 'formats/header': c.default, + 'formats/list': l.default, + 'formats/bold': g.default, + 'formats/code': M.Code, + 'formats/italic': m.default, + 'formats/link': b.default, + 'formats/script': y.default, + 'formats/strike': v.default, + 'formats/underline': _.default, + 'formats/image': w.default, + 'formats/video': x.default, + 'formats/list/item': u.ListItem, + 'modules/formula': S.default, + 'modules/syntax': O.default, + 'modules/toolbar': E.default, + 'themes/bubble': D.default, + 'themes/snow': j.default, + 'ui/icons': A.default, + 'ui/picker': T.default, + 'ui/icon-picker': L.default, + 'ui/color-picker': C.default, + 'ui/tooltip': P.default + }, + !0 + ), + (t.default = r.default); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.IndentClass = void 0); + var r, + o = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + i = function e(t, n, r) { + null === t && (t = Function.prototype); + var o = Object.getOwnPropertyDescriptor(t, n); + if (void 0 === o) { + var i = Object.getPrototypeOf(t); + return null === i ? void 0 : e(i, n, r); + } + if ('value' in o) return o.value; + var a = o.get; + return void 0 !== a ? a.call(r) : void 0; + }, + a = n(0), + s = (r = a) && r.__esModule ? r : { default: r }, + c = new ((function(e) { + function t() { + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( + this, + (t.__proto__ || Object.getPrototypeOf(t)).apply( + this, + arguments + ) + ) + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + o(t, [ + { + key: 'add', + value: function(e, n) { + if ('+1' === n || '-1' === n) { + var r = this.value(e) || 0; + n = '+1' === n ? r + 1 : r - 1; + } + return 0 === n + ? (this.remove(e), !0) + : i( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'add', + this + ).call(this, e, n); + } + }, + { + key: 'canAdd', + value: function(e, n) { + return ( + i( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'canAdd', + this + ).call(this, e, n) || + i( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'canAdd', + this + ).call(this, e, parseInt(n)) + ); + } + }, + { + key: 'value', + value: function(e) { + return ( + parseInt( + i( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'value', + this + ).call(this, e) + ) || void 0 + ); + } + } + ]), + t + ); + })(s.default.Attributor.Class))('indent', 'ql-indent', { + scope: s.default.Scope.BLOCK, + whitelist: [1, 2, 3, 4, 5, 6, 7, 8] + }); + t.IndentClass = c; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r, + o = n(4), + i = (function(e) { + function t() { + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( + this, + (t.__proto__ || Object.getPrototypeOf(t)).apply( + this, + arguments + ) + ) + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + t + ); + })(((r = o) && r.__esModule ? r : { default: r }).default); + (i.blotName = 'blockquote'), + (i.tagName = 'blockquote'), + (t.default = i); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r, + o = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + i = n(4), + a = (function(e) { + function t() { + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( + this, + (t.__proto__ || Object.getPrototypeOf(t)).apply( + this, + arguments + ) + ) + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + o(t, null, [ + { + key: 'formats', + value: function(e) { + return this.tagName.indexOf(e.tagName) + 1; + } + } + ]), + t + ); + })(((r = i) && r.__esModule ? r : { default: r }).default); + (a.blotName = 'header'), + (a.tagName = ['H1', 'H2', 'H3', 'H4', 'H5', 'H6']), + (t.default = a); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = t.ListItem = void 0); + var r = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + o = function e(t, n, r) { + null === t && (t = Function.prototype); + var o = Object.getOwnPropertyDescriptor(t, n); + if (void 0 === o) { + var i = Object.getPrototypeOf(t); + return null === i ? void 0 : e(i, n, r); + } + if ('value' in o) return o.value; + var a = o.get; + return void 0 !== a ? a.call(r) : void 0; + }, + i = c(n(0)), + a = c(n(4)), + s = c(n(25)); + function c(e) { + return e && e.__esModule ? e : { default: e }; } - (t.C = !0), (e = o), (o = o.U); - } while (!e.C); - e && (e.C = !1); - } - } - }; - var Rw = Pw; - function Iw(e, t, n, r) { - var o = [null, null], - i = cM.push(o) - 1; - return ( - (o.left = e), - (o.right = t), - n && qw(o, e, t, n), - r && qw(o, t, e, r), - aM[e.index].halfedges.push(i), - aM[t.index].halfedges.push(i), - o - ); - } - function Fw(e, t, n) { - var r = [t, n]; - return (r.left = e), r; - } - function qw(e, t, n, r) { - e[0] || e[1] - ? e.left === n - ? (e[1] = r) - : (e[0] = r) - : ((e[0] = r), (e.left = t), (e.right = n)); - } - function Bw(e, t, n, r, o) { - var i, - a = e[0], - s = e[1], - c = a[0], - u = a[1], - l = 0, - f = 1, - d = s[0] - c, - p = s[1] - u; - if (((i = t - c), d || !(i > 0))) { - if (((i /= d), d < 0)) { - if (i < l) return; - i < f && (f = i); - } else if (d > 0) { - if (i > f) return; - i > l && (l = i); - } - if (((i = r - c), d || !(i < 0))) { - if (((i /= d), d < 0)) { - if (i > f) return; - i > l && (l = i); - } else if (d > 0) { - if (i < l) return; - i < f && (f = i); - } - if (((i = n - u), p || !(i > 0))) { - if (((i /= p), p < 0)) { - if (i < l) return; - i < f && (f = i); - } else if (p > 0) { - if (i > f) return; - i > l && (l = i); - } - if (((i = o - u), p || !(i < 0))) { - if (((i /= p), p < 0)) { - if (i > f) return; - i > l && (l = i); - } else if (p > 0) { - if (i < l) return; - i < f && (f = i); + function u(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); } - return ( - !(l > 0 || f < 1) || - (l > 0 && (e[0] = [c + l * d, u + l * p]), - f < 1 && (e[1] = [c + f * d, u + f * p]), - !0) - ); - } - } - } - } - } - function Hw(e, t, n, r, o) { - var i = e[1]; - if (i) return !0; - var a, - s, - c = e[0], - u = e.left, - l = e.right, - f = u[0], - d = u[1], - p = l[0], - h = l[1], - g = (f + p) / 2, - m = (d + h) / 2; - if (h === d) { - if (g < t || g >= r) return; - if (f > p) { - if (c) { - if (c[1] >= o) return; - } else c = [g, n]; - i = [g, o]; - } else { - if (c) { - if (c[1] < n) return; - } else c = [g, o]; - i = [g, n]; - } - } else if (((s = m - (a = (f - p) / (h - d)) * g), a < -1 || a > 1)) - if (f > p) { - if (c) { - if (c[1] >= o) return; - } else c = [(n - s) / a, n]; - i = [(o - s) / a, o]; - } else { - if (c) { - if (c[1] < n) return; - } else c = [(o - s) / a, o]; - i = [(n - s) / a, n]; - } - else if (d < h) { - if (c) { - if (c[0] >= r) return; - } else c = [t, a * t + s]; - i = [r, a * r + s]; - } else { - if (c) { - if (c[0] < t) return; - } else c = [r, a * r + s]; - i = [t, a * t + s]; - } - return (e[0] = c), (e[1] = i), !0; - } - function Yw(e, t) { - var n = e.site, - r = t.left, - o = t.right; - return ( - n === o && ((o = r), (r = n)), - o - ? Math.atan2(o[1] - r[1], o[0] - r[0]) - : (n === r ? ((r = t[1]), (o = t[0])) : ((r = t[0]), (o = t[1])), - Math.atan2(r[0] - o[0], o[1] - r[1])) - ); - } - function Ww(e, t) { - return t[+(t.left !== e.site)]; - } - function Vw(e, t) { - return t[+(t.left === e.site)]; - } - var Uw, - Xw = []; - function Gw() { - Dw(this), (this.x = this.y = this.arc = this.site = this.cy = null); - } - function Kw(e) { - var t = e.P, - n = e.N; - if (t && n) { - var r = t.site, - o = e.site, - i = n.site; - if (r !== i) { - var a = o[0], - s = o[1], - c = r[0] - a, - u = r[1] - s, - l = i[0] - a, - f = i[1] - s, - d = 2 * (c * f - u * l); - if (!(d >= -lM)) { - var p = c * c + u * u, - h = l * l + f * f, - g = (f * p - u * h) / d, - m = (c * h - l * p) / d, - b = Xw.pop() || new Gw(); - (b.arc = e), - (b.site = o), - (b.x = g + a), - (b.y = (b.cy = m + s) + Math.sqrt(g * g + m * m)), - (e.circle = b); - for (var y = null, v = sM._; v; ) - if (b.y < v.y || (b.y === v.y && b.x <= v.x)) { - if (!v.L) { - y = v.P; - break; + function l(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || ('object' != typeof t && 'function' != typeof t) + ? e + : t; + } + function f(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + } + var d = (function(e) { + function t() { + return ( + u(this, t), + l( + this, + (t.__proto__ || Object.getPrototypeOf(t)).apply( + this, + arguments + ) + ) + ); + } + return ( + f(t, e), + r( + t, + [ + { + key: 'format', + value: function(e, n) { + e !== p.blotName || n + ? o( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'format', + this + ).call(this, e, n) + : this.replaceWith( + i.default.create(this.statics.scope) + ); + } + }, + { + key: 'remove', + value: function() { + null == this.prev && null == this.next + ? this.parent.remove() + : o( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'remove', + this + ).call(this); + } + }, + { + key: 'replaceWith', + value: function(e, n) { + return ( + this.parent.isolate( + this.offset(this.parent), + this.length() + ), + e === this.parent.statics.blotName + ? (this.parent.replaceWith(e, n), this) + : (this.parent.unwrap(), + o( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'replaceWith', + this + ).call(this, e, n)) + ); + } + } + ], + [ + { + key: 'formats', + value: function(e) { + return e.tagName === this.tagName + ? void 0 + : o( + t.__proto__ || Object.getPrototypeOf(t), + 'formats', + this + ).call(this, e); + } + } + ] + ), + t + ); + })(a.default); + (d.blotName = 'list-item'), (d.tagName = 'LI'); + var p = (function(e) { + function t(e) { + u(this, t); + var n = l( + this, + (t.__proto__ || Object.getPrototypeOf(t)).call(this, e) + ), + r = function(t) { + if (t.target.parentNode === e) { + var r = n.statics.formats(e), + o = i.default.find(t.target); + 'checked' === r + ? o.format('list', 'unchecked') + : 'unchecked' === r && o.format('list', 'checked'); + } + }; + return ( + e.addEventListener('touchstart', r), + e.addEventListener('mousedown', r), + n + ); + } + return ( + f(t, e), + r(t, null, [ + { + key: 'create', + value: function(e) { + var n = 'ordered' === e ? 'OL' : 'UL', + r = o( + t.__proto__ || Object.getPrototypeOf(t), + 'create', + this + ).call(this, n); + return ( + ('checked' !== e && 'unchecked' !== e) || + r.setAttribute('data-checked', 'checked' === e), + r + ); + } + }, + { + key: 'formats', + value: function(e) { + return 'OL' === e.tagName + ? 'ordered' + : 'UL' === e.tagName + ? e.hasAttribute('data-checked') + ? 'true' === e.getAttribute('data-checked') + ? 'checked' + : 'unchecked' + : 'bullet' + : void 0; + } + } + ]), + r(t, [ + { + key: 'format', + value: function(e, t) { + this.children.length > 0 && + this.children.tail.format(e, t); + } + }, + { + key: 'formats', + value: function() { + return (function(e, t, n) { + return ( + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), + e + ); + })( + {}, + this.statics.blotName, + this.statics.formats(this.domNode) + ); + } + }, + { + key: 'insertBefore', + value: function(e, n) { + if (e instanceof d) + o( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'insertBefore', + this + ).call(this, e, n); + else { + var r = null == n ? this.length() : n.offset(this), + i = this.split(r); + i.parent.insertBefore(e, i); + } + } + }, + { + key: 'optimize', + value: function(e) { + o( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'optimize', + this + ).call(this, e); + var n = this.next; + null != n && + n.prev === this && + n.statics.blotName === this.statics.blotName && + n.domNode.tagName === this.domNode.tagName && + n.domNode.getAttribute('data-checked') === + this.domNode.getAttribute('data-checked') && + (n.moveChildren(this), n.remove()); + } + }, + { + key: 'replace', + value: function(e) { + if (e.statics.blotName !== this.statics.blotName) { + var n = i.default.create(this.statics.defaultChild); + e.moveChildren(n), this.appendChild(n); + } + o( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'replace', + this + ).call(this, e); + } + } + ]), + t + ); + })(s.default); + (p.blotName = 'list'), + (p.scope = i.default.Scope.BLOCK_BLOT), + (p.tagName = ['OL', 'UL']), + (p.defaultChild = 'list-item'), + (p.allowedChildren = [d]), + (t.ListItem = d), + (t.default = p); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r, + o = n(56), + i = (function(e) { + function t() { + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( + this, + (t.__proto__ || Object.getPrototypeOf(t)).apply( + this, + arguments + ) + ) + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + t + ); + })(((r = o) && r.__esModule ? r : { default: r }).default); + (i.blotName = 'italic'), + (i.tagName = ['EM', 'I']), + (t.default = i); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r, + o = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + i = n(6), + a = (function(e) { + function t() { + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( + this, + (t.__proto__ || Object.getPrototypeOf(t)).apply( + this, + arguments + ) + ) + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + o(t, null, [ + { + key: 'create', + value: function(e) { + return 'super' === e + ? document.createElement('sup') + : 'sub' === e + ? document.createElement('sub') + : (function e(t, n, r) { + null === t && (t = Function.prototype); + var o = Object.getOwnPropertyDescriptor(t, n); + if (void 0 === o) { + var i = Object.getPrototypeOf(t); + return null === i ? void 0 : e(i, n, r); + } + if ('value' in o) return o.value; + var a = o.get; + return void 0 !== a ? a.call(r) : void 0; + })( + t.__proto__ || Object.getPrototypeOf(t), + 'create', + this + ).call(this, e); + } + }, + { + key: 'formats', + value: function(e) { + return 'SUB' === e.tagName + ? 'sub' + : 'SUP' === e.tagName + ? 'super' + : void 0; + } + } + ]), + t + ); + })(((r = i) && r.__esModule ? r : { default: r }).default); + (a.blotName = 'script'), + (a.tagName = ['SUB', 'SUP']), + (t.default = a); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r, + o = n(6), + i = (function(e) { + function t() { + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( + this, + (t.__proto__ || Object.getPrototypeOf(t)).apply( + this, + arguments + ) + ) + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + t + ); + })(((r = o) && r.__esModule ? r : { default: r }).default); + (i.blotName = 'strike'), (i.tagName = 'S'), (t.default = i); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r, + o = n(6), + i = (function(e) { + function t() { + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( + this, + (t.__proto__ || Object.getPrototypeOf(t)).apply( + this, + arguments + ) + ) + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + t + ); + })(((r = o) && r.__esModule ? r : { default: r }).default); + (i.blotName = 'underline'), (i.tagName = 'U'), (t.default = i); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r, + o = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + i = function e(t, n, r) { + null === t && (t = Function.prototype); + var o = Object.getOwnPropertyDescriptor(t, n); + if (void 0 === o) { + var i = Object.getPrototypeOf(t); + return null === i ? void 0 : e(i, n, r); + } + if ('value' in o) return o.value; + var a = o.get; + return void 0 !== a ? a.call(r) : void 0; + }, + a = n(0), + s = (r = a) && r.__esModule ? r : { default: r }, + c = n(27), + u = ['alt', 'height', 'width'], + l = (function(e) { + function t() { + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( + this, + (t.__proto__ || Object.getPrototypeOf(t)).apply( + this, + arguments + ) + ) + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + o( + t, + [ + { + key: 'format', + value: function(e, n) { + u.indexOf(e) > -1 + ? n + ? this.domNode.setAttribute(e, n) + : this.domNode.removeAttribute(e) + : i( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'format', + this + ).call(this, e, n); + } + } + ], + [ + { + key: 'create', + value: function(e) { + var n = i( + t.__proto__ || Object.getPrototypeOf(t), + 'create', + this + ).call(this, e); + return ( + 'string' == typeof e && + n.setAttribute('src', this.sanitize(e)), + n + ); + } + }, + { + key: 'formats', + value: function(e) { + return u.reduce(function(t, n) { + return ( + e.hasAttribute(n) && + (t[n] = e.getAttribute(n)), + t + ); + }, {}); + } + }, + { + key: 'match', + value: function(e) { + return ( + /\.(jpe?g|gif|png)$/.test(e) || + /^data:image\/.+;base64/.test(e) + ); + } + }, + { + key: 'sanitize', + value: function(e) { + return (0, c.sanitize)(e, [ + 'http', + 'https', + 'data' + ]) + ? e + : '//:0'; + } + }, + { + key: 'value', + value: function(e) { + return e.getAttribute('src'); + } + } + ] + ), + t + ); + })(s.default.Embed); + (l.blotName = 'image'), (l.tagName = 'IMG'), (t.default = l); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r, + o = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + i = function e(t, n, r) { + null === t && (t = Function.prototype); + var o = Object.getOwnPropertyDescriptor(t, n); + if (void 0 === o) { + var i = Object.getPrototypeOf(t); + return null === i ? void 0 : e(i, n, r); + } + if ('value' in o) return o.value; + var a = o.get; + return void 0 !== a ? a.call(r) : void 0; + }, + a = n(4), + s = n(27), + c = (r = s) && r.__esModule ? r : { default: r }, + u = ['height', 'width'], + l = (function(e) { + function t() { + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( + this, + (t.__proto__ || Object.getPrototypeOf(t)).apply( + this, + arguments + ) + ) + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + o( + t, + [ + { + key: 'format', + value: function(e, n) { + u.indexOf(e) > -1 + ? n + ? this.domNode.setAttribute(e, n) + : this.domNode.removeAttribute(e) + : i( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'format', + this + ).call(this, e, n); + } + } + ], + [ + { + key: 'create', + value: function(e) { + var n = i( + t.__proto__ || Object.getPrototypeOf(t), + 'create', + this + ).call(this, e); + return ( + n.setAttribute('frameborder', '0'), + n.setAttribute('allowfullscreen', !0), + n.setAttribute('src', this.sanitize(e)), + n + ); + } + }, + { + key: 'formats', + value: function(e) { + return u.reduce(function(t, n) { + return ( + e.hasAttribute(n) && + (t[n] = e.getAttribute(n)), + t + ); + }, {}); + } + }, + { + key: 'sanitize', + value: function(e) { + return c.default.sanitize(e); + } + }, + { + key: 'value', + value: function(e) { + return e.getAttribute('src'); + } + } + ] + ), + t + ); + })(a.BlockEmbed); + (l.blotName = 'video'), + (l.className = 'ql-video'), + (l.tagName = 'IFRAME'), + (t.default = l); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = t.FormulaBlot = void 0); + var r = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + o = s(n(35)), + i = s(n(5)), + a = s(n(9)); + function s(e) { + return e && e.__esModule ? e : { default: e }; + } + function c(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + } + function u(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || ('object' != typeof t && 'function' != typeof t) + ? e + : t; + } + function l(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + } + var f = (function(e) { + function t() { + return ( + c(this, t), + u( + this, + (t.__proto__ || Object.getPrototypeOf(t)).apply( + this, + arguments + ) + ) + ); } - v = v.L; - } else { - if (!v.R) { - y = v; - break; + return ( + l(t, e), + r(t, null, [ + { + key: 'create', + value: function(e) { + var n = (function e(t, n, r) { + null === t && (t = Function.prototype); + var o = Object.getOwnPropertyDescriptor(t, n); + if (void 0 === o) { + var i = Object.getPrototypeOf(t); + return null === i ? void 0 : e(i, n, r); + } + if ('value' in o) return o.value; + var a = o.get; + return void 0 !== a ? a.call(r) : void 0; + })( + t.__proto__ || Object.getPrototypeOf(t), + 'create', + this + ).call(this, e); + return ( + 'string' == typeof e && + (window.katex.render(e, n, { + throwOnError: !1, + errorColor: '#f00' + }), + n.setAttribute('data-value', e)), + n + ); + } + }, + { + key: 'value', + value: function(e) { + return e.getAttribute('data-value'); + } + } + ]), + t + ); + })(o.default); + (f.blotName = 'formula'), + (f.className = 'ql-formula'), + (f.tagName = 'SPAN'); + var d = (function(e) { + function t() { + c(this, t); + var e = u( + this, + (t.__proto__ || Object.getPrototypeOf(t)).call(this) + ); + if (null == window.katex) + throw new Error('Formula module requires KaTeX.'); + return e; } - v = v.R; + return ( + l(t, e), + r(t, null, [ + { + key: 'register', + value: function() { + i.default.register(f, !0); + } + } + ]), + t + ); + })(a.default); + (t.FormulaBlot = f), (t.default = d); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = t.CodeToken = t.CodeBlock = void 0); + var r = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + o = s(n(0)), + i = s(n(5)), + a = s(n(9)); + function s(e) { + return e && e.__esModule ? e : { default: e }; } - sM.insert(y, b), y || (Uw = b); - } - } - } - } - function $w(e) { - var t = e.circle; - t && - (t.P || (Uw = t.N), - sM.remove(t), - Xw.push(t), - Dw(t), - (e.circle = null)); - } - var Qw = []; - function Jw() { - Dw(this), (this.edge = this.site = this.circle = null); - } - function Zw(e) { - var t = Qw.pop() || new Jw(); - return (t.site = e), t; - } - function eM(e) { - $w(e), iM.remove(e), Qw.push(e), Dw(e); - } - function tM(e) { - var t = e.circle, - n = t.x, - r = t.cy, - o = [n, r], - i = e.P, - a = e.N, - s = [e]; - eM(e); - for ( - var c = i; - c.circle && - Math.abs(n - c.circle.x) < uM && - Math.abs(r - c.circle.cy) < uM; - - ) - (i = c.P), s.unshift(c), eM(c), (c = i); - s.unshift(c), $w(c); - for ( - var u = a; - u.circle && - Math.abs(n - u.circle.x) < uM && - Math.abs(r - u.circle.cy) < uM; - - ) - (a = u.N), s.push(u), eM(u), (u = a); - s.push(u), $w(u); - var l, - f = s.length; - for (l = 1; l < f; ++l) - (u = s[l]), (c = s[l - 1]), qw(u.edge, c.site, u.site, o); - (c = s[0]), - ((u = s[f - 1]).edge = Iw(c.site, u.site, null, o)), - Kw(c), - Kw(u); - } - function nM(e) { - for (var t, n, r, o, i = e[0], a = e[1], s = iM._; s; ) - if ((r = rM(s, a) - i) > uM) s = s.L; - else { - if (!((o = i - oM(s, a)) > uM)) { - r > -uM - ? ((t = s.P), (n = s)) - : o > -uM - ? ((t = s), (n = s.N)) - : (t = n = s); - break; - } - if (!s.R) { - t = s; - break; - } - s = s.R; - } - !(function(e) { - aM[e.index] = { site: e, halfedges: [] }; - })(e); - var c = Zw(e); - if ((iM.insert(t, c), t || n)) { - if (t === n) - return ( - $w(t), - (n = Zw(t.site)), - iM.insert(c, n), - (c.edge = n.edge = Iw(t.site, c.site)), - Kw(t), - void Kw(n) - ); - if (n) { - $w(t), $w(n); - var u = t.site, - l = u[0], - f = u[1], - d = e[0] - l, - p = e[1] - f, - h = n.site, - g = h[0] - l, - m = h[1] - f, - b = 2 * (d * m - p * g), - y = d * d + p * p, - v = g * g + m * m, - _ = [(m * y - p * v) / b + l, (d * v - g * y) / b + f]; - qw(n.edge, u, h, _), - (c.edge = Iw(u, e, null, _)), - (n.edge = Iw(e, h, null, _)), - Kw(t), - Kw(n); - } else c.edge = Iw(t.site, c.site); - } - } - function rM(e, t) { - var n = e.site, - r = n[0], - o = n[1], - i = o - t; - if (!i) return r; - var a = e.P; - if (!a) return -1 / 0; - var s = (n = a.site)[0], - c = n[1], - u = c - t; - if (!u) return s; - var l = s - r, - f = 1 / i - 1 / u, - d = l / u; - return f - ? (-d + - Math.sqrt( - d * d - 2 * f * ((l * l) / (-2 * u) - c + u / 2 + o - i / 2) - )) / - f + - r - : (r + s) / 2; - } - function oM(e, t) { - var n = e.N; - if (n) return rM(n, t); - var r = e.site; - return r[1] === t ? r[0] : 1 / 0; - } - var iM, - aM, - sM, - cM, - uM = 1e-6, - lM = 1e-12; - function fM(e, t) { - return t[1] - e[1] || t[0] - e[0]; - } - function dM(e, t) { - var n, - r, - o, - i = e.sort(fM).pop(); - for ( - cM = [], aM = new Array(e.length), iM = new Rw(), sM = new Rw(); - ; - - ) - if ( - ((o = Uw), i && (!o || i[1] < o.y || (i[1] === o.y && i[0] < o.x))) - ) - (i[0] === n && i[1] === r) || (nM(i), (n = i[0]), (r = i[1])), - (i = e.pop()); - else { - if (!o) break; - tM(o.arc); - } - if ( - ((function() { - for (var e, t, n, r, o = 0, i = aM.length; o < i; ++o) - if ((e = aM[o]) && (r = (t = e.halfedges).length)) { - var a = new Array(r), - s = new Array(r); - for (n = 0; n < r; ++n) (a[n] = n), (s[n] = Yw(e, cM[t[n]])); - for ( - a.sort(function(e, t) { - return s[t] - s[e]; + function c(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + } + function u(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || ('object' != typeof t && 'function' != typeof t) + ? e + : t; + } + function l(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + } + var f = (function(e) { + function t() { + return ( + c(this, t), + u( + this, + (t.__proto__ || Object.getPrototypeOf(t)).apply( + this, + arguments + ) + ) + ); + } + return ( + l(t, e), + r(t, [ + { + key: 'replaceWith', + value: function(e) { + (this.domNode.textContent = this.domNode.textContent), + this.attach(), + (function e(t, n, r) { + null === t && (t = Function.prototype); + var o = Object.getOwnPropertyDescriptor(t, n); + if (void 0 === o) { + var i = Object.getPrototypeOf(t); + return null === i ? void 0 : e(i, n, r); + } + if ('value' in o) return o.value; + var a = o.get; + return void 0 !== a ? a.call(r) : void 0; + })( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'replaceWith', + this + ).call(this, e); + } + }, + { + key: 'highlight', + value: function(e) { + var t = this.domNode.textContent; + this.cachedText !== t && + ((t.trim().length > 0 || null == this.cachedText) && + ((this.domNode.innerHTML = e(t)), + this.domNode.normalize(), + this.attach()), + (this.cachedText = t)); + } + } + ]), + t + ); + })(s(n(13)).default); + f.className = 'ql-syntax'; + var d = new o.default.Attributor.Class('token', 'hljs', { + scope: o.default.Scope.INLINE }), - n = 0; - n < r; - ++n - ) - s[n] = t[a[n]]; - for (n = 0; n < r; ++n) t[n] = s[n]; - } - })(), - t) - ) { - var a = +t[0][0], - s = +t[0][1], - c = +t[1][0], - u = +t[1][1]; - !(function(e, t, n, r) { - for (var o, i = cM.length; i--; ) - (Hw((o = cM[i]), e, t, n, r) && - Bw(o, e, t, n, r) && - (Math.abs(o[0][0] - o[1][0]) > uM || - Math.abs(o[0][1] - o[1][1]) > uM)) || - delete cM[i]; - })(a, s, c, u), - (function(e, t, n, r) { - var o, - i, - a, - s, - c, - u, - l, - f, - d, - p, - h, - g, - m = aM.length, - b = !0; - for (o = 0; o < m; ++o) - if ((i = aM[o])) { - for (a = i.site, s = (c = i.halfedges).length; s--; ) - cM[c[s]] || c.splice(s, 1); - for (s = 0, u = c.length; s < u; ) - (h = (p = Vw(i, cM[c[s]]))[0]), - (g = p[1]), - (f = (l = Ww(i, cM[c[++s % u]]))[0]), - (d = l[1]), - (Math.abs(h - f) > uM || Math.abs(g - d) > uM) && - (c.splice( - s, - 0, - cM.push( - Fw( - a, - p, - Math.abs(h - e) < uM && r - g > uM - ? [e, Math.abs(f - e) < uM ? d : r] - : Math.abs(g - r) < uM && n - h > uM - ? [Math.abs(d - r) < uM ? f : n, r] - : Math.abs(h - n) < uM && g - t > uM - ? [n, Math.abs(f - n) < uM ? d : t] - : Math.abs(g - t) < uM && h - e > uM - ? [Math.abs(d - t) < uM ? f : e, t] - : null - ) - ) - 1 + p = (function(e) { + function t(e, n) { + c(this, t); + var r = u( + this, + (t.__proto__ || Object.getPrototypeOf(t)).call( + this, + e, + n + ) + ); + if ('function' != typeof r.options.highlight) + throw new Error( + 'Syntax module requires highlight.js. Please include the library on the page before Quill.' + ); + var o = null; + return ( + r.quill.on( + i.default.events.SCROLL_OPTIMIZE, + function() { + clearTimeout(o), + (o = setTimeout(function() { + r.highlight(), (o = null); + }, r.options.interval)); + } ), - ++u); - u && (b = !1); + r.highlight(), + r + ); + } + return ( + l(t, e), + r(t, null, [ + { + key: 'register', + value: function() { + i.default.register(d, !0), + i.default.register(f, !0); + } + } + ]), + r(t, [ + { + key: 'highlight', + value: function() { + var e = this; + if (!this.quill.selection.composing) { + this.quill.update(i.default.sources.USER); + var t = this.quill.getSelection(); + this.quill.scroll + .descendants(f) + .forEach(function(t) { + t.highlight(e.options.highlight); + }), + this.quill.update(i.default.sources.SILENT), + null != t && + this.quill.setSelection( + t, + i.default.sources.SILENT + ); + } + } + } + ]), + t + ); + })(a.default); + (p.DEFAULTS = { + highlight: + null == window.hljs + ? null + : function(e) { + return window.hljs.highlightAuto(e).value; + }, + interval: 1e3 + }), + (t.CodeBlock = f), + (t.CodeToken = d), + (t.default = p); + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t) { + e.exports = + ' '; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = t.BubbleTooltip = void 0); + var r = function e(t, n, r) { + null === t && (t = Function.prototype); + var o = Object.getOwnPropertyDescriptor(t, n); + if (void 0 === o) { + var i = Object.getPrototypeOf(t); + return null === i ? void 0 : e(i, n, r); + } + if ('value' in o) return o.value; + var a = o.get; + return void 0 !== a ? a.call(r) : void 0; + }, + o = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + i = f(n(3)), + a = f(n(8)), + s = n(43), + c = f(s), + u = n(15), + l = f(n(41)); + function f(e) { + return e && e.__esModule ? e : { default: e }; } - if (b) { - var y, - v, - _, - x = 1 / 0; - for (o = 0, b = null; o < m; ++o) - (i = aM[o]) && - (_ = (y = (a = i.site)[0] - e) * y + (v = a[1] - t) * v) < - x && - ((x = _), (b = i)); - if (b) { - var w = [e, t], - M = [e, r], - k = [n, r], - S = [n, t]; - b.halfedges.push( - cM.push(Fw((a = b.site), w, M)) - 1, - cM.push(Fw(a, M, k)) - 1, - cM.push(Fw(a, k, S)) - 1, - cM.push(Fw(a, S, w)) - 1 - ); + function d(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); } - } - for (o = 0; o < m; ++o) - (i = aM[o]) && (i.halfedges.length || delete aM[o]); - })(a, s, c, u); - } - (this.edges = cM), (this.cells = aM), (iM = sM = cM = aM = null); - } - dM.prototype = { - constructor: dM, - polygons: function() { - var e = this.edges; - return this.cells.map(function(t) { - var n = t.halfedges.map(function(n) { - return Ww(t, e[n]); - }); - return (n.data = t.site.data), n; - }); - }, - triangles: function() { - var e = [], - t = this.edges; - return ( - this.cells.forEach(function(n, r) { - if ((i = (o = n.halfedges).length)) - for ( - var o, - i, - a, - s, - c, - u, - l = n.site, - f = -1, - d = t[o[i - 1]], - p = d.left === l ? d.right : d.left; - ++f < i; - - ) - (a = p), - (p = (d = t[o[f]]).left === l ? d.right : d.left), - a && - p && - r < a.index && - r < p.index && - ((c = a), - (u = p), - ((s = l)[0] - u[0]) * (c[1] - s[1]) - - (s[0] - c[0]) * (u[1] - s[1]) < - 0) && - e.push([l.data, a.data, p.data]); - }), - e - ); - }, - links: function() { - return this.edges - .filter(function(e) { - return e.right; - }) - .map(function(e) { - return { source: e.left.data, target: e.right.data }; - }); - }, - find: function(e, t, n) { - for ( - var r, o, i = this, a = i._found || 0, s = i.cells.length; - !(o = i.cells[a]); - - ) - if (++a >= s) return null; - var c = e - o.site[0], - u = t - o.site[1], - l = c * c + u * u; - do { - (o = i.cells[(r = a)]), - (a = null), - o.halfedges.forEach(function(n) { - var r = i.edges[n], - s = r.left; - if ((s !== o.site && s) || (s = r.right)) { - var c = e - s[0], - u = t - s[1], - f = c * c + u * u; - f < l && ((l = f), (a = s.index)); + function p(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || ('object' != typeof t && 'function' != typeof t) + ? e + : t; } - }); - } while (null !== a); - return (i._found = r), null == n || l <= n * n ? o.site : null; - } - }; - var pM = function() { - var e = Cw, - t = Lw, - n = null; - function r(r) { - return new dM( - r.map(function(n, o) { - var i = [ - Math.round(e(n, o, r) / uM) * uM, - Math.round(t(n, o, r) / uM) * uM - ]; - return (i.index = o), (i.data = n), i; - }), + function h(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + } + var g = [ + ['bold', 'italic', 'link'], + [{ header: 1 }, { header: 2 }, 'blockquote'] + ], + m = (function(e) { + function t(e, n) { + d(this, t), + null != n.modules.toolbar && + null == n.modules.toolbar.container && + (n.modules.toolbar.container = g); + var r = p( + this, + (t.__proto__ || Object.getPrototypeOf(t)).call( + this, + e, + n + ) + ); + return r.quill.container.classList.add('ql-bubble'), r; + } + return ( + h(t, e), + o(t, [ + { + key: 'extendToolbar', + value: function(e) { + (this.tooltip = new b( + this.quill, + this.options.bounds + )), + this.tooltip.root.appendChild(e.container), + this.buildButtons( + [].slice.call( + e.container.querySelectorAll('button') + ), + l.default + ), + this.buildPickers( + [].slice.call( + e.container.querySelectorAll('select') + ), + l.default + ); + } + } + ]), + t + ); + })(c.default); + m.DEFAULTS = (0, i.default)(!0, {}, c.default.DEFAULTS, { + modules: { + toolbar: { + handlers: { + link: function(e) { + e + ? this.quill.theme.tooltip.edit() + : this.quill.format('link', !1); + } + } + } + } + }); + var b = (function(e) { + function t(e, n) { + d(this, t); + var r = p( + this, + (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n) + ); + return ( + r.quill.on(a.default.events.EDITOR_CHANGE, function( + e, + t, + n, + o + ) { + if (e === a.default.events.SELECTION_CHANGE) + if ( + null != t && + t.length > 0 && + o === a.default.sources.USER + ) { + r.show(), + (r.root.style.left = '0px'), + (r.root.style.width = ''), + (r.root.style.width = r.root.offsetWidth + 'px'); + var i = r.quill.getLines(t.index, t.length); + if (1 === i.length) + r.position(r.quill.getBounds(t)); + else { + var s = i[i.length - 1], + c = r.quill.getIndex(s), + l = Math.min( + s.length() - 1, + t.index + t.length - c + ), + f = r.quill.getBounds(new u.Range(c, l)); + r.position(f); + } + } else + document.activeElement !== r.textbox && + r.quill.hasFocus() && + r.hide(); + }), + r + ); + } + return ( + h(t, e), + o(t, [ + { + key: 'listen', + value: function() { + var e = this; + r( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'listen', + this + ).call(this), + this.root + .querySelector('.ql-close') + .addEventListener('click', function() { + e.root.classList.remove('ql-editing'); + }), + this.quill.on( + a.default.events.SCROLL_OPTIMIZE, + function() { + setTimeout(function() { + if (!e.root.classList.contains('ql-hidden')) { + var t = e.quill.getSelection(); + null != t && + e.position(e.quill.getBounds(t)); + } + }, 1); + } + ); + } + }, + { + key: 'cancel', + value: function() { + this.show(); + } + }, + { + key: 'position', + value: function(e) { + var n = r( + t.prototype.__proto__ || + Object.getPrototypeOf(t.prototype), + 'position', + this + ).call(this, e), + o = this.root.querySelector('.ql-tooltip-arrow'); + if (((o.style.marginLeft = ''), 0 === n)) return n; + o.style.marginLeft = + -1 * n - o.offsetWidth / 2 + 'px'; + } + } + ]), + t + ); + })(s.BaseTooltip); + (b.TEMPLATE = [ + '', + '
', + '', + '', + '
' + ].join('')), + (t.BubbleTooltip = b), + (t.default = m); + }, + function(e, t, n) { + e.exports = n(63); + } + ]).default; + }), + (e.exports = n()); + }.call(this, n(161).Buffer)); + }, + function(e, t, n) { + 'use strict'; + var r = n(0), + o = n(853); + if (void 0 === r) + throw Error( + 'create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.' + ); + var i = new r.Component().updater; + e.exports = o(r.Component, r.isValidElement, i); + }, + function(e, t, n) { + 'use strict'; + var r = n(446), + o = { + createEditor: function(e, t) { + var n = new r(e, t); + return ( + void 0 !== t.tabIndex && this.setEditorTabIndex(n, t.tabIndex), + this.hookEditor(n), n ); - } - return ( - (r.polygons = function(e) { - return r(e).polygons(); - }), - (r.links = function(e) { - return r(e).links(); - }), - (r.triangles = function(e) { - return r(e).triangles(); - }), - (r.x = function(t) { - return arguments.length - ? ((e = 'function' == typeof t ? t : Tw(+t)), r) - : e; - }), - (r.y = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : Tw(+e)), r) - : t; - }), - (r.extent = function(e) { - return arguments.length - ? ((n = - null == e - ? null - : [ - [+e[0][0], +e[0][1]], - [+e[1][0], +e[1][1]] - ]), - r) - : n && [ - [n[0][0], n[0][1]], - [n[1][0], n[1][1]] - ]; - }), - (r.size = function(e) { - return arguments.length - ? ((n = - null == e - ? null - : [ - [0, 0], - [+e[0], +e[1]] - ]), - r) - : n && [n[1][0] - n[0][0], n[1][1] - n[0][1]]; - }), - r - ); - }, - hM = function(e) { - return function() { - return e; - }; - }; - function gM(e, t, n) { - (this.target = e), (this.type = t), (this.transform = n); - } - function mM(e, t, n) { - (this.k = e), (this.x = t), (this.y = n); - } - mM.prototype = { - constructor: mM, - scale: function(e) { - return 1 === e ? this : new mM(this.k * e, this.x, this.y); - }, - translate: function(e, t) { - return (0 === e) & (0 === t) - ? this - : new mM(this.k, this.x + this.k * e, this.y + this.k * t); - }, - apply: function(e) { - return [e[0] * this.k + this.x, e[1] * this.k + this.y]; - }, - applyX: function(e) { - return e * this.k + this.x; - }, - applyY: function(e) { - return e * this.k + this.y; - }, - invert: function(e) { - return [(e[0] - this.x) / this.k, (e[1] - this.y) / this.k]; - }, - invertX: function(e) { - return (e - this.x) / this.k; - }, - invertY: function(e) { - return (e - this.y) / this.k; - }, - rescaleX: function(e) { - return e.copy().domain( - e - .range() - .map(this.invertX, this) - .map(e.invert, e) - ); - }, - rescaleY: function(e) { - return e.copy().domain( - e - .range() - .map(this.invertY, this) - .map(e.invert, e) - ); - }, - toString: function() { - return ( - 'translate(' + this.x + ',' + this.y + ') scale(' + this.k + ')' - ); - } - }; - var bM = new mM(1, 0, 0); - function yM(e) { - for (; !e.__zoom; ) if (!(e = e.parentNode)) return bM; - return e.__zoom; - } - function vM() { - ut.stopImmediatePropagation(); - } - yM.prototype = mM.prototype; - var _M = function() { - ut.preventDefault(), ut.stopImmediatePropagation(); - }; - function xM() { - return !ut.ctrlKey && !ut.button; - } - function wM() { - var e = this; - return e instanceof SVGElement - ? (e = e.ownerSVGElement || e).hasAttribute('viewBox') - ? [ - [(e = e.viewBox.baseVal).x, e.y], - [e.x + e.width, e.y + e.height] - ] - : [ - [0, 0], - [e.width.baseVal.value, e.height.baseVal.value] - ] - : [ - [0, 0], - [e.clientWidth, e.clientHeight] - ]; - } - function MM() { - return this.__zoom || bM; - } - function kM() { - return ( - -ut.deltaY * (1 === ut.deltaMode ? 0.05 : ut.deltaMode ? 1 : 0.002) - ); - } - function SM() { - return navigator.maxTouchPoints || 'ontouchstart' in this; - } - function AM(e, t, n) { - var r = e.invertX(t[0][0]) - n[0][0], - o = e.invertX(t[1][0]) - n[1][0], - i = e.invertY(t[0][1]) - n[0][1], - a = e.invertY(t[1][1]) - n[1][1]; - return e.translate( - o > r ? (r + o) / 2 : Math.min(0, r) || Math.max(0, o), - a > i ? (i + a) / 2 : Math.min(0, i) || Math.max(0, a) - ); - } - var OM = function() { - var e, - t, - n = xM, - r = wM, - o = AM, - i = kM, - a = SM, - s = [0, 1 / 0], - c = [ - [-1 / 0, -1 / 0], - [1 / 0, 1 / 0] - ], - u = 250, - l = dh, - f = fe('start', 'zoom', 'end'), - d = 0; - function p(e) { - e.property('__zoom', MM) - .on('wheel.zoom', _) - .on('mousedown.zoom', x) - .on('dblclick.zoom', w) - .filter(a) - .on('touchstart.zoom', M) - .on('touchmove.zoom', k) - .on('touchend.zoom touchcancel.zoom', S) - .style('touch-action', 'none') - .style('-webkit-tap-highlight-color', 'rgba(0,0,0,0)'); - } - function h(e, t) { - return (t = Math.max(s[0], Math.min(s[1], t))) === e.k - ? e - : new mM(t, e.x, e.y); - } - function g(e, t, n) { - var r = t[0] - n[0] * e.k, - o = t[1] - n[1] * e.k; - return r === e.x && o === e.y ? e : new mM(e.k, r, o); - } - function m(e) { - return [(+e[0][0] + +e[1][0]) / 2, (+e[0][1] + +e[1][1]) / 2]; - } - function b(e, t, n) { - e.on('start.zoom', function() { - y(this, arguments).start(); - }) - .on('interrupt.zoom end.zoom', function() { - y(this, arguments).end(); - }) - .tween('zoom', function() { - var e = this, - o = arguments, - i = y(e, o), - a = r.apply(e, o), - s = - null == n ? m(a) : 'function' == typeof n ? n.apply(e, o) : n, - c = Math.max(a[1][0] - a[0][0], a[1][1] - a[0][1]), - u = e.__zoom, - f = 'function' == typeof t ? t.apply(e, o) : t, - d = l(u.invert(s).concat(c / u.k), f.invert(s).concat(c / f.k)); - return function(e) { - if (1 === e) e = f; - else { - var t = d(e), - n = c / t[2]; - e = new mM(n, s[0] - t[0] * n, s[1] - t[1] * n); - } - i.zoom(null, e); - }; - }); - } - function y(e, t, n) { - return (!n && e.__zooming) || new v(e, t); - } - function v(e, t) { - (this.that = e), - (this.args = t), - (this.active = 0), - (this.extent = r.apply(e, t)), - (this.taps = 0); - } - function _() { - if (n.apply(this, arguments)) { - var e = y(this, arguments), - t = this.__zoom, - r = Math.max( - s[0], - Math.min(s[1], t.k * Math.pow(2, i.apply(this, arguments))) - ), - a = Dn(this); - if (e.wheel) - (e.mouse[0][0] === a[0] && e.mouse[0][1] === a[1]) || - (e.mouse[1] = t.invert((e.mouse[0] = a))), - clearTimeout(e.wheel); - else { - if (t.k === r) return; - (e.mouse = [a, t.invert(a)]), sr(this), e.start(); - } - _M(), - (e.wheel = setTimeout(u, 150)), - e.zoom( - 'mouse', - o(g(h(t, r), e.mouse[0], e.mouse[1]), e.extent, c) + }, + hookEditor: function(e) { + var t = this.makeUnprivilegedEditor(e); + (this.handleTextChange = function(n, r, o) { + this.onEditorChangeText && + (this.onEditorChangeText(e.root.innerHTML, n, o, t), + this.onEditorChangeSelection(e.getSelection(), o, t)); + }.bind(this)), + (this.handleSelectionChange = function(e, n, r) { + this.onEditorChangeSelection && + this.onEditorChangeSelection(e, r, t); + }.bind(this)), + e.on( + 'editor-change', + function(e, t, n, o) { + e === r.events.SELECTION_CHANGE && + this.handleSelectionChange(t, n, o), + e === r.events.TEXT_CHANGE && + this.handleTextChange(t, n, o); + }.bind(this) ); - } - function u() { - (e.wheel = null), e.end(); - } - } - function x() { - if (!t && n.apply(this, arguments)) { - var e = y(this, arguments, !0), - r = Mt(ut.view) - .on('mousemove.zoom', u, !0) - .on('mouseup.zoom', l, !0), - i = Dn(this), - a = ut.clientX, - s = ut.clientY; - At(ut.view), - vM(), - (e.mouse = [i, this.__zoom.invert(i)]), - sr(this), - e.start(); - } - function u() { - if ((_M(), !e.moved)) { - var t = ut.clientX - a, - n = ut.clientY - s; - e.moved = t * t + n * n > d; - } - e.zoom( - 'mouse', - o( - g(e.that.__zoom, (e.mouse[0] = Dn(e.that)), e.mouse[1]), - e.extent, - c - ) - ); - } - function l() { - r.on('mousemove.zoom mouseup.zoom', null), - Ot(ut.view, e.moved), - _M(), - e.end(); - } - } - function w() { - if (n.apply(this, arguments)) { - var e = this.__zoom, - t = Dn(this), - i = e.invert(t), - a = e.k * (ut.shiftKey ? 0.5 : 2), - s = o(g(h(e, a), t, i), r.apply(this, arguments), c); - _M(), - u > 0 - ? Mt(this) - .transition() - .duration(u) - .call(b, s, t) - : Mt(this).call(p.transform, s); - } - } - function M() { - if (n.apply(this, arguments)) { - var t, - r, - o, - i, - a = ut.touches, - s = a.length, - c = y(this, arguments, ut.changedTouches.length === s); - for (vM(), r = 0; r < s; ++r) - (o = a[r]), - (i = [ - (i = Pn(this, a, o.identifier)), - this.__zoom.invert(i), - o.identifier - ]), - c.touch0 - ? c.touch1 || - c.touch0[2] === i[2] || - ((c.touch1 = i), (c.taps = 0)) - : ((c.touch0 = i), (t = !0), (c.taps = 1 + !!e)); - e && (e = clearTimeout(e)), - t && - (c.taps < 2 && - (e = setTimeout(function() { - e = null; - }, 500)), - sr(this), - c.start()); - } - } - function k() { - if (this.__zooming) { - var t, - n, - r, - i, - a = y(this, arguments), - s = ut.changedTouches, - u = s.length; - for ( - _M(), e && (e = clearTimeout(e)), a.taps = 0, t = 0; - t < u; - ++t - ) - (n = s[t]), - (r = Pn(this, s, n.identifier)), - a.touch0 && a.touch0[2] === n.identifier - ? (a.touch0[0] = r) - : a.touch1 && - a.touch1[2] === n.identifier && - (a.touch1[0] = r); - if (((n = a.that.__zoom), a.touch1)) { - var l = a.touch0[0], - f = a.touch0[1], - d = a.touch1[0], - p = a.touch1[1], - m = (m = d[0] - l[0]) * m + (m = d[1] - l[1]) * m, - b = (b = p[0] - f[0]) * b + (b = p[1] - f[1]) * b; - (n = h(n, Math.sqrt(m / b))), - (r = [(l[0] + d[0]) / 2, (l[1] + d[1]) / 2]), - (i = [(f[0] + p[0]) / 2, (f[1] + p[1]) / 2]); - } else { - if (!a.touch0) return; - (r = a.touch0[0]), (i = a.touch0[1]); - } - a.zoom('touch', o(g(n, r, i), a.extent, c)); - } - } - function S() { - if (this.__zooming) { - var e, - n, - r = y(this, arguments), - o = ut.changedTouches, - i = o.length; - for ( - vM(), - t && clearTimeout(t), - t = setTimeout(function() { - t = null; - }, 500), - e = 0; - e < i; - ++e - ) - (n = o[e]), - r.touch0 && r.touch0[2] === n.identifier - ? delete r.touch0 - : r.touch1 && r.touch1[2] === n.identifier && delete r.touch1; - if ( - (r.touch1 && - !r.touch0 && - ((r.touch0 = r.touch1), delete r.touch1), - r.touch0) - ) - r.touch0[1] = this.__zoom.invert(r.touch0[0]); - else if ((r.end(), 2 === r.taps)) { - var a = Mt(this).on('dblclick.zoom'); - a && a.apply(this, arguments); + }, + unhookEditor: function(e) { + e.off('selection-change'), e.off('text-change'); + }, + setEditorReadOnly: function(e, t) { + t ? e.disable() : e.enable(); + }, + setEditorContents: function(e, t) { + var n = e.getSelection(); + 'string' == typeof t + ? e.setContents(e.clipboard.convert(t)) + : e.setContents(t), + n && e.hasFocus() && this.setEditorSelection(e, n); + }, + setEditorSelection: function(e, t) { + if (t) { + var n = e.getLength(); + (t.index = Math.max(0, Math.min(t.index, n - 1))), + (t.length = Math.max(0, Math.min(t.length, n - 1 - t.index))); } - } - } - return ( - (p.transform = function(e, t, n) { - var r = e.selection ? e.selection() : e; - r.property('__zoom', MM), - e !== r - ? b(e, t, n) - : r.interrupt().each(function() { - y(this, arguments) - .start() - .zoom( - null, - 'function' == typeof t ? t.apply(this, arguments) : t - ) - .end(); - }); - }), - (p.scaleBy = function(e, t, n) { - p.scaleTo( - e, - function() { - var e = this.__zoom.k, - n = 'function' == typeof t ? t.apply(this, arguments) : t; - return e * n; + e.setSelection(t); + }, + setEditorTabIndex: function(e, t) { + e.editor && + e.editor.scroll && + e.editor.scroll.domNode && + (e.editor.scroll.domNode.tabIndex = t); + }, + makeUnprivilegedEditor: function(e) { + var t = e; + return { + getLength: function() { + return t.getLength.apply(t, arguments); }, - n - ); - }), - (p.scaleTo = function(e, t, n) { - p.transform( - e, - function() { - var e = r.apply(this, arguments), - i = this.__zoom, - a = - null == n - ? m(e) - : 'function' == typeof n - ? n.apply(this, arguments) - : n, - s = i.invert(a), - u = 'function' == typeof t ? t.apply(this, arguments) : t; - return o(g(h(i, u), a, s), e, c); + getText: function() { + return t.getText.apply(t, arguments); }, - n - ); - }), - (p.translateBy = function(e, t, n) { - p.transform(e, function() { - return o( - this.__zoom.translate( - 'function' == typeof t ? t.apply(this, arguments) : t, - 'function' == typeof n ? n.apply(this, arguments) : n - ), - r.apply(this, arguments), - c - ); - }); - }), - (p.translateTo = function(e, t, n, i) { - p.transform( - e, - function() { - var e = r.apply(this, arguments), - a = this.__zoom, - s = - null == i - ? m(e) - : 'function' == typeof i - ? i.apply(this, arguments) - : i; - return o( - bM - .translate(s[0], s[1]) - .scale(a.k) - .translate( - 'function' == typeof t ? -t.apply(this, arguments) : -t, - 'function' == typeof n ? -n.apply(this, arguments) : -n - ), - e, - c - ); + getHTML: function() { + return t.root.innerHTML; }, - i - ); - }), - (v.prototype = { - start: function() { - return ( - 1 == ++this.active && - ((this.that.__zooming = this), this.emit('start')), - this - ); - }, - zoom: function(e, t) { - return ( - this.mouse && - 'mouse' !== e && - (this.mouse[1] = t.invert(this.mouse[0])), - this.touch0 && - 'touch' !== e && - (this.touch0[1] = t.invert(this.touch0[0])), - this.touch1 && - 'touch' !== e && - (this.touch1[1] = t.invert(this.touch1[0])), - (this.that.__zoom = t), - this.emit('zoom'), - this - ); - }, - end: function() { - return ( - 0 == --this.active && - (delete this.that.__zooming, this.emit('end')), - this - ); - }, - emit: function(e) { - gt(new gM(p, e, this.that.__zoom), f.apply, f, [ - e, - this.that, - this.args - ]); - } - }), - (p.wheelDelta = function(e) { - return arguments.length - ? ((i = 'function' == typeof e ? e : hM(+e)), p) - : i; - }), - (p.filter = function(e) { - return arguments.length - ? ((n = 'function' == typeof e ? e : hM(!!e)), p) - : n; - }), - (p.touchable = function(e) { - return arguments.length - ? ((a = 'function' == typeof e ? e : hM(!!e)), p) - : a; - }), - (p.extent = function(e) { - return arguments.length - ? ((r = - 'function' == typeof e - ? e - : hM([ - [+e[0][0], +e[0][1]], - [+e[1][0], +e[1][1]] - ])), - p) - : r; - }), - (p.scaleExtent = function(e) { - return arguments.length - ? ((s[0] = +e[0]), (s[1] = +e[1]), p) - : [s[0], s[1]]; - }), - (p.translateExtent = function(e) { - return arguments.length - ? ((c[0][0] = +e[0][0]), - (c[1][0] = +e[1][0]), - (c[0][1] = +e[0][1]), - (c[1][1] = +e[1][1]), - p) - : [ - [c[0][0], c[0][1]], - [c[1][0], c[1][1]] - ]; - }), - (p.constrain = function(e) { - return arguments.length ? ((o = e), p) : o; - }), - (p.duration = function(e) { - return arguments.length ? ((u = +e), p) : u; - }), - (p.interpolate = function(e) { - return arguments.length ? ((l = e), p) : l; - }), - (p.on = function() { - var e = f.on.apply(f, arguments); - return e === f ? p : e; - }), - (p.clickDistance = function(e) { - return arguments.length ? ((d = (e = +e) * e), p) : Math.sqrt(d); - }), - p - ); - }; + getContents: function() { + return t.getContents.apply(t, arguments); + }, + getSelection: function() { + return t.getSelection.apply(t, arguments); + }, + getBounds: function() { + return t.getBounds.apply(t, arguments); + } + }; + } + }; + e.exports = o; + }, + function(e, t, n) { + var r = n(856)(n(857)); + e.exports = r; }, function(e, t, n) { 'use strict'; - n.r(t), - n.d(t, 'Portal', function() { - return _; - }), - n.d(t, 'PortalWithState', function() { - return k; - }); - var r = n(4), + e.exports = (function(e) { + function t(t) { + var n = e.createElement.bind(null, t); + return (n.type = t), n; + } + return { + a: t('a'), + abbr: t('abbr'), + address: t('address'), + area: t('area'), + article: t('article'), + aside: t('aside'), + audio: t('audio'), + b: t('b'), + base: t('base'), + bdi: t('bdi'), + bdo: t('bdo'), + big: t('big'), + blockquote: t('blockquote'), + body: t('body'), + br: t('br'), + button: t('button'), + canvas: t('canvas'), + caption: t('caption'), + cite: t('cite'), + code: t('code'), + col: t('col'), + colgroup: t('colgroup'), + data: t('data'), + datalist: t('datalist'), + dd: t('dd'), + del: t('del'), + details: t('details'), + dfn: t('dfn'), + dialog: t('dialog'), + div: t('div'), + dl: t('dl'), + dt: t('dt'), + em: t('em'), + embed: t('embed'), + fieldset: t('fieldset'), + figcaption: t('figcaption'), + figure: t('figure'), + footer: t('footer'), + form: t('form'), + h1: t('h1'), + h2: t('h2'), + h3: t('h3'), + h4: t('h4'), + h5: t('h5'), + h6: t('h6'), + head: t('head'), + header: t('header'), + hgroup: t('hgroup'), + hr: t('hr'), + html: t('html'), + i: t('i'), + iframe: t('iframe'), + img: t('img'), + input: t('input'), + ins: t('ins'), + kbd: t('kbd'), + keygen: t('keygen'), + label: t('label'), + legend: t('legend'), + li: t('li'), + link: t('link'), + main: t('main'), + map: t('map'), + mark: t('mark'), + menu: t('menu'), + menuitem: t('menuitem'), + meta: t('meta'), + meter: t('meter'), + nav: t('nav'), + noscript: t('noscript'), + object: t('object'), + ol: t('ol'), + optgroup: t('optgroup'), + option: t('option'), + output: t('output'), + p: t('p'), + param: t('param'), + picture: t('picture'), + pre: t('pre'), + progress: t('progress'), + q: t('q'), + rp: t('rp'), + rt: t('rt'), + ruby: t('ruby'), + s: t('s'), + samp: t('samp'), + script: t('script'), + section: t('section'), + select: t('select'), + small: t('small'), + source: t('source'), + span: t('span'), + strong: t('strong'), + style: t('style'), + sub: t('sub'), + summary: t('summary'), + sup: t('sup'), + table: t('table'), + tbody: t('tbody'), + td: t('td'), + textarea: t('textarea'), + tfoot: t('tfoot'), + th: t('th'), + thead: t('thead'), + time: t('time'), + title: t('title'), + tr: t('tr'), + track: t('track'), + u: t('u'), + ul: t('ul'), + var: t('var'), + video: t('video'), + wbr: t('wbr'), + circle: t('circle'), + clipPath: t('clipPath'), + defs: t('defs'), + ellipse: t('ellipse'), + g: t('g'), + image: t('image'), + line: t('line'), + linearGradient: t('linearGradient'), + mask: t('mask'), + path: t('path'), + pattern: t('pattern'), + polygon: t('polygon'), + polyline: t('polyline'), + radialGradient: t('radialGradient'), + rect: t('rect'), + stop: t('stop'), + svg: t('svg'), + text: t('text'), + tspan: t('tspan') + }; + })(n(0)); + }, + function(e, t, n) { + 'use strict'; + n.r(t); + var r = n(7), o = n.n(r), i = n(0), a = n.n(i), @@ -102197,22 +103951,22 @@ object-assign return n && e(t.prototype, n), r && e(t, r), t; }; })(); - function f(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function d(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) ? e : t; - } - var p = (function(e) { + var f = (function(e) { function t() { return ( - f(this, t), - d( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, t), + (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments) ) @@ -102265,9 +104019,9 @@ object-assign t ); })(a.a.Component); - p.propTypes = { children: c.a.node.isRequired, node: c.a.any }; - var h = p, - g = (function() { + f.propTypes = { children: c.a.node.isRequired, node: c.a.any }; + var d = f, + p = (function() { function e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; @@ -102281,22 +104035,22 @@ object-assign return n && e(t.prototype, n), r && e(t, r), t; }; })(); - function m(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function b(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) ? e : t; - } - var y = (function(e) { + var h = (function(e) { function t() { return ( - m(this, t), - b( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, t), + (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments) ) @@ -102322,7 +104076,7 @@ object-assign ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), - g(t, [ + p(t, [ { key: 'componentDidMount', value: function() { @@ -102374,10 +104128,10 @@ object-assign t ); })(a.a.Component), - v = y; - y.propTypes = { children: c.a.node.isRequired, node: c.a.any }; - var _ = o.a.createPortal ? h : v, - x = (function() { + g = h; + h.propTypes = { children: c.a.node.isRequired, node: c.a.any }; + var m = o.a.createPortal ? d : g, + b = (function() { function e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; @@ -102391,8 +104145,8 @@ object-assign return n && e(t.prototype, n), r && e(t, r), t; }; })(); - var w = 27, - M = (function(e) { + var y = 27, + v = (function(e) { function t(e) { !(function(e, t) { if (!(e instanceof t)) @@ -102438,196 +104192,522 @@ object-assign ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), - x(t, [ + b(t, [ + { + key: 'componentDidMount', + value: function() { + this.props.closeOnEsc && + document.addEventListener('keydown', this.handleKeydown), + this.props.closeOnOutsideClick && + document.addEventListener( + 'click', + this.handleOutsideMouseClick + ); + } + }, + { + key: 'componentWillUnmount', + value: function() { + this.props.closeOnEsc && + document.removeEventListener('keydown', this.handleKeydown), + this.props.closeOnOutsideClick && + document.removeEventListener( + 'click', + this.handleOutsideMouseClick + ); + } + }, + { + key: 'openPortal', + value: function(e) { + this.state.active || + (e && + e.nativeEvent && + e.nativeEvent.stopImmediatePropagation(), + this.setState({ active: !0 }, this.props.onOpen)); + } + }, + { + key: 'closePortal', + value: function() { + this.state.active && + this.setState({ active: !1 }, this.props.onClose); + } + }, + { + key: 'wrapWithPortal', + value: function(e) { + var t = this; + return this.state.active + ? a.a.createElement( + m, + { + node: this.props.node, + key: 'react-portal', + ref: function(e) { + return (t.portalNode = e); + } + }, + e + ) + : null; + } + }, + { + key: 'handleOutsideMouseClick', + value: function(e) { + if (this.state.active) { + var t = + this.portalNode.props.node || this.portalNode.defaultNode; + !t || + t.contains(e.target) || + (e.button && 0 !== e.button) || + this.closePortal(); + } + } + }, + { + key: 'handleKeydown', + value: function(e) { + e.keyCode === y && this.state.active && this.closePortal(); + } + }, + { + key: 'render', + value: function() { + return this.props.children({ + openPortal: this.openPortal, + closePortal: this.closePortal, + portal: this.wrapWithPortal, + isOpen: this.state.active + }); + } + } + ]), + t + ); + })(a.a.Component); + (v.propTypes = { + children: c.a.func.isRequired, + defaultOpen: c.a.bool, + node: c.a.any, + closeOnEsc: c.a.bool, + closeOnOutsideClick: c.a.bool, + onOpen: c.a.func, + onClose: c.a.func + }), + (v.defaultProps = { onOpen: function() {}, onClose: function() {} }); + var _ = v; + n.d(t, 'Portal', function() { + return m; + }), + n.d(t, 'PortalWithState', function() { + return _; + }); + }, + function(e, t, n) { + 'use strict'; + function r(e) { + var t, + n = e.Symbol; + return ( + 'function' == typeof n + ? n.observable + ? (t = n.observable) + : ((t = n('observable')), (n.observable = t)) + : (t = '@@observable'), + t + ); + } + n.d(t, 'a', function() { + return r; + }); + }, + function(e, t, n) { + 'use strict'; + var r = + (this && this.__importDefault) || + function(e) { + return e && e.__esModule ? e : { default: e }; + }; + Object.defineProperty(t, '__esModule', { value: !0 }); + const o = r(n(542)), + i = r(n(544)); + t.uuid = function() { + return o.default(); + }; + const a = { + v4: /^(?:[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12})|(?:0{8}-0{4}-0{4}-0{4}-0{12})$/u, + v5: /^(?:[a-f0-9]{8}-[a-f0-9]{4}-5[a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12})|(?:0{8}-0{4}-0{4}-0{4}-0{12})$/u + }; + t.regex = a; + t.isUuid = function(e) { + return a.v4.test(e) || a.v5.test(e); + }; + t.empty = function() { + return '00000000-0000-0000-0000-000000000000'; + }; + t.fromString = function(e) { + return i.default(e, 'bb5d0ffa-9a4c-4d7c-8fc2-0a7d2220ba45'); + }; + }, + function(e, t, n) { + 'use strict'; + (function(t) { + var n = '__global_unique_id__'; + e.exports = function() { + return (t[n] = (t[n] || 0) + 1); + }; + }.call(this, n(33))); + }, + function(e, t, n) { + e.exports = (function() { + 'use strict'; + return function(e) { + function t(t) { + if (t) + try { + e(t + '}'); + } catch (e) {} + } + return function(n, r, o, i, a, s, c, u, l, f) { + switch (n) { + case 1: + if (0 === l && 64 === r.charCodeAt(0)) return e(r + ';'), ''; + break; + case 2: + if (0 === u) return r + '/*|*/'; + break; + case 3: + switch (u) { + case 102: + case 112: + return e(o[0] + r), ''; + default: + return r + (0 === f ? '/*|*/' : ''); + } + case -2: + r.split('/*|*/}').forEach(t); + } + }; + }; + })(); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = + Object.assign || + function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); + } + return e; + }, + o = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(), + i = n(0), + a = c(i), + s = c(n(1)); + function c(e) { + return e && e.__esModule ? e : { default: e }; + } + var u = { + position: 'absolute', + top: 0, + left: 0, + visibility: 'hidden', + height: 0, + overflow: 'scroll', + whiteSpace: 'pre' + }, + l = [ + 'extraWidth', + 'injectStyles', + 'inputClassName', + 'inputRef', + 'inputStyle', + 'minWidth', + 'onAutosize', + 'placeholderIsMinWidth' + ], + f = function(e, t) { + (t.style.fontSize = e.fontSize), + (t.style.fontFamily = e.fontFamily), + (t.style.fontWeight = e.fontWeight), + (t.style.fontStyle = e.fontStyle), + (t.style.letterSpacing = e.letterSpacing), + (t.style.textTransform = e.textTransform); + }, + d = + !('undefined' == typeof window || !window.navigator) && + /MSIE |Trident\/|Edge\//.test(window.navigator.userAgent), + p = function() { + return d + ? '_' + + Math.random() + .toString(36) + .substr(2, 12) + : void 0; + }, + h = (function(e) { + function t(e) { + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, t); + var n = (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e)); + return ( + (n.inputRef = function(e) { + (n.input = e), + 'function' == typeof n.props.inputRef && n.props.inputRef(e); + }), + (n.placeHolderSizerRef = function(e) { + n.placeHolderSizer = e; + }), + (n.sizerRef = function(e) { + n.sizer = e; + }), + (n.state = { inputWidth: e.minWidth, inputId: e.id || p() }), + n + ); + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + o(t, [ { key: 'componentDidMount', value: function() { - this.props.closeOnEsc && - document.addEventListener('keydown', this.handleKeydown), - this.props.closeOnOutsideClick && - document.addEventListener( - 'click', - this.handleOutsideMouseClick - ); + (this.mounted = !0), + this.copyInputStyles(), + this.updateInputWidth(); + } + }, + { + key: 'componentWillReceiveProps', + value: function(e) { + var t = e.id; + t !== this.props.id && this.setState({ inputId: t || p() }); + } + }, + { + key: 'componentDidUpdate', + value: function(e, t) { + t.inputWidth !== this.state.inputWidth && + 'function' == typeof this.props.onAutosize && + this.props.onAutosize(this.state.inputWidth), + this.updateInputWidth(); } }, { key: 'componentWillUnmount', value: function() { - this.props.closeOnEsc && - document.removeEventListener('keydown', this.handleKeydown), - this.props.closeOnOutsideClick && - document.removeEventListener( - 'click', - this.handleOutsideMouseClick - ); + this.mounted = !1; } }, { - key: 'openPortal', - value: function(e) { - this.state.active || - (e && - e.nativeEvent && - e.nativeEvent.stopImmediatePropagation(), - this.setState({ active: !0 }, this.props.onOpen)); + key: 'copyInputStyles', + value: function() { + if (this.mounted && window.getComputedStyle) { + var e = this.input && window.getComputedStyle(this.input); + e && + (f(e, this.sizer), + this.placeHolderSizer && f(e, this.placeHolderSizer)); + } } }, { - key: 'closePortal', + key: 'updateInputWidth', value: function() { - this.state.active && - this.setState({ active: !1 }, this.props.onClose); + if ( + this.mounted && + this.sizer && + void 0 !== this.sizer.scrollWidth + ) { + var e = void 0; + (e = + this.props.placeholder && + (!this.props.value || + (this.props.value && this.props.placeholderIsMinWidth)) + ? Math.max( + this.sizer.scrollWidth, + this.placeHolderSizer.scrollWidth + ) + 2 + : this.sizer.scrollWidth + 2), + (e += + 'number' === this.props.type && + void 0 === this.props.extraWidth + ? 16 + : parseInt(this.props.extraWidth) || 0) < + this.props.minWidth && (e = this.props.minWidth), + e !== this.state.inputWidth && + this.setState({ inputWidth: e }); + } } }, { - key: 'wrapWithPortal', - value: function(e) { - var t = this; - return this.state.active - ? a.a.createElement( - _, - { - node: this.props.node, - key: 'react-portal', - ref: function(e) { - return (t.portalNode = e); - } - }, - e - ) - : null; + key: 'getInput', + value: function() { + return this.input; } }, { - key: 'handleOutsideMouseClick', - value: function(e) { - if (this.state.active) { - var t = - this.portalNode && - (this.portalNode.props.node || - this.portalNode.defaultNode); - !t || - t.contains(e.target) || - (e.button && 0 !== e.button) || - this.closePortal(); - } + key: 'focus', + value: function() { + this.input.focus(); } }, { - key: 'handleKeydown', - value: function(e) { - e.keyCode === w && this.state.active && this.closePortal(); + key: 'blur', + value: function() { + this.input.blur(); + } + }, + { + key: 'select', + value: function() { + this.input.select(); + } + }, + { + key: 'renderStyles', + value: function() { + var e = this.props.injectStyles; + return d && e + ? a.default.createElement('style', { + dangerouslySetInnerHTML: { + __html: + 'input#' + + this.state.inputId + + '::-ms-clear {display: none;}' + } + }) + : null; } }, { key: 'render', value: function() { - return this.props.children({ - openPortal: this.openPortal, - closePortal: this.closePortal, - portal: this.wrapWithPortal, - isOpen: this.state.active - }); + var e = [ + this.props.defaultValue, + this.props.value, + '' + ].reduce(function(e, t) { + return null != e ? e : t; + }), + t = r({}, this.props.style); + t.display || (t.display = 'inline-block'); + var n = r( + { + boxSizing: 'content-box', + width: this.state.inputWidth + 'px' + }, + this.props.inputStyle + ), + o = (function(e, t) { + var n = {}; + for (var r in e) + t.indexOf(r) >= 0 || + (Object.prototype.hasOwnProperty.call(e, r) && + (n[r] = e[r])); + return n; + })(this.props, []); + return ( + (function(e) { + l.forEach(function(t) { + return delete e[t]; + }); + })(o), + (o.className = this.props.inputClassName), + (o.id = this.state.inputId), + (o.style = n), + a.default.createElement( + 'div', + { className: this.props.className, style: t }, + this.renderStyles(), + a.default.createElement( + 'input', + r({}, o, { ref: this.inputRef }) + ), + a.default.createElement( + 'div', + { ref: this.sizerRef, style: u }, + e + ), + this.props.placeholder + ? a.default.createElement( + 'div', + { ref: this.placeHolderSizerRef, style: u }, + this.props.placeholder + ) + : null + ) + ); } } ]), t ); - })(a.a.Component); - (M.propTypes = { - children: c.a.func.isRequired, - defaultOpen: c.a.bool, - node: c.a.any, - closeOnEsc: c.a.bool, - closeOnOutsideClick: c.a.bool, - onOpen: c.a.func, - onClose: c.a.func + })(i.Component); + (h.propTypes = { + className: s.default.string, + defaultValue: s.default.any, + extraWidth: s.default.oneOfType([s.default.number, s.default.string]), + id: s.default.string, + injectStyles: s.default.bool, + inputClassName: s.default.string, + inputRef: s.default.func, + inputStyle: s.default.object, + minWidth: s.default.oneOfType([s.default.number, s.default.string]), + onAutosize: s.default.func, + onChange: s.default.func, + placeholder: s.default.string, + placeholderIsMinWidth: s.default.bool, + style: s.default.object, + value: s.default.any }), - (M.defaultProps = { onOpen: function() {}, onClose: function() {} }); - var k = M; - }, - function(e, t, n) { - 'use strict'; - function r(e) { - var t, - n = e.Symbol; - return ( - 'function' == typeof n - ? n.observable - ? (t = n.observable) - : ((t = n('observable')), (n.observable = t)) - : (t = '@@observable'), - t - ); - } - n.d(t, 'a', function() { - return r; - }); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - const r = n(830); - t.uuid = function() { - return r.v4(); - }; - const o = { - v4: /(?:^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}$)|(?:^0{8}-0{4}-0{4}-0{4}-0{12}$)/u, - v5: /(?:^[a-f0-9]{8}-[a-f0-9]{4}-5[a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}$)|(?:^0{8}-0{4}-0{4}-0{4}-0{12}$)/u - }; - t.regex = o; - t.isUuid = function(e) { - return o.v4.test(e) || o.v5.test(e); - }; - t.empty = function() { - return '00000000-0000-0000-0000-000000000000'; - }; - t.fromString = function(e) { - return r.v5(e, 'bb5d0ffa-9a4c-4d7c-8fc2-0a7d2220ba45'); - }; - }, - function(e, t, n) { - 'use strict'; - (function(t) { - var n = '__global_unique_id__'; - e.exports = function() { - return (t[n] = (t[n] || 0) + 1); - }; - }.call(this, n(26))); - }, - function(e, t, n) { - e.exports = (function() { - 'use strict'; - return function(e) { - function t(t) { - if (t) - try { - e(t + '}'); - } catch (e) {} - } - return function(n, r, o, i, a, s, c, u, l, f) { - switch (n) { - case 1: - if (0 === l && 64 === r.charCodeAt(0)) return e(r + ';'), ''; - break; - case 2: - if (0 === u) return r + '/*|*/'; - break; - case 3: - switch (u) { - case 102: - case 112: - return e(o[0] + r), ''; - default: - return r + (0 === f ? '/*|*/' : ''); - } - case -2: - r.split('/*|*/}').forEach(t); - } - }; - }; - })(); + (h.defaultProps = { minWidth: 1, injectStyles: !0 }), + (t.default = h); }, function(e, t, n) { !(function(t) { @@ -102693,49 +104773,52 @@ object-assign ); }, getAndEncode: function(e) { + var t = 3e4; s.impl.options.cacheBust && (e += (/\?/.test(e) ? '&' : '?') + new Date().getTime()); - return new Promise(function(t) { - var n, - r = new XMLHttpRequest(); + return new Promise(function(n) { + var r, + o = new XMLHttpRequest(); if ( - ((r.onreadystatechange = function() { - if (4 !== r.readyState) return; - if (200 !== r.status) - return void (n - ? t(n) - : i( + ((o.onreadystatechange = function() { + if (4 !== o.readyState) return; + if (200 !== o.status) + return void (r + ? n(r) + : a( 'cannot fetch resource: ' + e + ', status: ' + - r.status + o.status )); - var o = new FileReader(); - (o.onloadend = function() { - var e = o.result.split(/,/)[1]; - t(e); + var t = new FileReader(); + (t.onloadend = function() { + var e = t.result.split(/,/)[1]; + n(e); }), - o.readAsDataURL(r.response); + t.readAsDataURL(o.response); }), - (r.ontimeout = function() { - n - ? t(n) - : i( - 'timeout of 30000ms occured while fetching resource: ' + + (o.ontimeout = function() { + r + ? n(r) + : a( + 'timeout of ' + + t + + 'ms occured while fetching resource: ' + e ); }), - (r.responseType = 'blob'), - (r.timeout = 3e4), - r.open('GET', e, !0), - r.send(), + (o.responseType = 'blob'), + (o.timeout = t), + o.open('GET', e, !0), + o.send(), s.impl.options.imagePlaceholder) ) { - var o = s.impl.options.imagePlaceholder.split(/,/); - o && o[1] && (n = o[1]); + var i = s.impl.options.imagePlaceholder.split(/,/); + i && i[1] && (r = i[1]); } - function i(e) { - console.error(e), t(''); + function a(e) { + console.error(e), n(''); } }); }, @@ -102917,33 +105000,32 @@ object-assign i = (function() { return { inlineAll: function t(o) { - return o instanceof Element - ? (function(e) { - var t = e.style.getPropertyValue('background'); - return t - ? r - .inlineAll(t) - .then(function(t) { - e.style.setProperty( - 'background', - t, - e.style.getPropertyPriority('background') - ); - }) - .then(function() { - return e; - }) - : Promise.resolve(e); - })(o).then(function() { - return o instanceof HTMLImageElement - ? e(o).inline() - : Promise.all( - n.asArray(o.childNodes).map(function(e) { - return t(e); - }) + if (!(o instanceof Element)) return Promise.resolve(o); + return (function(e) { + var t = e.style.getPropertyValue('background'); + return t + ? r + .inlineAll(t) + .then(function(t) { + e.style.setProperty( + 'background', + t, + e.style.getPropertyPriority('background') ); - }) - : Promise.resolve(o); + }) + .then(function() { + return e; + }) + : Promise.resolve(e); + })(o).then(function() { + return o instanceof HTMLImageElement + ? e(o).inline() + : Promise.all( + n.asArray(o.childNodes).map(function(e) { + return t(e); + }) + ); + }); }, impl: { newImage: e } }; @@ -103004,138 +105086,139 @@ object-assign Promise.resolve(e) .then(function(e) { return (function e(t, r, o) { - return o || !r || r(t) - ? Promise.resolve(t) - .then(function(e) { - return e instanceof HTMLCanvasElement - ? n.makeImage(e.toDataURL()) - : e.cloneNode(!1); - }) - .then(function(e) { - return i(t, e, r); - }) - .then(function(e) { - return (function(e, t) { - return t instanceof Element - ? Promise.resolve() - .then(r) - .then(o) - .then(i) - .then(a) - .then(function() { - return t; - }) - : t; - function r() { - var r, o; - (r = window.getComputedStyle(e)), - (o = t.style), - r.cssText - ? (o.cssText = r.cssText) - : (function(e, t) { - n.asArray(e).forEach(function(n) { - t.setProperty( - n, - e.getPropertyValue(n), - e.getPropertyPriority(n) - ); - }); - })(r, o); - } - function o() { - [':before', ':after'].forEach(function(r) { - !(function(r) { - var o = window.getComputedStyle(e, r), - i = o.getPropertyValue('content'); - if ('' === i || 'none' === i) return; - var a = n.uid(); - t.className = t.className + ' ' + a; - var s = document.createElement('style'); - s.appendChild( - (function(e, t, r) { - var o = '.' + e + ':' + t, - i = r.cssText - ? (function(e) { - var t = e.getPropertyValue( - 'content' - ); - return ( - e.cssText + - ' content: ' + - t + - ';' - ); - })(r) - : (function(e) { - return ( - n - .asArray(e) - .map(function(t) { - return ( - t + - ': ' + - e.getPropertyValue(t) + - (e.getPropertyPriority(t) - ? ' !important' - : '') - ); - }) - .join('; ') + ';' - ); - })(r); - return document.createTextNode( - o + '{' + i + '}' - ); - })(a, r, o) - ), - t.appendChild(s); - })(r); - }); - } - function i() { - e instanceof HTMLTextAreaElement && - (t.innerHTML = e.value), + if (!o && r && !r(t)) return Promise.resolve(); + return Promise.resolve(t) + .then(function(e) { + return e instanceof HTMLCanvasElement + ? n.makeImage(e.toDataURL()) + : e.cloneNode(!1); + }) + .then(function(o) { + return (function(t, r, o) { + var i = t.childNodes; + return 0 === i.length + ? Promise.resolve(r) + : (function(t, n, r) { + var o = Promise.resolve(); + return ( + n.forEach(function(n) { + o = o + .then(function() { + return e(n, r); + }) + .then(function(e) { + e && t.appendChild(e); + }); + }), + o + ); + })(r, n.asArray(i), o).then(function() { + return r; + }); + })(t, o, r); + }) + .then(function(e) { + return (function(e, t) { + return t instanceof Element + ? Promise.resolve() + .then(function() { + (r = window.getComputedStyle(e)), + (o = t.style), + r.cssText + ? (o.cssText = r.cssText) + : (function(e, t) { + n.asArray(e).forEach(function(n) { + t.setProperty( + n, + e.getPropertyValue(n), + e.getPropertyPriority(n) + ); + }); + })(r, o); + var r, o; + }) + .then(function() { + [':before', ':after'].forEach(function(r) { + !(function(r) { + var o = window.getComputedStyle(e, r), + i = o.getPropertyValue('content'); + if ('' !== i && 'none' !== i) { + var a = n.uid(); + t.className = t.className + ' ' + a; + var s = document.createElement('style'); + s.appendChild( + (function(e, t, r) { + var o = '.' + e + ':' + t, + i = r.cssText + ? (function(e) { + var t = e.getPropertyValue( + 'content' + ); + return ( + e.cssText + + ' content: ' + + t + + ';' + ); + })(r) + : (function(e) { + return ( + n + .asArray(e) + .map(function(t) { + return ( + t + + ': ' + + e.getPropertyValue( + t + ) + + (e.getPropertyPriority( + t + ) + ? ' !important' + : '') + ); + }) + .join('; ') + ';' + ); + })(r); + return document.createTextNode( + o + '{' + i + '}' + ); + })(a, r, o) + ), + t.appendChild(s); + } + })(r); + }); + }) + .then(function() { + e instanceof HTMLTextAreaElement && + (t.innerHTML = e.value); e instanceof HTMLInputElement && t.setAttribute('value', e.value); - } - function a() { - t instanceof SVGElement && - (t.setAttribute( - 'xmlns', - 'http://www.w3.org/2000/svg' - ), - t instanceof SVGRectElement && - ['width', 'height'].forEach(function(e) { - var n = t.getAttribute(e); - n && t.style.setProperty(e, n); - })); - } - })(t, e); - }) - : Promise.resolve(); - function i(t, r, o) { - var i = t.childNodes; - return 0 === i.length - ? Promise.resolve(r) - : a(r, n.asArray(i), o).then(function() { - return r; - }); - function a(t, n, r) { - var o = Promise.resolve(); - return ( - n.forEach(function(n) { - o = o - .then(function() { - return e(n, r); - }) - .then(function(e) { - e && t.appendChild(e); - }); - }), - o - ); - } - } + }) + .then(function() { + if (!(t instanceof SVGElement)) return; + if ( + (t.setAttribute( + 'xmlns', + 'http://www.w3.org/2000/svg' + ), + !(t instanceof SVGRectElement)) + ) + return; + ['width', 'height'].forEach(function(e) { + var n = t.getAttribute(e); + n && t.style.setProperty(e, n); + }); + }) + .then(function() { + return t; + }) + : t; + })(t, e); + }); })(e, t.filter, !0); }) .then(l) @@ -103388,7 +105471,7 @@ object-assign }) ? r.apply(t, o) : r) || (e.exports = i); - }.call(this, n(26))); + }.call(this, n(33))); }, function(e, t) { function n(e, t, n, r, o, i, a) { @@ -103418,7 +105501,7 @@ object-assign }; }, function(e, t, n) { - var r = n(544); + var r = n(588); e.exports = function(e, t) { if (null == e) return {}; var n, @@ -103439,28 +105522,28 @@ object-assign 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), (t.htmlparser2 = t.convertNodeToElement = t.processNodes = void 0); - var r = n(145); + var r = n(160); Object.defineProperty(t, 'processNodes', { enumerable: !0, get: function() { return s(r).default; } }); - var o = n(216); + var o = n(238); Object.defineProperty(t, 'convertNodeToElement', { enumerable: !0, get: function() { return s(o).default; } }); - var i = n(65); + var i = n(79); Object.defineProperty(t, 'htmlparser2', { enumerable: !0, get: function() { return s(i).default; } }); - var a = s(n(592)); + var a = s(n(636)); function s(e) { return e && e.__esModule ? e : { default: e }; } @@ -103532,7 +105615,7 @@ object-assign return Object.prototype.hasOwnProperty.call(e, t); }), (n.p = ''), - n((n.s = 172)) + n((n.s = 169)) ); })([ function(t, n) { @@ -103640,7 +105723,7 @@ object-assign e.exports = o; }, function(e, t, n) { - var r = n(23), + var r = n(22), o = Math.min; e.exports = function(e) { return e > 0 ? o(r(e), 9007199254740991) : 0; @@ -103763,7 +105846,7 @@ object-assign }; }, function(e, t, n) { - var r = n(53), + var r = n(51), o = n(30); e.exports = function(e) { return r(o(e)); @@ -103781,18 +105864,6 @@ object-assign ); }; }, - function(e, t) { - var n; - n = (function() { - return this; - })(); - try { - n = n || new Function('return this')(); - } catch (e) { - 'object' == typeof window && (n = window); - } - e.exports = n; - }, function(e, t) { var n = Math.ceil, r = Math.floor; @@ -103801,7 +105872,7 @@ object-assign }; }, function(e, t, n) { - var r = n(54), + var r = n(52), o = n(34), i = n(20), a = n(32), @@ -103839,10 +105910,10 @@ object-assign }, function(e, t, n) { var r = n(27), - o = n(53), + o = n(51), i = n(16), a = n(11), - s = n(265); + s = n(262); e.exports = function(e, t) { var n = 1 == e, c = 2 == e, @@ -103859,13 +105930,13 @@ object-assign y = o(b), v = r(s, h, 3), _ = a(y.length), - x = 0, - w = n ? p(t, _) : c ? p(t, 0) : void 0; - _ > x; - x++ + w = 0, + x = n ? p(t, _) : c ? p(t, 0) : void 0; + _ > w; + w++ ) - if ((d || x in y) && ((m = v((g = y[x]), x, b)), e)) - if (n) w[x] = m; + if ((d || w in y) && ((m = v((g = y[w]), w, b)), e)) + if (n) x[w] = m; else if (m) switch (e) { case 3: @@ -103873,15 +105944,27 @@ object-assign case 5: return g; case 6: - return x; + return w; case 2: - w.push(g); + x.push(g); } else if (l) return !1; - return f ? -1 : u || l ? l : w; + return f ? -1 : u || l ? l : x; }; }; }, + function(e, t) { + var n; + n = (function() { + return this; + })(); + try { + n = n || new Function('return this')(); + } catch (e) { + 'object' == typeof window && (n = window); + } + e.exports = n; + }, function(e, t, n) { var r = n(28); e.exports = function(e, t, n) { @@ -103931,40 +106014,40 @@ object-assign o = n(5), i = n(3), a = n(1), - s = n(73), + s = n(72), c = n(106), u = n(27), - l = n(48), + l = n(47), f = n(34), d = n(19), - p = n(49), - h = n(23), + p = n(48), + h = n(22), g = n(11), m = n(141), b = n(38), y = n(32), v = n(18), - _ = n(55), - x = n(6), - w = n(16), + _ = n(53), + w = n(6), + x = n(16), M = n(98), k = n(39), S = n(41), - A = n(40).f, - O = n(100), - E = n(35), + O = n(40).f, + E = n(100), + A = n(35), T = n(9), - C = n(26), - L = n(63), - P = n(56), + C = n(25), + L = n(62), + P = n(54), D = n(102), - z = n(45), - N = n(66), - j = n(47), + j = n(44), + z = n(65), + N = n(46), R = n(101), I = n(132), F = n(12), - q = n(24), + q = n(23), B = F.f, H = q.f, Y = o.RangeError, @@ -103994,15 +106077,15 @@ object-assign pe = U.toLocaleString, he = T('iterator'), ge = T('toStringTag'), - me = E('typed_constructor'), - be = E('def_constructor'), + me = A('typed_constructor'), + be = A('def_constructor'), ye = s.CONSTR, ve = s.TYPED, _e = s.VIEW, - xe = C(1, function(e, t) { - return Ae(P(e, e[be]), t); + we = C(1, function(e, t) { + return Oe(P(e, e[be]), t); }), - we = i(function() { + xe = i(function() { return 1 === new V(new Uint16Array([1]).buffer)[0]; }), Me = @@ -104017,19 +106100,19 @@ object-assign return n; }, Se = function(e) { - if (x(e) && ve in e) return e; + if (w(e) && ve in e) return e; throw W(e + ' is not a typed array!'); }, - Ae = function(e, t) { - if (!x(e) || !(me in e)) + Oe = function(e, t) { + if (!(w(e) && me in e)) throw W('It is not a typed array constructor!'); return new e(t); }, - Oe = function(e, t) { - return Ee(P(e, e[be]), t); - }, Ee = function(e, t) { - for (var n = 0, r = t.length, o = Ae(e, r); r > n; ) + return Ae(P(e, e[be]), t); + }, + Ae = function(e, t) { + for (var n = 0, r = t.length, o = Oe(e, r); r > n; ) o[n] = t[n++]; return o; }, @@ -104047,11 +106130,11 @@ object-assign o, i, a, - s = w(e), + s = x(e), c = arguments.length, l = c > 1 ? arguments[1] : void 0, f = void 0 !== l, - d = O(s); + d = E(s); if (null != d && !M(d)) { for ( a = d.call(s), r = [], t = 0; @@ -104065,7 +106148,7 @@ object-assign f && c > 2 && (l = u(l, arguments[2], 2)), t = 0, n = g(s.length), - o = Ae(this, n); + o = Oe(this, n); n > t; t++ ) @@ -104074,7 +106157,7 @@ object-assign }, Le = function() { for ( - var e = 0, t = arguments.length, n = Ae(this, t); + var e = 0, t = arguments.length, n = Oe(this, t); t > e; ) @@ -104092,7 +106175,7 @@ object-assign arguments ); }, - ze = { + je = { copyWithin: function(e, t) { return I.call( Se(this), @@ -104112,7 +106195,7 @@ object-assign return R.apply(Se(this), arguments); }, filter: function(e) { - return Oe( + return Ee( this, $( Se(this), @@ -104163,7 +106246,7 @@ object-assign return ae.apply(Se(this), arguments); }, map: function(e) { - return xe( + return we( Se(this), e, arguments.length > 1 ? arguments[1] : void 0 @@ -104208,14 +106291,14 @@ object-assign ); } }, - Ne = function(e, t) { - return Oe(this, fe.call(Se(this), e, t)); + ze = function(e, t) { + return Ee(this, fe.call(Se(this), e, t)); }, - je = function(e) { + Ne = function(e) { Se(this); var t = ke(arguments[1], 1), n = this.length, - r = w(e), + r = x(e), o = g(r.length), i = 0; if (o + t > n) throw Y('Wrong length!'); @@ -104234,7 +106317,7 @@ object-assign }, Ie = function(e, t) { return ( - x(e) && + w(e) && e[ve] && 'symbol' != typeof t && t in e && @@ -104245,7 +106328,7 @@ object-assign return Ie(e, (t = y(t, !0))) ? f(2, e[t]) : H(e, t); }, qe = function(e, t, n) { - return !(Ie(e, (t = y(t, !0))) && x(n) && v(n, 'value')) || + return !(Ie(e, (t = y(t, !0))) && w(n) && v(n, 'value')) || v(n, 'get') || v(n, 'set') || n.configurable || @@ -104265,12 +106348,12 @@ object-assign (de = pe = function() { return ue.call(this); }); - var Be = p({}, ze); + var Be = p({}, je); p(Be, Re), d(Be, he, Re.values), p(Be, { - slice: Ne, - set: je, + slice: ze, + set: Ne, constructor: function() {}, toString: de, toLocaleString: De @@ -104292,14 +106375,14 @@ object-assign b = h || {}, y = h && S(h), v = !h || !s.ABV, - w = {}, + x = {}, M = h && h.prototype, - O = function(e, n) { + E = function(e, n) { B(e, n, { get: function() { return (function(e, n) { var r = e._d; - return r.v[f](n * t + r.o, we); + return r.v[f](n * t + r.o, xe); })(this, n); }, set: function(e) { @@ -104312,7 +106395,7 @@ object-assign : r > 255 ? 255 : 255 & r), - o.v[p](n * t + o.o, r, we); + o.v[p](n * t + o.o, r, xe); })(this, n, e); }, enumerable: !0 @@ -104327,7 +106410,7 @@ object-assign c, f = 0, p = 0; - if (x(n)) { + if (w(n)) { if ( !( n instanceof X || @@ -104335,7 +106418,7 @@ object-assign 'SharedArrayBuffer' == c ) ) - return ve in n ? Ee(h, n) : Ce.call(h, n); + return ve in n ? Ae(h, n) : Ce.call(h, n); (i = n), (p = ke(r, t)); var b = n.byteLength; if (void 0 === o) { @@ -104350,7 +106433,7 @@ object-assign f < s; ) - O(e, f++); + E(e, f++); })), (M = h.prototype = k(Be)), d(M, 'constructor', h)) @@ -104360,14 +106443,14 @@ object-assign i(function() { new h(-1); }) && - N(function(e) { + z(function(e) { new h(), new h(null), new h(1.5), new h(e); }, !0)) || ((h = n(function(e, n, r, o) { var i; return ( l(e, h, u), - x(n) + w(n) ? n instanceof X || 'ArrayBuffer' == (i = _(n)) || 'SharedArrayBuffer' == i @@ -104377,21 +106460,21 @@ object-assign ? new b(n, ke(r, t)) : new b(n) : ve in n - ? Ee(h, n) + ? Ae(h, n) : Ce.call(h, n) : new b(m(n)) ); })), K( - y !== Function.prototype ? A(b).concat(A(y)) : A(b), + y !== Function.prototype ? O(b).concat(O(y)) : O(b), function(e) { e in h || d(h, e, b[e]); } ), (h.prototype = M), r || (M.constructor = h)); - var E = M[he], - T = !!E && ('values' == E.name || null == E.name), + var A = M[he], + T = !!A && ('values' == A.name || null == A.name), C = Re.values; d(h, me, !0), d(M, ve, u), @@ -104403,8 +106486,8 @@ object-assign return u; } }), - (w[u] = h), - a(a.G + a.W + a.F * (h != b), w), + (x[u] = h), + a(a.G + a.W + a.F * (h != b), x), a(a.S, u, { BYTES_PER_ELEMENT: t }), a( a.S + @@ -104416,9 +106499,9 @@ object-assign { from: Ce, of: Le } ), 'BYTES_PER_ELEMENT' in M || d(M, 'BYTES_PER_ELEMENT', t), - a(a.P, u, ze), - j(u), - a(a.P + a.F * Me, u, { set: je }), + a(a.P, u, je), + N(u), + a(a.P + a.F * Me, u, { set: Ne }), a(a.P + a.F * !T, u, Re), r || M.toString == de || (M.toString = de), a( @@ -104428,7 +106511,7 @@ object-assign new h(1).slice(); }), u, - { slice: Ne } + { slice: ze } ), a( a.P + @@ -104445,7 +106528,7 @@ object-assign u, { toLocaleString: De } ), - (z[u] = T ? E : C), + (j[u] = T ? A : C), r || T || d(M, he, C); }); } else e.exports = function() {}; @@ -104551,7 +106634,7 @@ object-assign }; }, function(e, t, n) { - var r = n(23), + var r = n(22), o = Math.max, i = Math.min; e.exports = function(e, t) { @@ -104627,27 +106710,6 @@ object-assign ); }; }, - function(e, t) { - 'function' == typeof Object.create - ? (e.exports = function(e, t) { - (e.super_ = t), - (e.prototype = Object.create(t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })); - }) - : (e.exports = function(e, t) { - e.super_ = t; - var n = function() {}; - (n.prototype = t.prototype), - (e.prototype = new n()), - (e.prototype.constructor = e); - }); - }, function(e, t, n) { 'use strict'; var r = n(76), @@ -104659,9 +106721,9 @@ object-assign return t; }; e.exports = f; - var i = n(57); - i.inherits = n(42); - var a = n(148), + var i = n(56); + i.inherits = n(50); + var a = n(146), s = n(109); i.inherits(f, a); for (var c = o(s.prototype), u = 0; u < c.length; u++) { @@ -104774,6 +106836,78 @@ object-assign return e; }; }, + function(e, t) { + 'function' == typeof Object.create + ? (e.exports = function(e, t) { + (e.super_ = t), + (e.prototype = Object.create(t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })); + }) + : (e.exports = function(e, t) { + e.super_ = t; + var n = function() {}; + (n.prototype = t.prototype), + (e.prototype = new n()), + (e.prototype.constructor = e); + }); + }, + function(e, t, n) { + var r = n(29); + e.exports = Object('z').propertyIsEnumerable(0) + ? Object + : function(e) { + return 'String' == r(e) ? e.split('') : Object(e); + }; + }, + function(e, t) { + t.f = {}.propertyIsEnumerable; + }, + function(e, t, n) { + var r = n(29), + o = n(9)('toStringTag'), + i = + 'Arguments' == + r( + (function() { + return arguments; + })() + ); + e.exports = function(e) { + var t, n, a; + return void 0 === e + ? 'Undefined' + : null === e + ? 'Null' + : 'string' == + typeof (n = (function(e, t) { + try { + return e[t]; + } catch (e) {} + })((t = Object(e)), o)) + ? n + : i + ? r(t) + : 'Object' == (a = r(t)) && 'function' == typeof t.callee + ? 'Arguments' + : a; + }; + }, + function(e, t, n) { + var r = n(4), + o = n(28), + i = n(9)('species'); + e.exports = function(e, t) { + var n, + a = r(e).constructor; + return void 0 === a || null == (n = r(a)[i]) ? t : o(n); + }; + }, function(e, t, n) { 'use strict'; (function(e) { @@ -104783,8 +106917,8 @@ object-assign * @author Feross Aboukhadijeh * @license MIT */ - var r = n(341), - o = n(342), + var r = n(338), + o = n(339), i = n(145); function a() { return c.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823; @@ -104852,9 +106986,9 @@ object-assign : (function(e, t) { if (c.isBuffer(t)) { var n = 0 | p(t.length); - return ( - 0 === (e = s(e, n)).length || t.copy(e, 0, 0, n), e - ); + return 0 === (e = s(e, n)).length + ? e + : (t.copy(e, 0, 0, n), e); } if (t) { if ( @@ -104927,7 +107061,7 @@ object-assign case 'utf8': case 'utf-8': case void 0: - return F(e).length; + return q(e).length; case 'ucs2': case 'ucs-2': case 'utf16le': @@ -104936,9 +107070,9 @@ object-assign case 'hex': return n >>> 1; case 'base64': - return q(e).length; + return B(e).length; default: - if (r) return F(e).length; + if (r) return q(e).length; (t = ('' + t).toLowerCase()), (r = !0); } } @@ -104955,22 +107089,22 @@ object-assign for (e || (e = 'utf8'); ; ) switch (e) { case 'hex': - return T(this, t, n); + return C(this, t, n); case 'utf8': case 'utf-8': - return A(this, t, n); - case 'ascii': return O(this, t, n); + case 'ascii': + return A(this, t, n); case 'latin1': case 'binary': - return E(this, t, n); + return T(this, t, n); case 'base64': return S(this, t, n); case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': - return C(this, t, n); + return L(this, t, n); default: if (r) throw new TypeError('Unknown encoding: ' + e); (e = (e + '').toLowerCase()), (r = !0); @@ -105066,10 +107200,10 @@ object-assign return a; } function _(e, t, n, r) { - return B(F(t, e.length - n), e, n, r); + return H(q(t, e.length - n), e, n, r); } - function x(e, t, n, r) { - return B( + function w(e, t, n, r) { + return H( (function(e) { for (var t = [], n = 0; n < e.length; ++n) t.push(255 & e.charCodeAt(n)); @@ -105080,14 +107214,14 @@ object-assign r ); } - function w(e, t, n, r) { - return x(e, t, n, r); + function x(e, t, n, r) { + return w(e, t, n, r); } function M(e, t, n, r) { - return B(q(t), e, n, r); + return H(B(t), e, n, r); } function k(e, t, n, r) { - return B( + return H( (function(e, t) { for ( var n, r, o, i = [], a = 0; @@ -105111,7 +107245,7 @@ object-assign ? r.fromByteArray(e) : r.fromByteArray(e.slice(t, n)); } - function A(e, t, n) { + function O(e, t, n) { n = Math.min(e.length, n); for (var r = [], o = t; o < n; ) { var i, @@ -105168,87 +107302,15 @@ object-assign } return (function(e) { var t = e.length; - if (t <= 4096) return String.fromCharCode.apply(String, e); + if (t <= E) return String.fromCharCode.apply(String, e); for (var n = '', r = 0; r < t; ) n += String.fromCharCode.apply( String, - e.slice(r, (r += 4096)) + e.slice(r, (r += E)) ); return n; })(r); } - function O(e, t, n) { - var r = ''; - n = Math.min(e.length, n); - for (var o = t; o < n; ++o) - r += String.fromCharCode(127 & e[o]); - return r; - } - function E(e, t, n) { - var r = ''; - n = Math.min(e.length, n); - for (var o = t; o < n; ++o) r += String.fromCharCode(e[o]); - return r; - } - function T(e, t, n) { - var r, - o = e.length; - (!t || t < 0) && (t = 0), (!n || n < 0 || n > o) && (n = o); - for (var i = '', a = t; a < n; ++a) - i += - (r = e[a]) < 16 ? '0' + r.toString(16) : r.toString(16); - return i; - } - function C(e, t, n) { - for ( - var r = e.slice(t, n), o = '', i = 0; - i < r.length; - i += 2 - ) - o += String.fromCharCode(r[i] + 256 * r[i + 1]); - return o; - } - function L(e, t, n) { - if (e % 1 != 0 || e < 0) - throw new RangeError('offset is not uint'); - if (e + t > n) - throw new RangeError( - 'Trying to access beyond buffer length' - ); - } - function P(e, t, n, r, o, i) { - if (!c.isBuffer(e)) - throw new TypeError( - '"buffer" argument must be a Buffer instance' - ); - if (t > o || t < i) - throw new RangeError('"value" argument is out of bounds'); - if (n + r > e.length) - throw new RangeError('Index out of range'); - } - function D(e, t, n, r) { - t < 0 && (t = 65535 + t + 1); - for (var o = 0, i = Math.min(e.length - n, 2); o < i; ++o) - e[n + o] = - (t & (255 << (8 * (r ? o : 1 - o)))) >>> - (8 * (r ? o : 1 - o)); - } - function z(e, t, n, r) { - t < 0 && (t = 4294967295 + t + 1); - for (var o = 0, i = Math.min(e.length - n, 4); o < i; ++o) - e[n + o] = (t >>> (8 * (r ? o : 3 - o))) & 255; - } - function N(e, t, n, r, o, i) { - if (n + r > e.length) - throw new RangeError('Index out of range'); - if (n < 0) throw new RangeError('Index out of range'); - } - function j(e, t, n, r, i) { - return i || N(e, 0, n, 4), o.write(e, t, n, r, 23, 4), n + 4; - } - function R(e, t, n, r, i) { - return i || N(e, 0, n, 8), o.write(e, t, n, r, 52, 8), n + 8; - } (t.Buffer = c), (t.SlowBuffer = function(e) { return +e != e && (e = 0), c.alloc(+e); @@ -105409,7 +107471,7 @@ object-assign return 0 === e ? '' : 0 === arguments.length - ? A(this, 0, e) + ? O(this, 0, e) : g.apply(this, arguments); }), (c.prototype.equals = function(e) { @@ -105500,10 +107562,10 @@ object-assign case 'utf-8': return _(this, e, t, n); case 'ascii': - return x(this, e, t, n); + return w(this, e, t, n); case 'latin1': case 'binary': - return w(this, e, t, n); + return x(this, e, t, n); case 'base64': return M(this, e, t, n); case 'ucs2': @@ -105521,75 +107583,146 @@ object-assign type: 'Buffer', data: Array.prototype.slice.call(this._arr || this, 0) }; - }), - (c.prototype.slice = function(e, t) { - var n, - r = this.length; - if ( - ((e = ~~e) < 0 - ? (e += r) < 0 && (e = 0) - : e > r && (e = r), - (t = void 0 === t ? r : ~~t) < 0 - ? (t += r) < 0 && (t = 0) - : t > r && (t = r), - t < e && (t = e), - c.TYPED_ARRAY_SUPPORT) - ) - (n = this.subarray(e, t)).__proto__ = c.prototype; - else { - var o = t - e; - n = new c(o, void 0); - for (var i = 0; i < o; ++i) n[i] = this[i + e]; - } - return n; - }), + }); + var E = 4096; + function A(e, t, n) { + var r = ''; + n = Math.min(e.length, n); + for (var o = t; o < n; ++o) + r += String.fromCharCode(127 & e[o]); + return r; + } + function T(e, t, n) { + var r = ''; + n = Math.min(e.length, n); + for (var o = t; o < n; ++o) r += String.fromCharCode(e[o]); + return r; + } + function C(e, t, n) { + var r, + o = e.length; + (!t || t < 0) && (t = 0), (!n || n < 0 || n > o) && (n = o); + for (var i = '', a = t; a < n; ++a) + i += + (r = e[a]) < 16 ? '0' + r.toString(16) : r.toString(16); + return i; + } + function L(e, t, n) { + for ( + var r = e.slice(t, n), o = '', i = 0; + i < r.length; + i += 2 + ) + o += String.fromCharCode(r[i] + 256 * r[i + 1]); + return o; + } + function P(e, t, n) { + if (e % 1 != 0 || e < 0) + throw new RangeError('offset is not uint'); + if (e + t > n) + throw new RangeError( + 'Trying to access beyond buffer length' + ); + } + function D(e, t, n, r, o, i) { + if (!c.isBuffer(e)) + throw new TypeError( + '"buffer" argument must be a Buffer instance' + ); + if (t > o || t < i) + throw new RangeError('"value" argument is out of bounds'); + if (n + r > e.length) + throw new RangeError('Index out of range'); + } + function j(e, t, n, r) { + t < 0 && (t = 65535 + t + 1); + for (var o = 0, i = Math.min(e.length - n, 2); o < i; ++o) + e[n + o] = + (t & (255 << (8 * (r ? o : 1 - o)))) >>> + (8 * (r ? o : 1 - o)); + } + function z(e, t, n, r) { + t < 0 && (t = 4294967295 + t + 1); + for (var o = 0, i = Math.min(e.length - n, 4); o < i; ++o) + e[n + o] = (t >>> (8 * (r ? o : 3 - o))) & 255; + } + function N(e, t, n, r, o, i) { + if (n + r > e.length) + throw new RangeError('Index out of range'); + if (n < 0) throw new RangeError('Index out of range'); + } + function R(e, t, n, r, i) { + return i || N(e, 0, n, 4), o.write(e, t, n, r, 23, 4), n + 4; + } + function I(e, t, n, r, i) { + return i || N(e, 0, n, 8), o.write(e, t, n, r, 52, 8), n + 8; + } + (c.prototype.slice = function(e, t) { + var n, + r = this.length; + if ( + ((e = ~~e) < 0 ? (e += r) < 0 && (e = 0) : e > r && (e = r), + (t = void 0 === t ? r : ~~t) < 0 + ? (t += r) < 0 && (t = 0) + : t > r && (t = r), + t < e && (t = e), + c.TYPED_ARRAY_SUPPORT) + ) + (n = this.subarray(e, t)).__proto__ = c.prototype; + else { + var o = t - e; + n = new c(o, void 0); + for (var i = 0; i < o; ++i) n[i] = this[i + e]; + } + return n; + }), (c.prototype.readUIntLE = function(e, t, n) { - (e |= 0), (t |= 0), n || L(e, t, this.length); + (e |= 0), (t |= 0), n || P(e, t, this.length); for (var r = this[e], o = 1, i = 0; ++i < t && (o *= 256); ) r += this[e + i] * o; return r; }), (c.prototype.readUIntBE = function(e, t, n) { - (e |= 0), (t |= 0), n || L(e, t, this.length); + (e |= 0), (t |= 0), n || P(e, t, this.length); for (var r = this[e + --t], o = 1; t > 0 && (o *= 256); ) r += this[e + --t] * o; return r; }), (c.prototype.readUInt8 = function(e, t) { - return t || L(e, 1, this.length), this[e]; + return t || P(e, 1, this.length), this[e]; }), (c.prototype.readUInt16LE = function(e, t) { return ( - t || L(e, 2, this.length), this[e] | (this[e + 1] << 8) + t || P(e, 2, this.length), this[e] | (this[e + 1] << 8) ); }), (c.prototype.readUInt16BE = function(e, t) { return ( - t || L(e, 2, this.length), (this[e] << 8) | this[e + 1] + t || P(e, 2, this.length), (this[e] << 8) | this[e + 1] ); }), (c.prototype.readUInt32LE = function(e, t) { return ( - t || L(e, 4, this.length), + t || P(e, 4, this.length), (this[e] | (this[e + 1] << 8) | (this[e + 2] << 16)) + 16777216 * this[e + 3] ); }), (c.prototype.readUInt32BE = function(e, t) { return ( - t || L(e, 4, this.length), + t || P(e, 4, this.length), 16777216 * this[e] + ((this[e + 1] << 16) | (this[e + 2] << 8) | this[e + 3]) ); }), (c.prototype.readIntLE = function(e, t, n) { - (e |= 0), (t |= 0), n || L(e, t, this.length); + (e |= 0), (t |= 0), n || P(e, t, this.length); for (var r = this[e], o = 1, i = 0; ++i < t && (o *= 256); ) r += this[e + i] * o; return r >= (o *= 128) && (r -= Math.pow(2, 8 * t)), r; }), (c.prototype.readIntBE = function(e, t, n) { - (e |= 0), (t |= 0), n || L(e, t, this.length); + (e |= 0), (t |= 0), n || P(e, t, this.length); for ( var r = t, o = 1, i = this[e + --r]; r > 0 && (o *= 256); @@ -105600,23 +107733,23 @@ object-assign }), (c.prototype.readInt8 = function(e, t) { return ( - t || L(e, 1, this.length), + t || P(e, 1, this.length), 128 & this[e] ? -1 * (255 - this[e] + 1) : this[e] ); }), (c.prototype.readInt16LE = function(e, t) { - t || L(e, 2, this.length); + t || P(e, 2, this.length); var n = this[e] | (this[e + 1] << 8); return 32768 & n ? 4294901760 | n : n; }), (c.prototype.readInt16BE = function(e, t) { - t || L(e, 2, this.length); + t || P(e, 2, this.length); var n = this[e + 1] | (this[e] << 8); return 32768 & n ? 4294901760 | n : n; }), (c.prototype.readInt32LE = function(e, t) { return ( - t || L(e, 4, this.length), + t || P(e, 4, this.length), this[e] | (this[e + 1] << 8) | (this[e + 2] << 16) | @@ -105625,7 +107758,7 @@ object-assign }), (c.prototype.readInt32BE = function(e, t) { return ( - t || L(e, 4, this.length), + t || P(e, 4, this.length), (this[e] << 24) | (this[e + 1] << 16) | (this[e + 2] << 8) | @@ -105634,29 +107767,29 @@ object-assign }), (c.prototype.readFloatLE = function(e, t) { return ( - t || L(e, 4, this.length), o.read(this, e, !0, 23, 4) + t || P(e, 4, this.length), o.read(this, e, !0, 23, 4) ); }), (c.prototype.readFloatBE = function(e, t) { return ( - t || L(e, 4, this.length), o.read(this, e, !1, 23, 4) + t || P(e, 4, this.length), o.read(this, e, !1, 23, 4) ); }), (c.prototype.readDoubleLE = function(e, t) { return ( - t || L(e, 8, this.length), o.read(this, e, !0, 52, 8) + t || P(e, 8, this.length), o.read(this, e, !0, 52, 8) ); }), (c.prototype.readDoubleBE = function(e, t) { return ( - t || L(e, 8, this.length), o.read(this, e, !1, 52, 8) + t || P(e, 8, this.length), o.read(this, e, !1, 52, 8) ); }), (c.prototype.writeUIntLE = function(e, t, n, r) { (e = +e), (t |= 0), (n |= 0), - r || P(this, e, t, n, Math.pow(2, 8 * n) - 1, 0); + r || D(this, e, t, n, Math.pow(2, 8 * n) - 1, 0); var o = 1, i = 0; for (this[t] = 255 & e; ++i < n && (o *= 256); ) @@ -105667,7 +107800,7 @@ object-assign (e = +e), (t |= 0), (n |= 0), - r || P(this, e, t, n, Math.pow(2, 8 * n) - 1, 0); + r || D(this, e, t, n, Math.pow(2, 8 * n) - 1, 0); var o = n - 1, i = 1; for (this[t + o] = 255 & e; --o >= 0 && (i *= 256); ) @@ -105678,7 +107811,7 @@ object-assign return ( (e = +e), (t |= 0), - n || P(this, e, t, 1, 255, 0), + n || D(this, e, t, 1, 255, 0), c.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), (this[t] = 255 & e), t + 1 @@ -105688,10 +107821,10 @@ object-assign return ( (e = +e), (t |= 0), - n || P(this, e, t, 2, 65535, 0), + n || D(this, e, t, 2, 65535, 0), c.TYPED_ARRAY_SUPPORT ? ((this[t] = 255 & e), (this[t + 1] = e >>> 8)) - : D(this, e, t, !0), + : j(this, e, t, !0), t + 2 ); }), @@ -105699,10 +107832,10 @@ object-assign return ( (e = +e), (t |= 0), - n || P(this, e, t, 2, 65535, 0), + n || D(this, e, t, 2, 65535, 0), c.TYPED_ARRAY_SUPPORT ? ((this[t] = e >>> 8), (this[t + 1] = 255 & e)) - : D(this, e, t, !1), + : j(this, e, t, !1), t + 2 ); }), @@ -105710,7 +107843,7 @@ object-assign return ( (e = +e), (t |= 0), - n || P(this, e, t, 4, 4294967295, 0), + n || D(this, e, t, 4, 4294967295, 0), c.TYPED_ARRAY_SUPPORT ? ((this[t + 3] = e >>> 24), (this[t + 2] = e >>> 16), @@ -105724,7 +107857,7 @@ object-assign return ( (e = +e), (t |= 0), - n || P(this, e, t, 4, 4294967295, 0), + n || D(this, e, t, 4, 4294967295, 0), c.TYPED_ARRAY_SUPPORT ? ((this[t] = e >>> 24), (this[t + 1] = e >>> 16), @@ -105737,7 +107870,7 @@ object-assign (c.prototype.writeIntLE = function(e, t, n, r) { if (((e = +e), (t |= 0), !r)) { var o = Math.pow(2, 8 * n - 1); - P(this, e, t, n, o - 1, -o); + D(this, e, t, n, o - 1, -o); } var i = 0, a = 1, @@ -105750,7 +107883,7 @@ object-assign (c.prototype.writeIntBE = function(e, t, n, r) { if (((e = +e), (t |= 0), !r)) { var o = Math.pow(2, 8 * n - 1); - P(this, e, t, n, o - 1, -o); + D(this, e, t, n, o - 1, -o); } var i = n - 1, a = 1, @@ -105764,7 +107897,7 @@ object-assign return ( (e = +e), (t |= 0), - n || P(this, e, t, 1, 127, -128), + n || D(this, e, t, 1, 127, -128), c.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), e < 0 && (e = 255 + e + 1), (this[t] = 255 & e), @@ -105775,10 +107908,10 @@ object-assign return ( (e = +e), (t |= 0), - n || P(this, e, t, 2, 32767, -32768), + n || D(this, e, t, 2, 32767, -32768), c.TYPED_ARRAY_SUPPORT ? ((this[t] = 255 & e), (this[t + 1] = e >>> 8)) - : D(this, e, t, !0), + : j(this, e, t, !0), t + 2 ); }), @@ -105786,10 +107919,10 @@ object-assign return ( (e = +e), (t |= 0), - n || P(this, e, t, 2, 32767, -32768), + n || D(this, e, t, 2, 32767, -32768), c.TYPED_ARRAY_SUPPORT ? ((this[t] = e >>> 8), (this[t + 1] = 255 & e)) - : D(this, e, t, !1), + : j(this, e, t, !1), t + 2 ); }), @@ -105797,7 +107930,7 @@ object-assign return ( (e = +e), (t |= 0), - n || P(this, e, t, 4, 2147483647, -2147483648), + n || D(this, e, t, 4, 2147483647, -2147483648), c.TYPED_ARRAY_SUPPORT ? ((this[t] = 255 & e), (this[t + 1] = e >>> 8), @@ -105811,7 +107944,7 @@ object-assign return ( (e = +e), (t |= 0), - n || P(this, e, t, 4, 2147483647, -2147483648), + n || D(this, e, t, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), c.TYPED_ARRAY_SUPPORT ? ((this[t] = e >>> 24), @@ -105823,16 +107956,16 @@ object-assign ); }), (c.prototype.writeFloatLE = function(e, t, n) { - return j(this, e, t, !0, n); + return R(this, e, t, !0, n); }), (c.prototype.writeFloatBE = function(e, t, n) { - return j(this, e, t, !1, n); + return R(this, e, t, !1, n); }), (c.prototype.writeDoubleLE = function(e, t, n) { - return R(this, e, t, !0, n); + return I(this, e, t, !0, n); }), (c.prototype.writeDoubleBE = function(e, t, n) { - return R(this, e, t, !1, n); + return I(this, e, t, !1, n); }), (c.prototype.copy = function(e, t, n, r) { if ( @@ -105895,14 +108028,14 @@ object-assign ) for (i = t; i < n; ++i) this[i] = e; else { - var a = c.isBuffer(e) ? e : F(new c(e, r).toString()), + var a = c.isBuffer(e) ? e : q(new c(e, r).toString()), s = a.length; for (i = 0; i < n - t; ++i) this[i + t] = a[i % s]; } return this; }); - var I = /[^+\/0-9A-Za-z-_]/g; - function F(e, t) { + var F = /[^+\/0-9A-Za-z-_]/g; + function q(e, t) { var n; t = t || 1 / 0; for (var r = e.length, o = null, i = [], a = 0; a < r; ++a) { @@ -105951,7 +108084,7 @@ object-assign } return i; } - function q(e) { + function B(e) { return r.toByteArray( (function(e) { if ( @@ -105959,7 +108092,7 @@ object-assign return e.trim ? e.trim() : e.replace(/^\s+|\s+$/g, ''); - })(e).replace(I, '')).length < 2 + })(e).replace(F, '')).length < 2 ) return ''; for (; e.length % 4 != 0; ) e += '='; @@ -105967,7 +108100,7 @@ object-assign })(e) ); } - function B(e, t, n, r) { + function H(e, t, n, r) { for ( var o = 0; o < r && !(o + n >= t.length || o >= e.length); @@ -105976,176 +108109,7 @@ object-assign t[o + n] = e[o]; return o; } - }.call(this, n(22))); - }, - function(e, t) { - var n, - r, - o = (e.exports = {}); - function i() { - throw new Error('setTimeout has not been defined'); - } - function a() { - throw new Error('clearTimeout has not been defined'); - } - function s(e) { - if (n === setTimeout) return setTimeout(e, 0); - if ((n === i || !n) && setTimeout) - return (n = setTimeout), setTimeout(e, 0); - try { - return n(e, 0); - } catch (t) { - try { - return n.call(null, e, 0); - } catch (t) { - return n.call(this, e, 0); - } - } - } - !(function() { - try { - n = 'function' == typeof setTimeout ? setTimeout : i; - } catch (e) { - n = i; - } - try { - r = 'function' == typeof clearTimeout ? clearTimeout : a; - } catch (e) { - r = a; - } - })(); - var c, - u = [], - l = !1, - f = -1; - function d() { - l && - c && - ((l = !1), - c.length ? (u = c.concat(u)) : (f = -1), - u.length && p()); - } - function p() { - if (!l) { - var e = s(d); - l = !0; - for (var t = u.length; t; ) { - for (c = u, u = []; ++f < t; ) c && c[f].run(); - (f = -1), (t = u.length); - } - (c = null), - (l = !1), - (function(e) { - if (r === clearTimeout) return clearTimeout(e); - if ((r === a || !r) && clearTimeout) - return (r = clearTimeout), clearTimeout(e); - try { - r(e); - } catch (t) { - try { - return r.call(null, e); - } catch (t) { - return r.call(this, e); - } - } - })(e); - } - } - function h(e, t) { - (this.fun = e), (this.array = t); - } - function g() {} - (o.nextTick = function(e) { - var t = new Array(arguments.length - 1); - if (arguments.length > 1) - for (var n = 1; n < arguments.length; n++) - t[n - 1] = arguments[n]; - u.push(new h(e, t)), 1 !== u.length || l || s(p); - }), - (h.prototype.run = function() { - this.fun.apply(null, this.array); - }), - (o.title = 'browser'), - (o.browser = !0), - (o.env = {}), - (o.argv = []), - (o.version = ''), - (o.versions = {}), - (o.on = g), - (o.addListener = g), - (o.once = g), - (o.off = g), - (o.removeListener = g), - (o.removeAllListeners = g), - (o.emit = g), - (o.prependListener = g), - (o.prependOnceListener = g), - (o.listeners = function(e) { - return []; - }), - (o.binding = function(e) { - throw new Error('process.binding is not supported'); - }), - (o.cwd = function() { - return '/'; - }), - (o.chdir = function(e) { - throw new Error('process.chdir is not supported'); - }), - (o.umask = function() { - return 0; - }); - }, - function(e, t, n) { - var r = n(29); - e.exports = Object('z').propertyIsEnumerable(0) - ? Object - : function(e) { - return 'String' == r(e) ? e.split('') : Object(e); - }; - }, - function(e, t) { - t.f = {}.propertyIsEnumerable; - }, - function(e, t, n) { - var r = n(29), - o = n(9)('toStringTag'), - i = - 'Arguments' == - r( - (function() { - return arguments; - })() - ); - e.exports = function(e) { - var t, n, a; - return void 0 === e - ? 'Undefined' - : null === e - ? 'Null' - : 'string' == - typeof (n = (function(e, t) { - try { - return e[t]; - } catch (e) {} - })((t = Object(e)), o)) - ? n - : i - ? r(t) - : 'Object' == (a = r(t)) && 'function' == typeof t.callee - ? 'Arguments' - : a; - }; - }, - function(e, t, n) { - var r = n(4), - o = n(28), - i = n(9)('species'); - e.exports = function(e, t) { - var n, - a = r(e).constructor; - return void 0 === a || null == (n = r(a)[i]) ? t : o(n); - }; + }.call(this, n(26))); }, function(e, t, n) { (function(e) { @@ -106204,7 +108168,7 @@ object-assign ); }), (t.isBuffer = e.isBuffer); - }.call(this, n(51).Buffer)); + }.call(this, n(55).Buffer)); }, function(e, t) { e.exports = i; @@ -106316,7 +108280,7 @@ object-assign }, function(e, t, n) { 'use strict'; - var r = n(55), + var r = n(53), o = RegExp.prototype.exec; e.exports = function(e, t) { var n = e.exec; @@ -106469,27 +108433,33 @@ object-assign var r = n(5), o = n(1), i = n(15), - a = n(49), + a = n(48), s = n(33), - c = n(70), - u = n(48), + c = n(69), + u = n(47), l = n(6), f = n(3), - d = n(66), - p = n(44), + d = n(65), + p = n(43), h = n(89); e.exports = function(e, t, n, g, m, b) { var y = r[e], v = y, _ = m ? 'set' : 'add', - x = v && v.prototype, - w = {}, + w = v && v.prototype, + x = {}, M = function(e) { - var t = x[e]; + var t = w[e]; i( - x, + w, e, - 'delete' == e || 'has' == e + 'delete' == e + ? function(e) { + return ( + !(b && !l(e)) && t.call(this, 0 === e ? 0 : e) + ); + } + : 'has' == e ? function(e) { return ( !(b && !l(e)) && t.call(this, 0 === e ? 0 : e) @@ -106513,43 +108483,43 @@ object-assign if ( 'function' == typeof v && (b || - (x.forEach && + (w.forEach && !f(function() { new v().entries().next(); }))) ) { var k = new v(), S = k[_](b ? {} : -0, 1) != k, - A = f(function() { + O = f(function() { k.has(1); }), - O = d(function(e) { + E = d(function(e) { new v(e); }), - E = + A = !b && f(function() { for (var e = new v(), t = 5; t--; ) e[_](t, t); return !e.has(-0); }); - O || + E || (((v = t(function(t, n) { u(t, v, e); var r = h(new y(), t, v); return null != n && c(n, m, r[_], r), r; - })).prototype = x), - (x.constructor = v)), - (A || E) && (M('delete'), M('has'), m && M('get')), - (E || S) && M(_), - b && x.clear && delete x.clear; + })).prototype = w), + (w.constructor = v)), + (O || A) && (M('delete'), M('has'), m && M('get')), + (A || S) && M(_), + b && w.clear && delete w.clear; } else (v = g.getConstructor(t, e, m, _)), a(v.prototype, n), (s.NEED = !0); return ( p(v, e), - (w[e] = v), - o(o.G + o.W + o.F * (v != y), w), + (x[e] = v), + o(o.G + o.W + o.F * (v != y), x), b || g.setStrong(v, e, m), v ); @@ -106670,7 +108640,7 @@ object-assign u = null, l = 0, f = [], - d = n(340); + d = n(337); function p(e, t) { for (var n = 0; n < e.length; n++) { var r = e[n], @@ -106748,8 +108718,8 @@ object-assign if (t.singleton) { var a = l++; (n = u || (u = b(t))), - (r = w.bind(null, n, a, !1)), - (o = w.bind(null, n, a, !0)); + (r = x.bind(null, n, a, !1)), + (o = x.bind(null, n, a, !0)); } else e.sourceMap && 'function' == typeof URL && @@ -106826,14 +108796,14 @@ object-assign ); }; var _, - x = + w = ((_ = []), function(e, t) { return (_[e] = t), _.filter(Boolean).join('\n'); }); - function w(e, t, n, r) { + function x(e, t, n, r) { var o = n ? '' : r.css; - if (e.styleSheet) e.styleSheet.cssText = x(t, o); + if (e.styleSheet) e.styleSheet.cssText = w(t, o); else { var i = document.createTextNode(o), a = e.childNodes; @@ -106866,6 +108836,124 @@ object-assign (e.href = URL.createObjectURL(a)), s && URL.revokeObjectURL(s); } }, + function(e, t) { + var n, + r, + o = (e.exports = {}); + function i() { + throw new Error('setTimeout has not been defined'); + } + function a() { + throw new Error('clearTimeout has not been defined'); + } + function s(e) { + if (n === setTimeout) return setTimeout(e, 0); + if ((n === i || !n) && setTimeout) + return (n = setTimeout), setTimeout(e, 0); + try { + return n(e, 0); + } catch (t) { + try { + return n.call(null, e, 0); + } catch (t) { + return n.call(this, e, 0); + } + } + } + !(function() { + try { + n = 'function' == typeof setTimeout ? setTimeout : i; + } catch (e) { + n = i; + } + try { + r = 'function' == typeof clearTimeout ? clearTimeout : a; + } catch (e) { + r = a; + } + })(); + var c, + u = [], + l = !1, + f = -1; + function d() { + l && + c && + ((l = !1), + c.length ? (u = c.concat(u)) : (f = -1), + u.length && p()); + } + function p() { + if (!l) { + var e = s(d); + l = !0; + for (var t = u.length; t; ) { + for (c = u, u = []; ++f < t; ) c && c[f].run(); + (f = -1), (t = u.length); + } + (c = null), + (l = !1), + (function(e) { + if (r === clearTimeout) return clearTimeout(e); + if ((r === a || !r) && clearTimeout) + return (r = clearTimeout), clearTimeout(e); + try { + r(e); + } catch (t) { + try { + return r.call(null, e); + } catch (t) { + return r.call(this, e); + } + } + })(e); + } + } + function h(e, t) { + (this.fun = e), (this.array = t); + } + function g() {} + (o.nextTick = function(e) { + var t = new Array(arguments.length - 1); + if (arguments.length > 1) + for (var n = 1; n < arguments.length; n++) + t[n - 1] = arguments[n]; + u.push(new h(e, t)), 1 !== u.length || l || s(p); + }), + (h.prototype.run = function() { + this.fun.apply(null, this.array); + }), + (o.title = 'browser'), + (o.browser = !0), + (o.env = {}), + (o.argv = []), + (o.version = ''), + (o.versions = {}), + (o.on = g), + (o.addListener = g), + (o.once = g), + (o.off = g), + (o.removeListener = g), + (o.removeAllListeners = g), + (o.emit = g), + (o.prependListener = g), + (o.prependOnceListener = g), + (o.listeners = function(e) { + return []; + }), + (o.binding = function(e) { + throw new Error('process.binding is not supported'); + }), + (o.cwd = function() { + return '/'; + }), + (o.chdir = function(e) { + throw new Error('process.chdir is not supported'); + }), + (o.umask = function() { + return 0; + }); + }, function(e, t, n) { 'use strict'; (function(t) { @@ -106908,10 +108996,10 @@ object-assign } }) : (e.exports = t); - }.call(this, n(52))); + }.call(this, n(75))); }, function(e, t, n) { - var r = n(51), + var r = n(55), o = r.Buffer; function i(e, t) { for (var n in e) t[n] = e[n]; @@ -106954,7 +109042,7 @@ object-assign }, function(e, t, n) { 'use strict'; - var r = n(363); + var r = n(362); e.exports = Function.prototype.bind || r; }, function(e, t) { @@ -107022,7 +109110,7 @@ object-assign try { (r = n(27)( Function.call, - n(24).f(Object.prototype, '__proto__').set, + n(23).f(Object.prototype, '__proto__').set, 2 ))(e, []), (t = !(e instanceof Array)); @@ -107059,7 +109147,7 @@ object-assign }, function(e, t, n) { 'use strict'; - var r = n(23), + var r = n(22), o = n(30); e.exports = function(e) { var t = String(o(this)), @@ -107095,7 +109183,7 @@ object-assign : n; }, function(e, t, n) { - var r = n(23), + var r = n(22), o = n(30); e.exports = function(e) { return function(t, n) { @@ -107128,9 +109216,9 @@ object-assign o = n(1), i = n(15), a = n(19), - s = n(45), + s = n(44), c = n(129), - u = n(44), + u = n(43), l = n(41), f = n(9)('iterator'), d = !([].keys && 'next' in [].keys()), @@ -107142,7 +109230,7 @@ object-assign var y, v, _, - x = function(e) { + w = function(e) { if (!d && e in S) return S[e]; switch (e) { case 'keys': @@ -107155,36 +109243,36 @@ object-assign return new n(this, e); }; }, - w = t + ' Iterator', + x = t + ' Iterator', M = 'values' == g, k = !1, S = e.prototype, - A = S[f] || S['@@iterator'] || (g && S[g]), - O = A || x(g), - E = g ? (M ? x('entries') : O) : void 0, - T = ('Array' == t && S.entries) || A; + O = S[f] || S['@@iterator'] || (g && S[g]), + E = O || w(g), + A = g ? (M ? w('entries') : E) : void 0, + T = ('Array' == t && S.entries) || O; if ( (T && (_ = l(T.call(new e()))) !== Object.prototype && _.next && - (u(_, w, !0), r || 'function' == typeof _[f] || a(_, f, p)), + (u(_, x, !0), r || 'function' == typeof _[f] || a(_, f, p)), M && - A && - 'values' !== A.name && + O && + 'values' !== O.name && ((k = !0), - (O = function() { - return A.call(this); + (E = function() { + return O.call(this); })), - (r && !b) || (!d && !k && S[f]) || a(S, f, O), - (s[t] = O), - (s[w] = p), + (r && !b) || (!d && !k && S[f]) || a(S, f, E), + (s[t] = E), + (s[x] = p), g) ) if ( ((y = { - values: M ? O : x('values'), - keys: m ? O : x('keys'), - entries: E + values: M ? E : w('values'), + keys: m ? E : w('keys'), + entries: A }), b) ) @@ -107226,7 +109314,7 @@ object-assign }; }, function(e, t, n) { - var r = n(45), + var r = n(44), o = n(9)('iterator'), i = Array.prototype; e.exports = function(e) { @@ -107242,9 +109330,9 @@ object-assign }; }, function(e, t, n) { - var r = n(55), + var r = n(53), o = n(9)('iterator'), - i = n(45); + i = n(44); e.exports = n(14).getIteratorMethod = function(e) { if (null != e) return e[o] || e['@@iterator'] || i[r(e)]; }; @@ -107271,9 +109359,9 @@ object-assign }, function(e, t, n) { 'use strict'; - var r = n(46), + var r = n(45), o = n(133), - i = n(45), + i = n(44), a = n(20); (e.exports = n(94)( Array, @@ -107300,7 +109388,7 @@ object-assign 'use strict'; var r, o, - i = n(67), + i = n(66), a = RegExp.prototype.exec, s = String.prototype.replace, c = a, @@ -107424,33 +109512,35 @@ object-assign var r = n(5), o = n(13), i = n(36), - a = n(73), + a = n(72), s = n(19), - c = n(49), + c = n(48), u = n(3), - l = n(48), - f = n(23), + l = n(47), + f = n(22), d = n(11), p = n(141), h = n(40).f, g = n(12).f, m = n(101), - b = n(44), - y = r.ArrayBuffer, - v = r.DataView, - _ = r.Math, - x = r.RangeError, - w = r.Infinity, - M = y, - k = _.abs, - S = _.pow, - A = _.floor, - O = _.log, - E = _.LN2, - T = o ? '_b' : 'buffer', - C = o ? '_l' : 'byteLength', - L = o ? '_o' : 'byteOffset'; - function P(e, t, n) { + b = n(43), + y = 'prototype', + v = 'Wrong index!', + _ = r.ArrayBuffer, + w = r.DataView, + x = r.Math, + M = r.RangeError, + k = r.Infinity, + S = _, + O = x.abs, + E = x.pow, + A = x.floor, + T = x.log, + C = x.LN2, + L = o ? '_b' : 'buffer', + P = o ? '_l' : 'byteLength', + D = o ? '_o' : 'byteOffset'; + function j(e, t, n) { var r, o, i, @@ -107458,21 +109548,21 @@ object-assign s = 8 * n - t - 1, c = (1 << s) - 1, u = c >> 1, - l = 23 === t ? S(2, -24) - S(2, -77) : 0, + l = 23 === t ? E(2, -24) - E(2, -77) : 0, f = 0, d = e < 0 || (0 === e && 1 / e < 0) ? 1 : 0; for ( - (e = k(e)) != e || e === w + (e = O(e)) != e || e === k ? ((o = e != e ? 1 : 0), (r = c)) - : ((r = A(O(e) / E)), - e * (i = S(2, -r)) < 1 && (r--, (i *= 2)), - (e += r + u >= 1 ? l / i : l * S(2, 1 - u)) * i >= 2 && + : ((r = A(T(e) / C)), + e * (i = E(2, -r)) < 1 && (r--, (i *= 2)), + (e += r + u >= 1 ? l / i : l * E(2, 1 - u)) * i >= 2 && (r++, (i /= 2)), r + u >= c ? ((o = 0), (r = c)) : r + u >= 1 - ? ((o = (e * i - 1) * S(2, t)), (r += u)) - : ((o = e * S(2, u - 1) * S(2, t)), (r = 0))); + ? ((o = (e * i - 1) * E(2, t)), (r += u)) + : ((o = e * E(2, u - 1) * E(2, t)), (r = 0))); t >= 8; a[f++] = 255 & o, o /= 256, t -= 8 ); @@ -107483,7 +109573,7 @@ object-assign ); return (a[--f] |= 128 * d), a; } - function D(e, t, n) { + function z(e, t, n) { var r, o = 8 * n - t - 1, i = (1 << o) - 1, @@ -107500,21 +109590,21 @@ object-assign ); if (0 === l) l = 1 - a; else { - if (l === i) return r ? NaN : u ? -w : w; - (r += S(2, t)), (l -= a); + if (l === i) return r ? NaN : u ? -k : k; + (r += E(2, t)), (l -= a); } - return (u ? -1 : 1) * r * S(2, l - t); + return (u ? -1 : 1) * r * E(2, l - t); } - function z(e) { + function N(e) { return (e[3] << 24) | (e[2] << 16) | (e[1] << 8) | e[0]; } - function N(e) { + function R(e) { return [255 & e]; } - function j(e) { + function I(e) { return [255 & e, (e >> 8) & 255]; } - function R(e) { + function F(e) { return [ 255 & e, (e >> 8) & 255, @@ -107522,32 +109612,32 @@ object-assign (e >> 24) & 255 ]; } - function I(e) { - return P(e, 52, 8); + function q(e) { + return j(e, 52, 8); } - function F(e) { - return P(e, 23, 4); + function B(e) { + return j(e, 23, 4); } - function q(e, t, n) { - g(e.prototype, t, { + function H(e, t, n) { + g(e[y], t, { get: function() { return this[n]; } }); } - function B(e, t, n, r) { + function Y(e, t, n, r) { var o = p(+n); - if (o + t > e[C]) throw x('Wrong index!'); - var i = e[T]._b, - a = o + e[L], + if (o + t > e[P]) throw M(v); + var i = e[L]._b, + a = o + e[D], s = i.slice(a, a + t); return r ? s : s.reverse(); } - function H(e, t, n, r, o, i) { + function W(e, t, n, r, o, i) { var a = p(+n); - if (a + t > e[C]) throw x('Wrong index!'); + if (a + t > e[P]) throw M(v); for ( - var s = e[T]._b, c = a + e[L], u = r(+o), l = 0; + var s = e[L]._b, c = a + e[D], u = r(+o), l = 0; l < t; l++ ) @@ -107556,124 +109646,124 @@ object-assign if (a.ABV) { if ( !u(function() { - y(1); + _(1); }) || !u(function() { - new y(-1); + new _(-1); }) || u(function() { return ( - new y(), new y(1.5), new y(NaN), 'ArrayBuffer' != y.name + new _(), new _(1.5), new _(NaN), 'ArrayBuffer' != _.name ); }) ) { for ( - var Y, - W = ((y = function(e) { - return l(this, y), new M(p(e)); - }).prototype = M.prototype), - V = h(M), - U = 0; - V.length > U; + var V, + U = ((_ = function(e) { + return l(this, _), new S(p(e)); + })[y] = S[y]), + X = h(S), + G = 0; + X.length > G; ) - (Y = V[U++]) in y || s(y, Y, M[Y]); - i || (W.constructor = y); - } - var X = new v(new y(2)), - G = v.prototype.setInt8; - X.setInt8(0, 2147483648), - X.setInt8(1, 2147483649), - (!X.getInt8(0) && X.getInt8(1)) || + (V = X[G++]) in _ || s(_, V, S[V]); + i || (U.constructor = _); + } + var K = new w(new _(2)), + $ = w[y].setInt8; + K.setInt8(0, 2147483648), + K.setInt8(1, 2147483649), + (!K.getInt8(0) && K.getInt8(1)) || c( - v.prototype, + w[y], { setInt8: function(e, t) { - G.call(this, e, (t << 24) >> 24); + $.call(this, e, (t << 24) >> 24); }, setUint8: function(e, t) { - G.call(this, e, (t << 24) >> 24); + $.call(this, e, (t << 24) >> 24); } }, !0 ); } else - (y = function(e) { - l(this, y, 'ArrayBuffer'); + (_ = function(e) { + l(this, _, 'ArrayBuffer'); var t = p(e); - (this._b = m.call(new Array(t), 0)), (this[C] = t); + (this._b = m.call(new Array(t), 0)), (this[P] = t); }), - (v = function(e, t, n) { - l(this, v, 'DataView'), l(e, y, 'DataView'); - var r = e[C], + (w = function(e, t, n) { + l(this, w, 'DataView'), l(e, _, 'DataView'); + var r = e[P], o = f(t); - if (o < 0 || o > r) throw x('Wrong offset!'); + if (o < 0 || o > r) throw M('Wrong offset!'); if (o + (n = void 0 === n ? r - o : d(n)) > r) - throw x('Wrong length!'); - (this[T] = e), (this[L] = o), (this[C] = n); + throw M('Wrong length!'); + (this[L] = e), (this[D] = o), (this[P] = n); }), o && - (q(y, 'byteLength', '_l'), - q(v, 'buffer', '_b'), - q(v, 'byteLength', '_l'), - q(v, 'byteOffset', '_o')), - c(v.prototype, { + (H(_, 'byteLength', '_l'), + H(w, 'buffer', '_b'), + H(w, 'byteLength', '_l'), + H(w, 'byteOffset', '_o')), + c(w[y], { getInt8: function(e) { - return (B(this, 1, e)[0] << 24) >> 24; + return (Y(this, 1, e)[0] << 24) >> 24; }, getUint8: function(e) { - return B(this, 1, e)[0]; + return Y(this, 1, e)[0]; }, getInt16: function(e) { - var t = B(this, 2, e, arguments[1]); + var t = Y(this, 2, e, arguments[1]); return (((t[1] << 8) | t[0]) << 16) >> 16; }, getUint16: function(e) { - var t = B(this, 2, e, arguments[1]); + var t = Y(this, 2, e, arguments[1]); return (t[1] << 8) | t[0]; }, getInt32: function(e) { - return z(B(this, 4, e, arguments[1])); + return N(Y(this, 4, e, arguments[1])); }, getUint32: function(e) { - return z(B(this, 4, e, arguments[1])) >>> 0; + return N(Y(this, 4, e, arguments[1])) >>> 0; }, getFloat32: function(e) { - return D(B(this, 4, e, arguments[1]), 23, 4); + return z(Y(this, 4, e, arguments[1]), 23, 4); }, getFloat64: function(e) { - return D(B(this, 8, e, arguments[1]), 52, 8); + return z(Y(this, 8, e, arguments[1]), 52, 8); }, setInt8: function(e, t) { - H(this, 1, e, N, t); + W(this, 1, e, R, t); }, setUint8: function(e, t) { - H(this, 1, e, N, t); + W(this, 1, e, R, t); }, setInt16: function(e, t) { - H(this, 2, e, j, t, arguments[2]); + W(this, 2, e, I, t, arguments[2]); }, setUint16: function(e, t) { - H(this, 2, e, j, t, arguments[2]); + W(this, 2, e, I, t, arguments[2]); }, setInt32: function(e, t) { - H(this, 4, e, R, t, arguments[2]); + W(this, 4, e, F, t, arguments[2]); }, setUint32: function(e, t) { - H(this, 4, e, R, t, arguments[2]); + W(this, 4, e, F, t, arguments[2]); }, setFloat32: function(e, t) { - H(this, 4, e, F, t, arguments[2]); + W(this, 4, e, B, t, arguments[2]); }, setFloat64: function(e, t) { - H(this, 8, e, I, t, arguments[2]); + W(this, 8, e, q, t, arguments[2]); } }); - b(y, 'ArrayBuffer'), - b(v, 'DataView'), - s(v.prototype, a.VIEW, !0), - (t.ArrayBuffer = y), - (t.DataView = v); + b(_, 'ArrayBuffer'), + b(w, 'DataView'), + s(w[y], a.VIEW, !0), + (t.ArrayBuffer = _), + (t.DataView = w); }, function(e, t) { function n() { @@ -107856,12 +109946,12 @@ object-assign }); }, function(e, t, n) { - ((t = e.exports = n(148)).Stream = t), + ((t = e.exports = n(146)).Stream = t), (t.Readable = t), (t.Writable = n(109)), - (t.Duplex = n(43)), - (t.Transform = n(152)), - (t.PassThrough = n(349)); + (t.Duplex = n(42)), + (t.Transform = n(150)), + (t.PassThrough = n(348)); }, function(e, t, n) { 'use strict'; @@ -107892,17 +109982,17 @@ object-assign ? r : i.nextTick; y.WritableState = b; - var u = n(57); - u.inherits = n(42); + var u = n(56); + u.inherits = n(50); var l, - f = { deprecate: n(348) }, - d = n(149), + f = { deprecate: n(347) }, + d = n(147), p = n(77).Buffer, h = o.Uint8Array || function() {}, - g = n(150); + g = n(148); function m() {} function b(e, t) { - (s = s || n(43)), (e = e || {}); + (s = s || n(42)), (e = e || {}); var r = t instanceof s; (this.objectMode = !!e.objectMode), r && @@ -107955,12 +110045,12 @@ object-assign k(e, t)); })(e, n, r, t, o); else { - var a = w(n); + var a = x(n); a || n.corked || n.bufferProcessing || !n.bufferedRequest || - x(e, n), + w(e, n), r ? c(_, e, n, a, o) : _(e, n, a, o); } })(t, e); @@ -107977,7 +110067,7 @@ object-assign } function y(e) { if ( - ((s = s || n(43)), !(l.call(y, this) || this instanceof s)) + ((s = s || n(42)), !(l.call(y, this) || this instanceof s)) ) return new y(e); (this._writableState = new b(e, this)), @@ -108010,7 +110100,7 @@ object-assign r(), k(e, t); } - function x(e, t) { + function w(e, t) { t.bufferProcessing = !0; var n = t.bufferedRequest; if (e._writev && n && n.next) { @@ -108045,7 +110135,7 @@ object-assign } (t.bufferedRequest = n), (t.bufferProcessing = !1); } - function w(e) { + function x(e) { return ( e.ending && 0 === e.length && @@ -108064,7 +110154,7 @@ object-assign }); } function k(e, t) { - var n = w(t); + var n = x(t); return ( n && ((function(e, t) { @@ -108211,7 +110301,7 @@ object-assign e.finished || e.bufferProcessing || !e.bufferedRequest || - x(this, e)); + w(this, e)); }), (y.prototype.setDefaultEncoding = function(e) { if ( @@ -108282,12 +110372,12 @@ object-assign (y.prototype._destroy = function(e, t) { this.end(), t(e); }); - }.call(this, n(52), n(146).setImmediate, n(22))); + }.call(this, n(75), n(345).setImmediate, n(26))); }, function(e, t, n) { 'use strict'; - var r = n(360), - o = n(362), + var r = n(359), + o = n(361), i = 'function' == typeof Symbol && 'symbol' == typeof Symbol(), a = Object.prototype.toString, s = @@ -108308,10 +110398,10 @@ object-assign })(), c = function(e, t, n, r) { var o; - (!(t in e) || - ('function' == typeof (o = r) && - '[object Function]' === a.call(o) && - r())) && + (t in e && + ('function' != typeof (o = r) || + '[object Function]' !== a.call(o) || + !r())) || (s ? Object.defineProperty(e, t, { configurable: !0, @@ -108598,54 +110688,54 @@ object-assign v < t.length; _ += t[v].length, ++v ) { - var x = t[v]; + var w = t[v]; if (t.length > e.length) return; - if (!(x instanceof o)) { + if (!(w instanceof o)) { if (g && v != t.length - 1) { - if (((d.lastIndex = _), !(O = d.exec(e)))) + if (((d.lastIndex = _), !(E = d.exec(e)))) break; for ( - var w = O.index + (h ? O[1].length : 0), - M = O.index + O[0].length, + var x = E.index + (h ? E[1].length : 0), + M = E.index + E[0].length, k = v, S = _, - A = t.length; - k < A && + O = t.length; + k < O && (S < M || (!t[k].type && !t[k - 1].greedy)); ++k ) - w >= (S += t[k].length) && (++v, (_ = S)); + x >= (S += t[k].length) && (++v, (_ = S)); if (t[v] instanceof o) continue; - (E = k - v), - (x = e.slice(_, S)), - (O.index -= _); + (A = k - v), + (w = e.slice(_, S)), + (E.index -= _); } else { d.lastIndex = 0; - var O = d.exec(x), - E = 1; + var E = d.exec(w), + A = 1; } - if (O) { - h && (m = O[1] ? O[1].length : 0), + if (E) { + h && (m = E[1] ? E[1].length : 0), (M = - (w = O.index + m) + - (O = O[0].slice(m)).length); - var T = x.slice(0, w), - C = x.slice(M), - L = [v, E]; + (x = E.index + m) + + (E = E[0].slice(m)).length); + var T = w.slice(0, x), + C = w.slice(M), + L = [v, A]; T && (++v, (_ += T.length), L.push(T)); var P = new o( u, - p ? r.tokenize(O, p) : O, + p ? r.tokenize(E, p) : E, b, - O, + E, g ); if ( (L.push(P), C && L.push(C), Array.prototype.splice.apply(t, L), - 1 != E && + 1 != A && r.matchGrammar(e, t, n, v, _, !0, u), s) ) @@ -108781,7 +110871,7 @@ object-assign : {} ); e.exports && (e.exports = n), void 0 !== t && (t.Prism = n); - }.call(this, n(22))); + }.call(this, n(26))); }, function(e, t, n) { e.exports = @@ -108811,7 +110901,7 @@ object-assign function(e, t, n) { var r = n(18), o = n(20), - i = n(63)(!1), + i = n(62)(!1), a = n(83)('IE_PROTO'); e.exports = function(e, t) { var n, @@ -108862,10 +110952,10 @@ object-assign function(e, t, n) { 'use strict'; var r = n(37), - o = n(64), - i = n(54), + o = n(63), + i = n(52), a = n(16), - s = n(53), + s = n(51), c = Object.assign; e.exports = !c || @@ -108963,7 +111053,7 @@ object-assign }, function(e, t, n) { var r = n(5).parseInt, - o = n(65).trim, + o = n(64).trim, i = n(88), a = /^[-+]?0[xX]/; e.exports = @@ -108976,7 +111066,7 @@ object-assign }, function(e, t, n) { var r = n(5).parseFloat, - o = n(65).trim; + o = n(64).trim; e.exports = 1 / r(n(88) + '-0') != -1 / 0 ? function(e) { @@ -109014,7 +111104,7 @@ object-assign 'use strict'; var r = n(39), o = n(34), - i = n(44), + i = n(43), a = {}; n(19)(a, n(9)('iterator'), function() { return this; @@ -109038,7 +111128,7 @@ object-assign function(e, t, n) { var r = n(28), o = n(16), - i = n(53), + i = n(51), a = n(11); e.exports = function(e, t, n, s, c) { r(t); @@ -109107,7 +111197,7 @@ object-assign 'g' != /./g.flags && n(12).f(RegExp.prototype, 'flags', { configurable: !0, - get: n(67) + get: n(66) }); }, function(e, t, n) { @@ -109119,38 +111209,38 @@ object-assign s = n(36), c = n(5), u = n(27), - l = n(55), + l = n(53), f = n(1), d = n(6), p = n(28), - h = n(48), - g = n(70), - m = n(56), + h = n(47), + g = n(69), + m = n(54), b = n(105).set, - y = n(286)(), + y = n(283)(), v = n(137), - _ = n(287), - x = n(71), - w = n(138), + _ = n(284), + w = n(70), + x = n(138), M = c.TypeError, k = c.process, S = k && k.versions, - A = (S && S.v8) || '', - O = c.Promise, - E = 'process' == l(k), + O = (S && S.v8) || '', + E = c.Promise, + A = 'process' == l(k), T = function() {}, C = (o = v.f), L = !!(function() { try { - var e = O.resolve(1), + var e = E.resolve(1), t = ((e.constructor = {})[n(9)('species')] = function(e) { e(T, T); }); return ( - (E || 'function' == typeof PromiseRejectionEvent) && + (A || 'function' == typeof PromiseRejectionEvent) && e.then(T) instanceof t && - 0 !== A.indexOf('6.6') && - -1 === x.indexOf('Chrome/66') + 0 !== O.indexOf('6.6') && + -1 === w.indexOf('Chrome/66') ); } catch (e) {} })(), @@ -109177,7 +111267,7 @@ object-assign l = t.domain; try { s - ? (o || (2 == e._h && j(e), (e._h = 1)), + ? (o || (2 == e._h && N(e), (e._h = 1)), !0 === s ? (n = r) : (l && l.enter(), @@ -109197,21 +111287,21 @@ object-assign ) a(n[i++]); - (e._c = []), (e._n = !1), t && !e._h && z(e); + (e._c = []), (e._n = !1), t && !e._h && j(e); }); } }, - z = function(e) { + j = function(e) { b.call(c, function() { var t, n, r, o = e._v, - i = N(e); + i = z(e); if ( (i && ((t = _(function() { - E + A ? k.emit('unhandledRejection', o, e) : (n = c.onunhandledrejection) ? n({ promise: e, reason: o }) @@ -109219,20 +111309,20 @@ object-assign r.error && r.error('Unhandled promise rejection', o); })), - (e._h = E || N(e) ? 2 : 1)), + (e._h = A || z(e) ? 2 : 1)), (e._a = void 0), i && t.e) ) throw t.v; }); }, - N = function(e) { + z = function(e) { return 1 !== e._h && 0 === (e._a || e._c).length; }, - j = function(e) { + N = function(e) { b.call(c, function() { var t; - E + A ? k.emit('rejectionHandled', e) : (t = c.onrejectionhandled) && t({ promise: e, reason: e._v }); @@ -109270,8 +111360,8 @@ object-assign } }; L || - ((O = function(e) { - h(this, O, 'Promise', '_h'), p(e), r.call(this); + ((E = function(e) { + h(this, E, 'Promise', '_h'), p(e), r.call(this); try { e(u(I, this, 1), u(R, this, 1)); } catch (e) { @@ -109286,13 +111376,13 @@ object-assign (this._v = void 0), (this._h = 0), (this._n = !1); - }).prototype = n(49)(O.prototype, { + }).prototype = n(48)(E.prototype, { then: function(e, t) { - var n = C(m(this, O)); + var n = C(m(this, E)); return ( (n.ok = 'function' != typeof e || e), (n.fail = 'function' == typeof t && t), - (n.domain = E ? k.domain : void 0), + (n.domain = A ? k.domain : void 0), this._c.push(n), this._a && this._a.push(n), this._s && D(this, !1), @@ -109310,11 +111400,11 @@ object-assign (this.reject = u(R, e, 1)); }), (v.f = C = function(e) { - return e === O || e === a ? new i(e) : o(e); + return e === E || e === a ? new i(e) : o(e); })), - f(f.G + f.W + f.F * !L, { Promise: O }), - n(44)(O, 'Promise'), - n(47)('Promise'), + f(f.G + f.W + f.F * !L, { Promise: E }), + n(43)(E, 'Promise'), + n(46)('Promise'), (a = n(14).Promise), f(f.S + f.F * !L, 'Promise', { reject: function(e) { @@ -109324,7 +111414,7 @@ object-assign }), f(f.S + f.F * (s || !L), 'Promise', { resolve: function(e) { - return w(s && this === a ? O : this, e); + return x(s && this === a ? E : this, e); } }), f( @@ -109332,8 +111422,8 @@ object-assign f.F * !( L && - n(66)(function(e) { - O.all(e).catch(T); + n(65)(function(e) { + E.all(e).catch(T); }) ), 'Promise', @@ -109405,16 +111495,16 @@ object-assign 'use strict'; var r = n(12).f, o = n(39), - i = n(49), + i = n(48), a = n(27), - s = n(48), - c = n(70), + s = n(47), + c = n(69), u = n(94), l = n(133), - f = n(47), + f = n(46), d = n(13), p = n(33).fastKey, - h = n(50), + h = n(49), g = d ? '_s' : 'size', m = function(e, t) { var n, @@ -109534,15 +111624,15 @@ object-assign }, function(e, t, n) { 'use strict'; - var r = n(49), + var r = n(48), o = n(33).getWeak, i = n(4), a = n(6), - s = n(48), - c = n(70), - u = n(26), + s = n(47), + c = n(69), + u = n(25), l = n(18), - f = n(50), + f = n(49), d = u(5), p = u(6), h = 0, @@ -109613,7 +111703,7 @@ object-assign }); }, function(e, t, n) { - var r = n(23), + var r = n(22), o = n(11); e.exports = function(e) { if (void 0 === e) return 0; @@ -109625,7 +111715,7 @@ object-assign }, function(e, t, n) { var r = n(40), - o = n(64), + o = n(63), i = n(4), a = n(5).Reflect; e.exports = @@ -109654,7 +111744,7 @@ object-assign function(e, t, n) { var r = n(37), o = n(20), - i = n(54).f; + i = n(52).f; e.exports = function(e) { return function(t) { for ( @@ -109675,116 +111765,6 @@ object-assign return '[object Array]' == n.call(e); }; }, - function(e, t, n) { - (function(e) { - var r = - (void 0 !== e && e) || - ('undefined' != typeof self && self) || - window, - o = Function.prototype.apply; - function i(e, t) { - (this._id = e), (this._clearFn = t); - } - (t.setTimeout = function() { - return new i(o.call(setTimeout, r, arguments), clearTimeout); - }), - (t.setInterval = function() { - return new i( - o.call(setInterval, r, arguments), - clearInterval - ); - }), - (t.clearTimeout = t.clearInterval = function(e) { - e && e.close(); - }), - (i.prototype.unref = i.prototype.ref = function() {}), - (i.prototype.close = function() { - this._clearFn.call(r, this._id); - }), - (t.enroll = function(e, t) { - clearTimeout(e._idleTimeoutId), (e._idleTimeout = t); - }), - (t.unenroll = function(e) { - clearTimeout(e._idleTimeoutId), (e._idleTimeout = -1); - }), - (t._unrefActive = t.active = function(e) { - clearTimeout(e._idleTimeoutId); - var t = e._idleTimeout; - t >= 0 && - (e._idleTimeoutId = setTimeout(function() { - e._onTimeout && e._onTimeout(); - }, t)); - }), - n(344), - (t.setImmediate = - ('undefined' != typeof self && self.setImmediate) || - (void 0 !== e && e.setImmediate) || - (this && this.setImmediate)), - (t.clearImmediate = - ('undefined' != typeof self && self.clearImmediate) || - (void 0 !== e && e.clearImmediate) || - (this && this.clearImmediate)); - }.call(this, n(22))); - }, - function(e, t, n) { - e.exports = o; - var r = n(107).EventEmitter; - function o() { - r.call(this); - } - n(42)(o, r), - (o.Readable = n(108)), - (o.Writable = n(350)), - (o.Duplex = n(351)), - (o.Transform = n(352)), - (o.PassThrough = n(353)), - (o.Stream = o), - (o.prototype.pipe = function(e, t) { - var n = this; - function o(t) { - e.writable && !1 === e.write(t) && n.pause && n.pause(); - } - function i() { - n.readable && n.resume && n.resume(); - } - n.on('data', o), - e.on('drain', i), - e._isStdio || - (t && !1 === t.end) || - (n.on('end', s), n.on('close', c)); - var a = !1; - function s() { - a || ((a = !0), e.end()); - } - function c() { - a || - ((a = !0), 'function' == typeof e.destroy && e.destroy()); - } - function u(e) { - if ((l(), 0 === r.listenerCount(this, 'error'))) throw e; - } - function l() { - n.removeListener('data', o), - e.removeListener('drain', i), - n.removeListener('end', s), - n.removeListener('close', c), - n.removeListener('error', u), - e.removeListener('error', u), - n.removeListener('end', l), - n.removeListener('close', l), - e.removeListener('close', l); - } - return ( - n.on('error', u), - e.on('error', u), - n.on('end', l), - n.on('close', l), - e.on('close', l), - e.emit('pipe', n), - e - ); - }); - }, function(e, t, n) { 'use strict'; (function(t, r) { @@ -109796,22 +111776,22 @@ object-assign var s = function(e, t) { return e.listeners(t).length; }, - c = n(149), + c = n(147), u = n(77).Buffer, l = t.Uint8Array || function() {}, - f = n(57); - f.inherits = n(42); - var d = n(345), + f = n(56); + f.inherits = n(50); + var d = n(342), p = void 0; p = d && d.debuglog ? d.debuglog('stream') : function() {}; var h, - g = n(346), - m = n(150); + g = n(343), + m = n(148); f.inherits(v, c); var b = ['error', 'close', 'destroy', 'pause', 'resume']; function y(e, t) { e = e || {}; - var r = t instanceof (i = i || n(43)); + var r = t instanceof (i = i || n(42)); (this.objectMode = !!e.objectMode), r && (this.objectMode = @@ -109842,12 +111822,12 @@ object-assign (this.decoder = null), (this.encoding = null), e.encoding && - (h || (h = n(151).StringDecoder), + (h || (h = n(149).StringDecoder), (this.decoder = new h(e.encoding)), (this.encoding = e.encoding)); } function v(e) { - if (((i = i || n(43)), !(this instanceof v))) return new v(e); + if (((i = i || n(42)), !(this instanceof v))) return new v(e); (this._readableState = new y(e, this)), (this.readable = !0), e && @@ -109871,7 +111851,7 @@ object-assign (t.buffer.push(n), (t.length += t.objectMode ? 1 : n.length)); } - (t.ended = !0), M(e); + (t.ended = !0), k(e); } })(e, a)) : (o || @@ -109907,7 +111887,7 @@ object-assign 'stream.unshift() after end event' ) ) - : x(e, a, t, !0) + : w(e, a, t, !0) : a.ended ? e.emit( 'error', @@ -109917,9 +111897,9 @@ object-assign a.decoder && !n ? ((t = a.decoder.write(t)), a.objectMode || 0 !== t.length - ? x(e, a, t, !1) - : S(e, a)) - : x(e, a, t, !1))) + ? w(e, a, t, !1) + : O(e, a)) + : w(e, a, t, !1))) : r || (a.reading = !1)), (function(e) { return ( @@ -109931,15 +111911,59 @@ object-assign })(a) ); } - function x(e, t, n, r) { + function w(e, t, n, r) { t.flowing && 0 === t.length && !t.sync ? (e.emit('data', n), e.read(0)) : ((t.length += t.objectMode ? 1 : n.length), r ? t.buffer.unshift(n) : t.buffer.push(n), - t.needReadable && M(e)), - S(e, t); + t.needReadable && k(e)), + O(e, t); } - function w(e, t) { + Object.defineProperty(v.prototype, 'destroyed', { + get: function() { + return ( + void 0 !== this._readableState && + this._readableState.destroyed + ); + }, + set: function(e) { + this._readableState && (this._readableState.destroyed = e); + } + }), + (v.prototype.destroy = m.destroy), + (v.prototype._undestroy = m.undestroy), + (v.prototype._destroy = function(e, t) { + this.push(null), t(e); + }), + (v.prototype.push = function(e, t) { + var n, + r = this._readableState; + return ( + r.objectMode + ? (n = !0) + : 'string' == typeof e && + ((t = t || r.defaultEncoding) !== r.encoding && + ((e = u.from(e, t)), (t = '')), + (n = !0)), + _(this, e, t, !1, n) + ); + }), + (v.prototype.unshift = function(e) { + return _(this, e, null, !0, !1); + }), + (v.prototype.isPaused = function() { + return !1 === this._readableState.flowing; + }), + (v.prototype.setEncoding = function(e) { + return ( + h || (h = n(149).StringDecoder), + (this._readableState.decoder = new h(e)), + (this._readableState.encoding = e), + this + ); + }); + var x = 8388608; + function M(e, t) { return e <= 0 || (0 === t.length && t.ended) ? 0 : t.objectMode @@ -109951,8 +111975,8 @@ object-assign : (e > t.highWaterMark && (t.highWaterMark = (function(e) { return ( - e >= 8388608 - ? (e = 8388608) + e >= x + ? (e = x) : (e--, (e |= e >>> 1), (e |= e >>> 2), @@ -109969,21 +111993,21 @@ object-assign ? t.length : ((t.needReadable = !0), 0)); } - function M(e) { + function k(e) { var t = e._readableState; (t.needReadable = !1), t.emittedReadable || (p('emitReadable', t.flowing), (t.emittedReadable = !0), - t.sync ? o.nextTick(k, e) : k(e)); + t.sync ? o.nextTick(S, e) : S(e)); } - function k(e) { - p('emit readable'), e.emit('readable'), T(e); + function S(e) { + p('emit readable'), e.emit('readable'), C(e); } - function S(e, t) { - t.readingMore || ((t.readingMore = !0), o.nextTick(A, e, t)); + function O(e, t) { + t.readingMore || ((t.readingMore = !0), o.nextTick(E, e, t)); } - function A(e, t) { + function E(e, t) { for ( var n = t.length; !t.reading && @@ -109996,22 +112020,22 @@ object-assign n = t.length; t.readingMore = !1; } - function O(e) { + function A(e) { p('readable nexttick read 0'), e.read(0); } - function E(e, t) { + function T(e, t) { t.reading || (p('resume read 0'), e.read(0)), (t.resumeScheduled = !1), (t.awaitDrain = 0), e.emit('resume'), - T(e), + C(e), t.flowing && !t.reading && e.read(0); } - function T(e) { + function C(e) { var t = e._readableState; for (p('flow', t.flowing); t.flowing && null !== e.read(); ); } - function C(e, t) { + function L(e, t) { return 0 === t.length ? null : (t.objectMode @@ -110093,110 +112117,67 @@ object-assign n); var n; } - function L(e) { + function P(e) { var t = e._readableState; if (t.length > 0) throw new Error( '"endReadable()" called on non-empty stream' ); - t.endEmitted || ((t.ended = !0), o.nextTick(P, t, e)); + t.endEmitted || ((t.ended = !0), o.nextTick(D, t, e)); } - function P(e, t) { + function D(e, t) { e.endEmitted || 0 !== e.length || ((e.endEmitted = !0), (t.readable = !1), t.emit('end')); } - function D(e, t) { + function j(e, t) { for (var n = 0, r = e.length; n < r; n++) if (e[n] === t) return n; return -1; } - Object.defineProperty(v.prototype, 'destroyed', { - get: function() { + (v.prototype.read = function(e) { + p('read', e), (e = parseInt(e, 10)); + var t = this._readableState, + n = e; + if ( + (0 !== e && (t.emittedReadable = !1), + 0 === e && + t.needReadable && + (t.length >= t.highWaterMark || t.ended)) + ) return ( - void 0 !== this._readableState && - this._readableState.destroyed + p('read: emitReadable', t.length, t.ended), + 0 === t.length && t.ended ? P(this) : k(this), + null ); - }, - set: function(e) { - this._readableState && (this._readableState.destroyed = e); - } + if (0 === (e = M(e, t)) && t.ended) + return 0 === t.length && P(this), null; + var r, + o = t.needReadable; + return ( + p('need readable', o), + (0 === t.length || t.length - e < t.highWaterMark) && + p('length less than watermark', (o = !0)), + t.ended || t.reading + ? p('reading or ended', (o = !1)) + : o && + (p('do read'), + (t.reading = !0), + (t.sync = !0), + 0 === t.length && (t.needReadable = !0), + this._read(t.highWaterMark), + (t.sync = !1), + t.reading || (e = M(n, t))), + null === (r = e > 0 ? L(e, t) : null) + ? ((t.needReadable = !0), (e = 0)) + : (t.length -= e), + 0 === t.length && + (t.ended || (t.needReadable = !0), + n !== e && t.ended && P(this)), + null !== r && this.emit('data', r), + r + ); }), - (v.prototype.destroy = m.destroy), - (v.prototype._undestroy = m.undestroy), - (v.prototype._destroy = function(e, t) { - this.push(null), t(e); - }), - (v.prototype.push = function(e, t) { - var n, - r = this._readableState; - return ( - r.objectMode - ? (n = !0) - : 'string' == typeof e && - ((t = t || r.defaultEncoding) !== r.encoding && - ((e = u.from(e, t)), (t = '')), - (n = !0)), - _(this, e, t, !1, n) - ); - }), - (v.prototype.unshift = function(e) { - return _(this, e, null, !0, !1); - }), - (v.prototype.isPaused = function() { - return !1 === this._readableState.flowing; - }), - (v.prototype.setEncoding = function(e) { - return ( - h || (h = n(151).StringDecoder), - (this._readableState.decoder = new h(e)), - (this._readableState.encoding = e), - this - ); - }), - (v.prototype.read = function(e) { - p('read', e), (e = parseInt(e, 10)); - var t = this._readableState, - n = e; - if ( - (0 !== e && (t.emittedReadable = !1), - 0 === e && - t.needReadable && - (t.length >= t.highWaterMark || t.ended)) - ) - return ( - p('read: emitReadable', t.length, t.ended), - 0 === t.length && t.ended ? L(this) : M(this), - null - ); - if (0 === (e = w(e, t)) && t.ended) - return 0 === t.length && L(this), null; - var r, - o = t.needReadable; - return ( - p('need readable', o), - (0 === t.length || t.length - e < t.highWaterMark) && - p('length less than watermark', (o = !0)), - t.ended || t.reading - ? p('reading or ended', (o = !1)) - : o && - (p('do read'), - (t.reading = !0), - (t.sync = !0), - 0 === t.length && (t.needReadable = !0), - this._read(t.highWaterMark), - (t.sync = !1), - t.reading || (e = w(n, t))), - null === (r = e > 0 ? C(e, t) : null) - ? ((t.needReadable = !0), (e = 0)) - : (t.length -= e), - 0 === t.length && - (t.ended || (t.needReadable = !0), - n !== e && t.ended && L(this)), - null !== r && this.emit('data', r), - r - ); - }), (v.prototype._read = function(e) { this.emit('error', new Error('_read() is not implemented')); }), @@ -110251,7 +112232,7 @@ object-assign t.awaitDrain && t.awaitDrain--, 0 === t.awaitDrain && s(e, 'data') && - ((t.flowing = !0), T(e)); + ((t.flowing = !0), C(e)); }; })(n); e.on('drain', f); @@ -110263,7 +112244,7 @@ object-assign !1 !== e.write(t) || h || (((1 === i.pipesCount && i.pipes === e) || - (i.pipesCount > 1 && -1 !== D(i.pipes, e))) && + (i.pipesCount > 1 && -1 !== j(i.pipes, e))) && !d && (p( 'false write response, pause', @@ -110311,15 +112292,14 @@ object-assign n = { hasUnpiped: !1 }; if (0 === t.pipesCount) return this; if (1 === t.pipesCount) - return ( - (e && e !== t.pipes) || - (e || (e = t.pipes), + return e && e !== t.pipes + ? this + : (e || (e = t.pipes), (t.pipes = null), (t.pipesCount = 0), (t.flowing = !1), - e && e.emit('unpipe', this, n)), - this - ); + e && e.emit('unpipe', this, n), + this); if (!e) { var r = t.pipes, o = t.pipesCount; @@ -110327,15 +112307,14 @@ object-assign for (var i = 0; i < o; i++) r[i].emit('unpipe', this, n); return this; } - var a = D(t.pipes, e); - return ( - -1 === a || - (t.pipes.splice(a, 1), + var a = j(t.pipes, e); + return -1 === a + ? this + : (t.pipes.splice(a, 1), (t.pipesCount -= 1), 1 === t.pipesCount && (t.pipes = t.pipes[0]), - e.emit('unpipe', this, n)), - this - ); + e.emit('unpipe', this, n), + this); }), (v.prototype.on = function(e, t) { var n = c.prototype.on.call(this, e, t); @@ -110347,7 +112326,7 @@ object-assign r.readableListening || ((r.readableListening = r.needReadable = !0), (r.emittedReadable = !1), - r.reading ? r.length && M(this) : o.nextTick(O, this)); + r.reading ? r.length && k(this) : o.nextTick(A, this)); } return n; }), @@ -110360,7 +112339,7 @@ object-assign (e.flowing = !0), (function(e, t) { t.resumeScheduled || - ((t.resumeScheduled = !0), o.nextTick(E, e, t)); + ((t.resumeScheduled = !0), o.nextTick(T, e, t)); })(this, e)), this ); @@ -110416,8 +112395,8 @@ object-assign return this._readableState.highWaterMark; } }), - (v._fromList = C); - }.call(this, n(22), n(52))); + (v._fromList = L); + }.call(this, n(26), n(75))); }, function(e, t, n) { e.exports = n(107).EventEmitter; @@ -110691,8 +112670,8 @@ object-assign function(e, t, n) { 'use strict'; e.exports = a; - var r = n(43), - o = n(57); + var r = n(42), + o = n(56); function i(e, t) { var n = this._transformState; n.transforming = !1; @@ -110748,7 +112727,7 @@ object-assign ); return e.push(null); } - (o.inherits = n(42)), + (o.inherits = n(50)), o.inherits(a, r), (a.prototype.push = function(e, t) { return ( @@ -110793,11 +112772,11 @@ object-assign }); }, function(e, t, n) { - n(355); + n(354); }, function(e, t, n) { 'use strict'; - var r = n(364), + var r = n(363), o = Number.MAX_SAFE_INTEGER || Math.pow(2, 53) - 1, i = function e(t, n, i, a, s) { for (var c = a, u = 0; u < i; ) { @@ -111126,7 +113105,7 @@ object-assign }, function(e, t, n) { 'use strict'; - var r = n(154); + var r = n(152); e.exports = function() { return Array.prototype.flat || r; }; @@ -111286,9 +113265,10 @@ object-assign !(function(e) { 'use strict'; if (!e.fetch) { - var t = 'URLSearchParams' in e, - n = 'Symbol' in e && 'iterator' in Symbol, - r = + var t = { + searchParams: 'URLSearchParams' in e, + iterable: 'Symbol' in e && 'iterator' in Symbol, + blob: 'FileReader' in e && 'Blob' in e && (function() { @@ -111298,10 +113278,11 @@ object-assign return !1; } })(), - o = 'FormData' in e, - i = 'ArrayBuffer' in e; - if (i) - var a = [ + formData: 'FormData' in e, + arrayBuffer: 'ArrayBuffer' in e + }; + if (t.arrayBuffer) + var n = [ '[object Int8Array]', '[object Uint8Array]', '[object Uint8ClampedArray]', @@ -111312,74 +113293,74 @@ object-assign '[object Float32Array]', '[object Float64Array]' ], - s = function(e) { + r = function(e) { return e && DataView.prototype.isPrototypeOf(e); }, - c = + o = ArrayBuffer.isView || function(e) { return ( e && - a.indexOf( + n.indexOf( Object.prototype.toString.call(e) ) > -1 ); }; - (h.prototype.append = function(e, t) { - (e = f(e)), (t = d(t)); + (l.prototype.append = function(e, t) { + (e = s(e)), (t = c(t)); var n = this.map[e]; this.map[e] = n ? n + ',' + t : t; }), - (h.prototype.delete = function(e) { - delete this.map[f(e)]; + (l.prototype.delete = function(e) { + delete this.map[s(e)]; }), - (h.prototype.get = function(e) { + (l.prototype.get = function(e) { return ( - (e = f(e)), this.has(e) ? this.map[e] : null + (e = s(e)), this.has(e) ? this.map[e] : null ); }), - (h.prototype.has = function(e) { - return this.map.hasOwnProperty(f(e)); + (l.prototype.has = function(e) { + return this.map.hasOwnProperty(s(e)); }), - (h.prototype.set = function(e, t) { - this.map[f(e)] = d(t); + (l.prototype.set = function(e, t) { + this.map[s(e)] = c(t); }), - (h.prototype.forEach = function(e, t) { + (l.prototype.forEach = function(e, t) { for (var n in this.map) this.map.hasOwnProperty(n) && e.call(t, this.map[n], n, this); }), - (h.prototype.keys = function() { + (l.prototype.keys = function() { var e = []; return ( this.forEach(function(t, n) { e.push(n); }), - p(e) + u(e) ); }), - (h.prototype.values = function() { + (l.prototype.values = function() { var e = []; return ( this.forEach(function(t) { e.push(t); }), - p(e) + u(e) ); }), - (h.prototype.entries = function() { + (l.prototype.entries = function() { var e = []; return ( this.forEach(function(t, n) { e.push([n, t]); }), - p(e) + u(e) ); }), - n && - (h.prototype[Symbol.iterator] = - h.prototype.entries); - var u = [ + t.iterable && + (l.prototype[Symbol.iterator] = + l.prototype.entries); + var i = [ 'DELETE', 'GET', 'HEAD', @@ -111387,51 +113368,51 @@ object-assign 'POST', 'PUT' ]; - (_.prototype.clone = function() { - return new _(this, { body: this._bodyInit }); + (m.prototype.clone = function() { + return new m(this, { body: this._bodyInit }); }), - v.call(_.prototype), - v.call(w.prototype), - (w.prototype.clone = function() { - return new w(this._bodyInit, { + g.call(m.prototype), + g.call(y.prototype), + (y.prototype.clone = function() { + return new y(this._bodyInit, { status: this.status, statusText: this.statusText, - headers: new h(this.headers), + headers: new l(this.headers), url: this.url }); }), - (w.error = function() { - var e = new w(null, { + (y.error = function() { + var e = new y(null, { status: 0, statusText: '' }); return (e.type = 'error'), e; }); - var l = [301, 302, 303, 307, 308]; - (w.redirect = function(e, t) { - if (-1 === l.indexOf(t)) + var a = [301, 302, 303, 307, 308]; + (y.redirect = function(e, t) { + if (-1 === a.indexOf(t)) throw new RangeError('Invalid status code'); - return new w(null, { + return new y(null, { status: t, headers: { location: e } }); }), - (e.Headers = h), - (e.Request = _), - (e.Response = w), - (e.fetch = function(e, t) { - return new Promise(function(n, o) { - var i = new _(e, t), + (e.Headers = l), + (e.Request = m), + (e.Response = y), + (e.fetch = function(e, n) { + return new Promise(function(r, o) { + var i = new m(e, n), a = new XMLHttpRequest(); (a.onload = function() { var e, t, - r = { + n = { status: a.status, statusText: a.statusText, headers: ((e = a.getAllResponseHeaders() || ''), - (t = new h()), + (t = new l()), e .replace(/\r?\n[\t ]+/g, ' ') .split(/\r?\n/) @@ -111445,15 +113426,15 @@ object-assign }), t) }; - r.url = + n.url = 'responseURL' in a ? a.responseURL - : r.headers.get('X-Request-URL'); + : n.headers.get('X-Request-URL'); var o = 'response' in a ? a.response : a.responseText; - n(new w(o, r)); + r(new y(o, n)); }), (a.onerror = function() { o(new TypeError('Network request failed')); @@ -111467,7 +113448,7 @@ object-assign : 'omit' === i.credentials && (a.withCredentials = !1), 'responseType' in a && - r && + t.blob && (a.responseType = 'blob'), i.headers.forEach(function(e, t) { a.setRequestHeader(t, e); @@ -111479,7 +113460,7 @@ object-assign }), (e.fetch.polyfill = !0); } - function f(e) { + function s(e) { if ( ('string' != typeof e && (e = String(e)), /[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e)) @@ -111489,27 +113470,27 @@ object-assign ); return e.toLowerCase(); } - function d(e) { + function c(e) { return 'string' != typeof e && (e = String(e)), e; } - function p(e) { - var t = { + function u(e) { + var n = { next: function() { var t = e.shift(); return { done: void 0 === t, value: t }; } }; return ( - n && - (t[Symbol.iterator] = function() { - return t; + t.iterable && + (n[Symbol.iterator] = function() { + return n; }), - t + n ); } - function h(e) { + function l(e) { (this.map = {}), - e instanceof h + e instanceof l ? e.forEach(function(e, t) { this.append(t, e); }, this) @@ -111525,14 +113506,14 @@ object-assign }, this); } - function g(e) { + function f(e) { if (e.bodyUsed) return Promise.reject( new TypeError('Already read') ); e.bodyUsed = !0; } - function m(e) { + function d(e) { return new Promise(function(t, n) { (e.onload = function() { t(e.result); @@ -111542,49 +113523,52 @@ object-assign }); }); } - function b(e) { + function p(e) { var t = new FileReader(), - n = m(t); + n = d(t); return t.readAsArrayBuffer(e), n; } - function y(e) { + function h(e) { if (e.slice) return e.slice(0); var t = new Uint8Array(e.byteLength); return t.set(new Uint8Array(e)), t.buffer; } - function v() { + function g() { return ( (this.bodyUsed = !1), (this._initBody = function(e) { if (((this._bodyInit = e), e)) if ('string' == typeof e) this._bodyText = e; - else if (r && Blob.prototype.isPrototypeOf(e)) + else if ( + t.blob && + Blob.prototype.isPrototypeOf(e) + ) this._bodyBlob = e; else if ( - o && + t.formData && FormData.prototype.isPrototypeOf(e) ) this._bodyFormData = e; else if ( - t && + t.searchParams && URLSearchParams.prototype.isPrototypeOf(e) ) this._bodyText = e.toString(); - else if (i && r && s(e)) - (this._bodyArrayBuffer = y(e.buffer)), + else if (t.arrayBuffer && t.blob && r(e)) + (this._bodyArrayBuffer = h(e.buffer)), (this._bodyInit = new Blob([ this._bodyArrayBuffer ])); else { if ( - !i || + !t.arrayBuffer || (!ArrayBuffer.prototype.isPrototypeOf(e) && - !c(e)) + !o(e)) ) throw new Error( 'unsupported BodyInit type' ); - this._bodyArrayBuffer = y(e); + this._bodyArrayBuffer = h(e); } else this._bodyText = ''; this.headers.get('content-type') || @@ -111598,7 +113582,7 @@ object-assign 'content-type', this._bodyBlob.type ) - : t && + : t.searchParams && URLSearchParams.prototype.isPrototypeOf( e ) && @@ -111607,9 +113591,9 @@ object-assign 'application/x-www-form-urlencoded;charset=UTF-8' )); }), - r && + t.blob && ((this.blob = function() { - var e = g(this); + var e = f(this); if (e) return e; if (this._bodyBlob) return Promise.resolve(this._bodyBlob); @@ -111627,21 +113611,21 @@ object-assign }), (this.arrayBuffer = function() { return this._bodyArrayBuffer - ? g(this) || + ? f(this) || Promise.resolve(this._bodyArrayBuffer) - : this.blob().then(b); + : this.blob().then(p); })), (this.text = function() { var e, t, n, - r = g(this); + r = f(this); if (r) return r; if (this._bodyBlob) return ( (e = this._bodyBlob), (t = new FileReader()), - (n = m(t)), + (n = d(t)), t.readAsText(e), n ); @@ -111665,9 +113649,9 @@ object-assign ); return Promise.resolve(this._bodyText); }), - o && + t.formData && (this.formData = function() { - return this.text().then(x); + return this.text().then(b); }), (this.json = function() { return this.text().then(JSON.parse); @@ -111675,15 +113659,15 @@ object-assign this ); } - function _(e, t) { + function m(e, t) { var n, r, o = (t = t || {}).body; - if (e instanceof _) { + if (e instanceof m) { if (e.bodyUsed) throw new TypeError('Already read'); (this.url = e.url), (this.credentials = e.credentials), - t.headers || (this.headers = new h(e.headers)), + t.headers || (this.headers = new l(e.headers)), (this.method = e.method), (this.mode = e.mode), o || @@ -111694,11 +113678,11 @@ object-assign ((this.credentials = t.credentials || this.credentials || 'omit'), (!t.headers && this.headers) || - (this.headers = new h(t.headers)), + (this.headers = new l(t.headers)), (this.method = ((n = t.method || this.method || 'GET'), (r = n.toUpperCase()), - u.indexOf(r) > -1 ? r : n)), + i.indexOf(r) > -1 ? r : n)), (this.mode = t.mode || this.mode || null), (this.referrer = null), ('GET' === this.method || 'HEAD' === this.method) && @@ -111709,7 +113693,7 @@ object-assign ); this._initBody(o); } - function x(e) { + function b(e) { var t = new FormData(); return ( e @@ -111729,7 +113713,7 @@ object-assign t ); } - function w(e, t) { + function y(e, t) { t || (t = {}), (this.type = 'default'), (this.status = @@ -111737,7 +113721,7 @@ object-assign (this.ok = this.status >= 200 && this.status < 300), (this.statusText = 'statusText' in t ? t.statusText : 'OK'), - (this.headers = new h(t.headers)), + (this.headers = new l(t.headers)), (this.url = t.url || ''), this._initBody(e); } @@ -113755,7 +115739,7 @@ object-assign i.listener('window').on('scroll', function() { _ = o.getScrollState(_); })); - var x = [ + var w = [ { name: 'keen:ua_parser', input: { ua_string: 'user_agent' }, @@ -113783,7 +115767,7 @@ object-assign } ]; if ( - (x.push({ + (w.push({ name: 'keen:ip_to_geo', input: { ip: 'ip_address', @@ -113821,7 +115805,7 @@ object-assign time: { local: {}, utc: {} }, keen: { timestamp: new Date().toISOString(), - addons: x + addons: w } }; }), @@ -113904,7 +115888,7 @@ object-assign !0 === u.recordElementViews && 'undefined' != typeof IntersectionObserver) ) { - var w = new IntersectionObserver( + var x = new IntersectionObserver( function(e, t) { e.forEach(function(e) { if (e.isIntersecting) { @@ -113933,9 +115917,9 @@ object-assign document .querySelectorAll('.track-element-view') .forEach(function(e) { - w.observe(e); + x.observe(e); }), - (n.observers.IntersectionObserver = w); + (n.observers.IntersectionObserver = x); } return n; }; @@ -114666,22 +116650,22 @@ object-assign try { !(function(e) { var t = e.callback, - n = e.args; - switch (n.length) { + r = e.args; + switch (r.length) { case 0: t(); break; case 1: - t(n[0]); + t(r[0]); break; case 2: - t(n[0], n[1]); + t(r[0], r[1]); break; case 3: - t(n[0], n[1], n[2]); + t(r[0], r[1], r[2]); break; default: - t.apply(void 0, n); + t.apply(n, r); } })(t); } finally { @@ -114798,10 +116782,10 @@ object-assign (i = t.callback), (f = t.unique)); var g = this.url('https://github.com/events',%20encodeURIComponent(u)), - m = {}; - if (b.call(this, i)) { + y = {}; + if (m.call(this, i)) { if (u && 'string' == typeof u) { - (0, s.default)(m, n); + (0, s.default)(y, n); var v = {}; return ( (0, l.getExtendedEventBody)( @@ -114812,7 +116796,7 @@ object-assign v, this.extensions.collections[u] ), - (0, l.getExtendedEventBody)(v, [m]), + (0, l.getExtendedEventBody)(v, [y]), f ? (0, d.default)(p, v).then(function(n) { return n @@ -114844,7 +116828,7 @@ object-assign configObject: p, eventCollection: u }) - : (y.call( + : (b.call( this, 'Keen.enabled is set to false.', i @@ -114852,19 +116836,19 @@ object-assign !1)) ); } - y.call(this, 'Collection name must be a string.', i); + b.call(this, 'Collection name must be a string.', i); } }), (t.recordEvents = function(e, t) { var n = this, r = this.url('https://github.com/events'); - if (b.call(this, t)) + if (m.call(this, t)) if ( 'object' !== (void 0 === e ? 'undefined' : o(e)) || e instanceof Array ) - y.call( + b.call( this, 'First argument must be an object', t @@ -114908,7 +116892,7 @@ object-assign extendedEventsHash: i, callback: t }) - : (y.call( + : (b.call( this, 'Keen.enabled is set to false.', t @@ -114916,7 +116900,7 @@ object-assign !1) ); } - y.call( + b.call( this, 'Incorrect arguments provided to #recordEvents method', t @@ -114975,7 +116959,7 @@ object-assign navigator.appVersion.indexOf('Trident/') > 0) ? 1900 : 16e3) - ? v.call(this, u, r) + ? y.call(this, u, r) : r && r( 'Beacon URL length exceeds current browser limit, and XHR is not supported.', @@ -115028,49 +117012,47 @@ object-assign }); }) .then(function(e) { - return m(e) + return (void 0 !== (t = e).created + ? t.created + : 0 === + Object.keys(t) + .map(function(e) { + return t[e].filter(function(e) { + return !e.success; + }); + }) + .filter(function(e) { + return e.length > 0; + }).length) ? (void 0 !== r && r.call(o, null, e), Promise.resolve(e)) : (void 0 !== r && r.call(o, e, null), o.emit('error', e), Promise.reject(e)); + var t; }); } function m(e) { - return void 0 !== e.created - ? !!e.created - : 0 === - Object.keys(e) - .map(function(t) { - return e[t].filter(function(e) { - return !e.success; - }); - }) - .filter(function(e) { - return e.length > 0; - }).length; - } - function b(e) { return this.projectId() ? !!this.writeKey() || - (y.call( + (b.call( this, 'Keen.Client is missing a writeKey property.', e ), !1) - : (y.call( + : (b.call( this, 'Keen.Client is missing a projectId property.', e ), !1); } - function y(e, t) { + function b(e, t) { var n = 'Event(s) not recorded: ' + e; this.emit('error', n), t && t.call(this, n, null); } - function v(e, t) { + function y(e, t) { var n = this, r = document.createElement('img'); (r.onload = function() { @@ -115537,8 +117519,8 @@ object-assign y = n(23), v = n(11), _ = n(22), - x = n(14), - w = n(20), + w = n(14), + x = n(20), M = n(19), k = n(16); function S(e) { @@ -115560,9 +117542,9 @@ object-assign extendEvent: u.extendEvent, extendEvents: u.extendEvents }); - var A = (0, l.initAutoTrackingCore)(r.default); + var O = (0, l.initAutoTrackingCore)(r.default); (0, i.default)(r.default.prototype, { - initAutoTracking: A + initAutoTracking: O }), (0, i.default)(r.default.helpers, { getBrowserProfile: f.getBrowserProfile, @@ -115575,12 +117557,12 @@ object-assign getUniqueId: y.getUniqueId, getWindowProfile: v.getWindowProfile }); - var O = (0, a.listenerCore)(r.default); + var E = (0, a.listenerCore)(r.default); (0, i.default)(r.default.utils, { cookie: _.cookie, - deepExtend: x.deepExtend, - listener: O, - serializeForm: w.serializeForm, + deepExtend: w.deepExtend, + listener: E, + serializeForm: x.serializeForm, timer: M.timer }), (r.default.listenTo = function(e) { @@ -115588,7 +117570,7 @@ object-assign var n = t.split(' '), r = n[0], o = n.slice(1, n.length).join(' '); - return O(o).on(r, e); + return E(o).on(r, e); }); }), (t.keenGlobals = void 0), @@ -115600,8 +117582,8 @@ object-assign ('1' !== (0, f.getBrowserProfile)().doNotTrack && 'yes' !== (0, f.getBrowserProfile)().doNotTrack) || (r.default.doNotTrack = !0); - var E = (t.Keen = r.default.extendLibrary(r.default)); - (t.KeenTracking = E), (t.default = E); + var A = (t.Keen = r.default.extendLibrary(r.default)); + (t.KeenTracking = A), (t.default = A); }, function(e, t, n) { e.exports = n(43); @@ -115611,12 +117593,12 @@ object-assign (e.exports = r()); }, function(e) { - e.exports = { a: '6.1.1' }; + e.exports = { a: '6.0.24' }; }, function(e, t, n) { 'use strict'; (function(t) { - var r = n(343); + var r = n(340); e.exports = function(e) { var n = arguments.length > 1 && void 0 !== arguments[1] @@ -115634,603 +117616,28 @@ object-assign if (void 0 !== s) throw s; return o; }; - }.call(this, n(51).Buffer)); + }.call(this, n(55).Buffer)); }, function(e, t) { e.exports = g; }, function(e, t, n) { - (function(t, r) { - var o, i, a, s, c, u, l, f, d, p, h, g, m, b, y, v; - (m = n(147)), - n(383), - (e.exports = function() { - var e, n, r, i, a; - return ( - 3 === arguments.length - ? ((r = arguments[0]), - (i = arguments[1]), - (e = arguments[2])) - : 2 === arguments.length - ? (Array.isArray(arguments[0]) - ? (r = arguments[0]) - : (i = arguments[0]), - 'function' == typeof arguments[1] - ? (e = arguments[1]) - : (i = arguments[1])) - : 1 === arguments.length && - ('function' == typeof arguments[0] - ? (e = arguments[0]) - : Array.isArray(arguments[0]) - ? (r = arguments[0]) - : (i = arguments[0])), - null == i && (i = {}), - (a = new o(i)), - r && - t.nextTick(function() { - var e, t, n; - for (t = 0, n = r.length; t < n; t++) - (e = r[t]), a.write(e); - return a.end(); - }), - e && - ((n = []), - a.on('readable', function() { - var e, t; - for (t = []; (e = a.read()); ) t.push(n.push(e)); - return t; - }), - a.on('error', function(t) { - return e(t); - }), - a.on('end', function() { - return e(null, n.join('')); - })), - a - ); - }), - (o = class extends m.Transform { - constructor(e = {}) { - var t, n, o, i, a, s, c, u, l, f, d, p, h; - for (u in (super({ writableObjectMode: !0, ...e }), - (f = {}), - e)) - (h = e[u]), (f[v(u)] = h); - if (null === f.delimiter || void 0 === f.delimiter) - f.delimiter = ','; - else if (r.isBuffer(f.delimiter)) - f.delimiter = f.delimiter.toString(); - else if ('string' != typeof f.delimiter) - throw new Error( - 'Invalid Option: delimiter must be a buffer or a string, got ' + - JSON.stringify(f.delimiter) - ); - if (null === f.quote || void 0 === f.quote) f.quote = '"'; - else if (!0 === f.quote) f.quote = '"'; - else if (!1 === f.quote) f.quote = ''; - else if (r.isBuffer(f.quote)) - f.quote = f.quote.toString(); - else if ('string' != typeof f.quote) - throw new Error( - 'Invalid Option: quote must be a boolean, a buffer or a string, got ' + - JSON.stringify(f.quote) - ); - if ( - (null == f.quoted && (f.quoted = !1), - null == f.quoted_empty && (f.quoted_empty = void 0), - null == f.quoted_string && (f.quoted_string = !1), - null == f.eof && (f.eof = !0), - null === f.escape || void 0 === f.escape) - ) - f.escape = '"'; - else { - if ( - (r.isBuffer(f.escape) && - (f.escape = f.escape.toString()), - 'string' != typeof f.escape) - ) - throw new Error( - 'Invalid Option: escape must be a buffer or a string, got ' + - JSON.stringify(f.escape) - ); - if (f.escape.length > 1) - throw new Error( - `Invalid Option: escape must be one character, got ${f.escape.length} characters` - ); - } - if ( - (null == f.header && (f.header = !1), - (f.columns = this.normalize_columns(f.columns)), - null == f.cast && (f.cast = {}), - void 0 === f.quoted_match || - null === f.quoted_match || - !1 === f.quoted_match - ? (f.quoted_match = null) - : Array.isArray(f.quoted_match) || - (f.quoted_match = [f.quoted_match]), - f.quoted_match) - ) - for (c = 0, l = (p = f.quoted_match).length; c < l; c++) - if ( - ((s = (d = p[c]) instanceof RegExp), - 'string' != typeof d && !s) - ) - throw new Error( - 'Invalid Option: quoted_match must be a string or a regex, got ' + - JSON.stringify(d) - ); - if ( - (f.cast.bool && (f.cast.boolean = f.cast.bool), - null == (t = f.cast).boolean && - (t.boolean = function(e) { - return e ? '1' : ''; - }), - null == (n = f.cast).date && - (n.date = function(e) { - return '' + e.getTime(); - }), - null == (o = f.cast).number && - (o.number = function(e) { - return '' + e; - }), - null == (i = f.cast).object && - (i.object = function(e) { - return JSON.stringify(e); - }), - null == (a = f.cast).string && - (a.string = function(e) { - return e; - }), - void 0 === f.record_delimiter || - null === f.record_delimiter) - ) - null == f.record_delimiter && - (f.record_delimiter = '\n'); - else { - if (r.isBuffer(f.record_delimiter)) - f.record_delimiter = f.record_delimiter.toString(); - else if ('string' != typeof f.record_delimiter) - throw new Error( - 'Invalid Option: record_delimiter must be a buffer or a string, got ' + - JSON.stringify(f.record_delimiter) - ); - switch (f.record_delimiter) { - case 'auto': - f.record_delimiter = null; - break; - case 'unix': - f.record_delimiter = '\n'; - break; - case 'mac': - f.record_delimiter = '\r'; - break; - case 'windows': - f.record_delimiter = '\r\n'; - break; - case 'ascii': - f.record_delimiter = ''; - break; - case 'unicode': - f.record_delimiter = '\u2028'; - } - } - (this.options = f), - (this.state = { stop: !1 }), - (this.info = { records: 0 }); - } - _transform(e, t, n) { - var r, o; - if (!0 !== this.state.stop) { - if (!Array.isArray(e) && 'object' != typeof e) - return ( - (this.state.stop = !0), - n( - Error( - 'Invalid Record: expect an array or an object, got ' + - JSON.stringify(e) - ) - ) - ); - if (0 === this.info.records) - if (Array.isArray(e)) { - if ( - !0 === this.options.header && - !this.options.columns - ) - return ( - (this.state.stop = !0), - n( - Error( - 'Undiscoverable Columns: header option requires column option or object records' - ) - ) - ); - } else - null == (r = this.options).columns && - (r.columns = this.normalize_columns( - Object.keys(e) - )); - 0 === this.info.records && this.headers(); - try { - this.emit('record', e, this.info.records); - } catch (e) { - return ( - (o = e), - (this.state.stop = !0), - this.emit('error', o) - ); - } - if (this.options.eof) { - if (null == (e = this.stringify(e))) return; - e += this.options.record_delimiter; - } else { - if (null == (e = this.stringify(e))) return; - (this.options.header || this.info.records) && - (e = this.options.record_delimiter + e); - } - return this.info.records++, this.push(e), n(); - } - } - _flush(e) { - return 0 === this.info.records && this.headers(), e(); - } - stringify(e, t = !1) { - var n, - r, - o, - i, - a, - c, - u, - f, - d, - p, - h, - g, - m, - b, - y, - v, - _, - x, - w, - M, - k, - S, - A, - O, - E, - T, - C, - L, - P, - D, - z, - N; - if ('object' != typeof e) return e; - if ( - (({ columns: r, header: g } = this.options), - (T = []), - Array.isArray(e)) - ) - for ( - r && e.splice(r.length), m = b = 0, v = e.length; - b < v; - m = ++b - ) { - if ( - ((h = e[m]), - ([d, N] = this.__cast(h, { - index: m, - column: m, - records: this.info.records, - header: t - })), - d) - ) - return void this.emit('error', d); - T[m] = [N, h]; - } - else if (r) - for ( - m = y = 0, L = r.length; - 0 <= L ? y < L : y > L; - m = 0 <= L ? ++y : --y - ) { - if ( - ((h = s(e, r[m].key)), - ([d, N] = this.__cast(h, { - index: m, - column: r[m].key, - records: this.info.records, - header: t - })), - d) - ) - return void this.emit('error', d); - T[m] = [N, h]; - } - else - for (n in e) { - if ( - ((h = e[n]), - ([d, N] = this.__cast(h, { - index: m, - column: r[m].key, - records: this.info.records, - header: t - })), - d) - ) - return void this.emit('error', d); - T.push([N, h]); - } - for ( - u = '', m = _ = 0, P = T.length; - 0 <= P ? _ < P : _ > P; - m = 0 <= P ? ++_ : --_ - ) { - if ((([N, h] = T[m]), 'string' == typeof N)) - x = this.options; - else if (l(N)) { - if ( - (({ value: N, ...x } = N), - 'string' != typeof N && null != N) - ) - return void this.emit( - 'error', - Error( - 'Invalid Casting Value: returned value must return a string, null or undefined, got ' + - JSON.stringify(N) - ) - ); - x = { ...this.options, ...x }; - } else { - if (null != N) - return void this.emit( - 'error', - Error( - 'Invalid Casting Value: returned value must return a string, an object, null or undefined, got ' + - JSON.stringify(N) - ) - ); - x = this.options; - } - if ( - (({ - delimiter: f, - escape: p, - quote: w, - quoted: M, - quoted_empty: A, - quoted_string: E, - quoted_match: O, - record_delimiter: C - } = x), - N) - ) { - if ('string' != typeof N) - return ( - this.emit( - 'error', - Error( - 'Formatter must return a string, null or undefined, got ' + - JSON.stringify(N) - ) - ), - null - ); - (c = f.length && N.indexOf(f) >= 0), - (i = '' !== w && N.indexOf(w) >= 0), - (o = N.indexOf(p) >= 0 && p !== w), - (a = N.indexOf(C) >= 0), - (S = E && 'string' == typeof h), - (k = - (k = - O && - 'string' == typeof h && - O.filter(function(e) { - return 'string' == typeof e - ? -1 !== N.indexOf(e) - : e.test(N); - })) && k.length > 0), - !0 === (z = !0 === i || c || a || M || S || k) && - !0 === o && - ((D = - '\\' === p - ? new RegExp(p + p, 'g') - : new RegExp(p, 'g')), - (N = N.replace(D, p + p))), - !0 === i && - ((D = new RegExp(w, 'g')), - (N = N.replace(D, p + w))), - !0 === z && (N = w + N + w), - (u += N); - } else - (!0 === A || (null == A && '' === h && !1 !== E)) && - (u += w + w); - m !== T.length - 1 && (u += f); - } - return u; - } - headers() { - var e; - if (this.options.header && this.options.columns) - return ( - (e = this.options.columns.map(function(e) { - return e.header; - })), - (e = this.options.eof - ? this.stringify(e, !0) + - this.options.record_delimiter - : this.stringify(e)), - this.push(e) - ); - } - __cast(e, t) { - var n; - n = typeof e; - try { - return 'string' === n - ? [void 0, this.options.cast.string(e, t)] - : 'number' === n - ? [void 0, this.options.cast.number(e, t)] - : 'boolean' === n - ? [void 0, this.options.cast.boolean(e, t)] - : e instanceof Date - ? [void 0, this.options.cast.date(e, t)] - : 'object' === n && null !== e - ? [void 0, this.options.cast.object(e, t)] - : [void 0, e, e]; - } catch (e) { - return [e]; - } - } - normalize_columns(e) { - var t, n, r; - if (null == e) return null; - if (null != e) { - if ('object' != typeof e) - throw Error( - 'Invalid option "columns": expect an array or an object' - ); - e = Array.isArray(e) - ? (function() { - var n, r, o; - for (o = [], n = 0, r = e.length; n < r; n++) - if ('string' == typeof (t = e[n])) - o.push({ key: t, header: t }); - else { - if ( - 'object' != typeof t || - null == t || - Array.isArray(t) - ) - throw Error( - 'Invalid column definition: expect a string or an object' - ); - if (!t.key) - throw Error( - 'Invalid column definition: property "key" is required' - ); - null == t.header && (t.header = t.key), - o.push(t); - } - return o; - })() - : (function() { - var t; - for (n in ((t = []), e)) - (r = e[n]), t.push({ key: n, header: r }); - return t; - })(); - } - return e; - } - }), - (e.exports.Stringifier = o), - (l = function(e) { - return ( - 'object' == typeof e && null !== e && !Array.isArray(e) - ); - }), - (v = function(e) { - return e.replace(/([A-Z])/g, function(e, t, n) { - return '_' + t.toLowerCase(); - }); - }), - (a = '.'.charCodeAt(0)), - (d = /\\(\\)?/g), - (g = RegExp( - '[^.[\\]]+|\\[(?:([^"\'][^[]*)|(["\'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))', - 'g' - )), - (p = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/), - (h = /^\w*$/), - (c = function(e) { - return Object.prototype.toString.call(e); - }), - (u = function(e, t) { - var n; - return ( - !Array.isArray(e) && - (!( - 'number' != (n = typeof e) && - 'symbol' !== n && - 'boolean' !== n && - null != e && - !f(e) - ) || - h.test(e) || - !p.test(e) || - (null != t && e in Object(t))) - ); - }), - (f = function(e) { - var t; - return ( - 'symbol' == (t = typeof e) || - ('object' === t && - null != e && - '[object Symbol]' === c(e)) - ); - }), - (b = function(e) { - var t; - return ( - (t = []), - e.charCodeAt(0) === a && t.push(''), - e.replace(g, function(e, n, r, o) { - var i; - return ( - (i = e), - r ? (i = o.replace(d, '$1')) : n && (i = n.trim()), - t.push(i) - ); - }), - t - ); - }), - (i = function(e, t) { - return Array.isArray(e) ? e : u(e, t) ? [e] : b(e); - }), - (y = function(e) { - var t, n; - return 'string' == typeof e || f(e) - ? e - : null != (t = '0' == (n = '' + e) && 1 / e == -INFINITY) - ? t - : { '-0': n }; - }), - (s = function(e, t) { - var n, r; - for ( - n = 0, r = (t = Array.isArray(t) ? t : i(t, e)).length; - null != e && n < r; - - ) - e = e[y(t[n++])]; - return n && n === r ? e : void 0; - }); - }.call(this, n(52), n(51).Buffer)); - }, - function(e, t, n) { - n(173), (e.exports = n(394)); + n(170), (e.exports = n(391)); }, function(e, t, n) { 'use strict'; (function(e) { - n(174), - n(317), - n(319), - n(321), - n(323), - n(325), - n(327), - n(329), - n(331), - n(333), - n(337), + n(171), + n(314), + n(316), + n(318), + n(320), + n(322), + n(324), + n(326), + n(328), + n(330), + n(334), e._babelPolyfill && 'undefined' != typeof console && console.warn && @@ -116238,10 +117645,13 @@ object-assign '@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning.' ), (e._babelPolyfill = !0); - }.call(this, n(22))); + }.call(this, n(26))); }, function(e, t, n) { - n(175), + n(172), + n(174), + n(175), + n(176), n(177), n(178), n(179), @@ -116281,9 +117691,9 @@ object-assign n(213), n(214), n(215), - n(216), n(217), n(218), + n(219), n(220), n(221), n(222), @@ -116315,18 +117725,18 @@ object-assign n(248), n(249), n(250), - n(251), n(252), n(253), n(255), n(256), + n(257), n(258), n(259), n(260), n(261), - n(262), - n(263), n(264), + n(265), + n(266), n(267), n(268), n(269), @@ -116337,19 +117747,19 @@ object-assign n(274), n(275), n(276), + n(102), n(277), + n(134), n(278), + n(135), n(279), - n(102), n(280), - n(134), n(281), - n(135), n(282), - n(283), - n(284), - n(285), n(136), + n(285), + n(286), + n(287), n(288), n(289), n(290), @@ -116376,9 +117786,6 @@ object-assign n(311), n(312), n(313), - n(314), - n(315), - n(316), (e.exports = n(14)); }, function(e, t, n) { @@ -116391,32 +117798,32 @@ object-assign c = n(33).KEY, u = n(3), l = n(81), - f = n(44), + f = n(43), d = n(35), p = n(9), h = n(82), g = n(116), - m = n(176), + m = n(173), b = n(85), y = n(4), v = n(6), _ = n(20), - x = n(32), - w = n(34), + w = n(32), + x = n(34), M = n(39), k = n(119), - S = n(24), - A = n(12), - O = n(37), - E = S.f, - T = A.f, + S = n(23), + O = n(12), + E = n(37), + A = S.f, + T = O.f, C = k.f, L = r.Symbol, P = r.JSON, D = P && P.stringify, - z = p('_hidden'), - N = p('toPrimitive'), - j = {}.propertyIsEnumerable, + j = p('_hidden'), + z = p('toPrimitive'), + N = {}.propertyIsEnumerable, R = l('symbol-registry'), I = l('symbols'), F = l('op-symbols'), @@ -116439,7 +117846,7 @@ object-assign ); }) ? function(e, t, n) { - var r = E(q, t); + var r = A(q, t); r && delete q[t], T(e, t, n), r && e !== q && T(q, t, r); @@ -116461,13 +117868,13 @@ object-assign return ( e === q && X(F, t, n), y(e), - (t = x(t, !0)), + (t = w(t, !0)), y(n), o(I, t) ? (n.enumerable - ? (o(e, z) && e[z][t] && (e[z][t] = !1), - (n = M(n, { enumerable: w(0, !1) }))) - : (o(e, z) || T(e, z, w(1, {})), (e[z][t] = !0)), + ? (o(e, j) && e[j][t] && (e[j][t] = !1), + (n = M(n, { enumerable: x(0, !1) }))) + : (o(e, j) || T(e, j, x(1, {})), (e[j][t] = !0)), W(e, t, n)) : T(e, t, n) ); @@ -116479,27 +117886,27 @@ object-assign return e; }, K = function(e) { - var t = j.call(this, (e = x(e, !0))); + var t = N.call(this, (e = w(e, !0))); return ( !(this === q && o(I, e) && !o(F, e)) && (!( t || !o(this, e) || !o(I, e) || - (o(this, z) && this[z][e]) + (o(this, j) && this[j][e]) ) || t) ); }, $ = function(e, t) { if ( - ((e = _(e)), (t = x(t, !0)), e !== q || !o(I, t) || o(F, t)) + ((e = _(e)), (t = w(t, !0)), e !== q || !o(I, t) || o(F, t)) ) { - var n = E(e, t); + var n = A(e, t); return ( !n || !o(I, t) || - (o(e, z) && e[z][t]) || + (o(e, j) && e[j][t]) || (n.enumerable = !0), n ); @@ -116507,7 +117914,7 @@ object-assign }, Q = function(e) { for (var t, n = C(_(e)), r = [], i = 0; n.length > i; ) - o(I, (t = n[i++])) || t == z || t == c || r.push(t); + o(I, (t = n[i++])) || t == j || t == c || r.push(t); return r; }, J = function(e) { @@ -116527,8 +117934,8 @@ object-assign var e = d(arguments.length > 0 ? arguments[0] : void 0), t = function(n) { this === q && t.call(F, n), - o(this, z) && o(this[z], e) && (this[z][e] = !1), - W(this, e, w(1, n)); + o(this, j) && o(this[j], e) && (this[j][e] = !1), + W(this, e, x(1, n)); }; return ( i && Y && W(q, e, { configurable: !0, set: t }), V(e) @@ -116540,10 +117947,10 @@ object-assign } ), (S.f = $), - (A.f = X), + (O.f = X), (n(40).f = k.f = Q), - (n(54).f = K), - (n(64).f = J), + (n(52).f = K), + (n(63).f = J), i && !n(36) && s(q, 'propertyIsEnumerable', K, !0), (h.f = function(e) { return V(p(e)); @@ -116558,7 +117965,7 @@ object-assign ) p(Z[ee++]); - for (var te = O(p.store), ne = 0; te.length > ne; ) g(te[ne++]); + for (var te = E(p.store), ne = 0; te.length > ne; ) g(te[ne++]); a(a.S + a.F * !B, 'Symbol', { for: function(e) { return o(R, (e += '')) ? R[e] : (R[e] = L(e)); @@ -116619,15 +118026,15 @@ object-assign } } ), - L.prototype[N] || n(19)(L.prototype, N, L.prototype.valueOf), + L.prototype[z] || n(19)(L.prototype, z, L.prototype.valueOf), f(L, 'Symbol'), f(Math, 'Math', !0), f(r.JSON, 'JSON', !0); }, function(e, t, n) { var r = n(37), - o = n(64), - i = n(54); + o = n(63), + i = n(52); e.exports = function(e) { var t = r(e), n = o.f; @@ -116651,8 +118058,8 @@ object-assign }, function(e, t, n) { var r = n(20), - o = n(24).f; - n(25)('getOwnPropertyDescriptor', function() { + o = n(23).f; + n(24)('getOwnPropertyDescriptor', function() { return function(e, t) { return o(r(e), t); }; @@ -116661,7 +118068,7 @@ object-assign function(e, t, n) { var r = n(16), o = n(41); - n(25)('getPrototypeOf', function() { + n(24)('getPrototypeOf', function() { return function(e) { return o(r(e)); }; @@ -116670,21 +118077,21 @@ object-assign function(e, t, n) { var r = n(16), o = n(37); - n(25)('keys', function() { + n(24)('keys', function() { return function(e) { return o(r(e)); }; }); }, function(e, t, n) { - n(25)('getOwnPropertyNames', function() { + n(24)('getOwnPropertyNames', function() { return n(119).f; }); }, function(e, t, n) { var r = n(6), o = n(33).onFreeze; - n(25)('freeze', function(e) { + n(24)('freeze', function(e) { return function(t) { return e && r(t) ? e(o(t)) : t; }; @@ -116693,7 +118100,7 @@ object-assign function(e, t, n) { var r = n(6), o = n(33).onFreeze; - n(25)('seal', function(e) { + n(24)('seal', function(e) { return function(t) { return e && r(t) ? e(o(t)) : t; }; @@ -116702,7 +118109,7 @@ object-assign function(e, t, n) { var r = n(6), o = n(33).onFreeze; - n(25)('preventExtensions', function(e) { + n(24)('preventExtensions', function(e) { return function(t) { return e && r(t) ? e(o(t)) : t; }; @@ -116710,7 +118117,7 @@ object-assign }, function(e, t, n) { var r = n(6); - n(25)('isFrozen', function(e) { + n(24)('isFrozen', function(e) { return function(t) { return !r(t) || (!!e && e(t)); }; @@ -116718,7 +118125,7 @@ object-assign }, function(e, t, n) { var r = n(6); - n(25)('isSealed', function(e) { + n(24)('isSealed', function(e) { return function(t) { return !r(t) || (!!e && e(t)); }; @@ -116726,7 +118133,7 @@ object-assign }, function(e, t, n) { var r = n(6); - n(25)('isExtensible', function(e) { + n(24)('isExtensible', function(e) { return function(t) { return !!r(t) && (!e || e(t)); }; @@ -116746,7 +118153,7 @@ object-assign }, function(e, t, n) { 'use strict'; - var r = n(55), + var r = n(53), o = {}; (o[n(9)('toStringTag')] = 'z'), o + '' != '[object z]' && @@ -116815,9 +118222,9 @@ object-assign s = n(32), c = n(3), u = n(40).f, - l = n(24).f, + l = n(23).f, f = n(12).f, - d = n(65).trim, + d = n(64).trim, p = r.Number, h = p, g = p.prototype, @@ -116876,18 +118283,18 @@ object-assign : 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'.split( ',' ), - x = 0; - _.length > x; - x++ + w = 0; + _.length > w; + w++ ) - o(h, (v = _[x])) && !o(p, v) && f(p, v, l(h, v)); + o(h, (v = _[w])) && !o(p, v) && f(p, v, l(h, v)); (p.prototype = g), (g.constructor = p), n(15)(r, 'Number', p); } }, function(e, t, n) { 'use strict'; var r = n(1), - o = n(23), + o = n(22), i = n(126), a = n(90), s = (1).toFixed, @@ -117138,7 +118545,7 @@ object-assign }, function(e, t, n) { var r = n(1); - r(r.S, 'Math', { fround: n(219) }); + r(r.S, 'Math', { fround: n(216) }); }, function(e, t, n) { var r = n(91), @@ -117317,7 +118724,7 @@ object-assign }, function(e, t, n) { 'use strict'; - n(65)('trim', function(e) { + n(64)('trim', function(e) { return function() { return e(this, 3); }; @@ -117553,7 +118960,7 @@ object-assign }, function(e, t, n) { var r = n(1), - o = n(254); + o = n(251); r(r.P + r.F * (Date.prototype.toISOString !== o), 'Date', { toISOString: o }); @@ -117569,8 +118976,7 @@ object-assign e.exports = r(function() { return ( - '0385-07-25T07:06:39.999Z' != - i.call(new Date(-50000000000001)) + '0385-07-25T07:06:39.999Z' != i.call(new Date(-5e13 - 1)) ); }) || !r(function() { @@ -117616,7 +119022,7 @@ object-assign function(e, t, n) { var r = n(9)('toPrimitive'), o = Date.prototype; - r in o || n(19)(o, r, n(257)); + r in o || n(19)(o, r, n(254)); }, function(e, t, n) { 'use strict'; @@ -117645,7 +119051,7 @@ object-assign o( o.S + o.F * - !n(66)(function(e) { + !n(65)(function(e) { Array.from(e); }), 'Array', @@ -117712,7 +119118,7 @@ object-assign var r = n(1), o = n(20), i = [].join; - r(r.P + r.F * (n(53) != Object || !n(21)(i)), 'Array', { + r(r.P + r.F * (n(51) != Object || !n(21)(i)), 'Array', { join: function(e) { return i.call(o(this), void 0 === e ? ',' : e); } @@ -117785,7 +119191,7 @@ object-assign function(e, t, n) { 'use strict'; var r = n(1), - o = n(26)(0), + o = n(25)(0), i = n(21)([].forEach, !0); r(r.P + r.F * !i, 'Array', { forEach: function(e) { @@ -117794,7 +119200,7 @@ object-assign }); }, function(e, t, n) { - var r = n(266); + var r = n(263); e.exports = function(e, t) { return new (r(e))(t); }; @@ -117818,7 +119224,7 @@ object-assign function(e, t, n) { 'use strict'; var r = n(1), - o = n(26)(1); + o = n(25)(1); r(r.P + r.F * !n(21)([].map, !0), 'Array', { map: function(e) { return o(this, e, arguments[1]); @@ -117828,7 +119234,7 @@ object-assign function(e, t, n) { 'use strict'; var r = n(1), - o = n(26)(2); + o = n(25)(2); r(r.P + r.F * !n(21)([].filter, !0), 'Array', { filter: function(e) { return o(this, e, arguments[1]); @@ -117838,7 +119244,7 @@ object-assign function(e, t, n) { 'use strict'; var r = n(1), - o = n(26)(3); + o = n(25)(3); r(r.P + r.F * !n(21)([].some, !0), 'Array', { some: function(e) { return o(this, e, arguments[1]); @@ -117848,7 +119254,7 @@ object-assign function(e, t, n) { 'use strict'; var r = n(1), - o = n(26)(4); + o = n(25)(4); r(r.P + r.F * !n(21)([].every, !0), 'Array', { every: function(e) { return o(this, e, arguments[1]); @@ -117878,7 +119284,7 @@ object-assign function(e, t, n) { 'use strict'; var r = n(1), - o = n(63)(!1), + o = n(62)(!1), i = [].indexOf, a = !!i && 1 / [1].indexOf(1, -0) < 0; r(r.P + r.F * (a || !n(21)(i)), 'Array', { @@ -117893,7 +119299,7 @@ object-assign 'use strict'; var r = n(1), o = n(20), - i = n(23), + i = n(22), a = n(11), s = [].lastIndexOf, c = !!s && 1 / [1].lastIndexOf(1, -0) < 0; @@ -117916,16 +119322,16 @@ object-assign }, function(e, t, n) { var r = n(1); - r(r.P, 'Array', { copyWithin: n(132) }), n(46)('copyWithin'); + r(r.P, 'Array', { copyWithin: n(132) }), n(45)('copyWithin'); }, function(e, t, n) { var r = n(1); - r(r.P, 'Array', { fill: n(101) }), n(46)('fill'); + r(r.P, 'Array', { fill: n(101) }), n(45)('fill'); }, function(e, t, n) { 'use strict'; var r = n(1), - o = n(26)(5), + o = n(25)(5), i = !0; 'find' in [] && Array(1).find(function() { @@ -117940,12 +119346,12 @@ object-assign ); } }), - n(46)('find'); + n(45)('find'); }, function(e, t, n) { 'use strict'; var r = n(1), - o = n(26)(6), + o = n(25)(6), i = 'findIndex', a = !0; i in [] && @@ -117961,10 +119367,10 @@ object-assign ); } }), - n(46)(i); + n(45)(i); }, function(e, t, n) { - n(47)('Array'); + n(46)('Array'); }, function(e, t, n) { var r = n(5), @@ -117972,7 +119378,7 @@ object-assign i = n(12).f, a = n(40).f, s = n(96), - c = n(67), + c = n(66), u = r.RegExp, l = u, f = u.prototype, @@ -118027,13 +119433,13 @@ object-assign g(m[b++]); (f.constructor = u), (u.prototype = f), n(15)(r, 'RegExp', u); } - n(47)('RegExp'); + n(46)('RegExp'); }, function(e, t, n) { 'use strict'; n(135); var r = n(4), - o = n(67), + o = n(66), i = n(13), a = /./.toString, s = function(e) { @@ -118064,8 +119470,8 @@ object-assign var r = n(4), o = n(11), i = n(104), - a = n(68); - n(69)('match', 1, function(e, t, n, s) { + a = n(67); + n(68)('match', 1, function(e, t, n, s) { return [ function(n) { var r = e(this), @@ -118098,15 +119504,15 @@ object-assign var r = n(4), o = n(16), i = n(11), - a = n(23), + a = n(22), s = n(104), - c = n(68), + c = n(67), u = Math.max, l = Math.min, f = Math.floor, d = /\$([$&`']|\d\d?|<[^>]*>)/g, p = /\$([$&`']|\d\d?)/g; - n(69)('replace', 2, function(e, t, n, h) { + n(68)('replace', 2, function(e, t, n, h) { return [ function(r, o) { var i = e(this), @@ -118134,26 +119540,26 @@ object-assign '' === String(v[0]) && (f.lastIndex = s(d, i(f.lastIndex), b)); } - for (var _, x = '', w = 0, M = 0; M < y.length; M++) { + for (var _, w = '', x = 0, M = 0; M < y.length; M++) { v = y[M]; for ( var k = String(v[0]), S = u(l(a(v.index), d.length), 0), - A = [], - O = 1; - O < v.length; - O++ + O = [], + E = 1; + E < v.length; + E++ ) - A.push(void 0 === (_ = v[O]) ? _ : String(_)); - var E = v.groups; + O.push(void 0 === (_ = v[E]) ? _ : String(_)); + var A = v.groups; if (p) { - var T = [k].concat(A, S, d); - void 0 !== E && T.push(E); + var T = [k].concat(O, S, d); + void 0 !== A && T.push(A); var C = String(t.apply(void 0, T)); - } else C = g(k, d, S, A, E, t); - S >= w && ((x += d.slice(w, S) + C), (w = S + k.length)); + } else C = g(k, d, S, O, A, t); + S >= x && ((w += d.slice(x, S) + C), (x = S + k.length)); } - return x + d.slice(w); + return w + d.slice(x); } ]; function g(e, t, r, i, a, s) { @@ -118201,8 +119607,8 @@ object-assign 'use strict'; var r = n(4), o = n(121), - i = n(68); - n(69)('search', 1, function(e, t, n, a) { + i = n(67); + n(68)('search', 1, function(e, t, n, a) { return [ function(n) { var r = e(this), @@ -118231,28 +119637,27 @@ object-assign 'use strict'; var r = n(96), o = n(4), - i = n(56), + i = n(54), a = n(104), s = n(11), - c = n(68), + c = n(67), u = n(103), l = n(3), f = Math.min, d = [].push, - p = 'length', - h = !l(function() { + p = !l(function() { RegExp(4294967295, 'y'); }); - n(69)('split', 2, function(e, t, n, l) { - var g; + n(68)('split', 2, function(e, t, n, l) { + var h; return ( - (g = + (h = 'c' == 'abbc'.split(/(b)*/)[1] || - 4 != 'test'.split(/(?:)/, -1)[p] || - 2 != 'ab'.split(/(?:ab)*/)[p] || - 4 != '.'.split(/(.?)(.?)/)[p] || - '.'.split(/()()/)[p] > 1 || - ''.split(/.?/)[p] + 4 != 'test'.split(/(?:)/, -1).length || + 2 != 'ab'.split(/(?:ab)*/).length || + 4 != '.'.split(/(.?)(.?)/).length || + '.'.split(/()()/).length > 1 || + ''.split(/.?/).length ? function(e, t) { var o = String(this); if (void 0 === e && 0 === t) return []; @@ -118268,30 +119673,30 @@ object-assign (e.unicode ? 'u' : '') + (e.sticky ? 'y' : ''), f = 0, - h = void 0 === t ? 4294967295 : t >>> 0, - g = new RegExp(e.source, l + 'g'); - (i = u.call(g, o)) && + p = void 0 === t ? 4294967295 : t >>> 0, + h = new RegExp(e.source, l + 'g'); + (i = u.call(h, o)) && !( - (a = g.lastIndex) > f && + (a = h.lastIndex) > f && (c.push(o.slice(f, i.index)), - i[p] > 1 && - i.index < o[p] && + i.length > 1 && + i.index < o.length && d.apply(c, i.slice(1)), - (s = i[0][p]), + (s = i[0].length), (f = a), - c[p] >= h) + c.length >= p) ); ) - g.lastIndex === i.index && g.lastIndex++; + h.lastIndex === i.index && h.lastIndex++; return ( - f === o[p] - ? (!s && g.test('')) || c.push('') + f === o.length + ? (!s && h.test('')) || c.push('') : c.push(o.slice(f)), - c[p] > h ? c.slice(0, h) : c + c.length > p ? c.slice(0, p) : c ); } - : '0'.split(void 0, 0)[p] + : '0'.split(void 0, 0).length ? function(e, t) { return void 0 === e && 0 === t ? [] @@ -118304,41 +119709,41 @@ object-assign i = null == n ? void 0 : n[t]; return void 0 !== i ? i.call(n, o, r) - : g.call(String(o), n, r); + : h.call(String(o), n, r); }, function(e, t) { - var r = l(g, e, this, t, g !== n); + var r = l(h, e, this, t, h !== n); if (r.done) return r.value; var u = o(e), d = String(this), - p = i(u, RegExp), + g = i(u, RegExp), m = u.unicode, b = (u.ignoreCase ? 'i' : '') + (u.multiline ? 'm' : '') + (u.unicode ? 'u' : '') + - (h ? 'y' : 'g'), - y = new p(h ? u : '^(?:' + u.source + ')', b), + (p ? 'y' : 'g'), + y = new g(p ? u : '^(?:' + u.source + ')', b), v = void 0 === t ? 4294967295 : t >>> 0; if (0 === v) return []; if (0 === d.length) return null === c(y, d) ? [d] : []; - for (var _ = 0, x = 0, w = []; x < d.length; ) { - y.lastIndex = h ? x : 0; + for (var _ = 0, w = 0, x = []; w < d.length; ) { + y.lastIndex = p ? w : 0; var M, - k = c(y, h ? d : d.slice(x)); + k = c(y, p ? d : d.slice(w)); if ( null === k || - (M = f(s(y.lastIndex + (h ? 0 : x)), d.length)) === _ + (M = f(s(y.lastIndex + (p ? 0 : w)), d.length)) === _ ) - x = a(d, x, m); + w = a(d, w, m); else { - if ((w.push(d.slice(_, x)), w.length === v)) return w; + if ((x.push(d.slice(_, w)), x.length === v)) return x; for (var S = 1; S <= k.length - 1; S++) - if ((w.push(k[S]), w.length === v)) return w; - x = _ = M; + if ((x.push(k[S]), x.length === v)) return x; + w = _ = M; } } - return w.push(d.slice(_)), w; + return x.push(d.slice(_)), x; } ] ); @@ -118407,8 +119812,8 @@ object-assign function(e, t, n) { 'use strict'; var r = n(139), - o = n(50); - e.exports = n(72)( + o = n(49); + e.exports = n(71)( 'Map', function(e) { return function() { @@ -118434,8 +119839,8 @@ object-assign function(e, t, n) { 'use strict'; var r = n(139), - o = n(50); - e.exports = n(72)( + o = n(49); + e.exports = n(71)( 'Set', function(e) { return function() { @@ -118456,14 +119861,14 @@ object-assign function(e, t, n) { 'use strict'; var r, - o = n(26)(0), + o = n(25)(0), i = n(15), a = n(33), s = n(120), c = n(140), u = n(6), l = n(3), - f = n(50), + f = n(49), d = a.getWeak, p = Object.isExtensible, h = c.ufstore, @@ -118491,7 +119896,7 @@ object-assign return c.def(f(this, 'WeakMap'), e, t); } }, - y = (e.exports = n(72)('WeakMap', m, b, c, !0, !0)); + y = (e.exports = n(71)('WeakMap', m, b, c, !0, !0)); l(function() { return 7 != new y().set((Object.freeze || Object)(g), 7).get(g); }) && @@ -118513,8 +119918,8 @@ object-assign function(e, t, n) { 'use strict'; var r = n(140), - o = n(50); - n(72)( + o = n(49); + n(71)( 'WeakSet', function(e) { return function() { @@ -118537,14 +119942,14 @@ object-assign function(e, t, n) { 'use strict'; var r = n(1), - o = n(73), + o = n(72), i = n(106), a = n(4), s = n(38), c = n(11), u = n(6), l = n(5).ArrayBuffer, - f = n(56), + f = n(54), d = i.ArrayBuffer, p = i.DataView, h = o.ABV && l.isView, @@ -118584,11 +119989,11 @@ object-assign } } ), - n(47)('ArrayBuffer'); + n(46)('ArrayBuffer'); }, function(e, t, n) { var r = n(1); - r(r.G + r.W + r.F * !n(73).ABV, { DataView: n(106).DataView }); + r(r.G + r.W + r.F * !n(72).ABV, { DataView: n(106).DataView }); }, function(e, t, n) { n(31)('Int8', 1, function(e) { @@ -118752,7 +120157,7 @@ object-assign }, function(e, t, n) { var r = n(1), - o = n(24).f, + o = n(23).f, i = n(4); r(r.S, 'Reflect', { deleteProperty: function(e, t) { @@ -118786,7 +120191,7 @@ object-assign }); }, function(e, t, n) { - var r = n(24), + var r = n(23), o = n(41), i = n(18), a = n(1), @@ -118812,7 +120217,7 @@ object-assign }); }, function(e, t, n) { - var r = n(24), + var r = n(23), o = n(1), i = n(4); o(o.S, 'Reflect', { @@ -118870,7 +120275,7 @@ object-assign }, function(e, t, n) { var r = n(12), - o = n(24), + o = n(23), i = n(41), a = n(18), s = n(1), @@ -118915,12 +120320,12 @@ object-assign }); }, function(e, t, n) { - n(318), (e.exports = n(14).Array.includes); + n(315), (e.exports = n(14).Array.includes); }, function(e, t, n) { 'use strict'; var r = n(1), - o = n(63)(!0); + o = n(62)(!0); r(r.P, 'Array', { includes: function(e) { return o( @@ -118930,16 +120335,16 @@ object-assign ); } }), - n(46)('includes'); + n(45)('includes'); }, function(e, t, n) { - n(320), (e.exports = n(14).String.padStart); + n(317), (e.exports = n(14).String.padStart); }, function(e, t, n) { 'use strict'; var r = n(1), o = n(143), - i = n(71); + i = n(70); r( r.P + r.F * /Version\/10\.\d+(\.\d+)? Safari\//.test(i), 'String', @@ -118956,13 +120361,13 @@ object-assign ); }, function(e, t, n) { - n(322), (e.exports = n(14).String.padEnd); + n(319), (e.exports = n(14).String.padEnd); }, function(e, t, n) { 'use strict'; var r = n(1), o = n(143), - i = n(71); + i = n(70); r( r.P + r.F * /Version\/10\.\d+(\.\d+)? Safari\//.test(i), 'String', @@ -118979,19 +120384,19 @@ object-assign ); }, function(e, t, n) { - n(324), (e.exports = n(82).f('asyncIterator')); + n(321), (e.exports = n(82).f('asyncIterator')); }, function(e, t, n) { n(116)('asyncIterator'); }, function(e, t, n) { - n(326), (e.exports = n(14).Object.getOwnPropertyDescriptors); + n(323), (e.exports = n(14).Object.getOwnPropertyDescriptors); }, function(e, t, n) { var r = n(1), o = n(142), i = n(20), - a = n(24), + a = n(23), s = n(99); r(r.S, 'Object', { getOwnPropertyDescriptors: function(e) { @@ -119006,7 +120411,7 @@ object-assign }); }, function(e, t, n) { - n(328), (e.exports = n(14).Object.values); + n(325), (e.exports = n(14).Object.values); }, function(e, t, n) { var r = n(1), @@ -119018,7 +120423,7 @@ object-assign }); }, function(e, t, n) { - n(330), (e.exports = n(14).Object.entries); + n(327), (e.exports = n(14).Object.entries); }, function(e, t, n) { var r = n(1), @@ -119031,14 +120436,14 @@ object-assign }, function(e, t, n) { 'use strict'; - n(136), n(332), (e.exports = n(14).Promise.finally); + n(136), n(329), (e.exports = n(14).Promise.finally); }, function(e, t, n) { 'use strict'; var r = n(1), o = n(14), i = n(5), - a = n(56), + a = n(54), s = n(138); r(r.P + r.R, 'Promise', { finally: function(e) { @@ -119064,12 +120469,12 @@ object-assign }); }, function(e, t, n) { - n(334), n(335), n(336), (e.exports = n(14)); + n(331), n(332), n(333), (e.exports = n(14)); }, function(e, t, n) { var r = n(5), o = n(1), - i = n(71), + i = n(70), a = [].slice, s = /MSIE .\./.test(i), c = function(e) { @@ -119106,7 +120511,7 @@ object-assign i = n(15), a = n(5), s = n(19), - c = n(45), + c = n(44), u = n(9), l = u('iterator'), f = u('toStringTag'), @@ -119164,72 +120569,77 @@ object-assign function(e, t) { !(function(t) { 'use strict'; - var n = Object.prototype, - r = n.hasOwnProperty, - o = 'function' == typeof Symbol ? Symbol : {}, - i = o.iterator || '@@iterator', - a = o.asyncIterator || '@@asyncIterator', - s = o.toStringTag || '@@toStringTag', - c = 'object' == typeof e, - u = t.regeneratorRuntime; - if (u) c && (e.exports = u); + var n, + r = Object.prototype, + o = r.hasOwnProperty, + i = 'function' == typeof Symbol ? Symbol : {}, + a = i.iterator || '@@iterator', + s = i.asyncIterator || '@@asyncIterator', + c = i.toStringTag || '@@toStringTag', + u = 'object' == typeof e, + l = t.regeneratorRuntime; + if (l) u && (e.exports = l); else { - (u = t.regeneratorRuntime = c ? e.exports : {}).wrap = g; - var l = {}, - f = {}; - f[i] = function() { + (l = t.regeneratorRuntime = u ? e.exports : {}).wrap = _; + var f = 'suspendedStart', + d = 'suspendedYield', + p = 'executing', + h = 'completed', + g = {}, + m = {}; + m[a] = function() { return this; }; - var d = Object.getPrototypeOf, - p = d && d(d(A([]))); - p && p !== n && r.call(p, i) && (f = p); - var h = (v.prototype = b.prototype = Object.create(f)); - (y.prototype = h.constructor = v), - (v.constructor = y), - (v[s] = y.displayName = 'GeneratorFunction'), - (u.isGeneratorFunction = function(e) { + var b = Object.getPrototypeOf, + y = b && b(b(L([]))); + y && y !== r && o.call(y, a) && (m = y); + var v = (k.prototype = x.prototype = Object.create(m)); + (M.prototype = v.constructor = k), + (k.constructor = M), + (k[c] = M.displayName = 'GeneratorFunction'), + (l.isGeneratorFunction = function(e) { var t = 'function' == typeof e && e.constructor; return ( !!t && - (t === y || + (t === M || 'GeneratorFunction' === (t.displayName || t.name)) ); }), - (u.mark = function(e) { + (l.mark = function(e) { return ( Object.setPrototypeOf - ? Object.setPrototypeOf(e, v) - : ((e.__proto__ = v), - s in e || (e[s] = 'GeneratorFunction')), - (e.prototype = Object.create(h)), + ? Object.setPrototypeOf(e, k) + : ((e.__proto__ = k), + c in e || (e[c] = 'GeneratorFunction')), + (e.prototype = Object.create(v)), e ); }), - (u.awrap = function(e) { + (l.awrap = function(e) { return { __await: e }; }), - _(x.prototype), - (x.prototype[a] = function() { + S(O.prototype), + (O.prototype[s] = function() { return this; }), - (u.AsyncIterator = x), - (u.async = function(e, t, n, r) { - var o = new x(g(e, t, n, r)); - return u.isGeneratorFunction(t) + (l.AsyncIterator = O), + (l.async = function(e, t, n, r) { + var o = new O(_(e, t, n, r)); + return l.isGeneratorFunction(t) ? o : o.next().then(function(e) { return e.done ? e.value : o.next(); }); }), - _(h), - (h[s] = 'Generator'), - (h[i] = function() { + S(v), + (v[c] = 'Generator'), + (v[a] = function() { return this; }), - (h.toString = function() { + (v.toString = function() { return '[object Generator]'; }), - (u.keys = function(e) { + (l.keys = function(e) { var t = []; for (var n in e) t.push(n); return ( @@ -119243,26 +120653,26 @@ object-assign } ); }), - (u.values = A), - (S.prototype = { - constructor: S, + (l.values = L), + (C.prototype = { + constructor: C, reset: function(e) { if ( ((this.prev = 0), (this.next = 0), - (this.sent = this._sent = void 0), + (this.sent = this._sent = n), (this.done = !1), (this.delegate = null), (this.method = 'next'), - (this.arg = void 0), - this.tryEntries.forEach(k), + (this.arg = n), + this.tryEntries.forEach(T), !e) ) for (var t in this) 't' === t.charAt(0) && - r.call(this, t) && + o.call(this, t) && !isNaN(+t.slice(1)) && - (this[t] = void 0); + (this[t] = n); }, stop: function() { this.done = !0; @@ -119273,50 +120683,50 @@ object-assign dispatchException: function(e) { if (this.done) throw e; var t = this; - function n(n, r) { + function r(r, o) { return ( - (a.type = 'throw'), - (a.arg = e), - (t.next = n), - r && ((t.method = 'next'), (t.arg = void 0)), - !!r + (s.type = 'throw'), + (s.arg = e), + (t.next = r), + o && ((t.method = 'next'), (t.arg = n)), + !!o ); } - for (var o = this.tryEntries.length - 1; o >= 0; --o) { - var i = this.tryEntries[o], - a = i.completion; - if ('root' === i.tryLoc) return n('end'); - if (i.tryLoc <= this.prev) { - var s = r.call(i, 'catchLoc'), - c = r.call(i, 'finallyLoc'); - if (s && c) { - if (this.prev < i.catchLoc) - return n(i.catchLoc, !0); - if (this.prev < i.finallyLoc) - return n(i.finallyLoc); - } else if (s) { - if (this.prev < i.catchLoc) - return n(i.catchLoc, !0); + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var a = this.tryEntries[i], + s = a.completion; + if ('root' === a.tryLoc) return r('end'); + if (a.tryLoc <= this.prev) { + var c = o.call(a, 'catchLoc'), + u = o.call(a, 'finallyLoc'); + if (c && u) { + if (this.prev < a.catchLoc) + return r(a.catchLoc, !0); + if (this.prev < a.finallyLoc) + return r(a.finallyLoc); + } else if (c) { + if (this.prev < a.catchLoc) + return r(a.catchLoc, !0); } else { - if (!c) + if (!u) throw new Error( 'try statement without catch or finally' ); - if (this.prev < i.finallyLoc) - return n(i.finallyLoc); + if (this.prev < a.finallyLoc) + return r(a.finallyLoc); } } } }, abrupt: function(e, t) { for (var n = this.tryEntries.length - 1; n >= 0; --n) { - var o = this.tryEntries[n]; + var r = this.tryEntries[n]; if ( - o.tryLoc <= this.prev && - r.call(o, 'finallyLoc') && - this.prev < o.finallyLoc + r.tryLoc <= this.prev && + o.call(r, 'finallyLoc') && + this.prev < r.finallyLoc ) { - var i = o; + var i = r; break; } } @@ -119332,7 +120742,7 @@ object-assign i ? ((this.method = 'next'), (this.next = i.finallyLoc), - l) + g) : this.complete(a) ); }, @@ -119346,7 +120756,7 @@ object-assign (this.method = 'return'), (this.next = 'end')) : 'normal' === e.type && t && (this.next = t), - l + g ); }, finish: function(e) { @@ -119354,7 +120764,7 @@ object-assign var n = this.tryEntries[t]; if (n.finallyLoc === e) return ( - this.complete(n.completion, n.afterLoc), k(n), l + this.complete(n.completion, n.afterLoc), T(n), g ); } }, @@ -119365,106 +120775,99 @@ object-assign var r = n.completion; if ('throw' === r.type) { var o = r.arg; - k(n); + T(n); } return o; } } throw new Error('illegal catch attempt'); }, - delegateYield: function(e, t, n) { + delegateYield: function(e, t, r) { return ( (this.delegate = { - iterator: A(e), + iterator: L(e), resultName: t, - nextLoc: n + nextLoc: r }), - 'next' === this.method && (this.arg = void 0), - l + 'next' === this.method && (this.arg = n), + g ); } }); } - function g(e, t, n, r) { - var o = t && t.prototype instanceof b ? t : b, + function _(e, t, n, r) { + var o = t && t.prototype instanceof x ? t : x, i = Object.create(o.prototype), - a = new S(r || []); + a = new C(r || []); return ( (i._invoke = (function(e, t, n) { - var r = 'suspendedStart'; + var r = f; return function(o, i) { - if ('executing' === r) + if (r === p) throw new Error('Generator is already running'); - if ('completed' === r) { + if (r === h) { if ('throw' === o) throw i; - return { value: void 0, done: !0 }; + return P(); } for (n.method = o, n.arg = i; ; ) { var a = n.delegate; if (a) { - var s = w(a, n); + var s = E(a, n); if (s) { - if (s === l) continue; + if (s === g) continue; return s; } } if ('next' === n.method) n.sent = n._sent = n.arg; else if ('throw' === n.method) { - if ('suspendedStart' === r) - throw ((r = 'completed'), n.arg); + if (r === f) throw ((r = h), n.arg); n.dispatchException(n.arg); } else 'return' === n.method && n.abrupt('return', n.arg); - r = 'executing'; - var c = m(e, t, n); + r = p; + var c = w(e, t, n); if ('normal' === c.type) { - if ( - ((r = n.done ? 'completed' : 'suspendedYield'), - c.arg === l) - ) - continue; + if (((r = n.done ? h : d), c.arg === g)) continue; return { value: c.arg, done: n.done }; } 'throw' === c.type && - ((r = 'completed'), - (n.method = 'throw'), - (n.arg = c.arg)); + ((r = h), (n.method = 'throw'), (n.arg = c.arg)); } }; })(e, n, a)), i ); } - function m(e, t, n) { + function w(e, t, n) { try { return { type: 'normal', arg: e.call(t, n) }; } catch (e) { return { type: 'throw', arg: e }; } } - function b() {} - function y() {} - function v() {} - function _(e) { + function x() {} + function M() {} + function k() {} + function S(e) { ['next', 'throw', 'return'].forEach(function(t) { e[t] = function(e) { return this._invoke(t, e); }; }); } - function x(e) { + function O(e) { var t; - this._invoke = function(n, o) { + this._invoke = function(n, r) { function i() { return new Promise(function(t, i) { - !(function t(n, o, i, a) { - var s = m(e[n], e, o); + !(function t(n, r, i, a) { + var s = w(e[n], e, r); if ('throw' !== s.type) { var c = s.arg, u = c.value; return u && 'object' == typeof u && - r.call(u, '__await') + o.call(u, '__await') ? Promise.resolve(u.__await).then( function(e) { t('next', e, i, a); @@ -119483,91 +120886,91 @@ object-assign ); } a(s.arg); - })(n, o, t, i); + })(n, r, t, i); }); } return (t = t ? t.then(i, i) : i()); }; } - function w(e, t) { - var n = e.iterator[t.method]; - if (void 0 === n) { + function E(e, t) { + var r = e.iterator[t.method]; + if (r === n) { if (((t.delegate = null), 'throw' === t.method)) { if ( e.iterator.return && ((t.method = 'return'), - (t.arg = void 0), - w(e, t), + (t.arg = n), + E(e, t), 'throw' === t.method) ) - return l; + return g; (t.method = 'throw'), (t.arg = new TypeError( "The iterator does not provide a 'throw' method" )); } - return l; + return g; } - var r = m(n, e.iterator, t.arg); - if ('throw' === r.type) + var o = w(r, e.iterator, t.arg); + if ('throw' === o.type) return ( (t.method = 'throw'), - (t.arg = r.arg), + (t.arg = o.arg), (t.delegate = null), - l + g ); - var o = r.arg; - return o - ? o.done - ? ((t[e.resultName] = o.value), + var i = o.arg; + return i + ? i.done + ? ((t[e.resultName] = i.value), (t.next = e.nextLoc), 'return' !== t.method && - ((t.method = 'next'), (t.arg = void 0)), + ((t.method = 'next'), (t.arg = n)), (t.delegate = null), - l) - : o + g) + : i : ((t.method = 'throw'), (t.arg = new TypeError( 'iterator result is not an object' )), (t.delegate = null), - l); + g); } - function M(e) { + function A(e) { var t = { tryLoc: e[0] }; 1 in e && (t.catchLoc = e[1]), 2 in e && ((t.finallyLoc = e[2]), (t.afterLoc = e[3])), this.tryEntries.push(t); } - function k(e) { + function T(e) { var t = e.completion || {}; (t.type = 'normal'), delete t.arg, (e.completion = t); } - function S(e) { + function C(e) { (this.tryEntries = [{ tryLoc: 'root' }]), - e.forEach(M, this), + e.forEach(A, this), this.reset(!0); } - function A(e) { + function L(e) { if (e) { - var t = e[i]; + var t = e[a]; if (t) return t.call(e); if ('function' == typeof e.next) return e; if (!isNaN(e.length)) { - var n = -1, - o = function t() { - for (; ++n < e.length; ) - if (r.call(e, n)) - return (t.value = e[n]), (t.done = !1), t; - return (t.value = void 0), (t.done = !0), t; + var r = -1, + i = function t() { + for (; ++r < e.length; ) + if (o.call(e, r)) + return (t.value = e[r]), (t.done = !1), t; + return (t.value = n), (t.done = !0), t; }; - return (o.next = o); + return (i.next = i); } } - return { next: O }; + return { next: P }; } - function O() { - return { value: void 0, done: !0 }; + function P() { + return { value: n, done: !0 }; } })( (function() { @@ -119576,15 +120979,15 @@ object-assign ); }, function(e, t, n) { - var r = n(339); + var r = n(336); 'string' == typeof r && (r = [[e.i, r, '']]); var o = { hmr: !0, transform: void 0, insertInto: void 0 }; - n(75)(r, o), r.locals && (e.exports = r.locals); + n(74)(r, o), r.locals && (e.exports = r.locals); }, function(e, t, n) { - (e.exports = n(74)(!1)).push([ + (e.exports = n(73)(!1)).push([ e.i, - '.dev-body{\n margin: 2rem auto;\n width: 100%;\n max-width: 1500px;\n}\n\n.dev-reload-button{\n position: absolute;\n left: 1rem;\n top: 1rem;\n color: #ccc;\n}\n\n.keen-explorer-template{\n margin: 0 auto;\n width: 100%;\n max-width: 1500px;\n}\n\n.keen-explorer-template #keen-explorer-container{\n padding: 1rem;\n }\n\n.PresetDateRangePicker_panel {\n padding: 0 22px 11px\n}\n\n.PresetDateRangePicker_button {\n position: relative;\n height: 100%;\n text-align: center;\n background: 0 0;\n border: 2px solid #00a699;\n color: #00a699;\n padding: 4px 12px;\n margin-right: 8px;\n font: inherit;\n font-weight: 700;\n line-height: normal;\n overflow: visible;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n cursor: pointer\n}\n\n.PresetDateRangePicker_button:active {\n outline: 0\n}\n\n.PresetDateRangePicker_button__selected {\n color: #fff;\n background: #00a699\n}\n\n.SingleDatePickerInput {\n display: inline-block;\n background-color: #fff\n}\n\n.SingleDatePickerInput__withBorder {\n border-radius: 2px;\n border: 1px solid #dbdbdb\n}\n\n.SingleDatePickerInput__rtl {\n direction: rtl\n}\n\n.SingleDatePickerInput__disabled {\n background-color: #f2f2f2\n}\n\n.SingleDatePickerInput__block {\n display: block\n}\n\n.SingleDatePickerInput__showClearDate {\n padding-right: 30px\n}\n\n.SingleDatePickerInput_clearDate {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n padding: 10px;\n margin: 0 10px 0 5px;\n position: absolute;\n right: 0;\n top: 50%;\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%)\n}\n\n.SingleDatePickerInput_clearDate__default:focus,\n.SingleDatePickerInput_clearDate__default:hover {\n background: #dbdbdb;\n border-radius: 50%\n}\n\n.SingleDatePickerInput_clearDate__small {\n padding: 6px\n}\n\n.SingleDatePickerInput_clearDate__hide {\n visibility: hidden\n}\n\n.SingleDatePickerInput_clearDate_svg {\n fill: #82888a;\n height: 12px;\n width: 15px;\n vertical-align: middle\n}\n\n.SingleDatePickerInput_clearDate_svg__small {\n height: 9px\n}\n\n.SingleDatePickerInput_calendarIcon {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n display: inline-block;\n vertical-align: middle;\n padding: 10px;\n margin: 0 5px 0 10px\n}\n\n.SingleDatePickerInput_calendarIcon_svg {\n fill: #82888a;\n height: 15px;\n width: 14px;\n vertical-align: middle\n}\n\n.SingleDatePicker {\n position: relative;\n display: inline-block\n}\n\n.SingleDatePicker__block {\n display: block\n}\n\n.SingleDatePicker_picker {\n z-index: 1;\n background-color: #fff;\n position: absolute\n}\n\n.SingleDatePicker_picker__rtl {\n direction: rtl\n}\n\n.SingleDatePicker_picker__directionLeft {\n left: 0\n}\n\n.SingleDatePicker_picker__directionRight {\n right: 0\n}\n\n.SingleDatePicker_picker__portal {\n background-color: rgba(0,0,0,.3);\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%\n}\n\n.SingleDatePicker_picker__fullScreenPortal {\n background-color: #fff\n}\n\n.SingleDatePicker_closeButton {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n position: absolute;\n top: 0;\n right: 0;\n padding: 15px;\n z-index: 2\n}\n\n.SingleDatePicker_closeButton:focus,\n.SingleDatePicker_closeButton:hover {\n color: darken(#cacccd,10%);\n text-decoration: none\n}\n\n.SingleDatePicker_closeButton_svg {\n height: 15px;\n width: 15px;\n fill: #cacccd\n}\n\n.DayPickerKeyboardShortcuts_buttonReset {\n background: 0 0;\n border: 0;\n border-radius: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n padding: 0;\n cursor: pointer;\n font-size: 14px\n}\n\n.DayPickerKeyboardShortcuts_buttonReset:active {\n outline: 0\n}\n\n.DayPickerKeyboardShortcuts_show {\n width: 33px;\n height: 26px;\n position: absolute;\n z-index: 2\n}\n\n.DayPickerKeyboardShortcuts_show::before {\n content: "";\n display: block;\n position: absolute\n}\n\n.DayPickerKeyboardShortcuts_show__bottomRight {\n bottom: 0;\n right: 0\n}\n\n.DayPickerKeyboardShortcuts_show__bottomRight::before {\n border-top: 26px solid transparent;\n border-right: 33px solid #00a699;\n bottom: 0;\n right: 0\n}\n\n.DayPickerKeyboardShortcuts_show__bottomRight:hover::before {\n border-right: 33px solid #008489\n}\n\n.DayPickerKeyboardShortcuts_show__topRight {\n top: 0;\n right: 0\n}\n\n.DayPickerKeyboardShortcuts_show__topRight::before {\n border-bottom: 26px solid transparent;\n border-right: 33px solid #00a699;\n top: 0;\n right: 0\n}\n\n.DayPickerKeyboardShortcuts_show__topRight:hover::before {\n border-right: 33px solid #008489\n}\n\n.DayPickerKeyboardShortcuts_show__topLeft {\n top: 0;\n left: 0\n}\n\n.DayPickerKeyboardShortcuts_show__topLeft::before {\n border-bottom: 26px solid transparent;\n border-left: 33px solid #00a699;\n top: 0;\n left: 0\n}\n\n.DayPickerKeyboardShortcuts_show__topLeft:hover::before {\n border-left: 33px solid #008489\n}\n\n.DayPickerKeyboardShortcuts_showSpan {\n color: #fff;\n position: absolute\n}\n\n.DayPickerKeyboardShortcuts_showSpan__bottomRight {\n bottom: 0;\n right: 5px\n}\n\n.DayPickerKeyboardShortcuts_showSpan__topRight {\n top: 1px;\n right: 5px\n}\n\n.DayPickerKeyboardShortcuts_showSpan__topLeft {\n top: 1px;\n left: 5px\n}\n\n.DayPickerKeyboardShortcuts_panel {\n overflow: auto;\n background: #fff;\n border: 1px solid #dbdbdb;\n border-radius: 2px;\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n left: 0;\n z-index: 2;\n padding: 22px;\n margin: 33px;\n text-align: left\n}\n\n.DayPickerKeyboardShortcuts_title {\n font-size: 16px;\n font-weight: 700;\n margin: 0\n}\n\n.DayPickerKeyboardShortcuts_list {\n list-style: none;\n padding: 0;\n font-size: 14px\n}\n\n.DayPickerKeyboardShortcuts_close {\n position: absolute;\n right: 22px;\n top: 22px;\n z-index: 2\n}\n\n.DayPickerKeyboardShortcuts_close:active {\n outline: 0\n}\n\n.DayPickerKeyboardShortcuts_closeSvg {\n height: 15px;\n width: 15px;\n fill: #cacccd\n}\n\n.DayPickerKeyboardShortcuts_closeSvg:focus,\n.DayPickerKeyboardShortcuts_closeSvg:hover {\n fill: #82888a\n}\n\n.CalendarDay {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 14px;\n text-align: center\n}\n\n.CalendarDay:active {\n outline: 0\n}\n\n.CalendarDay__defaultCursor {\n cursor: default\n}\n\n.CalendarDay__default {\n border: 1px solid #e4e7e7;\n color: #484848;\n background: #fff\n}\n\n.CalendarDay__default:hover {\n background: #e4e7e7;\n border: 1px solid #e4e7e7;\n color: inherit\n}\n\n.CalendarDay__hovered_offset {\n background: #f4f5f5;\n border: 1px double #e4e7e7;\n color: inherit\n}\n\n.CalendarDay__outside {\n border: 0;\n background: #fff;\n color: #484848\n}\n\n.CalendarDay__outside:hover {\n border: 0\n}\n\n.CalendarDay__blocked_minimum_nights {\n background: #fff;\n border: 1px solid #eceeee;\n color: #cacccd\n}\n\n.CalendarDay__blocked_minimum_nights:active,\n.CalendarDay__blocked_minimum_nights:hover {\n background: #fff;\n color: #cacccd\n}\n\n.CalendarDay__highlighted_calendar {\n background: #ffe8bc;\n color: #484848\n}\n\n.CalendarDay__highlighted_calendar:active,\n.CalendarDay__highlighted_calendar:hover {\n background: #ffce71;\n color: #484848\n}\n\n.CalendarDay__selected_span {\n background: #66e2da;\n border: 1px double #33dacd;\n color: #fff\n}\n\n.CalendarDay__selected_span:active,\n.CalendarDay__selected_span:hover {\n background: #33dacd;\n border: 1px double #33dacd;\n color: #fff\n}\n\n.CalendarDay__last_in_range,\n.CalendarDay__last_in_range:hover {\n border-style: solid\n}\n\n.CalendarDay__selected,\n.CalendarDay__selected:active,\n.CalendarDay__selected:hover {\n background: #00a699;\n border: 1px double #00a699;\n color: #fff\n}\n\n.CalendarDay__hovered_span,\n.CalendarDay__hovered_span:hover {\n background: #b2f1ec;\n border: 1px double #80e8e0;\n color: #007a87\n}\n\n.CalendarDay__hovered_span:active {\n background: #80e8e0;\n border: 1px double #80e8e0;\n color: #007a87\n}\n\n.CalendarDay__blocked_calendar,\n.CalendarDay__blocked_calendar:active,\n.CalendarDay__blocked_calendar:hover {\n background: #cacccd;\n border: 1px solid #cacccd;\n color: #82888a\n}\n\n.CalendarDay__blocked_out_of_range,\n.CalendarDay__blocked_out_of_range:active,\n.CalendarDay__blocked_out_of_range:hover {\n background: #fff;\n border: 1px solid #e4e7e7;\n color: #cacccd\n}\n\n.CalendarMonth {\n background: #fff;\n text-align: center;\n vertical-align: top;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none\n}\n\n.CalendarMonth_table {\n border-collapse: collapse;\n border-spacing: 0\n}\n\n.CalendarMonth_verticalSpacing {\n border-collapse: separate\n}\n\n.CalendarMonth_caption {\n color: #484848;\n font-size: 18px;\n text-align: center;\n padding-top: 22px;\n padding-bottom: 37px;\n caption-side: top;\n caption-side: initial\n}\n\n.CalendarMonth_caption__verticalScrollable {\n padding-top: 12px;\n padding-bottom: 7px\n}\n\n.CalendarMonthGrid {\n background: #fff;\n text-align: left;\n z-index: 0\n}\n\n.CalendarMonthGrid__animating {\n z-index: 1\n}\n\n.CalendarMonthGrid__horizontal {\n position: absolute;\n left: 9px\n}\n\n.CalendarMonthGrid__vertical {\n margin: 0 auto\n}\n\n.CalendarMonthGrid__vertical_scrollable {\n margin: 0 auto;\n overflow-y: scroll\n}\n\n.CalendarMonthGrid_month__horizontal {\n display: inline-block;\n vertical-align: top;\n min-height: 100%\n}\n\n.CalendarMonthGrid_month__hideForAnimation {\n position: absolute;\n z-index: -1;\n opacity: 0;\n pointer-events: none\n}\n\n.CalendarMonthGrid_month__hidden {\n visibility: hidden\n}\n\n.DayPickerNavigation {\n position: relative;\n z-index: 2\n}\n\n.DayPickerNavigation__horizontal {\n height: 0\n}\n\n.DayPickerNavigation__verticalDefault {\n position: absolute;\n width: 100%;\n height: 52px;\n bottom: 0;\n left: 0\n}\n\n.DayPickerNavigation__verticalScrollableDefault {\n position: relative\n}\n\n.DayPickerNavigation_button {\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n border: 0;\n padding: 0;\n margin: 0\n}\n\n.DayPickerNavigation_button__default {\n border: 1px solid #e4e7e7;\n background-color: #fff;\n color: #757575\n}\n\n.DayPickerNavigation_button__default:focus,\n.DayPickerNavigation_button__default:hover {\n border: 1px solid #c4c4c4\n}\n\n.DayPickerNavigation_button__default:active {\n background: #f2f2f2\n}\n\n.DayPickerNavigation_button__disabled {\n cursor: default;\n border: 1px solid #f2f2f2\n}\n\n.DayPickerNavigation_button__disabled:focus,\n.DayPickerNavigation_button__disabled:hover {\n border: 1px solid #f2f2f2\n}\n\n.DayPickerNavigation_button__disabled:active {\n background: 0 0\n}\n\n.DayPickerNavigation_button__horizontalDefault {\n position: absolute;\n top: 18px;\n line-height: .78;\n border-radius: 3px;\n padding: 6px 9px\n}\n\n.DayPickerNavigation_leftButton__horizontalDefault {\n left: 22px\n}\n\n.DayPickerNavigation_rightButton__horizontalDefault {\n right: 22px\n}\n\n.DayPickerNavigation_button__verticalDefault {\n padding: 5px;\n background: #fff;\n -webkit-box-shadow: 0 0 5px 2px rgba(0,0,0,.1);\n box-shadow: 0 0 5px 2px rgba(0,0,0,.1);\n position: relative;\n display: inline-block;\n text-align: center;\n height: 100%;\n width: 50%\n}\n\n.DayPickerNavigation_nextButton__verticalDefault {\n border-left: 0\n}\n\n.DayPickerNavigation_nextButton__verticalScrollableDefault {\n width: 100%\n}\n\n.DayPickerNavigation_svg__horizontal {\n height: 19px;\n width: 19px;\n fill: #82888a;\n display: block\n}\n\n.DayPickerNavigation_svg__vertical {\n height: 42px;\n width: 42px;\n fill: #484848\n}\n\n.DayPickerNavigation_svg__disabled {\n fill: #f2f2f2\n}\n\n.DayPicker {\n background: #fff;\n position: relative;\n text-align: left\n}\n\n.DayPicker__horizontal {\n background: #fff\n}\n\n.DayPicker__verticalScrollable {\n height: 100%\n}\n\n.DayPicker__hidden {\n visibility: hidden\n}\n\n.DayPicker__withBorder {\n -webkit-box-shadow: 0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);\n box-shadow: 0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);\n border-radius: 3px\n}\n\n.DayPicker_portal__horizontal {\n -webkit-box-shadow: none;\n box-shadow: none;\n position: absolute;\n left: 50%;\n top: 50%\n}\n\n.DayPicker_portal__vertical {\n position: static;\n position: initial\n}\n\n.DayPicker_focusRegion {\n outline: 0\n}\n\n.DayPicker_calendarInfo__horizontal,\n.DayPicker_wrapper__horizontal {\n display: inline-block;\n vertical-align: top\n}\n\n.DayPicker_weekHeaders {\n position: relative\n}\n\n.DayPicker_weekHeaders__horizontal {\n margin-left: 9px\n}\n\n.DayPicker_weekHeader {\n color: #757575;\n position: absolute;\n top: 62px;\n z-index: 2;\n text-align: left\n}\n\n.DayPicker_weekHeader__vertical {\n left: 50%\n}\n\n.DayPicker_weekHeader__verticalScrollable {\n top: 0;\n display: table-row;\n border-bottom: 1px solid #dbdbdb;\n background: #fff;\n margin-left: 0;\n left: 0;\n width: 100%;\n text-align: center\n}\n\n.DayPicker_weekHeader_ul {\n list-style: none;\n margin: 1px 0;\n padding-left: 0;\n padding-right: 0;\n font-size: 14px\n}\n\n.DayPicker_weekHeader_li {\n display: inline-block;\n text-align: center\n}\n\n.DayPicker_transitionContainer {\n position: relative;\n overflow: hidden;\n border-radius: 3px\n}\n\n.DayPicker_transitionContainer__horizontal {\n -webkit-transition: height .2s ease-in-out;\n -o-transition: height .2s ease-in-out;\n transition: height .2s ease-in-out\n}\n\n.DayPicker_transitionContainer__vertical {\n width: 100%\n}\n\n.DayPicker_transitionContainer__verticalScrollable {\n padding-top: 20px;\n height: 100%;\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n left: 0;\n overflow-y: scroll\n}\n\n.DateInput {\n margin: 0;\n padding: 0;\n background: #fff;\n position: relative;\n display: inline-block;\n width: 130px;\n vertical-align: middle\n}\n\n.DateInput__small {\n width: 97px\n}\n\n.DateInput__block {\n width: 100%\n}\n\n.DateInput__disabled {\n background: #f2f2f2;\n color: #dbdbdb\n}\n\n.DateInput_input {\n font-weight: 200;\n font-size: 19px;\n line-height: 24px;\n color: #484848;\n background-color: #fff;\n width: 100%;\n padding: 11px 11px 9px;\n border: 0;\n border-top: 0;\n border-right: 0;\n border-bottom: 2px solid transparent;\n border-left: 0;\n border-radius: 0\n}\n\n.DateInput_input__small {\n font-size: 15px;\n line-height: 18px;\n letter-spacing: .2px;\n padding: 7px 7px 5px\n}\n\n.DateInput_input__regular {\n font-weight: auto\n}\n\n.DateInput_input__readOnly {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none\n}\n\n.DateInput_input__focused {\n outline: 0;\n background: #fff;\n border: 0;\n border-top: 0;\n border-right: 0;\n border-bottom: 2px solid #008489;\n border-left: 0\n}\n\n.DateInput_input__disabled {\n background: #f2f2f2;\n font-style: italic\n}\n\n.DateInput_screenReaderMessage {\n border: 0;\n clip: rect(0,0,0,0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px\n}\n\n.DateInput_fang {\n position: absolute;\n width: 20px;\n height: 10px;\n left: 22px;\n z-index: 2\n}\n\n.DateInput_fangShape {\n fill: #fff\n}\n\n.DateInput_fangStroke {\n stroke: #dbdbdb;\n fill: transparent\n}\n\n.DateRangePickerInput {\n background-color: #fff;\n display: inline-block\n}\n\n.DateRangePickerInput__disabled {\n background: #f2f2f2\n}\n\n.DateRangePickerInput__withBorder {\n border-radius: 2px;\n border: 1px solid #dbdbdb\n}\n\n.DateRangePickerInput__rtl {\n direction: rtl\n}\n\n.DateRangePickerInput__block {\n display: block\n}\n\n.DateRangePickerInput__showClearDates {\n padding-right: 30px\n}\n\n.DateRangePickerInput_arrow {\n display: inline-block;\n vertical-align: middle;\n color: #484848\n}\n\n.DateRangePickerInput_arrow_svg {\n vertical-align: middle;\n fill: #484848;\n height: 24px;\n width: 24px\n}\n\n.DateRangePickerInput_clearDates {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n padding: 10px;\n margin: 0 10px 0 5px;\n position: absolute;\n right: 0;\n top: 50%;\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%)\n}\n\n.DateRangePickerInput_clearDates__small {\n padding: 6px\n}\n\n.DateRangePickerInput_clearDates_default:focus,\n.DateRangePickerInput_clearDates_default:hover {\n background: #dbdbdb;\n border-radius: 50%\n}\n\n.DateRangePickerInput_clearDates__hide {\n visibility: hidden\n}\n\n.DateRangePickerInput_clearDates_svg {\n fill: #82888a;\n height: 12px;\n width: 15px;\n vertical-align: middle\n}\n\n.DateRangePickerInput_clearDates_svg__small {\n height: 9px\n}\n\n.DateRangePickerInput_calendarIcon {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n display: inline-block;\n vertical-align: middle;\n padding: 10px;\n margin: 0 5px 0 10px\n}\n\n.DateRangePickerInput_calendarIcon_svg {\n fill: #82888a;\n height: 15px;\n width: 14px;\n vertical-align: middle\n}\n\n.DateRangePicker {\n position: relative;\n display: inline-block\n}\n\n.DateRangePicker__block {\n display: block\n}\n\n.DateRangePicker_picker {\n z-index: 1;\n background-color: #fff;\n position: absolute\n}\n\n.DateRangePicker_picker__rtl {\n direction: rtl\n}\n\n.DateRangePicker_picker__directionLeft {\n left: 0\n}\n\n.DateRangePicker_picker__directionRight {\n right: 0\n}\n\n.DateRangePicker_picker__portal {\n background-color: rgba(0,0,0,.3);\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%\n}\n\n.DateRangePicker_picker__fullScreenPortal {\n background-color: #fff\n}\n\n.DateRangePicker_closeButton {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n position: absolute;\n top: 0;\n right: 0;\n padding: 15px;\n z-index: 2\n}\n\n.DateRangePicker_closeButton:focus,\n.DateRangePicker_closeButton:hover {\n color: darken(#cacccd,10%);\n text-decoration: none\n}\n\n.DateRangePicker_closeButton_svg {\n height: 15px;\n width: 15px;\n fill: #cacccd\n}\n\n.rc-time-picker {\n display: inline-block;\n position: relative;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n\n.rc-time-picker * {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n\n.rc-time-picker-clear {\n position: absolute;\n right: 6px;\n cursor: pointer;\n overflow: hidden;\n width: 20px;\n height: 20px;\n text-align: center;\n line-height: 20px;\n top: 3px;\n margin: 0;\n}\n\n.rc-time-picker-clear-icon:after {\n content: "x";\n font-size: 12px;\n font-style: normal;\n color: #aaa;\n display: inline-block;\n line-height: 1;\n height: 20px;\n width: 20px;\n -webkit-transition: color 0.3s ease;\n -o-transition: color 0.3s ease;\n transition: color 0.3s ease;\n}\n\n.rc-time-picker-clear-icon:hover:after {\n color: #666;\n}\n\n.rc-time-picker-input {\n width: 100%;\n position: relative;\n display: inline-block;\n padding: 4px 7px;\n height: 28px;\n cursor: text;\n font-size: 12px;\n line-height: 1.5;\n color: #666;\n background-color: #fff;\n background-image: none;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n -webkit-transition: border 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-box-shadow 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition: border 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-box-shadow 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);\n -o-transition: border 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), box-shadow 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition: border 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), box-shadow 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition: border 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), box-shadow 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-box-shadow 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n\n.rc-time-picker-input[disabled] {\n color: #ccc;\n background: #f7f7f7;\n cursor: not-allowed;\n}\n\n.rc-time-picker-panel {\n z-index: 1070;\n width: 170px;\n position: absolute;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n\n.rc-time-picker-panel * {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n\n.rc-time-picker-panel-inner {\n display: inline-block;\n position: relative;\n outline: none;\n list-style: none;\n font-size: 12px;\n text-align: left;\n background-color: #fff;\n border-radius: 4px;\n -webkit-box-shadow: 0 1px 5px #ccc;\n box-shadow: 0 1px 5px #ccc;\n background-clip: padding-box;\n border: 1px solid #ccc;\n line-height: 1.5;\n}\n\n.rc-time-picker-panel-narrow {\n max-width: 113px;\n}\n\n.rc-time-picker-panel-input {\n margin: 0;\n padding: 0;\n width: 100%;\n cursor: auto;\n line-height: 1.5;\n outline: 0;\n border: 1px solid transparent;\n}\n\n.rc-time-picker-panel-input-wrap {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n position: relative;\n padding: 6px;\n border-bottom: 1px solid #e9e9e9;\n}\n\n.rc-time-picker-panel-input-invalid {\n border-color: red;\n}\n\n.rc-time-picker-panel-select {\n float: left;\n font-size: 12px;\n border: 1px solid #e9e9e9;\n border-width: 0 1px;\n margin-left: -1px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n width: 56px;\n max-height: 144px;\n overflow-y: auto;\n position: relative;\n}\n\n.rc-time-picker-panel-select-active {\n overflow-y: auto;\n}\n\n.rc-time-picker-panel-select:first-child {\n border-left: 0;\n margin-left: 0;\n}\n\n.rc-time-picker-panel-select:last-child {\n border-right: 0;\n}\n\n.rc-time-picker-panel-select ul {\n list-style: none;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n width: 100%;\n}\n\n.rc-time-picker-panel-select li {\n list-style: none;\n margin: 0;\n padding: 0 0 0 16px;\n width: 100%;\n height: 24px;\n line-height: 24px;\n text-align: left;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.rc-time-picker-panel-select li:hover {\n background: #edfaff;\n}\n\nli.rc-time-picker-panel-select-option-selected {\n background: #f7f7f7;\n font-weight: bold;\n}\n\nli.rc-time-picker-panel-select-option-disabled {\n color: #ccc;\n}\n\nli.rc-time-picker-panel-select-option-disabled:hover {\n background: transparent;\n cursor: not-allowed;\n}\n\n.keen-explorer {\n font-family: Montserrat, Tahoma, Arial;\n font-size: 0.875rem;\n font-size: 0.875rem;\n color: #000;\n color: #000;\n display: -ms-flexbox;\n display: flex;\n}\n\n.ReactModalPortal {\n font-family: Montserrat, Tahoma, Arial;\n font-size: 0.875rem;\n font-size: 0.875rem;\n color: #000;\n color: #000;\n display: -ms-flexbox;\n display: flex;\n}\n\n.rc-time-picker-panel {\n font-family: Montserrat, Tahoma, Arial;\n font-size: 0.875rem;\n font-size: 0.875rem;\n color: #000;\n color: #000;\n display: -ms-flexbox;\n display: flex;\n}\n\n.keen-explorer .extraction,.ReactModalPortal .extraction,.rc-time-picker-panel .extraction{\n margin-top: 1rem;\n}\n\n.keen-explorer .extraction .first-label,.ReactModalPortal .extraction .first-label,.rc-time-picker-panel .extraction .first-label{\n padding-top: 0;\n }\n\n.keen-explorer .extraction .input-text,.ReactModalPortal .extraction .input-text,.rc-time-picker-panel .extraction .input-text{\n width: 100%;\n }\n\n.keen-explorer .extraction .bulk-panel,.ReactModalPortal .extraction .bulk-panel,.rc-time-picker-panel .extraction .bulk-panel{\n margin-bottom: 1rem;\n }\n\n.keen-explorer .percentile .input-text,.ReactModalPortal .percentile .input-text,.rc-time-picker-panel .percentile .input-text{\n width: 100%;\n }\n\n.keen-explorer .filters-container .list,.ReactModalPortal .filters-container .list,.rc-time-picker-panel .filters-container .list{\n margin: 2rem 0;\n width: 100%;\n\n }\n\n.keen-explorer .filters-container .list .row,.ReactModalPortal .filters-container .list .row,.rc-time-picker-panel .filters-container .list .row{\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n margin: 0 0 1rem;\n }\n\n.keen-explorer .filters-container .list .row .row-part,.ReactModalPortal .filters-container .list .row .row-part,.rc-time-picker-panel .filters-container .list .row .row-part{\n -ms-flex:1;\n flex:1;\n padding: 0 0.5rem;\n }\n\n.keen-explorer .filters-container .list .row .row-part input{\n padding: 0.55rem 0.7rem;\n font-size: 0.875rem;\n font-size: 0.875rem;\n border-radius: 4px;\n border: 1px solid #ccc;\n width: 100%;\n }\n\n.ReactModalPortal .filters-container .list .row .row-part input{\n padding: 0.55rem 0.7rem;\n font-size: 0.875rem;\n font-size: 0.875rem;\n border-radius: 4px;\n border: 1px solid #ccc;\n width: 100%;\n }\n\n.rc-time-picker-panel .filters-container .list .row .row-part input{\n padding: 0.55rem 0.7rem;\n font-size: 0.875rem;\n font-size: 0.875rem;\n border-radius: 4px;\n border: 1px solid #ccc;\n width: 100%;\n }\n\n.keen-explorer .filters-container .list .row .row-part .datetime-pickers,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers{\n display: -ms-flexbox;\n display: flex;\n }\n\n.keen-explorer .filters-container .list .row .row-part .datetime-pickers .DateInput,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers .DateInput,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers .DateInput{\n width: 100%;\n }\n\n.keen-explorer .filters-container .list .row .row-part .datetime-pickers .SingleDatePickerInput,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers .SingleDatePickerInput,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers .SingleDatePickerInput{\n width: 100%;\n }\n\n.keen-explorer .filters-container .list .row .row-part .datetime-pickers .SingleDatePicker,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers .SingleDatePicker,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers .SingleDatePicker{\n -ms-flex: 1;\n flex: 1;\n margin-right: 0.1rem;\n }\n\n.keen-explorer .filters-container .list .row .row-part .datetime-pickers .SingleDatePickerInput__withBorder,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers .SingleDatePickerInput__withBorder,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers .SingleDatePickerInput__withBorder{\n border: 0;\n }\n\n.keen-explorer .filters-container .list .row .row-part .datetime-pickers input.DateInput_input,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers input.DateInput_input,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers input.DateInput_input{\n padding: 0.333rem;\n text-align: center;\n height: 2.3rem;\n }\n\n.keen-explorer .filters-container .list .row .row-part .datetime-pickers .rc-time-picker,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers .rc-time-picker,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers .rc-time-picker{\n -ms-flex: 1;\n flex: 1;\n }\n\n.keen-explorer .filters-container .list .row .row-part .datetime-pickers input.rc-time-picker-input,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers input.rc-time-picker-input,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers input.rc-time-picker-input{\n padding: 0.3rem;\n text-align: center;\n height: auto;\n line-height: auto;\n height: 2.3rem;\n }\n\n.keen-explorer .filters-container .list .row .row-part .within-inputs input,.ReactModalPortal .filters-container .list .row .row-part .within-inputs input,.rc-time-picker-panel .filters-container .list .row .row-part .within-inputs input{\n margin-bottom: 0.2rem;\n }\n\n.keen-explorer .filters-container .list .row .row-part .delete,.ReactModalPortal .filters-container .list .row .row-part .delete,.rc-time-picker-panel .filters-container .list .row .row-part .delete{\n cursor: pointer;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n height: 100%;\n }\n\n.keen-explorer .filters-container .list .row .row-part .delete i, .ReactModalPortal .filters-container .list .row .row-part .delete i, .rc-time-picker-panel .filters-container .list .row .row-part .delete i {\n color: #ea7373;\n font-size: 1rem;\n padding: 0.5rem;\n }\n\n.keen-explorer .filters-container .list .row .no-flex,.ReactModalPortal .filters-container .list .row .no-flex,.rc-time-picker-panel .filters-container .list .row .no-flex{\n -ms-flex: 0;\n flex: 0;\n }\n\n.keen-explorer .filters-container .action-buttons,.ReactModalPortal .filters-container .action-buttons,.rc-time-picker-panel .filters-container .action-buttons{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: end;\n justify-content: flex-end;\n margin-top: 0;\n }\n\n.keen-explorer .filters-container .action-buttons .button-add-filter,.ReactModalPortal .filters-container .action-buttons .button-add-filter,.rc-time-picker-panel .filters-container .action-buttons .button-add-filter{\n margin-right: 1rem;\n cursor: pointer;\n text-transform: uppercase;\n padding: 1rem 2rem;\n background: #eee;\n border-radius: 0.3rem;\n }\n\n.keen-explorer .filters-container .action-buttons .button-add-filter i, .ReactModalPortal .filters-container .action-buttons .button-add-filter i, .rc-time-picker-panel .filters-container .action-buttons .button-add-filter i {\n margin-right: 1rem;\n }\n\n.keen-explorer .filters-container .action-buttons .button-done{\n cursor: pointer;\n color: #fff;\n background: #45b2e8;\n background: #45b2e8;\n text-transform: uppercase;\n width: 10rem;\n padding: 1rem;\n text-align: center;\n border-radius: 0.3rem;\n }\n\n.ReactModalPortal .filters-container .action-buttons .button-done{\n cursor: pointer;\n color: #fff;\n background: #45b2e8;\n background: #45b2e8;\n text-transform: uppercase;\n width: 10rem;\n padding: 1rem;\n text-align: center;\n border-radius: 0.3rem;\n }\n\n.rc-time-picker-panel .filters-container .action-buttons .button-done{\n cursor: pointer;\n color: #fff;\n background: #45b2e8;\n background: #45b2e8;\n text-transform: uppercase;\n width: 10rem;\n padding: 1rem;\n text-align: center;\n border-radius: 0.3rem;\n }\n\n.keen-explorer .filters-container .action-buttons .button-done i,.ReactModalPortal .filters-container .action-buttons .button-done i,.rc-time-picker-panel .filters-container .action-buttons .button-done i{\n margin-right: 1rem;\n }\n\n@media screen and (max-width: 1000px) {\n .keen-explorer .filters-container .list .row,.ReactModalPortal .filters-container .list .row,.rc-time-picker-panel .filters-container .list .row{\n -ms-flex-direction: column;\n flex-direction: column;\n }\n .keen-explorer .filters-container .list .row .row-part,.ReactModalPortal .filters-container .list .row .row-part,.rc-time-picker-panel .filters-container .list .row .row-part{\n margin-bottom: 0.3rem;\n }\n .keen-explorer .filters-container .list .row .delete,.ReactModalPortal .filters-container .list .row .delete,.rc-time-picker-panel .filters-container .list .row .delete{\n float: right;\n padding-right: 1rem;\n }\n}\n\n.keen-explorer .modal-main,.ReactModalPortal .modal-main,.rc-time-picker-panel .modal-main{\n display:-ms-flexbox;\n display:flex;\n -ms-flex-direction: column;\n flex-direction: column;\n height: 100%;\n width: 100%;\n}\n\n.keen-explorer .modal-main .header,.ReactModalPortal .modal-main .header,.rc-time-picker-panel .modal-main .header{\n -ms-flex:0;\n flex:0;\n border-bottom: 1px solid #eee;\n padding-bottom: 1rem;\n }\n\n.keen-explorer .modal-main .header .title,.ReactModalPortal .modal-main .header .title,.rc-time-picker-panel .modal-main .header .title{\n float: left;\n }\n\n.keen-explorer .modal-main .header .x,.ReactModalPortal .modal-main .header .x,.rc-time-picker-panel .modal-main .header .x{\n color: #565656;\n float: right;\n font-weight: bold;\n cursor: pointer;\n padding: 1rem;\n margin: -2rem -1rem;\n font-size: 2rem;\n }\n\n.keen-explorer .modal-main .container,.ReactModalPortal .modal-main .container,.rc-time-picker-panel .modal-main .container{\n -ms-flex:1;\n flex:1;\n padding: 1rem 0;\n clear: both;\n width: 100%;\n overflow-y: scroll;\n white-space: pre-wrap;\n }\n\n.keen-explorer .modal-main .button-copy,.ReactModalPortal .modal-main .button-copy,.rc-time-picker-panel .modal-main .button-copy{\n padding: 1rem;\n width: 10rem;\n text-align: center;\n cursor: pointer;\n background: #1e93d8;\n color: #fff;\n border-radius: 0.5rem;\n margin-top: 1rem;\n }\n\n.keen-explorer .modal-main .button-copy:active,.ReactModalPortal .modal-main .button-copy:active,.rc-time-picker-panel .modal-main .button-copy:active{\n background: #30a1e4;\n }\n\n.keen-explorer .ReactModal__Overlay,.ReactModalPortal .ReactModal__Overlay,.rc-time-picker-panel .ReactModal__Overlay{\n z-index: 9999;\n}\n\n.keen-explorer .saved-query, .ReactModalPortal .saved-query, .rc-time-picker-panel .saved-query {\n margin: 1rem 0;\n border: 1px solid #e8e8e8;\n background: #fcfcfc;\n padding: 1rem;\n border-radius: 0.3rem;\n}\n\n.keen-explorer .saved-query .input-name {\n font-size: 0.875rem;\n font-size: 0.875rem;\n padding: 1rem;\n border-radius: 0.3rem;\n border: 1px solid #e8e8e8;\n width: 100%;\n }\n\n.ReactModalPortal .saved-query .input-name {\n font-size: 0.875rem;\n font-size: 0.875rem;\n padding: 1rem;\n border-radius: 0.3rem;\n border: 1px solid #e8e8e8;\n width: 100%;\n }\n\n.rc-time-picker-panel .saved-query .input-name {\n font-size: 0.875rem;\n font-size: 0.875rem;\n padding: 1rem;\n border-radius: 0.3rem;\n border: 1px solid #e8e8e8;\n width: 100%;\n }\n\n.keen-explorer .saved-query .resource-name,.ReactModalPortal .saved-query .resource-name,.rc-time-picker-panel .saved-query .resource-name{\n padding: 1rem 0.2rem 0;\n display: -ms-flexbox;\n display: flex;\n overflow: hidden;\n font-size: 0.8rem;\n }\n\n.keen-explorer .saved-query .resource-name .line, .ReactModalPortal .saved-query .resource-name .line, .rc-time-picker-panel .saved-query .resource-name .line {\n -ms-flex: 1;\n flex: 1;\n white-space: nowrap;\n }\n\n.keen-explorer .saved-query .resource-name .line span,.ReactModalPortal .saved-query .resource-name .line span,.rc-time-picker-panel .saved-query .resource-name .line span{\n white-space: nowrap;\n overflow: hidden;\n -ms-flex: 1;\n flex: 1;\n }\n\n.keen-explorer .saved-query .resource-name .line i, .ReactModalPortal .saved-query .resource-name .line i, .rc-time-picker-panel .saved-query .resource-name .line i {\n -ms-flex: 0;\n flex: 0;\n }\n\n.keen-explorer .saved-query .resource-name .line-label,.ReactModalPortal .saved-query .resource-name .line-label,.rc-time-picker-panel .saved-query .resource-name .line-label{\n -ms-flex: 0;\n flex: 0;\n margin-right: 0.5rem;\n }\n\n.keen-explorer .saved-query .cache, .ReactModalPortal .saved-query .cache, .rc-time-picker-panel .saved-query .cache {\n padding: 1rem 0 0;\n max-width: 16rem;\n }\n\n.keen-explorer .saved-query .cache .line-checkbox,.ReactModalPortal .saved-query .cache .line-checkbox,.rc-time-picker-panel .saved-query .cache .line-checkbox{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: justify;\n justify-content: space-between;\n\n }\n\n.keen-explorer .saved-query .cache .line-checkbox input,.ReactModalPortal .saved-query .cache .line-checkbox input,.rc-time-picker-panel .saved-query .cache .line-checkbox input{\n margin-right: 0.5rem;\n outline: none;\n }\n\n.keen-explorer .saved-query .cache .line-checkbox label,.ReactModalPortal .saved-query .cache .line-checkbox label,.rc-time-picker-panel .saved-query .cache .line-checkbox label{\n cursor: pointer;\n }\n\n.keen-explorer .saved-query .cache .line-checkbox .cache-limit, .ReactModalPortal .saved-query .cache .line-checkbox .cache-limit, .rc-time-picker-panel .saved-query .cache .line-checkbox .cache-limit {\n color: #27566D;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n }\n\n.keen-explorer .saved-query .cache .line-checkbox .cache-limit div, .ReactModalPortal .saved-query .cache .line-checkbox .cache-limit div, .rc-time-picker-panel .saved-query .cache .line-checkbox .cache-limit div {\n position: relative;\n }\n\n.keen-explorer .saved-query .cache .line-checkbox .cache-limit svg, .ReactModalPortal .saved-query .cache .line-checkbox .cache-limit svg, .rc-time-picker-panel .saved-query .cache .line-checkbox .cache-limit svg {\n margin: 0.1rem 0.4rem 0;\n }\n\n.keen-explorer .saved-query .cache .line-checkbox .cache-limit .tooltip, .ReactModalPortal .saved-query .cache .line-checkbox .cache-limit .tooltip, .rc-time-picker-panel .saved-query .cache .line-checkbox .cache-limit .tooltip {\n position: absolute;\n top: 25px;\n left: -20px;\n width: 350px;\n padding: 15px 15px 0 15px;\n background: #fff;\n -webkit-box-shadow: 0 5px 24px 0 rgba(29,39,41,0.15);\n box-shadow: 0 5px 24px 0 rgba(29,39,41,0.15);\n font-size: 14px;\n line-height: 17px;\n z-index: 100;\n opacity: 1\n }\n\n.keen-explorer .saved-query .cache .line-checkbox .cache-limit .tooltip:after, .ReactModalPortal .saved-query .cache .line-checkbox .cache-limit .tooltip:after, .rc-time-picker-panel .saved-query .cache .line-checkbox .cache-limit .tooltip:after {\n bottom: 100%;\n left: 10%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n border-color: rgba(136, 183, 213, 0);\n border-bottom-color: #fff;\n border-width: 5px;\n margin-left: -5px;\n}\n\n.keen-explorer .saved-query .cache .cache-toggle,.ReactModalPortal .saved-query .cache .cache-toggle,.rc-time-picker-panel .saved-query .cache .cache-toggle{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n cursor: pointer;\n color: #128296;\n }\n\n.keen-explorer .saved-query .cache i, .ReactModalPortal .saved-query .cache i, .rc-time-picker-panel .saved-query .cache i {\n font-size: 1.3rem;\n margin-right: 0.6rem;\n }\n\n.keen-explorer .saved-query .cache .fa-toggle-off,.ReactModalPortal .saved-query .cache .fa-toggle-off,.rc-time-picker-panel .saved-query .cache .fa-toggle-off{\n color: #7b7b7b;\n }\n\n.keen-explorer .saved-query .cache .cache-refresh,.ReactModalPortal .saved-query .cache .cache-refresh,.rc-time-picker-panel .saved-query .cache .cache-refresh{\n }\n\n.keen-explorer .saved-query .button-copy,.ReactModalPortal .saved-query .button-copy,.rc-time-picker-panel .saved-query .button-copy{\n padding: 0.7rem;\n right: 0;\n bottom: 0;\n border: 0;\n cursor: pointer;\n display: inline;\n }\n\n.keen-explorer .saved-query .buttons * {\n margin-top: 1rem;\n padding: 0.88rem calc(0.88rem*2);\n border-radius: 0.3rem;\n font-size: 0.875rem;\n font-size: 0.875rem;\n cursor: pointer;\n text-transform: uppercase;\n border: 0;\n font-weight: 600;\n font-weight: 600;\n }\n\n.ReactModalPortal .saved-query .buttons * {\n margin-top: 1rem;\n padding: 0.88rem calc(0.88rem*2);\n border-radius: 0.3rem;\n font-size: 0.875rem;\n font-size: 0.875rem;\n cursor: pointer;\n text-transform: uppercase;\n border: 0;\n font-weight: 600;\n font-weight: 600;\n }\n\n.rc-time-picker-panel .saved-query .buttons * {\n margin-top: 1rem;\n padding: 0.88rem calc(0.88rem*2);\n border-radius: 0.3rem;\n font-size: 0.875rem;\n font-size: 0.875rem;\n cursor: pointer;\n text-transform: uppercase;\n border: 0;\n font-weight: 600;\n font-weight: 600;\n }\n\n.keen-explorer .saved-query .buttons .button-save{\n color: #fff;\n background: #45b2e8;\n background: #45b2e8;\n }\n\n.ReactModalPortal .saved-query .buttons .button-save{\n color: #fff;\n background: #45b2e8;\n background: #45b2e8;\n }\n\n.rc-time-picker-panel .saved-query .buttons .button-save{\n color: #fff;\n background: #45b2e8;\n background: #45b2e8;\n }\n\n.keen-explorer .saved-query .buttons .button-clone{\n margin-left: 1rem;\n color: #45b2e8;\n color: #45b2e8;\n background: transparent;\n border: 1px solid #eee;\n }\n\n.ReactModalPortal .saved-query .buttons .button-clone{\n margin-left: 1rem;\n color: #45b2e8;\n color: #45b2e8;\n background: transparent;\n border: 1px solid #eee;\n }\n\n.rc-time-picker-panel .saved-query .buttons .button-clone{\n margin-left: 1rem;\n color: #45b2e8;\n color: #45b2e8;\n background: transparent;\n border: 1px solid #eee;\n }\n\n.keen-explorer .saved-query .buttons .button-delete,.ReactModalPortal .saved-query .buttons .button-delete,.rc-time-picker-panel .saved-query .buttons .button-delete{\n float: right;\n color: #6f6c6c;\n background: transparent;\n border: 1px solid #eee;\n }\n\n.keen-explorer .saved-query .button-copy:active,.ReactModalPortal .saved-query .button-copy:active,.rc-time-picker-panel .saved-query .button-copy:active{\n background: #fff;\n }\n\n.keen-explorer .saved-queries,.ReactModalPortal .saved-queries,.rc-time-picker-panel .saved-queries{\n overflow: scroll;\n min-height: 100%;\n max-height: 44rem;\n padding-right: 1rem;\n}\n\n.keen-explorer .saved-queries .input-filter,.ReactModalPortal .saved-queries .input-filter,.rc-time-picker-panel .saved-queries .input-filter{\n width: 100%;\n padding: 0.6rem;\n font-size: 0.9rem;\n border: 1px solid #ccc;\n margin: .5rem 0;\n border-radius: 0.3rem;\n }\n\n.keen-explorer .saved-queries .item{\n position: relative;\n padding: 1rem 0.5rem;\n cursor: pointer;\n overflow: auto;\n border-bottom: 1px solid #f3f3f3;\n background: #fff;\n background: #fff;\n }\n\n.ReactModalPortal .saved-queries .item{\n position: relative;\n padding: 1rem 0.5rem;\n cursor: pointer;\n overflow: auto;\n border-bottom: 1px solid #f3f3f3;\n background: #fff;\n background: #fff;\n }\n\n.rc-time-picker-panel .saved-queries .item{\n position: relative;\n padding: 1rem 0.5rem;\n cursor: pointer;\n overflow: auto;\n border-bottom: 1px solid #f3f3f3;\n background: #fff;\n background: #fff;\n }\n\n.keen-explorer .saved-queries .item .name,.ReactModalPortal .saved-queries .item .name,.rc-time-picker-panel .saved-queries .item .name{\n margin: 0rem 1rem 1rem 0;\n }\n\n.keen-explorer .saved-queries .item .cached{\n float: left;\n color: #3ecf8e;\n color: #3ecf8e;\n text-transform: uppercase;\n }\n\n.ReactModalPortal .saved-queries .item .cached{\n float: left;\n color: #3ecf8e;\n color: #3ecf8e;\n text-transform: uppercase;\n }\n\n.rc-time-picker-panel .saved-queries .item .cached{\n float: left;\n color: #3ecf8e;\n color: #3ecf8e;\n text-transform: uppercase;\n }\n\n.keen-explorer .saved-queries .item .cached *, .ReactModalPortal .saved-queries .item .cached *, .rc-time-picker-panel .saved-queries .item .cached * {\n font-size: 0.7rem;\n }\n\n.keen-explorer .saved-queries .item .data,.ReactModalPortal .saved-queries .item .data,.rc-time-picker-panel .saved-queries .item .data{\n float: right;\n font-size: 0.7rem;\n color: rgba(0,0,0,0.5);\n }\n\n.keen-explorer .saved-queries .item .button-delete,.ReactModalPortal .saved-queries .item .button-delete,.rc-time-picker-panel .saved-queries .item .button-delete{\n position: absolute;\n right: 0.2rem;\n top: 0.2rem;\n padding: 0.2rem;\n color: rgba(0,0,0,0.2);\n }\n\n.keen-explorer .saved-queries .active{\n background: #fcfcfc;\n background: #fcfcfc;\n }\n\n.ReactModalPortal .saved-queries .active{\n background: #fcfcfc;\n background: #fcfcfc;\n }\n\n.rc-time-picker-panel .saved-queries .active{\n background: #fcfcfc;\n background: #fcfcfc;\n }\n\n.keen-explorer .funnel .content,.ReactModalPortal .funnel .content,.rc-time-picker-panel .funnel .content{\n padding: 0.3rem 0.5rem;\n }\n\n.keen-explorer .funnel .input-text,.ReactModalPortal .funnel .input-text,.rc-time-picker-panel .funnel .input-text{\n width: 100%;\n }\n\n.keen-explorer .funnel .button,.ReactModalPortal .funnel .button,.rc-time-picker-panel .funnel .button{\n cursor: pointer;\n }\n\n.keen-explorer .funnel .button-delete,.ReactModalPortal .funnel .button-delete,.rc-time-picker-panel .funnel .button-delete{\n color: #797979;\n }\n\n.keen-explorer .funnel .button-add,.ReactModalPortal .funnel .button-add,.rc-time-picker-panel .funnel .button-add{\n margin-top: 1rem;\n padding: 0.7rem;\n background: #fdfdfd;\n border: 1px solid #e8e8e8;\n border-radius: 5px;\n display: inline-block;\n }\n\n.keen-explorer .funnel .button-add i,.ReactModalPortal .funnel .button-add i,.rc-time-picker-panel .funnel .button-add i{\n margin-right: 0.3rem;\n }\n\n.keen-explorer .funnel .line-options,.ReactModalPortal .funnel .line-options,.rc-time-picker-panel .funnel .line-options{\n margin: 1rem 0 0 0;\n }\n\n.keen-explorer .funnel .step-switch-position-buttons,.ReactModalPortal .funnel .step-switch-position-buttons,.rc-time-picker-panel .funnel .step-switch-position-buttons{\n float: left;\n margin: -0.5rem 0.8rem 0 0;\n color: #797979;\n }\n\n.keen-explorer .funnel .step-switch-position-buttons .move-up,.ReactModalPortal .funnel .step-switch-position-buttons .move-up,.rc-time-picker-panel .funnel .step-switch-position-buttons .move-up{\n margin-top: 0.1rem;\n }\n\n.keen-explorer .funnel .step-switch-position-buttons .move-down,.ReactModalPortal .funnel .step-switch-position-buttons .move-down,.rc-time-picker-panel .funnel .step-switch-position-buttons .move-down{\n margin-top: -0.3rem;\n }\n\n.keen-explorer .line-checkbox,.ReactModalPortal .line-checkbox,.rc-time-picker-panel .line-checkbox{\n margin: 0.5rem 0 0 0;\n}\n\n.keen-explorer .line-checkbox input,.ReactModalPortal .line-checkbox input,.rc-time-picker-panel .line-checkbox input{\n margin-right: 0.5rem;\n }\n\n.keen-explorer .line-checkbox label,.ReactModalPortal .line-checkbox label,.rc-time-picker-panel .line-checkbox label{\n cursor: pointer;\n }\n\n.keen-explorer .keen-dataviz, .ReactModalPortal .keen-dataviz, .rc-time-picker-panel .keen-dataviz {\n font-family: inherit !important;\n}\n\n.keen-explorer .keen-dataviz .keen-c3-legend .legend-item-text, .ReactModalPortal .keen-dataviz .keen-c3-legend .legend-item-text, .rc-time-picker-panel .keen-dataviz .keen-c3-legend .legend-item-text {\n font-size: 1em;\n }\n\n.keen-explorer .keen-dataviz-container, .ReactModalPortal .keen-dataviz-container, .rc-time-picker-panel .keen-dataviz-container {\n height: calc(100% - 3rem);\n overflow: hidden;\n}\n\n.keen-explorer .keen-dataviz-container .keen-dataviz-execution-meta, .ReactModalPortal .keen-dataviz-container .keen-dataviz-execution-meta, .rc-time-picker-panel .keen-dataviz-container .keen-dataviz-execution-meta {\n top: 1rem;\n }\n\n.keen-explorer .keen-dataviz-metric-value,.ReactModalPortal .keen-dataviz-metric-value,.rc-time-picker-panel .keen-dataviz-metric-value{\n font-size: 4rem !important;\n}\n\n.keen-explorer .keen-dataviz .c3 svg g text tspan, .ReactModalPortal .keen-dataviz .c3 svg g text tspan, .rc-time-picker-panel .keen-dataviz .c3 svg g text tspan {\n font-size: 10px !important;\n}\n\n.keen-explorer .c3-circle, .ReactModalPortal .c3-circle, .rc-time-picker-panel .c3-circle {\n fill: currentColor;\n}\n\n.keen-explorer .a-preview-collection,.ReactModalPortal .a-preview-collection,.rc-time-picker-panel .a-preview-collection{\n padding: 0.5rem;\n margin: 0;\n cursor: pointer;\n background: #fafafa;\n border-radius: 0.3rem;\n}\n\n.keen-explorer .a-preview-collection i,.ReactModalPortal .a-preview-collection i,.rc-time-picker-panel .a-preview-collection i{\n font-size: 0.8em;\n margin-right: 0.2rem;\n }\n\n.keen-explorer .preview-collection-content,.ReactModalPortal .preview-collection-content,.rc-time-picker-panel .preview-collection-content{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n}\n\n.keen-explorer .preview-collection-content .input-filter,.ReactModalPortal .preview-collection-content .input-filter,.rc-time-picker-panel .preview-collection-content .input-filter{\n width: 100%;\n padding: 0.6rem;\n font-size: 0.9rem;\n border: 1px solid #ccc;\n margin: .5rem 0;\n border-radius: 0.3rem;\n }\n\n.keen-explorer .preview-collection-content .list, .ReactModalPortal .preview-collection-content .list, .rc-time-picker-panel .preview-collection-content .list {\n height: 100%;\n overflow-y: scroll;\n -ms-flex: 1;\n flex: 1;\n }\n\n.keen-explorer .preview-collection-content .list .item{\n cursor: pointer;\n padding: 1rem;\n overflow: auto;\n border-bottom: 1px solid #f3f3f3;\n background: #fff;\n background: #fff;\n }\n\n.ReactModalPortal .preview-collection-content .list .item{\n cursor: pointer;\n padding: 1rem;\n overflow: auto;\n border-bottom: 1px solid #f3f3f3;\n background: #fff;\n background: #fff;\n }\n\n.rc-time-picker-panel .preview-collection-content .list .item{\n cursor: pointer;\n padding: 1rem;\n overflow: auto;\n border-bottom: 1px solid #f3f3f3;\n background: #fff;\n background: #fff;\n }\n\n.keen-explorer .preview-collection-content .list .active{\n background: #fcfcfc;\n background: #fcfcfc;\n }\n\n.ReactModalPortal .preview-collection-content .list .active{\n background: #fcfcfc;\n background: #fcfcfc;\n }\n\n.rc-time-picker-panel .preview-collection-content .list .active{\n background: #fcfcfc;\n background: #fcfcfc;\n }\n\n.keen-explorer .preview-collection-content .content,.ReactModalPortal .preview-collection-content .content,.rc-time-picker-panel .preview-collection-content .content{\n -ms-flex: 3;\n flex: 3;\n height: 100%;\n padding: 0.5rem 0 0.5rem 1rem;\n }\n\n.keen-explorer .preview-collection-content .content .tabs .tab,.ReactModalPortal .preview-collection-content .content .tabs .tab,.rc-time-picker-panel .preview-collection-content .content .tabs .tab{\n -ms-flex: none;\n flex: none;\n padding: 1rem 1.5rem;\n }\n\n.keen-explorer .preview-collection-content .content .tabs .tab-placeholder,.ReactModalPortal .preview-collection-content .content .tabs .tab-placeholder,.rc-time-picker-panel .preview-collection-content .content .tabs .tab-placeholder{\n -ms-flex: 1;\n flex: 1;\n border-bottom: 1px solid #e8e8e8;\n }\n\n.keen-explorer .preview-collection-content .content .tab-content,.ReactModalPortal .preview-collection-content .content .tab-content,.rc-time-picker-panel .preview-collection-content .content .tab-content{\n height: 100%;\n width: 100%;\n overflow: scroll;\n padding-bottom: 4rem;\n }\n\n@media screen and (max-width: 900px) {\n\n .keen-explorer .preview-collection-content,.ReactModalPortal .preview-collection-content,.rc-time-picker-panel .preview-collection-content{\n -ms-flex-direction: column;\n flex-direction: column;\n }\n .keen-explorer .preview-collection-content .list, .keen-explorer .preview-collection-content .content, .ReactModalPortal .preview-collection-content .list, .ReactModalPortal .preview-collection-content .content, .rc-time-picker-panel .preview-collection-content .list, .rc-time-picker-panel .preview-collection-content .content{\n height: auto;\n overflow-y: visible;\n padding: 0;\n }\n .keen-explorer .preview-collection-content .content,.ReactModalPortal .preview-collection-content .content,.rc-time-picker-panel .preview-collection-content .content{\n padding-top: 2rem;\n }\n}\n\n.keen-explorer .preview .download-toggle-label,.ReactModalPortal .preview .download-toggle-label,.rc-time-picker-panel .preview .download-toggle-label{\n padding: 1rem;\n cursor: pointer;\n height: -webkit-min-content;\n height: -moz-min-content;\n height: min-content;\n }\n\n.keen-explorer .preview .download-toggle-label i,.ReactModalPortal .preview .download-toggle-label i,.rc-time-picker-panel .preview .download-toggle-label i{\n margin-right: 0.5rem;\n }\n\n.keen-explorer .preview .download-buttons,.ReactModalPortal .preview .download-buttons,.rc-time-picker-panel .preview .download-buttons{\n position: absolute;\n background: #fdfdfd;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-shadow: 2px 3px 6px rgba(0,0,0,0.05);\n box-shadow: 2px 3px 6px rgba(0,0,0,0.05);\n margin-top: -2px;\n }\n\n.keen-explorer .preview .download-buttons button, .ReactModalPortal .preview .download-buttons button, .rc-time-picker-panel .preview .download-buttons button {\n border: 1px solid #f7f7f7;\n }\n\n.keen-explorer .preview .download-buttons button:hover,.ReactModalPortal .preview .download-buttons button:hover,.rc-time-picker-panel .preview .download-buttons button:hover{\n background: #fff;\n }\n\n.keen-explorer .preview .download-buttons .button-download,.ReactModalPortal .preview .download-buttons .button-download,.rc-time-picker-panel .preview .download-buttons .button-download{\n padding: 1rem 3rem;\n height: -webkit-min-content;\n height: -moz-min-content;\n height: min-content;\n }\n\n.keen-explorer .preview .button-embed-html,.ReactModalPortal .preview .button-embed-html,.rc-time-picker-panel .preview .button-embed-html{\n height: -webkit-min-content;\n height: -moz-min-content;\n height: min-content;\n }\n\n.keen-explorer * {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n font-size: 0.875rem;\n font-size: 0.875rem;\n}\n\n.ReactModalPortal * {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n font-size: 0.875rem;\n font-size: 0.875rem;\n}\n\n.rc-time-picker-panel * {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n font-size: 0.875rem;\n font-size: 0.875rem;\n}\n\n.keen-explorer button,.ReactModalPortal button,.rc-time-picker-panel button{\n margin: 2rem 0 0;\n padding: 1rem;\n}\n\n.keen-explorer .label-main,.ReactModalPortal .label-main,.rc-time-picker-panel .label-main{\n padding: 1rem 0 0.3rem;\n}\n\n.keen-explorer .hide,.ReactModalPortal .hide,.rc-time-picker-panel .hide{\n display: none;\n}\n\n.keen-explorer input:focus {\n outline: 2px solid #00bbde;\n outline: 2px solid #00bbde;\n}\n\n.ReactModalPortal input:focus {\n outline: 2px solid #00bbde;\n outline: 2px solid #00bbde;\n}\n\n.rc-time-picker-panel input:focus {\n outline: 2px solid #00bbde;\n outline: 2px solid #00bbde;\n}\n\n.keen-explorer .panel-main,.ReactModalPortal .panel-main,.rc-time-picker-panel .panel-main{\n -ms-flex: 1;\n flex: 1;\n min-width: 26rem;\n -webkit-box-shadow: -3px 7px 11px rgba(0,0,0,0.1);\n box-shadow: -3px 7px 11px rgba(0,0,0,0.1);\n border-radius: 0.3rem;\n}\n\n.keen-explorer .panel-main .panel-buttons .button-new-query,.ReactModalPortal .panel-main .panel-buttons .button-new-query,.rc-time-picker-panel .panel-main .panel-buttons .button-new-query{\n -ms-flex: none;\n flex: none;\n cursor: pointer;\n }\n\n.keen-explorer .panel-main .panel-content,.ReactModalPortal .panel-main .panel-content,.rc-time-picker-panel .panel-main .panel-content{\n padding: 1rem;\n }\n\n.keen-explorer .panel-main .panel-content .event-collection .label-main,.ReactModalPortal .panel-main .panel-content .event-collection .label-main,.rc-time-picker-panel .panel-main .panel-content .event-collection .label-main{\n padding-top: 0;\n }\n\n.keen-explorer .panel-main .panel-saved-queries,.ReactModalPortal .panel-main .panel-saved-queries,.rc-time-picker-panel .panel-main .panel-saved-queries{\n padding-right: 0;\n }\n\n.keen-explorer .panel-main .panel-funnel .label-analysis-type, .ReactModalPortal .panel-main .panel-funnel .label-analysis-type, .rc-time-picker-panel .panel-main .panel-funnel .label-analysis-type {\n padding-top: 0;\n }\n\n.keen-explorer .result,.ReactModalPortal .result,.rc-time-picker-panel .result{\n -ms-flex: 3;\n flex: 3;\n padding: 0 1.5rem;\n overflow-x: hidden;\n}\n\n.keen-explorer .foldable,.ReactModalPortal .foldable,.rc-time-picker-panel .foldable{\n margin-top: 0.5rem;\n border: 1px solid #e8e8e8;\n background: #fdfdfd;\n padding: 0.5rem;\n cursor: pointer;\n border-radius: 5px;\n}\n\n.keen-explorer .foldable-active,.ReactModalPortal .foldable-active,.rc-time-picker-panel .foldable-active{\n background: none;\n }\n\n.keen-explorer .foldable .title,.ReactModalPortal .foldable .title,.rc-time-picker-panel .foldable .title{\n padding: 0.5rem;\n }\n\n.keen-explorer .foldable .title .foldable-icon,.ReactModalPortal .foldable .title .foldable-icon,.rc-time-picker-panel .foldable .title .foldable-icon{\n float: right;\n }\n\n.keen-explorer .foldable .content,.ReactModalPortal .foldable .content,.rc-time-picker-panel .foldable .content{\n margin-top: 0.5rem;\n padding: 0;\n }\n\n.keen-explorer .foldable .tab-content,.ReactModalPortal .foldable .tab-content,.rc-time-picker-panel .foldable .tab-content{\n border: 0;\n }\n\n.keen-explorer .filters,.ReactModalPortal .filters,.rc-time-picker-panel .filters{\n display: -ms-flexbox;\n display: flex;\n}\n\n.keen-explorer .filters .title,.ReactModalPortal .filters .title,.rc-time-picker-panel .filters .title{\n -ms-flex: 1;\n flex: 1;\n }\n\n.keen-explorer .filters .count,.ReactModalPortal .filters .count,.rc-time-picker-panel .filters .count{\n -ms-flex-item-align: center;\n align-self: center;\n text-align: right;\n padding: 0 0.5rem 0 0;\n }\n\n.keen-explorer .optional,.ReactModalPortal .optional,.rc-time-picker-panel .optional{\n margin-left: 1em;\n font-size: 0.7em;\n color:#ddd;\n color: #737373;\n}\n\n.keen-explorer .group-by .label-main,.ReactModalPortal .group-by .label-main,.rc-time-picker-panel .group-by .label-main{\n padding: 0 0 0.5rem;\n }\n\n.keen-explorer .group-by .btn-plus, .keen-explorer .group-by .btn-minus, .ReactModalPortal .group-by .btn-plus, .ReactModalPortal .group-by .btn-minus, .rc-time-picker-panel .group-by .btn-plus, .rc-time-picker-panel .group-by .btn-minus{\n margin-top: 1rem;\n padding: 0.7rem;\n background: #fdfdfd;\n border: 1px solid #e8e8e8;\n border-radius: 5px;\n display: inline-block;\n }\n\n.keen-explorer .group-by .options,.ReactModalPortal .group-by .options,.rc-time-picker-panel .group-by .options{\n margin-top: 1rem;\n display:-ms-flexbox;\n display:flex;\n }\n\n.keen-explorer .group-by .options .order-by,.ReactModalPortal .group-by .options .order-by,.rc-time-picker-panel .group-by .options .order-by{\n width: 8em;\n padding-right: 1rem;\n }\n\n.keen-explorer .group-by .options .order-by .select,.ReactModalPortal .group-by .options .order-by .select,.rc-time-picker-panel .group-by .options .order-by .select{\n width: 100%;\n }\n\n.keen-explorer .group-by .options .limit,.ReactModalPortal .group-by .options .limit,.rc-time-picker-panel .group-by .options .limit{\n width: 8em;\n }\n\n.keen-explorer .group-by .options .limit .input,.ReactModalPortal .group-by .options .limit .input,.rc-time-picker-panel .group-by .options .limit .input{\n width: 100%;\n }\n\n.keen-explorer .group-by .additional-target-property,.ReactModalPortal .group-by .additional-target-property,.rc-time-picker-panel .group-by .additional-target-property{\n margin-top: 1rem;\n padding-top: 1rem;\n border-top: 1px solid #f1f1f1;\n }\n\n.keen-explorer .lets-go,.ReactModalPortal .lets-go,.rc-time-picker-panel .lets-go{\n display:-ms-flexbox;\n display:flex;\n width: 100%;\n height: 390px;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-align: center;\n align-items: center;\n color: #9b9b9b;\n background: #fafafa;\n}\n\n.keen-explorer .tabs,.ReactModalPortal .tabs,.rc-time-picker-panel .tabs{\n display:-ms-flexbox;\n display:flex;\n}\n\n.keen-explorer .tabs .tab,.ReactModalPortal .tabs .tab,.rc-time-picker-panel .tabs .tab{\n -ms-flex: 1;\n flex: 1;\n padding: 1rem;\n background: #fafafa;\n cursor: pointer;\n border: 1px solid #e8e8e8;\n border-radius: 5px 5px 0 0;\n }\n\n.keen-explorer .tabs .active,.ReactModalPortal .tabs .active,.rc-time-picker-panel .tabs .active{\n background: #fff;\n border-bottom: 1px solid #fff;\n }\n\n.keen-explorer .panel-buttons .active,.ReactModalPortal .panel-buttons .active,.rc-time-picker-panel .panel-buttons .active{\n border-right: 0;\n }\n\n.keen-explorer .tab-content,.ReactModalPortal .tab-content,.rc-time-picker-panel .tab-content{\n padding: 1rem;\n border: 1px solid #e8e8e8;\n border-top: none;\n}\n\n.keen-explorer .input-number{\n font-size: 0.875rem;\n font-size: 0.875rem;\n padding: 0.5rem 0.6rem;\n border-radius: 5px;\n border: 1px solid #ccc;\n font-weight: 400;\n line-height: normal;\n}\n\n.ReactModalPortal .input-number{\n font-size: 0.875rem;\n font-size: 0.875rem;\n padding: 0.5rem 0.6rem;\n border-radius: 5px;\n border: 1px solid #ccc;\n font-weight: 400;\n line-height: normal;\n}\n\n.rc-time-picker-panel .input-number{\n font-size: 0.875rem;\n font-size: 0.875rem;\n padding: 0.5rem 0.6rem;\n border-radius: 5px;\n border: 1px solid #ccc;\n font-weight: 400;\n line-height: normal;\n}\n\n.keen-explorer .input-text{\n font-size: 0.875rem;\n font-size: 0.875rem;\n padding: 0.5rem 0.6rem;\n border-radius: 5px;\n border: 1px solid #ccc;\n font-weight: 400;\n line-height: normal;\n}\n\n.ReactModalPortal .input-text{\n font-size: 0.875rem;\n font-size: 0.875rem;\n padding: 0.5rem 0.6rem;\n border-radius: 5px;\n border: 1px solid #ccc;\n font-weight: 400;\n line-height: normal;\n}\n\n.rc-time-picker-panel .input-text{\n font-size: 0.875rem;\n font-size: 0.875rem;\n padding: 0.5rem 0.6rem;\n border-radius: 5px;\n border: 1px solid #ccc;\n font-weight: 400;\n line-height: normal;\n}\n\n.keen-explorer .interval .standard-units,.ReactModalPortal .interval .standard-units,.rc-time-picker-panel .interval .standard-units{\n width: 10rem;\n }\n\n.keen-explorer .interval .line,.ReactModalPortal .interval .line,.rc-time-picker-panel .interval .line{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n }\n\n.keen-explorer .interval .line .title,.ReactModalPortal .interval .line .title,.rc-time-picker-panel .interval .line .title{\n margin-right: 1rem;\n }\n\n.keen-explorer .interval .line .input-number,.ReactModalPortal .interval .line .input-number,.rc-time-picker-panel .interval .line .input-number{\n width: 4rem;\n margin-right: 0.5rem;\n }\n\n.keen-explorer .interval .line .time-units,.ReactModalPortal .interval .line .time-units,.rc-time-picker-panel .interval .line .time-units{\n width: 10rem;\n }\n\n.keen-explorer .timeframe,.ReactModalPortal .timeframe,.rc-time-picker-panel .timeframe{\n margin-bottom: 0.5rem;\n}\n\n.keen-explorer .timeframe .relative,.ReactModalPortal .timeframe .relative,.rc-time-picker-panel .timeframe .relative{\n display:-ms-flexbox;\n display:flex;\n }\n\n.keen-explorer .timeframe .relative .relativity, .keen-explorer .timeframe .relative .input-number, .ReactModalPortal .timeframe .relative .relativity, .ReactModalPortal .timeframe .relative .input-number, .rc-time-picker-panel .timeframe .relative .relativity, .rc-time-picker-panel .timeframe .relative .input-number{\n margin-right:0.5rem;\n }\n\n.keen-explorer .timeframe .relative .relativity,.ReactModalPortal .timeframe .relative .relativity,.rc-time-picker-panel .timeframe .relative .relativity{\n -ms-flex: 0;\n flex: 0;\n max-width:12rem;\n min-width: 6rem;\n }\n\n.keen-explorer .timeframe .relative .units,.ReactModalPortal .timeframe .relative .units,.rc-time-picker-panel .timeframe .relative .units{\n -ms-flex: 0;\n flex: 0;\n max-width:12rem;\n min-width: 6rem;\n }\n\n.keen-explorer .timeframe .relative .input-number,.ReactModalPortal .timeframe .relative .input-number,.rc-time-picker-panel .timeframe .relative .input-number{\n -ms-flex: 1;\n flex: 1;\n min-width: 6rem;\n }\n\n.keen-explorer .timeframe .description,.ReactModalPortal .timeframe .description,.rc-time-picker-panel .timeframe .description{\n margin-top: 0.5rem;\n padding: 1rem;\n background: #fafafa;\n }\n\n.keen-explorer .timeframe .tabAbsolute .DateRangePickerInput_arrow,.ReactModalPortal .timeframe .tabAbsolute .DateRangePickerInput_arrow,.rc-time-picker-panel .timeframe .tabAbsolute .DateRangePickerInput_arrow{\n display: none;\n }\n\n.keen-explorer .timeframe .tabAbsolute .DateInput, .ReactModalPortal .timeframe .tabAbsolute .DateInput, .rc-time-picker-panel .timeframe .tabAbsolute .DateInput {\n width: 8rem;\n background: none;\n }\n\n.keen-explorer .timeframe .tabAbsolute .DateInput_input {\n padding: 0.5rem;\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: normal;\n color:#000;\n font-weight: normal;\n border-radius: 5px;\n }\n\n.ReactModalPortal .timeframe .tabAbsolute .DateInput_input {\n padding: 0.5rem;\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: normal;\n color:#000;\n font-weight: normal;\n border-radius: 5px;\n }\n\n.rc-time-picker-panel .timeframe .tabAbsolute .DateInput_input {\n padding: 0.5rem;\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: normal;\n color:#000;\n font-weight: normal;\n border-radius: 5px;\n }\n\n.keen-explorer .timeframe .tabAbsolute .rc-time-picker-input{\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: normal;\n font-weight: normal;\n color: #000;\n height: 2.4rem;\n width: 7rem;\n border-radius: 5px;\n }\n\n.ReactModalPortal .timeframe .tabAbsolute .rc-time-picker-input{\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: normal;\n font-weight: normal;\n color: #000;\n height: 2.4rem;\n width: 7rem;\n border-radius: 5px;\n }\n\n.rc-time-picker-panel .timeframe .tabAbsolute .rc-time-picker-input{\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: normal;\n font-weight: normal;\n color: #000;\n height: 2.4rem;\n width: 7rem;\n border-radius: 5px;\n }\n\n.keen-explorer .timeframe .tabAbsolute .line,.ReactModalPortal .timeframe .tabAbsolute .line,.rc-time-picker-panel .timeframe .tabAbsolute .line{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n margin: 0.5rem;\n }\n\n.keen-explorer .timeframe .tabAbsolute .line .title,.ReactModalPortal .timeframe .tabAbsolute .line .title,.rc-time-picker-panel .timeframe .tabAbsolute .line .title{\n width: 4rem;\n }\n\n.keen-explorer .timeframe .tabAbsolute .line .SingleDatePicker, .ReactModalPortal .timeframe .tabAbsolute .line .SingleDatePicker, .rc-time-picker-panel .timeframe .tabAbsolute .line .SingleDatePicker {\n margin-right: 0.5rem;\n }\n\n.keen-explorer .timeframe .tabAbsolute .line .SingleDatePickerInput__withBorder, .ReactModalPortal .timeframe .tabAbsolute .line .SingleDatePickerInput__withBorder, .rc-time-picker-panel .timeframe .tabAbsolute .line .SingleDatePickerInput__withBorder {\n border-radius: 5px;\n border: 1px solid #dbdbdb;\n }\n\n.keen-explorer .rc-time-picker-panel .rc-time-picker-panel-inner,.ReactModalPortal .rc-time-picker-panel .rc-time-picker-panel-inner,.rc-time-picker-panel .rc-time-picker-panel .rc-time-picker-panel-inner{\n -webkit-box-shadow: none;\n box-shadow: none;\n border-radius: 5px;\n }\n\n.keen-explorer .rc-time-picker-panel .rc-time-picker-input{\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: normal;\n font-weight: normal;\n color: #000;\n height: 2.4rem;\n width: 8rem;\n border-radius: 5px;\n }\n\n.ReactModalPortal .rc-time-picker-panel .rc-time-picker-input{\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: normal;\n font-weight: normal;\n color: #000;\n height: 2.4rem;\n width: 8rem;\n border-radius: 5px;\n }\n\n.rc-time-picker-panel .rc-time-picker-panel .rc-time-picker-input{\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: normal;\n font-weight: normal;\n color: #000;\n height: 2.4rem;\n width: 8rem;\n border-radius: 5px;\n }\n\n.keen-explorer .rc-time-picker-panel .rc-time-picker-panel-select{\n font-size: 0.875rem;\n font-size: 0.875rem;\n }\n\n.ReactModalPortal .rc-time-picker-panel .rc-time-picker-panel-select{\n font-size: 0.875rem;\n font-size: 0.875rem;\n }\n\n.rc-time-picker-panel .rc-time-picker-panel .rc-time-picker-panel-select{\n font-size: 0.875rem;\n font-size: 0.875rem;\n }\n\n.keen-explorer .rc-time-picker-panel .rc-time-picker-panel-select li,.ReactModalPortal .rc-time-picker-panel .rc-time-picker-panel-select li,.rc-time-picker-panel .rc-time-picker-panel .rc-time-picker-panel-select li{\n height: 2rem;\n line-height: 2rem;\n }\n\n.keen-explorer .rc-time-picker-panel .rc-time-picker-panel-input{\n font-size: 0.875rem;\n font-size: 0.875rem;\n }\n\n.ReactModalPortal .rc-time-picker-panel .rc-time-picker-panel-input{\n font-size: 0.875rem;\n font-size: 0.875rem;\n }\n\n.rc-time-picker-panel .rc-time-picker-panel .rc-time-picker-panel-input{\n font-size: 0.875rem;\n font-size: 0.875rem;\n }\n\n.keen-explorer .apiQueryUrl,.ReactModalPortal .apiQueryUrl,.rc-time-picker-panel .apiQueryUrl{\n cursor: pointer;\n padding: 1rem;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n width: 100%;\n font-size: 0.8rem;\n}\n\n.keen-explorer .apiQueryUrl input,.ReactModalPortal .apiQueryUrl input,.rc-time-picker-panel .apiQueryUrl input{\n -ms-flex: 1;\n flex: 1;\n margin: 0 1rem;\n }\n\n.keen-explorer .fa-copy:active{\n color: #00bbde;\n color: #00bbde;\n}\n\n.ReactModalPortal .fa-copy:active{\n color: #00bbde;\n color: #00bbde;\n}\n\n.rc-time-picker-panel .fa-copy:active{\n color: #00bbde;\n color: #00bbde;\n}\n\n.keen-explorer .button-run-query{\n font-size: 0.875rem;\n font-size: 0.875rem;\n text-transform: uppercase;\n border-radius: 0.3rem;\n background: #3ecf8e;\n background: #3ecf8e;\n color: #fff;\n font-weight: 600;\n font-weight: 600;\n border: 0;\n padding: 0.875rem calc(0.875rem*2);\n padding: 0.875rem calc(0.875rem*2);\n cursor: pointer;\n margin: 0;\n}\n\n.ReactModalPortal .button-run-query{\n font-size: 0.875rem;\n font-size: 0.875rem;\n text-transform: uppercase;\n border-radius: 0.3rem;\n background: #3ecf8e;\n background: #3ecf8e;\n color: #fff;\n font-weight: 600;\n font-weight: 600;\n border: 0;\n padding: 0.875rem calc(0.875rem*2);\n padding: 0.875rem calc(0.875rem*2);\n cursor: pointer;\n margin: 0;\n}\n\n.rc-time-picker-panel .button-run-query{\n font-size: 0.875rem;\n font-size: 0.875rem;\n text-transform: uppercase;\n border-radius: 0.3rem;\n background: #3ecf8e;\n background: #3ecf8e;\n color: #fff;\n font-weight: 600;\n font-weight: 600;\n border: 0;\n padding: 0.875rem calc(0.875rem*2);\n padding: 0.875rem calc(0.875rem*2);\n cursor: pointer;\n margin: 0;\n}\n\n.keen-explorer .button-with-loading-spinner .loading-spinner,.ReactModalPortal .button-with-loading-spinner .loading-spinner,.rc-time-picker-panel .button-with-loading-spinner .loading-spinner{\n display: inline-block;\n margin: 0 0.5rem 0 -0.5rem;\n padding: 0;\n }\n\n.keen-explorer .button-with-loading-spinner .loading-spinner i, .ReactModalPortal .button-with-loading-spinner .loading-spinner i, .rc-time-picker-panel .button-with-loading-spinner .loading-spinner i {\n margin: 0;\n padding: 0;\n font-size: 1rem;\n }\n\n.keen-explorer .error,.ReactModalPortal .error,.rc-time-picker-panel .error{\n padding: 1rem;\n background: #ffe5e5;\n margin: 1rem 0;\n}\n\n.keen-explorer .box-info,.ReactModalPortal .box-info,.rc-time-picker-panel .box-info{\n padding: 1rem;\n background: #f1faff;\n}\n\n.keen-explorer .tab-content .box-info,.ReactModalPortal .tab-content .box-info,.rc-time-picker-panel .tab-content .box-info{\n margin: -1rem;\n}\n\n.keen-explorer .preview,.ReactModalPortal .preview,.rc-time-picker-panel .preview{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n background: #fafafa;\n}\n\n.keen-explorer .preview .loader,.ReactModalPortal .preview .loader,.rc-time-picker-panel .preview .loader{\n width: 100%;\n height: 340px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n font-size: 5rem;\n color: #eee;\n }\n\n.keen-explorer .preview .keen-dataviz-container, .keen-explorer .preview .react-json-view, .ReactModalPortal .preview .keen-dataviz-container, .ReactModalPortal .preview .react-json-view, .rc-time-picker-panel .preview .keen-dataviz-container, .rc-time-picker-panel .preview .react-json-view{\n width: 100%;\n height: 340px;\n background: #fff;\n overflow-y: scroll;\n }\n\n.keen-explorer .preview .react-json-view,.ReactModalPortal .preview .react-json-view,.rc-time-picker-panel .preview .react-json-view{\n padding: 1rem;\n }\n\n.keen-explorer .preview .select-chart-type-container,.ReactModalPortal .preview .select-chart-type-container,.rc-time-picker-panel .preview .select-chart-type-container{\n -ms-flex: 1;\n flex: 1;\n -ms-flex-order: 1;\n order: 1;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-item-align: center;\n align-self: center;\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex-pack: end;\n justify-content: flex-end;\n margin: 0.3rem;\n }\n\n.keen-explorer .preview .select-chart-type, .ReactModalPortal .preview .select-chart-type, .rc-time-picker-panel .preview .select-chart-type {\n -ms-flex: 1;\n flex: 1;\n width: 20rem;\n -ms-flex-item-align: end;\n align-self: flex-end;\n }\n\n.keen-explorer .preview .chart-not-supported-note,.ReactModalPortal .preview .chart-not-supported-note,.rc-time-picker-panel .preview .chart-not-supported-note{\n float: right;\n text-align: right;\n padding: 0.5rem;\n }\n\n.keen-explorer .preview .button-download,.ReactModalPortal .preview .button-download,.rc-time-picker-panel .preview .button-download{\n -ms-flex-order: 0;\n order: 0;\n background: transparent;\n border: 0;\n margin: 0;\n cursor: pointer;\n font-size: 0.8rem;\n }\n\n.keen-explorer .preview .button-download i,.ReactModalPortal .preview .button-download i,.rc-time-picker-panel .preview .button-download i{\n margin-right: 0.5rem;\n }\n\n.keen-explorer .action-buttons,.ReactModalPortal .action-buttons,.rc-time-picker-panel .action-buttons{\n margin-top: 1rem;\n}\n\n.keen-explorer .chartType,.ReactModalPortal .chartType,.rc-time-picker-panel .chartType{\n margin-top: 1rem;\n}\n\n.keen-explorer .button-toggle{\n margin-left: 1rem;\n display: inline;\n cursor: pointer;\n border-radius: 0.3rem;\n font-size: 0.875rem;\n font-size: 0.875rem;\n font-weight: 600;\n font-weight: 600;\n text-transform: uppercase;\n color: #3ecf8e;\n color: #3ecf8e;\n color: #45b2e8;\n color: #45b2e8;\n background: #fcfcfc;\n border: 1px solid #efefef;\n border: 1px solid #efefef;\n padding: 0.875rem calc(0.875rem*2);\n padding: 0.875rem calc(0.875rem*2);\n}\n\n.ReactModalPortal .button-toggle{\n margin-left: 1rem;\n display: inline;\n cursor: pointer;\n border-radius: 0.3rem;\n font-size: 0.875rem;\n font-size: 0.875rem;\n font-weight: 600;\n font-weight: 600;\n text-transform: uppercase;\n color: #3ecf8e;\n color: #3ecf8e;\n color: #45b2e8;\n color: #45b2e8;\n background: #fcfcfc;\n border: 1px solid #efefef;\n border: 1px solid #efefef;\n padding: 0.875rem calc(0.875rem*2);\n padding: 0.875rem calc(0.875rem*2);\n}\n\n.rc-time-picker-panel .button-toggle{\n margin-left: 1rem;\n display: inline;\n cursor: pointer;\n border-radius: 0.3rem;\n font-size: 0.875rem;\n font-size: 0.875rem;\n font-weight: 600;\n font-weight: 600;\n text-transform: uppercase;\n color: #3ecf8e;\n color: #3ecf8e;\n color: #45b2e8;\n color: #45b2e8;\n background: #fcfcfc;\n border: 1px solid #efefef;\n border: 1px solid #efefef;\n padding: 0.875rem calc(0.875rem*2);\n padding: 0.875rem calc(0.875rem*2);\n}\n\n.keen-explorer .button-toggle i, .ReactModalPortal .button-toggle i, .rc-time-picker-panel .button-toggle i {\n margin-left: 1rem;\n }\n\n.keen-explorer .button-toggle-active, .ReactModalPortal .button-toggle-active, .rc-time-picker-panel .button-toggle-active {\n background: rgb(255, 255, 255);\n}\n\n.keen-explorer .result-string,.ReactModalPortal .result-string,.rc-time-picker-panel .result-string{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.keen-explorer .CalendarDay__selected {\n background: #00bbde;\n background: #00bbde;\n border: 1px double #00bbde;\n border: 1px double #00bbde;\n}\n\n.keen-explorer .CalendarDay__selected:active {\n background: #00bbde;\n background: #00bbde;\n border: 1px double #00bbde;\n border: 1px double #00bbde;\n}\n\n.keen-explorer .CalendarDay__selected:hover {\n background: #00bbde;\n background: #00bbde;\n border: 1px double #00bbde;\n border: 1px double #00bbde;\n}\n\n.ReactModalPortal .CalendarDay__selected {\n background: #00bbde;\n background: #00bbde;\n border: 1px double #00bbde;\n border: 1px double #00bbde;\n}\n\n.ReactModalPortal .CalendarDay__selected:active {\n background: #00bbde;\n background: #00bbde;\n border: 1px double #00bbde;\n border: 1px double #00bbde;\n}\n\n.ReactModalPortal .CalendarDay__selected:hover {\n background: #00bbde;\n background: #00bbde;\n border: 1px double #00bbde;\n border: 1px double #00bbde;\n}\n\n.rc-time-picker-panel .CalendarDay__selected {\n background: #00bbde;\n background: #00bbde;\n border: 1px double #00bbde;\n border: 1px double #00bbde;\n}\n\n.rc-time-picker-panel .CalendarDay__selected:active {\n background: #00bbde;\n background: #00bbde;\n border: 1px double #00bbde;\n border: 1px double #00bbde;\n}\n\n.rc-time-picker-panel .CalendarDay__selected:hover {\n background: #00bbde;\n background: #00bbde;\n border: 1px double #00bbde;\n border: 1px double #00bbde;\n}\n\n.keen-explorer .DayPickerKeyboardShortcuts_show__bottomRight::before{\n border-right: 33px solid #00bbde;\n border-right: 33px solid #00bbde;\n}\n\n.ReactModalPortal .DayPickerKeyboardShortcuts_show__bottomRight::before{\n border-right: 33px solid #00bbde;\n border-right: 33px solid #00bbde;\n}\n\n.rc-time-picker-panel .DayPickerKeyboardShortcuts_show__bottomRight::before{\n border-right: 33px solid #00bbde;\n border-right: 33px solid #00bbde;\n}\n\n.keen-explorer .DateInput_input__focused{\n border-bottom: 2px solid #00bbde;\n border-bottom: 2px solid #00bbde;\n}\n\n.ReactModalPortal .DateInput_input__focused{\n border-bottom: 2px solid #00bbde;\n border-bottom: 2px solid #00bbde;\n}\n\n.rc-time-picker-panel .DateInput_input__focused{\n border-bottom: 2px solid #00bbde;\n border-bottom: 2px solid #00bbde;\n}\n\n.keen-explorer .loading-spinner i, .ReactModalPortal .loading-spinner i, .rc-time-picker-panel .loading-spinner i {\n font-size: 1.5rem;\n }\n\n.keen-explorer .fa-spin, .ReactModalPortal .fa-spin, .rc-time-picker-panel .fa-spin {\n -webkit-animation: fa-spin 1s infinite linear;\n animation: fa-spin 1s infinite linear;\n}\n\n.keen-explorer .react-select-option,.ReactModalPortal .react-select-option,.rc-time-picker-panel .react-select-option{\n padding: 0.7rem 1rem;\n}\n\n.keen-explorer .react-json-view .string-value,.ReactModalPortal .react-json-view .string-value,.rc-time-picker-panel .react-json-view .string-value{\n word-break: break-word;\n }\n\n@media screen and (max-width: 1000px) {\n .keen-explorer{\n -ms-flex-direction: column;\n flex-direction: column;\n }\n .keen-explorer .panel{\n -webkit-box-shadow: none;\n box-shadow: none;\n min-width: none;\n }\n .keen-explorer .panel .panel-content{\n padding: 0 1rem;\n }\n .keen-explorer .result{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n }\n .keen-explorer .result .preview, .keen-explorer .result .lets-go{\n -ms-flex-order: 1;\n order: 1;\n }\n .keen-explorer .result .error{\n margin-bottom: 0;\n }\n .keen-explorer .result .button-run-query{\n -ms-flex-order: 0;\n order: 0;\n }\n .keen-explorer .result .button-toggle {\n -ms-flex-order: 3;\n order: 3;\n }\n .keen-explorer .result .saved-query{\n -ms-flex-order: 3;\n order: 3;\n }\n .keen-explorer .result .action-buttons{\n margin-bottom: 1rem;\n }\n .filters-container .delete{\n margin-top: 0.5rem;\n }\n}', + '.dev-body{\n margin: 2rem auto;\n width: 100%;\n max-width: 1500px;\n}\n\n.dev-reload-button{\n position: absolute;\n left: 1rem;\n top: 1rem;\n color: #ccc;\n}\n\n.keen-explorer-template{\n margin: 0 auto;\n width: 100%;\n max-width: 1500px;\n}\n\n.keen-explorer-template #keen-explorer-container{\n padding: 1rem;\n }\n\n.PresetDateRangePicker_panel {\n padding: 0 22px 11px\n}\n\n.PresetDateRangePicker_button {\n position: relative;\n height: 100%;\n text-align: center;\n background: 0 0;\n border: 2px solid #00a699;\n color: #00a699;\n padding: 4px 12px;\n margin-right: 8px;\n font: inherit;\n font-weight: 700;\n line-height: normal;\n overflow: visible;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n cursor: pointer\n}\n\n.PresetDateRangePicker_button:active {\n outline: 0\n}\n\n.PresetDateRangePicker_button__selected {\n color: #fff;\n background: #00a699\n}\n\n.SingleDatePickerInput {\n display: inline-block;\n background-color: #fff\n}\n\n.SingleDatePickerInput__withBorder {\n border-radius: 2px;\n border: 1px solid #dbdbdb\n}\n\n.SingleDatePickerInput__rtl {\n direction: rtl\n}\n\n.SingleDatePickerInput__disabled {\n background-color: #f2f2f2\n}\n\n.SingleDatePickerInput__block {\n display: block\n}\n\n.SingleDatePickerInput__showClearDate {\n padding-right: 30px\n}\n\n.SingleDatePickerInput_clearDate {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n padding: 10px;\n margin: 0 10px 0 5px;\n position: absolute;\n right: 0;\n top: 50%;\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%)\n}\n\n.SingleDatePickerInput_clearDate__default:focus,\n.SingleDatePickerInput_clearDate__default:hover {\n background: #dbdbdb;\n border-radius: 50%\n}\n\n.SingleDatePickerInput_clearDate__small {\n padding: 6px\n}\n\n.SingleDatePickerInput_clearDate__hide {\n visibility: hidden\n}\n\n.SingleDatePickerInput_clearDate_svg {\n fill: #82888a;\n height: 12px;\n width: 15px;\n vertical-align: middle\n}\n\n.SingleDatePickerInput_clearDate_svg__small {\n height: 9px\n}\n\n.SingleDatePickerInput_calendarIcon {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n display: inline-block;\n vertical-align: middle;\n padding: 10px;\n margin: 0 5px 0 10px\n}\n\n.SingleDatePickerInput_calendarIcon_svg {\n fill: #82888a;\n height: 15px;\n width: 14px;\n vertical-align: middle\n}\n\n.SingleDatePicker {\n position: relative;\n display: inline-block\n}\n\n.SingleDatePicker__block {\n display: block\n}\n\n.SingleDatePicker_picker {\n z-index: 1;\n background-color: #fff;\n position: absolute\n}\n\n.SingleDatePicker_picker__rtl {\n direction: rtl\n}\n\n.SingleDatePicker_picker__directionLeft {\n left: 0\n}\n\n.SingleDatePicker_picker__directionRight {\n right: 0\n}\n\n.SingleDatePicker_picker__portal {\n background-color: rgba(0,0,0,.3);\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%\n}\n\n.SingleDatePicker_picker__fullScreenPortal {\n background-color: #fff\n}\n\n.SingleDatePicker_closeButton {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n position: absolute;\n top: 0;\n right: 0;\n padding: 15px;\n z-index: 2\n}\n\n.SingleDatePicker_closeButton:focus,\n.SingleDatePicker_closeButton:hover {\n color: darken(#cacccd,10%);\n text-decoration: none\n}\n\n.SingleDatePicker_closeButton_svg {\n height: 15px;\n width: 15px;\n fill: #cacccd\n}\n\n.DayPickerKeyboardShortcuts_buttonReset {\n background: 0 0;\n border: 0;\n border-radius: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n padding: 0;\n cursor: pointer;\n font-size: 14px\n}\n\n.DayPickerKeyboardShortcuts_buttonReset:active {\n outline: 0\n}\n\n.DayPickerKeyboardShortcuts_show {\n width: 33px;\n height: 26px;\n position: absolute;\n z-index: 2\n}\n\n.DayPickerKeyboardShortcuts_show::before {\n content: "";\n display: block;\n position: absolute\n}\n\n.DayPickerKeyboardShortcuts_show__bottomRight {\n bottom: 0;\n right: 0\n}\n\n.DayPickerKeyboardShortcuts_show__bottomRight::before {\n border-top: 26px solid transparent;\n border-right: 33px solid #00a699;\n bottom: 0;\n right: 0\n}\n\n.DayPickerKeyboardShortcuts_show__bottomRight:hover::before {\n border-right: 33px solid #008489\n}\n\n.DayPickerKeyboardShortcuts_show__topRight {\n top: 0;\n right: 0\n}\n\n.DayPickerKeyboardShortcuts_show__topRight::before {\n border-bottom: 26px solid transparent;\n border-right: 33px solid #00a699;\n top: 0;\n right: 0\n}\n\n.DayPickerKeyboardShortcuts_show__topRight:hover::before {\n border-right: 33px solid #008489\n}\n\n.DayPickerKeyboardShortcuts_show__topLeft {\n top: 0;\n left: 0\n}\n\n.DayPickerKeyboardShortcuts_show__topLeft::before {\n border-bottom: 26px solid transparent;\n border-left: 33px solid #00a699;\n top: 0;\n left: 0\n}\n\n.DayPickerKeyboardShortcuts_show__topLeft:hover::before {\n border-left: 33px solid #008489\n}\n\n.DayPickerKeyboardShortcuts_showSpan {\n color: #fff;\n position: absolute\n}\n\n.DayPickerKeyboardShortcuts_showSpan__bottomRight {\n bottom: 0;\n right: 5px\n}\n\n.DayPickerKeyboardShortcuts_showSpan__topRight {\n top: 1px;\n right: 5px\n}\n\n.DayPickerKeyboardShortcuts_showSpan__topLeft {\n top: 1px;\n left: 5px\n}\n\n.DayPickerKeyboardShortcuts_panel {\n overflow: auto;\n background: #fff;\n border: 1px solid #dbdbdb;\n border-radius: 2px;\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n left: 0;\n z-index: 2;\n padding: 22px;\n margin: 33px;\n text-align: left\n}\n\n.DayPickerKeyboardShortcuts_title {\n font-size: 16px;\n font-weight: 700;\n margin: 0\n}\n\n.DayPickerKeyboardShortcuts_list {\n list-style: none;\n padding: 0;\n font-size: 14px\n}\n\n.DayPickerKeyboardShortcuts_close {\n position: absolute;\n right: 22px;\n top: 22px;\n z-index: 2\n}\n\n.DayPickerKeyboardShortcuts_close:active {\n outline: 0\n}\n\n.DayPickerKeyboardShortcuts_closeSvg {\n height: 15px;\n width: 15px;\n fill: #cacccd\n}\n\n.DayPickerKeyboardShortcuts_closeSvg:focus,\n.DayPickerKeyboardShortcuts_closeSvg:hover {\n fill: #82888a\n}\n\n.CalendarDay {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 14px;\n text-align: center\n}\n\n.CalendarDay:active {\n outline: 0\n}\n\n.CalendarDay__defaultCursor {\n cursor: default\n}\n\n.CalendarDay__default {\n border: 1px solid #e4e7e7;\n color: #484848;\n background: #fff\n}\n\n.CalendarDay__default:hover {\n background: #e4e7e7;\n border: 1px solid #e4e7e7;\n color: inherit\n}\n\n.CalendarDay__hovered_offset {\n background: #f4f5f5;\n border: 1px double #e4e7e7;\n color: inherit\n}\n\n.CalendarDay__outside {\n border: 0;\n background: #fff;\n color: #484848\n}\n\n.CalendarDay__outside:hover {\n border: 0\n}\n\n.CalendarDay__blocked_minimum_nights {\n background: #fff;\n border: 1px solid #eceeee;\n color: #cacccd\n}\n\n.CalendarDay__blocked_minimum_nights:active,\n.CalendarDay__blocked_minimum_nights:hover {\n background: #fff;\n color: #cacccd\n}\n\n.CalendarDay__highlighted_calendar {\n background: #ffe8bc;\n color: #484848\n}\n\n.CalendarDay__highlighted_calendar:active,\n.CalendarDay__highlighted_calendar:hover {\n background: #ffce71;\n color: #484848\n}\n\n.CalendarDay__selected_span {\n background: #66e2da;\n border: 1px double #33dacd;\n color: #fff\n}\n\n.CalendarDay__selected_span:active,\n.CalendarDay__selected_span:hover {\n background: #33dacd;\n border: 1px double #33dacd;\n color: #fff\n}\n\n.CalendarDay__last_in_range,\n.CalendarDay__last_in_range:hover {\n border-style: solid\n}\n\n.CalendarDay__selected,\n.CalendarDay__selected:active,\n.CalendarDay__selected:hover {\n background: #00a699;\n border: 1px double #00a699;\n color: #fff\n}\n\n.CalendarDay__hovered_span,\n.CalendarDay__hovered_span:hover {\n background: #b2f1ec;\n border: 1px double #80e8e0;\n color: #007a87\n}\n\n.CalendarDay__hovered_span:active {\n background: #80e8e0;\n border: 1px double #80e8e0;\n color: #007a87\n}\n\n.CalendarDay__blocked_calendar,\n.CalendarDay__blocked_calendar:active,\n.CalendarDay__blocked_calendar:hover {\n background: #cacccd;\n border: 1px solid #cacccd;\n color: #82888a\n}\n\n.CalendarDay__blocked_out_of_range,\n.CalendarDay__blocked_out_of_range:active,\n.CalendarDay__blocked_out_of_range:hover {\n background: #fff;\n border: 1px solid #e4e7e7;\n color: #cacccd\n}\n\n.CalendarMonth {\n background: #fff;\n text-align: center;\n vertical-align: top;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none\n}\n\n.CalendarMonth_table {\n border-collapse: collapse;\n border-spacing: 0\n}\n\n.CalendarMonth_verticalSpacing {\n border-collapse: separate\n}\n\n.CalendarMonth_caption {\n color: #484848;\n font-size: 18px;\n text-align: center;\n padding-top: 22px;\n padding-bottom: 37px;\n caption-side: top;\n caption-side: initial\n}\n\n.CalendarMonth_caption__verticalScrollable {\n padding-top: 12px;\n padding-bottom: 7px\n}\n\n.CalendarMonthGrid {\n background: #fff;\n text-align: left;\n z-index: 0\n}\n\n.CalendarMonthGrid__animating {\n z-index: 1\n}\n\n.CalendarMonthGrid__horizontal {\n position: absolute;\n left: 9px\n}\n\n.CalendarMonthGrid__vertical {\n margin: 0 auto\n}\n\n.CalendarMonthGrid__vertical_scrollable {\n margin: 0 auto;\n overflow-y: scroll\n}\n\n.CalendarMonthGrid_month__horizontal {\n display: inline-block;\n vertical-align: top;\n min-height: 100%\n}\n\n.CalendarMonthGrid_month__hideForAnimation {\n position: absolute;\n z-index: -1;\n opacity: 0;\n pointer-events: none\n}\n\n.CalendarMonthGrid_month__hidden {\n visibility: hidden\n}\n\n.DayPickerNavigation {\n position: relative;\n z-index: 2\n}\n\n.DayPickerNavigation__horizontal {\n height: 0\n}\n\n.DayPickerNavigation__verticalDefault {\n position: absolute;\n width: 100%;\n height: 52px;\n bottom: 0;\n left: 0\n}\n\n.DayPickerNavigation__verticalScrollableDefault {\n position: relative\n}\n\n.DayPickerNavigation_button {\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n border: 0;\n padding: 0;\n margin: 0\n}\n\n.DayPickerNavigation_button__default {\n border: 1px solid #e4e7e7;\n background-color: #fff;\n color: #757575\n}\n\n.DayPickerNavigation_button__default:focus,\n.DayPickerNavigation_button__default:hover {\n border: 1px solid #c4c4c4\n}\n\n.DayPickerNavigation_button__default:active {\n background: #f2f2f2\n}\n\n.DayPickerNavigation_button__disabled {\n cursor: default;\n border: 1px solid #f2f2f2\n}\n\n.DayPickerNavigation_button__disabled:focus,\n.DayPickerNavigation_button__disabled:hover {\n border: 1px solid #f2f2f2\n}\n\n.DayPickerNavigation_button__disabled:active {\n background: 0 0\n}\n\n.DayPickerNavigation_button__horizontalDefault {\n position: absolute;\n top: 18px;\n line-height: .78;\n border-radius: 3px;\n padding: 6px 9px\n}\n\n.DayPickerNavigation_leftButton__horizontalDefault {\n left: 22px\n}\n\n.DayPickerNavigation_rightButton__horizontalDefault {\n right: 22px\n}\n\n.DayPickerNavigation_button__verticalDefault {\n padding: 5px;\n background: #fff;\n -webkit-box-shadow: 0 0 5px 2px rgba(0,0,0,.1);\n box-shadow: 0 0 5px 2px rgba(0,0,0,.1);\n position: relative;\n display: inline-block;\n text-align: center;\n height: 100%;\n width: 50%\n}\n\n.DayPickerNavigation_nextButton__verticalDefault {\n border-left: 0\n}\n\n.DayPickerNavigation_nextButton__verticalScrollableDefault {\n width: 100%\n}\n\n.DayPickerNavigation_svg__horizontal {\n height: 19px;\n width: 19px;\n fill: #82888a;\n display: block\n}\n\n.DayPickerNavigation_svg__vertical {\n height: 42px;\n width: 42px;\n fill: #484848\n}\n\n.DayPickerNavigation_svg__disabled {\n fill: #f2f2f2\n}\n\n.DayPicker {\n background: #fff;\n position: relative;\n text-align: left\n}\n\n.DayPicker__horizontal {\n background: #fff\n}\n\n.DayPicker__verticalScrollable {\n height: 100%\n}\n\n.DayPicker__hidden {\n visibility: hidden\n}\n\n.DayPicker__withBorder {\n -webkit-box-shadow: 0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);\n box-shadow: 0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);\n border-radius: 3px\n}\n\n.DayPicker_portal__horizontal {\n -webkit-box-shadow: none;\n box-shadow: none;\n position: absolute;\n left: 50%;\n top: 50%\n}\n\n.DayPicker_portal__vertical {\n position: static;\n position: initial\n}\n\n.DayPicker_focusRegion {\n outline: 0\n}\n\n.DayPicker_calendarInfo__horizontal,\n.DayPicker_wrapper__horizontal {\n display: inline-block;\n vertical-align: top\n}\n\n.DayPicker_weekHeaders {\n position: relative\n}\n\n.DayPicker_weekHeaders__horizontal {\n margin-left: 9px\n}\n\n.DayPicker_weekHeader {\n color: #757575;\n position: absolute;\n top: 62px;\n z-index: 2;\n text-align: left\n}\n\n.DayPicker_weekHeader__vertical {\n left: 50%\n}\n\n.DayPicker_weekHeader__verticalScrollable {\n top: 0;\n display: table-row;\n border-bottom: 1px solid #dbdbdb;\n background: #fff;\n margin-left: 0;\n left: 0;\n width: 100%;\n text-align: center\n}\n\n.DayPicker_weekHeader_ul {\n list-style: none;\n margin: 1px 0;\n padding-left: 0;\n padding-right: 0;\n font-size: 14px\n}\n\n.DayPicker_weekHeader_li {\n display: inline-block;\n text-align: center\n}\n\n.DayPicker_transitionContainer {\n position: relative;\n overflow: hidden;\n border-radius: 3px\n}\n\n.DayPicker_transitionContainer__horizontal {\n -webkit-transition: height .2s ease-in-out;\n -o-transition: height .2s ease-in-out;\n transition: height .2s ease-in-out\n}\n\n.DayPicker_transitionContainer__vertical {\n width: 100%\n}\n\n.DayPicker_transitionContainer__verticalScrollable {\n padding-top: 20px;\n height: 100%;\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n left: 0;\n overflow-y: scroll\n}\n\n.DateInput {\n margin: 0;\n padding: 0;\n background: #fff;\n position: relative;\n display: inline-block;\n width: 130px;\n vertical-align: middle\n}\n\n.DateInput__small {\n width: 97px\n}\n\n.DateInput__block {\n width: 100%\n}\n\n.DateInput__disabled {\n background: #f2f2f2;\n color: #dbdbdb\n}\n\n.DateInput_input {\n font-weight: 200;\n font-size: 19px;\n line-height: 24px;\n color: #484848;\n background-color: #fff;\n width: 100%;\n padding: 11px 11px 9px;\n border: 0;\n border-top: 0;\n border-right: 0;\n border-bottom: 2px solid transparent;\n border-left: 0;\n border-radius: 0\n}\n\n.DateInput_input__small {\n font-size: 15px;\n line-height: 18px;\n letter-spacing: .2px;\n padding: 7px 7px 5px\n}\n\n.DateInput_input__regular {\n font-weight: auto\n}\n\n.DateInput_input__readOnly {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none\n}\n\n.DateInput_input__focused {\n outline: 0;\n background: #fff;\n border: 0;\n border-top: 0;\n border-right: 0;\n border-bottom: 2px solid #008489;\n border-left: 0\n}\n\n.DateInput_input__disabled {\n background: #f2f2f2;\n font-style: italic\n}\n\n.DateInput_screenReaderMessage {\n border: 0;\n clip: rect(0,0,0,0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px\n}\n\n.DateInput_fang {\n position: absolute;\n width: 20px;\n height: 10px;\n left: 22px;\n z-index: 2\n}\n\n.DateInput_fangShape {\n fill: #fff\n}\n\n.DateInput_fangStroke {\n stroke: #dbdbdb;\n fill: transparent\n}\n\n.DateRangePickerInput {\n background-color: #fff;\n display: inline-block\n}\n\n.DateRangePickerInput__disabled {\n background: #f2f2f2\n}\n\n.DateRangePickerInput__withBorder {\n border-radius: 2px;\n border: 1px solid #dbdbdb\n}\n\n.DateRangePickerInput__rtl {\n direction: rtl\n}\n\n.DateRangePickerInput__block {\n display: block\n}\n\n.DateRangePickerInput__showClearDates {\n padding-right: 30px\n}\n\n.DateRangePickerInput_arrow {\n display: inline-block;\n vertical-align: middle;\n color: #484848\n}\n\n.DateRangePickerInput_arrow_svg {\n vertical-align: middle;\n fill: #484848;\n height: 24px;\n width: 24px\n}\n\n.DateRangePickerInput_clearDates {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n padding: 10px;\n margin: 0 10px 0 5px;\n position: absolute;\n right: 0;\n top: 50%;\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%)\n}\n\n.DateRangePickerInput_clearDates__small {\n padding: 6px\n}\n\n.DateRangePickerInput_clearDates_default:focus,\n.DateRangePickerInput_clearDates_default:hover {\n background: #dbdbdb;\n border-radius: 50%\n}\n\n.DateRangePickerInput_clearDates__hide {\n visibility: hidden\n}\n\n.DateRangePickerInput_clearDates_svg {\n fill: #82888a;\n height: 12px;\n width: 15px;\n vertical-align: middle\n}\n\n.DateRangePickerInput_clearDates_svg__small {\n height: 9px\n}\n\n.DateRangePickerInput_calendarIcon {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n display: inline-block;\n vertical-align: middle;\n padding: 10px;\n margin: 0 5px 0 10px\n}\n\n.DateRangePickerInput_calendarIcon_svg {\n fill: #82888a;\n height: 15px;\n width: 14px;\n vertical-align: middle\n}\n\n.DateRangePicker {\n position: relative;\n display: inline-block\n}\n\n.DateRangePicker__block {\n display: block\n}\n\n.DateRangePicker_picker {\n z-index: 1;\n background-color: #fff;\n position: absolute\n}\n\n.DateRangePicker_picker__rtl {\n direction: rtl\n}\n\n.DateRangePicker_picker__directionLeft {\n left: 0\n}\n\n.DateRangePicker_picker__directionRight {\n right: 0\n}\n\n.DateRangePicker_picker__portal {\n background-color: rgba(0,0,0,.3);\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%\n}\n\n.DateRangePicker_picker__fullScreenPortal {\n background-color: #fff\n}\n\n.DateRangePicker_closeButton {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n position: absolute;\n top: 0;\n right: 0;\n padding: 15px;\n z-index: 2\n}\n\n.DateRangePicker_closeButton:focus,\n.DateRangePicker_closeButton:hover {\n color: darken(#cacccd,10%);\n text-decoration: none\n}\n\n.DateRangePicker_closeButton_svg {\n height: 15px;\n width: 15px;\n fill: #cacccd\n}\n\n.rc-time-picker {\n display: inline-block;\n position: relative;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n\n.rc-time-picker * {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n\n.rc-time-picker-clear {\n position: absolute;\n right: 6px;\n cursor: pointer;\n overflow: hidden;\n width: 20px;\n height: 20px;\n text-align: center;\n line-height: 20px;\n top: 3px;\n margin: 0;\n}\n\n.rc-time-picker-clear-icon:after {\n content: "x";\n font-size: 12px;\n font-style: normal;\n color: #aaa;\n display: inline-block;\n line-height: 1;\n height: 20px;\n width: 20px;\n -webkit-transition: color 0.3s ease;\n -o-transition: color 0.3s ease;\n transition: color 0.3s ease;\n}\n\n.rc-time-picker-clear-icon:hover:after {\n color: #666;\n}\n\n.rc-time-picker-input {\n width: 100%;\n position: relative;\n display: inline-block;\n padding: 4px 7px;\n height: 28px;\n cursor: text;\n font-size: 12px;\n line-height: 1.5;\n color: #666;\n background-color: #fff;\n background-image: none;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n -webkit-transition: border 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-box-shadow 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition: border 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-box-shadow 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);\n -o-transition: border 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), box-shadow 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition: border 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), box-shadow 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition: border 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), box-shadow 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-box-shadow 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n\n.rc-time-picker-input[disabled] {\n color: #ccc;\n background: #f7f7f7;\n cursor: not-allowed;\n}\n\n.rc-time-picker-panel {\n z-index: 1070;\n width: 170px;\n position: absolute;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n\n.rc-time-picker-panel * {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n\n.rc-time-picker-panel-inner {\n display: inline-block;\n position: relative;\n outline: none;\n list-style: none;\n font-size: 12px;\n text-align: left;\n background-color: #fff;\n border-radius: 4px;\n -webkit-box-shadow: 0 1px 5px #ccc;\n box-shadow: 0 1px 5px #ccc;\n background-clip: padding-box;\n border: 1px solid #ccc;\n line-height: 1.5;\n}\n\n.rc-time-picker-panel-narrow {\n max-width: 113px;\n}\n\n.rc-time-picker-panel-input {\n margin: 0;\n padding: 0;\n width: 100%;\n cursor: auto;\n line-height: 1.5;\n outline: 0;\n border: 1px solid transparent;\n}\n\n.rc-time-picker-panel-input-wrap {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n position: relative;\n padding: 6px;\n border-bottom: 1px solid #e9e9e9;\n}\n\n.rc-time-picker-panel-input-invalid {\n border-color: red;\n}\n\n.rc-time-picker-panel-select {\n float: left;\n font-size: 12px;\n border: 1px solid #e9e9e9;\n border-width: 0 1px;\n margin-left: -1px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n width: 56px;\n max-height: 144px;\n overflow-y: auto;\n position: relative;\n}\n\n.rc-time-picker-panel-select-active {\n overflow-y: auto;\n}\n\n.rc-time-picker-panel-select:first-child {\n border-left: 0;\n margin-left: 0;\n}\n\n.rc-time-picker-panel-select:last-child {\n border-right: 0;\n}\n\n.rc-time-picker-panel-select ul {\n list-style: none;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n width: 100%;\n}\n\n.rc-time-picker-panel-select li {\n list-style: none;\n margin: 0;\n padding: 0 0 0 16px;\n width: 100%;\n height: 24px;\n line-height: 24px;\n text-align: left;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.rc-time-picker-panel-select li:hover {\n background: #edfaff;\n}\n\nli.rc-time-picker-panel-select-option-selected {\n background: #f7f7f7;\n font-weight: bold;\n}\n\nli.rc-time-picker-panel-select-option-disabled {\n color: #ccc;\n}\n\nli.rc-time-picker-panel-select-option-disabled:hover {\n background: transparent;\n cursor: not-allowed;\n}\n\n.keen-explorer {\n font-family: Montserrat, Tahoma, Arial;\n font-size: 0.88rem;\n font-size: 0.88rem;\n color: #000;\n color: #000;\n display: -ms-flexbox;\n display: flex;\n}\n\n.ReactModalPortal {\n font-family: Montserrat, Tahoma, Arial;\n font-size: 0.88rem;\n font-size: 0.88rem;\n color: #000;\n color: #000;\n display: -ms-flexbox;\n display: flex;\n}\n\n.rc-time-picker-panel {\n font-family: Montserrat, Tahoma, Arial;\n font-size: 0.88rem;\n font-size: 0.88rem;\n color: #000;\n color: #000;\n display: -ms-flexbox;\n display: flex;\n}\n\n.keen-explorer .extraction,.ReactModalPortal .extraction,.rc-time-picker-panel .extraction{\n margin-top: 1rem;\n}\n\n.keen-explorer .extraction .first-label,.ReactModalPortal .extraction .first-label,.rc-time-picker-panel .extraction .first-label{\n padding-top: 0;\n }\n\n.keen-explorer .extraction .input-text,.ReactModalPortal .extraction .input-text,.rc-time-picker-panel .extraction .input-text{\n width: 100%;\n }\n\n.keen-explorer .extraction .bulk-panel,.ReactModalPortal .extraction .bulk-panel,.rc-time-picker-panel .extraction .bulk-panel{\n margin-bottom: 1rem;\n }\n\n.keen-explorer .percentile .input-text,.ReactModalPortal .percentile .input-text,.rc-time-picker-panel .percentile .input-text{\n width: 100%;\n }\n\n.keen-explorer .filters-container .list,.ReactModalPortal .filters-container .list,.rc-time-picker-panel .filters-container .list{\n margin: 2rem 0;\n width: 100%;\n\n }\n\n.keen-explorer .filters-container .list .row,.ReactModalPortal .filters-container .list .row,.rc-time-picker-panel .filters-container .list .row{\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n margin: 0 0 1rem;\n }\n\n.keen-explorer .filters-container .list .row .row-part,.ReactModalPortal .filters-container .list .row .row-part,.rc-time-picker-panel .filters-container .list .row .row-part{\n -ms-flex:1;\n flex:1;\n padding: 0 0.5rem;\n }\n\n.keen-explorer .filters-container .list .row .row-part input{\n padding: 0.55rem 0.7rem;\n font-size: 0.88rem;\n font-size: 0.88rem;\n border-radius: 4px;\n border: 1px solid #ccc;\n width: 100%;\n }\n\n.ReactModalPortal .filters-container .list .row .row-part input{\n padding: 0.55rem 0.7rem;\n font-size: 0.88rem;\n font-size: 0.88rem;\n border-radius: 4px;\n border: 1px solid #ccc;\n width: 100%;\n }\n\n.rc-time-picker-panel .filters-container .list .row .row-part input{\n padding: 0.55rem 0.7rem;\n font-size: 0.88rem;\n font-size: 0.88rem;\n border-radius: 4px;\n border: 1px solid #ccc;\n width: 100%;\n }\n\n.keen-explorer .filters-container .list .row .row-part .datetime-pickers,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers{\n display: -ms-flexbox;\n display: flex;\n }\n\n.keen-explorer .filters-container .list .row .row-part .datetime-pickers .DateInput,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers .DateInput,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers .DateInput{\n width: 100%;\n }\n\n.keen-explorer .filters-container .list .row .row-part .datetime-pickers .SingleDatePickerInput,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers .SingleDatePickerInput,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers .SingleDatePickerInput{\n width: 100%;\n }\n\n.keen-explorer .filters-container .list .row .row-part .datetime-pickers .SingleDatePicker,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers .SingleDatePicker,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers .SingleDatePicker{\n -ms-flex: 1;\n flex: 1;\n margin-right: 0.1rem;\n }\n\n.keen-explorer .filters-container .list .row .row-part .datetime-pickers .SingleDatePickerInput__withBorder,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers .SingleDatePickerInput__withBorder,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers .SingleDatePickerInput__withBorder{\n border: 0;\n }\n\n.keen-explorer .filters-container .list .row .row-part .datetime-pickers input.DateInput_input,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers input.DateInput_input,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers input.DateInput_input{\n padding: 0.333rem;\n text-align: center;\n height: 2.3rem;\n }\n\n.keen-explorer .filters-container .list .row .row-part .datetime-pickers .rc-time-picker,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers .rc-time-picker,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers .rc-time-picker{\n -ms-flex: 1;\n flex: 1;\n }\n\n.keen-explorer .filters-container .list .row .row-part .datetime-pickers input.rc-time-picker-input,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers input.rc-time-picker-input,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers input.rc-time-picker-input{\n padding: 0.3rem;\n text-align: center;\n height: auto;\n line-height: auto;\n height: 2.3rem;\n }\n\n.keen-explorer .filters-container .list .row .row-part .within-inputs input,.ReactModalPortal .filters-container .list .row .row-part .within-inputs input,.rc-time-picker-panel .filters-container .list .row .row-part .within-inputs input{\n margin-bottom: 0.2rem;\n }\n\n.keen-explorer .filters-container .list .row .row-part .delete,.ReactModalPortal .filters-container .list .row .row-part .delete,.rc-time-picker-panel .filters-container .list .row .row-part .delete{\n cursor: pointer;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n height: 100%;\n }\n\n.keen-explorer .filters-container .list .row .row-part .delete i, .ReactModalPortal .filters-container .list .row .row-part .delete i, .rc-time-picker-panel .filters-container .list .row .row-part .delete i {\n color: #ea7373;\n font-size: 1rem;\n padding: 0.5rem;\n }\n\n.keen-explorer .filters-container .list .row .no-flex,.ReactModalPortal .filters-container .list .row .no-flex,.rc-time-picker-panel .filters-container .list .row .no-flex{\n -ms-flex: 0;\n flex: 0;\n }\n\n.keen-explorer .filters-container .action-buttons,.ReactModalPortal .filters-container .action-buttons,.rc-time-picker-panel .filters-container .action-buttons{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: end;\n justify-content: flex-end;\n margin-top: 0;\n }\n\n.keen-explorer .filters-container .action-buttons .button-add-filter,.ReactModalPortal .filters-container .action-buttons .button-add-filter,.rc-time-picker-panel .filters-container .action-buttons .button-add-filter{\n margin-right: 1rem;\n cursor: pointer;\n text-transform: uppercase;\n padding: 1rem 2rem;\n background: #eee;\n border-radius: 0.3rem;\n }\n\n.keen-explorer .filters-container .action-buttons .button-add-filter i, .ReactModalPortal .filters-container .action-buttons .button-add-filter i, .rc-time-picker-panel .filters-container .action-buttons .button-add-filter i {\n margin-right: 1rem;\n }\n\n.keen-explorer .filters-container .action-buttons .button-done{\n cursor: pointer;\n color: #fff;\n background: #45b2e8;\n background: #45b2e8;\n text-transform: uppercase;\n width: 10rem;\n padding: 1rem;\n text-align: center;\n border-radius: 0.3rem;\n }\n\n.ReactModalPortal .filters-container .action-buttons .button-done{\n cursor: pointer;\n color: #fff;\n background: #45b2e8;\n background: #45b2e8;\n text-transform: uppercase;\n width: 10rem;\n padding: 1rem;\n text-align: center;\n border-radius: 0.3rem;\n }\n\n.rc-time-picker-panel .filters-container .action-buttons .button-done{\n cursor: pointer;\n color: #fff;\n background: #45b2e8;\n background: #45b2e8;\n text-transform: uppercase;\n width: 10rem;\n padding: 1rem;\n text-align: center;\n border-radius: 0.3rem;\n }\n\n.keen-explorer .filters-container .action-buttons .button-done i,.ReactModalPortal .filters-container .action-buttons .button-done i,.rc-time-picker-panel .filters-container .action-buttons .button-done i{\n margin-right: 1rem;\n }\n\n@media screen and (max-width: 1000px) {\n .keen-explorer .filters-container .list .row,.ReactModalPortal .filters-container .list .row,.rc-time-picker-panel .filters-container .list .row{\n -ms-flex-direction: column;\n flex-direction: column;\n }\n .keen-explorer .filters-container .list .row .row-part,.ReactModalPortal .filters-container .list .row .row-part,.rc-time-picker-panel .filters-container .list .row .row-part{\n margin-bottom: 0.3rem;\n }\n .keen-explorer .filters-container .list .row .delete,.ReactModalPortal .filters-container .list .row .delete,.rc-time-picker-panel .filters-container .list .row .delete{\n float: right;\n padding-right: 1rem;\n }\n}\n\n.keen-explorer .modal-main,.ReactModalPortal .modal-main,.rc-time-picker-panel .modal-main{\n display:-ms-flexbox;\n display:flex;\n -ms-flex-direction: column;\n flex-direction: column;\n height: 100%;\n width: 100%;\n}\n\n.keen-explorer .modal-main .header,.ReactModalPortal .modal-main .header,.rc-time-picker-panel .modal-main .header{\n -ms-flex:0;\n flex:0;\n border-bottom: 1px solid #eee;\n padding-bottom: 1rem;\n }\n\n.keen-explorer .modal-main .header .title,.ReactModalPortal .modal-main .header .title,.rc-time-picker-panel .modal-main .header .title{\n float: left;\n }\n\n.keen-explorer .modal-main .header .x,.ReactModalPortal .modal-main .header .x,.rc-time-picker-panel .modal-main .header .x{\n color: #565656;\n float: right;\n font-weight: bold;\n cursor: pointer;\n padding: 1rem;\n margin: -2rem -1rem;\n font-size: 2rem;\n }\n\n.keen-explorer .modal-main .container,.ReactModalPortal .modal-main .container,.rc-time-picker-panel .modal-main .container{\n -ms-flex:1;\n flex:1;\n padding: 1rem 0;\n clear: both;\n width: 100%;\n overflow-y: scroll;\n white-space: pre-wrap;\n }\n\n.keen-explorer .modal-main .button-copy,.ReactModalPortal .modal-main .button-copy,.rc-time-picker-panel .modal-main .button-copy{\n padding: 1rem;\n width: 10rem;\n text-align: center;\n cursor: pointer;\n background: #1e93d8;\n color: #fff;\n border-radius: 0.5rem;\n margin-top: 1rem;\n }\n\n.keen-explorer .modal-main .button-copy:active,.ReactModalPortal .modal-main .button-copy:active,.rc-time-picker-panel .modal-main .button-copy:active{\n background: #30a1e4;\n }\n\n.keen-explorer .ReactModal__Overlay,.ReactModalPortal .ReactModal__Overlay,.rc-time-picker-panel .ReactModal__Overlay{\n z-index: 9999;\n}\n\n.keen-explorer .saved-query, .ReactModalPortal .saved-query, .rc-time-picker-panel .saved-query {\n margin: 1rem 0;\n border: 1px solid #e8e8e8;\n background: #fcfcfc;\n padding: 1rem;\n border-radius: 0.3rem;\n}\n\n.keen-explorer .saved-query .input-name {\n font-size: 0.88rem;\n font-size: 0.88rem;\n padding: 1rem;\n border-radius: 0.3rem;\n border: 1px solid #e8e8e8;\n width: 100%;\n }\n\n.ReactModalPortal .saved-query .input-name {\n font-size: 0.88rem;\n font-size: 0.88rem;\n padding: 1rem;\n border-radius: 0.3rem;\n border: 1px solid #e8e8e8;\n width: 100%;\n }\n\n.rc-time-picker-panel .saved-query .input-name {\n font-size: 0.88rem;\n font-size: 0.88rem;\n padding: 1rem;\n border-radius: 0.3rem;\n border: 1px solid #e8e8e8;\n width: 100%;\n }\n\n.keen-explorer .saved-query .resource-name,.ReactModalPortal .saved-query .resource-name,.rc-time-picker-panel .saved-query .resource-name{\n padding: 1rem 0.2rem 0;\n display: -ms-flexbox;\n display: flex;\n overflow: hidden;\n font-size: 0.8rem;\n }\n\n.keen-explorer .saved-query .resource-name .line, .ReactModalPortal .saved-query .resource-name .line, .rc-time-picker-panel .saved-query .resource-name .line {\n -ms-flex: 1;\n flex: 1;\n white-space: nowrap;\n }\n\n.keen-explorer .saved-query .resource-name .line span,.ReactModalPortal .saved-query .resource-name .line span,.rc-time-picker-panel .saved-query .resource-name .line span{\n white-space: nowrap;\n overflow: hidden;\n -ms-flex: 1;\n flex: 1;\n }\n\n.keen-explorer .saved-query .resource-name .line i, .ReactModalPortal .saved-query .resource-name .line i, .rc-time-picker-panel .saved-query .resource-name .line i {\n -ms-flex: 0;\n flex: 0;\n }\n\n.keen-explorer .saved-query .resource-name .line-label,.ReactModalPortal .saved-query .resource-name .line-label,.rc-time-picker-panel .saved-query .resource-name .line-label{\n -ms-flex: 0;\n flex: 0;\n margin-right: 0.5rem;\n }\n\n.keen-explorer .saved-query .cache, .ReactModalPortal .saved-query .cache, .rc-time-picker-panel .saved-query .cache {\n padding: 1rem 0 0;\n max-width: 12rem;\n }\n\n.keen-explorer .saved-query .cache .line-checkbox,.ReactModalPortal .saved-query .cache .line-checkbox,.rc-time-picker-panel .saved-query .cache .line-checkbox{\n display: -ms-flexbox;\n display: flex;\n }\n\n.keen-explorer .saved-query .cache .line-checkbox input,.ReactModalPortal .saved-query .cache .line-checkbox input,.rc-time-picker-panel .saved-query .cache .line-checkbox input{\n margin-right: 0.5rem;\n outline: none;\n }\n\n.keen-explorer .saved-query .cache .line-checkbox label,.ReactModalPortal .saved-query .cache .line-checkbox label,.rc-time-picker-panel .saved-query .cache .line-checkbox label{\n cursor: pointer;\n }\n\n.keen-explorer .saved-query .cache .cache-toggle,.ReactModalPortal .saved-query .cache .cache-toggle,.rc-time-picker-panel .saved-query .cache .cache-toggle{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n cursor: pointer;\n color: #128296;\n }\n\n.keen-explorer .saved-query .cache i, .ReactModalPortal .saved-query .cache i, .rc-time-picker-panel .saved-query .cache i {\n font-size: 1.3rem;\n margin-right: 0.6rem;\n }\n\n.keen-explorer .saved-query .cache .fa-toggle-off,.ReactModalPortal .saved-query .cache .fa-toggle-off,.rc-time-picker-panel .saved-query .cache .fa-toggle-off{\n color: #7b7b7b;\n }\n\n.keen-explorer .saved-query .cache .cache-refresh,.ReactModalPortal .saved-query .cache .cache-refresh,.rc-time-picker-panel .saved-query .cache .cache-refresh{\n }\n\n.keen-explorer .saved-query .button-copy,.ReactModalPortal .saved-query .button-copy,.rc-time-picker-panel .saved-query .button-copy{\n padding: 0.7rem;\n right: 0;\n bottom: 0;\n border: 0;\n cursor: pointer;\n display: inline;\n }\n\n.keen-explorer .saved-query .buttons * {\n margin-top: 1rem;\n padding: 0.88rem calc(0.88rem*2);\n border-radius: 0.3rem;\n font-size: 0.88rem;\n font-size: 0.88rem;\n cursor: pointer;\n text-transform: uppercase;\n border: 0;\n font-weight: 600;\n font-weight: 600;\n }\n\n.ReactModalPortal .saved-query .buttons * {\n margin-top: 1rem;\n padding: 0.88rem calc(0.88rem*2);\n border-radius: 0.3rem;\n font-size: 0.88rem;\n font-size: 0.88rem;\n cursor: pointer;\n text-transform: uppercase;\n border: 0;\n font-weight: 600;\n font-weight: 600;\n }\n\n.rc-time-picker-panel .saved-query .buttons * {\n margin-top: 1rem;\n padding: 0.88rem calc(0.88rem*2);\n border-radius: 0.3rem;\n font-size: 0.88rem;\n font-size: 0.88rem;\n cursor: pointer;\n text-transform: uppercase;\n border: 0;\n font-weight: 600;\n font-weight: 600;\n }\n\n.keen-explorer .saved-query .buttons .button-save{\n color: #fff;\n background: #45b2e8;\n background: #45b2e8;\n }\n\n.ReactModalPortal .saved-query .buttons .button-save{\n color: #fff;\n background: #45b2e8;\n background: #45b2e8;\n }\n\n.rc-time-picker-panel .saved-query .buttons .button-save{\n color: #fff;\n background: #45b2e8;\n background: #45b2e8;\n }\n\n.keen-explorer .saved-query .buttons .button-clone{\n margin-left: 1rem;\n color: #45b2e8;\n color: #45b2e8;\n background: transparent;\n border: 1px solid #eee;\n }\n\n.ReactModalPortal .saved-query .buttons .button-clone{\n margin-left: 1rem;\n color: #45b2e8;\n color: #45b2e8;\n background: transparent;\n border: 1px solid #eee;\n }\n\n.rc-time-picker-panel .saved-query .buttons .button-clone{\n margin-left: 1rem;\n color: #45b2e8;\n color: #45b2e8;\n background: transparent;\n border: 1px solid #eee;\n }\n\n.keen-explorer .saved-query .buttons .button-delete,.ReactModalPortal .saved-query .buttons .button-delete,.rc-time-picker-panel .saved-query .buttons .button-delete{\n float: right;\n color: #6f6c6c;\n background: transparent;\n border: 1px solid #eee;\n }\n\n.keen-explorer .saved-query .button-copy:active,.ReactModalPortal .saved-query .button-copy:active,.rc-time-picker-panel .saved-query .button-copy:active{\n background: #fff;\n }\n\n.keen-explorer .saved-queries,.ReactModalPortal .saved-queries,.rc-time-picker-panel .saved-queries{\n overflow: scroll;\n min-height: 100%;\n max-height: 44rem;\n padding-right: 1rem;\n}\n\n.keen-explorer .saved-queries .input-filter,.ReactModalPortal .saved-queries .input-filter,.rc-time-picker-panel .saved-queries .input-filter{\n width: 100%;\n padding: 0.6rem;\n font-size: 0.9rem;\n border: 1px solid #ccc;\n margin: .5rem 0;\n border-radius: 0.3rem;\n }\n\n.keen-explorer .saved-queries .item{\n position: relative;\n padding: 1rem 0.5rem;\n cursor: pointer;\n overflow: auto;\n border-bottom: 1px solid #f3f3f3;\n background: #fff;\n background: #fff;\n }\n\n.ReactModalPortal .saved-queries .item{\n position: relative;\n padding: 1rem 0.5rem;\n cursor: pointer;\n overflow: auto;\n border-bottom: 1px solid #f3f3f3;\n background: #fff;\n background: #fff;\n }\n\n.rc-time-picker-panel .saved-queries .item{\n position: relative;\n padding: 1rem 0.5rem;\n cursor: pointer;\n overflow: auto;\n border-bottom: 1px solid #f3f3f3;\n background: #fff;\n background: #fff;\n }\n\n.keen-explorer .saved-queries .item .name,.ReactModalPortal .saved-queries .item .name,.rc-time-picker-panel .saved-queries .item .name{\n margin: 0rem 1rem 1rem 0;\n }\n\n.keen-explorer .saved-queries .item .cached{\n float: left;\n color: #3ecf8e;\n color: #3ecf8e;\n text-transform: uppercase;\n }\n\n.ReactModalPortal .saved-queries .item .cached{\n float: left;\n color: #3ecf8e;\n color: #3ecf8e;\n text-transform: uppercase;\n }\n\n.rc-time-picker-panel .saved-queries .item .cached{\n float: left;\n color: #3ecf8e;\n color: #3ecf8e;\n text-transform: uppercase;\n }\n\n.keen-explorer .saved-queries .item .cached *, .ReactModalPortal .saved-queries .item .cached *, .rc-time-picker-panel .saved-queries .item .cached * {\n font-size: 0.7rem;\n }\n\n.keen-explorer .saved-queries .item .data,.ReactModalPortal .saved-queries .item .data,.rc-time-picker-panel .saved-queries .item .data{\n float: right;\n font-size: 0.7rem;\n color: rgba(0,0,0,0.5);\n }\n\n.keen-explorer .saved-queries .item .button-delete,.ReactModalPortal .saved-queries .item .button-delete,.rc-time-picker-panel .saved-queries .item .button-delete{\n position: absolute;\n right: 0.2rem;\n top: 0.2rem;\n padding: 0.2rem;\n color: rgba(0,0,0,0.2);\n }\n\n.keen-explorer .saved-queries .active{\n background: #fcfcfc;\n background: #fcfcfc;\n }\n\n.ReactModalPortal .saved-queries .active{\n background: #fcfcfc;\n background: #fcfcfc;\n }\n\n.rc-time-picker-panel .saved-queries .active{\n background: #fcfcfc;\n background: #fcfcfc;\n }\n\n.keen-explorer .funnel .content,.ReactModalPortal .funnel .content,.rc-time-picker-panel .funnel .content{\n padding: 0.3rem 0.5rem;\n }\n\n.keen-explorer .funnel .input-text,.ReactModalPortal .funnel .input-text,.rc-time-picker-panel .funnel .input-text{\n width: 100%;\n }\n\n.keen-explorer .funnel .button,.ReactModalPortal .funnel .button,.rc-time-picker-panel .funnel .button{\n cursor: pointer;\n }\n\n.keen-explorer .funnel .button-delete,.ReactModalPortal .funnel .button-delete,.rc-time-picker-panel .funnel .button-delete{\n color: #797979;\n }\n\n.keen-explorer .funnel .button-add,.ReactModalPortal .funnel .button-add,.rc-time-picker-panel .funnel .button-add{\n margin-top: 1rem;\n padding: 0.7rem;\n background: #fdfdfd;\n border: 1px solid #e8e8e8;\n border-radius: 5px;\n display: inline-block;\n }\n\n.keen-explorer .funnel .button-add i,.ReactModalPortal .funnel .button-add i,.rc-time-picker-panel .funnel .button-add i{\n margin-right: 0.3rem;\n }\n\n.keen-explorer .funnel .line-options,.ReactModalPortal .funnel .line-options,.rc-time-picker-panel .funnel .line-options{\n margin: 1rem 0 0 0;\n }\n\n.keen-explorer .funnel .step-switch-position-buttons,.ReactModalPortal .funnel .step-switch-position-buttons,.rc-time-picker-panel .funnel .step-switch-position-buttons{\n float: left;\n margin: -0.5rem 0.8rem 0 0;\n color: #797979;\n }\n\n.keen-explorer .funnel .step-switch-position-buttons .move-up,.ReactModalPortal .funnel .step-switch-position-buttons .move-up,.rc-time-picker-panel .funnel .step-switch-position-buttons .move-up{\n margin-top: 0.1rem;\n }\n\n.keen-explorer .funnel .step-switch-position-buttons .move-down,.ReactModalPortal .funnel .step-switch-position-buttons .move-down,.rc-time-picker-panel .funnel .step-switch-position-buttons .move-down{\n margin-top: -0.3rem;\n }\n\n.keen-explorer .line-checkbox,.ReactModalPortal .line-checkbox,.rc-time-picker-panel .line-checkbox{\n margin: 0.5rem 0 0 0;\n}\n\n.keen-explorer .line-checkbox input,.ReactModalPortal .line-checkbox input,.rc-time-picker-panel .line-checkbox input{\n margin-right: 0.5rem;\n }\n\n.keen-explorer .line-checkbox label,.ReactModalPortal .line-checkbox label,.rc-time-picker-panel .line-checkbox label{\n cursor: pointer;\n }\n\n.keen-explorer .keen-dataviz, .ReactModalPortal .keen-dataviz, .rc-time-picker-panel .keen-dataviz {\n font-family: inherit !important;\n}\n\n.keen-explorer .keen-dataviz .keen-c3-legend .legend-item-text, .ReactModalPortal .keen-dataviz .keen-c3-legend .legend-item-text, .rc-time-picker-panel .keen-dataviz .keen-c3-legend .legend-item-text {\n font-size: 1em;\n }\n\n.keen-explorer .keen-dataviz-container, .ReactModalPortal .keen-dataviz-container, .rc-time-picker-panel .keen-dataviz-container {\n height: calc(100% - 3rem);\n overflow: hidden;\n}\n\n.keen-explorer .keen-dataviz-container .keen-dataviz-execution-meta, .ReactModalPortal .keen-dataviz-container .keen-dataviz-execution-meta, .rc-time-picker-panel .keen-dataviz-container .keen-dataviz-execution-meta {\n top: 1rem;\n }\n\n.keen-explorer .keen-dataviz-metric-value,.ReactModalPortal .keen-dataviz-metric-value,.rc-time-picker-panel .keen-dataviz-metric-value{\n font-size: 4rem !important;\n}\n\n.keen-explorer .keen-dataviz .c3 svg g text tspan, .ReactModalPortal .keen-dataviz .c3 svg g text tspan, .rc-time-picker-panel .keen-dataviz .c3 svg g text tspan {\n font-size: 10px !important;\n}\n\n.keen-explorer .c3-circle, .ReactModalPortal .c3-circle, .rc-time-picker-panel .c3-circle {\n fill: currentColor;\n}\n\n.keen-explorer .a-preview-collection,.ReactModalPortal .a-preview-collection,.rc-time-picker-panel .a-preview-collection{\n padding: 0.5rem;\n margin: 0;\n cursor: pointer;\n background: #fafafa;\n border-radius: 0.3rem;\n}\n\n.keen-explorer .a-preview-collection i,.ReactModalPortal .a-preview-collection i,.rc-time-picker-panel .a-preview-collection i{\n font-size: 0.8em;\n margin-right: 0.2rem;\n }\n\n.keen-explorer .preview-collection-content,.ReactModalPortal .preview-collection-content,.rc-time-picker-panel .preview-collection-content{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n}\n\n.keen-explorer .preview-collection-content .input-filter,.ReactModalPortal .preview-collection-content .input-filter,.rc-time-picker-panel .preview-collection-content .input-filter{\n width: 100%;\n padding: 0.6rem;\n font-size: 0.9rem;\n border: 1px solid #ccc;\n margin: .5rem 0;\n border-radius: 0.3rem;\n }\n\n.keen-explorer .preview-collection-content .list, .ReactModalPortal .preview-collection-content .list, .rc-time-picker-panel .preview-collection-content .list {\n height: 100%;\n overflow-y: scroll;\n -ms-flex: 1;\n flex: 1;\n }\n\n.keen-explorer .preview-collection-content .list .item{\n cursor: pointer;\n padding: 1rem;\n overflow: auto;\n border-bottom: 1px solid #f3f3f3;\n background: #fff;\n background: #fff;\n }\n\n.ReactModalPortal .preview-collection-content .list .item{\n cursor: pointer;\n padding: 1rem;\n overflow: auto;\n border-bottom: 1px solid #f3f3f3;\n background: #fff;\n background: #fff;\n }\n\n.rc-time-picker-panel .preview-collection-content .list .item{\n cursor: pointer;\n padding: 1rem;\n overflow: auto;\n border-bottom: 1px solid #f3f3f3;\n background: #fff;\n background: #fff;\n }\n\n.keen-explorer .preview-collection-content .list .active{\n background: #fcfcfc;\n background: #fcfcfc;\n }\n\n.ReactModalPortal .preview-collection-content .list .active{\n background: #fcfcfc;\n background: #fcfcfc;\n }\n\n.rc-time-picker-panel .preview-collection-content .list .active{\n background: #fcfcfc;\n background: #fcfcfc;\n }\n\n.keen-explorer .preview-collection-content .content,.ReactModalPortal .preview-collection-content .content,.rc-time-picker-panel .preview-collection-content .content{\n -ms-flex: 3;\n flex: 3;\n height: 100%;\n padding: 0.5rem 0 0.5rem 1rem;\n }\n\n.keen-explorer .preview-collection-content .content .tabs .tab,.ReactModalPortal .preview-collection-content .content .tabs .tab,.rc-time-picker-panel .preview-collection-content .content .tabs .tab{\n -ms-flex: none;\n flex: none;\n padding: 1rem 1.5rem;\n }\n\n.keen-explorer .preview-collection-content .content .tabs .tab-placeholder,.ReactModalPortal .preview-collection-content .content .tabs .tab-placeholder,.rc-time-picker-panel .preview-collection-content .content .tabs .tab-placeholder{\n -ms-flex: 1;\n flex: 1;\n border-bottom: 1px solid #e8e8e8;\n }\n\n.keen-explorer .preview-collection-content .content .tab-content,.ReactModalPortal .preview-collection-content .content .tab-content,.rc-time-picker-panel .preview-collection-content .content .tab-content{\n height: 100%;\n width: 100%;\n overflow: scroll;\n padding-bottom: 4rem;\n }\n\n@media screen and (max-width: 900px) {\n\n .keen-explorer .preview-collection-content,.ReactModalPortal .preview-collection-content,.rc-time-picker-panel .preview-collection-content{\n -ms-flex-direction: column;\n flex-direction: column;\n }\n .keen-explorer .preview-collection-content .list, .keen-explorer .preview-collection-content .content, .ReactModalPortal .preview-collection-content .list, .ReactModalPortal .preview-collection-content .content, .rc-time-picker-panel .preview-collection-content .list, .rc-time-picker-panel .preview-collection-content .content{\n height: auto;\n overflow-y: visible;\n padding: 0;\n }\n .keen-explorer .preview-collection-content .content,.ReactModalPortal .preview-collection-content .content,.rc-time-picker-panel .preview-collection-content .content{\n padding-top: 2rem;\n }\n}\n\n.keen-explorer .preview .download-toggle-label,.ReactModalPortal .preview .download-toggle-label,.rc-time-picker-panel .preview .download-toggle-label{\n padding: 1rem;\n cursor: pointer;\n height: -webkit-min-content;\n height: -moz-min-content;\n height: min-content;\n }\n\n.keen-explorer .preview .download-toggle-label i,.ReactModalPortal .preview .download-toggle-label i,.rc-time-picker-panel .preview .download-toggle-label i{\n margin-right: 0.5rem;\n }\n\n.keen-explorer .preview .download-buttons,.ReactModalPortal .preview .download-buttons,.rc-time-picker-panel .preview .download-buttons{\n position: absolute;\n background: #fdfdfd;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-shadow: 2px 3px 6px rgba(0,0,0,0.05);\n box-shadow: 2px 3px 6px rgba(0,0,0,0.05);\n margin-top: -2px;\n }\n\n.keen-explorer .preview .download-buttons button, .ReactModalPortal .preview .download-buttons button, .rc-time-picker-panel .preview .download-buttons button {\n border: 1px solid #f7f7f7;\n }\n\n.keen-explorer .preview .download-buttons button:hover,.ReactModalPortal .preview .download-buttons button:hover,.rc-time-picker-panel .preview .download-buttons button:hover{\n background: #fff;\n }\n\n.keen-explorer .preview .download-buttons .button-download,.ReactModalPortal .preview .download-buttons .button-download,.rc-time-picker-panel .preview .download-buttons .button-download{\n padding: 1rem 3rem;\n height: -webkit-min-content;\n height: -moz-min-content;\n height: min-content;\n }\n\n.keen-explorer .preview .button-embed-html,.ReactModalPortal .preview .button-embed-html,.rc-time-picker-panel .preview .button-embed-html{\n height: -webkit-min-content;\n height: -moz-min-content;\n height: min-content;\n }\n\n.keen-explorer * {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n font-size: 0.88rem;\n font-size: 0.88rem;\n}\n\n.ReactModalPortal * {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n font-size: 0.88rem;\n font-size: 0.88rem;\n}\n\n.rc-time-picker-panel * {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n font-size: 0.88rem;\n font-size: 0.88rem;\n}\n\n.keen-explorer button,.ReactModalPortal button,.rc-time-picker-panel button{\n margin: 2rem 0 0;\n padding: 1rem;\n}\n\n.keen-explorer .label-main,.ReactModalPortal .label-main,.rc-time-picker-panel .label-main{\n padding: 1rem 0 0.3rem;\n}\n\n.keen-explorer .hide,.ReactModalPortal .hide,.rc-time-picker-panel .hide{\n display: none;\n}\n\n.keen-explorer input:focus {\n outline: 2px solid #00bbde;\n outline: 2px solid #00bbde;\n}\n\n.ReactModalPortal input:focus {\n outline: 2px solid #00bbde;\n outline: 2px solid #00bbde;\n}\n\n.rc-time-picker-panel input:focus {\n outline: 2px solid #00bbde;\n outline: 2px solid #00bbde;\n}\n\n.keen-explorer .panel-main,.ReactModalPortal .panel-main,.rc-time-picker-panel .panel-main{\n -ms-flex: 1;\n flex: 1;\n min-width: 26rem;\n -webkit-box-shadow: -3px 7px 11px rgba(0,0,0,0.1);\n box-shadow: -3px 7px 11px rgba(0,0,0,0.1);\n border-radius: 0.3rem;\n}\n\n.keen-explorer .panel-main .panel-buttons .button-new-query,.ReactModalPortal .panel-main .panel-buttons .button-new-query,.rc-time-picker-panel .panel-main .panel-buttons .button-new-query{\n -ms-flex: none;\n flex: none;\n cursor: pointer;\n }\n\n.keen-explorer .panel-main .panel-content,.ReactModalPortal .panel-main .panel-content,.rc-time-picker-panel .panel-main .panel-content{\n padding: 1rem;\n }\n\n.keen-explorer .panel-main .panel-content .event-collection .label-main,.ReactModalPortal .panel-main .panel-content .event-collection .label-main,.rc-time-picker-panel .panel-main .panel-content .event-collection .label-main{\n padding-top: 0;\n }\n\n.keen-explorer .panel-main .panel-saved-queries,.ReactModalPortal .panel-main .panel-saved-queries,.rc-time-picker-panel .panel-main .panel-saved-queries{\n padding-right: 0;\n }\n\n.keen-explorer .panel-main .panel-funnel .label-analysis-type, .ReactModalPortal .panel-main .panel-funnel .label-analysis-type, .rc-time-picker-panel .panel-main .panel-funnel .label-analysis-type {\n padding-top: 0;\n }\n\n.keen-explorer .result,.ReactModalPortal .result,.rc-time-picker-panel .result{\n -ms-flex: 3;\n flex: 3;\n padding: 0 1.5rem;\n overflow-x: hidden;\n}\n\n.keen-explorer .foldable,.ReactModalPortal .foldable,.rc-time-picker-panel .foldable{\n margin-top: 0.5rem;\n border: 1px solid #e8e8e8;\n background: #fdfdfd;\n padding: 0.5rem;\n cursor: pointer;\n border-radius: 5px;\n}\n\n.keen-explorer .foldable-active,.ReactModalPortal .foldable-active,.rc-time-picker-panel .foldable-active{\n background: none;\n }\n\n.keen-explorer .foldable .title,.ReactModalPortal .foldable .title,.rc-time-picker-panel .foldable .title{\n padding: 0.5rem;\n }\n\n.keen-explorer .foldable .title .foldable-icon,.ReactModalPortal .foldable .title .foldable-icon,.rc-time-picker-panel .foldable .title .foldable-icon{\n float: right;\n }\n\n.keen-explorer .foldable .content,.ReactModalPortal .foldable .content,.rc-time-picker-panel .foldable .content{\n margin-top: 0.5rem;\n padding: 0;\n }\n\n.keen-explorer .foldable .tab-content,.ReactModalPortal .foldable .tab-content,.rc-time-picker-panel .foldable .tab-content{\n border: 0;\n }\n\n.keen-explorer .filters,.ReactModalPortal .filters,.rc-time-picker-panel .filters{\n display: -ms-flexbox;\n display: flex;\n}\n\n.keen-explorer .filters .title,.ReactModalPortal .filters .title,.rc-time-picker-panel .filters .title{\n -ms-flex: 1;\n flex: 1;\n }\n\n.keen-explorer .filters .count,.ReactModalPortal .filters .count,.rc-time-picker-panel .filters .count{\n -ms-flex-item-align: center;\n align-self: center;\n text-align: right;\n padding: 0 0.5rem 0 0;\n }\n\n.keen-explorer .optional,.ReactModalPortal .optional,.rc-time-picker-panel .optional{\n margin-left: 1em;\n font-size: 0.7em;\n color:#ddd;\n color: #737373;\n}\n\n.keen-explorer .group-by .label-main,.ReactModalPortal .group-by .label-main,.rc-time-picker-panel .group-by .label-main{\n padding: 0 0 0.5rem;\n }\n\n.keen-explorer .group-by .btn-plus, .keen-explorer .group-by .btn-minus, .ReactModalPortal .group-by .btn-plus, .ReactModalPortal .group-by .btn-minus, .rc-time-picker-panel .group-by .btn-plus, .rc-time-picker-panel .group-by .btn-minus{\n margin-top: 1rem;\n padding: 0.7rem;\n background: #fdfdfd;\n border: 1px solid #e8e8e8;\n border-radius: 5px;\n display: inline-block;\n }\n\n.keen-explorer .group-by .options,.ReactModalPortal .group-by .options,.rc-time-picker-panel .group-by .options{\n margin-top: 1rem;\n display:-ms-flexbox;\n display:flex;\n }\n\n.keen-explorer .group-by .options .order-by,.ReactModalPortal .group-by .options .order-by,.rc-time-picker-panel .group-by .options .order-by{\n width: 8em;\n padding-right: 1rem;\n }\n\n.keen-explorer .group-by .options .order-by .select,.ReactModalPortal .group-by .options .order-by .select,.rc-time-picker-panel .group-by .options .order-by .select{\n width: 100%;\n }\n\n.keen-explorer .group-by .options .limit,.ReactModalPortal .group-by .options .limit,.rc-time-picker-panel .group-by .options .limit{\n width: 8em;\n }\n\n.keen-explorer .group-by .options .limit .input,.ReactModalPortal .group-by .options .limit .input,.rc-time-picker-panel .group-by .options .limit .input{\n width: 100%;\n }\n\n.keen-explorer .group-by .additional-target-property,.ReactModalPortal .group-by .additional-target-property,.rc-time-picker-panel .group-by .additional-target-property{\n margin-top: 1rem;\n padding-top: 1rem;\n border-top: 1px solid #f1f1f1;\n }\n\n.keen-explorer .lets-go,.ReactModalPortal .lets-go,.rc-time-picker-panel .lets-go{\n display:-ms-flexbox;\n display:flex;\n width: 100%;\n height: 390px;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-align: center;\n align-items: center;\n color: #9b9b9b;\n background: #fafafa;\n}\n\n.keen-explorer .tabs,.ReactModalPortal .tabs,.rc-time-picker-panel .tabs{\n display:-ms-flexbox;\n display:flex;\n}\n\n.keen-explorer .tabs .tab,.ReactModalPortal .tabs .tab,.rc-time-picker-panel .tabs .tab{\n -ms-flex: 1;\n flex: 1;\n padding: 1rem;\n background: #fafafa;\n cursor: pointer;\n border: 1px solid #e8e8e8;\n border-radius: 5px 5px 0 0;\n }\n\n.keen-explorer .tabs .active,.ReactModalPortal .tabs .active,.rc-time-picker-panel .tabs .active{\n background: #fff;\n border-bottom: 1px solid #fff;\n }\n\n.keen-explorer .panel-buttons .active,.ReactModalPortal .panel-buttons .active,.rc-time-picker-panel .panel-buttons .active{\n border-right: 0;\n }\n\n.keen-explorer .tab-content,.ReactModalPortal .tab-content,.rc-time-picker-panel .tab-content{\n padding: 1rem;\n border: 1px solid #e8e8e8;\n border-top: none;\n}\n\n.keen-explorer .input-number{\n font-size: 0.88rem;\n font-size: 0.88rem;\n padding: 0.5rem 0.6rem;\n border-radius: 5px;\n border: 1px solid #ccc;\n font-weight: 400;\n line-height: normal;\n}\n\n.ReactModalPortal .input-number{\n font-size: 0.88rem;\n font-size: 0.88rem;\n padding: 0.5rem 0.6rem;\n border-radius: 5px;\n border: 1px solid #ccc;\n font-weight: 400;\n line-height: normal;\n}\n\n.rc-time-picker-panel .input-number{\n font-size: 0.88rem;\n font-size: 0.88rem;\n padding: 0.5rem 0.6rem;\n border-radius: 5px;\n border: 1px solid #ccc;\n font-weight: 400;\n line-height: normal;\n}\n\n.keen-explorer .input-text{\n font-size: 0.88rem;\n font-size: 0.88rem;\n padding: 0.5rem 0.6rem;\n border-radius: 5px;\n border: 1px solid #ccc;\n font-weight: 400;\n line-height: normal;\n}\n\n.ReactModalPortal .input-text{\n font-size: 0.88rem;\n font-size: 0.88rem;\n padding: 0.5rem 0.6rem;\n border-radius: 5px;\n border: 1px solid #ccc;\n font-weight: 400;\n line-height: normal;\n}\n\n.rc-time-picker-panel .input-text{\n font-size: 0.88rem;\n font-size: 0.88rem;\n padding: 0.5rem 0.6rem;\n border-radius: 5px;\n border: 1px solid #ccc;\n font-weight: 400;\n line-height: normal;\n}\n\n.keen-explorer .interval .standard-units,.ReactModalPortal .interval .standard-units,.rc-time-picker-panel .interval .standard-units{\n width: 10rem;\n }\n\n.keen-explorer .interval .line,.ReactModalPortal .interval .line,.rc-time-picker-panel .interval .line{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n }\n\n.keen-explorer .interval .line .title,.ReactModalPortal .interval .line .title,.rc-time-picker-panel .interval .line .title{\n margin-right: 1rem;\n }\n\n.keen-explorer .interval .line .input-number,.ReactModalPortal .interval .line .input-number,.rc-time-picker-panel .interval .line .input-number{\n width: 4rem;\n margin-right: 0.5rem;\n }\n\n.keen-explorer .interval .line .time-units,.ReactModalPortal .interval .line .time-units,.rc-time-picker-panel .interval .line .time-units{\n width: 10rem;\n }\n\n.keen-explorer .timeframe,.ReactModalPortal .timeframe,.rc-time-picker-panel .timeframe{\n margin-bottom: 0.5rem;\n}\n\n.keen-explorer .timeframe .relative,.ReactModalPortal .timeframe .relative,.rc-time-picker-panel .timeframe .relative{\n display:-ms-flexbox;\n display:flex;\n }\n\n.keen-explorer .timeframe .relative .relativity, .keen-explorer .timeframe .relative .input-number, .ReactModalPortal .timeframe .relative .relativity, .ReactModalPortal .timeframe .relative .input-number, .rc-time-picker-panel .timeframe .relative .relativity, .rc-time-picker-panel .timeframe .relative .input-number{\n margin-right:0.5rem;\n }\n\n.keen-explorer .timeframe .relative .relativity,.ReactModalPortal .timeframe .relative .relativity,.rc-time-picker-panel .timeframe .relative .relativity{\n -ms-flex: 0;\n flex: 0;\n max-width:12rem;\n min-width: 6rem;\n }\n\n.keen-explorer .timeframe .relative .units,.ReactModalPortal .timeframe .relative .units,.rc-time-picker-panel .timeframe .relative .units{\n -ms-flex: 0;\n flex: 0;\n max-width:12rem;\n min-width: 6rem;\n }\n\n.keen-explorer .timeframe .relative .input-number,.ReactModalPortal .timeframe .relative .input-number,.rc-time-picker-panel .timeframe .relative .input-number{\n -ms-flex: 1;\n flex: 1;\n min-width: 6rem;\n }\n\n.keen-explorer .timeframe .description,.ReactModalPortal .timeframe .description,.rc-time-picker-panel .timeframe .description{\n margin-top: 0.5rem;\n padding: 1rem;\n background: #fafafa;\n }\n\n.keen-explorer .timeframe .tabAbsolute .DateRangePickerInput_arrow,.ReactModalPortal .timeframe .tabAbsolute .DateRangePickerInput_arrow,.rc-time-picker-panel .timeframe .tabAbsolute .DateRangePickerInput_arrow{\n display: none;\n }\n\n.keen-explorer .timeframe .tabAbsolute .DateInput, .ReactModalPortal .timeframe .tabAbsolute .DateInput, .rc-time-picker-panel .timeframe .tabAbsolute .DateInput {\n width: 8rem;\n background: none;\n }\n\n.keen-explorer .timeframe .tabAbsolute .DateInput_input {\n padding: 0.5rem;\n font-size: 0.88rem;\n font-size: 0.88rem;\n line-height: normal;\n color:#000;\n font-weight: normal;\n border-radius: 5px;\n }\n\n.ReactModalPortal .timeframe .tabAbsolute .DateInput_input {\n padding: 0.5rem;\n font-size: 0.88rem;\n font-size: 0.88rem;\n line-height: normal;\n color:#000;\n font-weight: normal;\n border-radius: 5px;\n }\n\n.rc-time-picker-panel .timeframe .tabAbsolute .DateInput_input {\n padding: 0.5rem;\n font-size: 0.88rem;\n font-size: 0.88rem;\n line-height: normal;\n color:#000;\n font-weight: normal;\n border-radius: 5px;\n }\n\n.keen-explorer .timeframe .tabAbsolute .rc-time-picker-input{\n font-size: 0.88rem;\n font-size: 0.88rem;\n line-height: normal;\n font-weight: normal;\n color: #000;\n height: 2.4rem;\n width: 7rem;\n border-radius: 5px;\n }\n\n.ReactModalPortal .timeframe .tabAbsolute .rc-time-picker-input{\n font-size: 0.88rem;\n font-size: 0.88rem;\n line-height: normal;\n font-weight: normal;\n color: #000;\n height: 2.4rem;\n width: 7rem;\n border-radius: 5px;\n }\n\n.rc-time-picker-panel .timeframe .tabAbsolute .rc-time-picker-input{\n font-size: 0.88rem;\n font-size: 0.88rem;\n line-height: normal;\n font-weight: normal;\n color: #000;\n height: 2.4rem;\n width: 7rem;\n border-radius: 5px;\n }\n\n.keen-explorer .timeframe .tabAbsolute .line,.ReactModalPortal .timeframe .tabAbsolute .line,.rc-time-picker-panel .timeframe .tabAbsolute .line{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n margin: 0.5rem;\n }\n\n.keen-explorer .timeframe .tabAbsolute .line .title,.ReactModalPortal .timeframe .tabAbsolute .line .title,.rc-time-picker-panel .timeframe .tabAbsolute .line .title{\n width: 4rem;\n }\n\n.keen-explorer .timeframe .tabAbsolute .line .SingleDatePicker, .ReactModalPortal .timeframe .tabAbsolute .line .SingleDatePicker, .rc-time-picker-panel .timeframe .tabAbsolute .line .SingleDatePicker {\n margin-right: 0.5rem;\n }\n\n.keen-explorer .timeframe .tabAbsolute .line .SingleDatePickerInput__withBorder, .ReactModalPortal .timeframe .tabAbsolute .line .SingleDatePickerInput__withBorder, .rc-time-picker-panel .timeframe .tabAbsolute .line .SingleDatePickerInput__withBorder {\n border-radius: 5px;\n border: 1px solid #dbdbdb;\n }\n\n.keen-explorer .rc-time-picker-panel .rc-time-picker-panel-inner,.ReactModalPortal .rc-time-picker-panel .rc-time-picker-panel-inner,.rc-time-picker-panel .rc-time-picker-panel .rc-time-picker-panel-inner{\n -webkit-box-shadow: none;\n box-shadow: none;\n border-radius: 5px;\n }\n\n.keen-explorer .rc-time-picker-panel .rc-time-picker-input{\n font-size: 0.88rem;\n font-size: 0.88rem;\n line-height: normal;\n font-weight: normal;\n color: #000;\n height: 2.4rem;\n width: 8rem;\n border-radius: 5px;\n }\n\n.ReactModalPortal .rc-time-picker-panel .rc-time-picker-input{\n font-size: 0.88rem;\n font-size: 0.88rem;\n line-height: normal;\n font-weight: normal;\n color: #000;\n height: 2.4rem;\n width: 8rem;\n border-radius: 5px;\n }\n\n.rc-time-picker-panel .rc-time-picker-panel .rc-time-picker-input{\n font-size: 0.88rem;\n font-size: 0.88rem;\n line-height: normal;\n font-weight: normal;\n color: #000;\n height: 2.4rem;\n width: 8rem;\n border-radius: 5px;\n }\n\n.keen-explorer .rc-time-picker-panel .rc-time-picker-panel-select{\n font-size: 0.88rem;\n font-size: 0.88rem;\n }\n\n.ReactModalPortal .rc-time-picker-panel .rc-time-picker-panel-select{\n font-size: 0.88rem;\n font-size: 0.88rem;\n }\n\n.rc-time-picker-panel .rc-time-picker-panel .rc-time-picker-panel-select{\n font-size: 0.88rem;\n font-size: 0.88rem;\n }\n\n.keen-explorer .rc-time-picker-panel .rc-time-picker-panel-select li,.ReactModalPortal .rc-time-picker-panel .rc-time-picker-panel-select li,.rc-time-picker-panel .rc-time-picker-panel .rc-time-picker-panel-select li{\n height: 2rem;\n line-height: 2rem;\n }\n\n.keen-explorer .rc-time-picker-panel .rc-time-picker-panel-input{\n font-size: 0.88rem;\n font-size: 0.88rem;\n }\n\n.ReactModalPortal .rc-time-picker-panel .rc-time-picker-panel-input{\n font-size: 0.88rem;\n font-size: 0.88rem;\n }\n\n.rc-time-picker-panel .rc-time-picker-panel .rc-time-picker-panel-input{\n font-size: 0.88rem;\n font-size: 0.88rem;\n }\n\n.keen-explorer .apiQueryUrl,.ReactModalPortal .apiQueryUrl,.rc-time-picker-panel .apiQueryUrl{\n cursor: pointer;\n padding: 1rem;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n width: 100%;\n font-size: 0.8rem;\n}\n\n.keen-explorer .apiQueryUrl input,.ReactModalPortal .apiQueryUrl input,.rc-time-picker-panel .apiQueryUrl input{\n -ms-flex: 1;\n flex: 1;\n margin: 0 1rem;\n }\n\n.keen-explorer .fa-copy:active{\n color: #00bbde;\n color: #00bbde;\n}\n\n.ReactModalPortal .fa-copy:active{\n color: #00bbde;\n color: #00bbde;\n}\n\n.rc-time-picker-panel .fa-copy:active{\n color: #00bbde;\n color: #00bbde;\n}\n\n.keen-explorer .button-run-query{\n font-size: 0.88rem;\n font-size: 0.88rem;\n text-transform: uppercase;\n border-radius: 0.3rem;\n background: #3ecf8e;\n background: #3ecf8e;\n color: #fff;\n font-weight: 600;\n font-weight: 600;\n border: 0;\n padding: 0.88rem calc(0.88rem*2);\n padding: 0.88rem calc(0.88rem*2);\n cursor: pointer;\n margin: 0;\n}\n\n.ReactModalPortal .button-run-query{\n font-size: 0.88rem;\n font-size: 0.88rem;\n text-transform: uppercase;\n border-radius: 0.3rem;\n background: #3ecf8e;\n background: #3ecf8e;\n color: #fff;\n font-weight: 600;\n font-weight: 600;\n border: 0;\n padding: 0.88rem calc(0.88rem*2);\n padding: 0.88rem calc(0.88rem*2);\n cursor: pointer;\n margin: 0;\n}\n\n.rc-time-picker-panel .button-run-query{\n font-size: 0.88rem;\n font-size: 0.88rem;\n text-transform: uppercase;\n border-radius: 0.3rem;\n background: #3ecf8e;\n background: #3ecf8e;\n color: #fff;\n font-weight: 600;\n font-weight: 600;\n border: 0;\n padding: 0.88rem calc(0.88rem*2);\n padding: 0.88rem calc(0.88rem*2);\n cursor: pointer;\n margin: 0;\n}\n\n.keen-explorer .button-with-loading-spinner .loading-spinner,.ReactModalPortal .button-with-loading-spinner .loading-spinner,.rc-time-picker-panel .button-with-loading-spinner .loading-spinner{\n display: inline-block;\n margin: 0 0.5rem 0 -0.5rem;\n padding: 0;\n }\n\n.keen-explorer .button-with-loading-spinner .loading-spinner i, .ReactModalPortal .button-with-loading-spinner .loading-spinner i, .rc-time-picker-panel .button-with-loading-spinner .loading-spinner i {\n margin: 0;\n padding: 0;\n font-size: 1rem;\n }\n\n.keen-explorer .error,.ReactModalPortal .error,.rc-time-picker-panel .error{\n padding: 1rem;\n background: #ffe5e5;\n margin: 1rem 0;\n}\n\n.keen-explorer .box-info,.ReactModalPortal .box-info,.rc-time-picker-panel .box-info{\n padding: 1rem;\n background: #f1faff;\n}\n\n.keen-explorer .tab-content .box-info,.ReactModalPortal .tab-content .box-info,.rc-time-picker-panel .tab-content .box-info{\n margin: -1rem;\n}\n\n.keen-explorer .preview,.ReactModalPortal .preview,.rc-time-picker-panel .preview{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n background: #fafafa;\n}\n\n.keen-explorer .preview .loader,.ReactModalPortal .preview .loader,.rc-time-picker-panel .preview .loader{\n width: 100%;\n height: 340px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n font-size: 5rem;\n color: #eee;\n }\n\n.keen-explorer .preview .keen-dataviz-container, .keen-explorer .preview .react-json-view, .ReactModalPortal .preview .keen-dataviz-container, .ReactModalPortal .preview .react-json-view, .rc-time-picker-panel .preview .keen-dataviz-container, .rc-time-picker-panel .preview .react-json-view{\n width: 100%;\n height: 340px;\n background: #fff;\n overflow-y: scroll;\n }\n\n.keen-explorer .preview .react-json-view,.ReactModalPortal .preview .react-json-view,.rc-time-picker-panel .preview .react-json-view{\n padding: 1rem;\n }\n\n.keen-explorer .preview .select-chart-type-container,.ReactModalPortal .preview .select-chart-type-container,.rc-time-picker-panel .preview .select-chart-type-container{\n -ms-flex: 1;\n flex: 1;\n -ms-flex-order: 1;\n order: 1;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-item-align: center;\n align-self: center;\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex-pack: end;\n justify-content: flex-end;\n margin: 0.3rem;\n }\n\n.keen-explorer .preview .select-chart-type, .ReactModalPortal .preview .select-chart-type, .rc-time-picker-panel .preview .select-chart-type {\n -ms-flex: 1;\n flex: 1;\n width: 20rem;\n -ms-flex-item-align: end;\n align-self: flex-end;\n }\n\n.keen-explorer .preview .chart-not-supported-note,.ReactModalPortal .preview .chart-not-supported-note,.rc-time-picker-panel .preview .chart-not-supported-note{\n float: right;\n text-align: right;\n padding: 0.5rem;\n }\n\n.keen-explorer .preview .button-download,.ReactModalPortal .preview .button-download,.rc-time-picker-panel .preview .button-download{\n -ms-flex-order: 0;\n order: 0;\n background: transparent;\n border: 0;\n margin: 0;\n cursor: pointer;\n font-size: 0.8rem;\n }\n\n.keen-explorer .preview .button-download i,.ReactModalPortal .preview .button-download i,.rc-time-picker-panel .preview .button-download i{\n margin-right: 0.5rem;\n }\n\n.keen-explorer .action-buttons,.ReactModalPortal .action-buttons,.rc-time-picker-panel .action-buttons{\n margin-top: 1rem;\n}\n\n.keen-explorer .chartType,.ReactModalPortal .chartType,.rc-time-picker-panel .chartType{\n margin-top: 1rem;\n}\n\n.keen-explorer .button-toggle{\n margin-left: 1rem;\n display: inline;\n cursor: pointer;\n border-radius: 0.3rem;\n font-size: 0.88rem;\n font-size: 0.88rem;\n font-weight: 600;\n font-weight: 600;\n text-transform: uppercase;\n color: #3ecf8e;\n color: #3ecf8e;\n color: #45b2e8;\n color: #45b2e8;\n background: #fcfcfc;\n border: 1px solid #efefef;\n border: 1px solid #efefef;\n padding: 0.88rem calc(0.88rem*2);\n padding: 0.88rem calc(0.88rem*2);\n}\n\n.ReactModalPortal .button-toggle{\n margin-left: 1rem;\n display: inline;\n cursor: pointer;\n border-radius: 0.3rem;\n font-size: 0.88rem;\n font-size: 0.88rem;\n font-weight: 600;\n font-weight: 600;\n text-transform: uppercase;\n color: #3ecf8e;\n color: #3ecf8e;\n color: #45b2e8;\n color: #45b2e8;\n background: #fcfcfc;\n border: 1px solid #efefef;\n border: 1px solid #efefef;\n padding: 0.88rem calc(0.88rem*2);\n padding: 0.88rem calc(0.88rem*2);\n}\n\n.rc-time-picker-panel .button-toggle{\n margin-left: 1rem;\n display: inline;\n cursor: pointer;\n border-radius: 0.3rem;\n font-size: 0.88rem;\n font-size: 0.88rem;\n font-weight: 600;\n font-weight: 600;\n text-transform: uppercase;\n color: #3ecf8e;\n color: #3ecf8e;\n color: #45b2e8;\n color: #45b2e8;\n background: #fcfcfc;\n border: 1px solid #efefef;\n border: 1px solid #efefef;\n padding: 0.88rem calc(0.88rem*2);\n padding: 0.88rem calc(0.88rem*2);\n}\n\n.keen-explorer .button-toggle i, .ReactModalPortal .button-toggle i, .rc-time-picker-panel .button-toggle i {\n margin-left: 1rem;\n }\n\n.keen-explorer .button-toggle-active, .ReactModalPortal .button-toggle-active, .rc-time-picker-panel .button-toggle-active {\n background: rgb(255, 255, 255);\n}\n\n.keen-explorer .result-string,.ReactModalPortal .result-string,.rc-time-picker-panel .result-string{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.keen-explorer .CalendarDay__selected {\n background: #00bbde;\n background: #00bbde;\n border: 1px double #00bbde;\n border: 1px double #00bbde;\n}\n\n.keen-explorer .CalendarDay__selected:active {\n background: #00bbde;\n background: #00bbde;\n border: 1px double #00bbde;\n border: 1px double #00bbde;\n}\n\n.keen-explorer .CalendarDay__selected:hover {\n background: #00bbde;\n background: #00bbde;\n border: 1px double #00bbde;\n border: 1px double #00bbde;\n}\n\n.ReactModalPortal .CalendarDay__selected {\n background: #00bbde;\n background: #00bbde;\n border: 1px double #00bbde;\n border: 1px double #00bbde;\n}\n\n.ReactModalPortal .CalendarDay__selected:active {\n background: #00bbde;\n background: #00bbde;\n border: 1px double #00bbde;\n border: 1px double #00bbde;\n}\n\n.ReactModalPortal .CalendarDay__selected:hover {\n background: #00bbde;\n background: #00bbde;\n border: 1px double #00bbde;\n border: 1px double #00bbde;\n}\n\n.rc-time-picker-panel .CalendarDay__selected {\n background: #00bbde;\n background: #00bbde;\n border: 1px double #00bbde;\n border: 1px double #00bbde;\n}\n\n.rc-time-picker-panel .CalendarDay__selected:active {\n background: #00bbde;\n background: #00bbde;\n border: 1px double #00bbde;\n border: 1px double #00bbde;\n}\n\n.rc-time-picker-panel .CalendarDay__selected:hover {\n background: #00bbde;\n background: #00bbde;\n border: 1px double #00bbde;\n border: 1px double #00bbde;\n}\n\n.keen-explorer .DayPickerKeyboardShortcuts_show__bottomRight::before{\n border-right: 33px solid #00bbde;\n border-right: 33px solid #00bbde;\n}\n\n.ReactModalPortal .DayPickerKeyboardShortcuts_show__bottomRight::before{\n border-right: 33px solid #00bbde;\n border-right: 33px solid #00bbde;\n}\n\n.rc-time-picker-panel .DayPickerKeyboardShortcuts_show__bottomRight::before{\n border-right: 33px solid #00bbde;\n border-right: 33px solid #00bbde;\n}\n\n.keen-explorer .DateInput_input__focused{\n border-bottom: 2px solid #00bbde;\n border-bottom: 2px solid #00bbde;\n}\n\n.ReactModalPortal .DateInput_input__focused{\n border-bottom: 2px solid #00bbde;\n border-bottom: 2px solid #00bbde;\n}\n\n.rc-time-picker-panel .DateInput_input__focused{\n border-bottom: 2px solid #00bbde;\n border-bottom: 2px solid #00bbde;\n}\n\n.keen-explorer .loading-spinner i, .ReactModalPortal .loading-spinner i, .rc-time-picker-panel .loading-spinner i {\n font-size: 1.5rem;\n }\n\n.keen-explorer .fa-spin, .ReactModalPortal .fa-spin, .rc-time-picker-panel .fa-spin {\n -webkit-animation: fa-spin 1s infinite linear;\n animation: fa-spin 1s infinite linear;\n}\n\n.keen-explorer .react-select-option,.ReactModalPortal .react-select-option,.rc-time-picker-panel .react-select-option{\n padding: 0.7rem 1rem;\n}\n\n.keen-explorer .react-json-view .string-value,.ReactModalPortal .react-json-view .string-value,.rc-time-picker-panel .react-json-view .string-value{\n word-break: break-word;\n }\n\n@media screen and (max-width: 1000px) {\n .keen-explorer{\n -ms-flex-direction: column;\n flex-direction: column;\n }\n .keen-explorer .panel{\n -webkit-box-shadow: none;\n box-shadow: none;\n min-width: none;\n }\n .keen-explorer .panel .panel-content{\n padding: 0 1rem;\n }\n .keen-explorer .result{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n }\n .keen-explorer .result .preview, .keen-explorer .result .lets-go{\n -ms-flex-order: 1;\n order: 1;\n }\n .keen-explorer .result .error{\n margin-bottom: 0;\n }\n .keen-explorer .result .button-run-query{\n -ms-flex-order: 0;\n order: 0;\n }\n .keen-explorer .result .button-toggle {\n -ms-flex-order: 3;\n order: 3;\n }\n .keen-explorer .result .saved-query{\n -ms-flex-order: 3;\n order: 3;\n }\n .keen-explorer .result .action-buttons{\n margin-bottom: 1rem;\n }\n .filters-container .delete{\n margin-top: 0.5rem;\n }\n}', '' ]); }, @@ -119794,69 +121197,9 @@ object-assign }, function(e, t, n) { 'use strict'; - (function(t, r) { - function o(e) { - var t = 'function' == typeof Map ? new Map() : void 0; - return (o = function(e) { - if ( - null === e || - ((n = e), - -1 === Function.toString.call(n).indexOf('[native code]')) - ) - return e; - var n; - if ('function' != typeof e) - throw new TypeError( - 'Super expression must either be null or a function' - ); - if (void 0 !== t) { - if (t.has(e)) return t.get(e); - t.set(e, r); - } - function r() { - return a(e, arguments, b(this).constructor); - } - return ( - (r.prototype = Object.create(e.prototype, { - constructor: { - value: r, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - v(r, e) - ); - })(e); - } - function i() { - if ('undefined' == typeof Reflect || !Reflect.construct) - return !1; - if (Reflect.construct.sham) return !1; - if ('function' == typeof Proxy) return !0; - try { - return ( - Date.prototype.toString.call( - Reflect.construct(Date, [], function() {}) - ), - !0 - ); - } catch (e) { - return !1; - } - } - function a(e, t, n) { - return (a = i() - ? Reflect.construct - : function(e, t, n) { - var r = [null]; - r.push.apply(r, t); - var o = new (Function.bind.apply(e, r))(); - return n && v(o, n.prototype), o; - }).apply(null, arguments); - } - function s(e) { - return (s = + (function(t) { + function r(e) { + return (r = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { @@ -119871,39 +121214,33 @@ object-assign : typeof e; })(e); } - function c(e, t) { + function o(e, t) { return ( (function(e) { if (Array.isArray(e)) return e; })(e) || (function(e, t) { - if ( - Symbol.iterator in Object(e) || - '[object Arguments]' === - Object.prototype.toString.call(e) - ) { - var n = [], - r = !0, - o = !1, - i = void 0; + var n = [], + r = !0, + o = !1, + i = void 0; + try { + for ( + var a, s = e[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !t || n.length !== t); + r = !0 + ); + } catch (e) { + (o = !0), (i = e); + } finally { try { - for ( - var a, s = e[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !t || n.length !== t); - r = !0 - ); - } catch (e) { - (o = !0), (i = e); + r || null == s.return || s.return(); } finally { - try { - r || null == s.return || s.return(); - } finally { - if (o) throw i; - } + if (o) throw i; } - return n; } + return n; })(e, t) || (function() { throw new TypeError( @@ -119912,7 +121249,7 @@ object-assign })() ); } - function u(e) { + function i(e) { return ( (function(e) { if (Array.isArray(e)) { @@ -119940,41 +121277,7 @@ object-assign })() ); } - function l(e, t) { - var n = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var r = Object.getOwnPropertySymbols(e); - t && - (r = r.filter(function(t) { - return Object.getOwnPropertyDescriptor(e, t).enumerable; - })), - n.push.apply(n, r); - } - return n; - } - function f(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}; - t % 2 - ? l(Object(n), !0).forEach(function(t) { - d(e, t, n[t]); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties( - e, - Object.getOwnPropertyDescriptors(n) - ) - : l(Object(n)).forEach(function(t) { - Object.defineProperty( - e, - t, - Object.getOwnPropertyDescriptor(n, t) - ); - }); - } - return e; - } - function d(e, t, n) { + function a(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { @@ -119987,11 +121290,7 @@ object-assign e ); } - function p(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function h(e, t) { + function s(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -120000,71 +121299,87 @@ object-assign Object.defineProperty(e, r.key, r); } } - function g(e, t) { - return !t || ('object' !== s(t) && 'function' != typeof t) - ? m(e) + function c(e, t) { + return !t || ('object' !== r(t) && 'function' != typeof t) + ? (function(e) { + if (void 0 === e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return e; + })(e) : t; } - function m(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return e; - } - function b(e) { - return (b = Object.setPrototypeOf + function u(e) { + return (u = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function y(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { value: e, writable: !0, configurable: !0 } - })), - t && v(e, t); - } - function v(e, t) { - return (v = + function l(e, t) { + return (l = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; })(e, t); } - var _ = n(147).Transform, - x = n(354), - w = t.from([239, 187, 191]), - M = (function(e) { + var f = n(341).Transform, + d = n(353), + p = t.from([239, 97, 191]), + h = (function(e) { function n() { var e, r = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; - p(this, n), - (e = g( + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, n), + (e = c( this, - b(n).call( + u(n).call( this, - f({}, { readableObjectMode: !0 }, {}, r) + (function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = + null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + 'function' == + typeof Object.getOwnPropertySymbols && + (r = r.concat( + Object.getOwnPropertySymbols(n).filter( + function(e) { + return Object.getOwnPropertyDescriptor( + n, + e + ).enumerable; + } + ) + )), + r.forEach(function(t) { + a(e, t, n[t]); + }); + } + return e; + })({}, { readableObjectMode: !0 }, r) ) )); var o = {}; - for (var i in r) o[A(i)] = r[i]; + for (var s in r) o[m(s)] = r[s]; if (void 0 === o.bom || null === o.bom || !1 === o.bom) o.bom = !1; else if (!0 !== o.bom) - throw new S('CSV_INVALID_OPTION_BOM', [ - 'Invalid option bom:', - 'bom must be true,', - 'got '.concat(JSON.stringify(o.bom)) - ]); - var a = null; + throw new Error( + 'Invalid Option: bom must be true, got '.concat( + JSON.stringify(o.bom) + ) + ); + var l = null; if ( void 0 === o.cast || null === o.cast || @@ -120073,13 +121388,11 @@ object-assign ) o.cast = void 0; else if ('function' == typeof o.cast) - (a = o.cast), (o.cast = !0); + (l = o.cast), (o.cast = !0); else if (!0 !== o.cast) - throw new S('CSV_INVALID_OPTION_CAST', [ - 'Invalid option cast:', - 'cast must be true or a function,', - 'got '.concat(JSON.stringify(o.cast)) - ]); + throw new Error( + 'Invalid Option: cast must be true or a function' + ); if ( void 0 === o.cast_date || null === o.cast_date || @@ -120093,28 +121406,26 @@ object-assign return isNaN(t) ? e : new Date(t); }; else if ('function' != typeof o.cast_date) - throw new S('CSV_INVALID_OPTION_CAST_DATE', [ - 'Invalid option cast_date:', - 'cast_date must be true or a function,', - 'got '.concat(JSON.stringify(o.cast_date)) - ]); - var s = null; - if (!0 === o.columns) s = void 0; + throw new Error( + 'Invalid Option: cast_date must be true or a function' + ); + var f = null; + if (!0 === o.columns) f = void 0; else if ('function' == typeof o.columns) - (s = o.columns), (o.columns = !0); + (f = o.columns), (o.columns = !0); else if (Array.isArray(o.columns)) - o.columns = T(o.columns); + o.columns = y(o.columns); else { if ( void 0 !== o.columns && null !== o.columns && !1 !== o.columns ) - throw new S('CSV_INVALID_OPTION_COLUMNS', [ - 'Invalid option columns:', - 'expect an object, a function or true,', - 'got '.concat(JSON.stringify(o.columns)) - ]); + throw new Error( + 'Invalid Option columns: expect an object or true, got '.concat( + JSON.stringify(o.columns) + ) + ); o.columns = !1; } if ( @@ -120129,34 +121440,35 @@ object-assign (o.comment = t.from(o.comment)), !t.isBuffer(o.comment)) ) - throw new S('CSV_INVALID_OPTION_COMMENT', [ - 'Invalid option comment:', - 'comment must be a buffer or a string,', - 'got '.concat(JSON.stringify(o.comment)) - ]); + throw new Error( + 'Invalid Option: comment must be a buffer or a string, got '.concat( + JSON.stringify(o.comment) + ) + ); if ( void 0 === o.delimiter || null === o.delimiter || !1 === o.delimiter ) o.delimiter = t.from(','); - else if ( - 'string' == typeof o.delimiter && - 0 !== o.delimiter.length - ) + else if (t.isBuffer(o.delimiter)) { + if (0 === o.delimiter.length) + throw new Error( + 'Invalid Option: delimiter must be a non empty buffer' + ); + } else { + if ('string' != typeof o.delimiter) + throw new Error( + 'Invalid Option: delimiter must be a string or a buffer, got '.concat( + o.delimiter + ) + ); + if (0 === o.delimiter.length) + throw new Error( + 'Invalid Option: delimiter must be a non empty string' + ); o.delimiter = t.from(o.delimiter); - else if ( - (t.isBuffer(o.delimiter) && 0 === o.delimiter.length) || - ('string' == typeof o.delimiter && - 0 === o.delimiter.length) || - (!t.isBuffer(o.delimiter) && - 'string' != typeof o.delimiter) - ) - throw new S('CSV_INVALID_OPTION_DELIMITER', [ - 'Invalid option delimiter:', - 'delimiter must be a non empty string or buffer,', - 'got '.concat(JSON.stringify(o.delimiter)) - ]); + } if ( (void 0 === o.escape || null === o.escape ? (o.escape = t.from('"')) @@ -120274,14 +121586,6 @@ object-assign 'Invalid Option: objname must be a non empty string' ); } - if (void 0 === o.on_record || null === o.on_record) - o.on_record = void 0; - else if ('function' != typeof o.on_record) - throw new S('CSV_INVALID_OPTION_ON_RECORD', [ - 'Invalid option `on_record`:', - 'expect a function,', - 'got '.concat(JSON.stringify(o.on_record)) - ]); if (null === o.quote || !1 === o.quote || '' === o.quote) o.quote = null; else { @@ -120347,32 +121651,6 @@ object-assign ); o.relax_column_count = !1; } - if ('boolean' == typeof o.relax_column_count_less); - else { - if ( - void 0 !== o.relax_column_count_less && - null !== o.relax_column_count_less - ) - throw new Error( - 'Invalid Option: relax_column_count_less must be a boolean, got '.concat( - JSON.stringify(o.relax_column_count_less) - ) - ); - o.relax_column_count_less = !1; - } - if ('boolean' == typeof o.relax_column_count_more); - else { - if ( - void 0 !== o.relax_column_count_more && - null !== o.relax_column_count_more - ) - throw new Error( - 'Invalid Option: relax_column_count_more must be a boolean, got '.concat( - JSON.stringify(o.relax_column_count_more) - ) - ); - o.relax_column_count_more = !1; - } if ('boolean' == typeof o.skip_empty_lines); else { if ( @@ -120504,21 +121782,20 @@ object-assign }), (e.options = o), (e.state = { - bomSkipped: !1, - castField: a, + castField: l, commenting: !1, enabled: 1 === o.from_line, escaping: !1, escapeIsQuote: o.escape === o.quote, expectedRecordLength: null === o.columns ? 0 : o.columns.length, - field: new x(20), - firstLineToHeaders: s, + field: new d(20), + firstLineToHeaders: f, info: Object.assign({}, e.info), previousBuf: void 0, quoting: !1, stop: !1, - rawBuffer: new x(100), + rawBuffer: new d(100), record: [], recordHasError: !1, record_length: 0, @@ -120527,7 +121804,7 @@ object-assign ? 2 : Math.max.apply( Math, - u( + i( o.record_delimiter.map(function(e) { return e.length; }) @@ -120540,11 +121817,24 @@ object-assign e ); } - var r, o, i; + var r, f, h; return ( - y(n, e), + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + writable: !0, + configurable: !0 + } + })), + t && l(e, t); + })(n, e), (r = n), - (o = [ + (f = [ { key: '_transform', value: function(e, t, n) { @@ -120569,45 +121859,37 @@ object-assign i = o.bom, a = o.comment, s = o.escape, - c = o.from_line, + c = (o.from, o.from_line), u = o.info, l = o.ltrim, f = o.max_record_size, d = o.quote, - p = o.raw, - h = o.relax, - g = o.rtrim, - m = o.skip_empty_lines, - b = o.to, - y = o.to_line, - v = this.options.record_delimiter, - _ = this.state, - x = _.bomSkipped, - M = _.previousBuf, - k = _.rawBuffer, - A = _.escapeIsQuote; - if (void 0 === M) { + h = o.raw, + g = o.relax, + m = o.rtrim, + b = o.skip_empty_lines, + y = o.to, + v = o.to_line, + _ = this.options.record_delimiter, + w = this.state, + x = w.previousBuf, + M = w.rawBuffer, + k = w.escapeIsQuote; + if ((w.trimChars, void 0 === x)) { if (void 0 === e) return void this.push(null); - r = e; + r = + !0 === i && p.compare(e, 0, 3) ? e.slice(3) : e; } else r = - void 0 !== M && void 0 === e - ? M - : t.concat([M, e]); - if (!1 === x) - if (!1 === i) this.state.bomSkipped = !0; - else if (r.length < 3) { - if (!1 === n) - return void (this.state.previousBuf = r); - } else - 0 === w.compare(r, 0, 3) && (r = r.slice(3)), - (this.state.bomSkipped = !0); - var O, - E = r.length; + void 0 !== x && void 0 === e + ? x + : t.concat([x, e]); + var S, + O = r.length; for ( - O = 0; - O < E && !this.__needMoreData(O, E, n); - O++ + S = 0; + S < O && !this.__needMoreData(S, O, n); + S++ ) { if ( (!0 === this.state.wasRowDelimiter && @@ -120621,19 +121903,19 @@ object-assign this.info )), (this.state.wasRowDelimiter = !1)), - -1 !== y && this.info.lines > y) + -1 !== v && this.info.lines > v) ) return ( (this.state.stop = !0), void this.push(null) ); !1 === this.state.quoting && - 0 === v.length && - this.__autoDiscoverRowDelimiter(r, O) && - (v = this.options.record_delimiter); - var T = r[O]; + 0 === _.length && + this.__autoDiscoverRowDelimiter(r, S) && + (_ = this.options.record_delimiter); + var E = r[S]; if ( - (!0 === p && k.append(T), - (13 !== T && 10 !== T) || + (!0 === h && M.append(E), + (13 !== E && 10 !== E) || !1 !== this.state.wasRowDelimiter || (this.state.wasRowDelimiter = !0), !0 === this.state.escaping) @@ -120642,64 +121924,57 @@ object-assign else { if ( !0 === this.state.quoting && - T === s && - O + 1 < E + E === s && + S + 1 < O ) { - if (!A) { + if (!k) { this.state.escaping = !0; continue; } - if (r[O + 1] === d) { + if (r[S + 1] === d) { this.state.escaping = !0; continue; } } - if (!1 === this.state.commenting && T === d) + if (!1 === this.state.commenting && E === d) if (!0 === this.state.quoting) { - var C = r[O + 1], - L = g && this.__isCharTrimable(C), - P = + var A = r[S + 1], + T = m && this.__isCharTrimable(A), + C = null !== a && - this.__compareBytes(a, r, O + 1, C), - D = this.__isDelimiter(C, r, O + 1), - z = - 0 === v.length + this.__compareBytes(a, r, S + 1, A), + L = this.__isDelimiter(A, r, S + 1), + P = + 0 === _.length ? this.__autoDiscoverRowDelimiter( r, - O + 1 + S + 1 ) : this.__isRecordDelimiter( - C, + A, r, - O + 1 + S + 1 ); - if (T === s && C === d) O++; + if (E === s && A === d) S++; else { - if (!C || D || z || P || L) { + if (!A || L || P || C || T) { (this.state.quoting = !1), (this.state.wasQuoting = !0); continue; } - if (!1 === h) { - var N = this.__error( - new S( - 'CSV_INVALID_CLOSING_QUOTE', - [ - 'Invalid Closing Quote:', - 'got "'.concat( - String.fromCharCode(C), - '"' - ), - 'at line '.concat( - this.info.lines - ), - 'instead of delimiter, row delimiter, trimable character', - '(if activated) or comment' - ], - this.__context() - ) + if (!1 === g) { + var D = this.__error( + 'Invalid Closing Quote: got "' + .concat( + String.fromCharCode(A), + '" at line ' + ) + .concat( + this.info.lines, + ' instead of delimiter, row delimiter, trimable character (if activated) or comment' + ) ); - if (void 0 !== N) return N; + if (void 0 !== D) return D; } else (this.state.quoting = !1), (this.state.wasQuoting = !0), @@ -120710,26 +121985,18 @@ object-assign this.state.quoting = !0; continue; } - if (!1 === h) { + if (!1 === g) { var j = this.__error( - new S( - 'INVALID_OPENING_QUOTE', - [ - 'Invalid Opening Quote:', - 'a quote is found inside a field at line '.concat( - this.info.lines - ) - ], - this.__context(), - { field: this.state.field } + 'Invalid opening quote at line '.concat( + this.info.lines ) ); if (void 0 !== j) return j; } } if (!1 === this.state.quoting) { - var R = this.__isRecordDelimiter(T, r, O); - if (0 !== R) { + var z = this.__isRecordDelimiter(E, r, S); + if (0 !== z) { if ( this.state.commenting && !1 === this.state.wasQuoting && @@ -120739,12 +122006,12 @@ object-assign this.info.comment_lines++; else { if ( - !0 === m && + !0 === b && !1 === this.state.wasQuoting && 0 === this.state.record.length && 0 === this.state.field.length ) { - this.info.empty_lines++, (O += R - 1); + this.info.empty_lines++, (S += z - 1); continue; } if ( @@ -120758,20 +122025,20 @@ object-assign (this.state.enabled = !0), this.__resetField(), this.__resetRow(), - (O += R - 1); + (S += z - 1); continue; } - var I = this.__onField(); - if (void 0 !== I) return I; - var F = this.__onRow(); - if (void 0 !== F) return F; - if (-1 !== b && this.info.records >= b) + var N = this.__onField(); + if (void 0 !== N) return N; + var R = this.__onRow(); + if (void 0 !== R) return R; + if (-1 !== y && this.info.records >= y) return ( (this.state.stop = !0), void this.push(null) ); } - (this.state.commenting = !1), (O += R - 1); + (this.state.commenting = !1), (S += z - 1); continue; } if (this.state.commenting) continue; @@ -120779,16 +122046,16 @@ object-assign 0 !== (null === a ? 0 - : this.__compareBytes(a, r, O, T)) + : this.__compareBytes(a, r, S, E)) ) { this.state.commenting = !0; continue; } - var q = this.__isDelimiter(T, r, O); - if (0 !== q) { - var B = this.__onField(); - if (void 0 !== B) return B; - O += q - 1; + var I = this.__isDelimiter(E, r, S); + if (0 !== I) { + var F = this.__onField(); + if (void 0 !== F) return F; + S += I - 1; continue; } } @@ -120800,73 +122067,53 @@ object-assign this.state.field.length > f ) { - var H = this.__error( - new S( - 'CSV_MAX_RECORD_SIZE', - [ - 'Max Record Size:', - 'record exceed the maximum number of tolerated bytes', - 'of '.concat(f), - 'at line '.concat(this.info.lines) - ], - this.__context() - ) + var q = this.__error( + 'Max Record Size: record exceed the maximum number of tolerated bytes of ' + .concat(f, ' on line ') + .concat(this.info.lines) ); - if (void 0 !== H) return H; + if (void 0 !== q) return q; } - var Y = + var B = !1 === l || !0 === this.state.quoting || 0 !== this.state.field.length || - !this.__isCharTrimable(T), - W = !1 === g || !1 === this.state.wasQuoting; - if (!0 === Y && !0 === W) - this.state.field.append(T); - else if (!0 === g && !this.__isCharTrimable(T)) { - var V = this.__error( - new S( - 'CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE', - [ - 'Invalid Closing Quote:', - 'found non trimable byte after quote', - 'at line '.concat(this.info.lines) - ], - this.__context() + !this.__isCharTrimable(E), + H = !1 === m || !1 === this.state.wasQuoting; + if (!0 === B && !0 === H) + this.state.field.append(E); + else if (!0 === m && !this.__isCharTrimable(E)) { + var Y = this.__error( + 'Invalid Closing Quote: found non trimable byte after quote at line '.concat( + this.info.lines ) ); - if (void 0 !== V) return V; + if (void 0 !== Y) return Y; } } if (!0 === n) if (!0 === this.state.quoting) { - var U = this.__error( - new S( - 'CSV_QUOTE_NOT_CLOSED', - [ - 'Quote Not Closed:', - 'the parsing is finished with an opening quote at line '.concat( - this.info.lines - ) - ], - this.__context() + var W = this.__error( + 'Invalid Closing Quote: quote is not closed at line '.concat( + this.info.lines ) ); - if (void 0 !== U) return U; + if (void 0 !== W) return W; } else if ( !0 === this.state.wasQuoting || 0 !== this.state.record.length || 0 !== this.state.field.length ) { - var X = this.__onField(); - if (void 0 !== X) return X; - var G = this.__onRow(); - if (void 0 !== G) return G; + var V = this.__onField(); + if (void 0 !== V) return V; + var U = this.__onRow(); + if (void 0 !== U) return U; } else !0 === this.state.wasRowDelimiter ? this.info.empty_lines++ : !0 === this.state.commenting && this.info.comment_lines++; - else this.state.previousBuf = r.slice(O); + else this.state.previousBuf = r.slice(S); !0 === this.state.wasRowDelimiter && (this.info.lines++, (this.state.wasRowDelimiter = !1)); @@ -120886,74 +122133,50 @@ object-assign n = e.info, r = e.from, o = e.relax_column_count, - i = e.relax_column_count_less, - a = e.relax_column_count_more, - s = e.raw, - c = e.skip_lines_with_empty_values, - u = this.state, - l = u.enabled, - f = u.record; - if (!1 === l) return this.__resetRow(); - var d = f.length; - if (!0 === t) - return E(f) - ? void this.__resetRow() - : this.__firstLineToColumns(f); - if ( - (!1 === t && - 0 === this.info.records && - (this.state.expectedRecordLength = d), - d !== this.state.expectedRecordLength) + i = e.raw, + a = e.skip_lines_with_empty_values, + s = this.state, + c = s.enabled, + u = s.record; + if (!0 === t) return this.__firstLineToColumns(u); + var l = u.length; + if (!1 === t && 0 === this.info.records) + this.state.expectedRecordLength = l; + else if ( + !0 === c && + l !== this.state.expectedRecordLength ) - if ( - !0 === o || - (!0 === i && - d < this.state.expectedRecordLength) || - (!0 === a && - d > this.state.expectedRecordLength) - ) - this.info.invalid_field_length++; + if (!0 === o) this.info.invalid_field_length++; else if (!1 === t) { - var p = this.__error( - new S( - 'CSV_INCONSISTENT_RECORD_LENGTH', - [ - 'Invalid Record Length:', - 'expect '.concat( - this.state.expectedRecordLength, - ',' - ), - 'got ' - .concat(d, ' on line ') - .concat(this.info.lines) - ], - this.__context(), - { record: f } - ) + var f = this.__error( + 'Invalid Record Length: expect ' + .concat( + this.state.expectedRecordLength, + ', got ' + ) + .concat(l, ' on line ') + .concat(this.info.lines) ); - if (void 0 !== p) return p; + if (void 0 !== f) return f; } else { - var h = this.__error( - new S( - 'CSV_RECORD_DONT_MATCH_COLUMNS_LENGTH', - [ - 'Invalid Record Length:', - 'columns length is '.concat( - t.length, - ',' - ), - 'got ' - .concat(d, ' on line ') - .concat(this.info.lines) - ], - this.__context(), - { record: f } - ) + var d = this.__error( + 'Invalid Record Length: header length is ' + .concat(t.length, ', got ') + .concat(l, ' on line ') + .concat(this.info.lines) ); - if (void 0 !== h) return h; + if (void 0 !== d) return d; } - if (!0 === c && E(f)) this.__resetRow(); - else { + if (!1 === c) return this.__resetRow(); + if ( + !0 !== a || + '' !== + u + .map(function(e) { + return e.trim(); + }) + .join('') + ) { if (!0 === this.state.recordHasError) return ( this.__resetRow(), @@ -120964,18 +122187,33 @@ object-assign 1 === r || this.info.records >= r) ) if (!1 !== t) { - var g = {}; - for (var m in f) - void 0 === t[m] || - t[m].disabled || - (g[t[m].name] = f[m]); - var b = this.options.objname; - if (void 0 === b) - if (!0 === s || !0 === n) { - var y = this.__push( + var p = {}; + for (var h in u) + void 0 === t[h] || + t[h].disabled || + (p[t[h].name] = u[h]); + var g = this.options.objname; + void 0 === g + ? !0 === i || !0 === n + ? this.push( + Object.assign( + { record: p }, + !0 === i + ? { + raw: this.state.rawBuffer.toString() + } + : {}, + !0 === n + ? { info: this.state.info } + : {} + ) + ) + : this.push(p) + : !0 === i || !0 === n + ? this.push( Object.assign( - { record: g }, - !0 === s + { record: [p[g], p] }, + !0 === i ? { raw: this.state.rawBuffer.toString() } @@ -120984,50 +122222,26 @@ object-assign ? { info: this.state.info } : {} ) - ); - if (y) return y; - } else { - var v = this.__push(g); - if (v) return v; - } - else if (!0 === s || !0 === n) { - var _ = this.__push( - Object.assign( - { record: [g[b], g] }, - !0 === s - ? { - raw: this.state.rawBuffer.toString() - } - : {}, - !0 === n - ? { info: this.state.info } - : {} ) - ); - if (_) return _; - } else { - var x = this.__push([g[b], g]); - if (x) return x; - } - } else if (!0 === s || !0 === n) { - var w = this.__push( - Object.assign( - { record: f }, - !0 === s - ? { - raw: this.state.rawBuffer.toString() - } - : {}, - !0 === n ? { info: this.state.info } : {} - ) - ); - if (w) return w; - } else { - var M = this.__push(f); - if (M) return M; - } + : this.push([p[g], p]); + } else + !0 === i || !0 === n + ? this.push( + Object.assign( + { record: u }, + !0 === i + ? { + raw: this.state.rawBuffer.toString() + } + : {}, + !0 === n + ? { info: this.state.info } + : {} + ) + ) + : this.push(u); this.__resetRow(); - } + } else this.__resetRow(); } }, { @@ -121038,18 +122252,11 @@ object-assign var n = void 0 === t ? e : t.call(null, e); if (!Array.isArray(n)) return this.__error( - new S( - 'CSV_INVALID_COLUMN_MAPPING', - [ - 'Invalid Column Mapping:', - 'expect an array from column function,', - 'got '.concat(JSON.stringify(n)) - ], - this.__context(), - { headers: n } + 'Invalid Header Mapping: expect an array, got '.concat( + JSON.stringify(n) ) ); - var r = T(n); + var r = y(n); return ( (this.state.expectedRecordLength = r.length), (this.options.columns = r), @@ -121063,8 +122270,9 @@ object-assign { key: '__resetRow', value: function() { - !0 === this.options.raw && - this.state.rawBuffer.reset(), + this.options.info, + !0 === this.options.raw && + this.state.rawBuffer.reset(), (this.state.record = []), (this.state.record_length = 0); } @@ -121076,25 +122284,26 @@ object-assign t = e.cast, n = e.rtrim, r = e.max_record_size, - o = this.state, - i = o.enabled, - a = o.wasQuoting; - if (!1 === i) return this.__resetField(); - var s = this.state.field.toString(); + i = this.state, + a = i.enabled, + s = i.wasQuoting; + if (!0 !== this.options.columns && !1 === a) + return this.__resetField(); + var c = this.state.field.toString(); if ( - (!0 === n && !1 === a && (s = s.trimRight()), + (!0 === n && !1 === s && (c = c.trimRight()), !0 === t) ) { - var u = c(this.__cast(s), 2), + var u = o(this.__cast(c), 2), l = u[0], f = u[1]; if (void 0 !== l) return l; - s = f; + c = f; } - this.state.record.push(s), + this.state.record.push(c), 0 !== r && - 'string' == typeof s && - (this.state.record_length += s.length), + 'string' == typeof c && + (this.state.record_length += c.length), this.__resetField(); } }, @@ -121105,55 +122314,59 @@ object-assign (this.state.wasQuoting = !1); } }, - { - key: '__push', - value: function(e) { - var t = this.options.on_record; - if (void 0 !== t) { - var n = this.__context(); - try { - e = t.call(null, e, n); - } catch (e) { - return e; - } - if (null == e) return; - } - this.push(e); - } - }, { key: '__cast', value: function(e) { - var t = this.options, - n = t.columns, - r = t.relax_column_count; + var t = Array.isArray(this.options.columns); if ( - !0 === Array.isArray(n) && - r && + !0 === t && this.options.columns.length <= this.state.record.length ) return [void 0, void 0]; - var o = this.__context(); + var n = { + column: + !0 === t + ? this.options.columns[ + this.state.record.length + ].name + : this.state.record.length, + empty_lines: this.info.empty_lines, + header: !0 === this.options.columns, + index: this.state.record.length, + invalid_field_length: this.info + .invalid_field_length, + quoting: this.state.wasQuoting, + lines: this.info.lines, + records: this.info.records + }; if (null !== this.state.castField) try { return [ void 0, - this.state.castField.call(null, e, o) + this.state.castField.call(null, e, n) ]; } catch (e) { return [e]; } - return this.__isFloat(e) + return !0 === this.__isInt(e) + ? [void 0, parseInt(e)] + : this.__isFloat(e) ? [void 0, parseFloat(e)] : !1 !== this.options.cast_date ? [ void 0, - this.options.cast_date.call(null, e, o) + this.options.cast_date.call(null, e, n) ] : [void 0, e]; } }, + { + key: '__isInt', + value: function(e) { + return /^(\-|\+)?([1-9]+[0-9]*)$/.test(e); + } + }, { key: '__isFloat', value: function(e) { @@ -121176,7 +122389,7 @@ object-assign var r = this.options, o = r.comment, i = r.delimiter, - a = this.state, + a = (r.escape, this.state), s = a.quoting, c = a.recordDelimiterMaxLength; return ( @@ -121248,162 +122461,283 @@ object-assign key: '__error', value: function(e) { var t = this.options.skip_lines_with_error, - n = 'string' == typeof e ? new Error(e) : e; + n = new Error(e); return t ? ((this.state.recordHasError = !0), void this.emit('skip', n)) : n; } - }, - { - key: '__context', - value: function() { - var e = this.options.columns; - return { - column: - !0 === Array.isArray(e) - ? e.length > this.state.record.length - ? e[this.state.record.length].name - : null - : this.state.record.length, - empty_lines: this.info.empty_lines, - header: !0 === e, - index: this.state.record.length, - invalid_field_length: this.info - .invalid_field_length, - quoting: this.state.wasQuoting, - lines: this.info.lines, - records: this.info.records - }; - } } - ]) && h(r.prototype, o), - i && h(r, i), + ]) && s(r.prototype, f), + h && s(r, h), n ); - })(_), - k = function() { + })(f), + g = function() { var e, n, o; for (var i in arguments) { var a = arguments[i], - c = s(a); + s = r(a); if ( void 0 !== e || ('string' != typeof a && !t.isBuffer(a)) ) - if (void 0 === n && O(a)) n = a; + if (void 0 === n && b(a)) n = a; else { - if (void 0 !== o || 'function' !== c) - throw new S('CSV_INVALID_ARGUMENT', [ - 'Invalid argument:', - 'got ' + if (void 0 !== o || 'function' !== s) + throw new Error( + 'Invalid argument: got ' .concat(JSON.stringify(a), ' at index ') .concat(i) - ]); + ); o = a; } else e = a; } - var u = new M(n); + var c = new h(n); if (o) { - var l = void 0 === n || void 0 === n.objname ? [] : {}; - u.on('readable', function() { - for (var e; null !== (e = this.read()); ) + var u = void 0 === n || void 0 === n.objname ? [] : {}; + c.on('readable', function() { + for (var e; (e = this.read()); ) void 0 === n || void 0 === n.objname - ? l.push(e) - : (l[e[0]] = e[1]); + ? u.push(e) + : (u[e[0]] = e[1]); }), - u.on('error', function(e) { - o(e, void 0, u.info); + c.on('error', function(e) { + o(e, void 0, c.info); }), - u.on('end', function() { - o(void 0, l, u.info); + c.on('end', function() { + o(void 0, u, c.info); }); } - return ( - void 0 !== e && - r(function() { - u.write(e), u.end(); - }), - u - ); - }, - S = (function(e) { - function n(e, r) { - var o; - p(this, n), - Array.isArray(r) && (r = r.join(' ')), - (o = g(this, b(n).call(this, r))), - void 0 !== Error.captureStackTrace && - Error.captureStackTrace(m(o), n), - (o.code = e); - for ( - var i = arguments.length, - a = new Array(i > 2 ? i - 2 : 0), - s = 2; - s < i; - s++ - ) - a[s - 2] = arguments[s]; - for (var c = 0, u = a; c < u.length; c++) { - var l = u[c]; - for (var f in l) { - var d = l[f]; - o[f] = t.isBuffer(d) - ? d.toString() - : null == d - ? d - : JSON.parse(JSON.stringify(d)); - } - } - return o; - } - return y(n, e), n; - })(o(Error)); - (k.Parser = M), (k.CsvError = S), (e.exports = k); - var A = function(e) { - return e.replace(/([A-Z])/g, function(e, t) { + return void 0 !== e && (c.write(e), c.end()), c; + }; + (g.Parser = h), (e.exports = g); + var m = function(e) { + return e.replace(/([A-Z])/g, function(e, t, n) { return '_' + t.toLowerCase(); }); }, - O = function(e) { - return 'object' === s(e) && null !== e && !Array.isArray(e); - }, - E = function(e) { - return e.every(function(e) { - return ( - null == e || (e.toString && '' === e.toString().trim()) - ); - }); + b = function(e) { + return 'object' === r(e) && null !== e && !Array.isArray(e); }, - T = function(e) { + y = function(e) { for (var t = [], n = 0; n < e.length; n++) { var r = e[n]; if (null == r || !1 === r) t[n] = { disabled: !0 }; else if ('string' == typeof r) t[n] = { name: r }; else { - if (!O(r)) - throw new S('CSV_INVALID_COLUMN_DEFINITION', [ - 'Invalid column definition:', - 'expect a string or a literal object,', - 'got ' + if (!b(r)) + throw new Error( + 'Invalid Option columns: expect a string or an object, got ' .concat(JSON.stringify(r), ' at position ') .concat(n) - ]); + ); if ('string' != typeof r.name) - throw new S('CSV_OPTION_COLUMNS_MISSING_NAME', [ - 'Option columns missing name:', - 'property "name" is required at position '.concat( - n - ), - 'when column is an object literal' - ]); + throw new Error( + 'Invalid Option columns: property "name" is required at position '.concat( + n, + ' when column is an object literal' + ) + ); t[n] = r; } } return t; }; - }.call(this, n(51).Buffer, n(146).setImmediate)); + }.call(this, n(55).Buffer)); + }, + function(e, t, n) { + e.exports = o; + var r = n(107).EventEmitter; + function o() { + r.call(this); + } + n(50)(o, r), + (o.Readable = n(108)), + (o.Writable = n(349)), + (o.Duplex = n(350)), + (o.Transform = n(351)), + (o.PassThrough = n(352)), + (o.Stream = o), + (o.prototype.pipe = function(e, t) { + var n = this; + function o(t) { + e.writable && !1 === e.write(t) && n.pause && n.pause(); + } + function i() { + n.readable && n.resume && n.resume(); + } + n.on('data', o), + e.on('drain', i), + e._isStdio || + (t && !1 === t.end) || + (n.on('end', s), n.on('close', c)); + var a = !1; + function s() { + a || ((a = !0), e.end()); + } + function c() { + a || + ((a = !0), 'function' == typeof e.destroy && e.destroy()); + } + function u(e) { + if ((l(), 0 === r.listenerCount(this, 'error'))) throw e; + } + function l() { + n.removeListener('data', o), + e.removeListener('drain', i), + n.removeListener('end', s), + n.removeListener('close', c), + n.removeListener('error', u), + e.removeListener('error', u), + n.removeListener('end', l), + n.removeListener('close', l), + e.removeListener('close', l); + } + return ( + n.on('error', u), + e.on('error', u), + n.on('end', l), + n.on('close', l), + e.on('close', l), + e.emit('pipe', n), + e + ); + }); + }, + function(e, t) {}, + function(e, t, n) { + 'use strict'; + var r = n(77).Buffer, + o = n(344); + (e.exports = (function() { + function e() { + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, e), + (this.head = null), + (this.tail = null), + (this.length = 0); + } + return ( + (e.prototype.push = function(e) { + var t = { data: e, next: null }; + this.length > 0 ? (this.tail.next = t) : (this.head = t), + (this.tail = t), + ++this.length; + }), + (e.prototype.unshift = function(e) { + var t = { data: e, next: this.head }; + 0 === this.length && (this.tail = t), + (this.head = t), + ++this.length; + }), + (e.prototype.shift = function() { + if (0 !== this.length) { + var e = this.head.data; + return ( + 1 === this.length + ? (this.head = this.tail = null) + : (this.head = this.head.next), + --this.length, + e + ); + } + }), + (e.prototype.clear = function() { + (this.head = this.tail = null), (this.length = 0); + }), + (e.prototype.join = function(e) { + if (0 === this.length) return ''; + for (var t = this.head, n = '' + t.data; (t = t.next); ) + n += e + t.data; + return n; + }), + (e.prototype.concat = function(e) { + if (0 === this.length) return r.alloc(0); + if (1 === this.length) return this.head.data; + for ( + var t, + n, + o, + i = r.allocUnsafe(e >>> 0), + a = this.head, + s = 0; + a; + + ) + (t = a.data), + (n = i), + (o = s), + t.copy(n, o), + (s += a.data.length), + (a = a.next); + return i; + }), + e + ); + })()), + o && + o.inspect && + o.inspect.custom && + (e.exports.prototype[o.inspect.custom] = function() { + var e = o.inspect({ length: this.length }); + return this.constructor.name + ' ' + e; + }); + }, + function(e, t) {}, + function(e, t, n) { + (function(e) { + var r = + (void 0 !== e && e) || + ('undefined' != typeof self && self) || + window, + o = Function.prototype.apply; + function i(e, t) { + (this._id = e), (this._clearFn = t); + } + (t.setTimeout = function() { + return new i(o.call(setTimeout, r, arguments), clearTimeout); + }), + (t.setInterval = function() { + return new i( + o.call(setInterval, r, arguments), + clearInterval + ); + }), + (t.clearTimeout = t.clearInterval = function(e) { + e && e.close(); + }), + (i.prototype.unref = i.prototype.ref = function() {}), + (i.prototype.close = function() { + this._clearFn.call(r, this._id); + }), + (t.enroll = function(e, t) { + clearTimeout(e._idleTimeoutId), (e._idleTimeout = t); + }), + (t.unenroll = function(e) { + clearTimeout(e._idleTimeoutId), (e._idleTimeout = -1); + }), + (t._unrefActive = t.active = function(e) { + clearTimeout(e._idleTimeoutId); + var t = e._idleTimeout; + t >= 0 && + (e._idleTimeoutId = setTimeout(function() { + e._onTimeout && e._onTimeout(); + }, t)); + }), + n(346), + (t.setImmediate = + ('undefined' != typeof self && self.setImmediate) || + (void 0 !== e && e.setImmediate) || + (this && this.setImmediate)), + (t.clearImmediate = + ('undefined' != typeof self && self.clearImmediate) || + (void 0 !== e && e.clearImmediate) || + (this && this.clearImmediate)); + }.call(this, n(26))); }, function(e, t, n) { (function(e, t) { @@ -121503,22 +122837,22 @@ object-assign try { !(function(e) { var t = e.callback, - n = e.args; - switch (n.length) { + r = e.args; + switch (r.length) { case 0: t(); break; case 1: - t(n[0]); + t(r[0]); break; case 2: - t(n[0], n[1]); + t(r[0], r[1]); break; case 3: - t(n[0], n[1], n[2]); + t(r[0], r[1], r[2]); break; default: - t.apply(void 0, n); + t.apply(n, r); } })(t); } finally { @@ -121530,90 +122864,8 @@ object-assign })( 'undefined' == typeof self ? (void 0 === e ? this : e) : self ); - }.call(this, n(22), n(52))); - }, - function(e, t) {}, - function(e, t, n) { - 'use strict'; - var r = n(77).Buffer, - o = n(347); - (e.exports = (function() { - function e() { - !(function(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - })(this, e), - (this.head = null), - (this.tail = null), - (this.length = 0); - } - return ( - (e.prototype.push = function(e) { - var t = { data: e, next: null }; - this.length > 0 ? (this.tail.next = t) : (this.head = t), - (this.tail = t), - ++this.length; - }), - (e.prototype.unshift = function(e) { - var t = { data: e, next: this.head }; - 0 === this.length && (this.tail = t), - (this.head = t), - ++this.length; - }), - (e.prototype.shift = function() { - if (0 !== this.length) { - var e = this.head.data; - return ( - 1 === this.length - ? (this.head = this.tail = null) - : (this.head = this.head.next), - --this.length, - e - ); - } - }), - (e.prototype.clear = function() { - (this.head = this.tail = null), (this.length = 0); - }), - (e.prototype.join = function(e) { - if (0 === this.length) return ''; - for (var t = this.head, n = '' + t.data; (t = t.next); ) - n += e + t.data; - return n; - }), - (e.prototype.concat = function(e) { - if (0 === this.length) return r.alloc(0); - if (1 === this.length) return this.head.data; - for ( - var t, - n, - o, - i = r.allocUnsafe(e >>> 0), - a = this.head, - s = 0; - a; - - ) - (t = a.data), - (n = i), - (o = s), - t.copy(n, o), - (s += a.data.length), - (a = a.next); - return i; - }), - e - ); - })()), - o && - o.inspect && - o.inspect.custom && - (e.exports.prototype[o.inspect.custom] = function() { - var e = o.inspect({ length: this.length }); - return this.constructor.name + ' ' + e; - }); + }.call(this, n(26), n(75))); }, - function(e, t) {}, function(e, t, n) { (function(t) { function n(e) { @@ -121639,18 +122891,18 @@ object-assign return e.apply(this, arguments); }; }; - }.call(this, n(22))); + }.call(this, n(26))); }, function(e, t, n) { 'use strict'; e.exports = i; - var r = n(152), - o = n(57); + var r = n(150), + o = n(56); function i(e) { if (!(this instanceof i)) return new i(e); r.call(this, e); } - (o.inherits = n(42)), + (o.inherits = n(50)), o.inherits(i, r), (i.prototype._transform = function(e, t, n) { n(null, e); @@ -121660,7 +122912,7 @@ object-assign e.exports = n(109); }, function(e, t, n) { - e.exports = n(43); + e.exports = n(42); }, function(e, t, n) { e.exports = n(108).Transform; @@ -121672,10 +122924,6 @@ object-assign 'use strict'; (function(t) { function n(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function r(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -121684,21 +122932,26 @@ object-assign Object.defineProperty(e, r.key, r); } } - var o = (function() { + var r = (function() { function e() { - var r = + var n = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 100; - n(this, e), - (this.size = r), + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, e), + (this.size = n), (this.length = 0), - (this.buf = t.alloc(r)); + (this.buf = t.alloc(n)); } - var o, i, a; + var r, o, i; return ( - (o = e), - (i = [ + (r = e), + (o = [ { key: 'prepend', value: function(e) { @@ -121736,31 +122989,25 @@ object-assign return this.buf.slice(0, this.length).toString(); } }, - { - key: 'toJSON', - value: function() { - return this.toString(); - } - }, { key: 'reset', value: function() { this.length = 0; } } - ]) && r(o.prototype, i), - a && r(o, a), + ]) && n(r.prototype, o), + i && n(r, i), e ); })(); - e.exports = o; - }.call(this, n(51).Buffer)); + e.exports = r; + }.call(this, n(55).Buffer)); }, function(e, t, n) { 'use strict'; var r; (0, - ((r = n(356)) && r.__esModule ? r : { default: r }).default)(); + ((r = n(355)) && r.__esModule ? r : { default: r }).default)(); }, function(e, t, n) { 'use strict'; @@ -121768,22 +123015,22 @@ object-assign (t.default = function() { (0, o.default)(r.default); }); - var r = i(n(357)), - o = i(n(378)); + var r = i(n(356)), + o = i(n(377)); function i(e) { return e && e.__esModule ? e : { default: e }; } }, function(e, t, n) { - e.exports = n(358).default; + e.exports = n(357).default; }, function(e, t, n) { Object.defineProperty(t, '__esModule', { value: !0 }); - var r = c(n(359)), - o = c(n(374)), - i = n(375), - a = c(n(376)), - s = c(n(377)); + var r = c(n(358)), + o = c(n(373)), + i = n(374), + a = c(n(375)), + s = c(n(376)); function c(e) { return e && e.__esModule ? e : { default: e }; } @@ -121824,10 +123071,10 @@ object-assign 'use strict'; var r = n(110), o = n(78), - i = n(154), - a = n(162), + i = n(152), + a = n(160), s = a(), - c = n(373), + c = n(372), u = o.call(Function.call, s); r(u, { getPolyfill: a, implementation: i, shim: c }), (e.exports = u); @@ -121837,7 +123084,7 @@ object-assign var r = Object.prototype.hasOwnProperty, o = Object.prototype.toString, i = Array.prototype.slice, - a = n(361), + a = n(360), s = Object.prototype.propertyIsEnumerable, c = !s.call({ toString: null }, 'toString'), u = s.call(function() {}, 'prototype'), @@ -122025,7 +123272,7 @@ object-assign }, function(e, t, n) { 'use strict'; - var r = n(365), + var r = n(364), o = n(113), i = o(o({}, r), { ToIndex: function(e) { @@ -122044,7 +123291,7 @@ object-assign }, function(e, t, n) { 'use strict'; - var r = n(366), + var r = n(365), o = n(113), i = o(o({}, r), { SameValueNonNumber: function(e, t) { @@ -122060,8 +123307,8 @@ object-assign function(e, t, n) { 'use strict'; var r = n(111), - o = n(367), - i = n(157), + o = n(366), + i = n(155), a = i('%TypeError%'), s = i('%SyntaxError%'), c = i('%Array%'), @@ -122071,20 +123318,20 @@ object-assign d = i('%Symbol%', !0), p = i('%RegExp%'), h = !!d, - g = n(158), - m = n(159), + g = n(156), + m = n(157), b = f.MAX_SAFE_INTEGER || Math.pow(2, 53) - 1, y = n(113), - v = n(160), - _ = n(161), - x = n(369), - w = parseInt, + v = n(158), + _ = n(159), + w = n(368), + x = parseInt, M = n(78), k = M.call(Function.call, c.prototype.slice), S = M.call(Function.call, u.prototype.slice), - A = M.call(Function.call, p.prototype.test, /^0b[01]+$/i), - O = M.call(Function.call, p.prototype.test, /^0o[0-7]+$/i), - E = M.call(Function.call, p.prototype.exec), + O = M.call(Function.call, p.prototype.test, /^0b[01]+$/i), + E = M.call(Function.call, p.prototype.test, /^0o[0-7]+$/i), + A = M.call(Function.call, p.prototype.exec), T = new p('[' + ['…', '​', '￾'].join('') + ']', 'g'), C = M.call(Function.call, p.prototype.test, T), L = M.call( @@ -122094,9 +123341,9 @@ object-assign ), P = M.call(Function.call, u.prototype.charCodeAt), D = M.call(Function.call, Object.prototype.toString), - z = Math.floor, - N = Math.abs, - j = Object.create, + j = Math.floor, + z = Math.abs, + N = Object.create, R = l.getOwnPropertyDescriptor, I = l.isExtensible, F = [ @@ -122106,8 +123353,8 @@ object-assign ].join(''), q = new RegExp('(^[' + F + ']+)|([' + F + ']+$)', 'g'), B = M.call(Function.call, u.prototype.replace), - H = n(370), - Y = n(372), + H = n(369), + Y = n(371), W = y(y({}, H), { Call: function(e, t) { var n = arguments.length > 2 ? arguments[2] : []; @@ -122117,12 +123364,12 @@ object-assign }, ToPrimitive: o, ToNumber: function(e) { - var t = x(e) ? e : o(e, f); + var t = w(e) ? e : o(e, f); if ('symbol' == typeof t) throw new a('Cannot convert a Symbol value to a number'); if ('string' == typeof t) { - if (A(t)) return this.ToNumber(w(S(t, 2), 2)); - if (O(t)) return this.ToNumber(w(S(t, 2), 8)); + if (O(t)) return this.ToNumber(x(S(t, 2), 2)); + if (E(t)) return this.ToNumber(x(S(t, 2), 8)); if (C(t) || L(t)) return NaN; var n = (function(e) { return B(e, q, ''); @@ -122142,14 +123389,14 @@ object-assign ToUint8: function(e) { var t = this.ToNumber(e); if (g(t) || 0 === t || !m(t)) return 0; - var n = v(t) * z(N(t)); + var n = v(t) * j(z(t)); return _(n, 256); }, ToUint8Clamp: function(e) { var t = this.ToNumber(e); if (g(t) || t <= 0) return 0; if (t >= 255) return 255; - var n = z(e); + var n = j(e); return n + 0.5 < t ? n + 1 : t < n + 0.5 @@ -122192,15 +123439,15 @@ object-assign }, IsExtensible: Object.preventExtensions ? function(e) { - return !x(e) && I(e); + return !w(e) && I(e); } : function(e) { return !0; }, IsInteger: function(e) { if ('number' != typeof e || g(e) || !m(e)) return !1; - var t = N(e); - return z(t) === t; + var t = z(e); + return j(t) === t; }, IsPropertyKey: function(e) { return 'string' == typeof e || 'symbol' == typeof e; @@ -122398,7 +123645,7 @@ object-assign '"exec" method must return `null` or an Object' ); } - return E(e, t); + return A(e, t); }, ArraySpeciesCreate: function(e, t) { if (!this.IsInteger(t) || t < 0) @@ -122462,11 +123709,11 @@ object-assign throw new s( 'es-abstract does not yet support internal slots' ); - if (null === e && !j) + if (null === e && !N) throw new s( 'native Object.create support is required to create null objects' ); - return j(e); + return N(e); }, AdvanceStringIndex: function(e, t, n) { if ('String' !== this.Type(e)) @@ -122494,10 +123741,10 @@ object-assign var r = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator, - o = n(155), + o = n(153), i = n(112), - a = n(368), - s = n(156), + a = n(367), + s = n(154), c = function(e, t) { if (null == e) throw new TypeError('Cannot call method on ' + e); @@ -122592,16 +123839,16 @@ object-assign }, function(e, t, n) { 'use strict'; - var r = n(157), + var r = n(155), o = r('%Object%'), i = r('%TypeError%'), a = r('%String%'), - s = n(158), - c = n(159), - u = n(160), - l = n(161), + s = n(156), + c = n(157), + u = n(158), + l = n(159), f = n(112), - d = n(371), + d = n(370), p = n(111), h = { ToPrimitive: d, @@ -122764,7 +124011,7 @@ object-assign function(e, t, n) { 'use strict'; var r = Object.prototype.toString, - o = n(155), + o = n(153), i = n(112), a = function(e, t) { var n = @@ -122817,7 +124064,7 @@ object-assign function(e, t, n) { 'use strict'; var r = n(110), - o = n(162); + o = n(160); e.exports = function() { var e = o(); return ( @@ -122838,7 +124085,7 @@ object-assign 'use strict'; (function(t) { var r = n(110), - o = n(156), + o = n(154), i = '__ global cache key __'; 'function' == typeof Symbol && o(Symbol('foo')) && @@ -122901,7 +124148,7 @@ object-assign } }; e.exports = f; - }.call(this, n(22))); + }.call(this, n(26))); }, function(e, t) { Object.defineProperty(t, '__esModule', { value: !0 }), @@ -122934,8 +124181,8 @@ object-assign r.default.registerInterface(e), r.default.registerTheme(o.default); }); - var r = i(n(379)), - o = i(n(380)); + var r = i(n(378)), + o = i(n(379)); function i(e) { return e && e.__esModule ? e : { default: e }; } @@ -122956,8 +124203,7 @@ object-assign function s() { for (var e = arguments.length, t = Array(e), n = 0; n < e; n++) t[n] = arguments[n]; - var o = r.resolve(t); - return o; + return r.resolve(t); } function c() { for (var e = arguments.length, t = Array(e), n = 0; n < e; n++) @@ -123104,512 +124350,92 @@ object-assign color_active: r.white, color_hover: r.white }, - selected: { - backgroundColor: r.primary, - backgroundColor_active: r.primary, - backgroundColor_hover: r.primary, - borderColor: r.primary, - borderColor_active: r.primary, - borderColor_hover: r.primary, - color: r.white, - color_active: r.white, - color_hover: r.white - }, - blocked_calendar: { - backgroundColor: r.grayLighter, - backgroundColor_active: r.grayLighter, - backgroundColor_hover: r.grayLighter, - borderColor: r.grayLighter, - borderColor_active: r.grayLighter, - borderColor_hover: r.grayLighter, - color: r.grayLight, - color_active: r.grayLight, - color_hover: r.grayLight - }, - blocked_out_of_range: { - backgroundColor: r.white, - backgroundColor_active: r.white, - backgroundColor_hover: r.white, - borderColor: r.borderLight, - borderColor_active: r.borderLight, - borderColor_hover: r.borderLight, - color: r.grayLighter, - color_active: r.grayLighter, - color_hover: r.grayLighter - } - }, - spacing: { - dayPickerHorizontalPadding: 9, - captionPaddingTop: 22, - captionPaddingBottom: 37, - inputPadding: 0, - displayTextPaddingVertical: void 0, - displayTextPaddingTop: 11, - displayTextPaddingBottom: 9, - displayTextPaddingHorizontal: void 0, - displayTextPaddingLeft: 11, - displayTextPaddingRight: 11, - displayTextPaddingVertical_small: void 0, - displayTextPaddingTop_small: 7, - displayTextPaddingBottom_small: 5, - displayTextPaddingHorizontal_small: void 0, - displayTextPaddingLeft_small: 7, - displayTextPaddingRight_small: 7 - }, - sizing: { - inputWidth: 130, - inputWidth_small: 97, - arrowWidth: 24 - }, - noScrollBarOnVerticalScrollable: !1, - font: { - size: 14, - captionSize: 18, - input: { - size: 19, - lineHeight: '24px', - size_small: 15, - lineHeight_small: '18px', - letterSpacing_small: '0.2px', - styleDisabled: 'italic' - } - } - } - }; - t.default = o; - }, - function(e, t, n) { - var r = n(382); - 'string' == typeof r && (r = [[e.i, r, '']]); - var o = { hmr: !0, transform: void 0, insertInto: void 0 }; - n(75)(r, o), r.locals && (e.exports = r.locals); - }, - function(e, t, n) { - (e.exports = n(74)(!1)).push([ - e.i, - "/*-- Chart --*/\n.c3 svg {\n font: 10px sans-serif;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n\n.c3 path, .c3 line {\n fill: none;\n stroke: #000;\n}\n\n.c3 text {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.c3-legend-item-tile,\n.c3-xgrid-focus,\n.c3-ygrid,\n.c3-event-rect,\n.c3-bars path {\n shape-rendering: crispEdges;\n}\n\n.c3-chart-arc path {\n stroke: #fff;\n}\n\n.c3-chart-arc rect {\n stroke: white;\n stroke-width: 1;\n}\n\n.c3-chart-arc text {\n fill: #fff;\n font-size: 13px;\n}\n\n/*-- Axis --*/\n/*-- Grid --*/\n.c3-grid line {\n stroke: #aaa;\n}\n\n.c3-grid text {\n fill: #aaa;\n}\n\n.c3-xgrid, .c3-ygrid {\n stroke-dasharray: 3 3;\n}\n\n/*-- Text on Chart --*/\n.c3-text.c3-empty {\n fill: #808080;\n font-size: 2em;\n}\n\n/*-- Line --*/\n.c3-line {\n stroke-width: 1px;\n}\n\n/*-- Point --*/\n.c3-circle._expanded_ {\n stroke-width: 1px;\n stroke: white;\n}\n\n.c3-selected-circle {\n fill: white;\n stroke-width: 2px;\n}\n\n/*-- Bar --*/\n.c3-bar {\n stroke-width: 0;\n}\n\n.c3-bar._expanded_ {\n fill-opacity: 1;\n fill-opacity: 0.75;\n}\n\n/*-- Focus --*/\n.c3-target.c3-focused {\n opacity: 1;\n}\n\n.c3-target.c3-focused path.c3-line, .c3-target.c3-focused path.c3-step {\n stroke-width: 2px;\n}\n\n.c3-target.c3-defocused {\n opacity: 0.3 !important;\n}\n\n/*-- Region --*/\n.c3-region {\n fill: steelblue;\n fill-opacity: 0.1;\n}\n\n/*-- Brush --*/\n.c3-brush .extent {\n fill-opacity: 0.1;\n}\n\n/*-- Select - Drag --*/\n/*-- Legend --*/\n.c3-legend-item {\n font-size: 12px;\n}\n\n.c3-legend-item-hidden {\n opacity: 0.15;\n}\n\n.c3-legend-background {\n opacity: 0.75;\n fill: white;\n stroke: lightgray;\n stroke-width: 1;\n}\n\n/*-- Title --*/\n.c3-title {\n font: 14px sans-serif;\n}\n\n/*-- Tooltip --*/\n.c3-tooltip-container {\n z-index: 10;\n}\n\n.c3-tooltip {\n border-collapse: collapse;\n border-spacing: 0;\n background-color: #fff;\n empty-cells: show;\n -webkit-box-shadow: 7px 7px 12px -9px #777777;\n box-shadow: 7px 7px 12px -9px #777777;\n opacity: 0.9;\n}\n\n.c3-tooltip tr {\n border: 1px solid #CCC;\n}\n\n.c3-tooltip th {\n background-color: #aaa;\n font-size: 14px;\n padding: 2px 5px;\n text-align: left;\n color: #FFF;\n}\n\n.c3-tooltip td {\n font-size: 13px;\n padding: 3px 6px;\n background-color: #fff;\n border-left: 1px dotted #999;\n}\n\n.c3-tooltip td > span {\n display: inline-block;\n width: 10px;\n height: 10px;\n margin-right: 6px;\n}\n\n.c3-tooltip .value {\n text-align: right;\n}\n\n/*-- Area --*/\n.c3-area {\n stroke-width: 0;\n opacity: 0.2;\n}\n\n/*-- Arc --*/\n.c3-chart-arcs-title {\n dominant-baseline: middle;\n font-size: 1.3em;\n}\n\n.c3-chart-arcs .c3-chart-arcs-background {\n fill: #e0e0e0;\n stroke: #FFF;\n}\n\n.c3-chart-arcs .c3-chart-arcs-gauge-unit {\n fill: #000;\n font-size: 16px;\n}\n\n.c3-chart-arcs .c3-chart-arcs-gauge-max {\n fill: #777;\n}\n\n.c3-chart-arcs .c3-chart-arcs-gauge-min {\n fill: #777;\n}\n\n.c3-chart-arc .c3-gauge-value {\n fill: #000;\n /* font-size: 28px !important;*/\n}\n\n.c3-chart-arc.c3-target g path {\n opacity: 1;\n}\n\n.c3-chart-arc.c3-target.c3-focused g path {\n opacity: 1;\n}\n\n/*-- Zoom --*/\n.c3-drag-zoom.enabled {\n pointer-events: all !important;\n visibility: visible;\n}\n\n.c3-drag-zoom.disabled {\n pointer-events: none !important;\n visibility: hidden;\n}\n\n.c3-drag-zoom .extent {\n fill-opacity: 0.1;\n}\n/*\r\n Rangeable\r\n Copyright (c) 2018 Karl Saunders\r\n Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)\r\n and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.\r\n\r\n Version: 0.1.6\r\n\r\n*/\n.rangeable-container.combined-tooltip.dragging .rangeable-progress>.rangeable-tooltip,.rangeable-container.combined-tooltip.rangeable-tooltips--visible .rangeable-progress>.rangeable-tooltip,.rangeable-container.dragging.rangeable-tooltips .rangeable-handle .rangeable-tooltip,.rangeable-container.rangeable-tooltips--visible.rangeable-tooltips .rangeable-handle .rangeable-tooltip,.rangeable-container.rangeable-vertical.combined-tooltip .rangeable-progress>.rangeable-tooltip::before{display:block}\n.rangeable-container{cursor:pointer;width:100%}\n.rangeable-container.rangeable-disabled{opacity:.6;cursor:not-allowed}\n.rangeable-container.rangeable-multiple.combined-tooltip .rangeable-handle .rangeable-tooltip,.rangeable-container.rangeable-vertical.combined-tooltip .rangeable-handle .rangeable-tooltip{opacity:0}\n.rangeable-container.focus .rangeable-handle{border:1px solid #74b9ff}\n.rangeable-container.rangeable-multiple .rangeable-handle:nth-child(1){left:0;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}\n.rangeable-container.rangeable-multiple .rangeable-handle:nth-child(2){right:0}\n.rangeable-container.rangeable-vertical{height:100%;width:auto}\n.rangeable-container.rangeable-vertical .rangeable-track{width:8px;height:100%}\n.rangeable-container.rangeable-vertical .rangeable-progress{width:8px;height:100%;top:auto;bottom:0;-webkit-transform-origin:0 100% 0;-ms-transform-origin:0 100% 0;transform-origin:0 100% 0}\n.rangeable-container.rangeable-vertical .rangeable-handle{right:auto;left:50%;top:0;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}\n.rangeable-container.rangeable-vertical .rangeable-tooltip{position:absolute;top:50%;left:calc(100% + 6px + 4px + 5px);right:auto;bottom:auto;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}\n.rangeable-container.rangeable-vertical .rangeable-tooltip::before{right:100%;left:auto;top:50%;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0);border-width:4px 4px 4px 0;border-color:transparent #3db13d transparent transparent}\n.rangeable-container.rangeable-vertical .rangeable-buffer{width:100%;height:0}\n.rangeable-container.rangeable-vertical.rangeable-multiple .rangeable-handle:nth-child(1){top:0;left:50%}\n.rangeable-container.rangeable-vertical.rangeable-multiple .rangeable-handle:nth-child(2){bottom:0;top:auto;-webkit-transform:translate3d(-50%,50%,0);transform:translate3d(-50%,50%,0)}\n.rangeable-input{position:absolute;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;margin:-1px;padding:0;border:0}\n.rangeable-input:focus+.rangeable-track .rangeable-handle::after{position:absolute;width:22px;height:22px;bottom:-6px;right:-6px;outline:#000 dotted 1px;content:\"\"}\n.rangeable-progress,.rangeable-track{height:8px;width:100%;border-radius:4px}\n.rangeable-track{background-color:#ccc;position:relative}\n.rangeable-progress{background-color:#3db13d;position:absolute;left:0;top:0;-webkit-transform-origin:0 0 0;-ms-transform-origin:0 0 0;transform-origin:0 0 0}\n.rangeable-progress>.rangeable-tooltip{display:none;z-index:11;top:auto;bottom:calc(100% + 7px + 9px);white-space:nowrap}\n.rangeable-handle{-webkit-box-sizing:border-box;box-sizing:border-box;width:22px;height:22px;border:6px solid #3db13d;border-radius:50%;background-color:#fff;position:absolute;top:50%;right:0;-webkit-transform:translate3d(50%,-50%,0);transform:translate3d(50%,-50%,0)}\n.rangeable-handle:focus{outline:0}\n.rangeable-handle:focus::after{position:absolute;width:22px;height:22px;bottom:-6px;right:-6px;outline:#000 dotted 1px;content:\"\"}\n.rangeable-handle.active{z-index:10}\n.rangeable-handle .rangeable-tooltip{display:none}\n.rangeable-tooltip{position:absolute;right:50%;bottom:calc(100% + 6px + 4px + 5px);-webkit-transform:translate3d(50%,0,0);transform:translate3d(50%,0,0);text-align:center;padding:2px 13px;background-color:#3db13d;border-radius:4px;font-weight:700;font-size:16px;color:#fff;font-family:Inconsolata,Consolas,Courier New,Lucida Console,sans-serif}\n.rangeable-tooltip::before{width:0;height:0;border-width:4px 4px 0;border-style:solid;border-color:#3db13d transparent transparent;position:absolute;left:50%;top:100%;-webkit-transform:translate3d(-50%,0,0);transform:translate3d(-50%,0,0);content:\"\"}\n.rangeable-buffers{position:absolute;left:0;top:0;height:100%;width:100%}\n.rangeable-buffer{position:absolute;background-color:rgba(0,0,0,.2);border-radius:4px;height:100%}\n/* WRAPPER */\n.keen-dataviz {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n font-family: 'Gotham Rounded SSm A', 'Gotham Rounded SSm B', 'Helvetica Neue', Helvetica, Arial, sans-serif;\n font-family: 'Gotham Rounded SSm A', 'Gotham Rounded SSm B', 'Helvetica Neue', Helvetica, Arial, sans-serif;\n height: 100%;\n}\n.keen-dataviz .partial-interval-indicator{\n fill: #bdbdbd;\n }\n.keen-dataviz .axis {\n shape-rendering: crispEdges\n }\n.keen-dataviz-title {\n color: #4D4D4D;\n color: #4D4D4D;\n padding-bottom: 0.8em;\n }\n.keen-dataviz-stage {\n display: block;\n }\n.keen-dataviz-notes {\n color: #808080;\n color: #808080;\n display: block;\n font-size: 0.8em;\n }\n.keen-dataviz-box {\n border-radius: 4px;\n text-align: center;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-flow: row;\n flex-flow: row;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-direction: column;\n flex-direction: column;\n padding: 1em 0;\n min-height: 4em;\n height: inherit;\n }\n.keen-dataviz-button {\n padding: 0.5rem 1rem;\n margin: 1rem 0;\n border-radius: 4px;\n background-color: #f9f9f9;\n border-color: #d6d6d6;\n cursor: pointer;\n -webkit-transition: background-color 300ms ease;\n -o-transition: background-color 300ms ease;\n transition: background-color 300ms ease\n }\n.keen-dataviz-button:hover {\n background-color: #E7E7E7;\n background-color: #E7E7E7;\n}\n.keen-dataviz .metric-comparison {\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n color: #1A1A1A;\n color: #1A1A1A;\n background: #f9f9f9;\n }\n/* METRIC */\n.keen-dataviz-metric {\n height: inherit;\n color: #FFFFFF;\n color: #FFFFFF;\n background: rgb(0, 187, 222);\n }\n.keen-dataviz-metric-value {\n font-size: 4.3em;\n font-weight: 700;\n width: 100%;\n }\n.keen-dataviz-metric-value-smaller {\n font-size: 3em;\n }\n.keen-dataviz-metric-title {\n font-size: 2em;\n font-weight: 200;\n width: 100%;\n }\n.keen-dataviz-metric-green {\n color: #73D483;\n color: #73D483;\n font-size: 2em;\n }\n.keen-dataviz-metric-red {\n color: #FE6672;\n color: #FE6672;\n font-size: 2em;\n }\n.keen-dataviz .arrow-green {\n width: 0;\n height: 0;\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n border-bottom: 8px solid #73D483;\n border-bottom: 8px solid #73D483;\n position: relative;\n top: 0.7em;\n left: -0.6em;\n }\n.keen-dataviz .arrow-red {\n width: 0;\n height: 0;\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n border-top: 8px solid #FE6672;\n border-top: 8px solid #FE6672;\n position: relative;\n top: 0.8em;\n left: -0.6em;\n }\n/* MESSAGE */\n.keen-dataviz-message {\n color: #808080;\n color: #808080;\n font-size: 1.5em;\n width:100%;\n }\n/* FUNNEL */\n.keen-dataviz .text-label {\n fill: #1A1A1A;\n fill: #1A1A1A;\n }\n.keen-dataviz .text-main {\n fill: #FFFFFF;\n fill: #FFFFFF;\n font-size: 1.5em;\n }\n.keen-dataviz .text-second {\n fill: #FFFFFF;\n fill: #FFFFFF;\n }\n.keen-dataviz .chart-lines {\n stroke: #E7E7E7;\n stroke: #E7E7E7;\n }\n/* METRIC COMBO */\n.keen-dataviz-metric-combo {\n width: 270px;\n height: 120px;\n position: relative;\n }\n.keen-dataviz-metric-combo .metric-combo-data {\n width: 100%;\n height: 100%;\n padding: 0.5rem;\n position: absolute;\n z-index: -1;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n }\n.keen-dataviz-metric-combo .c3-chart {\n height: 120px;\n }\n.keen-dataviz-metric-combo .c3-lines {\n display: none;\n }\n.keen-dataviz-metric-combo .keen-dataviz-title,\n .keen-dataviz-metric-combo .current-count {\n width: 100%;\n }\n.keen-dataviz-metric-combo .current-count {\n margin-top: auto;\n margin-bottom: auto;\n font-size: 2rem;\n text-align: center;\n }\n.keen-dataviz-metric-combo .percent-difference {\n position: absolute;\n top: 0.5rem;\n right: 0.5rem;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n font-size: 80%;\n }\n.keen-dataviz-metric-combo .arrow-green,\n .keen-dataviz-metric-combo .arrow-red {\n margin-right: 0.25rem;\n position: static;\n border-width: 5px;\n }\n/* TABLE */\n.keen-dataviz-table {\n border-bottom: 1px solid #E7E7E7;\n border-bottom: 1px solid #E7E7E7;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n overflow: scroll;\n position: relative;\n width: 100%;\n }\n.keen-dataviz-table table {\n background: #FFFFFF;\n background: #FFFFFF;\n border-collapse: collapse;\n margin: 0;\n position: relative;\n width: 100%;\n }\n.keen-dataviz-table table .table-pagination td {\n background-color: #FFFFFF;\n background-color: #FFFFFF;\n }\n.keen-dataviz-table table .table-pagination:hover td {\n background-color: #FFFFFF;\n background-color: #FFFFFF;\n }\n.keen-dataviz-table table .table-pagination a {\n border: 1px solid #E7E7E7;\n border: 1px solid #E7E7E7;\n padding: 0.5em;\n margin-right: 0.2em;\n cursor: pointer;\n }\n.keen-dataviz-table table .table-pagination .active{\n background: #4D4D4D;\n background: #4D4D4D;\n color: #FFFFFF;\n color: #FFFFFF;\n }\n.keen-dataviz-table table .table-pagination .arrow{\n font-weight:bold;\n }\n.keen-dataviz-table th{\n background: white;\n position: -webkit-sticky;\n position: sticky;\n top: 0;\n z-index: 10;\n cursor: pointer;\n }\n.keen-dataviz-table th,\n .keen-dataviz-table td {\n border-collapse: collapse;\n font-size: 1em;\n padding: 0.7em;\n text-align: left;\n white-space: nowrap;\n }\n.keen-dataviz-table th {\n border-bottom: 1px solid #E7E7E7;\n border-bottom: 1px solid #E7E7E7;\n color: #4D4D4D;\n color: #4D4D4D;\n }\n.keen-dataviz-table td {\n background-color: #FFFFFF;\n background-color: #FFFFFF;\n color: #4D4D4D;\n color: #4D4D4D;\n -webkit-transition: background-color 0.1s, color 0.05s;\n -o-transition: background-color 0.1s, color 0.05s;\n transition: background-color 0.1s, color 0.05s;\n }\n.keen-dataviz-table .table-data-row:nth-child(even) td{\n background-color: #F3F5F6;\n }\n.keen-dataviz-table .table-data-row:hover td{\n background-color: #E7E7E7;\n background-color: #E7E7E7;\n color: #4D4D4D;\n color: #4D4D4D;\n }\n.keen-dataviz-table .keen-dataviz-table-fixed-header {\n background: #FFFFFF;\n background: #FFFFFF;\n border-bottom: 1px solid rgba(0,0,0,.15);\n position: absolute;\n top: 0;\n -webkit-transition: top .1s;\n -o-transition: top .1s;\n transition: top .1s;\n }\n.keen-dataviz .keen-spinner-indicator {\n border-radius: 100%;\n border: 3px solid rgba(0, 0, 0, .1);\n border-top-color: rgba(0, 0, 0, .45);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n height: 3em;\n width: 3em;\n -webkit-animation:spin .7s linear infinite;\n animation:spin .7s linear infinite;\n -ms-animation: spin .7s linear infinite;\n -o-animation: spin .7s linear infinite;\n }\n.keen-dataviz-execution-meta {\n position: absolute;\n z-index: 999;\n padding: 0.5rem 1rem;\n margin: 0.75rem 0;\n display: inline-grid;\n grid-template-columns: repeat(2, -webkit-max-content);\n grid-template-columns: repeat(2, max-content);\n grid-gap: 0.5em 1em;\n text-transform: uppercase;\n font-size: 0.75rem;\n border: 1px solid #eee;\n background: #fff;\n }\n.keen-dataviz-execution-meta dt {\n font-weight: bold\n }\n.keen-dataviz-execution-meta dt:hover + dd {\n font-weight: bold;\n}\n.keen-dataviz-execution-meta dt, .keen-dataviz-execution-meta dd {\n margin: 0;\n cursor: pointer;\n }\n.keen-dataviz-execution-meta .copied:after {\n content: 'copied!';\n vertical-align: middle;\n display: inline-block;\n font-size: 10px;\n margin-left: 0.5em;\n position: absolute;\n text-transform: none;\n font-weight: normal;\n -webkit-animation: 1s ease 0s 1 both fadeOut;\n animation: 1s ease 0s 1 both fadeOut;\n}\n@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }\n@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }\n@-webkit-keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }\n@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }\n/* C3 CUSTOMIZATIONS */\n.keen-dataviz .c3-axis-y path {\n display: none;\n }\n.keen-dataviz .c3-axis-y .tick line{\n display: none;\n }\n.keen-dataviz .tick line, .keen-dataviz path.domain{\n stroke-opacity: 0.2;\n }\n.keen-dataviz .c3-ygrid{\n stroke-dasharray: none;\n stroke-opacity: 0.1;\n }\n.keen-dataviz .c3-ygrids :nth-child(even) {\n display: none;\n }\n.keen-dataviz .c3-tooltip {\n border: 1px solid rgba(0, 0, 0, 0.1);\n padding: 0.2em;\n border-radius: 0.2em;\n -webkit-box-shadow: none;\n box-shadow: none;\n border-collapse: separate;\n }\n.keen-dataviz .c3-tooltip th {\n text-align: center;\n }\n.keen-dataviz .c3-tooltip table, .keen-dataviz .c3-tooltip th, .keen-dataviz .c3-tooltip tr, .keen-dataviz .c3-tooltip td {\n border: none;\n background: none;\n font-size: 0.9em;\n }\n.keen-dataviz .c3-tooltip-container th {\n max-width: 50%;\n word-wrap: break-word;\n color: #1A1A1A;\n color: #1A1A1A;\n background: none;\n font-weight: normal;\n }\n.keen-dataviz .c3-tooltip-container td {\n max-width: 50%;\n word-wrap: break-word;\n }\n.keen-dataviz-rendering{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-flow: row;\n flex-flow: row;\n -ms-flex-pack: distribute;\n justify-content: space-around;\n }\n.keen-dataviz-rendering .c3-chart{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-item-align: center;\n align-self: center;\n -ms-flex-order: 1;\n order: 1;\n -ms-flex: 1;\n flex: 1;\n }\n.keen-dataviz-rendering .c3-chart-100-percent{\n width: 100%;\n -ms-flex-item-align: center;\n align-self: center;\n }\n.keen-dataviz-rendering-horizontal{\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n }\n/* CUSTOM LEGEND */\n.keen-c3-legend {\n display: -ms-flexbox;\n display: flex;\n position: relative;\n top: 0;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.keen-c3-legend-horizontal{\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-item-align: end;\n align-self: flex-end;\n display: -ms-flexbox;\n display: flex;\n flex-direction: row;\n -ms-flex-pack: center;\n justify-content: center;\n width: 100%;\n padding: 0.5em 0;\n }\n.keen-c3-legend-horizontal-pagination-left{\n -ms-flex-order: 0;\n order: 0;\n display: -ms-flexbox;\n display: flex;\n margin-right: 1.5em;\n }\n.keen-c3-legend-horizontal-items{\n -ms-flex-order: 1;\n order: 1;\n display: -ms-flexbox;\n display: flex;\n }\n.keen-c3-legend-horizontal-pagination-right{\n -ms-flex-order: 2;\n order: 2;\n display: -ms-flexbox;\n display: flex;\n margin-left: 1.5em;\n }\n.keen-c3-legend-top{\n -ms-flex-order: 0;\n order: 0;\n }\n.keen-c3-legend-bottom {\n -ms-flex-order: 2;\n order: 2;\n }\n.keen-c3-legend-bottom .keen-c3-legend-label-overlay{\n top: 0;\n margin-top: -2.7em;\n }\n.keen-c3-legend-bottom .keen-c3-legend-label-overlay .overlay-pointer {\n top: 2.4em;\n -webkit-transform: rotate(180deg);\n -ms-transform: rotate(180deg);\n transform: rotate(180deg);\n border-color: transparent transparent #f0f0f0 transparent;\n }\n.keen-c3-legend-vertical{\n -ms-flex-direction: column;\n flex-direction: column;\n }\n.keen-c3-legend-vertical .keen-c3-legend-pagination-icons\n {\n margin: 0.5em 0.1em;\n -ms-flex-order: 2;\n order: 2;\n }\n.keen-c3-legend-left{\n -ms-flex-order: 0;\n order: 0;\n }\n.keen-c3-legend-right{\n -ms-flex-order: 2;\n order: 2;\n }\n.keen-c3-legend-items{\n -ms-flex-order: 1;\n order: 1;\n }\n.keen-c3-legend-vertical-items{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n }\n.keen-c3-legend-vertical-items .legend-item{\n width: 8em;\n }\n.keen-c3-legend-horizontal-items{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n }\n.keen-c3-legend-horizontal-items .legend-item{\n width: 6em;\n margin: 0 0.25em;\n }\n.keen-c3-legend .legend-item{\n display: -ms-flexbox;\n display: flex;\n cursor: pointer;\n padding: 0.2em;\n font-size: 0.8em;\n }\n.keen-c3-legend .legend-item > * {\n vertical-align: middle;\n }\n.keen-c3-legend .legend-item-color-sample{\n display: inline-block;\n width: 1em;\n height: 1em;\n margin-right: 0.5em;\n pointer-events: none;\n -ms-flex: none;\n flex: none;\n }\n.keen-c3-legend .legend-item-text{\n pointer-events: none;\n overflow: hidden;\n white-space: nowrap;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n text-align: left;\n }\n.keen-c3-legend-label-overlay .overlay-pointer {\n border-color: transparent transparent #FFFFFF transparent;\n border-color: transparent transparent #FFFFFF transparent;\n border-style: solid;\n border-width: 0 10px 10px 10px;\n height: 0;\n width: 0px;\n position: absolute;\n top: -10px;\n }\n.keen-c3-legend-position-left .overlay-pointer {\n left: 0px;\n }\n.keen-c3-legend-position-right .overlay-pointer {\n left: 0px;\n }\n.keen-c3-legend-pagination-vertical {\n margin-top: 0.5em;\n }\n.keen-c3-legend-pagination-icons {\n padding: 0.2em;\n }\n.keen-c3-legend-pagination-icons i {\n border-left: 1em solid transparent;\n border-right: 1em solid transparent;\n border-top: 1.5em solid #4D4D4D;\n border-top: 1.5em solid #4D4D4D;\n display: inline-block;\n padding: 0em;\n float: left;\n cursor: pointer;\n font-size: 0.5em;\n }\n.keen-c3-legend-pagination-icons .right {\n -ms-transform: rotate(-90deg);\n transform: rotate(-90deg);\n -webkit-transform: rotate(-90deg);\n }\n.keen-c3-legend-pagination-icons .left {\n -ms-transform: rotate(90deg);\n transform: rotate(90deg);\n -webkit-transform: rotate(90deg);\n }\n.keen-c3-legend-pagination-icons .up {\n -ms-transform: rotate(-180deg);\n transform: rotate(-180deg);\n -webkit-transform: rotate(-180deg);\n margin-top: 0.1em;\n }\n.keen-c3-legend-pagination-icons .down {\n margin-right: 0.1em;\n }\n.keen-c3-legend-label-overlay {\n font-size: 1em;\n background: rgba(255, 255, 255, 0.9);\n background: rgba(255, 255, 255, 0.9);\n -webkit-box-shadow: 0 1px 1px rgba(26, 26, 26, 0.09999999999999998);\n box-shadow: 0 1px 1px rgba(26, 26, 26, 0.09999999999999998);\n box-shadow: 0 1px 1px rgba(26, 26, 26, 0.09999999999999998);\n padding: 0.6em;\n margin-top: 1.5em;\n position: absolute;\n word-wrap: break-word;\n pointer-events: none;\n z-index: 222;\n }\n.keen-c3-legend-align-left {\n -ms-flex-pack: start;\n justify-content: flex-start;\n }\n.keen-c3-legend-align-center {\n -ms-flex-pack: center;\n justify-content: center;\n }\n.keen-c3-legend-align-right {\n -ms-flex-pack: end;\n justify-content: flex-end;\n }\n.keen-c3-legend-align-top {\n -ms-flex-pack: start;\n justify-content: flex-start;\n }\n.keen-c3-legend-align-middle {\n -ms-flex-pack: center;\n justify-content: center;\n }\n.keen-c3-legend-align-bottom {\n -ms-flex-pack: end;\n justify-content: flex-end;\n }\n.keen-dataviz-range .c3-area-Max {\n display: none;\n}\n.keen-dataviz-range .c3-bars-Max {\n display: none;\n}\n.keen-dataviz ~ .rangeable-container {\n margin: 2rem auto;\n width: 75%;\n}\n.keen-dataviz ~ .rangeable-container .rangeable-track,\n.keen-dataviz ~ .rangeable-container .rangeable-progress {\n height: 4px;\n}\n.keen-dataviz ~ .rangeable-container .rangeable-handle {\n width: 16px;\n height: 16px;\n border-width: 4px;\n}\n.keen-dataviz ~ .rangeable-container .rangeable-tooltip {\n border-radius: 0;\n font-weight: normal;\n padding: 3px 9px;\n}\n", - '' - ]); - }, - function(e, t, n) { - (function(e, r) { - var o = /%[sdj%]/g; - (t.format = function(e) { - if (!b(e)) { - for (var t = [], n = 0; n < arguments.length; n++) - t.push(s(arguments[n])); - return t.join(' '); - } - n = 1; - for ( - var r = arguments, - i = r.length, - a = String(e).replace(o, function(e) { - if ('%%' === e) return '%'; - if (n >= i) return e; - switch (e) { - case '%s': - return String(r[n++]); - case '%d': - return Number(r[n++]); - case '%j': - try { - return JSON.stringify(r[n++]); - } catch (e) { - return '[Circular]'; - } - default: - return e; - } - }), - c = r[n]; - n < i; - c = r[++n] - ) - g(c) || !_(c) ? (a += ' ' + c) : (a += ' ' + s(c)); - return a; - }), - (t.deprecate = function(n, o) { - if (y(e.process)) - return function() { - return t.deprecate(n, o).apply(this, arguments); - }; - if (!0 === r.noDeprecation) return n; - var i = !1; - return function() { - if (!i) { - if (r.throwDeprecation) throw new Error(o); - r.traceDeprecation - ? console.trace(o) - : console.error(o), - (i = !0); - } - return n.apply(this, arguments); - }; - }); - var i, - a = {}; - function s(e, n) { - var r = { seen: [], stylize: u }; - return ( - arguments.length >= 3 && (r.depth = arguments[2]), - arguments.length >= 4 && (r.colors = arguments[3]), - h(n) ? (r.showHidden = n) : n && t._extend(r, n), - y(r.showHidden) && (r.showHidden = !1), - y(r.depth) && (r.depth = 2), - y(r.colors) && (r.colors = !1), - y(r.customInspect) && (r.customInspect = !0), - r.colors && (r.stylize = c), - l(r, e, r.depth) - ); - } - function c(e, t) { - var n = s.styles[t]; - return n - ? '[' + - s.colors[n][0] + - 'm' + - e + - '[' + - s.colors[n][1] + - 'm' - : e; - } - function u(e, t) { - return e; - } - function l(e, n, r) { - if ( - e.customInspect && - n && - M(n.inspect) && - n.inspect !== t.inspect && - (!n.constructor || n.constructor.prototype !== n) - ) { - var o = n.inspect(r, e); - return b(o) || (o = l(e, o, r)), o; - } - var i = (function(e, t) { - if (y(t)) return e.stylize('undefined', 'undefined'); - if (b(t)) { - var n = - "'" + - JSON.stringify(t) - .replace(/^"|"$/g, '') - .replace(/'/g, "\\'") - .replace(/\\"/g, '"') + - "'"; - return e.stylize(n, 'string'); - } - return m(t) - ? e.stylize('' + t, 'number') - : h(t) - ? e.stylize('' + t, 'boolean') - : g(t) - ? e.stylize('null', 'null') - : void 0; - })(e, n); - if (i) return i; - var a = Object.keys(n), - s = (function(e) { - var t = {}; - return ( - e.forEach(function(e, n) { - t[e] = !0; - }), - t - ); - })(a); - if ( - (e.showHidden && (a = Object.getOwnPropertyNames(n)), - w(n) && - (a.indexOf('message') >= 0 || - a.indexOf('description') >= 0)) - ) - return f(n); - if (0 === a.length) { - if (M(n)) { - var c = n.name ? ': ' + n.name : ''; - return e.stylize('[Function' + c + ']', 'special'); - } - if (v(n)) - return e.stylize( - RegExp.prototype.toString.call(n), - 'regexp' - ); - if (x(n)) - return e.stylize(Date.prototype.toString.call(n), 'date'); - if (w(n)) return f(n); - } - var u, - _ = '', - k = !1, - S = ['{', '}']; - return ( - p(n) && ((k = !0), (S = ['[', ']'])), - M(n) && - (_ = ' [Function' + (n.name ? ': ' + n.name : '') + ']'), - v(n) && (_ = ' ' + RegExp.prototype.toString.call(n)), - x(n) && (_ = ' ' + Date.prototype.toUTCString.call(n)), - w(n) && (_ = ' ' + f(n)), - 0 !== a.length || (k && 0 != n.length) - ? r < 0 - ? v(n) - ? e.stylize( - RegExp.prototype.toString.call(n), - 'regexp' - ) - : e.stylize('[Object]', 'special') - : (e.seen.push(n), - (u = k - ? (function(e, t, n, r, o) { - for ( - var i = [], a = 0, s = t.length; - a < s; - ++a - ) - E(t, String(a)) - ? i.push(d(e, t, n, r, String(a), !0)) - : i.push(''); - return ( - o.forEach(function(o) { - o.match(/^\d+$/) || - i.push(d(e, t, n, r, o, !0)); - }), - i - ); - })(e, n, r, s, a) - : a.map(function(t) { - return d(e, n, r, s, t, k); - })), - e.seen.pop(), - (function(e, t, n) { - return e.reduce(function(e, t) { - return ( - t.indexOf('\n'), - e + t.replace(/\u001b\[\d\d?m/g, '').length + 1 - ); - }, 0) > 60 - ? n[0] + - ('' === t ? '' : t + '\n ') + - ' ' + - e.join(',\n ') + - ' ' + - n[1] - : n[0] + t + ' ' + e.join(', ') + ' ' + n[1]; - })(u, _, S)) - : S[0] + _ + S[1] - ); - } - function f(e) { - return '[' + Error.prototype.toString.call(e) + ']'; - } - function d(e, t, n, r, o, i) { - var a, s, c; - if ( - ((c = Object.getOwnPropertyDescriptor(t, o) || { - value: t[o] - }).get - ? (s = c.set - ? e.stylize('[Getter/Setter]', 'special') - : e.stylize('[Getter]', 'special')) - : c.set && (s = e.stylize('[Setter]', 'special')), - E(r, o) || (a = '[' + o + ']'), - s || - (e.seen.indexOf(c.value) < 0 - ? (s = g(n) - ? l(e, c.value, null) - : l(e, c.value, n - 1)).indexOf('\n') > -1 && - (s = i - ? s - .split('\n') - .map(function(e) { - return ' ' + e; - }) - .join('\n') - .substr(2) - : '\n' + - s - .split('\n') - .map(function(e) { - return ' ' + e; - }) - .join('\n')) - : (s = e.stylize('[Circular]', 'special'))), - y(a)) - ) { - if (i && o.match(/^\d+$/)) return s; - (a = JSON.stringify('' + o)).match( - /^"([a-zA-Z_][a-zA-Z_0-9]*)"$/ - ) - ? ((a = a.substr(1, a.length - 2)), - (a = e.stylize(a, 'name'))) - : ((a = a - .replace(/'/g, "\\'") - .replace(/\\"/g, '"') - .replace(/(^"|"$)/g, "'")), - (a = e.stylize(a, 'string'))); - } - return a + ': ' + s; - } - function p(e) { - return Array.isArray(e); - } - function h(e) { - return 'boolean' == typeof e; - } - function g(e) { - return null === e; - } - function m(e) { - return 'number' == typeof e; - } - function b(e) { - return 'string' == typeof e; - } - function y(e) { - return void 0 === e; - } - function v(e) { - return _(e) && '[object RegExp]' === k(e); - } - function _(e) { - return 'object' == typeof e && null !== e; - } - function x(e) { - return _(e) && '[object Date]' === k(e); - } - function w(e) { - return ( - _(e) && ('[object Error]' === k(e) || e instanceof Error) - ); - } - function M(e) { - return 'function' == typeof e; - } - function k(e) { - return Object.prototype.toString.call(e); - } - function S(e) { - return e < 10 ? '0' + e.toString(10) : e.toString(10); - } - (t.debuglog = function(e) { - if ( - (y(i) && (i = r.env.NODE_DEBUG || ''), - (e = e.toUpperCase()), - !a[e]) - ) - if (new RegExp('\\b' + e + '\\b', 'i').test(i)) { - var n = r.pid; - a[e] = function() { - var r = t.format.apply(t, arguments); - console.error('%s %d: %s', e, n, r); - }; - } else a[e] = function() {}; - return a[e]; - }), - (t.inspect = s), - (s.colors = { - bold: [1, 22], - italic: [3, 23], - underline: [4, 24], - inverse: [7, 27], - white: [37, 39], - grey: [90, 39], - black: [30, 39], - blue: [34, 39], - cyan: [36, 39], - green: [32, 39], - magenta: [35, 39], - red: [31, 39], - yellow: [33, 39] - }), - (s.styles = { - special: 'cyan', - number: 'yellow', - boolean: 'yellow', - undefined: 'grey', - null: 'bold', - string: 'green', - date: 'magenta', - regexp: 'red' - }), - (t.isArray = p), - (t.isBoolean = h), - (t.isNull = g), - (t.isNullOrUndefined = function(e) { - return null == e; - }), - (t.isNumber = m), - (t.isString = b), - (t.isSymbol = function(e) { - return 'symbol' == typeof e; - }), - (t.isUndefined = y), - (t.isRegExp = v), - (t.isObject = _), - (t.isDate = x), - (t.isError = w), - (t.isFunction = M), - (t.isPrimitive = function(e) { - return ( - null === e || - 'boolean' == typeof e || - 'number' == typeof e || - 'string' == typeof e || - 'symbol' == typeof e || - void 0 === e - ); - }), - (t.isBuffer = n(384)); - var A = [ - 'Jan', - 'Feb', - 'Mar', - 'Apr', - 'May', - 'Jun', - 'Jul', - 'Aug', - 'Sep', - 'Oct', - 'Nov', - 'Dec' - ]; - function O() { - var e = new Date(), - t = [ - S(e.getHours()), - S(e.getMinutes()), - S(e.getSeconds()) - ].join(':'); - return [e.getDate(), A[e.getMonth()], t].join(' '); - } - function E(e, t) { - return Object.prototype.hasOwnProperty.call(e, t); - } - (t.log = function() { - console.log('%s - %s', O(), t.format.apply(t, arguments)); - }), - (t.inherits = n(42)), - (t._extend = function(e, t) { - if (!t || !_(t)) return e; - for (var n = Object.keys(t), r = n.length; r--; ) - e[n[r]] = t[n[r]]; - return e; - }); - }.call(this, n(22), n(52))); + selected: { + backgroundColor: r.primary, + backgroundColor_active: r.primary, + backgroundColor_hover: r.primary, + borderColor: r.primary, + borderColor_active: r.primary, + borderColor_hover: r.primary, + color: r.white, + color_active: r.white, + color_hover: r.white + }, + blocked_calendar: { + backgroundColor: r.grayLighter, + backgroundColor_active: r.grayLighter, + backgroundColor_hover: r.grayLighter, + borderColor: r.grayLighter, + borderColor_active: r.grayLighter, + borderColor_hover: r.grayLighter, + color: r.grayLight, + color_active: r.grayLight, + color_hover: r.grayLight + }, + blocked_out_of_range: { + backgroundColor: r.white, + backgroundColor_active: r.white, + backgroundColor_hover: r.white, + borderColor: r.borderLight, + borderColor_active: r.borderLight, + borderColor_hover: r.borderLight, + color: r.grayLighter, + color_active: r.grayLighter, + color_hover: r.grayLighter + } + }, + spacing: { + dayPickerHorizontalPadding: 9, + captionPaddingTop: 22, + captionPaddingBottom: 37, + inputPadding: 0, + displayTextPaddingVertical: void 0, + displayTextPaddingTop: 11, + displayTextPaddingBottom: 9, + displayTextPaddingHorizontal: void 0, + displayTextPaddingLeft: 11, + displayTextPaddingRight: 11, + displayTextPaddingVertical_small: void 0, + displayTextPaddingTop_small: 7, + displayTextPaddingBottom_small: 5, + displayTextPaddingHorizontal_small: void 0, + displayTextPaddingLeft_small: 7, + displayTextPaddingRight_small: 7 + }, + sizing: { + inputWidth: 130, + inputWidth_small: 97, + arrowWidth: 24 + }, + noScrollBarOnVerticalScrollable: !1, + font: { + size: 14, + captionSize: 18, + input: { + size: 19, + lineHeight: '24px', + size_small: 15, + lineHeight_small: '18px', + letterSpacing_small: '0.2px', + styleDisabled: 'italic' + } + } + } + }; + t.default = o; }, - function(e, t) { - e.exports = function(e) { - return ( - e && - 'object' == typeof e && - 'function' == typeof e.copy && - 'function' == typeof e.fill && - 'function' == typeof e.readUInt8 - ); - }; + function(e, t, n) { + var r = n(381); + 'string' == typeof r && (r = [[e.i, r, '']]); + var o = { hmr: !0, transform: void 0, insertInto: void 0 }; + n(74)(r, o), r.locals && (e.exports = r.locals); + }, + function(e, t, n) { + (e.exports = n(73)(!1)).push([ + e.i, + "/*-- Chart --*/\n.c3 svg {\n font: 10px sans-serif;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n\n.c3 path, .c3 line {\n fill: none;\n stroke: #000;\n}\n\n.c3 text {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.c3-legend-item-tile,\n.c3-xgrid-focus,\n.c3-ygrid,\n.c3-event-rect,\n.c3-bars path {\n shape-rendering: crispEdges;\n}\n\n.c3-chart-arc path {\n stroke: #fff;\n}\n\n.c3-chart-arc rect {\n stroke: white;\n stroke-width: 1;\n}\n\n.c3-chart-arc text {\n fill: #fff;\n font-size: 13px;\n}\n\n/*-- Axis --*/\n/*-- Grid --*/\n.c3-grid line {\n stroke: #aaa;\n}\n\n.c3-grid text {\n fill: #aaa;\n}\n\n.c3-xgrid, .c3-ygrid {\n stroke-dasharray: 3 3;\n}\n\n/*-- Text on Chart --*/\n.c3-text.c3-empty {\n fill: #808080;\n font-size: 2em;\n}\n\n/*-- Line --*/\n.c3-line {\n stroke-width: 1px;\n}\n\n/*-- Point --*/\n.c3-circle._expanded_ {\n stroke-width: 1px;\n stroke: white;\n}\n\n.c3-selected-circle {\n fill: white;\n stroke-width: 2px;\n}\n\n/*-- Bar --*/\n.c3-bar {\n stroke-width: 0;\n}\n\n.c3-bar._expanded_ {\n fill-opacity: 1;\n fill-opacity: 0.75;\n}\n\n/*-- Focus --*/\n.c3-target.c3-focused {\n opacity: 1;\n}\n\n.c3-target.c3-focused path.c3-line, .c3-target.c3-focused path.c3-step {\n stroke-width: 2px;\n}\n\n.c3-target.c3-defocused {\n opacity: 0.3 !important;\n}\n\n/*-- Region --*/\n.c3-region {\n fill: steelblue;\n fill-opacity: 0.1;\n}\n\n/*-- Brush --*/\n.c3-brush .extent {\n fill-opacity: 0.1;\n}\n\n/*-- Select - Drag --*/\n/*-- Legend --*/\n.c3-legend-item {\n font-size: 12px;\n}\n\n.c3-legend-item-hidden {\n opacity: 0.15;\n}\n\n.c3-legend-background {\n opacity: 0.75;\n fill: white;\n stroke: lightgray;\n stroke-width: 1;\n}\n\n/*-- Title --*/\n.c3-title {\n font: 14px sans-serif;\n}\n\n/*-- Tooltip --*/\n.c3-tooltip-container {\n z-index: 10;\n}\n\n.c3-tooltip {\n border-collapse: collapse;\n border-spacing: 0;\n background-color: #fff;\n empty-cells: show;\n -webkit-box-shadow: 7px 7px 12px -9px #777777;\n box-shadow: 7px 7px 12px -9px #777777;\n opacity: 0.9;\n}\n\n.c3-tooltip tr {\n border: 1px solid #CCC;\n}\n\n.c3-tooltip th {\n background-color: #aaa;\n font-size: 14px;\n padding: 2px 5px;\n text-align: left;\n color: #FFF;\n}\n\n.c3-tooltip td {\n font-size: 13px;\n padding: 3px 6px;\n background-color: #fff;\n border-left: 1px dotted #999;\n}\n\n.c3-tooltip td > span {\n display: inline-block;\n width: 10px;\n height: 10px;\n margin-right: 6px;\n}\n\n.c3-tooltip .value {\n text-align: right;\n}\n\n/*-- Area --*/\n.c3-area {\n stroke-width: 0;\n opacity: 0.2;\n}\n\n/*-- Arc --*/\n.c3-chart-arcs-title {\n dominant-baseline: middle;\n font-size: 1.3em;\n}\n\n.c3-chart-arcs .c3-chart-arcs-background {\n fill: #e0e0e0;\n stroke: #FFF;\n}\n\n.c3-chart-arcs .c3-chart-arcs-gauge-unit {\n fill: #000;\n font-size: 16px;\n}\n\n.c3-chart-arcs .c3-chart-arcs-gauge-max {\n fill: #777;\n}\n\n.c3-chart-arcs .c3-chart-arcs-gauge-min {\n fill: #777;\n}\n\n.c3-chart-arc .c3-gauge-value {\n fill: #000;\n /* font-size: 28px !important;*/\n}\n\n.c3-chart-arc.c3-target g path {\n opacity: 1;\n}\n\n.c3-chart-arc.c3-target.c3-focused g path {\n opacity: 1;\n}\n\n/*-- Zoom --*/\n.c3-drag-zoom.enabled {\n pointer-events: all !important;\n visibility: visible;\n}\n\n.c3-drag-zoom.disabled {\n pointer-events: none !important;\n visibility: hidden;\n}\n\n.c3-drag-zoom .extent {\n fill-opacity: 0.1;\n}\n/*\r\n Rangeable\r\n Copyright (c) 2018 Karl Saunders\r\n Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)\r\n and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.\r\n\r\n Version: 0.1.6\r\n\r\n*/\n.rangeable-container.combined-tooltip.dragging .rangeable-progress>.rangeable-tooltip,.rangeable-container.combined-tooltip.rangeable-tooltips--visible .rangeable-progress>.rangeable-tooltip,.rangeable-container.dragging.rangeable-tooltips .rangeable-handle .rangeable-tooltip,.rangeable-container.rangeable-tooltips--visible.rangeable-tooltips .rangeable-handle .rangeable-tooltip,.rangeable-container.rangeable-vertical.combined-tooltip .rangeable-progress>.rangeable-tooltip::before{display:block}\n.rangeable-container{cursor:pointer;width:100%}\n.rangeable-container.rangeable-disabled{opacity:.6;cursor:not-allowed}\n.rangeable-container.rangeable-multiple.combined-tooltip .rangeable-handle .rangeable-tooltip,.rangeable-container.rangeable-vertical.combined-tooltip .rangeable-handle .rangeable-tooltip{opacity:0}\n.rangeable-container.focus .rangeable-handle{border:1px solid #74b9ff}\n.rangeable-container.rangeable-multiple .rangeable-handle:nth-child(1){left:0;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}\n.rangeable-container.rangeable-multiple .rangeable-handle:nth-child(2){right:0}\n.rangeable-container.rangeable-vertical{height:100%;width:auto}\n.rangeable-container.rangeable-vertical .rangeable-track{width:8px;height:100%}\n.rangeable-container.rangeable-vertical .rangeable-progress{width:8px;height:100%;top:auto;bottom:0;-webkit-transform-origin:0 100% 0;-ms-transform-origin:0 100% 0;transform-origin:0 100% 0}\n.rangeable-container.rangeable-vertical .rangeable-handle{right:auto;left:50%;top:0;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}\n.rangeable-container.rangeable-vertical .rangeable-tooltip{position:absolute;top:50%;left:calc(100% + 6px + 4px + 5px);right:auto;bottom:auto;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}\n.rangeable-container.rangeable-vertical .rangeable-tooltip::before{right:100%;left:auto;top:50%;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0);border-width:4px 4px 4px 0;border-color:transparent #3db13d transparent transparent}\n.rangeable-container.rangeable-vertical .rangeable-buffer{width:100%;height:0}\n.rangeable-container.rangeable-vertical.rangeable-multiple .rangeable-handle:nth-child(1){top:0;left:50%}\n.rangeable-container.rangeable-vertical.rangeable-multiple .rangeable-handle:nth-child(2){bottom:0;top:auto;-webkit-transform:translate3d(-50%,50%,0);transform:translate3d(-50%,50%,0)}\n.rangeable-input{position:absolute;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;margin:-1px;padding:0;border:0}\n.rangeable-input:focus+.rangeable-track .rangeable-handle::after{position:absolute;width:22px;height:22px;bottom:-6px;right:-6px;outline:#000 dotted 1px;content:\"\"}\n.rangeable-progress,.rangeable-track{height:8px;width:100%;border-radius:4px}\n.rangeable-track{background-color:#ccc;position:relative}\n.rangeable-progress{background-color:#3db13d;position:absolute;left:0;top:0;-webkit-transform-origin:0 0 0;-ms-transform-origin:0 0 0;transform-origin:0 0 0}\n.rangeable-progress>.rangeable-tooltip{display:none;z-index:11;top:auto;bottom:calc(100% + 7px + 9px);white-space:nowrap}\n.rangeable-handle{-webkit-box-sizing:border-box;box-sizing:border-box;width:22px;height:22px;border:6px solid #3db13d;border-radius:50%;background-color:#fff;position:absolute;top:50%;right:0;-webkit-transform:translate3d(50%,-50%,0);transform:translate3d(50%,-50%,0)}\n.rangeable-handle:focus{outline:0}\n.rangeable-handle:focus::after{position:absolute;width:22px;height:22px;bottom:-6px;right:-6px;outline:#000 dotted 1px;content:\"\"}\n.rangeable-handle.active{z-index:10}\n.rangeable-handle .rangeable-tooltip{display:none}\n.rangeable-tooltip{position:absolute;right:50%;bottom:calc(100% + 6px + 4px + 5px);-webkit-transform:translate3d(50%,0,0);transform:translate3d(50%,0,0);text-align:center;padding:2px 13px;background-color:#3db13d;border-radius:4px;font-weight:700;font-size:16px;color:#fff;font-family:Inconsolata,Consolas,Courier New,Lucida Console,sans-serif}\n.rangeable-tooltip::before{width:0;height:0;border-width:4px 4px 0;border-style:solid;border-color:#3db13d transparent transparent;position:absolute;left:50%;top:100%;-webkit-transform:translate3d(-50%,0,0);transform:translate3d(-50%,0,0);content:\"\"}\n.rangeable-buffers{position:absolute;left:0;top:0;height:100%;width:100%}\n.rangeable-buffer{position:absolute;background-color:rgba(0,0,0,.2);border-radius:4px;height:100%}\n/* WRAPPER */\n.keen-dataviz {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n font-family: 'Gotham Rounded SSm A', 'Gotham Rounded SSm B', 'Helvetica Neue', Helvetica, Arial, sans-serif;\n font-family: 'Gotham Rounded SSm A', 'Gotham Rounded SSm B', 'Helvetica Neue', Helvetica, Arial, sans-serif;\n height: 100%;\n}\n.keen-dataviz .partial-interval-indicator{\n fill: #bdbdbd;\n }\n.keen-dataviz .axis {\n shape-rendering: crispEdges\n }\n.keen-dataviz-title {\n color: #4D4D4D;\n color: #4D4D4D;\n padding-bottom: 0.8em;\n }\n.keen-dataviz-stage {\n display: block;\n }\n.keen-dataviz-notes {\n color: #808080;\n color: #808080;\n display: block;\n font-size: 0.8em;\n }\n.keen-dataviz-box {\n border-radius: 4px;\n text-align: center;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-flow: row;\n flex-flow: row;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-direction: column;\n flex-direction: column;\n padding: 1em 0;\n min-height: 4em;\n height: inherit;\n }\n.keen-dataviz-button {\n padding: 0.5rem 1rem;\n margin: 1rem 0;\n border-radius: 4px;\n background-color: #f9f9f9;\n border-color: #d6d6d6;\n cursor: pointer;\n -webkit-transition: background-color 300ms ease;\n -o-transition: background-color 300ms ease;\n transition: background-color 300ms ease\n }\n.keen-dataviz-button:hover {\n background-color: #E7E7E7;\n background-color: #E7E7E7;\n}\n.keen-dataviz .metric-comparison {\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n color: #1A1A1A;\n color: #1A1A1A;\n background: #f9f9f9;\n }\n/* METRIC */\n.keen-dataviz-metric {\n height: inherit;\n color: #FFFFFF;\n color: #FFFFFF;\n background: rgb(0, 187, 222);\n }\n.keen-dataviz-metric-value {\n font-size: 4.3em;\n font-weight: 700;\n width: 100%;\n }\n.keen-dataviz-metric-value-smaller {\n font-size: 3em;\n }\n.keen-dataviz-metric-title {\n font-size: 2em;\n font-weight: 200;\n width: 100%;\n }\n.keen-dataviz-metric-green {\n color: #73D483;\n color: #73D483;\n font-size: 2em;\n }\n.keen-dataviz-metric-red {\n color: #FE6672;\n color: #FE6672;\n font-size: 2em;\n }\n.keen-dataviz .arrow-green {\n width: 0;\n height: 0;\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n border-bottom: 8px solid #73D483;\n border-bottom: 8px solid #73D483;\n position: relative;\n top: 0.7em;\n left: -0.6em;\n }\n.keen-dataviz .arrow-red {\n width: 0;\n height: 0;\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n border-top: 8px solid #FE6672;\n border-top: 8px solid #FE6672;\n position: relative;\n top: 0.8em;\n left: -0.6em;\n }\n/* MESSAGE */\n.keen-dataviz-message {\n color: #808080;\n color: #808080;\n font-size: 1.5em;\n width:100%;\n }\n/* FUNNEL */\n.keen-dataviz .text-label {\n fill: #1A1A1A;\n fill: #1A1A1A;\n }\n.keen-dataviz .text-main {\n fill: #FFFFFF;\n fill: #FFFFFF;\n font-size: 1.5em;\n }\n.keen-dataviz .text-second {\n fill: #FFFFFF;\n fill: #FFFFFF;\n }\n.keen-dataviz .chart-lines {\n stroke: #E7E7E7;\n stroke: #E7E7E7;\n }\n/* METRIC COMBO */\n.keen-dataviz-metric-combo {\n width: 270px;\n height: 120px;\n position: relative;\n }\n.keen-dataviz-metric-combo .metric-combo-data {\n width: 100%;\n height: 100%;\n padding: 0.5rem;\n position: absolute;\n z-index: -1;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n }\n.keen-dataviz-metric-combo .c3-chart {\n height: 120px;\n }\n.keen-dataviz-metric-combo .c3-lines {\n display: none;\n }\n.keen-dataviz-metric-combo .keen-dataviz-title,\n .keen-dataviz-metric-combo .current-count {\n width: 100%;\n }\n.keen-dataviz-metric-combo .current-count {\n margin-top: auto;\n margin-bottom: auto;\n font-size: 2rem;\n text-align: center;\n }\n.keen-dataviz-metric-combo .percent-difference {\n position: absolute;\n top: 0.5rem;\n right: 0.5rem;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n font-size: 80%;\n }\n.keen-dataviz-metric-combo .arrow-green,\n .keen-dataviz-metric-combo .arrow-red {\n margin-right: 0.25rem;\n position: static;\n border-width: 5px;\n }\n/* TABLE */\n.keen-dataviz-table {\n border-bottom: 1px solid #E7E7E7;\n border-bottom: 1px solid #E7E7E7;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n overflow: scroll;\n position: relative;\n width: 100%;\n }\n.keen-dataviz-table table {\n background: #FFFFFF;\n background: #FFFFFF;\n border-collapse: collapse;\n margin: 0;\n position: relative;\n width: 100%;\n }\n.keen-dataviz-table table .table-pagination td {\n background-color: #FFFFFF;\n background-color: #FFFFFF;\n }\n.keen-dataviz-table table .table-pagination:hover td {\n background-color: #FFFFFF;\n background-color: #FFFFFF;\n }\n.keen-dataviz-table table .table-pagination a {\n border: 1px solid #E7E7E7;\n border: 1px solid #E7E7E7;\n padding: 0.5em;\n margin-right: 0.2em;\n cursor: pointer;\n }\n.keen-dataviz-table table .table-pagination .active{\n background: #4D4D4D;\n background: #4D4D4D;\n color: #FFFFFF;\n color: #FFFFFF;\n }\n.keen-dataviz-table table .table-pagination .arrow{\n font-weight:bold;\n }\n.keen-dataviz-table th{\n background: white;\n position: -webkit-sticky;\n position: sticky;\n top: 0;\n z-index: 10;\n cursor: pointer;\n }\n.keen-dataviz-table th,\n .keen-dataviz-table td {\n border-collapse: collapse;\n font-size: 1em;\n padding: 0.7em;\n text-align: left;\n white-space: nowrap;\n }\n.keen-dataviz-table th {\n border-bottom: 1px solid #E7E7E7;\n border-bottom: 1px solid #E7E7E7;\n color: #4D4D4D;\n color: #4D4D4D;\n }\n.keen-dataviz-table td {\n background-color: #FFFFFF;\n background-color: #FFFFFF;\n color: #4D4D4D;\n color: #4D4D4D;\n -webkit-transition: background-color 0.1s, color 0.05s;\n -o-transition: background-color 0.1s, color 0.05s;\n transition: background-color 0.1s, color 0.05s;\n }\n.keen-dataviz-table .table-data-row:nth-child(even) td{\n background-color: #F3F5F6;\n }\n.keen-dataviz-table .table-data-row:hover td{\n background-color: #E7E7E7;\n background-color: #E7E7E7;\n color: #4D4D4D;\n color: #4D4D4D;\n }\n.keen-dataviz-table .keen-dataviz-table-fixed-header {\n background: #FFFFFF;\n background: #FFFFFF;\n border-bottom: 1px solid rgba(0,0,0,.15);\n position: absolute;\n top: 0;\n -webkit-transition: top .1s;\n -o-transition: top .1s;\n transition: top .1s;\n }\n.keen-dataviz .keen-spinner-indicator {\n border-radius: 100%;\n border: 3px solid rgba(0, 0, 0, .1);\n border-top-color: rgba(0, 0, 0, .45);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n height: 3em;\n width: 3em;\n -webkit-animation:spin .7s linear infinite;\n animation:spin .7s linear infinite;\n -ms-animation: spin .7s linear infinite;\n -o-animation: spin .7s linear infinite;\n }\n.keen-dataviz-execution-meta {\n position: absolute;\n z-index: 999;\n padding: 0.5rem 1rem;\n margin: 0.75rem 0;\n display: inline-grid;\n grid-template-columns: repeat(2, -webkit-max-content);\n grid-template-columns: repeat(2, max-content);\n grid-gap: 0.5em 1em;\n text-transform: uppercase;\n font-size: 0.75rem;\n border: 1px solid #eee;\n background: #fff;\n }\n.keen-dataviz-execution-meta dt {\n font-weight: bold\n }\n.keen-dataviz-execution-meta dt:hover + dd {\n font-weight: bold;\n}\n.keen-dataviz-execution-meta dt, .keen-dataviz-execution-meta dd {\n margin: 0;\n cursor: pointer;\n }\n.keen-dataviz-execution-meta .copied:after {\n content: 'copied!';\n vertical-align: middle;\n display: inline-block;\n font-size: 10px;\n margin-left: 0.5em;\n position: absolute;\n text-transform: none;\n font-weight: normal;\n -webkit-animation: 1s ease 0s 1 both fadeOut;\n animation: 1s ease 0s 1 both fadeOut;\n}\n@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }\n@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }\n@-webkit-keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }\n@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }\n/* C3 CUSTOMIZATIONS */\n.keen-dataviz .c3-axis-y path {\n display: none;\n }\n.keen-dataviz .c3-axis-y .tick line{\n display: none;\n }\n.keen-dataviz .tick line, .keen-dataviz path.domain{\n stroke-opacity: 0.2;\n }\n.keen-dataviz .c3-ygrid{\n stroke-dasharray: none;\n stroke-opacity: 0.1;\n }\n.keen-dataviz .c3-ygrids :nth-child(even) {\n display: none;\n }\n.keen-dataviz .c3-tooltip {\n border: 1px solid rgba(0, 0, 0, 0.1);\n padding: 0.2em;\n border-radius: 0.2em;\n -webkit-box-shadow: none;\n box-shadow: none;\n border-collapse: separate;\n }\n.keen-dataviz .c3-tooltip th {\n text-align: center;\n }\n.keen-dataviz .c3-tooltip table, .keen-dataviz .c3-tooltip th, .keen-dataviz .c3-tooltip tr, .keen-dataviz .c3-tooltip td {\n border: none;\n background: none;\n font-size: 0.9em;\n }\n.keen-dataviz .c3-tooltip-container th {\n max-width: 50%;\n word-wrap: break-word;\n color: #1A1A1A;\n color: #1A1A1A;\n background: none;\n font-weight: normal;\n }\n.keen-dataviz .c3-tooltip-container td {\n max-width: 50%;\n word-wrap: break-word;\n }\n.keen-dataviz-rendering{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-flow: row;\n flex-flow: row;\n -ms-flex-pack: distribute;\n justify-content: space-around;\n }\n.keen-dataviz-rendering .c3-chart{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-item-align: center;\n align-self: center;\n -ms-flex-order: 1;\n order: 1;\n -ms-flex: 1;\n flex: 1;\n }\n.keen-dataviz-rendering .c3-chart-100-percent{\n width: 100%;\n -ms-flex-item-align: center;\n align-self: center;\n }\n.keen-dataviz-rendering-horizontal{\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n }\n/* CUSTOM LEGEND */\n.keen-c3-legend {\n display: -ms-flexbox;\n display: flex;\n position: relative;\n top: 0;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.keen-c3-legend-horizontal{\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-item-align: end;\n align-self: flex-end;\n display: -ms-flexbox;\n display: flex;\n flex-direction: row;\n -ms-flex-pack: center;\n justify-content: center;\n width: 100%;\n padding: 0.5em 0;\n }\n.keen-c3-legend-horizontal-pagination-left{\n -ms-flex-order: 0;\n order: 0;\n display: -ms-flexbox;\n display: flex;\n margin-right: 1.5em;\n }\n.keen-c3-legend-horizontal-items{\n -ms-flex-order: 1;\n order: 1;\n display: -ms-flexbox;\n display: flex;\n }\n.keen-c3-legend-horizontal-pagination-right{\n -ms-flex-order: 2;\n order: 2;\n display: -ms-flexbox;\n display: flex;\n margin-left: 1.5em;\n }\n.keen-c3-legend-top{\n -ms-flex-order: 0;\n order: 0;\n }\n.keen-c3-legend-bottom {\n -ms-flex-order: 2;\n order: 2;\n }\n.keen-c3-legend-bottom .keen-c3-legend-label-overlay{\n top: 0;\n margin-top: -2.7em;\n }\n.keen-c3-legend-bottom .keen-c3-legend-label-overlay .overlay-pointer {\n top: 2.4em;\n -webkit-transform: rotate(180deg);\n -ms-transform: rotate(180deg);\n transform: rotate(180deg);\n border-color: transparent transparent #f0f0f0 transparent;\n }\n.keen-c3-legend-vertical{\n -ms-flex-direction: column;\n flex-direction: column;\n }\n.keen-c3-legend-vertical .keen-c3-legend-pagination-icons\n {\n margin: 0.5em 0.1em;\n -ms-flex-order: 2;\n order: 2;\n }\n.keen-c3-legend-left{\n -ms-flex-order: 0;\n order: 0;\n }\n.keen-c3-legend-right{\n -ms-flex-order: 2;\n order: 2;\n }\n.keen-c3-legend-items{\n -ms-flex-order: 1;\n order: 1;\n }\n.keen-c3-legend-vertical-items{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n }\n.keen-c3-legend-vertical-items .legend-item{\n width: 8em;\n }\n.keen-c3-legend-horizontal-items{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n }\n.keen-c3-legend-horizontal-items .legend-item{\n width: 6em;\n margin: 0 0.25em;\n }\n.keen-c3-legend .legend-item{\n display: -ms-flexbox;\n display: flex;\n cursor: pointer;\n padding: 0.2em;\n font-size: 0.8em;\n }\n.keen-c3-legend .legend-item > * {\n vertical-align: middle;\n }\n.keen-c3-legend .legend-item-color-sample{\n display: inline-block;\n width: 1em;\n height: 1em;\n margin-right: 0.5em;\n pointer-events: none;\n -ms-flex: none;\n flex: none;\n }\n.keen-c3-legend .legend-item-text{\n pointer-events: none;\n overflow: hidden;\n white-space: nowrap;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n text-align: left;\n }\n.keen-c3-legend-label-overlay .overlay-pointer {\n border-color: transparent transparent #FFFFFF transparent;\n border-color: transparent transparent #FFFFFF transparent;\n border-style: solid;\n border-width: 0 10px 10px 10px;\n height: 0;\n width: 0px;\n position: absolute;\n top: -10px;\n }\n.keen-c3-legend-position-left .overlay-pointer {\n left: 0px;\n }\n.keen-c3-legend-position-right .overlay-pointer {\n left: 0px;\n }\n.keen-c3-legend-pagination-vertical {\n margin-top: 0.5em;\n }\n.keen-c3-legend-pagination-icons {\n padding: 0.2em;\n }\n.keen-c3-legend-pagination-icons i {\n border-left: 1em solid transparent;\n border-right: 1em solid transparent;\n border-top: 1.5em solid #4D4D4D;\n border-top: 1.5em solid #4D4D4D;\n display: inline-block;\n padding: 0em;\n float: left;\n cursor: pointer;\n font-size: 0.5em;\n }\n.keen-c3-legend-pagination-icons .right {\n -ms-transform: rotate(-90deg);\n transform: rotate(-90deg);\n -webkit-transform: rotate(-90deg);\n }\n.keen-c3-legend-pagination-icons .left {\n -ms-transform: rotate(90deg);\n transform: rotate(90deg);\n -webkit-transform: rotate(90deg);\n }\n.keen-c3-legend-pagination-icons .up {\n -ms-transform: rotate(-180deg);\n transform: rotate(-180deg);\n -webkit-transform: rotate(-180deg);\n margin-top: 0.1em;\n }\n.keen-c3-legend-pagination-icons .down {\n margin-right: 0.1em;\n }\n.keen-c3-legend-label-overlay {\n font-size: 1em;\n background: rgba(255, 255, 255, 0.9);\n background: rgba(255, 255, 255, 0.9);\n -webkit-box-shadow: 0 1px 1px rgba(26, 26, 26, 0.09999999999999998);\n box-shadow: 0 1px 1px rgba(26, 26, 26, 0.09999999999999998);\n box-shadow: 0 1px 1px rgba(26, 26, 26, 0.09999999999999998);\n padding: 0.6em;\n margin-top: 1.5em;\n position: absolute;\n word-wrap: break-word;\n pointer-events: none;\n z-index: 222;\n }\n.keen-c3-legend-align-left {\n -ms-flex-pack: start;\n justify-content: flex-start;\n }\n.keen-c3-legend-align-center {\n -ms-flex-pack: center;\n justify-content: center;\n }\n.keen-c3-legend-align-right {\n -ms-flex-pack: end;\n justify-content: flex-end;\n }\n.keen-c3-legend-align-top {\n -ms-flex-pack: start;\n justify-content: flex-start;\n }\n.keen-c3-legend-align-middle {\n -ms-flex-pack: center;\n justify-content: center;\n }\n.keen-c3-legend-align-bottom {\n -ms-flex-pack: end;\n justify-content: flex-end;\n }\n.keen-dataviz-range .c3-area-Max {\n display: none;\n}\n.keen-dataviz-range .c3-bars-Max {\n display: none;\n}\n.keen-dataviz ~ .rangeable-container {\n margin: 2rem auto;\n width: 75%;\n}\n.keen-dataviz ~ .rangeable-container .rangeable-track,\n.keen-dataviz ~ .rangeable-container .rangeable-progress {\n height: 4px;\n}\n.keen-dataviz ~ .rangeable-container .rangeable-handle {\n width: 16px;\n height: 16px;\n border-width: 4px;\n}\n.keen-dataviz ~ .rangeable-container .rangeable-tooltip {\n border-radius: 0;\n font-weight: normal;\n padding: 3px 9px;\n}\n", + '' + ]); }, function(e, t) { Prism.languages.clike = { @@ -123665,7 +124491,7 @@ object-assign ][0].pattern = /(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/), Prism.languages.insertBefore('javascript', 'keyword', { regex: { - pattern: /((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})\]]))/, + pattern: /((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^\/\\\[\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})\]]))/, lookbehind: !0, greedy: !0 }, @@ -123773,7 +124599,7 @@ object-assign doctype: //i, cdata: //i, tag: { - pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/i, + pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s\/>])))+)?\s*\/?>/i, greedy: !0, inside: { tag: { @@ -123852,13 +124678,13 @@ object-assign (Prism.languages.svg = Prism.languages.markup); }, function(e, t, n) { - var r = n(390); + var r = n(387); 'string' == typeof r && (r = [[e.i, r, '']]); var o = { hmr: !0, transform: void 0, insertInto: void 0 }; - n(75)(r, o), r.locals && (e.exports = r.locals); + n(74)(r, o), r.locals && (e.exports = r.locals); }, function(e, t, n) { - (e.exports = n(74)(!1)).push([ + (e.exports = n(73)(!1)).push([ e.i, 'pre[class*="language-"].line-numbers {\n\tposition: relative;\n\tpadding-left: 3.8em;\n\tcounter-reset: linenumber;\n}\n\npre[class*="language-"].line-numbers > code {\n\tposition: relative;\n\twhite-space: inherit;\n}\n\n.line-numbers .line-numbers-rows {\n\tposition: absolute;\n\tpointer-events: none;\n\ttop: 0;\n\tfont-size: 100%;\n\tleft: -3.8em;\n\twidth: 3em; /* works for line-numbers below 1000 lines */\n\tletter-spacing: -1px;\n\tborder-right: 1px solid #999;\n\n\t-webkit-user-select: none;\n\t-moz-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none;\n\n}\n\n\t.line-numbers-rows > span {\n\t\tpointer-events: none;\n\t\tdisplay: block;\n\t\tcounter-increment: linenumber;\n\t}\n\n\t\t.line-numbers-rows > span:before {\n\t\t\tcontent: counter(linenumber);\n\t\t\tcolor: #999;\n\t\t\tdisplay: block;\n\t\t\tpadding-right: 0.8em;\n\t\t\ttext-align: right;\n\t\t}\n', '' @@ -123945,1015 +124771,61 @@ object-assign t(o), Prism.hooks.run('line-numbers', n); } - } - } - }), - Prism.hooks.add('line-numbers', function(e) { - (e.plugins = e.plugins || {}), - (e.plugins.lineNumbers = !0); - }), - (Prism.plugins.lineNumbers = { - getLine: function(e, t) { - if ( - 'PRE' === e.tagName && - e.classList.contains('line-numbers') - ) { - var n = e.querySelector('.line-numbers-rows'), - r = parseInt(e.getAttribute('data-start'), 10) || 1, - o = r + (n.children.length - 1); - t < r && (t = r), t > o && (t = o); - var i = t - r; - return n.children[i]; - } - } - }); - } - })(); - }, - function(e, t, n) { - var r = n(393); - 'string' == typeof r && (r = [[e.i, r, '']]); - var o = { hmr: !0, transform: void 0, insertInto: void 0 }; - n(75)(r, o), r.locals && (e.exports = r.locals); - }, - function(e, t, n) { - (e.exports = n(74)(!1)).push([ - e.i, - '/**\n * prism.js default theme for JavaScript, CSS and HTML\n * Based on dabblet (http://dabblet.com)\n * @author Lea Verou\n */\n\ncode[class*="language-"],\npre[class*="language-"] {\n\tcolor: black;\n\tbackground: none;\n\ttext-shadow: 0 1px white;\n\tfont-family: Consolas, Monaco, \'Andale Mono\', \'Ubuntu Mono\', monospace;\n\tfont-size: 1em;\n\ttext-align: left;\n\twhite-space: pre;\n\tword-spacing: normal;\n\tword-break: normal;\n\tword-wrap: normal;\n\tline-height: 1.5;\n\n\t-moz-tab-size: 4;\n\t-o-tab-size: 4;\n\ttab-size: 4;\n\n\t-webkit-hyphens: none;\n\t-moz-hyphens: none;\n\t-ms-hyphens: none;\n\thyphens: none;\n}\n\npre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,\ncode[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {\n\ttext-shadow: none;\n\tbackground: #b3d4fc;\n}\n\npre[class*="language-"]::selection, pre[class*="language-"] ::selection,\ncode[class*="language-"]::selection, code[class*="language-"] ::selection {\n\ttext-shadow: none;\n\tbackground: #b3d4fc;\n}\n\n@media print {\n\tcode[class*="language-"],\n\tpre[class*="language-"] {\n\t\ttext-shadow: none;\n\t}\n}\n\n/* Code blocks */\npre[class*="language-"] {\n\tpadding: 1em;\n\tmargin: .5em 0;\n\toverflow: auto;\n}\n\n:not(pre) > code[class*="language-"],\npre[class*="language-"] {\n\tbackground: #f5f2f0;\n}\n\n/* Inline code */\n:not(pre) > code[class*="language-"] {\n\tpadding: .1em;\n\tborder-radius: .3em;\n\twhite-space: normal;\n}\n\n.token.comment,\n.token.prolog,\n.token.doctype,\n.token.cdata {\n\tcolor: slategray;\n}\n\n.token.punctuation {\n\tcolor: #999;\n}\n\n.namespace {\n\topacity: .7;\n}\n\n.token.property,\n.token.tag,\n.token.boolean,\n.token.number,\n.token.constant,\n.token.symbol,\n.token.deleted {\n\tcolor: #905;\n}\n\n.token.selector,\n.token.attr-name,\n.token.string,\n.token.char,\n.token.builtin,\n.token.inserted {\n\tcolor: #690;\n}\n\n.token.operator,\n.token.entity,\n.token.url,\n.language-css .token.string,\n.style .token.string {\n\tcolor: #9a6e3a;\n\tbackground: hsla(0, 0%, 100%, .5);\n}\n\n.token.atrule,\n.token.attr-value,\n.token.keyword {\n\tcolor: #07a;\n}\n\n.token.function,\n.token.class-name {\n\tcolor: #DD4A68;\n}\n\n.token.regex,\n.token.important,\n.token.variable {\n\tcolor: #e90;\n}\n\n.token.important,\n.token.bold {\n\tfont-weight: bold;\n}\n.token.italic {\n\tfont-style: italic;\n}\n\n.token.entity {\n\tcursor: help;\n}\n', - '' - ]); - }, - function(e, t, n) { - 'use strict'; - n.r(t); - var r = n(0), - o = n.n(r), - i = n(163), - a = n.n(i), - s = n(58), - c = n(2), - u = n(164), - l = n(165), - f = n.n(l), - d = n(166), - p = n.n(d), - h = n(167), - g = n.n(h); - function m(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}, - r = Object.keys(n); - 'function' == typeof Object.getOwnPropertySymbols && - (r = r.concat( - Object.getOwnPropertySymbols(n).filter(function(e) { - return Object.getOwnPropertyDescriptor(n, e).enumerable; - }) - )), - r.forEach(function(t) { - b(e, t, n[t]); - }); - } - return e; - } - function b(e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e - ); - } - n(338); - var y = { - items: [], - schemas: {}, - recentEvents: [], - fetchingSchema: !1, - fetchingRecentEvents: !1 - }, - v = function() { - var e = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : m({}, y), - t = arguments.length > 1 ? arguments[1] : void 0; - switch (t.type) { - case 'CLIENT_FETCH_PROJECT_SUCCESS': - return m({}, e, { items: t.payload.events }); - case 'CLIENT_FETCH_SCHEMA': - return m({}, e, { fetchingSchema: !0 }); - case 'CLIENT_FETCH_SCHEMA_SUCCESS': - return m({}, e, { - schemas: m( - {}, - e.schemas, - b({}, t.eventCollection, m({}, t.payload.properties)) - ), - fetchingSchema: !1 - }); - case 'CLIENT_FETCH_SCHEMA_ERROR': - return m({}, e, { fetchingSchema: !1 }); - case 'CLIENT_FETCH_RECENT_EVENTS': - return m({}, e, { fetchingRecentEvents: !0 }); - case 'CLIENT_FETCH_RECENT_EVENTS_SUCCESS': - return m({}, e, { - fetchingRecentEvents: !1, - recentEvents: t.payload.result - }); - case 'CLIENT_FETCH_RECENT_EVENTS_ERROR': - return m({}, e, { fetchingRecentEvents: !0 }); - default: - return e; - } - }; - function _(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}, - r = Object.keys(n); - 'function' == typeof Object.getOwnPropertySymbols && - (r = r.concat( - Object.getOwnPropertySymbols(n).filter(function(e) { - return Object.getOwnPropertyDescriptor(n, e).enumerable; - }) - )), - r.forEach(function(t) { - x(e, t, n[t]); - }); - } - return e; - } - function x(e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e - ); - } - var w = { - results: null, - saved: [], - isSavingQuery: !1, - isLimited: !1 - }, - M = function() { - var e = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : _({}, w), - t = arguments.length > 1 ? arguments[1] : void 0; - switch (t.type) { - case 'CLIENT_RUN_QUERY_SUCCESS': - return _({}, e, { results: t.payload }); - case 'CLIENT_SAVE_QUERY': - return _({}, e, { isSavingQuery: !0 }); - case 'CLIENT_SAVE_QUERY_SUCCESS': - case 'CLIENT_SAVE_QUERY_ERROR': - return _({}, e, { - isSavingQuery: !1, - results: w.results - }); - case 'CLIENT_FETCH_SAVED_QUERIES_SUCCESS': - return _({}, e, { saved: t.payload }); - case 'CLIENT_DELETE_QUERY_SUCCESS': - return _({}, e, { - saved: e.saved.filter(function(e) { - return e.query_name !== t.payload.name; - }) - }); - case 'UPDATE_ACTIVE_SAVED_QUERY': - return _({}, e, { activeSavedQuery: t.payload }); - case 'RESET_UI': - case 'QUERY_RESET_RESULTS': - return _({}, e, { results: w.results }); - case 'ABOVE_CACHE_QUERY_LIMIT': - return _({}, e, { isLimited: !0, isSavingQuery: !1 }); - case 'BELOW_CACHE_QUERY_LIMIT': - return _({}, e, { isLimited: !1, isSavingQuery: !1 }); - default: - return e; - } - }, - k = n(10), - S = n.n(k), - A = [ - { type: 'average', targetProperty: !0 }, - { type: 'count', default: !0 }, - { type: 'count_unique', targetProperty: !0 }, - { type: 'extraction', extraction: !0 }, - { type: 'funnel', funnel: !0 }, - { type: 'maximum', targetProperty: !0 }, - { type: 'median', targetProperty: !0 }, - { type: 'minimum', targetProperty: !0 }, - { type: 'percentile', targetProperty: !0, percentile: !0 }, - { type: 'select_unique', targetProperty: !0 }, - { type: 'standard_deviation', targetProperty: !0 }, - { type: 'sum', targetProperty: !0 } - ], - O = ['minutes', 'hours', 'days', 'weeks', 'months', 'years'], - E = ['this', 'previous'], - T = '' - .concat(E[0], '_') - .concat(14, '_') - .concat(O[2]), - C = { - start: '' - .concat( - S()() - .subtract(1, 'day') - .format('YYYY-MM-DD'), - 'T' - ) - .concat( - S()(S()().format('YYYY-MM-DD')).format('HH:mm'), - ':00.000Z' - ), - end: '' - .concat( - S()(S()().format('YYYY-MM-DD')).format('YYYY-MM-DD'), - 'T' - ) - .concat( - S()(S()().format('YYYY-MM-DD')).format('HH:mm'), - ':00.000Z' - ) - }, - L = [ - 'minutely', - 'hourly', - 'daily', - 'weekly', - 'monthly', - 'yearly' - ], - P = L[2], - D = 'every_7_'.concat(O[2]), - z = [ - { label: 'UTC', value: 0, dst_value: 0 }, - { label: 'Europe/London', value: 0, dst_value: 3600 }, - { label: 'Africa/Casablanca', value: 0, dst_value: 0 }, - { label: 'Africa/Nairobi', value: 10800, dst_value: 0 }, - { label: 'Asia/Dubai', value: 14400, dst_value: 0 }, - { - label: 'America/Sao_Paulo', - value: -10800, - dst_value: -7200 - }, - { label: 'US/Eastern', value: -18e3, dst_value: -14400 }, - { label: 'US/Central', value: -21600, dst_value: -18e3 }, - { label: 'US/Mountain', value: -25200, dst_value: -21600 }, - { label: 'US/Pacific', value: -28800, dst_value: -25200 }, - { label: 'US/Alaska', value: -32400, dst_value: -28800 }, - { label: 'US/Hawaii', value: -36e3, dst_value: -32400 }, - { label: 'Europe/Paris', value: 3600, dst_value: 7200 }, - { label: 'Europe/Amsterdam', value: 3600, dst_value: 7200 }, - { label: 'Europe/Stockholm', value: 3600, dst_value: 7200 }, - { label: 'Europe/Prague', value: 3600, dst_value: 7200 }, - { label: 'Asia/Istanbul', value: 7200, dst_value: 10800 }, - { label: 'Europe/Istanbul', value: 7200, dst_value: 10800 }, - { label: 'Europe/Copenhagen', value: 3600, dst_value: 7200 }, - { label: 'Asia/Jakarta', value: 25200, dst_value: 25200 }, - { label: 'Asia/Singapore', value: 28800, dst_value: 28800 }, - { label: 'Australia/Perth', value: 28800, dst_value: 28800 }, - { label: 'Asia/Tokyo', value: 32400, dst_value: 32400 }, - { label: 'Australia/Sydney', value: 36e3, dst_value: 39600 }, - { label: 'Pacific/Auckland', value: 43200, dst_value: 46800 } - ], - N = [ - { - label: '= Equal to', - value: 'eq', - dataTypes: [ - 'String', - 'Number', - 'Null', - 'List', - 'Boolean', - 'Datetime' - ] - }, - { - label: '≠ Not equal to', - value: 'ne', - dataTypes: [ - 'String', - 'Number', - 'Null', - 'List', - 'Boolean', - 'Datetime' - ] - }, - { - label: '> Greater than', - value: 'gt', - dataTypes: ['Number', 'Null', 'Datetime', 'String'] - }, - { - label: '≥ Greater than or equal to', - value: 'gte', - dataTypes: ['Number', 'Null', 'Datetime', 'String'] - }, - { - label: '< Less than', - value: 'lt', - dataTypes: ['Number', 'Null', 'Datetime', 'String'] - }, - { - label: '≤ Less than or equal to', - value: 'lte', - dataTypes: ['Number', 'Null', 'Datetime', 'String'] - }, - { - label: '∃ Property exists', - value: 'exists', - dataTypes: ['String', 'Number', 'Boolean'] - }, - { - label: '⊚ String contains', - value: 'contains', - dataTypes: ['String', 'Null'] - }, - { - label: '⍉ String does not contain', - value: 'not_contains', - dataTypes: ['String', 'Null'] - }, - { label: '⊚ Regex', value: 'regex', dataTypes: ['String'] }, - { - label: '⧇ Matches any value in a list', - value: 'in', - dataTypes: ['String', 'Number', 'List'] - }, - { - label: '⚐ Within a given radius (geo)', - value: 'within', - dataTypes: ['Geo', 'List'] - } - ], - j = [ - { label: 'String', value: 'String' }, - { label: 'Number', value: 'Number' }, - { label: 'Null', value: 'Null' }, - { label: 'List', value: 'List' }, - { label: 'Boolean', value: 'Boolean' }, - { label: 'Datetime', value: 'Datetime' } - ]; - function R(e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e - ); - } - var I = function(e) { - var t = e; - if (t) { - t.analysis_type && - (t = (function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}, - r = Object.keys(n); - 'function' == typeof Object.getOwnPropertySymbols && - (r = r.concat( - Object.getOwnPropertySymbols(n).filter(function( - e - ) { - return Object.getOwnPropertyDescriptor(n, e) - .enumerable; - }) - )), - r.forEach(function(t) { - R(e, t, n[t]); - }); - } - return e; - })({}, e, { - groupBy: e.group_by, - analysisType: e.analysis_type - })); - var n, - r = 'string' == typeof t.interval, - o = - 'string' == typeof t.groupBy || - (t.groupBy instanceof Array && 1 === t.groupBy.length), - i = t.groupBy instanceof Array && 2 === t.groupBy.length; - return ( - 'funnel' === t.analysisType - ? (n = 'catOrdinal') - : 'extraction' === t.analysisType - ? (n = 'extraction') - : 'select_unique' === t.analysisType - ? (n = 'nominal') - : o || r || i - ? o && !r - ? (n = 'categorical') - : !r || o || i - ? r && (o || i) - ? (n = 'catChronological') - : !r && i && (n = 'categorical') - : (n = 'chronological') - : (n = 'singular'), - 'extraction' === t.analysisType && (n = 'extraction'), - 'funnel' === t.analysisType && (n = 'funnel'), - n - ); - } - }, - F = function(e) { - if (e) - return { - singular: ['metric'], - categorical: [ - 'bar', - 'horizontal-bar', - 'pie', - 'donut', - 'table' - ], - catInterval: [ - 'area', - 'bar', - 'horizontal-bar', - 'line', - 'spline', - 'area-spline', - 'step', - 'area-step', - 'table' - ], - catOrdinal: [ - 'area', - 'bar', - 'horizontal-bar', - 'line', - 'spline', - 'area-spline', - 'step', - 'area-step', - 'table' - ], - chronological: [ - 'area', - 'bar', - 'line', - 'spline', - 'area-spline', - 'step', - 'area-step', - 'table' - ], - catChronological: [ - 'area', - 'bar', - 'horizontal-bar', - 'line', - 'spline', - 'area-spline', - 'step', - 'area-step', - 'table' - ], - nominal: ['table'], - extraction: ['table'], - funnel: [ - 'horizontal-bar', - 'funnel', - 'horizontal-funnel', - 'funnel-3d', - 'horizontal-funnel-3d', - 'table' - ] - }[I(e)].concat(['JSON']); - }, - q = function(e) { - var t = e.query; - if (t) { - if ( - e && - e.metadata && - e.metadata.visualization && - e.metadata.visualization.chart_type - ) - return e.metadata.visualization.chart_type; - var n = F(t); - return n.length ? n[0] : 'JSON'; - } - }; - function B(e) { - return ( - (function(e) { - if (Array.isArray(e)) { - for ( - var t = 0, n = new Array(e.length); - t < e.length; - t++ - ) - n[t] = e[t]; - return n; - } - })(e) || - (function(e) { - if ( - Symbol.iterator in Object(e) || - '[object Arguments]' === Object.prototype.toString.call(e) - ) - return Array.from(e); - })(e) || - (function() { - throw new TypeError( - 'Invalid attempt to spread non-iterable instance' - ); - })() - ); - } - function H(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}, - r = Object.keys(n); - 'function' == typeof Object.getOwnPropertySymbols && - (r = r.concat( - Object.getOwnPropertySymbols(n).filter(function(e) { - return Object.getOwnPropertyDescriptor(n, e).enumerable; - }) - )), - r.forEach(function(t) { - Y(e, t, n[t]); - }); - } - return e; - } - function Y(e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e - ); - } - var W = A.find(function(e) { - return e.default; - }), - V = { - name: '', - displayName: '', - cache: !1, - refreshRate: 0, - exists: !1 - }, - U = { - eventCollection: void 0, - actorProperty: void 0, - timeframe: T, - timezone: parseInt(localStorage.timezone || 0, 0), - filters: [], - inverted: !1, - optional: !1, - withActors: !1 - }, - X = parseInt(localStorage.timezone || 0, 0), - G = { - autoload: !1, - analysisType: W.type, - eventCollection: localStorage.eventCollection || void 0, - targetProperty: void 0, - filters: [], - modalFilters: !1, - modalEmbedHTML: !1, - modalPreviewCollection: !1, - groupBy: void 0, - orderBy: void 0, - limit: void 0, - latest: 100, - email: '', - contentEncoding: void 0, - propertyNames: [], - interval: void 0, - numberOfGroupByProps: 1, - timeframe: T, - timezone: X, - percentile: void 0, - chartType: void 0, - savedQuery: H({}, V), - error: null, - fetching: !1, - activePanel: 0, - panelSave: !1, - extractionActiveTab: 0, - steps: [H({}, U)], - activeStep: 0, - stepLabels: [''], - loadHeavySchemas: !1, - components: { - eventCollection: !0, - previewCollections: !0, - analysisType: !0, - timeframe: !0, - timezone: !0, - filters: !0, - groupBy: !0, - interval: !0, - apiQueryUrl: !0, - actorProperty: !0, - step: !0, - savedQueryBrowser: !0, - results: !0, - saveButton: !0, - downloadButton: !0, - embedButton: !0 - } - }, - K = function() { - var e = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : G, - t = arguments.length > 1 ? arguments[1] : void 0; - switch (t.type) { - case 'UI_UPDATE': - return H({}, e, t.payload); - case 'UI_STEP_UPDATE': - return H( - {}, - e, - { - steps: e.steps.map(function(e, n) { - return n === t.step && (e = H({}, e, t.payload)), e; - }) - }, - t.rootPayload - ); - case 'CHANGE_EVENT_COLLECTION': - return H({}, e, t.payload); - case 'CLIENT_RUN_QUERY': - return H({}, e, { error: null, fetching: !0 }); - case 'CLIENT_RUN_QUERY_ERROR': - return H({}, e, { error: t.payload, fetching: !1 }); - case 'CLIENT_RUN_QUERY_SUCCESS': - return H({}, e, { - fetching: !1, - chartType: q(t.payload) - }); - case 'UPDATE_SAVED_QUERY_UI': - return H({}, e, { - savedQuery: H({}, e.savedQuery, t.payload) - }); - case 'CLIENT_SAVE_QUERY_SUCCESS': - return H({}, e, { - savedQuery: H({}, e.savedQuery, { exists: !0 }) - }); - case 'RESET_SAVED_QUERY_UI': - return H({}, e, { savedQuery: H({}, V) }); - case 'RESET_UI': - return H({}, G); - case 'ADD_FILTER': - return H({}, e, { - filters: [].concat(B(e.filters), [ - { - propertyName: '', - operator: 'eq', - propertyType: 'String', - propertyValue: '' - } - ]) - }); - case 'DELETE_FILTER': - return H({}, e, { - filters: e.filters.filter(function(e, n) { - return n !== t.payload; - }) - }); - case 'UPDATE_FILTER': - return H({}, e, { - filters: e.filters.map(function(e, n) { - return t.payload.index !== n - ? e - : H({}, e, t.payload.item); - }) - }); - case 'ADD_STEP_FILTER': - return H({}, e, { - steps: e.steps.map(function(e, n) { - return ( - n === t.step && - (e.filters = [].concat(B(e.filters), [ - { - propertyName: '', - operator: 'eq', - propertyType: 'String', - propertyValue: '' - } - ])), - e - ); - }) - }); - case 'DELETE_STEP_FILTER': - return H({}, e, { - steps: e.steps.map(function(e, n) { - return ( - n === t.step && - (e.filters = e.filters.filter(function(e, n) { - return n !== t.payload.index; - })), - e - ); - }) - }); - case 'UPDATE_STEP_FILTER': - return H({}, e, { - steps: e.steps.map(function(e, n) { - if (n === t.step) { - var r = e.filters.map(function(e, n) { - return t.payload.index !== n - ? e - : H({}, e, t.payload.item); - }); - e.filters = r; - } - return e; - }) - }); - case 'TOGGLE_PANEL_SAVE': - return H({}, e, { panelSave: !e.panelSave }); - case 'ADD_STEP': - var n = e.steps[e.steps.length - 1] || {}, - r = { - timeframe: n.timeframe || T, - timezone: n.timezone || X, - withActors: !!n.withActors - }; - return H({}, e, { - steps: [].concat(B(e.steps), [H({}, U, r)]), - stepLabels: [].concat(B(e.stepLabels), ['']), - activeStep: e.steps.length - }); - case 'DELETE_STEP': - return H({}, e, { - steps: e.steps.filter(function(e, n) { - return n !== t.payload; - }), - stepLabels: e.stepLabels.filter(function(e, n) { - return n !== t.payload; - }) - }); - case 'CACHE_QUERY_LIMIT_ERROR': - return H({}, e, { error: t.payload }); - default: - return e; - } - }, - $ = Object(s.combineReducers)({ - collections: v, - queries: M, - ui: K - }), - Q = function(e) { - return '@@redux-saga/' + e; - }, - J = Q('IO'), - Z = Q('MULTICAST'), - ee = Q('SELF_CANCELLATION'), - te = function(e) { - return null != e; - }, - ne = function(e) { - return 'function' == typeof e; - }, - re = function(e) { - return 'string' == typeof e; - }, - oe = Array.isArray, - ie = function e(t) { - return ( - t && (re(t) || se(t) || ne(t) || (oe(t) && t.every(e))) - ); - }, - ae = function(e) { - return e && ne(e.take) && ne(e.close); - }, - se = function(e) { - return ( - Boolean(e) && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ); - }, - ce = function(e) { - return e; - }; - 'function' == typeof Symbol && - Symbol.asyncIterator && - Symbol.asyncIterator; - var ue = function(e) { - throw e; - }, - le = function(e) { - return { value: e, done: !0 }; - }, - fe = function(e, t) { - var n; - return ( - ((n = {})[J] = !0), - (n.combinator = !1), - (n.type = e), - (n.payload = t), - n - ); - }; - function de(e, t) { - if ((void 0 === e && (e = '*'), ie(e))) - return fe('TAKE', { pattern: e }); - if (ae((n = e)) && n[Z] && te(t) && ie(t)) - return fe('TAKE', { channel: e, pattern: t }); - var n; - if (ae(e)) return fe('TAKE', { channel: e }); - throw new Error( - 'take(patternOrChannel): argument ' + - e + - ' is not valid channel or a valid pattern' - ); - } - function pe(e, t) { - return ( - null == t && ((t = e), (e = void 0)), - fe('PUT', { channel: e, action: t }) - ); - } - function he(e, t) { - var n, - r = null; - return ( - ne(e) - ? (n = e) - : (oe(e) - ? ((r = e[0]), (n = e[1])) - : ((r = e.context), (n = e.fn)), - r && re(n) && ne(r[n]) && (n = r[n])), - { context: r, fn: n, args: t } - ); - } - function ge(e) { - for ( - var t = arguments.length, - n = new Array(t > 1 ? t - 1 : 0), - r = 1; - r < t; - r++ - ) - n[r - 1] = arguments[r]; - return fe('FORK', he(e, n)); - } - function me(e) { - return void 0 === e && (e = ee), fe('CANCEL', e); - } - function be(e) { - void 0 === e && (e = ce); - for ( - var t = arguments.length, - n = new Array(t > 1 ? t - 1 : 0), - r = 1; - r < t; - r++ - ) - n[r - 1] = arguments[r]; - return fe('SELECT', { selector: e, args: n }); - } - var ye = function(e) { - return { done: !0, value: e }; - }, - ve = {}; - function _e(e) { - return ae(e) - ? 'channel' - : ne((t = e)) && t.hasOwnProperty('toString') - ? String(e) - : ne(e) - ? e.name - : String(e); - var t; - } - function xe(e, t, n) { - var r, - o, - i, - a = t; - function s(t, n) { - if (a === ve) return ye(t); - if (n && !o) throw ((a = ve), n); - r && r(t); - var s = n ? e[o](n) : e[a](); - return ( - (a = s.nextState), - (i = s.effect), - (r = s.stateUpdater), - (o = s.errorState), - a === ve ? ye(t) : i - ); - } - return (function(e, t, n) { - void 0 === t && (t = ue), void 0 === n && (n = 'iterator'); - var r = { - meta: { name: n }, - next: e, - throw: t, - return: le, - isSagaIterator: !0 - }; - return ( - 'undefined' != typeof Symbol && - (r[Symbol.iterator] = function() { - return r; - }), - r - ); - })( - s, - function(e) { - return s(null, e); - }, - n - ); - } - function we(e, t) { - for ( - var n = arguments.length, - r = new Array(n > 2 ? n - 2 : 0), - o = 2; - o < n; - o++ - ) - r[o - 2] = arguments[o]; - var i, - a, - s = { done: !1, value: de(e) }, - c = function(e) { - return { - done: !1, - value: ge.apply(void 0, [t].concat(r, [e])) - }; - }, - u = function(e) { - return { done: !1, value: me(e) }; - }, - l = function(e) { - return (i = e); - }, - f = function(e) { - return (a = e); - }; - return xe( - { - q1: function() { - return { nextState: 'q2', effect: s, stateUpdater: f }; - }, - q2: function() { - return i - ? { nextState: 'q3', effect: u(i) } - : { nextState: 'q1', effect: c(a), stateUpdater: l }; - }, - q3: function() { - return { nextState: 'q1', effect: c(a), stateUpdater: l }; - } - }, - 'q1', - 'takeLatest(' + _e(e) + ', ' + t.name + ')' - ); - } - function Me(e, t) { - for ( - var n = arguments.length, - r = new Array(n > 2 ? n - 2 : 0), - o = 2; - o < n; - o++ - ) - r[o - 2] = arguments[o]; - return ge.apply(void 0, [we, e, t].concat(r)); - } - function ke(e) { + } + } + }), + Prism.hooks.add('line-numbers', function(e) { + (e.plugins = e.plugins || {}), + (e.plugins.lineNumbers = !0); + }), + (Prism.plugins.lineNumbers = { + getLine: function(e, t) { + if ( + 'PRE' === e.tagName && + e.classList.contains('line-numbers') + ) { + var n = e.querySelector('.line-numbers-rows'), + r = parseInt(e.getAttribute('data-start'), 10) || 1, + o = r + (n.children.length - 1); + t < r && (t = r), t > o && (t = o); + var i = t - r; + return n.children[i]; + } + } + }); + } + })(); + }, + function(e, t, n) { + var r = n(390); + 'string' == typeof r && (r = [[e.i, r, '']]); + var o = { hmr: !0, transform: void 0, insertInto: void 0 }; + n(74)(r, o), r.locals && (e.exports = r.locals); + }, + function(e, t, n) { + (e.exports = n(73)(!1)).push([ + e.i, + '/**\n * prism.js default theme for JavaScript, CSS and HTML\n * Based on dabblet (http://dabblet.com)\n * @author Lea Verou\n */\n\ncode[class*="language-"],\npre[class*="language-"] {\n\tcolor: black;\n\tbackground: none;\n\ttext-shadow: 0 1px white;\n\tfont-family: Consolas, Monaco, \'Andale Mono\', \'Ubuntu Mono\', monospace;\n\tfont-size: 1em;\n\ttext-align: left;\n\twhite-space: pre;\n\tword-spacing: normal;\n\tword-break: normal;\n\tword-wrap: normal;\n\tline-height: 1.5;\n\n\t-moz-tab-size: 4;\n\t-o-tab-size: 4;\n\ttab-size: 4;\n\n\t-webkit-hyphens: none;\n\t-moz-hyphens: none;\n\t-ms-hyphens: none;\n\thyphens: none;\n}\n\npre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,\ncode[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {\n\ttext-shadow: none;\n\tbackground: #b3d4fc;\n}\n\npre[class*="language-"]::selection, pre[class*="language-"] ::selection,\ncode[class*="language-"]::selection, code[class*="language-"] ::selection {\n\ttext-shadow: none;\n\tbackground: #b3d4fc;\n}\n\n@media print {\n\tcode[class*="language-"],\n\tpre[class*="language-"] {\n\t\ttext-shadow: none;\n\t}\n}\n\n/* Code blocks */\npre[class*="language-"] {\n\tpadding: 1em;\n\tmargin: .5em 0;\n\toverflow: auto;\n}\n\n:not(pre) > code[class*="language-"],\npre[class*="language-"] {\n\tbackground: #f5f2f0;\n}\n\n/* Inline code */\n:not(pre) > code[class*="language-"] {\n\tpadding: .1em;\n\tborder-radius: .3em;\n\twhite-space: normal;\n}\n\n.token.comment,\n.token.prolog,\n.token.doctype,\n.token.cdata {\n\tcolor: slategray;\n}\n\n.token.punctuation {\n\tcolor: #999;\n}\n\n.namespace {\n\topacity: .7;\n}\n\n.token.property,\n.token.tag,\n.token.boolean,\n.token.number,\n.token.constant,\n.token.symbol,\n.token.deleted {\n\tcolor: #905;\n}\n\n.token.selector,\n.token.attr-name,\n.token.string,\n.token.char,\n.token.builtin,\n.token.inserted {\n\tcolor: #690;\n}\n\n.token.operator,\n.token.entity,\n.token.url,\n.language-css .token.string,\n.style .token.string {\n\tcolor: #9a6e3a;\n\tbackground: hsla(0, 0%, 100%, .5);\n}\n\n.token.atrule,\n.token.attr-value,\n.token.keyword {\n\tcolor: #07a;\n}\n\n.token.function,\n.token.class-name {\n\tcolor: #DD4A68;\n}\n\n.token.regex,\n.token.important,\n.token.variable {\n\tcolor: #e90;\n}\n\n.token.important,\n.token.bold {\n\tfont-weight: bold;\n}\n.token.italic {\n\tfont-style: italic;\n}\n\n.token.entity {\n\tcursor: help;\n}\n', + '' + ]); + }, + function(e, t, n) { + 'use strict'; + n.r(t); + var r = n(0), + o = n.n(r), + i = n(161), + a = n.n(i), + s = n(57), + c = n(2), + u = n(162), + l = n(163), + f = n.n(l), + d = n(164), + p = n.n(d), + h = n(165), + g = n.n(h); + function m(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}, r = Object.keys(n); @@ -124964,12 +124836,12 @@ object-assign }) )), r.forEach(function(t) { - Se(e, t, n[t]); + b(e, t, n[t]); }); } return e; } - function Se(e, t, n) { + function b(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { @@ -124982,676 +124854,50 @@ object-assign e ); } - var Ae = regeneratorRuntime.mark(Re), - Oe = regeneratorRuntime.mark(Be), - Ee = regeneratorRuntime.mark(He), - Te = regeneratorRuntime.mark(Ye), - Ce = regeneratorRuntime.mark(We), - Le = regeneratorRuntime.mark(Ve), - Pe = regeneratorRuntime.mark(Ue), - De = regeneratorRuntime.mark(Xe), - ze = regeneratorRuntime.mark(Ge), - Ne = regeneratorRuntime.mark(Ke), - je = regeneratorRuntime.mark($e); - function Re() { - var e, t; - return regeneratorRuntime.wrap( - function(n) { - for (;;) - switch ((n.prev = n.next)) { - case 0: - return ( - (n.prev = 0), - (e = _i.url('/3.0/projects/{projectId}', { - api_key: _i.config.masterKey - })), - (n.next = 4), - fetch(e).then(function(e) { - return e.json(); - }) - ); - case 4: - return ( - (t = n.sent), - (n.next = 7), - pe({ - type: 'CLIENT_FETCH_PROJECT_SUCCESS', - payload: t - }) - ); - case 7: - n.next = 13; - break; - case 9: - return ( - (n.prev = 9), - (n.t0 = n.catch(0)), - (n.next = 13), - pe({ - type: 'CLIENT_FETCH_PROJECT_ERROR', - payload: n.t0 - }) - ); - case 13: - case 'end': - return n.stop(); - } - }, - Ae, - null, - [[0, 9]] - ); - } - var Ie = function(e) { - return e.collections.schemas; - }, - Fe = function(e) { - return e.ui.loadHeavySchemas; + n(335); + var y = { + items: [], + schemas: {}, + recentEvents: [], + fetchingSchema: !1, + fetchingRecentEvents: !1 }, - qe = function(e) { - return e.ui; + v = function() { + var e = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : m({}, y), + t = arguments.length > 1 ? arguments[1] : void 0; + switch (t.type) { + case 'CLIENT_FETCH_PROJECT_SUCCESS': + return m({}, e, { items: t.payload.events }); + case 'CLIENT_FETCH_SCHEMA': + return m({}, e, { fetchingSchema: !0 }); + case 'CLIENT_FETCH_SCHEMA_SUCCESS': + return m({}, e, { + schemas: m( + {}, + e.schemas, + b({}, t.eventCollection, m({}, t.payload.properties)) + ), + fetchingSchema: !1 + }); + case 'CLIENT_FETCH_SCHEMA_ERROR': + return m({}, e, { fetchingSchema: !1 }); + case 'CLIENT_FETCH_RECENT_EVENTS': + return m({}, e, { fetchingRecentEvents: !0 }); + case 'CLIENT_FETCH_RECENT_EVENTS_SUCCESS': + return m({}, e, { + fetchingRecentEvents: !1, + recentEvents: t.payload.result + }); + case 'CLIENT_FETCH_RECENT_EVENTS_ERROR': + return m({}, e, { fetchingRecentEvents: !0 }); + default: + return e; + } }; - function Be(e) { - var t, n, r, o, i, a, s, c, u, l, f, d, p, h, g; - return regeneratorRuntime.wrap( - function(m) { - for (;;) - switch ((m.prev = m.next)) { - case 0: - return e.payload, (m.prev = 1), (m.next = 4), be(qe); - case 4: - return ( - (t = m.sent), - (n = t.eventCollection), - (r = t.groupBy), - (o = t.filters), - (i = t.targetProperty), - (a = t.propertyNames), - (m.next = 12), - be(Ie) - ); - case 12: - return ( - (s = m.sent), - (c = s[n]), - (u = Object.keys(c)), - (m.next = 17), - be(qe) - ); - case 17: - if ( - ((l = m.sent), - (f = l.orderBy), - (d = l.limit), - !i || u.includes(i)) - ) { - m.next = 23; - break; - } - return ( - (m.next = 23), - pe({ - type: 'UI_UPDATE', - payload: { targetProperty: void 0 } - }) - ); - case 23: - if (!a) { - m.next = 27; - break; - } - return ( - (p = a.filter(function(e) { - return u.includes(e); - })), - (m.next = 27), - pe({ - type: 'UI_UPDATE', - payload: { propertyNames: p } - }) - ); - case 27: - if (!o) { - m.next = 31; - break; - } - return ( - (h = o.filter(function(e) { - return u.includes(e.propertyName); - })), - (m.next = 31), - pe({ type: 'UI_UPDATE', payload: { filters: h } }) - ); - case 31: - if (!r) { - m.next = 36; - break; - } - return ( - (g = r.filter(function(e) { - return u.includes(e); - })).length || - ((g = void 0), (d = void 0), (f = void 0)), - (m.next = 36), - pe({ - type: 'UI_UPDATE', - payload: { groupBy: g, limit: d, orderBy: f } - }) - ); - case 36: - m.next = 41; - break; - case 38: - (m.prev = 38), (m.t0 = m.catch(1)), console.log(m.t0); - case 41: - case 'end': - return m.stop(); - } - }, - Oe, - null, - [[1, 38]] - ); - } - function He(e) { - var t, n, r, o, i, a, s, c, u; - return regeneratorRuntime.wrap( - function(l) { - for (;;) - switch ((l.prev = l.next)) { - case 0: - if ((t = e.payload).eventCollection) { - l.next = 3; - break; - } - return l.abrupt('return'); - case 3: - return (l.next = 5), be(Ie); - case 5: - if (!(n = l.sent)[t.eventCollection]) { - l.next = 10; - break; - } - return ( - (l.next = 9), - pe({ - type: 'CLIENT_FETCH_SCHEMA_SUCCESS', - eventCollection: t.eventCollection, - payload: { properties: n[t.eventCollection] } - }) - ); - case 9: - return l.abrupt('return'); - case 10: - return (l.next = 12), be(Fe); - case 12: - return ( - (r = l.sent), - (l.prev = 13), - (o = _i.url( - '/3.0/projects/{projectId}/events/'.concat( - t.eventCollection - ), - { api_key: _i.config.masterKey } - )), - (l.next = 17), - fetch(o).then(function(e) { - return e.json(); - }) - ); - case 17: - return ( - (i = l.sent), - (a = i.properties), - (s = void 0 === a ? {} : a), - (c = Object.keys(s)).length > 500 && - !r && - ((c = c.filter(function(e) { - return ( - -1 === e.indexOf('{') && - -1 === e.indexOf('request.params') - ); - })), - (u = {}), - c.forEach(function(e) { - u[e] = s[e]; - }), - (s = ke({}, u))), - (l.next = 23), - pe({ - type: 'CLIENT_FETCH_SCHEMA_SUCCESS', - eventCollection: t.eventCollection, - payload: { properties: s } - }) - ); - case 23: - l.next = 29; - break; - case 25: - return ( - (l.prev = 25), - (l.t0 = l.catch(13)), - (l.next = 29), - pe({ - type: 'CLIENT_FETCH_SCHEMA_ERROR', - payload: l.t0 - }) - ); - case 29: - case 'end': - return l.stop(); - } - }, - Ee, - null, - [[13, 25]] - ); - } - function Ye(e) { - var t, n; - return regeneratorRuntime.wrap( - function(r) { - for (;;) - switch ((r.prev = r.next)) { - case 0: - return ( - (t = e.payload), - (r.prev = 1), - (r.next = 4), - _i.query({ - analysisType: 'extraction', - eventCollection: t.eventCollection, - latest: t.latest || 10 - }) - ); - case 4: - return ( - (n = r.sent), - (r.next = 7), - pe({ - type: 'CLIENT_FETCH_RECENT_EVENTS_SUCCESS', - eventCollection: t.eventCollection, - payload: n - }) - ); - case 7: - r.next = 13; - break; - case 9: - return ( - (r.prev = 9), - (r.t0 = r.catch(1)), - (r.next = 13), - pe({ - type: 'CLIENT_FETCH_RECENT_EVENTS_ERROR', - payload: r.t0 - }) - ); - case 13: - case 'end': - return r.stop(); - } - }, - Te, - null, - [[1, 9]] - ); - } - function We(e) { - var t, n; - return regeneratorRuntime.wrap( - function(r) { - for (;;) - switch ((r.prev = r.next)) { - case 0: - return ( - (t = e.payload), - (r.prev = 1), - (r.next = 4), - _i.query(t) - ); - case 4: - return ( - (n = r.sent), - (r.next = 7), - pe({ type: 'CLIENT_RUN_QUERY_SUCCESS', payload: n }) - ); - case 7: - r.next = 13; - break; - case 9: - return ( - (r.prev = 9), - (r.t0 = r.catch(1)), - (r.next = 13), - pe({ - type: 'CLIENT_RUN_QUERY_ERROR', - payload: r.t0 - }) - ); - case 13: - case 'end': - return r.stop(); - } - }, - Ce, - null, - [[1, 9]] - ); - } - function Ve(e) { - var t, n, r, o; - return regeneratorRuntime.wrap( - function(i) { - for (;;) - switch ((i.prev = i.next)) { - case 0: - return ( - (t = e.payload), - (i.prev = 1), - (n = t.name), - (r = t.body), - (i.next = 5), - _i.put({ - url: _i.url('https://github.com/queries',%20'saved',%20n), - apiKey: _i.config.masterKey, - params: r - }) - ); - case 5: - return ( - (o = i.sent), - (i.next = 8), - pe({ - type: 'CLIENT_SAVE_QUERY_SUCCESS', - payload: o - }) - ); - case 8: - i.next = 19; - break; - case 10: - if ( - ((i.prev = 10), - (i.t0 = i.catch(1)), - 400 !== i.t0.status) - ) { - i.next = 17; - break; - } - return ( - (i.next = 15), - pe({ type: 'ABOVE_CACHE_QUERY_LIMIT' }) - ); - case 15: - i.next = 19; - break; - case 17: - return ( - (i.next = 19), - pe({ - type: 'CLIENT_SAVE_QUERY_ERROR', - payload: i.t0 - }) - ); - case 19: - case 'end': - return i.stop(); - } - }, - Le, - null, - [[1, 10]] - ); - } - function Ue(e) { - var t, n; - return regeneratorRuntime.wrap( - function(r) { - for (;;) - switch ((r.prev = r.next)) { - case 0: - return ( - (t = e.payload), - (r.prev = 1), - (n = t.name), - (r.next = 5), - _i - .del(_i.url('https://github.com/queries',%20'saved',%20n)) - .auth(_i.masterKey()) - .send() - ); - case 5: - return ( - (r.next = 7), pe({ type: 'RESET_SAVED_QUERY_UI' }) - ); - case 7: - return ( - (r.next = 9), - pe({ - type: 'CLIENT_DELETE_QUERY_SUCCESS', - payload: t - }) - ); - case 9: - r.next = 15; - break; - case 11: - return ( - (r.prev = 11), - (r.t0 = r.catch(1)), - (r.next = 15), - pe({ - type: 'CLIENT_RUN_QUERY_ERROR', - payload: r.t0 - }) - ); - case 15: - case 'end': - return r.stop(); - } - }, - Pe, - null, - [[1, 11]] - ); - } - function Xe() { - var e; - return regeneratorRuntime.wrap( - function(t) { - for (;;) - switch ((t.prev = t.next)) { - case 0: - return ( - (t.prev = 0), - (t.next = 3), - _i - .get(_i.url('https://github.com/queries',%20'saved')) - .auth(_i.masterKey()) - .send() - ); - case 3: - return ( - (e = t.sent), - (t.next = 6), - pe({ - type: 'CLIENT_FETCH_SAVED_QUERIES_SUCCESS', - payload: e - }) - ); - case 6: - t.next = 12; - break; - case 8: - return ( - (t.prev = 8), - (t.t0 = t.catch(0)), - (t.next = 12), - pe({ - type: 'CLIENT_SAVE_QUERY_ERROR', - payload: t.t0 - }) - ); - case 12: - case 'end': - return t.stop(); - } - }, - De, - null, - [[0, 8]] - ); - } - function Ge() { - var e, t, n, r, o, i; - return regeneratorRuntime.wrap( - function(a) { - for (;;) - switch ((a.prev = a.next)) { - case 0: - return ( - (a.prev = 0), - (e = _i.url( - '/3.0/projects/{projectId}/organization-usage', - { api_key: _i.config.masterKey } - )), - (a.next = 4), - fetch(e).then(function(e) { - return e.json(); - }) - ); - case 4: - if (!(t = a.sent)) { - a.next = 14; - break; - } - if ( - ((n = t.cached_queries), - (r = n.limited), - (o = n.limit), - (i = n.current_usage), - !(r && i >= o)) - ) { - a.next = 12; - break; - } - return ( - (a.next = 10), - pe({ type: 'ABOVE_CACHE_QUERY_LIMIT' }) - ); - case 10: - a.next = 14; - break; - case 12: - return ( - (a.next = 14), - pe({ type: 'BELOW_CACHE_QUERY_LIMIT' }) - ); - case 14: - a.next = 20; - break; - case 16: - return ( - (a.prev = 16), - (a.t0 = a.catch(0)), - (a.next = 20), - pe({ - type: 'CACHE_QUERY_LIMIT_ERROR', - payload: a.t0 - }) - ); - case 20: - case 'end': - return a.stop(); - } - }, - ze, - null, - [[0, 16]] - ); - } - function Ke() { - return regeneratorRuntime.wrap(function(e) { - for (;;) - switch ((e.prev = e.next)) { - case 0: - return (e.next = 2), Me('CLIENT_FETCH_PROJECT', Re); - case 2: - return (e.next = 4), Me('CLIENT_FETCH_SCHEMA', He); - case 4: - return (e.next = 6), Me('CHANGE_EVENT_COLLECTION', He); - case 6: - return ( - (e.next = 8), Me('CLIENT_FETCH_SCHEMA_SUCCESS', Be) - ); - case 8: - return ( - (e.next = 10), Me('CLIENT_FETCH_RECENT_EVENTS', Ye) - ); - case 10: - return (e.next = 12), Me('CLIENT_RUN_QUERY', We); - case 12: - return (e.next = 14), Me('CLIENT_SAVE_QUERY', Ve); - case 14: - return (e.next = 16), Me('CLIENT_DELETE_QUERY', Ue); - case 16: - return ( - (e.next = 18), - Me( - [ - 'CLIENT_FETCH_SAVED_QUERIES', - 'CLIENT_SAVE_QUERY_SUCCESS', - 'CLIENT_DELETE_SAVED_QUERY_SUCCESS' - ], - Xe - ) - ); - case 18: - return ( - (e.next = 20), - Me( - [ - 'RESET_UI', - 'CLIENT_SAVE_QUERY_SUCCESS', - 'CLIENT_DELETE_SAVED_QUERY_SUCCESS' - ], - Ge - ) - ); - case 20: - case 'end': - return e.stop(); - } - }, Ne); - } - function $e() { - return regeneratorRuntime.wrap(function(e) { - for (;;) - switch ((e.prev = e.next)) { - case 0: - return ( - (e.next = 2), - (t = [Ke()]), - (n = void 0), - ((n = fe('ALL', t)).combinator = !0), - n - ); - case 2: - case 'end': - return e.stop(); - } - var t, n; - }, je); - } - var Qe = n(168), - Je = n(7), - Ze = n.n(Je), - et = n(8), - tt = n.n(et), - nt = n(62), - rt = n.n(nt); - function ot(e) { + function _(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}, r = Object.keys(n); @@ -125662,12 +124908,12 @@ object-assign }) )), r.forEach(function(t) { - it(e, t, n[t]); + w(e, t, n[t]); }); } return e; } - function it(e, t, n) { + function w(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { @@ -125680,44 +124926,207 @@ object-assign e ); } - var at = function(e) { - return ot({}, e, { - colors: ot({}, e.colors, { - primary25: '#f4f6f7', - primary: '#00bbde' - }) - }); + var x = { results: null, saved: [], isSavingQuery: !1 }, + M = function() { + var e = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : _({}, x), + t = arguments.length > 1 ? arguments[1] : void 0; + switch (t.type) { + case 'CLIENT_RUN_QUERY_SUCCESS': + return _({}, e, { results: t.payload }); + case 'CLIENT_SAVE_QUERY': + return _({}, e, { isSavingQuery: !0 }); + case 'CLIENT_SAVE_QUERY_SUCCESS': + case 'CLIENT_SAVE_QUERY_ERROR': + return _({}, e, { + isSavingQuery: !1, + results: x.results + }); + case 'CLIENT_FETCH_SAVED_QUERIES_SUCCESS': + return _({}, e, { saved: t.payload }); + case 'CLIENT_DELETE_QUERY_SUCCESS': + return _({}, e, { + saved: e.saved.filter(function(e) { + return e.query_name !== t.payload.name; + }) + }); + case 'UPDATE_ACTIVE_SAVED_QUERY': + return _({}, e, { activeSavedQuery: t.payload }); + case 'RESET_UI': + case 'QUERY_RESET_RESULTS': + return _({}, e, { results: x.results }); + default: + return e; + } }, - st = n(169), - ct = n.n(st); - function ut(e) { - return ( - (function(e) { - if (Array.isArray(e)) { - for ( - var t = 0, n = new Array(e.length); - t < e.length; - t++ - ) - n[t] = e[t]; - return n; - } - })(e) || - (function(e) { - if ( - Symbol.iterator in Object(e) || - '[object Arguments]' === Object.prototype.toString.call(e) + k = n(10), + S = n.n(k), + O = [ + { type: 'average', targetProperty: !0 }, + { type: 'count', default: !0 }, + { type: 'count_unique', targetProperty: !0 }, + { type: 'extraction', extraction: !0 }, + { type: 'funnel', funnel: !0 }, + { type: 'maximum', targetProperty: !0 }, + { type: 'median', targetProperty: !0 }, + { type: 'minimum', targetProperty: !0 }, + { type: 'percentile', targetProperty: !0, percentile: !0 }, + { type: 'select_unique', targetProperty: !0 }, + { type: 'standard_deviation', targetProperty: !0 }, + { type: 'sum', targetProperty: !0 } + ], + E = ['minutes', 'hours', 'days', 'weeks', 'months', 'years'], + A = ['this', 'previous'], + T = '' + .concat(A[0], '_') + .concat(14, '_') + .concat(E[2]), + C = { + start: '' + .concat( + S()() + .subtract(1, 'day') + .format('YYYY-MM-DD'), + 'T' ) - return Array.from(e); - })(e) || - (function() { - throw new TypeError( - 'Invalid attempt to spread non-iterable instance' - ); - })() - ); - } - function lt(e, t, n) { + .concat( + S()(S()().format('YYYY-MM-DD')).format('HH:mm'), + ':00.000Z' + ), + end: '' + .concat( + S()(S()().format('YYYY-MM-DD')).format('YYYY-MM-DD'), + 'T' + ) + .concat( + S()(S()().format('YYYY-MM-DD')).format('HH:mm'), + ':00.000Z' + ) + }, + L = [ + 'minutely', + 'hourly', + 'daily', + 'weekly', + 'monthly', + 'yearly' + ], + P = L[2], + D = 'every_7_'.concat(E[2]), + j = [ + { label: 'UTC', value: 0, dst_value: 0 }, + { label: 'Europe/London', value: 0, dst_value: 3600 }, + { label: 'Africa/Casablanca', value: 0, dst_value: 0 }, + { label: 'Africa/Nairobi', value: 10800, dst_value: 0 }, + { label: 'Asia/Dubai', value: 14400, dst_value: 0 }, + { + label: 'America/Sao_Paulo', + value: -10800, + dst_value: -7200 + }, + { label: 'US/Eastern', value: -18e3, dst_value: -14400 }, + { label: 'US/Central', value: -21600, dst_value: -18e3 }, + { label: 'US/Mountain', value: -25200, dst_value: -21600 }, + { label: 'US/Pacific', value: -28800, dst_value: -25200 }, + { label: 'US/Alaska', value: -32400, dst_value: -28800 }, + { label: 'US/Hawaii', value: -36e3, dst_value: -32400 }, + { label: 'Europe/Paris', value: 3600, dst_value: 7200 }, + { label: 'Europe/Amsterdam', value: 3600, dst_value: 7200 }, + { label: 'Europe/Stockholm', value: 3600, dst_value: 7200 }, + { label: 'Europe/Prague', value: 3600, dst_value: 7200 }, + { label: 'Asia/Istanbul', value: 7200, dst_value: 10800 }, + { label: 'Europe/Istanbul', value: 7200, dst_value: 10800 }, + { label: 'Europe/Copenhagen', value: 3600, dst_value: 7200 }, + { label: 'Asia/Jakarta', value: 25200, dst_value: 25200 }, + { label: 'Asia/Singapore', value: 28800, dst_value: 28800 }, + { label: 'Australia/Perth', value: 28800, dst_value: 28800 }, + { label: 'Asia/Tokyo', value: 32400, dst_value: 32400 }, + { label: 'Australia/Sydney', value: 36e3, dst_value: 39600 }, + { label: 'Pacific/Auckland', value: 43200, dst_value: 46800 } + ], + z = [ + { + label: '= Equal to', + value: 'eq', + dataTypes: [ + 'String', + 'Number', + 'Null', + 'List', + 'Boolean', + 'Datetime' + ] + }, + { + label: '≠ Not equal to', + value: 'ne', + dataTypes: [ + 'String', + 'Number', + 'Null', + 'List', + 'Boolean', + 'Datetime' + ] + }, + { + label: '> Greater than', + value: 'gt', + dataTypes: ['Number', 'Null', 'Datetime', 'String'] + }, + { + label: '≥ Greater than or equal to', + value: 'gte', + dataTypes: ['Number', 'Null', 'Datetime', 'String'] + }, + { + label: '< Less than', + value: 'lt', + dataTypes: ['Number', 'Null', 'Datetime', 'String'] + }, + { + label: '≤ Less than or equal to', + value: 'lte', + dataTypes: ['Number', 'Null', 'Datetime', 'String'] + }, + { + label: '∃ Property exists', + value: 'exists', + dataTypes: ['String', 'Number', 'Boolean'] + }, + { + label: '⊚ String contains', + value: 'contains', + dataTypes: ['String', 'Null'] + }, + { + label: '⍉ String does not contain', + value: 'not_contains', + dataTypes: ['String', 'Null'] + }, + { label: '⊚ Regex', value: 'regex', dataTypes: ['String'] }, + { + label: '⧇ Matches any value in a list', + value: 'in', + dataTypes: ['String', 'Number', 'List'] + }, + { + label: '⚐ Within a given radius (geo)', + value: 'within', + dataTypes: ['Geo', 'List'] + } + ], + N = [ + { label: 'String', value: 'String' }, + { label: 'Number', value: 'Number' }, + { label: 'Null', value: 'Null' }, + { label: 'List', value: 'List' }, + { label: 'Boolean', value: 'Boolean' }, + { label: 'Datetime', value: 'Datetime' } + ]; + function R(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { @@ -125730,214 +125139,168 @@ object-assign e ); } - var ft = function(e) { - var t = e || S()(S()().format('YYYY-MM-DD')); - return '' - .concat(t.format('YYYY-MM-DD'), 'T') - .concat(t.format('HH:mm'), ':00.000Z'); - }, - dt = function(e) { - var t = e.schema, - n = e.filter, - r = n.propertyName, - o = n.operator, - i = (n.propertyValue, n.propertyType); - return ( - i || - ((i = { - string: 'String', - num: 'Number', - datetime: 'Datetime', - list: 'List', - null: 'Null', - bool: 'Boolean' - }[(t && t[r]) || {}]), - 'exists' === o && (i = 'Boolean'), - i) - ); - }, - pt = function(e) { - var t = e.filter, - n = e.eventCollection, - r = e.schemas, - o = t.property_name, - i = t.operator, - a = t.property_value, - s = (r && Object.keys(r).length && r) || {}, - c = s && s[n]; - return { - propertyValue: a, - propertyType: dt({ - schema: c, - filter: { propertyName: o, operator: i, propertyValue: a } - }) - }; - }, - ht = function(e) { - var t = e.filters.map(function(t) { - var n, - r = t.propertyName, - o = t.propertyType, - i = t.operator, - a = t.propertyValue; - if (o) - return ( - ('String' !== o && - 'Datetime' !== o && - 'contains' !== i && - 'not_contains' !== i) || - (n = a), - 'Boolean' === o || 'exists' === i - ? (n = 'true' === a) - : 'in' === i - ? ((n = ct()(a, { - quote: '"', - ltrim: !0, - rtrim: !0, - delimiter: ',' - })[0]), - 'Number' === o && - (n = n.map(function(e) { - return e.replace(/['"]+/g, ''); - }))) - : 'Number' === o - ? (n = parseFloat(a)) - : 'List' === o && - ((n = a), - 'within' === i && - (n = { - coordinates: [ - parseFloat(a.coordinates[0] || 0), - parseFloat(a.coordinates[1] || 0) - ], - maxDistanceMiles: parseFloat( - a.maxDistanceMiles || 0 - ) - })), - 'Null' === i && (n = null), - { - propertyName: r, - propertyType: o, - operator: i, - propertyValue: n + var I = function(e) { + var t = e; + if (t) { + t.analysis_type && + (t = (function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + 'function' == typeof Object.getOwnPropertySymbols && + (r = r.concat( + Object.getOwnPropertySymbols(n).filter(function( + e + ) { + return Object.getOwnPropertyDescriptor(n, e) + .enumerable; + }) + )), + r.forEach(function(t) { + R(e, t, n[t]); + }); } - ); - console.log('no prop type in filter', e); - }); - return (function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}, - r = Object.keys(n); - 'function' == typeof Object.getOwnPropertySymbols && - (r = r.concat( - Object.getOwnPropertySymbols(n).filter(function(e) { - return Object.getOwnPropertyDescriptor( - n, - e - ).enumerable; - }) - )), - r.forEach(function(t) { - lt(e, t, n[t]); - }); - } - return e; - })({}, e, { filters: ut(t) }); + return e; + })({}, e, { + groupBy: e.group_by, + analysisType: e.analysis_type + })); + var n, + r = 'string' == typeof t.interval, + o = + 'string' == typeof t.groupBy || + (t.groupBy instanceof Array && 1 === t.groupBy.length), + i = t.groupBy instanceof Array && 2 === t.groupBy.length; + return ( + 'funnel' === t.analysisType + ? (n = 'catOrdinal') + : 'extraction' === t.analysisType + ? (n = 'extraction') + : 'select_unique' === t.analysisType + ? (n = 'nominal') + : o || r || i + ? o && !r + ? (n = 'categorical') + : !r || o || i + ? r && (o || i) + ? (n = 'catChronological') + : !r && i && (n = 'categorical') + : (n = 'chronological') + : (n = 'singular'), + 'extraction' === t.analysisType && (n = 'extraction'), + 'funnel' === t.analysisType && (n = 'funnel'), + n + ); + } + }, + F = function(e) { + if (e) + return { + singular: ['metric'], + categorical: [ + 'bar', + 'horizontal-bar', + 'pie', + 'donut', + 'table' + ], + catInterval: [ + 'area', + 'bar', + 'horizontal-bar', + 'line', + 'spline', + 'area-spline', + 'step', + 'area-step', + 'table' + ], + catOrdinal: [ + 'area', + 'bar', + 'horizontal-bar', + 'line', + 'spline', + 'area-spline', + 'step', + 'area-step', + 'table' + ], + chronological: [ + 'area', + 'bar', + 'line', + 'spline', + 'area-spline', + 'step', + 'area-step', + 'table' + ], + catChronological: [ + 'area', + 'bar', + 'horizontal-bar', + 'line', + 'spline', + 'area-spline', + 'step', + 'area-step', + 'table' + ], + nominal: ['table'], + extraction: ['table'], + funnel: [ + 'horizontal-bar', + 'funnel', + 'horizontal-funnel', + 'funnel-3d', + 'horizontal-funnel-3d', + 'table' + ] + }[I(e)].concat(['JSON']); + }, + q = function(e) { + var t = e.query; + if (t) { + if ( + e && + e.metadata && + e.metadata.visualization && + e.metadata.visualization.chart_type + ) + return e.metadata.visualization.chart_type; + var n = F(t); + return n.length ? n[0] : 'JSON'; + } }; - function gt() { - return (gt = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (e[r] = n[r]); + function B(e) { + return ( + (function(e) { + if (Array.isArray(e)) { + for ( + var t = 0, n = new Array(e.length); + t < e.length; + t++ + ) + n[t] = e[t]; + return n; } - return e; - }).apply(this, arguments); - } - function mt(e, t) { - if (null == e) return {}; - var n, - r, - o = (function(e, t) { - if (null == e) return {}; - var n, - r, - o = {}, - i = Object.keys(e); - for (r = 0; r < i.length; r++) - (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); - return o; - })(e, t); - if (Object.getOwnPropertySymbols) { - var i = Object.getOwnPropertySymbols(e); - for (r = 0; r < i.length; r++) - (n = i[r]), - t.indexOf(n) >= 0 || - (Object.prototype.propertyIsEnumerable.call(e, n) && - (o[n] = e[n])); - } - return o; - } - var bt = function(e) { - var t = e.innerProps, - n = e.isFocused, - r = e.children, - i = - (t.onMouseMove, - t.onMouseOver, - mt(t, ['onMouseMove', 'onMouseOver'])); - return o.a.createElement( - 'div', - gt( - { - className: 'react-select-option', - selected: n, - style: {} - }, - i - ), - r + })(e) || + (function(e) { + if ( + Symbol.iterator in Object(e) || + '[object Arguments]' === Object.prototype.toString.call(e) + ) + return Array.from(e); + })(e) || + (function() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance' + ); + })() ); - }; - function yt() { - return (yt = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (e[r] = n[r]); - } - return e; - }).apply(this, arguments); } - var vt = function(e) { - return o.a.createElement( - et.components.Input, - yt({}, e, { autofill: 'off' }) - ); - }, - _t = function(e) { - return e.options.length > 200 - ? o.a.createElement( - tt.a, - yt( - { - components: { Option: bt, Input: vt }, - filterOption: Object(et.createFilter)({ - ignoreAccents: !1 - }) - }, - e - ) - ) - : o.a.createElement(tt.a, e); - }; - function xt(e) { + function H(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}, r = Object.keys(n); @@ -125948,12 +125311,12 @@ object-assign }) )), r.forEach(function(t) { - wt(e, t, n[t]); + Y(e, t, n[t]); }); } return e; } - function wt(e, t, n) { + function Y(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { @@ -125966,762 +125329,460 @@ object-assign e ); } - var Mt = function(e) { - return { type: 'UI_UPDATE', payload: e }; + var W = O.find(function(e) { + return e.default; + }), + V = { + name: '', + displayName: '', + cache: !1, + refreshRate: 0, + exists: !1 }, - kt = function(e) { - var t = e.step, - n = e.payload, - r = e.rootPayload; - return { - type: 'UI_STEP_UPDATE', - step: t, - payload: n, - rootPayload: void 0 === r ? {} : r - }; - }; - function St(e) { - return (St = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(e) { - return typeof e; - } - : function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - })(e); - } - function At(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function Ot(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - function Et(e, t) { - return !t || ('object' !== St(t) && 'function' != typeof t) - ? (function(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); + U = { + eventCollection: void 0, + actorProperty: void 0, + timeframe: T, + timezone: parseInt(localStorage.timezone || 0, 0), + filters: [], + inverted: !1, + optional: !1, + withActors: !1 + }, + X = parseInt(localStorage.timezone || 0, 0), + G = { + autoload: !1, + analysisType: W.type, + eventCollection: localStorage.eventCollection || void 0, + targetProperty: void 0, + filters: [], + modalFilters: !1, + modalEmbedHTML: !1, + modalPreviewCollection: !1, + groupBy: void 0, + orderBy: void 0, + limit: void 0, + latest: 100, + email: '', + contentEncoding: void 0, + propertyNames: [], + interval: void 0, + numberOfGroupByProps: 1, + timeframe: T, + timezone: X, + percentile: void 0, + chartType: void 0, + savedQuery: H({}, V), + error: null, + fetching: !1, + activePanel: 0, + panelSave: !1, + extractionActiveTab: 0, + steps: [H({}, U)], + activeStep: 0, + stepLabels: [''], + loadHeavySchemas: !1, + components: { + eventCollection: !0, + previewCollections: !0, + analysisType: !0, + timeframe: !0, + timezone: !0, + filters: !0, + groupBy: !0, + interval: !0, + apiQueryUrl: !0, + actorProperty: !0, + step: !0, + savedQueryBrowser: !0, + results: !0, + saveButton: !0, + downloadButton: !0, + embedButton: !0 + } + }, + K = function() { + var e = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : G, + t = arguments.length > 1 ? arguments[1] : void 0; + switch (t.type) { + case 'UI_UPDATE': + return H({}, e, t.payload); + case 'UI_STEP_UPDATE': + return H( + {}, + e, + { + steps: e.steps.map(function(e, n) { + return n === t.step && (e = H({}, e, t.payload)), e; + }) + }, + t.rootPayload + ); + case 'CHANGE_EVENT_COLLECTION': + return H({}, e, t.payload); + case 'CLIENT_RUN_QUERY': + return H({}, e, { error: null, fetching: !0 }); + case 'CLIENT_RUN_QUERY_ERROR': + return H({}, e, { error: t.payload, fetching: !1 }); + case 'CLIENT_RUN_QUERY_SUCCESS': + return H({}, e, { + fetching: !1, + chartType: q(t.payload) + }); + case 'UPDATE_SAVED_QUERY_UI': + return H({}, e, { + savedQuery: H({}, e.savedQuery, t.payload) + }); + case 'CLIENT_SAVE_QUERY_SUCCESS': + return H({}, e, { + savedQuery: H({}, e.savedQuery, { exists: !0 }) + }); + case 'RESET_SAVED_QUERY_UI': + return H({}, e, { savedQuery: H({}, V) }); + case 'RESET_UI': + return H({}, G); + case 'ADD_FILTER': + return H({}, e, { + filters: [].concat(B(e.filters), [ + { + propertyName: '', + operator: 'eq', + propertyType: 'String', + propertyValue: '' + } + ]) + }); + case 'DELETE_FILTER': + return H({}, e, { + filters: e.filters.filter(function(e, n) { + return n !== t.payload; + }) + }); + case 'UPDATE_FILTER': + return H({}, e, { + filters: e.filters.map(function(e, n) { + return t.payload.index !== n + ? e + : H({}, e, t.payload.item); + }) + }); + case 'ADD_STEP_FILTER': + return H({}, e, { + steps: e.steps.map(function(e, n) { + return ( + n === t.step && + (e.filters = [].concat(B(e.filters), [ + { + propertyName: '', + operator: 'eq', + propertyType: 'String', + propertyValue: '' + } + ])), + e + ); + }) + }); + case 'DELETE_STEP_FILTER': + return H({}, e, { + steps: e.steps.map(function(e, n) { + return ( + n === t.step && + (e.filters = e.filters.filter(function(e, n) { + return n !== t.payload.index; + })), + e + ); + }) + }); + case 'UPDATE_STEP_FILTER': + return H({}, e, { + steps: e.steps.map(function(e, n) { + if (n === t.step) { + var r = e.filters.map(function(e, n) { + return t.payload.index !== n + ? e + : H({}, e, t.payload.item); + }); + e.filters = r; + } + return e; + }) + }); + case 'TOGGLE_PANEL_SAVE': + return H({}, e, { panelSave: !e.panelSave }); + case 'ADD_STEP': + var n = e.steps[e.steps.length - 1] || {}, + r = { + timeframe: n.timeframe || T, + timezone: n.timezone || X, + withActors: !!n.withActors + }; + return H({}, e, { + steps: [].concat(B(e.steps), [H({}, U, r)]), + stepLabels: [].concat(B(e.stepLabels), ['']), + activeStep: e.steps.length + }); + case 'DELETE_STEP': + return H({}, e, { + steps: e.steps.filter(function(e, n) { + return n !== t.payload; + }), + stepLabels: e.stepLabels.filter(function(e, n) { + return n !== t.payload; + }) + }); + default: return e; - })(e) - : t; - } - function Tt(e) { - return (Tt = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(e) { - return e.__proto__ || Object.getPrototypeOf(e); - })(e); - } - function Ct(e, t) { - return (Ct = - Object.setPrototypeOf || - function(e, t) { - return (e.__proto__ = t), e; - })(e, t); - } - var Lt = { updateUI: Mt }, - Pt = (function(e) { - function t() { - return At(this, t), Et(this, Tt(t).apply(this, arguments)); } - var n, i, a; + }, + $ = Object(s.combineReducers)({ + collections: v, + queries: M, + ui: K + }), + Q = function(e) { + return '@@redux-saga/' + e; + }, + J = Q('IO'), + Z = Q('MULTICAST'), + ee = Q('SELF_CANCELLATION'), + te = function(e) { + return null == e; + }, + ne = function(e) { + return null != e; + }, + re = function(e) { + return 'function' == typeof e; + }, + oe = function(e) { + return 'string' == typeof e; + }, + ie = Array.isArray, + ae = function e(t) { return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - writable: !0, - configurable: !0 - } - })), - t && Ct(e, t); - })(t, e), - (n = t), - (i = [ - { - key: 'componentWillUnmount', - value: function() { - this.props.updateUI({ targetProperty: void 0 }); - } - }, - { - key: 'render', - value: function() { - var e = this.props, - t = e.schemas, - n = e.eventCollection, - i = e.updateUI, - a = t[n] || {}, - s = Object.keys(a) - .sort(function(e, t) { - return e.toLowerCase() < t.toLowerCase() - ? -1 - : e.toLowerCase() > t.toLowerCase() - ? 1 - : 0; - }) - .map(function(e) { - return { label: e, value: e }; - }); - return o.a.createElement( - r.Fragment, - null, - o.a.createElement( - 'div', - { className: 'label-main' }, - 'Target property' - ), - o.a.createElement(_t, { - value: this.props.value, - options: s, - onChange: function(e) { - i({ targetProperty: e.value }); - }, - theme: at - }) - ); - } - } - ]) && Ot(n.prototype, i), - a && Ot(n, a), - t + t && (oe(t) || ue(t) || re(t) || (ie(t) && t.every(e))) ); - })(r.Component), - Dt = Object(c.connect)(function(e) { - return { - schemas: e.collections.schemas, - eventCollection: e.ui.eventCollection - }; - }, Lt)(Pt), - zt = function(e) { - return { type: 'CLIENT_FETCH_SCHEMA', payload: e }; }, - Nt = function(e) { - return { type: 'CLIENT_DELETE_QUERY', payload: e }; - }; - function jt(e) { - return (jt = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(e) { - return typeof e; - } - : function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - })(e); - } - function Rt(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function It(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - function Ft(e, t) { - return !t || ('object' !== jt(t) && 'function' != typeof t) - ? (function(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return e; - })(e) - : t; - } - function qt(e) { - return (qt = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(e) { - return e.__proto__ || Object.getPrototypeOf(e); - })(e); - } - function Bt(e, t) { - return (Bt = - Object.setPrototypeOf || - function(e, t) { - return (e.__proto__ = t), e; - })(e, t); - } - function Ht() { - return (Ht = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - var Yt = function(e) { - return o.a.createElement( - et.components.Input, - Ht({}, e, { autofill: 'off', name: 'eventCollection' }) - ); + se = function(e) { + return e && re(e.take) && re(e.close); }, - Wt = { - fetchSchema: zt, - changeEventCollection: function(e) { - return { type: 'CHANGE_EVENT_COLLECTION', payload: e }; - }, - updateStepUI: kt + ce = function(e) { + return re(e) && e.hasOwnProperty('toString'); }, - Vt = (function(e) { - function t() { - return Rt(this, t), Ft(this, qt(t).apply(this, arguments)); - } - var n, r, i; + ue = function(e) { return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - writable: !0, - configurable: !0 - } - })), - t && Bt(e, t); - })(t, e), - (n = t), - (r = [ - { - key: 'render', - value: function() { - var e = this.props, - t = e.funnel, - n = e.step, - r = e.collections, - i = e.steps, - a = e.fetchSchema, - s = e.changeEventCollection, - c = e.updateStepUI, - u = this.props, - l = u.eventCollection, - f = u.saveStateToLocalStorage; - t && (l = i[n].eventCollection); - var d = !!l, - p = d ? void 0 : 'Choose an event collection', - h = r.items, - g = h - .sort(function(e, t) { - return e.name.toLowerCase() < - t.name.toLowerCase() - ? -1 - : e.name.toLowerCase() > t.name.toLowerCase() - ? 1 - : 0; - }) - .map(function(e) { - return { label: e.name, value: e.url }; - }), - m = l && - h.find(function(e) { - return e.name === l; - }) && { label: l, value: l }; - return o.a.createElement( - 'div', - { className: 'event-collection' }, - o.a.createElement( - 'div', - { className: 'label-main' }, - 'Event collection' - ), - o.a.createElement(tt.a, { - name: 'eventCollection', - placeholder: p, - autoFocus: !d, - value: m, - components: { Input: Yt }, - options: g, - onChange: function(e) { - if ( - (f && - localStorage && - localStorage.setItem( - 'eventCollection', - e.label - ), - t) - ) - return ( - a({ - eventCollection: e.label, - step: n, - funnel: t - }), - void c({ - step: n, - payload: { - eventCollection: e.label, - actorProperty: void 0, - filters: [] - } - }) - ); - s({ eventCollection: e.label }); - }, - theme: at - }) - ); - } - } - ]) && It(n.prototype, r), - i && It(n, i), - t + Boolean(e) && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype ); - })(r.Component), - Ut = Object(c.connect)(function(e) { - return { - collections: e.collections, - eventCollection: e.ui.eventCollection, - steps: e.ui.steps, - schemas: e.collections.schemas - }; - }, Wt)(Vt), - Xt = n(59), - Gt = n.n(Xt); - function Kt(e) { - return (Kt = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(e) { - return typeof e; - } - : function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - })(e); - } - function $t(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - function Qt(e, t) { - return !t || ('object' !== Kt(t) && 'function' != typeof t) - ? (function(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return e; - })(e) - : t; - } - function Jt(e) { - return (Jt = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(e) { - return e.__proto__ || Object.getPrototypeOf(e); - })(e); - } - function Zt(e, t) { - return (Zt = - Object.setPrototypeOf || - function(e, t) { - return (e.__proto__ = t), e; - })(e, t); - } - var en = (function(e) { - function t(e) { + }, + le = function(e) { + return se(e) && e[Z]; + }, + fe = function(e) { + return e; + }; + 'function' == typeof Symbol && + Symbol.asyncIterator && + Symbol.asyncIterator; + var de = function(e) { + throw e; + }, + pe = function(e) { + return { value: e, done: !0 }; + }, + he = 'TAKE', + ge = 'PUT', + me = 'ALL', + be = 'FORK', + ye = 'CANCEL', + ve = 'SELECT', + _e = function(e, t) { var n; return ( - (function(e, t) { - if (!(e instanceof t)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, t), - ((n = Qt(this, Jt(t).call(this, e))).state = { - filter: '' - }), + ((n = {})[J] = !0), + (n.combinator = !1), + (n.type = e), + (n.payload = t), n ); - } - var n, r, i; - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { value: e, writable: !0, configurable: !0 } - })), - t && Zt(e, t); - })(t, e), - (n = t), - (r = [ - { - key: 'updateFilter', - value: function(e) { - this.setState({ filter: e.target.value }); - } - }, - { - key: 'render', - value: function() { - var e = this, - t = this.props, - n = t.items, - r = t.activeItem, - i = this.state.filter; - return o.a.createElement( - 'div', - { className: 'filtered-list' }, - o.a.createElement('input', { - className: 'input-filter', - placeholder: 'Search...', - type: 'text', - value: i, - onChange: function(t) { - return e.updateFilter(t); - } - }), - n - .filter(function(e) { - return ( - e.name.toLowerCase().indexOf(i.toLowerCase()) >= - 0 - ); - }) - .sort(function(e, t) { - var n = e.name, - r = t.name; - return n.toLowerCase() < r.toLowerCase() - ? -1 - : n.toLowerCase() > r.toLowerCase() - ? 1 - : 0; - }) - .map(function(t) { - var n = t.name, - i = t.index; - return o.a.createElement( - 'div', - { - key: n, - className: 'item '.concat( - r === n && 'active' - ), - onClick: function() { - e.props.onClick(n); - }, - onKeyDown: function() { - e.props.onClick(n); - }, - role: 'button', - tabIndex: i - }, - n - ); - }) - ); - } - } - ]) && $t(n.prototype, r), - i && $t(n, i), - t + }; + function we(e, t) { + if ((void 0 === e && (e = '*'), ae(e))) + return _e(he, { pattern: e }); + if (le(e) && ne(t) && ae(t)) + return _e(he, { channel: e, pattern: t }); + if (se(e)) return _e(he, { channel: e }); + throw new Error( + 'take(patternOrChannel): argument ' + + e + + ' is not valid channel or a valid pattern' ); - })(r.Component); - en.propTypes = { - items: Ze.a.arrayOf(Ze.a.object).isRequired, - activeItem: Ze.a.string.isRequired, - onClick: Ze.a.func.isRequired - }; - var tn = en; - function nn() { - return (nn = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (e[r] = n[r]); - } - return e; - }).apply(this, arguments); } - var rn = function(e) { - return o.a.createElement( - 'div', - nn({ className: 'loading-spinner' }, e), - o.a.createElement('i', { className: 'fas fa-cog fa-spin' }) + function xe(e, t) { + return ( + te(t) && ((t = e), (e = void 0)), + _e(ge, { channel: e, action: t }) ); - }; - function on(e) { - return (on = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(e) { - return typeof e; - } - : function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - })(e); - } - function an(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - function sn(e, t) { - return !t || ('object' !== on(t) && 'function' != typeof t) - ? (function(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return e; - })(e) - : t; - } - function cn(e) { - return (cn = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(e) { - return e.__proto__ || Object.getPrototypeOf(e); - })(e); - } - function un(e, t) { - return (un = - Object.setPrototypeOf || - function(e, t) { - return (e.__proto__ = t), e; - })(e, t); } - var ln = { - updateUI: Mt, - fetchSchema: zt, - fetchRecentEvents: function(e) { - return { type: 'CLIENT_FETCH_RECENT_EVENTS', payload: e }; - } - }, - fn = (function(e) { - function t(e) { - var n; - return ( - (function(e, t) { - if (!(e instanceof t)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, t), - ((n = sn(this, cn(t).call(this, e))).state = { - activeTab: 1 - }), - n - ); - } - var n, r, i; - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - writable: !0, - configurable: !0 - } - })), - t && un(e, t); - })(t, e), - (n = t), - (r = [ - { - key: 'componentDidMount', - value: function() { - var e = this.props.eventCollection; - e && zt({ eventCollection: e }); - } - }, - { - key: 'render', - value: function() { - var e = this, - t = this.props, - n = t.eventCollection, - r = t.collectionItems, - i = t.schemas, - a = t.recentEvents, - s = t.fetchingSchema, - c = t.fetchingRecentEvents, - u = t.fetchSchema, - l = t.updateUI, - f = t.fetchRecentEvents, - d = this.state.activeTab, - p = s || c, - h = i[n] || {}; - return o.a.createElement( - 'div', - { className: 'preview-collection-content' }, - o.a.createElement( - 'div', - { className: 'list' }, - o.a.createElement(tn, { - items: r, - activeItem: n, - onClick: function(e) { - l({ eventCollection: e }), - u({ eventCollection: e }); - } - }) - ), - o.a.createElement( - 'div', - { className: 'content' }, - o.a.createElement( - 'div', - { className: 'tabs' }, - o.a.createElement( - 'div', - { - className: 'tab '.concat( - 1 === d ? 'active' : '' - ), - onClick: function() { - e.setState({ activeTab: 1 }); - } - }, - 'Schema' - ), - o.a.createElement( - 'div', - { - className: 'tab '.concat( - 0 === d ? 'active' : '' - ), - onClick: function() { - e.setState({ activeTab: 0 }, function() { - f({ eventCollection: n }); - }); - } - }, - 'Recent Events' - ), - o.a.createElement('div', { - className: 'tab-placeholder' - }) - ), - o.a.createElement( - 'div', - { className: 'tab-content' }, - p && o.a.createElement(rn, null), - !p && - 1 === d && - o.a.createElement(Gt.a, { - src: h, - style: { fontFamily: 'inherit' }, - collapsed: !1, - displayDataTypes: !1, - sortKeys: !0 - }), - !p && - 0 === d && - o.a.createElement(Gt.a, { - src: a, - style: { fontFamily: 'inherit' }, - collapsed: !1, - displayDataTypes: !1, - sortKeys: !0 - }) - ) - ) - ); - } - } - ]) && an(n.prototype, r), - i && an(n, i), - t + function Me(e, t) { + var n, + r = null; + return ( + re(e) + ? (n = e) + : (ie(e) + ? ((r = e[0]), (n = e[1])) + : ((r = e.context), (n = e.fn)), + r && oe(n) && re(r[n]) && (n = r[n])), + { context: r, fn: n, args: t } + ); + } + function ke(e) { + for ( + var t = arguments.length, + n = new Array(t > 1 ? t - 1 : 0), + r = 1; + r < t; + r++ + ) + n[r - 1] = arguments[r]; + return _e(be, Me(e, n)); + } + function Se(e) { + void 0 === e && (e = fe); + for ( + var t = arguments.length, + n = new Array(t > 1 ? t - 1 : 0), + r = 1; + r < t; + r++ + ) + n[r - 1] = arguments[r]; + return _e(ve, { selector: e, args: n }); + } + var Oe = function(e) { + return { done: !0, value: e }; + }, + Ee = {}; + function Ae(e) { + return se(e) + ? 'channel' + : ce(e) + ? String(e) + : re(e) + ? e.name + : String(e); + } + function Te(e, t, n) { + var r, + o, + i, + a = t; + function s(t, n) { + if (a === Ee) return Oe(t); + if (n && !o) throw ((a = Ee), n); + r && r(t); + var s = n ? e[o](n) : e[a](); + return ( + (a = s.nextState), + (i = s.effect), + (r = s.stateUpdater), + (o = s.errorState), + a === Ee ? Oe(t) : i ); - })(r.Component), - dn = Object(c.connect)(function(e) { - return { - collectionItems: e.collections.items, - schemas: e.collections.schemas, - recentEvents: e.collections.recentEvents, - eventCollection: e.ui.eventCollection, - fetchingSchema: e.collections.fetchingSchema, - fetchingRecentEvents: e.collections.fetchingRecentEvents + } + return (function(e, t, n) { + void 0 === t && (t = de), void 0 === n && (n = 'iterator'); + var r = { + meta: { name: n }, + next: e, + throw: t, + return: pe, + isSagaIterator: !0 }; - }, ln)(fn), - pn = (n(153), n(60)), - hn = n(61), - gn = n.n(hn); - function mn(e) { - return (mn = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(e) { - return typeof e; - } - : function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - })(e); + return ( + 'undefined' != typeof Symbol && + (r[Symbol.iterator] = function() { + return r; + }), + r + ); + })( + s, + function(e) { + return s(null, e); + }, + n + ); + } + function Ce(e, t) { + for ( + var n = arguments.length, + r = new Array(n > 2 ? n - 2 : 0), + o = 2; + o < n; + o++ + ) + r[o - 2] = arguments[o]; + var i, + a, + s = { done: !1, value: we(e) }, + c = function(e) { + return { + done: !1, + value: ke.apply(void 0, [t].concat(r, [e])) + }; + }, + u = function(e) { + return { + done: !1, + value: ((t = e), void 0 === t && (t = ee), _e(ye, t)) + }; + var t; + }, + l = function(e) { + return (i = e); + }, + f = function(e) { + return (a = e); + }; + return Te( + { + q1: function() { + return { nextState: 'q2', effect: s, stateUpdater: f }; + }, + q2: function() { + return i + ? { nextState: 'q3', effect: u(i) } + : { nextState: 'q1', effect: c(a), stateUpdater: l }; + }, + q3: function() { + return { nextState: 'q1', effect: c(a), stateUpdater: l }; + } + }, + 'q1', + 'takeLatest(' + Ae(e) + ', ' + t.name + ')' + ); + } + function Le(e, t) { + for ( + var n = arguments.length, + r = new Array(n > 2 ? n - 2 : 0), + o = 2; + o < n; + o++ + ) + r[o - 2] = arguments[o]; + return ke.apply(void 0, [Ce, e, t].concat(r)); } - function bn(e) { + function Pe(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}, r = Object.keys(n); @@ -126732,12 +125793,12 @@ object-assign }) )), r.forEach(function(t) { - yn(e, t, n[t]); + De(e, t, n[t]); }); } return e; } - function yn(e, t, n) { + function De(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { @@ -126750,819 +125811,581 @@ object-assign e ); } - function vn(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - function _n(e, t) { - return !t || ('object' !== mn(t) && 'function' != typeof t) - ? (function(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return e; - })(e) - : t; - } - function xn(e) { - return (xn = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(e) { - return e.__proto__ || Object.getPrototypeOf(e); - })(e); - } - function wn(e, t) { - return (wn = - Object.setPrototypeOf || - function(e, t) { - return (e.__proto__ = t), e; - })(e, t); + var je = regeneratorRuntime.mark(We), + ze = regeneratorRuntime.mark(Ge), + Ne = regeneratorRuntime.mark(Ke), + Re = regeneratorRuntime.mark($e), + Ie = regeneratorRuntime.mark(Qe), + Fe = regeneratorRuntime.mark(Je), + qe = regeneratorRuntime.mark(Ze), + Be = regeneratorRuntime.mark(et), + He = regeneratorRuntime.mark(tt), + Ye = regeneratorRuntime.mark(nt); + function We() { + var e, t; + return regeneratorRuntime.wrap( + function(n) { + for (;;) + switch ((n.prev = n.next)) { + case 0: + return ( + (n.prev = 0), + (e = di.url('/3.0/projects/{projectId}', { + api_key: di.config.masterKey + })), + (n.next = 4), + fetch(e).then(function(e) { + return e.json(); + }) + ); + case 4: + return ( + (t = n.sent), + (n.next = 7), + xe({ + type: 'CLIENT_FETCH_PROJECT_SUCCESS', + payload: t + }) + ); + case 7: + n.next = 13; + break; + case 9: + return ( + (n.prev = 9), + (n.t0 = n.catch(0)), + (n.next = 13), + xe({ + type: 'CLIENT_FETCH_PROJECT_ERROR', + payload: n.t0 + }) + ); + case 13: + case 'end': + return n.stop(); + } + }, + je, + null, + [[0, 9]] + ); } - var Mn = { updateUI: Mt, updateStepUI: kt }, - kn = function(e) { - var t = e || S()(S()().format('YYYY-MM-DD')); - return '' - .concat(t.format('YYYY-MM-DD'), 'T') - .concat(t.format('HH:mm'), ':00.000Z'); + var Ve = function(e) { + return e.collections.schemas; }, - Sn = (function(e) { - function t(e) { - var n; - return ( - (function(e, t) { - if (!(e instanceof t)) - throw new TypeError( - 'Cannot call a class as a function' + Ue = function(e) { + return e.ui.loadHeavySchemas; + }, + Xe = function(e) { + return e.ui; + }; + function Ge(e) { + var t, n, r, o, i, a, s, c, u, l, f, d, p, h, g; + return regeneratorRuntime.wrap( + function(m) { + for (;;) + switch ((m.prev = m.next)) { + case 0: + return e.payload, (m.prev = 1), (m.next = 4), Se(Xe); + case 4: + return ( + (t = m.sent), + (n = t.eventCollection), + (r = t.groupBy), + (o = t.filters), + (i = t.targetProperty), + (a = t.propertyNames), + (m.next = 12), + Se(Ve) ); - })(this, t), - ((n = _n(this, xn(t).call(this, e))).state = {}), - n - ); - } - var n, i, a; - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - writable: !0, - configurable: !0 - } - })), - t && wn(e, t); - })(t, e), - (n = t), - (i = [ - { - key: 'renderRelative', - value: function() { - var e = this.props.timeframe, - t = void 0 === e ? T : e, - n = this.props, - i = n.steps, - a = n.funnel, - s = n.step, - c = n.updateUI, - u = n.updateStepUI; - a && (t = i[s].timeframe); - var l, - f, - d = t.split('_'), - p = d[2]; - 1 === d.length && - ('today' === t && - ((l = 'this'), (f = 1), (p = 'days')), - ('yesterday' !== t && 'previous_day' !== t) || - ((l = 'previous'), (f = 1), (p = 'days')), - 'previous_minute' === t && - ((l = 'previous'), (f = 1), (p = 'minutes')), - 'previous_hour' === t && - ((l = 'previous'), (f = 1), (p = 'hours')), - 'previous_week' === t && - ((l = 'previous'), (f = 1), (p = 'weeks')), - 'previous_month' === t && - ((l = 'previous'), (f = 1), (p = 'months')), - 'previous_year' === t && - ((l = 'previous'), (f = 1), (p = 'years'))), - 2 === d.length && - ((f = 1), (p = ''.concat(p, 's'))); - var h = l || d[0], - g = f || d[1], - m = p, - b = 'The last\n ' - .concat(g, '\n ') - .concat(m, '\n ') - .concat( - 'this' === h ? 'including' : 'excluding', - '\n the current day' - ), - y = function(e) { - a ? u({ step: s, payload: e }) : c(e); - }; - return o.a.createElement( - r.Fragment, - null, - o.a.createElement( - 'div', - { className: 'relative' }, - o.a.createElement(tt.a, { - value: { label: h, value: h }, - options: E.map(function(e) { - return { label: e, value: e }; - }), - onChange: function(e) { - y({ - timeframe: '' - .concat(e.value, '_') - .concat(g, '_') - .concat(m) - }); - }, - className: 'relativity', - theme: at - }), - o.a.createElement('input', { - type: 'number', - value: g, - onChange: function(e) { - y({ - timeframe: '' - .concat(h, '_') - .concat(e.target.value, '_') - .concat(m) - }); - }, - placeholder: 'Eg. 1', - className: 'input-number' - }), - o.a.createElement(tt.a, { - value: { label: m, value: m }, - options: O.map(function(e) { - return { label: e, value: e }; - }), - onChange: function(e) { - y({ - timeframe: '' - .concat(h, '_') - .concat(g, '_') - .concat(e.value) - }); - }, - className: 'units', - theme: at - }) - ), - o.a.createElement( - 'div', - { className: 'description' }, - b - ) + case 12: + return ( + (s = m.sent), + (c = s[n]), + (u = Object.keys(c)), + (m.next = 17), + Se(Xe) ); - } - }, - { - key: 'renderAbsolute', - value: function() { - var e = this, - t = this.props.timeframe, - n = void 0 === t ? C : t, - r = this.props, - i = r.funnel, - a = r.step, - s = r.steps, - c = r.updateUI, - u = r.updateStepUI, - l = this.state, - f = l.startDateFocused, - d = l.endDateFocused, - p = function() { - return !1; - }; - i && (n = s[a].timeframe); - var h = new Date(Date.UTC(2012, 11, 12, 3, 0, 0)), - g = - h.toLocaleTimeString().match(/am|pm/i) || - h.toString().match(/am|pm/i), - m = S.a.utc(n.start), - b = S.a.utc(n.end), - y = function(e) { - var t = { timeframe: bn({}, n, e) }; - i ? u({ step: a, payload: t }) : c(t); - }; - return o.a.createElement( - 'div', - { className: 'tabAbsolute' }, - o.a.createElement( - 'div', - { className: 'line' }, - o.a.createElement( - 'div', - { className: 'title' }, - 'Start' - ), - o.a.createElement(pn.SingleDatePicker, { - date: m, - onDateChange: function(e) { - if (e) { - var t = S.a.utc(e).startOf('day'), - r = kn(t); - y(bn({}, n, { start: r })); - } - }, - focused: f, - onFocusChange: function(t) { - var n = t.focused; - return e.setState({ startDateFocused: n }); - }, - isOutsideRange: p, - id: 'your_unique_id', - numberOfMonths: 1, - displayFormat: 'YYYY-MM-DD' - }), - o.a.createElement(gn.a, { - use12Hours: g, - showSecond: !1, - value: m, - onChange: function(e) { - var t = kn(e); - y(bn({}, n, { start: t })); - } - }) - ), - o.a.createElement( - 'div', - { className: 'line' }, - o.a.createElement( - 'div', - { className: 'title' }, - 'End' + case 17: + if ( + ((l = m.sent), + (f = l.orderBy), + (d = l.limit), + !i || u.includes(i)) + ) { + m.next = 23; + break; + } + return ( + (m.next = 23), + xe({ + type: 'UI_UPDATE', + payload: { targetProperty: void 0 } + }) + ); + case 23: + if (!a) { + m.next = 27; + break; + } + return ( + (p = a.filter(function(e) { + return u.includes(e); + })), + (m.next = 27), + xe({ + type: 'UI_UPDATE', + payload: { propertyNames: p } + }) + ); + case 27: + if (!o) { + m.next = 31; + break; + } + return ( + (h = o.filter(function(e) { + return u.includes(e.propertyName); + })), + (m.next = 31), + xe({ type: 'UI_UPDATE', payload: { filters: h } }) + ); + case 31: + if (!r) { + m.next = 36; + break; + } + return ( + (g = r.filter(function(e) { + return u.includes(e); + })).length || + ((g = void 0), (d = void 0), (f = void 0)), + (m.next = 36), + xe({ + type: 'UI_UPDATE', + payload: { groupBy: g, limit: d, orderBy: f } + }) + ); + case 36: + m.next = 41; + break; + case 38: + (m.prev = 38), (m.t0 = m.catch(1)), console.log(m.t0); + case 41: + case 'end': + return m.stop(); + } + }, + ze, + null, + [[1, 38]] + ); + } + function Ke(e) { + var t, n, r, o, i, a, s, c, u; + return regeneratorRuntime.wrap( + function(l) { + for (;;) + switch ((l.prev = l.next)) { + case 0: + if ((t = e.payload).eventCollection) { + l.next = 3; + break; + } + return l.abrupt('return'); + case 3: + return (l.next = 5), Se(Ve); + case 5: + if (!(n = l.sent)[t.eventCollection]) { + l.next = 10; + break; + } + return ( + (l.next = 9), + xe({ + type: 'CLIENT_FETCH_SCHEMA_SUCCESS', + eventCollection: t.eventCollection, + payload: { properties: n[t.eventCollection] } + }) + ); + case 9: + return l.abrupt('return'); + case 10: + return (l.next = 12), Se(Ue); + case 12: + return ( + (r = l.sent), + (l.prev = 13), + (o = di.url( + '/3.0/projects/{projectId}/events/'.concat( + t.eventCollection ), - o.a.createElement(pn.SingleDatePicker, { - date: b, - onDateChange: function(e) { - if (e) { - var t = S.a.utc(e).startOf('day'), - r = kn(t); - y(bn({}, n, { end: r })); - } - }, - focused: d, - onFocusChange: function(t) { - var n = t.focused; - return e.setState({ endDateFocused: n }); - }, - isOutsideRange: p, - id: 'your_unique_id2', - numberOfMonths: 1, - displayFormat: 'YYYY-MM-DD' + { api_key: di.config.masterKey } + )), + (l.next = 17), + fetch(o).then(function(e) { + return e.json(); + }) + ); + case 17: + return ( + (i = l.sent), + (a = i.properties), + (s = void 0 === a ? {} : a), + (c = Object.keys(s)).length > 500 && + !r && + ((c = c.filter(function(e) { + return ( + -1 === e.indexOf('{') && + -1 === e.indexOf('request.params') + ); + })), + (u = {}), + c.forEach(function(e) { + u[e] = s[e]; }), - o.a.createElement(gn.a, { - use12Hours: g, - showSecond: !1, - value: b, - onChange: function(e) { - var t = kn(e); - y(bn({}, n, { end: t })); - } - }) - ) + (s = Pe({}, u))), + (l.next = 23), + xe({ + type: 'CLIENT_FETCH_SCHEMA_SUCCESS', + eventCollection: t.eventCollection, + payload: { properties: s } + }) ); - } - }, - { - key: 'render', - value: function() { - var e, - t = this.props, - n = t.funnel, - i = t.step, - a = t.steps, - s = t.updateUI, - c = t.updateStepUI, - u = this.props, - l = u.timeframe, - f = u.timezone, - d = u.componentTimezone; - n && ((l = a[i].timeframe), (f = a[i].timezone)), - 'string' == typeof l && (e = 0), - 'object' === mn(l) && (e = 1); - var p = (0 !== f && - z.find(function(e) { - return e.value === f; - })) || { label: 'UTC', value: 0 }, - h = z.sort(function(e, t) { - var n = e.label, - r = t.label; - return n.toLowerCase() < r.toLowerCase() - ? -1 - : n.toLowerCase() > r.toLowerCase() - ? 1 - : 0; - }); - return o.a.createElement( - r.Fragment, - null, - o.a.createElement( - 'div', - { className: 'timeframe' }, - o.a.createElement( - 'div', - { className: 'label-main' }, - 'Timeframe' - ), - o.a.createElement( - 'div', - { className: 'tabs' }, - o.a.createElement( - 'div', - { - className: 'tab '.concat( - 0 === e ? 'active' : '' - ), - onClick: function() { - n - ? c({ - step: i, - payload: { timeframe: T } - }) - : s({ timeframe: T }); - } - }, - 'Relative' - ), - o.a.createElement( - 'div', - { - className: 'tab '.concat( - 1 === e ? 'active' : '' - ), - onClick: function() { - n - ? c({ - step: i, - payload: { timeframe: bn({}, C) } - }) - : s({ timeframe: bn({}, C) }); - } - }, - 'Absolute' - ) - ), - o.a.createElement( - 'div', - { className: 'tab-content' }, - 0 === e && this.renderRelative(), - 1 === e && this.renderAbsolute() - ) - ), - d && - o.a.createElement(tt.a, { - value: { - label: 'Timezone: '.concat(p.label), - value: p.value - }, - options: h, - onChange: function(e) { - localStorage.setItem('timezone', e.value), - s({ timezone: e.value }), - n && - c({ - step: i, - payload: { timezone: e.value } - }); - }, - theme: at - }) + case 23: + l.next = 29; + break; + case 25: + return ( + (l.prev = 25), + (l.t0 = l.catch(13)), + (l.next = 29), + xe({ + type: 'CLIENT_FETCH_SCHEMA_ERROR', + payload: l.t0 + }) ); - } - } - ]) && vn(n.prototype, i), - a && vn(n, a), - t - ); - })(r.Component), - An = Object(c.connect)(function(e) { - return { - timeframe: e.ui.timeframe, - timezone: e.ui.timezone, - steps: e.ui.steps - }; - }, Mn)(Sn); - function On(e) { - return (On = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(e) { - return typeof e; + case 29: + case 'end': + return l.stop(); } - : function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - })(e); - } - function En(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function Tn(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - function Cn(e, t) { - return !t || ('object' !== On(t) && 'function' != typeof t) - ? (function(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return e; - })(e) - : t; - } - function Ln(e) { - return (Ln = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(e) { - return e.__proto__ || Object.getPrototypeOf(e); - })(e); + }, + Ne, + null, + [[13, 25]] + ); } - function Pn(e, t) { - return (Pn = - Object.setPrototypeOf || - function(e, t) { - return (e.__proto__ = t), e; - })(e, t); + function $e(e) { + var t, n; + return regeneratorRuntime.wrap( + function(r) { + for (;;) + switch ((r.prev = r.next)) { + case 0: + return ( + (t = e.payload), + (r.prev = 1), + (r.next = 4), + di.query({ + analysisType: 'extraction', + eventCollection: t.eventCollection, + latest: t.latest || 10 + }) + ); + case 4: + return ( + (n = r.sent), + (r.next = 7), + xe({ + type: 'CLIENT_FETCH_RECENT_EVENTS_SUCCESS', + eventCollection: t.eventCollection, + payload: n + }) + ); + case 7: + r.next = 13; + break; + case 9: + return ( + (r.prev = 9), + (r.t0 = r.catch(1)), + (r.next = 13), + xe({ + type: 'CLIENT_FETCH_RECENT_EVENTS_ERROR', + payload: r.t0 + }) + ); + case 13: + case 'end': + return r.stop(); + } + }, + Re, + null, + [[1, 9]] + ); } - var Dn = { updateUI: Mt }, - zn = (function(e) { - function t() { - return En(this, t), Cn(this, Ln(t).apply(this, arguments)); - } - var n, r, i; - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - writable: !0, - configurable: !0 - } - })), - t && Pn(e, t); - })(t, e), - (n = t), - (r = [ - { - key: 'componentDidMount', - value: function() { - var e = this.props.latest, - t = this.props, - n = 1e5; - 1 === t.extractionActiveTab && (n = 1e7), - e > n && (e = n), - (0, t.updateUI)({ latest: e }); - } - }, - { - key: 'renderBulkPanel', - value: function() { - var e = this.props, - t = e.email, - n = e.contentEncoding, - r = e.updateUI; - return o.a.createElement( - 'div', - { className: 'bulk-panel' }, - o.a.createElement( - 'div', - { className: 'label-main first-label' }, - 'Recipient email address (required)' - ), - o.a.createElement('input', { - type: 'text', - className: 'input-text', - placeholder: 'your@email.com', - value: t, - name: 'email', - onChange: function(e) { - r({ email: e.target.value }); - } - }), - o.a.createElement( - 'div', - { className: 'line-checkbox line-label' }, - o.a.createElement('input', { - type: 'checkbox', - className: 'input-checkbox', - value: 'gzip', - id: 'content_encoding', - name: 'content_encoding', - checked: !!n, - onChange: function(e) { - e.target.checked - ? r({ contentEncoding: e.target.value }) - : r({ contentEncoding: void 0 }); - } - }), - o.a.createElement( - 'label', - { htmlFor: 'content_encoding' }, - 'GZIP' - ) - ) + function Qe(e) { + var t, n; + return regeneratorRuntime.wrap( + function(r) { + for (;;) + switch ((r.prev = r.next)) { + case 0: + return ( + (t = e.payload), + (r.prev = 1), + (r.next = 4), + di.query(t) ); - } - }, - { - key: 'render', - value: function() { - var e = this.props, - t = e.schemas, - n = e.eventCollection, - r = e.extractionActiveTab, - i = e.propertyNames, - a = e.latest, - s = e.updateUI, - c = i.map(function(e) { - return { value: e, label: e }; - }), - u = t[n] || {}, - l = Object.keys(u) - .sort(function(e, t) { - return e.toLowerCase() < t.toLowerCase() - ? -1 - : e.toLowerCase() > t.toLowerCase() - ? 1 - : 0; - }) - .map(function(e) { - return { label: e, value: e }; - }); - return o.a.createElement( - 'div', - { className: 'extraction' }, - o.a.createElement( - 'div', - { className: 'tabs' }, - o.a.createElement( - 'div', - { - className: 'tab '.concat( - 0 === r ? 'active' : '' - ), - onClick: function() { - return s({ - extractionActiveTab: 0, - latest: 100 - }); - } - }, - 'Preview events' - ), - o.a.createElement( - 'div', - { - className: 'tab '.concat( - 1 === r ? 'active' : '' - ), - onClick: function() { - return s({ - extractionActiveTab: 1, - latest: 1e3 - }); - } - }, - 'Bulk CSV extraction' - ) - ), - o.a.createElement( - 'div', - { className: 'tab-content' }, - 1 === r && this.renderBulkPanel(), - o.a.createElement( - 'div', - { className: 'label-main first-label' }, - 'Properties to extract' - ), - o.a.createElement(_t, { - value: c, - options: l, - onChange: function(e) { - s( - e - ? { - propertyNames: e.map(function(e) { - return e.value; - }) - } - : { propertyNames: [] } - ); - }, - placeholder: 'Filter properties...', - isMulti: !0, - className: 'standardUnits', - theme: at - }), - o.a.createElement( - 'div', - { className: 'label-main' }, - 'Limit number of events to extract' - ), - o.a.createElement('input', { - type: 'number', - className: 'input-text', - value: a, - onChange: function(e) { - var t = e.target.value, - n = 1e5; - 1 === r && (n = 1e7), - t > n && (t = n), - s({ latest: t }); - } - }) - ) + case 4: + return ( + (n = r.sent), + (r.next = 7), + xe({ type: 'CLIENT_RUN_QUERY_SUCCESS', payload: n }) + ); + case 7: + r.next = 13; + break; + case 9: + return ( + (r.prev = 9), + (r.t0 = r.catch(1)), + (r.next = 13), + xe({ + type: 'CLIENT_RUN_QUERY_ERROR', + payload: r.t0 + }) ); - } - } - ]) && Tn(n.prototype, r), - i && Tn(n, i), - t - ); - })(r.Component), - Nn = Object(c.connect)(function(e) { - return { - extractionFields: e.ui.extractionFields, - extractionActiveTab: e.ui.extractionActiveTab, - latest: e.ui.latest, - email: e.ui.email, - contentEncoding: e.ui.contentEncoding, - propertyNames: e.ui.propertyNames, - schemas: e.collections.schemas, - eventCollection: e.ui.eventCollection - }; - }, Dn)(zn); - function jn(e) { - return (jn = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(e) { - return typeof e; + case 13: + case 'end': + return r.stop(); } - : function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - })(e); - } - function Rn(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function In(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - function Fn(e, t) { - return !t || ('object' !== jn(t) && 'function' != typeof t) - ? (function(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return e; - })(e) - : t; - } - function qn(e) { - return (qn = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(e) { - return e.__proto__ || Object.getPrototypeOf(e); - })(e); + }, + Ie, + null, + [[1, 9]] + ); } - function Bn(e, t) { - return (Bn = - Object.setPrototypeOf || - function(e, t) { - return (e.__proto__ = t), e; - })(e, t); + function Je(e) { + var t, n, r, o; + return regeneratorRuntime.wrap( + function(i) { + for (;;) + switch ((i.prev = i.next)) { + case 0: + return ( + (t = e.payload), + (i.prev = 1), + (n = t.name), + (r = t.body), + (i.next = 5), + di.put({ + url: di.url('https://github.com/queries',%20'saved',%20n), + apiKey: di.config.masterKey, + params: r + }) + ); + case 5: + return ( + (o = i.sent), + (i.next = 8), + xe({ + type: 'CLIENT_SAVE_QUERY_SUCCESS', + payload: o + }) + ); + case 8: + i.next = 14; + break; + case 10: + return ( + (i.prev = 10), + (i.t0 = i.catch(1)), + (i.next = 14), + xe({ + type: 'CLIENT_SAVE_QUERY_ERROR', + payload: i.t0 + }) + ); + case 14: + case 'end': + return i.stop(); + } + }, + Fe, + null, + [[1, 10]] + ); } - var Hn = { updateUI: Mt }, - Yn = (function(e) { - function t() { - return Rn(this, t), Fn(this, qn(t).apply(this, arguments)); - } - var n, r, i; - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - writable: !0, - configurable: !0 - } - })), - t && Bn(e, t); - })(t, e), - (n = t), - (r = [ - { - key: 'componentWillUnmount', - value: function() { - this.props.updateUI({ percentile: void 0 }); - } - }, - { - key: 'render', - value: function() { - var e = this.props, - t = e.percentile, - n = void 0 === t ? void 0 : t, - r = e.updateUI; - return o.a.createElement( - 'div', - { className: 'percentile' }, - o.a.createElement( - 'div', - { className: 'label-main' }, - 'Percentile value' - ), - o.a.createElement('input', { - type: 'number', - className: 'input-text', - value: n, - placeholder: 'Ex. 33', - onChange: function(e) { - var t = parseInt(e.target.value), - n = !isNaN(t); - (t = n ? t : ''), - n && t > 100 && (t = 100), - r({ percentile: t }); - } + function Ze(e) { + var t, n; + return regeneratorRuntime.wrap( + function(r) { + for (;;) + switch ((r.prev = r.next)) { + case 0: + return ( + (t = e.payload), + (r.prev = 1), + (n = t.name), + (r.next = 5), + di + .del(di.url('https://github.com/queries',%20'saved',%20n)) + .auth(di.masterKey()) + .send() + ); + case 5: + return ( + (r.next = 7), xe({ type: 'RESET_SAVED_QUERY_UI' }) + ); + case 7: + return ( + (r.next = 9), + xe({ + type: 'CLIENT_DELETE_QUERY_SUCCESS', + payload: t }) ); - } + case 9: + r.next = 15; + break; + case 11: + return ( + (r.prev = 11), + (r.t0 = r.catch(1)), + (r.next = 15), + xe({ + type: 'CLIENT_RUN_QUERY_ERROR', + payload: r.t0 + }) + ); + case 15: + case 'end': + return r.stop(); } - ]) && In(n.prototype, r), - i && In(n, i), - t - ); - })(r.Component), - Wn = Object(c.connect)(function(e) { - return { percentile: e.ui.percentile }; - }, Hn)(Yn); - function Vn(e) { - return (Vn = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(e) { - return typeof e; + }, + qe, + null, + [[1, 11]] + ); + } + function et() { + var e; + return regeneratorRuntime.wrap( + function(t) { + for (;;) + switch ((t.prev = t.next)) { + case 0: + return ( + (t.prev = 0), + (t.next = 3), + di + .get(di.url('https://github.com/queries',%20'saved')) + .auth(di.masterKey()) + .send() + ); + case 3: + return ( + (e = t.sent), + (t.next = 6), + xe({ + type: 'CLIENT_FETCH_SAVED_QUERIES_SUCCESS', + payload: e + }) + ); + case 6: + t.next = 12; + break; + case 8: + return ( + (t.prev = 8), + (t.t0 = t.catch(0)), + (t.next = 12), + xe({ + type: 'CLIENT_SAVE_QUERY_ERROR', + payload: t.t0 + }) + ); + case 12: + case 'end': + return t.stop(); } - : function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - })(e); + }, + Be, + null, + [[0, 8]] + ); + } + function tt() { + return regeneratorRuntime.wrap(function(e) { + for (;;) + switch ((e.prev = e.next)) { + case 0: + return (e.next = 2), Le('CLIENT_FETCH_PROJECT', We); + case 2: + return (e.next = 4), Le('CLIENT_FETCH_SCHEMA', Ke); + case 4: + return (e.next = 6), Le('CHANGE_EVENT_COLLECTION', Ke); + case 6: + return ( + (e.next = 8), Le('CLIENT_FETCH_SCHEMA_SUCCESS', Ge) + ); + case 8: + return ( + (e.next = 10), Le('CLIENT_FETCH_RECENT_EVENTS', $e) + ); + case 10: + return (e.next = 12), Le('CLIENT_RUN_QUERY', Qe); + case 12: + return (e.next = 14), Le('CLIENT_SAVE_QUERY', Je); + case 14: + return (e.next = 16), Le('CLIENT_DELETE_QUERY', Ze); + case 16: + return ( + (e.next = 18), + Le( + [ + 'CLIENT_FETCH_SAVED_QUERIES', + 'CLIENT_SAVE_QUERY_SUCCESS', + 'CLIENT_DELETE_SAVED_QUERY_SUCCESS' + ], + et + ) + ); + case 18: + case 'end': + return e.stop(); + } + }, He); } - function Un(e) { + function nt() { + return regeneratorRuntime.wrap(function(e) { + for (;;) + switch ((e.prev = e.next)) { + case 0: + return ( + (e.next = 2), + (t = [tt()]), + (n = void 0), + ((n = _e(me, t)).combinator = !0), + n + ); + case 2: + case 'end': + return e.stop(); + } + var t, n; + }, Ye); + } + var rt = n(166), + ot = n(7), + it = n.n(ot), + at = n(8), + st = n.n(at), + ct = n(61), + ut = n.n(ct); + function lt(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}, r = Object.keys(n); @@ -127573,12 +126396,12 @@ object-assign }) )), r.forEach(function(t) { - Xn(e, t, n[t]); + ft(e, t, n[t]); }); } return e; } - function Xn(e, t, n) { + function ft(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { @@ -127591,7 +126414,17 @@ object-assign e ); } - function Gn(e) { + var dt = function(e) { + return lt({}, e, { + colors: lt({}, e.colors, { + primary25: '#f4f6f7', + primary: '#00bbde' + }) + }); + }, + pt = n(167), + ht = n.n(pt); + function gt(e) { return ( (function(e) { if (Array.isArray(e)) { @@ -127618,7 +126451,286 @@ object-assign })() ); } - function Kn(e, t) { + function mt(e, t, n) { + return ( + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), + e + ); + } + var bt = function(e) { + var t = e || S()(S()().format('YYYY-MM-DD')); + return '' + .concat(t.format('YYYY-MM-DD'), 'T') + .concat(t.format('HH:mm'), ':00.000Z'); + }, + yt = function(e) { + var t = e.schema, + n = e.filter, + r = n.propertyName, + o = n.operator, + i = (n.propertyValue, n.propertyType); + return ( + i || + ((i = { + string: 'String', + num: 'Number', + datetime: 'Datetime', + list: 'List', + null: 'Null', + bool: 'Boolean' + }[(t && t[r]) || {}]), + 'exists' === o && (i = 'Boolean'), + i) + ); + }, + vt = function(e) { + var t = e.filter, + n = e.eventCollection, + r = e.schemas, + o = t.property_name, + i = t.operator, + a = t.property_value, + s = (r && Object.keys(r).length && r) || {}, + c = s && s[n]; + return { + propertyValue: a, + propertyType: yt({ + schema: c, + filter: { propertyName: o, operator: i, propertyValue: a } + }) + }; + }, + _t = function(e) { + var t = e.filters.map(function(t) { + var n, + r = t.propertyName, + o = t.propertyType, + i = t.operator, + a = t.propertyValue; + if (o) + return ( + ('String' !== o && + 'Datetime' !== o && + 'contains' !== i && + 'not_contains' !== i) || + (n = a), + 'Boolean' === o || 'exists' === i + ? (n = 'true' === a) + : 'in' === i + ? ((n = ht()(a, { + quote: '"', + ltrim: !0, + rtrim: !0, + delimiter: ',' + })[0]), + 'Number' === o && + (n = n.map(function(e) { + return e.replace(/['"]+/g, ''); + }))) + : 'Number' === o + ? (n = parseFloat(a)) + : 'List' === o && + ((n = a), + 'within' === i && + (n = { + coordinates: [ + parseFloat(a.coordinates[0] || 0), + parseFloat(a.coordinates[1] || 0) + ], + maxDistanceMiles: parseFloat( + a.maxDistanceMiles || 0 + ) + })), + 'Null' === i && (n = null), + { + propertyName: r, + propertyType: o, + operator: i, + propertyValue: n + } + ); + console.log('no prop type in filter', e); + }); + return (function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + 'function' == typeof Object.getOwnPropertySymbols && + (r = r.concat( + Object.getOwnPropertySymbols(n).filter(function(e) { + return Object.getOwnPropertyDescriptor( + n, + e + ).enumerable; + }) + )), + r.forEach(function(t) { + mt(e, t, n[t]); + }); + } + return e; + })({}, e, { filters: gt(t) }); + }; + function wt() { + return (wt = + Object.assign || + function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (e[r] = n[r]); + } + return e; + }).apply(this, arguments); + } + function xt(e, t) { + if (null == e) return {}; + var n, + r, + o = (function(e, t) { + if (null == e) return {}; + var n, + r, + o = {}, + i = Object.keys(e); + for (r = 0; r < i.length; r++) + (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); + return o; + })(e, t); + if (Object.getOwnPropertySymbols) { + var i = Object.getOwnPropertySymbols(e); + for (r = 0; r < i.length; r++) + (n = i[r]), + t.indexOf(n) >= 0 || + (Object.prototype.propertyIsEnumerable.call(e, n) && + (o[n] = e[n])); + } + return o; + } + var Mt = function(e) { + var t = e.innerProps, + n = e.isFocused, + r = e.children, + i = + (t.onMouseMove, + t.onMouseOver, + xt(t, ['onMouseMove', 'onMouseOver'])); + return o.a.createElement( + 'div', + wt( + { + className: 'react-select-option', + selected: n, + style: {} + }, + i + ), + r + ); + }; + function kt() { + return (kt = + Object.assign || + function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (e[r] = n[r]); + } + return e; + }).apply(this, arguments); + } + var St = function(e) { + return o.a.createElement( + at.components.Input, + kt({}, e, { autofill: 'off' }) + ); + }, + Ot = function(e) { + return e.options.length > 200 + ? o.a.createElement( + st.a, + kt( + { + components: { Option: Mt, Input: St }, + filterOption: Object(at.createFilter)({ + ignoreAccents: !1 + }) + }, + e + ) + ) + : o.a.createElement(st.a, e); + }; + function Et(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + 'function' == typeof Object.getOwnPropertySymbols && + (r = r.concat( + Object.getOwnPropertySymbols(n).filter(function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable; + }) + )), + r.forEach(function(t) { + At(e, t, n[t]); + }); + } + return e; + } + function At(e, t, n) { + return ( + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), + e + ); + } + var Tt = function(e) { + return { type: 'UI_UPDATE', payload: e }; + }, + Ct = function(e) { + var t = e.step, + n = e.payload, + r = e.rootPayload; + return { + type: 'UI_STEP_UPDATE', + step: t, + payload: n, + rootPayload: void 0 === r ? {} : r + }; + }; + function Lt(e) { + return (Lt = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(e) { + return typeof e; + } + : function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e; + })(e); + } + function Pt(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -127627,8 +126739,8 @@ object-assign Object.defineProperty(e, r.key, r); } } - function $n(e, t) { - return !t || ('object' !== Vn(t) && 'function' != typeof t) + function Dt(e, t) { + return !t || ('object' !== Lt(t) && 'function' != typeof t) ? (function(e) { if (void 0 === e) throw new ReferenceError( @@ -127638,70 +126750,23 @@ object-assign })(e) : t; } - function Qn(e) { - return (Qn = Object.setPrototypeOf + function jt(e) { + return (jt = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function Jn(e, t) { - return (Jn = + function zt(e, t) { + return (zt = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; })(e, t); } - var Zn = { - fetchSchema: zt, - updateUI: Mt, - updateStepUI: kt, - addFilter: function() { - return { type: 'ADD_FILTER' }; - }, - deleteFilter: function(e) { - return { type: 'DELETE_FILTER', payload: e }; - }, - updateFilter: function(e) { - return { type: 'UPDATE_FILTER', payload: e }; - }, - addStepFilter: function(e) { - return { - type: 'ADD_STEP_FILTER', - step: e.step, - payload: e.payload - }; - }, - deleteStepFilter: function(e) { - return { - type: 'DELETE_STEP_FILTER', - step: e.step, - payload: e.payload - }; - }, - updateStepFilter: function(e) { - return { - type: 'UPDATE_STEP_FILTER', - step: e.step, - payload: e.payload - }; - } - }, - er = function(e) { - return { - num: 'Number', - string: 'String', - bool: 'Boolean', - datetime: 'Datetime', - null: 'String', - list: 'List', - geo: 'List', - array: 'List' - }[e]; - }, - tr = (function(e) { - function t(e) { - var n; + var Nt = { updateUI: Tt }, + Rt = (function(e) { + function t() { return ( (function(e, t) { if (!(e instanceof t)) @@ -127709,13 +126774,10 @@ object-assign 'Cannot call a class as a function' ); })(this, t), - ((n = $n(this, Qn(t).call(this, e))).state = { - save: !1 - }), - n + Dt(this, jt(t).apply(this, arguments)) ); } - var n, r, i; + var n, i, a; return ( (function(e, t) { if ('function' != typeof t && null !== t) @@ -127729,436 +126791,73 @@ object-assign configurable: !0 } })), - t && Jn(e, t); + t && zt(e, t); })(t, e), (n = t), - (r = [ - { - key: 'componentDidMount', - value: function() { - this.setState({ - oldFilters: Gn(this.props.filters), - save: !1 - }); - } - }, + (i = [ { - key: 'done', + key: 'componentWillUnmount', value: function() { - var e = this.props.filters, - t = this.props, - n = t.funnel, - r = t.step, - o = t.steps, - i = t.updateStepUI, - a = t.updateUI; - n && (e = o[r].filters || []); - var s = e.filter(function(e) { - return !!e.propertyName; - }); - n - ? i({ - step: r, - payload: { filters: Gn(s) }, - rootPayload: { modalFilters: !1 } - }) - : a({ filters: Gn(s), modalFilters: !1 }); - } - }, - { - key: 'renderFilterValue', - value: function(e) { - var t = this, - n = e.operator, - r = e.propertyType, - i = e.propertyValue, - a = e.onChange, - s = this.state.startDateFocused, - c = ['true', 'false'].map(function(e) { - return { label: e, value: e }; - }); - if ('exists' === n || 'Boolean' === r) - return o.a.createElement(tt.a, { - value: { label: i, value: i }, - options: c, - onChange: function(e) { - var t = e.value; - a(t); - }, - theme: at - }); - var u, - l = S.a.utc(i || C); - if ('Datetime' === r) - return o.a.createElement( - 'div', - { className: 'datetime-pickers' }, - o.a.createElement(pn.SingleDatePicker, { - date: l, - onDateChange: function(e) { - var t = ft(e); - a(t); - }, - focused: s, - onFocusChange: function(e) { - var n = e.focused; - return t.setState({ startDateFocused: n }); - }, - isOutsideRange: function() { - return !1; - }, - id: 'your_unique_id', - numberOfMonths: 1, - displayFormat: 'YYYY-MM-DD' - }), - o.a.createElement(gn.a, { - use12Hours: !0, - showSecond: !1, - value: l, - onChange: function(e) { - var t = ft(e); - a(t); - } - }) - ); - if ('within' === n) { - var f = { - coordinates: [void 0, void 0], - maxDistanceMiles: void 0 - }; - i && (f = Un({}, i)); - var d = f.coordinates[0] || '', - p = f.coordinates[1] || '', - h = f.maxDistanceMiles || ''; - return o.a.createElement( - 'div', - { className: 'within-inputs' }, - o.a.createElement('input', { - placeholder: 'Longitude', - type: 'text', - onChange: function(e) { - a({ - coordinates: [e.target.value, p], - maxDistanceMiles: h - }); - }, - value: d - }), - o.a.createElement('input', { - placeholder: 'Latitude', - type: 'text', - onChange: function(e) { - a({ - coordinates: [d, e.target.value], - maxDistanceMiles: h - }); - }, - value: p - }), - o.a.createElement('input', { - placeholder: 'Radius [in miles]', - type: 'text', - onChange: function(e) { - a({ - coordinates: [d, p], - maxDistanceMiles: e.target.value - }); - }, - value: h - }) - ); - } - return ( - 'in' === n && - ((u = 'Eve, "Tom Cruize", Teresa'), - 'Number' === r && (u = '1, 2, 3, 4')), - o.a.createElement('input', { - placeholder: u, - type: 'text', - onChange: function(e) { - a(e.target.value); - }, - value: i - }) - ); + this.props.updateUI({ targetProperty: void 0 }); } }, { key: 'render', value: function() { - var e = this, - t = this.props, - n = t.funnel, - r = t.step, - i = t.steps, - a = t.addFilter, - s = t.deleteFilter, - c = t.updateFilter, - u = t.addStepFilter, - l = t.deleteStepFilter, - f = t.updateStepFilter, - d = this.props, - p = d.filters, - h = d.schemas, - g = d.eventCollection, - m = h[g] || {}; - if ( - (n && - ((p = i[r].filters || []), - (m = h[i[r].eventCollection] || {}), - (g = i[r].eventCollection)), - !Object.keys(m).length) - ) - return o.a.createElement( - 'div', - { className: 'box-info' }, - 'Choose an event collection first' - ); - p = p.map(function(e) { - var t = dt({ schema: m, filter: e }); - return Un({}, e, { - propertyType: t, - propertyValue: (function(e) { - var t = e.propertyType, - n = e.filter.propertyValue; - if ('Datetime' === t) { - var r = new Date(n); - null !== r && - 'Invalid Date' !== r.toString() && - (n = S()(n)); - } - return ( - void 0 !== n && - ['true', 'false'].includes( - n.toString().toLowerCase() - ) && - (n = n.toString().toLowerCase()), - n - ); - })({ propertyType: t, filter: e }) - }); - }); - var b = Object.keys(m) - .sort(function(e, t) { - return e.toLowerCase() < t.toLowerCase() - ? -1 - : e.toLowerCase() > t.toLowerCase() - ? 1 - : 0; - }) - .map(function(e) { - return { label: e, value: e }; - }); + var e = this.props, + t = e.schemas, + n = e.eventCollection, + i = e.updateUI, + a = t[n] || {}, + s = Object.keys(a) + .sort(function(e, t) { + return e.toLowerCase() < t.toLowerCase() + ? -1 + : e.toLowerCase() > t.toLowerCase() + ? 1 + : 0; + }) + .map(function(e) { + return { label: e, value: e }; + }); return o.a.createElement( - 'div', + r.Fragment, null, o.a.createElement( 'div', - { className: 'list' }, - p.map(function(t, i) { - var a = t.propertyName, - u = t.propertyType, - d = t.propertyValue, - p = t.operator, - h = u || er(m[a]), - g = N.filter(function(e) { - return e.dataTypes.includes(h); - }); - return o.a.createElement( - 'div', - { className: 'row', key: i }, - o.a.createElement( - 'div', - { className: 'row-part' }, - o.a.createElement(_t, { - value: { label: a, value: a }, - options: b, - onChange: function(e) { - n - ? f({ - step: r, - payload: { - index: i, - item: Un({}, t, { - propertyName: e.value, - propertyType: er(m[e.value]) - }) - } - }) - : c({ - index: i, - item: Un({}, t, { - propertyName: e.value, - propertyType: er(m[e.value]) - }) - }); - }, - theme: at - }) - ), - o.a.createElement( - 'div', - { className: 'row-part' }, - o.a.createElement(tt.a, { - value: { label: u, value: u }, - options: j, - onChange: function(e) { - n - ? f({ - step: r, - payload: { - index: i, - item: Un({}, t, { - propertyType: e.value, - propertyValue: void 0, - operator: void 0 - }) - } - }) - : c({ - index: i, - item: Un({}, t, { - propertyType: e.value, - propertyValue: void 0, - operator: void 0 - }) - }); - }, - theme: at - }) - ), - o.a.createElement( - 'div', - { className: 'row-part' }, - o.a.createElement(tt.a, { - value: { label: p, value: p }, - options: g, - onChange: function(e) { - var o = d; - 'exists' === e.value && (o = 'true'), - n - ? f({ - step: r, - payload: { - index: i, - item: Un({}, t, { - operator: e.value, - propertyValue: o - }) - } - }) - : c({ - index: i, - item: Un({}, t, { - operator: e.value, - propertyValue: o - }) - }); - }, - theme: at - }) - ), - o.a.createElement( - 'div', - { className: 'row-part' }, - e.renderFilterValue({ - item: t, - step: r, - operator: p, - propertyType: u, - propertyValue: d, - onChange: function(e) { - n - ? f({ - step: r, - payload: { - index: i, - item: Un({}, t, { - propertyValue: e - }) - } - }) - : c({ - index: i, - item: Un({}, t, { - propertyValue: e - }) - }); - } - }) - ), - o.a.createElement( - 'div', - { className: 'row-part no-flex' }, - o.a.createElement( - 'a', - { - className: 'delete', - onClick: function() { - n - ? l({ - step: r, - payload: { index: i } - }) - : s(i); - } - }, - o.a.createElement('i', { - className: 'fas fa-times' - }) - ) - ) - ); - }) + { className: 'label-main' }, + 'Target property' ), - o.a.createElement( - 'div', - { className: 'action-buttons' }, - o.a.createElement( - 'div', - { - className: 'button-add-filter', - onClick: function() { - n ? u({ step: r }) : a(); - } - }, - o.a.createElement('i', { - className: 'fas fa-plus' - }), - ' Add filter' - ), - o.a.createElement( - 'div', - { - className: 'button button-done', - onClick: function() { - return e.done(); - } - }, - o.a.createElement('i', { - className: 'fas fa-check-circle' - }), - 'Done' - ) - ) + o.a.createElement(Ot, { + value: this.props.value, + options: s, + onChange: function(e) { + i({ targetProperty: e.value }); + }, + theme: dt + }) ); } } - ]) && Kn(n.prototype, r), - i && Kn(n, i), + ]) && Pt(n.prototype, i), + a && Pt(n, a), t ); })(r.Component), - nr = Object(c.connect)(function(e) { + It = Object(c.connect)(function(e) { return { schemas: e.collections.schemas, - eventCollection: e.ui.eventCollection, - filters: e.ui.filters, - steps: e.ui.steps + eventCollection: e.ui.eventCollection }; - }, Zn)(tr); - function rr(e) { - return (rr = + }, Nt)(Rt), + Ft = function(e) { + return { type: 'CLIENT_FETCH_SCHEMA', payload: e }; + }, + qt = function(e) { + return { type: 'CLIENT_DELETE_QUERY', payload: e }; + }; + function Bt(e) { + return (Bt = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { @@ -128173,11 +126872,7 @@ object-assign : typeof e; })(e); } - function or(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function ir(e, t) { + function Ht(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -128186,8 +126881,8 @@ object-assign Object.defineProperty(e, r.key, r); } } - function ar(e, t) { - return !t || ('object' !== rr(t) && 'function' != typeof t) + function Yt(e, t) { + return !t || ('object' !== Bt(t) && 'function' != typeof t) ? (function(e) { if (void 0 === e) throw new ReferenceError( @@ -128197,24 +126892,57 @@ object-assign })(e) : t; } - function sr(e) { - return (sr = Object.setPrototypeOf + function Wt(e) { + return (Wt = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function cr(e, t) { - return (cr = + function Vt(e, t) { + return (Vt = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; })(e, t); } - var ur = { updateUI: Mt }, - lr = (function(e) { + function Ut() { + return (Ut = + Object.assign || + function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (e[r] = n[r]); + } + return e; + }).apply(this, arguments); + } + var Xt = function(e) { + return o.a.createElement( + at.components.Input, + Ut({}, e, { autofill: 'off', name: 'eventCollection' }) + ); + }, + Gt = { + fetchSchema: Ft, + changeEventCollection: function(e) { + return { type: 'CHANGE_EVENT_COLLECTION', payload: e }; + }, + updateStepUI: Ct + }, + Kt = (function(e) { function t() { - return or(this, t), ar(this, sr(t).apply(this, arguments)); + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + Yt(this, Wt(t).apply(this, arguments)) + ); } var n, r, i; return ( @@ -128230,236 +126958,104 @@ object-assign configurable: !0 } })), - t && cr(e, t); + t && Vt(e, t); })(t, e), (n = t), (r = [ { - key: 'getCurrentSchema', - value: function() { - var e = this.props, - t = e.schemas[e.eventCollection] || {}; - return Object.keys(t); - } - }, - { - key: 'renderSelects', + key: 'render', value: function() { var e = this.props, - t = e.ui, - n = e.updateUI, - r = t.groupBy, - i = t.orderBy, - a = t.limit, - s = t.numberOfGroupByProps, - c = r ? r[0] : '', - u = c ? r[1] : '', - l = [], - f = this.getCurrentSchema() + t = e.funnel, + n = e.step, + r = e.collections, + i = e.steps, + a = e.fetchSchema, + s = e.changeEventCollection, + c = e.updateStepUI, + u = this.props, + l = u.eventCollection, + f = u.saveStateToLocalStorage; + t && (l = i[n].eventCollection); + var d = !!l, + p = d ? void 0 : 'Choose an event collection', + h = r.items .sort(function(e, t) { - return e.toLowerCase() < t.toLowerCase() + return e.name.toLowerCase() < + t.name.toLowerCase() ? -1 - : e.toLowerCase() > t.toLowerCase() + : e.name.toLowerCase() > t.name.toLowerCase() ? 1 : 0; }) .map(function(e) { - return { label: e, value: e }; - }); - return ( - l.push( - o.a.createElement( - 'div', - { key: 'groupBy1' }, - o.a.createElement( - 'div', - { className: 'label-main' }, - 'Target property' - ), - o.a.createElement(_t, { - value: c && { label: c, value: c }, - options: f, - onChange: function(e) { - n({ groupBy: [e.value] }); - }, - theme: at - }), - o.a.createElement( - 'div', - { className: 'options' }, - o.a.createElement( - 'div', - { className: 'order-by' }, - o.a.createElement( - 'div', - { className: 'label-main' }, - 'Order', - o.a.createElement( - 'span', - { className: 'optional' }, - 'Optional' - ) - ), - o.a.createElement(_t, { - value: i && { - label: i.direction, - value: i.direction - }, - options: ['ASC', 'DESC'].map(function(e) { - return { label: e, value: e }; - }), - onChange: function(e) { - n({ - orderBy: { - property_name: 'result', - direction: e.value - } - }); - }, - className: 'select', - theme: at - }) - ), - o.a.createElement( - 'div', - { className: 'limit' }, - o.a.createElement( - 'div', - { className: 'label-main' }, - 'Limit', - o.a.createElement( - 'span', - { className: 'optional' }, - 'Optional' - ) - ), - o.a.createElement('input', { - type: 'number', - value: a || '', - onChange: function(e) { - n({ limit: parseInt(e.target.value) }); - }, - placeholder: 'Eg. 10', - className: 'input-number input' - }) - ) - ) - ) - ), - 2 === s && - l.push( - o.a.createElement( - 'div', - { - key: 'groupBy2', - className: 'additional-target-property' - }, - o.a.createElement( - 'div', - { className: 'label-main' }, - 'Second target property' - ), - o.a.createElement(_t, { - value: u && { label: u, value: u }, - options: f, - onChange: function(e) { - n({ groupBy: [r[0], e.value] }); - }, - className: 'standard-units', - theme: at - }) - ) - ), - l - ); - } - }, - { - key: 'renderButton', - value: function() { - var e = this.props, - t = e.ui, - n = e.updateUI, - r = t.groupBy; - return 1 === t.numberOfGroupByProps - ? o.a.createElement( - 'div', - { - role: 'button', - tabIndex: '0', - className: 'btn-plus', - onClick: function() { - n({ numberOfGroupByProps: 2 }); - } - }, - o.a.createElement('i', { - className: 'fas fa-plus' - }) - ) - : o.a.createElement( - 'div', - { - role: 'button', - tabIndex: '0', - className: 'btn-minus', - onClick: function() { - n({ - groupBy: r ? [r[0]] : null, - numberOfGroupByProps: 1 - }); - } - }, - o.a.createElement('i', { - className: 'fas fa-minus' - }) - ); - } - }, - { - key: 'render', - value: function() { - var e = this.props.ui.eventCollection; + return { label: e.name, value: e.url }; + }), + g = l && { label: l, value: l }; return o.a.createElement( 'div', - { className: 'group-by' }, + { className: 'event-collection' }, o.a.createElement( 'div', - { className: 'tab-content' }, - o.a.createElement( - 'div', - { className: 'tab' }, - !e && - o.a.createElement( - 'div', - { className: 'box-info' }, - 'Choose an event collection first' - ), - e && - o.a.createElement( - 'div', - null, - this.renderSelects(), - this.renderButton() - ) - ) - ) + { className: 'label-main' }, + 'Event collection' + ), + o.a.createElement(st.a, { + name: 'eventCollection', + placeholder: p, + autoFocus: !d, + value: g, + components: { Input: Xt }, + options: h, + onChange: function(e) { + if ( + (f && + localStorage && + localStorage.setItem( + 'eventCollection', + e.label + ), + t) + ) + return ( + a({ + eventCollection: e.label, + step: n, + funnel: t + }), + void c({ + step: n, + payload: { + eventCollection: e.label, + actorProperty: void 0, + filters: [] + } + }) + ); + s({ eventCollection: e.label }); + }, + theme: dt + }) ); } } - ]) && ir(n.prototype, r), - i && ir(n, i), + ]) && Ht(n.prototype, r), + i && Ht(n, i), t ); })(r.Component), - fr = Object(c.connect)(function(e) { + $t = Object(c.connect)(function(e) { return { - ui: e.ui, - schemas: e.collections.schemas, - eventCollection: e.ui.eventCollection + collections: e.collections, + eventCollection: e.ui.eventCollection, + steps: e.ui.steps, + schemas: e.collections.schemas }; - }, ur)(lr); - function dr(e) { - return (dr = + }, Gt)(Kt), + Qt = n(58), + Jt = n.n(Qt); + function Zt(e) { + return (Zt = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { @@ -128474,11 +127070,185 @@ object-assign : typeof e; })(e); } - function pr(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); + function en(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + function tn(e, t) { + return !t || ('object' !== Zt(t) && 'function' != typeof t) + ? (function(e) { + if (void 0 === e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return e; + })(e) + : t; + } + function nn(e) { + return (nn = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(e) { + return e.__proto__ || Object.getPrototypeOf(e); + })(e); + } + function rn(e, t) { + return (rn = + Object.setPrototypeOf || + function(e, t) { + return (e.__proto__ = t), e; + })(e, t); + } + var on = (function(e) { + function t(e) { + var n; + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + ((n = tn(this, nn(t).call(this, e))).state = { + filter: '' + }), + n + ); + } + var n, r, i; + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { value: e, writable: !0, configurable: !0 } + })), + t && rn(e, t); + })(t, e), + (n = t), + (r = [ + { + key: 'updateFilter', + value: function(e) { + this.setState({ filter: e.target.value }); + } + }, + { + key: 'render', + value: function() { + var e = this, + t = this.props, + n = t.items, + r = t.activeItem, + i = this.state.filter; + return o.a.createElement( + 'div', + { className: 'filtered-list' }, + o.a.createElement('input', { + className: 'input-filter', + placeholder: 'Search...', + type: 'text', + value: i, + onChange: function(t) { + return e.updateFilter(t); + } + }), + n + .filter(function(e) { + return ( + e.name.toLowerCase().indexOf(i.toLowerCase()) >= + 0 + ); + }) + .sort(function(e, t) { + var n = e.name, + r = t.name; + return n.toLowerCase() < r.toLowerCase() + ? -1 + : n.toLowerCase() > r.toLowerCase() + ? 1 + : 0; + }) + .map(function(t) { + var n = t.name, + i = t.index; + return o.a.createElement( + 'div', + { + key: n, + className: 'item '.concat( + r === n && 'active' + ), + onClick: function() { + e.props.onClick(n); + }, + onKeyDown: function() { + e.props.onClick(n); + }, + role: 'button', + tabIndex: i + }, + n + ); + }) + ); + } + } + ]) && en(n.prototype, r), + i && en(n, i), + t + ); + })(r.Component); + on.propTypes = { + items: it.a.arrayOf(it.a.object).isRequired, + activeItem: it.a.string.isRequired, + onClick: it.a.func.isRequired + }; + var an = on; + function sn() { + return (sn = + Object.assign || + function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (e[r] = n[r]); + } + return e; + }).apply(this, arguments); + } + var cn = function(e) { + return o.a.createElement( + 'div', + sn({ className: 'loading-spinner' }, e), + o.a.createElement('i', { className: 'fas fa-cog fa-spin' }) + ); + }; + function un(e) { + return (un = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(e) { + return typeof e; + } + : function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e; + })(e); } - function hr(e, t) { + function ln(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -128487,8 +127257,8 @@ object-assign Object.defineProperty(e, r.key, r); } } - function gr(e, t) { - return !t || ('object' !== dr(t) && 'function' != typeof t) + function fn(e, t) { + return !t || ('object' !== un(t) && 'function' != typeof t) ? (function(e) { if (void 0 === e) throw new ReferenceError( @@ -128498,24 +127268,43 @@ object-assign })(e) : t; } - function mr(e) { - return (mr = Object.setPrototypeOf + function dn(e) { + return (dn = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function br(e, t) { - return (br = + function pn(e, t) { + return (pn = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; })(e, t); } - var yr = { updateUI: Mt }, - vr = (function(e) { - function t() { - return pr(this, t), gr(this, mr(t).apply(this, arguments)); + var hn = { + updateUI: Tt, + fetchSchema: Ft, + fetchRecentEvents: function(e) { + return { type: 'CLIENT_FETCH_RECENT_EVENTS', payload: e }; + } + }, + gn = 1, + mn = (function(e) { + function t(e) { + var n; + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + ((n = fn(this, dn(t).call(this, e))).state = { + activeTab: gn + }), + n + ); } var n, r, i; return ( @@ -128531,152 +127320,132 @@ object-assign configurable: !0 } })), - t && br(e, t); + t && pn(e, t); })(t, e), (n = t), (r = [ { - key: 'renderStandard', + key: 'componentDidMount', value: function() { - var e = this.props, - t = e.interval, - n = e.updateUI; - return o.a.createElement( - 'div', - { className: 'tab' }, - o.a.createElement(tt.a, { - value: { label: t, value: t }, - options: L.map(function(e) { - return { label: e, value: e }; - }), - onChange: function(e) { - n({ interval: e.value }); - }, - className: 'standard-units', - theme: at - }) - ); + var e = this.props.eventCollection; + e && Ft({ eventCollection: e }); } }, { - key: 'renderCustom', + key: 'render', value: function() { - var e = this.props, - t = e.interval, - n = void 0 === t ? D : t, - r = e.updateUI, - i = n.split('_')[1], - a = n.split('_')[2]; + var e = this, + t = this.props, + n = t.eventCollection, + r = t.collectionItems, + i = t.schemas, + a = t.recentEvents, + s = t.fetchingSchema, + c = t.fetchingRecentEvents, + u = t.fetchSchema, + l = t.updateUI, + f = t.fetchRecentEvents, + d = this.state.activeTab, + p = s || c, + h = i[n] || {}; return o.a.createElement( 'div', - { className: 'tab line' }, + { className: 'preview-collection-content' }, o.a.createElement( 'div', - { className: 'title' }, - 'Every' + { className: 'list' }, + o.a.createElement(an, { + items: r, + activeItem: n, + onClick: function(e) { + l({ eventCollection: e }), + u({ eventCollection: e }); + } + }) ), - o.a.createElement('input', { - type: 'number', - value: i, - onChange: function(e) { - r({ - interval: 'every_' - .concat(e.target.value, '_') - .concat(a) - }); - }, - placeholder: '', - className: 'input-number' - }), - o.a.createElement(tt.a, { - value: { label: a, value: a }, - options: O.map(function(e) { - return { label: e, value: e }; - }), - onChange: function(e) { - r({ - interval: 'every_' - .concat(i, '_') - .concat(e.value) - }); - }, - className: 'time-units', - theme: at - }) - ); - } - }, - { - key: 'render', - value: function() { - var e = this.props, - t = e.interval, - n = void 0 === t ? '' : t, - r = e.updateUI, - i = !0; - return ( - n && (i = -1 === n.indexOf('_')), o.a.createElement( 'div', - { className: 'interval' }, + { className: 'content' }, o.a.createElement( 'div', { className: 'tabs' }, o.a.createElement( 'div', { - className: 'tab '.concat(i && 'active'), + className: 'tab '.concat( + d === gn ? 'active' : '' + ), onClick: function() { - return r({ interval: P }); + e.setState({ activeTab: gn }); } }, - 'Standard' + 'Schema' ), o.a.createElement( 'div', { - className: 'tab '.concat(!i && 'active'), + className: 'tab '.concat( + 0 === d ? 'active' : '' + ), onClick: function() { - return r({ interval: D }); + e.setState({ activeTab: 0 }, function() { + f({ eventCollection: n }); + }); } }, - 'Custom' - ) + 'Recent Events' + ), + o.a.createElement('div', { + className: 'tab-placeholder' + }) ), o.a.createElement( 'div', { className: 'tab-content' }, - i && this.renderStandard(), - !i && this.renderCustom() + p && o.a.createElement(cn, null), + !p && + d === gn && + o.a.createElement(Jt.a, { + src: h, + style: { fontFamily: 'inherit' }, + collapsed: !1, + displayDataTypes: !1, + sortKeys: !0 + }), + !p && + 0 === d && + o.a.createElement(Jt.a, { + src: a, + style: { fontFamily: 'inherit' }, + collapsed: !1, + displayDataTypes: !1, + sortKeys: !0 + }) ) ) ); } } - ]) && hr(n.prototype, r), - i && hr(n, i), + ]) && ln(n.prototype, r), + i && ln(n, i), t ); })(r.Component), - _r = Object(c.connect)(function(e) { - return { interval: e.ui.interval }; - }, yr)(vr), - xr = function(e) { - var t = document.createElement('textarea'); - (t.value = e), - document.body.appendChild(t), - t.select(), - document.execCommand('copy'), - document.body.removeChild(t); - }, - wr = function(e) { - return e - .toLowerCase() - .replace(/[^\w\s-]/g, '') - .replace(/ /g, '-'); - }; - function Mr(e) { - return (Mr = + bn = Object(c.connect)(function(e) { + return { + collectionItems: e.collections.items, + schemas: e.collections.schemas, + recentEvents: e.collections.recentEvents, + eventCollection: e.ui.eventCollection, + fetchingSchema: e.collections.fetchingSchema, + fetchingRecentEvents: e.collections.fetchingRecentEvents + }; + }, hn)(mn), + yn = (n(151), n(59)), + vn = n(60), + _n = n.n(vn); + function wn(e) { + return (wn = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { @@ -128691,11 +127460,36 @@ object-assign : typeof e; })(e); } - function kr(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); + function xn(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + 'function' == typeof Object.getOwnPropertySymbols && + (r = r.concat( + Object.getOwnPropertySymbols(n).filter(function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable; + }) + )), + r.forEach(function(t) { + Mn(e, t, n[t]); + }); + } + return e; } - function Sr(e, t) { + function Mn(e, t, n) { + return ( + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), + e + ); + } + function kn(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -128704,8 +127498,8 @@ object-assign Object.defineProperty(e, r.key, r); } } - function Ar(e, t) { - return !t || ('object' !== Mr(t) && 'function' != typeof t) + function Sn(e, t) { + return !t || ('object' !== wn(t) && 'function' != typeof t) ? (function(e) { if (void 0 === e) throw new ReferenceError( @@ -128715,135 +127509,396 @@ object-assign })(e) : t; } - function Or(e) { - return (Or = Object.setPrototypeOf + function On(e) { + return (On = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function Er(e, t) { - return (Er = + function En(e, t) { + return (En = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; })(e, t); } - var Tr = (function(e) { - function t() { - return kr(this, t), Ar(this, Or(t).apply(this, arguments)); - } - var n, r, i; - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { value: e, writable: !0, configurable: !0 } - })), - t && Er(e, t); - })(t, e), - (n = t), - (r = [ - { - key: 'render', - value: function() { - var e = this.props, - t = e.analysisType, - n = e.queryParams, - r = e.client, - i = Object.keys(n) - .map(function(e) { - var t = n[e]; - if (!t) return null; - if (Array.isArray(t) && !t.length) return null; - if ('timezone' === e) { - var r = z.find(function(e) { - return e.label === t; - }) || { label: 'UTC', value: 0 }; - t = r.value; - } - Array.isArray(t) && - (t = t.map(function(e) { - if ('object' === Mr(e) && null !== e) { - var t = {}; - return ( - Object.keys(e).forEach(function(n) { - var r = n - .replace( - /(?:^|\.?)([A-Z])/g, - function(e, t) { - return '_'.concat( - t.toLowerCase() - ); - } - ) - .replace(/^_/, ''); - t[r] = e[n]; - }), - t - ); - } - return e; - })), - (t = JSON.stringify(t)); - var o = e - .replace(/(?:^|\.?)([A-Z])/g, function(e, t) { - return '_'.concat(t.toLowerCase()); - }) - .replace(/^_/, ''); - return '' - .concat(encodeURIComponent(o), '=') - .concat(encodeURIComponent(t)); - }) - .filter(function(e) { - return !!e; - }) - .join('&') - .replace(/%22true%22/gi, 'true') - .replace(/%22false%22/gi, 'false'), - a = '' - .concat(r.config.protocol, '://') - .concat(r.config.host, '/3.0/projects/') - .concat(r.config.projectId, '/queries/') - .concat(t, '?api_key=') - .concat(r.config.masterKey, '&') - .concat(i); - return o.a.createElement( - 'div', - { - className: 'apiQueryUrl', - onClick: function() { - return xr(a); - }, - role: 'presentation' - }, - o.a.createElement('span', null, 'API Query URL'), - o.a.createElement('input', { - type: 'text', - defaultValue: a - }), - o.a.createElement('i', { className: 'fas fa-copy' }) + var An = { updateUI: Tt, updateStepUI: Ct }, + Tn = function(e) { + var t = e || S()(S()().format('YYYY-MM-DD')); + return '' + .concat(t.format('YYYY-MM-DD'), 'T') + .concat(t.format('HH:mm'), ':00.000Z'); + }, + Cn = (function(e) { + function t(e) { + var n; + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + ((n = Sn(this, On(t).call(this, e))).state = {}), + n + ); + } + var n, i, a; + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function' ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + writable: !0, + configurable: !0 + } + })), + t && En(e, t); + })(t, e), + (n = t), + (i = [ + { + key: 'renderRelative', + value: function() { + var e = this.props.timeframe, + t = void 0 === e ? T : e, + n = this.props, + i = n.steps, + a = n.funnel, + s = n.step, + c = n.updateUI, + u = n.updateStepUI; + a && (t = i[s].timeframe); + var l, + f, + d = t.split('_'), + p = d[2]; + 1 === d.length && + ('today' === t && + ((l = 'this'), (f = 1), (p = 'days')), + ('yesterday' !== t && 'previous_day' !== t) || + ((l = 'previous'), (f = 1), (p = 'days')), + 'previous_minute' === t && + ((l = 'previous'), (f = 1), (p = 'minutes')), + 'previous_hour' === t && + ((l = 'previous'), (f = 1), (p = 'hours')), + 'previous_week' === t && + ((l = 'previous'), (f = 1), (p = 'weeks')), + 'previous_month' === t && + ((l = 'previous'), (f = 1), (p = 'months')), + 'previous_year' === t && + ((l = 'previous'), (f = 1), (p = 'years'))), + 2 === d.length && + ((f = 1), (p = ''.concat(p, 's'))); + var h = l || d[0], + g = f || d[1], + m = p, + b = 'The last\n ' + .concat(g, '\n ') + .concat(m, '\n ') + .concat( + 'this' === h ? 'including' : 'excluding', + '\n the current day' + ), + y = function(e) { + a ? u({ step: s, payload: e }) : c(e); + }; + return o.a.createElement( + r.Fragment, + null, + o.a.createElement( + 'div', + { className: 'relative' }, + o.a.createElement(st.a, { + value: { label: h, value: h }, + options: A.map(function(e) { + return { label: e, value: e }; + }), + onChange: function(e) { + y({ + timeframe: '' + .concat(e.value, '_') + .concat(g, '_') + .concat(m) + }); + }, + className: 'relativity', + theme: dt + }), + o.a.createElement('input', { + type: 'number', + value: g, + onChange: function(e) { + y({ + timeframe: '' + .concat(h, '_') + .concat(e.target.value, '_') + .concat(m) + }); + }, + placeholder: 'Eg. 1', + className: 'input-number' + }), + o.a.createElement(st.a, { + value: { label: m, value: m }, + options: E.map(function(e) { + return { label: e, value: e }; + }), + onChange: function(e) { + y({ + timeframe: '' + .concat(h, '_') + .concat(g, '_') + .concat(e.value) + }); + }, + className: 'units', + theme: dt + }) + ), + o.a.createElement( + 'div', + { className: 'description' }, + b + ) + ); + } + }, + { + key: 'renderAbsolute', + value: function() { + var e = this, + t = this.props.timeframe, + n = void 0 === t ? C : t, + r = this.props, + i = r.funnel, + a = r.step, + s = r.steps, + c = r.updateUI, + u = r.updateStepUI, + l = this.state, + f = l.startDateFocused, + d = l.endDateFocused, + p = function() { + return !1; + }; + i && (n = s[a].timeframe); + var h = new Date(Date.UTC(2012, 11, 12, 3, 0, 0)), + g = + h.toLocaleTimeString().match(/am|pm/i) || + h.toString().match(/am|pm/i), + m = S.a.utc(n.start), + b = S.a.utc(n.end), + y = function(e) { + var t = { timeframe: xn({}, n, e) }; + i ? u({ step: a, payload: t }) : c(t); + }; + return o.a.createElement( + 'div', + { className: 'tabAbsolute' }, + o.a.createElement( + 'div', + { className: 'line' }, + o.a.createElement( + 'div', + { className: 'title' }, + 'Start' + ), + o.a.createElement(yn.SingleDatePicker, { + date: m, + onDateChange: function(e) { + if (e) { + var t = S.a.utc(e).startOf('day'), + r = Tn(t); + y(xn({}, n, { start: r })); + } + }, + focused: f, + onFocusChange: function(t) { + var n = t.focused; + return e.setState({ startDateFocused: n }); + }, + isOutsideRange: p, + id: 'your_unique_id', + numberOfMonths: 1, + displayFormat: 'YYYY-MM-DD' + }), + o.a.createElement(_n.a, { + use12Hours: g, + showSecond: !1, + value: m, + onChange: function(e) { + var t = Tn(e); + y(xn({}, n, { start: t })); + } + }) + ), + o.a.createElement( + 'div', + { className: 'line' }, + o.a.createElement( + 'div', + { className: 'title' }, + 'End' + ), + o.a.createElement(yn.SingleDatePicker, { + date: b, + onDateChange: function(e) { + if (e) { + var t = S.a.utc(e).startOf('day'), + r = Tn(t); + y(xn({}, n, { end: r })); + } + }, + focused: d, + onFocusChange: function(t) { + var n = t.focused; + return e.setState({ endDateFocused: n }); + }, + isOutsideRange: p, + id: 'your_unique_id2', + numberOfMonths: 1, + displayFormat: 'YYYY-MM-DD' + }), + o.a.createElement(_n.a, { + use12Hours: g, + showSecond: !1, + value: b, + onChange: function(e) { + var t = Tn(e); + y(xn({}, n, { end: t })); + } + }) + ) + ); + } + }, + { + key: 'render', + value: function() { + var e, + t = this.props, + n = t.funnel, + i = t.step, + a = t.steps, + s = t.updateUI, + c = t.updateStepUI, + u = this.props, + l = u.timeframe, + f = u.timezone, + d = u.componentTimezone; + n && ((l = a[i].timeframe), (f = a[i].timezone)), + 'string' == typeof l && (e = 0), + 'object' === wn(l) && (e = 1); + var p = (0 !== f && + j.find(function(e) { + return e.value === f; + })) || { label: 'UTC', value: 0 }, + h = j.sort(function(e, t) { + var n = e.label, + r = t.label; + return n.toLowerCase() < r.toLowerCase() + ? -1 + : n.toLowerCase() > r.toLowerCase() + ? 1 + : 0; + }); + return o.a.createElement( + r.Fragment, + null, + o.a.createElement( + 'div', + { className: 'timeframe' }, + o.a.createElement( + 'div', + { className: 'label-main' }, + 'Timeframe' + ), + o.a.createElement( + 'div', + { className: 'tabs' }, + o.a.createElement( + 'div', + { + className: 'tab '.concat( + 0 === e ? 'active' : '' + ), + onClick: function() { + n + ? c({ + step: i, + payload: { timeframe: T } + }) + : s({ timeframe: T }); + } + }, + 'Relative' + ), + o.a.createElement( + 'div', + { + className: 'tab '.concat( + 1 === e ? 'active' : '' + ), + onClick: function() { + n + ? c({ + step: i, + payload: { timeframe: xn({}, C) } + }) + : s({ timeframe: xn({}, C) }); + } + }, + 'Absolute' + ) + ), + o.a.createElement( + 'div', + { className: 'tab-content' }, + 0 === e && this.renderRelative(), + 1 === e && this.renderAbsolute() + ) + ), + d && + o.a.createElement(st.a, { + value: { + label: 'Timezone: '.concat(p.label), + value: p.value + }, + options: h, + onChange: function(e) { + localStorage.setItem('timezone', e.value), + s({ timezone: e.value }), + n && + c({ + step: i, + payload: { timezone: e.value } + }); + }, + theme: dt + }) + ); + } } - } - ]) && Sr(n.prototype, r), - i && Sr(n, i), - t - ); - })(r.Component); - Tr.propTypes = { - queryParams: Ze.a.shape({}).isRequired, - analysisType: Ze.a.string.isRequired, - client: Ze.a.shape({}).isRequired - }; - var Cr = Object(c.connect)(function(e) { - return { analysisType: e.ui.analysisType }; - }, {})(Tr); - function Lr(e) { - return (Lr = + ]) && kn(n.prototype, i), + a && kn(n, a), + t + ); + })(r.Component), + Ln = Object(c.connect)(function(e) { + return { + timeframe: e.ui.timeframe, + timezone: e.ui.timezone, + steps: e.ui.steps + }; + }, An)(Cn); + function Pn(e) { + return (Pn = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { @@ -128858,7 +127913,7 @@ object-assign : typeof e; })(e); } - function Pr(e, t) { + function Dn(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -128867,8 +127922,8 @@ object-assign Object.defineProperty(e, r.key, r); } } - function Dr(e, t) { - return !t || ('object' !== Lr(t) && 'function' != typeof t) + function jn(e, t) { + return !t || ('object' !== Pn(t) && 'function' != typeof t) ? (function(e) { if (void 0 === e) throw new ReferenceError( @@ -128878,156 +127933,242 @@ object-assign })(e) : t; } - function zr(e) { - return (zr = Object.setPrototypeOf + function zn(e) { + return (zn = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function Nr(e, t) { - return (Nr = + function Nn(e, t) { + return (Nn = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; })(e, t); } - var jr = (function(e) { - function t(e) { - var n; + var Rn = { updateUI: Tt }, + In = (function(e) { + function t() { + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + jn(this, zn(t).apply(this, arguments)) + ); + } + var n, r, i; return ( (function(e, t) { - if (!(e instanceof t)) + if ('function' != typeof t && null !== t) throw new TypeError( - 'Cannot call a class as a function' + 'Super expression must either be null or a function' ); - })(this, t), - ((n = Dr(this, zr(t).call(this, e))).state = { - active: n.props.defaultActive - }), - n - ); - } - var n, r, i; - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { value: e, writable: !0, configurable: !0 } - })), - t && Nr(e, t); - })(t, e), - (n = t), - (r = [ - { - key: 'componentDidUpdate', - value: function(e) { - !e.defaultActive && - this.props.defaultActive && - this.setState({ active: this.props.defaultActive }), - e.defaultActive && - !this.props.defaultActive && - this.setState({ active: this.props.defaultActive }); - } - }, - { - key: 'onChange', - value: function() { - var e = this.props, - t = e.onClose, - n = e.onChange, - r = this.state.active; - n && n(r), t && !r && t(); - } - }, - { - key: 'render', - value: function() { - var e = this, - t = this.props, - n = t.title, - r = t.onDelete, - i = this.state.active; - return o.a.createElement( - 'div', - { - className: 'foldable '.concat(i && 'foldableActive') - }, - o.a.createElement( + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + writable: !0, + configurable: !0 + } + })), + t && Nn(e, t); + })(t, e), + (n = t), + (r = [ + { + key: 'componentDidMount', + value: function() { + var e = this.props.latest, + t = this.props, + n = 1e5; + 1 === t.extractionActiveTab && (n = 1e7), + e > n && (e = n), + (0, t.updateUI)({ latest: e }); + } + }, + { + key: 'renderBulkPanel', + value: function() { + var e = this.props, + t = e.email, + n = e.contentEncoding, + r = e.updateUI; + return o.a.createElement( 'div', - { - className: 'title', - onClick: function() { - e.setState({ active: !i }, function() { - return e.onChange(); - }); + { className: 'bulk-panel' }, + o.a.createElement( + 'div', + { className: 'label-main first-label' }, + 'Recipient email address (required)' + ), + o.a.createElement('input', { + type: 'text', + className: 'input-text', + placeholder: 'your@email.com', + value: t, + name: 'email', + onChange: function(e) { + r({ email: e.target.value }); } - }, + }), o.a.createElement( 'div', - { className: 'step-switch-position-buttons' }, + { className: 'line-checkbox line-label' }, + o.a.createElement('input', { + type: 'checkbox', + className: 'input-checkbox', + value: 'gzip', + id: 'content_encoding', + name: 'content_encoding', + checked: !!n, + onChange: function(e) { + e.target.checked + ? r({ contentEncoding: e.target.value }) + : r({ contentEncoding: void 0 }); + } + }), + o.a.createElement( + 'label', + { htmlFor: 'content_encoding' }, + 'GZIP' + ) + ) + ); + } + }, + { + key: 'render', + value: function() { + var e = this.props, + t = e.schemas, + n = e.eventCollection, + r = e.extractionActiveTab, + i = e.propertyNames, + a = e.latest, + s = e.updateUI, + c = i.map(function(e) { + return { value: e, label: e }; + }), + u = t[n] || {}, + l = Object.keys(u) + .sort(function(e, t) { + return e.toLowerCase() < t.toLowerCase() + ? -1 + : e.toLowerCase() > t.toLowerCase() + ? 1 + : 0; + }) + .map(function(e) { + return { label: e, value: e }; + }); + return o.a.createElement( + 'div', + { className: 'extraction' }, + o.a.createElement( + 'div', + { className: 'tabs' }, o.a.createElement( 'div', { - onClick: function(t) { - t.stopPropagation(), e.props.onClickUp(); - }, - className: 'move-up' + className: 'tab '.concat( + 0 === r ? 'active' : '' + ), + onClick: function() { + return s({ + extractionActiveTab: 0, + latest: 100 + }); + } }, - o.a.createElement('i', { - className: 'fas fa-angle-up' - }) + 'Preview events' ), o.a.createElement( 'div', { - onClick: function(t) { - t.stopPropagation(), e.props.onClickDown(); - }, - className: 'move-down' + className: 'tab '.concat( + 1 === r ? 'active' : '' + ), + onClick: function() { + return s({ + extractionActiveTab: 1, + latest: 1e3 + }); + } }, - o.a.createElement('i', { - className: 'fas fa-angle-down' - }) + 'Bulk CSV extraction' ) ), - o.a.createElement('span', null, n), o.a.createElement( 'div', - { className: 'foldable-icon' }, + { className: 'tab-content' }, + 1 === r && this.renderBulkPanel(), o.a.createElement( 'div', - { - onClick: function(e) { - e.stopPropagation(), r(); - }, - className: 'button button-delete' + { className: 'label-main first-label' }, + 'Properties to extract' + ), + o.a.createElement(Ot, { + value: c, + options: l, + onChange: function(e) { + s( + e + ? { + propertyNames: e.map(function(e) { + return e.value; + }) + } + : { propertyNames: [] } + ); }, - o.a.createElement('i', { - className: 'fas fa-times' - }) - ) - ) - ), - i && - o.a.createElement( - 'div', - { className: 'content' }, - this.props.children + placeholder: 'Filter properties...', + isMulti: !0, + className: 'standardUnits', + theme: dt + }), + o.a.createElement( + 'div', + { className: 'label-main' }, + 'Limit number of events to extract' + ), + o.a.createElement('input', { + type: 'number', + className: 'input-text', + value: a, + onChange: function(e) { + var t = e.target.value, + n = 1e5; + 1 === r && (n = 1e7), + t > n && (t = n), + s({ latest: t }); + } + }) ) - ); + ); + } } - } - ]) && Pr(n.prototype, r), - i && Pr(n, i), - t - ); - })(r.Component); - function Rr(e) { - return (Rr = + ]) && Dn(n.prototype, r), + i && Dn(n, i), + t + ); + })(r.Component), + Fn = Object(c.connect)(function(e) { + return { + extractionFields: e.ui.extractionFields, + extractionActiveTab: e.ui.extractionActiveTab, + latest: e.ui.latest, + email: e.ui.email, + contentEncoding: e.ui.contentEncoding, + propertyNames: e.ui.propertyNames, + schemas: e.collections.schemas, + eventCollection: e.ui.eventCollection + }; + }, Rn)(In); + function qn(e) { + return (qn = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { @@ -129042,11 +128183,7 @@ object-assign : typeof e; })(e); } - function Ir(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function Fr(e, t) { + function Bn(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -129055,8 +128192,8 @@ object-assign Object.defineProperty(e, r.key, r); } } - function qr(e, t) { - return !t || ('object' !== Rr(t) && 'function' != typeof t) + function Hn(e, t) { + return !t || ('object' !== qn(t) && 'function' != typeof t) ? (function(e) { if (void 0 === e) throw new ReferenceError( @@ -129066,30 +128203,32 @@ object-assign })(e) : t; } - function Br(e) { - return (Br = Object.setPrototypeOf + function Yn(e) { + return (Yn = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function Hr(e, t) { - return (Hr = + function Wn(e, t) { + return (Wn = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; })(e, t); } - var Yr = { - updateUI: Mt, - updateStepUI: kt, - deleteStep: function(e) { - return { type: 'DELETE_STEP', payload: e }; - } - }, - Wr = (function(e) { + var Vn = { updateUI: Tt }, + Un = (function(e) { function t() { - return Ir(this, t), qr(this, Br(t).apply(this, arguments)); + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + Hn(this, Yn(t).apply(this, arguments)) + ); } var n, r, i; return ( @@ -129105,201 +128244,57 @@ object-assign configurable: !0 } })), - t && Hr(e, t); + t && Wn(e, t); })(t, e), (n = t), (r = [ + { + key: 'componentWillUnmount', + value: function() { + this.props.updateUI({ percentile: void 0 }); + } + }, { key: 'render', value: function() { var e = this.props, - t = e.updateUI, - n = e.updateStepUI, - r = e.deleteStep, - i = e.index, - a = e.children, - s = e.activeStep, - c = e.stepLabels, - u = e.steps, - l = u[i], - f = (c && c[i]) || l.eventCollection, - d = function(e, t, n) { - var r = e[t]; - return (e[t] = e[n]), (e[n] = r), e; - }; + t = e.percentile, + n = void 0 === t ? void 0 : t, + r = e.updateUI; return o.a.createElement( 'div', - { - className: 'step '.concat( - i === s ? 'active-step' : '' - ) - }, + { className: 'percentile' }, o.a.createElement( - jr, - { - title: 'Step '.concat(i + 1), - defaultActive: i === s, - onChange: function(e) { - t({ activeStep: e ? i : void 0 }); - }, - onClose: function() { - t({ activeStep: void 0 }); - }, - onDelete: function() { - r(i); - }, - onClickDown: function() { - if (i !== u.length - 1) { - var e = d(u, i, i + 1), - n = d(c, i, i + 1); - t({ - steps: e, - stepLabels: n, - activeStep: s + 1 - }); - } - }, - onClickUp: function() { - if (0 !== i) { - var e = d(u, i, i - 1), - n = d(c, i, i - 1); - t({ - steps: e, - stepLabels: n, - activeStep: s - 1 - }); - } - } - }, - a, - o.a.createElement( - 'div', - { className: 'label-main first-label' }, - 'Label' - ), - o.a.createElement('input', { - className: 'input-text', - placeholder: 'Eg. Customers this month', - type: 'text', - value: f, - onChange: function(e) { - t({ - stepLabels: c.map(function(t, n) { - return n === i ? e.target.value : t; - }) - }); - } - }), - o.a.createElement( - 'div', - { className: 'line-options' }, - o.a.createElement( - 'div', - { className: 'line-checkbox' }, - o.a.createElement('input', { - type: 'checkbox', - id: 'step'.concat(i, '_optional_step'), - checked: l.optional, - onChange: function(e) { - var t = e.target.checked; - n({ step: i, payload: { optional: t } }); - } - }), - o.a.createElement( - 'label', - { - htmlFor: 'step'.concat( - i, - '_optional_step' - ) - }, - 'Optional Step' - ) - ), - o.a.createElement( - 'div', - { className: 'line-checkbox' }, - o.a.createElement('input', { - type: 'checkbox', - id: 'step'.concat(i, '_inverted_step'), - checked: l.inverted, - onChange: function(e) { - var t = e.target.checked; - n({ step: i, payload: { inverted: t } }); - } - }), - o.a.createElement( - 'label', - { - htmlFor: 'step'.concat( - i, - '_inverted_step' - ) - }, - 'Inverted Step' - ) - ), - o.a.createElement( - 'div', - { className: 'line-checkbox' }, - o.a.createElement('input', { - type: 'checkbox', - id: 'step'.concat(i, '_with_actors_step'), - checked: l.withActors, - onChange: function(e) { - var t = e.target.checked; - n({ - step: i, - payload: { withActors: t } - }); - } - }), - o.a.createElement( - 'label', - { - htmlFor: 'step'.concat( - i, - '_with_actors_step' - ) - }, - 'With Actors' - ) - ) - ) - ) + 'div', + { className: 'label-main' }, + 'Percentile value' + ), + o.a.createElement('input', { + type: 'number', + className: 'input-text', + value: n, + placeholder: 'Ex. 33', + onChange: function(e) { + var t = parseInt(e.target.value), + n = !isNaN(t); + (t = n ? t : ''), + n && t > 100 && (t = 100), + r({ percentile: t }); + } + }) ); } } - ]) && Fr(n.prototype, r), - i && Fr(n, i), + ]) && Bn(n.prototype, r), + i && Bn(n, i), t ); })(r.Component), - Vr = Object(c.connect)(function(e) { - return (function(e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e - ); - })( - { - activeStep: e.ui.activeStep, - stepLabels: e.ui.stepLabels, - steps: e.ui.steps - }, - 'stepLabels', - e.ui.stepLabels - ); - }, Yr)(Wr); - function Ur(e) { - return (Ur = + Xn = Object(c.connect)(function(e) { + return { percentile: e.ui.percentile }; + }, Vn)(Un); + function Gn(e) { + return (Gn = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { @@ -129314,11 +128309,63 @@ object-assign : typeof e; })(e); } - function Xr(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); + function Kn(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + 'function' == typeof Object.getOwnPropertySymbols && + (r = r.concat( + Object.getOwnPropertySymbols(n).filter(function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable; + }) + )), + r.forEach(function(t) { + $n(e, t, n[t]); + }); + } + return e; + } + function $n(e, t, n) { + return ( + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), + e + ); + } + function Qn(e) { + return ( + (function(e) { + if (Array.isArray(e)) { + for ( + var t = 0, n = new Array(e.length); + t < e.length; + t++ + ) + n[t] = e[t]; + return n; + } + })(e) || + (function(e) { + if ( + Symbol.iterator in Object(e) || + '[object Arguments]' === Object.prototype.toString.call(e) + ) + return Array.from(e); + })(e) || + (function() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance' + ); + })() + ); } - function Gr(e, t) { + function Jn(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -129327,8 +128374,8 @@ object-assign Object.defineProperty(e, r.key, r); } } - function Kr(e, t) { - return !t || ('object' !== Ur(t) && 'function' != typeof t) + function Zn(e, t) { + return !t || ('object' !== Gn(t) && 'function' != typeof t) ? (function(e) { if (void 0 === e) throw new ReferenceError( @@ -129338,26 +128385,84 @@ object-assign })(e) : t; } - function $r(e) { - return ($r = Object.setPrototypeOf + function er(e) { + return (er = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function Qr(e, t) { - return (Qr = + function tr(e, t) { + return (tr = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; })(e, t); } - var Jr = { updateStepUI: kt }, - Zr = (function(e) { - function t() { - return Xr(this, t), Kr(this, $r(t).apply(this, arguments)); + var nr = { + fetchSchema: Ft, + updateUI: Tt, + updateStepUI: Ct, + addFilter: function() { + return { type: 'ADD_FILTER' }; + }, + deleteFilter: function(e) { + return { type: 'DELETE_FILTER', payload: e }; + }, + updateFilter: function(e) { + return { type: 'UPDATE_FILTER', payload: e }; + }, + addStepFilter: function(e) { + return { + type: 'ADD_STEP_FILTER', + step: e.step, + payload: e.payload + }; + }, + deleteStepFilter: function(e) { + return { + type: 'DELETE_STEP_FILTER', + step: e.step, + payload: e.payload + }; + }, + updateStepFilter: function(e) { + return { + type: 'UPDATE_STEP_FILTER', + step: e.step, + payload: e.payload + }; } - var n, i, a; + }, + rr = function(e) { + return { + num: 'Number', + string: 'String', + bool: 'Boolean', + datetime: 'Datetime', + null: 'String', + list: 'List', + geo: 'List', + array: 'List' + }[e]; + }, + or = (function(e) { + function t(e) { + var n; + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + ((n = Zn(this, er(t).call(this, e))).state = { + save: !1 + }), + n + ); + } + var n, r, i; return ( (function(e, t) { if ('function' != typeof t && null !== t) @@ -129371,84 +128476,436 @@ object-assign configurable: !0 } })), - t && Qr(e, t); + t && tr(e, t); })(t, e), (n = t), - (i = [ + (r = [ + { + key: 'componentDidMount', + value: function() { + this.setState({ + oldFilters: Qn(this.props.filters), + save: !1 + }); + } + }, + { + key: 'done', + value: function() { + var e = this.props.filters, + t = this.props, + n = t.funnel, + r = t.step, + o = t.steps, + i = t.updateStepUI, + a = t.updateUI; + n && (e = o[r].filters || []); + var s = e.filter(function(e) { + return !!e.propertyName; + }); + n + ? i({ + step: r, + payload: { filters: Qn(s) }, + rootPayload: { modalFilters: !1 } + }) + : a({ filters: Qn(s), modalFilters: !1 }); + } + }, + { + key: 'renderFilterValue', + value: function(e) { + var t = this, + n = e.operator, + r = e.propertyType, + i = e.propertyValue, + a = e.onChange, + s = this.state.startDateFocused, + c = ['true', 'false'].map(function(e) { + return { label: e, value: e }; + }); + if ('exists' === n || 'Boolean' === r) + return o.a.createElement(st.a, { + value: { label: i, value: i }, + options: c, + onChange: function(e) { + var t = e.value; + a(t); + }, + theme: dt + }); + var u, + l = S.a.utc(i || C); + if ('Datetime' === r) + return o.a.createElement( + 'div', + { className: 'datetime-pickers' }, + o.a.createElement(yn.SingleDatePicker, { + date: l, + onDateChange: function(e) { + var t = bt(e); + a(t); + }, + focused: s, + onFocusChange: function(e) { + var n = e.focused; + return t.setState({ startDateFocused: n }); + }, + isOutsideRange: function() { + return !1; + }, + id: 'your_unique_id', + numberOfMonths: 1, + displayFormat: 'YYYY-MM-DD' + }), + o.a.createElement(_n.a, { + use12Hours: !0, + showSecond: !1, + value: l, + onChange: function(e) { + var t = bt(e); + a(t); + } + }) + ); + if ('within' === n) { + var f = { + coordinates: [void 0, void 0], + maxDistanceMiles: void 0 + }; + i && (f = Kn({}, i)); + var d = f.coordinates[0] || '', + p = f.coordinates[1] || '', + h = f.maxDistanceMiles || ''; + return o.a.createElement( + 'div', + { className: 'within-inputs' }, + o.a.createElement('input', { + placeholder: 'Longitude', + type: 'text', + onChange: function(e) { + a({ + coordinates: [e.target.value, p], + maxDistanceMiles: h + }); + }, + value: d + }), + o.a.createElement('input', { + placeholder: 'Latitude', + type: 'text', + onChange: function(e) { + a({ + coordinates: [d, e.target.value], + maxDistanceMiles: h + }); + }, + value: p + }), + o.a.createElement('input', { + placeholder: 'Radius [in miles]', + type: 'text', + onChange: function(e) { + a({ + coordinates: [d, p], + maxDistanceMiles: e.target.value + }); + }, + value: h + }) + ); + } + return ( + 'in' === n && + ((u = 'Eve, "Tom Cruize", Teresa'), + 'Number' === r && (u = '1, 2, 3, 4')), + o.a.createElement('input', { + placeholder: u, + type: 'text', + onChange: function(e) { + a(e.target.value); + }, + value: i + }) + ); + } + }, { key: 'render', value: function() { - var e = this.props, - t = e.step, - n = e.steps, - i = e.schemas, - a = e.updateStepUI, - s = this.props.steps[t].actorProperty, - c = i[n[t].eventCollection] || {}, - u = Object.keys(c) - .sort(function(e, t) { - return e.toLowerCase() < t.toLowerCase() - ? -1 - : e.toLowerCase() > t.toLowerCase() - ? 1 - : 0; + var e = this, + t = this.props, + n = t.funnel, + r = t.step, + i = t.steps, + a = t.addFilter, + s = t.deleteFilter, + c = t.updateFilter, + u = t.addStepFilter, + l = t.deleteStepFilter, + f = t.updateStepFilter, + d = this.props, + p = d.filters, + h = d.schemas, + g = d.eventCollection, + m = h[g] || {}; + if ( + (n && + ((p = i[r].filters || []), + (m = h[i[r].eventCollection] || {}), + (g = i[r].eventCollection)), + !Object.keys(m).length) + ) + return o.a.createElement( + 'div', + { className: 'box-info' }, + 'Choose an event collection first' + ); + p = p.map(function(e) { + var t = yt({ schema: m, filter: e }); + return Kn({}, e, { + propertyType: t, + propertyValue: (function(e) { + var t = e.propertyType, + n = e.filter.propertyValue; + if ('Datetime' === t) { + var r = new Date(n); + null !== r && + 'Invalid Date' !== r.toString() && + (n = S()(n)); + } + return ( + void 0 !== n && + ['true', 'false'].includes( + n.toString().toLowerCase() + ) && + (n = n.toString().toLowerCase()), + n + ); + })({ propertyType: t, filter: e }) + }); + }); + var b = Object.keys(m) + .sort(function(e, t) { + return e.toLowerCase() < t.toLowerCase() + ? -1 + : e.toLowerCase() > t.toLowerCase() + ? 1 + : 0; + }) + .map(function(e) { + return { label: e, value: e }; + }); + return o.a.createElement( + 'div', + null, + o.a.createElement( + 'div', + { className: 'list' }, + p.map(function(t, i) { + var a = t.propertyName, + u = t.propertyType, + d = t.propertyValue, + p = t.operator, + h = u || rr(m[a]), + g = z.filter(function(e) { + return e.dataTypes.includes(h); + }); + return o.a.createElement( + 'div', + { className: 'row', key: i }, + o.a.createElement( + 'div', + { className: 'row-part' }, + o.a.createElement(Ot, { + value: { label: a, value: a }, + options: b, + onChange: function(e) { + n + ? f({ + step: r, + payload: { + index: i, + item: Kn({}, t, { + propertyName: e.value, + propertyType: rr(m[e.value]) + }) + } + }) + : c({ + index: i, + item: Kn({}, t, { + propertyName: e.value, + propertyType: rr(m[e.value]) + }) + }); + }, + theme: dt + }) + ), + o.a.createElement( + 'div', + { className: 'row-part' }, + o.a.createElement(st.a, { + value: { label: u, value: u }, + options: N, + onChange: function(e) { + n + ? f({ + step: r, + payload: { + index: i, + item: Kn({}, t, { + propertyType: e.value, + propertyValue: void 0, + operator: void 0 + }) + } + }) + : c({ + index: i, + item: Kn({}, t, { + propertyType: e.value, + propertyValue: void 0, + operator: void 0 + }) + }); + }, + theme: dt + }) + ), + o.a.createElement( + 'div', + { className: 'row-part' }, + o.a.createElement(st.a, { + value: { label: p, value: p }, + options: g, + onChange: function(e) { + var o = d; + 'exists' === e.value && (o = 'true'), + n + ? f({ + step: r, + payload: { + index: i, + item: Kn({}, t, { + operator: e.value, + propertyValue: o + }) + } + }) + : c({ + index: i, + item: Kn({}, t, { + operator: e.value, + propertyValue: o + }) + }); + }, + theme: dt + }) + ), + o.a.createElement( + 'div', + { className: 'row-part' }, + e.renderFilterValue({ + item: t, + step: r, + operator: p, + propertyType: u, + propertyValue: d, + onChange: function(e) { + n + ? f({ + step: r, + payload: { + index: i, + item: Kn({}, t, { + propertyValue: e + }) + } + }) + : c({ + index: i, + item: Kn({}, t, { + propertyValue: e + }) + }); + } + }) + ), + o.a.createElement( + 'div', + { className: 'row-part no-flex' }, + o.a.createElement( + 'a', + { + className: 'delete', + onClick: function() { + n + ? l({ + step: r, + payload: { index: i } + }) + : s(i); + } + }, + o.a.createElement('i', { + className: 'fas fa-times' + }) + ) + ) + ); }) - .map(function(e) { - return { label: e, value: e }; - }); - return o.a.createElement( - r.Fragment, - null, + ), o.a.createElement( 'div', - { className: 'label-main' }, - 'Actor property' - ), - o.a.createElement(_t, { - value: { label: s, value: s }, - options: u, - onChange: function(e) { - a({ - step: t, - payload: { actorProperty: e.value } - }); - }, - theme: at - }) + { className: 'action-buttons' }, + o.a.createElement( + 'div', + { + className: 'button-add-filter', + onClick: function() { + n ? u({ step: r }) : a(); + } + }, + o.a.createElement('i', { + className: 'fas fa-plus' + }), + ' Add filter' + ), + o.a.createElement( + 'div', + { + className: 'button button-done', + onClick: function() { + return e.done(); + } + }, + o.a.createElement('i', { + className: 'fas fa-check-circle' + }), + 'Done' + ) + ) ); } } - ]) && Gr(n.prototype, i), - a && Gr(n, a), + ]) && Jn(n.prototype, r), + i && Jn(n, i), t ); - })(r.Component); - Zr.propTypes = { - step: Ze.a.number.isRequired, - steps: Ze.a.arrayOf(Ze.a.shape({ actorProperty: Ze.a.string })) - .isRequired, - schemas: Ze.a.shape({}).isRequired, - updateStepUI: Ze.a.func.isRequired - }; - var eo = Object(c.connect)(function(e) { - return { schemas: e.collections.schemas, steps: e.ui.steps }; - }, Jr)(Zr), - to = function(e) { - var t = e.width, - n = e.height, - r = e.fill; - return o.a.createElement( - 'svg', - { width: t, height: n, viewBox: '0 0 30 30' }, - o.a.createElement('path', { - fill: r, - d: - 'M15,0 C23.2842712,0 30,6.71572875 30,15 C30,23.2842712 23.2842712,30 15,30 C6.71572875,30 0,23.2842712 0,15 C0,6.71572875 6.71572875,0 15,0 Z M15,3.33333333 C8.55667792,3.33333333 3.33333333,8.55667792 3.33333333,15 C3.33333333,21.4433221 8.55667792,26.6666667 15,26.6666667 C21.4433221,26.6666667 26.6666667,21.4433221 26.6666667,15 C26.6666667,8.55667792 21.4433221,3.33333333 15,3.33333333 Z M16.6666667,13.8333333 L16.6666667,22.9672147 L13.3333333,22.9672147 L13.3333333,13.8333333 L16.6666667,13.8333333 Z M14.959893,7 C15.3074866,7 15.6350267,7.06445672 15.9425134,7.19337017 C16.25,7.32228361 16.5196078,7.50184162 16.7513369,7.7320442 C16.983066,7.96224678 17.1657754,8.22928177 17.2994652,8.53314917 C17.4331551,8.83701657 17.5,9.16390424 17.5,9.51381215 C17.5,9.85451197 17.4331551,10.1744936 17.2994652,10.4737569 C17.1657754,10.7730203 16.983066,11.0354512 16.7513369,11.2610497 C16.5196078,11.4866483 16.25,11.6662063 15.9425134,11.7997238 C15.6350267,11.9332413 15.3074866,12 14.959893,12 C14.6212121,12 14.3048128,11.9332413 14.0106952,11.7997238 C13.7165775,11.6662063 13.4558824,11.4866483 13.2286096,11.2610497 C13.0013369,11.0354512 12.8230838,10.7730203 12.6938503,10.4737569 C12.5646168,10.1744936 12.5,9.85451197 12.5,9.51381215 C12.5,9.16390424 12.5646168,8.83701657 12.6938503,8.53314917 C12.8230838,8.22928177 13.0013369,7.96224678 13.2286096,7.7320442 C13.4558824,7.50184162 13.7165775,7.32228361 14.0106952,7.19337017 C14.3048128,7.06445672 14.6212121,7 14.959893,7 Z' - }) - ); - }; - function no(e) { - return (no = + })(r.Component), + ir = Object(c.connect)(function(e) { + return { + schemas: e.collections.schemas, + eventCollection: e.ui.eventCollection, + filters: e.ui.filters, + steps: e.ui.steps + }; + }, nr)(or); + function ar(e) { + return (ar = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { @@ -129463,7 +128920,7 @@ object-assign : typeof e; })(e); } - function ro(e, t) { + function sr(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -129472,8 +128929,8 @@ object-assign Object.defineProperty(e, r.key, r); } } - function oo(e, t) { - return !t || ('object' !== no(t) && 'function' != typeof t) + function cr(e, t) { + return !t || ('object' !== ar(t) && 'function' != typeof t) ? (function(e) { if (void 0 === e) throw new ReferenceError( @@ -129483,35 +128940,23 @@ object-assign })(e) : t; } - function io(e) { - return (io = Object.setPrototypeOf + function ur(e) { + return (ur = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function ao(e, t) { - return (ao = + function lr(e, t) { + return (lr = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; })(e, t); } - var so = { - updateSavedQueryUI: function(e) { - return { type: 'UPDATE_SAVED_QUERY_UI', payload: e }; - }, - resetSavedQueryUI: function(e) { - return { type: 'RESET_SAVED_QUERY_UI', payload: e }; - }, - saveQuery: function(e) { - return { type: 'CLIENT_SAVE_QUERY', payload: e }; - }, - deleteQuery: Nt - }, - co = (function(e) { - function t(e) { - var n; + var fr = { updateUI: Tt }, + dr = (function(e) { + function t() { return ( (function(e, t) { if (!(e instanceof t)) @@ -129519,11 +128964,7 @@ object-assign 'Cannot call a class as a function' ); })(this, t), - ((n = oo(this, io(t).call(this, e))).state = { - error: null, - tooltip: !1 - }), - n + cr(this, ur(t).apply(this, arguments)) ); } var n, r, i; @@ -129540,334 +128981,238 @@ object-assign configurable: !0 } })), - t && ao(e, t); + t && lr(e, t); })(t, e), (n = t), (r = [ { - key: 'save', - value: function() { - this.setState({ error: null }); - var e, - t = this.props, - n = t.chartType, - r = t.queryParams, - o = t.uiSavedQuery, - i = t.uiStepLabels, - a = t.analysisType, - s = o.displayName, - c = o.name, - u = o.refreshRate; - o.cache, - s - ? ('funnel' === a && - (i && i.length && i[0] && (e = i), - (r.eventCollection = void 0), - (r.filters = void 0), - (r.timeframe = void 0), - (r.timezone = void 0)), - isNaN(r.percentile) || - (r.percentile = parseInt(r.percentile)), - this.props.saveQuery({ - name: c, - body: { - query: r, - metadata: { - displayName: s, - visualization: { - chartType: n, - stepLabels: e - } - }, - refreshRate: 60 * u * 60 - } - })) - : this.setState({ error: 'Name is required' }); - } - }, - { - key: 'delete', - value: function() { - if (confirm('Delete this query?')) { - this.setState({ error: null }); - var e = this.props.uiSavedQuery.name; - this.props.deleteQuery({ name: e }); - } - } - }, - { - key: 'clone', + key: 'getCurrentSchema', value: function() { - this.setState({ error: null }), - this.props.resetSavedQueryUI(); - } - }, - { - key: 'tooltip', - value: function(e) { - this.setState({ tooltip: e }); + var e = this.props, + t = e.schemas[e.eventCollection] || {}; + return Object.keys(t); } }, { - key: 'render', + key: 'renderSelects', value: function() { - for ( - var e = this, - t = this.props, - n = t.uiSavedQuery, - r = t.isSavingQuery, - i = t.isLimited, - a = this.state, - s = a.error, - c = a.tooltip, - u = n.name, - l = n.displayName, - f = n.cache, - d = n.refreshRate, - p = n.exists, - h = [], - g = 4; - g < 49; - g++ - ) - h.push(g); - return o.a.createElement( - 'div', - { className: 'saved-query' }, - o.a.createElement( - 'div', - null, - o.a.createElement('input', { - className: 'input-name', - placeholder: 'Give your query a name...', - type: 'text', - value: l, - onChange: function(t) { - e.props.updateSavedQueryUI({ - name: wr(t.target.value), - displayName: t.target.value, - exists: !1 - }); - } - }), - u && - o.a.createElement( - 'div', - { className: 'resource-name' }, - o.a.createElement( - 'div', - { className: 'line line-label' }, - 'Saved query resource name:' - ), - o.a.createElement( - 'div', - { className: 'line' }, - o.a.createElement( - 'span', - { className: 'name' }, - u - ), - o.a.createElement( - 'a', - { - className: 'button-copy', - onClick: function() { - return xr(u); - } - }, - o.a.createElement('i', { - className: 'fas fa-copy' - }) - ) - ) - ) - ), - o.a.createElement( - 'div', - { className: 'cache' }, + var e = this.props, + t = e.ui, + n = e.updateUI, + r = t.groupBy, + i = t.orderBy, + a = t.limit, + s = t.numberOfGroupByProps, + c = r ? r[0] : '', + u = c ? r[1] : '', + l = [], + f = this.getCurrentSchema() + .sort(function(e, t) { + return e.toLowerCase() < t.toLowerCase() + ? -1 + : e.toLowerCase() > t.toLowerCase() + ? 1 + : 0; + }) + .map(function(e) { + return { label: e, value: e }; + }); + return ( + l.push( o.a.createElement( 'div', - { className: 'line-checkbox' }, + { key: 'groupBy1' }, o.a.createElement( 'div', - null, - o.a.createElement('input', { - type: 'checkbox', - id: 'cacheInput', - disabled: i && !f, - checked: f, - onChange: function(t) { - e.props.updateSavedQueryUI({ - cache: !f, - refreshRate: f ? 0 : 4 - }); - } - }), - o.a.createElement( - 'label', - { - htmlFor: 'cacheInput', - style: { color: i && !f && '#DCDCDC' } - }, - 'Cache' - ) + { className: 'label-main' }, + 'Target property' ), - i && + o.a.createElement(Ot, { + value: c && { label: c, value: c }, + options: f, + onChange: function(e) { + n({ groupBy: [e.value] }); + }, + theme: dt + }), + o.a.createElement( + 'div', + { className: 'options' }, o.a.createElement( 'div', - { className: 'cache-limit' }, + { className: 'order-by' }, o.a.createElement( - 'span', - null, - 'Cached queries limit' + 'div', + { className: 'label-main' }, + 'Order', + o.a.createElement( + 'span', + { className: 'optional' }, + 'Optional' + ) ), + o.a.createElement(Ot, { + value: i && { + label: i.direction, + value: i.direction + }, + options: ['', 'ASC', 'DESC'].map(function( + e + ) { + return { label: e, value: e }; + }), + onChange: function(e) { + n({ + orderBy: { + property_name: 'result', + direction: e.value + } + }); + }, + className: 'select', + theme: dt + }) + ), + o.a.createElement( + 'div', + { className: 'limit' }, o.a.createElement( 'div', - { - onMouseOver: function() { - return e.tooltip(!0); - }, - onFocus: function() { - return 0; - }, - onMouseLeave: function() { - return e.tooltip(!1); - } + { className: 'label-main' }, + 'Limit', + o.a.createElement( + 'span', + { className: 'optional' }, + 'Optional' + ) + ), + o.a.createElement('input', { + type: 'number', + value: a || '', + onChange: function(e) { + n({ limit: parseInt(e.target.value) }); }, - o.a.createElement(to, { - width: '15px', - height: '15px', - fill: '#27566D' - }), - c && - o.a.createElement( - 'div', - { className: 'tooltip' }, - o.a.createElement( - 'p', - null, - 'You have reached the limit of cached queries for your organization (5 cached queries).' - ), - o.a.createElement( - 'p', - null, - 'Disable caching for other queries or contact us to extend the plan at ', - o.a.createElement( - 'b', - null, - 'team@keen.io' - ) - ) - ) - ) + placeholder: 'Eg. 10', + className: 'input-number input' + }) ) - ), - f && + ) + ) + ), + 2 === s && + l.push( o.a.createElement( 'div', - { className: 'cache-refresh' }, + { + key: 'groupBy2', + className: 'additional-target-property' + }, o.a.createElement( 'div', { className: 'label-main' }, - 'Refresh interval [hours]' + 'Second target property' ), - o.a.createElement(tt.a, { - value: d && { label: d, value: d }, - options: h.map(function(e) { - return { label: e, value: e }; - }), - onChange: function(t) { - e.props.updateSavedQueryUI({ - refreshRate: t.value - }); + o.a.createElement(Ot, { + value: u && { label: u, value: u }, + options: f, + onChange: function(e) { + n({ groupBy: [r[0], e.value] }); }, - theme: at + className: 'standard-units', + theme: dt }) ) - ), - s && - o.a.createElement( - 'div', - { className: 'error' }, - s ), + l + ); + } + }, + { + key: 'renderButton', + value: function() { + var e = this.props, + t = e.ui, + n = e.updateUI, + r = t.groupBy; + return 1 === t.numberOfGroupByProps + ? o.a.createElement( + 'div', + { + role: 'button', + tabIndex: '0', + className: 'btn-plus', + onClick: function() { + n({ numberOfGroupByProps: 2 }); + } + }, + o.a.createElement('i', { + className: 'fas fa-plus' + }) + ) + : o.a.createElement( + 'div', + { + role: 'button', + tabIndex: '0', + className: 'btn-minus', + onClick: function() { + n({ + groupBy: r ? [r[0]] : null, + numberOfGroupByProps: 1 + }); + } + }, + o.a.createElement('i', { + className: 'fas fa-minus' + }) + ); + } + }, + { + key: 'render', + value: function() { + var e = this.props.ui.eventCollection; + return o.a.createElement( + 'div', + { className: 'group-by' }, o.a.createElement( 'div', - { className: 'buttons' }, - !p && - o.a.createElement( - 'button', - { - className: - 'button-save button-with-loading-spinner', - onClick: function() { - return e.save(); - }, - 'data-tracker': 'saveQuery' - }, - r && o.a.createElement(rn, null), - 'Save' - ), - p && - o.a.createElement( - 'button', - { - className: - 'button-save button-with-loading-spinner', - onClick: function() { - return e.save(); - }, - 'data-tracker': 'saveQuery' - }, - r && o.a.createElement(rn, null), - 'Update' - ), - p && - o.a.createElement( - 'button', - { - className: 'button button-clone', - onClick: function() { - return e.clone(); - } - }, - 'Clone' - ), - p && - o.a.createElement( - 'button', - { - className: 'button button-delete', - onClick: function() { - return e.delete(); - } - }, - 'Delete' - ) + { className: 'tab-content' }, + o.a.createElement( + 'div', + { className: 'tab' }, + !e && + o.a.createElement( + 'div', + { className: 'box-info' }, + 'Choose an event collection first' + ), + e && + o.a.createElement( + 'div', + null, + this.renderSelects(), + this.renderButton() + ) + ) ) ); } } - ]) && ro(n.prototype, r), - i && ro(n, i), + ]) && sr(n.prototype, r), + i && sr(n, i), t ); })(r.Component), - uo = Object(c.connect)(function(e) { + pr = Object(c.connect)(function(e) { return { - isSavingQuery: e.queries.isSavingQuery, - results: e.queries.results, - analysisType: e.ui.analysisType, - chartType: e.ui.chartType, - uiSavedQuery: e.ui.savedQuery, - uiStepLabels: e.ui.stepLabels, - isLimited: e.queries.isLimited + ui: e.ui, + schemas: e.collections.schemas, + eventCollection: e.ui.eventCollection }; - }, so)(co), - lo = n(79), - fo = n.n(lo); - function po(e) { - return (po = + }, fr)(dr); + function hr(e) { + return (hr = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { @@ -129882,7 +129227,7 @@ object-assign : typeof e; })(e); } - function ho(e, t) { + function gr(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -129891,8 +129236,8 @@ object-assign Object.defineProperty(e, r.key, r); } } - function go(e, t) { - return !t || ('object' !== po(t) && 'function' != typeof t) + function mr(e, t) { + return !t || ('object' !== hr(t) && 'function' != typeof t) ? (function(e) { if (void 0 === e) throw new ReferenceError( @@ -129902,129 +129247,23 @@ object-assign })(e) : t; } - function mo(e) { - return (mo = Object.setPrototypeOf + function br(e) { + return (br = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function bo(e, t) { - return (bo = + function yr(e, t) { + return (yr = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; })(e, t); } - var yo = { - updateSavedQueries: function(e) { - return { type: 'UPDATE_SAVED_QUERIES', payload: e }; - }, - updateUI: Mt, - updateUISavedQuery: function(e) { - var t = e.item, - n = e.schemas, - r = t.query, - o = t.metadata, - i = ['']; - 'funnel' === r.analysis_type && - (i = o.visualization.step_labels || ['']); - var a = (function(e) { - return ( - { - areachart: 'area', - barchart: 'horizontal-bar', - columnchart: 'bar', - linechart: 'line', - piechart: 'pie' - }[e] || - e || - 'JSON' - ); - })(o.visualization.chart_type); - return { - type: 'UI_UPDATE', - payload: { - panelSave: !0, - autoload: !0, - analysisType: r.analysis_type, - eventCollection: r.event_collection, - timezone: r.timezone, - targetProperty: r.target_property, - timeframe: r.timeframe, - groupBy: r.group_by, - orderBy: r.order_by && - r.order_by.direction && { - property_name: 'result', - direction: r.order_by.direction - }, - interval: r.interval, - filters: (r.filters || []).map(function(e) { - return xt( - { - propertyName: e.property_name, - operator: e.operator - }, - pt({ - filter: e, - eventCollection: r.event_collection, - schemas: n - }) - ); - }), - chartType: a, - savedQuery: { - name: t.query_name, - displayName: o.display_name, - exists: !0, - cache: !!t.refresh_rate, - refreshRate: t.refresh_rate / 60 / 60, - autoload: void 0 - }, - steps: (r.steps || []).map(function(e) { - return { - actorProperty: e.actor_property, - eventCollection: e.event_collection, - filters: (e.filters || []).map(function(e) { - return xt( - { - propertyName: e.property_name, - operator: e.operator - }, - pt({ - filter: e, - eventCollection: r.event_collection, - schemas: n - }) - ); - }), - inverted: e.inverted, - optional: e.optional, - timeframe: e.timeframe, - timezone: e.timezone, - withActors: e.with_actors - }; - }), - stepLabels: i - } - }; - }, - fetchSavedQueries: function() { - return { type: 'CLIENT_FETCH_SAVED_QUERIES' }; - }, - resetResults: function() { - return { type: 'QUERY_RESET_RESULTS' }; - }, - deleteQuery: Nt - }, - vo = function(e) { - return e.metadata && e.metadata.display_name - ? e.metadata.display_name - : e.query_name; - }, - _o = (function(e) { - function t(e) { - var n; + var vr = { updateUI: Tt }, + _r = (function(e) { + function t() { return ( (function(e, t) { if (!(e instanceof t)) @@ -130032,11 +129271,7 @@ object-assign 'Cannot call a class as a function' ); })(this, t), - ((n = go(this, mo(t).call(this, e))).state = { - error: null, - filter: '' - }), - n + mr(this, br(t).apply(this, arguments)) ); } var n, r, i; @@ -130053,194 +129288,152 @@ object-assign configurable: !0 } })), - t && bo(e, t); + t && yr(e, t); })(t, e), (n = t), (r = [ { - key: 'componentDidMount', + key: 'renderStandard', value: function() { - this.props.fetchSavedQueries(); - } - }, - { - key: 'componentDidUpdate', - value: function(e) { - var t = this.props, - n = t.savedQueries, - r = t.savedQuery, - o = t.updateUISavedQuery; - !e.savedQueries.length && - n.length && - r.autoload && - o({ - item: n.find(function(e) { - return e.query_name === r.query_name; + var e = this.props, + t = e.interval, + n = e.updateUI; + return o.a.createElement( + 'div', + { className: 'tab' }, + o.a.createElement(st.a, { + value: { label: t, value: t }, + options: L.map(function(e) { + return { label: e, value: e }; }), - schemas: this.props.schemas - }); - } - }, - { - key: 'updateFilter', - value: function(e) { - this.setState({ filter: e.target.value }); + onChange: function(e) { + n({ interval: e.value }); + }, + className: 'standard-units', + theme: dt + }) + ); } }, { - key: 'confirmDeleteQuery', - value: function(e) { - var t = e.e, - n = e.query_name; - t.stopPropagation(), - confirm('Delete query "'.concat(n, '"?')) && - this.props.deleteQuery({ name: n }); + key: 'renderCustom', + value: function() { + var e = this.props, + t = e.interval, + n = void 0 === t ? D : t, + r = e.updateUI, + i = n.split('_')[1], + a = n.split('_')[2]; + return o.a.createElement( + 'div', + { className: 'tab line' }, + o.a.createElement( + 'div', + { className: 'title' }, + 'Every' + ), + o.a.createElement('input', { + type: 'number', + value: i, + onChange: function(e) { + r({ + interval: 'every_' + .concat(e.target.value, '_') + .concat(a) + }); + }, + placeholder: '', + className: 'input-number' + }), + o.a.createElement(st.a, { + value: { label: a, value: a }, + options: E.map(function(e) { + return { label: e, value: e }; + }), + onChange: function(e) { + r({ + interval: 'every_' + .concat(i, '_') + .concat(e.value) + }); + }, + className: 'time-units', + theme: dt + }) + ); } }, { key: 'render', value: function() { - var e = this, - t = this.props, - n = t.features, - r = t.savedQueries, - i = t.savedQuery, - a = t.updateUI, - s = t.updateUISavedQuery, - c = t.resetResults, - u = i && i.name, - l = this.state, - f = l.filter, - d = l.error; - return o.a.createElement( - 'div', - { className: 'saved-queries' }, - d && + var e = this.props, + t = e.interval, + n = void 0 === t ? '' : t, + r = e.updateUI, + i = !0; + return ( + n && (i = -1 === n.indexOf('_')), + o.a.createElement( + 'div', + { className: 'interval' }, o.a.createElement( 'div', - { className: 'error' }, - d - ), - o.a.createElement('input', { - className: 'input-filter', - placeholder: 'Search...', - type: 'text', - value: f, - onChange: function(t) { - return e.updateFilter(t); - } - }), - r - .filter(function(e) { - return ( - vo(e) - .toLowerCase() - .indexOf(f.toLowerCase()) >= 0 - ); - }) - .sort(function(e, t) { - var n = vo(e), - r = vo(t); - return n.toLowerCase() < r.toLowerCase() - ? -1 - : n.toLowerCase() > r.toLowerCase() - ? 1 - : 0; - }) - .map(function(t) { - return o.a.createElement( + { className: 'tabs' }, + o.a.createElement( 'div', { - key: t.query_name, - className: 'item '.concat( - u === t.query_name && 'active' - ), + className: 'tab '.concat(i && 'active'), onClick: function() { - var n = t.query; - c(), - 'multi_analysis' !== n.analysis_type - ? s({ - item: t, - schemas: e.props.schemas - }) - : a({ - error: { - body: - 'Multi-Analysis is not supported by the Explorer' - } - }); + return r({ interval: P }); } }, - o.a.createElement( - 'div', - { className: 'name' }, - vo(t) - ), - o.a.createElement( - 'div', - { className: 'cached' }, - !!t.refresh_rate && - o.a.createElement('span', null, 'Cached') - ), - o.a.createElement( - 'div', - { className: 'data' }, - fo()(t.last_modified_date).format( - 'MMMM Do YYYY, h:mm:ss a' - ) - ), - n && - n.save && - o.a.createElement('i', { - onClick: function(n) { - return e.confirmDeleteQuery({ - e: n, - query_name: t.query_name - }); - }, - className: 'fas fa-times button-delete' - }) - ); - }) + 'Standard' + ), + o.a.createElement( + 'div', + { + className: 'tab '.concat(!i && 'active'), + onClick: function() { + return r({ interval: D }); + } + }, + 'Custom' + ) + ), + o.a.createElement( + 'div', + { className: 'tab-content' }, + i && this.renderStandard(), + !i && this.renderCustom() + ) + ) ); } } - ]) && ho(n.prototype, r), - i && ho(n, i), + ]) && gr(n.prototype, r), + i && gr(n, i), t ); })(r.Component), - xo = Object(c.connect)(function(e) { - return { - savedQueries: e.queries.saved, - savedQuery: e.ui.savedQuery, - timezone: e.ui.timezone, - schemas: e.collections.schemas - }; - }, yo)(_o), - wo = n(170), - Mo = n.n(wo), - ko = (n(381), n(171)), - So = n.n(ko), - Ao = function(e, t, n) { - var r = document.createElement('a'), - o = n || 'application/octet-stream'; - navigator.msSaveBlob - ? navigator.msSaveBlob(new Blob([e], { type: o }), t) - : URL && 'download' in r - ? ((r.href = URL.createObjectURL( - new Blob([e], { type: o }) - )), - r.setAttribute('download', t), - document.body.appendChild(r), - r.click(), - document.body.removeChild(r)) - : (location.href = - 'data:application/octet-stream,' + - encodeURIComponent(e)); + wr = Object(c.connect)(function(e) { + return { interval: e.ui.interval }; + }, vr)(_r), + xr = function(e) { + var t = document.createElement('textarea'); + (t.value = e), + document.body.appendChild(t), + t.select(), + document.execCommand('copy'), + document.body.removeChild(t); + }, + Mr = function(e) { + return e + .toLowerCase() + .replace(/[^\w\s-]/g, '') + .replace(/ /g, '-'); }; - function Oo(e) { - return (Oo = + function kr(e) { + return (kr = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { @@ -130255,7 +129448,7 @@ object-assign : typeof e; })(e); } - function Eo(e, t) { + function Sr(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -130264,8 +129457,8 @@ object-assign Object.defineProperty(e, r.key, r); } } - function To(e, t) { - return !t || ('object' !== Oo(t) && 'function' != typeof t) + function Or(e, t) { + return !t || ('object' !== kr(t) && 'function' != typeof t) ? (function(e) { if (void 0 === e) throw new ReferenceError( @@ -130275,23 +129468,22 @@ object-assign })(e) : t; } - function Co(e) { - return (Co = Object.setPrototypeOf + function Er(e) { + return (Er = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function Lo(e, t) { - return (Lo = + function Ar(e, t) { + return (Ar = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; })(e, t); } - var Po = (function(e) { - function t(e) { - var n; + var Tr = (function(e) { + function t() { return ( (function(e, t) { if (!(e instanceof t)) @@ -130299,14 +129491,10 @@ object-assign 'Cannot call a class as a function' ); })(this, t), - ((n = To(this, Co(t).call(this, e))).state = { - showDownloadButtons: !1 - }), - (n.downloadToggleRef = o.a.createRef()), - n + Or(this, Er(t).apply(this, arguments)) ); } - var n, i, a; + var n, r, i; return ( (function(e, t) { if ('function' != typeof t && null !== t) @@ -130316,283 +129504,107 @@ object-assign (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } })), - t && Lo(e, t); + t && Ar(e, t); })(t, e), (n = t), - (i = [ - { - key: 'componentDidMount', - value: function() { - this.generateChart(), - (this.handleClick = this.handleClick.bind(this)), - document.addEventListener( - 'click', - this.handleClick, - !1 - ); - } - }, - { - key: 'componentDidUpdate', - value: function(e) { - if (e.queryName === this.props.queryName) { - var t = this.props, - n = t.results, - r = t.type, - o = t.analysisType, - i = t.stepLabels, - a = t.timezone; - (e.analysisType === o && - e.stepLabels.toString() === i.toString() && - e.type === r && - e.timezone === a && - JSON.stringify(e.results) === JSON.stringify(n)) || - this.generateChart(); - } - } - }, - { - key: 'componentWillUnmount', - value: function() { - document.removeEventListener( - 'click', - this.handleClick, - !1 - ); - } - }, - { - key: 'getData', - value: function() { - return ( - this.dataviz && - this.dataviz.dataset && - this.dataviz.dataset.matrix - ); - } - }, - { - key: 'handleClick', - value: function(e) { - this.downloadToggleRef.current.contains(e.target) || - this.setState({ showDownloadButtons: !1 }); - } - }, - { - key: 'generateChart', - value: function() { - var e = this.props, - t = e.results, - n = e.type, - r = e.analysisType, - o = e.stepLabels, - i = e.timezone; - if (t) { - if ('string' == typeof t.result) return; - var a, s; - if ('funnel' === r) { - var c = t.metadata; - if (c) { - var u = c.visualization; - u && (a = u.stepLabels); - } - o && o.length && o[0] && (a = o), - (s = { percents: { show: !0 }, minimalSize: 50 }); - } - var l = z.find(function(e) { - return e.value === i; - }), - f = (l && l.label) || 'UTC'; - this.dataviz && this.dataviz.destroy(); - try { - this.dataviz = new Mo.a({ - container: '#keen-dataviz-container', - type: n, - title: !1, - showLoadingSpinner: !0, - results: t, - funnel: s, - labels: a, - onrendered: function() {}, - table: { - mapDates: function(e) { - return fo.a - .tz(e, 'UTC') - .clone() - .tz(f) - .toString(); - } - }, - legend: { label: { textMaxLength: 30 } } - }); - } catch (e) { - console.error(e); - } - } - } - }, - { - key: 'exportToPNG', - value: function() { - return ( - this.dataviz && - this.dataviz.exportImage({ bgcolor: 'white' }) - ); - } - }, + (r = [ { key: 'render', value: function() { - var e = this, - t = this.props, - n = t.results, - i = t.modalEmbedHTML, - a = t.modalFilters, - s = t.componentDownloadButton, - c = this.state.showDownloadButtons, - u = this.props.queryName || 'untitled-query', - l = 'string' == typeof n.result; - return o.a.createElement( - r.Fragment, - null, - !l && - o.a.createElement('div', { - className: 'keen-dataviz-container '.concat( - i || a ? 'hide' : '' - ), - id: 'keen-dataviz-container' - }), - l && - o.a.createElement( - 'div', - { - className: 'keen-dataviz-container '.concat( - i || a ? 'hide' : '', - ' result-string' - ) - }, - o.a.createElement('div', null, n.result) - ), - s && - o.a.createElement( - 'div', - { - className: 'download-toggle', - ref: this.downloadToggleRef - }, - o.a.createElement( - 'div', - { - role: 'presentation', - className: 'download-toggle-label', - onClick: function() { - e.setState({ showDownloadButtons: !c }); + var e = this.props, + t = e.analysisType, + n = e.queryParams, + r = e.client, + i = Object.keys(n) + .map(function(e) { + var t = n[e]; + if (!t) return null; + if (Array.isArray(t) && !t.length) return null; + if ('timezone' === e) { + var r = j.find(function(e) { + return e.label === t; + }) || { label: 'UTC', value: 0 }; + t = r.value; + } + Array.isArray(t) && + (t = t.map(function(e) { + if ('object' === kr(e) && null !== e) { + var t = {}; + return ( + Object.keys(e).forEach(function(n) { + var r = n + .replace( + /(?:^|\.?)([A-Z])/g, + function(e, t) { + return '_'.concat( + t.toLowerCase() + ); + } + ) + .replace(/^_/, ''); + t[r] = e[n]; + }), + t + ); } - }, - o.a.createElement('i', { - className: 'fas fa-download' - }), - 'Download' - ), - c && - o.a.createElement( - 'div', - { className: 'download-buttons' }, - o.a.createElement( - 'button', - { - className: - 'button-download button-download-csv', - onClick: function() { - return (function(e, t) { - var n = t; - t.includes('.csv') || - (n = ''.concat(t, '.csv')), - So()(e, function(e, t) { - e - ? alert( - 'There was a problem with CSV Export' - ) - : Ao( - t, - n, - 'text/csv;encoding:utf-8' - ); - }); - })(e.getData(), u); - } - }, - 'CSV' - ), - o.a.createElement( - 'button', - { - className: - 'button-download button-download-json', - onClick: function() { - return (function(e, t) { - var n = t; - t.includes('.json') || - (n = ''.concat(t, '.json')); - try { - Ao( - JSON.stringify(e), - n, - 'text/json;charset:utf-8' - ); - } catch (e) { - alert( - 'There was a problem with JSON export' - ); - } - })(n, u); - } - }, - 'JSON' - ), - o.a.createElement( - 'button', - { - className: - 'button-download button-download-png', - onClick: function() { - return e.exportToPNG(); - } - }, - 'PNG' - ) - ) - ) + return e; + })), + (t = JSON.stringify(t)); + var o = e + .replace(/(?:^|\.?)([A-Z])/g, function(e, t) { + return '_'.concat(t.toLowerCase()); + }) + .replace(/^_/, ''); + return '' + .concat(encodeURIComponent(o), '=') + .concat(encodeURIComponent(t)); + }) + .filter(function(e) { + return !!e; + }) + .join('&') + .replace(/%22true%22/gi, 'true') + .replace(/%22false%22/gi, 'false'), + a = '' + .concat(r.config.protocol, '://') + .concat(r.config.host, '/3.0/projects/') + .concat(r.config.projectId, '/queries/') + .concat(t, '?api_key=') + .concat(r.config.masterKey, '&') + .concat(i); + return o.a.createElement( + 'div', + { + className: 'apiQueryUrl', + onClick: function() { + return xr(a); + }, + role: 'presentation' + }, + o.a.createElement('span', null, 'API Query URL'), + o.a.createElement('input', { + type: 'text', + defaultValue: a + }), + o.a.createElement('i', { className: 'fas fa-copy' }) ); } } - ]) && Eo(n.prototype, i), - a && Eo(n, a), + ]) && Sr(n.prototype, r), + i && Sr(n, i), t ); })(r.Component); - Po.propTypes = { - queryName: Ze.a.string.isRequired, - type: Ze.a.string.isRequired, - analysisType: Ze.a.string.isRequired, - stepLabels: Ze.a.arrayOf(Ze.a.string).isRequired, - modalEmbedHTML: Ze.a.bool.isRequired, - modalFilters: Ze.a.bool.isRequired + Tr.propTypes = { + queryParams: it.a.shape({}).isRequired, + analysisType: it.a.string.isRequired, + client: it.a.shape({}).isRequired }; - var Do = Object(c.connect)(function(e) { - return { - results: e.queries.results, - type: e.ui.chartType, - queryName: e.ui.savedQuery.name, - modalEmbedHTML: e.ui.modalEmbedHTML, - modalFilters: e.ui.modalFilters, - analysisType: e.ui.analysisType, - stepLabels: e.ui.stepLabels, - timezone: e.ui.timezone - }; - }, {})(Po); - function zo(e) { - return (zo = + var Cr = Object(c.connect)(function(e) { + return { analysisType: e.ui.analysisType }; + }, {})(Tr); + function Lr(e) { + return (Lr = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { @@ -130607,11 +129619,7 @@ object-assign : typeof e; })(e); } - function No(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function jo(e, t) { + function Pr(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -130620,8 +129628,8 @@ object-assign Object.defineProperty(e, r.key, r); } } - function Ro(e, t) { - return !t || ('object' !== zo(t) && 'function' != typeof t) + function Dr(e, t) { + return !t || ('object' !== Lr(t) && 'function' != typeof t) ? (function(e) { if (void 0 === e) throw new ReferenceError( @@ -130631,64 +129639,156 @@ object-assign })(e) : t; } - function Io(e) { - return (Io = Object.setPrototypeOf + function jr(e) { + return (jr = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function Fo(e, t) { - return (Fo = + function zr(e, t) { + return (zr = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; })(e, t); } - var qo = (function(e) { - function t() { - return No(this, t), Ro(this, Io(t).apply(this, arguments)); - } - var n, r, i; + var Nr = (function(e) { + function t(e) { + var n; return ( (function(e, t) { - if ('function' != typeof t && null !== t) + if (!(e instanceof t)) throw new TypeError( - 'Super expression must either be null or a function' + 'Cannot call a class as a function' ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - writable: !0, - configurable: !0 - } - })), - t && Fo(e, t); - })(t, e), - (n = t), - (r = [ - { - key: 'render', - value: function() { - return o.a.createElement(Gt.a, { - src: this.props.results, - style: { fontFamily: 'inherit' }, - collapsed: !0, - displayDataTypes: !1, - sortKeys: !0 - }); - } - } - ]) && jo(n.prototype, r), - i && jo(n, i), - t + })(this, t), + ((n = Dr(this, jr(t).call(this, e))).state = { + active: n.props.defaultActive + }), + n ); - })(r.Component), - Bo = Object(c.connect)(function(e) { - return { results: e.queries.results }; - }, {})(qo); - function Ho(e) { - return (Ho = + } + var n, r, i; + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { value: e, writable: !0, configurable: !0 } + })), + t && zr(e, t); + })(t, e), + (n = t), + (r = [ + { + key: 'componentDidUpdate', + value: function(e) { + !e.defaultActive && + this.props.defaultActive && + this.setState({ active: this.props.defaultActive }), + e.defaultActive && + !this.props.defaultActive && + this.setState({ active: this.props.defaultActive }); + } + }, + { + key: 'onChange', + value: function() { + var e = this.props, + t = e.onClose, + n = e.onChange, + r = this.state.active; + n && n(r), t && !r && t(); + } + }, + { + key: 'render', + value: function() { + var e = this, + t = this.props, + n = t.title, + r = t.onDelete, + i = this.state.active; + return o.a.createElement( + 'div', + { + className: 'foldable '.concat(i && 'foldableActive') + }, + o.a.createElement( + 'div', + { + className: 'title', + onClick: function() { + e.setState({ active: !i }, function() { + return e.onChange(); + }); + } + }, + o.a.createElement( + 'div', + { className: 'step-switch-position-buttons' }, + o.a.createElement( + 'div', + { + onClick: function(t) { + t.stopPropagation(), e.props.onClickUp(); + }, + className: 'move-up' + }, + o.a.createElement('i', { + className: 'fas fa-angle-up' + }) + ), + o.a.createElement( + 'div', + { + onClick: function(t) { + t.stopPropagation(), e.props.onClickDown(); + }, + className: 'move-down' + }, + o.a.createElement('i', { + className: 'fas fa-angle-down' + }) + ) + ), + o.a.createElement('span', null, n), + o.a.createElement( + 'div', + { className: 'foldable-icon' }, + o.a.createElement( + 'div', + { + onClick: function(e) { + e.stopPropagation(), r(); + }, + className: 'button button-delete' + }, + o.a.createElement('i', { + className: 'fas fa-times' + }) + ) + ) + ), + i && + o.a.createElement( + 'div', + { className: 'content' }, + this.props.children + ) + ); + } + } + ]) && Pr(n.prototype, r), + i && Pr(n, i), + t + ); + })(r.Component); + function Rr(e) { + return (Rr = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { @@ -130703,7 +129803,7 @@ object-assign : typeof e; })(e); } - function Yo(e, t) { + function Ir(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -130712,8 +129812,8 @@ object-assign Object.defineProperty(e, r.key, r); } } - function Wo(e, t) { - return !t || ('object' !== Ho(t) && 'function' != typeof t) + function Fr(e, t) { + return !t || ('object' !== Rr(t) && 'function' != typeof t) ? (function(e) { if (void 0 === e) throw new ReferenceError( @@ -130723,23 +129823,29 @@ object-assign })(e) : t; } - function Vo(e) { - return (Vo = Object.setPrototypeOf + function qr(e) { + return (qr = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function Uo(e, t) { - return (Uo = + function Br(e, t) { + return (Br = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; })(e, t); } - var Xo = (function(e) { - function t(e) { - var n; + var Hr = { + updateUI: Tt, + updateStepUI: Ct, + deleteStep: function(e) { + return { type: 'DELETE_STEP', payload: e }; + } + }, + Yr = (function(e) { + function t() { return ( (function(e, t) { if (!(e instanceof t)) @@ -130747,10 +129853,7 @@ object-assign 'Cannot call a class as a function' ); })(this, t), - ((n = Wo(this, Vo(t).call(this, e))).state = { - active: n.props.defaultActive - }), - n + Fr(this, qr(t).apply(this, arguments)) ); } var n, r, i; @@ -130767,77 +129870,201 @@ object-assign configurable: !0 } })), - t && Uo(e, t); + t && Br(e, t); })(t, e), (n = t), (r = [ - { - key: 'componentDidUpdate', - value: function(e) { - !e.defaultActive && - this.props.defaultActive && - this.setState({ active: this.props.defaultActive }); - } - }, - { - key: 'onChange', - value: function() { - var e = this.props, - t = e.onOpen, - n = e.onClose, - r = e.onChange, - o = this.state.active; - r && r(o), t && o && t(), n && !o && n(); - } - }, { key: 'render', value: function() { - var e = this, - t = this.props.title, - n = this.state.active; + var e = this.props, + t = e.updateUI, + n = e.updateStepUI, + r = e.deleteStep, + i = e.index, + a = e.children, + s = e.activeStep, + c = e.stepLabels, + u = e.steps, + l = u[i], + f = (c && c[i]) || l.eventCollection, + d = function(e, t, n) { + var r = e[t]; + return (e[t] = e[n]), (e[n] = r), e; + }; return o.a.createElement( 'div', { - className: 'foldable '.concat( - n && 'foldable-active' + className: 'step '.concat( + i === s ? 'active-step' : '' ) }, o.a.createElement( - 'div', + Nr, { - className: 'title', - onClick: function() { - e.setState({ active: !n }, function() { - return e.onChange(); - }); + title: 'Step '.concat(i + 1), + defaultActive: i === s, + onChange: function(e) { + t({ activeStep: e ? i : void 0 }); + }, + onClose: function() { + t({ activeStep: void 0 }); + }, + onDelete: function() { + r(i); + }, + onClickDown: function() { + if (i !== u.length - 1) { + var e = d(u, i, i + 1), + n = d(c, i, i + 1); + t({ + steps: e, + stepLabels: n, + activeStep: s + 1 + }); + } + }, + onClickUp: function() { + if (0 !== i) { + var e = d(u, i, i - 1), + n = d(c, i, i - 1); + t({ + steps: e, + stepLabels: n, + activeStep: s - 1 + }); + } } }, - o.a.createElement('span', null, t), + a, o.a.createElement( 'div', - { className: 'foldable-icon' }, - n ? '-' : '+' - ) - ), - n && + { className: 'label-main first-label' }, + 'Label' + ), + o.a.createElement('input', { + className: 'input-text', + placeholder: 'Eg. Customers this month', + type: 'text', + value: f, + onChange: function(e) { + t({ + stepLabels: c.map(function(t, n) { + return n === i ? e.target.value : t; + }) + }); + } + }), o.a.createElement( 'div', - { className: 'content' }, - this.props.children + { className: 'line-options' }, + o.a.createElement( + 'div', + { className: 'line-checkbox' }, + o.a.createElement('input', { + type: 'checkbox', + id: 'step'.concat(i, '_optional_step'), + checked: l.optional, + onChange: function(e) { + var t = e.target.checked; + n({ step: i, payload: { optional: t } }); + } + }), + o.a.createElement( + 'label', + { + htmlFor: 'step'.concat( + i, + '_optional_step' + ) + }, + 'Optional Step' + ) + ), + o.a.createElement( + 'div', + { className: 'line-checkbox' }, + o.a.createElement('input', { + type: 'checkbox', + id: 'step'.concat(i, '_inverted_step'), + checked: l.inverted, + onChange: function(e) { + var t = e.target.checked; + n({ step: i, payload: { inverted: t } }); + } + }), + o.a.createElement( + 'label', + { + htmlFor: 'step'.concat( + i, + '_inverted_step' + ) + }, + 'Inverted Step' + ) + ), + o.a.createElement( + 'div', + { className: 'line-checkbox' }, + o.a.createElement('input', { + type: 'checkbox', + id: 'step'.concat(i, '_with_actors_step'), + checked: l.withActors, + onChange: function(e) { + var t = e.target.checked; + n({ + step: i, + payload: { withActors: t } + }); + } + }), + o.a.createElement( + 'label', + { + htmlFor: 'step'.concat( + i, + '_with_actors_step' + ) + }, + 'With Actors' + ) + ) ) + ) ); } } - ]) && Yo(n.prototype, r), - i && Yo(n, i), + ]) && Ir(n.prototype, r), + i && Ir(n, i), t ); })(r.Component), - Go = n(114), - Ko = n.n(Go); - function $o(e) { - return ($o = + Wr = Object(c.connect)(function(e) { + return (function(e, t, n) { + return ( + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), + e + ); + })( + { + activeStep: e.ui.activeStep, + stepLabels: e.ui.stepLabels, + steps: e.ui.steps + }, + 'stepLabels', + e.ui.stepLabels + ); + }, Hr)(Yr); + function Vr(e) { + return (Vr = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { @@ -130852,11 +130079,7 @@ object-assign : typeof e; })(e); } - function Qo(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function Jo(e, t) { + function Ur(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -130865,8 +130088,8 @@ object-assign Object.defineProperty(e, r.key, r); } } - function Zo(e, t) { - return !t || ('object' !== $o(t) && 'function' != typeof t) + function Xr(e, t) { + return !t || ('object' !== Vr(t) && 'function' != typeof t) ? (function(e) { if (void 0 === e) throw new ReferenceError( @@ -130876,24 +130099,32 @@ object-assign })(e) : t; } - function ei(e) { - return (ei = Object.setPrototypeOf + function Gr(e) { + return (Gr = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function ti(e, t) { - return (ti = + function Kr(e, t) { + return (Kr = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; })(e, t); } - n(385), n(386), n(387), n(388), n(389), n(391), n(392); - var ni = (function(e) { + var $r = { updateStepUI: Ct }, + Qr = (function(e) { function t() { - return Qo(this, t), Zo(this, ei(t).apply(this, arguments)); + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + Xr(this, Gr(t).apply(this, arguments)) + ); } var n, i, a; return ( @@ -130909,285 +130140,70 @@ object-assign configurable: !0 } })), - t && ti(e, t); + t && Kr(e, t); })(t, e), (n = t), (i = [ - { - key: 'renderIfDefined', - value: function(e) { - var t = e.key, - n = e.value, - r = this.props.ui.savedQuery, - o = this.props.ui[t]; - return o - ? 'filters' !== t || o.length - ? ' '.concat(t, ': ').concat(n, ',\n') - : '' - : r && r.name && r.exists - ? ' ' - .concat(t, ": '") - .concat(r.name, "',\n") - : ''; - } - }, - { - key: 'renderIfDefinedInStep', - value: function(e) { - var t = e.key, - n = e.value, - r = e.step[t]; - return r && ('filters' !== t || r.length) - ? ' ' - .concat(t, ': ') - .concat(n, ',\n') - : ''; - } - }, { key: 'render', value: function() { - var e, - t = this, - n = this.props, - i = n.projectId, - a = n.readKey, - s = this.props.ui, - c = s.analysisType, - u = s.eventCollection, - l = s.targetProperty, - f = s.timeframe, - d = s.timezone, - p = s.filters, - h = s.interval, - g = s.groupBy, - m = s.orderBy, - b = s.limit, - y = s.savedQuery, - v = s.propertyNames, - _ = s.latest, - x = s.percentile, - w = s.steps, - M = s.stepLabels, - k = void 0 === M ? '' : M, - S = []; - if ( - (S.push( - this.renderIfDefined({ - key: 'analysisType', - value: "'".concat(c, "'") - }) - ), - S.push( - this.renderIfDefined({ - key: 'eventCollection', - value: "'".concat(u, "'") - }) - ), - S.push( - this.renderIfDefined({ - key: 'targetProperty', - value: "'".concat(l, "'") - }) - ), - S.push( - this.renderIfDefined({ - key: 'timeframe', - value: ''.concat(JSON.stringify(f)) - }) - ), - S.push( - this.renderIfDefined({ - key: 'interval', - value: "'".concat(h, "'") - }) - ), - S.push( - this.renderIfDefined({ - key: 'groupBy', - value: ''.concat(JSON.stringify(g)) - }) - ), - S.push( - this.renderIfDefined({ key: 'limit', value: b }) - ), - S.push( - this.renderIfDefined({ - key: 'orderBy', - value: ''.concat(JSON.stringify(m)) - }) - ), - S.push( - this.renderIfDefined({ - key: 'filters', - value: ''.concat(JSON.stringify(p)) - }) - ), - S.push( - this.renderIfDefined({ - key: 'timezone', - value: ''.concat(d) - }) - ), - S.push( - this.renderIfDefined({ - key: 'percentile', - value: ''.concat(JSON.stringify(x)) - }) - ), - 'extraction' === c && - (S.push( - this.renderIfDefined({ - key: 'propertyNames', - value: ''.concat(JSON.stringify(v)) - }) - ), - S.push( - this.renderIfDefined({ - key: 'latest', - value: ''.concat(JSON.stringify(_)) - }) - )), - 'funnel' === c) - ) { - (S = []).push( - this.renderIfDefined({ - key: 'analysisType', - value: "'".concat(c, "'") + var e = this.props, + t = e.step, + n = e.steps, + i = e.schemas, + a = e.updateStepUI, + s = this.props.steps[t].actorProperty, + c = i[n[t].eventCollection] || {}, + u = Object.keys(c) + .sort(function(e, t) { + return e.toLowerCase() < t.toLowerCase() + ? -1 + : e.toLowerCase() > t.toLowerCase() + ? 1 + : 0; }) - ); - var A = []; - w.forEach(function(e) { - var n = []; - n.push(' {\n'), - n.push( - t.renderIfDefinedInStep({ - key: 'actorProperty', - value: "'".concat(e.actorProperty, "'"), - step: e - }) - ), - n.push( - t.renderIfDefinedInStep({ - key: 'eventCollection', - value: "'".concat(e.eventCollection, "'"), - step: e - }) - ), - n.push( - t.renderIfDefinedInStep({ - key: 'timeframe', - value: ''.concat( - JSON.stringify(e.timeframe) - ), - step: e - }) - ), - n.push( - t.renderIfDefinedInStep({ - key: 'timezone', - value: ''.concat(e.timezone), - step: e - }) - ), - n.push( - t.renderIfDefinedInStep({ - key: 'filters', - value: ''.concat(JSON.stringify(e.filters)), - step: e - }) - ), - n.push( - t.renderIfDefinedInStep({ - key: 'inverted', - value: ''.concat(e.inverted), - step: e - }) - ), - n.push( - t.renderIfDefinedInStep({ - key: 'optional', - value: ''.concat(e.optional), - step: e - }) - ), - n.push( - t.renderIfDefinedInStep({ - key: 'withActors', - value: ''.concat(e.withActors), - step: e - }) - ), - n.push(' }'), - A.push(n.join('')); - }), - S.push( - ' steps: [\n '.concat( - A.join(',\n '), - '\n ]\n' - ) - ), - k.length && - (e = ',\n labels: '.concat( - JSON.stringify(k) - )); - } - y && y.name && y.exists && (S.length = 0), - S.push( - this.renderIfDefined({ key: 'savedQueryName' }) - ); - var O = '\n \n \n \n \n \n \n \n
\n \n \n \n \n ' - ), - E = Ko.a.highlight( - O, - Ko.a.languages.javascript, - 'javascript' - ); + .map(function(e) { + return { label: e, value: e }; + }); return o.a.createElement( r.Fragment, null, - o.a.createElement('div', { - className: 'container', - dangerouslySetInnerHTML: { __html: E } - }), o.a.createElement( 'div', - { - className: 'button-copy', - onClick: function() { - return xr(O); - } + { className: 'label-main' }, + 'Actor property' + ), + o.a.createElement(Ot, { + value: { label: s, value: s }, + options: u, + onChange: function(e) { + a({ + step: t, + payload: { actorProperty: e.value } + }); }, - 'Copy ', - o.a.createElement('i', { - className: 'fas fa-copy' - }) - ) + theme: dt + }) ); } } - ]) && Jo(n.prototype, i), - a && Jo(n, a), + ]) && Ur(n.prototype, i), + a && Ur(n, a), t ); - })(r.Component), - ri = Object(c.connect)(function(e) { - return { ui: e.ui }; - }, {})(ni); - function oi(e) { - return (oi = + })(r.Component); + Qr.propTypes = { + step: it.a.number.isRequired, + steps: it.a.arrayOf(it.a.shape({ actorProperty: it.a.string })) + .isRequired, + schemas: it.a.shape({}).isRequired, + updateStepUI: it.a.func.isRequired + }; + var Jr = Object(c.connect)(function(e) { + return { schemas: e.collections.schemas, steps: e.ui.steps }; + }, $r)(Qr); + function Zr(e) { + return (Zr = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { @@ -131202,34 +130218,7 @@ object-assign : typeof e; })(e); } - function ii(e) { - return ( - (function(e) { - if (Array.isArray(e)) { - for ( - var t = 0, n = new Array(e.length); - t < e.length; - t++ - ) - n[t] = e[t]; - return n; - } - })(e) || - (function(e) { - if ( - Symbol.iterator in Object(e) || - '[object Arguments]' === Object.prototype.toString.call(e) - ) - return Array.from(e); - })(e) || - (function() { - throw new TypeError( - 'Invalid attempt to spread non-iterable instance' - ); - })() - ); - } - function ai(e, t) { + function eo(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -131238,8 +130227,8 @@ object-assign Object.defineProperty(e, r.key, r); } } - function si(e, t) { - return !t || ('object' !== oi(t) && 'function' != typeof t) + function to(e, t) { + return !t || ('object' !== Zr(t) && 'function' != typeof t) ? (function(e) { if (void 0 === e) throw new ReferenceError( @@ -131249,93 +130238,49 @@ object-assign })(e) : t; } - function ci(e) { - return (ci = Object.setPrototypeOf + function no(e) { + return (no = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function ui(e, t) { - return (ui = + function ro(e, t) { + return (ro = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; })(e, t); } - function li(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}, - r = Object.keys(n); - 'function' == typeof Object.getOwnPropertySymbols && - (r = r.concat( - Object.getOwnPropertySymbols(n).filter(function(e) { - return Object.getOwnPropertyDescriptor(n, e).enumerable; - }) - )), - r.forEach(function(t) { - fi(e, t, n[t]); - }); - } - return e; - } - function fi(e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e - ); - } - var di = { - fetchProject: function() { - return { type: 'CLIENT_FETCH_PROJECT' }; - }, - fetchSchema: zt, - query: function(e) { - return { type: 'CLIENT_RUN_QUERY', payload: e }; + var oo = { + updateSavedQueryUI: function(e) { + return { type: 'UPDATE_SAVED_QUERY_UI', payload: e }; }, - updateUI: Mt, - updateStepUI: kt, - resetUI: function() { - return { type: 'RESET_UI' }; + resetSavedQueryUI: function(e) { + return { type: 'RESET_SAVED_QUERY_UI', payload: e }; }, - togglePanelSave: function() { - return { type: 'TOGGLE_PANEL_SAVE' }; + saveQuery: function(e) { + return { type: 'CLIENT_SAVE_QUERY', payload: e }; }, - addStep: function() { - return { type: 'ADD_STEP' }; - } + deleteQuery: qt }, - pi = { save: !0 }, - hi = (function(e) { + io = (function(e) { function t(e) { var n; - !(function(e, t) { - if (!(e instanceof t)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, t), - (n = si(this, ci(t).call(this, e))); - var r = { features: li({}, pi, e.features || {}) }; - if (localStorage) { - var o = e.keenAnalysis.config.projectId; - (localStorage.projectId && - localStorage.projectId === o) || - (localStorage.setItem('projectId', o), - localStorage.removeItem('eventCollection'), - e.updateUI({ eventCollection: void 0 }), - (r.isProjectChanged = !0)); - } - return (n.state = r), n; + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + ((n = to(this, no(t).call(this, e))).state = { + error: null + }), + n + ); } - var n, i, a; + var n, r, i; return ( (function(e, t) { if ('function' != typeof t && null !== t) @@ -131349,13147 +130294,11784 @@ object-assign configurable: !0 } })), - t && ui(e, t); + t && ro(e, t); })(t, e), (n = t), - (i = [ - { - key: 'componentDidMount', - value: function() { - if ( - (this.props.fetchProject(), - rt.a.setAppElement(this.props.container), - !this.state.isProjectChanged) - ) { - var e = new URL(window.location.href), - t = new URLSearchParams(e.search); - if (t) { - var n = t.get('state'), - r = t.get('saved_query'); - if (n) { - var o = JSON.parse( - decodeURIComponent( - atob(n) - .split('') - .map(function(e) { - return ( - '%' + - ( - '00' + e.charCodeAt(0).toString(16) - ).slice(-2) - ); - }) - .join('') - ) - ); - 'extraction' !== o.analysisType && - (o.autoload = !0), - this.props.updateUI(o); - } - r && - this.props.updateUI({ - savedQuery: { query_name: r, autoload: !0 }, - activePanel: 1 - }); - } - } - } - }, - { - key: 'componentDidUpdate', - value: function(e) { - var t, - n = this.props, - r = n.ui, - o = n.fetchSchema, - i = - ((t = JSON.stringify(r)), - btoa( - encodeURIComponent(t).replace( - /%([0-9A-F]{2})/g, - function(e, t) { - return String.fromCharCode('0x' + t); - } - ) - )), - a = new URL(window.location.href), - s = a.search, - c = new URLSearchParams(s); - i !== c.get('state') && - (c.set('state', i), - c.delete('saved_query'), - (a.search = c.toString()), - history.pushState({}, '', a.toString())); - var u = this.props.ui, - l = u.autoload, - f = u.savedQuery, - d = u.analysisType, - p = u.steps, - h = this.props.ui.eventCollection; - if ( - ('funnel' === d && - (h = p[0] && p[0].eventCollection), - e.collections.items.length === - this.props.collections.items.length || - Object.keys(this.props.collections.schemas) - .length || - o({ eventCollection: h }), - l) - ) { - (r.autoload = !1), - Mt({ autoload: !1 }), - o({ eventCollection: h }); - var g = f && f.name; - this.runQuery({ savedQueryName: g }); - } - } - }, + (r = [ { - key: 'getQueryParams', + key: 'save', value: function() { - var e = this.props.ui, - t = e.analysisType, - n = e.eventCollection, - r = e.targetProperty, - o = e.timeframe, - i = e.timezone, - a = e.filters, - s = e.interval, - c = e.groupBy, - u = e.orderBy, - l = e.limit, - f = e.latest, - d = (e.propertyNames, e.email), - p = e.contentEncoding, - h = e.extractionActiveTab, - g = e.percentile, - m = e.steps, - b = li( - { - analysisType: t, - eventCollection: n, - timeframe: o, - timezone: i - }, - { - interval: s, - targetProperty: r, - filters: a, - groupBy: c, - orderBy: u, - limit: l, - percentile: g - } - ); - return ( - 'extraction' === t && - ((b = li({}, b, { latest: f })), - 1 === h && - ((b.email = d), (b.content_encoding = p))), - 'funnel' === t && (b = li({}, b, { steps: m })), - b - ); + this.setState({ error: null }); + var e, + t = this.props, + n = t.chartType, + r = t.queryParams, + o = t.uiSavedQuery, + i = t.uiStepLabels, + a = t.analysisType, + s = o.displayName, + c = o.name, + u = o.refreshRate; + s + ? ('funnel' === a && + (i && i.length && i[0] && (e = i), + (r.eventCollection = void 0), + (r.filters = void 0), + (r.timeframe = void 0), + (r.timezone = void 0)), + isNaN(r.percentile) || + (r.percentile = parseInt(r.percentile)), + this.props.saveQuery({ + name: c, + body: { + query: r, + metadata: { + displayName: s, + visualization: { + chartType: n, + stepLabels: e + } + }, + refreshRate: 60 * u * 60 + } + })) + : this.setState({ error: 'Name is required' }); } }, { - key: 'runQuery', - value: function(e) { - var t = li({}, ht(this.getQueryParams())); - if ('funnel' === t.analysisType) { - var n = t.steps.map(function(e) { - return li({}, e, ht(e)); - }); - t = li({}, t, { steps: ii(n), filters: void 0 }); + key: 'delete', + value: function() { + if (confirm('Delete this query?')) { + this.setState({ error: null }); + var e = this.props.uiSavedQuery.name; + this.props.deleteQuery({ name: e }); } - this.props.query(li({}, e, t)); } }, { - key: 'renderFiltersFoldable', + key: 'clone', value: function() { - var e = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : {}, - t = e.step, - n = e.funnel, - i = this.props.updateUI, - a = this.props.ui, - s = a.modalFilters, - c = a.steps, - u = this.props.ui, - l = u.filters, - f = u.eventCollection; - n && ((l = c[t].filters), (f = c[t].eventCollection)); - var d = function() { - i({ modalFilters: !1 }); - }; - return o.a.createElement( - r.Fragment, - null, - o.a.createElement( - 'div', - { - onClick: function() { - f && i({ modalFilters: !0 }); - }, - className: 'filters foldable' - }, - o.a.createElement( - 'div', - { className: 'title' }, - 'Filters' - ), - !!l.length && - o.a.createElement( - 'div', - { className: 'count' }, - l.length - ) - ), - o.a.createElement( - rt.a, - { - isOpen: s, - onRequestClose: function() { - return d(); - }, - contentLabel: '', - style: { - overlay: { - backgroundColor: 'rgba(0, 0, 0, 0.3)' - } - } - }, - o.a.createElement( - 'div', - { className: 'filters-container modal-main' }, - o.a.createElement( - 'div', - { className: 'header' }, - o.a.createElement( - 'div', - { className: 'title' }, - 'Filters' - ) - ), - o.a.createElement(nr, { - funnel: n, - step: t, - onCloseModal: function() { - return d(); - } - }) - ) - ) - ); + this.setState({ error: null }), + this.props.resetSavedQueryUI(); } }, { key: 'render', value: function() { - var e = this, - t = this.props, - n = t.queries, - i = t.updateUI, - a = t.resetUI, - s = t.togglePanelSave, - c = t.addStep, - u = t.previewCollection, - l = t.saveStateToLocalStorage, - f = t.components, - d = this.state.features, - p = this.props.ui, - h = p.activePanel, - g = p.analysisType, - m = p.eventCollection, - b = p.targetProperty, - y = p.interval, - v = p.groupBy, - _ = p.chartType, - x = p.modalEmbedHTML, - w = p.modalPreviewCollection, - M = p.error, - k = p.fetching, - S = p.panelSave, - O = p.extractionActiveTab, - E = p.steps, - T = { label: g, value: g }, - C = { label: b, value: b }, - L = this.getQueryParams(), - D = F(L), - z = n && n.results, - N = D.length && { label: D[0], value: D[0] }; - _ && (N = { label: _, value: _ }); - var j = D.sort(function(e, t) { - return e.toLowerCase() < t.toLowerCase() - ? -1 - : e.toLowerCase() > t.toLowerCase() - ? 1 - : 0; - }).map(function(e) { - return { label: e, value: e }; - }), - R = this.props.keenAnalysis.config, - I = R.readKey, - q = R.projectId, - B = !!A.find(function(e) { - return e.type === g; - }).targetProperty; + for ( + var e = this, + t = this.props, + n = t.uiSavedQuery, + r = t.isSavingQuery, + i = this.state.error, + a = n.name, + s = n.displayName, + c = n.cache, + u = n.refreshRate, + l = n.exists, + f = [], + d = 4; + d < 49; + d++ + ) + f.push(d); return o.a.createElement( 'div', - { className: 'keen-explorer' }, + { className: 'saved-query' }, o.a.createElement( 'div', - { className: 'panel-main' }, - o.a.createElement( - 'div', - { className: 'panel-buttons tabs' }, - o.a.createElement( - 'div', - { - className: 'tab button button-new-query', - onClick: function() { - a(); - } - }, - o.a.createElement('i', { - className: 'fa fa-plus' - }) - ), + null, + o.a.createElement('input', { + className: 'input-name', + placeholder: 'Give your query a name...', + type: 'text', + value: s, + onChange: function(t) { + e.props.updateSavedQueryUI({ + name: Mr(t.target.value), + displayName: t.target.value, + exists: !1 + }); + } + }), + a && o.a.createElement( 'div', - { - className: 'tab button '.concat( - 0 === h ? 'active' : '' - ), - onClick: function() { - return i({ activePanel: 0 }); - } - }, - 'Query' - ), - f.savedQueryBrowser && + { className: 'resource-name' }, o.a.createElement( 'div', - { - className: 'tab button '.concat( - 1 === h ? 'active' : '' - ), - onClick: function() { - return i({ activePanel: 1 }); - } - }, - 'Browse' - ) - ), - o.a.createElement( - 'div', - { - className: 'panel-content ' - .concat(0 !== h ? 'hide' : '', ' panel-') - .concat(g) - }, - 'funnel' !== g && - f.eventCollection && - o.a.createElement(Ut, { - saveStateToLocalStorage: l.eventCollection - }), - f.previewCollections && - u && - 'funnel' !== g && - o.a.createElement( - r.Fragment, - null, - o.a.createElement( - 'div', - { - className: 'a-preview-collection', - onClick: function() { - i({ modalPreviewCollection: !0 }); - } - }, - o.a.createElement('i', { - className: 'fas fa-search' - }), - ' Preview Collections' - ), - o.a.createElement( - rt.a, - { - isOpen: w, - onRequestClose: function() { - i({ modalPreviewCollection: !1 }); - }, - style: { - overlay: { - backgroundColor: - 'rgba(0, 0, 0, 0.3)' - } - } - }, - o.a.createElement( - 'div', - { className: 'modal-main' }, - o.a.createElement( - 'div', - { className: 'header' }, - o.a.createElement( - 'div', - { className: 'title' }, - 'Preview Collections' - ), - o.a.createElement( - 'div', - { - className: 'x', - onClick: function() { - i({ - modalPreviewCollection: !1 - }); - } - }, - 'x' - ) - ), - o.a.createElement(dn, null) - ) - ) + { className: 'line line-label' }, + 'Saved query resource name:' ), - f.analysisType && o.a.createElement( - r.Fragment, - null, + 'div', + { className: 'line' }, o.a.createElement( - 'div', - { - className: - 'label-main label-analysis-type' - }, - 'Analysis type' + 'span', + { className: 'name' }, + a ), - o.a.createElement(tt.a, { - value: T, - options: A.map(function(e) { - return { label: e.type, value: e.type }; - }), - onChange: function(e) { - i({ analysisType: e.value }); - }, - theme: at - }) - ), - B && - m && - o.a.createElement(Dt, { - value: C, - eventCollection: m - }), - 'extraction' === g && - m && - o.a.createElement(Nn, null), - 'percentile' === g && - m && - o.a.createElement(Wn, null), - 'funnel' === g && - E && - o.a.createElement( - 'div', - { className: 'funnel' }, - E.map(function(t, n) { - return o.a.createElement( - Vr, - { key: n, index: n, className: '' }, - o.a.createElement(Ut, { - funnel: !0, - step: n - }), - o.a.createElement(eo, { step: n }), - o.a.createElement(An, { - funnel: !0, - step: n - }), - e.renderFiltersFoldable({ - funnel: !0, - step: n - }) - ); - }), o.a.createElement( - 'div', + 'a', { + className: 'button-copy', onClick: function() { - return c(); - }, - className: 'button button-add' + return xr(a); + } }, o.a.createElement('i', { - className: 'fas fa-plus' - }), - ' Add a step' - ) - ), - 'funnel' !== g && - o.a.createElement( - r.Fragment, - null, - f.timeframe && - o.a.createElement(An, { - componentTimezone: f.timezone - }), - f.filters && this.renderFiltersFoldable() - ), - 'extraction' !== g && - 'funnel' !== g && - o.a.createElement( - r.Fragment, - null, - f.groupBy && - o.a.createElement( - Xo, - { - title: 'Group By - Order By', - defaultActive: !!v, - onClose: function() { - i({ - groupBy: void 0, - orderBy: void 0, - limit: void 0, - numberOfGroupByProps: 1 - }); - } - }, - o.a.createElement(fr, null) - ), - f.interval && - o.a.createElement( - Xo, - { - title: 'Interval', - defaultActive: !!y, - onOpen: function() { - i({ interval: P }); - }, - onClose: function() { - i({ interval: void 0 }); - } - }, - o.a.createElement(_r, null) - ), - f.apiQueryUrl && - o.a.createElement(Cr, { - queryParams: L, - client: _i + className: 'fas fa-copy' }) + ) ) - ), - o.a.createElement( - 'div', - { - className: 'panel-content panel-saved-queries '.concat( - 1 !== h ? 'hide' : '' - ) - }, - o.a.createElement(xo, { - client: _i, - features: d - }) - ) + ) ), - f.results && + o.a.createElement( + 'div', + { className: 'cache' }, o.a.createElement( 'div', - { className: 'result' }, - !z && - o.a.createElement( - 'div', - { className: 'lets-go' }, - "Let's go exploring!" - ), - z && - o.a.createElement( - 'div', - { className: 'preview' }, - 'JSON' === _ && o.a.createElement(Bo, null), - 'JSON' !== _ && - o.a.createElement( - r.Fragment, - null, - o.a.createElement(Do, { - componentDownloadButton: - f.downloadButton - }), - f.embedButton && - o.a.createElement( - 'button', - { - className: - 'button-download button-embed-html', - onClick: function() { - i({ modalEmbedHTML: !0 }); - } - }, - o.a.createElement('i', { - className: 'fas fa-code' - }), - ' Embed HTML' - ), - o.a.createElement( - rt.a, - { - isOpen: x, - onRequestClose: function() { - i({ modalEmbedHTML: !1 }); - }, - style: { - overlay: { - backgroundColor: - 'rgba(0, 0, 0, 0.3)' - } - } - }, - o.a.createElement( - 'div', - { className: 'modal-main' }, - o.a.createElement( - 'div', - { className: 'header' }, - o.a.createElement( - 'div', - { className: 'title' }, - 'Embed HTML' - ), - o.a.createElement( - 'div', - { - className: 'x', - onClick: function() { - i({ modalEmbedHTML: !1 }); - } - }, - 'x' - ) - ), - o.a.createElement(ri, { - projectId: q, - readKey: I - }) - ) - ) - ), - o.a.createElement( - 'div', - { - className: 'select-chart-type-container' - }, - o.a.createElement(tt.a, { - className: 'select-chart-type', - value: N, - options: j, - onChange: function(e) { - i({ chartType: e.value }); - }, - theme: at - }) - ) - ), - M && - 0 !== Object.keys(M).length && - o.a.createElement( - 'div', - { className: 'error' }, - M.body - ), - o.a.createElement( - 'div', - { className: 'action-buttons' }, - o.a.createElement( - 'button', - { - className: - 'button-run-query button-with-loading-spinner', - onClick: function() { - return e.runQuery(); - }, - 'data-tracker': 'runQuery' - }, - k && o.a.createElement(rn, null), - !('extraction' === g && 1 === O) && - o.a.createElement( - r.Fragment, - null, - 'Run Query' - ), - 'extraction' === g && - 1 === O && - o.a.createElement( - r.Fragment, - null, - 'Extract to Email' - ) - ), - f.saveButton && - d.save && - o.a.createElement( - 'div', - { - className: 'button-toggle '.concat( - S ? 'button-toggle-active' : '' - ), - onClick: function() { - return s(); - } - }, - 'Save Query' - ), - d.save && - S && - o.a.createElement(uo, { - client: _i, - queryParams: L - }) - ) - ) - ); - } - } - ]) && ai(n.prototype, i), - a && ai(n, a), - t - ); - })(r.Component); - hi.propTypes = {}; - var gi = Object(c.connect)(function(e, t) { - return { - collections: e.collections, - queries: e.queries, - ui: e.ui, - steps: e.ui.steps, - components: li({}, e.ui.components, t.components) - }; - }, di)(hi); - function mi(e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e - ); - } - var bi = f()(), - yi = Object(u.composeWithDevTools)({}), - vi = Object(s.createStore)( - $, - yi(Object(s.applyMiddleware)(bi)) - ); - bi.run($e); - var _i, - xi = { - previewCollection: !0, - saveStateToLocalStorage: { eventCollection: !0 } - }, - wi = function e(t) { - !(function(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - })(this, e); - var n = t.keenAnalysis, - r = t.keenTracking; - (_i = n.instance || new p.a(n.config)), - r && (r.instance || new g.a(r.config)), - a.a.render( - o.a.createElement( - c.Provider, - { store: vi }, - o.a.createElement( - gi, - (function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}, - r = Object.keys(n); - 'function' == - typeof Object.getOwnPropertySymbols && - (r = r.concat( - Object.getOwnPropertySymbols(n).filter( - function(e) { - return Object.getOwnPropertyDescriptor( - n, - e - ).enumerable; - } - ) - )), - r.forEach(function(t) { - mi(e, t, n[t]); - }); - } - return e; - })({}, xi, t) - ) - ), - document.querySelector(t.container) - ); - }; - wi.version = Qe.a; - var Mi = wi; - n.d(t, 'keenGlobals', function() { - return ki; - }), - n.d(t, 'KeenExplorer', function() { - return wi; - }); - var ki = void 0; - 'undefined' != typeof webpackKeenGlobals && - (ki = webpackKeenGlobals), - (t.default = Mi); - } - ]); - }), - (e.exports = r( - n(0), - n(829), - n(1), - n(833), - n(2), - n(28), - n(701), - n(702), - n(828), - n(787), - n(796), - n(4), - n(799), - n(831), - n(174), - n(175) - )); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = function(e, t, n, r) { - function o(t) { - var r = new i.default(t); - n.call(e, r); - } - if (e.addEventListener) { - var a = - ((s = !1), - 'object' == typeof r - ? (s = r.capture || !1) - : 'boolean' == typeof r && (s = r), - e.addEventListener(t, o, r || !1), - { - v: { - remove: function() { - e.removeEventListener(t, o, s); - } - } - }); - if ('object' == typeof a) return a.v; - } else if (e.attachEvent) - return ( - e.attachEvent('on' + t, o), - { - remove: function() { - e.detachEvent('on' + t, o); - } - } - ); - var s; - }); - var r, - o = n(783), - i = (r = o) && r.__esModule ? r : { default: r }; - e.exports = t.default; - }, - function(e, t, n) { - 'use strict'; - t.__esModule = !0; - var r, - o = n(412), - i = (r = o) && r.__esModule ? r : { default: r }; - t.default = function(e, t, n) { - return ( - t in e - ? (0, i.default)(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e - ); - }; - }, - function(e, t, n) { - try { - var r = n(413); - } catch (e) { - r = n(413); - } - var o = /\s+/, - i = Object.prototype.toString; - function a(e) { - if (!e || !e.nodeType) - throw new Error('A DOM element reference is required'); - (this.el = e), (this.list = e.classList); - } - (e.exports = function(e) { - return new a(e); - }), - (a.prototype.add = function(e) { - if (this.list) return this.list.add(e), this; - var t = this.array(); - return ~r(t, e) || t.push(e), (this.el.className = t.join(' ')), this; - }), - (a.prototype.remove = function(e) { - if ('[object RegExp]' == i.call(e)) return this.removeMatching(e); - if (this.list) return this.list.remove(e), this; - var t = this.array(), - n = r(t, e); - return ~n && t.splice(n, 1), (this.el.className = t.join(' ')), this; - }), - (a.prototype.removeMatching = function(e) { - for (var t = this.array(), n = 0; n < t.length; n++) - e.test(t[n]) && this.remove(t[n]); - return this; - }), - (a.prototype.toggle = function(e, t) { - return this.list - ? (void 0 !== t - ? t !== this.list.toggle(e, t) && this.list.toggle(e) - : this.list.toggle(e), - this) - : (void 0 !== t - ? t - ? this.add(e) - : this.remove(e) - : this.has(e) - ? this.remove(e) - : this.add(e), - this); - }), - (a.prototype.array = function() { - var e = (this.el.getAttribute('class') || '') - .replace(/^\s+|\s+$/g, '') - .split(o); - return '' === e[0] && e.shift(), e; - }), - (a.prototype.has = a.prototype.contains = function(e) { - return this.list ? this.list.contains(e) : !!~r(this.array(), e); - }); - }, - function(e, t, n) { - 'use strict'; - (t.__esModule = !0), - (t.default = function(e, t) { - var n = {}; - for (var r in e) - t.indexOf(r) >= 0 || - (Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r])); - return n; - }); - }, - function(e, t, n) { - var r = n(417), - o = n(800); - (e.exports = o), - (e.exports.default = o), - (e.exports.Quill = r), - (e.exports.Mixin = n(419)), - (e.exports.Toolbar = n(811)); - }, - function(e, t, n) { - var r = n(211), - o = n(88), - i = n(107), - a = n(22), - s = n(45), - c = n(86), - u = n(106), - l = n(108), - f = Object.prototype.hasOwnProperty; - e.exports = function(e) { - if (null == e) return !0; - if ( - s(e) && - (a(e) || - 'string' == typeof e || - 'function' == typeof e.splice || - c(e) || - l(e) || - i(e)) - ) - return !e.length; - var t = o(e); - if ('[object Map]' == t || '[object Set]' == t) return !e.size; - if (u(e)) return !r(e).length; - for (var n in e) if (f.call(e, n)) return !1; - return !0; - }; - }, - function(e, t, n) { - var r = n(816); - e.exports = { - locale: r.locale, - long: r.long, - short: r.short, - narrow: r.narrow, - 'short-time': n(821), - 'short-convenient': n(822), - 'long-time': n(823), - 'long-convenient': n(824), - tiny: n(825), - quantify: r.quantify - }; - }, - function(e, t, n) { - 'use strict'; - var r = function(e) { - var t = {}; - return function(n) { - return void 0 === t[n] && (t[n] = e(n)), t[n]; - }; - }, - o = { - animationIterationCount: 1, - borderImageOutset: 1, - borderImageSlice: 1, - borderImageWidth: 1, - boxFlex: 1, - boxFlexGroup: 1, - boxOrdinalGroup: 1, - columnCount: 1, - columns: 1, - flex: 1, - flexGrow: 1, - flexPositive: 1, - flexShrink: 1, - flexNegative: 1, - flexOrder: 1, - gridRow: 1, - gridRowEnd: 1, - gridRowSpan: 1, - gridRowStart: 1, - gridColumn: 1, - gridColumnEnd: 1, - gridColumnSpan: 1, - gridColumnStart: 1, - fontWeight: 1, - lineHeight: 1, - opacity: 1, - order: 1, - orphans: 1, - tabSize: 1, - widows: 1, - zIndex: 1, - zoom: 1, - WebkitLineClamp: 1, - fillOpacity: 1, - floodOpacity: 1, - stopOpacity: 1, - strokeDasharray: 1, - strokeDashoffset: 1, - strokeMiterlimit: 1, - strokeOpacity: 1, - strokeWidth: 1 - }; - var i = function(e) { - for (var t, n = e.length, r = n ^ n, o = 0; n >= 4; ) - (t = - 1540483477 * - (65535 & - (t = - (255 & e.charCodeAt(o)) | - ((255 & e.charCodeAt(++o)) << 8) | - ((255 & e.charCodeAt(++o)) << 16) | - ((255 & e.charCodeAt(++o)) << 24))) + - (((1540483477 * (t >>> 16)) & 65535) << 16)), - (r = - (1540483477 * (65535 & r) + - (((1540483477 * (r >>> 16)) & 65535) << 16)) ^ - (t = - 1540483477 * (65535 & (t ^= t >>> 24)) + - (((1540483477 * (t >>> 16)) & 65535) << 16))), - (n -= 4), - ++o; - switch (n) { - case 3: - r ^= (255 & e.charCodeAt(o + 2)) << 16; - case 2: - r ^= (255 & e.charCodeAt(o + 1)) << 8; - case 1: - r = - 1540483477 * (65535 & (r ^= 255 & e.charCodeAt(o))) + - (((1540483477 * (r >>> 16)) & 65535) << 16); - } - return ( - (r = - 1540483477 * (65535 & (r ^= r >>> 13)) + - (((1540483477 * (r >>> 16)) & 65535) << 16)), - ((r ^= r >>> 15) >>> 0).toString(36) - ); - }; - var a = function(e) { - function t(e, t, r) { - var o = t.trim().split(h); - t = o; - var i = o.length, - a = e.length; - switch (a) { - case 0: - case 1: - var s = 0; - for (e = 0 === a ? '' : e[0] + ' '; s < i; ++s) - t[s] = n(e, t[s], r).trim(); - break; - default: - var c = (s = 0); - for (t = []; s < i; ++s) - for (var u = 0; u < a; ++u) - t[c++] = n(e[u] + ' ', o[s], r).trim(); - } - return t; - } - function n(e, t, n) { - var r = t.charCodeAt(0); - switch ((33 > r && (r = (t = t.trim()).charCodeAt(0)), r)) { - case 38: - return t.replace(g, '$1' + e.trim()); - case 58: - return e.trim() + t.replace(g, '$1' + e.trim()); - default: - if (0 < 1 * n && 0 < t.indexOf('\f')) - return t.replace( - g, - (58 === e.charCodeAt(0) ? '' : '$1') + e.trim() - ); - } - return e + t; - } - function r(e, t, n, i) { - var a = e + ';', - s = 2 * t + 3 * n + 4 * i; - if (944 === s) { - e = a.indexOf(':', 9) + 1; - var c = a.substring(e, a.length - 1).trim(); - return ( - (c = a.substring(0, e).trim() + c + ';'), - 1 === T || (2 === T && o(c, 1)) ? '-webkit-' + c + c : c - ); - } - if (0 === T || (2 === T && !o(a, 1))) return a; - switch (s) { - case 1015: - return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a; - case 951: - return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a; - case 963: - return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a; - case 1009: - if (100 !== a.charCodeAt(4)) break; - case 969: - case 942: - return '-webkit-' + a + a; - case 978: - return '-webkit-' + a + '-moz-' + a + a; - case 1019: - case 983: - return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a; - case 883: - if (45 === a.charCodeAt(8)) return '-webkit-' + a + a; - if (0 < a.indexOf('image-set(', 11)) - return a.replace(S, '$1-webkit-$2') + a; - break; - case 932: - if (45 === a.charCodeAt(4)) - switch (a.charCodeAt(5)) { - case 103: - return ( - '-webkit-box-' + - a.replace('-grow', '') + - '-webkit-' + - a + - '-ms-' + - a.replace('grow', 'positive') + - a - ); - case 115: - return ( - '-webkit-' + - a + - '-ms-' + - a.replace('shrink', 'negative') + - a - ); - case 98: - return ( - '-webkit-' + - a + - '-ms-' + - a.replace('basis', 'preferred-size') + - a - ); - } - return '-webkit-' + a + '-ms-' + a + a; - case 964: - return '-webkit-' + a + '-ms-flex-' + a + a; - case 1023: - if (99 !== a.charCodeAt(8)) break; - return ( - '-webkit-box-pack' + - (c = a - .substring(a.indexOf(':', 15)) - .replace('flex-', '') - .replace('space-between', 'justify')) + - '-webkit-' + - a + - '-ms-flex-pack' + - c + - a - ); - case 1005: - return d.test(a) - ? a.replace(f, ':-webkit-') + a.replace(f, ':-moz-') + a - : a; - case 1e3: - switch ( - ((t = (c = a.substring(13).trim()).indexOf('-') + 1), - c.charCodeAt(0) + c.charCodeAt(t)) - ) { - case 226: - c = a.replace(v, 'tb'); - break; - case 232: - c = a.replace(v, 'tb-rl'); - break; - case 220: - c = a.replace(v, 'lr'); - break; - default: - return a; - } - return '-webkit-' + a + '-ms-' + c + a; - case 1017: - if (-1 === a.indexOf('sticky', 9)) break; - case 975: - switch ( - ((t = (a = e).length - 10), - (s = - (c = (33 === a.charCodeAt(t) ? a.substring(0, t) : a) - .substring(e.indexOf(':', 7) + 1) - .trim()).charCodeAt(0) + - (0 | c.charCodeAt(7)))) - ) { - case 203: - if (111 > c.charCodeAt(8)) break; - case 115: - a = a.replace(c, '-webkit-' + c) + ';' + a; - break; - case 207: - case 102: - a = - a.replace( - c, - '-webkit-' + (102 < s ? 'inline-' : '') + 'box' - ) + - ';' + - a.replace(c, '-webkit-' + c) + - ';' + - a.replace(c, '-ms-' + c + 'box') + - ';' + - a; + { className: 'line-checkbox' }, + o.a.createElement('input', { + type: 'checkbox', + id: 'cacheInput', + checked: c, + onChange: function(t) { + e.props.updateSavedQueryUI({ + cache: !c, + refreshRate: c ? 0 : 4 + }); + } + }), + o.a.createElement( + 'label', + { htmlFor: 'cacheInput' }, + 'Cache' + ) + ), + c && + o.a.createElement( + 'div', + { className: 'cache-refresh' }, + o.a.createElement( + 'div', + { className: 'label-main' }, + 'Refresh interval [hours]' + ), + o.a.createElement(st.a, { + value: u && { label: u, value: u }, + options: f.map(function(e) { + return { label: e, value: e }; + }), + onChange: function(t) { + e.props.updateSavedQueryUI({ + refreshRate: t.value + }); + }, + theme: dt + }) + ) + ), + i && + o.a.createElement( + 'div', + { className: 'error' }, + i + ), + o.a.createElement( + 'div', + { className: 'buttons' }, + !l && + o.a.createElement( + 'button', + { + className: + 'button-save button-with-loading-spinner', + onClick: function() { + return e.save(); + } + }, + r && o.a.createElement(cn, null), + 'Save' + ), + l && + o.a.createElement( + 'button', + { + className: + 'button-save button-with-loading-spinner', + onClick: function() { + return e.save(); + } + }, + r && o.a.createElement(cn, null), + 'Update' + ), + l && + o.a.createElement( + 'button', + { + className: 'button button-clone', + onClick: function() { + return e.clone(); + } + }, + 'Clone' + ), + l && + o.a.createElement( + 'button', + { + className: 'button button-delete', + onClick: function() { + return e.delete(); + } + }, + 'Delete' + ) + ) + ); + } + } + ]) && eo(n.prototype, r), + i && eo(n, i), + t + ); + })(r.Component), + ao = Object(c.connect)(function(e) { + return { + isSavingQuery: e.queries.isSavingQuery, + results: e.queries.results, + analysisType: e.ui.analysisType, + chartType: e.ui.chartType, + uiSavedQuery: e.ui.savedQuery, + uiStepLabels: e.ui.stepLabels + }; + }, oo)(io), + so = n(79), + co = n.n(so); + function uo(e) { + return (uo = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(e) { + return typeof e; + } + : function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e; + })(e); + } + function lo(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); } - return a + ';'; - case 938: - if (45 === a.charCodeAt(5)) - switch (a.charCodeAt(6)) { - case 105: - return ( - (c = a.replace('-items', '')), - '-webkit-' + - a + - '-webkit-box-' + - c + - '-ms-flex-' + - c + - a - ); - case 115: - return ( - '-webkit-' + a + '-ms-flex-item-' + a.replace(w, '') + a - ); - default: + } + function fo(e, t) { + return !t || ('object' !== uo(t) && 'function' != typeof t) + ? (function(e) { + if (void 0 === e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return e; + })(e) + : t; + } + function po(e) { + return (po = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(e) { + return e.__proto__ || Object.getPrototypeOf(e); + })(e); + } + function ho(e, t) { + return (ho = + Object.setPrototypeOf || + function(e, t) { + return (e.__proto__ = t), e; + })(e, t); + } + var go = { + updateSavedQueries: function(e) { + return { type: 'UPDATE_SAVED_QUERIES', payload: e }; + }, + updateUI: Tt, + updateUISavedQuery: function(e) { + var t = e.item, + n = e.schemas, + r = t.query, + o = t.metadata, + i = ['']; + 'funnel' === r.analysis_type && + (i = o.visualization.step_labels || ['']); + var a = (function(e) { return ( - '-webkit-' + - a + - '-ms-flex-line-pack' + - a.replace('align-content', '').replace(w, '') + - a + { + areachart: 'area', + barchart: 'horizontal-bar', + columnchart: 'bar', + linechart: 'line', + piechart: 'pie' + }[e] || + e || + 'JSON' ); + })(o.visualization.chart_type); + return { + type: 'UI_UPDATE', + payload: { + panelSave: !0, + autoload: !0, + analysisType: r.analysis_type, + eventCollection: r.event_collection, + timezone: r.timezone, + targetProperty: r.target_property, + timeframe: r.timeframe, + groupBy: r.group_by, + orderBy: r.order_by && + r.order_by.direction && { + property_name: 'result', + direction: r.order_by.direction + }, + interval: r.interval, + filters: (r.filters || []).map(function(e) { + return Et( + { + propertyName: e.property_name, + operator: e.operator + }, + vt({ + filter: e, + eventCollection: r.event_collection, + schemas: n + }) + ); + }), + chartType: a, + savedQuery: { + name: t.query_name, + displayName: o.display_name, + exists: !0, + cache: !!t.refresh_rate, + refreshRate: t.refresh_rate / 60 / 60, + autoload: void 0 + }, + steps: (r.steps || []).map(function(e) { + return { + actorProperty: e.actor_property, + eventCollection: e.event_collection, + filters: (e.filters || []).map(function(e) { + return Et( + { + propertyName: e.property_name, + operator: e.operator + }, + vt({ + filter: e, + eventCollection: r.event_collection, + schemas: n + }) + ); + }), + inverted: e.inverted, + optional: e.optional, + timeframe: e.timeframe, + timezone: e.timezone, + withActors: e.with_actors + }; + }), + stepLabels: i + } + }; + }, + fetchSavedQueries: function() { + return { type: 'CLIENT_FETCH_SAVED_QUERIES' }; + }, + resetResults: function() { + return { type: 'QUERY_RESET_RESULTS' }; + }, + deleteQuery: qt + }, + mo = function(e) { + return e.metadata && e.metadata.display_name + ? e.metadata.display_name + : e.query_name; + }, + bo = (function(e) { + function t(e) { + var n; + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + ((n = fo(this, po(t).call(this, e))).state = { + error: null, + filter: '' + }), + n + ); } - break; - case 973: - case 989: - if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break; - case 931: - case 953: - if (!0 === k.test(e)) - return 115 === - (c = e.substring(e.indexOf(':') + 1)).charCodeAt(0) - ? r( - e.replace('stretch', 'fill-available'), - t, - n, - i - ).replace(':fill-available', ':stretch') - : a.replace(c, '-webkit-' + c) + - a.replace(c, '-moz-' + c.replace('fill-', '')) + - a; - break; - case 962: - if ( - ((a = - '-webkit-' + - a + - (102 === a.charCodeAt(5) ? '-ms-' + a : '') + - a), - 211 === n + i && - 105 === a.charCodeAt(13) && - 0 < a.indexOf('transform', 10)) - ) + var n, r, i; return ( - a - .substring(0, a.indexOf(';', 27) + 1) - .replace(p, '$1-webkit-$2') + a + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + writable: !0, + configurable: !0 + } + })), + t && ho(e, t); + })(t, e), + (n = t), + (r = [ + { + key: 'componentDidMount', + value: function() { + this.props.fetchSavedQueries(); + } + }, + { + key: 'componentDidUpdate', + value: function(e) { + var t = this.props, + n = t.savedQueries, + r = t.savedQuery, + o = t.updateUISavedQuery; + !e.savedQueries.length && + n.length && + r.autoload && + o({ + item: n.find(function(e) { + return e.query_name === r.query_name; + }), + schemas: this.props.schemas + }); + } + }, + { + key: 'updateFilter', + value: function(e) { + this.setState({ filter: e.target.value }); + } + }, + { + key: 'confirmDeleteQuery', + value: function(e) { + var t = e.e, + n = e.query_name; + t.stopPropagation(), + confirm('Delete query "'.concat(n, '"?')) && + this.props.deleteQuery({ name: n }); + } + }, + { + key: 'render', + value: function() { + var e = this, + t = this.props, + n = t.features, + r = t.savedQueries, + i = t.savedQuery, + a = t.updateUI, + s = t.updateUISavedQuery, + c = t.resetResults, + u = i && i.name, + l = this.state, + f = l.filter, + d = l.error; + return o.a.createElement( + 'div', + { className: 'saved-queries' }, + d && + o.a.createElement( + 'div', + { className: 'error' }, + d + ), + o.a.createElement('input', { + className: 'input-filter', + placeholder: 'Search...', + type: 'text', + value: f, + onChange: function(t) { + return e.updateFilter(t); + } + }), + r + .filter(function(e) { + return ( + mo(e) + .toLowerCase() + .indexOf(f.toLowerCase()) >= 0 + ); + }) + .sort(function(e, t) { + var n = mo(e), + r = mo(t); + return n.toLowerCase() < r.toLowerCase() + ? -1 + : n.toLowerCase() > r.toLowerCase() + ? 1 + : 0; + }) + .map(function(t) { + return o.a.createElement( + 'div', + { + key: t.query_name, + className: 'item '.concat( + u === t.query_name && 'active' + ), + onClick: function() { + var n = t.query; + c(), + 'multi_analysis' !== n.analysis_type + ? s({ + item: t, + schemas: e.props.schemas + }) + : a({ + error: { + body: + 'Multi-Analysis is not supported by the Explorer' + } + }); + } + }, + o.a.createElement( + 'div', + { className: 'name' }, + mo(t) + ), + o.a.createElement( + 'div', + { className: 'cached' }, + !!t.refresh_rate && + o.a.createElement('span', null, 'Cached') + ), + o.a.createElement( + 'div', + { className: 'data' }, + co()(t.last_modified_date).format( + 'MMMM Do YYYY, h:mm:ss a' + ) + ), + n && + n.save && + o.a.createElement('i', { + onClick: function(n) { + return e.confirmDeleteQuery({ + e: n, + query_name: t.query_name + }); + }, + className: 'fas fa-times button-delete' + }) + ); + }) + ); + } + } + ]) && lo(n.prototype, r), + i && lo(n, i), + t ); - } - return a; - } - function o(e, t) { - var n = e.indexOf(1 === t ? ':' : '{'), - r = e.substring(0, 3 !== t ? n : 10); - return ( - (n = e.substring(n + 1, e.length - 1)), - D(2 !== t ? r : r.replace(M, '$1'), n, t) - ); - } - function i(e, t) { - var n = r(t, t.charCodeAt(0), t.charCodeAt(1), t.charCodeAt(2)); - return n !== t + ';' - ? n.replace(x, ' or ($1)').substring(4) - : '(' + t + ')'; - } - function a(e, t, n, r, o, i, a, s, u, l) { - for (var f, d = 0, p = t; d < P; ++d) - switch ((f = L[d].call(c, e, p, n, r, o, i, a, s, u, l))) { - case void 0: - case !1: - case !0: - case null: - break; - default: - p = f; + })(r.Component), + yo = Object(c.connect)(function(e) { + return { + savedQueries: e.queries.saved, + savedQuery: e.ui.savedQuery, + timezone: e.ui.timezone, + schemas: e.collections.schemas + }; + }, go)(bo), + vo = n(168), + _o = n.n(vo); + function wo(e) { + return (wo = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(e) { + return typeof e; + } + : function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e; + })(e); } - if (p !== t) return p; - } - function s(e) { - return ( - void 0 !== (e = e.prefix) && - ((D = null), - e - ? 'function' != typeof e - ? (T = 1) - : ((T = 2), (D = e)) - : (T = 0)), - s - ); - } - function c(e, n) { - var s = e; - if ((33 > s.charCodeAt(0) && (s = s.trim()), (s = [s]), 0 < P)) { - var c = a(-1, n, s, s, O, A, 0, 0, 0, 0); - void 0 !== c && 'string' == typeof c && (n = c); - } - var f = (function e(n, s, c, f, d) { - for ( - var p, - h, - g, - v, - x, - w = 0, - M = 0, - k = 0, - S = 0, - L = 0, - D = 0, - N = (g = p = 0), - j = 0, - R = 0, - I = 0, - F = 0, - q = c.length, - B = q - 1, - H = '', - Y = '', - W = '', - V = ''; - j < q; - - ) { - if ( - ((h = c.charCodeAt(j)), - j === B && - 0 !== M + S + k + w && - (0 !== M && (h = 47 === M ? 10 : 47), - (S = k = w = 0), - q++, - B++), - 0 === M + S + k + w) - ) { - if ( - j === B && - (0 < R && (H = H.replace(l, '')), 0 < H.trim().length) - ) { - switch (h) { - case 32: - case 9: - case 59: - case 13: - case 10: - break; - default: - H += c.charAt(j); - } - h = 59; - } - switch (h) { - case 123: - for ( - p = (H = H.trim()).charCodeAt(0), g = 1, F = ++j; - j < q; - - ) { - switch ((h = c.charCodeAt(j))) { - case 123: - g++; - break; - case 125: - g--; - break; - case 47: - switch ((h = c.charCodeAt(j + 1))) { - case 42: - case 47: - e: { - for (N = j + 1; N < B; ++N) - switch (c.charCodeAt(N)) { - case 47: - if ( - 42 === h && - 42 === c.charCodeAt(N - 1) && - j + 2 !== N - ) { - j = N + 1; - break e; - } - break; - case 10: - if (47 === h) { - j = N + 1; - break e; - } - } - j = N; - } - } - break; - case 91: - h++; - case 40: - h++; - case 34: - case 39: - for (; j++ < B && c.charCodeAt(j) !== h; ); + function xo(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + function Mo(e, t) { + return !t || ('object' !== wo(t) && 'function' != typeof t) + ? (function(e) { + if (void 0 === e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return e; + })(e) + : t; + } + function ko(e) { + return (ko = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(e) { + return e.__proto__ || Object.getPrototypeOf(e); + })(e); + } + function So(e, t) { + return (So = + Object.setPrototypeOf || + function(e, t) { + return (e.__proto__ = t), e; + })(e, t); + } + n(380); + var Oo = (function(e) { + function t(e) { + var n; + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + ((n = Mo(this, ko(t).call(this, e))).state = { + showDownloadButtons: !1 + }), + (n.downloadToggleRef = o.a.createRef()), + n + ); + } + var n, i, a; + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { value: e, writable: !0, configurable: !0 } + })), + t && So(e, t); + })(t, e), + (n = t), + (i = [ + { + key: 'componentDidMount', + value: function() { + this.generateChart(), + (this.handleClick = this.handleClick.bind(this)), + document.addEventListener( + 'click', + this.handleClick, + !1 + ); + } + }, + { + key: 'componentDidUpdate', + value: function(e) { + if (e.queryName === this.props.queryName) { + var t = this.props, + n = t.results, + r = t.type, + o = t.analysisType, + i = t.stepLabels, + a = t.timezone; + (e.analysisType === o && + e.stepLabels.toString() === i.toString() && + e.type === r && + e.timezone === a && + JSON.stringify(e.results) === JSON.stringify(n)) || + this.generateChart(); } - if (0 === g) break; - j++; } - switch ( - ((g = c.substring(F, j)), - 0 === p && - (p = (H = H.replace(u, '').trim()).charCodeAt(0)), - p) - ) { - case 64: - switch ( - (0 < R && (H = H.replace(l, '')), - (h = H.charCodeAt(1))) - ) { - case 100: - case 109: - case 115: - case 45: - R = s; - break; - default: - R = C; - } - if ( - ((F = (g = e(s, R, g, h, d + 1)).length), - 0 < P && - ((x = a( - 3, - g, - (R = t(C, H, I)), - s, - O, - A, - F, - h, - d, - f - )), - (H = R.join('')), - void 0 !== x && - 0 === (F = (g = x.trim()).length) && - ((h = 0), (g = ''))), - 0 < F) - ) - switch (h) { - case 115: - H = H.replace(_, i); - case 100: - case 109: - case 45: - g = H + '{' + g + '}'; - break; - case 107: - (g = - (H = H.replace(m, '$1 $2')) + '{' + g + '}'), - (g = - 1 === T || (2 === T && o('@' + g, 3)) - ? '@-webkit-' + g + '@' + g - : '@' + g); - break; - default: - (g = H + g), 112 === f && ((Y += g), (g = '')); - } - else g = ''; - break; - default: - g = e(s, t(s, H, I), g, f, d + 1); + }, + { + key: 'componentWillUnmount', + value: function() { + document.removeEventListener( + 'click', + this.handleClick, + !1 + ); } - (W += g), - (g = I = R = N = p = 0), - (H = ''), - (h = c.charCodeAt(++j)); - break; - case 125: - case 59: - if ( - 1 < - (F = (H = (0 < R ? H.replace(l, '') : H).trim()).length) - ) - switch ( - (0 === N && - ((p = H.charCodeAt(0)), - 45 === p || (96 < p && 123 > p)) && - (F = (H = H.replace(' ', ':')).length), - 0 < P && - void 0 !== - (x = a(1, H, s, n, O, A, Y.length, f, d, f)) && - 0 === (F = (H = x.trim()).length) && - (H = '\0\0'), - (p = H.charCodeAt(0)), - (h = H.charCodeAt(1)), - p) - ) { - case 0: - break; - case 64: - if (105 === h || 99 === h) { - V += H + c.charAt(j); - break; + }, + { + key: 'getData', + value: function() { + return ( + this.dataviz && + this.dataviz.dataset && + this.dataviz.dataset.matrix + ); + } + }, + { + key: 'handleClick', + value: function(e) { + this.downloadToggleRef.current.contains(e.target) || + this.setState({ showDownloadButtons: !1 }); + } + }, + { + key: 'generateChart', + value: function() { + var e = this.props, + t = e.results, + n = e.type, + r = e.analysisType, + o = e.stepLabels, + i = e.timezone; + if (t) { + if ('string' == typeof t.result) return; + var a, s; + if ('funnel' === r) { + var c = t.metadata; + if (c) { + var u = c.visualization; + u && (a = u.stepLabels); } - default: - 58 !== H.charCodeAt(F - 1) && - (Y += r(H, p, h, H.charCodeAt(2))); - } - (I = R = N = p = 0), (H = ''), (h = c.charCodeAt(++j)); - } - } - switch (h) { - case 13: - case 10: - 47 === M - ? (M = 0) - : 0 === 1 + p && - 107 !== f && - 0 < H.length && - ((R = 1), (H += '\0')), - 0 < P * z && a(0, H, s, n, O, A, Y.length, f, d, f), - (A = 1), - O++; - break; - case 59: - case 125: - if (0 === M + S + k + w) { - A++; - break; - } - default: - switch ((A++, (v = c.charAt(j)), h)) { - case 9: - case 32: - if (0 === S + w + M) - switch (L) { - case 44: - case 58: - case 9: - case 32: - v = ''; - break; - default: - 32 !== h && (v = ' '); + o && o.length && o[0] && (a = o), + (s = { percents: { show: !0 }, minimalSize: 50 }); } - break; - case 0: - v = '\\0'; - break; - case 12: - v = '\\f'; - break; - case 11: - v = '\\v'; - break; - case 38: - 0 === S + M + w && ((R = I = 1), (v = '\f' + v)); - break; - case 108: - if (0 === S + M + w + E && 0 < N) - switch (j - N) { - case 2: - 112 === L && - 58 === c.charCodeAt(j - 3) && - (E = L); - case 8: - 111 === D && (E = D); + var l = j.find(function(e) { + return e.value === i; + }), + f = (l && l.label) || 'UTC'; + this.dataviz && this.dataviz.destroy(); + try { + this.dataviz = new _o.a({ + container: '#keen-dataviz-container', + type: n, + title: !1, + showLoadingSpinner: !0, + results: t, + funnel: s, + labels: a, + onrendered: function() {}, + table: { + mapDates: function(e) { + return co.a + .tz(e, 'UTC') + .clone() + .tz(f) + .toString(); + } + }, + sortGroups: 'desc', + legend: { label: { textMaxLength: 30 } } + }); + } catch (e) { + console.error(e); } - break; - case 58: - 0 === S + M + w && (N = j); - break; - case 44: - 0 === M + k + S + w && ((R = 1), (v += '\r')); - break; - case 34: - case 39: - 0 === M && (S = S === h ? 0 : 0 === S ? h : S); - break; - case 91: - 0 === S + M + k && w++; - break; - case 93: - 0 === S + M + k && w--; - break; - case 41: - 0 === S + M + w && k--; - break; - case 40: - if (0 === S + M + w) { - if (0 === p) - switch (2 * L + 3 * D) { - case 533: - break; - default: - p = 1; - } - k++; } - break; - case 64: - 0 === M + k + S + w + N + g && (g = 1); - break; - case 42: - case 47: - if (!(0 < S + w + k)) - switch (M) { - case 0: - switch (2 * h + 3 * c.charCodeAt(j + 1)) { - case 235: - M = 47; - break; - case 220: - (F = j), (M = 42); - } - break; - case 42: - 47 === h && - 42 === L && - F + 2 !== j && - (33 === c.charCodeAt(F + 2) && - (Y += c.substring(F, j + 1)), - (v = ''), - (M = 0)); - } + } + }, + { + key: 'exportToPNG', + value: function() { + return ( + this.dataviz && + this.dataviz.exportImage({ bgcolor: 'white' }) + ); + } + }, + { + key: 'render', + value: function() { + var e = this, + t = this.props, + n = t.results, + i = t.modalEmbedHTML, + a = t.modalFilters, + s = t.componentDownloadButton, + c = this.state.showDownloadButtons, + u = this.props.queryName || 'untitled-query', + l = 'string' == typeof n.result; + return o.a.createElement( + r.Fragment, + null, + !l && + o.a.createElement('div', { + className: 'keen-dataviz-container '.concat( + i || a ? 'hide' : '' + ), + id: 'keen-dataviz-container' + }), + l && + o.a.createElement( + 'div', + { + className: 'keen-dataviz-container '.concat( + i || a ? 'hide' : '', + ' result-string' + ) + }, + o.a.createElement('div', null, n.result) + ), + s && + o.a.createElement( + 'div', + { + className: 'download-toggle', + ref: this.downloadToggleRef + }, + o.a.createElement( + 'div', + { + role: 'presentation', + className: 'download-toggle-label', + onClick: function() { + e.setState({ showDownloadButtons: !c }); + } + }, + o.a.createElement('i', { + className: 'fas fa-download' + }), + 'Download' + ), + c && + o.a.createElement( + 'div', + { className: 'download-buttons' }, + o.a.createElement( + 'button', + { + className: + 'button-download button-download-csv', + onClick: function() { + return (function(e, t) { + var n = ''; + e.forEach(function(t, r) { + t.forEach(function(e, r) { + (n += String(e).replace( + /,/g, + '' + )), + t.length > r + 1 && (n += ','); + }), + e.length > r + 1 && (n += '\n'); + }); + var r = t; + t.includes('.csv') || + (r = ''.concat(t, '.csv')); + var o = document.createElement('a'); + o.setAttribute( + 'href', + 'data:text/csv;charset=utf-8,' + + encodeURI(n) + ), + o.setAttribute('download', r), + document.body.appendChild(o), + o.click(); + })(e.getData(), u); + } + }, + 'CSV' + ), + o.a.createElement( + 'button', + { + className: + 'button-download button-download-json', + onClick: function() { + return (function(e, t) { + var n = document.createElement('a'); + n.setAttribute( + 'href', + 'data:text/json;charset=utf-8,' + + encodeURI(JSON.stringify(e)) + ); + var r = t; + t.includes('.json') || + (r = ''.concat(t, '.json')), + n.setAttribute('download', r), + document.body.appendChild(n), + n.click(); + })(n, u); + } + }, + 'JSON' + ), + o.a.createElement( + 'button', + { + className: + 'button-download button-download-png', + onClick: function() { + return e.exportToPNG(); + } + }, + 'PNG' + ) + ) + ) + ); + } } - 0 === M && (H += v); + ]) && xo(n.prototype, i), + a && xo(n, a), + t + ); + })(r.Component); + Oo.propTypes = { + queryName: it.a.string.isRequired, + type: it.a.string.isRequired, + analysisType: it.a.string.isRequired, + stepLabels: it.a.arrayOf(it.a.string).isRequired, + modalEmbedHTML: it.a.bool.isRequired, + modalFilters: it.a.bool.isRequired + }; + var Eo = Object(c.connect)(function(e) { + return { + results: e.queries.results, + type: e.ui.chartType, + queryName: e.ui.savedQuery.name, + modalEmbedHTML: e.ui.modalEmbedHTML, + modalFilters: e.ui.modalFilters, + analysisType: e.ui.analysisType, + stepLabels: e.ui.stepLabels, + timezone: e.ui.timezone + }; + }, {})(Oo); + function Ao(e) { + return (Ao = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(e) { + return typeof e; + } + : function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e; + })(e); + } + function To(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); } - (D = L), (L = h), j++; } - if (0 < (F = Y.length)) { - if ( - ((R = s), - 0 < P && - void 0 !== (x = a(2, Y, R, n, O, A, F, f, d, f)) && - 0 === (Y = x).length) - ) - return V + Y + W; - if (((Y = R.join(',') + '{' + Y + '}'), 0 != T * E)) { - switch ((2 !== T || o(Y, 2) || (E = 0), E)) { - case 111: - Y = Y.replace(y, ':-moz-$1') + Y; - break; - case 112: - Y = - Y.replace(b, '::-webkit-input-$1') + - Y.replace(b, '::-moz-$1') + - Y.replace(b, ':-ms-input-$1') + - Y; + function Co(e, t) { + return !t || ('object' !== Ao(t) && 'function' != typeof t) + ? (function(e) { + if (void 0 === e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return e; + })(e) + : t; + } + function Lo(e) { + return (Lo = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(e) { + return e.__proto__ || Object.getPrototypeOf(e); + })(e); + } + function Po(e, t) { + return (Po = + Object.setPrototypeOf || + function(e, t) { + return (e.__proto__ = t), e; + })(e, t); + } + var Do = (function(e) { + function t() { + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + Co(this, Lo(t).apply(this, arguments)) + ); } - E = 0; + var n, r, i; + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + writable: !0, + configurable: !0 + } + })), + t && Po(e, t); + })(t, e), + (n = t), + (r = [ + { + key: 'render', + value: function() { + return o.a.createElement(Jt.a, { + src: this.props.results, + style: { fontFamily: 'inherit' }, + collapsed: !0, + displayDataTypes: !1, + sortKeys: !0 + }); + } + } + ]) && To(n.prototype, r), + i && To(n, i), + t + ); + })(r.Component), + jo = Object(c.connect)(function(e) { + return { results: e.queries.results }; + }, {})(Do); + function zo(e) { + return (zo = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(e) { + return typeof e; + } + : function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e; + })(e); + } + function No(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); } } - return V + Y + W; - })(C, s, n, 0, 0); - return ( - 0 < P && - void 0 !== (c = a(-2, f, s, s, O, A, f.length, 0, 0, 0)) && - (f = c), - '', - (E = 0), - (A = O = 1), - f - ); - } - var u = /^\0+/g, - l = /[\0\r\f]/g, - f = /: */g, - d = /zoo|gra/, - p = /([,: ])(transform)/g, - h = /,\r+?/g, - g = /([\t\r\n ])*\f?&/g, - m = /@(k\w+)\s*(\S*)\s*/, - b = /::(place)/g, - y = /:(read-only)/g, - v = /[svh]\w+-[tblr]{2}/, - _ = /\(\s*(.*)\s*\)/g, - x = /([\s\S]*?);/g, - w = /-self|flex-/g, - M = /[^]*?(:[rp][el]a[\w-]+)[^]*/, - k = /stretch|:\s*\w+\-(?:conte|avail)/, - S = /([^-])(image-set\()/, - A = 1, - O = 1, - E = 0, - T = 1, - C = [], - L = [], - P = 0, - D = null, - z = 0; - return ( - (c.use = function e(t) { - switch (t) { - case void 0: - case null: - P = L.length = 0; - break; - default: - switch (t.constructor) { - case Array: - for (var n = 0, r = t.length; n < r; ++n) e(t[n]); - break; - case Function: - L[P++] = t; - break; - case Boolean: - z = 0 | !!t; + function Ro(e, t) { + return !t || ('object' !== zo(t) && 'function' != typeof t) + ? (function(e) { + if (void 0 === e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return e; + })(e) + : t; + } + function Io(e) { + return (Io = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(e) { + return e.__proto__ || Object.getPrototypeOf(e); + })(e); + } + function Fo(e, t) { + return (Fo = + Object.setPrototypeOf || + function(e, t) { + return (e.__proto__ = t), e; + })(e, t); + } + var qo = (function(e) { + function t(e) { + var n; + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + ((n = Ro(this, Io(t).call(this, e))).state = { + active: n.props.defaultActive + }), + n + ); } + var n, r, i; + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + writable: !0, + configurable: !0 + } + })), + t && Fo(e, t); + })(t, e), + (n = t), + (r = [ + { + key: 'componentDidUpdate', + value: function(e) { + !e.defaultActive && + this.props.defaultActive && + this.setState({ active: this.props.defaultActive }); + } + }, + { + key: 'onChange', + value: function() { + var e = this.props, + t = e.onOpen, + n = e.onClose, + r = e.onChange, + o = this.state.active; + r && r(o), t && o && t(), n && !o && n(); + } + }, + { + key: 'render', + value: function() { + var e = this, + t = this.props.title, + n = this.state.active; + return o.a.createElement( + 'div', + { + className: 'foldable '.concat( + n && 'foldable-active' + ) + }, + o.a.createElement( + 'div', + { + className: 'title', + onClick: function() { + e.setState({ active: !n }, function() { + return e.onChange(); + }); + } + }, + o.a.createElement('span', null, t), + o.a.createElement( + 'div', + { className: 'foldable-icon' }, + n ? '-' : '+' + ) + ), + n && + o.a.createElement( + 'div', + { className: 'content' }, + this.props.children + ) + ); + } + } + ]) && No(n.prototype, r), + i && No(n, i), + t + ); + })(r.Component), + Bo = n(114), + Ho = n.n(Bo); + function Yo(e) { + return (Yo = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(e) { + return typeof e; + } + : function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e; + })(e); } - return e; - }), - (c.set = s), - void 0 !== e && s(e), - c - ); - }, - s = n(427), - c = n.n(s), - u = /[A-Z]|^ms/g, - l = r(function(e) { - return e.replace(u, '-$&').toLowerCase(); - }), - f = function(e, t) { - return null == t || 'boolean' == typeof t - ? '' - : 1 === o[e] || 45 === e.charCodeAt(1) || isNaN(t) || 0 === t - ? t - : t + 'px'; - }, - d = function e(t) { - for (var n = t.length, r = 0, o = ''; r < n; r++) { - var i = t[r]; - if (null != i) { - var a = void 0; - switch (typeof i) { - case 'boolean': - break; - case 'function': - 0, (a = e([i()])); - break; - case 'object': - if (Array.isArray(i)) a = e(i); - else - for (var s in ((a = ''), i)) - i[s] && s && (a && (a += ' '), (a += s)); - break; - default: - a = i; + function Wo(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } } - a && (o && (o += ' '), (o += a)); - } - } - return o; - }, - p = 'undefined' != typeof document; - function h(e) { - var t = document.createElement('style'); - return ( - t.setAttribute('data-emotion', e.key || ''), - void 0 !== e.nonce && t.setAttribute('nonce', e.nonce), - t.appendChild(document.createTextNode('')), - (void 0 !== e.container ? e.container : document.head).appendChild(t), - t - ); - } - var g = (function() { - function e(e) { - (this.isSpeedy = !0), - (this.tags = []), - (this.ctr = 0), - (this.opts = e); - } - var t = e.prototype; - return ( - (t.inject = function() { - if (this.injected) throw new Error('already injected!'); - (this.tags[0] = h(this.opts)), (this.injected = !0); - }), - (t.speedy = function(e) { - if (0 !== this.ctr) throw new Error('cannot change speedy now'); - this.isSpeedy = !!e; - }), - (t.insert = function(e, t) { - if (this.isSpeedy) { - var n = (function(e) { - if (e.sheet) return e.sheet; - for (var t = 0; t < document.styleSheets.length; t++) - if (document.styleSheets[t].ownerNode === e) - return document.styleSheets[t]; - })(this.tags[this.tags.length - 1]); - try { - n.insertRule(e, n.cssRules.length); - } catch (e) { - 0; + function Vo(e, t) { + return !t || ('object' !== Yo(t) && 'function' != typeof t) + ? (function(e) { + if (void 0 === e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return e; + })(e) + : t; } - } else { - var r = h(this.opts); - this.tags.push(r), - r.appendChild(document.createTextNode(e + (t || ''))); - } - this.ctr++, this.ctr % 65e3 == 0 && this.tags.push(h(this.opts)); - }), - (t.flush = function() { - this.tags.forEach(function(e) { - return e.parentNode.removeChild(e); - }), - (this.tags = []), - (this.ctr = 0), - (this.injected = !1); - }), - e - ); - })(); - t.a = function(e, t) { - if (void 0 !== e.__SECRET_EMOTION__) return e.__SECRET_EMOTION__; - void 0 === t && (t = {}); - var n, - r, - o = t.key || 'css', - s = c()(function(e) { - (n += e), p && h.insert(e, b); - }); - void 0 !== t.prefix && (r = { prefix: t.prefix }); - var u = { registered: {}, inserted: {}, nonce: t.nonce, key: o }, - h = new g(t); - p && h.inject(); - var m = new a(r); - m.use(t.stylisPlugins)(s); - var b = ''; - function y(e, t) { - if (null == e) return ''; - switch (typeof e) { - case 'boolean': - return ''; - case 'function': - if (void 0 !== e.__emotion_styles) { - var n = e.toString(); - return n; + function Uo(e) { + return (Uo = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(e) { + return e.__proto__ || Object.getPrototypeOf(e); + })(e); } - return y.call( - this, - void 0 === this ? e() : e(this.mergedProps, this.context), - t - ); - case 'object': - return w.call(this, e); - default: - var r = u.registered[e]; - return !1 === t && void 0 !== r ? r : e; - } - } - var v, - _, - x = new WeakMap(); - function w(e) { - if (x.has(e)) return x.get(e); - var t = ''; - return ( - Array.isArray(e) - ? e.forEach(function(e) { - t += y.call(this, e, !1); - }, this) - : Object.keys(e).forEach(function(n) { - 'object' != typeof e[n] - ? void 0 !== u.registered[e[n]] - ? (t += n + '{' + u.registered[e[n]] + '}') - : (t += l(n) + ':' + f(n, e[n]) + ';') - : Array.isArray(e[n]) && - 'string' == typeof e[n][0] && - void 0 === u.registered[e[n][0]] - ? e[n].forEach(function(e) { - t += l(n) + ':' + f(n, e) + ';'; - }) - : (t += n + '{' + y.call(this, e[n], !1) + '}'); - }, this), - x.set(e, t), - t - ); - } - var M = /label:\s*([^\s;\n{]+)\s*;/g, - k = function(e, t) { - return i(e + t) + t; - }, - S = function(e) { - var t = !0, - n = '', - r = ''; - null == e || void 0 === e.raw - ? ((t = !1), (n += y.call(this, e, !1))) - : (n += e[0]); - for ( - var o = arguments.length, i = new Array(o > 1 ? o - 1 : 0), a = 1; - a < o; - a++ - ) - i[a - 1] = arguments[a]; - return ( - i.forEach(function(r, o) { - (n += y.call(this, r, 46 === n.charCodeAt(n.length - 1))), - !0 === t && void 0 !== e[o + 1] && (n += e[o + 1]); - }, this), - (_ = n), - (n = n.replace(M, function(e, t) { - return (r += '-' + t), ''; - })), - (v = k(n, r)), - n - ); - }; - function A(e, t) { - void 0 === u.inserted[v] && ((n = ''), m(e, t), (u.inserted[v] = n)); - } - var O = function() { - var e = S.apply(this, arguments), - t = o + '-' + v; - return ( - void 0 === u.registered[t] && (u.registered[t] = _), - A('.' + t, e), - t - ); - }; - function E(e, t) { - var n = ''; - return ( - t.split(' ').forEach(function(t) { - void 0 !== u.registered[t] ? e.push(t) : (n += t + ' '); - }), - n - ); - } - function T(e, t) { - var n = [], - r = E(n, e); - return n.length < 2 ? e : r + O(n, t); - } - function C(e) { - u.inserted[e] = !0; - } - if (p) { - var L = document.querySelectorAll('[data-emotion-' + o + ']'); - Array.prototype.forEach.call(L, function(e) { - h.tags[0].parentNode.insertBefore(e, h.tags[0]), - e - .getAttribute('data-emotion-' + o) - .split(' ') - .forEach(C); - }); - } - var P = { - flush: function() { - p && (h.flush(), h.inject()), - (u.inserted = {}), - (u.registered = {}); - }, - hydrate: function(e) { - e.forEach(C); - }, - cx: function() { - for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) - t[n] = arguments[n]; - return T(d(t)); - }, - merge: T, - getRegisteredStyles: E, - injectGlobal: function() { - var e = S.apply(this, arguments); - A('', e); - }, - keyframes: function() { - var e = S.apply(this, arguments), - t = 'animation-' + v; - return A('', '@keyframes ' + t + '{' + e + '}'), t; - }, - css: O, - sheet: h, - caches: u - }; - return (e.__SECRET_EMOTION__ = P), P; - }; - }, - , - function(e, t, n) { - 'use strict'; - /** @license React v16.13.1 - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ var r = n(83), - o = 'function' == typeof Symbol && Symbol.for, - i = o ? Symbol.for('react.element') : 60103, - a = o ? Symbol.for('react.portal') : 60106, - s = o ? Symbol.for('react.fragment') : 60107, - c = o ? Symbol.for('react.strict_mode') : 60108, - u = o ? Symbol.for('react.profiler') : 60114, - l = o ? Symbol.for('react.provider') : 60109, - f = o ? Symbol.for('react.context') : 60110, - d = o ? Symbol.for('react.forward_ref') : 60112, - p = o ? Symbol.for('react.suspense') : 60113, - h = o ? Symbol.for('react.memo') : 60115, - g = o ? Symbol.for('react.lazy') : 60116, - m = 'function' == typeof Symbol && Symbol.iterator; - function b(e) { - for ( - var t = 'https://reactjs.org/docs/error-decoder.html?invariant=' + e, - n = 1; - n < arguments.length; - n++ - ) - t += '&args[]=' + encodeURIComponent(arguments[n]); - return ( - 'Minified React error #' + - e + - '; visit ' + - t + - ' for the full message or use the non-minified dev environment for full errors and additional helpful warnings.' - ); - } - var y = { - isMounted: function() { - return !1; - }, - enqueueForceUpdate: function() {}, - enqueueReplaceState: function() {}, - enqueueSetState: function() {} - }, - v = {}; - function _(e, t, n) { - (this.props = e), - (this.context = t), - (this.refs = v), - (this.updater = n || y); - } - function x() {} - function w(e, t, n) { - (this.props = e), - (this.context = t), - (this.refs = v), - (this.updater = n || y); - } - (_.prototype.isReactComponent = {}), - (_.prototype.setState = function(e, t) { - if ('object' != typeof e && 'function' != typeof e && null != e) - throw Error(b(85)); - this.updater.enqueueSetState(this, e, t, 'setState'); - }), - (_.prototype.forceUpdate = function(e) { - this.updater.enqueueForceUpdate(this, e, 'forceUpdate'); - }), - (x.prototype = _.prototype); - var M = (w.prototype = new x()); - (M.constructor = w), r(M, _.prototype), (M.isPureReactComponent = !0); - var k = { current: null }, - S = Object.prototype.hasOwnProperty, - A = { key: !0, ref: !0, __self: !0, __source: !0 }; - function O(e, t, n) { - var r, - o = {}, - a = null, - s = null; - if (null != t) - for (r in (void 0 !== t.ref && (s = t.ref), - void 0 !== t.key && (a = '' + t.key), - t)) - S.call(t, r) && !A.hasOwnProperty(r) && (o[r] = t[r]); - var c = arguments.length - 2; - if (1 === c) o.children = n; - else if (1 < c) { - for (var u = Array(c), l = 0; l < c; l++) u[l] = arguments[l + 2]; - o.children = u; - } - if (e && e.defaultProps) - for (r in (c = e.defaultProps)) void 0 === o[r] && (o[r] = c[r]); - return { - $$typeof: i, - type: e, - key: a, - ref: s, - props: o, - _owner: k.current - }; - } - function E(e) { - return 'object' == typeof e && null !== e && e.$$typeof === i; - } - var T = /\/+/g, - C = []; - function L(e, t, n, r) { - if (C.length) { - var o = C.pop(); - return ( - (o.result = e), - (o.keyPrefix = t), - (o.func = n), - (o.context = r), - (o.count = 0), - o - ); - } - return { result: e, keyPrefix: t, func: n, context: r, count: 0 }; - } - function P(e) { - (e.result = null), - (e.keyPrefix = null), - (e.func = null), - (e.context = null), - (e.count = 0), - 10 > C.length && C.push(e); - } - function D(e, t, n) { - return null == e - ? 0 - : (function e(t, n, r, o) { - var s = typeof t; - ('undefined' !== s && 'boolean' !== s) || (t = null); - var c = !1; - if (null === t) c = !0; - else - switch (s) { - case 'string': - case 'number': - c = !0; - break; - case 'object': - switch (t.$$typeof) { - case i: - case a: - c = !0; + function Xo(e, t) { + return (Xo = + Object.setPrototypeOf || + function(e, t) { + return (e.__proto__ = t), e; + })(e, t); + } + n(382), n(383), n(384), n(385), n(386), n(388), n(389); + var Go = (function(e) { + function t() { + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + Vo(this, Uo(t).apply(this, arguments)) + ); + } + var n, i, a; + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + writable: !0, + configurable: !0 + } + })), + t && Xo(e, t); + })(t, e), + (n = t), + (i = [ + { + key: 'renderIfDefined', + value: function(e) { + var t = e.key, + n = e.value, + r = this.props.ui.savedQuery, + o = this.props.ui[t]; + return o + ? 'filters' !== t || o.length + ? ' '.concat(t, ': ').concat(n, ',\n') + : '' + : r && r.name && r.exists + ? ' ' + .concat(t, ": '") + .concat(r.name, "',\n") + : ''; + } + }, + { + key: 'renderIfDefinedInStep', + value: function(e) { + var t = e.key, + n = e.value, + r = e.step[t]; + return r && ('filters' !== t || r.length) + ? ' ' + .concat(t, ': ') + .concat(n, ',\n') + : ''; + } + }, + { + key: 'render', + value: function() { + var e, + t = this, + n = this.props, + i = n.projectId, + a = n.readKey, + s = this.props.ui, + c = s.analysisType, + u = s.eventCollection, + l = s.targetProperty, + f = s.timeframe, + d = s.timezone, + p = s.filters, + h = s.interval, + g = s.groupBy, + m = s.orderBy, + b = s.limit, + y = s.savedQuery, + v = s.propertyNames, + _ = s.latest, + w = s.percentile, + x = s.steps, + M = s.stepLabels, + k = void 0 === M ? '' : M, + S = []; + if ( + (S.push( + this.renderIfDefined({ + key: 'analysisType', + value: "'".concat(c, "'") + }) + ), + S.push( + this.renderIfDefined({ + key: 'eventCollection', + value: "'".concat(u, "'") + }) + ), + S.push( + this.renderIfDefined({ + key: 'targetProperty', + value: "'".concat(l, "'") + }) + ), + S.push( + this.renderIfDefined({ + key: 'timeframe', + value: ''.concat(JSON.stringify(f)) + }) + ), + S.push( + this.renderIfDefined({ + key: 'interval', + value: "'".concat(h, "'") + }) + ), + S.push( + this.renderIfDefined({ + key: 'groupBy', + value: ''.concat(JSON.stringify(g)) + }) + ), + S.push( + this.renderIfDefined({ key: 'limit', value: b }) + ), + S.push( + this.renderIfDefined({ + key: 'orderBy', + value: ''.concat(JSON.stringify(m)) + }) + ), + S.push( + this.renderIfDefined({ + key: 'filters', + value: ''.concat(JSON.stringify(p)) + }) + ), + S.push( + this.renderIfDefined({ + key: 'timezone', + value: ''.concat(d) + }) + ), + S.push( + this.renderIfDefined({ + key: 'percentile', + value: ''.concat(JSON.stringify(w)) + }) + ), + 'extraction' === c && + (S.push( + this.renderIfDefined({ + key: 'propertyNames', + value: ''.concat(JSON.stringify(v)) + }) + ), + S.push( + this.renderIfDefined({ + key: 'latest', + value: ''.concat(JSON.stringify(_)) + }) + )), + 'funnel' === c) + ) { + (S = []).push( + this.renderIfDefined({ + key: 'analysisType', + value: "'".concat(c, "'") + }) + ); + var O = []; + x.forEach(function(e) { + var n = []; + n.push(' {\n'), + n.push( + t.renderIfDefinedInStep({ + key: 'actorProperty', + value: "'".concat(e.actorProperty, "'"), + step: e + }) + ), + n.push( + t.renderIfDefinedInStep({ + key: 'eventCollection', + value: "'".concat(e.eventCollection, "'"), + step: e + }) + ), + n.push( + t.renderIfDefinedInStep({ + key: 'timeframe', + value: ''.concat( + JSON.stringify(e.timeframe) + ), + step: e + }) + ), + n.push( + t.renderIfDefinedInStep({ + key: 'timezone', + value: ''.concat(e.timezone), + step: e + }) + ), + n.push( + t.renderIfDefinedInStep({ + key: 'filters', + value: ''.concat(JSON.stringify(e.filters)), + step: e + }) + ), + n.push( + t.renderIfDefinedInStep({ + key: 'inverted', + value: ''.concat(e.inverted), + step: e + }) + ), + n.push( + t.renderIfDefinedInStep({ + key: 'optional', + value: ''.concat(e.optional), + step: e + }) + ), + n.push( + t.renderIfDefinedInStep({ + key: 'withActors', + value: ''.concat(e.withActors), + step: e + }) + ), + n.push(' }'), + O.push(n.join('')); + }), + S.push( + ' steps: [\n '.concat( + O.join(',\n '), + '\n ]\n' + ) + ), + k.length && + (e = ',\n labels: '.concat( + JSON.stringify(k) + )); + } + y && y.name && y.exists && (S.length = 0), + S.push( + this.renderIfDefined({ key: 'savedQueryName' }) + ); + var E = '\n \n \n \n \n \n \n \n
\n \n \n \n \n ' + ), + A = Ho.a.highlight( + E, + Ho.a.languages.javascript, + 'javascript' + ); + return o.a.createElement( + r.Fragment, + null, + o.a.createElement('div', { + className: 'container', + dangerouslySetInnerHTML: { __html: A } + }), + o.a.createElement( + 'div', + { + className: 'button-copy', + onClick: function() { + return xr(E); + } + }, + 'Copy ', + o.a.createElement('i', { + className: 'fas fa-copy' + }) + ) + ); + } + } + ]) && Wo(n.prototype, i), + a && Wo(n, a), + t + ); + })(r.Component), + Ko = Object(c.connect)(function(e) { + return { ui: e.ui }; + }, {})(Go); + function $o(e) { + return ($o = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(e) { + return typeof e; + } + : function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e; + })(e); + } + function Qo(e) { + return ( + (function(e) { + if (Array.isArray(e)) { + for ( + var t = 0, n = new Array(e.length); + t < e.length; + t++ + ) + n[t] = e[t]; + return n; } + })(e) || + (function(e) { + if ( + Symbol.iterator in Object(e) || + '[object Arguments]' === Object.prototype.toString.call(e) + ) + return Array.from(e); + })(e) || + (function() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance' + ); + })() + ); + } + function Jo(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); } - if (c) return r(o, t, '' === n ? '.' + z(t, 0) : n), 1; - if (((c = 0), (n = '' === n ? '.' : n + ':'), Array.isArray(t))) - for (var u = 0; u < t.length; u++) { - var l = n + z((s = t[u]), u); - c += e(s, l, r, o); + } + function Zo(e, t) { + return !t || ('object' !== $o(t) && 'function' != typeof t) + ? (function(e) { + if (void 0 === e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return e; + })(e) + : t; + } + function ei(e) { + return (ei = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(e) { + return e.__proto__ || Object.getPrototypeOf(e); + })(e); + } + function ti(e, t) { + return (ti = + Object.setPrototypeOf || + function(e, t) { + return (e.__proto__ = t), e; + })(e, t); + } + function ni(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + 'function' == typeof Object.getOwnPropertySymbols && + (r = r.concat( + Object.getOwnPropertySymbols(n).filter(function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable; + }) + )), + r.forEach(function(t) { + ri(e, t, n[t]); + }); } - else if ( - (null === t || 'object' != typeof t - ? (l = null) - : (l = - 'function' == typeof (l = (m && t[m]) || t['@@iterator']) - ? l - : null), - 'function' == typeof l) - ) - for (t = l.call(t), u = 0; !(s = t.next()).done; ) - c += e((s = s.value), (l = n + z(s, u++)), r, o); - else if ('object' === s) - throw ((r = '' + t), - Error( - b( - 31, - '[object Object]' === r - ? 'object with keys {' + Object.keys(t).join(', ') + '}' - : r, - '' - ) - )); - return c; - })(e, '', t, n); - } - function z(e, t) { - return 'object' == typeof e && null !== e && null != e.key - ? (function(e) { - var t = { '=': '=0', ':': '=2' }; - return ( - '$' + - ('' + e).replace(/[=:]/g, function(e) { - return t[e]; - }) - ); - })(e.key) - : t.toString(36); - } - function N(e, t) { - e.func.call(e.context, t, e.count++); - } - function j(e, t, n) { - var r = e.result, - o = e.keyPrefix; - (e = e.func.call(e.context, t, e.count++)), - Array.isArray(e) - ? R(e, r, n, function(e) { return e; - }) - : null != e && - (E(e) && - (e = (function(e, t) { - return { - $$typeof: i, - type: e.type, - key: t, - ref: e.ref, - props: e.props, - _owner: e._owner - }; - })( - e, - o + - (!e.key || (t && t.key === e.key) - ? '' - : ('' + e.key).replace(T, '$&/') + '/') + - n - )), - r.push(e)); - } - function R(e, t, n, r, o) { - var i = ''; - null != n && (i = ('' + n).replace(T, '$&/') + '/'), - D(e, j, (t = L(t, i, r, o))), - P(t); - } - var I = { current: null }; - function F() { - var e = I.current; - if (null === e) throw Error(b(321)); - return e; - } - var q = { - ReactCurrentDispatcher: I, - ReactCurrentBatchConfig: { suspense: null }, - ReactCurrentOwner: k, - IsSomeRendererActing: { current: !1 }, - assign: r - }; - (t.Children = { - map: function(e, t, n) { - if (null == e) return e; - var r = []; - return R(e, r, null, t, n), r; - }, - forEach: function(e, t, n) { - if (null == e) return e; - D(e, N, (t = L(null, null, t, n))), P(t); - }, - count: function(e) { - return D( - e, - function() { - return null; - }, - null - ); - }, - toArray: function(e) { - var t = []; - return ( - R(e, t, null, function(e) { - return e; - }), - t - ); - }, - only: function(e) { - if (!E(e)) throw Error(b(143)); - return e; - } - }), - (t.Component = _), - (t.Fragment = s), - (t.Profiler = u), - (t.PureComponent = w), - (t.StrictMode = c), - (t.Suspense = p), - (t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = q), - (t.cloneElement = function(e, t, n) { - if (null == e) throw Error(b(267, e)); - var o = r({}, e.props), - a = e.key, - s = e.ref, - c = e._owner; - if (null != t) { - if ( - (void 0 !== t.ref && ((s = t.ref), (c = k.current)), - void 0 !== t.key && (a = '' + t.key), - e.type && e.type.defaultProps) - ) - var u = e.type.defaultProps; - for (l in t) - S.call(t, l) && - !A.hasOwnProperty(l) && - (o[l] = void 0 === t[l] && void 0 !== u ? u[l] : t[l]); - } - var l = arguments.length - 2; - if (1 === l) o.children = n; - else if (1 < l) { - u = Array(l); - for (var f = 0; f < l; f++) u[f] = arguments[f + 2]; - o.children = u; - } - return { - $$typeof: i, - type: e.type, - key: a, - ref: s, - props: o, - _owner: c - }; - }), - (t.createContext = function(e, t) { - return ( - void 0 === t && (t = null), - ((e = { - $$typeof: f, - _calculateChangedBits: t, - _currentValue: e, - _currentValue2: e, - _threadCount: 0, - Provider: null, - Consumer: null - }).Provider = { $$typeof: l, _context: e }), - (e.Consumer = e) - ); - }), - (t.createElement = O), - (t.createFactory = function(e) { - var t = O.bind(null, e); - return (t.type = e), t; - }), - (t.createRef = function() { - return { current: null }; - }), - (t.forwardRef = function(e) { - return { $$typeof: d, render: e }; - }), - (t.isValidElement = E), - (t.lazy = function(e) { - return { $$typeof: g, _ctor: e, _status: -1, _result: null }; - }), - (t.memo = function(e, t) { - return { $$typeof: h, type: e, compare: void 0 === t ? null : t }; - }), - (t.useCallback = function(e, t) { - return F().useCallback(e, t); - }), - (t.useContext = function(e, t) { - return F().useContext(e, t); - }), - (t.useDebugValue = function() {}), - (t.useEffect = function(e, t) { - return F().useEffect(e, t); - }), - (t.useImperativeHandle = function(e, t, n) { - return F().useImperativeHandle(e, t, n); - }), - (t.useLayoutEffect = function(e, t) { - return F().useLayoutEffect(e, t); - }), - (t.useMemo = function(e, t) { - return F().useMemo(e, t); - }), - (t.useReducer = function(e, t, n) { - return F().useReducer(e, t, n); - }), - (t.useRef = function(e) { - return F().useRef(e); - }), - (t.useState = function(e) { - return F().useState(e); - }), - (t.version = '16.13.1'); - }, - function(e, t, n) { - 'use strict'; - /** @license React v16.13.1 - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ var r = n(0), - o = n(83), - i = n(445); - function a(e) { - for ( - var t = 'https://reactjs.org/docs/error-decoder.html?invariant=' + e, - n = 1; - n < arguments.length; - n++ - ) - t += '&args[]=' + encodeURIComponent(arguments[n]); - return ( - 'Minified React error #' + - e + - '; visit ' + - t + - ' for the full message or use the non-minified dev environment for full errors and additional helpful warnings.' - ); - } - if (!r) throw Error(a(227)); - function s(e, t, n, r, o, i, a, s, c) { - var u = Array.prototype.slice.call(arguments, 3); - try { - t.apply(n, u); - } catch (e) { - this.onError(e); - } - } - var c = !1, - u = null, - l = !1, - f = null, - d = { - onError: function(e) { - (c = !0), (u = e); - } - }; - function p(e, t, n, r, o, i, a, l, f) { - (c = !1), (u = null), s.apply(d, arguments); - } - var h = null, - g = null, - m = null; - function b(e, t, n) { - var r = e.type || 'unknown-event'; - (e.currentTarget = m(n)), - (function(e, t, n, r, o, i, s, d, h) { - if ((p.apply(this, arguments), c)) { - if (!c) throw Error(a(198)); - var g = u; - (c = !1), (u = null), l || ((l = !0), (f = g)); - } - })(r, t, void 0, e), - (e.currentTarget = null); - } - var y = null, - v = {}; - function _() { - if (y) - for (var e in v) { - var t = v[e], - n = y.indexOf(e); - if (!(-1 < n)) throw Error(a(96, e)); - if (!w[n]) { - if (!t.extractEvents) throw Error(a(97, e)); - for (var r in ((w[n] = t), (n = t.eventTypes))) { - var o = void 0, - i = n[r], - s = t, - c = r; - if (M.hasOwnProperty(c)) throw Error(a(99, c)); - M[c] = i; - var u = i.phasedRegistrationNames; - if (u) { - for (o in u) u.hasOwnProperty(o) && x(u[o], s, c); - o = !0; - } else - i.registrationName - ? (x(i.registrationName, s, c), (o = !0)) - : (o = !1); - if (!o) throw Error(a(98, r, e)); } - } - } - } - function x(e, t, n) { - if (k[e]) throw Error(a(100, e)); - (k[e] = t), (S[e] = t.eventTypes[n].dependencies); - } - var w = [], - M = {}, - k = {}, - S = {}; - function A(e) { - var t, - n = !1; - for (t in e) - if (e.hasOwnProperty(t)) { - var r = e[t]; - if (!v.hasOwnProperty(t) || v[t] !== r) { - if (v[t]) throw Error(a(102, t)); - (v[t] = r), (n = !0); - } - } - n && _(); - } - var O = !( - 'undefined' == typeof window || - void 0 === window.document || - void 0 === window.document.createElement - ), - E = null, - T = null, - C = null; - function L(e) { - if ((e = g(e))) { - if ('function' != typeof E) throw Error(a(280)); - var t = e.stateNode; - t && ((t = h(t)), E(e.stateNode, e.type, t)); - } - } - function P(e) { - T ? (C ? C.push(e) : (C = [e])) : (T = e); - } - function D() { - if (T) { - var e = T, - t = C; - if (((C = T = null), L(e), t)) for (e = 0; e < t.length; e++) L(t[e]); - } - } - function z(e, t) { - return e(t); - } - function N(e, t, n, r, o) { - return e(t, n, r, o); - } - function j() {} - var R = z, - I = !1, - F = !1; - function q() { - (null === T && null === C) || (j(), D()); - } - function B(e, t, n) { - if (F) return e(t, n); - F = !0; - try { - return R(e, t, n); - } finally { - (F = !1), q(); - } - } - var H = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, - Y = Object.prototype.hasOwnProperty, - W = {}, - V = {}; - function U(e, t, n, r, o, i) { - (this.acceptsBooleans = 2 === t || 3 === t || 4 === t), - (this.attributeName = r), - (this.attributeNamespace = o), - (this.mustUseProperty = n), - (this.propertyName = e), - (this.type = t), - (this.sanitizeURL = i); - } - var X = {}; - 'children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style' - .split(' ') - .forEach(function(e) { - X[e] = new U(e, 0, !1, e, null, !1); - }), - [ - ['acceptCharset', 'accept-charset'], - ['className', 'class'], - ['htmlFor', 'for'], - ['httpEquiv', 'http-equiv'] - ].forEach(function(e) { - var t = e[0]; - X[t] = new U(t, 1, !1, e[1], null, !1); - }), - ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach( - function(e) { - X[e] = new U(e, 2, !1, e.toLowerCase(), null, !1); - } - ), - [ - 'autoReverse', - 'externalResourcesRequired', - 'focusable', - 'preserveAlpha' - ].forEach(function(e) { - X[e] = new U(e, 2, !1, e, null, !1); - }), - 'allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope' - .split(' ') - .forEach(function(e) { - X[e] = new U(e, 3, !1, e.toLowerCase(), null, !1); - }), - ['checked', 'multiple', 'muted', 'selected'].forEach(function(e) { - X[e] = new U(e, 3, !0, e, null, !1); - }), - ['capture', 'download'].forEach(function(e) { - X[e] = new U(e, 4, !1, e, null, !1); - }), - ['cols', 'rows', 'size', 'span'].forEach(function(e) { - X[e] = new U(e, 6, !1, e, null, !1); - }), - ['rowSpan', 'start'].forEach(function(e) { - X[e] = new U(e, 5, !1, e.toLowerCase(), null, !1); - }); - var G = /[\-:]([a-z])/g; - function K(e) { - return e[1].toUpperCase(); - } - 'accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height' - .split(' ') - .forEach(function(e) { - var t = e.replace(G, K); - X[t] = new U(t, 1, !1, e, null, !1); - }), - 'xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type' - .split(' ') - .forEach(function(e) { - var t = e.replace(G, K); - X[t] = new U(t, 1, !1, e, 'http://www.w3.org/1999/xlink', !1); - }), - ['xml:base', 'xml:lang', 'xml:space'].forEach(function(e) { - var t = e.replace(G, K); - X[t] = new U(t, 1, !1, e, 'http://www.w3.org/XML/1998/namespace', !1); - }), - ['tabIndex', 'crossOrigin'].forEach(function(e) { - X[e] = new U(e, 1, !1, e.toLowerCase(), null, !1); - }), - (X.xlinkHref = new U( - 'xlinkHref', - 1, - !1, - 'xlink:href', - 'http://www.w3.org/1999/xlink', - !0 - )), - ['src', 'href', 'action', 'formAction'].forEach(function(e) { - X[e] = new U(e, 1, !1, e.toLowerCase(), null, !0); - }); - var $ = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; - function Q(e, t, n, r) { - var o = X.hasOwnProperty(t) ? X[t] : null; - (null !== o - ? 0 === o.type - : !r && - 2 < t.length && - ('o' === t[0] || 'O' === t[0]) && - ('n' === t[1] || 'N' === t[1])) || - ((function(e, t, n, r) { - if ( - null == t || - (function(e, t, n, r) { - if (null !== n && 0 === n.type) return !1; - switch (typeof t) { - case 'function': - case 'symbol': - return !0; - case 'boolean': - return ( - !r && - (null !== n - ? !n.acceptsBooleans - : 'data-' !== (e = e.toLowerCase().slice(0, 5)) && - 'aria-' !== e) - ); - default: - return !1; - } - })(e, t, n, r) - ) - return !0; - if (r) return !1; - if (null !== n) - switch (n.type) { - case 3: - return !t; - case 4: - return !1 === t; - case 5: - return isNaN(t); - case 6: - return isNaN(t) || 1 > t; + function ri(e, t, n) { + return ( + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), + e + ); } - return !1; - })(t, n, o, r) && (n = null), - r || null === o - ? (function(e) { + var oi = { + fetchProject: function() { + return { type: 'CLIENT_FETCH_PROJECT' }; + }, + fetchSchema: Ft, + query: function(e) { + return { type: 'CLIENT_RUN_QUERY', payload: e }; + }, + updateUI: Tt, + updateStepUI: Ct, + resetUI: function() { + return { type: 'RESET_UI' }; + }, + togglePanelSave: function() { + return { type: 'TOGGLE_PANEL_SAVE' }; + }, + addStep: function() { + return { type: 'ADD_STEP' }; + } + }, + ii = { save: !0 }, + ai = (function(e) { + function t(e) { + var n; + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (n = Zo(this, ei(t).call(this, e))); + var r = ni({}, ii, e.features || {}); + if (((n.state = { features: r }), localStorage)) { + var o = e.keenAnalysis.config.projectId; + (localStorage.projectId && + localStorage.projectId === o) || + (localStorage.setItem('projectId', o), + localStorage.removeItem('eventCollection'), + e.updateUI({ eventCollection: void 0 })); + } + return n; + } + var n, i, a; + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + writable: !0, + configurable: !0 + } + })), + t && ti(e, t); + })(t, e), + (n = t), + (i = [ + { + key: 'componentDidMount', + value: function() { + this.props.fetchProject(), + ut.a.setAppElement(this.props.container); + var e = new URL(window.location.href), + t = new URLSearchParams(e.search); + if (t) { + var n = t.get('state'), + r = t.get('saved_query'); + if (n) { + var o = JSON.parse( + decodeURIComponent( + atob(n) + .split('') + .map(function(e) { + return ( + '%' + + ( + '00' + e.charCodeAt(0).toString(16) + ).slice(-2) + ); + }) + .join('') + ) + ); + 'extraction' !== o.analysisType && + (o.autoload = !0), + this.props.updateUI(o); + } + r && + this.props.updateUI({ + savedQuery: { query_name: r, autoload: !0 }, + activePanel: 1 + }); + } + } + }, + { + key: 'componentDidUpdate', + value: function(e) { + var t, + n = this.props, + r = n.ui, + o = n.fetchSchema, + i = + ((t = JSON.stringify(r)), + btoa( + encodeURIComponent(t).replace( + /%([0-9A-F]{2})/g, + function(e, t) { + return String.fromCharCode('0x' + t); + } + ) + )), + a = new URL(window.location.href), + s = a.search, + c = new URLSearchParams(s); + i !== c.get('state') && + (c.set('state', i), + c.delete('saved_query'), + (a.search = c.toString()), + history.pushState({}, '', a.toString())); + var u = this.props.ui, + l = u.autoload, + f = u.savedQuery, + d = u.analysisType, + p = u.steps, + h = this.props.ui.eventCollection; + if ( + ('funnel' === d && + (h = p[0] && p[0].eventCollection), + e.collections.items.length === + this.props.collections.items.length || + Object.keys(this.props.collections.schemas) + .length || + o({ eventCollection: h }), + l) + ) { + (r.autoload = !1), + Tt({ autoload: !1 }), + o({ eventCollection: h }); + var g = f && f.name; + this.runQuery({ savedQueryName: g }); + } + } + }, + { + key: 'getQueryParams', + value: function() { + var e = this.props.ui, + t = e.analysisType, + n = e.eventCollection, + r = e.targetProperty, + o = e.timeframe, + i = e.timezone, + a = e.filters, + s = e.interval, + c = e.groupBy, + u = e.orderBy, + l = e.limit, + f = e.latest, + d = (e.propertyNames, e.email), + p = e.contentEncoding, + h = e.extractionActiveTab, + g = e.percentile, + m = e.steps, + b = ni( + { + analysisType: t, + eventCollection: n, + timeframe: o, + timezone: i + }, + { + interval: s, + targetProperty: r, + filters: a, + groupBy: c, + orderBy: u, + limit: l, + percentile: g + } + ); + return ( + 'extraction' === t && + ((b = ni({}, b, { latest: f })), + 1 === h && + ((b.email = d), (b.content_encoding = p))), + 'funnel' === t && (b = ni({}, b, { steps: m })), + b + ); + } + }, + { + key: 'runQuery', + value: function(e) { + var t = ni({}, _t(this.getQueryParams())); + if ('funnel' === t.analysisType) { + var n = t.steps.map(function(e) { + return ni({}, e, _t(e)); + }); + t = ni({}, t, { steps: Qo(n), filters: void 0 }); + } + this.props.query(ni({}, e, t)); + } + }, + { + key: 'renderFiltersFoldable', + value: function() { + var e = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : {}, + t = e.step, + n = e.funnel, + i = this.props.updateUI, + a = this.props.ui, + s = a.modalFilters, + c = a.steps, + u = this.props.ui, + l = u.filters, + f = u.eventCollection; + n && ((l = c[t].filters), (f = c[t].eventCollection)); + var d = function() { + i({ modalFilters: !1 }); + }; + return o.a.createElement( + r.Fragment, + null, + o.a.createElement( + 'div', + { + onClick: function() { + f && i({ modalFilters: !0 }); + }, + className: 'filters foldable' + }, + o.a.createElement( + 'div', + { className: 'title' }, + 'Filters' + ), + !!l.length && + o.a.createElement( + 'div', + { className: 'count' }, + l.length + ) + ), + o.a.createElement( + ut.a, + { + isOpen: s, + onRequestClose: function() { + return d(); + }, + contentLabel: '', + style: { + overlay: { + backgroundColor: 'rgba(0, 0, 0, 0.3)' + } + } + }, + o.a.createElement( + 'div', + { className: 'filters-container modal-main' }, + o.a.createElement( + 'div', + { className: 'header' }, + o.a.createElement( + 'div', + { className: 'title' }, + 'Filters' + ) + ), + o.a.createElement(ir, { + funnel: n, + step: t, + onCloseModal: function() { + return d(); + } + }) + ) + ) + ); + } + }, + { + key: 'render', + value: function() { + var e = this, + t = this.props, + n = t.queries, + i = t.updateUI, + a = t.resetUI, + s = t.togglePanelSave, + c = t.addStep, + u = t.previewCollection, + l = t.saveStateToLocalStorage, + f = t.components, + d = this.state.features, + p = this.props.ui, + h = p.activePanel, + g = p.analysisType, + m = p.eventCollection, + b = p.targetProperty, + y = p.interval, + v = p.groupBy, + _ = p.chartType, + w = p.modalEmbedHTML, + x = p.modalPreviewCollection, + M = p.error, + k = p.fetching, + S = p.panelSave, + E = p.extractionActiveTab, + A = p.steps, + T = { label: g, value: g }, + C = { label: b, value: b }, + L = this.getQueryParams(), + D = F(L), + j = n && n.results, + z = D.length && { label: D[0], value: D[0] }; + _ && (z = { label: _, value: _ }); + var N = D.sort(function(e, t) { + return e.toLowerCase() < t.toLowerCase() + ? -1 + : e.toLowerCase() > t.toLowerCase() + ? 1 + : 0; + }).map(function(e) { + return { label: e, value: e }; + }), + R = this.props.keenAnalysis.config, + I = R.readKey, + q = R.projectId, + B = !!O.find(function(e) { + return e.type === g; + }).targetProperty; + return o.a.createElement( + 'div', + { className: 'keen-explorer' }, + o.a.createElement( + 'div', + { className: 'panel-main' }, + o.a.createElement( + 'div', + { className: 'panel-buttons tabs' }, + o.a.createElement( + 'div', + { + className: 'tab button button-new-query', + onClick: function() { + a(); + } + }, + o.a.createElement('i', { + className: 'fa fa-plus' + }) + ), + o.a.createElement( + 'div', + { + className: 'tab button '.concat( + 0 === h ? 'active' : '' + ), + onClick: function() { + return i({ activePanel: 0 }); + } + }, + 'Query' + ), + f.savedQueryBrowser && + o.a.createElement( + 'div', + { + className: 'tab button '.concat( + 1 === h ? 'active' : '' + ), + onClick: function() { + return i({ activePanel: 1 }); + } + }, + 'Browse' + ) + ), + o.a.createElement( + 'div', + { + className: 'panel-content ' + .concat(0 !== h ? 'hide' : '', ' panel-') + .concat(g) + }, + 'funnel' !== g && + f.eventCollection && + o.a.createElement($t, { + saveStateToLocalStorage: l.eventCollection + }), + f.previewCollections && + u && + 'funnel' !== g && + o.a.createElement( + r.Fragment, + null, + o.a.createElement( + 'div', + { + className: 'a-preview-collection', + onClick: function() { + i({ modalPreviewCollection: !0 }); + } + }, + o.a.createElement('i', { + className: 'fas fa-search' + }), + ' Preview Collections' + ), + o.a.createElement( + ut.a, + { + isOpen: x, + onRequestClose: function() { + i({ modalPreviewCollection: !1 }); + }, + style: { + overlay: { + backgroundColor: + 'rgba(0, 0, 0, 0.3)' + } + } + }, + o.a.createElement( + 'div', + { className: 'modal-main' }, + o.a.createElement( + 'div', + { className: 'header' }, + o.a.createElement( + 'div', + { className: 'title' }, + 'Preview Collections' + ), + o.a.createElement( + 'div', + { + className: 'x', + onClick: function() { + i({ + modalPreviewCollection: !1 + }); + } + }, + 'x' + ) + ), + o.a.createElement(bn, null) + ) + ) + ), + f.analysisType && + o.a.createElement( + r.Fragment, + null, + o.a.createElement( + 'div', + { + className: + 'label-main label-analysis-type' + }, + 'Analysis type' + ), + o.a.createElement(st.a, { + value: T, + options: O.map(function(e) { + return { label: e.type, value: e.type }; + }), + onChange: function(e) { + i({ analysisType: e.value }); + }, + theme: dt + }) + ), + B && + m && + o.a.createElement(It, { + value: C, + eventCollection: m + }), + 'extraction' === g && + m && + o.a.createElement(Fn, null), + 'percentile' === g && + m && + o.a.createElement(Xn, null), + 'funnel' === g && + A && + o.a.createElement( + 'div', + { className: 'funnel' }, + A.map(function(t, n) { + return o.a.createElement( + Wr, + { key: n, index: n, className: '' }, + o.a.createElement($t, { + funnel: !0, + step: n + }), + o.a.createElement(Jr, { step: n }), + o.a.createElement(Ln, { + funnel: !0, + step: n + }), + e.renderFiltersFoldable({ + funnel: !0, + step: n + }) + ); + }), + o.a.createElement( + 'div', + { + onClick: function() { + return c(); + }, + className: 'button button-add' + }, + o.a.createElement('i', { + className: 'fas fa-plus' + }), + ' Add a step' + ) + ), + 'funnel' !== g && + o.a.createElement( + r.Fragment, + null, + f.timeframe && + o.a.createElement(Ln, { + componentTimezone: f.timezone + }), + f.filters && this.renderFiltersFoldable() + ), + 'extraction' !== g && + 'funnel' !== g && + o.a.createElement( + r.Fragment, + null, + f.groupBy && + o.a.createElement( + qo, + { + title: 'Group By - Order By', + defaultActive: !!v, + onClose: function() { + i({ + groupBy: void 0, + orderBy: void 0, + limit: void 0, + numberOfGroupByProps: 1 + }); + } + }, + o.a.createElement(pr, null) + ), + f.interval && + o.a.createElement( + qo, + { + title: 'Interval', + defaultActive: !!y, + onOpen: function() { + i({ interval: P }); + }, + onClose: function() { + i({ interval: void 0 }); + } + }, + o.a.createElement(wr, null) + ), + f.apiQueryUrl && + o.a.createElement(Cr, { + queryParams: L, + client: di + }) + ) + ), + o.a.createElement( + 'div', + { + className: 'panel-content panel-saved-queries '.concat( + 1 !== h ? 'hide' : '' + ) + }, + o.a.createElement(yo, { + client: di, + features: d + }) + ) + ), + f.results && + o.a.createElement( + 'div', + { className: 'result' }, + !j && + o.a.createElement( + 'div', + { className: 'lets-go' }, + "Let's go exploring!" + ), + j && + o.a.createElement( + 'div', + { className: 'preview' }, + 'JSON' === _ && o.a.createElement(jo, null), + 'JSON' !== _ && + o.a.createElement( + r.Fragment, + null, + o.a.createElement(Eo, { + componentDownloadButton: + f.downloadButton + }), + f.embedButton && + o.a.createElement( + 'button', + { + className: + 'button-download button-embed-html', + onClick: function() { + i({ modalEmbedHTML: !0 }); + } + }, + o.a.createElement('i', { + className: 'fas fa-code' + }), + ' Embed HTML' + ), + o.a.createElement( + ut.a, + { + isOpen: w, + onRequestClose: function() { + i({ modalEmbedHTML: !1 }); + }, + style: { + overlay: { + backgroundColor: + 'rgba(0, 0, 0, 0.3)' + } + } + }, + o.a.createElement( + 'div', + { className: 'modal-main' }, + o.a.createElement( + 'div', + { className: 'header' }, + o.a.createElement( + 'div', + { className: 'title' }, + 'Embed HTML' + ), + o.a.createElement( + 'div', + { + className: 'x', + onClick: function() { + i({ modalEmbedHTML: !1 }); + } + }, + 'x' + ) + ), + o.a.createElement(Ko, { + projectId: q, + readKey: I + }) + ) + ) + ), + o.a.createElement( + 'div', + { + className: 'select-chart-type-container' + }, + o.a.createElement(st.a, { + className: 'select-chart-type', + value: z, + options: N, + onChange: function(e) { + i({ chartType: e.value }); + }, + theme: dt + }) + ) + ), + M && + 0 !== Object.keys(M).length && + o.a.createElement( + 'div', + { className: 'error' }, + M.body + ), + o.a.createElement( + 'div', + { className: 'action-buttons' }, + o.a.createElement( + 'button', + { + className: + 'button-run-query button-with-loading-spinner', + onClick: function() { + return e.runQuery(); + } + }, + k && o.a.createElement(cn, null), + !('extraction' === g && 1 === E) && + o.a.createElement( + r.Fragment, + null, + 'Run Query' + ), + 'extraction' === g && + 1 === E && + o.a.createElement( + r.Fragment, + null, + 'Extract to Email' + ) + ), + f.saveButton && + d.save && + o.a.createElement( + 'div', + { + className: 'button-toggle '.concat( + S ? 'button-toggle-active' : '' + ), + onClick: function() { + return s(); + } + }, + 'Save Query' + ), + d.save && + S && + o.a.createElement(ao, { + client: di, + queryParams: L + }) + ) + ) + ); + } + } + ]) && Jo(n.prototype, i), + a && Jo(n, a), + t + ); + })(r.Component); + ai.propTypes = {}; + var si = Object(c.connect)(function(e, t) { + return { + collections: e.collections, + queries: e.queries, + ui: e.ui, + steps: e.ui.steps, + components: ni({}, e.ui.components, t.components) + }; + }, oi)(ai); + function ci(e, t, n) { return ( - !!Y.call(V, e) || - (!Y.call(W, e) && - (H.test(e) ? (V[e] = !0) : ((W[e] = !0), !1))) + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), + e ); - })(t) && - (null === n ? e.removeAttribute(t) : e.setAttribute(t, '' + n)) - : o.mustUseProperty - ? (e[o.propertyName] = null === n ? 3 !== o.type && '' : n) - : ((t = o.attributeName), - (r = o.attributeNamespace), - null === n - ? e.removeAttribute(t) - : ((n = - 3 === (o = o.type) || (4 === o && !0 === n) ? '' : '' + n), - r ? e.setAttributeNS(r, t, n) : e.setAttribute(t, n)))); - } - $.hasOwnProperty('ReactCurrentDispatcher') || - ($.ReactCurrentDispatcher = { current: null }), - $.hasOwnProperty('ReactCurrentBatchConfig') || - ($.ReactCurrentBatchConfig = { suspense: null }); - var J = /^(.*)[\\\/]/, - Z = 'function' == typeof Symbol && Symbol.for, - ee = Z ? Symbol.for('react.element') : 60103, - te = Z ? Symbol.for('react.portal') : 60106, - ne = Z ? Symbol.for('react.fragment') : 60107, - re = Z ? Symbol.for('react.strict_mode') : 60108, - oe = Z ? Symbol.for('react.profiler') : 60114, - ie = Z ? Symbol.for('react.provider') : 60109, - ae = Z ? Symbol.for('react.context') : 60110, - se = Z ? Symbol.for('react.concurrent_mode') : 60111, - ce = Z ? Symbol.for('react.forward_ref') : 60112, - ue = Z ? Symbol.for('react.suspense') : 60113, - le = Z ? Symbol.for('react.suspense_list') : 60120, - fe = Z ? Symbol.for('react.memo') : 60115, - de = Z ? Symbol.for('react.lazy') : 60116, - pe = Z ? Symbol.for('react.block') : 60121, - he = 'function' == typeof Symbol && Symbol.iterator; - function ge(e) { - return null === e || 'object' != typeof e - ? null - : 'function' == typeof (e = (he && e[he]) || e['@@iterator']) - ? e - : null; - } - function me(e) { - if (null == e) return null; - if ('function' == typeof e) return e.displayName || e.name || null; - if ('string' == typeof e) return e; - switch (e) { - case ne: - return 'Fragment'; - case te: - return 'Portal'; - case oe: - return 'Profiler'; - case re: - return 'StrictMode'; - case ue: - return 'Suspense'; - case le: - return 'SuspenseList'; - } - if ('object' == typeof e) - switch (e.$$typeof) { - case ae: - return 'Context.Consumer'; - case ie: - return 'Context.Provider'; - case ce: - var t = e.render; - return ( - (t = t.displayName || t.name || ''), - e.displayName || - ('' !== t ? 'ForwardRef(' + t + ')' : 'ForwardRef') - ); - case fe: - return me(e.type); - case pe: - return me(e.render); - case de: - if ((e = 1 === e._status ? e._result : null)) return me(e); - } - return null; - } - function be(e) { - var t = ''; - do { - e: switch (e.tag) { - case 3: - case 4: - case 6: - case 7: - case 10: - case 9: - var n = ''; - break e; - default: - var r = e._debugOwner, - o = e._debugSource, - i = me(e.type); - (n = null), - r && (n = me(r.type)), - (r = i), - (i = ''), - o - ? (i = - ' (at ' + - o.fileName.replace(J, '') + - ':' + - o.lineNumber + - ')') - : n && (i = ' (created by ' + n + ')'), - (n = '\n in ' + (r || 'Unknown') + i); - } - (t += n), (e = e.return); - } while (e); - return t; - } - function ye(e) { - switch (typeof e) { - case 'boolean': - case 'number': - case 'object': - case 'string': - case 'undefined': - return e; - default: - return ''; - } - } - function ve(e) { - var t = e.type; - return ( - (e = e.nodeName) && - 'input' === e.toLowerCase() && - ('checkbox' === t || 'radio' === t) - ); - } - function _e(e) { - e._valueTracker || - (e._valueTracker = (function(e) { - var t = ve(e) ? 'checked' : 'value', - n = Object.getOwnPropertyDescriptor(e.constructor.prototype, t), - r = '' + e[t]; - if ( - !e.hasOwnProperty(t) && - void 0 !== n && - 'function' == typeof n.get && - 'function' == typeof n.set - ) { - var o = n.get, - i = n.set; - return ( - Object.defineProperty(e, t, { - configurable: !0, - get: function() { - return o.call(this); - }, - set: function(e) { - (r = '' + e), i.call(this, e); - } - }), - Object.defineProperty(e, t, { enumerable: n.enumerable }), - { - getValue: function() { - return r; - }, - setValue: function(e) { - r = '' + e; - }, - stopTracking: function() { - (e._valueTracker = null), delete e[t]; - } - } - ); - } - })(e)); - } - function xe(e) { - if (!e) return !1; - var t = e._valueTracker; - if (!t) return !0; - var n = t.getValue(), - r = ''; - return ( - e && (r = ve(e) ? (e.checked ? 'true' : 'false') : e.value), - (e = r) !== n && (t.setValue(e), !0) - ); - } - function we(e, t) { - var n = t.checked; - return o({}, t, { - defaultChecked: void 0, - defaultValue: void 0, - value: void 0, - checked: null != n ? n : e._wrapperState.initialChecked - }); - } - function Me(e, t) { - var n = null == t.defaultValue ? '' : t.defaultValue, - r = null != t.checked ? t.checked : t.defaultChecked; - (n = ye(null != t.value ? t.value : n)), - (e._wrapperState = { - initialChecked: r, - initialValue: n, - controlled: - 'checkbox' === t.type || 'radio' === t.type - ? null != t.checked - : null != t.value - }); - } - function ke(e, t) { - null != (t = t.checked) && Q(e, 'checked', t, !1); - } - function Se(e, t) { - ke(e, t); - var n = ye(t.value), - r = t.type; - if (null != n) - 'number' === r - ? ((0 === n && '' === e.value) || e.value != n) && - (e.value = '' + n) - : e.value !== '' + n && (e.value = '' + n); - else if ('submit' === r || 'reset' === r) - return void e.removeAttribute('value'); - t.hasOwnProperty('value') - ? Oe(e, t.type, n) - : t.hasOwnProperty('defaultValue') && - Oe(e, t.type, ye(t.defaultValue)), - null == t.checked && - null != t.defaultChecked && - (e.defaultChecked = !!t.defaultChecked); - } - function Ae(e, t, n) { - if (t.hasOwnProperty('value') || t.hasOwnProperty('defaultValue')) { - var r = t.type; - if ( - !( - ('submit' !== r && 'reset' !== r) || - (void 0 !== t.value && null !== t.value) - ) - ) - return; - (t = '' + e._wrapperState.initialValue), - n || t === e.value || (e.value = t), - (e.defaultValue = t); - } - '' !== (n = e.name) && (e.name = ''), - (e.defaultChecked = !!e._wrapperState.initialChecked), - '' !== n && (e.name = n); - } - function Oe(e, t, n) { - ('number' === t && e.ownerDocument.activeElement === e) || - (null == n - ? (e.defaultValue = '' + e._wrapperState.initialValue) - : e.defaultValue !== '' + n && (e.defaultValue = '' + n)); - } - function Ee(e, t) { - return ( - (e = o({ children: void 0 }, t)), - (t = (function(e) { - var t = ''; - return ( - r.Children.forEach(e, function(e) { - null != e && (t += e); - }), - t - ); - })(t.children)) && (e.children = t), - e - ); - } - function Te(e, t, n, r) { - if (((e = e.options), t)) { - t = {}; - for (var o = 0; o < n.length; o++) t['$' + n[o]] = !0; - for (n = 0; n < e.length; n++) - (o = t.hasOwnProperty('$' + e[n].value)), - e[n].selected !== o && (e[n].selected = o), - o && r && (e[n].defaultSelected = !0); - } else { - for (n = '' + ye(n), t = null, o = 0; o < e.length; o++) { - if (e[o].value === n) - return ( - (e[o].selected = !0), void (r && (e[o].defaultSelected = !0)) - ); - null !== t || e[o].disabled || (t = e[o]); - } - null !== t && (t.selected = !0); - } - } - function Ce(e, t) { - if (null != t.dangerouslySetInnerHTML) throw Error(a(91)); - return o({}, t, { - value: void 0, - defaultValue: void 0, - children: '' + e._wrapperState.initialValue - }); - } - function Le(e, t) { - var n = t.value; - if (null == n) { - if (((n = t.children), (t = t.defaultValue), null != n)) { - if (null != t) throw Error(a(92)); - if (Array.isArray(n)) { - if (!(1 >= n.length)) throw Error(a(93)); - n = n[0]; - } - t = n; - } - null == t && (t = ''), (n = t); - } - e._wrapperState = { initialValue: ye(n) }; - } - function Pe(e, t) { - var n = ye(t.value), - r = ye(t.defaultValue); - null != n && - ((n = '' + n) !== e.value && (e.value = n), - null == t.defaultValue && - e.defaultValue !== n && - (e.defaultValue = n)), - null != r && (e.defaultValue = '' + r); - } - function De(e) { - var t = e.textContent; - t === e._wrapperState.initialValue && - '' !== t && - null !== t && - (e.value = t); - } - var ze = 'http://www.w3.org/1999/xhtml', - Ne = 'http://www.w3.org/2000/svg'; - function je(e) { - switch (e) { - case 'svg': - return 'http://www.w3.org/2000/svg'; - case 'math': - return 'http://www.w3.org/1998/Math/MathML'; - default: - return 'http://www.w3.org/1999/xhtml'; - } - } - function Re(e, t) { - return null == e || 'http://www.w3.org/1999/xhtml' === e - ? je(t) - : 'http://www.w3.org/2000/svg' === e && 'foreignObject' === t - ? 'http://www.w3.org/1999/xhtml' - : e; - } - var Ie, - Fe = (function(e) { - return 'undefined' != typeof MSApp && MSApp.execUnsafeLocalFunction - ? function(t, n, r, o) { - MSApp.execUnsafeLocalFunction(function() { - return e(t, n); - }); - } - : e; - })(function(e, t) { - if (e.namespaceURI !== Ne || 'innerHTML' in e) e.innerHTML = t; - else { - for ( - (Ie = Ie || document.createElement('div')).innerHTML = - '' + t.valueOf().toString() + '', - t = Ie.firstChild; - e.firstChild; - - ) - e.removeChild(e.firstChild); - for (; t.firstChild; ) e.appendChild(t.firstChild); - } - }); - function qe(e, t) { - if (t) { - var n = e.firstChild; - if (n && n === e.lastChild && 3 === n.nodeType) - return void (n.nodeValue = t); - } - e.textContent = t; - } - function Be(e, t) { - var n = {}; - return ( - (n[e.toLowerCase()] = t.toLowerCase()), - (n['Webkit' + e] = 'webkit' + t), - (n['Moz' + e] = 'moz' + t), - n - ); - } - var He = { - animationend: Be('Animation', 'AnimationEnd'), - animationiteration: Be('Animation', 'AnimationIteration'), - animationstart: Be('Animation', 'AnimationStart'), - transitionend: Be('Transition', 'TransitionEnd') - }, - Ye = {}, - We = {}; - function Ve(e) { - if (Ye[e]) return Ye[e]; - if (!He[e]) return e; - var t, - n = He[e]; - for (t in n) if (n.hasOwnProperty(t) && t in We) return (Ye[e] = n[t]); - return e; - } - O && - ((We = document.createElement('div').style), - 'AnimationEvent' in window || - (delete He.animationend.animation, - delete He.animationiteration.animation, - delete He.animationstart.animation), - 'TransitionEvent' in window || delete He.transitionend.transition); - var Ue = Ve('animationend'), - Xe = Ve('animationiteration'), - Ge = Ve('animationstart'), - Ke = Ve('transitionend'), - $e = 'abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting'.split( - ' ' - ), - Qe = new ('function' == typeof WeakMap ? WeakMap : Map)(); - function Je(e) { - var t = Qe.get(e); - return void 0 === t && ((t = new Map()), Qe.set(e, t)), t; - } - function Ze(e) { - var t = e, - n = e; - if (e.alternate) for (; t.return; ) t = t.return; - else { - e = t; - do { - 0 != (1026 & (t = e).effectTag) && (n = t.return), (e = t.return); - } while (e); - } - return 3 === t.tag ? n : null; - } - function et(e) { - if (13 === e.tag) { - var t = e.memoizedState; - if ( - (null === t && null !== (e = e.alternate) && (t = e.memoizedState), - null !== t) - ) - return t.dehydrated; - } - return null; - } - function tt(e) { - if (Ze(e) !== e) throw Error(a(188)); - } - function nt(e) { - if ( - !(e = (function(e) { - var t = e.alternate; - if (!t) { - if (null === (t = Ze(e))) throw Error(a(188)); - return t !== e ? null : e; - } - for (var n = e, r = t; ; ) { - var o = n.return; - if (null === o) break; - var i = o.alternate; - if (null === i) { - if (null !== (r = o.return)) { - n = r; - continue; - } - break; } - if (o.child === i.child) { - for (i = o.child; i; ) { - if (i === n) return tt(o), e; - if (i === r) return tt(o), t; - i = i.sibling; - } - throw Error(a(188)); - } - if (n.return !== r.return) (n = o), (r = i); - else { - for (var s = !1, c = o.child; c; ) { - if (c === n) { - (s = !0), (n = o), (r = i); - break; - } - if (c === r) { - (s = !0), (r = o), (n = i); - break; - } - c = c.sibling; - } - if (!s) { - for (c = i.child; c; ) { - if (c === n) { - (s = !0), (n = i), (r = o); - break; - } - if (c === r) { - (s = !0), (r = i), (n = o); - break; - } - c = c.sibling; - } - if (!s) throw Error(a(189)); - } - } - if (n.alternate !== r) throw Error(a(190)); - } - if (3 !== n.tag) throw Error(a(188)); - return n.stateNode.current === n ? e : t; - })(e)) - ) - return null; - for (var t = e; ; ) { - if (5 === t.tag || 6 === t.tag) return t; - if (t.child) (t.child.return = t), (t = t.child); - else { - if (t === e) break; - for (; !t.sibling; ) { - if (!t.return || t.return === e) return null; - t = t.return; - } - (t.sibling.return = t.return), (t = t.sibling); - } - } - return null; - } - function rt(e, t) { - if (null == t) throw Error(a(30)); - return null == e - ? t - : Array.isArray(e) - ? Array.isArray(t) - ? (e.push.apply(e, t), e) - : (e.push(t), e) - : Array.isArray(t) - ? [e].concat(t) - : [e, t]; - } - function ot(e, t, n) { - Array.isArray(e) ? e.forEach(t, n) : e && t.call(n, e); - } - var it = null; - function at(e) { - if (e) { - var t = e._dispatchListeners, - n = e._dispatchInstances; - if (Array.isArray(t)) - for (var r = 0; r < t.length && !e.isPropagationStopped(); r++) - b(e, t[r], n[r]); - else t && b(e, t, n); - (e._dispatchListeners = null), - (e._dispatchInstances = null), - e.isPersistent() || e.constructor.release(e); - } - } - function st(e) { - if ((null !== e && (it = rt(it, e)), (e = it), (it = null), e)) { - if ((ot(e, at), it)) throw Error(a(95)); - if (l) throw ((e = f), (l = !1), (f = null), e); - } - } - function ct(e) { - return ( - (e = e.target || e.srcElement || window).correspondingUseElement && - (e = e.correspondingUseElement), - 3 === e.nodeType ? e.parentNode : e - ); - } - function ut(e) { - if (!O) return !1; - var t = (e = 'on' + e) in document; - return ( - t || - ((t = document.createElement('div')).setAttribute(e, 'return;'), - (t = 'function' == typeof t[e])), - t - ); - } - var lt = []; - function ft(e) { - (e.topLevelType = null), - (e.nativeEvent = null), - (e.targetInst = null), - (e.ancestors.length = 0), - 10 > lt.length && lt.push(e); - } - function dt(e, t, n, r) { - if (lt.length) { - var o = lt.pop(); - return ( - (o.topLevelType = e), - (o.eventSystemFlags = r), - (o.nativeEvent = t), - (o.targetInst = n), - o - ); - } - return { - topLevelType: e, - eventSystemFlags: r, - nativeEvent: t, - targetInst: n, - ancestors: [] - }; - } - function pt(e) { - var t = e.targetInst, - n = t; - do { - if (!n) { - e.ancestors.push(n); - break; - } - var r = n; - if (3 === r.tag) r = r.stateNode.containerInfo; - else { - for (; r.return; ) r = r.return; - r = 3 !== r.tag ? null : r.stateNode.containerInfo; - } - if (!r) break; - (5 !== (t = n.tag) && 6 !== t) || e.ancestors.push(n), (n = On(r)); - } while (n); - for (n = 0; n < e.ancestors.length; n++) { - t = e.ancestors[n]; - var o = ct(e.nativeEvent); - r = e.topLevelType; - var i = e.nativeEvent, - a = e.eventSystemFlags; - 0 === n && (a |= 64); - for (var s = null, c = 0; c < w.length; c++) { - var u = w[c]; - u && (u = u.extractEvents(r, t, i, o, a)) && (s = rt(s, u)); - } - st(s); - } - } - function ht(e, t, n) { - if (!n.has(e)) { - switch (e) { - case 'scroll': - Gt(t, 'scroll', !0); - break; - case 'focus': - case 'blur': - Gt(t, 'focus', !0), - Gt(t, 'blur', !0), - n.set('blur', null), - n.set('focus', null); - break; - case 'cancel': - case 'close': - ut(e) && Gt(t, e, !0); - break; - case 'invalid': - case 'submit': - case 'reset': - break; - default: - -1 === $e.indexOf(e) && Xt(e, t); - } - n.set(e, null); - } - } - var gt, - mt, - bt, - yt = !1, - vt = [], - _t = null, - xt = null, - wt = null, - Mt = new Map(), - kt = new Map(), - St = [], - At = 'mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit'.split( - ' ' - ), - Ot = 'focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture'.split( - ' ' - ); - function Et(e, t, n, r, o) { - return { - blockedOn: e, - topLevelType: t, - eventSystemFlags: 32 | n, - nativeEvent: o, - container: r - }; - } - function Tt(e, t) { - switch (e) { - case 'focus': - case 'blur': - _t = null; - break; - case 'dragenter': - case 'dragleave': - xt = null; - break; - case 'mouseover': - case 'mouseout': - wt = null; - break; - case 'pointerover': - case 'pointerout': - Mt.delete(t.pointerId); - break; - case 'gotpointercapture': - case 'lostpointercapture': - kt.delete(t.pointerId); - } - } - function Ct(e, t, n, r, o, i) { - return null === e || e.nativeEvent !== i - ? ((e = Et(t, n, r, o, i)), - null !== t && null !== (t = En(t)) && mt(t), - e) - : ((e.eventSystemFlags |= r), e); - } - function Lt(e) { - var t = On(e.target); - if (null !== t) { - var n = Ze(t); - if (null !== n) - if (13 === (t = n.tag)) { - if (null !== (t = et(n))) - return ( - (e.blockedOn = t), - void i.unstable_runWithPriority(e.priority, function() { - bt(n); - }) + var ui = f()(), + li = Object(u.composeWithDevTools)({}), + fi = Object(s.createStore)( + $, + li(Object(s.applyMiddleware)(ui)) ); - } else if (3 === t && n.stateNode.hydrate) - return void (e.blockedOn = - 3 === n.tag ? n.stateNode.containerInfo : null); - } - e.blockedOn = null; - } - function Pt(e) { - if (null !== e.blockedOn) return !1; - var t = Jt( - e.topLevelType, - e.eventSystemFlags, - e.container, - e.nativeEvent - ); - if (null !== t) { - var n = En(t); - return null !== n && mt(n), (e.blockedOn = t), !1; - } - return !0; - } - function Dt(e, t, n) { - Pt(e) && n.delete(t); - } - function zt() { - for (yt = !1; 0 < vt.length; ) { - var e = vt[0]; - if (null !== e.blockedOn) { - null !== (e = En(e.blockedOn)) && gt(e); - break; - } - var t = Jt( - e.topLevelType, - e.eventSystemFlags, - e.container, - e.nativeEvent - ); - null !== t ? (e.blockedOn = t) : vt.shift(); - } - null !== _t && Pt(_t) && (_t = null), - null !== xt && Pt(xt) && (xt = null), - null !== wt && Pt(wt) && (wt = null), - Mt.forEach(Dt), - kt.forEach(Dt); - } - function Nt(e, t) { - e.blockedOn === t && - ((e.blockedOn = null), - yt || - ((yt = !0), - i.unstable_scheduleCallback(i.unstable_NormalPriority, zt))); - } - function jt(e) { - function t(t) { - return Nt(t, e); - } - if (0 < vt.length) { - Nt(vt[0], e); - for (var n = 1; n < vt.length; n++) { - var r = vt[n]; - r.blockedOn === e && (r.blockedOn = null); - } - } - for ( - null !== _t && Nt(_t, e), - null !== xt && Nt(xt, e), - null !== wt && Nt(wt, e), - Mt.forEach(t), - kt.forEach(t), - n = 0; - n < St.length; - n++ - ) - (r = St[n]).blockedOn === e && (r.blockedOn = null); - for (; 0 < St.length && null === (n = St[0]).blockedOn; ) - Lt(n), null === n.blockedOn && St.shift(); - } - var Rt = {}, - It = new Map(), - Ft = new Map(), - qt = [ - 'abort', - 'abort', - Ue, - 'animationEnd', - Xe, - 'animationIteration', - Ge, - 'animationStart', - 'canplay', - 'canPlay', - 'canplaythrough', - 'canPlayThrough', - 'durationchange', - 'durationChange', - 'emptied', - 'emptied', - 'encrypted', - 'encrypted', - 'ended', - 'ended', - 'error', - 'error', - 'gotpointercapture', - 'gotPointerCapture', - 'load', - 'load', - 'loadeddata', - 'loadedData', - 'loadedmetadata', - 'loadedMetadata', - 'loadstart', - 'loadStart', - 'lostpointercapture', - 'lostPointerCapture', - 'playing', - 'playing', - 'progress', - 'progress', - 'seeking', - 'seeking', - 'stalled', - 'stalled', - 'suspend', - 'suspend', - 'timeupdate', - 'timeUpdate', - Ke, - 'transitionEnd', - 'waiting', - 'waiting' - ]; - function Bt(e, t) { - for (var n = 0; n < e.length; n += 2) { - var r = e[n], - o = e[n + 1], - i = 'on' + (o[0].toUpperCase() + o.slice(1)); - (i = { - phasedRegistrationNames: { bubbled: i, captured: i + 'Capture' }, - dependencies: [r], - eventPriority: t - }), - Ft.set(r, t), - It.set(r, i), - (Rt[o] = i); - } - } - Bt( - 'blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange'.split( - ' ' - ), - 0 - ), - Bt( - 'drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel'.split( - ' ' - ), - 1 - ), - Bt(qt, 2); - for ( - var Ht = 'change selectionchange textInput compositionstart compositionend compositionupdate'.split( - ' ' - ), - Yt = 0; - Yt < Ht.length; - Yt++ - ) - Ft.set(Ht[Yt], 0); - var Wt = i.unstable_UserBlockingPriority, - Vt = i.unstable_runWithPriority, - Ut = !0; - function Xt(e, t) { - Gt(t, e, !1); - } - function Gt(e, t, n) { - var r = Ft.get(t); - switch (void 0 === r ? 2 : r) { - case 0: - r = Kt.bind(null, t, 1, e); - break; - case 1: - r = $t.bind(null, t, 1, e); - break; - default: - r = Qt.bind(null, t, 1, e); - } - n ? e.addEventListener(t, r, !0) : e.addEventListener(t, r, !1); - } - function Kt(e, t, n, r) { - I || j(); - var o = Qt, - i = I; - I = !0; - try { - N(o, e, t, n, r); - } finally { - (I = i) || q(); - } - } - function $t(e, t, n, r) { - Vt(Wt, Qt.bind(null, e, t, n, r)); - } - function Qt(e, t, n, r) { - if (Ut) - if (0 < vt.length && -1 < At.indexOf(e)) - (e = Et(null, e, t, n, r)), vt.push(e); - else { - var o = Jt(e, t, n, r); - if (null === o) Tt(e, r); - else if (-1 < At.indexOf(e)) (e = Et(o, e, t, n, r)), vt.push(e); - else if ( - !(function(e, t, n, r, o) { - switch (t) { - case 'focus': - return (_t = Ct(_t, e, t, n, r, o)), !0; - case 'dragenter': - return (xt = Ct(xt, e, t, n, r, o)), !0; - case 'mouseover': - return (wt = Ct(wt, e, t, n, r, o)), !0; - case 'pointerover': - var i = o.pointerId; - return Mt.set(i, Ct(Mt.get(i) || null, e, t, n, r, o)), !0; - case 'gotpointercapture': - return ( - (i = o.pointerId), - kt.set(i, Ct(kt.get(i) || null, e, t, n, r, o)), - !0 - ); - } - return !1; - })(o, e, t, n, r) - ) { - Tt(e, r), (e = dt(e, r, null, t)); - try { - B(pt, e); - } finally { - ft(e); - } - } - } - } - function Jt(e, t, n, r) { - if (null !== (n = On((n = ct(r))))) { - var o = Ze(n); - if (null === o) n = null; - else { - var i = o.tag; - if (13 === i) { - if (null !== (n = et(o))) return n; - n = null; - } else if (3 === i) { - if (o.stateNode.hydrate) - return 3 === o.tag ? o.stateNode.containerInfo : null; - n = null; - } else o !== n && (n = null); - } - } - e = dt(e, r, n, t); - try { - B(pt, e); - } finally { - ft(e); - } - return null; - } - var Zt = { - 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, - gridArea: !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 - }, - en = ['Webkit', 'ms', 'Moz', 'O']; - function tn(e, t, n) { - return null == t || 'boolean' == typeof t || '' === t - ? '' - : n || - 'number' != typeof t || - 0 === t || - (Zt.hasOwnProperty(e) && Zt[e]) - ? ('' + t).trim() - : t + 'px'; - } - function nn(e, t) { - for (var n in ((e = e.style), t)) - if (t.hasOwnProperty(n)) { - var r = 0 === n.indexOf('--'), - o = tn(n, t[n], r); - 'float' === n && (n = 'cssFloat'), - r ? e.setProperty(n, o) : (e[n] = o); - } - } - Object.keys(Zt).forEach(function(e) { - en.forEach(function(t) { - (t = t + e.charAt(0).toUpperCase() + e.substring(1)), (Zt[t] = Zt[e]); - }); - }); - var rn = o( - { menuitem: !0 }, - { - area: !0, - base: !0, - br: !0, - col: !0, - embed: !0, - hr: !0, - img: !0, - input: !0, - keygen: !0, - link: !0, - meta: !0, - param: !0, - source: !0, - track: !0, - wbr: !0 - } - ); - function on(e, t) { - if (t) { - if ( - rn[e] && - (null != t.children || null != t.dangerouslySetInnerHTML) - ) - throw Error(a(137, e, '')); - if (null != t.dangerouslySetInnerHTML) { - if (null != t.children) throw Error(a(60)); - if ( - 'object' != typeof t.dangerouslySetInnerHTML || - !('__html' in t.dangerouslySetInnerHTML) - ) - throw Error(a(61)); - } - if (null != t.style && 'object' != typeof t.style) - throw Error(a(62, '')); - } - } - function an(e, t) { - if (-1 === e.indexOf('-')) return 'string' == typeof t.is; - switch (e) { - case 'annotation-xml': - case 'color-profile': - case 'font-face': - case 'font-face-src': - case 'font-face-uri': - case 'font-face-format': - case 'font-face-name': - case 'missing-glyph': - return !1; - default: - return !0; - } - } - var sn = ze; - function cn(e, t) { - var n = Je( - (e = 9 === e.nodeType || 11 === e.nodeType ? e : e.ownerDocument) - ); - t = S[t]; - for (var r = 0; r < t.length; r++) ht(t[r], e, n); - } - function un() {} - function ln(e) { - if ( - void 0 === - (e = e || ('undefined' != typeof document ? document : void 0)) - ) - return null; - try { - return e.activeElement || e.body; - } catch (t) { - return e.body; - } - } - function fn(e) { - for (; e && e.firstChild; ) e = e.firstChild; - return e; - } - function dn(e, t) { - var n, - r = fn(e); - for (e = 0; r; ) { - if (3 === r.nodeType) { - if (((n = e + r.textContent.length), e <= t && n >= t)) - return { node: r, offset: t - e }; - e = n; - } - e: { - for (; r; ) { - if (r.nextSibling) { - r = r.nextSibling; - break e; - } - r = r.parentNode; - } - r = void 0; - } - r = fn(r); - } - } - function pn() { - for (var e = window, t = ln(); t instanceof e.HTMLIFrameElement; ) { - try { - var n = 'string' == typeof t.contentWindow.location.href; - } catch (e) { - n = !1; - } - if (!n) break; - t = ln((e = t.contentWindow).document); - } - return t; - } - function hn(e) { - var t = e && e.nodeName && e.nodeName.toLowerCase(); - return ( - t && - (('input' === t && - ('text' === e.type || - 'search' === e.type || - 'tel' === e.type || - 'url' === e.type || - 'password' === e.type)) || - 'textarea' === t || - 'true' === e.contentEditable) - ); - } - var gn = null, - mn = null; - function bn(e, t) { - switch (e) { - case 'button': - case 'input': - case 'select': - case 'textarea': - return !!t.autoFocus; - } - return !1; - } - function yn(e, t) { - return ( - 'textarea' === e || - 'option' === e || - 'noscript' === e || - 'string' == typeof t.children || - 'number' == typeof t.children || - ('object' == typeof t.dangerouslySetInnerHTML && - null !== t.dangerouslySetInnerHTML && - null != t.dangerouslySetInnerHTML.__html) - ); - } - var vn = 'function' == typeof setTimeout ? setTimeout : void 0, - _n = 'function' == typeof clearTimeout ? clearTimeout : void 0; - function xn(e) { - for (; null != e; e = e.nextSibling) { - var t = e.nodeType; - if (1 === t || 3 === t) break; - } - return e; - } - function wn(e) { - e = e.previousSibling; - for (var t = 0; e; ) { - if (8 === e.nodeType) { - var n = e.data; - if ('$' === n || '$!' === n || '$?' === n) { - if (0 === t) return e; - t--; - } else '/$' === n && t++; - } - e = e.previousSibling; - } - return null; - } - var Mn = Math.random() - .toString(36) - .slice(2), - kn = '__reactInternalInstance$' + Mn, - Sn = '__reactEventHandlers$' + Mn, - An = '__reactContainere$' + Mn; - function On(e) { - var t = e[kn]; - if (t) return t; - for (var n = e.parentNode; n; ) { - if ((t = n[An] || n[kn])) { - if ( - ((n = t.alternate), - null !== t.child || (null !== n && null !== n.child)) - ) - for (e = wn(e); null !== e; ) { - if ((n = e[kn])) return n; - e = wn(e); - } - return t; - } - n = (e = n).parentNode; - } - return null; - } - function En(e) { - return !(e = e[kn] || e[An]) || - (5 !== e.tag && 6 !== e.tag && 13 !== e.tag && 3 !== e.tag) - ? null - : e; - } - function Tn(e) { - if (5 === e.tag || 6 === e.tag) return e.stateNode; - throw Error(a(33)); - } - function Cn(e) { - return e[Sn] || null; - } - function Ln(e) { - do { - e = e.return; - } while (e && 5 !== e.tag); - return e || null; - } - function Pn(e, t) { - var n = e.stateNode; - if (!n) return null; - var r = h(n); - if (!r) return null; - n = r[t]; - e: switch (t) { - case 'onClick': - case 'onClickCapture': - case 'onDoubleClick': - case 'onDoubleClickCapture': - case 'onMouseDown': - case 'onMouseDownCapture': - case 'onMouseMove': - case 'onMouseMoveCapture': - case 'onMouseUp': - case 'onMouseUpCapture': - case 'onMouseEnter': - (r = !r.disabled) || - (r = !( - 'button' === (e = e.type) || - 'input' === e || - 'select' === e || - 'textarea' === e - )), - (e = !r); - break e; - default: - e = !1; - } - if (e) return null; - if (n && 'function' != typeof n) throw Error(a(231, t, typeof n)); - return n; - } - function Dn(e, t, n) { - (t = Pn(e, n.dispatchConfig.phasedRegistrationNames[t])) && - ((n._dispatchListeners = rt(n._dispatchListeners, t)), - (n._dispatchInstances = rt(n._dispatchInstances, e))); - } - function zn(e) { - if (e && e.dispatchConfig.phasedRegistrationNames) { - for (var t = e._targetInst, n = []; t; ) n.push(t), (t = Ln(t)); - for (t = n.length; 0 < t--; ) Dn(n[t], 'captured', e); - for (t = 0; t < n.length; t++) Dn(n[t], 'bubbled', e); - } - } - function Nn(e, t, n) { - e && - n && - n.dispatchConfig.registrationName && - (t = Pn(e, n.dispatchConfig.registrationName)) && - ((n._dispatchListeners = rt(n._dispatchListeners, t)), - (n._dispatchInstances = rt(n._dispatchInstances, e))); - } - function jn(e) { - e && e.dispatchConfig.registrationName && Nn(e._targetInst, null, e); - } - function Rn(e) { - ot(e, zn); - } - var In = null, - Fn = null, - qn = null; - function Bn() { - if (qn) return qn; - var e, - t, - n = Fn, - r = n.length, - o = 'value' in In ? In.value : In.textContent, - i = o.length; - for (e = 0; e < r && n[e] === o[e]; e++); - var a = r - e; - for (t = 1; t <= a && n[r - t] === o[i - t]; t++); - return (qn = o.slice(e, 1 < t ? 1 - t : void 0)); - } - function Hn() { - return !0; - } - function Yn() { - return !1; - } - function Wn(e, t, n, r) { - for (var o in ((this.dispatchConfig = e), - (this._targetInst = t), - (this.nativeEvent = n), - (e = this.constructor.Interface))) - e.hasOwnProperty(o) && - ((t = e[o]) - ? (this[o] = t(n)) - : 'target' === o - ? (this.target = r) - : (this[o] = n[o])); - return ( - (this.isDefaultPrevented = (null != n.defaultPrevented - ? n.defaultPrevented - : !1 === n.returnValue) - ? Hn - : Yn), - (this.isPropagationStopped = Yn), - this - ); - } - function Vn(e, t, n, r) { - if (this.eventPool.length) { - var o = this.eventPool.pop(); - return this.call(o, e, t, n, r), o; - } - return new this(e, t, n, r); - } - function Un(e) { - if (!(e instanceof this)) throw Error(a(279)); - e.destructor(), 10 > this.eventPool.length && this.eventPool.push(e); - } - function Xn(e) { - (e.eventPool = []), (e.getPooled = Vn), (e.release = Un); - } - o(Wn.prototype, { - preventDefault: function() { - this.defaultPrevented = !0; - var e = this.nativeEvent; - e && - (e.preventDefault - ? e.preventDefault() - : 'unknown' != typeof e.returnValue && (e.returnValue = !1), - (this.isDefaultPrevented = Hn)); - }, - stopPropagation: function() { - var e = this.nativeEvent; - e && - (e.stopPropagation - ? e.stopPropagation() - : 'unknown' != typeof e.cancelBubble && (e.cancelBubble = !0), - (this.isPropagationStopped = Hn)); - }, - persist: function() { - this.isPersistent = Hn; - }, - isPersistent: Yn, - destructor: function() { - var e, - t = this.constructor.Interface; - for (e in t) this[e] = null; - (this.nativeEvent = this._targetInst = this.dispatchConfig = null), - (this.isPropagationStopped = this.isDefaultPrevented = Yn), - (this._dispatchInstances = this._dispatchListeners = null); - } - }), - (Wn.Interface = { - type: null, - target: null, - currentTarget: function() { - return null; - }, - eventPhase: null, - bubbles: null, - cancelable: null, - timeStamp: function(e) { - return e.timeStamp || Date.now(); - }, - defaultPrevented: null, - isTrusted: null - }), - (Wn.extend = function(e) { - function t() {} - function n() { - return r.apply(this, arguments); - } - var r = this; - t.prototype = r.prototype; - var i = new t(); - return ( - o(i, n.prototype), - (n.prototype = i), - (n.prototype.constructor = n), - (n.Interface = o({}, r.Interface, e)), - (n.extend = r.extend), - Xn(n), - n - ); - }), - Xn(Wn); - var Gn = Wn.extend({ data: null }), - Kn = Wn.extend({ data: null }), - $n = [9, 13, 27, 32], - Qn = O && 'CompositionEvent' in window, - Jn = null; - O && 'documentMode' in document && (Jn = document.documentMode); - var Zn = O && 'TextEvent' in window && !Jn, - er = O && (!Qn || (Jn && 8 < Jn && 11 >= Jn)), - tr = String.fromCharCode(32), - nr = { - beforeInput: { - phasedRegistrationNames: { - bubbled: 'onBeforeInput', - captured: 'onBeforeInputCapture' - }, - dependencies: ['compositionend', 'keypress', 'textInput', 'paste'] - }, - compositionEnd: { - phasedRegistrationNames: { - bubbled: 'onCompositionEnd', - captured: 'onCompositionEndCapture' - }, - dependencies: 'blur compositionend keydown keypress keyup mousedown'.split( - ' ' - ) - }, - compositionStart: { - phasedRegistrationNames: { - bubbled: 'onCompositionStart', - captured: 'onCompositionStartCapture' - }, - dependencies: 'blur compositionstart keydown keypress keyup mousedown'.split( - ' ' - ) - }, - compositionUpdate: { - phasedRegistrationNames: { - bubbled: 'onCompositionUpdate', - captured: 'onCompositionUpdateCapture' - }, - dependencies: 'blur compositionupdate keydown keypress keyup mousedown'.split( - ' ' - ) + ui.run(nt); + var di, + pi = { + previewCollection: !0, + saveStateToLocalStorage: { eventCollection: !0 } + }, + hi = function e(t) { + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, e); + var n = t.keenAnalysis, + r = t.keenTracking; + (di = n.instance || new p.a(n.config)), + r && (r.instance || new g.a(r.config)), + a.a.render( + o.a.createElement( + c.Provider, + { store: fi }, + o.a.createElement( + si, + (function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + 'function' == + typeof Object.getOwnPropertySymbols && + (r = r.concat( + Object.getOwnPropertySymbols(n).filter( + function(e) { + return Object.getOwnPropertyDescriptor( + n, + e + ).enumerable; + } + ) + )), + r.forEach(function(t) { + ci(e, t, n[t]); + }); + } + return e; + })({}, pi, t) + ) + ), + document.querySelector(t.container) + ); + }; + hi.version = rt.a; + var gi = hi; + n.d(t, 'keenGlobals', function() { + return mi; + }), + n.d(t, 'KeenExplorer', function() { + return hi; + }); + var mi = void 0; + 'undefined' != typeof webpackKeenGlobals && + (mi = webpackKeenGlobals), + (t.default = gi); + } + ]); + }), + (e.exports = r( + n(0), + n(881), + n(1), + n(883), + n(4), + n(41), + n(745), + n(746), + n(880), + n(840), + n(848), + n(7), + n(851), + n(882), + n(192), + n(193) + )); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = function(e, t, n, r) { + function o(t) { + var r = new i.default(t); + n.call(e, r); } - }, - rr = !1; - function or(e, t) { - switch (e) { - case 'keyup': - return -1 !== $n.indexOf(t.keyCode); - case 'keydown': - return 229 !== t.keyCode; - case 'keypress': - case 'mousedown': - case 'blur': - return !0; - default: - return !1; - } - } - function ir(e) { - return 'object' == typeof (e = e.detail) && 'data' in e ? e.data : null; - } - var ar = !1; - var sr = { - eventTypes: nr, - extractEvents: function(e, t, n, r) { - var o; - if (Qn) - e: { - switch (e) { - case 'compositionstart': - var i = nr.compositionStart; - break e; - case 'compositionend': - i = nr.compositionEnd; - break e; - case 'compositionupdate': - i = nr.compositionUpdate; - break e; + if (e.addEventListener) { + var a = + ((s = !1), + 'object' == typeof r + ? (s = r.capture || !1) + : 'boolean' == typeof r && (s = r), + e.addEventListener(t, o, r || !1), + { + v: { + remove: function() { + e.removeEventListener(t, o, s); + } } - i = void 0; - } - else - ar - ? or(e, n) && (i = nr.compositionEnd) - : 'keydown' === e && - 229 === n.keyCode && - (i = nr.compositionStart); + }); + if ('object' == typeof a) return a.v; + } else if (e.attachEvent) return ( - i - ? (er && - 'ko' !== n.locale && - (ar || i !== nr.compositionStart - ? i === nr.compositionEnd && ar && (o = Bn()) - : ((Fn = 'value' in (In = r) ? In.value : In.textContent), - (ar = !0))), - (i = Gn.getPooled(i, t, n, r)), - o ? (i.data = o) : null !== (o = ir(n)) && (i.data = o), - Rn(i), - (o = i)) - : (o = null), - (e = Zn - ? (function(e, t) { - switch (e) { - case 'compositionend': - return ir(t); - case 'keypress': - return 32 !== t.which ? null : ((rr = !0), tr); - case 'textInput': - return (e = t.data) === tr && rr ? null : e; - default: - return null; - } - })(e, n) - : (function(e, t) { - if (ar) - return 'compositionend' === e || (!Qn && or(e, t)) - ? ((e = Bn()), (qn = Fn = In = null), (ar = !1), e) - : null; - switch (e) { - case 'paste': - return null; - case 'keypress': - if ( - !(t.ctrlKey || t.altKey || t.metaKey) || - (t.ctrlKey && t.altKey) - ) { - if (t.char && 1 < t.char.length) return t.char; - if (t.which) return String.fromCharCode(t.which); - } - return null; - case 'compositionend': - return er && 'ko' !== t.locale ? null : t.data; - default: - return null; - } - })(e, n)) - ? (((t = Kn.getPooled(nr.beforeInput, t, n, r)).data = e), - Rn(t)) - : (t = null), - null === o ? t : null === t ? o : [o, t] + e.attachEvent('on' + t, o), + { + remove: function() { + e.detachEvent('on' + t, o); + } + } ); - } - }, - cr = { - color: !0, - date: !0, - datetime: !0, - 'datetime-local': !0, - email: !0, - month: !0, - number: !0, - password: !0, - range: !0, - search: !0, - tel: !0, - text: !0, - time: !0, - url: !0, - week: !0 - }; - function ur(e) { - var t = e && e.nodeName && e.nodeName.toLowerCase(); - return 'input' === t ? !!cr[e.type] : 'textarea' === t; - } - var lr = { - change: { - phasedRegistrationNames: { - bubbled: 'onChange', - captured: 'onChangeCapture' - }, - dependencies: 'blur change click focus input keydown keyup selectionchange'.split( - ' ' - ) - } - }; - function fr(e, t, n) { + var s; + }); + var r, + o = n(836), + i = (r = o) && r.__esModule ? r : { default: r }; + e.exports = t.default; + }, + function(e, t, n) { + 'use strict'; + t.__esModule = !0; + var r, + o = n(442), + i = (r = o) && r.__esModule ? r : { default: r }; + t.default = function(e, t, n) { return ( - ((e = Wn.getPooled(lr.change, e, t, n)).type = 'change'), - P(n), - Rn(e), + t in e + ? (0, i.default)(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), e ); + }; + }, + function(e, t, n) { + try { + var r = n(443); + } catch (e) { + r = n(443); } - var dr = null, - pr = null; - function hr(e) { - st(e); - } - function gr(e) { - if (xe(Tn(e))) return e; - } - function mr(e, t) { - if ('change' === e) return t; - } - var br = !1; - function yr() { - dr && (dr.detachEvent('onpropertychange', vr), (pr = dr = null)); - } - function vr(e) { - if ('value' === e.propertyName && gr(pr)) - if (((e = fr(pr, e, ct(e))), I)) st(e); - else { - I = !0; - try { - z(hr, e); - } finally { - (I = !1), q(); - } - } - } - function _r(e, t, n) { - 'focus' === e - ? (yr(), (pr = n), (dr = t).attachEvent('onpropertychange', vr)) - : 'blur' === e && yr(); - } - function xr(e) { - if ('selectionchange' === e || 'keyup' === e || 'keydown' === e) - return gr(pr); - } - function wr(e, t) { - if ('click' === e) return gr(t); - } - function Mr(e, t) { - if ('input' === e || 'change' === e) return gr(t); - } - O && - (br = - ut('input') && (!document.documentMode || 9 < document.documentMode)); - var kr = { - eventTypes: lr, - _isInputEventSupported: br, - extractEvents: function(e, t, n, r) { - var o = t ? Tn(t) : window, - i = o.nodeName && o.nodeName.toLowerCase(); - if ('select' === i || ('input' === i && 'file' === o.type)) - var a = mr; - else if (ur(o)) - if (br) a = Mr; - else { - a = xr; - var s = _r; - } - else - (i = o.nodeName) && - 'input' === i.toLowerCase() && - ('checkbox' === o.type || 'radio' === o.type) && - (a = wr); - if (a && (a = a(e, t))) return fr(a, n, r); - s && s(e, o, t), - 'blur' === e && - (e = o._wrapperState) && - e.controlled && - 'number' === o.type && - Oe(o, 'number', o.value); - } - }, - Sr = Wn.extend({ view: null, detail: null }), - Ar = { - Alt: 'altKey', - Control: 'ctrlKey', - Meta: 'metaKey', - Shift: 'shiftKey' - }; - function Or(e) { - var t = this.nativeEvent; - return t.getModifierState - ? t.getModifierState(e) - : !!(e = Ar[e]) && !!t[e]; - } - function Er() { - return Or; + var o = /\s+/, + i = Object.prototype.toString; + function a(e) { + if (!e || !e.nodeType) + throw new Error('A DOM element reference is required'); + (this.el = e), (this.list = e.classList); } - var Tr = 0, - Cr = 0, - Lr = !1, - Pr = !1, - Dr = Sr.extend({ - screenX: null, - screenY: null, - clientX: null, - clientY: null, - pageX: null, - pageY: null, - ctrlKey: null, - shiftKey: null, - altKey: null, - metaKey: null, - getModifierState: Er, - button: null, - buttons: null, - relatedTarget: function(e) { - return ( - e.relatedTarget || - (e.fromElement === e.srcElement ? e.toElement : e.fromElement) - ); - }, - movementX: function(e) { - if ('movementX' in e) return e.movementX; - var t = Tr; - return ( - (Tr = e.screenX), - Lr ? ('mousemove' === e.type ? e.screenX - t : 0) : ((Lr = !0), 0) - ); - }, - movementY: function(e) { - if ('movementY' in e) return e.movementY; - var t = Cr; - return ( - (Cr = e.screenY), - Pr ? ('mousemove' === e.type ? e.screenY - t : 0) : ((Pr = !0), 0) - ); - } + (e.exports = function(e) { + return new a(e); + }), + (a.prototype.add = function(e) { + if (this.list) return this.list.add(e), this; + var t = this.array(); + return ~r(t, e) || t.push(e), (this.el.className = t.join(' ')), this; }), - zr = Dr.extend({ - pointerId: null, - width: null, - height: null, - pressure: null, - tangentialPressure: null, - tiltX: null, - tiltY: null, - twist: null, - pointerType: null, - isPrimary: null + (a.prototype.remove = function(e) { + if ('[object RegExp]' == i.call(e)) return this.removeMatching(e); + if (this.list) return this.list.remove(e), this; + var t = this.array(), + n = r(t, e); + return ~n && t.splice(n, 1), (this.el.className = t.join(' ')), this; }), - Nr = { - mouseEnter: { - registrationName: 'onMouseEnter', - dependencies: ['mouseout', 'mouseover'] - }, - mouseLeave: { - registrationName: 'onMouseLeave', - dependencies: ['mouseout', 'mouseover'] - }, - pointerEnter: { - registrationName: 'onPointerEnter', - dependencies: ['pointerout', 'pointerover'] - }, - pointerLeave: { - registrationName: 'onPointerLeave', - dependencies: ['pointerout', 'pointerover'] - } - }, - jr = { - eventTypes: Nr, - extractEvents: function(e, t, n, r, o) { - var i = 'mouseover' === e || 'pointerover' === e, - a = 'mouseout' === e || 'pointerout' === e; - if ( - (i && 0 == (32 & o) && (n.relatedTarget || n.fromElement)) || - (!a && !i) - ) - return null; - ((i = - r.window === r - ? r - : (i = r.ownerDocument) - ? i.defaultView || i.parentWindow - : window), - a) - ? ((a = t), - null !== - (t = (t = n.relatedTarget || n.toElement) ? On(t) : null) && - (t !== Ze(t) || (5 !== t.tag && 6 !== t.tag)) && - (t = null)) - : (a = null); - if (a === t) return null; - if ('mouseout' === e || 'mouseover' === e) - var s = Dr, - c = Nr.mouseLeave, - u = Nr.mouseEnter, - l = 'mouse'; - else - ('pointerout' !== e && 'pointerover' !== e) || - ((s = zr), - (c = Nr.pointerLeave), - (u = Nr.pointerEnter), - (l = 'pointer')); - if ( - ((e = null == a ? i : Tn(a)), - (i = null == t ? i : Tn(t)), - ((c = s.getPooled(c, a, n, r)).type = l + 'leave'), - (c.target = e), - (c.relatedTarget = i), - ((n = s.getPooled(u, t, n, r)).type = l + 'enter'), - (n.target = i), - (n.relatedTarget = e), - (l = t), - (r = a) && l) - ) - e: { - for (u = l, a = 0, e = s = r; e; e = Ln(e)) a++; - for (e = 0, t = u; t; t = Ln(t)) e++; - for (; 0 < a - e; ) (s = Ln(s)), a--; - for (; 0 < e - a; ) (u = Ln(u)), e--; - for (; a--; ) { - if (s === u || s === u.alternate) break e; - (s = Ln(s)), (u = Ln(u)); - } - s = null; - } - else s = null; - for ( - u = s, s = []; - r && r !== u && (null === (a = r.alternate) || a !== u); - - ) - s.push(r), (r = Ln(r)); - for ( - r = []; - l && l !== u && (null === (a = l.alternate) || a !== u); - - ) - r.push(l), (l = Ln(l)); - for (l = 0; l < s.length; l++) Nn(s[l], 'bubbled', c); - for (l = r.length; 0 < l--; ) Nn(r[l], 'captured', n); - return 0 == (64 & o) ? [c] : [c, n]; - } - }; - var Rr = - 'function' == typeof Object.is - ? Object.is - : function(e, t) { - return ( - (e === t && (0 !== e || 1 / e == 1 / t)) || (e != e && t != t) - ); - }, - Ir = Object.prototype.hasOwnProperty; - function Fr(e, t) { - if (Rr(e, t)) return !0; + (a.prototype.removeMatching = function(e) { + for (var t = this.array(), n = 0; n < t.length; n++) + e.test(t[n]) && this.remove(t[n]); + return this; + }), + (a.prototype.toggle = function(e, t) { + return this.list + ? (void 0 !== t + ? t !== this.list.toggle(e, t) && this.list.toggle(e) + : this.list.toggle(e), + this) + : (void 0 !== t + ? t + ? this.add(e) + : this.remove(e) + : this.has(e) + ? this.remove(e) + : this.add(e), + this); + }), + (a.prototype.array = function() { + var e = (this.el.getAttribute('class') || '') + .replace(/^\s+|\s+$/g, '') + .split(o); + return '' === e[0] && e.shift(), e; + }), + (a.prototype.has = a.prototype.contains = function(e) { + return this.list ? this.list.contains(e) : !!~r(this.array(), e); + }); + }, + function(e, t, n) { + 'use strict'; + (t.__esModule = !0), + (t.default = function(e, t) { + var n = {}; + for (var r in e) + t.indexOf(r) >= 0 || + (Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r])); + return n; + }); + }, + function(e, t, n) { + var r = n(446), + o = n(852); + (e.exports = o), + (e.exports.default = o), + (e.exports.Quill = r), + (e.exports.Mixin = n(448)), + (e.exports.Toolbar = n(863)); + }, + function(e, t, n) { + var r = n(233), + o = n(103), + i = n(122), + a = n(34), + s = n(58), + c = n(101), + u = n(121), + l = n(123), + f = '[object Map]', + d = '[object Set]', + p = Object.prototype.hasOwnProperty; + e.exports = function(e) { + if (null == e) return !0; if ( - 'object' != typeof e || - null === e || - 'object' != typeof t || - null === t + s(e) && + (a(e) || + 'string' == typeof e || + 'function' == typeof e.splice || + c(e) || + l(e) || + i(e)) ) - return !1; - var n = Object.keys(e), - r = Object.keys(t); - if (n.length !== r.length) return !1; - for (r = 0; r < n.length; r++) - if (!Ir.call(t, n[r]) || !Rr(e[n[r]], t[n[r]])) return !1; + return !e.length; + var t = o(e); + if (t == f || t == d) return !e.size; + if (u(e)) return !r(e).length; + for (var n in e) if (p.call(e, n)) return !1; return !0; - } - var qr = O && 'documentMode' in document && 11 >= document.documentMode, - Br = { - select: { - phasedRegistrationNames: { - bubbled: 'onSelect', - captured: 'onSelectCapture' - }, - dependencies: 'blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange'.split( - ' ' - ) - } + }; + }, + function(e, t, n) { + var r = n(868); + e.exports = { + locale: r.locale, + long: r.long, + short: r.short, + narrow: r.narrow, + 'short-time': n(873), + 'short-convenient': n(874), + 'long-time': n(875), + 'long-convenient': n(876), + tiny: n(877), + quantify: r.quantify + }; + }, + function(e, t, n) { + 'use strict'; + var r = function(e) { + var t = {}; + return function(n) { + return void 0 === t[n] && (t[n] = e(n)), t[n]; + }; }, - Hr = null, - Yr = null, - Wr = null, - Vr = !1; - function Ur(e, t) { - var n = - t.window === t ? t.document : 9 === t.nodeType ? t : t.ownerDocument; - return Vr || null == Hr || Hr !== ln(n) - ? null - : ('selectionStart' in (n = Hr) && hn(n) - ? (n = { start: n.selectionStart, end: n.selectionEnd }) - : (n = { - anchorNode: (n = ( - (n.ownerDocument && n.ownerDocument.defaultView) || - window - ).getSelection()).anchorNode, - anchorOffset: n.anchorOffset, - focusNode: n.focusNode, - focusOffset: n.focusOffset - }), - Wr && Fr(Wr, n) - ? null - : ((Wr = n), - ((e = Wn.getPooled(Br.select, Yr, e, t)).type = 'select'), - (e.target = Hr), - Rn(e), - e)); - } - var Xr = { - eventTypes: Br, - extractEvents: function(e, t, n, r, o, i) { - if ( - !(i = !(o = - i || - (r.window === r - ? r.document - : 9 === r.nodeType - ? r - : r.ownerDocument))) - ) { - e: { - (o = Je(o)), (i = S.onSelect); - for (var a = 0; a < i.length; a++) - if (!o.has(i[a])) { - o = !1; - break e; - } - o = !0; - } - i = !o; - } - if (i) return null; - switch (((o = t ? Tn(t) : window), e)) { - case 'focus': - (ur(o) || 'true' === o.contentEditable) && - ((Hr = o), (Yr = t), (Wr = null)); - break; - case 'blur': - Wr = Yr = Hr = null; - break; - case 'mousedown': - Vr = !0; + o = { + animationIterationCount: 1, + borderImageOutset: 1, + borderImageSlice: 1, + borderImageWidth: 1, + boxFlex: 1, + boxFlexGroup: 1, + boxOrdinalGroup: 1, + columnCount: 1, + columns: 1, + flex: 1, + flexGrow: 1, + flexPositive: 1, + flexShrink: 1, + flexNegative: 1, + flexOrder: 1, + gridRow: 1, + gridRowEnd: 1, + gridRowSpan: 1, + gridRowStart: 1, + gridColumn: 1, + gridColumnEnd: 1, + gridColumnSpan: 1, + gridColumnStart: 1, + fontWeight: 1, + lineHeight: 1, + opacity: 1, + order: 1, + orphans: 1, + tabSize: 1, + widows: 1, + zIndex: 1, + zoom: 1, + WebkitLineClamp: 1, + fillOpacity: 1, + floodOpacity: 1, + stopOpacity: 1, + strokeDasharray: 1, + strokeDashoffset: 1, + strokeMiterlimit: 1, + strokeOpacity: 1, + strokeWidth: 1 + }; + var i = function(e) { + for (var t, n = e.length, r = n ^ n, o = 0; n >= 4; ) + (t = + 1540483477 * + (65535 & + (t = + (255 & e.charCodeAt(o)) | + ((255 & e.charCodeAt(++o)) << 8) | + ((255 & e.charCodeAt(++o)) << 16) | + ((255 & e.charCodeAt(++o)) << 24))) + + (((1540483477 * (t >>> 16)) & 65535) << 16)), + (r = + (1540483477 * (65535 & r) + + (((1540483477 * (r >>> 16)) & 65535) << 16)) ^ + (t = + 1540483477 * (65535 & (t ^= t >>> 24)) + + (((1540483477 * (t >>> 16)) & 65535) << 16))), + (n -= 4), + ++o; + switch (n) { + case 3: + r ^= (255 & e.charCodeAt(o + 2)) << 16; + case 2: + r ^= (255 & e.charCodeAt(o + 1)) << 8; + case 1: + r = + 1540483477 * (65535 & (r ^= 255 & e.charCodeAt(o))) + + (((1540483477 * (r >>> 16)) & 65535) << 16); + } + return ( + (r = + 1540483477 * (65535 & (r ^= r >>> 13)) + + (((1540483477 * (r >>> 16)) & 65535) << 16)), + ((r ^= r >>> 15) >>> 0).toString(36) + ); + }; + var a = function(e) { + function t(e, t, r) { + var o = t.trim().split(h); + t = o; + var i = o.length, + a = e.length; + switch (a) { + case 0: + case 1: + var s = 0; + for (e = 0 === a ? '' : e[0] + ' '; s < i; ++s) + t[s] = n(e, t[s], r).trim(); break; - case 'contextmenu': - case 'mouseup': - case 'dragend': - return (Vr = !1), Ur(n, r); - case 'selectionchange': - if (qr) break; - case 'keydown': - case 'keyup': - return Ur(n, r); + default: + var c = (s = 0); + for (t = []; s < i; ++s) + for (var u = 0; u < a; ++u) + t[c++] = n(e[u] + ' ', o[s], r).trim(); } - return null; - } - }, - Gr = Wn.extend({ - animationName: null, - elapsedTime: null, - pseudoElement: null - }), - Kr = Wn.extend({ - clipboardData: function(e) { - return 'clipboardData' in e - ? e.clipboardData - : window.clipboardData; + return t; } - }), - $r = Sr.extend({ relatedTarget: null }); - function Qr(e) { - var t = e.keyCode; - return ( - 'charCode' in e - ? 0 === (e = e.charCode) && 13 === t && (e = 13) - : (e = t), - 10 === e && (e = 13), - 32 <= e || 13 === e ? e : 0 - ); - } - var Jr = { - Esc: 'Escape', - Spacebar: ' ', - Left: 'ArrowLeft', - Up: 'ArrowUp', - Right: 'ArrowRight', - Down: 'ArrowDown', - Del: 'Delete', - Win: 'OS', - Menu: 'ContextMenu', - Apps: 'ContextMenu', - Scroll: 'ScrollLock', - MozPrintableKey: 'Unidentified' - }, - Zr = { - 8: 'Backspace', - 9: 'Tab', - 12: 'Clear', - 13: 'Enter', - 16: 'Shift', - 17: 'Control', - 18: 'Alt', - 19: 'Pause', - 20: 'CapsLock', - 27: 'Escape', - 32: ' ', - 33: 'PageUp', - 34: 'PageDown', - 35: 'End', - 36: 'Home', - 37: 'ArrowLeft', - 38: 'ArrowUp', - 39: 'ArrowRight', - 40: 'ArrowDown', - 45: 'Insert', - 46: 'Delete', - 112: 'F1', - 113: 'F2', - 114: 'F3', - 115: 'F4', - 116: 'F5', - 117: 'F6', - 118: 'F7', - 119: 'F8', - 120: 'F9', - 121: 'F10', - 122: 'F11', - 123: 'F12', - 144: 'NumLock', - 145: 'ScrollLock', - 224: 'Meta' - }, - eo = Sr.extend({ - key: function(e) { - if (e.key) { - var t = Jr[e.key] || e.key; - if ('Unidentified' !== t) return t; - } - return 'keypress' === e.type - ? 13 === (e = Qr(e)) - ? 'Enter' - : String.fromCharCode(e) - : 'keydown' === e.type || 'keyup' === e.type - ? Zr[e.keyCode] || 'Unidentified' - : ''; - }, - location: null, - ctrlKey: null, - shiftKey: null, - altKey: null, - metaKey: null, - repeat: null, - locale: null, - getModifierState: Er, - charCode: function(e) { - return 'keypress' === e.type ? Qr(e) : 0; - }, - keyCode: function(e) { - return 'keydown' === e.type || 'keyup' === e.type ? e.keyCode : 0; - }, - which: function(e) { - return 'keypress' === e.type - ? Qr(e) - : 'keydown' === e.type || 'keyup' === e.type - ? e.keyCode - : 0; + function n(e, t, n) { + var r = t.charCodeAt(0); + switch ((33 > r && (r = (t = t.trim()).charCodeAt(0)), r)) { + case 38: + return t.replace(g, '$1' + e.trim()); + case 58: + return e.trim() + t.replace(g, '$1' + e.trim()); + default: + if (0 < 1 * n && 0 < t.indexOf('\f')) + return t.replace( + g, + (58 === e.charCodeAt(0) ? '' : '$1') + e.trim() + ); + } + return e + t; } - }), - to = Dr.extend({ dataTransfer: null }), - no = Sr.extend({ - touches: null, - targetTouches: null, - changedTouches: null, - altKey: null, - metaKey: null, - ctrlKey: null, - shiftKey: null, - getModifierState: Er - }), - ro = Wn.extend({ - propertyName: null, - elapsedTime: null, - pseudoElement: null - }), - oo = Dr.extend({ - deltaX: function(e) { - return 'deltaX' in e - ? e.deltaX - : 'wheelDeltaX' in e - ? -e.wheelDeltaX - : 0; - }, - deltaY: function(e) { - return 'deltaY' in e - ? e.deltaY - : 'wheelDeltaY' in e - ? -e.wheelDeltaY - : 'wheelDelta' in e - ? -e.wheelDelta - : 0; - }, - deltaZ: null, - deltaMode: null - }), - io = { - eventTypes: Rt, - extractEvents: function(e, t, n, r) { - var o = It.get(e); - if (!o) return null; - switch (e) { - case 'keypress': - if (0 === Qr(n)) return null; - case 'keydown': - case 'keyup': - e = eo; - break; - case 'blur': - case 'focus': - e = $r; - break; - case 'click': - if (2 === n.button) return null; - case 'auxclick': - case 'dblclick': - case 'mousedown': - case 'mousemove': - case 'mouseup': - case 'mouseout': - case 'mouseover': - case 'contextmenu': - e = Dr; - break; - case 'drag': - case 'dragend': - case 'dragenter': - case 'dragexit': - case 'dragleave': - case 'dragover': - case 'dragstart': - case 'drop': - e = to; - break; - case 'touchcancel': - case 'touchend': - case 'touchmove': - case 'touchstart': - e = no; - break; - case Ue: - case Xe: - case Ge: - e = Gr; - break; - case Ke: - e = ro; - break; - case 'scroll': - e = Sr; - break; - case 'wheel': - e = oo; + function r(e, t, n, i) { + var a = e + ';', + s = 2 * t + 3 * n + 4 * i; + if (944 === s) { + e = a.indexOf(':', 9) + 1; + var c = a.substring(e, a.length - 1).trim(); + return ( + (c = a.substring(0, e).trim() + c + ';'), + 1 === T || (2 === T && o(c, 1)) ? '-webkit-' + c + c : c + ); + } + if (0 === T || (2 === T && !o(a, 1))) return a; + switch (s) { + case 1015: + return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a; + case 951: + return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a; + case 963: + return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a; + case 1009: + if (100 !== a.charCodeAt(4)) break; + case 969: + case 942: + return '-webkit-' + a + a; + case 978: + return '-webkit-' + a + '-moz-' + a + a; + case 1019: + case 983: + return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a; + case 883: + if (45 === a.charCodeAt(8)) return '-webkit-' + a + a; + if (0 < a.indexOf('image-set(', 11)) + return a.replace(S, '$1-webkit-$2') + a; break; - case 'copy': - case 'cut': - case 'paste': - e = Kr; + case 932: + if (45 === a.charCodeAt(4)) + switch (a.charCodeAt(5)) { + case 103: + return ( + '-webkit-box-' + + a.replace('-grow', '') + + '-webkit-' + + a + + '-ms-' + + a.replace('grow', 'positive') + + a + ); + case 115: + return ( + '-webkit-' + + a + + '-ms-' + + a.replace('shrink', 'negative') + + a + ); + case 98: + return ( + '-webkit-' + + a + + '-ms-' + + a.replace('basis', 'preferred-size') + + a + ); + } + return '-webkit-' + a + '-ms-' + a + a; + case 964: + return '-webkit-' + a + '-ms-flex-' + a + a; + case 1023: + if (99 !== a.charCodeAt(8)) break; + return ( + '-webkit-box-pack' + + (c = a + .substring(a.indexOf(':', 15)) + .replace('flex-', '') + .replace('space-between', 'justify')) + + '-webkit-' + + a + + '-ms-flex-pack' + + c + + a + ); + case 1005: + return d.test(a) + ? a.replace(f, ':-webkit-') + a.replace(f, ':-moz-') + a + : a; + case 1e3: + switch ( + ((t = (c = a.substring(13).trim()).indexOf('-') + 1), + c.charCodeAt(0) + c.charCodeAt(t)) + ) { + case 226: + c = a.replace(v, 'tb'); + break; + case 232: + c = a.replace(v, 'tb-rl'); + break; + case 220: + c = a.replace(v, 'lr'); + break; + default: + return a; + } + return '-webkit-' + a + '-ms-' + c + a; + case 1017: + if (-1 === a.indexOf('sticky', 9)) break; + case 975: + switch ( + ((t = (a = e).length - 10), + (s = + (c = (33 === a.charCodeAt(t) ? a.substring(0, t) : a) + .substring(e.indexOf(':', 7) + 1) + .trim()).charCodeAt(0) + + (0 | c.charCodeAt(7)))) + ) { + case 203: + if (111 > c.charCodeAt(8)) break; + case 115: + a = a.replace(c, '-webkit-' + c) + ';' + a; + break; + case 207: + case 102: + a = + a.replace( + c, + '-webkit-' + (102 < s ? 'inline-' : '') + 'box' + ) + + ';' + + a.replace(c, '-webkit-' + c) + + ';' + + a.replace(c, '-ms-' + c + 'box') + + ';' + + a; + } + return a + ';'; + case 938: + if (45 === a.charCodeAt(5)) + switch (a.charCodeAt(6)) { + case 105: + return ( + (c = a.replace('-items', '')), + '-webkit-' + + a + + '-webkit-box-' + + c + + '-ms-flex-' + + c + + a + ); + case 115: + return ( + '-webkit-' + a + '-ms-flex-item-' + a.replace(x, '') + a + ); + default: + return ( + '-webkit-' + + a + + '-ms-flex-line-pack' + + a.replace('align-content', '').replace(x, '') + + a + ); + } break; - case 'gotpointercapture': - case 'lostpointercapture': - case 'pointercancel': - case 'pointerdown': - case 'pointermove': - case 'pointerout': - case 'pointerover': - case 'pointerup': - e = zr; + case 973: + case 989: + if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break; + case 931: + case 953: + if (!0 === k.test(e)) + return 115 === + (c = e.substring(e.indexOf(':') + 1)).charCodeAt(0) + ? r( + e.replace('stretch', 'fill-available'), + t, + n, + i + ).replace(':fill-available', ':stretch') + : a.replace(c, '-webkit-' + c) + + a.replace(c, '-moz-' + c.replace('fill-', '')) + + a; break; - default: - e = Wn; + case 962: + if ( + ((a = + '-webkit-' + + a + + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + + a), + 211 === n + i && + 105 === a.charCodeAt(13) && + 0 < a.indexOf('transform', 10)) + ) + return ( + a + .substring(0, a.indexOf(';', 27) + 1) + .replace(p, '$1-webkit-$2') + a + ); } - return Rn((t = e.getPooled(o, t, n, r))), t; + return a; } - }; - if (y) throw Error(a(101)); - (y = Array.prototype.slice.call( - 'ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin'.split( - ' ' - ) - )), - _(), - (h = Cn), - (g = En), - (m = Tn), - A({ - SimpleEventPlugin: io, - EnterLeaveEventPlugin: jr, - ChangeEventPlugin: kr, - SelectEventPlugin: Xr, - BeforeInputEventPlugin: sr - }); - var ao = [], - so = -1; - function co(e) { - 0 > so || ((e.current = ao[so]), (ao[so] = null), so--); - } - function uo(e, t) { - so++, (ao[so] = e.current), (e.current = t); - } - var lo = {}, - fo = { current: lo }, - po = { current: !1 }, - ho = lo; - function go(e, t) { - var n = e.type.contextTypes; - if (!n) return lo; - var r = e.stateNode; - if (r && r.__reactInternalMemoizedUnmaskedChildContext === t) - return r.__reactInternalMemoizedMaskedChildContext; - var o, - i = {}; - for (o in n) i[o] = t[o]; - return ( - r && - (((e = - e.stateNode).__reactInternalMemoizedUnmaskedChildContext = t), - (e.__reactInternalMemoizedMaskedChildContext = i)), - i - ); - } - function mo(e) { - return null != (e = e.childContextTypes); - } - function bo() { - co(po), co(fo); - } - function yo(e, t, n) { - if (fo.current !== lo) throw Error(a(168)); - uo(fo, t), uo(po, n); - } - function vo(e, t, n) { - var r = e.stateNode; - if (((e = t.childContextTypes), 'function' != typeof r.getChildContext)) - return n; - for (var i in (r = r.getChildContext())) - if (!(i in e)) throw Error(a(108, me(t) || 'Unknown', i)); - return o({}, n, {}, r); - } - function _o(e) { - return ( - (e = - ((e = e.stateNode) && - e.__reactInternalMemoizedMergedChildContext) || - lo), - (ho = fo.current), - uo(fo, e), - uo(po, po.current), - !0 - ); - } - function xo(e, t, n) { - var r = e.stateNode; - if (!r) throw Error(a(169)); - n - ? ((e = vo(e, t, ho)), - (r.__reactInternalMemoizedMergedChildContext = e), - co(po), - co(fo), - uo(fo, e)) - : co(po), - uo(po, n); - } - var wo = i.unstable_runWithPriority, - Mo = i.unstable_scheduleCallback, - ko = i.unstable_cancelCallback, - So = i.unstable_requestPaint, - Ao = i.unstable_now, - Oo = i.unstable_getCurrentPriorityLevel, - Eo = i.unstable_ImmediatePriority, - To = i.unstable_UserBlockingPriority, - Co = i.unstable_NormalPriority, - Lo = i.unstable_LowPriority, - Po = i.unstable_IdlePriority, - Do = {}, - zo = i.unstable_shouldYield, - No = void 0 !== So ? So : function() {}, - jo = null, - Ro = null, - Io = !1, - Fo = Ao(), - qo = - 1e4 > Fo - ? Ao - : function() { - return Ao() - Fo; - }; - function Bo() { - switch (Oo()) { - case Eo: - return 99; - case To: - return 98; - case Co: - return 97; - case Lo: - return 96; - case Po: - return 95; - default: - throw Error(a(332)); - } - } - function Ho(e) { - switch (e) { - case 99: - return Eo; - case 98: - return To; - case 97: - return Co; - case 96: - return Lo; - case 95: - return Po; - default: - throw Error(a(332)); - } - } - function Yo(e, t) { - return (e = Ho(e)), wo(e, t); - } - function Wo(e, t, n) { - return (e = Ho(e)), Mo(e, t, n); - } - function Vo(e) { - return null === jo ? ((jo = [e]), (Ro = Mo(Eo, Xo))) : jo.push(e), Do; - } - function Uo() { - if (null !== Ro) { - var e = Ro; - (Ro = null), ko(e); - } - Xo(); - } - function Xo() { - if (!Io && null !== jo) { - Io = !0; - var e = 0; - try { - var t = jo; - Yo(99, function() { - for (; e < t.length; e++) { - var n = t[e]; - do { - n = n(!0); - } while (null !== n); + function o(e, t) { + var n = e.indexOf(1 === t ? ':' : '{'), + r = e.substring(0, 3 !== t ? n : 10); + return ( + (n = e.substring(n + 1, e.length - 1)), + D(2 !== t ? r : r.replace(M, '$1'), n, t) + ); + } + function i(e, t) { + var n = r(t, t.charCodeAt(0), t.charCodeAt(1), t.charCodeAt(2)); + return n !== t + ';' + ? n.replace(w, ' or ($1)').substring(4) + : '(' + t + ')'; + } + function a(e, t, n, r, o, i, a, s, u, l) { + for (var f, d = 0, p = t; d < P; ++d) + switch ((f = L[d].call(c, e, p, n, r, o, i, a, s, u, l))) { + case void 0: + case !1: + case !0: + case null: + break; + default: + p = f; } - }), - (jo = null); - } catch (t) { - throw (null !== jo && (jo = jo.slice(e + 1)), Mo(Eo, Uo), t); - } finally { - Io = !1; + if (p !== t) return p; } - } - } - function Go(e, t, n) { - return ( - 1073741821 - (1 + (((1073741821 - e + t / 10) / (n /= 10)) | 0)) * n - ); - } - function Ko(e, t) { - if (e && e.defaultProps) - for (var n in ((t = o({}, t)), (e = e.defaultProps))) - void 0 === t[n] && (t[n] = e[n]); - return t; - } - var $o = { current: null }, - Qo = null, - Jo = null, - Zo = null; - function ei() { - Zo = Jo = Qo = null; - } - function ti(e) { - var t = $o.current; - co($o), (e.type._context._currentValue = t); - } - function ni(e, t) { - for (; null !== e; ) { - var n = e.alternate; - if (e.childExpirationTime < t) - (e.childExpirationTime = t), - null !== n && - n.childExpirationTime < t && - (n.childExpirationTime = t); - else { - if (!(null !== n && n.childExpirationTime < t)) break; - n.childExpirationTime = t; + function s(e) { + return ( + void 0 !== (e = e.prefix) && + ((D = null), + e + ? 'function' != typeof e + ? (T = 1) + : ((T = 2), (D = e)) + : (T = 0)), + s + ); } - e = e.return; - } - } - function ri(e, t) { - (Qo = e), - (Zo = Jo = null), - null !== (e = e.dependencies) && - null !== e.firstContext && - (e.expirationTime >= t && (Ca = !0), (e.firstContext = null)); - } - function oi(e, t) { - if (Zo !== e && !1 !== t && 0 !== t) - if ( - (('number' == typeof t && 1073741823 !== t) || - ((Zo = e), (t = 1073741823)), - (t = { context: e, observedBits: t, next: null }), - null === Jo) - ) { - if (null === Qo) throw Error(a(308)); - (Jo = t), - (Qo.dependencies = { - expirationTime: 0, - firstContext: t, - responders: null - }); - } else Jo = Jo.next = t; - return e._currentValue; - } - var ii = !1; - function ai(e) { - e.updateQueue = { - baseState: e.memoizedState, - baseQueue: null, - shared: { pending: null }, - effects: null - }; - } - function si(e, t) { - (e = e.updateQueue), - t.updateQueue === e && - (t.updateQueue = { - baseState: e.baseState, - baseQueue: e.baseQueue, - shared: e.shared, - effects: e.effects - }); - } - function ci(e, t) { - return ((e = { - expirationTime: e, - suspenseConfig: t, - tag: 0, - payload: null, - callback: null, - next: null - }).next = e); - } - function ui(e, t) { - if (null !== (e = e.updateQueue)) { - var n = (e = e.shared).pending; - null === n ? (t.next = t) : ((t.next = n.next), (n.next = t)), - (e.pending = t); - } - } - function li(e, t) { - var n = e.alternate; - null !== n && si(n, e), - null === (n = (e = e.updateQueue).baseQueue) - ? ((e.baseQueue = t.next = t), (t.next = t)) - : ((t.next = n.next), (n.next = t)); - } - function fi(e, t, n, r) { - var i = e.updateQueue; - ii = !1; - var a = i.baseQueue, - s = i.shared.pending; - if (null !== s) { - if (null !== a) { - var c = a.next; - (a.next = s.next), (s.next = c); - } - (a = s), - (i.shared.pending = null), - null !== (c = e.alternate) && - null !== (c = c.updateQueue) && (c.baseQueue = s); - } - if (null !== a) { - c = a.next; - var u = i.baseState, - l = 0, - f = null, - d = null, - p = null; - if (null !== c) - for (var h = c; ; ) { - if ((s = h.expirationTime) < r) { - var g = { - expirationTime: h.expirationTime, - suspenseConfig: h.suspenseConfig, - tag: h.tag, - payload: h.payload, - callback: h.callback, - next: null - }; - null === p ? ((d = p = g), (f = u)) : (p = p.next = g), - s > l && (l = s); - } else { - null !== p && - (p = p.next = { - expirationTime: 1073741823, - suspenseConfig: h.suspenseConfig, - tag: h.tag, - payload: h.payload, - callback: h.callback, - next: null - }), - ic(s, h.suspenseConfig); - e: { - var m = e, - b = h; - switch (((s = t), (g = n), b.tag)) { - case 1: - if ('function' == typeof (m = b.payload)) { - u = m.call(g, u, s); - break e; + function c(e, n) { + var s = e; + if ((33 > s.charCodeAt(0) && (s = s.trim()), (s = [s]), 0 < P)) { + var c = a(-1, n, s, s, E, O, 0, 0, 0, 0); + void 0 !== c && 'string' == typeof c && (n = c); + } + var f = (function e(n, s, c, f, d) { + for ( + var p, + h, + g, + v, + w, + x = 0, + M = 0, + k = 0, + S = 0, + L = 0, + D = 0, + z = (g = p = 0), + N = 0, + R = 0, + I = 0, + F = 0, + q = c.length, + B = q - 1, + H = '', + Y = '', + W = '', + V = ''; + N < q; + + ) { + if ( + ((h = c.charCodeAt(N)), + N === B && + 0 !== M + S + k + x && + (0 !== M && (h = 47 === M ? 10 : 47), + (S = k = x = 0), + q++, + B++), + 0 === M + S + k + x) + ) { + if ( + N === B && + (0 < R && (H = H.replace(l, '')), 0 < H.trim().length) + ) { + switch (h) { + case 32: + case 9: + case 59: + case 13: + case 10: + break; + default: + H += c.charAt(N); + } + h = 59; + } + switch (h) { + case 123: + for ( + p = (H = H.trim()).charCodeAt(0), g = 1, F = ++N; + N < q; + + ) { + switch ((h = c.charCodeAt(N))) { + case 123: + g++; + break; + case 125: + g--; + break; + case 47: + switch ((h = c.charCodeAt(N + 1))) { + case 42: + case 47: + e: { + for (z = N + 1; z < B; ++z) + switch (c.charCodeAt(z)) { + case 47: + if ( + 42 === h && + 42 === c.charCodeAt(z - 1) && + N + 2 !== z + ) { + N = z + 1; + break e; + } + break; + case 10: + if (47 === h) { + N = z + 1; + break e; + } + } + N = z; + } + } + break; + case 91: + h++; + case 40: + h++; + case 34: + case 39: + for (; N++ < B && c.charCodeAt(N) !== h; ); + } + if (0 === g) break; + N++; } - u = m; - break e; - case 3: - m.effectTag = (-4097 & m.effectTag) | 64; - case 0: + switch ( + ((g = c.substring(F, N)), + 0 === p && + (p = (H = H.replace(u, '').trim()).charCodeAt(0)), + p) + ) { + case 64: + switch ( + (0 < R && (H = H.replace(l, '')), + (h = H.charCodeAt(1))) + ) { + case 100: + case 109: + case 115: + case 45: + R = s; + break; + default: + R = C; + } + if ( + ((F = (g = e(s, R, g, h, d + 1)).length), + 0 < P && + ((w = a( + 3, + g, + (R = t(C, H, I)), + s, + E, + O, + F, + h, + d, + f + )), + (H = R.join('')), + void 0 !== w && + 0 === (F = (g = w.trim()).length) && + ((h = 0), (g = ''))), + 0 < F) + ) + switch (h) { + case 115: + H = H.replace(_, i); + case 100: + case 109: + case 45: + g = H + '{' + g + '}'; + break; + case 107: + (g = + (H = H.replace(m, '$1 $2')) + '{' + g + '}'), + (g = + 1 === T || (2 === T && o('@' + g, 3)) + ? '@-webkit-' + g + '@' + g + : '@' + g); + break; + default: + (g = H + g), 112 === f && ((Y += g), (g = '')); + } + else g = ''; + break; + default: + g = e(s, t(s, H, I), g, f, d + 1); + } + (W += g), + (g = I = R = z = p = 0), + (H = ''), + (h = c.charCodeAt(++N)); + break; + case 125: + case 59: if ( - null == - (s = - 'function' == typeof (m = b.payload) - ? m.call(g, u, s) - : m) + 1 < + (F = (H = (0 < R ? H.replace(l, '') : H).trim()).length) ) - break e; - u = o({}, u, s); - break e; - case 2: - ii = !0; + switch ( + (0 === z && + ((p = H.charCodeAt(0)), + 45 === p || (96 < p && 123 > p)) && + (F = (H = H.replace(' ', ':')).length), + 0 < P && + void 0 !== + (w = a(1, H, s, n, E, O, Y.length, f, d, f)) && + 0 === (F = (H = w.trim()).length) && + (H = '\0\0'), + (p = H.charCodeAt(0)), + (h = H.charCodeAt(1)), + p) + ) { + case 0: + break; + case 64: + if (105 === h || 99 === h) { + V += H + c.charAt(N); + break; + } + default: + 58 !== H.charCodeAt(F - 1) && + (Y += r(H, p, h, H.charCodeAt(2))); + } + (I = R = z = p = 0), (H = ''), (h = c.charCodeAt(++N)); } } - null !== h.callback && - ((e.effectTag |= 32), - null === (s = i.effects) ? (i.effects = [h]) : s.push(h)); + switch (h) { + case 13: + case 10: + 47 === M + ? (M = 0) + : 0 === 1 + p && + 107 !== f && + 0 < H.length && + ((R = 1), (H += '\0')), + 0 < P * j && a(0, H, s, n, E, O, Y.length, f, d, f), + (O = 1), + E++; + break; + case 59: + case 125: + if (0 === M + S + k + x) { + O++; + break; + } + default: + switch ((O++, (v = c.charAt(N)), h)) { + case 9: + case 32: + if (0 === S + x + M) + switch (L) { + case 44: + case 58: + case 9: + case 32: + v = ''; + break; + default: + 32 !== h && (v = ' '); + } + break; + case 0: + v = '\\0'; + break; + case 12: + v = '\\f'; + break; + case 11: + v = '\\v'; + break; + case 38: + 0 === S + M + x && ((R = I = 1), (v = '\f' + v)); + break; + case 108: + if (0 === S + M + x + A && 0 < z) + switch (N - z) { + case 2: + 112 === L && + 58 === c.charCodeAt(N - 3) && + (A = L); + case 8: + 111 === D && (A = D); + } + break; + case 58: + 0 === S + M + x && (z = N); + break; + case 44: + 0 === M + k + S + x && ((R = 1), (v += '\r')); + break; + case 34: + case 39: + 0 === M && (S = S === h ? 0 : 0 === S ? h : S); + break; + case 91: + 0 === S + M + k && x++; + break; + case 93: + 0 === S + M + k && x--; + break; + case 41: + 0 === S + M + x && k--; + break; + case 40: + if (0 === S + M + x) { + if (0 === p) + switch (2 * L + 3 * D) { + case 533: + break; + default: + p = 1; + } + k++; + } + break; + case 64: + 0 === M + k + S + x + z + g && (g = 1); + break; + case 42: + case 47: + if (!(0 < S + x + k)) + switch (M) { + case 0: + switch (2 * h + 3 * c.charCodeAt(N + 1)) { + case 235: + M = 47; + break; + case 220: + (F = N), (M = 42); + } + break; + case 42: + 47 === h && + 42 === L && + F + 2 !== N && + (33 === c.charCodeAt(F + 2) && + (Y += c.substring(F, N + 1)), + (v = ''), + (M = 0)); + } + } + 0 === M && (H += v); + } + (D = L), (L = h), N++; } - if (null === (h = h.next) || h === c) { - if (null === (s = i.shared.pending)) break; - (h = a.next = s.next), - (s.next = c), - (i.baseQueue = a = s), - (i.shared.pending = null); + if (0 < (F = Y.length)) { + if ( + ((R = s), + 0 < P && + (void 0 !== (w = a(2, Y, R, n, E, O, F, f, d, f)) && + 0 === (Y = w).length)) + ) + return V + Y + W; + if (((Y = R.join(',') + '{' + Y + '}'), 0 != T * A)) { + switch ((2 !== T || o(Y, 2) || (A = 0), A)) { + case 111: + Y = Y.replace(y, ':-moz-$1') + Y; + break; + case 112: + Y = + Y.replace(b, '::-webkit-input-$1') + + Y.replace(b, '::-moz-$1') + + Y.replace(b, ':-ms-input-$1') + + Y; + } + A = 0; + } } - } - null === p ? (f = u) : (p.next = d), - (i.baseState = f), - (i.baseQueue = p), - ac(l), - (e.expirationTime = l), - (e.memoizedState = u); - } - } - function di(e, t, n) { - if (((e = t.effects), (t.effects = null), null !== e)) - for (t = 0; t < e.length; t++) { - var r = e[t], - o = r.callback; - if (null !== o) { - if ( - ((r.callback = null), (r = o), (o = n), 'function' != typeof r) - ) - throw Error(a(191, r)); - r.call(o); - } + return V + Y + W; + })(C, s, n, 0, 0); + return ( + 0 < P && + (void 0 !== (c = a(-2, f, s, s, E, O, f.length, 0, 0, 0)) && + (f = c)), + '', + (A = 0), + (O = E = 1), + f + ); } - } - var pi = $.ReactCurrentBatchConfig, - hi = new r.Component().refs; - function gi(e, t, n, r) { - (n = null == (n = n(r, (t = e.memoizedState))) ? t : o({}, t, n)), - (e.memoizedState = n), - 0 === e.expirationTime && (e.updateQueue.baseState = n); - } - var mi = { - isMounted: function(e) { - return !!(e = e._reactInternalFiber) && Ze(e) === e; + var u = /^\0+/g, + l = /[\0\r\f]/g, + f = /: */g, + d = /zoo|gra/, + p = /([,: ])(transform)/g, + h = /,\r+?/g, + g = /([\t\r\n ])*\f?&/g, + m = /@(k\w+)\s*(\S*)\s*/, + b = /::(place)/g, + y = /:(read-only)/g, + v = /[svh]\w+-[tblr]{2}/, + _ = /\(\s*(.*)\s*\)/g, + w = /([\s\S]*?);/g, + x = /-self|flex-/g, + M = /[^]*?(:[rp][el]a[\w-]+)[^]*/, + k = /stretch|:\s*\w+\-(?:conte|avail)/, + S = /([^-])(image-set\()/, + O = 1, + E = 1, + A = 0, + T = 1, + C = [], + L = [], + P = 0, + D = null, + j = 0; + return ( + (c.use = function e(t) { + switch (t) { + case void 0: + case null: + P = L.length = 0; + break; + default: + switch (t.constructor) { + case Array: + for (var n = 0, r = t.length; n < r; ++n) e(t[n]); + break; + case Function: + L[P++] = t; + break; + case Boolean: + j = 0 | !!t; + } + } + return e; + }), + (c.set = s), + void 0 !== e && s(e), + c + ); }, - enqueueSetState: function(e, t, n) { - e = e._reactInternalFiber; - var r = Us(), - o = pi.suspense; - ((o = ci((r = Xs(r, e, o)), o)).payload = t), - null != n && (o.callback = n), - ui(e, o), - Gs(e, r); + s = n(455), + c = n.n(s), + u = /[A-Z]|^ms/g, + l = r(function(e) { + return e.replace(u, '-$&').toLowerCase(); + }), + f = function(e, t) { + return null == t || 'boolean' == typeof t + ? '' + : 1 === o[e] || 45 === e.charCodeAt(1) || isNaN(t) || 0 === t + ? t + : t + 'px'; }, - enqueueReplaceState: function(e, t, n) { - e = e._reactInternalFiber; - var r = Us(), - o = pi.suspense; - ((o = ci((r = Xs(r, e, o)), o)).tag = 1), - (o.payload = t), - null != n && (o.callback = n), - ui(e, o), - Gs(e, r); + d = function e(t) { + for (var n = t.length, r = 0, o = ''; r < n; r++) { + var i = t[r]; + if (null != i) { + var a = void 0; + switch (typeof i) { + case 'boolean': + break; + case 'function': + 0, (a = e([i()])); + break; + case 'object': + if (Array.isArray(i)) a = e(i); + else + for (var s in ((a = ''), i)) + i[s] && s && (a && (a += ' '), (a += s)); + break; + default: + a = i; + } + a && (o && (o += ' '), (o += a)); + } + } + return o; }, - enqueueForceUpdate: function(e, t) { - e = e._reactInternalFiber; - var n = Us(), - r = pi.suspense; - ((r = ci((n = Xs(n, e, r)), r)).tag = 2), - null != t && (r.callback = t), - ui(e, r), - Gs(e, n); - } - }; - function bi(e, t, n, r, o, i, a) { - return 'function' == typeof (e = e.stateNode).shouldComponentUpdate - ? e.shouldComponentUpdate(r, i, a) - : !t.prototype || - !t.prototype.isPureReactComponent || - !Fr(n, r) || !Fr(o, i); - } - function yi(e, t, n) { - var r = !1, - o = lo, - i = t.contextType; + p = 'undefined' != typeof document; + function h(e) { + var t = document.createElement('style'); return ( - 'object' == typeof i && null !== i - ? (i = oi(i)) - : ((o = mo(t) ? ho : fo.current), - (i = (r = null != (r = t.contextTypes)) ? go(e, o) : lo)), - (t = new t(n, i)), - (e.memoizedState = - null !== t.state && void 0 !== t.state ? t.state : null), - (t.updater = mi), - (e.stateNode = t), - (t._reactInternalFiber = e), - r && - (((e = - e.stateNode).__reactInternalMemoizedUnmaskedChildContext = o), - (e.__reactInternalMemoizedMaskedChildContext = i)), + t.setAttribute('data-emotion', e.key || ''), + void 0 !== e.nonce && t.setAttribute('nonce', e.nonce), + t.appendChild(document.createTextNode('')), + (void 0 !== e.container ? e.container : document.head).appendChild(t), t ); } - function vi(e, t, n, r) { - (e = t.state), - 'function' == typeof t.componentWillReceiveProps && - t.componentWillReceiveProps(n, r), - 'function' == typeof t.UNSAFE_componentWillReceiveProps && - t.UNSAFE_componentWillReceiveProps(n, r), - t.state !== e && mi.enqueueReplaceState(t, t.state, null); - } - function _i(e, t, n, r) { - var o = e.stateNode; - (o.props = n), (o.state = e.memoizedState), (o.refs = hi), ai(e); - var i = t.contextType; - 'object' == typeof i && null !== i - ? (o.context = oi(i)) - : ((i = mo(t) ? ho : fo.current), (o.context = go(e, i))), - fi(e, n, o, r), - (o.state = e.memoizedState), - 'function' == typeof (i = t.getDerivedStateFromProps) && - (gi(e, t, i, n), (o.state = e.memoizedState)), - 'function' == typeof t.getDerivedStateFromProps || - 'function' == typeof o.getSnapshotBeforeUpdate || - ('function' != typeof o.UNSAFE_componentWillMount && - 'function' != typeof o.componentWillMount) || - ((t = o.state), - 'function' == typeof o.componentWillMount && o.componentWillMount(), - 'function' == typeof o.UNSAFE_componentWillMount && - o.UNSAFE_componentWillMount(), - t !== o.state && mi.enqueueReplaceState(o, o.state, null), - fi(e, n, o, r), - (o.state = e.memoizedState)), - 'function' == typeof o.componentDidMount && (e.effectTag |= 4); - } - var xi = Array.isArray; - function wi(e, t, n) { - if ( - null !== (e = n.ref) && - 'function' != typeof e && - 'object' != typeof e - ) { - if (n._owner) { - if ((n = n._owner)) { - if (1 !== n.tag) throw Error(a(309)); - var r = n.stateNode; - } - if (!r) throw Error(a(147, e)); - var o = '' + e; - return null !== t && - null !== t.ref && - 'function' == typeof t.ref && - t.ref._stringRef === o - ? t.ref - : (((t = function(e) { - var t = r.refs; - t === hi && (t = r.refs = {}), - null === e ? delete t[o] : (t[o] = e); - })._stringRef = o), - t); - } - if ('string' != typeof e) throw Error(a(284)); - if (!n._owner) throw Error(a(290, e)); + var g = (function() { + function e(e) { + (this.isSpeedy = !0), + (this.tags = []), + (this.ctr = 0), + (this.opts = e); } - return e; - } - function Mi(e, t) { - if ('textarea' !== e.type) - throw Error( - a( - 31, - '[object Object]' === Object.prototype.toString.call(t) - ? 'object with keys {' + Object.keys(t).join(', ') + '}' - : t, - '' - ) - ); - } - function ki(e) { - function t(t, n) { - if (e) { - var r = t.lastEffect; - null !== r - ? ((r.nextEffect = n), (t.lastEffect = n)) - : (t.firstEffect = t.lastEffect = n), - (n.nextEffect = null), - (n.effectTag = 8); + var t = e.prototype; + return ( + (t.inject = function() { + if (this.injected) throw new Error('already injected!'); + (this.tags[0] = h(this.opts)), (this.injected = !0); + }), + (t.speedy = function(e) { + if (0 !== this.ctr) throw new Error('cannot change speedy now'); + this.isSpeedy = !!e; + }), + (t.insert = function(e, t) { + if (this.isSpeedy) { + var n = (function(e) { + if (e.sheet) return e.sheet; + for (var t = 0; t < document.styleSheets.length; t++) + if (document.styleSheets[t].ownerNode === e) + return document.styleSheets[t]; + })(this.tags[this.tags.length - 1]); + try { + n.insertRule(e, n.cssRules.length); + } catch (e) { + 0; + } + } else { + var r = h(this.opts); + this.tags.push(r), + r.appendChild(document.createTextNode(e + (t || ''))); + } + this.ctr++, this.ctr % 65e3 == 0 && this.tags.push(h(this.opts)); + }), + (t.flush = function() { + this.tags.forEach(function(e) { + return e.parentNode.removeChild(e); + }), + (this.tags = []), + (this.ctr = 0), + (this.injected = !1); + }), + e + ); + })(); + t.a = function(e, t) { + if (void 0 !== e.__SECRET_EMOTION__) return e.__SECRET_EMOTION__; + void 0 === t && (t = {}); + var n, + r, + o = t.key || 'css', + s = c()(function(e) { + (n += e), p && h.insert(e, b); + }); + void 0 !== t.prefix && (r = { prefix: t.prefix }); + var u = { registered: {}, inserted: {}, nonce: t.nonce, key: o }, + h = new g(t); + p && h.inject(); + var m = new a(r); + m.use(t.stylisPlugins)(s); + var b = ''; + function y(e, t) { + if (null == e) return ''; + switch (typeof e) { + case 'boolean': + return ''; + case 'function': + if (void 0 !== e.__emotion_styles) { + var n = e.toString(); + return n; + } + return y.call( + this, + void 0 === this ? e() : e(this.mergedProps, this.context), + t + ); + case 'object': + return x.call(this, e); + default: + var r = u.registered[e]; + return !1 === t && void 0 !== r ? r : e; } } - function n(n, r) { - if (!e) return null; - for (; null !== r; ) t(n, r), (r = r.sibling); - return null; - } - function r(e, t) { - for (e = new Map(); null !== t; ) - null !== t.key ? e.set(t.key, t) : e.set(t.index, t), - (t = t.sibling); - return e; - } - function o(e, t) { - return ((e = Ac(e, t)).index = 0), (e.sibling = null), e; - } - function i(t, n, r) { + var v, + _, + w = new WeakMap(); + function x(e) { + if (w.has(e)) return w.get(e); + var t = ''; return ( - (t.index = r), - e - ? null !== (r = t.alternate) - ? (r = r.index) < n - ? ((t.effectTag = 2), n) - : r - : ((t.effectTag = 2), n) - : n + Array.isArray(e) + ? e.forEach(function(e) { + t += y.call(this, e, !1); + }, this) + : Object.keys(e).forEach(function(n) { + 'object' != typeof e[n] + ? void 0 !== u.registered[e[n]] + ? (t += n + '{' + u.registered[e[n]] + '}') + : (t += l(n) + ':' + f(n, e[n]) + ';') + : Array.isArray(e[n]) && + 'string' == typeof e[n][0] && + void 0 === u.registered[e[n][0]] + ? e[n].forEach(function(e) { + t += l(n) + ':' + f(n, e) + ';'; + }) + : (t += n + '{' + y.call(this, e[n], !1) + '}'); + }, this), + w.set(e, t), + t ); } - function s(t) { - return e && null === t.alternate && (t.effectTag = 2), t; - } - function c(e, t, n, r) { - return null === t || 6 !== t.tag - ? (((t = Tc(n, e.mode, r)).return = e), t) - : (((t = o(t, n)).return = e), t); - } - function u(e, t, n, r) { - return null !== t && t.elementType === n.type - ? (((r = o(t, n.props)).ref = wi(e, t, n)), (r.return = e), r) - : (((r = Oc(n.type, n.key, n.props, null, e.mode, r)).ref = wi( - e, - t, - n - )), - (r.return = e), - r); - } - function l(e, t, n, r) { - return null === t || - 4 !== t.tag || - t.stateNode.containerInfo !== n.containerInfo || - t.stateNode.implementation !== n.implementation - ? (((t = Cc(n, e.mode, r)).return = e), t) - : (((t = o(t, n.children || [])).return = e), t); - } - function f(e, t, n, r, i) { - return null === t || 7 !== t.tag - ? (((t = Ec(n, e.mode, r, i)).return = e), t) - : (((t = o(t, n)).return = e), t); - } - function d(e, t, n) { - if ('string' == typeof t || 'number' == typeof t) - return ((t = Tc('' + t, e.mode, n)).return = e), t; - if ('object' == typeof t && null !== t) { - switch (t.$$typeof) { - case ee: - return ( - ((n = Oc(t.type, t.key, t.props, null, e.mode, n)).ref = wi( - e, - null, - t - )), - (n.return = e), - n - ); - case te: - return ((t = Cc(t, e.mode, n)).return = e), t; - } - if (xi(t) || ge(t)) - return ((t = Ec(t, e.mode, n, null)).return = e), t; - Mi(e, t); - } - return null; - } - function p(e, t, n, r) { - var o = null !== t ? t.key : null; - if ('string' == typeof n || 'number' == typeof n) - return null !== o ? null : c(e, t, '' + n, r); - if ('object' == typeof n && null !== n) { - switch (n.$$typeof) { - case ee: - return n.key === o - ? n.type === ne - ? f(e, t, n.props.children, r, o) - : u(e, t, n, r) - : null; - case te: - return n.key === o ? l(e, t, n, r) : null; - } - if (xi(n) || ge(n)) return null !== o ? null : f(e, t, n, r, null); - Mi(e, n); - } - return null; - } - function h(e, t, n, r, o) { - if ('string' == typeof r || 'number' == typeof r) - return c(t, (e = e.get(n) || null), '' + r, o); - if ('object' == typeof r && null !== r) { - switch (r.$$typeof) { - case ee: - return ( - (e = e.get(null === r.key ? n : r.key) || null), - r.type === ne - ? f(t, e, r.props.children, o, r.key) - : u(t, e, r, o) - ); - case te: - return l( - t, - (e = e.get(null === r.key ? n : r.key) || null), - r, - o - ); - } - if (xi(r) || ge(r)) return f(t, (e = e.get(n) || null), r, o, null); - Mi(t, r); - } - return null; + var M = /label:\s*([^\s;\n{]+)\s*;/g, + k = function(e, t) { + return i(e + t) + t; + }, + S = function(e) { + var t = !0, + n = '', + r = ''; + null == e || void 0 === e.raw + ? ((t = !1), (n += y.call(this, e, !1))) + : (n += e[0]); + for ( + var o = arguments.length, i = new Array(o > 1 ? o - 1 : 0), a = 1; + a < o; + a++ + ) + i[a - 1] = arguments[a]; + return ( + i.forEach(function(r, o) { + (n += y.call(this, r, 46 === n.charCodeAt(n.length - 1))), + !0 === t && void 0 !== e[o + 1] && (n += e[o + 1]); + }, this), + (_ = n), + (n = n.replace(M, function(e, t) { + return (r += '-' + t), ''; + })), + (v = k(n, r)), + n + ); + }; + function O(e, t) { + void 0 === u.inserted[v] && ((n = ''), m(e, t), (u.inserted[v] = n)); } - function g(o, a, s, c) { - for ( - var u = null, l = null, f = a, g = (a = 0), m = null; - null !== f && g < s.length; - g++ - ) { - f.index > g ? ((m = f), (f = null)) : (m = f.sibling); - var b = p(o, f, s[g], c); - if (null === b) { - null === f && (f = m); - break; - } - e && f && null === b.alternate && t(o, f), - (a = i(b, a, g)), - null === l ? (u = b) : (l.sibling = b), - (l = b), - (f = m); - } - if (g === s.length) return n(o, f), u; - if (null === f) { - for (; g < s.length; g++) - null !== (f = d(o, s[g], c)) && - ((a = i(f, a, g)), - null === l ? (u = f) : (l.sibling = f), - (l = f)); - return u; - } - for (f = r(o, f); g < s.length; g++) - null !== (m = h(f, o, g, s[g], c)) && - (e && - null !== m.alternate && - f.delete(null === m.key ? g : m.key), - (a = i(m, a, g)), - null === l ? (u = m) : (l.sibling = m), - (l = m)); + var E = function() { + var e = S.apply(this, arguments), + t = o + '-' + v; return ( - e && - f.forEach(function(e) { - return t(o, e); - }), - u + void 0 === u.registered[t] && (u.registered[t] = _), + O('.' + t, e), + t ); - } - function m(o, s, c, u) { - var l = ge(c); - if ('function' != typeof l) throw Error(a(150)); - if (null == (c = l.call(c))) throw Error(a(151)); - for ( - var f = (l = null), g = s, m = (s = 0), b = null, y = c.next(); - null !== g && !y.done; - m++, y = c.next() - ) { - g.index > m ? ((b = g), (g = null)) : (b = g.sibling); - var v = p(o, g, y.value, u); - if (null === v) { - null === g && (g = b); - break; - } - e && g && null === v.alternate && t(o, g), - (s = i(v, s, m)), - null === f ? (l = v) : (f.sibling = v), - (f = v), - (g = b); - } - if (y.done) return n(o, g), l; - if (null === g) { - for (; !y.done; m++, y = c.next()) - null !== (y = d(o, y.value, u)) && - ((s = i(y, s, m)), - null === f ? (l = y) : (f.sibling = y), - (f = y)); - return l; - } - for (g = r(o, g); !y.done; m++, y = c.next()) - null !== (y = h(g, o, m, y.value, u)) && - (e && - null !== y.alternate && - g.delete(null === y.key ? m : y.key), - (s = i(y, s, m)), - null === f ? (l = y) : (f.sibling = y), - (f = y)); + }; + function A(e, t) { + var n = ''; return ( - e && - g.forEach(function(e) { - return t(o, e); - }), - l + t.split(' ').forEach(function(t) { + void 0 !== u.registered[t] ? e.push(t) : (n += t + ' '); + }), + n ); } - return function(e, r, i, c) { - var u = - 'object' == typeof i && - null !== i && - i.type === ne && - null === i.key; - u && (i = i.props.children); - var l = 'object' == typeof i && null !== i; - if (l) - switch (i.$$typeof) { - case ee: - e: { - for (l = i.key, u = r; null !== u; ) { - if (u.key === l) { - switch (u.tag) { - case 7: - if (i.type === ne) { - n(e, u.sibling), - ((r = o(u, i.props.children)).return = e), - (e = r); - break e; - } - break; - default: - if (u.elementType === i.type) { - n(e, u.sibling), - ((r = o(u, i.props)).ref = wi(e, u, i)), - (r.return = e), - (e = r); - break e; - } - } - n(e, u); - break; - } - t(e, u), (u = u.sibling); - } - i.type === ne - ? (((r = Ec( - i.props.children, - e.mode, - c, - i.key - )).return = e), - (e = r)) - : (((c = Oc( - i.type, - i.key, - i.props, - null, - e.mode, - c - )).ref = wi(e, r, i)), - (c.return = e), - (e = c)); - } - return s(e); - case te: - e: { - for (u = i.key; null !== r; ) { - if (r.key === u) { - if ( - 4 === r.tag && - r.stateNode.containerInfo === i.containerInfo && - r.stateNode.implementation === i.implementation - ) { - n(e, r.sibling), - ((r = o(r, i.children || [])).return = e), - (e = r); - break e; - } - n(e, r); - break; - } - t(e, r), (r = r.sibling); - } - ((r = Cc(i, e.mode, c)).return = e), (e = r); - } - return s(e); - } - if ('string' == typeof i || 'number' == typeof i) - return ( - (i = '' + i), - null !== r && 6 === r.tag - ? (n(e, r.sibling), ((r = o(r, i)).return = e), (e = r)) - : (n(e, r), ((r = Tc(i, e.mode, c)).return = e), (e = r)), - s(e) - ); - if (xi(i)) return g(e, r, i, c); - if (ge(i)) return m(e, r, i, c); - if ((l && Mi(e, i), void 0 === i && !u)) - switch (e.tag) { - case 1: - case 0: - throw ((e = e.type), - Error(a(152, e.displayName || e.name || 'Component'))); - } - return n(e, r); - }; - } - var Si = ki(!0), - Ai = ki(!1), - Oi = {}, - Ei = { current: Oi }, - Ti = { current: Oi }, - Ci = { current: Oi }; - function Li(e) { - if (e === Oi) throw Error(a(174)); - return e; - } - function Pi(e, t) { - switch ((uo(Ci, t), uo(Ti, e), uo(Ei, Oi), (e = t.nodeType))) { - case 9: - case 11: - t = (t = t.documentElement) ? t.namespaceURI : Re(null, ''); - break; - default: - t = Re( - (t = (e = 8 === e ? t.parentNode : t).namespaceURI || null), - (e = e.tagName) - ); + function T(e, t) { + var n = [], + r = A(n, e); + return n.length < 2 ? e : r + E(n, t); } - co(Ei), uo(Ei, t); - } - function Di() { - co(Ei), co(Ti), co(Ci); - } - function zi(e) { - Li(Ci.current); - var t = Li(Ei.current), - n = Re(t, e.type); - t !== n && (uo(Ti, e), uo(Ei, n)); - } - function Ni(e) { - Ti.current === e && (co(Ei), co(Ti)); - } - var ji = { current: 0 }; - function Ri(e) { - for (var t = e; null !== t; ) { - if (13 === t.tag) { - var n = t.memoizedState; - if ( - null !== n && - (null === (n = n.dehydrated) || - '$?' === n.data || - '$!' === n.data) - ) - return t; - } else if (19 === t.tag && void 0 !== t.memoizedProps.revealOrder) { - if (0 != (64 & t.effectTag)) return t; - } else if (null !== t.child) { - (t.child.return = t), (t = t.child); - continue; - } - if (t === e) break; - for (; null === t.sibling; ) { - if (null === t.return || t.return === e) return null; - t = t.return; - } - (t.sibling.return = t.return), (t = t.sibling); + function C(e) { + u.inserted[e] = !0; } - return null; - } - function Ii(e, t) { - return { responder: e, props: t }; - } - var Fi = $.ReactCurrentDispatcher, - qi = $.ReactCurrentBatchConfig, - Bi = 0, - Hi = null, - Yi = null, - Wi = null, - Vi = !1; - function Ui() { - throw Error(a(321)); - } - function Xi(e, t) { - if (null === t) return !1; - for (var n = 0; n < t.length && n < e.length; n++) - if (!Rr(e[n], t[n])) return !1; - return !0; - } - function Gi(e, t, n, r, o, i) { - if ( - ((Bi = i), - (Hi = t), - (t.memoizedState = null), - (t.updateQueue = null), - (t.expirationTime = 0), - (Fi.current = null === e || null === e.memoizedState ? ba : ya), - (e = n(r, o)), - t.expirationTime === Bi) - ) { - i = 0; - do { - if (((t.expirationTime = 0), !(25 > i))) throw Error(a(301)); - (i += 1), - (Wi = Yi = null), - (t.updateQueue = null), - (Fi.current = va), - (e = n(r, o)); - } while (t.expirationTime === Bi); + if (p) { + var L = document.querySelectorAll('[data-emotion-' + o + ']'); + Array.prototype.forEach.call(L, function(e) { + h.tags[0].parentNode.insertBefore(e, h.tags[0]), + e + .getAttribute('data-emotion-' + o) + .split(' ') + .forEach(C); + }); } - if ( - ((Fi.current = ma), - (t = null !== Yi && null !== Yi.next), - (Bi = 0), - (Wi = Yi = Hi = null), - (Vi = !1), - t) - ) - throw Error(a(300)); - return e; - } - function Ki() { - var e = { - memoizedState: null, - baseState: null, - baseQueue: null, - queue: null, - next: null + var P = { + flush: function() { + p && (h.flush(), h.inject()), + (u.inserted = {}), + (u.registered = {}); + }, + hydrate: function(e) { + e.forEach(C); + }, + cx: function() { + for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) + t[n] = arguments[n]; + return T(d(t)); + }, + merge: T, + getRegisteredStyles: A, + injectGlobal: function() { + var e = S.apply(this, arguments); + O('', e); + }, + keyframes: function() { + var e = S.apply(this, arguments), + t = 'animation-' + v; + return O('', '@keyframes ' + t + '{' + e + '}'), t; + }, + css: E, + sheet: h, + caches: u }; + return (e.__SECRET_EMOTION__ = P), P; + }; + }, + , + function(e, t, n) { + 'use strict'; + /** @license React v16.9.0 + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ var r = n(98), + o = 'function' == typeof Symbol && Symbol.for, + i = o ? Symbol.for('react.element') : 60103, + a = o ? Symbol.for('react.portal') : 60106, + s = o ? Symbol.for('react.fragment') : 60107, + c = o ? Symbol.for('react.strict_mode') : 60108, + u = o ? Symbol.for('react.profiler') : 60114, + l = o ? Symbol.for('react.provider') : 60109, + f = o ? Symbol.for('react.context') : 60110, + d = o ? Symbol.for('react.forward_ref') : 60112, + p = o ? Symbol.for('react.suspense') : 60113, + h = o ? Symbol.for('react.suspense_list') : 60120, + g = o ? Symbol.for('react.memo') : 60115, + m = o ? Symbol.for('react.lazy') : 60116; + o && Symbol.for('react.fundamental'), o && Symbol.for('react.responder'); + var b = 'function' == typeof Symbol && Symbol.iterator; + function y(e) { + for ( + var t = e.message, + n = 'https://reactjs.org/docs/error-decoder.html?invariant=' + t, + r = 1; + r < arguments.length; + r++ + ) + n += '&args[]=' + encodeURIComponent(arguments[r]); return ( - null === Wi ? (Hi.memoizedState = Wi = e) : (Wi = Wi.next = e), Wi + (e.message = + 'Minified React error #' + + t + + '; visit ' + + n + + ' for the full message or use the non-minified dev environment for full errors and additional helpful warnings. '), + e ); } - function $i() { - if (null === Yi) { - var e = Hi.alternate; - e = null !== e ? e.memoizedState : null; - } else e = Yi.next; - var t = null === Wi ? Hi.memoizedState : Wi.next; - if (null !== t) (Wi = t), (Yi = e); - else { - if (null === e) throw Error(a(310)); - (e = { - memoizedState: (Yi = e).memoizedState, - baseState: Yi.baseState, - baseQueue: Yi.baseQueue, - queue: Yi.queue, - next: null - }), - null === Wi ? (Hi.memoizedState = Wi = e) : (Wi = Wi.next = e); - } - return Wi; - } - function Qi(e, t) { - return 'function' == typeof t ? t(e) : t; + var v = { + isMounted: function() { + return !1; + }, + enqueueForceUpdate: function() {}, + enqueueReplaceState: function() {}, + enqueueSetState: function() {} + }, + _ = {}; + function w(e, t, n) { + (this.props = e), + (this.context = t), + (this.refs = _), + (this.updater = n || v); } - function Ji(e) { - var t = $i(), - n = t.queue; - if (null === n) throw Error(a(311)); - n.lastRenderedReducer = e; - var r = Yi, - o = r.baseQueue, - i = n.pending; - if (null !== i) { - if (null !== o) { - var s = o.next; - (o.next = i.next), (i.next = s); - } - (r.baseQueue = o = i), (n.pending = null); - } - if (null !== o) { - (o = o.next), (r = r.baseState); - var c = (s = i = null), - u = o; - do { - var l = u.expirationTime; - if (l < Bi) { - var f = { - expirationTime: u.expirationTime, - suspenseConfig: u.suspenseConfig, - action: u.action, - eagerReducer: u.eagerReducer, - eagerState: u.eagerState, - next: null - }; - null === c ? ((s = c = f), (i = r)) : (c = c.next = f), - l > Hi.expirationTime && ((Hi.expirationTime = l), ac(l)); - } else - null !== c && - (c = c.next = { - expirationTime: 1073741823, - suspenseConfig: u.suspenseConfig, - action: u.action, - eagerReducer: u.eagerReducer, - eagerState: u.eagerState, - next: null - }), - ic(l, u.suspenseConfig), - (r = u.eagerReducer === e ? u.eagerState : e(r, u.action)); - u = u.next; - } while (null !== u && u !== o); - null === c ? (i = r) : (c.next = s), - Rr(r, t.memoizedState) || (Ca = !0), - (t.memoizedState = r), - (t.baseState = i), - (t.baseQueue = c), - (n.lastRenderedState = r); - } - return [t.memoizedState, n.dispatch]; + function x() {} + function M(e, t, n) { + (this.props = e), + (this.context = t), + (this.refs = _), + (this.updater = n || v); } - function Zi(e) { - var t = $i(), - n = t.queue; - if (null === n) throw Error(a(311)); - n.lastRenderedReducer = e; - var r = n.dispatch, - o = n.pending, - i = t.memoizedState; - if (null !== o) { - n.pending = null; - var s = (o = o.next); - do { - (i = e(i, s.action)), (s = s.next); - } while (s !== o); - Rr(i, t.memoizedState) || (Ca = !0), - (t.memoizedState = i), - null === t.baseQueue && (t.baseState = i), - (n.lastRenderedState = i); + (w.prototype.isReactComponent = {}), + (w.prototype.setState = function(e, t) { + if ('object' != typeof e && 'function' != typeof e && null != e) + throw y(Error(85)); + this.updater.enqueueSetState(this, e, t, 'setState'); + }), + (w.prototype.forceUpdate = function(e) { + this.updater.enqueueForceUpdate(this, e, 'forceUpdate'); + }), + (x.prototype = w.prototype); + var k = (M.prototype = new x()); + (k.constructor = M), r(k, w.prototype), (k.isPureReactComponent = !0); + var S = { current: null }, + O = { suspense: null }, + E = { current: null }, + A = Object.prototype.hasOwnProperty, + T = { key: !0, ref: !0, __self: !0, __source: !0 }; + function C(e, t, n) { + var r = void 0, + o = {}, + a = null, + s = null; + if (null != t) + for (r in (void 0 !== t.ref && (s = t.ref), + void 0 !== t.key && (a = '' + t.key), + t)) + A.call(t, r) && !T.hasOwnProperty(r) && (o[r] = t[r]); + var c = arguments.length - 2; + if (1 === c) o.children = n; + else if (1 < c) { + for (var u = Array(c), l = 0; l < c; l++) u[l] = arguments[l + 2]; + o.children = u; } - return [i, r]; - } - function ea(e) { - var t = Ki(); - return ( - 'function' == typeof e && (e = e()), - (t.memoizedState = t.baseState = e), - (e = (e = t.queue = { - pending: null, - dispatch: null, - lastRenderedReducer: Qi, - lastRenderedState: e - }).dispatch = ga.bind(null, Hi, e)), - [t.memoizedState, e] - ); + if (e && e.defaultProps) + for (r in (c = e.defaultProps)) void 0 === o[r] && (o[r] = c[r]); + return { + $$typeof: i, + type: e, + key: a, + ref: s, + props: o, + _owner: E.current + }; } - function ta(e, t, n, r) { - return ( - (e = { tag: e, create: t, destroy: n, deps: r, next: null }), - null === (t = Hi.updateQueue) - ? ((t = { lastEffect: null }), - (Hi.updateQueue = t), - (t.lastEffect = e.next = e)) - : null === (n = t.lastEffect) - ? (t.lastEffect = e.next = e) - : ((r = n.next), (n.next = e), (e.next = r), (t.lastEffect = e)), - e - ); + function L(e) { + return 'object' == typeof e && null !== e && e.$$typeof === i; } - function na() { - return $i().memoizedState; + var P = /\/+/g, + D = []; + function j(e, t, n, r) { + if (D.length) { + var o = D.pop(); + return ( + (o.result = e), + (o.keyPrefix = t), + (o.func = n), + (o.context = r), + (o.count = 0), + o + ); + } + return { result: e, keyPrefix: t, func: n, context: r, count: 0 }; } - function ra(e, t, n, r) { - var o = Ki(); - (Hi.effectTag |= e), - (o.memoizedState = ta(1 | t, n, void 0, void 0 === r ? null : r)); + function z(e) { + (e.result = null), + (e.keyPrefix = null), + (e.func = null), + (e.context = null), + (e.count = 0), + 10 > D.length && D.push(e); } - function oa(e, t, n, r) { - var o = $i(); - r = void 0 === r ? null : r; - var i = void 0; - if (null !== Yi) { - var a = Yi.memoizedState; - if (((i = a.destroy), null !== r && Xi(r, a.deps))) - return void ta(t, n, i, r); - } - (Hi.effectTag |= e), (o.memoizedState = ta(1 | t, n, i, r)); + function N(e, t, n) { + return null == e + ? 0 + : (function e(t, n, r, o) { + var s = typeof t; + ('undefined' !== s && 'boolean' !== s) || (t = null); + var c = !1; + if (null === t) c = !0; + else + switch (s) { + case 'string': + case 'number': + c = !0; + break; + case 'object': + switch (t.$$typeof) { + case i: + case a: + c = !0; + } + } + if (c) return r(o, t, '' === n ? '.' + R(t, 0) : n), 1; + if (((c = 0), (n = '' === n ? '.' : n + ':'), Array.isArray(t))) + for (var u = 0; u < t.length; u++) { + var l = n + R((s = t[u]), u); + c += e(s, l, r, o); + } + else if ( + (null === t || 'object' != typeof t + ? (l = null) + : (l = + 'function' == typeof (l = (b && t[b]) || t['@@iterator']) + ? l + : null), + 'function' == typeof l) + ) + for (t = l.call(t), u = 0; !(s = t.next()).done; ) + c += e((s = s.value), (l = n + R(s, u++)), r, o); + else if ('object' === s) + throw ((r = '' + t), + y( + Error(31), + '[object Object]' === r + ? 'object with keys {' + Object.keys(t).join(', ') + '}' + : r, + '' + )); + return c; + })(e, '', t, n); } - function ia(e, t) { - return ra(516, 4, e, t); + function R(e, t) { + return 'object' == typeof e && null !== e && null != e.key + ? (function(e) { + var t = { '=': '=0', ':': '=2' }; + return ( + '$' + + ('' + e).replace(/[=:]/g, function(e) { + return t[e]; + }) + ); + })(e.key) + : t.toString(36); } - function aa(e, t) { - return oa(516, 4, e, t); + function I(e, t) { + e.func.call(e.context, t, e.count++); } - function sa(e, t) { - return oa(4, 2, e, t); + function F(e, t, n) { + var r = e.result, + o = e.keyPrefix; + (e = e.func.call(e.context, t, e.count++)), + Array.isArray(e) + ? q(e, r, n, function(e) { + return e; + }) + : null != e && + (L(e) && + (e = (function(e, t) { + return { + $$typeof: i, + type: e.type, + key: t, + ref: e.ref, + props: e.props, + _owner: e._owner + }; + })( + e, + o + + (!e.key || (t && t.key === e.key) + ? '' + : ('' + e.key).replace(P, '$&/') + '/') + + n + )), + r.push(e)); } - function ca(e, t) { - return 'function' == typeof t - ? ((e = e()), - t(e), - function() { - t(null); - }) - : null != t - ? ((e = e()), - (t.current = e), - function() { - t.current = null; - }) - : void 0; + function q(e, t, n, r, o) { + var i = ''; + null != n && (i = ('' + n).replace(P, '$&/') + '/'), + N(e, F, (t = j(t, i, r, o))), + z(t); } - function ua(e, t, n) { - return ( - (n = null != n ? n.concat([e]) : null), - oa(4, 2, ca.bind(null, t, e), n) - ); + function B() { + var e = S.current; + if (null === e) throw y(Error(321)); + return e; } - function la() {} - function fa(e, t) { - return (Ki().memoizedState = [e, void 0 === t ? null : t]), e; - } - function da(e, t) { - var n = $i(); - t = void 0 === t ? null : t; - var r = n.memoizedState; - return null !== r && null !== t && Xi(t, r[1]) - ? r[0] - : ((n.memoizedState = [e, t]), e); - } - function pa(e, t) { - var n = $i(); - t = void 0 === t ? null : t; - var r = n.memoizedState; - return null !== r && null !== t && Xi(t, r[1]) - ? r[0] - : ((e = e()), (n.memoizedState = [e, t]), e); - } - function ha(e, t, n) { - var r = Bo(); - Yo(98 > r ? 98 : r, function() { - e(!0); - }), - Yo(97 < r ? 97 : r, function() { - var r = qi.suspense; - qi.suspense = void 0 === t ? null : t; - try { - e(!1), n(); - } finally { - qi.suspense = r; + var H = { + Children: { + map: function(e, t, n) { + if (null == e) return e; + var r = []; + return q(e, r, null, t, n), r; + }, + forEach: function(e, t, n) { + if (null == e) return e; + N(e, I, (t = j(null, null, t, n))), z(t); + }, + count: function(e) { + return N( + e, + function() { + return null; + }, + null + ); + }, + toArray: function(e) { + var t = []; + return ( + q(e, t, null, function(e) { + return e; + }), + t + ); + }, + only: function(e) { + if (!L(e)) throw y(Error(143)); + return e; } - }); - } - function ga(e, t, n) { - var r = Us(), - o = pi.suspense; - o = { - expirationTime: (r = Xs(r, e, o)), - suspenseConfig: o, - action: n, - eagerReducer: null, - eagerState: null, - next: null - }; - var i = t.pending; - if ( - (null === i ? (o.next = o) : ((o.next = i.next), (i.next = o)), - (t.pending = o), - (i = e.alternate), - e === Hi || (null !== i && i === Hi)) - ) - (Vi = !0), (o.expirationTime = Bi), (Hi.expirationTime = Bi); - else { - if ( - 0 === e.expirationTime && - (null === i || 0 === i.expirationTime) && - null !== (i = t.lastRenderedReducer) - ) - try { - var a = t.lastRenderedState, - s = i(a, n); - if (((o.eagerReducer = i), (o.eagerState = s), Rr(s, a))) return; - } catch (e) {} - Gs(e, r); - } - } - var ma = { - readContext: oi, - useCallback: Ui, - useContext: Ui, - useEffect: Ui, - useImperativeHandle: Ui, - useLayoutEffect: Ui, - useMemo: Ui, - useReducer: Ui, - useRef: Ui, - useState: Ui, - useDebugValue: Ui, - useResponder: Ui, - useDeferredValue: Ui, - useTransition: Ui - }, - ba = { - readContext: oi, - useCallback: fa, - useContext: oi, - useEffect: ia, - useImperativeHandle: function(e, t, n) { + }, + createRef: function() { + return { current: null }; + }, + Component: w, + PureComponent: M, + createContext: function(e, t) { return ( - (n = null != n ? n.concat([e]) : null), - ra(4, 2, ca.bind(null, t, e), n) + void 0 === t && (t = null), + ((e = { + $$typeof: f, + _calculateChangedBits: t, + _currentValue: e, + _currentValue2: e, + _threadCount: 0, + Provider: null, + Consumer: null + }).Provider = { $$typeof: l, _context: e }), + (e.Consumer = e) ); }, + forwardRef: function(e) { + return { $$typeof: d, render: e }; + }, + lazy: function(e) { + return { $$typeof: m, _ctor: e, _status: -1, _result: null }; + }, + memo: function(e, t) { + return { $$typeof: g, type: e, compare: void 0 === t ? null : t }; + }, + useCallback: function(e, t) { + return B().useCallback(e, t); + }, + useContext: function(e, t) { + return B().useContext(e, t); + }, + useEffect: function(e, t) { + return B().useEffect(e, t); + }, + useImperativeHandle: function(e, t, n) { + return B().useImperativeHandle(e, t, n); + }, + useDebugValue: function() {}, useLayoutEffect: function(e, t) { - return ra(4, 2, e, t); + return B().useLayoutEffect(e, t); }, useMemo: function(e, t) { - var n = Ki(); - return ( - (t = void 0 === t ? null : t), - (e = e()), - (n.memoizedState = [e, t]), - e - ); + return B().useMemo(e, t); }, useReducer: function(e, t, n) { - var r = Ki(); - return ( - (t = void 0 !== n ? n(t) : t), - (r.memoizedState = r.baseState = t), - (e = (e = r.queue = { - pending: null, - dispatch: null, - lastRenderedReducer: e, - lastRenderedState: t - }).dispatch = ga.bind(null, Hi, e)), - [r.memoizedState, e] - ); + return B().useReducer(e, t, n); }, useRef: function(e) { - return (e = { current: e }), (Ki().memoizedState = e); + return B().useRef(e); }, - useState: ea, - useDebugValue: la, - useResponder: Ii, - useDeferredValue: function(e, t) { - var n = ea(e), - r = n[0], - o = n[1]; - return ( - ia( - function() { - var n = qi.suspense; - qi.suspense = void 0 === t ? null : t; - try { - o(e); - } finally { - qi.suspense = n; - } - }, - [e, t] - ), - r - ); + useState: function(e) { + return B().useState(e); + }, + Fragment: s, + Profiler: u, + StrictMode: c, + Suspense: p, + unstable_SuspenseList: h, + createElement: C, + cloneElement: function(e, t, n) { + if (null == e) throw y(Error(267), e); + var o = void 0, + a = r({}, e.props), + s = e.key, + c = e.ref, + u = e._owner; + if (null != t) { + void 0 !== t.ref && ((c = t.ref), (u = E.current)), + void 0 !== t.key && (s = '' + t.key); + var l = void 0; + for (o in (e.type && + e.type.defaultProps && + (l = e.type.defaultProps), + t)) + A.call(t, o) && + !T.hasOwnProperty(o) && + (a[o] = void 0 === t[o] && void 0 !== l ? l[o] : t[o]); + } + if (1 === (o = arguments.length - 2)) a.children = n; + else if (1 < o) { + l = Array(o); + for (var f = 0; f < o; f++) l[f] = arguments[f + 2]; + a.children = l; + } + return { + $$typeof: i, + type: e.type, + key: s, + ref: c, + props: a, + _owner: u + }; }, - useTransition: function(e) { - var t = ea(!1), - n = t[0]; - return (t = t[1]), [fa(ha.bind(null, t, e), [t, e]), n]; - } - }, - ya = { - readContext: oi, - useCallback: da, - useContext: oi, - useEffect: aa, - useImperativeHandle: ua, - useLayoutEffect: sa, - useMemo: pa, - useReducer: Ji, - useRef: na, - useState: function() { - return Ji(Qi); - }, - useDebugValue: la, - useResponder: Ii, - useDeferredValue: function(e, t) { - var n = Ji(Qi), - r = n[0], - o = n[1]; - return ( - aa( - function() { - var n = qi.suspense; - qi.suspense = void 0 === t ? null : t; - try { - o(e); - } finally { - qi.suspense = n; - } - }, - [e, t] - ), - r - ); + createFactory: function(e) { + var t = C.bind(null, e); + return (t.type = e), t; }, - useTransition: function(e) { - var t = Ji(Qi), - n = t[0]; - return (t = t[1]), [da(ha.bind(null, t, e), [t, e]), n]; - } - }, - va = { - readContext: oi, - useCallback: da, - useContext: oi, - useEffect: aa, - useImperativeHandle: ua, - useLayoutEffect: sa, - useMemo: pa, - useReducer: Zi, - useRef: na, - useState: function() { - return Zi(Qi); - }, - useDebugValue: la, - useResponder: Ii, - useDeferredValue: function(e, t) { - var n = Zi(Qi), - r = n[0], - o = n[1]; - return ( - aa( - function() { - var n = qi.suspense; - qi.suspense = void 0 === t ? null : t; - try { - o(e); - } finally { - qi.suspense = n; - } - }, - [e, t] - ), - r - ); + isValidElement: L, + version: '16.9.0', + unstable_withSuspenseConfig: function(e, t) { + var n = O.suspense; + O.suspense = void 0 === t ? null : t; + try { + e(); + } finally { + O.suspense = n; + } }, - useTransition: function(e) { - var t = Zi(Qi), - n = t[0]; - return (t = t[1]), [da(ha.bind(null, t, e), [t, e]), n]; + __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { + ReactCurrentDispatcher: S, + ReactCurrentBatchConfig: O, + ReactCurrentOwner: E, + IsSomeRendererActing: { current: !1 }, + assign: r } }, - _a = null, - xa = null, - wa = !1; - function Ma(e, t) { - var n = kc(5, null, null, 0); - (n.elementType = 'DELETED'), - (n.type = 'DELETED'), - (n.stateNode = t), - (n.return = e), - (n.effectTag = 8), - null !== e.lastEffect - ? ((e.lastEffect.nextEffect = n), (e.lastEffect = n)) - : (e.firstEffect = e.lastEffect = n); + Y = { default: H }, + W = (Y && H) || Y; + e.exports = W.default || W; + }, + function(e, t, n) { + 'use strict'; + /** @license React v16.9.0 + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ var r = n(0), + o = n(98), + i = n(474); + function a(e) { + for ( + var t = e.message, + n = 'https://reactjs.org/docs/error-decoder.html?invariant=' + t, + r = 1; + r < arguments.length; + r++ + ) + n += '&args[]=' + encodeURIComponent(arguments[r]); + return ( + (e.message = + 'Minified React error #' + + t + + '; visit ' + + n + + ' for the full message or use the non-minified dev environment for full errors and additional helpful warnings. '), + e + ); } - function ka(e, t) { - switch (e.tag) { - case 5: - var n = e.type; - return ( - null !== - (t = - 1 !== t.nodeType || - n.toLowerCase() !== t.nodeName.toLowerCase() - ? null - : t) && ((e.stateNode = t), !0) - ); - case 6: - return ( - null !== - (t = '' === e.pendingProps || 3 !== t.nodeType ? null : t) && - ((e.stateNode = t), !0) - ); - case 13: - default: - return !1; + if (!r) throw a(Error(227)); + var s = null, + c = {}; + function u() { + if (s) + for (var e in c) { + var t = c[e], + n = s.indexOf(e); + if (!(-1 < n)) throw a(Error(96), e); + if (!f[n]) { + if (!t.extractEvents) throw a(Error(97), e); + for (var r in ((f[n] = t), (n = t.eventTypes))) { + var o = void 0, + i = n[r], + u = t, + p = r; + if (d.hasOwnProperty(p)) throw a(Error(99), p); + d[p] = i; + var h = i.phasedRegistrationNames; + if (h) { + for (o in h) h.hasOwnProperty(o) && l(h[o], u, p); + o = !0; + } else + i.registrationName + ? (l(i.registrationName, u, p), (o = !0)) + : (o = !1); + if (!o) throw a(Error(98), r, e); + } + } + } + } + function l(e, t, n) { + if (p[e]) throw a(Error(100), e); + (p[e] = t), (h[e] = t.eventTypes[n].dependencies); + } + var f = [], + d = {}, + p = {}, + h = {}; + function g(e, t, n, r, o, i, a, s, c) { + var u = Array.prototype.slice.call(arguments, 3); + try { + t.apply(n, u); + } catch (e) { + this.onError(e); } } - function Sa(e) { - if (wa) { - var t = xa; - if (t) { - var n = t; - if (!ka(e, t)) { - if (!(t = xn(n.nextSibling)) || !ka(e, t)) - return ( - (e.effectTag = (-1025 & e.effectTag) | 2), - (wa = !1), - void (_a = e) - ); - Ma(_a, n); + var m = !1, + b = null, + y = !1, + v = null, + _ = { + onError: function(e) { + (m = !0), (b = e); + } + }; + function w(e, t, n, r, o, i, a, s, c) { + (m = !1), (b = null), g.apply(_, arguments); + } + var x = null, + M = null, + k = null; + function S(e, t, n) { + var r = e.type || 'unknown-event'; + (e.currentTarget = k(n)), + (function(e, t, n, r, o, i, s, c, u) { + if ((w.apply(this, arguments), m)) { + if (!m) throw a(Error(198)); + var l = b; + (m = !1), (b = null), y || ((y = !0), (v = l)); } - (_a = e), (xa = xn(t.firstChild)); - } else (e.effectTag = (-1025 & e.effectTag) | 2), (wa = !1), (_a = e); + })(r, t, void 0, e), + (e.currentTarget = null); + } + function O(e, t) { + if (null == t) throw a(Error(30)); + return null == e + ? t + : Array.isArray(e) + ? Array.isArray(t) + ? (e.push.apply(e, t), e) + : (e.push(t), e) + : Array.isArray(t) + ? [e].concat(t) + : [e, t]; + } + function E(e, t, n) { + Array.isArray(e) ? e.forEach(t, n) : e && t.call(n, e); + } + var A = null; + function T(e) { + if (e) { + var t = e._dispatchListeners, + n = e._dispatchInstances; + if (Array.isArray(t)) + for (var r = 0; r < t.length && !e.isPropagationStopped(); r++) + S(e, t[r], n[r]); + else t && S(e, t, n); + (e._dispatchListeners = null), + (e._dispatchInstances = null), + e.isPersistent() || e.constructor.release(e); } } - function Aa(e) { - for ( - e = e.return; - null !== e && 5 !== e.tag && 3 !== e.tag && 13 !== e.tag; - - ) - e = e.return; - _a = e; + function C(e) { + if ((null !== e && (A = O(A, e)), (e = A), (A = null), e)) { + if ((E(e, T), A)) throw a(Error(95)); + if (y) throw ((e = v), (y = !1), (v = null), e); + } } - function Oa(e) { - if (e !== _a) return !1; - if (!wa) return Aa(e), (wa = !0), !1; - var t = e.type; - if ( - 5 !== e.tag || - ('head' !== t && 'body' !== t && !yn(t, e.memoizedProps)) - ) - for (t = xa; t; ) Ma(e, t), (t = xn(t.nextSibling)); - if ((Aa(e), 13 === e.tag)) { - if (!(e = null !== (e = e.memoizedState) ? e.dehydrated : null)) - throw Error(a(317)); - e: { - for (e = e.nextSibling, t = 0; e; ) { - if (8 === e.nodeType) { - var n = e.data; - if ('/$' === n) { - if (0 === t) { - xa = xn(e.nextSibling); - break e; - } - t--; - } else ('$' !== n && '$!' !== n && '$?' !== n) || t++; + var L = { + injectEventPluginOrder: function(e) { + if (s) throw a(Error(101)); + (s = Array.prototype.slice.call(e)), u(); + }, + injectEventPluginsByName: function(e) { + var t, + n = !1; + for (t in e) + if (e.hasOwnProperty(t)) { + var r = e[t]; + if (!c.hasOwnProperty(t) || c[t] !== r) { + if (c[t]) throw a(Error(102), t); + (c[t] = r), (n = !0); } - e = e.nextSibling; } - xa = null; - } - } else xa = _a ? xn(e.stateNode.nextSibling) : null; - return !0; + n && u(); + } + }; + function P(e, t) { + var n = e.stateNode; + if (!n) return null; + var r = x(n); + if (!r) return null; + n = r[t]; + e: switch (t) { + case 'onClick': + case 'onClickCapture': + case 'onDoubleClick': + case 'onDoubleClickCapture': + case 'onMouseDown': + case 'onMouseDownCapture': + case 'onMouseMove': + case 'onMouseMoveCapture': + case 'onMouseUp': + case 'onMouseUpCapture': + (r = !r.disabled) || + (r = !( + 'button' === (e = e.type) || + 'input' === e || + 'select' === e || + 'textarea' === e + )), + (e = !r); + break e; + default: + e = !1; + } + if (e) return null; + if (n && 'function' != typeof n) throw a(Error(231), t, typeof n); + return n; } - function Ea() { - (xa = _a = null), (wa = !1); + var D = Math.random() + .toString(36) + .slice(2), + j = '__reactInternalInstance$' + D, + z = '__reactEventHandlers$' + D; + function N(e) { + if (e[j]) return e[j]; + for (; !e[j]; ) { + if (!e.parentNode) return null; + e = e.parentNode; + } + return 5 === (e = e[j]).tag || 6 === e.tag ? e : null; } - var Ta = $.ReactCurrentOwner, - Ca = !1; - function La(e, t, n, r) { - t.child = null === e ? Ai(t, null, n, r) : Si(t, e.child, n, r); + function R(e) { + return !(e = e[j]) || (5 !== e.tag && 6 !== e.tag) ? null : e; } - function Pa(e, t, n, r, o) { - n = n.render; - var i = t.ref; - return ( - ri(t, o), - (r = Gi(e, t, n, r, i, o)), - null === e || Ca - ? ((t.effectTag |= 1), La(e, t, r, o), t.child) - : ((t.updateQueue = e.updateQueue), - (t.effectTag &= -517), - e.expirationTime <= o && (e.expirationTime = 0), - Ga(e, t, o)) - ); + function I(e) { + if (5 === e.tag || 6 === e.tag) return e.stateNode; + throw a(Error(33)); } - function Da(e, t, n, r, o, i) { - if (null === e) { - var a = n.type; - return 'function' != typeof a || - Sc(a) || - void 0 !== a.defaultProps || - null !== n.compare || - void 0 !== n.defaultProps - ? (((e = Oc(n.type, null, r, null, t.mode, i)).ref = t.ref), - (e.return = t), - (t.child = e)) - : ((t.tag = 15), (t.type = a), za(e, t, a, r, o, i)); + function F(e) { + return e[z] || null; + } + function q(e) { + do { + e = e.return; + } while (e && 5 !== e.tag); + return e || null; + } + function B(e, t, n) { + (t = P(e, n.dispatchConfig.phasedRegistrationNames[t])) && + ((n._dispatchListeners = O(n._dispatchListeners, t)), + (n._dispatchInstances = O(n._dispatchInstances, e))); + } + function H(e) { + if (e && e.dispatchConfig.phasedRegistrationNames) { + for (var t = e._targetInst, n = []; t; ) n.push(t), (t = q(t)); + for (t = n.length; 0 < t--; ) B(n[t], 'captured', e); + for (t = 0; t < n.length; t++) B(n[t], 'bubbled', e); } - return ( - (a = e.child), - o < i && - ((o = a.memoizedProps), - (n = null !== (n = n.compare) ? n : Fr)(o, r) && e.ref === t.ref) - ? Ga(e, t, i) - : ((t.effectTag |= 1), - ((e = Ac(a, r)).ref = t.ref), - (e.return = t), - (t.child = e)) - ); } - function za(e, t, n, r, o, i) { - return null !== e && - Fr(e.memoizedProps, r) && - e.ref === t.ref && - ((Ca = !1), o < i) - ? ((t.expirationTime = e.expirationTime), Ga(e, t, i)) - : ja(e, t, n, r, i); + function Y(e, t, n) { + e && + n && + n.dispatchConfig.registrationName && + (t = P(e, n.dispatchConfig.registrationName)) && + ((n._dispatchListeners = O(n._dispatchListeners, t)), + (n._dispatchInstances = O(n._dispatchInstances, e))); } - function Na(e, t) { - var n = t.ref; - ((null === e && null !== n) || (null !== e && e.ref !== n)) && - (t.effectTag |= 128); + function W(e) { + e && e.dispatchConfig.registrationName && Y(e._targetInst, null, e); } - function ja(e, t, n, r, o) { - var i = mo(n) ? ho : fo.current; + function V(e) { + E(e, H); + } + var U = !( + 'undefined' == typeof window || + void 0 === window.document || + void 0 === window.document.createElement + ); + function X(e, t) { + var n = {}; return ( - (i = go(t, i)), - ri(t, o), - (n = Gi(e, t, n, r, i, o)), - null === e || Ca - ? ((t.effectTag |= 1), La(e, t, n, o), t.child) - : ((t.updateQueue = e.updateQueue), - (t.effectTag &= -517), - e.expirationTime <= o && (e.expirationTime = 0), - Ga(e, t, o)) + (n[e.toLowerCase()] = t.toLowerCase()), + (n['Webkit' + e] = 'webkit' + t), + (n['Moz' + e] = 'moz' + t), + n ); } - function Ra(e, t, n, r, o) { - if (mo(n)) { - var i = !0; - _o(t); - } else i = !1; - if ((ri(t, o), null === t.stateNode)) - null !== e && - ((e.alternate = null), (t.alternate = null), (t.effectTag |= 2)), - yi(t, n, r), - _i(t, n, r, o), - (r = !0); - else if (null === e) { - var a = t.stateNode, - s = t.memoizedProps; - a.props = s; - var c = a.context, - u = n.contextType; - 'object' == typeof u && null !== u - ? (u = oi(u)) - : (u = go(t, (u = mo(n) ? ho : fo.current))); - var l = n.getDerivedStateFromProps, - f = - 'function' == typeof l || - 'function' == typeof a.getSnapshotBeforeUpdate; - f || - ('function' != typeof a.UNSAFE_componentWillReceiveProps && - 'function' != typeof a.componentWillReceiveProps) || - ((s !== r || c !== u) && vi(t, a, r, u)), - (ii = !1); - var d = t.memoizedState; - (a.state = d), - fi(t, r, a, o), - (c = t.memoizedState), - s !== r || d !== c || po.current || ii - ? ('function' == typeof l && - (gi(t, n, l, r), (c = t.memoizedState)), - (s = ii || bi(t, n, s, r, d, c, u)) - ? (f || - ('function' != typeof a.UNSAFE_componentWillMount && - 'function' != typeof a.componentWillMount) || - ('function' == typeof a.componentWillMount && - a.componentWillMount(), - 'function' == typeof a.UNSAFE_componentWillMount && - a.UNSAFE_componentWillMount()), - 'function' == typeof a.componentDidMount && - (t.effectTag |= 4)) - : ('function' == typeof a.componentDidMount && - (t.effectTag |= 4), - (t.memoizedProps = r), - (t.memoizedState = c)), - (a.props = r), - (a.state = c), - (a.context = u), - (r = s)) - : ('function' == typeof a.componentDidMount && (t.effectTag |= 4), - (r = !1)); - } else - (a = t.stateNode), - si(e, t), - (s = t.memoizedProps), - (a.props = t.type === t.elementType ? s : Ko(t.type, s)), - (c = a.context), - 'object' == typeof (u = n.contextType) && null !== u - ? (u = oi(u)) - : (u = go(t, (u = mo(n) ? ho : fo.current))), - (f = - 'function' == typeof (l = n.getDerivedStateFromProps) || - 'function' == typeof a.getSnapshotBeforeUpdate) || - ('function' != typeof a.UNSAFE_componentWillReceiveProps && - 'function' != typeof a.componentWillReceiveProps) || - ((s !== r || c !== u) && vi(t, a, r, u)), - (ii = !1), - (c = t.memoizedState), - (a.state = c), - fi(t, r, a, o), - (d = t.memoizedState), - s !== r || c !== d || po.current || ii - ? ('function' == typeof l && - (gi(t, n, l, r), (d = t.memoizedState)), - (l = ii || bi(t, n, s, r, c, d, u)) - ? (f || - ('function' != typeof a.UNSAFE_componentWillUpdate && - 'function' != typeof a.componentWillUpdate) || - ('function' == typeof a.componentWillUpdate && - a.componentWillUpdate(r, d, u), - 'function' == typeof a.UNSAFE_componentWillUpdate && - a.UNSAFE_componentWillUpdate(r, d, u)), - 'function' == typeof a.componentDidUpdate && - (t.effectTag |= 4), - 'function' == typeof a.getSnapshotBeforeUpdate && - (t.effectTag |= 256)) - : ('function' != typeof a.componentDidUpdate || - (s === e.memoizedProps && c === e.memoizedState) || - (t.effectTag |= 4), - 'function' != typeof a.getSnapshotBeforeUpdate || - (s === e.memoizedProps && c === e.memoizedState) || - (t.effectTag |= 256), - (t.memoizedProps = r), - (t.memoizedState = d)), - (a.props = r), - (a.state = d), - (a.context = u), - (r = l)) - : ('function' != typeof a.componentDidUpdate || - (s === e.memoizedProps && c === e.memoizedState) || - (t.effectTag |= 4), - 'function' != typeof a.getSnapshotBeforeUpdate || - (s === e.memoizedProps && c === e.memoizedState) || - (t.effectTag |= 256), - (r = !1)); - return Ia(e, t, n, r, i, o); + var G = { + animationend: X('Animation', 'AnimationEnd'), + animationiteration: X('Animation', 'AnimationIteration'), + animationstart: X('Animation', 'AnimationStart'), + transitionend: X('Transition', 'TransitionEnd') + }, + K = {}, + $ = {}; + function Q(e) { + if (K[e]) return K[e]; + if (!G[e]) return e; + var t, + n = G[e]; + for (t in n) if (n.hasOwnProperty(t) && t in $) return (K[e] = n[t]); + return e; } - function Ia(e, t, n, r, o, i) { - Na(e, t); - var a = 0 != (64 & t.effectTag); - if (!r && !a) return o && xo(t, n, !1), Ga(e, t, i); - (r = t.stateNode), (Ta.current = t); - var s = - a && 'function' != typeof n.getDerivedStateFromError - ? null - : r.render(); + U && + (($ = document.createElement('div').style), + 'AnimationEvent' in window || + (delete G.animationend.animation, + delete G.animationiteration.animation, + delete G.animationstart.animation), + 'TransitionEvent' in window || delete G.transitionend.transition); + var J = Q('animationend'), + Z = Q('animationiteration'), + ee = Q('animationstart'), + te = Q('transitionend'), + ne = 'abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting'.split( + ' ' + ), + re = null, + oe = null, + ie = null; + function ae() { + if (ie) return ie; + var e, + t, + n = oe, + r = n.length, + o = 'value' in re ? re.value : re.textContent, + i = o.length; + for (e = 0; e < r && n[e] === o[e]; e++); + var a = r - e; + for (t = 1; t <= a && n[r - t] === o[i - t]; t++); + return (ie = o.slice(e, 1 < t ? 1 - t : void 0)); + } + function se() { + return !0; + } + function ce() { + return !1; + } + function ue(e, t, n, r) { + for (var o in ((this.dispatchConfig = e), + (this._targetInst = t), + (this.nativeEvent = n), + (e = this.constructor.Interface))) + e.hasOwnProperty(o) && + ((t = e[o]) + ? (this[o] = t(n)) + : 'target' === o + ? (this.target = r) + : (this[o] = n[o])); return ( - (t.effectTag |= 1), - null !== e && a - ? ((t.child = Si(t, e.child, null, i)), - (t.child = Si(t, null, s, i))) - : La(e, t, s, i), - (t.memoizedState = r.state), - o && xo(t, n, !0), - t.child + (this.isDefaultPrevented = (null != n.defaultPrevented + ? n.defaultPrevented + : !1 === n.returnValue) + ? se + : ce), + (this.isPropagationStopped = ce), + this ); } - function Fa(e) { - var t = e.stateNode; - t.pendingContext - ? yo(0, t.pendingContext, t.pendingContext !== t.context) - : t.context && yo(0, t.context, !1), - Pi(e, t.containerInfo); - } - var qa, - Ba, - Ha, - Ya = { dehydrated: null, retryTime: 0 }; - function Wa(e, t, n) { - var r, - o = t.mode, - i = t.pendingProps, - a = ji.current, - s = !1; - if ( - ((r = 0 != (64 & t.effectTag)) || - (r = 0 != (2 & a) && (null === e || null !== e.memoizedState)), - r - ? ((s = !0), (t.effectTag &= -65)) - : (null !== e && null === e.memoizedState) || - void 0 === i.fallback || - !0 === i.unstable_avoidThisFallback || - (a |= 1), - uo(ji, 1 & a), - null === e) - ) { - if ((void 0 !== i.fallback && Sa(t), s)) { - if ( - ((s = i.fallback), - ((i = Ec(null, o, 0, null)).return = t), - 0 == (2 & t.mode)) - ) - for ( - e = null !== t.memoizedState ? t.child.child : t.child, - i.child = e; - null !== e; - - ) - (e.return = i), (e = e.sibling); - return ( - ((n = Ec(s, o, n, null)).return = t), - (i.sibling = n), - (t.memoizedState = Ya), - (t.child = i), - n - ); - } - return ( - (o = i.children), - (t.memoizedState = null), - (t.child = Ai(t, null, o, n)) - ); - } - if (null !== e.memoizedState) { - if (((o = (e = e.child).sibling), s)) { - if ( - ((i = i.fallback), - ((n = Ac(e, e.pendingProps)).return = t), - 0 == (2 & t.mode) && - (s = null !== t.memoizedState ? t.child.child : t.child) !== - e.child) - ) - for (n.child = s; null !== s; ) (s.return = n), (s = s.sibling); - return ( - ((o = Ac(o, i)).return = t), - (n.sibling = o), - (n.childExpirationTime = 0), - (t.memoizedState = Ya), - (t.child = n), - o - ); - } - return ( - (n = Si(t, e.child, i.children, n)), - (t.memoizedState = null), - (t.child = n) - ); - } - if (((e = e.child), s)) { - if ( - ((s = i.fallback), - ((i = Ec(null, o, 0, null)).return = t), - (i.child = e), - null !== e && (e.return = i), - 0 == (2 & t.mode)) - ) - for ( - e = null !== t.memoizedState ? t.child.child : t.child, - i.child = e; - null !== e; - - ) - (e.return = i), (e = e.sibling); - return ( - ((n = Ec(s, o, n, null)).return = t), - (i.sibling = n), - (n.effectTag |= 2), - (i.childExpirationTime = 0), - (t.memoizedState = Ya), - (t.child = i), - n - ); + function le(e, t, n, r) { + if (this.eventPool.length) { + var o = this.eventPool.pop(); + return this.call(o, e, t, n, r), o; } - return (t.memoizedState = null), (t.child = Si(t, e, i.children, n)); + return new this(e, t, n, r); } - function Va(e, t) { - e.expirationTime < t && (e.expirationTime = t); - var n = e.alternate; - null !== n && n.expirationTime < t && (n.expirationTime = t), - ni(e.return, t); + function fe(e) { + if (!(e instanceof this)) throw a(Error(279)); + e.destructor(), 10 > this.eventPool.length && this.eventPool.push(e); } - function Ua(e, t, n, r, o, i) { - var a = e.memoizedState; - null === a - ? (e.memoizedState = { - isBackwards: t, - rendering: null, - renderingStartTime: 0, - last: r, - tail: n, - tailExpiration: 0, - tailMode: o, - lastEffect: i - }) - : ((a.isBackwards = t), - (a.rendering = null), - (a.renderingStartTime = 0), - (a.last = r), - (a.tail = n), - (a.tailExpiration = 0), - (a.tailMode = o), - (a.lastEffect = i)); + function de(e) { + (e.eventPool = []), (e.getPooled = le), (e.release = fe); } - function Xa(e, t, n) { - var r = t.pendingProps, - o = r.revealOrder, - i = r.tail; - if ((La(e, t, r.children, n), 0 != (2 & (r = ji.current)))) - (r = (1 & r) | 2), (t.effectTag |= 64); - else { - if (null !== e && 0 != (64 & e.effectTag)) - e: for (e = t.child; null !== e; ) { - if (13 === e.tag) null !== e.memoizedState && Va(e, n); - else if (19 === e.tag) Va(e, n); - else if (null !== e.child) { - (e.child.return = e), (e = e.child); - continue; - } - if (e === t) break e; - for (; null === e.sibling; ) { - if (null === e.return || e.return === t) break e; - e = e.return; - } - (e.sibling.return = e.return), (e = e.sibling); - } - r &= 1; + o(ue.prototype, { + preventDefault: function() { + this.defaultPrevented = !0; + var e = this.nativeEvent; + e && + (e.preventDefault + ? e.preventDefault() + : 'unknown' != typeof e.returnValue && (e.returnValue = !1), + (this.isDefaultPrevented = se)); + }, + stopPropagation: function() { + var e = this.nativeEvent; + e && + (e.stopPropagation + ? e.stopPropagation() + : 'unknown' != typeof e.cancelBubble && (e.cancelBubble = !0), + (this.isPropagationStopped = se)); + }, + persist: function() { + this.isPersistent = se; + }, + isPersistent: ce, + destructor: function() { + var e, + t = this.constructor.Interface; + for (e in t) this[e] = null; + (this.nativeEvent = this._targetInst = this.dispatchConfig = null), + (this.isPropagationStopped = this.isDefaultPrevented = ce), + (this._dispatchInstances = this._dispatchListeners = null); } - if ((uo(ji, r), 0 == (2 & t.mode))) t.memoizedState = null; - else - switch (o) { - case 'forwards': - for (n = t.child, o = null; null !== n; ) - null !== (e = n.alternate) && null === Ri(e) && (o = n), - (n = n.sibling); - null === (n = o) - ? ((o = t.child), (t.child = null)) - : ((o = n.sibling), (n.sibling = null)), - Ua(t, !1, o, n, i, t.lastEffect); - break; - case 'backwards': - for (n = null, o = t.child, t.child = null; null !== o; ) { - if (null !== (e = o.alternate) && null === Ri(e)) { - t.child = o; - break; - } - (e = o.sibling), (o.sibling = n), (n = o), (o = e); - } - Ua(t, !0, n, null, i, t.lastEffect); - break; - case 'together': - Ua(t, !1, null, null, void 0, t.lastEffect); - break; - default: - t.memoizedState = null; + }), + (ue.Interface = { + type: null, + target: null, + currentTarget: function() { + return null; + }, + eventPhase: null, + bubbles: null, + cancelable: null, + timeStamp: function(e) { + return e.timeStamp || Date.now(); + }, + defaultPrevented: null, + isTrusted: null + }), + (ue.extend = function(e) { + function t() {} + function n() { + return r.apply(this, arguments); } - return t.child; - } - function Ga(e, t, n) { - null !== e && (t.dependencies = e.dependencies); - var r = t.expirationTime; - if ((0 !== r && ac(r), t.childExpirationTime < n)) return null; - if (null !== e && t.child !== e.child) throw Error(a(153)); - if (null !== t.child) { - for ( - n = Ac((e = t.child), e.pendingProps), t.child = n, n.return = t; - null !== e.sibling; - - ) - (e = e.sibling), - ((n = n.sibling = Ac(e, e.pendingProps)).return = t); - n.sibling = null; + var r = this; + t.prototype = r.prototype; + var i = new t(); + return ( + o(i, n.prototype), + (n.prototype = i), + (n.prototype.constructor = n), + (n.Interface = o({}, r.Interface, e)), + (n.extend = r.extend), + de(n), + n + ); + }), + de(ue); + var pe = ue.extend({ data: null }), + he = ue.extend({ data: null }), + ge = [9, 13, 27, 32], + me = U && 'CompositionEvent' in window, + be = null; + U && 'documentMode' in document && (be = document.documentMode); + var ye = U && 'TextEvent' in window && !be, + ve = U && (!me || (be && 8 < be && 11 >= be)), + _e = String.fromCharCode(32), + we = { + beforeInput: { + phasedRegistrationNames: { + bubbled: 'onBeforeInput', + captured: 'onBeforeInputCapture' + }, + dependencies: ['compositionend', 'keypress', 'textInput', 'paste'] + }, + compositionEnd: { + phasedRegistrationNames: { + bubbled: 'onCompositionEnd', + captured: 'onCompositionEndCapture' + }, + dependencies: 'blur compositionend keydown keypress keyup mousedown'.split( + ' ' + ) + }, + compositionStart: { + phasedRegistrationNames: { + bubbled: 'onCompositionStart', + captured: 'onCompositionStartCapture' + }, + dependencies: 'blur compositionstart keydown keypress keyup mousedown'.split( + ' ' + ) + }, + compositionUpdate: { + phasedRegistrationNames: { + bubbled: 'onCompositionUpdate', + captured: 'onCompositionUpdateCapture' + }, + dependencies: 'blur compositionupdate keydown keypress keyup mousedown'.split( + ' ' + ) + } + }, + xe = !1; + function Me(e, t) { + switch (e) { + case 'keyup': + return -1 !== ge.indexOf(t.keyCode); + case 'keydown': + return 229 !== t.keyCode; + case 'keypress': + case 'mousedown': + case 'blur': + return !0; + default: + return !1; } - return t.child; } - function Ka(e, t) { - switch (e.tailMode) { - case 'hidden': - t = e.tail; - for (var n = null; null !== t; ) - null !== t.alternate && (n = t), (t = t.sibling); - null === n ? (e.tail = null) : (n.sibling = null); - break; - case 'collapsed': - n = e.tail; - for (var r = null; null !== n; ) - null !== n.alternate && (r = n), (n = n.sibling); - null === r - ? t || null === e.tail - ? (e.tail = null) - : (e.tail.sibling = null) - : (r.sibling = null); - } + function ke(e) { + return 'object' == typeof (e = e.detail) && 'data' in e ? e.data : null; } - function $a(e, t, n) { - var r = t.pendingProps; - switch (t.tag) { - case 2: - case 16: - case 15: - case 0: - case 11: - case 7: - case 8: - case 12: - case 9: - case 14: - return null; - case 1: - return mo(t.type) && bo(), null; - case 3: - return ( - Di(), - co(po), - co(fo), - (n = t.stateNode).pendingContext && - ((n.context = n.pendingContext), (n.pendingContext = null)), - (null !== e && null !== e.child) || !Oa(t) || (t.effectTag |= 4), - null - ); - case 5: - Ni(t), (n = Li(Ci.current)); - var i = t.type; - if (null !== e && null != t.stateNode) - Ba(e, t, i, r, n), e.ref !== t.ref && (t.effectTag |= 128); - else { - if (!r) { - if (null === t.stateNode) throw Error(a(166)); - return null; - } - if (((e = Li(Ei.current)), Oa(t))) { - (r = t.stateNode), (i = t.type); - var s = t.memoizedProps; - switch (((r[kn] = t), (r[Sn] = s), i)) { - case 'iframe': - case 'object': - case 'embed': - Xt('load', r); - break; - case 'video': - case 'audio': - for (e = 0; e < $e.length; e++) Xt($e[e], r); - break; - case 'source': - Xt('error', r); - break; - case 'img': - case 'image': - case 'link': - Xt('error', r), Xt('load', r); - break; - case 'form': - Xt('reset', r), Xt('submit', r); - break; - case 'details': - Xt('toggle', r); - break; - case 'input': - Me(r, s), Xt('invalid', r), cn(n, 'onChange'); - break; - case 'select': - (r._wrapperState = { wasMultiple: !!s.multiple }), - Xt('invalid', r), - cn(n, 'onChange'); - break; - case 'textarea': - Le(r, s), Xt('invalid', r), cn(n, 'onChange'); - } - for (var c in (on(i, s), (e = null), s)) - if (s.hasOwnProperty(c)) { - var u = s[c]; - 'children' === c - ? 'string' == typeof u - ? r.textContent !== u && (e = ['children', u]) - : 'number' == typeof u && - r.textContent !== '' + u && - (e = ['children', '' + u]) - : k.hasOwnProperty(c) && null != u && cn(n, c); - } - switch (i) { - case 'input': - _e(r), Ae(r, s, !0); - break; - case 'textarea': - _e(r), De(r); - break; - case 'select': - case 'option': - break; - default: - 'function' == typeof s.onClick && (r.onclick = un); - } - (n = e), (t.updateQueue = n), null !== n && (t.effectTag |= 4); - } else { - switch ( - ((c = 9 === n.nodeType ? n : n.ownerDocument), - e === sn && (e = je(i)), - e === sn - ? 'script' === i - ? (((e = c.createElement('div')).innerHTML = - ''), - (e = e.removeChild(e.firstChild))) - : 'string' == typeof r.is - ? (e = c.createElement(i, { is: r.is })) - : ((e = c.createElement(i)), - 'select' === i && - ((c = e), - r.multiple - ? (c.multiple = !0) - : r.size && (c.size = r.size))) - : (e = c.createElementNS(e, i)), - (e[kn] = t), - (e[Sn] = r), - qa(e, t), - (t.stateNode = e), - (c = an(i, r)), - i) - ) { - case 'iframe': - case 'object': - case 'embed': - Xt('load', e), (u = r); - break; - case 'video': - case 'audio': - for (u = 0; u < $e.length; u++) Xt($e[u], e); - u = r; - break; - case 'source': - Xt('error', e), (u = r); - break; - case 'img': - case 'image': - case 'link': - Xt('error', e), Xt('load', e), (u = r); - break; - case 'form': - Xt('reset', e), Xt('submit', e), (u = r); - break; - case 'details': - Xt('toggle', e), (u = r); - break; - case 'input': - Me(e, r), - (u = we(e, r)), - Xt('invalid', e), - cn(n, 'onChange'); - break; - case 'option': - u = Ee(e, r); - break; - case 'select': - (e._wrapperState = { wasMultiple: !!r.multiple }), - (u = o({}, r, { value: void 0 })), - Xt('invalid', e), - cn(n, 'onChange'); - break; - case 'textarea': - Le(e, r), - (u = Ce(e, r)), - Xt('invalid', e), - cn(n, 'onChange'); - break; - default: - u = r; - } - on(i, u); - var l = u; - for (s in l) - if (l.hasOwnProperty(s)) { - var f = l[s]; - 'style' === s - ? nn(e, f) - : 'dangerouslySetInnerHTML' === s - ? null != (f = f ? f.__html : void 0) && Fe(e, f) - : 'children' === s - ? 'string' == typeof f - ? ('textarea' !== i || '' !== f) && qe(e, f) - : 'number' == typeof f && qe(e, '' + f) - : 'suppressContentEditableWarning' !== s && - 'suppressHydrationWarning' !== s && - 'autoFocus' !== s && - (k.hasOwnProperty(s) - ? null != f && cn(n, s) - : null != f && Q(e, s, f, c)); - } - switch (i) { - case 'input': - _e(e), Ae(e, r, !1); - break; - case 'textarea': - _e(e), De(e); - break; - case 'option': - null != r.value && - e.setAttribute('value', '' + ye(r.value)); - break; - case 'select': - (e.multiple = !!r.multiple), - null != (n = r.value) - ? Te(e, !!r.multiple, n, !1) - : null != r.defaultValue && - Te(e, !!r.multiple, r.defaultValue, !0); - break; - default: - 'function' == typeof u.onClick && (e.onclick = un); + var Se = !1; + var Oe = { + eventTypes: we, + extractEvents: function(e, t, n, r) { + var o = void 0, + i = void 0; + if (me) + e: { + switch (e) { + case 'compositionstart': + o = we.compositionStart; + break e; + case 'compositionend': + o = we.compositionEnd; + break e; + case 'compositionupdate': + o = we.compositionUpdate; + break e; } - bn(i, r) && (t.effectTag |= 4); + o = void 0; } - null !== t.ref && (t.effectTag |= 128); - } - return null; - case 6: - if (e && null != t.stateNode) Ha(0, t, e.memoizedProps, r); - else { - if ('string' != typeof r && null === t.stateNode) - throw Error(a(166)); - (n = Li(Ci.current)), - Li(Ei.current), - Oa(t) - ? ((n = t.stateNode), - (r = t.memoizedProps), - (n[kn] = t), - n.nodeValue !== r && (t.effectTag |= 4)) - : (((n = (9 === n.nodeType - ? n - : n.ownerDocument - ).createTextNode(r))[kn] = t), - (t.stateNode = n)); - } - return null; - case 13: - return ( - co(ji), - (r = t.memoizedState), - 0 != (64 & t.effectTag) - ? ((t.expirationTime = n), t) - : ((n = null !== r), - (r = !1), - null === e - ? void 0 !== t.memoizedProps.fallback && Oa(t) - : ((r = null !== (i = e.memoizedState)), - n || - null === i || - (null !== (i = e.child.sibling) && - (null !== (s = t.firstEffect) - ? ((t.firstEffect = i), (i.nextEffect = s)) - : ((t.firstEffect = t.lastEffect = i), - (i.nextEffect = null)), - (i.effectTag = 8)))), - n && - !r && - 0 != (2 & t.mode) && - ((null === e && - !0 !== t.memoizedProps.unstable_avoidThisFallback) || - 0 != (1 & ji.current) - ? Os === _s && (Os = xs) - : ((Os !== _s && Os !== xs) || (Os = ws), - 0 !== Ps && null !== ks && (Dc(ks, As), zc(ks, Ps)))), - (n || r) && (t.effectTag |= 4), - null) - ); - case 4: - return Di(), null; - case 10: - return ti(t), null; - case 17: - return mo(t.type) && bo(), null; - case 19: - if ((co(ji), null === (r = t.memoizedState))) return null; - if (((i = 0 != (64 & t.effectTag)), null === (s = r.rendering))) { - if (i) Ka(r, !1); - else if (Os !== _s || (null !== e && 0 != (64 & e.effectTag))) - for (s = t.child; null !== s; ) { - if (null !== (e = Ri(s))) { - for ( - t.effectTag |= 64, - Ka(r, !1), - null !== (i = e.updateQueue) && - ((t.updateQueue = i), (t.effectTag |= 4)), - null === r.lastEffect && (t.firstEffect = null), - t.lastEffect = r.lastEffect, - r = t.child; - null !== r; - - ) - (s = n), - ((i = r).effectTag &= 2), - (i.nextEffect = null), - (i.firstEffect = null), - (i.lastEffect = null), - null === (e = i.alternate) - ? ((i.childExpirationTime = 0), - (i.expirationTime = s), - (i.child = null), - (i.memoizedProps = null), - (i.memoizedState = null), - (i.updateQueue = null), - (i.dependencies = null)) - : ((i.childExpirationTime = e.childExpirationTime), - (i.expirationTime = e.expirationTime), - (i.child = e.child), - (i.memoizedProps = e.memoizedProps), - (i.memoizedState = e.memoizedState), - (i.updateQueue = e.updateQueue), - (s = e.dependencies), - (i.dependencies = - null === s - ? null - : { - expirationTime: s.expirationTime, - firstContext: s.firstContext, - responders: s.responders - })), - (r = r.sibling); - return uo(ji, (1 & ji.current) | 2), t.child; - } - s = s.sibling; - } - } else { - if (!i) - if (null !== (e = Ri(s))) { - if ( - ((t.effectTag |= 64), - (i = !0), - null !== (n = e.updateQueue) && - ((t.updateQueue = n), (t.effectTag |= 4)), - Ka(r, !0), - null === r.tail && 'hidden' === r.tailMode && !s.alternate) - ) - return ( - null !== (t = t.lastEffect = r.lastEffect) && - (t.nextEffect = null), - null - ); - } else - 2 * qo() - r.renderingStartTime > r.tailExpiration && - 1 < n && - ((t.effectTag |= 64), - (i = !0), - Ka(r, !1), - (t.expirationTime = t.childExpirationTime = n - 1)); - r.isBackwards - ? ((s.sibling = t.child), (t.child = s)) - : (null !== (n = r.last) ? (n.sibling = s) : (t.child = s), - (r.last = s)); - } - return null !== r.tail - ? (0 === r.tailExpiration && (r.tailExpiration = qo() + 500), - (n = r.tail), - (r.rendering = n), - (r.tail = n.sibling), - (r.lastEffect = t.lastEffect), - (r.renderingStartTime = qo()), - (n.sibling = null), - (t = ji.current), - uo(ji, i ? (1 & t) | 2 : 1 & t), - n) - : null; - } - throw Error(a(156, t.tag)); - } - function Qa(e) { - switch (e.tag) { - case 1: - mo(e.type) && bo(); - var t = e.effectTag; - return 4096 & t ? ((e.effectTag = (-4097 & t) | 64), e) : null; - case 3: - if ((Di(), co(po), co(fo), 0 != (64 & (t = e.effectTag)))) - throw Error(a(285)); - return (e.effectTag = (-4097 & t) | 64), e; - case 5: - return Ni(e), null; - case 13: + else + Se + ? Me(e, n) && (o = we.compositionEnd) + : 'keydown' === e && + 229 === n.keyCode && + (o = we.compositionStart); return ( - co(ji), - 4096 & (t = e.effectTag) - ? ((e.effectTag = (-4097 & t) | 64), e) - : null - ); - case 19: - return co(ji), null; - case 4: - return Di(), null; - case 10: - return ti(e), null; - default: - return null; - } - } - function Ja(e, t) { - return { value: e, source: t, stack: be(t) }; - } - (qa = function(e, t) { - for (var n = t.child; null !== n; ) { - if (5 === n.tag || 6 === n.tag) e.appendChild(n.stateNode); - else if (4 !== n.tag && null !== n.child) { - (n.child.return = n), (n = n.child); - continue; - } - if (n === t) break; - for (; null === n.sibling; ) { - if (null === n.return || n.return === t) return; - n = n.return; - } - (n.sibling.return = n.return), (n = n.sibling); - } - }), - (Ba = function(e, t, n, r, i) { - var a = e.memoizedProps; - if (a !== r) { - var s, - c, - u = t.stateNode; - switch ((Li(Ei.current), (e = null), n)) { - case 'input': - (a = we(u, a)), (r = we(u, r)), (e = []); - break; - case 'option': - (a = Ee(u, a)), (r = Ee(u, r)), (e = []); - break; - case 'select': - (a = o({}, a, { value: void 0 })), - (r = o({}, r, { value: void 0 })), - (e = []); - break; - case 'textarea': - (a = Ce(u, a)), (r = Ce(u, r)), (e = []); - break; - default: - 'function' != typeof a.onClick && - 'function' == typeof r.onClick && - (u.onclick = un); - } - for (s in (on(n, r), (n = null), a)) - if (!r.hasOwnProperty(s) && a.hasOwnProperty(s) && null != a[s]) - if ('style' === s) - for (c in (u = a[s])) - u.hasOwnProperty(c) && (n || (n = {}), (n[c] = '')); - else - 'dangerouslySetInnerHTML' !== s && - 'children' !== s && - 'suppressContentEditableWarning' !== s && - 'suppressHydrationWarning' !== s && - 'autoFocus' !== s && - (k.hasOwnProperty(s) - ? e || (e = []) - : (e = e || []).push(s, null)); - for (s in r) { - var l = r[s]; - if ( - ((u = null != a ? a[s] : void 0), - r.hasOwnProperty(s) && l !== u && (null != l || null != u)) - ) - if ('style' === s) - if (u) { - for (c in u) - !u.hasOwnProperty(c) || - (l && l.hasOwnProperty(c)) || - (n || (n = {}), (n[c] = '')); - for (c in l) - l.hasOwnProperty(c) && - u[c] !== l[c] && - (n || (n = {}), (n[c] = l[c])); - } else n || (e || (e = []), e.push(s, n)), (n = l); - else - 'dangerouslySetInnerHTML' === s - ? ((l = l ? l.__html : void 0), - (u = u ? u.__html : void 0), - null != l && u !== l && (e = e || []).push(s, l)) - : 'children' === s - ? u === l || - ('string' != typeof l && 'number' != typeof l) || - (e = e || []).push(s, '' + l) - : 'suppressContentEditableWarning' !== s && - 'suppressHydrationWarning' !== s && - (k.hasOwnProperty(s) - ? (null != l && cn(i, s), e || u === l || (e = [])) - : (e = e || []).push(s, l)); - } - n && (e = e || []).push('style', n), - (i = e), - (t.updateQueue = i) && (t.effectTag |= 4); - } - }), - (Ha = function(e, t, n, r) { - n !== r && (t.effectTag |= 4); - }); - var Za = 'function' == typeof WeakSet ? WeakSet : Set; - function es(e, t) { - var n = t.source, - r = t.stack; - null === r && null !== n && (r = be(n)), - null !== n && me(n.type), - (t = t.value), - null !== e && 1 === e.tag && me(e.type); - try { - console.error(t); - } catch (e) { - setTimeout(function() { - throw e; - }); + o + ? (ve && + 'ko' !== n.locale && + (Se || o !== we.compositionStart + ? o === we.compositionEnd && Se && (i = ae()) + : ((oe = 'value' in (re = r) ? re.value : re.textContent), + (Se = !0))), + (o = pe.getPooled(o, t, n, r)), + i ? (o.data = i) : null !== (i = ke(n)) && (o.data = i), + V(o), + (i = o)) + : (i = null), + (e = ye + ? (function(e, t) { + switch (e) { + case 'compositionend': + return ke(t); + case 'keypress': + return 32 !== t.which ? null : ((xe = !0), _e); + case 'textInput': + return (e = t.data) === _e && xe ? null : e; + default: + return null; + } + })(e, n) + : (function(e, t) { + if (Se) + return 'compositionend' === e || (!me && Me(e, t)) + ? ((e = ae()), (ie = oe = re = null), (Se = !1), e) + : null; + switch (e) { + case 'paste': + return null; + case 'keypress': + if ( + !(t.ctrlKey || t.altKey || t.metaKey) || + (t.ctrlKey && t.altKey) + ) { + if (t.char && 1 < t.char.length) return t.char; + if (t.which) return String.fromCharCode(t.which); + } + return null; + case 'compositionend': + return ve && 'ko' !== t.locale ? null : t.data; + default: + return null; + } + })(e, n)) + ? (((t = he.getPooled(we.beforeInput, t, n, r)).data = e), V(t)) + : (t = null), + null === i ? t : null === t ? i : [i, t] + ); + } + }, + Ee = null, + Ae = null, + Te = null; + function Ce(e) { + if ((e = M(e))) { + if ('function' != typeof Ee) throw a(Error(280)); + var t = x(e.stateNode); + Ee(e.stateNode, e.type, t); } } - function ts(e) { - var t = e.ref; - if (null !== t) - if ('function' == typeof t) - try { - t(null); - } catch (t) { - yc(e, t); - } - else t.current = null; + function Le(e) { + Ae ? (Te ? Te.push(e) : (Te = [e])) : (Ae = e); } - function ns(e, t) { - switch (t.tag) { - case 0: - case 11: - case 15: - case 22: - return; - case 1: - if (256 & t.effectTag && null !== e) { - var n = e.memoizedProps, - r = e.memoizedState; - (t = (e = t.stateNode).getSnapshotBeforeUpdate( - t.elementType === t.type ? n : Ko(t.type, n), - r - )), - (e.__reactInternalSnapshotBeforeUpdate = t); - } - return; - case 3: - case 5: - case 6: - case 4: - case 17: - return; + function Pe() { + if (Ae) { + var e = Ae, + t = Te; + if (((Te = Ae = null), Ce(e), t)) + for (e = 0; e < t.length; e++) Ce(t[e]); } - throw Error(a(163)); } - function rs(e, t) { - if (null !== (t = null !== (t = t.updateQueue) ? t.lastEffect : null)) { - var n = (t = t.next); - do { - if ((n.tag & e) === e) { - var r = n.destroy; - (n.destroy = void 0), void 0 !== r && r(); - } - n = n.next; - } while (n !== t); - } + function De(e, t) { + return e(t); } - function os(e, t) { - if (null !== (t = null !== (t = t.updateQueue) ? t.lastEffect : null)) { - var n = (t = t.next); - do { - if ((n.tag & e) === e) { - var r = n.create; - n.destroy = r(); - } - n = n.next; - } while (n !== t); - } + function je(e, t, n, r) { + return e(t, n, r); } - function is(e, t, n) { - switch (n.tag) { - case 0: - case 11: - case 15: - case 22: - return void os(3, n); - case 1: - if (((e = n.stateNode), 4 & n.effectTag)) - if (null === t) e.componentDidMount(); - else { - var r = - n.elementType === n.type - ? t.memoizedProps - : Ko(n.type, t.memoizedProps); - e.componentDidUpdate( - r, - t.memoizedState, - e.__reactInternalSnapshotBeforeUpdate - ); - } - return void (null !== (t = n.updateQueue) && di(n, t, e)); - case 3: - if (null !== (t = n.updateQueue)) { - if (((e = null), null !== n.child)) - switch (n.child.tag) { - case 5: - e = n.child.stateNode; - break; - case 1: - e = n.child.stateNode; - } - di(n, t, e); - } - return; - case 5: - return ( - (e = n.stateNode), - void ( - null === t && - 4 & n.effectTag && - bn(n.type, n.memoizedProps) && - e.focus() - ) - ); - case 6: - case 4: - case 12: - return; - case 13: - return void ( - null === n.memoizedState && - ((n = n.alternate), - null !== n && - ((n = n.memoizedState), - null !== n && ((n = n.dehydrated), null !== n && jt(n)))) - ); - case 19: - case 17: - case 20: - case 21: - return; - } - throw Error(a(163)); + function ze() {} + var Ne = De, + Re = !1; + function Ie() { + (null === Ae && null === Te) || (ze(), Pe()); } - function as(e, t, n) { - switch (('function' == typeof wc && wc(t), t.tag)) { - case 0: - case 11: - case 14: - case 15: - case 22: - if (null !== (e = t.updateQueue) && null !== (e = e.lastEffect)) { - var r = e.next; - Yo(97 < n ? 97 : n, function() { - var e = r; - do { - var n = e.destroy; - if (void 0 !== n) { - var o = t; - try { - n(); - } catch (e) { - yc(o, e); - } + var Fe = { + color: !0, + date: !0, + datetime: !0, + 'datetime-local': !0, + email: !0, + month: !0, + number: !0, + password: !0, + range: !0, + search: !0, + tel: !0, + text: !0, + time: !0, + url: !0, + week: !0 + }; + function qe(e) { + var t = e && e.nodeName && e.nodeName.toLowerCase(); + return 'input' === t ? !!Fe[e.type] : 'textarea' === t; + } + function Be(e) { + return ( + (e = e.target || e.srcElement || window).correspondingUseElement && + (e = e.correspondingUseElement), + 3 === e.nodeType ? e.parentNode : e + ); + } + function He(e) { + if (!U) return !1; + var t = (e = 'on' + e) in document; + return ( + t || + ((t = document.createElement('div')).setAttribute(e, 'return;'), + (t = 'function' == typeof t[e])), + t + ); + } + function Ye(e) { + var t = e.type; + return ( + (e = e.nodeName) && + 'input' === e.toLowerCase() && + ('checkbox' === t || 'radio' === t) + ); + } + function We(e) { + e._valueTracker || + (e._valueTracker = (function(e) { + var t = Ye(e) ? 'checked' : 'value', + n = Object.getOwnPropertyDescriptor(e.constructor.prototype, t), + r = '' + e[t]; + if ( + !e.hasOwnProperty(t) && + void 0 !== n && + 'function' == typeof n.get && + 'function' == typeof n.set + ) { + var o = n.get, + i = n.set; + return ( + Object.defineProperty(e, t, { + configurable: !0, + get: function() { + return o.call(this); + }, + set: function(e) { + (r = '' + e), i.call(this, e); } - e = e.next; - } while (e !== r); - }); - } - break; - case 1: - ts(t), - 'function' == typeof (n = t.stateNode).componentWillUnmount && - (function(e, t) { - try { - (t.props = e.memoizedProps), - (t.state = e.memoizedState), - t.componentWillUnmount(); - } catch (t) { - yc(e, t); + }), + Object.defineProperty(e, t, { enumerable: n.enumerable }), + { + getValue: function() { + return r; + }, + setValue: function(e) { + r = '' + e; + }, + stopTracking: function() { + (e._valueTracker = null), delete e[t]; } - })(t, n); - break; - case 5: - ts(t); - break; - case 4: - ls(e, t, n); - } + } + ); + } + })(e)); } - function ss(e) { - var t = e.alternate; - (e.return = null), - (e.child = null), - (e.memoizedState = null), - (e.updateQueue = null), - (e.dependencies = null), - (e.alternate = null), - (e.firstEffect = null), - (e.lastEffect = null), - (e.pendingProps = null), - (e.memoizedProps = null), - (e.stateNode = null), - null !== t && ss(t); + function Ve(e) { + if (!e) return !1; + var t = e._valueTracker; + if (!t) return !0; + var n = t.getValue(), + r = ''; + return ( + e && (r = Ye(e) ? (e.checked ? 'true' : 'false') : e.value), + (e = r) !== n && (t.setValue(e), !0) + ); } - function cs(e) { - return 5 === e.tag || 3 === e.tag || 4 === e.tag; + var Ue = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + Ue.hasOwnProperty('ReactCurrentDispatcher') || + (Ue.ReactCurrentDispatcher = { current: null }), + Ue.hasOwnProperty('ReactCurrentBatchConfig') || + (Ue.ReactCurrentBatchConfig = { suspense: null }); + var Xe = /^(.*)[\\\/]/, + Ge = 'function' == typeof Symbol && Symbol.for, + Ke = Ge ? Symbol.for('react.element') : 60103, + $e = Ge ? Symbol.for('react.portal') : 60106, + Qe = Ge ? Symbol.for('react.fragment') : 60107, + Je = Ge ? Symbol.for('react.strict_mode') : 60108, + Ze = Ge ? Symbol.for('react.profiler') : 60114, + et = Ge ? Symbol.for('react.provider') : 60109, + tt = Ge ? Symbol.for('react.context') : 60110, + nt = Ge ? Symbol.for('react.concurrent_mode') : 60111, + rt = Ge ? Symbol.for('react.forward_ref') : 60112, + ot = Ge ? Symbol.for('react.suspense') : 60113, + it = Ge ? Symbol.for('react.suspense_list') : 60120, + at = Ge ? Symbol.for('react.memo') : 60115, + st = Ge ? Symbol.for('react.lazy') : 60116; + Ge && Symbol.for('react.fundamental'), + Ge && Symbol.for('react.responder'); + var ct = 'function' == typeof Symbol && Symbol.iterator; + function ut(e) { + return null === e || 'object' != typeof e + ? null + : 'function' == typeof (e = (ct && e[ct]) || e['@@iterator']) + ? e + : null; } - function us(e) { - e: { - for (var t = e.return; null !== t; ) { - if (cs(t)) { - var n = t; - break e; - } - t = t.return; - } - throw Error(a(160)); - } - switch (((t = n.stateNode), n.tag)) { - case 5: - var r = !1; - break; - case 3: - case 4: - (t = t.containerInfo), (r = !0); - break; - default: - throw Error(a(161)); + function lt(e) { + if (null == e) return null; + if ('function' == typeof e) return e.displayName || e.name || null; + if ('string' == typeof e) return e; + switch (e) { + case Qe: + return 'Fragment'; + case $e: + return 'Portal'; + case Ze: + return 'Profiler'; + case Je: + return 'StrictMode'; + case ot: + return 'Suspense'; + case it: + return 'SuspenseList'; } - 16 & n.effectTag && (qe(t, ''), (n.effectTag &= -17)); - e: t: for (n = e; ; ) { - for (; null === n.sibling; ) { - if (null === n.return || cs(n.return)) { - n = null; - break e; - } - n = n.return; + if ('object' == typeof e) + switch (e.$$typeof) { + case tt: + return 'Context.Consumer'; + case et: + return 'Context.Provider'; + case rt: + var t = e.render; + return ( + (t = t.displayName || t.name || ''), + e.displayName || + ('' !== t ? 'ForwardRef(' + t + ')' : 'ForwardRef') + ); + case at: + return lt(e.type); + case st: + if ((e = 1 === e._status ? e._result : null)) return lt(e); } - for ( - n.sibling.return = n.return, n = n.sibling; - 5 !== n.tag && 6 !== n.tag && 18 !== n.tag; - - ) { - if (2 & n.effectTag) continue t; - if (null === n.child || 4 === n.tag) continue t; - (n.child.return = n), (n = n.child); + return null; + } + function ft(e) { + var t = ''; + do { + e: switch (e.tag) { + case 3: + case 4: + case 6: + case 7: + case 10: + case 9: + var n = ''; + break e; + default: + var r = e._debugOwner, + o = e._debugSource, + i = lt(e.type); + (n = null), + r && (n = lt(r.type)), + (r = i), + (i = ''), + o + ? (i = + ' (at ' + + o.fileName.replace(Xe, '') + + ':' + + o.lineNumber + + ')') + : n && (i = ' (created by ' + n + ')'), + (n = '\n in ' + (r || 'Unknown') + i); } - if (!(2 & n.effectTag)) { - n = n.stateNode; - break e; + (t += n), (e = e.return); + } while (e); + return t; + } + var dt = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, + pt = Object.prototype.hasOwnProperty, + ht = {}, + gt = {}; + function mt(e, t, n, r, o, i) { + (this.acceptsBooleans = 2 === t || 3 === t || 4 === t), + (this.attributeName = r), + (this.attributeNamespace = o), + (this.mustUseProperty = n), + (this.propertyName = e), + (this.type = t), + (this.sanitizeURL = i); + } + var bt = {}; + 'children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style' + .split(' ') + .forEach(function(e) { + bt[e] = new mt(e, 0, !1, e, null, !1); + }), + [ + ['acceptCharset', 'accept-charset'], + ['className', 'class'], + ['htmlFor', 'for'], + ['httpEquiv', 'http-equiv'] + ].forEach(function(e) { + var t = e[0]; + bt[t] = new mt(t, 1, !1, e[1], null, !1); + }), + ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach( + function(e) { + bt[e] = new mt(e, 2, !1, e.toLowerCase(), null, !1); } - } - r - ? (function e(t, n, r) { - var o = t.tag, - i = 5 === o || 6 === o; - if (i) - (t = i ? t.stateNode : t.stateNode.instance), - n - ? 8 === r.nodeType - ? r.parentNode.insertBefore(t, n) - : r.insertBefore(t, n) - : (8 === r.nodeType - ? (n = r.parentNode).insertBefore(t, r) - : (n = r).appendChild(t), - (null !== (r = r._reactRootContainer) && void 0 !== r) || - null !== n.onclick || - (n.onclick = un)); - else if (4 !== o && null !== (t = t.child)) - for (e(t, n, r), t = t.sibling; null !== t; ) - e(t, n, r), (t = t.sibling); - })(e, n, t) - : (function e(t, n, r) { - var o = t.tag, - i = 5 === o || 6 === o; - if (i) - (t = i ? t.stateNode : t.stateNode.instance), - n ? r.insertBefore(t, n) : r.appendChild(t); - else if (4 !== o && null !== (t = t.child)) - for (e(t, n, r), t = t.sibling; null !== t; ) - e(t, n, r), (t = t.sibling); - })(e, n, t); - } - function ls(e, t, n) { - for (var r, o, i = t, s = !1; ; ) { - if (!s) { - s = i.return; - e: for (;;) { - if (null === s) throw Error(a(160)); - switch (((r = s.stateNode), s.tag)) { - case 5: - o = !1; - break e; + ), + [ + 'autoReverse', + 'externalResourcesRequired', + 'focusable', + 'preserveAlpha' + ].forEach(function(e) { + bt[e] = new mt(e, 2, !1, e, null, !1); + }), + 'allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope' + .split(' ') + .forEach(function(e) { + bt[e] = new mt(e, 3, !1, e.toLowerCase(), null, !1); + }), + ['checked', 'multiple', 'muted', 'selected'].forEach(function(e) { + bt[e] = new mt(e, 3, !0, e, null, !1); + }), + ['capture', 'download'].forEach(function(e) { + bt[e] = new mt(e, 4, !1, e, null, !1); + }), + ['cols', 'rows', 'size', 'span'].forEach(function(e) { + bt[e] = new mt(e, 6, !1, e, null, !1); + }), + ['rowSpan', 'start'].forEach(function(e) { + bt[e] = new mt(e, 5, !1, e.toLowerCase(), null, !1); + }); + var yt = /[\-:]([a-z])/g; + function vt(e) { + return e[1].toUpperCase(); + } + function _t(e, t, n, r) { + var o = bt.hasOwnProperty(t) ? bt[t] : null; + (null !== o + ? 0 === o.type + : !r && + (2 < t.length && + ('o' === t[0] || 'O' === t[0]) && + ('n' === t[1] || 'N' === t[1]))) || + ((function(e, t, n, r) { + if ( + null == t || + (function(e, t, n, r) { + if (null !== n && 0 === n.type) return !1; + switch (typeof t) { + case 'function': + case 'symbol': + return !0; + case 'boolean': + return ( + !r && + (null !== n + ? !n.acceptsBooleans + : 'data-' !== (e = e.toLowerCase().slice(0, 5)) && + 'aria-' !== e) + ); + default: + return !1; + } + })(e, t, n, r) + ) + return !0; + if (r) return !1; + if (null !== n) + switch (n.type) { case 3: + return !t; case 4: - (r = r.containerInfo), (o = !0); - break e; - } - s = s.return; - } - s = !0; - } - if (5 === i.tag || 6 === i.tag) { - e: for (var c = e, u = i, l = n, f = u; ; ) - if ((as(c, f, l), null !== f.child && 4 !== f.tag)) - (f.child.return = f), (f = f.child); - else { - if (f === u) break e; - for (; null === f.sibling; ) { - if (null === f.return || f.return === u) break e; - f = f.return; - } - (f.sibling.return = f.return), (f = f.sibling); + return !1 === t; + case 5: + return isNaN(t); + case 6: + return isNaN(t) || 1 > t; } - o - ? ((c = r), - (u = i.stateNode), - 8 === c.nodeType - ? c.parentNode.removeChild(u) - : c.removeChild(u)) - : r.removeChild(i.stateNode); - } else if (4 === i.tag) { - if (null !== i.child) { - (r = i.stateNode.containerInfo), - (o = !0), - (i.child.return = i), - (i = i.child); - continue; - } - } else if ((as(e, i, n), null !== i.child)) { - (i.child.return = i), (i = i.child); - continue; - } - if (i === t) break; - for (; null === i.sibling; ) { - if (null === i.return || i.return === t) return; - 4 === (i = i.return).tag && (s = !1); - } - (i.sibling.return = i.return), (i = i.sibling); + return !1; + })(t, n, o, r) && (n = null), + r || null === o + ? (function(e) { + return ( + !!pt.call(gt, e) || + (!pt.call(ht, e) && + (dt.test(e) ? (gt[e] = !0) : ((ht[e] = !0), !1))) + ); + })(t) && + (null === n ? e.removeAttribute(t) : e.setAttribute(t, '' + n)) + : o.mustUseProperty + ? (e[o.propertyName] = null === n ? 3 !== o.type && '' : n) + : ((t = o.attributeName), + (r = o.attributeNamespace), + null === n + ? e.removeAttribute(t) + : ((n = + 3 === (o = o.type) || (4 === o && !0 === n) ? '' : '' + n), + r ? e.setAttributeNS(r, t, n) : e.setAttribute(t, n)))); + } + function wt(e) { + switch (typeof e) { + case 'boolean': + case 'number': + case 'object': + case 'string': + case 'undefined': + return e; + default: + return ''; } } - function fs(e, t) { - switch (t.tag) { - case 0: - case 11: - case 14: - case 15: - case 22: - return void rs(3, t); - case 1: - return; - case 5: - var n = t.stateNode; - if (null != n) { - var r = t.memoizedProps, - o = null !== e ? e.memoizedProps : r; - e = t.type; - var i = t.updateQueue; - if (((t.updateQueue = null), null !== i)) { - for ( - n[Sn] = r, - 'input' === e && - 'radio' === r.type && - null != r.name && - ke(n, r), - an(e, o), - t = an(e, r), - o = 0; - o < i.length; - o += 2 - ) { - var s = i[o], - c = i[o + 1]; - 'style' === s - ? nn(n, c) - : 'dangerouslySetInnerHTML' === s - ? Fe(n, c) - : 'children' === s - ? qe(n, c) - : Q(n, s, c, t); - } - switch (e) { - case 'input': - Se(n, r); - break; - case 'textarea': - Pe(n, r); - break; - case 'select': - (t = n._wrapperState.wasMultiple), - (n._wrapperState.wasMultiple = !!r.multiple), - null != (e = r.value) - ? Te(n, !!r.multiple, e, !1) - : t !== !!r.multiple && - (null != r.defaultValue - ? Te(n, !!r.multiple, r.defaultValue, !0) - : Te(n, !!r.multiple, r.multiple ? [] : '', !1)); - } - } - } - return; - case 6: - if (null === t.stateNode) throw Error(a(162)); - return void (t.stateNode.nodeValue = t.memoizedProps); - case 3: - return void ( - (t = t.stateNode).hydrate && - ((t.hydrate = !1), jt(t.containerInfo)) - ); - case 12: - return; - case 13: - if ( - ((n = t), - null === t.memoizedState - ? (r = !1) - : ((r = !0), (n = t.child), (zs = qo())), - null !== n) + function xt(e, t) { + var n = t.checked; + return o({}, t, { + defaultChecked: void 0, + defaultValue: void 0, + value: void 0, + checked: null != n ? n : e._wrapperState.initialChecked + }); + } + function Mt(e, t) { + var n = null == t.defaultValue ? '' : t.defaultValue, + r = null != t.checked ? t.checked : t.defaultChecked; + (n = wt(null != t.value ? t.value : n)), + (e._wrapperState = { + initialChecked: r, + initialValue: n, + controlled: + 'checkbox' === t.type || 'radio' === t.type + ? null != t.checked + : null != t.value + }); + } + function kt(e, t) { + null != (t = t.checked) && _t(e, 'checked', t, !1); + } + function St(e, t) { + kt(e, t); + var n = wt(t.value), + r = t.type; + if (null != n) + 'number' === r + ? ((0 === n && '' === e.value) || e.value != n) && + (e.value = '' + n) + : e.value !== '' + n && (e.value = '' + n); + else if ('submit' === r || 'reset' === r) + return void e.removeAttribute('value'); + t.hasOwnProperty('value') + ? Et(e, t.type, n) + : t.hasOwnProperty('defaultValue') && + Et(e, t.type, wt(t.defaultValue)), + null == t.checked && + null != t.defaultChecked && + (e.defaultChecked = !!t.defaultChecked); + } + function Ot(e, t, n) { + if (t.hasOwnProperty('value') || t.hasOwnProperty('defaultValue')) { + var r = t.type; + if ( + !( + ('submit' !== r && 'reset' !== r) || + (void 0 !== t.value && null !== t.value) ) - e: for (e = n; ; ) { - if (5 === e.tag) - (i = e.stateNode), - r - ? 'function' == typeof (i = i.style).setProperty - ? i.setProperty('display', 'none', 'important') - : (i.display = 'none') - : ((i = e.stateNode), - (o = - null != (o = e.memoizedProps.style) && - o.hasOwnProperty('display') - ? o.display - : null), - (i.style.display = tn('display', o))); - else if (6 === e.tag) - e.stateNode.nodeValue = r ? '' : e.memoizedProps; - else { - if ( - 13 === e.tag && - null !== e.memoizedState && - null === e.memoizedState.dehydrated - ) { - ((i = e.child.sibling).return = e), (e = i); - continue; - } - if (null !== e.child) { - (e.child.return = e), (e = e.child); - continue; - } - } - if (e === n) break; - for (; null === e.sibling; ) { - if (null === e.return || e.return === n) break e; - e = e.return; - } - (e.sibling.return = e.return), (e = e.sibling); - } - return void ds(t); - case 19: - return void ds(t); - case 17: + ) return; + (t = '' + e._wrapperState.initialValue), + n || t === e.value || (e.value = t), + (e.defaultValue = t); } - throw Error(a(163)); + '' !== (n = e.name) && (e.name = ''), + (e.defaultChecked = !e.defaultChecked), + (e.defaultChecked = !!e._wrapperState.initialChecked), + '' !== n && (e.name = n); } - function ds(e) { - var t = e.updateQueue; - if (null !== t) { - e.updateQueue = null; - var n = e.stateNode; - null === n && (n = e.stateNode = new Za()), - t.forEach(function(t) { - var r = _c.bind(null, e, t); - n.has(t) || (n.add(t), t.then(r, r)); - }); - } + function Et(e, t, n) { + ('number' === t && e.ownerDocument.activeElement === e) || + (null == n + ? (e.defaultValue = '' + e._wrapperState.initialValue) + : e.defaultValue !== '' + n && (e.defaultValue = '' + n)); } - var ps = 'function' == typeof WeakMap ? WeakMap : Map; - function hs(e, t, n) { - ((n = ci(n, null)).tag = 3), (n.payload = { element: null }); - var r = t.value; - return ( - (n.callback = function() { - js || ((js = !0), (Rs = r)), es(e, t); + 'accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height' + .split(' ') + .forEach(function(e) { + var t = e.replace(yt, vt); + bt[t] = new mt(t, 1, !1, e, null, !1); + }), + 'xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type' + .split(' ') + .forEach(function(e) { + var t = e.replace(yt, vt); + bt[t] = new mt(t, 1, !1, e, 'http://www.w3.org/1999/xlink', !1); }), - n - ); - } - function gs(e, t, n) { - (n = ci(n, null)).tag = 3; - var r = e.type.getDerivedStateFromError; - if ('function' == typeof r) { - var o = t.value; - n.payload = function() { - return es(e, t), r(o); - }; + ['xml:base', 'xml:lang', 'xml:space'].forEach(function(e) { + var t = e.replace(yt, vt); + bt[t] = new mt( + t, + 1, + !1, + e, + 'http://www.w3.org/XML/1998/namespace', + !1 + ); + }), + ['tabIndex', 'crossOrigin'].forEach(function(e) { + bt[e] = new mt(e, 1, !1, e.toLowerCase(), null, !1); + }), + (bt.xlinkHref = new mt( + 'xlinkHref', + 1, + !1, + 'xlink:href', + 'http://www.w3.org/1999/xlink', + !0 + )), + ['src', 'href', 'action', 'formAction'].forEach(function(e) { + bt[e] = new mt(e, 1, !1, e.toLowerCase(), null, !0); + }); + var At = { + change: { + phasedRegistrationNames: { + bubbled: 'onChange', + captured: 'onChangeCapture' + }, + dependencies: 'blur change click focus input keydown keyup selectionchange'.split( + ' ' + ) } - var i = e.stateNode; + }; + function Tt(e, t, n) { return ( - null !== i && - 'function' == typeof i.componentDidCatch && - (n.callback = function() { - 'function' != typeof r && - (null === Is ? (Is = new Set([this])) : Is.add(this), es(e, t)); - var n = t.stack; - this.componentDidCatch(t.value, { - componentStack: null !== n ? n : '' - }); - }), - n + ((e = ue.getPooled(At.change, e, t, n)).type = 'change'), + Le(n), + V(e), + e ); } - var ms, - bs = Math.ceil, - ys = $.ReactCurrentDispatcher, - vs = $.ReactCurrentOwner, - _s = 0, - xs = 3, - ws = 4, - Ms = 0, - ks = null, - Ss = null, - As = 0, - Os = _s, - Es = null, - Ts = 1073741823, - Cs = 1073741823, - Ls = null, - Ps = 0, - Ds = !1, - zs = 0, - Ns = null, - js = !1, - Rs = null, - Is = null, - Fs = !1, - qs = null, - Bs = 90, - Hs = null, - Ys = 0, - Ws = null, - Vs = 0; - function Us() { - return 0 != (48 & Ms) - ? 1073741821 - ((qo() / 10) | 0) - : 0 !== Vs - ? Vs - : (Vs = 1073741821 - ((qo() / 10) | 0)); - } - function Xs(e, t, n) { - if (0 == (2 & (t = t.mode))) return 1073741823; - var r = Bo(); - if (0 == (4 & t)) return 99 === r ? 1073741823 : 1073741822; - if (0 != (16 & Ms)) return As; - if (null !== n) e = Go(e, 0 | n.timeoutMs || 5e3, 250); - else - switch (r) { - case 99: - e = 1073741823; - break; - case 98: - e = Go(e, 150, 100); - break; - case 97: - case 96: - e = Go(e, 5e3, 250); - break; - case 95: - e = 2; - break; - default: - throw Error(a(326)); + var Ct = null, + Lt = null; + function Pt(e) { + C(e); + } + function Dt(e) { + if (Ve(I(e))) return e; + } + function jt(e, t) { + if ('change' === e) return t; + } + var zt = !1; + function Nt() { + Ct && (Ct.detachEvent('onpropertychange', Rt), (Lt = Ct = null)); + } + function Rt(e) { + if ('value' === e.propertyName && Dt(Lt)) + if (((e = Tt(Lt, e, Be(e))), Re)) C(e); + else { + Re = !0; + try { + De(Pt, e); + } finally { + (Re = !1), Ie(); + } } - return null !== ks && e === As && --e, e; } - function Gs(e, t) { - if (50 < Ys) throw ((Ys = 0), (Ws = null), Error(a(185))); - if (null !== (e = Ks(e, t))) { - var n = Bo(); - 1073741823 === t - ? 0 != (8 & Ms) && 0 == (48 & Ms) - ? Zs(e) - : (Qs(e), 0 === Ms && Uo()) - : Qs(e), - 0 == (4 & Ms) || - (98 !== n && 99 !== n) || - (null === Hs - ? (Hs = new Map([[e, t]])) - : (void 0 === (n = Hs.get(e)) || n > t) && Hs.set(e, t)); - } - } - function Ks(e, t) { - e.expirationTime < t && (e.expirationTime = t); - var n = e.alternate; - null !== n && n.expirationTime < t && (n.expirationTime = t); - var r = e.return, - o = null; - if (null === r && 3 === e.tag) o = e.stateNode; - else - for (; null !== r; ) { + function It(e, t, n) { + 'focus' === e + ? (Nt(), (Lt = n), (Ct = t).attachEvent('onpropertychange', Rt)) + : 'blur' === e && Nt(); + } + function Ft(e) { + if ('selectionchange' === e || 'keyup' === e || 'keydown' === e) + return Dt(Lt); + } + function qt(e, t) { + if ('click' === e) return Dt(t); + } + function Bt(e, t) { + if ('input' === e || 'change' === e) return Dt(t); + } + U && + (zt = + He('input') && (!document.documentMode || 9 < document.documentMode)); + var Ht = { + eventTypes: At, + _isInputEventSupported: zt, + extractEvents: function(e, t, n, r) { + var o = t ? I(t) : window, + i = void 0, + a = void 0, + s = o.nodeName && o.nodeName.toLowerCase(); if ( - ((n = r.alternate), - r.childExpirationTime < t && (r.childExpirationTime = t), - null !== n && - n.childExpirationTime < t && - (n.childExpirationTime = t), - null === r.return && 3 === r.tag) - ) { - o = r.stateNode; - break; - } - r = r.return; + ('select' === s || ('input' === s && 'file' === o.type) + ? (i = jt) + : qe(o) + ? zt + ? (i = Bt) + : ((i = Ft), (a = It)) + : (s = o.nodeName) && + 'input' === s.toLowerCase() && + ('checkbox' === o.type || 'radio' === o.type) && + (i = qt), + i && (i = i(e, t))) + ) + return Tt(i, n, r); + a && a(e, o, t), + 'blur' === e && + (e = o._wrapperState) && + e.controlled && + 'number' === o.type && + Et(o, 'number', o.value); } - return ( - null !== o && (ks === o && (ac(t), Os === ws && Dc(o, As)), zc(o, t)), - o - ); + }, + Yt = ue.extend({ view: null, detail: null }), + Wt = { + Alt: 'altKey', + Control: 'ctrlKey', + Meta: 'metaKey', + Shift: 'shiftKey' + }; + function Vt(e) { + var t = this.nativeEvent; + return t.getModifierState + ? t.getModifierState(e) + : !!(e = Wt[e]) && !!t[e]; } - function $s(e) { - var t = e.lastExpiredTime; - if (0 !== t) return t; - if (!Pc(e, (t = e.firstPendingTime))) return t; - var n = e.lastPingedTime; - return 2 >= (e = n > (e = e.nextKnownPendingLevel) ? n : e) && t !== e - ? 0 - : e; + function Ut() { + return Vt; } - function Qs(e) { - if (0 !== e.lastExpiredTime) - (e.callbackExpirationTime = 1073741823), - (e.callbackPriority = 99), - (e.callbackNode = Vo(Zs.bind(null, e))); - else { - var t = $s(e), - n = e.callbackNode; - if (0 === t) - null !== n && - ((e.callbackNode = null), - (e.callbackExpirationTime = 0), - (e.callbackPriority = 90)); - else { - var r = Us(); + var Xt = 0, + Gt = 0, + Kt = !1, + $t = !1, + Qt = Yt.extend({ + screenX: null, + screenY: null, + clientX: null, + clientY: null, + pageX: null, + pageY: null, + ctrlKey: null, + shiftKey: null, + altKey: null, + metaKey: null, + getModifierState: Ut, + button: null, + buttons: null, + relatedTarget: function(e) { + return ( + e.relatedTarget || + (e.fromElement === e.srcElement ? e.toElement : e.fromElement) + ); + }, + movementX: function(e) { + if ('movementX' in e) return e.movementX; + var t = Xt; + return ( + (Xt = e.screenX), + Kt ? ('mousemove' === e.type ? e.screenX - t : 0) : ((Kt = !0), 0) + ); + }, + movementY: function(e) { + if ('movementY' in e) return e.movementY; + var t = Gt; + return ( + (Gt = e.screenY), + $t ? ('mousemove' === e.type ? e.screenY - t : 0) : (($t = !0), 0) + ); + } + }), + Jt = Qt.extend({ + pointerId: null, + width: null, + height: null, + pressure: null, + tangentialPressure: null, + tiltX: null, + tiltY: null, + twist: null, + pointerType: null, + isPrimary: null + }), + Zt = { + mouseEnter: { + registrationName: 'onMouseEnter', + dependencies: ['mouseout', 'mouseover'] + }, + mouseLeave: { + registrationName: 'onMouseLeave', + dependencies: ['mouseout', 'mouseover'] + }, + pointerEnter: { + registrationName: 'onPointerEnter', + dependencies: ['pointerout', 'pointerover'] + }, + pointerLeave: { + registrationName: 'onPointerLeave', + dependencies: ['pointerout', 'pointerover'] + } + }, + en = { + eventTypes: Zt, + extractEvents: function(e, t, n, r) { + var o = 'mouseover' === e || 'pointerover' === e, + i = 'mouseout' === e || 'pointerout' === e; + if ((o && (n.relatedTarget || n.fromElement)) || (!i && !o)) + return null; if ( - (1073741823 === t - ? (r = 99) - : 1 === t || 2 === t - ? (r = 95) - : (r = - 0 >= (r = 10 * (1073741821 - t) - 10 * (1073741821 - r)) - ? 99 - : 250 >= r - ? 98 - : 5250 >= r - ? 97 - : 95), - null !== n) - ) { - var o = e.callbackPriority; - if (e.callbackExpirationTime === t && o >= r) return; - n !== Do && ko(n); - } - (e.callbackExpirationTime = t), - (e.callbackPriority = r), - (t = - 1073741823 === t - ? Vo(Zs.bind(null, e)) - : Wo(r, Js.bind(null, e), { - timeout: 10 * (1073741821 - t) - qo() - })), - (e.callbackNode = t); + ((o = + r.window === r + ? r + : (o = r.ownerDocument) + ? o.defaultView || o.parentWindow + : window), + i + ? ((i = t), + (t = (t = n.relatedTarget || n.toElement) ? N(t) : null)) + : (i = null), + i === t) + ) + return null; + var a = void 0, + s = void 0, + c = void 0, + u = void 0; + 'mouseout' === e || 'mouseover' === e + ? ((a = Qt), + (s = Zt.mouseLeave), + (c = Zt.mouseEnter), + (u = 'mouse')) + : ('pointerout' !== e && 'pointerover' !== e) || + ((a = Jt), + (s = Zt.pointerLeave), + (c = Zt.pointerEnter), + (u = 'pointer')); + var l = null == i ? o : I(i); + if ( + ((o = null == t ? o : I(t)), + ((e = a.getPooled(s, i, n, r)).type = u + 'leave'), + (e.target = l), + (e.relatedTarget = o), + ((n = a.getPooled(c, t, n, r)).type = u + 'enter'), + (n.target = o), + (n.relatedTarget = l), + (r = t), + i && r) + ) + e: { + for (o = r, u = 0, a = t = i; a; a = q(a)) u++; + for (a = 0, c = o; c; c = q(c)) a++; + for (; 0 < u - a; ) (t = q(t)), u--; + for (; 0 < a - u; ) (o = q(o)), a--; + for (; u--; ) { + if (t === o || t === o.alternate) break e; + (t = q(t)), (o = q(o)); + } + t = null; + } + else t = null; + for ( + o = t, t = []; + i && i !== o && (null === (u = i.alternate) || u !== o); + + ) + t.push(i), (i = q(i)); + for ( + i = []; + r && r !== o && (null === (u = r.alternate) || u !== o); + + ) + i.push(r), (r = q(r)); + for (r = 0; r < t.length; r++) Y(t[r], 'bubbled', e); + for (r = i.length; 0 < r--; ) Y(i[r], 'captured', n); + return [e, n]; } + }; + function tn(e, t) { + return (e === t && (0 !== e || 1 / e == 1 / t)) || (e != e && t != t); + } + var nn = Object.prototype.hasOwnProperty; + function rn(e, t) { + if (tn(e, t)) return !0; + if ( + 'object' != typeof e || + null === e || + 'object' != typeof t || + null === t + ) + return !1; + var n = Object.keys(e), + r = Object.keys(t); + if (n.length !== r.length) return !1; + for (r = 0; r < n.length; r++) + if (!nn.call(t, n[r]) || !tn(e[n[r]], t[n[r]])) return !1; + return !0; + } + function on(e, t) { + return { responder: e, props: t }; + } + function an(e) { + var t = e; + if (e.alternate) for (; t.return; ) t = t.return; + else { + if (0 != (2 & t.effectTag)) return 1; + for (; t.return; ) if (0 != (2 & (t = t.return).effectTag)) return 1; } + return 3 === t.tag ? 2 : 3; } - function Js(e, t) { - if (((Vs = 0), t)) return Nc(e, (t = Us())), Qs(e), null; - var n = $s(e); - if (0 !== n) { - if (((t = e.callbackNode), 0 != (48 & Ms))) throw Error(a(327)); - if ((gc(), (e === ks && n === As) || nc(e, n), null !== Ss)) { - var r = Ms; - Ms |= 16; - for (var o = oc(); ; ) - try { - cc(); + function sn(e) { + if (2 !== an(e)) throw a(Error(188)); + } + function cn(e) { + if ( + !(e = (function(e) { + var t = e.alternate; + if (!t) { + if (3 === (t = an(e))) throw a(Error(188)); + return 1 === t ? null : e; + } + for (var n = e, r = t; ; ) { + var o = n.return; + if (null === o) break; + var i = o.alternate; + if (null === i) { + if (null !== (r = o.return)) { + n = r; + continue; + } break; - } catch (t) { - rc(e, t); } - if ((ei(), (Ms = r), (ys.current = o), 1 === Os)) - throw ((t = Es), nc(e, n), Dc(e, n), Qs(e), t); - if (null === Ss) - switch ( - ((o = e.finishedWork = e.current.alternate), - (e.finishedExpirationTime = n), - (r = Os), - (ks = null), - r) - ) { - case _s: - case 1: - throw Error(a(345)); - case 2: - Nc(e, 2 < n ? 2 : n); - break; - case xs: - if ( - (Dc(e, n), - n === (r = e.lastSuspendedTime) && - (e.nextKnownPendingLevel = fc(o)), - 1073741823 === Ts && 10 < (o = zs + 500 - qo())) - ) { - if (Ds) { - var i = e.lastPingedTime; - if (0 === i || i >= n) { - (e.lastPingedTime = n), nc(e, n); - break; - } - } - if (0 !== (i = $s(e)) && i !== n) break; - if (0 !== r && r !== n) { - e.lastPingedTime = r; - break; - } - e.timeoutHandle = vn(dc.bind(null, e), o); - break; - } - dc(e); - break; - case ws: - if ( - (Dc(e, n), - n === (r = e.lastSuspendedTime) && - (e.nextKnownPendingLevel = fc(o)), - Ds && (0 === (o = e.lastPingedTime) || o >= n)) - ) { - (e.lastPingedTime = n), nc(e, n); - break; - } - if (0 !== (o = $s(e)) && o !== n) break; - if (0 !== r && r !== n) { - e.lastPingedTime = r; + if (o.child === i.child) { + for (i = o.child; i; ) { + if (i === n) return sn(o), e; + if (i === r) return sn(o), t; + i = i.sibling; + } + throw a(Error(188)); + } + if (n.return !== r.return) (n = o), (r = i); + else { + for (var s = !1, c = o.child; c; ) { + if (c === n) { + (s = !0), (n = o), (r = i); break; } - if ( - (1073741823 !== Cs - ? (r = 10 * (1073741821 - Cs) - qo()) - : 1073741823 === Ts - ? (r = 0) - : ((r = 10 * (1073741821 - Ts) - 5e3), - 0 > (r = (o = qo()) - r) && (r = 0), - (n = 10 * (1073741821 - n) - o) < - (r = - (120 > r - ? 120 - : 480 > r - ? 480 - : 1080 > r - ? 1080 - : 1920 > r - ? 1920 - : 3e3 > r - ? 3e3 - : 4320 > r - ? 4320 - : 1960 * bs(r / 1960)) - r) && (r = n)), - 10 < r) - ) { - e.timeoutHandle = vn(dc.bind(null, e), r); + if (c === r) { + (s = !0), (r = o), (n = i); break; } - dc(e); - break; - case 5: - if (1073741823 !== Ts && null !== Ls) { - i = Ts; - var s = Ls; - if ( - (0 >= (r = 0 | s.busyMinDurationMs) - ? (r = 0) - : ((o = 0 | s.busyDelayMs), - (r = - (i = - qo() - - (10 * (1073741821 - i) - - (0 | s.timeoutMs || 5e3))) <= o - ? 0 - : o + r - i)), - 10 < r) - ) { - Dc(e, n), (e.timeoutHandle = vn(dc.bind(null, e), r)); + c = c.sibling; + } + if (!s) { + for (c = i.child; c; ) { + if (c === n) { + (s = !0), (n = i), (r = o); + break; + } + if (c === r) { + (s = !0), (r = i), (n = o); break; } + c = c.sibling; } - dc(e); - break; - default: - throw Error(a(329)); + if (!s) throw a(Error(189)); + } } - if ((Qs(e), e.callbackNode === t)) return Js.bind(null, e); - } - } - return null; - } - function Zs(e) { - var t = e.lastExpiredTime; - if (((t = 0 !== t ? t : 1073741823), 0 != (48 & Ms))) - throw Error(a(327)); - if ((gc(), (e === ks && t === As) || nc(e, t), null !== Ss)) { - var n = Ms; - Ms |= 16; - for (var r = oc(); ; ) - try { - sc(); - break; - } catch (t) { - rc(e, t); + if (n.alternate !== r) throw a(Error(190)); + } + if (3 !== n.tag) throw a(Error(188)); + return n.stateNode.current === n ? e : t; + })(e)) + ) + return null; + for (var t = e; ; ) { + if (5 === t.tag || 6 === t.tag) return t; + if (t.child) (t.child.return = t), (t = t.child); + else { + if (t === e) break; + for (; !t.sibling; ) { + if (!t.return || t.return === e) return null; + t = t.return; } - if ((ei(), (Ms = n), (ys.current = r), 1 === Os)) - throw ((n = Es), nc(e, t), Dc(e, t), Qs(e), n); - if (null !== Ss) throw Error(a(261)); - (e.finishedWork = e.current.alternate), - (e.finishedExpirationTime = t), - (ks = null), - dc(e), - Qs(e); + (t.sibling.return = t.return), (t = t.sibling); + } } return null; } - function ec(e, t) { - var n = Ms; - Ms |= 1; - try { - return e(t); - } finally { - 0 === (Ms = n) && Uo(); - } + new Map(), new Map(), new Set(), new Map(); + var un = ue.extend({ + animationName: null, + elapsedTime: null, + pseudoElement: null + }), + ln = ue.extend({ + clipboardData: function(e) { + return 'clipboardData' in e + ? e.clipboardData + : window.clipboardData; + } + }), + fn = Yt.extend({ relatedTarget: null }); + function dn(e) { + var t = e.keyCode; + return ( + 'charCode' in e + ? 0 === (e = e.charCode) && 13 === t && (e = 13) + : (e = t), + 10 === e && (e = 13), + 32 <= e || 13 === e ? e : 0 + ); } - function tc(e, t) { - var n = Ms; - (Ms &= -2), (Ms |= 8); - try { - return e(t); - } finally { - 0 === (Ms = n) && Uo(); - } + for ( + var pn = { + Esc: 'Escape', + Spacebar: ' ', + Left: 'ArrowLeft', + Up: 'ArrowUp', + Right: 'ArrowRight', + Down: 'ArrowDown', + Del: 'Delete', + Win: 'OS', + Menu: 'ContextMenu', + Apps: 'ContextMenu', + Scroll: 'ScrollLock', + MozPrintableKey: 'Unidentified' + }, + hn = { + 8: 'Backspace', + 9: 'Tab', + 12: 'Clear', + 13: 'Enter', + 16: 'Shift', + 17: 'Control', + 18: 'Alt', + 19: 'Pause', + 20: 'CapsLock', + 27: 'Escape', + 32: ' ', + 33: 'PageUp', + 34: 'PageDown', + 35: 'End', + 36: 'Home', + 37: 'ArrowLeft', + 38: 'ArrowUp', + 39: 'ArrowRight', + 40: 'ArrowDown', + 45: 'Insert', + 46: 'Delete', + 112: 'F1', + 113: 'F2', + 114: 'F3', + 115: 'F4', + 116: 'F5', + 117: 'F6', + 118: 'F7', + 119: 'F8', + 120: 'F9', + 121: 'F10', + 122: 'F11', + 123: 'F12', + 144: 'NumLock', + 145: 'ScrollLock', + 224: 'Meta' + }, + gn = Yt.extend({ + key: function(e) { + if (e.key) { + var t = pn[e.key] || e.key; + if ('Unidentified' !== t) return t; + } + return 'keypress' === e.type + ? 13 === (e = dn(e)) + ? 'Enter' + : String.fromCharCode(e) + : 'keydown' === e.type || 'keyup' === e.type + ? hn[e.keyCode] || 'Unidentified' + : ''; + }, + location: null, + ctrlKey: null, + shiftKey: null, + altKey: null, + metaKey: null, + repeat: null, + locale: null, + getModifierState: Ut, + charCode: function(e) { + return 'keypress' === e.type ? dn(e) : 0; + }, + keyCode: function(e) { + return 'keydown' === e.type || 'keyup' === e.type ? e.keyCode : 0; + }, + which: function(e) { + return 'keypress' === e.type + ? dn(e) + : 'keydown' === e.type || 'keyup' === e.type + ? e.keyCode + : 0; + } + }), + mn = Qt.extend({ dataTransfer: null }), + bn = Yt.extend({ + touches: null, + targetTouches: null, + changedTouches: null, + altKey: null, + metaKey: null, + ctrlKey: null, + shiftKey: null, + getModifierState: Ut + }), + yn = ue.extend({ + propertyName: null, + elapsedTime: null, + pseudoElement: null + }), + vn = Qt.extend({ + deltaX: function(e) { + return ('deltaX' in e) + ? e.deltaX + : ('wheelDeltaX' in e) + ? -e.wheelDeltaX + : 0; + }, + deltaY: function(e) { + return ('deltaY' in e) + ? e.deltaY + : ('wheelDeltaY' in e) + ? -e.wheelDeltaY + : ('wheelDelta' in e) + ? -e.wheelDelta + : 0; + }, + deltaZ: null, + deltaMode: null + }), + _n = [ + ['blur', 'blur', 0], + ['cancel', 'cancel', 0], + ['click', 'click', 0], + ['close', 'close', 0], + ['contextmenu', 'contextMenu', 0], + ['copy', 'copy', 0], + ['cut', 'cut', 0], + ['auxclick', 'auxClick', 0], + ['dblclick', 'doubleClick', 0], + ['dragend', 'dragEnd', 0], + ['dragstart', 'dragStart', 0], + ['drop', 'drop', 0], + ['focus', 'focus', 0], + ['input', 'input', 0], + ['invalid', 'invalid', 0], + ['keydown', 'keyDown', 0], + ['keypress', 'keyPress', 0], + ['keyup', 'keyUp', 0], + ['mousedown', 'mouseDown', 0], + ['mouseup', 'mouseUp', 0], + ['paste', 'paste', 0], + ['pause', 'pause', 0], + ['play', 'play', 0], + ['pointercancel', 'pointerCancel', 0], + ['pointerdown', 'pointerDown', 0], + ['pointerup', 'pointerUp', 0], + ['ratechange', 'rateChange', 0], + ['reset', 'reset', 0], + ['seeked', 'seeked', 0], + ['submit', 'submit', 0], + ['touchcancel', 'touchCancel', 0], + ['touchend', 'touchEnd', 0], + ['touchstart', 'touchStart', 0], + ['volumechange', 'volumeChange', 0], + ['drag', 'drag', 1], + ['dragenter', 'dragEnter', 1], + ['dragexit', 'dragExit', 1], + ['dragleave', 'dragLeave', 1], + ['dragover', 'dragOver', 1], + ['mousemove', 'mouseMove', 1], + ['mouseout', 'mouseOut', 1], + ['mouseover', 'mouseOver', 1], + ['pointermove', 'pointerMove', 1], + ['pointerout', 'pointerOut', 1], + ['pointerover', 'pointerOver', 1], + ['scroll', 'scroll', 1], + ['toggle', 'toggle', 1], + ['touchmove', 'touchMove', 1], + ['wheel', 'wheel', 1], + ['abort', 'abort', 2], + [J, 'animationEnd', 2], + [Z, 'animationIteration', 2], + [ee, 'animationStart', 2], + ['canplay', 'canPlay', 2], + ['canplaythrough', 'canPlayThrough', 2], + ['durationchange', 'durationChange', 2], + ['emptied', 'emptied', 2], + ['encrypted', 'encrypted', 2], + ['ended', 'ended', 2], + ['error', 'error', 2], + ['gotpointercapture', 'gotPointerCapture', 2], + ['load', 'load', 2], + ['loadeddata', 'loadedData', 2], + ['loadedmetadata', 'loadedMetadata', 2], + ['loadstart', 'loadStart', 2], + ['lostpointercapture', 'lostPointerCapture', 2], + ['playing', 'playing', 2], + ['progress', 'progress', 2], + ['seeking', 'seeking', 2], + ['stalled', 'stalled', 2], + ['suspend', 'suspend', 2], + ['timeupdate', 'timeUpdate', 2], + [te, 'transitionEnd', 2], + ['waiting', 'waiting', 2] + ], + wn = {}, + xn = {}, + Mn = 0; + Mn < _n.length; + Mn++ + ) { + var kn = _n[Mn], + Sn = kn[0], + On = kn[1], + En = kn[2], + An = 'on' + (On[0].toUpperCase() + On.slice(1)), + Tn = { + phasedRegistrationNames: { bubbled: An, captured: An + 'Capture' }, + dependencies: [Sn], + eventPriority: En + }; + (wn[On] = Tn), (xn[Sn] = Tn); } - function nc(e, t) { - (e.finishedWork = null), (e.finishedExpirationTime = 0); - var n = e.timeoutHandle; - if ((-1 !== n && ((e.timeoutHandle = -1), _n(n)), null !== Ss)) - for (n = Ss.return; null !== n; ) { - var r = n; - switch (r.tag) { - case 1: - null != (r = r.type.childContextTypes) && bo(); + var Cn = { + eventTypes: wn, + getEventPriority: function(e) { + return void 0 !== (e = xn[e]) ? e.eventPriority : 2; + }, + extractEvents: function(e, t, n, r) { + var o = xn[e]; + if (!o) return null; + switch (e) { + case 'keypress': + if (0 === dn(n)) return null; + case 'keydown': + case 'keyup': + e = gn; break; - case 3: - Di(), co(po), co(fo); + case 'blur': + case 'focus': + e = fn; break; - case 5: - Ni(r); + case 'click': + if (2 === n.button) return null; + case 'auxclick': + case 'dblclick': + case 'mousedown': + case 'mousemove': + case 'mouseup': + case 'mouseout': + case 'mouseover': + case 'contextmenu': + e = Qt; break; - case 4: - Di(); + case 'drag': + case 'dragend': + case 'dragenter': + case 'dragexit': + case 'dragleave': + case 'dragover': + case 'dragstart': + case 'drop': + e = mn; break; - case 13: - case 19: - co(ji); + case 'touchcancel': + case 'touchend': + case 'touchmove': + case 'touchstart': + e = bn; break; - case 10: - ti(r); + case J: + case Z: + case ee: + e = un; + break; + case te: + e = yn; + break; + case 'scroll': + e = Yt; + break; + case 'wheel': + e = vn; + break; + case 'copy': + case 'cut': + case 'paste': + e = ln; + break; + case 'gotpointercapture': + case 'lostpointercapture': + case 'pointercancel': + case 'pointerdown': + case 'pointermove': + case 'pointerout': + case 'pointerover': + case 'pointerup': + e = Jt; + break; + default: + e = ue; } - n = n.return; + return V((t = e.getPooled(o, t, n, r))), t; } - (ks = e), - (Ss = Ac(e.current, null)), - (As = t), - (Os = _s), - (Es = null), - (Cs = Ts = 1073741823), - (Ls = null), - (Ps = 0), - (Ds = !1); - } - function rc(e, t) { - for (;;) { - try { - if ((ei(), (Fi.current = ma), Vi)) - for (var n = Hi.memoizedState; null !== n; ) { - var r = n.queue; - null !== r && (r.pending = null), (n = n.next); - } - if ( - ((Bi = 0), - (Wi = Yi = Hi = null), - (Vi = !1), - null === Ss || null === Ss.return) - ) - return (Os = 1), (Es = t), (Ss = null); - e: { - var o = e, - i = Ss.return, - a = Ss, - s = t; - if ( - ((t = As), - (a.effectTag |= 2048), - (a.firstEffect = a.lastEffect = null), - null !== s && - 'object' == typeof s && - 'function' == typeof s.then) - ) { - var c = s; - if (0 == (2 & a.mode)) { - var u = a.alternate; - u - ? ((a.updateQueue = u.updateQueue), - (a.memoizedState = u.memoizedState), - (a.expirationTime = u.expirationTime)) - : ((a.updateQueue = null), (a.memoizedState = null)); - } - var l = 0 != (1 & ji.current), - f = i; - do { - var d; - if ((d = 13 === f.tag)) { - var p = f.memoizedState; - if (null !== p) d = null !== p.dehydrated; - else { - var h = f.memoizedProps; - d = - void 0 !== h.fallback && - (!0 !== h.unstable_avoidThisFallback || !l); - } - } - if (d) { - var g = f.updateQueue; - if (null === g) { - var m = new Set(); - m.add(c), (f.updateQueue = m); - } else g.add(c); - if (0 == (2 & f.mode)) { - if ( - ((f.effectTag |= 64), - (a.effectTag &= -2981), - 1 === a.tag) - ) - if (null === a.alternate) a.tag = 17; - else { - var b = ci(1073741823, null); - (b.tag = 2), ui(a, b); - } - a.expirationTime = 1073741823; - break e; - } - (s = void 0), (a = t); - var y = o.pingCache; - if ( - (null === y - ? ((y = o.pingCache = new ps()), - (s = new Set()), - y.set(c, s)) - : void 0 === (s = y.get(c)) && - ((s = new Set()), y.set(c, s)), - !s.has(a)) - ) { - s.add(a); - var v = vc.bind(null, o, c, a); - c.then(v, v); - } - (f.effectTag |= 4096), (f.expirationTime = t); - break e; - } - f = f.return; - } while (null !== f); - s = Error( - (me(a.type) || 'A React component') + - ' suspended while rendering, but no fallback UI was specified.\n\nAdd a component higher in the tree to provide a loading indicator or placeholder to display.' + - be(a) - ); - } - 5 !== Os && (Os = 2), (s = Ja(s, a)), (f = i); - do { - switch (f.tag) { - case 3: - (c = s), - (f.effectTag |= 4096), - (f.expirationTime = t), - li(f, hs(f, c, t)); - break e; - case 1: - c = s; - var _ = f.type, - x = f.stateNode; - if ( - 0 == (64 & f.effectTag) && - ('function' == typeof _.getDerivedStateFromError || - (null !== x && - 'function' == typeof x.componentDidCatch && - (null === Is || !Is.has(x)))) - ) { - (f.effectTag |= 4096), - (f.expirationTime = t), - li(f, gs(f, c, t)); - break e; - } - } - f = f.return; - } while (null !== f); - } - Ss = lc(Ss); - } catch (e) { - t = e; - continue; + }, + Ln = Cn.getEventPriority, + Pn = []; + function Dn(e) { + var t = e.targetInst, + n = t; + do { + if (!n) { + e.ancestors.push(n); + break; + } + var r; + for (r = n; r.return; ) r = r.return; + if (!(r = 3 !== r.tag ? null : r.stateNode.containerInfo)) break; + e.ancestors.push(n), (n = N(r)); + } while (n); + for (n = 0; n < e.ancestors.length; n++) { + t = e.ancestors[n]; + var o = Be(e.nativeEvent); + r = e.topLevelType; + for (var i = e.nativeEvent, a = null, s = 0; s < f.length; s++) { + var c = f[s]; + c && (c = c.extractEvents(r, t, i, o)) && (a = O(a, c)); } - break; + C(a); } } - function oc() { - var e = ys.current; - return (ys.current = ma), null === e ? ma : e; - } - function ic(e, t) { - e < Ts && 2 < e && (Ts = e), - null !== t && e < Cs && 2 < e && ((Cs = e), (Ls = t)); - } - function ac(e) { - e > Ps && (Ps = e); + var jn = !0; + function zn(e, t) { + Nn(t, e, !1); } - function sc() { - for (; null !== Ss; ) Ss = uc(Ss); + function Nn(e, t, n) { + switch (Ln(t)) { + case 0: + var r = Rn.bind(null, t, 1); + break; + case 1: + r = In.bind(null, t, 1); + break; + default: + r = Fn.bind(null, t, 1); + } + n ? e.addEventListener(t, r, !0) : e.addEventListener(t, r, !1); } - function cc() { - for (; null !== Ss && !zo(); ) Ss = uc(Ss); + function Rn(e, t, n) { + Re || ze(); + var r = Fn, + o = Re; + Re = !0; + try { + je(r, e, t, n); + } finally { + (Re = o) || Ie(); + } } - function uc(e) { - var t = ms(e.alternate, e, As); - return ( - (e.memoizedProps = e.pendingProps), - null === t && (t = lc(e)), - (vs.current = null), - t - ); + function In(e, t, n) { + Fn(e, t, n); } - function lc(e) { - Ss = e; - do { - var t = Ss.alternate; - if (((e = Ss.return), 0 == (2048 & Ss.effectTag))) { - if ( - ((t = $a(t, Ss, As)), 1 === As || 1 !== Ss.childExpirationTime) - ) { - for (var n = 0, r = Ss.child; null !== r; ) { - var o = r.expirationTime, - i = r.childExpirationTime; - o > n && (n = o), i > n && (n = i), (r = r.sibling); + function Fn(e, t, n) { + if (jn) { + if ( + (null === (t = N((t = Be(n)))) || + 'number' != typeof t.tag || + 2 === an(t) || + (t = null), + Pn.length) + ) { + var r = Pn.pop(); + (r.topLevelType = e), + (r.nativeEvent = n), + (r.targetInst = t), + (e = r); + } else + e = { + topLevelType: e, + nativeEvent: n, + targetInst: t, + ancestors: [] + }; + try { + if (((n = e), Re)) Dn(n); + else { + Re = !0; + try { + Ne(Dn, n, void 0); + } finally { + (Re = !1), Ie(); } - Ss.childExpirationTime = n; } - if (null !== t) return t; - null !== e && - 0 == (2048 & e.effectTag) && - (null === e.firstEffect && (e.firstEffect = Ss.firstEffect), - null !== Ss.lastEffect && - (null !== e.lastEffect && - (e.lastEffect.nextEffect = Ss.firstEffect), - (e.lastEffect = Ss.lastEffect)), - 1 < Ss.effectTag && - (null !== e.lastEffect - ? (e.lastEffect.nextEffect = Ss) - : (e.firstEffect = Ss), - (e.lastEffect = Ss))); - } else { - if (null !== (t = Qa(Ss))) return (t.effectTag &= 2047), t; - null !== e && - ((e.firstEffect = e.lastEffect = null), (e.effectTag |= 2048)); + } finally { + (e.topLevelType = null), + (e.nativeEvent = null), + (e.targetInst = null), + (e.ancestors.length = 0), + 10 > Pn.length && Pn.push(e); } - if (null !== (t = Ss.sibling)) return t; - Ss = e; - } while (null !== Ss); - return Os === _s && (Os = 5), null; - } - function fc(e) { - var t = e.expirationTime; - return t > (e = e.childExpirationTime) ? t : e; + } } - function dc(e) { - var t = Bo(); - return Yo(99, pc.bind(null, e, t)), null; + var qn = new ('function' == typeof WeakMap ? WeakMap : Map)(); + function Bn(e) { + var t = qn.get(e); + return void 0 === t && ((t = new Set()), qn.set(e, t)), t; } - function pc(e, t) { - do { - gc(); - } while (null !== qs); - if (0 != (48 & Ms)) throw Error(a(327)); - var n = e.finishedWork, - r = e.finishedExpirationTime; - if (null === n) return null; + function Hn(e) { if ( - ((e.finishedWork = null), - (e.finishedExpirationTime = 0), - n === e.current) + void 0 === + (e = e || ('undefined' != typeof document ? document : void 0)) ) - throw Error(a(177)); - (e.callbackNode = null), - (e.callbackExpirationTime = 0), - (e.callbackPriority = 90), - (e.nextKnownPendingLevel = 0); - var o = fc(n); - if ( - ((e.firstPendingTime = o), - r <= e.lastSuspendedTime - ? (e.firstSuspendedTime = e.lastSuspendedTime = e.nextKnownPendingLevel = 0) - : r <= e.firstSuspendedTime && (e.firstSuspendedTime = r - 1), - r <= e.lastPingedTime && (e.lastPingedTime = 0), - r <= e.lastExpiredTime && (e.lastExpiredTime = 0), - e === ks && ((Ss = ks = null), (As = 0)), - 1 < n.effectTag - ? null !== n.lastEffect - ? ((n.lastEffect.nextEffect = n), (o = n.firstEffect)) - : (o = n) - : (o = n.firstEffect), - null !== o) - ) { - var i = Ms; - (Ms |= 32), (vs.current = null), (gn = Ut); - var s = pn(); - if (hn(s)) { - if ('selectionStart' in s) - var c = { start: s.selectionStart, end: s.selectionEnd }; - else - e: { - var u = - (c = ((c = s.ownerDocument) && c.defaultView) || window) - .getSelection && c.getSelection(); - if (u && 0 !== u.rangeCount) { - c = u.anchorNode; - var l = u.anchorOffset, - f = u.focusNode; - u = u.focusOffset; - try { - c.nodeType, f.nodeType; - } catch (e) { - c = null; - break e; - } - var d = 0, - p = -1, - h = -1, - g = 0, - m = 0, - b = s, - y = null; - t: for (;;) { - for ( - var v; - b !== c || (0 !== l && 3 !== b.nodeType) || (p = d + l), - b !== f || (0 !== u && 3 !== b.nodeType) || (h = d + u), - 3 === b.nodeType && (d += b.nodeValue.length), - null !== (v = b.firstChild); - - ) - (y = b), (b = v); - for (;;) { - if (b === s) break t; - if ( - (y === c && ++g === l && (p = d), - y === f && ++m === u && (h = d), - null !== (v = b.nextSibling)) - ) - break; - y = (b = y).parentNode; - } - b = v; - } - c = -1 === p || -1 === h ? null : { start: p, end: h }; - } else c = null; - } - c = c || { start: 0, end: 0 }; - } else c = null; - (mn = { - activeElementDetached: null, - focusedElem: s, - selectionRange: c - }), - (Ut = !1), - (Ns = o); - do { - try { - hc(); - } catch (e) { - if (null === Ns) throw Error(a(330)); - yc(Ns, e), (Ns = Ns.nextEffect); - } - } while (null !== Ns); - Ns = o; - do { - try { - for (s = e, c = t; null !== Ns; ) { - var _ = Ns.effectTag; - if ((16 & _ && qe(Ns.stateNode, ''), 128 & _)) { - var x = Ns.alternate; - if (null !== x) { - var w = x.ref; - null !== w && - ('function' == typeof w ? w(null) : (w.current = null)); - } - } - switch (1038 & _) { - case 2: - us(Ns), (Ns.effectTag &= -3); - break; - case 6: - us(Ns), (Ns.effectTag &= -3), fs(Ns.alternate, Ns); - break; - case 1024: - Ns.effectTag &= -1025; - break; - case 1028: - (Ns.effectTag &= -1025), fs(Ns.alternate, Ns); - break; - case 4: - fs(Ns.alternate, Ns); - break; - case 8: - ls(s, (l = Ns), c), ss(l); - } - Ns = Ns.nextEffect; - } - } catch (e) { - if (null === Ns) throw Error(a(330)); - yc(Ns, e), (Ns = Ns.nextEffect); - } - } while (null !== Ns); - if ( - ((w = mn), - (x = pn()), - (_ = w.focusedElem), - (c = w.selectionRange), - x !== _ && - _ && - _.ownerDocument && - (function e(t, n) { - return ( - !(!t || !n) && - (t === n || - ((!t || 3 !== t.nodeType) && - (n && 3 === n.nodeType - ? e(t, n.parentNode) - : 'contains' in t - ? t.contains(n) - : !!t.compareDocumentPosition && - !!(16 & t.compareDocumentPosition(n))))) - ); - })(_.ownerDocument.documentElement, _)) - ) { - null !== c && - hn(_) && - ((x = c.start), - void 0 === (w = c.end) && (w = x), - 'selectionStart' in _ - ? ((_.selectionStart = x), - (_.selectionEnd = Math.min(w, _.value.length))) - : (w = - ((x = _.ownerDocument || document) && x.defaultView) || - window).getSelection && - ((w = w.getSelection()), - (l = _.textContent.length), - (s = Math.min(c.start, l)), - (c = void 0 === c.end ? s : Math.min(c.end, l)), - !w.extend && s > c && ((l = c), (c = s), (s = l)), - (l = dn(_, s)), - (f = dn(_, c)), - l && - f && - (1 !== w.rangeCount || - w.anchorNode !== l.node || - w.anchorOffset !== l.offset || - w.focusNode !== f.node || - w.focusOffset !== f.offset) && - ((x = x.createRange()).setStart(l.node, l.offset), - w.removeAllRanges(), - s > c - ? (w.addRange(x), w.extend(f.node, f.offset)) - : (x.setEnd(f.node, f.offset), w.addRange(x))))), - (x = []); - for (w = _; (w = w.parentNode); ) - 1 === w.nodeType && - x.push({ element: w, left: w.scrollLeft, top: w.scrollTop }); - for ( - 'function' == typeof _.focus && _.focus(), _ = 0; - _ < x.length; - _++ - ) - ((w = x[_]).element.scrollLeft = w.left), - (w.element.scrollTop = w.top); + return null; + try { + return e.activeElement || e.body; + } catch (t) { + return e.body; + } + } + function Yn(e) { + for (; e && e.firstChild; ) e = e.firstChild; + return e; + } + function Wn(e, t) { + var n, + r = Yn(e); + for (e = 0; r; ) { + if (3 === r.nodeType) { + if (((n = e + r.textContent.length), e <= t && n >= t)) + return { node: r, offset: t - e }; + e = n; } - (Ut = !!gn), (mn = gn = null), (e.current = n), (Ns = o); - do { - try { - for (_ = e; null !== Ns; ) { - var M = Ns.effectTag; - if ((36 & M && is(_, Ns.alternate, Ns), 128 & M)) { - x = void 0; - var k = Ns.ref; - if (null !== k) { - var S = Ns.stateNode; - switch (Ns.tag) { - case 5: - x = S; - break; - default: - x = S; - } - 'function' == typeof k ? k(x) : (k.current = x); - } - } - Ns = Ns.nextEffect; + e: { + for (; r; ) { + if (r.nextSibling) { + r = r.nextSibling; + break e; } - } catch (e) { - if (null === Ns) throw Error(a(330)); - yc(Ns, e), (Ns = Ns.nextEffect); + r = r.parentNode; } - } while (null !== Ns); - (Ns = null), No(), (Ms = i); - } else e.current = n; - if (Fs) (Fs = !1), (qs = e), (Bs = t); - else - for (Ns = o; null !== Ns; ) - (t = Ns.nextEffect), (Ns.nextEffect = null), (Ns = t); - if ( - (0 === (t = e.firstPendingTime) && (Is = null), - 1073741823 === t - ? e === Ws - ? Ys++ - : ((Ys = 0), (Ws = e)) - : (Ys = 0), - 'function' == typeof xc && xc(n.stateNode, r), - Qs(e), - js) - ) - throw ((js = !1), (e = Rs), (Rs = null), e); - return 0 != (8 & Ms) || Uo(), null; - } - function hc() { - for (; null !== Ns; ) { - var e = Ns.effectTag; - 0 != (256 & e) && ns(Ns.alternate, Ns), - 0 == (512 & e) || - Fs || - ((Fs = !0), - Wo(97, function() { - return gc(), null; - })), - (Ns = Ns.nextEffect); - } - } - function gc() { - if (90 !== Bs) { - var e = 97 < Bs ? 97 : Bs; - return (Bs = 90), Yo(e, mc); + r = void 0; + } + r = Yn(r); } } - function mc() { - if (null === qs) return !1; - var e = qs; - if (((qs = null), 0 != (48 & Ms))) throw Error(a(331)); - var t = Ms; - for (Ms |= 32, e = e.current.firstEffect; null !== e; ) { + function Vn() { + for (var e = window, t = Hn(); t instanceof e.HTMLIFrameElement; ) { try { - var n = e; - if (0 != (512 & n.effectTag)) - switch (n.tag) { - case 0: - case 11: - case 15: - case 22: - rs(5, n), os(5, n); - } - } catch (t) { - if (null === e) throw Error(a(330)); - yc(e, t); + var n = 'string' == typeof t.contentWindow.location.href; + } catch (e) { + n = !1; } - (n = e.nextEffect), (e.nextEffect = null), (e = n); + if (!n) break; + t = Hn((e = t.contentWindow).document); } - return (Ms = t), Uo(), !0; + return t; } - function bc(e, t, n) { - ui(e, (t = hs(e, (t = Ja(n, t)), 1073741823))), - null !== (e = Ks(e, 1073741823)) && Qs(e); + function Un(e) { + var t = e && e.nodeName && e.nodeName.toLowerCase(); + return ( + t && + (('input' === t && + ('text' === e.type || + 'search' === e.type || + 'tel' === e.type || + 'url' === e.type || + 'password' === e.type)) || + 'textarea' === t || + 'true' === e.contentEditable) + ); } - function yc(e, t) { - if (3 === e.tag) bc(e, e, t); - else - for (var n = e.return; null !== n; ) { - if (3 === n.tag) { - bc(n, e, t); - break; - } - if (1 === n.tag) { - var r = n.stateNode; - if ( - 'function' == typeof n.type.getDerivedStateFromError || - ('function' == typeof r.componentDidCatch && - (null === Is || !Is.has(r))) - ) { - ui(n, (e = gs(n, (e = Ja(t, e)), 1073741823))), - null !== (n = Ks(n, 1073741823)) && Qs(n); - break; - } - } - n = n.return; + var Xn = U && 'documentMode' in document && 11 >= document.documentMode, + Gn = { + select: { + phasedRegistrationNames: { + bubbled: 'onSelect', + captured: 'onSelectCapture' + }, + dependencies: 'blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange'.split( + ' ' + ) } + }, + Kn = null, + $n = null, + Qn = null, + Jn = !1; + function Zn(e, t) { + var n = + t.window === t ? t.document : 9 === t.nodeType ? t : t.ownerDocument; + return Jn || null == Kn || Kn !== Hn(n) + ? null + : ('selectionStart' in (n = Kn) && Un(n) + ? (n = { start: n.selectionStart, end: n.selectionEnd }) + : (n = { + anchorNode: (n = ( + (n.ownerDocument && n.ownerDocument.defaultView) || + window + ).getSelection()).anchorNode, + anchorOffset: n.anchorOffset, + focusNode: n.focusNode, + focusOffset: n.focusOffset + }), + Qn && rn(Qn, n) + ? null + : ((Qn = n), + ((e = ue.getPooled(Gn.select, $n, e, t)).type = 'select'), + (e.target = Kn), + V(e), + e)); } - function vc(e, t, n) { - var r = e.pingCache; - null !== r && r.delete(t), - ks === e && As === n - ? Os === ws || (Os === xs && 1073741823 === Ts && qo() - zs < 500) - ? nc(e, As) - : (Ds = !0) - : Pc(e, n) && - ((0 !== (t = e.lastPingedTime) && t < n) || - ((e.lastPingedTime = n), Qs(e))); - } - function _c(e, t) { - var n = e.stateNode; - null !== n && n.delete(t), - 0 === (t = 0) && (t = Xs((t = Us()), e, null)), - null !== (e = Ks(e, t)) && Qs(e); - } - ms = function(e, t, n) { - var r = t.expirationTime; - if (null !== e) { - var o = t.pendingProps; - if (e.memoizedProps !== o || po.current) Ca = !0; - else { - if (r < n) { - switch (((Ca = !1), t.tag)) { - case 3: - Fa(t), Ea(); - break; - case 5: - if ((zi(t), 4 & t.mode && 1 !== n && o.hidden)) - return (t.expirationTime = t.childExpirationTime = 1), null; - break; - case 1: - mo(t.type) && _o(t); - break; - case 4: - Pi(t, t.stateNode.containerInfo); - break; - case 10: - (r = t.memoizedProps.value), - (o = t.type._context), - uo($o, o._currentValue), - (o._currentValue = r); - break; - case 13: - if (null !== t.memoizedState) - return 0 !== (r = t.child.childExpirationTime) && r >= n - ? Wa(e, t, n) - : (uo(ji, 1 & ji.current), - null !== (t = Ga(e, t, n)) ? t.sibling : null); - uo(ji, 1 & ji.current); - break; - case 19: - if ( - ((r = t.childExpirationTime >= n), 0 != (64 & e.effectTag)) - ) { - if (r) return Xa(e, t, n); - t.effectTag |= 64; - } - if ( - (null !== (o = t.memoizedState) && - ((o.rendering = null), (o.tail = null)), - uo(ji, ji.current), - !r) - ) - return null; - } - return Ga(e, t, n); - } - Ca = !1; - } - } else Ca = !1; - switch (((t.expirationTime = 0), t.tag)) { - case 2: - if ( - ((r = t.type), - null !== e && - ((e.alternate = null), - (t.alternate = null), - (t.effectTag |= 2)), - (e = t.pendingProps), - (o = go(t, fo.current)), - ri(t, n), - (o = Gi(null, t, r, e, o, n)), - (t.effectTag |= 1), - 'object' == typeof o && - null !== o && - 'function' == typeof o.render && - void 0 === o.$$typeof) - ) { - if ( - ((t.tag = 1), - (t.memoizedState = null), - (t.updateQueue = null), - mo(r)) - ) { - var i = !0; - _o(t); - } else i = !1; - (t.memoizedState = - null !== o.state && void 0 !== o.state ? o.state : null), - ai(t); - var s = r.getDerivedStateFromProps; - 'function' == typeof s && gi(t, r, s, e), - (o.updater = mi), - (t.stateNode = o), - (o._reactInternalFiber = t), - _i(t, r, e, n), - (t = Ia(null, t, r, !0, i, n)); - } else (t.tag = 0), La(null, t, o, n), (t = t.child); - return t; - case 16: + var er = { + eventTypes: Gn, + extractEvents: function(e, t, n, r) { + var o, + i = + r.window === r + ? r.document + : 9 === r.nodeType + ? r + : r.ownerDocument; + if (!(o = !i)) { e: { - if ( - ((o = t.elementType), - null !== e && - ((e.alternate = null), - (t.alternate = null), - (t.effectTag |= 2)), - (e = t.pendingProps), - (function(e) { - if (-1 === e._status) { - e._status = 0; - var t = e._ctor; - (t = t()), - (e._result = t), - t.then( - function(t) { - 0 === e._status && - ((t = t.default), (e._status = 1), (e._result = t)); - }, - function(t) { - 0 === e._status && ((e._status = 2), (e._result = t)); - } - ); - } - })(o), - 1 !== o._status) - ) - throw o._result; - switch ( - ((o = o._result), - (t.type = o), - (i = t.tag = (function(e) { - if ('function' == typeof e) return Sc(e) ? 1 : 0; - if (null != e) { - if ((e = e.$$typeof) === ce) return 11; - if (e === fe) return 14; - } - return 2; - })(o)), - (e = Ko(o, e)), - i) - ) { - case 0: - t = ja(null, t, o, e, n); - break e; - case 1: - t = Ra(null, t, o, e, n); - break e; - case 11: - t = Pa(null, t, o, e, n); - break e; - case 14: - t = Da(null, t, o, Ko(o.type, e), r, n); + (i = Bn(i)), (o = h.onSelect); + for (var a = 0; a < o.length; a++) + if (!i.has(o[a])) { + i = !1; break e; - } - throw Error(a(306, o, '')); - } - return t; - case 0: - return ( - (r = t.type), - (o = t.pendingProps), - ja(e, t, r, (o = t.elementType === r ? o : Ko(r, o)), n) - ); - case 1: - return ( - (r = t.type), - (o = t.pendingProps), - Ra(e, t, r, (o = t.elementType === r ? o : Ko(r, o)), n) - ); - case 3: - if ((Fa(t), (r = t.updateQueue), null === e || null === r)) - throw Error(a(282)); - if ( - ((r = t.pendingProps), - (o = null !== (o = t.memoizedState) ? o.element : null), - si(e, t), - fi(t, r, null, n), - (r = t.memoizedState.element) === o) - ) - Ea(), (t = Ga(e, t, n)); - else { - if ( - ((o = t.stateNode.hydrate) && - ((xa = xn(t.stateNode.containerInfo.firstChild)), - (_a = t), - (o = wa = !0)), - o) - ) - for (n = Ai(t, null, r, n), t.child = n; n; ) - (n.effectTag = (-3 & n.effectTag) | 1024), (n = n.sibling); - else La(e, t, r, n), Ea(); - t = t.child; - } - return t; - case 5: - return ( - zi(t), - null === e && Sa(t), - (r = t.type), - (o = t.pendingProps), - (i = null !== e ? e.memoizedProps : null), - (s = o.children), - yn(r, o) - ? (s = null) - : null !== i && yn(r, i) && (t.effectTag |= 16), - Na(e, t), - 4 & t.mode && 1 !== n && o.hidden - ? ((t.expirationTime = t.childExpirationTime = 1), (t = null)) - : (La(e, t, s, n), (t = t.child)), - t - ); - case 6: - return null === e && Sa(t), null; - case 13: - return Wa(e, t, n); - case 4: - return ( - Pi(t, t.stateNode.containerInfo), - (r = t.pendingProps), - null === e ? (t.child = Si(t, null, r, n)) : La(e, t, r, n), - t.child - ); - case 11: - return ( - (r = t.type), - (o = t.pendingProps), - Pa(e, t, r, (o = t.elementType === r ? o : Ko(r, o)), n) - ); - case 7: - return La(e, t, t.pendingProps, n), t.child; - case 8: - case 12: - return La(e, t, t.pendingProps.children, n), t.child; - case 10: - e: { - (r = t.type._context), - (o = t.pendingProps), - (s = t.memoizedProps), - (i = o.value); - var c = t.type._context; - if ((uo($o, c._currentValue), (c._currentValue = i), null !== s)) - if ( - ((c = s.value), - 0 === - (i = Rr(c, i) - ? 0 - : 0 | - ('function' == typeof r._calculateChangedBits - ? r._calculateChangedBits(c, i) - : 1073741823))) - ) { - if (s.children === o.children && !po.current) { - t = Ga(e, t, n); - break e; - } - } else - for (null !== (c = t.child) && (c.return = t); null !== c; ) { - var u = c.dependencies; - if (null !== u) { - s = c.child; - for (var l = u.firstContext; null !== l; ) { - if (l.context === r && 0 != (l.observedBits & i)) { - 1 === c.tag && - (((l = ci(n, null)).tag = 2), ui(c, l)), - c.expirationTime < n && (c.expirationTime = n), - null !== (l = c.alternate) && - l.expirationTime < n && - (l.expirationTime = n), - ni(c.return, n), - u.expirationTime < n && (u.expirationTime = n); - break; - } - l = l.next; - } - } else - s = 10 === c.tag && c.type === t.type ? null : c.child; - if (null !== s) s.return = c; - else - for (s = c; null !== s; ) { - if (s === t) { - s = null; - break; - } - if (null !== (c = s.sibling)) { - (c.return = s.return), (s = c); - break; - } - s = s.return; - } - c = s; - } - La(e, t, o.children, n), (t = t.child); + } + i = !0; } - return t; - case 9: - return ( - (o = t.type), - (r = (i = t.pendingProps).children), - ri(t, n), - (r = r((o = oi(o, i.unstable_observedBits)))), - (t.effectTag |= 1), - La(e, t, r, n), - t.child - ); - case 14: - return ( - (i = Ko((o = t.type), t.pendingProps)), - Da(e, t, o, (i = Ko(o.type, i)), r, n) - ); - case 15: - return za(e, t, t.type, t.pendingProps, r, n); - case 17: - return ( - (r = t.type), - (o = t.pendingProps), - (o = t.elementType === r ? o : Ko(r, o)), - null !== e && - ((e.alternate = null), - (t.alternate = null), - (t.effectTag |= 2)), - (t.tag = 1), - mo(r) ? ((e = !0), _o(t)) : (e = !1), - ri(t, n), - yi(t, r, o), - _i(t, r, o, n), - Ia(null, t, r, !0, e, n) - ); - case 19: - return Xa(e, t, n); + o = !i; + } + if (o) return null; + switch (((i = t ? I(t) : window), e)) { + case 'focus': + (qe(i) || 'true' === i.contentEditable) && + ((Kn = i), ($n = t), (Qn = null)); + break; + case 'blur': + Qn = $n = Kn = null; + break; + case 'mousedown': + Jn = !0; + break; + case 'contextmenu': + case 'mouseup': + case 'dragend': + return (Jn = !1), Zn(n, r); + case 'selectionchange': + if (Xn) break; + case 'keydown': + case 'keyup': + return Zn(n, r); + } + return null; } - throw Error(a(156, t.tag)); }; - var xc = null, - wc = null; - function Mc(e, t, n, r) { - (this.tag = e), - (this.key = n), - (this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null), - (this.index = 0), - (this.ref = null), - (this.pendingProps = t), - (this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null), - (this.mode = r), - (this.effectTag = 0), - (this.lastEffect = this.firstEffect = this.nextEffect = null), - (this.childExpirationTime = this.expirationTime = 0), - (this.alternate = null); - } - function kc(e, t, n, r) { - return new Mc(e, t, n, r); - } - function Sc(e) { - return !(!(e = e.prototype) || !e.isReactComponent); - } - function Ac(e, t) { - var n = e.alternate; + function tr(e, t) { return ( - null === n - ? (((n = kc(e.tag, t, e.key, e.mode)).elementType = e.elementType), - (n.type = e.type), - (n.stateNode = e.stateNode), - (n.alternate = e), - (e.alternate = n)) - : ((n.pendingProps = t), - (n.effectTag = 0), - (n.nextEffect = null), - (n.firstEffect = null), - (n.lastEffect = null)), - (n.childExpirationTime = e.childExpirationTime), - (n.expirationTime = e.expirationTime), - (n.child = e.child), - (n.memoizedProps = e.memoizedProps), - (n.memoizedState = e.memoizedState), - (n.updateQueue = e.updateQueue), - (t = e.dependencies), - (n.dependencies = - null === t - ? null - : { - expirationTime: t.expirationTime, - firstContext: t.firstContext, - responders: t.responders - }), - (n.sibling = e.sibling), - (n.index = e.index), - (n.ref = e.ref), - n + (e = o({ children: void 0 }, t)), + (t = (function(e) { + var t = ''; + return ( + r.Children.forEach(e, function(e) { + null != e && (t += e); + }), + t + ); + })(t.children)) && (e.children = t), + e ); } - function Oc(e, t, n, r, o, i) { - var s = 2; - if (((r = e), 'function' == typeof e)) Sc(e) && (s = 1); - else if ('string' == typeof e) s = 5; - else - e: switch (e) { - case ne: - return Ec(n.children, o, i, t); - case se: - (s = 8), (o |= 7); - break; - case re: - (s = 8), (o |= 1); - break; - case oe: - return ( - ((e = kc(12, n, t, 8 | o)).elementType = oe), - (e.type = oe), - (e.expirationTime = i), - e - ); - case ue: - return ( - ((e = kc(13, n, t, o)).type = ue), - (e.elementType = ue), - (e.expirationTime = i), - e - ); - case le: + function nr(e, t, n, r) { + if (((e = e.options), t)) { + t = {}; + for (var o = 0; o < n.length; o++) t['$' + n[o]] = !0; + for (n = 0; n < e.length; n++) + (o = t.hasOwnProperty('$' + e[n].value)), + e[n].selected !== o && (e[n].selected = o), + o && r && (e[n].defaultSelected = !0); + } else { + for (n = '' + wt(n), t = null, o = 0; o < e.length; o++) { + if (e[o].value === n) return ( - ((e = kc(19, n, t, o)).elementType = le), - (e.expirationTime = i), - e + (e[o].selected = !0), void (r && (e[o].defaultSelected = !0)) ); - default: - if ('object' == typeof e && null !== e) - switch (e.$$typeof) { - case ie: - s = 10; - break e; - case ae: - s = 9; - break e; - case ce: - s = 11; - break e; - case fe: - s = 14; - break e; - case de: - (s = 16), (r = null); - break e; - case pe: - s = 22; - break e; - } - throw Error(a(130, null == e ? e : typeof e, '')); + null !== t || e[o].disabled || (t = e[o]); } - return ( - ((t = kc(s, n, t, o)).elementType = e), - (t.type = r), - (t.expirationTime = i), - t - ); - } - function Ec(e, t, n, r) { - return ((e = kc(7, e, r, t)).expirationTime = n), e; - } - function Tc(e, t, n) { - return ((e = kc(6, e, null, t)).expirationTime = n), e; + null !== t && (t.selected = !0); + } } - function Cc(e, t, n) { - return ( - ((t = kc( - 4, - null !== e.children ? e.children : [], - e.key, - t - )).expirationTime = n), - (t.stateNode = { - containerInfo: e.containerInfo, - pendingChildren: null, - implementation: e.implementation - }), - t - ); + function rr(e, t) { + if (null != t.dangerouslySetInnerHTML) throw a(Error(91)); + return o({}, t, { + value: void 0, + defaultValue: void 0, + children: '' + e._wrapperState.initialValue + }); } - function Lc(e, t, n) { - (this.tag = t), - (this.current = null), - (this.containerInfo = e), - (this.pingCache = this.pendingChildren = null), - (this.finishedExpirationTime = 0), - (this.finishedWork = null), - (this.timeoutHandle = -1), - (this.pendingContext = this.context = null), - (this.hydrate = n), - (this.callbackNode = null), - (this.callbackPriority = 90), - (this.lastExpiredTime = this.lastPingedTime = this.nextKnownPendingLevel = this.lastSuspendedTime = this.firstSuspendedTime = this.firstPendingTime = 0); - } - function Pc(e, t) { - var n = e.firstSuspendedTime; - return (e = e.lastSuspendedTime), 0 !== n && n >= t && e <= t; - } - function Dc(e, t) { - var n = e.firstSuspendedTime, - r = e.lastSuspendedTime; - n < t && (e.firstSuspendedTime = t), - (r > t || 0 === n) && (e.lastSuspendedTime = t), - t <= e.lastPingedTime && (e.lastPingedTime = 0), - t <= e.lastExpiredTime && (e.lastExpiredTime = 0); - } - function zc(e, t) { - t > e.firstPendingTime && (e.firstPendingTime = t); - var n = e.firstSuspendedTime; - 0 !== n && - (t >= n - ? (e.firstSuspendedTime = e.lastSuspendedTime = e.nextKnownPendingLevel = 0) - : t >= e.lastSuspendedTime && (e.lastSuspendedTime = t + 1), - t > e.nextKnownPendingLevel && (e.nextKnownPendingLevel = t)); - } - function Nc(e, t) { - var n = e.lastExpiredTime; - (0 === n || n > t) && (e.lastExpiredTime = t); - } - function jc(e, t, n, r) { - var o = t.current, - i = Us(), - s = pi.suspense; - i = Xs(i, o, s); - e: if (n) { - t: { - if (Ze((n = n._reactInternalFiber)) !== n || 1 !== n.tag) - throw Error(a(170)); - var c = n; - do { - switch (c.tag) { - case 3: - c = c.stateNode.context; - break t; - case 1: - if (mo(c.type)) { - c = c.stateNode.__reactInternalMemoizedMergedChildContext; - break t; - } - } - c = c.return; - } while (null !== c); - throw Error(a(171)); - } - if (1 === n.tag) { - var u = n.type; - if (mo(u)) { - n = vo(n, u, c); - break e; + function or(e, t) { + var n = t.value; + if (null == n) { + if (((n = t.defaultValue), null != (t = t.children))) { + if (null != n) throw a(Error(92)); + if (Array.isArray(t)) { + if (!(1 >= t.length)) throw a(Error(93)); + t = t[0]; } + n = t; } - n = c; - } else n = lo; - return ( - null === t.context ? (t.context = n) : (t.pendingContext = n), - ((t = ci(i, s)).payload = { element: e }), - null !== (r = void 0 === r ? null : r) && (t.callback = r), - ui(o, t), - Gs(o, i), - i - ); + null == n && (n = ''); + } + e._wrapperState = { initialValue: wt(n) }; } - function Rc(e) { - if (!(e = e.current).child) return null; - switch (e.child.tag) { - case 5: + function ir(e, t) { + var n = wt(t.value), + r = wt(t.defaultValue); + null != n && + ((n = '' + n) !== e.value && (e.value = n), + null == t.defaultValue && + e.defaultValue !== n && + (e.defaultValue = n)), + null != r && (e.defaultValue = '' + r); + } + function ar(e) { + var t = e.textContent; + t === e._wrapperState.initialValue && (e.value = t); + } + L.injectEventPluginOrder( + 'ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin'.split( + ' ' + ) + ), + (x = F), + (M = R), + (k = I), + L.injectEventPluginsByName({ + SimpleEventPlugin: Cn, + EnterLeaveEventPlugin: en, + ChangeEventPlugin: Ht, + SelectEventPlugin: er, + BeforeInputEventPlugin: Oe + }); + var sr = { + html: 'http://www.w3.org/1999/xhtml', + mathml: 'http://www.w3.org/1998/Math/MathML', + svg: 'http://www.w3.org/2000/svg' + }; + function cr(e) { + switch (e) { + case 'svg': + return 'http://www.w3.org/2000/svg'; + case 'math': + return 'http://www.w3.org/1998/Math/MathML'; default: - return e.child.stateNode; + return 'http://www.w3.org/1999/xhtml'; } } - function Ic(e, t) { - null !== (e = e.memoizedState) && - null !== e.dehydrated && - e.retryTime < t && - (e.retryTime = t); - } - function Fc(e, t) { - Ic(e, t), (e = e.alternate) && Ic(e, t); + function ur(e, t) { + return null == e || 'http://www.w3.org/1999/xhtml' === e + ? cr(t) + : 'http://www.w3.org/2000/svg' === e && 'foreignObject' === t + ? 'http://www.w3.org/1999/xhtml' + : e; } - function qc(e, t, n) { - var r = new Lc(e, t, (n = null != n && !0 === n.hydrate)), - o = kc(3, null, null, 2 === t ? 7 : 1 === t ? 3 : 0); - (r.current = o), - (o.stateNode = r), - ai(o), - (e[An] = r.current), - n && - 0 !== t && - (function(e, t) { - var n = Je(t); - At.forEach(function(e) { - ht(e, t, n); - }), - Ot.forEach(function(e) { - ht(e, t, n); + var lr = void 0, + fr = (function(e) { + return 'undefined' != typeof MSApp && MSApp.execUnsafeLocalFunction + ? function(t, n, r, o) { + MSApp.execUnsafeLocalFunction(function() { + return e(t, n); }); - })(0, 9 === e.nodeType ? e : e.ownerDocument), - (this._internalRoot = r); + } + : e; + })(function(e, t) { + if (e.namespaceURI !== sr.svg || 'innerHTML' in e) e.innerHTML = t; + else { + for ( + (lr = lr || document.createElement('div')).innerHTML = + '' + t + '', + t = lr.firstChild; + e.firstChild; + + ) + e.removeChild(e.firstChild); + for (; t.firstChild; ) e.appendChild(t.firstChild); + } + }); + function dr(e, t) { + if (t) { + var n = e.firstChild; + if (n && n === e.lastChild && 3 === n.nodeType) + return void (n.nodeValue = t); + } + e.textContent = t; } - function Bc(e) { - return !( - !e || - (1 !== e.nodeType && - 9 !== e.nodeType && - 11 !== e.nodeType && - (8 !== e.nodeType || - ' react-mount-point-unstable ' !== e.nodeValue)) - ); + var pr = { + 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, + gridArea: !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 + }, + hr = ['Webkit', 'ms', 'Moz', 'O']; + function gr(e, t, n) { + return null == t || 'boolean' == typeof t || '' === t + ? '' + : n || + 'number' != typeof t || + 0 === t || + (pr.hasOwnProperty(e) && pr[e]) + ? ('' + t).trim() + : t + 'px'; } - function Hc(e, t, n, r, o) { - var i = n._reactRootContainer; - if (i) { - var a = i._internalRoot; - if ('function' == typeof o) { - var s = o; - o = function() { - var e = Rc(a); - s.call(e); - }; + function mr(e, t) { + for (var n in ((e = e.style), t)) + if (t.hasOwnProperty(n)) { + var r = 0 === n.indexOf('--'), + o = gr(n, t[n], r); + 'float' === n && (n = 'cssFloat'), + r ? e.setProperty(n, o) : (e[n] = o); } - jc(t, a, e, o); - } else { + } + Object.keys(pr).forEach(function(e) { + hr.forEach(function(t) { + (t = t + e.charAt(0).toUpperCase() + e.substring(1)), (pr[t] = pr[e]); + }); + }); + var br = o( + { menuitem: !0 }, + { + area: !0, + base: !0, + br: !0, + col: !0, + embed: !0, + hr: !0, + img: !0, + input: !0, + keygen: !0, + link: !0, + meta: !0, + param: !0, + source: !0, + track: !0, + wbr: !0 + } + ); + function yr(e, t) { + if (t) { if ( - ((i = n._reactRootContainer = (function(e, t) { - if ( - (t || - (t = !( - !(t = e - ? 9 === e.nodeType - ? e.documentElement - : e.firstChild - : null) || - 1 !== t.nodeType || - !t.hasAttribute('data-reactroot') - )), - !t) + br[e] && + (null != t.children || null != t.dangerouslySetInnerHTML) + ) + throw a(Error(137), e, ''); + if (null != t.dangerouslySetInnerHTML) { + if (null != t.children) throw a(Error(60)); + if ( + !( + 'object' == typeof t.dangerouslySetInnerHTML && + '__html' in t.dangerouslySetInnerHTML ) - for (var n; (n = e.lastChild); ) e.removeChild(n); - return new qc(e, 0, t ? { hydrate: !0 } : void 0); - })(n, r)), - (a = i._internalRoot), - 'function' == typeof o) - ) { - var c = o; - o = function() { - var e = Rc(a); - c.call(e); - }; + ) + throw a(Error(61)); } - tc(function() { - jc(t, a, e, o); - }); + if (null != t.style && 'object' != typeof t.style) + throw a(Error(62), ''); } - return Rc(a); - } - function Yc(e, t, n) { - var r = - 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; - return { - $$typeof: te, - key: null == r ? null : '' + r, - children: e, - containerInfo: t, - implementation: n - }; } - function Wc(e, t) { - var n = - 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null; - if (!Bc(t)) throw Error(a(200)); - return Yc(e, t, null, n); + function vr(e, t) { + if (-1 === e.indexOf('-')) return 'string' == typeof t.is; + switch (e) { + case 'annotation-xml': + case 'color-profile': + case 'font-face': + case 'font-face-src': + case 'font-face-uri': + case 'font-face-format': + case 'font-face-name': + case 'missing-glyph': + return !1; + default: + return !0; + } } - (qc.prototype.render = function(e) { - jc(e, this._internalRoot, null, null); - }), - (qc.prototype.unmount = function() { - var e = this._internalRoot, - t = e.containerInfo; - jc(null, e, null, function() { - t[An] = null; - }); - }), - (gt = function(e) { - if (13 === e.tag) { - var t = Go(Us(), 150, 100); - Gs(e, t), Fc(e, t); - } - }), - (mt = function(e) { - 13 === e.tag && (Gs(e, 3), Fc(e, 3)); - }), - (bt = function(e) { - if (13 === e.tag) { - var t = Us(); - Gs(e, (t = Xs(t, e, null))), Fc(e, t); - } - }), - (E = function(e, t, n) { - switch (t) { - case 'input': - if ((Se(e, n), (t = n.name), 'radio' === n.type && null != t)) { - for (n = e; n.parentNode; ) n = n.parentNode; - for ( - n = n.querySelectorAll( - 'input[name=' + JSON.stringify('' + t) + '][type="radio"]' - ), - t = 0; - t < n.length; - t++ - ) { - var r = n[t]; - if (r !== e && r.form === e.form) { - var o = Cn(r); - if (!o) throw Error(a(90)); - xe(r), Se(r, o); - } - } - } - break; - case 'textarea': - Pe(e, n); - break; - case 'select': - null != (t = n.value) && Te(e, !!n.multiple, t, !1); - } - }), - (z = ec), - (N = function(e, t, n, r, o) { - var i = Ms; - Ms |= 4; - try { - return Yo(98, e.bind(null, t, n, r, o)); - } finally { - 0 === (Ms = i) && Uo(); - } - }), - (j = function() { - 0 == (49 & Ms) && - ((function() { - if (null !== Hs) { - var e = Hs; - (Hs = null), - e.forEach(function(e, t) { - Nc(t, e), Qs(t); - }), - Uo(); - } - })(), - gc()); - }), - (R = function(e, t) { - var n = Ms; - Ms |= 2; - try { - return e(t); - } finally { - 0 === (Ms = n) && Uo(); - } - }); - var Vc, - Uc, - Xc = { - Events: [ - En, - Tn, - Cn, - A, - M, - Rn, - function(e) { - ot(e, jn); - }, - P, - D, - Qt, - st, - gc, - { current: !1 } - ] - }; - (Uc = (Vc = { - findFiberByHostInstance: On, - bundleType: 0, - version: '16.13.1', - rendererPackageName: 'react-dom' - }).findFiberByHostInstance), - (function(e) { - if ('undefined' == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; - var t = __REACT_DEVTOOLS_GLOBAL_HOOK__; - if (t.isDisabled || !t.supportsFiber) return !0; - try { - var n = t.inject(e); - (xc = function(e) { - try { - t.onCommitFiberRoot( - n, - e, - void 0, - 64 == (64 & e.current.effectTag) - ); - } catch (e) {} - }), - (wc = function(e) { - try { - t.onCommitFiberUnmount(n, e); - } catch (e) {} - }); - } catch (e) {} - })( - o({}, Vc, { - overrideHookState: null, - overrideProps: null, - setSuspenseHandler: null, - scheduleUpdate: null, - currentDispatcherRef: $.ReactCurrentDispatcher, - findHostInstanceByFiber: function(e) { - return null === (e = nt(e)) ? null : e.stateNode; - }, - findFiberByHostInstance: function(e) { - return Uc ? Uc(e) : null; - }, - findHostInstancesForRefresh: null, - scheduleRefresh: null, - scheduleRoot: null, - setRefreshHandler: null, - getCurrentFiber: null - }) - ), - (t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Xc), - (t.createPortal = Wc), - (t.findDOMNode = function(e) { - if (null == e) return null; - if (1 === e.nodeType) return e; - var t = e._reactInternalFiber; - if (void 0 === t) { - if ('function' == typeof e.render) throw Error(a(188)); - throw Error(a(268, Object.keys(e))); - } - return (e = null === (e = nt(t)) ? null : e.stateNode); - }), - (t.flushSync = function(e, t) { - if (0 != (48 & Ms)) throw Error(a(187)); - var n = Ms; - Ms |= 1; - try { - return Yo(99, e.bind(null, t)); - } finally { - (Ms = n), Uo(); + function _r(e, t) { + var n = Bn( + (e = 9 === e.nodeType || 11 === e.nodeType ? e : e.ownerDocument) + ); + t = h[t]; + for (var r = 0; r < t.length; r++) { + var o = t[r]; + if (!n.has(o)) { + switch (o) { + case 'scroll': + Nn(e, 'scroll', !0); + break; + case 'focus': + case 'blur': + Nn(e, 'focus', !0), + Nn(e, 'blur', !0), + n.add('blur'), + n.add('focus'); + break; + case 'cancel': + case 'close': + He(o) && Nn(e, o, !0); + break; + case 'invalid': + case 'submit': + case 'reset': + break; + default: + -1 === ne.indexOf(o) && zn(o, e); + } + n.add(o); } - }), - (t.hydrate = function(e, t, n) { - if (!Bc(t)) throw Error(a(200)); - return Hc(null, e, t, !0, n); - }), - (t.render = function(e, t, n) { - if (!Bc(t)) throw Error(a(200)); - return Hc(null, e, t, !1, n); - }), - (t.unmountComponentAtNode = function(e) { - if (!Bc(e)) throw Error(a(40)); - return ( - !!e._reactRootContainer && - (tc(function() { - Hc(null, null, e, !1, function() { - (e._reactRootContainer = null), (e[An] = null); - }); - }), - !0) - ); - }), - (t.unstable_batchedUpdates = ec), - (t.unstable_createPortal = function(e, t) { - return Wc( - e, - t, - 2 < arguments.length && void 0 !== arguments[2] - ? arguments[2] - : null - ); - }), - (t.unstable_renderSubtreeIntoContainer = function(e, t, n, r) { - if (!Bc(n)) throw Error(a(200)); - if (null == e || void 0 === e._reactInternalFiber) throw Error(a(38)); - return Hc(e, t, n, !1, r); - }), - (t.version = '16.13.1'); - }, - function(e, t, n) { - 'use strict'; - e.exports = n(446); - }, - function(e, t, n) { - 'use strict'; - /** @license React v0.19.1 - * scheduler.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ var r, o, i, a, s; - if ('undefined' == typeof window || 'function' != typeof MessageChannel) { - var c = null, - u = null, - l = function() { - if (null !== c) - try { - var e = t.unstable_now(); - c(!0, e), (c = null); - } catch (e) { - throw (setTimeout(l, 0), e); - } - }, - f = Date.now(); - (t.unstable_now = function() { - return Date.now() - f; - }), - (r = function(e) { - null !== c ? setTimeout(r, 0, e) : ((c = e), setTimeout(l, 0)); - }), - (o = function(e, t) { - u = setTimeout(e, t); - }), - (i = function() { - clearTimeout(u); - }), - (a = function() { - return !1; - }), - (s = t.unstable_forceFrameRate = function() {}); - } else { - var d = window.performance, - p = window.Date, - h = window.setTimeout, - g = window.clearTimeout; - if ('undefined' != typeof console) { - var m = window.cancelAnimationFrame; - 'function' != typeof window.requestAnimationFrame && - console.error( - "This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills" - ), - 'function' != typeof m && - console.error( - "This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills" - ); } - if ('object' == typeof d && 'function' == typeof d.now) - t.unstable_now = function() { - return d.now(); - }; - else { - var b = p.now(); - t.unstable_now = function() { - return p.now() - b; - }; + } + function wr() {} + var xr = null, + Mr = null; + function kr(e, t) { + switch (e) { + case 'button': + case 'input': + case 'select': + case 'textarea': + return !!t.autoFocus; + } + return !1; + } + function Sr(e, t) { + return ( + 'textarea' === e || + 'option' === e || + 'noscript' === e || + 'string' == typeof t.children || + 'number' == typeof t.children || + ('object' == typeof t.dangerouslySetInnerHTML && + null !== t.dangerouslySetInnerHTML && + null != t.dangerouslySetInnerHTML.__html) + ); + } + var Or = 'function' == typeof setTimeout ? setTimeout : void 0, + Er = 'function' == typeof clearTimeout ? clearTimeout : void 0; + function Ar(e) { + for (; null != e; e = e.nextSibling) { + var t = e.nodeType; + if (1 === t || 3 === t) break; + } + return e; + } + new Set(); + var Tr = [], + Cr = -1; + function Lr(e) { + 0 > Cr || ((e.current = Tr[Cr]), (Tr[Cr] = null), Cr--); + } + function Pr(e, t) { + (Tr[++Cr] = e.current), (e.current = t); + } + var Dr = {}, + jr = { current: Dr }, + zr = { current: !1 }, + Nr = Dr; + function Rr(e, t) { + var n = e.type.contextTypes; + if (!n) return Dr; + var r = e.stateNode; + if (r && r.__reactInternalMemoizedUnmaskedChildContext === t) + return r.__reactInternalMemoizedMaskedChildContext; + var o, + i = {}; + for (o in n) i[o] = t[o]; + return ( + r && + (((e = + e.stateNode).__reactInternalMemoizedUnmaskedChildContext = t), + (e.__reactInternalMemoizedMaskedChildContext = i)), + i + ); + } + function Ir(e) { + return null != (e = e.childContextTypes); + } + function Fr(e) { + Lr(zr), Lr(jr); + } + function qr(e) { + Lr(zr), Lr(jr); + } + function Br(e, t, n) { + if (jr.current !== Dr) throw a(Error(168)); + Pr(jr, t), Pr(zr, n); + } + function Hr(e, t, n) { + var r = e.stateNode; + if (((e = t.childContextTypes), 'function' != typeof r.getChildContext)) + return n; + for (var i in (r = r.getChildContext())) + if (!(i in e)) throw a(Error(108), lt(t) || 'Unknown', i); + return o({}, n, r); + } + function Yr(e) { + var t = e.stateNode; + return ( + (t = (t && t.__reactInternalMemoizedMergedChildContext) || Dr), + (Nr = jr.current), + Pr(jr, t), + Pr(zr, zr.current), + !0 + ); + } + function Wr(e, t, n) { + var r = e.stateNode; + if (!r) throw a(Error(169)); + n + ? ((t = Hr(e, t, Nr)), + (r.__reactInternalMemoizedMergedChildContext = t), + Lr(zr), + Lr(jr), + Pr(jr, t)) + : Lr(zr), + Pr(zr, n); + } + var Vr = i.unstable_runWithPriority, + Ur = i.unstable_scheduleCallback, + Xr = i.unstable_cancelCallback, + Gr = i.unstable_shouldYield, + Kr = i.unstable_requestPaint, + $r = i.unstable_now, + Qr = i.unstable_getCurrentPriorityLevel, + Jr = i.unstable_ImmediatePriority, + Zr = i.unstable_UserBlockingPriority, + eo = i.unstable_NormalPriority, + to = i.unstable_LowPriority, + no = i.unstable_IdlePriority, + ro = {}, + oo = void 0 !== Kr ? Kr : function() {}, + io = null, + ao = null, + so = !1, + co = $r(), + uo = + 1e4 > co + ? $r + : function() { + return $r() - co; + }; + function lo() { + switch (Qr()) { + case Jr: + return 99; + case Zr: + return 98; + case eo: + return 97; + case to: + return 96; + case no: + return 95; + default: + throw a(Error(332)); } - var y = !1, - v = null, - _ = -1, - x = 5, - w = 0; - (a = function() { - return t.unstable_now() >= w; - }), - (s = function() {}), - (t.unstable_forceFrameRate = function(e) { - 0 > e || 125 < e - ? console.error( - 'forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported' - ) - : (x = 0 < e ? Math.floor(1e3 / e) : 5); - }); - var M = new MessageChannel(), - k = M.port2; - (M.port1.onmessage = function() { - if (null !== v) { - var e = t.unstable_now(); - w = e + x; - try { - v(!0, e) ? k.postMessage(null) : ((y = !1), (v = null)); - } catch (e) { - throw (k.postMessage(null), e); - } - } else y = !1; - }), - (r = function(e) { - (v = e), y || ((y = !0), k.postMessage(null)); - }), - (o = function(e, n) { - _ = h(function() { - e(t.unstable_now()); - }, n); - }), - (i = function() { - g(_), (_ = -1); - }); } - function S(e, t) { - var n = e.length; - e.push(t); - e: for (;;) { - var r = (n - 1) >>> 1, - o = e[r]; - if (!(void 0 !== o && 0 < E(o, t))) break e; - (e[r] = t), (e[n] = o), (n = r); + function fo(e) { + switch (e) { + case 99: + return Jr; + case 98: + return Zr; + case 97: + return eo; + case 96: + return to; + case 95: + return no; + default: + throw a(Error(332)); } } - function A(e) { - return void 0 === (e = e[0]) ? null : e; + function po(e, t) { + return (e = fo(e)), Vr(e, t); } - function O(e) { - var t = e[0]; - if (void 0 !== t) { - var n = e.pop(); - if (n !== t) { - e[0] = n; - e: for (var r = 0, o = e.length; r < o; ) { - var i = 2 * (r + 1) - 1, - a = e[i], - s = i + 1, - c = e[s]; - if (void 0 !== a && 0 > E(a, n)) - void 0 !== c && 0 > E(c, a) - ? ((e[r] = c), (e[s] = n), (r = s)) - : ((e[r] = a), (e[i] = n), (r = i)); - else { - if (!(void 0 !== c && 0 > E(c, n))) break e; - (e[r] = c), (e[s] = n), (r = s); + function ho(e, t, n) { + return (e = fo(e)), Ur(e, t, n); + } + function go(e) { + return null === io ? ((io = [e]), (ao = Ur(Jr, bo))) : io.push(e), ro; + } + function mo() { + null !== ao && Xr(ao), bo(); + } + function bo() { + if (!so && null !== io) { + so = !0; + var e = 0; + try { + var t = io; + po(99, function() { + for (; e < t.length; e++) { + var n = t[e]; + do { + n = n(!0); + } while (null !== n); } - } + }), + (io = null); + } catch (t) { + throw (null !== io && (io = io.slice(e + 1)), Ur(Jr, mo), t); + } finally { + so = !1; } - return t; } - return null; } - function E(e, t) { - var n = e.sortIndex - t.sortIndex; - return 0 !== n ? n : e.id - t.id; + function yo(e, t) { + return 1073741823 === t + ? 99 + : 1 === t + ? 95 + : 0 >= (e = 10 * (1073741821 - t) - 10 * (1073741821 - e)) + ? 99 + : 250 >= e + ? 98 + : 5250 >= e + ? 97 + : 95; } - var T = [], - C = [], - L = 1, - P = null, - D = 3, - z = !1, - N = !1, - j = !1; - function R(e) { - for (var t = A(C); null !== t; ) { - if (null === t.callback) O(C); + function vo(e, t) { + if (e && e.defaultProps) + for (var n in ((t = o({}, t)), (e = e.defaultProps))) + void 0 === t[n] && (t[n] = e[n]); + return t; + } + var _o = { current: null }, + wo = null, + xo = null, + Mo = null; + function ko() { + Mo = xo = wo = null; + } + function So(e, t) { + var n = e.type._context; + Pr(_o, n._currentValue), (n._currentValue = t); + } + function Oo(e) { + var t = _o.current; + Lr(_o), (e.type._context._currentValue = t); + } + function Eo(e, t) { + for (; null !== e; ) { + var n = e.alternate; + if (e.childExpirationTime < t) + (e.childExpirationTime = t), + null !== n && + n.childExpirationTime < t && + (n.childExpirationTime = t); else { - if (!(t.startTime <= e)) break; - O(C), (t.sortIndex = t.expirationTime), S(T, t); + if (!(null !== n && n.childExpirationTime < t)) break; + n.childExpirationTime = t; } - t = A(C); + e = e.return; } } - function I(e) { - if (((j = !1), R(e), !N)) - if (null !== A(T)) (N = !0), r(F); - else { - var t = A(C); - null !== t && o(I, t.startTime - e); - } + function Ao(e, t) { + (wo = e), + (Mo = xo = null), + null !== (e = e.dependencies) && + null !== e.firstContext && + (e.expirationTime >= t && (fa = !0), (e.firstContext = null)); } - function F(e, n) { - (N = !1), j && ((j = !1), i()), (z = !0); - var r = D; - try { - for ( - R(n), P = A(T); - null !== P && (!(P.expirationTime > n) || (e && !a())); - + function To(e, t) { + if (Mo !== e && !1 !== t && 0 !== t) + if ( + (('number' == typeof t && 1073741823 !== t) || + ((Mo = e), (t = 1073741823)), + (t = { context: e, observedBits: t, next: null }), + null === xo) ) { - var s = P.callback; - if (null !== s) { - (P.callback = null), (D = P.priorityLevel); - var c = s(P.expirationTime <= n); - (n = t.unstable_now()), - 'function' == typeof c ? (P.callback = c) : P === A(T) && O(T), - R(n); - } else O(T); - P = A(T); - } - if (null !== P) var u = !0; - else { - var l = A(C); - null !== l && o(I, l.startTime - n), (u = !1); - } - return u; - } finally { - (P = null), (D = r), (z = !1); - } + if (null === wo) throw a(Error(308)); + (xo = t), + (wo.dependencies = { + expirationTime: 0, + firstContext: t, + responders: null + }); + } else xo = xo.next = t; + return e._currentValue; } - function q(e) { - switch (e) { + var Co = !1; + function Lo(e) { + return { + baseState: e, + firstUpdate: null, + lastUpdate: null, + firstCapturedUpdate: null, + lastCapturedUpdate: null, + firstEffect: null, + lastEffect: null, + firstCapturedEffect: null, + lastCapturedEffect: null + }; + } + function Po(e) { + return { + baseState: e.baseState, + firstUpdate: e.firstUpdate, + lastUpdate: e.lastUpdate, + firstCapturedUpdate: null, + lastCapturedUpdate: null, + firstEffect: null, + lastEffect: null, + firstCapturedEffect: null, + lastCapturedEffect: null + }; + } + function Do(e, t) { + return { + expirationTime: e, + suspenseConfig: t, + tag: 0, + payload: null, + callback: null, + next: null, + nextEffect: null + }; + } + function jo(e, t) { + null === e.lastUpdate + ? (e.firstUpdate = e.lastUpdate = t) + : ((e.lastUpdate.next = t), (e.lastUpdate = t)); + } + function zo(e, t) { + var n = e.alternate; + if (null === n) { + var r = e.updateQueue, + o = null; + null === r && (r = e.updateQueue = Lo(e.memoizedState)); + } else + (r = e.updateQueue), + (o = n.updateQueue), + null === r + ? null === o + ? ((r = e.updateQueue = Lo(e.memoizedState)), + (o = n.updateQueue = Lo(n.memoizedState))) + : (r = e.updateQueue = Po(o)) + : null === o && (o = n.updateQueue = Po(r)); + null === o || r === o + ? jo(r, t) + : null === r.lastUpdate || null === o.lastUpdate + ? (jo(r, t), jo(o, t)) + : (jo(r, t), (o.lastUpdate = t)); + } + function No(e, t) { + var n = e.updateQueue; + null === + (n = null === n ? (e.updateQueue = Lo(e.memoizedState)) : Ro(e, n)) + .lastCapturedUpdate + ? (n.firstCapturedUpdate = n.lastCapturedUpdate = t) + : ((n.lastCapturedUpdate.next = t), (n.lastCapturedUpdate = t)); + } + function Ro(e, t) { + var n = e.alternate; + return ( + null !== n && t === n.updateQueue && (t = e.updateQueue = Po(t)), t + ); + } + function Io(e, t, n, r, i, a) { + switch (n.tag) { case 1: - return -1; + return 'function' == typeof (e = n.payload) ? e.call(a, r, i) : e; + case 3: + e.effectTag = (-2049 & e.effectTag) | 64; + case 0: + if ( + null == + (i = 'function' == typeof (e = n.payload) ? e.call(a, r, i) : e) + ) + break; + return o({}, r, i); case 2: - return 250; - case 5: - return 1073741823; - case 4: - return 1e4; - default: - return 5e3; + Co = !0; } + return r; } - var B = s; - (t.unstable_IdlePriority = 5), - (t.unstable_ImmediatePriority = 1), - (t.unstable_LowPriority = 4), - (t.unstable_NormalPriority = 3), - (t.unstable_Profiling = null), - (t.unstable_UserBlockingPriority = 2), - (t.unstable_cancelCallback = function(e) { - e.callback = null; - }), - (t.unstable_continueExecution = function() { - N || z || ((N = !0), r(F)); - }), - (t.unstable_getCurrentPriorityLevel = function() { - return D; - }), - (t.unstable_getFirstCallbackNode = function() { - return A(T); - }), - (t.unstable_next = function(e) { - switch (D) { - case 1: - case 2: - case 3: - var t = 3; - break; - default: - t = D; - } - var n = D; - D = t; - try { - return e(); - } finally { - D = n; - } - }), - (t.unstable_pauseExecution = function() {}), - (t.unstable_requestPaint = B), - (t.unstable_runWithPriority = function(e, t) { - switch (e) { - case 1: - case 2: - case 3: - case 4: - case 5: - break; - default: - e = 3; - } - var n = D; - D = e; - try { - return t(); - } finally { - D = n; + function Fo(e, t, n, r, o) { + Co = !1; + for ( + var i = (t = Ro(e, t)).baseState, + a = null, + s = 0, + c = t.firstUpdate, + u = i; + null !== c; + + ) { + var l = c.expirationTime; + l < o + ? (null === a && ((a = c), (i = u)), s < l && (s = l)) + : (Hs(l, c.suspenseConfig), + (u = Io(e, 0, c, u, n, r)), + null !== c.callback && + ((e.effectTag |= 32), + (c.nextEffect = null), + null === t.lastEffect + ? (t.firstEffect = t.lastEffect = c) + : ((t.lastEffect.nextEffect = c), (t.lastEffect = c)))), + (c = c.next); + } + for (l = null, c = t.firstCapturedUpdate; null !== c; ) { + var f = c.expirationTime; + f < o + ? (null === l && ((l = c), null === a && (i = u)), s < f && (s = f)) + : ((u = Io(e, 0, c, u, n, r)), + null !== c.callback && + ((e.effectTag |= 32), + (c.nextEffect = null), + null === t.lastCapturedEffect + ? (t.firstCapturedEffect = t.lastCapturedEffect = c) + : ((t.lastCapturedEffect.nextEffect = c), + (t.lastCapturedEffect = c)))), + (c = c.next); + } + null === a && (t.lastUpdate = null), + null === l ? (t.lastCapturedUpdate = null) : (e.effectTag |= 32), + null === a && null === l && (i = u), + (t.baseState = i), + (t.firstUpdate = a), + (t.firstCapturedUpdate = l), + (e.expirationTime = s), + (e.memoizedState = u); + } + function qo(e, t, n) { + null !== t.firstCapturedUpdate && + (null !== t.lastUpdate && + ((t.lastUpdate.next = t.firstCapturedUpdate), + (t.lastUpdate = t.lastCapturedUpdate)), + (t.firstCapturedUpdate = t.lastCapturedUpdate = null)), + Bo(t.firstEffect, n), + (t.firstEffect = t.lastEffect = null), + Bo(t.firstCapturedEffect, n), + (t.firstCapturedEffect = t.lastCapturedEffect = null); + } + function Bo(e, t) { + for (; null !== e; ) { + var n = e.callback; + if (null !== n) { + e.callback = null; + var r = t; + if ('function' != typeof n) throw a(Error(191), n); + n.call(r); } - }), - (t.unstable_scheduleCallback = function(e, n, a) { - var s = t.unstable_now(); - if ('object' == typeof a && null !== a) { - var c = a.delay; - (c = 'number' == typeof c && 0 < c ? s + c : s), - (a = 'number' == typeof a.timeout ? a.timeout : q(e)); - } else (a = q(e)), (c = s); - return ( - (e = { - id: L++, - callback: n, - priorityLevel: e, - startTime: c, - expirationTime: (a = c + a), - sortIndex: -1 - }), - c > s - ? ((e.sortIndex = c), - S(C, e), - null === A(T) && - e === A(C) && - (j ? i() : (j = !0), o(I, c - s))) - : ((e.sortIndex = a), S(T, e), N || z || ((N = !0), r(F))), - e - ); - }), - (t.unstable_shouldYield = function() { - var e = t.unstable_now(); - R(e); - var n = A(T); - return ( - (n !== P && - null !== P && - null !== n && - null !== n.callback && - n.startTime <= e && - n.expirationTime < P.expirationTime) || - a() - ); - }), - (t.unstable_wrapCallback = function(e) { - var t = D; - return function() { - var n = D; - D = t; - try { - return e.apply(this, arguments); - } finally { - D = n; - } - }; - }); - }, - function(e, t, n) { - 'use strict'; - var r = n(448); - function o() {} - function i() {} - (i.resetWarningCache = o), - (e.exports = function() { - function e(e, t, n, o, i, a) { - if (a !== r) { - var s = 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 ((s.name = 'Invariant Violation'), s); + e = e.nextEffect; + } + } + var Ho = Ue.ReactCurrentBatchConfig, + Yo = new r.Component().refs; + function Wo(e, t, n, r) { + (n = null == (n = n(r, (t = e.memoizedState))) ? t : o({}, t, n)), + (e.memoizedState = n), + null !== (r = e.updateQueue) && + 0 === e.expirationTime && + (r.baseState = n); + } + var Vo = { + isMounted: function(e) { + return !!(e = e._reactInternalFiber) && 2 === an(e); + }, + enqueueSetState: function(e, t, n) { + e = e._reactInternalFiber; + var r = Ts(), + o = Ho.suspense; + ((o = Do((r = Cs(r, e, o)), o)).payload = t), + null != n && (o.callback = n), + zo(e, o), + Ps(e, r); + }, + enqueueReplaceState: function(e, t, n) { + e = e._reactInternalFiber; + var r = Ts(), + o = Ho.suspense; + ((o = Do((r = Cs(r, e, o)), o)).tag = 1), + (o.payload = t), + null != n && (o.callback = n), + zo(e, o), + Ps(e, r); + }, + enqueueForceUpdate: function(e, t) { + e = e._reactInternalFiber; + var n = Ts(), + r = Ho.suspense; + ((r = Do((n = Cs(n, e, r)), r)).tag = 2), + null != t && (r.callback = t), + zo(e, r), + Ps(e, n); + } + }; + function Uo(e, t, n, r, o, i, a) { + return 'function' == typeof (e = e.stateNode).shouldComponentUpdate + ? e.shouldComponentUpdate(r, i, a) + : !t.prototype || + !t.prototype.isPureReactComponent || + (!rn(n, r) || !rn(o, i)); + } + function Xo(e, t, n) { + var r = !1, + o = Dr, + i = t.contextType; + return ( + 'object' == typeof i && null !== i + ? (i = To(i)) + : ((o = Ir(t) ? Nr : jr.current), + (i = (r = null != (r = t.contextTypes)) ? Rr(e, o) : Dr)), + (t = new t(n, i)), + (e.memoizedState = + null !== t.state && void 0 !== t.state ? t.state : null), + (t.updater = Vo), + (e.stateNode = t), + (t._reactInternalFiber = e), + r && + (((e = + e.stateNode).__reactInternalMemoizedUnmaskedChildContext = o), + (e.__reactInternalMemoizedMaskedChildContext = i)), + t + ); + } + function Go(e, t, n, r) { + (e = t.state), + 'function' == typeof t.componentWillReceiveProps && + t.componentWillReceiveProps(n, r), + 'function' == typeof t.UNSAFE_componentWillReceiveProps && + t.UNSAFE_componentWillReceiveProps(n, r), + t.state !== e && Vo.enqueueReplaceState(t, t.state, null); + } + function Ko(e, t, n, r) { + var o = e.stateNode; + (o.props = n), (o.state = e.memoizedState), (o.refs = Yo); + var i = t.contextType; + 'object' == typeof i && null !== i + ? (o.context = To(i)) + : ((i = Ir(t) ? Nr : jr.current), (o.context = Rr(e, i))), + null !== (i = e.updateQueue) && + (Fo(e, i, n, o, r), (o.state = e.memoizedState)), + 'function' == typeof (i = t.getDerivedStateFromProps) && + (Wo(e, t, i, n), (o.state = e.memoizedState)), + 'function' == typeof t.getDerivedStateFromProps || + 'function' == typeof o.getSnapshotBeforeUpdate || + ('function' != typeof o.UNSAFE_componentWillMount && + 'function' != typeof o.componentWillMount) || + ((t = o.state), + 'function' == typeof o.componentWillMount && o.componentWillMount(), + 'function' == typeof o.UNSAFE_componentWillMount && + o.UNSAFE_componentWillMount(), + t !== o.state && Vo.enqueueReplaceState(o, o.state, null), + null !== (i = e.updateQueue) && + (Fo(e, i, n, o, r), (o.state = e.memoizedState))), + 'function' == typeof o.componentDidMount && (e.effectTag |= 4); + } + var $o = Array.isArray; + function Qo(e, t, n) { + if ( + null !== (e = n.ref) && + 'function' != typeof e && + 'object' != typeof e + ) { + if (n._owner) { + n = n._owner; + var r = void 0; + if (n) { + if (1 !== n.tag) throw a(Error(309)); + r = n.stateNode; } + if (!r) throw a(Error(147), e); + var o = '' + e; + return null !== t && + null !== t.ref && + 'function' == typeof t.ref && + t.ref._stringRef === o + ? t.ref + : (((t = function(e) { + var t = r.refs; + t === Yo && (t = r.refs = {}), + null === e ? delete t[o] : (t[o] = e); + })._stringRef = o), + t); } - function t() { - return e; - } - e.isRequired = e; - var n = { - array: e, - bool: e, - func: e, - number: e, - object: e, - string: e, - symbol: e, - any: e, - arrayOf: t, - element: e, - elementType: e, - instanceOf: t, - node: e, - objectOf: t, - oneOf: t, - oneOfType: t, - shape: t, - exact: t, - checkPropTypes: i, - resetWarningCache: o - }; - return (n.PropTypes = n), n; - }); - }, - function(e, t, n) { - 'use strict'; - e.exports = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; - }, - function(e, t, n) { - 'use strict'; - /** @license React v16.13.1 - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ var r = 'function' == typeof Symbol && Symbol.for, - o = r ? Symbol.for('react.element') : 60103, - i = r ? Symbol.for('react.portal') : 60106, - a = r ? Symbol.for('react.fragment') : 60107, - s = r ? Symbol.for('react.strict_mode') : 60108, - c = r ? Symbol.for('react.profiler') : 60114, - u = r ? Symbol.for('react.provider') : 60109, - l = r ? Symbol.for('react.context') : 60110, - f = r ? Symbol.for('react.async_mode') : 60111, - d = r ? Symbol.for('react.concurrent_mode') : 60111, - p = r ? Symbol.for('react.forward_ref') : 60112, - h = r ? Symbol.for('react.suspense') : 60113, - g = r ? Symbol.for('react.suspense_list') : 60120, - m = r ? Symbol.for('react.memo') : 60115, - b = r ? Symbol.for('react.lazy') : 60116, - y = r ? Symbol.for('react.block') : 60121, - v = r ? Symbol.for('react.fundamental') : 60117, - _ = r ? Symbol.for('react.responder') : 60118, - x = r ? Symbol.for('react.scope') : 60119; - function w(e) { - if ('object' == typeof e && null !== e) { - var t = e.$$typeof; - switch (t) { - case o: - switch ((e = e.type)) { - case f: - case d: - case a: - case c: - case s: - case h: - return e; - default: - switch ((e = e && e.$$typeof)) { - case l: - case p: - case b: - case m: - case u: - return e; - default: - return t; - } - } - case i: - return t; - } + if ('string' != typeof e) throw a(Error(284)); + if (!n._owner) throw a(Error(290), e); } + return e; } - function M(e) { - return w(e) === d; - } - (t.AsyncMode = f), - (t.ConcurrentMode = d), - (t.ContextConsumer = l), - (t.ContextProvider = u), - (t.Element = o), - (t.ForwardRef = p), - (t.Fragment = a), - (t.Lazy = b), - (t.Memo = m), - (t.Portal = i), - (t.Profiler = c), - (t.StrictMode = s), - (t.Suspense = h), - (t.isAsyncMode = function(e) { - return M(e) || w(e) === f; - }), - (t.isConcurrentMode = M), - (t.isContextConsumer = function(e) { - return w(e) === l; - }), - (t.isContextProvider = function(e) { - return w(e) === u; - }), - (t.isElement = function(e) { - return 'object' == typeof e && null !== e && e.$$typeof === o; - }), - (t.isForwardRef = function(e) { - return w(e) === p; - }), - (t.isFragment = function(e) { - return w(e) === a; - }), - (t.isLazy = function(e) { - return w(e) === b; - }), - (t.isMemo = function(e) { - return w(e) === m; - }), - (t.isPortal = function(e) { - return w(e) === i; - }), - (t.isProfiler = function(e) { - return w(e) === c; - }), - (t.isStrictMode = function(e) { - return w(e) === s; - }), - (t.isSuspense = function(e) { - return w(e) === h; - }), - (t.isValidElementType = function(e) { - return ( - 'string' == typeof e || - 'function' == typeof e || - e === a || - e === d || - e === c || - e === s || - e === h || - e === g || - ('object' == typeof e && - null !== e && - (e.$$typeof === b || - e.$$typeof === m || - e.$$typeof === u || - e.$$typeof === l || - e.$$typeof === p || - e.$$typeof === v || - e.$$typeof === _ || - e.$$typeof === x || - e.$$typeof === y)) + function Jo(e, t) { + if ('textarea' !== e.type) + throw a( + Error(31), + '[object Object]' === Object.prototype.toString.call(t) + ? 'object with keys {' + Object.keys(t).join(', ') + '}' + : t, + '' ); - }), - (t.typeOf = w); - }, - function(e, t) { - e.exports = function(e) { - if (!e.webpackPolyfill) { - var t = Object.create(e); - t.children || (t.children = []), - Object.defineProperty(t, 'loaded', { - enumerable: !0, - get: function() { - return t.l; - } - }), - Object.defineProperty(t, 'id', { - enumerable: !0, - get: function() { - return t.i; - } - }), - Object.defineProperty(t, 'exports', { enumerable: !0 }), - (t.webpackPolyfill = 1); + } + function Zo(e) { + function t(t, n) { + if (e) { + var r = t.lastEffect; + null !== r + ? ((r.nextEffect = n), (t.lastEffect = n)) + : (t.firstEffect = t.lastEffect = n), + (n.nextEffect = null), + (n.effectTag = 8); + } } - return t; - }; - }, - function(e, t, n) { - var r = n(182); - e.exports = function(e) { - if (Array.isArray(e)) return r(e); - }; - }, - function(e, t) { - e.exports = function(e) { - if ('undefined' != typeof Symbol && Symbol.iterator in Object(e)) - return Array.from(e); - }; - }, - function(e, t, n) { - var r = n(182); - e.exports = function(e, t) { - if (e) { - if ('string' == typeof e) return r(e, t); - var n = Object.prototype.toString.call(e).slice(8, -1); + function n(n, r) { + if (!e) return null; + for (; null !== r; ) t(n, r), (r = r.sibling); + return null; + } + function r(e, t) { + for (e = new Map(); null !== t; ) + null !== t.key ? e.set(t.key, t) : e.set(t.index, t), + (t = t.sibling); + return e; + } + function o(e, t, n) { + return ((e = ic(e, t)).index = 0), (e.sibling = null), e; + } + function i(t, n, r) { return ( - 'Object' === n && e.constructor && (n = e.constructor.name), - 'Map' === n || 'Set' === n - ? Array.from(n) - : 'Arguments' === n || - /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) - ? r(e, t) - : void 0 + (t.index = r), + e + ? null !== (r = t.alternate) + ? (r = r.index) < n + ? ((t.effectTag = 2), n) + : r + : ((t.effectTag = 2), n) + : n ); } - }; - }, - function(e, t) { - e.exports = function() { - throw new TypeError( - 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' - ); - }; - }, - function(e, t, n) { - var r = n(101), - o = n(185), - i = n(187), - a = n(485), - s = n(35), - c = n(109), - u = n(195); - e.exports = function e(t, n, l, f, d) { - t !== n && - i( - n, - function(i, c) { - if ((d || (d = new r()), s(i))) a(t, n, c, l, e, f, d); - else { - var p = f ? f(u(t, c), i, c + '', t, n, d) : void 0; - void 0 === p && (p = i), o(t, c, p); - } - }, - c - ); - }; - }, - function(e, t) { - e.exports = function() { - (this.__data__ = []), (this.size = 0); - }; - }, - function(e, t, n) { - var r = n(103), - o = Array.prototype.splice; - e.exports = function(e) { - var t = this.__data__, - n = r(t, e); - return ( - !(n < 0) && - (n == t.length - 1 ? t.pop() : o.call(t, n, 1), --this.size, !0) - ); - }; - }, - function(e, t, n) { - var r = n(103); - e.exports = function(e) { - var t = this.__data__, - n = r(t, e); - return n < 0 ? void 0 : t[n][1]; - }; - }, - function(e, t, n) { - var r = n(103); - e.exports = function(e) { - return r(this.__data__, e) > -1; - }; - }, - function(e, t, n) { - var r = n(103); - e.exports = function(e, t) { - var n = this.__data__, - o = r(n, e); - return o < 0 ? (++this.size, n.push([e, t])) : (n[o][1] = t), this; - }; - }, - function(e, t, n) { - var r = n(102); - e.exports = function() { - (this.__data__ = new r()), (this.size = 0); - }; - }, - function(e, t) { - e.exports = function(e) { - var t = this.__data__, - n = t.delete(e); - return (this.size = t.size), n; - }; - }, - function(e, t) { - e.exports = function(e) { - return this.__data__.get(e); - }; - }, - function(e, t) { - e.exports = function(e) { - return this.__data__.has(e); - }; - }, - function(e, t, n) { - var r = n(102), - o = n(132), - i = n(134); - e.exports = function(e, t) { - var n = this.__data__; - if (n instanceof r) { - var a = n.__data__; - if (!o || a.length < 199) - return a.push([e, t]), (this.size = ++n.size), this; - n = this.__data__ = new i(a); + function s(t) { + return e && null === t.alternate && (t.effectTag = 2), t; } - return n.set(e, t), (this.size = n.size), this; - }; - }, - function(e, t, n) { - var r = n(133), - o = n(469), - i = n(35), - a = n(184), - s = /^\[object .+?Constructor\]$/, - c = Function.prototype, - u = Object.prototype, - l = c.toString, - f = u.hasOwnProperty, - d = RegExp( - '^' + - l - .call(f) - .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') - .replace( - /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, - '$1.*?' - ) + - '$' - ); - e.exports = function(e) { - return !(!i(e) || o(e)) && (r(e) ? d : s).test(a(e)); - }; - }, - function(e, t, n) { - var r = n(85), - o = Object.prototype, - i = o.hasOwnProperty, - a = o.toString, - s = r ? r.toStringTag : void 0; - e.exports = function(e) { - var t = i.call(e, s), - n = e[s]; - try { - e[s] = void 0; - var r = !0; - } catch (e) {} - var o = a.call(e); - return r && (t ? (e[s] = n) : delete e[s]), o; - }; - }, - function(e, t) { - var n = Object.prototype.toString; - e.exports = function(e) { - return n.call(e); - }; - }, - function(e, t, n) { - var r, - o = n(470), - i = (r = /[^.]+$/.exec((o && o.keys && o.keys.IE_PROTO) || '')) - ? 'Symbol(src)_1.' + r - : ''; - e.exports = function(e) { - return !!i && i in e; - }; - }, - function(e, t, n) { - var r = n(36)['__core-js_shared__']; - e.exports = r; - }, - function(e, t) { - e.exports = function(e, t) { - return null == e ? void 0 : e[t]; - }; - }, - function(e, t, n) { - var r = n(473), - o = n(102), - i = n(132); - e.exports = function() { - (this.size = 0), - (this.__data__ = { - hash: new r(), - map: new (i || o)(), - string: new r() - }); - }; - }, - function(e, t, n) { - var r = n(474), - o = n(475), - i = n(476), - a = n(477), - s = n(478); - function c(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]); + function c(e, t, n, r) { + return null === t || 6 !== t.tag + ? (((t = cc(n, e.mode, r)).return = e), t) + : (((t = o(t, n)).return = e), t); } - } - (c.prototype.clear = r), - (c.prototype.delete = o), - (c.prototype.get = i), - (c.prototype.has = a), - (c.prototype.set = s), - (e.exports = c); - }, - function(e, t, n) { - var r = n(104); - e.exports = function() { - (this.__data__ = r ? r(null) : {}), (this.size = 0); - }; - }, - function(e, t) { - e.exports = function(e) { - var t = this.has(e) && delete this.__data__[e]; - return (this.size -= t ? 1 : 0), t; - }; - }, - function(e, t, n) { - var r = n(104), - o = Object.prototype.hasOwnProperty; - e.exports = function(e) { - var t = this.__data__; - if (r) { - var n = t[e]; - return '__lodash_hash_undefined__' === n ? void 0 : n; + function u(e, t, n, r) { + return null !== t && t.elementType === n.type + ? (((r = o(t, n.props)).ref = Qo(e, t, n)), (r.return = e), r) + : (((r = ac(n.type, n.key, n.props, null, e.mode, r)).ref = Qo( + e, + t, + n + )), + (r.return = e), + r); } - return o.call(t, e) ? t[e] : void 0; - }; - }, - function(e, t, n) { - var r = n(104), - o = Object.prototype.hasOwnProperty; - e.exports = function(e) { - var t = this.__data__; - return r ? void 0 !== t[e] : o.call(t, e); - }; - }, - function(e, t, n) { - var r = n(104); - e.exports = function(e, t) { - var n = this.__data__; - return ( - (this.size += this.has(e) ? 0 : 1), - (n[e] = r && void 0 === t ? '__lodash_hash_undefined__' : t), - this - ); - }; - }, - function(e, t, n) { - var r = n(105); - e.exports = function(e) { - var t = r(this, e).delete(e); - return (this.size -= t ? 1 : 0), t; - }; - }, - function(e, t) { - e.exports = function(e) { - var t = typeof e; - return 'string' == t || 'number' == t || 'symbol' == t || 'boolean' == t - ? '__proto__' !== e - : null === e; - }; - }, - function(e, t, n) { - var r = n(105); - e.exports = function(e) { - return r(this, e).get(e); - }; - }, - function(e, t, n) { - var r = n(105); - e.exports = function(e) { - return r(this, e).has(e); - }; - }, - function(e, t, n) { - var r = n(105); - e.exports = function(e, t) { - var n = r(this, e), - o = n.size; - return n.set(e, t), (this.size += n.size == o ? 0 : 1), this; - }; - }, - function(e, t) { - e.exports = function(e) { - return function(t, n, r) { - for (var o = -1, i = Object(t), a = r(t), s = a.length; s--; ) { - var c = a[e ? s : ++o]; - if (!1 === n(i[c], c, i)) break; + function l(e, t, n, r) { + return null === t || + 4 !== t.tag || + t.stateNode.containerInfo !== n.containerInfo || + t.stateNode.implementation !== n.implementation + ? (((t = uc(n, e.mode, r)).return = e), t) + : (((t = o(t, n.children || [])).return = e), t); + } + function f(e, t, n, r, i) { + return null === t || 7 !== t.tag + ? (((t = sc(n, e.mode, r, i)).return = e), t) + : (((t = o(t, n)).return = e), t); + } + function d(e, t, n) { + if ('string' == typeof t || 'number' == typeof t) + return ((t = cc('' + t, e.mode, n)).return = e), t; + if ('object' == typeof t && null !== t) { + switch (t.$$typeof) { + case Ke: + return ( + ((n = ac(t.type, t.key, t.props, null, e.mode, n)).ref = Qo( + e, + null, + t + )), + (n.return = e), + n + ); + case $e: + return ((t = uc(t, e.mode, n)).return = e), t; + } + if ($o(t) || ut(t)) + return ((t = sc(t, e.mode, n, null)).return = e), t; + Jo(e, t); } - return t; - }; - }; - }, - function(e, t, n) { - var r = n(185), - o = n(188), - i = n(189), - a = n(191), - s = n(192), - c = n(107), - u = n(22), - l = n(488), - f = n(86), - d = n(133), - p = n(35), - h = n(194), - g = n(108), - m = n(195), - b = n(491); - e.exports = function(e, t, n, y, v, _, x) { - var w = m(e, n), - M = m(t, n), - k = x.get(M); - if (k) r(e, n, k); - else { - var S = _ ? _(w, M, n + '', e, t, x) : void 0, - A = void 0 === S; - if (A) { - var O = u(M), - E = !O && f(M), - T = !O && !E && g(M); - (S = M), - O || E || T - ? u(w) - ? (S = w) - : l(w) - ? (S = a(w)) - : E - ? ((A = !1), (S = o(M, !0))) - : T - ? ((A = !1), (S = i(M, !0))) - : (S = []) - : h(M) || c(M) - ? ((S = w), c(w) ? (S = b(w)) : (p(w) && !d(w)) || (S = s(M))) - : (A = !1); + return null; + } + function p(e, t, n, r) { + var o = null !== t ? t.key : null; + if ('string' == typeof n || 'number' == typeof n) + return null !== o ? null : c(e, t, '' + n, r); + if ('object' == typeof n && null !== n) { + switch (n.$$typeof) { + case Ke: + return n.key === o + ? n.type === Qe + ? f(e, t, n.props.children, r, o) + : u(e, t, n, r) + : null; + case $e: + return n.key === o ? l(e, t, n, r) : null; + } + if ($o(n) || ut(n)) return null !== o ? null : f(e, t, n, r, null); + Jo(e, n); + } + return null; + } + function h(e, t, n, r, o) { + if ('string' == typeof r || 'number' == typeof r) + return c(t, (e = e.get(n) || null), '' + r, o); + if ('object' == typeof r && null !== r) { + switch (r.$$typeof) { + case Ke: + return ( + (e = e.get(null === r.key ? n : r.key) || null), + r.type === Qe + ? f(t, e, r.props.children, o, r.key) + : u(t, e, r, o) + ); + case $e: + return l( + t, + (e = e.get(null === r.key ? n : r.key) || null), + r, + o + ); + } + if ($o(r) || ut(r)) return f(t, (e = e.get(n) || null), r, o, null); + Jo(t, r); } - A && (x.set(M, S), v(S, M, y, _, x), x.delete(M)), r(e, n, S); + return null; } - }; - }, - function(e, t, n) { - var r = n(35), - o = Object.create, - i = (function() { - function e() {} - return function(t) { - if (!r(t)) return {}; - if (o) return o(t); - e.prototype = t; - var n = new e(); - return (e.prototype = void 0), n; - }; - })(); - e.exports = i; - }, - function(e, t, n) { - var r = n(55), - o = n(40); - e.exports = function(e) { - return o(e) && '[object Arguments]' == r(e); - }; - }, - function(e, t, n) { - var r = n(45), - o = n(40); - e.exports = function(e) { - return o(e) && r(e); - }; - }, - function(e, t) { - e.exports = function() { - return !1; - }; - }, - function(e, t, n) { - var r = n(55), - o = n(138), - i = n(40), - a = {}; - (a['[object Float32Array]'] = a['[object Float64Array]'] = a[ - '[object Int8Array]' - ] = a['[object Int16Array]'] = a['[object Int32Array]'] = a[ - '[object Uint8Array]' - ] = a['[object Uint8ClampedArray]'] = a['[object Uint16Array]'] = a[ - '[object Uint32Array]' - ] = !0), - (a['[object Arguments]'] = a['[object Array]'] = a[ - '[object ArrayBuffer]' - ] = a['[object Boolean]'] = a['[object DataView]'] = a[ - '[object Date]' - ] = a['[object Error]'] = a['[object Function]'] = a[ - '[object Map]' - ] = a['[object Number]'] = a['[object Object]'] = a[ - '[object RegExp]' - ] = a['[object Set]'] = a['[object String]'] = a[ - '[object WeakMap]' - ] = !1), - (e.exports = function(e) { - return i(e) && o(e.length) && !!a[r(e)]; - }); - }, - function(e, t, n) { - var r = n(87), - o = n(109); - e.exports = function(e) { - return r(e, o(e)); - }; - }, - function(e, t) { - e.exports = function(e, t) { - for (var n = -1, r = Array(e); ++n < e; ) r[n] = t(n); - return r; - }; - }, - function(e, t, n) { - var r = n(35), - o = n(106), - i = n(494), - a = Object.prototype.hasOwnProperty; - e.exports = function(e) { - if (!r(e)) return i(e); - var t = o(e), - n = []; - for (var s in e) - ('constructor' != s || (!t && a.call(e, s))) && n.push(s); - return n; - }; - }, - function(e, t) { - e.exports = function(e) { - var t = []; - if (null != e) for (var n in Object(e)) t.push(n); - return t; - }; - }, - function(e, t, n) { - var r = n(496), - o = n(198); - e.exports = function(e) { - return r(function(t, n) { - var r = -1, - i = n.length, - a = i > 1 ? n[i - 1] : void 0, - s = i > 2 ? n[2] : void 0; + function g(o, a, s, c) { + for ( + var u = null, l = null, f = a, g = (a = 0), m = null; + null !== f && g < s.length; + g++ + ) { + f.index > g ? ((m = f), (f = null)) : (m = f.sibling); + var b = p(o, f, s[g], c); + if (null === b) { + null === f && (f = m); + break; + } + e && f && null === b.alternate && t(o, f), + (a = i(b, a, g)), + null === l ? (u = b) : (l.sibling = b), + (l = b), + (f = m); + } + if (g === s.length) return n(o, f), u; + if (null === f) { + for (; g < s.length; g++) + null !== (f = d(o, s[g], c)) && + ((a = i(f, a, g)), + null === l ? (u = f) : (l.sibling = f), + (l = f)); + return u; + } + for (f = r(o, f); g < s.length; g++) + null !== (m = h(f, o, g, s[g], c)) && + (e && + null !== m.alternate && + f.delete(null === m.key ? g : m.key), + (a = i(m, a, g)), + null === l ? (u = m) : (l.sibling = m), + (l = m)); + return ( + e && + f.forEach(function(e) { + return t(o, e); + }), + u + ); + } + function m(o, s, c, u) { + var l = ut(c); + if ('function' != typeof l) throw a(Error(150)); + if (null == (c = l.call(c))) throw a(Error(151)); for ( - a = e.length > 3 && 'function' == typeof a ? (i--, a) : void 0, - s && o(n[0], n[1], s) && ((a = i < 3 ? void 0 : a), (i = 1)), - t = Object(t); - ++r < i; - + var f = (l = null), g = s, m = (s = 0), b = null, y = c.next(); + null !== g && !y.done; + m++, y = c.next() ) { - var c = n[r]; - c && e(t, c, r, a); + g.index > m ? ((b = g), (g = null)) : (b = g.sibling); + var v = p(o, g, y.value, u); + if (null === v) { + null === g && (g = b); + break; + } + e && g && null === v.alternate && t(o, g), + (s = i(v, s, m)), + null === f ? (l = v) : (f.sibling = v), + (f = v), + (g = b); } - return t; - }); - }; - }, - function(e, t, n) { - var r = n(110), - o = n(497), - i = n(499); - e.exports = function(e, t) { - return i(o(e, t, r), e + ''); - }; - }, - function(e, t, n) { - var r = n(498), - o = Math.max; - e.exports = function(e, t, n) { - return ( - (t = o(void 0 === t ? e.length - 1 : t, 0)), - function() { - for ( - var i = arguments, a = -1, s = o(i.length - t, 0), c = Array(s); - ++a < s; - - ) - c[a] = i[t + a]; - a = -1; - for (var u = Array(t + 1); ++a < t; ) u[a] = i[a]; - return (u[t] = n(c)), r(e, this, u); + if (y.done) return n(o, g), l; + if (null === g) { + for (; !y.done; m++, y = c.next()) + null !== (y = d(o, y.value, u)) && + ((s = i(y, s, m)), + null === f ? (l = y) : (f.sibling = y), + (f = y)); + return l; } - ); - }; - }, - function(e, t) { - e.exports = 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]); + for (g = r(o, g); !y.done; m++, y = c.next()) + null !== (y = h(g, o, m, y.value, u)) && + (e && + null !== y.alternate && + g.delete(null === y.key ? m : y.key), + (s = i(y, s, m)), + null === f ? (l = y) : (f.sibling = y), + (f = y)); + return ( + e && + g.forEach(function(e) { + return t(o, e); + }), + l + ); } - return e.apply(t, n); - }; - }, - function(e, t, n) { - var r = n(500), - o = n(502)(r); - e.exports = o; - }, - function(e, t, n) { - var r = n(501), - o = n(186), - i = n(110), - a = o - ? function(e, t) { - return o(e, 'toString', { - configurable: !0, - enumerable: !1, - value: r(t), - writable: !0 - }); + return function(e, r, i, c) { + var u = + 'object' == typeof i && + null !== i && + i.type === Qe && + null === i.key; + u && (i = i.props.children); + var l = 'object' == typeof i && null !== i; + if (l) + switch (i.$$typeof) { + case Ke: + e: { + for (l = i.key, u = r; null !== u; ) { + if (u.key === l) { + if ( + 7 === u.tag ? i.type === Qe : u.elementType === i.type + ) { + n(e, u.sibling), + ((r = o( + u, + i.type === Qe ? i.props.children : i.props + )).ref = Qo(e, u, i)), + (r.return = e), + (e = r); + break e; + } + n(e, u); + break; + } + t(e, u), (u = u.sibling); + } + i.type === Qe + ? (((r = sc( + i.props.children, + e.mode, + c, + i.key + )).return = e), + (e = r)) + : (((c = ac( + i.type, + i.key, + i.props, + null, + e.mode, + c + )).ref = Qo(e, r, i)), + (c.return = e), + (e = c)); + } + return s(e); + case $e: + e: { + for (u = i.key; null !== r; ) { + if (r.key === u) { + if ( + 4 === r.tag && + r.stateNode.containerInfo === i.containerInfo && + r.stateNode.implementation === i.implementation + ) { + n(e, r.sibling), + ((r = o(r, i.children || [])).return = e), + (e = r); + break e; + } + n(e, r); + break; + } + t(e, r), (r = r.sibling); + } + ((r = uc(i, e.mode, c)).return = e), (e = r); + } + return s(e); } - : i; - e.exports = a; - }, - function(e, t) { - e.exports = function(e) { - return function() { - return e; - }; - }; - }, - function(e, t) { - var n = Date.now; - e.exports = function(e) { - var t = 0, - r = 0; - return function() { - var o = n(), - i = 16 - (o - r); - if (((r = o), i > 0)) { - if (++t >= 800) return arguments[0]; - } else t = 0; - return e.apply(void 0, arguments); + if ('string' == typeof i || 'number' == typeof i) + return ( + (i = '' + i), + null !== r && 6 === r.tag + ? (n(e, r.sibling), ((r = o(r, i)).return = e), (e = r)) + : (n(e, r), ((r = cc(i, e.mode, c)).return = e), (e = r)), + s(e) + ); + if ($o(i)) return g(e, r, i, c); + if (ut(i)) return m(e, r, i, c); + if ((l && Jo(e, i), void 0 === i && !u)) + switch (e.tag) { + case 1: + case 0: + throw ((e = e.type), + a(Error(152), e.displayName || e.name || 'Component')); + } + return n(e, r); }; - }; - }, - function(e, t, n) { - (e.exports = n(56)(!1)).push([ - e.i, - '.c3 svg{font:10px sans-serif;-webkit-tap-highlight-color:rgba(0,0,0,0)}.c3 line,.c3 path{fill:none;stroke:#000}.c3 text{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.c3-bars path,.c3-event-rect,.c3-legend-item-tile,.c3-xgrid-focus,.c3-ygrid{shape-rendering:crispEdges}.c3-chart-arc path{stroke:#fff}.c3-chart-arc rect{stroke:#fff;stroke-width:1}.c3-chart-arc text{fill:#fff;font-size:13px}.c3-grid line{stroke:#aaa}.c3-grid text{fill:#aaa}.c3-xgrid,.c3-ygrid{stroke-dasharray:3 3}.c3-text.c3-empty{fill:gray;font-size:2em}.c3-line{stroke-width:1px}.c3-circle._expanded_{stroke-width:1px;stroke:#fff}.c3-selected-circle{fill:#fff;stroke-width:2px}.c3-bar{stroke-width:0}.c3-bar._expanded_{fill-opacity:1;fill-opacity:.75}.c3-target.c3-focused{opacity:1}.c3-target.c3-focused path.c3-line,.c3-target.c3-focused path.c3-step{stroke-width:2px}.c3-target.c3-defocused{opacity:.3!important}.c3-region{fill:#4682b4;fill-opacity:.1}.c3-brush .extent{fill-opacity:.1}.c3-legend-item{font-size:12px}.c3-legend-item-hidden{opacity:.15}.c3-legend-background{opacity:.75;fill:#fff;stroke:#d3d3d3;stroke-width:1}.c3-title{font:14px sans-serif}.c3-tooltip-container{z-index:10}.c3-tooltip{border-collapse:collapse;border-spacing:0;background-color:#fff;empty-cells:show;box-shadow:7px 7px 12px -9px #777;opacity:.9}.c3-tooltip tr{border:1px solid #ccc}.c3-tooltip th{background-color:#aaa;font-size:14px;padding:2px 5px;text-align:left;color:#fff}.c3-tooltip td{font-size:13px;padding:3px 6px;background-color:#fff;border-left:1px dotted #999}.c3-tooltip td>span{display:inline-block;width:10px;height:10px;margin-right:6px}.c3-tooltip .value{text-align:right}.c3-area{stroke-width:0;opacity:.2}.c3-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}.c3-chart-arcs .c3-chart-arcs-background{fill:#e0e0e0;stroke:#fff}.c3-chart-arcs .c3-chart-arcs-gauge-unit{fill:#000;font-size:16px}.c3-chart-arcs .c3-chart-arcs-gauge-max,.c3-chart-arcs .c3-chart-arcs-gauge-min{fill:#777}.c3-chart-arc .c3-gauge-value{fill:#000}.c3-chart-arc.c3-target.c3-focused g path,.c3-chart-arc.c3-target g path{opacity:1}.c3-drag-zoom.enabled{pointer-events:all!important;visibility:visible}.c3-drag-zoom.disabled{pointer-events:none!important;visibility:hidden}.c3-drag-zoom .extent{fill-opacity:.1}.rangeable-container.combined-tooltip.dragging .rangeable-progress>.rangeable-tooltip,.rangeable-container.combined-tooltip.rangeable-tooltips--visible .rangeable-progress>.rangeable-tooltip,.rangeable-container.dragging.rangeable-tooltips .rangeable-handle .rangeable-tooltip,.rangeable-container.rangeable-tooltips--visible.rangeable-tooltips .rangeable-handle .rangeable-tooltip,.rangeable-container.rangeable-vertical.combined-tooltip .rangeable-progress>.rangeable-tooltip:before{display:block}.rangeable-container{cursor:pointer;width:100%}.rangeable-container.rangeable-disabled{opacity:.6;cursor:not-allowed}.rangeable-container.rangeable-multiple.combined-tooltip .rangeable-handle .rangeable-tooltip,.rangeable-container.rangeable-vertical.combined-tooltip .rangeable-handle .rangeable-tooltip{opacity:0}.rangeable-container.focus .rangeable-handle{border:1px solid #74b9ff}.rangeable-container.rangeable-multiple .rangeable-handle:first-child{left:0;transform:translate3d(-50%,-50%,0)}.rangeable-container.rangeable-multiple .rangeable-handle:nth-child(2){right:0}.rangeable-container.rangeable-vertical{height:100%;width:auto}.rangeable-container.rangeable-vertical .rangeable-track{width:8px;height:100%}.rangeable-container.rangeable-vertical .rangeable-progress{width:8px;height:100%;top:auto;bottom:0;transform-origin:0 100% 0}.rangeable-container.rangeable-vertical .rangeable-handle{right:auto;left:50%;top:0;transform:translate3d(-50%,-50%,0)}.rangeable-container.rangeable-vertical .rangeable-tooltip{position:absolute;top:50%;left:calc(100% + 6px + 4px + 5px);right:auto;bottom:auto;transform:translate3d(0,-50%,0)}.rangeable-container.rangeable-vertical .rangeable-tooltip:before{right:100%;left:auto;top:50%;transform:translate3d(0,-50%,0);border-width:4px 4px 4px 0;border-color:transparent #3db13d transparent transparent}.rangeable-container.rangeable-vertical .rangeable-buffer{width:100%;height:0}.rangeable-container.rangeable-vertical.rangeable-multiple .rangeable-handle:first-child{top:0;left:50%}.rangeable-container.rangeable-vertical.rangeable-multiple .rangeable-handle:nth-child(2){bottom:0;top:auto;transform:translate3d(-50%,50%,0)}.rangeable-input{position:absolute;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;margin:-1px;padding:0;border:0}.rangeable-input:focus+.rangeable-track .rangeable-handle:after{position:absolute;width:22px;height:22px;bottom:-6px;right:-6px;outline:1px dotted #000;content:""}.rangeable-progress,.rangeable-track{height:8px;width:100%;border-radius:4px}.rangeable-track{background-color:#ccc;position:relative}.rangeable-progress{background-color:#3db13d;position:absolute;left:0;top:0;transform-origin:0 0 0}.rangeable-progress>.rangeable-tooltip{display:none;z-index:11;top:auto;bottom:calc(100% + 7px + 9px);white-space:nowrap}.rangeable-handle{box-sizing:border-box;width:22px;height:22px;border:6px solid #3db13d;border-radius:50%;background-color:#fff;position:absolute;top:50%;right:0;transform:translate3d(50%,-50%,0)}.rangeable-handle:focus{outline:0}.rangeable-handle:focus:after{position:absolute;width:22px;height:22px;bottom:-6px;right:-6px;outline:1px dotted #000;content:""}.rangeable-handle.active{z-index:10}.rangeable-handle .rangeable-tooltip{display:none}.rangeable-tooltip{position:absolute;right:50%;bottom:calc(100% + 6px + 4px + 5px);transform:translate3d(50%,0,0);text-align:center;padding:2px 13px;background-color:#3db13d;border-radius:4px;font-weight:700;font-size:16px;color:#fff;font-family:Inconsolata,Consolas,Courier New,Lucida Console,sans-serif}.rangeable-tooltip:before{width:0;height:0;border-width:4px 4px 0;border-style:solid;border-color:#3db13d transparent transparent;position:absolute;left:50%;top:100%;transform:translate3d(-50%,0,0);content:""}.rangeable-buffers{position:absolute;left:0;top:0;height:100%;width:100%}.rangeable-buffer{position:absolute;background-color:rgba(0,0,0,.2);border-radius:4px;height:100%}.keen-dataviz{box-sizing:border-box;font-family:Gotham Rounded SSm A,Gotham Rounded SSm B,Helvetica Neue,Helvetica,Arial,sans-serif;height:100%}.keen-dataviz .partial-interval-indicator{fill:#bdbdbd}.keen-dataviz .axis{shape-rendering:crispEdges}.keen-dataviz-title{color:#4d4d4d;padding-bottom:.8em}.keen-dataviz-stage{display:block}.keen-dataviz-notes{color:gray;display:block;font-size:.8em}.keen-dataviz-box{border-radius:4px;text-align:center;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-flow:row;flex-flow:row;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;padding:1em 0;min-height:4em;height:inherit}.keen-dataviz-button{padding:.5rem 1rem;margin:1rem 0;border-radius:4px;background-color:#f9f9f9;border-color:#d6d6d6;cursor:pointer;transition:background-color .3s ease}.keen-dataviz-button:hover{background-color:#e7e7e7}.keen-dataviz .metric-comparison{-ms-flex-direction:column-reverse;flex-direction:column-reverse;color:#1a1a1a;background:#f9f9f9}.keen-dataviz-metric{height:inherit;color:#fff;background:#00bbde}.keen-dataviz-metric-value{font-size:4.3em;font-weight:700;width:100%}.keen-dataviz-metric-value-smaller{font-size:3em}.keen-dataviz-metric-title{font-size:2em;font-weight:200;width:100%}.keen-dataviz-metric-green{color:#73d483;font-size:2em}.keen-dataviz-metric-red{color:#fe6672;font-size:2em}.keen-dataviz .arrow-green{border-bottom:8px solid #73d483;top:.7em}.keen-dataviz .arrow-green,.keen-dataviz .arrow-red{width:0;height:0;border-left:8px solid transparent;border-right:8px solid transparent;position:relative;left:-.6em}.keen-dataviz .arrow-red{border-top:8px solid #fe6672;top:.8em}.keen-dataviz-message{color:gray;font-size:1.5em;width:100%}.keen-dataviz .text-label{fill:#1a1a1a}.keen-dataviz .text-main{fill:#fff;font-size:1.5em}.keen-dataviz .text-second{fill:#fff}.keen-dataviz .chart-lines{stroke:#e7e7e7}.keen-dataviz-metric-combo{width:270px;height:120px;position:relative}.keen-dataviz-metric-combo .metric-combo-data{width:100%;height:100%;padding:.5rem;position:absolute;z-index:-1;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;box-sizing:border-box}.keen-dataviz-metric-combo .c3-chart{height:120px}.keen-dataviz-metric-combo .c3-lines{display:none}.keen-dataviz-metric-combo .current-count,.keen-dataviz-metric-combo .keen-dataviz-title{width:100%}.keen-dataviz-metric-combo .current-count{margin-top:auto;margin-bottom:auto;font-size:2rem;text-align:center}.keen-dataviz-metric-combo .percent-difference{position:absolute;top:.5rem;right:.5rem;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;font-size:80%}.keen-dataviz-metric-combo .arrow-green,.keen-dataviz-metric-combo .arrow-red{margin-right:.25rem;position:static;border-width:5px}.keen-dataviz-table{border-bottom:1px solid #e7e7e7;box-sizing:border-box;overflow:scroll;position:relative;width:100%}.keen-dataviz-table table{background:#fff;border-collapse:collapse;margin:0;position:relative;width:100%}.keen-dataviz-table table .table-pagination:hover td,.keen-dataviz-table table .table-pagination td{background-color:#fff}.keen-dataviz-table table .table-pagination a{border:1px solid #e7e7e7;padding:.5em;margin-right:.2em;cursor:pointer}.keen-dataviz-table table .table-pagination .active{background:#4d4d4d;color:#fff}.keen-dataviz-table table .table-pagination .arrow{font-weight:700}.keen-dataviz-table th{background:#fff;position:-webkit-sticky;position:sticky;top:0;z-index:10;cursor:pointer}.keen-dataviz-table td,.keen-dataviz-table th{border-collapse:collapse;font-size:1em;padding:.7em;text-align:left;white-space:nowrap}.keen-dataviz-table th{border-bottom:1px solid #e7e7e7;color:#4d4d4d}.keen-dataviz-table td{background-color:#fff;color:#4d4d4d;transition:background-color .1s,color .05s}.keen-dataviz-table .table-data-row:nth-child(2n) td{background-color:#f3f5f6}.keen-dataviz-table .table-data-row:hover td{background-color:#e7e7e7;color:#4d4d4d}.keen-dataviz-table .keen-dataviz-table-fixed-header{background:#fff;border-bottom:1px solid rgba(0,0,0,.15);position:absolute;top:0;transition:top .1s}.keen-dataviz .keen-spinner-indicator{border-radius:100%;border:3px solid rgba(0,0,0,.1);border-top-color:rgba(0,0,0,.45);box-sizing:border-box;height:3em;width:3em;animation:a .7s linear infinite;-ms-animation:a .7s linear infinite;-o-animation:a .7s linear infinite}.keen-dataviz-execution-meta{position:absolute;z-index:999;padding:.5rem 1rem;margin:.75rem 0;display:inline-grid;grid-template-columns:repeat(2,-webkit-max-content);grid-template-columns:repeat(2,max-content);grid-gap:.5em 1em;text-transform:uppercase;font-size:.75rem;border:1px solid #eee;background:#fff}.keen-dataviz-execution-meta dt,.keen-dataviz-execution-meta dt:hover+dd{font-weight:700}.keen-dataviz-execution-meta dd,.keen-dataviz-execution-meta dt{margin:0;cursor:pointer}.keen-dataviz-execution-meta .copied:after{content:"copied!";vertical-align:middle;display:inline-block;font-size:10px;margin-left:.5em;position:absolute;text-transform:none;font-weight:400;animation:1s ease 0s 1 both b}@keyframes a{to{transform:rotate(1turn)}}@keyframes b{0%{opacity:1}to{opacity:0}}.keen-dataviz .c3-axis-y .tick line,.keen-dataviz .c3-axis-y path{display:none}.keen-dataviz .tick line,.keen-dataviz path.domain{stroke-opacity:.2}.keen-dataviz .c3-ygrid{stroke-dasharray:none;stroke-opacity:.1}.keen-dataviz .c3-ygrids :nth-child(2n){display:none}.keen-dataviz .c3-tooltip{border:1px solid rgba(0,0,0,.1);padding:.2em;border-radius:.2em;box-shadow:none;border-collapse:separate}.keen-dataviz .c3-tooltip th{text-align:center}.keen-dataviz .c3-tooltip table,.keen-dataviz .c3-tooltip td,.keen-dataviz .c3-tooltip th,.keen-dataviz .c3-tooltip tr{border:none;background:none;font-size:.9em}.keen-dataviz .c3-tooltip-container th{max-width:50%;word-wrap:break-word;color:#1a1a1a;background:none;font-weight:400}.keen-dataviz .c3-tooltip-container td{max-width:50%;word-wrap:break-word}.keen-dataviz-rendering{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-flow:row;flex-flow:row;-ms-flex-pack:distribute;justify-content:space-around}.keen-dataviz-rendering .c3-chart{display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;-ms-flex-order:1;order:1;-ms-flex:100%;flex:100%}.keen-dataviz-rendering .c3-chart-100-percent{width:100%;-ms-flex-item-align:center;align-self:center}.keen-dataviz-rendering-horizontal{-ms-flex-wrap:wrap;flex-wrap:wrap}.keen-c3-legend{display:-ms-flexbox;display:flex;position:relative;top:0;box-sizing:border-box}.keen-c3-legend-horizontal{-ms-flex-direction:row;-ms-flex-item-align:end;align-self:flex-end;display:-ms-flexbox;display:flex;flex-direction:row;-ms-flex-pack:center;justify-content:center;width:100%;padding:.5em 0}.keen-c3-legend-horizontal-pagination-left{-ms-flex-order:0;order:0;display:-ms-flexbox;display:flex;margin-right:1.5em}.keen-c3-legend-horizontal-items{-ms-flex-order:1;order:1}.keen-c3-legend-horizontal-pagination-right{-ms-flex-order:2;order:2;display:-ms-flexbox;display:flex;margin-left:1.5em}.keen-c3-legend-top{-ms-flex-order:0;order:0}.keen-c3-legend-bottom{-ms-flex-order:2;order:2}.keen-c3-legend-bottom .keen-c3-legend-label-overlay{top:0;margin-top:-2.7em}.keen-c3-legend-bottom .keen-c3-legend-label-overlay .overlay-pointer{top:2.4em;transform:rotate(180deg);border-color:transparent transparent #f0f0f0}.keen-c3-legend-vertical{-ms-flex-direction:column;flex-direction:column}.keen-c3-legend-vertical .keen-c3-legend-pagination-icons{margin:.5em .1em;-ms-flex-order:2;order:2}.keen-c3-legend-left{-ms-flex-order:0;order:0}.keen-c3-legend-right{-ms-flex-order:2;order:2}.keen-c3-legend-items{-ms-flex-order:1;order:1}.keen-c3-legend-vertical-items{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.keen-c3-legend-vertical-items .legend-item{width:8em}.keen-c3-legend-horizontal-items{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.keen-c3-legend-horizontal-items .legend-item{width:6em;margin:0 .25em}.keen-c3-legend .legend-item{display:-ms-flexbox;display:flex;cursor:pointer;padding:.2em;font-size:.8em}.keen-c3-legend .legend-item>*{vertical-align:middle}.keen-c3-legend .legend-item-color-sample{display:inline-block;width:1em;height:1em;margin-right:.5em;pointer-events:none;-ms-flex:none;flex:none}.keen-c3-legend .legend-item-text{pointer-events:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left}.keen-c3-legend-label-overlay .overlay-pointer{border-color:transparent transparent #fff;border-style:solid;border-width:0 10px 10px;height:0;width:0;position:absolute;top:-10px}.keen-c3-legend-position-left .overlay-pointer,.keen-c3-legend-position-right .overlay-pointer{left:0}.keen-c3-legend-pagination-vertical{margin-top:.5em}.keen-c3-legend-pagination-icons{padding:.2em}.keen-c3-legend-pagination-icons i{border-left:1em solid transparent;border-right:1em solid transparent;border-top:1.5em solid #4d4d4d;display:inline-block;padding:0;float:left;cursor:pointer;font-size:.5em}.keen-c3-legend-pagination-icons .right{transform:rotate(-90deg);-webkit-transform:rotate(-90deg)}.keen-c3-legend-pagination-icons .left{transform:rotate(90deg);-webkit-transform:rotate(90deg)}.keen-c3-legend-pagination-icons .up{transform:rotate(-180deg);-webkit-transform:rotate(-180deg);margin-top:.1em}.keen-c3-legend-pagination-icons .down{margin-right:1em}.keen-c3-legend-label-overlay{font-size:1em;background:hsla(0,0%,100%,.9);box-shadow:0 1px 1px rgba(26,26,26,.09999999999999998);padding:.6em;margin-top:1.5em;position:absolute;word-wrap:break-word;pointer-events:none;z-index:222}.keen-c3-legend-align-left{-ms-flex-pack:start;justify-content:flex-start}.keen-c3-legend-align-left .keen-c3-legend-horizontal-items{-ms-flex-pack:start;justify-content:flex-start;margin-right:auto}.keen-c3-legend-align-center{-ms-flex-pack:center;justify-content:center}.keen-c3-legend-align-center .keen-c3-legend-horizontal-items{-ms-flex-pack:center;justify-content:center;margin-left:auto;margin-right:auto}.keen-c3-legend-align-right{-ms-flex-pack:end;justify-content:flex-end}.keen-c3-legend-align-right .keen-c3-legend-horizontal-items{-ms-flex-pack:end;justify-content:flex-end;margin-left:auto}.keen-c3-legend-align-top{-ms-flex-pack:start;justify-content:flex-start}.keen-c3-legend-align-middle{-ms-flex-pack:center;justify-content:center}.keen-c3-legend-align-bottom{-ms-flex-pack:end;justify-content:flex-end}.keen-dataviz-range .c3-area-Max,.keen-dataviz-range .c3-bars-Max{display:none}.keen-dataviz~.rangeable-container{margin:2rem auto;width:75%}.keen-dataviz~.rangeable-container .rangeable-progress,.keen-dataviz~.rangeable-container .rangeable-track{height:4px}.keen-dataviz~.rangeable-container .rangeable-handle{width:16px;height:16px;border-width:4px}.keen-dataviz~.rangeable-container .rangeable-tooltip{border-radius:0;font-weight:400;padding:3px 9px}', - '' - ]); - }, - function(e, t) { - e.exports = function(e) { - var t = 'undefined' != typeof window && window.location; - if (!t) throw new Error('fixUrls requires window.location'); - if (!e || 'string' != typeof e) return e; - var n = t.protocol + '//' + t.host, - r = n + t.pathname.replace(/\/[^\/]*$/, '/'); - return e.replace( - /url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, - function(e, t) { - var o, - i = t - .trim() - .replace(/^"(.*)"$/, function(e, t) { - return t; - }) - .replace(/^'(.*)'$/, function(e, t) { - return t; - }); - return /^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i) - ? e - : ((o = - 0 === i.indexOf('//') - ? i - : 0 === i.indexOf('/') - ? n + i - : r + i.replace(/^\.\//, '')), - 'url('https://github.com/+%20JSON.stringify(o) + ')'); - } - ); - }; - }, - function(e, t, n) { - (e.exports = n(56)(!1)).push([ - e.i, - 'body{margin:0}.dashboard-builder{width:100%;margin:0;height:100vh;position:relative;display:flex;justify-content:center;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;background:#f9f9f9;color:#000;overflow:hidden;box-sizing:border-box}.dashboard-builder.container{width:1200px;min-height:100vh;height:auto;display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start;justify-content:flex-start;background:#f5f5f5}.dashboard-builder .dashboard{position:relative;width:100%;min-height:calc(100vh - 130px);padding:20px;box-sizing:border-box}.dashboard-builder .dashboard-container{width:100%;overflow:auto;padding-left:60px}.dashboard-builder .dashboard-container-viewer{width:100%;overflow:auto}.dashboard-builder .dashboard-container-viewer .dashboard-top-bar{width:100%;z-index:12}.dashboard-builder .dashboard-container-viewer .dashboard-top-bar .export-icon{margin:0 1rem;order:2;flex-shrink:0}.dashboard-builder .dashboard-inner-container{background:#fdfdfd;margin:auto}.dashboard-builder .dashboard-title{height:60px;width:100%;position:relative;display:flex;align-items:center;justify-content:space-between;padding:.5rem}.dashboard-builder .dashboard-title input{border:0;background:inherit;width:100%;font-size:30px;outline:none;padding:5px 5px 5px 0}.dashboard-builder .dashboard-title .title{padding:20px}.dashboard-builder .dashboard-title a{text-decoration:none}.dashboard-builder .dashboard-top-bar{height:50px;width:100%;background:#f9f9f9;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;position:sticky;top:0;left:0;z-index:9}.dashboard-builder .dashboard-top-bar__menu{flex-shrink:0;display:flex;align-items:center}.dashboard-builder .dashboard-top-bar .share{position:relative}.dashboard-builder .dashboard-top-bar .embed,.dashboard-builder .dashboard-top-bar .share{margin:0 1rem;cursor:pointer}.dashboard-builder .dashboard-list-item{width:20%;min-width:180px;height:200px;padding:10px;position:relative}.dashboard-builder .dashboard-list-item:hover>.dashboard-list-item-buttons{visibility:visible}.dashboard-builder .dashboard-list-item-box{background:#fff;display:flex;justify-content:center;align-items:center;border:1px solid #eee;border-radius:5px;width:100%;height:100%;transition:box-shadow .3s;color:#000;padding:10px;text-align:center}.dashboard-builder .dashboard-list-item-box:hover{box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23)}.dashboard-builder .dashboard-list-item-box time{position:absolute;bottom:15px;left:20px;color:#aaa;font-size:12px}.dashboard-builder .dashboard-list-item-buttons{position:absolute;top:15px;right:15px;cursor:pointer;visibility:hidden}.dashboard-builder .dashboard-saved-message{position:absolute;top:.5rem;left:45%;padding:.5rem 1rem;border-radius:5px;background:#333;color:#fff;font-size:.85rem;z-index:11}.dashboard-builder .dashboard img{width:100%;height:100%}.dashboard-builder .toolbar{position:absolute;left:0;top:0;width:60px;height:100%;z-index:10}.dashboard-builder .toolbar-bar{width:100%;height:100%;position:relative;z-index:6;border-right:1px solid #929191;padding:20px;background:#2f97b9;color:#fff;cursor:pointer}.dashboard-builder .toolbar-bar h3{transform:translateY(100%) rotate(-90deg);transform-origin:0 0;white-space:nowrap;overflow:hidden;position:absolute;top:110px;left:15px;color:#fff}.dashboard-builder .toolbar-container{position:absolute;left:-135px;height:100%;border-right:1px solid #929191;background:#fff;box-shadow:3px 3px 6px #eee;border-right:0;overflow-y:auto;transition:left .25s ease-out}.dashboard-builder .toolbar-hidden{width:90px;display:flex;flex-direction:row;flex-wrap:wrap;padding:10px 10px 10px 20px}.dashboard-builder .toolbar-hidden>h4{font-size:.7rem;width:100%;margin:2rem 0 .5rem;font-weight:400;text-transform:uppercase}.dashboard-builder .toolbar-hidden>h4:first-of-type{margin-top:1rem}.dashboard-builder .toolbar-hidden p{cursor:pointer;z-index:5;margin:0;padding:5px;width:50px;height:50px;display:flex;align-items:center;justify-content:center;background:#fff}.dashboard-builder .toolbar-hidden .metric-chart-icon{font-size:20px;font-weight:600}.dashboard-builder .toolbar-visible{left:60px}.dashboard-builder .burger-icon{padding:0 20px;cursor:pointer;position:relative}.dashboard-builder .burger-icon .fa-bars{color:#2f97b9}.dashboard-builder .modal{display:block;position:absolute;background:#fff;border:1px solid #eee;border-radius:5px;z-index:11;top:0;left:20px;right:auto;bottom:auto;font-size:14px;width:250px;box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23)}.dashboard-builder .modal-header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:15px;border-bottom:1px solid #eee;font-size:17px}.dashboard-builder .modal-header .svg-inline--fa{cursor:pointer}.dashboard-builder .modal .dashboards-filter{padding:.25rem 1rem;border-bottom:1px solid #eee;display:flex;justify-content:space-between}.dashboard-builder .modal .dashboards-filter input{font-size:14px}.dashboard-builder .modal-body{padding:15px;max-height:300px;overflow:auto}.dashboard-builder .modal-body .item{padding:1rem;border-bottom:1px solid #eee;display:flex;flex-direction:column}.dashboard-builder .modal-body .item:hover{background:#f3f3f3}.dashboard-builder .modal-body .item .time{color:#aaa;font-size:12px}.dashboard-builder .modal-body .active{background:#f9f9f9}.dashboard-builder .modal-body .active .fa-angle-double-right{color:#2f97b9;padding-right:5px}.dashboard-builder .modal-body .modal-input{padding:8px 4px;margin-bottom:.5em;width:100%}.dashboard-builder .modal-body .prism{margin-bottom:40px;white-space:pre-wrap}.dashboard-builder .modal-button{border-radius:5px;padding:5px 15px;cursor:pointer;color:#fff;background:#2f97b9;border:none;font-size:14px;line-height:1}.dashboard-builder .modal-button .svg-inline--fa{margin-right:.25rem}.dashboard-builder .modal-footer{padding:10px}.dashboard-builder .modal-cover{width:100%;height:100%;opacity:.4;background:#000;position:absolute;top:0;left:0;z-index:10}.dashboard-builder .modal.share-dashboard{width:500px;top:50px;left:50%;transform:translateX(-50%)}.dashboard-builder .modal.embed-dashboard{width:75%;max-width:700px;top:50%;left:50%;transform:translate(-50%,-50%)}.dashboard-builder .modal.embed-dashboard .modal-button{position:fixed;bottom:15px;left:15px}.dashboard-builder .editor-dashboard-switch .modal-body{padding:0}.dashboard-builder .paragraph{padding:0 10px;overflow:hidden;width:100%}.dashboard-builder .paragraph p{margin:0}.dashboard-builder .keen-dataviz{padding:15px;border:1px solid #ccc}.dashboard-builder .keen-dataviz .keen-dataviz{padding:0;border:none}.dashboard-builder .chart-container{background:#fff;justify-content:center;align-items:center;position:absolute;border-radius:5px;display:flex;flex-direction:column;transition:box-shadow .3s;z-index:1}.dashboard-builder .chart-container:hover{box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23);z-index:8}.dashboard-builder .chart-container:hover .config-buttons{visibility:visible}.dashboard-builder .chart-container img{border-radius:5px}.dashboard-builder .chart-container>.keen-dataviz{overflow:auto;width:100%;margin-top:0;border:1px solid #eee}.dashboard-builder .chart-container-viewer{background:#fff;justify-content:center;align-items:center;border-radius:5px;display:flex;flex-direction:column;transition:box-shadow .3s;z-index:1;position:relative}.dashboard-builder .chart-container-viewer .c3-tooltip-container{z-index:10}.dashboard-builder .chart-container-viewer:hover .explorer-button{visibility:visible}.dashboard-builder .chart-container-viewer img{border-radius:5px}.dashboard-builder .chart-container-viewer>.keen-dataviz{overflow:auto;width:100%;margin-top:0;border:1px solid #eee}.dashboard-builder .config-buttons{position:absolute;top:-1px;right:-35px;display:flex;flex-direction:column;visibility:hidden;padding-left:5px;opacity:1}.dashboard-builder .config-buttons div{cursor:pointer;width:30px;height:30px;background:#000;color:#fff;font-size:15px;box-sizing:border-box;margin-bottom:2px;display:flex;align-items:center;justify-content:center;opacity:.7;border-radius:3px}.dashboard-builder .config-buttons div:hover{background:#424242}.dashboard-builder .explorer-button{position:absolute;z-index:4;top:2px;right:2px;cursor:pointer;width:30px;height:30px;background:#000;color:#fff;box-sizing:border-box;opacity:.7;border-radius:3px;padding-left:8px;padding-top:2px;visibility:hidden}.dashboard-builder .explorer-button a{color:#fff}.dashboard-builder .explorer-button:hover{background:#424242}.dashboard-builder .top-left{left:0;top:0;cursor:nwse-resize;width:10px;height:10px;z-index:4}.dashboard-builder .top-right{right:0;top:0;cursor:nesw-resize;width:10px;height:10px;z-index:4}.dashboard-builder .bottom-left{left:0;bottom:0;cursor:nesw-resize;width:10px;height:10px;z-index:4}.dashboard-builder .bottom-right{right:1px;bottom:1px;cursor:nwse-resize;width:12px;height:12px;z-index:4;border-style:solid;border-width:0 0 12px 12px;border-color:transparent transparent #7c7c7c}.dashboard-builder .left{left:0}.dashboard-builder .left,.dashboard-builder .right{top:0;height:100%;width:5px;cursor:ew-resize;z-index:3}.dashboard-builder .right{right:0}.dashboard-builder .top{top:0}.dashboard-builder .bottom,.dashboard-builder .top{left:0;width:100%;height:5px;cursor:ns-resize;z-index:3}.dashboard-builder .bottom{bottom:0}.dashboard-builder .keen-dataviz-table th{z-index:0}.dashboard-builder .keen-dataviz-title{padding-top:5px}.dashboard-builder .keen-dataviz-metric-subtitle,.dashboard-builder .keen-dataviz-metric-title,.dashboard-builder .keen-dataviz-subtitle,.dashboard-builder .keen-dataviz-title{padding-left:10px;padding-right:10px}.dashboard-builder .chart-draggable{position:absolute;left:10px;width:calc(100% - 20px);height:calc(100% - 20px);z-index:2;cursor:move}.dashboard-builder .search{width:65%;height:100%;display:flex;flex-direction:row;font-size:15px;align-items:center}.dashboard-builder .search svg{margin-right:10px}.dashboard-builder .search input{border:0;background:inherit;width:100%;height:100%;outline:none;font-size:20px}.dashboard-builder .sorting-select{width:200px;margin-top:15px}.dashboard-builder .screen-resize-icon{display:flex;color:hsla(0,0%,44%,.65882);align-items:center;flex:1;justify-content:center}.dashboard-builder .screen-resize-icon svg{margin:0 1rem;cursor:pointer}.dashboard-builder .screen-resize-icon svg:hover{color:#000}.dashboard-builder .save-dashboard-button{border-radius:5px;padding:5px;cursor:pointer;transition:.3s;width:80px;height:31px;margin-right:20px;margin-left:20px;text-align:center;color:#fff;background:#2f97b9;text-transform:uppercase;line-height:1}.dashboard-builder .save-dashboard-button svg{margin-right:.25rem}.dashboard-builder .settings{width:350px;background:#f3f7f9}.dashboard-builder .settings h4{margin-top:2rem;margin-bottom:.5rem;font-weight:400}.dashboard-builder .settings-wrapper{padding:1rem}.dashboard-builder .settings-input{color:#333;font-size:14px;height:38px}.dashboard-builder .settings-input,.dashboard-builder .settings-textarea{width:100%;border-radius:4px;padding:9px;border:1px solid #ccc;outline:none}.dashboard-builder .settings-textarea{color:gray;font-size:16px;height:50%}.dashboard-builder .settings-select>div{width:100%}.dashboard-builder .settings-chart{padding:0}.dashboard-builder .settings-chart-saved-query{padding:1rem}.dashboard-builder .settings-chart #dashboard-builder-explorer .keen-explorer .panel-main{min-width:0;max-width:330px;box-shadow:none}.dashboard-builder .settings-chart .keen-theme-builder{padding:0}.dashboard-builder .settings-chart .keen-theme-builder .builder__header{display:none}.dashboard-builder .settings-chart .keen-theme-builder .keen-theme-builder__row{padding-left:1rem;padding-right:1rem}.dashboard-builder .settings-chart .keen-theme-builder .accordion__item__content .keen-theme-builder__row{padding:0}.dashboard-builder .settings-chart h4:first-child{margin-top:0}.dashboard-builder .react-tabs__tab{width:50%;padding:10px;text-align:center;cursor:pointer;color:#fff;outline:none;border:0;background:#2f97b9}.dashboard-builder .react-tabs__tab:first-of-type{border-right:none}.dashboard-builder .react-tabs__tab--selected{color:#000;border-bottom:none;background:#fff;border-top:1px solid #eee}.dashboard-builder .react-tabs__tab-list{display:flex;flex-direction:row;list-style:none;justify-content:space-between;padding:0;margin-bottom:0}.dashboard-builder .react-tabs__tab-panel{border:0}.dashboard-builder .react-tabs__tab-panel--selected{padding:10px 20px 20px;border:0;visibility:visible;height:calc(100vh - 40px);overflow-y:auto}.dashboard-builder .react-tabs__tab-panel--selected .keen-theme-builder{padding:0}.dashboard-builder .settings-container{min-width:350px;min-height:100%;background:#fff;border-left:1px solid #eee;position:relative;background:#f3f7f9;overflow:auto}.dashboard-builder .settings-container .color-palette__item .color-picker__popover{left:0;right:auto}.dashboard-builder .settings-container .color-palette__item:nth-child(2n) .color-picker__popover{left:auto;right:0}.dashboard-builder .new-dashboard-button{border-radius:5px;padding:1rem;cursor:pointer;color:#fff;background:#2f97b9;text-align:left;white-space:nowrap;display:flex;align-items:center}.dashboard-builder .new-dashboard-button:hover{color:#fff;background:#2f97b9}.dashboard-builder .new-dashboard-button svg{margin-right:.5rem}.dashboard-builder .container{width:1200px;background:#f5f5f5;min-height:100vh;display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start}.dashboard-builder .top-toolbar{flex:1 100%;padding:20px;display:flex;flex-direction:row;justify-content:space-between;width:100%;border-bottom:1px solid #cfcfcf}.dashboard-builder .message{width:100%;text-align:center;padding:20px}.dashboard-builder .new-chart-info,.dashboard-builder .settings-loading{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;background:hsla(0,0%,98%,.9);border-bottom-left-radius:5px;border-bottom-right-radius:5px}.dashboard-builder .error-message{z-index:1;background:#fff;padding:20px;text-align:center;color:red;border:1px solid red;border-radius:5px}.dashboard-builder .dry-run-message{position:absolute;left:0;bottom:0;padding:1rem;background:hsla(0,0%,44%,.65882);color:#fff;border-radius:0 1rem 0 0}.dashboard-builder .select-palette-button select{margin-right:20px;border-radius:5px;padding:8px;width:100px;height:31px;background:#fff}.dashboard-builder .preview{padding:10px}.dashboard-builder .preview a{color:#000}.dashboard-builder .embed-icon:hover,.dashboard-builder .preview:hover a,.dashboard-builder .share-icon:hover{color:#414141}.dashboard-builder .quill{height:70%}.dashboard-builder .edit-dashboard-button{border-radius:5px;padding:5px 10px;cursor:pointer;width:fit-content;text-align:center;color:#fff;background:#2f97b9;text-decoration:none;flex-shrink:0;margin:0 0 0 .5em}.dashboard-builder .edit-dashboard-button__link{display:block;color:#fff;text-decoration:none}.dashboard-builder .edit-dashboard-button__link:hover{color:#fff;text-decoration:none}.dashboard-builder .big-icon{font-size:50px;color:#eee}.dashboard-builder .loading{font-size:50px;animation:a 1s ease infinite;z-index:13}.dashboard-builder .settings-theme-builder,.dashboard-builder .settings-theme-builder .keen-theme-builder{padding:0}.dashboard-builder .settings-theme-builder .keen-theme-builder .builder__header{display:none}.dashboard-builder .switch-dashboard{width:400px;z-index:10}.dashboard-builder .__react_component_tooltip{padding:3px 5px}.dashboard-builder .keen-theme-builder{background-color:#fff}.dashboard-builder .keen-theme-builder .color-picker__popover{z-index:10}.dashboard-builder .keen-theme-builder .builder__header{display:none}.dashboard-builder .heatmap-container .keen-dataviz-rendering-vertical{height:calc(100% - 50px)}.dashboard-builder .keen-dataviz .rangeable-container{margin:2rem auto;width:75%}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-progress,.dashboard-builder .keen-dataviz .rangeable-container .rangeable-track{height:4px}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-handle{width:16px;height:16px;border-width:4px}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-tooltip{border-radius:0;font-weight:400;padding:3px 9px}.dashboard-builder .c3-circle{fill:currentColor}@media only screen and (max-width:1300px){.dashboard-builder .dashboard{min-height:calc(100vh - 130px)}}@media only screen and (min-width:1800px){.dashboard-builder .toolbar-bar{visibility:hidden}.dashboard-builder .toolbar-container{left:0}.dashboard-builder .dashboard-container{padding-left:90px}}.dashboard-builder .export-icon{cursor:pointer}.dashboard-builder .switcher{margin-bottom:.5rem;display:block;position:relative;overflow:hidden}.dashboard-builder .switcher__input:checked~.switcher__toggle{border-color:#3ed08e;background-color:#dcf9eb}.dashboard-builder .switcher__input:checked~.switcher__toggle .switcher__switch{right:2px;background-color:#3ed08e}.dashboard-builder .switcher__input:checked~.switcher__value .on{display:block}.dashboard-builder .switcher__input:checked~.switcher__value .off{display:none}.dashboard-builder .switcher__toggle{position:relative;width:36px;height:20px;margin-right:.25rem;margin-left:.5rem;border:1px solid #ccc;background-color:#fff;border-radius:10px;display:inline-block}.dashboard-builder .switcher__switch{position:absolute;top:2px;bottom:0;right:18px;width:14px;height:14px;margin:0;background:#ccc;border-radius:50%;flex-shrink:0;transition:right .15s ease-in-out,background-color .15s ease-in-out}.dashboard-builder .switcher__title{font-weight:800}.dashboard-builder .switcher__label{display:flex;align-items:center;cursor:pointer}.dashboard-builder .switcher__input{position:absolute;left:-999px}.dashboard-builder .switcher__value{margin-left:.25rem;color:#b3b5b6}.dashboard-builder .switcher__value .on{display:none}.dashboard-builder .switcher__value .off{display:block}.dashboard-builder .layout.editor .keen-dataviz .c3-chart{pointer-events:none}.dashboard-builder .react-grid-item:hover{z-index:7}.dashboard-builder .react-grid-item:hover .config-buttons{visibility:visible}.dashboard-builder .react-grid-item>.react-resizable-handle{width:16px;height:16px;background-color:transparent;background-image:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0IiB2aWV3Qm94PSI5Mi43MjYzMzE4ODA1ODUzOCA4My45MzgyNjA0OTcxMDkwMSA0NzQuMTIxNzExMjU2OTYxIDQ3NC4xMjM0NzkwMDU3ODIiIHdpZHRoPSI0NzAuMTIiIGhlaWdodD0iNDcwLjEyIj48ZGVmcz48cGF0aCBkPSJNMTg1LjY1IDI0Ny41N0w0MDEuMjEgNDYzLjE0QzM3Ni43OSA0ODcuNTYgMzYzLjIyIDUwMS4xMyAzNjAuNSA1MDMuODVDMzQxLjYgNTIyLjc1IDM1NC45OSA1NTUuMDYgMzgxLjcyIDU1NS4wNkMzOTYuOTMgNTU1LjA2IDUxOC42MyA1NTUuMDYgNTMzLjg1IDU1NS4wNkM1NTAuNDIgNTU1LjA2IDU2My44NSA1NDEuNjMgNTYzLjg1IDUyNS4wNkM1NjMuODUgNTA5Ljg1IDU2My44NSAzODguMTQgNTYzLjg1IDM3Mi45M0M1NjMuODUgMzQ2LjIgNTMxLjUzIDMzMi44MiA1MTIuNjMgMzUxLjcyQzUwOS45MiAzNTQuNDMgNDk2LjM1IDM2OCA0NzEuOTIgMzkyLjQzTDI1Ni4zNiAxNzYuODZDMjgwLjc5IDE1Mi40NCAyOTQuMzYgMTM4Ljg3IDI5Ny4wNyAxMzYuMTVDMzE1Ljk3IDExNy4yNSAzMDIuNTkgODQuOTQgMjc1Ljg2IDg0Ljk0QzI2MC42NSA4NC45NCAxMzguOTQgODQuOTQgMTIzLjczIDg0Ljk0QzEwNy4xNiA4NC45NCA5My43MyA5OC4zNyA5My43MyAxMTQuOTRDOTMuNzMgMTMwLjE1IDkzLjczIDI1MS44NiA5My43MyAyNjcuMDdDOTMuNzMgMjkzLjggMTI2LjA0IDMwNy4xOCAxNDQuOTQgMjg4LjI4QzE1MC4zNyAyODIuODYgMTYzLjk0IDI2OS4yOSAxODUuNjUgMjQ3LjU3WiIgaWQ9ImFYVDAwb2VrQyI+PC9wYXRoPjwvZGVmcz48Zz48Zz48dXNlIHhsaW5rOmhyZWY9IiNhWFQwMG9la0MiIG9wYWNpdHk9IjEiIGZpbGw9IiMwMDAwMDAiIGZpbGwtb3BhY2l0eT0iMSI+PC91c2U+PGc+PHVzZSB4bGluazpocmVmPSIjYVhUMDBvZWtDIiBvcGFjaXR5PSIxIiBmaWxsLW9wYWNpdHk9IjAiIHN0cm9rZT0iIzAwMDAwMCIgc3Ryb2tlLXdpZHRoPSIxIiBzdHJva2Utb3BhY2l0eT0iMCI+PC91c2U+PC9nPjwvZz48L2c+PC9zdmc+");background-size:contain;cursor:nwse-resize;opacity:0;will-change:opacity;transition:opacity .25s ease-out}.dashboard-builder .react-grid-item>.react-resizable-handle:after{content:none}.dashboard-builder .react-grid-item.react-resizable:hover .react-resizable-handle{opacity:1}.dashboard-builder .react-grid-item.react-grid-placeholder{background:#2f97b9}.dashboard-builder .react-grid-item .keen-dataviz{overflow:auto}.dashboard-builder .react-grid-item img{pointer-events:none}.dashboard-builder .react-grid-layout{min-height:230px}@keyframes a{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}', - '' - ]); - }, - function(e, t, n) { - (function(e) { - var r = - (void 0 !== e && e) || - ('undefined' != typeof self && self) || - window, - o = Function.prototype.apply; - function i(e, t) { - (this._id = e), (this._clearFn = t); + } + var ei = Zo(!0), + ti = Zo(!1), + ni = {}, + ri = { current: ni }, + oi = { current: ni }, + ii = { current: ni }; + function ai(e) { + if (e === ni) throw a(Error(174)); + return e; + } + function si(e, t) { + Pr(ii, t), Pr(oi, e), Pr(ri, ni); + var n = t.nodeType; + switch (n) { + case 9: + case 11: + t = (t = t.documentElement) ? t.namespaceURI : ur(null, ''); + break; + default: + t = ur( + (t = (n = 8 === n ? t.parentNode : t).namespaceURI || null), + (n = n.tagName) + ); } - (t.setTimeout = function() { - return new i(o.call(setTimeout, r, arguments), clearTimeout); - }), - (t.setInterval = function() { - return new i(o.call(setInterval, r, arguments), clearInterval); - }), - (t.clearTimeout = t.clearInterval = function(e) { - e && e.close(); - }), - (i.prototype.unref = i.prototype.ref = function() {}), - (i.prototype.close = function() { - this._clearFn.call(r, this._id); - }), - (t.enroll = function(e, t) { - clearTimeout(e._idleTimeoutId), (e._idleTimeout = t); - }), - (t.unenroll = function(e) { - clearTimeout(e._idleTimeoutId), (e._idleTimeout = -1); - }), - (t._unrefActive = t.active = function(e) { - clearTimeout(e._idleTimeoutId); - var t = e._idleTimeout; - t >= 0 && - (e._idleTimeoutId = setTimeout(function() { - e._onTimeout && e._onTimeout(); - }, t)); - }), - n(507), - (t.setImmediate = - ('undefined' != typeof self && self.setImmediate) || - (void 0 !== e && e.setImmediate) || - (this && this.setImmediate)), - (t.clearImmediate = - ('undefined' != typeof self && self.clearImmediate) || - (void 0 !== e && e.clearImmediate) || - (this && this.clearImmediate)); - }.call(this, n(26))); - }, - function(e, t, n) { - (function(e, t) { - !(function(e, n) { - 'use strict'; - if (!e.setImmediate) { - var r, - o, - i, - a, - s, - c = 1, - u = {}, - l = !1, - f = e.document, - d = Object.getPrototypeOf && Object.getPrototypeOf(e); - (d = d && d.setTimeout ? d : e), - '[object process]' === {}.toString.call(e.process) - ? (r = function(e) { - t.nextTick(function() { - h(e); - }); - }) - : !(function() { - if (e.postMessage && !e.importScripts) { - var t = !0, - n = e.onmessage; - return ( - (e.onmessage = function() { - t = !1; - }), - e.postMessage('', '*'), - (e.onmessage = n), - t - ); - } - })() - ? e.MessageChannel - ? (((i = new MessageChannel()).port1.onmessage = function(e) { - h(e.data); - }), - (r = function(e) { - i.port2.postMessage(e); - })) - : f && 'onreadystatechange' in f.createElement('script') - ? ((o = f.documentElement), - (r = function(e) { - var t = f.createElement('script'); - (t.onreadystatechange = function() { - h(e), - (t.onreadystatechange = null), - o.removeChild(t), - (t = null); - }), - o.appendChild(t); - })) - : (r = function(e) { - setTimeout(h, 0, e); - }) - : ((a = 'setImmediate$' + Math.random() + '$'), - (s = function(t) { - t.source === e && - 'string' == typeof t.data && - 0 === t.data.indexOf(a) && - h(+t.data.slice(a.length)); - }), - e.addEventListener - ? e.addEventListener('message', s, !1) - : e.attachEvent('onmessage', s), - (r = function(t) { - e.postMessage(a + t, '*'); - })), - (d.setImmediate = function(e) { - 'function' != typeof e && (e = new Function('' + e)); - for ( - var t = new Array(arguments.length - 1), n = 0; - n < t.length; - n++ - ) - t[n] = arguments[n + 1]; - var o = { callback: e, args: t }; - return (u[c] = o), r(c), c++; - }), - (d.clearImmediate = p); + Lr(ri), Pr(ri, t); + } + function ci(e) { + Lr(ri), Lr(oi), Lr(ii); + } + function ui(e) { + ai(ii.current); + var t = ai(ri.current), + n = ur(t, e.type); + t !== n && (Pr(oi, e), Pr(ri, n)); + } + function li(e) { + oi.current === e && (Lr(ri), Lr(oi)); + } + var fi = 1, + di = 1, + pi = 2, + hi = { current: 0 }; + function gi(e) { + for (var t = e; null !== t; ) { + if (13 === t.tag) { + if (null !== t.memoizedState) return t; + } else if (19 === t.tag && void 0 !== t.memoizedProps.revealOrder) { + if (0 != (64 & t.effectTag)) return t; + } else if (null !== t.child) { + (t.child.return = t), (t = t.child); + continue; } - function p(e) { - delete u[e]; + if (t === e) break; + for (; null === t.sibling; ) { + if (null === t.return || t.return === e) return null; + t = t.return; } - function h(e) { - if (l) setTimeout(h, 0, e); - else { - var t = u[e]; - if (t) { - l = !0; - try { - !(function(e) { - var t = e.callback, - n = e.args; - switch (n.length) { - case 0: - t(); - break; - case 1: - t(n[0]); - break; - case 2: - t(n[0], n[1]); - break; - case 3: - t(n[0], n[1], n[2]); - break; - default: - t.apply(void 0, n); - } - })(t); - } finally { - p(e), (l = !1); - } - } + (t.sibling.return = t.return), (t = t.sibling); + } + return null; + } + var mi = 0, + bi = 2, + yi = 4, + vi = 8, + _i = 16, + wi = 32, + xi = 64, + Mi = 128, + ki = Ue.ReactCurrentDispatcher, + Si = 0, + Oi = null, + Ei = null, + Ai = null, + Ti = null, + Ci = null, + Li = null, + Pi = 0, + Di = null, + ji = 0, + zi = !1, + Ni = null, + Ri = 0; + function Ii() { + throw a(Error(321)); + } + function Fi(e, t) { + if (null === t) return !1; + for (var n = 0; n < t.length && n < e.length; n++) + if (!tn(e[n], t[n])) return !1; + return !0; + } + function qi(e, t, n, r, o, i) { + if ( + ((Si = i), + (Oi = t), + (Ai = null !== e ? e.memoizedState : null), + (ki.current = null === Ai ? Zi : ea), + (t = n(r, o)), + zi) + ) { + do { + (zi = !1), + (Ri += 1), + (Ai = null !== e ? e.memoizedState : null), + (Li = Ti), + (Di = Ci = Ei = null), + (ki.current = ea), + (t = n(r, o)); + } while (zi); + (Ni = null), (Ri = 0); + } + if ( + ((ki.current = Ji), + ((e = Oi).memoizedState = Ti), + (e.expirationTime = Pi), + (e.updateQueue = Di), + (e.effectTag |= ji), + (e = null !== Ei && null !== Ei.next), + (Si = 0), + (Li = Ci = Ti = Ai = Ei = Oi = null), + (Pi = 0), + (Di = null), + (ji = 0), + e) + ) + throw a(Error(300)); + return t; + } + function Bi() { + (ki.current = Ji), + (Si = 0), + (Li = Ci = Ti = Ai = Ei = Oi = null), + (Pi = 0), + (Di = null), + (ji = 0), + (zi = !1), + (Ni = null), + (Ri = 0); + } + function Hi() { + var e = { + memoizedState: null, + baseState: null, + queue: null, + baseUpdate: null, + next: null + }; + return null === Ci ? (Ti = Ci = e) : (Ci = Ci.next = e), Ci; + } + function Yi() { + if (null !== Li) + (Li = (Ci = Li).next), (Ai = null !== (Ei = Ai) ? Ei.next : null); + else { + if (null === Ai) throw a(Error(310)); + var e = { + memoizedState: (Ei = Ai).memoizedState, + baseState: Ei.baseState, + queue: Ei.queue, + baseUpdate: Ei.baseUpdate, + next: null + }; + (Ci = null === Ci ? (Ti = e) : (Ci.next = e)), (Ai = Ei.next); + } + return Ci; + } + function Wi(e, t) { + return 'function' == typeof t ? t(e) : t; + } + function Vi(e) { + var t = Yi(), + n = t.queue; + if (null === n) throw a(Error(311)); + if (((n.lastRenderedReducer = e), 0 < Ri)) { + var r = n.dispatch; + if (null !== Ni) { + var o = Ni.get(n); + if (void 0 !== o) { + Ni.delete(n); + var i = t.memoizedState; + do { + (i = e(i, o.action)), (o = o.next); + } while (null !== o); + return ( + tn(i, t.memoizedState) || (fa = !0), + (t.memoizedState = i), + t.baseUpdate === n.last && (t.baseState = i), + (n.lastRenderedState = i), + [i, r] + ); } } - })('undefined' == typeof self ? (void 0 === e ? this : e) : self); - }.call(this, n(26), n(201))); - }, - function(e, t) { - function n(t, r) { - return ( - (e.exports = n = - Object.setPrototypeOf || - function(e, t) { - return (e.__proto__ = t), e; - }), - n(t, r) - ); + return [t.memoizedState, r]; + } + r = n.last; + var s = t.baseUpdate; + if ( + ((i = t.baseState), + null !== s + ? (null !== r && (r.next = null), (r = s.next)) + : (r = null !== r ? r.next : null), + null !== r) + ) { + var c = (o = null), + u = r, + l = !1; + do { + var f = u.expirationTime; + f < Si + ? (l || ((l = !0), (c = s), (o = i)), f > Pi && (Pi = f)) + : (Hs(f, u.suspenseConfig), + (i = u.eagerReducer === e ? u.eagerState : e(i, u.action))), + (s = u), + (u = u.next); + } while (null !== u && u !== r); + l || ((c = s), (o = i)), + tn(i, t.memoizedState) || (fa = !0), + (t.memoizedState = i), + (t.baseUpdate = c), + (t.baseState = o), + (n.lastRenderedState = i); + } + return [t.memoizedState, n.dispatch]; } - e.exports = n; - }, - function(e, t) { - function n(t) { + function Ui(e, t, n, r) { return ( - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? (e.exports = n = function(e) { - return typeof e; - }) - : (e.exports = n = function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - }), - n(t) + (e = { tag: e, create: t, destroy: n, deps: r, next: null }), + null === Di + ? ((Di = { lastEffect: null }).lastEffect = e.next = e) + : null === (t = Di.lastEffect) + ? (Di.lastEffect = e.next = e) + : ((n = t.next), (t.next = e), (e.next = n), (Di.lastEffect = e)), + e ); } - e.exports = n; - }, - function(e, t) { - e.exports = - Array.isArray || - function(e) { - return '[object Array]' == Object.prototype.toString.call(e); - }; - }, - function(e, t, n) { - (function(t) { - (function() { - var n, r, o, i, a, s; - 'undefined' != typeof performance && - null !== performance && - performance.now - ? (e.exports = function() { - return performance.now(); - }) - : null != t && t.hrtime - ? ((e.exports = function() { - return (n() - a) / 1e6; - }), - (r = t.hrtime), - (i = (n = function() { - var e; - return 1e9 * (e = r())[0] + e[1]; - })()), - (s = 1e9 * t.uptime()), - (a = i - s)) - : Date.now - ? ((e.exports = function() { - return Date.now() - o; - }), - (o = Date.now())) - : ((e.exports = function() { - return new Date().getTime() - o; - }), - (o = new Date().getTime())); - }.call(this)); - }.call(this, n(201))); - }, - function(e, t, n) { - 'use strict'; - (t.__esModule = !0), (t.default = void 0); - !(function(e) { - if (e && e.__esModule) return e; - var t = {}; - if (null != e) - for (var n in e) - if (Object.prototype.hasOwnProperty.call(e, n)) { - var r = - Object.defineProperty && Object.getOwnPropertyDescriptor - ? Object.getOwnPropertyDescriptor(e, n) - : {}; - r.get || r.set ? Object.defineProperty(t, n, r) : (t[n] = e[n]); - } - t.default = e; - })(n(1)); - var r = s(n(513)), - o = s(n(516)), - i = s(n(0)), - a = s(n(202)); - n(203); - function s(e) { - return e && e.__esModule ? e : { default: e }; + function Xi(e, t, n, r) { + var o = Hi(); + (ji |= e), + (o.memoizedState = Ui(t, n, void 0, void 0 === r ? null : r)); } - function c() { - return (c = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); + function Gi(e, t, n, r) { + var o = Yi(); + r = void 0 === r ? null : r; + var i = void 0; + if (null !== Ei) { + var a = Ei.memoizedState; + if (((i = a.destroy), null !== r && Fi(r, a.deps))) + return void Ui(mi, n, i, r); + } + (ji |= e), (o.memoizedState = Ui(t, n, i, r)); } - var u = function(e, t) { - return ( - e && - t && - t.split(' ').forEach(function(t) { - return (0, r.default)(e, t); + function Ki(e, t) { + return 'function' == typeof t + ? ((e = e()), + t(e), + function() { + t(null); }) - ); - }, - l = function(e, t) { - return ( - e && - t && - t.split(' ').forEach(function(t) { - return (0, o.default)(e, t); + : null != t + ? ((e = e()), + (t.current = e), + function() { + t.current = null; }) - ); - }, - f = (function(e) { - var t, n; - function r() { - for ( - var t, n = arguments.length, r = new Array(n), o = 0; - o < n; - o++ - ) - r[o] = arguments[o]; + : void 0; + } + function $i() {} + function Qi(e, t, n) { + if (!(25 > Ri)) throw a(Error(301)); + var r = e.alternate; + if (e === Oi || (null !== r && r === Oi)) + if ( + ((zi = !0), + (e = { + expirationTime: Si, + suspenseConfig: null, + action: n, + eagerReducer: null, + eagerState: null, + next: null + }), + null === Ni && (Ni = new Map()), + void 0 === (n = Ni.get(t))) + ) + Ni.set(t, e); + else { + for (t = n; null !== t.next; ) t = t.next; + t.next = e; + } + else { + var o = Ts(), + i = Ho.suspense; + i = { + expirationTime: (o = Cs(o, e, i)), + suspenseConfig: i, + action: n, + eagerReducer: null, + eagerState: null, + next: null + }; + var s = t.last; + if (null === s) i.next = i; + else { + var c = s.next; + null !== c && (i.next = c), (s.next = i); + } + if ( + ((t.last = i), + 0 === e.expirationTime && + (null === r || 0 === r.expirationTime) && + null !== (r = t.lastRenderedReducer)) + ) + try { + var u = t.lastRenderedState, + l = r(u, n); + if (((i.eagerReducer = r), (i.eagerState = l), tn(l, u))) return; + } catch (e) {} + Ps(e, o); + } + } + var Ji = { + readContext: To, + useCallback: Ii, + useContext: Ii, + useEffect: Ii, + useImperativeHandle: Ii, + useLayoutEffect: Ii, + useMemo: Ii, + useReducer: Ii, + useRef: Ii, + useState: Ii, + useDebugValue: Ii, + useResponder: Ii + }, + Zi = { + readContext: To, + useCallback: function(e, t) { + return (Hi().memoizedState = [e, void 0 === t ? null : t]), e; + }, + useContext: To, + useEffect: function(e, t) { + return Xi(516, Mi | xi, e, t); + }, + useImperativeHandle: function(e, t, n) { return ( - ((t = - e.call.apply(e, [this].concat(r)) || this).onEnter = function( - e, - n - ) { - var r = t.getClassNames(n ? 'appear' : 'enter').className; - t.removeClasses(e, 'exit'), - u(e, r), - t.props.onEnter && t.props.onEnter(e, n); - }), - (t.onEntering = function(e, n) { - var r = t.getClassNames(n ? 'appear' : 'enter').activeClassName; - t.reflowAndAddClass(e, r), - t.props.onEntering && t.props.onEntering(e, n); - }), - (t.onEntered = function(e, n) { - var r = t.getClassNames('appear').doneClassName, - o = t.getClassNames('enter').doneClassName, - i = n ? r + ' ' + o : o; - t.removeClasses(e, n ? 'appear' : 'enter'), - u(e, i), - t.props.onEntered && t.props.onEntered(e, n); - }), - (t.onExit = function(e) { - var n = t.getClassNames('exit').className; - t.removeClasses(e, 'appear'), - t.removeClasses(e, 'enter'), - u(e, n), - t.props.onExit && t.props.onExit(e); - }), - (t.onExiting = function(e) { - var n = t.getClassNames('exit').activeClassName; - t.reflowAndAddClass(e, n), - t.props.onExiting && t.props.onExiting(e); - }), - (t.onExited = function(e) { - var n = t.getClassNames('exit').doneClassName; - t.removeClasses(e, 'exit'), - u(e, n), - t.props.onExited && t.props.onExited(e); - }), - (t.getClassNames = function(e) { - var n = t.props.classNames, - r = 'string' == typeof n, - o = r ? (r && n ? n + '-' : '') + e : n[e]; - return { - className: o, - activeClassName: r ? o + '-active' : n[e + 'Active'], - doneClassName: r ? o + '-done' : n[e + 'Done'] - }; - }), - t + (n = null != n ? n.concat([e]) : null), + Xi(4, yi | wi, Ki.bind(null, t, e), n) ); - } - (n = e), - ((t = r).prototype = Object.create(n.prototype)), - (t.prototype.constructor = t), - (t.__proto__ = n); - var o = r.prototype; - return ( - (o.removeClasses = function(e, t) { - var n = this.getClassNames(t), - r = n.className, - o = n.activeClassName, - i = n.doneClassName; - r && l(e, r), o && l(e, o), i && l(e, i); - }), - (o.reflowAndAddClass = function(e, t) { - t && (e && e.scrollTop, u(e, t)); - }), - (o.render = function() { - var e = c({}, this.props); - return ( - delete e.classNames, - i.default.createElement( - a.default, - c({}, e, { - onEnter: this.onEnter, - onEntered: this.onEntered, - onEntering: this.onEntering, - onExit: this.onExit, - onExiting: this.onExiting, - onExited: this.onExited - }) - ) - ); - }), - r - ); - })(i.default.Component); - (f.defaultProps = { classNames: '' }), (f.propTypes = {}); - var d = f; - (t.default = d), (e.exports = t.default); - }, - function(e, t, n) { - 'use strict'; - var r = n(514); - (t.__esModule = !0), - (t.default = function(e, t) { - e.classList - ? e.classList.add(t) - : (0, o.default)(e, t) || - ('string' == typeof e.className - ? (e.className = e.className + ' ' + t) - : e.setAttribute( - 'class', - ((e.className && e.className.baseVal) || '') + ' ' + t - )); - }); - var o = r(n(515)); - e.exports = t.default; - }, - function(e, t) { - e.exports = function(e) { - return e && e.__esModule ? e : { default: e }; - }; - }, - function(e, t, n) { - 'use strict'; - (t.__esModule = !0), - (t.default = function(e, t) { - return e.classList - ? !!t && e.classList.contains(t) - : -1 !== - (' ' + (e.className.baseVal || e.className) + ' ').indexOf( - ' ' + t + ' ' - ); - }), - (e.exports = t.default); - }, - function(e, t, n) { - 'use strict'; - function r(e, t) { - return e - .replace(new RegExp('(^|\\s)' + t + '(?:\\s|$)', 'g'), '$1') - .replace(/\s+/g, ' ') - .replace(/^\s*|\s*$/g, ''); + }, + useLayoutEffect: function(e, t) { + return Xi(4, yi | wi, e, t); + }, + useMemo: function(e, t) { + var n = Hi(); + return ( + (t = void 0 === t ? null : t), + (e = e()), + (n.memoizedState = [e, t]), + e + ); + }, + useReducer: function(e, t, n) { + var r = Hi(); + return ( + (t = void 0 !== n ? n(t) : t), + (r.memoizedState = r.baseState = t), + (e = (e = r.queue = { + last: null, + dispatch: null, + lastRenderedReducer: e, + lastRenderedState: t + }).dispatch = Qi.bind(null, Oi, e)), + [r.memoizedState, e] + ); + }, + useRef: function(e) { + return (e = { current: e }), (Hi().memoizedState = e); + }, + useState: function(e) { + var t = Hi(); + return ( + 'function' == typeof e && (e = e()), + (t.memoizedState = t.baseState = e), + (e = (e = t.queue = { + last: null, + dispatch: null, + lastRenderedReducer: Wi, + lastRenderedState: e + }).dispatch = Qi.bind(null, Oi, e)), + [t.memoizedState, e] + ); + }, + useDebugValue: $i, + useResponder: on + }, + ea = { + readContext: To, + useCallback: function(e, t) { + var n = Yi(); + t = void 0 === t ? null : t; + var r = n.memoizedState; + return null !== r && null !== t && Fi(t, r[1]) + ? r[0] + : ((n.memoizedState = [e, t]), e); + }, + useContext: To, + useEffect: function(e, t) { + return Gi(516, Mi | xi, e, t); + }, + useImperativeHandle: function(e, t, n) { + return ( + (n = null != n ? n.concat([e]) : null), + Gi(4, yi | wi, Ki.bind(null, t, e), n) + ); + }, + useLayoutEffect: function(e, t) { + return Gi(4, yi | wi, e, t); + }, + useMemo: function(e, t) { + var n = Yi(); + t = void 0 === t ? null : t; + var r = n.memoizedState; + return null !== r && null !== t && Fi(t, r[1]) + ? r[0] + : ((e = e()), (n.memoizedState = [e, t]), e); + }, + useReducer: Vi, + useRef: function() { + return Yi().memoizedState; + }, + useState: function(e) { + return Vi(Wi); + }, + useDebugValue: $i, + useResponder: on + }, + ta = null, + na = null, + ra = !1; + function oa(e, t) { + var n = rc(5, null, null, 0); + (n.elementType = 'DELETED'), + (n.type = 'DELETED'), + (n.stateNode = t), + (n.return = e), + (n.effectTag = 8), + null !== e.lastEffect + ? ((e.lastEffect.nextEffect = n), (e.lastEffect = n)) + : (e.firstEffect = e.lastEffect = n); } - e.exports = function(e, t) { - e.classList - ? e.classList.remove(t) - : 'string' == typeof e.className - ? (e.className = r(e.className, t)) - : e.setAttribute( - 'class', - r((e.className && e.className.baseVal) || '', t) + function ia(e, t) { + switch (e.tag) { + case 5: + var n = e.type; + return ( + null !== + (t = + 1 !== t.nodeType || + n.toLowerCase() !== t.nodeName.toLowerCase() + ? null + : t) && ((e.stateNode = t), !0) ); - }; - }, - function(e, t, n) { - 'use strict'; - (t.__esModule = !0), (t.default = void 0); - a(n(1)); - var r = a(n(0)), - o = n(4), - i = a(n(204)); - function a(e) { - return e && e.__esModule ? e : { default: e }; + case 6: + return ( + null !== + (t = '' === e.pendingProps || 3 !== t.nodeType ? null : t) && + ((e.stateNode = t), !0) + ); + case 13: + default: + return !1; + } + } + function aa(e) { + if (ra) { + var t = na; + if (t) { + var n = t; + if (!ia(e, t)) { + if (!(t = Ar(n.nextSibling)) || !ia(e, t)) + return (e.effectTag |= 2), (ra = !1), void (ta = e); + oa(ta, n); + } + (ta = e), (na = Ar(t.firstChild)); + } else (e.effectTag |= 2), (ra = !1), (ta = e); + } + } + function sa(e) { + for ( + e = e.return; + null !== e && 5 !== e.tag && 3 !== e.tag && 18 !== e.tag; + + ) + e = e.return; + ta = e; + } + function ca(e) { + if (e !== ta) return !1; + if (!ra) return sa(e), (ra = !0), !1; + var t = e.type; + if ( + 5 !== e.tag || + ('head' !== t && 'body' !== t && !Sr(t, e.memoizedProps)) + ) + for (t = na; t; ) oa(e, t), (t = Ar(t.nextSibling)); + return sa(e), (na = ta ? Ar(e.stateNode.nextSibling) : null), !0; + } + function ua() { + (na = ta = null), (ra = !1); + } + var la = Ue.ReactCurrentOwner, + fa = !1; + function da(e, t, n, r) { + t.child = null === e ? ti(t, null, n, r) : ei(t, e.child, n, r); + } + function pa(e, t, n, r, o) { + n = n.render; + var i = t.ref; + return ( + Ao(t, o), + (r = qi(e, t, n, r, i, o)), + null === e || fa + ? ((t.effectTag |= 1), da(e, t, r, o), t.child) + : ((t.updateQueue = e.updateQueue), + (t.effectTag &= -517), + e.expirationTime <= o && (e.expirationTime = 0), + Sa(e, t, o)) + ); + } + function ha(e, t, n, r, o, i) { + if (null === e) { + var a = n.type; + return 'function' != typeof a || + oc(a) || + void 0 !== a.defaultProps || + null !== n.compare || + void 0 !== n.defaultProps + ? (((e = ac(n.type, null, r, null, t.mode, i)).ref = t.ref), + (e.return = t), + (t.child = e)) + : ((t.tag = 15), (t.type = a), ga(e, t, a, r, o, i)); + } + return ( + (a = e.child), + o < i && + ((o = a.memoizedProps), + (n = null !== (n = n.compare) ? n : rn)(o, r) && e.ref === t.ref) + ? Sa(e, t, i) + : ((t.effectTag |= 1), + ((e = ic(a, r)).ref = t.ref), + (e.return = t), + (t.child = e)) + ); + } + function ga(e, t, n, r, o, i) { + return null !== e && + rn(e.memoizedProps, r) && + e.ref === t.ref && + ((fa = !1), o < i) + ? Sa(e, t, i) + : ba(e, t, n, r, i); + } + function ma(e, t) { + var n = t.ref; + ((null === e && null !== n) || (null !== e && e.ref !== n)) && + (t.effectTag |= 128); + } + function ba(e, t, n, r, o) { + var i = Ir(n) ? Nr : jr.current; + return ( + (i = Rr(t, i)), + Ao(t, o), + (n = qi(e, t, n, r, i, o)), + null === e || fa + ? ((t.effectTag |= 1), da(e, t, n, o), t.child) + : ((t.updateQueue = e.updateQueue), + (t.effectTag &= -517), + e.expirationTime <= o && (e.expirationTime = 0), + Sa(e, t, o)) + ); + } + function ya(e, t, n, r, o) { + if (Ir(n)) { + var i = !0; + Yr(t); + } else i = !1; + if ((Ao(t, o), null === t.stateNode)) + null !== e && + ((e.alternate = null), (t.alternate = null), (t.effectTag |= 2)), + Xo(t, n, r), + Ko(t, n, r, o), + (r = !0); + else if (null === e) { + var a = t.stateNode, + s = t.memoizedProps; + a.props = s; + var c = a.context, + u = n.contextType; + 'object' == typeof u && null !== u + ? (u = To(u)) + : (u = Rr(t, (u = Ir(n) ? Nr : jr.current))); + var l = n.getDerivedStateFromProps, + f = + 'function' == typeof l || + 'function' == typeof a.getSnapshotBeforeUpdate; + f || + ('function' != typeof a.UNSAFE_componentWillReceiveProps && + 'function' != typeof a.componentWillReceiveProps) || + ((s !== r || c !== u) && Go(t, a, r, u)), + (Co = !1); + var d = t.memoizedState; + c = a.state = d; + var p = t.updateQueue; + null !== p && (Fo(t, p, r, a, o), (c = t.memoizedState)), + s !== r || d !== c || zr.current || Co + ? ('function' == typeof l && + (Wo(t, n, l, r), (c = t.memoizedState)), + (s = Co || Uo(t, n, s, r, d, c, u)) + ? (f || + ('function' != typeof a.UNSAFE_componentWillMount && + 'function' != typeof a.componentWillMount) || + ('function' == typeof a.componentWillMount && + a.componentWillMount(), + 'function' == typeof a.UNSAFE_componentWillMount && + a.UNSAFE_componentWillMount()), + 'function' == typeof a.componentDidMount && + (t.effectTag |= 4)) + : ('function' == typeof a.componentDidMount && + (t.effectTag |= 4), + (t.memoizedProps = r), + (t.memoizedState = c)), + (a.props = r), + (a.state = c), + (a.context = u), + (r = s)) + : ('function' == typeof a.componentDidMount && (t.effectTag |= 4), + (r = !1)); + } else + (a = t.stateNode), + (s = t.memoizedProps), + (a.props = t.type === t.elementType ? s : vo(t.type, s)), + (c = a.context), + 'object' == typeof (u = n.contextType) && null !== u + ? (u = To(u)) + : (u = Rr(t, (u = Ir(n) ? Nr : jr.current))), + (f = + 'function' == typeof (l = n.getDerivedStateFromProps) || + 'function' == typeof a.getSnapshotBeforeUpdate) || + ('function' != typeof a.UNSAFE_componentWillReceiveProps && + 'function' != typeof a.componentWillReceiveProps) || + ((s !== r || c !== u) && Go(t, a, r, u)), + (Co = !1), + (c = t.memoizedState), + (d = a.state = c), + null !== (p = t.updateQueue) && + (Fo(t, p, r, a, o), (d = t.memoizedState)), + s !== r || c !== d || zr.current || Co + ? ('function' == typeof l && + (Wo(t, n, l, r), (d = t.memoizedState)), + (l = Co || Uo(t, n, s, r, c, d, u)) + ? (f || + ('function' != typeof a.UNSAFE_componentWillUpdate && + 'function' != typeof a.componentWillUpdate) || + ('function' == typeof a.componentWillUpdate && + a.componentWillUpdate(r, d, u), + 'function' == typeof a.UNSAFE_componentWillUpdate && + a.UNSAFE_componentWillUpdate(r, d, u)), + 'function' == typeof a.componentDidUpdate && + (t.effectTag |= 4), + 'function' == typeof a.getSnapshotBeforeUpdate && + (t.effectTag |= 256)) + : ('function' != typeof a.componentDidUpdate || + (s === e.memoizedProps && c === e.memoizedState) || + (t.effectTag |= 4), + 'function' != typeof a.getSnapshotBeforeUpdate || + (s === e.memoizedProps && c === e.memoizedState) || + (t.effectTag |= 256), + (t.memoizedProps = r), + (t.memoizedState = d)), + (a.props = r), + (a.state = d), + (a.context = u), + (r = l)) + : ('function' != typeof a.componentDidUpdate || + (s === e.memoizedProps && c === e.memoizedState) || + (t.effectTag |= 4), + 'function' != typeof a.getSnapshotBeforeUpdate || + (s === e.memoizedProps && c === e.memoizedState) || + (t.effectTag |= 256), + (r = !1)); + return va(e, t, n, r, i, o); + } + function va(e, t, n, r, o, i) { + ma(e, t); + var a = 0 != (64 & t.effectTag); + if (!r && !a) return o && Wr(t, n, !1), Sa(e, t, i); + (r = t.stateNode), (la.current = t); + var s = + a && 'function' != typeof n.getDerivedStateFromError + ? null + : r.render(); + return ( + (t.effectTag |= 1), + null !== e && a + ? ((t.child = ei(t, e.child, null, i)), + (t.child = ei(t, null, s, i))) + : da(e, t, s, i), + (t.memoizedState = r.state), + o && Wr(t, n, !0), + t.child + ); + } + function _a(e) { + var t = e.stateNode; + t.pendingContext + ? Br(0, t.pendingContext, t.pendingContext !== t.context) + : t.context && Br(0, t.context, !1), + si(e, t.containerInfo); } - var s = (function(e) { - var t, n; - function a() { - for (var t, n = arguments.length, r = new Array(n), o = 0; o < n; o++) - r[o] = arguments[o]; - return ( - ((t = - e.call.apply(e, [this].concat(r)) || - this).handleEnter = function() { - for ( - var e = arguments.length, n = new Array(e), r = 0; - r < e; - r++ - ) - n[r] = arguments[r]; - return t.handleLifecycle('onEnter', 0, n); - }), - (t.handleEntering = function() { - for ( - var e = arguments.length, n = new Array(e), r = 0; - r < e; - r++ - ) - n[r] = arguments[r]; - return t.handleLifecycle('onEntering', 0, n); - }), - (t.handleEntered = function() { - for ( - var e = arguments.length, n = new Array(e), r = 0; - r < e; - r++ - ) - n[r] = arguments[r]; - return t.handleLifecycle('onEntered', 0, n); - }), - (t.handleExit = function() { + var wa = {}; + function xa(e, t, n) { + var r, + o = t.mode, + i = t.pendingProps, + a = hi.current, + s = null, + c = !1; + if ( + ((r = 0 != (64 & t.effectTag)) || + (r = 0 != (a & pi) && (null === e || null !== e.memoizedState)), + r + ? ((s = wa), (c = !0), (t.effectTag &= -65)) + : (null !== e && null === e.memoizedState) || + void 0 === i.fallback || + !0 === i.unstable_avoidThisFallback || + (a |= di), + Pr(hi, (a &= fi)), + null === e) + ) + if (c) { + if ( + ((i = i.fallback), + ((e = sc(null, o, 0, null)).return = t), + 0 == (2 & t.mode)) + ) for ( - var e = arguments.length, n = new Array(e), r = 0; - r < e; - r++ + c = null !== t.memoizedState ? t.child.child : t.child, + e.child = c; + null !== c; + ) - n[r] = arguments[r]; - return t.handleLifecycle('onExit', 1, n); - }), - (t.handleExiting = function() { - for ( - var e = arguments.length, n = new Array(e), r = 0; - r < e; - r++ + (c.return = e), (c = c.sibling); + ((n = sc(i, o, n, null)).return = t), (e.sibling = n), (o = e); + } else o = n = ti(t, null, i.children, n); + else { + if (null !== e.memoizedState) + if (((o = (a = e.child).sibling), c)) { + if ( + ((i = i.fallback), + ((n = ic(a, a.pendingProps)).return = t), + 0 == (2 & t.mode) && + (c = null !== t.memoizedState ? t.child.child : t.child) !== + a.child) ) - n[r] = arguments[r]; - return t.handleLifecycle('onExiting', 1, n); - }), - (t.handleExited = function() { + for (n.child = c; null !== c; ) (c.return = n), (c = c.sibling); + ((i = ic(o, i, o.expirationTime)).return = t), + (n.sibling = i), + (o = n), + (n.childExpirationTime = 0), + (n = i); + } else o = n = ei(t, a.child, i.children, n); + else if (((a = e.child), c)) { + if ( + ((c = i.fallback), + ((i = sc(null, o, 0, null)).return = t), + (i.child = a), + null !== a && (a.return = i), + 0 == (2 & t.mode)) + ) for ( - var e = arguments.length, n = new Array(e), r = 0; - r < e; - r++ + a = null !== t.memoizedState ? t.child.child : t.child, + i.child = a; + null !== a; + ) - n[r] = arguments[r]; - return t.handleLifecycle('onExited', 1, n); - }), - t - ); + (a.return = i), (a = a.sibling); + ((n = sc(c, o, n, null)).return = t), + (i.sibling = n), + (n.effectTag |= 2), + (o = i), + (i.childExpirationTime = 0); + } else n = o = ei(t, a, i.children, n); + t.stateNode = e.stateNode; } - (n = e), - ((t = a).prototype = Object.create(n.prototype)), - (t.prototype.constructor = t), - (t.__proto__ = n); - var s = a.prototype; - return ( - (s.handleLifecycle = function(e, t, n) { - var i, - a = this.props.children, - s = r.default.Children.toArray(a)[t]; - s.props[e] && (i = s.props)[e].apply(i, n), - this.props[e] && this.props[e]((0, o.findDOMNode)(this)); - }), - (s.render = function() { - var e = this.props, - t = e.children, - n = e.in, - o = (function(e, t) { - if (null == e) return {}; - var n, - r, - o = {}, - i = Object.keys(e); - for (r = 0; r < i.length; r++) - (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); - return o; - })(e, ['children', 'in']), - a = r.default.Children.toArray(t), - s = a[0], - c = a[1]; + return (t.memoizedState = s), (t.child = o), n; + } + function Ma(e, t, n, r, o) { + var i = e.memoizedState; + null === i + ? (e.memoizedState = { + isBackwards: t, + rendering: null, + last: r, + tail: n, + tailExpiration: 0, + tailMode: o + }) + : ((i.isBackwards = t), + (i.rendering = null), + (i.last = r), + (i.tail = n), + (i.tailExpiration = 0), + (i.tailMode = o)); + } + function ka(e, t, n) { + var r = t.pendingProps, + o = r.revealOrder, + i = r.tail; + if ((da(e, t, r.children, n), 0 != ((r = hi.current) & pi))) + (r = (r & fi) | pi), (t.effectTag |= 64); + else { + if (null !== e && 0 != (64 & e.effectTag)) + e: for (e = t.child; null !== e; ) { + if (13 === e.tag) { + if (null !== e.memoizedState) { + e.expirationTime < n && (e.expirationTime = n); + var a = e.alternate; + null !== a && a.expirationTime < n && (a.expirationTime = n), + Eo(e.return, n); + } + } else if (null !== e.child) { + (e.child.return = e), (e = e.child); + continue; + } + if (e === t) break e; + for (; null === e.sibling; ) { + if (null === e.return || e.return === t) break e; + e = e.return; + } + (e.sibling.return = e.return), (e = e.sibling); + } + r &= fi; + } + if ((Pr(hi, r), 0 == (2 & t.mode))) t.memoizedState = null; + else + switch (o) { + case 'forwards': + for (n = t.child, o = null; null !== n; ) + null !== (r = n.alternate) && null === gi(r) && (o = n), + (n = n.sibling); + null === (n = o) + ? ((o = t.child), (t.child = null)) + : ((o = n.sibling), (n.sibling = null)), + Ma(t, !1, o, n, i); + break; + case 'backwards': + for (n = null, o = t.child, t.child = null; null !== o; ) { + if (null !== (r = o.alternate) && null === gi(r)) { + t.child = o; + break; + } + (r = o.sibling), (o.sibling = n), (n = o), (o = r); + } + Ma(t, !0, n, null, i); + break; + case 'together': + Ma(t, !1, null, null, void 0); + break; + default: + t.memoizedState = null; + } + return t.child; + } + function Sa(e, t, n) { + if ( + (null !== e && (t.dependencies = e.dependencies), + t.childExpirationTime < n) + ) + return null; + if (null !== e && t.child !== e.child) throw a(Error(153)); + if (null !== t.child) { + for ( + n = ic((e = t.child), e.pendingProps, e.expirationTime), + t.child = n, + n.return = t; + null !== e.sibling; + + ) + (e = e.sibling), + ((n = n.sibling = ic( + e, + e.pendingProps, + e.expirationTime + )).return = t); + n.sibling = null; + } + return t.child; + } + function Oa(e) { + e.effectTag |= 4; + } + var Ea = void 0, + Aa = void 0, + Ta = void 0, + Ca = void 0; + function La(e, t) { + switch (e.tailMode) { + case 'hidden': + t = e.tail; + for (var n = null; null !== t; ) + null !== t.alternate && (n = t), (t = t.sibling); + null === n ? (e.tail = null) : (n.sibling = null); + break; + case 'collapsed': + n = e.tail; + for (var r = null; null !== n; ) + null !== n.alternate && (r = n), (n = n.sibling); + null === r + ? t || null === e.tail + ? (e.tail = null) + : (e.tail.sibling = null) + : (r.sibling = null); + } + } + function Pa(e) { + switch (e.tag) { + case 1: + Ir(e.type) && Fr(); + var t = e.effectTag; + return 2048 & t ? ((e.effectTag = (-2049 & t) | 64), e) : null; + case 3: + if ((ci(), qr(), 0 != (64 & (t = e.effectTag)))) + throw a(Error(285)); + return (e.effectTag = (-2049 & t) | 64), e; + case 5: + return li(e), null; + case 13: return ( - delete o.onEnter, - delete o.onEntering, - delete o.onEntered, - delete o.onExit, - delete o.onExiting, - delete o.onExited, - r.default.createElement( - i.default, - o, - n - ? r.default.cloneElement(s, { - key: 'first', - onEnter: this.handleEnter, - onEntering: this.handleEntering, - onEntered: this.handleEntered - }) - : r.default.cloneElement(c, { - key: 'second', - onEnter: this.handleExit, - onEntering: this.handleExiting, - onEntered: this.handleExited - }) - ) + Lr(hi), + 2048 & (t = e.effectTag) + ? ((e.effectTag = (-2049 & t) | 64), e) + : null ); - }), - a - ); - })(r.default.Component); - s.propTypes = {}; - var c = s; - (t.default = c), (e.exports = t.default); - }, - function(e, t, n) { - 'use strict'; - (t.__esModule = !0), - (t.getChildMapping = o), - (t.mergeChildMappings = i), - (t.getInitialChildMapping = function(e, t) { - return o(e.children, function(n) { - return (0, - r.cloneElement)(n, { onExited: t.bind(null, n), in: !0, appear: a(n, 'appear', e), enter: a(n, 'enter', e), exit: a(n, 'exit', e) }); - }); + case 18: + return null; + case 19: + return Lr(hi), null; + case 4: + return ci(), null; + case 10: + return Oo(e), null; + default: + return null; + } + } + function Da(e, t) { + return { value: e, source: t, stack: ft(t) }; + } + (Ea = function(e, t) { + for (var n = t.child; null !== n; ) { + if (5 === n.tag || 6 === n.tag) e.appendChild(n.stateNode); + else if (20 === n.tag) e.appendChild(n.stateNode.instance); + else if (4 !== n.tag && null !== n.child) { + (n.child.return = n), (n = n.child); + continue; + } + if (n === t) break; + for (; null === n.sibling; ) { + if (null === n.return || n.return === t) return; + n = n.return; + } + (n.sibling.return = n.return), (n = n.sibling); + } + }), + (Aa = function() {}), + (Ta = function(e, t, n, r, i) { + var a = e.memoizedProps; + if (a !== r) { + var s = t.stateNode; + switch ((ai(ri.current), (e = null), n)) { + case 'input': + (a = xt(s, a)), (r = xt(s, r)), (e = []); + break; + case 'option': + (a = tr(s, a)), (r = tr(s, r)), (e = []); + break; + case 'select': + (a = o({}, a, { value: void 0 })), + (r = o({}, r, { value: void 0 })), + (e = []); + break; + case 'textarea': + (a = rr(s, a)), (r = rr(s, r)), (e = []); + break; + default: + 'function' != typeof a.onClick && + 'function' == typeof r.onClick && + (s.onclick = wr); + } + yr(n, r), (s = n = void 0); + var c = null; + for (n in a) + if (!r.hasOwnProperty(n) && a.hasOwnProperty(n) && null != a[n]) + if ('style' === n) { + var u = a[n]; + for (s in u) + u.hasOwnProperty(s) && (c || (c = {}), (c[s] = '')); + } else + 'dangerouslySetInnerHTML' !== n && + 'children' !== n && + 'suppressContentEditableWarning' !== n && + 'suppressHydrationWarning' !== n && + 'autoFocus' !== n && + (p.hasOwnProperty(n) + ? e || (e = []) + : (e = e || []).push(n, null)); + for (n in r) { + var l = r[n]; + if ( + ((u = null != a ? a[n] : void 0), + r.hasOwnProperty(n) && l !== u && (null != l || null != u)) + ) + if ('style' === n) + if (u) { + for (s in u) + !u.hasOwnProperty(s) || + (l && l.hasOwnProperty(s)) || + (c || (c = {}), (c[s] = '')); + for (s in l) + l.hasOwnProperty(s) && + u[s] !== l[s] && + (c || (c = {}), (c[s] = l[s])); + } else c || (e || (e = []), e.push(n, c)), (c = l); + else + 'dangerouslySetInnerHTML' === n + ? ((l = l ? l.__html : void 0), + (u = u ? u.__html : void 0), + null != l && u !== l && (e = e || []).push(n, '' + l)) + : 'children' === n + ? u === l || + ('string' != typeof l && 'number' != typeof l) || + (e = e || []).push(n, '' + l) + : 'suppressContentEditableWarning' !== n && + 'suppressHydrationWarning' !== n && + (p.hasOwnProperty(n) + ? (null != l && _r(i, n), e || u === l || (e = [])) + : (e = e || []).push(n, l)); + } + c && (e = e || []).push('style', c), + (i = e), + (t.updateQueue = i) && Oa(t); + } }), - (t.getNextChildMapping = function(e, t, n) { - var s = o(e.children), - c = i(t, s); - return ( - Object.keys(c).forEach(function(o) { - var i = c[o]; - if ((0, r.isValidElement)(i)) { - var u = o in t, - l = o in s, - f = t[o], - d = (0, r.isValidElement)(f) && !f.props.in; - !l || (u && !d) - ? l || !u || d - ? l && - u && - (0, r.isValidElement)(f) && - (c[o] = (0, r.cloneElement)(i, { - onExited: n.bind(null, i), - in: f.props.in, - exit: a(i, 'exit', e), - enter: a(i, 'enter', e) - })) - : (c[o] = (0, r.cloneElement)(i, { in: !1 })) - : (c[o] = (0, r.cloneElement)(i, { - onExited: n.bind(null, i), - in: !0, - exit: a(i, 'exit', e), - enter: a(i, 'enter', e) - })); - } - }), - c - ); + (Ca = function(e, t, n, r) { + n !== r && Oa(t); }); - var r = n(0); - function o(e, t) { - var n = Object.create(null); - return ( - e && - r.Children.map(e, function(e) { - return e; - }).forEach(function(e) { - n[e.key] = (function(e) { - return t && (0, r.isValidElement)(e) ? t(e) : e; - })(e); - }), - n - ); + var ja = 'function' == typeof WeakSet ? WeakSet : Set; + function za(e, t) { + var n = t.source, + r = t.stack; + null === r && null !== n && (r = ft(n)), + null !== n && lt(n.type), + (t = t.value), + null !== e && 1 === e.tag && lt(e.type); + try { + console.error(t); + } catch (e) { + setTimeout(function() { + throw e; + }); + } } - function i(e, t) { - function n(n) { - return n in t ? t[n] : e[n]; + function Na(e) { + var t = e.ref; + if (null !== t) + if ('function' == typeof t) + try { + t(null); + } catch (t) { + $s(e, t); + } + else t.current = null; + } + function Ra(e, t, n) { + if (null !== (n = null !== (n = n.updateQueue) ? n.lastEffect : null)) { + var r = (n = n.next); + do { + if ((r.tag & e) !== mi) { + var o = r.destroy; + (r.destroy = void 0), void 0 !== o && o(); + } + (r.tag & t) !== mi && ((o = r.create), (r.destroy = o())), + (r = r.next); + } while (r !== n); } - (e = e || {}), (t = t || {}); - var r, - o = Object.create(null), - i = []; - for (var a in e) - a in t ? i.length && ((o[a] = i), (i = [])) : i.push(a); - var s = {}; - for (var c in t) { - if (o[c]) - for (r = 0; r < o[c].length; r++) { - var u = o[c][r]; - s[o[c][r]] = n(u); + } + function Ia(e, t) { + switch (('function' == typeof tc && tc(e), e.tag)) { + case 0: + case 11: + case 14: + case 15: + var n = e.updateQueue; + if (null !== n && null !== (n = n.lastEffect)) { + var r = n.next; + po(97 < t ? 97 : t, function() { + var t = r; + do { + var n = t.destroy; + if (void 0 !== n) { + var o = e; + try { + n(); + } catch (e) { + $s(o, e); + } + } + t = t.next; + } while (t !== r); + }); } - s[c] = n(c); + break; + case 1: + Na(e), + 'function' == typeof (t = e.stateNode).componentWillUnmount && + (function(e, t) { + try { + (t.props = e.memoizedProps), + (t.state = e.memoizedState), + t.componentWillUnmount(); + } catch (t) { + $s(e, t); + } + })(e, t); + break; + case 5: + Na(e); + break; + case 4: + Ha(e, t); } - for (r = 0; r < i.length; r++) s[i[r]] = n(i[r]); - return s; } - function a(e, t, n) { - return null != n[t] ? n[t] : e.props[t]; + function Fa(e, t) { + for (var n = e; ; ) + if ((Ia(n, t), null !== n.child && 4 !== n.tag)) + (n.child.return = n), (n = n.child); + else { + if (n === e) break; + for (; null === n.sibling; ) { + if (null === n.return || n.return === e) return; + n = n.return; + } + (n.sibling.return = n.return), (n = n.sibling); + } } - }, - function(e, t, n) { - var r = n(101), - o = n(205), - i = n(524), - a = n(527), - s = n(88), - c = n(22), - u = n(86), - l = n(108), - f = '[object Object]', - d = Object.prototype.hasOwnProperty; - e.exports = function(e, t, n, p, h, g) { - var m = c(e), - b = c(t), - y = m ? '[object Array]' : s(e), - v = b ? '[object Array]' : s(t), - _ = (y = '[object Arguments]' == y ? f : y) == f, - x = (v = '[object Arguments]' == v ? f : v) == f, - w = y == v; - if (w && u(e)) { - if (!u(t)) return !1; - (m = !0), (_ = !1); + function qa(e) { + return 5 === e.tag || 3 === e.tag || 4 === e.tag; + } + function Ba(e) { + e: { + for (var t = e.return; null !== t; ) { + if (qa(t)) { + var n = t; + break e; + } + t = t.return; + } + throw a(Error(160)); } - if (w && !_) - return ( - g || (g = new r()), - m || l(e) ? o(e, t, n, p, h, g) : i(e, t, y, n, p, h, g) - ); - if (!(1 & n)) { - var M = _ && d.call(e, '__wrapped__'), - k = x && d.call(t, '__wrapped__'); - if (M || k) { - var S = M ? e.value() : e, - A = k ? t.value() : t; - return g || (g = new r()), h(S, A, n, p, g); + switch (((t = n.stateNode), n.tag)) { + case 5: + var r = !1; + break; + case 3: + case 4: + (t = t.containerInfo), (r = !0); + break; + default: + throw a(Error(161)); + } + 16 & n.effectTag && (dr(t, ''), (n.effectTag &= -17)); + e: t: for (n = e; ; ) { + for (; null === n.sibling; ) { + if (null === n.return || qa(n.return)) { + n = null; + break e; + } + n = n.return; + } + for ( + n.sibling.return = n.return, n = n.sibling; + 5 !== n.tag && 6 !== n.tag && 18 !== n.tag; + + ) { + if (2 & n.effectTag) continue t; + if (null === n.child || 4 === n.tag) continue t; + (n.child.return = n), (n = n.child); + } + if (!(2 & n.effectTag)) { + n = n.stateNode; + break e; } } - return !!w && (g || (g = new r()), a(e, t, n, p, h, g)); - }; - }, - function(e, t, n) { - var r = n(134), - o = n(521), - i = n(522); - function a(e) { - var t = -1, - n = null == e ? 0 : e.length; - for (this.__data__ = new r(); ++t < n; ) this.add(e[t]); + for (var o = e; ; ) { + var i = 5 === o.tag || 6 === o.tag; + if (i || 20 === o.tag) { + var s = i ? o.stateNode : o.stateNode.instance; + if (n) + if (r) { + var c = s; + (s = n), + 8 === (i = t).nodeType + ? i.parentNode.insertBefore(c, s) + : i.insertBefore(c, s); + } else t.insertBefore(s, n); + else + r + ? (8 === (c = t).nodeType + ? (i = c.parentNode).insertBefore(s, c) + : (i = c).appendChild(s), + null != (c = c._reactRootContainer) || + null !== i.onclick || + (i.onclick = wr)) + : t.appendChild(s); + } else if (4 !== o.tag && null !== o.child) { + (o.child.return = o), (o = o.child); + continue; + } + if (o === e) break; + for (; null === o.sibling; ) { + if (null === o.return || o.return === e) return; + o = o.return; + } + (o.sibling.return = o.return), (o = o.sibling); + } } - (a.prototype.add = a.prototype.push = o), - (a.prototype.has = i), - (e.exports = a); - }, - function(e, t) { - e.exports = function(e) { - return this.__data__.set(e, '__lodash_hash_undefined__'), this; - }; - }, - function(e, t) { - e.exports = function(e) { - return this.__data__.has(e); - }; - }, - function(e, t) { - e.exports = function(e, t) { - return e.has(t); - }; - }, - function(e, t, n) { - var r = n(85), - o = n(190), - i = n(84), - a = n(205), - s = n(525), - c = n(526), - u = r ? r.prototype : void 0, - l = u ? u.valueOf : void 0; - e.exports = function(e, t, n, r, u, f, d) { - 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 || !f(new o(e), new o(t))); - case '[object Boolean]': - case '[object Date]': - case '[object Number]': - return i(+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 p = s; - case '[object Set]': - var h = 1 & r; - if ((p || (p = c), e.size != t.size && !h)) return !1; - var g = d.get(e); - if (g) return g == t; - (r |= 2), d.set(e, t); - var m = a(p(e), p(t), r, u, f, d); - return d.delete(e), m; - case '[object Symbol]': - if (l) return l.call(e) == l.call(t); + function Ha(e, t) { + for (var n = e, r = !1, o = void 0, i = void 0; ; ) { + if (!r) { + r = n.return; + e: for (;;) { + if (null === r) throw a(Error(160)); + switch (((o = r.stateNode), r.tag)) { + case 5: + i = !1; + break e; + case 3: + case 4: + (o = o.containerInfo), (i = !0); + break e; + } + r = r.return; + } + r = !0; + } + if (5 === n.tag || 6 === n.tag) + if ((Fa(n, t), i)) { + var s = o, + c = n.stateNode; + 8 === s.nodeType ? s.parentNode.removeChild(c) : s.removeChild(c); + } else o.removeChild(n.stateNode); + else if (20 === n.tag) + (c = n.stateNode.instance), + Fa(n, t), + i + ? 8 === (s = o).nodeType + ? s.parentNode.removeChild(c) + : s.removeChild(c) + : o.removeChild(c); + else if (4 === n.tag) { + if (null !== n.child) { + (o = n.stateNode.containerInfo), + (i = !0), + (n.child.return = n), + (n = n.child); + continue; + } + } else if ((Ia(n, t), null !== n.child)) { + (n.child.return = n), (n = n.child); + continue; + } + if (n === e) break; + for (; null === n.sibling; ) { + if (null === n.return || n.return === e) return; + 4 === (n = n.return).tag && (r = !1); + } + (n.sibling.return = n.return), (n = n.sibling); } - return !1; - }; - }, - function(e, t) { - e.exports = function(e) { - var t = -1, - n = Array(e.size); + } + function Ya(e, t) { + switch (t.tag) { + case 0: + case 11: + case 14: + case 15: + Ra(yi, vi, t); + break; + case 1: + break; + case 5: + var n = t.stateNode; + if (null != n) { + var r = t.memoizedProps, + o = null !== e ? e.memoizedProps : r; + e = t.type; + var i = t.updateQueue; + if (((t.updateQueue = null), null !== i)) { + for ( + n[z] = r, + 'input' === e && + 'radio' === r.type && + null != r.name && + kt(n, r), + vr(e, o), + t = vr(e, r), + o = 0; + o < i.length; + o += 2 + ) { + var s = i[o], + c = i[o + 1]; + 'style' === s + ? mr(n, c) + : 'dangerouslySetInnerHTML' === s + ? fr(n, c) + : 'children' === s + ? dr(n, c) + : _t(n, s, c, t); + } + switch (e) { + case 'input': + St(n, r); + break; + case 'textarea': + ir(n, r); + break; + case 'select': + (t = n._wrapperState.wasMultiple), + (n._wrapperState.wasMultiple = !!r.multiple), + null != (e = r.value) + ? nr(n, !!r.multiple, e, !1) + : t !== !!r.multiple && + (null != r.defaultValue + ? nr(n, !!r.multiple, r.defaultValue, !0) + : nr(n, !!r.multiple, r.multiple ? [] : '', !1)); + } + } + } + break; + case 6: + if (null === t.stateNode) throw a(Error(162)); + t.stateNode.nodeValue = t.memoizedProps; + break; + case 3: + case 12: + break; + case 13: + if ( + ((n = t), + null === t.memoizedState + ? (r = !1) + : ((r = !0), (n = t.child), (gs = uo())), + null !== n) + ) + e: for (e = n; ; ) { + if (5 === e.tag) + (i = e.stateNode), + r + ? 'function' == typeof (i = i.style).setProperty + ? i.setProperty('display', 'none', 'important') + : (i.display = 'none') + : ((i = e.stateNode), + (o = + null != (o = e.memoizedProps.style) && + o.hasOwnProperty('display') + ? o.display + : null), + (i.style.display = gr('display', o))); + else if (6 === e.tag) + e.stateNode.nodeValue = r ? '' : e.memoizedProps; + else { + if (13 === e.tag && null !== e.memoizedState) { + ((i = e.child.sibling).return = e), (e = i); + continue; + } + if (null !== e.child) { + (e.child.return = e), (e = e.child); + continue; + } + } + if (e === n) break e; + for (; null === e.sibling; ) { + if (null === e.return || e.return === n) break e; + e = e.return; + } + (e.sibling.return = e.return), (e = e.sibling); + } + Wa(t); + break; + case 19: + Wa(t); + break; + case 17: + case 20: + break; + default: + throw a(Error(163)); + } + } + function Wa(e) { + var t = e.updateQueue; + if (null !== t) { + e.updateQueue = null; + var n = e.stateNode; + null === n && (n = e.stateNode = new ja()), + t.forEach(function(t) { + var r = Js.bind(null, e, t); + n.has(t) || (n.add(t), t.then(r, r)); + }); + } + } + var Va = 'function' == typeof WeakMap ? WeakMap : Map; + function Ua(e, t, n) { + ((n = Do(n, null)).tag = 3), (n.payload = { element: null }); + var r = t.value; return ( - e.forEach(function(e, r) { - n[++t] = [r, e]; + (n.callback = function() { + ys || ((ys = !0), (vs = r)), za(e, t); }), n ); - }; - }, - function(e, t) { - e.exports = function(e) { - var t = -1, - n = Array(e.size); + } + function Xa(e, t, n) { + (n = Do(n, null)).tag = 3; + var r = e.type.getDerivedStateFromError; + if ('function' == typeof r) { + var o = t.value; + n.payload = function() { + return za(e, t), r(o); + }; + } + var i = e.stateNode; return ( - e.forEach(function(e) { - n[++t] = e; - }), + null !== i && + 'function' == typeof i.componentDidCatch && + (n.callback = function() { + 'function' != typeof r && + (null === _s ? (_s = new Set([this])) : _s.add(this), za(e, t)); + var n = t.stack; + this.componentDidCatch(t.value, { + componentStack: null !== n ? n : '' + }); + }), n ); - }; - }, - function(e, t, n) { - var r = n(207), - o = Object.prototype.hasOwnProperty; - e.exports = function(e, t, n, i, a, s) { - var c = 1 & n, - u = r(e), - l = u.length; - if (l != r(t).length && !c) return !1; - for (var f = l; f--; ) { - var d = u[f]; - if (!(c ? d in t : o.call(t, d))) return !1; - } - var p = s.get(e); - if (p && s.get(t)) return p == t; - var h = !0; - s.set(e, t), s.set(t, e); - for (var g = c; ++f < l; ) { - var m = e[(d = u[f])], - b = t[d]; - if (i) var y = c ? i(b, m, d, t, e, s) : i(m, b, d, e, t, s); - if (!(void 0 === y ? m === b || a(m, b, n, i, s) : y)) { - h = !1; - break; + } + var Ga = Math.ceil, + Ka = Ue.ReactCurrentDispatcher, + $a = Ue.ReactCurrentOwner, + Qa = 0, + Ja = 8, + Za = 16, + es = 32, + ts = 0, + ns = 1, + rs = 2, + os = 3, + is = 4, + as = Qa, + ss = null, + cs = null, + us = 0, + ls = ts, + fs = 1073741823, + ds = 1073741823, + ps = null, + hs = !1, + gs = 0, + ms = 500, + bs = null, + ys = !1, + vs = null, + _s = null, + ws = !1, + xs = null, + Ms = 90, + ks = 0, + Ss = null, + Os = 0, + Es = null, + As = 0; + function Ts() { + return (as & (Za | es)) !== Qa + ? 1073741821 - ((uo() / 10) | 0) + : 0 !== As + ? As + : (As = 1073741821 - ((uo() / 10) | 0)); + } + function Cs(e, t, n) { + if (0 == (2 & (t = t.mode))) return 1073741823; + var r = lo(); + if (0 == (4 & t)) return 99 === r ? 1073741823 : 1073741822; + if ((as & Za) !== Qa) return us; + if (null !== n) + e = + 1073741821 - + 25 * + (1 + + (((1073741821 - e + (0 | n.timeoutMs || 5e3) / 10) / 25) | 0)); + else + switch (r) { + case 99: + e = 1073741823; + break; + case 98: + e = 1073741821 - 10 * (1 + (((1073741821 - e + 15) / 10) | 0)); + break; + case 97: + case 96: + e = 1073741821 - 25 * (1 + (((1073741821 - e + 500) / 25) | 0)); + break; + case 95: + e = 1; + break; + default: + throw a(Error(326)); + } + return null !== ss && e === us && --e, e; + } + var Ls = 0; + function Ps(e, t) { + if (50 < Os) throw ((Os = 0), (Es = null), a(Error(185))); + if (null !== (e = Ds(e, t))) { + e.pingTime = 0; + var n = lo(); + if (1073741823 === t) + if ((as & Ja) !== Qa && (as & (Za | es)) === Qa) + for (var r = Bs(e, 1073741823, !0); null !== r; ) r = r(!0); + else js(e, 99, 1073741823), as === Qa && mo(); + else js(e, n, t); + (4 & as) === Qa || + (98 !== n && 99 !== n) || + (null === Ss + ? (Ss = new Map([[e, t]])) + : (void 0 === (n = Ss.get(e)) || n > t) && Ss.set(e, t)); + } + } + function Ds(e, t) { + e.expirationTime < t && (e.expirationTime = t); + var n = e.alternate; + null !== n && n.expirationTime < t && (n.expirationTime = t); + var r = e.return, + o = null; + if (null === r && 3 === e.tag) o = e.stateNode; + else + for (; null !== r; ) { + if ( + ((n = r.alternate), + r.childExpirationTime < t && (r.childExpirationTime = t), + null !== n && + n.childExpirationTime < t && + (n.childExpirationTime = t), + null === r.return && 3 === r.tag) + ) { + o = r.stateNode; + break; + } + r = r.return; } - g || (g = 'constructor' == d); + return ( + null !== o && + (t > o.firstPendingTime && (o.firstPendingTime = t), + 0 === (e = o.lastPendingTime) || t < e) && + (o.lastPendingTime = t), + o + ); + } + function js(e, t, n) { + if (e.callbackExpirationTime < n) { + var r = e.callbackNode; + null !== r && r !== ro && Xr(r), + (e.callbackExpirationTime = n), + 1073741823 === n + ? (e.callbackNode = go(zs.bind(null, e, Bs.bind(null, e, n)))) + : ((r = null), + 1 !== n && (r = { timeout: 10 * (1073741821 - n) - uo() }), + (e.callbackNode = ho( + t, + zs.bind(null, e, Bs.bind(null, e, n)), + r + ))); } - if (h && !g) { - var v = e.constructor, - _ = t.constructor; - v == _ || - !('constructor' in e) || - !('constructor' in t) || - ('function' == typeof v && - v instanceof v && - 'function' == typeof _ && - _ instanceof _) || - (h = !1); + } + function zs(e, t, n) { + var r = e.callbackNode, + o = null; + try { + return null !== (o = t(n)) ? zs.bind(null, e, o) : null; + } finally { + null === o && + r === e.callbackNode && + ((e.callbackNode = null), (e.callbackExpirationTime = 0)); } - return s.delete(e), s.delete(t), h; - }; - }, - function(e, t) { - e.exports = function(e, t) { - for ( - var n = -1, r = null == e ? 0 : e.length, o = 0, i = []; - ++n < r; - - ) { - var a = e[n]; - t(a, n, e) && (i[o++] = a); + } + function Ns() { + (as & (1 | Za | es)) === Qa && + ((function() { + if (null !== Ss) { + var e = Ss; + (Ss = null), + e.forEach(function(e, t) { + go(Bs.bind(null, t, e)); + }), + mo(); + } + })(), + Xs()); + } + function Rs(e, t) { + var n = as; + as |= 1; + try { + return e(t); + } finally { + (as = n) === Qa && mo(); } - return i; - }; - }, - function(e, t, n) { - var r = n(193)(Object.keys, Object); - e.exports = r; - }, - function(e, t, n) { - var r = n(54)(n(36), 'DataView'); - e.exports = r; - }, - function(e, t, n) { - var r = n(54)(n(36), 'Promise'); - e.exports = r; - }, - function(e, t, n) { - var r = n(54)(n(36), 'Set'); - e.exports = r; - }, - function(e, t, n) { - var r = n(54)(n(36), 'WeakMap'); - e.exports = r; - }, - function(e, t, n) { - var r = (function(e) { - 'use strict'; - var t = Object.prototype, - n = t.hasOwnProperty, - r = 'function' == typeof Symbol ? Symbol : {}, - o = r.iterator || '@@iterator', - i = r.asyncIterator || '@@asyncIterator', - a = r.toStringTag || '@@toStringTag'; - function s(e, t, n, r) { - var o = t && t.prototype instanceof l ? t : l, - i = Object.create(o.prototype), - a = new w(r || []); - return ( - (i._invoke = (function(e, t, n) { - var r = 'suspendedStart'; - return function(o, i) { - if ('executing' === r) - throw new Error('Generator is already running'); - if ('completed' === r) { - if ('throw' === o) throw i; - return k(); + } + function Is(e, t, n, r) { + var o = as; + as |= 4; + try { + return po(98, e.bind(null, t, n, r)); + } finally { + (as = o) === Qa && mo(); + } + } + function Fs(e, t) { + var n = as; + (as &= -2), (as |= Ja); + try { + return e(t); + } finally { + (as = n) === Qa && mo(); + } + } + function qs(e, t) { + (e.finishedWork = null), (e.finishedExpirationTime = 0); + var n = e.timeoutHandle; + if ((-1 !== n && ((e.timeoutHandle = -1), Er(n)), null !== cs)) + for (n = cs.return; null !== n; ) { + var r = n; + switch (r.tag) { + case 1: + var o = r.type.childContextTypes; + null != o && Fr(); + break; + case 3: + ci(), qr(); + break; + case 5: + li(r); + break; + case 4: + ci(); + break; + case 13: + case 19: + Lr(hi); + break; + case 10: + Oo(r); + } + n = n.return; + } + (ss = e), + (cs = ic(e.current, null)), + (us = t), + (ls = ts), + (ds = fs = 1073741823), + (ps = null), + (hs = !1); + } + function Bs(e, t, n) { + if ((as & (Za | es)) !== Qa) throw a(Error(327)); + if (e.firstPendingTime < t) return null; + if (n && e.finishedExpirationTime === t) return Vs.bind(null, e); + if ((Xs(), e !== ss || t !== us)) qs(e, t); + else if (ls === os) + if (hs) qs(e, t); + else { + var r = e.lastPendingTime; + if (r < t) return Bs.bind(null, e, r); + } + if (null !== cs) { + (r = as), (as |= Za); + var o = Ka.current; + if ((null === o && (o = Ji), (Ka.current = Ji), n)) { + if (1073741823 !== t) { + var i = Ts(); + if (i < t) + return (as = r), ko(), (Ka.current = o), Bs.bind(null, e, i); + } + } else As = 0; + for (;;) + try { + if (n) for (; null !== cs; ) cs = Ys(cs); + else for (; null !== cs && !Gr(); ) cs = Ys(cs); + break; + } catch (n) { + if ((ko(), Bi(), null === (i = cs) || null === i.return)) + throw (qs(e, t), (as = r), n); + e: { + var s = e, + c = i.return, + u = i, + l = n, + f = us; + if ( + ((u.effectTag |= 1024), + (u.firstEffect = u.lastEffect = null), + null !== l && + 'object' == typeof l && + 'function' == typeof l.then) + ) { + var d = l, + p = 0 != (hi.current & di); + l = c; + do { + var h; + if ( + ((h = 13 === l.tag) && + (null !== l.memoizedState + ? (h = !1) + : (h = + void 0 !== (h = l.memoizedProps).fallback && + (!0 !== h.unstable_avoidThisFallback || !p))), + h) + ) { + if ( + (null === (c = l.updateQueue) + ? ((c = new Set()).add(d), (l.updateQueue = c)) + : c.add(d), + 0 == (2 & l.mode)) + ) { + (l.effectTag |= 64), + (u.effectTag &= -1957), + 1 === u.tag && + (null === u.alternate + ? (u.tag = 17) + : (((f = Do(1073741823, null)).tag = 2), + zo(u, f))), + (u.expirationTime = 1073741823); + break e; + } + (u = s), + (s = f), + null === (p = u.pingCache) + ? ((p = u.pingCache = new Va()), + (c = new Set()), + p.set(d, c)) + : void 0 === (c = p.get(d)) && + ((c = new Set()), p.set(d, c)), + c.has(s) || + (c.add(s), + (u = Qs.bind(null, u, d, s)), + d.then(u, u)), + (l.effectTag |= 2048), + (l.expirationTime = f); + break e; + } + l = l.return; + } while (null !== l); + l = Error( + (lt(u.type) || 'A React component') + + ' suspended while rendering, but no fallback UI was specified.\n\nAdd a component higher in the tree to provide a loading indicator or placeholder to display.' + + ft(u) + ); } - for (n.method = o, n.arg = i; ; ) { - var a = n.delegate; - if (a) { - var s = v(a, n); - if (s) { - if (s === u) continue; - return s; + ls !== is && (ls = ns), (l = Da(l, u)), (u = c); + do { + switch (u.tag) { + case 3: + (u.effectTag |= 2048), + (u.expirationTime = f), + No(u, (f = Ua(u, l, f))); + break e; + case 1: + if ( + ((d = l), + (s = u.type), + (c = u.stateNode), + 0 == (64 & u.effectTag) && + ('function' == typeof s.getDerivedStateFromError || + (null !== c && + 'function' == typeof c.componentDidCatch && + (null === _s || !_s.has(c))))) + ) { + (u.effectTag |= 2048), + (u.expirationTime = f), + No(u, (f = Xa(u, d, f))); + break e; + } + } + u = u.return; + } while (null !== u); + } + cs = Ws(i); + } + if (((as = r), ko(), (Ka.current = o), null !== cs)) + return Bs.bind(null, e, t); + } + if ( + ((e.finishedWork = e.current.alternate), + (e.finishedExpirationTime = t), + (function(e, t) { + var n = e.firstBatch; + return ( + !!(null !== n && n._defer && n._expirationTime >= t) && + (ho(97, function() { + return n._onComplete(), null; + }), + !0) + ); + })(e, t)) + ) + return null; + switch (((ss = null), ls)) { + case ts: + throw a(Error(328)); + case ns: + return (r = e.lastPendingTime) < t + ? Bs.bind(null, e, r) + : n + ? Vs.bind(null, e) + : (qs(e, t), go(Bs.bind(null, e, t)), null); + case rs: + return 1073741823 === fs && !n && 10 < (n = gs + ms - uo()) + ? hs + ? (qs(e, t), Bs.bind(null, e, t)) + : (r = e.lastPendingTime) < t + ? Bs.bind(null, e, r) + : ((e.timeoutHandle = Or(Vs.bind(null, e), n)), null) + : Vs.bind(null, e); + case os: + if (!n) { + if (hs) return qs(e, t), Bs.bind(null, e, t); + if ((n = e.lastPendingTime) < t) return Bs.bind(null, e, n); + if ( + (1073741823 !== ds + ? (n = 10 * (1073741821 - ds) - uo()) + : 1073741823 === fs + ? (n = 0) + : ((n = 10 * (1073741821 - fs) - 5e3), + 0 > (n = (r = uo()) - n) && (n = 0), + (t = 10 * (1073741821 - t) - r) < + (n = + (120 > n + ? 120 + : 480 > n + ? 480 + : 1080 > n + ? 1080 + : 1920 > n + ? 1920 + : 3e3 > n + ? 3e3 + : 4320 > n + ? 4320 + : 1960 * Ga(n / 1960)) - n) && (n = t)), + 10 < n) + ) + return (e.timeoutHandle = Or(Vs.bind(null, e), n)), null; + } + return Vs.bind(null, e); + case is: + return !n && + 1073741823 !== fs && + null !== ps && + ((r = fs), + 0 >= (t = 0 | (o = ps).busyMinDurationMs) + ? (t = 0) + : ((n = 0 | o.busyDelayMs), + (t = + (r = + uo() - + (10 * (1073741821 - r) - (0 | o.timeoutMs || 5e3))) <= n + ? 0 + : n + t - r)), + 10 < t) + ? ((e.timeoutHandle = Or(Vs.bind(null, e), t)), null) + : Vs.bind(null, e); + default: + throw a(Error(329)); + } + } + function Hs(e, t) { + e < fs && 1 < e && (fs = e), + null !== t && e < ds && 1 < e && ((ds = e), (ps = t)); + } + function Ys(e) { + var t = Zs(e.alternate, e, us); + return ( + (e.memoizedProps = e.pendingProps), + null === t && (t = Ws(e)), + ($a.current = null), + t + ); + } + function Ws(e) { + cs = e; + do { + var t = cs.alternate; + if (((e = cs.return), 0 == (1024 & cs.effectTag))) { + e: { + var n = t, + r = us, + i = (t = cs).pendingProps; + switch (t.tag) { + case 2: + case 16: + break; + case 15: + case 0: + break; + case 1: + Ir(t.type) && Fr(); + break; + case 3: + ci(), + qr(), + (r = t.stateNode).pendingContext && + ((r.context = r.pendingContext), + (r.pendingContext = null)), + (null !== n && null !== n.child) || + (ca(t), (t.effectTag &= -3)), + Aa(t); + break; + case 5: + li(t), (r = ai(ii.current)); + var s = t.type; + if (null !== n && null != t.stateNode) + Ta(n, t, s, i, r), n.ref !== t.ref && (t.effectTag |= 128); + else if (i) { + var c = ai(ri.current); + if (ca(t)) { + (i = void 0), (s = (n = t).stateNode); + var u = n.type, + l = n.memoizedProps; + switch (((s[j] = n), (s[z] = l), u)) { + case 'iframe': + case 'object': + case 'embed': + zn('load', s); + break; + case 'video': + case 'audio': + for (var f = 0; f < ne.length; f++) zn(ne[f], s); + break; + case 'source': + zn('error', s); + break; + case 'img': + case 'image': + case 'link': + zn('error', s), zn('load', s); + break; + case 'form': + zn('reset', s), zn('submit', s); + break; + case 'details': + zn('toggle', s); + break; + case 'input': + Mt(s, l), zn('invalid', s), _r(r, 'onChange'); + break; + case 'select': + (s._wrapperState = { wasMultiple: !!l.multiple }), + zn('invalid', s), + _r(r, 'onChange'); + break; + case 'textarea': + or(s, l), zn('invalid', s), _r(r, 'onChange'); + } + for (i in (yr(u, l), (f = null), l)) + l.hasOwnProperty(i) && + ((c = l[i]), + 'children' === i + ? 'string' == typeof c + ? s.textContent !== c && (f = ['children', c]) + : 'number' == typeof c && + s.textContent !== '' + c && + (f = ['children', '' + c]) + : p.hasOwnProperty(i) && null != c && _r(r, i)); + switch (u) { + case 'input': + We(s), Ot(s, l, !0); + break; + case 'textarea': + We(s), ar(s); + break; + case 'select': + case 'option': + break; + default: + 'function' == typeof l.onClick && (s.onclick = wr); + } + (r = f), (n.updateQueue = r), null !== r && Oa(t); + } else { + (l = s), + (n = i), + (u = t), + (f = 9 === r.nodeType ? r : r.ownerDocument), + c === sr.html && (c = cr(l)), + c === sr.html + ? 'script' === l + ? (((l = f.createElement('div')).innerHTML = + ''), + (f = l.removeChild(l.firstChild))) + : 'string' == typeof n.is + ? (f = f.createElement(l, { is: n.is })) + : ((f = f.createElement(l)), + 'select' === l && + ((l = f), + n.multiple + ? (l.multiple = !0) + : n.size && (l.size = n.size))) + : (f = f.createElementNS(c, l)), + ((l = f)[j] = u), + (l[z] = n), + Ea((n = l), t, !1, !1), + (u = n); + var d = r, + h = vr(s, i); + switch (s) { + case 'iframe': + case 'object': + case 'embed': + zn('load', u), (r = i); + break; + case 'video': + case 'audio': + for (r = 0; r < ne.length; r++) zn(ne[r], u); + r = i; + break; + case 'source': + zn('error', u), (r = i); + break; + case 'img': + case 'image': + case 'link': + zn('error', u), zn('load', u), (r = i); + break; + case 'form': + zn('reset', u), zn('submit', u), (r = i); + break; + case 'details': + zn('toggle', u), (r = i); + break; + case 'input': + Mt(u, i), + (r = xt(u, i)), + zn('invalid', u), + _r(d, 'onChange'); + break; + case 'option': + r = tr(u, i); + break; + case 'select': + (u._wrapperState = { wasMultiple: !!i.multiple }), + (r = o({}, i, { value: void 0 })), + zn('invalid', u), + _r(d, 'onChange'); + break; + case 'textarea': + or(u, i), + (r = rr(u, i)), + zn('invalid', u), + _r(d, 'onChange'); + break; + default: + r = i; + } + yr(s, r), (l = void 0), (f = s), (c = u); + var g = r; + for (l in g) + if (g.hasOwnProperty(l)) { + var m = g[l]; + 'style' === l + ? mr(c, m) + : 'dangerouslySetInnerHTML' === l + ? null != (m = m ? m.__html : void 0) && fr(c, m) + : 'children' === l + ? 'string' == typeof m + ? ('textarea' !== f || '' !== m) && dr(c, m) + : 'number' == typeof m && dr(c, '' + m) + : 'suppressContentEditableWarning' !== l && + 'suppressHydrationWarning' !== l && + 'autoFocus' !== l && + (p.hasOwnProperty(l) + ? null != m && _r(d, l) + : null != m && _t(c, l, m, h)); + } + switch (s) { + case 'input': + We(u), Ot(u, i, !1); + break; + case 'textarea': + We(u), ar(u); + break; + case 'option': + null != i.value && + u.setAttribute('value', '' + wt(i.value)); + break; + case 'select': + (r = u), + (u = i), + (r.multiple = !!u.multiple), + null != (l = u.value) + ? nr(r, !!u.multiple, l, !1) + : null != u.defaultValue && + nr(r, !!u.multiple, u.defaultValue, !0); + break; + default: + 'function' == typeof r.onClick && (u.onclick = wr); + } + kr(s, i) && Oa(t), (t.stateNode = n); + } + null !== t.ref && (t.effectTag |= 128); + } else if (null === t.stateNode) throw a(Error(166)); + break; + case 6: + if (n && null != t.stateNode) Ca(n, t, n.memoizedProps, i); + else { + if ('string' != typeof i && null === t.stateNode) + throw a(Error(166)); + (n = ai(ii.current)), + ai(ri.current), + ca(t) + ? ((r = t.stateNode), + (n = t.memoizedProps), + (r[j] = t), + r.nodeValue !== n && Oa(t)) + : ((r = t), + ((n = (9 === n.nodeType + ? n + : n.ownerDocument + ).createTextNode(i))[j] = t), + (r.stateNode = n)); + } + break; + case 11: + break; + case 13: + if ( + (Lr(hi), (i = t.memoizedState), 0 != (64 & t.effectTag)) + ) { + t.expirationTime = r; + break e; + } + (r = null !== i), + (i = !1), + null === n + ? ca(t) + : ((i = null !== (s = n.memoizedState)), + r || + null === s || + (null !== (s = n.child.sibling) && + (null !== (u = t.firstEffect) + ? ((t.firstEffect = s), (s.nextEffect = u)) + : ((t.firstEffect = t.lastEffect = s), + (s.nextEffect = null)), + (s.effectTag = 8)))), + r && + !i && + 0 != (2 & t.mode) && + ((null === n && + !0 !== t.memoizedProps.unstable_avoidThisFallback) || + 0 != (hi.current & di) + ? ls === ts && (ls = rs) + : (ls !== ts && ls !== rs) || (ls = os)), + (r || i) && (t.effectTag |= 4); + break; + case 7: + case 8: + case 12: + break; + case 4: + ci(), Aa(t); + break; + case 10: + Oo(t); + break; + case 9: + case 14: + break; + case 17: + Ir(t.type) && Fr(); + break; + case 18: + break; + case 19: + if ((Lr(hi), null === (i = t.memoizedState))) break; + if ( + ((s = 0 != (64 & t.effectTag)), null === (u = i.rendering)) + ) { + if (s) La(i, !1); + else if ( + ls !== ts || + (null !== n && 0 != (64 & n.effectTag)) + ) + for (n = t.child; null !== n; ) { + if (null !== (u = gi(n))) { + for ( + t.effectTag |= 64, + La(i, !1), + null !== (n = u.updateQueue) && + ((t.updateQueue = n), (t.effectTag |= 4)), + t.firstEffect = t.lastEffect = null, + n = t.child; + null !== n; + + ) + (s = r), + ((i = n).effectTag &= 2), + (i.nextEffect = null), + (i.firstEffect = null), + (i.lastEffect = null), + null === (u = i.alternate) + ? ((i.childExpirationTime = 0), + (i.expirationTime = s), + (i.child = null), + (i.memoizedProps = null), + (i.memoizedState = null), + (i.updateQueue = null), + (i.dependencies = null)) + : ((i.childExpirationTime = + u.childExpirationTime), + (i.expirationTime = u.expirationTime), + (i.child = u.child), + (i.memoizedProps = u.memoizedProps), + (i.memoizedState = u.memoizedState), + (i.updateQueue = u.updateQueue), + (s = u.dependencies), + (i.dependencies = + null === s + ? null + : { + expirationTime: s.expirationTime, + firstContext: s.firstContext, + responders: s.responders + })), + (n = n.sibling); + Pr(hi, (hi.current & fi) | pi), (t = t.child); + break e; + } + n = n.sibling; + } + } else { + if (!s) + if (null !== (n = gi(u))) { + if ( + ((t.effectTag |= 64), + (s = !0), + La(i, !0), + null === i.tail && 'hidden' === i.tailMode) + ) { + null !== (r = n.updateQueue) && + ((t.updateQueue = r), (t.effectTag |= 4)), + null !== (t = t.lastEffect = i.lastEffect) && + (t.nextEffect = null); + break; + } + } else + uo() > i.tailExpiration && + 1 < r && + ((t.effectTag |= 64), + (s = !0), + La(i, !1), + (t.expirationTime = t.childExpirationTime = r - 1)); + i.isBackwards + ? ((u.sibling = t.child), (t.child = u)) + : (null !== (r = i.last) + ? (r.sibling = u) + : (t.child = u), + (i.last = u)); + } + if (null !== i.tail) { + 0 === i.tailExpiration && (i.tailExpiration = uo() + 500), + (r = i.tail), + (i.rendering = r), + (i.tail = r.sibling), + (i.lastEffect = t.lastEffect), + (r.sibling = null), + (n = hi.current), + Pr(hi, (n = s ? (n & fi) | pi : n & fi)), + (t = r); + break e; + } + break; + case 20: + break; + default: + throw a(Error(156)); + } + t = null; + } + if (((r = cs), 1 === us || 1 !== r.childExpirationTime)) { + for (n = 0, i = r.child; null !== i; ) + (s = i.expirationTime) > n && (n = s), + (u = i.childExpirationTime) > n && (n = u), + (i = i.sibling); + r.childExpirationTime = n; + } + if (null !== t) return t; + null !== e && + 0 == (1024 & e.effectTag) && + (null === e.firstEffect && (e.firstEffect = cs.firstEffect), + null !== cs.lastEffect && + (null !== e.lastEffect && + (e.lastEffect.nextEffect = cs.firstEffect), + (e.lastEffect = cs.lastEffect)), + 1 < cs.effectTag && + (null !== e.lastEffect + ? (e.lastEffect.nextEffect = cs) + : (e.firstEffect = cs), + (e.lastEffect = cs))); + } else { + if (null !== (t = Pa(cs))) return (t.effectTag &= 1023), t; + null !== e && + ((e.firstEffect = e.lastEffect = null), (e.effectTag |= 1024)); + } + if (null !== (t = cs.sibling)) return t; + cs = e; + } while (null !== cs); + return ls === ts && (ls = is), null; + } + function Vs(e) { + var t = lo(); + return ( + po(99, Us.bind(null, e, t)), + null !== xs && + ho(97, function() { + return Xs(), null; + }), + null + ); + } + function Us(e, t) { + if ((Xs(), (as & (Za | es)) !== Qa)) throw a(Error(327)); + var n = e.finishedWork, + r = e.finishedExpirationTime; + if (null === n) return null; + if ( + ((e.finishedWork = null), + (e.finishedExpirationTime = 0), + n === e.current) + ) + throw a(Error(177)); + (e.callbackNode = null), (e.callbackExpirationTime = 0); + var o = n.expirationTime, + i = n.childExpirationTime; + if ( + ((o = i > o ? i : o), + (e.firstPendingTime = o), + o < e.lastPendingTime && (e.lastPendingTime = o), + e === ss && ((cs = ss = null), (us = 0)), + 1 < n.effectTag + ? null !== n.lastEffect + ? ((n.lastEffect.nextEffect = n), (o = n.firstEffect)) + : (o = n) + : (o = n.firstEffect), + null !== o) + ) { + (i = as), (as |= es), ($a.current = null), (xr = jn); + var s = Vn(); + if (Un(s)) { + if ('selectionStart' in s) + var c = { start: s.selectionStart, end: s.selectionEnd }; + else + e: { + var u = + (c = ((c = s.ownerDocument) && c.defaultView) || window) + .getSelection && c.getSelection(); + if (u && 0 !== u.rangeCount) { + c = u.anchorNode; + var l = u.anchorOffset, + f = u.focusNode; + u = u.focusOffset; + try { + c.nodeType, f.nodeType; + } catch (e) { + c = null; + break e; + } + var d = 0, + p = -1, + h = -1, + g = 0, + m = 0, + b = s, + y = null; + t: for (;;) { + for ( + var v; + b !== c || (0 !== l && 3 !== b.nodeType) || (p = d + l), + b !== f || (0 !== u && 3 !== b.nodeType) || (h = d + u), + 3 === b.nodeType && (d += b.nodeValue.length), + null !== (v = b.firstChild); + + ) + (y = b), (b = v); + for (;;) { + if (b === s) break t; + if ( + (y === c && ++g === l && (p = d), + y === f && ++m === u && (h = d), + null !== (v = b.nextSibling)) + ) + break; + y = (b = y).parentNode; } + b = v; } - if ('next' === n.method) n.sent = n._sent = n.arg; - else if ('throw' === n.method) { - if ('suspendedStart' === r) - throw ((r = 'completed'), n.arg); - n.dispatchException(n.arg); - } else 'return' === n.method && n.abrupt('return', n.arg); - r = 'executing'; - var l = c(e, t, n); - if ('normal' === l.type) { - if ( - ((r = n.done ? 'completed' : 'suspendedYield'), - l.arg === u) - ) - continue; - return { value: l.arg, done: n.done }; + c = -1 === p || -1 === h ? null : { start: p, end: h }; + } else c = null; + } + c = c || { start: 0, end: 0 }; + } else c = null; + (Mr = { focusedElem: s, selectionRange: c }), (jn = !1), (bs = o); + do { + try { + for (; null !== bs; ) { + if (0 != (256 & bs.effectTag)) { + var _ = bs.alternate; + switch ((s = bs).tag) { + case 0: + case 11: + case 15: + Ra(bi, mi, s); + break; + case 1: + if (256 & s.effectTag && null !== _) { + var w = _.memoizedProps, + x = _.memoizedState, + M = s.stateNode, + k = M.getSnapshotBeforeUpdate( + s.elementType === s.type ? w : vo(s.type, w), + x + ); + M.__reactInternalSnapshotBeforeUpdate = k; + } + break; + case 3: + case 5: + case 6: + case 4: + case 17: + break; + default: + throw a(Error(163)); } - 'throw' === l.type && - ((r = 'completed'), (n.method = 'throw'), (n.arg = l.arg)); } - }; - })(e, n, a)), - i - ); - } - function c(e, t, n) { - try { - return { type: 'normal', arg: e.call(t, n) }; - } catch (e) { - return { type: 'throw', arg: e }; + bs = bs.nextEffect; + } + } catch (e) { + if (null === bs) throw a(Error(330)); + $s(bs, e), (bs = bs.nextEffect); + } + } while (null !== bs); + bs = o; + do { + try { + for (_ = t; null !== bs; ) { + var S = bs.effectTag; + if ((16 & S && dr(bs.stateNode, ''), 128 & S)) { + var O = bs.alternate; + if (null !== O) { + var E = O.ref; + null !== E && + ('function' == typeof E ? E(null) : (E.current = null)); + } + } + switch (14 & S) { + case 2: + Ba(bs), (bs.effectTag &= -3); + break; + case 6: + Ba(bs), (bs.effectTag &= -3), Ya(bs.alternate, bs); + break; + case 4: + Ya(bs.alternate, bs); + break; + case 8: + Ha((w = bs), _), + (w.return = null), + (w.child = null), + (w.memoizedState = null), + (w.updateQueue = null), + (w.dependencies = null); + var A = w.alternate; + null !== A && + ((A.return = null), + (A.child = null), + (A.memoizedState = null), + (A.updateQueue = null), + (A.dependencies = null)); + } + bs = bs.nextEffect; + } + } catch (e) { + if (null === bs) throw a(Error(330)); + $s(bs, e), (bs = bs.nextEffect); + } + } while (null !== bs); + if ( + ((E = Mr), + (O = Vn()), + (S = E.focusedElem), + (_ = E.selectionRange), + O !== S && + S && + S.ownerDocument && + (function e(t, n) { + return ( + !(!t || !n) && + (t === n || + ((!t || 3 !== t.nodeType) && + (n && 3 === n.nodeType + ? e(t, n.parentNode) + : 'contains' in t + ? t.contains(n) + : !!t.compareDocumentPosition && + !!(16 & t.compareDocumentPosition(n))))) + ); + })(S.ownerDocument.documentElement, S)) + ) { + null !== _ && + Un(S) && + ((O = _.start), + void 0 === (E = _.end) && (E = O), + 'selectionStart' in S + ? ((S.selectionStart = O), + (S.selectionEnd = Math.min(E, S.value.length))) + : (E = + ((O = S.ownerDocument || document) && O.defaultView) || + window).getSelection && + ((E = E.getSelection()), + (w = S.textContent.length), + (A = Math.min(_.start, w)), + (_ = void 0 === _.end ? A : Math.min(_.end, w)), + !E.extend && A > _ && ((w = _), (_ = A), (A = w)), + (w = Wn(S, A)), + (x = Wn(S, _)), + w && + x && + (1 !== E.rangeCount || + E.anchorNode !== w.node || + E.anchorOffset !== w.offset || + E.focusNode !== x.node || + E.focusOffset !== x.offset) && + ((O = O.createRange()).setStart(w.node, w.offset), + E.removeAllRanges(), + A > _ + ? (E.addRange(O), E.extend(x.node, x.offset)) + : (O.setEnd(x.node, x.offset), E.addRange(O))))), + (O = []); + for (E = S; (E = E.parentNode); ) + 1 === E.nodeType && + O.push({ element: E, left: E.scrollLeft, top: E.scrollTop }); + for ( + 'function' == typeof S.focus && S.focus(), S = 0; + S < O.length; + S++ + ) + ((E = O[S]).element.scrollLeft = E.left), + (E.element.scrollTop = E.top); } - } - e.wrap = s; - var u = {}; - function l() {} - function f() {} - function d() {} - var p = {}; - p[o] = function() { - return this; - }; - var h = Object.getPrototypeOf, - g = h && h(h(M([]))); - g && g !== t && n.call(g, o) && (p = g); - var m = (d.prototype = l.prototype = Object.create(p)); - function b(e) { - ['next', 'throw', 'return'].forEach(function(t) { - e[t] = function(e) { - return this._invoke(t, e); - }; - }); - } - function y(e, t) { - var r; - this._invoke = function(o, i) { - function a() { - return new t(function(r, a) { - !(function r(o, i, a, s) { - var u = c(e[o], e, i); - if ('throw' !== u.type) { - var l = u.arg, - f = l.value; - return f && 'object' == typeof f && n.call(f, '__await') - ? t.resolve(f.__await).then( - function(e) { - r('next', e, a, s); - }, - function(e) { - r('throw', e, a, s); - } - ) - : t.resolve(f).then( - function(e) { - (l.value = e), a(l); - }, - function(e) { - return r('throw', e, a, s); + (Mr = null), (jn = !!xr), (xr = null), (e.current = n), (bs = o); + do { + try { + for (S = r; null !== bs; ) { + var T = bs.effectTag; + if (36 & T) { + var C = bs.alternate; + switch (((E = S), (O = bs).tag)) { + case 0: + case 11: + case 15: + Ra(_i, wi, O); + break; + case 1: + var L = O.stateNode; + if (4 & O.effectTag) + if (null === C) L.componentDidMount(); + else { + var P = + O.elementType === O.type + ? C.memoizedProps + : vo(O.type, C.memoizedProps); + L.componentDidUpdate( + P, + C.memoizedState, + L.__reactInternalSnapshotBeforeUpdate + ); + } + var D = O.updateQueue; + null !== D && qo(0, D, L); + break; + case 3: + var j = O.updateQueue; + if (null !== j) { + if (((A = null), null !== O.child)) + switch (O.child.tag) { + case 5: + A = O.child.stateNode; + break; + case 1: + A = O.child.stateNode; } - ); + qo(0, j, A); + } + break; + case 5: + var z = O.stateNode; + null === C && + 4 & O.effectTag && + ((E = z), kr(O.type, O.memoizedProps) && E.focus()); + break; + case 6: + case 4: + case 12: + break; + case 13: + case 19: + case 17: + case 20: + break; + default: + throw a(Error(163)); } - s(u.arg); - })(o, i, r, a); - }); + } + if (128 & T) { + var N = bs.ref; + if (null !== N) { + var R = bs.stateNode; + switch (bs.tag) { + case 5: + var I = R; + break; + default: + I = R; + } + 'function' == typeof N ? N(I) : (N.current = I); + } + } + 512 & T && (ws = !0), (bs = bs.nextEffect); + } + } catch (e) { + if (null === bs) throw a(Error(330)); + $s(bs, e), (bs = bs.nextEffect); } - return (r = r ? r.then(a, a) : a()); - }; + } while (null !== bs); + (bs = null), oo(), (as = i); + } else e.current = n; + if (ws) (ws = !1), (xs = e), (ks = r), (Ms = t); + else + for (bs = o; null !== bs; ) + (t = bs.nextEffect), (bs.nextEffect = null), (bs = t); + if ( + (0 !== (t = e.firstPendingTime) + ? js(e, (T = yo((T = Ts()), t)), t) + : (_s = null), + 'function' == typeof ec && ec(n.stateNode, r), + 1073741823 === t + ? e === Es + ? Os++ + : ((Os = 0), (Es = e)) + : (Os = 0), + ys) + ) + throw ((ys = !1), (e = vs), (vs = null), e); + return (as & Ja) !== Qa ? null : (mo(), null); + } + function Xs() { + if (null === xs) return !1; + var e = xs, + t = ks, + n = Ms; + return ( + (xs = null), + (ks = 0), + (Ms = 90), + po(97 < n ? 97 : n, Gs.bind(null, e, t)) + ); + } + function Gs(e) { + if ((as & (Za | es)) !== Qa) throw a(Error(331)); + var t = as; + for (as |= es, e = e.current.firstEffect; null !== e; ) { + try { + var n = e; + if (0 != (512 & n.effectTag)) + switch (n.tag) { + case 0: + case 11: + case 15: + Ra(Mi, mi, n), Ra(mi, xi, n); + } + } catch (t) { + if (null === e) throw a(Error(330)); + $s(e, t); + } + (n = e.nextEffect), (e.nextEffect = null), (e = n); } - function v(e, t) { - var n = e.iterator[t.method]; - if (void 0 === n) { - if (((t.delegate = null), 'throw' === t.method)) { + return (as = t), mo(), !0; + } + function Ks(e, t, n) { + zo(e, (t = Ua(e, (t = Da(n, t)), 1073741823))), + null !== (e = Ds(e, 1073741823)) && js(e, 99, 1073741823); + } + function $s(e, t) { + if (3 === e.tag) Ks(e, e, t); + else + for (var n = e.return; null !== n; ) { + if (3 === n.tag) { + Ks(n, e, t); + break; + } + if (1 === n.tag) { + var r = n.stateNode; if ( - e.iterator.return && - ((t.method = 'return'), - (t.arg = void 0), - v(e, t), - 'throw' === t.method) - ) - return u; - (t.method = 'throw'), - (t.arg = new TypeError( - "The iterator does not provide a 'throw' method" - )); + 'function' == typeof n.type.getDerivedStateFromError || + ('function' == typeof r.componentDidCatch && + (null === _s || !_s.has(r))) + ) { + zo(n, (e = Xa(n, (e = Da(t, e)), 1073741823))), + null !== (n = Ds(n, 1073741823)) && js(n, 99, 1073741823); + break; + } } - return u; + n = n.return; } - var r = c(n, e.iterator, t.arg); - if ('throw' === r.type) - return ( - (t.method = 'throw'), (t.arg = r.arg), (t.delegate = null), u - ); - var o = r.arg; - return o - ? o.done - ? ((t[e.resultName] = o.value), - (t.next = e.nextLoc), - 'return' !== t.method && - ((t.method = 'next'), (t.arg = void 0)), - (t.delegate = null), - u) - : o - : ((t.method = 'throw'), - (t.arg = new TypeError('iterator result is not an object')), - (t.delegate = null), - u); - } - function _(e) { - var t = { tryLoc: e[0] }; - 1 in e && (t.catchLoc = e[1]), - 2 in e && ((t.finallyLoc = e[2]), (t.afterLoc = e[3])), - this.tryEntries.push(t); - } - function x(e) { - var t = e.completion || {}; - (t.type = 'normal'), delete t.arg, (e.completion = t); - } - function w(e) { - (this.tryEntries = [{ tryLoc: 'root' }]), - e.forEach(_, this), - this.reset(!0); - } - function M(e) { - if (e) { - var t = e[o]; - if (t) return t.call(e); - if ('function' == typeof e.next) return e; - if (!isNaN(e.length)) { - var r = -1, - i = function t() { - for (; ++r < e.length; ) - if (n.call(e, r)) return (t.value = e[r]), (t.done = !1), t; - return (t.value = void 0), (t.done = !0), t; - }; - return (i.next = i); + } + function Qs(e, t, n) { + var r = e.pingCache; + null !== r && r.delete(t), + ss === e && us === n + ? ls === os || (ls === rs && 1073741823 === fs && uo() - gs < ms) + ? qs(e, us) + : (hs = !0) + : e.lastPendingTime < n || + ((0 !== (t = e.pingTime) && t < n) || + ((e.pingTime = n), + e.finishedExpirationTime === n && + ((e.finishedExpirationTime = 0), (e.finishedWork = null)), + js(e, (t = yo((t = Ts()), n)), n))); + } + function Js(e, t) { + var n = e.stateNode; + null !== n && n.delete(t), + (n = yo((n = Ts()), (t = Cs(n, e, null)))), + null !== (e = Ds(e, t)) && js(e, n, t); + } + var Zs = void 0; + Zs = function(e, t, n) { + var r = t.expirationTime; + if (null !== e) { + var o = t.pendingProps; + if (e.memoizedProps !== o || zr.current) fa = !0; + else if (r < n) { + switch (((fa = !1), t.tag)) { + case 3: + _a(t), ua(); + break; + case 5: + if ((ui(t), 4 & t.mode && 1 !== n && o.hidden)) + return (t.expirationTime = t.childExpirationTime = 1), null; + break; + case 1: + Ir(t.type) && Yr(t); + break; + case 4: + si(t, t.stateNode.containerInfo); + break; + case 10: + So(t, t.memoizedProps.value); + break; + case 13: + if (null !== t.memoizedState) + return 0 !== (r = t.child.childExpirationTime) && r >= n + ? xa(e, t, n) + : (Pr(hi, hi.current & fi), + null !== (t = Sa(e, t, n)) ? t.sibling : null); + Pr(hi, hi.current & fi); + break; + case 19: + if ( + ((r = t.childExpirationTime >= n), 0 != (64 & e.effectTag)) + ) { + if (r) return ka(e, t, n); + t.effectTag |= 64; + } + if ( + (null !== (o = t.memoizedState) && + ((o.rendering = null), (o.tail = null)), + Pr(hi, hi.current), + !r) + ) + return null; } + return Sa(e, t, n); } - return { next: k }; - } - function k() { - return { value: void 0, done: !0 }; - } - return ( - (f.prototype = m.constructor = d), - (d.constructor = f), - (d[a] = f.displayName = 'GeneratorFunction'), - (e.isGeneratorFunction = function(e) { - var t = 'function' == typeof e && e.constructor; + } else fa = !1; + switch (((t.expirationTime = 0), t.tag)) { + case 2: + if ( + ((r = t.type), + null !== e && + ((e.alternate = null), + (t.alternate = null), + (t.effectTag |= 2)), + (e = t.pendingProps), + (o = Rr(t, jr.current)), + Ao(t, n), + (o = qi(null, t, r, e, o, n)), + (t.effectTag |= 1), + 'object' == typeof o && + null !== o && + 'function' == typeof o.render && + void 0 === o.$$typeof) + ) { + if (((t.tag = 1), Bi(), Ir(r))) { + var i = !0; + Yr(t); + } else i = !1; + t.memoizedState = + null !== o.state && void 0 !== o.state ? o.state : null; + var s = r.getDerivedStateFromProps; + 'function' == typeof s && Wo(t, r, s, e), + (o.updater = Vo), + (t.stateNode = o), + (o._reactInternalFiber = t), + Ko(t, r, e, n), + (t = va(null, t, r, !0, i, n)); + } else (t.tag = 0), da(null, t, o, n), (t = t.child); + return t; + case 16: + switch ( + ((o = t.elementType), + null !== e && + ((e.alternate = null), + (t.alternate = null), + (t.effectTag |= 2)), + (e = t.pendingProps), + (o = (function(e) { + var t = e._result; + switch (e._status) { + case 1: + return t; + case 2: + case 0: + throw t; + default: + switch ( + ((e._status = 0), + (t = (t = e._ctor)()).then( + function(t) { + 0 === e._status && + ((t = t.default), (e._status = 1), (e._result = t)); + }, + function(t) { + 0 === e._status && ((e._status = 2), (e._result = t)); + } + ), + e._status) + ) { + case 1: + return e._result; + case 2: + throw e._result; + } + throw ((e._result = t), t); + } + })(o)), + (t.type = o), + (i = t.tag = (function(e) { + if ('function' == typeof e) return oc(e) ? 1 : 0; + if (null != e) { + if ((e = e.$$typeof) === rt) return 11; + if (e === at) return 14; + } + return 2; + })(o)), + (e = vo(o, e)), + i) + ) { + case 0: + t = ba(null, t, o, e, n); + break; + case 1: + t = ya(null, t, o, e, n); + break; + case 11: + t = pa(null, t, o, e, n); + break; + case 14: + t = ha(null, t, o, vo(o.type, e), r, n); + break; + default: + throw a(Error(306), o, ''); + } + return t; + case 0: return ( - !!t && - (t === f || 'GeneratorFunction' === (t.displayName || t.name)) + (r = t.type), + (o = t.pendingProps), + ba(e, t, r, (o = t.elementType === r ? o : vo(r, o)), n) ); - }), - (e.mark = function(e) { + case 1: return ( - Object.setPrototypeOf - ? Object.setPrototypeOf(e, d) - : ((e.__proto__ = d), a in e || (e[a] = 'GeneratorFunction')), - (e.prototype = Object.create(m)), - e + (r = t.type), + (o = t.pendingProps), + ya(e, t, r, (o = t.elementType === r ? o : vo(r, o)), n) ); - }), - (e.awrap = function(e) { - return { __await: e }; - }), - b(y.prototype), - (y.prototype[i] = function() { - return this; - }), - (e.AsyncIterator = y), - (e.async = function(t, n, r, o, i) { - void 0 === i && (i = Promise); - var a = new y(s(t, n, r, o), i); - return e.isGeneratorFunction(n) - ? a - : a.next().then(function(e) { - return e.done ? e.value : a.next(); - }); - }), - b(m), - (m[a] = 'Generator'), - (m[o] = function() { - return this; - }), - (m.toString = function() { - return '[object Generator]'; - }), - (e.keys = function(e) { - var t = []; - for (var n in e) t.push(n); + case 3: + if ((_a(t), null === (r = t.updateQueue))) throw a(Error(282)); return ( - t.reverse(), - function n() { - for (; t.length; ) { - var r = t.pop(); - if (r in e) return (n.value = r), (n.done = !1), n; - } - return (n.done = !0), n; - } + (o = null !== (o = t.memoizedState) ? o.element : null), + Fo(t, r, t.pendingProps, null, n), + (r = t.memoizedState.element) === o + ? (ua(), (t = Sa(e, t, n))) + : ((o = t.stateNode), + (o = (null === e || null === e.child) && o.hydrate) && + ((na = Ar(t.stateNode.containerInfo.firstChild)), + (ta = t), + (o = ra = !0)), + o + ? ((t.effectTag |= 2), (t.child = ti(t, null, r, n))) + : (da(e, t, r, n), ua()), + (t = t.child)), + t ); - }), - (e.values = M), - (w.prototype = { - constructor: w, - reset: function(e) { + case 5: + return ( + ui(t), + null === e && aa(t), + (r = t.type), + (o = t.pendingProps), + (i = null !== e ? e.memoizedProps : null), + (s = o.children), + Sr(r, o) + ? (s = null) + : null !== i && Sr(r, i) && (t.effectTag |= 16), + ma(e, t), + 4 & t.mode && 1 !== n && o.hidden + ? ((t.expirationTime = t.childExpirationTime = 1), (t = null)) + : (da(e, t, s, n), (t = t.child)), + t + ); + case 6: + return null === e && aa(t), null; + case 13: + return xa(e, t, n); + case 4: + return ( + si(t, t.stateNode.containerInfo), + (r = t.pendingProps), + null === e ? (t.child = ei(t, null, r, n)) : da(e, t, r, n), + t.child + ); + case 11: + return ( + (r = t.type), + (o = t.pendingProps), + pa(e, t, r, (o = t.elementType === r ? o : vo(r, o)), n) + ); + case 7: + return da(e, t, t.pendingProps, n), t.child; + case 8: + case 12: + return da(e, t, t.pendingProps.children, n), t.child; + case 10: + e: { if ( - ((this.prev = 0), - (this.next = 0), - (this.sent = this._sent = void 0), - (this.done = !1), - (this.delegate = null), - (this.method = 'next'), - (this.arg = void 0), - this.tryEntries.forEach(x), - !e) - ) - for (var t in this) - 't' === t.charAt(0) && - n.call(this, t) && - !isNaN(+t.slice(1)) && - (this[t] = void 0); - }, - stop: function() { - this.done = !0; - var e = this.tryEntries[0].completion; - if ('throw' === e.type) throw e.arg; - return this.rval; - }, - dispatchException: function(e) { - if (this.done) throw e; - var t = this; - function r(n, r) { - return ( - (a.type = 'throw'), - (a.arg = e), - (t.next = n), - r && ((t.method = 'next'), (t.arg = void 0)), - !!r - ); - } - for (var o = this.tryEntries.length - 1; o >= 0; --o) { - var i = this.tryEntries[o], - a = i.completion; - if ('root' === i.tryLoc) return r('end'); - if (i.tryLoc <= this.prev) { - var s = n.call(i, 'catchLoc'), - c = n.call(i, 'finallyLoc'); - if (s && c) { - if (this.prev < i.catchLoc) return r(i.catchLoc, !0); - if (this.prev < i.finallyLoc) return r(i.finallyLoc); - } else if (s) { - if (this.prev < i.catchLoc) return r(i.catchLoc, !0); - } else { - if (!c) - throw new Error('try statement without catch or finally'); - if (this.prev < i.finallyLoc) return r(i.finallyLoc); - } - } - } - }, - abrupt: function(e, t) { - for (var r = this.tryEntries.length - 1; r >= 0; --r) { - var o = this.tryEntries[r]; + ((r = t.type._context), + (o = t.pendingProps), + (s = t.memoizedProps), + So(t, (i = o.value)), + null !== s) + ) { + var c = s.value; if ( - o.tryLoc <= this.prev && - n.call(o, 'finallyLoc') && - this.prev < o.finallyLoc + 0 === + (i = tn(c, i) + ? 0 + : 0 | + ('function' == typeof r._calculateChangedBits + ? r._calculateChangedBits(c, i) + : 1073741823)) ) { - var i = o; - break; - } + if (s.children === o.children && !zr.current) { + t = Sa(e, t, n); + break e; + } + } else + for (null !== (c = t.child) && (c.return = t); null !== c; ) { + var u = c.dependencies; + if (null !== u) { + s = c.child; + for (var l = u.firstContext; null !== l; ) { + if (l.context === r && 0 != (l.observedBits & i)) { + 1 === c.tag && + (((l = Do(n, null)).tag = 2), zo(c, l)), + c.expirationTime < n && (c.expirationTime = n), + null !== (l = c.alternate) && + l.expirationTime < n && + (l.expirationTime = n), + Eo(c.return, n), + u.expirationTime < n && (u.expirationTime = n); + break; + } + l = l.next; + } + } else + s = 10 === c.tag && c.type === t.type ? null : c.child; + if (null !== s) s.return = c; + else + for (s = c; null !== s; ) { + if (s === t) { + s = null; + break; + } + if (null !== (c = s.sibling)) { + (c.return = s.return), (s = c); + break; + } + s = s.return; + } + c = s; + } } - i && - ('break' === e || 'continue' === e) && - i.tryLoc <= t && - t <= i.finallyLoc && - (i = null); - var a = i ? i.completion : {}; + da(e, t, o.children, n), (t = t.child); + } + return t; + case 9: + return ( + (o = t.type), + (r = (i = t.pendingProps).children), + Ao(t, n), + (r = r((o = To(o, i.unstable_observedBits)))), + (t.effectTag |= 1), + da(e, t, r, n), + t.child + ); + case 14: + return ( + (i = vo((o = t.type), t.pendingProps)), + ha(e, t, o, (i = vo(o.type, i)), r, n) + ); + case 15: + return ga(e, t, t.type, t.pendingProps, r, n); + case 17: + return ( + (r = t.type), + (o = t.pendingProps), + (o = t.elementType === r ? o : vo(r, o)), + null !== e && + ((e.alternate = null), + (t.alternate = null), + (t.effectTag |= 2)), + (t.tag = 1), + Ir(r) ? ((e = !0), Yr(t)) : (e = !1), + Ao(t, n), + Xo(t, r, o), + Ko(t, r, o, n), + va(null, t, r, !0, e, n) + ); + case 19: + return ka(e, t, n); + } + throw a(Error(156)); + }; + var ec = null, + tc = null; + function nc(e, t, n, r) { + (this.tag = e), + (this.key = n), + (this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null), + (this.index = 0), + (this.ref = null), + (this.pendingProps = t), + (this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null), + (this.mode = r), + (this.effectTag = 0), + (this.lastEffect = this.firstEffect = this.nextEffect = null), + (this.childExpirationTime = this.expirationTime = 0), + (this.alternate = null); + } + function rc(e, t, n, r) { + return new nc(e, t, n, r); + } + function oc(e) { + return !(!(e = e.prototype) || !e.isReactComponent); + } + function ic(e, t) { + var n = e.alternate; + return ( + null === n + ? (((n = rc(e.tag, t, e.key, e.mode)).elementType = e.elementType), + (n.type = e.type), + (n.stateNode = e.stateNode), + (n.alternate = e), + (e.alternate = n)) + : ((n.pendingProps = t), + (n.effectTag = 0), + (n.nextEffect = null), + (n.firstEffect = null), + (n.lastEffect = null)), + (n.childExpirationTime = e.childExpirationTime), + (n.expirationTime = e.expirationTime), + (n.child = e.child), + (n.memoizedProps = e.memoizedProps), + (n.memoizedState = e.memoizedState), + (n.updateQueue = e.updateQueue), + (t = e.dependencies), + (n.dependencies = + null === t + ? null + : { + expirationTime: t.expirationTime, + firstContext: t.firstContext, + responders: t.responders + }), + (n.sibling = e.sibling), + (n.index = e.index), + (n.ref = e.ref), + n + ); + } + function ac(e, t, n, r, o, i) { + var s = 2; + if (((r = e), 'function' == typeof e)) oc(e) && (s = 1); + else if ('string' == typeof e) s = 5; + else + e: switch (e) { + case Qe: + return sc(n.children, o, i, t); + case nt: + (s = 8), (o |= 7); + break; + case Je: + (s = 8), (o |= 1); + break; + case Ze: return ( - (a.type = e), - (a.arg = t), - i - ? ((this.method = 'next'), (this.next = i.finallyLoc), u) - : this.complete(a) + ((e = rc(12, n, t, 8 | o)).elementType = Ze), + (e.type = Ze), + (e.expirationTime = i), + e ); - }, - complete: function(e, t) { - if ('throw' === e.type) throw e.arg; + case ot: return ( - 'break' === e.type || 'continue' === e.type - ? (this.next = e.arg) - : 'return' === e.type - ? ((this.rval = this.arg = e.arg), - (this.method = 'return'), - (this.next = 'end')) - : 'normal' === e.type && t && (this.next = t), - u + ((e = rc(13, n, t, o)).type = ot), + (e.elementType = ot), + (e.expirationTime = i), + e ); - }, - finish: function(e) { - for (var t = this.tryEntries.length - 1; t >= 0; --t) { - var n = this.tryEntries[t]; - if (n.finallyLoc === e) - return this.complete(n.completion, n.afterLoc), x(n), u; - } - }, - catch: function(e) { - for (var t = this.tryEntries.length - 1; t >= 0; --t) { - var n = this.tryEntries[t]; - if (n.tryLoc === e) { - var r = n.completion; - if ('throw' === r.type) { - var o = r.arg; - x(n); - } - return o; - } - } - throw new Error('illegal catch attempt'); - }, - delegateYield: function(e, t, n) { + case it: return ( - (this.delegate = { iterator: M(e), resultName: t, nextLoc: n }), - 'next' === this.method && (this.arg = void 0), - u + ((e = rc(19, n, t, o)).elementType = it), + (e.expirationTime = i), + e ); - } + default: + if ('object' == typeof e && null !== e) + switch (e.$$typeof) { + case et: + s = 10; + break e; + case tt: + s = 9; + break e; + case rt: + s = 11; + break e; + case at: + s = 14; + break e; + case st: + (s = 16), (r = null); + break e; + } + throw a(Error(130), null == e ? e : typeof e, ''); + } + return ( + ((t = rc(s, n, t, o)).elementType = e), + (t.type = r), + (t.expirationTime = i), + t + ); + } + function sc(e, t, n, r) { + return ((e = rc(7, e, r, t)).expirationTime = n), e; + } + function cc(e, t, n) { + return ((e = rc(6, e, null, t)).expirationTime = n), e; + } + function uc(e, t, n) { + return ( + ((t = rc( + 4, + null !== e.children ? e.children : [], + e.key, + t + )).expirationTime = n), + (t.stateNode = { + containerInfo: e.containerInfo, + pendingChildren: null, + implementation: e.implementation }), - e + t ); - })(e.exports); - try { - regeneratorRuntime = r; - } catch (e) { - Function('r', 'regeneratorRuntime = r')(r); } - }, - function(e, t) { - Prism.languages.clike = { - comment: [ - { pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, lookbehind: !0 }, - { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 } - ], - string: { - pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, - greedy: !0 - }, - 'class-name': { - pattern: /(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i, - lookbehind: !0, - inside: { punctuation: /[.\\]/ } - }, - keyword: /\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/, - boolean: /\b(?:true|false)\b/, - function: /\w+(?=\()/, - number: /\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i, - operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/, - punctuation: /[{}[\];(),.:]/ - }; - }, - function(e, t) { - (Prism.languages.javascript = Prism.languages.extend('clike', { - 'class-name': [ - Prism.languages.clike['class-name'], - { - pattern: /(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/, - lookbehind: !0 - } - ], - keyword: [ - { pattern: /((?:^|})\s*)(?:catch|finally)\b/, lookbehind: !0 }, - { - pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/, - lookbehind: !0 - } - ], - number: /\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/, - function: /#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/, - operator: /--|\+\+|\*\*=?|=>|&&|\|\||[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?[.?]?|[~:]/ - })), - (Prism.languages.javascript[ - 'class-name' - ][0].pattern = /(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/), - Prism.languages.insertBefore('javascript', 'keyword', { - regex: { - pattern: /((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=(?:\s|\/\*[\s\S]*?\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/, - lookbehind: !0, - greedy: !0 - }, - 'function-variable': { - pattern: /#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/, - alias: 'function' - }, - parameter: [ - { - pattern: /(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/, - lookbehind: !0, - inside: Prism.languages.javascript - }, - { - pattern: /[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i, - inside: Prism.languages.javascript - }, - { - pattern: /(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/, - lookbehind: !0, - inside: Prism.languages.javascript - }, - { - pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/, - lookbehind: !0, - inside: Prism.languages.javascript - } - ], - constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/ - }), - Prism.languages.insertBefore('javascript', 'string', { - 'template-string': { - pattern: /`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/, - greedy: !0, - inside: { - 'template-punctuation': { pattern: /^`|`$/, alias: 'string' }, - interpolation: { - pattern: /((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/, - lookbehind: !0, - inside: { - 'interpolation-punctuation': { - pattern: /^\${|}$/, - alias: 'punctuation' - }, - rest: Prism.languages.javascript - } - }, - string: /[\s\S]+/ - } - } - }), - Prism.languages.markup && - Prism.languages.markup.tag.addInlined('script', 'javascript'), - (Prism.languages.js = Prism.languages.javascript); - }, - function(e, t) { - !(function(e) { - var t = /("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/; - (e.languages.css = { - comment: /\/\*[\s\S]*?\*\//, - atrule: { - pattern: /@[\w-]+[\s\S]*?(?:;|(?=\s*\{))/, - inside: { - rule: /^@[\w-]+/, - 'selector-function-argument': { - pattern: /(\bselector\s*\((?!\s*\))\s*)(?:[^()]|\((?:[^()]|\([^()]*\))*\))+?(?=\s*\))/, - lookbehind: !0, - alias: 'selector' - } - } - }, - url: { - pattern: RegExp('url\\((?:' + t.source + '|[^\n\r()]*)\\)', 'i'), - greedy: !0, - inside: { function: /^url/i, punctuation: /^\(|\)$/ } - }, - selector: RegExp( - '[^{}\\s](?:[^{};"\']|' + t.source + ')*?(?=\\s*\\{)' - ), - string: { pattern: t, greedy: !0 }, - property: /[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i, - important: /!important\b/i, - function: /[-a-z0-9]+(?=\()/i, - punctuation: /[(){};:,]/ - }), - (e.languages.css.atrule.inside.rest = e.languages.css); - var n = e.languages.markup; - n && - (n.tag.addInlined('style', 'css'), - e.languages.insertBefore( - 'inside', - 'attr-value', - { - 'style-attr': { - pattern: /\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i, - inside: { - 'attr-name': { pattern: /^\s*style/i, inside: n.tag.inside }, - punctuation: /^\s*=\s*['"]|['"]\s*$/, - 'attr-value': { pattern: /.+/i, inside: e.languages.css } - }, - alias: 'language-css' - } - }, - n.tag - )); - })(Prism); - }, - function(e, t) { - (Prism.languages.markup = { - comment: //, - prolog: /<\?[\s\S]+?\?>/, - doctype: { - pattern: /"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:(?!)*\]\s*)?>/i, - greedy: !0 - }, - cdata: //i, - tag: { - pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/i, - greedy: !0, - inside: { - tag: { - pattern: /^<\/?[^\s>\/]+/i, - inside: { punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/ } - }, - 'attr-value': { - pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/i, - inside: { - punctuation: [ - /^=/, - { pattern: /^(\s*)["']|["']$/, lookbehind: !0 } - ] + function lc(e, t, n) { + (this.tag = t), + (this.current = null), + (this.containerInfo = e), + (this.pingCache = this.pendingChildren = null), + (this.finishedExpirationTime = 0), + (this.finishedWork = null), + (this.timeoutHandle = -1), + (this.pendingContext = this.context = null), + (this.hydrate = n), + (this.callbackNode = this.firstBatch = null), + (this.pingTime = this.lastPendingTime = this.firstPendingTime = this.callbackExpirationTime = 0); + } + function fc(e, t, n) { + return ( + (e = new lc(e, t, n)), + (t = rc(3, null, null, 2 === t ? 7 : 1 === t ? 3 : 0)), + (e.current = t), + (t.stateNode = e) + ); + } + function dc(e, t, n, r, o, i) { + var s = t.current; + e: if (n) { + t: { + if (2 !== an((n = n._reactInternalFiber)) || 1 !== n.tag) + throw a(Error(170)); + var c = n; + do { + switch (c.tag) { + case 3: + c = c.stateNode.context; + break t; + case 1: + if (Ir(c.type)) { + c = c.stateNode.__reactInternalMemoizedMergedChildContext; + break t; + } } - }, - punctuation: /\/?>/, - 'attr-name': { - pattern: /[^\s>\/]+/, - inside: { namespace: /^[^\s>\/:]+:/ } - } + c = c.return; + } while (null !== c); + throw a(Error(171)); } - }, - entity: /&#?[\da-z]{1,8};/i - }), - (Prism.languages.markup.tag.inside['attr-value'].inside.entity = - Prism.languages.markup.entity), - Prism.hooks.add('wrap', function(e) { - 'entity' === e.type && - (e.attributes.title = e.content.replace(/&/, '&')); - }), - Object.defineProperty(Prism.languages.markup.tag, 'addInlined', { - value: function(e, t) { - var n = {}; - (n['language-' + t] = { - pattern: /(^$)/i, - lookbehind: !0, - inside: Prism.languages[t] - }), - (n.cdata = /^$/i); - var r = { - 'included-cdata': { - pattern: //i, - inside: n - } - }; - r['language-' + t] = { - pattern: /[\s\S]+/, - inside: Prism.languages[t] - }; - var o = {}; - (o[e] = { - pattern: RegExp( - /(<__[\s\S]*?>)(?:\s*|[\s\S])*?(?=<\/__>)/.source.replace( - /__/g, - function() { - return e; - } - ), - 'i' - ), - lookbehind: !0, - greedy: !0, - inside: r - }), - Prism.languages.insertBefore('markup', 'cdata', o); + if (1 === n.tag) { + var u = n.type; + if (Ir(u)) { + n = Hr(n, u, c); + break e; + } } - }), - (Prism.languages.xml = Prism.languages.extend('markup', {})), - (Prism.languages.html = Prism.languages.markup), - (Prism.languages.mathml = Prism.languages.markup), - (Prism.languages.svg = Prism.languages.markup); - }, - function(e, t, n) { - var r = n(540); - 'string' == typeof r && (r = [[e.i, r, '']]); - var o = { hmr: !0, transform: void 0, insertInto: void 0 }; - n(57)(r, o); - r.locals && (e.exports = r.locals); - }, - function(e, t, n) { - (e.exports = n(56)(!1)).push([ - e.i, - 'pre[class*=language-].line-numbers{position:relative;padding-left:3.8em;counter-reset:a}pre[class*=language-].line-numbers>code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows>span{pointer-events:none;display:block;counter-increment:a}.line-numbers-rows>span:before{content:counter(a);color:#999;display:block;padding-right:.8em;text-align:right}', - '' - ]); - }, - function(e, t) { - !(function() { - if ('undefined' != typeof self && self.Prism && self.document) { - var e = /\n(?!$)/g, - t = function(t) { - var r = n(t)['white-space']; - if ('pre-wrap' === r || 'pre-line' === r) { - var o = t.querySelector('code'), - i = t.querySelector('.line-numbers-rows'), - a = t.querySelector('.line-numbers-sizer'), - s = o.textContent.split(e); - a || - (((a = document.createElement('span')).className = - 'line-numbers-sizer'), - o.appendChild(a)), - (a.style.display = 'block'), - s.forEach(function(e, t) { - a.textContent = e || '\n'; - var n = a.getBoundingClientRect().height; - i.children[t].style.height = n + 'px'; - }), - (a.textContent = ''), - (a.style.display = 'none'); - } - }, - n = function(e) { - return e - ? window.getComputedStyle - ? getComputedStyle(e) - : e.currentStyle || null - : null; - }; - window.addEventListener('resize', function() { - Array.prototype.forEach.call( - document.querySelectorAll('pre.line-numbers'), - t - ); - }), - Prism.hooks.add('complete', function(n) { - if (n.code) { - var r = n.element, - o = r.parentNode; - if ( - o && - /pre/i.test(o.nodeName) && - !r.querySelector('.line-numbers-rows') - ) { - for ( - var i = !1, a = /(?:^|\s)line-numbers(?:\s|$)/, s = r; - s; - s = s.parentNode - ) - if (a.test(s.className)) { - i = !0; - break; - } - if (i) { - (r.className = r.className.replace(a, ' ')), - a.test(o.className) || (o.className += ' line-numbers'); - var c, - u = n.code.match(e), - l = u ? u.length + 1 : 1, - f = new Array(l + 1).join(''); - (c = document.createElement('span')).setAttribute( - 'aria-hidden', - 'true' - ), - (c.className = 'line-numbers-rows'), - (c.innerHTML = f), - o.hasAttribute('data-start') && - (o.style.counterReset = - 'linenumber ' + - (parseInt(o.getAttribute('data-start'), 10) - 1)), - n.element.appendChild(c), - t(o), - Prism.hooks.run('line-numbers', n); - } - } - } - }), - Prism.hooks.add('line-numbers', function(e) { - (e.plugins = e.plugins || {}), (e.plugins.lineNumbers = !0); - }), - (Prism.plugins.lineNumbers = { - getLine: function(e, t) { - if ( - 'PRE' === e.tagName && - e.classList.contains('line-numbers') - ) { - var n = e.querySelector('.line-numbers-rows'), - r = parseInt(e.getAttribute('data-start'), 10) || 1, - o = r + (n.children.length - 1); - t < r && (t = r), t > o && (t = o); - var i = t - r; - return n.children[i]; - } - } - }); - } - })(); - }, - function(e, t, n) { - var r = n(543); - 'string' == typeof r && (r = [[e.i, r, '']]); - var o = { hmr: !0, transform: void 0, insertInto: void 0 }; - n(57)(r, o); - r.locals && (e.exports = r.locals); - }, - function(e, t, n) { - (e.exports = n(56)(!1)).push([ - e.i, - 'code[class*=language-],pre[class*=language-]{color:#000;background:none;text-shadow:0 1px #fff;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;tab-size:4;-webkit-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-]::-moz-selection,code[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-]::selection,code[class*=language-] ::selection,pre[class*=language-]::selection,pre[class*=language-] ::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#999}.token.namespace{opacity:.7}.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color:#905}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#690}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.class-name,.token.function{color:#dd4a68}.token.important,.token.regex,.token.variable{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}', - '' - ]); - }, - function(e, t) { - e.exports = function(e, t) { - if (null == e) return {}; - var n, - r, - o = {}, - i = Object.keys(e); - for (r = 0; r < i.length; r++) - (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); - return o; - }; - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = void 0); - var r = l(n(0)), - o = l(n(4)), - i = l(n(1)), - a = n(213), - s = n(546), - c = n(89), - u = l(n(13)); - function l(e) { - return e && e.__esModule ? e : { default: e }; - } - function f(e) { - return (f = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(e) { - return typeof e; - } - : function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - })(e); + n = c; + } else n = Dr; + return ( + null === t.context ? (t.context = n) : (t.pendingContext = n), + (t = i), + ((o = Do(r, o)).payload = { element: e }), + null !== (t = void 0 === t ? null : t) && (o.callback = t), + zo(s, o), + Ps(s, r), + r + ); } - function d(e, t) { - var n = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var r = Object.getOwnPropertySymbols(e); - t && - (r = r.filter(function(t) { - return Object.getOwnPropertyDescriptor(e, t).enumerable; - })), - n.push.apply(n, r); - } - return n; + function pc(e, t, n, r) { + var o = t.current, + i = Ts(), + a = Ho.suspense; + return dc(e, t, n, (o = Cs(i, o, a)), a, r); } - function p(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}; - t % 2 - ? d(n, !0).forEach(function(t) { - _(e, t, n[t]); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) - : d(n).forEach(function(t) { - Object.defineProperty( - e, - t, - Object.getOwnPropertyDescriptor(n, t) - ); - }); + function hc(e) { + if (!(e = e.current).child) return null; + switch (e.child.tag) { + case 5: + default: + return e.child.stateNode; } - return e; } - function h(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); + function gc(e) { + var t = 1073741821 - 25 * (1 + (((1073741821 - Ts() + 500) / 25) | 0)); + t <= Ls && --t, + (this._expirationTime = Ls = t), + (this._root = e), + (this._callbacks = this._next = null), + (this._hasChildren = this._didComplete = !1), + (this._children = null), + (this._defer = !0); } - function g(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } + function mc() { + (this._callbacks = null), + (this._didCommit = !1), + (this._onCommit = this._onCommit.bind(this)); } - function m(e, t) { - return !t || ('object' !== f(t) && 'function' != typeof t) ? y(e) : t; + function bc(e, t, n) { + this._internalRoot = fc(e, t, n); } - function b(e) { - return (b = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(e) { - return e.__proto__ || Object.getPrototypeOf(e); - })(e); + function yc(e, t) { + this._internalRoot = fc(e, 2, t); } - function y(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return e; + function vc(e) { + return !( + !e || + (1 !== e.nodeType && + 9 !== e.nodeType && + 11 !== e.nodeType && + (8 !== e.nodeType || + ' react-mount-point-unstable ' !== e.nodeValue)) + ); } - function v(e, t) { - return (v = - Object.setPrototypeOf || - function(e, t) { - return (e.__proto__ = t), e; - })(e, t); + function _c(e, t, n, r, o) { + var i = n._reactRootContainer, + a = void 0; + if (i) { + if (((a = i._internalRoot), 'function' == typeof o)) { + var s = o; + o = function() { + var e = hc(a); + s.call(e); + }; + } + pc(t, a, e, o); + } else { + if ( + ((i = n._reactRootContainer = (function(e, t) { + if ( + (t || + (t = !( + !(t = e + ? 9 === e.nodeType + ? e.documentElement + : e.firstChild + : null) || + 1 !== t.nodeType || + !t.hasAttribute('data-reactroot') + )), + !t) + ) + for (var n; (n = e.lastChild); ) e.removeChild(n); + return new bc(e, 0, t); + })(n, r)), + (a = i._internalRoot), + 'function' == typeof o) + ) { + var c = o; + o = function() { + var e = hc(a); + c.call(e); + }; + } + Fs(function() { + pc(t, a, e, o); + }); + } + return hc(a); } - function _(e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e - ); + function wc(e, t) { + var n = + 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null; + if (!vc(t)) throw a(Error(200)); + return (function(e, t, n) { + var r = + 3 < arguments.length && void 0 !== arguments[3] + ? arguments[3] + : null; + return { + $$typeof: $e, + key: null == r ? null : '' + r, + children: e, + containerInfo: t, + implementation: n + }; + })(e, t, null, n); } - var x = (function(e) { - function t() { - var e, n; - h(this, t); - for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) - o[i] = arguments[i]; - return ( - _( - y((n = m(this, (e = b(t)).call.apply(e, [this].concat(o))))), - 'state', - { resizing: null, dragging: null, className: '' } - ), - _(y(n), 'currentNode', void 0), - _(y(n), 'onDragStart', function(e, t) { - var r = t.node; - if (n.props.onDragStart) { - var o = { top: 0, left: 0 }, - i = r.offsetParent; - if (i) { - var a = i.getBoundingClientRect(), - s = r.getBoundingClientRect(), - c = s.left / n.props.transformScale, - u = a.left / n.props.transformScale, - l = s.top / n.props.transformScale, - f = a.top / n.props.transformScale; - (o.left = c - u + i.scrollLeft), - (o.top = l - f + i.scrollTop), - n.setState({ dragging: o }); - var d = n.calcXY(o.top, o.left), - p = d.x, - h = d.y; - return ( - n.props.onDragStart && - n.props.onDragStart.call(y(n), n.props.i, p, h, { - e: e, - node: r, - newPosition: o - }) - ); + (Ee = function(e, t, n) { + switch (t) { + case 'input': + if ((St(e, n), (t = n.name), 'radio' === n.type && null != t)) { + for (n = e; n.parentNode; ) n = n.parentNode; + for ( + n = n.querySelectorAll( + 'input[name=' + JSON.stringify('' + t) + '][type="radio"]' + ), + t = 0; + t < n.length; + t++ + ) { + var r = n[t]; + if (r !== e && r.form === e.form) { + var o = F(r); + if (!o) throw a(Error(90)); + Ve(r), St(r, o); } } - }), - _(y(n), 'onDrag', function(e, t) { - var r = t.node, - o = t.deltaX, - i = t.deltaY; - if (n.props.onDrag) { - var a = { top: 0, left: 0 }; - if (!n.state.dragging) - throw new Error('onDrag called before onDragStart.'); - (a.left = n.state.dragging.left + o), - (a.top = n.state.dragging.top + i), - n.setState({ dragging: a }); - var s = n.calcXY(a.top, a.left), - c = s.x, - u = s.y; - return ( - n.props.onDrag && - n.props.onDrag.call(y(n), n.props.i, c, u, { - e: e, - node: r, - newPosition: a - }) - ); - } - }), - _(y(n), 'onDragStop', function(e, t) { - var r = t.node; - if (n.props.onDragStop) { - var o = { top: 0, left: 0 }; - if (!n.state.dragging) - throw new Error('onDragEnd called before onDragStart.'); - (o.left = n.state.dragging.left), - (o.top = n.state.dragging.top), - n.setState({ dragging: null }); - var i = n.calcXY(o.top, o.left), - a = i.x, - s = i.y; - return ( - n.props.onDragStop && - n.props.onDragStop.call(y(n), n.props.i, a, s, { - e: e, - node: r, - newPosition: o - }) - ); + } + break; + case 'textarea': + ir(e, n); + break; + case 'select': + null != (t = n.value) && nr(e, !!n.multiple, t, !1); + } + }), + (gc.prototype.render = function(e) { + if (!this._defer) throw a(Error(250)); + (this._hasChildren = !0), (this._children = e); + var t = this._root._internalRoot, + n = this._expirationTime, + r = new mc(); + return dc(e, t, null, n, null, r._onCommit), r; + }), + (gc.prototype.then = function(e) { + if (this._didComplete) e(); + else { + var t = this._callbacks; + null === t && (t = this._callbacks = []), t.push(e); + } + }), + (gc.prototype.commit = function() { + var e = this._root._internalRoot, + t = e.firstBatch; + if (!this._defer || null === t) throw a(Error(251)); + if (this._hasChildren) { + var n = this._expirationTime; + if (t !== this) { + this._hasChildren && + ((n = this._expirationTime = t._expirationTime), + this.render(this._children)); + for (var r = null, o = t; o !== this; ) (r = o), (o = o._next); + if (null === r) throw a(Error(251)); + (r._next = o._next), (this._next = t), (e.firstBatch = this); + } + if (((this._defer = !1), (t = n), (as & (Za | es)) !== Qa)) + throw a(Error(253)); + go(Bs.bind(null, e, t)), + mo(), + (t = this._next), + (this._next = null), + null !== (t = e.firstBatch = t) && + t._hasChildren && + t.render(t._children); + } else (this._next = null), (this._defer = !1); + }), + (gc.prototype._onComplete = function() { + if (!this._didComplete) { + this._didComplete = !0; + var e = this._callbacks; + if (null !== e) for (var t = 0; t < e.length; t++) (0, e[t])(); + } + }), + (mc.prototype.then = function(e) { + if (this._didCommit) e(); + else { + var t = this._callbacks; + null === t && (t = this._callbacks = []), t.push(e); + } + }), + (mc.prototype._onCommit = function() { + if (!this._didCommit) { + this._didCommit = !0; + var e = this._callbacks; + if (null !== e) + for (var t = 0; t < e.length; t++) { + var n = e[t]; + if ('function' != typeof n) throw a(Error(191), n); + n(); } - }), - _(y(n), 'onResizeStop', function(e, t) { - n.onResizeHandler(e, t, 'onResizeStop'); - }), - _(y(n), 'onResizeStart', function(e, t) { - n.onResizeHandler(e, t, 'onResizeStart'); - }), - _(y(n), 'onResize', function(e, t) { - n.onResizeHandler(e, t, 'onResize'); - }), + } + }), + (yc.prototype.render = bc.prototype.render = function(e, t) { + var n = this._internalRoot, + r = new mc(); + return ( + null !== (t = void 0 === t ? null : t) && r.then(t), + pc(e, n, null, r._onCommit), + r + ); + }), + (yc.prototype.unmount = bc.prototype.unmount = function(e) { + var t = this._internalRoot, + n = new mc(); + return ( + null !== (e = void 0 === e ? null : e) && n.then(e), + pc(null, t, null, n._onCommit), n ); - } - var n, i, l; - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { value: e, writable: !0, configurable: !0 } - })), - t && v(e, t); - })(t, e), - (n = t), - (i = [ - { - key: 'componentDidUpdate', - value: function(e) { - this.props.droppingPosition && - e.droppingPosition && - this.moveDroppingItem(e); - } - }, - { - key: 'moveDroppingItem', - value: function(e) { - var t = this.props.droppingPosition, - n = this.state.dragging; - if (t && e.droppingPosition) { - this.currentNode || - (this.currentNode = o.default.findDOMNode(this)); - var r = - (n && t.x !== e.droppingPosition.x) || - t.y !== e.droppingPosition.y; - if (n) { - if (r) { - var i = t.x - n.left, - a = t.y - n.top; - this.onDrag(t.e, { - node: this.currentNode, - deltaX: i, - deltaY: a - }); - } - } else - this.onDragStart(t.e, { - node: this.currentNode, - deltaX: t.x, - deltaY: t.y - }); - } - } - }, - { - key: 'calcColWidth', - value: function() { - var e = this.props, - t = e.margin, - n = e.containerPadding, - r = e.containerWidth, - o = e.cols; - return (r - t[0] * (o - 1) - 2 * n[0]) / o; - } - }, - { - key: 'calcPosition', - value: function(e, t, n, r, o) { - var i = this.props, - a = i.margin, - s = i.containerPadding, - c = i.rowHeight, - u = this.calcColWidth(), - l = {}; - return ( - o && o.resizing - ? ((l.width = Math.round(o.resizing.width)), - (l.height = Math.round(o.resizing.height))) - : ((l.width = - n === 1 / 0 - ? n - : Math.round(u * n + Math.max(0, n - 1) * a[0])), - (l.height = - r === 1 / 0 - ? r - : Math.round(c * r + Math.max(0, r - 1) * a[1]))), - o && o.dragging - ? ((l.top = Math.round(o.dragging.top)), - (l.left = Math.round(o.dragging.left))) - : ((l.top = Math.round((c + a[1]) * t + s[1])), - (l.left = Math.round((u + a[0]) * e + s[0]))), - l - ); - } - }, - { - key: 'calcXY', - value: function(e, t) { - var n = this.props, - r = n.margin, - o = n.cols, - i = n.rowHeight, - a = n.w, - s = n.h, - c = n.maxRows, - u = this.calcColWidth(), - l = Math.round((t - r[0]) / (u + r[0])), - f = Math.round((e - r[1]) / (i + r[1])); - return { - x: (l = Math.max(Math.min(l, o - a), 0)), - y: (f = Math.max(Math.min(f, c - s), 0)) - }; - } - }, - { - key: 'calcWH', - value: function(e) { - var t = e.height, - n = e.width, - r = this.props, - o = r.margin, - i = r.maxRows, - a = r.cols, - s = r.rowHeight, - c = r.x, - u = r.y, - l = this.calcColWidth(), - f = Math.round((n + o[0]) / (l + o[0])), - d = Math.round((t + o[1]) / (s + o[1])); - return { - w: (f = Math.max(Math.min(f, a - c), 0)), - h: (d = Math.max(Math.min(d, i - u), 0)) - }; - } - }, - { - key: 'createStyle', - value: function(e) { - var t, - n = this.props, - r = n.usePercentages, - o = n.containerWidth; - return ( - n.useCSSTransforms - ? (t = (0, c.setTransform)(e)) - : ((t = (0, c.setTopLeft)(e)), - r && - ((t.left = (0, c.perc)(e.left / o)), - (t.width = (0, c.perc)(e.width / o)))), - t + }), + (yc.prototype.createBatch = function() { + var e = new gc(this), + t = e._expirationTime, + n = this._internalRoot, + r = n.firstBatch; + if (null === r) (n.firstBatch = e), (e._next = null); + else { + for (n = null; null !== r && r._expirationTime >= t; ) + (n = r), (r = r._next); + (e._next = r), null !== n && (n._next = e); + } + return e; + }), + (De = Rs), + (je = Is), + (ze = Ns), + (Ne = function(e, t) { + var n = as; + as |= 2; + try { + return e(t); + } finally { + (as = n) === Qa && mo(); + } + }); + var xc, + Mc, + kc = { + createPortal: wc, + findDOMNode: function(e) { + if (null == e) e = null; + else if (1 !== e.nodeType) { + var t = e._reactInternalFiber; + if (void 0 === t) { + if ('function' == typeof e.render) throw a(Error(188)); + throw a(Error(268), Object.keys(e)); + } + e = null === (e = cn(t)) ? null : e.stateNode; + } + return e; + }, + hydrate: function(e, t, n) { + if (!vc(t)) throw a(Error(200)); + return _c(null, e, t, !0, n); + }, + render: function(e, t, n) { + if (!vc(t)) throw a(Error(200)); + return _c(null, e, t, !1, n); + }, + unstable_renderSubtreeIntoContainer: function(e, t, n, r) { + if (!vc(n)) throw a(Error(200)); + if (null == e || void 0 === e._reactInternalFiber) + throw a(Error(38)); + return _c(e, t, n, !1, r); + }, + unmountComponentAtNode: function(e) { + if (!vc(e)) throw a(Error(40)); + return ( + !!e._reactRootContainer && + (Fs(function() { + _c(null, null, e, !1, function() { + e._reactRootContainer = null; + }); + }), + !0) + ); + }, + unstable_createPortal: function() { + return wc.apply(void 0, arguments); + }, + unstable_batchedUpdates: Rs, + unstable_interactiveUpdates: function(e, t, n, r) { + return Ns(), Is(e, t, n, r); + }, + unstable_discreteUpdates: Is, + unstable_flushDiscreteUpdates: Ns, + flushSync: function(e, t) { + if ((as & (Za | es)) !== Qa) throw a(Error(187)); + var n = as; + as |= 1; + try { + return po(99, e.bind(null, t)); + } finally { + (as = n), mo(); + } + }, + unstable_createRoot: function(e, t) { + if (!vc(e)) throw a(Error(299), 'unstable_createRoot'); + return new yc(e, null != t && !0 === t.hydrate); + }, + unstable_createSyncRoot: function(e, t) { + if (!vc(e)) throw a(Error(299), 'unstable_createRoot'); + return new bc(e, 1, null != t && !0 === t.hydrate); + }, + unstable_flushControlled: function(e) { + var t = as; + as |= 1; + try { + po(99, e); + } finally { + (as = t) === Qa && mo(); + } + }, + __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { + Events: [ + R, + I, + F, + L.injectEventPluginsByName, + d, + V, + function(e) { + E(e, W); + }, + Le, + Pe, + Fn, + C, + Xs, + { current: !1 } + ] + } + }; + (Mc = (xc = { + findFiberByHostInstance: N, + bundleType: 0, + version: '16.9.0', + rendererPackageName: 'react-dom' + }).findFiberByHostInstance), + (function(e) { + if ('undefined' == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; + var t = __REACT_DEVTOOLS_GLOBAL_HOOK__; + if (t.isDisabled || !t.supportsFiber) return !0; + try { + var n = t.inject(e); + (ec = function(e) { + try { + t.onCommitFiberRoot( + n, + e, + void 0, + 64 == (64 & e.current.effectTag) ); - } + } catch (e) {} + }), + (tc = function(e) { + try { + t.onCommitFiberUnmount(n, e); + } catch (e) {} + }); + } catch (e) {} + })( + o({}, xc, { + overrideHookState: null, + overrideProps: null, + setSuspenseHandler: null, + scheduleUpdate: null, + currentDispatcherRef: Ue.ReactCurrentDispatcher, + findHostInstanceByFiber: function(e) { + return null === (e = cn(e)) ? null : e.stateNode; }, - { - key: 'mixinDraggable', - value: function(e) { - return r.default.createElement( - a.DraggableCore, - { - onStart: this.onDragStart, - onDrag: this.onDrag, - onStop: this.onDragStop, - handle: this.props.handle, - cancel: - '.react-resizable-handle' + - (this.props.cancel ? ',' + this.props.cancel : ''), - scale: this.props.transformScale - }, - e - ); - } + findFiberByHostInstance: function(e) { + return Mc ? Mc(e) : null; }, - { - key: 'mixinResizable', - value: function(e, t) { - var n = this.props, - o = n.cols, - i = n.x, - a = n.minW, - c = n.minH, - u = n.maxW, - l = n.maxH, - f = this.calcPosition(0, 0, o - i, 0).width, - d = this.calcPosition(0, 0, a, c), - p = this.calcPosition(0, 0, u, l), - h = [d.width, d.height], - g = [Math.min(p.width, f), Math.min(p.height, 1 / 0)]; - return r.default.createElement( - s.Resizable, - { - width: t.width, - height: t.height, - minConstraints: h, - maxConstraints: g, - onResizeStop: this.onResizeStop, - onResizeStart: this.onResizeStart, - onResize: this.onResize - }, - e - ); + findHostInstancesForRefresh: null, + scheduleRefresh: null, + scheduleRoot: null, + setRefreshHandler: null, + getCurrentFiber: null + }) + ); + var Sc = { default: kc }, + Oc = (Sc && kc) || Sc; + e.exports = Oc.default || Oc; + }, + function(e, t, n) { + 'use strict'; + e.exports = n(475); + }, + function(e, t, n) { + 'use strict'; + /** @license React v0.15.0 + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ Object.defineProperty(t, '__esModule', { value: !0 }); + var r = void 0, + o = void 0, + i = void 0, + a = void 0, + s = void 0; + if ( + ((t.unstable_now = void 0), + (t.unstable_forceFrameRate = void 0), + 'undefined' == typeof window || 'function' != typeof MessageChannel) + ) { + var c = null, + u = null, + l = function() { + if (null !== c) + try { + var e = t.unstable_now(); + c(!0, e), (c = null); + } catch (e) { + throw (setTimeout(l, 0), e); } - }, - { - key: 'onResizeHandler', - value: function(e, t, n) { - var r = t.node, - o = t.size, - i = this.props[n]; - if (i) { - var a = this.props, - s = a.cols, - c = a.x, - u = a.i, - l = a.maxW, - f = a.minW, - d = a.maxH, - p = a.minH, - h = this.calcWH(o), - g = h.w, - m = h.h; - (g = Math.min(g, s - c)), - (g = Math.max(g, 1)), - (g = Math.max(Math.min(g, l), f)), - (m = Math.max(Math.min(m, d), p)), - this.setState({ - resizing: 'onResizeStop' === n ? null : o - }), - i.call(this, u, g, m, { e: e, node: r, size: o }); + }; + (t.unstable_now = function() { + return Date.now(); + }), + (r = function(e) { + null !== c ? setTimeout(r, 0, e) : ((c = e), setTimeout(l, 0)); + }), + (o = function(e, t) { + u = setTimeout(e, t); + }), + (i = function() { + clearTimeout(u); + }), + (a = function() { + return !1; + }), + (s = t.unstable_forceFrameRate = function() {}); + } else { + var f = window.performance, + d = window.Date, + p = window.setTimeout, + h = window.clearTimeout, + g = window.requestAnimationFrame, + m = window.cancelAnimationFrame; + 'undefined' != typeof console && + ('function' != typeof g && + console.error( + "This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills" + ), + 'function' != typeof m && + console.error( + "This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills" + )), + (t.unstable_now = + 'object' == typeof f && 'function' == typeof f.now + ? function() { + return f.now(); } - } - }, - { - key: 'render', - value: function() { - var e = this.props, - t = e.x, - n = e.y, - o = e.w, - i = e.h, - a = e.isDraggable, - s = e.isResizable, - c = e.droppingPosition, - l = e.useCSSTransforms, - f = this.calcPosition(t, n, o, i, this.state), - d = r.default.Children.only(this.props.children), - h = r.default.cloneElement(d, { - className: (0, u.default)( - 'react-grid-item', - d.props.className, - this.props.className, - { - static: this.props.static, - resizing: Boolean(this.state.resizing), - 'react-draggable': a, - 'react-draggable-dragging': Boolean( - this.state.dragging - ), - dropping: Boolean(c), - cssTransforms: l - } - ), - style: p( - {}, - this.props.style, - {}, - d.props.style, - {}, - this.createStyle(f) - ) - }); - return ( - s && (h = this.mixinResizable(h, f)), - a && (h = this.mixinDraggable(h)), - h - ); + : function() { + return d.now(); + }); + var b = !1, + y = null, + v = -1, + _ = -1, + w = 33.33, + x = -1, + M = -1, + k = 0, + S = !1; + (a = function() { + return t.unstable_now() >= k; + }), + (s = function() {}), + (t.unstable_forceFrameRate = function(e) { + 0 > e || 125 < e + ? console.error( + 'forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported' + ) + : 0 < e + ? ((w = Math.floor(1e3 / e)), (S = !0)) + : ((w = 33.33), (S = !1)); + }); + var O = function() { + if (null !== y) { + var e = t.unstable_now(), + n = 0 < k - e; + try { + y(n, e) || (y = null); + } catch (e) { + throw (A.postMessage(null), e); } } - ]) && g(n.prototype, i), - l && g(n, l), - t - ); - })(r.default.Component); - (t.default = x), - _(x, 'propTypes', { - children: i.default.element, - cols: i.default.number.isRequired, - containerWidth: i.default.number.isRequired, - rowHeight: i.default.number.isRequired, - margin: i.default.array.isRequired, - maxRows: i.default.number.isRequired, - containerPadding: i.default.array.isRequired, - x: i.default.number.isRequired, - y: i.default.number.isRequired, - w: i.default.number.isRequired, - h: i.default.number.isRequired, - minW: function(e, t) { - var n = e[t]; - return 'number' != typeof n - ? new Error('minWidth not Number') - : n > e.w || n > e.maxW - ? new Error('minWidth larger than item width/maxWidth') - : void 0; - }, - maxW: function(e, t) { - var n = e[t]; - return 'number' != typeof n - ? new Error('maxWidth not Number') - : n < e.w || n < e.minW - ? new Error('maxWidth smaller than item width/minWidth') - : void 0; - }, - minH: function(e, t) { - var n = e[t]; - return 'number' != typeof n - ? new Error('minHeight not Number') - : n > e.h || n > e.maxH - ? new Error('minHeight larger than item height/maxHeight') - : void 0; - }, - maxH: function(e, t) { - var n = e[t]; - return 'number' != typeof n - ? new Error('maxHeight not Number') - : n < e.h || n < e.minH - ? new Error('maxHeight smaller than item height/minHeight') - : void 0; }, - i: i.default.string.isRequired, - onDragStop: i.default.func, - onDragStart: i.default.func, - onDrag: i.default.func, - onResizeStop: i.default.func, - onResizeStart: i.default.func, - onResize: i.default.func, - isDraggable: i.default.bool.isRequired, - isResizable: i.default.bool.isRequired, - static: i.default.bool, - useCSSTransforms: i.default.bool.isRequired, - transformScale: i.default.number, - className: i.default.string, - handle: i.default.string, - cancel: i.default.string, - droppingPosition: i.default.shape({ - e: i.default.object.isRequired, - x: i.default.number.isRequired, - y: i.default.number.isRequired - }) + E = new MessageChannel(), + A = E.port2; + E.port1.onmessage = O; + var T = function(e) { + if (null === y) (M = x = -1), (b = !1); + else { + (b = !0), + g(function(e) { + h(v), T(e); + }); + var n = function() { + (k = t.unstable_now() + w / 2), O(), (v = p(n, 3 * w)); + }; + if (((v = p(n, 3 * w)), -1 !== x && 0.1 < e - x)) { + var r = e - x; + !S && + -1 !== M && + r < w && + M < w && + (8.33 > (w = r < M ? M : r) && (w = 8.33)), + (M = r); + } + (x = e), (k = e + w), A.postMessage(null); + } + }; + (r = function(e) { + (y = e), + b || + ((b = !0), + g(function(e) { + T(e); + })); }), - _(x, 'defaultProps', { - className: '', - cancel: '', - handle: '', - minH: 1, - minW: 1, - maxH: 1 / 0, - maxW: 1 / 0, - transformScale: 1 + (o = function(e, n) { + _ = p(function() { + e(t.unstable_now()); + }, n); + }), + (i = function() { + h(_), (_ = -1); + }); + } + var C = null, + L = null, + P = null, + D = 3, + j = !1, + z = !1, + N = !1; + function R(e, t) { + var n = e.next; + if (n === e) C = null; + else { + e === C && (C = n); + var r = e.previous; + (r.next = n), (n.previous = r); + } + (e.next = e.previous = null), (n = e.callback), (r = D); + var o = P; + (D = e.priorityLevel), (P = e); + try { + var i = e.expirationTime <= t; + switch (D) { + case 1: + var a = n(i); + break; + case 2: + case 3: + case 4: + a = n(i); + break; + case 5: + a = n(i); + } + } catch (e) { + throw e; + } finally { + (D = r), (P = o); + } + if ('function' == typeof a) + if (((t = e.expirationTime), (e.callback = a), null === C)) + C = e.next = e.previous = e; + else { + (a = null), (i = C); + do { + if (t <= i.expirationTime) { + a = i; + break; + } + i = i.next; + } while (i !== C); + null === a ? (a = C) : a === C && (C = e), + ((t = a.previous).next = a.previous = e), + (e.next = a), + (e.previous = t); + } + } + function I(e) { + if (null !== L && L.startTime <= e) + do { + var t = L, + n = t.next; + if (t === n) L = null; + else { + L = n; + var r = t.previous; + (r.next = n), (n.previous = r); + } + (t.next = t.previous = null), H(t, t.expirationTime); + } while (null !== L && L.startTime <= e); + } + function F(e) { + (N = !1), + I(e), + z || + (null !== C + ? ((z = !0), r(q)) + : null !== L && o(F, L.startTime - e)); + } + function q(e, n) { + (z = !1), N && ((N = !1), i()), I(n), (j = !0); + try { + if (e) { + if (null !== C) + do { + R(C, n), I((n = t.unstable_now())); + } while (null !== C && !a()); + } else + for (; null !== C && C.expirationTime <= n; ) + R(C, n), I((n = t.unstable_now())); + return null !== C || (null !== L && o(F, L.startTime - n), !1); + } finally { + j = !1; + } + } + function B(e) { + switch (e) { + case 1: + return -1; + case 2: + return 250; + case 5: + return 1073741823; + case 4: + return 1e4; + default: + return 5e3; + } + } + function H(e, t) { + if (null === C) C = e.next = e.previous = e; + else { + var n = null, + r = C; + do { + if (t < r.expirationTime) { + n = r; + break; + } + r = r.next; + } while (r !== C); + null === n ? (n = C) : n === C && (C = e), + ((t = n.previous).next = n.previous = e), + (e.next = n), + (e.previous = t); + } + } + var Y = s; + (t.unstable_ImmediatePriority = 1), + (t.unstable_UserBlockingPriority = 2), + (t.unstable_NormalPriority = 3), + (t.unstable_IdlePriority = 5), + (t.unstable_LowPriority = 4), + (t.unstable_runWithPriority = function(e, t) { + switch (e) { + case 1: + case 2: + case 3: + case 4: + case 5: + break; + default: + e = 3; + } + var n = D; + D = e; + try { + return t(); + } finally { + D = n; + } + }), + (t.unstable_next = function(e) { + switch (D) { + case 1: + case 2: + case 3: + var t = 3; + break; + default: + t = D; + } + var n = D; + D = t; + try { + return e(); + } finally { + D = n; + } + }), + (t.unstable_scheduleCallback = function(e, n, a) { + var s = t.unstable_now(); + if ('object' == typeof a && null !== a) { + var c = a.delay; + (c = 'number' == typeof c && 0 < c ? s + c : s), + (a = 'number' == typeof a.timeout ? a.timeout : B(e)); + } else (a = B(e)), (c = s); + if ( + ((e = { + callback: n, + priorityLevel: e, + startTime: c, + expirationTime: (a = c + a), + next: null, + previous: null + }), + c > s) + ) { + if (((a = c), null === L)) L = e.next = e.previous = e; + else { + n = null; + var u = L; + do { + if (a < u.startTime) { + n = u; + break; + } + u = u.next; + } while (u !== L); + null === n ? (n = L) : n === L && (L = e), + ((a = n.previous).next = n.previous = e), + (e.next = n), + (e.previous = a); + } + null === C && L === e && (N ? i() : (N = !0), o(F, c - s)); + } else H(e, a), z || j || ((z = !0), r(q)); + return e; + }), + (t.unstable_cancelCallback = function(e) { + var t = e.next; + if (null !== t) { + if (e === t) e === C ? (C = null) : e === L && (L = null); + else { + e === C ? (C = t) : e === L && (L = t); + var n = e.previous; + (n.next = t), (t.previous = n); + } + e.next = e.previous = null; + } + }), + (t.unstable_wrapCallback = function(e) { + var t = D; + return function() { + var n = D; + D = t; + try { + return e.apply(this, arguments); + } finally { + D = n; + } + }; + }), + (t.unstable_getCurrentPriorityLevel = function() { + return D; + }), + (t.unstable_shouldYield = function() { + var e = t.unstable_now(); + return ( + I(e), + (null !== P && + null !== C && + C.startTime <= e && + C.expirationTime < P.expirationTime) || + a() + ); + }), + (t.unstable_requestPaint = Y), + (t.unstable_continueExecution = function() { + z || j || ((z = !0), r(q)); + }), + (t.unstable_pauseExecution = function() {}), + (t.unstable_getFirstCallbackNode = function() { + return C; + }); + }, + function(e, t, n) { + 'use strict'; + var r = n(477); + function o() {} + function i() {} + (i.resetWarningCache = o), + (e.exports = function() { + function e(e, t, n, o, i, a) { + if (a !== r) { + var s = 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 ((s.name = 'Invariant Violation'), s); + } + } + function t() { + return e; + } + e.isRequired = e; + var n = { + array: e, + bool: e, + func: e, + number: e, + object: e, + string: e, + symbol: e, + any: e, + arrayOf: t, + element: e, + elementType: e, + instanceOf: t, + node: e, + objectOf: t, + oneOf: t, + oneOfType: t, + shape: t, + exact: t, + checkPropTypes: i, + resetWarningCache: o + }; + return (n.PropTypes = n), n; + }); + }, + function(e, t, n) { + 'use strict'; + e.exports = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + }, + function(e, t, n) { + 'use strict'; + /** @license React v16.9.0 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ Object.defineProperty(t, '__esModule', { value: !0 }); + var r = 'function' == typeof Symbol && Symbol.for, + o = r ? Symbol.for('react.element') : 60103, + i = r ? Symbol.for('react.portal') : 60106, + a = r ? Symbol.for('react.fragment') : 60107, + s = r ? Symbol.for('react.strict_mode') : 60108, + c = r ? Symbol.for('react.profiler') : 60114, + u = r ? Symbol.for('react.provider') : 60109, + l = r ? Symbol.for('react.context') : 60110, + f = r ? Symbol.for('react.async_mode') : 60111, + d = r ? Symbol.for('react.concurrent_mode') : 60111, + p = r ? Symbol.for('react.forward_ref') : 60112, + h = r ? Symbol.for('react.suspense') : 60113, + g = r ? Symbol.for('react.suspense_list') : 60120, + m = r ? Symbol.for('react.memo') : 60115, + b = r ? Symbol.for('react.lazy') : 60116, + y = r ? Symbol.for('react.fundamental') : 60117, + v = r ? Symbol.for('react.responder') : 60118; + function _(e) { + if ('object' == typeof e && null !== e) { + var t = e.$$typeof; + switch (t) { + case o: + switch ((e = e.type)) { + case f: + case d: + case a: + case c: + case s: + case h: + return e; + default: + switch ((e = e && e.$$typeof)) { + case l: + case p: + case u: + return e; + default: + return t; + } + } + case b: + case m: + case i: + return t; + } + } + } + function w(e) { + return _(e) === d; + } + (t.typeOf = _), + (t.AsyncMode = f), + (t.ConcurrentMode = d), + (t.ContextConsumer = l), + (t.ContextProvider = u), + (t.Element = o), + (t.ForwardRef = p), + (t.Fragment = a), + (t.Lazy = b), + (t.Memo = m), + (t.Portal = i), + (t.Profiler = c), + (t.StrictMode = s), + (t.Suspense = h), + (t.isValidElementType = function(e) { + return ( + 'string' == typeof e || + 'function' == typeof e || + e === a || + e === d || + e === c || + e === s || + e === h || + e === g || + ('object' == typeof e && + null !== e && + (e.$$typeof === b || + e.$$typeof === m || + e.$$typeof === u || + e.$$typeof === l || + e.$$typeof === p || + e.$$typeof === y || + e.$$typeof === v)) + ); + }), + (t.isAsyncMode = function(e) { + return w(e) || _(e) === f; + }), + (t.isConcurrentMode = w), + (t.isContextConsumer = function(e) { + return _(e) === l; + }), + (t.isContextProvider = function(e) { + return _(e) === u; + }), + (t.isElement = function(e) { + return 'object' == typeof e && null !== e && e.$$typeof === o; + }), + (t.isForwardRef = function(e) { + return _(e) === p; + }), + (t.isFragment = function(e) { + return _(e) === a; + }), + (t.isLazy = function(e) { + return _(e) === b; + }), + (t.isMemo = function(e) { + return _(e) === m; + }), + (t.isPortal = function(e) { + return _(e) === i; + }), + (t.isProfiler = function(e) { + return _(e) === c; + }), + (t.isStrictMode = function(e) { + return _(e) === s; + }), + (t.isSuspense = function(e) { + return _(e) === h; }); }, + function(e, t) { + e.exports = function(e) { + if (!e.webpackPolyfill) { + var t = Object.create(e); + t.children || (t.children = []), + Object.defineProperty(t, 'loaded', { + enumerable: !0, + get: function() { + return t.l; + } + }), + Object.defineProperty(t, 'id', { + enumerable: !0, + get: function() { + return t.i; + } + }), + Object.defineProperty(t, 'exports', { enumerable: !0 }), + (t.webpackPolyfill = 1); + } + return t; + }; + }, + function(e, t) { + e.exports = function(e) { + if (Array.isArray(e)) { + for (var t = 0, n = new Array(e.length); t < e.length; t++) + n[t] = e[t]; + return n; + } + }; + }, + function(e, t) { + e.exports = function(e) { + if ( + Symbol.iterator in Object(e) || + '[object Arguments]' === Object.prototype.toString.call(e) + ) + return Array.from(e); + }; + }, + function(e, t) { + e.exports = function() { + throw new TypeError('Invalid attempt to spread non-iterable instance'); + }; + }, function(e, t, n) { 'use strict'; - (e.exports = function() { - throw new Error( - "Don't instantiate Resizable directly! Use require('react-resizable').Resizable" - ); - }), - (e.exports.Resizable = n(214).default), - (e.exports.ResizableBox = n(548).default); + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = function(e) { + (e.hide = function(e) { + a(i.default.GLOBAL.HIDE, { target: e }); + }), + (e.rebuild = function() { + a(i.default.GLOBAL.REBUILD); + }), + (e.show = function(e) { + a(i.default.GLOBAL.SHOW, { target: e }); + }), + (e.prototype.globalRebuild = function() { + this.mount && (this.unbindListener(), this.bindListener()); + }), + (e.prototype.globalShow = function(e) { + if (this.mount) { + var t = { currentTarget: e.detail.target }; + this.showTooltip(t, !0); + } + }), + (e.prototype.globalHide = function(e) { + if (this.mount) { + var t = !!(e && e.detail && e.detail.target); + this.hideTooltip({ currentTarget: t && e.detail.target }, t); + } + }); + }); + var r, + o = n(203), + i = (r = o) && r.__esModule ? r : { default: r }; + var a = function(e, t) { + var n = void 0; + 'function' == typeof window.CustomEvent + ? (n = new window.CustomEvent(e, { detail: t })) + : ((n = document.createEvent('Event')).initEvent(e, !1, !0), + (n.detail = t)), + window.dispatchEvent(n); + }; }, function(e, t, n) { 'use strict'; - (t.__esModule = !0), - (t.cloneElement = function(e, t) { - t.style && - e.props.style && - (t.style = (function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}; - t % 2 - ? i(n, !0).forEach(function(t) { - a(e, t, n[t]); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties( - e, - Object.getOwnPropertyDescriptors(n) - ) - : i(n).forEach(function(t) { - Object.defineProperty( - e, - t, - Object.getOwnPropertyDescriptor(n, t) - ); - }); - } - return e; - })({}, e.props.style, {}, t.style)); - t.className && - e.props.className && - (t.className = e.props.className + ' ' + t.className); - return o.default.cloneElement(e, t); + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = function(e) { + (e.prototype.bindWindowEvents = function(e) { + window.removeEventListener(i.default.GLOBAL.HIDE, this.globalHide), + window.addEventListener( + i.default.GLOBAL.HIDE, + this.globalHide, + !1 + ), + window.removeEventListener( + i.default.GLOBAL.REBUILD, + this.globalRebuild + ), + window.addEventListener( + i.default.GLOBAL.REBUILD, + this.globalRebuild, + !1 + ), + window.removeEventListener( + i.default.GLOBAL.SHOW, + this.globalShow + ), + window.addEventListener( + i.default.GLOBAL.SHOW, + this.globalShow, + !1 + ), + e && + (window.removeEventListener('resize', this.onWindowResize), + window.addEventListener('resize', this.onWindowResize, !1)); + }), + (e.prototype.unbindWindowEvents = function() { + window.removeEventListener( + i.default.GLOBAL.HIDE, + this.globalHide + ), + window.removeEventListener( + i.default.GLOBAL.REBUILD, + this.globalRebuild + ), + window.removeEventListener( + i.default.GLOBAL.SHOW, + this.globalShow + ), + window.removeEventListener('resize', this.onWindowResize); + }), + (e.prototype.onWindowResize = function() { + this.mount && this.hideTooltip(); + }); }); var r, - o = (r = n(0)) && r.__esModule ? r : { default: r }; - function i(e, t) { - var n = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var r = Object.getOwnPropertySymbols(e); - t && - (r = r.filter(function(t) { - return Object.getOwnPropertyDescriptor(e, t).enumerable; - })), - n.push.apply(n, r); - } - return n; - } - function a(e, t, n) { + o = n(203), + i = (r = o) && r.__esModule ? r : { default: r }; + }, + function(e, t, n) { + 'use strict'; + function r(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { @@ -144502,663 +142084,1284 @@ object-assign e ); } + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = function(e) { + (e.prototype.isCustomEvent = function(e) { + return this.state.event || !!e.getAttribute('data-event'); + }), + (e.prototype.customBindListener = function(e) { + var t = this, + n = this.state, + r = n.event, + i = n.eventOff, + s = e.getAttribute('data-event') || r, + c = e.getAttribute('data-event-off') || i; + s.split(' ').forEach(function(n) { + e.removeEventListener(n, a.get(e, n)); + var r = o.bind(t, c); + a.set(e, n, r), e.addEventListener(n, r, !1); + }), + c && + c.split(' ').forEach(function(n) { + e.removeEventListener(n, t.hideTooltip), + e.addEventListener(n, t.hideTooltip, !1); + }); + }), + (e.prototype.customUnbindListener = function(e) { + var t = this.state, + n = t.event, + r = t.eventOff, + o = n || e.getAttribute('data-event'), + i = r || e.getAttribute('data-event-off'); + e.removeEventListener(o, a.get(e, n)), + i && e.removeEventListener(i, this.hideTooltip); + }); + }); + var o = function(e, t) { + var n = this.state.show, + r = this.props.id, + o = t.currentTarget.getAttribute('data-iscapture'), + a = (o && 'true' === o) || this.props.isCapture, + s = t.currentTarget.getAttribute('currentItem'); + a || t.stopPropagation(), + n && 'true' === s + ? e || this.hideTooltip(t) + : (t.currentTarget.setAttribute('currentItem', 'true'), + i(t.currentTarget, this.getTargetArray(r)), + this.showTooltip(t)); + }, + i = function(e, t) { + for (var n = 0; n < t.length; n++) + e !== t[n] + ? t[n].setAttribute('currentItem', 'false') + : t[n].setAttribute('currentItem', 'true'); + }, + a = { + id: '9b69f92e-d3fe-498b-b1b4-c5e63a51b0cf', + set: function(e, t, n) { + this.id in e + ? (e[this.id][t] = n) + : Object.defineProperty(e, this.id, { + configurable: !0, + value: r({}, t, n) + }); + }, + get: function(e, t) { + var n = e[this.id]; + if (void 0 !== n) return n[t]; + } + }; }, function(e, t, n) { 'use strict'; - (t.__esModule = !0), (t.default = void 0); - var r = a(n(0)), - o = a(n(1)), - i = a(n(214)); - function a(e) { - return e && e.__esModule ? e : { default: e }; - } - function s() { - return (s = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = function(e) { + e.prototype.isCapture = function(e) { + return ( + (e && 'true' === e.getAttribute('data-iscapture')) || + this.props.isCapture || + !1 + ); + }; + }); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = function(e) { + e.prototype.getEffect = function(e) { + return ( + e.getAttribute('data-effect') || this.props.effect || 'float' + ); + }; + }); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = function(e) { + (e.prototype.bindRemovalTracker = function() { + var e = this, + t = r(); + if (null != t) { + var n = new t(function(t) { + for (var n = 0; n < t.length; n++) + for (var r = t[n], o = 0; o < r.removedNodes.length; o++) { + if (r.removedNodes[o] === e.state.currentTarget) + return void e.hideTooltip(); + } + }); + n.observe(window.document, { childList: !0, subtree: !0 }), + (this.removalTracker = n); } - return e; - }).apply(this, arguments); - } - function c(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return e; - } - function u(e, t, n) { + }), + (e.prototype.unbindRemovalTracker = function() { + this.removalTracker && + (this.removalTracker.disconnect(), + (this.removalTracker = null)); + }); + }); + var r = function() { return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e + window.MutationObserver || + window.WebKitMutationObserver || + window.MozMutationObserver ); - } - var l = (function(e) { - var t, n; - function o() { - for (var t, n = arguments.length, r = new Array(n), o = 0; o < n; o++) - r[o] = arguments[o]; + }; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = function(e, t, n, c, u, l, f) { + for ( + var d = r(n), + p = d.width, + h = d.height, + g = r(t), + m = g.width, + b = g.height, + y = o(e, t, l), + v = y.mouseX, + _ = y.mouseY, + w = i(l, m, b, p, h), + x = a(f), + M = x.extraOffset_X, + k = x.extraOffset_Y, + S = window.innerWidth, + O = window.innerHeight, + E = s(n), + A = E.parentTop, + T = E.parentLeft, + C = function(e) { + var t = w[e].l; + return v + t + M; + }, + L = function(e) { + var t = w[e].t; + return _ + t + k; + }, + P = function(e) { + return ( + (function(e) { + var t = w[e].r; + return v + t + M; + })(e) > S + ); + }, + D = function(e) { + return ( + (function(e) { + var t = w[e].b; + return _ + t + k; + })(e) > O + ); + }, + j = function(e) { + return ( + (function(e) { + return C(e) < 0; + })(e) || + P(e) || + (function(e) { + return L(e) < 0; + })(e) || + D(e) + ); + }, + z = function(e) { + return !j(e); + }, + N = ['top', 'bottom', 'left', 'right'], + R = [], + I = 0; + I < 4; + I++ + ) { + var F = N[I]; + z(F) && R.push(F); + } + var q = !1, + B = void 0; return ( - u(c((t = e.call.apply(e, [this].concat(r)) || this)), 'state', { - width: t.props.width, - height: t.props.height, - propsWidth: t.props.width, - propsHeight: t.props.height - }), - u(c(t), 'onResize', function(e, n) { - var r = n.size; - r.width, r.height; - t.props.onResize - ? (e.persist && e.persist(), - t.setState(r, function() { - return t.props.onResize && t.props.onResize(e, n); - })) - : t.setState(r); - }), + z(u) && u !== c + ? ((q = !0), (B = u)) + : R.length > 0 && j(u) && j(c) && ((q = !0), (B = R[0])), + q + ? { isNewState: !0, newState: { place: B } } + : { + isNewState: !1, + position: { + left: parseInt(C(c) - T, 10), + top: parseInt(L(c) - A, 10) + } + } + ); + }); + var r = function(e) { + var t = e.getBoundingClientRect(), + n = t.height, + r = t.width; + return { height: parseInt(n, 10), width: parseInt(r, 10) }; + }, + o = function(e, t, n) { + var o = t.getBoundingClientRect(), + i = o.top, + a = o.left, + s = r(t), + c = s.width, + u = s.height; + return 'float' === n + ? { mouseX: e.clientX, mouseY: e.clientY } + : { mouseX: a + c / 2, mouseY: i + u / 2 }; + }, + i = function(e, t, n, r, o) { + var i = void 0, + a = void 0, + s = void 0, + c = void 0; + return ( + 'float' === e + ? ((i = { l: -r / 2, r: r / 2, t: -(o + 3 + 2), b: -3 }), + (s = { l: -r / 2, r: r / 2, t: 15, b: o + 3 + 2 + 12 }), + (c = { l: -(r + 3 + 2), r: -3, t: -o / 2, b: o / 2 }), + (a = { l: 3, r: r + 3 + 2, t: -o / 2, b: o / 2 })) + : 'solid' === e && + ((i = { l: -r / 2, r: r / 2, t: -(n / 2 + o + 2), b: -n / 2 }), + (s = { l: -r / 2, r: r / 2, t: n / 2, b: n / 2 + o + 2 }), + (c = { l: -(r + t / 2 + 2), r: -t / 2, t: -o / 2, b: o / 2 }), + (a = { l: t / 2, r: r + t / 2 + 2, t: -o / 2, b: o / 2 })), + { top: i, bottom: s, left: c, right: a } + ); + }, + a = function(e) { + var t = 0, + n = 0; + for (var r in ('[object String]' === + Object.prototype.toString.apply(e) && + (e = JSON.parse(e.toString().replace(/\'/g, '"'))), + e)) + 'top' === r + ? (n -= parseInt(e[r], 10)) + : 'bottom' === r + ? (n += parseInt(e[r], 10)) + : 'left' === r + ? (t -= parseInt(e[r], 10)) + : 'right' === r && (t += parseInt(e[r], 10)); + return { extraOffset_X: t, extraOffset_Y: n }; + }, + s = function(e) { + for ( + var t = e; + t && + 'none' === window.getComputedStyle(t).getPropertyValue('transform'); + + ) + t = t.parentElement; + return { + parentTop: (t && t.getBoundingClientRect().top) || 0, + parentLeft: (t && t.getBoundingClientRect().left) || 0 + }; + }; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = function(e, t, n, r) { + if (t) return t; + if (null != n) return n; + if (null === n) return null; + var o = //; + return r && 'false' !== r && o.test(e) + ? e.split(o).map(function(e, t) { + return i.default.createElement( + 'span', + { key: t, className: 'multi-line' }, + e + ); + }) + : e; + }); + var r, + o = n(0), + i = (r = o) && r.__esModule ? r : { default: r }; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.parseAria = function(e) { + var t = {}; + return ( + Object.keys(e) + .filter(function(e) { + return /(^aria-\w+$|^role$)/.test(e); + }) + .forEach(function(n) { + t[n] = e[n]; + }), t ); - } - return ( - (n = e), - ((t = o).prototype = Object.create(n.prototype)), - (t.prototype.constructor = t), - (t.__proto__ = n), - (o.getDerivedStateFromProps = function(e, t) { - return t.propsWidth !== e.width || t.propsHeight !== e.height - ? { - width: e.width, - height: e.height, - propsWidth: e.width, - propsHeight: e.height - } - : null; - }), - (o.prototype.render = function() { - var e = this.props, - t = e.handle, - n = e.handleSize, - o = (e.onResize, e.onResizeStart), - a = e.onResizeStop, - c = e.draggableOpts, - u = e.minConstraints, - l = e.maxConstraints, - f = e.lockAspectRatio, - d = e.axis, - p = (e.width, e.height, e.resizeHandles), - h = (function(e, t) { - if (null == e) return {}; - var n, - r, - o = {}, - i = Object.keys(e); - for (r = 0; r < i.length; r++) - (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); - return o; - })(e, [ - 'handle', - 'handleSize', - 'onResize', - 'onResizeStart', - 'onResizeStop', - 'draggableOpts', - 'minConstraints', - 'maxConstraints', - 'lockAspectRatio', - 'axis', - 'width', - 'height', - 'resizeHandles' - ]); - return r.default.createElement( - i.default, - { - handle: t, - handleSize: n, - width: this.state.width, - height: this.state.height, - onResizeStart: o, - onResize: this.onResize, - onResizeStop: a, - draggableOpts: c, - minConstraints: u, - maxConstraints: l, - lockAspectRatio: f, - axis: d, - resizeHandles: p - }, - r.default.createElement( - 'div', - s( - { - style: { - width: this.state.width + 'px', - height: this.state.height + 'px' - } - }, - h - ) - ) - ); - }), - o - ); - })(r.default.Component); - (t.default = l), - u(l, 'propTypes', { - height: o.default.number, - width: o.default.number - }), - u(l, 'defaultProps', { handleSize: [20, 20] }); + }); }, function(e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = void 0); - var r = u(n(0)), - o = u(n(1)), - i = u(n(144)), - a = n(89), - s = n(215), - c = u(n(212)); - function u(e) { - return e && e.__esModule ? e : { default: e }; - } - function l(e) { - return (l = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(e) { - return typeof e; + (t.default = function(e) { + var t = e.length; + return e.hasOwnProperty + ? Array.prototype.slice.call(e) + : new Array(t).fill().map(function(t) { + return e[t]; + }); + }); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = + '.__react_component_tooltip{border-radius:3px;display:inline-block;font-size:13px;left:-999em;opacity:0;padding:8px 21px;position:fixed;pointer-events:none;transition:opacity 0.3s ease-out;top:-999em;visibility:hidden;z-index:999}.__react_component_tooltip.allow_hover,.__react_component_tooltip.allow_click{pointer-events:auto}.__react_component_tooltip:before,.__react_component_tooltip:after{content:"";width:0;height:0;position:absolute}.__react_component_tooltip.show{opacity:0.9;margin-top:0px;margin-left:0px;visibility:visible}.__react_component_tooltip.type-dark{color:#fff;background-color:#222}.__react_component_tooltip.type-dark.place-top:after{border-top-color:#222;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-dark.place-bottom:after{border-bottom-color:#222;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-dark.place-left:after{border-left-color:#222;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-dark.place-right:after{border-right-color:#222;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-dark.border{border:1px solid #fff}.__react_component_tooltip.type-dark.border.place-top:before{border-top:8px solid #fff}.__react_component_tooltip.type-dark.border.place-bottom:before{border-bottom:8px solid #fff}.__react_component_tooltip.type-dark.border.place-left:before{border-left:8px solid #fff}.__react_component_tooltip.type-dark.border.place-right:before{border-right:8px solid #fff}.__react_component_tooltip.type-success{color:#fff;background-color:#8DC572}.__react_component_tooltip.type-success.place-top:after{border-top-color:#8DC572;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-success.place-bottom:after{border-bottom-color:#8DC572;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-success.place-left:after{border-left-color:#8DC572;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-success.place-right:after{border-right-color:#8DC572;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-success.border{border:1px solid #fff}.__react_component_tooltip.type-success.border.place-top:before{border-top:8px solid #fff}.__react_component_tooltip.type-success.border.place-bottom:before{border-bottom:8px solid #fff}.__react_component_tooltip.type-success.border.place-left:before{border-left:8px solid #fff}.__react_component_tooltip.type-success.border.place-right:before{border-right:8px solid #fff}.__react_component_tooltip.type-warning{color:#fff;background-color:#F0AD4E}.__react_component_tooltip.type-warning.place-top:after{border-top-color:#F0AD4E;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-warning.place-bottom:after{border-bottom-color:#F0AD4E;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-warning.place-left:after{border-left-color:#F0AD4E;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-warning.place-right:after{border-right-color:#F0AD4E;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-warning.border{border:1px solid #fff}.__react_component_tooltip.type-warning.border.place-top:before{border-top:8px solid #fff}.__react_component_tooltip.type-warning.border.place-bottom:before{border-bottom:8px solid #fff}.__react_component_tooltip.type-warning.border.place-left:before{border-left:8px solid #fff}.__react_component_tooltip.type-warning.border.place-right:before{border-right:8px solid #fff}.__react_component_tooltip.type-error{color:#fff;background-color:#BE6464}.__react_component_tooltip.type-error.place-top:after{border-top-color:#BE6464;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-error.place-bottom:after{border-bottom-color:#BE6464;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-error.place-left:after{border-left-color:#BE6464;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-error.place-right:after{border-right-color:#BE6464;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-error.border{border:1px solid #fff}.__react_component_tooltip.type-error.border.place-top:before{border-top:8px solid #fff}.__react_component_tooltip.type-error.border.place-bottom:before{border-bottom:8px solid #fff}.__react_component_tooltip.type-error.border.place-left:before{border-left:8px solid #fff}.__react_component_tooltip.type-error.border.place-right:before{border-right:8px solid #fff}.__react_component_tooltip.type-info{color:#fff;background-color:#337AB7}.__react_component_tooltip.type-info.place-top:after{border-top-color:#337AB7;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-info.place-bottom:after{border-bottom-color:#337AB7;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-info.place-left:after{border-left-color:#337AB7;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-info.place-right:after{border-right-color:#337AB7;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-info.border{border:1px solid #fff}.__react_component_tooltip.type-info.border.place-top:before{border-top:8px solid #fff}.__react_component_tooltip.type-info.border.place-bottom:before{border-bottom:8px solid #fff}.__react_component_tooltip.type-info.border.place-left:before{border-left:8px solid #fff}.__react_component_tooltip.type-info.border.place-right:before{border-right:8px solid #fff}.__react_component_tooltip.type-light{color:#222;background-color:#fff}.__react_component_tooltip.type-light.place-top:after{border-top-color:#fff;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-light.place-bottom:after{border-bottom-color:#fff;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-light.place-left:after{border-left-color:#fff;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-light.place-right:after{border-right-color:#fff;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-light.border{border:1px solid #222}.__react_component_tooltip.type-light.border.place-top:before{border-top:8px solid #222}.__react_component_tooltip.type-light.border.place-bottom:before{border-bottom:8px solid #222}.__react_component_tooltip.type-light.border.place-left:before{border-left:8px solid #222}.__react_component_tooltip.type-light.border.place-right:before{border-right:8px solid #222}.__react_component_tooltip.place-top{margin-top:-10px}.__react_component_tooltip.place-top:before{border-left:10px solid transparent;border-right:10px solid transparent;bottom:-8px;left:50%;margin-left:-10px}.__react_component_tooltip.place-top:after{border-left:8px solid transparent;border-right:8px solid transparent;bottom:-6px;left:50%;margin-left:-8px}.__react_component_tooltip.place-bottom{margin-top:10px}.__react_component_tooltip.place-bottom:before{border-left:10px solid transparent;border-right:10px solid transparent;top:-8px;left:50%;margin-left:-10px}.__react_component_tooltip.place-bottom:after{border-left:8px solid transparent;border-right:8px solid transparent;top:-6px;left:50%;margin-left:-8px}.__react_component_tooltip.place-left{margin-left:-10px}.__react_component_tooltip.place-left:before{border-top:6px solid transparent;border-bottom:6px solid transparent;right:-8px;top:50%;margin-top:-5px}.__react_component_tooltip.place-left:after{border-top:5px solid transparent;border-bottom:5px solid transparent;right:-6px;top:50%;margin-top:-4px}.__react_component_tooltip.place-right{margin-left:10px}.__react_component_tooltip.place-right:before{border-top:6px solid transparent;border-bottom:6px solid transparent;left:-8px;top:50%;margin-top:-5px}.__react_component_tooltip.place-right:after{border-top:5px solid transparent;border-bottom:5px solid transparent;left:-6px;top:50%;margin-top:-4px}.__react_component_tooltip .multi-line{display:block;padding:2px 0px;text-align:center}'); + }, + function(e, t, n) { + var r = n(116), + o = n(206), + i = n(208), + a = n(524), + s = n(47), + c = n(124), + u = n(216); + e.exports = function e(t, n, l, f, d) { + t !== n && + i( + n, + function(i, c) { + if ((d || (d = new r()), s(i))) a(t, n, c, l, e, f, d); + else { + var p = f ? f(u(t, c), i, c + '', t, n, d) : void 0; + void 0 === p && (p = i), o(t, c, p); } - : function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - })(e); - } - function f() { - return (f = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - function d(e, t) { - if (null == e) return {}; - var n, - r, - o = (function(e, t) { - if (null == e) return {}; - var n, - r, - o = {}, - i = Object.keys(e); - for (r = 0; r < i.length; r++) - (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); - return o; - })(e, t); - if (Object.getOwnPropertySymbols) { - var i = Object.getOwnPropertySymbols(e); - for (r = 0; r < i.length; r++) - (n = i[r]), - t.indexOf(n) >= 0 || - (Object.prototype.propertyIsEnumerable.call(e, n) && - (o[n] = e[n])); + }, + c + ); + }; + }, + function(e, t) { + e.exports = function() { + (this.__data__ = []), (this.size = 0); + }; + }, + function(e, t, n) { + var r = n(118), + o = Array.prototype.splice; + e.exports = function(e) { + var t = this.__data__, + n = r(t, e); + return ( + !(n < 0) && + (n == t.length - 1 ? t.pop() : o.call(t, n, 1), --this.size, !0) + ); + }; + }, + function(e, t, n) { + var r = n(118); + e.exports = function(e) { + var t = this.__data__, + n = r(t, e); + return n < 0 ? void 0 : t[n][1]; + }; + }, + function(e, t, n) { + var r = n(118); + e.exports = function(e) { + return r(this.__data__, e) > -1; + }; + }, + function(e, t, n) { + var r = n(118); + e.exports = function(e, t) { + var n = this.__data__, + o = r(n, e); + return o < 0 ? (++this.size, n.push([e, t])) : (n[o][1] = t), this; + }; + }, + function(e, t, n) { + var r = n(117); + e.exports = function() { + (this.__data__ = new r()), (this.size = 0); + }; + }, + function(e, t) { + e.exports = function(e) { + var t = this.__data__, + n = t.delete(e); + return (this.size = t.size), n; + }; + }, + function(e, t) { + e.exports = function(e) { + return this.__data__.get(e); + }; + }, + function(e, t) { + e.exports = function(e) { + return this.__data__.has(e); + }; + }, + function(e, t, n) { + var r = n(117), + o = n(147), + i = n(149), + a = 200; + e.exports = function(e, t) { + var n = this.__data__; + if (n instanceof r) { + var s = n.__data__; + if (!o || s.length < a - 1) + return s.push([e, t]), (this.size = ++n.size), this; + n = this.__data__ = new i(s); + } + return n.set(e, t), (this.size = n.size), this; + }; + }, + function(e, t, n) { + var r = n(148), + o = n(508), + i = n(47), + a = n(205), + s = /^\[object .+?Constructor\]$/, + c = Function.prototype, + u = Object.prototype, + l = c.toString, + f = u.hasOwnProperty, + d = RegExp( + '^' + + l + .call(f) + .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') + .replace( + /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, + '$1.*?' + ) + + '$' + ); + e.exports = function(e) { + return !(!i(e) || o(e)) && (r(e) ? d : s).test(a(e)); + }; + }, + function(e, t, n) { + var r = n(100), + o = Object.prototype, + i = o.hasOwnProperty, + a = o.toString, + s = r ? r.toStringTag : void 0; + e.exports = function(e) { + var t = i.call(e, s), + n = e[s]; + try { + e[s] = void 0; + var r = !0; + } catch (e) {} + var o = a.call(e); + return r && (t ? (e[s] = n) : delete e[s]), o; + }; + }, + function(e, t) { + var n = Object.prototype.toString; + e.exports = function(e) { + return n.call(e); + }; + }, + function(e, t, n) { + var r, + o = n(509), + i = (r = /[^.]+$/.exec((o && o.keys && o.keys.IE_PROTO) || '')) + ? 'Symbol(src)_1.' + r + : ''; + e.exports = function(e) { + return !!i && i in e; + }; + }, + function(e, t, n) { + var r = n(48)['__core-js_shared__']; + e.exports = r; + }, + function(e, t) { + e.exports = function(e, t) { + return null == e ? void 0 : e[t]; + }; + }, + function(e, t, n) { + var r = n(512), + o = n(117), + i = n(147); + e.exports = function() { + (this.size = 0), + (this.__data__ = { + hash: new r(), + map: new (i || o)(), + string: new r() + }); + }; + }, + function(e, t, n) { + var r = n(513), + o = n(514), + i = n(515), + a = n(516), + s = n(517); + function c(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]); } - return o; } - function p(e, t) { - var n = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var r = Object.getOwnPropertySymbols(e); - t && - (r = r.filter(function(t) { - return Object.getOwnPropertyDescriptor(e, t).enumerable; - })), - n.push.apply(n, r); + (c.prototype.clear = r), + (c.prototype.delete = o), + (c.prototype.get = i), + (c.prototype.has = a), + (c.prototype.set = s), + (e.exports = c); + }, + function(e, t, n) { + var r = n(119); + e.exports = function() { + (this.__data__ = r ? r(null) : {}), (this.size = 0); + }; + }, + function(e, t) { + e.exports = function(e) { + var t = this.has(e) && delete this.__data__[e]; + return (this.size -= t ? 1 : 0), t; + }; + }, + function(e, t, n) { + var r = n(119), + o = '__lodash_hash_undefined__', + i = Object.prototype.hasOwnProperty; + e.exports = function(e) { + var t = this.__data__; + if (r) { + var n = t[e]; + return n === o ? void 0 : n; + } + return i.call(t, e) ? t[e] : void 0; + }; + }, + function(e, t, n) { + var r = n(119), + o = Object.prototype.hasOwnProperty; + e.exports = function(e) { + var t = this.__data__; + return r ? void 0 !== t[e] : o.call(t, e); + }; + }, + function(e, t, n) { + var r = n(119), + o = '__lodash_hash_undefined__'; + e.exports = function(e, t) { + var n = this.__data__; + return ( + (this.size += this.has(e) ? 0 : 1), + (n[e] = r && void 0 === t ? o : t), + this + ); + }; + }, + function(e, t, n) { + var r = n(120); + e.exports = function(e) { + var t = r(this, e).delete(e); + return (this.size -= t ? 1 : 0), t; + }; + }, + function(e, t) { + e.exports = function(e) { + var t = typeof e; + return 'string' == t || 'number' == t || 'symbol' == t || 'boolean' == t + ? '__proto__' !== e + : null === e; + }; + }, + function(e, t, n) { + var r = n(120); + e.exports = function(e) { + return r(this, e).get(e); + }; + }, + function(e, t, n) { + var r = n(120); + e.exports = function(e) { + return r(this, e).has(e); + }; + }, + function(e, t, n) { + var r = n(120); + e.exports = function(e, t) { + var n = r(this, e), + o = n.size; + return n.set(e, t), (this.size += n.size == o ? 0 : 1), this; + }; + }, + function(e, t) { + e.exports = function(e) { + return function(t, n, r) { + for (var o = -1, i = Object(t), a = r(t), s = a.length; s--; ) { + var c = a[e ? s : ++o]; + if (!1 === n(i[c], c, i)) break; + } + return t; + }; + }; + }, + function(e, t, n) { + var r = n(206), + o = n(209), + i = n(210), + a = n(212), + s = n(213), + c = n(122), + u = n(34), + l = n(527), + f = n(101), + d = n(148), + p = n(47), + h = n(215), + g = n(123), + m = n(216), + b = n(530); + e.exports = function(e, t, n, y, v, _, w) { + var x = m(e, n), + M = m(t, n), + k = w.get(M); + if (k) r(e, n, k); + else { + var S = _ ? _(x, M, n + '', e, t, w) : void 0, + O = void 0 === S; + if (O) { + var E = u(M), + A = !E && f(M), + T = !E && !A && g(M); + (S = M), + E || A || T + ? u(x) + ? (S = x) + : l(x) + ? (S = a(x)) + : A + ? ((O = !1), (S = o(M, !0))) + : T + ? ((O = !1), (S = i(M, !0))) + : (S = []) + : h(M) || c(M) + ? ((S = x), c(x) ? (S = b(x)) : (p(x) && !d(x)) || (S = s(M))) + : (O = !1); + } + O && (w.set(M, S), v(S, M, y, _, w), w.delete(M)), r(e, n, S); } + }; + }, + function(e, t, n) { + var r = n(47), + o = Object.create, + i = (function() { + function e() {} + return function(t) { + if (!r(t)) return {}; + if (o) return o(t); + e.prototype = t; + var n = new e(); + return (e.prototype = void 0), n; + }; + })(); + e.exports = i; + }, + function(e, t, n) { + var r = n(67), + o = n(53), + i = '[object Arguments]'; + e.exports = function(e) { + return o(e) && r(e) == i; + }; + }, + function(e, t, n) { + var r = n(58), + o = n(53); + e.exports = function(e) { + return o(e) && r(e); + }; + }, + function(e, t) { + e.exports = function() { + return !1; + }; + }, + function(e, t, n) { + var r = n(67), + o = n(153), + i = n(53), + a = {}; + (a['[object Float32Array]'] = a['[object Float64Array]'] = a[ + '[object Int8Array]' + ] = a['[object Int16Array]'] = a['[object Int32Array]'] = a[ + '[object Uint8Array]' + ] = a['[object Uint8ClampedArray]'] = a['[object Uint16Array]'] = a[ + '[object Uint32Array]' + ] = !0), + (a['[object Arguments]'] = a['[object Array]'] = a[ + '[object ArrayBuffer]' + ] = a['[object Boolean]'] = a['[object DataView]'] = a[ + '[object Date]' + ] = a['[object Error]'] = a['[object Function]'] = a[ + '[object Map]' + ] = a['[object Number]'] = a['[object Object]'] = a[ + '[object RegExp]' + ] = a['[object Set]'] = a['[object String]'] = a[ + '[object WeakMap]' + ] = !1), + (e.exports = function(e) { + return i(e) && o(e.length) && !!a[r(e)]; + }); + }, + function(e, t, n) { + var r = n(102), + o = n(124); + e.exports = function(e) { + return r(e, o(e)); + }; + }, + function(e, t) { + e.exports = function(e, t) { + for (var n = -1, r = Array(e); ++n < e; ) r[n] = t(n); + return r; + }; + }, + function(e, t, n) { + var r = n(47), + o = n(121), + i = n(533), + a = Object.prototype.hasOwnProperty; + e.exports = function(e) { + if (!r(e)) return i(e); + var t = o(e), + n = []; + for (var s in e) + ('constructor' != s || (!t && a.call(e, s))) && n.push(s); return n; + }; + }, + function(e, t) { + e.exports = function(e) { + var t = []; + if (null != e) for (var n in Object(e)) t.push(n); + return t; + }; + }, + function(e, t, n) { + var r = n(535), + o = n(219); + e.exports = function(e) { + return r(function(t, n) { + var r = -1, + i = n.length, + a = i > 1 ? n[i - 1] : void 0, + s = i > 2 ? n[2] : void 0; + for ( + a = e.length > 3 && 'function' == typeof a ? (i--, a) : void 0, + s && o(n[0], n[1], s) && ((a = i < 3 ? void 0 : a), (i = 1)), + t = Object(t); + ++r < i; + + ) { + var c = n[r]; + c && e(t, c, r, a); + } + return t; + }); + }; + }, + function(e, t, n) { + var r = n(125), + o = n(536), + i = n(538); + e.exports = function(e, t) { + return i(o(e, t, r), e + ''); + }; + }, + function(e, t, n) { + var r = n(537), + o = Math.max; + e.exports = function(e, t, n) { + return ( + (t = o(void 0 === t ? e.length - 1 : t, 0)), + function() { + for ( + var i = arguments, a = -1, s = o(i.length - t, 0), c = Array(s); + ++a < s; + + ) + c[a] = i[t + a]; + a = -1; + for (var u = Array(t + 1); ++a < t; ) u[a] = i[a]; + return (u[t] = n(c)), r(e, this, u); + } + ); + }; + }, + function(e, t) { + e.exports = 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); + }; + }, + function(e, t, n) { + var r = n(539), + o = n(541)(r); + e.exports = o; + }, + function(e, t, n) { + var r = n(540), + o = n(207), + i = n(125), + a = o + ? function(e, t) { + return o(e, 'toString', { + configurable: !0, + enumerable: !1, + value: r(t), + writable: !0 + }); + } + : i; + e.exports = a; + }, + function(e, t) { + e.exports = function(e) { + return function() { + return e; + }; + }; + }, + function(e, t) { + var n = 800, + r = 16, + o = Date.now; + e.exports = function(e) { + var t = 0, + i = 0; + return function() { + var a = o(), + s = r - (a - i); + if (((i = a), s > 0)) { + if (++t >= n) return arguments[0]; + } else t = 0; + return e.apply(void 0, arguments); + }; + }; + }, + function(e, t, n) { + var r = n(543), + o = n(220); + e.exports = function(e, t, n) { + var i = (t && n) || 0; + 'string' == typeof e && + ((t = 'binary' === e ? new Array(16) : null), (e = null)); + var a = (e = e || {}).random || (e.rng || r)(); + if (((a[6] = (15 & a[6]) | 64), (a[8] = (63 & a[8]) | 128), t)) + for (var s = 0; s < 16; ++s) t[i + s] = a[s]; + return t || o(a); + }; + }, + function(e, t) { + var n = + ('undefined' != typeof crypto && + crypto.getRandomValues && + crypto.getRandomValues.bind(crypto)) || + ('undefined' != typeof msCrypto && + 'function' == typeof window.msCrypto.getRandomValues && + msCrypto.getRandomValues.bind(msCrypto)); + if (n) { + var r = new Uint8Array(16); + e.exports = function() { + return n(r), r; + }; + } else { + var o = new Array(16); + e.exports = function() { + for (var e, t = 0; t < 16; t++) + 0 == (3 & t) && (e = 4294967296 * Math.random()), + (o[t] = (e >>> ((3 & t) << 3)) & 255); + return o; + }; } - function h(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}; - t % 2 - ? p(n, !0).forEach(function(t) { - x(e, t, n[t]); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) - : p(n).forEach(function(t) { - Object.defineProperty( - e, - t, - Object.getOwnPropertyDescriptor(n, t) + }, + function(e, t, n) { + var r = n(545), + o = n(546); + e.exports = r('v5', 80, o); + }, + function(e, t, n) { + var r = n(220); + e.exports = function(e, t, n) { + var o = function(e, o, i, a) { + var s = (i && a) || 0; + if ( + ('string' == typeof e && + (e = (function(e) { + e = unescape(encodeURIComponent(e)); + for (var t = new Array(e.length), n = 0; n < e.length; n++) + t[n] = e.charCodeAt(n); + return t; + })(e)), + 'string' == typeof o && + (o = (function(e) { + var t = []; + return ( + e.replace(/[a-fA-F0-9]{2}/g, function(e) { + t.push(parseInt(e, 16)); + }), + t ); - }); + })(o)), + !Array.isArray(e)) + ) + throw TypeError('value must be an array of bytes'); + if (!Array.isArray(o) || 16 !== o.length) + throw TypeError( + 'namespace must be uuid string or an Array of 16 byte values' + ); + var c = n(o.concat(e)); + if (((c[6] = (15 & c[6]) | t), (c[8] = (63 & c[8]) | 128), i)) + for (var u = 0; u < 16; ++u) i[s + u] = c[u]; + return i || r(c); + }; + try { + o.name = e; + } catch (e) {} + return ( + (o.DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'), + (o.URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'), + o + ); + }; + }, + function(e, t, n) { + 'use strict'; + function r(e, t, n, r) { + switch (e) { + case 0: + return (t & n) ^ (~t & r); + case 1: + return t ^ n ^ r; + case 2: + return (t & n) ^ (t & r) ^ (n & r); + case 3: + return t ^ n ^ r; } - return e; } - function g(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); + function o(e, t) { + return (e << t) | (e >>> (32 - t)); } - function m(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); + e.exports = function(e) { + var t = [1518500249, 1859775393, 2400959708, 3395469782], + n = [1732584193, 4023233417, 2562383102, 271733878, 3285377520]; + if ('string' == typeof e) { + var i = unescape(encodeURIComponent(e)); + e = new Array(i.length); + for (var a = 0; a < i.length; a++) e[a] = i.charCodeAt(a); } - } - function b(e, t) { - return !t || ('object' !== l(t) && 'function' != typeof t) ? v(e) : t; - } - function y(e) { - return (y = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(e) { - return e.__proto__ || Object.getPrototypeOf(e); - })(e); - } - function v(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return e; - } - function _(e, t) { - return (_ = - Object.setPrototypeOf || + e.push(128); + var s = e.length / 4 + 2, + c = Math.ceil(s / 16), + u = new Array(c); + for (a = 0; a < c; a++) { + u[a] = new Array(16); + for (var l = 0; l < 16; l++) + u[a][l] = + (e[64 * a + 4 * l] << 24) | + (e[64 * a + 4 * l + 1] << 16) | + (e[64 * a + 4 * l + 2] << 8) | + e[64 * a + 4 * l + 3]; + } + for ( + u[c - 1][14] = (8 * (e.length - 1)) / Math.pow(2, 32), + u[c - 1][14] = Math.floor(u[c - 1][14]), + u[c - 1][15] = (8 * (e.length - 1)) & 4294967295, + a = 0; + a < c; + a++ + ) { + for (var f = new Array(80), d = 0; d < 16; d++) f[d] = u[a][d]; + for (d = 16; d < 80; d++) + f[d] = o(f[d - 3] ^ f[d - 8] ^ f[d - 14] ^ f[d - 16], 1); + var p = n[0], + h = n[1], + g = n[2], + m = n[3], + b = n[4]; + for (d = 0; d < 80; d++) { + var y = Math.floor(d / 20), + v = (o(p, 5) + r(y, h, g, m) + b + t[y] + f[d]) >>> 0; + (b = m), (m = g), (g = o(h, 30) >>> 0), (h = p), (p = v); + } + (n[0] = (n[0] + p) >>> 0), + (n[1] = (n[1] + h) >>> 0), + (n[2] = (n[2] + g) >>> 0), + (n[3] = (n[3] + m) >>> 0), + (n[4] = (n[4] + b) >>> 0); + } + return [ + (n[0] >> 24) & 255, + (n[0] >> 16) & 255, + (n[0] >> 8) & 255, + 255 & n[0], + (n[1] >> 24) & 255, + (n[1] >> 16) & 255, + (n[1] >> 8) & 255, + 255 & n[1], + (n[2] >> 24) & 255, + (n[2] >> 16) & 255, + (n[2] >> 8) & 255, + 255 & n[2], + (n[3] >> 24) & 255, + (n[3] >> 16) & 255, + (n[3] >> 8) & 255, + 255 & n[3], + (n[4] >> 24) & 255, + (n[4] >> 16) & 255, + (n[4] >> 8) & 255, + 255 & n[4] + ]; + }; + }, + function(e, t, n) { + (e.exports = n(68)(!1)).push([ + e.i, + '.c3 svg{font:10px sans-serif;-webkit-tap-highlight-color:rgba(0,0,0,0)}.c3 line,.c3 path{fill:none;stroke:#000}.c3 text{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.c3-bars path,.c3-event-rect,.c3-legend-item-tile,.c3-xgrid-focus,.c3-ygrid{shape-rendering:crispEdges}.c3-chart-arc path{stroke:#fff}.c3-chart-arc rect{stroke:#fff;stroke-width:1}.c3-chart-arc text{fill:#fff;font-size:13px}.c3-grid line{stroke:#aaa}.c3-grid text{fill:#aaa}.c3-xgrid,.c3-ygrid{stroke-dasharray:3 3}.c3-text.c3-empty{fill:gray;font-size:2em}.c3-line{stroke-width:1px}.c3-circle._expanded_{stroke-width:1px;stroke:#fff}.c3-selected-circle{fill:#fff;stroke-width:2px}.c3-bar{stroke-width:0}.c3-bar._expanded_{fill-opacity:1;fill-opacity:.75}.c3-target.c3-focused{opacity:1}.c3-target.c3-focused path.c3-line,.c3-target.c3-focused path.c3-step{stroke-width:2px}.c3-target.c3-defocused{opacity:.3!important}.c3-region{fill:#4682b4;fill-opacity:.1}.c3-brush .extent{fill-opacity:.1}.c3-legend-item{font-size:12px}.c3-legend-item-hidden{opacity:.15}.c3-legend-background{opacity:.75;fill:#fff;stroke:#d3d3d3;stroke-width:1}.c3-title{font:14px sans-serif}.c3-tooltip-container{z-index:10}.c3-tooltip{border-collapse:collapse;border-spacing:0;background-color:#fff;empty-cells:show;box-shadow:7px 7px 12px -9px #777;opacity:.9}.c3-tooltip tr{border:1px solid #ccc}.c3-tooltip th{background-color:#aaa;font-size:14px;padding:2px 5px;text-align:left;color:#fff}.c3-tooltip td{font-size:13px;padding:3px 6px;background-color:#fff;border-left:1px dotted #999}.c3-tooltip td>span{display:inline-block;width:10px;height:10px;margin-right:6px}.c3-tooltip .value{text-align:right}.c3-area{stroke-width:0;opacity:.2}.c3-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}.c3-chart-arcs .c3-chart-arcs-background{fill:#e0e0e0;stroke:#fff}.c3-chart-arcs .c3-chart-arcs-gauge-unit{fill:#000;font-size:16px}.c3-chart-arcs .c3-chart-arcs-gauge-max,.c3-chart-arcs .c3-chart-arcs-gauge-min{fill:#777}.c3-chart-arc .c3-gauge-value{fill:#000}.c3-chart-arc.c3-target.c3-focused g path,.c3-chart-arc.c3-target g path{opacity:1}.c3-drag-zoom.enabled{pointer-events:all!important;visibility:visible}.c3-drag-zoom.disabled{pointer-events:none!important;visibility:hidden}.c3-drag-zoom .extent{fill-opacity:.1}.rangeable-container.combined-tooltip.dragging .rangeable-progress>.rangeable-tooltip,.rangeable-container.combined-tooltip.rangeable-tooltips--visible .rangeable-progress>.rangeable-tooltip,.rangeable-container.dragging.rangeable-tooltips .rangeable-handle .rangeable-tooltip,.rangeable-container.rangeable-tooltips--visible.rangeable-tooltips .rangeable-handle .rangeable-tooltip,.rangeable-container.rangeable-vertical.combined-tooltip .rangeable-progress>.rangeable-tooltip:before{display:block}.rangeable-container{cursor:pointer;width:100%}.rangeable-container.rangeable-disabled{opacity:.6;cursor:not-allowed}.rangeable-container.rangeable-multiple.combined-tooltip .rangeable-handle .rangeable-tooltip,.rangeable-container.rangeable-vertical.combined-tooltip .rangeable-handle .rangeable-tooltip{opacity:0}.rangeable-container.focus .rangeable-handle{border:1px solid #74b9ff}.rangeable-container.rangeable-multiple .rangeable-handle:first-child{left:0;transform:translate3d(-50%,-50%,0)}.rangeable-container.rangeable-multiple .rangeable-handle:nth-child(2){right:0}.rangeable-container.rangeable-vertical{height:100%;width:auto}.rangeable-container.rangeable-vertical .rangeable-track{width:8px;height:100%}.rangeable-container.rangeable-vertical .rangeable-progress{width:8px;height:100%;top:auto;bottom:0;transform-origin:0 100% 0}.rangeable-container.rangeable-vertical .rangeable-handle{right:auto;left:50%;top:0;transform:translate3d(-50%,-50%,0)}.rangeable-container.rangeable-vertical .rangeable-tooltip{position:absolute;top:50%;left:calc(100% + 6px + 4px + 5px);right:auto;bottom:auto;transform:translate3d(0,-50%,0)}.rangeable-container.rangeable-vertical .rangeable-tooltip:before{right:100%;left:auto;top:50%;transform:translate3d(0,-50%,0);border-width:4px 4px 4px 0;border-color:transparent #3db13d transparent transparent}.rangeable-container.rangeable-vertical .rangeable-buffer{width:100%;height:0}.rangeable-container.rangeable-vertical.rangeable-multiple .rangeable-handle:first-child{top:0;left:50%}.rangeable-container.rangeable-vertical.rangeable-multiple .rangeable-handle:nth-child(2){bottom:0;top:auto;transform:translate3d(-50%,50%,0)}.rangeable-input{position:absolute;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;margin:-1px;padding:0;border:0}.rangeable-input:focus+.rangeable-track .rangeable-handle:after{position:absolute;width:22px;height:22px;bottom:-6px;right:-6px;outline:1px dotted #000;content:""}.rangeable-progress,.rangeable-track{height:8px;width:100%;border-radius:4px}.rangeable-track{background-color:#ccc;position:relative}.rangeable-progress{background-color:#3db13d;position:absolute;left:0;top:0;transform-origin:0 0 0}.rangeable-progress>.rangeable-tooltip{display:none;z-index:11;top:auto;bottom:calc(100% + 7px + 9px);white-space:nowrap}.rangeable-handle{box-sizing:border-box;width:22px;height:22px;border:6px solid #3db13d;border-radius:50%;background-color:#fff;position:absolute;top:50%;right:0;transform:translate3d(50%,-50%,0)}.rangeable-handle:focus{outline:0}.rangeable-handle:focus:after{position:absolute;width:22px;height:22px;bottom:-6px;right:-6px;outline:1px dotted #000;content:""}.rangeable-handle.active{z-index:10}.rangeable-handle .rangeable-tooltip{display:none}.rangeable-tooltip{position:absolute;right:50%;bottom:calc(100% + 6px + 4px + 5px);transform:translate3d(50%,0,0);text-align:center;padding:2px 13px;background-color:#3db13d;border-radius:4px;font-weight:700;font-size:16px;color:#fff;font-family:Inconsolata,Consolas,Courier New,Lucida Console,sans-serif}.rangeable-tooltip:before{width:0;height:0;border-width:4px 4px 0;border-style:solid;border-color:#3db13d transparent transparent;position:absolute;left:50%;top:100%;transform:translate3d(-50%,0,0);content:""}.rangeable-buffers{position:absolute;left:0;top:0;height:100%;width:100%}.rangeable-buffer{position:absolute;background-color:rgba(0,0,0,.2);border-radius:4px;height:100%}.keen-dataviz{box-sizing:border-box;font-family:Gotham Rounded SSm A,Gotham Rounded SSm B,Helvetica Neue,Helvetica,Arial,sans-serif;height:100%}.keen-dataviz .partial-interval-indicator{fill:#bdbdbd}.keen-dataviz .axis{shape-rendering:crispEdges}.keen-dataviz-title{color:#4d4d4d;padding-bottom:.8em}.keen-dataviz-stage{display:block}.keen-dataviz-notes{color:gray;display:block;font-size:.8em}.keen-dataviz-box{border-radius:4px;text-align:center;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-flow:row;flex-flow:row;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;padding:1em 0;min-height:4em;height:inherit}.keen-dataviz-button{padding:.5rem 1rem;margin:1rem 0;border-radius:4px;background-color:#f9f9f9;border-color:#d6d6d6;cursor:pointer;transition:background-color .3s ease}.keen-dataviz-button:hover{background-color:#e7e7e7}.keen-dataviz .metric-comparison{-ms-flex-direction:column-reverse;flex-direction:column-reverse;color:#1a1a1a;background:#f9f9f9}.keen-dataviz-metric{height:inherit;color:#fff;background:#00bbde}.keen-dataviz-metric-value{font-size:4.3em;font-weight:700;width:100%}.keen-dataviz-metric-value-smaller{font-size:3em}.keen-dataviz-metric-title{font-size:2em;font-weight:200;width:100%}.keen-dataviz-metric-green{color:#73d483;font-size:2em}.keen-dataviz-metric-red{color:#fe6672;font-size:2em}.keen-dataviz .arrow-green{border-bottom:8px solid #73d483;top:.7em}.keen-dataviz .arrow-green,.keen-dataviz .arrow-red{width:0;height:0;border-left:8px solid transparent;border-right:8px solid transparent;position:relative;left:-.6em}.keen-dataviz .arrow-red{border-top:8px solid #fe6672;top:.8em}.keen-dataviz-message{color:gray;font-size:1.5em;width:100%}.keen-dataviz .text-label{fill:#1a1a1a}.keen-dataviz .text-main{fill:#fff;font-size:1.5em}.keen-dataviz .text-second{fill:#fff}.keen-dataviz .chart-lines{stroke:#e7e7e7}.keen-dataviz-metric-combo{width:270px;height:120px;position:relative}.keen-dataviz-metric-combo .metric-combo-data{width:100%;height:100%;padding:.5rem;position:absolute;z-index:-1;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;box-sizing:border-box}.keen-dataviz-metric-combo .c3-chart{height:120px}.keen-dataviz-metric-combo .c3-lines{display:none}.keen-dataviz-metric-combo .current-count,.keen-dataviz-metric-combo .keen-dataviz-title{width:100%}.keen-dataviz-metric-combo .current-count{margin-top:auto;margin-bottom:auto;font-size:2rem;text-align:center}.keen-dataviz-metric-combo .percent-difference{position:absolute;top:.5rem;right:.5rem;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;font-size:80%}.keen-dataviz-metric-combo .arrow-green,.keen-dataviz-metric-combo .arrow-red{margin-right:.25rem;position:static;border-width:5px}.keen-dataviz-table{border-bottom:1px solid #e7e7e7;box-sizing:border-box;overflow:scroll;position:relative;width:100%}.keen-dataviz-table table{background:#fff;border-collapse:collapse;margin:0;position:relative;width:100%}.keen-dataviz-table table .table-pagination:hover td,.keen-dataviz-table table .table-pagination td{background-color:#fff}.keen-dataviz-table table .table-pagination a{border:1px solid #e7e7e7;padding:.5em;margin-right:.2em;cursor:pointer}.keen-dataviz-table table .table-pagination .active{background:#4d4d4d;color:#fff}.keen-dataviz-table table .table-pagination .arrow{font-weight:700}.keen-dataviz-table th{background:#fff;position:-webkit-sticky;position:sticky;top:0;z-index:10;cursor:pointer}.keen-dataviz-table td,.keen-dataviz-table th{border-collapse:collapse;font-size:1em;padding:.7em;text-align:left;white-space:nowrap}.keen-dataviz-table th{border-bottom:1px solid #e7e7e7;color:#4d4d4d}.keen-dataviz-table td{background-color:#fff;color:#4d4d4d;transition:background-color .1s,color .05s}.keen-dataviz-table .table-data-row:nth-child(2n) td{background-color:#f3f5f6}.keen-dataviz-table .table-data-row:hover td{background-color:#e7e7e7;color:#4d4d4d}.keen-dataviz-table .keen-dataviz-table-fixed-header{background:#fff;border-bottom:1px solid rgba(0,0,0,.15);position:absolute;top:0;transition:top .1s}.keen-dataviz .keen-spinner-indicator{border-radius:100%;border:3px solid rgba(0,0,0,.1);border-top-color:rgba(0,0,0,.45);box-sizing:border-box;height:3em;width:3em;animation:a .7s linear infinite;-ms-animation:a .7s linear infinite;-o-animation:a .7s linear infinite}.keen-dataviz-execution-meta{position:absolute;z-index:999;padding:.5rem 1rem;margin:.75rem 0;display:inline-grid;grid-template-columns:repeat(2,-webkit-max-content);grid-template-columns:repeat(2,max-content);grid-gap:.5em 1em;text-transform:uppercase;font-size:.75rem;border:1px solid #eee;background:#fff}.keen-dataviz-execution-meta dt,.keen-dataviz-execution-meta dt:hover+dd{font-weight:700}.keen-dataviz-execution-meta dd,.keen-dataviz-execution-meta dt{margin:0;cursor:pointer}.keen-dataviz-execution-meta .copied:after{content:"copied!";vertical-align:middle;display:inline-block;font-size:10px;margin-left:.5em;position:absolute;text-transform:none;font-weight:400;animation:1s ease 0s 1 both b}@keyframes a{to{transform:rotate(1turn)}}@keyframes b{0%{opacity:1}to{opacity:0}}.keen-dataviz .c3-axis-y .tick line,.keen-dataviz .c3-axis-y path{display:none}.keen-dataviz .tick line,.keen-dataviz path.domain{stroke-opacity:.2}.keen-dataviz .c3-ygrid{stroke-dasharray:none;stroke-opacity:.1}.keen-dataviz .c3-ygrids :nth-child(2n){display:none}.keen-dataviz .c3-tooltip{border:1px solid rgba(0,0,0,.1);padding:.2em;border-radius:.2em;box-shadow:none;border-collapse:separate}.keen-dataviz .c3-tooltip th{text-align:center}.keen-dataviz .c3-tooltip table,.keen-dataviz .c3-tooltip td,.keen-dataviz .c3-tooltip th,.keen-dataviz .c3-tooltip tr{border:none;background:none;font-size:.9em}.keen-dataviz .c3-tooltip-container th{max-width:50%;word-wrap:break-word;color:#1a1a1a;background:none;font-weight:400}.keen-dataviz .c3-tooltip-container td{max-width:50%;word-wrap:break-word}.keen-dataviz-rendering{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-flow:row;flex-flow:row;-ms-flex-pack:distribute;justify-content:space-around}.keen-dataviz-rendering .c3-chart{display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;-ms-flex-order:1;order:1;-ms-flex:100%;flex:100%}.keen-dataviz-rendering .c3-chart-100-percent{width:100%;-ms-flex-item-align:center;align-self:center}.keen-dataviz-rendering-horizontal{-ms-flex-wrap:wrap;flex-wrap:wrap}.keen-c3-legend{display:-ms-flexbox;display:flex;position:relative;top:0;box-sizing:border-box}.keen-c3-legend-horizontal{-ms-flex-direction:row;-ms-flex-item-align:end;align-self:flex-end;display:-ms-flexbox;display:flex;flex-direction:row;-ms-flex-pack:center;justify-content:center;width:100%;padding:.5em 0}.keen-c3-legend-horizontal-pagination-left{-ms-flex-order:0;order:0;display:-ms-flexbox;display:flex;margin-right:1.5em}.keen-c3-legend-horizontal-items{-ms-flex-order:1;order:1}.keen-c3-legend-horizontal-pagination-right{-ms-flex-order:2;order:2;display:-ms-flexbox;display:flex;margin-left:1.5em}.keen-c3-legend-top{-ms-flex-order:0;order:0}.keen-c3-legend-bottom{-ms-flex-order:2;order:2}.keen-c3-legend-bottom .keen-c3-legend-label-overlay{top:0;margin-top:-2.7em}.keen-c3-legend-bottom .keen-c3-legend-label-overlay .overlay-pointer{top:2.4em;transform:rotate(180deg);border-color:transparent transparent #f0f0f0}.keen-c3-legend-vertical{-ms-flex-direction:column;flex-direction:column}.keen-c3-legend-vertical .keen-c3-legend-pagination-icons{margin:.5em .1em;-ms-flex-order:2;order:2}.keen-c3-legend-left{-ms-flex-order:0;order:0}.keen-c3-legend-right{-ms-flex-order:2;order:2}.keen-c3-legend-items{-ms-flex-order:1;order:1}.keen-c3-legend-vertical-items{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.keen-c3-legend-vertical-items .legend-item{width:8em}.keen-c3-legend-horizontal-items{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.keen-c3-legend-horizontal-items .legend-item{width:6em;margin:0 .25em}.keen-c3-legend .legend-item{display:-ms-flexbox;display:flex;cursor:pointer;padding:.2em;font-size:.8em}.keen-c3-legend .legend-item>*{vertical-align:middle}.keen-c3-legend .legend-item-color-sample{display:inline-block;width:1em;height:1em;margin-right:.5em;pointer-events:none;-ms-flex:none;flex:none}.keen-c3-legend .legend-item-text{pointer-events:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left}.keen-c3-legend-label-overlay .overlay-pointer{border-color:transparent transparent #fff;border-style:solid;border-width:0 10px 10px;height:0;width:0;position:absolute;top:-10px}.keen-c3-legend-position-left .overlay-pointer,.keen-c3-legend-position-right .overlay-pointer{left:0}.keen-c3-legend-pagination-vertical{margin-top:.5em}.keen-c3-legend-pagination-icons{padding:.2em}.keen-c3-legend-pagination-icons i{border-left:1em solid transparent;border-right:1em solid transparent;border-top:1.5em solid #4d4d4d;display:inline-block;padding:0;float:left;cursor:pointer;font-size:.5em}.keen-c3-legend-pagination-icons .right{transform:rotate(-90deg);-webkit-transform:rotate(-90deg)}.keen-c3-legend-pagination-icons .left{transform:rotate(90deg);-webkit-transform:rotate(90deg)}.keen-c3-legend-pagination-icons .up{transform:rotate(-180deg);-webkit-transform:rotate(-180deg);margin-top:.1em}.keen-c3-legend-pagination-icons .down{margin-right:1em}.keen-c3-legend-label-overlay{font-size:1em;background:hsla(0,0%,100%,.9);box-shadow:0 1px 1px rgba(26,26,26,.09999999999999998);padding:.6em;margin-top:1.5em;position:absolute;word-wrap:break-word;pointer-events:none;z-index:222}.keen-c3-legend-align-left{-ms-flex-pack:start;justify-content:flex-start}.keen-c3-legend-align-left .keen-c3-legend-horizontal-items{-ms-flex-pack:start;justify-content:flex-start;margin-right:auto}.keen-c3-legend-align-center{-ms-flex-pack:center;justify-content:center}.keen-c3-legend-align-center .keen-c3-legend-horizontal-items{-ms-flex-pack:center;justify-content:center;margin-left:auto;margin-right:auto}.keen-c3-legend-align-right{-ms-flex-pack:end;justify-content:flex-end}.keen-c3-legend-align-right .keen-c3-legend-horizontal-items{-ms-flex-pack:end;justify-content:flex-end;margin-left:auto}.keen-c3-legend-align-top{-ms-flex-pack:start;justify-content:flex-start}.keen-c3-legend-align-middle{-ms-flex-pack:center;justify-content:center}.keen-c3-legend-align-bottom{-ms-flex-pack:end;justify-content:flex-end}.keen-dataviz-range .c3-area-Max,.keen-dataviz-range .c3-bars-Max{display:none}.keen-dataviz~.rangeable-container{margin:2rem auto;width:75%}.keen-dataviz~.rangeable-container .rangeable-progress,.keen-dataviz~.rangeable-container .rangeable-track{height:4px}.keen-dataviz~.rangeable-container .rangeable-handle{width:16px;height:16px;border-width:4px}.keen-dataviz~.rangeable-container .rangeable-tooltip{border-radius:0;font-weight:400;padding:3px 9px}', + '' + ]); + }, + function(e, t) { + e.exports = function(e) { + var t = 'undefined' != typeof window && window.location; + if (!t) throw new Error('fixUrls requires window.location'); + if (!e || 'string' != typeof e) return e; + var n = t.protocol + '//' + t.host, + r = n + t.pathname.replace(/\/[^\/]*$/, '/'); + return e.replace( + /url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(e, t) { - return (e.__proto__ = t), e; - })(e, t); - } - function x(e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e + var o, + i = t + .trim() + .replace(/^"(.*)"$/, function(e, t) { + return t; + }) + .replace(/^'(.*)'$/, function(e, t) { + return t; + }); + return /^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i) + ? e + : ((o = + 0 === i.indexOf('//') + ? i + : 0 === i.indexOf('/') + ? n + i + : r + i.replace(/^\.\//, '')), + 'url('https://github.com/+%20JSON.stringify(o) + ')'); + } ); - } - var w = function(e) { - return Object.prototype.toString.call(e); }; - function M(e, t) { - return Array.isArray(e) ? e : e[t]; - } - var k = (function(e) { - function t() { - var e, n; - g(this, t); - for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) - o[i] = arguments[i]; - return ( - x( - v((n = b(this, (e = y(t)).call.apply(e, [this].concat(o))))), - 'state', - n.generateInitialState() - ), - x(v(n), 'onLayoutChange', function(e) { - n.props.onLayoutChange( - e, - h({}, n.props.layouts, x({}, n.state.breakpoint, e)) - ); - }), - n - ); + }, + function(e, t, n) { + (e.exports = n(68)(!1)).push([ + e.i, + 'body{margin:0}.dashboard-builder{width:100%;margin:0;height:100vh;position:relative;display:flex;justify-content:center;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;background:#f9f9f9;color:#000;overflow:hidden;box-sizing:border-box}.dashboard-builder.container{width:1200px;min-height:100vh;height:auto;display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start;justify-content:flex-start;background:#f5f5f5}.dashboard-builder .dashboard{position:relative;width:100%;min-height:calc(100vh - 130px);padding:20px;box-sizing:border-box}.dashboard-builder .dashboard-container{width:100%;overflow:auto;padding-left:60px}.dashboard-builder .dashboard-container-viewer{width:100%;overflow:auto}.dashboard-builder .dashboard-container-viewer .dashboard-top-bar{width:100%;z-index:12}.dashboard-builder .dashboard-container-viewer .dashboard-top-bar .export-icon{margin:0 1rem;order:2;flex-shrink:0}.dashboard-builder .dashboard-inner-container{background:#fdfdfd;margin:auto}.dashboard-builder .dashboard-title{height:60px;width:100%;position:relative;display:flex;align-items:center;justify-content:space-between;padding:.5rem}.dashboard-builder .dashboard-title input{border:0;background:inherit;width:100%;font-size:30px;outline:none;padding:5px 5px 5px 0}.dashboard-builder .dashboard-title .title{padding:20px}.dashboard-builder .dashboard-title a{text-decoration:none}.dashboard-builder .dashboard-top-bar{height:50px;width:100%;background:#f9f9f9;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;position:sticky;top:0;left:0;z-index:9}.dashboard-builder .dashboard-top-bar__menu{flex-shrink:0;display:flex;align-items:center}.dashboard-builder .dashboard-top-bar .share{position:relative}.dashboard-builder .dashboard-top-bar .embed,.dashboard-builder .dashboard-top-bar .share{margin:0 1rem;cursor:pointer}.dashboard-builder .dashboard-list-item{width:20%;min-width:180px;height:200px;padding:10px;position:relative}.dashboard-builder .dashboard-list-item:hover>.dashboard-list-item-buttons{visibility:visible}.dashboard-builder .dashboard-list-item-box{background:#fff;display:flex;justify-content:center;align-items:center;border:1px solid #eee;border-radius:5px;width:100%;height:100%;transition:box-shadow .3s;color:#000;padding:10px;text-align:center}.dashboard-builder .dashboard-list-item-box:hover{box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23)}.dashboard-builder .dashboard-list-item-box time{position:absolute;bottom:15px;left:20px;color:#aaa;font-size:12px}.dashboard-builder .dashboard-list-item-buttons{position:absolute;top:15px;right:15px;cursor:pointer;visibility:hidden}.dashboard-builder .dashboard-saved-message{position:absolute;top:.5rem;left:45%;padding:.5rem 1rem;border-radius:5px;background:#333;color:#fff;font-size:.85rem;z-index:11}.dashboard-builder .dashboard img{width:100%;height:100%}.dashboard-builder .toolbar{position:absolute;left:0;top:0;width:60px;height:100%;z-index:10}.dashboard-builder .toolbar-bar{width:100%;height:100%;position:relative;z-index:6;border-right:1px solid #929191;padding:20px;background:#2f97b9;color:#fff;cursor:pointer}.dashboard-builder .toolbar-bar h3{transform:translateY(100%) rotate(-90deg);transform-origin:0 0;white-space:nowrap;overflow:hidden;position:absolute;top:110px;left:15px;color:#fff}.dashboard-builder .toolbar-container{position:absolute;left:-135px;height:100%;border-right:1px solid #929191;background:#fff;box-shadow:3px 3px 6px #eee;border-right:0;overflow-y:auto;transition:left .25s ease-out}.dashboard-builder .toolbar-hidden{width:90px;display:flex;flex-direction:row;flex-wrap:wrap;padding:10px 10px 10px 20px}.dashboard-builder .toolbar-hidden>h4{font-size:.7rem;width:100%;margin:2rem 0 .5rem;font-weight:400;text-transform:uppercase}.dashboard-builder .toolbar-hidden>h4:first-of-type{margin-top:1rem}.dashboard-builder .toolbar-hidden p{cursor:pointer;z-index:5;margin:0;padding:5px;width:50px;height:50px;display:flex;align-items:center;justify-content:center;background:#fff}.dashboard-builder .toolbar-hidden .metric-chart-icon{font-size:20px;font-weight:600}.dashboard-builder .toolbar-visible{left:60px}.dashboard-builder .burger-icon{padding:0 20px;cursor:pointer;position:relative}.dashboard-builder .burger-icon .fa-bars{color:#2f97b9}.dashboard-builder .modal{display:block;position:absolute;background:#fff;border:1px solid #eee;border-radius:5px;z-index:11;top:0;left:20px;right:auto;bottom:auto;font-size:14px;width:250px;box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23)}.dashboard-builder .modal-header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:15px;border-bottom:1px solid #eee;font-size:17px}.dashboard-builder .modal-header .svg-inline--fa{cursor:pointer}.dashboard-builder .modal .dashboards-filter{padding:.25rem 1rem;border-bottom:1px solid #eee;display:flex;justify-content:space-between}.dashboard-builder .modal .dashboards-filter input{font-size:14px}.dashboard-builder .modal-body{padding:15px;max-height:300px;overflow:auto}.dashboard-builder .modal-body .item{padding:1rem;border-bottom:1px solid #eee;display:flex;flex-direction:column}.dashboard-builder .modal-body .item:hover{background:#f3f3f3}.dashboard-builder .modal-body .item .time{color:#aaa;font-size:12px}.dashboard-builder .modal-body .active{background:#f9f9f9}.dashboard-builder .modal-body .active .fa-angle-double-right{color:#2f97b9;padding-right:5px}.dashboard-builder .modal-body .modal-input{padding:8px 4px;margin-bottom:.5em;width:100%}.dashboard-builder .modal-body .prism{margin-bottom:40px;white-space:pre-wrap}.dashboard-builder .modal-button{border-radius:5px;padding:5px 15px;cursor:pointer;color:#fff;background:#2f97b9;border:none;font-size:14px;line-height:1}.dashboard-builder .modal-button .svg-inline--fa{margin-right:.25rem}.dashboard-builder .modal-footer{padding:10px}.dashboard-builder .modal-cover{width:100%;height:100%;opacity:.4;background:#000;position:absolute;top:0;left:0;z-index:10}.dashboard-builder .modal.share-dashboard{width:500px;top:50px;left:50%;transform:translateX(-50%)}.dashboard-builder .modal.embed-dashboard{width:75%;max-width:700px;top:50%;left:50%;transform:translate(-50%,-50%)}.dashboard-builder .modal.embed-dashboard .modal-button{position:fixed;bottom:15px;left:15px}.dashboard-builder .editor-dashboard-switch .modal-body{padding:0}.dashboard-builder .paragraph{padding:0 10px;overflow:hidden;width:100%}.dashboard-builder .paragraph p{margin:0}.dashboard-builder .keen-dataviz{padding:15px;border:1px solid #ccc}.dashboard-builder .keen-dataviz .keen-dataviz{padding:0;border:none}.dashboard-builder .chart-container{background:#fff;justify-content:center;align-items:center;position:absolute;border-radius:5px;display:flex;flex-direction:column;transition:box-shadow .3s;z-index:1}.dashboard-builder .chart-container:hover{box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23);z-index:8}.dashboard-builder .chart-container:hover .config-buttons{visibility:visible}.dashboard-builder .chart-container img{border-radius:5px}.dashboard-builder .chart-container>.keen-dataviz{overflow:auto;width:100%;margin-top:0;border:1px solid #eee}.dashboard-builder .chart-container-viewer{background:#fff;justify-content:center;align-items:center;border-radius:5px;display:flex;flex-direction:column;transition:box-shadow .3s;z-index:1;position:relative}.dashboard-builder .chart-container-viewer .c3-tooltip-container{z-index:10}.dashboard-builder .chart-container-viewer:hover .explorer-button{visibility:visible}.dashboard-builder .chart-container-viewer img{border-radius:5px}.dashboard-builder .chart-container-viewer>.keen-dataviz{overflow:auto;width:100%;margin-top:0;border:1px solid #eee}.dashboard-builder .config-buttons{position:absolute;top:-1px;right:-35px;display:flex;flex-direction:column;visibility:hidden;padding-left:5px;opacity:1}.dashboard-builder .config-buttons div{cursor:pointer;width:30px;height:30px;background:#000;color:#fff;font-size:15px;box-sizing:border-box;margin-bottom:2px;display:flex;align-items:center;justify-content:center;opacity:.7;border-radius:3px}.dashboard-builder .config-buttons div:hover{background:#424242}.dashboard-builder .explorer-button{position:absolute;z-index:4;top:2px;right:2px;cursor:pointer;width:30px;height:30px;background:#000;color:#fff;box-sizing:border-box;opacity:.7;border-radius:3px;padding-left:8px;padding-top:2px;visibility:hidden}.dashboard-builder .explorer-button a{color:#fff}.dashboard-builder .explorer-button:hover{background:#424242}.dashboard-builder .top-left{left:0;top:0;cursor:nwse-resize;width:10px;height:10px;z-index:4}.dashboard-builder .top-right{right:0;top:0;cursor:nesw-resize;width:10px;height:10px;z-index:4}.dashboard-builder .bottom-left{left:0;bottom:0;cursor:nesw-resize;width:10px;height:10px;z-index:4}.dashboard-builder .bottom-right{right:1px;bottom:1px;cursor:nwse-resize;width:12px;height:12px;z-index:4;border-style:solid;border-width:0 0 12px 12px;border-color:transparent transparent #7c7c7c}.dashboard-builder .left{left:0}.dashboard-builder .left,.dashboard-builder .right{top:0;height:100%;width:5px;cursor:ew-resize;z-index:3}.dashboard-builder .right{right:0}.dashboard-builder .top{top:0}.dashboard-builder .bottom,.dashboard-builder .top{left:0;width:100%;height:5px;cursor:ns-resize;z-index:3}.dashboard-builder .bottom{bottom:0}.dashboard-builder .keen-dataviz-table th{z-index:0}.dashboard-builder .keen-dataviz-title{padding-top:5px}.dashboard-builder .keen-dataviz-metric-subtitle,.dashboard-builder .keen-dataviz-metric-title,.dashboard-builder .keen-dataviz-subtitle,.dashboard-builder .keen-dataviz-title{padding-left:10px;padding-right:10px}.dashboard-builder .chart-draggable{position:absolute;left:10px;width:calc(100% - 20px);height:calc(100% - 20px);z-index:2;cursor:move}.dashboard-builder .search{width:65%;height:100%;display:flex;flex-direction:row;font-size:15px;align-items:center}.dashboard-builder .search svg{margin-right:10px}.dashboard-builder .search input{border:0;background:inherit;width:100%;height:100%;outline:none;font-size:20px}.dashboard-builder .sorting-select{width:200px;margin-top:15px}.dashboard-builder .screen-resize-icon{display:flex;color:hsla(0,0%,44%,.65882);align-items:center;flex:1;justify-content:center}.dashboard-builder .screen-resize-icon svg{margin:0 1rem;cursor:pointer}.dashboard-builder .screen-resize-icon svg:hover{color:#000}.dashboard-builder .save-dashboard-button{border-radius:5px;padding:5px;cursor:pointer;transition:.3s;width:80px;height:31px;margin-right:20px;margin-left:20px;text-align:center;color:#fff;background:#2f97b9;text-transform:uppercase;line-height:1}.dashboard-builder .save-dashboard-button svg{margin-right:.25rem}.dashboard-builder .settings{width:350px;background:#f3f7f9}.dashboard-builder .settings h4{margin-top:2rem;margin-bottom:.5rem;font-weight:400}.dashboard-builder .settings-wrapper{padding:1rem}.dashboard-builder .settings-input{color:#333;font-size:14px;height:38px}.dashboard-builder .settings-input,.dashboard-builder .settings-textarea{width:100%;border-radius:4px;padding:9px;border:1px solid #ccc;outline:none}.dashboard-builder .settings-textarea{color:gray;font-size:16px;height:50%}.dashboard-builder .settings-select>div{width:100%}.dashboard-builder .settings-chart{padding:0}.dashboard-builder .settings-chart-saved-query{padding:1rem}.dashboard-builder .settings-chart #dashboard-builder-explorer .keen-explorer .panel-main{min-width:0;max-width:330px;box-shadow:none}.dashboard-builder .settings-chart .keen-theme-builder{padding:0}.dashboard-builder .settings-chart .keen-theme-builder .builder__header{display:none}.dashboard-builder .settings-chart .keen-theme-builder .keen-theme-builder__row{padding-left:1rem;padding-right:1rem}.dashboard-builder .settings-chart .keen-theme-builder .accordion__item__content .keen-theme-builder__row{padding:0}.dashboard-builder .settings-chart h4:first-child{margin-top:0}.dashboard-builder .react-tabs__tab{width:50%;padding:10px;text-align:center;cursor:pointer;color:#fff;outline:none;border:0;background:#2f97b9}.dashboard-builder .react-tabs__tab:first-of-type{border-right:none}.dashboard-builder .react-tabs__tab--selected{color:#000;border-bottom:none;background:#fff;border-top:1px solid #eee}.dashboard-builder .react-tabs__tab-list{display:flex;flex-direction:row;list-style:none;justify-content:space-between;padding:0;margin-bottom:0}.dashboard-builder .react-tabs__tab-panel{border:0}.dashboard-builder .react-tabs__tab-panel--selected{padding:10px 20px 20px;border:0;visibility:visible;height:calc(100vh - 40px);overflow-y:auto}.dashboard-builder .react-tabs__tab-panel--selected .keen-theme-builder{padding:0}.dashboard-builder .settings-container{min-width:350px;min-height:100%;background:#fff;border-left:1px solid #eee;position:relative;background:#f3f7f9;overflow:auto}.dashboard-builder .settings-container .color-palette__item .color-picker__popover{left:0;right:auto}.dashboard-builder .settings-container .color-palette__item:nth-child(2n) .color-picker__popover{left:auto;right:0}.dashboard-builder .new-dashboard-button{border-radius:5px;padding:1rem;cursor:pointer;color:#fff;background:#2f97b9;text-align:left;white-space:nowrap;display:flex;align-items:center}.dashboard-builder .new-dashboard-button:hover{color:#fff;background:#2f97b9}.dashboard-builder .new-dashboard-button svg{margin-right:.5rem}.dashboard-builder .container{width:1200px;background:#f5f5f5;min-height:100vh;display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start}.dashboard-builder .top-toolbar{flex:1 100%;padding:20px;display:flex;flex-direction:row;justify-content:space-between;width:100%;border-bottom:1px solid #cfcfcf}.dashboard-builder .message{width:100%;text-align:center;padding:20px}.dashboard-builder .new-chart-info,.dashboard-builder .settings-loading{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;background:hsla(0,0%,98%,.9);border-bottom-left-radius:5px;border-bottom-right-radius:5px}.dashboard-builder .error-message{z-index:1;background:#fff;padding:20px;text-align:center;color:red;border:1px solid red;border-radius:5px}.dashboard-builder .dry-run-message{position:absolute;left:0;bottom:0;padding:1rem;background:hsla(0,0%,44%,.65882);color:#fff;border-radius:0 1rem 0 0}.dashboard-builder .select-palette-button select{margin-right:20px;border-radius:5px;padding:8px;width:100px;height:31px;background:#fff}.dashboard-builder .preview{padding:10px}.dashboard-builder .preview a{color:#000}.dashboard-builder .embed-icon:hover,.dashboard-builder .preview:hover a,.dashboard-builder .share-icon:hover{color:#414141}.dashboard-builder .quill{height:70%}.dashboard-builder .edit-dashboard-button{border-radius:5px;padding:5px 10px;cursor:pointer;width:fit-content;text-align:center;color:#fff;background:#2f97b9;text-decoration:none;flex-shrink:0;margin:0 0 0 .5em}.dashboard-builder .edit-dashboard-button__link{display:block;color:#fff;text-decoration:none}.dashboard-builder .edit-dashboard-button__link:hover{color:#fff;text-decoration:none}.dashboard-builder .big-icon{font-size:50px;color:#eee}.dashboard-builder .loading{font-size:50px;animation:a 1s ease infinite;z-index:13}.dashboard-builder .settings-theme-builder,.dashboard-builder .settings-theme-builder .keen-theme-builder{padding:0}.dashboard-builder .settings-theme-builder .keen-theme-builder .builder__header{display:none}.dashboard-builder .switch-dashboard{width:400px;z-index:10}.dashboard-builder .__react_component_tooltip{padding:3px 5px}.dashboard-builder .keen-theme-builder{background-color:#fff}.dashboard-builder .keen-theme-builder .color-picker__popover{z-index:10}.dashboard-builder .keen-theme-builder .builder__header{display:none}.dashboard-builder .heatmap-container .keen-dataviz-rendering-vertical{height:calc(100% - 50px)}.dashboard-builder .keen-dataviz .rangeable-container{margin:2rem auto;width:75%}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-progress,.dashboard-builder .keen-dataviz .rangeable-container .rangeable-track{height:4px}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-handle{width:16px;height:16px;border-width:4px}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-tooltip{border-radius:0;font-weight:400;padding:3px 9px}.dashboard-builder .c3-circle{fill:currentColor}@media only screen and (max-width:1300px){.dashboard-builder .dashboard{min-height:calc(100vh - 130px)}}@media only screen and (min-width:1800px){.dashboard-builder .toolbar-bar{visibility:hidden}.dashboard-builder .toolbar-container{left:0}.dashboard-builder .dashboard-container{padding-left:90px}}.dashboard-builder .export-icon{cursor:pointer}.dashboard-builder .switcher{margin-bottom:.5rem;display:block;position:relative;overflow:hidden}.dashboard-builder .switcher__input:checked~.switcher__toggle{border-color:#3ed08e;background-color:#dcf9eb}.dashboard-builder .switcher__input:checked~.switcher__toggle .switcher__switch{right:2px;background-color:#3ed08e}.dashboard-builder .switcher__input:checked~.switcher__value .on{display:block}.dashboard-builder .switcher__input:checked~.switcher__value .off{display:none}.dashboard-builder .switcher__toggle{position:relative;width:36px;height:20px;margin-right:.25rem;margin-left:.5rem;border:1px solid #ccc;background-color:#fff;border-radius:10px;display:inline-block}.dashboard-builder .switcher__switch{position:absolute;top:2px;bottom:0;right:18px;width:14px;height:14px;margin:0;background:#ccc;border-radius:50%;flex-shrink:0;transition:right .15s ease-in-out,background-color .15s ease-in-out}.dashboard-builder .switcher__title{font-weight:800}.dashboard-builder .switcher__label{display:flex;align-items:center;cursor:pointer}.dashboard-builder .switcher__input{position:absolute;left:-999px}.dashboard-builder .switcher__value{margin-left:.25rem;color:#b3b5b6}.dashboard-builder .switcher__value .on{display:none}.dashboard-builder .switcher__value .off{display:block}.dashboard-builder .layout.editor .keen-dataviz .c3-chart{pointer-events:none}.dashboard-builder .react-grid-item:hover{z-index:7}.dashboard-builder .react-grid-item:hover .config-buttons{visibility:visible}.dashboard-builder .react-grid-item>.react-resizable-handle{width:16px;height:16px;background-color:transparent;background-image:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0IiB2aWV3Qm94PSI5Mi43MjYzMzE4ODA1ODUzOCA4My45MzgyNjA0OTcxMDkwMSA0NzQuMTIxNzExMjU2OTYxIDQ3NC4xMjM0NzkwMDU3ODIiIHdpZHRoPSI0NzAuMTIiIGhlaWdodD0iNDcwLjEyIj48ZGVmcz48cGF0aCBkPSJNMTg1LjY1IDI0Ny41N0w0MDEuMjEgNDYzLjE0QzM3Ni43OSA0ODcuNTYgMzYzLjIyIDUwMS4xMyAzNjAuNSA1MDMuODVDMzQxLjYgNTIyLjc1IDM1NC45OSA1NTUuMDYgMzgxLjcyIDU1NS4wNkMzOTYuOTMgNTU1LjA2IDUxOC42MyA1NTUuMDYgNTMzLjg1IDU1NS4wNkM1NTAuNDIgNTU1LjA2IDU2My44NSA1NDEuNjMgNTYzLjg1IDUyNS4wNkM1NjMuODUgNTA5Ljg1IDU2My44NSAzODguMTQgNTYzLjg1IDM3Mi45M0M1NjMuODUgMzQ2LjIgNTMxLjUzIDMzMi44MiA1MTIuNjMgMzUxLjcyQzUwOS45MiAzNTQuNDMgNDk2LjM1IDM2OCA0NzEuOTIgMzkyLjQzTDI1Ni4zNiAxNzYuODZDMjgwLjc5IDE1Mi40NCAyOTQuMzYgMTM4Ljg3IDI5Ny4wNyAxMzYuMTVDMzE1Ljk3IDExNy4yNSAzMDIuNTkgODQuOTQgMjc1Ljg2IDg0Ljk0QzI2MC42NSA4NC45NCAxMzguOTQgODQuOTQgMTIzLjczIDg0Ljk0QzEwNy4xNiA4NC45NCA5My43MyA5OC4zNyA5My43MyAxMTQuOTRDOTMuNzMgMTMwLjE1IDkzLjczIDI1MS44NiA5My43MyAyNjcuMDdDOTMuNzMgMjkzLjggMTI2LjA0IDMwNy4xOCAxNDQuOTQgMjg4LjI4QzE1MC4zNyAyODIuODYgMTYzLjk0IDI2OS4yOSAxODUuNjUgMjQ3LjU3WiIgaWQ9ImFYVDAwb2VrQyI+PC9wYXRoPjwvZGVmcz48Zz48Zz48dXNlIHhsaW5rOmhyZWY9IiNhWFQwMG9la0MiIG9wYWNpdHk9IjEiIGZpbGw9IiMwMDAwMDAiIGZpbGwtb3BhY2l0eT0iMSI+PC91c2U+PGc+PHVzZSB4bGluazpocmVmPSIjYVhUMDBvZWtDIiBvcGFjaXR5PSIxIiBmaWxsLW9wYWNpdHk9IjAiIHN0cm9rZT0iIzAwMDAwMCIgc3Ryb2tlLXdpZHRoPSIxIiBzdHJva2Utb3BhY2l0eT0iMCI+PC91c2U+PC9nPjwvZz48L2c+PC9zdmc+");background-size:contain;cursor:nwse-resize;opacity:0;will-change:opacity;transition:opacity .25s ease-out}.dashboard-builder .react-grid-item>.react-resizable-handle:after{content:none}.dashboard-builder .react-grid-item.react-resizable:hover .react-resizable-handle{opacity:1}.dashboard-builder .react-grid-item.react-grid-placeholder{background:#2f97b9}.dashboard-builder .react-grid-item .keen-dataviz{overflow:auto}.dashboard-builder .react-grid-item img{pointer-events:none}.dashboard-builder .react-grid-layout{min-height:230px}@keyframes a{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}', + '' + ]); + }, + function(e, t, n) { + (function(e) { + var r = + (void 0 !== e && e) || + ('undefined' != typeof self && self) || + window, + o = Function.prototype.apply; + function i(e, t) { + (this._id = e), (this._clearFn = t); } - var n, o, u; - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { value: e, writable: !0, configurable: !0 } - })), - t && _(e, t); - })(t, e), - (n = t), - (u = [ - { - key: 'getDerivedStateFromProps', - value: function(e, t) { - if (!(0, i.default)(e.layouts, t.layouts)) { - var n = t.breakpoint, - r = t.cols; - return { - layout: (0, s.findOrGenerateResponsiveLayout)( - e.layouts, - e.breakpoints, - n, - n, - r, - e.compactType - ), - layouts: e.layouts - }; - } - return null; - } - } - ]), - (o = [ - { - key: 'generateInitialState', - value: function() { - var e = this.props, - t = e.width, - n = e.breakpoints, - r = e.layouts, - o = e.cols, - i = (0, s.getBreakpointFromWidth)(n, t), - a = (0, s.getColsFromBreakpoint)(i, o), - c = - !1 === this.props.verticalCompact - ? null - : this.props.compactType; - return { - layout: (0, s.findOrGenerateResponsiveLayout)( - r, - n, - i, - i, - a, - c - ), - breakpoint: i, - cols: a - }; - } - }, - { - key: 'componentDidUpdate', - value: function(e) { - (this.props.width == e.width && - this.props.breakpoint === e.breakpoint && - (0, i.default)(this.props.breakpoints, e.breakpoints) && - (0, i.default)(this.props.cols, e.cols)) || - this.onWidthChange(this.props); - } - }, - { - key: 'onWidthChange', - value: function(e) { - var t = e.breakpoints, - n = e.cols, - r = e.layouts, - o = e.compactType, - i = - e.breakpoint || - (0, s.getBreakpointFromWidth)(e.breakpoints, e.width), - c = this.state.breakpoint, - u = (0, s.getColsFromBreakpoint)(i, n); - if ( - c !== i || - this.props.breakpoints !== t || - this.props.cols !== n - ) { - c in r || (r[c] = (0, a.cloneLayout)(this.state.layout)); - var l = (0, s.findOrGenerateResponsiveLayout)( - r, - t, - i, - c, - u, - o - ); - (l = (0, a.synchronizeLayoutWithChildren)( - l, - e.children, - u, - o - )), - (r[i] = l), - this.props.onLayoutChange(l, r), - this.props.onBreakpointChange(i, u), - this.setState({ breakpoint: i, layout: l, cols: u }); - } - var f = M(e.margin, i), - d = M(e.containerPadding, i); - this.props.onWidthChange(e.width, f, u, d); - } - }, - { - key: 'render', - value: function() { - var e = this.props, - t = - (e.breakpoint, e.breakpoints, e.cols, e.layouts, e.margin), - n = e.containerPadding, - o = - (e.onBreakpointChange, - e.onLayoutChange, - e.onWidthChange, - d(e, [ - 'breakpoint', - 'breakpoints', - 'cols', - 'layouts', - 'margin', - 'containerPadding', - 'onBreakpointChange', - 'onLayoutChange', - 'onWidthChange' - ])); - return r.default.createElement( - c.default, - f({}, o, { - margin: M(t, this.state.breakpoint), - containerPadding: M(n, this.state.breakpoint), - onLayoutChange: this.onLayoutChange, - layout: this.state.layout, - cols: this.state.cols - }) - ); - } - } - ]) && m(n.prototype, o), - u && m(n, u), - t - ); - })(r.default.Component); - (t.default = k), - x(k, 'propTypes', { - breakpoint: o.default.string, - breakpoints: o.default.object, - cols: o.default.object, - margin: o.default.oneOfType([o.default.array, o.default.object]), - containerPadding: o.default.oneOfType([ - o.default.array, - o.default.object - ]), - layouts: function(e, t) { - if ('[object Object]' !== w(e[t])) - throw new Error( - 'Layout property must be an object. Received: ' + w(e[t]) - ); - Object.keys(e[t]).forEach(function(t) { - if (!(t in e.breakpoints)) - throw new Error( - 'Each key in layouts must align with a key in breakpoints.' - ); - (0, a.validateLayout)(e.layouts[t], 'layouts.' + t); - }); - }, - width: o.default.number.isRequired, - onBreakpointChange: o.default.func, - onLayoutChange: o.default.func, - onWidthChange: o.default.func + (t.setTimeout = function() { + return new i(o.call(setTimeout, r, arguments), clearTimeout); }), - x(k, 'defaultProps', { - breakpoints: { lg: 1200, md: 996, sm: 768, xs: 480, xxs: 0 }, - cols: { lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 }, - layouts: {}, - margin: [10, 10], - containerPadding: { - lg: null, - md: null, - sm: null, - xs: null, - xxs: null - }, - onBreakpointChange: a.noop, - onLayoutChange: a.noop, - onWidthChange: a.noop - }); + (t.setInterval = function() { + return new i(o.call(setInterval, r, arguments), clearInterval); + }), + (t.clearTimeout = t.clearInterval = function(e) { + e && e.close(); + }), + (i.prototype.unref = i.prototype.ref = function() {}), + (i.prototype.close = function() { + this._clearFn.call(r, this._id); + }), + (t.enroll = function(e, t) { + clearTimeout(e._idleTimeoutId), (e._idleTimeout = t); + }), + (t.unenroll = function(e) { + clearTimeout(e._idleTimeoutId), (e._idleTimeout = -1); + }), + (t._unrefActive = t.active = function(e) { + clearTimeout(e._idleTimeoutId); + var t = e._idleTimeout; + t >= 0 && + (e._idleTimeoutId = setTimeout(function() { + e._onTimeout && e._onTimeout(); + }, t)); + }), + n(551), + (t.setImmediate = + ('undefined' != typeof self && self.setImmediate) || + (void 0 !== e && e.setImmediate) || + (this && this.setImmediate)), + (t.clearImmediate = + ('undefined' != typeof self && self.clearImmediate) || + (void 0 !== e && e.clearImmediate) || + (this && this.clearImmediate)); + }.call(this, n(33))); }, function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = function(e) { - var t, n; - return ( - (n = t = (function(t) { - function n() { - var e, t; - u(this, n); - for ( - var r = arguments.length, o = new Array(r), a = 0; - a < r; - a++ - ) - o[a] = arguments[a]; - return ( - g( - p( - (t = f(this, (e = d(n)).call.apply(e, [this].concat(o)))) - ), - 'state', - { width: 1280 } - ), - g(p(t), 'mounted', !1), - g(p(t), 'onWindowResize', function() { - if (t.mounted) { - var e = i.default.findDOMNode(p(t)); - e instanceof HTMLElement && - t.setState({ width: e.offsetWidth }); + (function(e, t) { + !(function(e, n) { + 'use strict'; + if (!e.setImmediate) { + var r, + o, + i, + a, + s, + c = 1, + u = {}, + l = !1, + f = e.document, + d = Object.getPrototypeOf && Object.getPrototypeOf(e); + (d = d && d.setTimeout ? d : e), + '[object process]' === {}.toString.call(e.process) + ? (r = function(e) { + t.nextTick(function() { + h(e); + }); + }) + : !(function() { + if (e.postMessage && !e.importScripts) { + var t = !0, + n = e.onmessage; + return ( + (e.onmessage = function() { + t = !1; + }), + e.postMessage('', '*'), + (e.onmessage = n), + t + ); } + })() + ? e.MessageChannel + ? (((i = new MessageChannel()).port1.onmessage = function(e) { + h(e.data); + }), + (r = function(e) { + i.port2.postMessage(e); + })) + : f && 'onreadystatechange' in f.createElement('script') + ? ((o = f.documentElement), + (r = function(e) { + var t = f.createElement('script'); + (t.onreadystatechange = function() { + h(e), + (t.onreadystatechange = null), + o.removeChild(t), + (t = null); + }), + o.appendChild(t); + })) + : (r = function(e) { + setTimeout(h, 0, e); + }) + : ((a = 'setImmediate$' + Math.random() + '$'), + (s = function(t) { + t.source === e && + 'string' == typeof t.data && + 0 === t.data.indexOf(a) && + h(+t.data.slice(a.length)); }), - t - ); - } - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { value: e, writable: !0, configurable: !0 } + e.addEventListener + ? e.addEventListener('message', s, !1) + : e.attachEvent('onmessage', s), + (r = function(t) { + e.postMessage(a + t, '*'); })), - t && h(e, t); - })(n, t), - (function(e, t, n) { - t && l(e.prototype, t); - n && l(e, n); - })(n, [ - { - key: 'componentDidMount', - value: function() { - (this.mounted = !0), - window.addEventListener('resize', this.onWindowResize), - this.onWindowResize(); - } - }, - { - key: 'componentWillUnmount', - value: function() { - (this.mounted = !1), - window.removeEventListener( - 'resize', - this.onWindowResize - ); - } - }, - { - key: 'render', - value: function() { - var t = this.props, - n = t.measureBeforeMount, - o = (function(e, t) { - if (null == e) return {}; - var n, - r, - o = (function(e, t) { - if (null == e) return {}; - var n, - r, - o = {}, - i = Object.keys(e); - for (r = 0; r < i.length; r++) - (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); - return o; - })(e, t); - if (Object.getOwnPropertySymbols) { - var i = Object.getOwnPropertySymbols(e); - for (r = 0; r < i.length; r++) - (n = i[r]), - t.indexOf(n) >= 0 || - (Object.prototype.propertyIsEnumerable.call( - e, - n - ) && - (o[n] = e[n])); - } - return o; - })(t, ['measureBeforeMount']); - return n && !this.mounted - ? r.default.createElement('div', { - className: this.props.className, - style: this.props.style - }) - : r.default.createElement(e, c({}, o, this.state)); + (d.setImmediate = function(e) { + 'function' != typeof e && (e = new Function('' + e)); + for ( + var t = new Array(arguments.length - 1), n = 0; + n < t.length; + n++ + ) + t[n] = arguments[n + 1]; + var o = { callback: e, args: t }; + return (u[c] = o), r(c), c++; + }), + (d.clearImmediate = p); + } + function p(e) { + delete u[e]; + } + function h(e) { + if (l) setTimeout(h, 0, e); + else { + var t = u[e]; + if (t) { + l = !0; + try { + !(function(e) { + var t = e.callback, + r = e.args; + switch (r.length) { + case 0: + t(); + break; + case 1: + t(r[0]); + break; + case 2: + t(r[0], r[1]); + break; + case 3: + t(r[0], r[1], r[2]); + break; + default: + t.apply(n, r); } - } - ]), - n - ); - })(r.default.Component)), - g(t, 'defaultProps', { measureBeforeMount: !1 }), - g(t, 'propTypes', { measureBeforeMount: o.default.bool }), - n - ); - }); - var r = a(n(0)), - o = a(n(1)), - i = a(n(4)); - function a(e) { - return e && e.__esModule ? e : { default: e }; - } - function s(e) { - return (s = + })(t); + } finally { + p(e), (l = !1); + } + } + } + } + })('undefined' == typeof self ? (void 0 === e ? this : e) : self); + }.call(this, n(33), n(223))); + }, + function(e, t) { + function n(e) { + return (n = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { return typeof e; @@ -145172,6 +143375,103 @@ object-assign : typeof e; })(e); } + function r(t) { + return ( + 'function' == typeof Symbol && 'symbol' === n(Symbol.iterator) + ? (e.exports = r = function(e) { + return n(e); + }) + : (e.exports = r = function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : n(e); + }), + r(t) + ); + } + e.exports = r; + }, + function(e, t) { + function n(t, r) { + return ( + (e.exports = n = + Object.setPrototypeOf || + function(e, t) { + return (e.__proto__ = t), e; + }), + n(t, r) + ); + } + e.exports = n; + }, + function(e, t) { + e.exports = + Array.isArray || + function(e) { + return '[object Array]' == Object.prototype.toString.call(e); + }; + }, + function(e, t, n) { + (function(t) { + (function() { + var n, r, o, i, a, s; + 'undefined' != typeof performance && + null !== performance && + performance.now + ? (e.exports = function() { + return performance.now(); + }) + : null != t && t.hrtime + ? ((e.exports = function() { + return (n() - a) / 1e6; + }), + (r = t.hrtime), + (i = (n = function() { + var e; + return 1e9 * (e = r())[0] + e[1]; + })()), + (s = 1e9 * t.uptime()), + (a = i - s)) + : Date.now + ? ((e.exports = function() { + return Date.now() - o; + }), + (o = Date.now())) + : ((e.exports = function() { + return new Date().getTime() - o; + }), + (o = new Date().getTime())); + }.call(this)); + }.call(this, n(223))); + }, + function(e, t, n) { + 'use strict'; + (t.__esModule = !0), (t.default = void 0); + !(function(e) { + if (e && e.__esModule) return e; + var t = {}; + if (null != e) + for (var n in e) + if (Object.prototype.hasOwnProperty.call(e, n)) { + var r = + Object.defineProperty && Object.getOwnPropertyDescriptor + ? Object.getOwnPropertyDescriptor(e, n) + : {}; + r.get || r.set ? Object.defineProperty(t, n, r) : (t[n] = e[n]); + } + t.default = e; + })(n(1)); + var r = s(n(557)), + o = s(n(560)), + i = s(n(0)), + a = s(n(224)); + n(225); + function s(e) { + return e && e.__esModule ? e : { default: e }; + } function c() { return (c = Object.assign || @@ -145184,11129 +143484,13587 @@ object-assign return e; }).apply(this, arguments); } - function u(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function l(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - function f(e, t) { - return !t || ('object' !== s(t) && 'function' != typeof t) ? p(e) : t; - } - function d(e) { - return (d = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(e) { - return e.__proto__ || Object.getPrototypeOf(e); - })(e); - } - function p(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" + var u = function(e, t) { + return ( + e && + t && + t.split(' ').forEach(function(t) { + return (0, r.default)(e, t); + }) ); - return e; - } - function h(e, t) { - return (h = - Object.setPrototypeOf || - function(e, t) { - return (e.__proto__ = t), e; - })(e, t); - } - function g(e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e - ); - } + }, + l = function(e, t) { + return ( + e && + t && + t.split(' ').forEach(function(t) { + return (0, o.default)(e, t); + }) + ); + }, + f = (function(e) { + var t, n; + function r() { + for ( + var t, n = arguments.length, r = new Array(n), o = 0; + o < n; + o++ + ) + r[o] = arguments[o]; + return ( + ((t = + e.call.apply(e, [this].concat(r)) || this).onEnter = function( + e, + n + ) { + var r = t.getClassNames(n ? 'appear' : 'enter').className; + t.removeClasses(e, 'exit'), + u(e, r), + t.props.onEnter && t.props.onEnter(e, n); + }), + (t.onEntering = function(e, n) { + var r = t.getClassNames(n ? 'appear' : 'enter').activeClassName; + t.reflowAndAddClass(e, r), + t.props.onEntering && t.props.onEntering(e, n); + }), + (t.onEntered = function(e, n) { + var r = t.getClassNames('appear').doneClassName, + o = t.getClassNames('enter').doneClassName, + i = n ? r + ' ' + o : o; + t.removeClasses(e, n ? 'appear' : 'enter'), + u(e, i), + t.props.onEntered && t.props.onEntered(e, n); + }), + (t.onExit = function(e) { + var n = t.getClassNames('exit').className; + t.removeClasses(e, 'appear'), + t.removeClasses(e, 'enter'), + u(e, n), + t.props.onExit && t.props.onExit(e); + }), + (t.onExiting = function(e) { + var n = t.getClassNames('exit').activeClassName; + t.reflowAndAddClass(e, n), + t.props.onExiting && t.props.onExiting(e); + }), + (t.onExited = function(e) { + var n = t.getClassNames('exit').doneClassName; + t.removeClasses(e, 'exit'), + u(e, n), + t.props.onExited && t.props.onExited(e); + }), + (t.getClassNames = function(e) { + var n = t.props.classNames, + r = 'string' == typeof n, + o = r ? (r && n ? n + '-' : '') + e : n[e]; + return { + className: o, + activeClassName: r ? o + '-active' : n[e + 'Active'], + doneClassName: r ? o + '-done' : n[e + 'Done'] + }; + }), + t + ); + } + (n = e), + ((t = r).prototype = Object.create(n.prototype)), + (t.prototype.constructor = t), + (t.__proto__ = n); + var o = r.prototype; + return ( + (o.removeClasses = function(e, t) { + var n = this.getClassNames(t), + r = n.className, + o = n.activeClassName, + i = n.doneClassName; + r && l(e, r), o && l(e, o), i && l(e, i); + }), + (o.reflowAndAddClass = function(e, t) { + t && (e && e.scrollTop, u(e, t)); + }), + (o.render = function() { + var e = c({}, this.props); + return ( + delete e.classNames, + i.default.createElement( + a.default, + c({}, e, { + onEnter: this.onEnter, + onEntered: this.onEntered, + onEntering: this.onEntering, + onExit: this.onExit, + onExiting: this.onExiting, + onExited: this.onExited + }) + ) + ); + }), + r + ); + })(i.default.Component); + (f.defaultProps = { classNames: '' }), (f.propTypes = {}); + var d = f; + (t.default = d), (e.exports = t.default); }, function(e, t, n) { 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = function(e) { - return ( - 'text' === e.type && /\r?\n/.test(e.data) && '' === e.data.trim() - ); + var r = n(558); + (t.__esModule = !0), + (t.default = function(e, t) { + e.classList + ? e.classList.add(t) + : (0, o.default)(e, t) || + ('string' == typeof e.className + ? (e.className = e.className + ' ' + t) + : e.setAttribute( + 'class', + ((e.className && e.className.baseVal) || '') + ' ' + t + )); }); + var o = r(n(559)); + e.exports = t.default; + }, + function(e, t) { + e.exports = function(e) { + return e && e.__esModule ? e : { default: e }; + }; }, function(e, t, n) { 'use strict'; - var r; - Object.defineProperty(t, '__esModule', { value: !0 }); - var o = n(65), - i = u(n(583)), - a = u(n(584)), - s = u(n(590)), - c = u(n(591)); - function u(e) { + (t.__esModule = !0), + (t.default = function(e, t) { + return e.classList + ? !!t && e.classList.contains(t) + : -1 !== + (' ' + (e.className.baseVal || e.className) + ' ').indexOf( + ' ' + t + ' ' + ); + }), + (e.exports = t.default); + }, + function(e, t, n) { + 'use strict'; + function r(e, t) { + return e + .replace(new RegExp('(^|\\s)' + t + '(?:\\s|$)', 'g'), '$1') + .replace(/\s+/g, ' ') + .replace(/^\s*|\s*$/g, ''); + } + e.exports = function(e, t) { + e.classList + ? e.classList.remove(t) + : 'string' == typeof e.className + ? (e.className = r(e.className, t)) + : e.setAttribute( + 'class', + r((e.className && e.className.baseVal) || '', t) + ); + }; + }, + function(e, t, n) { + 'use strict'; + (t.__esModule = !0), (t.default = void 0); + a(n(1)); + var r = a(n(0)), + o = n(7), + i = a(n(226)); + function a(e) { return e && e.__esModule ? e : { default: e }; } - function l(e, t, n) { + var s = (function(e) { + var t, n; + function a() { + for (var t, n = arguments.length, r = new Array(n), o = 0; o < n; o++) + r[o] = arguments[o]; + return ( + ((t = + e.call.apply(e, [this].concat(r)) || + this).handleEnter = function() { + for ( + var e = arguments.length, n = new Array(e), r = 0; + r < e; + r++ + ) + n[r] = arguments[r]; + return t.handleLifecycle('onEnter', 0, n); + }), + (t.handleEntering = function() { + for ( + var e = arguments.length, n = new Array(e), r = 0; + r < e; + r++ + ) + n[r] = arguments[r]; + return t.handleLifecycle('onEntering', 0, n); + }), + (t.handleEntered = function() { + for ( + var e = arguments.length, n = new Array(e), r = 0; + r < e; + r++ + ) + n[r] = arguments[r]; + return t.handleLifecycle('onEntered', 0, n); + }), + (t.handleExit = function() { + for ( + var e = arguments.length, n = new Array(e), r = 0; + r < e; + r++ + ) + n[r] = arguments[r]; + return t.handleLifecycle('onExit', 1, n); + }), + (t.handleExiting = function() { + for ( + var e = arguments.length, n = new Array(e), r = 0; + r < e; + r++ + ) + n[r] = arguments[r]; + return t.handleLifecycle('onExiting', 1, n); + }), + (t.handleExited = function() { + for ( + var e = arguments.length, n = new Array(e), r = 0; + r < e; + r++ + ) + n[r] = arguments[r]; + return t.handleLifecycle('onExited', 1, n); + }), + t + ); + } + (n = e), + ((t = a).prototype = Object.create(n.prototype)), + (t.prototype.constructor = t), + (t.__proto__ = n); + var s = a.prototype; return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e + (s.handleLifecycle = function(e, t, n) { + var i, + a = this.props.children, + s = r.default.Children.toArray(a)[t]; + s.props[e] && (i = s.props)[e].apply(i, n), + this.props[e] && this.props[e]((0, o.findDOMNode)(this)); + }), + (s.render = function() { + var e = this.props, + t = e.children, + n = e.in, + o = (function(e, t) { + if (null == e) return {}; + var n, + r, + o = {}, + i = Object.keys(e); + for (r = 0; r < i.length; r++) + (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); + return o; + })(e, ['children', 'in']), + a = r.default.Children.toArray(t), + s = a[0], + c = a[1]; + return ( + delete o.onEnter, + delete o.onEntering, + delete o.onEntered, + delete o.onExit, + delete o.onExiting, + delete o.onExited, + r.default.createElement( + i.default, + o, + n + ? r.default.cloneElement(s, { + key: 'first', + onEnter: this.handleEnter, + onEntering: this.handleEntering, + onEntered: this.handleEntered + }) + : r.default.cloneElement(c, { + key: 'second', + onEnter: this.handleExit, + onEntering: this.handleExiting, + onEntered: this.handleExited + }) + ) + ); + }), + a ); - } - t.default = - (l((r = {}), o.ElementType.Text, i.default), - l(r, o.ElementType.Tag, a.default), - l(r, o.ElementType.Style, s.default), - l(r, o.ElementType.Directive, c.default), - l(r, o.ElementType.Comment, c.default), - l(r, o.ElementType.Script, c.default), - l(r, o.ElementType.CDATA, c.default), - l(r, o.ElementType.Doctype, c.default), - r); - }, - function(e, t, n) { - var r = n(554); - e.exports = function(e) { - if ((e >= 55296 && e <= 57343) || e > 1114111) return '�'; - e in r && (e = r[e]); - var t = ''; - e > 65535 && - ((e -= 65536), - (t += String.fromCharCode(((e >>> 10) & 1023) | 55296)), - (e = 56320 | (1023 & e))); - return (t += String.fromCharCode(e)); - }; - }, - function(e) { - e.exports = JSON.parse( - '{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}' - ); - }, - function(e) { - e.exports = JSON.parse( - '{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}' - ); - }, - function(e) { - e.exports = JSON.parse( - '{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}' - ); - }, - function(e) { - e.exports = JSON.parse( - '{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}' - ); + })(r.default.Component); + s.propTypes = {}; + var c = s; + (t.default = c), (e.exports = t.default); }, function(e, t, n) { 'use strict'; - var r, - o = 'object' == typeof Reflect ? Reflect : null, - i = - o && 'function' == typeof o.apply - ? o.apply - : function(e, t, n) { - return Function.prototype.apply.call(e, t, n); - }; - r = - o && 'function' == typeof o.ownKeys - ? o.ownKeys - : Object.getOwnPropertySymbols - ? function(e) { - return Object.getOwnPropertyNames(e).concat( - Object.getOwnPropertySymbols(e) - ); - } - : function(e) { - return Object.getOwnPropertyNames(e); - }; - var a = - Number.isNaN || - function(e) { - return e != e; - }; - function s() { - s.init.call(this); - } - (e.exports = s), - (s.EventEmitter = s), - (s.prototype._events = void 0), - (s.prototype._eventsCount = 0), - (s.prototype._maxListeners = void 0); - var c = 10; - function u(e) { - if ('function' != typeof e) - throw new TypeError( - 'The "listener" argument must be of type Function. Received type ' + - typeof e - ); - } - function l(e) { - return void 0 === e._maxListeners - ? s.defaultMaxListeners - : e._maxListeners; - } - function f(e, t, n, r) { - var o, i, a, s; - if ( - (u(n), - void 0 === (i = e._events) - ? ((i = e._events = Object.create(null)), (e._eventsCount = 0)) - : (void 0 !== i.newListener && - (e.emit('newListener', t, n.listener ? n.listener : n), - (i = e._events)), - (a = i[t])), - void 0 === a) - ) - (a = i[t] = n), ++e._eventsCount; - else if ( - ('function' == typeof a - ? (a = i[t] = r ? [n, a] : [a, n]) - : r - ? a.unshift(n) - : a.push(n), - (o = l(e)) > 0 && a.length > o && !a.warned) - ) { - a.warned = !0; - var c = new Error( - 'Possible EventEmitter memory leak detected. ' + - a.length + - ' ' + - String(t) + - ' listeners added. Use emitter.setMaxListeners() to increase limit' - ); - (c.name = 'MaxListenersExceededWarning'), - (c.emitter = e), - (c.type = t), - (c.count = a.length), - (s = c), - console && console.warn && console.warn(s); - } - return e; - } - function d() { - if (!this.fired) + (t.__esModule = !0), + (t.getChildMapping = o), + (t.mergeChildMappings = i), + (t.getInitialChildMapping = function(e, t) { + return o(e.children, function(n) { + return (0, + r.cloneElement)(n, { onExited: t.bind(null, n), in: !0, appear: a(n, 'appear', e), enter: a(n, 'enter', e), exit: a(n, 'exit', e) }); + }); + }), + (t.getNextChildMapping = function(e, t, n) { + var s = o(e.children), + c = i(t, s); return ( - this.target.removeListener(this.type, this.wrapFn), - (this.fired = !0), - 0 === arguments.length - ? this.listener.call(this.target) - : this.listener.apply(this.target, arguments) + Object.keys(c).forEach(function(o) { + var i = c[o]; + if ((0, r.isValidElement)(i)) { + var u = o in t, + l = o in s, + f = t[o], + d = (0, r.isValidElement)(f) && !f.props.in; + !l || (u && !d) + ? l || !u || d + ? l && + u && + (0, r.isValidElement)(f) && + (c[o] = (0, r.cloneElement)(i, { + onExited: n.bind(null, i), + in: f.props.in, + exit: a(i, 'exit', e), + enter: a(i, 'enter', e) + })) + : (c[o] = (0, r.cloneElement)(i, { in: !1 })) + : (c[o] = (0, r.cloneElement)(i, { + onExited: n.bind(null, i), + in: !0, + exit: a(i, 'exit', e), + enter: a(i, 'enter', e) + })); + } + }), + c ); + }); + var r = n(0); + function o(e, t) { + var n = Object.create(null); + return ( + e && + r.Children.map(e, function(e) { + return e; + }).forEach(function(e) { + n[e.key] = (function(e) { + return t && (0, r.isValidElement)(e) ? t(e) : e; + })(e); + }), + n + ); } - function p(e, t, n) { - var r = { fired: !1, wrapFn: void 0, target: e, type: t, listener: n }, - o = d.bind(r); - return (o.listener = n), (r.wrapFn = o), o; - } - function h(e, t, n) { - var r = e._events; - if (void 0 === r) return []; - var o = r[t]; - return void 0 === o - ? [] - : 'function' == typeof o - ? n - ? [o.listener || o] - : [o] - : n - ? (function(e) { - for (var t = new Array(e.length), n = 0; n < t.length; ++n) - t[n] = e[n].listener || e[n]; - return t; - })(o) - : m(o, o.length); - } - function g(e) { - var t = this._events; - if (void 0 !== t) { - var n = t[e]; - if ('function' == typeof n) return 1; - if (void 0 !== n) return n.length; + function i(e, t) { + function n(n) { + return n in t ? t[n] : e[n]; } - return 0; + (e = e || {}), (t = t || {}); + var r, + o = Object.create(null), + i = []; + for (var a in e) + a in t ? i.length && ((o[a] = i), (i = [])) : i.push(a); + var s = {}; + for (var c in t) { + if (o[c]) + for (r = 0; r < o[c].length; r++) { + var u = o[c][r]; + s[o[c][r]] = n(u); + } + s[c] = n(c); + } + for (r = 0; r < i.length; r++) s[i[r]] = n(i[r]); + return s; } - function m(e, t) { - for (var n = new Array(t), r = 0; r < t; ++r) n[r] = e[r]; - return n; + function a(e, t, n) { + return null != n[t] ? n[t] : e.props[t]; } - Object.defineProperty(s, 'defaultMaxListeners', { - enumerable: !0, - get: function() { - return c; - }, - set: function(e) { - if ('number' != typeof e || e < 0 || a(e)) - throw new RangeError( - 'The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + - e + - '.' - ); - c = e; - } - }), - (s.init = function() { - (void 0 !== this._events && - this._events !== Object.getPrototypeOf(this)._events) || - ((this._events = Object.create(null)), (this._eventsCount = 0)), - (this._maxListeners = this._maxListeners || void 0); - }), - (s.prototype.setMaxListeners = function(e) { - if ('number' != typeof e || e < 0 || a(e)) - throw new RangeError( - 'The value of "n" is out of range. It must be a non-negative number. Received ' + - e + - '.' - ); - return (this._maxListeners = e), this; - }), - (s.prototype.getMaxListeners = function() { - return l(this); - }), - (s.prototype.emit = function(e) { - for (var t = [], n = 1; n < arguments.length; n++) - t.push(arguments[n]); - var r = 'error' === e, - o = this._events; - if (void 0 !== o) r = r && void 0 === o.error; - else if (!r) return !1; - if (r) { - var a; - if ((t.length > 0 && (a = t[0]), a instanceof Error)) throw a; - var s = new Error( - 'Unhandled error.' + (a ? ' (' + a.message + ')' : '') - ); - throw ((s.context = a), s); - } - var c = o[e]; - if (void 0 === c) return !1; - if ('function' == typeof c) i(c, this, t); - else { - var u = c.length, - l = m(c, u); - for (n = 0; n < u; ++n) i(l[n], this, t); - } - return !0; - }), - (s.prototype.addListener = function(e, t) { - return f(this, e, t, !1); - }), - (s.prototype.on = s.prototype.addListener), - (s.prototype.prependListener = function(e, t) { - return f(this, e, t, !0); - }), - (s.prototype.once = function(e, t) { - return u(t), this.on(e, p(this, e, t)), this; - }), - (s.prototype.prependOnceListener = function(e, t) { - return u(t), this.prependListener(e, p(this, e, t)), this; - }), - (s.prototype.removeListener = function(e, t) { - var n, r, o, i, a; - if ((u(t), void 0 === (r = this._events))) return this; - if (void 0 === (n = r[e])) return this; - if (n === t || n.listener === t) - 0 == --this._eventsCount - ? (this._events = Object.create(null)) - : (delete r[e], - r.removeListener && - this.emit('removeListener', e, n.listener || t)); - else if ('function' != typeof n) { - for (o = -1, i = n.length - 1; i >= 0; i--) - if (n[i] === t || n[i].listener === t) { - (a = n[i].listener), (o = i); - break; - } - if (o < 0) return this; - 0 === o - ? n.shift() - : (function(e, t) { - for (; t + 1 < e.length; t++) e[t] = e[t + 1]; - e.pop(); - })(n, o), - 1 === n.length && (r[e] = n[0]), - void 0 !== r.removeListener && - this.emit('removeListener', e, a || t); - } - return this; - }), - (s.prototype.off = s.prototype.removeListener), - (s.prototype.removeAllListeners = function(e) { - var t, n, r; - if (void 0 === (n = this._events)) return this; - if (void 0 === n.removeListener) - return ( - 0 === arguments.length - ? ((this._events = Object.create(null)), - (this._eventsCount = 0)) - : void 0 !== n[e] && - (0 == --this._eventsCount - ? (this._events = Object.create(null)) - : delete n[e]), - this - ); - if (0 === arguments.length) { - var o, - i = Object.keys(n); - for (r = 0; r < i.length; ++r) - 'removeListener' !== (o = i[r]) && this.removeAllListeners(o); - return ( - this.removeAllListeners('removeListener'), - (this._events = Object.create(null)), - (this._eventsCount = 0), - this - ); - } - if ('function' == typeof (t = n[e])) this.removeListener(e, t); - else if (void 0 !== t) - for (r = t.length - 1; r >= 0; r--) this.removeListener(e, t[r]); - return this; - }), - (s.prototype.listeners = function(e) { - return h(this, e, !0); - }), - (s.prototype.rawListeners = function(e) { - return h(this, e, !1); - }), - (s.listenerCount = function(e, t) { - return 'function' == typeof e.listenerCount - ? e.listenerCount(t) - : g.call(e, t); - }), - (s.prototype.listenerCount = g), - (s.prototype.eventNames = function() { - return this._eventsCount > 0 ? r(this._events) : []; - }); }, function(e, t, n) { - var r = n(220), - o = (e.exports = Object.create(r)), - i = { tagName: 'name' }; - Object.keys(i).forEach(function(e) { - var t = i[e]; - Object.defineProperty(o, e, { - get: function() { - return this[t] || null; - }, - set: function(e) { - return (this[t] = e), e; + var r = n(116), + o = n(227), + i = n(568), + a = n(571), + s = n(103), + c = n(34), + u = n(101), + l = n(123), + f = 1, + d = '[object Arguments]', + p = '[object Array]', + h = '[object Object]', + g = Object.prototype.hasOwnProperty; + e.exports = function(e, t, n, m, b, y) { + var v = c(e), + _ = c(t), + w = v ? p : s(e), + x = _ ? p : s(t), + M = (w = w == d ? h : w) == h, + k = (x = x == d ? h : x) == h, + S = w == x; + if (S && u(e)) { + if (!u(t)) return !1; + (v = !0), (M = !1); + } + if (S && !M) + return ( + y || (y = new r()), + v || l(e) ? o(e, t, n, m, b, y) : i(e, t, w, n, m, b, y) + ); + if (!(n & f)) { + var O = M && g.call(e, '__wrapped__'), + E = k && g.call(t, '__wrapped__'); + if (O || E) { + var A = O ? e.value() : e, + T = E ? t.value() : t; + return y || (y = new r()), b(A, T, n, m, y); } - }); - }); + } + return !!S && (y || (y = new r()), a(e, t, n, m, b, y)); + }; }, function(e, t, n) { - var r = n(219), - o = n(221); - function i(e, t) { - this.init(e, t); - } - function a(e, t) { - return o.getElementsByTagName(e, t, !0); - } - function s(e, t) { - return o.getElementsByTagName(e, t, !0, 1)[0]; - } - function c(e, t, n) { - return o.getText(o.getElementsByTagName(e, t, n, 1)).trim(); - } - function u(e, t, n, r, o) { - var i = c(n, r, o); - i && (e[t] = i); + var r = n(149), + o = n(565), + i = n(566); + function a(e) { + var t = -1, + n = null == e ? 0 : e.length; + for (this.__data__ = new r(); ++t < n; ) this.add(e[t]); } - n(111)(i, r), (i.prototype.init = r); - var l = function(e) { - return 'rss' === e || 'feed' === e || 'rdf:RDF' === e; + (a.prototype.add = a.prototype.push = o), + (a.prototype.has = i), + (e.exports = a); + }, + function(e, t) { + var n = '__lodash_hash_undefined__'; + e.exports = function(e) { + return this.__data__.set(e, n), this; }; - (i.prototype.onend = function() { - var e, - t, - n = {}, - o = s(l, this.dom); - o && - ('feed' === o.name - ? ((t = o.children), - (n.type = 'atom'), - u(n, 'id', 'id', t), - u(n, 'title', 'title', t), - (e = s('link', t)) && - (e = e.attribs) && - (e = e.href) && - (n.link = e), - u(n, 'description', 'subtitle', t), - (e = c('updated', t)) && (n.updated = new Date(e)), - u(n, 'author', 'email', t, !0), - (n.items = a('entry', t).map(function(e) { - var t, - n = {}; - return ( - u(n, 'id', 'id', (e = e.children)), - u(n, 'title', 'title', e), - (t = s('link', e)) && - (t = t.attribs) && - (t = t.href) && - (n.link = t), - (t = c('summary', e) || c('content', e)) && - (n.description = t), - (t = c('updated', e)) && (n.pubDate = new Date(t)), - n - ); - }))) - : ((t = s('channel', o.children).children), - (n.type = o.name.substr(0, 3)), - (n.id = ''), - u(n, 'title', 'title', t), - u(n, 'link', 'link', t), - u(n, 'description', 'description', t), - (e = c('lastBuildDate', t)) && (n.updated = new Date(e)), - u(n, 'author', 'managingEditor', t, !0), - (n.items = a('item', o.children).map(function(e) { - var t, - n = {}; - return ( - u(n, 'id', 'guid', (e = e.children)), - u(n, 'title', 'title', e), - u(n, 'link', 'link', e), - u(n, 'description', 'description', e), - (t = c('pubDate', e)) && (n.pubDate = new Date(t)), - n - ); - })))), - (this.dom = n), - r.prototype._handleCallback.call( - this, - o ? null : Error("couldn't find root of feed") - ); - }), - (e.exports = i); }, - function(e, t, n) { - var r = n(90), - o = n(562), - i = r.isTag; - e.exports = { - getInnerHTML: function(e, t) { - return e.children - ? e.children - .map(function(e) { - return o(e, t); - }) - .join('') - : ''; - }, - getOuterHTML: o, - getText: function e(t) { - return Array.isArray(t) - ? t.map(e).join('') - : i(t) - ? 'br' === t.name - ? '\n' - : e(t.children) - : t.type === r.CDATA - ? e(t.children) - : t.type === r.Text - ? t.data - : ''; - } + function(e, t) { + e.exports = function(e) { + return this.__data__.has(e); + }; + }, + function(e, t) { + e.exports = function(e, t) { + return e.has(t); }; }, function(e, t, n) { - var r = n(563), - o = n(564), - i = n(568); - (i.elementNames.__proto__ = null), (i.attributeNames.__proto__ = null); - var a = { - __proto__: null, - style: !0, - script: !0, - xmp: !0, - iframe: !0, - noembed: !0, - noframes: !0, - plaintext: !0, - noscript: !0 + var r = n(100), + o = n(211), + i = n(99), + a = n(227), + s = n(569), + c = n(570), + u = 1, + l = 2, + f = '[object Boolean]', + d = '[object Date]', + p = '[object Error]', + h = '[object Map]', + g = '[object Number]', + m = '[object RegExp]', + b = '[object Set]', + y = '[object String]', + v = '[object Symbol]', + _ = '[object ArrayBuffer]', + w = '[object DataView]', + x = r ? r.prototype : void 0, + M = x ? x.valueOf : void 0; + e.exports = function(e, t, n, r, x, k, S) { + switch (n) { + case w: + if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) + return !1; + (e = e.buffer), (t = t.buffer); + case _: + return !(e.byteLength != t.byteLength || !k(new o(e), new o(t))); + case f: + case d: + case g: + return i(+e, +t); + case p: + return e.name == t.name && e.message == t.message; + case m: + case y: + return e == t + ''; + case h: + var O = s; + case b: + var E = r & u; + if ((O || (O = c), e.size != t.size && !E)) return !1; + var A = S.get(e); + if (A) return A == t; + (r |= l), S.set(e, t); + var T = a(O(e), O(t), r, x, k, S); + return S.delete(e), T; + case v: + if (M) return M.call(e) == M.call(t); + } + return !1; }; - var s = { - __proto__: null, - area: !0, - base: !0, - basefont: !0, - br: !0, - col: !0, - command: !0, - embed: !0, - frame: !0, - hr: !0, - img: !0, - input: !0, - isindex: !0, - keygen: !0, - link: !0, - meta: !0, - param: !0, - source: !0, - track: !0, - wbr: !0 - }, - c = (e.exports = function(e, t) { - Array.isArray(e) || e.cheerio || (e = [e]), (t = t || {}); - for (var n = '', o = 0; o < e.length; o++) { - var i = e[o]; - 'root' === i.type - ? (n += c(i.children, t)) - : r.isTag(i) - ? (n += l(i, t)) - : i.type === r.Directive - ? (n += f(i)) - : i.type === r.Comment - ? (n += h(i)) - : i.type === r.CDATA - ? (n += p(i)) - : (n += d(i, t)); - } - return n; - }), - u = [ - 'mi', - 'mo', - 'mn', - 'ms', - 'mtext', - 'annotation-xml', - 'foreignObject', - 'desc', - 'title' - ]; - function l(e, t) { - 'foreign' === t.xmlMode && - ((e.name = i.elementNames[e.name] || e.name), - e.parent && - u.indexOf(e.parent.name) >= 0 && - (t = Object.assign({}, t, { xmlMode: !1 }))), - !t.xmlMode && - ['svg', 'math'].indexOf(e.name) >= 0 && - (t = Object.assign({}, t, { xmlMode: 'foreign' })); - var n = '<' + e.name, - r = (function(e, t) { - if (e) { - var n, - r = ''; - for (var a in e) - (n = e[a]), - r && (r += ' '), - 'foreign' === t.xmlMode && (a = i.attributeNames[a] || a), - (r += a), - ((null !== n && '' !== n) || t.xmlMode) && - (r += - '="' + - (t.decodeEntities - ? o.encodeXML(n) - : n.replace(/\"/g, '"')) + - '"'); - return r; - } - })(e.attribs, t); + }, + function(e, t) { + e.exports = function(e) { + var t = -1, + n = Array(e.size); return ( - r && (n += ' ' + r), - !t.xmlMode || (e.children && 0 !== e.children.length) - ? ((n += '>'), - e.children && (n += c(e.children, t)), - (s[e.name] && !t.xmlMode) || (n += '')) - : (n += '/>'), + e.forEach(function(e, r) { + n[++t] = [r, e]; + }), n ); - } - function f(e) { - return '<' + e.data + '>'; - } - function d(e, t) { - var n = e.data || ''; + }; + }, + function(e, t) { + e.exports = function(e) { + var t = -1, + n = Array(e.size); return ( - !t.decodeEntities || - (e.parent && e.parent.name in a) || - (n = o.encodeXML(n)), + e.forEach(function(e) { + n[++t] = e; + }), n ); - } - function p(e) { - return ''; - } - function h(e) { - return '\x3c!--' + e.data + '--\x3e'; - } + }; }, function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.isTag = function(e) { - return 'tag' === e.type || 'script' === e.type || 'style' === e.type; - }), - (t.Text = 'text'), - (t.Directive = 'directive'), - (t.Comment = 'comment'), - (t.Script = 'script'), - (t.Style = 'style'), - (t.Tag = 'tag'), - (t.CDATA = 'cdata'), - (t.Doctype = 'doctype'); + var r = n(229), + o = 1, + i = Object.prototype.hasOwnProperty; + e.exports = function(e, t, n, a, s, c) { + var u = n & o, + l = r(e), + f = l.length; + if (f != r(t).length && !u) return !1; + for (var d = f; d--; ) { + var p = l[d]; + if (!(u ? p in t : i.call(t, p))) return !1; + } + var h = c.get(e); + if (h && c.get(t)) return h == t; + var g = !0; + c.set(e, t), c.set(t, e); + for (var m = u; ++d < f; ) { + var b = e[(p = l[d])], + y = t[p]; + if (a) var v = u ? a(y, b, p, t, e, c) : a(b, y, p, e, t, c); + if (!(void 0 === v ? b === y || s(b, y, n, a, c) : v)) { + g = !1; + break; + } + m || (m = 'constructor' == p); + } + if (g && !m) { + var _ = e.constructor, + w = t.constructor; + _ != w && + 'constructor' in e && + 'constructor' in t && + !( + 'function' == typeof _ && + _ instanceof _ && + 'function' == typeof w && + w instanceof w + ) && + (g = !1); + } + return c.delete(e), c.delete(t), g; + }; + }, + function(e, t) { + e.exports = function(e, t) { + for ( + var n = -1, r = null == e ? 0 : e.length, o = 0, i = []; + ++n < r; + + ) { + var a = e[n]; + t(a, n, e) && (i[o++] = a); + } + return i; + }; }, function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r = n(222), - o = n(225); - (t.decode = function(e, t) { - return (!t || t <= 0 ? r.decodeXML : r.decodeHTML)(e); - }), - (t.decodeStrict = function(e, t) { - return (!t || t <= 0 ? r.decodeXML : r.decodeHTMLStrict)(e); - }), - (t.encode = function(e, t) { - return (!t || t <= 0 ? o.encodeXML : o.encodeHTML)(e); - }); - var i = n(225); - (t.encodeXML = i.encodeXML), - (t.encodeHTML = i.encodeHTML), - (t.escape = i.escape), - (t.encodeHTML4 = i.encodeHTML), - (t.encodeHTML5 = i.encodeHTML); - var a = n(222); - (t.decodeXML = a.decodeXML), - (t.decodeHTML = a.decodeHTML), - (t.decodeHTMLStrict = a.decodeHTMLStrict), - (t.decodeHTML4 = a.decodeHTML), - (t.decodeHTML5 = a.decodeHTML), - (t.decodeHTML4Strict = a.decodeHTMLStrict), - (t.decodeHTML5Strict = a.decodeHTMLStrict), - (t.decodeXMLStrict = a.decodeXML); + var r = n(214)(Object.keys, Object); + e.exports = r; }, - function(e) { - e.exports = JSON.parse( - '{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}' - ); + function(e, t, n) { + var r = n(66)(n(48), 'DataView'); + e.exports = r; }, function(e, t, n) { - 'use strict'; - var r = - (this && this.__importDefault) || - function(e) { - return e && e.__esModule ? e : { default: e }; + var r = n(66)(n(48), 'Promise'); + e.exports = r; + }, + function(e, t, n) { + var r = n(66)(n(48), 'Set'); + e.exports = r; + }, + function(e, t, n) { + var r = n(66)(n(48), 'WeakMap'); + e.exports = r; + }, + function(e, t, n) { + var r = (function(e) { + 'use strict'; + var t, + n = Object.prototype, + r = n.hasOwnProperty, + o = 'function' == typeof Symbol ? Symbol : {}, + i = o.iterator || '@@iterator', + a = o.asyncIterator || '@@asyncIterator', + s = o.toStringTag || '@@toStringTag'; + function c(e, t, n, r) { + var o = t && t.prototype instanceof g ? t : g, + i = Object.create(o.prototype), + a = new E(r || []); + return ( + (i._invoke = (function(e, t, n) { + var r = l; + return function(o, i) { + if (r === d) throw new Error('Generator is already running'); + if (r === p) { + if ('throw' === o) throw i; + return T(); + } + for (n.method = o, n.arg = i; ; ) { + var a = n.delegate; + if (a) { + var s = k(a, n); + if (s) { + if (s === h) continue; + return s; + } + } + if ('next' === n.method) n.sent = n._sent = n.arg; + else if ('throw' === n.method) { + if (r === l) throw ((r = p), n.arg); + n.dispatchException(n.arg); + } else 'return' === n.method && n.abrupt('return', n.arg); + r = d; + var c = u(e, t, n); + if ('normal' === c.type) { + if (((r = n.done ? p : f), c.arg === h)) continue; + return { value: c.arg, done: n.done }; + } + 'throw' === c.type && + ((r = p), (n.method = 'throw'), (n.arg = c.arg)); + } + }; + })(e, n, a)), + i + ); + } + function u(e, t, n) { + try { + return { type: 'normal', arg: e.call(t, n) }; + } catch (e) { + return { type: 'throw', arg: e }; + } + } + e.wrap = c; + var l = 'suspendedStart', + f = 'suspendedYield', + d = 'executing', + p = 'completed', + h = {}; + function g() {} + function m() {} + function b() {} + var y = {}; + y[i] = function() { + return this; }; - Object.defineProperty(t, '__esModule', { value: !0 }); - var o = r(n(567)); - t.default = function(e) { - if ((e >= 55296 && e <= 57343) || e > 1114111) return '�'; - e in o.default && (e = o.default[e]); - var t = ''; + var v = Object.getPrototypeOf, + _ = v && v(v(A([]))); + _ && _ !== n && r.call(_, i) && (y = _); + var w = (b.prototype = g.prototype = Object.create(y)); + function x(e) { + ['next', 'throw', 'return'].forEach(function(t) { + e[t] = function(e) { + return this._invoke(t, e); + }; + }); + } + function M(e) { + var t; + this._invoke = function(n, o) { + function i() { + return new Promise(function(t, i) { + !(function t(n, o, i, a) { + var s = u(e[n], e, o); + if ('throw' !== s.type) { + var c = s.arg, + l = c.value; + return l && 'object' == typeof l && r.call(l, '__await') + ? Promise.resolve(l.__await).then( + function(e) { + t('next', e, i, a); + }, + function(e) { + t('throw', e, i, a); + } + ) + : Promise.resolve(l).then( + function(e) { + (c.value = e), i(c); + }, + function(e) { + return t('throw', e, i, a); + } + ); + } + a(s.arg); + })(n, o, t, i); + }); + } + return (t = t ? t.then(i, i) : i()); + }; + } + function k(e, n) { + var r = e.iterator[n.method]; + if (r === t) { + if (((n.delegate = null), 'throw' === n.method)) { + if ( + e.iterator.return && + ((n.method = 'return'), + (n.arg = t), + k(e, n), + 'throw' === n.method) + ) + return h; + (n.method = 'throw'), + (n.arg = new TypeError( + "The iterator does not provide a 'throw' method" + )); + } + return h; + } + var o = u(r, e.iterator, n.arg); + if ('throw' === o.type) + return ( + (n.method = 'throw'), (n.arg = o.arg), (n.delegate = null), h + ); + var i = o.arg; + return i + ? i.done + ? ((n[e.resultName] = i.value), + (n.next = e.nextLoc), + 'return' !== n.method && ((n.method = 'next'), (n.arg = t)), + (n.delegate = null), + h) + : i + : ((n.method = 'throw'), + (n.arg = new TypeError('iterator result is not an object')), + (n.delegate = null), + h); + } + function S(e) { + var t = { tryLoc: e[0] }; + 1 in e && (t.catchLoc = e[1]), + 2 in e && ((t.finallyLoc = e[2]), (t.afterLoc = e[3])), + this.tryEntries.push(t); + } + function O(e) { + var t = e.completion || {}; + (t.type = 'normal'), delete t.arg, (e.completion = t); + } + function E(e) { + (this.tryEntries = [{ tryLoc: 'root' }]), + e.forEach(S, this), + this.reset(!0); + } + function A(e) { + if (e) { + var n = e[i]; + if (n) return n.call(e); + if ('function' == typeof e.next) return e; + if (!isNaN(e.length)) { + var o = -1, + a = function n() { + for (; ++o < e.length; ) + if (r.call(e, o)) return (n.value = e[o]), (n.done = !1), n; + return (n.value = t), (n.done = !0), n; + }; + return (a.next = a); + } + } + return { next: T }; + } + function T() { + return { value: t, done: !0 }; + } return ( - e > 65535 && - ((e -= 65536), - (t += String.fromCharCode(((e >>> 10) & 1023) | 55296)), - (e = 56320 | (1023 & e))), - (t += String.fromCharCode(e)) + (m.prototype = w.constructor = b), + (b.constructor = m), + (b[s] = m.displayName = 'GeneratorFunction'), + (e.isGeneratorFunction = function(e) { + var t = 'function' == typeof e && e.constructor; + return ( + !!t && + (t === m || 'GeneratorFunction' === (t.displayName || t.name)) + ); + }), + (e.mark = function(e) { + return ( + Object.setPrototypeOf + ? Object.setPrototypeOf(e, b) + : ((e.__proto__ = b), s in e || (e[s] = 'GeneratorFunction')), + (e.prototype = Object.create(w)), + e + ); + }), + (e.awrap = function(e) { + return { __await: e }; + }), + x(M.prototype), + (M.prototype[a] = function() { + return this; + }), + (e.AsyncIterator = M), + (e.async = function(t, n, r, o) { + var i = new M(c(t, n, r, o)); + return e.isGeneratorFunction(n) + ? i + : i.next().then(function(e) { + return e.done ? e.value : i.next(); + }); + }), + x(w), + (w[s] = 'Generator'), + (w[i] = function() { + return this; + }), + (w.toString = function() { + return '[object Generator]'; + }), + (e.keys = function(e) { + var t = []; + for (var n in e) t.push(n); + return ( + t.reverse(), + function n() { + for (; t.length; ) { + var r = t.pop(); + if (r in e) return (n.value = r), (n.done = !1), n; + } + return (n.done = !0), n; + } + ); + }), + (e.values = A), + (E.prototype = { + constructor: E, + reset: function(e) { + if ( + ((this.prev = 0), + (this.next = 0), + (this.sent = this._sent = t), + (this.done = !1), + (this.delegate = null), + (this.method = 'next'), + (this.arg = t), + this.tryEntries.forEach(O), + !e) + ) + for (var n in this) + 't' === n.charAt(0) && + r.call(this, n) && + !isNaN(+n.slice(1)) && + (this[n] = t); + }, + stop: function() { + this.done = !0; + var e = this.tryEntries[0].completion; + if ('throw' === e.type) throw e.arg; + return this.rval; + }, + dispatchException: function(e) { + if (this.done) throw e; + var n = this; + function o(r, o) { + return ( + (s.type = 'throw'), + (s.arg = e), + (n.next = r), + o && ((n.method = 'next'), (n.arg = t)), + !!o + ); + } + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var a = this.tryEntries[i], + s = a.completion; + if ('root' === a.tryLoc) return o('end'); + if (a.tryLoc <= this.prev) { + var c = r.call(a, 'catchLoc'), + u = r.call(a, 'finallyLoc'); + if (c && u) { + if (this.prev < a.catchLoc) return o(a.catchLoc, !0); + if (this.prev < a.finallyLoc) return o(a.finallyLoc); + } else if (c) { + if (this.prev < a.catchLoc) return o(a.catchLoc, !0); + } else { + if (!u) + throw new Error('try statement without catch or finally'); + if (this.prev < a.finallyLoc) return o(a.finallyLoc); + } + } + } + }, + abrupt: function(e, t) { + for (var n = this.tryEntries.length - 1; n >= 0; --n) { + var o = this.tryEntries[n]; + if ( + o.tryLoc <= this.prev && + r.call(o, 'finallyLoc') && + this.prev < o.finallyLoc + ) { + var i = o; + break; + } + } + i && + ('break' === e || 'continue' === e) && + i.tryLoc <= t && + t <= i.finallyLoc && + (i = null); + var a = i ? i.completion : {}; + return ( + (a.type = e), + (a.arg = t), + i + ? ((this.method = 'next'), (this.next = i.finallyLoc), h) + : this.complete(a) + ); + }, + complete: function(e, t) { + if ('throw' === e.type) throw e.arg; + return ( + 'break' === e.type || 'continue' === e.type + ? (this.next = e.arg) + : 'return' === e.type + ? ((this.rval = this.arg = e.arg), + (this.method = 'return'), + (this.next = 'end')) + : 'normal' === e.type && t && (this.next = t), + h + ); + }, + finish: function(e) { + for (var t = this.tryEntries.length - 1; t >= 0; --t) { + var n = this.tryEntries[t]; + if (n.finallyLoc === e) + return this.complete(n.completion, n.afterLoc), O(n), h; + } + }, + catch: function(e) { + for (var t = this.tryEntries.length - 1; t >= 0; --t) { + var n = this.tryEntries[t]; + if (n.tryLoc === e) { + var r = n.completion; + if ('throw' === r.type) { + var o = r.arg; + O(n); + } + return o; + } + } + throw new Error('illegal catch attempt'); + }, + delegateYield: function(e, n, r) { + return ( + (this.delegate = { iterator: A(e), resultName: n, nextLoc: r }), + 'next' === this.method && (this.arg = t), + h + ); + } + }), + e ); - }; - }, - function(e) { - e.exports = JSON.parse( - '{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}' - ); + })(e.exports); + try { + regeneratorRuntime = r; + } catch (e) { + Function('r', 'regeneratorRuntime = r')(r); + } }, - function(e) { - e.exports = JSON.parse( - '{"elementNames":{"altglyph":"altGlyph","altglyphdef":"altGlyphDef","altglyphitem":"altGlyphItem","animatecolor":"animateColor","animatemotion":"animateMotion","animatetransform":"animateTransform","clippath":"clipPath","feblend":"feBlend","fecolormatrix":"feColorMatrix","fecomponenttransfer":"feComponentTransfer","fecomposite":"feComposite","feconvolvematrix":"feConvolveMatrix","fediffuselighting":"feDiffuseLighting","fedisplacementmap":"feDisplacementMap","fedistantlight":"feDistantLight","fedropshadow":"feDropShadow","feflood":"feFlood","fefunca":"feFuncA","fefuncb":"feFuncB","fefuncg":"feFuncG","fefuncr":"feFuncR","fegaussianblur":"feGaussianBlur","feimage":"feImage","femerge":"feMerge","femergenode":"feMergeNode","femorphology":"feMorphology","feoffset":"feOffset","fepointlight":"fePointLight","fespecularlighting":"feSpecularLighting","fespotlight":"feSpotLight","fetile":"feTile","feturbulence":"feTurbulence","foreignobject":"foreignObject","glyphref":"glyphRef","lineargradient":"linearGradient","radialgradient":"radialGradient","textpath":"textPath"},"attributeNames":{"definitionurl":"definitionURL","attributename":"attributeName","attributetype":"attributeType","basefrequency":"baseFrequency","baseprofile":"baseProfile","calcmode":"calcMode","clippathunits":"clipPathUnits","diffuseconstant":"diffuseConstant","edgemode":"edgeMode","filterunits":"filterUnits","glyphref":"glyphRef","gradienttransform":"gradientTransform","gradientunits":"gradientUnits","kernelmatrix":"kernelMatrix","kernelunitlength":"kernelUnitLength","keypoints":"keyPoints","keysplines":"keySplines","keytimes":"keyTimes","lengthadjust":"lengthAdjust","limitingconeangle":"limitingConeAngle","markerheight":"markerHeight","markerunits":"markerUnits","markerwidth":"markerWidth","maskcontentunits":"maskContentUnits","maskunits":"maskUnits","numoctaves":"numOctaves","pathlength":"pathLength","patterncontentunits":"patternContentUnits","patterntransform":"patternTransform","patternunits":"patternUnits","pointsatx":"pointsAtX","pointsaty":"pointsAtY","pointsatz":"pointsAtZ","preservealpha":"preserveAlpha","preserveaspectratio":"preserveAspectRatio","primitiveunits":"primitiveUnits","refx":"refX","refy":"refY","repeatcount":"repeatCount","repeatdur":"repeatDur","requiredextensions":"requiredExtensions","requiredfeatures":"requiredFeatures","specularconstant":"specularConstant","specularexponent":"specularExponent","spreadmethod":"spreadMethod","startoffset":"startOffset","stddeviation":"stdDeviation","stitchtiles":"stitchTiles","surfacescale":"surfaceScale","systemlanguage":"systemLanguage","tablevalues":"tableValues","targetx":"targetX","targety":"targetY","textlength":"textLength","viewbox":"viewBox","viewtarget":"viewTarget","xchannelselector":"xChannelSelector","ychannelselector":"yChannelSelector","zoomandpan":"zoomAndPan"}}' - ); + function(e, t) { + Prism.languages.clike = { + comment: [ + { pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, lookbehind: !0 }, + { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 } + ], + string: { + pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, + greedy: !0 + }, + 'class-name': { + pattern: /((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i, + lookbehind: !0, + inside: { punctuation: /[.\\]/ } + }, + keyword: /\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/, + boolean: /\b(?:true|false)\b/, + function: /\w+(?=\()/, + number: /\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i, + operator: /--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/, + punctuation: /[{}[\];(),.:]/ + }; }, function(e, t) { - var n = (t.getChildren = function(e) { - return e.children; - }), - r = (t.getParent = function(e) { - return e.parent; - }); - (t.getSiblings = function(e) { - var t = r(e); - return t ? n(t) : [e]; + (Prism.languages.markup = { + comment: //, + prolog: /<\?[\s\S]+?\?>/, + doctype: //i, + cdata: //i, + tag: { + pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s\/>])))+)?\s*\/?>/i, + greedy: !0, + inside: { + tag: { + pattern: /^<\/?[^\s>\/]+/i, + inside: { punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/ } + }, + 'attr-value': { + pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/i, + inside: { + punctuation: [ + /^=/, + { pattern: /^(\s*)["']|["']$/, lookbehind: !0 } + ] + } + }, + punctuation: /\/?>/, + 'attr-name': { + pattern: /[^\s>\/]+/, + inside: { namespace: /^[^\s>\/:]+:/ } + } + } + }, + entity: /&#?[\da-z]{1,8};/i }), - (t.getAttributeValue = function(e, t) { - return e.attribs && e.attribs[t]; + (Prism.languages.markup.tag.inside['attr-value'].inside.entity = + Prism.languages.markup.entity), + Prism.hooks.add('wrap', function(e) { + 'entity' === e.type && + (e.attributes.title = e.content.replace(/&/, '&')); }), - (t.hasAttrib = function(e, t) { - return !!e.attribs && hasOwnProperty.call(e.attribs, t); + Object.defineProperty(Prism.languages.markup.tag, 'addInlined', { + value: function(e, t) { + var n = {}; + (n['language-' + t] = { + pattern: /(^$)/i, + lookbehind: !0, + inside: Prism.languages[t] + }), + (n.cdata = /^$/i); + var r = { + 'included-cdata': { + pattern: //i, + inside: n + } + }; + r['language-' + t] = { + pattern: /[\s\S]+/, + inside: Prism.languages[t] + }; + var o = {}; + (o[e] = { + pattern: RegExp( + /(<__[\s\S]*?>)(?:\s*|[\s\S])*?(?=<\/__>)/.source.replace( + /__/g, + e + ), + 'i' + ), + lookbehind: !0, + greedy: !0, + inside: r + }), + Prism.languages.insertBefore('markup', 'cdata', o); + } }), - (t.getName = function(e) { - return e.name; - }); + (Prism.languages.xml = Prism.languages.extend('markup', {})), + (Prism.languages.html = Prism.languages.markup), + (Prism.languages.mathml = Prism.languages.markup), + (Prism.languages.svg = Prism.languages.markup); }, function(e, t) { - (t.removeElement = function(e) { - if ( - (e.prev && (e.prev.next = e.next), - e.next && (e.next.prev = e.prev), - e.parent) - ) { - var t = e.parent.children; - t.splice(t.lastIndexOf(e), 1); - } - }), - (t.replaceElement = function(e, t) { - var n = (t.prev = e.prev); - n && (n.next = t); - var r = (t.next = e.next); - r && (r.prev = t); - var o = (t.parent = e.parent); - if (o) { - var i = o.children; - i[i.lastIndexOf(e)] = t; + (Prism.languages.javascript = Prism.languages.extend('clike', { + 'class-name': [ + Prism.languages.clike['class-name'], + { + pattern: /(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/, + lookbehind: !0 } - }), - (t.appendChild = function(e, t) { - if (((t.parent = e), 1 !== e.children.push(t))) { - var n = e.children[e.children.length - 2]; - (n.next = t), (t.prev = n), (t.next = null); + ], + keyword: [ + { pattern: /((?:^|})\s*)(?:catch|finally)\b/, lookbehind: !0 }, + { + pattern: /(^|[^.])\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/, + lookbehind: !0 } - }), - (t.append = function(e, t) { - var n = e.parent, - r = e.next; - if (((t.next = r), (t.prev = e), (e.next = t), (t.parent = n), r)) { - if (((r.prev = t), n)) { - var o = n.children; - o.splice(o.lastIndexOf(r), 0, t); + ], + number: /\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/, + function: /#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/, + operator: /-[-=]?|\+[+=]?|!=?=?|<>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/ + })), + (Prism.languages.javascript[ + 'class-name' + ][0].pattern = /(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/), + Prism.languages.insertBefore('javascript', 'keyword', { + regex: { + pattern: /((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^\/\\\[\r\n])+\/[gimyus]{0,6}(?=\s*($|[\r\n,.;})\]]))/, + lookbehind: !0, + greedy: !0 + }, + 'function-variable': { + pattern: /#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/, + alias: 'function' + }, + parameter: [ + { + pattern: /(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/, + lookbehind: !0, + inside: Prism.languages.javascript + }, + { + pattern: /[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i, + inside: Prism.languages.javascript + }, + { + pattern: /(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/, + lookbehind: !0, + inside: Prism.languages.javascript + }, + { + pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/, + lookbehind: !0, + inside: Prism.languages.javascript } - } else n && n.children.push(t); + ], + constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/ }), - (t.prepend = function(e, t) { - var n = e.parent; - if (n) { - var r = n.children; - r.splice(r.lastIndexOf(e), 0, t); + Prism.languages.insertBefore('javascript', 'string', { + 'template-string': { + pattern: /`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/, + greedy: !0, + inside: { + 'template-punctuation': { pattern: /^`|`$/, alias: 'string' }, + interpolation: { + pattern: /((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/, + lookbehind: !0, + inside: { + 'interpolation-punctuation': { + pattern: /^\${|}$/, + alias: 'punctuation' + }, + rest: Prism.languages.javascript + } + }, + string: /[\s\S]+/ + } } - e.prev && (e.prev.next = t), - (t.parent = n), - (t.prev = e.prev), - (t.next = e), - (e.prev = t); - }); + }), + Prism.languages.markup && + Prism.languages.markup.tag.addInlined('script', 'javascript'), + (Prism.languages.js = Prism.languages.javascript); }, - function(e, t, n) { - var r = n(90).isTag; - function o(e, t, n, r) { - for ( - var i, a = [], s = 0, c = t.length; - s < c && - !(e(t[s]) && (a.push(t[s]), --r <= 0)) && - ((i = t[s].children), - !( - n && - i && - i.length > 0 && - ((i = o(e, i, n, r)), (a = a.concat(i)), (r -= i.length) <= 0) + function(e, t) { + !(function(e) { + var t = /("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/; + (e.languages.css = { + comment: /\/\*[\s\S]*?\*\//, + atrule: { + pattern: /@[\w-]+[\s\S]*?(?:;|(?=\s*\{))/, + inside: { rule: /@[\w-]+/ } + }, + url: { + pattern: RegExp('url\\((?:' + t.source + '|[^\n\r()]*)\\)', 'i'), + inside: { function: /^url/i, punctuation: /^\(|\)$/ } + }, + selector: RegExp( + '[^{}\\s](?:[^{};"\']|' + t.source + ')*?(?=\\s*\\{)' + ), + string: { pattern: t, greedy: !0 }, + property: /[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i, + important: /!important\b/i, + function: /[-a-z0-9]+(?=\()/i, + punctuation: /[(){};:,]/ + }), + (e.languages.css.atrule.inside.rest = e.languages.css); + var n = e.languages.markup; + n && + (n.tag.addInlined('style', 'css'), + e.languages.insertBefore( + 'inside', + 'attr-value', + { + 'style-attr': { + pattern: /\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i, + inside: { + 'attr-name': { pattern: /^\s*style/i, inside: n.tag.inside }, + punctuation: /^\s*=\s*['"]|['"]\s*$/, + 'attr-value': { pattern: /.+/i, inside: e.languages.css } + }, + alias: 'language-css' + } + }, + n.tag )); - s++ - ); - return a; - } - e.exports = { - filter: function(e, t, n, r) { - Array.isArray(t) || (t = [t]); - ('number' == typeof r && isFinite(r)) || (r = 1 / 0); - return o(e, t, !1 !== n, r); - }, - find: o, - findOneChild: function(e, t) { - for (var n = 0, r = t.length; n < r; n++) if (e(t[n])) return t[n]; - return null; - }, - findOne: function e(t, n) { - for (var o = null, i = 0, a = n.length; i < a && !o; i++) - r(n[i]) && - (t(n[i]) - ? (o = n[i]) - : n[i].children.length > 0 && (o = e(t, n[i].children))); - return o; - }, - existsOne: function e(t, n) { - for (var o = 0, i = n.length; o < i; o++) - if ( - r(n[o]) && - (t(n[o]) || (n[o].children.length > 0 && e(t, n[o].children))) - ) - return !0; - return !1; - }, - findAll: function(e, t) { - var n = [], - o = t.slice(); - for (; o.length; ) { - var i = o.shift(); - r(i) && - (i.children && - i.children.length > 0 && - o.unshift.apply(o, i.children), - e(i) && n.push(i)); - } - return n; - } - }; + })(Prism); }, function(e, t, n) { - var r = n(90), - o = (t.isTag = r.isTag); - t.testElement = function(e, t) { - for (var n in e) - if (e.hasOwnProperty(n)) { - if ('tag_name' === n) { - if (!o(t) || !e.tag_name(t.name)) return !1; - } else if ('tag_type' === n) { - if (!e.tag_type(t.type)) return !1; - } else if ('tag_contains' === n) { - if (o(t) || !e.tag_contains(t.data)) return !1; - } else if (!t.attribs || !e[n](t.attribs[n])) return !1; - } else; - return !0; - }; - var i = { - tag_name: function(e) { - return 'function' == typeof e - ? function(t) { - return o(t) && e(t.name); + var r = n(584); + 'string' == typeof r && (r = [[e.i, r, '']]); + var o = { hmr: !0, transform: void 0, insertInto: void 0 }; + n(69)(r, o); + r.locals && (e.exports = r.locals); + }, + function(e, t, n) { + (e.exports = n(68)(!1)).push([ + e.i, + 'pre[class*=language-].line-numbers{position:relative;padding-left:3.8em;counter-reset:a}pre[class*=language-].line-numbers>code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows>span{pointer-events:none;display:block;counter-increment:a}.line-numbers-rows>span:before{content:counter(a);color:#999;display:block;padding-right:.8em;text-align:right}', + '' + ]); + }, + function(e, t) { + !(function() { + if ('undefined' != typeof self && self.Prism && self.document) { + var e = /\n(?!$)/g, + t = function(t) { + var r = n(t)['white-space']; + if ('pre-wrap' === r || 'pre-line' === r) { + var o = t.querySelector('code'), + i = t.querySelector('.line-numbers-rows'), + a = t.querySelector('.line-numbers-sizer'), + s = o.textContent.split(e); + a || + (((a = document.createElement('span')).className = + 'line-numbers-sizer'), + o.appendChild(a)), + (a.style.display = 'block'), + s.forEach(function(e, t) { + a.textContent = e || '\n'; + var n = a.getBoundingClientRect().height; + i.children[t].style.height = n + 'px'; + }), + (a.textContent = ''), + (a.style.display = 'none'); } - : '*' === e - ? o - : function(t) { - return o(t) && t.name === e; - }; - }, - tag_type: function(e) { - return 'function' == typeof e - ? function(t) { - return e(t.type); + }, + n = function(e) { + return e + ? window.getComputedStyle + ? getComputedStyle(e) + : e.currentStyle || null + : null; + }; + window.addEventListener('resize', function() { + Array.prototype.forEach.call( + document.querySelectorAll('pre.line-numbers'), + t + ); + }), + Prism.hooks.add('complete', function(n) { + if (n.code) { + var r = n.element, + o = r.parentNode; + if ( + o && + /pre/i.test(o.nodeName) && + !r.querySelector('.line-numbers-rows') + ) { + for ( + var i = !1, a = /(?:^|\s)line-numbers(?:\s|$)/, s = r; + s; + s = s.parentNode + ) + if (a.test(s.className)) { + i = !0; + break; + } + if (i) { + (r.className = r.className.replace(a, ' ')), + a.test(o.className) || (o.className += ' line-numbers'); + var c, + u = n.code.match(e), + l = u ? u.length + 1 : 1, + f = new Array(l + 1).join(''); + (c = document.createElement('span')).setAttribute( + 'aria-hidden', + 'true' + ), + (c.className = 'line-numbers-rows'), + (c.innerHTML = f), + o.hasAttribute('data-start') && + (o.style.counterReset = + 'linenumber ' + + (parseInt(o.getAttribute('data-start'), 10) - 1)), + n.element.appendChild(c), + t(o), + Prism.hooks.run('line-numbers', n); + } + } } - : function(t) { - return t.type === e; - }; - }, - tag_contains: function(e) { - return 'function' == typeof e - ? function(t) { - return !o(t) && e(t.data); + }), + Prism.hooks.add('line-numbers', function(e) { + (e.plugins = e.plugins || {}), (e.plugins.lineNumbers = !0); + }), + (Prism.plugins.lineNumbers = { + getLine: function(e, t) { + if ( + 'PRE' === e.tagName && + e.classList.contains('line-numbers') + ) { + var n = e.querySelector('.line-numbers-rows'), + r = parseInt(e.getAttribute('data-start'), 10) || 1, + o = r + (n.children.length - 1); + t < r && (t = r), t > o && (t = o); + var i = t - r; + return n.children[i]; + } } - : function(t) { - return !o(t) && t.data === e; - }; + }); } + })(); + }, + function(e, t, n) { + var r = n(587); + 'string' == typeof r && (r = [[e.i, r, '']]); + var o = { hmr: !0, transform: void 0, insertInto: void 0 }; + n(69)(r, o); + r.locals && (e.exports = r.locals); + }, + function(e, t, n) { + (e.exports = n(68)(!1)).push([ + e.i, + 'code[class*=language-],pre[class*=language-]{color:#000;background:none;text-shadow:0 1px #fff;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-]::-moz-selection,code[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-]::selection,code[class*=language-] ::selection,pre[class*=language-]::selection,pre[class*=language-] ::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#999}.namespace{opacity:.7}.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color:#905}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#690}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.class-name,.token.function{color:#dd4a68}.token.important,.token.regex,.token.variable{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}', + '' + ]); + }, + function(e, t) { + e.exports = function(e, t) { + if (null == e) return {}; + var n, + r, + o = {}, + i = Object.keys(e); + for (r = 0; r < i.length; r++) + (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); + return o; }; - function a(e, t) { - return 'function' == typeof t - ? function(n) { - return n.attribs && t(n.attribs[e]); - } - : function(n) { - return n.attribs && n.attribs[e] === t; - }; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = void 0); + var r = l(n(0)), + o = l(n(7)), + i = l(n(1)), + a = n(235), + s = n(590), + c = n(104), + u = l(n(20)); + function l(e) { + return e && e.__esModule ? e : { default: e }; } - function s(e, t) { - return function(n) { - return e(n) || t(n); - }; + function f(e) { + return (f = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function(e) { + return typeof e; + } + : function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e; + })(e); } - (t.getElements = function(e, t, n, r) { - var o = Object.keys(e).map(function(t) { - var n = e[t]; - return t in i ? i[t](n) : a(t, n); - }); - return 0 === o.length ? [] : this.filter(o.reduce(s), t, n, r); - }), - (t.getElementById = function(e, t, n) { + function d(e, t) { + var n = Object.keys(e); + if (Object.getOwnPropertySymbols) { + var r = Object.getOwnPropertySymbols(e); + t && + (r = r.filter(function(t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable; + })), + n.push.apply(n, r); + } + return n; + } + function p(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}; + t % 2 + ? d(n, !0).forEach(function(t) { + y(e, t, n[t]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) + : d(n).forEach(function(t) { + Object.defineProperty( + e, + t, + Object.getOwnPropertyDescriptor(n, t) + ); + }); + } + return e; + } + function h(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + function g(e) { + return (g = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(e) { + return e.__proto__ || Object.getPrototypeOf(e); + })(e); + } + function m(e) { + if (void 0 === e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return e; + } + function b(e, t) { + return (b = + Object.setPrototypeOf || + function(e, t) { + return (e.__proto__ = t), e; + })(e, t); + } + function y(e, t, n) { + return ( + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), + e + ); + } + var v = (function(e) { + function t() { + var e, n; + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, t); + for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) + o[i] = arguments[i]; return ( - Array.isArray(t) || (t = [t]), this.findOne(a('id', e), t, !1 !== n) + (n = (function(e, t) { + return !t || ('object' !== f(t) && 'function' != typeof t) + ? m(e) + : t; + })(this, (e = g(t)).call.apply(e, [this].concat(o)))), + y(m(n), 'state', { resizing: null, dragging: null, className: '' }), + y(m(n), 'currentNode', void 0), + y(m(n), 'onDragStart', function(e, t) { + var r = t.node; + if (n.props.onDragStart) { + var o = { top: 0, left: 0 }, + i = r.offsetParent; + if (i) { + var a = i.getBoundingClientRect(), + s = r.getBoundingClientRect(), + c = s.left / n.props.transformScale, + u = a.left / n.props.transformScale, + l = s.top / n.props.transformScale, + f = a.top / n.props.transformScale; + (o.left = c - u + i.scrollLeft), + (o.top = l - f + i.scrollTop), + n.setState({ dragging: o }); + var d = n.calcXY(o.top, o.left), + p = d.x, + h = d.y; + return ( + n.props.onDragStart && + n.props.onDragStart.call(m(n), n.props.i, p, h, { + e: e, + node: r, + newPosition: o + }) + ); + } + } + }), + y(m(n), 'onDrag', function(e, t) { + var r = t.node, + o = t.deltaX, + i = t.deltaY; + if (n.props.onDrag) { + var a = { top: 0, left: 0 }; + if (!n.state.dragging) + throw new Error('onDrag called before onDragStart.'); + (a.left = n.state.dragging.left + o), + (a.top = n.state.dragging.top + i), + n.setState({ dragging: a }); + var s = n.calcXY(a.top, a.left), + c = s.x, + u = s.y; + return ( + n.props.onDrag && + n.props.onDrag.call(m(n), n.props.i, c, u, { + e: e, + node: r, + newPosition: a + }) + ); + } + }), + y(m(n), 'onDragStop', function(e, t) { + var r = t.node; + if (n.props.onDragStop) { + var o = { top: 0, left: 0 }; + if (!n.state.dragging) + throw new Error('onDragEnd called before onDragStart.'); + (o.left = n.state.dragging.left), + (o.top = n.state.dragging.top), + n.setState({ dragging: null }); + var i = n.calcXY(o.top, o.left), + a = i.x, + s = i.y; + return ( + n.props.onDragStop && + n.props.onDragStop.call(m(n), n.props.i, a, s, { + e: e, + node: r, + newPosition: o + }) + ); + } + }), + y(m(n), 'onResizeStop', function(e, t) { + n.onResizeHandler(e, t, 'onResizeStop'); + }), + y(m(n), 'onResizeStart', function(e, t) { + n.onResizeHandler(e, t, 'onResizeStart'); + }), + y(m(n), 'onResize', function(e, t) { + n.onResizeHandler(e, t, 'onResize'); + }), + n ); - }), - (t.getElementsByTagName = function(e, t, n, r) { - return this.filter(i.tag_name(e), t, n, r); - }), - (t.getElementsByTagType = function(e, t, n, r) { - return this.filter(i.tag_type(e), t, n, r); - }); - }, - function(e, t) { - t.removeSubsets = function(e) { - for (var t, n, r, o = e.length; --o > -1; ) { - for (t = n = e[o], e[o] = null, r = !0; n; ) { - if (e.indexOf(n) > -1) { - (r = !1), e.splice(o, 1); - break; - } - n = n.parent; - } - r && (e[o] = t); } - return e; - }; - var n = 1, - r = 2, - o = 4, - i = 8, - a = 16, - s = (t.compareDocumentPosition = function(e, t) { - var s, - c, - u, - l, - f, - d, - p = [], - h = []; - if (e === t) return 0; - for (s = e; s; ) p.unshift(s), (s = s.parent); - for (s = t; s; ) h.unshift(s), (s = s.parent); - for (d = 0; p[d] === h[d]; ) d++; - return 0 === d - ? n - : ((u = (c = p[d - 1]).children), - (l = p[d]), - (f = h[d]), - u.indexOf(l) > u.indexOf(f) - ? c === t - ? o | a - : o - : c === e - ? r | i - : r); + var n, i, l; + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { value: e, writable: !0, configurable: !0 } + })), + t && b(e, t); + })(t, e), + (n = t), + (i = [ + { + key: 'componentDidUpdate', + value: function(e) { + this.props.droppingPosition && + e.droppingPosition && + this.moveDroppingItem(e); + } + }, + { + key: 'moveDroppingItem', + value: function(e) { + var t = this.props.droppingPosition, + n = this.state.dragging; + if (t && e.droppingPosition) { + this.currentNode || + (this.currentNode = o.default.findDOMNode(this)); + var r = + (n && t.x !== e.droppingPosition.x) || + t.y !== e.droppingPosition.y; + if (n) { + if (r) { + var i = t.x - n.left, + a = t.y - n.top; + this.onDrag(t.e, { + node: this.currentNode, + deltaX: i, + deltaY: a + }); + } + } else + this.onDragStart(t.e, { + node: this.currentNode, + deltaX: t.x, + deltaY: t.y + }); + } + } + }, + { + key: 'calcColWidth', + value: function() { + var e = this.props, + t = e.margin, + n = e.containerPadding, + r = e.containerWidth, + o = e.cols; + return (r - t[0] * (o - 1) - 2 * n[0]) / o; + } + }, + { + key: 'calcPosition', + value: function(e, t, n, r, o) { + var i = this.props, + a = i.margin, + s = i.containerPadding, + c = i.rowHeight, + u = this.calcColWidth(), + l = {}; + return ( + o && o.resizing + ? ((l.width = Math.round(o.resizing.width)), + (l.height = Math.round(o.resizing.height))) + : ((l.width = + n === 1 / 0 + ? n + : Math.round(u * n + Math.max(0, n - 1) * a[0])), + (l.height = + r === 1 / 0 + ? r + : Math.round(c * r + Math.max(0, r - 1) * a[1]))), + o && o.dragging + ? ((l.top = Math.round(o.dragging.top)), + (l.left = Math.round(o.dragging.left))) + : ((l.top = Math.round((c + a[1]) * t + s[1])), + (l.left = Math.round((u + a[0]) * e + s[0]))), + l + ); + } + }, + { + key: 'calcXY', + value: function(e, t) { + var n = this.props, + r = n.margin, + o = n.cols, + i = n.rowHeight, + a = n.w, + s = n.h, + c = n.maxRows, + u = this.calcColWidth(), + l = Math.round((t - r[0]) / (u + r[0])), + f = Math.round((e - r[1]) / (i + r[1])); + return { + x: (l = Math.max(Math.min(l, o - a), 0)), + y: (f = Math.max(Math.min(f, c - s), 0)) + }; + } + }, + { + key: 'calcWH', + value: function(e) { + var t = e.height, + n = e.width, + r = this.props, + o = r.margin, + i = r.maxRows, + a = r.cols, + s = r.rowHeight, + c = r.x, + u = r.y, + l = this.calcColWidth(), + f = Math.round((n + o[0]) / (l + o[0])), + d = Math.round((t + o[1]) / (s + o[1])); + return { + w: (f = Math.max(Math.min(f, a - c), 0)), + h: (d = Math.max(Math.min(d, i - u), 0)) + }; + } + }, + { + key: 'createStyle', + value: function(e) { + var t, + n = this.props, + r = n.usePercentages, + o = n.containerWidth; + return ( + n.useCSSTransforms + ? (t = (0, c.setTransform)(e)) + : ((t = (0, c.setTopLeft)(e)), + r && + ((t.left = (0, c.perc)(e.left / o)), + (t.width = (0, c.perc)(e.width / o)))), + t + ); + } + }, + { + key: 'mixinDraggable', + value: function(e) { + return r.default.createElement( + a.DraggableCore, + { + onStart: this.onDragStart, + onDrag: this.onDrag, + onStop: this.onDragStop, + handle: this.props.handle, + cancel: + '.react-resizable-handle' + + (this.props.cancel ? ',' + this.props.cancel : ''), + scale: this.props.transformScale + }, + e + ); + } + }, + { + key: 'mixinResizable', + value: function(e, t) { + var n = this.props, + o = n.cols, + i = n.x, + a = n.minW, + c = n.minH, + u = n.maxW, + l = n.maxH, + f = this.calcPosition(0, 0, o - i, 0).width, + d = this.calcPosition(0, 0, a, c), + p = this.calcPosition(0, 0, u, l), + h = [d.width, d.height], + g = [Math.min(p.width, f), Math.min(p.height, 1 / 0)]; + return r.default.createElement( + s.Resizable, + { + width: t.width, + height: t.height, + minConstraints: h, + maxConstraints: g, + onResizeStop: this.onResizeStop, + onResizeStart: this.onResizeStart, + onResize: this.onResize + }, + e + ); + } + }, + { + key: 'onResizeHandler', + value: function(e, t, n) { + var r = t.node, + o = t.size, + i = this.props[n]; + if (i) { + var a = this.props, + s = a.cols, + c = a.x, + u = a.i, + l = a.maxW, + f = a.minW, + d = a.maxH, + p = a.minH, + h = this.calcWH(o), + g = h.w, + m = h.h; + (g = Math.min(g, s - c)), + (g = Math.max(g, 1)), + (g = Math.max(Math.min(g, l), f)), + (m = Math.max(Math.min(m, d), p)), + this.setState({ + resizing: 'onResizeStop' === n ? null : o + }), + i.call(this, u, g, m, { e: e, node: r, size: o }); + } + } + }, + { + key: 'render', + value: function() { + var e = this.props, + t = e.x, + n = e.y, + o = e.w, + i = e.h, + a = e.isDraggable, + s = e.isResizable, + c = e.droppingPosition, + l = e.useCSSTransforms, + f = this.calcPosition(t, n, o, i, this.state), + d = r.default.Children.only(this.props.children), + h = r.default.cloneElement(d, { + className: (0, u.default)( + 'react-grid-item', + d.props.className, + this.props.className, + { + static: this.props.static, + resizing: Boolean(this.state.resizing), + 'react-draggable': a, + 'react-draggable-dragging': Boolean( + this.state.dragging + ), + dropping: Boolean(c), + cssTransforms: l + } + ), + style: p( + {}, + this.props.style, + {}, + d.props.style, + {}, + this.createStyle(f) + ) + }); + return ( + s && (h = this.mixinResizable(h, f)), + a && (h = this.mixinDraggable(h)), + h + ); + } + } + ]) && h(n.prototype, i), + l && h(n, l), + t + ); + })(r.default.Component); + (t.default = v), + y(v, 'propTypes', { + children: i.default.element, + cols: i.default.number.isRequired, + containerWidth: i.default.number.isRequired, + rowHeight: i.default.number.isRequired, + margin: i.default.array.isRequired, + maxRows: i.default.number.isRequired, + containerPadding: i.default.array.isRequired, + x: i.default.number.isRequired, + y: i.default.number.isRequired, + w: i.default.number.isRequired, + h: i.default.number.isRequired, + minW: function(e, t) { + var n = e[t]; + return 'number' != typeof n + ? new Error('minWidth not Number') + : n > e.w || n > e.maxW + ? new Error('minWidth larger than item width/maxWidth') + : void 0; + }, + maxW: function(e, t) { + var n = e[t]; + return 'number' != typeof n + ? new Error('maxWidth not Number') + : n < e.w || n < e.minW + ? new Error('maxWidth smaller than item width/minWidth') + : void 0; + }, + minH: function(e, t) { + var n = e[t]; + return 'number' != typeof n + ? new Error('minHeight not Number') + : n > e.h || n > e.maxH + ? new Error('minHeight larger than item height/maxHeight') + : void 0; + }, + maxH: function(e, t) { + var n = e[t]; + return 'number' != typeof n + ? new Error('maxHeight not Number') + : n < e.h || n < e.minH + ? new Error('maxHeight smaller than item height/minHeight') + : void 0; + }, + i: i.default.string.isRequired, + onDragStop: i.default.func, + onDragStart: i.default.func, + onDrag: i.default.func, + onResizeStop: i.default.func, + onResizeStart: i.default.func, + onResize: i.default.func, + isDraggable: i.default.bool.isRequired, + isResizable: i.default.bool.isRequired, + static: i.default.bool, + useCSSTransforms: i.default.bool.isRequired, + transformScale: i.default.number, + className: i.default.string, + handle: i.default.string, + cancel: i.default.string, + droppingPosition: i.default.shape({ + e: i.default.object.isRequired, + x: i.default.number.isRequired, + y: i.default.number.isRequired + }) + }), + y(v, 'defaultProps', { + className: '', + cancel: '', + handle: '', + minH: 1, + minW: 1, + maxH: 1 / 0, + maxW: 1 / 0, + transformScale: 1 }); - t.uniqueSort = function(e) { - var t, - n, - i = e.length; - for (e = e.slice(); --i > -1; ) - (t = e[i]), (n = e.indexOf(t)) > -1 && n < i && e.splice(i, 1); - return ( - e.sort(function(e, t) { - var n = s(e, t); - return n & r ? -1 : n & o ? 1 : 0; - }), - e + }, + function(e, t, n) { + 'use strict'; + (e.exports = function() { + throw new Error( + "Don't instantiate Resizable directly! Use require('react-resizable').Resizable" ); - }; + }), + (e.exports.Resizable = n(236).default), + (e.exports.ResizableBox = n(592).default); }, function(e, t, n) { - e.exports = o; - var r = n(226); - function o(e) { - r.call(this, new i(this), e); + 'use strict'; + (t.__esModule = !0), + (t.cloneElement = function(e, t) { + t.style && + e.props.style && + (t.style = (function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}; + t % 2 + ? i(n, !0).forEach(function(t) { + a(e, t, n[t]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties( + e, + Object.getOwnPropertyDescriptors(n) + ) + : i(n).forEach(function(t) { + Object.defineProperty( + e, + t, + Object.getOwnPropertyDescriptor(n, t) + ); + }); + } + return e; + })({}, e.props.style, {}, t.style)); + t.className && + e.props.className && + (t.className = e.props.className + ' ' + t.className); + return o.default.cloneElement(e, t); + }); + var r, + o = (r = n(0)) && r.__esModule ? r : { default: r }; + function i(e, t) { + var n = Object.keys(e); + if (Object.getOwnPropertySymbols) { + var r = Object.getOwnPropertySymbols(e); + t && + (r = r.filter(function(t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable; + })), + n.push.apply(n, r); + } + return n; } - function i(e) { - this.scope = e; + function a(e, t, n) { + return ( + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), + e + ); } - n(111)(o, r), (o.prototype.readable = !0); - var a = n(65).EVENTS; - Object.keys(a).forEach(function(e) { - if (0 === a[e]) - i.prototype['on' + e] = function() { - this.scope.emit(e); - }; - else if (1 === a[e]) - i.prototype['on' + e] = function(t) { - this.scope.emit(e, t); - }; - else { - if (2 !== a[e]) throw Error('wrong number of arguments!'); - i.prototype['on' + e] = function(t, n) { - this.scope.emit(e, t, n); - }; - } - }); }, - function(e, t) {}, function(e, t, n) { 'use strict'; - var r = n(577).Buffer, - o = - r.isEncoding || + (t.__esModule = !0), (t.default = void 0); + var r = a(n(0)), + o = a(n(1)), + i = a(n(236)); + function a(e) { + return e && e.__esModule ? e : { default: e }; + } + function s() { + return (s = + Object.assign || function(e) { - switch ((e = '' + e) && e.toLowerCase()) { - case 'hex': - case 'utf8': - case 'utf-8': - case 'ascii': - case 'binary': - case 'base64': - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - case 'raw': - return !0; - default: - return !1; + 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]); } - }; - function i(e) { - var t; - switch ( - ((this.encoding = (function(e) { - var t = (function(e) { - if (!e) return 'utf8'; - for (var t; ; ) - switch (e) { - case 'utf8': - case 'utf-8': - return 'utf8'; - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return 'utf16le'; - case 'latin1': - case 'binary': - return 'latin1'; - case 'base64': - case 'ascii': - case 'hex': - return e; - default: - if (t) return; - (e = ('' + e).toLowerCase()), (t = !0); - } - })(e); - if ('string' != typeof t && (r.isEncoding === o || !o(e))) - throw new Error('Unknown encoding: ' + e); - return t || e; - })(e)), - this.encoding) - ) { - case 'utf16le': - (this.text = c), (this.end = u), (t = 4); - break; - case 'utf8': - (this.fillLast = s), (t = 4); - break; - case 'base64': - (this.text = l), (this.end = f), (t = 3); - break; - default: - return (this.write = d), void (this.end = p); - } - (this.lastNeed = 0), - (this.lastTotal = 0), - (this.lastChar = r.allocUnsafe(t)); + return e; + }).apply(this, arguments); } - function a(e) { - return e <= 127 - ? 0 - : e >> 5 == 6 - ? 2 - : e >> 4 == 14 - ? 3 - : e >> 3 == 30 - ? 4 - : e >> 6 == 2 - ? -1 - : -2; + function c(e) { + if (void 0 === e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return e; } - function s(e) { - var t = this.lastTotal - this.lastNeed, - n = (function(e, t, n) { - if (128 != (192 & t[0])) return (e.lastNeed = 0), '�'; - if (e.lastNeed > 1 && t.length > 1) { - if (128 != (192 & t[1])) return (e.lastNeed = 1), '�'; - if (e.lastNeed > 2 && t.length > 2 && 128 != (192 & t[2])) - return (e.lastNeed = 2), '�'; - } - })(this, e); - return void 0 !== n - ? n - : this.lastNeed <= e.length - ? (e.copy(this.lastChar, t, 0, this.lastNeed), - this.lastChar.toString(this.encoding, 0, this.lastTotal)) - : (e.copy(this.lastChar, t, 0, e.length), - void (this.lastNeed -= e.length)); + function u(e, t, n) { + return ( + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), + e + ); } - function c(e, t) { - if ((e.length - t) % 2 == 0) { - var n = e.toString('utf16le', t); - if (n) { - var r = n.charCodeAt(n.length - 1); - if (r >= 55296 && r <= 56319) - return ( - (this.lastNeed = 2), - (this.lastTotal = 4), - (this.lastChar[0] = e[e.length - 2]), - (this.lastChar[1] = e[e.length - 1]), - n.slice(0, -1) - ); - } - return n; + var l = (function(e) { + var t, n; + function o() { + for (var t, n = arguments.length, r = new Array(n), o = 0; o < n; o++) + r[o] = arguments[o]; + return ( + u(c((t = e.call.apply(e, [this].concat(r)) || this)), 'state', { + width: t.props.width, + height: t.props.height, + propsWidth: t.props.width, + propsHeight: t.props.height + }), + u(c(t), 'onResize', function(e, n) { + var r = n.size; + r.width, r.height; + t.props.onResize + ? (e.persist && e.persist(), + t.setState(r, function() { + return t.props.onResize && t.props.onResize(e, n); + })) + : t.setState(r); + }), + t + ); } return ( - (this.lastNeed = 1), - (this.lastTotal = 2), - (this.lastChar[0] = e[e.length - 1]), - e.toString('utf16le', t, e.length - 1) + (n = e), + ((t = o).prototype = Object.create(n.prototype)), + (t.prototype.constructor = t), + (t.__proto__ = n), + (o.getDerivedStateFromProps = function(e, t) { + if (t.propsWidth !== e.width || t.propsHeight !== e.height) + return { + width: e.width, + height: e.height, + propsWidth: e.width, + propsHeight: e.height + }; + }), + (o.prototype.render = function() { + var e = this.props, + t = e.handle, + n = e.handleSize, + o = (e.onResize, e.onResizeStart), + a = e.onResizeStop, + c = e.draggableOpts, + u = e.minConstraints, + l = e.maxConstraints, + f = e.lockAspectRatio, + d = e.axis, + p = (e.width, e.height, e.resizeHandles), + h = (function(e, t) { + if (null == e) return {}; + var n, + r, + o = {}, + i = Object.keys(e); + for (r = 0; r < i.length; r++) + (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); + return o; + })(e, [ + 'handle', + 'handleSize', + 'onResize', + 'onResizeStart', + 'onResizeStop', + 'draggableOpts', + 'minConstraints', + 'maxConstraints', + 'lockAspectRatio', + 'axis', + 'width', + 'height', + 'resizeHandles' + ]); + return r.default.createElement( + i.default, + { + handle: t, + handleSize: n, + width: this.state.width, + height: this.state.height, + onResizeStart: o, + onResize: this.onResize, + onResizeStop: a, + draggableOpts: c, + minConstraints: u, + maxConstraints: l, + lockAspectRatio: f, + axis: d, + resizeHandles: p + }, + r.default.createElement( + 'div', + s( + { + style: { + width: this.state.width + 'px', + height: this.state.height + 'px' + } + }, + h + ) + ) + ); + }), + o ); - } + })(r.default.Component); + (t.default = l), + u(l, 'propTypes', { + height: o.default.number, + width: o.default.number + }), + u(l, 'defaultProps', { handleSize: [20, 20] }); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = void 0); + var r = u(n(0)), + o = u(n(1)), + i = u(n(159)), + a = n(104), + s = n(237), + c = u(n(234)); function u(e) { - var t = e && e.length ? this.write(e) : ''; - if (this.lastNeed) { - var n = this.lastTotal - this.lastNeed; - return t + this.lastChar.toString('utf16le', 0, n); - } - return t; + return e && e.__esModule ? e : { default: e }; } - function l(e, t) { - var n = (e.length - t) % 3; - return 0 === n - ? e.toString('base64', t) - : ((this.lastNeed = 3 - n), - (this.lastTotal = 3), - 1 === n - ? (this.lastChar[0] = e[e.length - 1]) - : ((this.lastChar[0] = e[e.length - 2]), - (this.lastChar[1] = e[e.length - 1])), - e.toString('base64', t, e.length - n)); + function l(e) { + return (l = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function(e) { + return typeof e; + } + : function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e; + })(e); } - function f(e) { - var t = e && e.length ? this.write(e) : ''; - return this.lastNeed - ? t + this.lastChar.toString('base64', 0, 3 - this.lastNeed) - : t; + function f() { + return (f = + Object.assign || + function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); + } + return e; + }).apply(this, arguments); } - function d(e) { - return e.toString(this.encoding); + function d(e, t) { + if (null == e) return {}; + var n, + r, + o = (function(e, t) { + if (null == e) return {}; + var n, + r, + o = {}, + i = Object.keys(e); + for (r = 0; r < i.length; r++) + (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); + return o; + })(e, t); + if (Object.getOwnPropertySymbols) { + var i = Object.getOwnPropertySymbols(e); + for (r = 0; r < i.length; r++) + (n = i[r]), + t.indexOf(n) >= 0 || + (Object.prototype.propertyIsEnumerable.call(e, n) && + (o[n] = e[n])); + } + return o; } - function p(e) { - return e && e.length ? this.write(e) : ''; + function p(e, t) { + var n = Object.keys(e); + if (Object.getOwnPropertySymbols) { + var r = Object.getOwnPropertySymbols(e); + t && + (r = r.filter(function(t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable; + })), + n.push.apply(n, r); + } + return n; } - (t.StringDecoder = i), - (i.prototype.write = function(e) { - if (0 === e.length) return ''; - var t, n; - if (this.lastNeed) { - if (void 0 === (t = this.fillLast(e))) return ''; - (n = this.lastNeed), (this.lastNeed = 0); - } else n = 0; - return n < e.length - ? t - ? t + this.text(e, n) - : this.text(e, n) - : t || ''; - }), - (i.prototype.end = function(e) { - var t = e && e.length ? this.write(e) : ''; - return this.lastNeed ? t + '�' : t; - }), - (i.prototype.text = function(e, t) { - var n = (function(e, t, n) { - var r = t.length - 1; - if (r < n) return 0; - var o = a(t[r]); - if (o >= 0) return o > 0 && (e.lastNeed = o - 1), o; - if (--r < n || -2 === o) return 0; - if ((o = a(t[r])) >= 0) return o > 0 && (e.lastNeed = o - 2), o; - if (--r < n || -2 === o) return 0; - if ((o = a(t[r])) >= 0) - return o > 0 && (2 === o ? (o = 0) : (e.lastNeed = o - 3)), o; - return 0; - })(this, e, t); - if (!this.lastNeed) return e.toString('utf8', t); - this.lastTotal = n; - var r = e.length - (n - this.lastNeed); - return e.copy(this.lastChar, 0, r), e.toString('utf8', t, r); - }), - (i.prototype.fillLast = function(e) { - if (this.lastNeed <= e.length) - return ( - e.copy( - this.lastChar, - this.lastTotal - this.lastNeed, - 0, - this.lastNeed - ), - this.lastChar.toString(this.encoding, 0, this.lastTotal) - ); - e.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, e.length), - (this.lastNeed -= e.length); - }); - }, - function(e, t, n) { - var r = n(146), - o = r.Buffer; - function i(e, t) { - for (var n in e) t[n] = e[n]; + function h(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } } - function a(e, t, n) { - return o(e, t, n); + function g(e) { + return (g = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(e) { + return e.__proto__ || Object.getPrototypeOf(e); + })(e); } - o.from && o.alloc && o.allocUnsafe && o.allocUnsafeSlow - ? (e.exports = r) - : (i(r, t), (t.Buffer = a)), - (a.prototype = Object.create(o.prototype)), - i(o, a), - (a.from = function(e, t, n) { - if ('number' == typeof e) - throw new TypeError('Argument must not be a number'); - return o(e, t, n); - }), - (a.alloc = function(e, t, n) { - if ('number' != typeof e) - throw new TypeError('Argument must be a number'); - var r = o(e); - return ( - void 0 !== t - ? 'string' == typeof n - ? r.fill(t, n) - : r.fill(t) - : r.fill(0), - r + function m(e) { + if (void 0 === e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" ); - }), - (a.allocUnsafe = function(e) { - if ('number' != typeof e) - throw new TypeError('Argument must be a number'); - return o(e); - }), - (a.allocUnsafeSlow = function(e) { - if ('number' != typeof e) - throw new TypeError('Argument must be a number'); - return r.SlowBuffer(e); - }); - }, - function(e, t, n) { - 'use strict'; - (t.byteLength = function(e) { - var t = u(e), - n = t[0], - r = t[1]; - return (3 * (n + r)) / 4 - r; - }), - (t.toByteArray = function(e) { - var t, - n, - r = u(e), - a = r[0], - s = r[1], - c = new i( - (function(e, t, n) { - return (3 * (t + n)) / 4 - n; - })(0, a, s) - ), - l = 0, - f = s > 0 ? a - 4 : a; - for (n = 0; n < f; n += 4) - (t = - (o[e.charCodeAt(n)] << 18) | - (o[e.charCodeAt(n + 1)] << 12) | - (o[e.charCodeAt(n + 2)] << 6) | - o[e.charCodeAt(n + 3)]), - (c[l++] = (t >> 16) & 255), - (c[l++] = (t >> 8) & 255), - (c[l++] = 255 & t); - 2 === s && - ((t = (o[e.charCodeAt(n)] << 2) | (o[e.charCodeAt(n + 1)] >> 4)), - (c[l++] = 255 & t)); - 1 === s && - ((t = - (o[e.charCodeAt(n)] << 10) | - (o[e.charCodeAt(n + 1)] << 4) | - (o[e.charCodeAt(n + 2)] >> 2)), - (c[l++] = (t >> 8) & 255), - (c[l++] = 255 & t)); - return c; - }), - (t.fromByteArray = function(e) { - for ( - var t, n = e.length, o = n % 3, i = [], a = 0, s = n - o; - a < s; - a += 16383 - ) - i.push(l(e, a, a + 16383 > s ? s : a + 16383)); - 1 === o - ? ((t = e[n - 1]), i.push(r[t >> 2] + r[(t << 4) & 63] + '==')) - : 2 === o && - ((t = (e[n - 2] << 8) + e[n - 1]), - i.push(r[t >> 10] + r[(t >> 4) & 63] + r[(t << 2) & 63] + '=')); - return i.join(''); - }); - for ( - var r = [], - o = [], - i = 'undefined' != typeof Uint8Array ? Uint8Array : Array, - a = - 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/', - s = 0, - c = a.length; - s < c; - ++s - ) - (r[s] = a[s]), (o[a.charCodeAt(s)] = s); - function u(e) { - var t = e.length; - if (t % 4 > 0) - throw new Error('Invalid string. Length must be a multiple of 4'); - var n = e.indexOf('='); - return -1 === n && (n = t), [n, n === t ? 0 : 4 - (n % 4)]; + return e; } - function l(e, t, n) { - for (var o, i, a = [], s = t; s < n; s += 3) - (o = - ((e[s] << 16) & 16711680) + - ((e[s + 1] << 8) & 65280) + - (255 & e[s + 2])), - a.push( - r[((i = o) >> 18) & 63] + - r[(i >> 12) & 63] + - r[(i >> 6) & 63] + - r[63 & i] - ); - return a.join(''); + function b(e, t) { + return (b = + Object.setPrototypeOf || + function(e, t) { + return (e.__proto__ = t), e; + })(e, t); } - (o['-'.charCodeAt(0)] = 62), (o['_'.charCodeAt(0)] = 63); - }, - function(e, t) { - (t.read = function(e, t, n, r, o) { - var i, - a, - s = 8 * o - r - 1, - c = (1 << s) - 1, - u = c >> 1, - l = -7, - f = n ? o - 1 : 0, - d = n ? -1 : 1, - p = e[t + f]; - for ( - f += d, i = p & ((1 << -l) - 1), p >>= -l, l += s; - l > 0; - i = 256 * i + e[t + f], f += d, l -= 8 - ); - for ( - a = i & ((1 << -l) - 1), i >>= -l, l += r; - l > 0; - a = 256 * a + e[t + f], f += d, l -= 8 + function y(e, t, n) { + return ( + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), + e ); - if (0 === i) i = 1 - u; - else { - if (i === c) return a ? NaN : (1 / 0) * (p ? -1 : 1); - (a += Math.pow(2, r)), (i -= u); - } - return (p ? -1 : 1) * a * Math.pow(2, i - r); - }), - (t.write = function(e, t, n, r, o, i) { - var a, - s, - c, - u = 8 * i - o - 1, - l = (1 << u) - 1, - f = l >> 1, - d = 23 === o ? Math.pow(2, -24) - Math.pow(2, -77) : 0, - p = r ? 0 : i - 1, - h = r ? 1 : -1, - g = t < 0 || (0 === t && 1 / t < 0) ? 1 : 0; - for ( - t = Math.abs(t), - isNaN(t) || t === 1 / 0 - ? ((s = isNaN(t) ? 1 : 0), (a = l)) - : ((a = Math.floor(Math.log(t) / Math.LN2)), - t * (c = Math.pow(2, -a)) < 1 && (a--, (c *= 2)), - (t += a + f >= 1 ? d / c : d * Math.pow(2, 1 - f)) * c >= 2 && - (a++, (c /= 2)), - a + f >= l - ? ((s = 0), (a = l)) - : a + f >= 1 - ? ((s = (t * c - 1) * Math.pow(2, o)), (a += f)) - : ((s = t * Math.pow(2, f - 1) * Math.pow(2, o)), (a = 0))); - o >= 8; - e[n + p] = 255 & s, p += h, s /= 256, o -= 8 - ); - for ( - a = (a << o) | s, u += o; - u > 0; - e[n + p] = 255 & a, p += h, a /= 256, u -= 8 - ); - e[n + p - h] |= 128 * g; - }); - }, - function(e, t) { - var n = {}.toString; - e.exports = - Array.isArray || - function(e) { - return '[object Array]' == n.call(e); - }; - }, - function(e, t, n) { - function r(e) { - this._cbs = e || {}; } - e.exports = r; - var o = n(65).EVENTS; - Object.keys(o).forEach(function(e) { - if (0 === o[e]) - (e = 'on' + e), - (r.prototype[e] = function() { - this._cbs[e] && this._cbs[e](); - }); - else if (1 === o[e]) - (e = 'on' + e), - (r.prototype[e] = function(t) { - this._cbs[e] && this._cbs[e](t); - }); - else { - if (2 !== o[e]) throw Error('wrong number of arguments'); - (e = 'on' + e), - (r.prototype[e] = function(t, n) { - this._cbs[e] && this._cbs[e](t, n); - }); - } - }); - }, - function(e, t, n) { - function r(e) { - (this._cbs = e || {}), (this.events = []); + var v = function(e) { + return Object.prototype.toString.call(e); + }; + function _(e, t) { + return Array.isArray(e) ? e : e[t]; } - e.exports = r; - var o = n(65).EVENTS; - Object.keys(o).forEach(function(e) { - if (0 === o[e]) - (e = 'on' + e), - (r.prototype[e] = function() { - this.events.push([e]), this._cbs[e] && this._cbs[e](); - }); - else if (1 === o[e]) - (e = 'on' + e), - (r.prototype[e] = function(t) { - this.events.push([e, t]), this._cbs[e] && this._cbs[e](t); - }); - else { - if (2 !== o[e]) throw Error('wrong number of arguments'); - (e = 'on' + e), - (r.prototype[e] = function(t, n) { - this.events.push([e, t, n]), this._cbs[e] && this._cbs[e](t, n); - }); + var w = (function(e) { + function t() { + var e, n; + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, t); + for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) + o[i] = arguments[i]; + return ( + (n = (function(e, t) { + return !t || ('object' !== l(t) && 'function' != typeof t) + ? m(e) + : t; + })(this, (e = g(t)).call.apply(e, [this].concat(o)))), + y(m(n), 'state', n.generateInitialState()), + y(m(n), 'onLayoutChange', function(e) { + n.props.onLayoutChange( + e, + (function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}; + t % 2 + ? p(n, !0).forEach(function(t) { + y(e, t, n[t]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties( + e, + Object.getOwnPropertyDescriptors(n) + ) + : p(n).forEach(function(t) { + Object.defineProperty( + e, + t, + Object.getOwnPropertyDescriptor(n, t) + ); + }); + } + return e; + })({}, n.props.layouts, y({}, n.state.breakpoint, e)) + ); + }), + n + ); } - }), - (r.prototype.onreset = function() { - (this.events = []), this._cbs.onreset && this._cbs.onreset(); + var n, o, u; + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { value: e, writable: !0, configurable: !0 } + })), + t && b(e, t); + })(t, e), + (n = t), + (u = [ + { + key: 'getDerivedStateFromProps', + value: function(e, t) { + if (!(0, i.default)(e.layouts, t.layouts)) { + var n = t.breakpoint, + r = t.cols; + return { + layout: (0, s.findOrGenerateResponsiveLayout)( + e.layouts, + e.breakpoints, + n, + n, + r, + e.compactType + ), + layouts: e.layouts + }; + } + return null; + } + } + ]), + (o = [ + { + key: 'generateInitialState', + value: function() { + var e = this.props, + t = e.width, + n = e.breakpoints, + r = e.layouts, + o = e.cols, + i = (0, s.getBreakpointFromWidth)(n, t), + a = (0, s.getColsFromBreakpoint)(i, o), + c = + !1 === this.props.verticalCompact + ? null + : this.props.compactType; + return { + layout: (0, s.findOrGenerateResponsiveLayout)( + r, + n, + i, + i, + a, + c + ), + breakpoint: i, + cols: a + }; + } + }, + { + key: 'componentDidUpdate', + value: function(e) { + (this.props.width == e.width && + this.props.breakpoint === e.breakpoint && + (0, i.default)(this.props.breakpoints, e.breakpoints) && + (0, i.default)(this.props.cols, e.cols)) || + this.onWidthChange(this.props); + } + }, + { + key: 'onWidthChange', + value: function(e) { + var t = e.breakpoints, + n = e.cols, + r = e.layouts, + o = e.compactType, + i = + e.breakpoint || + (0, s.getBreakpointFromWidth)(e.breakpoints, e.width), + c = this.state.breakpoint, + u = (0, s.getColsFromBreakpoint)(i, n); + if ( + c !== i || + this.props.breakpoints !== t || + this.props.cols !== n + ) { + c in r || (r[c] = (0, a.cloneLayout)(this.state.layout)); + var l = (0, s.findOrGenerateResponsiveLayout)( + r, + t, + i, + c, + u, + o + ); + (l = (0, a.synchronizeLayoutWithChildren)( + l, + e.children, + u, + o + )), + (r[i] = l), + this.props.onLayoutChange(l, r), + this.props.onBreakpointChange(i, u), + this.setState({ breakpoint: i, layout: l, cols: u }); + } + var f = _(e.margin, i), + d = _(e.containerPadding, i); + this.props.onWidthChange(e.width, f, u, d); + } + }, + { + key: 'render', + value: function() { + var e = this.props, + t = + (e.breakpoint, e.breakpoints, e.cols, e.layouts, e.margin), + n = e.containerPadding, + o = + (e.onBreakpointChange, + e.onLayoutChange, + e.onWidthChange, + d(e, [ + 'breakpoint', + 'breakpoints', + 'cols', + 'layouts', + 'margin', + 'containerPadding', + 'onBreakpointChange', + 'onLayoutChange', + 'onWidthChange' + ])); + return r.default.createElement( + c.default, + f({}, o, { + margin: _(t, this.state.breakpoint), + containerPadding: _(n, this.state.breakpoint), + onLayoutChange: this.onLayoutChange, + layout: this.state.layout, + cols: this.state.cols + }) + ); + } + } + ]) && h(n.prototype, o), + u && h(n, u), + t + ); + })(r.default.Component); + (t.default = w), + y(w, 'propTypes', { + breakpoint: o.default.string, + breakpoints: o.default.object, + cols: o.default.object, + margin: o.default.oneOfType([o.default.array, o.default.object]), + containerPadding: o.default.oneOfType([ + o.default.array, + o.default.object + ]), + layouts: function(e, t) { + if ('[object Object]' !== v(e[t])) + throw new Error( + 'Layout property must be an object. Received: ' + v(e[t]) + ); + Object.keys(e[t]).forEach(function(t) { + if (!(t in e.breakpoints)) + throw new Error( + 'Each key in layouts must align with a key in breakpoints.' + ); + (0, a.validateLayout)(e.layouts[t], 'layouts.' + t); + }); + }, + width: o.default.number.isRequired, + onBreakpointChange: o.default.func, + onLayoutChange: o.default.func, + onWidthChange: o.default.func }), - (r.prototype.restart = function() { - this._cbs.onreset && this._cbs.onreset(); - for (var e = 0, t = this.events.length; e < t; e++) - if (this._cbs[this.events[e][0]]) { - var n = this.events[e].length; - 1 === n - ? this._cbs[this.events[e][0]]() - : 2 === n - ? this._cbs[this.events[e][0]](this.events[e][1]) - : this._cbs[this.events[e][0]]( - this.events[e][1], - this.events[e][2] - ); - } - }); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = function(e) { - return e.data; - }); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = function(e, t, n) { - var c = e.name; - if (!(0, s.default)(c)) return null; - var u = (0, i.default)(e.attribs, t), - l = null; - -1 === a.default.indexOf(c) && (l = (0, o.default)(e.children, n)); - return r.default.createElement(c, u, l); + y(w, 'defaultProps', { + breakpoints: { lg: 1200, md: 996, sm: 768, xs: 480, xxs: 0 }, + cols: { lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 }, + layouts: {}, + margin: [10, 10], + containerPadding: { + lg: null, + md: null, + sm: null, + xs: null, + xxs: null + }, + onBreakpointChange: a.noop, + onLayoutChange: a.noop, + onWidthChange: a.noop }); - var r = c(n(0)), - o = c(n(145)), - i = c(n(227)), - a = c(n(589)), - s = c(n(228)); - function c(e) { - return e && e.__esModule ? e : { default: e }; - } }, function(e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = function(e) { - return Object.keys(e) - .filter(function(e) { - return (0, i.default)(e); - }) - .reduce(function(t, n) { - var i = n.toLowerCase(), - a = o.default[i] || i; + var t, n; + return ( + (n = t = (function(t) { + function n() { + var e, t; + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, n); + for ( + var r = arguments.length, o = new Array(r), a = 0; + a < r; + a++ + ) + o[a] = arguments[a]; + return ( + (t = (function(e, t) { + if (t && ('object' === s(t) || 'function' == typeof t)) + return t; + return f(e); + })(this, (e = l(n)).call.apply(e, [this].concat(o)))), + p(f(t), 'state', { width: 1280 }), + p(f(t), 'mounted', !1), + p(f(t), 'onWindowResize', function() { + if (t.mounted) { + var e = i.default.findDOMNode(f(t)); + e instanceof HTMLElement && + t.setState({ width: e.offsetWidth }); + } + }), + t + ); + } return ( - (t[a] = (function(e, t) { - r.default - .map(function(e) { - return e.toLowerCase(); - }) - .indexOf(e.toLowerCase()) >= 0 && (t = e); - return t; - })(a, e[n])), - t + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { value: e, writable: !0, configurable: !0 } + })), + t && d(e, t); + })(n, t), + (function(e, t, n) { + t && u(e.prototype, t); + n && u(e, n); + })(n, [ + { + key: 'componentDidMount', + value: function() { + (this.mounted = !0), + window.addEventListener('resize', this.onWindowResize), + this.onWindowResize(); + } + }, + { + key: 'componentWillUnmount', + value: function() { + (this.mounted = !1), + window.removeEventListener( + 'resize', + this.onWindowResize + ); + } + }, + { + key: 'render', + value: function() { + var t = this.props, + n = t.measureBeforeMount, + o = (function(e, t) { + if (null == e) return {}; + var n, + r, + o = (function(e, t) { + if (null == e) return {}; + var n, + r, + o = {}, + i = Object.keys(e); + for (r = 0; r < i.length; r++) + (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); + return o; + })(e, t); + if (Object.getOwnPropertySymbols) { + var i = Object.getOwnPropertySymbols(e); + for (r = 0; r < i.length; r++) + (n = i[r]), + t.indexOf(n) >= 0 || + (Object.prototype.propertyIsEnumerable.call( + e, + n + ) && + (o[n] = e[n])); + } + return o; + })(t, ['measureBeforeMount']); + return n && !this.mounted + ? r.default.createElement('div', { + className: this.props.className, + style: this.props.style + }) + : r.default.createElement(e, c({}, o, this.state)); + } + } + ]), + n ); - }, {}); + })(r.default.Component)), + p(t, 'defaultProps', { measureBeforeMount: !1 }), + p(t, 'propTypes', { measureBeforeMount: o.default.bool }), + n + ); }); - var r = a(n(586)), - o = a(n(587)), - i = a(n(228)); + var r = a(n(0)), + o = a(n(1)), + i = a(n(7)); function a(e) { return e && e.__esModule ? e : { default: e }; } - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = [ - 'allowfullScreen', - 'async', - 'autoplay', - 'capture', - 'checked', - 'controls', - 'default', - 'defer', - 'disabled', - 'formnovalidate', - 'hidden', - 'loop', - 'multiple', - 'muted', - 'novalidate', - 'open', - 'playsinline', - 'readonly', - 'required', - 'reversed', - 'scoped', - 'seamless', - 'selected', - 'itemscope' - ]); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = { - accept: 'accept', - 'accept-charset': 'acceptCharset', - accesskey: 'accessKey', - action: 'action', - allowfullscreen: 'allowFullScreen', - allowtransparency: 'allowTransparency', - alt: 'alt', - as: 'as', - async: 'async', - autocomplete: 'autoComplete', - autoplay: 'autoPlay', - capture: 'capture', - cellpadding: 'cellPadding', - cellspacing: 'cellSpacing', - charset: 'charSet', - challenge: 'challenge', - checked: 'checked', - cite: 'cite', - classid: 'classID', - class: 'className', - cols: 'cols', - colspan: 'colSpan', - content: 'content', - contenteditable: 'contentEditable', - contextmenu: 'contextMenu', - controls: 'controls', - controlsList: 'controlsList', - coords: 'coords', - crossorigin: 'crossOrigin', - data: 'data', - datetime: 'dateTime', - default: 'default', - defer: 'defer', - dir: 'dir', - disabled: 'disabled', - download: 'download', - draggable: 'draggable', - enctype: 'encType', - form: 'form', - formaction: 'formAction', - formenctype: 'formEncType', - formmethod: 'formMethod', - formnovalidate: 'formNoValidate', - formtarget: 'formTarget', - frameborder: 'frameBorder', - headers: 'headers', - height: 'height', - hidden: 'hidden', - high: 'high', - href: 'href', - hreflang: 'hrefLang', - for: 'htmlFor', - 'http-equiv': 'httpEquiv', - icon: 'icon', - id: 'id', - inputmode: 'inputMode', - integrity: 'integrity', - is: 'is', - keyparams: 'keyParams', - keytype: 'keyType', - kind: 'kind', - label: 'label', - lang: 'lang', - list: 'list', - loop: 'loop', - low: 'low', - manifest: 'manifest', - marginheight: 'marginHeight', - marginwidth: 'marginWidth', - max: 'max', - maxlength: 'maxLength', - media: 'media', - mediagroup: 'mediaGroup', - method: 'method', - min: 'min', - minlength: 'minLength', - multiple: 'multiple', - muted: 'muted', - name: 'name', - nonce: 'nonce', - novalidate: 'noValidate', - open: 'open', - optimum: 'optimum', - pattern: 'pattern', - placeholder: 'placeholder', - playsinline: 'playsInline', - poster: 'poster', - preload: 'preload', - profile: 'profile', - radiogroup: 'radioGroup', - readonly: 'readOnly', - referrerpolicy: 'referrerPolicy', - rel: 'rel', - required: 'required', - reversed: 'reversed', - role: 'role', - rows: 'rows', - rowspan: 'rowSpan', - sandbox: 'sandbox', - scope: 'scope', - scoped: 'scoped', - scrolling: 'scrolling', - seamless: 'seamless', - selected: 'selected', - shape: 'shape', - size: 'size', - sizes: 'sizes', - slot: 'slot', - span: 'span', - spellcheck: 'spellCheck', - src: 'src', - srcdoc: 'srcDoc', - srclang: 'srcLang', - srcset: 'srcSet', - start: 'start', - step: 'step', - style: 'style', - summary: 'summary', - tabindex: 'tabIndex', - target: 'target', - title: 'title', - type: 'type', - usemap: 'useMap', - value: 'value', - width: 'width', - wmode: 'wmode', - wrap: 'wrap', - about: 'about', - datatype: 'datatype', - inlist: 'inlist', - prefix: 'prefix', - property: 'property', - resource: 'resource', - typeof: 'typeof', - vocab: 'vocab', - autocapitalize: 'autoCapitalize', - autocorrect: 'autoCorrect', - autosave: 'autoSave', - color: 'color', - itemprop: 'itemProp', - itemscope: 'itemScope', - itemtype: 'itemType', - itemid: 'itemID', - itemref: 'itemRef', - results: 'results', - security: 'security', - unselectable: 'unselectable' - }); - }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }); - var r = function(e, t) { - if (Array.isArray(e)) return e; - if (Symbol.iterator in Object(e)) - return (function(e, t) { - var n = [], - r = !0, - o = !1, - i = void 0; - try { - for ( - var a, s = e[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !t || n.length !== t); - r = !0 - ); - } catch (e) { - (o = !0), (i = e); - } finally { - try { - !r && s.return && s.return(); - } finally { - if (o) throw i; + function s(e) { + return (s = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function(e) { + return typeof e; } + : function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e; + })(e); + } + function c() { + return (c = + Object.assign || + function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } - return n; + return e; + }).apply(this, arguments); + } + function u(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + function l(e) { + return (l = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(e) { + return e.__proto__ || Object.getPrototypeOf(e); + })(e); + } + function f(e) { + if (void 0 === e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return e; + } + function d(e, t) { + return (d = + Object.setPrototypeOf || + function(e, t) { + return (e.__proto__ = t), e; })(e, t); - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance' - ); - }; - t.default = function() { - var e = - arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : ''; - if ('' === e) return {}; - return e.split(';').reduce(function(e, t) { - var n = t - .split(/^([^:]+):/) - .filter(function(e, t) { - return t > 0; + } + function p(e, t, n) { + return ( + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 }) - .map(function(e) { - return e.trim().toLowerCase(); - }), - o = r(n, 2), - i = o[0], - a = o[1]; - return ( - void 0 === a || - (e[ - (i = i.replace(/^-ms-/, 'ms-').replace(/-(.)/g, function(e, t) { - return t.toUpperCase(); - })) - ] = a), - e - ); - }, {}); - }; + : (e[t] = n), + e + ); + } }, function(e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = [ - 'area', - 'base', - 'br', - 'col', - 'command', - 'embed', - 'hr', - 'img', - 'input', - 'keygen', - 'link', - 'meta', - 'param', - 'source', - 'track', - 'wbr' - ]); + (t.default = function(e) { + return ( + 'text' === e.type && /\r?\n/.test(e.data) && '' === e.data.trim() + ); + }); }, function(e, t, n) { 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = function(e, t) { - var n = void 0; - e.children.length > 0 && (n = e.children[0].data); - var i = (0, o.default)(e.attribs, t); - return r.default.createElement('style', i, n); - }); - var r = i(n(0)), - o = i(n(227)); - function i(e) { + var r; + Object.defineProperty(t, '__esModule', { value: !0 }); + var o = n(79), + i = u(n(627)), + a = u(n(628)), + s = u(n(634)), + c = u(n(635)); + function u(e) { return e && e.__esModule ? e : { default: e }; } + function l(e, t, n) { + return ( + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), + e + ); + } + t.default = + (l((r = {}), o.ElementType.Text, i.default), + l(r, o.ElementType.Tag, a.default), + l(r, o.ElementType.Style, s.default), + l(r, o.ElementType.Directive, c.default), + l(r, o.ElementType.Comment, c.default), + l(r, o.ElementType.Script, c.default), + l(r, o.ElementType.CDATA, c.default), + l(r, o.ElementType.Doctype, c.default), + r); }, function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = function() { - return null; - }); + var r = n(598); + e.exports = function(e) { + if ((e >= 55296 && e <= 57343) || e > 1114111) return '�'; + e in r && (e = r[e]); + var t = ''; + e > 65535 && + ((e -= 65536), + (t += String.fromCharCode(((e >>> 10) & 1023) | 55296)), + (e = 56320 | (1023 & e))); + return (t += String.fromCharCode(e)); + }; }, - function(e, t, n) { - 'use strict'; - Object.defineProperty(t, '__esModule', { value: !0 }), - (t.default = function(e) { - var t = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : {}, - n = t.decodeEntities, - i = void 0 === n || n, - a = t.transform, - s = t.preprocessNodes, - c = - void 0 === s - ? function(e) { - return e; - } - : s, - u = c(r.default.parseDOM(e, { decodeEntities: i })); - return (0, o.default)(u, a); - }); - var r = i(n(65)), - o = i(n(145)); - function i(e) { - return e && e.__esModule ? e : { default: e }; - } + function(e) { + e.exports = JSON.parse( + '{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}' + ); + }, + function(e) { + e.exports = JSON.parse( + '{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}' + ); + }, + function(e) { + e.exports = JSON.parse( + '{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}' + ); + }, + function(e) { + e.exports = JSON.parse( + '{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}' + ); }, function(e, t, n) { - /* @license C3.js v0.7.15 | (c) C3 Team and other contributors | http://c3js.org/ */ - e.exports = (function() { - 'use strict'; - function e(t) { - return (e = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(e) { - return typeof e; - } - : function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - })(t); - } - function t(e) { - return ( - (function(e) { - if (Array.isArray(e)) { - for (var t = 0, n = new Array(e.length); t < e.length; t++) - n[t] = e[t]; - return n; - } - })(e) || - (function(e) { - if ( - Symbol.iterator in Object(e) || - '[object Arguments]' === Object.prototype.toString.call(e) - ) - return Array.from(e); - })(e) || - (function() { - throw new TypeError( - 'Invalid attempt to spread non-iterable instance' + 'use strict'; + var r, + o = 'object' == typeof Reflect ? Reflect : null, + i = + o && 'function' == typeof o.apply + ? o.apply + : function(e, t, n) { + return Function.prototype.apply.call(e, t, n); + }; + r = + o && 'function' == typeof o.ownKeys + ? o.ownKeys + : Object.getOwnPropertySymbols + ? function(e) { + return Object.getOwnPropertyNames(e).concat( + Object.getOwnPropertySymbols(e) ); - })() + } + : function(e) { + return Object.getOwnPropertyNames(e); + }; + var a = + Number.isNaN || + function(e) { + return e != e; + }; + function s() { + s.init.call(this); + } + (e.exports = s), + (s.EventEmitter = s), + (s.prototype._events = void 0), + (s.prototype._eventsCount = 0), + (s.prototype._maxListeners = void 0); + var c = 10; + function u(e) { + return void 0 === e._maxListeners + ? s.defaultMaxListeners + : e._maxListeners; + } + function l(e, t, n, r) { + var o, i, a, s; + if ('function' != typeof n) + throw new TypeError( + 'The "listener" argument must be of type Function. Received type ' + + typeof n ); + if ( + (void 0 === (i = e._events) + ? ((i = e._events = Object.create(null)), (e._eventsCount = 0)) + : (void 0 !== i.newListener && + (e.emit('newListener', t, n.listener ? n.listener : n), + (i = e._events)), + (a = i[t])), + void 0 === a) + ) + (a = i[t] = n), ++e._eventsCount; + else if ( + ('function' == typeof a + ? (a = i[t] = r ? [n, a] : [a, n]) + : r + ? a.unshift(n) + : a.push(n), + (o = u(e)) > 0 && a.length > o && !a.warned) + ) { + a.warned = !0; + var c = new Error( + 'Possible EventEmitter memory leak detected. ' + + a.length + + ' ' + + String(t) + + ' listeners added. Use emitter.setMaxListeners() to increase limit' + ); + (c.name = 'MaxListenersExceededWarning'), + (c.emitter = e), + (c.type = t), + (c.count = a.length), + (s = c), + console && console.warn && console.warn(s); } - function r(e) { - var t = this; - (t.d3 = window.d3 ? window.d3 : n(422)), - (t.api = e), - (t.config = t.getDefaultConfig()), - (t.data = {}), - (t.cache = {}), - (t.axes = {}); - } - function o(e) { - (this.internal = new r(this)), - this.internal.loadConfig(e), - this.internal.beforeInit(e), - this.internal.init(), - this.internal.afterInit(e), - (function e(t, n, r) { - Object.keys(t).forEach(function(o) { - (n[o] = t[o].bind(r)), - Object.keys(t[o]).length > 0 && e(t[o], n[o], r); - }); - })(o.prototype, this, this); + return e; + } + function f() { + for (var e = [], t = 0; t < arguments.length; t++) e.push(arguments[t]); + this.fired || + (this.target.removeListener(this.type, this.wrapFn), + (this.fired = !0), + i(this.listener, this.target, e)); + } + function d(e, t, n) { + var r = { fired: !1, wrapFn: void 0, target: e, type: t, listener: n }, + o = f.bind(r); + return (o.listener = n), (r.wrapFn = o), o; + } + function p(e, t, n) { + var r = e._events; + if (void 0 === r) return []; + var o = r[t]; + return void 0 === o + ? [] + : 'function' == typeof o + ? n + ? [o.listener || o] + : [o] + : n + ? (function(e) { + for (var t = new Array(e.length), n = 0; n < t.length; ++n) + t[n] = e[n].listener || e[n]; + return t; + })(o) + : g(o, o.length); + } + function h(e) { + var t = this._events; + if (void 0 !== t) { + var n = t[e]; + if ('function' == typeof n) return 1; + if (void 0 !== n) return n.length; } - var i = function(e) { - return Math.ceil(e) + 0.5; - }, - a = function(e) { - return 10 * Math.ceil(e / 10); - }, - s = function(e) { - return e[1] - e[0]; - }, - c = function(e, t, n) { - return d(e[t]) ? e[t] : n; - }, - u = function(e) { - var t = l(e), - n = [e.pathSegList.getItem(0), e.pathSegList.getItem(1)]; - return { - x: n[0].x, - y: Math.min(n[0].y, n[1].y), - width: t.width, - height: t.height - }; - }, - l = function(e) { - try { - return e.getBBox(); - } catch (e) { - return { x: 0, y: 0, width: 0, height: 0 }; - } - }, - f = function(e) { - return Array.isArray(e); - }, - d = function(e) { - return void 0 !== e; - }, - p = function(t) { - return ( - null == t || - (m(t) && 0 === t.length) || - ('object' === e(t) && 0 === Object.keys(t).length) + return 0; + } + function g(e, t) { + for (var n = new Array(t), r = 0; r < t; ++r) n[r] = e[r]; + return n; + } + Object.defineProperty(s, 'defaultMaxListeners', { + enumerable: !0, + get: function() { + return c; + }, + set: function(e) { + if ('number' != typeof e || e < 0 || a(e)) + throw new RangeError( + 'The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + + e + + '.' ); - }, - h = function(e) { - return 'function' == typeof e; - }, - g = function(e) { - return 'number' == typeof e; - }, - m = function(e) { - return 'string' == typeof e; - }, - b = function(e) { - return void 0 === e; - }, - y = function(e) { - return e || 0 === e; - }, - v = function(e) { - return !p(e); - }, - _ = function(e) { - return 'string' == typeof e - ? e.replace(//g, '>') - : e; - }, - x = function(e) { - var t = (function(e) { - void 0 === e && (e = window.navigator.userAgent); - var t = e.indexOf('MSIE '); - return t > 0 - ? parseInt(e.substring(t + 5, e.indexOf('.', t)), 10) - : (t = e.indexOf('Trident/')) > 0 && - ((t = e.indexOf('rv:')), - parseInt(e.substring(t + 3, e.indexOf('.', t)), 10)); - })(); - return void 0 === e ? !!t : e === t; - }; - function w(e, t) { - (this.component = e), - (this.params = t || {}), - (this.d3 = e.d3), - (this.scale = this.d3.scaleLinear()), - this.range, - (this.orient = 'bottom'), - (this.innerTickSize = 6), - (this.outerTickSize = this.params.withOuterTick ? 6 : 0), - (this.tickPadding = 3), - (this.tickValues = null), - this.tickFormat, - this.tickArguments, - (this.tickOffset = 0), - (this.tickCulling = !0), - this.tickCentered, - this.tickTextCharSize, - (this.tickTextRotate = this.params.tickTextRotate), - this.tickLength, - (this.axis = this.generateAxis()); - } - (w.prototype.axisX = function(e, t, n) { - e.attr('transform', function(e) { - return 'translate(' + Math.ceil(t(e) + n) + ', 0)'; - }); + c = e; + } + }), + (s.init = function() { + (void 0 !== this._events && + this._events !== Object.getPrototypeOf(this)._events) || + ((this._events = Object.create(null)), (this._eventsCount = 0)), + (this._maxListeners = this._maxListeners || void 0); }), - (w.prototype.axisY = function(e, t) { - e.attr('transform', function(e) { - return 'translate(0,' + Math.ceil(t(e)) + ')'; - }); - }), - (w.prototype.scaleExtent = function(e) { - var t = e[0], - n = e[e.length - 1]; - return t < n ? [t, n] : [n, t]; - }), - (w.prototype.generateTicks = function(e) { - var t, - n, - r = []; - if (e.ticks) return e.ticks.apply(e, this.tickArguments); - for (n = e.domain(), t = Math.ceil(n[0]); t < n[1]; t++) r.push(t); - return ( - r.length > 0 && r[0] > 0 && r.unshift(r[0] - (r[1] - r[0])), r - ); - }), - (w.prototype.copyScale = function() { - var e, - t = this.scale.copy(); - return ( - this.params.isCategory && - ((e = this.scale.domain()), t.domain([e[0], e[1] - 1])), - t - ); - }), - (w.prototype.textFormatted = function(e) { - var t = this.tickFormat ? this.tickFormat(e) : e; - return void 0 !== t ? t : ''; - }), - (w.prototype.updateRange = function() { - return ( - (this.range = this.scale.rangeExtent - ? this.scale.rangeExtent() - : this.scaleExtent(this.scale.range())), - this.range - ); - }), - (w.prototype.updateTickTextCharSize = function(e) { - var t = this; - if (t.tickTextCharSize) return t.tickTextCharSize; - var n = { h: 11.5, w: 5.5 }; - return ( - e - .select('text') - .text(function(e) { - return t.textFormatted(e); - }) - .each(function(e) { - var r = l(this), - o = t.textFormatted(e), - i = r.height, - a = o ? r.width / o.length : void 0; - i && a && ((n.h = i), (n.w = a)); - }) - .text(''), - (t.tickTextCharSize = n), - n - ); - }), - (w.prototype.isVertical = function() { - return 'left' === this.orient || 'right' === this.orient; - }), - (w.prototype.tspanData = function(e, t, n) { - var r = this.params.tickMultiline - ? this.splitTickText(e, n) - : [].concat(this.textFormatted(e)); - return ( - this.params.tickMultiline && - this.params.tickMultilineMax > 0 && - (r = this.ellipsify(r, this.params.tickMultilineMax)), - r.map(function(e) { - return { index: t, splitted: e, length: r.length }; - }) - ); - }), - (w.prototype.splitTickText = function(e, t) { - var n, - r, - o, - i = this, - a = i.textFormatted(e), - s = i.params.tickWidth; - return '[object Array]' === Object.prototype.toString.call(a) - ? a - : ((!s || s <= 0) && - (s = i.isVertical() - ? 95 - : i.params.isCategory - ? Math.ceil(t(1) - t(0)) - 12 - : 110), - (function e(t, a) { - r = void 0; - for (var c = 1; c < a.length; c++) - if ( - (' ' === a.charAt(c) && (r = c), - (n = a.substr(0, c + 1)), - (o = i.tickTextCharSize.w * n.length), - s < o) - ) - return e( - t.concat(a.substr(0, r || c)), - a.slice(r ? r + 1 : c) - ); - return t.concat(a); - })([], a + '')); - }), - (w.prototype.ellipsify = function(e, t) { - if (e.length <= t) return e; - for (var n = e.slice(0, t), r = 3, o = t - 1; o >= 0; o--) { - var i = n[o].length; - if ( - ((n[o] = n[o].substr(0, i - r).padEnd(i, '.')), (r -= i) <= 0) - ) - break; - } - return n; - }), - (w.prototype.updateTickLength = function() { - this.tickLength = - Math.max(this.innerTickSize, 0) + this.tickPadding; - }), - (w.prototype.lineY2 = function(e) { - var t = this.scale(e) + (this.tickCentered ? 0 : this.tickOffset); - return this.range[0] < t && t < this.range[1] - ? this.innerTickSize - : 0; - }), - (w.prototype.textY = function() { - var e = this.tickTextRotate; - return e - ? 11.5 - (e / 15) * 2.5 * (e > 0 ? 1 : -1) - : this.tickLength; - }), - (w.prototype.textTransform = function() { - var e = this.tickTextRotate; - return e ? 'rotate(' + e + ')' : ''; - }), - (w.prototype.textTextAnchor = function() { - var e = this.tickTextRotate; - return e ? (e > 0 ? 'start' : 'end') : 'middle'; - }), - (w.prototype.tspanDx = function() { - var e = this.tickTextRotate; - return e ? 8 * Math.sin(Math.PI * (e / 180)) : 0; - }), - (w.prototype.tspanDy = function(e, t) { - var n = this.tickTextCharSize.h; - return ( - 0 === t && - (n = this.isVertical() - ? -((e.length - 1) * (this.tickTextCharSize.h / 2) - 3) - : '.71em'), - n - ); - }), - (w.prototype.generateAxis = function() { - var e = this, - t = e.d3, - n = e.params; - function r(o, i) { - var a; - return ( - o.each(function() { - var o, - s, - c, - u = (r.g = t.select(this)), - l = this.__chart__ || e.scale, - f = (this.__chart__ = e.copyScale()), - d = e.tickValues ? e.tickValues : e.generateTicks(f), - p = u.selectAll('.tick').data(d, f), - h = p - .enter() - .insert('g', '.domain') - .attr('class', 'tick') - .style('opacity', 1e-6), - g = p.exit().remove(), - m = p.merge(h); - n.isCategory - ? ((e.tickOffset = Math.ceil((f(1) - f(0)) / 2)), - (s = e.tickCentered ? 0 : e.tickOffset), - (c = e.tickCentered ? e.tickOffset : 0)) - : (e.tickOffset = s = 0), - e.updateRange(), - e.updateTickLength(), - e.updateTickTextCharSize(u.select('.tick')); - var b = m.select('line').merge(h.append('line')), - y = m.select('text').merge(h.append('text')), - v = m - .selectAll('text') - .selectAll('tspan') - .data(function(t, n) { - return e.tspanData(t, n, f); - }), - _ = v - .enter() - .append('tspan') - .merge(v) - .text(function(e) { - return e.splitted; - }); - v.exit().remove(); - var x = u.selectAll('.domain').data([0]), - w = x - .enter() - .append('path') - .merge(x) - .attr('class', 'domain'); - switch (e.orient) { - case 'bottom': - (o = e.axisX), - b - .attr('x1', s) - .attr('x2', s) - .attr('y2', function(t, n) { - return e.lineY2(t, n); - }), - y - .attr('x', 0) - .attr('y', function(t, n) { - return e.textY(t, n); - }) - .attr('transform', function(t, n) { - return e.textTransform(t, n); - }) - .style('text-anchor', function(t, n) { - return e.textTextAnchor(t, n); - }), - _.attr('x', 0) - .attr('dy', function(t, n) { - return e.tspanDy(t, n); - }) - .attr('dx', function(t, n) { - return e.tspanDx(t, n); - }), - w.attr( - 'd', - 'M' + - e.range[0] + - ',' + - e.outerTickSize + - 'V0H' + - e.range[1] + - 'V' + - e.outerTickSize - ); - break; - case 'top': - (o = e.axisX), - b - .attr('x1', s) - .attr('x2', s) - .attr('y2', function(t, n) { - return -1 * e.lineY2(t, n); - }), - y - .attr('x', 0) - .attr('y', function(t, r) { - return ( - -1 * e.textY(t, r) - - (n.isCategory ? 2 : e.tickLength - 2) - ); - }) - .attr('transform', function(t, n) { - return e.textTransform(t, n); - }) - .style('text-anchor', function(t, n) { - return e.textTextAnchor(t, n); - }), - _.attr('x', 0) - .attr('dy', function(t, n) { - return e.tspanDy(t, n); - }) - .attr('dx', function(t, n) { - return e.tspanDx(t, n); - }), - w.attr( - 'd', - 'M' + - e.range[0] + - ',' + - -e.outerTickSize + - 'V0H' + - e.range[1] + - 'V' + - -e.outerTickSize - ); - break; - case 'left': - (o = e.axisY), - b - .attr('x2', -e.innerTickSize) - .attr('y1', c) - .attr('y2', c), - y - .attr('x', -e.tickLength) - .attr('y', e.tickOffset) - .style('text-anchor', 'end'), - _.attr('x', -e.tickLength).attr('dy', function(t, n) { - return e.tspanDy(t, n); - }), - w.attr( - 'd', - 'M' + - -e.outerTickSize + - ',' + - e.range[0] + - 'H0V' + - e.range[1] + - 'H' + - -e.outerTickSize - ); - break; - case 'right': - (o = e.axisY), - b - .attr('x2', e.innerTickSize) - .attr('y1', c) - .attr('y2', c), - y - .attr('x', e.tickLength) - .attr('y', e.tickOffset) - .style('text-anchor', 'start'), - _.attr('x', e.tickLength).attr('dy', function(t, n) { - return e.tspanDy(t, n); - }), - w.attr( - 'd', - 'M' + - e.outerTickSize + - ',' + - e.range[0] + - 'H0V' + - e.range[1] + - 'H' + - e.outerTickSize - ); - } - if (f.rangeBand) { - var M = f, - k = M.rangeBand() / 2; - l = f = function(e) { - return M(e) + k; - }; - } else l.rangeBand ? (l = f) : g.call(o, f, e.tickOffset); - h.call(o, l, e.tickOffset), - (a = (i ? m.transition(i) : m) - .style('opacity', 1) - .call(o, f, e.tickOffset)); - }), - a - ); - } - return ( - (r.scale = function(t) { - return arguments.length ? ((e.scale = t), r) : e.scale; - }), - (r.orient = function(t) { - return arguments.length - ? ((e.orient = - t in { top: 1, right: 1, bottom: 1, left: 1 } - ? t + '' - : 'bottom'), - r) - : e.orient; - }), - (r.tickFormat = function(t) { - return arguments.length - ? ((e.tickFormat = t), r) - : e.tickFormat; - }), - (r.tickCentered = function(t) { - return arguments.length - ? ((e.tickCentered = t), r) - : e.tickCentered; - }), - (r.tickOffset = function() { - return e.tickOffset; - }), - (r.tickInterval = function() { - var t; - return (t = n.isCategory - ? 2 * e.tickOffset - : (r.g - .select('path.domain') - .node() - .getTotalLength() - - 2 * e.outerTickSize) / - r.g.selectAll('line').size()) == - 1 / 0 - ? 0 - : t; - }), - (r.ticks = function() { - return arguments.length - ? ((e.tickArguments = arguments), r) - : e.tickArguments; - }), - (r.tickCulling = function(t) { - return arguments.length - ? ((e.tickCulling = t), r) - : e.tickCulling; - }), - (r.tickValues = function(t) { - if ('function' == typeof t) - e.tickValues = function() { - return t(e.scale.domain()); - }; - else { - if (!arguments.length) return e.tickValues; - e.tickValues = t; - } - return r; - }), - r - ); - }); - var M = { - target: 'c3-target', - chart: 'c3-chart', - chartLine: 'c3-chart-line', - chartLines: 'c3-chart-lines', - chartBar: 'c3-chart-bar', - chartBars: 'c3-chart-bars', - chartText: 'c3-chart-text', - chartTexts: 'c3-chart-texts', - chartArc: 'c3-chart-arc', - chartArcs: 'c3-chart-arcs', - chartArcsTitle: 'c3-chart-arcs-title', - chartArcsBackground: 'c3-chart-arcs-background', - chartArcsGaugeUnit: 'c3-chart-arcs-gauge-unit', - chartArcsGaugeMax: 'c3-chart-arcs-gauge-max', - chartArcsGaugeMin: 'c3-chart-arcs-gauge-min', - selectedCircle: 'c3-selected-circle', - selectedCircles: 'c3-selected-circles', - eventRect: 'c3-event-rect', - eventRects: 'c3-event-rects', - eventRectsSingle: 'c3-event-rects-single', - eventRectsMultiple: 'c3-event-rects-multiple', - zoomRect: 'c3-zoom-rect', - brush: 'c3-brush', - dragZoom: 'c3-drag-zoom', - focused: 'c3-focused', - defocused: 'c3-defocused', - region: 'c3-region', - regions: 'c3-regions', - title: 'c3-title', - tooltipContainer: 'c3-tooltip-container', - tooltip: 'c3-tooltip', - tooltipName: 'c3-tooltip-name', - shape: 'c3-shape', - shapes: 'c3-shapes', - line: 'c3-line', - lines: 'c3-lines', - bar: 'c3-bar', - bars: 'c3-bars', - circle: 'c3-circle', - circles: 'c3-circles', - arc: 'c3-arc', - arcLabelLine: 'c3-arc-label-line', - arcs: 'c3-arcs', - area: 'c3-area', - areas: 'c3-areas', - empty: 'c3-empty', - text: 'c3-text', - texts: 'c3-texts', - gaugeValue: 'c3-gauge-value', - grid: 'c3-grid', - gridLines: 'c3-grid-lines', - xgrid: 'c3-xgrid', - xgrids: 'c3-xgrids', - xgridLine: 'c3-xgrid-line', - xgridLines: 'c3-xgrid-lines', - xgridFocus: 'c3-xgrid-focus', - ygrid: 'c3-ygrid', - ygrids: 'c3-ygrids', - ygridLine: 'c3-ygrid-line', - ygridLines: 'c3-ygrid-lines', - colorScale: 'c3-colorscale', - stanfordElements: 'c3-stanford-elements', - stanfordLine: 'c3-stanford-line', - stanfordLines: 'c3-stanford-lines', - stanfordRegion: 'c3-stanford-region', - stanfordRegions: 'c3-stanford-regions', - stanfordText: 'c3-stanford-text', - stanfordTexts: 'c3-stanford-texts', - axis: 'c3-axis', - axisX: 'c3-axis-x', - axisXLabel: 'c3-axis-x-label', - axisY: 'c3-axis-y', - axisYLabel: 'c3-axis-y-label', - axisY2: 'c3-axis-y2', - axisY2Label: 'c3-axis-y2-label', - legendBackground: 'c3-legend-background', - legendItem: 'c3-legend-item', - legendItemEvent: 'c3-legend-item-event', - legendItemTile: 'c3-legend-item-tile', - legendItemHidden: 'c3-legend-item-hidden', - legendItemFocused: 'c3-legend-item-focused', - dragarea: 'c3-dragarea', - EXPANDED: '_expanded_', - SELECTED: '_selected_', - INCLUDED: '_included_' - }, - k = function e(t) { - !(function(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - })(this, e), - (this.owner = t), - (this.d3 = t.d3), - (this.internal = w); - }; - (k.prototype.init = function() { - var e = this.owner, - t = e.config, - n = e.main; - (e.axes.x = n - .append('g') - .attr('class', M.axis + ' ' + M.axisX) - .attr('clip-path', t.axis_x_inner ? '' : e.clipPathForXAxis) - .attr('transform', e.getTranslate('x')) - .style('visibility', t.axis_x_show ? 'visible' : 'hidden')), - e.axes.x - .append('text') - .attr('class', M.axisXLabel) - .attr('transform', t.axis_rotated ? 'rotate(-90)' : '') - .style('text-anchor', this.textAnchorForXAxisLabel.bind(this)), - (e.axes.y = n - .append('g') - .attr('class', M.axis + ' ' + M.axisY) - .attr('clip-path', t.axis_y_inner ? '' : e.clipPathForYAxis) - .attr('transform', e.getTranslate('y')) - .style('visibility', t.axis_y_show ? 'visible' : 'hidden')), - e.axes.y - .append('text') - .attr('class', M.axisYLabel) - .attr('transform', t.axis_rotated ? '' : 'rotate(-90)') - .style('text-anchor', this.textAnchorForYAxisLabel.bind(this)), - (e.axes.y2 = n - .append('g') - .attr('class', M.axis + ' ' + M.axisY2) - .attr('transform', e.getTranslate('y2')) - .style('visibility', t.axis_y2_show ? 'visible' : 'hidden')), - e.axes.y2 - .append('text') - .attr('class', M.axisY2Label) - .attr('transform', t.axis_rotated ? '' : 'rotate(-90)') - .style('text-anchor', this.textAnchorForY2AxisLabel.bind(this)); - }), - (k.prototype.getXAxis = function(e, t, n, r, o, i, a) { - var s = this.owner, - c = s.config, - u = { - isCategory: s.isCategorized(), - withOuterTick: o, - tickMultiline: c.axis_x_tick_multiline, - tickMultilineMax: c.axis_x_tick_multiline - ? Number(c.axis_x_tick_multilineMax) - : 0, - tickWidth: c.axis_x_tick_width, - tickTextRotate: a ? 0 : c.axis_x_tick_rotate, - withoutTransition: i - }, - l = new this.internal(this, u).axis.scale(e).orient(t); - return ( - s.isTimeSeries() && - r && - 'function' != typeof r && - (r = r.map(function(e) { - return s.parseDate(e); - })), - l.tickFormat(n).tickValues(r), - s.isCategorized() && - (l.tickCentered(c.axis_x_tick_centered), - p(c.axis_x_tick_culling) && (c.axis_x_tick_culling = !1)), - l - ); - }), - (k.prototype.updateXAxisTickValues = function(e, t) { - var n, - r = this.owner, - o = r.config; - return ( - (o.axis_x_tick_fit || o.axis_x_tick_count) && - (n = this.generateTickValues( - r.mapTargetsToUniqueXs(e), - o.axis_x_tick_count, - r.isTimeSeries() - )), - t - ? t.tickValues(n) - : (r.xAxis.tickValues(n), r.subXAxis.tickValues(n)), - n - ); - }), - (k.prototype.getYAxis = function(e, t, n, r, o, i, a) { - var s = this.owner, - c = s.config, - u = c['axis_'.concat(e, '_tick_format')]; - !u && - s.isAxisNormalized(e) && - (u = function(e) { - return ''.concat(e, '%'); - }); - var l = new this.internal(this, { - withOuterTick: o, - withoutTransition: i, - tickTextRotate: a ? 0 : c.axis_y_tick_rotate - }).axis - .scale(t) - .orient(n); - return ( - u && l.tickFormat(u), - s.isTimeSeriesY() - ? l.ticks(c.axis_y_tick_time_type, c.axis_y_tick_time_interval) - : l.tickValues(r), - l - ); - }), - (k.prototype.getId = function(e) { - var t = this.owner.config; - return e in t.data_axes ? t.data_axes[e] : 'y'; - }), - (k.prototype.getXAxisTickFormat = function() { - var e = this.owner, - t = e.config, - n = e.isTimeSeries() - ? e.defaultAxisTimeFormat - : e.isCategorized() - ? e.categoryName - : function(e) { - return e; - }; - return ( - t.axis_x_tick_format && - (h(t.axis_x_tick_format) - ? (n = t.axis_x_tick_format) - : e.isTimeSeries() && - (n = function(n) { - return n ? e.axisTimeFormat(t.axis_x_tick_format)(n) : ''; - })), - h(n) - ? function(t) { - return n.call(e, t); - } - : n - ); - }), - (k.prototype.getTickValues = function(e, t) { - return e || (t ? t.tickValues() : void 0); - }), - (k.prototype.getXAxisTickValues = function() { - return this.getTickValues( - this.owner.config.axis_x_tick_values, - this.owner.xAxis - ); - }), - (k.prototype.getYAxisTickValues = function() { - return this.getTickValues( - this.owner.config.axis_y_tick_values, - this.owner.yAxis - ); - }), - (k.prototype.getY2AxisTickValues = function() { - return this.getTickValues( - this.owner.config.axis_y2_tick_values, - this.owner.y2Axis - ); - }), - (k.prototype.getLabelOptionByAxisId = function(e) { - var t, - n = this.owner.config; - return ( - 'y' === e - ? (t = n.axis_y_label) - : 'y2' === e - ? (t = n.axis_y2_label) - : 'x' === e && (t = n.axis_x_label), - t - ); - }), - (k.prototype.getLabelText = function(e) { - var t = this.getLabelOptionByAxisId(e); - return m(t) ? t : t ? t.text : null; - }), - (k.prototype.setLabelText = function(e, t) { - var n = this.owner.config, - r = this.getLabelOptionByAxisId(e); - m(r) - ? 'y' === e - ? (n.axis_y_label = t) - : 'y2' === e - ? (n.axis_y2_label = t) - : 'x' === e && (n.axis_x_label = t) - : r && (r.text = t); - }), - (k.prototype.getLabelPosition = function(t, n) { - var r = this.getLabelOptionByAxisId(t), - o = r && 'object' === e(r) && r.position ? r.position : n; - return { - isInner: o.indexOf('inner') >= 0, - isOuter: o.indexOf('outer') >= 0, - isLeft: o.indexOf('left') >= 0, - isCenter: o.indexOf('center') >= 0, - isRight: o.indexOf('right') >= 0, - isTop: o.indexOf('top') >= 0, - isMiddle: o.indexOf('middle') >= 0, - isBottom: o.indexOf('bottom') >= 0 - }; - }), - (k.prototype.getXAxisLabelPosition = function() { - return this.getLabelPosition( - 'x', - this.owner.config.axis_rotated ? 'inner-top' : 'inner-right' - ); - }), - (k.prototype.getYAxisLabelPosition = function() { - return this.getLabelPosition( - 'y', - this.owner.config.axis_rotated ? 'inner-right' : 'inner-top' - ); - }), - (k.prototype.getY2AxisLabelPosition = function() { - return this.getLabelPosition( - 'y2', - this.owner.config.axis_rotated ? 'inner-right' : 'inner-top' - ); - }), - (k.prototype.getLabelPositionById = function(e) { - return 'y2' === e - ? this.getY2AxisLabelPosition() - : 'y' === e - ? this.getYAxisLabelPosition() - : this.getXAxisLabelPosition(); - }), - (k.prototype.textForXAxisLabel = function() { - return this.getLabelText('x'); - }), - (k.prototype.textForYAxisLabel = function() { - return this.getLabelText('y'); - }), - (k.prototype.textForY2AxisLabel = function() { - return this.getLabelText('y2'); - }), - (k.prototype.xForAxisLabel = function(e, t) { - var n = this.owner; - return e - ? t.isLeft - ? 0 - : t.isCenter - ? n.width / 2 - : n.width - : t.isBottom - ? -n.height - : t.isMiddle - ? -n.height / 2 - : 0; - }), - (k.prototype.dxForAxisLabel = function(e, t) { - return e - ? t.isLeft - ? '0.5em' - : t.isRight - ? '-0.5em' - : '0' - : t.isTop - ? '-0.5em' - : t.isBottom - ? '0.5em' - : '0'; - }), - (k.prototype.textAnchorForAxisLabel = function(e, t) { - return e - ? t.isLeft - ? 'start' - : t.isCenter - ? 'middle' - : 'end' - : t.isBottom - ? 'start' - : t.isMiddle - ? 'middle' - : 'end'; - }), - (k.prototype.xForXAxisLabel = function() { - return this.xForAxisLabel( - !this.owner.config.axis_rotated, - this.getXAxisLabelPosition() - ); - }), - (k.prototype.xForYAxisLabel = function() { - return this.xForAxisLabel( - this.owner.config.axis_rotated, - this.getYAxisLabelPosition() - ); - }), - (k.prototype.xForY2AxisLabel = function() { - return this.xForAxisLabel( - this.owner.config.axis_rotated, - this.getY2AxisLabelPosition() - ); - }), - (k.prototype.dxForXAxisLabel = function() { - return this.dxForAxisLabel( - !this.owner.config.axis_rotated, - this.getXAxisLabelPosition() - ); - }), - (k.prototype.dxForYAxisLabel = function() { - return this.dxForAxisLabel( - this.owner.config.axis_rotated, - this.getYAxisLabelPosition() + (s.prototype.setMaxListeners = function(e) { + if ('number' != typeof e || e < 0 || a(e)) + throw new RangeError( + 'The value of "n" is out of range. It must be a non-negative number. Received ' + + e + + '.' ); - }), - (k.prototype.dxForY2AxisLabel = function() { - return this.dxForAxisLabel( - this.owner.config.axis_rotated, - this.getY2AxisLabelPosition() + return (this._maxListeners = e), this; + }), + (s.prototype.getMaxListeners = function() { + return u(this); + }), + (s.prototype.emit = function(e) { + for (var t = [], n = 1; n < arguments.length; n++) + t.push(arguments[n]); + var r = 'error' === e, + o = this._events; + if (void 0 !== o) r = r && void 0 === o.error; + else if (!r) return !1; + if (r) { + var a; + if ((t.length > 0 && (a = t[0]), a instanceof Error)) throw a; + var s = new Error( + 'Unhandled error.' + (a ? ' (' + a.message + ')' : '') ); - }), - (k.prototype.dyForXAxisLabel = function() { - var e = this.owner, - t = e.config, - n = this.getXAxisLabelPosition(); - return t.axis_rotated - ? n.isInner - ? '1.2em' - : -25 - (e.config.axis_x_inner ? 0 : this.getMaxTickWidth('x')) - : n.isInner - ? '-0.5em' - : e.getHorizontalAxisHeight('x') - 10; - }), - (k.prototype.dyForYAxisLabel = function() { - var e = this.owner, - t = this.getYAxisLabelPosition(); - return e.config.axis_rotated - ? t.isInner - ? '-0.5em' - : '3em' - : t.isInner - ? '1.2em' - : -10 - - (e.config.axis_y_inner ? 0 : this.getMaxTickWidth('y') + 10); - }), - (k.prototype.dyForY2AxisLabel = function() { - var e = this.owner, - t = this.getY2AxisLabelPosition(); - return e.config.axis_rotated - ? t.isInner - ? '1.2em' - : '-2.2em' - : t.isInner - ? '-0.5em' - : 15 + - (e.config.axis_y2_inner ? 0 : this.getMaxTickWidth('y2') + 15); - }), - (k.prototype.textAnchorForXAxisLabel = function() { - var e = this.owner; - return this.textAnchorForAxisLabel( - !e.config.axis_rotated, - this.getXAxisLabelPosition() + throw ((s.context = a), s); + } + var c = o[e]; + if (void 0 === c) return !1; + if ('function' == typeof c) i(c, this, t); + else { + var u = c.length, + l = g(c, u); + for (n = 0; n < u; ++n) i(l[n], this, t); + } + return !0; + }), + (s.prototype.addListener = function(e, t) { + return l(this, e, t, !1); + }), + (s.prototype.on = s.prototype.addListener), + (s.prototype.prependListener = function(e, t) { + return l(this, e, t, !0); + }), + (s.prototype.once = function(e, t) { + if ('function' != typeof t) + throw new TypeError( + 'The "listener" argument must be of type Function. Received type ' + + typeof t ); - }), - (k.prototype.textAnchorForYAxisLabel = function() { - var e = this.owner; - return this.textAnchorForAxisLabel( - e.config.axis_rotated, - this.getYAxisLabelPosition() + return this.on(e, d(this, e, t)), this; + }), + (s.prototype.prependOnceListener = function(e, t) { + if ('function' != typeof t) + throw new TypeError( + 'The "listener" argument must be of type Function. Received type ' + + typeof t ); - }), - (k.prototype.textAnchorForY2AxisLabel = function() { - var e = this.owner; - return this.textAnchorForAxisLabel( - e.config.axis_rotated, - this.getY2AxisLabelPosition() + return this.prependListener(e, d(this, e, t)), this; + }), + (s.prototype.removeListener = function(e, t) { + var n, r, o, i, a; + if ('function' != typeof t) + throw new TypeError( + 'The "listener" argument must be of type Function. Received type ' + + typeof t ); - }), - (k.prototype.getMaxTickWidth = function(e, t) { - var n, - r, - o, - i, - a = this.owner, - s = 0; + if (void 0 === (r = this._events)) return this; + if (void 0 === (n = r[e])) return this; + if (n === t || n.listener === t) + 0 == --this._eventsCount + ? (this._events = Object.create(null)) + : (delete r[e], + r.removeListener && + this.emit('removeListener', e, n.listener || t)); + else if ('function' != typeof n) { + for (o = -1, i = n.length - 1; i >= 0; i--) + if (n[i] === t || n[i].listener === t) { + (a = n[i].listener), (o = i); + break; + } + if (o < 0) return this; + 0 === o + ? n.shift() + : (function(e, t) { + for (; t + 1 < e.length; t++) e[t] = e[t + 1]; + e.pop(); + })(n, o), + 1 === n.length && (r[e] = n[0]), + void 0 !== r.removeListener && + this.emit('removeListener', e, a || t); + } + return this; + }), + (s.prototype.off = s.prototype.removeListener), + (s.prototype.removeAllListeners = function(e) { + var t, n, r; + if (void 0 === (n = this._events)) return this; + if (void 0 === n.removeListener) return ( - (t && a.currentMaxTickWidths[e]) || - (a.svg && - ((n = a.filterTargetsToShow(a.data.targets)), - 'y' === e - ? ((r = a.y.copy().domain(a.getYDomain(n, 'y'))), - (o = this.getYAxis( - e, - r, - a.yOrient, - a.yAxisTickValues, - !1, - !0, - !0 - ))) - : 'y2' === e - ? ((r = a.y2.copy().domain(a.getYDomain(n, 'y2'))), - (o = this.getYAxis( - e, - r, - a.y2Orient, - a.y2AxisTickValues, - !1, - !0, - !0 - ))) - : ((r = a.x.copy().domain(a.getXDomain(n))), - (o = this.getXAxis( - r, - a.xOrient, - a.xAxisTickFormat, - a.xAxisTickValues, - !1, - !0, - !0 - )), - this.updateXAxisTickValues(n, o)), - (i = a.d3 - .select('body') - .append('div') - .classed('c3', !0)) - .append('svg') - .style('visibility', 'hidden') - .style('position', 'fixed') - .style('top', 0) - .style('left', 0) - .append('g') - .call(o) - .each(function() { - a.d3 - .select(this) - .selectAll('text') - .each(function() { - var e = l(this); - s < e.width && (s = e.width); - }), - i.remove(); - })), - (a.currentMaxTickWidths[e] = - s <= 0 ? a.currentMaxTickWidths[e] : s)), - a.currentMaxTickWidths[e] + 0 === arguments.length + ? ((this._events = Object.create(null)), + (this._eventsCount = 0)) + : void 0 !== n[e] && + (0 == --this._eventsCount + ? (this._events = Object.create(null)) + : delete n[e]), + this ); - }), - (k.prototype.updateLabels = function(e) { - var t = this.owner, - n = t.main.select('.' + M.axisX + ' .' + M.axisXLabel), - r = t.main.select('.' + M.axisY + ' .' + M.axisYLabel), - o = t.main.select('.' + M.axisY2 + ' .' + M.axisY2Label); - (e ? n.transition() : n) - .attr('x', this.xForXAxisLabel.bind(this)) - .attr('dx', this.dxForXAxisLabel.bind(this)) - .attr('dy', this.dyForXAxisLabel.bind(this)) - .text(this.textForXAxisLabel.bind(this)), - (e ? r.transition() : r) - .attr('x', this.xForYAxisLabel.bind(this)) - .attr('dx', this.dxForYAxisLabel.bind(this)) - .attr('dy', this.dyForYAxisLabel.bind(this)) - .text(this.textForYAxisLabel.bind(this)), - (e ? o.transition() : o) - .attr('x', this.xForY2AxisLabel.bind(this)) - .attr('dx', this.dxForY2AxisLabel.bind(this)) - .attr('dy', this.dyForY2AxisLabel.bind(this)) - .text(this.textForY2AxisLabel.bind(this)); - }), - (k.prototype.getPadding = function(e, t, n, r) { - var o = 'number' == typeof e ? e : e[t]; - return y(o) - ? 'ratio' === e.unit - ? e[t] * r - : this.convertPixelsToAxisPadding(o, r) - : n; - }), - (k.prototype.convertPixelsToAxisPadding = function(e, t) { - var n = this.owner; - return t * (e / (n.config.axis_rotated ? n.width : n.height)); - }), - (k.prototype.generateTickValues = function(e, t, n) { - var r, - o, - i, - a, - s, - c, - u, - l = e; - if (t) - if (1 === (r = h(t) ? t() : t)) l = [e[0]]; - else if (2 === r) l = [e[0], e[e.length - 1]]; - else if (r > 2) { - for ( - a = r - 2, - o = e[0], - s = ((i = e[e.length - 1]) - o) / (a + 1), - l = [o], - c = 0; - c < a; - c++ - ) - (u = +o + s * (c + 1)), l.push(n ? new Date(u) : u); - l.push(i); - } + if (0 === arguments.length) { + var o, + i = Object.keys(n); + for (r = 0; r < i.length; ++r) + 'removeListener' !== (o = i[r]) && this.removeAllListeners(o); return ( - n || - (l = l.sort(function(e, t) { - return e - t; - })), - l + this.removeAllListeners('removeListener'), + (this._events = Object.create(null)), + (this._eventsCount = 0), + this ); - }), - (k.prototype.generateTransitions = function(e) { - var t = this.owner.axes; - return { - axisX: e ? t.x.transition().duration(e) : t.x, - axisY: e ? t.y.transition().duration(e) : t.y, - axisY2: e ? t.y2.transition().duration(e) : t.y2, - axisSubX: e ? t.subx.transition().duration(e) : t.subx - }; - }), - (k.prototype.redraw = function(e, t) { - var n = this.owner, - r = e ? n.d3.transition().duration(e) : null; - n.axes.x.style('opacity', t ? 0 : 1).call(n.xAxis, r), - n.axes.y.style('opacity', t ? 0 : 1).call(n.yAxis, r), - n.axes.y2.style('opacity', t ? 0 : 1).call(n.y2Axis, r), - n.axes.subx.style('opacity', t ? 0 : 1).call(n.subXAxis, r); - }); - var S = { - version: '0.7.15', - chart: { - fn: o.prototype, - internal: { - fn: r.prototype, - axis: { fn: k.prototype, internal: { fn: w.prototype } } - } - }, - generate: function(e) { - return new o(e); } - }; - function A(e, t, n) { - var r = [0.01, 10]; - function o(e) { - return n(t(e)); + if ('function' == typeof (t = n[e])) this.removeListener(e, t); + else if (void 0 !== t) + for (r = t.length - 1; r >= 0; r--) this.removeListener(e, t[r]); + return this; + }), + (s.prototype.listeners = function(e) { + return p(this, e, !0); + }), + (s.prototype.rawListeners = function(e) { + return p(this, e, !1); + }), + (s.listenerCount = function(e, t) { + return 'function' == typeof e.listenerCount + ? e.listenerCount(t) + : h.call(e, t); + }), + (s.prototype.listenerCount = h), + (s.prototype.eventNames = function() { + return this._eventsCount > 0 ? r(this._events) : []; + }); + }, + function(e, t, n) { + var r = n(242), + o = (e.exports = Object.create(r)), + i = { tagName: 'name' }; + Object.keys(i).forEach(function(e) { + var t = i[e]; + Object.defineProperty(o, e, { + get: function() { + return this[t] || null; + }, + set: function(e) { + return (this[t] = e), e; } - return ( - t || (t = e.scaleLinear()).range(r), - n || ((n = e.scaleLog()).domain(r), n.nice()), - (o.domain = function(e) { - return arguments.length ? (t.domain(e), o) : t.domain(); - }), - (o.range = function(e) { - return arguments.length ? (n.range(e), o) : n.range(); - }), - (o.ticks = function(e) { - return (function(e, t, n) { - var r, o, i, a; - if (arguments.length < 3) n = 10; - else if (0 === n) return []; - (a = (t - e) / (o = n - 1)), - (i = e), - ((r = new Array(n))[0] = Math.pow(10, i)); - for (var s = 1; s < o; s++) (i += a), (r[s] = Math.pow(10, i)); - return (r[o] = Math.pow(10, t)), r; - })(-2, 1, e || 10).map(function(e) { - return t.invert(e); - }); - }), - (o.copy = function() { - return A(e, t.copy(), n.copy()); - }), - o - ); - } - function O(e) { - return ( - e / Math.pow(10, Math.ceil(Math.log(e) / Math.LN10 - 1e-12)) == 1 + }); + }); + }, + function(e, t, n) { + var r = n(241), + o = n(243); + function i(e, t) { + this.init(e, t); + } + function a(e, t) { + return o.getElementsByTagName(e, t, !0); + } + function s(e, t) { + return o.getElementsByTagName(e, t, !0, 1)[0]; + } + function c(e, t, n) { + return o.getText(o.getElementsByTagName(e, t, n, 1)).trim(); + } + function u(e, t, n, r, o) { + var i = c(n, r, o); + i && (e[t] = i); + } + n(126)(i, r), (i.prototype.init = r); + var l = function(e) { + return 'rss' === e || 'feed' === e || 'rdf:RDF' === e; + }; + (i.prototype.onend = function() { + var e, + t, + n = {}, + o = s(l, this.dom); + o && + ('feed' === o.name + ? ((t = o.children), + (n.type = 'atom'), + u(n, 'id', 'id', t), + u(n, 'title', 'title', t), + (e = s('link', t)) && + (e = e.attribs) && + (e = e.href) && + (n.link = e), + u(n, 'description', 'subtitle', t), + (e = c('updated', t)) && (n.updated = new Date(e)), + u(n, 'author', 'email', t, !0), + (n.items = a('entry', t).map(function(e) { + var t, + n = {}; + return ( + u(n, 'id', 'id', (e = e.children)), + u(n, 'title', 'title', e), + (t = s('link', e)) && + (t = t.attribs) && + (t = t.href) && + (n.link = t), + (t = c('summary', e) || c('content', e)) && + (n.description = t), + (t = c('updated', e)) && (n.pubDate = new Date(t)), + n + ); + }))) + : ((t = s('channel', o.children).children), + (n.type = o.name.substr(0, 3)), + (n.id = ''), + u(n, 'title', 'title', t), + u(n, 'link', 'link', t), + u(n, 'description', 'description', t), + (e = c('lastBuildDate', t)) && (n.updated = new Date(e)), + u(n, 'author', 'managingEditor', t, !0), + (n.items = a('item', o.children).map(function(e) { + var t, + n = {}; + return ( + u(n, 'id', 'guid', (e = e.children)), + u(n, 'title', 'title', e), + u(n, 'link', 'link', e), + u(n, 'description', 'description', e), + (t = c('pubDate', e)) && (n.pubDate = new Date(t)), + n + ); + })))), + (this.dom = n), + r.prototype._handleCallback.call( + this, + o ? null : Error("couldn't find root of feed") ); - } - (r.prototype.beforeInit = function() {}), - (r.prototype.afterInit = function() {}), - (r.prototype.init = function() { - var e = this, - t = e.config; - if ((e.initParams(), t.data_url)) - e.convertUrlToData( - t.data_url, - t.data_mimeType, - t.data_headers, - t.data_keys, - e.initWithData - ); - else if (t.data_json) - e.initWithData(e.convertJsonToData(t.data_json, t.data_keys)); - else if (t.data_rows) - e.initWithData(e.convertRowsToData(t.data_rows)); - else { - if (!t.data_columns) - throw Error('url or json or rows or columns is required.'); - e.initWithData(e.convertColumnsToData(t.data_columns)); - } - }), - (r.prototype.initParams = function() { - var e = this, - t = e.d3, - n = e.config; - (e.clipId = 'c3-' + +new Date() + '-clip'), - (e.clipIdForXAxis = e.clipId + '-xaxis'), - (e.clipIdForYAxis = e.clipId + '-yaxis'), - (e.clipIdForGrid = e.clipId + '-grid'), - (e.clipIdForSubchart = e.clipId + '-subchart'), - (e.clipPath = e.getClipPath(e.clipId)), - (e.clipPathForXAxis = e.getClipPath(e.clipIdForXAxis)), - (e.clipPathForYAxis = e.getClipPath(e.clipIdForYAxis)), - (e.clipPathForGrid = e.getClipPath(e.clipIdForGrid)), - (e.clipPathForSubchart = e.getClipPath(e.clipIdForSubchart)), - (e.dragStart = null), - (e.dragging = !1), - (e.flowing = !1), - (e.cancelClick = !1), - (e.mouseover = void 0), - (e.transiting = !1), - (e.color = e.generateColor()), - (e.levelColor = e.generateLevelColor()), - (e.dataTimeParse = (n.data_xLocaltime ? t.timeParse : t.utcParse)( - e.config.data_xFormat - )), - (e.axisTimeFormat = n.axis_x_localtime - ? t.timeFormat - : t.utcFormat), - (e.defaultAxisTimeFormat = function(e) { - return e.getMilliseconds() - ? t.timeFormat('.%L')(e) - : e.getSeconds() - ? t.timeFormat(':%S')(e) - : e.getMinutes() - ? t.timeFormat('%I:%M')(e) - : e.getHours() - ? t.timeFormat('%I %p')(e) - : (e.getDay() && 1 !== e.getDate()) || - 1 !== e.getDate() || - e.getMonth() - ? t.timeFormat('%-m/%-d')(e) - : t.timeFormat('%Y/%-m/%-d')(e); - }), - (e.hiddenTargetIds = []), - (e.hiddenLegendIds = []), - (e.focusedTargetIds = []), - (e.defocusedTargetIds = []), - (e.xOrient = n.axis_rotated - ? n.axis_x_inner - ? 'right' - : 'left' - : n.axis_x_inner - ? 'top' - : 'bottom'), - (e.yOrient = n.axis_rotated - ? n.axis_y_inner - ? 'top' - : 'bottom' - : n.axis_y_inner - ? 'right' - : 'left'), - (e.y2Orient = n.axis_rotated - ? n.axis_y2_inner - ? 'bottom' - : 'top' - : n.axis_y2_inner - ? 'left' - : 'right'), - (e.subXOrient = n.axis_rotated ? 'left' : 'bottom'), - (e.isLegendRight = 'right' === n.legend_position), - (e.isLegendInset = 'inset' === n.legend_position), - (e.isLegendTop = - 'top-left' === n.legend_inset_anchor || - 'top-right' === n.legend_inset_anchor), - (e.isLegendLeft = - 'top-left' === n.legend_inset_anchor || - 'bottom-left' === n.legend_inset_anchor), - (e.legendStep = 0), - (e.legendItemWidth = 0), - (e.legendItemHeight = 0), - (e.currentMaxTickWidths = { x: 0, y: 0, y2: 0 }), - (e.rotated_padding_left = 30), - (e.rotated_padding_right = - n.axis_rotated && !n.axis_x_show ? 0 : 30), - (e.rotated_padding_top = 5), - (e.withoutFadeIn = {}), - (e.intervalForObserveInserted = void 0), - (e.axes.subx = t.selectAll([])); - }), - (r.prototype.initChartElements = function() { - this.initBar && this.initBar(), - this.initLine && this.initLine(), - this.initArc && this.initArc(), - this.initGauge && this.initGauge(), - this.initText && this.initText(); - }), - (r.prototype.initWithData = function(e) { - var t, - n, - r = this, - o = r.d3, - i = r.config, - a = !0; - (r.axis = new k(r)), - i.bindto - ? 'function' == typeof i.bindto.node - ? (r.selectChart = i.bindto) - : (r.selectChart = o.select(i.bindto)) - : (r.selectChart = o.selectAll([])), - r.selectChart.empty() && - ((r.selectChart = o - .select(document.createElement('div')) - .style('opacity', 0)), - r.observeInserted(r.selectChart), - (a = !1)), - r.selectChart.html('').classed('c3', !0), - (r.data.xs = {}), - (r.data.targets = r.convertDataToTargets(e)), - i.data_filter && - (r.data.targets = r.data.targets.filter(i.data_filter)), - i.data_hide && - r.addHiddenTargetIds( - !0 === i.data_hide ? r.mapToIds(r.data.targets) : i.data_hide - ), - i.legend_hide && - r.addHiddenLegendIds( - !0 === i.legend_hide - ? r.mapToIds(r.data.targets) - : i.legend_hide - ), - r.isStanfordGraphType() && r.initStanfordData(), - r.updateSizes(), - r.updateScales(), - r.x.domain(o.extent(r.getXDomain(r.data.targets))), - r.y.domain(r.getYDomain(r.data.targets, 'y')), - r.y2.domain(r.getYDomain(r.data.targets, 'y2')), - r.subX.domain(r.x.domain()), - r.subY.domain(r.y.domain()), - r.subY2.domain(r.y2.domain()), - (r.orgXDomain = r.x.domain()), - (r.svg = r.selectChart - .append('svg') - .style('overflow', 'hidden') - .on('mouseenter', function() { - return i.onmouseover.call(r); - }) - .on('mouseleave', function() { - return i.onmouseout.call(r); - })), - r.config.svg_classname && - r.svg.attr('class', r.config.svg_classname), - (t = r.svg.append('defs')), - (r.clipChart = r.appendClip(t, r.clipId)), - (r.clipXAxis = r.appendClip(t, r.clipIdForXAxis)), - (r.clipYAxis = r.appendClip(t, r.clipIdForYAxis)), - (r.clipGrid = r.appendClip(t, r.clipIdForGrid)), - (r.clipSubchart = r.appendClip(t, r.clipIdForSubchart)), - r.updateSvgSize(), - (n = r.main = r.svg - .append('g') - .attr('transform', r.getTranslate('main'))), - r.initPie && r.initPie(), - r.initDragZoom && r.initDragZoom(), - i.subchart_show && r.initSubchart && r.initSubchart(), - r.initTooltip && r.initTooltip(), - r.initLegend && r.initLegend(), - r.initTitle && r.initTitle(), - r.initZoom && r.initZoom(), - r.isStanfordGraphType() && r.drawColorScale(), - i.subchart_show && r.initSubchartBrush && r.initSubchartBrush(), - n - .append('text') - .attr('class', M.text + ' ' + M.empty) - .attr('text-anchor', 'middle') - .attr('dominant-baseline', 'middle'), - r.initRegion(), - r.initGrid(), - n - .append('g') - .attr('clip-path', r.clipPath) - .attr('class', M.chart), - i.grid_lines_front && r.initGridLines(), - r.initStanfordElements(), - r.initEventRect(), - r.initChartElements(), - r.axis.init(), - r.updateTargets(r.data.targets), - i.axis_x_selection && - r.brush.selectionAsValue(r.getDefaultSelection()), - a && - (r.updateDimension(), - r.config.oninit.call(r), - r.redraw({ - withTransition: !1, - withTransform: !0, - withUpdateXDomain: !0, - withUpdateOrgXDomain: !0, - withTransitionForAxis: !1 - })), - r.bindResize(), - r.bindWindowFocus(), - (r.api.element = r.selectChart.node()); - }), - (r.prototype.smoothLines = function(e, t) { - var n = this; - 'grid' === t && - e.each(function() { - var e = n.d3.select(this), - t = e.attr('x1'), - r = e.attr('x2'), - o = e.attr('y1'), - i = e.attr('y2'); - e.attr({ - x1: Math.ceil(t), - x2: Math.ceil(r), - y1: Math.ceil(o), - y2: Math.ceil(i) - }); - }); - }), - (r.prototype.updateSizes = function() { - var e = this, - t = e.config, - n = e.legend ? e.getLegendHeight() : 0, - r = e.legend ? e.getLegendWidth() : 0, - o = e.isLegendRight || e.isLegendInset ? 0 : n, - i = e.hasArcType(), - a = t.axis_rotated || i ? 0 : e.getHorizontalAxisHeight('x'), - s = t.subchart_show && !i ? t.subchart_size_height + a : 0; - (e.currentWidth = e.getCurrentWidth()), - (e.currentHeight = e.getCurrentHeight()), - (e.margin = t.axis_rotated - ? { - top: - e.getHorizontalAxisHeight('y2') + - e.getCurrentPaddingTop(), - right: i ? 0 : e.getCurrentPaddingRight(), - bottom: - e.getHorizontalAxisHeight('y') + - o + - e.getCurrentPaddingBottom(), - left: s + (i ? 0 : e.getCurrentPaddingLeft()) - } - : { - top: 4 + e.getCurrentPaddingTop(), - right: i ? 0 : e.getCurrentPaddingRight(), - bottom: a + s + o + e.getCurrentPaddingBottom(), - left: i ? 0 : e.getCurrentPaddingLeft() - }), - (e.margin2 = t.axis_rotated - ? { - top: e.margin.top, - right: NaN, - bottom: 20 + o, - left: e.rotated_padding_left - } - : { - top: e.currentHeight - s - o, - right: NaN, - bottom: a + o, - left: e.margin.left - }), - (e.margin3 = { top: 0, right: NaN, bottom: 0, left: 0 }), - e.updateSizeForLegend && e.updateSizeForLegend(n, r), - (e.width = e.currentWidth - e.margin.left - e.margin.right), - (e.height = e.currentHeight - e.margin.top - e.margin.bottom), - e.width < 0 && (e.width = 0), - e.height < 0 && (e.height = 0), - (e.width2 = t.axis_rotated - ? e.margin.left - - e.rotated_padding_left - - e.rotated_padding_right - : e.width), - (e.height2 = t.axis_rotated - ? e.height - : e.currentHeight - e.margin2.top - e.margin2.bottom), - e.width2 < 0 && (e.width2 = 0), - e.height2 < 0 && (e.height2 = 0), - (e.arcWidth = e.width - (e.isLegendRight ? r + 10 : 0)), - (e.arcHeight = e.height - (e.isLegendRight ? 0 : 10)), - e.hasType('gauge') && - !t.gauge_fullCircle && - (e.arcHeight += e.height - e.getGaugeLabelHeight()), - e.updateRadius && e.updateRadius(), - e.isLegendRight && - i && - (e.margin3.left = e.arcWidth / 2 + 1.1 * e.radiusExpanded); - }), - (r.prototype.updateTargets = function(e) { - var t = this, - n = t.config; - t.updateTargetsForText(e), - t.updateTargetsForBar(e), - t.updateTargetsForLine(e), - t.hasArcType() && - t.updateTargetsForArc && - t.updateTargetsForArc(e), - n.subchart_show && - t.updateTargetsForSubchart && - t.updateTargetsForSubchart(e), - t.showTargets(); - }), - (r.prototype.showTargets = function() { - var e = this; - e.svg - .selectAll('.' + M.target) - .filter(function(t) { - return e.isTargetToShow(t.id); - }) - .transition() - .duration(e.config.transition_duration) - .style('opacity', 1); - }), - (r.prototype.redraw = function(e, t) { - var n, - r, - o, - i, - a, - s, - u, - l, - f, - d, - p, - h, - g, - m, - b, - y, - v, - _, - x, - w, - k, - S, - A, - O, - E, - T, - C, - L, - P, - D, - z, - N = this, - j = N.main, - R = N.d3, - I = N.config, - F = N.getShapeIndices(N.isAreaType), - q = N.getShapeIndices(N.isBarType), - B = N.getShapeIndices(N.isLineType), - H = N.hasArcType(), - Y = N.filterTargetsToShow(N.data.targets), - W = N.xv.bind(N); - if ( - ((n = c((e = e || {}), 'withY', !0)), - (r = c(e, 'withSubchart', !0)), - (o = c(e, 'withTransition', !0)), - (s = c(e, 'withTransform', !1)), - (u = c(e, 'withUpdateXDomain', !1)), - (l = c(e, 'withUpdateOrgXDomain', !1)), - (f = c(e, 'withTrimXDomain', !0)), - (g = c(e, 'withUpdateXAxis', u)), - (d = c(e, 'withLegend', !1)), - (p = c(e, 'withEventRect', !0)), - (h = c(e, 'withDimension', !0)), - (i = c(e, 'withTransitionForExit', o)), - (a = c(e, 'withTransitionForAxis', o)), - (x = o ? I.transition_duration : 0), - (w = i ? x : 0), - (k = a ? x : 0), - (t = t || N.axis.generateTransitions(k)), - d && I.legend_show - ? N.updateLegend(N.mapToIds(N.data.targets), e, t) - : h && N.updateDimension(!0), - N.isCategorized() && - 0 === Y.length && - N.x.domain([0, N.axes.x.selectAll('.tick').size()]), - Y.length - ? (N.updateXDomain(Y, u, l, f), - I.axis_x_tick_values || (T = N.axis.updateXAxisTickValues(Y))) - : (N.xAxis.tickValues([]), N.subXAxis.tickValues([])), - I.zoom_rescale && !e.flow && (P = N.x.orgDomain()), - N.y.domain(N.getYDomain(Y, 'y', P)), - N.y2.domain(N.getYDomain(Y, 'y2', P)), - !I.axis_y_tick_values && - I.axis_y_tick_count && - N.yAxis.tickValues( - N.axis.generateTickValues(N.y.domain(), I.axis_y_tick_count) - ), - !I.axis_y2_tick_values && - I.axis_y2_tick_count && - N.y2Axis.tickValues( - N.axis.generateTickValues(N.y2.domain(), I.axis_y2_tick_count) - ), - N.axis.redraw(k, H), - N.axis.updateLabels(o), - (u || g) && Y.length) - ) - if (I.axis_x_tick_culling && T) { - for (C = 1; C < T.length; C++) - if (T.length / C < I.axis_x_tick_culling_max) { - L = C; - break; - } - N.svg - .selectAll('.' + M.axisX + ' .tick text') - .each(function(e) { - var t = T.indexOf(e); - t >= 0 && - R.select(this).style('display', t % L ? 'none' : 'block'); - }); - } else - N.svg - .selectAll('.' + M.axisX + ' .tick text') - .style('display', 'block'); - (m = N.generateDrawArea ? N.generateDrawArea(F, !1) : void 0), - (b = N.generateDrawBar ? N.generateDrawBar(q) : void 0), - (y = N.generateDrawLine ? N.generateDrawLine(B, !1) : void 0), - (v = N.generateXYForText(F, q, B, !0)), - (_ = N.generateXYForText(F, q, B, !1)), - N.updateCircleY(), - (D = (N.config.axis_rotated ? N.circleY : N.circleX).bind(N)), - (z = (N.config.axis_rotated ? N.circleX : N.circleY).bind(N)), - n && - (N.subY.domain(N.getYDomain(Y, 'y')), - N.subY2.domain(N.getYDomain(Y, 'y2'))), - N.updateXgridFocus(), - j - .select('text.' + M.text + '.' + M.empty) - .attr('x', N.width / 2) - .attr('y', N.height / 2) - .text(I.data_empty_label_text) - .transition() - .style('opacity', Y.length ? 0 : 1), - p && N.redrawEventRect(), - N.updateGrid(x), - N.updateStanfordElements(x), - N.updateRegion(x), - N.updateBar(w), - N.updateLine(w), - N.updateArea(w), - N.updateCircle(D, z), - N.hasDataLabel() && N.updateText(v, _, w), - N.redrawTitle && N.redrawTitle(), - N.redrawArc && N.redrawArc(x, w, s), - I.subchart_show && - N.redrawSubchart && - N.redrawSubchart(r, t, x, w, F, q, B), - N.isStanfordGraphType() && N.drawColorScale(), - j - .selectAll('.' + M.selectedCircles) - .filter(N.isBarType.bind(N)) - .selectAll('circle') - .remove(), - e.flow && - (O = N.generateFlow({ - targets: Y, - flow: e.flow, - duration: e.flow.duration, - drawBar: b, - drawLine: y, - drawArea: m, - cx: D, - cy: z, - xv: W, - xForText: v, - yForText: _ - })), - x && N.isTabVisible() - ? ((E = R.transition().duration(x)), - (S = []), - [ - N.redrawBar(b, !0, E), - N.redrawLine(y, !0, E), - N.redrawArea(m, !0, E), - N.redrawCircle(D, z, !0, E), - N.redrawText(v, _, e.flow, !0, E), - N.redrawRegion(!0, E), - N.redrawGrid(!0, E) - ].forEach(function(e) { - e.forEach(function(e) { - S.push(e); - }); - }), - (A = N.generateWait()), - S.forEach(function(e) { - A.add(e); - }), - A(function() { - O && O(), I.onrendered && I.onrendered.call(N); - })) - : (N.redrawBar(b), - N.redrawLine(y), - N.redrawArea(m), - N.redrawCircle(D, z), - N.redrawText(v, _, e.flow), - N.redrawRegion(), - N.redrawGrid(), - O && O(), - I.onrendered && I.onrendered.call(N)), - N.mapToIds(N.data.targets).forEach(function(e) { - N.withoutFadeIn[e] = !0; - }); - }), - (r.prototype.updateAndRedraw = function(e) { - var t, - n = this, - r = n.config; - ((e = e || {}).withTransition = c(e, 'withTransition', !0)), - (e.withTransform = c(e, 'withTransform', !1)), - (e.withLegend = c(e, 'withLegend', !1)), - (e.withUpdateXDomain = c(e, 'withUpdateXDomain', !0)), - (e.withUpdateOrgXDomain = c(e, 'withUpdateOrgXDomain', !0)), - (e.withTransitionForExit = !1), - (e.withTransitionForTransform = c( - e, - 'withTransitionForTransform', - e.withTransition - )), - n.updateSizes(), - (e.withLegend && r.legend_show) || - ((t = n.axis.generateTransitions( - e.withTransitionForAxis ? r.transition_duration : 0 - )), - n.updateScales(), - n.updateSvgSize(), - n.transformAll(e.withTransitionForTransform, t)), - n.redraw(e, t); - }), - (r.prototype.redrawWithoutRescale = function() { - this.redraw({ - withY: !1, - withSubchart: !1, - withEventRect: !1, - withTransitionForAxis: !1 - }); - }), - (r.prototype.isTimeSeries = function() { - return 'timeseries' === this.config.axis_x_type; - }), - (r.prototype.isCategorized = function() { - return this.config.axis_x_type.indexOf('categor') >= 0; - }), - (r.prototype.isCustomX = function() { - var e = this.config; - return !this.isTimeSeries() && (e.data_x || v(e.data_xs)); - }), - (r.prototype.isTimeSeriesY = function() { - return 'timeseries' === this.config.axis_y_type; - }), - (r.prototype.getTranslate = function(e) { - var t, - n, - r = this, - o = r.config; - return ( - 'main' === e - ? ((t = i(r.margin.left)), (n = i(r.margin.top))) - : 'context' === e - ? ((t = i(r.margin2.left)), (n = i(r.margin2.top))) - : 'legend' === e - ? ((t = r.margin3.left), (n = r.margin3.top)) - : 'x' === e - ? ((t = 0), (n = o.axis_rotated ? 0 : r.height)) - : 'y' === e - ? ((t = 0), (n = o.axis_rotated ? r.height : 0)) - : 'y2' === e - ? ((t = o.axis_rotated ? 0 : r.width), - (n = o.axis_rotated ? 1 : 0)) - : 'subx' === e - ? ((t = 0), (n = o.axis_rotated ? 0 : r.height2)) - : 'arc' === e && - ((t = r.arcWidth / 2), - (n = r.arcHeight / 2 - (r.hasType('gauge') ? 6 : 0))), - 'translate(' + t + ',' + n + ')' - ); - }), - (r.prototype.initialOpacity = function(e) { - return null !== e.value && this.withoutFadeIn[e.id] ? 1 : 0; - }), - (r.prototype.initialOpacityForCircle = function(e) { - return null !== e.value && this.withoutFadeIn[e.id] - ? this.opacityForCircle(e) - : 0; - }), - (r.prototype.opacityForCircle = function(e) { - var t = - (h(this.config.point_show) - ? this.config.point_show(e) - : this.config.point_show) || this.isStanfordType(e) - ? 1 - : 0; - return y(e.value) ? (this.isScatterType(e) ? 0.5 : t) : 0; - }), - (r.prototype.opacityForText = function() { - return this.hasDataLabel() ? 1 : 0; - }), - (r.prototype.xx = function(e) { - return e ? this.x(e.x) : null; - }), - (r.prototype.xvCustom = function(e, t) { - var n = this, - r = t ? e[t] : e.value; - return ( - n.isTimeSeries() - ? (r = n.parseDate(e.value)) - : n.isCategorized() && - 'string' == typeof e.value && - (r = n.config.axis_x_categories.indexOf(e.value)), - Math.ceil(n.x(r)) - ); - }), - (r.prototype.yvCustom = function(e, t) { - var n = e.axis && 'y2' === e.axis ? this.y2 : this.y, - r = t ? e[t] : e.value; - return Math.ceil(n(r)); - }), - (r.prototype.xv = function(e) { - var t = this, - n = e.value; - return ( - t.isTimeSeries() - ? (n = t.parseDate(e.value)) - : t.isCategorized() && - 'string' == typeof e.value && - (n = t.config.axis_x_categories.indexOf(e.value)), - Math.ceil(t.x(n)) - ); - }), - (r.prototype.yv = function(e) { - var t = e.axis && 'y2' === e.axis ? this.y2 : this.y; - return Math.ceil(t(e.value)); - }), - (r.prototype.subxx = function(e) { - return e ? this.subX(e.x) : null; - }), - (r.prototype.transformMain = function(e, t) { - var n, - r, - o, - i = this; - t && t.axisX - ? (n = t.axisX) - : ((n = i.main.select('.' + M.axisX)), e && (n = n.transition())), - t && t.axisY - ? (r = t.axisY) - : ((r = i.main.select('.' + M.axisY)), - e && (r = r.transition())), - t && t.axisY2 - ? (o = t.axisY2) - : ((o = i.main.select('.' + M.axisY2)), - e && (o = o.transition())), - (e ? i.main.transition() : i.main).attr( - 'transform', - i.getTranslate('main') - ), - n.attr('transform', i.getTranslate('x')), - r.attr('transform', i.getTranslate('y')), - o.attr('transform', i.getTranslate('y2')), - i.main - .select('.' + M.chartArcs) - .attr('transform', i.getTranslate('arc')); - }), - (r.prototype.transformAll = function(e, t) { - var n = this; - n.transformMain(e, t), - n.config.subchart_show && n.transformContext(e, t), - n.legend && n.transformLegend(e); - }), - (r.prototype.updateSvgSize = function() { - var e = this, - t = e.svg.select('.'.concat(M.brush, ' .overlay')); - e.svg.attr('width', e.currentWidth).attr('height', e.currentHeight), - e.svg - .selectAll(['#' + e.clipId, '#' + e.clipIdForGrid]) - .select('rect') - .attr('width', e.width) - .attr('height', e.height), - e.svg - .select('#' + e.clipIdForXAxis) - .select('rect') - .attr('x', e.getXAxisClipX.bind(e)) - .attr('y', e.getXAxisClipY.bind(e)) - .attr('width', e.getXAxisClipWidth.bind(e)) - .attr('height', e.getXAxisClipHeight.bind(e)), - e.svg - .select('#' + e.clipIdForYAxis) - .select('rect') - .attr('x', e.getYAxisClipX.bind(e)) - .attr('y', e.getYAxisClipY.bind(e)) - .attr('width', e.getYAxisClipWidth.bind(e)) - .attr('height', e.getYAxisClipHeight.bind(e)), - e.svg - .select('#' + e.clipIdForSubchart) - .select('rect') - .attr('width', e.width) - .attr('height', (t.size() && t.attr('height')) || 0), - e.selectChart.style('max-height', e.currentHeight + 'px'); - }), - (r.prototype.updateDimension = function(e) { - var t = this; - e || - (t.config.axis_rotated - ? (t.axes.x.call(t.xAxis), t.axes.subx.call(t.subXAxis)) - : (t.axes.y.call(t.yAxis), t.axes.y2.call(t.y2Axis))), - t.updateSizes(), - t.updateScales(), - t.updateSvgSize(), - t.transformAll(!1); - }), - (r.prototype.observeInserted = function(e) { - var t, - n = this; - 'undefined' != typeof MutationObserver - ? (t = new MutationObserver(function(r) { - r.forEach(function(r) { - 'childList' === r.type && - r.previousSibling && - (t.disconnect(), - (n.intervalForObserveInserted = window.setInterval( - function() { - e.node().parentNode && - (window.clearInterval(n.intervalForObserveInserted), - n.updateDimension(), - n.brush && n.brush.update(), - n.config.oninit.call(n), - n.redraw({ - withTransform: !0, - withUpdateXDomain: !0, - withUpdateOrgXDomain: !0, - withTransition: !1, - withTransitionForTransform: !1, - withLegend: !0 - }), - e.transition().style('opacity', 1)); - }, - 10 - ))); - }); - })).observe(e.node(), { - attributes: !0, - childList: !0, - characterData: !0 + }), + (e.exports = i); + }, + function(e, t, n) { + var r = n(105), + o = n(606), + i = r.isTag; + e.exports = { + getInnerHTML: function(e, t) { + return e.children + ? e.children + .map(function(e) { + return o(e, t); }) - : window.console.error('MutationObserver not defined.'); - }), - (r.prototype.bindResize = function() { - var e = this, - t = e.config; - if ( - ((e.resizeFunction = e.generateResize()), - e.resizeFunction.add(function() { - t.onresize.call(e); - }), - t.resize_auto && - e.resizeFunction.add(function() { - void 0 !== e.resizeTimeout && - window.clearTimeout(e.resizeTimeout), - (e.resizeTimeout = window.setTimeout(function() { - delete e.resizeTimeout, - e.updateAndRedraw({ - withUpdateXDomain: !1, - withUpdateOrgXDomain: !1, - withTransition: !1, - withTransitionForTransform: !1, - withLegend: !0 - }), - e.brush && e.brush.update(); - }, 100)); - }), - e.resizeFunction.add(function() { - t.onresized.call(e); - }), - (e.resizeIfElementDisplayed = function() { - null != e.api && - e.api.element.offsetParent && - e.resizeFunction(); - }), - window.attachEvent) - ) - window.attachEvent('onresize', e.resizeIfElementDisplayed); - else if (window.addEventListener) - window.addEventListener('resize', e.resizeIfElementDisplayed, !1); - else { - var n = window.onresize; - n - ? (n.add && n.remove) || - (n = e.generateResize()).add(window.onresize) - : (n = e.generateResize()), - n.add(e.resizeFunction), - (window.onresize = function() { - e.api.element.offsetParent && n(); - }); + .join('') + : ''; + }, + getOuterHTML: o, + getText: function e(t) { + if (Array.isArray(t)) return t.map(e).join(''); + if (i(t)) return 'br' === t.name ? '\n' : e(t.children); + if (t.type === r.CDATA) return e(t.children); + if (t.type === r.Text) return t.data; + return ''; + } + }; + }, + function(e, t, n) { + var r = n(607), + o = n(608), + i = n(612); + (i.elementNames.__proto__ = null), (i.attributeNames.__proto__ = null); + var a = { + __proto__: null, + style: !0, + script: !0, + xmp: !0, + iframe: !0, + noembed: !0, + noframes: !0, + plaintext: !0, + noscript: !0 + }; + var s = { + __proto__: null, + area: !0, + base: !0, + basefont: !0, + br: !0, + col: !0, + command: !0, + embed: !0, + frame: !0, + hr: !0, + img: !0, + input: !0, + isindex: !0, + keygen: !0, + link: !0, + meta: !0, + param: !0, + source: !0, + track: !0, + wbr: !0 + }, + c = (e.exports = function(e, t) { + Array.isArray(e) || e.cheerio || (e = [e]), (t = t || {}); + for (var n = '', o = 0; o < e.length; o++) { + var i = e[o]; + 'root' === i.type + ? (n += c(i.children, t)) + : r.isTag(i) + ? (n += l(i, t)) + : i.type === r.Directive + ? (n += f(i)) + : i.type === r.Comment + ? (n += h(i)) + : i.type === r.CDATA + ? (n += p(i)) + : (n += d(i, t)); + } + return n; + }); + const u = [ + 'mi', + 'mo', + 'mn', + 'ms', + 'mtext', + 'annotation-xml', + 'foreignObject', + 'desc', + 'title' + ]; + function l(e, t) { + 'foreign' === t.xmlMode && + ((e.name = i.elementNames[e.name] || e.name), + e.parent && + u.indexOf(e.parent.name) >= 0 && + (t = Object.assign({}, t, { xmlMode: !1 }))), + !t.xmlMode && + ['svg', 'math'].indexOf(e.name) >= 0 && + (t = Object.assign({}, t, { xmlMode: 'foreign' })); + var n = '<' + e.name, + r = (function(e, t) { + if (e) { + var n, + r = ''; + for (var a in e) + (n = e[a]), + r && (r += ' '), + 'foreign' === t.xmlMode && (a = i.attributeNames[a] || a), + (r += a), + ((null !== n && '' !== n) || t.xmlMode) && + (r += + '="' + + (t.decodeEntities + ? o.encodeXML(n) + : n.replace(/\"/g, '"')) + + '"'); + return r; } - }), - (r.prototype.bindWindowFocus = function() { - var e = this; - this.windowFocusHandler || - ((this.windowFocusHandler = function() { - e.redraw(); - }), - window.addEventListener('focus', this.windowFocusHandler)); - }), - (r.prototype.unbindWindowFocus = function() { - window.removeEventListener('focus', this.windowFocusHandler), - delete this.windowFocusHandler; - }), - (r.prototype.generateResize = function() { - var e = []; - function t() { - e.forEach(function(e) { - e(); - }); + })(e.attribs, t); + return ( + r && (n += ' ' + r), + !t.xmlMode || (e.children && 0 !== e.children.length) + ? ((n += '>'), + e.children && (n += c(e.children, t)), + (s[e.name] && !t.xmlMode) || (n += '')) + : (n += '/>'), + n + ); + } + function f(e) { + return '<' + e.data + '>'; + } + function d(e, t) { + var n = e.data || ''; + return ( + !t.decodeEntities || + (e.parent && e.parent.name in a) || + (n = o.encodeXML(n)), + n + ); + } + function p(e) { + return ''; + } + function h(e) { + return '\x3c!--' + e.data + '--\x3e'; + } + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.isTag = function(e) { + return 'tag' === e.type || 'script' === e.type || 'style' === e.type; + }), + (t.Text = 'text'), + (t.Directive = 'directive'), + (t.Comment = 'comment'), + (t.Script = 'script'), + (t.Style = 'style'), + (t.Tag = 'tag'), + (t.CDATA = 'cdata'), + (t.Doctype = 'doctype'); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(244), + o = n(247); + (t.decode = function(e, t) { + return (!t || t <= 0 ? r.decodeXML : r.decodeHTML)(e); + }), + (t.decodeStrict = function(e, t) { + return (!t || t <= 0 ? r.decodeXML : r.decodeHTMLStrict)(e); + }), + (t.encode = function(e, t) { + return (!t || t <= 0 ? o.encodeXML : o.encodeHTML)(e); + }); + var i = n(247); + (t.encodeXML = i.encodeXML), + (t.encodeHTML = i.encodeHTML), + (t.escape = i.escape), + (t.encodeHTML4 = i.encodeHTML), + (t.encodeHTML5 = i.encodeHTML); + var a = n(244); + (t.decodeXML = a.decodeXML), + (t.decodeHTML = a.decodeHTML), + (t.decodeHTMLStrict = a.decodeHTMLStrict), + (t.decodeHTML4 = a.decodeHTML), + (t.decodeHTML5 = a.decodeHTML), + (t.decodeHTML4Strict = a.decodeHTMLStrict), + (t.decodeHTML5Strict = a.decodeHTMLStrict), + (t.decodeXMLStrict = a.decodeXML); + }, + function(e) { + e.exports = JSON.parse( + '{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}' + ); + }, + function(e, t, n) { + 'use strict'; + var r = + (this && this.__importDefault) || + function(e) { + return e && e.__esModule ? e : { default: e }; + }; + Object.defineProperty(t, '__esModule', { value: !0 }); + var o = r(n(611)); + t.default = function(e) { + if ((e >= 55296 && e <= 57343) || e > 1114111) return '�'; + e in o.default && (e = o.default[e]); + var t = ''; + return ( + e > 65535 && + ((e -= 65536), + (t += String.fromCharCode(((e >>> 10) & 1023) | 55296)), + (e = 56320 | (1023 & e))), + (t += String.fromCharCode(e)) + ); + }; + }, + function(e) { + e.exports = JSON.parse( + '{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}' + ); + }, + function(e) { + e.exports = JSON.parse( + '{"elementNames":{"altglyph":"altGlyph","altglyphdef":"altGlyphDef","altglyphitem":"altGlyphItem","animatecolor":"animateColor","animatemotion":"animateMotion","animatetransform":"animateTransform","clippath":"clipPath","feblend":"feBlend","fecolormatrix":"feColorMatrix","fecomponenttransfer":"feComponentTransfer","fecomposite":"feComposite","feconvolvematrix":"feConvolveMatrix","fediffuselighting":"feDiffuseLighting","fedisplacementmap":"feDisplacementMap","fedistantlight":"feDistantLight","fedropshadow":"feDropShadow","feflood":"feFlood","fefunca":"feFuncA","fefuncb":"feFuncB","fefuncg":"feFuncG","fefuncr":"feFuncR","fegaussianblur":"feGaussianBlur","feimage":"feImage","femerge":"feMerge","femergenode":"feMergeNode","femorphology":"feMorphology","feoffset":"feOffset","fepointlight":"fePointLight","fespecularlighting":"feSpecularLighting","fespotlight":"feSpotLight","fetile":"feTile","feturbulence":"feTurbulence","foreignobject":"foreignObject","glyphref":"glyphRef","lineargradient":"linearGradient","radialgradient":"radialGradient","textpath":"textPath"},"attributeNames":{"definitionurl":"definitionURL","attributename":"attributeName","attributetype":"attributeType","basefrequency":"baseFrequency","baseprofile":"baseProfile","calcmode":"calcMode","clippathunits":"clipPathUnits","diffuseconstant":"diffuseConstant","edgemode":"edgeMode","filterunits":"filterUnits","glyphref":"glyphRef","gradienttransform":"gradientTransform","gradientunits":"gradientUnits","kernelmatrix":"kernelMatrix","kernelunitlength":"kernelUnitLength","keypoints":"keyPoints","keysplines":"keySplines","keytimes":"keyTimes","lengthadjust":"lengthAdjust","limitingconeangle":"limitingConeAngle","markerheight":"markerHeight","markerunits":"markerUnits","markerwidth":"markerWidth","maskcontentunits":"maskContentUnits","maskunits":"maskUnits","numoctaves":"numOctaves","pathlength":"pathLength","patterncontentunits":"patternContentUnits","patterntransform":"patternTransform","patternunits":"patternUnits","pointsatx":"pointsAtX","pointsaty":"pointsAtY","pointsatz":"pointsAtZ","preservealpha":"preserveAlpha","preserveaspectratio":"preserveAspectRatio","primitiveunits":"primitiveUnits","refx":"refX","refy":"refY","repeatcount":"repeatCount","repeatdur":"repeatDur","requiredextensions":"requiredExtensions","requiredfeatures":"requiredFeatures","specularconstant":"specularConstant","specularexponent":"specularExponent","spreadmethod":"spreadMethod","startoffset":"startOffset","stddeviation":"stdDeviation","stitchtiles":"stitchTiles","surfacescale":"surfaceScale","systemlanguage":"systemLanguage","tablevalues":"tableValues","targetx":"targetX","targety":"targetY","textlength":"textLength","viewbox":"viewBox","viewtarget":"viewTarget","xchannelselector":"xChannelSelector","ychannelselector":"yChannelSelector","zoomandpan":"zoomAndPan"}}' + ); + }, + function(e, t) { + var n = (t.getChildren = function(e) { + return e.children; + }), + r = (t.getParent = function(e) { + return e.parent; + }); + (t.getSiblings = function(e) { + var t = r(e); + return t ? n(t) : [e]; + }), + (t.getAttributeValue = function(e, t) { + return e.attribs && e.attribs[t]; + }), + (t.hasAttrib = function(e, t) { + return !!e.attribs && hasOwnProperty.call(e.attribs, t); + }), + (t.getName = function(e) { + return e.name; + }); + }, + function(e, t) { + (t.removeElement = function(e) { + if ( + (e.prev && (e.prev.next = e.next), + e.next && (e.next.prev = e.prev), + e.parent) + ) { + var t = e.parent.children; + t.splice(t.lastIndexOf(e), 1); + } + }), + (t.replaceElement = function(e, t) { + var n = (t.prev = e.prev); + n && (n.next = t); + var r = (t.next = e.next); + r && (r.prev = t); + var o = (t.parent = e.parent); + if (o) { + var i = o.children; + i[i.lastIndexOf(e)] = t; + } + }), + (t.appendChild = function(e, t) { + if (((t.parent = e), 1 !== e.children.push(t))) { + var n = e.children[e.children.length - 2]; + (n.next = t), (t.prev = n), (t.next = null); + } + }), + (t.append = function(e, t) { + var n = e.parent, + r = e.next; + if (((t.next = r), (t.prev = e), (e.next = t), (t.parent = n), r)) { + if (((r.prev = t), n)) { + var o = n.children; + o.splice(o.lastIndexOf(r), 0, t); } - return ( - (t.add = function(t) { - e.push(t); - }), - (t.remove = function(t) { - for (var n = 0; n < e.length; n++) - if (e[n] === t) { - e.splice(n, 1); - break; - } - }), - t - ); - }), - (r.prototype.endall = function(e, t) { - var n = 0; - e.each(function() { - ++n; - }).on('end', function() { - --n || t.apply(this, arguments); - }); - }), - (r.prototype.generateWait = function() { - var e = this, - t = [], - n = function(n) { - var r = setInterval(function() { - if (e.isTabVisible()) { - var o = 0; - t.forEach(function(e) { - if (e.empty()) o += 1; - else - try { - e.transition(); - } catch (e) { - o += 1; - } - }), - o === t.length && (clearInterval(r), n && n()); - } - }, 50); - }; - return ( - (n.add = function(e) { - t.push(e); - }), - n - ); - }), - (r.prototype.parseDate = function(t) { - var n; - return ( - t instanceof Date - ? (n = t) - : 'string' == typeof t - ? (n = this.dataTimeParse(t)) - : 'object' === e(t) - ? (n = new Date(+t)) - : 'number' != typeof t || isNaN(t) || (n = new Date(+t)), - (n && !isNaN(+n)) || - window.console.error( - "Failed to parse x '" + t + "' to Date object" - ), - n - ); - }), - (r.prototype.isTabVisible = function() { - return !document.hidden; - }), - (r.prototype.getPathBox = u), - (r.prototype.CLASS = M), - 'SVGPathSeg' in window || - ((window.SVGPathSeg = function(e, t, n) { - (this.pathSegType = e), - (this.pathSegTypeAsLetter = t), - (this._owningPathSegList = n); - }), - (window.SVGPathSeg.prototype.classname = 'SVGPathSeg'), - (window.SVGPathSeg.PATHSEG_UNKNOWN = 0), - (window.SVGPathSeg.PATHSEG_CLOSEPATH = 1), - (window.SVGPathSeg.PATHSEG_MOVETO_ABS = 2), - (window.SVGPathSeg.PATHSEG_MOVETO_REL = 3), - (window.SVGPathSeg.PATHSEG_LINETO_ABS = 4), - (window.SVGPathSeg.PATHSEG_LINETO_REL = 5), - (window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS = 6), - (window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL = 7), - (window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS = 8), - (window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL = 9), - (window.SVGPathSeg.PATHSEG_ARC_ABS = 10), - (window.SVGPathSeg.PATHSEG_ARC_REL = 11), - (window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS = 12), - (window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL = 13), - (window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS = 14), - (window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL = 15), - (window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16), - (window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17), - (window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18), - (window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19), - (window.SVGPathSeg.prototype._segmentChanged = function() { - this._owningPathSegList && - this._owningPathSegList.segmentChanged(this); - }), - (window.SVGPathSegClosePath = function(e) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_CLOSEPATH, - 'z', - e - ); - }), - (window.SVGPathSegClosePath.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegClosePath.prototype.toString = function() { - return '[object SVGPathSegClosePath]'; - }), - (window.SVGPathSegClosePath.prototype._asPathString = function() { - return this.pathSegTypeAsLetter; - }), - (window.SVGPathSegClosePath.prototype.clone = function() { - return new window.SVGPathSegClosePath(void 0); - }), - (window.SVGPathSegMovetoAbs = function(e, t, n) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_MOVETO_ABS, - 'M', - e - ), - (this._x = t), - (this._y = n); - }), - (window.SVGPathSegMovetoAbs.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegMovetoAbs.prototype.toString = function() { - return '[object SVGPathSegMovetoAbs]'; - }), - (window.SVGPathSegMovetoAbs.prototype._asPathString = function() { - return this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y; - }), - (window.SVGPathSegMovetoAbs.prototype.clone = function() { - return new window.SVGPathSegMovetoAbs(void 0, this._x, this._y); - }), - Object.defineProperty(window.SVGPathSegMovetoAbs.prototype, 'x', { - get: function() { - return this._x; - }, - set: function(e) { - (this._x = e), this._segmentChanged(); - }, - enumerable: !0 - }), - Object.defineProperty(window.SVGPathSegMovetoAbs.prototype, 'y', { - get: function() { - return this._y; - }, - set: function(e) { - (this._y = e), this._segmentChanged(); - }, - enumerable: !0 - }), - (window.SVGPathSegMovetoRel = function(e, t, n) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_MOVETO_REL, - 'm', - e - ), - (this._x = t), - (this._y = n); - }), - (window.SVGPathSegMovetoRel.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegMovetoRel.prototype.toString = function() { - return '[object SVGPathSegMovetoRel]'; - }), - (window.SVGPathSegMovetoRel.prototype._asPathString = function() { - return this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y; - }), - (window.SVGPathSegMovetoRel.prototype.clone = function() { - return new window.SVGPathSegMovetoRel(void 0, this._x, this._y); - }), - Object.defineProperty(window.SVGPathSegMovetoRel.prototype, 'x', { - get: function() { - return this._x; - }, - set: function(e) { - (this._x = e), this._segmentChanged(); - }, - enumerable: !0 - }), - Object.defineProperty(window.SVGPathSegMovetoRel.prototype, 'y', { - get: function() { - return this._y; - }, - set: function(e) { - (this._y = e), this._segmentChanged(); - }, - enumerable: !0 - }), - (window.SVGPathSegLinetoAbs = function(e, t, n) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_LINETO_ABS, - 'L', - e - ), - (this._x = t), - (this._y = n); - }), - (window.SVGPathSegLinetoAbs.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegLinetoAbs.prototype.toString = function() { - return '[object SVGPathSegLinetoAbs]'; - }), - (window.SVGPathSegLinetoAbs.prototype._asPathString = function() { - return this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y; - }), - (window.SVGPathSegLinetoAbs.prototype.clone = function() { - return new window.SVGPathSegLinetoAbs(void 0, this._x, this._y); - }), - Object.defineProperty(window.SVGPathSegLinetoAbs.prototype, 'x', { - get: function() { - return this._x; - }, - set: function(e) { - (this._x = e), this._segmentChanged(); - }, - enumerable: !0 - }), - Object.defineProperty(window.SVGPathSegLinetoAbs.prototype, 'y', { - get: function() { - return this._y; - }, - set: function(e) { - (this._y = e), this._segmentChanged(); - }, - enumerable: !0 - }), - (window.SVGPathSegLinetoRel = function(e, t, n) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_LINETO_REL, - 'l', - e - ), - (this._x = t), - (this._y = n); - }), - (window.SVGPathSegLinetoRel.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegLinetoRel.prototype.toString = function() { - return '[object SVGPathSegLinetoRel]'; - }), - (window.SVGPathSegLinetoRel.prototype._asPathString = function() { - return this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y; - }), - (window.SVGPathSegLinetoRel.prototype.clone = function() { - return new window.SVGPathSegLinetoRel(void 0, this._x, this._y); - }), - Object.defineProperty(window.SVGPathSegLinetoRel.prototype, 'x', { - get: function() { - return this._x; - }, - set: function(e) { - (this._x = e), this._segmentChanged(); - }, - enumerable: !0 - }), - Object.defineProperty(window.SVGPathSegLinetoRel.prototype, 'y', { - get: function() { - return this._y; - }, - set: function(e) { - (this._y = e), this._segmentChanged(); - }, - enumerable: !0 - }), - (window.SVGPathSegCurvetoCubicAbs = function(e, t, n, r, o, i, a) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS, - 'C', - e - ), - (this._x = t), - (this._y = n), - (this._x1 = r), - (this._y1 = o), - (this._x2 = i), - (this._y2 = a); - }), - (window.SVGPathSegCurvetoCubicAbs.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegCurvetoCubicAbs.prototype.toString = function() { - return '[object SVGPathSegCurvetoCubicAbs]'; - }), - (window.SVGPathSegCurvetoCubicAbs.prototype._asPathString = function() { - return ( - this.pathSegTypeAsLetter + - ' ' + - this._x1 + - ' ' + - this._y1 + - ' ' + - this._x2 + - ' ' + - this._y2 + - ' ' + - this._x + - ' ' + - this._y - ); - }), - (window.SVGPathSegCurvetoCubicAbs.prototype.clone = function() { - return new window.SVGPathSegCurvetoCubicAbs( - void 0, - this._x, - this._y, - this._x1, - this._y1, - this._x2, - this._y2 - ); - }), - Object.defineProperty( - window.SVGPathSegCurvetoCubicAbs.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(e) { - (this._x = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicAbs.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(e) { - (this._y = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicAbs.prototype, - 'x1', - { - get: function() { - return this._x1; - }, - set: function(e) { - (this._x1 = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicAbs.prototype, - 'y1', - { - get: function() { - return this._y1; - }, - set: function(e) { - (this._y1 = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicAbs.prototype, - 'x2', - { - get: function() { - return this._x2; - }, - set: function(e) { - (this._x2 = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicAbs.prototype, - 'y2', - { - get: function() { - return this._y2; - }, - set: function(e) { - (this._y2 = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegCurvetoCubicRel = function(e, t, n, r, o, i, a) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL, - 'c', - e - ), - (this._x = t), - (this._y = n), - (this._x1 = r), - (this._y1 = o), - (this._x2 = i), - (this._y2 = a); - }), - (window.SVGPathSegCurvetoCubicRel.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegCurvetoCubicRel.prototype.toString = function() { - return '[object SVGPathSegCurvetoCubicRel]'; - }), - (window.SVGPathSegCurvetoCubicRel.prototype._asPathString = function() { - return ( - this.pathSegTypeAsLetter + - ' ' + - this._x1 + - ' ' + - this._y1 + - ' ' + - this._x2 + - ' ' + - this._y2 + - ' ' + - this._x + - ' ' + - this._y - ); - }), - (window.SVGPathSegCurvetoCubicRel.prototype.clone = function() { - return new window.SVGPathSegCurvetoCubicRel( - void 0, - this._x, - this._y, - this._x1, - this._y1, - this._x2, - this._y2 - ); - }), - Object.defineProperty( - window.SVGPathSegCurvetoCubicRel.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(e) { - (this._x = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicRel.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(e) { - (this._y = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicRel.prototype, - 'x1', - { - get: function() { - return this._x1; - }, - set: function(e) { - (this._x1 = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicRel.prototype, - 'y1', - { - get: function() { - return this._y1; - }, - set: function(e) { - (this._y1 = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicRel.prototype, - 'x2', - { - get: function() { - return this._x2; - }, - set: function(e) { - (this._x2 = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicRel.prototype, - 'y2', - { - get: function() { - return this._y2; - }, - set: function(e) { - (this._y2 = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegCurvetoQuadraticAbs = function(e, t, n, r, o) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS, - 'Q', - e - ), - (this._x = t), - (this._y = n), - (this._x1 = r), - (this._y1 = o); - }), - (window.SVGPathSegCurvetoQuadraticAbs.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegCurvetoQuadraticAbs.prototype.toString = function() { - return '[object SVGPathSegCurvetoQuadraticAbs]'; - }), - (window.SVGPathSegCurvetoQuadraticAbs.prototype._asPathString = function() { - return ( - this.pathSegTypeAsLetter + - ' ' + - this._x1 + - ' ' + - this._y1 + - ' ' + - this._x + - ' ' + - this._y - ); - }), - (window.SVGPathSegCurvetoQuadraticAbs.prototype.clone = function() { - return new window.SVGPathSegCurvetoQuadraticAbs( - void 0, - this._x, - this._y, - this._x1, - this._y1 - ); - }), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticAbs.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(e) { - (this._x = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticAbs.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(e) { - (this._y = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticAbs.prototype, - 'x1', - { - get: function() { - return this._x1; - }, - set: function(e) { - (this._x1 = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticAbs.prototype, - 'y1', - { - get: function() { - return this._y1; - }, - set: function(e) { - (this._y1 = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegCurvetoQuadraticRel = function(e, t, n, r, o) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL, - 'q', - e - ), - (this._x = t), - (this._y = n), - (this._x1 = r), - (this._y1 = o); - }), - (window.SVGPathSegCurvetoQuadraticRel.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegCurvetoQuadraticRel.prototype.toString = function() { - return '[object SVGPathSegCurvetoQuadraticRel]'; - }), - (window.SVGPathSegCurvetoQuadraticRel.prototype._asPathString = function() { - return ( - this.pathSegTypeAsLetter + - ' ' + - this._x1 + - ' ' + - this._y1 + - ' ' + - this._x + - ' ' + - this._y - ); - }), - (window.SVGPathSegCurvetoQuadraticRel.prototype.clone = function() { - return new window.SVGPathSegCurvetoQuadraticRel( - void 0, - this._x, - this._y, - this._x1, - this._y1 - ); - }), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticRel.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(e) { - (this._x = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticRel.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(e) { - (this._y = e), this._segmentChanged(); - }, - enumerable: !0 + } else n && n.children.push(t); + }), + (t.prepend = function(e, t) { + var n = e.parent; + if (n) { + var r = n.children; + r.splice(r.lastIndexOf(e), 0, t); + } + e.prev && (e.prev.next = t), + (t.parent = n), + (t.prev = e.prev), + (t.next = e), + (e.prev = t); + }); + }, + function(e, t, n) { + var r = n(105).isTag; + function o(e, t, n, r) { + for ( + var i, a = [], s = 0, c = t.length; + s < c && + !(e(t[s]) && (a.push(t[s]), --r <= 0)) && + ((i = t[s].children), + !( + n && + i && + i.length > 0 && + ((i = o(e, i, n, r)), (a = a.concat(i)), (r -= i.length) <= 0) + )); + s++ + ); + return a; + } + e.exports = { + filter: function(e, t, n, r) { + Array.isArray(t) || (t = [t]); + ('number' == typeof r && isFinite(r)) || (r = 1 / 0); + return o(e, t, !1 !== n, r); + }, + find: o, + findOneChild: function(e, t) { + for (var n = 0, r = t.length; n < r; n++) if (e(t[n])) return t[n]; + return null; + }, + findOne: function e(t, n) { + var o = null; + for (var i = 0, a = n.length; i < a && !o; i++) + r(n[i]) && + (t(n[i]) + ? (o = n[i]) + : n[i].children.length > 0 && (o = e(t, n[i].children))); + return o; + }, + existsOne: function e(t, n) { + for (var o = 0, i = n.length; o < i; o++) + if ( + r(n[o]) && + (t(n[o]) || (n[o].children.length > 0 && e(t, n[o].children))) + ) + return !0; + return !1; + }, + findAll: function(e, t) { + var n = [], + o = t.slice(); + for (; o.length; ) { + var i = o.shift(); + r(i) && + (i.children && + i.children.length > 0 && + o.unshift.apply(o, i.children), + e(i) && n.push(i)); + } + return n; + } + }; + }, + function(e, t, n) { + var r = n(105), + o = (t.isTag = r.isTag); + t.testElement = function(e, t) { + for (var n in e) + if (e.hasOwnProperty(n)) { + if ('tag_name' === n) { + if (!o(t) || !e.tag_name(t.name)) return !1; + } else if ('tag_type' === n) { + if (!e.tag_type(t.type)) return !1; + } else if ('tag_contains' === n) { + if (o(t) || !e.tag_contains(t.data)) return !1; + } else if (!t.attribs || !e[n](t.attribs[n])) return !1; + } else; + return !0; + }; + var i = { + tag_name: function(e) { + return 'function' == typeof e + ? function(t) { + return o(t) && e(t.name); } - ), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticRel.prototype, - 'x1', - { - get: function() { - return this._x1; - }, - set: function(e) { - (this._x1 = e), this._segmentChanged(); - }, - enumerable: !0 + : '*' === e + ? o + : function(t) { + return o(t) && t.name === e; + }; + }, + tag_type: function(e) { + return 'function' == typeof e + ? function(t) { + return e(t.type); } - ), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticRel.prototype, - 'y1', - { - get: function() { - return this._y1; - }, - set: function(e) { - (this._y1 = e), this._segmentChanged(); - }, - enumerable: !0 + : function(t) { + return t.type === e; + }; + }, + tag_contains: function(e) { + return 'function' == typeof e + ? function(t) { + return !o(t) && e(t.data); } - ), - (window.SVGPathSegArcAbs = function(e, t, n, r, o, i, a, s) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_ARC_ABS, - 'A', - e - ), - (this._x = t), - (this._y = n), - (this._r1 = r), - (this._r2 = o), - (this._angle = i), - (this._largeArcFlag = a), - (this._sweepFlag = s); - }), - (window.SVGPathSegArcAbs.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegArcAbs.prototype.toString = function() { - return '[object SVGPathSegArcAbs]'; - }), - (window.SVGPathSegArcAbs.prototype._asPathString = function() { + : function(t) { + return !o(t) && t.data === e; + }; + } + }; + function a(e, t) { + return 'function' == typeof t + ? function(n) { + return n.attribs && t(n.attribs[e]); + } + : function(n) { + return n.attribs && n.attribs[e] === t; + }; + } + function s(e, t) { + return function(n) { + return e(n) || t(n); + }; + } + (t.getElements = function(e, t, n, r) { + var o = Object.keys(e).map(function(t) { + var n = e[t]; + return t in i ? i[t](n) : a(t, n); + }); + return 0 === o.length ? [] : this.filter(o.reduce(s), t, n, r); + }), + (t.getElementById = function(e, t, n) { + return ( + Array.isArray(t) || (t = [t]), this.findOne(a('id', e), t, !1 !== n) + ); + }), + (t.getElementsByTagName = function(e, t, n, r) { + return this.filter(i.tag_name(e), t, n, r); + }), + (t.getElementsByTagType = function(e, t, n, r) { + return this.filter(i.tag_type(e), t, n, r); + }); + }, + function(e, t) { + t.removeSubsets = function(e) { + for (var t, n, r, o = e.length; --o > -1; ) { + for (t = n = e[o], e[o] = null, r = !0; n; ) { + if (e.indexOf(n) > -1) { + (r = !1), e.splice(o, 1); + break; + } + n = n.parent; + } + r && (e[o] = t); + } + return e; + }; + var n = 1, + r = 2, + o = 4, + i = 8, + a = 16, + s = (t.compareDocumentPosition = function(e, t) { + var s, + c, + u, + l, + f, + d, + p = [], + h = []; + if (e === t) return 0; + for (s = e; s; ) p.unshift(s), (s = s.parent); + for (s = t; s; ) h.unshift(s), (s = s.parent); + for (d = 0; p[d] === h[d]; ) d++; + return 0 === d + ? n + : ((u = (c = p[d - 1]).children), + (l = p[d]), + (f = h[d]), + u.indexOf(l) > u.indexOf(f) + ? c === t + ? o | a + : o + : c === e + ? r | i + : r); + }); + t.uniqueSort = function(e) { + var t, + n, + i = e.length; + for (e = e.slice(); --i > -1; ) + (t = e[i]), (n = e.indexOf(t)) > -1 && n < i && e.splice(i, 1); + return ( + e.sort(function(e, t) { + var n = s(e, t); + return n & r ? -1 : n & o ? 1 : 0; + }), + e + ); + }; + }, + function(e, t, n) { + e.exports = o; + var r = n(248); + function o(e) { + r.call(this, new i(this), e); + } + function i(e) { + this.scope = e; + } + n(126)(o, r), (o.prototype.readable = !0); + var a = n(79).EVENTS; + Object.keys(a).forEach(function(e) { + if (0 === a[e]) + i.prototype['on' + e] = function() { + this.scope.emit(e); + }; + else if (1 === a[e]) + i.prototype['on' + e] = function(t) { + this.scope.emit(e, t); + }; + else { + if (2 !== a[e]) throw Error('wrong number of arguments!'); + i.prototype['on' + e] = function(t, n) { + this.scope.emit(e, t, n); + }; + } + }); + }, + function(e, t) {}, + function(e, t, n) { + 'use strict'; + var r = n(621).Buffer, + o = + r.isEncoding || + function(e) { + switch ((e = '' + e) && e.toLowerCase()) { + case 'hex': + case 'utf8': + case 'utf-8': + case 'ascii': + case 'binary': + case 'base64': + case 'ucs2': + case 'ucs-2': + case 'utf16le': + case 'utf-16le': + case 'raw': + return !0; + default: + return !1; + } + }; + function i(e) { + var t; + switch ( + ((this.encoding = (function(e) { + var t = (function(e) { + if (!e) return 'utf8'; + for (var t; ; ) + switch (e) { + case 'utf8': + case 'utf-8': + return 'utf8'; + case 'ucs2': + case 'ucs-2': + case 'utf16le': + case 'utf-16le': + return 'utf16le'; + case 'latin1': + case 'binary': + return 'latin1'; + case 'base64': + case 'ascii': + case 'hex': + return e; + default: + if (t) return; + (e = ('' + e).toLowerCase()), (t = !0); + } + })(e); + if ('string' != typeof t && (r.isEncoding === o || !o(e))) + throw new Error('Unknown encoding: ' + e); + return t || e; + })(e)), + this.encoding) + ) { + case 'utf16le': + (this.text = c), (this.end = u), (t = 4); + break; + case 'utf8': + (this.fillLast = s), (t = 4); + break; + case 'base64': + (this.text = l), (this.end = f), (t = 3); + break; + default: + return (this.write = d), void (this.end = p); + } + (this.lastNeed = 0), + (this.lastTotal = 0), + (this.lastChar = r.allocUnsafe(t)); + } + function a(e) { + return e <= 127 + ? 0 + : e >> 5 == 6 + ? 2 + : e >> 4 == 14 + ? 3 + : e >> 3 == 30 + ? 4 + : e >> 6 == 2 + ? -1 + : -2; + } + function s(e) { + var t = this.lastTotal - this.lastNeed, + n = (function(e, t, n) { + if (128 != (192 & t[0])) return (e.lastNeed = 0), '�'; + if (e.lastNeed > 1 && t.length > 1) { + if (128 != (192 & t[1])) return (e.lastNeed = 1), '�'; + if (e.lastNeed > 2 && t.length > 2 && 128 != (192 & t[2])) + return (e.lastNeed = 2), '�'; + } + })(this, e); + return void 0 !== n + ? n + : this.lastNeed <= e.length + ? (e.copy(this.lastChar, t, 0, this.lastNeed), + this.lastChar.toString(this.encoding, 0, this.lastTotal)) + : (e.copy(this.lastChar, t, 0, e.length), + void (this.lastNeed -= e.length)); + } + function c(e, t) { + if ((e.length - t) % 2 == 0) { + var n = e.toString('utf16le', t); + if (n) { + var r = n.charCodeAt(n.length - 1); + if (r >= 55296 && r <= 56319) return ( - this.pathSegTypeAsLetter + - ' ' + - this._r1 + - ' ' + - this._r2 + - ' ' + - this._angle + - ' ' + - (this._largeArcFlag ? '1' : '0') + - ' ' + - (this._sweepFlag ? '1' : '0') + - ' ' + - this._x + - ' ' + - this._y - ); - }), - (window.SVGPathSegArcAbs.prototype.clone = function() { - return new window.SVGPathSegArcAbs( - void 0, - this._x, - this._y, - this._r1, - this._r2, - this._angle, - this._largeArcFlag, - this._sweepFlag + (this.lastNeed = 2), + (this.lastTotal = 4), + (this.lastChar[0] = e[e.length - 2]), + (this.lastChar[1] = e[e.length - 1]), + n.slice(0, -1) ); - }), - Object.defineProperty(window.SVGPathSegArcAbs.prototype, 'x', { - get: function() { - return this._x; - }, - set: function(e) { - (this._x = e), this._segmentChanged(); - }, - enumerable: !0 - }), - Object.defineProperty(window.SVGPathSegArcAbs.prototype, 'y', { - get: function() { - return this._y; - }, - set: function(e) { - (this._y = e), this._segmentChanged(); - }, - enumerable: !0 - }), - Object.defineProperty(window.SVGPathSegArcAbs.prototype, 'r1', { - get: function() { - return this._r1; - }, - set: function(e) { - (this._r1 = e), this._segmentChanged(); - }, - enumerable: !0 - }), - Object.defineProperty(window.SVGPathSegArcAbs.prototype, 'r2', { - get: function() { - return this._r2; - }, - set: function(e) { - (this._r2 = e), this._segmentChanged(); - }, - enumerable: !0 - }), - Object.defineProperty(window.SVGPathSegArcAbs.prototype, 'angle', { - get: function() { - return this._angle; - }, - set: function(e) { - (this._angle = e), this._segmentChanged(); - }, - enumerable: !0 - }), - Object.defineProperty( - window.SVGPathSegArcAbs.prototype, - 'largeArcFlag', - { - get: function() { - return this._largeArcFlag; - }, - set: function(e) { - (this._largeArcFlag = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegArcAbs.prototype, - 'sweepFlag', - { - get: function() { - return this._sweepFlag; - }, - set: function(e) { - (this._sweepFlag = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegArcRel = function(e, t, n, r, o, i, a, s) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_ARC_REL, - 'a', - e + } + return n; + } + return ( + (this.lastNeed = 1), + (this.lastTotal = 2), + (this.lastChar[0] = e[e.length - 1]), + e.toString('utf16le', t, e.length - 1) + ); + } + function u(e) { + var t = e && e.length ? this.write(e) : ''; + if (this.lastNeed) { + var n = this.lastTotal - this.lastNeed; + return t + this.lastChar.toString('utf16le', 0, n); + } + return t; + } + function l(e, t) { + var n = (e.length - t) % 3; + return 0 === n + ? e.toString('base64', t) + : ((this.lastNeed = 3 - n), + (this.lastTotal = 3), + 1 === n + ? (this.lastChar[0] = e[e.length - 1]) + : ((this.lastChar[0] = e[e.length - 2]), + (this.lastChar[1] = e[e.length - 1])), + e.toString('base64', t, e.length - n)); + } + function f(e) { + var t = e && e.length ? this.write(e) : ''; + return this.lastNeed + ? t + this.lastChar.toString('base64', 0, 3 - this.lastNeed) + : t; + } + function d(e) { + return e.toString(this.encoding); + } + function p(e) { + return e && e.length ? this.write(e) : ''; + } + (t.StringDecoder = i), + (i.prototype.write = function(e) { + if (0 === e.length) return ''; + var t, n; + if (this.lastNeed) { + if (void 0 === (t = this.fillLast(e))) return ''; + (n = this.lastNeed), (this.lastNeed = 0); + } else n = 0; + return n < e.length + ? t + ? t + this.text(e, n) + : this.text(e, n) + : t || ''; + }), + (i.prototype.end = function(e) { + var t = e && e.length ? this.write(e) : ''; + return this.lastNeed ? t + '�' : t; + }), + (i.prototype.text = function(e, t) { + var n = (function(e, t, n) { + var r = t.length - 1; + if (r < n) return 0; + var o = a(t[r]); + if (o >= 0) return o > 0 && (e.lastNeed = o - 1), o; + if (--r < n || -2 === o) return 0; + if ((o = a(t[r])) >= 0) return o > 0 && (e.lastNeed = o - 2), o; + if (--r < n || -2 === o) return 0; + if ((o = a(t[r])) >= 0) + return o > 0 && (2 === o ? (o = 0) : (e.lastNeed = o - 3)), o; + return 0; + })(this, e, t); + if (!this.lastNeed) return e.toString('utf8', t); + this.lastTotal = n; + var r = e.length - (n - this.lastNeed); + return e.copy(this.lastChar, 0, r), e.toString('utf8', t, r); + }), + (i.prototype.fillLast = function(e) { + if (this.lastNeed <= e.length) + return ( + e.copy( + this.lastChar, + this.lastTotal - this.lastNeed, + 0, + this.lastNeed ), - (this._x = t), - (this._y = n), - (this._r1 = r), - (this._r2 = o), - (this._angle = i), - (this._largeArcFlag = a), - (this._sweepFlag = s); - }), - (window.SVGPathSegArcRel.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegArcRel.prototype.toString = function() { - return '[object SVGPathSegArcRel]'; - }), - (window.SVGPathSegArcRel.prototype._asPathString = function() { - return ( - this.pathSegTypeAsLetter + - ' ' + - this._r1 + - ' ' + - this._r2 + - ' ' + - this._angle + - ' ' + - (this._largeArcFlag ? '1' : '0') + - ' ' + - (this._sweepFlag ? '1' : '0') + - ' ' + - this._x + - ' ' + - this._y - ); - }), - (window.SVGPathSegArcRel.prototype.clone = function() { - return new window.SVGPathSegArcRel( - void 0, - this._x, - this._y, - this._r1, - this._r2, - this._angle, - this._largeArcFlag, - this._sweepFlag - ); - }), - Object.defineProperty(window.SVGPathSegArcRel.prototype, 'x', { - get: function() { - return this._x; - }, - set: function(e) { - (this._x = e), this._segmentChanged(); - }, - enumerable: !0 - }), - Object.defineProperty(window.SVGPathSegArcRel.prototype, 'y', { - get: function() { - return this._y; - }, - set: function(e) { - (this._y = e), this._segmentChanged(); - }, - enumerable: !0 - }), - Object.defineProperty(window.SVGPathSegArcRel.prototype, 'r1', { - get: function() { - return this._r1; - }, - set: function(e) { - (this._r1 = e), this._segmentChanged(); - }, - enumerable: !0 - }), - Object.defineProperty(window.SVGPathSegArcRel.prototype, 'r2', { - get: function() { - return this._r2; - }, - set: function(e) { - (this._r2 = e), this._segmentChanged(); - }, - enumerable: !0 - }), - Object.defineProperty(window.SVGPathSegArcRel.prototype, 'angle', { - get: function() { - return this._angle; - }, - set: function(e) { - (this._angle = e), this._segmentChanged(); - }, - enumerable: !0 - }), - Object.defineProperty( - window.SVGPathSegArcRel.prototype, - 'largeArcFlag', - { - get: function() { - return this._largeArcFlag; - }, - set: function(e) { - (this._largeArcFlag = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegArcRel.prototype, - 'sweepFlag', - { - get: function() { - return this._sweepFlag; - }, - set: function(e) { - (this._sweepFlag = e), this._segmentChanged(); - }, - enumerable: !0 - } + this.lastChar.toString(this.encoding, 0, this.lastTotal) + ); + e.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, e.length), + (this.lastNeed -= e.length); + }); + }, + function(e, t, n) { + var r = n(161), + o = r.Buffer; + function i(e, t) { + for (var n in e) t[n] = e[n]; + } + function a(e, t, n) { + return o(e, t, n); + } + o.from && o.alloc && o.allocUnsafe && o.allocUnsafeSlow + ? (e.exports = r) + : (i(r, t), (t.Buffer = a)), + (a.prototype = Object.create(o.prototype)), + i(o, a), + (a.from = function(e, t, n) { + if ('number' == typeof e) + throw new TypeError('Argument must not be a number'); + return o(e, t, n); + }), + (a.alloc = function(e, t, n) { + if ('number' != typeof e) + throw new TypeError('Argument must be a number'); + var r = o(e); + return ( + void 0 !== t + ? 'string' == typeof n + ? r.fill(t, n) + : r.fill(t) + : r.fill(0), + r + ); + }), + (a.allocUnsafe = function(e) { + if ('number' != typeof e) + throw new TypeError('Argument must be a number'); + return o(e); + }), + (a.allocUnsafeSlow = function(e) { + if ('number' != typeof e) + throw new TypeError('Argument must be a number'); + return r.SlowBuffer(e); + }); + }, + function(e, t, n) { + 'use strict'; + (t.byteLength = function(e) { + var t = u(e), + n = t[0], + r = t[1]; + return (3 * (n + r)) / 4 - r; + }), + (t.toByteArray = function(e) { + var t, + n, + r = u(e), + a = r[0], + s = r[1], + c = new i( + (function(e, t, n) { + return (3 * (t + n)) / 4 - n; + })(0, a, s) ), - (window.SVGPathSegLinetoHorizontalAbs = function(e, t) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS, - 'H', - e - ), - (this._x = t); - }), - (window.SVGPathSegLinetoHorizontalAbs.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegLinetoHorizontalAbs.prototype.toString = function() { - return '[object SVGPathSegLinetoHorizontalAbs]'; - }), - (window.SVGPathSegLinetoHorizontalAbs.prototype._asPathString = function() { - return this.pathSegTypeAsLetter + ' ' + this._x; - }), - (window.SVGPathSegLinetoHorizontalAbs.prototype.clone = function() { - return new window.SVGPathSegLinetoHorizontalAbs(void 0, this._x); - }), - Object.defineProperty( - window.SVGPathSegLinetoHorizontalAbs.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(e) { - (this._x = e), this._segmentChanged(); - }, - enumerable: !0 + l = 0, + f = s > 0 ? a - 4 : a; + for (n = 0; n < f; n += 4) + (t = + (o[e.charCodeAt(n)] << 18) | + (o[e.charCodeAt(n + 1)] << 12) | + (o[e.charCodeAt(n + 2)] << 6) | + o[e.charCodeAt(n + 3)]), + (c[l++] = (t >> 16) & 255), + (c[l++] = (t >> 8) & 255), + (c[l++] = 255 & t); + 2 === s && + ((t = (o[e.charCodeAt(n)] << 2) | (o[e.charCodeAt(n + 1)] >> 4)), + (c[l++] = 255 & t)); + 1 === s && + ((t = + (o[e.charCodeAt(n)] << 10) | + (o[e.charCodeAt(n + 1)] << 4) | + (o[e.charCodeAt(n + 2)] >> 2)), + (c[l++] = (t >> 8) & 255), + (c[l++] = 255 & t)); + return c; + }), + (t.fromByteArray = function(e) { + for ( + var t, n = e.length, o = n % 3, i = [], a = 0, s = n - o; + a < s; + a += 16383 + ) + i.push(l(e, a, a + 16383 > s ? s : a + 16383)); + 1 === o + ? ((t = e[n - 1]), i.push(r[t >> 2] + r[(t << 4) & 63] + '==')) + : 2 === o && + ((t = (e[n - 2] << 8) + e[n - 1]), + i.push(r[t >> 10] + r[(t >> 4) & 63] + r[(t << 2) & 63] + '=')); + return i.join(''); + }); + for ( + var r = [], + o = [], + i = 'undefined' != typeof Uint8Array ? Uint8Array : Array, + a = + 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/', + s = 0, + c = a.length; + s < c; + ++s + ) + (r[s] = a[s]), (o[a.charCodeAt(s)] = s); + function u(e) { + var t = e.length; + if (t % 4 > 0) + throw new Error('Invalid string. Length must be a multiple of 4'); + var n = e.indexOf('='); + return -1 === n && (n = t), [n, n === t ? 0 : 4 - (n % 4)]; + } + function l(e, t, n) { + for (var o, i, a = [], s = t; s < n; s += 3) + (o = + ((e[s] << 16) & 16711680) + + ((e[s + 1] << 8) & 65280) + + (255 & e[s + 2])), + a.push( + r[((i = o) >> 18) & 63] + + r[(i >> 12) & 63] + + r[(i >> 6) & 63] + + r[63 & i] + ); + return a.join(''); + } + (o['-'.charCodeAt(0)] = 62), (o['_'.charCodeAt(0)] = 63); + }, + function(e, t) { + (t.read = function(e, t, n, r, o) { + var i, + a, + s = 8 * o - r - 1, + c = (1 << s) - 1, + u = c >> 1, + l = -7, + f = n ? o - 1 : 0, + d = n ? -1 : 1, + p = e[t + f]; + for ( + f += d, i = p & ((1 << -l) - 1), p >>= -l, l += s; + l > 0; + i = 256 * i + e[t + f], f += d, l -= 8 + ); + for ( + a = i & ((1 << -l) - 1), i >>= -l, l += r; + l > 0; + a = 256 * a + e[t + f], f += d, l -= 8 + ); + if (0 === i) i = 1 - u; + else { + if (i === c) return a ? NaN : (1 / 0) * (p ? -1 : 1); + (a += Math.pow(2, r)), (i -= u); + } + return (p ? -1 : 1) * a * Math.pow(2, i - r); + }), + (t.write = function(e, t, n, r, o, i) { + var a, + s, + c, + u = 8 * i - o - 1, + l = (1 << u) - 1, + f = l >> 1, + d = 23 === o ? Math.pow(2, -24) - Math.pow(2, -77) : 0, + p = r ? 0 : i - 1, + h = r ? 1 : -1, + g = t < 0 || (0 === t && 1 / t < 0) ? 1 : 0; + for ( + t = Math.abs(t), + isNaN(t) || t === 1 / 0 + ? ((s = isNaN(t) ? 1 : 0), (a = l)) + : ((a = Math.floor(Math.log(t) / Math.LN2)), + t * (c = Math.pow(2, -a)) < 1 && (a--, (c *= 2)), + (t += a + f >= 1 ? d / c : d * Math.pow(2, 1 - f)) * c >= 2 && + (a++, (c /= 2)), + a + f >= l + ? ((s = 0), (a = l)) + : a + f >= 1 + ? ((s = (t * c - 1) * Math.pow(2, o)), (a += f)) + : ((s = t * Math.pow(2, f - 1) * Math.pow(2, o)), (a = 0))); + o >= 8; + e[n + p] = 255 & s, p += h, s /= 256, o -= 8 + ); + for ( + a = (a << o) | s, u += o; + u > 0; + e[n + p] = 255 & a, p += h, a /= 256, u -= 8 + ); + e[n + p - h] |= 128 * g; + }); + }, + function(e, t) { + var n = {}.toString; + e.exports = + Array.isArray || + function(e) { + return '[object Array]' == n.call(e); + }; + }, + function(e, t, n) { + function r(e) { + this._cbs = e || {}; + } + e.exports = r; + var o = n(79).EVENTS; + Object.keys(o).forEach(function(e) { + if (0 === o[e]) + (e = 'on' + e), + (r.prototype[e] = function() { + this._cbs[e] && this._cbs[e](); + }); + else if (1 === o[e]) + (e = 'on' + e), + (r.prototype[e] = function(t) { + this._cbs[e] && this._cbs[e](t); + }); + else { + if (2 !== o[e]) throw Error('wrong number of arguments'); + (e = 'on' + e), + (r.prototype[e] = function(t, n) { + this._cbs[e] && this._cbs[e](t, n); + }); + } + }); + }, + function(e, t, n) { + function r(e) { + (this._cbs = e || {}), (this.events = []); + } + e.exports = r; + var o = n(79).EVENTS; + Object.keys(o).forEach(function(e) { + if (0 === o[e]) + (e = 'on' + e), + (r.prototype[e] = function() { + this.events.push([e]), this._cbs[e] && this._cbs[e](); + }); + else if (1 === o[e]) + (e = 'on' + e), + (r.prototype[e] = function(t) { + this.events.push([e, t]), this._cbs[e] && this._cbs[e](t); + }); + else { + if (2 !== o[e]) throw Error('wrong number of arguments'); + (e = 'on' + e), + (r.prototype[e] = function(t, n) { + this.events.push([e, t, n]), this._cbs[e] && this._cbs[e](t, n); + }); + } + }), + (r.prototype.onreset = function() { + (this.events = []), this._cbs.onreset && this._cbs.onreset(); + }), + (r.prototype.restart = function() { + this._cbs.onreset && this._cbs.onreset(); + for (var e = 0, t = this.events.length; e < t; e++) + if (this._cbs[this.events[e][0]]) { + var n = this.events[e].length; + 1 === n + ? this._cbs[this.events[e][0]]() + : 2 === n + ? this._cbs[this.events[e][0]](this.events[e][1]) + : this._cbs[this.events[e][0]]( + this.events[e][1], + this.events[e][2] + ); + } + }); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = function(e) { + return e.data; + }); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = function(e, t, n) { + var c = e.name; + if (!(0, s.default)(c)) return null; + var u = (0, i.default)(e.attribs, t), + l = null; + -1 === a.default.indexOf(c) && (l = (0, o.default)(e.children, n)); + return r.default.createElement(c, u, l); + }); + var r = c(n(0)), + o = c(n(160)), + i = c(n(249)), + a = c(n(633)), + s = c(n(250)); + function c(e) { + return e && e.__esModule ? e : { default: e }; + } + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = function(e) { + return Object.keys(e) + .filter(function(e) { + return (0, i.default)(e); + }) + .reduce(function(t, n) { + var r = n.toLowerCase(), + i = o.default[r] || r; + return (t[i] = s(i, e[n])), t; + }, {}); + }); + var r = a(n(630)), + o = a(n(631)), + i = a(n(250)); + function a(e) { + return e && e.__esModule ? e : { default: e }; + } + var s = function(e, t) { + return ( + r.default + .map(function(e) { + return e.toLowerCase(); + }) + .indexOf(e.toLowerCase()) >= 0 && (t = e), + t + ); + }; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = [ + 'allowfullScreen', + 'async', + 'autoplay', + 'capture', + 'checked', + 'controls', + 'default', + 'defer', + 'disabled', + 'formnovalidate', + 'hidden', + 'loop', + 'multiple', + 'muted', + 'novalidate', + 'open', + 'playsinline', + 'readonly', + 'required', + 'reversed', + 'scoped', + 'seamless', + 'selected', + 'itemscope' + ]); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = { + accept: 'accept', + 'accept-charset': 'acceptCharset', + accesskey: 'accessKey', + action: 'action', + allowfullscreen: 'allowFullScreen', + allowtransparency: 'allowTransparency', + alt: 'alt', + as: 'as', + async: 'async', + autocomplete: 'autoComplete', + autoplay: 'autoPlay', + capture: 'capture', + cellpadding: 'cellPadding', + cellspacing: 'cellSpacing', + charset: 'charSet', + challenge: 'challenge', + checked: 'checked', + cite: 'cite', + classid: 'classID', + class: 'className', + cols: 'cols', + colspan: 'colSpan', + content: 'content', + contenteditable: 'contentEditable', + contextmenu: 'contextMenu', + controls: 'controls', + controlsList: 'controlsList', + coords: 'coords', + crossorigin: 'crossOrigin', + data: 'data', + datetime: 'dateTime', + default: 'default', + defer: 'defer', + dir: 'dir', + disabled: 'disabled', + download: 'download', + draggable: 'draggable', + enctype: 'encType', + form: 'form', + formaction: 'formAction', + formenctype: 'formEncType', + formmethod: 'formMethod', + formnovalidate: 'formNoValidate', + formtarget: 'formTarget', + frameborder: 'frameBorder', + headers: 'headers', + height: 'height', + hidden: 'hidden', + high: 'high', + href: 'href', + hreflang: 'hrefLang', + for: 'htmlFor', + 'http-equiv': 'httpEquiv', + icon: 'icon', + id: 'id', + inputmode: 'inputMode', + integrity: 'integrity', + is: 'is', + keyparams: 'keyParams', + keytype: 'keyType', + kind: 'kind', + label: 'label', + lang: 'lang', + list: 'list', + loop: 'loop', + low: 'low', + manifest: 'manifest', + marginheight: 'marginHeight', + marginwidth: 'marginWidth', + max: 'max', + maxlength: 'maxLength', + media: 'media', + mediagroup: 'mediaGroup', + method: 'method', + min: 'min', + minlength: 'minLength', + multiple: 'multiple', + muted: 'muted', + name: 'name', + nonce: 'nonce', + novalidate: 'noValidate', + open: 'open', + optimum: 'optimum', + pattern: 'pattern', + placeholder: 'placeholder', + playsinline: 'playsInline', + poster: 'poster', + preload: 'preload', + profile: 'profile', + radiogroup: 'radioGroup', + readonly: 'readOnly', + referrerpolicy: 'referrerPolicy', + rel: 'rel', + required: 'required', + reversed: 'reversed', + role: 'role', + rows: 'rows', + rowspan: 'rowSpan', + sandbox: 'sandbox', + scope: 'scope', + scoped: 'scoped', + scrolling: 'scrolling', + seamless: 'seamless', + selected: 'selected', + shape: 'shape', + size: 'size', + sizes: 'sizes', + slot: 'slot', + span: 'span', + spellcheck: 'spellCheck', + src: 'src', + srcdoc: 'srcDoc', + srclang: 'srcLang', + srcset: 'srcSet', + start: 'start', + step: 'step', + style: 'style', + summary: 'summary', + tabindex: 'tabIndex', + target: 'target', + title: 'title', + type: 'type', + usemap: 'useMap', + value: 'value', + width: 'width', + wmode: 'wmode', + wrap: 'wrap', + about: 'about', + datatype: 'datatype', + inlist: 'inlist', + prefix: 'prefix', + property: 'property', + resource: 'resource', + typeof: 'typeof', + vocab: 'vocab', + autocapitalize: 'autoCapitalize', + autocorrect: 'autoCorrect', + autosave: 'autoSave', + color: 'color', + itemprop: 'itemProp', + itemscope: 'itemScope', + itemtype: 'itemType', + itemid: 'itemID', + itemref: 'itemRef', + results: 'results', + security: 'security', + unselectable: 'unselectable' + }); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = function(e, t) { + if (Array.isArray(e)) return e; + if (Symbol.iterator in Object(e)) + return (function(e, t) { + var n = [], + r = !0, + o = !1, + i = void 0; + try { + for ( + var a, s = e[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !t || n.length !== t); + r = !0 + ); + } catch (e) { + (o = !0), (i = e); + } finally { + try { + !r && s.return && s.return(); + } finally { + if (o) throw i; } - ), - (window.SVGPathSegLinetoHorizontalRel = function(e, t) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL, - 'h', - e - ), - (this._x = t); + } + return n; + })(e, t); + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' + ); + }; + t.default = function() { + var e = + arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : ''; + if ('' === e) return {}; + return e.split(';').reduce(function(e, t) { + var n = t + .split(/^([^:]+):/) + .filter(function(e, t) { + return t > 0; + }) + .map(function(e) { + return e.trim().toLowerCase(); + }), + o = r(n, 2), + i = o[0], + a = o[1]; + return void 0 === a + ? e + : ((e[ + (i = i.replace(/^-ms-/, 'ms-').replace(/-(.)/g, function(e, t) { + return t.toUpperCase(); + })) + ] = a), + e); + }, {}); + }; + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = [ + 'area', + 'base', + 'br', + 'col', + 'command', + 'embed', + 'hr', + 'img', + 'input', + 'keygen', + 'link', + 'meta', + 'param', + 'source', + 'track', + 'wbr' + ]); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = function(e, t) { + var n = void 0; + e.children.length > 0 && (n = e.children[0].data); + var i = (0, o.default)(e.attribs, t); + return r.default.createElement('style', i, n); + }); + var r = i(n(0)), + o = i(n(249)); + function i(e) { + return e && e.__esModule ? e : { default: e }; + } + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = function() { + return null; + }); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (t.default = function(e) { + var t = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : {}, + n = t.decodeEntities, + i = void 0 === n || n, + a = t.transform, + s = t.preprocessNodes, + c = (void 0 === s + ? function(e) { + return e; + } + : s)(r.default.parseDOM(e, { decodeEntities: i })); + return (0, o.default)(c, a); + }); + var r = i(n(79)), + o = i(n(160)); + function i(e) { + return e && e.__esModule ? e : { default: e }; + } + }, + function(e, t, n) { + 'use strict'; + n.r(t); + var r = n(196); + /* @license C3.js v0.7.12 | (c) C3 Team and other contributors | http://c3js.org/ */ function o( + e + ) { + var t = this; + (t.d3 = r), + (t.api = e), + (t.config = t.getDefaultConfig()), + (t.data = {}), + (t.cache = {}), + (t.axes = {}); + } + function i(e) { + (this.internal = new o(this)), + this.internal.loadConfig(e), + this.internal.beforeInit(e), + this.internal.init(), + this.internal.afterInit(e), + (function e(t, n, r) { + Object.keys(t).forEach(function(o) { + (n[o] = t[o].bind(r)), + Object.keys(t[o]).length > 0 && e(t[o], n[o], r); + }); + })(i.prototype, this, this); + } + var a = function(e) { + return Math.ceil(e) + 0.5; + }, + s = function(e) { + return 10 * Math.ceil(e / 10); + }, + c = function(e) { + return e[1] - e[0]; + }, + u = function(e, t, n) { + return p(e[t]) ? e[t] : n; + }, + l = function(e) { + var t = f(e), + n = [e.pathSegList.getItem(0), e.pathSegList.getItem(1)]; + return { + x: n[0].x, + y: Math.min(n[0].y, n[1].y), + width: t.width, + height: t.height + }; + }, + f = function(e) { + try { + return e.getBBox(); + } catch (e) { + return { x: 0, y: 0, width: 0, height: 0 }; + } + }, + d = function(e) { + return Array.isArray(e); + }, + p = function(e) { + return void 0 !== e; + }, + h = function(e) { + return ( + null == e || + (b(e) && 0 === e.length) || + ('object' == typeof e && 0 === Object.keys(e).length) + ); + }, + g = function(e) { + return 'function' == typeof e; + }, + m = function(e) { + return 'number' == typeof e; + }, + b = function(e) { + return 'string' == typeof e; + }, + y = function(e) { + return void 0 === e; + }, + v = function(e) { + return e || 0 === e; + }, + _ = function(e) { + return !h(e); + }, + w = function(e) { + return 'string' == typeof e + ? e.replace(//g, '>') + : e; + }; + function x(e, t) { + (this.component = e), + (this.params = t || {}), + (this.d3 = e.d3), + (this.scale = this.d3.scaleLinear()), + this.range, + (this.orient = 'bottom'), + (this.innerTickSize = 6), + (this.outerTickSize = this.params.withOuterTick ? 6 : 0), + (this.tickPadding = 3), + (this.tickValues = null), + this.tickFormat, + this.tickArguments, + (this.tickOffset = 0), + (this.tickCulling = !0), + this.tickCentered, + this.tickTextCharSize, + (this.tickTextRotate = this.params.tickTextRotate), + this.tickLength, + (this.axis = this.generateAxis()); + } + (x.prototype.axisX = function(e, t, n) { + e.attr('transform', function(e) { + return 'translate(' + Math.ceil(t(e) + n) + ', 0)'; + }); + }), + (x.prototype.axisY = function(e, t) { + e.attr('transform', function(e) { + return 'translate(0,' + Math.ceil(t(e)) + ')'; + }); + }), + (x.prototype.scaleExtent = function(e) { + var t = e[0], + n = e[e.length - 1]; + return t < n ? [t, n] : [n, t]; + }), + (x.prototype.generateTicks = function(e) { + var t, + n, + r = []; + if (e.ticks) return e.ticks.apply(e, this.tickArguments); + for (n = e.domain(), t = Math.ceil(n[0]); t < n[1]; t++) r.push(t); + return r.length > 0 && r[0] > 0 && r.unshift(r[0] - (r[1] - r[0])), r; + }), + (x.prototype.copyScale = function() { + var e, + t = this.scale.copy(); + return ( + this.params.isCategory && + ((e = this.scale.domain()), t.domain([e[0], e[1] - 1])), + t + ); + }), + (x.prototype.textFormatted = function(e) { + var t = this.tickFormat ? this.tickFormat(e) : e; + return void 0 !== t ? t : ''; + }), + (x.prototype.updateRange = function() { + return ( + (this.range = this.scale.rangeExtent + ? this.scale.rangeExtent() + : this.scaleExtent(this.scale.range())), + this.range + ); + }), + (x.prototype.updateTickTextCharSize = function(e) { + var t = this; + if (t.tickTextCharSize) return t.tickTextCharSize; + var n = { h: 11.5, w: 5.5 }; + return ( + e + .select('text') + .text(function(e) { + return t.textFormatted(e); + }) + .each(function(e) { + var r = f(this), + o = t.textFormatted(e), + i = r.height, + a = o ? r.width / o.length : void 0; + i && a && ((n.h = i), (n.w = a)); + }) + .text(''), + (t.tickTextCharSize = n), + n + ); + }), + (x.prototype.isVertical = function() { + return 'left' === this.orient || 'right' === this.orient; + }), + (x.prototype.tspanData = function(e, t, n) { + var r = this.params.tickMultiline + ? this.splitTickText(e, n) + : [].concat(this.textFormatted(e)); + return ( + this.params.tickMultiline && + this.params.tickMultilineMax > 0 && + (r = this.ellipsify(r, this.params.tickMultilineMax)), + r.map(function(e) { + return { index: t, splitted: e, length: r.length }; + }) + ); + }), + (x.prototype.splitTickText = function(e, t) { + var n, + r, + o, + i = this, + a = i.textFormatted(e), + s = i.params.tickWidth; + if ('[object Array]' === Object.prototype.toString.call(a)) return a; + return ( + (!s || s <= 0) && + (s = i.isVertical() + ? 95 + : i.params.isCategory + ? Math.ceil(t(1) - t(0)) - 12 + : 110), + (function e(t, a) { + r = void 0; + for (var c = 1; c < a.length; c++) + if ( + (' ' === a.charAt(c) && (r = c), + (n = a.substr(0, c + 1)), + (o = i.tickTextCharSize.w * n.length), + s < o) + ) + return e( + t.concat(a.substr(0, r || c)), + a.slice(r ? r + 1 : c) + ); + return t.concat(a); + })([], a + '') + ); + }), + (x.prototype.ellipsify = function(e, t) { + if (e.length <= t) return e; + for (var n = e.slice(0, t), r = 3, o = t - 1; o >= 0; o--) { + var i = n[o].length; + if (((n[o] = n[o].substr(0, i - r).padEnd(i, '.')), (r -= i) <= 0)) + break; + } + return n; + }), + (x.prototype.updateTickLength = function() { + this.tickLength = Math.max(this.innerTickSize, 0) + this.tickPadding; + }), + (x.prototype.lineY2 = function(e) { + var t = this.scale(e) + (this.tickCentered ? 0 : this.tickOffset); + return this.range[0] < t && t < this.range[1] + ? this.innerTickSize + : 0; + }), + (x.prototype.textY = function() { + var e = this.tickTextRotate; + return e ? 11.5 - (e / 15) * 2.5 * (e > 0 ? 1 : -1) : this.tickLength; + }), + (x.prototype.textTransform = function() { + var e = this.tickTextRotate; + return e ? 'rotate(' + e + ')' : ''; + }), + (x.prototype.textTextAnchor = function() { + var e = this.tickTextRotate; + return e ? (e > 0 ? 'start' : 'end') : 'middle'; + }), + (x.prototype.tspanDx = function() { + var e = this.tickTextRotate; + return e ? 8 * Math.sin(Math.PI * (e / 180)) : 0; + }), + (x.prototype.tspanDy = function(e, t) { + var n = this.tickTextCharSize.h; + return ( + 0 === t && + (n = this.isVertical() + ? -((e.length - 1) * (this.tickTextCharSize.h / 2) - 3) + : '.71em'), + n + ); + }), + (x.prototype.generateAxis = function() { + var e = this, + t = e.d3, + n = e.params; + function r(o, i) { + var a; + return ( + o.each(function() { + var o, + s, + c, + u = (r.g = t.select(this)), + l = this.__chart__ || e.scale, + f = (this.__chart__ = e.copyScale()), + d = e.tickValues ? e.tickValues : e.generateTicks(f), + p = u.selectAll('.tick').data(d, f), + h = p + .enter() + .insert('g', '.domain') + .attr('class', 'tick') + .style('opacity', 1e-6), + g = p.exit().remove(), + m = p.merge(h); + n.isCategory + ? ((e.tickOffset = Math.ceil((f(1) - f(0)) / 2)), + (s = e.tickCentered ? 0 : e.tickOffset), + (c = e.tickCentered ? e.tickOffset : 0)) + : (e.tickOffset = s = 0), + e.updateRange(), + e.updateTickLength(), + e.updateTickTextCharSize(u.select('.tick')); + var b = m.select('line').merge(h.append('line')), + y = m.select('text').merge(h.append('text')), + v = m + .selectAll('text') + .selectAll('tspan') + .data(function(t, n) { + return e.tspanData(t, n, f); + }), + _ = v + .enter() + .append('tspan') + .merge(v) + .text(function(e) { + return e.splitted; + }); + v.exit().remove(); + var w = u.selectAll('.domain').data([0]), + x = w + .enter() + .append('path') + .merge(w) + .attr('class', 'domain'); + switch (e.orient) { + case 'bottom': + (o = e.axisX), + b + .attr('x1', s) + .attr('x2', s) + .attr('y2', function(t, n) { + return e.lineY2(t, n); + }), + y + .attr('x', 0) + .attr('y', function(t, n) { + return e.textY(t, n); + }) + .attr('transform', function(t, n) { + return e.textTransform(t, n); + }) + .style('text-anchor', function(t, n) { + return e.textTextAnchor(t, n); + }), + _.attr('x', 0) + .attr('dy', function(t, n) { + return e.tspanDy(t, n); + }) + .attr('dx', function(t, n) { + return e.tspanDx(t, n); + }), + x.attr( + 'd', + 'M' + + e.range[0] + + ',' + + e.outerTickSize + + 'V0H' + + e.range[1] + + 'V' + + e.outerTickSize + ); + break; + case 'top': + (o = e.axisX), + b + .attr('x1', s) + .attr('x2', s) + .attr('y2', function(t, n) { + return -1 * e.lineY2(t, n); + }), + y + .attr('x', 0) + .attr('y', function(t, r) { + return ( + -1 * e.textY(t, r) - + (n.isCategory ? 2 : e.tickLength - 2) + ); + }) + .attr('transform', function(t, n) { + return e.textTransform(t, n); + }) + .style('text-anchor', function(t, n) { + return e.textTextAnchor(t, n); + }), + _.attr('x', 0) + .attr('dy', function(t, n) { + return e.tspanDy(t, n); + }) + .attr('dx', function(t, n) { + return e.tspanDx(t, n); + }), + x.attr( + 'd', + 'M' + + e.range[0] + + ',' + + -e.outerTickSize + + 'V0H' + + e.range[1] + + 'V' + + -e.outerTickSize + ); + break; + case 'left': + (o = e.axisY), + b + .attr('x2', -e.innerTickSize) + .attr('y1', c) + .attr('y2', c), + y + .attr('x', -e.tickLength) + .attr('y', e.tickOffset) + .style('text-anchor', 'end'), + _.attr('x', -e.tickLength).attr('dy', function(t, n) { + return e.tspanDy(t, n); + }), + x.attr( + 'd', + 'M' + + -e.outerTickSize + + ',' + + e.range[0] + + 'H0V' + + e.range[1] + + 'H' + + -e.outerTickSize + ); + break; + case 'right': + (o = e.axisY), + b + .attr('x2', e.innerTickSize) + .attr('y1', c) + .attr('y2', c), + y + .attr('x', e.tickLength) + .attr('y', e.tickOffset) + .style('text-anchor', 'start'), + _.attr('x', e.tickLength).attr('dy', function(t, n) { + return e.tspanDy(t, n); + }), + x.attr( + 'd', + 'M' + + e.outerTickSize + + ',' + + e.range[0] + + 'H0V' + + e.range[1] + + 'H' + + e.outerTickSize + ); + } + if (f.rangeBand) { + var M = f, + k = M.rangeBand() / 2; + l = f = function(e) { + return M(e) + k; + }; + } else l.rangeBand ? (l = f) : g.call(o, f, e.tickOffset); + h.call(o, l, e.tickOffset), + (a = (i ? m.transition(i) : m) + .style('opacity', 1) + .call(o, f, e.tickOffset)); + }), + a + ); + } + return ( + (r.scale = function(t) { + return arguments.length ? ((e.scale = t), r) : e.scale; }), - (window.SVGPathSegLinetoHorizontalRel.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegLinetoHorizontalRel.prototype.toString = function() { - return '[object SVGPathSegLinetoHorizontalRel]'; + (r.orient = function(t) { + return arguments.length + ? ((e.orient = + t in { top: 1, right: 1, bottom: 1, left: 1 } + ? t + '' + : 'bottom'), + r) + : e.orient; }), - (window.SVGPathSegLinetoHorizontalRel.prototype._asPathString = function() { - return this.pathSegTypeAsLetter + ' ' + this._x; + (r.tickFormat = function(t) { + return arguments.length ? ((e.tickFormat = t), r) : e.tickFormat; }), - (window.SVGPathSegLinetoHorizontalRel.prototype.clone = function() { - return new window.SVGPathSegLinetoHorizontalRel(void 0, this._x); + (r.tickCentered = function(t) { + return arguments.length + ? ((e.tickCentered = t), r) + : e.tickCentered; }), - Object.defineProperty( - window.SVGPathSegLinetoHorizontalRel.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(e) { - (this._x = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegLinetoVerticalAbs = function(e, t) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS, - 'V', - e - ), - (this._y = t); + (r.tickOffset = function() { + return e.tickOffset; }), - (window.SVGPathSegLinetoVerticalAbs.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegLinetoVerticalAbs.prototype.toString = function() { - return '[object SVGPathSegLinetoVerticalAbs]'; + (r.tickInterval = function() { + var t; + return (t = n.isCategory + ? 2 * e.tickOffset + : (r.g + .select('path.domain') + .node() + .getTotalLength() - + 2 * e.outerTickSize) / + r.g.selectAll('line').size()) === + 1 / 0 + ? 0 + : t; }), - (window.SVGPathSegLinetoVerticalAbs.prototype._asPathString = function() { - return this.pathSegTypeAsLetter + ' ' + this._y; + (r.ticks = function() { + return arguments.length + ? ((e.tickArguments = arguments), r) + : e.tickArguments; }), - (window.SVGPathSegLinetoVerticalAbs.prototype.clone = function() { - return new window.SVGPathSegLinetoVerticalAbs(void 0, this._y); + (r.tickCulling = function(t) { + return arguments.length + ? ((e.tickCulling = t), r) + : e.tickCulling; }), - Object.defineProperty( - window.SVGPathSegLinetoVerticalAbs.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(e) { - (this._y = e), this._segmentChanged(); - }, - enumerable: !0 + (r.tickValues = function(t) { + if ('function' == typeof t) + e.tickValues = function() { + return t(e.scale.domain()); + }; + else { + if (!arguments.length) return e.tickValues; + e.tickValues = t; } - ), - (window.SVGPathSegLinetoVerticalRel = function(e, t) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL, - 'v', - e - ), - (this._y = t); + return r; }), - (window.SVGPathSegLinetoVerticalRel.prototype = Object.create( - window.SVGPathSeg.prototype + r + ); + }); + var M = { + target: 'c3-target', + chart: 'c3-chart', + chartLine: 'c3-chart-line', + chartLines: 'c3-chart-lines', + chartBar: 'c3-chart-bar', + chartBars: 'c3-chart-bars', + chartText: 'c3-chart-text', + chartTexts: 'c3-chart-texts', + chartArc: 'c3-chart-arc', + chartArcs: 'c3-chart-arcs', + chartArcsTitle: 'c3-chart-arcs-title', + chartArcsBackground: 'c3-chart-arcs-background', + chartArcsGaugeUnit: 'c3-chart-arcs-gauge-unit', + chartArcsGaugeMax: 'c3-chart-arcs-gauge-max', + chartArcsGaugeMin: 'c3-chart-arcs-gauge-min', + selectedCircle: 'c3-selected-circle', + selectedCircles: 'c3-selected-circles', + eventRect: 'c3-event-rect', + eventRects: 'c3-event-rects', + eventRectsSingle: 'c3-event-rects-single', + eventRectsMultiple: 'c3-event-rects-multiple', + zoomRect: 'c3-zoom-rect', + brush: 'c3-brush', + dragZoom: 'c3-drag-zoom', + focused: 'c3-focused', + defocused: 'c3-defocused', + region: 'c3-region', + regions: 'c3-regions', + title: 'c3-title', + tooltipContainer: 'c3-tooltip-container', + tooltip: 'c3-tooltip', + tooltipName: 'c3-tooltip-name', + shape: 'c3-shape', + shapes: 'c3-shapes', + line: 'c3-line', + lines: 'c3-lines', + bar: 'c3-bar', + bars: 'c3-bars', + circle: 'c3-circle', + circles: 'c3-circles', + arc: 'c3-arc', + arcLabelLine: 'c3-arc-label-line', + arcs: 'c3-arcs', + area: 'c3-area', + areas: 'c3-areas', + empty: 'c3-empty', + text: 'c3-text', + texts: 'c3-texts', + gaugeValue: 'c3-gauge-value', + grid: 'c3-grid', + gridLines: 'c3-grid-lines', + xgrid: 'c3-xgrid', + xgrids: 'c3-xgrids', + xgridLine: 'c3-xgrid-line', + xgridLines: 'c3-xgrid-lines', + xgridFocus: 'c3-xgrid-focus', + ygrid: 'c3-ygrid', + ygrids: 'c3-ygrids', + ygridLine: 'c3-ygrid-line', + ygridLines: 'c3-ygrid-lines', + colorScale: 'c3-colorscale', + stanfordElements: 'c3-stanford-elements', + stanfordLine: 'c3-stanford-line', + stanfordLines: 'c3-stanford-lines', + stanfordRegion: 'c3-stanford-region', + stanfordRegions: 'c3-stanford-regions', + stanfordText: 'c3-stanford-text', + stanfordTexts: 'c3-stanford-texts', + axis: 'c3-axis', + axisX: 'c3-axis-x', + axisXLabel: 'c3-axis-x-label', + axisY: 'c3-axis-y', + axisYLabel: 'c3-axis-y-label', + axisY2: 'c3-axis-y2', + axisY2Label: 'c3-axis-y2-label', + legendBackground: 'c3-legend-background', + legendItem: 'c3-legend-item', + legendItemEvent: 'c3-legend-item-event', + legendItemTile: 'c3-legend-item-tile', + legendItemHidden: 'c3-legend-item-hidden', + legendItemFocused: 'c3-legend-item-focused', + dragarea: 'c3-dragarea', + EXPANDED: '_expanded_', + SELECTED: '_selected_', + INCLUDED: '_included_' + }; + class k { + constructor(e) { + (this.owner = e), (this.d3 = e.d3), (this.internal = x); + } + } + (k.prototype.init = function() { + var e = this.owner, + t = e.config, + n = e.main; + (e.axes.x = n + .append('g') + .attr('class', M.axis + ' ' + M.axisX) + .attr('clip-path', t.axis_x_inner ? '' : e.clipPathForXAxis) + .attr('transform', e.getTranslate('x')) + .style('visibility', t.axis_x_show ? 'visible' : 'hidden')), + e.axes.x + .append('text') + .attr('class', M.axisXLabel) + .attr('transform', t.axis_rotated ? 'rotate(-90)' : '') + .style('text-anchor', this.textAnchorForXAxisLabel.bind(this)), + (e.axes.y = n + .append('g') + .attr('class', M.axis + ' ' + M.axisY) + .attr('clip-path', t.axis_y_inner ? '' : e.clipPathForYAxis) + .attr('transform', e.getTranslate('y')) + .style('visibility', t.axis_y_show ? 'visible' : 'hidden')), + e.axes.y + .append('text') + .attr('class', M.axisYLabel) + .attr('transform', t.axis_rotated ? '' : 'rotate(-90)') + .style('text-anchor', this.textAnchorForYAxisLabel.bind(this)), + (e.axes.y2 = n + .append('g') + .attr('class', M.axis + ' ' + M.axisY2) + .attr('transform', e.getTranslate('y2')) + .style('visibility', t.axis_y2_show ? 'visible' : 'hidden')), + e.axes.y2 + .append('text') + .attr('class', M.axisY2Label) + .attr('transform', t.axis_rotated ? '' : 'rotate(-90)') + .style('text-anchor', this.textAnchorForY2AxisLabel.bind(this)); + }), + (k.prototype.getXAxis = function(e, t, n, r, o, i, a) { + var s = this.owner, + c = s.config, + u = { + isCategory: s.isCategorized(), + withOuterTick: o, + tickMultiline: c.axis_x_tick_multiline, + tickMultilineMax: c.axis_x_tick_multiline + ? Number(c.axis_x_tick_multilineMax) + : 0, + tickWidth: c.axis_x_tick_width, + tickTextRotate: a ? 0 : c.axis_x_tick_rotate, + withoutTransition: i + }, + l = new this.internal(this, u).axis.scale(e).orient(t); + return ( + s.isTimeSeries() && + r && + 'function' != typeof r && + (r = r.map(function(e) { + return s.parseDate(e); + })), + l.tickFormat(n).tickValues(r), + s.isCategorized() && + (l.tickCentered(c.axis_x_tick_centered), + h(c.axis_x_tick_culling) && (c.axis_x_tick_culling = !1)), + l + ); + }), + (k.prototype.updateXAxisTickValues = function(e, t) { + var n, + r = this.owner, + o = r.config; + return ( + (o.axis_x_tick_fit || o.axis_x_tick_count) && + (n = this.generateTickValues( + r.mapTargetsToUniqueXs(e), + o.axis_x_tick_count, + r.isTimeSeries() + )), + t + ? t.tickValues(n) + : (r.xAxis.tickValues(n), r.subXAxis.tickValues(n)), + n + ); + }), + (k.prototype.getYAxis = function(e, t, n, r, o, i, a) { + const s = this.owner, + c = s.config; + let u = c[`axis_${e}_tick_format`]; + !u && s.isAxisNormalized(e) && (u = e => `${e}%`); + const l = new this.internal(this, { + withOuterTick: o, + withoutTransition: i, + tickTextRotate: a ? 0 : c.axis_y_tick_rotate + }).axis + .scale(t) + .orient(n); + return ( + u && l.tickFormat(u), + s.isTimeSeriesY() + ? l.ticks(c.axis_y_tick_time_type, c.axis_y_tick_time_interval) + : l.tickValues(r), + l + ); + }), + (k.prototype.getId = function(e) { + var t = this.owner.config; + return e in t.data_axes ? t.data_axes[e] : 'y'; + }), + (k.prototype.getXAxisTickFormat = function() { + var e = this.owner, + t = e.config; + let n = e.isTimeSeries() + ? e.defaultAxisTimeFormat + : e.isCategorized() + ? e.categoryName + : function(e) { + return e; + }; + return ( + t.axis_x_tick_format && + (g(t.axis_x_tick_format) + ? (n = t.axis_x_tick_format) + : e.isTimeSeries() && + (n = function(n) { + return n ? e.axisTimeFormat(t.axis_x_tick_format)(n) : ''; + })), + g(n) + ? function(t) { + return n.call(e, t); + } + : n + ); + }), + (k.prototype.getTickValues = function(e, t) { + return e || (t ? t.tickValues() : void 0); + }), + (k.prototype.getXAxisTickValues = function() { + return this.getTickValues( + this.owner.config.axis_x_tick_values, + this.owner.xAxis + ); + }), + (k.prototype.getYAxisTickValues = function() { + return this.getTickValues( + this.owner.config.axis_y_tick_values, + this.owner.yAxis + ); + }), + (k.prototype.getY2AxisTickValues = function() { + return this.getTickValues( + this.owner.config.axis_y2_tick_values, + this.owner.y2Axis + ); + }), + (k.prototype.getLabelOptionByAxisId = function(e) { + var t, + n = this.owner.config; + return ( + 'y' === e + ? (t = n.axis_y_label) + : 'y2' === e + ? (t = n.axis_y2_label) + : 'x' === e && (t = n.axis_x_label), + t + ); + }), + (k.prototype.getLabelText = function(e) { + var t = this.getLabelOptionByAxisId(e); + return b(t) ? t : t ? t.text : null; + }), + (k.prototype.setLabelText = function(e, t) { + var n = this.owner.config, + r = this.getLabelOptionByAxisId(e); + b(r) + ? 'y' === e + ? (n.axis_y_label = t) + : 'y2' === e + ? (n.axis_y2_label = t) + : 'x' === e && (n.axis_x_label = t) + : r && (r.text = t); + }), + (k.prototype.getLabelPosition = function(e, t) { + var n = this.getLabelOptionByAxisId(e), + r = n && 'object' == typeof n && n.position ? n.position : t; + return { + isInner: r.indexOf('inner') >= 0, + isOuter: r.indexOf('outer') >= 0, + isLeft: r.indexOf('left') >= 0, + isCenter: r.indexOf('center') >= 0, + isRight: r.indexOf('right') >= 0, + isTop: r.indexOf('top') >= 0, + isMiddle: r.indexOf('middle') >= 0, + isBottom: r.indexOf('bottom') >= 0 + }; + }), + (k.prototype.getXAxisLabelPosition = function() { + return this.getLabelPosition( + 'x', + this.owner.config.axis_rotated ? 'inner-top' : 'inner-right' + ); + }), + (k.prototype.getYAxisLabelPosition = function() { + return this.getLabelPosition( + 'y', + this.owner.config.axis_rotated ? 'inner-right' : 'inner-top' + ); + }), + (k.prototype.getY2AxisLabelPosition = function() { + return this.getLabelPosition( + 'y2', + this.owner.config.axis_rotated ? 'inner-right' : 'inner-top' + ); + }), + (k.prototype.getLabelPositionById = function(e) { + return 'y2' === e + ? this.getY2AxisLabelPosition() + : 'y' === e + ? this.getYAxisLabelPosition() + : this.getXAxisLabelPosition(); + }), + (k.prototype.textForXAxisLabel = function() { + return this.getLabelText('x'); + }), + (k.prototype.textForYAxisLabel = function() { + return this.getLabelText('y'); + }), + (k.prototype.textForY2AxisLabel = function() { + return this.getLabelText('y2'); + }), + (k.prototype.xForAxisLabel = function(e, t) { + var n = this.owner; + return e + ? t.isLeft + ? 0 + : t.isCenter + ? n.width / 2 + : n.width + : t.isBottom + ? -n.height + : t.isMiddle + ? -n.height / 2 + : 0; + }), + (k.prototype.dxForAxisLabel = function(e, t) { + return e + ? t.isLeft + ? '0.5em' + : t.isRight + ? '-0.5em' + : '0' + : t.isTop + ? '-0.5em' + : t.isBottom + ? '0.5em' + : '0'; + }), + (k.prototype.textAnchorForAxisLabel = function(e, t) { + return e + ? t.isLeft + ? 'start' + : t.isCenter + ? 'middle' + : 'end' + : t.isBottom + ? 'start' + : t.isMiddle + ? 'middle' + : 'end'; + }), + (k.prototype.xForXAxisLabel = function() { + return this.xForAxisLabel( + !this.owner.config.axis_rotated, + this.getXAxisLabelPosition() + ); + }), + (k.prototype.xForYAxisLabel = function() { + return this.xForAxisLabel( + this.owner.config.axis_rotated, + this.getYAxisLabelPosition() + ); + }), + (k.prototype.xForY2AxisLabel = function() { + return this.xForAxisLabel( + this.owner.config.axis_rotated, + this.getY2AxisLabelPosition() + ); + }), + (k.prototype.dxForXAxisLabel = function() { + return this.dxForAxisLabel( + !this.owner.config.axis_rotated, + this.getXAxisLabelPosition() + ); + }), + (k.prototype.dxForYAxisLabel = function() { + return this.dxForAxisLabel( + this.owner.config.axis_rotated, + this.getYAxisLabelPosition() + ); + }), + (k.prototype.dxForY2AxisLabel = function() { + return this.dxForAxisLabel( + this.owner.config.axis_rotated, + this.getY2AxisLabelPosition() + ); + }), + (k.prototype.dyForXAxisLabel = function() { + var e = this.owner, + t = e.config, + n = this.getXAxisLabelPosition(); + return t.axis_rotated + ? n.isInner + ? '1.2em' + : -25 - (e.config.axis_x_inner ? 0 : this.getMaxTickWidth('x')) + : n.isInner + ? '-0.5em' + : e.getHorizontalAxisHeight('x') - 10; + }), + (k.prototype.dyForYAxisLabel = function() { + var e = this.owner, + t = this.getYAxisLabelPosition(); + return e.config.axis_rotated + ? t.isInner + ? '-0.5em' + : '3em' + : t.isInner + ? '1.2em' + : -10 - + (e.config.axis_y_inner ? 0 : this.getMaxTickWidth('y') + 10); + }), + (k.prototype.dyForY2AxisLabel = function() { + var e = this.owner, + t = this.getY2AxisLabelPosition(); + return e.config.axis_rotated + ? t.isInner + ? '1.2em' + : '-2.2em' + : t.isInner + ? '-0.5em' + : 15 + + (e.config.axis_y2_inner ? 0 : this.getMaxTickWidth('y2') + 15); + }), + (k.prototype.textAnchorForXAxisLabel = function() { + var e = this.owner; + return this.textAnchorForAxisLabel( + !e.config.axis_rotated, + this.getXAxisLabelPosition() + ); + }), + (k.prototype.textAnchorForYAxisLabel = function() { + var e = this.owner; + return this.textAnchorForAxisLabel( + e.config.axis_rotated, + this.getYAxisLabelPosition() + ); + }), + (k.prototype.textAnchorForY2AxisLabel = function() { + var e = this.owner; + return this.textAnchorForAxisLabel( + e.config.axis_rotated, + this.getY2AxisLabelPosition() + ); + }), + (k.prototype.getMaxTickWidth = function(e, t) { + var n, + r, + o, + i, + a = this.owner, + s = 0; + return t && a.currentMaxTickWidths[e] + ? a.currentMaxTickWidths[e] + : (a.svg && + ((n = a.filterTargetsToShow(a.data.targets)), + 'y' === e + ? ((r = a.y.copy().domain(a.getYDomain(n, 'y'))), + (o = this.getYAxis( + e, + r, + a.yOrient, + a.yAxisTickValues, + !1, + !0, + !0 + ))) + : 'y2' === e + ? ((r = a.y2.copy().domain(a.getYDomain(n, 'y2'))), + (o = this.getYAxis( + e, + r, + a.y2Orient, + a.y2AxisTickValues, + !1, + !0, + !0 + ))) + : ((r = a.x.copy().domain(a.getXDomain(n))), + (o = this.getXAxis( + r, + a.xOrient, + a.xAxisTickFormat, + a.xAxisTickValues, + !1, + !0, + !0 + )), + this.updateXAxisTickValues(n, o)), + (i = a.d3 + .select('body') + .append('div') + .classed('c3', !0)) + .append('svg') + .style('visibility', 'hidden') + .style('position', 'fixed') + .style('top', 0) + .style('left', 0) + .append('g') + .call(o) + .each(function() { + a.d3 + .select(this) + .selectAll('text') + .each(function() { + var e = f(this); + s < e.width && (s = e.width); + }), + i.remove(); + })), + (a.currentMaxTickWidths[e] = + s <= 0 ? a.currentMaxTickWidths[e] : s), + a.currentMaxTickWidths[e]); + }), + (k.prototype.updateLabels = function(e) { + var t = this.owner, + n = t.main.select('.' + M.axisX + ' .' + M.axisXLabel), + r = t.main.select('.' + M.axisY + ' .' + M.axisYLabel), + o = t.main.select('.' + M.axisY2 + ' .' + M.axisY2Label); + (e ? n.transition() : n) + .attr('x', this.xForXAxisLabel.bind(this)) + .attr('dx', this.dxForXAxisLabel.bind(this)) + .attr('dy', this.dyForXAxisLabel.bind(this)) + .text(this.textForXAxisLabel.bind(this)), + (e ? r.transition() : r) + .attr('x', this.xForYAxisLabel.bind(this)) + .attr('dx', this.dxForYAxisLabel.bind(this)) + .attr('dy', this.dyForYAxisLabel.bind(this)) + .text(this.textForYAxisLabel.bind(this)), + (e ? o.transition() : o) + .attr('x', this.xForY2AxisLabel.bind(this)) + .attr('dx', this.dxForY2AxisLabel.bind(this)) + .attr('dy', this.dyForY2AxisLabel.bind(this)) + .text(this.textForY2AxisLabel.bind(this)); + }), + (k.prototype.getPadding = function(e, t, n, r) { + var o = 'number' == typeof e ? e : e[t]; + return v(o) + ? 'ratio' === e.unit + ? e[t] * r + : this.convertPixelsToAxisPadding(o, r) + : n; + }), + (k.prototype.convertPixelsToAxisPadding = function(e, t) { + var n = this.owner; + return t * (e / (n.config.axis_rotated ? n.width : n.height)); + }), + (k.prototype.generateTickValues = function(e, t, n) { + var r, + o, + i, + a, + s, + c, + u, + l = e; + if (t) + if (1 === (r = g(t) ? t() : t)) l = [e[0]]; + else if (2 === r) l = [e[0], e[e.length - 1]]; + else if (r > 2) { + for ( + a = r - 2, + o = e[0], + s = ((i = e[e.length - 1]) - o) / (a + 1), + l = [o], + c = 0; + c < a; + c++ + ) + (u = +o + s * (c + 1)), l.push(n ? new Date(u) : u); + l.push(i); + } + return ( + n || + (l = l.sort(function(e, t) { + return e - t; + })), + l + ); + }), + (k.prototype.generateTransitions = function(e) { + var t = this.owner.axes; + return { + axisX: e ? t.x.transition().duration(e) : t.x, + axisY: e ? t.y.transition().duration(e) : t.y, + axisY2: e ? t.y2.transition().duration(e) : t.y2, + axisSubX: e ? t.subx.transition().duration(e) : t.subx + }; + }), + (k.prototype.redraw = function(e, t) { + var n = this.owner, + r = e ? n.d3.transition().duration(e) : null; + n.axes.x.style('opacity', t ? 0 : 1).call(n.xAxis, r), + n.axes.y.style('opacity', t ? 0 : 1).call(n.yAxis, r), + n.axes.y2.style('opacity', t ? 0 : 1).call(n.y2Axis, r), + n.axes.subx.style('opacity', t ? 0 : 1).call(n.subXAxis, r); + }); + var S = { + version: '0.7.12', + chart: { + fn: i.prototype, + internal: { + fn: o.prototype, + axis: { fn: k.prototype, internal: { fn: x.prototype } } + } + }, + generate: function(e) { + return new i(e); + } + }; + function O(e, t, n) { + var r = [0.01, 10]; + function o(e) { + return n(t(e)); + } + return ( + t || (t = e.scaleLinear()).range(r), + n || ((n = e.scaleLog()).domain(r), n.nice()), + (o.domain = function(e) { + return arguments.length ? (t.domain(e), o) : t.domain(); + }), + (o.range = function(e) { + return arguments.length ? (n.range(e), o) : n.range(); + }), + (o.ticks = function(e) { + return (function(e, t, n) { + var r, o, i, a; + if (arguments.length < 3) n = 10; + else if (0 === n) return []; + (a = (t - e) / (o = n - 1)), + (i = e), + ((r = new Array(n))[0] = Math.pow(10, i)); + for (var s = 1; s < o; s++) (i += a), (r[s] = Math.pow(10, i)); + return (r[o] = Math.pow(10, t)), r; + })(-2, 1, e || 10).map(function(e) { + return t.invert(e); + }); + }), + (o.copy = function() { + return O(e, t.copy(), n.copy()); + }), + o + ); + } + function E(e) { + return ( + e / Math.pow(10, Math.ceil(Math.log(e) / Math.LN10 - 1e-12)) == 1 + ); + } + (o.prototype.beforeInit = function() {}), + (o.prototype.afterInit = function() {}), + (o.prototype.init = function() { + var e = this, + t = e.config; + if ((e.initParams(), t.data_url)) + e.convertUrlToData( + t.data_url, + t.data_mimeType, + t.data_headers, + t.data_keys, + e.initWithData + ); + else if (t.data_json) + e.initWithData(e.convertJsonToData(t.data_json, t.data_keys)); + else if (t.data_rows) + e.initWithData(e.convertRowsToData(t.data_rows)); + else { + if (!t.data_columns) + throw Error('url or json or rows or columns is required.'); + e.initWithData(e.convertColumnsToData(t.data_columns)); + } + }), + (o.prototype.initParams = function() { + var e = this, + t = e.d3, + n = e.config; + (e.clipId = 'c3-' + +new Date() + '-clip'), + (e.clipIdForXAxis = e.clipId + '-xaxis'), + (e.clipIdForYAxis = e.clipId + '-yaxis'), + (e.clipIdForGrid = e.clipId + '-grid'), + (e.clipIdForSubchart = e.clipId + '-subchart'), + (e.clipPath = e.getClipPath(e.clipId)), + (e.clipPathForXAxis = e.getClipPath(e.clipIdForXAxis)), + (e.clipPathForYAxis = e.getClipPath(e.clipIdForYAxis)), + (e.clipPathForGrid = e.getClipPath(e.clipIdForGrid)), + (e.clipPathForSubchart = e.getClipPath(e.clipIdForSubchart)), + (e.dragStart = null), + (e.dragging = !1), + (e.flowing = !1), + (e.cancelClick = !1), + (e.mouseover = void 0), + (e.transiting = !1), + (e.color = e.generateColor()), + (e.levelColor = e.generateLevelColor()), + (e.dataTimeParse = (n.data_xLocaltime ? t.timeParse : t.utcParse)( + e.config.data_xFormat )), - (window.SVGPathSegLinetoVerticalRel.prototype.toString = function() { - return '[object SVGPathSegLinetoVerticalRel]'; - }), - (window.SVGPathSegLinetoVerticalRel.prototype._asPathString = function() { - return this.pathSegTypeAsLetter + ' ' + this._y; - }), - (window.SVGPathSegLinetoVerticalRel.prototype.clone = function() { - return new window.SVGPathSegLinetoVerticalRel(void 0, this._y); - }), - Object.defineProperty( - window.SVGPathSegLinetoVerticalRel.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(e) { - (this._y = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegCurvetoCubicSmoothAbs = function(e, t, n, r, o) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS, - 'S', - e + (e.axisTimeFormat = n.axis_x_localtime + ? t.timeFormat + : t.utcFormat), + (e.defaultAxisTimeFormat = function(e) { + return e.getMilliseconds() + ? t.timeFormat('.%L')(e) + : e.getSeconds() + ? t.timeFormat(':%S')(e) + : e.getMinutes() + ? t.timeFormat('%I:%M')(e) + : e.getHours() + ? t.timeFormat('%I %p')(e) + : e.getDay() && 1 !== e.getDate() + ? t.timeFormat('%-m/%-d')(e) + : 1 !== e.getDate() + ? t.timeFormat('%-m/%-d')(e) + : e.getMonth() + ? t.timeFormat('%-m/%-d')(e) + : t.timeFormat('%Y/%-m/%-d')(e); + }), + (e.hiddenTargetIds = []), + (e.hiddenLegendIds = []), + (e.focusedTargetIds = []), + (e.defocusedTargetIds = []), + (e.xOrient = n.axis_rotated + ? n.axis_x_inner + ? 'right' + : 'left' + : n.axis_x_inner + ? 'top' + : 'bottom'), + (e.yOrient = n.axis_rotated + ? n.axis_y_inner + ? 'top' + : 'bottom' + : n.axis_y_inner + ? 'right' + : 'left'), + (e.y2Orient = n.axis_rotated + ? n.axis_y2_inner + ? 'bottom' + : 'top' + : n.axis_y2_inner + ? 'left' + : 'right'), + (e.subXOrient = n.axis_rotated ? 'left' : 'bottom'), + (e.isLegendRight = 'right' === n.legend_position), + (e.isLegendInset = 'inset' === n.legend_position), + (e.isLegendTop = + 'top-left' === n.legend_inset_anchor || + 'top-right' === n.legend_inset_anchor), + (e.isLegendLeft = + 'top-left' === n.legend_inset_anchor || + 'bottom-left' === n.legend_inset_anchor), + (e.legendStep = 0), + (e.legendItemWidth = 0), + (e.legendItemHeight = 0), + (e.currentMaxTickWidths = { x: 0, y: 0, y2: 0 }), + (e.rotated_padding_left = 30), + (e.rotated_padding_right = + n.axis_rotated && !n.axis_x_show ? 0 : 30), + (e.rotated_padding_top = 5), + (e.withoutFadeIn = {}), + (e.intervalForObserveInserted = void 0), + (e.axes.subx = t.selectAll([])); + }), + (o.prototype.initChartElements = function() { + this.initBar && this.initBar(), + this.initLine && this.initLine(), + this.initArc && this.initArc(), + this.initGauge && this.initGauge(), + this.initText && this.initText(); + }), + (o.prototype.initWithData = function(e) { + var t, + n, + r = this, + o = r.d3, + i = r.config, + a = !0; + (r.axis = new k(r)), + i.bindto + ? 'function' == typeof i.bindto.node + ? (r.selectChart = i.bindto) + : (r.selectChart = o.select(i.bindto)) + : (r.selectChart = o.selectAll([])), + r.selectChart.empty() && + ((r.selectChart = o + .select(document.createElement('div')) + .style('opacity', 0)), + r.observeInserted(r.selectChart), + (a = !1)), + r.selectChart.html('').classed('c3', !0), + (r.data.xs = {}), + (r.data.targets = r.convertDataToTargets(e)), + i.data_filter && + (r.data.targets = r.data.targets.filter(i.data_filter)), + i.data_hide && + r.addHiddenTargetIds( + !0 === i.data_hide ? r.mapToIds(r.data.targets) : i.data_hide ), - (this._x = t), - (this._y = n), - (this._x2 = r), - (this._y2 = o); - }), - (window.SVGPathSegCurvetoCubicSmoothAbs.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegCurvetoCubicSmoothAbs.prototype.toString = function() { - return '[object SVGPathSegCurvetoCubicSmoothAbs]'; - }), - (window.SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString = function() { - return ( - this.pathSegTypeAsLetter + - ' ' + - this._x2 + - ' ' + - this._y2 + - ' ' + - this._x + - ' ' + - this._y - ); - }), - (window.SVGPathSegCurvetoCubicSmoothAbs.prototype.clone = function() { - return new window.SVGPathSegCurvetoCubicSmoothAbs( - void 0, - this._x, - this._y, - this._x2, - this._y2 - ); - }), - Object.defineProperty( - window.SVGPathSegCurvetoCubicSmoothAbs.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(e) { - (this._x = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicSmoothAbs.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(e) { - (this._y = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicSmoothAbs.prototype, - 'x2', - { - get: function() { - return this._x2; - }, - set: function(e) { - (this._x2 = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicSmoothAbs.prototype, - 'y2', - { - get: function() { - return this._y2; - }, - set: function(e) { - (this._y2 = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegCurvetoCubicSmoothRel = function(e, t, n, r, o) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL, - 's', - e + i.legend_hide && + r.addHiddenLegendIds( + !0 === i.legend_hide + ? r.mapToIds(r.data.targets) + : i.legend_hide ), - (this._x = t), - (this._y = n), - (this._x2 = r), - (this._y2 = o); - }), - (window.SVGPathSegCurvetoCubicSmoothRel.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegCurvetoCubicSmoothRel.prototype.toString = function() { - return '[object SVGPathSegCurvetoCubicSmoothRel]'; - }), - (window.SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString = function() { - return ( - this.pathSegTypeAsLetter + - ' ' + - this._x2 + - ' ' + - this._y2 + - ' ' + - this._x + - ' ' + - this._y - ); - }), - (window.SVGPathSegCurvetoCubicSmoothRel.prototype.clone = function() { - return new window.SVGPathSegCurvetoCubicSmoothRel( - void 0, - this._x, - this._y, - this._x2, - this._y2 - ); - }), - Object.defineProperty( - window.SVGPathSegCurvetoCubicSmoothRel.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(e) { - (this._x = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicSmoothRel.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(e) { - (this._y = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicSmoothRel.prototype, - 'x2', - { - get: function() { - return this._x2; - }, - set: function(e) { - (this._x2 = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicSmoothRel.prototype, - 'y2', - { - get: function() { - return this._y2; - }, - set: function(e) { - (this._y2 = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegCurvetoQuadraticSmoothAbs = function(e, t, n) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS, - 'T', - e + r.isStanfordGraphType() && r.initStanfordData(), + r.updateSizes(), + r.updateScales(), + r.x.domain(o.extent(r.getXDomain(r.data.targets))), + r.y.domain(r.getYDomain(r.data.targets, 'y')), + r.y2.domain(r.getYDomain(r.data.targets, 'y2')), + r.subX.domain(r.x.domain()), + r.subY.domain(r.y.domain()), + r.subY2.domain(r.y2.domain()), + (r.orgXDomain = r.x.domain()), + (r.svg = r.selectChart + .append('svg') + .style('overflow', 'hidden') + .on('mouseenter', function() { + return i.onmouseover.call(r); + }) + .on('mouseleave', function() { + return i.onmouseout.call(r); + })), + r.config.svg_classname && + r.svg.attr('class', r.config.svg_classname), + (t = r.svg.append('defs')), + (r.clipChart = r.appendClip(t, r.clipId)), + (r.clipXAxis = r.appendClip(t, r.clipIdForXAxis)), + (r.clipYAxis = r.appendClip(t, r.clipIdForYAxis)), + (r.clipGrid = r.appendClip(t, r.clipIdForGrid)), + (r.clipSubchart = r.appendClip(t, r.clipIdForSubchart)), + r.updateSvgSize(), + (n = r.main = r.svg + .append('g') + .attr('transform', r.getTranslate('main'))), + r.initPie && r.initPie(), + r.initDragZoom && r.initDragZoom(), + i.subchart_show && r.initSubchart && r.initSubchart(), + r.initTooltip && r.initTooltip(), + r.initLegend && r.initLegend(), + r.initTitle && r.initTitle(), + r.initZoom && r.initZoom(), + r.isStanfordGraphType() && r.drawColorScale(), + i.subchart_show && r.initSubchartBrush && r.initSubchartBrush(), + n + .append('text') + .attr('class', M.text + ' ' + M.empty) + .attr('text-anchor', 'middle') + .attr('dominant-baseline', 'middle'), + r.initRegion(), + r.initGrid(), + n + .append('g') + .attr('clip-path', r.clipPath) + .attr('class', M.chart), + i.grid_lines_front && r.initGridLines(), + r.initStanfordElements(), + r.initEventRect(), + r.initChartElements(), + r.axis.init(), + r.updateTargets(r.data.targets), + i.axis_x_selection && + r.brush.selectionAsValue(r.getDefaultSelection()), + a && + (r.updateDimension(), + r.config.oninit.call(r), + r.redraw({ + withTransition: !1, + withTransform: !0, + withUpdateXDomain: !0, + withUpdateOrgXDomain: !0, + withTransitionForAxis: !1 + })), + r.bindResize(), + r.bindWindowFocus(), + (r.api.element = r.selectChart.node()); + }), + (o.prototype.smoothLines = function(e, t) { + var n = this; + 'grid' === t && + e.each(function() { + var e = n.d3.select(this), + t = e.attr('x1'), + r = e.attr('x2'), + o = e.attr('y1'), + i = e.attr('y2'); + e.attr({ + x1: Math.ceil(t), + x2: Math.ceil(r), + y1: Math.ceil(o), + y2: Math.ceil(i) + }); + }); + }), + (o.prototype.updateSizes = function() { + var e = this, + t = e.config, + n = e.legend ? e.getLegendHeight() : 0, + r = e.legend ? e.getLegendWidth() : 0, + o = e.isLegendRight || e.isLegendInset ? 0 : n, + i = e.hasArcType(), + a = t.axis_rotated || i ? 0 : e.getHorizontalAxisHeight('x'), + s = t.subchart_show && !i ? t.subchart_size_height + a : 0; + (e.currentWidth = e.getCurrentWidth()), + (e.currentHeight = e.getCurrentHeight()), + (e.margin = t.axis_rotated + ? { + top: + e.getHorizontalAxisHeight('y2') + e.getCurrentPaddingTop(), + right: i ? 0 : e.getCurrentPaddingRight(), + bottom: + e.getHorizontalAxisHeight('y') + + o + + e.getCurrentPaddingBottom(), + left: s + (i ? 0 : e.getCurrentPaddingLeft()) + } + : { + top: 4 + e.getCurrentPaddingTop(), + right: i ? 0 : e.getCurrentPaddingRight(), + bottom: a + s + o + e.getCurrentPaddingBottom(), + left: i ? 0 : e.getCurrentPaddingLeft() + }), + (e.margin2 = t.axis_rotated + ? { + top: e.margin.top, + right: NaN, + bottom: 20 + o, + left: e.rotated_padding_left + } + : { + top: e.currentHeight - s - o, + right: NaN, + bottom: a + o, + left: e.margin.left + }), + (e.margin3 = { top: 0, right: NaN, bottom: 0, left: 0 }), + e.updateSizeForLegend && e.updateSizeForLegend(n, r), + (e.width = e.currentWidth - e.margin.left - e.margin.right), + (e.height = e.currentHeight - e.margin.top - e.margin.bottom), + e.width < 0 && (e.width = 0), + e.height < 0 && (e.height = 0), + (e.width2 = t.axis_rotated + ? e.margin.left - e.rotated_padding_left - e.rotated_padding_right + : e.width), + (e.height2 = t.axis_rotated + ? e.height + : e.currentHeight - e.margin2.top - e.margin2.bottom), + e.width2 < 0 && (e.width2 = 0), + e.height2 < 0 && (e.height2 = 0), + (e.arcWidth = e.width - (e.isLegendRight ? r + 10 : 0)), + (e.arcHeight = e.height - (e.isLegendRight ? 0 : 10)), + e.hasType('gauge') && + !t.gauge_fullCircle && + (e.arcHeight += e.height - e.getGaugeLabelHeight()), + e.updateRadius && e.updateRadius(), + e.isLegendRight && + i && + (e.margin3.left = e.arcWidth / 2 + 1.1 * e.radiusExpanded); + }), + (o.prototype.updateTargets = function(e) { + var t = this, + n = t.config; + t.updateTargetsForText(e), + t.updateTargetsForBar(e), + t.updateTargetsForLine(e), + t.hasArcType() && t.updateTargetsForArc && t.updateTargetsForArc(e), + n.subchart_show && + t.updateTargetsForSubchart && + t.updateTargetsForSubchart(e), + t.showTargets(); + }), + (o.prototype.showTargets = function() { + var e = this; + e.svg + .selectAll('.' + M.target) + .filter(function(t) { + return e.isTargetToShow(t.id); + }) + .transition() + .duration(e.config.transition_duration) + .style('opacity', 1); + }), + (o.prototype.redraw = function(e, t) { + var n, + r, + o, + i, + a, + s, + c, + l, + f, + d, + p, + h, + g, + m, + b, + y, + v, + _, + w, + x, + k, + S, + O, + E, + A, + T, + C, + L, + P, + D, + j, + z = this, + N = z.main, + R = z.d3, + I = z.config, + F = z.getShapeIndices(z.isAreaType), + q = z.getShapeIndices(z.isBarType), + B = z.getShapeIndices(z.isLineType), + H = z.hasArcType(), + Y = z.filterTargetsToShow(z.data.targets), + W = z.xv.bind(z); + if ( + ((n = u((e = e || {}), 'withY', !0)), + (r = u(e, 'withSubchart', !0)), + (o = u(e, 'withTransition', !0)), + (s = u(e, 'withTransform', !1)), + (c = u(e, 'withUpdateXDomain', !1)), + (l = u(e, 'withUpdateOrgXDomain', !1)), + (f = u(e, 'withTrimXDomain', !0)), + (g = u(e, 'withUpdateXAxis', c)), + (d = u(e, 'withLegend', !1)), + (p = u(e, 'withEventRect', !0)), + (h = u(e, 'withDimension', !0)), + (i = u(e, 'withTransitionForExit', o)), + (a = u(e, 'withTransitionForAxis', o)), + (w = o ? I.transition_duration : 0), + (x = i ? w : 0), + (k = a ? w : 0), + (t = t || z.axis.generateTransitions(k)), + d && I.legend_show + ? z.updateLegend(z.mapToIds(z.data.targets), e, t) + : h && z.updateDimension(!0), + z.isCategorized() && + 0 === Y.length && + z.x.domain([0, z.axes.x.selectAll('.tick').size()]), + Y.length + ? (z.updateXDomain(Y, c, l, f), + I.axis_x_tick_values || (T = z.axis.updateXAxisTickValues(Y))) + : (z.xAxis.tickValues([]), z.subXAxis.tickValues([])), + I.zoom_rescale && !e.flow && (P = z.x.orgDomain()), + z.y.domain(z.getYDomain(Y, 'y', P)), + z.y2.domain(z.getYDomain(Y, 'y2', P)), + !I.axis_y_tick_values && + I.axis_y_tick_count && + z.yAxis.tickValues( + z.axis.generateTickValues(z.y.domain(), I.axis_y_tick_count) ), - (this._x = t), - (this._y = n); - }), - (window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString = function() { - return '[object SVGPathSegCurvetoQuadraticSmoothAbs]'; - }), - (window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString = function() { - return this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y; - }), - (window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone = function() { - return new window.SVGPathSegCurvetoQuadraticSmoothAbs( - void 0, - this._x, - this._y - ); - }), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(e) { - (this._x = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(e) { - (this._y = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegCurvetoQuadraticSmoothRel = function(e, t, n) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL, - 't', - e + !I.axis_y2_tick_values && + I.axis_y2_tick_count && + z.y2Axis.tickValues( + z.axis.generateTickValues(z.y2.domain(), I.axis_y2_tick_count) ), - (this._x = t), - (this._y = n); - }), - (window.SVGPathSegCurvetoQuadraticSmoothRel.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString = function() { - return '[object SVGPathSegCurvetoQuadraticSmoothRel]'; - }), - (window.SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString = function() { - return this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y; - }), - (window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone = function() { - return new window.SVGPathSegCurvetoQuadraticSmoothRel( - void 0, - this._x, - this._y - ); - }), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticSmoothRel.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(e) { - (this._x = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticSmoothRel.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(e) { - (this._y = e), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathElement.prototype.createSVGPathSegClosePath = function() { - return new window.SVGPathSegClosePath(void 0); - }), - (window.SVGPathElement.prototype.createSVGPathSegMovetoAbs = function( - e, - t - ) { - return new window.SVGPathSegMovetoAbs(void 0, e, t); - }), - (window.SVGPathElement.prototype.createSVGPathSegMovetoRel = function( - e, - t - ) { - return new window.SVGPathSegMovetoRel(void 0, e, t); - }), - (window.SVGPathElement.prototype.createSVGPathSegLinetoAbs = function( - e, - t - ) { - return new window.SVGPathSegLinetoAbs(void 0, e, t); - }), - (window.SVGPathElement.prototype.createSVGPathSegLinetoRel = function( - e, - t - ) { - return new window.SVGPathSegLinetoRel(void 0, e, t); - }), - (window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs = function( - e, - t, - n, - r, - o, - i - ) { - return new window.SVGPathSegCurvetoCubicAbs( - void 0, - e, - t, - n, - r, - o, - i - ); - }), - (window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel = function( - e, - t, - n, - r, - o, - i - ) { - return new window.SVGPathSegCurvetoCubicRel( - void 0, - e, - t, - n, - r, - o, - i - ); - }), - (window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs = function( - e, - t, - n, - r - ) { - return new window.SVGPathSegCurvetoQuadraticAbs( - void 0, - e, - t, - n, - r - ); - }), - (window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel = function( - e, - t, - n, - r - ) { - return new window.SVGPathSegCurvetoQuadraticRel( - void 0, - e, - t, - n, - r - ); - }), - (window.SVGPathElement.prototype.createSVGPathSegArcAbs = function( - e, - t, - n, - r, - o, - i, - a - ) { - return new window.SVGPathSegArcAbs(void 0, e, t, n, r, o, i, a); - }), - (window.SVGPathElement.prototype.createSVGPathSegArcRel = function( - e, - t, - n, - r, - o, - i, - a - ) { - return new window.SVGPathSegArcRel(void 0, e, t, n, r, o, i, a); - }), - (window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs = function( - e - ) { - return new window.SVGPathSegLinetoHorizontalAbs(void 0, e); - }), - (window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel = function( - e - ) { - return new window.SVGPathSegLinetoHorizontalRel(void 0, e); - }), - (window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs = function( - e - ) { - return new window.SVGPathSegLinetoVerticalAbs(void 0, e); - }), - (window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel = function( - e - ) { - return new window.SVGPathSegLinetoVerticalRel(void 0, e); - }), - (window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs = function( - e, - t, - n, - r - ) { - return new window.SVGPathSegCurvetoCubicSmoothAbs( - void 0, - e, - t, - n, - r - ); - }), - (window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel = function( - e, - t, - n, - r - ) { - return new window.SVGPathSegCurvetoCubicSmoothRel( - void 0, - e, - t, - n, - r - ); - }), - (window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs = function( - e, - t - ) { - return new window.SVGPathSegCurvetoQuadraticSmoothAbs( - void 0, - e, - t - ); - }), - (window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel = function( - e, - t - ) { - return new window.SVGPathSegCurvetoQuadraticSmoothRel( - void 0, - e, - t - ); - }), - 'getPathSegAtLength' in window.SVGPathElement.prototype || - (window.SVGPathElement.prototype.getPathSegAtLength = function( - e - ) { - if (void 0 === e || !isFinite(e)) throw 'Invalid arguments.'; - var t = document.createElementNS( - 'http://www.w3.org/2000/svg', - 'path' - ); - t.setAttribute('d', this.getAttribute('d')); - var n = t.pathSegList.numberOfItems - 1; - if (n <= 0) return 0; - do { - if ((t.pathSegList.removeItem(n), e > t.getTotalLength())) - break; - n--; - } while (n > 0); - return n; + z.axis.redraw(k, H), + z.axis.updateLabels(o), + (c || g) && Y.length) + ) + if (I.axis_x_tick_culling && T) { + for (C = 1; C < T.length; C++) + if (T.length / C < I.axis_x_tick_culling_max) { + L = C; + break; + } + z.svg.selectAll('.' + M.axisX + ' .tick text').each(function(e) { + var t = T.indexOf(e); + t >= 0 && + R.select(this).style('display', t % L ? 'none' : 'block'); + }); + } else + z.svg + .selectAll('.' + M.axisX + ' .tick text') + .style('display', 'block'); + (m = z.generateDrawArea ? z.generateDrawArea(F, !1) : void 0), + (b = z.generateDrawBar ? z.generateDrawBar(q) : void 0), + (y = z.generateDrawLine ? z.generateDrawLine(B, !1) : void 0), + (v = z.generateXYForText(F, q, B, !0)), + (_ = z.generateXYForText(F, q, B, !1)), + z.updateCircleY(), + (D = (z.config.axis_rotated ? z.circleY : z.circleX).bind(z)), + (j = (z.config.axis_rotated ? z.circleX : z.circleY).bind(z)), + n && + (z.subY.domain(z.getYDomain(Y, 'y')), + z.subY2.domain(z.getYDomain(Y, 'y2'))), + z.updateXgridFocus(), + N.select('text.' + M.text + '.' + M.empty) + .attr('x', z.width / 2) + .attr('y', z.height / 2) + .text(I.data_empty_label_text) + .transition() + .style('opacity', Y.length ? 0 : 1), + p && z.redrawEventRect(), + z.updateGrid(w), + z.updateStanfordElements(w), + z.updateRegion(w), + z.updateBar(x), + z.updateLine(x), + z.updateArea(x), + z.updateCircle(D, j), + z.hasDataLabel() && z.updateText(v, _, x), + z.redrawTitle && z.redrawTitle(), + z.redrawArc && z.redrawArc(w, x, s), + I.subchart_show && + z.redrawSubchart && + z.redrawSubchart(r, t, w, x, F, q, B), + z.isStanfordGraphType() && z.drawColorScale(), + N.selectAll('.' + M.selectedCircles) + .filter(z.isBarType.bind(z)) + .selectAll('circle') + .remove(), + e.flow && + (E = z.generateFlow({ + targets: Y, + flow: e.flow, + duration: e.flow.duration, + drawBar: b, + drawLine: y, + drawArea: m, + cx: D, + cy: j, + xv: W, + xForText: v, + yForText: _ })), - 'SVGPathSegList' in window || - ((window.SVGPathSegList = function(e) { - (this._pathElement = e), - (this._list = this._parsePath( - this._pathElement.getAttribute('d') - )), - (this._mutationObserverConfig = { - attributes: !0, - attributeFilter: ['d'] - }), - (this._pathElementMutationObserver = new MutationObserver( - this._updateListFromPathMutations.bind(this) - )), - this._pathElementMutationObserver.observe( - this._pathElement, - this._mutationObserverConfig - ); - }), - (window.SVGPathSegList.prototype.classname = 'SVGPathSegList'), - Object.defineProperty( - window.SVGPathSegList.prototype, - 'numberOfItems', - { - get: function() { - return this._checkPathSynchronizedToList(), this._list.length; - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathElement.prototype, - 'pathSegList', - { - get: function() { - return ( - this._pathSegList || - (this._pathSegList = new window.SVGPathSegList(this)), - this._pathSegList - ); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathElement.prototype, - 'normalizedPathSegList', - { - get: function() { - return this.pathSegList; - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathElement.prototype, - 'animatedPathSegList', - { - get: function() { - return this.pathSegList; - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathElement.prototype, - 'animatedNormalizedPathSegList', - { - get: function() { - return this.pathSegList; - }, - enumerable: !0 - } - ), - (window.SVGPathSegList.prototype._checkPathSynchronizedToList = function() { - this._updateListFromPathMutations( - this._pathElementMutationObserver.takeRecords() - ); - }), - (window.SVGPathSegList.prototype._updateListFromPathMutations = function( - e - ) { - if (this._pathElement) { - var t = !1; - e.forEach(function(e) { - 'd' == e.attributeName && (t = !0); - }), - t && - (this._list = this._parsePath( - this._pathElement.getAttribute('d') - )); - } - }), - (window.SVGPathSegList.prototype._writeListToPath = function() { - this._pathElementMutationObserver.disconnect(), - this._pathElement.setAttribute( - 'd', - window.SVGPathSegList._pathSegArrayAsString(this._list) - ), - this._pathElementMutationObserver.observe( - this._pathElement, - this._mutationObserverConfig - ); - }), - (window.SVGPathSegList.prototype.segmentChanged = function(e) { - this._writeListToPath(); - }), - (window.SVGPathSegList.prototype.clear = function() { - this._checkPathSynchronizedToList(), - this._list.forEach(function(e) { - e._owningPathSegList = null; - }), - (this._list = []), - this._writeListToPath(); - }), - (window.SVGPathSegList.prototype.initialize = function(e) { - return ( - this._checkPathSynchronizedToList(), - (this._list = [e]), - (e._owningPathSegList = this), - this._writeListToPath(), - e - ); - }), - (window.SVGPathSegList.prototype._checkValidIndex = function(e) { - if (isNaN(e) || e < 0 || e >= this.numberOfItems) - throw 'INDEX_SIZE_ERR'; - }), - (window.SVGPathSegList.prototype.getItem = function(e) { - return ( - this._checkPathSynchronizedToList(), - this._checkValidIndex(e), - this._list[e] - ); - }), - (window.SVGPathSegList.prototype.insertItemBefore = function(e, t) { - return ( - this._checkPathSynchronizedToList(), - t > this.numberOfItems && (t = this.numberOfItems), - e._owningPathSegList && (e = e.clone()), - this._list.splice(t, 0, e), - (e._owningPathSegList = this), - this._writeListToPath(), - e - ); - }), - (window.SVGPathSegList.prototype.replaceItem = function(e, t) { - return ( - this._checkPathSynchronizedToList(), - e._owningPathSegList && (e = e.clone()), - this._checkValidIndex(t), - (this._list[t] = e), - (e._owningPathSegList = this), - this._writeListToPath(), - e - ); - }), - (window.SVGPathSegList.prototype.removeItem = function(e) { - this._checkPathSynchronizedToList(), this._checkValidIndex(e); - var t = this._list[e]; - return this._list.splice(e, 1), this._writeListToPath(), t; - }), - (window.SVGPathSegList.prototype.appendItem = function(e) { - return ( - this._checkPathSynchronizedToList(), - e._owningPathSegList && (e = e.clone()), - this._list.push(e), - (e._owningPathSegList = this), - this._writeListToPath(), - e - ); - }), - (window.SVGPathSegList._pathSegArrayAsString = function(e) { - var t = '', - n = !0; - return ( - e.forEach(function(e) { - n - ? ((n = !1), (t += e._asPathString())) - : (t += ' ' + e._asPathString()); - }), - t - ); - }), - (window.SVGPathSegList.prototype._parsePath = function(e) { - if (!e || 0 == e.length) return []; - var t = this, - n = function() { - this.pathSegList = []; - }; - n.prototype.appendSegment = function(e) { - this.pathSegList.push(e); - }; - var r = function(e) { - (this._string = e), - (this._currentIndex = 0), - (this._endIndex = this._string.length), - (this._previousCommand = window.SVGPathSeg.PATHSEG_UNKNOWN), - this._skipOptionalSpaces(); - }; - (r.prototype._isCurrentSpace = function() { - var e = this._string[this._currentIndex]; - return ( - e <= ' ' && - (' ' == e || '\n' == e || '\t' == e || '\r' == e || '\f' == e) - ); - }), - (r.prototype._skipOptionalSpaces = function() { - for ( - ; - this._currentIndex < this._endIndex && - this._isCurrentSpace(); - - ) - this._currentIndex++; - return this._currentIndex < this._endIndex; - }), - (r.prototype._skipOptionalSpacesOrDelimiter = function() { - return ( - !( - this._currentIndex < this._endIndex && - !this._isCurrentSpace() && - ',' != this._string.charAt(this._currentIndex) - ) && - (this._skipOptionalSpaces() && - this._currentIndex < this._endIndex && - ',' == this._string.charAt(this._currentIndex) && - (this._currentIndex++, this._skipOptionalSpaces()), - this._currentIndex < this._endIndex) - ); - }), - (r.prototype.hasMoreData = function() { - return this._currentIndex < this._endIndex; - }), - (r.prototype.peekSegmentType = function() { - var e = this._string[this._currentIndex]; - return this._pathSegTypeFromChar(e); - }), - (r.prototype._pathSegTypeFromChar = function(e) { - switch (e) { - case 'Z': - case 'z': - return window.SVGPathSeg.PATHSEG_CLOSEPATH; - case 'M': - return window.SVGPathSeg.PATHSEG_MOVETO_ABS; - case 'm': - return window.SVGPathSeg.PATHSEG_MOVETO_REL; - case 'L': - return window.SVGPathSeg.PATHSEG_LINETO_ABS; - case 'l': - return window.SVGPathSeg.PATHSEG_LINETO_REL; - case 'C': - return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS; - case 'c': - return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL; - case 'Q': - return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS; - case 'q': - return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL; - case 'A': - return window.SVGPathSeg.PATHSEG_ARC_ABS; - case 'a': - return window.SVGPathSeg.PATHSEG_ARC_REL; - case 'H': - return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS; - case 'h': - return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL; - case 'V': - return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS; - case 'v': - return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL; - case 'S': - return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS; - case 's': - return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL; - case 'T': - return window.SVGPathSeg - .PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS; - case 't': - return window.SVGPathSeg - .PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL; - default: - return window.SVGPathSeg.PATHSEG_UNKNOWN; - } - }), - (r.prototype._nextCommandHelper = function(e, t) { - return ('+' == e || - '-' == e || - '.' == e || - (e >= '0' && e <= '9')) && - t != window.SVGPathSeg.PATHSEG_CLOSEPATH - ? t == window.SVGPathSeg.PATHSEG_MOVETO_ABS - ? window.SVGPathSeg.PATHSEG_LINETO_ABS - : t == window.SVGPathSeg.PATHSEG_MOVETO_REL - ? window.SVGPathSeg.PATHSEG_LINETO_REL - : t - : window.SVGPathSeg.PATHSEG_UNKNOWN; - }), - (r.prototype.initialCommandIsMoveTo = function() { - if (!this.hasMoreData()) return !0; - var e = this.peekSegmentType(); - return ( - e == window.SVGPathSeg.PATHSEG_MOVETO_ABS || - e == window.SVGPathSeg.PATHSEG_MOVETO_REL - ); - }), - (r.prototype._parseNumber = function() { - var e = 0, - t = 0, - n = 1, - r = 0, - o = 1, - i = 1, - a = this._currentIndex; - if ( - (this._skipOptionalSpaces(), - this._currentIndex < this._endIndex && - '+' == this._string.charAt(this._currentIndex) - ? this._currentIndex++ - : this._currentIndex < this._endIndex && - '-' == this._string.charAt(this._currentIndex) && - (this._currentIndex++, (o = -1)), - !( - this._currentIndex == this._endIndex || - ((this._string.charAt(this._currentIndex) < '0' || - this._string.charAt(this._currentIndex) > '9') && - '.' != this._string.charAt(this._currentIndex)) - )) - ) { - for ( - var s = this._currentIndex; - this._currentIndex < this._endIndex && - this._string.charAt(this._currentIndex) >= '0' && - this._string.charAt(this._currentIndex) <= '9'; - - ) - this._currentIndex++; - if (this._currentIndex != s) - for (var c = this._currentIndex - 1, u = 1; c >= s; ) - (t += u * (this._string.charAt(c--) - '0')), (u *= 10); - if ( - this._currentIndex < this._endIndex && - '.' == this._string.charAt(this._currentIndex) - ) { - if ( - (this._currentIndex++, - this._currentIndex >= this._endIndex || - this._string.charAt(this._currentIndex) < '0' || - this._string.charAt(this._currentIndex) > '9') - ) - return; - for ( - ; - this._currentIndex < this._endIndex && - this._string.charAt(this._currentIndex) >= '0' && - this._string.charAt(this._currentIndex) <= '9'; - - ) - (n *= 10), - (r += - (this._string.charAt(this._currentIndex) - '0') / - n), - (this._currentIndex += 1); - } - if ( - this._currentIndex != a && - this._currentIndex + 1 < this._endIndex && - ('e' == this._string.charAt(this._currentIndex) || - 'E' == this._string.charAt(this._currentIndex)) && - 'x' != this._string.charAt(this._currentIndex + 1) && - 'm' != this._string.charAt(this._currentIndex + 1) - ) { - if ( - (this._currentIndex++, - '+' == this._string.charAt(this._currentIndex) - ? this._currentIndex++ - : '-' == this._string.charAt(this._currentIndex) && - (this._currentIndex++, (i = -1)), - this._currentIndex >= this._endIndex || - this._string.charAt(this._currentIndex) < '0' || - this._string.charAt(this._currentIndex) > '9') - ) - return; - for ( - ; - this._currentIndex < this._endIndex && - this._string.charAt(this._currentIndex) >= '0' && - this._string.charAt(this._currentIndex) <= '9'; - - ) - (e *= 10), - (e += this._string.charAt(this._currentIndex) - '0'), - this._currentIndex++; - } - var l = t + r; - if ( - ((l *= o), - e && (l *= Math.pow(10, i * e)), - a != this._currentIndex) - ) - return this._skipOptionalSpacesOrDelimiter(), l; - } + w && z.isTabVisible() + ? ((A = R.transition().duration(w)), + (S = []), + [ + z.redrawBar(b, !0, A), + z.redrawLine(y, !0, A), + z.redrawArea(m, !0, A), + z.redrawCircle(D, j, !0, A), + z.redrawText(v, _, e.flow, !0, A), + z.redrawRegion(!0, A), + z.redrawGrid(!0, A) + ].forEach(function(e) { + e.forEach(function(e) { + S.push(e); + }); }), - (r.prototype._parseArcFlag = function() { - if (!(this._currentIndex >= this._endIndex)) { - var e = !1, - t = this._string.charAt(this._currentIndex++); - if ('0' == t) e = !1; - else { - if ('1' != t) return; - e = !0; - } - return this._skipOptionalSpacesOrDelimiter(), e; - } + (O = z.generateWait()), + S.forEach(function(e) { + O.add(e); }), - (r.prototype.parseSegment = function() { - var e = this._string[this._currentIndex], - n = this._pathSegTypeFromChar(e); - if (n == window.SVGPathSeg.PATHSEG_UNKNOWN) { - if ( - this._previousCommand == window.SVGPathSeg.PATHSEG_UNKNOWN - ) - return null; - if ( - (n = this._nextCommandHelper(e, this._previousCommand)) == - window.SVGPathSeg.PATHSEG_UNKNOWN - ) - return null; - } else this._currentIndex++; - switch (((this._previousCommand = n), n)) { - case window.SVGPathSeg.PATHSEG_MOVETO_REL: - return new window.SVGPathSegMovetoRel( - t, - this._parseNumber(), - this._parseNumber() - ); - case window.SVGPathSeg.PATHSEG_MOVETO_ABS: - return new window.SVGPathSegMovetoAbs( - t, - this._parseNumber(), - this._parseNumber() - ); - case window.SVGPathSeg.PATHSEG_LINETO_REL: - return new window.SVGPathSegLinetoRel( - t, - this._parseNumber(), - this._parseNumber() - ); - case window.SVGPathSeg.PATHSEG_LINETO_ABS: - return new window.SVGPathSegLinetoAbs( - t, - this._parseNumber(), - this._parseNumber() - ); - case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL: - return new window.SVGPathSegLinetoHorizontalRel( - t, - this._parseNumber() - ); - case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS: - return new window.SVGPathSegLinetoHorizontalAbs( - t, - this._parseNumber() - ); - case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL: - return new window.SVGPathSegLinetoVerticalRel( - t, - this._parseNumber() - ); - case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS: - return new window.SVGPathSegLinetoVerticalAbs( - t, - this._parseNumber() - ); - case window.SVGPathSeg.PATHSEG_CLOSEPATH: - return ( - this._skipOptionalSpaces(), - new window.SVGPathSegClosePath(t) - ); - case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL: - var r = { - x1: this._parseNumber(), - y1: this._parseNumber(), - x2: this._parseNumber(), - y2: this._parseNumber(), - x: this._parseNumber(), - y: this._parseNumber() - }; - return new window.SVGPathSegCurvetoCubicRel( - t, - r.x, - r.y, - r.x1, - r.y1, - r.x2, - r.y2 - ); - case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS: - return ( - (r = { - x1: this._parseNumber(), - y1: this._parseNumber(), - x2: this._parseNumber(), - y2: this._parseNumber(), - x: this._parseNumber(), - y: this._parseNumber() - }), - new window.SVGPathSegCurvetoCubicAbs( - t, - r.x, - r.y, - r.x1, - r.y1, - r.x2, - r.y2 - ) - ); - case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL: - return ( - (r = { - x2: this._parseNumber(), - y2: this._parseNumber(), - x: this._parseNumber(), - y: this._parseNumber() - }), - new window.SVGPathSegCurvetoCubicSmoothRel( - t, - r.x, - r.y, - r.x2, - r.y2 - ) - ); - case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: - return ( - (r = { - x2: this._parseNumber(), - y2: this._parseNumber(), - x: this._parseNumber(), - y: this._parseNumber() - }), - new window.SVGPathSegCurvetoCubicSmoothAbs( - t, - r.x, - r.y, - r.x2, - r.y2 - ) - ); - case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL: - return ( - (r = { - x1: this._parseNumber(), - y1: this._parseNumber(), - x: this._parseNumber(), - y: this._parseNumber() - }), - new window.SVGPathSegCurvetoQuadraticRel( - t, - r.x, - r.y, - r.x1, - r.y1 - ) - ); - case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS: - return ( - (r = { - x1: this._parseNumber(), - y1: this._parseNumber(), - x: this._parseNumber(), - y: this._parseNumber() - }), - new window.SVGPathSegCurvetoQuadraticAbs( - t, - r.x, - r.y, - r.x1, - r.y1 - ) - ); - case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: - return new window.SVGPathSegCurvetoQuadraticSmoothRel( - t, - this._parseNumber(), - this._parseNumber() - ); - case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: - return new window.SVGPathSegCurvetoQuadraticSmoothAbs( - t, - this._parseNumber(), - this._parseNumber() - ); - case window.SVGPathSeg.PATHSEG_ARC_REL: - return ( - (r = { - x1: this._parseNumber(), - y1: this._parseNumber(), - arcAngle: this._parseNumber(), - arcLarge: this._parseArcFlag(), - arcSweep: this._parseArcFlag(), - x: this._parseNumber(), - y: this._parseNumber() - }), - new window.SVGPathSegArcRel( - t, - r.x, - r.y, - r.x1, - r.y1, - r.arcAngle, - r.arcLarge, - r.arcSweep - ) - ); - case window.SVGPathSeg.PATHSEG_ARC_ABS: - return ( - (r = { - x1: this._parseNumber(), - y1: this._parseNumber(), - arcAngle: this._parseNumber(), - arcLarge: this._parseArcFlag(), - arcSweep: this._parseArcFlag(), - x: this._parseNumber(), - y: this._parseNumber() - }), - new window.SVGPathSegArcAbs( - t, - r.x, - r.y, - r.x1, - r.y1, - r.arcAngle, - r.arcLarge, - r.arcSweep - ) - ); - default: - throw 'Unknown path seg type.'; - } + O(function() { + E && E(), I.onrendered && I.onrendered.call(z); + })) + : (z.redrawBar(b), + z.redrawLine(y), + z.redrawArea(m), + z.redrawCircle(D, j), + z.redrawText(v, _, e.flow), + z.redrawRegion(), + z.redrawGrid(), + E && E(), + I.onrendered && I.onrendered.call(z)), + z.mapToIds(z.data.targets).forEach(function(e) { + z.withoutFadeIn[e] = !0; + }); + }), + (o.prototype.updateAndRedraw = function(e) { + var t, + n = this, + r = n.config; + ((e = e || {}).withTransition = u(e, 'withTransition', !0)), + (e.withTransform = u(e, 'withTransform', !1)), + (e.withLegend = u(e, 'withLegend', !1)), + (e.withUpdateXDomain = u(e, 'withUpdateXDomain', !0)), + (e.withUpdateOrgXDomain = u(e, 'withUpdateOrgXDomain', !0)), + (e.withTransitionForExit = !1), + (e.withTransitionForTransform = u( + e, + 'withTransitionForTransform', + e.withTransition + )), + n.updateSizes(), + (e.withLegend && r.legend_show) || + ((t = n.axis.generateTransitions( + e.withTransitionForAxis ? r.transition_duration : 0 + )), + n.updateScales(), + n.updateSvgSize(), + n.transformAll(e.withTransitionForTransform, t)), + n.redraw(e, t); + }), + (o.prototype.redrawWithoutRescale = function() { + this.redraw({ + withY: !1, + withSubchart: !1, + withEventRect: !1, + withTransitionForAxis: !1 + }); + }), + (o.prototype.isTimeSeries = function() { + return 'timeseries' === this.config.axis_x_type; + }), + (o.prototype.isCategorized = function() { + return this.config.axis_x_type.indexOf('categor') >= 0; + }), + (o.prototype.isCustomX = function() { + var e = this.config; + return !this.isTimeSeries() && (e.data_x || _(e.data_xs)); + }), + (o.prototype.isTimeSeriesY = function() { + return 'timeseries' === this.config.axis_y_type; + }), + (o.prototype.getTranslate = function(e) { + var t, + n, + r = this, + o = r.config; + return ( + 'main' === e + ? ((t = a(r.margin.left)), (n = a(r.margin.top))) + : 'context' === e + ? ((t = a(r.margin2.left)), (n = a(r.margin2.top))) + : 'legend' === e + ? ((t = r.margin3.left), (n = r.margin3.top)) + : 'x' === e + ? ((t = 0), (n = o.axis_rotated ? 0 : r.height)) + : 'y' === e + ? ((t = 0), (n = o.axis_rotated ? r.height : 0)) + : 'y2' === e + ? ((t = o.axis_rotated ? 0 : r.width), + (n = o.axis_rotated ? 1 : 0)) + : 'subx' === e + ? ((t = 0), (n = o.axis_rotated ? 0 : r.height2)) + : 'arc' === e && + ((t = r.arcWidth / 2), + (n = r.arcHeight / 2 - (r.hasType('gauge') ? 6 : 0))), + 'translate(' + t + ',' + n + ')' + ); + }), + (o.prototype.initialOpacity = function(e) { + return null !== e.value && this.withoutFadeIn[e.id] ? 1 : 0; + }), + (o.prototype.initialOpacityForCircle = function(e) { + return null !== e.value && this.withoutFadeIn[e.id] + ? this.opacityForCircle(e) + : 0; + }), + (o.prototype.opacityForCircle = function(e) { + var t = + (g(this.config.point_show) + ? this.config.point_show(e) + : this.config.point_show) || this.isStanfordType(e) + ? 1 + : 0; + return v(e.value) ? (this.isScatterType(e) ? 0.5 : t) : 0; + }), + (o.prototype.opacityForText = function() { + return this.hasDataLabel() ? 1 : 0; + }), + (o.prototype.xx = function(e) { + return e ? this.x(e.x) : null; + }), + (o.prototype.xvCustom = function(e, t) { + var n = this, + r = t ? e[t] : e.value; + return ( + n.isTimeSeries() + ? (r = n.parseDate(e.value)) + : n.isCategorized() && + 'string' == typeof e.value && + (r = n.config.axis_x_categories.indexOf(e.value)), + Math.ceil(n.x(r)) + ); + }), + (o.prototype.yvCustom = function(e, t) { + var n = e.axis && 'y2' === e.axis ? this.y2 : this.y, + r = t ? e[t] : e.value; + return Math.ceil(n(r)); + }), + (o.prototype.xv = function(e) { + var t = this, + n = e.value; + return ( + t.isTimeSeries() + ? (n = t.parseDate(e.value)) + : t.isCategorized() && + 'string' == typeof e.value && + (n = t.config.axis_x_categories.indexOf(e.value)), + Math.ceil(t.x(n)) + ); + }), + (o.prototype.yv = function(e) { + var t = e.axis && 'y2' === e.axis ? this.y2 : this.y; + return Math.ceil(t(e.value)); + }), + (o.prototype.subxx = function(e) { + return e ? this.subX(e.x) : null; + }), + (o.prototype.transformMain = function(e, t) { + var n, + r, + o, + i = this; + t && t.axisX + ? (n = t.axisX) + : ((n = i.main.select('.' + M.axisX)), e && (n = n.transition())), + t && t.axisY + ? (r = t.axisY) + : ((r = i.main.select('.' + M.axisY)), e && (r = r.transition())), + t && t.axisY2 + ? (o = t.axisY2) + : ((o = i.main.select('.' + M.axisY2)), + e && (o = o.transition())), + (e ? i.main.transition() : i.main).attr( + 'transform', + i.getTranslate('main') + ), + n.attr('transform', i.getTranslate('x')), + r.attr('transform', i.getTranslate('y')), + o.attr('transform', i.getTranslate('y2')), + i.main + .select('.' + M.chartArcs) + .attr('transform', i.getTranslate('arc')); + }), + (o.prototype.transformAll = function(e, t) { + var n = this; + n.transformMain(e, t), + n.config.subchart_show && n.transformContext(e, t), + n.legend && n.transformLegend(e); + }), + (o.prototype.updateSvgSize = function() { + var e = this, + t = e.svg.select(`.${M.brush} .overlay`); + e.svg.attr('width', e.currentWidth).attr('height', e.currentHeight), + e.svg + .selectAll(['#' + e.clipId, '#' + e.clipIdForGrid]) + .select('rect') + .attr('width', e.width) + .attr('height', e.height), + e.svg + .select('#' + e.clipIdForXAxis) + .select('rect') + .attr('x', e.getXAxisClipX.bind(e)) + .attr('y', e.getXAxisClipY.bind(e)) + .attr('width', e.getXAxisClipWidth.bind(e)) + .attr('height', e.getXAxisClipHeight.bind(e)), + e.svg + .select('#' + e.clipIdForYAxis) + .select('rect') + .attr('x', e.getYAxisClipX.bind(e)) + .attr('y', e.getYAxisClipY.bind(e)) + .attr('width', e.getYAxisClipWidth.bind(e)) + .attr('height', e.getYAxisClipHeight.bind(e)), + e.svg + .select('#' + e.clipIdForSubchart) + .select('rect') + .attr('width', e.width) + .attr('height', (t.size() && t.attr('height')) || 0), + e.selectChart.style('max-height', e.currentHeight + 'px'); + }), + (o.prototype.updateDimension = function(e) { + var t = this; + e || + (t.config.axis_rotated + ? (t.axes.x.call(t.xAxis), t.axes.subx.call(t.subXAxis)) + : (t.axes.y.call(t.yAxis), t.axes.y2.call(t.y2Axis))), + t.updateSizes(), + t.updateScales(), + t.updateSvgSize(), + t.transformAll(!1); + }), + (o.prototype.observeInserted = function(e) { + var t, + n = this; + 'undefined' != typeof MutationObserver + ? (t = new MutationObserver(function(r) { + r.forEach(function(r) { + 'childList' === r.type && + r.previousSibling && + (t.disconnect(), + (n.intervalForObserveInserted = window.setInterval( + function() { + e.node().parentNode && + (window.clearInterval(n.intervalForObserveInserted), + n.updateDimension(), + n.brush && n.brush.update(), + n.config.oninit.call(n), + n.redraw({ + withTransform: !0, + withUpdateXDomain: !0, + withUpdateOrgXDomain: !0, + withTransition: !1, + withTransitionForTransform: !1, + withLegend: !0 + }), + e.transition().style('opacity', 1)); + }, + 10 + ))); }); - var o = new n(), - i = new r(e); - if (!i.initialCommandIsMoveTo()) return []; - for (; i.hasMoreData(); ) { - var a = i.parseSegment(); - if (!a) return []; - o.appendSegment(a); - } - return o.pathSegList; - })), - String.prototype.padEnd || - (String.prototype.padEnd = function(e, t) { - return ( - (e >>= 0), - (t = String(void 0 !== t ? t : ' ')), - this.length > e - ? String(this) - : ((e -= this.length) > t.length && - (t += t.repeat(e / t.length)), - String(this) + t.slice(0, e)) - ); + })).observe(e.node(), { + attributes: !0, + childList: !0, + characterData: !0 + }) + : window.console.error('MutationObserver not defined.'); + }), + (o.prototype.bindResize = function() { + var e = this, + t = e.config; + if ( + ((e.resizeFunction = e.generateResize()), + e.resizeFunction.add(function() { + t.onresize.call(e); }), - 'function' != typeof Object.assign && - Object.defineProperty(Object, 'assign', { - value: function(e, t) { - if (null == e) - throw new TypeError( - 'Cannot convert undefined or null to object' - ); - for (var n = Object(e), r = 1; r < arguments.length; r++) { - var o = arguments[r]; - if (null != o) - for (var i in o) - Object.prototype.hasOwnProperty.call(o, i) && - (n[i] = o[i]); + t.resize_auto && + e.resizeFunction.add(function() { + void 0 !== e.resizeTimeout && + window.clearTimeout(e.resizeTimeout), + (e.resizeTimeout = window.setTimeout(function() { + delete e.resizeTimeout, + e.updateAndRedraw({ + withUpdateXDomain: !1, + withUpdateOrgXDomain: !1, + withTransition: !1, + withTransitionForTransform: !1, + withLegend: !0 + }), + e.brush && e.brush.update(); + }, 100)); + }), + e.resizeFunction.add(function() { + t.onresized.call(e); + }), + (e.resizeIfElementDisplayed = function() { + null != e.api && e.api.element.offsetParent && e.resizeFunction(); + }), + window.attachEvent) + ) + window.attachEvent('onresize', e.resizeIfElementDisplayed); + else if (window.addEventListener) + window.addEventListener('resize', e.resizeIfElementDisplayed, !1); + else { + var n = window.onresize; + n + ? (n.add && n.remove) || + (n = e.generateResize()).add(window.onresize) + : (n = e.generateResize()), + n.add(e.resizeFunction), + (window.onresize = function() { + e.api.element.offsetParent && n(); + }); + } + }), + (o.prototype.bindWindowFocus = function() { + this.windowFocusHandler || + ((this.windowFocusHandler = () => { + this.redraw(); + }), + window.addEventListener('focus', this.windowFocusHandler)); + }), + (o.prototype.unbindWindowFocus = function() { + window.removeEventListener('focus', this.windowFocusHandler), + delete this.windowFocusHandler; + }), + (o.prototype.generateResize = function() { + var e = []; + function t() { + e.forEach(function(e) { + e(); + }); + } + return ( + (t.add = function(t) { + e.push(t); + }), + (t.remove = function(t) { + for (var n = 0; n < e.length; n++) + if (e[n] === t) { + e.splice(n, 1); + break; } - return n; - }, - writable: !0, - configurable: !0 }), - (o.prototype.axis = function() {}), - (o.prototype.axis.labels = function(e) { - var t = this.internal; - arguments.length && - (Object.keys(e).forEach(function(n) { - t.axis.setLabelText(n, e[n]); - }), - t.axis.updateLabels()); - }), - (o.prototype.axis.max = function(t) { - var n = this.internal, - r = n.config; - if (!arguments.length) - return { x: r.axis_x_max, y: r.axis_y_max, y2: r.axis_y2_max }; - 'object' === e(t) - ? (y(t.x) && (r.axis_x_max = t.x), - y(t.y) && (r.axis_y_max = t.y), - y(t.y2) && (r.axis_y2_max = t.y2)) - : (r.axis_y_max = r.axis_y2_max = t), - n.redraw({ withUpdateOrgXDomain: !0, withUpdateXDomain: !0 }); - }), - (o.prototype.axis.min = function(t) { - var n = this.internal, - r = n.config; - if (!arguments.length) - return { x: r.axis_x_min, y: r.axis_y_min, y2: r.axis_y2_min }; - 'object' === e(t) - ? (y(t.x) && (r.axis_x_min = t.x), - y(t.y) && (r.axis_y_min = t.y), - y(t.y2) && (r.axis_y2_min = t.y2)) - : (r.axis_y_min = r.axis_y2_min = t), - n.redraw({ withUpdateOrgXDomain: !0, withUpdateXDomain: !0 }); - }), - (o.prototype.axis.range = function(e) { - if (!arguments.length) - return { max: this.axis.max(), min: this.axis.min() }; - d(e.max) && this.axis.max(e.max), d(e.min) && this.axis.min(e.min); - }), - (o.prototype.axis.types = function(e) { - var t = this.internal; - if (void 0 === e) - return { y: t.config.axis_y_type, y2: t.config.axis_y2_type }; - d(e.y) && (t.config.axis_y_type = e.y), - d(e.y2) && (t.config.axis_y2_type = e.y2), - t.updateScales(), - t.redraw(); - }), - (o.prototype.category = function(e, t) { - var n = this.internal, - r = n.config; - return ( - arguments.length > 1 && - ((r.axis_x_categories[e] = t), n.redraw()), - r.axis_x_categories[e] + t + ); + }), + (o.prototype.endall = function(e, t) { + var n = 0; + e.each(function() { + ++n; + }).on('end', function() { + --n || t.apply(this, arguments); + }); + }), + (o.prototype.generateWait = function() { + var e = this, + t = [], + n = function(n) { + var r = setInterval(function() { + if (e.isTabVisible()) { + var o = 0; + t.forEach(function(e) { + if (e.empty()) o += 1; + else + try { + e.transition(); + } catch (e) { + o += 1; + } + }), + o === t.length && (clearInterval(r), n && n()); + } + }, 50); + }; + return ( + (n.add = function(e) { + t.push(e); + }), + n + ); + }), + (o.prototype.parseDate = function(e) { + var t; + return ( + e instanceof Date + ? (t = e) + : 'string' == typeof e + ? (t = this.dataTimeParse(e)) + : 'object' == typeof e + ? (t = new Date(+e)) + : 'number' != typeof e || isNaN(e) || (t = new Date(+e)), + (t && !isNaN(+t)) || + window.console.error( + "Failed to parse x '" + e + "' to Date object" + ), + t + ); + }), + (o.prototype.isTabVisible = function() { + return !document.hidden; + }), + (o.prototype.getPathBox = l), + (o.prototype.CLASS = M), + 'SVGPathSeg' in window || + ((window.SVGPathSeg = function(e, t, n) { + (this.pathSegType = e), + (this.pathSegTypeAsLetter = t), + (this._owningPathSegList = n); + }), + (window.SVGPathSeg.prototype.classname = 'SVGPathSeg'), + (window.SVGPathSeg.PATHSEG_UNKNOWN = 0), + (window.SVGPathSeg.PATHSEG_CLOSEPATH = 1), + (window.SVGPathSeg.PATHSEG_MOVETO_ABS = 2), + (window.SVGPathSeg.PATHSEG_MOVETO_REL = 3), + (window.SVGPathSeg.PATHSEG_LINETO_ABS = 4), + (window.SVGPathSeg.PATHSEG_LINETO_REL = 5), + (window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS = 6), + (window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL = 7), + (window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS = 8), + (window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL = 9), + (window.SVGPathSeg.PATHSEG_ARC_ABS = 10), + (window.SVGPathSeg.PATHSEG_ARC_REL = 11), + (window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS = 12), + (window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL = 13), + (window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS = 14), + (window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL = 15), + (window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16), + (window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17), + (window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18), + (window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19), + (window.SVGPathSeg.prototype._segmentChanged = function() { + this._owningPathSegList && + this._owningPathSegList.segmentChanged(this); + }), + (window.SVGPathSegClosePath = function(e) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_CLOSEPATH, + 'z', + e ); }), - (o.prototype.categories = function(e) { - var t = this.internal, - n = t.config; - return arguments.length - ? ((n.axis_x_categories = e), t.redraw(), n.axis_x_categories) - : n.axis_x_categories; + (window.SVGPathSegClosePath.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegClosePath.prototype.toString = function() { + return '[object SVGPathSegClosePath]'; }), - (o.prototype.resize = function(e) { - var t = this.internal.config; - (t.size_width = e ? e.width : null), - (t.size_height = e ? e.height : null), - this.flush(); + (window.SVGPathSegClosePath.prototype._asPathString = function() { + return this.pathSegTypeAsLetter; }), - (o.prototype.flush = function() { - this.internal.updateAndRedraw({ - withLegend: !0, - withTransition: !1, - withTransitionForTransform: !1 - }); + (window.SVGPathSegClosePath.prototype.clone = function() { + return new window.SVGPathSegClosePath(void 0); }), - (o.prototype.destroy = function() { - var e = this.internal; - if ( - (window.clearInterval(e.intervalForObserveInserted), - void 0 !== e.resizeTimeout && - window.clearTimeout(e.resizeTimeout), - window.detachEvent) - ) - window.detachEvent('onresize', e.resizeIfElementDisplayed); - else if (window.removeEventListener) - window.removeEventListener('resize', e.resizeIfElementDisplayed); - else { - var t = window.onresize; - t && t.add && t.remove && t.remove(e.resizeFunction); - } - return ( - e.resizeFunction.remove(), - e.unbindWindowFocus(), - e.selectChart.classed('c3', !1).html(''), - Object.keys(e).forEach(function(t) { - e[t] = null; - }), - null - ); + (window.SVGPathSegMovetoAbs = function(e, t, n) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_MOVETO_ABS, + 'M', + e + ), + (this._x = t), + (this._y = n); }), - (o.prototype.color = function(e) { - return this.internal.color(e); + (window.SVGPathSegMovetoAbs.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegMovetoAbs.prototype.toString = function() { + return '[object SVGPathSegMovetoAbs]'; }), - (o.prototype.data = function(e) { - var t = this.internal.data.targets; - return void 0 === e - ? t - : t.filter(function(t) { - return [].concat(e).indexOf(t.id) >= 0; - }); + (window.SVGPathSegMovetoAbs.prototype._asPathString = function() { + return this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y; }), - (o.prototype.data.shown = function(e) { - return this.internal.filterTargetsToShow(this.data(e)); + (window.SVGPathSegMovetoAbs.prototype.clone = function() { + return new window.SVGPathSegMovetoAbs(void 0, this._x, this._y); }), - (o.prototype.data.values = function(e) { - var t = - !(arguments.length > 1 && void 0 !== arguments[1]) || - arguments[1], - n = null; - if (e) { - var r = this.data(e); - r && - f(r) && - (n = r.reduce(function(e, n) { - var r = n.values.map(function(e) { - return e.value; - }); - return t ? (e = e.concat(r)) : e.push(r), e; - }, [])); - } - return n; + Object.defineProperty(window.SVGPathSegMovetoAbs.prototype, 'x', { + get: function() { + return this._x; + }, + set: function(e) { + (this._x = e), this._segmentChanged(); + }, + enumerable: !0 }), - (o.prototype.data.names = function(e) { - return ( - this.internal.clearLegendItemTextBoxCache(), - this.internal.updateDataAttributes('names', e) - ); + Object.defineProperty(window.SVGPathSegMovetoAbs.prototype, 'y', { + get: function() { + return this._y; + }, + set: function(e) { + (this._y = e), this._segmentChanged(); + }, + enumerable: !0 }), - (o.prototype.data.colors = function(e) { - return this.internal.updateDataAttributes('colors', e); + (window.SVGPathSegMovetoRel = function(e, t, n) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_MOVETO_REL, + 'm', + e + ), + (this._x = t), + (this._y = n); }), - (o.prototype.data.axes = function(e) { - return this.internal.updateDataAttributes('axes', e); + (window.SVGPathSegMovetoRel.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegMovetoRel.prototype.toString = function() { + return '[object SVGPathSegMovetoRel]'; }), - (o.prototype.data.stackNormalized = function(e) { - if (void 0 === e) return this.internal.isStackNormalized(); - (this.internal.config.data_stack_normalize = !!e), - this.internal.redraw(); + (window.SVGPathSegMovetoRel.prototype._asPathString = function() { + return this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y; }), - (o.prototype.donut = function() {}), - (o.prototype.donut.padAngle = function(e) { - if (void 0 === e) return this.internal.config.donut_padAngle; - (this.internal.config.donut_padAngle = e), this.flush(); + (window.SVGPathSegMovetoRel.prototype.clone = function() { + return new window.SVGPathSegMovetoRel(void 0, this._x, this._y); }), - (o.prototype.flow = function(e) { - var t, - n, - r, - o, - i, - a, - s, - c = this.internal, - u = [], - l = c.getMaxDataCount(), - f = 0, - p = 0; - if (e.json) n = c.convertJsonToData(e.json, e.keys); - else if (e.rows) n = c.convertRowsToData(e.rows); - else { - if (!e.columns) return; - n = c.convertColumnsToData(e.columns); - } - (t = c.convertDataToTargets(n, !0)), - c.data.targets.forEach(function(e) { - var n, - r, - o = !1; - for (n = 0; n < t.length; n++) - if (e.id === t[n].id) { - for ( - o = !0, - e.values[e.values.length - 1] && - (p = e.values[e.values.length - 1].index + 1), - f = t[n].values.length, - r = 0; - r < f; - r++ - ) - (t[n].values[r].index = p + r), - c.isTimeSeries() || (t[n].values[r].x = p + r); - (e.values = e.values.concat(t[n].values)), t.splice(n, 1); - break; - } - o || u.push(e.id); - }), - c.data.targets.forEach(function(e) { - var t, n; - for (t = 0; t < u.length; t++) - if (e.id === u[t]) - for ( - p = e.values[e.values.length - 1].index + 1, n = 0; - n < f; - n++ - ) - e.values.push({ - id: e.id, - index: p + n, - x: c.isTimeSeries() ? c.getOtherTargetX(p + n) : p + n, - value: null - }); - }), - c.data.targets.length && - t.forEach(function(e) { - var t, - n = []; - for (t = c.data.targets[0].values[0].index; t < p; t++) - n.push({ - id: e.id, - index: t, - x: c.isTimeSeries() ? c.getOtherTargetX(t) : t, - value: null - }); - e.values.forEach(function(e) { - (e.index += p), c.isTimeSeries() || (e.x += p); - }), - (e.values = n.concat(e.values)); - }), - (c.data.targets = c.data.targets.concat(t)), - c.getMaxDataCount(), - (i = (o = c.data.targets[0]).values[0]), - d(e.to) - ? ((f = 0), - (s = c.isTimeSeries() ? c.parseDate(e.to) : e.to), - o.values.forEach(function(e) { - e.x < s && f++; - })) - : d(e.length) && (f = e.length), - l - ? 1 === l && - c.isTimeSeries() && - ((a = (o.values[o.values.length - 1].x - i.x) / 2), - (r = [new Date(+i.x - a), new Date(+i.x + a)]), - c.updateXDomain(null, !0, !0, !1, r)) - : ((a = c.isTimeSeries() - ? o.values.length > 1 - ? o.values[o.values.length - 1].x - i.x - : i.x - c.getXDomain(c.data.targets)[0] - : 1), - (r = [i.x - a, i.x]), - c.updateXDomain(null, !0, !0, !1, r)), - c.updateTargets(c.data.targets), - c.redraw({ - flow: { - index: i.index, - length: f, - duration: y(e.duration) - ? e.duration - : c.config.transition_duration, - done: e.done, - orgDataCount: l - }, - withLegend: !0, - withTransition: l > 1, - withTrimXDomain: !1, - withUpdateXAxis: !0 - }); + Object.defineProperty(window.SVGPathSegMovetoRel.prototype, 'x', { + get: function() { + return this._x; + }, + set: function(e) { + (this._x = e), this._segmentChanged(); + }, + enumerable: !0 }), - (r.prototype.generateFlow = function(e) { - var t = this, - n = t.config, - r = t.d3; - return function() { - var o, - i, - a, - c, - u, - l, - f, - d, - p, - h, - g, - m = e.targets, - b = e.flow, - y = e.drawBar, - v = e.drawLine, - _ = e.drawArea, - x = e.cx, - w = e.cy, - k = e.xv, - S = e.xForText, - A = e.yForText, - O = e.duration, - E = b.index, - T = b.length, - C = t.getValueOnIndex(t.data.targets[0].values, E), - L = t.getValueOnIndex(t.data.targets[0].values, E + T), - P = t.x.domain(), - D = b.duration || O, - z = b.done || function() {}, - N = t.generateWait(); - (t.flowing = !0), - t.data.targets.forEach(function(e) { - e.values.splice(0, T); - }), - (a = t.updateXDomain(m, !0, !0)), - t.updateXGrid && t.updateXGrid(!0), - (c = t.xgrid || r.selectAll([])), - (u = t.xgridLines || r.selectAll([])), - (l = t.mainRegion || r.selectAll([])), - (f = t.mainText || r.selectAll([])), - (d = t.mainBar || r.selectAll([])), - (p = t.mainLine || r.selectAll([])), - (h = t.mainArea || r.selectAll([])), - (g = t.mainCircle || r.selectAll([])), - b.orgDataCount - ? (o = - 1 === b.orgDataCount || - (C && C.x) === (L && L.x) || - t.isTimeSeries() - ? t.x(P[0]) - t.x(a[0]) - : t.x(C.x) - t.x(L.x)) - : 1 !== t.data.targets[0].values.length - ? (o = t.x(P[0]) - t.x(a[0])) - : t.isTimeSeries() - ? ((C = t.getValueOnIndex(t.data.targets[0].values, 0)), - (L = t.getValueOnIndex( - t.data.targets[0].values, - t.data.targets[0].values.length - 1 - )), - (o = t.x(C.x) - t.x(L.x))) - : (o = s(a) / 2), - (i = 'translate(' + o + ',0) scale(' + s(P) / s(a) + ',1)'), - t.hideXGridFocus(); - var j = r - .transition() - .ease(r.easeLinear) - .duration(D); - N.add(t.xAxis(t.axes.x, j)), - N.add(d.transition(j).attr('transform', i)), - N.add(p.transition(j).attr('transform', i)), - N.add(h.transition(j).attr('transform', i)), - N.add(g.transition(j).attr('transform', i)), - N.add(f.transition(j).attr('transform', i)), - N.add( - l - .filter(t.isRegionOnX) - .transition(j) - .attr('transform', i) - ), - N.add(c.transition(j).attr('transform', i)), - N.add(u.transition(j).attr('transform', i)), - N(function() { - var e, - r = [], - o = []; - if (T) { - for (e = 0; e < T; e++) - r.push('.' + M.shape + '-' + (E + e)), - o.push('.' + M.text + '-' + (E + e)); - t.svg - .selectAll('.' + M.shapes) - .selectAll(r) - .remove(), - t.svg - .selectAll('.' + M.texts) - .selectAll(o) - .remove(), - t.svg.select('.' + M.xgrid).remove(); - } - c - .attr('transform', null) - .attr('x1', t.xgridAttr.x1) - .attr('x2', t.xgridAttr.x2) - .attr('y1', t.xgridAttr.y1) - .attr('y2', t.xgridAttr.y2) - .style('opacity', t.xgridAttr.opacity), - u.attr('transform', null), - u - .select('line') - .attr('x1', n.axis_rotated ? 0 : k) - .attr('x2', n.axis_rotated ? t.width : k), - u - .select('text') - .attr('x', n.axis_rotated ? t.width : 0) - .attr('y', k), - d.attr('transform', null).attr('d', y), - p.attr('transform', null).attr('d', v), - h.attr('transform', null).attr('d', _), - g - .attr('transform', null) - .attr('cx', x) - .attr('cy', w), - f - .attr('transform', null) - .attr('x', S) - .attr('y', A) - .style('fill-opacity', t.opacityForText.bind(t)), - l.attr('transform', null), - l - .filter(t.isRegionOnX) - .attr('x', t.regionX.bind(t)) - .attr('width', t.regionWidth.bind(t)), - z(), - (t.flowing = !1); - }); - }; + Object.defineProperty(window.SVGPathSegMovetoRel.prototype, 'y', { + get: function() { + return this._y; + }, + set: function(e) { + (this._y = e), this._segmentChanged(); + }, + enumerable: !0 }), - (o.prototype.focus = function(e) { - var t, - n = this.internal; - (e = n.mapToTargetIds(e)), - (t = n.svg.selectAll( - n.selectorTargets(e.filter(n.isTargetToShow, n)) - )), - this.revert(), - this.defocus(), - t.classed(M.focused, !0).classed(M.defocused, !1), - n.hasArcType() && n.expandArc(e), - n.toggleFocusLegend(e, !0), - (n.focusedTargetIds = e), - (n.defocusedTargetIds = n.defocusedTargetIds.filter(function(t) { - return e.indexOf(t) < 0; - })); + (window.SVGPathSegLinetoAbs = function(e, t, n) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_LINETO_ABS, + 'L', + e + ), + (this._x = t), + (this._y = n); }), - (o.prototype.defocus = function(e) { - var t = this.internal; - (e = t.mapToTargetIds(e)), - t.svg - .selectAll(t.selectorTargets(e.filter(t.isTargetToShow, t))) - .classed(M.focused, !1) - .classed(M.defocused, !0), - t.hasArcType() && t.unexpandArc(e), - t.toggleFocusLegend(e, !1), - (t.focusedTargetIds = t.focusedTargetIds.filter(function(t) { - return e.indexOf(t) < 0; - })), - (t.defocusedTargetIds = e); - }), - (o.prototype.revert = function(e) { - var t = this.internal; - (e = t.mapToTargetIds(e)), - t.svg - .selectAll(t.selectorTargets(e)) - .classed(M.focused, !1) - .classed(M.defocused, !1), - t.hasArcType() && t.unexpandArc(e), - t.config.legend_show && - (t.showLegend(e.filter(t.isLegendToShow.bind(t))), - t.legend - .selectAll(t.selectorLegends(e)) - .filter(function() { - return t.d3.select(this).classed(M.legendItemFocused); - }) - .classed(M.legendItemFocused, !1)), - (t.focusedTargetIds = []), - (t.defocusedTargetIds = []); + (window.SVGPathSegLinetoAbs.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegLinetoAbs.prototype.toString = function() { + return '[object SVGPathSegLinetoAbs]'; }), - (o.prototype.xgrids = function(e) { - var t = this.internal, - n = t.config; - return e - ? ((n.grid_x_lines = e), t.redrawWithoutRescale(), n.grid_x_lines) - : n.grid_x_lines; + (window.SVGPathSegLinetoAbs.prototype._asPathString = function() { + return this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y; }), - (o.prototype.xgrids.add = function(e) { - var t = this.internal; - return this.xgrids(t.config.grid_x_lines.concat(e || [])); + (window.SVGPathSegLinetoAbs.prototype.clone = function() { + return new window.SVGPathSegLinetoAbs(void 0, this._x, this._y); }), - (o.prototype.xgrids.remove = function(e) { - this.internal.removeGridLines(e, !0); + Object.defineProperty(window.SVGPathSegLinetoAbs.prototype, 'x', { + get: function() { + return this._x; + }, + set: function(e) { + (this._x = e), this._segmentChanged(); + }, + enumerable: !0 }), - (o.prototype.ygrids = function(e) { - var t = this.internal, - n = t.config; - return e - ? ((n.grid_y_lines = e), t.redrawWithoutRescale(), n.grid_y_lines) - : n.grid_y_lines; - }), - (o.prototype.ygrids.add = function(e) { - var t = this.internal; - return this.ygrids(t.config.grid_y_lines.concat(e || [])); - }), - (o.prototype.ygrids.remove = function(e) { - this.internal.removeGridLines(e, !1); - }), - (o.prototype.groups = function(e) { - var t = this.internal, - n = t.config; - return b(e) || ((n.data_groups = e), t.redraw()), n.data_groups; - }), - (o.prototype.legend = function() {}), - (o.prototype.legend.show = function(e) { - var t = this.internal; - t.showLegend(t.mapToTargetIds(e)), - t.updateAndRedraw({ withLegend: !0 }); - }), - (o.prototype.legend.hide = function(e) { - var t = this.internal; - t.hideLegend(t.mapToTargetIds(e)), - t.updateAndRedraw({ withLegend: !1 }); - }), - (o.prototype.load = function(e) { - var t = this.internal, - n = t.config; - e.xs && t.addXs(e.xs), - 'names' in e && o.prototype.data.names.bind(this)(e.names), - 'classes' in e && - Object.keys(e.classes).forEach(function(t) { - n.data_classes[t] = e.classes[t]; - }), - 'categories' in e && - t.isCategorized() && - (n.axis_x_categories = e.categories), - 'axes' in e && - Object.keys(e.axes).forEach(function(t) { - n.data_axes[t] = e.axes[t]; - }), - 'colors' in e && - Object.keys(e.colors).forEach(function(t) { - n.data_colors[t] = e.colors[t]; - }), - 'cacheIds' in e && t.hasCaches(e.cacheIds) - ? t.load(t.getCaches(e.cacheIds), e.done) - : e.unload - ? t.unload( - t.mapToTargetIds(!0 === e.unload ? null : e.unload), - function() { - t.loadFromArgs(e); - } - ) - : t.loadFromArgs(e); - }), - (o.prototype.unload = function(e) { - var t = this.internal; - (e = e || {}) instanceof Array - ? (e = { ids: e }) - : 'string' == typeof e && (e = { ids: [e] }), - t.unload(t.mapToTargetIds(e.ids), function() { - t.redraw({ - withUpdateOrgXDomain: !0, - withUpdateXDomain: !0, - withLegend: !0 - }), - e.done && e.done(); - }); + Object.defineProperty(window.SVGPathSegLinetoAbs.prototype, 'y', { + get: function() { + return this._y; + }, + set: function(e) { + (this._y = e), this._segmentChanged(); + }, + enumerable: !0 }), - (o.prototype.pie = function() {}), - (o.prototype.pie.padAngle = function(e) { - if (void 0 === e) return this.internal.config.pie_padAngle; - (this.internal.config.pie_padAngle = e), this.flush(); + (window.SVGPathSegLinetoRel = function(e, t, n) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_LINETO_REL, + 'l', + e + ), + (this._x = t), + (this._y = n); }), - (o.prototype.regions = function(e) { - var t = this.internal, - n = t.config; - return e - ? ((n.regions = e), t.redrawWithoutRescale(), n.regions) - : n.regions; + (window.SVGPathSegLinetoRel.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegLinetoRel.prototype.toString = function() { + return '[object SVGPathSegLinetoRel]'; }), - (o.prototype.regions.add = function(e) { - var t = this.internal, - n = t.config; - return e - ? ((n.regions = n.regions.concat(e)), - t.redrawWithoutRescale(), - n.regions) - : n.regions; + (window.SVGPathSegLinetoRel.prototype._asPathString = function() { + return this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y; }), - (o.prototype.regions.remove = function(e) { - var t, - n, - r, - o = this.internal, - i = o.config; - return ( - (t = c((e = e || {}), 'duration', i.transition_duration)), - (n = c(e, 'classes', [M.region])), - (r = o.main.select('.' + M.regions).selectAll( - n.map(function(e) { - return '.' + e; - }) - )), - (t ? r.transition().duration(t) : r).style('opacity', 0).remove(), - (i.regions = i.regions.filter(function(e) { - var t = !1; - return ( - !e.class || - (e.class.split(' ').forEach(function(e) { - n.indexOf(e) >= 0 && (t = !0); - }), - !t) - ); - })), - i.regions - ); + (window.SVGPathSegLinetoRel.prototype.clone = function() { + return new window.SVGPathSegLinetoRel(void 0, this._x, this._y); }), - (o.prototype.selected = function(e) { - var t = this.internal, - n = t.d3; - return t.main - .selectAll('.' + M.shapes + t.getTargetSelectorSuffix(e)) - .selectAll('.' + M.shape) - .filter(function() { - return n.select(this).classed(M.SELECTED); - }) - .nodes() - .map(function(e) { - var t = e.__data__; - return t.data ? t.data : t; - }); + Object.defineProperty(window.SVGPathSegLinetoRel.prototype, 'x', { + get: function() { + return this._x; + }, + set: function(e) { + (this._x = e), this._segmentChanged(); + }, + enumerable: !0 }), - (o.prototype.select = function(e, t, n) { - var r = this.internal, - o = r.d3, - i = r.config; - i.data_selection_enabled && - r.main - .selectAll('.' + M.shapes) - .selectAll('.' + M.shape) - .each(function(a, s) { - var c = o.select(this), - u = a.data ? a.data.id : a.id, - l = r.getToggle(this, a).bind(r), - f = i.data_selection_grouped || !e || e.indexOf(u) >= 0, - p = !t || t.indexOf(s) >= 0, - h = c.classed(M.SELECTED); - c.classed(M.line) || - c.classed(M.area) || - (f && p - ? i.data_selection_isselectable(a) && - !h && - l(!0, c.classed(M.SELECTED, !0), a, s) - : d(n) && - n && - h && - l(!1, c.classed(M.SELECTED, !1), a, s)); - }); + Object.defineProperty(window.SVGPathSegLinetoRel.prototype, 'y', { + get: function() { + return this._y; + }, + set: function(e) { + (this._y = e), this._segmentChanged(); + }, + enumerable: !0 }), - (o.prototype.unselect = function(e, t) { - var n = this.internal, - r = n.d3, - o = n.config; - o.data_selection_enabled && - n.main - .selectAll('.' + M.shapes) - .selectAll('.' + M.shape) - .each(function(i, a) { - var s = r.select(this), - c = i.data ? i.data.id : i.id, - u = n.getToggle(this, i).bind(n), - l = o.data_selection_grouped || !e || e.indexOf(c) >= 0, - f = !t || t.indexOf(a) >= 0, - d = s.classed(M.SELECTED); - s.classed(M.line) || - s.classed(M.area) || - (l && - f && - o.data_selection_isselectable(i) && - d && - u(!1, s.classed(M.SELECTED, !1), i, a)); - }); + (window.SVGPathSegCurvetoCubicAbs = function(e, t, n, r, o, i, a) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS, + 'C', + e + ), + (this._x = t), + (this._y = n), + (this._x1 = r), + (this._y1 = o), + (this._x2 = i), + (this._y2 = a); + }), + (window.SVGPathSegCurvetoCubicAbs.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegCurvetoCubicAbs.prototype.toString = function() { + return '[object SVGPathSegCurvetoCubicAbs]'; }), - (o.prototype.show = function(e, t) { - var n, - r = this.internal; - (e = r.mapToTargetIds(e)), - (t = t || {}), - r.removeHiddenTargetIds(e), - (n = r.svg.selectAll(r.selectorTargets(e))) - .transition() - .style('display', x() ? 'block' : 'initial', 'important') - .style('opacity', 1, 'important') - .call(r.endall, function() { - n.style('opacity', null).style('opacity', 1); - }), - t.withLegend && r.showLegend(e), - r.redraw({ - withUpdateOrgXDomain: !0, - withUpdateXDomain: !0, - withLegend: !0 - }); + (window.SVGPathSegCurvetoCubicAbs.prototype._asPathString = function() { + return ( + this.pathSegTypeAsLetter + + ' ' + + this._x1 + + ' ' + + this._y1 + + ' ' + + this._x2 + + ' ' + + this._y2 + + ' ' + + this._x + + ' ' + + this._y + ); }), - (o.prototype.hide = function(e, t) { - var n, - r = this.internal; - (e = r.mapToTargetIds(e)), - (t = t || {}), - r.addHiddenTargetIds(e), - (n = r.svg.selectAll(r.selectorTargets(e))) - .transition() - .style('opacity', 0, 'important') - .call(r.endall, function() { - n.style('opacity', null).style('opacity', 0), - n.style('display', 'none'); - }), - t.withLegend && r.hideLegend(e), - r.redraw({ - withUpdateOrgXDomain: !0, - withUpdateXDomain: !0, - withLegend: !0 - }); + (window.SVGPathSegCurvetoCubicAbs.prototype.clone = function() { + return new window.SVGPathSegCurvetoCubicAbs( + void 0, + this._x, + this._y, + this._x1, + this._y1, + this._x2, + this._y2 + ); }), - (o.prototype.toggle = function(e, t) { - var n = this, - r = this.internal; - r.mapToTargetIds(e).forEach(function(e) { - r.isTargetToShow(e) ? n.hide(e, t) : n.show(e, t); - }); + Object.defineProperty( + window.SVGPathSegCurvetoCubicAbs.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(e) { + (this._x = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicAbs.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(e) { + (this._y = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicAbs.prototype, + 'x1', + { + get: function() { + return this._x1; + }, + set: function(e) { + (this._x1 = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicAbs.prototype, + 'y1', + { + get: function() { + return this._y1; + }, + set: function(e) { + (this._y1 = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicAbs.prototype, + 'x2', + { + get: function() { + return this._x2; + }, + set: function(e) { + (this._x2 = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicAbs.prototype, + 'y2', + { + get: function() { + return this._y2; + }, + set: function(e) { + (this._y2 = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegCurvetoCubicRel = function(e, t, n, r, o, i, a) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL, + 'c', + e + ), + (this._x = t), + (this._y = n), + (this._x1 = r), + (this._y1 = o), + (this._x2 = i), + (this._y2 = a); + }), + (window.SVGPathSegCurvetoCubicRel.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegCurvetoCubicRel.prototype.toString = function() { + return '[object SVGPathSegCurvetoCubicRel]'; }), - (o.prototype.subchart = function() {}), - (o.prototype.subchart.isShown = function() { - return this.internal.config.subchart_show; - }), - (o.prototype.subchart.show = function() { - var e = this.internal; - e.config.subchart_show || - ((e.config.subchart_show = !0), - e.initSubchart(), - e.updateDimension(), - e.initSubchartBrush(), - e.updateTargetsForSubchart(e.getTargets()), - e.mapToIds(e.data.targets).forEach(function(t) { - e.withoutFadeIn[t] = !1; - }), - e.updateAndRedraw(), - e.showTargets()); - }), - (o.prototype.subchart.hide = function() { - var e = this.internal; - e.config.subchart_show && - ((e.config.subchart_show = !1), e.removeSubchart(), e.redraw()); - }), - (o.prototype.tooltip = function() {}), - (o.prototype.tooltip.show = function(e) { - var t, - n, - r = this.internal, - o = {}; - e.mouse - ? (o = e.mouse) - : (e.data - ? (n = e.data) - : void 0 !== e.x && - ((t = e.id - ? r.data.targets.filter(function(t) { - return t.id === e.id; - }) - : r.data.targets), - (n = r.filterByX(t, e.x).slice(0, 1)[0])), - (o = n ? r.getMousePosition(n) : null)), - r.dispatchEvent('mousemove', o), - r.config.tooltip_onshow.call(r, n); - }), - (o.prototype.tooltip.hide = function() { - this.internal.dispatchEvent('mouseout', 0), - this.internal.config.tooltip_onhide.call(this); - }), - (o.prototype.transform = function(e, t) { - var n = this.internal, - r = - ['pie', 'donut'].indexOf(e) >= 0 ? { withTransform: !0 } : null; - n.transformTo(t, e, r); - }), - (r.prototype.transformTo = function(e, t, n) { - var r = this, - o = !r.hasArcType(), - i = n || { withTransitionForAxis: o }; - (i.withTransitionForTransform = !1), - (r.transiting = !1), - r.setTargetType(e, t), - r.updateTargets(r.data.targets), - r.updateAndRedraw(i); - }), - (o.prototype.x = function(e) { - var t = this.internal; + (window.SVGPathSegCurvetoCubicRel.prototype._asPathString = function() { return ( - arguments.length && - (t.updateTargetX(t.data.targets, e), - t.redraw({ withUpdateOrgXDomain: !0, withUpdateXDomain: !0 })), - t.data.xs + this.pathSegTypeAsLetter + + ' ' + + this._x1 + + ' ' + + this._y1 + + ' ' + + this._x2 + + ' ' + + this._y2 + + ' ' + + this._x + + ' ' + + this._y ); }), - (o.prototype.xs = function(e) { - var t = this.internal; - return ( - arguments.length && - (t.updateTargetXs(t.data.targets, e), - t.redraw({ withUpdateOrgXDomain: !0, withUpdateXDomain: !0 })), - t.data.xs + (window.SVGPathSegCurvetoCubicRel.prototype.clone = function() { + return new window.SVGPathSegCurvetoCubicRel( + void 0, + this._x, + this._y, + this._x1, + this._y1, + this._x2, + this._y2 ); }), - (o.prototype.zoom = function(e) { - var t = this.internal; - return e - ? (t.isTimeSeries() && - (e = e.map(function(e) { - return t.parseDate(e); - })), - t.config.subchart_show - ? t.brush.selectionAsValue(e, !0) - : (t.updateXDomain(null, !0, !1, !1, e), - t.redraw({ - withY: t.config.zoom_rescale, - withSubchart: !1 - })), - t.config.zoom_onzoom.call(this, t.x.orgDomain()), - e) - : t.x.domain(); - }), - (o.prototype.zoom.enable = function(e) { - var t = this.internal; - (t.config.zoom_enabled = e), t.updateAndRedraw(); - }), - (o.prototype.unzoom = function() { - var e = this.internal; - e.config.subchart_show - ? e.brush.clear() - : (e.updateXDomain(null, !0, !1, !1, e.subX.domain()), - e.redraw({ withY: e.config.zoom_rescale, withSubchart: !1 })); - }), - (o.prototype.zoom.max = function(e) { - var t = this.internal, - n = t.config, - r = t.d3; - if (0 !== e && !e) return n.zoom_x_max; - n.zoom_x_max = r.max([t.orgXDomain[1], e]); - }), - (o.prototype.zoom.min = function(e) { - var t = this.internal, - n = t.config, - r = t.d3; - if (0 !== e && !e) return n.zoom_x_min; - n.zoom_x_min = r.min([t.orgXDomain[0], e]); - }), - (o.prototype.zoom.range = function(e) { - if (!arguments.length) - return { max: this.domain.max(), min: this.domain.min() }; - d(e.max) && this.domain.max(e.max), - d(e.min) && this.domain.min(e.min); - }), - (r.prototype.initPie = function() { - var e = this, - t = e.d3; - e.pie = t - .pie() - .padAngle(this.getPadAngle.bind(this)) - .value(function(e) { - return e.values.reduce(function(e, t) { - return e + t.value; - }, 0); - }); - var n = e.getOrderFunction(); - if (n && (e.isOrderAsc() || e.isOrderDesc())) { - var r = n; - n = function(e, t) { - return -1 * r(e, t); - }; + Object.defineProperty( + window.SVGPathSegCurvetoCubicRel.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(e) { + (this._x = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicRel.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(e) { + (this._y = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicRel.prototype, + 'x1', + { + get: function() { + return this._x1; + }, + set: function(e) { + (this._x1 = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicRel.prototype, + 'y1', + { + get: function() { + return this._y1; + }, + set: function(e) { + (this._y1 = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicRel.prototype, + 'x2', + { + get: function() { + return this._x2; + }, + set: function(e) { + (this._x2 = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicRel.prototype, + 'y2', + { + get: function() { + return this._y2; + }, + set: function(e) { + (this._y2 = e), this._segmentChanged(); + }, + enumerable: !0 } - e.pie.sort(n || null); + ), + (window.SVGPathSegCurvetoQuadraticAbs = function(e, t, n, r, o) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS, + 'Q', + e + ), + (this._x = t), + (this._y = n), + (this._x1 = r), + (this._y1 = o); }), - (r.prototype.updateRadius = function() { - var e = this, - t = e.config, - n = t.gauge_width || t.donut_width, - r = - e.filterTargetsToShow(e.data.targets).length * - e.config.gauge_arcs_minWidth; - (e.radiusExpanded = - (Math.min(e.arcWidth, e.arcHeight) / 2) * - (e.hasType('gauge') ? 0.85 : 1)), - (e.radius = 0.95 * e.radiusExpanded), - (e.innerRadiusRatio = n ? (e.radius - n) / e.radius : 0.6), - (e.innerRadius = - e.hasType('donut') || e.hasType('gauge') - ? e.radius * e.innerRadiusRatio - : 0), - (e.gaugeArcWidth = - n || - (r <= e.radius - e.innerRadius - ? e.radius - e.innerRadius - : r <= e.radius - ? r - : e.radius)); + (window.SVGPathSegCurvetoQuadraticAbs.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegCurvetoQuadraticAbs.prototype.toString = function() { + return '[object SVGPathSegCurvetoQuadraticAbs]'; }), - (r.prototype.getPadAngle = function() { - return this.hasType('pie') - ? this.config.pie_padAngle || 0 - : (this.hasType('donut') && this.config.donut_padAngle) || 0; + (window.SVGPathSegCurvetoQuadraticAbs.prototype._asPathString = function() { + return ( + this.pathSegTypeAsLetter + + ' ' + + this._x1 + + ' ' + + this._y1 + + ' ' + + this._x + + ' ' + + this._y + ); }), - (r.prototype.updateArc = function() { - var e = this; - (e.svgArc = e.getSvgArc()), - (e.svgArcExpanded = e.getSvgArcExpanded()), - (e.svgArcExpandedSub = e.getSvgArcExpanded(0.98)); + (window.SVGPathSegCurvetoQuadraticAbs.prototype.clone = function() { + return new window.SVGPathSegCurvetoQuadraticAbs( + void 0, + this._x, + this._y, + this._x1, + this._y1 + ); }), - (r.prototype.updateAngle = function(e) { - var t, - n, - r, - o, - i = this, - a = i.config, - s = !1, - c = 0; - return a - ? (i - .pie(i.filterTargetsToShow(i.data.targets)) - .forEach(function(t) { - s || - t.data.id !== e.data.id || - ((s = !0), ((e = t).index = c)), - c++; - }), - isNaN(e.startAngle) && (e.startAngle = 0), - isNaN(e.endAngle) && (e.endAngle = e.startAngle), - i.isGaugeType(e.data) && - ((t = a.gauge_min), - (n = a.gauge_max), - (r = (Math.PI * (a.gauge_fullCircle ? 2 : 1)) / (n - t)), - (o = e.value < t ? 0 : e.value < n ? e.value - t : n - t), - (e.startAngle = a.gauge_startingAngle), - (e.endAngle = e.startAngle + r * o)), - s ? e : null) - : null; + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticAbs.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(e) { + (this._x = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticAbs.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(e) { + (this._y = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticAbs.prototype, + 'x1', + { + get: function() { + return this._x1; + }, + set: function(e) { + (this._x1 = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticAbs.prototype, + 'y1', + { + get: function() { + return this._y1; + }, + set: function(e) { + (this._y1 = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegCurvetoQuadraticRel = function(e, t, n, r, o) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL, + 'q', + e + ), + (this._x = t), + (this._y = n), + (this._x1 = r), + (this._y1 = o); }), - (r.prototype.getSvgArc = function() { - var e = this, - t = e.hasType('gauge'), - n = - e.gaugeArcWidth / e.filterTargetsToShow(e.data.targets).length, - r = e.d3 - .arc() - .outerRadius(function(r) { - return t ? e.radius - n * r.index : e.radius; - }) - .innerRadius(function(r) { - return t ? e.radius - n * (r.index + 1) : e.innerRadius; - }), - o = function(t, n) { - var o; - return n ? r(t) : (o = e.updateAngle(t)) ? r(o) : 'M 0 0'; - }; - return (o.centroid = r.centroid), o; + (window.SVGPathSegCurvetoQuadraticRel.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegCurvetoQuadraticRel.prototype.toString = function() { + return '[object SVGPathSegCurvetoQuadraticRel]'; }), - (r.prototype.getSvgArcExpanded = function(e) { - e = e || 1; - var t = this, - n = t.hasType('gauge'), - r = - t.gaugeArcWidth / t.filterTargetsToShow(t.data.targets).length, - o = Math.min( - t.radiusExpanded * e - t.radius, - 0.8 * r - 100 * (1 - e) - ), - i = t.d3 - .arc() - .outerRadius(function(i) { - return n ? t.radius - r * i.index + o : t.radiusExpanded * e; - }) - .innerRadius(function(e) { - return n ? t.radius - r * (e.index + 1) : t.innerRadius; - }); - return function(e) { - var n = t.updateAngle(e); - return n ? i(n) : 'M 0 0'; - }; + (window.SVGPathSegCurvetoQuadraticRel.prototype._asPathString = function() { + return ( + this.pathSegTypeAsLetter + + ' ' + + this._x1 + + ' ' + + this._y1 + + ' ' + + this._x + + ' ' + + this._y + ); }), - (r.prototype.getArc = function(e, t, n) { - return n || this.isArcType(e.data) ? this.svgArc(e, t) : 'M 0 0'; + (window.SVGPathSegCurvetoQuadraticRel.prototype.clone = function() { + return new window.SVGPathSegCurvetoQuadraticRel( + void 0, + this._x, + this._y, + this._x1, + this._y1 + ); }), - (r.prototype.transformForArcLabel = function(e) { - var t, - n, - r, - o, - i, - a = this, - s = a.config, - c = a.updateAngle(e), - u = '', - l = a.hasType('gauge'); - if (c && !l) - (t = this.svgArc.centroid(c)), - (n = isNaN(t[0]) ? 0 : t[0]), - (r = isNaN(t[1]) ? 0 : t[1]), - (o = Math.sqrt(n * n + r * r)), - (u = - 'translate(' + - n * - (i = - a.hasType('donut') && s.donut_label_ratio - ? h(s.donut_label_ratio) - ? s.donut_label_ratio(e, a.radius, o) - : s.donut_label_ratio - : a.hasType('pie') && s.pie_label_ratio - ? h(s.pie_label_ratio) - ? s.pie_label_ratio(e, a.radius, o) - : s.pie_label_ratio - : a.radius && o - ? ((36 / a.radius > 0.375 - ? 1.175 - 36 / a.radius - : 0.8) * - a.radius) / - o - : 0) + - ',' + - r * i + - ')'); - else if ( - c && - l && - a.filterTargetsToShow(a.data.targets).length > 1 - ) { - var f = Math.sin(c.endAngle - Math.PI / 2); - u = - 'translate(' + - (n = - Math.cos(c.endAngle - Math.PI / 2) * - (a.radiusExpanded + 25)) + - ',' + - (r = f * (a.radiusExpanded + 15 - Math.abs(10 * f)) + 3) + - ')'; + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticRel.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(e) { + (this._x = e), this._segmentChanged(); + }, + enumerable: !0 } - return u; + ), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticRel.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(e) { + (this._y = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticRel.prototype, + 'x1', + { + get: function() { + return this._x1; + }, + set: function(e) { + (this._x1 = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticRel.prototype, + 'y1', + { + get: function() { + return this._y1; + }, + set: function(e) { + (this._y1 = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegArcAbs = function(e, t, n, r, o, i, a, s) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_ARC_ABS, + 'A', + e + ), + (this._x = t), + (this._y = n), + (this._r1 = r), + (this._r2 = o), + (this._angle = i), + (this._largeArcFlag = a), + (this._sweepFlag = s); + }), + (window.SVGPathSegArcAbs.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegArcAbs.prototype.toString = function() { + return '[object SVGPathSegArcAbs]'; }), - (r.prototype.getArcRatio = function(e) { - return this.getRatio('arc', e); + (window.SVGPathSegArcAbs.prototype._asPathString = function() { + return ( + this.pathSegTypeAsLetter + + ' ' + + this._r1 + + ' ' + + this._r2 + + ' ' + + this._angle + + ' ' + + (this._largeArcFlag ? '1' : '0') + + ' ' + + (this._sweepFlag ? '1' : '0') + + ' ' + + this._x + + ' ' + + this._y + ); }), - (r.prototype.convertToArcData = function(e) { - return this.addName({ - id: e.data.id, - value: e.value, - ratio: this.getRatio('arc', e), - index: e.index - }); + (window.SVGPathSegArcAbs.prototype.clone = function() { + return new window.SVGPathSegArcAbs( + void 0, + this._x, + this._y, + this._r1, + this._r2, + this._angle, + this._largeArcFlag, + this._sweepFlag + ); }), - (r.prototype.textForArcLabel = function(e) { - var t, - n, - r, - o, - i, - a = this; - return a.shouldShowArcLabel() - ? ((n = (t = a.updateAngle(e)) ? t.value : null), - (r = a.getRatio('arc', t)), - (o = e.data.id), - a.hasType('gauge') || a.meetsArcLabelThreshold(r) - ? (i = a.getArcLabelFormat()) - ? i(n, r, o) - : a.defaultArcValueFormat(n, r) - : '') - : ''; + Object.defineProperty(window.SVGPathSegArcAbs.prototype, 'x', { + get: function() { + return this._x; + }, + set: function(e) { + (this._x = e), this._segmentChanged(); + }, + enumerable: !0 }), - (r.prototype.textForGaugeMinMax = function(e, t) { - var n = this.getGaugeLabelExtents(); - return n ? n(e, t) : e; + Object.defineProperty(window.SVGPathSegArcAbs.prototype, 'y', { + get: function() { + return this._y; + }, + set: function(e) { + (this._y = e), this._segmentChanged(); + }, + enumerable: !0 }), - (r.prototype.expandArc = function(e) { - var t, - n = this; - n.transiting - ? (t = window.setInterval(function() { - n.transiting || - (window.clearInterval(t), - n.legend.selectAll('.c3-legend-item-focused').size() > 0 && - n.expandArc(e)); - }, 10)) - : ((e = n.mapToTargetIds(e)), - n.svg - .selectAll(n.selectorTargets(e, '.' + M.chartArc)) - .each(function(e) { - n.shouldExpand(e.data.id) && - n.d3 - .select(this) - .selectAll('path') - .transition() - .duration(n.expandDuration(e.data.id)) - .attr('d', n.svgArcExpanded) - .transition() - .duration(2 * n.expandDuration(e.data.id)) - .attr('d', n.svgArcExpandedSub) - .each(function(e) { - n.isDonutType(e.data); - }); - })); + Object.defineProperty(window.SVGPathSegArcAbs.prototype, 'r1', { + get: function() { + return this._r1; + }, + set: function(e) { + (this._r1 = e), this._segmentChanged(); + }, + enumerable: !0 }), - (r.prototype.unexpandArc = function(e) { - var t = this; - t.transiting || - ((e = t.mapToTargetIds(e)), - t.svg - .selectAll(t.selectorTargets(e, '.' + M.chartArc)) - .selectAll('path') - .transition() - .duration(function(e) { - return t.expandDuration(e.data.id); - }) - .attr('d', t.svgArc), - t.svg.selectAll('.' + M.arc)); - }), - (r.prototype.expandDuration = function(e) { - var t = this.config; - return this.isDonutType(e) - ? t.donut_expand_duration - : this.isGaugeType(e) - ? t.gauge_expand_duration - : this.isPieType(e) - ? t.pie_expand_duration - : 50; - }), - (r.prototype.shouldExpand = function(e) { - var t = this.config; - return ( - (this.isDonutType(e) && t.donut_expand) || - (this.isGaugeType(e) && t.gauge_expand) || - (this.isPieType(e) && t.pie_expand) - ); + Object.defineProperty(window.SVGPathSegArcAbs.prototype, 'r2', { + get: function() { + return this._r2; + }, + set: function(e) { + (this._r2 = e), this._segmentChanged(); + }, + enumerable: !0 }), - (r.prototype.shouldShowArcLabel = function() { - var e = this.config, - t = !0; - return ( - this.hasType('donut') - ? (t = e.donut_label_show) - : this.hasType('pie') && (t = e.pie_label_show), - t - ); + Object.defineProperty(window.SVGPathSegArcAbs.prototype, 'angle', { + get: function() { + return this._angle; + }, + set: function(e) { + (this._angle = e), this._segmentChanged(); + }, + enumerable: !0 + }), + Object.defineProperty( + window.SVGPathSegArcAbs.prototype, + 'largeArcFlag', + { + get: function() { + return this._largeArcFlag; + }, + set: function(e) { + (this._largeArcFlag = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegArcAbs.prototype, + 'sweepFlag', + { + get: function() { + return this._sweepFlag; + }, + set: function(e) { + (this._sweepFlag = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegArcRel = function(e, t, n, r, o, i, a, s) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_ARC_REL, + 'a', + e + ), + (this._x = t), + (this._y = n), + (this._r1 = r), + (this._r2 = o), + (this._angle = i), + (this._largeArcFlag = a), + (this._sweepFlag = s); + }), + (window.SVGPathSegArcRel.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegArcRel.prototype.toString = function() { + return '[object SVGPathSegArcRel]'; }), - (r.prototype.meetsArcLabelThreshold = function(e) { - var t = this.config; + (window.SVGPathSegArcRel.prototype._asPathString = function() { return ( - e >= - (this.hasType('donut') - ? t.donut_label_threshold - : t.pie_label_threshold) + this.pathSegTypeAsLetter + + ' ' + + this._r1 + + ' ' + + this._r2 + + ' ' + + this._angle + + ' ' + + (this._largeArcFlag ? '1' : '0') + + ' ' + + (this._sweepFlag ? '1' : '0') + + ' ' + + this._x + + ' ' + + this._y ); }), - (r.prototype.getArcLabelFormat = function() { - var e = this.config, - t = e.pie_label_format; - return ( - this.hasType('gauge') - ? (t = e.gauge_label_format) - : this.hasType('donut') && (t = e.donut_label_format), - t + (window.SVGPathSegArcRel.prototype.clone = function() { + return new window.SVGPathSegArcRel( + void 0, + this._x, + this._y, + this._r1, + this._r2, + this._angle, + this._largeArcFlag, + this._sweepFlag ); }), - (r.prototype.getGaugeLabelExtents = function() { - return this.config.gauge_label_extents; + Object.defineProperty(window.SVGPathSegArcRel.prototype, 'x', { + get: function() { + return this._x; + }, + set: function(e) { + (this._x = e), this._segmentChanged(); + }, + enumerable: !0 + }), + Object.defineProperty(window.SVGPathSegArcRel.prototype, 'y', { + get: function() { + return this._y; + }, + set: function(e) { + (this._y = e), this._segmentChanged(); + }, + enumerable: !0 + }), + Object.defineProperty(window.SVGPathSegArcRel.prototype, 'r1', { + get: function() { + return this._r1; + }, + set: function(e) { + (this._r1 = e), this._segmentChanged(); + }, + enumerable: !0 }), - (r.prototype.getArcTitle = function() { - return this.hasType('donut') ? this.config.donut_title : ''; + Object.defineProperty(window.SVGPathSegArcRel.prototype, 'r2', { + get: function() { + return this._r2; + }, + set: function(e) { + (this._r2 = e), this._segmentChanged(); + }, + enumerable: !0 }), - (r.prototype.updateTargetsForArc = function(e) { - var t, - n = this, - r = n.main, - o = n.classChartArc.bind(n), - i = n.classArcs.bind(n), - a = n.classFocus.bind(n); - (t = r - .select('.' + M.chartArcs) - .selectAll('.' + M.chartArc) - .data(n.pie(e)) - .attr('class', function(e) { - return o(e) + a(e.data); - }) - .enter() - .append('g') - .attr('class', o)) - .append('g') - .attr('class', i), - t - .append('text') - .attr('dy', n.hasType('gauge') ? '-.1em' : '.35em') - .style('opacity', 0) - .style('text-anchor', 'middle') - .style('pointer-events', 'none'); + Object.defineProperty(window.SVGPathSegArcRel.prototype, 'angle', { + get: function() { + return this._angle; + }, + set: function(e) { + (this._angle = e), this._segmentChanged(); + }, + enumerable: !0 }), - (r.prototype.initArc = function() { - var e = this; - (e.arcs = e.main - .select('.' + M.chart) - .append('g') - .attr('class', M.chartArcs) - .attr('transform', e.getTranslate('arc'))), - e.arcs - .append('text') - .attr('class', M.chartArcsTitle) - .style('text-anchor', 'middle') - .text(e.getArcTitle()); - }), - (r.prototype.redrawArc = function(e, t, n) { - var r, - o, - i, - a, - s = this, - c = s.d3, - u = s.config, - l = s.main, - f = s.hasType('gauge'); - if ( - ((o = (r = l - .selectAll('.' + M.arcs) - .selectAll('.' + M.arc) - .data(s.arcData.bind(s))) - .enter() - .append('path') - .attr('class', s.classArc.bind(s)) - .style('fill', function(e) { - return s.color(e.data); - }) - .style('cursor', function(e) { - return u.interaction_enabled && - u.data_selection_isselectable(e) - ? 'pointer' - : null; - }) - .each(function(e) { - s.isGaugeType(e.data) && - (e.startAngle = e.endAngle = u.gauge_startingAngle), - (this._current = e); - }) - .merge(r)), - f && - ((a = (i = l - .selectAll('.' + M.arcs) - .selectAll('.' + M.arcLabelLine) - .data(s.arcData.bind(s))) - .enter() - .append('rect') - .attr('class', function(e) { - return ( - M.arcLabelLine + - ' ' + - M.target + - ' ' + - M.target + - '-' + - e.data.id - ); - }) - .merge(i)), - 1 === s.filterTargetsToShow(s.data.targets).length - ? a.style('display', 'none') - : a - .style('fill', function(e) { - return s.levelColor - ? s.levelColor( - e.data.values.reduce(function(e, t) { - return e + t.value; - }, 0) - ) - : s.color(e.data); - }) - .style('display', u.gauge_labelLine_show ? '' : 'none') - .each(function(e) { - var t = 0, - n = 0, - r = 0, - o = ''; - if (s.hiddenTargetIds.indexOf(e.data.id) < 0) { - var i = s.updateAngle(e), - a = - (s.gaugeArcWidth / - s.filterTargetsToShow(s.data.targets).length) * - (i.index + 1), - u = i.endAngle - Math.PI / 2, - l = s.radius - a, - f = u - (0 === l ? 0 : 1 / l); - (t = s.radiusExpanded - s.radius + a), - (n = Math.cos(f) * l), - (r = Math.sin(f) * l), - (o = - 'rotate(' + - (180 * u) / Math.PI + - ', ' + - n + - ', ' + - r + - ')'); - } - c.select(this) - .attr('x', n) - .attr('y', r) - .attr('width', t) - .attr('height', 2) - .attr('transform', o) - .style('stroke-dasharray', '0, ' + (t + 2) + ', 0'); - })), - o - .attr('transform', function(e) { - return !s.isGaugeType(e.data) && n ? 'scale(0)' : ''; - }) - .on( - 'mouseover', - u.interaction_enabled - ? function(e) { - var t, n; - s.transiting || - ((t = s.updateAngle(e)) && - ((n = s.convertToArcData(t)), - s.expandArc(t.data.id), - s.api.focus(t.data.id), - s.toggleFocusLegend(t.data.id, !0), - s.config.data_onmouseover(n, this))); - } - : null - ) - .on( - 'mousemove', - u.interaction_enabled - ? function(e) { - var t, - n = s.updateAngle(e); - n && - ((t = [s.convertToArcData(n)]), - s.showTooltip(t, this)); - } - : null - ) - .on( - 'mouseout', - u.interaction_enabled - ? function(e) { - var t, n; - s.transiting || - ((t = s.updateAngle(e)) && - ((n = s.convertToArcData(t)), - s.unexpandArc(t.data.id), - s.api.revert(), - s.revertLegend(), - s.hideTooltip(), - s.config.data_onmouseout(n, this))); - } - : null - ) - .on( - 'click', - u.interaction_enabled - ? function(e, t) { - var n, - r = s.updateAngle(e); - r && - ((n = s.convertToArcData(r)), - s.toggleShape && s.toggleShape(this, n, t), - s.config.data_onclick.call(s.api, n, this)); - } - : null - ) - .each(function() { - s.transiting = !0; - }) - .transition() - .duration(e) - .attrTween('d', function(e) { - var t, - n = s.updateAngle(e); - return n - ? (isNaN(this._current.startAngle) && - (this._current.startAngle = 0), - isNaN(this._current.endAngle) && - (this._current.endAngle = this._current.startAngle), - (t = c.interpolate(this._current, n)), - (this._current = t(0)), - function(n) { - if (null === s.config) return 'M 0 0'; - var r = t(n); - return (r.data = e.data), s.getArc(r, !0); - }) - : function() { - return 'M 0 0'; - }; - }) - .attr('transform', n ? 'scale(1)' : '') - .style('fill', function(e) { - return s.levelColor - ? s.levelColor( - e.data.values.reduce(function(e, t) { - return e + t.value; - }, 0) - ) - : s.color(e.data.id); - }) - .call(s.endall, function() { - s.transiting = !1; - }), - r - .exit() - .transition() - .duration(t) - .style('opacity', 0) - .remove(), - l - .selectAll('.' + M.chartArc) - .select('text') - .style('opacity', 0) - .attr('class', function(e) { - return s.isGaugeType(e.data) ? M.gaugeValue : ''; - }) - .text(s.textForArcLabel.bind(s)) - .attr('transform', s.transformForArcLabel.bind(s)) - .style('font-size', function(e) { - return s.isGaugeType(e.data) && - 1 === s.filterTargetsToShow(s.data.targets).length - ? Math.round(s.radius / 5) + 'px' - : ''; - }) - .transition() - .duration(e) - .style('opacity', function(e) { - return s.isTargetToShow(e.data.id) && s.isArcType(e.data) - ? 1 - : 0; - }), - l - .select('.' + M.chartArcsTitle) - .style('opacity', s.hasType('donut') || f ? 1 : 0), - f) - ) { - var d = 0, - p = s.arcs - .select('g.' + M.chartArcsBackground) - .selectAll('path.' + M.chartArcsBackground) - .data(s.data.targets); - p - .enter() - .append('path') - .attr('class', function(e, t) { - return ( - M.chartArcsBackground + - ' ' + - M.chartArcsBackground + - '-' + - t - ); - }) - .merge(p) - .attr('d', function(e) { - if (s.hiddenTargetIds.indexOf(e.id) >= 0) return 'M 0 0'; - var t = { - data: [{ value: u.gauge_max }], - startAngle: u.gauge_startingAngle, - endAngle: - -1 * - u.gauge_startingAngle * - (u.gauge_fullCircle ? Math.PI : 1), - index: d++ - }; - return s.getArc(t, !0, !0); - }), - p.exit().remove(), - s.arcs - .select('.' + M.chartArcsGaugeUnit) - .attr('dy', '.75em') - .text(u.gauge_label_show ? u.gauge_units : ''), - s.arcs - .select('.' + M.chartArcsGaugeMin) - .attr( - 'dx', - -1 * - (s.innerRadius + - (s.radius - s.innerRadius) / - (u.gauge_fullCircle ? 1 : 2)) + - 'px' - ) - .attr('dy', '1.2em') - .text( - u.gauge_label_show - ? s.textForGaugeMinMax(u.gauge_min, !1) - : '' - ), - s.arcs - .select('.' + M.chartArcsGaugeMax) - .attr( - 'dx', - s.innerRadius + - (s.radius - s.innerRadius) / - (u.gauge_fullCircle ? 1 : 2) + - 'px' - ) - .attr('dy', '1.2em') - .text( - u.gauge_label_show - ? s.textForGaugeMinMax(u.gauge_max, !0) - : '' - ); + Object.defineProperty( + window.SVGPathSegArcRel.prototype, + 'largeArcFlag', + { + get: function() { + return this._largeArcFlag; + }, + set: function(e) { + (this._largeArcFlag = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegArcRel.prototype, + 'sweepFlag', + { + get: function() { + return this._sweepFlag; + }, + set: function(e) { + (this._sweepFlag = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegLinetoHorizontalAbs = function(e, t) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS, + 'H', + e + ), + (this._x = t); + }), + (window.SVGPathSegLinetoHorizontalAbs.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegLinetoHorizontalAbs.prototype.toString = function() { + return '[object SVGPathSegLinetoHorizontalAbs]'; + }), + (window.SVGPathSegLinetoHorizontalAbs.prototype._asPathString = function() { + return this.pathSegTypeAsLetter + ' ' + this._x; + }), + (window.SVGPathSegLinetoHorizontalAbs.prototype.clone = function() { + return new window.SVGPathSegLinetoHorizontalAbs(void 0, this._x); + }), + Object.defineProperty( + window.SVGPathSegLinetoHorizontalAbs.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(e) { + (this._x = e), this._segmentChanged(); + }, + enumerable: !0 } + ), + (window.SVGPathSegLinetoHorizontalRel = function(e, t) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL, + 'h', + e + ), + (this._x = t); + }), + (window.SVGPathSegLinetoHorizontalRel.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegLinetoHorizontalRel.prototype.toString = function() { + return '[object SVGPathSegLinetoHorizontalRel]'; + }), + (window.SVGPathSegLinetoHorizontalRel.prototype._asPathString = function() { + return this.pathSegTypeAsLetter + ' ' + this._x; }), - (r.prototype.initGauge = function() { - var e = this.arcs; - this.hasType('gauge') && - (e.append('g').attr('class', M.chartArcsBackground), + (window.SVGPathSegLinetoHorizontalRel.prototype.clone = function() { + return new window.SVGPathSegLinetoHorizontalRel(void 0, this._x); + }), + Object.defineProperty( + window.SVGPathSegLinetoHorizontalRel.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(e) { + (this._x = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegLinetoVerticalAbs = function(e, t) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS, + 'V', e - .append('text') - .attr('class', M.chartArcsGaugeUnit) - .style('text-anchor', 'middle') - .style('pointer-events', 'none'), + ), + (this._y = t); + }), + (window.SVGPathSegLinetoVerticalAbs.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegLinetoVerticalAbs.prototype.toString = function() { + return '[object SVGPathSegLinetoVerticalAbs]'; + }), + (window.SVGPathSegLinetoVerticalAbs.prototype._asPathString = function() { + return this.pathSegTypeAsLetter + ' ' + this._y; + }), + (window.SVGPathSegLinetoVerticalAbs.prototype.clone = function() { + return new window.SVGPathSegLinetoVerticalAbs(void 0, this._y); + }), + Object.defineProperty( + window.SVGPathSegLinetoVerticalAbs.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(e) { + (this._y = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegLinetoVerticalRel = function(e, t) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL, + 'v', e - .append('text') - .attr('class', M.chartArcsGaugeMin) - .style('text-anchor', 'middle') - .style('pointer-events', 'none'), + ), + (this._y = t); + }), + (window.SVGPathSegLinetoVerticalRel.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegLinetoVerticalRel.prototype.toString = function() { + return '[object SVGPathSegLinetoVerticalRel]'; + }), + (window.SVGPathSegLinetoVerticalRel.prototype._asPathString = function() { + return this.pathSegTypeAsLetter + ' ' + this._y; + }), + (window.SVGPathSegLinetoVerticalRel.prototype.clone = function() { + return new window.SVGPathSegLinetoVerticalRel(void 0, this._y); + }), + Object.defineProperty( + window.SVGPathSegLinetoVerticalRel.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(e) { + (this._y = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegCurvetoCubicSmoothAbs = function(e, t, n, r, o) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS, + 'S', e - .append('text') - .attr('class', M.chartArcsGaugeMax) - .style('text-anchor', 'middle') - .style('pointer-events', 'none')); + ), + (this._x = t), + (this._y = n), + (this._x2 = r), + (this._y2 = o); }), - (r.prototype.getGaugeLabelHeight = function() { - return this.config.gauge_label_show ? 20 : 0; + (window.SVGPathSegCurvetoCubicSmoothAbs.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegCurvetoCubicSmoothAbs.prototype.toString = function() { + return '[object SVGPathSegCurvetoCubicSmoothAbs]'; }), - (r.prototype.addToCache = function(e, t) { - this.cache['$'.concat(e)] = t; + (window.SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString = function() { + return ( + this.pathSegTypeAsLetter + + ' ' + + this._x2 + + ' ' + + this._y2 + + ' ' + + this._x + + ' ' + + this._y + ); }), - (r.prototype.getFromCache = function(e) { - return this.cache['$'.concat(e)]; + (window.SVGPathSegCurvetoCubicSmoothAbs.prototype.clone = function() { + return new window.SVGPathSegCurvetoCubicSmoothAbs( + void 0, + this._x, + this._y, + this._x2, + this._y2 + ); }), - (r.prototype.resetCache = function() { - var e = this; - Object.keys(this.cache) - .filter(function(e) { - return /^\$/.test(e); - }) - .forEach(function(t) { - delete e.cache[t]; - }); + Object.defineProperty( + window.SVGPathSegCurvetoCubicSmoothAbs.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(e) { + (this._x = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicSmoothAbs.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(e) { + (this._y = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicSmoothAbs.prototype, + 'x2', + { + get: function() { + return this._x2; + }, + set: function(e) { + (this._x2 = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicSmoothAbs.prototype, + 'y2', + { + get: function() { + return this._y2; + }, + set: function(e) { + (this._y2 = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegCurvetoCubicSmoothRel = function(e, t, n, r, o) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL, + 's', + e + ), + (this._x = t), + (this._y = n), + (this._x2 = r), + (this._y2 = o); }), - (r.prototype.hasCaches = function(e) { - for (var t = 0; t < e.length; t++) - if (!(e[t] in this.cache)) return !1; - return !0; + (window.SVGPathSegCurvetoCubicSmoothRel.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegCurvetoCubicSmoothRel.prototype.toString = function() { + return '[object SVGPathSegCurvetoCubicSmoothRel]'; }), - (r.prototype.addCache = function(e, t) { - this.cache[e] = this.cloneTarget(t); + (window.SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString = function() { + return ( + this.pathSegTypeAsLetter + + ' ' + + this._x2 + + ' ' + + this._y2 + + ' ' + + this._x + + ' ' + + this._y + ); }), - (r.prototype.getCaches = function(e) { - var t, - n = []; - for (t = 0; t < e.length; t++) - e[t] in this.cache && n.push(this.cloneTarget(this.cache[e[t]])); - return n; + (window.SVGPathSegCurvetoCubicSmoothRel.prototype.clone = function() { + return new window.SVGPathSegCurvetoCubicSmoothRel( + void 0, + this._x, + this._y, + this._x2, + this._y2 + ); }), - (r.prototype.categoryName = function(e) { - var t = this.config; - return e < t.axis_x_categories.length ? t.axis_x_categories[e] : e; + Object.defineProperty( + window.SVGPathSegCurvetoCubicSmoothRel.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(e) { + (this._x = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicSmoothRel.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(e) { + (this._y = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicSmoothRel.prototype, + 'x2', + { + get: function() { + return this._x2; + }, + set: function(e) { + (this._x2 = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicSmoothRel.prototype, + 'y2', + { + get: function() { + return this._y2; + }, + set: function(e) { + (this._y2 = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegCurvetoQuadraticSmoothAbs = function(e, t, n) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS, + 'T', + e + ), + (this._x = t), + (this._y = n); }), - (r.prototype.generateTargetClass = function(e) { - return e || 0 === e ? ('-' + e).replace(/\s/g, '-') : ''; + (window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString = function() { + return '[object SVGPathSegCurvetoQuadraticSmoothAbs]'; }), - (r.prototype.generateClass = function(e, t) { - return ' ' + e + ' ' + e + this.generateTargetClass(t); + (window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString = function() { + return this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y; }), - (r.prototype.classText = function(e) { - return this.generateClass(M.text, e.index); + (window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone = function() { + return new window.SVGPathSegCurvetoQuadraticSmoothAbs( + void 0, + this._x, + this._y + ); }), - (r.prototype.classTexts = function(e) { - return this.generateClass(M.texts, e.id); + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(e) { + (this._x = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(e) { + (this._y = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegCurvetoQuadraticSmoothRel = function(e, t, n) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL, + 't', + e + ), + (this._x = t), + (this._y = n); }), - (r.prototype.classShape = function(e) { - return this.generateClass(M.shape, e.index); + (window.SVGPathSegCurvetoQuadraticSmoothRel.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString = function() { + return '[object SVGPathSegCurvetoQuadraticSmoothRel]'; }), - (r.prototype.classShapes = function(e) { - return this.generateClass(M.shapes, e.id); + (window.SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString = function() { + return this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y; }), - (r.prototype.classLine = function(e) { - return this.classShape(e) + this.generateClass(M.line, e.id); + (window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone = function() { + return new window.SVGPathSegCurvetoQuadraticSmoothRel( + void 0, + this._x, + this._y + ); }), - (r.prototype.classLines = function(e) { - return this.classShapes(e) + this.generateClass(M.lines, e.id); + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticSmoothRel.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(e) { + (this._x = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticSmoothRel.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(e) { + (this._y = e), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathElement.prototype.createSVGPathSegClosePath = function() { + return new window.SVGPathSegClosePath(void 0); }), - (r.prototype.classCircle = function(e) { - return this.classShape(e) + this.generateClass(M.circle, e.index); + (window.SVGPathElement.prototype.createSVGPathSegMovetoAbs = function( + e, + t + ) { + return new window.SVGPathSegMovetoAbs(void 0, e, t); }), - (r.prototype.classCircles = function(e) { - return this.classShapes(e) + this.generateClass(M.circles, e.id); + (window.SVGPathElement.prototype.createSVGPathSegMovetoRel = function( + e, + t + ) { + return new window.SVGPathSegMovetoRel(void 0, e, t); }), - (r.prototype.classBar = function(e) { - return this.classShape(e) + this.generateClass(M.bar, e.index); + (window.SVGPathElement.prototype.createSVGPathSegLinetoAbs = function( + e, + t + ) { + return new window.SVGPathSegLinetoAbs(void 0, e, t); }), - (r.prototype.classBars = function(e) { - return this.classShapes(e) + this.generateClass(M.bars, e.id); + (window.SVGPathElement.prototype.createSVGPathSegLinetoRel = function( + e, + t + ) { + return new window.SVGPathSegLinetoRel(void 0, e, t); }), - (r.prototype.classArc = function(e) { - return ( - this.classShape(e.data) + this.generateClass(M.arc, e.data.id) + (window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs = function( + e, + t, + n, + r, + o, + i + ) { + return new window.SVGPathSegCurvetoCubicAbs( + void 0, + e, + t, + n, + r, + o, + i ); }), - (r.prototype.classArcs = function(e) { - return ( - this.classShapes(e.data) + this.generateClass(M.arcs, e.data.id) + (window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel = function( + e, + t, + n, + r, + o, + i + ) { + return new window.SVGPathSegCurvetoCubicRel( + void 0, + e, + t, + n, + r, + o, + i ); }), - (r.prototype.classArea = function(e) { - return this.classShape(e) + this.generateClass(M.area, e.id); + (window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs = function( + e, + t, + n, + r + ) { + return new window.SVGPathSegCurvetoQuadraticAbs(void 0, e, t, n, r); }), - (r.prototype.classAreas = function(e) { - return this.classShapes(e) + this.generateClass(M.areas, e.id); + (window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel = function( + e, + t, + n, + r + ) { + return new window.SVGPathSegCurvetoQuadraticRel(void 0, e, t, n, r); }), - (r.prototype.classRegion = function(e, t) { - return ( - this.generateClass(M.region, t) + - ' ' + - ('class' in e ? e.class : '') - ); + (window.SVGPathElement.prototype.createSVGPathSegArcAbs = function( + e, + t, + n, + r, + o, + i, + a + ) { + return new window.SVGPathSegArcAbs(void 0, e, t, n, r, o, i, a); }), - (r.prototype.classEvent = function(e) { - return this.generateClass(M.eventRect, e.index); + (window.SVGPathElement.prototype.createSVGPathSegArcRel = function( + e, + t, + n, + r, + o, + i, + a + ) { + return new window.SVGPathSegArcRel(void 0, e, t, n, r, o, i, a); }), - (r.prototype.classTarget = function(e) { - var t = this.config.data_classes[e], - n = ''; - return ( - t && (n = ' ' + M.target + '-' + t), - this.generateClass(M.target, e) + n - ); + (window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs = function( + e + ) { + return new window.SVGPathSegLinetoHorizontalAbs(void 0, e); }), - (r.prototype.classFocus = function(e) { - return this.classFocused(e) + this.classDefocused(e); + (window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel = function( + e + ) { + return new window.SVGPathSegLinetoHorizontalRel(void 0, e); }), - (r.prototype.classFocused = function(e) { - return ( - ' ' + (this.focusedTargetIds.indexOf(e.id) >= 0 ? M.focused : '') - ); + (window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs = function( + e + ) { + return new window.SVGPathSegLinetoVerticalAbs(void 0, e); }), - (r.prototype.classDefocused = function(e) { - return ( - ' ' + - (this.defocusedTargetIds.indexOf(e.id) >= 0 ? M.defocused : '') - ); + (window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel = function( + e + ) { + return new window.SVGPathSegLinetoVerticalRel(void 0, e); }), - (r.prototype.classChartText = function(e) { - return M.chartText + this.classTarget(e.id); + (window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs = function( + e, + t, + n, + r + ) { + return new window.SVGPathSegCurvetoCubicSmoothAbs( + void 0, + e, + t, + n, + r + ); }), - (r.prototype.classChartLine = function(e) { - return M.chartLine + this.classTarget(e.id); + (window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel = function( + e, + t, + n, + r + ) { + return new window.SVGPathSegCurvetoCubicSmoothRel( + void 0, + e, + t, + n, + r + ); }), - (r.prototype.classChartBar = function(e) { - return M.chartBar + this.classTarget(e.id); + (window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs = function( + e, + t + ) { + return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0, e, t); }), - (r.prototype.classChartArc = function(e) { - return M.chartArc + this.classTarget(e.data.id); + (window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel = function( + e, + t + ) { + return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0, e, t); + }), + 'getPathSegAtLength' in window.SVGPathElement.prototype || + (window.SVGPathElement.prototype.getPathSegAtLength = function(e) { + if (void 0 === e || !isFinite(e)) throw 'Invalid arguments.'; + var t = document.createElementNS( + 'http://www.w3.org/2000/svg', + 'path' + ); + t.setAttribute('d', this.getAttribute('d')); + var n = t.pathSegList.numberOfItems - 1; + if (n <= 0) return 0; + do { + if ((t.pathSegList.removeItem(n), e > t.getTotalLength())) + break; + n--; + } while (n > 0); + return n; + })), + 'SVGPathSegList' in window || + ((window.SVGPathSegList = function(e) { + (this._pathElement = e), + (this._list = this._parsePath( + this._pathElement.getAttribute('d') + )), + (this._mutationObserverConfig = { + attributes: !0, + attributeFilter: ['d'] + }), + (this._pathElementMutationObserver = new MutationObserver( + this._updateListFromPathMutations.bind(this) + )), + this._pathElementMutationObserver.observe( + this._pathElement, + this._mutationObserverConfig + ); }), - (r.prototype.getTargetSelectorSuffix = function(e) { - var t = this.generateTargetClass(e); - return window.CSS && window.CSS.escape - ? window.CSS.escape(t) - : t.replace(/([?!@#$%^&*()=+,.<>'":;\[\]\/|~`{}\\])/g, '\\$1'); + (window.SVGPathSegList.prototype.classname = 'SVGPathSegList'), + Object.defineProperty( + window.SVGPathSegList.prototype, + 'numberOfItems', + { + get: function() { + return this._checkPathSynchronizedToList(), this._list.length; + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathElement.prototype, + 'pathSegList', + { + get: function() { + return ( + this._pathSegList || + (this._pathSegList = new window.SVGPathSegList(this)), + this._pathSegList + ); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathElement.prototype, + 'normalizedPathSegList', + { + get: function() { + return this.pathSegList; + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathElement.prototype, + 'animatedPathSegList', + { + get: function() { + return this.pathSegList; + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathElement.prototype, + 'animatedNormalizedPathSegList', + { + get: function() { + return this.pathSegList; + }, + enumerable: !0 + } + ), + (window.SVGPathSegList.prototype._checkPathSynchronizedToList = function() { + this._updateListFromPathMutations( + this._pathElementMutationObserver.takeRecords() + ); }), - (r.prototype.selectorTarget = function(e, t) { - return (t || '') + '.' + M.target + this.getTargetSelectorSuffix(e); + (window.SVGPathSegList.prototype._updateListFromPathMutations = function( + e + ) { + if (this._pathElement) { + var t = !1; + e.forEach(function(e) { + 'd' == e.attributeName && (t = !0); + }), + t && + (this._list = this._parsePath( + this._pathElement.getAttribute('d') + )); + } }), - (r.prototype.selectorTargets = function(e, t) { - var n = this; - return (e = e || []).length - ? e.map(function(e) { - return n.selectorTarget(e, t); - }) - : null; + (window.SVGPathSegList.prototype._writeListToPath = function() { + this._pathElementMutationObserver.disconnect(), + this._pathElement.setAttribute( + 'd', + window.SVGPathSegList._pathSegArrayAsString(this._list) + ), + this._pathElementMutationObserver.observe( + this._pathElement, + this._mutationObserverConfig + ); }), - (r.prototype.selectorLegend = function(e) { - return '.' + M.legendItem + this.getTargetSelectorSuffix(e); + (window.SVGPathSegList.prototype.segmentChanged = function(e) { + this._writeListToPath(); }), - (r.prototype.selectorLegends = function(e) { - var t = this; - return e && e.length - ? e.map(function(e) { - return t.selectorLegend(e); - }) - : null; + (window.SVGPathSegList.prototype.clear = function() { + this._checkPathSynchronizedToList(), + this._list.forEach(function(e) { + e._owningPathSegList = null; + }), + (this._list = []), + this._writeListToPath(); }), - (r.prototype.getClipPath = function(e) { + (window.SVGPathSegList.prototype.initialize = function(e) { return ( - 'url('https://github.com/+%20(x(9) ? '' : document.URL.split('#')[0]) + '#' + e + ')' + this._checkPathSynchronizedToList(), + (this._list = [e]), + (e._owningPathSegList = this), + this._writeListToPath(), + e ); }), - (r.prototype.appendClip = function(e, t) { - return e - .append('clipPath') - .attr('id', t) - .append('rect'); - }), - (r.prototype.getAxisClipX = function(e) { - var t = Math.max(30, this.margin.left); - return e ? -(1 + t) : -(t - 1); - }), - (r.prototype.getAxisClipY = function(e) { - return e ? -20 : -this.margin.top; - }), - (r.prototype.getXAxisClipX = function() { - return this.getAxisClipX(!this.config.axis_rotated); - }), - (r.prototype.getXAxisClipY = function() { - return this.getAxisClipY(!this.config.axis_rotated); - }), - (r.prototype.getYAxisClipX = function() { - return this.config.axis_y_inner - ? -1 - : this.getAxisClipX(this.config.axis_rotated); - }), - (r.prototype.getYAxisClipY = function() { - return this.getAxisClipY(this.config.axis_rotated); + (window.SVGPathSegList.prototype._checkValidIndex = function(e) { + if (isNaN(e) || e < 0 || e >= this.numberOfItems) + throw 'INDEX_SIZE_ERR'; }), - (r.prototype.getAxisClipWidth = function(e) { - var t = Math.max(30, this.margin.left), - n = Math.max(30, this.margin.right); - return e ? this.width + 2 + t + n : this.margin.left + 20; + (window.SVGPathSegList.prototype.getItem = function(e) { + return ( + this._checkPathSynchronizedToList(), + this._checkValidIndex(e), + this._list[e] + ); }), - (r.prototype.getAxisClipHeight = function(e) { + (window.SVGPathSegList.prototype.insertItemBefore = function(e, t) { return ( - (e ? this.margin.bottom : this.margin.top + this.height) + 20 + this._checkPathSynchronizedToList(), + t > this.numberOfItems && (t = this.numberOfItems), + e._owningPathSegList && (e = e.clone()), + this._list.splice(t, 0, e), + (e._owningPathSegList = this), + this._writeListToPath(), + e ); }), - (r.prototype.getXAxisClipWidth = function() { - return this.getAxisClipWidth(!this.config.axis_rotated); + (window.SVGPathSegList.prototype.replaceItem = function(e, t) { + return ( + this._checkPathSynchronizedToList(), + e._owningPathSegList && (e = e.clone()), + this._checkValidIndex(t), + (this._list[t] = e), + (e._owningPathSegList = this), + this._writeListToPath(), + e + ); }), - (r.prototype.getXAxisClipHeight = function() { - return this.getAxisClipHeight(!this.config.axis_rotated); + (window.SVGPathSegList.prototype.removeItem = function(e) { + this._checkPathSynchronizedToList(), this._checkValidIndex(e); + var t = this._list[e]; + return this._list.splice(e, 1), this._writeListToPath(), t; }), - (r.prototype.getYAxisClipWidth = function() { + (window.SVGPathSegList.prototype.appendItem = function(e) { return ( - this.getAxisClipWidth(this.config.axis_rotated) + - (this.config.axis_y_inner ? 20 : 0) + this._checkPathSynchronizedToList(), + e._owningPathSegList && (e = e.clone()), + this._list.push(e), + (e._owningPathSegList = this), + this._writeListToPath(), + e ); }), - (r.prototype.getYAxisClipHeight = function() { - return this.getAxisClipHeight(this.config.axis_rotated); + (window.SVGPathSegList._pathSegArrayAsString = function(e) { + var t = '', + n = !0; + return ( + e.forEach(function(e) { + n + ? ((n = !1), (t += e._asPathString())) + : (t += ' ' + e._asPathString()); + }), + t + ); }), - (r.prototype.generateColor = function() { - var e = this.config, - t = this.d3, - n = e.data_colors, - r = v(e.color_pattern) ? e.color_pattern : t.schemeCategory10, - o = e.data_color, - i = []; - return function(e) { - var t, - a = e.id || (e.data && e.data.id) || e; + (window.SVGPathSegList.prototype._parsePath = function(e) { + if (!e || 0 == e.length) return []; + var t = this, + n = function() { + this.pathSegList = []; + }; + n.prototype.appendSegment = function(e) { + this.pathSegList.push(e); + }; + var r = function(e) { + (this._string = e), + (this._currentIndex = 0), + (this._endIndex = this._string.length), + (this._previousCommand = window.SVGPathSeg.PATHSEG_UNKNOWN), + this._skipOptionalSpaces(); + }; + (r.prototype._isCurrentSpace = function() { + var e = this._string[this._currentIndex]; return ( - n[a] instanceof Function - ? (t = n[a](e)) - : n[a] - ? (t = n[a]) - : (i.indexOf(a) < 0 && i.push(a), - (t = r[i.indexOf(a) % r.length]), - (n[a] = t)), - o instanceof Function ? o(t, e) : t + e <= ' ' && + (' ' == e || '\n' == e || '\t' == e || '\r' == e || '\f' == e) ); - }; - }), - (r.prototype.generateLevelColor = function() { - var e = this.config, - t = e.color_pattern, - n = e.color_threshold, - r = 'value' === n.unit, - o = n.values && n.values.length ? n.values : [], - i = n.max || 100; - return v(n) && v(t) - ? function(e) { - var n, - a = t[t.length - 1]; - for (n = 0; n < o.length; n++) - if ((r ? e : (100 * e) / i) < o[n]) { - a = t[n]; - break; - } - return a; + }), + (r.prototype._skipOptionalSpaces = function() { + for ( + ; + this._currentIndex < this._endIndex && this._isCurrentSpace(); + + ) + this._currentIndex++; + return this._currentIndex < this._endIndex; + }), + (r.prototype._skipOptionalSpacesOrDelimiter = function() { + return ( + !( + this._currentIndex < this._endIndex && + !this._isCurrentSpace() && + ',' != this._string.charAt(this._currentIndex) + ) && + (this._skipOptionalSpaces() && + this._currentIndex < this._endIndex && + ',' == this._string.charAt(this._currentIndex) && + (this._currentIndex++, this._skipOptionalSpaces()), + this._currentIndex < this._endIndex) + ); + }), + (r.prototype.hasMoreData = function() { + return this._currentIndex < this._endIndex; + }), + (r.prototype.peekSegmentType = function() { + var e = this._string[this._currentIndex]; + return this._pathSegTypeFromChar(e); + }), + (r.prototype._pathSegTypeFromChar = function(e) { + switch (e) { + case 'Z': + case 'z': + return window.SVGPathSeg.PATHSEG_CLOSEPATH; + case 'M': + return window.SVGPathSeg.PATHSEG_MOVETO_ABS; + case 'm': + return window.SVGPathSeg.PATHSEG_MOVETO_REL; + case 'L': + return window.SVGPathSeg.PATHSEG_LINETO_ABS; + case 'l': + return window.SVGPathSeg.PATHSEG_LINETO_REL; + case 'C': + return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS; + case 'c': + return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL; + case 'Q': + return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS; + case 'q': + return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL; + case 'A': + return window.SVGPathSeg.PATHSEG_ARC_ABS; + case 'a': + return window.SVGPathSeg.PATHSEG_ARC_REL; + case 'H': + return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS; + case 'h': + return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL; + case 'V': + return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS; + case 'v': + return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL; + case 'S': + return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS; + case 's': + return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL; + case 'T': + return window.SVGPathSeg + .PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS; + case 't': + return window.SVGPathSeg + .PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL; + default: + return window.SVGPathSeg.PATHSEG_UNKNOWN; + } + }), + (r.prototype._nextCommandHelper = function(e, t) { + return ('+' == e || + '-' == e || + '.' == e || + (e >= '0' && e <= '9')) && + t != window.SVGPathSeg.PATHSEG_CLOSEPATH + ? t == window.SVGPathSeg.PATHSEG_MOVETO_ABS + ? window.SVGPathSeg.PATHSEG_LINETO_ABS + : t == window.SVGPathSeg.PATHSEG_MOVETO_REL + ? window.SVGPathSeg.PATHSEG_LINETO_REL + : t + : window.SVGPathSeg.PATHSEG_UNKNOWN; + }), + (r.prototype.initialCommandIsMoveTo = function() { + if (!this.hasMoreData()) return !0; + var e = this.peekSegmentType(); + return ( + e == window.SVGPathSeg.PATHSEG_MOVETO_ABS || + e == window.SVGPathSeg.PATHSEG_MOVETO_REL + ); + }), + (r.prototype._parseNumber = function() { + var e = 0, + t = 0, + n = 1, + r = 0, + o = 1, + i = 1, + a = this._currentIndex; + if ( + (this._skipOptionalSpaces(), + this._currentIndex < this._endIndex && + '+' == this._string.charAt(this._currentIndex) + ? this._currentIndex++ + : this._currentIndex < this._endIndex && + '-' == this._string.charAt(this._currentIndex) && + (this._currentIndex++, (o = -1)), + !( + this._currentIndex == this._endIndex || + ((this._string.charAt(this._currentIndex) < '0' || + this._string.charAt(this._currentIndex) > '9') && + '.' != this._string.charAt(this._currentIndex)) + )) + ) { + for ( + var s = this._currentIndex; + this._currentIndex < this._endIndex && + this._string.charAt(this._currentIndex) >= '0' && + this._string.charAt(this._currentIndex) <= '9'; + + ) + this._currentIndex++; + if (this._currentIndex != s) + for (var c = this._currentIndex - 1, u = 1; c >= s; ) + (t += u * (this._string.charAt(c--) - '0')), (u *= 10); + if ( + this._currentIndex < this._endIndex && + '.' == this._string.charAt(this._currentIndex) + ) { + if ( + (this._currentIndex++, + this._currentIndex >= this._endIndex || + this._string.charAt(this._currentIndex) < '0' || + this._string.charAt(this._currentIndex) > '9') + ) + return; + for ( + ; + this._currentIndex < this._endIndex && + this._string.charAt(this._currentIndex) >= '0' && + this._string.charAt(this._currentIndex) <= '9'; + + ) + (n *= 10), + (r += + (this._string.charAt(this._currentIndex) - '0') / n), + (this._currentIndex += 1); + } + if ( + this._currentIndex != a && + this._currentIndex + 1 < this._endIndex && + ('e' == this._string.charAt(this._currentIndex) || + 'E' == this._string.charAt(this._currentIndex)) && + 'x' != this._string.charAt(this._currentIndex + 1) && + 'm' != this._string.charAt(this._currentIndex + 1) + ) { + if ( + (this._currentIndex++, + '+' == this._string.charAt(this._currentIndex) + ? this._currentIndex++ + : '-' == this._string.charAt(this._currentIndex) && + (this._currentIndex++, (i = -1)), + this._currentIndex >= this._endIndex || + this._string.charAt(this._currentIndex) < '0' || + this._string.charAt(this._currentIndex) > '9') + ) + return; + for ( + ; + this._currentIndex < this._endIndex && + this._string.charAt(this._currentIndex) >= '0' && + this._string.charAt(this._currentIndex) <= '9'; + + ) + (e *= 10), + (e += this._string.charAt(this._currentIndex) - '0'), + this._currentIndex++; + } + var l = t + r; + if ( + ((l *= o), + e && (l *= Math.pow(10, i * e)), + a != this._currentIndex) + ) + return this._skipOptionalSpacesOrDelimiter(), l; } - : null; - }), - (r.prototype.getDefaultConfig = function() { - var e = { - bindto: '#chart', - svg_classname: void 0, - size_width: void 0, - size_height: void 0, - padding_left: void 0, - padding_right: void 0, - padding_top: void 0, - padding_bottom: void 0, - resize_auto: !0, - zoom_enabled: !1, - zoom_initialRange: void 0, - zoom_type: 'scroll', - zoom_disableDefaultBehavior: !1, - zoom_privileged: !1, - zoom_rescale: !1, - zoom_onzoom: function() {}, - zoom_onzoomstart: function() {}, - zoom_onzoomend: function() {}, - zoom_x_min: void 0, - zoom_x_max: void 0, - interaction_brighten: !0, - interaction_enabled: !0, - onmouseover: function() {}, - onmouseout: function() {}, - onresize: function() {}, - onresized: function() {}, - oninit: function() {}, - onrendered: function() {}, - transition_duration: 350, - data_epochs: 'epochs', - data_x: void 0, - data_xs: {}, - data_xFormat: '%Y-%m-%d', - data_xLocaltime: !0, - data_xSort: !0, - data_idConverter: function(e) { - return e; - }, - data_names: {}, - data_classes: {}, - data_groups: [], - data_axes: {}, - data_type: void 0, - data_types: {}, - data_labels: {}, - data_order: 'desc', - data_regions: {}, - data_color: void 0, - data_colors: {}, - data_hide: !1, - data_filter: void 0, - data_selection_enabled: !1, - data_selection_grouped: !1, - data_selection_isselectable: function() { - return !0; - }, - data_selection_multiple: !0, - data_selection_draggable: !1, - data_stack_normalize: !1, - data_onclick: function() {}, - data_onmouseover: function() {}, - data_onmouseout: function() {}, - data_onselected: function() {}, - data_onunselected: function() {}, - data_url: void 0, - data_headers: void 0, - data_json: void 0, - data_rows: void 0, - data_columns: void 0, - data_mimeType: void 0, - data_keys: void 0, - data_empty_label_text: '', - subchart_show: !1, - subchart_size_height: 60, - subchart_axis_x_show: !0, - subchart_onbrush: function() {}, - color_pattern: [], - color_threshold: {}, - legend_show: !0, - legend_hide: !1, - legend_position: 'bottom', - legend_inset_anchor: 'top-left', - legend_inset_x: 10, - legend_inset_y: 0, - legend_inset_step: void 0, - legend_item_onclick: void 0, - legend_item_onmouseover: void 0, - legend_item_onmouseout: void 0, - legend_equally: !1, - legend_padding: 0, - legend_item_tile_width: 10, - legend_item_tile_height: 10, - axis_rotated: !1, - axis_x_show: !0, - axis_x_type: 'indexed', - axis_x_localtime: !0, - axis_x_categories: [], - axis_x_tick_centered: !1, - axis_x_tick_format: void 0, - axis_x_tick_culling: {}, - axis_x_tick_culling_max: 10, - axis_x_tick_count: void 0, - axis_x_tick_fit: !0, - axis_x_tick_values: null, - axis_x_tick_rotate: 0, - axis_x_tick_outer: !0, - axis_x_tick_multiline: !0, - axis_x_tick_multilineMax: 0, - axis_x_tick_width: null, - axis_x_max: void 0, - axis_x_min: void 0, - axis_x_padding: {}, - axis_x_height: void 0, - axis_x_selection: void 0, - axis_x_label: {}, - axis_x_inner: void 0, - axis_y_show: !0, - axis_y_type: 'linear', - axis_y_max: void 0, - axis_y_min: void 0, - axis_y_inverted: !1, - axis_y_center: void 0, - axis_y_inner: void 0, - axis_y_label: {}, - axis_y_tick_format: void 0, - axis_y_tick_outer: !0, - axis_y_tick_values: null, - axis_y_tick_rotate: 0, - axis_y_tick_count: void 0, - axis_y_tick_time_type: void 0, - axis_y_tick_time_interval: void 0, - axis_y_padding: {}, - axis_y_default: void 0, - axis_y2_show: !1, - axis_y2_type: 'linear', - axis_y2_max: void 0, - axis_y2_min: void 0, - axis_y2_inverted: !1, - axis_y2_center: void 0, - axis_y2_inner: void 0, - axis_y2_label: {}, - axis_y2_tick_format: void 0, - axis_y2_tick_outer: !0, - axis_y2_tick_values: null, - axis_y2_tick_count: void 0, - axis_y2_padding: {}, - axis_y2_default: void 0, - grid_x_show: !1, - grid_x_type: 'tick', - grid_x_lines: [], - grid_y_show: !1, - grid_y_lines: [], - grid_y_ticks: 10, - grid_focus_show: !0, - grid_lines_front: !0, - point_show: !0, - point_r: 2.5, - point_sensitivity: 10, - point_focus_expand_enabled: !0, - point_focus_expand_r: void 0, - point_select_r: void 0, - line_connectNull: !1, - line_step_type: 'step', - bar_width: void 0, - bar_width_ratio: 0.6, - bar_width_max: void 0, - bar_zerobased: !0, - bar_space: 0, - area_zerobased: !0, - area_above: !1, - pie_label_show: !0, - pie_label_format: void 0, - pie_label_threshold: 0.05, - pie_label_ratio: void 0, - pie_expand: {}, - pie_expand_duration: 50, - pie_padAngle: 0, - gauge_fullCircle: !1, - gauge_label_show: !0, - gauge_labelLine_show: !0, - gauge_label_format: void 0, - gauge_min: 0, - gauge_max: 100, - gauge_startingAngle: (-1 * Math.PI) / 2, - gauge_label_extents: void 0, - gauge_units: void 0, - gauge_width: void 0, - gauge_arcs_minWidth: 5, - gauge_expand: {}, - gauge_expand_duration: 50, - donut_label_show: !0, - donut_label_format: void 0, - donut_label_threshold: 0.05, - donut_label_ratio: void 0, - donut_width: void 0, - donut_title: '', - donut_expand: {}, - donut_expand_duration: 50, - donut_padAngle: 0, - spline_interpolation_type: 'cardinal', - stanford_lines: [], - stanford_regions: [], - stanford_texts: [], - stanford_scaleMin: void 0, - stanford_scaleMax: void 0, - stanford_scaleWidth: void 0, - stanford_scaleFormat: void 0, - stanford_scaleValues: void 0, - stanford_colors: void 0, - stanford_padding: { top: 0, right: 0, bottom: 0, left: 0 }, - regions: [], - tooltip_show: !0, - tooltip_grouped: !0, - tooltip_order: void 0, - tooltip_format_title: void 0, - tooltip_format_name: void 0, - tooltip_format_value: void 0, - tooltip_horizontal: void 0, - tooltip_position: void 0, - tooltip_contents: function(e, t, n, r) { - return this.getTooltipContent - ? this.getTooltipContent(e, t, n, r) - : ''; - }, - tooltip_init_show: !1, - tooltip_init_x: 0, - tooltip_init_position: { top: '0px', left: '50px' }, - tooltip_onshow: function() {}, - tooltip_onhide: function() {}, - title_text: void 0, - title_padding: { top: 0, right: 0, bottom: 0, left: 0 }, - title_position: 'top-center' - }; + }), + (r.prototype._parseArcFlag = function() { + if (!(this._currentIndex >= this._endIndex)) { + var e = !1, + t = this._string.charAt(this._currentIndex++); + if ('0' == t) e = !1; + else { + if ('1' != t) return; + e = !0; + } + return this._skipOptionalSpacesOrDelimiter(), e; + } + }), + (r.prototype.parseSegment = function() { + var e = this._string[this._currentIndex], + n = this._pathSegTypeFromChar(e); + if (n == window.SVGPathSeg.PATHSEG_UNKNOWN) { + if ( + this._previousCommand == window.SVGPathSeg.PATHSEG_UNKNOWN + ) + return null; + if ( + (n = this._nextCommandHelper(e, this._previousCommand)) == + window.SVGPathSeg.PATHSEG_UNKNOWN + ) + return null; + } else this._currentIndex++; + switch (((this._previousCommand = n), n)) { + case window.SVGPathSeg.PATHSEG_MOVETO_REL: + return new window.SVGPathSegMovetoRel( + t, + this._parseNumber(), + this._parseNumber() + ); + case window.SVGPathSeg.PATHSEG_MOVETO_ABS: + return new window.SVGPathSegMovetoAbs( + t, + this._parseNumber(), + this._parseNumber() + ); + case window.SVGPathSeg.PATHSEG_LINETO_REL: + return new window.SVGPathSegLinetoRel( + t, + this._parseNumber(), + this._parseNumber() + ); + case window.SVGPathSeg.PATHSEG_LINETO_ABS: + return new window.SVGPathSegLinetoAbs( + t, + this._parseNumber(), + this._parseNumber() + ); + case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL: + return new window.SVGPathSegLinetoHorizontalRel( + t, + this._parseNumber() + ); + case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS: + return new window.SVGPathSegLinetoHorizontalAbs( + t, + this._parseNumber() + ); + case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL: + return new window.SVGPathSegLinetoVerticalRel( + t, + this._parseNumber() + ); + case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS: + return new window.SVGPathSegLinetoVerticalAbs( + t, + this._parseNumber() + ); + case window.SVGPathSeg.PATHSEG_CLOSEPATH: + return ( + this._skipOptionalSpaces(), + new window.SVGPathSegClosePath(t) + ); + case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL: + var r = { + x1: this._parseNumber(), + y1: this._parseNumber(), + x2: this._parseNumber(), + y2: this._parseNumber(), + x: this._parseNumber(), + y: this._parseNumber() + }; + return new window.SVGPathSegCurvetoCubicRel( + t, + r.x, + r.y, + r.x1, + r.y1, + r.x2, + r.y2 + ); + case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS: + return ( + (r = { + x1: this._parseNumber(), + y1: this._parseNumber(), + x2: this._parseNumber(), + y2: this._parseNumber(), + x: this._parseNumber(), + y: this._parseNumber() + }), + new window.SVGPathSegCurvetoCubicAbs( + t, + r.x, + r.y, + r.x1, + r.y1, + r.x2, + r.y2 + ) + ); + case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL: + return ( + (r = { + x2: this._parseNumber(), + y2: this._parseNumber(), + x: this._parseNumber(), + y: this._parseNumber() + }), + new window.SVGPathSegCurvetoCubicSmoothRel( + t, + r.x, + r.y, + r.x2, + r.y2 + ) + ); + case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: + return ( + (r = { + x2: this._parseNumber(), + y2: this._parseNumber(), + x: this._parseNumber(), + y: this._parseNumber() + }), + new window.SVGPathSegCurvetoCubicSmoothAbs( + t, + r.x, + r.y, + r.x2, + r.y2 + ) + ); + case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL: + return ( + (r = { + x1: this._parseNumber(), + y1: this._parseNumber(), + x: this._parseNumber(), + y: this._parseNumber() + }), + new window.SVGPathSegCurvetoQuadraticRel( + t, + r.x, + r.y, + r.x1, + r.y1 + ) + ); + case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS: + return ( + (r = { + x1: this._parseNumber(), + y1: this._parseNumber(), + x: this._parseNumber(), + y: this._parseNumber() + }), + new window.SVGPathSegCurvetoQuadraticAbs( + t, + r.x, + r.y, + r.x1, + r.y1 + ) + ); + case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: + return new window.SVGPathSegCurvetoQuadraticSmoothRel( + t, + this._parseNumber(), + this._parseNumber() + ); + case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: + return new window.SVGPathSegCurvetoQuadraticSmoothAbs( + t, + this._parseNumber(), + this._parseNumber() + ); + case window.SVGPathSeg.PATHSEG_ARC_REL: + return ( + (r = { + x1: this._parseNumber(), + y1: this._parseNumber(), + arcAngle: this._parseNumber(), + arcLarge: this._parseArcFlag(), + arcSweep: this._parseArcFlag(), + x: this._parseNumber(), + y: this._parseNumber() + }), + new window.SVGPathSegArcRel( + t, + r.x, + r.y, + r.x1, + r.y1, + r.arcAngle, + r.arcLarge, + r.arcSweep + ) + ); + case window.SVGPathSeg.PATHSEG_ARC_ABS: + return ( + (r = { + x1: this._parseNumber(), + y1: this._parseNumber(), + arcAngle: this._parseNumber(), + arcLarge: this._parseArcFlag(), + arcSweep: this._parseArcFlag(), + x: this._parseNumber(), + y: this._parseNumber() + }), + new window.SVGPathSegArcAbs( + t, + r.x, + r.y, + r.x1, + r.y1, + r.arcAngle, + r.arcLarge, + r.arcSweep + ) + ); + default: + throw 'Unknown path seg type.'; + } + }); + var o = new n(), + i = new r(e); + if (!i.initialCommandIsMoveTo()) return []; + for (; i.hasMoreData(); ) { + var a = i.parseSegment(); + if (!a) return []; + o.appendSegment(a); + } + return o.pathSegList; + })), + String.prototype.padEnd || + (String.prototype.padEnd = function(e, t) { return ( - Object.keys(this.additionalConfig).forEach(function(t) { - e[t] = this.additionalConfig[t]; - }, this), - e - ); + (e >>= 0), + (t = String(void 0 !== t ? t : ' ')), + this.length > e + ? String(this) + : ((e -= this.length) > t.length && + (t += t.repeat(e / t.length)), + String(this) + t.slice(0, e)) + ); + }), + 'function' != typeof Object.assign && + Object.defineProperty(Object, 'assign', { + value: function(e, t) { + if (null == e) + throw new TypeError( + 'Cannot convert undefined or null to object' + ); + for (var n = Object(e), r = 1; r < arguments.length; r++) { + var o = arguments[r]; + if (null != o) + for (var i in o) + Object.prototype.hasOwnProperty.call(o, i) && (n[i] = o[i]); + } + return n; + }, + writable: !0, + configurable: !0 }), - (r.prototype.additionalConfig = {}), - (r.prototype.loadConfig = function(t) { - var n, - r, - o, - i = this.config; - Object.keys(i).forEach(function(a) { - (n = t), - (r = a.split('_')), - (o = (function t() { - var o = r.shift(); - return o && n && 'object' === e(n) && o in n - ? ((n = n[o]), t()) - : o - ? void 0 - : n; - })()), - d(o) && (i[a] = o); + (i.prototype.axis = function() {}), + (i.prototype.axis.labels = function(e) { + var t = this.internal; + arguments.length && + (Object.keys(e).forEach(function(n) { + t.axis.setLabelText(n, e[n]); + }), + t.axis.updateLabels()); + }), + (i.prototype.axis.max = function(e) { + var t = this.internal, + n = t.config; + if (!arguments.length) + return { x: n.axis_x_max, y: n.axis_y_max, y2: n.axis_y2_max }; + 'object' == typeof e + ? (v(e.x) && (n.axis_x_max = e.x), + v(e.y) && (n.axis_y_max = e.y), + v(e.y2) && (n.axis_y2_max = e.y2)) + : (n.axis_y_max = n.axis_y2_max = e), + t.redraw({ withUpdateOrgXDomain: !0, withUpdateXDomain: !0 }); + }), + (i.prototype.axis.min = function(e) { + var t = this.internal, + n = t.config; + if (!arguments.length) + return { x: n.axis_x_min, y: n.axis_y_min, y2: n.axis_y2_min }; + 'object' == typeof e + ? (v(e.x) && (n.axis_x_min = e.x), + v(e.y) && (n.axis_y_min = e.y), + v(e.y2) && (n.axis_y2_min = e.y2)) + : (n.axis_y_min = n.axis_y2_min = e), + t.redraw({ withUpdateOrgXDomain: !0, withUpdateXDomain: !0 }); + }), + (i.prototype.axis.range = function(e) { + if (!arguments.length) + return { max: this.axis.max(), min: this.axis.min() }; + p(e.max) && this.axis.max(e.max), p(e.min) && this.axis.min(e.min); + }), + (i.prototype.axis.types = function(e) { + const t = this.internal; + if (void 0 === e) + return { y: t.config.axis_y_type, y2: t.config.axis_y2_type }; + p(e.y) && (t.config.axis_y_type = e.y), + p(e.y2) && (t.config.axis_y2_type = e.y2), + t.updateScales(), + t.redraw(); + }), + (i.prototype.category = function(e, t) { + var n = this.internal, + r = n.config; + return ( + arguments.length > 1 && ((r.axis_x_categories[e] = t), n.redraw()), + r.axis_x_categories[e] + ); + }), + (i.prototype.categories = function(e) { + var t = this.internal, + n = t.config; + return arguments.length + ? ((n.axis_x_categories = e), t.redraw(), n.axis_x_categories) + : n.axis_x_categories; + }), + (i.prototype.resize = function(e) { + var t = this.internal.config; + (t.size_width = e ? e.width : null), + (t.size_height = e ? e.height : null), + this.flush(); + }), + (i.prototype.flush = function() { + this.internal.updateAndRedraw({ + withLegend: !0, + withTransition: !1, + withTransitionForTransform: !1 + }); + }), + (i.prototype.destroy = function() { + var e = this.internal; + if ( + (window.clearInterval(e.intervalForObserveInserted), + void 0 !== e.resizeTimeout && window.clearTimeout(e.resizeTimeout), + window.detachEvent) + ) + window.detachEvent('onresize', e.resizeIfElementDisplayed); + else if (window.removeEventListener) + window.removeEventListener('resize', e.resizeIfElementDisplayed); + else { + var t = window.onresize; + t && t.add && t.remove && t.remove(e.resizeFunction); + } + return ( + e.resizeFunction.remove(), + e.unbindWindowFocus(), + e.selectChart.classed('c3', !1).html(''), + Object.keys(e).forEach(function(t) { + e[t] = null; + }), + null + ); + }), + (i.prototype.color = function(e) { + return this.internal.color(e); + }), + (i.prototype.data = function(e) { + var t = this.internal.data.targets; + return void 0 === e + ? t + : t.filter(function(t) { + return [].concat(e).indexOf(t.id) >= 0; + }); + }), + (i.prototype.data.shown = function(e) { + return this.internal.filterTargetsToShow(this.data(e)); + }), + (i.prototype.data.values = function(e, t = !0) { + let n = null; + if (e) { + const r = this.data(e); + r && + d(r) && + (n = r.reduce((e, n) => { + const r = n.values.map(e => e.value); + return t ? (e = e.concat(r)) : e.push(r), e; + }, [])); + } + return n; + }), + (i.prototype.data.names = function(e) { + return ( + this.internal.clearLegendItemTextBoxCache(), + this.internal.updateDataAttributes('names', e) + ); + }), + (i.prototype.data.colors = function(e) { + return this.internal.updateDataAttributes('colors', e); + }), + (i.prototype.data.axes = function(e) { + return this.internal.updateDataAttributes('axes', e); + }), + (i.prototype.data.stackNormalized = function(e) { + if (void 0 === e) return this.internal.isStackNormalized(); + (this.internal.config.data_stack_normalize = !!e), + this.internal.redraw(); + }), + (i.prototype.donut = function() {}), + (i.prototype.donut.padAngle = function(e) { + if (void 0 === e) return this.internal.config.donut_padAngle; + (this.internal.config.donut_padAngle = e), this.flush(); + }), + (i.prototype.flow = function(e) { + var t, + n, + r, + o, + i, + a, + s, + c = this.internal, + u = [], + l = c.getMaxDataCount(), + f = 0, + d = 0; + if (e.json) n = c.convertJsonToData(e.json, e.keys); + else if (e.rows) n = c.convertRowsToData(e.rows); + else { + if (!e.columns) return; + n = c.convertColumnsToData(e.columns); + } + (t = c.convertDataToTargets(n, !0)), + c.data.targets.forEach(function(e) { + var n, + r, + o = !1; + for (n = 0; n < t.length; n++) + if (e.id === t[n].id) { + for ( + o = !0, + e.values[e.values.length - 1] && + (d = e.values[e.values.length - 1].index + 1), + f = t[n].values.length, + r = 0; + r < f; + r++ + ) + (t[n].values[r].index = d + r), + c.isTimeSeries() || (t[n].values[r].x = d + r); + (e.values = e.values.concat(t[n].values)), t.splice(n, 1); + break; + } + o || u.push(e.id); + }), + c.data.targets.forEach(function(e) { + var t, n; + for (t = 0; t < u.length; t++) + if (e.id === u[t]) + for ( + d = e.values[e.values.length - 1].index + 1, n = 0; + n < f; + n++ + ) + e.values.push({ + id: e.id, + index: d + n, + x: c.isTimeSeries() ? c.getOtherTargetX(d + n) : d + n, + value: null + }); + }), + c.data.targets.length && + t.forEach(function(e) { + var t, + n = []; + for (t = c.data.targets[0].values[0].index; t < d; t++) + n.push({ + id: e.id, + index: t, + x: c.isTimeSeries() ? c.getOtherTargetX(t) : t, + value: null + }); + e.values.forEach(function(e) { + (e.index += d), c.isTimeSeries() || (e.x += d); + }), + (e.values = n.concat(e.values)); + }), + (c.data.targets = c.data.targets.concat(t)), + c.getMaxDataCount(), + (i = (o = c.data.targets[0]).values[0]), + p(e.to) + ? ((f = 0), + (s = c.isTimeSeries() ? c.parseDate(e.to) : e.to), + o.values.forEach(function(e) { + e.x < s && f++; + })) + : p(e.length) && (f = e.length), + l + ? 1 === l && + c.isTimeSeries() && + ((a = (o.values[o.values.length - 1].x - i.x) / 2), + (r = [new Date(+i.x - a), new Date(+i.x + a)]), + c.updateXDomain(null, !0, !0, !1, r)) + : ((a = c.isTimeSeries() + ? o.values.length > 1 + ? o.values[o.values.length - 1].x - i.x + : i.x - c.getXDomain(c.data.targets)[0] + : 1), + (r = [i.x - a, i.x]), + c.updateXDomain(null, !0, !0, !1, r)), + c.updateTargets(c.data.targets), + c.redraw({ + flow: { + index: i.index, + length: f, + duration: v(e.duration) + ? e.duration + : c.config.transition_duration, + done: e.done, + orgDataCount: l + }, + withLegend: !0, + withTransition: l > 1, + withTrimXDomain: !1, + withUpdateXAxis: !0 }); - }), - (r.prototype.convertUrlToData = function(e, t, n, r, o) { - var i, + }), + (o.prototype.generateFlow = function(e) { + var t = this, + n = t.config, + r = t.d3; + return function() { + var o, + i, a, - s = this, - c = t || 'csv'; - 'json' === c - ? ((i = s.d3.json), (a = s.convertJsonToData)) - : 'tsv' === c - ? ((i = s.d3.tsv), (a = s.convertXsvToData)) - : ((i = s.d3.csv), (a = s.convertXsvToData)), - i(e, n) - .then(function(e) { - o.call(s, a.call(s, e, r)); - }) - .catch(function(e) { - throw e; - }); - }), - (r.prototype.convertXsvToData = function(e) { - var t = e.columns; - return 0 === e.length - ? { - keys: t, - rows: [ - t.reduce(function(e, t) { - return Object.assign( - e, - (function(e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e - ); - })({}, t, null) - ); - }, {}) - ] + s, + u, + l, + f, + d, + p, + h, + g, + m = e.targets, + b = e.flow, + y = e.drawBar, + v = e.drawLine, + _ = e.drawArea, + w = e.cx, + x = e.cy, + k = e.xv, + S = e.xForText, + O = e.yForText, + E = e.duration, + A = b.index, + T = b.length, + C = t.getValueOnIndex(t.data.targets[0].values, A), + L = t.getValueOnIndex(t.data.targets[0].values, A + T), + P = t.x.domain(), + D = b.duration || E, + j = b.done || function() {}, + z = t.generateWait(); + (t.flowing = !0), + t.data.targets.forEach(function(e) { + e.values.splice(0, T); + }), + (a = t.updateXDomain(m, !0, !0)), + t.updateXGrid && t.updateXGrid(!0), + (s = t.xgrid || r.selectAll([])), + (u = t.xgridLines || r.selectAll([])), + (l = t.mainRegion || r.selectAll([])), + (f = t.mainText || r.selectAll([])), + (d = t.mainBar || r.selectAll([])), + (p = t.mainLine || r.selectAll([])), + (h = t.mainArea || r.selectAll([])), + (g = t.mainCircle || r.selectAll([])), + b.orgDataCount + ? (o = + 1 === b.orgDataCount || (C && C.x) === (L && L.x) + ? t.x(P[0]) - t.x(a[0]) + : t.isTimeSeries() + ? t.x(P[0]) - t.x(a[0]) + : t.x(C.x) - t.x(L.x)) + : 1 !== t.data.targets[0].values.length + ? (o = t.x(P[0]) - t.x(a[0])) + : t.isTimeSeries() + ? ((C = t.getValueOnIndex(t.data.targets[0].values, 0)), + (L = t.getValueOnIndex( + t.data.targets[0].values, + t.data.targets[0].values.length - 1 + )), + (o = t.x(C.x) - t.x(L.x))) + : (o = c(a) / 2), + (i = 'translate(' + o + ',0) scale(' + c(P) / c(a) + ',1)'), + t.hideXGridFocus(); + var N = r + .transition() + .ease(r.easeLinear) + .duration(D); + z.add(t.xAxis(t.axes.x, N)), + z.add(d.transition(N).attr('transform', i)), + z.add(p.transition(N).attr('transform', i)), + z.add(h.transition(N).attr('transform', i)), + z.add(g.transition(N).attr('transform', i)), + z.add(f.transition(N).attr('transform', i)), + z.add( + l + .filter(t.isRegionOnX) + .transition(N) + .attr('transform', i) + ), + z.add(s.transition(N).attr('transform', i)), + z.add(u.transition(N).attr('transform', i)), + z(function() { + var e, + r = [], + o = []; + if (T) { + for (e = 0; e < T; e++) + r.push('.' + M.shape + '-' + (A + e)), + o.push('.' + M.text + '-' + (A + e)); + t.svg + .selectAll('.' + M.shapes) + .selectAll(r) + .remove(), + t.svg + .selectAll('.' + M.texts) + .selectAll(o) + .remove(), + t.svg.select('.' + M.xgrid).remove(); } - : { keys: t, rows: [].concat(e) }; - }), - (r.prototype.convertJsonToData = function(e, t) { - var n, - r, - o = this, - i = []; + s + .attr('transform', null) + .attr('x1', t.xgridAttr.x1) + .attr('x2', t.xgridAttr.x2) + .attr('y1', t.xgridAttr.y1) + .attr('y2', t.xgridAttr.y2) + .style('opacity', t.xgridAttr.opacity), + u.attr('transform', null), + u + .select('line') + .attr('x1', n.axis_rotated ? 0 : k) + .attr('x2', n.axis_rotated ? t.width : k), + u + .select('text') + .attr('x', n.axis_rotated ? t.width : 0) + .attr('y', k), + d.attr('transform', null).attr('d', y), + p.attr('transform', null).attr('d', v), + h.attr('transform', null).attr('d', _), + g + .attr('transform', null) + .attr('cx', w) + .attr('cy', x), + f + .attr('transform', null) + .attr('x', S) + .attr('y', O) + .style('fill-opacity', t.opacityForText.bind(t)), + l.attr('transform', null), + l + .filter(t.isRegionOnX) + .attr('x', t.regionX.bind(t)) + .attr('width', t.regionWidth.bind(t)), + j(), + (t.flowing = !1); + }); + }; + }), + (i.prototype.focus = function(e) { + var t, + n = this.internal; + (e = n.mapToTargetIds(e)), + (t = n.svg.selectAll( + n.selectorTargets(e.filter(n.isTargetToShow, n)) + )), + this.revert(), + this.defocus(), + t.classed(M.focused, !0).classed(M.defocused, !1), + n.hasArcType() && n.expandArc(e), + n.toggleFocusLegend(e, !0), + (n.focusedTargetIds = e), + (n.defocusedTargetIds = n.defocusedTargetIds.filter(function(t) { + return e.indexOf(t) < 0; + })); + }), + (i.prototype.defocus = function(e) { + var t = this.internal; + (e = t.mapToTargetIds(e)), + t.svg + .selectAll(t.selectorTargets(e.filter(t.isTargetToShow, t))) + .classed(M.focused, !1) + .classed(M.defocused, !0), + t.hasArcType() && t.unexpandArc(e), + t.toggleFocusLegend(e, !1), + (t.focusedTargetIds = t.focusedTargetIds.filter(function(t) { + return e.indexOf(t) < 0; + })), + (t.defocusedTargetIds = e); + }), + (i.prototype.revert = function(e) { + var t = this.internal; + (e = t.mapToTargetIds(e)), + t.svg + .selectAll(t.selectorTargets(e)) + .classed(M.focused, !1) + .classed(M.defocused, !1), + t.hasArcType() && t.unexpandArc(e), + t.config.legend_show && + (t.showLegend(e.filter(t.isLegendToShow.bind(t))), + t.legend + .selectAll(t.selectorLegends(e)) + .filter(function() { + return t.d3.select(this).classed(M.legendItemFocused); + }) + .classed(M.legendItemFocused, !1)), + (t.focusedTargetIds = []), + (t.defocusedTargetIds = []); + }), + (i.prototype.xgrids = function(e) { + var t = this.internal, + n = t.config; + return e + ? ((n.grid_x_lines = e), t.redrawWithoutRescale(), n.grid_x_lines) + : n.grid_x_lines; + }), + (i.prototype.xgrids.add = function(e) { + var t = this.internal; + return this.xgrids(t.config.grid_x_lines.concat(e || [])); + }), + (i.prototype.xgrids.remove = function(e) { + this.internal.removeGridLines(e, !0); + }), + (i.prototype.ygrids = function(e) { + var t = this.internal, + n = t.config; + return e + ? ((n.grid_y_lines = e), t.redrawWithoutRescale(), n.grid_y_lines) + : n.grid_y_lines; + }), + (i.prototype.ygrids.add = function(e) { + var t = this.internal; + return this.ygrids(t.config.grid_y_lines.concat(e || [])); + }), + (i.prototype.ygrids.remove = function(e) { + this.internal.removeGridLines(e, !1); + }), + (i.prototype.groups = function(e) { + var t = this.internal, + n = t.config; + return y(e) + ? n.data_groups + : ((n.data_groups = e), t.redraw(), n.data_groups); + }), + (i.prototype.legend = function() {}), + (i.prototype.legend.show = function(e) { + var t = this.internal; + t.showLegend(t.mapToTargetIds(e)), + t.updateAndRedraw({ withLegend: !0 }); + }), + (i.prototype.legend.hide = function(e) { + var t = this.internal; + t.hideLegend(t.mapToTargetIds(e)), + t.updateAndRedraw({ withLegend: !1 }); + }), + (i.prototype.load = function(e) { + var t = this.internal, + n = t.config; + e.xs && t.addXs(e.xs), + 'names' in e && i.prototype.data.names.bind(this)(e.names), + 'classes' in e && + Object.keys(e.classes).forEach(function(t) { + n.data_classes[t] = e.classes[t]; + }), + 'categories' in e && + t.isCategorized() && + (n.axis_x_categories = e.categories), + 'axes' in e && + Object.keys(e.axes).forEach(function(t) { + n.data_axes[t] = e.axes[t]; + }), + 'colors' in e && + Object.keys(e.colors).forEach(function(t) { + n.data_colors[t] = e.colors[t]; + }), + 'cacheIds' in e && t.hasCaches(e.cacheIds) + ? t.load(t.getCaches(e.cacheIds), e.done) + : e.unload + ? t.unload( + t.mapToTargetIds(!0 === e.unload ? null : e.unload), + function() { + t.loadFromArgs(e); + } + ) + : t.loadFromArgs(e); + }), + (i.prototype.unload = function(e) { + var t = this.internal; + (e = e || {}) instanceof Array + ? (e = { ids: e }) + : 'string' == typeof e && (e = { ids: [e] }), + t.unload(t.mapToTargetIds(e.ids), function() { + t.redraw({ + withUpdateOrgXDomain: !0, + withUpdateXDomain: !0, + withLegend: !0 + }), + e.done && e.done(); + }); + }), + (i.prototype.pie = function() {}), + (i.prototype.pie.padAngle = function(e) { + if (void 0 === e) return this.internal.config.pie_padAngle; + (this.internal.config.pie_padAngle = e), this.flush(); + }), + (i.prototype.regions = function(e) { + var t = this.internal, + n = t.config; + return e + ? ((n.regions = e), t.redrawWithoutRescale(), n.regions) + : n.regions; + }), + (i.prototype.regions.add = function(e) { + var t = this.internal, + n = t.config; + return e + ? ((n.regions = n.regions.concat(e)), + t.redrawWithoutRescale(), + n.regions) + : n.regions; + }), + (i.prototype.regions.remove = function(e) { + var t, + n, + r, + o = this.internal, + i = o.config; + return ( + (t = u((e = e || {}), 'duration', i.transition_duration)), + (n = u(e, 'classes', [M.region])), + (r = o.main.select('.' + M.regions).selectAll( + n.map(function(e) { + return '.' + e; + }) + )), + (t ? r.transition().duration(t) : r).style('opacity', 0).remove(), + (i.regions = i.regions.filter(function(e) { + var t = !1; + return ( + !e.class || + (e.class.split(' ').forEach(function(e) { + n.indexOf(e) >= 0 && (t = !0); + }), + !t) + ); + })), + i.regions + ); + }), + (i.prototype.selected = function(e) { + var t = this.internal, + n = t.d3; + return t.main + .selectAll('.' + M.shapes + t.getTargetSelectorSuffix(e)) + .selectAll('.' + M.shape) + .filter(function() { + return n.select(this).classed(M.SELECTED); + }) + .nodes() + .map(function(e) { + var t = e.__data__; + return t.data ? t.data : t; + }); + }), + (i.prototype.select = function(e, t, n) { + var r = this.internal, + o = r.d3, + i = r.config; + i.data_selection_enabled && + r.main + .selectAll('.' + M.shapes) + .selectAll('.' + M.shape) + .each(function(a, s) { + var c = o.select(this), + u = a.data ? a.data.id : a.id, + l = r.getToggle(this, a).bind(r), + f = i.data_selection_grouped || !e || e.indexOf(u) >= 0, + d = !t || t.indexOf(s) >= 0, + h = c.classed(M.SELECTED); + c.classed(M.line) || + c.classed(M.area) || + (f && d + ? i.data_selection_isselectable(a) && + !h && + l(!0, c.classed(M.SELECTED, !0), a, s) + : p(n) && n && h && l(!1, c.classed(M.SELECTED, !1), a, s)); + }); + }), + (i.prototype.unselect = function(e, t) { + var n = this.internal, + r = n.d3, + o = n.config; + o.data_selection_enabled && + n.main + .selectAll('.' + M.shapes) + .selectAll('.' + M.shape) + .each(function(i, a) { + var s = r.select(this), + c = i.data ? i.data.id : i.id, + u = n.getToggle(this, i).bind(n), + l = o.data_selection_grouped || !e || e.indexOf(c) >= 0, + f = !t || t.indexOf(a) >= 0, + d = s.classed(M.SELECTED); + s.classed(M.line) || + s.classed(M.area) || + (l && + f && + o.data_selection_isselectable(i) && + d && + u(!1, s.classed(M.SELECTED, !1), i, a)); + }); + }), + (i.prototype.show = function(e, t) { + var n, + r = this.internal; + (e = r.mapToTargetIds(e)), + (t = t || {}), + r.removeHiddenTargetIds(e), + (n = r.svg.selectAll(r.selectorTargets(e))) + .transition() + .style('display', 'initial', 'important') + .style('opacity', 1, 'important') + .call(r.endall, function() { + n.style('opacity', null).style('opacity', 1); + }), + t.withLegend && r.showLegend(e), + r.redraw({ + withUpdateOrgXDomain: !0, + withUpdateXDomain: !0, + withLegend: !0 + }); + }), + (i.prototype.hide = function(e, t) { + var n, + r = this.internal; + (e = r.mapToTargetIds(e)), + (t = t || {}), + r.addHiddenTargetIds(e), + (n = r.svg.selectAll(r.selectorTargets(e))) + .transition() + .style('opacity', 0, 'important') + .call(r.endall, function() { + n.style('opacity', null).style('opacity', 0), + n.style('display', 'none'); + }), + t.withLegend && r.hideLegend(e), + r.redraw({ + withUpdateOrgXDomain: !0, + withUpdateXDomain: !0, + withLegend: !0 + }); + }), + (i.prototype.toggle = function(e, t) { + var n = this, + r = this.internal; + r.mapToTargetIds(e).forEach(function(e) { + r.isTargetToShow(e) ? n.hide(e, t) : n.show(e, t); + }); + }), + (i.prototype.subchart = function() {}), + (i.prototype.subchart.isShown = function() { + return this.internal.config.subchart_show; + }), + (i.prototype.subchart.show = function() { + const e = this.internal; + e.config.subchart_show || + ((e.config.subchart_show = !0), + e.initSubchart(), + e.updateDimension(), + e.initSubchartBrush(), + e.updateTargetsForSubchart(e.getTargets()), + e.mapToIds(e.data.targets).forEach(function(t) { + e.withoutFadeIn[t] = !1; + }), + e.updateAndRedraw(), + e.showTargets()); + }), + (i.prototype.subchart.hide = function() { + const e = this.internal; + e.config.subchart_show && + ((e.config.subchart_show = !1), e.removeSubchart(), e.redraw()); + }), + (i.prototype.tooltip = function() {}), + (i.prototype.tooltip.show = function(e) { + var t, + n, + r = this.internal, + o = {}; + e.mouse + ? (o = e.mouse) + : (e.data + ? (n = e.data) + : void 0 !== e.x && + ((t = e.id + ? r.data.targets.filter(function(t) { + return t.id === e.id; + }) + : r.data.targets), + (n = r.filterByX(t, e.x).slice(0, 1)[0])), + (o = n ? r.getMousePosition(n) : null)), + r.dispatchEvent('mousemove', o), + r.config.tooltip_onshow.call(r, n); + }), + (i.prototype.tooltip.hide = function() { + this.internal.dispatchEvent('mouseout', 0), + this.internal.config.tooltip_onhide.call(this); + }), + (i.prototype.transform = function(e, t) { + var n = this.internal, + r = ['pie', 'donut'].indexOf(e) >= 0 ? { withTransform: !0 } : null; + n.transformTo(t, e, r); + }), + (o.prototype.transformTo = function(e, t, n) { + var r = this, + o = !r.hasArcType(), + i = n || { withTransitionForAxis: o }; + (i.withTransitionForTransform = !1), + (r.transiting = !1), + r.setTargetType(e, t), + r.updateTargets(r.data.targets), + r.updateAndRedraw(i); + }), + (i.prototype.x = function(e) { + var t = this.internal; + return ( + arguments.length && + (t.updateTargetX(t.data.targets, e), + t.redraw({ withUpdateOrgXDomain: !0, withUpdateXDomain: !0 })), + t.data.xs + ); + }), + (i.prototype.xs = function(e) { + var t = this.internal; + return ( + arguments.length && + (t.updateTargetXs(t.data.targets, e), + t.redraw({ withUpdateOrgXDomain: !0, withUpdateXDomain: !0 })), + t.data.xs + ); + }), + (i.prototype.zoom = function(e) { + var t = this.internal; + return e + ? (t.isTimeSeries() && + (e = e.map(function(e) { + return t.parseDate(e); + })), + t.config.subchart_show + ? t.brush.selectionAsValue(e, !0) + : (t.updateXDomain(null, !0, !1, !1, e), + t.redraw({ withY: t.config.zoom_rescale, withSubchart: !1 })), + t.config.zoom_onzoom.call(this, t.x.orgDomain()), + e) + : t.x.domain(); + }), + (i.prototype.zoom.enable = function(e) { + var t = this.internal; + (t.config.zoom_enabled = e), t.updateAndRedraw(); + }), + (i.prototype.unzoom = function() { + var e = this.internal; + e.config.subchart_show + ? e.brush.clear() + : (e.updateXDomain(null, !0, !1, !1, e.subX.domain()), + e.redraw({ withY: e.config.zoom_rescale, withSubchart: !1 })); + }), + (i.prototype.zoom.max = function(e) { + var t = this.internal, + n = t.config, + r = t.d3; + if (0 !== e && !e) return n.zoom_x_max; + n.zoom_x_max = r.max([t.orgXDomain[1], e]); + }), + (i.prototype.zoom.min = function(e) { + var t = this.internal, + n = t.config, + r = t.d3; + if (0 !== e && !e) return n.zoom_x_min; + n.zoom_x_min = r.min([t.orgXDomain[0], e]); + }), + (i.prototype.zoom.range = function(e) { + if (!arguments.length) + return { max: this.domain.max(), min: this.domain.min() }; + p(e.max) && this.domain.max(e.max), + p(e.min) && this.domain.min(e.min); + }), + (o.prototype.initPie = function() { + var e = this, + t = e.d3; + e.pie = t + .pie() + .padAngle(this.getPadAngle.bind(this)) + .value(function(e) { + return e.values.reduce(function(e, t) { + return e + t.value; + }, 0); + }); + let n = e.getOrderFunction(); + if (n && (e.isOrderAsc() || e.isOrderDesc())) { + let e = n; + n = (t, n) => -1 * e(t, n); + } + e.pie.sort(n || null); + }), + (o.prototype.updateRadius = function() { + var e = this, + t = e.config, + n = t.gauge_width || t.donut_width, + r = + e.filterTargetsToShow(e.data.targets).length * + e.config.gauge_arcs_minWidth; + (e.radiusExpanded = + (Math.min(e.arcWidth, e.arcHeight) / 2) * + (e.hasType('gauge') ? 0.85 : 1)), + (e.radius = 0.95 * e.radiusExpanded), + (e.innerRadiusRatio = n ? (e.radius - n) / e.radius : 0.6), + (e.innerRadius = + e.hasType('donut') || e.hasType('gauge') + ? e.radius * e.innerRadiusRatio + : 0), + (e.gaugeArcWidth = + n || + (r <= e.radius - e.innerRadius + ? e.radius - e.innerRadius + : r <= e.radius + ? r + : e.radius)); + }), + (o.prototype.getPadAngle = function() { + return this.hasType('pie') + ? this.config.pie_padAngle || 0 + : (this.hasType('donut') && this.config.donut_padAngle) || 0; + }), + (o.prototype.updateArc = function() { + var e = this; + (e.svgArc = e.getSvgArc()), + (e.svgArcExpanded = e.getSvgArcExpanded()), + (e.svgArcExpandedSub = e.getSvgArcExpanded(0.98)); + }), + (o.prototype.updateAngle = function(e) { + var t, + n, + r, + o, + i = this, + a = i.config, + s = !1, + c = 0; + return a + ? (i + .pie(i.filterTargetsToShow(i.data.targets)) + .forEach(function(t) { + s || + t.data.id !== e.data.id || + ((s = !0), ((e = t).index = c)), + c++; + }), + isNaN(e.startAngle) && (e.startAngle = 0), + isNaN(e.endAngle) && (e.endAngle = e.startAngle), + i.isGaugeType(e.data) && + ((t = a.gauge_min), + (n = a.gauge_max), + (r = (Math.PI * (a.gauge_fullCircle ? 2 : 1)) / (n - t)), + (o = e.value < t ? 0 : e.value < n ? e.value - t : n - t), + (e.startAngle = a.gauge_startingAngle), + (e.endAngle = e.startAngle + r * o)), + s ? e : null) + : null; + }), + (o.prototype.getSvgArc = function() { + var e = this, + t = e.hasType('gauge'), + n = e.gaugeArcWidth / e.filterTargetsToShow(e.data.targets).length, + r = e.d3 + .arc() + .outerRadius(function(r) { + return t ? e.radius - n * r.index : e.radius; + }) + .innerRadius(function(r) { + return t ? e.radius - n * (r.index + 1) : e.innerRadius; + }), + o = function(t, n) { + var o; + return n ? r(t) : (o = e.updateAngle(t)) ? r(o) : 'M 0 0'; + }; + return (o.centroid = r.centroid), o; + }), + (o.prototype.getSvgArcExpanded = function(e) { + e = e || 1; + var t = this, + n = t.hasType('gauge'), + r = t.gaugeArcWidth / t.filterTargetsToShow(t.data.targets).length, + o = Math.min( + t.radiusExpanded * e - t.radius, + 0.8 * r - 100 * (1 - e) + ), + i = t.d3 + .arc() + .outerRadius(function(i) { + return n ? t.radius - r * i.index + o : t.radiusExpanded * e; + }) + .innerRadius(function(e) { + return n ? t.radius - r * (e.index + 1) : t.innerRadius; + }); + return function(e) { + var n = t.updateAngle(e); + return n ? i(n) : 'M 0 0'; + }; + }), + (o.prototype.getArc = function(e, t, n) { + return n || this.isArcType(e.data) ? this.svgArc(e, t) : 'M 0 0'; + }), + (o.prototype.transformForArcLabel = function(e) { + var t, + n, + r, + o, + i, + a = this, + s = a.config, + c = a.updateAngle(e), + u = '', + l = a.hasType('gauge'); + if (c && !l) + (t = this.svgArc.centroid(c)), + (n = isNaN(t[0]) ? 0 : t[0]), + (r = isNaN(t[1]) ? 0 : t[1]), + (o = Math.sqrt(n * n + r * r)), + (u = + 'translate(' + + n * + (i = + a.hasType('donut') && s.donut_label_ratio + ? g(s.donut_label_ratio) + ? s.donut_label_ratio(e, a.radius, o) + : s.donut_label_ratio + : a.hasType('pie') && s.pie_label_ratio + ? g(s.pie_label_ratio) + ? s.pie_label_ratio(e, a.radius, o) + : s.pie_label_ratio + : a.radius && o + ? ((36 / a.radius > 0.375 ? 1.175 - 36 / a.radius : 0.8) * + a.radius) / + o + : 0) + + ',' + + r * i + + ')'); + else if (c && l && a.filterTargetsToShow(a.data.targets).length > 1) { + var f = Math.sin(c.endAngle - Math.PI / 2); + u = + 'translate(' + + (n = + Math.cos(c.endAngle - Math.PI / 2) * (a.radiusExpanded + 25)) + + ',' + + (r = f * (a.radiusExpanded + 15 - Math.abs(10 * f)) + 3) + + ')'; + } + return u; + }), + (o.prototype.getArcRatio = function(e) { + return this.getRatio('arc', e); + }), + (o.prototype.convertToArcData = function(e) { + return this.addName({ + id: e.data.id, + value: e.value, + ratio: this.getRatio('arc', e), + index: e.index + }); + }), + (o.prototype.textForArcLabel = function(e) { + var t, + n, + r, + o, + i, + a = this; + return a.shouldShowArcLabel() + ? ((n = (t = a.updateAngle(e)) ? t.value : null), + (r = a.getRatio('arc', t)), + (o = e.data.id), + a.hasType('gauge') || a.meetsArcLabelThreshold(r) + ? (i = a.getArcLabelFormat()) + ? i(n, r, o) + : a.defaultArcValueFormat(n, r) + : '') + : ''; + }), + (o.prototype.textForGaugeMinMax = function(e, t) { + var n = this.getGaugeLabelExtents(); + return n ? n(e, t) : e; + }), + (o.prototype.expandArc = function(e) { + var t, + n = this; + n.transiting + ? (t = window.setInterval(function() { + n.transiting || + (window.clearInterval(t), + n.legend.selectAll('.c3-legend-item-focused').size() > 0 && + n.expandArc(e)); + }, 10)) + : ((e = n.mapToTargetIds(e)), + n.svg + .selectAll(n.selectorTargets(e, '.' + M.chartArc)) + .each(function(e) { + n.shouldExpand(e.data.id) && + n.d3 + .select(this) + .selectAll('path') + .transition() + .duration(n.expandDuration(e.data.id)) + .attr('d', n.svgArcExpanded) + .transition() + .duration(2 * n.expandDuration(e.data.id)) + .attr('d', n.svgArcExpandedSub) + .each(function(e) { + n.isDonutType(e.data); + }); + })); + }), + (o.prototype.unexpandArc = function(e) { + var t = this; + t.transiting || + ((e = t.mapToTargetIds(e)), + t.svg + .selectAll(t.selectorTargets(e, '.' + M.chartArc)) + .selectAll('path') + .transition() + .duration(function(e) { + return t.expandDuration(e.data.id); + }) + .attr('d', t.svgArc), + t.svg.selectAll('.' + M.arc)); + }), + (o.prototype.expandDuration = function(e) { + var t = this.config; + return this.isDonutType(e) + ? t.donut_expand_duration + : this.isGaugeType(e) + ? t.gauge_expand_duration + : this.isPieType(e) + ? t.pie_expand_duration + : 50; + }), + (o.prototype.shouldExpand = function(e) { + var t = this.config; + return ( + (this.isDonutType(e) && t.donut_expand) || + (this.isGaugeType(e) && t.gauge_expand) || + (this.isPieType(e) && t.pie_expand) + ); + }), + (o.prototype.shouldShowArcLabel = function() { + var e = this.config, + t = !0; + return ( + this.hasType('donut') + ? (t = e.donut_label_show) + : this.hasType('pie') && (t = e.pie_label_show), + t + ); + }), + (o.prototype.meetsArcLabelThreshold = function(e) { + var t = this.config; + return ( + e >= + (this.hasType('donut') + ? t.donut_label_threshold + : t.pie_label_threshold) + ); + }), + (o.prototype.getArcLabelFormat = function() { + var e = this.config, + t = e.pie_label_format; + return ( + this.hasType('gauge') + ? (t = e.gauge_label_format) + : this.hasType('donut') && (t = e.donut_label_format), + t + ); + }), + (o.prototype.getGaugeLabelExtents = function() { + return this.config.gauge_label_extents; + }), + (o.prototype.getArcTitle = function() { + return this.hasType('donut') ? this.config.donut_title : ''; + }), + (o.prototype.updateTargetsForArc = function(e) { + var t, + n = this, + r = n.main, + o = n.classChartArc.bind(n), + i = n.classArcs.bind(n), + a = n.classFocus.bind(n); + (t = r + .select('.' + M.chartArcs) + .selectAll('.' + M.chartArc) + .data(n.pie(e)) + .attr('class', function(e) { + return o(e) + a(e.data); + }) + .enter() + .append('g') + .attr('class', o)) + .append('g') + .attr('class', i), + t + .append('text') + .attr('dy', n.hasType('gauge') ? '-.1em' : '.35em') + .style('opacity', 0) + .style('text-anchor', 'middle') + .style('pointer-events', 'none'); + }), + (o.prototype.initArc = function() { + var e = this; + (e.arcs = e.main + .select('.' + M.chart) + .append('g') + .attr('class', M.chartArcs) + .attr('transform', e.getTranslate('arc'))), + e.arcs + .append('text') + .attr('class', M.chartArcsTitle) + .style('text-anchor', 'middle') + .text(e.getArcTitle()); + }), + (o.prototype.redrawArc = function(e, t, n) { + var r, + o, + i, + a, + s = this, + c = s.d3, + u = s.config, + l = s.main, + f = s.hasType('gauge'); + if ( + ((o = (r = l + .selectAll('.' + M.arcs) + .selectAll('.' + M.arc) + .data(s.arcData.bind(s))) + .enter() + .append('path') + .attr('class', s.classArc.bind(s)) + .style('fill', function(e) { + return s.color(e.data); + }) + .style('cursor', function(e) { + return u.interaction_enabled && u.data_selection_isselectable(e) + ? 'pointer' + : null; + }) + .each(function(e) { + s.isGaugeType(e.data) && + (e.startAngle = e.endAngle = u.gauge_startingAngle), + (this._current = e); + }) + .merge(r)), + f && + ((a = (i = l + .selectAll('.' + M.arcs) + .selectAll('.' + M.arcLabelLine) + .data(s.arcData.bind(s))) + .enter() + .append('rect') + .attr('class', function(e) { + return ( + M.arcLabelLine + + ' ' + + M.target + + ' ' + + M.target + + '-' + + e.data.id + ); + }) + .merge(i)), + 1 === s.filterTargetsToShow(s.data.targets).length + ? a.style('display', 'none') + : a + .style('fill', function(e) { + return s.levelColor + ? s.levelColor(e.data.values[0].value) + : s.color(e.data); + }) + .style('display', u.gauge_labelLine_show ? '' : 'none') + .each(function(e) { + var t = 0, + n = 0, + r = 0, + o = ''; + if (s.hiddenTargetIds.indexOf(e.data.id) < 0) { + var i = s.updateAngle(e), + a = + (s.gaugeArcWidth / + s.filterTargetsToShow(s.data.targets).length) * + (i.index + 1), + u = i.endAngle - Math.PI / 2, + l = s.radius - a, + f = u - (0 === l ? 0 : 1 / l); + (t = s.radiusExpanded - s.radius + a), + (n = Math.cos(f) * l), + (r = Math.sin(f) * l), + (o = + 'rotate(' + + (180 * u) / Math.PI + + ', ' + + n + + ', ' + + r + + ')'); + } + c.select(this) + .attr('x', n) + .attr('y', r) + .attr('width', t) + .attr('height', 2) + .attr('transform', o) + .style('stroke-dasharray', '0, ' + (t + 2) + ', 0'); + })), + o + .attr('transform', function(e) { + return !s.isGaugeType(e.data) && n ? 'scale(0)' : ''; + }) + .on( + 'mouseover', + u.interaction_enabled + ? function(e) { + var t, n; + s.transiting || + ((t = s.updateAngle(e)) && + ((n = s.convertToArcData(t)), + s.expandArc(t.data.id), + s.api.focus(t.data.id), + s.toggleFocusLegend(t.data.id, !0), + s.config.data_onmouseover(n, this))); + } + : null + ) + .on( + 'mousemove', + u.interaction_enabled + ? function(e) { + var t, + n = s.updateAngle(e); + n && + ((t = [s.convertToArcData(n)]), s.showTooltip(t, this)); + } + : null + ) + .on( + 'mouseout', + u.interaction_enabled + ? function(e) { + var t, n; + s.transiting || + ((t = s.updateAngle(e)) && + ((n = s.convertToArcData(t)), + s.unexpandArc(t.data.id), + s.api.revert(), + s.revertLegend(), + s.hideTooltip(), + s.config.data_onmouseout(n, this))); + } + : null + ) + .on( + 'click', + u.interaction_enabled + ? function(e, t) { + var n, + r = s.updateAngle(e); + r && + ((n = s.convertToArcData(r)), + s.toggleShape && s.toggleShape(this, n, t), + s.config.data_onclick.call(s.api, n, this)); + } + : null + ) + .each(function() { + s.transiting = !0; + }) + .transition() + .duration(e) + .attrTween('d', function(e) { + var t, + n = s.updateAngle(e); + return n + ? (isNaN(this._current.startAngle) && + (this._current.startAngle = 0), + isNaN(this._current.endAngle) && + (this._current.endAngle = this._current.startAngle), + (t = c.interpolate(this._current, n)), + (this._current = t(0)), + function(n) { + if (null === s.config) return 'M 0 0'; + var r = t(n); + return (r.data = e.data), s.getArc(r, !0); + }) + : function() { + return 'M 0 0'; + }; + }) + .attr('transform', n ? 'scale(1)' : '') + .style('fill', function(e) { + return s.levelColor + ? s.levelColor(e.data.values[0].value) + : s.color(e.data.id); + }) + .call(s.endall, function() { + s.transiting = !1; + }), + r + .exit() + .transition() + .duration(t) + .style('opacity', 0) + .remove(), + l + .selectAll('.' + M.chartArc) + .select('text') + .style('opacity', 0) + .attr('class', function(e) { + return s.isGaugeType(e.data) ? M.gaugeValue : ''; + }) + .text(s.textForArcLabel.bind(s)) + .attr('transform', s.transformForArcLabel.bind(s)) + .style('font-size', function(e) { + return s.isGaugeType(e.data) && + 1 === s.filterTargetsToShow(s.data.targets).length + ? Math.round(s.radius / 5) + 'px' + : ''; + }) + .transition() + .duration(e) + .style('opacity', function(e) { + return s.isTargetToShow(e.data.id) && s.isArcType(e.data) + ? 1 + : 0; + }), + l + .select('.' + M.chartArcsTitle) + .style('opacity', s.hasType('donut') || f ? 1 : 0), + f) + ) { + let e = 0; + const t = s.arcs + .select('g.' + M.chartArcsBackground) + .selectAll('path.' + M.chartArcsBackground) + .data(s.data.targets); + t + .enter() + .append('path') + .attr( + 'class', + (e, t) => + M.chartArcsBackground + ' ' + M.chartArcsBackground + '-' + t + ) + .merge(t) + .attr('d', t => { + if (s.hiddenTargetIds.indexOf(t.id) >= 0) return 'M 0 0'; + var n = { + data: [{ value: u.gauge_max }], + startAngle: u.gauge_startingAngle, + endAngle: + -1 * + u.gauge_startingAngle * + (u.gauge_fullCircle ? Math.PI : 1), + index: e++ + }; + return s.getArc(n, !0, !0); + }), + t.exit().remove(), + s.arcs + .select('.' + M.chartArcsGaugeUnit) + .attr('dy', '.75em') + .text(u.gauge_label_show ? u.gauge_units : ''), + s.arcs + .select('.' + M.chartArcsGaugeMin) + .attr( + 'dx', + -1 * + (s.innerRadius + + (s.radius - s.innerRadius) / + (u.gauge_fullCircle ? 1 : 2)) + + 'px' + ) + .attr('dy', '1.2em') + .text( + u.gauge_label_show + ? s.textForGaugeMinMax(u.gauge_min, !1) + : '' + ), + s.arcs + .select('.' + M.chartArcsGaugeMax) + .attr( + 'dx', + s.innerRadius + + (s.radius - s.innerRadius) / (u.gauge_fullCircle ? 1 : 2) + + 'px' + ) + .attr('dy', '1.2em') + .text( + u.gauge_label_show + ? s.textForGaugeMinMax(u.gauge_max, !0) + : '' + ); + } + }), + (o.prototype.initGauge = function() { + var e = this.arcs; + this.hasType('gauge') && + (e.append('g').attr('class', M.chartArcsBackground), + e + .append('text') + .attr('class', M.chartArcsGaugeUnit) + .style('text-anchor', 'middle') + .style('pointer-events', 'none'), + e + .append('text') + .attr('class', M.chartArcsGaugeMin) + .style('text-anchor', 'middle') + .style('pointer-events', 'none'), + e + .append('text') + .attr('class', M.chartArcsGaugeMax) + .style('text-anchor', 'middle') + .style('pointer-events', 'none')); + }), + (o.prototype.getGaugeLabelHeight = function() { + return this.config.gauge_label_show ? 20 : 0; + }), + (o.prototype.addToCache = function(e, t) { + this.cache[`$${e}`] = t; + }), + (o.prototype.getFromCache = function(e) { + return this.cache[`$${e}`]; + }), + (o.prototype.resetCache = function() { + Object.keys(this.cache) + .filter(e => /^\$/.test(e)) + .forEach(e => { + delete this.cache[e]; + }); + }), + (o.prototype.hasCaches = function(e) { + for (var t = 0; t < e.length; t++) + if (!(e[t] in this.cache)) return !1; + return !0; + }), + (o.prototype.addCache = function(e, t) { + this.cache[e] = this.cloneTarget(t); + }), + (o.prototype.getCaches = function(e) { + var t, + n = []; + for (t = 0; t < e.length; t++) + e[t] in this.cache && n.push(this.cloneTarget(this.cache[e[t]])); + return n; + }), + (o.prototype.categoryName = function(e) { + var t = this.config; + return e < t.axis_x_categories.length ? t.axis_x_categories[e] : e; + }), + (o.prototype.generateTargetClass = function(e) { + return e || 0 === e ? ('-' + e).replace(/\s/g, '-') : ''; + }), + (o.prototype.generateClass = function(e, t) { + return ' ' + e + ' ' + e + this.generateTargetClass(t); + }), + (o.prototype.classText = function(e) { + return this.generateClass(M.text, e.index); + }), + (o.prototype.classTexts = function(e) { + return this.generateClass(M.texts, e.id); + }), + (o.prototype.classShape = function(e) { + return this.generateClass(M.shape, e.index); + }), + (o.prototype.classShapes = function(e) { + return this.generateClass(M.shapes, e.id); + }), + (o.prototype.classLine = function(e) { + return this.classShape(e) + this.generateClass(M.line, e.id); + }), + (o.prototype.classLines = function(e) { + return this.classShapes(e) + this.generateClass(M.lines, e.id); + }), + (o.prototype.classCircle = function(e) { + return this.classShape(e) + this.generateClass(M.circle, e.index); + }), + (o.prototype.classCircles = function(e) { + return this.classShapes(e) + this.generateClass(M.circles, e.id); + }), + (o.prototype.classBar = function(e) { + return this.classShape(e) + this.generateClass(M.bar, e.index); + }), + (o.prototype.classBars = function(e) { + return this.classShapes(e) + this.generateClass(M.bars, e.id); + }), + (o.prototype.classArc = function(e) { + return this.classShape(e.data) + this.generateClass(M.arc, e.data.id); + }), + (o.prototype.classArcs = function(e) { + return ( + this.classShapes(e.data) + this.generateClass(M.arcs, e.data.id) + ); + }), + (o.prototype.classArea = function(e) { + return this.classShape(e) + this.generateClass(M.area, e.id); + }), + (o.prototype.classAreas = function(e) { + return this.classShapes(e) + this.generateClass(M.areas, e.id); + }), + (o.prototype.classRegion = function(e, t) { + return ( + this.generateClass(M.region, t) + + ' ' + + ('class' in e ? e.class : '') + ); + }), + (o.prototype.classEvent = function(e) { + return this.generateClass(M.eventRect, e.index); + }), + (o.prototype.classTarget = function(e) { + var t = this.config.data_classes[e], + n = ''; + return ( + t && (n = ' ' + M.target + '-' + t), + this.generateClass(M.target, e) + n + ); + }), + (o.prototype.classFocus = function(e) { + return this.classFocused(e) + this.classDefocused(e); + }), + (o.prototype.classFocused = function(e) { + return ( + ' ' + (this.focusedTargetIds.indexOf(e.id) >= 0 ? M.focused : '') + ); + }), + (o.prototype.classDefocused = function(e) { + return ( + ' ' + + (this.defocusedTargetIds.indexOf(e.id) >= 0 ? M.defocused : '') + ); + }), + (o.prototype.classChartText = function(e) { + return M.chartText + this.classTarget(e.id); + }), + (o.prototype.classChartLine = function(e) { + return M.chartLine + this.classTarget(e.id); + }), + (o.prototype.classChartBar = function(e) { + return M.chartBar + this.classTarget(e.id); + }), + (o.prototype.classChartArc = function(e) { + return M.chartArc + this.classTarget(e.data.id); + }), + (o.prototype.getTargetSelectorSuffix = function(e) { + const t = this.generateTargetClass(e); + return window.CSS && window.CSS.escape + ? window.CSS.escape(t) + : t.replace(/([?!@#$%^&*()=+,.<>'":;\[\]\/|~`{}\\])/g, '\\$1'); + }), + (o.prototype.selectorTarget = function(e, t) { + return (t || '') + '.' + M.target + this.getTargetSelectorSuffix(e); + }), + (o.prototype.selectorTargets = function(e, t) { + var n = this; + return (e = e || []).length + ? e.map(function(e) { + return n.selectorTarget(e, t); + }) + : null; + }), + (o.prototype.selectorLegend = function(e) { + return '.' + M.legendItem + this.getTargetSelectorSuffix(e); + }), + (o.prototype.selectorLegends = function(e) { + var t = this; + return e && e.length + ? e.map(function(e) { + return t.selectorLegend(e); + }) + : null; + }), + (o.prototype.getClipPath = function(e) { + return ( + 'url(' + + (window.navigator.appVersion.toLowerCase().indexOf('msie 9.') >= 0 + ? '' + : document.URL.split('#')[0]) + + '#' + + e + + ')' + ); + }), + (o.prototype.appendClip = function(e, t) { + return e + .append('clipPath') + .attr('id', t) + .append('rect'); + }), + (o.prototype.getAxisClipX = function(e) { + var t = Math.max(30, this.margin.left); + return e ? -(1 + t) : -(t - 1); + }), + (o.prototype.getAxisClipY = function(e) { + return e ? -20 : -this.margin.top; + }), + (o.prototype.getXAxisClipX = function() { + return this.getAxisClipX(!this.config.axis_rotated); + }), + (o.prototype.getXAxisClipY = function() { + return this.getAxisClipY(!this.config.axis_rotated); + }), + (o.prototype.getYAxisClipX = function() { + return this.config.axis_y_inner + ? -1 + : this.getAxisClipX(this.config.axis_rotated); + }), + (o.prototype.getYAxisClipY = function() { + return this.getAxisClipY(this.config.axis_rotated); + }), + (o.prototype.getAxisClipWidth = function(e) { + var t = Math.max(30, this.margin.left), + n = Math.max(30, this.margin.right); + return e ? this.width + 2 + t + n : this.margin.left + 20; + }), + (o.prototype.getAxisClipHeight = function(e) { + return (e ? this.margin.bottom : this.margin.top + this.height) + 20; + }), + (o.prototype.getXAxisClipWidth = function() { + return this.getAxisClipWidth(!this.config.axis_rotated); + }), + (o.prototype.getXAxisClipHeight = function() { + return this.getAxisClipHeight(!this.config.axis_rotated); + }), + (o.prototype.getYAxisClipWidth = function() { + return ( + this.getAxisClipWidth(this.config.axis_rotated) + + (this.config.axis_y_inner ? 20 : 0) + ); + }), + (o.prototype.getYAxisClipHeight = function() { + return this.getAxisClipHeight(this.config.axis_rotated); + }), + (o.prototype.generateColor = function() { + var e = this.config, + t = this.d3, + n = e.data_colors, + r = _(e.color_pattern) ? e.color_pattern : t.schemeCategory10, + o = e.data_color, + i = []; + return function(e) { + var t, + a = e.id || (e.data && e.data.id) || e; return ( - t - ? (t.x - ? ((n = t.value.concat(t.x)), (o.config.data_x = t.x)) - : (n = t.value), - i.push(n), - e.forEach(function(e) { - var t = []; - n.forEach(function(n) { - var r = o.findValueInJson(e, n); - b(r) && (r = null), t.push(r); - }), - i.push(t); - }), - (r = o.convertRowsToData(i))) - : (Object.keys(e).forEach(function(t) { - i.push([t].concat(e[t])); - }), - (r = o.convertColumnsToData(i))), - r + n[a] instanceof Function + ? (t = n[a](e)) + : n[a] + ? (t = n[a]) + : (i.indexOf(a) < 0 && i.push(a), + (t = r[i.indexOf(a) % r.length]), + (n[a] = t)), + o instanceof Function ? o(t, e) : t ); - }), - (r.prototype.findValueInJson = function(e, t) { - if (t in e) return e[t]; - for ( - var n = (t = (t = t.replace(/\[(\w+)\]/g, '.$1')).replace( - /^\./, - '' - )).split('.'), - r = 0; - r < n.length; - ++r - ) { - var o = n[r]; - if (!(o in e)) return; - e = e[o]; - } - return e; - }), - (r.prototype.convertRowsToData = function(e) { - for (var t = [], n = e[0], r = 1; r < e.length; r++) { - for (var o = {}, i = 0; i < e[r].length; i++) { - if (b(e[r][i])) - throw new Error( - 'Source data is missing a component at (' + - r + - ',' + - i + - ')!' - ); - o[n[i]] = e[r][i]; + }; + }), + (o.prototype.generateLevelColor = function() { + var e = this.config, + t = e.color_pattern, + n = e.color_threshold, + r = 'value' === n.unit, + o = n.values && n.values.length ? n.values : [], + i = n.max || 100; + return _(n) && _(t) + ? function(e) { + var n, + a = t[t.length - 1]; + for (n = 0; n < o.length; n++) + if ((r ? e : (100 * e) / i) < o[n]) { + a = t[n]; + break; + } + return a; } - t.push(o); - } - return { keys: n, rows: t }; - }), - (r.prototype.convertColumnsToData = function(e) { - for (var t = [], n = [], r = 0; r < e.length; r++) { - for (var o = e[r][0], i = 1; i < e[r].length; i++) { - if ((b(t[i - 1]) && (t[i - 1] = {}), b(e[r][i]))) - throw new Error( - 'Source data is missing a component at (' + - r + - ',' + - i + - ')!' - ); - t[i - 1][o] = e[r][i]; + : null; + }), + (o.prototype.getDefaultConfig = function() { + var e = { + bindto: '#chart', + svg_classname: void 0, + size_width: void 0, + size_height: void 0, + padding_left: void 0, + padding_right: void 0, + padding_top: void 0, + padding_bottom: void 0, + resize_auto: !0, + zoom_enabled: !1, + zoom_initialRange: void 0, + zoom_type: 'scroll', + zoom_disableDefaultBehavior: !1, + zoom_privileged: !1, + zoom_rescale: !1, + zoom_onzoom: function() {}, + zoom_onzoomstart: function() {}, + zoom_onzoomend: function() {}, + zoom_x_min: void 0, + zoom_x_max: void 0, + interaction_brighten: !0, + interaction_enabled: !0, + onmouseover: function() {}, + onmouseout: function() {}, + onresize: function() {}, + onresized: function() {}, + oninit: function() {}, + onrendered: function() {}, + transition_duration: 350, + data_epochs: 'epochs', + data_x: void 0, + data_xs: {}, + data_xFormat: '%Y-%m-%d', + data_xLocaltime: !0, + data_xSort: !0, + data_idConverter: function(e) { + return e; + }, + data_names: {}, + data_classes: {}, + data_groups: [], + data_axes: {}, + data_type: void 0, + data_types: {}, + data_labels: {}, + data_order: 'desc', + data_regions: {}, + data_color: void 0, + data_colors: {}, + data_hide: !1, + data_filter: void 0, + data_selection_enabled: !1, + data_selection_grouped: !1, + data_selection_isselectable: function() { + return !0; + }, + data_selection_multiple: !0, + data_selection_draggable: !1, + data_stack_normalize: !1, + data_onclick: function() {}, + data_onmouseover: function() {}, + data_onmouseout: function() {}, + data_onselected: function() {}, + data_onunselected: function() {}, + data_url: void 0, + data_headers: void 0, + data_json: void 0, + data_rows: void 0, + data_columns: void 0, + data_mimeType: void 0, + data_keys: void 0, + data_empty_label_text: '', + subchart_show: !1, + subchart_size_height: 60, + subchart_axis_x_show: !0, + subchart_onbrush: function() {}, + color_pattern: [], + color_threshold: {}, + legend_show: !0, + legend_hide: !1, + legend_position: 'bottom', + legend_inset_anchor: 'top-left', + legend_inset_x: 10, + legend_inset_y: 0, + legend_inset_step: void 0, + legend_item_onclick: void 0, + legend_item_onmouseover: void 0, + legend_item_onmouseout: void 0, + legend_equally: !1, + legend_padding: 0, + legend_item_tile_width: 10, + legend_item_tile_height: 10, + axis_rotated: !1, + axis_x_show: !0, + axis_x_type: 'indexed', + axis_x_localtime: !0, + axis_x_categories: [], + axis_x_tick_centered: !1, + axis_x_tick_format: void 0, + axis_x_tick_culling: {}, + axis_x_tick_culling_max: 10, + axis_x_tick_count: void 0, + axis_x_tick_fit: !0, + axis_x_tick_values: null, + axis_x_tick_rotate: 0, + axis_x_tick_outer: !0, + axis_x_tick_multiline: !0, + axis_x_tick_multilineMax: 0, + axis_x_tick_width: null, + axis_x_max: void 0, + axis_x_min: void 0, + axis_x_padding: {}, + axis_x_height: void 0, + axis_x_selection: void 0, + axis_x_label: {}, + axis_x_inner: void 0, + axis_y_show: !0, + axis_y_type: 'linear', + axis_y_max: void 0, + axis_y_min: void 0, + axis_y_inverted: !1, + axis_y_center: void 0, + axis_y_inner: void 0, + axis_y_label: {}, + axis_y_tick_format: void 0, + axis_y_tick_outer: !0, + axis_y_tick_values: null, + axis_y_tick_rotate: 0, + axis_y_tick_count: void 0, + axis_y_tick_time_type: void 0, + axis_y_tick_time_interval: void 0, + axis_y_padding: {}, + axis_y_default: void 0, + axis_y2_show: !1, + axis_y2_type: 'linear', + axis_y2_max: void 0, + axis_y2_min: void 0, + axis_y2_inverted: !1, + axis_y2_center: void 0, + axis_y2_inner: void 0, + axis_y2_label: {}, + axis_y2_tick_format: void 0, + axis_y2_tick_outer: !0, + axis_y2_tick_values: null, + axis_y2_tick_count: void 0, + axis_y2_padding: {}, + axis_y2_default: void 0, + grid_x_show: !1, + grid_x_type: 'tick', + grid_x_lines: [], + grid_y_show: !1, + grid_y_lines: [], + grid_y_ticks: 10, + grid_focus_show: !0, + grid_lines_front: !0, + point_show: !0, + point_r: 2.5, + point_sensitivity: 10, + point_focus_expand_enabled: !0, + point_focus_expand_r: void 0, + point_select_r: void 0, + line_connectNull: !1, + line_step_type: 'step', + bar_width: void 0, + bar_width_ratio: 0.6, + bar_width_max: void 0, + bar_zerobased: !0, + bar_space: 0, + area_zerobased: !0, + area_above: !1, + pie_label_show: !0, + pie_label_format: void 0, + pie_label_threshold: 0.05, + pie_label_ratio: void 0, + pie_expand: {}, + pie_expand_duration: 50, + pie_padAngle: 0, + gauge_fullCircle: !1, + gauge_label_show: !0, + gauge_labelLine_show: !0, + gauge_label_format: void 0, + gauge_min: 0, + gauge_max: 100, + gauge_startingAngle: (-1 * Math.PI) / 2, + gauge_label_extents: void 0, + gauge_units: void 0, + gauge_width: void 0, + gauge_arcs_minWidth: 5, + gauge_expand: {}, + gauge_expand_duration: 50, + donut_label_show: !0, + donut_label_format: void 0, + donut_label_threshold: 0.05, + donut_label_ratio: void 0, + donut_width: void 0, + donut_title: '', + donut_expand: {}, + donut_expand_duration: 50, + donut_padAngle: 0, + spline_interpolation_type: 'cardinal', + stanford_lines: [], + stanford_regions: [], + stanford_texts: [], + stanford_scaleMin: void 0, + stanford_scaleMax: void 0, + stanford_scaleWidth: void 0, + stanford_scaleFormat: void 0, + stanford_scaleValues: void 0, + stanford_colors: void 0, + stanford_padding: { top: 0, right: 0, bottom: 0, left: 0 }, + regions: [], + tooltip_show: !0, + tooltip_grouped: !0, + tooltip_order: void 0, + tooltip_format_title: void 0, + tooltip_format_name: void 0, + tooltip_format_value: void 0, + tooltip_horizontal: void 0, + tooltip_position: void 0, + tooltip_contents: function(e, t, n, r) { + return this.getTooltipContent + ? this.getTooltipContent(e, t, n, r) + : ''; + }, + tooltip_init_show: !1, + tooltip_init_x: 0, + tooltip_init_position: { top: '0px', left: '50px' }, + tooltip_onshow: function() {}, + tooltip_onhide: function() {}, + title_text: void 0, + title_padding: { top: 0, right: 0, bottom: 0, left: 0 }, + title_position: 'top-center' + }; + return ( + Object.keys(this.additionalConfig).forEach(function(t) { + e[t] = this.additionalConfig[t]; + }, this), + e + ); + }), + (o.prototype.additionalConfig = {}), + (o.prototype.loadConfig = function(e) { + var t, + n, + r, + o = this.config; + Object.keys(o).forEach(function(i) { + (t = e), + (n = i.split('_')), + (r = (function e() { + var r = n.shift(); + return r && t && 'object' == typeof t && r in t + ? ((t = t[r]), e()) + : r + ? void 0 + : t; + })()), + p(r) && (o[i] = r); + }); + }), + (o.prototype.convertUrlToData = function(e, t, n, r, o) { + var i, + a, + s = this, + c = t || 'csv'; + 'json' === c + ? ((i = s.d3.json), (a = s.convertJsonToData)) + : 'tsv' === c + ? ((i = s.d3.tsv), (a = s.convertXsvToData)) + : ((i = s.d3.csv), (a = s.convertXsvToData)), + i(e, n) + .then(function(e) { + o.call(s, a.call(s, e, r)); + }) + .catch(function(e) { + throw e; + }); + }), + (o.prototype.convertXsvToData = function(e) { + var t = e.columns; + return 0 === e.length + ? { + keys: t, + rows: [t.reduce((e, t) => Object.assign(e, { [t]: null }), {})] } - n.push(o); + : { keys: t, rows: [].concat(e) }; + }), + (o.prototype.convertJsonToData = function(e, t) { + var n, + r, + o = this, + i = []; + return ( + t + ? (t.x + ? ((n = t.value.concat(t.x)), (o.config.data_x = t.x)) + : (n = t.value), + i.push(n), + e.forEach(function(e) { + var t = []; + n.forEach(function(n) { + var r = o.findValueInJson(e, n); + y(r) && (r = null), t.push(r); + }), + i.push(t); + }), + (r = o.convertRowsToData(i))) + : (Object.keys(e).forEach(function(t) { + i.push([t].concat(e[t])); + }), + (r = o.convertColumnsToData(i))), + r + ); + }), + (o.prototype.findValueInJson = function(e, t) { + for ( + var n = (t = (t = t.replace(/\[(\w+)\]/g, '.$1')).replace( + /^\./, + '' + )).split('.'), + r = 0; + r < n.length; + ++r + ) { + var o = n[r]; + if (!(o in e)) return; + e = e[o]; + } + return e; + }), + (o.prototype.convertRowsToData = e => { + const t = [], + n = e[0]; + for (let r = 1; r < e.length; r++) { + const o = {}; + for (let t = 0; t < e[r].length; t++) { + if (y(e[r][t])) + throw new Error( + 'Source data is missing a component at (' + r + ',' + t + ')!' + ); + o[n[t]] = e[r][t]; } - return { keys: n, rows: t }; - }), - (r.prototype.convertDataToTargets = function(e, t) { - var n, - r, - o, - i, - a, - s = this, - c = s.config; - if ( - (f(e) ? (i = Object.keys(e[0])) : ((i = e.keys), (e = e.rows)), - (o = i.filter(s.isX, s)), - s.isStanfordGraphType()) - ) { - if ( - ((a = i.filter(s.isEpochs, s)), - (r = i.filter(s.isNotXAndNotEpochs, s)), - 1 !== o.length || 1 !== a.length || 1 !== r.length) - ) + t.push(o); + } + return { keys: n, rows: t }; + }), + (o.prototype.convertColumnsToData = e => { + const t = [], + n = []; + for (let r = 0; r < e.length; r++) { + const o = e[r][0]; + for (let n = 1; n < e[r].length; n++) { + if ((y(t[n - 1]) && (t[n - 1] = {}), y(e[r][n]))) throw new Error( - "You must define the 'x' key name and the 'epochs' for Stanford Diagrams" + 'Source data is missing a component at (' + r + ',' + n + ')!' ); - } else r = i.filter(s.isNotX, s); - return ( - r.forEach(function(n) { - var r = s.getXKey(n); - s.isCustomX() || s.isTimeSeries() - ? o.indexOf(r) >= 0 - ? (s.data.xs[n] = (t && s.data.xs[n] - ? s.data.xs[n] - : [] - ).concat( - e - .map(function(e) { - return e[r]; - }) - .filter(y) - .map(function(e, t) { - return s.generateTargetX(e, n, t); - }) - )) - : c.data_x - ? (s.data.xs[n] = s.getOtherTargetXs()) - : v(c.data_xs) && - (s.data.xs[n] = s.getXValuesOfXKey(r, s.data.targets)) - : (s.data.xs[n] = e.map(function(e, t) { - return t; - })); - }), - r.forEach(function(e) { - if (!s.data.xs[e]) - throw new Error('x is not defined for id = "' + e + '".'); - }), - (n = r.map(function(t, n) { - var r = c.data_idConverter(t); - return { - id: r, - id_org: t, - values: e - .map(function(e, o) { - var i, - u, - l = e[s.getXKey(t)], - f = null === e[t] || isNaN(e[t]) ? null : +e[t]; - return ( - s.isCustomX() && s.isCategorized() && !b(l) - ? (0 === n && 0 === o && (c.axis_x_categories = []), - -1 === (i = c.axis_x_categories.indexOf(l)) && - ((i = c.axis_x_categories.length), - c.axis_x_categories.push(l))) - : (i = s.generateTargetX(l, t, o)), - (b(e[t]) || s.data.xs[t].length <= o) && (i = void 0), - (u = { x: i, value: f, id: r }), - s.isStanfordGraphType() && (u.epochs = e[a]), - u - ); - }) - .filter(function(e) { - return d(e.x); - }) - }; - })).forEach(function(e) { - var t; - c.data_xSort && - (e.values = e.values.sort(function(e, t) { + t[n - 1][o] = e[r][n]; + } + n.push(o); + } + return { keys: n, rows: t }; + }), + (o.prototype.convertDataToTargets = function(e, t) { + var n, + r, + o, + i, + a, + s = this, + c = s.config; + if ( + (d(e) ? (i = Object.keys(e[0])) : ((i = e.keys), (e = e.rows)), + (o = i.filter(s.isX, s)), + s.isStanfordGraphType()) + ) { + if ( + ((a = i.filter(s.isEpochs, s)), + (r = i.filter(s.isNotXAndNotEpochs, s)), + 1 !== o.length || 1 !== a.length || 1 !== r.length) + ) + throw new Error( + "You must define the 'x' key name and the 'epochs' for Stanford Diagrams" + ); + } else r = i.filter(s.isNotX, s); + return ( + r.forEach(function(n) { + var r = s.getXKey(n); + s.isCustomX() || s.isTimeSeries() + ? o.indexOf(r) >= 0 + ? (s.data.xs[n] = (t && s.data.xs[n] + ? s.data.xs[n] + : [] + ).concat( + e + .map(function(e) { + return e[r]; + }) + .filter(v) + .map(function(e, t) { + return s.generateTargetX(e, n, t); + }) + )) + : c.data_x + ? (s.data.xs[n] = s.getOtherTargetXs()) + : _(c.data_xs) && + (s.data.xs[n] = s.getXValuesOfXKey(r, s.data.targets)) + : (s.data.xs[n] = e.map(function(e, t) { + return t; + })); + }), + r.forEach(function(e) { + if (!s.data.xs[e]) + throw new Error('x is not defined for id = "' + e + '".'); + }), + (n = r.map(function(t, n) { + var r = c.data_idConverter(t); + return { + id: r, + id_org: t, + values: e + .map(function(e, o) { + var i, + u, + l = e[s.getXKey(t)], + f = null === e[t] || isNaN(e[t]) ? null : +e[t]; return ( - (e.x || 0 === e.x ? e.x : 1 / 0) - - (t.x || 0 === t.x ? t.x : 1 / 0) + s.isCustomX() && s.isCategorized() && !y(l) + ? (0 === n && 0 === o && (c.axis_x_categories = []), + -1 === (i = c.axis_x_categories.indexOf(l)) && + ((i = c.axis_x_categories.length), + c.axis_x_categories.push(l))) + : (i = s.generateTargetX(l, t, o)), + (y(e[t]) || s.data.xs[t].length <= o) && (i = void 0), + (u = { x: i, value: f, id: r }), + s.isStanfordGraphType() && (u.epochs = e[a]), + u ); - })), - (t = 0), - e.values.forEach(function(e) { - e.index = t++; - }), - s.data.xs[e.id].sort(function(e, t) { - return e - t; - }); - }), - (s.hasNegativeValue = s.hasNegativeValueInTargets(n)), - (s.hasPositiveValue = s.hasPositiveValueInTargets(n)), - c.data_type && - s.setTargetType( - s.mapToIds(n).filter(function(e) { - return !(e in c.data_types); - }), - c.data_type - ), - n.forEach(function(e) { - s.addCache(e.id_org, e); - }), - n - ); - }), - (r.prototype.isEpochs = function(e) { - var t = this.config; - return t.data_epochs && e === t.data_epochs; - }), - (r.prototype.isX = function(e) { - var t = this.config; - return ( - (t.data_x && e === t.data_x) || - (v(t.data_xs) && - (function(e, t) { - var n = !1; + }) + .filter(function(e) { + return p(e.x); + }) + }; + })).forEach(function(e) { + var t; + c.data_xSort && + (e.values = e.values.sort(function(e, t) { return ( - Object.keys(e).forEach(function(r) { - e[r] === t && (n = !0); - }), - n + (e.x || 0 === e.x ? e.x : 1 / 0) - + (t.x || 0 === t.x ? t.x : 1 / 0) ); - })(t.data_xs, e)) - ); - }), - (r.prototype.isNotX = function(e) { - return !this.isX(e); - }), - (r.prototype.isNotXAndNotEpochs = function(e) { - return !this.isX(e) && !this.isEpochs(e); - }), - (r.prototype.isStackNormalized = function() { - return ( - this.config.data_stack_normalize && - this.config.data_groups.length > 0 - ); - }), - (r.prototype.isAxisNormalized = function(e) { - var t = this; - return ( - !!t.isStackNormalized() && - t.data.targets - .filter(function(n) { - return t.axis.getId(n.id) === e; - }) - .some(function(e) { - return t.isTargetNormalized(e.id); - }) - ); - }), - (r.prototype.isTargetNormalized = function(e) { - return ( - this.isStackNormalized() && - this.config.data_groups.some(function(t) { - return t.includes(e); - }) - ); - }), - (r.prototype.getXKey = function(e) { - var t = this.config; - return t.data_x ? t.data_x : v(t.data_xs) ? t.data_xs[e] : null; - }), - (r.prototype.getTotalPerIndex = function(e) { - var t = this; - if (!t.isStackNormalized()) return null; - var n = t.getFromCache('getTotalPerIndex'); - if (void 0 !== n) return n[e]; - var r = { y: [], y2: [] }; - return ( - t.data.targets - .filter(function(e) { - return t.isTargetNormalized(e.id); - }) - .filter(function(e) { - return t.isTargetToShow(e.id); - }) - .forEach(function(e) { - var n = r[t.axis.getId(e.id)]; - e.values.forEach(function(e, t) { - n[t] || (n[t] = 0), (n[t] += g(e.value) ? e.value : 0); - }); - }), - t.addToCache('getTotalPerIndex', r), - r[e] - ); - }), - (r.prototype.getTotalDataSum = function() { - var e = this, - n = e.getFromCache('getTotalDataSum'); - if (void 0 !== n) return n; - var r, - o, - i = ((r = e.data.targets - .filter(function(t) { - return e.isTargetToShow(t.id); - }) - .map(function(e) { - return e.values; })), - Array.isArray(r) ? (o = []).concat.apply(o, t(r)) : []) - .map(function(e) { - return e.value; - }) - .reduce(function(e, t) { - return e + t; - }, 0); - return e.addToCache('getTotalDataSum', i), i; - }), - (r.prototype.getXValuesOfXKey = function(e, t) { - var n, - r = this; - return ( - (t && v(t) ? r.mapToIds(t) : []).forEach(function(t) { - r.getXKey(t) === e && (n = r.data.xs[t]); - }), - n - ); - }), - (r.prototype.getXValue = function(e, t) { - return e in this.data.xs && this.data.xs[e] && y(this.data.xs[e][t]) - ? this.data.xs[e][t] - : t; - }), - (r.prototype.getOtherTargetXs = function() { - var e = Object.keys(this.data.xs); - return e.length ? this.data.xs[e[0]] : null; - }), - (r.prototype.getOtherTargetX = function(e) { - var t = this.getOtherTargetXs(); - return t && e < t.length ? t[e] : null; - }), - (r.prototype.addXs = function(e) { - var t = this; - Object.keys(e).forEach(function(n) { - t.config.data_xs[n] = e[n]; - }); - }), - (r.prototype.addName = function(e) { - var t; - return ( - e && - ((t = this.config.data_names[e.id]), - (e.name = void 0 !== t ? t : e.id)), - e - ); - }), - (r.prototype.getValueOnIndex = function(e, t) { - var n = e.filter(function(e) { - return e.index === t; - }); - return n.length ? n[0] : null; - }), - (r.prototype.updateTargetX = function(e, t) { - var n = this; - e.forEach(function(e) { - e.values.forEach(function(r, o) { - r.x = n.generateTargetX(t[o], e.id, o); + (t = 0), + e.values.forEach(function(e) { + e.index = t++; + }), + s.data.xs[e.id].sort(function(e, t) { + return e - t; + }); + }), + (s.hasNegativeValue = s.hasNegativeValueInTargets(n)), + (s.hasPositiveValue = s.hasPositiveValueInTargets(n)), + c.data_type && + s.setTargetType( + s.mapToIds(n).filter(function(e) { + return !(e in c.data_types); + }), + c.data_type + ), + n.forEach(function(e) { + s.addCache(e.id_org, e); + }), + n + ); + }), + (o.prototype.isEpochs = function(e) { + var t = this.config; + return t.data_epochs && e === t.data_epochs; + }), + (o.prototype.isX = function(e) { + var t = this.config; + return ( + (t.data_x && e === t.data_x) || + (_(t.data_xs) && + (function(e, t) { + var n = !1; + return ( + Object.keys(e).forEach(function(r) { + e[r] === t && (n = !0); + }), + n + ); + })(t.data_xs, e)) + ); + }), + (o.prototype.isNotX = function(e) { + return !this.isX(e); + }), + (o.prototype.isNotXAndNotEpochs = function(e) { + return !this.isX(e) && !this.isEpochs(e); + }), + (o.prototype.isStackNormalized = function() { + return ( + this.config.data_stack_normalize && + this.config.data_groups.length > 0 + ); + }), + (o.prototype.isAxisNormalized = function(e) { + const t = this; + return ( + !!t.isStackNormalized() && + t.data.targets + .filter(n => t.axis.getId(n.id) === e) + .some(e => t.isTargetNormalized(e.id)) + ); + }), + (o.prototype.isTargetNormalized = function(e) { + return ( + this.isStackNormalized() && + this.config.data_groups.some(t => t.includes(e)) + ); + }), + (o.prototype.getXKey = function(e) { + var t = this.config; + return t.data_x ? t.data_x : _(t.data_xs) ? t.data_xs[e] : null; + }), + (o.prototype.getTotalPerIndex = function(e) { + const t = this; + if (!t.isStackNormalized()) return null; + const n = t.getFromCache('getTotalPerIndex'); + if (void 0 !== n) return n[e]; + const r = { y: [], y2: [] }; + return ( + t.data.targets + .filter(e => t.isTargetNormalized(e.id)) + .filter(e => t.isTargetToShow(e.id)) + .forEach(e => { + const n = r[t.axis.getId(e.id)]; + e.values.forEach((e, t) => { + n[t] || (n[t] = 0), (n[t] += m(e.value) ? e.value : 0); + }); }), - (n.data.xs[e.id] = t); - }); - }), - (r.prototype.updateTargetXs = function(e, t) { - var n = this; + t.addToCache('getTotalPerIndex', r), + r[e] + ); + }), + (o.prototype.getTotalDataSum = function() { + const e = this, + t = e.getFromCache('getTotalDataSum'); + if (void 0 !== t) return t; + const n = ((r = e.data.targets + .filter(t => e.isTargetToShow(t.id)) + .map(e => e.values)), + Array.isArray(r) ? [].concat(...r) : []) + .map(e => e.value) + .reduce((e, t) => e + t, 0); + var r; + return e.addToCache('getTotalDataSum', n), n; + }), + (o.prototype.getXValuesOfXKey = function(e, t) { + var n, + r = this; + return ( + (t && _(t) ? r.mapToIds(t) : []).forEach(function(t) { + r.getXKey(t) === e && (n = r.data.xs[t]); + }), + n + ); + }), + (o.prototype.getXValue = function(e, t) { + return e in this.data.xs && this.data.xs[e] && v(this.data.xs[e][t]) + ? this.data.xs[e][t] + : t; + }), + (o.prototype.getOtherTargetXs = function() { + var e = Object.keys(this.data.xs); + return e.length ? this.data.xs[e[0]] : null; + }), + (o.prototype.getOtherTargetX = function(e) { + var t = this.getOtherTargetXs(); + return t && e < t.length ? t[e] : null; + }), + (o.prototype.addXs = function(e) { + var t = this; + Object.keys(e).forEach(function(n) { + t.config.data_xs[n] = e[n]; + }); + }), + (o.prototype.addName = function(e) { + var t; + return ( + e && + ((t = this.config.data_names[e.id]), + (e.name = void 0 !== t ? t : e.id)), + e + ); + }), + (o.prototype.getValueOnIndex = function(e, t) { + var n = e.filter(function(e) { + return e.index === t; + }); + return n.length ? n[0] : null; + }), + (o.prototype.updateTargetX = function(e, t) { + var n = this; + e.forEach(function(e) { + e.values.forEach(function(r, o) { + r.x = n.generateTargetX(t[o], e.id, o); + }), + (n.data.xs[e.id] = t); + }); + }), + (o.prototype.updateTargetXs = function(e, t) { + var n = this; + e.forEach(function(e) { + t[e.id] && n.updateTargetX([e], t[e.id]); + }); + }), + (o.prototype.generateTargetX = function(e, t, n) { + var r = this; + return r.isTimeSeries() + ? e + ? r.parseDate(e) + : r.parseDate(r.getXValue(t, n)) + : r.isCustomX() && !r.isCategorized() + ? v(e) + ? +e + : r.getXValue(t, n) + : n; + }), + (o.prototype.cloneTarget = function(e) { + return { + id: e.id, + id_org: e.id_org, + values: e.values.map(function(e) { + return { x: e.x, value: e.value, id: e.id }; + }) + }; + }), + (o.prototype.getMaxDataCount = function() { + return this.d3.max(this.data.targets, function(e) { + return e.values.length; + }); + }), + (o.prototype.mapToIds = function(e) { + return e.map(function(e) { + return e.id; + }); + }), + (o.prototype.mapToTargetIds = function(e) { + return e ? [].concat(e) : this.mapToIds(this.data.targets); + }), + (o.prototype.hasTarget = function(e, t) { + var n, + r = this.mapToIds(e); + for (n = 0; n < r.length; n++) if (r[n] === t) return !0; + return !1; + }), + (o.prototype.isTargetToShow = function(e) { + return this.hiddenTargetIds.indexOf(e) < 0; + }), + (o.prototype.isLegendToShow = function(e) { + return this.hiddenLegendIds.indexOf(e) < 0; + }), + (o.prototype.getTargetsToShow = function() { + return this.filterTargetsToShow(this.data.targets); + }), + (o.prototype.filterTargetsToShow = function(e) { + var t = this; + return e.filter(function(e) { + return t.isTargetToShow(e.id); + }); + }), + (o.prototype.getTargets = function() { + return this.data.targets; + }), + (o.prototype.mapTargetsToUniqueXs = function(e) { + var t = this.d3 + .set( + this.d3.merge( + e.map(function(e) { + return e.values.map(function(e) { + return +e.x; + }); + }) + ) + ) + .values(); + return (t = this.isTimeSeries() + ? t.map(function(e) { + return new Date(+e); + }) + : t.map(function(e) { + return +e; + })).sort(function(e, t) { + return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN; + }); + }), + (o.prototype.addHiddenTargetIds = function(e) { + e = e instanceof Array ? e : new Array(e); + for (var t = 0; t < e.length; t++) + this.hiddenTargetIds.indexOf(e[t]) < 0 && + (this.hiddenTargetIds = this.hiddenTargetIds.concat(e[t])); + this.resetCache(); + }), + (o.prototype.removeHiddenTargetIds = function(e) { + (this.hiddenTargetIds = this.hiddenTargetIds.filter(function(t) { + return e.indexOf(t) < 0; + })), + this.resetCache(); + }), + (o.prototype.addHiddenLegendIds = function(e) { + e = e instanceof Array ? e : new Array(e); + for (var t = 0; t < e.length; t++) + this.hiddenLegendIds.indexOf(e[t]) < 0 && + (this.hiddenLegendIds = this.hiddenLegendIds.concat(e[t])); + }), + (o.prototype.removeHiddenLegendIds = function(e) { + this.hiddenLegendIds = this.hiddenLegendIds.filter(function(t) { + return e.indexOf(t) < 0; + }); + }), + (o.prototype.getValuesAsIdKeyed = function(e) { + var t = {}; + return ( e.forEach(function(e) { - t[e.id] && n.updateTargetX([e], t[e.id]); + (t[e.id] = []), + e.values.forEach(function(n) { + t[e.id].push(n.value); + }); + }), + t + ); + }), + (o.prototype.checkValueInTargets = function(e, t) { + var n, + r, + o, + i = Object.keys(e); + for (n = 0; n < i.length; n++) + for (o = e[i[n]].values, r = 0; r < o.length; r++) + if (t(o[r].value)) return !0; + return !1; + }), + (o.prototype.hasNegativeValueInTargets = function(e) { + return this.checkValueInTargets(e, function(e) { + return e < 0; + }); + }), + (o.prototype.hasPositiveValueInTargets = function(e) { + return this.checkValueInTargets(e, function(e) { + return e > 0; + }); + }), + (o.prototype.isOrderDesc = function() { + var e = this.config; + return ( + 'string' == typeof e.data_order && + 'desc' === e.data_order.toLowerCase() + ); + }), + (o.prototype.isOrderAsc = function() { + var e = this.config; + return ( + 'string' == typeof e.data_order && + 'asc' === e.data_order.toLowerCase() + ); + }), + (o.prototype.getOrderFunction = function() { + var e = this.config, + t = this.isOrderAsc(), + n = this.isOrderDesc(); + if (t || n) { + var r = function(e, t) { + return e + Math.abs(t.value); + }; + return function(e, n) { + var o = e.values.reduce(r, 0), + i = n.values.reduce(r, 0); + return t ? i - o : o - i; + }; + } + if (g(e.data_order)) return e.data_order; + if (d(e.data_order)) { + var o = e.data_order; + return function(e, t) { + return o.indexOf(e.id) - o.indexOf(t.id); + }; + } + }), + (o.prototype.orderTargets = function(e) { + var t = this.getOrderFunction(); + return t && e.sort(t), e; + }), + (o.prototype.filterByIndex = function(e, t) { + return this.d3.merge(e.map(e => e.values.filter(e => e.index === t))); + }), + (o.prototype.filterByX = function(e, t) { + return this.d3 + .merge( + e.map(function(e) { + return e.values; + }) + ) + .filter(function(e) { + return e.x - t == 0; }); - }), - (r.prototype.generateTargetX = function(e, t, n) { - var r = this; - return r.isTimeSeries() - ? e - ? r.parseDate(e) - : r.parseDate(r.getXValue(t, n)) - : r.isCustomX() && !r.isCategorized() - ? y(e) - ? +e - : r.getXValue(t, n) - : n; - }), - (r.prototype.cloneTarget = function(e) { + }), + (o.prototype.filterRemoveNull = function(e) { + return e.filter(function(e) { + return v(e.value); + }); + }), + (o.prototype.filterByXDomain = function(e, t) { + return e.map(function(e) { return { id: e.id, id_org: e.id_org, - values: e.values.map(function(e) { - return { x: e.x, value: e.value, id: e.id }; + values: e.values.filter(function(e) { + return t[0] <= e.x && e.x <= t[1]; }) }; - }), - (r.prototype.getMaxDataCount = function() { - return this.d3.max(this.data.targets, function(e) { - return e.values.length; - }); - }), - (r.prototype.mapToIds = function(e) { - return e.map(function(e) { - return e.id; - }); - }), - (r.prototype.mapToTargetIds = function(e) { - return e ? [].concat(e) : this.mapToIds(this.data.targets); - }), - (r.prototype.hasTarget = function(e, t) { - var n, - r = this.mapToIds(e); - for (n = 0; n < r.length; n++) if (r[n] === t) return !0; - return !1; - }), - (r.prototype.isTargetToShow = function(e) { - return this.hiddenTargetIds.indexOf(e) < 0; - }), - (r.prototype.isLegendToShow = function(e) { - return this.hiddenLegendIds.indexOf(e) < 0; - }), - (r.prototype.getTargetsToShow = function() { - return this.filterTargetsToShow(this.data.targets); - }), - (r.prototype.filterTargetsToShow = function(e) { - var t = this; - return e.filter(function(e) { - return t.isTargetToShow(e.id); - }); - }), - (r.prototype.getTargets = function() { - return this.data.targets; - }), - (r.prototype.mapTargetsToUniqueXs = function(e) { - var t = this.d3 - .set( - this.d3.merge( - e.map(function(e) { - return e.values.map(function(e) { - return +e.x; - }); - }) - ) - ) - .values(); - return (t = this.isTimeSeries() - ? t.map(function(e) { - return new Date(+e); - }) - : t.map(function(e) { - return +e; - })).sort(function(e, t) { - return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN; - }); - }), - (r.prototype.addHiddenTargetIds = function(e) { - e = e instanceof Array ? e : new Array(e); - for (var t = 0; t < e.length; t++) - this.hiddenTargetIds.indexOf(e[t]) < 0 && - (this.hiddenTargetIds = this.hiddenTargetIds.concat(e[t])); - this.resetCache(); - }), - (r.prototype.removeHiddenTargetIds = function(e) { - (this.hiddenTargetIds = this.hiddenTargetIds.filter(function(t) { - return e.indexOf(t) < 0; - })), - this.resetCache(); - }), - (r.prototype.addHiddenLegendIds = function(e) { - e = e instanceof Array ? e : new Array(e); - for (var t = 0; t < e.length; t++) - this.hiddenLegendIds.indexOf(e[t]) < 0 && - (this.hiddenLegendIds = this.hiddenLegendIds.concat(e[t])); - }), - (r.prototype.removeHiddenLegendIds = function(e) { - this.hiddenLegendIds = this.hiddenLegendIds.filter(function(t) { - return e.indexOf(t) < 0; - }); - }), - (r.prototype.getValuesAsIdKeyed = function(e) { - var t = {}; - return ( - e.forEach(function(e) { - (t[e.id] = []), - e.values.forEach(function(n) { - t[e.id].push(n.value); - }); - }), - t - ); - }), - (r.prototype.checkValueInTargets = function(e, t) { - var n, - r, - o, - i = Object.keys(e); - for (n = 0; n < i.length; n++) - for (o = e[i[n]].values, r = 0; r < o.length; r++) - if (t(o[r].value)) return !0; - return !1; - }), - (r.prototype.hasNegativeValueInTargets = function(e) { - return this.checkValueInTargets(e, function(e) { - return e < 0; - }); - }), - (r.prototype.hasPositiveValueInTargets = function(e) { - return this.checkValueInTargets(e, function(e) { - return e > 0; - }); - }), - (r.prototype.isOrderDesc = function() { - var e = this.config; - return ( - 'string' == typeof e.data_order && - 'desc' === e.data_order.toLowerCase() - ); - }), - (r.prototype.isOrderAsc = function() { - var e = this.config; - return ( - 'string' == typeof e.data_order && - 'asc' === e.data_order.toLowerCase() - ); - }), - (r.prototype.getOrderFunction = function() { - var e = this.config, - t = this.isOrderAsc(), - n = this.isOrderDesc(); - if (t || n) { - var r = function(e, t) { - return e + Math.abs(t.value); - }; - return function(e, n) { - var o = e.values.reduce(r, 0), - i = n.values.reduce(r, 0); - return t ? i - o : o - i; - }; - } - if (h(e.data_order)) return e.data_order; - if (f(e.data_order)) { - var o = e.data_order; - return function(e, t) { - return o.indexOf(e.id) - o.indexOf(t.id); - }; - } - }), - (r.prototype.orderTargets = function(e) { - var t = this.getOrderFunction(); - return t && e.sort(t), e; - }), - (r.prototype.filterByIndex = function(e, t) { - return this.d3.merge( - e.map(function(e) { - return e.values.filter(function(e) { - return e.index === t; - }); + }); + }), + (o.prototype.hasDataLabel = function() { + var e = this.config; + return ( + !('boolean' != typeof e.data_labels || !e.data_labels) || + !('object' != typeof e.data_labels || !_(e.data_labels)) + ); + }), + (o.prototype.getDataLabelLength = function(e, t, n) { + var r = this, + o = [0, 0]; + return ( + r.selectChart + .select('svg') + .selectAll('.dummy') + .data([e, t]) + .enter() + .append('text') + .text(function(e) { + return r.dataLabelFormat(e.id)(e); }) - ); - }), - (r.prototype.filterByX = function(e, t) { - return this.d3 - .merge( - e.map(function(e) { - return e.values; - }) + .each(function(e, t) { + o[t] = 1.3 * f(this)[n]; + }) + .remove(), + o + ); + }), + (o.prototype.isNoneArc = function(e) { + return this.hasTarget(this.data.targets, e.id); + }), + (o.prototype.isArc = function(e) { + return 'data' in e && this.hasTarget(this.data.targets, e.data.id); + }), + (o.prototype.findClosestFromTargets = function(e, t) { + const n = this, + r = e + .map(e => + n.findClosest( + e.values, + t, + n.config.tooltip_horizontal + ? n.horizontalDistance.bind(n) + : n.dist.bind(n), + n.config.point_sensitivity + ) ) - .filter(function(e) { - return e.x - t == 0; + .filter(e => e); + return 0 === r.length + ? void 0 + : 1 === r.length + ? r[0] + : n.findClosest(r, t, n.dist.bind(n)); + }), + (o.prototype.findClosestFromTargetsByX = function(e, t) { + let n, r; + return ( + e.forEach(e => { + e.values.forEach(e => { + let o = Math.abs(t - e.x); + (void 0 === r || o < r) && ((n = e), (r = o)); }); - }), - (r.prototype.filterRemoveNull = function(e) { - return e.filter(function(e) { - return y(e.value); - }); - }), - (r.prototype.filterByXDomain = function(e, t) { - return e.map(function(e) { - return { - id: e.id, - id_org: e.id_org, - values: e.values.filter(function(e) { - return t[0] <= e.x && e.x <= t[1]; - }) - }; - }); - }), - (r.prototype.hasDataLabel = function() { - var t = this.config; - return ( - !('boolean' != typeof t.data_labels || !t.data_labels) || - !('object' !== e(t.data_labels) || !v(t.data_labels)) - ); - }), - (r.prototype.getDataLabelLength = function(e, t, n) { - var r = this, - o = [0, 0]; - return ( - r.selectChart - .select('svg') - .selectAll('.dummy') - .data([e, t]) - .enter() - .append('text') - .text(function(e) { - return r.dataLabelFormat(e.id)(e); - }) - .each(function(e, t) { - o[t] = 1.3 * l(this)[n]; - }) - .remove(), - o - ); - }), - (r.prototype.isNoneArc = function(e) { - return this.hasTarget(this.data.targets, e.id); - }), - (r.prototype.isArc = function(e) { - return 'data' in e && this.hasTarget(this.data.targets, e.data.id); - }), - (r.prototype.findClosestFromTargets = function(e, t) { - var n = this, - r = e - .map(function(e) { - return n.findClosest( - e.values, - t, - n.config.tooltip_horizontal - ? n.horizontalDistance.bind(n) - : n.dist.bind(n), - n.config.point_sensitivity - ); - }) - .filter(function(e) { - return e; - }); - return 0 === r.length - ? void 0 - : 1 === r.length - ? r[0] - : n.findClosest(r, t, n.dist.bind(n)); - }), - (r.prototype.findClosestFromTargetsByX = function(e, t) { - var n, r; - return ( - e.forEach(function(e) { - e.values.forEach(function(e) { - var o = Math.abs(t - e.x); - (void 0 === r || o < r) && ((n = e), (r = o)); - }); + }), + n + ); + }), + (o.prototype.findClosest = function(e, t, n, r = 1 / 0) { + const o = this; + let i; + return ( + e + .filter(e => e && o.isBarType(e.id)) + .forEach(function(e) { + if (!i) { + const n = o.main + .select( + '.' + + M.bars + + o.getTargetSelectorSuffix(e.id) + + ' .' + + M.bar + + '-' + + e.index + ) + .node(); + o.isWithinBar(t, n) && (i = e); + } }), - n - ); - }), - (r.prototype.findClosest = function(e, t, n) { - var r, - o = - arguments.length > 3 && void 0 !== arguments[3] - ? arguments[3] - : 1 / 0, - i = this; - return ( - e - .filter(function(e) { - return e && i.isBarType(e.id); - }) - .forEach(function(e) { - if (!r) { - var n = i.main - .select( - '.' + - M.bars + - i.getTargetSelectorSuffix(e.id) + - ' .' + - M.bar + - '-' + - e.index - ) - .node(); - i.isWithinBar(t, n) && (r = e); - } - }), - e - .filter(function(e) { - return e && !i.isBarType(e.id); - }) - .forEach(function(e) { - var i = n(e, t); - i < o && ((o = i), (r = e)); - }), - r - ); - }), - (r.prototype.dist = function(e, t) { - var n = this.config, - r = n.axis_rotated ? 1 : 0, - o = n.axis_rotated ? 0 : 1, - i = this.circleY(e, e.index), - a = this.x(e.x); - return Math.sqrt(Math.pow(a - t[r], 2) + Math.pow(i - t[o], 2)); - }), - (r.prototype.horizontalDistance = function(e, t) { - var n = this.config.axis_rotated ? 1 : 0, - r = this.x(e.x); - return Math.abs(r - t[n]); - }), - (r.prototype.convertValuesToStep = function(e) { - var t, - n = [].concat(e); - if (!this.isCategorized()) return e; - for (t = e.length + 1; 0 < t; t--) n[t] = n[t - 1]; - return ( - (n[0] = { x: n[0].x - 1, value: n[0].value, id: n[0].id }), - (n[e.length + 1] = { - x: n[e.length].x + 1, - value: n[e.length].value, - id: n[e.length].id + e + .filter(e => e && !o.isBarType(e.id)) + .forEach(e => { + let o = n(e, t); + o < r && ((r = o), (i = e)); }), - n - ); - }), - (r.prototype.getRatio = function(e, t) { - var n = - arguments.length > 2 && void 0 !== arguments[2] && arguments[2], - r = this, - o = r.api, - i = 0; - if (t && o.data.shown.call(o).length) - if (((i = t.ratio || t.value), 'arc' === e)) - if (r.hasType('gauge')) - i = - (t.endAngle - t.startAngle) / - (Math.PI * (r.config.gauge_fullCircle ? 2 : 1)); - else { - var a = r.getTotalDataSum(); - i = t.value / a; - } - else if ('index' === e) { - var s = r.getTotalPerIndex(r.axis.getId(t.id)); - (t.ratio = - g(t.value) && s && s[t.index] > 0 ? t.value / s[t.index] : 0), - (i = t.ratio); + i + ); + }), + (o.prototype.dist = function(e, t) { + var n = this.config, + r = n.axis_rotated ? 1 : 0, + o = n.axis_rotated ? 0 : 1, + i = this.circleY(e, e.index), + a = this.x(e.x); + return Math.sqrt(Math.pow(a - t[r], 2) + Math.pow(i - t[o], 2)); + }), + (o.prototype.horizontalDistance = function(e, t) { + var n = this.config.axis_rotated ? 1 : 0, + r = this.x(e.x); + return Math.abs(r - t[n]); + }), + (o.prototype.convertValuesToStep = function(e) { + var t, + n = [].concat(e); + if (!this.isCategorized()) return e; + for (t = e.length + 1; 0 < t; t--) n[t] = n[t - 1]; + return ( + (n[0] = { x: n[0].x - 1, value: n[0].value, id: n[0].id }), + (n[e.length + 1] = { + x: n[e.length].x + 1, + value: n[e.length].value, + id: n[e.length].id + }), + n + ); + }), + (o.prototype.getRatio = function(e, t, n = !1) { + const r = this, + o = r.api; + let i = 0; + if (t && o.data.shown.call(o).length) + if (((i = t.ratio || t.value), 'arc' === e)) + if (r.hasType('gauge')) + i = + (t.endAngle - t.startAngle) / + (Math.PI * (r.config.gauge_fullCircle ? 2 : 1)); + else { + const e = r.getTotalDataSum(); + i = t.value / e; } - return n && i ? 100 * i : i; - }), - (r.prototype.updateDataAttributes = function(e, t) { - var n = this.config['data_' + e]; - return ( - void 0 === t || - (Object.keys(t).forEach(function(e) { - n[e] = t[e]; - }), - this.redraw({ withLegend: !0 })), - n - ); - }), - (r.prototype.load = function(e, t) { - var n = this; - e && - (t.filter && (e = e.filter(t.filter)), - (t.type || t.types) && - e.forEach(function(e) { - var r = t.types && t.types[e.id] ? t.types[e.id] : t.type; - n.setTargetType(e.id, r); - }), - n.data.targets.forEach(function(t) { - for (var n = 0; n < e.length; n++) - if (t.id === e[n].id) { - (t.values = e[n].values), e.splice(n, 1); - break; - } + else if ('index' === e) { + const e = r.getTotalPerIndex(r.axis.getId(t.id)); + (t.ratio = + m(t.value) && e && e[t.index] > 0 ? t.value / e[t.index] : 0), + (i = t.ratio); + } + return n && i ? 100 * i : i; + }), + (o.prototype.updateDataAttributes = function(e, t) { + var n = this.config['data_' + e]; + return void 0 === t + ? n + : (Object.keys(t).forEach(function(e) { + n[e] = t[e]; }), - (n.data.targets = n.data.targets.concat(e))), - n.updateTargets(n.data.targets), - n.redraw({ - withUpdateOrgXDomain: !0, - withUpdateXDomain: !0, - withLegend: !0 + this.redraw({ withLegend: !0 }), + n); + }), + (o.prototype.load = function(e, t) { + var n = this; + e && + (t.filter && (e = e.filter(t.filter)), + (t.type || t.types) && + e.forEach(function(e) { + var r = t.types && t.types[e.id] ? t.types[e.id] : t.type; + n.setTargetType(e.id, r); }), - t.done && t.done(); - }), - (r.prototype.loadFromArgs = function(e) { - var t = this; - t.resetCache(), - e.data - ? t.load(t.convertDataToTargets(e.data), e) - : e.url - ? t.convertUrlToData( - e.url, - e.mimeType, - e.headers, - e.keys, - function(n) { - t.load(t.convertDataToTargets(n), e); - } - ) - : e.json - ? t.load( - t.convertDataToTargets(t.convertJsonToData(e.json, e.keys)), - e - ) - : e.rows - ? t.load(t.convertDataToTargets(t.convertRowsToData(e.rows)), e) - : e.columns - ? t.load( - t.convertDataToTargets(t.convertColumnsToData(e.columns)), - e - ) - : t.load(null, e); - }), - (r.prototype.unload = function(e, t) { - var n = this; - n.resetCache(), - t || (t = function() {}), - (e = e.filter(function(e) { - return n.hasTarget(n.data.targets, e); - })) && 0 !== e.length - ? (n.svg - .selectAll( - e.map(function(e) { - return n.selectorTarget(e); - }) - ) - .transition() - .style('opacity', 0) - .remove() - .call(n.endall, t), - e.forEach(function(e) { - (n.withoutFadeIn[e] = !1), - n.legend && - n.legend - .selectAll( - '.' + M.legendItem + n.getTargetSelectorSuffix(e) - ) - .remove(), - (n.data.targets = n.data.targets.filter(function(t) { - return t.id !== e; - })); - })) - : t(); - }), - (r.prototype.getYDomainMin = function(e) { - var t, - n, - r, - o, - i, - a, - s = this, - c = s.config, - u = s.mapToIds(e), - l = s.getValuesAsIdKeyed(e); - if (c.data_groups.length > 0) - for ( - a = s.hasNegativeValueInTargets(e), t = 0; - t < c.data_groups.length; - t++ - ) - if ( - 0 !== - (o = c.data_groups[t].filter(function(e) { - return u.indexOf(e) >= 0; - })).length + n.data.targets.forEach(function(t) { + for (var n = 0; n < e.length; n++) + if (t.id === e[n].id) { + (t.values = e[n].values), e.splice(n, 1); + break; + } + }), + (n.data.targets = n.data.targets.concat(e))), + n.updateTargets(n.data.targets), + n.redraw({ + withUpdateOrgXDomain: !0, + withUpdateXDomain: !0, + withLegend: !0 + }), + t.done && t.done(); + }), + (o.prototype.loadFromArgs = function(e) { + var t = this; + t.resetCache(), + e.data + ? t.load(t.convertDataToTargets(e.data), e) + : e.url + ? t.convertUrlToData( + e.url, + e.mimeType, + e.headers, + e.keys, + function(n) { + t.load(t.convertDataToTargets(n), e); + } ) - for ( - r = o[0], - a && - l[r] && - l[r].forEach(function(e, t) { - l[r][t] = e < 0 ? e : 0; - }), - n = 1; - n < o.length; - n++ - ) - (i = o[n]), - l[i] && - l[i].forEach(function(e, t) { - s.axis.getId(i) !== s.axis.getId(r) || - !l[r] || - (a && +e > 0) || - (l[r][t] += +e); - }); - return s.d3.min( - Object.keys(l).map(function(e) { - return s.d3.min(l[e]); - }) - ); - }), - (r.prototype.getYDomainMax = function(e) { - var t, - n, - r, - o, - i, - a, - s = this, - c = s.config, - u = s.mapToIds(e), - l = s.getValuesAsIdKeyed(e); - if (c.data_groups.length > 0) - for ( - a = s.hasPositiveValueInTargets(e), t = 0; - t < c.data_groups.length; - t++ - ) - if ( - 0 !== - (o = c.data_groups[t].filter(function(e) { - return u.indexOf(e) >= 0; - })).length + : e.json + ? t.load( + t.convertDataToTargets(t.convertJsonToData(e.json, e.keys)), + e ) - for ( - r = o[0], - a && - l[r] && - l[r].forEach(function(e, t) { - l[r][t] = e > 0 ? e : 0; - }), - n = 1; - n < o.length; - n++ + : e.rows + ? t.load(t.convertDataToTargets(t.convertRowsToData(e.rows)), e) + : e.columns + ? t.load( + t.convertDataToTargets(t.convertColumnsToData(e.columns)), + e + ) + : t.load(null, e); + }), + (o.prototype.unload = function(e, t) { + var n = this; + n.resetCache(), + t || (t = function() {}), + (e = e.filter(function(e) { + return n.hasTarget(n.data.targets, e); + })) && 0 !== e.length + ? (n.svg + .selectAll( + e.map(function(e) { + return n.selectorTarget(e); + }) ) - (i = o[n]), - l[i] && - l[i].forEach(function(e, t) { - s.axis.getId(i) !== s.axis.getId(r) || - !l[r] || - (a && +e < 0) || - (l[r][t] += +e); - }); - return s.d3.max( - Object.keys(l).map(function(e) { - return s.d3.max(l[e]); - }) - ); - }), - (r.prototype.getYDomain = function(e, t, n) { - var r = this, - o = r.config; - if (r.isAxisNormalized(t)) return [0, 100]; - var i, - a, - c, - u, - l, - f, - d, - p, - h, - g, - m = e.filter(function(e) { - return r.axis.getId(e.id) === t; - }), - b = n ? r.filterByXDomain(m, n) : m, - _ = 'y2' === t ? o.axis_y2_min : o.axis_y_min, - x = 'y2' === t ? o.axis_y2_max : o.axis_y_max, - w = r.getYDomainMin(b), - M = r.getYDomainMax(b), - k = 'y2' === t ? o.axis_y2_center : o.axis_y_center, - S = - (r.hasType('bar', b) && o.bar_zerobased) || - (r.hasType('area', b) && o.area_zerobased), - A = 'y2' === t ? o.axis_y2_inverted : o.axis_y_inverted, - O = r.hasDataLabel() && o.axis_rotated, - E = r.hasDataLabel() && !o.axis_rotated; - if ( - ((w = y(_) ? _ : y(x) ? (w < x ? w : x - 10) : w), - (M = y(x) ? x : y(_) ? (_ < M ? M : _ + 10) : M), - 0 === b.length) + .transition() + .style('opacity', 0) + .remove() + .call(n.endall, t), + e.forEach(function(e) { + (n.withoutFadeIn[e] = !1), + n.legend && + n.legend + .selectAll( + '.' + M.legendItem + n.getTargetSelectorSuffix(e) + ) + .remove(), + (n.data.targets = n.data.targets.filter(function(t) { + return t.id !== e; + })); + })) + : t(); + }), + (o.prototype.getYDomainMin = function(e) { + var t, + n, + r, + o, + i, + a, + s = this, + c = s.config, + u = s.mapToIds(e), + l = s.getValuesAsIdKeyed(e); + if (c.data_groups.length > 0) + for ( + a = s.hasNegativeValueInTargets(e), t = 0; + t < c.data_groups.length; + t++ ) - return 'y2' === t ? r.y2.domain() : r.y.domain(); - if ( - (isNaN(w) && (w = 0), - isNaN(M) && (M = w), - w === M && (w < 0 ? (M = 0) : (w = 0)), - (h = w >= 0 && M >= 0), - (g = w <= 0 && M <= 0), - ((y(_) && h) || (y(x) && g)) && (S = !1), - S && (h && (w = 0), g && (M = 0)), - (c = u = 0.1 * (a = Math.abs(M - w))), - void 0 !== k && - ((M = k + (l = Math.max(Math.abs(w), Math.abs(M)))), - (w = k - l)), - O) + if ( + 0 !== + (o = c.data_groups[t].filter(function(e) { + return u.indexOf(e) >= 0; + })).length + ) + for ( + r = o[0], + a && + l[r] && + l[r].forEach(function(e, t) { + l[r][t] = e < 0 ? e : 0; + }), + n = 1; + n < o.length; + n++ + ) + (i = o[n]), + l[i] && + l[i].forEach(function(e, t) { + s.axis.getId(i) !== s.axis.getId(r) || + !l[r] || + (a && +e > 0) || + (l[r][t] += +e); + }); + return s.d3.min( + Object.keys(l).map(function(e) { + return s.d3.min(l[e]); + }) + ); + }), + (o.prototype.getYDomainMax = function(e) { + var t, + n, + r, + o, + i, + a, + s = this, + c = s.config, + u = s.mapToIds(e), + l = s.getValuesAsIdKeyed(e); + if (c.data_groups.length > 0) + for ( + a = s.hasPositiveValueInTargets(e), t = 0; + t < c.data_groups.length; + t++ ) - (f = r.getDataLabelLength(w, M, 'width')), - (d = s(r.y.range())), - (c += a * ((p = [f[0] / d, f[1] / d])[1] / (1 - p[0] - p[1]))), - (u += a * (p[0] / (1 - p[0] - p[1]))); - else if (E) { - f = r.getDataLabelLength(w, M, 'height'); - var T = r.getY( - o['axis_'.concat(t, '_type')], - [0, o.axis_rotated ? r.width : r.height], - [0, a] - ); - (c += T(f[1])), (u += T(f[0])); - } - return ( - 'y' === t && - v(o.axis_y_padding) && - ((c = r.axis.getPadding(o.axis_y_padding, 'top', c, a)), - (u = r.axis.getPadding(o.axis_y_padding, 'bottom', u, a))), - 'y2' === t && - v(o.axis_y2_padding) && - ((c = r.axis.getPadding(o.axis_y2_padding, 'top', c, a)), - (u = r.axis.getPadding(o.axis_y2_padding, 'bottom', u, a))), - S && (h && (u = w), g && (c = -M)), - (i = [w - u, M + c]), - A ? i.reverse() : i - ); - }), - (r.prototype.getXDomainMin = function(e) { - var t = this, - n = t.config; - return d(n.axis_x_min) - ? t.isTimeSeries() - ? this.parseDate(n.axis_x_min) - : n.axis_x_min - : t.d3.min(e, function(e) { - return t.d3.min(e.values, function(e) { - return e.x; - }); + if ( + 0 !== + (o = c.data_groups[t].filter(function(e) { + return u.indexOf(e) >= 0; + })).length + ) + for ( + r = o[0], + a && + l[r] && + l[r].forEach(function(e, t) { + l[r][t] = e > 0 ? e : 0; + }), + n = 1; + n < o.length; + n++ + ) + (i = o[n]), + l[i] && + l[i].forEach(function(e, t) { + s.axis.getId(i) !== s.axis.getId(r) || + !l[r] || + (a && +e < 0) || + (l[r][t] += +e); + }); + return s.d3.max( + Object.keys(l).map(function(e) { + return s.d3.max(l[e]); + }) + ); + }), + (o.prototype.getYDomain = function(e, t, n) { + var r = this, + o = r.config; + if (r.isAxisNormalized(t)) return [0, 100]; + var i, + a, + s, + u, + l, + f, + d, + p, + h, + g, + m = e.filter(function(e) { + return r.axis.getId(e.id) === t; + }), + b = n ? r.filterByXDomain(m, n) : m, + y = 'y2' === t ? o.axis_y2_min : o.axis_y_min, + w = 'y2' === t ? o.axis_y2_max : o.axis_y_max, + x = r.getYDomainMin(b), + M = r.getYDomainMax(b), + k = 'y2' === t ? o.axis_y2_center : o.axis_y_center, + S = + (r.hasType('bar', b) && o.bar_zerobased) || + (r.hasType('area', b) && o.area_zerobased), + O = 'y2' === t ? o.axis_y2_inverted : o.axis_y_inverted, + E = r.hasDataLabel() && o.axis_rotated, + A = r.hasDataLabel() && !o.axis_rotated; + if ( + ((x = v(y) ? y : v(w) ? (x < w ? x : w - 10) : x), + (M = v(w) ? w : v(y) ? (y < M ? M : y + 10) : M), + 0 === b.length) + ) + return 'y2' === t ? r.y2.domain() : r.y.domain(); + if ( + (isNaN(x) && (x = 0), + isNaN(M) && (M = x), + x === M && (x < 0 ? (M = 0) : (x = 0)), + (h = x >= 0 && M >= 0), + (g = x <= 0 && M <= 0), + ((v(y) && h) || (v(w) && g)) && (S = !1), + S && (h && (x = 0), g && (M = 0)), + (s = u = 0.1 * (a = Math.abs(M - x))), + void 0 !== k && + ((M = k + (l = Math.max(Math.abs(x), Math.abs(M)))), (x = k - l)), + E) + ) + (f = r.getDataLabelLength(x, M, 'width')), + (d = c(r.y.range())), + (s += a * ((p = [f[0] / d, f[1] / d])[1] / (1 - p[0] - p[1]))), + (u += a * (p[0] / (1 - p[0] - p[1]))); + else if (A) { + f = r.getDataLabelLength(x, M, 'height'); + const e = r.getY( + o[`axis_${t}_type`], + [0, o.axis_rotated ? r.width : r.height], + [0, a] + ); + (s += e(f[1])), (u += e(f[0])); + } + return ( + 'y' === t && + _(o.axis_y_padding) && + ((s = r.axis.getPadding(o.axis_y_padding, 'top', s, a)), + (u = r.axis.getPadding(o.axis_y_padding, 'bottom', u, a))), + 'y2' === t && + _(o.axis_y2_padding) && + ((s = r.axis.getPadding(o.axis_y2_padding, 'top', s, a)), + (u = r.axis.getPadding(o.axis_y2_padding, 'bottom', u, a))), + S && (h && (u = x), g && (s = -M)), + (i = [x - u, M + s]), + O ? i.reverse() : i + ); + }), + (o.prototype.getXDomainMin = function(e) { + var t = this, + n = t.config; + return p(n.axis_x_min) + ? t.isTimeSeries() + ? this.parseDate(n.axis_x_min) + : n.axis_x_min + : t.d3.min(e, function(e) { + return t.d3.min(e.values, function(e) { + return e.x; }); - }), - (r.prototype.getXDomainMax = function(e) { - var t = this, - n = t.config; - return d(n.axis_x_max) - ? t.isTimeSeries() - ? this.parseDate(n.axis_x_max) - : n.axis_x_max - : t.d3.max(e, function(e) { - return t.d3.max(e.values, function(e) { - return e.x; - }); + }); + }), + (o.prototype.getXDomainMax = function(e) { + var t = this, + n = t.config; + return p(n.axis_x_max) + ? t.isTimeSeries() + ? this.parseDate(n.axis_x_max) + : n.axis_x_max + : t.d3.max(e, function(e) { + return t.d3.max(e.values, function(e) { + return e.x; }); - }), - (r.prototype.getXDomainPadding = function(t) { - var n, - r, - o, - i, - a = this.config, - s = t[1] - t[0]; - return ( - (r = this.isCategorized() - ? 0 - : this.hasType('bar') - ? (n = this.getMaxDataCount()) > 1 - ? s / (n - 1) / 2 - : 0.5 - : 0.01 * s), - 'object' === e(a.axis_x_padding) && v(a.axis_x_padding) - ? ((o = y(a.axis_x_padding.left) ? a.axis_x_padding.left : r), - (i = y(a.axis_x_padding.right) ? a.axis_x_padding.right : r)) - : (o = i = - 'number' == typeof a.axis_x_padding ? a.axis_x_padding : r), - { left: o, right: i } - ); - }), - (r.prototype.getXDomain = function(e) { - var t = this, - n = [t.getXDomainMin(e), t.getXDomainMax(e)], - r = n[0], - o = n[1], - i = t.getXDomainPadding(n), - a = 0, - s = 0; - return ( - r - o != 0 || - t.isCategorized() || - (t.isTimeSeries() - ? ((r = new Date(0.5 * r.getTime())), - (o = new Date(1.5 * o.getTime()))) - : ((r = 0 === r ? 1 : 0.5 * r), - (o = 0 === o ? -1 : 1.5 * o))), - (r || 0 === r) && - (a = t.isTimeSeries() - ? new Date(r.getTime() - i.left) - : r - i.left), - (o || 0 === o) && - (s = t.isTimeSeries() - ? new Date(o.getTime() + i.right) - : o + i.right), - [a, s] - ); - }), - (r.prototype.updateXDomain = function(e, t, n, r, o) { - var i = this, - a = i.config; - return ( - n && - (i.x.domain(o || i.d3.extent(i.getXDomain(e))), - (i.orgXDomain = i.x.domain()), - a.zoom_enabled && i.zoom.update(), - i.subX.domain(i.x.domain()), - i.brush && i.brush.updateScale(i.subX)), - t && - i.x.domain( - o || - (!i.brush || i.brush.empty() - ? i.orgXDomain - : i.brush.selectionAsValue()) - ), - r && i.x.domain(i.trimXDomain(i.x.orgDomain())), - i.x.domain() - ); - }), - (r.prototype.trimXDomain = function(e) { - var t = this.getZoomDomain(), - n = t[0], - r = t[1]; - return ( - e[0] <= n && ((e[1] = +e[1] + (n - e[0])), (e[0] = n)), - r <= e[1] && ((e[0] = +e[0] - (e[1] - r)), (e[1] = r)), - e - ); - }), - (r.prototype.drag = function(e) { - var t, - n, - r, - o, - i, - a, - s, - c, - l = this, - f = l.config, - d = l.main, - p = l.d3; - l.hasArcType() || - (f.data_selection_enabled && - f.data_selection_multiple && - ((t = l.dragStart[0]), - (n = l.dragStart[1]), - (r = e[0]), - (o = e[1]), - (i = Math.min(t, r)), - (a = Math.max(t, r)), - (s = f.data_selection_grouped ? l.margin.top : Math.min(n, o)), - (c = f.data_selection_grouped ? l.height : Math.max(n, o)), - d - .select('.' + M.dragarea) - .attr('x', i) - .attr('y', s) - .attr('width', a - i) - .attr('height', c - s), - d - .selectAll('.' + M.shapes) - .selectAll('.' + M.shape) - .filter(function(e) { - return f.data_selection_isselectable(e); - }) - .each(function(e, t) { - var n, - r, - o, - f, - d, - h, - g = p.select(this), - m = g.classed(M.SELECTED), - b = g.classed(M.INCLUDED), - y = !1; - if (g.classed(M.circle)) - (n = 1 * g.attr('cx')), - (r = 1 * g.attr('cy')), - (d = l.togglePoint), - (y = i < n && n < a && s < r && r < c); - else { - if (!g.classed(M.bar)) return; - (n = (h = u(this)).x), - (r = h.y), - (o = h.width), - (f = h.height), - (d = l.togglePath), - (y = !(a < n || n + o < i || c < r || r + f < s)); - } - y ^ b && - (g.classed(M.INCLUDED, !b), - g.classed(M.SELECTED, !m), - d.call(l, !m, g, e, t)); - }))); - }), - (r.prototype.dragstart = function(e) { - var t = this, - n = t.config; - t.hasArcType() || - (n.data_selection_enabled && - ((t.dragStart = e), - t.main - .select('.' + M.chart) - .append('rect') - .attr('class', M.dragarea) - .style('opacity', 0.1), - (t.dragging = !0))); - }), - (r.prototype.dragend = function() { - var e = this, - t = e.config; - e.hasArcType() || - (t.data_selection_enabled && - (e.main - .select('.' + M.dragarea) - .transition() - .duration(100) - .style('opacity', 0) - .remove(), - e.main.selectAll('.' + M.shape).classed(M.INCLUDED, !1), - (e.dragging = !1))); - }), - (r.prototype.getYFormat = function(e) { - var t = this, - n = - e && !t.hasType('gauge') ? t.defaultArcValueFormat : t.yFormat, - r = - e && !t.hasType('gauge') ? t.defaultArcValueFormat : t.y2Format; - return function(e, o, i) { - return ('y2' === t.axis.getId(i) ? r : n).call(t, e, o); - }; - }), - (r.prototype.yFormat = function(e) { - var t = this.config; - return (t.axis_y_tick_format - ? t.axis_y_tick_format - : this.defaultValueFormat)(e); - }), - (r.prototype.y2Format = function(e) { - var t = this.config; - return (t.axis_y2_tick_format - ? t.axis_y2_tick_format - : this.defaultValueFormat)(e); - }), - (r.prototype.defaultValueFormat = function(e) { - return y(e) ? +e : ''; - }), - (r.prototype.defaultArcValueFormat = function(e, t) { - return (100 * t).toFixed(1) + '%'; - }), - (r.prototype.dataLabelFormat = function(t) { - var n = this.config.data_labels, - r = function(e) { - return y(e) ? +e : ''; - }; - return 'function' == typeof n.format - ? n.format - : 'object' === e(n.format) - ? n.format[t] - ? !0 === n.format[t] - ? r - : n.format[t] - : function() { - return ''; - } - : r; - }), - (r.prototype.initGrid = function() { - var e = this, - t = e.config, - n = e.d3; - (e.grid = e.main - .append('g') - .attr('clip-path', e.clipPathForGrid) - .attr('class', M.grid)), - t.grid_x_show && e.grid.append('g').attr('class', M.xgrids), - t.grid_y_show && e.grid.append('g').attr('class', M.ygrids), - t.grid_focus_show && - e.grid - .append('g') - .attr('class', M.xgridFocus) - .append('line') - .attr('class', M.xgridFocus), - (e.xgrid = n.selectAll([])), - t.grid_lines_front || e.initGridLines(); - }), - (r.prototype.initGridLines = function() { - var e = this, - t = e.d3; - (e.gridLines = e.main - .append('g') - .attr('clip-path', e.clipPathForGrid) - .attr('class', M.grid + ' ' + M.gridLines)), - e.gridLines.append('g').attr('class', M.xgridLines), - e.gridLines.append('g').attr('class', M.ygridLines), - (e.xgridLines = t.selectAll([])); - }), - (r.prototype.updateXGrid = function(e) { - var t = this, - n = t.config, - r = t.d3, - o = t.generateGridData(n.grid_x_type, t.x), - i = t.isCategorized() ? t.xAxis.tickOffset() : 0; - (t.xgridAttr = n.axis_rotated - ? { - x1: 0, - x2: t.width, - y1: function(e) { - return t.x(e) - i; - }, - y2: function(e) { - return t.x(e) - i; - } - } - : { - x1: function(e) { - return t.x(e) + i; - }, - x2: function(e) { - return t.x(e) + i; - }, - y1: 0, - y2: t.height - }), - (t.xgridAttr.opacity = function() { - return +r.select(this).attr(n.axis_rotated ? 'y1' : 'x1') === - (n.axis_rotated ? t.height : 0) - ? 0 - : 1; }); - var a = t.main - .select('.' + M.xgrids) - .selectAll('.' + M.xgrid) - .data(o), - s = a - .enter() - .append('line') - .attr('class', M.xgrid) - .attr('x1', t.xgridAttr.x1) - .attr('x2', t.xgridAttr.x2) - .attr('y1', t.xgridAttr.y1) - .attr('y2', t.xgridAttr.y2) - .style('opacity', 0); - (t.xgrid = s.merge(a)), - e || - t.xgrid - .attr('x1', t.xgridAttr.x1) - .attr('x2', t.xgridAttr.x2) - .attr('y1', t.xgridAttr.y1) - .attr('y2', t.xgridAttr.y2) - .style('opacity', t.xgridAttr.opacity), - a.exit().remove(); - }), - (r.prototype.updateYGrid = function() { - var e = this, - t = e.config, - n = e.yAxis.tickValues() || e.y.ticks(t.grid_y_ticks), - r = e.main - .select('.' + M.ygrids) - .selectAll('.' + M.ygrid) - .data(n), - o = r - .enter() - .append('line') - .attr('class', M.ygrid); - (e.ygrid = o.merge(r)), - e.ygrid - .attr('x1', t.axis_rotated ? e.y : 0) - .attr('x2', t.axis_rotated ? e.y : e.width) - .attr('y1', t.axis_rotated ? 0 : e.y) - .attr('y2', t.axis_rotated ? e.height : e.y), - r.exit().remove(), - e.smoothLines(e.ygrid, 'grid'); - }), - (r.prototype.gridTextAnchor = function(e) { - return e.position ? e.position : 'end'; - }), - (r.prototype.gridTextDx = function(e) { - return 'start' === e.position - ? 4 - : 'middle' === e.position - ? 0 - : -4; - }), - (r.prototype.xGridTextX = function(e) { - return 'start' === e.position - ? -this.height - : 'middle' === e.position - ? -this.height / 2 - : 0; - }), - (r.prototype.yGridTextX = function(e) { - return 'start' === e.position + }), + (o.prototype.getXDomainPadding = function(e) { + var t, + n, + r, + o, + i = this.config, + a = e[1] - e[0]; + return ( + (n = this.isCategorized() ? 0 - : 'middle' === e.position - ? this.width / 2 - : this.width; - }), - (r.prototype.updateGrid = function(e) { - var t, - n, - r, - o, - i = this, - a = i.main, - s = i.config, - c = i.xv.bind(i), - u = i.yv.bind(i), - l = i.xGridTextX.bind(i), - f = i.yGridTextX.bind(i); - i.grid.style('visibility', i.hasArcType() ? 'hidden' : 'visible'), - a.select('line.' + M.xgridFocus).style('visibility', 'hidden'), - s.grid_x_show && i.updateXGrid(), - (n = (t = a - .select('.' + M.xgridLines) - .selectAll('.' + M.xgridLine) - .data(s.grid_x_lines)) - .enter() - .append('g') - .attr('class', function(e) { - return M.xgridLine + (e.class ? ' ' + e.class : ''); - })) - .append('line') - .attr('x1', s.axis_rotated ? 0 : c) - .attr('x2', s.axis_rotated ? i.width : c) - .attr('y1', s.axis_rotated ? c : 0) - .attr('y2', s.axis_rotated ? c : i.height) - .style('opacity', 0), - n - .append('text') - .attr('text-anchor', i.gridTextAnchor) - .attr('transform', s.axis_rotated ? '' : 'rotate(-90)') - .attr('x', s.axis_rotated ? f : l) - .attr('y', c) - .attr('dx', i.gridTextDx) - .attr('dy', -5) - .style('opacity', 0), - (i.xgridLines = n.merge(t)), - t - .exit() + : this.hasType('bar') + ? (t = this.getMaxDataCount()) > 1 + ? a / (t - 1) / 2 + : 0.5 + : 0.01 * a), + 'object' == typeof i.axis_x_padding && _(i.axis_x_padding) + ? ((r = v(i.axis_x_padding.left) ? i.axis_x_padding.left : n), + (o = v(i.axis_x_padding.right) ? i.axis_x_padding.right : n)) + : (r = o = + 'number' == typeof i.axis_x_padding ? i.axis_x_padding : n), + { left: r, right: o } + ); + }), + (o.prototype.getXDomain = function(e) { + var t = this, + n = [t.getXDomainMin(e), t.getXDomainMax(e)], + r = n[0], + o = n[1], + i = t.getXDomainPadding(n), + a = 0, + s = 0; + return ( + r - o != 0 || + t.isCategorized() || + (t.isTimeSeries() + ? ((r = new Date(0.5 * r.getTime())), + (o = new Date(1.5 * o.getTime()))) + : ((r = 0 === r ? 1 : 0.5 * r), (o = 0 === o ? -1 : 1.5 * o))), + (r || 0 === r) && + (a = t.isTimeSeries() + ? new Date(r.getTime() - i.left) + : r - i.left), + (o || 0 === o) && + (s = t.isTimeSeries() + ? new Date(o.getTime() + i.right) + : o + i.right), + [a, s] + ); + }), + (o.prototype.updateXDomain = function(e, t, n, r, o) { + var i = this, + a = i.config; + return ( + n && + (i.x.domain(o || i.d3.extent(i.getXDomain(e))), + (i.orgXDomain = i.x.domain()), + a.zoom_enabled && i.zoom.update(), + i.subX.domain(i.x.domain()), + i.brush && i.brush.updateScale(i.subX)), + t && + i.x.domain( + o || + (!i.brush || i.brush.empty() + ? i.orgXDomain + : i.brush.selectionAsValue()) + ), + r && i.x.domain(i.trimXDomain(i.x.orgDomain())), + i.x.domain() + ); + }), + (o.prototype.trimXDomain = function(e) { + var t = this.getZoomDomain(), + n = t[0], + r = t[1]; + return ( + e[0] <= n && ((e[1] = +e[1] + (n - e[0])), (e[0] = n)), + r <= e[1] && ((e[0] = +e[0] - (e[1] - r)), (e[1] = r)), + e + ); + }), + (o.prototype.drag = function(e) { + var t, + n, + r, + o, + i, + a, + s, + c, + u = this, + f = u.config, + d = u.main, + p = u.d3; + u.hasArcType() || + (f.data_selection_enabled && + f.data_selection_multiple && + ((t = u.dragStart[0]), + (n = u.dragStart[1]), + (r = e[0]), + (o = e[1]), + (i = Math.min(t, r)), + (a = Math.max(t, r)), + (s = f.data_selection_grouped ? u.margin.top : Math.min(n, o)), + (c = f.data_selection_grouped ? u.height : Math.max(n, o)), + d + .select('.' + M.dragarea) + .attr('x', i) + .attr('y', s) + .attr('width', a - i) + .attr('height', c - s), + d + .selectAll('.' + M.shapes) + .selectAll('.' + M.shape) + .filter(function(e) { + return f.data_selection_isselectable(e); + }) + .each(function(e, t) { + var n, + r, + o, + f, + d, + h, + g = p.select(this), + m = g.classed(M.SELECTED), + b = g.classed(M.INCLUDED), + y = !1; + if (g.classed(M.circle)) + (n = 1 * g.attr('cx')), + (r = 1 * g.attr('cy')), + (d = u.togglePoint), + (y = i < n && n < a && s < r && r < c); + else { + if (!g.classed(M.bar)) return; + (n = (h = l(this)).x), + (r = h.y), + (o = h.width), + (f = h.height), + (d = u.togglePath), + (y = !(a < n || n + o < i || c < r || r + f < s)); + } + y ^ b && + (g.classed(M.INCLUDED, !b), + g.classed(M.SELECTED, !m), + d.call(u, !m, g, e, t)); + }))); + }), + (o.prototype.dragstart = function(e) { + var t = this, + n = t.config; + t.hasArcType() || + (n.data_selection_enabled && + ((t.dragStart = e), + t.main + .select('.' + M.chart) + .append('rect') + .attr('class', M.dragarea) + .style('opacity', 0.1), + (t.dragging = !0))); + }), + (o.prototype.dragend = function() { + var e = this, + t = e.config; + e.hasArcType() || + (t.data_selection_enabled && + (e.main + .select('.' + M.dragarea) .transition() - .duration(e) + .duration(100) .style('opacity', 0) .remove(), - s.grid_y_show && i.updateYGrid(), - (o = (r = a - .select('.' + M.ygridLines) - .selectAll('.' + M.ygridLine) - .data(s.grid_y_lines)) - .enter() + e.main.selectAll('.' + M.shape).classed(M.INCLUDED, !1), + (e.dragging = !1))); + }), + (o.prototype.getYFormat = function(e) { + var t = this, + n = e && !t.hasType('gauge') ? t.defaultArcValueFormat : t.yFormat, + r = e && !t.hasType('gauge') ? t.defaultArcValueFormat : t.y2Format; + return function(e, o, i) { + return ('y2' === t.axis.getId(i) ? r : n).call(t, e, o); + }; + }), + (o.prototype.yFormat = function(e) { + var t = this.config; + return (t.axis_y_tick_format + ? t.axis_y_tick_format + : this.defaultValueFormat)(e); + }), + (o.prototype.y2Format = function(e) { + var t = this.config; + return (t.axis_y2_tick_format + ? t.axis_y2_tick_format + : this.defaultValueFormat)(e); + }), + (o.prototype.defaultValueFormat = function(e) { + return v(e) ? +e : ''; + }), + (o.prototype.defaultArcValueFormat = function(e, t) { + return (100 * t).toFixed(1) + '%'; + }), + (o.prototype.dataLabelFormat = function(e) { + var t = this.config.data_labels, + n = function(e) { + return v(e) ? +e : ''; + }; + return 'function' == typeof t.format + ? t.format + : 'object' == typeof t.format + ? t.format[e] + ? !0 === t.format[e] + ? n + : t.format[e] + : function() { + return ''; + } + : n; + }), + (o.prototype.initGrid = function() { + var e = this, + t = e.config, + n = e.d3; + (e.grid = e.main + .append('g') + .attr('clip-path', e.clipPathForGrid) + .attr('class', M.grid)), + t.grid_x_show && e.grid.append('g').attr('class', M.xgrids), + t.grid_y_show && e.grid.append('g').attr('class', M.ygrids), + t.grid_focus_show && + e.grid .append('g') - .attr('class', function(e) { - return M.ygridLine + (e.class ? ' ' + e.class : ''); - })) + .attr('class', M.xgridFocus) .append('line') - .attr('x1', s.axis_rotated ? u : 0) - .attr('x2', s.axis_rotated ? u : i.width) - .attr('y1', s.axis_rotated ? 0 : u) - .attr('y2', s.axis_rotated ? i.height : u) - .style('opacity', 0), - o - .append('text') - .attr('text-anchor', i.gridTextAnchor) - .attr('transform', s.axis_rotated ? 'rotate(-90)' : '') - .attr('x', s.axis_rotated ? l : f) - .attr('y', u) - .attr('dx', i.gridTextDx) - .attr('dy', -5) - .style('opacity', 0), - (i.ygridLines = o.merge(r)), - i.ygridLines - .select('line') - .transition() - .duration(e) - .attr('x1', s.axis_rotated ? u : 0) - .attr('x2', s.axis_rotated ? u : i.width) - .attr('y1', s.axis_rotated ? 0 : u) - .attr('y2', s.axis_rotated ? i.height : u) - .style('opacity', 1), - i.ygridLines - .select('text') - .transition() - .duration(e) - .attr( - 'x', - s.axis_rotated ? i.xGridTextX.bind(i) : i.yGridTextX.bind(i) - ) - .attr('y', u) - .text(function(e) { - return e.text; - }) - .style('opacity', 1), - r - .exit() - .transition() - .duration(e) - .style('opacity', 0) - .remove(); - }), - (r.prototype.redrawGrid = function(e, t) { - var n = this, - r = n.config, - o = n.xv.bind(n), - i = n.xgridLines.select('line'), - a = n.xgridLines.select('text'); - return [ - (e ? i.transition(t) : i) - .attr('x1', r.axis_rotated ? 0 : o) - .attr('x2', r.axis_rotated ? n.width : o) - .attr('y1', r.axis_rotated ? o : 0) - .attr('y2', r.axis_rotated ? o : n.height) - .style('opacity', 1), - (e ? a.transition(t) : a) - .attr( - 'x', - r.axis_rotated ? n.yGridTextX.bind(n) : n.xGridTextX.bind(n) - ) - .attr('y', o) - .text(function(e) { - return e.text; - }) - .style('opacity', 1) - ]; - }), - (r.prototype.showXGridFocus = function(e) { - var t = this, - n = t.config, - r = e.filter(function(e) { - return e && y(e.value); - }), - o = t.main.selectAll('line.' + M.xgridFocus), - i = t.xx.bind(t); - n.tooltip_show && - (t.hasType('stanford') || - t.hasArcType() || - (o - .style('visibility', 'visible') - .data([r[0]]) - .attr(n.axis_rotated ? 'y1' : 'x1', i) - .attr(n.axis_rotated ? 'y2' : 'x2', i), - t.smoothLines(o, 'grid'))); - }), - (r.prototype.hideXGridFocus = function() { - this.main - .select('line.' + M.xgridFocus) - .style('visibility', 'hidden'); - }), - (r.prototype.updateXgridFocus = function() { - var e = this.config; - this.main - .select('line.' + M.xgridFocus) - .attr('x1', e.axis_rotated ? 0 : -10) - .attr('x2', e.axis_rotated ? this.width : -10) - .attr('y1', e.axis_rotated ? -10 : 0) - .attr('y2', e.axis_rotated ? -10 : this.height); - }), - (r.prototype.generateGridData = function(e, t) { - var n, - r, - o, - i, - a = [], - s = this.main - .select('.' + M.axisX) - .selectAll('.tick') - .size(); - if ('year' === e) - for ( - r = (n = this.getXDomain())[0].getFullYear(), - o = n[1].getFullYear(), - i = r; - i <= o; - i++ - ) - a.push(new Date(i + '-01-01 00:00:00')); - else - (a = t.ticks(10)).length > s && - (a = a.filter(function(e) { - return ('' + e).indexOf('.') < 0; - })); - return a; - }), - (r.prototype.getGridFilterToRemove = function(e) { - return e - ? function(t) { - var n = !1; - return ( - [].concat(e).forEach(function(e) { - (('value' in e && t.value === e.value) || - ('class' in e && t.class === e.class)) && - (n = !0); - }), - n - ); - } - : function() { - return !0; - }; - }), - (r.prototype.removeGridLines = function(e, t) { - var n = this.config, - r = this.getGridFilterToRemove(e), - o = function(e) { - return !r(e); - }, - i = t ? M.xgridLines : M.ygridLines, - a = t ? M.xgridLine : M.ygridLine; - this.main - .select('.' + i) - .selectAll('.' + a) - .filter(r) + .attr('class', M.xgridFocus), + (e.xgrid = n.selectAll([])), + t.grid_lines_front || e.initGridLines(); + }), + (o.prototype.initGridLines = function() { + var e = this, + t = e.d3; + (e.gridLines = e.main + .append('g') + .attr('clip-path', e.clipPathForGrid) + .attr('class', M.grid + ' ' + M.gridLines)), + e.gridLines.append('g').attr('class', M.xgridLines), + e.gridLines.append('g').attr('class', M.ygridLines), + (e.xgridLines = t.selectAll([])); + }), + (o.prototype.updateXGrid = function(e) { + var t = this, + n = t.config, + r = t.d3, + o = t.generateGridData(n.grid_x_type, t.x), + i = t.isCategorized() ? t.xAxis.tickOffset() : 0; + (t.xgridAttr = n.axis_rotated + ? { + x1: 0, + x2: t.width, + y1: function(e) { + return t.x(e) - i; + }, + y2: function(e) { + return t.x(e) - i; + } + } + : { + x1: function(e) { + return t.x(e) + i; + }, + x2: function(e) { + return t.x(e) + i; + }, + y1: 0, + y2: t.height + }), + (t.xgridAttr.opacity = function() { + return +r.select(this).attr(n.axis_rotated ? 'y1' : 'x1') === + (n.axis_rotated ? t.height : 0) + ? 0 + : 1; + }); + var a = t.main + .select('.' + M.xgrids) + .selectAll('.' + M.xgrid) + .data(o), + s = a + .enter() + .append('line') + .attr('class', M.xgrid) + .attr('x1', t.xgridAttr.x1) + .attr('x2', t.xgridAttr.x2) + .attr('y1', t.xgridAttr.y1) + .attr('y2', t.xgridAttr.y2) + .style('opacity', 0); + (t.xgrid = s.merge(a)), + e || + t.xgrid + .attr('x1', t.xgridAttr.x1) + .attr('x2', t.xgridAttr.x2) + .attr('y1', t.xgridAttr.y1) + .attr('y2', t.xgridAttr.y2) + .style('opacity', t.xgridAttr.opacity), + a.exit().remove(); + }), + (o.prototype.updateYGrid = function() { + var e = this, + t = e.config, + n = e.yAxis.tickValues() || e.y.ticks(t.grid_y_ticks), + r = e.main + .select('.' + M.ygrids) + .selectAll('.' + M.ygrid) + .data(n), + o = r + .enter() + .append('line') + .attr('class', M.ygrid); + (e.ygrid = o.merge(r)), + e.ygrid + .attr('x1', t.axis_rotated ? e.y : 0) + .attr('x2', t.axis_rotated ? e.y : e.width) + .attr('y1', t.axis_rotated ? 0 : e.y) + .attr('y2', t.axis_rotated ? e.height : e.y), + r.exit().remove(), + e.smoothLines(e.ygrid, 'grid'); + }), + (o.prototype.gridTextAnchor = function(e) { + return e.position ? e.position : 'end'; + }), + (o.prototype.gridTextDx = function(e) { + return 'start' === e.position ? 4 : 'middle' === e.position ? 0 : -4; + }), + (o.prototype.xGridTextX = function(e) { + return 'start' === e.position + ? -this.height + : 'middle' === e.position + ? -this.height / 2 + : 0; + }), + (o.prototype.yGridTextX = function(e) { + return 'start' === e.position + ? 0 + : 'middle' === e.position + ? this.width / 2 + : this.width; + }), + (o.prototype.updateGrid = function(e) { + var t, + n, + r, + o, + i = this, + a = i.main, + s = i.config, + c = i.xv.bind(i), + u = i.yv.bind(i), + l = i.xGridTextX.bind(i), + f = i.yGridTextX.bind(i); + i.grid.style('visibility', i.hasArcType() ? 'hidden' : 'visible'), + a.select('line.' + M.xgridFocus).style('visibility', 'hidden'), + s.grid_x_show && i.updateXGrid(), + (n = (t = a + .select('.' + M.xgridLines) + .selectAll('.' + M.xgridLine) + .data(s.grid_x_lines)) + .enter() + .append('g') + .attr('class', function(e) { + return M.xgridLine + (e.class ? ' ' + e.class : ''); + })) + .append('line') + .attr('x1', s.axis_rotated ? 0 : c) + .attr('x2', s.axis_rotated ? i.width : c) + .attr('y1', s.axis_rotated ? c : 0) + .attr('y2', s.axis_rotated ? c : i.height) + .style('opacity', 0), + n + .append('text') + .attr('text-anchor', i.gridTextAnchor) + .attr('transform', s.axis_rotated ? '' : 'rotate(-90)') + .attr('x', s.axis_rotated ? f : l) + .attr('y', c) + .attr('dx', i.gridTextDx) + .attr('dy', -5) + .style('opacity', 0), + (i.xgridLines = n.merge(t)), + t + .exit() .transition() - .duration(n.transition_duration) + .duration(e) .style('opacity', 0) .remove(), - t - ? (n.grid_x_lines = n.grid_x_lines.filter(o)) - : (n.grid_y_lines = n.grid_y_lines.filter(o)); - }), - (r.prototype.initEventRect = function() { - var e = this, - t = e.config; - e.main - .select('.' + M.chart) + s.grid_y_show && i.updateYGrid(), + (o = (r = a + .select('.' + M.ygridLines) + .selectAll('.' + M.ygridLine) + .data(s.grid_y_lines)) + .enter() .append('g') - .attr('class', M.eventRects) - .style('fill-opacity', 0), - (e.eventRect = e.main - .select('.' + M.eventRects) - .append('rect') - .attr('class', M.eventRect)), - t.zoom_enabled && - e.zoom && - (e.eventRect.call(e.zoom).on('dblclick.zoom', null), - t.zoom_initialRange && - e.eventRect - .transition() - .duration(0) - .call( - e.zoom.transform, - e.zoomTransform(t.zoom_initialRange) - )); - }), - (r.prototype.redrawEventRect = function() { - var e = this, - t = e.d3, - n = e.config; - function r() { - e.svg.select('.' + M.eventRect).style('cursor', null), - e.hideXGridFocus(), - e.hideTooltip(), - e.unexpandCircles(), - e.unexpandBars(); - } - var o = function(t, r) { + .attr('class', function(e) { + return M.ygridLine + (e.class ? ' ' + e.class : ''); + })) + .append('line') + .attr('x1', s.axis_rotated ? u : 0) + .attr('x2', s.axis_rotated ? u : i.width) + .attr('y1', s.axis_rotated ? 0 : u) + .attr('y2', s.axis_rotated ? i.height : u) + .style('opacity', 0), + o + .append('text') + .attr('text-anchor', i.gridTextAnchor) + .attr('transform', s.axis_rotated ? 'rotate(-90)' : '') + .attr('x', s.axis_rotated ? l : f) + .attr('y', u) + .attr('dx', i.gridTextDx) + .attr('dy', -5) + .style('opacity', 0), + (i.ygridLines = o.merge(r)), + i.ygridLines + .select('line') + .transition() + .duration(e) + .attr('x1', s.axis_rotated ? u : 0) + .attr('x2', s.axis_rotated ? u : i.width) + .attr('y1', s.axis_rotated ? 0 : u) + .attr('y2', s.axis_rotated ? i.height : u) + .style('opacity', 1), + i.ygridLines + .select('text') + .transition() + .duration(e) + .attr( + 'x', + s.axis_rotated ? i.xGridTextX.bind(i) : i.yGridTextX.bind(i) + ) + .attr('y', u) + .text(function(e) { + return e.text; + }) + .style('opacity', 1), + r + .exit() + .transition() + .duration(e) + .style('opacity', 0) + .remove(); + }), + (o.prototype.redrawGrid = function(e, t) { + var n = this, + r = n.config, + o = n.xv.bind(n), + i = n.xgridLines.select('line'), + a = n.xgridLines.select('text'); + return [ + (e ? i.transition(t) : i) + .attr('x1', r.axis_rotated ? 0 : o) + .attr('x2', r.axis_rotated ? n.width : o) + .attr('y1', r.axis_rotated ? o : 0) + .attr('y2', r.axis_rotated ? o : n.height) + .style('opacity', 1), + (e ? a.transition(t) : a) + .attr( + 'x', + r.axis_rotated ? n.yGridTextX.bind(n) : n.xGridTextX.bind(n) + ) + .attr('y', o) + .text(function(e) { + return e.text; + }) + .style('opacity', 1) + ]; + }), + (o.prototype.showXGridFocus = function(e) { + var t = this, + n = t.config, + r = e.filter(function(e) { + return e && v(e.value); + }), + o = t.main.selectAll('line.' + M.xgridFocus), + i = t.xx.bind(t); + n.tooltip_show && + (t.hasType('stanford') || + t.hasArcType() || + (o + .style('visibility', 'visible') + .data([r[0]]) + .attr(n.axis_rotated ? 'y1' : 'x1', i) + .attr(n.axis_rotated ? 'y2' : 'x2', i), + t.smoothLines(o, 'grid'))); + }), + (o.prototype.hideXGridFocus = function() { + this.main + .select('line.' + M.xgridFocus) + .style('visibility', 'hidden'); + }), + (o.prototype.updateXgridFocus = function() { + var e = this.config; + this.main + .select('line.' + M.xgridFocus) + .attr('x1', e.axis_rotated ? 0 : -10) + .attr('x2', e.axis_rotated ? this.width : -10) + .attr('y1', e.axis_rotated ? -10 : 0) + .attr('y2', e.axis_rotated ? -10 : this.height); + }), + (o.prototype.generateGridData = function(e, t) { + var n, + r, + o, + i, + a = [], + s = this.main + .select('.' + M.axisX) + .selectAll('.tick') + .size(); + if ('year' === e) + for ( + r = (n = this.getXDomain())[0].getFullYear(), + o = n[1].getFullYear(), + i = r; + i <= o; + i++ + ) + a.push(new Date(i + '-01-01 00:00:00')); + else + (a = t.ticks(10)).length > s && + (a = a.filter(function(e) { + return ('' + e).indexOf('.') < 0; + })); + return a; + }), + (o.prototype.getGridFilterToRemove = function(e) { + return e + ? function(t) { + var n = !1; return ( - r && (e.isBarType(r.id) || e.dist(r, t) < n.point_sensitivity) + [].concat(e).forEach(function(e) { + (('value' in e && t.value === e.value) || + ('class' in e && t.class === e.class)) && + (n = !0); + }), + n ); - }, - i = function(t) { - return t ? e.addName(Object.assign({}, t)) : null; + } + : function() { + return !0; }; - e.main + }), + (o.prototype.removeGridLines = function(e, t) { + var n = this.config, + r = this.getGridFilterToRemove(e), + o = function(e) { + return !r(e); + }, + i = t ? M.xgridLines : M.ygridLines, + a = t ? M.xgridLine : M.ygridLine; + this.main + .select('.' + i) + .selectAll('.' + a) + .filter(r) + .transition() + .duration(n.transition_duration) + .style('opacity', 0) + .remove(), + t + ? (n.grid_x_lines = n.grid_x_lines.filter(o)) + : (n.grid_y_lines = n.grid_y_lines.filter(o)); + }), + (o.prototype.initEventRect = function() { + var e = this, + t = e.config; + e.main + .select('.' + M.chart) + .append('g') + .attr('class', M.eventRects) + .style('fill-opacity', 0), + (e.eventRect = e.main .select('.' + M.eventRects) - .style( - 'cursor', - n.zoom_enabled - ? n.axis_rotated - ? 'ns-resize' - : 'ew-resize' + .append('rect') + .attr('class', M.eventRect)), + t.zoom_enabled && + e.zoom && + (e.eventRect.call(e.zoom).on('dblclick.zoom', null), + t.zoom_initialRange && + e.eventRect + .transition() + .duration(0) + .call( + e.zoom.transform, + e.zoomTransform(t.zoom_initialRange) + )); + }), + (o.prototype.redrawEventRect = function() { + const e = this, + t = e.d3, + n = e.config; + function r() { + e.svg.select('.' + M.eventRect).style('cursor', null), + e.hideXGridFocus(), + e.hideTooltip(), + e.unexpandCircles(), + e.unexpandBars(); + } + const o = (t, r) => + r && (e.isBarType(r.id) || e.dist(r, t) < n.point_sensitivity), + i = t => (t ? e.addName(Object.assign({}, t)) : null); + e.main + .select('.' + M.eventRects) + .style( + 'cursor', + n.zoom_enabled + ? n.axis_rotated + ? 'ns-resize' + : 'ew-resize' + : null + ), + e.eventRect + .attr('x', 0) + .attr('y', 0) + .attr('width', e.width) + .attr('height', e.height) + .on( + 'mouseout', + n.interaction_enabled + ? function() { + n && + (e.hasArcType() || + (e.mouseover && + (n.data_onmouseout.call(e.api, e.mouseover), + (e.mouseover = void 0)), + r())); + } : null - ), - e.eventRect - .attr('x', 0) - .attr('y', 0) - .attr('width', e.width) - .attr('height', e.height) - .on( - 'mouseout', - n.interaction_enabled - ? function() { - n && - (e.hasArcType() || - (e.mouseover && - (n.data_onmouseout.call(e.api, e.mouseover), - (e.mouseover = void 0)), - r())); - } - : null - ) - .on( - 'mousemove', - n.interaction_enabled - ? function() { - if (!e.dragging) { - var a = e.getTargetsToShow(); - if (!e.hasArcType(a)) { - var s, - c = t.mouse(this), - u = i(e.findClosestFromTargets(a, c)), - l = o(c, u); - if ( - (!e.mouseover || - (u && - u.id === e.mouseover.id && - u.index === e.mouseover.index) || - (n.data_onmouseout.call(e.api, e.mouseover), - (e.mouseover = void 0)), - u && - !e.mouseover && - (n.data_onmouseover.call(e.api, u), - (e.mouseover = u)), - e.svg - .select('.' + M.eventRect) - .style('cursor', l ? 'pointer' : null), - !n.tooltip_grouped || e.hasType('stanford', a)) + ) + .on( + 'mousemove', + n.interaction_enabled + ? function() { + if (e.dragging) return; + const a = e.getTargetsToShow(); + if (e.hasArcType(a)) return; + const s = t.mouse(this), + c = i(e.findClosestFromTargets(a, s)), + u = o(s, c); + let l; + if ( + (!e.mouseover || + (c && + c.id === e.mouseover.id && + c.index === e.mouseover.index) || + (n.data_onmouseout.call(e.api, e.mouseover), + (e.mouseover = void 0)), + c && + !e.mouseover && + (n.data_onmouseover.call(e.api, c), + (e.mouseover = c)), + e.svg + .select('.' + M.eventRect) + .style('cursor', u ? 'pointer' : null), + !n.tooltip_grouped || e.hasType('stanford', a)) + ) + c && (l = [c]); + else { + let t; + if (c) t = c; + else { + const r = n.axis_rotated ? s[1] : s[0]; + t = e.findClosestFromTargetsByX(a, e.x.invert(r)); + } + t && (l = e.filterByX(a, t.x)); + } + if (!l || 0 === l.length) return r(); + (l = l.map(i)), + e.showTooltip(l, this), + n.point_focus_expand_enabled && + (e.unexpandCircles(), + l.forEach(function(t) { + e.expandCircles(t.index, t.id, !1); + })), + e.unexpandBars(), + l.forEach(function(t) { + e.expandBars(t.index, t.id, !1); + }), + e.showXGridFocus(l); + } + : null + ) + .on( + 'click', + n.interaction_enabled + ? function() { + const r = e.getTargetsToShow(); + if (e.hasArcType(r)) return; + const a = t.mouse(this), + s = i(e.findClosestFromTargets(r, a)); + if (!o(a, s)) return; + let c; + if ( + ((c = + !n.data_selection_grouped || e.isStanfordType(s) + ? [s] + : e.filterByX(r, s.x)).forEach(function(t) { + e.main + .selectAll( + '.' + M.shapes + e.getTargetSelectorSuffix(t.id) ) - u && (s = [u]); - else { - var f; - if (u) f = u; - else { - var d = n.axis_rotated ? c[1] : c[0]; - f = e.findClosestFromTargetsByX( - a, - e.x.invert(d) - ); - } - f && (s = e.filterByX(a, f.x)); - } - if (!s || 0 === s.length) return r(); - (s = s.map(i)), - e.showTooltip(s, this), - n.point_focus_expand_enabled && - (e.unexpandCircles(), - s.forEach(function(t) { - e.expandCircles(t.index, t.id, !1); - })), - e.unexpandBars(), - s.forEach(function(t) { - e.expandBars(t.index, t.id, !1); - }), - e.showXGridFocus(s); - } - } - } - : null - ) - .on( - 'click', - n.interaction_enabled - ? function() { - var r = e.getTargetsToShow(); - if (!e.hasArcType(r)) { - var a = t.mouse(this), - s = i(e.findClosestFromTargets(r, a)); - if ( - o(a, s) && - ((!n.data_selection_grouped || e.isStanfordType(s) - ? [s] - : e.filterByX(r, s.x) - ).forEach(function(t) { - e.main - .selectAll( - '.' + - M.shapes + - e.getTargetSelectorSuffix(t.id) - ) - .selectAll('.' + M.shape + '-' + t.index) - .each(function() { - (n.data_selection_grouped || - e.isWithinShape(this, t)) && - e.toggleShape(this, t, t.index); - }); - }), - s) - ) { - var c = e.main - .selectAll( - '.' + M.shapes + e.getTargetSelectorSuffix(s.id) - ) - .select('.' + M.shape + '-' + s.index); - n.data_onclick.call(e.api, s, c.node()); - } - } + .selectAll('.' + M.shape + '-' + t.index) + .each(function() { + (n.data_selection_grouped || + e.isWithinShape(this, t)) && + e.toggleShape(this, t, t.index); + }); + }), + s) + ) { + const t = e.main + .selectAll( + '.' + M.shapes + e.getTargetSelectorSuffix(s.id) + ) + .select('.' + M.shape + '-' + s.index); + n.data_onclick.call(e.api, s, t.node()); } - : null - ) - .call( - n.interaction_enabled && n.data_selection_draggable && e.drag - ? t - .drag() - .on('drag', function() { - e.drag(t.mouse(this)); - }) - .on('start', function() { - e.dragstart(t.mouse(this)); - }) - .on('end', function() { - e.dragend(); - }) - : function() {} - ); - }), - (r.prototype.getMousePosition = function(e) { - return [this.x(e.x), this.getYScale(e.id)(e.value)]; - }), - (r.prototype.dispatchEvent = function(e, t) { - var n = '.' + M.eventRect, - r = this.main.select(n).node(), - o = r.getBoundingClientRect(), - i = o.left + (t ? t[0] : 0), - a = o.top + (t ? t[1] : 0), - s = document.createEvent('MouseEvents'); - s.initMouseEvent( - e, - !0, - !0, - window, - 0, - i, - a, - i, - a, - !1, - !1, - !1, - !1, - 0, - null - ), - r.dispatchEvent(s); - }), - (r.prototype.initLegend = function() { - var e = this; - if ( - ((e.legendItemTextBox = {}), - (e.legendHasRendered = !1), - (e.legend = e.svg - .append('g') - .attr('transform', e.getTranslate('legend'))), - !e.config.legend_show) - ) - return ( - e.legend.style('visibility', 'hidden'), - void (e.hiddenLegendIds = e.mapToIds(e.data.targets)) + } + : null + ) + .call( + n.interaction_enabled && n.data_selection_draggable && e.drag + ? t + .drag() + .on('drag', function() { + e.drag(t.mouse(this)); + }) + .on('start', function() { + e.dragstart(t.mouse(this)); + }) + .on('end', function() { + e.dragend(); + }) + : function() {} ); - e.updateLegendWithDefaults(); - }), - (r.prototype.updateLegendWithDefaults = function() { - this.updateLegend(this.mapToIds(this.data.targets), { - withTransform: !1, - withTransitionForTransform: !1, - withTransition: !1 - }); - }), - (r.prototype.updateSizeForLegend = function(e, t) { - var n = this, - r = n.config, - o = { - top: n.isLegendTop - ? n.getCurrentPaddingTop() + r.legend_inset_y + 5.5 - : n.currentHeight - - e - - n.getCurrentPaddingBottom() - - r.legend_inset_y, - left: n.isLegendLeft - ? n.getCurrentPaddingLeft() + r.legend_inset_x + 0.5 - : n.currentWidth - - t - - n.getCurrentPaddingRight() - - r.legend_inset_x + - 0.5 - }; - n.margin3 = { - top: n.isLegendRight - ? 0 - : n.isLegendInset - ? o.top - : n.currentHeight - e, - right: NaN, - bottom: 0, - left: n.isLegendRight - ? n.currentWidth - t - : n.isLegendInset - ? o.left - : 0 - }; - }), - (r.prototype.transformLegend = function(e) { - (e ? this.legend.transition() : this.legend).attr( - 'transform', - this.getTranslate('legend') - ); - }), - (r.prototype.updateLegendStep = function(e) { - this.legendStep = e; - }), - (r.prototype.updateLegendItemWidth = function(e) { - this.legendItemWidth = e; - }), - (r.prototype.updateLegendItemHeight = function(e) { - this.legendItemHeight = e; - }), - (r.prototype.getLegendWidth = function() { - var e = this; - return e.config.legend_show - ? e.isLegendRight || e.isLegendInset - ? e.legendItemWidth * (e.legendStep + 1) - : e.currentWidth - : 0; - }), - (r.prototype.getLegendHeight = function() { - var e = this, - t = 0; + }), + (o.prototype.getMousePosition = function(e) { + return [this.x(e.x), this.getYScale(e.id)(e.value)]; + }), + (o.prototype.dispatchEvent = function(e, t) { + var n = '.' + M.eventRect, + r = this.main.select(n).node(), + o = r.getBoundingClientRect(), + i = o.left + (t ? t[0] : 0), + a = o.top + (t ? t[1] : 0), + s = document.createEvent('MouseEvents'); + s.initMouseEvent( + e, + !0, + !0, + window, + 0, + i, + a, + i, + a, + !1, + !1, + !1, + !1, + 0, + null + ), + r.dispatchEvent(s); + }), + (o.prototype.initLegend = function() { + var e = this; + if ( + ((e.legendItemTextBox = {}), + (e.legendHasRendered = !1), + (e.legend = e.svg + .append('g') + .attr('transform', e.getTranslate('legend'))), + !e.config.legend_show) + ) return ( - e.config.legend_show && - (t = e.isLegendRight - ? e.currentHeight - : Math.max(20, e.legendItemHeight) * (e.legendStep + 1)), - t + e.legend.style('visibility', 'hidden'), + void (e.hiddenLegendIds = e.mapToIds(e.data.targets)) ); - }), - (r.prototype.opacityForLegend = function(e) { - return e.classed(M.legendItemHidden) ? null : 1; - }), - (r.prototype.opacityForUnfocusedLegend = function(e) { - return e.classed(M.legendItemHidden) ? null : 0.3; - }), - (r.prototype.toggleFocusLegend = function(e, t) { - var n = this; - (e = n.mapToTargetIds(e)), - n.legend - .selectAll('.' + M.legendItem) - .filter(function(t) { - return e.indexOf(t) >= 0; - }) - .classed(M.legendItemFocused, t) - .transition() - .duration(100) - .style('opacity', function() { - return (t - ? n.opacityForLegend - : n.opacityForUnfocusedLegend - ).call(n, n.d3.select(this)); - }); - }), - (r.prototype.revertLegend = function() { - var e = this, - t = e.d3; - e.legend + e.updateLegendWithDefaults(); + }), + (o.prototype.updateLegendWithDefaults = function() { + this.updateLegend(this.mapToIds(this.data.targets), { + withTransform: !1, + withTransitionForTransform: !1, + withTransition: !1 + }); + }), + (o.prototype.updateSizeForLegend = function(e, t) { + var n = this, + r = n.config, + o = { + top: n.isLegendTop + ? n.getCurrentPaddingTop() + r.legend_inset_y + 5.5 + : n.currentHeight - + e - + n.getCurrentPaddingBottom() - + r.legend_inset_y, + left: n.isLegendLeft + ? n.getCurrentPaddingLeft() + r.legend_inset_x + 0.5 + : n.currentWidth - + t - + n.getCurrentPaddingRight() - + r.legend_inset_x + + 0.5 + }; + n.margin3 = { + top: n.isLegendRight + ? 0 + : n.isLegendInset + ? o.top + : n.currentHeight - e, + right: NaN, + bottom: 0, + left: n.isLegendRight + ? n.currentWidth - t + : n.isLegendInset + ? o.left + : 0 + }; + }), + (o.prototype.transformLegend = function(e) { + (e ? this.legend.transition() : this.legend).attr( + 'transform', + this.getTranslate('legend') + ); + }), + (o.prototype.updateLegendStep = function(e) { + this.legendStep = e; + }), + (o.prototype.updateLegendItemWidth = function(e) { + this.legendItemWidth = e; + }), + (o.prototype.updateLegendItemHeight = function(e) { + this.legendItemHeight = e; + }), + (o.prototype.getLegendWidth = function() { + var e = this; + return e.config.legend_show + ? e.isLegendRight || e.isLegendInset + ? e.legendItemWidth * (e.legendStep + 1) + : e.currentWidth + : 0; + }), + (o.prototype.getLegendHeight = function() { + var e = this, + t = 0; + return ( + e.config.legend_show && + (t = e.isLegendRight + ? e.currentHeight + : Math.max(20, e.legendItemHeight) * (e.legendStep + 1)), + t + ); + }), + (o.prototype.opacityForLegend = function(e) { + return e.classed(M.legendItemHidden) ? null : 1; + }), + (o.prototype.opacityForUnfocusedLegend = function(e) { + return e.classed(M.legendItemHidden) ? null : 0.3; + }), + (o.prototype.toggleFocusLegend = function(e, t) { + var n = this; + (e = n.mapToTargetIds(e)), + n.legend .selectAll('.' + M.legendItem) - .classed(M.legendItemFocused, !1) + .filter(function(t) { + return e.indexOf(t) >= 0; + }) + .classed(M.legendItemFocused, t) .transition() .duration(100) .style('opacity', function() { - return e.opacityForLegend(t.select(this)); + return (t + ? n.opacityForLegend + : n.opacityForUnfocusedLegend + ).call(n, n.d3.select(this)); }); - }), - (r.prototype.showLegend = function(e) { - var t = this, - n = t.config; - n.legend_show || - ((n.legend_show = !0), - t.legend.style('visibility', 'visible'), - t.legendHasRendered || t.updateLegendWithDefaults()), - t.removeHiddenLegendIds(e), - t.legend - .selectAll(t.selectorLegends(e)) - .style('visibility', 'visible') - .transition() - .style('opacity', function() { - return t.opacityForLegend(t.d3.select(this)); - }); - }), - (r.prototype.hideLegend = function(e) { - var t = this, - n = t.config; - n.legend_show && - p(e) && - ((n.legend_show = !1), t.legend.style('visibility', 'hidden')), - t.addHiddenLegendIds(e), - t.legend - .selectAll(t.selectorLegends(e)) - .style('opacity', 0) - .style('visibility', 'hidden'); - }), - (r.prototype.clearLegendItemTextBoxCache = function() { - this.legendItemTextBox = {}; - }), - (r.prototype.updateLegend = function(e, t, n) { - var r, - o, + }), + (o.prototype.revertLegend = function() { + var e = this, + t = e.d3; + e.legend + .selectAll('.' + M.legendItem) + .classed(M.legendItemFocused, !1) + .transition() + .duration(100) + .style('opacity', function() { + return e.opacityForLegend(t.select(this)); + }); + }), + (o.prototype.showLegend = function(e) { + var t = this, + n = t.config; + n.legend_show || + ((n.legend_show = !0), + t.legend.style('visibility', 'visible'), + t.legendHasRendered || t.updateLegendWithDefaults()), + t.removeHiddenLegendIds(e), + t.legend + .selectAll(t.selectorLegends(e)) + .style('visibility', 'visible') + .transition() + .style('opacity', function() { + return t.opacityForLegend(t.d3.select(this)); + }); + }), + (o.prototype.hideLegend = function(e) { + var t = this, + n = t.config; + n.legend_show && + h(e) && + ((n.legend_show = !1), t.legend.style('visibility', 'hidden')), + t.addHiddenLegendIds(e), + t.legend + .selectAll(t.selectorLegends(e)) + .style('opacity', 0) + .style('visibility', 'hidden'); + }), + (o.prototype.clearLegendItemTextBoxCache = function() { + this.legendItemTextBox = {}; + }), + (o.prototype.updateLegend = function(e, t, n) { + var r, + o, + i, + a, + s, + c, + l, + f, + d, + h, + g, + m, + b, + y, + v, + _, + w = this, + x = w.config, + k = 4, + S = 10, + O = 0, + E = 0, + A = 10, + T = x.legend_item_tile_width + 5, + C = 0, + L = {}, + P = {}, + D = {}, + j = [0], + z = {}, + N = 0; + function R(t, n, r) { + var o, i, - a, - s, - u, - l, - f, - p, - h, - g, - m, - b, - y, - v, - _, - x = this, - w = x.config, - k = 0, - S = 0, - A = w.legend_item_tile_width + 5, - O = 0, - E = {}, - T = {}, - C = {}, - L = [0], - P = {}, - D = 0; - function z(t, n, r) { - var o, - i, - a = 0 === r, - s = r === e.length - 1, - c = (function(e, t) { - return ( - x.legendItemTextBox[t] || - (x.legendItemTextBox[t] = x.getTextRect( - e.textContent, - M.legendItem, - e - )), - x.legendItemTextBox[t] - ); - })(t, n), - u = - c.width + - A + - (!s || x.isLegendRight || x.isLegendInset ? 10 : 0) + - w.legend_padding, - l = c.height + 4, - f = x.isLegendRight || x.isLegendInset ? l : u, - d = - x.isLegendRight || x.isLegendInset - ? x.getLegendHeight() - : x.getLegendWidth(); - function p(e, t) { - t || - ((o = (d - O - f) / 2) < 10 && - ((o = (d - f) / 2), (O = 0), D++)), - (P[e] = D), - (L[D] = x.isLegendInset ? 10 : o), - (E[e] = O), - (O += f); - } - a && ((O = 0), (D = 0), (k = 0), (S = 0)), - !w.legend_show || x.isLegendToShow(n) - ? ((T[n] = u), - (C[n] = l), - (!k || u >= k) && (k = u), - (!S || l >= S) && (S = l), - (i = x.isLegendRight || x.isLegendInset ? S : k), - w.legend_equally - ? (Object.keys(T).forEach(function(e) { - T[e] = k; - }), - Object.keys(C).forEach(function(e) { - C[e] = S; - }), - (o = (d - i * e.length) / 2) < 10 - ? ((O = 0), - (D = 0), - e.forEach(function(e) { - p(e); - })) - : p(n, !0)) - : p(n)) - : (T[n] = C[n] = P[n] = E[n] = 0); - } - (e = e.filter(function(e) { - return !d(w.data_names[e]) || null !== w.data_names[e]; - })), - (g = c((t = t || {}), 'withTransition', !0)), - (m = c(t, 'withTransitionForTransform', !0)), - x.isLegendInset && - ((D = w.legend_inset_step ? w.legend_inset_step : e.length), - x.updateLegendStep(D)), - x.isLegendRight - ? ((r = function(e) { - return k * P[e]; - }), - (a = function(e) { - return L[P[e]] + E[e]; - })) - : x.isLegendInset - ? ((r = function(e) { - return k * P[e] + 10; - }), - (a = function(e) { - return L[P[e]] + E[e]; - })) - : ((r = function(e) { - return L[P[e]] + E[e]; - }), - (a = function(e) { - return S * P[e]; - })), - (o = function(e, t) { - return r(e, t) + 4 + w.legend_item_tile_width; - }), - (s = function(e, t) { - return a(e, t) + 9; - }), - (i = function(e, t) { - return r(e, t); - }), - (u = function(e, t) { - return a(e, t) - 5; - }), - (l = function(e, t) { - return r(e, t) - 2; - }), - (f = function(e, t) { - return r(e, t) - 2 + w.legend_item_tile_width; - }), - (p = function(e, t) { - return a(e, t) + 4; - }), - (h = x.legend - .selectAll('.' + M.legendItem) - .data(e) - .enter() - .append('g') - .attr('class', function(e) { - return x.generateClass(M.legendItem, e); - }) - .style('visibility', function(e) { - return x.isLegendToShow(e) ? 'visible' : 'hidden'; - }) - .style('cursor', 'pointer') - .on('click', function(e) { - w.legend_item_onclick - ? w.legend_item_onclick.call(x, e) - : x.d3.event.altKey - ? (x.api.hide(), x.api.show(e)) - : (x.api.toggle(e), - x.isTargetToShow(e) ? x.api.focus(e) : x.api.revert()); - }) - .on('mouseover', function(e) { - w.legend_item_onmouseover - ? w.legend_item_onmouseover.call(x, e) - : (x.d3.select(this).classed(M.legendItemFocused, !0), - !x.transiting && x.isTargetToShow(e) && x.api.focus(e)); - }) - .on('mouseout', function(e) { - w.legend_item_onmouseout - ? w.legend_item_onmouseout.call(x, e) - : (x.d3.select(this).classed(M.legendItemFocused, !1), - x.api.revert()); + a = 0 === r, + s = r === e.length - 1, + c = (function(e, t) { + return ( + w.legendItemTextBox[t] || + (w.legendItemTextBox[t] = w.getTextRect( + e.textContent, + M.legendItem, + e + )), + w.legendItemTextBox[t] + ); + })(t, n), + u = + c.width + + T + + (!s || w.isLegendRight || w.isLegendInset ? S : 0) + + x.legend_padding, + l = c.height + k, + f = w.isLegendRight || w.isLegendInset ? l : u, + d = + w.isLegendRight || w.isLegendInset + ? w.getLegendHeight() + : w.getLegendWidth(); + function p(e, t) { + t || + ((o = (d - C - f) / 2) < A && + ((o = (d - f) / 2), (C = 0), N++)), + (z[e] = N), + (j[N] = w.isLegendInset ? 10 : o), + (L[e] = C), + (C += f); + } + a && ((C = 0), (N = 0), (O = 0), (E = 0)), + !x.legend_show || w.isLegendToShow(n) + ? ((P[n] = u), + (D[n] = l), + (!O || u >= O) && (O = u), + (!E || l >= E) && (E = l), + (i = w.isLegendRight || w.isLegendInset ? E : O), + x.legend_equally + ? (Object.keys(P).forEach(function(e) { + P[e] = O; + }), + Object.keys(D).forEach(function(e) { + D[e] = E; + }), + (o = (d - i * e.length) / 2) < A + ? ((C = 0), + (N = 0), + e.forEach(function(e) { + p(e); + })) + : p(n, !0)) + : p(n)) + : (P[n] = D[n] = z[n] = L[n] = 0); + } + (e = e.filter(function(e) { + return !p(x.data_names[e]) || null !== x.data_names[e]; + })), + (g = u((t = t || {}), 'withTransition', !0)), + (m = u(t, 'withTransitionForTransform', !0)), + w.isLegendInset && + ((N = x.legend_inset_step ? x.legend_inset_step : e.length), + w.updateLegendStep(N)), + w.isLegendRight + ? ((r = function(e) { + return O * z[e]; + }), + (a = function(e) { + return j[z[e]] + L[e]; })) - .append('text') - .text(function(e) { - return d(w.data_names[e]) ? w.data_names[e] : e; - }) - .each(function(e, t) { - z(this, e, t); - }) - .style('pointer-events', 'none') - .attr('x', x.isLegendRight || x.isLegendInset ? o : -200) - .attr('y', x.isLegendRight || x.isLegendInset ? -200 : s), - h - .append('rect') - .attr('class', M.legendItemEvent) - .style('fill-opacity', 0) - .attr('x', x.isLegendRight || x.isLegendInset ? i : -200) - .attr('y', x.isLegendRight || x.isLegendInset ? -200 : u), - h - .append('line') - .attr('class', M.legendItemTile) - .style('stroke', x.color) - .style('pointer-events', 'none') - .attr('x1', x.isLegendRight || x.isLegendInset ? l : -200) - .attr('y1', x.isLegendRight || x.isLegendInset ? -200 : p) - .attr('x2', x.isLegendRight || x.isLegendInset ? f : -200) - .attr('y2', x.isLegendRight || x.isLegendInset ? -200 : p) - .attr('stroke-width', w.legend_item_tile_height), - (_ = x.legend.select('.' + M.legendBackground + ' rect')), - x.isLegendInset && - k > 0 && - 0 === _.size() && - (_ = x.legend - .insert('g', '.' + M.legendItem) - .attr('class', M.legendBackground) - .append('rect')), - (b = x.legend - .selectAll('text') - .data(e) - .text(function(e) { - return d(w.data_names[e]) ? w.data_names[e] : e; - }) - .each(function(e, t) { - z(this, e, t); + : w.isLegendInset + ? ((r = function(e) { + return O * z[e] + 10; + }), + (a = function(e) { + return j[z[e]] + L[e]; + })) + : ((r = function(e) { + return j[z[e]] + L[e]; + }), + (a = function(e) { + return E * z[e]; })), - (g ? b.transition() : b).attr('x', o).attr('y', s), - (y = x.legend.selectAll('rect.' + M.legendItemEvent).data(e)), - (g ? y.transition() : y) - .attr('width', function(e) { - return T[e]; - }) - .attr('height', function(e) { - return C[e]; - }) - .attr('x', i) - .attr('y', u), - (v = x.legend.selectAll('line.' + M.legendItemTile).data(e)), - (g ? v.transition() : v) - .style( - 'stroke', - x.levelColor - ? function(e) { - return x.levelColor( - x.cache[e].values.reduce(function(e, t) { - return e + t.value; - }, 0) - ); - } - : x.color - ) - .attr('x1', l) - .attr('y1', p) - .attr('x2', f) - .attr('y2', p), - _ && - (g ? _.transition() : _) - .attr('height', x.getLegendHeight() - 12) - .attr('width', k * (D + 1) + 10), - x.legend - .selectAll('.' + M.legendItem) - .classed(M.legendItemHidden, function(e) { - return !x.isTargetToShow(e); - }), - x.updateLegendItemWidth(k), - x.updateLegendItemHeight(S), - x.updateLegendStep(D), - x.updateSizes(), - x.updateScales(), - x.updateSvgSize(), - x.transformAll(m, n), - (x.legendHasRendered = !0); - }), - (r.prototype.initRegion = function() { - this.region = this.main + (o = function(e, t) { + return r(e, t) + 4 + x.legend_item_tile_width; + }), + (s = function(e, t) { + return a(e, t) + 9; + }), + (i = function(e, t) { + return r(e, t); + }), + (c = function(e, t) { + return a(e, t) - 5; + }), + (l = function(e, t) { + return r(e, t) - 2; + }), + (f = function(e, t) { + return r(e, t) - 2 + x.legend_item_tile_width; + }), + (d = function(e, t) { + return a(e, t) + 4; + }), + (h = w.legend + .selectAll('.' + M.legendItem) + .data(e) + .enter() .append('g') - .attr('clip-path', this.clipPath) - .attr('class', M.regions); - }), - (r.prototype.updateRegion = function(e) { - var t = this, - n = t.config; - t.region.style('visibility', t.hasArcType() ? 'hidden' : 'visible'); - var r = t.main - .select('.' + M.regions) - .selectAll('.' + M.region) - .data(n.regions), - o = r.enter().append('g'); - o + .attr('class', function(e) { + return w.generateClass(M.legendItem, e); + }) + .style('visibility', function(e) { + return w.isLegendToShow(e) ? 'visible' : 'hidden'; + }) + .style('cursor', 'pointer') + .on('click', function(e) { + x.legend_item_onclick + ? x.legend_item_onclick.call(w, e) + : w.d3.event.altKey + ? (w.api.hide(), w.api.show(e)) + : (w.api.toggle(e), + w.isTargetToShow(e) ? w.api.focus(e) : w.api.revert()); + }) + .on('mouseover', function(e) { + x.legend_item_onmouseover + ? x.legend_item_onmouseover.call(w, e) + : (w.d3.select(this).classed(M.legendItemFocused, !0), + !w.transiting && w.isTargetToShow(e) && w.api.focus(e)); + }) + .on('mouseout', function(e) { + x.legend_item_onmouseout + ? x.legend_item_onmouseout.call(w, e) + : (w.d3.select(this).classed(M.legendItemFocused, !1), + w.api.revert()); + })) + .append('text') + .text(function(e) { + return p(x.data_names[e]) ? x.data_names[e] : e; + }) + .each(function(e, t) { + R(this, e, t); + }) + .style('pointer-events', 'none') + .attr('x', w.isLegendRight || w.isLegendInset ? o : -200) + .attr('y', w.isLegendRight || w.isLegendInset ? -200 : s), + h .append('rect') - .attr('x', t.regionX.bind(t)) - .attr('y', t.regionY.bind(t)) - .attr('width', t.regionWidth.bind(t)) - .attr('height', t.regionHeight.bind(t)) + .attr('class', M.legendItemEvent) + .style('fill-opacity', 0) + .attr('x', w.isLegendRight || w.isLegendInset ? i : -200) + .attr('y', w.isLegendRight || w.isLegendInset ? -200 : c), + h + .append('line') + .attr('class', M.legendItemTile) + .style('stroke', w.color) + .style('pointer-events', 'none') + .attr('x1', w.isLegendRight || w.isLegendInset ? l : -200) + .attr('y1', w.isLegendRight || w.isLegendInset ? -200 : d) + .attr('x2', w.isLegendRight || w.isLegendInset ? f : -200) + .attr('y2', w.isLegendRight || w.isLegendInset ? -200 : d) + .attr('stroke-width', x.legend_item_tile_height), + (_ = w.legend.select('.' + M.legendBackground + ' rect')), + w.isLegendInset && + O > 0 && + 0 === _.size() && + (_ = w.legend + .insert('g', '.' + M.legendItem) + .attr('class', M.legendBackground) + .append('rect')), + (b = w.legend + .selectAll('text') + .data(e) + .text(function(e) { + return p(x.data_names[e]) ? x.data_names[e] : e; + }) + .each(function(e, t) { + R(this, e, t); + })), + (g ? b.transition() : b).attr('x', o).attr('y', s), + (y = w.legend.selectAll('rect.' + M.legendItemEvent).data(e)), + (g ? y.transition() : y) + .attr('width', function(e) { + return P[e]; + }) + .attr('height', function(e) { + return D[e]; + }) + .attr('x', i) + .attr('y', c), + (v = w.legend.selectAll('line.' + M.legendItemTile).data(e)), + (g ? v.transition() : v) + .style( + 'stroke', + w.levelColor + ? function(e) { + return w.levelColor(w.cache[e].values[0].value); + } + : w.color + ) + .attr('x1', l) + .attr('y1', d) + .attr('x2', f) + .attr('y2', d), + _ && + (g ? _.transition() : _) + .attr('height', w.getLegendHeight() - 12) + .attr('width', O * (N + 1) + 10), + w.legend + .selectAll('.' + M.legendItem) + .classed(M.legendItemHidden, function(e) { + return !w.isTargetToShow(e); + }), + w.updateLegendItemWidth(O), + w.updateLegendItemHeight(E), + w.updateLegendStep(N), + w.updateSizes(), + w.updateScales(), + w.updateSvgSize(), + w.transformAll(m, n), + (w.legendHasRendered = !0); + }), + (o.prototype.initRegion = function() { + this.region = this.main + .append('g') + .attr('clip-path', this.clipPath) + .attr('class', M.regions); + }), + (o.prototype.updateRegion = function(e) { + var t = this, + n = t.config; + t.region.style('visibility', t.hasArcType() ? 'hidden' : 'visible'); + var r = t.main + .select('.' + M.regions) + .selectAll('.' + M.region) + .data(n.regions), + o = r.enter().append('g'); + o + .append('rect') + .attr('x', t.regionX.bind(t)) + .attr('y', t.regionY.bind(t)) + .attr('width', t.regionWidth.bind(t)) + .attr('height', t.regionHeight.bind(t)) + .style('fill-opacity', function(e) { + return v(e.opacity) ? e.opacity : 0.1; + }), + o.append('text').text(t.labelRegion.bind(t)), + (t.mainRegion = o.merge(r).attr('class', t.classRegion.bind(t))), + r + .exit() + .transition() + .duration(e) + .style('opacity', 0) + .remove(); + }), + (o.prototype.redrawRegion = function(e, t) { + var n = this, + r = n.mainRegion, + o = n.mainRegion.selectAll('text'); + return [ + (e ? r.transition(t) : r) + .attr('x', n.regionX.bind(n)) + .attr('y', n.regionY.bind(n)) + .attr('width', n.regionWidth.bind(n)) + .attr('height', n.regionHeight.bind(n)) .style('fill-opacity', function(e) { - return y(e.opacity) ? e.opacity : 0.1; + return v(e.opacity) ? e.opacity : 0.1; }), - o.append('text').text(t.labelRegion.bind(t)), - (t.mainRegion = o.merge(r).attr('class', t.classRegion.bind(t))), - r - .exit() - .transition() - .duration(e) - .style('opacity', 0) - .remove(); - }), - (r.prototype.redrawRegion = function(e, t) { - var n = this, - r = n.mainRegion, - o = n.mainRegion.selectAll('text'); - return [ - (e ? r.transition(t) : r) - .attr('x', n.regionX.bind(n)) - .attr('y', n.regionY.bind(n)) - .attr('width', n.regionWidth.bind(n)) - .attr('height', n.regionHeight.bind(n)) - .style('fill-opacity', function(e) { - return y(e.opacity) ? e.opacity : 0.1; - }), - (e ? o.transition(t) : o) - .attr('x', n.labelOffsetX.bind(n)) - .attr('y', n.labelOffsetY.bind(n)) - .attr('transform', n.labelTransform.bind(n)) - .attr('style', 'text-anchor: left;') - ]; - }), - (r.prototype.regionX = function(e) { - var t = this, - n = t.config, - r = 'y' === e.axis ? t.y : t.y2; - return 'y' === e.axis || 'y2' === e.axis - ? n.axis_rotated && 'start' in e - ? r(e.start) - : 0 - : n.axis_rotated - ? 0 - : 'start' in e - ? t.x(t.isTimeSeries() ? t.parseDate(e.start) : e.start) - : 0; - }), - (r.prototype.regionY = function(e) { - var t = this, - n = t.config, - r = 'y' === e.axis ? t.y : t.y2; - return 'y' === e.axis || 'y2' === e.axis - ? n.axis_rotated - ? 0 - : 'end' in e - ? r(e.end) - : 0 - : n.axis_rotated && 'start' in e - ? t.x(t.isTimeSeries() ? t.parseDate(e.start) : e.start) - : 0; - }), - (r.prototype.regionWidth = function(e) { - var t, - n = this, - r = n.config, - o = n.regionX(e), - i = 'y' === e.axis ? n.y : n.y2; - return (t = - 'y' === e.axis || 'y2' === e.axis - ? r.axis_rotated && 'end' in e - ? i(e.end) - : n.width - : r.axis_rotated - ? n.width - : 'end' in e - ? n.x(n.isTimeSeries() ? n.parseDate(e.end) : e.end) - : n.width) < o - ? 0 - : t - o; - }), - (r.prototype.regionHeight = function(e) { - var t, - n = this, - r = n.config, - o = this.regionY(e), - i = 'y' === e.axis ? n.y : n.y2; - return (t = - 'y' === e.axis || 'y2' === e.axis - ? r.axis_rotated - ? n.height - : 'start' in e - ? i(e.start) - : n.height - : r.axis_rotated && 'end' in e - ? n.x(n.isTimeSeries() ? n.parseDate(e.end) : e.end) - : n.height) < o + (e ? o.transition(t) : o) + .attr('x', n.labelOffsetX.bind(n)) + .attr('y', n.labelOffsetY.bind(n)) + .attr('transform', n.labelTransform.bind(n)) + .attr('style', 'text-anchor: left;') + ]; + }), + (o.prototype.regionX = function(e) { + var t = this, + n = t.config, + r = 'y' === e.axis ? t.y : t.y2; + return 'y' === e.axis || 'y2' === e.axis + ? n.axis_rotated && 'start' in e + ? r(e.start) + : 0 + : n.axis_rotated + ? 0 + : 'start' in e + ? t.x(t.isTimeSeries() ? t.parseDate(e.start) : e.start) + : 0; + }), + (o.prototype.regionY = function(e) { + var t = this, + n = t.config, + r = 'y' === e.axis ? t.y : t.y2; + return 'y' === e.axis || 'y2' === e.axis + ? n.axis_rotated ? 0 - : t - o; - }), - (r.prototype.isRegionOnX = function(e) { - return !e.axis || 'x' === e.axis; - }), - (r.prototype.labelRegion = function(e) { - return 'label' in e ? e.label : ''; - }), - (r.prototype.labelTransform = function(e) { - return 'vertical' in e && e.vertical ? 'rotate(90)' : ''; - }), - (r.prototype.labelOffsetX = function(e) { - var t = 'paddingX' in e ? e.paddingX : 3, - n = 'paddingY' in e ? e.paddingY : 3; - return 'vertical' in e && e.vertical - ? this.regionY(e) + n - : this.regionX(e) + t; - }), - (r.prototype.labelOffsetY = function(e) { - var t = 'paddingX' in e ? e.paddingX : 3, - n = 'paddingY' in e ? e.paddingY : 3; - return 'vertical' in e && e.vertical - ? -(this.regionX(e) + t) - : this.regionY(e) + 10 + n; - }), - (r.prototype.getScale = function(e, t, n) { - return (n ? this.d3.scaleTime() : this.d3.scaleLinear()).range([ - e, - t - ]); - }), - (r.prototype.getX = function(e, t, n, r) { - var o, - i = this.getScale(e, t, this.isTimeSeries()), - a = n ? i.domain(n) : i; - for (o in (this.isCategorized() - ? ((r = - r || - function() { - return 0; - }), - (i = function(e, t) { - var n = a(e) + r(e); - return t ? n : Math.ceil(n); - })) - : (i = function(e, t) { - var n = a(e); - return t ? n : Math.ceil(n); + : 'end' in e + ? r(e.end) + : 0 + : n.axis_rotated && 'start' in e + ? t.x(t.isTimeSeries() ? t.parseDate(e.start) : e.start) + : 0; + }), + (o.prototype.regionWidth = function(e) { + var t, + n = this, + r = n.config, + o = n.regionX(e), + i = 'y' === e.axis ? n.y : n.y2; + return (t = + 'y' === e.axis || 'y2' === e.axis + ? r.axis_rotated && 'end' in e + ? i(e.end) + : n.width + : r.axis_rotated + ? n.width + : 'end' in e + ? n.x(n.isTimeSeries() ? n.parseDate(e.end) : e.end) + : n.width) < o + ? 0 + : t - o; + }), + (o.prototype.regionHeight = function(e) { + var t, + n = this, + r = n.config, + o = this.regionY(e), + i = 'y' === e.axis ? n.y : n.y2; + return (t = + 'y' === e.axis || 'y2' === e.axis + ? r.axis_rotated + ? n.height + : 'start' in e + ? i(e.start) + : n.height + : r.axis_rotated && 'end' in e + ? n.x(n.isTimeSeries() ? n.parseDate(e.end) : e.end) + : n.height) < o + ? 0 + : t - o; + }), + (o.prototype.isRegionOnX = function(e) { + return !e.axis || 'x' === e.axis; + }), + (o.prototype.labelRegion = function(e) { + return 'label' in e ? e.label : ''; + }), + (o.prototype.labelTransform = function(e) { + return 'vertical' in e && e.vertical ? 'rotate(90)' : ''; + }), + (o.prototype.labelOffsetX = function(e) { + var t = 'paddingX' in e ? e.paddingX : 3, + n = 'paddingY' in e ? e.paddingY : 3; + return 'vertical' in e && e.vertical + ? this.regionY(e) + n + : this.regionX(e) + t; + }), + (o.prototype.labelOffsetY = function(e) { + var t = 'paddingX' in e ? e.paddingX : 3, + n = 'paddingY' in e ? e.paddingY : 3; + return 'vertical' in e && e.vertical + ? -(this.regionX(e) + t) + : this.regionY(e) + 10 + n; + }), + (o.prototype.getScale = function(e, t, n) { + return (n ? this.d3.scaleTime() : this.d3.scaleLinear()).range([ + e, + t + ]); + }), + (o.prototype.getX = function(e, t, n, r) { + var o, + i = this.getScale(e, t, this.isTimeSeries()), + a = n ? i.domain(n) : i; + for (o in (this.isCategorized() + ? ((r = + r || + function() { + return 0; }), - a)) - i[o] = a[o]; - return ( - (i.orgDomain = function() { - return a.domain(); + (i = function(e, t) { + var n = a(e) + r(e); + return t ? n : Math.ceil(n); + })) + : (i = function(e, t) { + var n = a(e); + return t ? n : Math.ceil(n); }), - this.isCategorized() && - (i.domain = function(e) { - return arguments.length - ? (a.domain(e), i) - : [(e = this.orgDomain())[0], e[1] + 1]; - }), - i - ); - }), - (r.prototype.getY = function(e, t, n) { - var r; - if ('timeseries' === e || 'time' === e) r = this.d3.scaleTime(); - else if ('log' === e) r = A(this.d3); - else { - if ('linear' !== e && void 0 !== e) - throw new Error('Invalid Y axis type: "'.concat(e, '"')); - r = this.d3.scaleLinear(); - } - return t && r.domain(t), n && r.range(n), r; - }), - (r.prototype.getYScale = function(e) { - return 'y2' === this.axis.getId(e) ? this.y2 : this.y; - }), - (r.prototype.getSubYScale = function(e) { - return 'y2' === this.axis.getId(e) ? this.subY2 : this.subY; - }), - (r.prototype.updateScales = function() { - var e = this, - t = e.config, - n = !e.x; - (e.xMin = t.axis_rotated ? 1 : 0), - (e.xMax = t.axis_rotated ? e.height : e.width), - (e.yMin = t.axis_rotated ? 0 : e.height), - (e.yMax = t.axis_rotated ? e.width : 1), - (e.subXMin = e.xMin), - (e.subXMax = e.xMax), - (e.subYMin = t.axis_rotated ? 0 : e.height2), - (e.subYMax = t.axis_rotated ? e.width2 : 1), - (e.x = e.getX( - e.xMin, - e.xMax, - n ? void 0 : e.x.orgDomain(), - function() { - return e.xAxis.tickOffset(); - } - )), - (e.y = e.getY( - t.axis_y_type, - n ? t.axis_y_default : e.y.domain(), - [e.yMin, e.yMax] - )), - (e.y2 = e.getY( - t.axis_y2_type, - n ? t.axis_y2_default : e.y2.domain(), - [e.yMin, e.yMax] - )), - (e.subX = e.getX(e.xMin, e.xMax, e.orgXDomain, function(t) { - return t % 1 ? 0 : e.subXAxis.tickOffset(); - })), - (e.subY = e.getY( - t.axis_y_type, - n ? t.axis_y_default : e.subY.domain(), - [e.subYMin, e.subYMax] - )), - (e.subY2 = e.getY( - t.axis_y2_type, - n ? t.axis_y2_default : e.subY2.domain(), - [e.subYMin, e.subYMax] - )), - (e.xAxisTickFormat = e.axis.getXAxisTickFormat()), - (e.xAxisTickValues = e.axis.getXAxisTickValues()), - (e.yAxisTickValues = e.axis.getYAxisTickValues()), - (e.y2AxisTickValues = e.axis.getY2AxisTickValues()), - (e.xAxis = e.axis.getXAxis( - e.x, - e.xOrient, - e.xAxisTickFormat, - e.xAxisTickValues, - t.axis_x_tick_outer - )), - (e.subXAxis = e.axis.getXAxis( - e.subX, - e.subXOrient, - e.xAxisTickFormat, - e.xAxisTickValues, - t.axis_x_tick_outer - )), - (e.yAxis = e.axis.getYAxis( - 'y', - e.y, - e.yOrient, - e.yAxisTickValues, - t.axis_y_tick_outer - )), - (e.y2Axis = e.axis.getYAxis( - 'y2', - e.y2, - e.y2Orient, - e.y2AxisTickValues, - t.axis_y2_tick_outer - )), - n || (e.brush && e.brush.updateScale(e.subX)), - e.updateArc && e.updateArc(); - }), - (r.prototype.selectPoint = function(e, t, n) { - var r = this, - o = r.config, - i = (o.axis_rotated ? r.circleY : r.circleX).bind(r), - a = (o.axis_rotated ? r.circleX : r.circleY).bind(r), - s = r.pointSelectR.bind(r); - o.data_onselected.call(r.api, t, e.node()), - r.main - .select( - '.' + M.selectedCircles + r.getTargetSelectorSuffix(t.id) - ) - .selectAll('.' + M.selectedCircle + '-' + n) - .data([t]) - .enter() - .append('circle') - .attr('class', function() { - return r.generateClass(M.selectedCircle, n); - }) - .attr('cx', i) - .attr('cy', a) - .attr('stroke', function() { - return r.color(t); - }) - .attr('r', function(e) { - return 1.4 * r.pointSelectR(e); - }) + a)) + i[o] = a[o]; + return ( + (i.orgDomain = function() { + return a.domain(); + }), + this.isCategorized() && + (i.domain = function(e) { + return arguments.length + ? (a.domain(e), i) + : [(e = this.orgDomain())[0], e[1] + 1]; + }), + i + ); + }), + (o.prototype.getY = function(e, t, n) { + let r; + if ('timeseries' === e || 'time' === e) r = this.d3.scaleTime(); + else if ('log' === e) r = O(this.d3); + else { + if ('linear' !== e && void 0 !== e) + throw new Error(`Invalid Y axis type: "${e}"`); + r = this.d3.scaleLinear(); + } + return t && r.domain(t), n && r.range(n), r; + }), + (o.prototype.getYScale = function(e) { + return 'y2' === this.axis.getId(e) ? this.y2 : this.y; + }), + (o.prototype.getSubYScale = function(e) { + return 'y2' === this.axis.getId(e) ? this.subY2 : this.subY; + }), + (o.prototype.updateScales = function() { + var e = this, + t = e.config, + n = !e.x; + (e.xMin = t.axis_rotated ? 1 : 0), + (e.xMax = t.axis_rotated ? e.height : e.width), + (e.yMin = t.axis_rotated ? 0 : e.height), + (e.yMax = t.axis_rotated ? e.width : 1), + (e.subXMin = e.xMin), + (e.subXMax = e.xMax), + (e.subYMin = t.axis_rotated ? 0 : e.height2), + (e.subYMax = t.axis_rotated ? e.width2 : 1), + (e.x = e.getX( + e.xMin, + e.xMax, + n ? void 0 : e.x.orgDomain(), + function() { + return e.xAxis.tickOffset(); + } + )), + (e.y = e.getY(t.axis_y_type, n ? t.axis_y_default : e.y.domain(), [ + e.yMin, + e.yMax + ])), + (e.y2 = e.getY( + t.axis_y2_type, + n ? t.axis_y2_default : e.y2.domain(), + [e.yMin, e.yMax] + )), + (e.subX = e.getX(e.xMin, e.xMax, e.orgXDomain, function(t) { + return t % 1 ? 0 : e.subXAxis.tickOffset(); + })), + (e.subY = e.getY( + t.axis_y_type, + n ? t.axis_y_default : e.subY.domain(), + [e.subYMin, e.subYMax] + )), + (e.subY2 = e.getY( + t.axis_y2_type, + n ? t.axis_y2_default : e.subY2.domain(), + [e.subYMin, e.subYMax] + )), + (e.xAxisTickFormat = e.axis.getXAxisTickFormat()), + (e.xAxisTickValues = e.axis.getXAxisTickValues()), + (e.yAxisTickValues = e.axis.getYAxisTickValues()), + (e.y2AxisTickValues = e.axis.getY2AxisTickValues()), + (e.xAxis = e.axis.getXAxis( + e.x, + e.xOrient, + e.xAxisTickFormat, + e.xAxisTickValues, + t.axis_x_tick_outer + )), + (e.subXAxis = e.axis.getXAxis( + e.subX, + e.subXOrient, + e.xAxisTickFormat, + e.xAxisTickValues, + t.axis_x_tick_outer + )), + (e.yAxis = e.axis.getYAxis( + 'y', + e.y, + e.yOrient, + e.yAxisTickValues, + t.axis_y_tick_outer + )), + (e.y2Axis = e.axis.getYAxis( + 'y2', + e.y2, + e.y2Orient, + e.y2AxisTickValues, + t.axis_y2_tick_outer + )), + n || (e.brush && e.brush.updateScale(e.subX)), + e.updateArc && e.updateArc(); + }), + (o.prototype.selectPoint = function(e, t, n) { + var r = this, + o = r.config, + i = (o.axis_rotated ? r.circleY : r.circleX).bind(r), + a = (o.axis_rotated ? r.circleX : r.circleY).bind(r), + s = r.pointSelectR.bind(r); + o.data_onselected.call(r.api, t, e.node()), + r.main + .select('.' + M.selectedCircles + r.getTargetSelectorSuffix(t.id)) + .selectAll('.' + M.selectedCircle + '-' + n) + .data([t]) + .enter() + .append('circle') + .attr('class', function() { + return r.generateClass(M.selectedCircle, n); + }) + .attr('cx', i) + .attr('cy', a) + .attr('stroke', function() { + return r.color(t); + }) + .attr('r', function(e) { + return 1.4 * r.pointSelectR(e); + }) + .transition() + .duration(100) + .attr('r', s); + }), + (o.prototype.unselectPoint = function(e, t, n) { + this.config.data_onunselected.call(this.api, t, e.node()), + this.main + .select( + '.' + M.selectedCircles + this.getTargetSelectorSuffix(t.id) + ) + .selectAll('.' + M.selectedCircle + '-' + n) + .transition() + .duration(100) + .attr('r', 0) + .remove(); + }), + (o.prototype.togglePoint = function(e, t, n, r) { + e ? this.selectPoint(t, n, r) : this.unselectPoint(t, n, r); + }), + (o.prototype.selectPath = function(e, t) { + var n = this; + n.config.data_onselected.call(n, t, e.node()), + n.config.interaction_brighten && + e .transition() .duration(100) - .attr('r', s); - }), - (r.prototype.unselectPoint = function(e, t, n) { - this.config.data_onunselected.call(this.api, t, e.node()), - this.main - .select( - '.' + M.selectedCircles + this.getTargetSelectorSuffix(t.id) - ) - .selectAll('.' + M.selectedCircle + '-' + n) + .style('fill', function() { + return n.d3.rgb(n.color(t)).brighter(0.75); + }); + }), + (o.prototype.unselectPath = function(e, t) { + var n = this; + n.config.data_onunselected.call(n, t, e.node()), + n.config.interaction_brighten && + e .transition() .duration(100) - .attr('r', 0) - .remove(); - }), - (r.prototype.togglePoint = function(e, t, n, r) { - e ? this.selectPoint(t, n, r) : this.unselectPoint(t, n, r); - }), - (r.prototype.selectPath = function(e, t) { - var n = this; - n.config.data_onselected.call(n, t, e.node()), - n.config.interaction_brighten && - e - .transition() - .duration(100) - .style('fill', function() { - return n.d3.rgb(n.color(t)).brighter(0.75); - }); - }), - (r.prototype.unselectPath = function(e, t) { - var n = this; - n.config.data_onunselected.call(n, t, e.node()), - n.config.interaction_brighten && - e - .transition() - .duration(100) - .style('fill', function() { - return n.color(t); - }); - }), - (r.prototype.togglePath = function(e, t, n, r) { - e ? this.selectPath(t, n, r) : this.unselectPath(t, n, r); - }), - (r.prototype.getToggle = function(e, t) { - var n; - return ( - 'circle' === e.nodeName - ? (n = this.isStepType(t) ? function() {} : this.togglePoint) - : 'path' === e.nodeName && (n = this.togglePath), - n - ); - }), - (r.prototype.toggleShape = function(e, t, n) { - var r = this, - o = r.d3, - i = r.config, - a = o.select(e), - s = a.classed(M.SELECTED), - c = r.getToggle(e, t).bind(r); - i.data_selection_enabled && - i.data_selection_isselectable(t) && - (i.data_selection_multiple || - r.main - .selectAll( - '.' + - M.shapes + - (i.data_selection_grouped - ? r.getTargetSelectorSuffix(t.id) - : '') - ) - .selectAll('.' + M.shape) - .each(function(e, t) { - var n = o.select(this); - n.classed(M.SELECTED) && - c(!1, n.classed(M.SELECTED, !1), e, t); - }), - a.classed(M.SELECTED, !s), - c(!s, a, t, n)); - }), - (r.prototype.initBar = function() { - this.main - .select('.' + M.chart) - .append('g') - .attr('class', M.chartBars); - }), - (r.prototype.updateTargetsForBar = function(e) { - var t = this, - n = t.config, - r = t.classChartBar.bind(t), - o = t.classBars.bind(t), - i = t.classFocus.bind(t); - t.main - .select('.' + M.chartBars) - .selectAll('.' + M.chartBar) - .data(e) - .attr('class', function(e) { - return r(e) + i(e); - }) + .style('fill', function() { + return n.color(t); + }); + }), + (o.prototype.togglePath = function(e, t, n, r) { + e ? this.selectPath(t, n, r) : this.unselectPath(t, n, r); + }), + (o.prototype.getToggle = function(e, t) { + var n; + return ( + 'circle' === e.nodeName + ? (n = this.isStepType(t) ? function() {} : this.togglePoint) + : 'path' === e.nodeName && (n = this.togglePath), + n + ); + }), + (o.prototype.toggleShape = function(e, t, n) { + var r = this, + o = r.d3, + i = r.config, + a = o.select(e), + s = a.classed(M.SELECTED), + c = r.getToggle(e, t).bind(r); + i.data_selection_enabled && + i.data_selection_isselectable(t) && + (i.data_selection_multiple || + r.main + .selectAll( + '.' + + M.shapes + + (i.data_selection_grouped + ? r.getTargetSelectorSuffix(t.id) + : '') + ) + .selectAll('.' + M.shape) + .each(function(e, t) { + var n = o.select(this); + n.classed(M.SELECTED) && + c(!1, n.classed(M.SELECTED, !1), e, t); + }), + a.classed(M.SELECTED, !s), + c(!s, a, t, n)); + }), + (o.prototype.initBar = function() { + this.main + .select('.' + M.chart) + .append('g') + .attr('class', M.chartBars); + }), + (o.prototype.updateTargetsForBar = function(e) { + var t = this, + n = t.config, + r = t.classChartBar.bind(t), + o = t.classBars.bind(t), + i = t.classFocus.bind(t); + t.main + .select('.' + M.chartBars) + .selectAll('.' + M.chartBar) + .data(e) + .attr('class', function(e) { + return r(e) + i(e); + }) + .enter() + .append('g') + .attr('class', r) + .style('pointer-events', 'none') + .append('g') + .attr('class', o) + .style('cursor', function(e) { + return n.data_selection_isselectable(e) ? 'pointer' : null; + }); + }), + (o.prototype.updateBar = function(e) { + var t = this, + n = t.barData.bind(t), + r = t.classBar.bind(t), + o = t.initialOpacity.bind(t), + i = function(e) { + return t.color(e.id); + }, + a = t.main + .selectAll('.' + M.bars) + .selectAll('.' + M.bar) + .data(n), + s = a .enter() - .append('g') + .append('path') .attr('class', r) - .style('pointer-events', 'none') - .append('g') - .attr('class', o) - .style('cursor', function(e) { - return n.data_selection_isselectable(e) ? 'pointer' : null; - }); - }), - (r.prototype.updateBar = function(e) { - var t = this, - n = t.barData.bind(t), - r = t.classBar.bind(t), - o = t.initialOpacity.bind(t), - i = function(e) { - return t.color(e.id); - }, - a = t.main - .selectAll('.' + M.bars) - .selectAll('.' + M.bar) - .data(n), - s = a - .enter() - .append('path') - .attr('class', r) - .style('stroke', i) - .style('fill', i); - (t.mainBar = s.merge(a).style('opacity', o)), - a - .exit() - .transition() - .duration(e) - .style('opacity', 0); - }), - (r.prototype.redrawBar = function(e, t, n) { - var r = this; - return [ - (t ? this.mainBar.transition(n) : this.mainBar) - .attr('d', e) - .style('stroke', this.color) - .style('fill', this.color) - .style('opacity', function(e) { - return r.isTargetToShow(e.id) ? 1 : 0; - }) - ]; - }), - (r.prototype.getBarW = function(e, t) { - var n = this.config, - r = - 'number' == typeof n.bar_width - ? n.bar_width - : t - ? (e.tickInterval() * n.bar_width_ratio) / t - : 0; - return n.bar_width_max && r > n.bar_width_max ? n.bar_width_max : r; - }), - (r.prototype.getBars = function(e, t) { - return (t - ? this.main.selectAll( - '.' + M.bars + this.getTargetSelectorSuffix(t) - ) - : this.main - ).selectAll('.' + M.bar + (y(e) ? '-' + e : '')); - }), - (r.prototype.expandBars = function(e, t, n) { - n && this.unexpandBars(), - this.getBars(e, t).classed(M.EXPANDED, !0); - }), - (r.prototype.unexpandBars = function(e) { - this.getBars(e).classed(M.EXPANDED, !1); - }), - (r.prototype.generateDrawBar = function(e, t) { - var n = this.config, - r = this.generateGetBarPoints(e, t); - return function(e, t) { - var o = r(e, t), - i = n.axis_rotated ? 1 : 0, - a = n.axis_rotated ? 0 : 1; - return ( - 'M ' + - o[0][i] + - ',' + - o[0][a] + - ' L' + - o[1][i] + - ',' + - o[1][a] + - ' L' + - o[2][i] + - ',' + - o[2][a] + - ' L' + - o[3][i] + - ',' + - o[3][a] + - ' z' - ); - }; - }), - (r.prototype.generateGetBarPoints = function(e, t) { - var n = this, - r = t ? n.subXAxis : n.xAxis, - o = e.__max__ + 1, - i = n.getBarW(r, o), - a = n.getShapeX(i, o, e, !!t), - s = n.getShapeY(!!t), - c = n.getShapeOffset(n.isBarType, e, !!t), - u = i * (n.config.bar_space / 2), - l = t ? n.getSubYScale : n.getYScale; - return function(e, t) { - var r = l.call(n, e.id)(0), - o = c(e, t) || r, - f = a(e), - d = s(e); - return ( - n.config.axis_rotated && - ((0 < e.value && d < r) || (e.value < 0 && r < d)) && - (d = r), - [ - [f + u, o], - [f + u, (d -= r - o)], - [f + i - u, d], - [f + i - u, o] - ] - ); - }; - }), - (r.prototype.isWithinBar = function(e, t) { - return (function(e, t) { - var n = - arguments.length > 2 && void 0 !== arguments[2] - ? arguments[2] - : 0, - r = t.x - n, - o = t.x + t.width + n, - i = t.y + t.height + n, - a = t.y - n; - return r < e[0] && e[0] < o && a < e[1] && e[1] < i; - })(e, l(t), 2); - }), - (r.prototype.getShapeIndices = function(e) { - var t, - n, - r = this.config, - o = {}, - i = 0; + .style('stroke', i) + .style('fill', i); + (t.mainBar = s.merge(a).style('opacity', o)), + a + .exit() + .transition() + .duration(e) + .style('opacity', 0); + }), + (o.prototype.redrawBar = function(e, t, n) { + const r = this; + return [ + (t ? this.mainBar.transition(n) : this.mainBar) + .attr('d', e) + .style('stroke', this.color) + .style('fill', this.color) + .style('opacity', e => (r.isTargetToShow(e.id) ? 1 : 0)) + ]; + }), + (o.prototype.getBarW = function(e, t) { + var n = this.config, + r = + 'number' == typeof n.bar_width + ? n.bar_width + : t + ? (e.tickInterval() * n.bar_width_ratio) / t + : 0; + return n.bar_width_max && r > n.bar_width_max ? n.bar_width_max : r; + }), + (o.prototype.getBars = function(e, t) { + return (t + ? this.main.selectAll( + '.' + M.bars + this.getTargetSelectorSuffix(t) + ) + : this.main + ).selectAll('.' + M.bar + (v(e) ? '-' + e : '')); + }), + (o.prototype.expandBars = function(e, t, n) { + n && this.unexpandBars(), this.getBars(e, t).classed(M.EXPANDED, !0); + }), + (o.prototype.unexpandBars = function(e) { + this.getBars(e).classed(M.EXPANDED, !1); + }), + (o.prototype.generateDrawBar = function(e, t) { + var n = this.config, + r = this.generateGetBarPoints(e, t); + return function(e, t) { + var o = r(e, t), + i = n.axis_rotated ? 1 : 0, + a = n.axis_rotated ? 0 : 1; + return ( + 'M ' + + o[0][i] + + ',' + + o[0][a] + + ' L' + + o[1][i] + + ',' + + o[1][a] + + ' L' + + o[2][i] + + ',' + + o[2][a] + + ' L' + + o[3][i] + + ',' + + o[3][a] + + ' z' + ); + }; + }), + (o.prototype.generateGetBarPoints = function(e, t) { + var n = this, + r = t ? n.subXAxis : n.xAxis, + o = e.__max__ + 1, + i = n.getBarW(r, o), + a = n.getShapeX(i, o, e, !!t), + s = n.getShapeY(!!t), + c = n.getShapeOffset(n.isBarType, e, !!t), + u = i * (n.config.bar_space / 2), + l = t ? n.getSubYScale : n.getYScale; + return function(e, t) { + var r = l.call(n, e.id)(0), + o = c(e, t) || r, + f = a(e), + d = s(e); return ( - this.filterTargetsToShow( - this.data.targets.filter(e, this) - ).forEach(function(e) { + n.config.axis_rotated && + ((0 < e.value && d < r) || (e.value < 0 && r < d)) && + (d = r), + [ + [f + u, o], + [f + u, (d -= r - o)], + [f + i - u, d], + [f + i - u, o] + ] + ); + }; + }), + (o.prototype.isWithinBar = function(e, t) { + return (function(e, t, n = 0) { + const r = t.x - n, + o = t.x + t.width + n, + i = t.y + t.height + n, + a = t.y - n; + return r < e[0] && e[0] < o && a < e[1] && e[1] < i; + })(e, f(t), 2); + }), + (o.prototype.getShapeIndices = function(e) { + var t, + n, + r = this.config, + o = {}, + i = 0; + return ( + this.filterTargetsToShow(this.data.targets.filter(e, this)).forEach( + function(e) { for (t = 0; t < r.data_groups.length; t++) if (!(r.data_groups[t].indexOf(e.id) < 0)) for (n = 0; n < r.data_groups[t].length; n++) @@ -156314,2133 +157072,2034 @@ object-assign o[e.id] = o[r.data_groups[t][n]]; break; } - b(o[e.id]) && (o[e.id] = i++); + y(o[e.id]) && (o[e.id] = i++); + } + ), + (o.__max__ = i - 1), + o + ); + }), + (o.prototype.getShapeX = function(e, t, n, r) { + var o = r ? this.subX : this.x; + return function(r) { + var i = r.id in n ? n[r.id] : 0; + return r.x || 0 === r.x ? o(r.x) - e * (t / 2 - i) : 0; + }; + }), + (o.prototype.getShapeY = function(e) { + const t = this; + return function(n) { + return (e ? t.getSubYScale(n.id) : t.getYScale(n.id))( + t.isTargetNormalized(n.id) ? t.getRatio('index', n, !0) : n.value + ); + }; + }), + (o.prototype.getShapeOffset = function(e, t, n) { + var r = this, + o = r.orderTargets( + r.filterTargetsToShow(r.data.targets.filter(e, r)) + ), + i = o.map(function(e) { + return e.id; + }); + return function(e, a) { + var s = n ? r.getSubYScale(e.id) : r.getYScale(e.id), + c = s(0), + u = c; + return ( + o.forEach(function(n) { + const o = r.isStepType(e) + ? r.convertValuesToStep(n.values) + : n.values, + l = r.isTargetNormalized(e.id), + f = o.map(e => (l ? r.getRatio('index', e, !0) : e.value)); + n.id !== e.id && + t[n.id] === t[e.id] && + i.indexOf(n.id) < i.indexOf(e.id) && + ((y(o[a]) || +o[a].x != +e.x) && + ((a = -1), + o.forEach(function(t, n) { + (t.x.constructor === Date ? +t.x : t.x) === + (e.x.constructor === Date ? +e.x : e.x) && (a = n); + })), + a in o && o[a].value * e.value >= 0 && (u += s(f[a]) - c)); }), - (o.__max__ = i - 1), - o + u ); - }), - (r.prototype.getShapeX = function(e, t, n, r) { - var o = r ? this.subX : this.x; - return function(r) { - var i = r.id in n ? n[r.id] : 0; - return r.x || 0 === r.x ? o(r.x) - e * (t / 2 - i) : 0; + }; + }), + (o.prototype.isWithinShape = function(e, t) { + var n, + r = this, + o = r.d3.select(e); + return ( + r.isTargetToShow(t.id) + ? 'circle' === e.nodeName + ? (n = r.isStepType(t) + ? r.isWithinStep(e, r.getYScale(t.id)(t.value)) + : r.isWithinCircle(e, 1.5 * r.pointSelectR(t))) + : 'path' === e.nodeName && + (n = !o.classed(M.bar) || r.isWithinBar(r.d3.mouse(e), e)) + : (n = !1), + n + ); + }), + (o.prototype.getInterpolate = function(e) { + var t = this, + n = t.d3, + r = { + linear: n.curveLinear, + 'linear-closed': n.curveLinearClosed, + basis: n.curveBasis, + 'basis-open': n.curveBasisOpen, + 'basis-closed': n.curveBasisClosed, + bundle: n.curveBundle, + cardinal: n.curveCardinal, + 'cardinal-open': n.curveCardinalOpen, + 'cardinal-closed': n.curveCardinalClosed, + monotone: n.curveMonotoneX, + step: n.curveStep, + 'step-before': n.curveStepBefore, + 'step-after': n.curveStepAfter }; - }), - (r.prototype.getShapeY = function(e) { - var t = this; - return function(n) { - return (e ? t.getSubYScale(n.id) : t.getYScale(n.id))( - t.isTargetNormalized(n.id) - ? t.getRatio('index', n, !0) - : n.value - ); + return t.isSplineType(e) + ? r[t.config.spline_interpolation_type] || r.cardinal + : t.isStepType(e) + ? r[t.config.line_step_type] + : r.linear; + }), + (o.prototype.initLine = function() { + this.main + .select('.' + M.chart) + .append('g') + .attr('class', M.chartLines); + }), + (o.prototype.updateTargetsForLine = function(e) { + var t, + n = this, + r = n.config, + o = n.classChartLine.bind(n), + i = n.classLines.bind(n), + a = n.classAreas.bind(n), + s = n.classCircles.bind(n), + c = n.classFocus.bind(n); + (t = n.main + .select('.' + M.chartLines) + .selectAll('.' + M.chartLine) + .data(e) + .attr('class', function(e) { + return o(e) + c(e); + }) + .enter() + .append('g') + .attr('class', o) + .style('opacity', 0) + .style('pointer-events', 'none')) + .append('g') + .attr('class', i), + t.append('g').attr('class', a), + t.append('g').attr('class', function(e) { + return n.generateClass(M.selectedCircles, e.id); + }), + t + .append('g') + .attr('class', s) + .style('cursor', function(e) { + return r.data_selection_isselectable(e) ? 'pointer' : null; + }), + e.forEach(function(e) { + n.main + .selectAll( + '.' + M.selectedCircles + n.getTargetSelectorSuffix(e.id) + ) + .selectAll('.' + M.selectedCircle) + .each(function(t) { + t.value = e.values[t.index].value; + }); + }); + }), + (o.prototype.updateLine = function(e) { + var t = this, + n = t.main + .selectAll('.' + M.lines) + .selectAll('.' + M.line) + .data(t.lineData.bind(t)), + r = n + .enter() + .append('path') + .attr('class', t.classLine.bind(t)) + .style('stroke', t.color); + (t.mainLine = r + .merge(n) + .style('opacity', t.initialOpacity.bind(t)) + .style('shape-rendering', function(e) { + return t.isStepType(e) ? 'crispEdges' : ''; + }) + .attr('transform', null)), + n + .exit() + .transition() + .duration(e) + .style('opacity', 0); + }), + (o.prototype.redrawLine = function(e, t, n) { + return [ + (t ? this.mainLine.transition(n) : this.mainLine) + .attr('d', e) + .style('stroke', this.color) + .style('opacity', 1) + ]; + }), + (o.prototype.generateDrawLine = function(e, t) { + var n = this, + r = n.config, + o = n.d3.line(), + i = n.generateGetLinePoints(e, t), + a = t ? n.getSubYScale : n.getYScale, + s = function(e) { + return (t ? n.subxx : n.xx).call(n, e); + }, + c = function(e, t) { + return r.data_groups.length > 0 + ? i(e, t)[0][1] + : a.call(n, e.id)(e.value); }; - }), - (r.prototype.getShapeOffset = function(e, t, n) { - var r = this, - o = r.orderTargets( - r.filterTargetsToShow(r.data.targets.filter(e, r)) - ), - i = o.map(function(e) { - return e.id; - }); - return function(e, a) { - var s = n ? r.getSubYScale(e.id) : r.getYScale(e.id), - c = s(0), - u = c; + return ( + (o = r.axis_rotated ? o.x(c).y(s) : o.x(s).y(c)), + r.line_connectNull || + (o = o.defined(function(e) { + return null != e.value; + })), + function(e) { + var i, + s = r.line_connectNull + ? n.filterRemoveNull(e.values) + : e.values, + c = t ? n.subX : n.x, + u = a.call(n, e.id), + l = 0, + f = 0; return ( - o.forEach(function(n) { - var o = r.isStepType(e) - ? r.convertValuesToStep(n.values) - : n.values, - l = r.isTargetNormalized(e.id), - f = o.map(function(e) { - return l ? r.getRatio('index', e, !0) : e.value; - }); - n.id !== e.id && - t[n.id] === t[e.id] && - i.indexOf(n.id) < i.indexOf(e.id) && - ((b(o[a]) || +o[a].x != +e.x) && - ((a = -1), - o.forEach(function(t, n) { - (t.x.constructor === Date ? +t.x : t.x) === - (e.x.constructor === Date ? +e.x : e.x) && (a = n); - })), - a in o && o[a].value * e.value >= 0 && (u += s(f[a]) - c)); - }), - u + n.isLineType(e) + ? r.data_regions[e.id] + ? (i = n.lineWithRegions(s, c, u, r.data_regions[e.id])) + : (n.isStepType(e) && (s = n.convertValuesToStep(s)), + (i = o.curve(n.getInterpolate(e))(s))) + : (s[0] && ((l = c(s[0].x)), (f = u(s[0].value))), + (i = r.axis_rotated + ? 'M ' + f + ' ' + l + : 'M ' + l + ' ' + f)), + i || 'M 0 0' ); - }; - }), - (r.prototype.isWithinShape = function(e, t) { - var n, - r = this, - o = r.d3.select(e); + } + ); + }), + (o.prototype.generateGetLinePoints = function(e, t) { + var n = this, + r = n.config, + o = e.__max__ + 1, + i = n.getShapeX(0, o, e, !!t), + a = n.getShapeY(!!t), + s = n.getShapeOffset(n.isLineType, e, !!t), + c = t ? n.getSubYScale : n.getYScale; + return function(e, t) { + var o = c.call(n, e.id)(0), + u = s(e, t) || o, + l = i(e), + f = a(e); return ( - r.isTargetToShow(t.id) - ? 'circle' === e.nodeName - ? (n = r.isStepType(t) - ? r.isWithinStep(e, r.getYScale(t.id)(t.value)) - : r.isWithinCircle(e, 1.5 * r.pointSelectR(t))) - : 'path' === e.nodeName && - (n = !o.classed(M.bar) || r.isWithinBar(r.d3.mouse(e), e)) - : (n = !1), - n + r.axis_rotated && + ((0 < e.value && f < o) || (e.value < 0 && o < f)) && + (f = o), + [ + [l, f - (o - u)], + [l, f - (o - u)], + [l, f - (o - u)], + [l, f - (o - u)] + ] ); - }), - (r.prototype.getInterpolate = function(e) { - var t = this, - n = t.d3, - r = { - linear: n.curveLinear, - 'linear-closed': n.curveLinearClosed, - basis: n.curveBasis, - 'basis-open': n.curveBasisOpen, - 'basis-closed': n.curveBasisClosed, - bundle: n.curveBundle, - cardinal: n.curveCardinal, - 'cardinal-open': n.curveCardinalOpen, - 'cardinal-closed': n.curveCardinalClosed, - monotone: n.curveMonotoneX, - step: n.curveStep, - 'step-before': n.curveStepBefore, - 'step-after': n.curveStepAfter - }; - return t.isSplineType(e) - ? r[t.config.spline_interpolation_type] || r.cardinal - : t.isStepType(e) - ? r[t.config.line_step_type] - : r.linear; - }), - (r.prototype.initLine = function() { - this.main - .select('.' + M.chart) - .append('g') - .attr('class', M.chartLines); - }), - (r.prototype.updateTargetsForLine = function(e) { - var t, - n = this, - r = n.config, - o = n.classChartLine.bind(n), - i = n.classLines.bind(n), - a = n.classAreas.bind(n), - s = n.classCircles.bind(n), - c = n.classFocus.bind(n); - (t = n.main - .select('.' + M.chartLines) - .selectAll('.' + M.chartLine) - .data(e) - .attr('class', function(e) { - return o(e) + c(e); - }) - .enter() - .append('g') - .attr('class', o) - .style('opacity', 0) - .style('pointer-events', 'none')) - .append('g') - .attr('class', i), - t.append('g').attr('class', a), - t.append('g').attr('class', function(e) { - return n.generateClass(M.selectedCircles, e.id); - }), - t - .append('g') - .attr('class', s) - .style('cursor', function(e) { - return r.data_selection_isselectable(e) ? 'pointer' : null; - }), - e.forEach(function(e) { - n.main - .selectAll( - '.' + M.selectedCircles + n.getTargetSelectorSuffix(e.id) - ) - .selectAll('.' + M.selectedCircle) - .each(function(t) { - t.value = e.values[t.index].value; - }); - }); - }), - (r.prototype.updateLine = function(e) { - var t = this, - n = t.main - .selectAll('.' + M.lines) - .selectAll('.' + M.line) - .data(t.lineData.bind(t)), - r = n - .enter() - .append('path') - .attr('class', t.classLine.bind(t)) - .style('stroke', t.color); - (t.mainLine = r - .merge(n) - .style('opacity', t.initialOpacity.bind(t)) - .style('shape-rendering', function(e) { - return t.isStepType(e) ? 'crispEdges' : ''; - }) - .attr('transform', null)), - n - .exit() - .transition() - .duration(e) - .style('opacity', 0); - }), - (r.prototype.redrawLine = function(e, t, n) { - return [ - (t ? this.mainLine.transition(n) : this.mainLine) - .attr('d', e) - .style('stroke', this.color) - .style('opacity', 1) - ]; - }), - (r.prototype.generateDrawLine = function(e, t) { - var n = this, - r = n.config, - o = n.d3.line(), - i = n.generateGetLinePoints(e, t), - a = t ? n.getSubYScale : n.getYScale, - s = function(e) { - return (t ? n.subxx : n.xx).call(n, e); - }, - c = function(e, t) { - return r.data_groups.length > 0 - ? i(e, t)[0][1] - : a.call(n, e.id)(e.value); - }; + }; + }), + (o.prototype.lineWithRegions = function(e, t, n, r) { + var o, + i, + a, + s, + c, + u, + l, + f, + d, + h, + g, + m = this, + b = m.config, + v = 'M', + _ = m.isCategorized() ? 0.5 : 0, + w = []; + function x(e, t) { + var n; + for (n = 0; n < t.length; n++) + if (t[n].start < e && e <= t[n].end) return !0; + return !1; + } + if (p(r)) + for (o = 0; o < r.length; o++) + (w[o] = {}), + y(r[o].start) + ? (w[o].start = e[0].x) + : (w[o].start = m.isTimeSeries() + ? m.parseDate(r[o].start) + : r[o].start), + y(r[o].end) + ? (w[o].end = e[e.length - 1].x) + : (w[o].end = m.isTimeSeries() + ? m.parseDate(r[o].end) + : r[o].end); + function M(e) { return ( - (o = r.axis_rotated ? o.x(c).y(s) : o.x(s).y(c)), - r.line_connectNull || - (o = o.defined(function(e) { - return null != e.value; - })), - function(e) { - var i, - s = r.line_connectNull - ? n.filterRemoveNull(e.values) - : e.values, - c = t ? n.subX : n.x, - u = a.call(n, e.id), - l = 0, - f = 0; - return ( - n.isLineType(e) - ? r.data_regions[e.id] - ? (i = n.lineWithRegions(s, c, u, r.data_regions[e.id])) - : (n.isStepType(e) && (s = n.convertValuesToStep(s)), - (i = o.curve(n.getInterpolate(e))(s))) - : (s[0] && ((l = c(s[0].x)), (f = u(s[0].value))), - (i = r.axis_rotated - ? 'M ' + f + ' ' + l - : 'M ' + l + ' ' + f)), - i || 'M 0 0' - ); - } + 'M' + e[0][0] + ' ' + e[0][1] + ' ' + e[1][0] + ' ' + e[1][1] ); - }), - (r.prototype.generateGetLinePoints = function(e, t) { - var n = this, - r = n.config, - o = e.__max__ + 1, - i = n.getShapeX(0, o, e, !!t), - a = n.getShapeY(!!t), - s = n.getShapeOffset(n.isLineType, e, !!t), - c = t ? n.getSubYScale : n.getYScale; - return function(e, t) { - var o = c.call(n, e.id)(0), - u = s(e, t) || o, - l = i(e), - f = a(e); - return ( - r.axis_rotated && - ((0 < e.value && f < o) || (e.value < 0 && o < f)) && - (f = o), - [ - [l, f - (o - u)], - [l, f - (o - u)], - [l, f - (o - u)], - [l, f - (o - u)] - ] - ); - }; - }), - (r.prototype.lineWithRegions = function(e, t, n, r) { - var o, - i, - a, - s, - c, - u, - l, - f, - p, - h, - g, - m = this, - y = m.config, - v = 'M', - _ = m.isCategorized() ? 0.5 : 0, - x = []; - function w(e, t) { - var n; - for (n = 0; n < t.length; n++) - if (t[n].start < e && e <= t[n].end) return !0; - return !1; - } - if (d(r)) - for (o = 0; o < r.length; o++) - (x[o] = {}), - b(r[o].start) - ? (x[o].start = e[0].x) - : (x[o].start = m.isTimeSeries() - ? m.parseDate(r[o].start) - : r[o].start), - b(r[o].end) - ? (x[o].end = e[e.length - 1].x) - : (x[o].end = m.isTimeSeries() - ? m.parseDate(r[o].end) - : r[o].end); - function M(e) { - return ( - 'M' + e[0][0] + ' ' + e[0][1] + ' ' + e[1][0] + ' ' + e[1][1] - ); - } - for ( - h = y.axis_rotated + } + for ( + h = b.axis_rotated + ? function(e) { + return n(e.value); + } + : function(e) { + return t(e.x); + }, + g = b.axis_rotated ? function(e) { - return n(e.value); + return t(e.x); } : function(e) { - return t(e.x); + return n(e.value); }, - g = y.axis_rotated - ? function(e) { - return t(e.x); - } - : function(e) { - return n(e.value); - }, - a = m.isTimeSeries() - ? function(e, r, o, i) { - var a = e.x.getTime(), - s = r.x - e.x, - u = new Date(a + s * o), - l = new Date(a + s * (o + i)); - return M( - y.axis_rotated - ? [ - [n(c(o)), t(u)], - [n(c(o + i)), t(l)] - ] - : [ - [t(u), n(c(o))], - [t(l), n(c(o + i))] - ] - ); - } - : function(e, r, o, i) { - return M( - y.axis_rotated - ? [ - [n(c(o), !0), t(s(o))], - [n(c(o + i), !0), t(s(o + i))] - ] - : [ - [t(s(o), !0), n(c(o))], - [t(s(o + i), !0), n(c(o + i))] - ] - ); - }, - o = 0; - o < e.length; - o++ - ) { - if (b(x) || !w(e[o].x, x)) v += ' ' + h(e[o]) + ' ' + g(e[o]); - else - for ( - s = m.getScale(e[o - 1].x + _, e[o].x + _, m.isTimeSeries()), - c = m.getScale(e[o - 1].value, e[o].value), - u = t(e[o].x) - t(e[o - 1].x), - l = n(e[o].value) - n(e[o - 1].value), - p = - 2 * (f = 2 / Math.sqrt(Math.pow(u, 2) + Math.pow(l, 2))), - i = f; - i <= 1; - i += p - ) - v += a(e[o - 1], e[o], i, f); - e[o].x; - } - return v; - }), - (r.prototype.updateArea = function(e) { - var t = this, - n = t.d3, - r = t.main - .selectAll('.' + M.areas) - .selectAll('.' + M.area) - .data(t.lineData.bind(t)), - o = r - .enter() - .append('path') - .attr('class', t.classArea.bind(t)) - .style('fill', t.color) - .style('opacity', function() { - return ( - (t.orgAreaOpacity = +n.select(this).style('opacity')), 0 - ); - }); - (t.mainArea = o.merge(r).style('opacity', t.orgAreaOpacity)), - r - .exit() - .transition() - .duration(e) - .style('opacity', 0); - }), - (r.prototype.redrawArea = function(e, t, n) { - return [ - (t ? this.mainArea.transition(n) : this.mainArea) - .attr('d', e) - .style('fill', this.color) - .style('opacity', this.orgAreaOpacity) - ]; - }), - (r.prototype.generateDrawArea = function(e, t) { - var n = this, - r = n.config, - o = n.d3.area(), - i = n.generateGetAreaPoints(e, t), - a = t ? n.getSubYScale : n.getYScale, - s = function(e) { - return (t ? n.subxx : n.xx).call(n, e); - }, - c = function(e, t) { - return r.data_groups.length > 0 - ? i(e, t)[0][1] - : a.call(n, e.id)(n.getAreaBaseValue(e.id)); - }, - u = function(e, t) { - return r.data_groups.length > 0 - ? i(e, t)[1][1] - : a.call(n, e.id)(e.value); - }; - return ( - (o = r.axis_rotated - ? o - .x0(c) - .x1(u) - .y(s) - : o - .x(s) - .y0(r.area_above ? 0 : c) - .y1(u)), - r.line_connectNull || - (o = o.defined(function(e) { - return null !== e.value; - })), - function(e) { - var t, - i = r.line_connectNull - ? n.filterRemoveNull(e.values) - : e.values, - a = 0, - s = 0; - return ( - n.isAreaType(e) - ? (n.isStepType(e) && (i = n.convertValuesToStep(i)), - (t = o.curve(n.getInterpolate(e))(i))) - : (i[0] && - ((a = n.x(i[0].x)), - (s = n.getYScale(e.id)(i[0].value))), - (t = r.axis_rotated - ? 'M ' + s + ' ' + a - : 'M ' + a + ' ' + s)), - t || 'M 0 0' - ); - } - ); - }), - (r.prototype.getAreaBaseValue = function() { - return 0; - }), - (r.prototype.generateGetAreaPoints = function(e, t) { - var n = this, - r = n.config, - o = e.__max__ + 1, - i = n.getShapeX(0, o, e, !!t), - a = n.getShapeY(!!t), - s = n.getShapeOffset(n.isAreaType, e, !!t), - c = t ? n.getSubYScale : n.getYScale; - return function(e, t) { - var o = c.call(n, e.id)(0), - u = s(e, t) || o, - l = i(e), - f = a(e); + a = m.isTimeSeries() + ? function(e, r, o, i) { + var a = e.x.getTime(), + s = r.x - e.x, + u = new Date(a + s * o), + l = new Date(a + s * (o + i)); + return M( + b.axis_rotated + ? [[n(c(o)), t(u)], [n(c(o + i)), t(l)]] + : [[t(u), n(c(o))], [t(l), n(c(o + i))]] + ); + } + : function(e, r, o, i) { + return M( + b.axis_rotated + ? [ + [n(c(o), !0), t(s(o))], + [n(c(o + i), !0), t(s(o + i))] + ] + : [ + [t(s(o), !0), n(c(o))], + [t(s(o + i), !0), n(c(o + i))] + ] + ); + }, + o = 0; + o < e.length; + o++ + ) { + if (y(w) || !x(e[o].x, w)) v += ' ' + h(e[o]) + ' ' + g(e[o]); + else + for ( + s = m.getScale(e[o - 1].x + _, e[o].x + _, m.isTimeSeries()), + c = m.getScale(e[o - 1].value, e[o].value), + u = t(e[o].x) - t(e[o - 1].x), + l = n(e[o].value) - n(e[o - 1].value), + d = 2 * (f = 2 / Math.sqrt(Math.pow(u, 2) + Math.pow(l, 2))), + i = f; + i <= 1; + i += d + ) + v += a(e[o - 1], e[o], i, f); + e[o].x; + } + return v; + }), + (o.prototype.updateArea = function(e) { + var t = this, + n = t.d3, + r = t.main + .selectAll('.' + M.areas) + .selectAll('.' + M.area) + .data(t.lineData.bind(t)), + o = r + .enter() + .append('path') + .attr('class', t.classArea.bind(t)) + .style('fill', t.color) + .style('opacity', function() { + return (t.orgAreaOpacity = +n.select(this).style('opacity')), 0; + }); + (t.mainArea = o.merge(r).style('opacity', t.orgAreaOpacity)), + r + .exit() + .transition() + .duration(e) + .style('opacity', 0); + }), + (o.prototype.redrawArea = function(e, t, n) { + return [ + (t ? this.mainArea.transition(n) : this.mainArea) + .attr('d', e) + .style('fill', this.color) + .style('opacity', this.orgAreaOpacity) + ]; + }), + (o.prototype.generateDrawArea = function(e, t) { + var n = this, + r = n.config, + o = n.d3.area(), + i = n.generateGetAreaPoints(e, t), + a = t ? n.getSubYScale : n.getYScale, + s = function(e) { + return (t ? n.subxx : n.xx).call(n, e); + }, + c = function(e, t) { + return r.data_groups.length > 0 + ? i(e, t)[0][1] + : a.call(n, e.id)(n.getAreaBaseValue(e.id)); + }, + u = function(e, t) { + return r.data_groups.length > 0 + ? i(e, t)[1][1] + : a.call(n, e.id)(e.value); + }; + return ( + (o = r.axis_rotated + ? o + .x0(c) + .x1(u) + .y(s) + : o + .x(s) + .y0(r.area_above ? 0 : c) + .y1(u)), + r.line_connectNull || + (o = o.defined(function(e) { + return null !== e.value; + })), + function(e) { + var t, + i = r.line_connectNull + ? n.filterRemoveNull(e.values) + : e.values, + a = 0, + s = 0; return ( - r.axis_rotated && - ((0 < e.value && f < o) || (e.value < 0 && o < f)) && - (f = o), - [ - [l, u], - [l, f - (o - u)], - [l, f - (o - u)], - [l, u] - ] + n.isAreaType(e) + ? (n.isStepType(e) && (i = n.convertValuesToStep(i)), + (t = o.curve(n.getInterpolate(e))(i))) + : (i[0] && + ((a = n.x(i[0].x)), (s = n.getYScale(e.id)(i[0].value))), + (t = r.axis_rotated + ? 'M ' + s + ' ' + a + : 'M ' + a + ' ' + s)), + t || 'M 0 0' ); - }; - }), - (r.prototype.updateCircle = function(e, t) { - var n = this, - r = n.main - .selectAll('.' + M.circles) - .selectAll('.' + M.circle) - .data(n.lineOrScatterOrStanfordData.bind(n)), - o = r - .enter() - .append('circle') - .attr( - 'shape-rendering', - n.isStanfordGraphType() ? 'crispEdges' : '' - ) - .attr('class', n.classCircle.bind(n)) - .attr('cx', e) - .attr('cy', t) - .attr('r', n.pointR.bind(n)) - .style( - 'color', - n.isStanfordGraphType() - ? n.getStanfordPointColor.bind(n) - : n.color - ); - (n.mainCircle = o - .merge(r) - .style( - 'opacity', - n.isStanfordGraphType() ? 1 : n.initialOpacityForCircle.bind(n) - )), - r.exit().style('opacity', 0); - }), - (r.prototype.redrawCircle = function(e, t, n, r) { - var o = this, - i = o.main.selectAll('.' + M.selectedCircle); - return [ - (n ? o.mainCircle.transition(r) : o.mainCircle) - .style('opacity', this.opacityForCircle.bind(o)) - .style( - 'color', - o.isStanfordGraphType() - ? o.getStanfordPointColor.bind(o) - : o.color - ) - .attr('cx', e) - .attr('cy', t), - (n ? i.transition(r) : i).attr('cx', e).attr('cy', t) - ]; - }), - (r.prototype.circleX = function(e) { - return e.x || 0 === e.x ? this.x(e.x) : null; - }), - (r.prototype.updateCircleY = function() { - var e, - t, - n = this; - n.config.data_groups.length > 0 - ? ((e = n.getShapeIndices(n.isLineType)), - (t = n.generateGetLinePoints(e)), - (n.circleY = function(e, n) { - return t(e, n)[0][1]; - })) - : (n.circleY = function(e) { - return n.getYScale(e.id)(e.value); - }); - }), - (r.prototype.getCircles = function(e, t) { - return (t - ? this.main.selectAll( - '.' + M.circles + this.getTargetSelectorSuffix(t) - ) - : this.main - ).selectAll('.' + M.circle + (y(e) ? '-' + e : '')); - }), - (r.prototype.expandCircles = function(e, t, n) { - var r = this.pointExpandedR.bind(this); - n && this.unexpandCircles(), - this.getCircles(e, t) - .classed(M.EXPANDED, !0) - .attr('r', r); - }), - (r.prototype.unexpandCircles = function(e) { - var t = this, - n = t.pointR.bind(t); - t.getCircles(e) - .filter(function() { - return t.d3.select(this).classed(M.EXPANDED); - }) - .classed(M.EXPANDED, !1) - .attr('r', n); - }), - (r.prototype.pointR = function(e) { - var t = this.config; - return this.isStepType(e) - ? 0 - : h(t.point_r) - ? t.point_r(e) - : t.point_r; - }), - (r.prototype.pointExpandedR = function(e) { - var t = this.config; - return t.point_focus_expand_enabled - ? h(t.point_focus_expand_r) - ? t.point_focus_expand_r(e) - : t.point_focus_expand_r - ? t.point_focus_expand_r - : 1.75 * this.pointR(e) - : this.pointR(e); - }), - (r.prototype.pointSelectR = function(e) { - var t = this.config; - return h(t.point_select_r) - ? t.point_select_r(e) - : t.point_select_r - ? t.point_select_r - : 4 * this.pointR(e); - }), - (r.prototype.isWithinCircle = function(e, t) { - var n = this.d3, - r = n.mouse(e), - o = n.select(e), - i = +o.attr('cx'), - a = +o.attr('cy'); - return Math.sqrt(Math.pow(i - r[0], 2) + Math.pow(a - r[1], 2)) < t; - }), - (r.prototype.isWithinStep = function(e, t) { - return Math.abs(t - this.d3.mouse(e)[1]) < 30; - }), - (r.prototype.getCurrentWidth = function() { - var e = this.config; - return e.size_width ? e.size_width : this.getParentWidth(); - }), - (r.prototype.getCurrentHeight = function() { - var e = this.config, - t = e.size_height ? e.size_height : this.getParentHeight(); - return t > 0 - ? t - : 320 / (this.hasType('gauge') && !e.gauge_fullCircle ? 2 : 1); - }), - (r.prototype.getCurrentPaddingTop = function() { - var e = this.config, - t = y(e.padding_top) ? e.padding_top : 0; + } + ); + }), + (o.prototype.getAreaBaseValue = function() { + return 0; + }), + (o.prototype.generateGetAreaPoints = function(e, t) { + var n = this, + r = n.config, + o = e.__max__ + 1, + i = n.getShapeX(0, o, e, !!t), + a = n.getShapeY(!!t), + s = n.getShapeOffset(n.isAreaType, e, !!t), + c = t ? n.getSubYScale : n.getYScale; + return function(e, t) { + var o = c.call(n, e.id)(0), + u = s(e, t) || o, + l = i(e), + f = a(e); return ( - this.title && this.title.node() && (t += this.getTitlePadding()), - t + r.axis_rotated && + ((0 < e.value && f < o) || (e.value < 0 && o < f)) && + (f = o), + [[l, u], [l, f - (o - u)], [l, f - (o - u)], [l, u]] ); - }), - (r.prototype.getCurrentPaddingBottom = function() { - var e = this.config; - return y(e.padding_bottom) ? e.padding_bottom : 0; - }), - (r.prototype.getCurrentPaddingLeft = function(e) { - var t = this.config; - return y(t.padding_left) - ? t.padding_left + }; + }), + (o.prototype.updateCircle = function(e, t) { + var n = this, + r = n.main + .selectAll('.' + M.circles) + .selectAll('.' + M.circle) + .data(n.lineOrScatterOrStanfordData.bind(n)), + o = r + .enter() + .append('circle') + .attr( + 'shape-rendering', + n.isStanfordGraphType() ? 'crispEdges' : '' + ) + .attr('class', n.classCircle.bind(n)) + .attr('cx', e) + .attr('cy', t) + .attr('r', n.pointR.bind(n)) + .style( + 'color', + n.isStanfordGraphType() + ? n.getStanfordPointColor.bind(n) + : n.color + ); + (n.mainCircle = o + .merge(r) + .style( + 'opacity', + n.isStanfordGraphType() ? 1 : n.initialOpacityForCircle.bind(n) + )), + r.exit().style('opacity', 0); + }), + (o.prototype.redrawCircle = function(e, t, n, r) { + var o = this, + i = o.main.selectAll('.' + M.selectedCircle); + return [ + (n ? o.mainCircle.transition(r) : o.mainCircle) + .style('opacity', this.opacityForCircle.bind(o)) + .style( + 'color', + o.isStanfordGraphType() + ? o.getStanfordPointColor.bind(o) + : o.color + ) + .attr('cx', e) + .attr('cy', t), + (n ? i.transition(r) : i).attr('cx', e).attr('cy', t) + ]; + }), + (o.prototype.circleX = function(e) { + return e.x || 0 === e.x ? this.x(e.x) : null; + }), + (o.prototype.updateCircleY = function() { + var e, + t, + n = this; + n.config.data_groups.length > 0 + ? ((e = n.getShapeIndices(n.isLineType)), + (t = n.generateGetLinePoints(e)), + (n.circleY = function(e, n) { + return t(e, n)[0][1]; + })) + : (n.circleY = function(e) { + return n.getYScale(e.id)(e.value); + }); + }), + (o.prototype.getCircles = function(e, t) { + return (t + ? this.main.selectAll( + '.' + M.circles + this.getTargetSelectorSuffix(t) + ) + : this.main + ).selectAll('.' + M.circle + (v(e) ? '-' + e : '')); + }), + (o.prototype.expandCircles = function(e, t, n) { + var r = this.pointExpandedR.bind(this); + n && this.unexpandCircles(), + this.getCircles(e, t) + .classed(M.EXPANDED, !0) + .attr('r', r); + }), + (o.prototype.unexpandCircles = function(e) { + var t = this, + n = t.pointR.bind(t); + t.getCircles(e) + .filter(function() { + return t.d3.select(this).classed(M.EXPANDED); + }) + .classed(M.EXPANDED, !1) + .attr('r', n); + }), + (o.prototype.pointR = function(e) { + var t = this.config; + return this.isStepType(e) + ? 0 + : g(t.point_r) + ? t.point_r(e) + : t.point_r; + }), + (o.prototype.pointExpandedR = function(e) { + var t = this.config; + return t.point_focus_expand_enabled + ? g(t.point_focus_expand_r) + ? t.point_focus_expand_r(e) + : t.point_focus_expand_r + ? t.point_focus_expand_r + : 1.75 * this.pointR(e) + : this.pointR(e); + }), + (o.prototype.pointSelectR = function(e) { + var t = this.config; + return g(t.point_select_r) + ? t.point_select_r(e) + : t.point_select_r + ? t.point_select_r + : 4 * this.pointR(e); + }), + (o.prototype.isWithinCircle = function(e, t) { + var n = this.d3, + r = n.mouse(e), + o = n.select(e), + i = +o.attr('cx'), + a = +o.attr('cy'); + return Math.sqrt(Math.pow(i - r[0], 2) + Math.pow(a - r[1], 2)) < t; + }), + (o.prototype.isWithinStep = function(e, t) { + return Math.abs(t - this.d3.mouse(e)[1]) < 30; + }), + (o.prototype.getCurrentWidth = function() { + var e = this.config; + return e.size_width ? e.size_width : this.getParentWidth(); + }), + (o.prototype.getCurrentHeight = function() { + var e = this.config, + t = e.size_height ? e.size_height : this.getParentHeight(); + return t > 0 + ? t + : 320 / (this.hasType('gauge') && !e.gauge_fullCircle ? 2 : 1); + }), + (o.prototype.getCurrentPaddingTop = function() { + var e = this.config, + t = v(e.padding_top) ? e.padding_top : 0; + return ( + this.title && this.title.node() && (t += this.getTitlePadding()), t + ); + }), + (o.prototype.getCurrentPaddingBottom = function() { + var e = this.config; + return v(e.padding_bottom) ? e.padding_bottom : 0; + }), + (o.prototype.getCurrentPaddingLeft = function(e) { + var t = this.config; + return v(t.padding_left) + ? t.padding_left + : t.axis_rotated + ? !t.axis_x_show || t.axis_x_inner + ? 1 + : Math.max(s(this.getAxisWidthByAxisId('x', e)), 40) + : !t.axis_y_show || t.axis_y_inner + ? this.axis.getYAxisLabelPosition().isOuter + ? 30 + : 1 + : s(this.getAxisWidthByAxisId('y', e)); + }), + (o.prototype.getCurrentPaddingRight = function() { + var e = this, + t = e.config, + n = 0, + r = e.isLegendRight ? e.getLegendWidth() + 20 : 0; + return ( + (n = v(t.padding_right) + ? t.padding_right + 1 : t.axis_rotated - ? !t.axis_x_show || t.axis_x_inner - ? 1 - : Math.max(a(this.getAxisWidthByAxisId('x', e)), 40) - : !t.axis_y_show || t.axis_y_inner - ? this.axis.getYAxisLabelPosition().isOuter - ? 30 - : 1 - : a(this.getAxisWidthByAxisId('y', e)); - }), - (r.prototype.getCurrentPaddingRight = function() { - var e = this, - t = e.config, - n = 0, - r = e.isLegendRight ? e.getLegendWidth() + 20 : 0; - return ( - (n = y(t.padding_right) - ? t.padding_right + 1 - : t.axis_rotated - ? 10 + r - : !t.axis_y2_show || t.axis_y2_inner - ? 2 + r + (e.axis.getY2AxisLabelPosition().isOuter ? 20 : 0) - : a(e.getAxisWidthByAxisId('y2')) + r), - e.colorScale && - e.colorScale.node() && - (n += e.getColorScalePadding()), - n - ); - }), - (r.prototype.getParentRectValue = function(e) { - for ( - var t, n = this.selectChart.node(); - n && 'BODY' !== n.tagName; + ? 10 + r + : !t.axis_y2_show || t.axis_y2_inner + ? 2 + r + (e.axis.getY2AxisLabelPosition().isOuter ? 20 : 0) + : s(e.getAxisWidthByAxisId('y2')) + r), + e.colorScale && + e.colorScale.node() && + (n += e.getColorScalePadding()), + n + ); + }), + (o.prototype.getParentRectValue = function(e) { + for ( + var t, n = this.selectChart.node(); + n && 'BODY' !== n.tagName; - ) { - try { - t = n.getBoundingClientRect()[e]; - } catch (r) { - 'width' === e && (t = n.offsetWidth); - } - if (t) break; - n = n.parentNode; + ) { + try { + t = n.getBoundingClientRect()[e]; + } catch (r) { + 'width' === e && (t = n.offsetWidth); } - return t; - }), - (r.prototype.getParentWidth = function() { - return this.getParentRectValue('width'); - }), - (r.prototype.getParentHeight = function() { - var e = this.selectChart.style('height'); - return e.indexOf('px') > 0 ? +e.replace('px', '') : 0; - }), - (r.prototype.getSvgLeft = function(e) { - var t = this, - n = t.config, - r = n.axis_rotated || (!n.axis_rotated && !n.axis_y_inner), - o = n.axis_rotated ? M.axisX : M.axisY, - i = t.main.select('.' + o).node(), - a = i && r ? i.getBoundingClientRect() : { right: 0 }, - s = t.selectChart.node().getBoundingClientRect(), - c = t.hasArcType(), - u = a.right - s.left - (c ? 0 : t.getCurrentPaddingLeft(e)); - return u > 0 ? u : 0; - }), - (r.prototype.getAxisWidthByAxisId = function(e, t) { - var n = this.axis.getLabelPositionById(e); - return this.axis.getMaxTickWidth(e, t) + (n.isInner ? 20 : 40); - }), - (r.prototype.getHorizontalAxisHeight = function(e) { - var t = this, - n = t.config, - r = 30; - return 'x' !== e || n.axis_x_show - ? 'x' === e && n.axis_x_height - ? n.axis_x_height - : 'y' !== e || n.axis_y_show - ? 'y2' !== e || n.axis_y2_show - ? ('x' === e && - !n.axis_rotated && - n.axis_x_tick_rotate && - (r = - 30 + - t.axis.getMaxTickWidth(e) * - Math.cos( - (Math.PI * (90 - Math.abs(n.axis_x_tick_rotate))) / - 180 - )), - 'y' === e && - n.axis_rotated && - n.axis_y_tick_rotate && - (r = - 30 + - t.axis.getMaxTickWidth(e) * - Math.cos( - (Math.PI * (90 - Math.abs(n.axis_y_tick_rotate))) / - 180 - )), - r + - (t.axis.getLabelPositionById(e).isInner ? 0 : 10) + - ('y2' === e ? -10 : 0)) - : t.rotated_padding_top - : !n.legend_show || t.isLegendRight || t.isLegendInset - ? 1 - : 10 - : 8; - }), - (r.prototype.initBrush = function(e) { - var t = this, - n = t.d3; - return ( - (t.brush = (t.config.axis_rotated ? n.brushY() : n.brushX()) - .on('brush', function() { - var e = n.event.sourceEvent; - (e && 'zoom' === e.type) || t.redrawForBrush(); - }) - .on('end', function() { - var e = n.event.sourceEvent; - (e && 'zoom' === e.type) || - (t.brush.empty() && - e && - 'end' !== e.type && - t.brush.clear()); - })), - (t.brush.updateExtent = function() { - var e, - n = this.scale.range(); - return ( - (e = t.config.axis_rotated - ? [ - [0, n[0]], - [t.width2, n[1]] - ] - : [ - [n[0], 0], - [n[1], t.height2] - ]), - this.extent(e), - this - ); - }), - (t.brush.updateScale = function(e) { - return (this.scale = e), this; - }), - (t.brush.update = function(e) { - this.updateScale(e || t.subX).updateExtent(), - t.context.select('.' + M.brush).call(this); - }), - (t.brush.clear = function() { - t.context.select('.' + M.brush).call(t.brush.move, null); - }), - (t.brush.selection = function() { - return n.brushSelection(t.context.select('.' + M.brush).node()); - }), - (t.brush.selectionAsValue = function(e, n) { - var r, o; - return e - ? (t.context && - ((r = [this.scale(e[0]), this.scale(e[1])]), - (o = t.context.select('.' + M.brush)), - n && (o = o.transition()), - t.brush.move(o, r)), - []) - : ((r = t.brush.selection() || [0, 0]), - [this.scale.invert(r[0]), this.scale.invert(r[1])]); - }), - (t.brush.empty = function() { - var e = t.brush.selection(); - return !e || e[0] === e[1]; - }), - t.brush.updateScale(e) - ); - }), - (r.prototype.initSubchart = function() { - var e = this, - t = e.config, - n = (e.context = e.svg - .append('g') - .attr('transform', e.getTranslate('context'))); - n.style('visibility', 'visible'), - n - .append('g') - .attr('clip-path', e.clipPathForSubchart) - .attr('class', M.chart), - n - .select('.' + M.chart) - .append('g') - .attr('class', M.chartBars), - n - .select('.' + M.chart) - .append('g') - .attr('class', M.chartLines), - n - .append('g') - .attr('clip-path', e.clipPath) - .attr('class', M.brush), - (e.axes.subx = n - .append('g') - .attr('class', M.axisX) - .attr('transform', e.getTranslate('subx')) - .attr('clip-path', t.axis_rotated ? '' : e.clipPathForXAxis)); - }), - (r.prototype.initSubchartBrush = function() { - this.initBrush(this.subX).updateExtent(), - this.context.select('.' + M.brush).call(this.brush); - }), - (r.prototype.updateTargetsForSubchart = function(e) { - var t, - n, - r, - o, - i = this, - a = i.context, - s = i.config, - c = i.classChartBar.bind(i), - u = i.classBars.bind(i), - l = i.classChartLine.bind(i), - f = i.classLines.bind(i), - d = i.classAreas.bind(i); - (r = (o = a - .select('.' + M.chartBars) - .selectAll('.' + M.chartBar) + if (t) break; + n = n.parentNode; + } + return t; + }), + (o.prototype.getParentWidth = function() { + return this.getParentRectValue('width'); + }), + (o.prototype.getParentHeight = function() { + var e = this.selectChart.style('height'); + return e.indexOf('px') > 0 ? +e.replace('px', '') : 0; + }), + (o.prototype.getSvgLeft = function(e) { + var t = this, + n = t.config, + r = n.axis_rotated || (!n.axis_rotated && !n.axis_y_inner), + o = n.axis_rotated ? M.axisX : M.axisY, + i = t.main.select('.' + o).node(), + a = i && r ? i.getBoundingClientRect() : { right: 0 }, + s = t.selectChart.node().getBoundingClientRect(), + c = t.hasArcType(), + u = a.right - s.left - (c ? 0 : t.getCurrentPaddingLeft(e)); + return u > 0 ? u : 0; + }), + (o.prototype.getAxisWidthByAxisId = function(e, t) { + var n = this.axis.getLabelPositionById(e); + return this.axis.getMaxTickWidth(e, t) + (n.isInner ? 20 : 40); + }), + (o.prototype.getHorizontalAxisHeight = function(e) { + var t = this, + n = t.config, + r = 30; + return 'x' !== e || n.axis_x_show + ? 'x' === e && n.axis_x_height + ? n.axis_x_height + : 'y' !== e || n.axis_y_show + ? 'y2' !== e || n.axis_y2_show + ? ('x' === e && + !n.axis_rotated && + n.axis_x_tick_rotate && + (r = + 30 + + t.axis.getMaxTickWidth(e) * + Math.cos( + (Math.PI * (90 - Math.abs(n.axis_x_tick_rotate))) / + 180 + )), + 'y' === e && + n.axis_rotated && + n.axis_y_tick_rotate && + (r = + 30 + + t.axis.getMaxTickWidth(e) * + Math.cos( + (Math.PI * (90 - Math.abs(n.axis_y_tick_rotate))) / + 180 + )), + r + + (t.axis.getLabelPositionById(e).isInner ? 0 : 10) + + ('y2' === e ? -10 : 0)) + : t.rotated_padding_top + : !n.legend_show || t.isLegendRight || t.isLegendInset + ? 1 + : 10 + : 8; + }), + (o.prototype.initBrush = function(e) { + var t = this, + n = t.d3; + return ( + (t.brush = (t.config.axis_rotated ? n.brushY() : n.brushX()) + .on('brush', function() { + var e = n.event.sourceEvent; + (e && 'zoom' === e.type) || t.redrawForBrush(); + }) + .on('end', function() { + var e = n.event.sourceEvent; + (e && 'zoom' === e.type) || + (t.brush.empty() && e && 'end' !== e.type && t.brush.clear()); + })), + (t.brush.updateExtent = function() { + var e, + n = this.scale.range(); + return ( + (e = t.config.axis_rotated + ? [[0, n[0]], [t.width2, n[1]]] + : [[n[0], 0], [n[1], t.height2]]), + this.extent(e), + this + ); + }), + (t.brush.updateScale = function(e) { + return (this.scale = e), this; + }), + (t.brush.update = function(e) { + this.updateScale(e || t.subX).updateExtent(), + t.context.select('.' + M.brush).call(this); + }), + (t.brush.clear = function() { + t.context.select('.' + M.brush).call(t.brush.move, null); + }), + (t.brush.selection = function() { + return n.brushSelection(t.context.select('.' + M.brush).node()); + }), + (t.brush.selectionAsValue = function(e, n) { + var r, o; + return e + ? (t.context && + ((r = [this.scale(e[0]), this.scale(e[1])]), + (o = t.context.select('.' + M.brush)), + n && (o = o.transition()), + t.brush.move(o, r)), + []) + : ((r = t.brush.selection() || [0, 0]), + [this.scale.invert(r[0]), this.scale.invert(r[1])]); + }), + (t.brush.empty = function() { + var e = t.brush.selection(); + return !e || e[0] === e[1]; + }), + t.brush.updateScale(e) + ); + }), + (o.prototype.initSubchart = function() { + var e = this, + t = e.config, + n = (e.context = e.svg + .append('g') + .attr('transform', e.getTranslate('context'))); + n.style('visibility', 'visible'), + n + .append('g') + .attr('clip-path', e.clipPathForSubchart) + .attr('class', M.chart), + n + .select('.' + M.chart) + .append('g') + .attr('class', M.chartBars), + n + .select('.' + M.chart) + .append('g') + .attr('class', M.chartLines), + n + .append('g') + .attr('clip-path', e.clipPath) + .attr('class', M.brush), + (e.axes.subx = n + .append('g') + .attr('class', M.axisX) + .attr('transform', e.getTranslate('subx')) + .attr('clip-path', t.axis_rotated ? '' : e.clipPathForXAxis)); + }), + (o.prototype.initSubchartBrush = function() { + this.initBrush(this.subX).updateExtent(), + this.context.select('.' + M.brush).call(this.brush); + }), + (o.prototype.updateTargetsForSubchart = function(e) { + var t, + n, + r, + o, + i = this, + a = i.context, + s = i.config, + c = i.classChartBar.bind(i), + u = i.classBars.bind(i), + l = i.classChartLine.bind(i), + f = i.classLines.bind(i), + d = i.classAreas.bind(i); + (r = (o = a + .select('.' + M.chartBars) + .selectAll('.' + M.chartBar) + .data(e)) + .enter() + .append('g') + .style('opacity', 0)) + .merge(o) + .attr('class', c), + r.append('g').attr('class', u), + (t = (n = a + .select('.' + M.chartLines) + .selectAll('.' + M.chartLine) .data(e)) .enter() .append('g') .style('opacity', 0)) - .merge(o) - .attr('class', c), - r.append('g').attr('class', u), - (t = (n = a - .select('.' + M.chartLines) - .selectAll('.' + M.chartLine) - .data(e)) - .enter() - .append('g') - .style('opacity', 0)) - .merge(n) - .attr('class', l), - t.append('g').attr('class', f), - t.append('g').attr('class', d), - a - .selectAll('.' + M.brush + ' rect') - .attr( - s.axis_rotated ? 'width' : 'height', - s.axis_rotated ? i.width2 : i.height2 - ); - }), - (r.prototype.updateBarForSubchart = function(e) { - var t = this, - n = t.context - .selectAll('.' + M.bars) - .selectAll('.' + M.bar) - .data(t.barData.bind(t)), - r = n - .enter() - .append('path') - .attr('class', t.classBar.bind(t)) - .style('stroke', 'none') - .style('fill', t.color); - n + .merge(n) + .attr('class', l), + t.append('g').attr('class', f), + t.append('g').attr('class', d), + a + .selectAll('.' + M.brush + ' rect') + .attr( + s.axis_rotated ? 'width' : 'height', + s.axis_rotated ? i.width2 : i.height2 + ); + }), + (o.prototype.updateBarForSubchart = function(e) { + var t = this, + n = t.context + .selectAll('.' + M.bars) + .selectAll('.' + M.bar) + .data(t.barData.bind(t)), + r = n + .enter() + .append('path') + .attr('class', t.classBar.bind(t)) + .style('stroke', 'none') + .style('fill', t.color); + n + .exit() + .transition() + .duration(e) + .style('opacity', 0) + .remove(), + (t.contextBar = r + .merge(n) + .style('opacity', t.initialOpacity.bind(t))); + }), + (o.prototype.redrawBarForSubchart = function(e, t, n) { + (t + ? this.contextBar.transition(Math.random().toString()).duration(n) + : this.contextBar + ) + .attr('d', e) + .style('opacity', 1); + }), + (o.prototype.updateLineForSubchart = function(e) { + var t = this, + n = t.context + .selectAll('.' + M.lines) + .selectAll('.' + M.line) + .data(t.lineData.bind(t)), + r = n + .enter() + .append('path') + .attr('class', t.classLine.bind(t)) + .style('stroke', t.color); + n + .exit() + .transition() + .duration(e) + .style('opacity', 0) + .remove(), + (t.contextLine = r + .merge(n) + .style('opacity', t.initialOpacity.bind(t))); + }), + (o.prototype.redrawLineForSubchart = function(e, t, n) { + (t + ? this.contextLine.transition(Math.random().toString()).duration(n) + : this.contextLine + ) + .attr('d', e) + .style('opacity', 1); + }), + (o.prototype.updateAreaForSubchart = function(e) { + var t = this, + n = t.d3, + r = t.context + .selectAll('.' + M.areas) + .selectAll('.' + M.area) + .data(t.lineData.bind(t)), + o = r + .enter() + .append('path') + .attr('class', t.classArea.bind(t)) + .style('fill', t.color) + .style('opacity', function() { + return (t.orgAreaOpacity = +n.select(this).style('opacity')), 0; + }); + r + .exit() + .transition() + .duration(e) + .style('opacity', 0) + .remove(), + (t.contextArea = o.merge(r).style('opacity', 0)); + }), + (o.prototype.redrawAreaForSubchart = function(e, t, n) { + (t + ? this.contextArea.transition(Math.random().toString()).duration(n) + : this.contextArea + ) + .attr('d', e) + .style('fill', this.color) + .style('opacity', this.orgAreaOpacity); + }), + (o.prototype.redrawSubchart = function(e, t, n, r, o, i, a) { + var s, + c, + u, + l = this, + f = l.d3; + f.event && + 'zoom' === f.event.type && + l.brush.selectionAsValue(l.x.orgDomain()), + e && + (l.brush.empty() || l.brush.selectionAsValue(l.x.orgDomain()), + (s = l.generateDrawArea(o, !0)), + (c = l.generateDrawBar(i, !0)), + (u = l.generateDrawLine(a, !0)), + l.updateBarForSubchart(n), + l.updateLineForSubchart(n), + l.updateAreaForSubchart(n), + l.redrawBarForSubchart(c, n, n), + l.redrawLineForSubchart(u, n, n), + l.redrawAreaForSubchart(s, n, n)); + }), + (o.prototype.redrawForBrush = function() { + var e, + t = this, + n = t.x, + r = t.d3; + t.redraw({ + withTransition: !1, + withY: t.config.zoom_rescale, + withSubchart: !1, + withUpdateXDomain: !0, + withEventRect: !1, + withDimension: !1 + }), + (e = r.event.selection || t.brush.scale.range()), + t.main + .select('.' + M.eventRect) + .call( + t.zoom.transform, + r.zoomIdentity + .scale(t.width / (e[1] - e[0])) + .translate(-e[0], 0) + ), + t.config.subchart_onbrush.call(t.api, n.orgDomain()); + }), + (o.prototype.transformContext = function(e, t) { + var n; + t && t.axisSubX + ? (n = t.axisSubX) + : ((n = this.context.select('.' + M.axisX)), + e && (n = n.transition())), + this.context.attr('transform', this.getTranslate('context')), + n.attr('transform', this.getTranslate('subx')); + }), + (o.prototype.getDefaultSelection = function() { + var e = this, + t = e.config, + n = g(t.axis_x_selection) + ? t.axis_x_selection(e.getXDomain(e.data.targets)) + : t.axis_x_selection; + return ( + e.isTimeSeries() && (n = [e.parseDate(n[0]), e.parseDate(n[1])]), n + ); + }), + (o.prototype.removeSubchart = function() { + (this.brush = null), this.context.remove(), (this.context = null); + }), + (o.prototype.initText = function() { + this.main + .select('.' + M.chart) + .append('g') + .attr('class', M.chartTexts), + (this.mainText = this.d3.selectAll([])); + }), + (o.prototype.updateTargetsForText = function(e) { + var t = this, + n = t.classChartText.bind(t), + r = t.classTexts.bind(t), + o = t.classFocus.bind(t), + i = t.main + .select('.' + M.chartTexts) + .selectAll('.' + M.chartText) + .data(e), + a = i + .enter() + .append('g') + .attr('class', n) + .style('opacity', 0) + .style('pointer-events', 'none'); + a.append('g').attr('class', r), + a.merge(i).attr('class', function(e) { + return n(e) + o(e); + }); + }), + (o.prototype.updateText = function(e, t, n) { + var r = this, + o = r.config, + i = r.barOrLineData.bind(r), + a = r.classText.bind(r), + s = r.main + .selectAll('.' + M.texts) + .selectAll('.' + M.text) + .data(i), + c = s + .enter() + .append('text') + .attr('class', a) + .attr('text-anchor', function(e) { + return o.axis_rotated + ? e.value < 0 + ? 'end' + : 'start' + : 'middle'; + }) + .style('stroke', 'none') + .attr('x', e) + .attr('y', t) + .style('fill', function(e) { + return r.color(e); + }) + .style('fill-opacity', 0); + (r.mainText = c.merge(s).text(function(e, t, n) { + return r.dataLabelFormat(e.id)(e.value, e.id, t, n); + })), + s + .exit() + .transition() + .duration(n) + .style('fill-opacity', 0) + .remove(); + }), + (o.prototype.redrawText = function(e, t, n, r, o) { + return [ + (r ? this.mainText.transition(o) : this.mainText) + .attr('x', e) + .attr('y', t) + .style('fill', this.color) + .style('fill-opacity', n ? 0 : this.opacityForText.bind(this)) + ]; + }), + (o.prototype.getTextRect = function(e, t, n) { + var r, + o = this.d3 + .select('body') + .append('div') + .classed('c3', !0), + i = o + .append('svg') + .style('visibility', 'hidden') + .style('position', 'fixed') + .style('top', 0) + .style('left', 0), + a = this.d3.select(n).style('font'); + return ( + i + .selectAll('.dummy') + .data([e]) + .enter() + .append('text') + .classed(t || '', !0) + .style('font', a) + .text(e) + .each(function() { + r = f(this); + }), + o.remove(), + r + ); + }), + (o.prototype.generateXYForText = function(e, t, n, r) { + var o = this, + i = o.generateGetAreaPoints(e, !1), + a = o.generateGetBarPoints(t, !1), + s = o.generateGetLinePoints(n, !1), + c = r ? o.getXForText : o.getYForText; + return function(e, t) { + var n = o.isAreaType(e) ? i : o.isBarType(e) ? a : s; + return c.call(o, n(e, t), e, this); + }; + }), + (o.prototype.getXForText = function(e, t, n) { + var r, + o, + i = this, + a = f(n); + return ( + i.config.axis_rotated + ? ((o = i.isBarType(t) ? 4 : 6), + (r = e[2][1] + o * (t.value < 0 ? -1 : 1))) + : (r = i.hasType('bar') ? (e[2][0] + e[0][0]) / 2 : e[0][0]), + null === t.value && + (r > i.width ? (r = i.width - a.width) : r < 0 && (r = 4)), + r + ); + }), + (o.prototype.getYForText = function(e, t, n) { + var r, + o = this, + i = f(n); + return ( + o.config.axis_rotated + ? (r = (e[0][0] + e[2][0] + 0.6 * i.height) / 2) + : ((r = e[2][1]), + t.value < 0 || (0 === t.value && !o.hasPositiveValue) + ? ((r += i.height), + o.isBarType(t) && o.isSafari() + ? (r -= 3) + : !o.isBarType(t) && o.isChrome() && (r += 3)) + : (r += o.isBarType(t) ? -3 : -6)), + null !== t.value || + o.config.axis_rotated || + (r < i.height + ? (r = i.height) + : r > this.height && (r = this.height - 4)), + r + ); + }), + (o.prototype.initTitle = function() { + this.title = this.svg + .append('text') + .text(this.config.title_text) + .attr('class', this.CLASS.title); + }), + (o.prototype.redrawTitle = function() { + var e = this; + e.title.attr('x', e.xForTitle.bind(e)).attr('y', e.yForTitle.bind(e)); + }), + (o.prototype.xForTitle = function() { + var e = this, + t = e.config, + n = t.title_position || 'left'; + return n.indexOf('right') >= 0 + ? e.currentWidth - + e.getTextRect( + e.title.node().textContent, + e.CLASS.title, + e.title.node() + ).width - + t.title_padding.right + : n.indexOf('center') >= 0 + ? Math.max( + (e.currentWidth - + e.getTextRect( + e.title.node().textContent, + e.CLASS.title, + e.title.node() + ).width) / + 2, + 0 + ) + : t.title_padding.left; + }), + (o.prototype.yForTitle = function() { + var e = this; + return ( + e.config.title_padding.top + + e.getTextRect( + e.title.node().textContent, + e.CLASS.title, + e.title.node() + ).height + ); + }), + (o.prototype.getTitlePadding = function() { + return this.yForTitle() + this.config.title_padding.bottom; + }), + (o.prototype.drawColorScale = function() { + var e, + t, + n, + r, + o, + i, + a, + s = this, + c = s.d3, + u = s.config, + l = s.data.targets[0]; + if ( + ((e = isNaN(u.stanford_scaleWidth) ? 20 : u.stanford_scaleWidth), + 5, + e < 0) + ) + throw Error( + "Colorscale's barheight and barwidth must be greater than 0." + ); + (a = s.height - u.stanford_padding.bottom - u.stanford_padding.top), + (n = c.range(u.stanford_padding.bottom, a, 5)), + (i = c.scaleSequential(l.colors).domain([n[n.length - 1], n[0]])), + s.colorScale && s.colorScale.remove(), + (s.colorScale = s.svg + .append('g') + .attr('width', 50) + .attr('height', a) + .attr('class', M.colorScale)), + s.colorScale + .append('g') + .attr('transform', `translate(0, ${u.stanford_padding.top})`) + .selectAll('bars') + .data(n) + .enter() + .append('rect') + .attr('y', (e, t) => 5 * t) + .attr('x', 0) + .attr('width', e) + .attr('height', 5) + .attr('fill', function(e) { + return i(e); + }), + (o = c + .scaleLog() + .domain([l.minEpochs, l.maxEpochs]) + .range([ + n[0] + u.stanford_padding.top + n[n.length - 1] + 5 - 1, + n[0] + u.stanford_padding.top + ])), + (r = c.axisRight(o)), + 'pow10' === u.stanford_scaleFormat + ? r.tickValues([1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7]) + : g(u.stanford_scaleFormat) + ? r.tickFormat(u.stanford_scaleFormat) + : r.tickFormat(c.format('d')), + g(u.stanford_scaleValues) && + r.tickValues(u.stanford_scaleValues(l.minEpochs, l.maxEpochs)), + (t = s.colorScale + .append('g') + .attr('class', 'legend axis') + .attr('transform', `translate(${e},0)`) + .call(r)), + 'pow10' === u.stanford_scaleFormat && + t + .selectAll('.tick text') + .text(null) + .filter(E) + .text(10) + .append('tspan') + .attr('dy', '-.7em') + .text(function(e) { + return Math.round(Math.log(e) / Math.LN10); + }), + s.colorScale.attr( + 'transform', + `translate(${s.currentWidth - s.xForColorScale()}, 0)` + ); + }), + (o.prototype.xForColorScale = function() { + return ( + this.config.stanford_padding.right + f(this.colorScale.node()).width + ); + }), + (o.prototype.getColorScalePadding = function() { + return this.xForColorScale() + this.config.stanford_padding.left + 20; + }), + (o.prototype.isStanfordGraphType = function() { + return 'stanford' === this.config.data_type; + }), + (o.prototype.initStanfordData = function() { + var e, + t, + n, + r = this.d3, + o = this.config, + i = this.data.targets[0]; + if ( + (i.values.sort(C), + (e = i.values.map(e => e.epochs)), + (n = isNaN(o.stanford_scaleMin) ? r.min(e) : o.stanford_scaleMin) > + (t = isNaN(o.stanford_scaleMax) ? r.max(e) : o.stanford_scaleMax)) + ) + throw Error('Number of minEpochs has to be smaller than maxEpochs'); + (i.colors = g(o.stanford_colors) + ? o.stanford_colors + : r.interpolateHslLong(r.hsl(250, 1, 0.5), r.hsl(0, 1, 0.5))), + (i.colorscale = r.scaleSequentialLog(i.colors).domain([n, t])), + (i.minEpochs = n), + (i.maxEpochs = t); + }), + (o.prototype.getStanfordPointColor = function(e) { + return this.data.targets[0].colorscale(e.epochs); + }), + (o.prototype.getCentroid = function(e) { + var t, + n, + r, + o, + i, + a = A(e), + s = 0, + c = 0; + for (t = 0, n = e.length - 1; t < e.length; n = t, t += 1) + (o = e[t]), + (i = e[n]), + (r = o.x * i.y - i.x * o.y), + (s += (o.x + i.x) * r), + (c += (o.y + i.y) * r); + return { x: s / (r = 6 * a), y: c / r }; + }), + (o.prototype.getStanfordTooltipTitle = function(e) { + var t = this.axis.getLabelText('x'), + n = this.axis.getLabelText('y'); + return `\n ${t ? w(t) : 'x'}${ + e.x + }\n ${n ? w(n) : 'y'}${ + e.value + }\n `; + }), + (o.prototype.countEpochsInRegion = function(e) { + var t, + n, + r = this.data.targets[0]; + return ( + (t = r.values.reduce((e, t) => e + Number(t.epochs), 0)), + { + value: (n = r.values.reduce( + (t, n) => (T(n, e) ? t + Number(n.epochs) : t), + 0 + )), + percentage: 0 !== n ? ((n / t) * 100).toFixed(1) : 0 + } + ); + }); + var A = function(e) { + var t, + n, + r, + o, + i = 0; + for (t = 0, n = e.length - 1; t < e.length; n = t, t += 1) + (r = e[t]), (o = e[n]), (i += r.x * o.y), (i -= r.y * o.x); + return (i /= 2); + }, + T = function(e, t) { + let n, + r, + o, + i, + a, + s = e.x, + c = e.value, + u = !1; + for (let e = 0, l = t.length - 1; e < t.length; l = e++) + (n = t[e].x), + (r = t[e].y), + (i = t[l].x), + (a = + r > c != (o = t[l].y) > c && + s < ((i - n) * (c - r)) / (o - r) + n) && (u = !u); + return u; + }, + C = function(e, t) { + return e.epochs < t.epochs ? -1 : e.epochs > t.epochs ? 1 : 0; + }; + (o.prototype.initStanfordElements = function() { + var e = this; + (e.stanfordElements = e.main + .select('.' + M.chart) + .append('g') + .attr('class', M.stanfordElements)), + e.stanfordElements.append('g').attr('class', M.stanfordLines), + e.stanfordElements.append('g').attr('class', M.stanfordTexts), + e.stanfordElements.append('g').attr('class', M.stanfordRegions); + }), + (o.prototype.updateStanfordElements = function(e) { + var t, + n, + r, + o, + i, + a, + s = this, + c = s.main, + u = s.config, + l = s.xvCustom.bind(s), + f = s.yvCustom.bind(s), + d = s.countEpochsInRegion.bind(s); + (n = (t = c + .select('.' + M.stanfordLines) + .style('shape-rendering', 'geometricprecision') + .selectAll('.' + M.stanfordLine) + .data(u.stanford_lines)) + .enter() + .append('g') + .attr('class', function(e) { + return M.stanfordLine + (e.class ? ' ' + e.class : ''); + })) + .append('line') + .attr('x1', e => + u.axis_rotated ? f(e, 'value_y1') : l(e, 'value_x1') + ) + .attr('x2', e => + u.axis_rotated ? f(e, 'value_y2') : l(e, 'value_x2') + ) + .attr('y1', e => + u.axis_rotated ? l(e, 'value_x1') : f(e, 'value_y1') + ) + .attr('y2', e => + u.axis_rotated ? l(e, 'value_x2') : f(e, 'value_y2') + ) + .style('opacity', 0), + (s.stanfordLines = n.merge(t)), + s.stanfordLines + .select('line') + .transition() + .duration(e) + .attr('x1', e => + u.axis_rotated ? f(e, 'value_y1') : l(e, 'value_x1') + ) + .attr('x2', e => + u.axis_rotated ? f(e, 'value_y2') : l(e, 'value_x2') + ) + .attr('y1', e => + u.axis_rotated ? l(e, 'value_x1') : f(e, 'value_y1') + ) + .attr('y2', e => + u.axis_rotated ? l(e, 'value_x2') : f(e, 'value_y2') + ) + .style('opacity', 1), + t .exit() .transition() .duration(e) .style('opacity', 0) .remove(), - (t.contextBar = r - .merge(n) - .style('opacity', t.initialOpacity.bind(t))); - }), - (r.prototype.redrawBarForSubchart = function(e, t, n) { - (t - ? this.contextBar.transition(Math.random().toString()).duration(n) - : this.contextBar - ) - .attr('d', e) - .style('opacity', 1); - }), - (r.prototype.updateLineForSubchart = function(e) { - var t = this, - n = t.context - .selectAll('.' + M.lines) - .selectAll('.' + M.line) - .data(t.lineData.bind(t)), - r = n - .enter() - .append('path') - .attr('class', t.classLine.bind(t)) - .style('stroke', t.color); - n + (a = (i = c + .select('.' + M.stanfordTexts) + .selectAll('.' + M.stanfordText) + .data(u.stanford_texts)) + .enter() + .append('g') + .attr('class', function(e) { + return M.stanfordText + (e.class ? ' ' + e.class : ''); + })) + .append('text') + .attr('x', e => (u.axis_rotated ? f(e, 'y') : l(e, 'x'))) + .attr('y', e => (u.axis_rotated ? l(e, 'x') : f(e, 'y'))) + .style('opacity', 0), + (s.stanfordTexts = a.merge(i)), + s.stanfordTexts + .select('text') + .transition() + .duration(e) + .attr('x', e => (u.axis_rotated ? f(e, 'y') : l(e, 'x'))) + .attr('y', e => (u.axis_rotated ? l(e, 'x') : f(e, 'y'))) + .text(function(e) { + return e.content; + }) + .style('opacity', 1), + i .exit() .transition() .duration(e) .style('opacity', 0) .remove(), - (t.contextLine = r - .merge(n) - .style('opacity', t.initialOpacity.bind(t))); - }), - (r.prototype.redrawLineForSubchart = function(e, t, n) { - (t - ? this.contextLine - .transition(Math.random().toString()) - .duration(n) - : this.contextLine - ) - .attr('d', e) - .style('opacity', 1); - }), - (r.prototype.updateAreaForSubchart = function(e) { - var t = this, - n = t.d3, - r = t.context - .selectAll('.' + M.areas) - .selectAll('.' + M.area) - .data(t.lineData.bind(t)), - o = r - .enter() - .append('path') - .attr('class', t.classArea.bind(t)) - .style('fill', t.color) - .style('opacity', function() { - return ( - (t.orgAreaOpacity = +n.select(this).style('opacity')), 0 - ); - }); + (o = (r = c + .select('.' + M.stanfordRegions) + .selectAll('.' + M.stanfordRegion) + .data(u.stanford_regions)) + .enter() + .append('g') + .attr('class', function(e) { + return M.stanfordRegion + (e.class ? ' ' + e.class : ''); + })) + .append('polygon') + .attr('points', e => + e.points + .map(e => + [ + u.axis_rotated ? f(e, 'y') : l(e, 'x'), + u.axis_rotated ? l(e, 'x') : f(e, 'y') + ].join(',') + ) + .join(' ') + ) + .style('opacity', 0), + o + .append('text') + .attr('x', e => s.getCentroid(e.points).x) + .attr('y', e => s.getCentroid(e.points).y) + .style('opacity', 0), + (s.stanfordRegions = o.merge(r)), + s.stanfordRegions + .select('polygon') + .transition() + .duration(e) + .attr('points', e => + e.points + .map(e => + [ + u.axis_rotated ? f(e, 'y') : l(e, 'x'), + u.axis_rotated ? l(e, 'x') : f(e, 'y') + ].join(',') + ) + .join(' ') + ) + .style('opacity', e => (e.opacity ? e.opacity : 0.2)), + s.stanfordRegions + .select('text') + .transition() + .duration(e) + .attr('x', e => + u.axis_rotated + ? f(s.getCentroid(e.points), 'y') + : l(s.getCentroid(e.points), 'x') + ) + .attr('y', e => + u.axis_rotated + ? l(s.getCentroid(e.points), 'x') + : f(s.getCentroid(e.points), 'y') + ) + .text(function(e) { + var t, n, r; + return e.text + ? (s.isStanfordGraphType() && + ((t = (r = d(e.points)).value), (n = r.percentage)), + e.text(t, n)) + : ''; + }) + .attr('text-anchor', 'middle') + .attr('dominant-baseline', 'middle') + .style('opacity', 1), r .exit() .transition() .duration(e) .style('opacity', 0) - .remove(), - (t.contextArea = o.merge(r).style('opacity', 0)); - }), - (r.prototype.redrawAreaForSubchart = function(e, t, n) { - (t - ? this.contextArea - .transition(Math.random().toString()) - .duration(n) - : this.contextArea - ) - .attr('d', e) - .style('fill', this.color) - .style('opacity', this.orgAreaOpacity); - }), - (r.prototype.redrawSubchart = function(e, t, n, r, o, i, a) { - var s, - c, - u, - l = this, - f = l.d3; - f.event && - 'zoom' === f.event.type && - l.brush.selectionAsValue(l.x.orgDomain()), - e && - (l.brush.empty() || l.brush.selectionAsValue(l.x.orgDomain()), - (s = l.generateDrawArea(o, !0)), - (c = l.generateDrawBar(i, !0)), - (u = l.generateDrawLine(a, !0)), - l.updateBarForSubchart(n), - l.updateLineForSubchart(n), - l.updateAreaForSubchart(n), - l.redrawBarForSubchart(c, n, n), - l.redrawLineForSubchart(u, n, n), - l.redrawAreaForSubchart(s, n, n)); - }), - (r.prototype.redrawForBrush = function() { - var e, - t = this, - n = t.x, - r = t.d3; - t.redraw({ - withTransition: !1, - withY: t.config.zoom_rescale, - withSubchart: !1, - withUpdateXDomain: !0, - withEventRect: !1, - withDimension: !1 - }), - (e = r.event.selection || t.brush.scale.range()), - t.main - .select('.' + M.eventRect) - .call( - t.zoom.transform, - r.zoomIdentity - .scale(t.width / (e[1] - e[0])) - .translate(-e[0], 0) - ), - t.config.subchart_onbrush.call(t.api, n.orgDomain()); - }), - (r.prototype.transformContext = function(e, t) { - var n; - t && t.axisSubX - ? (n = t.axisSubX) - : ((n = this.context.select('.' + M.axisX)), - e && (n = n.transition())), - this.context.attr('transform', this.getTranslate('context')), - n.attr('transform', this.getTranslate('subx')); - }), - (r.prototype.getDefaultSelection = function() { - var e = this, - t = e.config, - n = h(t.axis_x_selection) - ? t.axis_x_selection(e.getXDomain(e.data.targets)) - : t.axis_x_selection; - return ( - e.isTimeSeries() && (n = [e.parseDate(n[0]), e.parseDate(n[1])]), - n - ); - }), - (r.prototype.removeSubchart = function() { - (this.brush = null), this.context.remove(), (this.context = null); - }), - (r.prototype.initText = function() { - this.main - .select('.' + M.chart) - .append('g') - .attr('class', M.chartTexts), - (this.mainText = this.d3.selectAll([])); - }), - (r.prototype.updateTargetsForText = function(e) { - var t = this, - n = t.classChartText.bind(t), - r = t.classTexts.bind(t), - o = t.classFocus.bind(t), - i = t.main - .select('.' + M.chartTexts) - .selectAll('.' + M.chartText) - .data(e), - a = i - .enter() - .append('g') - .attr('class', n) - .style('opacity', 0) - .style('pointer-events', 'none'); - a.append('g').attr('class', r), - a.merge(i).attr('class', function(e) { - return n(e) + o(e); - }); - }), - (r.prototype.updateText = function(e, t, n) { - var r = this, - o = r.config, - i = r.barOrLineData.bind(r), - a = r.classText.bind(r), - s = r.main - .selectAll('.' + M.texts) - .selectAll('.' + M.text) - .data(i), - c = s - .enter() - .append('text') - .attr('class', a) - .attr('text-anchor', function(e) { - return o.axis_rotated - ? e.value < 0 - ? 'end' - : 'start' - : 'middle'; - }) - .style('stroke', 'none') - .attr('x', e) - .attr('y', t) - .style('fill', function(e) { - return r.color(e); - }) - .style('fill-opacity', 0); - (r.mainText = c.merge(s).text(function(e, t, n) { - return r.dataLabelFormat(e.id)(e.value, e.id, t, n); - })), - s - .exit() - .transition() - .duration(n) - .style('fill-opacity', 0) - .remove(); - }), - (r.prototype.redrawText = function(e, t, n, r, o) { - return [ - (r ? this.mainText.transition(o) : this.mainText) - .attr('x', e) - .attr('y', t) - .style('fill', this.color) - .style('fill-opacity', n ? 0 : this.opacityForText.bind(this)) - ]; - }), - (r.prototype.getTextRect = function(e, t, n) { - var r, - o = this.d3 - .select('body') - .append('div') - .classed('c3', !0), - i = o - .append('svg') - .style('visibility', 'hidden') - .style('position', 'fixed') - .style('top', 0) - .style('left', 0), - a = this.d3.select(n).style('font'); + .remove(); + }), + (o.prototype.initTooltip = function() { + var e, + t = this, + n = t.config; + if ( + ((t.tooltip = t.selectChart + .style('position', 'relative') + .append('div') + .attr('class', M.tooltipContainer) + .style('position', 'absolute') + .style('pointer-events', 'none') + .style('display', 'none')), + n.tooltip_init_show) + ) { + if (t.isTimeSeries() && b(n.tooltip_init_x)) { + for ( + n.tooltip_init_x = t.parseDate(n.tooltip_init_x), e = 0; + e < t.data.targets[0].values.length && + t.data.targets[0].values[e].x - n.tooltip_init_x != 0; + e++ + ); + n.tooltip_init_x = e; + } + t.tooltip.html( + n.tooltip_contents.call( + t, + t.data.targets.map(function(e) { + return t.addName(e.values[n.tooltip_init_x]); + }), + t.axis.getXAxisTickFormat(), + t.getYFormat(t.hasArcType()), + t.color + ) + ), + t.tooltip + .style('top', n.tooltip_init_position.top) + .style('left', n.tooltip_init_position.left) + .style('display', 'block'); + } + }), + (o.prototype.getTooltipSortFunction = function() { + var e = this, + t = e.config; + if (0 !== t.data_groups.length && void 0 === t.tooltip_order) { + var n = e.orderTargets(e.data.targets).map(function(e) { + return e.id; + }); return ( - i - .selectAll('.dummy') - .data([e]) - .enter() - .append('text') - .classed(t || '', !0) - .style('font', a) - .text(e) - .each(function() { - r = l(this); - }), - o.remove(), - r + (e.isOrderAsc() || e.isOrderDesc()) && (n = n.reverse()), + function(e, t) { + return n.indexOf(e.id) - n.indexOf(t.id); + } ); - }), - (r.prototype.generateXYForText = function(e, t, n, r) { - var o = this, - i = o.generateGetAreaPoints(e, !1), - a = o.generateGetBarPoints(t, !1), - s = o.generateGetLinePoints(n, !1), - c = r ? o.getXForText : o.getYForText; + } + var r = t.tooltip_order; + void 0 === r && (r = t.data_order); + var o = function(e) { + return e ? e.value : null; + }; + if (b(r) && 'asc' === r.toLowerCase()) return function(e, t) { - var n = o.isAreaType(e) ? i : o.isBarType(e) ? a : s; - return c.call(o, n(e, t), e, this); + return o(e) - o(t); }; - }), - (r.prototype.getXForText = function(e, t, n) { - var r, - o, - i = this, - a = l(n); - return ( - i.config.axis_rotated - ? ((o = i.isBarType(t) ? 4 : 6), - (r = e[2][1] + o * (t.value < 0 ? -1 : 1))) - : (r = i.hasType('bar') ? (e[2][0] + e[0][0]) / 2 : e[0][0]), - null === t.value && - (r > i.width ? (r = i.width - a.width) : r < 0 && (r = 4)), - r - ); - }), - (r.prototype.getYForText = function(e, t, n) { - var r, - o = this, - i = l(n); - return ( - o.config.axis_rotated - ? (r = (e[0][0] + e[2][0] + 0.6 * i.height) / 2) - : ((r = e[2][1]), - t.value < 0 || (0 === t.value && !o.hasPositiveValue) - ? ((r += i.height), - o.isBarType(t) && o.isSafari() - ? (r -= 3) - : !o.isBarType(t) && o.isChrome() && (r += 3)) - : (r += o.isBarType(t) ? -3 : -6)), - null !== t.value || - o.config.axis_rotated || - (r < i.height - ? (r = i.height) - : r > this.height && (r = this.height - 4)), - r - ); - }), - (r.prototype.initTitle = function() { - this.title = this.svg - .append('text') - .text(this.config.title_text) - .attr('class', this.CLASS.title); - }), - (r.prototype.redrawTitle = function() { - var e = this; - e.title - .attr('x', e.xForTitle.bind(e)) - .attr('y', e.yForTitle.bind(e)); - }), - (r.prototype.xForTitle = function() { - var e = this, - t = e.config, - n = t.title_position || 'left'; - return n.indexOf('right') >= 0 - ? e.currentWidth - - e.getTextRect( - e.title.node().textContent, - e.CLASS.title, - e.title.node() - ).width - - t.title_padding.right - : n.indexOf('center') >= 0 - ? Math.max( - (e.currentWidth - - e.getTextRect( - e.title.node().textContent, - e.CLASS.title, - e.title.node() - ).width) / - 2, - 0 - ) - : t.title_padding.left; - }), - (r.prototype.yForTitle = function() { - var e = this; + if (b(r) && 'desc' === r.toLowerCase()) + return function(e, t) { + return o(t) - o(e); + }; + if (g(r)) { + var i = r; return ( - e.config.title_padding.top + - e.getTextRect( - e.title.node().textContent, - e.CLASS.title, - e.title.node() - ).height - ); - }), - (r.prototype.getTitlePadding = function() { - return this.yForTitle() + this.config.title_padding.bottom; - }), - (r.prototype.drawColorScale = function() { - var e, - t, - n, - r, - o, - i, - a, - s = this, - c = s.d3, - u = s.config, - l = s.data.targets[0]; - if ( - (e = isNaN(u.stanford_scaleWidth) ? 20 : u.stanford_scaleWidth) < - 0 - ) - throw Error( - "Colorscale's barheight and barwidth must be greater than 0." - ); - (a = s.height - u.stanford_padding.bottom - u.stanford_padding.top), - (n = c.range(u.stanford_padding.bottom, a, 5)), - (i = c.scaleSequential(l.colors).domain([n[n.length - 1], n[0]])), - s.colorScale && s.colorScale.remove(), - (s.colorScale = s.svg - .append('g') - .attr('width', 50) - .attr('height', a) - .attr('class', M.colorScale)), - s.colorScale - .append('g') - .attr( - 'transform', - 'translate(0, '.concat(u.stanford_padding.top, ')') - ) - .selectAll('bars') - .data(n) - .enter() - .append('rect') - .attr('y', function(e, t) { - return 5 * t; - }) - .attr('x', 0) - .attr('width', e) - .attr('height', 5) - .attr('fill', function(e) { - return i(e); + void 0 === t.tooltip_order && + (i = function(e, t) { + return r( + e ? { id: e.id, values: [e] } : null, + t ? { id: t.id, values: [t] } : null + ); }), - (o = c - .scaleLog() - .domain([l.minEpochs, l.maxEpochs]) - .range([ - n[0] + u.stanford_padding.top + n[n.length - 1] + 5 - 1, - n[0] + u.stanford_padding.top - ])), - (r = c.axisRight(o)), - 'pow10' === u.stanford_scaleFormat - ? r.tickValues([1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7]) - : h(u.stanford_scaleFormat) - ? r.tickFormat(u.stanford_scaleFormat) - : r.tickFormat(c.format('d')), - h(u.stanford_scaleValues) && - r.tickValues(u.stanford_scaleValues(l.minEpochs, l.maxEpochs)), - (t = s.colorScale - .append('g') - .attr('class', 'legend axis') - .attr('transform', 'translate('.concat(e, ',0)')) - .call(r)), - 'pow10' === u.stanford_scaleFormat && - t - .selectAll('.tick text') - .text(null) - .filter(O) - .text(10) - .append('tspan') - .attr('dy', '-.7em') - .text(function(e) { - return Math.round(Math.log(e) / Math.LN10); - }), - s.colorScale.attr( - 'transform', - 'translate('.concat(s.currentWidth - s.xForColorScale(), ', 0)') - ); - }), - (r.prototype.xForColorScale = function() { - return ( - this.config.stanford_padding.right + - l(this.colorScale.node()).width - ); - }), - (r.prototype.getColorScalePadding = function() { - return ( - this.xForColorScale() + this.config.stanford_padding.left + 20 + i ); - }), - (r.prototype.isStanfordGraphType = function() { - return 'stanford' === this.config.data_type; - }), - (r.prototype.initStanfordData = function() { - var e, - t, - n, - r = this.d3, - o = this.config, - i = this.data.targets[0]; - if ( - (i.values.sort(C), - (e = i.values.map(function(e) { - return e.epochs; - })), - (n = isNaN(o.stanford_scaleMin) - ? r.min(e) - : o.stanford_scaleMin) > - (t = isNaN(o.stanford_scaleMax) - ? r.max(e) - : o.stanford_scaleMax)) - ) - throw Error( - 'Number of minEpochs has to be smaller than maxEpochs' - ); - (i.colors = h(o.stanford_colors) - ? o.stanford_colors - : r.interpolateHslLong(r.hsl(250, 1, 0.5), r.hsl(0, 1, 0.5))), - (i.colorscale = r.scaleSequentialLog(i.colors).domain([n, t])), - (i.minEpochs = n), - (i.maxEpochs = t); - }), - (r.prototype.getStanfordPointColor = function(e) { - return this.data.targets[0].colorscale(e.epochs); - }), - (r.prototype.getCentroid = function(e) { - var t, - n, - r, - o, - i, - a = E(e), - s = 0, - c = 0; - for (t = 0, n = e.length - 1; t < e.length; n = t, t += 1) - (o = e[t]), - (i = e[n]), - (r = o.x * i.y - i.x * o.y), - (s += (o.x + i.x) * r), - (c += (o.y + i.y) * r); - return { x: s / (r = 6 * a), y: c / r }; - }), - (r.prototype.getStanfordTooltipTitle = function(e) { - var t = this.axis.getLabelText('x'), - n = this.axis.getLabelText('y'); - return '\n ' - .concat(t ? _(t) : 'x', "") - .concat(e.x, '\n ') - .concat(n ? _(n) : 'y', "") - .concat(e.value, '\n '); - }), - (r.prototype.countEpochsInRegion = function(e) { - var t, - n, - r = this.data.targets[0]; - return ( - (t = r.values.reduce(function(e, t) { - return e + Number(t.epochs); - }, 0)), - { - value: (n = r.values.reduce(function(t, n) { - return T(n, e) ? t + Number(n.epochs) : t; - }, 0)), - percentage: 0 !== n ? ((n / t) * 100).toFixed(1) : 0 + } + return d(r) + ? function(e, t) { + return r.indexOf(e.id) - r.indexOf(t.id); } - ); - }); - var E = function(e) { - var t, - n, - r, - o, - i = 0; - for (t = 0, n = e.length - 1; t < e.length; n = t, t += 1) - (r = e[t]), (o = e[n]), (i += r.x * o.y), (i -= r.y * o.x); - return (i /= 2); - }, - T = function(e, t) { - for ( - var n, - r, - o, - i, - a = e.x, - s = e.value, - c = !1, - u = 0, - l = t.length - 1; - u < t.length; - l = u++ - ) - (n = t[u].x), - (r = t[u].y), - (i = t[l].x), - r > s != (o = t[l].y) > s && - a < ((i - n) * (s - r)) / (o - r) + n && - (c = !c); - return c; - }, - C = function(e, t) { - return e.epochs < t.epochs ? -1 : e.epochs > t.epochs ? 1 : 0; - }; - return ( - (r.prototype.initStanfordElements = function() { - var e = this; - (e.stanfordElements = e.main - .select('.' + M.chart) - .append('g') - .attr('class', M.stanfordElements)), - e.stanfordElements.append('g').attr('class', M.stanfordLines), - e.stanfordElements.append('g').attr('class', M.stanfordTexts), - e.stanfordElements.append('g').attr('class', M.stanfordRegions); + : void 0; + }), + (o.prototype.getTooltipContent = function(e, t, n, r) { + var o, + i, + a, + s, + c, + u, + l = this, + f = l.config, + d = f.tooltip_format_title || t, + p = + f.tooltip_format_name || + function(e) { + return e; + }, + h = f.tooltip_format_value; + h || + (h = l.isTargetNormalized(e.id) + ? (e, t) => `${(100 * t).toFixed(2)}%` + : n); + var g = this.getTooltipSortFunction(); + for (g && e.sort(g), i = 0; i < e.length; i++) + if (e[i] && (e[i].value || 0 === e[i].value)) { + if (l.isStanfordGraphType()) + o || + ((a = l.getStanfordTooltipTitle(e[i])), + (o = "" + a)), + (u = l.getStanfordPointColor(e[i])), + (c = w(f.data_epochs)), + (s = e[i].epochs); + else if ( + (o || + ((a = w(d ? d(e[i].x, e[i].index) : e[i].x)), + (o = + "
" + + (a || 0 === a + ? "' + : ''))), + void 0 !== + (s = w(h(e[i].value, e[i].ratio, e[i].id, e[i].index, e)))) + ) { + if (null === e[i].name) continue; + (c = w(p(e[i].name, e[i].ratio, e[i].id, e[i].index))), + (u = l.levelColor ? l.levelColor(e[i].value) : r(e[i].id)); + } + void 0 !== s && + ((o += + ""), + (o += + "'), + (o += "'), + (o += '')); + } + return o + '
" + a + '
" + + c + + '" + s + '
'; + }), + (o.prototype.tooltipPosition = function(e, t, n, r) { + var o, + i, + a, + s, + c, + u = this, + l = u.config, + f = u.d3, + d = u.hasArcType(), + p = f.mouse(r); + return ( + d + ? ((i = + (u.width - (u.isLegendRight ? u.getLegendWidth() : 0)) / 2 + + p[0]), + (s = + (u.hasType('gauge') ? u.height : u.height / 2) + p[1] + 20)) + : ((o = u.getSvgLeft(!0)), + l.axis_rotated + ? ((a = (i = o + p[0] + 100) + t), + (c = u.currentWidth - u.getCurrentPaddingRight()), + (s = u.x(e[0].x) + 20)) + : ((a = + (i = o + u.getCurrentPaddingLeft(!0) + u.x(e[0].x) + 20) + + t), + (c = o + u.currentWidth - u.getCurrentPaddingRight()), + (s = p[1] + 15)), + a > c && (i -= a - c + 20), + s + n > u.currentHeight && (s -= n + 30)), + s < 0 && (s = 0), + { top: s, left: i } + ); + }), + (o.prototype.showTooltip = function(e, t) { + var n, + r, + i, + a = this, + s = a.config, + c = a.hasArcType(), + u = e.filter(function(e) { + return e && v(e.value); + }), + l = s.tooltip_position || o.prototype.tooltipPosition; + 0 !== u.length && + s.tooltip_show && + (a.tooltip + .html( + s.tooltip_contents.call( + a, + e, + a.axis.getXAxisTickFormat(), + a.getYFormat(c), + a.color + ) + ) + .style('display', 'block'), + (n = a.tooltip.property('offsetWidth')), + (r = a.tooltip.property('offsetHeight')), + (i = l.call(this, u, n, r, t)), + a.tooltip.style('top', i.top + 'px').style('left', i.left + 'px')); + }), + (o.prototype.hideTooltip = function() { + this.tooltip.style('display', 'none'); + }), + (o.prototype.setTargetType = function(e, t) { + var n = this, + r = n.config; + n.mapToTargetIds(e).forEach(function(e) { + (n.withoutFadeIn[e] = t === r.data_types[e]), (r.data_types[e] = t); }), - (r.prototype.updateStanfordElements = function(e) { - var t, - n, - r, - o, - i, - a, - s = this, - c = s.main, - u = s.config, - l = s.xvCustom.bind(s), - f = s.yvCustom.bind(s), - d = s.countEpochsInRegion.bind(s); - (n = (t = c - .select('.' + M.stanfordLines) - .style('shape-rendering', 'geometricprecision') - .selectAll('.' + M.stanfordLine) - .data(u.stanford_lines)) - .enter() - .append('g') - .attr('class', function(e) { - return M.stanfordLine + (e.class ? ' ' + e.class : ''); - })) - .append('line') - .attr('x1', function(e) { - return u.axis_rotated ? f(e, 'value_y1') : l(e, 'value_x1'); - }) - .attr('x2', function(e) { - return u.axis_rotated ? f(e, 'value_y2') : l(e, 'value_x2'); - }) - .attr('y1', function(e) { - return u.axis_rotated ? l(e, 'value_x1') : f(e, 'value_y1'); - }) - .attr('y2', function(e) { - return u.axis_rotated ? l(e, 'value_x2') : f(e, 'value_y2'); - }) - .style('opacity', 0), - (s.stanfordLines = n.merge(t)), - s.stanfordLines - .select('line') - .transition() - .duration(e) - .attr('x1', function(e) { - return u.axis_rotated ? f(e, 'value_y1') : l(e, 'value_x1'); - }) - .attr('x2', function(e) { - return u.axis_rotated ? f(e, 'value_y2') : l(e, 'value_x2'); - }) - .attr('y1', function(e) { - return u.axis_rotated ? l(e, 'value_x1') : f(e, 'value_y1'); - }) - .attr('y2', function(e) { - return u.axis_rotated ? l(e, 'value_x2') : f(e, 'value_y2'); - }) - .style('opacity', 1), - t - .exit() - .transition() - .duration(e) - .style('opacity', 0) - .remove(), - (a = (i = c - .select('.' + M.stanfordTexts) - .selectAll('.' + M.stanfordText) - .data(u.stanford_texts)) - .enter() - .append('g') - .attr('class', function(e) { - return M.stanfordText + (e.class ? ' ' + e.class : ''); - })) - .append('text') - .attr('x', function(e) { - return u.axis_rotated ? f(e, 'y') : l(e, 'x'); - }) - .attr('y', function(e) { - return u.axis_rotated ? l(e, 'x') : f(e, 'y'); - }) - .style('opacity', 0), - (s.stanfordTexts = a.merge(i)), - s.stanfordTexts - .select('text') - .transition() - .duration(e) - .attr('x', function(e) { - return u.axis_rotated ? f(e, 'y') : l(e, 'x'); - }) - .attr('y', function(e) { - return u.axis_rotated ? l(e, 'x') : f(e, 'y'); - }) - .text(function(e) { - return e.content; - }) - .style('opacity', 1), - i - .exit() - .transition() - .duration(e) - .style('opacity', 0) - .remove(), - (o = (r = c - .select('.' + M.stanfordRegions) - .selectAll('.' + M.stanfordRegion) - .data(u.stanford_regions)) - .enter() - .append('g') - .attr('class', function(e) { - return M.stanfordRegion + (e.class ? ' ' + e.class : ''); - })) - .append('polygon') - .attr('points', function(e) { - return e.points - .map(function(e) { - return [ - u.axis_rotated ? f(e, 'y') : l(e, 'x'), - u.axis_rotated ? l(e, 'x') : f(e, 'y') - ].join(','); - }) - .join(' '); - }) - .style('opacity', 0), - o - .append('text') - .attr('x', function(e) { - return s.getCentroid(e.points).x; - }) - .attr('y', function(e) { - return s.getCentroid(e.points).y; - }) - .style('opacity', 0), - (s.stanfordRegions = o.merge(r)), - s.stanfordRegions - .select('polygon') - .transition() - .duration(e) - .attr('points', function(e) { - return e.points - .map(function(e) { - return [ - u.axis_rotated ? f(e, 'y') : l(e, 'x'), - u.axis_rotated ? l(e, 'x') : f(e, 'y') - ].join(','); - }) - .join(' '); - }) - .style('opacity', function(e) { - return e.opacity ? e.opacity : 0.2; - }), - s.stanfordRegions - .select('text') - .transition() - .duration(e) - .attr('x', function(e) { - return u.axis_rotated - ? f(s.getCentroid(e.points), 'y') - : l(s.getCentroid(e.points), 'x'); - }) - .attr('y', function(e) { - return u.axis_rotated - ? l(s.getCentroid(e.points), 'x') - : f(s.getCentroid(e.points), 'y'); + e || (r.data_type = t); + }), + (o.prototype.hasType = function(e, t) { + var n = this.config.data_types, + r = !1; + return ( + (t = t || this.data.targets) && t.length + ? t.forEach(function(t) { + var o = n[t.id]; + ((o && o.indexOf(e) >= 0) || (!o && 'line' === e)) && + (r = !0); }) - .text(function(e) { - var t, n, r; - return e.text - ? (s.isStanfordGraphType() && - ((t = (r = d(e.points)).value), (n = r.percentage)), - e.text(t, n)) - : ''; + : Object.keys(n).length + ? Object.keys(n).forEach(function(t) { + n[t] === e && (r = !0); }) - .attr('text-anchor', 'middle') - .attr('dominant-baseline', 'middle') - .style('opacity', 1), - r - .exit() - .transition() - .duration(e) - .style('opacity', 0) - .remove(); - }), - (r.prototype.initTooltip = function() { - var e, - t = this, - n = t.config; - if ( - ((t.tooltip = t.selectChart - .style('position', 'relative') - .append('div') - .attr('class', M.tooltipContainer) - .style('position', 'absolute') - .style('pointer-events', 'none') - .style('display', 'none')), - n.tooltip_init_show) - ) { - if (t.isTimeSeries() && m(n.tooltip_init_x)) { - for ( - n.tooltip_init_x = t.parseDate(n.tooltip_init_x), e = 0; - e < t.data.targets[0].values.length && - t.data.targets[0].values[e].x - n.tooltip_init_x != 0; - e++ - ); - n.tooltip_init_x = e; - } - t.tooltip.html( - n.tooltip_contents.call( - t, - t.data.targets.map(function(e) { - return t.addName(e.values[n.tooltip_init_x]); - }), - t.axis.getXAxisTickFormat(), - t.getYFormat(t.hasArcType()), - t.color - ) - ), - t.tooltip - .style('top', n.tooltip_init_position.top) - .style('left', n.tooltip_init_position.left) - .style('display', 'block'); - } - }), - (r.prototype.getTooltipSortFunction = function() { - var e = this, - t = e.config; - if (0 !== t.data_groups.length && void 0 === t.tooltip_order) { - var n = e.orderTargets(e.data.targets).map(function(e) { - return e.id; - }); - return ( - (e.isOrderAsc() || e.isOrderDesc()) && (n = n.reverse()), - function(e, t) { - return n.indexOf(e.id) - n.indexOf(t.id); + : (r = this.config.data_type === e), + r + ); + }), + (o.prototype.hasArcType = function(e) { + return ( + this.hasType('pie', e) || + this.hasType('donut', e) || + this.hasType('gauge', e) + ); + }), + (o.prototype.isLineType = function(e) { + var t = this.config, + n = b(e) ? e : e.id; + return ( + !t.data_types[n] || + [ + 'line', + 'spline', + 'area', + 'area-spline', + 'step', + 'area-step' + ].indexOf(t.data_types[n]) >= 0 + ); + }), + (o.prototype.isStepType = function(e) { + var t = b(e) ? e : e.id; + return ['step', 'area-step'].indexOf(this.config.data_types[t]) >= 0; + }), + (o.prototype.isSplineType = function(e) { + var t = b(e) ? e : e.id; + return ( + ['spline', 'area-spline'].indexOf(this.config.data_types[t]) >= 0 + ); + }), + (o.prototype.isAreaType = function(e) { + var t = b(e) ? e : e.id; + return ( + ['area', 'area-spline', 'area-step'].indexOf( + this.config.data_types[t] + ) >= 0 + ); + }), + (o.prototype.isBarType = function(e) { + var t = b(e) ? e : e.id; + return 'bar' === this.config.data_types[t]; + }), + (o.prototype.isScatterType = function(e) { + var t = b(e) ? e : e.id; + return 'scatter' === this.config.data_types[t]; + }), + (o.prototype.isStanfordType = function(e) { + var t = b(e) ? e : e.id; + return 'stanford' === this.config.data_types[t]; + }), + (o.prototype.isPieType = function(e) { + var t = b(e) ? e : e.id; + return 'pie' === this.config.data_types[t]; + }), + (o.prototype.isGaugeType = function(e) { + var t = b(e) ? e : e.id; + return 'gauge' === this.config.data_types[t]; + }), + (o.prototype.isDonutType = function(e) { + var t = b(e) ? e : e.id; + return 'donut' === this.config.data_types[t]; + }), + (o.prototype.isArcType = function(e) { + return ( + this.isPieType(e) || this.isDonutType(e) || this.isGaugeType(e) + ); + }), + (o.prototype.lineData = function(e) { + return this.isLineType(e) ? [e] : []; + }), + (o.prototype.arcData = function(e) { + return this.isArcType(e.data) ? [e] : []; + }), + (o.prototype.barData = function(e) { + return this.isBarType(e) ? e.values : []; + }), + (o.prototype.lineOrScatterOrStanfordData = function(e) { + return this.isLineType(e) || + this.isScatterType(e) || + this.isStanfordType(e) + ? e.values + : []; + }), + (o.prototype.barOrLineData = function(e) { + return this.isBarType(e) || this.isLineType(e) ? e.values : []; + }), + (o.prototype.isSafari = function() { + var e = window.navigator.userAgent; + return e.indexOf('Safari') >= 0 && e.indexOf('Chrome') < 0; + }), + (o.prototype.isChrome = function() { + return window.navigator.userAgent.indexOf('Chrome') >= 0; + }), + (o.prototype.initZoom = function() { + var e, + t = this, + n = t.d3, + r = t.config; + return ( + (t.zoom = n + .zoom() + .on('start', function() { + if ('scroll' === r.zoom_type) { + var o = n.event.sourceEvent; + (o && 'brush' === o.type) || + ((e = o), r.zoom_onzoomstart.call(t.api, o)); + } + }) + .on('zoom', function() { + if ('scroll' === r.zoom_type) { + var e = n.event.sourceEvent; + (e && 'brush' === e.type) || + (t.redrawForZoom(), + r.zoom_onzoom.call(t.api, t.x.orgDomain())); } + }) + .on('end', function() { + if ('scroll' === r.zoom_type) { + var o = n.event.sourceEvent; + (o && 'brush' === o.type) || + (o && e.clientX === o.clientX && e.clientY === o.clientY) || + r.zoom_onzoomend.call(t.api, t.x.orgDomain()); + } + })), + (t.zoom.updateDomain = function() { + return ( + n.event && + n.event.transform && + t.x.domain(n.event.transform.rescaleX(t.subX).domain()), + this ); - } - var r = t.tooltip_order; - void 0 === r && (r = t.data_order); - var o = function(e) { - return e ? e.value : null; - }; - if (m(r) && 'asc' === r.toLowerCase()) - return function(e, t) { - return o(e) - o(t); - }; - if (m(r) && 'desc' === r.toLowerCase()) - return function(e, t) { - return o(t) - o(e); - }; - if (h(r)) { - var i = r; + }), + (t.zoom.updateExtent = function() { return ( - void 0 === t.tooltip_order && - (i = function(e, t) { - return r( - e ? { id: e.id, values: [e] } : null, - t ? { id: t.id, values: [t] } : null - ); - }), - i + this.scaleExtent([1, 1 / 0]) + .translateExtent([[0, 0], [t.width, t.height]]) + .extent([[0, 0], [t.width, t.height]]), + this ); - } - return f(r) - ? function(e, t) { - return r.indexOf(e.id) - r.indexOf(t.id); - } - : void 0; - }), - (r.prototype.getTooltipContent = function(e, t, n, r) { - var o, - i, - a, - s, - c, - u, - l = this, - f = l.config, - d = f.tooltip_format_title || t, - p = - f.tooltip_format_name || - function(e) { - return e; - }, - h = f.tooltip_format_value; - h || - (h = l.isTargetNormalized(e.id) - ? function(e, t) { - return ''.concat((100 * t).toFixed(2), '%'); - } - : n); - var g = this.getTooltipSortFunction(); - for (g && e.sort(g), i = 0; i < e.length; i++) - if (e[i] && (e[i].value || 0 === e[i].value)) { - if (l.isStanfordGraphType()) - o || - ((a = l.getStanfordTooltipTitle(e[i])), - (o = "" + a)), - (u = l.getStanfordPointColor(e[i])), - (c = _(f.data_epochs)), - (s = e[i].epochs); - else if ( - (o || - ((a = _(d ? d(e[i].x, e[i].index) : e[i].x)), - (o = - "
" + - (a || 0 === a - ? "' - : ''))), - void 0 !== - (s = _(h(e[i].value, e[i].ratio, e[i].id, e[i].index, e)))) - ) { - if (null === e[i].name) continue; - (c = _(p(e[i].name, e[i].ratio, e[i].id, e[i].index))), - (u = l.levelColor ? l.levelColor(e[i].value) : r(e[i].id)); - } - void 0 !== s && - ((o += - ""), - (o += - "'), - (o += "'), - (o += '')); - } - return o + '
" + a + '
" + - c + - '" + s + '
'; - }), - (r.prototype.tooltipPosition = function(e, t, n, r) { - var o, - i, - a, - s, - c, - u = this, - l = u.config, - f = u.d3, - d = u.hasArcType(), - p = f.mouse(r); - return ( - d - ? ((i = - (u.width - (u.isLegendRight ? u.getLegendWidth() : 0)) / 2 + - p[0]), - (s = - (u.hasType('gauge') ? u.height : u.height / 2) + p[1] + 20)) - : ((o = u.getSvgLeft(!0)), - l.axis_rotated - ? ((a = (i = o + p[0] + 100) + t), - (c = u.currentWidth - u.getCurrentPaddingRight()), - (s = u.x(e[0].x) + 20)) - : ((a = - (i = - o + u.getCurrentPaddingLeft(!0) + u.x(e[0].x) + 20) + - t), - (c = o + u.currentWidth - u.getCurrentPaddingRight()), - (s = p[1] + 15)), - a > c && (i -= a - c + 20), - s + n > u.currentHeight && (s -= n + 30)), - s < 0 && (s = 0), - { top: s, left: i } - ); - }), - (r.prototype.showTooltip = function(e, t) { - var n, - o, - i, - a = this, - s = a.config, - c = a.hasArcType(), - u = e.filter(function(e) { - return e && y(e.value); - }), - l = s.tooltip_position || r.prototype.tooltipPosition; - 0 !== u.length && - s.tooltip_show && - (a.tooltip - .html( - s.tooltip_contents.call( - a, - e, - a.axis.getXAxisTickFormat(), - a.getYFormat(c), - a.color - ) - ) - .style('display', 'block'), - (n = a.tooltip.property('offsetWidth')), - (o = a.tooltip.property('offsetHeight')), - (i = l.call(this, u, n, o, t)), - a.tooltip - .style('top', i.top + 'px') - .style('left', i.left + 'px')); - }), - (r.prototype.hideTooltip = function() { - this.tooltip.style('display', 'none'); - }), - (r.prototype.setTargetType = function(e, t) { - var n = this, - r = n.config; - n.mapToTargetIds(e).forEach(function(e) { - (n.withoutFadeIn[e] = t === r.data_types[e]), - (r.data_types[e] = t); }), - e || (r.data_type = t); - }), - (r.prototype.hasType = function(e, t) { - var n = this.config.data_types, - r = !1; - return ( - (t = t || this.data.targets) && t.length - ? t.forEach(function(t) { - var o = n[t.id]; - ((o && o.indexOf(e) >= 0) || (!o && 'line' === e)) && - (r = !0); - }) - : Object.keys(n).length - ? Object.keys(n).forEach(function(t) { - n[t] === e && (r = !0); - }) - : (r = this.config.data_type === e), - r - ); - }), - (r.prototype.hasArcType = function(e) { - return ( - this.hasType('pie', e) || - this.hasType('donut', e) || - this.hasType('gauge', e) - ); - }), - (r.prototype.isLineType = function(e) { - var t = this.config, - n = m(e) ? e : e.id; - return ( - !t.data_types[n] || - [ - 'line', - 'spline', - 'area', - 'area-spline', - 'step', - 'area-step' - ].indexOf(t.data_types[n]) >= 0 - ); - }), - (r.prototype.isStepType = function(e) { - var t = m(e) ? e : e.id; - return ( - ['step', 'area-step'].indexOf(this.config.data_types[t]) >= 0 - ); - }), - (r.prototype.isSplineType = function(e) { - var t = m(e) ? e : e.id; - return ( - ['spline', 'area-spline'].indexOf(this.config.data_types[t]) >= 0 - ); - }), - (r.prototype.isAreaType = function(e) { - var t = m(e) ? e : e.id; - return ( - ['area', 'area-spline', 'area-step'].indexOf( - this.config.data_types[t] - ) >= 0 - ); - }), - (r.prototype.isBarType = function(e) { - var t = m(e) ? e : e.id; - return 'bar' === this.config.data_types[t]; - }), - (r.prototype.isScatterType = function(e) { - var t = m(e) ? e : e.id; - return 'scatter' === this.config.data_types[t]; - }), - (r.prototype.isStanfordType = function(e) { - var t = m(e) ? e : e.id; - return 'stanford' === this.config.data_types[t]; - }), - (r.prototype.isPieType = function(e) { - var t = m(e) ? e : e.id; - return 'pie' === this.config.data_types[t]; - }), - (r.prototype.isGaugeType = function(e) { - var t = m(e) ? e : e.id; - return 'gauge' === this.config.data_types[t]; - }), - (r.prototype.isDonutType = function(e) { - var t = m(e) ? e : e.id; - return 'donut' === this.config.data_types[t]; - }), - (r.prototype.isArcType = function(e) { - return ( - this.isPieType(e) || this.isDonutType(e) || this.isGaugeType(e) - ); - }), - (r.prototype.lineData = function(e) { - return this.isLineType(e) ? [e] : []; - }), - (r.prototype.arcData = function(e) { - return this.isArcType(e.data) ? [e] : []; - }), - (r.prototype.barData = function(e) { - return this.isBarType(e) ? e.values : []; - }), - (r.prototype.lineOrScatterOrStanfordData = function(e) { - return this.isLineType(e) || - this.isScatterType(e) || - this.isStanfordType(e) - ? e.values - : []; - }), - (r.prototype.barOrLineData = function(e) { - return this.isBarType(e) || this.isLineType(e) ? e.values : []; - }), - (r.prototype.isSafari = function() { - var e = window.navigator.userAgent; - return e.indexOf('Safari') >= 0 && e.indexOf('Chrome') < 0; - }), - (r.prototype.isChrome = function() { - return window.navigator.userAgent.indexOf('Chrome') >= 0; - }), - (r.prototype.initZoom = function() { - var e, - t = this, - n = t.d3, - r = t.config; - return ( - (t.zoom = n - .zoom() - .on('start', function() { - if ('scroll' === r.zoom_type) { - var o = n.event.sourceEvent; - (o && 'brush' === o.type) || - ((e = o), r.zoom_onzoomstart.call(t.api, o)); - } - }) - .on('zoom', function() { - if ('scroll' === r.zoom_type) { - var e = n.event.sourceEvent; - (e && 'brush' === e.type) || - (t.redrawForZoom(), - r.zoom_onzoom.call(t.api, t.x.orgDomain())); - } - }) - .on('end', function() { - if ('scroll' === r.zoom_type) { - var o = n.event.sourceEvent; - (o && 'brush' === o.type) || - (o && - e.clientX === o.clientX && - e.clientY === o.clientY) || - r.zoom_onzoomend.call(t.api, t.x.orgDomain()); - } - })), - (t.zoom.updateDomain = function() { - return ( - n.event && - n.event.transform && - t.x.domain(n.event.transform.rescaleX(t.subX).domain()), - this - ); - }), - (t.zoom.updateExtent = function() { - return ( - this.scaleExtent([1, 1 / 0]) - .translateExtent([ - [0, 0], - [t.width, t.height] - ]) - .extent([ - [0, 0], - [t.width, t.height] - ]), - this - ); - }), - (t.zoom.update = function() { - return this.updateExtent().updateDomain(); - }), - t.zoom.updateExtent() - ); - }), - (r.prototype.zoomTransform = function(e) { - var t = [this.x(e[0]), this.x(e[1])]; - return this.d3.zoomIdentity - .scale(this.width / (t[1] - t[0])) - .translate(-t[0], 0); - }), - (r.prototype.initDragZoom = function() { - var e = this, - t = e.d3, - n = e.config, - r = (e.context = e.svg), - o = e.margin.left + 20.5, - i = e.margin.top + 0.5; - if ('drag' === n.zoom_type && n.zoom_enabled) { - var a = function(t) { - return ( - t && - t.map(function(t) { - return e.x.invert(t); - }) - ); - }, - s = (e.dragZoomBrush = t - .brushX() - .on('start', function() { - e.api.unzoom(), - e.svg.select('.' + M.dragZoom).classed('disabled', !1), - n.zoom_onzoomstart.call(e.api, t.event.sourceEvent); - }) - .on('brush', function() { - n.zoom_onzoom.call(e.api, a(t.event.selection)); - }) - .on('end', function() { - if (null != t.event.selection) { - var r = a(t.event.selection); - n.zoom_disableDefaultBehavior || e.api.zoom(r), - e.svg.select('.' + M.dragZoom).classed('disabled', !0), - n.zoom_onzoomend.call(e.api, r); - } - })); - r.append('g') - .classed(M.dragZoom, !0) - .attr('clip-path', e.clipPath) - .attr('transform', 'translate(' + o + ',' + i + ')') - .call(s); - } - }), - (r.prototype.getZoomDomain = function() { - var e = this.config, - t = this.d3; - return [ - t.min([this.orgXDomain[0], e.zoom_x_min]), - t.max([this.orgXDomain[1], e.zoom_x_max]) - ]; - }), - (r.prototype.redrawForZoom = function() { - var e = this, - t = e.d3, - n = e.config, - r = e.zoom, - o = e.x; - n.zoom_enabled && - 0 !== e.filterTargetsToShow(e.data.targets).length && - (r.update(), - n.zoom_disableDefaultBehavior || - (e.isCategorized() && - o.orgDomain()[0] === e.orgXDomain[0] && - o.domain([e.orgXDomain[0] - 1e-10, o.orgDomain()[1]]), - e.redraw({ - withTransition: !1, - withY: n.zoom_rescale, - withSubchart: !1, - withEventRect: !1, - withDimension: !1 - }), - t.event.sourceEvent && - 'mousemove' === t.event.sourceEvent.type && - (e.cancelClick = !0))); - }), - S - ); - })(); + (t.zoom.update = function() { + return this.updateExtent().updateDomain(); + }), + t.zoom.updateExtent() + ); + }), + (o.prototype.zoomTransform = function(e) { + var t = [this.x(e[0]), this.x(e[1])]; + return this.d3.zoomIdentity + .scale(this.width / (t[1] - t[0])) + .translate(-t[0], 0); + }), + (o.prototype.initDragZoom = function() { + const e = this, + t = e.d3, + n = e.config, + r = (e.context = e.svg), + o = e.margin.left + 20.5, + i = e.margin.top + 0.5; + if ('drag' !== n.zoom_type || !n.zoom_enabled) return; + const a = t => t && t.map(t => e.x.invert(t)), + s = (e.dragZoomBrush = t + .brushX() + .on('start', () => { + e.api.unzoom(), + e.svg.select('.' + M.dragZoom).classed('disabled', !1), + n.zoom_onzoomstart.call(e.api, t.event.sourceEvent); + }) + .on('brush', () => { + n.zoom_onzoom.call(e.api, a(t.event.selection)); + }) + .on('end', () => { + if (null == t.event.selection) return; + const r = a(t.event.selection); + n.zoom_disableDefaultBehavior || e.api.zoom(r), + e.svg.select('.' + M.dragZoom).classed('disabled', !0), + n.zoom_onzoomend.call(e.api, r); + })); + r.append('g') + .classed(M.dragZoom, !0) + .attr('clip-path', e.clipPath) + .attr('transform', 'translate(' + o + ',' + i + ')') + .call(s); + }), + (o.prototype.getZoomDomain = function() { + var e = this.config, + t = this.d3; + return [ + t.min([this.orgXDomain[0], e.zoom_x_min]), + t.max([this.orgXDomain[1], e.zoom_x_max]) + ]; + }), + (o.prototype.redrawForZoom = function() { + var e = this, + t = e.d3, + n = e.config, + r = e.zoom, + o = e.x; + n.zoom_enabled && + 0 !== e.filterTargetsToShow(e.data.targets).length && + (r.update(), + n.zoom_disableDefaultBehavior || + (e.isCategorized() && + o.orgDomain()[0] === e.orgXDomain[0] && + o.domain([e.orgXDomain[0] - 1e-10, o.orgDomain()[1]]), + e.redraw({ + withTransition: !1, + withY: n.zoom_rescale, + withSubchart: !1, + withEventRect: !1, + withDimension: !1 + }), + t.event.sourceEvent && + 'mousemove' === t.event.sourceEvent.type && + (e.cancelClick = !0))); + }), + (t.default = S); }, function(e, t, n) { var r; @@ -158646,10 +159305,10 @@ object-assign return e; }; }, - x = function(e) { + w = function(e) { return e; }, - w = function(e, t, n) { + x = function(e, t, n) { (e = +e), (t = +t), (n = @@ -158671,7 +159330,7 @@ object-assign M = Math.sqrt(50), k = Math.sqrt(10), S = Math.sqrt(2), - A = function(e, t, n) { + O = function(e, t, n) { var r, o, i, @@ -158680,7 +159339,7 @@ object-assign if (((n = +n), (e = +e) == (t = +t) && n > 0)) return [e]; if ( ((r = t < e) && ((o = e), (e = t), (t = o)), - 0 === (a = O(e, t, n)) || !isFinite(a)) + 0 === (a = E(e, t, n)) || !isFinite(a)) ) return []; if (a > 0) @@ -158703,7 +159362,7 @@ object-assign i[s] = (e - s) / a; return r && i.reverse(), i; }; - function O(e, t, n) { + function E(e, t, n) { var r = (t - e) / Math.max(0, n), o = Math.floor(Math.log(r) / Math.LN10), i = r / Math.pow(10, o); @@ -158713,7 +159372,7 @@ object-assign : -Math.pow(10, -o) / (i >= M ? 10 : i >= k ? 5 : i >= S ? 2 : 1); } - function E(e, t, n) { + function A(e, t, n) { var r = Math.abs(t - e) / Math.max(0, n), o = Math.pow(10, Math.floor(Math.log(r) / Math.LN10)), i = r / o; @@ -158726,7 +159385,7 @@ object-assign return Math.ceil(Math.log(e.length) / Math.LN2) + 1; }, C = function() { - var e = x, + var e = w, t = m, n = T; function r(r) { @@ -158740,7 +159399,7 @@ object-assign f = u[1], d = n(s, l, f); Array.isArray(d) || - ((d = E(l, f, d)), (d = w(Math.ceil(l / d) * d, f, d))); + ((d = A(l, f, d)), (d = x(Math.ceil(l / d) * d, f, d))); for (var p = d.length; d[0] <= l; ) d.shift(), --p; for (; d[p - 1] > f; ) d.pop(), --p; var h, @@ -158805,7 +159464,7 @@ object-assign (n - t) / (3.5 * g(e) * Math.pow(e.length, -1 / 3)) ); }, - z = function(e, t) { + j = function(e, t) { var n, r, o = e.length, @@ -158822,7 +159481,7 @@ object-assign null != (n = t(e[i], i, e)) && n > r && (r = n); return r; }, - N = function(e, t) { + z = function(e, t) { var n, r = e.length, o = r, @@ -158835,7 +159494,7 @@ object-assign isNaN((n = p(t(e[i], i, e)))) ? --o : (a += n); if (o) return a / o; }, - j = function(e, t) { + N = function(e, t) { var n, o = e.length, i = -1, @@ -158928,19 +159587,24 @@ object-assign U = Array.prototype.slice, X = function(e) { return e; - }; - function G(e) { + }, + G = 1, + K = 2, + $ = 3, + Q = 4, + J = 1e-6; + function Z(e) { return 'translate(' + (e + 0.5) + ',0)'; } - function K(e) { + function ee(e) { return 'translate(0,' + (e + 0.5) + ')'; } - function $(e) { + function te(e) { return function(t) { return +e(t); }; } - function Q(e) { + function ne(e) { var t = Math.max(0, e.bandwidth() - 1) / 2; return ( e.round() && (t = Math.round(t)), @@ -158949,19 +159613,19 @@ object-assign } ); } - function J() { + function re() { return !this.__axis; } - function Z(e, t) { + function oe(e, t) { var n = [], r = null, o = null, i = 6, a = 6, s = 3, - c = 1 === e || 4 === e ? -1 : 1, - u = 4 === e || 2 === e ? 'x' : 'y', - l = 1 === e || 3 === e ? G : K; + c = e === G || e === Q ? -1 : 1, + u = e === Q || e === K ? 'x' : 'y', + l = e === G || e === $ ? Z : ee; function f(f) { var d = null == r @@ -158979,27 +159643,27 @@ object-assign g = t.range(), m = +g[0] + 0.5, b = +g[g.length - 1] + 0.5, - y = (t.bandwidth ? Q : $)(t.copy()), + y = (t.bandwidth ? ne : te)(t.copy()), v = f.selection ? f.selection() : f, _ = v.selectAll('.domain').data([null]), - x = v + w = v .selectAll('.tick') .data(d, t) .order(), - w = x.exit(), - M = x + x = w.exit(), + M = w .enter() .append('g') .attr('class', 'tick'), - k = x.select('line'), - S = x.select('text'); + k = w.select('line'), + S = w.select('text'); (_ = _.merge( _.enter() .insert('path', '.tick') .attr('class', 'domain') .attr('stroke', 'currentColor') )), - (x = x.merge(M)), + (w = w.merge(M)), (k = k.merge( M.append('line') .attr('stroke', 'currentColor') @@ -159011,30 +159675,30 @@ object-assign .attr(u, c * h) .attr( 'dy', - 1 === e ? '0em' : 3 === e ? '0.71em' : '0.32em' + e === G ? '0em' : e === $ ? '0.71em' : '0.32em' ) )), f !== v && ((_ = _.transition(f)), - (x = x.transition(f)), + (w = w.transition(f)), (k = k.transition(f)), (S = S.transition(f)), - (w = w + (x = x .transition(f) - .attr('opacity', 1e-6) + .attr('opacity', J) .attr('transform', function(e) { return isFinite((e = y(e))) ? l(e) : this.getAttribute('transform'); })), - M.attr('opacity', 1e-6).attr('transform', function(e) { + M.attr('opacity', J).attr('transform', function(e) { var t = this.parentNode.__axis; return l(t && isFinite((t = t(e))) ? t : y(e)); })), - w.remove(), + x.remove(), _.attr( 'd', - 4 === e || 2 == e + e === Q || e == K ? a ? 'M' + c * a + ',' + m + 'H0.5V' + b + 'H' + c * a : 'M0.5,' + m + 'V' + b @@ -159042,19 +159706,19 @@ object-assign ? 'M' + m + ',' + c * a + 'V0.5H' + b + 'V' + c * a : 'M' + m + ',0.5H' + b ), - x.attr('opacity', 1).attr('transform', function(e) { + w.attr('opacity', 1).attr('transform', function(e) { return l(y(e)); }), k.attr(u + '2', c * i), S.attr(u, c * h).text(p), v - .filter(J) + .filter(re) .attr('fill', 'none') .attr('font-size', 10) .attr('font-family', 'sans-serif') .attr( 'text-anchor', - 2 === e ? 'start' : 4 === e ? 'end' : 'middle' + e === K ? 'start' : e === Q ? 'end' : 'middle' ), v.each(function() { this.__axis = y; @@ -159095,31 +159759,31 @@ object-assign f ); } - function ee(e) { - return Z(1, e); + function ie(e) { + return oe(G, e); } - function te(e) { - return Z(2, e); + function ae(e) { + return oe(K, e); } - function ne(e) { - return Z(3, e); + function se(e) { + return oe($, e); } - function re(e) { - return Z(4, e); + function ce(e) { + return oe(Q, e); } - var oe = { value: function() {} }; - function ie() { + var ue = { value: function() {} }; + function le() { for (var e, t = 0, n = arguments.length, r = {}; t < n; ++t) { if (!(e = arguments[t] + '') || e in r) throw new Error('illegal type: ' + e); r[e] = []; } - return new ae(r); + return new fe(r); } - function ae(e) { + function fe(e) { this._ = e; } - function se(e, t) { + function de(e, t) { return e .trim() .split(/^|\s+/) @@ -159134,44 +159798,44 @@ object-assign return { type: e, name: n }; }); } - function ce(e, t) { + function pe(e, t) { for (var n, r = 0, o = e.length; r < o; ++r) if ((n = e[r]).name === t) return n.value; } - function ue(e, t, n) { + function he(e, t, n) { for (var r = 0, o = e.length; r < o; ++r) if (e[r].name === t) { - (e[r] = oe), (e = e.slice(0, r).concat(e.slice(r + 1))); + (e[r] = ue), (e = e.slice(0, r).concat(e.slice(r + 1))); break; } return null != n && e.push({ name: t, value: n }), e; } - ae.prototype = ie.prototype = { - constructor: ae, + fe.prototype = le.prototype = { + constructor: fe, on: function(e, t) { var n, r = this._, - o = se(e + '', r), + o = de(e + '', r), i = -1, a = o.length; if (!(arguments.length < 2)) { if (null != t && 'function' != typeof t) throw new Error('invalid callback: ' + t); for (; ++i < a; ) - if ((n = (e = o[i]).type)) r[n] = ue(r[n], e.name, t); + if ((n = (e = o[i]).type)) r[n] = he(r[n], e.name, t); else if (null == t) - for (n in r) r[n] = ue(r[n], e.name, null); + for (n in r) r[n] = he(r[n], e.name, null); return this; } for (; ++i < a; ) - if ((n = (e = o[i]).type) && (n = ce(r[n], e.name))) + if ((n = (e = o[i]).type) && (n = pe(r[n], e.name))) return n; }, copy: function() { var e = {}, t = this._; for (var n in t) e[n] = t[n].slice(); - return new ae(e); + return new fe(e); }, call: function(e, t) { if ((n = arguments.length - 2) > 0) @@ -159189,84 +159853,100 @@ object-assign r[o].value.apply(t, n); } }; - var le = ie, - fe = 'http://www.w3.org/1999/xhtml', - de = { + var ge = le, + me = 'http://www.w3.org/1999/xhtml', + be = { svg: 'http://www.w3.org/2000/svg', - xhtml: fe, + xhtml: me, xlink: 'http://www.w3.org/1999/xlink', xml: 'http://www.w3.org/XML/1998/namespace', xmlns: 'http://www.w3.org/2000/xmlns/' }, - pe = function(e) { + ye = function(e) { var t = (e += ''), n = t.indexOf(':'); return ( n >= 0 && 'xmlns' !== (t = e.slice(0, n)) && (e = e.slice(n + 1)), - de.hasOwnProperty(t) ? { space: de[t], local: e } : e + be.hasOwnProperty(t) ? { space: be[t], local: e } : e ); }; - function he(e) { + function ve(e) { return function() { var t = this.ownerDocument, n = this.namespaceURI; - return n === fe && t.documentElement.namespaceURI === fe + return n === me && t.documentElement.namespaceURI === me ? t.createElement(e) : t.createElementNS(n, e); }; } - function ge(e) { + function _e(e) { return function() { return this.ownerDocument.createElementNS(e.space, e.local); }; } - var me = function(e) { - var t = pe(e); - return (t.local ? ge : he)(t); + var we = function(e) { + var t = ye(e); + return (t.local ? _e : ve)(t); }; - function be() {} - var ye = function(e) { + function xe() {} + var Me = function(e) { return null == e - ? be + ? xe : function() { return this.querySelector(e); }; }; - function ve() { + function ke() { return []; } - var _e = function(e) { + var Se = function(e) { return null == e - ? ve + ? ke : function() { return this.querySelectorAll(e); }; }, - xe = function(e) { + Oe = function(e) { return function() { return this.matches(e); }; }, - we = function(e) { + Ee = function(e) { return new Array(e.length); }; - function Me(e, t) { + function Ae(e, t) { (this.ownerDocument = e.ownerDocument), (this.namespaceURI = e.namespaceURI), (this._next = null), (this._parent = e), (this.__data__ = t); } - function ke(e, t, n, r, o, i) { + Ae.prototype = { + constructor: Ae, + appendChild: function(e) { + return this._parent.insertBefore(e, this._next); + }, + insertBefore: function(e, t) { + return this._parent.insertBefore(e, t); + }, + querySelector: function(e) { + return this._parent.querySelector(e); + }, + querySelectorAll: function(e) { + return this._parent.querySelectorAll(e); + } + }; + var Te = '$'; + function Ce(e, t, n, r, o, i) { for (var a, s = 0, c = t.length, u = i.length; s < u; ++s) (a = t[s]) ? ((a.__data__ = i[s]), (r[s] = a)) - : (n[s] = new Me(e, i[s])); + : (n[s] = new Ae(e, i[s])); for (; s < c; ++s) (a = t[s]) && (o[s] = a); } - function Se(e, t, n, r, o, i, a) { + function Le(e, t, n, r, o, i, a) { var s, c, u, @@ -159276,45 +159956,45 @@ object-assign p = new Array(f); for (s = 0; s < f; ++s) (c = t[s]) && - ((p[s] = u = '$' + a.call(c, c.__data__, s, t)), + ((p[s] = u = Te + a.call(c, c.__data__, s, t)), u in l ? (o[s] = c) : (l[u] = c)); for (s = 0; s < d; ++s) - (c = l[(u = '$' + a.call(e, i[s], s, i))]) + (c = l[(u = Te + a.call(e, i[s], s, i))]) ? ((r[s] = c), (c.__data__ = i[s]), (l[u] = null)) - : (n[s] = new Me(e, i[s])); + : (n[s] = new Ae(e, i[s])); for (s = 0; s < f; ++s) (c = t[s]) && l[p[s]] === c && (o[s] = c); } - function Ae(e, t) { + function Pe(e, t) { return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN; } - function Oe(e) { + function De(e) { return function() { this.removeAttribute(e); }; } - function Ee(e) { + function je(e) { return function() { this.removeAttributeNS(e.space, e.local); }; } - function Te(e, t) { + function ze(e, t) { return function() { this.setAttribute(e, t); }; } - function Ce(e, t) { + function Ne(e, t) { return function() { this.setAttributeNS(e.space, e.local, t); }; } - function Le(e, t) { + function Re(e, t) { return function() { var n = t.apply(this, arguments); null == n ? this.removeAttribute(e) : this.setAttribute(e, n); }; } - function Pe(e, t) { + function Ie(e, t) { return function() { var n = t.apply(this, arguments); null == n @@ -159322,39 +160002,24 @@ object-assign : this.setAttributeNS(e.space, e.local, n); }; } - Me.prototype = { - constructor: Me, - appendChild: function(e) { - return this._parent.insertBefore(e, this._next); - }, - insertBefore: function(e, t) { - return this._parent.insertBefore(e, t); - }, - querySelector: function(e) { - return this._parent.querySelector(e); - }, - querySelectorAll: function(e) { - return this._parent.querySelectorAll(e); - } - }; - var De = function(e) { + var Fe = function(e) { return ( (e.ownerDocument && e.ownerDocument.defaultView) || (e.document && e) || e.defaultView ); }; - function ze(e) { + function qe(e) { return function() { this.style.removeProperty(e); }; } - function Ne(e, t, n) { + function Be(e, t, n) { return function() { this.style.setProperty(e, t, n); }; } - function je(e, t, n) { + function He(e, t, n) { return function() { var r = t.apply(this, arguments); null == r @@ -159362,121 +160027,121 @@ object-assign : this.style.setProperty(e, r, n); }; } - function Re(e, t) { + function Ye(e, t) { return ( e.style.getPropertyValue(t) || - De(e) + Fe(e) .getComputedStyle(e, null) .getPropertyValue(t) ); } - function Ie(e) { + function We(e) { return function() { delete this[e]; }; } - function Fe(e, t) { + function Ve(e, t) { return function() { this[e] = t; }; } - function qe(e, t) { + function Ue(e, t) { return function() { var n = t.apply(this, arguments); null == n ? delete this[e] : (this[e] = n); }; } - function Be(e) { + function Xe(e) { return e.trim().split(/^|\s+/); } - function He(e) { - return e.classList || new Ye(e); + function Ge(e) { + return e.classList || new Ke(e); } - function Ye(e) { + function Ke(e) { (this._node = e), - (this._names = Be(e.getAttribute('class') || '')); + (this._names = Xe(e.getAttribute('class') || '')); } - function We(e, t) { - for (var n = He(e), r = -1, o = t.length; ++r < o; ) + function $e(e, t) { + for (var n = Ge(e), r = -1, o = t.length; ++r < o; ) n.add(t[r]); } - function Ve(e, t) { - for (var n = He(e), r = -1, o = t.length; ++r < o; ) + function Qe(e, t) { + for (var n = Ge(e), r = -1, o = t.length; ++r < o; ) n.remove(t[r]); } - function Ue(e) { + function Je(e) { return function() { - We(this, e); + $e(this, e); }; } - function Xe(e) { + function Ze(e) { return function() { - Ve(this, e); + Qe(this, e); }; } - function Ge(e, t) { + function et(e, t) { return function() { - (t.apply(this, arguments) ? We : Ve)(this, e); + (t.apply(this, arguments) ? $e : Qe)(this, e); }; } - function Ke() { + function tt() { this.textContent = ''; } - function $e(e) { + function nt(e) { return function() { this.textContent = e; }; } - function Qe(e) { + function rt(e) { return function() { var t = e.apply(this, arguments); this.textContent = null == t ? '' : t; }; } - function Je() { + function ot() { this.innerHTML = ''; } - function Ze(e) { + function it(e) { return function() { this.innerHTML = e; }; } - function et(e) { + function at(e) { return function() { var t = e.apply(this, arguments); this.innerHTML = null == t ? '' : t; }; } - function tt() { + function st() { this.nextSibling && this.parentNode.appendChild(this); } - function nt() { + function ct() { this.previousSibling && this.parentNode.insertBefore( this, this.parentNode.firstChild ); } - function rt() { + function ut() { return null; } - function ot() { + function lt() { var e = this.parentNode; e && e.removeChild(this); } - function it() { + function ft() { return this.parentNode.insertBefore( this.cloneNode(!1), this.nextSibling ); } - function at() { + function dt() { return this.parentNode.insertBefore( this.cloneNode(!0), this.nextSibling ); } - Ye.prototype = { + Ke.prototype = { add: function(e) { this._names.indexOf(e) < 0 && (this._names.push(e), @@ -159492,11 +160157,11 @@ object-assign return this._names.indexOf(e) >= 0; } }; - var st = {}, - ct = null; - function ut(e, t, n) { + var pt = {}, + ht = null; + function gt(e, t, n) { return ( - (e = lt(e, t, n)), + (e = mt(e, t, n)), function(t) { var n = t.relatedTarget; (n && @@ -159505,18 +160170,18 @@ object-assign } ); } - function lt(e, t, n) { + function mt(e, t, n) { return function(r) { - var o = ct; - ct = r; + var o = ht; + ht = r; try { e.call(this, this.__data__, t, n); } finally { - ct = o; + ht = o; } }; } - function ft(e) { + function bt(e) { return e .trim() .split(/^|\s+/) @@ -159529,7 +160194,7 @@ object-assign ); }); } - function dt(e) { + function yt(e) { return function() { var t = this.__on; if (t) { @@ -159546,8 +160211,8 @@ object-assign } }; } - function pt(e, t, n) { - var r = st.hasOwnProperty(e.type) ? ut : lt; + function vt(e, t, n) { + var r = pt.hasOwnProperty(e.type) ? gt : mt; return function(o, i, a) { var s, c = this.__on, @@ -159579,17 +160244,17 @@ object-assign c ? c.push(s) : (this.__on = [s]); }; } - function ht(e, t, n, r) { - var o = ct; - (e.sourceEvent = ct), (ct = e); + function _t(e, t, n, r) { + var o = ht; + (e.sourceEvent = ht), (ht = e); try { return t.apply(n, r); } finally { - ct = o; + ht = o; } } - function gt(e, t, n) { - var r = De(e), + function wt(e, t, n) { + var r = Fe(e), o = r.CustomEvent; 'function' == typeof o ? (o = new o(t, n)) @@ -159600,30 +160265,30 @@ object-assign : o.initEvent(t, !1, !1)), e.dispatchEvent(o); } - function mt(e, t) { + function xt(e, t) { return function() { - return gt(this, e, t); + return wt(this, e, t); }; } - function bt(e, t) { + function Mt(e, t) { return function() { - return gt(this, e, t.apply(this, arguments)); + return wt(this, e, t.apply(this, arguments)); }; } 'undefined' != typeof document && ('onmouseenter' in document.documentElement || - (st = { mouseenter: 'mouseover', mouseleave: 'mouseout' })); - var yt = [null]; - function vt(e, t) { + (pt = { mouseenter: 'mouseover', mouseleave: 'mouseout' })); + var kt = [null]; + function St(e, t) { (this._groups = e), (this._parents = t); } - function _t() { - return new vt([[document.documentElement]], yt); + function Ot() { + return new St([[document.documentElement]], kt); } - vt.prototype = _t.prototype = { - constructor: vt, + St.prototype = Ot.prototype = { + constructor: St, select: function(e) { - 'function' != typeof e && (e = ye(e)); + 'function' != typeof e && (e = Me(e)); for ( var t = this._groups, n = t.length, r = new Array(n), o = 0; o < n; @@ -159643,10 +160308,10 @@ object-assign (a = e.call(i, i.__data__, l, s)) && ('__data__' in i && (a.__data__ = i.__data__), (u[l] = a)); - return new vt(r, this._parents); + return new St(r, this._parents); }, selectAll: function(e) { - 'function' != typeof e && (e = _e(e)); + 'function' != typeof e && (e = Se(e)); for ( var t = this._groups, n = t.length, r = [], o = [], i = 0; i < n; @@ -159655,10 +160320,10 @@ object-assign for (var a, s = t[i], c = s.length, u = 0; u < c; ++u) (a = s[u]) && (r.push(e.call(a, a.__data__, u, s)), o.push(a)); - return new vt(r, o); + return new St(r, o); }, filter: function(e) { - 'function' != typeof e && (e = xe(e)); + 'function' != typeof e && (e = Oe(e)); for ( var t = this._groups, n = t.length, r = new Array(n), o = 0; o < n; @@ -159670,7 +160335,7 @@ object-assign ++u ) (i = a[u]) && e.call(i, i.__data__, u, a) && c.push(i); - return new vt(r, this._parents); + return new St(r, this._parents); }, data: function(e, t) { if (!e) @@ -159683,7 +160348,7 @@ object-assign h ); var n, - r = t ? Se : ke, + r = t ? Le : Ce, o = this._parents, i = this._groups; 'function' != typeof e && @@ -159708,23 +160373,23 @@ object-assign m = (c[l] = new Array(g)), b = (s[l] = new Array(g)); r(f, d, m, b, (u[l] = new Array(p)), h, t); - for (var y, v, _ = 0, x = 0; _ < g; ++_) + for (var y, v, _ = 0, w = 0; _ < g; ++_) if ((y = m[_])) { - for (_ >= x && (x = _ + 1); !(v = b[x]) && ++x < g; ); + for (_ >= w && (w = _ + 1); !(v = b[w]) && ++w < g; ); y._next = v || null; } } - return ((s = new vt(s, o))._enter = c), (s._exit = u), s; + return ((s = new St(s, o))._enter = c), (s._exit = u), s; }, enter: function() { - return new vt( - this._enter || this._groups.map(we), + return new St( + this._enter || this._groups.map(Ee), this._parents ); }, exit: function() { - return new vt( - this._exit || this._groups.map(we), + return new St( + this._exit || this._groups.map(Ee), this._parents ); }, @@ -159763,7 +160428,7 @@ object-assign ) (c = u[p] || l[p]) && (d[p] = c); for (; s < r; ++s) a[s] = t[s]; - return new vt(a, this._parents); + return new St(a, this._parents); }, order: function() { for (var e = this._groups, t = -1, n = e.length; ++t < n; ) @@ -159783,7 +160448,7 @@ object-assign function t(t, n) { return t && n ? e(t.__data__, n.__data__) : !t - !n; } - e || (e = Ae); + e || (e = Pe); for ( var n = this._groups, r = n.length, o = new Array(r), i = 0; i < r; @@ -159801,7 +160466,7 @@ object-assign (a = s[l]) && (u[l] = a); u.sort(t); } - return new vt(o, this._parents).order(); + return new St(o, this._parents).order(); }, call: function() { var e = arguments[0]; @@ -159844,7 +160509,7 @@ object-assign return this; }, attr: function(e, t) { - var n = pe(e); + var n = ye(e); if (arguments.length < 2) { var r = this.node(); return n.local @@ -159854,32 +160519,32 @@ object-assign return this.each( (null == t ? n.local - ? Ee - : Oe + ? je + : De : 'function' == typeof t ? n.local - ? Pe - : Le + ? Ie + : Re : n.local - ? Ce - : Te)(n, t) + ? Ne + : ze)(n, t) ); }, style: function(e, t, n) { return arguments.length > 1 ? this.each( - (null == t ? ze : 'function' == typeof t ? je : Ne)( + (null == t ? qe : 'function' == typeof t ? He : Be)( e, t, null == n ? '' : n ) ) - : Re(this.node(), e); + : Ye(this.node(), e); }, property: function(e, t) { return arguments.length > 1 ? this.each( - (null == t ? Ie : 'function' == typeof t ? qe : Fe)( + (null == t ? We : 'function' == typeof t ? Ue : Ve)( e, t ) @@ -159887,10 +160552,10 @@ object-assign : this.node()[e]; }, classed: function(e, t) { - var n = Be(e + ''); + var n = Xe(e + ''); if (arguments.length < 2) { for ( - var r = He(this.node()), o = -1, i = n.length; + var r = Ge(this.node()), o = -1, i = n.length; ++o < i; ) @@ -159898,38 +160563,38 @@ object-assign return !0; } return this.each( - ('function' == typeof t ? Ge : t ? Ue : Xe)(n, t) + ('function' == typeof t ? et : t ? Je : Ze)(n, t) ); }, text: function(e) { return arguments.length ? this.each( - null == e ? Ke : ('function' == typeof e ? Qe : $e)(e) + null == e ? tt : ('function' == typeof e ? rt : nt)(e) ) : this.node().textContent; }, html: function(e) { return arguments.length ? this.each( - null == e ? Je : ('function' == typeof e ? et : Ze)(e) + null == e ? ot : ('function' == typeof e ? at : it)(e) ) : this.node().innerHTML; }, raise: function() { - return this.each(tt); + return this.each(st); }, lower: function() { - return this.each(nt); + return this.each(ct); }, append: function(e) { - var t = 'function' == typeof e ? e : me(e); + var t = 'function' == typeof e ? e : we(e); return this.select(function() { return this.appendChild(t.apply(this, arguments)); }); }, insert: function(e, t) { - var n = 'function' == typeof e ? e : me(e), - r = null == t ? rt : 'function' == typeof t ? t : ye(t); + var n = 'function' == typeof e ? e : we(e), + r = null == t ? ut : 'function' == typeof t ? t : Me(t); return this.select(function() { return this.insertBefore( n.apply(this, arguments), @@ -159938,10 +160603,10 @@ object-assign }); }, remove: function() { - return this.each(ot); + return this.each(lt); }, clone: function(e) { - return this.select(e ? at : it); + return this.select(e ? dt : ft); }, datum: function(e) { return arguments.length @@ -159951,11 +160616,11 @@ object-assign on: function(e, t, n) { var r, o, - i = ft(e + ''), + i = bt(e + ''), a = i.length; if (!(arguments.length < 2)) { for ( - s = t ? pt : dt, null == n && (n = !1), r = 0; + s = t ? vt : yt, null == n && (n = !1), r = 0; r < a; ++r ) @@ -159970,30 +160635,30 @@ object-assign return c.value; }, dispatch: function(e, t) { - return this.each(('function' == typeof t ? bt : mt)(e, t)); + return this.each(('function' == typeof t ? Mt : xt)(e, t)); } }; - var xt = _t, - wt = function(e) { + var Et = Ot, + At = function(e) { return 'string' == typeof e - ? new vt( + ? new St( [[document.querySelector(e)]], [document.documentElement] ) - : new vt([[e]], yt); + : new St([[e]], kt); }, - Mt = function(e) { - return wt(me(e).call(document.documentElement)); + Tt = function(e) { + return At(we(e).call(document.documentElement)); }, - kt = 0; - function St() { - return new At(); + Ct = 0; + function Lt() { + return new Pt(); } - function At() { - this._ = '@' + (++kt).toString(36); + function Pt() { + this._ = '@' + (++Ct).toString(36); } - At.prototype = St.prototype = { - constructor: At, + Pt.prototype = Lt.prototype = { + constructor: Pt, get: function(e) { for (var t = this._; !(t in e); ) if (!(e = e.parentNode)) return; @@ -160009,11 +160674,11 @@ object-assign return this._; } }; - var Ot = function() { - for (var e, t = ct; (e = t.sourceEvent); ) t = e; + var Dt = function() { + for (var e, t = ht; (e = t.sourceEvent); ) t = e; return t; }, - Et = function(e, t) { + jt = function(e, t) { var n = e.ownerSVGElement || e; if (n.createSVGPoint) { var r = n.createSVGPoint(); @@ -160032,55 +160697,55 @@ object-assign t.clientY - o.top - e.clientTop ]; }, - Tt = function(e) { - var t = Ot(); + zt = function(e) { + var t = Dt(); return ( - t.changedTouches && (t = t.changedTouches[0]), Et(e, t) + t.changedTouches && (t = t.changedTouches[0]), jt(e, t) ); }, - Ct = function(e) { + Nt = function(e) { return 'string' == typeof e - ? new vt( + ? new St( [document.querySelectorAll(e)], [document.documentElement] ) - : new vt([null == e ? [] : e], yt); + : new St([null == e ? [] : e], kt); }, - Lt = function(e, t, n) { - arguments.length < 3 && ((n = t), (t = Ot().changedTouches)); + Rt = function(e, t, n) { + arguments.length < 3 && ((n = t), (t = Dt().changedTouches)); for (var r, o = 0, i = t ? t.length : 0; o < i; ++o) - if ((r = t[o]).identifier === n) return Et(e, r); + if ((r = t[o]).identifier === n) return jt(e, r); return null; }, - Pt = function(e, t) { - null == t && (t = Ot().touches); + It = function(e, t) { + null == t && (t = Dt().touches); for ( var n = 0, r = t ? t.length : 0, o = new Array(r); n < r; ++n ) - o[n] = Et(e, t[n]); + o[n] = jt(e, t[n]); return o; }; - function Dt() { - ct.stopImmediatePropagation(); + function Ft() { + ht.stopImmediatePropagation(); } - var zt = function() { - ct.preventDefault(), ct.stopImmediatePropagation(); + var qt = function() { + ht.preventDefault(), ht.stopImmediatePropagation(); }, - Nt = function(e) { + Bt = function(e) { var t = e.document.documentElement, - n = wt(e).on('dragstart.drag', zt, !0); + n = At(e).on('dragstart.drag', qt, !0); 'onselectstart' in t - ? n.on('selectstart.drag', zt, !0) + ? n.on('selectstart.drag', qt, !0) : ((t.__noselect = t.style.MozUserSelect), (t.style.MozUserSelect = 'none')); }; - function jt(e, t) { + function Ht(e, t) { var n = e.document.documentElement, - r = wt(e).on('dragstart.drag', null); + r = At(e).on('dragstart.drag', null); t && - (r.on('click.drag', zt, !0), + (r.on('click.drag', qt, !0), setTimeout(function() { r.on('click.drag', null); }, 0)), @@ -160089,12 +160754,12 @@ object-assign : ((n.style.MozUserSelect = n.__noselect), delete n.__noselect); } - var Rt = function(e) { + var Yt = function(e) { return function() { return e; }; }; - function It(e, t, n, r, o, i, a, s, c, u) { + function Wt(e, t, n, r, o, i, a, s, c, u) { (this.target = e), (this.type = t), (this.subject = n), @@ -160106,33 +160771,33 @@ object-assign (this.dy = c), (this._ = u); } - function Ft() { - return !ct.ctrlKey && !ct.button; + function Vt() { + return !ht.ctrlKey && !ht.button; } - function qt() { + function Ut() { return this.parentNode; } - function Bt(e) { - return null == e ? { x: ct.x, y: ct.y } : e; + function Xt(e) { + return null == e ? { x: ht.x, y: ht.y } : e; } - function Ht() { + function Gt() { return navigator.maxTouchPoints || 'ontouchstart' in this; } - It.prototype.on = function() { + Wt.prototype.on = function() { var e = this._.on.apply(this._, arguments); return e === this._ ? this : e; }; - var Yt = function() { + var Kt = function() { var e, t, n, r, - o = Ft, - i = qt, - a = Bt, - s = Ht, + o = Vt, + i = Ut, + a = Xt, + s = Gt, c = {}, - u = le('start', 'drag', 'end'), + u = ge('start', 'drag', 'end'), l = 0, f = 0; function d(e) { @@ -160149,60 +160814,60 @@ object-assign var a = v( 'mouse', i.apply(this, arguments), - Tt, + zt, this, arguments ); a && - (wt(ct.view) + (At(ht.view) .on('mousemove.drag', h, !0) .on('mouseup.drag', g, !0), - Nt(ct.view), - Dt(), + Bt(ht.view), + Ft(), (n = !1), - (e = ct.clientX), - (t = ct.clientY), + (e = ht.clientX), + (t = ht.clientY), a('start')); } } function h() { - if ((zt(), !n)) { - var r = ct.clientX - e, - o = ct.clientY - t; + if ((qt(), !n)) { + var r = ht.clientX - e, + o = ht.clientY - t; n = r * r + o * o > f; } c.mouse('drag'); } function g() { - wt(ct.view).on('mousemove.drag mouseup.drag', null), - jt(ct.view, n), - zt(), + At(ht.view).on('mousemove.drag mouseup.drag', null), + Ht(ht.view, n), + qt(), c.mouse('end'); } function m() { if (o.apply(this, arguments)) { var e, t, - n = ct.changedTouches, + n = ht.changedTouches, r = i.apply(this, arguments), a = n.length; for (e = 0; e < a; ++e) - (t = v(n[e].identifier, r, Lt, this, arguments)) && - (Dt(), t('start')); + (t = v(n[e].identifier, r, Rt, this, arguments)) && + (Ft(), t('start')); } } function b() { var e, t, - n = ct.changedTouches, + n = ht.changedTouches, r = n.length; for (e = 0; e < r; ++e) - (t = c[n[e].identifier]) && (zt(), t('drag')); + (t = c[n[e].identifier]) && (qt(), t('drag')); } function y() { var e, t, - n = ct.changedTouches, + n = ht.changedTouches, o = n.length; for ( r && clearTimeout(r), @@ -160213,7 +160878,7 @@ object-assign e < o; ++e ) - (t = c[n[e].identifier]) && (Dt(), t('end')); + (t = c[n[e].identifier]) && (Ft(), t('end')); } function v(e, t, n, r, o) { var i, @@ -160222,11 +160887,11 @@ object-assign p = n(t, e), h = u.copy(); if ( - ht( - new It(d, 'beforestart', i, e, l, p[0], p[1], 0, 0, h), + _t( + new Wt(d, 'beforestart', i, e, l, p[0], p[1], 0, 0, h), function() { return ( - null != (ct.subject = i = a.apply(r, o)) && + null != (ht.subject = i = a.apply(r, o)) && ((s = i.x - p[0] || 0), (f = i.y - p[1] || 0), !0) ); } @@ -160244,8 +160909,8 @@ object-assign case 'drag': (p = n(t, e)), (g = l); } - ht( - new It( + _t( + new Wt( d, u, i, @@ -160266,22 +160931,22 @@ object-assign return ( (d.filter = function(e) { return arguments.length - ? ((o = 'function' == typeof e ? e : Rt(!!e)), d) + ? ((o = 'function' == typeof e ? e : Yt(!!e)), d) : o; }), (d.container = function(e) { return arguments.length - ? ((i = 'function' == typeof e ? e : Rt(e)), d) + ? ((i = 'function' == typeof e ? e : Yt(e)), d) : i; }), (d.subject = function(e) { return arguments.length - ? ((a = 'function' == typeof e ? e : Rt(e)), d) + ? ((a = 'function' == typeof e ? e : Yt(e)), d) : a; }), (d.touchable = function(e) { return arguments.length - ? ((s = 'function' == typeof e ? e : Rt(!!e)), d) + ? ((s = 'function' == typeof e ? e : Yt(!!e)), d) : s; }), (d.on = function() { @@ -160296,26 +160961,26 @@ object-assign d ); }, - Wt = function(e, t, n) { + $t = function(e, t, n) { (e.prototype = t.prototype = n), (n.constructor = e); }; - function Vt(e, t) { + function Qt(e, t) { var n = Object.create(e.prototype); for (var r in t) n[r] = t[r]; return n; } - function Ut() {} - var Xt = '\\s*([+-]?\\d+)\\s*', - Gt = '\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*', - Kt = '\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*', - $t = /^#([0-9a-f]{3,8})$/, - Qt = new RegExp('^rgb\\(' + [Xt, Xt, Xt] + '\\)$'), - Jt = new RegExp('^rgb\\(' + [Kt, Kt, Kt] + '\\)$'), - Zt = new RegExp('^rgba\\(' + [Xt, Xt, Xt, Gt] + '\\)$'), - en = new RegExp('^rgba\\(' + [Kt, Kt, Kt, Gt] + '\\)$'), - tn = new RegExp('^hsl\\(' + [Gt, Kt, Kt] + '\\)$'), - nn = new RegExp('^hsla\\(' + [Gt, Kt, Kt, Gt] + '\\)$'), - rn = { + function Jt() {} + var Zt = '\\s*([+-]?\\d+)\\s*', + en = '\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*', + tn = '\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*', + nn = /^#([0-9a-f]{3,8})$/, + rn = new RegExp('^rgb\\(' + [Zt, Zt, Zt] + '\\)$'), + on = new RegExp('^rgb\\(' + [tn, tn, tn] + '\\)$'), + an = new RegExp('^rgba\\(' + [Zt, Zt, Zt, en] + '\\)$'), + sn = new RegExp('^rgba\\(' + [tn, tn, tn, en] + '\\)$'), + cn = new RegExp('^hsl\\(' + [en, tn, tn] + '\\)$'), + un = new RegExp('^hsla\\(' + [en, tn, tn, en] + '\\)$'), + ln = { aliceblue: 15792383, antiquewhite: 16444375, aqua: 65535, @@ -160465,99 +161130,99 @@ object-assign yellow: 16776960, yellowgreen: 10145074 }; - function on() { + function fn() { return this.rgb().formatHex(); } - function an() { + function dn() { return this.rgb().formatRgb(); } - function sn(e) { + function pn(e) { var t, n; return ( (e = (e + '').trim().toLowerCase()), - (t = $t.exec(e)) + (t = nn.exec(e)) ? ((n = t[1].length), (t = parseInt(t[1], 16)), 6 === n - ? cn(t) + ? hn(t) : 3 === n - ? new dn( + ? new yn( ((t >> 8) & 15) | ((t >> 4) & 240), ((t >> 4) & 15) | (240 & t), ((15 & t) << 4) | (15 & t), 1 ) : 8 === n - ? new dn( + ? new yn( (t >> 24) & 255, (t >> 16) & 255, (t >> 8) & 255, (255 & t) / 255 ) : 4 === n - ? new dn( + ? new yn( ((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 = Qt.exec(e)) - ? new dn(t[1], t[2], t[3], 1) - : (t = Jt.exec(e)) - ? new dn( + : (t = rn.exec(e)) + ? new yn(t[1], t[2], t[3], 1) + : (t = on.exec(e)) + ? new yn( (255 * t[1]) / 100, (255 * t[2]) / 100, (255 * t[3]) / 100, 1 ) - : (t = Zt.exec(e)) - ? un(t[1], t[2], t[3], t[4]) - : (t = en.exec(e)) - ? un( + : (t = an.exec(e)) + ? gn(t[1], t[2], t[3], t[4]) + : (t = sn.exec(e)) + ? gn( (255 * t[1]) / 100, (255 * t[2]) / 100, (255 * t[3]) / 100, t[4] ) - : (t = tn.exec(e)) - ? mn(t[1], t[2] / 100, t[3] / 100, 1) - : (t = nn.exec(e)) - ? mn(t[1], t[2] / 100, t[3] / 100, t[4]) - : rn.hasOwnProperty(e) - ? cn(rn[e]) + : (t = cn.exec(e)) + ? xn(t[1], t[2] / 100, t[3] / 100, 1) + : (t = un.exec(e)) + ? xn(t[1], t[2] / 100, t[3] / 100, t[4]) + : ln.hasOwnProperty(e) + ? hn(ln[e]) : 'transparent' === e - ? new dn(NaN, NaN, NaN, 0) + ? new yn(NaN, NaN, NaN, 0) : null ); } - function cn(e) { - return new dn((e >> 16) & 255, (e >> 8) & 255, 255 & e, 1); + function hn(e) { + return new yn((e >> 16) & 255, (e >> 8) & 255, 255 & e, 1); } - function un(e, t, n, r) { - return r <= 0 && (e = t = n = NaN), new dn(e, t, n, r); + function gn(e, t, n, r) { + return r <= 0 && (e = t = n = NaN), new yn(e, t, n, r); } - function ln(e) { + function mn(e) { return ( - e instanceof Ut || (e = sn(e)), - e ? new dn((e = e.rgb()).r, e.g, e.b, e.opacity) : new dn() + e instanceof Jt || (e = pn(e)), + e ? new yn((e = e.rgb()).r, e.g, e.b, e.opacity) : new yn() ); } - function fn(e, t, n, r) { + function bn(e, t, n, r) { return 1 === arguments.length - ? ln(e) - : new dn(e, t, n, null == r ? 1 : r); + ? mn(e) + : new yn(e, t, n, null == r ? 1 : r); } - function dn(e, t, n, r) { + function yn(e, t, n, r) { (this.r = +e), (this.g = +t), (this.b = +n), (this.opacity = +r); } - function pn() { - return '#' + gn(this.r) + gn(this.g) + gn(this.b); + function vn() { + return '#' + wn(this.r) + wn(this.g) + wn(this.b); } - function hn() { + function _n() { var e = this.opacity; return ( (1 === (e = isNaN(e) ? 1 : Math.max(0, Math.min(1, e))) @@ -160571,27 +161236,27 @@ object-assign (1 === e ? ')' : ', ' + e + ')') ); } - function gn(e) { + function wn(e) { return ( ((e = Math.max(0, Math.min(255, Math.round(e) || 0))) < 16 ? '0' : '') + e.toString(16) ); } - function mn(e, t, n, r) { + function xn(e, t, n, r) { return ( r <= 0 ? (e = t = n = NaN) : n <= 0 || n >= 1 ? (e = t = NaN) : t <= 0 && (e = NaN), - new vn(e, t, n, r) + new Sn(e, t, n, r) ); } - function bn(e) { - if (e instanceof vn) return new vn(e.h, e.s, e.l, e.opacity); - if ((e instanceof Ut || (e = sn(e)), !e)) return new vn(); - if (e instanceof vn) return e; + function Mn(e) { + if (e instanceof Sn) return new Sn(e.h, e.s, e.l, e.opacity); + if ((e instanceof Jt || (e = pn(e)), !e)) return new Sn(); + if (e instanceof Sn) return e; var t = (e = e.rgb()).r / 255, n = e.g / 255, r = e.b / 255, @@ -160611,21 +161276,21 @@ object-assign (s /= c < 0.5 ? i + o : 2 - i - o), (a *= 60)) : (s = c > 0 && c < 1 ? 0 : a), - new vn(a, s, c, e.opacity) + new Sn(a, s, c, e.opacity) ); } - function yn(e, t, n, r) { + function kn(e, t, n, r) { return 1 === arguments.length - ? bn(e) - : new vn(e, t, n, null == r ? 1 : r); + ? Mn(e) + : new Sn(e, t, n, null == r ? 1 : r); } - function vn(e, t, n, r) { + function Sn(e, t, n, r) { (this.h = +e), (this.s = +t), (this.l = +n), (this.opacity = +r); } - function _n(e, t, n) { + function On(e, t, n) { return ( 255 * (e < 60 @@ -160637,7 +161302,7 @@ object-assign : t) ); } - function xn(e, t, n, r, o) { + function En(e, t, n, r, o) { var i = e * e, a = i * e; return ( @@ -160648,35 +161313,35 @@ object-assign 6 ); } - Wt(Ut, sn, { + $t(Jt, pn, { copy: function(e) { return Object.assign(new this.constructor(), this, e); }, displayable: function() { return this.rgb().displayable(); }, - hex: on, - formatHex: on, + hex: fn, + formatHex: fn, formatHsl: function() { - return bn(this).formatHsl(); + return Mn(this).formatHsl(); }, - formatRgb: an, - toString: an + formatRgb: dn, + toString: dn }), - Wt( - dn, - fn, - Vt(Ut, { + $t( + yn, + bn, + Qt(Jt, { brighter: function(e) { return ( (e = null == e ? 1 / 0.7 : Math.pow(1 / 0.7, e)), - new dn(this.r * e, this.g * e, this.b * e, this.opacity) + new yn(this.r * e, this.g * e, this.b * e, this.opacity) ); }, darker: function(e) { return ( (e = null == e ? 0.7 : Math.pow(0.7, e)), - new dn(this.r * e, this.g * e, this.b * e, this.opacity) + new yn(this.r * e, this.g * e, this.b * e, this.opacity) ); }, rgb: function() { @@ -160694,26 +161359,26 @@ object-assign this.opacity <= 1 ); }, - hex: pn, - formatHex: pn, - formatRgb: hn, - toString: hn + hex: vn, + formatHex: vn, + formatRgb: _n, + toString: _n }) ), - Wt( - vn, - yn, - Vt(Ut, { + $t( + Sn, + kn, + Qt(Jt, { brighter: function(e) { return ( (e = null == e ? 1 / 0.7 : Math.pow(1 / 0.7, e)), - new vn(this.h, this.s, this.l * e, this.opacity) + new Sn(this.h, this.s, this.l * e, this.opacity) ); }, darker: function(e) { return ( (e = null == e ? 0.7 : Math.pow(0.7, e)), - new vn(this.h, this.s, this.l * e, this.opacity) + new Sn(this.h, this.s, this.l * e, this.opacity) ); }, rgb: function() { @@ -160722,10 +161387,10 @@ object-assign n = this.l, r = n + (n < 0.5 ? n : 1 - n) * t, o = 2 * n - r; - return new dn( - _n(e >= 240 ? e - 240 : e + 120, o, r), - _n(e, o, r), - _n(e < 120 ? e + 240 : e - 120, o, r), + return new yn( + On(e >= 240 ? e - 240 : e + 120, o, r), + On(e, o, r), + On(e < 120 ? e + 240 : e - 120, o, r), this.opacity ); }, @@ -160755,7 +161420,7 @@ object-assign } }) ); - var wn = function(e) { + var An = function(e) { var t = e.length - 1; return function(n) { var r = @@ -160768,10 +161433,10 @@ object-assign i = e[r + 1], a = r > 0 ? e[r - 1] : 2 * o - i, s = r < t - 1 ? e[r + 2] : 2 * i - o; - return xn((n - r / t) * t, a, o, i, s); + return En((n - r / t) * t, a, o, i, s); }; }, - Mn = function(e) { + Tn = function(e) { var t = e.length; return function(n) { var r = Math.floor(((n %= 1) < 0 ? ++n : n) * t), @@ -160779,31 +161444,31 @@ object-assign i = e[r % t], a = e[(r + 1) % t], s = e[(r + 2) % t]; - return xn((n - r / t) * t, o, i, a, s); + return En((n - r / t) * t, o, i, a, s); }; }, - kn = function(e) { + Cn = function(e) { return function() { return e; }; }; - function Sn(e, t) { + function Ln(e, t) { return function(n) { return e + n * t; }; } - function An(e, t) { + function Pn(e, t) { var n = t - e; return n - ? Sn( + ? Ln( e, n > 180 || n < -180 ? n - 360 * Math.round(n / 360) : n ) - : kn(isNaN(e) ? t : e); + : Cn(isNaN(e) ? t : e); } - function On(e) { + function Dn(e) { return 1 == (e = +e) - ? En + ? jn : function(t, n) { return n - t ? (function(e, t, n) { @@ -160816,20 +161481,20 @@ object-assign } ); })(t, n, e) - : kn(isNaN(t) ? n : t); + : Cn(isNaN(t) ? n : t); }; } - function En(e, t) { + function jn(e, t) { var n = t - e; - return n ? Sn(e, n) : kn(isNaN(e) ? t : e); + return n ? Ln(e, n) : Cn(isNaN(e) ? t : e); } - var Tn = (function e(t) { - var n = On(t); + var zn = (function e(t) { + var n = Dn(t); function r(e, t) { - var r = n((e = fn(e)).r, (t = fn(t)).r), + var r = n((e = bn(e)).r, (t = bn(t)).r), o = n(e.g, t.g), i = n(e.b, t.b), - a = En(e.opacity, t.opacity); + a = jn(e.opacity, t.opacity); return function(t) { return ( (e.r = r(t)), @@ -160842,7 +161507,7 @@ object-assign } return (r.gamma = e), r; })(1); - function Cn(e) { + function Nn(e) { return function(t) { var n, r, @@ -160851,7 +161516,7 @@ object-assign a = new Array(o), s = new Array(o); for (n = 0; n < o; ++n) - (r = fn(t[n])), + (r = bn(t[n])), (i[n] = r.r || 0), (a[n] = r.g || 0), (s[n] = r.b || 0); @@ -160866,26 +161531,26 @@ object-assign ); }; } - var Ln, - Pn, - Dn, - zn, - Nn = Cn(wn), - jn = Cn(Mn), - Rn = function(e, t) { + var Rn, + In, + Fn, + qn, + Bn = Nn(An), + Hn = Nn(Tn), + Yn = function(e, t) { var n, r = t ? t.length : 0, o = e ? Math.min(r, e.length) : 0, i = new Array(o), a = new Array(r); - for (n = 0; n < o; ++n) i[n] = Wn(e[n], t[n]); + for (n = 0; n < o; ++n) i[n] = $n(e[n], t[n]); for (; n < r; ++n) a[n] = t[n]; return function(e) { for (n = 0; n < o; ++n) a[n] = i[n](e); return a; }; }, - In = function(e, t) { + Wn = function(e, t) { var n = new Date(); return ( (t -= e = +e), @@ -160894,7 +161559,7 @@ object-assign } ); }, - Fn = function(e, t) { + Vn = function(e, t) { return ( (t -= e = +e), function(n) { @@ -160902,38 +161567,38 @@ object-assign } ); }, - qn = function(e, t) { + Un = function(e, t) { var n, r = {}, o = {}; for (n in ((null !== e && 'object' == typeof e) || (e = {}), (null !== t && 'object' == typeof t) || (t = {}), t)) - n in e ? (r[n] = Wn(e[n], t[n])) : (o[n] = t[n]); + n in e ? (r[n] = $n(e[n], t[n])) : (o[n] = t[n]); return function(e) { for (n in r) o[n] = r[n](e); return o; }; }, - Bn = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, - Hn = new RegExp(Bn.source, 'g'), - Yn = function(e, t) { + Xn = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, + Gn = new RegExp(Xn.source, 'g'), + Kn = function(e, t) { var n, r, o, - i = (Bn.lastIndex = Hn.lastIndex = 0), + i = (Xn.lastIndex = Gn.lastIndex = 0), a = -1, s = [], c = []; - for (e += '', t += ''; (n = Bn.exec(e)) && (r = Hn.exec(t)); ) + for (e += '', t += ''; (n = Xn.exec(e)) && (r = Gn.exec(t)); ) (o = r.index) > i && ((o = t.slice(i, o)), s[a] ? (s[a] += o) : (s[++a] = o)), (n = n[0]) === (r = r[0]) ? s[a] ? (s[a] += r) : (s[++a] = r) - : ((s[++a] = null), c.push({ i: a, x: Fn(n, r) })), - (i = Hn.lastIndex); + : ((s[++a] = null), c.push({ i: a, x: Vn(n, r) })), + (i = Gn.lastIndex); return ( i < t.length && ((o = t.slice(i)), s[a] ? (s[a] += o) : (s[++a] = o)), @@ -160957,43 +161622,43 @@ object-assign }) ); }, - Wn = function(e, t) { + $n = function(e, t) { var n, r = typeof t; return null == t || 'boolean' === r - ? kn(t) + ? Cn(t) : ('number' === r - ? Fn + ? Vn : 'string' === r - ? (n = sn(t)) - ? ((t = n), Tn) - : Yn - : t instanceof sn - ? Tn + ? (n = pn(t)) + ? ((t = n), zn) + : Kn + : t instanceof pn + ? zn : t instanceof Date - ? In + ? Wn : Array.isArray(t) - ? Rn + ? Yn : ('function' != typeof t.valueOf && 'function' != typeof t.toString) || isNaN(t) - ? qn - : Fn)(e, t); + ? Un + : Vn)(e, t); }, - Vn = function(e) { + Qn = function(e) { var t = e.length; return function(n) { return e[Math.max(0, Math.min(t - 1, Math.floor(n * t)))]; }; }, - Un = function(e, t) { - var n = An(+e, +t); + Jn = function(e, t) { + var n = Pn(+e, +t); return function(e) { var t = n(e); return t - 360 * Math.floor(t / 360); }; }, - Xn = function(e, t) { + Zn = function(e, t) { return ( (t -= e = +e), function(n) { @@ -161001,8 +161666,8 @@ object-assign } ); }, - Gn = 180 / Math.PI, - Kn = { + er = 180 / Math.PI, + tr = { translateX: 0, translateY: 0, rotate: 0, @@ -161010,7 +161675,7 @@ object-assign scaleX: 1, scaleY: 1 }, - $n = function(e, t, n, r, o, i) { + nr = function(e, t, n, r, o, i) { var a, s, c; return ( (a = Math.sqrt(e * e + t * t)) && ((e /= a), (t /= a)), @@ -161021,14 +161686,14 @@ object-assign { translateX: o, translateY: i, - rotate: Math.atan2(t, e) * Gn, - skewX: Math.atan(c) * Gn, + rotate: Math.atan2(t, e) * er, + skewX: Math.atan(c) * er, scaleX: a, scaleY: s } ); }; - function Qn(e, t, n, r) { + function rr(e, t, n, r) { function o(e) { return e.length ? e.pop() + ' ' : ''; } @@ -161042,8 +161707,8 @@ object-assign if (e !== o || r !== i) { var c = a.push('translate(', null, t, null, n); s.push( - { i: c - 4, x: Fn(e, o) }, - { i: c - 2, x: Fn(r, i) } + { i: c - 4, x: Vn(e, o) }, + { i: c - 2, x: Vn(r, i) } ); } else (o || i) && a.push('translate(' + o + t + i + n); })( @@ -161059,7 +161724,7 @@ object-assign ? (e - t > 180 ? (t += 360) : t - e > 180 && (e += 360), i.push({ i: n.push(o(n) + 'rotate(', null, r) - 2, - x: Fn(e, t) + x: Vn(e, t) })) : t && n.push(o(n) + 'rotate(' + t + r); })(i.rotate, a.rotate, s, c), @@ -161067,7 +161732,7 @@ object-assign e !== t ? i.push({ i: n.push(o(n) + 'skewX(', null, r) - 2, - x: Fn(e, t) + x: Vn(e, t) }) : t && n.push(o(n) + 'skewX(' + t + r); })(i.skewX, a.skewX, s, c), @@ -161075,8 +161740,8 @@ object-assign if (e !== n || t !== r) { var s = i.push(o(i) + 'scale(', null, ',', null, ')'); a.push( - { i: s - 4, x: Fn(e, n) }, - { i: s - 2, x: Fn(t, r) } + { i: s - 4, x: Vn(e, n) }, + { i: s - 2, x: Vn(t, r) } ); } else (1 === n && 1 === r) || @@ -161091,50 +161756,50 @@ object-assign ); }; } - var Jn = Qn( + var or = rr( function(e) { return 'none' === e - ? Kn - : (Ln || - ((Ln = document.createElement('DIV')), - (Pn = document.documentElement), - (Dn = document.defaultView)), - (Ln.style.transform = e), - (e = Dn.getComputedStyle( - Pn.appendChild(Ln), + ? tr + : (Rn || + ((Rn = document.createElement('DIV')), + (In = document.documentElement), + (Fn = document.defaultView)), + (Rn.style.transform = e), + (e = Fn.getComputedStyle( + In.appendChild(Rn), null ).getPropertyValue('transform')), - Pn.removeChild(Ln), + In.removeChild(Rn), (e = e.slice(7, -1).split(',')), - $n(+e[0], +e[1], +e[2], +e[3], +e[4], +e[5])); + nr(+e[0], +e[1], +e[2], +e[3], +e[4], +e[5])); }, 'px, ', 'px)', 'deg)' ), - Zn = Qn( + ir = rr( function(e) { return null == e - ? Kn - : (zn || - (zn = document.createElementNS( + ? tr + : (qn || + (qn = document.createElementNS( 'http://www.w3.org/2000/svg', 'g' )), - zn.setAttribute('transform', e), - (e = zn.transform.baseVal.consolidate()) - ? ((e = e.matrix), $n(e.a, e.b, e.c, e.d, e.e, e.f)) - : Kn); + qn.setAttribute('transform', e), + (e = qn.transform.baseVal.consolidate()) + ? ((e = e.matrix), nr(e.a, e.b, e.c, e.d, e.e, e.f)) + : tr); }, ', ', ')', ')' ), - er = Math.SQRT2; - function tr(e) { + ar = Math.SQRT2; + function sr(e) { return ((e = Math.exp(e)) + 1 / e) / 2; } - var nr = function(e, t) { + var cr = function(e, t) { var n, r, o = e[0], @@ -161147,9 +161812,9 @@ object-assign f = c - i, d = l * l + f * f; if (d < 1e-12) - (r = Math.log(u / a) / er), + (r = Math.log(u / a) / ar), (n = function(e) { - return [o + e * l, i + e * f, a * Math.exp(er * e * r)]; + return [o + e * l, i + e * f, a * Math.exp(ar * e * r)]; }); else { var p = Math.sqrt(d), @@ -161157,30 +161822,30 @@ object-assign g = (u * u - a * a - 4 * d) / (2 * u * 2 * p), m = Math.log(Math.sqrt(h * h + 1) - h), b = Math.log(Math.sqrt(g * g + 1) - g); - (r = (b - m) / er), + (r = (b - m) / ar), (n = function(e) { var t, n = e * r, - s = tr(m), + s = sr(m), c = (a / (2 * p)) * (s * - ((t = er * n + m), + ((t = ar * n + m), ((t = Math.exp(2 * t)) - 1) / (t + 1)) - (function(e) { return ((e = Math.exp(e)) - 1 / e) / 2; })(m)); - return [o + c * l, i + c * f, (a * s) / tr(er * n + m)]; + return [o + c * l, i + c * f, (a * s) / sr(ar * n + m)]; }); } return (n.duration = 1e3 * r), n; }; - function rr(e) { + function ur(e) { return function(t, n) { - var r = e((t = yn(t)).h, (n = yn(n)).h), - o = En(t.s, n.s), - i = En(t.l, n.l), - a = En(t.opacity, n.opacity); + var r = e((t = kn(t)).h, (n = kn(n)).h), + o = jn(t.s, n.s), + i = jn(t.l, n.l), + a = jn(t.opacity, n.opacity); return function(e) { return ( (t.h = r(e)), @@ -161192,59 +161857,60 @@ object-assign }; }; } - var or = rr(An), - ir = rr(En), - ar = Math.PI / 180, - sr = 180 / Math.PI; - function cr(e) { - if (e instanceof fr) return new fr(e.l, e.a, e.b, e.opacity); - if (e instanceof vr) return _r(e); - e instanceof dn || (e = ln(e)); + var lr = ur(Pn), + fr = ur(jn), + dr = Math.PI / 180, + pr = 180 / Math.PI, + hr = 0.96422, + gr = 1, + mr = 0.82521, + br = 4 / 29, + yr = 6 / 29, + vr = 3 * yr * yr, + _r = yr * yr * yr; + function wr(e) { + if (e instanceof kr) return new kr(e.l, e.a, e.b, e.opacity); + if (e instanceof Pr) return Dr(e); + e instanceof yn || (e = mn(e)); var t, n, - r = gr(e.r), - o = gr(e.g), - i = gr(e.b), - a = dr((0.2225045 * r + 0.7168786 * o + 0.0606169 * i) / 1); + r = Ar(e.r), + o = Ar(e.g), + i = Ar(e.b), + a = Sr((0.2225045 * r + 0.7168786 * o + 0.0606169 * i) / gr); return ( r === o && o === i ? (t = n = a) - : ((t = dr( - (0.4360747 * r + 0.3850649 * o + 0.1430804 * i) / - 0.96422 + : ((t = Sr( + (0.4360747 * r + 0.3850649 * o + 0.1430804 * i) / hr )), - (n = dr( - (0.0139322 * r + 0.0971045 * o + 0.7141733 * i) / - 0.82521 + (n = Sr( + (0.0139322 * r + 0.0971045 * o + 0.7141733 * i) / mr ))), - new fr(116 * a - 16, 500 * (t - a), 200 * (a - n), e.opacity) + new kr(116 * a - 16, 500 * (t - a), 200 * (a - n), e.opacity) ); } - function ur(e, t) { - return new fr(e, 0, 0, null == t ? 1 : t); + function xr(e, t) { + return new kr(e, 0, 0, null == t ? 1 : t); } - function lr(e, t, n, r) { + function Mr(e, t, n, r) { return 1 === arguments.length - ? cr(e) - : new fr(e, t, n, null == r ? 1 : r); + ? wr(e) + : new kr(e, t, n, null == r ? 1 : r); } - function fr(e, t, n, r) { + function kr(e, t, n, r) { (this.l = +e), (this.a = +t), (this.b = +n), (this.opacity = +r); } - function dr(e) { - return e > (6 / 29) * (6 / 29) * (6 / 29) - ? Math.pow(e, 1 / 3) - : e / ((6 / 29) * 3 * (6 / 29)) + 4 / 29; + function Sr(e) { + return e > _r ? Math.pow(e, 1 / 3) : e / vr + br; } - function pr(e) { - return e > 6 / 29 - ? e * e * e - : (6 / 29) * 3 * (6 / 29) * (e - 4 / 29); + function Or(e) { + return e > yr ? e * e * e : vr * (e - br); } - function hr(e) { + function Er(e) { return ( 255 * (e <= 0.0031308 @@ -161252,59 +161918,59 @@ object-assign : 1.055 * Math.pow(e, 1 / 2.4) - 0.055) ); } - function gr(e) { + function Ar(e) { return (e /= 255) <= 0.04045 ? e / 12.92 : Math.pow((e + 0.055) / 1.055, 2.4); } - function mr(e) { - if (e instanceof vr) return new vr(e.h, e.c, e.l, e.opacity); - if ((e instanceof fr || (e = cr(e)), 0 === e.a && 0 === e.b)) - return new vr( + function Tr(e) { + if (e instanceof Pr) return new Pr(e.h, e.c, e.l, e.opacity); + if ((e instanceof kr || (e = wr(e)), 0 === e.a && 0 === e.b)) + return new Pr( NaN, 0 < e.l && e.l < 100 ? 0 : NaN, e.l, e.opacity ); - var t = Math.atan2(e.b, e.a) * sr; - return new vr( + var t = Math.atan2(e.b, e.a) * pr; + return new Pr( t < 0 ? t + 360 : t, Math.sqrt(e.a * e.a + e.b * e.b), e.l, e.opacity ); } - function br(e, t, n, r) { + function Cr(e, t, n, r) { return 1 === arguments.length - ? mr(e) - : new vr(n, t, e, null == r ? 1 : r); + ? Tr(e) + : new Pr(n, t, e, null == r ? 1 : r); } - function yr(e, t, n, r) { + function Lr(e, t, n, r) { return 1 === arguments.length - ? mr(e) - : new vr(e, t, n, null == r ? 1 : r); + ? Tr(e) + : new Pr(e, t, n, null == r ? 1 : r); } - function vr(e, t, n, r) { + function Pr(e, t, n, r) { (this.h = +e), (this.c = +t), (this.l = +n), (this.opacity = +r); } - function _r(e) { - if (isNaN(e.h)) return new fr(e.l, 0, 0, e.opacity); - var t = e.h * ar; - return new fr( + function Dr(e) { + if (isNaN(e.h)) return new kr(e.l, 0, 0, e.opacity); + var t = e.h * dr; + return new kr( e.l, Math.cos(t) * e.c, Math.sin(t) * e.c, e.opacity ); } - function xr(e, t) { - var n = En((e = lr(e)).l, (t = lr(t)).l), - r = En(e.a, t.a), - o = En(e.b, t.b), - i = En(e.opacity, t.opacity); + function jr(e, t) { + var n = jn((e = Mr(e)).l, (t = Mr(t)).l), + r = jn(e.a, t.a), + o = jn(e.b, t.b), + i = jn(e.opacity, t.opacity); return function(t) { return ( (e.l = n(t)), @@ -161315,12 +161981,12 @@ object-assign ); }; } - function wr(e) { + function zr(e) { return function(t, n) { - var r = e((t = yr(t)).h, (n = yr(n)).h), - o = En(t.c, n.c), - i = En(t.l, n.l), - a = En(t.opacity, n.opacity); + var r = e((t = Lr(t)).h, (n = Lr(n)).h), + o = jn(t.c, n.c), + i = jn(t.l, n.l), + a = jn(t.opacity, n.opacity); return function(e) { return ( (t.h = r(e)), @@ -161332,12 +161998,12 @@ object-assign }; }; } - Wt( - fr, - lr, - Vt(Ut, { + $t( + kr, + Mr, + Qt(Jt, { brighter: function(e) { - return new fr( + return new kr( this.l + 18 * (null == e ? 1 : e), this.a, this.b, @@ -161345,7 +162011,7 @@ object-assign ); }, darker: function(e) { - return new fr( + return new kr( this.l - 18 * (null == e ? 1 : e), this.a, this.b, @@ -161356,25 +162022,25 @@ object-assign var e = (this.l + 16) / 116, t = isNaN(this.a) ? e : e + this.a / 500, n = isNaN(this.b) ? e : e - this.b / 200; - return new dn( - hr( - 3.1338561 * (t = 0.96422 * pr(t)) - - 1.6168667 * (e = 1 * pr(e)) - - 0.4906146 * (n = 0.82521 * pr(n)) + return new yn( + Er( + 3.1338561 * (t = hr * Or(t)) - + 1.6168667 * (e = gr * Or(e)) - + 0.4906146 * (n = mr * Or(n)) ), - hr(-0.9787684 * t + 1.9161415 * e + 0.033454 * n), - hr(0.0719453 * t - 0.2289914 * e + 1.4052427 * n), + Er(-0.9787684 * t + 1.9161415 * e + 0.033454 * n), + Er(0.0719453 * t - 0.2289914 * e + 1.4052427 * n), this.opacity ); } }) ), - Wt( - vr, - yr, - Vt(Ut, { + $t( + Pr, + Lr, + Qt(Jt, { brighter: function(e) { - return new vr( + return new Pr( this.h, this.c, this.l + 18 * (null == e ? 1 : e), @@ -161382,7 +162048,7 @@ object-assign ); }, darker: function(e) { - return new vr( + return new Pr( this.h, this.c, this.l - 18 * (null == e ? 1 : e), @@ -161390,47 +162056,49 @@ object-assign ); }, rgb: function() { - return _r(this).rgb(); + return Dr(this).rgb(); } }) ); - var Mr = wr(An), - kr = wr(En), - Sr = -0.29227, - Ar = -1.7884503806, - Or = 3.5172982438, - Er = -0.6557636667999999; - function Tr(e) { - if (e instanceof Lr) return new Lr(e.h, e.s, e.l, e.opacity); - e instanceof dn || (e = ln(e)); - var t = e.r / 255, - n = e.g / 255, - r = e.b / 255, - o = (Er * r + Ar * t - Or * n) / (Er + Ar - Or), - i = r - o, - a = (1.97294 * (n - o) - Sr * i) / -0.90649, - s = Math.sqrt(a * a + i * i) / (1.97294 * o * (1 - o)), - c = s ? Math.atan2(a, i) * sr - 120 : NaN; - return new Lr(c < 0 ? c + 360 : c, s, o, e.opacity); - } - function Cr(e, t, n, r) { + var Nr = zr(Pn), + Rr = zr(jn), + Ir = -0.29227, + Fr = -0.90649, + qr = 1.97294, + Br = qr * Fr, + Hr = 1.78277 * qr, + Yr = 1.78277 * Ir - -0.14861 * Fr; + function Wr(e, t, n, r) { return 1 === arguments.length - ? Tr(e) - : new Lr(e, t, n, null == r ? 1 : r); + ? (function(e) { + if (e instanceof Vr) + return new Vr(e.h, e.s, e.l, e.opacity); + e instanceof yn || (e = mn(e)); + var t = e.r / 255, + n = e.g / 255, + r = e.b / 255, + o = (Yr * r + Br * t - Hr * n) / (Yr + Br - Hr), + i = r - o, + a = (qr * (n - o) - Ir * i) / Fr, + s = Math.sqrt(a * a + i * i) / (qr * o * (1 - o)), + c = s ? Math.atan2(a, i) * pr - 120 : NaN; + return new Vr(c < 0 ? c + 360 : c, s, o, e.opacity); + })(e) + : new Vr(e, t, n, null == r ? 1 : r); } - function Lr(e, t, n, r) { + function Vr(e, t, n, r) { (this.h = +e), (this.s = +t), (this.l = +n), (this.opacity = +r); } - function Pr(e) { + function Ur(e) { return (function t(n) { function r(t, r) { - var o = e((t = Cr(t)).h, (r = Cr(r)).h), - i = En(t.s, r.s), - a = En(t.l, r.l), - s = En(t.opacity, r.opacity); + var o = e((t = Wr(t)).h, (r = Wr(r)).h), + i = jn(t.s, r.s), + a = jn(t.l, r.l), + s = jn(t.opacity, r.opacity); return function(e) { return ( (t.h = o(e)), @@ -161444,40 +162112,40 @@ object-assign return (n = +n), (r.gamma = t), r; })(1); } - Wt( - Lr, - Cr, - Vt(Ut, { + $t( + Vr, + Wr, + Qt(Jt, { brighter: function(e) { return ( (e = null == e ? 1 / 0.7 : Math.pow(1 / 0.7, e)), - new Lr(this.h, this.s, this.l * e, this.opacity) + new Vr(this.h, this.s, this.l * e, this.opacity) ); }, darker: function(e) { return ( (e = null == e ? 0.7 : Math.pow(0.7, e)), - new Lr(this.h, this.s, this.l * e, this.opacity) + new Vr(this.h, this.s, this.l * e, this.opacity) ); }, rgb: function() { - var e = isNaN(this.h) ? 0 : (this.h + 120) * ar, + var e = isNaN(this.h) ? 0 : (this.h + 120) * dr, t = +this.l, n = isNaN(this.s) ? 0 : this.s * t * (1 - t), r = Math.cos(e), o = Math.sin(e); - return new dn( + return new yn( 255 * (t + n * (-0.14861 * r + 1.78277 * o)), - 255 * (t + n * (Sr * r + -0.90649 * o)), - 255 * (t + n * (1.97294 * r)), + 255 * (t + n * (Ir * r + Fr * o)), + 255 * (t + n * (qr * r)), this.opacity ); } }) ); - var Dr = Pr(An), - zr = Pr(En); - function Nr(e, t) { + var Xr = Ur(Pn), + Gr = Ur(jn); + function Kr(e, t) { for ( var n = 0, r = t.length - 1, @@ -161492,104 +162160,105 @@ object-assign return i[t](e - t); }; } - var jr, - Rr, - Ir = function(e, t) { + var $r, + Qr, + Jr = function(e, t) { for (var n = new Array(t), r = 0; r < t; ++r) n[r] = e(r / (t - 1)); return n; }, - Fr = 0, - qr = 0, - Br = 0, - Hr = 0, - Yr = 0, - Wr = 0, - Vr = + Zr = 0, + eo = 0, + to = 0, + no = 1e3, + ro = 0, + oo = 0, + io = 0, + ao = 'object' == typeof performance && performance.now ? performance : Date, - Ur = + so = 'object' == typeof window && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) { setTimeout(e, 17); }; - function Xr() { - return Yr || (Ur(Gr), (Yr = Vr.now() + Wr)); + function co() { + return oo || (so(uo), (oo = ao.now() + io)); } - function Gr() { - Yr = 0; + function uo() { + oo = 0; } - function Kr() { + function lo() { this._call = this._time = this._next = null; } - function $r(e, t, n) { - var r = new Kr(); + function fo(e, t, n) { + var r = new lo(); return r.restart(e, t, n), r; } - function Qr() { - Xr(), ++Fr; - for (var e, t = jr; t; ) - (e = Yr - t._time) >= 0 && t._call.call(null, e), + function po() { + co(), ++Zr; + for (var e, t = $r; t; ) + (e = oo - t._time) >= 0 && t._call.call(null, e), (t = t._next); - --Fr; + --Zr; } - function Jr() { - (Yr = (Hr = Vr.now()) + Wr), (Fr = qr = 0); + function ho() { + (oo = (ro = ao.now()) + io), (Zr = eo = 0); try { - Qr(); + po(); } finally { - (Fr = 0), + (Zr = 0), (function() { - for (var e, t, n = jr, r = 1 / 0; n; ) + for (var e, t, n = $r, r = 1 / 0; n; ) n._call ? (r > n._time && (r = n._time), (e = n), (n = n._next)) : ((t = n._next), (n._next = null), - (n = e ? (e._next = t) : (jr = t))); - (Rr = e), eo(r); + (n = e ? (e._next = t) : ($r = t))); + (Qr = e), mo(r); })(), - (Yr = 0); - } - } - function Zr() { - var e = Vr.now(), - t = e - Hr; - t > 1e3 && ((Wr -= t), (Hr = e)); - } - function eo(e) { - Fr || - (qr && (qr = clearTimeout(qr)), - e - Yr > 24 - ? (e < 1 / 0 && (qr = setTimeout(Jr, e - Vr.now() - Wr)), - Br && (Br = clearInterval(Br))) - : (Br || ((Hr = Vr.now()), (Br = setInterval(Zr, 1e3))), - (Fr = 1), - Ur(Jr))); - } - Kr.prototype = $r.prototype = { - constructor: Kr, + (oo = 0); + } + } + function go() { + var e = ao.now(), + t = e - ro; + t > no && ((io -= t), (ro = e)); + } + function mo(e) { + Zr || + (eo && (eo = clearTimeout(eo)), + e - oo > 24 + ? (e < 1 / 0 && (eo = setTimeout(ho, e - ao.now() - io)), + to && (to = clearInterval(to))) + : (to || ((ro = ao.now()), (to = setInterval(go, no))), + (Zr = 1), + so(ho))); + } + lo.prototype = fo.prototype = { + constructor: lo, restart: function(e, t, n) { if ('function' != typeof e) throw new TypeError('callback is not a function'); - (n = (null == n ? Xr() : +n) + (null == t ? 0 : +t)), + (n = (null == n ? co() : +n) + (null == t ? 0 : +t)), this._next || - Rr === this || - (Rr ? (Rr._next = this) : (jr = this), (Rr = this)), + Qr === this || + (Qr ? (Qr._next = this) : ($r = this), (Qr = this)), (this._call = e), (this._time = n), - eo(); + mo(); }, stop: function() { this._call && - ((this._call = null), (this._time = 1 / 0), eo()); + ((this._call = null), (this._time = 1 / 0), mo()); } }; - var to = function(e, t, n) { - var r = new Kr(); + var bo = function(e, t, n) { + var r = new lo(); return ( (t = null == t ? 0 : +t), r.restart( @@ -161602,13 +162271,13 @@ object-assign r ); }, - no = function(e, t, n) { - var r = new Kr(), + yo = function(e, t, n) { + var r = new lo(), o = t; return null == t ? (r.restart(e, t, n), r) : ((t = +t), - (n = null == n ? Xr() : +n), + (n = null == n ? co() : +n), r.restart( function i(a) { (a += o), r.restart(i, (o += t), n), e(a); @@ -161618,9 +162287,16 @@ object-assign ), r); }, - ro = le('start', 'end', 'cancel', 'interrupt'), - oo = [], - io = function(e, t, n, r, o, i) { + vo = ge('start', 'end', 'cancel', 'interrupt'), + _o = [], + wo = 0, + xo = 1, + Mo = 2, + ko = 3, + So = 4, + Oo = 5, + Eo = 6, + Ao = function(e, t, n, r, o, i) { var a = e.__transition; if (a) { if (n in a) return; @@ -161630,12 +162306,12 @@ object-assign o = e.__transition; function i(c) { var u, l, f, d; - if (1 !== n.state) return s(); + if (n.state !== xo) return s(); for (u in o) if ((d = o[u]).name === n.name) { - if (3 === d.state) return to(i); - 4 === d.state - ? ((d.state = 6), + if (d.state === ko) return bo(i); + d.state === So + ? ((d.state = Eo), d.timer.stop(), d.on.call( 'interrupt', @@ -161646,7 +162322,7 @@ object-assign ), delete o[u]) : +u < t && - ((d.state = 6), + ((d.state = Eo), d.timer.stop(), d.on.call( 'cancel', @@ -161658,18 +162334,18 @@ object-assign delete o[u]); } if ( - (to(function() { - 3 === n.state && - ((n.state = 4), + (bo(function() { + n.state === ko && + ((n.state = So), n.timer.restart(a, n.delay, n.time), a(c)); }), - (n.state = 2), + (n.state = Mo), n.on.call('start', e, e.__data__, n.index, n.group), - 2 === n.state) + n.state === Mo) ) { for ( - n.state = 3, + n.state = ko, r = new Array((f = n.tween.length)), u = 0, l = -1; @@ -161690,19 +162366,19 @@ object-assign var o = t < n.duration ? n.ease.call(null, t / n.duration) - : (n.timer.restart(s), (n.state = 5), 1), + : (n.timer.restart(s), (n.state = Oo), 1), i = -1, a = r.length; ++i < a; ) r[i].call(e, o); - 5 === n.state && + n.state === Oo && (n.on.call('end', e, e.__data__, n.index, n.group), s()); } function s() { - for (var r in ((n.state = 6), + for (var r in ((n.state = Eo), n.timer.stop(), delete o[t], o)) @@ -161710,9 +162386,9 @@ object-assign delete e.__transition; } (o[t] = n), - (n.timer = $r( + (n.timer = fo( function(e) { - (n.state = 1), + (n.state = xo), n.timer.restart(i, n.delay, n.time), n.delay <= e && i(e - n.delay); }, @@ -161723,32 +162399,33 @@ object-assign name: t, index: r, group: o, - on: ro, - tween: oo, + on: vo, + tween: _o, time: i.time, delay: i.delay, duration: i.duration, ease: i.ease, timer: null, - state: 0 + state: wo }); }; - function ao(e, t) { - var n = co(e, t); - if (n.state > 0) throw new Error('too late; already scheduled'); + function To(e, t) { + var n = Lo(e, t); + if (n.state > wo) + throw new Error('too late; already scheduled'); return n; } - function so(e, t) { - var n = co(e, t); - if (n.state > 3) throw new Error('too late; already running'); + function Co(e, t) { + var n = Lo(e, t); + if (n.state > ko) throw new Error('too late; already running'); return n; } - function co(e, t) { + function Lo(e, t) { var n = e.__transition; if (!n || !(n = n[t])) throw new Error('transition not found'); return n; } - var uo = function(e, t) { + var Po = function(e, t) { var n, r, o, @@ -161757,8 +162434,8 @@ object-assign if (i) { for (o in ((t = null == t ? null : t + ''), i)) (n = i[o]).name === t - ? ((r = n.state > 2 && n.state < 5), - (n.state = 6), + ? ((r = n.state > Mo && n.state < Oo), + (n.state = Eo), n.timer.stop(), n.on.call( r ? 'interrupt' : 'cancel', @@ -161772,10 +162449,10 @@ object-assign a && delete e.__transition; } }; - function lo(e, t) { + function Do(e, t) { var n, r; return function() { - var o = so(this, e), + var o = Co(this, e), i = o.tween; if (i !== n) for (var a = 0, s = (r = n = i).length; a < s; ++a) @@ -161786,11 +162463,11 @@ object-assign o.tween = r; }; } - function fo(e, t, n) { + function jo(e, t, n) { var r, o; if ('function' != typeof n) throw new Error(); return function() { - var i = so(this, e), + var i = Co(this, e), a = i.tween; if (a !== r) { o = (r = a).slice(); @@ -161808,39 +162485,39 @@ object-assign i.tween = o; }; } - function po(e, t, n) { + function zo(e, t, n) { var r = e._id; return ( e.each(function() { - var e = so(this, r); + var e = Co(this, r); (e.value || (e.value = {}))[t] = n.apply(this, arguments); }), function(e) { - return co(e, r).value[t]; + return Lo(e, r).value[t]; } ); } - var ho = function(e, t) { + var No = function(e, t) { var n; return ('number' == typeof t - ? Fn - : t instanceof sn - ? Tn - : (n = sn(t)) - ? ((t = n), Tn) - : Yn)(e, t); + ? Vn + : t instanceof pn + ? zn + : (n = pn(t)) + ? ((t = n), zn) + : Kn)(e, t); }; - function go(e) { + function Ro(e) { return function() { this.removeAttribute(e); }; } - function mo(e) { + function Io(e) { return function() { this.removeAttributeNS(e.space, e.local); }; } - function bo(e, t, n) { + function Fo(e, t, n) { var r, o, i = n + ''; @@ -161849,7 +162526,7 @@ object-assign return a === i ? null : a === r ? o : (o = t((r = a), n)); }; } - function yo(e, t, n) { + function qo(e, t, n) { var r, o, i = n + ''; @@ -161858,7 +162535,7 @@ object-assign return a === i ? null : a === r ? o : (o = t((r = a), n)); }; } - function vo(e, t, n) { + function Bo(e, t, n) { var r, o, i; return function() { var a, @@ -161873,7 +162550,7 @@ object-assign this.removeAttribute(e); }; } - function _o(e, t, n) { + function Ho(e, t, n) { var r, o, i; return function() { var a, @@ -161889,65 +162566,75 @@ object-assign this.removeAttributeNS(e.space, e.local); }; } - function xo(e, t) { - return function(n) { - this.setAttribute(e, t(n)); - }; - } - function wo(e, t) { - return function(n) { - this.setAttributeNS(e.space, e.local, t(n)); - }; - } - function Mo(e, t) { + function Yo(e, t) { var n, r; function o() { var o = t.apply(this, arguments); - return o !== r && (n = (r = o) && wo(e, o)), n; + return ( + o !== r && + (n = + (r = o) && + (function(e, t) { + return function(n) { + this.setAttributeNS(e.space, e.local, t(n)); + }; + })(e, o)), + n + ); } return (o._value = t), o; } - function ko(e, t) { + function Wo(e, t) { var n, r; function o() { var o = t.apply(this, arguments); - return o !== r && (n = (r = o) && xo(e, o)), n; + return ( + o !== r && + (n = + (r = o) && + (function(e, t) { + return function(n) { + this.setAttribute(e, t(n)); + }; + })(e, o)), + n + ); } return (o._value = t), o; } - function So(e, t) { + function Vo(e, t) { return function() { - ao(this, e).delay = +t.apply(this, arguments); + To(this, e).delay = +t.apply(this, arguments); }; } - function Ao(e, t) { + function Uo(e, t) { return ( (t = +t), function() { - ao(this, e).delay = t; + To(this, e).delay = t; } ); } - function Oo(e, t) { + function Xo(e, t) { return function() { - so(this, e).duration = +t.apply(this, arguments); + Co(this, e).duration = +t.apply(this, arguments); }; } - function Eo(e, t) { + function Go(e, t) { return ( (t = +t), function() { - so(this, e).duration = t; + Co(this, e).duration = t; } ); } - function To(e, t) { + function Ko(e, t) { if ('function' != typeof t) throw new Error(); return function() { - so(this, e).ease = t; + Co(this, e).ease = t; }; } - function Co(e, t, n) { + function $o(e, t, n) { var r, o, i = (function(e) { @@ -161961,74 +162648,79 @@ object-assign ); }); })(t) - ? ao - : so; + ? To + : Co; return function() { var a = i(this, e), s = a.on; s !== r && (o = (r = s).copy()).on(t, n), (a.on = o); }; } - var Lo = xt.prototype.constructor; - function Po(e) { + var Qo = Et.prototype.constructor; + function Jo(e) { return function() { this.style.removeProperty(e); }; } - function Do(e, t, n) { - return function(r) { - this.style.setProperty(e, t(r), n); - }; - } - function zo(e, t, n) { + function Zo(e, t, n) { var r, o; function i() { var i = t.apply(this, arguments); - return i !== o && (r = (o = i) && Do(e, i, n)), r; + return ( + i !== o && + (r = + (o = i) && + (function(e, t, n) { + return function(r) { + this.style.setProperty(e, t(r), n); + }; + })(e, i, n)), + r + ); } return (i._value = t), i; } - var No = 0; - function jo(e, t, n, r) { + var ei = 0; + function ti(e, t, n, r) { (this._groups = e), (this._parents = t), (this._name = n), (this._id = r); } - function Ro(e) { - return xt().transition(e); + function ni(e) { + return Et().transition(e); } - function Io() { - return ++No; + function ri() { + return ++ei; } - var Fo = xt.prototype; - function qo(e) { + var oi = Et.prototype; + function ii(e) { return +e; } - function Bo(e) { + function ai(e) { return e * e; } - function Ho(e) { + function si(e) { return e * (2 - e); } - function Yo(e) { + function ci(e) { return ((e *= 2) <= 1 ? e * e : --e * (2 - e) + 1) / 2; } - function Wo(e) { + function ui(e) { return e * e * e; } - function Vo(e) { + function li(e) { return --e * e * e + 1; } - function Uo(e) { + function fi(e) { return ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2; } - jo.prototype = Ro.prototype = { - constructor: jo, + ti.prototype = ni.prototype = { + constructor: ti, select: function(e) { var t = this._name, n = this._id; - 'function' != typeof e && (e = ye(e)); + 'function' != typeof e && (e = Me(e)); for ( var r = this._groups, o = r.length, i = new Array(o), a = 0; a < o; @@ -162048,13 +162740,13 @@ object-assign (c = e.call(s, s.__data__, d, u)) && ('__data__' in s && (c.__data__ = s.__data__), (f[d] = c), - io(f[d], t, n, d, f, co(s, n))); - return new jo(i, this._parents, t, n); + Ao(f[d], t, n, d, f, Lo(s, n))); + return new ti(i, this._parents, t, n); }, selectAll: function(e) { var t = this._name, n = this._id; - 'function' != typeof e && (e = _e(e)); + 'function' != typeof e && (e = Se(e)); for ( var r = this._groups, o = r.length, i = [], a = [], s = 0; s < o; @@ -162065,19 +162757,19 @@ object-assign for ( var d, p = e.call(c, c.__data__, f, u), - h = co(c, n), + h = Lo(c, n), g = 0, m = p.length; g < m; ++g ) - (d = p[g]) && io(d, t, n, g, p, h); + (d = p[g]) && Ao(d, t, n, g, p, h); i.push(p), a.push(c); } - return new jo(i, a, t, n); + return new ti(i, a, t, n); }, filter: function(e) { - 'function' != typeof e && (e = xe(e)); + 'function' != typeof e && (e = Oe(e)); for ( var t = this._groups, n = t.length, r = new Array(n), o = 0; o < n; @@ -162089,7 +162781,7 @@ object-assign ++u ) (i = a[u]) && e.call(i, i.__data__, u, a) && c.push(i); - return new jo(r, this._parents, this._name, this._id); + return new ti(r, this._parents, this._name, this._id); }, merge: function(e) { if (e._id !== this._id) throw new Error(); @@ -162116,16 +162808,16 @@ object-assign ) (c = u[p] || l[p]) && (d[p] = c); for (; s < r; ++s) a[s] = t[s]; - return new jo(a, this._parents, this._name, this._id); + return new ti(a, this._parents, this._name, this._id); }, selection: function() { - return new Lo(this._groups, this._parents); + return new Qo(this._groups, this._parents); }, transition: function() { for ( var e = this._name, t = this._id, - n = Io(), + n = ri(), r = this._groups, o = r.length, i = 0; @@ -162134,38 +162826,38 @@ object-assign ) for (var a, s = r[i], c = s.length, u = 0; u < c; ++u) if ((a = s[u])) { - var l = co(a, t); - io(a, e, n, u, s, { + var l = Lo(a, t); + Ao(a, e, n, u, s, { time: l.time + l.delay + l.duration, delay: 0, duration: l.duration, ease: l.ease }); } - return new jo(r, this._parents, e, n); + return new ti(r, this._parents, e, n); }, - call: Fo.call, - nodes: Fo.nodes, - node: Fo.node, - size: Fo.size, - empty: Fo.empty, - each: Fo.each, + call: oi.call, + nodes: oi.nodes, + node: oi.node, + size: oi.size, + empty: oi.empty, + each: oi.each, on: function(e, t) { var n = this._id; return arguments.length < 2 - ? co(this.node(), n).on.on(e) - : this.each(Co(n, e, t)); + ? Lo(this.node(), n).on.on(e) + : this.each($o(n, e, t)); }, attr: function(e, t) { - var n = pe(e), - r = 'transform' === n ? Zn : ho; + var n = ye(e), + r = 'transform' === n ? ir : No; return this.attrTween( e, 'function' == typeof t - ? (n.local ? _o : vo)(n, r, po(this, 'attr.' + e, t)) + ? (n.local ? Ho : Bo)(n, r, zo(this, 'attr.' + e, t)) : null == t - ? (n.local ? mo : go)(n) - : (n.local ? yo : bo)(n, r, t) + ? (n.local ? Io : Ro)(n) + : (n.local ? qo : Fo)(n, r, t) ); }, attrTween: function(e, t) { @@ -162174,19 +162866,19 @@ object-assign return (n = this.tween(n)) && n._value; if (null == t) return this.tween(n, null); if ('function' != typeof t) throw new Error(); - var r = pe(e); - return this.tween(n, (r.local ? Mo : ko)(r, t)); + var r = ye(e); + return this.tween(n, (r.local ? Yo : Wo)(r, t)); }, style: function(e, t, n) { - var r = 'transform' == (e += '') ? Jn : ho; + var r = 'transform' == (e += '') ? or : No; return null == t ? this.styleTween( e, (function(e, t) { var n, r, o; return function() { - var i = Re(this, e), - a = (this.style.removeProperty(e), Re(this, e)); + var i = Ye(this, e), + a = (this.style.removeProperty(e), Ye(this, e)); return i === a ? null : i === n && a === r @@ -162194,20 +162886,20 @@ object-assign : (o = t((n = i), (r = a))); }; })(e, r) - ).on('end.style.' + e, Po(e)) + ).on('end.style.' + e, Jo(e)) : 'function' == typeof t ? this.styleTween( e, (function(e, t, n) { var r, o, i; return function() { - var a = Re(this, e), + var a = Ye(this, e), s = n(this), c = s + ''; return ( null == s && (this.style.removeProperty(e), - (c = s = Re(this, e))), + (c = s = Ye(this, e))), a === c ? null : a === r && c === o @@ -162215,7 +162907,7 @@ object-assign : ((o = c), (i = t((r = a), s))) ); }; - })(e, r, po(this, 'style.' + e, t)) + })(e, r, zo(this, 'style.' + e, t)) ).each( (function(e, t) { var n, @@ -162225,10 +162917,10 @@ object-assign a = 'style.' + t, s = 'end.' + a; return function() { - var c = so(this, e), + var c = Co(this, e), u = c.on, l = - null == c.value[a] ? i || (i = Po(t)) : void 0; + null == c.value[a] ? i || (i = Jo(t)) : void 0; (u === n && o === l) || (r = (n = u).copy()).on(s, (o = l)), (c.on = r); @@ -162242,7 +162934,7 @@ object-assign o, i = n + ''; return function() { - var a = Re(this, e); + var a = Ye(this, e); return a === i ? null : a === r @@ -162259,7 +162951,7 @@ object-assign return (r = this.tween(r)) && r._value; if (null == t) return this.tween(r, null); if ('function' != typeof t) throw new Error(); - return this.tween(r, zo(e, t, null == n ? '' : n)); + return this.tween(r, Zo(e, t, null == n ? '' : n)); }, text: function(e) { return this.tween( @@ -162270,7 +162962,7 @@ object-assign var t = e(this); this.textContent = null == t ? '' : t; }; - })(po(this, 'text', e)) + })(zo(this, 'text', e)) : (function(e) { return function() { this.textContent = e; @@ -162294,32 +162986,32 @@ object-assign var n = this._id; if (((e += ''), arguments.length < 2)) { for ( - var r, o = co(this.node(), n).tween, i = 0, a = o.length; + var r, o = Lo(this.node(), n).tween, i = 0, a = o.length; i < a; ++i ) if ((r = o[i]).name === e) return r.value; return null; } - return this.each((null == t ? lo : fo)(n, e, t)); + return this.each((null == t ? Do : jo)(n, e, t)); }, delay: function(e) { var t = this._id; return arguments.length - ? this.each(('function' == typeof e ? So : Ao)(t, e)) - : co(this.node(), t).delay; + ? this.each(('function' == typeof e ? Vo : Uo)(t, e)) + : Lo(this.node(), t).delay; }, duration: function(e) { var t = this._id; return arguments.length - ? this.each(('function' == typeof e ? Oo : Eo)(t, e)) - : co(this.node(), t).duration; + ? this.each(('function' == typeof e ? Xo : Go)(t, e)) + : Lo(this.node(), t).duration; }, ease: function(e) { var t = this._id; return arguments.length - ? this.each(To(t, e)) - : co(this.node(), t).ease; + ? this.each(Ko(t, e)) + : Lo(this.node(), t).ease; }, end: function() { var e, @@ -162335,7 +163027,7 @@ object-assign } }; n.each(function() { - var n = so(this, r), + var n = Co(this, r), o = n.on; o !== e && ((t = (e = o).copy())._.cancel.push(s), @@ -162346,19 +163038,19 @@ object-assign }); } }; - var Xo = (function e(t) { + var di = (function e(t) { function n(e) { return Math.pow(e, t); } return (t = +t), (n.exponent = e), n; })(3), - Go = (function e(t) { + pi = (function e(t) { function n(e) { return 1 - Math.pow(1 - e, t); } return (t = +t), (n.exponent = e), n; })(3), - Ko = (function e(t) { + hi = (function e(t) { function n(e) { return ( ((e *= 2) <= 1 @@ -162368,71 +163060,81 @@ object-assign } return (t = +t), (n.exponent = e), n; })(3), - $o = Math.PI, - Qo = $o / 2; - function Jo(e) { - return 1 - Math.cos(e * Qo); + gi = Math.PI, + mi = gi / 2; + function bi(e) { + return 1 - Math.cos(e * mi); } - function Zo(e) { - return Math.sin(e * Qo); + function yi(e) { + return Math.sin(e * mi); } - function ei(e) { - return (1 - Math.cos($o * e)) / 2; + function vi(e) { + return (1 - Math.cos(gi * e)) / 2; } - function ti(e) { + function _i(e) { return Math.pow(2, 10 * e - 10); } - function ni(e) { + function wi(e) { return 1 - Math.pow(2, -10 * e); } - function ri(e) { + function xi(e) { return ( ((e *= 2) <= 1 ? Math.pow(2, 10 * e - 10) : 2 - Math.pow(2, 10 - 10 * e)) / 2 ); } - function oi(e) { + function Mi(e) { return 1 - Math.sqrt(1 - e * e); } - function ii(e) { + function ki(e) { return Math.sqrt(1 - --e * e); } - function ai(e) { + function Si(e) { return ( ((e *= 2) <= 1 ? 1 - Math.sqrt(1 - e * e) : Math.sqrt(1 - (e -= 2) * e) + 1) / 2 ); } - function si(e) { - return 1 - ci(1 - e); - } - function ci(e) { - return (e = +e) < 4 / 11 - ? 7.5625 * e * e - : e < 8 / 11 - ? 7.5625 * (e -= 6 / 11) * e + 3 / 4 - : e < 10 / 11 - ? 7.5625 * (e -= 9 / 11) * e + 15 / 16 - : 7.5625 * (e -= 21 / 22) * e + 63 / 64; - } - function ui(e) { - return ((e *= 2) <= 1 ? 1 - ci(1 - e) : ci(e - 1) + 1) / 2; - } - var li = (function e(t) { + var Oi = 4 / 11, + Ei = 6 / 11, + Ai = 8 / 11, + Ti = 0.75, + Ci = 9 / 11, + Li = 10 / 11, + Pi = 0.9375, + Di = 21 / 22, + ji = 63 / 64, + zi = 1 / Oi / Oi; + function Ni(e) { + return 1 - Ri(1 - e); + } + function Ri(e) { + return (e = +e) < Oi + ? zi * e * e + : e < Ai + ? zi * (e -= Ei) * e + Ti + : e < Li + ? zi * (e -= Ci) * e + Pi + : zi * (e -= Di) * e + ji; + } + function Ii(e) { + return ((e *= 2) <= 1 ? 1 - Ri(1 - e) : Ri(e - 1) + 1) / 2; + } + var Fi = (function e(t) { function n(e) { return e * e * ((t + 1) * e - t); } return (t = +t), (n.overshoot = e), n; })(1.70158), - fi = (function e(t) { + qi = (function e(t) { function n(e) { return --e * e * ((t + 1) * e + t) + 1; } return (t = +t), (n.overshoot = e), n; })(1.70158), - di = (function e(t) { + Bi = (function e(t) { function n(e) { return ( ((e *= 2) < 1 @@ -162442,15 +163144,15 @@ object-assign } return (t = +t), (n.overshoot = e), n; })(1.70158), - pi = 2 * Math.PI, - hi = (function e(t, n) { - var r = Math.asin(1 / (t = Math.max(1, t))) * (n /= pi); + Hi = 2 * Math.PI, + Yi = (function e(t, n) { + var r = Math.asin(1 / (t = Math.max(1, t))) * (n /= Hi); function o(e) { return t * Math.pow(2, 10 * --e) * Math.sin((r - e) / n); } return ( (o.amplitude = function(t) { - return e(t, n * pi); + return e(t, n * Hi); }), (o.period = function(n) { return e(t, n); @@ -162458,8 +163160,8 @@ object-assign o ); })(1, 0.3), - gi = (function e(t, n) { - var r = Math.asin(1 / (t = Math.max(1, t))) * (n /= pi); + Wi = (function e(t, n) { + var r = Math.asin(1 / (t = Math.max(1, t))) * (n /= Hi); function o(e) { return ( 1 - @@ -162468,7 +163170,7 @@ object-assign } return ( (o.amplitude = function(t) { - return e(t, n * pi); + return e(t, n * Hi); }), (o.period = function(n) { return e(t, n); @@ -162476,8 +163178,8 @@ object-assign o ); })(1, 0.3), - mi = (function e(t, n) { - var r = Math.asin(1 / (t = Math.max(1, t))) * (n /= pi); + Vi = (function e(t, n) { + var r = Math.asin(1 / (t = Math.max(1, t))) * (n /= Hi); function o(e) { return ( ((e = 2 * e - 1) < 0 @@ -162488,7 +163190,7 @@ object-assign } return ( (o.amplitude = function(t) { - return e(t, n * pi); + return e(t, n * Hi); }), (o.period = function(n) { return e(t, n); @@ -162496,110 +163198,99 @@ object-assign o ); })(1, 0.3), - bi = { time: null, delay: 0, duration: 250, ease: Uo }; - function yi(e, t) { + Ui = { time: null, delay: 0, duration: 250, ease: fi }; + function Xi(e, t) { for (var n; !(n = e.__transition) || !(n = n[t]); ) - if (!(e = e.parentNode)) return (bi.time = Xr()), bi; + if (!(e = e.parentNode)) return (Ui.time = co()), Ui; return n; } - (xt.prototype.interrupt = function(e) { + (Et.prototype.interrupt = function(e) { return this.each(function() { - uo(this, e); + Po(this, e); }); }), - (xt.prototype.transition = function(e) { + (Et.prototype.transition = function(e) { var t, n; - e instanceof jo + e instanceof ti ? ((t = e._id), (e = e._name)) - : ((t = Io()), - ((n = bi).time = Xr()), + : ((t = ri()), + ((n = Ui).time = co()), (e = null == e ? null : e + '')); for (var r = this._groups, o = r.length, i = 0; i < o; ++i) for (var a, s = r[i], c = s.length, u = 0; u < c; ++u) - (a = s[u]) && io(a, e, t, u, s, n || yi(a, t)); - return new jo(r, this._parents, e, t); + (a = s[u]) && Ao(a, e, t, u, s, n || Xi(a, t)); + return new ti(r, this._parents, e, t); }); - var vi = [null], - _i = function(e, t) { + var Gi = [null], + Ki = function(e, t) { var n, r, o = e.__transition; if (o) for (r in ((t = null == t ? null : t + ''), o)) - if ((n = o[r]).state > 1 && n.name === t) - return new jo([[e]], vi, t, +r); + if ((n = o[r]).state > xo && n.name === t) + return new ti([[e]], Gi, t, +r); return null; }, - xi = function(e) { + $i = function(e) { return function() { return e; }; }, - wi = function(e, t, n) { + Qi = function(e, t, n) { (this.target = e), (this.type = t), (this.selection = n); }; - function Mi() { - ct.stopImmediatePropagation(); + function Ji() { + ht.stopImmediatePropagation(); } - var ki = function() { - ct.preventDefault(), ct.stopImmediatePropagation(); + var Zi = function() { + ht.preventDefault(), ht.stopImmediatePropagation(); }, - Si = { name: 'drag' }, - Ai = { name: 'space' }, - Oi = { name: 'handle' }, - Ei = { name: 'center' }; - function Ti(e) { + ea = { name: 'drag' }, + ta = { name: 'space' }, + na = { name: 'handle' }, + ra = { name: 'center' }; + function oa(e) { return [+e[0], +e[1]]; } - function Ci(e) { - return [Ti(e[0]), Ti(e[1])]; - } - function Li(e) { - return function(t) { - return Lt(t, ct.touches, e); - }; + function ia(e) { + return [oa(e[0]), oa(e[1])]; } - var Pi = { + var aa = { name: 'x', - handles: ['w', 'e'].map(qi), + handles: ['w', 'e'].map(ha), input: function(e, t) { return null == e ? null - : [ - [+e[0], t[0][1]], - [+e[1], t[1][1]] - ]; + : [[+e[0], t[0][1]], [+e[1], t[1][1]]]; }, output: function(e) { return e && [e[0][0], e[1][0]]; } }, - Di = { + sa = { name: 'y', - handles: ['n', 's'].map(qi), + handles: ['n', 's'].map(ha), input: function(e, t) { return null == e ? null - : [ - [t[0][0], +e[0]], - [t[1][0], +e[1]] - ]; + : [[t[0][0], +e[0]], [t[1][0], +e[1]]]; }, output: function(e) { return e && [e[0][1], e[1][1]]; } }, - zi = { + ca = { name: 'xy', - handles: ['n', 'w', 'e', 's', 'nw', 'ne', 'sw', 'se'].map(qi), + handles: ['n', 'w', 'e', 's', 'nw', 'ne', 'sw', 'se'].map(ha), input: function(e) { - return null == e ? null : Ci(e); + return null == e ? null : ia(e); }, output: function(e) { return e; } }, - Ni = { + ua = { overlay: 'crosshair', selection: 'move', n: 'ns-resize', @@ -162611,9 +163302,9 @@ object-assign se: 'nwse-resize', sw: 'nesw-resize' }, - ji = { e: 'w', w: 'e', nw: 'ne', ne: 'nw', se: 'sw', sw: 'se' }, - Ri = { n: 's', s: 'n', nw: 'sw', ne: 'se', se: 'ne', sw: 'nw' }, - Ii = { + la = { e: 'w', w: 'e', nw: 'ne', ne: 'nw', se: 'sw', sw: 'se' }, + fa = { n: 's', s: 'n', nw: 'sw', ne: 'se', se: 'ne', sw: 'nw' }, + da = { overlay: 1, selection: 1, n: null, @@ -162625,7 +163316,7 @@ object-assign se: 1, sw: -1 }, - Fi = { + pa = { overlay: 1, selection: 1, n: -1, @@ -162637,70 +163328,64 @@ object-assign se: 1, sw: 1 }; - function qi(e) { + function ha(e) { return { type: e }; } - function Bi() { - return !ct.ctrlKey && !ct.button; + function ga() { + return !ht.ctrlKey && !ht.button; } - function Hi() { + function ma() { var e = this.ownerSVGElement || this; return e.hasAttribute('viewBox') ? [ [(e = e.viewBox.baseVal).x, e.y], [e.x + e.width, e.y + e.height] ] - : [ - [0, 0], - [e.width.baseVal.value, e.height.baseVal.value] - ]; + : [[0, 0], [e.width.baseVal.value, e.height.baseVal.value]]; } - function Yi() { + function ba() { return navigator.maxTouchPoints || 'ontouchstart' in this; } - function Wi(e) { + function ya(e) { for (; !e.__brush; ) if (!(e = e.parentNode)) return; return e.__brush; } - function Vi(e) { - return e[0][0] === e[1][0] || e[0][1] === e[1][1]; - } - function Ui(e) { + function va(e) { var t = e.__brush; return t ? t.dim.output(t.selection) : null; } - function Xi() { - return $i(Pi); + function _a() { + return Ma(aa); } - function Gi() { - return $i(Di); + function wa() { + return Ma(sa); } - var Ki = function() { - return $i(zi); + var xa = function() { + return Ma(ca); }; - function $i(e) { + function Ma(e) { var t, - n = Hi, - r = Bi, - o = Yi, + n = ma, + r = ga, + o = ba, i = !0, - a = le(c, 'start', 'brush', 'end'), + a = ge(c, 'start', 'brush', 'end'), s = 6; function c(t) { var n = t .property('__brush', g) .selectAll('.overlay') - .data([qi('overlay')]); + .data([ha('overlay')]); n .enter() .append('rect') .attr('class', 'overlay') .attr('pointer-events', 'all') - .attr('cursor', Ni.overlay) + .attr('cursor', ua.overlay) .merge(n) .each(function() { - var e = Wi(this).extent; - wt(this) + var e = ya(this).extent; + At(this) .attr('x', e[0][0]) .attr('y', e[0][1]) .attr('width', e[1][0] - e[0][0]) @@ -162708,11 +163393,11 @@ object-assign }), t .selectAll('.selection') - .data([qi('selection')]) + .data([ha('selection')]) .enter() .append('rect') .attr('class', 'selection') - .attr('cursor', Ni.selection) + .attr('cursor', ua.selection) .attr('fill', '#777') .attr('fill-opacity', 0.3) .attr('stroke', '#fff') @@ -162728,7 +163413,7 @@ object-assign return 'handle handle--' + e.type; }) .attr('cursor', function(e) { - return Ni[e.type]; + return ua[e.type]; }), t .each(u) @@ -162743,8 +163428,8 @@ object-assign .style('-webkit-tap-highlight-color', 'rgba(0,0,0,0)'); } function u() { - var e = wt(this), - t = Wi(this).selection; + var e = At(this), + t = ya(this).selection; t ? (e .selectAll('.selection') @@ -162794,7 +163479,7 @@ object-assign (this.active = 0); } function d() { - if ((!t || ct.touches) && r.apply(this, arguments)) { + if ((!t || ht.touches) && r.apply(this, arguments)) { var n, o, a, @@ -162806,63 +163491,129 @@ object-assign h, g, m, - b = this, - y = ct.target.__data__.type, - v = - 'selection' === (i && ct.metaKey ? (y = 'overlay') : y) - ? Si - : i && ct.altKey - ? Ei - : Oi, - _ = e === Di ? null : Ii[y], - x = e === Pi ? null : Fi[y], - w = Wi(b), - M = w.extent, - k = w.selection, - S = M[0][0], - A = M[0][1], - O = M[1][0], - E = M[1][1], - T = 0, + b, + y = this, + v = ht.target.__data__.type, + _ = + 'selection' === (i && ht.metaKey ? (v = 'overlay') : v) + ? ea + : i && ht.altKey + ? ra + : na, + w = e === sa ? null : da[v], + x = e === aa ? null : pa[v], + M = ya(y), + k = M.extent, + S = M.selection, + O = k[0][0], + E = k[0][1], + A = k[1][0], + T = k[1][1], C = 0, - L = _ && x && i && ct.shiftKey, - P = ct.touches ? Li(ct.changedTouches[0].identifier) : Tt, - D = P(b), - z = D, - N = l(b, arguments, !0).beforestart(); - 'overlay' === y - ? (k && (h = !0), - (w.selection = k = [ + L = 0, + P = w && x && i && ht.shiftKey, + D = ht.touches + ? ((b = ht.changedTouches[0].identifier), + function(e) { + return Rt(e, ht.touches, b); + }) + : zt, + j = D(y), + z = j, + N = l(y, arguments, !0).beforestart(); + 'overlay' === v + ? (S && (h = !0), + (M.selection = S = [ [ - (n = e === Di ? S : D[0]), - (a = e === Pi ? A : D[1]) + (n = e === sa ? O : j[0]), + (a = e === aa ? E : j[1]) ], - [(c = e === Di ? O : n), (d = e === Pi ? E : a)] + [(c = e === sa ? A : n), (d = e === aa ? T : a)] ])) - : ((n = k[0][0]), - (a = k[0][1]), - (c = k[1][0]), - (d = k[1][1])), + : ((n = S[0][0]), + (a = S[0][1]), + (c = S[1][0]), + (d = S[1][1])), (o = n), (s = a), (f = c), (p = d); - var j = wt(b).attr('pointer-events', 'none'), - R = j.selectAll('.overlay').attr('cursor', Ni[y]); - if (ct.touches) (N.moved = F), (N.ended = B); + var R = At(y).attr('pointer-events', 'none'), + I = R.selectAll('.overlay').attr('cursor', ua[v]); + if (ht.touches) (N.moved = q), (N.ended = H); else { - var I = wt(ct.view) - .on('mousemove.brush', F, !0) - .on('mouseup.brush', B, !0); + var F = At(ht.view) + .on('mousemove.brush', q, !0) + .on('mouseup.brush', H, !0); i && - I.on('keydown.brush', H, !0).on('keyup.brush', Y, !0), - Nt(ct.view); + F.on( + 'keydown.brush', + function() { + switch (ht.keyCode) { + case 16: + P = w && x; + break; + case 18: + _ === na && + (w && ((c = f - C * w), (n = o + C * w)), + x && ((d = p - L * x), (a = s + L * x)), + (_ = ra), + B()); + break; + case 32: + (_ !== na && _ !== ra) || + (w < 0 ? (c = f - C) : w > 0 && (n = o - C), + x < 0 ? (d = p - L) : x > 0 && (a = s - L), + (_ = ta), + I.attr('cursor', ua.selection), + B()); + break; + default: + return; + } + Zi(); + }, + !0 + ).on( + 'keyup.brush', + function() { + switch (ht.keyCode) { + case 16: + P && ((g = m = P = !1), B()); + break; + case 18: + _ === ra && + (w < 0 ? (c = f) : w > 0 && (n = o), + x < 0 ? (d = p) : x > 0 && (a = s), + (_ = na), + B()); + break; + case 32: + _ === ta && + (ht.altKey + ? (w && ((c = f - C * w), (n = o + C * w)), + x && ((d = p - L * x), (a = s + L * x)), + (_ = ra)) + : (w < 0 ? (c = f) : w > 0 && (n = o), + x < 0 ? (d = p) : x > 0 && (a = s), + (_ = na)), + I.attr('cursor', ua[v]), + B()); + break; + default: + return; + } + Zi(); + }, + !0 + ), + Bt(ht.view); } - Mi(), uo(b), u.call(b), N.start(); + Ji(), Po(y), u.call(y), N.start(); } - function F() { - var e = P(b); - !L || + function q() { + var e = D(y); + !P || g || m || (Math.abs(e[0] - z[0]) > Math.abs(e[1] - z[1]) @@ -162870,58 +163621,58 @@ object-assign : (g = !0)), (z = e), (h = !0), - ki(), - q(); + Zi(), + B(); } - function q() { + function B() { var e; - switch (((T = z[0] - D[0]), (C = z[1] - D[1]), v)) { - case Ai: - case Si: - _ && - ((T = Math.max(S - n, Math.min(O - c, T))), - (o = n + T), - (f = c + T)), + switch (((C = z[0] - j[0]), (L = z[1] - j[1]), _)) { + case ta: + case ea: + w && + ((C = Math.max(O - n, Math.min(A - c, C))), + (o = n + C), + (f = c + C)), x && - ((C = Math.max(A - a, Math.min(E - d, C))), - (s = a + C), - (p = d + C)); + ((L = Math.max(E - a, Math.min(T - d, L))), + (s = a + L), + (p = d + L)); break; - case Oi: - _ < 0 - ? ((T = Math.max(S - n, Math.min(O - n, T))), - (o = n + T), + case na: + w < 0 + ? ((C = Math.max(O - n, Math.min(A - n, C))), + (o = n + C), (f = c)) - : _ > 0 && - ((T = Math.max(S - c, Math.min(O - c, T))), + : w > 0 && + ((C = Math.max(O - c, Math.min(A - c, C))), (o = n), - (f = c + T)), + (f = c + C)), x < 0 - ? ((C = Math.max(A - a, Math.min(E - a, C))), - (s = a + C), + ? ((L = Math.max(E - a, Math.min(T - a, L))), + (s = a + L), (p = d)) : x > 0 && - ((C = Math.max(A - d, Math.min(E - d, C))), + ((L = Math.max(E - d, Math.min(T - d, L))), (s = a), - (p = d + C)); + (p = d + L)); break; - case Ei: - _ && - ((o = Math.max(S, Math.min(O, n - T * _))), - (f = Math.max(S, Math.min(O, c + T * _)))), + case ra: + w && + ((o = Math.max(O, Math.min(A, n - C * w))), + (f = Math.max(O, Math.min(A, c + C * w)))), x && - ((s = Math.max(A, Math.min(E, a - C * x))), - (p = Math.max(A, Math.min(E, d + C * x)))); + ((s = Math.max(E, Math.min(T, a - L * x))), + (p = Math.max(E, Math.min(T, d + L * x)))); } f < o && - ((_ *= -1), + ((w *= -1), (e = n), (n = c), (c = e), (e = o), (o = f), (f = e), - y in ji && R.attr('cursor', Ni[(y = ji[y])])), + v in la && I.attr('cursor', ua[(v = la[v])])), p < s && ((x *= -1), (e = a), @@ -162930,94 +163681,39 @@ object-assign (e = s), (s = p), (p = e), - y in Ri && R.attr('cursor', Ni[(y = Ri[y])])), - w.selection && (k = w.selection), - g && ((o = k[0][0]), (f = k[1][0])), - m && ((s = k[0][1]), (p = k[1][1])), - (k[0][0] === o && - k[0][1] === s && - k[1][0] === f && - k[1][1] === p) || - ((w.selection = [ - [o, s], - [f, p] - ]), - u.call(b), + v in fa && I.attr('cursor', ua[(v = fa[v])])), + M.selection && (S = M.selection), + g && ((o = S[0][0]), (f = S[1][0])), + m && ((s = S[0][1]), (p = S[1][1])), + (S[0][0] === o && + S[0][1] === s && + S[1][0] === f && + S[1][1] === p) || + ((M.selection = [[o, s], [f, p]]), + u.call(y), N.brush()); } - function B() { - if ((Mi(), ct.touches)) { - if (ct.touches.length) return; + function H() { + if ((Ji(), ht.touches)) { + if (ht.touches.length) return; t && clearTimeout(t), (t = setTimeout(function() { t = null; }, 500)); } else - jt(ct.view, h), - I.on( + Ht(ht.view, h), + F.on( 'keydown.brush keyup.brush mousemove.brush mouseup.brush', null ); - j.attr('pointer-events', 'all'), - R.attr('cursor', Ni.overlay), - w.selection && (k = w.selection), - Vi(k) && ((w.selection = null), u.call(b)), + R.attr('pointer-events', 'all'), + I.attr('cursor', ua.overlay), + M.selection && (S = M.selection), + (function(e) { + return e[0][0] === e[1][0] || e[0][1] === e[1][1]; + })(S) && ((M.selection = null), u.call(y)), N.end(); } - function H() { - switch (ct.keyCode) { - case 16: - L = _ && x; - break; - case 18: - v === Oi && - (_ && ((c = f - T * _), (n = o + T * _)), - x && ((d = p - C * x), (a = s + C * x)), - (v = Ei), - q()); - break; - case 32: - (v !== Oi && v !== Ei) || - (_ < 0 ? (c = f - T) : _ > 0 && (n = o - T), - x < 0 ? (d = p - C) : x > 0 && (a = s - C), - (v = Ai), - R.attr('cursor', Ni.selection), - q()); - break; - default: - return; - } - ki(); - } - function Y() { - switch (ct.keyCode) { - case 16: - L && ((g = m = L = !1), q()); - break; - case 18: - v === Ei && - (_ < 0 ? (c = f) : _ > 0 && (n = o), - x < 0 ? (d = p) : x > 0 && (a = s), - (v = Oi), - q()); - break; - case 32: - v === Ai && - (ct.altKey - ? (_ && ((c = f - T * _), (n = o + T * _)), - x && ((d = p - C * x), (a = s + C * x)), - (v = Ei)) - : (_ < 0 ? (c = f) : _ > 0 && (n = o), - x < 0 ? (d = p) : x > 0 && (a = s), - (v = Oi)), - R.attr('cursor', Ni[y]), - q()); - break; - default: - return; - } - ki(); - } } function p() { l(this, arguments).moved(); @@ -163028,7 +163724,7 @@ object-assign function g() { var t = this.__brush || { selection: null }; return ( - (t.extent = Ci(n.apply(this, arguments))), (t.dim = e), t + (t.extent = ia(n.apply(this, arguments))), (t.dim = e), t ); } return ( @@ -163054,7 +163750,7 @@ object-assign : n, r.extent ), - s = Wn(i, a); + s = $n(i, a); function c(e) { (r.selection = 1 === e && null === a ? null : s(e)), @@ -163072,7 +163768,7 @@ object-assign o.extent ), a = l(t, r).beforestart(); - uo(t), + Po(t), (o.selection = null === i ? null : i), u.call(t), a @@ -163111,8 +163807,8 @@ object-assign ); }, emit: function(t) { - ht( - new wi(c, t, e.output(this.state.selection)), + _t( + new Qi(c, t, e.output(this.state.selection)), a.apply, a, [t, this.that, this.args] @@ -163121,12 +163817,12 @@ object-assign }), (c.extent = function(e) { return arguments.length - ? ((n = 'function' == typeof e ? e : xi(Ci(e))), c) + ? ((n = 'function' == typeof e ? e : $i(ia(e))), c) : n; }), (c.filter = function(e) { return arguments.length - ? ((r = 'function' == typeof e ? e : xi(!!e)), c) + ? ((r = 'function' == typeof e ? e : $i(!!e)), c) : r; }), (c.handleSize = function(e) { @@ -163142,13 +163838,13 @@ object-assign c ); } - var Qi = Math.cos, - Ji = Math.sin, - Zi = Math.PI, - ea = Zi / 2, - ta = 2 * Zi, - na = Math.max; - function ra(e) { + var ka = Math.cos, + Sa = Math.sin, + Oa = Math.PI, + Ea = Oa / 2, + Aa = 2 * Oa, + Ta = Math.max; + function Ca(e) { return function(t, n) { return e( t.source.value + t.target.value, @@ -163156,7 +163852,7 @@ object-assign ); }; } - var oa = function() { + var La = function() { var e = 0, t = null, n = null, @@ -163170,14 +163866,14 @@ object-assign l, f = o.length, d = [], - p = w(f), + p = x(f), h = [], g = [], m = (g.groups = new Array(f)), b = new Array(f * f); for (i = 0, u = -1; ++u < f; ) { for (a = 0, l = -1; ++l < f; ) a += o[u][l]; - d.push(a), h.push(w(f)), (i += a); + d.push(a), h.push(x(f)), (i += a); } for ( t && @@ -163190,7 +163886,7 @@ object-assign return n(o[t][e], o[t][r]); }); }), - c = (i = na(0, ta - e * f) / i) ? e : ta / f, + c = (i = Ta(0, Aa - e * f) / i) ? e : Aa / f, a = 0, u = -1; ++u < f; @@ -163200,12 +163896,12 @@ object-assign var y = p[u], v = h[y][l], _ = o[y][v], - x = a, + w = a, M = (a += _ * i); b[v * f + y] = { index: y, subindex: v, - startAngle: x, + startAngle: w, endAngle: M, value: _ }; @@ -163233,7 +163929,7 @@ object-assign } return ( (o.padAngle = function(t) { - return arguments.length ? ((e = na(0, t)), o) : e; + return arguments.length ? ((e = Ta(0, t)), o) : e; }), (o.sortGroups = function(e) { return arguments.length ? ((t = e), o) : t; @@ -163243,30 +163939,30 @@ object-assign }), (o.sortChords = function(e) { return arguments.length - ? (null == e ? (r = null) : ((r = ra(e))._ = e), o) + ? (null == e ? (r = null) : ((r = Ca(e))._ = e), o) : r && r._; }), o ); }, - ia = Array.prototype.slice, - aa = function(e) { + Pa = Array.prototype.slice, + Da = function(e) { return function() { return e; }; }, - sa = Math.PI, - ca = 2 * sa, - ua = ca - 1e-6; - function la() { + ja = Math.PI, + za = 2 * ja, + Na = za - 1e-6; + function Ra() { (this._x0 = this._y0 = this._x1 = this._y1 = null), (this._ = ''); } - function fa() { - return new la(); + function Ia() { + return new Ra(); } - la.prototype = fa.prototype = { - constructor: la, + Ra.prototype = Ia.prototype = { + constructor: Ra, moveTo: function(e, t) { this._ += 'M' + @@ -163332,7 +164028,7 @@ object-assign y = o * Math.tan( - (sa - Math.acos((h + f - g) / (2 * m * b))) / 2 + (ja - Math.acos((h + f - g) / (2 * m * b))) / 2 ), v = y / b, _ = y / m; @@ -163367,8 +164063,8 @@ object-assign Math.abs(this._y1 - u) > 1e-6) && (this._ += 'L' + c + ',' + u), n && - (f < 0 && (f = (f % ca) + ca), - f > ua + (f < 0 && (f = (f % za) + za), + f > Na ? (this._ += 'A' + n + @@ -163397,7 +164093,7 @@ object-assign ',' + n + ',0,' + - +(f >= sa) + + +(f >= ja) + ',' + l + ',' + @@ -163423,48 +164119,48 @@ object-assign return this._; } }; - var da = fa; - function pa(e) { + var Fa = Ia; + function qa(e) { return e.source; } - function ha(e) { + function Ba(e) { return e.target; } - function ga(e) { + function Ha(e) { return e.radius; } - function ma(e) { + function Ya(e) { return e.startAngle; } - function ba(e) { + function Wa(e) { return e.endAngle; } - var ya = function() { - var e = pa, - t = ha, - n = ga, - r = ma, - o = ba, + var Va = function() { + var e = qa, + t = Ba, + n = Ha, + r = Ya, + o = Wa, i = null; function a() { var a, - s = ia.call(arguments), + s = Pa.call(arguments), c = e.apply(this, s), u = t.apply(this, s), l = +n.apply(this, ((s[0] = c), s)), - f = r.apply(this, s) - ea, - d = o.apply(this, s) - ea, - p = l * Qi(f), - h = l * Ji(f), + f = r.apply(this, s) - Ea, + d = o.apply(this, s) - Ea, + p = l * ka(f), + h = l * Sa(f), g = +n.apply(this, ((s[0] = u), s)), - m = r.apply(this, s) - ea, - b = o.apply(this, s) - ea; + m = r.apply(this, s) - Ea, + b = o.apply(this, s) - Ea; if ( - (i || (i = a = da()), + (i || (i = a = Fa()), i.moveTo(p, h), i.arc(0, 0, l, f, d), (f === m && d === b) || - (i.quadraticCurveTo(0, 0, g * Qi(m), g * Ji(m)), + (i.quadraticCurveTo(0, 0, g * ka(m), g * Sa(m)), i.arc(0, 0, g, m, b)), i.quadraticCurveTo(0, 0, p, h), i.closePath(), @@ -163475,17 +164171,17 @@ object-assign return ( (a.radius = function(e) { return arguments.length - ? ((n = 'function' == typeof e ? e : aa(+e)), a) + ? ((n = 'function' == typeof e ? e : Da(+e)), a) : n; }), (a.startAngle = function(e) { return arguments.length - ? ((r = 'function' == typeof e ? e : aa(+e)), a) + ? ((r = 'function' == typeof e ? e : Da(+e)), a) : r; }), (a.endAngle = function(e) { return arguments.length - ? ((o = 'function' == typeof e ? e : aa(+e)), a) + ? ((o = 'function' == typeof e ? e : Da(+e)), a) : o; }), (a.source = function(t) { @@ -163502,10 +164198,10 @@ object-assign a ); }; - function va() {} - function _a(e, t) { - var n = new va(); - if (e instanceof va) + function Ua() {} + function Xa(e, t) { + var n = new Ua(); + if (e instanceof Ua) e.each(function(e, t) { n.set(t, e); }); @@ -163518,8 +164214,8 @@ object-assign } else if (e) for (var a in e) n.set(a, e[a]); return n; } - va.prototype = _a.prototype = { - constructor: va, + Ua.prototype = Xa.prototype = { + constructor: Ua, has: function(e) { return '$' + e in this; }, @@ -163566,8 +164262,8 @@ object-assign '$' === t[0] && e(this[t], t.slice(1), this); } }; - var xa = _a, - wa = function() { + var Ga = Xa, + Ka = function() { var e, t, n, @@ -163583,7 +164279,7 @@ object-assign f = -1, d = n.length, p = r[o++], - h = xa(), + h = Ga(), g = a(); ++f < d; @@ -163600,10 +164296,10 @@ object-assign } return (n = { object: function(e) { - return i(e, 0, Ma, ka); + return i(e, 0, $a, Qa); }, map: function(e) { - return i(e, 0, Sa, Aa); + return i(e, 0, Ja, Za); }, entries: function(e) { return (function e(n, i) { @@ -163623,7 +164319,7 @@ object-assign }) : a ); - })(i(e, 0, Sa, Aa), 0); + })(i(e, 0, Ja, Za), 0); }, key: function(e) { return r.push(e), n; @@ -163639,23 +164335,23 @@ object-assign } }); }; - function Ma() { + function $a() { return {}; } - function ka(e, t, n) { + function Qa(e, t, n) { e[t] = n; } - function Sa() { - return xa(); + function Ja() { + return Ga(); } - function Aa(e, t, n) { + function Za(e, t, n) { e.set(t, n); } - function Oa() {} - var Ea = xa.prototype; - function Ta(e, t) { - var n = new Oa(); - if (e instanceof Oa) + function es() {} + var ts = Ga.prototype; + function ns(e, t) { + var n = new es(); + if (e instanceof es) e.each(function(e) { n.add(e); }); @@ -163667,50 +164363,61 @@ object-assign } return n; } - Oa.prototype = Ta.prototype = { - constructor: Oa, - has: Ea.has, + es.prototype = ns.prototype = { + constructor: es, + has: ts.has, add: function(e) { return (this['$' + (e += '')] = e), this; }, - remove: Ea.remove, - clear: Ea.clear, - values: Ea.keys, - size: Ea.size, - empty: Ea.empty, - each: Ea.each + remove: ts.remove, + clear: ts.clear, + values: ts.keys, + size: ts.size, + empty: ts.empty, + each: ts.each }; - var Ca = Ta, - La = function(e) { + var rs = ns, + os = function(e) { var t = []; for (var n in e) t.push(n); return t; }, - Pa = function(e) { + is = function(e) { var t = []; for (var n in e) t.push(e[n]); return t; }, - Da = function(e) { + as = function(e) { var t = []; for (var n in e) t.push({ key: n, value: e[n] }); return t; }, - za = Array.prototype.slice, - Na = function(e, t) { + ss = Array.prototype.slice, + cs = function(e, t) { return e - t; }, - ja = function(e) { + us = function(e) { + for ( + var t = 0, + n = e.length, + r = e[n - 1][1] * e[0][0] - e[n - 1][0] * e[0][1]; + ++t < n; + + ) + r += e[t - 1][1] * e[t][0] - e[t - 1][0] * e[t][1]; + return r; + }, + ls = function(e) { return function() { return e; }; }, - Ra = function(e, t) { + fs = function(e, t) { for (var n, r = -1, o = t.length; ++r < o; ) - if ((n = Ia(e, t[r]))) return n; + if ((n = ds(e, t[r]))) return n; return 0; }; - function Ia(e, t) { + function ds(e, t) { for ( var n = t[0], r = t[1], @@ -163727,14 +164434,14 @@ object-assign f = e[s], d = f[0], p = f[1]; - if (Fa(c, f, t)) return 0; + if (ps(c, f, t)) return 0; l > r != p > r && n < ((d - u) * (r - l)) / (p - l) + u && (o = -o); } return o; } - function Fa(e, t, n) { + function ps(e, t, n) { var r, o, i, a; return ( (function(e, t, n) { @@ -163749,117 +164456,39 @@ object-assign (o <= i && i <= a) || (a <= i && i <= o)) ); } - var qa = function() {}, - Ba = [ + var hs = function() {}, + gs = [ [], - [ - [ - [1, 1.5], - [0.5, 1] - ] - ], - [ - [ - [1.5, 1], - [1, 1.5] - ] - ], - [ - [ - [1.5, 1], - [0.5, 1] - ] - ], - [ - [ - [1, 0.5], - [1.5, 1] - ] - ], - [ - [ - [1, 1.5], - [0.5, 1] - ], - [ - [1, 0.5], - [1.5, 1] - ] - ], - [ - [ - [1, 0.5], - [1, 1.5] - ] - ], - [ - [ - [1, 0.5], - [0.5, 1] - ] - ], - [ - [ - [0.5, 1], - [1, 0.5] - ] - ], - [ - [ - [1, 1.5], - [1, 0.5] - ] - ], - [ - [ - [0.5, 1], - [1, 0.5] - ], - [ - [1.5, 1], - [1, 1.5] - ] - ], - [ - [ - [1.5, 1], - [1, 0.5] - ] - ], - [ - [ - [0.5, 1], - [1.5, 1] - ] - ], - [ - [ - [1, 1.5], - [1.5, 1] - ] - ], - [ - [ - [0.5, 1], - [1, 1.5] - ] - ], + [[[1, 1.5], [0.5, 1]]], + [[[1.5, 1], [1, 1.5]]], + [[[1.5, 1], [0.5, 1]]], + [[[1, 0.5], [1.5, 1]]], + [[[1, 1.5], [0.5, 1]], [[1, 0.5], [1.5, 1]]], + [[[1, 0.5], [1, 1.5]]], + [[[1, 0.5], [0.5, 1]]], + [[[0.5, 1], [1, 0.5]]], + [[[1, 1.5], [1, 0.5]]], + [[[0.5, 1], [1, 0.5]], [[1.5, 1], [1, 1.5]]], + [[[1.5, 1], [1, 0.5]]], + [[[0.5, 1], [1.5, 1]]], + [[[1, 1.5], [1.5, 1]]], + [[[0.5, 1], [1, 1.5]]], [] ], - Ha = function() { + ms = function() { var e = 1, t = 1, n = T, r = s; function o(e) { var t = n(e); - if (Array.isArray(t)) t = t.slice().sort(Na); + if (Array.isArray(t)) t = t.slice().sort(cs); else { var r = m(e), o = r[0], a = r[1]; - (t = E(o, a, t)), - (t = w( + (t = A(o, a, t)), + (t = x( Math.floor(o / t) * t, Math.floor(a / t) * t, t @@ -163883,19 +164512,19 @@ object-assign d = new Array(), p = new Array(); for ( - i = s = -1, u = n[0] >= r, Ba[u << 1].forEach(h); + i = s = -1, u = n[0] >= r, gs[u << 1].forEach(h); ++i < e - 1; ) (c = u), (u = n[i + 1] >= r), - Ba[c | (u << 1)].forEach(h); - for (Ba[u << 0].forEach(h); ++s < t - 1; ) { + gs[c | (u << 1)].forEach(h); + for (gs[u << 0].forEach(h); ++s < t - 1; ) { for ( i = -1, u = n[s * e + e] >= r, l = n[s * e] >= r, - Ba[(u << 1) | (l << 2)].forEach(h); + gs[(u << 1) | (l << 2)].forEach(h); ++i < e - 1; ) @@ -163903,17 +164532,17 @@ object-assign (u = n[s * e + e + i + 1] >= r), (f = l), (l = n[s * e + i + 1] >= r), - Ba[c | (u << 1) | (l << 2) | (f << 3)].forEach(h); - Ba[u | (l << 3)].forEach(h); + gs[c | (u << 1) | (l << 2) | (f << 3)].forEach(h); + gs[u | (l << 3)].forEach(h); } for ( - i = -1, l = n[s * e] >= r, Ba[l << 2].forEach(h); + i = -1, l = n[s * e] >= r, gs[l << 2].forEach(h); ++i < e - 1; ) (f = l), (l = n[s * e + i + 1] >= r), - Ba[(l << 2) | (f << 3)].forEach(h); + gs[(l << 2) | (f << 3)].forEach(h); function h(e) { var t, n, @@ -163955,28 +164584,13 @@ object-assign ring: [r, c] }); } - Ba[l << 3].forEach(h); + gs[l << 3].forEach(h); })(n, o, function(e) { - r(e, n, o), - (function(e) { - for ( - var t = 0, - n = e.length, - r = - e[n - 1][1] * e[0][0] - e[n - 1][0] * e[0][1]; - ++t < n; - - ) - r += - e[t - 1][1] * e[t][0] - e[t - 1][0] * e[t][1]; - return r; - })(e) > 0 - ? i.push([e]) - : s.push(e); + r(e, n, o), us(e) > 0 ? i.push([e]) : s.push(e); }), s.forEach(function(e) { for (var t, n = 0, r = i.length; n < r; ++n) - if (-1 !== Ra((t = i[n])[0], e)) + if (-1 !== fs((t = i[n])[0], e)) return void t.push(e); }), { type: 'MultiPolygon', value: o, coordinates: i } @@ -164020,18 +164634,18 @@ object-assign 'function' == typeof e ? e : Array.isArray(e) - ? ja(za.call(e)) - : ja(e)), + ? ls(ss.call(e)) + : ls(e)), o) : n; }), (o.smooth = function(e) { - return arguments.length ? ((r = e ? s : qa), o) : r === s; + return arguments.length ? ((r = e ? s : hs), o) : r === s; }), o ); }; - function Ya(e, t, n) { + function bs(e, t, n) { for ( var r = e.width, o = e.height, i = 1 + (n << 1), a = 0; a < o; @@ -164044,7 +164658,7 @@ object-assign (t.data[s - n + a * r] = c / Math.min(s + 1, r - 1 + i - s, i))); } - function Wa(e, t, n) { + function ys(e, t, n) { for ( var r = e.width, o = e.height, i = 1 + (n << 1), a = 0; a < r; @@ -164057,19 +164671,19 @@ object-assign (t.data[a + (s - n) * r] = c / Math.min(s + 1, o - 1 + i - s, i))); } - function Va(e) { + function vs(e) { return e[0]; } - function Ua(e) { + function _s(e) { return e[1]; } - function Xa() { + function ws() { return 1; } - var Ga = function() { - var e = Va, - t = Ua, - n = Xa, + var xs = function() { + var e = vs, + t = _s, + n = ws, r = 960, o = 500, i = 20, @@ -164077,7 +164691,7 @@ object-assign s = 3 * i, c = (r + 2 * s) >> a, u = (o + 2 * s) >> a, - l = ja(20); + l = ls(20); function f(r) { var o = new Float32Array(c * u), f = new Float32Array(c * u); @@ -164087,43 +164701,43 @@ object-assign p = +n(r, i, l); f >= 0 && f < c && d >= 0 && d < u && (o[f + d * c] += p); }), - Ya( + bs( { width: c, height: u, data: o }, { width: c, height: u, data: f }, i >> a ), - Wa( + ys( { width: c, height: u, data: f }, { width: c, height: u, data: o }, i >> a ), - Ya( + bs( { width: c, height: u, data: o }, { width: c, height: u, data: f }, i >> a ), - Wa( + ys( { width: c, height: u, data: f }, { width: c, height: u, data: o }, i >> a ), - Ya( + bs( { width: c, height: u, data: o }, { width: c, height: u, data: f }, i >> a ), - Wa( + ys( { width: c, height: u, data: f }, { width: c, height: u, data: o }, i >> a ); var p = l(o); if (!Array.isArray(p)) { - var h = z(o); - (p = E(0, h, p)), - (p = w(0, Math.floor(h / p) * p, p)).shift(); + var h = j(o); + (p = A(0, h, p)), + (p = x(0, Math.floor(h / p) * p, p)).shift(); } - return Ha() + return ms() .thresholds(p) .size([c, u])(o) .map(d); @@ -164155,17 +164769,17 @@ object-assign return ( (f.x = function(t) { return arguments.length - ? ((e = 'function' == typeof t ? t : ja(+t)), f) + ? ((e = 'function' == typeof t ? t : ls(+t)), f) : e; }), (f.y = function(e) { return arguments.length - ? ((t = 'function' == typeof e ? e : ja(+e)), f) + ? ((t = 'function' == typeof e ? e : ls(+e)), f) : t; }), (f.weight = function(e) { return arguments.length - ? ((n = 'function' == typeof e ? e : ja(+e)), f) + ? ((n = 'function' == typeof e ? e : ls(+e)), f) : n; }), (f.size = function(e) { @@ -164187,8 +164801,8 @@ object-assign 'function' == typeof e ? e : Array.isArray(e) - ? ja(za.call(e)) - : ja(e)), + ? ls(ss.call(e)) + : ls(e)), f) : l; }), @@ -164204,9 +164818,12 @@ object-assign f ); }, - Ka = {}, - $a = {}; - function Qa(e) { + Ms = {}, + ks = {}, + Ss = 34, + Os = 10, + Es = 13; + function As(e) { return new Function( 'd', 'return {' + @@ -164218,7 +164835,7 @@ object-assign '}' ); } - function Ja(e) { + function Ts(e) { var t = Object.create(null), n = []; return ( @@ -164228,12 +164845,12 @@ object-assign n ); } - function Za(e, t) { + function Cs(e, t) { var n = e + '', r = n.length; return r < t ? new Array(t - r + 1).join(0) + n : n; } - function es(e) { + function Ls(e) { var t, n = e.getUTCHours(), r = e.getUTCMinutes(), @@ -164242,31 +164859,31 @@ object-assign return isNaN(e) ? 'Invalid Date' : ((t = e.getUTCFullYear()) < 0 - ? '-' + Za(-t, 6) + ? '-' + Cs(-t, 6) : t > 9999 - ? '+' + Za(t, 6) - : Za(t, 4)) + + ? '+' + Cs(t, 6) + : Cs(t, 4)) + '-' + - Za(e.getUTCMonth() + 1, 2) + + Cs(e.getUTCMonth() + 1, 2) + '-' + - Za(e.getUTCDate(), 2) + + Cs(e.getUTCDate(), 2) + (i ? 'T' + - Za(n, 2) + + Cs(n, 2) + ':' + - Za(r, 2) + + Cs(r, 2) + ':' + - Za(o, 2) + + Cs(o, 2) + '.' + - Za(i, 3) + + Cs(i, 3) + 'Z' : o - ? 'T' + Za(n, 2) + ':' + Za(r, 2) + ':' + Za(o, 2) + 'Z' + ? 'T' + Cs(n, 2) + ':' + Cs(r, 2) + ':' + Cs(o, 2) + 'Z' : r || n - ? 'T' + Za(n, 2) + ':' + Za(r, 2) + 'Z' + ? 'T' + Cs(n, 2) + ':' + Cs(r, 2) + 'Z' : ''); } - var ts = function(e) { + var Ps = function(e) { var t = new RegExp('["' + e + '\n\r]'), n = e.charCodeAt(0); function r(e, t) { @@ -164278,44 +164895,44 @@ object-assign c = i <= 0, u = !1; function l() { - if (c) return $a; - if (u) return (u = !1), Ka; + if (c) return ks; + if (u) return (u = !1), Ms; var t, r, o = a; - if (34 === e.charCodeAt(o)) { + if (e.charCodeAt(o) === Ss) { for ( ; - (a++ < i && 34 !== e.charCodeAt(a)) || - 34 === e.charCodeAt(++a); + (a++ < i && e.charCodeAt(a) !== Ss) || + e.charCodeAt(++a) === Ss; ); return ( (t = a) >= i ? (c = !0) - : 10 === (r = e.charCodeAt(a++)) + : (r = e.charCodeAt(a++)) === Os ? (u = !0) - : 13 === r && - ((u = !0), 10 === e.charCodeAt(a) && ++a), + : r === Es && + ((u = !0), e.charCodeAt(a) === Os && ++a), e.slice(o + 1, t - 1).replace(/""/g, '"') ); } for (; a < i; ) { - if (10 === (r = e.charCodeAt((t = a++)))) u = !0; - else if (13 === r) - (u = !0), 10 === e.charCodeAt(a) && ++a; + if ((r = e.charCodeAt((t = a++))) === Os) u = !0; + else if (r === Es) + (u = !0), e.charCodeAt(a) === Os && ++a; else if (r !== n) continue; return e.slice(o, t); } return (c = !0), e.slice(o, i); } for ( - 10 === e.charCodeAt(i - 1) && --i, - 13 === e.charCodeAt(i - 1) && --i; - (r = l()) !== $a; + e.charCodeAt(i - 1) === Os && --i, + e.charCodeAt(i - 1) === Es && --i; + (r = l()) !== ks; ) { - for (var f = []; r !== Ka && r !== $a; ) + for (var f = []; r !== Ms && r !== ks; ) f.push(r), (r = l()); (t && null == (f = t(f, s++))) || o.push(f); } @@ -164337,7 +164954,7 @@ object-assign return null == e ? '' : e instanceof Date - ? es(e) + ? Ls(e) : t.test((e += '')) ? '"' + e.replace(/"/g, '""') + '"' : e; @@ -164351,43 +164968,43 @@ object-assign (o = e), (n = t ? (function(e, t) { - var n = Qa(e); + var n = As(e); return function(r, o) { return t(n(r), o, e); }; })(e, t) - : Qa(e)); + : As(e)); }); return (i.columns = o || []), i; }, parseRows: r, format: function(t, n) { return ( - null == n && (n = Ja(t)), + null == n && (n = Ts(t)), [n.map(a).join(e)].concat(o(t, n)).join('\n') ); }, formatBody: function(e, t) { - return null == t && (t = Ja(e)), o(e, t).join('\n'); + return null == t && (t = Ts(e)), o(e, t).join('\n'); }, formatRows: function(e) { return e.map(i).join('\n'); } }; }, - ns = ts(','), - rs = ns.parse, - os = ns.parseRows, - is = ns.format, - as = ns.formatBody, - ss = ns.formatRows, - cs = ts('\t'), - us = cs.parse, - ls = cs.parseRows, - fs = cs.format, - ds = cs.formatBody, - ps = cs.formatRows; - function hs(e) { + Ds = Ps(','), + js = Ds.parse, + zs = Ds.parseRows, + Ns = Ds.format, + Rs = Ds.formatBody, + Is = Ds.formatRows, + Fs = Ps('\t'), + qs = Fs.parse, + Bs = Fs.parseRows, + Hs = Fs.format, + Ys = Fs.formatBody, + Ws = Fs.formatRows; + function Vs(e) { for (var t in e) { var n, r = e[t].trim(); @@ -164409,51 +165026,51 @@ object-assign } return e; } - function gs(e) { + function Us(e) { if (!e.ok) throw new Error(e.status + ' ' + e.statusText); return e.blob(); } - var ms = function(e, t) { - return fetch(e, t).then(gs); + var Xs = function(e, t) { + return fetch(e, t).then(Us); }; - function bs(e) { + function Gs(e) { if (!e.ok) throw new Error(e.status + ' ' + e.statusText); return e.arrayBuffer(); } - var ys = function(e, t) { - return fetch(e, t).then(bs); + var Ks = function(e, t) { + return fetch(e, t).then(Gs); }; - function vs(e) { + function $s(e) { if (!e.ok) throw new Error(e.status + ' ' + e.statusText); return e.text(); } - var _s = function(e, t) { - return fetch(e, t).then(vs); + var Qs = function(e, t) { + return fetch(e, t).then($s); }; - function xs(e) { + function Js(e) { return function(t, n, r) { return ( 2 === arguments.length && 'function' == typeof n && ((r = n), (n = void 0)), - _s(t, n).then(function(t) { + Qs(t, n).then(function(t) { return e(t, r); }) ); }; } - function ws(e, t, n, r) { + function Zs(e, t, n, r) { 3 === arguments.length && 'function' == typeof n && ((r = n), (n = void 0)); - var o = ts(e); - return _s(t, n).then(function(e) { + var o = Ps(e); + return Qs(t, n).then(function(e) { return o.parse(e, r); }); } - var Ms = xs(rs), - ks = xs(us), - Ss = function(e, t) { + var ec = Js(js), + tc = Js(qs), + nc = function(e, t) { return new Promise(function(n, r) { var o = new Image(); for (var i in t) o[i] = t[i]; @@ -164464,24 +165081,24 @@ object-assign (o.src = e); }); }; - function As(e) { + function rc(e) { if (!e.ok) throw new Error(e.status + ' ' + e.statusText); return e.json(); } - var Os = function(e, t) { - return fetch(e, t).then(As); + var oc = function(e, t) { + return fetch(e, t).then(rc); }; - function Es(e) { + function ic(e) { return function(t, n) { - return _s(t, n).then(function(t) { + return Qs(t, n).then(function(t) { return new DOMParser().parseFromString(t, e); }); }; } - var Ts = Es('application/xml'), - Cs = Es('text/html'), - Ls = Es('image/svg+xml'), - Ps = function(e, t) { + var ac = ic('application/xml'), + sc = ic('text/html'), + cc = ic('image/svg+xml'), + uc = function(e, t) { var n; function r() { var r, @@ -164508,15 +165125,15 @@ object-assign r ); }, - Ds = function(e) { + lc = function(e) { return function() { return e; }; }, - zs = function() { + fc = function() { return 1e-6 * (Math.random() - 0.5); }; - function Ns(e, t, n, r) { + function dc(e, t, n, r) { if (isNaN(t) || isNaN(n)) return e; var o, i, @@ -164557,23 +165174,23 @@ object-assign ); return (o[d] = p), (o[f] = h), e; } - var js = function(e, t, n, r, o) { + var pc = function(e, t, n, r, o) { (this.node = e), (this.x0 = t), (this.y0 = n), (this.x1 = r), (this.y1 = o); }; - function Rs(e) { + function hc(e) { return e[0]; } - function Is(e) { + function gc(e) { return e[1]; } - function Fs(e, t, n) { - var r = new qs( - null == t ? Rs : t, - null == n ? Is : n, + function mc(e, t, n) { + var r = new bc( + null == t ? hc : t, + null == n ? gc : n, NaN, NaN, NaN, @@ -164581,7 +165198,7 @@ object-assign ); return null == e ? r : r.addAll(e); } - function qs(e, t, n, r, o, i) { + function bc(e, t, n, r, o, i) { (this._x = e), (this._y = t), (this._x0 = n), @@ -164590,22 +165207,22 @@ object-assign (this._y1 = i), (this._root = void 0); } - function Bs(e) { + function yc(e) { for (var t = { data: e.data }, n = t; (e = e.next); ) n = n.next = { data: e.data }; return t; } - var Hs = (Fs.prototype = qs.prototype); - function Ys(e) { + var vc = (mc.prototype = bc.prototype); + function _c(e) { return e.x + e.vx; } - function Ws(e) { + function wc(e) { return e.y + e.vy; } - (Hs.copy = function() { + (vc.copy = function() { var e, t, - n = new qs( + n = new bc( this._x, this._y, this._x0, @@ -164615,7 +165232,7 @@ object-assign ), r = this._root; if (!r) return n; - if (!r.length) return (n._root = Bs(r)), n; + if (!r.length) return (n._root = yc(r)), n; for ( e = [{ source: r, target: (n._root = new Array(4)) }]; (r = e.pop()); @@ -164628,15 +165245,15 @@ object-assign source: t, target: (r.target[o] = new Array(4)) }) - : (r.target[o] = Bs(t))); + : (r.target[o] = yc(t))); return n; }), - (Hs.add = function(e) { + (vc.add = function(e) { var t = +this._x.call(null, e), n = +this._y.call(null, e); - return Ns(this.cover(t, n), t, n, e); + return dc(this.cover(t, n), t, n, e); }), - (Hs.addAll = function(e) { + (vc.addAll = function(e) { var t, n, r, @@ -164659,10 +165276,10 @@ object-assign o > f && (f = o)); if (c > l || u > f) return this; for (this.cover(c, u).cover(l, f), n = 0; n < i; ++n) - Ns(this, a[n], s[n], e[n]); + dc(this, a[n], s[n], e[n]); return this; }), - (Hs.cover = function(e, t) { + (vc.cover = function(e, t) { if (isNaN((e = +e)) || isNaN((t = +t))) return this; var n = this._x0, r = this._y0, @@ -164706,7 +165323,7 @@ object-assign this ); }), - (Hs.data = function() { + (vc.data = function() { var e = []; return ( this.visit(function(t) { @@ -164718,17 +165335,14 @@ object-assign e ); }), - (Hs.extent = function(e) { + (vc.extent = function(e) { return arguments.length ? this.cover(+e[0][0], +e[0][1]).cover(+e[1][0], +e[1][1]) : isNaN(this._x0) ? void 0 - : [ - [this._x0, this._y0], - [this._x1, this._y1] - ]; + : [[this._x0, this._y0], [this._x1, this._y1]]; }), - (Hs.find = function(e, t, n) { + (vc.find = function(e, t, n) { var r, o, i, @@ -164743,7 +165357,7 @@ object-assign h = [], g = this._root; for ( - g && h.push(new js(g, l, f, d, p)), + g && h.push(new pc(g, l, f, d, p)), null == n ? (n = 1 / 0) : ((l = e - n), @@ -164767,10 +165381,10 @@ object-assign var m = (o + a) / 2, b = (i + s) / 2; h.push( - new js(g[3], m, b, a, s), - new js(g[2], o, b, m, s), - new js(g[1], m, i, a, b), - new js(g[0], o, i, m, b) + new pc(g[3], m, b, a, s), + new pc(g[2], o, b, m, s), + new pc(g[1], m, i, a, b), + new pc(g[0], o, i, m, b) ), (u = ((t >= b) << 1) | (e >= m)) && ((c = h[h.length - 1]), @@ -164781,17 +165395,17 @@ object-assign v = t - +this._y.call(null, g.data), _ = y * y + v * v; if (_ < n) { - var x = Math.sqrt((n = _)); - (l = e - x), - (f = t - x), - (d = e + x), - (p = t + x), + var w = Math.sqrt((n = _)); + (l = e - w), + (f = t - w), + (d = e + w), + (p = t + w), (r = g.data); } } return r; }), - (Hs.remove = function(e) { + (vc.remove = function(e) { if ( isNaN((i = +this._x.call(null, e))) || isNaN((a = +this._y.call(null, e))) @@ -164844,14 +165458,14 @@ object-assign : ((this._root = o), this) ); }), - (Hs.removeAll = function(e) { + (vc.removeAll = function(e) { for (var t = 0, n = e.length; t < n; ++t) this.remove(e[t]); return this; }), - (Hs.root = function() { + (vc.root = function() { return this._root; }), - (Hs.size = function() { + (vc.size = function() { var e = 0; return ( this.visit(function(t) { @@ -164863,7 +165477,7 @@ object-assign e ); }), - (Hs.visit = function(e) { + (vc.visit = function(e) { var t, n, r, @@ -164874,7 +165488,7 @@ object-assign c = this._root; for ( c && - s.push(new js(c, this._x0, this._y0, this._x1, this._y1)); + s.push(new pc(c, this._x0, this._y0, this._x1, this._y1)); (t = s.pop()); ) @@ -164890,21 +165504,21 @@ object-assign ) { var u = (r + i) / 2, l = (o + a) / 2; - (n = c[3]) && s.push(new js(n, u, l, i, a)), - (n = c[2]) && s.push(new js(n, r, l, u, a)), - (n = c[1]) && s.push(new js(n, u, o, i, l)), - (n = c[0]) && s.push(new js(n, r, o, u, l)); + (n = c[3]) && s.push(new pc(n, u, l, i, a)), + (n = c[2]) && s.push(new pc(n, r, l, u, a)), + (n = c[1]) && s.push(new pc(n, u, o, i, l)), + (n = c[0]) && s.push(new pc(n, r, o, u, l)); } return this; }), - (Hs.visitAfter = function(e) { + (vc.visitAfter = function(e) { var t, n = [], r = []; for ( this._root && n.push( - new js(this._root, this._x0, this._y0, this._x1, this._y1) + new pc(this._root, this._x0, this._y0, this._x1, this._y1) ); (t = n.pop()); @@ -164918,30 +165532,30 @@ object-assign u = t.y1, l = (a + c) / 2, f = (s + u) / 2; - (i = o[0]) && n.push(new js(i, a, s, l, f)), - (i = o[1]) && n.push(new js(i, l, s, c, f)), - (i = o[2]) && n.push(new js(i, a, f, l, u)), - (i = o[3]) && n.push(new js(i, l, f, c, u)); + (i = o[0]) && n.push(new pc(i, a, s, l, f)), + (i = o[1]) && n.push(new pc(i, l, s, c, f)), + (i = o[2]) && n.push(new pc(i, a, f, l, u)), + (i = o[3]) && n.push(new pc(i, l, f, c, u)); } r.push(t); } for (; (t = r.pop()); ) e(t.node, t.x0, t.y0, t.x1, t.y1); return this; }), - (Hs.x = function(e) { + (vc.x = function(e) { return arguments.length ? ((this._x = e), this) : this._x; }), - (Hs.y = function(e) { + (vc.y = function(e) { return arguments.length ? ((this._y = e), this) : this._y; }); - var Vs = function(e) { + var xc = function(e) { var t, n, r = 1, o = 1; function i() { for (var e, i, s, c, u, l, f, d = t.length, p = 0; p < o; ++p) - for (i = Fs(t, Ys, Ws).visitAfter(a), e = 0; e < d; ++e) + for (i = mc(t, _c, wc).visitAfter(a), e = 0; e < d; ++e) (s = t[e]), (l = n[s.index]), (f = l * l), @@ -164959,8 +165573,8 @@ object-assign g = u - a.y - a.vy, m = h * h + g * g; m < p * p && - (0 === h && (m += (h = zs()) * h), - 0 === g && (m += (g = zs()) * g), + (0 === h && (m += (h = fc()) * h), + 0 === g && (m += (g = fc()) * g), (m = ((p - (m = Math.sqrt(m))) / m) * r), (s.vx += (h *= m) * (p = (d *= d) / (f + d))), (s.vy += (g *= m) * p), @@ -164984,7 +165598,7 @@ object-assign } } return ( - 'function' != typeof e && (e = Ds(null == e ? 1 : +e)), + 'function' != typeof e && (e = lc(null == e ? 1 : +e)), (i.initialize = function(e) { (t = e), s(); }), @@ -164996,38 +165610,38 @@ object-assign }), (i.radius = function(t) { return arguments.length - ? ((e = 'function' == typeof t ? t : Ds(+t)), s(), i) + ? ((e = 'function' == typeof t ? t : lc(+t)), s(), i) : e; }), i ); }; - function Us(e) { + function Mc(e) { return e.index; } - function Xs(e, t) { + function kc(e, t) { var n = e.get(t); if (!n) throw new Error('missing: ' + t); return n; } - var Gs = function(e) { + var Sc = function(e) { var t, n, r, o, i, - a = Us, + a = Mc, s = function(e) { return 1 / Math.min(o[e.source.index], o[e.target.index]); }, - c = Ds(30), + c = lc(30), u = 1; function l(r) { for (var o = 0, a = e.length; o < u; ++o) for (var s, c, l, f, d, p, h, g = 0; g < a; ++g) (c = (s = e[g]).source), - (f = (l = s.target).x + l.vx - c.x - c.vx || zs()), - (d = l.y + l.vy - c.y - c.vy || zs()), + (f = (l = s.target).x + l.vx - c.x - c.vx || fc()), + (d = l.y + l.vy - c.y - c.vy || fc()), (f *= p = (((p = Math.sqrt(f * f + d * d)) - n[g]) / p) * r * @@ -165044,13 +165658,13 @@ object-assign c, u = r.length, l = e.length, - f = xa(r, a); + f = Ga(r, a); for (s = 0, o = new Array(u); s < l; ++s) ((c = e[s]).index = s), 'object' != typeof c.source && - (c.source = Xs(f, c.source)), + (c.source = kc(f, c.source)), 'object' != typeof c.target && - (c.target = Xs(f, c.target)), + (c.target = kc(f, c.target)), (o[c.source.index] = (o[c.source.index] || 0) + 1), (o[c.target.index] = (o[c.target.index] || 0) + 1); for (s = 0, i = new Array(l); s < l; ++s) @@ -165087,34 +165701,35 @@ object-assign }), (l.strength = function(e) { return arguments.length - ? ((s = 'function' == typeof e ? e : Ds(+e)), d(), l) + ? ((s = 'function' == typeof e ? e : lc(+e)), d(), l) : s; }), (l.distance = function(e) { return arguments.length - ? ((c = 'function' == typeof e ? e : Ds(+e)), p(), l) + ? ((c = 'function' == typeof e ? e : lc(+e)), p(), l) : c; }), l ); }; - function Ks(e) { + function Oc(e) { return e.x; } - function $s(e) { + function Ec(e) { return e.y; } - var Qs = Math.PI * (3 - Math.sqrt(5)), - Js = function(e) { + var Ac = 10, + Tc = Math.PI * (3 - Math.sqrt(5)), + Cc = function(e) { var t, n = 1, r = 0.001, o = 1 - Math.pow(r, 1 / 300), i = 0, a = 0.6, - s = xa(), - c = $r(l), - u = le('tick', 'end'); + s = Ga(), + c = fo(l), + u = ge('tick', 'end'); function l() { f(), u.call('tick', t), @@ -165151,8 +165766,8 @@ object-assign null != t.fy && (t.y = t.fy), isNaN(t.x) || isNaN(t.y)) ) { - var o = 10 * Math.sqrt(n), - i = n * Qs; + var o = Ac * Math.sqrt(n), + i = n * Tc; (t.x = o * Math.cos(i)), (t.y = o * Math.sin(i)); } (isNaN(t.vx) || isNaN(t.vy)) && (t.vx = t.vy = 0); @@ -165220,19 +165835,19 @@ object-assign }) ); }, - Zs = function() { + Lc = function() { var e, t, n, r, - o = Ds(-30), + o = lc(-30), i = 1, a = 1 / 0, s = 0.81; function c(r) { var o, i = e.length, - a = Fs(e, Ks, $s).visitAfter(l); + a = mc(e, Oc, Ec).visitAfter(l); for (n = r, o = 0; o < i; ++o) (t = e[o]), a.visit(f); } function u() { @@ -165278,8 +165893,8 @@ object-assign if ((d * d) / s < p) return ( p < a && - (0 === l && (p += (l = zs()) * l), - 0 === f && (p += (f = zs()) * f), + (0 === l && (p += (l = fc()) * l), + 0 === f && (p += (f = fc()) * f), p < i && (p = Math.sqrt(i * p)), (t.vx += (l * e.value * n) / p), (t.vy += (f * e.value * n) / p)), @@ -165287,8 +165902,8 @@ object-assign ); if (!(e.length || p >= a)) { (e.data !== t || e.next) && - (0 === l && (p += (l = zs()) * l), - 0 === f && (p += (f = zs()) * f), + (0 === l && (p += (l = fc()) * l), + 0 === f && (p += (f = fc()) * f), p < i && (p = Math.sqrt(i * p))); do { e.data !== t && @@ -165304,7 +165919,7 @@ object-assign }), (c.strength = function(e) { return arguments.length - ? ((o = 'function' == typeof e ? e : Ds(+e)), u(), c) + ? ((o = 'function' == typeof e ? e : lc(+e)), u(), c) : o; }), (c.distanceMin = function(e) { @@ -165319,11 +165934,11 @@ object-assign c ); }, - ec = function(e, t, n) { + Pc = function(e, t, n) { var r, o, i, - a = Ds(0.1); + a = lc(0.1); function s(e) { for (var a = 0, s = r.length; a < s; ++a) { var c = r[a], @@ -165348,7 +165963,7 @@ object-assign } } return ( - 'function' != typeof e && (e = Ds(+e)), + 'function' != typeof e && (e = lc(+e)), null == t && (t = 0), null == n && (n = 0), (s.initialize = function(e) { @@ -165356,12 +165971,12 @@ object-assign }), (s.strength = function(e) { return arguments.length - ? ((a = 'function' == typeof e ? e : Ds(+e)), c(), s) + ? ((a = 'function' == typeof e ? e : lc(+e)), c(), s) : a; }), (s.radius = function(t) { return arguments.length - ? ((e = 'function' == typeof t ? t : Ds(+t)), c(), s) + ? ((e = 'function' == typeof t ? t : lc(+t)), c(), s) : e; }), (s.x = function(e) { @@ -165373,11 +165988,11 @@ object-assign s ); }, - tc = function(e) { + Dc = function(e) { var t, n, r, - o = Ds(0.1); + o = lc(0.1); function i(e) { for (var o, i = 0, a = t.length; i < a; ++i) (o = t[i]).vx += (r[i] - o.x) * n[i] * e; @@ -165397,28 +166012,28 @@ object-assign } } return ( - 'function' != typeof e && (e = Ds(null == e ? 0 : +e)), + 'function' != typeof e && (e = lc(null == e ? 0 : +e)), (i.initialize = function(e) { (t = e), a(); }), (i.strength = function(e) { return arguments.length - ? ((o = 'function' == typeof e ? e : Ds(+e)), a(), i) + ? ((o = 'function' == typeof e ? e : lc(+e)), a(), i) : o; }), (i.x = function(t) { return arguments.length - ? ((e = 'function' == typeof t ? t : Ds(+t)), a(), i) + ? ((e = 'function' == typeof t ? t : lc(+t)), a(), i) : e; }), i ); }, - nc = function(e) { + jc = function(e) { var t, n, r, - o = Ds(0.1); + o = lc(0.1); function i(e) { for (var o, i = 0, a = t.length; i < a; ++i) (o = t[i]).vy += (r[i] - o.y) * n[i] * e; @@ -165438,24 +166053,24 @@ object-assign } } return ( - 'function' != typeof e && (e = Ds(null == e ? 0 : +e)), + 'function' != typeof e && (e = lc(null == e ? 0 : +e)), (i.initialize = function(e) { (t = e), a(); }), (i.strength = function(e) { return arguments.length - ? ((o = 'function' == typeof e ? e : Ds(+e)), a(), i) + ? ((o = 'function' == typeof e ? e : lc(+e)), a(), i) : o; }), (i.y = function(t) { return arguments.length - ? ((e = 'function' == typeof t ? t : Ds(+t)), a(), i) + ? ((e = 'function' == typeof t ? t : lc(+t)), a(), i) : e; }), i ); }, - rc = function(e, t) { + zc = function(e, t) { if ( (n = (e = t ? e.toExponential(t - 1) @@ -165469,14 +166084,14 @@ object-assign +e.slice(n + 1) ]; }, - oc = function(e) { - return (e = rc(Math.abs(e))) ? e[1] : NaN; + Nc = function(e) { + return (e = zc(Math.abs(e))) ? e[1] : NaN; }, - ic = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i; - function ac(e) { - if (!(t = ic.exec(e))) throw new Error('invalid format: ' + e); + Rc = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i; + function Ic(e) { + if (!(t = Rc.exec(e))) throw new Error('invalid format: ' + e); var t; - return new sc({ + return new Fc({ fill: t[1], align: t[2], sign: t[3], @@ -165489,7 +166104,7 @@ object-assign type: t[10] }); } - function sc(e) { + function Fc(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 + ''), @@ -165502,8 +166117,8 @@ object-assign (this.trim = !!e.trim), (this.type = void 0 === e.type ? '' : e.type + ''); } - (ac.prototype = sc.prototype), - (sc.prototype.toString = function() { + (Ic.prototype = Fc.prototype), + (Fc.prototype.toString = function() { return ( this.fill + this.align + @@ -165519,12 +166134,29 @@ object-assign this.type ); }); - var cc, - uc, - lc, - fc, - dc = function(e, t) { - var n = rc(e, t); + var qc, + Bc, + Hc, + Yc, + Wc = function(e) { + e: for (var t, n = e.length, r = 1, o = -1; r < n; ++r) + switch (e[r]) { + case '.': + o = t = r; + break; + case '0': + 0 === o && (o = r), (t = r); + break; + default: + if (o > 0) { + if (!+e[r]) break e; + o = 0; + } + } + return o > 0 ? e.slice(0, o) + e.slice(t + 1) : e; + }, + Vc = function(e, t) { + var n = zc(e, t); if (!n) return e + ''; var r = n[0], o = n[1]; @@ -165534,7 +166166,7 @@ object-assign ? r.slice(0, o + 1) + '.' + r.slice(o + 1) : r + new Array(o - r.length + 2).join('0'); }, - pc = { + Uc = { '%': function(e, t) { return (100 * e).toFixed(t); }, @@ -165560,17 +166192,17 @@ object-assign return Math.round(e).toString(8); }, p: function(e, t) { - return dc(100 * e, t); + return Vc(100 * e, t); }, - r: dc, + r: Vc, s: function(e, t) { - var n = rc(e, t); + var n = zc(e, t); if (!n) return e + ''; var r = n[0], o = n[1], i = o - - (cc = + (qc = 3 * Math.max(-8, Math.min(8, Math.floor(o / 3)))) + 1, a = r.length; @@ -165582,7 +166214,7 @@ object-assign ? r.slice(0, i) + '.' + r.slice(i) : '0.' + new Array(1 - i).join('0') + - rc(e, Math.max(0, t + i - 1))[0]; + zc(e, Math.max(0, t + i - 1))[0]; }, X: function(e) { return Math.round(e) @@ -165593,11 +166225,11 @@ object-assign return Math.round(e).toString(16); } }, - hc = function(e) { + Xc = function(e) { return e; }, - gc = Array.prototype.map, - mc = [ + Gc = Array.prototype.map, + Kc = [ 'y', 'z', 'a', @@ -165616,13 +166248,13 @@ object-assign 'Z', 'Y' ], - bc = function(e) { + $c = function(e) { var t, n, r = void 0 === e.grouping || void 0 === e.thousands - ? hc - : ((t = gc.call(e.grouping, Number)), + ? Xc + : ((t = Gc.call(e.grouping, Number)), (n = e.thousands + ''), function(e, r) { for ( @@ -165642,19 +166274,19 @@ object-assign a = void 0 === e.decimal ? '.' : e.decimal + '', s = void 0 === e.numerals - ? hc + ? Xc : (function(e) { return function(t) { return t.replace(/[0-9]/g, function(t) { return e[+t]; }); }; - })(gc.call(e.numerals, String)), + })(Gc.call(e.numerals, String)), c = void 0 === e.percent ? '%' : e.percent + '', u = void 0 === e.minus ? '-' : e.minus + '', l = void 0 === e.nan ? 'NaN' : e.nan + ''; function f(e) { - var t = (e = ac(e)).fill, + var t = (e = Ic(e)).fill, n = e.align, f = e.sign, d = e.symbol, @@ -165666,7 +166298,7 @@ object-assign y = e.type; 'n' === y ? ((g = !0), (y = 'g')) - : pc[y] || + : Uc[y] || (void 0 === m && (m = 12), (b = !0), (y = 'g')), (p || ('0' === t && '=' === n)) && ((p = !0), (t = '0'), (n = '=')); @@ -165677,41 +166309,20 @@ object-assign ? '0' + y.toLowerCase() : '', _ = '$' === d ? i : /[%p]/.test(y) ? c : '', - x = pc[y], - w = /[defgprs%]/.test(y); + w = Uc[y], + x = /[defgprs%]/.test(y); function M(e) { var o, i, c, d = v, M = _; - if ('c' === y) (M = x(e) + M), (e = ''); + if ('c' === y) (M = w(e) + M), (e = ''); else { var k = (e = +e) < 0; if ( - ((e = isNaN(e) ? l : x(Math.abs(e), m)), - b && - (e = (function(e) { - e: for ( - var t, n = e.length, r = 1, o = -1; - r < n; - ++r - ) - switch (e[r]) { - case '.': - o = t = r; - break; - case '0': - 0 === o && (o = r), (t = r); - break; - default: - if (o > 0) { - if (!+e[r]) break e; - o = 0; - } - } - return o > 0 ? e.slice(0, o) + e.slice(t + 1) : e; - })(e)), + ((e = isNaN(e) ? l : w(Math.abs(e), m)), + b && (e = Wc(e)), k && 0 == +e && (k = !1), (d = (k @@ -165722,10 +166333,10 @@ object-assign ? '' : f) + d), (M = - ('s' === y ? mc[8 + cc / 3] : '') + + ('s' === y ? Kc[8 + qc / 3] : '') + M + (k && '(' === f ? ')' : '')), - w) + x) ) for (o = -1, i = e.length; ++o < i; ) if (48 > (c = e.charCodeAt(o)) || c > 57) { @@ -165738,30 +166349,30 @@ object-assign } g && !p && (e = r(e, 1 / 0)); var S = d.length + e.length + M.length, - A = S < h ? new Array(h - S + 1).join(t) : ''; + O = S < h ? new Array(h - S + 1).join(t) : ''; switch ( (g && p && - ((e = r(A + e, A.length ? h - M.length : 1 / 0)), - (A = '')), + ((e = r(O + e, O.length ? h - M.length : 1 / 0)), + (O = '')), n) ) { case '<': - e = d + e + M + A; + e = d + e + M + O; break; case '=': - e = d + A + e + M; + e = d + O + e + M; break; case '^': e = - A.slice(0, (S = A.length >> 1)) + + O.slice(0, (S = O.length >> 1)) + d + e + M + - A.slice(S); + O.slice(S); break; default: - e = A + d + e + M; + e = O + d + e + M; } return s(e); } @@ -165781,118 +166392,120 @@ object-assign return { format: f, formatPrefix: function(e, t) { - var n = f((((e = ac(e)).type = 'f'), e)), + var n = f((((e = Ic(e)).type = 'f'), e)), r = - 3 * Math.max(-8, Math.min(8, Math.floor(oc(t) / 3))), + 3 * Math.max(-8, Math.min(8, Math.floor(Nc(t) / 3))), o = Math.pow(10, -r), - i = mc[8 + r / 3]; + i = Kc[8 + r / 3]; return function(e) { return n(o * e) + i; }; } }; }; - function yc(e) { + function Qc(e) { return ( - (uc = bc(e)), (lc = uc.format), (fc = uc.formatPrefix), uc + (Bc = $c(e)), (Hc = Bc.format), (Yc = Bc.formatPrefix), Bc ); } - yc({ + Qc({ decimal: '.', thousands: ',', grouping: [3], currency: ['$', ''], minus: '-' }); - var vc = function(e) { - return Math.max(0, -oc(Math.abs(e))); + var Jc = function(e) { + return Math.max(0, -Nc(Math.abs(e))); }, - _c = function(e, t) { + Zc = function(e, t) { return Math.max( 0, - 3 * Math.max(-8, Math.min(8, Math.floor(oc(t) / 3))) - - oc(Math.abs(e)) + 3 * Math.max(-8, Math.min(8, Math.floor(Nc(t) / 3))) - + Nc(Math.abs(e)) ); }, - xc = function(e, t) { + eu = function(e, t) { return ( (e = Math.abs(e)), (t = Math.abs(t) - e), - Math.max(0, oc(t) - oc(e)) + 1 + Math.max(0, Nc(t) - Nc(e)) + 1 ); }, - wc = function() { - return new Mc(); + tu = function() { + return new nu(); }; - function Mc() { + function nu() { this.reset(); } - Mc.prototype = { - constructor: Mc, + nu.prototype = { + constructor: nu, reset: function() { this.s = this.t = 0; }, add: function(e) { - Sc(kc, e, this.t), - Sc(this, kc.s, this.s), - this.s ? (this.t += kc.t) : (this.s = kc.t); + ou(ru, e, this.t), + ou(this, ru.s, this.s), + this.s ? (this.t += ru.t) : (this.s = ru.t); }, valueOf: function() { return this.s; } }; - var kc = new Mc(); - function Sc(e, t, n) { + var ru = new nu(); + function ou(e, t, n) { var r = (e.s = t + n), o = r - t, i = r - o; e.t = t - i + (n - o); } - var Ac = Math.PI, - Oc = Ac / 2, - Ec = Ac / 4, - Tc = 2 * Ac, - Cc = 180 / Ac, - Lc = Ac / 180, - Pc = Math.abs, - Dc = Math.atan, - zc = Math.atan2, - Nc = Math.cos, - jc = Math.ceil, - Rc = Math.exp, - Ic = (Math.floor, Math.log), - Fc = Math.pow, - qc = Math.sin, - Bc = + var iu = 1e-6, + au = 1e-12, + su = Math.PI, + cu = su / 2, + uu = su / 4, + lu = 2 * su, + fu = 180 / su, + du = su / 180, + pu = Math.abs, + hu = Math.atan, + gu = Math.atan2, + mu = Math.cos, + bu = Math.ceil, + yu = Math.exp, + vu = (Math.floor, Math.log), + _u = Math.pow, + wu = Math.sin, + xu = Math.sign || function(e) { return e > 0 ? 1 : e < 0 ? -1 : 0; }, - Hc = Math.sqrt, - Yc = Math.tan; - function Wc(e) { - return e > 1 ? 0 : e < -1 ? Ac : Math.acos(e); + Mu = Math.sqrt, + ku = Math.tan; + function Su(e) { + return e > 1 ? 0 : e < -1 ? su : Math.acos(e); } - function Vc(e) { - return e > 1 ? Oc : e < -1 ? -Oc : Math.asin(e); + function Ou(e) { + return e > 1 ? cu : e < -1 ? -cu : Math.asin(e); } - function Uc(e) { - return (e = qc(e / 2)) * e; + function Eu(e) { + return (e = wu(e / 2)) * e; } - function Xc() {} - function Gc(e, t) { - e && $c.hasOwnProperty(e.type) && $c[e.type](e, t); + function Au() {} + function Tu(e, t) { + e && Lu.hasOwnProperty(e.type) && Lu[e.type](e, t); } - var Kc = { + var Cu = { Feature: function(e, t) { - Gc(e.geometry, t); + Tu(e.geometry, t); }, FeatureCollection: function(e, t) { for (var n = e.features, r = -1, o = n.length; ++r < o; ) - Gc(n[r].geometry, t); + Tu(n[r].geometry, t); } }, - $c = { + Lu = { Sphere: function(e, t) { t.sphere(); }, @@ -165904,25 +166517,25 @@ object-assign (e = n[r]), t.point(e[0], e[1], e[2]); }, LineString: function(e, t) { - Qc(e.coordinates, t, 0); + Pu(e.coordinates, t, 0); }, MultiLineString: function(e, t) { for (var n = e.coordinates, r = -1, o = n.length; ++r < o; ) - Qc(n[r], t, 0); + Pu(n[r], t, 0); }, Polygon: function(e, t) { - Jc(e.coordinates, t); + Du(e.coordinates, t); }, MultiPolygon: function(e, t) { for (var n = e.coordinates, r = -1, o = n.length; ++r < o; ) - Jc(n[r], t); + Du(n[r], t); }, GeometryCollection: function(e, t) { for (var n = e.geometries, r = -1, o = n.length; ++r < o; ) - Gc(n[r], t); + Tu(n[r], t); } }; - function Qc(e, t, n) { + function Pu(e, t, n) { var r, o = -1, i = e.length - n; @@ -165930,230 +166543,230 @@ object-assign (r = e[o]), t.point(r[0], r[1], r[2]); t.lineEnd(); } - function Jc(e, t) { + function Du(e, t) { var n = -1, r = e.length; - for (t.polygonStart(); ++n < r; ) Qc(e[n], t, 1); + for (t.polygonStart(); ++n < r; ) Pu(e[n], t, 1); t.polygonEnd(); } - var Zc, - eu, - tu, - nu, - ru, - ou = function(e, t) { - e && Kc.hasOwnProperty(e.type) ? Kc[e.type](e, t) : Gc(e, t); - }, - iu = wc(), - au = wc(), - su = { - point: Xc, - lineStart: Xc, - lineEnd: Xc, + var ju, + zu, + Nu, + Ru, + Iu, + Fu = function(e, t) { + e && Cu.hasOwnProperty(e.type) ? Cu[e.type](e, t) : Tu(e, t); + }, + qu = tu(), + Bu = tu(), + Hu = { + point: Au, + lineStart: Au, + lineEnd: Au, polygonStart: function() { - iu.reset(), (su.lineStart = cu), (su.lineEnd = uu); + qu.reset(), (Hu.lineStart = Yu), (Hu.lineEnd = Wu); }, polygonEnd: function() { - var e = +iu; - au.add(e < 0 ? Tc + e : e), - (this.lineStart = this.lineEnd = this.point = Xc); + var e = +qu; + Bu.add(e < 0 ? lu + e : e), + (this.lineStart = this.lineEnd = this.point = Au); }, sphere: function() { - au.add(Tc); + Bu.add(lu); } }; - function cu() { - su.point = lu; - } - function uu() { - fu(Zc, eu); - } - function lu(e, t) { - (su.point = fu), - (Zc = e), - (eu = t), - (tu = e *= Lc), - (nu = Nc((t = (t *= Lc) / 2 + Ec))), - (ru = qc(t)); - } - function fu(e, t) { - var n = (e *= Lc) - tu, + function Yu() { + Hu.point = Vu; + } + function Wu() { + Uu(ju, zu); + } + function Vu(e, t) { + (Hu.point = Uu), + (ju = e), + (zu = t), + (Nu = e *= du), + (Ru = mu((t = (t *= du) / 2 + uu))), + (Iu = wu(t)); + } + function Uu(e, t) { + var n = (e *= du) - Nu, r = n >= 0 ? 1 : -1, o = r * n, - i = Nc((t = (t *= Lc) / 2 + Ec)), - a = qc(t), - s = ru * a, - c = nu * i + s * Nc(o), - u = s * r * qc(o); - iu.add(zc(u, c)), (tu = e), (nu = i), (ru = a); - } - var du = function(e) { - return au.reset(), ou(e, su), 2 * au; + i = mu((t = (t *= du) / 2 + uu)), + a = wu(t), + s = Iu * a, + c = Ru * i + s * mu(o), + u = s * r * wu(o); + qu.add(gu(u, c)), (Nu = e), (Ru = i), (Iu = a); + } + var Xu = function(e) { + return Bu.reset(), Fu(e, Hu), 2 * Bu; }; - function pu(e) { - return [zc(e[1], e[0]), Vc(e[2])]; + function Gu(e) { + return [gu(e[1], e[0]), Ou(e[2])]; } - function hu(e) { + function Ku(e) { var t = e[0], n = e[1], - r = Nc(n); - return [r * Nc(t), r * qc(t), qc(n)]; + r = mu(n); + return [r * mu(t), r * wu(t), wu(n)]; } - function gu(e, t) { + function $u(e, t) { return e[0] * t[0] + e[1] * t[1] + e[2] * t[2]; } - function mu(e, t) { + function Qu(e, t) { return [ e[1] * t[2] - e[2] * t[1], e[2] * t[0] - e[0] * t[2], e[0] * t[1] - e[1] * t[0] ]; } - function bu(e, t) { + function Ju(e, t) { (e[0] += t[0]), (e[1] += t[1]), (e[2] += t[2]); } - function yu(e, t) { + function Zu(e, t) { return [e[0] * t, e[1] * t, e[2] * t]; } - function vu(e) { - var t = Hc(e[0] * e[0] + e[1] * e[1] + e[2] * e[2]); + function el(e) { + var t = Mu(e[0] * e[0] + e[1] * e[1] + e[2] * e[2]); (e[0] /= t), (e[1] /= t), (e[2] /= t); } - var _u, - xu, - wu, - Mu, - ku, - Su, - Au, - Ou, - Eu, - Tu, - Cu = wc(), - Lu = { - point: Pu, - lineStart: zu, - lineEnd: Nu, + var tl, + nl, + rl, + ol, + il, + al, + sl, + cl, + ul, + ll, + fl = tu(), + dl = { + point: pl, + lineStart: gl, + lineEnd: ml, polygonStart: function() { - (Lu.point = ju), - (Lu.lineStart = Ru), - (Lu.lineEnd = Iu), - Cu.reset(), - su.polygonStart(); + (dl.point = bl), + (dl.lineStart = yl), + (dl.lineEnd = vl), + fl.reset(), + Hu.polygonStart(); }, polygonEnd: function() { - su.polygonEnd(), - (Lu.point = Pu), - (Lu.lineStart = zu), - (Lu.lineEnd = Nu), - iu < 0 - ? ((_u = -(wu = 180)), (xu = -(Mu = 90))) - : Cu > 1e-6 - ? (Mu = 90) - : Cu < -1e-6 && (xu = -90), - (Tu[0] = _u), - (Tu[1] = wu); + Hu.polygonEnd(), + (dl.point = pl), + (dl.lineStart = gl), + (dl.lineEnd = ml), + qu < 0 + ? ((tl = -(rl = 180)), (nl = -(ol = 90))) + : fl > iu + ? (ol = 90) + : fl < -iu && (nl = -90), + (ll[0] = tl), + (ll[1] = rl); }, sphere: function() { - (_u = -(wu = 180)), (xu = -(Mu = 90)); + (tl = -(rl = 180)), (nl = -(ol = 90)); } }; - function Pu(e, t) { - Eu.push((Tu = [(_u = e), (wu = e)])), - t < xu && (xu = t), - t > Mu && (Mu = t); + function pl(e, t) { + ul.push((ll = [(tl = e), (rl = e)])), + t < nl && (nl = t), + t > ol && (ol = t); } - function Du(e, t) { - var n = hu([e * Lc, t * Lc]); - if (Ou) { - var r = mu(Ou, n), - o = mu([r[1], -r[0], 0], r); - vu(o), (o = pu(o)); + function hl(e, t) { + var n = Ku([e * du, t * du]); + if (cl) { + var r = Qu(cl, n), + o = Qu([r[1], -r[0], 0], r); + el(o), (o = Gu(o)); var i, - a = e - ku, + a = e - il, s = a > 0 ? 1 : -1, - c = o[0] * Cc * s, - u = Pc(a) > 180; - u ^ (s * ku < c && c < s * e) - ? (i = o[1] * Cc) > Mu && (Mu = i) - : u ^ (s * ku < (c = ((c + 360) % 360) - 180) && c < s * e) - ? (i = -o[1] * Cc) < xu && (xu = i) - : (t < xu && (xu = t), t > Mu && (Mu = t)), + c = o[0] * fu * s, + u = pu(a) > 180; + u ^ (s * il < c && c < s * e) + ? (i = o[1] * fu) > ol && (ol = i) + : u ^ (s * il < (c = ((c + 360) % 360) - 180) && c < s * e) + ? (i = -o[1] * fu) < nl && (nl = i) + : (t < nl && (nl = t), t > ol && (ol = t)), u - ? e < ku - ? Fu(_u, e) > Fu(_u, wu) && (wu = e) - : Fu(e, wu) > Fu(_u, wu) && (_u = e) - : wu >= _u - ? (e < _u && (_u = e), e > wu && (wu = e)) - : e > ku - ? Fu(_u, e) > Fu(_u, wu) && (wu = e) - : Fu(e, wu) > Fu(_u, wu) && (_u = e); - } else Eu.push((Tu = [(_u = e), (wu = e)])); - t < xu && (xu = t), t > Mu && (Mu = t), (Ou = n), (ku = e); - } - function zu() { - Lu.point = Du; - } - function Nu() { - (Tu[0] = _u), (Tu[1] = wu), (Lu.point = Pu), (Ou = null); - } - function ju(e, t) { - if (Ou) { - var n = e - ku; - Cu.add(Pc(n) > 180 ? n + (n > 0 ? 360 : -360) : n); - } else (Su = e), (Au = t); - su.point(e, t), Du(e, t); - } - function Ru() { - su.lineStart(); - } - function Iu() { - ju(Su, Au), - su.lineEnd(), - Pc(Cu) > 1e-6 && (_u = -(wu = 180)), - (Tu[0] = _u), - (Tu[1] = wu), - (Ou = null); - } - function Fu(e, t) { + ? e < il + ? _l(tl, e) > _l(tl, rl) && (rl = e) + : _l(e, rl) > _l(tl, rl) && (tl = e) + : rl >= tl + ? (e < tl && (tl = e), e > rl && (rl = e)) + : e > il + ? _l(tl, e) > _l(tl, rl) && (rl = e) + : _l(e, rl) > _l(tl, rl) && (tl = e); + } else ul.push((ll = [(tl = e), (rl = e)])); + t < nl && (nl = t), t > ol && (ol = t), (cl = n), (il = e); + } + function gl() { + dl.point = hl; + } + function ml() { + (ll[0] = tl), (ll[1] = rl), (dl.point = pl), (cl = null); + } + function bl(e, t) { + if (cl) { + var n = e - il; + fl.add(pu(n) > 180 ? n + (n > 0 ? 360 : -360) : n); + } else (al = e), (sl = t); + Hu.point(e, t), hl(e, t); + } + function yl() { + Hu.lineStart(); + } + function vl() { + bl(al, sl), + Hu.lineEnd(), + pu(fl) > iu && (tl = -(rl = 180)), + (ll[0] = tl), + (ll[1] = rl), + (cl = null); + } + function _l(e, t) { return (t -= e) < 0 ? t + 360 : t; } - function qu(e, t) { + function wl(e, t) { return e[0] - t[0]; } - function Bu(e, t) { + function xl(e, t) { return e[0] <= e[1] ? e[0] <= t && t <= e[1] : t < e[0] || e[1] < t; } - var Hu, - Yu, - Wu, - Vu, - Uu, - Xu, - Gu, - Ku, - $u, - Qu, - Ju, - Zu, - el, - tl, - nl, - rl, - ol = function(e) { + var Ml, + kl, + Sl, + Ol, + El, + Al, + Tl, + Cl, + Ll, + Pl, + Dl, + jl, + zl, + Nl, + Rl, + Il, + Fl = function(e) { var t, n, r, o, i, a, s; if ( - ((Mu = wu = -(_u = xu = 1 / 0)), - (Eu = []), - ou(e, Lu), - (n = Eu.length)) + ((ol = rl = -(tl = nl = 1 / 0)), + (ul = []), + Fu(e, dl), + (n = ul.length)) ) { - for (Eu.sort(qu), t = 1, i = [(r = Eu[0])]; t < n; ++t) - Bu(r, (o = Eu[t])[0]) || Bu(r, o[1]) - ? (Fu(r[0], o[1]) > Fu(r[0], r[1]) && (r[1] = o[1]), - Fu(o[0], r[1]) > Fu(r[0], r[1]) && (r[0] = o[0])) + for (ul.sort(wl), t = 1, i = [(r = ul[0])]; t < n; ++t) + xl(r, (o = ul[t])[0]) || xl(r, o[1]) + ? (_l(r[0], o[1]) > _l(r[0], r[1]) && (r[1] = o[1]), + _l(o[0], r[1]) > _l(r[0], r[1]) && (r[0] = o[0])) : i.push((r = o)); for ( a = -1 / 0, t = 0, r = i[(n = i.length - 1)]; @@ -166161,137 +166774,130 @@ object-assign r = o, ++t ) (o = i[t]), - (s = Fu(r[1], o[0])) > a && - ((a = s), (_u = o[0]), (wu = r[1])); + (s = _l(r[1], o[0])) > a && + ((a = s), (tl = o[0]), (rl = r[1])); } return ( - (Eu = Tu = null), - _u === 1 / 0 || xu === 1 / 0 - ? [ - [NaN, NaN], - [NaN, NaN] - ] - : [ - [_u, xu], - [wu, Mu] - ] + (ul = ll = null), + tl === 1 / 0 || nl === 1 / 0 + ? [[NaN, NaN], [NaN, NaN]] + : [[tl, nl], [rl, ol]] ); }, - il = { - sphere: Xc, - point: al, - lineStart: cl, - lineEnd: fl, + ql = { + sphere: Au, + point: Bl, + lineStart: Yl, + lineEnd: Ul, polygonStart: function() { - (il.lineStart = dl), (il.lineEnd = pl); + (ql.lineStart = Xl), (ql.lineEnd = Gl); }, polygonEnd: function() { - (il.lineStart = cl), (il.lineEnd = fl); + (ql.lineStart = Yl), (ql.lineEnd = Ul); } }; - function al(e, t) { - e *= Lc; - var n = Nc((t *= Lc)); - sl(n * Nc(e), n * qc(e), qc(t)); - } - function sl(e, t, n) { - ++Hu, - (Wu += (e - Wu) / Hu), - (Vu += (t - Vu) / Hu), - (Uu += (n - Uu) / Hu); - } - function cl() { - il.point = ul; - } - function ul(e, t) { - e *= Lc; - var n = Nc((t *= Lc)); - (tl = n * Nc(e)), - (nl = n * qc(e)), - (rl = qc(t)), - (il.point = ll), - sl(tl, nl, rl); - } - function ll(e, t) { - e *= Lc; - var n = Nc((t *= Lc)), - r = n * Nc(e), - o = n * qc(e), - i = qc(t), - a = zc( - Hc( - (a = nl * i - rl * o) * a + - (a = rl * r - tl * i) * a + - (a = tl * o - nl * r) * a + function Bl(e, t) { + e *= du; + var n = mu((t *= du)); + Hl(n * mu(e), n * wu(e), wu(t)); + } + function Hl(e, t, n) { + (Sl += (e - Sl) / ++Ml), + (Ol += (t - Ol) / Ml), + (El += (n - El) / Ml); + } + function Yl() { + ql.point = Wl; + } + function Wl(e, t) { + e *= du; + var n = mu((t *= du)); + (Nl = n * mu(e)), + (Rl = n * wu(e)), + (Il = wu(t)), + (ql.point = Vl), + Hl(Nl, Rl, Il); + } + function Vl(e, t) { + e *= du; + var n = mu((t *= du)), + r = n * mu(e), + o = n * wu(e), + i = wu(t), + a = gu( + Mu( + (a = Rl * i - Il * o) * a + + (a = Il * r - Nl * i) * a + + (a = Nl * o - Rl * r) * a ), - tl * r + nl * o + rl * i + Nl * r + Rl * o + Il * i ); - (Yu += a), - (Xu += a * (tl + (tl = r))), - (Gu += a * (nl + (nl = o))), - (Ku += a * (rl + (rl = i))), - sl(tl, nl, rl); + (kl += a), + (Al += a * (Nl + (Nl = r))), + (Tl += a * (Rl + (Rl = o))), + (Cl += a * (Il + (Il = i))), + Hl(Nl, Rl, Il); } - function fl() { - il.point = al; + function Ul() { + ql.point = Bl; } - function dl() { - il.point = hl; + function Xl() { + ql.point = Kl; } - function pl() { - gl(Zu, el), (il.point = al); + function Gl() { + $l(jl, zl), (ql.point = Bl); } - function hl(e, t) { - (Zu = e), (el = t), (e *= Lc), (t *= Lc), (il.point = gl); - var n = Nc(t); - (tl = n * Nc(e)), - (nl = n * qc(e)), - (rl = qc(t)), - sl(tl, nl, rl); - } - function gl(e, t) { - e *= Lc; - var n = Nc((t *= Lc)), - r = n * Nc(e), - o = n * qc(e), - i = qc(t), - a = nl * i - rl * o, - s = rl * r - tl * i, - c = tl * o - nl * r, - u = Hc(a * a + s * s + c * c), - l = Vc(u), + function Kl(e, t) { + (jl = e), (zl = t), (e *= du), (t *= du), (ql.point = $l); + var n = mu(t); + (Nl = n * mu(e)), + (Rl = n * wu(e)), + (Il = wu(t)), + Hl(Nl, Rl, Il); + } + function $l(e, t) { + e *= du; + var n = mu((t *= du)), + r = n * mu(e), + o = n * wu(e), + i = wu(t), + a = Rl * i - Il * o, + s = Il * r - Nl * i, + c = Nl * o - Rl * r, + u = Mu(a * a + s * s + c * c), + l = Ou(u), f = u && -l / u; - ($u += f * a), - (Qu += f * s), - (Ju += f * c), - (Yu += l), - (Xu += l * (tl + (tl = r))), - (Gu += l * (nl + (nl = o))), - (Ku += l * (rl + (rl = i))), - sl(tl, nl, rl); - } - var ml = function(e) { - (Hu = Yu = Wu = Vu = Uu = Xu = Gu = Ku = $u = Qu = Ju = 0), - ou(e, il); - var t = $u, - n = Qu, - r = Ju, + (Ll += f * a), + (Pl += f * s), + (Dl += f * c), + (kl += l), + (Al += l * (Nl + (Nl = r))), + (Tl += l * (Rl + (Rl = o))), + (Cl += l * (Il + (Il = i))), + Hl(Nl, Rl, Il); + } + var Ql = function(e) { + (Ml = kl = Sl = Ol = El = Al = Tl = Cl = Ll = Pl = Dl = 0), + Fu(e, ql); + var t = Ll, + n = Pl, + r = Dl, o = t * t + n * n + r * r; - return o < 1e-12 && - ((t = Xu), - (n = Gu), - (r = Ku), - Yu < 1e-6 && ((t = Wu), (n = Vu), (r = Uu)), - (o = t * t + n * n + r * r) < 1e-12) + return o < au && + ((t = Al), + (n = Tl), + (r = Cl), + kl < iu && ((t = Sl), (n = Ol), (r = El)), + (o = t * t + n * n + r * r) < au) ? [NaN, NaN] - : [zc(n, t) * Cc, Vc(r / Hc(o)) * Cc]; + : [gu(n, t) * fu, Ou(r / Mu(o)) * fu]; }, - bl = function(e) { + Jl = function(e) { return function() { return e; }; }, - yl = function(e, t) { + Zl = function(e, t) { function n(n, r) { return (n = e(n, r)), t(n[0], n[1]); } @@ -166304,112 +166910,112 @@ object-assign n ); }; - function vl(e, t) { - return [Pc(e) > Ac ? e + Math.round(-e / Tc) * Tc : e, t]; + function ef(e, t) { + return [pu(e) > su ? e + Math.round(-e / lu) * lu : e, t]; } - function _l(e, t, n) { - return (e %= Tc) + function tf(e, t, n) { + return (e %= lu) ? t || n - ? yl(wl(e), Ml(t, n)) - : wl(e) + ? Zl(rf(e), of(t, n)) + : rf(e) : t || n - ? Ml(t, n) - : vl; + ? of(t, n) + : ef; } - function xl(e) { + function nf(e) { return function(t, n) { - return [(t += e) > Ac ? t - Tc : t < -Ac ? t + Tc : t, n]; + return [(t += e) > su ? t - lu : t < -su ? t + lu : t, n]; }; } - function wl(e) { - var t = xl(e); - return (t.invert = xl(-e)), t; + function rf(e) { + var t = nf(e); + return (t.invert = nf(-e)), t; } - function Ml(e, t) { - var n = Nc(e), - r = qc(e), - o = Nc(t), - i = qc(t); + function of(e, t) { + var n = mu(e), + r = wu(e), + o = mu(t), + i = wu(t); function a(e, t) { - var a = Nc(t), - s = Nc(e) * a, - c = qc(e) * a, - u = qc(t), + var a = mu(t), + s = mu(e) * a, + c = wu(e) * a, + u = wu(t), l = u * n + s * r; - return [zc(c * o - l * i, s * n - u * r), Vc(l * o + c * i)]; + return [gu(c * o - l * i, s * n - u * r), Ou(l * o + c * i)]; } return ( (a.invert = function(e, t) { - var a = Nc(t), - s = Nc(e) * a, - c = qc(e) * a, - u = qc(t), + var a = mu(t), + s = mu(e) * a, + c = wu(e) * a, + u = wu(t), l = u * o - c * i; return [ - zc(c * o + u * i, s * n + l * r), - Vc(l * n - s * r) + gu(c * o + u * i, s * n + l * r), + Ou(l * n - s * r) ]; }), a ); } - vl.invert = vl; - var kl = function(e) { + ef.invert = ef; + var af = function(e) { function t(t) { return ( - ((t = e(t[0] * Lc, t[1] * Lc))[0] *= Cc), (t[1] *= Cc), t + ((t = e(t[0] * du, t[1] * du))[0] *= fu), (t[1] *= fu), t ); } return ( - (e = _l(e[0] * Lc, e[1] * Lc, e.length > 2 ? e[2] * Lc : 0)), + (e = tf(e[0] * du, e[1] * du, e.length > 2 ? e[2] * du : 0)), (t.invert = function(t) { return ( - ((t = e.invert(t[0] * Lc, t[1] * Lc))[0] *= Cc), - (t[1] *= Cc), + ((t = e.invert(t[0] * du, t[1] * du))[0] *= fu), + (t[1] *= fu), t ); }), t ); }; - function Sl(e, t, n, r, o, i) { + function sf(e, t, n, r, o, i) { if (n) { - var a = Nc(t), - s = qc(t), + var a = mu(t), + s = wu(t), c = r * n; null == o - ? ((o = t + r * Tc), (i = t - c / 2)) - : ((o = Al(a, o)), - (i = Al(a, i)), - (r > 0 ? o < i : o > i) && (o += r * Tc)); + ? ((o = t + r * lu), (i = t - c / 2)) + : ((o = cf(a, o)), + (i = cf(a, i)), + (r > 0 ? o < i : o > i) && (o += r * lu)); for (var u, l = o; r > 0 ? l > i : l < i; l -= c) - (u = pu([a, -s * Nc(l), -s * qc(l)])), e.point(u[0], u[1]); + (u = Gu([a, -s * mu(l), -s * wu(l)])), e.point(u[0], u[1]); } } - function Al(e, t) { - ((t = hu(t))[0] -= e), vu(t); - var n = Wc(-t[1]); - return ((-t[2] < 0 ? -n : n) + Tc - 1e-6) % Tc; + function cf(e, t) { + ((t = Ku(t))[0] -= e), el(t); + var n = Su(-t[1]); + return ((-t[2] < 0 ? -n : n) + lu - iu) % lu; } - var Ol = function() { + var uf = function() { var e, t, - n = bl([0, 0]), - r = bl(90), - o = bl(6), + n = Jl([0, 0]), + r = Jl(90), + o = Jl(6), i = { point: function(n, r) { - e.push((n = t(n, r))), (n[0] *= Cc), (n[1] *= Cc); + e.push((n = t(n, r))), (n[0] *= fu), (n[1] *= fu); } }; function a() { var a = n.apply(this, arguments), - s = r.apply(this, arguments) * Lc, - c = o.apply(this, arguments) * Lc; + s = r.apply(this, arguments) * du, + c = o.apply(this, arguments) * du; return ( (e = []), - (t = _l(-a[0] * Lc, -a[1] * Lc, 0).invert), - Sl(i, s, c, 1), + (t = tf(-a[0] * du, -a[1] * du, 0).invert), + sf(i, s, c, 1), (a = { type: 'Polygon', coordinates: [e] }), (e = t = null), a @@ -166419,24 +167025,24 @@ object-assign (a.center = function(e) { return arguments.length ? ((n = - 'function' == typeof e ? e : bl([+e[0], +e[1]])), + 'function' == typeof e ? e : Jl([+e[0], +e[1]])), a) : n; }), (a.radius = function(e) { return arguments.length - ? ((r = 'function' == typeof e ? e : bl(+e)), a) + ? ((r = 'function' == typeof e ? e : Jl(+e)), a) : r; }), (a.precision = function(e) { return arguments.length - ? ((o = 'function' == typeof e ? e : bl(+e)), a) + ? ((o = 'function' == typeof e ? e : Jl(+e)), a) : o; }), a ); }, - El = function() { + lf = function() { var e, t = []; return { @@ -166446,7 +167052,7 @@ object-assign lineStart: function() { t.push((e = [])); }, - lineEnd: Xc, + lineEnd: Au, rejoin: function() { t.length > 1 && t.push(t.pop().concat(t.shift())); }, @@ -166456,10 +167062,10 @@ object-assign } }; }, - Tl = function(e, t) { - return Pc(e[0] - t[0]) < 1e-6 && Pc(e[1] - t[1]) < 1e-6; + ff = function(e, t) { + return pu(e[0] - t[0]) < iu && pu(e[1] - t[1]) < iu; }; - function Cl(e, t, n, r) { + function df(e, t, n, r) { (this.x = e), (this.z = t), (this.o = n), @@ -166467,7 +167073,7 @@ object-assign (this.v = !1), (this.n = this.p = null); } - var Ll = function(e, t, n, r, o) { + var pf = function(e, t, n, r, o) { var i, a, s = [], @@ -166479,20 +167085,20 @@ object-assign n, r = e[0], a = e[t]; - if (Tl(r, a)) { + if (ff(r, a)) { for (o.lineStart(), i = 0; i < t; ++i) o.point((r = e[i])[0], r[1]); o.lineEnd(); } else - s.push((n = new Cl(r, e, null, !0))), - c.push((n.o = new Cl(r, null, n, !1))), - s.push((n = new Cl(a, e, null, !1))), - c.push((n.o = new Cl(a, null, n, !0))); + s.push((n = new df(r, e, null, !0))), + c.push((n.o = new df(r, null, n, !1))), + s.push((n = new df(a, e, null, !1))), + c.push((n.o = new df(a, null, n, !0))); } }), s.length) ) { - for (c.sort(t), Pl(s), Pl(c), i = 0, a = c.length; i < a; ++i) + for (c.sort(t), hf(s), hf(c), i = 0, a = c.length; i < a; ++i) c[i].e = n = !n; for (var u, l, f = s[0]; ; ) { for (var d = f, p = !0; d.v; ) if ((d = d.n) === f) return; @@ -166517,75 +167123,75 @@ object-assign } } }; - function Pl(e) { + function hf(e) { if ((t = e.length)) { for (var t, n, r = 0, o = e[0]; ++r < t; ) (o.n = n = e[r]), (n.p = o), (o = n); (o.n = n = e[0]), (n.p = o); } } - var Dl = wc(); - function zl(e) { - return Pc(e[0]) <= Ac + var gf = tu(); + function mf(e) { + return pu(e[0]) <= su ? e[0] - : Bc(e[0]) * (((Pc(e[0]) + Ac) % Tc) - Ac); + : xu(e[0]) * (((pu(e[0]) + su) % lu) - su); } - var Nl = function(e, t) { - var n = zl(t), + var bf = function(e, t) { + var n = mf(t), r = t[1], - o = qc(r), - i = [qc(n), -Nc(n), 0], + o = wu(r), + i = [wu(n), -mu(n), 0], a = 0, s = 0; - Dl.reset(), - 1 === o ? (r = Oc + 1e-6) : -1 === o && (r = -Oc - 1e-6); + gf.reset(), + 1 === o ? (r = cu + iu) : -1 === o && (r = -cu - iu); for (var c = 0, u = e.length; c < u; ++c) if ((f = (l = e[c]).length)) for ( var l, f, d = l[f - 1], - p = zl(d), - h = d[1] / 2 + Ec, - g = qc(h), - m = Nc(h), + p = mf(d), + h = d[1] / 2 + uu, + g = wu(h), + m = mu(h), b = 0; b < f; - ++b, p = v, g = x, m = w, d = y + ++b, p = v, g = w, m = x, d = y ) { var y = l[b], - v = zl(y), - _ = y[1] / 2 + Ec, - x = qc(_), - w = Nc(_), + v = mf(y), + _ = y[1] / 2 + uu, + w = wu(_), + x = mu(_), M = v - p, k = M >= 0 ? 1 : -1, S = k * M, - A = S > Ac, - O = g * x; + O = S > su, + E = g * w; if ( - (Dl.add(zc(O * k * qc(S), m * w + O * Nc(S))), - (a += A ? M + k * Tc : M), - A ^ (p >= n) ^ (v >= n)) + (gf.add(gu(E * k * wu(S), m * x + E * mu(S))), + (a += O ? M + k * lu : M), + O ^ (p >= n) ^ (v >= n)) ) { - var E = mu(hu(d), hu(y)); - vu(E); - var T = mu(i, E); - vu(T); - var C = (A ^ (M >= 0) ? -1 : 1) * Vc(T[2]); - (r > C || (r === C && (E[0] || E[1]))) && - (s += A ^ (M >= 0) ? 1 : -1); + var A = Qu(Ku(d), Ku(y)); + el(A); + var T = Qu(i, A); + el(T); + var C = (O ^ (M >= 0) ? -1 : 1) * Ou(T[2]); + (r > C || (r === C && (A[0] || A[1]))) && + (s += O ^ (M >= 0) ? 1 : -1); } } - return (a < -1e-6 || (a < 1e-6 && Dl < -1e-6)) ^ (1 & s); + return (a < -iu || (a < iu && gf < -iu)) ^ (1 & s); }, - jl = function(e, t, n, r) { + yf = function(e, t, n, r) { return function(o) { var i, a, s, c = t(o), - u = El(), + u = lf(), l = t(u), f = !1, d = { @@ -166604,10 +167210,10 @@ object-assign (d.lineStart = g), (d.lineEnd = m), (a = R(a)); - var e = Nl(i, r); + var e = bf(i, r); a.length ? (f || (o.polygonStart(), (f = !0)), - Ll(a, Il, e, n, o)) + pf(a, _f, e, n, o)) : e && (f || (o.polygonStart(), (f = !0)), o.lineStart(), @@ -166666,21 +167272,21 @@ object-assign } } else p > 1 && 2 & c && d.push(d.pop().concat(d.shift())), - a.push(d.filter(Rl)); + a.push(d.filter(vf)); } return d; }; }; - function Rl(e) { + function vf(e) { return e.length > 1; } - function Il(e, t) { + function _f(e, t) { return ( - ((e = e.x)[0] < 0 ? e[1] - Oc - 1e-6 : Oc - e[1]) - - ((t = t.x)[0] < 0 ? t[1] - Oc - 1e-6 : Oc - t[1]) + ((e = e.x)[0] < 0 ? e[1] - cu - iu : cu - e[1]) - + ((t = t.x)[0] < 0 ? t[1] - cu - iu : cu - t[1]) ); } - var Fl = jl( + var wf = yf( function() { return !0; }, @@ -166694,10 +167300,10 @@ object-assign e.lineStart(), (t = 1); }, point: function(i, a) { - var s = i > 0 ? Ac : -Ac, - c = Pc(i - n); - Pc(c - Ac) < 1e-6 - ? (e.point(n, (r = (r + a) / 2 > 0 ? Oc : -Oc)), + var s = i > 0 ? su : -su, + c = pu(i - n); + pu(c - su) < iu + ? (e.point(n, (r = (r + a) / 2 > 0 ? cu : -cu)), e.point(o, r), e.lineEnd(), e.lineStart(), @@ -166705,17 +167311,17 @@ object-assign e.point(i, r), (t = 0)) : o !== s && - c >= Ac && - (Pc(n - o) < 1e-6 && (n -= 1e-6 * o), - Pc(i - s) < 1e-6 && (i -= 1e-6 * s), + c >= su && + (pu(n - o) < iu && (n -= o * iu), + pu(i - s) < iu && (i -= s * iu), (r = (function(e, t, n, r) { var o, i, - a = qc(e - n); - return Pc(a) > 1e-6 - ? Dc( - (qc(t) * (i = Nc(r)) * qc(n) - - qc(r) * (o = Nc(t)) * qc(e)) / + a = wu(e - n); + return pu(a) > iu + ? hu( + (wu(t) * (i = mu(r)) * wu(n) - + wu(r) * (o = mu(t)) * wu(e)) / (o * i * a) ) : (t + r) / 2; @@ -166739,78 +167345,77 @@ object-assign function(e, t, n, r) { var o; if (null == e) - (o = n * Oc), - r.point(-Ac, o), + (o = n * cu), + r.point(-su, o), r.point(0, o), - r.point(Ac, o), - r.point(Ac, 0), - r.point(Ac, -o), + r.point(su, o), + r.point(su, 0), + r.point(su, -o), r.point(0, -o), - r.point(-Ac, -o), - r.point(-Ac, 0), - r.point(-Ac, o); - else if (Pc(e[0] - t[0]) > 1e-6) { - var i = e[0] < t[0] ? Ac : -Ac; + r.point(-su, -o), + r.point(-su, 0), + r.point(-su, o); + else if (pu(e[0] - t[0]) > iu) { + var i = e[0] < t[0] ? su : -su; (o = (n * i) / 2), r.point(-i, o), r.point(0, o), r.point(i, o); } else r.point(t[0], t[1]); }, - [-Ac, -Oc] + [-su, -cu] ), - ql = function(e) { - var t = Nc(e), - n = 6 * Lc, + xf = function(e) { + var t = mu(e), + n = 6 * du, r = t > 0, - o = Pc(t) > 1e-6; + o = pu(t) > iu; function i(e, n) { - return Nc(e) * Nc(n) > t; + return mu(e) * mu(n) > t; } function a(e, n, r) { var o = [1, 0, 0], - i = mu(hu(e), hu(n)), - a = gu(i, i), + i = Qu(Ku(e), Ku(n)), + a = $u(i, i), s = i[0], c = a - s * s; if (!c) return !r && e; var u = (t * a) / c, l = (-t * s) / c, - f = mu(o, i), - d = yu(o, u); - bu(d, yu(i, l)); + f = Qu(o, i), + d = Zu(o, u); + Ju(d, Zu(i, l)); var p = f, - h = gu(d, p), - g = gu(p, p), - m = h * h - g * (gu(d, d) - 1); + h = $u(d, p), + g = $u(p, p), + m = h * h - g * ($u(d, d) - 1); if (!(m < 0)) { - var b = Hc(m), - y = yu(p, (-h - b) / g); - if ((bu(y, d), (y = pu(y)), !r)) return y; + var b = Mu(m), + y = Zu(p, (-h - b) / g); + if ((Ju(y, d), (y = Gu(y)), !r)) return y; var v, _ = e[0], - x = n[0], - w = e[1], + w = n[0], + x = e[1], M = n[1]; - x < _ && ((v = _), (_ = x), (x = v)); - var k = x - _, - S = Pc(k - Ac) < 1e-6; + w < _ && ((v = _), (_ = w), (w = v)); + var k = w - _, + S = pu(k - su) < iu; if ( - (!S && M < w && ((v = w), (w = M), (M = v)), - S || k < 1e-6 + (!S && M < x && ((v = x), (x = M), (M = v)), + S || k < iu ? S - ? (w + M > 0) ^ - (y[1] < (Pc(y[0] - _) < 1e-6 ? w : M)) - : w <= y[1] && y[1] <= M - : (k > Ac) ^ (_ <= y[0] && y[0] <= x)) + ? (x + M > 0) ^ (y[1] < (pu(y[0] - _) < iu ? x : M)) + : x <= y[1] && y[1] <= M + : (k > su) ^ (_ <= y[0] && y[0] <= w)) ) { - var A = yu(p, (-h + b) / g); - return bu(A, d), [y, pu(A)]; + var O = Zu(p, (-h + b) / g); + return Ju(O, d), [y, Gu(O)]; } } } function s(t, n) { - var o = r ? e : Ac - e, + var o = r ? e : su - e, i = 0; return ( t < -o ? (i |= 1) : t > o && (i |= 2), @@ -166818,7 +167423,7 @@ object-assign i ); } - return jl( + return yf( i, function(e) { var t, n, c, u, l; @@ -166835,15 +167440,13 @@ object-assign ? 0 : s(f, d) : g - ? s(f + (f < 0 ? Ac : -Ac), d) + ? s(f + (f < 0 ? su : -su), d) : 0; if ( (!t && (u = c = g) && e.lineStart(), g !== c && - (!(p = a(t, h)) || Tl(t, p) || Tl(h, p)) && - ((h[0] += 1e-6), - (h[1] += 1e-6), - (g = i(h[0], h[1]))), + (!(p = a(t, h)) || ff(t, p) || ff(h, p)) && + ((h[0] += iu), (h[1] += iu), (g = i(h[0], h[1]))), g !== c) ) (l = 0), @@ -166870,7 +167473,7 @@ object-assign e.lineStart(), e.point(b[0][0], b[0][1]))); } - !g || (t && Tl(t, h)) || e.point(h[0], h[1]), + !g || (t && ff(t, h)) || e.point(h[0], h[1]), (t = h), (c = g), (n = m); @@ -166884,12 +167487,64 @@ object-assign }; }, function(t, r, o, i) { - Sl(i, e, n, o, t, r); + sf(i, e, n, o, t, r); }, - r ? [0, -e] : [-Ac, e - Ac] + r ? [0, -e] : [-su, e - su] ); - }; - function Bl(e, t, n, r) { + }, + Mf = function(e, t, n, r, o, i) { + var a, + s = e[0], + c = e[1], + u = 0, + l = 1, + f = t[0] - s, + d = t[1] - c; + if (((a = n - s), f || !(a > 0))) { + if (((a /= f), f < 0)) { + if (a < u) return; + a < l && (l = a); + } else if (f > 0) { + if (a > l) return; + a > u && (u = a); + } + if (((a = o - s), f || !(a < 0))) { + if (((a /= f), f < 0)) { + if (a > l) return; + a > u && (u = a); + } else if (f > 0) { + if (a < u) return; + a < l && (l = a); + } + if (((a = r - c), d || !(a > 0))) { + if (((a /= d), d < 0)) { + if (a < u) return; + a < l && (l = a); + } else if (d > 0) { + if (a > l) return; + a > u && (u = a); + } + if (((a = i - c), d || !(a < 0))) { + if (((a /= d), d < 0)) { + if (a > l) return; + a > u && (u = a); + } else if (d > 0) { + if (a < u) return; + a < l && (l = a); + } + return ( + u > 0 && ((e[0] = s + u * f), (e[1] = c + u * d)), + l < 1 && ((t[0] = s + l * f), (t[1] = c + l * d)), + !0 + ); + } + } + } + } + }, + kf = 1e9, + Sf = -kf; + function Of(e, t, n, r) { function o(o, i) { return e <= o && o <= n && t <= i && i <= r; } @@ -166907,15 +167562,15 @@ object-assign else u.point(i[0], i[1]); } function a(r, o) { - return Pc(r[0] - e) < 1e-6 + return pu(r[0] - e) < iu ? o > 0 ? 0 : 3 - : Pc(r[0] - n) < 1e-6 + : pu(r[0] - n) < iu ? o > 0 ? 2 : 1 - : Pc(r[1] - t) < 1e-6 + : pu(r[1] - t) < iu ? o > 0 ? 1 : 0 @@ -166952,11 +167607,11 @@ object-assign b, y, v = a, - _ = El(), - x = { - point: w, + _ = lf(), + w = { + point: x, lineStart: function() { - (x.point = M), + (w.point = M), u && u.push((l = [])), (b = !0), (m = !1), @@ -166965,7 +167620,7 @@ object-assign lineEnd: function() { c && (M(f, d), p && m && _.rejoin(), c.push(_.result())), - (x.point = w), + (w.point = x), m && v.lineEnd(); }, polygonStart: function() { @@ -167006,13 +167661,13 @@ object-assign (a.polygonStart(), n && (a.lineStart(), i(null, null, 1, a), a.lineEnd()), - o && Ll(c, s, t, i, a), + o && pf(c, s, t, i, a), a.polygonEnd()), (v = a), (c = u = l = null); } }; - function w(e, t) { + function x(e, t) { o(e, t) && v.point(e, t); } function M(i, a) { @@ -167026,80 +167681,29 @@ object-assign else if (s && m) v.point(i, a); else { var c = [ - (h = Math.max(-1e9, Math.min(1e9, h))), - (g = Math.max(-1e9, Math.min(1e9, g))) + (h = Math.max(Sf, Math.min(kf, h))), + (g = Math.max(Sf, Math.min(kf, g))) ], _ = [ - (i = Math.max(-1e9, Math.min(1e9, i))), - (a = Math.max(-1e9, Math.min(1e9, a))) + (i = Math.max(Sf, Math.min(kf, i))), + (a = Math.max(Sf, Math.min(kf, a))) ]; - !(function(e, t, n, r, o, i) { - var a, - s = e[0], - c = e[1], - u = 0, - l = 1, - f = t[0] - s, - d = t[1] - c; - if (((a = n - s), f || !(a > 0))) { - if (((a /= f), f < 0)) { - if (a < u) return; - a < l && (l = a); - } else if (f > 0) { - if (a > l) return; - a > u && (u = a); - } - if (((a = o - s), f || !(a < 0))) { - if (((a /= f), f < 0)) { - if (a > l) return; - a > u && (u = a); - } else if (f > 0) { - if (a < u) return; - a < l && (l = a); - } - if (((a = r - c), d || !(a > 0))) { - if (((a /= d), d < 0)) { - if (a < u) return; - a < l && (l = a); - } else if (d > 0) { - if (a > l) return; - a > u && (u = a); - } - if (((a = i - c), d || !(a < 0))) { - if (((a /= d), d < 0)) { - if (a > l) return; - a > u && (u = a); - } else if (d > 0) { - if (a < u) return; - a < l && (l = a); - } - return ( - u > 0 && - ((e[0] = s + u * f), (e[1] = c + u * d)), - l < 1 && - ((t[0] = s + l * f), (t[1] = c + l * d)), - !0 - ); - } - } - } - } - })(c, _, e, t, n, r) - ? s && (v.lineStart(), v.point(i, a), (y = !1)) - : (m || (v.lineStart(), v.point(c[0], c[1])), + Mf(c, _, e, t, n, r) + ? (m || (v.lineStart(), v.point(c[0], c[1])), v.point(_[0], _[1]), s || v.lineEnd(), - (y = !1)); + (y = !1)) + : s && (v.lineStart(), v.point(i, a), (y = !1)); } (h = i), (g = a), (m = s); } - return x; + return w; }; } - var Hl, - Yl, - Wl, - Vl = function() { + var Ef, + Af, + Tf, + Cf = function() { var e, t, n, @@ -167109,7 +167713,7 @@ object-assign a = 500; return (n = { stream: function(n) { - return e && t === n ? e : (e = Bl(r, o, i, a)((t = n))); + return e && t === n ? e : (e = Of(r, o, i, a)((t = n))); }, extent: function(s) { return arguments.length @@ -167119,146 +167723,143 @@ object-assign (a = +s[1][1]), (e = t = null), n) - : [ - [r, o], - [i, a] - ]; + : [[r, o], [i, a]]; } }); }, - Ul = wc(), - Xl = { - sphere: Xc, - point: Xc, + Lf = tu(), + Pf = { + sphere: Au, + point: Au, lineStart: function() { - (Xl.point = Kl), (Xl.lineEnd = Gl); + (Pf.point = jf), (Pf.lineEnd = Df); }, - lineEnd: Xc, - polygonStart: Xc, - polygonEnd: Xc + lineEnd: Au, + polygonStart: Au, + polygonEnd: Au }; - function Gl() { - Xl.point = Xl.lineEnd = Xc; - } - function Kl(e, t) { - (Hl = e *= Lc), - (Yl = qc((t *= Lc))), - (Wl = Nc(t)), - (Xl.point = $l); - } - function $l(e, t) { - e *= Lc; - var n = qc((t *= Lc)), - r = Nc(t), - o = Pc(e - Hl), - i = Nc(o), - a = r * qc(o), - s = Wl * n - Yl * r * i, - c = Yl * n + Wl * r * i; - Ul.add(zc(Hc(a * a + s * s), c)), (Hl = e), (Yl = n), (Wl = r); - } - var Ql = function(e) { - return Ul.reset(), ou(e, Xl), +Ul; - }, - Jl = [null, null], - Zl = { type: 'LineString', coordinates: Jl }, - ef = function(e, t) { - return (Jl[0] = e), (Jl[1] = t), Ql(Zl); - }, - tf = { + function Df() { + Pf.point = Pf.lineEnd = Au; + } + function jf(e, t) { + (Ef = e *= du), + (Af = wu((t *= du))), + (Tf = mu(t)), + (Pf.point = zf); + } + function zf(e, t) { + e *= du; + var n = wu((t *= du)), + r = mu(t), + o = pu(e - Ef), + i = mu(o), + a = r * wu(o), + s = Tf * n - Af * r * i, + c = Af * n + Tf * r * i; + Lf.add(gu(Mu(a * a + s * s), c)), (Ef = e), (Af = n), (Tf = r); + } + var Nf = function(e) { + return Lf.reset(), Fu(e, Pf), +Lf; + }, + Rf = [null, null], + If = { type: 'LineString', coordinates: Rf }, + Ff = function(e, t) { + return (Rf[0] = e), (Rf[1] = t), Nf(If); + }, + qf = { Feature: function(e, t) { - return rf(e.geometry, t); + return Hf(e.geometry, t); }, FeatureCollection: function(e, t) { for (var n = e.features, r = -1, o = n.length; ++r < o; ) - if (rf(n[r].geometry, t)) return !0; + if (Hf(n[r].geometry, t)) return !0; return !1; } }, - nf = { + Bf = { Sphere: function() { return !0; }, Point: function(e, t) { - return of(e.coordinates, t); + return Yf(e.coordinates, t); }, MultiPoint: function(e, t) { for (var n = e.coordinates, r = -1, o = n.length; ++r < o; ) - if (of(n[r], t)) return !0; + if (Yf(n[r], t)) return !0; return !1; }, LineString: function(e, t) { - return af(e.coordinates, t); + return Wf(e.coordinates, t); }, MultiLineString: function(e, t) { for (var n = e.coordinates, r = -1, o = n.length; ++r < o; ) - if (af(n[r], t)) return !0; + if (Wf(n[r], t)) return !0; return !1; }, Polygon: function(e, t) { - return sf(e.coordinates, t); + return Vf(e.coordinates, t); }, MultiPolygon: function(e, t) { for (var n = e.coordinates, r = -1, o = n.length; ++r < o; ) - if (sf(n[r], t)) return !0; + if (Vf(n[r], t)) return !0; return !1; }, GeometryCollection: function(e, t) { for (var n = e.geometries, r = -1, o = n.length; ++r < o; ) - if (rf(n[r], t)) return !0; + if (Hf(n[r], t)) return !0; return !1; } }; - function rf(e, t) { - return !(!e || !nf.hasOwnProperty(e.type)) && nf[e.type](e, t); + function Hf(e, t) { + return !(!e || !Bf.hasOwnProperty(e.type)) && Bf[e.type](e, t); } - function of(e, t) { - return 0 === ef(e, t); + function Yf(e, t) { + return 0 === Ff(e, t); } - function af(e, t) { + function Wf(e, t) { for (var n, r, o, i = 0, a = e.length; i < a; i++) { - if (0 === (r = ef(e[i], t))) return !0; + if (0 === (r = Ff(e[i], t))) return !0; if ( i > 0 && - (o = ef(e[i], e[i - 1])) > 0 && + (o = Ff(e[i], e[i - 1])) > 0 && n <= o && r <= o && - (n + r - o) * (1 - Math.pow((n - r) / o, 2)) < 1e-12 * o + (n + r - o) * (1 - Math.pow((n - r) / o, 2)) < au * o ) return !0; n = r; } return !1; } - function sf(e, t) { - return !!Nl(e.map(cf), uf(t)); + function Vf(e, t) { + return !!bf(e.map(Uf), Xf(t)); } - function cf(e) { - return (e = e.map(uf)).pop(), e; + function Uf(e) { + return (e = e.map(Xf)).pop(), e; } - function uf(e) { - return [e[0] * Lc, e[1] * Lc]; + function Xf(e) { + return [e[0] * du, e[1] * du]; } - var lf = function(e, t) { - return (e && tf.hasOwnProperty(e.type) ? tf[e.type] : rf)(e, t); + var Gf = function(e, t) { + return (e && qf.hasOwnProperty(e.type) ? qf[e.type] : Hf)(e, t); }; - function ff(e, t, n) { - var r = w(e, t - 1e-6, n).concat(t); + function Kf(e, t, n) { + var r = x(e, t - iu, n).concat(t); return function(e) { return r.map(function(t) { return [e, t]; }); }; } - function df(e, t, n) { - var r = w(e, t - 1e-6, n).concat(t); + function $f(e, t, n) { + var r = x(e, t - iu, n).concat(t); return function(e) { return r.map(function(t) { return [t, e]; }); }; } - function pf() { + function Qf() { var e, t, n, @@ -167280,20 +167881,20 @@ object-assign return { type: 'MultiLineString', coordinates: y() }; } function y() { - return w(jc(r / h) * h, n, h) + return x(bu(r / h) * h, n, h) .map(l) - .concat(w(jc(s / g) * g, a, g).map(f)) + .concat(x(bu(s / g) * g, a, g).map(f)) .concat( - w(jc(t / d) * d, e, d) + x(bu(t / d) * d, e, d) .filter(function(e) { - return Pc(e % h) > 1e-6; + return pu(e % h) > iu; }) .map(c) ) .concat( - w(jc(i / p) * p, o, p) + x(bu(i / p) * p, o, p) .filter(function(e) { - return Pc(e % g) > 1e-6; + return pu(e % g) > iu; }) .map(u) ); @@ -167334,10 +167935,7 @@ object-assign r > n && ((e = r), (r = n), (n = e)), s > a && ((e = s), (s = a), (a = e)), b.precision(m)) - : [ - [r, s], - [n, a] - ]; + : [[r, s], [n, a]]; }), (b.extentMinor = function(n) { return arguments.length @@ -167348,10 +167946,7 @@ object-assign t > e && ((n = t), (t = e), (e = n)), i > o && ((n = i), (i = o), (o = n)), b.precision(m)) - : [ - [t, i], - [e, o] - ]; + : [[t, i], [e, o]]; }), (b.step = function(e) { return arguments.length @@ -167371,199 +167966,190 @@ object-assign (b.precision = function(d) { return arguments.length ? ((m = +d), - (c = ff(i, o, 90)), - (u = df(t, e, m)), - (l = ff(s, a, 90)), - (f = df(r, n, m)), + (c = Kf(i, o, 90)), + (u = $f(t, e, m)), + (l = Kf(s, a, 90)), + (f = $f(r, n, m)), b) : m; }), b - .extentMajor([ - [-180, -89.999999], - [180, 89.999999] - ]) - .extentMinor([ - [-180, -80.000001], - [180, 80.000001] - ]) - ); - } - function hf() { - return pf()(); - } - var gf, - mf, - bf, - yf, - vf = function(e, t) { - var n = e[0] * Lc, - r = e[1] * Lc, - o = t[0] * Lc, - i = t[1] * Lc, - a = Nc(r), - s = qc(r), - c = Nc(i), - u = qc(i), - l = a * Nc(n), - f = a * qc(n), - d = c * Nc(o), - p = c * qc(o), - h = 2 * Vc(Hc(Uc(i - r) + a * c * Uc(o - n))), - g = qc(h), + .extentMajor([[-180, -90 + iu], [180, 90 - iu]]) + .extentMinor([[-180, -80 - iu], [180, 80 + iu]]) + ); + } + function Jf() { + return Qf()(); + } + var Zf, + ed, + td, + nd, + rd = function(e, t) { + var n = e[0] * du, + r = e[1] * du, + o = t[0] * du, + i = t[1] * du, + a = mu(r), + s = wu(r), + c = mu(i), + u = wu(i), + l = a * mu(n), + f = a * wu(n), + d = c * mu(o), + p = c * wu(o), + h = 2 * Ou(Mu(Eu(i - r) + a * c * Eu(o - n))), + g = wu(h), m = h ? function(e) { - var t = qc((e *= h)) / g, - n = qc(h - e) / g, + var t = wu((e *= h)) / g, + n = wu(h - e) / g, r = n * l + t * d, o = n * f + t * p, i = n * s + t * u; - return [zc(o, r) * Cc, zc(i, Hc(r * r + o * o)) * Cc]; + return [gu(o, r) * fu, gu(i, Mu(r * r + o * o)) * fu]; } : function() { - return [n * Cc, r * Cc]; + return [n * fu, r * fu]; }; return (m.distance = h), m; }, - _f = function(e) { + od = function(e) { return e; }, - xf = wc(), - wf = wc(), - Mf = { - point: Xc, - lineStart: Xc, - lineEnd: Xc, + id = tu(), + ad = tu(), + sd = { + point: Au, + lineStart: Au, + lineEnd: Au, polygonStart: function() { - (Mf.lineStart = kf), (Mf.lineEnd = Of); + (sd.lineStart = cd), (sd.lineEnd = fd); }, polygonEnd: function() { - (Mf.lineStart = Mf.lineEnd = Mf.point = Xc), - xf.add(Pc(wf)), - wf.reset(); + (sd.lineStart = sd.lineEnd = sd.point = Au), + id.add(pu(ad)), + ad.reset(); }, result: function() { - var e = xf / 2; - return xf.reset(), e; + var e = id / 2; + return id.reset(), e; } }; - function kf() { - Mf.point = Sf; - } - function Sf(e, t) { - (Mf.point = Af), (gf = bf = e), (mf = yf = t); - } - function Af(e, t) { - wf.add(yf * e - bf * t), (bf = e), (yf = t); - } - function Of() { - Af(gf, mf); - } - var Ef, - Tf, - Cf, - Lf, - Pf = Mf, - Df = 1 / 0, - zf = Df, - Nf = -Df, - jf = Nf, - Rf = { + function cd() { + sd.point = ud; + } + function ud(e, t) { + (sd.point = ld), (Zf = td = e), (ed = nd = t); + } + function ld(e, t) { + ad.add(nd * e - td * t), (td = e), (nd = t); + } + function fd() { + ld(Zf, ed); + } + var dd, + pd, + hd, + gd, + md = sd, + bd = 1 / 0, + yd = bd, + vd = -bd, + _d = vd, + wd = { point: function(e, t) { - e < Df && (Df = e), - e > Nf && (Nf = e), - t < zf && (zf = t), - t > jf && (jf = t); - }, - lineStart: Xc, - lineEnd: Xc, - polygonStart: Xc, - polygonEnd: Xc, + e < bd && (bd = e), + e > vd && (vd = e), + t < yd && (yd = t), + t > _d && (_d = t); + }, + lineStart: Au, + lineEnd: Au, + polygonStart: Au, + polygonEnd: Au, result: function() { - var e = [ - [Df, zf], - [Nf, jf] - ]; - return (Nf = jf = -(zf = Df = 1 / 0)), e; - } - }, - If = 0, - Ff = 0, - qf = 0, - Bf = 0, - Hf = 0, - Yf = 0, - Wf = 0, - Vf = 0, - Uf = 0, - Xf = { - point: Gf, - lineStart: Kf, - lineEnd: Jf, + var e = [[bd, yd], [vd, _d]]; + return (vd = _d = -(yd = bd = 1 / 0)), e; + } + }, + xd = 0, + Md = 0, + kd = 0, + Sd = 0, + Od = 0, + Ed = 0, + Ad = 0, + Td = 0, + Cd = 0, + Ld = { + point: Pd, + lineStart: Dd, + lineEnd: Nd, polygonStart: function() { - (Xf.lineStart = Zf), (Xf.lineEnd = ed); + (Ld.lineStart = Rd), (Ld.lineEnd = Id); }, polygonEnd: function() { - (Xf.point = Gf), (Xf.lineStart = Kf), (Xf.lineEnd = Jf); + (Ld.point = Pd), (Ld.lineStart = Dd), (Ld.lineEnd = Nd); }, result: function() { - var e = Uf - ? [Wf / Uf, Vf / Uf] - : Yf - ? [Bf / Yf, Hf / Yf] - : qf - ? [If / qf, Ff / qf] + var e = Cd + ? [Ad / Cd, Td / Cd] + : Ed + ? [Sd / Ed, Od / Ed] + : kd + ? [xd / kd, Md / kd] : [NaN, NaN]; - return (If = Ff = qf = Bf = Hf = Yf = Wf = Vf = Uf = 0), e; + return (xd = Md = kd = Sd = Od = Ed = Ad = Td = Cd = 0), e; } }; - function Gf(e, t) { - (If += e), (Ff += t), ++qf; + function Pd(e, t) { + (xd += e), (Md += t), ++kd; } - function Kf() { - Xf.point = $f; + function Dd() { + Ld.point = jd; } - function $f(e, t) { - (Xf.point = Qf), Gf((Cf = e), (Lf = t)); + function jd(e, t) { + (Ld.point = zd), Pd((hd = e), (gd = t)); } - function Qf(e, t) { - var n = e - Cf, - r = t - Lf, - o = Hc(n * n + r * r); - (Bf += (o * (Cf + e)) / 2), - (Hf += (o * (Lf + t)) / 2), - (Yf += o), - Gf((Cf = e), (Lf = t)); - } - function Jf() { - Xf.point = Gf; - } - function Zf() { - Xf.point = td; - } - function ed() { - nd(Ef, Tf); - } - function td(e, t) { - (Xf.point = nd), Gf((Ef = Cf = e), (Tf = Lf = t)); - } - function nd(e, t) { - var n = e - Cf, - r = t - Lf, - o = Hc(n * n + r * r); - (Bf += (o * (Cf + e)) / 2), - (Hf += (o * (Lf + t)) / 2), - (Yf += o), - (Wf += (o = Lf * e - Cf * t) * (Cf + e)), - (Vf += o * (Lf + t)), - (Uf += 3 * o), - Gf((Cf = e), (Lf = t)); - } - var rd = Xf; - function od(e) { + function zd(e, t) { + var n = e - hd, + r = t - gd, + o = Mu(n * n + r * r); + (Sd += (o * (hd + e)) / 2), + (Od += (o * (gd + t)) / 2), + (Ed += o), + Pd((hd = e), (gd = t)); + } + function Nd() { + Ld.point = Pd; + } + function Rd() { + Ld.point = Fd; + } + function Id() { + qd(dd, pd); + } + function Fd(e, t) { + (Ld.point = qd), Pd((dd = hd = e), (pd = gd = t)); + } + function qd(e, t) { + var n = e - hd, + r = t - gd, + o = Mu(n * n + r * r); + (Sd += (o * (hd + e)) / 2), + (Od += (o * (gd + t)) / 2), + (Ed += o), + (Ad += (o = gd * e - hd * t) * (hd + e)), + (Td += o * (gd + t)), + (Cd += 3 * o), + Pd((hd = e), (gd = t)); + } + var Bd = Ld; + function Hd(e) { this._context = e; } - od.prototype = { + Hd.prototype = { _radius: 4.5, pointRadius: function(e) { return (this._radius = e), this; @@ -167591,51 +168177,51 @@ object-assign break; default: this._context.moveTo(e + this._radius, t), - this._context.arc(e, t, this._radius, 0, Tc); + this._context.arc(e, t, this._radius, 0, lu); } }, - result: Xc + result: Au }; - var id, - ad, - sd, - cd, - ud, - ld = wc(), - fd = { - point: Xc, + var Yd, + Wd, + Vd, + Ud, + Xd, + Gd = tu(), + Kd = { + point: Au, lineStart: function() { - fd.point = dd; + Kd.point = $d; }, lineEnd: function() { - id && pd(ad, sd), (fd.point = Xc); + Yd && Qd(Wd, Vd), (Kd.point = Au); }, polygonStart: function() { - id = !0; + Yd = !0; }, polygonEnd: function() { - id = null; + Yd = null; }, result: function() { - var e = +ld; - return ld.reset(), e; + var e = +Gd; + return Gd.reset(), e; } }; - function dd(e, t) { - (fd.point = pd), (ad = cd = e), (sd = ud = t); - } - function pd(e, t) { - (cd -= e), - (ud -= t), - ld.add(Hc(cd * cd + ud * ud)), - (cd = e), - (ud = t); - } - var hd = fd; - function gd() { + function $d(e, t) { + (Kd.point = Qd), (Wd = Ud = e), (Vd = Xd = t); + } + function Qd(e, t) { + (Ud -= e), + (Xd -= t), + Gd.add(Mu(Ud * Ud + Xd * Xd)), + (Ud = e), + (Xd = t); + } + var Jd = Kd; + function Zd() { this._string = []; } - function md(e) { + function ep(e) { return ( 'm0,' + e + @@ -167654,9 +168240,9 @@ object-assign 'z' ); } - gd.prototype = { + Zd.prototype = { _radius: 4.5, - _circle: md(4.5), + _circle: ep(4.5), pointRadius: function(e) { return ( (e = +e) !== this._radius && @@ -167686,7 +168272,7 @@ object-assign this._string.push('L', e, ',', t); break; default: - null == this._circle && (this._circle = md(this._radius)), + null == this._circle && (this._circle = ep(this._radius)), this._string.push('M', e, ',', t, this._circle); } }, @@ -167698,7 +168284,7 @@ object-assign return null; } }; - var bd = function(e, t) { + var tp = function(e, t) { var n, r, o = 4.5; @@ -167707,26 +168293,26 @@ object-assign e && ('function' == typeof o && r.pointRadius(+o.apply(this, arguments)), - ou(e, n(r))), + Fu(e, n(r))), r.result() ); } return ( (i.area = function(e) { - return ou(e, n(Pf)), Pf.result(); + return Fu(e, n(md)), md.result(); }), (i.measure = function(e) { - return ou(e, n(hd)), hd.result(); + return Fu(e, n(Jd)), Jd.result(); }), (i.bounds = function(e) { - return ou(e, n(Rf)), Rf.result(); + return Fu(e, n(wd)), wd.result(); }), (i.centroid = function(e) { - return ou(e, n(rd)), rd.result(); + return Fu(e, n(Bd)), Bd.result(); }), (i.projection = function(t) { return arguments.length - ? ((n = null == t ? ((e = null), _f) : (e = t).stream), + ? ((n = null == t ? ((e = null), od) : (e = t).stream), i) : e; }), @@ -167734,8 +168320,8 @@ object-assign return arguments.length ? ((r = null == e - ? ((t = null), new gd()) - : new od((t = e))), + ? ((t = null), new Zd()) + : new Hd((t = e))), 'function' != typeof o && r.pointRadius(o), i) : t; @@ -167752,30 +168338,30 @@ object-assign i.projection(e).context(t) ); }, - yd = function(e) { - return { stream: vd(e) }; + np = function(e) { + return { stream: rp(e) }; }; - function vd(e) { + function rp(e) { return function(t) { - var n = new _d(); + var n = new op(); for (var r in e) n[r] = e[r]; return (n.stream = t), n; }; } - function _d() {} - function xd(e, t, n) { + function op() {} + function ip(e, t, n) { var r = e.clipExtent && e.clipExtent(); return ( e.scale(150).translate([0, 0]), null != r && e.clipExtent(null), - ou(n, e.stream(Rf)), - t(Rf.result()), + Fu(n, e.stream(wd)), + t(wd.result()), null != r && e.clipExtent(r), e ); } - function wd(e, t, n) { - return xd( + function ap(e, t, n) { + return ip( e, function(n) { var r = t[1][0] - t[0][0], @@ -167791,11 +168377,11 @@ object-assign n ); } - function Md(e, t, n) { - return wd(e, [[0, 0], t], n); + function sp(e, t, n) { + return ap(e, [[0, 0], t], n); } - function kd(e, t, n) { - return xd( + function cp(e, t, n) { + return ip( e, function(n) { var r = +t, @@ -167807,8 +168393,8 @@ object-assign n ); } - function Sd(e, t, n) { - return xd( + function up(e, t, n) { + return ip( e, function(n) { var r = +t, @@ -167820,8 +168406,8 @@ object-assign n ); } - _d.prototype = { - constructor: _d, + op.prototype = { + constructor: op, point: function(e, t) { this.stream.point(e, t); }, @@ -167841,8 +168427,9 @@ object-assign this.stream.polygonEnd(); } }; - var Ad = Nc(30 * Lc), - Od = function(e, t) { + var lp = 16, + fp = mu(30 * du), + dp = function(e, t) { return +t ? (function(e, t) { function n(r, o, i, a, s, c, u, l, f, d, p, h, g, m) { @@ -167851,23 +168438,23 @@ object-assign v = b * b + y * y; if (v > 4 * t && g--) { var _ = a + d, - x = s + p, - w = c + h, - M = Hc(_ * _ + x * x + w * w), - k = Vc((w /= M)), + w = s + p, + x = c + h, + M = Mu(_ * _ + w * w + x * x), + k = Ou((x /= M)), S = - Pc(Pc(w) - 1) < 1e-6 || Pc(i - f) < 1e-6 + pu(pu(x) - 1) < iu || pu(i - f) < iu ? (i + f) / 2 - : zc(x, _), - A = e(S, k), - O = A[0], - E = A[1], - T = O - r, - C = E - o, + : gu(w, _), + O = e(S, k), + E = O[0], + A = O[1], + T = E - r, + C = A - o, L = y * T - b * C; ((L * L) / v > t || - Pc((b * T + y * C) / v - 0.5) > 0.3 || - a * d + s * p + c * h < Ad) && + pu((b * T + y * C) / v - 0.5) > 0.3 || + a * d + s * p + c * h < fp) && (n( r, o, @@ -167875,17 +168462,17 @@ object-assign a, s, c, - O, E, + A, S, (_ /= M), - (x /= M), - w, + (w /= M), + x, g, m ), - m.point(O, E), - n(O, E, S, _, x, w, u, l, f, d, p, h, g, m)); + m.point(E, A), + n(E, A, S, _, w, x, u, l, f, d, p, h, g, m)); } } return function(t) { @@ -167919,7 +168506,7 @@ object-assign (l = NaN), (g.point = y), t.lineStart(); } function y(r, o) { - var i = hu([r, o]), + var i = Ku([r, o]), a = e(r, o); n( l, @@ -167934,7 +168521,7 @@ object-assign (d = i[0]), (p = i[1]), (h = i[2]), - 16, + lp, t ), t.point(l, f); @@ -167943,9 +168530,9 @@ object-assign (g.point = m), t.lineEnd(); } function _() { - b(), (g.point = x), (g.lineEnd = w); + b(), (g.point = w), (g.lineEnd = x); } - function x(e, t) { + function w(e, t) { y((r = e), t), (o = l), (i = f), @@ -167954,8 +168541,8 @@ object-assign (c = h), (g.point = y); } - function w() { - n(l, f, u, d, p, h, o, i, r, a, s, c, 16, t), + function x() { + n(l, f, u, d, p, h, o, i, r, a, s, c, lp, t), (g.lineEnd = v), v(); } @@ -167963,19 +168550,19 @@ object-assign }; })(e, t) : (function(e) { - return vd({ + return rp({ point: function(t, n) { (t = e(t, n)), this.stream.point(t[0], t[1]); } }); })(e); }, - Ed = vd({ + pp = rp({ point: function(e, t) { - this.stream.point(e * Lc, t * Lc); + this.stream.point(e * du, t * du); } }); - function Td(e, t, n) { + function hp(e, t, n) { function r(r, o) { return [t + e * r, n - e * o]; } @@ -167986,9 +168573,9 @@ object-assign r ); } - function Cd(e, t, n, r) { - var o = Nc(r), - i = qc(r), + function gp(e, t, n, r) { + var o = mu(r), + i = wu(r), a = o * e, s = i * e, c = o / e, @@ -168005,12 +168592,12 @@ object-assign d ); } - function Ld(e) { - return Pd(function() { + function mp(e) { + return bp(function() { return e; })(); } - function Pd(e) { + function bp(e) { var t, n, r, @@ -168031,202 +168618,199 @@ object-assign y = 0, v = 0, _ = null, - x = Fl, - w = null, - M = _f, + w = wf, + x = null, + M = od, k = 0.5; function S(e) { - return c(e[0] * Lc, e[1] * Lc); + return c(e[0] * du, e[1] * du); } - function A(e) { - return (e = c.invert(e[0], e[1])) && [e[0] * Cc, e[1] * Cc]; + function O(e) { + return (e = c.invert(e[0], e[1])) && [e[0] * fu, e[1] * fu]; } - function O() { - var e = Cd(f, 0, 0, v).apply(null, t(h, g)), - r = (v ? Cd : Td)(f, d - e[0], p - e[1], v); + function E() { + var e = gp(f, 0, 0, v).apply(null, t(h, g)), + r = (v ? gp : hp)(f, d - e[0], p - e[1], v); return ( - (n = _l(m, b, y)), - (s = yl(t, r)), - (c = yl(n, s)), - (a = Od(s, k)), - E() + (n = tf(m, b, y)), + (s = Zl(t, r)), + (c = Zl(n, s)), + (a = dp(s, k)), + A() ); } - function E() { + function A() { return (u = l = null), S; } return ( (S.stream = function(e) { return u && l === e ? u - : (u = Ed( + : (u = pp( (function(e) { - return vd({ + return rp({ point: function(t, n) { var r = e(t, n); return this.stream.point(r[0], r[1]); } }); - })(n)(x(a(M((l = e))))) + })(n)(w(a(M((l = e))))) )); }), (S.preclip = function(e) { - return arguments.length ? ((x = e), (_ = void 0), E()) : x; + return arguments.length ? ((w = e), (_ = void 0), A()) : w; }), (S.postclip = function(e) { return arguments.length - ? ((M = e), (w = r = o = i = null), E()) + ? ((M = e), (x = r = o = i = null), A()) : M; }), (S.clipAngle = function(e) { return arguments.length - ? ((x = +e ? ql((_ = e * Lc)) : ((_ = null), Fl)), E()) - : _ * Cc; + ? ((w = +e ? xf((_ = e * du)) : ((_ = null), wf)), A()) + : _ * fu; }), (S.clipExtent = function(e) { return arguments.length ? ((M = null == e - ? ((w = r = o = i = null), _f) - : Bl( - (w = +e[0][0]), + ? ((x = r = o = i = null), od) + : Of( + (x = +e[0][0]), (r = +e[0][1]), (o = +e[1][0]), (i = +e[1][1]) )), - E()) - : null == w + A()) + : null == x ? null - : [ - [w, r], - [o, i] - ]; + : [[x, r], [o, i]]; }), (S.scale = function(e) { - return arguments.length ? ((f = +e), O()) : f; + return arguments.length ? ((f = +e), E()) : f; }), (S.translate = function(e) { return arguments.length - ? ((d = +e[0]), (p = +e[1]), O()) + ? ((d = +e[0]), (p = +e[1]), E()) : [d, p]; }), (S.center = function(e) { return arguments.length - ? ((h = (e[0] % 360) * Lc), (g = (e[1] % 360) * Lc), O()) - : [h * Cc, g * Cc]; + ? ((h = (e[0] % 360) * du), (g = (e[1] % 360) * du), E()) + : [h * fu, g * fu]; }), (S.rotate = function(e) { return arguments.length - ? ((m = (e[0] % 360) * Lc), - (b = (e[1] % 360) * Lc), - (y = e.length > 2 ? (e[2] % 360) * Lc : 0), - O()) - : [m * Cc, b * Cc, y * Cc]; + ? ((m = (e[0] % 360) * du), + (b = (e[1] % 360) * du), + (y = e.length > 2 ? (e[2] % 360) * du : 0), + E()) + : [m * fu, b * fu, y * fu]; }), (S.angle = function(e) { return arguments.length - ? ((v = (e % 360) * Lc), O()) - : v * Cc; + ? ((v = (e % 360) * du), E()) + : v * fu; }), (S.precision = function(e) { return arguments.length - ? ((a = Od(s, (k = e * e))), E()) - : Hc(k); + ? ((a = dp(s, (k = e * e))), A()) + : Mu(k); }), (S.fitExtent = function(e, t) { - return wd(S, e, t); + return ap(S, e, t); }), (S.fitSize = function(e, t) { - return Md(S, e, t); + return sp(S, e, t); }), (S.fitWidth = function(e, t) { - return kd(S, e, t); + return cp(S, e, t); }), (S.fitHeight = function(e, t) { - return Sd(S, e, t); + return up(S, e, t); }), function() { return ( (t = e.apply(this, arguments)), - (S.invert = t.invert && A), - O() + (S.invert = t.invert && O), + E() ); } ); } - function Dd(e) { + function yp(e) { var t = 0, - n = Ac / 3, - r = Pd(e), + n = su / 3, + r = bp(e), o = r(t, n); return ( (o.parallels = function(e) { return arguments.length - ? r((t = e[0] * Lc), (n = e[1] * Lc)) - : [t * Cc, n * Cc]; + ? r((t = e[0] * du), (n = e[1] * du)) + : [t * fu, n * fu]; }), o ); } - function zd(e, t) { - var n = qc(e), - r = (n + qc(t)) / 2; - if (Pc(r) < 1e-6) + function vp(e, t) { + var n = wu(e), + r = (n + wu(t)) / 2; + if (pu(r) < iu) return (function(e) { - var t = Nc(e); + var t = mu(e); function n(e, n) { - return [e * t, qc(n) / t]; + return [e * t, wu(n) / t]; } return ( (n.invert = function(e, n) { - return [e / t, Vc(n * t)]; + return [e / t, Ou(n * t)]; }), n ); })(e); var o = 1 + n * (2 * r - n), - i = Hc(o) / r; + i = Mu(o) / r; function a(e, t) { - var n = Hc(o - 2 * r * qc(t)) / r; - return [n * qc((e *= r)), i - n * Nc(e)]; + var n = Mu(o - 2 * r * wu(t)) / r; + return [n * wu((e *= r)), i - n * mu(e)]; } return ( (a.invert = function(e, t) { var n = i - t; return [ - (zc(e, Pc(n)) / r) * Bc(n), - Vc((o - (e * e + n * n) * r * r) / (2 * r)) + (gu(e, pu(n)) / r) * xu(n), + Ou((o - (e * e + n * n) * r * r) / (2 * r)) ]; }), a ); } - var Nd = function() { - return Dd(zd) + var _p = function() { + return yp(vp) .scale(155.424) .center([0, 33.6442]); }, - jd = function() { - return Nd() + wp = function() { + return _p() .parallels([29.5, 45.5]) .scale(1070) .translate([480, 250]) .rotate([96, 0]) .center([-0.6, 38.7]); }, - Rd = function() { + xp = function() { var e, t, n, r, o, i, - a = jd(), - s = Nd() + a = wp(), + s = _p() .rotate([154, 0]) .center([-2, 58.5]) .parallels([55, 65]), - c = Nd() + c = _p() .rotate([157, 0]) .center([-3, 19.9]) .parallels([8, 18]), @@ -168319,111 +168903,102 @@ object-assign (r = s .translate([i - 0.307 * t, l + 0.201 * t]) .clipExtent([ - [i - 0.425 * t + 1e-6, l + 0.12 * t + 1e-6], - [i - 0.214 * t - 1e-6, l + 0.234 * t - 1e-6] + [i - 0.425 * t + iu, l + 0.12 * t + iu], + [i - 0.214 * t - iu, l + 0.234 * t - iu] ]) .stream(u)), (o = c .translate([i - 0.205 * t, l + 0.212 * t]) .clipExtent([ - [i - 0.214 * t + 1e-6, l + 0.166 * t + 1e-6], - [i - 0.115 * t - 1e-6, l + 0.234 * t - 1e-6] + [i - 0.214 * t + iu, l + 0.166 * t + iu], + [i - 0.115 * t - iu, l + 0.234 * t - iu] ]) .stream(u)), f() ); }), (l.fitExtent = function(e, t) { - return wd(l, e, t); + return ap(l, e, t); }), (l.fitSize = function(e, t) { - return Md(l, e, t); + return sp(l, e, t); }), (l.fitWidth = function(e, t) { - return kd(l, e, t); + return cp(l, e, t); }), (l.fitHeight = function(e, t) { - return Sd(l, e, t); + return up(l, e, t); }), l.scale(1070) ); }; - function Id(e) { + function Mp(e) { return function(t, n) { - var r = Nc(t), - o = Nc(n), + var r = mu(t), + o = mu(n), i = e(r * o); - return [i * o * qc(t), i * qc(n)]; + return [i * o * wu(t), i * wu(n)]; }; } - function Fd(e) { + function kp(e) { return function(t, n) { - var r = Hc(t * t + n * n), + var r = Mu(t * t + n * n), o = e(r), - i = qc(o), - a = Nc(o); - return [zc(t * i, r * a), Vc(r && (n * i) / r)]; + i = wu(o), + a = mu(o); + return [gu(t * i, r * a), Ou(r && (n * i) / r)]; }; } - var qd = Id(function(e) { - return Hc(2 / (1 + e)); + var Sp = Mp(function(e) { + return Mu(2 / (1 + e)); }); - qd.invert = Fd(function(e) { - return 2 * Vc(e / 2); + Sp.invert = kp(function(e) { + return 2 * Ou(e / 2); }); - var Bd = function() { - return Ld(qd) + var Op = function() { + return mp(Sp) .scale(124.75) .clipAngle(179.999); }, - Hd = Id(function(e) { - return (e = Wc(e)) && e / qc(e); + Ep = Mp(function(e) { + return (e = Su(e)) && e / wu(e); }); - Hd.invert = Fd(function(e) { + Ep.invert = kp(function(e) { return e; }); - var Yd = function() { - return Ld(Hd) + var Ap = function() { + return mp(Ep) .scale(79.4188) .clipAngle(179.999); }; - function Wd(e, t) { - return [e, Ic(Yc((Oc + t) / 2))]; + function Tp(e, t) { + return [e, vu(ku((cu + t) / 2))]; } - Wd.invert = function(e, t) { - return [e, 2 * Dc(Rc(t)) - Oc]; + Tp.invert = function(e, t) { + return [e, 2 * hu(yu(t)) - cu]; }; - var Vd = function() { - return Ud(Wd).scale(961 / Tc); + var Cp = function() { + return Lp(Tp).scale(961 / lu); }; - function Ud(e) { + function Lp(e) { var t, n, r, - o = Ld(e), + o = mp(e), i = o.center, a = o.scale, s = o.translate, c = o.clipExtent, u = null; function l() { - var i = Ac * a(), - s = o(kl(o.rotate()).invert([0, 0])); + var i = su * a(), + s = o(af(o.rotate()).invert([0, 0])); return c( null == u - ? [ - [s[0] - i, s[1] - i], - [s[0] + i, s[1] + i] - ] - : e === Wd - ? [ - [Math.max(s[0] - i, u), t], - [Math.min(s[0] + i, n), r] - ] - : [ - [u, Math.max(s[1] - i, t)], - [n, Math.min(s[1] + i, r)] - ] + ? [[s[0] - i, s[1] - i], [s[0] + i, s[1] + i]] + : e === Tp + ? [[Math.max(s[0] - i, u), t], [Math.min(s[0] + i, n), r]] + : [[u, Math.max(s[1] - i, t)], [n, Math.min(s[1] + i, r)]] ); } return ( @@ -168447,138 +169022,135 @@ object-assign l()) : null == u ? null - : [ - [u, t], - [n, r] - ]; + : [[u, t], [n, r]]; }), l() ); } - function Xd(e) { - return Yc((Oc + e) / 2); + function Pp(e) { + return ku((cu + e) / 2); } - function Gd(e, t) { - var n = Nc(e), - r = e === t ? qc(e) : Ic(n / Nc(t)) / Ic(Xd(t) / Xd(e)), - o = (n * Fc(Xd(e), r)) / r; - if (!r) return Wd; + function Dp(e, t) { + var n = mu(e), + r = e === t ? wu(e) : vu(n / mu(t)) / vu(Pp(t) / Pp(e)), + o = (n * _u(Pp(e), r)) / r; + if (!r) return Tp; function i(e, t) { o > 0 - ? t < 1e-6 - Oc && (t = 1e-6 - Oc) - : t > Oc - 1e-6 && (t = Oc - 1e-6); - var n = o / Fc(Xd(t), r); - return [n * qc(r * e), o - n * Nc(r * e)]; + ? t < -cu + iu && (t = -cu + iu) + : t > cu - iu && (t = cu - iu); + var n = o / _u(Pp(t), r); + return [n * wu(r * e), o - n * mu(r * e)]; } return ( (i.invert = function(e, t) { var n = o - t, - i = Bc(r) * Hc(e * e + n * n); + i = xu(r) * Mu(e * e + n * n); return [ - (zc(e, Pc(n)) / r) * Bc(n), - 2 * Dc(Fc(o / i, 1 / r)) - Oc + (gu(e, pu(n)) / r) * xu(n), + 2 * hu(_u(o / i, 1 / r)) - cu ]; }), i ); } - var Kd = function() { - return Dd(Gd) + var jp = function() { + return yp(Dp) .scale(109.5) .parallels([30, 30]); }; - function $d(e, t) { + function zp(e, t) { return [e, t]; } - $d.invert = $d; - var Qd = function() { - return Ld($d).scale(152.63); + zp.invert = zp; + var Np = function() { + return mp(zp).scale(152.63); }; - function Jd(e, t) { - var n = Nc(e), - r = e === t ? qc(e) : (n - Nc(t)) / (t - e), + function Rp(e, t) { + var n = mu(e), + r = e === t ? wu(e) : (n - mu(t)) / (t - e), o = n / r + e; - if (Pc(r) < 1e-6) return $d; + if (pu(r) < iu) return zp; function i(e, t) { var n = o - t, i = r * e; - return [n * qc(i), o - n * Nc(i)]; + return [n * wu(i), o - n * mu(i)]; } return ( (i.invert = function(e, t) { var n = o - t; return [ - (zc(e, Pc(n)) / r) * Bc(n), - o - Bc(r) * Hc(e * e + n * n) + (gu(e, pu(n)) / r) * xu(n), + o - xu(r) * Mu(e * e + n * n) ]; }), i ); } - var Zd = function() { - return Dd(Jd) + var Ip = function() { + return yp(Rp) .scale(131.154) .center([0, 13.9389]); }, - ep = 1.340264, - tp = -0.081106, - np = 893e-6, - rp = 0.003796, - op = Hc(3) / 2; - function ip(e, t) { - var n = Vc(op * qc(t)), + Fp = 1.340264, + qp = -0.081106, + Bp = 893e-6, + Hp = 0.003796, + Yp = Mu(3) / 2; + function Wp(e, t) { + var n = Ou(Yp * wu(t)), r = n * n, o = r * r * r; return [ - (e * Nc(n)) / - (op * (ep + 3 * tp * r + o * (7 * np + 9 * rp * r))), - n * (ep + tp * r + o * (np + rp * r)) + (e * mu(n)) / + (Yp * (Fp + 3 * qp * r + o * (7 * Bp + 9 * Hp * r))), + n * (Fp + qp * r + o * (Bp + Hp * r)) ]; } - ip.invert = function(e, t) { + Wp.invert = function(e, t) { for ( var n, r = t, o = r * r, i = o * o * o, a = 0; a < 12 && ((i = (o = (r -= n = - (r * (ep + tp * o + i * (np + rp * o)) - t) / - (ep + 3 * tp * o + i * (7 * np + 9 * rp * o))) * r) * + (r * (Fp + qp * o + i * (Bp + Hp * o)) - t) / + (Fp + 3 * qp * o + i * (7 * Bp + 9 * Hp * o))) * r) * o * o), - !(Pc(n) < 1e-12)); + !(pu(n) < au)); ++a ); return [ - (op * e * (ep + 3 * tp * o + i * (7 * np + 9 * rp * o))) / - Nc(r), - Vc(qc(r) / op) + (Yp * e * (Fp + 3 * qp * o + i * (7 * Bp + 9 * Hp * o))) / + mu(r), + Ou(wu(r) / Yp) ]; }; - var ap = function() { - return Ld(ip).scale(177.158); + var Vp = function() { + return mp(Wp).scale(177.158); }; - function sp(e, t) { - var n = Nc(t), - r = Nc(e) * n; - return [(n * qc(e)) / r, qc(t) / r]; - } - sp.invert = Fd(Dc); - var cp = function() { - return Ld(sp) + function Up(e, t) { + var n = mu(t), + r = mu(e) * n; + return [(n * wu(e)) / r, wu(t) / r]; + } + Up.invert = kp(hu); + var Xp = function() { + return mp(Up) .scale(144.049) .clipAngle(60); }; - function up(e, t, n, r) { + function Gp(e, t, n, r) { return 1 === e && 1 === t && 0 === n && 0 === r - ? _f - : vd({ + ? od + : rp({ point: function(o, i) { this.stream.point(o * e + n, i * t + r); } }); } - var lp = function() { + var Kp = function() { var e, t, n, @@ -168590,9 +169162,9 @@ object-assign c = 0, u = 1, l = 1, - f = _f, + f = od, d = null, - p = _f; + p = od; function h() { return (r = o = null), i; } @@ -168609,8 +169181,8 @@ object-assign return arguments.length ? ((p = null == r - ? ((d = e = t = n = null), _f) - : Bl( + ? ((d = e = t = n = null), od) + : Of( (d = +r[0][0]), (e = +r[0][1]), (t = +r[1][0]), @@ -168619,46 +169191,43 @@ object-assign h()) : null == d ? null - : [ - [d, e], - [t, n] - ]; + : [[d, e], [t, n]]; }, scale: function(e) { return arguments.length - ? ((f = up((a = +e) * u, a * l, s, c)), h()) + ? ((f = Gp((a = +e) * u, a * l, s, c)), h()) : a; }, translate: function(e) { return arguments.length - ? ((f = up(a * u, a * l, (s = +e[0]), (c = +e[1]))), h()) + ? ((f = Gp(a * u, a * l, (s = +e[0]), (c = +e[1]))), h()) : [s, c]; }, reflectX: function(e) { return arguments.length - ? ((f = up(a * (u = e ? -1 : 1), a * l, s, c)), h()) + ? ((f = Gp(a * (u = e ? -1 : 1), a * l, s, c)), h()) : u < 0; }, reflectY: function(e) { return arguments.length - ? ((f = up(a * u, a * (l = e ? -1 : 1), s, c)), h()) + ? ((f = Gp(a * u, a * (l = e ? -1 : 1), s, c)), h()) : l < 0; }, fitExtent: function(e, t) { - return wd(i, e, t); + return ap(i, e, t); }, fitSize: function(e, t) { - return Md(i, e, t); + return sp(i, e, t); }, fitWidth: function(e, t) { - return kd(i, e, t); + return cp(i, e, t); }, fitHeight: function(e, t) { - return Sd(i, e, t); + return up(i, e, t); } }); }; - function fp(e, t) { + function $p(e, t) { var n = t * t, r = n * n; return [ @@ -168673,7 +169242,7 @@ object-assign r * (0.028874 * n - 0.044475 - 0.005916 * r))) ]; } - fp.invert = function(e, t) { + $p.invert = function(e, t) { var n, r = t, o = 25; @@ -168691,7 +169260,7 @@ object-assign i * (0.045255 + a * (0.259866 * i - 0.311325 - 0.005916 * 11 * a))); - } while (Pc(n) > 1e-6 && --o > 0); + } while (pu(n) > iu && --o > 0); return [ e / (0.8707 + @@ -168702,39 +169271,39 @@ object-assign r ]; }; - var dp = function() { - return Ld(fp).scale(175.295); + var Qp = function() { + return mp($p).scale(175.295); }; - function pp(e, t) { - return [Nc(t) * qc(e), qc(t)]; + function Jp(e, t) { + return [mu(t) * wu(e), wu(t)]; } - pp.invert = Fd(Vc); - var hp = function() { - return Ld(pp) + Jp.invert = kp(Ou); + var Zp = function() { + return mp(Jp) .scale(249.5) - .clipAngle(90.000001); + .clipAngle(90 + iu); }; - function gp(e, t) { - var n = Nc(t), - r = 1 + Nc(e) * n; - return [(n * qc(e)) / r, qc(t) / r]; + function eh(e, t) { + var n = mu(t), + r = 1 + mu(e) * n; + return [(n * wu(e)) / r, wu(t) / r]; } - gp.invert = Fd(function(e) { - return 2 * Dc(e); + eh.invert = kp(function(e) { + return 2 * hu(e); }); - var mp = function() { - return Ld(gp) + var th = function() { + return mp(eh) .scale(250) .clipAngle(142); }; - function bp(e, t) { - return [Ic(Yc((Oc + t) / 2)), -e]; + function nh(e, t) { + return [vu(ku((cu + t) / 2)), -e]; } - bp.invert = function(e, t) { - return [-t, 2 * Dc(Rc(e)) - Oc]; + nh.invert = function(e, t) { + return [-t, 2 * hu(yu(e)) - cu]; }; - var yp = function() { - var e = Ud(bp), + var rh = function() { + var e = Lp(nh), t = e.center, n = e.rotate; return ( @@ -168751,17 +169320,17 @@ object-assign n([0, 0, 90]).scale(159.155) ); }; - function vp(e, t) { + function oh(e, t) { return e.parent === t.parent ? 1 : 2; } - function _p(e, t) { + function ih(e, t) { return e + t.x; } - function xp(e, t) { + function ah(e, t) { return Math.max(e, t.y); } - var wp = function() { - var e = vp, + var sh = function() { + var e = oh, t = 1, n = 1, r = !1; @@ -168772,10 +169341,10 @@ object-assign var n = t.children; n ? ((t.x = (function(e) { - return e.reduce(_p, 0) / e.length; + return e.reduce(ih, 0) / e.length; })(n)), (t.y = (function(e) { - return 1 + e.reduce(xp, 0); + return 1 + e.reduce(ah, 0); })(n))) : ((t.x = i ? (a += e(t, i)) : 0), (t.y = 0), (i = t)); }); @@ -168821,7 +169390,7 @@ object-assign o ); }; - function Mp(e) { + function ch(e) { var t = 0, n = e.children, r = n && n.length; @@ -168829,47 +169398,47 @@ object-assign else t = 1; e.value = t; } - function kp(e, t) { + function uh(e, t) { var n, r, o, i, a, - s = new Ep(e), + s = new ph(e), c = +e.value && (s.value = e.value), u = [s]; - for (null == t && (t = Sp); (n = u.pop()); ) + for (null == t && (t = lh); (n = u.pop()); ) if ( (c && (n.value = +n.data.value), (o = t(n.data)) && (a = o.length)) ) for (n.children = new Array(a), i = a - 1; i >= 0; --i) - u.push((r = n.children[i] = new Ep(o[i]))), + u.push((r = n.children[i] = new ph(o[i]))), (r.parent = n), (r.depth = n.depth + 1); - return s.eachBefore(Op); + return s.eachBefore(dh); } - function Sp(e) { + function lh(e) { return e.children; } - function Ap(e) { + function fh(e) { e.data = e.data.data; } - function Op(e) { + function dh(e) { var t = 0; do { e.height = t; } while ((e = e.parent) && e.height < ++t); } - function Ep(e) { + function ph(e) { (this.data = e), (this.depth = this.height = 0), (this.parent = null); } - Ep.prototype = kp.prototype = { - constructor: Ep, + ph.prototype = uh.prototype = { + constructor: ph, count: function() { - return this.eachAfter(Mp); + return this.eachAfter(ch); }, each: function(e) { var t, @@ -168970,11 +169539,11 @@ object-assign ); }, copy: function() { - return kp(this).eachBefore(Ap); + return uh(this).eachBefore(fh); } }; - var Tp = Array.prototype.slice, - Cp = function(e) { + var hh = Array.prototype.slice, + gh = function(e) { for ( var t, n, @@ -168986,59 +169555,59 @@ object-assign (e[r] = e[n]), (e[n] = t); return e; - })(Tp.call(e))).length, + })(hh.call(e))).length, i = []; r < o; ) (t = e[r]), - n && Dp(n, t) ? ++r : ((n = Np((i = Lp(i, t)))), (r = 0)); + n && yh(n, t) ? ++r : ((n = _h((i = mh(i, t)))), (r = 0)); return n; }; - function Lp(e, t) { + function mh(e, t) { var n, r; - if (zp(t, e)) return [t]; + if (vh(t, e)) return [t]; for (n = 0; n < e.length; ++n) - if (Pp(t, e[n]) && zp(jp(e[n], t), e)) return [e[n], t]; + if (bh(t, e[n]) && vh(wh(e[n], t), e)) return [e[n], t]; for (n = 0; n < e.length - 1; ++n) for (r = n + 1; r < e.length; ++r) if ( - Pp(jp(e[n], e[r]), t) && - Pp(jp(e[n], t), e[r]) && - Pp(jp(e[r], t), e[n]) && - zp(Rp(e[n], e[r], t), e) + bh(wh(e[n], e[r]), t) && + bh(wh(e[n], t), e[r]) && + bh(wh(e[r], t), e[n]) && + vh(xh(e[n], e[r], t), e) ) return [e[n], e[r], t]; throw new Error(); } - function Pp(e, t) { + function bh(e, t) { var n = e.r - t.r, r = t.x - e.x, o = t.y - e.y; return n < 0 || n * n < r * r + o * o; } - function Dp(e, t) { + function yh(e, t) { var n = e.r - t.r + 1e-6, r = t.x - e.x, o = t.y - e.y; return n > 0 && n * n > r * r + o * o; } - function zp(e, t) { - for (var n = 0; n < t.length; ++n) if (!Dp(e, t[n])) return !1; + function vh(e, t) { + for (var n = 0; n < t.length; ++n) if (!yh(e, t[n])) return !1; return !0; } - function Np(e) { + function _h(e) { switch (e.length) { case 1: return { x: (t = e[0]).x, y: t.y, r: t.r }; case 2: - return jp(e[0], e[1]); + return wh(e[0], e[1]); case 3: - return Rp(e[0], e[1], e[2]); + return xh(e[0], e[1], e[2]); } var t; } - function jp(e, t) { + function wh(e, t) { var n = e.x, r = e.y, o = e.r, @@ -169055,7 +169624,7 @@ object-assign r: (f + o + s) / 2 }; } - function Rp(e, t, n) { + function xh(e, t, n) { var r = e.x, o = e.y, i = e.r, @@ -169074,20 +169643,20 @@ object-assign y = r * r + o * o - i * i, v = y - a * a - s * s + c * c, _ = y - u * u - l * l + f * f, - x = p * h - d * g, - w = (h * _ - g * v) / (2 * x) - r, - M = (g * m - h * b) / x, - k = (p * v - d * _) / (2 * x) - o, - S = (d * b - p * m) / x, - A = M * M + S * S - 1, - O = 2 * (i + w * M + k * S), - E = w * w + k * k - i * i, - T = -(A - ? (O + Math.sqrt(O * O - 4 * A * E)) / (2 * A) - : E / O); - return { x: r + w + M * T, y: o + k + S * T, r: T }; - } - function Ip(e, t, n) { + w = p * h - d * g, + x = (h * _ - g * v) / (2 * w) - r, + M = (g * m - h * b) / w, + k = (p * v - d * _) / (2 * w) - o, + S = (d * b - p * m) / w, + O = M * M + S * S - 1, + E = 2 * (i + x * M + k * S), + A = x * x + k * k - i * i, + T = -(O + ? (E + Math.sqrt(E * E - 4 * O * A)) / (2 * O) + : A / E); + return { x: r + x + M * T, y: o + k + S * T, r: T }; + } + function Mh(e, t, n) { var r, o, i, @@ -169110,13 +169679,13 @@ object-assign (n.y = t.y + r * c + i * s))) : ((n.x = t.x + n.r), (n.y = t.y)); } - function Fp(e, t) { + function kh(e, t) { var n = e.r + t.r - 1e-6, r = t.x - e.x, o = t.y - e.y; return n > 0 && n * n > r * r + o * o; } - function qp(e) { + function Sh(e) { var t = e._, n = e.next._, r = t.r + n.r, @@ -169124,10 +169693,10 @@ object-assign i = (t.y * n.r + n.y * t.r) / r; return o * o + i * i; } - function Bp(e) { + function Oh(e) { (this._ = e), (this.next = null), (this.previous = null); } - function Hp(e) { + function Eh(e) { if (!(o = e.length)) return 0; var t, n, r, o, i, a, s, c, u, l, f; if ((((t = e[0]).x = 0), (t.y = 0), !(o > 1))) return t.r; @@ -169135,29 +169704,29 @@ object-assign ((n = e[1]), (t.x = -n.r), (n.x = t.r), (n.y = 0), !(o > 2)) ) return t.r + n.r; - Ip(n, t, (r = e[2])), - (t = new Bp(t)), - (n = new Bp(n)), - (r = new Bp(r)), + Mh(n, t, (r = e[2])), + (t = new Oh(t)), + (n = new Oh(n)), + (r = new Oh(r)), (t.next = r.previous = n), (n.next = t.previous = r), (r.next = n.previous = t); e: for (s = 3; s < o; ++s) { - Ip(t._, n._, (r = e[s])), - (r = new Bp(r)), + Mh(t._, n._, (r = e[s])), + (r = new Oh(r)), (c = n.next), (u = t.previous), (l = n._.r), (f = t._.r); do { if (l <= f) { - if (Fp(c._, r._)) { + if (kh(c._, r._)) { (n = c), (t.next = n), (n.previous = t), --s; continue e; } (l += c._.r), (c = c.next); } else { - if (Fp(u._, r._)) { + if (kh(u._, r._)) { ((t = u).next = n), (n.previous = t), --s; continue e; } @@ -169168,64 +169737,64 @@ object-assign r.previous = t, r.next = n, t.next = n.previous = n = r, - i = qp(t); + i = Sh(t); (r = r.next) !== n; ) - (a = qp(r)) < i && ((t = r), (i = a)); + (a = Sh(r)) < i && ((t = r), (i = a)); n = t.next; } for (t = [n._], r = n; (r = r.next) !== n; ) t.push(r._); - for (r = Cp(t), s = 0; s < o; ++s) + for (r = gh(t), s = 0; s < o; ++s) ((t = e[s]).x -= r.x), (t.y -= r.y); return r.r; } - var Yp = function(e) { - return Hp(e), e; + var Ah = function(e) { + return Eh(e), e; }; - function Wp(e) { - return null == e ? null : Vp(e); + function Th(e) { + return null == e ? null : Ch(e); } - function Vp(e) { + function Ch(e) { if ('function' != typeof e) throw new Error(); return e; } - function Up() { + function Lh() { return 0; } - var Xp = function(e) { + var Ph = function(e) { return function() { return e; }; }; - function Gp(e) { + function Dh(e) { return Math.sqrt(e.value); } - var Kp = function() { + var jh = function() { var e = null, t = 1, n = 1, - r = Up; + r = Lh; function o(o) { return ( (o.x = t / 2), (o.y = n / 2), e ? o - .eachBefore($p(e)) - .eachAfter(Qp(r, 0.5)) - .eachBefore(Jp(1)) + .eachBefore(zh(e)) + .eachAfter(Nh(r, 0.5)) + .eachBefore(Rh(1)) : o - .eachBefore($p(Gp)) - .eachAfter(Qp(Up, 1)) - .eachAfter(Qp(r, o.r / Math.min(t, n))) - .eachBefore(Jp(Math.min(t, n) / (2 * o.r))), + .eachBefore(zh(Dh)) + .eachAfter(Nh(Lh, 1)) + .eachAfter(Nh(r, o.r / Math.min(t, n))) + .eachBefore(Rh(Math.min(t, n) / (2 * o.r))), o ); } return ( (o.radius = function(t) { - return arguments.length ? ((e = Wp(t)), o) : e; + return arguments.length ? ((e = Th(t)), o) : e; }), (o.size = function(e) { return arguments.length @@ -169234,18 +169803,18 @@ object-assign }), (o.padding = function(e) { return arguments.length - ? ((r = 'function' == typeof e ? e : Xp(+e)), o) + ? ((r = 'function' == typeof e ? e : Ph(+e)), o) : r; }), o ); }; - function $p(e) { + function zh(e) { return function(t) { t.children || (t.r = Math.max(0, +e(t) || 0)); }; } - function Qp(e, t) { + function Nh(e, t) { return function(n) { if ((r = n.children)) { var r, @@ -169254,25 +169823,25 @@ object-assign a = r.length, s = e(n) * t || 0; if (s) for (o = 0; o < a; ++o) r[o].r += s; - if (((i = Hp(r)), s)) for (o = 0; o < a; ++o) r[o].r -= s; + if (((i = Eh(r)), s)) for (o = 0; o < a; ++o) r[o].r -= s; n.r = i + s; } }; } - function Jp(e) { + function Rh(e) { return function(t) { var n = t.parent; (t.r *= e), n && ((t.x = n.x + e * t.x), (t.y = n.y + e * t.y)); }; } - var Zp = function(e) { + var Ih = function(e) { (e.x0 = Math.round(e.x0)), (e.y0 = Math.round(e.y0)), (e.x1 = Math.round(e.x1)), (e.y1 = Math.round(e.y1)); }, - eh = function(e, t, n, r, o) { + Fh = function(e, t, n, r, o) { for ( var i, a = e.children, @@ -169287,7 +169856,7 @@ object-assign (i.x0 = t), (i.x1 = t += i.value * u); }, - th = function() { + qh = function() { var e = 1, t = 1, n = 0, @@ -169302,7 +169871,7 @@ object-assign (function(e, t) { return function(r) { r.children && - eh( + Fh( r, r.x0, (e * (r.depth + 1)) / t, @@ -169322,7 +169891,7 @@ object-assign }; })(t, i) ), - r && o.eachBefore(Zp), + r && o.eachBefore(Ih), o ); } @@ -169341,17 +169910,18 @@ object-assign o ); }, - nh = { depth: -1 }, - rh = {}; - function oh(e) { + Bh = '$', + Hh = { depth: -1 }, + Yh = {}; + function Wh(e) { return e.id; } - function ih(e) { + function Vh(e) { return e.parentId; } - var ah = function() { - var e = oh, - t = ih; + var Uh = function() { + var e = Wh, + t = Vh; function n(n) { var r, o, @@ -169365,16 +169935,16 @@ object-assign d = {}; for (o = 0; o < l; ++o) (r = n[o]), - (s = f[o] = new Ep(r)), + (s = f[o] = new ph(r)), null != (c = e(r, o, n)) && (c += '') && - (d[(u = '$' + (s.id = c))] = u in d ? rh : s); + (d[(u = Bh + (s.id = c))] = u in d ? Yh : s); for (o = 0; o < l; ++o) if ( ((s = f[o]), null != (c = t(n[o], o, n)) && (c += '')) ) { - if (!(a = d['$' + c])) throw new Error('missing: ' + c); - if (a === rh) throw new Error('ambiguous: ' + c); + if (!(a = d[Bh + c])) throw new Error('missing: ' + c); + if (a === Yh) throw new Error('ambiguous: ' + c); a.children ? a.children.push(s) : (a.children = [s]), (s.parent = a); } else { @@ -169383,12 +169953,12 @@ object-assign } if (!i) throw new Error('no root'); if ( - ((i.parent = nh), + ((i.parent = Hh), i .eachBefore(function(e) { (e.depth = e.parent.depth + 1), --l; }) - .eachBefore(Op), + .eachBefore(dh), (i.parent = null), l > 0) ) @@ -169397,33 +169967,33 @@ object-assign } return ( (n.id = function(t) { - return arguments.length ? ((e = Vp(t)), n) : e; + return arguments.length ? ((e = Ch(t)), n) : e; }), (n.parentId = function(e) { - return arguments.length ? ((t = Vp(e)), n) : t; + return arguments.length ? ((t = Ch(e)), n) : t; }), n ); }; - function sh(e, t) { + function Xh(e, t) { return e.parent === t.parent ? 1 : 2; } - function ch(e) { + function Gh(e) { var t = e.children; return t ? t[0] : e.t; } - function uh(e) { + function Kh(e) { var t = e.children; return t ? t[t.length - 1] : e.t; } - function lh(e, t, n) { + function $h(e, t, n) { var r = n / (t.i - e.i); (t.c -= r), (t.s += n), (e.c += r), (t.z += n), (t.m += n); } - function fh(e, t, n) { + function Qh(e, t, n) { return e.a.parent === t.parent ? e.a : n; } - function dh(e, t) { + function Jh(e, t) { (this._ = e), (this.parent = null), (this.children = null), @@ -169436,16 +170006,16 @@ object-assign (this.t = null), (this.i = t); } - dh.prototype = Object.create(Ep.prototype); - var ph = function() { - var e = sh, + Jh.prototype = Object.create(ph.prototype); + var Zh = function() { + var e = Xh, t = 1, n = 1, r = null; function o(o) { var c = (function(e) { for ( - var t, n, r, o, i, a = new dh(e, 0), s = [a]; + var t, n, r, o, i, a = new Jh(e, 0), s = [a]; (t = s.pop()); ) @@ -169455,9 +170025,9 @@ object-assign o >= 0; --o ) - s.push((n = t.children[o] = new dh(r[o], o))), + s.push((n = t.children[o] = new Jh(r[o], o))), (n.parent = t); - return ((a.parent = new dh(null, 0)).children = [a]), a; + return ((a.parent = new Jh(null, 0)).children = [a]), a; })(o); if ( (c.eachAfter(i), (c.parent.m = -c.z), c.eachBefore(a), r) @@ -169514,19 +170084,19 @@ object-assign l = a.m, f = s.m, d = c.m; - (s = uh(s)), (i = ch(i)), s && i; + (s = Kh(s)), (i = Gh(i)), s && i; ) - (c = ch(c)), - ((a = uh(a)).a = t), + (c = Gh(c)), + ((a = Kh(a)).a = t), (o = s.z + f - i.z - u + e(s._, i._)) > 0 && - (lh(fh(s, t, r), t, o), (u += o), (l += o)), + ($h(Qh(s, t, r), t, o), (u += o), (l += o)), (f += s.m), (u += i.m), (d += c.m), (l += a.m); - s && !uh(a) && ((a.t = s), (a.m += f - l)), - i && !ch(c) && ((c.t = i), (c.m += u - d), (r = t)); + s && !Kh(a) && ((a.t = s), (a.m += f - l)), + i && !Gh(c) && ((c.t = i), (c.m += u - d), (r = t)); } return r; })(t, o, t.parent.A || r[0]); @@ -169558,7 +170128,7 @@ object-assign o ); }, - hh = function(e, t, n, r, o) { + eg = function(e, t, n, r, o) { for ( var i, a = e.children, @@ -169573,8 +170143,8 @@ object-assign (i.y0 = n), (i.y1 = n += i.value * u); }, - gh = (1 + Math.sqrt(5)) / 2; - function mh(e, t, n, r, o, i) { + tg = (1 + Math.sqrt(5)) / 2; + function ng(e, t, n, r, o, i) { for ( var a, s, @@ -169591,20 +170161,20 @@ object-assign y = t.children, v = 0, _ = 0, - x = y.length, - w = t.value; - v < x; + w = y.length, + x = t.value; + v < w; ) { (c = o - n), (u = i - r); do { l = y[_++].value; - } while (!l && _ < x); + } while (!l && _ < w); for ( f = d = l, - m = l * l * (g = Math.max(u / c, c / u) / (w * e)), + m = l * l * (g = Math.max(u / c, c / u) / (x * e)), h = Math.max(d / m, m / f); - _ < x; + _ < w; ++_ ) { if ( @@ -169623,16 +170193,16 @@ object-assign (a = { value: l, dice: c < u, children: y.slice(v, _) }) ), a.dice - ? eh(a, n, r, o, w ? (r += (u * l) / w) : i) - : hh(a, n, r, w ? (n += (c * l) / w) : o, i), - (w -= l), + ? Fh(a, n, r, o, x ? (r += (u * l) / x) : i) + : eg(a, n, r, x ? (n += (c * l) / x) : o, i), + (x -= l), (v = _); } return b; } - var bh = (function e(t) { + var rg = (function e(t) { function n(e, n, r, o, i) { - mh(t, e, n, r, o, i); + ng(t, e, n, r, o, i); } return ( (n.ratio = function(t) { @@ -169640,18 +170210,18 @@ object-assign }), n ); - })(gh), - yh = function() { - var e = bh, + })(tg), + og = function() { + var e = rg, t = !1, n = 1, r = 1, o = [0], - i = Up, - a = Up, - s = Up, - c = Up, - u = Up; + i = Lh, + a = Lh, + s = Lh, + c = Lh, + u = Lh; function l(e) { return ( (e.x0 = e.y0 = 0), @@ -169659,7 +170229,7 @@ object-assign (e.y1 = r), e.eachBefore(f), (o = [0]), - t && e.eachBefore(Zp), + t && e.eachBefore(Ih), e ); } @@ -169693,7 +170263,7 @@ object-assign : [n, r]; }), (l.tile = function(t) { - return arguments.length ? ((e = Vp(t)), l) : e; + return arguments.length ? ((e = Ch(t)), l) : e; }), (l.padding = function(e) { return arguments.length @@ -169702,7 +170272,7 @@ object-assign }), (l.paddingInner = function(e) { return arguments.length - ? ((i = 'function' == typeof e ? e : Xp(+e)), l) + ? ((i = 'function' == typeof e ? e : Ph(+e)), l) : i; }), (l.paddingOuter = function(e) { @@ -169716,28 +170286,28 @@ object-assign }), (l.paddingTop = function(e) { return arguments.length - ? ((a = 'function' == typeof e ? e : Xp(+e)), l) + ? ((a = 'function' == typeof e ? e : Ph(+e)), l) : a; }), (l.paddingRight = function(e) { return arguments.length - ? ((s = 'function' == typeof e ? e : Xp(+e)), l) + ? ((s = 'function' == typeof e ? e : Ph(+e)), l) : s; }), (l.paddingBottom = function(e) { return arguments.length - ? ((c = 'function' == typeof e ? e : Xp(+e)), l) + ? ((c = 'function' == typeof e ? e : Ph(+e)), l) : c; }), (l.paddingLeft = function(e) { return arguments.length - ? ((u = 'function' == typeof e ? e : Xp(+e)), l) + ? ((u = 'function' == typeof e ? e : Ph(+e)), l) : u; }), l ); }, - vh = function(e, t, n, r, o) { + ig = function(e, t, n, r, o) { var i, a, s = e.children, @@ -169771,10 +170341,10 @@ object-assign } })(0, c, e.value, t, n, r, o); }, - _h = function(e, t, n, r, o) { - (1 & e.depth ? hh : eh)(e, t, n, r, o); + ag = function(e, t, n, r, o) { + (1 & e.depth ? eg : Fh)(e, t, n, r, o); }, - xh = (function e(t) { + sg = (function e(t) { function n(e, n, r, o, i) { if ((a = e._squarify) && a.ratio === t) for ( @@ -169791,12 +170361,12 @@ object-assign ) s.value += c[u].value; s.dice - ? eh(s, n, r, o, (r += ((i - r) * s.value) / p)) - : hh(s, n, r, (n += ((o - n) * s.value) / p), i), + ? Fh(s, n, r, o, (r += ((i - r) * s.value) / p)) + : eg(s, n, r, (n += ((o - n) * s.value) / p), i), (p -= s.value); } else - (e._squarify = a = mh(t, e, n, r, o, i)), (a.ratio = t); + (e._squarify = a = ng(t, e, n, r, o, i)), (a.ratio = t); } return ( (n.ratio = function(t) { @@ -169804,8 +170374,8 @@ object-assign }), n ); - })(gh), - wh = function(e) { + })(tg), + cg = function(e) { for ( var t, n = -1, r = e.length, o = e[r - 1], i = 0; ++n < r; @@ -169814,7 +170384,7 @@ object-assign (t = o), (o = e[n]), (i += t[1] * o[0] - t[0] * o[1]); return i / 2; }, - Mh = function(e) { + ug = function(e) { for ( var t, n, @@ -169833,43 +170403,35 @@ object-assign (i += (t[0] + s[0]) * n), (a += (t[1] + s[1]) * n); return [i / (c *= 3), a / c]; + }, + lg = function(e, t, n) { + return ( + (t[0] - e[0]) * (n[1] - e[1]) - + (t[1] - e[1]) * (n[0] - e[0]) + ); }; - function kh(e, t) { + function fg(e, t) { return e[0] - t[0] || e[1] - t[1]; } - function Sh(e) { - for ( - var t, n, r, o = e.length, i = [0, 1], a = 2, s = 2; - s < o; - ++s - ) { - for ( - ; - a > 1 && - ((t = e[i[a - 2]]), - (n = e[i[a - 1]]), - (r = e[s]), - (n[0] - t[0]) * (r[1] - t[1]) - - (n[1] - t[1]) * (r[0] - t[0]) <= - 0); - - ) - --a; - i[a++] = s; + function dg(e) { + for (var t = e.length, n = [0, 1], r = 2, o = 2; o < t; ++o) { + for (; r > 1 && lg(e[n[r - 2]], e[n[r - 1]], e[o]) <= 0; ) + --r; + n[r++] = o; } - return i.slice(0, a); + return n.slice(0, r); } - var Ah = function(e) { + var pg = function(e) { if ((n = e.length) < 3) return null; var t, n, r = new Array(n), o = new Array(n); for (t = 0; t < n; ++t) r[t] = [+e[t][0], +e[t][1], t]; - for (r.sort(kh), t = 0; t < n; ++t) + for (r.sort(fg), t = 0; t < n; ++t) o[t] = [r[t][0], -r[t][1]]; - var i = Sh(r), - a = Sh(o), + var i = dg(r), + a = dg(o), s = a[0] === i[0], c = a[a.length - 1] === i[i.length - 1], u = []; @@ -169877,7 +170439,7 @@ object-assign for (t = +s; t < a.length - c; ++t) u.push(e[r[a[t]][2]]); return u; }, - Oh = function(e, t) { + hg = function(e, t) { for ( var n, r, @@ -169900,7 +170462,7 @@ object-assign (u = r); return l; }, - Eh = function(e) { + gg = function(e) { for ( var t, n, @@ -169920,10 +170482,10 @@ object-assign (c += Math.sqrt(t * t + n * n)); return c; }, - Th = function() { + mg = function() { return Math.random(); }, - Ch = (function e(t) { + bg = (function e(t) { function n(e, n) { return ( (e = null == e ? 0 : +e), @@ -169935,8 +170497,8 @@ object-assign ); } return (n.source = e), n; - })(Th), - Lh = (function e(t) { + })(mg), + yg = (function e(t) { function n(e, n) { var r, o; return ( @@ -169956,17 +170518,17 @@ object-assign ); } return (n.source = e), n; - })(Th), - Ph = (function e(t) { + })(mg), + vg = (function e(t) { function n() { - var e = Lh.source(t).apply(this, arguments); + var e = yg.source(t).apply(this, arguments); return function() { return Math.exp(e()); }; } return (n.source = e), n; - })(Th), - Dh = (function e(t) { + })(mg), + _g = (function e(t) { function n(e) { return function() { for (var n = 0, r = 0; r < e; ++r) n += t(); @@ -169974,25 +170536,25 @@ object-assign }; } return (n.source = e), n; - })(Th), - zh = (function e(t) { + })(mg), + wg = (function e(t) { function n(e) { - var n = Dh.source(t)(e); + var n = _g.source(t)(e); return function() { return n() / e; }; } return (n.source = e), n; - })(Th), - Nh = (function e(t) { + })(mg), + xg = (function e(t) { function n(e) { return function() { return -Math.log(1 - t()) / e; }; } return (n.source = e), n; - })(Th); - function jh(e, t) { + })(mg); + function Mg(e, t) { switch (arguments.length) { case 0: break; @@ -170004,7 +170566,7 @@ object-assign } return this; } - function Rh(e, t) { + function kg(e, t) { switch (arguments.length) { case 0: break; @@ -170016,20 +170578,20 @@ object-assign } return this; } - var Ih = Array.prototype, - Fh = Ih.map, - qh = Ih.slice, - Bh = { name: 'implicit' }; - function Hh() { - var e = xa(), + var Sg = Array.prototype, + Og = Sg.map, + Eg = Sg.slice, + Ag = { name: 'implicit' }; + function Tg() { + var e = Ga(), t = [], n = [], - r = Bh; + r = Ag; function o(o) { var i = o + '', a = e.get(i); if (!a) { - if (r !== Bh) return r; + if (r !== Ag) return r; e.set(i, (a = t.push(o))); } return n[(a - 1) % n.length]; @@ -170037,28 +170599,28 @@ object-assign return ( (o.domain = function(n) { if (!arguments.length) return t.slice(); - (t = []), (e = xa()); + (t = []), (e = Ga()); for (var r, i, a = -1, s = n.length; ++a < s; ) e.has((i = (r = n[a]) + '')) || e.set(i, t.push(r)); return o; }), (o.range = function(e) { - return arguments.length ? ((n = qh.call(e)), o) : n.slice(); + return arguments.length ? ((n = Eg.call(e)), o) : n.slice(); }), (o.unknown = function(e) { return arguments.length ? ((r = e), o) : r; }), (o.copy = function() { - return Hh(t, n).unknown(r); + return Tg(t, n).unknown(r); }), - jh.apply(o, arguments), + Mg.apply(o, arguments), o ); } - function Yh() { + function Cg() { var e, t, - n = Hh().unknown(void 0), + n = Tg().unknown(void 0), r = n.domain, o = n.range, i = [0, 1], @@ -170076,7 +170638,7 @@ object-assign (f += (d - f - e * (n - s)) * u), (t = e * (1 - s)), a && ((f = Math.round(f)), (t = Math.round(t))); - var p = w(n).map(function(t) { + var p = x(n).map(function(t) { return f + e * t; }); return o(l ? p.reverse() : p); @@ -170120,49 +170682,49 @@ object-assign : u; }), (n.copy = function() { - return Yh(r(), i) + return Cg(r(), i) .round(a) .paddingInner(s) .paddingOuter(c) .align(u); }), - jh.apply(l(), arguments) + Mg.apply(l(), arguments) ); } - function Wh(e) { - var t = e.copy; - return ( - (e.padding = e.paddingOuter), - delete e.paddingInner, - delete e.paddingOuter, - (e.copy = function() { - return Wh(t()); - }), - e - ); - } - function Vh() { - return Wh(Yh.apply(null, arguments).paddingInner(1)); + function Lg() { + return (function e(t) { + var n = t.copy; + return ( + (t.padding = t.paddingOuter), + delete t.paddingInner, + delete t.paddingOuter, + (t.copy = function() { + return e(n()); + }), + t + ); + })(Cg.apply(null, arguments).paddingInner(1)); } - var Uh = function(e) { + var Pg = function(e) { + return function() { + return e; + }; + }, + Dg = function(e) { return +e; }, - Xh = [0, 1]; - function Gh(e) { + jg = [0, 1]; + function zg(e) { return e; } - function Kh(e, t) { + function Ng(e, t) { return (t -= e = +e) ? function(n) { return (n - e) / t; } - : ((n = isNaN(t) ? NaN : 0.5), - function() { - return n; - }); - var n; + : Pg(isNaN(t) ? NaN : 0.5); } - function $h(e) { + function Rg(e) { var t, n = e[0], r = e[e.length - 1]; @@ -170173,21 +170735,21 @@ object-assign } ); } - function Qh(e, t, n) { + function Ig(e, t, n) { var r = e[0], o = e[1], i = t[0], a = t[1]; return ( o < r - ? ((r = Kh(o, r)), (i = n(a, i))) - : ((r = Kh(r, o)), (i = n(i, a))), + ? ((r = Ng(o, r)), (i = n(a, i))) + : ((r = Ng(r, o)), (i = n(i, a))), function(e) { return i(r(e)); } ); } - function Jh(e, t, n) { + function Fg(e, t, n) { var r = Math.min(e.length, t.length) - 1, o = new Array(r), i = new Array(r), @@ -170198,13 +170760,13 @@ object-assign ++a < r; ) - (o[a] = Kh(e[a], e[a + 1])), (i[a] = n(t[a], t[a + 1])); + (o[a] = Ng(e[a], e[a + 1])), (i[a] = n(t[a], t[a + 1])); return function(t) { var n = c(e, t, 1, r) - 1; return i[n](o[n](t)); }; } - function Zh(e, t) { + function qg(e, t) { return t .domain(e.domain()) .range(e.range()) @@ -170212,20 +170774,20 @@ object-assign .clamp(e.clamp()) .unknown(e.unknown()); } - function eg() { + function Bg() { var e, t, n, r, o, i, - a = Xh, - s = Xh, - c = Wn, - u = Gh; + a = jg, + s = jg, + c = $n, + u = zg; function l() { return ( - (r = Math.min(a.length, s.length) > 2 ? Jh : Qh), + (r = Math.min(a.length, s.length) > 2 ? Fg : Ig), (o = i = null), f ); @@ -170237,25 +170799,25 @@ object-assign } return ( (f.invert = function(n) { - return u(t((i || (i = r(s, a.map(e), Fn)))(n))); + return u(t((i || (i = r(s, a.map(e), Vn)))(n))); }), (f.domain = function(e) { return arguments.length - ? ((a = Fh.call(e, Uh)), u === Gh || (u = $h(a)), l()) + ? ((a = Og.call(e, Dg)), u === zg || (u = Rg(a)), l()) : a.slice(); }), (f.range = function(e) { return arguments.length - ? ((s = qh.call(e)), l()) + ? ((s = Eg.call(e)), l()) : s.slice(); }), (f.rangeRound = function(e) { - return (s = qh.call(e)), (c = Xn), l(); + return (s = Eg.call(e)), (c = Zn), l(); }), (f.clamp = function(e) { return arguments.length - ? ((u = e ? $h(a) : Gh), f) - : u !== Gh; + ? ((u = e ? Rg(a) : zg), f) + : u !== zg; }), (f.interpolate = function(e) { return arguments.length ? ((c = e), l()) : c; @@ -170268,20 +170830,20 @@ object-assign } ); } - function tg(e, t) { - return eg()(e, t); + function Hg(e, t) { + return Bg()(e, t); } - var ng = function(e, t, n, r) { + var Yg = function(e, t, n, r) { var o, - i = E(e, t, n); - switch ((r = ac(null == r ? ',f' : r)).type) { + i = A(e, t, n); + switch ((r = Ic(null == r ? ',f' : r)).type) { case 's': var a = Math.max(Math.abs(e), Math.abs(t)); return ( null != r.precision || - isNaN((o = _c(i, a))) || + isNaN((o = Zc(i, a))) || (r.precision = o), - fc(r, a) + Yc(r, a) ); case '': case 'e': @@ -170289,27 +170851,27 @@ object-assign case 'p': case 'r': null != r.precision || - isNaN((o = xc(i, Math.max(Math.abs(e), Math.abs(t))))) || + isNaN((o = eu(i, Math.max(Math.abs(e), Math.abs(t))))) || (r.precision = o - ('e' === r.type)); break; case 'f': case '%': null != r.precision || - isNaN((o = vc(i))) || + isNaN((o = Jc(i))) || (r.precision = o - 2 * ('%' === r.type)); } - return lc(r); + return Hc(r); }; - function rg(e) { + function Wg(e) { var t = e.domain; return ( (e.ticks = function(e) { var n = t(); - return A(n[0], n[n.length - 1], null == e ? 10 : e); + return O(n[0], n[n.length - 1], null == e ? 10 : e); }), (e.tickFormat = function(e, n) { var r = t(); - return ng(r[0], r[r.length - 1], null == e ? 10 : e, n); + return Yg(r[0], r[r.length - 1], null == e ? 10 : e, n); }), (e.nice = function(n) { null == n && (n = 10); @@ -170322,14 +170884,14 @@ object-assign return ( c < s && ((r = s), (s = c), (c = r), (r = i), (i = a), (a = r)), - (r = O(s, c, n)) > 0 - ? (r = O( + (r = E(s, c, n)) > 0 + ? (r = E( (s = Math.floor(s / r) * r), (c = Math.ceil(c / r) * r), n )) : r < 0 && - (r = O( + (r = E( (s = Math.ceil(s * r) / r), (c = Math.floor(c * r) / r), n @@ -170348,17 +170910,17 @@ object-assign e ); } - function og() { - var e = tg(Gh, Gh); + function Vg() { + var e = Hg(zg, zg); return ( (e.copy = function() { - return Zh(e, og()); + return qg(e, Vg()); }), - jh.apply(e, arguments), - rg(e) + Mg.apply(e, arguments), + Wg(e) ); } - function ig(e) { + function Ug(e) { var t; function n(e) { return isNaN((e = +e)) ? t : e; @@ -170367,20 +170929,20 @@ object-assign (n.invert = n), (n.domain = n.range = function(t) { return arguments.length - ? ((e = Fh.call(t, Uh)), n) + ? ((e = Og.call(t, Dg)), n) : e.slice(); }), (n.unknown = function(e) { return arguments.length ? ((t = e), n) : t; }), (n.copy = function() { - return ig(e).unknown(t); + return Ug(e).unknown(t); }), - (e = arguments.length ? Fh.call(e, Uh) : [0, 1]), - rg(n) + (e = arguments.length ? Og.call(e, Dg) : [0, 1]), + Wg(n) ); } - var ag = function(e, t) { + var Xg = function(e, t) { var n, r = 0, o = (e = e.slice()).length - 1, @@ -170394,30 +170956,30 @@ object-assign e ); }; - function sg(e) { + function Gg(e) { return Math.log(e); } - function cg(e) { + function Kg(e) { return Math.exp(e); } - function ug(e) { + function $g(e) { return -Math.log(-e); } - function lg(e) { + function Qg(e) { return -Math.exp(-e); } - function fg(e) { + function Jg(e) { return isFinite(e) ? +('1e' + e) : e < 0 ? 0 : e; } - function dg(e) { + function Zg(e) { return function(t) { return -e(-t); }; } - function pg(e) { + function em(e) { var t, n, - r = e(sg, cg), + r = e(Gg, Kg), o = r.domain, i = 10; function a() { @@ -170434,7 +170996,7 @@ object-assign })(i)), (n = (function(e) { return 10 === e - ? fg + ? Jg : e === Math.E ? Math.exp : function(t) { @@ -170442,8 +171004,8 @@ object-assign }; })(i)), o()[0] < 0 - ? ((t = dg(t)), (n = dg(n)), e(ug, lg)) - : e(sg, cg), + ? ((t = Zg(t)), (n = Zg(n)), e($g, Qg)) + : e(Gg, Kg), r ); } @@ -170486,13 +171048,13 @@ object-assign if (f > c) break; g.push(f); } - } else g = A(d, p, Math.min(p - d, h)).map(n); + } else g = O(d, p, Math.min(p - d, h)).map(n); return r ? g.reverse() : g; }), (r.tickFormat = function(e, o) { if ( (null == o && (o = 10 === i ? '.0e' : ','), - 'function' != typeof o && (o = lc(o)), + 'function' != typeof o && (o = Hc(o)), e === 1 / 0) ) return o; @@ -170505,7 +171067,7 @@ object-assign }), (r.nice = function() { return o( - ag(o(), { + Xg(o(), { floor: function(e) { return n(Math.floor(t(e))); }, @@ -170518,87 +171080,87 @@ object-assign r ); } - function hg() { - var e = pg(eg()).domain([1, 10]); + function tm() { + var e = em(Bg()).domain([1, 10]); return ( (e.copy = function() { - return Zh(e, hg()).base(e.base()); + return qg(e, tm()).base(e.base()); }), - jh.apply(e, arguments), + Mg.apply(e, arguments), e ); } - function gg(e) { + function nm(e) { return function(t) { return Math.sign(t) * Math.log1p(Math.abs(t / e)); }; } - function mg(e) { + function rm(e) { return function(t) { return Math.sign(t) * Math.expm1(Math.abs(t)) * e; }; } - function bg(e) { + function om(e) { var t = 1, - n = e(gg(t), mg(t)); + n = e(nm(t), rm(t)); return ( (n.constant = function(n) { - return arguments.length ? e(gg((t = +n)), mg(t)) : t; + return arguments.length ? e(nm((t = +n)), rm(t)) : t; }), - rg(n) + Wg(n) ); } - function yg() { - var e = bg(eg()); + function im() { + var e = om(Bg()); return ( (e.copy = function() { - return Zh(e, yg()).constant(e.constant()); + return qg(e, im()).constant(e.constant()); }), - jh.apply(e, arguments) + Mg.apply(e, arguments) ); } - function vg(e) { + function am(e) { return function(t) { return t < 0 ? -Math.pow(-t, e) : Math.pow(t, e); }; } - function _g(e) { + function sm(e) { return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e); } - function xg(e) { + function cm(e) { return e < 0 ? -e * e : e * e; } - function wg(e) { - var t = e(Gh, Gh), + function um(e) { + var t = e(zg, zg), n = 1; function r() { return 1 === n - ? e(Gh, Gh) + ? e(zg, zg) : 0.5 === n - ? e(_g, xg) - : e(vg(n), vg(1 / n)); + ? e(sm, cm) + : e(am(n), am(1 / n)); } return ( (t.exponent = function(e) { return arguments.length ? ((n = +e), r()) : n; }), - rg(t) + Wg(t) ); } - function Mg() { - var e = wg(eg()); + function lm() { + var e = um(Bg()); return ( (e.copy = function() { - return Zh(e, Mg()).exponent(e.exponent()); + return qg(e, lm()).exponent(e.exponent()); }), - jh.apply(e, arguments), + Mg.apply(e, arguments), e ); } - function kg() { - return Mg.apply(null, arguments).exponent(0.5); + function fm() { + return lm.apply(null, arguments).exponent(0.5); } - function Sg() { + function dm() { var e, t = [], n = [], @@ -170631,7 +171193,7 @@ object-assign }), (a.range = function(e) { return arguments.length - ? ((n = qh.call(e)), i()) + ? ((n = Eg.call(e)), i()) : n.slice(); }), (a.unknown = function(t) { @@ -170641,15 +171203,15 @@ object-assign return o.slice(); }), (a.copy = function() { - return Sg() + return dm() .domain(t) .range(n) .unknown(e); }), - jh.apply(a, arguments) + Mg.apply(a, arguments) ); } - function Ag() { + function pm() { var e, t = 0, n = 1, @@ -170673,7 +171235,7 @@ object-assign }), (a.range = function(e) { return arguments.length - ? ((r = (i = qh.call(e)).length - 1), s()) + ? ((r = (i = Eg.call(e)).length - 1), s()) : i.slice(); }), (a.invertExtent = function(e) { @@ -170693,15 +171255,15 @@ object-assign return o.slice(); }), (a.copy = function() { - return Ag() + return pm() .domain([t, n]) .range(i) .unknown(e); }), - jh.apply(rg(a), arguments) + Mg.apply(Wg(a), arguments) ); } - function Og() { + function hm() { var e, t = [0.5], n = [0, 1], @@ -170712,14 +171274,14 @@ object-assign return ( (o.domain = function(e) { return arguments.length - ? ((t = qh.call(e)), + ? ((t = Eg.call(e)), (r = Math.min(t.length, n.length - 1)), o) : t.slice(); }), (o.range = function(e) { return arguments.length - ? ((n = qh.call(e)), + ? ((n = Eg.call(e)), (r = Math.min(t.length, n.length - 1)), o) : n.slice(); @@ -170732,17 +171294,17 @@ object-assign return arguments.length ? ((e = t), o) : e; }), (o.copy = function() { - return Og() + return hm() .domain(t) .range(n) .unknown(e); }), - jh.apply(o, arguments) + Mg.apply(o, arguments) ); } - var Eg = new Date(), - Tg = new Date(); - function Cg(e, t, n, r) { + var gm = new Date(), + mm = new Date(); + function bm(e, t, n, r) { function o(t) { return ( e((t = 0 === arguments.length ? new Date() : new Date(+t))), @@ -170781,7 +171343,7 @@ object-assign return s; }), (o.filter = function(n) { - return Cg( + return bm( function(t) { if (t >= t) for (; e(t), !n(t); ) t.setTime(t - 1); }, @@ -170796,11 +171358,11 @@ object-assign n && ((o.count = function(t, r) { return ( - Eg.setTime(+t), - Tg.setTime(+r), - e(Eg), - e(Tg), - Math.floor(n(Eg, Tg)) + gm.setTime(+t), + mm.setTime(+r), + e(gm), + e(mm), + Math.floor(n(gm, mm)) ); }), (o.every = function(e) { @@ -170824,7 +171386,7 @@ object-assign o ); } - var Lg = Cg( + var ym = bm( function(e) { e.setMonth(0, 1), e.setHours(0, 0, 0, 0); }, @@ -170838,9 +171400,9 @@ object-assign return e.getFullYear(); } ); - Lg.every = function(e) { + ym.every = function(e) { return isFinite((e = Math.floor(e))) && e > 0 - ? Cg( + ? bm( function(t) { t.setFullYear(Math.floor(t.getFullYear() / e) * e), t.setMonth(0, 1), @@ -170852,9 +171414,9 @@ object-assign ) : null; }; - var Pg = Lg, - Dg = Lg.range, - zg = Cg( + var vm = ym, + _m = ym.range, + wm = bm( function(e) { e.setDate(1), e.setHours(0, 0, 0, 0); }, @@ -170872,10 +171434,12 @@ object-assign return e.getMonth(); } ), - Ng = zg, - jg = zg.range; - function Rg(e) { - return Cg( + xm = wm, + Mm = wm.range, + km = 6e4, + Sm = 6048e5; + function Om(e) { + return bm( function(t) { t.setDate(t.getDate() - ((t.getDay() + 7 - e) % 7)), t.setHours(0, 0, 0, 0); @@ -170887,27 +171451,27 @@ object-assign return ( (t - e - - 6e4 * (t.getTimezoneOffset() - e.getTimezoneOffset())) / - 6048e5 - ); - } - ); - } - var Ig = Rg(0), - Fg = Rg(1), - qg = Rg(2), - Bg = Rg(3), - Hg = Rg(4), - Yg = Rg(5), - Wg = Rg(6), - Vg = Ig.range, - Ug = Fg.range, - Xg = qg.range, - Gg = Bg.range, - Kg = Hg.range, - $g = Yg.range, - Qg = Wg.range, - Jg = Cg( + (t.getTimezoneOffset() - e.getTimezoneOffset()) * km) / + Sm + ); + } + ); + } + var Em = Om(0), + Am = Om(1), + Tm = Om(2), + Cm = Om(3), + Lm = Om(4), + Pm = Om(5), + Dm = Om(6), + jm = Em.range, + zm = Am.range, + Nm = Tm.range, + Rm = Cm.range, + Im = Lm.range, + Fm = Pm.range, + qm = Dm.range, + Bm = bm( function(e) { e.setHours(0, 0, 0, 0); }, @@ -170918,7 +171482,7 @@ object-assign return ( (t - e - - 6e4 * (t.getTimezoneOffset() - e.getTimezoneOffset())) / + (t.getTimezoneOffset() - e.getTimezoneOffset()) * km) / 864e5 ); }, @@ -170926,15 +171490,15 @@ object-assign return e.getDate() - 1; } ), - Zg = Jg, - em = Jg.range, - tm = Cg( + Hm = Bm, + Ym = Bm.range, + Wm = bm( function(e) { e.setTime( e - e.getMilliseconds() - 1e3 * e.getSeconds() - - 6e4 * e.getMinutes() + e.getMinutes() * km ); }, function(e, t) { @@ -170947,25 +171511,25 @@ object-assign return e.getHours(); } ), - nm = tm, - rm = tm.range, - om = Cg( + Vm = Wm, + Um = Wm.range, + Xm = bm( function(e) { e.setTime(e - e.getMilliseconds() - 1e3 * e.getSeconds()); }, function(e, t) { - e.setTime(+e + 6e4 * t); + e.setTime(+e + t * km); }, function(e, t) { - return (t - e) / 6e4; + return (t - e) / km; }, function(e) { return e.getMinutes(); } ), - im = om, - am = om.range, - sm = Cg( + Gm = Xm, + Km = Xm.range, + $m = bm( function(e) { e.setTime(e - e.getMilliseconds()); }, @@ -170979,9 +171543,9 @@ object-assign return e.getUTCSeconds(); } ), - cm = sm, - um = sm.range, - lm = Cg( + Qm = $m, + Jm = $m.range, + Zm = bm( function() {}, function(e, t) { e.setTime(+e + t); @@ -170990,12 +171554,12 @@ object-assign return t - e; } ); - lm.every = function(e) { + Zm.every = function(e) { return ( (e = Math.floor(e)), isFinite(e) && e > 0 ? e > 1 - ? Cg( + ? bm( function(t) { t.setTime(Math.floor(t / e) * e); }, @@ -171006,14 +171570,14 @@ object-assign return (n - t) / e; } ) - : lm + : Zm : null ); }; - var fm = lm, - dm = lm.range; - function pm(e) { - return Cg( + var eb = Zm, + tb = Zm.range; + function nb(e) { + return bm( function(t) { t.setUTCDate( t.getUTCDate() - ((t.getUTCDay() + 7 - e) % 7) @@ -171024,25 +171588,25 @@ object-assign e.setUTCDate(e.getUTCDate() + 7 * t); }, function(e, t) { - return (t - e) / 6048e5; - } - ); - } - var hm = pm(0), - gm = pm(1), - mm = pm(2), - bm = pm(3), - ym = pm(4), - vm = pm(5), - _m = pm(6), - xm = hm.range, - wm = gm.range, - Mm = mm.range, - km = bm.range, - Sm = ym.range, - Am = vm.range, - Om = _m.range, - Em = Cg( + return (t - e) / Sm; + } + ); + } + var rb = nb(0), + ob = nb(1), + ib = nb(2), + ab = nb(3), + sb = nb(4), + cb = nb(5), + ub = nb(6), + lb = rb.range, + fb = ob.range, + db = ib.range, + pb = ab.range, + hb = sb.range, + gb = cb.range, + mb = ub.range, + bb = bm( function(e) { e.setUTCHours(0, 0, 0, 0); }, @@ -171056,9 +171620,9 @@ object-assign return e.getUTCDate() - 1; } ), - Tm = Em, - Cm = Em.range, - Lm = Cg( + yb = bb, + vb = bb.range, + _b = bm( function(e) { e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0); }, @@ -171072,9 +171636,9 @@ object-assign return e.getUTCFullYear(); } ); - Lm.every = function(e) { + _b.every = function(e) { return isFinite((e = Math.floor(e))) && e > 0 - ? Cg( + ? bm( function(t) { t.setUTCFullYear( Math.floor(t.getUTCFullYear() / e) * e @@ -171088,26 +171652,26 @@ object-assign ) : null; }; - var Pm = Lm, - Dm = Lm.range; - function zm(e) { + var wb = _b, + xb = _b.range; + function Mb(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 Nm(e) { + function kb(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 jm(e, t, n) { + function Sb(e, t, n) { return { y: e, m: t, d: n, H: 0, M: 0, S: 0, L: 0 }; } - function Rm(e) { + function Ob(e) { var t = e.dateTime, n = e.date, r = e.time, @@ -171116,16 +171680,16 @@ object-assign a = e.shortDays, s = e.months, c = e.shortMonths, - u = Km(o), - l = $m(o), - f = Km(i), - d = $m(i), - p = Km(a), - h = $m(a), - g = Km(s), - m = $m(s), - b = Km(c), - y = $m(c), + u = Ib(o), + l = Fb(o), + f = Ib(i), + d = Fb(i), + p = Ib(a), + h = Fb(a), + g = Ib(s), + m = Fb(s), + b = Ib(c), + y = Fb(c), v = { a: function(e) { return a[e.getDay()]; @@ -171140,35 +171704,35 @@ object-assign return s[e.getMonth()]; }, c: null, - d: bb, - e: bb, - f: wb, - H: yb, - I: vb, - j: _b, - L: xb, - m: Mb, - M: kb, + d: ay, + e: ay, + f: fy, + H: sy, + I: cy, + j: uy, + L: ly, + m: dy, + M: py, p: function(e) { return o[+(e.getHours() >= 12)]; }, q: function(e) { return 1 + ~~(e.getMonth() / 3); }, - Q: Jb, - s: Zb, - S: Sb, - u: Ab, - U: Ob, - V: Eb, - w: Tb, - W: Cb, + Q: By, + s: Hy, + S: hy, + u: gy, + U: my, + V: by, + w: yy, + W: vy, x: null, X: null, - y: Lb, - Y: Pb, - Z: Db, - '%': Qb + y: _y, + Y: wy, + Z: xy, + '%': qy }, _ = { a: function(e) { @@ -171184,37 +171748,37 @@ object-assign return s[e.getUTCMonth()]; }, c: null, - d: zb, - e: zb, - f: Fb, - H: Nb, - I: jb, - j: Rb, - L: Ib, - m: qb, - M: Bb, + d: My, + e: My, + f: Ay, + H: ky, + I: Sy, + j: Oy, + L: Ey, + m: Ty, + M: Cy, p: function(e) { return o[+(e.getUTCHours() >= 12)]; }, q: function(e) { return 1 + ~~(e.getUTCMonth() / 3); }, - Q: Jb, - s: Zb, - S: Hb, - u: Yb, - U: Wb, - V: Vb, - w: Ub, - W: Xb, + Q: By, + s: Hy, + S: Ly, + u: Py, + U: Dy, + V: jy, + w: zy, + W: Ny, x: null, X: null, - y: Gb, - Y: Kb, - Z: $b, - '%': Qb + y: Ry, + Y: Iy, + Z: Fy, + '%': qy }, - x = { + w = { a: function(e, t, n) { var r = p.exec(t.slice(n)); return r @@ -171242,42 +171806,42 @@ object-assign c: function(e, n, r) { return k(e, t, n, r); }, - d: sb, - e: sb, - f: pb, - H: ub, - I: ub, - j: cb, - L: db, - m: ab, - M: lb, + d: $b, + e: $b, + f: ny, + H: Jb, + I: Jb, + j: Qb, + L: ty, + m: Kb, + M: Zb, p: function(e, t, n) { var r = u.exec(t.slice(n)); return r ? ((e.p = l[r[0].toLowerCase()]), n + r[0].length) : -1; }, - q: ib, - Q: gb, - s: mb, - S: fb, - u: Jm, - U: Zm, - V: eb, - w: Qm, - W: tb, + q: Gb, + Q: oy, + s: iy, + S: ey, + u: Bb, + U: Hb, + V: Yb, + w: qb, + W: Wb, x: function(e, t, r) { return k(e, n, t, r); }, X: function(e, t, n) { return k(e, r, t, n); }, - y: rb, - Y: nb, - Z: ob, - '%': hb + y: Ub, + Y: Vb, + Z: Xb, + '%': ry }; - function w(e, t) { + function x(e, t) { return function(n) { var r, o, @@ -171289,7 +171853,7 @@ object-assign for (n instanceof Date || (n = new Date(+n)); ++s < u; ) 37 === e.charCodeAt(s) && (a.push(e.slice(c, s)), - null != (o = Ym[(r = e.charAt(++s))]) + null != (o = Pb[(r = e.charAt(++s))]) ? (r = e.charAt(++s)) : (o = 'e' === r ? ' ' : '0'), (i = t[r]) && (r = i(n, o)), @@ -171302,13 +171866,13 @@ object-assign return function(n) { var r, o, - i = jm(1900, void 0, 1); + i = Sb(1900, void 0, 1); if (k(i, e, (n += ''), 0) != n.length) return null; if ('Q' in i) return new Date(i.Q); if ('s' in i) return new Date(1e3 * i.s + ('L' in i ? i.L : 0)); if ( - (t && !('Z' in i) && (i.Z = 0), + (!t || 'Z' in i || (i.Z = 0), 'p' in i && (i.H = (i.H % 12) + 12 * i.p), void 0 === i.m && (i.m = 'q' in i ? i.q : 0), 'V' in i) @@ -171316,15 +171880,15 @@ object-assign if (i.V < 1 || i.V > 53) return null; 'w' in i || (i.w = 1), 'Z' in i - ? ((o = (r = Nm(jm(i.y, 0, 1))).getUTCDay()), - (r = o > 4 || 0 === o ? gm.ceil(r) : gm(r)), - (r = Tm.offset(r, 7 * (i.V - 1))), + ? ((o = (r = kb(Sb(i.y, 0, 1))).getUTCDay()), + (r = o > 4 || 0 === o ? ob.ceil(r) : ob(r)), + (r = yb.offset(r, 7 * (i.V - 1))), (i.y = r.getUTCFullYear()), (i.m = r.getUTCMonth()), (i.d = r.getUTCDate() + ((i.w + 6) % 7))) - : ((o = (r = zm(jm(i.y, 0, 1))).getDay()), - (r = o > 4 || 0 === o ? Fg.ceil(r) : Fg(r)), - (r = Zg.offset(r, 7 * (i.V - 1))), + : ((o = (r = Mb(Sb(i.y, 0, 1))).getDay()), + (r = o > 4 || 0 === o ? Am.ceil(r) : Am(r)), + (r = Hm.offset(r, 7 * (i.V - 1))), (i.y = r.getFullYear()), (i.m = r.getMonth()), (i.d = r.getDate() + ((i.w + 6) % 7))); @@ -171334,16 +171898,16 @@ object-assign (i.w = 'u' in i ? i.u % 7 : 'W' in i ? 1 : 0), (o = 'Z' in i - ? Nm(jm(i.y, 0, 1)).getUTCDay() - : zm(jm(i.y, 0, 1)).getDay()), + ? kb(Sb(i.y, 0, 1)).getUTCDay() + : Mb(Sb(i.y, 0, 1)).getDay()), (i.m = 0), (i.d = 'W' in i ? ((i.w + 6) % 7) + 7 * i.W - ((o + 5) % 7) : i.w + 7 * i.U - ((o + 6) % 7))); return 'Z' in i - ? ((i.H += (i.Z / 100) | 0), (i.M += i.Z % 100), Nm(i)) - : zm(i); + ? ((i.H += (i.Z / 100) | 0), (i.M += i.Z % 100), kb(i)) + : Mb(i); }; } function k(e, t, n, r) { @@ -171352,7 +171916,7 @@ object-assign if (37 === (o = t.charCodeAt(a++))) { if ( ((o = t.charAt(a++)), - !(i = x[o in Ym ? t.charAt(a++) : o]) || + !(i = w[o in Pb ? t.charAt(a++) : o]) || (r = i(e, n, r)) < 0) ) return -1; @@ -171361,15 +171925,15 @@ object-assign return r; } return ( - (v.x = w(n, v)), - (v.X = w(r, v)), - (v.c = w(t, v)), - (_.x = w(n, _)), - (_.X = w(r, _)), - (_.c = w(t, _)), + (v.x = x(n, v)), + (v.X = x(r, v)), + (v.c = x(t, v)), + (_.x = x(n, _)), + (_.X = x(r, _)), + (_.c = x(t, _)), { format: function(e) { - var t = w((e += ''), v); + var t = x((e += ''), v); return ( (t.toString = function() { return e; @@ -171387,7 +171951,7 @@ object-assign ); }, utcFormat: function(e) { - var t = w((e += ''), _); + var t = x((e += ''), _); return ( (t.toString = function() { return e; @@ -171407,263 +171971,314 @@ object-assign } ); } - var Im, - Fm, - qm, - Bm, - Hm, - Ym = { '-': '', _: ' ', 0: '0' }, - Wm = /^\s*\d+/, - Vm = /^%/, - Um = /[\\^$*+?|[\]().{}]/g; - function Xm(e, t, n) { + var Eb, + Ab, + Tb, + Cb, + Lb, + Pb = { '-': '', _: ' ', 0: '0' }, + Db = /^\s*\d+/, + jb = /^%/, + zb = /[\\^$*+?|[\]().{}]/g; + function Nb(e, t, n) { var r = e < 0 ? '-' : '', o = (r ? -e : e) + '', i = o.length; return r + (i < n ? new Array(n - i + 1).join(t) + o : o); } - function Gm(e) { - return e.replace(Um, '\\$&'); + function Rb(e) { + return e.replace(zb, '\\$&'); } - function Km(e) { - return new RegExp('^(?:' + e.map(Gm).join('|') + ')', 'i'); + function Ib(e) { + return new RegExp('^(?:' + e.map(Rb).join('|') + ')', 'i'); } - function $m(e) { + function Fb(e) { for (var t = {}, n = -1, r = e.length; ++n < r; ) t[e[n].toLowerCase()] = n; return t; } - function Qm(e, t, n) { - var r = Wm.exec(t.slice(n, n + 1)); + function qb(e, t, n) { + var r = Db.exec(t.slice(n, n + 1)); return r ? ((e.w = +r[0]), n + r[0].length) : -1; } - function Jm(e, t, n) { - var r = Wm.exec(t.slice(n, n + 1)); + function Bb(e, t, n) { + var r = Db.exec(t.slice(n, n + 1)); return r ? ((e.u = +r[0]), n + r[0].length) : -1; } - function Zm(e, t, n) { - var r = Wm.exec(t.slice(n, n + 2)); + function Hb(e, t, n) { + var r = Db.exec(t.slice(n, n + 2)); return r ? ((e.U = +r[0]), n + r[0].length) : -1; } - function eb(e, t, n) { - var r = Wm.exec(t.slice(n, n + 2)); + function Yb(e, t, n) { + var r = Db.exec(t.slice(n, n + 2)); return r ? ((e.V = +r[0]), n + r[0].length) : -1; } - function tb(e, t, n) { - var r = Wm.exec(t.slice(n, n + 2)); + function Wb(e, t, n) { + var r = Db.exec(t.slice(n, n + 2)); return r ? ((e.W = +r[0]), n + r[0].length) : -1; } - function nb(e, t, n) { - var r = Wm.exec(t.slice(n, n + 4)); + function Vb(e, t, n) { + var r = Db.exec(t.slice(n, n + 4)); return r ? ((e.y = +r[0]), n + r[0].length) : -1; } - function rb(e, t, n) { - var r = Wm.exec(t.slice(n, n + 2)); + function Ub(e, t, n) { + var r = Db.exec(t.slice(n, n + 2)); return r ? ((e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3)), n + r[0].length) : -1; } - function ob(e, t, n) { + function Xb(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 ib(e, t, n) { - var r = Wm.exec(t.slice(n, n + 1)); + function Gb(e, t, n) { + var r = Db.exec(t.slice(n, n + 1)); return r ? ((e.q = 3 * r[0] - 3), n + r[0].length) : -1; } - function ab(e, t, n) { - var r = Wm.exec(t.slice(n, n + 2)); + function Kb(e, t, n) { + var r = Db.exec(t.slice(n, n + 2)); return r ? ((e.m = r[0] - 1), n + r[0].length) : -1; } - function sb(e, t, n) { - var r = Wm.exec(t.slice(n, n + 2)); + function $b(e, t, n) { + var r = Db.exec(t.slice(n, n + 2)); return r ? ((e.d = +r[0]), n + r[0].length) : -1; } - function cb(e, t, n) { - var r = Wm.exec(t.slice(n, n + 3)); + function Qb(e, t, n) { + var r = Db.exec(t.slice(n, n + 3)); return r ? ((e.m = 0), (e.d = +r[0]), n + r[0].length) : -1; } - function ub(e, t, n) { - var r = Wm.exec(t.slice(n, n + 2)); + function Jb(e, t, n) { + var r = Db.exec(t.slice(n, n + 2)); return r ? ((e.H = +r[0]), n + r[0].length) : -1; } - function lb(e, t, n) { - var r = Wm.exec(t.slice(n, n + 2)); + function Zb(e, t, n) { + var r = Db.exec(t.slice(n, n + 2)); return r ? ((e.M = +r[0]), n + r[0].length) : -1; } - function fb(e, t, n) { - var r = Wm.exec(t.slice(n, n + 2)); + function ey(e, t, n) { + var r = Db.exec(t.slice(n, n + 2)); return r ? ((e.S = +r[0]), n + r[0].length) : -1; } - function db(e, t, n) { - var r = Wm.exec(t.slice(n, n + 3)); + function ty(e, t, n) { + var r = Db.exec(t.slice(n, n + 3)); return r ? ((e.L = +r[0]), n + r[0].length) : -1; } - function pb(e, t, n) { - var r = Wm.exec(t.slice(n, n + 6)); + function ny(e, t, n) { + var r = Db.exec(t.slice(n, n + 6)); return r ? ((e.L = Math.floor(r[0] / 1e3)), n + r[0].length) : -1; } - function hb(e, t, n) { - var r = Vm.exec(t.slice(n, n + 1)); + function ry(e, t, n) { + var r = jb.exec(t.slice(n, n + 1)); return r ? n + r[0].length : -1; } - function gb(e, t, n) { - var r = Wm.exec(t.slice(n)); + function oy(e, t, n) { + var r = Db.exec(t.slice(n)); return r ? ((e.Q = +r[0]), n + r[0].length) : -1; } - function mb(e, t, n) { - var r = Wm.exec(t.slice(n)); + function iy(e, t, n) { + var r = Db.exec(t.slice(n)); return r ? ((e.s = +r[0]), n + r[0].length) : -1; } - function bb(e, t) { - return Xm(e.getDate(), t, 2); + function ay(e, t) { + return Nb(e.getDate(), t, 2); } - function yb(e, t) { - return Xm(e.getHours(), t, 2); + function sy(e, t) { + return Nb(e.getHours(), t, 2); } - function vb(e, t) { - return Xm(e.getHours() % 12 || 12, t, 2); + function cy(e, t) { + return Nb(e.getHours() % 12 || 12, t, 2); } - function _b(e, t) { - return Xm(1 + Zg.count(Pg(e), e), t, 3); + function uy(e, t) { + return Nb(1 + Hm.count(vm(e), e), t, 3); } - function xb(e, t) { - return Xm(e.getMilliseconds(), t, 3); + function ly(e, t) { + return Nb(e.getMilliseconds(), t, 3); } - function wb(e, t) { - return xb(e, t) + '000'; + function fy(e, t) { + return ly(e, t) + '000'; } - function Mb(e, t) { - return Xm(e.getMonth() + 1, t, 2); + function dy(e, t) { + return Nb(e.getMonth() + 1, t, 2); } - function kb(e, t) { - return Xm(e.getMinutes(), t, 2); + function py(e, t) { + return Nb(e.getMinutes(), t, 2); } - function Sb(e, t) { - return Xm(e.getSeconds(), t, 2); + function hy(e, t) { + return Nb(e.getSeconds(), t, 2); } - function Ab(e) { + function gy(e) { var t = e.getDay(); return 0 === t ? 7 : t; } - function Ob(e, t) { - return Xm(Ig.count(Pg(e) - 1, e), t, 2); + function my(e, t) { + return Nb(Em.count(vm(e) - 1, e), t, 2); } - function Eb(e, t) { + function by(e, t) { var n = e.getDay(); return ( - (e = n >= 4 || 0 === n ? Hg(e) : Hg.ceil(e)), - Xm(Hg.count(Pg(e), e) + (4 === Pg(e).getDay()), t, 2) + (e = n >= 4 || 0 === n ? Lm(e) : Lm.ceil(e)), + Nb(Lm.count(vm(e), e) + (4 === vm(e).getDay()), t, 2) ); } - function Tb(e) { + function yy(e) { return e.getDay(); } - function Cb(e, t) { - return Xm(Fg.count(Pg(e) - 1, e), t, 2); + function vy(e, t) { + return Nb(Am.count(vm(e) - 1, e), t, 2); } - function Lb(e, t) { - return Xm(e.getFullYear() % 100, t, 2); + function _y(e, t) { + return Nb(e.getFullYear() % 100, t, 2); } - function Pb(e, t) { - return Xm(e.getFullYear() % 1e4, t, 4); + function wy(e, t) { + return Nb(e.getFullYear() % 1e4, t, 4); } - function Db(e) { + function xy(e) { var t = e.getTimezoneOffset(); return ( (t > 0 ? '-' : ((t *= -1), '+')) + - Xm((t / 60) | 0, '0', 2) + - Xm(t % 60, '0', 2) + Nb((t / 60) | 0, '0', 2) + + Nb(t % 60, '0', 2) ); } - function zb(e, t) { - return Xm(e.getUTCDate(), t, 2); + function My(e, t) { + return Nb(e.getUTCDate(), t, 2); } - function Nb(e, t) { - return Xm(e.getUTCHours(), t, 2); + function ky(e, t) { + return Nb(e.getUTCHours(), t, 2); } - function jb(e, t) { - return Xm(e.getUTCHours() % 12 || 12, t, 2); + function Sy(e, t) { + return Nb(e.getUTCHours() % 12 || 12, t, 2); } - function Rb(e, t) { - return Xm(1 + Tm.count(Pm(e), e), t, 3); + function Oy(e, t) { + return Nb(1 + yb.count(wb(e), e), t, 3); } - function Ib(e, t) { - return Xm(e.getUTCMilliseconds(), t, 3); + function Ey(e, t) { + return Nb(e.getUTCMilliseconds(), t, 3); } - function Fb(e, t) { - return Ib(e, t) + '000'; + function Ay(e, t) { + return Ey(e, t) + '000'; } - function qb(e, t) { - return Xm(e.getUTCMonth() + 1, t, 2); + function Ty(e, t) { + return Nb(e.getUTCMonth() + 1, t, 2); } - function Bb(e, t) { - return Xm(e.getUTCMinutes(), t, 2); + function Cy(e, t) { + return Nb(e.getUTCMinutes(), t, 2); } - function Hb(e, t) { - return Xm(e.getUTCSeconds(), t, 2); + function Ly(e, t) { + return Nb(e.getUTCSeconds(), t, 2); } - function Yb(e) { + function Py(e) { var t = e.getUTCDay(); return 0 === t ? 7 : t; } - function Wb(e, t) { - return Xm(hm.count(Pm(e) - 1, e), t, 2); + function Dy(e, t) { + return Nb(rb.count(wb(e) - 1, e), t, 2); } - function Vb(e, t) { + function jy(e, t) { var n = e.getUTCDay(); return ( - (e = n >= 4 || 0 === n ? ym(e) : ym.ceil(e)), - Xm(ym.count(Pm(e), e) + (4 === Pm(e).getUTCDay()), t, 2) + (e = n >= 4 || 0 === n ? sb(e) : sb.ceil(e)), + Nb(sb.count(wb(e), e) + (4 === wb(e).getUTCDay()), t, 2) ); } - function Ub(e) { + function zy(e) { return e.getUTCDay(); } - function Xb(e, t) { - return Xm(gm.count(Pm(e) - 1, e), t, 2); + function Ny(e, t) { + return Nb(ob.count(wb(e) - 1, e), t, 2); } - function Gb(e, t) { - return Xm(e.getUTCFullYear() % 100, t, 2); + function Ry(e, t) { + return Nb(e.getUTCFullYear() % 100, t, 2); } - function Kb(e, t) { - return Xm(e.getUTCFullYear() % 1e4, t, 4); + function Iy(e, t) { + return Nb(e.getUTCFullYear() % 1e4, t, 4); } - function $b() { + function Fy() { return '+0000'; } - function Qb() { + function qy() { return '%'; } - function Jb(e) { + function By(e) { return +e; } - function Zb(e) { + function Hy(e) { return Math.floor(+e / 1e3); } - function ey(e) { + function Yy(e) { return ( - (Im = Rm(e)), - (Fm = Im.format), - (qm = Im.parse), - (Bm = Im.utcFormat), - (Hm = Im.utcParse), - Im + (Eb = Ob(e)), + (Ab = Eb.format), + (Tb = Eb.parse), + (Cb = Eb.utcFormat), + (Lb = Eb.utcParse), + Eb ); } - function ty(e) { + Yy({ + dateTime: '%x, %X', + date: '%-m/%-d/%Y', + time: '%-I:%M:%S %p', + periods: ['AM', 'PM'], + days: [ + 'Sunday', + 'Monday', + 'Tuesday', + 'Wednesday', + 'Thursday', + 'Friday', + 'Saturday' + ], + shortDays: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], + months: [ + 'January', + 'February', + 'March', + 'April', + 'May', + 'June', + 'July', + 'August', + 'September', + 'October', + 'November', + 'December' + ], + shortMonths: [ + 'Jan', + 'Feb', + 'Mar', + 'Apr', + 'May', + 'Jun', + 'Jul', + 'Aug', + 'Sep', + 'Oct', + 'Nov', + 'Dec' + ] + }); + var Wy = 1e3, + Vy = 60 * Wy, + Uy = 60 * Vy, + Xy = 24 * Uy, + Gy = 7 * Xy, + Ky = 30 * Xy, + $y = 365 * Xy; + function Qy(e) { return new Date(e); } - function ny(e) { + function Jy(e) { return e instanceof Date ? +e : +new Date(+e); } - function ry(e, t, n, r, i, a, s, c, u) { - var l = tg(Gh, Gh), + function Zy(e, t, n, r, i, a, s, c, u) { + var l = Hg(zg, zg), f = l.invert, d = l.domain, p = u('.%L'), @@ -171674,27 +172289,27 @@ object-assign y = u('%b %d'), v = u('%B'), _ = u('%Y'), - x = [ - [s, 1, 1e3], - [s, 5, 5e3], - [s, 15, 15e3], - [s, 30, 3e4], - [a, 1, 6e4], - [a, 5, 3e5], - [a, 15, 9e5], - [a, 30, 18e5], - [i, 1, 36e5], - [i, 3, 108e5], - [i, 6, 216e5], - [i, 12, 432e5], - [r, 1, 864e5], - [r, 2, 1728e5], - [n, 1, 6048e5], - [t, 1, 2592e6], - [t, 3, 7776e6], - [e, 1, 31536e6] + w = [ + [s, 1, Wy], + [s, 5, 5 * Wy], + [s, 15, 15 * Wy], + [s, 30, 30 * Wy], + [a, 1, Vy], + [a, 5, 5 * Vy], + [a, 15, 15 * Vy], + [a, 30, 30 * Vy], + [i, 1, Uy], + [i, 3, 3 * Uy], + [i, 6, 6 * Uy], + [i, 12, 12 * Uy], + [r, 1, Xy], + [r, 2, 2 * Xy], + [n, 1, Gy], + [t, 1, Ky], + [t, 3, 3 * Ky], + [e, 1, $y] ]; - function w(o) { + function x(o) { return (s(o) < o ? p : a(o) < o @@ -171716,14 +172331,14 @@ object-assign var a = Math.abs(r - n) / t, s = o(function(e) { return e[2]; - }).right(x, a); - s === x.length - ? ((i = E(n / 31536e6, r / 31536e6, t)), (t = e)) + }).right(w, a); + s === w.length + ? ((i = A(n / $y, r / $y, t)), (t = e)) : s ? ((i = (s = - x[a / x[s - 1][2] < x[s][2] / a ? s - 1 : s])[1]), + w[a / w[s - 1][2] < w[s][2] / a ? s - 1 : s])[1]), (t = s[0])) - : ((i = Math.max(E(n, r, t), 1)), (t = c)); + : ((i = Math.max(A(n, r, t), 1)), (t = c)); } return null == i ? t : t.every(i); } @@ -171732,7 +172347,7 @@ object-assign return new Date(f(e)); }), (l.domain = function(e) { - return arguments.length ? d(Fh.call(e, ny)) : d().map(ty); + return arguments.length ? d(Og.call(e, Jy)) : d().map(Qy); }), (l.ticks = function(e, t) { var n, @@ -171747,74 +172362,30 @@ object-assign ); }), (l.tickFormat = function(e, t) { - return null == t ? w : u(t); + return null == t ? x : u(t); }), (l.nice = function(e, t) { var n = d(); return (e = M(e, n[0], n[n.length - 1], t)) - ? d(ag(n, e)) + ? d(Xg(n, e)) : l; }), (l.copy = function() { - return Zh(l, ry(e, t, n, r, i, a, s, c, u)); + return qg(l, Zy(e, t, n, r, i, a, s, c, u)); }), l ); } - ey({ - dateTime: '%x, %X', - date: '%-m/%-d/%Y', - time: '%-I:%M:%S %p', - periods: ['AM', 'PM'], - days: [ - 'Sunday', - 'Monday', - 'Tuesday', - 'Wednesday', - 'Thursday', - 'Friday', - 'Saturday' - ], - shortDays: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], - months: [ - 'January', - 'February', - 'March', - 'April', - 'May', - 'June', - 'July', - 'August', - 'September', - 'October', - 'November', - 'December' - ], - shortMonths: [ - 'Jan', - 'Feb', - 'Mar', - 'Apr', - 'May', - 'Jun', - 'Jul', - 'Aug', - 'Sep', - 'Oct', - 'Nov', - 'Dec' - ] - }); - var oy = function() { - return jh.apply( - ry(Pg, Ng, Ig, Zg, nm, im, cm, fm, Fm).domain([ + var ev = function() { + return Mg.apply( + Zy(vm, xm, Em, Hm, Vm, Gm, Qm, eb, Ab).domain([ new Date(2e3, 0, 1), new Date(2e3, 0, 2) ]), arguments ); }, - iy = Cg( + tv = bm( function(e) { e.setUTCDate(1), e.setUTCHours(0, 0, 0, 0); }, @@ -171832,9 +172403,9 @@ object-assign return e.getUTCMonth(); } ), - ay = iy, - sy = iy.range, - cy = Cg( + nv = tv, + rv = tv.range, + ov = bm( function(e) { e.setUTCMinutes(0, 0, 0); }, @@ -171848,34 +172419,34 @@ object-assign return e.getUTCHours(); } ), - uy = cy, - ly = cy.range, - fy = Cg( + iv = ov, + av = ov.range, + sv = bm( function(e) { e.setUTCSeconds(0, 0); }, function(e, t) { - e.setTime(+e + 6e4 * t); + e.setTime(+e + t * km); }, function(e, t) { - return (t - e) / 6e4; + return (t - e) / km; }, function(e) { return e.getUTCMinutes(); } ), - dy = fy, - py = fy.range, - hy = function() { - return jh.apply( - ry(Pm, ay, hm, Tm, uy, dy, cm, fm, Bm).domain([ + cv = sv, + uv = sv.range, + lv = function() { + return Mg.apply( + Zy(wb, nv, rb, yb, iv, cv, Qm, eb, Cb).domain([ Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2) ]), arguments ); }; - function gy() { + function fv() { var e, t, n, @@ -171883,7 +172454,7 @@ object-assign o, i = 0, a = 1, - s = Gh, + s = zg, c = !1; function u(t) { return isNaN((t = +t)) @@ -171924,55 +172495,55 @@ object-assign } ); } - function my(e, t) { + function dv(e, t) { return t .domain(e.domain()) .interpolator(e.interpolator()) .clamp(e.clamp()) .unknown(e.unknown()); } - function by() { - var e = rg(gy()(Gh)); + function pv() { + var e = Wg(fv()(zg)); return ( (e.copy = function() { - return my(e, by()); + return dv(e, pv()); }), - Rh.apply(e, arguments) + kg.apply(e, arguments) ); } - function yy() { - var e = pg(gy()).domain([1, 10]); + function hv() { + var e = em(fv()).domain([1, 10]); return ( (e.copy = function() { - return my(e, yy()).base(e.base()); + return dv(e, hv()).base(e.base()); }), - Rh.apply(e, arguments) + kg.apply(e, arguments) ); } - function vy() { - var e = bg(gy()); + function gv() { + var e = om(fv()); return ( (e.copy = function() { - return my(e, vy()).constant(e.constant()); + return dv(e, gv()).constant(e.constant()); }), - Rh.apply(e, arguments) + kg.apply(e, arguments) ); } - function _y() { - var e = wg(gy()); + function mv() { + var e = um(fv()); return ( (e.copy = function() { - return my(e, _y()).exponent(e.exponent()); + return dv(e, mv()).exponent(e.exponent()); }), - Rh.apply(e, arguments) + kg.apply(e, arguments) ); } - function xy() { - return _y.apply(null, arguments).exponent(0.5); + function bv() { + return mv.apply(null, arguments).exponent(0.5); } - function wy() { + function yv() { var e = [], - t = Gh; + t = zg; function n(n) { if (!isNaN((n = +n))) return t((c(e, n) - 1) / (e.length - 1)); @@ -171989,12 +172560,12 @@ object-assign return arguments.length ? ((t = e), n) : t; }), (n.copy = function() { - return wy(t).domain(e); + return yv(t).domain(e); }), - Rh.apply(n, arguments) + kg.apply(n, arguments) ); } - function My() { + function vv() { var e, t, n, @@ -172005,7 +172576,7 @@ object-assign s = 0, c = 0.5, u = 1, - l = Gh, + l = zg, f = !1; function d(e) { return isNaN((e = +e)) @@ -172046,46 +172617,46 @@ object-assign } ); } - function ky() { - var e = rg(My()(Gh)); + function _v() { + var e = Wg(vv()(zg)); return ( (e.copy = function() { - return my(e, ky()); + return dv(e, _v()); }), - Rh.apply(e, arguments) + kg.apply(e, arguments) ); } - function Sy() { - var e = pg(My()).domain([0.1, 1, 10]); + function wv() { + var e = em(vv()).domain([0.1, 1, 10]); return ( (e.copy = function() { - return my(e, Sy()).base(e.base()); + return dv(e, wv()).base(e.base()); }), - Rh.apply(e, arguments) + kg.apply(e, arguments) ); } - function Ay() { - var e = bg(My()); + function xv() { + var e = om(vv()); return ( (e.copy = function() { - return my(e, Ay()).constant(e.constant()); + return dv(e, xv()).constant(e.constant()); }), - Rh.apply(e, arguments) + kg.apply(e, arguments) ); } - function Oy() { - var e = wg(My()); + function Mv() { + var e = um(vv()); return ( (e.copy = function() { - return my(e, Oy()).exponent(e.exponent()); + return dv(e, Mv()).exponent(e.exponent()); }), - Rh.apply(e, arguments) + kg.apply(e, arguments) ); } - function Ey() { - return Oy.apply(null, arguments).exponent(0.5); + function kv() { + return Mv.apply(null, arguments).exponent(0.5); } - var Ty = function(e) { + var Sv = function(e) { for ( var t = (e.length / 6) | 0, n = new Array(t), r = 0; r < t; @@ -172094,32 +172665,32 @@ object-assign n[r] = '#' + e.slice(6 * r, 6 * ++r); return n; }, - Cy = Ty( + Ov = Sv( '1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf' ), - Ly = Ty('7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666'), - Py = Ty('1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666'), - Dy = Ty( + Ev = Sv('7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666'), + Av = Sv('1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666'), + Tv = Sv( 'a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928' ), - zy = Ty( + Cv = Sv( 'fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2' ), - Ny = Ty('b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc'), - jy = Ty( + Lv = Sv('b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc'), + Pv = Sv( 'e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999' ), - Ry = Ty('66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3'), - Iy = Ty( + Dv = Sv('66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3'), + jv = Sv( '8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f' ), - Fy = Ty( + zv = Sv( '4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab' ), - qy = function(e) { - return Nn(e[e.length - 1]); + Nv = function(e) { + return Bn(e[e.length - 1]); }, - By = new Array(3) + Rv = new Array(3) .concat( 'd8b365f5f5f55ab4ac', 'a6611adfc27d80cdc1018571', @@ -172131,9 +172702,9 @@ object-assign '5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30', '5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30' ) - .map(Ty), - Hy = qy(By), - Yy = new Array(3) + .map(Sv), + Iv = Nv(Rv), + Fv = new Array(3) .concat( 'af8dc3f7f7f77fbf7b', '7b3294c2a5cfa6dba0008837', @@ -172145,9 +172716,9 @@ object-assign '40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b', '40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b' ) - .map(Ty), - Wy = qy(Yy), - Vy = new Array(3) + .map(Sv), + qv = Nv(Fv), + Bv = new Array(3) .concat( 'e9a3c9f7f7f7a1d76a', 'd01c8bf1b6dab8e1864dac26', @@ -172159,9 +172730,9 @@ object-assign '8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419', '8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419' ) - .map(Ty), - Uy = qy(Vy), - Xy = new Array(3) + .map(Sv), + Hv = Nv(Bv), + Yv = new Array(3) .concat( '998ec3f7f7f7f1a340', '5e3c99b2abd2fdb863e66101', @@ -172173,9 +172744,9 @@ object-assign '2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08', '2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08' ) - .map(Ty), - Gy = qy(Xy), - Ky = new Array(3) + .map(Sv), + Wv = Nv(Yv), + Vv = new Array(3) .concat( 'ef8a62f7f7f767a9cf', 'ca0020f4a58292c5de0571b0', @@ -172187,9 +172758,9 @@ object-assign '67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061', '67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061' ) - .map(Ty), - $y = qy(Ky), - Qy = new Array(3) + .map(Sv), + Uv = Nv(Vv), + Xv = new Array(3) .concat( 'ef8a62ffffff999999', 'ca0020f4a582bababa404040', @@ -172201,9 +172772,9 @@ object-assign '67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a', '67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a' ) - .map(Ty), - Jy = qy(Qy), - Zy = new Array(3) + .map(Sv), + Gv = Nv(Xv), + Kv = new Array(3) .concat( 'fc8d59ffffbf91bfdb', 'd7191cfdae61abd9e92c7bb6', @@ -172215,9 +172786,9 @@ object-assign 'a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695', 'a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695' ) - .map(Ty), - ev = qy(Zy), - tv = new Array(3) + .map(Sv), + $v = Nv(Kv), + Qv = new Array(3) .concat( 'fc8d59ffffbf91cf60', 'd7191cfdae61a6d96a1a9641', @@ -172229,9 +172800,9 @@ object-assign 'a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837', 'a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837' ) - .map(Ty), - nv = qy(tv), - rv = new Array(3) + .map(Sv), + Jv = Nv(Qv), + Zv = new Array(3) .concat( 'fc8d59ffffbf99d594', 'd7191cfdae61abdda42b83ba', @@ -172243,9 +172814,9 @@ object-assign '9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2', '9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2' ) - .map(Ty), - ov = qy(rv), - iv = new Array(3) + .map(Sv), + e_ = Nv(Zv), + t_ = new Array(3) .concat( 'e5f5f999d8c92ca25f', 'edf8fbb2e2e266c2a4238b45', @@ -172255,9 +172826,9 @@ object-assign 'f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824', 'f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b' ) - .map(Ty), - av = qy(iv), - sv = new Array(3) + .map(Sv), + n_ = Nv(t_), + r_ = new Array(3) .concat( 'e0ecf49ebcda8856a7', 'edf8fbb3cde38c96c688419d', @@ -172267,9 +172838,9 @@ object-assign 'f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b', 'f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b' ) - .map(Ty), - cv = qy(sv), - uv = new Array(3) + .map(Sv), + o_ = Nv(r_), + i_ = new Array(3) .concat( 'e0f3dba8ddb543a2ca', 'f0f9e8bae4bc7bccc42b8cbe', @@ -172279,9 +172850,9 @@ object-assign 'f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e', 'f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081' ) - .map(Ty), - lv = qy(uv), - fv = new Array(3) + .map(Sv), + a_ = Nv(i_), + s_ = new Array(3) .concat( 'fee8c8fdbb84e34a33', 'fef0d9fdcc8afc8d59d7301f', @@ -172291,9 +172862,9 @@ object-assign 'fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000', 'fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000' ) - .map(Ty), - dv = qy(fv), - pv = new Array(3) + .map(Sv), + c_ = Nv(s_), + u_ = new Array(3) .concat( 'ece2f0a6bddb1c9099', 'f6eff7bdc9e167a9cf02818a', @@ -172303,9 +172874,9 @@ object-assign 'fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450', 'fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636' ) - .map(Ty), - hv = qy(pv), - gv = new Array(3) + .map(Sv), + l_ = Nv(u_), + f_ = new Array(3) .concat( 'ece7f2a6bddb2b8cbe', 'f1eef6bdc9e174a9cf0570b0', @@ -172315,9 +172886,9 @@ object-assign 'fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b', 'fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858' ) - .map(Ty), - mv = qy(gv), - bv = new Array(3) + .map(Sv), + d_ = Nv(f_), + p_ = new Array(3) .concat( 'e7e1efc994c7dd1c77', 'f1eef6d7b5d8df65b0ce1256', @@ -172327,9 +172898,9 @@ object-assign 'f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f', 'f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f' ) - .map(Ty), - yv = qy(bv), - vv = new Array(3) + .map(Sv), + h_ = Nv(p_), + g_ = new Array(3) .concat( 'fde0ddfa9fb5c51b8a', 'feebe2fbb4b9f768a1ae017e', @@ -172339,9 +172910,9 @@ object-assign 'fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177', 'fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a' ) - .map(Ty), - _v = qy(vv), - xv = new Array(3) + .map(Sv), + m_ = Nv(g_), + b_ = new Array(3) .concat( 'edf8b17fcdbb2c7fb8', 'ffffcca1dab441b6c4225ea8', @@ -172351,9 +172922,9 @@ object-assign 'ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84', 'ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58' ) - .map(Ty), - wv = qy(xv), - Mv = new Array(3) + .map(Sv), + y_ = Nv(b_), + v_ = new Array(3) .concat( 'f7fcb9addd8e31a354', 'ffffccc2e69978c679238443', @@ -172363,9 +172934,9 @@ object-assign 'ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32', 'ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529' ) - .map(Ty), - kv = qy(Mv), - Sv = new Array(3) + .map(Sv), + __ = Nv(v_), + w_ = new Array(3) .concat( 'fff7bcfec44fd95f0e', 'ffffd4fed98efe9929cc4c02', @@ -172375,9 +172946,9 @@ object-assign 'ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04', 'ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506' ) - .map(Ty), - Av = qy(Sv), - Ov = new Array(3) + .map(Sv), + x_ = Nv(w_), + M_ = new Array(3) .concat( 'ffeda0feb24cf03b20', 'ffffb2fecc5cfd8d3ce31a1c', @@ -172387,9 +172958,9 @@ object-assign 'ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026', 'ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026' ) - .map(Ty), - Ev = qy(Ov), - Tv = new Array(3) + .map(Sv), + k_ = Nv(M_), + S_ = new Array(3) .concat( 'deebf79ecae13182bd', 'eff3ffbdd7e76baed62171b5', @@ -172399,9 +172970,9 @@ object-assign 'f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594', 'f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b' ) - .map(Ty), - Cv = qy(Tv), - Lv = new Array(3) + .map(Sv), + O_ = Nv(S_), + E_ = new Array(3) .concat( 'e5f5e0a1d99b31a354', 'edf8e9bae4b374c476238b45', @@ -172411,9 +172982,9 @@ object-assign 'f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32', 'f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b' ) - .map(Ty), - Pv = qy(Lv), - Dv = new Array(3) + .map(Sv), + A_ = Nv(E_), + T_ = new Array(3) .concat( 'f0f0f0bdbdbd636363', 'f7f7f7cccccc969696525252', @@ -172423,9 +172994,9 @@ object-assign 'fffffff0f0f0d9d9d9bdbdbd969696737373525252252525', 'fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000' ) - .map(Ty), - zv = qy(Dv), - Nv = new Array(3) + .map(Sv), + C_ = Nv(T_), + L_ = new Array(3) .concat( 'efedf5bcbddc756bb1', 'f2f0f7cbc9e29e9ac86a51a3', @@ -172435,9 +173006,9 @@ object-assign 'fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486', 'fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d' ) - .map(Ty), - jv = qy(Nv), - Rv = new Array(3) + .map(Sv), + P_ = Nv(L_), + D_ = new Array(3) .concat( 'fee0d2fc9272de2d26', 'fee5d9fcae91fb6a4acb181d', @@ -172447,9 +173018,9 @@ object-assign 'fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d', 'fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d' ) - .map(Ty), - Iv = qy(Rv), - Fv = new Array(3) + .map(Sv), + j_ = Nv(D_), + z_ = new Array(3) .concat( 'fee6cefdae6be6550d', 'feeddefdbe85fd8d3cd94701', @@ -172459,9 +173030,9 @@ object-assign 'fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04', 'fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704' ) - .map(Ty), - qv = qy(Fv), - Bv = function(e) { + .map(Sv), + N_ = Nv(z_), + R_ = function(e) { return ( (e = Math.max(0, Math.min(1, e))), 'rgb(' + @@ -172515,34 +173086,34 @@ object-assign ')' ); }, - Hv = zr(Cr(300, 0.5, 0), Cr(-240, 0.5, 1)), - Yv = zr(Cr(-100, 0.75, 0.35), Cr(80, 1.5, 0.8)), - Wv = zr(Cr(260, 0.75, 0.35), Cr(80, 1.5, 0.8)), - Vv = Cr(), - Uv = function(e) { + I_ = Gr(Wr(300, 0.5, 0), Wr(-240, 0.5, 1)), + F_ = Gr(Wr(-100, 0.75, 0.35), Wr(80, 1.5, 0.8)), + q_ = Gr(Wr(260, 0.75, 0.35), Wr(80, 1.5, 0.8)), + B_ = Wr(), + H_ = function(e) { (e < 0 || e > 1) && (e -= Math.floor(e)); var t = Math.abs(e - 0.5); return ( - (Vv.h = 360 * e - 100), - (Vv.s = 1.5 - 1.5 * t), - (Vv.l = 0.8 - 0.9 * t), - Vv + '' + (B_.h = 360 * e - 100), + (B_.s = 1.5 - 1.5 * t), + (B_.l = 0.8 - 0.9 * t), + B_ + '' ); }, - Xv = fn(), - Gv = Math.PI / 3, - Kv = (2 * Math.PI) / 3, - $v = function(e) { + Y_ = bn(), + W_ = Math.PI / 3, + V_ = (2 * Math.PI) / 3, + U_ = function(e) { var t; return ( (e = (0.5 - e) * Math.PI), - (Xv.r = 255 * (t = Math.sin(e)) * t), - (Xv.g = 255 * (t = Math.sin(e + Gv)) * t), - (Xv.b = 255 * (t = Math.sin(e + Kv)) * t), - Xv + '' + (Y_.r = 255 * (t = Math.sin(e)) * t), + (Y_.g = 255 * (t = Math.sin(e + W_)) * t), + (Y_.b = 255 * (t = Math.sin(e + V_)) * t), + Y_ + '' ); }, - Qv = function(e) { + X_ = function(e) { return ( (e = Math.max(0, Math.min(1, e))), 'rgb(' + @@ -172597,84 +173168,70 @@ object-assign ')' ); }; - function Jv(e) { + function G_(e) { var t = e.length; return function(n) { return e[Math.max(0, Math.min(t - 1, Math.floor(n * t)))]; }; } - var Zv = Jv( - Ty( + var K_ = G_( + Sv( '44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725' ) ), - e_ = Jv( - Ty( + $_ = G_( + Sv( '00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf' ) ), - t_ = Jv( - Ty( + Q_ = G_( + Sv( '00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4' ) ), - n_ = Jv( - Ty( + J_ = G_( + Sv( '0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921' ) ), - r_ = function(e) { + Z_ = function(e) { return function() { return e; }; }, - o_ = Math.abs, - i_ = Math.atan2, - a_ = Math.cos, - s_ = Math.max, - c_ = Math.min, - u_ = Math.sin, - l_ = Math.sqrt, - f_ = Math.PI, - d_ = f_ / 2, - p_ = 2 * f_; - function h_(e) { - return e > 1 ? 0 : e < -1 ? f_ : Math.acos(e); - } - function g_(e) { - return e >= 1 ? d_ : e <= -1 ? -d_ : Math.asin(e); - } - function m_(e) { + ew = Math.abs, + tw = Math.atan2, + nw = Math.cos, + rw = Math.max, + ow = Math.min, + iw = Math.sin, + aw = Math.sqrt, + sw = 1e-12, + cw = Math.PI, + uw = cw / 2, + lw = 2 * cw; + function fw(e) { + return e >= 1 ? uw : e <= -1 ? -uw : Math.asin(e); + } + function dw(e) { return e.innerRadius; } - function b_(e) { + function pw(e) { return e.outerRadius; } - function y_(e) { + function hw(e) { return e.startAngle; } - function v_(e) { + function gw(e) { return e.endAngle; } - function __(e) { + function mw(e) { return e && e.padAngle; } - function x_(e, t, n, r, o, i, a, s) { - var c = n - e, - u = r - t, - l = a - o, - f = s - i, - d = f * c - l * u; - if (!(d * d < 1e-12)) - return [ - e + (d = (l * (t - i) - f * (e - o)) / d) * c, - t + d * u - ]; - } - function w_(e, t, n, r, o, i, a) { + function bw(e, t, n, r, o, i, a) { var s = e - n, c = t - r, - u = (a ? i : -i) / l_(s * s + c * c), + u = (a ? i : -i) / aw(s * s + c * c), l = u * c, f = -u * s, d = e + l, @@ -172686,192 +173243,210 @@ object-assign y = h - d, v = g - p, _ = y * y + v * v, - x = o - i, - w = d * g - h * p, - M = (v < 0 ? -1 : 1) * l_(s_(0, x * x * _ - w * w)), - k = (w * v - y * M) / _, - S = (-w * y - v * M) / _, - A = (w * v + y * M) / _, - O = (-w * y + v * M) / _, - E = k - m, + w = o - i, + x = d * g - h * p, + M = (v < 0 ? -1 : 1) * aw(rw(0, w * w * _ - x * x)), + k = (x * v - y * M) / _, + S = (-x * y - v * M) / _, + O = (x * v + y * M) / _, + E = (-x * y + v * M) / _, + A = k - m, T = S - b, - C = A - m, - L = O - b; + C = O - m, + L = E - b; return ( - E * E + T * T > C * C + L * L && ((k = A), (S = O)), + A * A + T * T > C * C + L * L && ((k = O), (S = E)), { cx: k, cy: S, x01: -l, y01: -f, - x11: k * (o / x - 1), - y11: S * (o / x - 1) + x11: k * (o / w - 1), + y11: S * (o / w - 1) } ); } - var M_ = function() { - var e = m_, - t = b_, - n = r_(0), + var yw = function() { + var e = dw, + t = pw, + n = Z_(0), r = null, - o = y_, - i = v_, - a = __, + o = hw, + i = gw, + a = mw, s = null; function c() { var c, u, - l = +e.apply(this, arguments), - f = +t.apply(this, arguments), - d = o.apply(this, arguments) - d_, - p = i.apply(this, arguments) - d_, - h = o_(p - d), - g = p > d; + l, + f = +e.apply(this, arguments), + d = +t.apply(this, arguments), + p = o.apply(this, arguments) - uw, + h = i.apply(this, arguments) - uw, + g = ew(h - p), + m = h > p; if ( - (s || (s = c = da()), - f < l && ((u = f), (f = l), (l = u)), - f > 1e-12) + (s || (s = c = Fa()), + d < f && ((u = d), (d = f), (f = u)), + d > sw) ) - if (h > p_ - 1e-12) - s.moveTo(f * a_(d), f * u_(d)), - s.arc(0, 0, f, d, p, !g), - l > 1e-12 && - (s.moveTo(l * a_(p), l * u_(p)), - s.arc(0, 0, l, p, d, g)); + if (g > lw - sw) + s.moveTo(d * nw(p), d * iw(p)), + s.arc(0, 0, d, p, h, !m), + f > sw && + (s.moveTo(f * nw(h), f * iw(h)), + s.arc(0, 0, f, h, p, m)); else { - var m, - b, - y = d, + var b, + y, v = p, - _ = d, - x = p, - w = h, - M = h, - k = a.apply(this, arguments) / 2, - S = - k > 1e-12 && - (r ? +r.apply(this, arguments) : l_(l * l + f * f)), - A = c_(o_(f - l) / 2, +n.apply(this, arguments)), - O = A, - E = A; - if (S > 1e-12) { - var T = g_((S / l) * u_(k)), - C = g_((S / f) * u_(k)); - (w -= 2 * T) > 1e-12 - ? ((_ += T *= g ? 1 : -1), (x -= T)) - : ((w = 0), (_ = x = (d + p) / 2)), - (M -= 2 * C) > 1e-12 - ? ((y += C *= g ? 1 : -1), (v -= C)) - : ((M = 0), (y = v = (d + p) / 2)); - } - var L = f * a_(y), - P = f * u_(y), - D = l * a_(x), - z = l * u_(x); - if (A > 1e-12) { + _ = h, + w = p, + x = h, + M = g, + k = g, + S = a.apply(this, arguments) / 2, + O = + S > sw && + (r ? +r.apply(this, arguments) : aw(f * f + d * d)), + E = ow(ew(d - f) / 2, +n.apply(this, arguments)), + A = E, + T = E; + if (O > sw) { + var C = fw((O / f) * iw(S)), + L = fw((O / d) * iw(S)); + (M -= 2 * C) > sw + ? ((w += C *= m ? 1 : -1), (x -= C)) + : ((M = 0), (w = x = (p + h) / 2)), + (k -= 2 * L) > sw + ? ((v += L *= m ? 1 : -1), (_ -= L)) + : ((k = 0), (v = _ = (p + h) / 2)); + } + var P = d * nw(v), + D = d * iw(v), + j = f * nw(x), + z = f * iw(x); + if (E > sw) { var N, - j = f * a_(v), - R = f * u_(v), - I = l * a_(_), - F = l * u_(_); - if (h < f_ && (N = x_(L, P, I, F, j, R, D, z))) { - var q = L - N[0], - B = P - N[1], - H = j - N[0], - Y = R - N[1], - W = + R = d * nw(_), + I = d * iw(_), + F = f * nw(w), + q = f * iw(w); + if ( + g < cw && + (N = (function(e, t, n, r, o, i, a, s) { + var c = n - e, + u = r - t, + l = a - o, + f = s - i, + d = f * c - l * u; + if (!(d * d < sw)) + return [ + e + (d = (l * (t - i) - f * (e - o)) / d) * c, + t + d * u + ]; + })(P, D, F, q, R, I, j, z)) + ) { + var B = P - N[0], + H = D - N[1], + Y = R - N[0], + W = I - N[1], + V = 1 / - u_( - h_( - (q * H + B * Y) / - (l_(q * q + B * B) * l_(H * H + Y * Y)) - ) / 2 + iw( + ((l = + (B * Y + H * W) / + (aw(B * B + H * H) * aw(Y * Y + W * W))) > 1 + ? 0 + : l < -1 + ? cw + : Math.acos(l)) / 2 ), - V = l_(N[0] * N[0] + N[1] * N[1]); - (O = c_(A, (l - V) / (W - 1))), - (E = c_(A, (f - V) / (W + 1))); + U = aw(N[0] * N[0] + N[1] * N[1]); + (A = ow(E, (f - U) / (V - 1))), + (T = ow(E, (d - U) / (V + 1))); } } - M > 1e-12 - ? E > 1e-12 - ? ((m = w_(I, F, L, P, f, E, g)), - (b = w_(j, R, D, z, f, E, g)), - s.moveTo(m.cx + m.x01, m.cy + m.y01), - E < A + k > sw + ? T > sw + ? ((b = bw(F, q, P, D, d, T, m)), + (y = bw(R, I, j, z, d, T, m)), + s.moveTo(b.cx + b.x01, b.cy + b.y01), + T < E ? s.arc( - m.cx, - m.cy, - E, - i_(m.y01, m.x01), - i_(b.y01, b.x01), - !g + b.cx, + b.cy, + T, + tw(b.y01, b.x01), + tw(y.y01, y.x01), + !m ) : (s.arc( - m.cx, - m.cy, - E, - i_(m.y01, m.x01), - i_(m.y11, m.x11), - !g + b.cx, + b.cy, + T, + tw(b.y01, b.x01), + tw(b.y11, b.x11), + !m ), s.arc( 0, 0, - f, - i_(m.cy + m.y11, m.cx + m.x11), - i_(b.cy + b.y11, b.cx + b.x11), - !g + d, + tw(b.cy + b.y11, b.cx + b.x11), + tw(y.cy + y.y11, y.cx + y.x11), + !m ), s.arc( - b.cx, - b.cy, - E, - i_(b.y11, b.x11), - i_(b.y01, b.x01), - !g + y.cx, + y.cy, + T, + tw(y.y11, y.x11), + tw(y.y01, y.x01), + !m ))) - : (s.moveTo(L, P), s.arc(0, 0, f, y, v, !g)) - : s.moveTo(L, P), - l > 1e-12 && w > 1e-12 - ? O > 1e-12 - ? ((m = w_(D, z, j, R, l, -O, g)), - (b = w_(L, P, I, F, l, -O, g)), - s.lineTo(m.cx + m.x01, m.cy + m.y01), - O < A + : (s.moveTo(P, D), s.arc(0, 0, d, v, _, !m)) + : s.moveTo(P, D), + f > sw && M > sw + ? A > sw + ? ((b = bw(j, z, R, I, f, -A, m)), + (y = bw(P, D, F, q, f, -A, m)), + s.lineTo(b.cx + b.x01, b.cy + b.y01), + A < E ? s.arc( - m.cx, - m.cy, - O, - i_(m.y01, m.x01), - i_(b.y01, b.x01), - !g + b.cx, + b.cy, + A, + tw(b.y01, b.x01), + tw(y.y01, y.x01), + !m ) : (s.arc( - m.cx, - m.cy, - O, - i_(m.y01, m.x01), - i_(m.y11, m.x11), - !g + b.cx, + b.cy, + A, + tw(b.y01, b.x01), + tw(b.y11, b.x11), + !m ), s.arc( 0, 0, - l, - i_(m.cy + m.y11, m.cx + m.x11), - i_(b.cy + b.y11, b.cx + b.x11), - g + f, + tw(b.cy + b.y11, b.cx + b.x11), + tw(y.cy + y.y11, y.cx + y.x11), + m ), s.arc( - b.cx, - b.cy, - O, - i_(b.y11, b.x11), - i_(b.y01, b.x01), - !g + y.cx, + y.cy, + A, + tw(y.y11, y.x11), + tw(y.y01, y.x01), + !m ))) - : s.arc(0, 0, l, x, _, g) - : s.lineTo(D, z); + : s.arc(0, 0, f, x, w, m) + : s.lineTo(j, z); } else s.moveTo(0, 0); if ((s.closePath(), c)) return (s = null), c + '' || null; @@ -172886,22 +173461,22 @@ object-assign (+o.apply(this, arguments) + +i.apply(this, arguments)) / 2 - - f_ / 2; - return [a_(r) * n, u_(r) * n]; + cw / 2; + return [nw(r) * n, iw(r) * n]; }), (c.innerRadius = function(t) { return arguments.length - ? ((e = 'function' == typeof t ? t : r_(+t)), c) + ? ((e = 'function' == typeof t ? t : Z_(+t)), c) : e; }), (c.outerRadius = function(e) { return arguments.length - ? ((t = 'function' == typeof e ? e : r_(+e)), c) + ? ((t = 'function' == typeof e ? e : Z_(+e)), c) : t; }), (c.cornerRadius = function(e) { return arguments.length - ? ((n = 'function' == typeof e ? e : r_(+e)), c) + ? ((n = 'function' == typeof e ? e : Z_(+e)), c) : n; }), (c.padRadius = function(e) { @@ -172911,23 +173486,23 @@ object-assign ? null : 'function' == typeof e ? e - : r_(+e)), + : Z_(+e)), c) : r; }), (c.startAngle = function(e) { return arguments.length - ? ((o = 'function' == typeof e ? e : r_(+e)), c) + ? ((o = 'function' == typeof e ? e : Z_(+e)), c) : o; }), (c.endAngle = function(e) { return arguments.length - ? ((i = 'function' == typeof e ? e : r_(+e)), c) + ? ((i = 'function' == typeof e ? e : Z_(+e)), c) : i; }), (c.padAngle = function(e) { return arguments.length - ? ((a = 'function' == typeof e ? e : r_(+e)), c) + ? ((a = 'function' == typeof e ? e : Z_(+e)), c) : a; }), (c.context = function(e) { @@ -172938,10 +173513,10 @@ object-assign c ); }; - function k_(e) { + function vw(e) { this._context = e; } - k_.prototype = { + vw.prototype = { areaStart: function() { this._line = 0; }, @@ -172971,21 +173546,21 @@ object-assign } } }; - var S_ = function(e) { - return new k_(e); + var _w = function(e) { + return new vw(e); }; - function A_(e) { + function ww(e) { return e[0]; } - function O_(e) { + function xw(e) { return e[1]; } - var E_ = function() { - var e = A_, - t = O_, - n = r_(!0), + var Mw = function() { + var e = ww, + t = xw, + n = Z_(!0), r = null, - o = S_, + o = _w, i = null; function a(a) { var s, @@ -172993,7 +173568,7 @@ object-assign u, l = a.length, f = !1; - for (null == r && (i = o((u = da()))), s = 0; s <= l; ++s) + for (null == r && (i = o((u = Fa()))), s = 0; s <= l; ++s) !(s < l && n((c = a[s]), s, a)) === f && ((f = !f) ? i.lineStart() : i.lineEnd()), f && i.point(+e(c, s, a), +t(c, s, a)); @@ -173002,17 +173577,17 @@ object-assign return ( (a.x = function(t) { return arguments.length - ? ((e = 'function' == typeof t ? t : r_(+t)), a) + ? ((e = 'function' == typeof t ? t : Z_(+t)), a) : e; }), (a.y = function(e) { return arguments.length - ? ((t = 'function' == typeof e ? e : r_(+e)), a) + ? ((t = 'function' == typeof e ? e : Z_(+e)), a) : t; }), (a.defined = function(e) { return arguments.length - ? ((n = 'function' == typeof e ? e : r_(!!e)), a) + ? ((n = 'function' == typeof e ? e : Z_(!!e)), a) : n; }), (a.curve = function(e) { @@ -173028,14 +173603,14 @@ object-assign a ); }, - T_ = function() { - var e = A_, + kw = function() { + var e = ww, t = null, - n = r_(0), - r = O_, - o = r_(!0), + n = Z_(0), + r = xw, + o = Z_(!0), i = null, - a = S_, + a = _w, s = null; function c(c) { var u, @@ -173047,7 +173622,7 @@ object-assign g = !1, m = new Array(h), b = new Array(h); - for (null == i && (s = a((p = da()))), u = 0; u <= h; ++u) { + for (null == i && (s = a((p = Fa()))), u = 0; u <= h; ++u) { if (!(u < h && o((d = c[u]), u, c)) === g) if ((g = !g)) (l = u), s.areaStart(), s.lineStart(); else { @@ -173070,7 +173645,7 @@ object-assign if (p) return (s = null), p + '' || null; } function u() { - return E_() + return Mw() .defined(o) .curve(a) .context(i); @@ -173078,14 +173653,14 @@ object-assign return ( (c.x = function(n) { return arguments.length - ? ((e = 'function' == typeof n ? n : r_(+n)), + ? ((e = 'function' == typeof n ? n : Z_(+n)), (t = null), c) : e; }), (c.x0 = function(t) { return arguments.length - ? ((e = 'function' == typeof t ? t : r_(+t)), c) + ? ((e = 'function' == typeof t ? t : Z_(+t)), c) : e; }), (c.x1 = function(e) { @@ -173095,20 +173670,20 @@ object-assign ? null : 'function' == typeof e ? e - : r_(+e)), + : Z_(+e)), c) : t; }), (c.y = function(e) { return arguments.length - ? ((n = 'function' == typeof e ? e : r_(+e)), + ? ((n = 'function' == typeof e ? e : Z_(+e)), (r = null), c) : n; }), (c.y0 = function(e) { return arguments.length - ? ((n = 'function' == typeof e ? e : r_(+e)), c) + ? ((n = 'function' == typeof e ? e : Z_(+e)), c) : n; }), (c.y1 = function(e) { @@ -173118,7 +173693,7 @@ object-assign ? null : 'function' == typeof e ? e - : r_(+e)), + : Z_(+e)), c) : r; }), @@ -173139,7 +173714,7 @@ object-assign }), (c.defined = function(e) { return arguments.length - ? ((o = 'function' == typeof e ? e : r_(!!e)), c) + ? ((o = 'function' == typeof e ? e : Z_(!!e)), c) : o; }), (c.curve = function(e) { @@ -173155,19 +173730,19 @@ object-assign c ); }, - C_ = function(e, t) { + Sw = function(e, t) { return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; }, - L_ = function(e) { + Ow = function(e) { return e; }, - P_ = function() { - var e = L_, - t = C_, + Ew = function() { + var e = Ow, + t = Sw, n = null, - r = r_(0), - o = r_(p_), - i = r_(0); + r = Z_(0), + o = Z_(lw), + i = Z_(0); function a(a) { var s, c, @@ -173180,8 +173755,8 @@ object-assign g = new Array(d), m = +r.apply(this, arguments), b = Math.min( - p_, - Math.max(-p_, o.apply(this, arguments) - m) + lw, + Math.max(-lw, o.apply(this, arguments) - m) ), y = Math.min(Math.abs(b) / d, i.apply(this, arguments)), v = y * (b < 0 ? -1 : 1); @@ -173216,7 +173791,7 @@ object-assign return ( (a.value = function(t) { return arguments.length - ? ((e = 'function' == typeof t ? t : r_(+t)), a) + ? ((e = 'function' == typeof t ? t : Z_(+t)), a) : e; }), (a.sortValues = function(e) { @@ -173227,33 +173802,33 @@ object-assign }), (a.startAngle = function(e) { return arguments.length - ? ((r = 'function' == typeof e ? e : r_(+e)), a) + ? ((r = 'function' == typeof e ? e : Z_(+e)), a) : r; }), (a.endAngle = function(e) { return arguments.length - ? ((o = 'function' == typeof e ? e : r_(+e)), a) + ? ((o = 'function' == typeof e ? e : Z_(+e)), a) : o; }), (a.padAngle = function(e) { return arguments.length - ? ((i = 'function' == typeof e ? e : r_(+e)), a) + ? ((i = 'function' == typeof e ? e : Z_(+e)), a) : i; }), a ); }, - D_ = N_(S_); - function z_(e) { + Aw = Cw(_w); + function Tw(e) { this._curve = e; } - function N_(e) { + function Cw(e) { function t(t) { - return new z_(e(t)); + return new Tw(e(t)); } return (t._curve = e), t; } - function j_(e) { + function Lw(e) { var t = e.curve; return ( (e.angle = e.x), @@ -173261,12 +173836,12 @@ object-assign (e.radius = e.y), delete e.y, (e.curve = function(e) { - return arguments.length ? t(N_(e)) : t()._curve; + return arguments.length ? t(Cw(e)) : t()._curve; }), e ); } - z_.prototype = { + Tw.prototype = { areaStart: function() { this._curve.areaStart(); }, @@ -173283,11 +173858,11 @@ object-assign this._curve.point(t * Math.sin(e), t * -Math.cos(e)); } }; - var R_ = function() { - return j_(E_().curve(D_)); + var Pw = function() { + return Lw(Mw().curve(Aw)); }, - I_ = function() { - var e = T_().curve(D_), + Dw = function() { + var e = kw().curve(Aw), t = e.curve, n = e.lineX0, r = e.lineX1, @@ -173307,53 +173882,53 @@ object-assign (e.outerRadius = e.y1), delete e.y1, (e.lineStartAngle = function() { - return j_(n()); + return Lw(n()); }), delete e.lineX0, (e.lineEndAngle = function() { - return j_(r()); + return Lw(r()); }), delete e.lineX1, (e.lineInnerRadius = function() { - return j_(o()); + return Lw(o()); }), delete e.lineY0, (e.lineOuterRadius = function() { - return j_(i()); + return Lw(i()); }), delete e.lineY1, (e.curve = function(e) { - return arguments.length ? t(N_(e)) : t()._curve; + return arguments.length ? t(Cw(e)) : t()._curve; }), e ); }, - F_ = function(e, t) { + jw = function(e, t) { return [ (t = +t) * Math.cos((e -= Math.PI / 2)), t * Math.sin(e) ]; }, - q_ = Array.prototype.slice; - function B_(e) { + zw = Array.prototype.slice; + function Nw(e) { return e.source; } - function H_(e) { + function Rw(e) { return e.target; } - function Y_(e) { - var t = B_, - n = H_, - r = A_, - o = O_, + function Iw(e) { + var t = Nw, + n = Rw, + r = ww, + o = xw, i = null; function a() { var a, - s = q_.call(arguments), + s = zw.call(arguments), c = t.apply(this, s), u = n.apply(this, s); if ( - (i || (i = a = da()), + (i || (i = a = Fa()), e( i, +r.apply(this, ((s[0] = c), s)), @@ -173374,12 +173949,12 @@ object-assign }), (a.x = function(e) { return arguments.length - ? ((r = 'function' == typeof e ? e : r_(+e)), a) + ? ((r = 'function' == typeof e ? e : Z_(+e)), a) : r; }), (a.y = function(e) { return arguments.length - ? ((o = 'function' == typeof e ? e : r_(+e)), a) + ? ((o = 'function' == typeof e ? e : Z_(+e)), a) : o; }), (a.context = function(e) { @@ -173390,41 +173965,41 @@ object-assign a ); } - function W_(e, t, n, r, o) { + function Fw(e, t, n, r, o) { e.moveTo(t, n), e.bezierCurveTo((t = (t + r) / 2), n, t, o, r, o); } - function V_(e, t, n, r, o) { + function qw(e, t, n, r, o) { e.moveTo(t, n), e.bezierCurveTo(t, (n = (n + o) / 2), r, n, r, o); } - function U_(e, t, n, r, o) { - var i = F_(t, n), - a = F_(t, (n = (n + o) / 2)), - s = F_(r, n), - c = F_(r, o); + function Bw(e, t, n, r, o) { + var i = jw(t, n), + a = jw(t, (n = (n + o) / 2)), + s = jw(r, n), + c = jw(r, o); e.moveTo(i[0], i[1]), e.bezierCurveTo(a[0], a[1], s[0], s[1], c[0], c[1]); } - function X_() { - return Y_(W_); + function Hw() { + return Iw(Fw); } - function G_() { - return Y_(V_); + function Yw() { + return Iw(qw); } - function K_() { - var e = Y_(U_); + function Ww() { + var e = Iw(Bw); return ( (e.angle = e.x), delete e.x, (e.radius = e.y), delete e.y, e ); } - var $_ = { + var Vw = { draw: function(e, t) { - var n = Math.sqrt(t / f_); - e.moveTo(n, 0), e.arc(0, 0, n, 0, p_); + var n = Math.sqrt(t / cw); + e.moveTo(n, 0), e.arc(0, 0, n, 0, lw); } }, - Q_ = { + Uw = { draw: function(e, t) { var n = Math.sqrt(t / 5) / 2; e.moveTo(-3 * n, -n), @@ -173442,12 +174017,12 @@ object-assign e.closePath(); } }, - J_ = Math.sqrt(1 / 3), - Z_ = 2 * J_, - ex = { + Xw = Math.sqrt(1 / 3), + Gw = 2 * Xw, + Kw = { draw: function(e, t) { - var n = Math.sqrt(t / Z_), - r = n * J_; + var n = Math.sqrt(t / Gw), + r = n * Xw; e.moveTo(0, -n), e.lineTo(r, 0), e.lineTo(0, n), @@ -173455,17 +174030,17 @@ object-assign e.closePath(); } }, - tx = Math.sin(f_ / 10) / Math.sin((7 * f_) / 10), - nx = Math.sin(p_ / 10) * tx, - rx = -Math.cos(p_ / 10) * tx, - ox = { + $w = Math.sin(cw / 10) / Math.sin((7 * cw) / 10), + Qw = Math.sin(lw / 10) * $w, + Jw = -Math.cos(lw / 10) * $w, + Zw = { draw: function(e, t) { var n = Math.sqrt(0.8908130915292852 * t), - r = nx * n, - o = rx * n; + r = Qw * n, + o = Jw * n; e.moveTo(0, -n), e.lineTo(r, o); for (var i = 1; i < 5; ++i) { - var a = (p_ * i) / 5, + var a = (lw * i) / 5, s = Math.cos(a), c = Math.sin(a); e.lineTo(c * n, -s * n), @@ -173474,56 +174049,56 @@ object-assign e.closePath(); } }, - ix = { + ex = { draw: function(e, t) { var n = Math.sqrt(t), r = -n / 2; e.rect(r, r, n, n); } }, - ax = Math.sqrt(3), - sx = { + tx = Math.sqrt(3), + nx = { draw: function(e, t) { - var n = -Math.sqrt(t / (3 * ax)); + var n = -Math.sqrt(t / (3 * tx)); e.moveTo(0, 2 * n), - e.lineTo(-ax * n, -n), - e.lineTo(ax * n, -n), + e.lineTo(-tx * n, -n), + e.lineTo(tx * n, -n), e.closePath(); } }, - cx = Math.sqrt(3) / 2, - ux = 1 / Math.sqrt(12), - lx = 3 * (ux / 2 + 1), - fx = { + rx = Math.sqrt(3) / 2, + ox = 1 / Math.sqrt(12), + ix = 3 * (ox / 2 + 1), + ax = { draw: function(e, t) { - var n = Math.sqrt(t / lx), + var n = Math.sqrt(t / ix), r = n / 2, - o = n * ux, + o = n * ox, i = r, - a = n * ux + n, + a = n * ox + n, s = -i, c = a; e.moveTo(r, o), e.lineTo(i, a), e.lineTo(s, c), - e.lineTo(-0.5 * r - cx * o, cx * r + -0.5 * o), - e.lineTo(-0.5 * i - cx * a, cx * i + -0.5 * a), - e.lineTo(-0.5 * s - cx * c, cx * s + -0.5 * c), - e.lineTo(-0.5 * r + cx * o, -0.5 * o - cx * r), - e.lineTo(-0.5 * i + cx * a, -0.5 * a - cx * i), - e.lineTo(-0.5 * s + cx * c, -0.5 * c - cx * s), + e.lineTo(-0.5 * r - rx * o, rx * r + -0.5 * o), + e.lineTo(-0.5 * i - rx * a, rx * i + -0.5 * a), + e.lineTo(-0.5 * s - rx * c, rx * s + -0.5 * c), + e.lineTo(-0.5 * r + rx * o, -0.5 * o - rx * r), + e.lineTo(-0.5 * i + rx * a, -0.5 * a - rx * i), + e.lineTo(-0.5 * s + rx * c, -0.5 * c - rx * s), e.closePath(); } }, - dx = [$_, Q_, ex, ix, ox, sx, fx], - px = function() { - var e = r_($_), - t = r_(64), + sx = [Vw, Uw, Kw, ex, Zw, nx, ax], + cx = function() { + var e = Z_(Vw), + t = Z_(64), n = null; function r() { var r; if ( - (n || (n = r = da()), + (n || (n = r = Fa()), e .apply(this, arguments) .draw(n, +t.apply(this, arguments)), @@ -173534,12 +174109,12 @@ object-assign return ( (r.type = function(t) { return arguments.length - ? ((e = 'function' == typeof t ? t : r_(t)), r) + ? ((e = 'function' == typeof t ? t : Z_(t)), r) : e; }), (r.size = function(e) { return arguments.length - ? ((t = 'function' == typeof e ? e : r_(+e)), r) + ? ((t = 'function' == typeof e ? e : Z_(+e)), r) : t; }), (r.context = function(e) { @@ -173550,8 +174125,8 @@ object-assign r ); }, - hx = function() {}; - function gx(e, t, n) { + ux = function() {}; + function lx(e, t, n) { e._context.bezierCurveTo( (2 * e._x0 + e._x1) / 3, (2 * e._y0 + e._y1) / 3, @@ -173561,10 +174136,10 @@ object-assign (e._y0 + 4 * e._y1 + n) / 6 ); } - function mx(e) { + function fx(e) { this._context = e; } - mx.prototype = { + fx.prototype = { areaStart: function() { this._line = 0; }, @@ -173578,7 +174153,7 @@ object-assign lineEnd: function() { switch (this._point) { case 3: - gx(this, this._x1, this._y1); + lx(this, this._x1, this._y1); case 2: this._context.lineTo(this._x1, this._y1); } @@ -173604,7 +174179,7 @@ object-assign (5 * this._y0 + this._y1) / 6 ); default: - gx(this, e, t); + lx(this, e, t); } (this._x0 = this._x1), (this._x1 = e), @@ -173612,15 +174187,15 @@ object-assign (this._y1 = t); } }; - var bx = function(e) { - return new mx(e); + var dx = function(e) { + return new fx(e); }; - function yx(e) { + function px(e) { this._context = e; } - yx.prototype = { - areaStart: hx, - areaEnd: hx, + px.prototype = { + areaStart: ux, + areaEnd: ux, 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); @@ -173666,7 +174241,7 @@ object-assign ); break; default: - gx(this, e, t); + lx(this, e, t); } (this._x0 = this._x1), (this._x1 = e), @@ -173674,13 +174249,13 @@ object-assign (this._y1 = t); } }; - var vx = function(e) { - return new yx(e); + var hx = function(e) { + return new px(e); }; - function _x(e) { + function gx(e) { this._context = e; } - _x.prototype = { + gx.prototype = { areaStart: function() { this._line = 0; }, @@ -173715,7 +174290,7 @@ object-assign case 3: this._point = 4; default: - gx(this, e, t); + lx(this, e, t); } (this._x0 = this._x1), (this._x1 = e), @@ -173723,13 +174298,13 @@ object-assign (this._y1 = t); } }; - var xx = function(e) { - return new _x(e); + var mx = function(e) { + return new gx(e); }; - function wx(e, t) { - (this._basis = new mx(e)), (this._beta = t); + function bx(e, t) { + (this._basis = new fx(e)), (this._beta = t); } - wx.prototype = { + bx.prototype = { lineStart: function() { (this._x = []), (this._y = []), this._basis.lineStart(); }, @@ -173759,9 +174334,9 @@ object-assign this._x.push(+e), this._y.push(+t); } }; - var Mx = (function e(t) { + var yx = (function e(t) { function n(e) { - return 1 === t ? new mx(e) : new wx(e, t); + return 1 === t ? new fx(e) : new bx(e, t); } return ( (n.beta = function(t) { @@ -173770,7 +174345,7 @@ object-assign n ); })(0.85); - function kx(e, t, n) { + function vx(e, t, n) { e._context.bezierCurveTo( e._x1 + e._k * (e._x2 - e._x0), e._y1 + e._k * (e._y2 - e._y0), @@ -173780,10 +174355,10 @@ object-assign e._y2 ); } - function Sx(e, t) { + function _x(e, t) { (this._context = e), (this._k = (1 - t) / 6); } - Sx.prototype = { + _x.prototype = { areaStart: function() { this._line = 0; }, @@ -173800,7 +174375,7 @@ object-assign this._context.lineTo(this._x2, this._y2); break; case 3: - kx(this, this._x1, this._y1); + vx(this, this._x1, this._y1); } (this._line || (0 !== this._line && 1 === this._point)) && this._context.closePath(), @@ -173820,7 +174395,7 @@ object-assign case 2: this._point = 3; default: - kx(this, e, t); + vx(this, e, t); } (this._x0 = this._x1), (this._x1 = this._x2), @@ -173830,9 +174405,9 @@ object-assign (this._y2 = t); } }; - var Ax = (function e(t) { + var wx = (function e(t) { function n(e) { - return new Sx(e, t); + return new _x(e, t); } return ( (n.tension = function(t) { @@ -173841,12 +174416,12 @@ object-assign n ); })(0); - function Ox(e, t) { + function xx(e, t) { (this._context = e), (this._k = (1 - t) / 6); } - Ox.prototype = { - areaStart: hx, - areaEnd: hx, + xx.prototype = { + areaStart: ux, + areaEnd: ux, 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); @@ -173880,7 +174455,7 @@ object-assign (this._point = 3), (this._x5 = e), (this._y5 = t); break; default: - kx(this, e, t); + vx(this, e, t); } (this._x0 = this._x1), (this._x1 = this._x2), @@ -173890,9 +174465,9 @@ object-assign (this._y2 = t); } }; - var Ex = (function e(t) { + var Mx = (function e(t) { function n(e) { - return new Ox(e, t); + return new xx(e, t); } return ( (n.tension = function(t) { @@ -173901,10 +174476,10 @@ object-assign n ); })(0); - function Tx(e, t) { + function kx(e, t) { (this._context = e), (this._k = (1 - t) / 6); } - Tx.prototype = { + kx.prototype = { areaStart: function() { this._line = 0; }, @@ -173937,7 +174512,7 @@ object-assign case 3: this._point = 4; default: - kx(this, e, t); + vx(this, e, t); } (this._x0 = this._x1), (this._x1 = this._x2), @@ -173947,9 +174522,9 @@ object-assign (this._y2 = t); } }; - var Cx = (function e(t) { + var Sx = (function e(t) { function n(e) { - return new Tx(e, t); + return new kx(e, t); } return ( (n.tension = function(t) { @@ -173958,18 +174533,18 @@ object-assign n ); })(0); - function Lx(e, t, n) { + function Ox(e, t, n) { var r = e._x1, o = e._y1, i = e._x2, a = e._y2; - if (e._l01_a > 1e-12) { + if (e._l01_a > sw) { var s = 2 * e._l01_2a + 3 * e._l01_a * e._l12_a + e._l12_2a, c = 3 * e._l01_a * (e._l01_a + e._l12_a); (r = (r * s - e._x0 * e._l12_2a + e._x2 * e._l01_2a) / c), (o = (o * s - e._y0 * e._l12_2a + e._y2 * e._l01_2a) / c); } - if (e._l23_a > 1e-12) { + if (e._l23_a > sw) { var u = 2 * e._l23_2a + 3 * e._l23_a * e._l12_a + e._l12_2a, l = 3 * e._l23_a * (e._l23_a + e._l12_a); (i = (i * u + e._x1 * e._l23_2a - t * e._l12_2a) / l), @@ -173977,10 +174552,10 @@ object-assign } e._context.bezierCurveTo(r, o, i, a, e._x2, e._y2); } - function Px(e, t) { + function Ex(e, t) { (this._context = e), (this._alpha = t); } - Px.prototype = { + Ex.prototype = { areaStart: function() { this._line = 0; }, @@ -174024,7 +174599,7 @@ object-assign case 2: this._point = 3; default: - Lx(this, e, t); + Ox(this, e, t); } (this._l01_a = this._l12_a), (this._l12_a = this._l23_a), @@ -174038,9 +174613,9 @@ object-assign (this._y2 = t); } }; - var Dx = (function e(t) { + var Ax = (function e(t) { function n(e) { - return t ? new Px(e, t) : new Sx(e, 0); + return t ? new Ex(e, t) : new _x(e, 0); } return ( (n.alpha = function(t) { @@ -174049,12 +174624,12 @@ object-assign n ); })(0.5); - function zx(e, t) { + function Tx(e, t) { (this._context = e), (this._alpha = t); } - zx.prototype = { - areaStart: hx, - areaEnd: hx, + Tx.prototype = { + areaStart: ux, + areaEnd: ux, 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); @@ -174095,7 +174670,7 @@ object-assign (this._point = 3), (this._x5 = e), (this._y5 = t); break; default: - Lx(this, e, t); + Ox(this, e, t); } (this._l01_a = this._l12_a), (this._l12_a = this._l23_a), @@ -174109,9 +174684,9 @@ object-assign (this._y2 = t); } }; - var Nx = (function e(t) { + var Cx = (function e(t) { function n(e) { - return t ? new zx(e, t) : new Ox(e, 0); + return t ? new Tx(e, t) : new xx(e, 0); } return ( (n.alpha = function(t) { @@ -174120,10 +174695,10 @@ object-assign n ); })(0.5); - function jx(e, t) { + function Lx(e, t) { (this._context = e), (this._alpha = t); } - jx.prototype = { + Lx.prototype = { areaStart: function() { this._line = 0; }, @@ -174163,7 +174738,7 @@ object-assign case 3: this._point = 4; default: - Lx(this, e, t); + Ox(this, e, t); } (this._l01_a = this._l12_a), (this._l12_a = this._l23_a), @@ -174177,9 +174752,9 @@ object-assign (this._y2 = t); } }; - var Rx = (function e(t) { + var Px = (function e(t) { function n(e) { - return t ? new jx(e, t) : new Tx(e, 0); + return t ? new Lx(e, t) : new kx(e, 0); } return ( (n.alpha = function(t) { @@ -174188,12 +174763,12 @@ object-assign n ); })(0.5); - function Ix(e) { + function Dx(e) { this._context = e; } - Ix.prototype = { - areaStart: hx, - areaEnd: hx, + Dx.prototype = { + areaStart: ux, + areaEnd: ux, lineStart: function() { this._point = 0; }, @@ -174208,28 +174783,28 @@ object-assign : ((this._point = 1), this._context.moveTo(e, t)); } }; - var Fx = function(e) { - return new Ix(e); + var jx = function(e) { + return new Dx(e); }; - function qx(e) { + function zx(e) { return e < 0 ? -1 : 1; } - function Bx(e, t, n) { + function Nx(e, t, n) { var r = e._x1 - e._x0, o = t - e._x1, i = (e._y1 - e._y0) / (r || (o < 0 && -0)), a = (n - e._y1) / (o || (r < 0 && -0)), s = (i * o + a * r) / (r + o); return ( - (qx(i) + qx(a)) * + (zx(i) + zx(a)) * Math.min(Math.abs(i), Math.abs(a), 0.5 * Math.abs(s)) || 0 ); } - function Hx(e, t) { + function Rx(e, t) { var n = e._x1 - e._x0; return n ? ((3 * (e._y1 - e._y0)) / n - t) / 2 : t; } - function Yx(e, t, n) { + function Ix(e, t, n) { var r = e._x0, o = e._y0, i = e._x1, @@ -174244,25 +174819,25 @@ object-assign a ); } - function Wx(e) { + function Fx(e) { this._context = e; } - function Vx(e) { - this._context = new Ux(e); + function qx(e) { + this._context = new Bx(e); } - function Ux(e) { + function Bx(e) { this._context = e; } - function Xx(e) { - return new Wx(e); + function Hx(e) { + return new Fx(e); } - function Gx(e) { - return new Vx(e); + function Yx(e) { + return new qx(e); } - function Kx(e) { + function Wx(e) { this._context = e; } - function $x(e) { + function Vx(e) { var t, n, r = e.length - 1, @@ -174290,7 +174865,7 @@ object-assign i[t] = 2 * e[t + 1] - o[t + 1]; return [o, i]; } - (Wx.prototype = { + (Fx.prototype = { areaStart: function() { this._line = 0; }, @@ -174307,7 +174882,7 @@ object-assign this._context.lineTo(this._x1, this._y1); break; case 3: - Yx(this, this._t0, Hx(this, this._t0)); + Ix(this, this._t0, Rx(this, this._t0)); } (this._line || (0 !== this._line && 1 === this._point)) && this._context.closePath(), @@ -174328,10 +174903,10 @@ object-assign break; case 2: (this._point = 3), - Yx(this, Hx(this, (n = Bx(this, e, t))), n); + Ix(this, Rx(this, (n = Nx(this, e, t))), n); break; default: - Yx(this, this._t0, (n = Bx(this, e, t))); + Ix(this, this._t0, (n = Nx(this, e, t))); } (this._x0 = this._x1), (this._x1 = e), @@ -174341,13 +174916,13 @@ object-assign } } }), - ((Vx.prototype = Object.create(Wx.prototype)).point = function( + ((qx.prototype = Object.create(Fx.prototype)).point = function( e, t ) { - Wx.prototype.point.call(this, t, e); + Fx.prototype.point.call(this, t, e); }), - (Ux.prototype = { + (Bx.prototype = { moveTo: function(e, t) { this._context.moveTo(t, e); }, @@ -174361,7 +174936,7 @@ object-assign this._context.bezierCurveTo(t, e, r, n, i, o); } }), - (Kx.prototype = { + (Wx.prototype = { areaStart: function() { this._line = 0; }, @@ -174385,7 +174960,7 @@ object-assign this._context.lineTo(e[1], t[1]); else for ( - var r = $x(e), o = $x(t), i = 0, a = 1; + var r = Vx(e), o = Vx(t), i = 0, a = 1; a < n; ++i, ++a ) @@ -174406,13 +174981,13 @@ object-assign this._x.push(+e), this._y.push(+t); } }); - var Qx = function(e) { - return new Kx(e); + var Ux = function(e) { + return new Wx(e); }; - function Jx(e, t) { + function Xx(e, t) { (this._context = e), (this._t = t); } - Jx.prototype = { + Xx.prototype = { areaStart: function() { this._line = 0; }, @@ -174455,16 +175030,16 @@ object-assign (this._x = e), (this._y = t); } }; - var Zx = function(e) { - return new Jx(e, 0.5); + var Gx = function(e) { + return new Xx(e, 0.5); }; - function ew(e) { - return new Jx(e, 0); + function Kx(e) { + return new Xx(e, 0); } - function tw(e) { - return new Jx(e, 1); + function $x(e) { + return new Xx(e, 1); } - var nw = function(e, t) { + var Qx = function(e, t) { if ((o = e.length) > 1) for ( var n, r, o, i = 1, a = e[t[0]], s = a.length; @@ -174474,18 +175049,18 @@ object-assign for (r = a, a = e[t[i]], n = 0; n < s; ++n) a[n][1] += a[n][0] = isNaN(r[n][1]) ? r[n][0] : r[n][1]; }, - rw = function(e) { + Jx = function(e) { for (var t = e.length, n = new Array(t); --t >= 0; ) n[t] = t; return n; }; - function ow(e, t) { + function Zx(e, t) { return e[t]; } - var iw = function() { - var e = r_([]), - t = rw, - n = nw, - r = ow; + var eM = function() { + var e = Z_([]), + t = Jx, + n = Qx, + r = Zx; function o(o) { var i, a, @@ -174508,43 +175083,43 @@ object-assign return ( (o.keys = function(t) { return arguments.length - ? ((e = 'function' == typeof t ? t : r_(q_.call(t))), o) + ? ((e = 'function' == typeof t ? t : Z_(zw.call(t))), o) : e; }), (o.value = function(e) { return arguments.length - ? ((r = 'function' == typeof e ? e : r_(+e)), o) + ? ((r = 'function' == typeof e ? e : Z_(+e)), o) : r; }), (o.order = function(e) { return arguments.length ? ((t = null == e - ? rw + ? Jx : 'function' == typeof e ? e - : r_(q_.call(e))), + : Z_(zw.call(e))), o) : t; }), (o.offset = function(e) { return arguments.length - ? ((n = null == e ? nw : e), o) + ? ((n = null == e ? Qx : e), o) : n; }), o ); }, - aw = function(e, t) { + tM = function(e, t) { if ((r = e.length) > 0) { for (var n, r, o, i = 0, a = e[0].length; i < a; ++i) { for (o = n = 0; n < r; ++n) o += e[n][i][1] || 0; if (o) for (n = 0; n < r; ++n) e[n][i][1] /= o; } - nw(e, t); + Qx(e, t); } }, - sw = function(e, t) { + nM = function(e, t) { if ((s = e.length) > 0) for ( var n, r, o, i, a, s, c = 0, u = e[t[0]].length; @@ -174558,16 +175133,16 @@ object-assign ? ((r[1] = a), (r[0] = a += o)) : (r[0] = i); }, - cw = function(e, t) { + rM = function(e, t) { if ((n = e.length) > 0) { for (var n, r = 0, o = e[t[0]], i = o.length; r < i; ++r) { for (var a = 0, s = 0; a < n; ++a) s += e[a][r][1] || 0; o[r][1] += o[r][0] = -s / 2; } - nw(e, t); + Qx(e, t); } }, - uw = function(e, t) { + oM = function(e, t) { if ((o = e.length) > 0 && (r = (n = e[t[0]]).length) > 0) { for (var n, r, o, i = 0, a = 1; a < r; ++a) { for (var s = 0, c = 0, u = 0; s < o; ++s) { @@ -174586,40 +175161,40 @@ object-assign } (n[a - 1][1] += n[a - 1][0] = i), c && (i -= u / c); } - (n[a - 1][1] += n[a - 1][0] = i), nw(e, t); + (n[a - 1][1] += n[a - 1][0] = i), Qx(e, t); } }, - lw = function(e) { - var t = e.map(fw); - return rw(e).sort(function(e, n) { + iM = function(e) { + var t = e.map(aM); + return Jx(e).sort(function(e, n) { return t[e] - t[n]; }); }; - function fw(e) { + function aM(e) { for (var t, n = -1, r = 0, o = e.length, i = -1 / 0; ++n < o; ) (t = +e[n][1]) > i && ((i = t), (r = n)); return r; } - var dw = function(e) { - var t = e.map(pw); - return rw(e).sort(function(e, n) { + var sM = function(e) { + var t = e.map(cM); + return Jx(e).sort(function(e, n) { return t[e] - t[n]; }); }; - function pw(e) { + function cM(e) { for (var t, n = 0, r = -1, o = e.length; ++r < o; ) (t = +e[r][1]) && (n += t); return n; } - var hw = function(e) { - return dw(e).reverse(); + var uM = function(e) { + return sM(e).reverse(); }, - gw = function(e) { + lM = function(e) { var t, n, r = e.length, - o = e.map(pw), - i = lw(e), + o = e.map(cM), + i = iM(e), a = 0, s = 0, c = [], @@ -174631,38 +175206,38 @@ object-assign : ((s += o[n]), u.push(n)); return u.reverse().concat(c); }, - mw = function(e) { - return rw(e).reverse(); + fM = function(e) { + return Jx(e).reverse(); }, - bw = Date.prototype.toISOString + dM = Date.prototype.toISOString ? function(e) { return e.toISOString(); } - : Bm('%Y-%m-%dT%H:%M:%S.%LZ'), - yw = +new Date('2000-01-01T00:00:00.000Z') + : Cb('%Y-%m-%dT%H:%M:%S.%LZ'), + pM = +new Date('2000-01-01T00:00:00.000Z') ? function(e) { var t = new Date(e); return isNaN(t) ? null : t; } - : Hm('%Y-%m-%dT%H:%M:%S.%LZ'), - vw = function(e) { + : Lb('%Y-%m-%dT%H:%M:%S.%LZ'), + hM = function(e) { return function() { return e; }; }; - function _w(e) { + function gM(e) { return e[0]; } - function xw(e) { + function mM(e) { return e[1]; } - function ww() { + function bM() { this._ = null; } - function Mw(e) { + function yM(e) { e.U = e.C = e.L = e.R = e.P = e.N = null; } - function kw(e, t) { + function vM(e, t) { var n = t, r = t.R, o = n.U; @@ -174673,7 +175248,7 @@ object-assign n.R && (n.R.U = n), (r.L = n); } - function Sw(e, t) { + function _M(e, t) { var n = t, r = t.L, o = n.U; @@ -174684,12 +175259,12 @@ object-assign n.L && (n.L.U = n), (r.R = n); } - function Aw(e) { + function wM(e) { for (; e.L; ) e = e.L; return e; } - ww.prototype = { - constructor: ww, + bM.prototype = { + constructor: bM, insert: function(e, t) { var n, r, o; if (e) { @@ -174706,7 +175281,7 @@ object-assign n = e; } else this._ - ? ((e = Aw(this._)), + ? ((e = wM(this._)), (t.P = null), (t.N = e), (e.P = e.L = t), @@ -174716,16 +175291,16 @@ object-assign n === (r = n.U).L ? (o = r.R) && o.C ? ((n.C = o.C = !1), (r.C = !0), (e = r)) - : (e === n.R && (kw(this, n), (n = (e = n).U)), + : (e === n.R && (vM(this, n), (n = (e = n).U)), (n.C = !1), (r.C = !0), - Sw(this, r)) + _M(this, r)) : (o = r.L) && o.C ? ((n.C = o.C = !1), (r.C = !0), (e = r)) - : (e === n.L && (Sw(this, n), (n = (e = n).U)), + : (e === n.L && (_M(this, n), (n = (e = n).U)), (n.C = !1), (r.C = !0), - kw(this, r)), + vM(this, r)), (n = e.U); this._.C = !1; }, @@ -174740,7 +175315,7 @@ object-assign i = e.L, a = e.R; if ( - ((n = i ? (a ? Aw(a) : i) : a), + ((n = i ? (a ? wM(a) : i) : a), o ? (o.L === e ? (o.L = n) : (o.R = n)) : (this._ = n), i && a ? ((r = n.C), @@ -174766,30 +175341,30 @@ object-assign if (e === o.L) { if ( ((t = o.R).C && - ((t.C = !1), (o.C = !0), kw(this, o), (t = o.R)), + ((t.C = !1), (o.C = !0), vM(this, o), (t = o.R)), (t.L && t.L.C) || (t.R && t.R.C)) ) { (t.R && t.R.C) || ((t.L.C = !1), (t.C = !0), - Sw(this, t), + _M(this, t), (t = o.R)), (t.C = o.C), (o.C = t.R.C = !1), - kw(this, o), + vM(this, o), (e = this._); break; } } else if ( ((t = o.L).C && - ((t.C = !1), (o.C = !0), Sw(this, o), (t = o.L)), + ((t.C = !1), (o.C = !0), _M(this, o), (t = o.L)), (t.L && t.L.C) || (t.R && t.R.C)) ) { (t.L && t.L.C) || - ((t.R.C = !1), (t.C = !0), kw(this, t), (t = o.L)), + ((t.R.C = !1), (t.C = !0), vM(this, t), (t = o.L)), (t.C = o.C), (o.C = t.L.C = !1), - Sw(this, o), + _M(this, o), (e = this._); break; } @@ -174799,32 +175374,32 @@ object-assign } } }; - var Ow = ww; - function Ew(e, t, n, r) { + var xM = bM; + function MM(e, t, n, r) { var o = [null, null], - i = Jw.push(o) - 1; + i = XM.push(o) - 1; return ( (o.left = e), (o.right = t), - n && Cw(o, e, t, n), - r && Cw(o, t, e, r), - $w[e.index].halfedges.push(i), - $w[t.index].halfedges.push(i), + n && SM(o, e, t, n), + r && SM(o, t, e, r), + VM[e.index].halfedges.push(i), + VM[t.index].halfedges.push(i), o ); } - function Tw(e, t, n) { + function kM(e, t, n) { var r = [t, n]; return (r.left = e), r; } - function Cw(e, t, n, r) { + function SM(e, t, n, r) { e[0] || e[1] ? e.left === n ? (e[1] = r) : (e[0] = r) : ((e[0] = r), (e.left = t), (e.right = n)); } - function Lw(e, t, n, r, o) { + function OM(e, t, n, r, o) { var i, a = e[0], s = e[1], @@ -174877,7 +175452,7 @@ object-assign } } } - function Pw(e, t, n, r, o) { + function EM(e, t, n, r, o) { var i = e[1]; if (i) return !0; var a, @@ -174931,7 +175506,7 @@ object-assign } return (e[0] = c), (e[1] = i), !0; } - function Dw(e, t) { + function AM(e, t) { var n = e.site, r = t.left, o = t.right; @@ -174945,19 +175520,19 @@ object-assign Math.atan2(r[0] - o[0], o[1] - r[1])) ); } - function zw(e, t) { + function TM(e, t) { return t[+(t.left !== e.site)]; } - function Nw(e, t) { + function CM(e, t) { return t[+(t.left === e.site)]; } - var jw, - Rw = []; - function Iw() { - Mw(this), + var LM, + PM = []; + function DM() { + yM(this), (this.x = this.y = this.arc = this.site = this.cy = null); } - function Fw(e) { + function jM(e) { var t = e.P, n = e.N; if (t && n) { @@ -174972,18 +175547,18 @@ object-assign l = i[0] - a, f = i[1] - s, d = 2 * (c * f - u * l); - if (!(d >= -eM)) { + if (!(d >= -KM)) { var p = c * c + u * u, h = l * l + f * f, g = (f * p - u * h) / d, m = (c * h - l * p) / d, - b = Rw.pop() || new Iw(); + b = PM.pop() || new DM(); (b.arc = e), (b.site = o), (b.x = g + a), (b.y = (b.cy = m + s) + Math.sqrt(g * g + m * m)), (e.circle = b); - for (var y = null, v = Qw._; v; ) + for (var y = null, v = UM._; v; ) if (b.y < v.y || (b.y === v.y && b.x <= v.x)) { if (!v.L) { y = v.P; @@ -174997,32 +175572,32 @@ object-assign } v = v.R; } - Qw.insert(y, b), y || (jw = b); + UM.insert(y, b), y || (LM = b); } } } } - function qw(e) { + function zM(e) { var t = e.circle; t && - (t.P || (jw = t.N), - Qw.remove(t), - Rw.push(t), - Mw(t), + (t.P || (LM = t.N), + UM.remove(t), + PM.push(t), + yM(t), (e.circle = null)); } - var Bw = []; - function Hw() { - Mw(this), (this.edge = this.site = this.circle = null); + var NM = []; + function RM() { + yM(this), (this.edge = this.site = this.circle = null); } - function Yw(e) { - var t = Bw.pop() || new Hw(); + function IM(e) { + var t = NM.pop() || new RM(); return (t.site = e), t; } - function Ww(e) { - qw(e), Kw.remove(e), Bw.push(e), Mw(e); + function FM(e) { + zM(e), WM.remove(e), NM.push(e), yM(e); } - function Vw(e) { + function qM(e) { var t = e.circle, n = t.x, r = t.cy, @@ -175030,42 +175605,42 @@ object-assign i = e.P, a = e.N, s = [e]; - Ww(e); + FM(e); for ( var c = i; c.circle && - Math.abs(n - c.circle.x) < Zw && - Math.abs(r - c.circle.cy) < Zw; + Math.abs(n - c.circle.x) < GM && + Math.abs(r - c.circle.cy) < GM; ) - (i = c.P), s.unshift(c), Ww(c), (c = i); - s.unshift(c), qw(c); + (i = c.P), s.unshift(c), FM(c), (c = i); + s.unshift(c), zM(c); for ( var u = a; u.circle && - Math.abs(n - u.circle.x) < Zw && - Math.abs(r - u.circle.cy) < Zw; + Math.abs(n - u.circle.x) < GM && + Math.abs(r - u.circle.cy) < GM; ) - (a = u.N), s.push(u), Ww(u), (u = a); - s.push(u), qw(u); + (a = u.N), s.push(u), FM(u), (u = a); + s.push(u), zM(u); var l, f = s.length; for (l = 1; l < f; ++l) - (u = s[l]), (c = s[l - 1]), Cw(u.edge, c.site, u.site, o); + (u = s[l]), (c = s[l - 1]), SM(u.edge, c.site, u.site, o); (c = s[0]), - ((u = s[f - 1]).edge = Ew(c.site, u.site, null, o)), - Fw(c), - Fw(u); + ((u = s[f - 1]).edge = MM(c.site, u.site, null, o)), + jM(c), + jM(u); } - function Uw(e) { - for (var t, n, r, o, i = e[0], a = e[1], s = Kw._; s; ) - if ((r = Xw(s, a) - i) > Zw) s = s.L; + function BM(e) { + for (var t, n, r, o, i = e[0], a = e[1], s = WM._; s; ) + if ((r = HM(s, a) - i) > GM) s = s.L; else { - if (!((o = i - Gw(s, a)) > Zw)) { - r > -Zw + if (!((o = i - YM(s, a)) > GM)) { + r > -GM ? ((t = s.P), (n = s)) - : o > -Zw + : o > -GM ? ((t = s), (n = s.N)) : (t = n = s); break; @@ -175077,21 +175652,21 @@ object-assign s = s.R; } !(function(e) { - $w[e.index] = { site: e, halfedges: [] }; + VM[e.index] = { site: e, halfedges: [] }; })(e); - var c = Yw(e); - if ((Kw.insert(t, c), t || n)) { + var c = IM(e); + if ((WM.insert(t, c), t || n)) { if (t === n) return ( - qw(t), - (n = Yw(t.site)), - Kw.insert(c, n), - (c.edge = n.edge = Ew(t.site, c.site)), - Fw(t), - void Fw(n) + zM(t), + (n = IM(t.site)), + WM.insert(c, n), + (c.edge = n.edge = MM(t.site, c.site)), + jM(t), + void jM(n) ); if (n) { - qw(t), qw(n); + zM(t), zM(n); var u = t.site, l = u[0], f = u[1], @@ -175104,15 +175679,15 @@ object-assign y = d * d + p * p, v = g * g + m * m, _ = [(m * y - p * v) / b + l, (d * v - g * y) / b + f]; - Cw(n.edge, u, h, _), - (c.edge = Ew(u, e, null, _)), - (n.edge = Ew(e, h, null, _)), - Fw(t), - Fw(n); - } else c.edge = Ew(t.site, c.site); + SM(n.edge, u, h, _), + (c.edge = MM(u, e, null, _)), + (n.edge = MM(e, h, null, _)), + jM(t), + jM(n); + } else c.edge = MM(t.site, c.site); } } - function Xw(e, t) { + function HM(e, t) { var n = e.site, r = n[0], o = n[1], @@ -175137,53 +175712,53 @@ object-assign r : (r + s) / 2; } - function Gw(e, t) { + function YM(e, t) { var n = e.N; - if (n) return Xw(n, t); + if (n) return HM(n, t); var r = e.site; return r[1] === t ? r[0] : 1 / 0; } - var Kw, - $w, - Qw, - Jw, - Zw = 1e-6, - eM = 1e-12; - function tM(e, t) { + var WM, + VM, + UM, + XM, + GM = 1e-6, + KM = 1e-12; + function $M(e, t) { return t[1] - e[1] || t[0] - e[0]; } - function nM(e, t) { + function QM(e, t) { var n, r, o, - i = e.sort(tM).pop(); + i = e.sort($M).pop(); for ( - Jw = [], - $w = new Array(e.length), - Kw = new Ow(), - Qw = new Ow(); + XM = [], + VM = new Array(e.length), + WM = new xM(), + UM = new xM(); ; ) if ( - ((o = jw), + ((o = LM), i && (!o || i[1] < o.y || (i[1] === o.y && i[0] < o.x))) ) (i[0] === n && i[1] === r) || - (Uw(i), (n = i[0]), (r = i[1])), + (BM(i), (n = i[0]), (r = i[1])), (i = e.pop()); else { if (!o) break; - Vw(o.arc); + qM(o.arc); } if ( ((function() { - for (var e, t, n, r, o = 0, i = $w.length; o < i; ++o) - if ((e = $w[o]) && (r = (t = e.halfedges).length)) { + for (var e, t, n, r, o = 0, i = VM.length; o < i; ++o) + if ((e = VM[o]) && (r = (t = e.halfedges).length)) { var a = new Array(r), s = new Array(r); for (n = 0; n < r; ++n) - (a[n] = n), (s[n] = Dw(e, Jw[t[n]])); + (a[n] = n), (s[n] = AM(e, XM[t[n]])); for ( a.sort(function(e, t) { return s[t] - s[e]; @@ -175203,12 +175778,12 @@ object-assign c = +t[1][0], u = +t[1][1]; !(function(e, t, n, r) { - for (var o, i = Jw.length; i--; ) - (Pw((o = Jw[i]), e, t, n, r) && - Lw(o, e, t, n, r) && - (Math.abs(o[0][0] - o[1][0]) > Zw || - Math.abs(o[0][1] - o[1][1]) > Zw)) || - delete Jw[i]; + for (var o, i = XM.length; i--; ) + (EM((o = XM[i]), e, t, n, r) && + OM(o, e, t, n, r) && + (Math.abs(o[0][0] - o[1][0]) > GM || + Math.abs(o[0][1] - o[1][1]) > GM)) || + delete XM[i]; })(a, s, c, u), (function(e, t, n, r) { var o, @@ -175223,33 +175798,33 @@ object-assign p, h, g, - m = $w.length, + m = VM.length, b = !0; for (o = 0; o < m; ++o) - if ((i = $w[o])) { + if ((i = VM[o])) { for (a = i.site, s = (c = i.halfedges).length; s--; ) - Jw[c[s]] || c.splice(s, 1); + XM[c[s]] || c.splice(s, 1); for (s = 0, u = c.length; s < u; ) - (h = (p = Nw(i, Jw[c[s]]))[0]), + (h = (p = CM(i, XM[c[s]]))[0]), (g = p[1]), - (f = (l = zw(i, Jw[c[++s % u]]))[0]), + (f = (l = TM(i, XM[c[++s % u]]))[0]), (d = l[1]), - (Math.abs(h - f) > Zw || Math.abs(g - d) > Zw) && + (Math.abs(h - f) > GM || Math.abs(g - d) > GM) && (c.splice( s, 0, - Jw.push( - Tw( + XM.push( + kM( a, p, - Math.abs(h - e) < Zw && r - g > Zw - ? [e, Math.abs(f - e) < Zw ? d : r] - : Math.abs(g - r) < Zw && n - h > Zw - ? [Math.abs(d - r) < Zw ? f : n, r] - : Math.abs(h - n) < Zw && g - t > Zw - ? [n, Math.abs(f - n) < Zw ? d : t] - : Math.abs(g - t) < Zw && h - e > Zw - ? [Math.abs(d - t) < Zw ? f : e, t] + Math.abs(h - e) < GM && r - g > GM + ? [e, Math.abs(f - e) < GM ? d : r] + : Math.abs(g - r) < GM && n - h > GM + ? [Math.abs(d - r) < GM ? f : n, r] + : Math.abs(h - n) < GM && g - t > GM + ? [n, Math.abs(f - n) < GM ? d : t] + : Math.abs(g - t) < GM && h - e > GM + ? [Math.abs(d - t) < GM ? f : e, t] : null ) ) - 1 @@ -175261,41 +175836,41 @@ object-assign var y, v, _, - x = 1 / 0; + w = 1 / 0; for (o = 0, b = null; o < m; ++o) - (i = $w[o]) && + (i = VM[o]) && (_ = (y = (a = i.site)[0] - e) * y + - (v = a[1] - t) * v) < x && - ((x = _), (b = i)); + (v = a[1] - t) * v) < w && + ((w = _), (b = i)); if (b) { - var w = [e, t], + var x = [e, t], M = [e, r], k = [n, r], S = [n, t]; b.halfedges.push( - Jw.push(Tw((a = b.site), w, M)) - 1, - Jw.push(Tw(a, M, k)) - 1, - Jw.push(Tw(a, k, S)) - 1, - Jw.push(Tw(a, S, w)) - 1 + XM.push(kM((a = b.site), x, M)) - 1, + XM.push(kM(a, M, k)) - 1, + XM.push(kM(a, k, S)) - 1, + XM.push(kM(a, S, x)) - 1 ); } } for (o = 0; o < m; ++o) - (i = $w[o]) && (i.halfedges.length || delete $w[o]); + (i = VM[o]) && (i.halfedges.length || delete VM[o]); })(a, s, c, u); } - (this.edges = Jw), - (this.cells = $w), - (Kw = Qw = Jw = $w = null); + (this.edges = XM), + (this.cells = VM), + (WM = UM = XM = VM = null); } - nM.prototype = { - constructor: nM, + QM.prototype = { + constructor: QM, polygons: function() { var e = this.edges; return this.cells.map(function(t) { var n = t.halfedges.map(function(n) { - return zw(t, e[n]); + return TM(t, e[n]); }); return (n.data = t.site.data), n; }); @@ -175374,16 +175949,16 @@ object-assign ); } }; - var rM = function() { - var e = _w, - t = xw, + var JM = function() { + var e = gM, + t = mM, n = null; function r(r) { - return new nM( + return new QM( r.map(function(n, o) { var i = [ - Math.round(e(n, o, r) / Zw) * Zw, - Math.round(t(n, o, r) / Zw) * Zw + Math.round(e(n, o, r) / GM) * GM, + Math.round(t(n, o, r) / GM) * GM ]; return (i.index = o), (i.data = n), i; }), @@ -175402,12 +175977,12 @@ object-assign }), (r.x = function(t) { return arguments.length - ? ((e = 'function' == typeof t ? t : vw(+t)), r) + ? ((e = 'function' == typeof t ? t : hM(+t)), r) : e; }), (r.y = function(e) { return arguments.length - ? ((t = 'function' == typeof e ? e : vw(+e)), r) + ? ((t = 'function' == typeof e ? e : hM(+e)), r) : t; }), (r.extent = function(e) { @@ -175415,51 +175990,38 @@ object-assign ? ((n = null == e ? null - : [ - [+e[0][0], +e[0][1]], - [+e[1][0], +e[1][1]] - ]), + : [[+e[0][0], +e[0][1]], [+e[1][0], +e[1][1]]]), r) - : n && [ - [n[0][0], n[0][1]], - [n[1][0], n[1][1]] - ]; + : n && [[n[0][0], n[0][1]], [n[1][0], n[1][1]]]; }), (r.size = function(e) { return arguments.length - ? ((n = - null == e - ? null - : [ - [0, 0], - [+e[0], +e[1]] - ]), - r) + ? ((n = null == e ? null : [[0, 0], [+e[0], +e[1]]]), r) : n && [n[1][0] - n[0][0], n[1][1] - n[0][1]]; }), r ); }, - oM = function(e) { + ZM = function(e) { return function() { return e; }; }; - function iM(e, t, n) { + function ek(e, t, n) { (this.target = e), (this.type = t), (this.transform = n); } - function aM(e, t, n) { + function tk(e, t, n) { (this.k = e), (this.x = t), (this.y = n); } - aM.prototype = { - constructor: aM, + tk.prototype = { + constructor: tk, scale: function(e) { - return 1 === e ? this : new aM(this.k * e, this.x, this.y); + return 1 === e ? this : new tk(this.k * e, this.x, this.y); }, translate: function(e, t) { return (0 === e) & (0 === t) ? this - : new aM(this.k, this.x + this.k * e, this.y + this.k * t); + : new tk(this.k, this.x + this.k * e, this.y + this.k * t); }, apply: function(e) { return [e[0] * this.k + this.x, e[1] * this.k + this.y]; @@ -175507,22 +176069,22 @@ object-assign ); } }; - var sM = new aM(1, 0, 0); - function cM(e) { - for (; !e.__zoom; ) if (!(e = e.parentNode)) return sM; + var nk = new tk(1, 0, 0); + function rk(e) { + for (; !e.__zoom; ) if (!(e = e.parentNode)) return nk; return e.__zoom; } - function uM() { - ct.stopImmediatePropagation(); + function ok() { + ht.stopImmediatePropagation(); } - cM.prototype = aM.prototype; - var lM = function() { - ct.preventDefault(), ct.stopImmediatePropagation(); + rk.prototype = tk.prototype; + var ik = function() { + ht.preventDefault(), ht.stopImmediatePropagation(); }; - function fM() { - return !ct.ctrlKey && !ct.button; + function ak() { + return !ht.ctrlKey && !ht.button; } - function dM() { + function sk() { var e = this; return e instanceof SVGElement ? (e = e.ownerSVGElement || e).hasAttribute('viewBox') @@ -175530,28 +176092,22 @@ object-assign [(e = e.viewBox.baseVal).x, e.y], [e.x + e.width, e.y + e.height] ] - : [ - [0, 0], - [e.width.baseVal.value, e.height.baseVal.value] - ] - : [ - [0, 0], - [e.clientWidth, e.clientHeight] - ]; + : [[0, 0], [e.width.baseVal.value, e.height.baseVal.value]] + : [[0, 0], [e.clientWidth, e.clientHeight]]; } - function pM() { - return this.__zoom || sM; + function ck() { + return this.__zoom || nk; } - function hM() { + function uk() { return ( - -ct.deltaY * - (1 === ct.deltaMode ? 0.05 : ct.deltaMode ? 1 : 0.002) + -ht.deltaY * + (1 === ht.deltaMode ? 0.05 : ht.deltaMode ? 1 : 0.002) ); } - function gM() { + function lk() { return navigator.maxTouchPoints || 'ontouchstart' in this; } - function mM(e, t, n) { + function fk(e, t, n) { var r = e.invertX(t[0][0]) - n[0][0], o = e.invertX(t[1][0]) - n[1][0], i = e.invertY(t[0][1]) - n[0][1], @@ -175561,63 +176117,62 @@ object-assign a > i ? (i + a) / 2 : Math.min(0, i) || Math.max(0, a) ); } - var bM = function() { + var dk = function() { var e, t, - n = fM, - r = dM, - o = mM, - i = hM, - a = gM, + n = ak, + r = sk, + o = fk, + i = uk, + a = lk, s = [0, 1 / 0], - c = [ - [-1 / 0, -1 / 0], - [1 / 0, 1 / 0] - ], + c = [[-1 / 0, -1 / 0], [1 / 0, 1 / 0]], u = 250, - l = nr, - f = le('start', 'zoom', 'end'), - d = 0; - function p(e) { - e.property('__zoom', pM) - .on('wheel.zoom', _) - .on('mousedown.zoom', x) - .on('dblclick.zoom', w) + l = cr, + f = ge('start', 'zoom', 'end'), + d = 500, + p = 150, + h = 0; + function g(e) { + e.property('__zoom', ck) + .on('wheel.zoom', x) + .on('mousedown.zoom', M) + .on('dblclick.zoom', k) .filter(a) - .on('touchstart.zoom', M) - .on('touchmove.zoom', k) - .on('touchend.zoom touchcancel.zoom', S) + .on('touchstart.zoom', S) + .on('touchmove.zoom', O) + .on('touchend.zoom touchcancel.zoom', E) .style('touch-action', 'none') .style('-webkit-tap-highlight-color', 'rgba(0,0,0,0)'); } - function h(e, t) { + function m(e, t) { return (t = Math.max(s[0], Math.min(s[1], t))) === e.k ? e - : new aM(t, e.x, e.y); + : new tk(t, e.x, e.y); } - function g(e, t, n) { + function b(e, t, n) { var r = t[0] - n[0] * e.k, o = t[1] - n[1] * e.k; - return r === e.x && o === e.y ? e : new aM(e.k, r, o); + return r === e.x && o === e.y ? e : new tk(e.k, r, o); } - function m(e) { + function y(e) { return [(+e[0][0] + +e[1][0]) / 2, (+e[0][1] + +e[1][1]) / 2]; } - function b(e, t, n) { + function v(e, t, n) { e.on('start.zoom', function() { - y(this, arguments).start(); + _(this, arguments).start(); }) .on('interrupt.zoom end.zoom', function() { - y(this, arguments).end(); + _(this, arguments).end(); }) .tween('zoom', function() { var e = this, o = arguments, - i = y(e, o), + i = _(e, o), a = r.apply(e, o), s = null == n - ? m(a) + ? y(a) : 'function' == typeof n ? n.apply(e, o) : n, @@ -175633,25 +176188,25 @@ object-assign else { var t = d(e), n = c / t[2]; - e = new aM(n, s[0] - t[0] * n, s[1] - t[1] * n); + e = new tk(n, s[0] - t[0] * n, s[1] - t[1] * n); } i.zoom(null, e); }; }); } - function y(e, t, n) { - return (!n && e.__zooming) || new v(e, t); + function _(e, t, n) { + return (!n && e.__zooming) || new w(e, t); } - function v(e, t) { + function w(e, t) { (this.that = e), (this.args = t), (this.active = 0), (this.extent = r.apply(e, t)), (this.taps = 0); } - function _() { + function x() { if (n.apply(this, arguments)) { - var e = y(this, arguments), + var e = _(this, arguments), t = this.__zoom, r = Math.max( s[0], @@ -175660,92 +176215,101 @@ object-assign t.k * Math.pow(2, i.apply(this, arguments)) ) ), - a = Tt(this); + a = zt(this); if (e.wheel) (e.mouse[0][0] === a[0] && e.mouse[0][1] === a[1]) || (e.mouse[1] = t.invert((e.mouse[0] = a))), clearTimeout(e.wheel); else { if (t.k === r) return; - (e.mouse = [a, t.invert(a)]), uo(this), e.start(); + (e.mouse = [a, t.invert(a)]), Po(this), e.start(); } - lM(), - (e.wheel = setTimeout(u, 150)), + ik(), + (e.wheel = setTimeout(function() { + (e.wheel = null), e.end(); + }, p)), e.zoom( 'mouse', - o(g(h(t, r), e.mouse[0], e.mouse[1]), e.extent, c) + o(b(m(t, r), e.mouse[0], e.mouse[1]), e.extent, c) ); } - function u() { - (e.wheel = null), e.end(); - } } - function x() { + function M() { if (!t && n.apply(this, arguments)) { - var e = y(this, arguments, !0), - r = wt(ct.view) - .on('mousemove.zoom', u, !0) - .on('mouseup.zoom', l, !0), - i = Tt(this), - a = ct.clientX, - s = ct.clientY; - Nt(ct.view), - uM(), + var e = _(this, arguments, !0), + r = At(ht.view) + .on( + 'mousemove.zoom', + function() { + if ((ik(), !e.moved)) { + var t = ht.clientX - a, + n = ht.clientY - s; + e.moved = t * t + n * n > h; + } + e.zoom( + 'mouse', + o( + b( + e.that.__zoom, + (e.mouse[0] = zt(e.that)), + e.mouse[1] + ), + e.extent, + c + ) + ); + }, + !0 + ) + .on( + 'mouseup.zoom', + function() { + r.on('mousemove.zoom mouseup.zoom', null), + Ht(ht.view, e.moved), + ik(), + e.end(); + }, + !0 + ), + i = zt(this), + a = ht.clientX, + s = ht.clientY; + Bt(ht.view), + ok(), (e.mouse = [i, this.__zoom.invert(i)]), - uo(this), + Po(this), e.start(); } - function u() { - if ((lM(), !e.moved)) { - var t = ct.clientX - a, - n = ct.clientY - s; - e.moved = t * t + n * n > d; - } - e.zoom( - 'mouse', - o( - g(e.that.__zoom, (e.mouse[0] = Tt(e.that)), e.mouse[1]), - e.extent, - c - ) - ); - } - function l() { - r.on('mousemove.zoom mouseup.zoom', null), - jt(ct.view, e.moved), - lM(), - e.end(); - } } - function w() { + function k() { if (n.apply(this, arguments)) { var e = this.__zoom, - t = Tt(this), + t = zt(this), i = e.invert(t), - a = e.k * (ct.shiftKey ? 0.5 : 2), - s = o(g(h(e, a), t, i), r.apply(this, arguments), c); - lM(), + a = e.k * (ht.shiftKey ? 0.5 : 2), + s = o(b(m(e, a), t, i), r.apply(this, arguments), c); + ik(), u > 0 - ? wt(this) + ? At(this) .transition() .duration(u) - .call(b, s, t) - : wt(this).call(p.transform, s); + .call(v, s, t) + : At(this).call(g.transform, s); } } - function M() { + function S() { if (n.apply(this, arguments)) { var t, r, o, i, - a = ct.touches, + a = ht.touches, s = a.length, - c = y(this, arguments, ct.changedTouches.length === s); - for (uM(), r = 0; r < s; ++r) + c = _(this, arguments, ht.changedTouches.length === s); + for (ok(), r = 0; r < s; ++r) (o = a[r]), (i = [ - (i = Lt(this, a, o.identifier)), + (i = Rt(this, a, o.identifier)), this.__zoom.invert(i), o.identifier ]), @@ -175759,27 +176323,27 @@ object-assign (c.taps < 2 && (e = setTimeout(function() { e = null; - }, 500)), - uo(this), + }, d)), + Po(this), c.start()); } } - function k() { + function O() { if (this.__zooming) { var t, n, r, i, - a = y(this, arguments), - s = ct.changedTouches, + a = _(this, arguments), + s = ht.changedTouches, u = s.length; for ( - lM(), e && (e = clearTimeout(e)), a.taps = 0, t = 0; + ik(), e && (e = clearTimeout(e)), a.taps = 0, t = 0; t < u; ++t ) (n = s[t]), - (r = Lt(this, s, n.identifier)), + (r = Rt(this, s, n.identifier)), a.touch0 && a.touch0[2] === n.identifier ? (a.touch0[0] = r) : a.touch1 && @@ -175790,31 +176354,31 @@ object-assign f = a.touch0[1], d = a.touch1[0], p = a.touch1[1], - m = (m = d[0] - l[0]) * m + (m = d[1] - l[1]) * m, - b = (b = p[0] - f[0]) * b + (b = p[1] - f[1]) * b; - (n = h(n, Math.sqrt(m / b))), + h = (h = d[0] - l[0]) * h + (h = d[1] - l[1]) * h, + g = (g = p[0] - f[0]) * g + (g = p[1] - f[1]) * g; + (n = m(n, Math.sqrt(h / g))), (r = [(l[0] + d[0]) / 2, (l[1] + d[1]) / 2]), (i = [(f[0] + p[0]) / 2, (f[1] + p[1]) / 2]); } else { if (!a.touch0) return; (r = a.touch0[0]), (i = a.touch0[1]); } - a.zoom('touch', o(g(n, r, i), a.extent, c)); + a.zoom('touch', o(b(n, r, i), a.extent, c)); } } - function S() { + function E() { if (this.__zooming) { var e, n, - r = y(this, arguments), - o = ct.changedTouches, + r = _(this, arguments), + o = ht.changedTouches, i = o.length; for ( - uM(), + ok(), t && clearTimeout(t), t = setTimeout(function() { t = null; - }, 500), + }, d), e = 0; e < i; ++e @@ -175833,19 +176397,19 @@ object-assign ) r.touch0[1] = this.__zoom.invert(r.touch0[0]); else if ((r.end(), 2 === r.taps)) { - var a = wt(this).on('dblclick.zoom'); + var a = At(this).on('dblclick.zoom'); a && a.apply(this, arguments); } } } return ( - (p.transform = function(e, t, n) { + (g.transform = function(e, t, n) { var r = e.selection ? e.selection() : e; - r.property('__zoom', pM), + r.property('__zoom', ck), e !== r - ? b(e, t, n) + ? v(e, t, n) : r.interrupt().each(function() { - y(this, arguments) + _(this, arguments) .start() .zoom( null, @@ -175856,8 +176420,8 @@ object-assign .end(); }); }), - (p.scaleBy = function(e, t, n) { - p.scaleTo( + (g.scaleBy = function(e, t, n) { + g.scaleTo( e, function() { var e = this.__zoom.k, @@ -175870,15 +176434,15 @@ object-assign n ); }), - (p.scaleTo = function(e, t, n) { - p.transform( + (g.scaleTo = function(e, t, n) { + g.transform( e, function() { var e = r.apply(this, arguments), i = this.__zoom, a = null == n - ? m(e) + ? y(e) : 'function' == typeof n ? n.apply(this, arguments) : n, @@ -175887,13 +176451,13 @@ object-assign 'function' == typeof t ? t.apply(this, arguments) : t; - return o(g(h(i, u), a, s), e, c); + return o(b(m(i, u), a, s), e, c); }, n ); }), - (p.translateBy = function(e, t, n) { - p.transform(e, function() { + (g.translateBy = function(e, t, n) { + g.transform(e, function() { return o( this.__zoom.translate( 'function' == typeof t ? t.apply(this, arguments) : t, @@ -175904,20 +176468,20 @@ object-assign ); }); }), - (p.translateTo = function(e, t, n, i) { - p.transform( + (g.translateTo = function(e, t, n, i) { + g.transform( e, function() { var e = r.apply(this, arguments), a = this.__zoom, s = null == i - ? m(e) + ? y(e) : 'function' == typeof i ? i.apply(this, arguments) : i; return o( - sM + nk .translate(s[0], s[1]) .scale(a.k) .translate( @@ -175935,7 +176499,7 @@ object-assign i ); }), - (v.prototype = { + (w.prototype = { start: function() { return ( 1 == ++this.active && @@ -175967,76 +176531,70 @@ object-assign ); }, emit: function(e) { - ht(new iM(p, e, this.that.__zoom), f.apply, f, [ + _t(new ek(g, e, this.that.__zoom), f.apply, f, [ e, this.that, this.args ]); } }), - (p.wheelDelta = function(e) { + (g.wheelDelta = function(e) { return arguments.length - ? ((i = 'function' == typeof e ? e : oM(+e)), p) + ? ((i = 'function' == typeof e ? e : ZM(+e)), g) : i; }), - (p.filter = function(e) { + (g.filter = function(e) { return arguments.length - ? ((n = 'function' == typeof e ? e : oM(!!e)), p) + ? ((n = 'function' == typeof e ? e : ZM(!!e)), g) : n; }), - (p.touchable = function(e) { + (g.touchable = function(e) { return arguments.length - ? ((a = 'function' == typeof e ? e : oM(!!e)), p) + ? ((a = 'function' == typeof e ? e : ZM(!!e)), g) : a; }), - (p.extent = function(e) { + (g.extent = function(e) { return arguments.length ? ((r = 'function' == typeof e ? e - : oM([ - [+e[0][0], +e[0][1]], - [+e[1][0], +e[1][1]] - ])), - p) + : ZM([[+e[0][0], +e[0][1]], [+e[1][0], +e[1][1]]])), + g) : r; }), - (p.scaleExtent = function(e) { + (g.scaleExtent = function(e) { return arguments.length - ? ((s[0] = +e[0]), (s[1] = +e[1]), p) + ? ((s[0] = +e[0]), (s[1] = +e[1]), g) : [s[0], s[1]]; }), - (p.translateExtent = function(e) { + (g.translateExtent = function(e) { return arguments.length ? ((c[0][0] = +e[0][0]), (c[1][0] = +e[1][0]), (c[0][1] = +e[0][1]), (c[1][1] = +e[1][1]), - p) - : [ - [c[0][0], c[0][1]], - [c[1][0], c[1][1]] - ]; + g) + : [[c[0][0], c[0][1]], [c[1][0], c[1][1]]]; }), - (p.constrain = function(e) { - return arguments.length ? ((o = e), p) : o; + (g.constrain = function(e) { + return arguments.length ? ((o = e), g) : o; }), - (p.duration = function(e) { - return arguments.length ? ((u = +e), p) : u; + (g.duration = function(e) { + return arguments.length ? ((u = +e), g) : u; }), - (p.interpolate = function(e) { - return arguments.length ? ((l = e), p) : l; + (g.interpolate = function(e) { + return arguments.length ? ((l = e), g) : l; }), - (p.on = function() { + (g.on = function() { var e = f.on.apply(f, arguments); - return e === f ? p : e; + return e === f ? g : e; }), - (p.clickDistance = function(e) { + (g.clickDistance = function(e) { return arguments.length - ? ((d = (e = +e) * e), p) - : Math.sqrt(d); + ? ((h = (e = +e) * e), g) + : Math.sqrt(h); }), - p + g ); }; n.d(t, 'version', function() { @@ -176082,13 +176640,13 @@ object-assign return T; }), n.d(t, 'max', function() { - return z; + return j; }), n.d(t, 'mean', function() { - return N; + return z; }), n.d(t, 'median', function() { - return j; + return N; }), n.d(t, 'merge', function() { return R; @@ -176106,7 +176664,7 @@ object-assign return L; }), n.d(t, 'range', function() { - return w; + return x; }), n.d(t, 'scan', function() { return q; @@ -176118,13 +176676,13 @@ object-assign return H; }), n.d(t, 'ticks', function() { - return A; + return O; }), n.d(t, 'tickIncrement', function() { - return O; + return E; }), n.d(t, 'tickStep', function() { - return E; + return A; }), n.d(t, 'transpose', function() { return Y; @@ -176136,1393 +176694,1393 @@ object-assign return V; }), n.d(t, 'axisTop', function() { - return ee; + return ie; }), n.d(t, 'axisRight', function() { - return te; + return ae; }), n.d(t, 'axisBottom', function() { - return ne; + return se; }), n.d(t, 'axisLeft', function() { - return re; + return ce; }), n.d(t, 'brush', function() { - return Ki; + return xa; }), n.d(t, 'brushX', function() { - return Xi; + return _a; }), n.d(t, 'brushY', function() { - return Gi; + return wa; }), n.d(t, 'brushSelection', function() { - return Ui; + return va; }), n.d(t, 'chord', function() { - return oa; + return La; }), n.d(t, 'ribbon', function() { - return ya; + return Va; }), n.d(t, 'nest', function() { - return wa; + return Ka; }), n.d(t, 'set', function() { - return Ca; + return rs; }), n.d(t, 'map', function() { - return xa; + return Ga; }), n.d(t, 'keys', function() { - return La; + return os; }), n.d(t, 'values', function() { - return Pa; + return is; }), n.d(t, 'entries', function() { - return Da; + return as; }), n.d(t, 'color', function() { - return sn; + return pn; }), n.d(t, 'rgb', function() { - return fn; + return bn; }), n.d(t, 'hsl', function() { - return yn; + return kn; }), n.d(t, 'lab', function() { - return lr; + return Mr; }), n.d(t, 'hcl', function() { - return yr; + return Lr; }), n.d(t, 'lch', function() { - return br; + return Cr; }), n.d(t, 'gray', function() { - return ur; + return xr; }), n.d(t, 'cubehelix', function() { - return Cr; + return Wr; }), n.d(t, 'contours', function() { - return Ha; + return ms; }), n.d(t, 'contourDensity', function() { - return Ga; + return xs; }), n.d(t, 'dispatch', function() { - return le; + return ge; }), n.d(t, 'drag', function() { - return Yt; + return Kt; }), n.d(t, 'dragDisable', function() { - return Nt; + return Bt; }), n.d(t, 'dragEnable', function() { - return jt; + return Ht; }), n.d(t, 'dsvFormat', function() { - return ts; + return Ps; }), n.d(t, 'csvParse', function() { - return rs; + return js; }), n.d(t, 'csvParseRows', function() { - return os; + return zs; }), n.d(t, 'csvFormat', function() { - return is; + return Ns; }), n.d(t, 'csvFormatBody', function() { - return as; + return Rs; }), n.d(t, 'csvFormatRows', function() { - return ss; + return Is; }), n.d(t, 'tsvParse', function() { - return us; + return qs; }), n.d(t, 'tsvParseRows', function() { - return ls; + return Bs; }), n.d(t, 'tsvFormat', function() { - return fs; + return Hs; }), n.d(t, 'tsvFormatBody', function() { - return ds; + return Ys; }), n.d(t, 'tsvFormatRows', function() { - return ps; + return Ws; }), n.d(t, 'autoType', function() { - return hs; + return Vs; }), n.d(t, 'easeLinear', function() { - return qo; + return ii; }), n.d(t, 'easeQuad', function() { - return Yo; + return ci; }), n.d(t, 'easeQuadIn', function() { - return Bo; + return ai; }), n.d(t, 'easeQuadOut', function() { - return Ho; + return si; }), n.d(t, 'easeQuadInOut', function() { - return Yo; + return ci; }), n.d(t, 'easeCubic', function() { - return Uo; + return fi; }), n.d(t, 'easeCubicIn', function() { - return Wo; + return ui; }), n.d(t, 'easeCubicOut', function() { - return Vo; + return li; }), n.d(t, 'easeCubicInOut', function() { - return Uo; + return fi; }), n.d(t, 'easePoly', function() { - return Ko; + return hi; }), n.d(t, 'easePolyIn', function() { - return Xo; + return di; }), n.d(t, 'easePolyOut', function() { - return Go; + return pi; }), n.d(t, 'easePolyInOut', function() { - return Ko; + return hi; }), n.d(t, 'easeSin', function() { - return ei; + return vi; }), n.d(t, 'easeSinIn', function() { - return Jo; + return bi; }), n.d(t, 'easeSinOut', function() { - return Zo; + return yi; }), n.d(t, 'easeSinInOut', function() { - return ei; + return vi; }), n.d(t, 'easeExp', function() { - return ri; + return xi; }), n.d(t, 'easeExpIn', function() { - return ti; + return _i; }), n.d(t, 'easeExpOut', function() { - return ni; + return wi; }), n.d(t, 'easeExpInOut', function() { - return ri; + return xi; }), n.d(t, 'easeCircle', function() { - return ai; + return Si; }), n.d(t, 'easeCircleIn', function() { - return oi; + return Mi; }), n.d(t, 'easeCircleOut', function() { - return ii; + return ki; }), n.d(t, 'easeCircleInOut', function() { - return ai; + return Si; }), n.d(t, 'easeBounce', function() { - return ci; + return Ri; }), n.d(t, 'easeBounceIn', function() { - return si; + return Ni; }), n.d(t, 'easeBounceOut', function() { - return ci; + return Ri; }), n.d(t, 'easeBounceInOut', function() { - return ui; + return Ii; }), n.d(t, 'easeBack', function() { - return di; + return Bi; }), n.d(t, 'easeBackIn', function() { - return li; + return Fi; }), n.d(t, 'easeBackOut', function() { - return fi; + return qi; }), n.d(t, 'easeBackInOut', function() { - return di; + return Bi; }), n.d(t, 'easeElastic', function() { - return gi; + return Wi; }), n.d(t, 'easeElasticIn', function() { - return hi; + return Yi; }), n.d(t, 'easeElasticOut', function() { - return gi; + return Wi; }), n.d(t, 'easeElasticInOut', function() { - return mi; + return Vi; }), n.d(t, 'blob', function() { - return ms; + return Xs; }), n.d(t, 'buffer', function() { - return ys; + return Ks; }), n.d(t, 'dsv', function() { - return ws; + return Zs; }), n.d(t, 'csv', function() { - return Ms; + return ec; }), n.d(t, 'tsv', function() { - return ks; + return tc; }), n.d(t, 'image', function() { - return Ss; + return nc; }), n.d(t, 'json', function() { - return Os; + return oc; }), n.d(t, 'text', function() { - return _s; + return Qs; }), n.d(t, 'xml', function() { - return Ts; + return ac; }), n.d(t, 'html', function() { - return Cs; + return sc; }), n.d(t, 'svg', function() { - return Ls; + return cc; }), n.d(t, 'forceCenter', function() { - return Ps; + return uc; }), n.d(t, 'forceCollide', function() { - return Vs; + return xc; }), n.d(t, 'forceLink', function() { - return Gs; + return Sc; }), n.d(t, 'forceManyBody', function() { - return Zs; + return Lc; }), n.d(t, 'forceRadial', function() { - return ec; + return Pc; }), n.d(t, 'forceSimulation', function() { - return Js; + return Cc; }), n.d(t, 'forceX', function() { - return tc; + return Dc; }), n.d(t, 'forceY', function() { - return nc; + return jc; }), n.d(t, 'formatDefaultLocale', function() { - return yc; + return Qc; }), n.d(t, 'format', function() { - return lc; + return Hc; }), n.d(t, 'formatPrefix', function() { - return fc; + return Yc; }), n.d(t, 'formatLocale', function() { - return bc; + return $c; }), n.d(t, 'formatSpecifier', function() { - return ac; + return Ic; }), n.d(t, 'FormatSpecifier', function() { - return sc; + return Fc; }), n.d(t, 'precisionFixed', function() { - return vc; + return Jc; }), n.d(t, 'precisionPrefix', function() { - return _c; + return Zc; }), n.d(t, 'precisionRound', function() { - return xc; + return eu; }), n.d(t, 'geoArea', function() { - return du; + return Xu; }), n.d(t, 'geoBounds', function() { - return ol; + return Fl; }), n.d(t, 'geoCentroid', function() { - return ml; + return Ql; }), n.d(t, 'geoCircle', function() { - return Ol; + return uf; }), n.d(t, 'geoClipAntimeridian', function() { - return Fl; + return wf; }), n.d(t, 'geoClipCircle', function() { - return ql; + return xf; }), n.d(t, 'geoClipExtent', function() { - return Vl; + return Cf; }), n.d(t, 'geoClipRectangle', function() { - return Bl; + return Of; }), n.d(t, 'geoContains', function() { - return lf; + return Gf; }), n.d(t, 'geoDistance', function() { - return ef; + return Ff; }), n.d(t, 'geoGraticule', function() { - return pf; + return Qf; }), n.d(t, 'geoGraticule10', function() { - return hf; + return Jf; }), n.d(t, 'geoInterpolate', function() { - return vf; + return rd; }), n.d(t, 'geoLength', function() { - return Ql; + return Nf; }), n.d(t, 'geoPath', function() { - return bd; + return tp; }), n.d(t, 'geoAlbers', function() { - return jd; + return wp; }), n.d(t, 'geoAlbersUsa', function() { - return Rd; + return xp; }), n.d(t, 'geoAzimuthalEqualArea', function() { - return Bd; + return Op; }), n.d(t, 'geoAzimuthalEqualAreaRaw', function() { - return qd; + return Sp; }), n.d(t, 'geoAzimuthalEquidistant', function() { - return Yd; + return Ap; }), n.d(t, 'geoAzimuthalEquidistantRaw', function() { - return Hd; + return Ep; }), n.d(t, 'geoConicConformal', function() { - return Kd; + return jp; }), n.d(t, 'geoConicConformalRaw', function() { - return Gd; + return Dp; }), n.d(t, 'geoConicEqualArea', function() { - return Nd; + return _p; }), n.d(t, 'geoConicEqualAreaRaw', function() { - return zd; + return vp; }), n.d(t, 'geoConicEquidistant', function() { - return Zd; + return Ip; }), n.d(t, 'geoConicEquidistantRaw', function() { - return Jd; + return Rp; }), n.d(t, 'geoEqualEarth', function() { - return ap; + return Vp; }), n.d(t, 'geoEqualEarthRaw', function() { - return ip; + return Wp; }), n.d(t, 'geoEquirectangular', function() { - return Qd; + return Np; }), n.d(t, 'geoEquirectangularRaw', function() { - return $d; + return zp; }), n.d(t, 'geoGnomonic', function() { - return cp; + return Xp; }), n.d(t, 'geoGnomonicRaw', function() { - return sp; + return Up; }), n.d(t, 'geoIdentity', function() { - return lp; + return Kp; }), n.d(t, 'geoProjection', function() { - return Ld; + return mp; }), n.d(t, 'geoProjectionMutator', function() { - return Pd; + return bp; }), n.d(t, 'geoMercator', function() { - return Vd; + return Cp; }), n.d(t, 'geoMercatorRaw', function() { - return Wd; + return Tp; }), n.d(t, 'geoNaturalEarth1', function() { - return dp; + return Qp; }), n.d(t, 'geoNaturalEarth1Raw', function() { - return fp; + return $p; }), n.d(t, 'geoOrthographic', function() { - return hp; + return Zp; }), n.d(t, 'geoOrthographicRaw', function() { - return pp; + return Jp; }), n.d(t, 'geoStereographic', function() { - return mp; + return th; }), n.d(t, 'geoStereographicRaw', function() { - return gp; + return eh; }), n.d(t, 'geoTransverseMercator', function() { - return yp; + return rh; }), n.d(t, 'geoTransverseMercatorRaw', function() { - return bp; + return nh; }), n.d(t, 'geoRotation', function() { - return kl; + return af; }), n.d(t, 'geoStream', function() { - return ou; + return Fu; }), n.d(t, 'geoTransform', function() { - return yd; + return np; }), n.d(t, 'cluster', function() { - return wp; + return sh; }), n.d(t, 'hierarchy', function() { - return kp; + return uh; }), n.d(t, 'pack', function() { - return Kp; + return jh; }), n.d(t, 'packSiblings', function() { - return Yp; + return Ah; }), n.d(t, 'packEnclose', function() { - return Cp; + return gh; }), n.d(t, 'partition', function() { - return th; + return qh; }), n.d(t, 'stratify', function() { - return ah; + return Uh; }), n.d(t, 'tree', function() { - return ph; + return Zh; }), n.d(t, 'treemap', function() { - return yh; + return og; }), n.d(t, 'treemapBinary', function() { - return vh; + return ig; }), n.d(t, 'treemapDice', function() { - return eh; + return Fh; }), n.d(t, 'treemapSlice', function() { - return hh; + return eg; }), n.d(t, 'treemapSliceDice', function() { - return _h; + return ag; }), n.d(t, 'treemapSquarify', function() { - return bh; + return rg; }), n.d(t, 'treemapResquarify', function() { - return xh; + return sg; }), n.d(t, 'interpolate', function() { - return Wn; + return $n; }), n.d(t, 'interpolateArray', function() { - return Rn; + return Yn; }), n.d(t, 'interpolateBasis', function() { - return wn; + return An; }), n.d(t, 'interpolateBasisClosed', function() { - return Mn; + return Tn; }), n.d(t, 'interpolateDate', function() { - return In; + return Wn; }), n.d(t, 'interpolateDiscrete', function() { - return Vn; + return Qn; }), n.d(t, 'interpolateHue', function() { - return Un; + return Jn; }), n.d(t, 'interpolateNumber', function() { - return Fn; + return Vn; }), n.d(t, 'interpolateObject', function() { - return qn; + return Un; }), n.d(t, 'interpolateRound', function() { - return Xn; + return Zn; }), n.d(t, 'interpolateString', function() { - return Yn; + return Kn; }), n.d(t, 'interpolateTransformCss', function() { - return Jn; + return or; }), n.d(t, 'interpolateTransformSvg', function() { - return Zn; + return ir; }), n.d(t, 'interpolateZoom', function() { - return nr; + return cr; }), n.d(t, 'interpolateRgb', function() { - return Tn; + return zn; }), n.d(t, 'interpolateRgbBasis', function() { - return Nn; + return Bn; }), n.d(t, 'interpolateRgbBasisClosed', function() { - return jn; + return Hn; }), n.d(t, 'interpolateHsl', function() { - return or; + return lr; }), n.d(t, 'interpolateHslLong', function() { - return ir; + return fr; }), n.d(t, 'interpolateLab', function() { - return xr; + return jr; }), n.d(t, 'interpolateHcl', function() { - return Mr; + return Nr; }), n.d(t, 'interpolateHclLong', function() { - return kr; + return Rr; }), n.d(t, 'interpolateCubehelix', function() { - return Dr; + return Xr; }), n.d(t, 'interpolateCubehelixLong', function() { - return zr; + return Gr; }), n.d(t, 'piecewise', function() { - return Nr; + return Kr; }), n.d(t, 'quantize', function() { - return Ir; + return Jr; }), n.d(t, 'path', function() { - return da; + return Fa; }), n.d(t, 'polygonArea', function() { - return wh; + return cg; }), n.d(t, 'polygonCentroid', function() { - return Mh; + return ug; }), n.d(t, 'polygonHull', function() { - return Ah; + return pg; }), n.d(t, 'polygonContains', function() { - return Oh; + return hg; }), n.d(t, 'polygonLength', function() { - return Eh; + return gg; }), n.d(t, 'quadtree', function() { - return Fs; + return mc; }), n.d(t, 'randomUniform', function() { - return Ch; + return bg; }), n.d(t, 'randomNormal', function() { - return Lh; + return yg; }), n.d(t, 'randomLogNormal', function() { - return Ph; + return vg; }), n.d(t, 'randomBates', function() { - return zh; + return wg; }), n.d(t, 'randomIrwinHall', function() { - return Dh; + return _g; }), n.d(t, 'randomExponential', function() { - return Nh; + return xg; }), n.d(t, 'scaleBand', function() { - return Yh; + return Cg; }), n.d(t, 'scalePoint', function() { - return Vh; + return Lg; }), n.d(t, 'scaleIdentity', function() { - return ig; + return Ug; }), n.d(t, 'scaleLinear', function() { - return og; + return Vg; }), n.d(t, 'scaleLog', function() { - return hg; + return tm; }), n.d(t, 'scaleSymlog', function() { - return yg; + return im; }), n.d(t, 'scaleOrdinal', function() { - return Hh; + return Tg; }), n.d(t, 'scaleImplicit', function() { - return Bh; + return Ag; }), n.d(t, 'scalePow', function() { - return Mg; + return lm; }), n.d(t, 'scaleSqrt', function() { - return kg; + return fm; }), n.d(t, 'scaleQuantile', function() { - return Sg; + return dm; }), n.d(t, 'scaleQuantize', function() { - return Ag; + return pm; }), n.d(t, 'scaleThreshold', function() { - return Og; + return hm; }), n.d(t, 'scaleTime', function() { - return oy; + return ev; }), n.d(t, 'scaleUtc', function() { - return hy; + return lv; }), n.d(t, 'scaleSequential', function() { - return by; + return pv; }), n.d(t, 'scaleSequentialLog', function() { - return yy; + return hv; }), n.d(t, 'scaleSequentialPow', function() { - return _y; + return mv; }), n.d(t, 'scaleSequentialSqrt', function() { - return xy; + return bv; }), n.d(t, 'scaleSequentialSymlog', function() { - return vy; + return gv; }), n.d(t, 'scaleSequentialQuantile', function() { - return wy; + return yv; }), n.d(t, 'scaleDiverging', function() { - return ky; + return _v; }), n.d(t, 'scaleDivergingLog', function() { - return Sy; + return wv; }), n.d(t, 'scaleDivergingPow', function() { - return Oy; + return Mv; }), n.d(t, 'scaleDivergingSqrt', function() { - return Ey; + return kv; }), n.d(t, 'scaleDivergingSymlog', function() { - return Ay; + return xv; }), n.d(t, 'tickFormat', function() { - return ng; + return Yg; }), n.d(t, 'schemeCategory10', function() { - return Cy; + return Ov; }), n.d(t, 'schemeAccent', function() { - return Ly; + return Ev; }), n.d(t, 'schemeDark2', function() { - return Py; + return Av; }), n.d(t, 'schemePaired', function() { - return Dy; + return Tv; }), n.d(t, 'schemePastel1', function() { - return zy; + return Cv; }), n.d(t, 'schemePastel2', function() { - return Ny; + return Lv; }), n.d(t, 'schemeSet1', function() { - return jy; + return Pv; }), n.d(t, 'schemeSet2', function() { - return Ry; + return Dv; }), n.d(t, 'schemeSet3', function() { - return Iy; + return jv; }), n.d(t, 'schemeTableau10', function() { - return Fy; + return zv; }), n.d(t, 'interpolateBrBG', function() { - return Hy; + return Iv; }), n.d(t, 'schemeBrBG', function() { - return By; + return Rv; }), n.d(t, 'interpolatePRGn', function() { - return Wy; + return qv; }), n.d(t, 'schemePRGn', function() { - return Yy; + return Fv; }), n.d(t, 'interpolatePiYG', function() { - return Uy; + return Hv; }), n.d(t, 'schemePiYG', function() { - return Vy; + return Bv; }), n.d(t, 'interpolatePuOr', function() { - return Gy; + return Wv; }), n.d(t, 'schemePuOr', function() { - return Xy; + return Yv; }), n.d(t, 'interpolateRdBu', function() { - return $y; + return Uv; }), n.d(t, 'schemeRdBu', function() { - return Ky; + return Vv; }), n.d(t, 'interpolateRdGy', function() { - return Jy; + return Gv; }), n.d(t, 'schemeRdGy', function() { - return Qy; + return Xv; }), n.d(t, 'interpolateRdYlBu', function() { - return ev; + return $v; }), n.d(t, 'schemeRdYlBu', function() { - return Zy; + return Kv; }), n.d(t, 'interpolateRdYlGn', function() { - return nv; + return Jv; }), n.d(t, 'schemeRdYlGn', function() { - return tv; + return Qv; }), n.d(t, 'interpolateSpectral', function() { - return ov; + return e_; }), n.d(t, 'schemeSpectral', function() { - return rv; + return Zv; }), n.d(t, 'interpolateBuGn', function() { - return av; + return n_; }), n.d(t, 'schemeBuGn', function() { - return iv; + return t_; }), n.d(t, 'interpolateBuPu', function() { - return cv; + return o_; }), n.d(t, 'schemeBuPu', function() { - return sv; + return r_; }), n.d(t, 'interpolateGnBu', function() { - return lv; + return a_; }), n.d(t, 'schemeGnBu', function() { - return uv; + return i_; }), n.d(t, 'interpolateOrRd', function() { - return dv; + return c_; }), n.d(t, 'schemeOrRd', function() { - return fv; + return s_; }), n.d(t, 'interpolatePuBuGn', function() { - return hv; + return l_; }), n.d(t, 'schemePuBuGn', function() { - return pv; + return u_; }), n.d(t, 'interpolatePuBu', function() { - return mv; + return d_; }), n.d(t, 'schemePuBu', function() { - return gv; + return f_; }), n.d(t, 'interpolatePuRd', function() { - return yv; + return h_; }), n.d(t, 'schemePuRd', function() { - return bv; + return p_; }), n.d(t, 'interpolateRdPu', function() { - return _v; + return m_; }), n.d(t, 'schemeRdPu', function() { - return vv; + return g_; }), n.d(t, 'interpolateYlGnBu', function() { - return wv; + return y_; }), n.d(t, 'schemeYlGnBu', function() { - return xv; + return b_; }), n.d(t, 'interpolateYlGn', function() { - return kv; + return __; }), n.d(t, 'schemeYlGn', function() { - return Mv; + return v_; }), n.d(t, 'interpolateYlOrBr', function() { - return Av; + return x_; }), n.d(t, 'schemeYlOrBr', function() { - return Sv; + return w_; }), n.d(t, 'interpolateYlOrRd', function() { - return Ev; + return k_; }), n.d(t, 'schemeYlOrRd', function() { - return Ov; + return M_; }), n.d(t, 'interpolateBlues', function() { - return Cv; + return O_; }), n.d(t, 'schemeBlues', function() { - return Tv; + return S_; }), n.d(t, 'interpolateGreens', function() { - return Pv; + return A_; }), n.d(t, 'schemeGreens', function() { - return Lv; + return E_; }), n.d(t, 'interpolateGreys', function() { - return zv; + return C_; }), n.d(t, 'schemeGreys', function() { - return Dv; + return T_; }), n.d(t, 'interpolatePurples', function() { - return jv; + return P_; }), n.d(t, 'schemePurples', function() { - return Nv; + return L_; }), n.d(t, 'interpolateReds', function() { - return Iv; + return j_; }), n.d(t, 'schemeReds', function() { - return Rv; + return D_; }), n.d(t, 'interpolateOranges', function() { - return qv; + return N_; }), n.d(t, 'schemeOranges', function() { - return Fv; + return z_; }), n.d(t, 'interpolateCividis', function() { - return Bv; + return R_; }), n.d(t, 'interpolateCubehelixDefault', function() { - return Hv; + return I_; }), n.d(t, 'interpolateRainbow', function() { - return Uv; + return H_; }), n.d(t, 'interpolateWarm', function() { - return Yv; + return F_; }), n.d(t, 'interpolateCool', function() { - return Wv; + return q_; }), n.d(t, 'interpolateSinebow', function() { - return $v; + return U_; }), n.d(t, 'interpolateTurbo', function() { - return Qv; + return X_; }), n.d(t, 'interpolateViridis', function() { - return Zv; + return K_; }), n.d(t, 'interpolateMagma', function() { - return e_; + return $_; }), n.d(t, 'interpolateInferno', function() { - return t_; + return Q_; }), n.d(t, 'interpolatePlasma', function() { - return n_; + return J_; }), n.d(t, 'create', function() { - return Mt; + return Tt; }), n.d(t, 'creator', function() { - return me; + return we; }), n.d(t, 'local', function() { - return St; + return Lt; }), n.d(t, 'matcher', function() { - return xe; + return Oe; }), n.d(t, 'mouse', function() { - return Tt; + return zt; }), n.d(t, 'namespace', function() { - return pe; + return ye; }), n.d(t, 'namespaces', function() { - return de; + return be; }), n.d(t, 'clientPoint', function() { - return Et; + return jt; }), n.d(t, 'select', function() { - return wt; + return At; }), n.d(t, 'selectAll', function() { - return Ct; + return Nt; }), n.d(t, 'selection', function() { - return xt; + return Et; }), n.d(t, 'selector', function() { - return ye; + return Me; }), n.d(t, 'selectorAll', function() { - return _e; + return Se; }), n.d(t, 'style', function() { - return Re; + return Ye; }), n.d(t, 'touch', function() { - return Lt; + return Rt; }), n.d(t, 'touches', function() { - return Pt; + return It; }), n.d(t, 'window', function() { - return De; + return Fe; }), n.d(t, 'event', function() { - return ct; + return ht; }), n.d(t, 'customEvent', function() { - return ht; + return _t; }), n.d(t, 'arc', function() { - return M_; + return yw; }), n.d(t, 'area', function() { - return T_; + return kw; }), n.d(t, 'line', function() { - return E_; + return Mw; }), n.d(t, 'pie', function() { - return P_; + return Ew; }), n.d(t, 'areaRadial', function() { - return I_; + return Dw; }), n.d(t, 'radialArea', function() { - return I_; + return Dw; }), n.d(t, 'lineRadial', function() { - return R_; + return Pw; }), n.d(t, 'radialLine', function() { - return R_; + return Pw; }), n.d(t, 'pointRadial', function() { - return F_; + return jw; }), n.d(t, 'linkHorizontal', function() { - return X_; + return Hw; }), n.d(t, 'linkVertical', function() { - return G_; + return Yw; }), n.d(t, 'linkRadial', function() { - return K_; + return Ww; }), n.d(t, 'symbol', function() { - return px; + return cx; }), n.d(t, 'symbols', function() { - return dx; + return sx; }), n.d(t, 'symbolCircle', function() { - return $_; + return Vw; }), n.d(t, 'symbolCross', function() { - return Q_; + return Uw; }), n.d(t, 'symbolDiamond', function() { - return ex; + return Kw; }), n.d(t, 'symbolSquare', function() { - return ix; + return ex; }), n.d(t, 'symbolStar', function() { - return ox; + return Zw; }), n.d(t, 'symbolTriangle', function() { - return sx; + return nx; }), n.d(t, 'symbolWye', function() { - return fx; + return ax; }), n.d(t, 'curveBasisClosed', function() { - return vx; + return hx; }), n.d(t, 'curveBasisOpen', function() { - return xx; + return mx; }), n.d(t, 'curveBasis', function() { - return bx; + return dx; }), n.d(t, 'curveBundle', function() { - return Mx; + return yx; }), n.d(t, 'curveCardinalClosed', function() { - return Ex; + return Mx; }), n.d(t, 'curveCardinalOpen', function() { - return Cx; + return Sx; }), n.d(t, 'curveCardinal', function() { - return Ax; + return wx; }), n.d(t, 'curveCatmullRomClosed', function() { - return Nx; + return Cx; }), n.d(t, 'curveCatmullRomOpen', function() { - return Rx; + return Px; }), n.d(t, 'curveCatmullRom', function() { - return Dx; + return Ax; }), n.d(t, 'curveLinearClosed', function() { - return Fx; + return jx; }), n.d(t, 'curveLinear', function() { - return S_; + return _w; }), n.d(t, 'curveMonotoneX', function() { - return Xx; + return Hx; }), n.d(t, 'curveMonotoneY', function() { - return Gx; + return Yx; }), n.d(t, 'curveNatural', function() { - return Qx; + return Ux; }), n.d(t, 'curveStep', function() { - return Zx; + return Gx; }), n.d(t, 'curveStepAfter', function() { - return tw; + return $x; }), n.d(t, 'curveStepBefore', function() { - return ew; + return Kx; }), n.d(t, 'stack', function() { - return iw; + return eM; }), n.d(t, 'stackOffsetExpand', function() { - return aw; + return tM; }), n.d(t, 'stackOffsetDiverging', function() { - return sw; + return nM; }), n.d(t, 'stackOffsetNone', function() { - return nw; + return Qx; }), n.d(t, 'stackOffsetSilhouette', function() { - return cw; + return rM; }), n.d(t, 'stackOffsetWiggle', function() { - return uw; + return oM; }), n.d(t, 'stackOrderAppearance', function() { - return lw; + return iM; }), n.d(t, 'stackOrderAscending', function() { - return dw; + return sM; }), n.d(t, 'stackOrderDescending', function() { - return hw; + return uM; }), n.d(t, 'stackOrderInsideOut', function() { - return gw; + return lM; }), n.d(t, 'stackOrderNone', function() { - return rw; + return Jx; }), n.d(t, 'stackOrderReverse', function() { - return mw; + return fM; }), n.d(t, 'timeInterval', function() { - return Cg; + return bm; }), n.d(t, 'timeMillisecond', function() { - return fm; + return eb; }), n.d(t, 'timeMilliseconds', function() { - return dm; + return tb; }), n.d(t, 'utcMillisecond', function() { - return fm; + return eb; }), n.d(t, 'utcMilliseconds', function() { - return dm; + return tb; }), n.d(t, 'timeSecond', function() { - return cm; + return Qm; }), n.d(t, 'timeSeconds', function() { - return um; + return Jm; }), n.d(t, 'utcSecond', function() { - return cm; + return Qm; }), n.d(t, 'utcSeconds', function() { - return um; + return Jm; }), n.d(t, 'timeMinute', function() { - return im; + return Gm; }), n.d(t, 'timeMinutes', function() { - return am; + return Km; }), n.d(t, 'timeHour', function() { - return nm; + return Vm; }), n.d(t, 'timeHours', function() { - return rm; + return Um; }), n.d(t, 'timeDay', function() { - return Zg; + return Hm; }), n.d(t, 'timeDays', function() { - return em; + return Ym; }), n.d(t, 'timeWeek', function() { - return Ig; + return Em; }), n.d(t, 'timeWeeks', function() { - return Vg; + return jm; }), n.d(t, 'timeSunday', function() { - return Ig; + return Em; }), n.d(t, 'timeSundays', function() { - return Vg; + return jm; }), n.d(t, 'timeMonday', function() { - return Fg; + return Am; }), n.d(t, 'timeMondays', function() { - return Ug; + return zm; }), n.d(t, 'timeTuesday', function() { - return qg; + return Tm; }), n.d(t, 'timeTuesdays', function() { - return Xg; + return Nm; }), n.d(t, 'timeWednesday', function() { - return Bg; + return Cm; }), n.d(t, 'timeWednesdays', function() { - return Gg; + return Rm; }), n.d(t, 'timeThursday', function() { - return Hg; + return Lm; }), n.d(t, 'timeThursdays', function() { - return Kg; + return Im; }), n.d(t, 'timeFriday', function() { - return Yg; + return Pm; }), n.d(t, 'timeFridays', function() { - return $g; + return Fm; }), n.d(t, 'timeSaturday', function() { - return Wg; + return Dm; }), n.d(t, 'timeSaturdays', function() { - return Qg; + return qm; }), n.d(t, 'timeMonth', function() { - return Ng; + return xm; }), n.d(t, 'timeMonths', function() { - return jg; + return Mm; }), n.d(t, 'timeYear', function() { - return Pg; + return vm; }), n.d(t, 'timeYears', function() { - return Dg; + return _m; }), n.d(t, 'utcMinute', function() { - return dy; + return cv; }), n.d(t, 'utcMinutes', function() { - return py; + return uv; }), n.d(t, 'utcHour', function() { - return uy; + return iv; }), n.d(t, 'utcHours', function() { - return ly; + return av; }), n.d(t, 'utcDay', function() { - return Tm; + return yb; }), n.d(t, 'utcDays', function() { - return Cm; + return vb; }), n.d(t, 'utcWeek', function() { - return hm; + return rb; }), n.d(t, 'utcWeeks', function() { - return xm; + return lb; }), n.d(t, 'utcSunday', function() { - return hm; + return rb; }), n.d(t, 'utcSundays', function() { - return xm; + return lb; }), n.d(t, 'utcMonday', function() { - return gm; + return ob; }), n.d(t, 'utcMondays', function() { - return wm; + return fb; }), n.d(t, 'utcTuesday', function() { - return mm; + return ib; }), n.d(t, 'utcTuesdays', function() { - return Mm; + return db; }), n.d(t, 'utcWednesday', function() { - return bm; + return ab; }), n.d(t, 'utcWednesdays', function() { - return km; + return pb; }), n.d(t, 'utcThursday', function() { - return ym; + return sb; }), n.d(t, 'utcThursdays', function() { - return Sm; + return hb; }), n.d(t, 'utcFriday', function() { - return vm; + return cb; }), n.d(t, 'utcFridays', function() { - return Am; + return gb; }), n.d(t, 'utcSaturday', function() { - return _m; + return ub; }), n.d(t, 'utcSaturdays', function() { - return Om; + return mb; }), n.d(t, 'utcMonth', function() { - return ay; + return nv; }), n.d(t, 'utcMonths', function() { - return sy; + return rv; }), n.d(t, 'utcYear', function() { - return Pm; + return wb; }), n.d(t, 'utcYears', function() { - return Dm; + return xb; }), n.d(t, 'timeFormatDefaultLocale', function() { - return ey; + return Yy; }), n.d(t, 'timeFormat', function() { - return Fm; + return Ab; }), n.d(t, 'timeParse', function() { - return qm; + return Tb; }), n.d(t, 'utcFormat', function() { - return Bm; + return Cb; }), n.d(t, 'utcParse', function() { - return Hm; + return Lb; }), n.d(t, 'timeFormatLocale', function() { - return Rm; + return Ob; }), n.d(t, 'isoFormat', function() { - return bw; + return dM; }), n.d(t, 'isoParse', function() { - return yw; + return pM; }), n.d(t, 'now', function() { - return Xr; + return co; }), n.d(t, 'timer', function() { - return $r; + return fo; }), n.d(t, 'timerFlush', function() { - return Qr; + return po; }), n.d(t, 'timeout', function() { - return to; + return bo; }), n.d(t, 'interval', function() { - return no; + return yo; }), n.d(t, 'transition', function() { - return Ro; + return ni; }), n.d(t, 'active', function() { - return _i; + return Ki; }), n.d(t, 'interrupt', function() { - return uo; + return Po; }), n.d(t, 'voronoi', function() { - return rM; + return JM; }), n.d(t, 'zoom', function() { - return bM; + return dk; }), n.d(t, 'zoomTransform', function() { - return cM; + return rk; }), n.d(t, 'zoomIdentity', function() { - return sM; + return nk; }); }, function(e, t, n) { @@ -178166,40 +178724,41 @@ object-assign n = e.label, r = void 0 === n ? 'Download' : n, o = e.type, - s = void 0 === o ? 'json' : o, - c = e.data, - u = 'keen-dataviz-button', - l = [] - .concat(a(t.parentNode.children)) + a = void 0 === o ? 'json' : o, + s = e.data; + if ( + ![] + .concat( + (function(e) { + if (Array.isArray(e)) { + for ( + var t = 0, n = Array(e.length); + t < e.length; + t++ + ) + n[t] = e[t]; + return n; + } + return Array.from(e); + })(t.parentNode.children) + ) .find(function(e) { - return e.className === u; - }); - if (!l) { - var f = document.createElement('button'); - (f.innerText = r), - (f.className = u), - f.addEventListener('click', function(e) { + return 'keen-dataviz-button' === e.className; + }) + ) { + var c = document.createElement('button'); + (c.innerText = r), + (c.className = 'keen-dataviz-button'), + c.addEventListener('click', function(e) { return (0, - i.default)({ event: e, type: s, data: c }); + i.default)({ event: e, type: a, data: s }); }), - t.parentNode.insertBefore(f, t.nextSibling); + t.parentNode.insertBefore(c, t.nextSibling); } }); var r, o = n(40), i = (r = o) && r.__esModule ? r : { default: r }; - function a(e) { - if (Array.isArray(e)) { - for ( - var t = 0, n = Array(e.length); - t < e.length; - t++ - ) - n[t] = e[t]; - return n; - } - return Array.from(e); - } }, function(e, t, n) { 'use strict'; @@ -179054,24 +179613,24 @@ object-assign (t[n] = e[n]); return (t.default = e), t; })(n(2)), - s = x(n(10)), - c = x(n(31)), - u = x(n(32)), + s = w(n(10)), + c = w(n(31)), + u = w(n(32)), l = n(0), - f = x(n(11)), + f = w(n(11)), d = n(14), - p = (n(4), x(n(33))), + p = (n(4), w(n(33))), h = n(15), - g = x(n(17)), - m = x(n(18)), - b = x(n(16)), - y = x(n(53)), - v = x(n(1)), - _ = x(n(54)); - function x(e) { + g = w(n(17)), + m = w(n(18)), + b = w(n(16)), + y = w(n(53)), + v = w(n(1)), + _ = w(n(54)); + function w(e) { return e && e.__esModule ? e : { default: e }; } - var w = (t.Dataviz = function e() { + var x = (t.Dataviz = function e() { var t = this, n = arguments.length > 0 && void 0 !== arguments[0] @@ -179345,7 +179904,7 @@ object-assign }.bind(e) ); } - function A(e) { + function O(e) { e.config.sortGroups && e.data().length > 1 && ((0, f.default)(e.data()[1][0]) @@ -179358,11 +179917,11 @@ object-assign e.dataset.getRowSum )); } - function O(e) { + function E(e) { e.config.sortIntervals && e.dataset.sortRows(e.config.sortIntervals); } - function E(e, t) { + function A(e, t) { var n = '', r = '', o = ''; @@ -179480,28 +180039,28 @@ object-assign })(e)) : e(); } - (w.libraries = { default: {} }), + (x.libraries = { default: {} }), 'undefined' != typeof window && - (w.libraries.default = (0, p.default)(w)), - (w.visuals = []), - (w.register = function(e, t) { - (w.libraries[e] = w.libraries[e] || {}), + (x.libraries.default = (0, p.default)(x)), + (x.visuals = []), + (x.register = function(e, t) { + (x.libraries[e] = x.libraries[e] || {}), (0, l.each)(t, function(t, n) { - w.libraries[e][n] = t; + x.libraries[e][n] = t; }); }), - (w.find = function(e) { - if (!arguments.length) return w.visuals; + (x.find = function(e) { + if (!arguments.length) return x.visuals; var t = e.nodeName ? e : document.querySelector(e), n = null; return ( - (0, l.each)(w.visuals, function(e) { + (0, l.each)(x.visuals, function(e) { if (t == e.config.container) return (n = e), !1; }), n ); }), - (w.prototype.attributes = function(e) { + (x.prototype.attributes = function(e) { if ( (this.config.showDeprecationWarnings && console.log( @@ -179518,10 +180077,10 @@ object-assign this ); }), - (w.prototype.call = function(e) { + (x.prototype.call = function(e) { return e.call(this), this; }), - (w.prototype.chartOptions = function(e) { + (x.prototype.chartOptions = function(e) { return ( this.config.showDeprecationWarnings && console.log( @@ -179536,7 +180095,7 @@ object-assign : this.config ); }), - (w.prototype.colors = function(e) { + (x.prototype.colors = function(e) { return ( this.config.showDeprecationWarnings && console.log( @@ -179549,7 +180108,7 @@ object-assign : this.config.colors ); }), - (w.prototype.colorMapping = function(e) { + (x.prototype.colorMapping = function(e) { this.config.showDeprecationWarnings && console.log( '.colorMapping() is deprecated. Use: new KeenDataviz({ colorMapping: _your_value_here_ })' @@ -179566,8 +180125,8 @@ object-assign this) : this.config.colorMapping; }), - (w.prototype.data = u.default), - (w.prototype.dateFormat = function(e) { + (x.prototype.data = u.default), + (x.prototype.dateFormat = function(e) { return ( this.config.showDeprecationWarnings && console.log( @@ -179582,14 +180141,14 @@ object-assign : this.config.dateFormat ); }), - (w.prototype.destroy = function() { + (x.prototype.destroy = function() { var e = this.library(), t = this.config.type, n = this.el(); return ( - w.libraries[e] && - w.libraries[e][t] && - w.libraries[e][t].destroy.call(this), + x.libraries[e] && + x.libraries[e][t] && + x.libraries[e][t].destroy.call(this), n && (n.innerHTML = ''), (this.view._prepared = !1), (this.view._rendered = !1), @@ -179597,7 +180156,7 @@ object-assign this ); }), - (w.prototype.el = function(e) { + (x.prototype.el = function(e) { var t = this; return arguments.length ? (C(function() { @@ -179613,7 +180172,7 @@ object-assign this) : this.config.containerElement; }), - (w.prototype.height = function(e) { + (x.prototype.height = function(e) { return ( this.config.showDeprecationWarnings && console.log( @@ -179622,7 +180181,7 @@ object-assign this ); }), - (w.prototype.indexBy = function(e) { + (x.prototype.indexBy = function(e) { return ( this.config.showDeprecationWarnings && console.log( @@ -179636,7 +180195,7 @@ object-assign : this.config.indexBy ); }), - (w.prototype.labels = function(e) { + (x.prototype.labels = function(e) { return ( this.config.showDeprecationWarnings && console.log( @@ -179650,7 +180209,7 @@ object-assign : this.config.labels ); }), - (w.prototype.labelMapping = function(e) { + (x.prototype.labelMapping = function(e) { return ( this.config.showDeprecationWarnings && console.log( @@ -179672,23 +180231,23 @@ object-assign : this.config.labelMapping ); }), - (w.prototype.library = function(e) { + (x.prototype.library = function(e) { return arguments.length ? ((this.config.library = e ? String(e) : null), this) : this.config.library; }), - (w.prototype.message = function() { + (x.prototype.message = function() { if ( (this.view._rendered && this.destroy(), this.el()) ) { this.el().innerHTML = ''; - var e = w.libraries.default.message; + var e = x.libraries.default.message; e.render && e.render.apply(this, arguments); } return this; }), - (w.prototype.notes = function(e) { + (x.prototype.notes = function(e) { return ( this.config.showDeprecationWarnings && console.log( @@ -179700,7 +180259,7 @@ object-assign : this.config.notes ); }), - (w.prototype.prepare = function() { + (x.prototype.prepare = function() { var e = this; if (!this.el()) throw this.config.container + @@ -179709,7 +180268,7 @@ object-assign C(function() { if ((e.view._rendered && e.destroy(), e.el())) { e.el().innerHTML = ''; - var t = w.libraries.default.spinner; + var t = x.libraries.default.spinner; t.render && t.render.call(e), (e.view._prepared = !0); } @@ -179717,7 +180276,7 @@ object-assign this ); }), - (w.prototype.render = function() { + (x.prototype.render = function() { var e = this, t = arguments.length > 0 && void 0 !== arguments[0] @@ -179809,9 +180368,9 @@ object-assign this.config.labels && Object.keys(this.config.labels).length > 0 && M(n), - this.config.sortGroups && A(n), - this.config.sortIntervals && O(n); - var a = w.libraries.default.spinner, + this.config.sortGroups && O(n), + this.config.sortIntervals && E(n); + var a = x.libraries.default.spinner, s = this.config.library, c = this.config.type, u = this.el(); @@ -179845,17 +180404,17 @@ object-assign a.destroy && a.destroy.apply(n, arguments), (u.innerHTML = ''), - 'undefined' === w.libraries[s]) + 'undefined' === x.libraries[s]) ) { var r = 'Incorrect library'; throw (n.message(r), r); } - if (void 0 === w.libraries[s][c]) { + if (void 0 === x.libraries[s][c]) { var o = 'Incorrect chart type', i = this.config.errorMapping[o] || o; throw (n.message(i), o); } - E(u, n.config), + A(u, n.config), t && (0, b.default)({ element: u, @@ -179877,7 +180436,7 @@ object-assign e.forEach(function(e) { e.isIntersecting && (n.view._rendered || - (w.libraries[s][c].render.call(n), + (x.libraries[s][c].render.call(n), (n.view._rendered = !0))); }); }, @@ -179910,14 +180469,14 @@ object-assign once: !0 }); } - w.libraries[s][c].render.call(n), + x.libraries[s][c].render.call(n), (n.view._rendered = !0); } }), f ); }), - (w.prototype.sortGroups = function(e) { + (x.prototype.sortGroups = function(e) { return ( this.config.showDeprecationWarnings && console.log( @@ -179927,12 +180486,12 @@ object-assign ? ((this.config.sortGroups = e ? String(e) : null), - A(this), + O(this), this) : this.config.sortGroups ); }), - (w.prototype.sortIntervals = function(e) { + (x.prototype.sortIntervals = function(e) { return ( this.config.showDeprecationWarnings && console.log( @@ -179942,12 +180501,12 @@ object-assign ? ((this.config.sortIntervals = e ? String(e) : null), - O(this), + E(this), this) : this.config.sortIntervals ); }), - (w.prototype.stacked = function(e) { + (x.prototype.stacked = function(e) { return ( this.config.showDeprecationWarnings && console.log( @@ -179958,7 +180517,7 @@ object-assign : this.config.stacked ); }), - (w.prototype.theme = function(e) { + (x.prototype.theme = function(e) { return ( this.config.showDeprecationWarnings && console.log( @@ -179970,7 +180529,7 @@ object-assign : this.config.theme ); }), - (w.prototype.title = function(e) { + (x.prototype.title = function(e) { return ( this.config.showDeprecationWarnings && console.log( @@ -179982,7 +180541,7 @@ object-assign : this.config.title ); }), - (w.prototype.type = function(e) { + (x.prototype.type = function(e) { return ( this.config.showDeprecationWarnings && console.log( @@ -179993,7 +180552,7 @@ object-assign : this.config.type ); }), - (w.prototype.update = function() { + (x.prototype.update = function() { var e = this.config.library, t = this.config.type, n = this.el(); @@ -180001,12 +180560,12 @@ object-assign e && t && n && - w.libraries[e][t].update && - w.libraries[e][t].update.apply(this, arguments), + x.libraries[e][t].update && + x.libraries[e][t].update.apply(this, arguments), this ); }), - (w.prototype.width = function(e) { + (x.prototype.width = function(e) { return ( this.config.showDeprecationWarnings && console.log( @@ -180015,7 +180574,7 @@ object-assign this ); }), - (w.prototype.exportImage = function() { + (x.prototype.exportImage = function() { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] @@ -180030,7 +180589,7 @@ object-assign bgcolor: o }); }), - (w.prototype.exportData = function() { + (x.prototype.exportData = function() { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] @@ -180040,17 +180599,17 @@ object-assign type: e }); }), - (w.prototype.chartType = w.prototype.type), - (w.prototype.error = w.prototype.message), - (w.prototype.parseRawData = w.prototype.data), - (w.prototype.parseRequest = function() { + (x.prototype.chartType = x.prototype.type), + (x.prototype.error = x.prototype.message), + (x.prototype.parseRawData = x.prototype.data), + (x.prototype.parseRequest = function() { return this; }), - (w.prototype.initialize = function() { + (x.prototype.initialize = function() { return this; }), - (w.version = c.default.version), - (t.default = w); + (x.version = c.default.version), + (t.default = x); }, function(e, t, n) { 'use strict'; @@ -180881,10 +181440,9 @@ object-assign return t; })(o)), (this.config.type = l)), - (t = i.default.parser.apply( - this, - [o].concat(f) - )((0, a.extend)(e, { query: c }))), + (t = i.default.parser.apply(this, [o].concat(f))( + (0, a.extend)(e, { query: c }) + )), o.indexOf('interval') > -1 && t.updateColumn(0, function(e, t) { return new Date(e); @@ -180956,8 +181514,8 @@ object-assign 'funnel-3d': new y.default(), 'horizontal-funnel': new v.default(), 'horizontal-funnel-3d': new _.default(), - 'metric-combo': new x.default(), - heatmap: new w.default(), + 'metric-combo': new w.default(), + heatmap: new x.default(), choropleth: new M.default() }, t = function(e, t) { @@ -181246,7 +181804,7 @@ object-assign title: this.config.tooltip .format.title, value: function(t, n, r, o) { - var i = O.call(e, t, n, r, o); + var i = E.call(e, t, n, r, o); return e.config.tooltip && e.config.tooltip.format && e.config.tooltip.format @@ -181305,11 +181863,11 @@ object-assign }), !0 === p.legend.show) ) { - var x = r({}, p); - (x.data.color = A.bind(this)), - (x.legend.hide = !0), + var w = r({}, p); + (w.data.color = O.bind(this)), + (w.legend.hide = !0), (this.view._artifacts.c3 = o.default.generate( - x + w )), u.default.call( this, @@ -181325,24 +181883,24 @@ object-assign p.legend.position || 'bottom' === p.legend.position - ? ((x.size.height -= + ? ((w.size.height -= n.offsetHeight), e.view._artifacts.c3.resize( { height: - x.size.height + w.size.height } )) - : (0 === x.size.width && - (x.size.width = + : (0 === w.size.width && + (w.size.width = e.el().offsetWidth - t(e.el(), 'Left') - t(e.el(), 'Right')), - (x.size.width -= + (w.size.width -= n.offsetWidth), e.view._artifacts.c3.resize( { - width: x.size.width + width: w.size.width } ))); }, @@ -181356,8 +181914,8 @@ object-assign p ); } else { - var w = 'No data to display', - M = this.config.errorMapping[w] || w; + var x = 'No data to display', + M = this.config.errorMapping[x] || x; this.config.showErrorMessages && this.message(M); } @@ -181395,8 +181953,8 @@ object-assign y = k(n(47)), v = k(n(48)), _ = k(n(49)), - x = k(n(50)), - w = k(n(51)), + w = k(n(50)), + x = k(n(51)), M = k(n(52)); function k(e) { return e && e.__esModule ? e : { default: e }; @@ -181413,7 +181971,7 @@ object-assign } return Array.from(e); } - function A(e, t) { + function O(e, t) { var n = this.config.type; if (this.view._artifacts.pagination && 'gauge' !== n) { var r = this.view._artifacts.pagination.labels; @@ -181426,7 +181984,7 @@ object-assign } return e; } - function O(e, t, n, r) { + function E(e, t, n, r) { var o = this.config.type; return this.view._artifacts.pagination && 'gauge' !== o ? this.view._artifacts.pagination.labels.indexOf(n) > @@ -181628,10 +182186,10 @@ object-assign : Math.floor(u.total / u.limit) * u.limit; }; t.addEventListener('click', function() { - n('forward'), y(), x(); + n('forward'), y(), w(); }), e.addEventListener('click', function() { - n('backward'), y(), x(); + n('backward'), y(), w(); }), 'left' === c.position || 'right' === c.position ? (e.setAttribute('class', 'up'), @@ -181643,7 +182201,7 @@ object-assign h.append(e), b.append(t)); } - function x() { + function w() { document.selection && document.selection.empty ? document.selection.empty() : window.getSelection && @@ -181952,55 +182510,58 @@ object-assign ); }, getAndEncode: function(e) { + var t = 3e4; return ( s.impl.options.cacheBust && (e += (/\?/.test(e) ? '&' : '?') + new Date().getTime()), - new Promise(function(t) { - var n, - r = new XMLHttpRequest(); + new Promise(function(n) { + var r, + o = new XMLHttpRequest(); if ( - ((r.onreadystatechange = function() { - if (4 === r.readyState) - if (200 === r.status) { - var o = new FileReader(); - (o.onloadend = function() { - var e = o.result.split(/,/)[1]; - t(e); + ((o.onreadystatechange = function() { + if (4 === o.readyState) + if (200 === o.status) { + var t = new FileReader(); + (t.onloadend = function() { + var e = t.result.split(/,/)[1]; + n(e); }), - o.readAsDataURL(r.response); + t.readAsDataURL(o.response); } else - n - ? t(n) - : i( + r + ? n(r) + : a( 'cannot fetch resource: ' + e + ', status: ' + - r.status + o.status ); }), - (r.ontimeout = function() { - n - ? t(n) - : i( - 'timeout of 30000ms occured while fetching resource: ' + + (o.ontimeout = function() { + r + ? n(r) + : a( + 'timeout of ' + + t + + 'ms occured while fetching resource: ' + e ); }), - (r.responseType = 'blob'), - (r.timeout = 3e4), - r.open('GET', e, !0), - r.send(), + (o.responseType = 'blob'), + (o.timeout = t), + o.open('GET', e, !0), + o.send(), s.impl.options.imagePlaceholder) ) { - var o = s.impl.options.imagePlaceholder.split( + var i = s.impl.options.imagePlaceholder.split( /,/ ); - o && o[1] && (n = o[1]); + i && i[1] && (r = i[1]); } - function i(e) { - console.error(e), t(''); + function a(e) { + console.error(e), n(''); } }) ); @@ -182324,8 +182885,31 @@ object-assign ? n.makeImage(e.toDataURL()) : e.cloneNode(!1); }) - .then(function(e) { - return i(t, e, r); + .then(function(o) { + return (function(t, r, o) { + var i = t.childNodes; + return 0 === i.length + ? Promise.resolve(r) + : (function(t, n, r) { + var o = Promise.resolve(); + return ( + n.forEach(function(n) { + o = o + .then(function() { + return e(n, r); + }) + .then(function(e) { + e && t.appendChild(e); + }); + }), + o + ); + })(r, n.asArray(i), o).then( + function() { + return r; + } + ); + })(t, o, r); }) .then(function(e) { return (function(e, t) { @@ -182489,29 +183073,6 @@ object-assign })(t, e); }) : Promise.resolve(); - function i(t, r, o) { - var i = t.childNodes; - return 0 === i.length - ? Promise.resolve(r) - : a(r, n.asArray(i), o).then(function() { - return r; - }); - function a(t, n, r) { - var o = Promise.resolve(); - return ( - n.forEach(function(n) { - o = o - .then(function() { - return e(n, r); - }) - .then(function(e) { - e && t.appendChild(e); - }); - }), - o - ); - } - } })(e, t.filter, !0); }) .then(l) @@ -182827,8 +183388,8 @@ object-assign y = this.config, v = y.results, _ = y.previousResults, - x = y.isExtraction, - w = y.comparedProp; + w = y.isExtraction, + x = y.comparedProp; if ( (v && _ && @@ -182845,7 +183406,7 @@ object-assign this.data()[1][1] && 'number' == typeof this.data()[1][1] && (c = this.data()[1][1]), - x && w) + w && x) ) { var M = (function(e, t) { var n = e.query, @@ -182863,7 +183424,7 @@ object-assign }), o ); - })(v, w); + })(v, x); (c = M[0].result), (h = (u = M[1].result) ? ' metric-comparison' @@ -182917,8 +183478,8 @@ object-assign '"> ' + (0, i.escapeHtml)(g) + ''), - x && - w && + w && + x && (c && u ? ((l += '
'; var S = !0, - A = !1, - O = void 0; + O = !1, + E = void 0; try { for ( - var E, T = k.entries()[Symbol.iterator](); - !(S = (E = T.next()).done); + var A, T = k.entries()[Symbol.iterator](); + !(S = (A = T.next()).done); S = !0 ) { - var C = E.value, + var C = A.value, L = o(C, 2), P = L[0], D = L[1]; b && D instanceof Date && (D = b(D)); - var z = (0, a.escapeHtml)(D); + var j = (0, a.escapeHtml)(D); h[P] - ? (n += '' + m[h[P]](z) + '') - : (n += '' + z + ''); + ? (n += '' + m[h[P]](j) + '') + : (n += '' + j + ''); } } catch (e) { - (A = !0), (O = e); + (O = !0), (E = e); } finally { try { !S && T.return && T.return(); } finally { - if (A) throw O; + if (O) throw E; } } n += ''; } } catch (e) { - (_ = !0), (x = e); + (_ = !0), (w = e); } finally { try { !v && M.return && M.return(); } finally { - if (_) throw x; + if (_) throw w; } } if (l > 1) { n += ''; - var N = 1, - j = 1 === u ? 1 : u - 1, + var z = 1, + N = 1 === u ? 1 : u - 1, R = u === l ? l : u + 1; for ( s.arrows && (n += '«'); - N <= l; + z <= l; ) (n += '' + - N + + z + ''), - N++; + z++; s.arrows && (n += '\n
\n
\n ' + v + '\n ' + @@ -185110,10 +185671,10 @@ object-assign '"> ' + (0, a.prettyNumber)(g) + '
\n
\n
\n
\n
\n
\n '; - var w = x.querySelector('.c3-chart'); + var x = w.querySelector('.c3-chart'); if ( (o.default.generate({ - bindto: w, + bindto: x, color: { pattern: ['#c3c4cc'] }, title: c, legend: { show: !1 }, @@ -185280,14 +185841,14 @@ object-assign y = 10, v = 50, _ = 50, - x = i.select(l), - w = parseInt(x.style('width'), 10) || 600, - M = parseInt(x.style('height'), 10) || 600, + w = i.select(l), + x = parseInt(w.style('width'), 10) || 600, + M = parseInt(w.style('height'), 10) || 600, k = this.el().querySelector('.c3-chart'), - S = w - y - _, - A = M - b - v, - O = new Set(), + S = x - y - _, + O = M - b - v, E = new Set(), + A = new Set(), T = ((e = i.timeFormat('%B %d')), (t = i.timeFormat('%H:%M')), @@ -185316,7 +185877,7 @@ object-assign }), n); T.forEach(function(e) { - O.add(e.x), E.add(e.y); + E.add(e.x), A.add(e.y); }); var C = T[0].value, L = T.reduce(function(e, t) { @@ -185330,7 +185891,7 @@ object-assign t = i.rgb('#00BBDE'); return i.color(e) && (t = i.rgb(e)), t; }, - z = i + j = i .scaleLinear() .domain([ 0, @@ -185339,8 +185900,8 @@ object-assign }) ]) .range([0, 1]), - N = function(e) { - var t = z(e), + z = function(e) { + var t = j(e), n = D(), r = (function(e) { var t = @@ -185371,14 +185932,14 @@ object-assign ')' ); }, - j = i + N = i .select(k) .append('svg') .attr( 'preserveAspectRatio', 'xMidYMid slice' ) - .attr('viewBox', '0 0 ' + w + ' ' + M) + .attr('viewBox', '0 0 ' + x + ' ' + M) .attr('height', '100%') .attr('width', '100%') .append('g') @@ -185399,7 +185960,7 @@ object-assign value: [L, P], onChange: function(e) { return (function(e) { - var t = j.selectAll('rect'), + var t = N.selectAll('rect'), n = r(e, 2), o = n[0], a = n[1]; @@ -185449,29 +186010,29 @@ object-assign H = i .scaleBand() .range([0, S]) - .domain([].concat(u(O))) + .domain([].concat(u(E))) .padding(0.02); - j.append('g') + N.append('g') .style('font-size', 12) - .attr('transform', 'translate(0, ' + A + ')') + .attr('transform', 'translate(0, ' + O + ')') .call(i.axisBottom(H).tickSize(0)) .selectAll('text') .attr('dy', '1em') .filter(function(e, t) { - return t % B(5, O.size); + return t % B(5, E.size); }) .style('display', 'none'); var Y = i .scaleBand() - .range([A, 0]) - .domain([].concat(u(E)).sort()) + .range([O, 0]) + .domain([].concat(u(A)).sort()) .padding(0.02); - j.append('g') + N.append('g') .style('font-size', 12) .call(i.axisLeft(Y).tickSize(0)) .selectAll('text') .filter(function(e, t) { - return t % B(10, E.size); + return t % B(10, A.size); }) .style('display', 'none'); var W = i @@ -185492,7 +186053,7 @@ object-assign ) .style('display', 'none') .style('position', 'fixed'); - j.selectAll() + N.selectAll() .data(T, function(e) { return e.x + ':' + e.y; }) @@ -185507,7 +186068,7 @@ object-assign .attr('width', H.bandwidth()) .attr('height', Y.bandwidth()) .style('fill', function(e) { - return N(e.value); + return z(e.value); }) .style('cursor', 'pointer') .on('mouseover', function() { @@ -185693,35 +186254,35 @@ object-assign y = d.showSlider, v = this.config, _ = a.select(i), - x = a.select( + w = a.select( this.el().querySelector( '.' + this.config.theme + '-rendering .c3-chart' ) ), - w = Number(_.style('width').slice(0, -2)), + x = Number(_.style('width').slice(0, -2)), M = Number(_.style('height').slice(0, -2)), k = 0; f && (k += 31), y && (k += 20); - var S = x + var S = w .append('svg') - .attr('width', w) + .attr('width', x) .attr('height', M - k), - A = e.slice(1).map(function(e) { + O = e.slice(1).map(function(e) { return e[1]; }), - O = a.min(A), - E = a.max(A); - O === E && (O = 0); + E = a.min(O), + A = a.max(O); + E === A && (E = 0); var T = a.hsl(n[0]).brighter(1); T.l = 0.95; var C = n[0], L = a .scaleLinear() .domain([ - void 0 === O ? 0 : O, - void 0 === E ? 0 : E + void 0 === E ? 0 : E, + void 0 === A ? 0 : A ]) .range([T, C]); a.json( @@ -185732,10 +186293,7 @@ object-assign var f = a .zoom() .scaleExtent([1, 5]) - .translateExtent([ - [0, 0], - [w, M - 50] - ]) + .translateExtent([[0, 0], [x, M - 50]]) .on('zoom', function() { S.selectAll('.' + C).attr( 'transform', @@ -185747,19 +186305,19 @@ object-assign case 'world': d = a .geoMercator() - .fitSize([w, M - 50], t); + .fitSize([x, M - 50], t); break; case 'us': d = a .geoAlbersUsa() - .scale(w) - .fitSize([w, M - 50], t); + .scale(x) + .fitSize([x, M - 50], t); break; default: d = a .geoMercator() - .scale(w) - .fitSize([w, M - 50], t); + .scale(x) + .fitSize([x, M - 50], t); } var h = a.geoPath().projection(d), _ = t.features.map(function(t) { @@ -185779,11 +186337,11 @@ object-assign }); }); if (y) { - x + w .style('display', 'flex') .style('flex-direction', 'column') .style('justify-content', 'center'), - x + w .append('div') .style('width', '95%') .style('margin', 'auto') @@ -185793,7 +186351,7 @@ object-assign type: 'double', tooltips: !0, min: 0, - max: E, + max: A, onChange: function(e) { return (function(e) { var t = S.selectAll('.' + C), @@ -185817,7 +186375,7 @@ object-assign var k = i.className ? '.' + i.className.replace(/\s/g, '.') : i, - A = + O = '\n ' + k + ' .rangeable-progress,\n ' + @@ -185835,10 +186393,10 @@ object-assign ' .rangeable-handle {\n border-color: ' + n[0] + ';\n }\n ', - O = document.createElement('style'); - O.innerHTML = A; + E = document.createElement('style'); + E.innerHTML = O; var T = document.querySelector('script'); - T.parentNode.insertBefore(O, T); + T.parentNode.insertBefore(E, T); } var C = 'world' === p ? 'country' : 'state'; S.selectAll('path') @@ -185871,7 +186429,7 @@ object-assign .join('') ) .style('fill', function(e) { - return L(1.2 * E); + return L(1.2 * A); }) .style('stroke-width', 1.5 * m), P.style('opacity', 1).style( @@ -186385,25 +186943,7 @@ object-assign g = o ? Symbol.for('react.memo') : 60115, m = o ? Symbol.for('react.lazy') : 60116, b = 'function' == typeof Symbol && Symbol.iterator; - function y(e, t, n, r, o, i, a, s) { - if (!e) { - if (((e = void 0), void 0 === t)) - e = Error( - 'Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.' - ); - else { - var c = [n, r, o, i, a, s], - u = 0; - (e = Error( - t.replace(/%s/g, function() { - return c[u++]; - }) - )).name = 'Invariant Violation'; - } - throw ((e.framesToPop = 1), e); - } - } - function v(e) { + function y(e) { for ( var t = arguments.length - 1, n = @@ -186414,7 +186954,24 @@ object-assign r++ ) n += '&args[]=' + encodeURIComponent(arguments[r + 1]); - y( + !(function(e, t, n, r, o, i, a, s) { + if (!e) { + if (((e = void 0), void 0 === t)) + e = Error( + 'Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.' + ); + else { + var c = [n, r, o, i, a, s], + u = 0; + (e = Error( + t.replace(/%s/g, function() { + return c[u++]; + }) + )).name = 'Invariant Violation'; + } + throw ((e.framesToPop = 1), e); + } + })( !1, 'Minified React error #' + e + @@ -186422,7 +186979,7 @@ object-assign n ); } - var _ = { + var v = { isMounted: function() { return !1; }, @@ -186430,41 +186987,41 @@ object-assign enqueueReplaceState: function() {}, enqueueSetState: function() {} }, - x = {}; + _ = {}; function w(e, t, n) { (this.props = e), (this.context = t), - (this.refs = x), - (this.updater = n || _); + (this.refs = _), + (this.updater = n || v); } - function M() {} - function k(e, t, n) { + function x() {} + function M(e, t, n) { (this.props = e), (this.context = t), - (this.refs = x), - (this.updater = n || _); + (this.refs = _), + (this.updater = n || v); } (w.prototype.isReactComponent = {}), (w.prototype.setState = function(e, t) { 'object' != typeof e && 'function' != typeof e && null != e && - v('85'), + y('85'), this.updater.enqueueSetState(this, e, t, 'setState'); }), (w.prototype.forceUpdate = function(e) { this.updater.enqueueForceUpdate(this, e, 'forceUpdate'); }), - (M.prototype = w.prototype); - var S = (k.prototype = new M()); - (S.constructor = k), - r(S, w.prototype), - (S.isPureReactComponent = !0); - var A = { current: null }, + (x.prototype = w.prototype); + var k = (M.prototype = new x()); + (k.constructor = M), + r(k, w.prototype), + (k.isPureReactComponent = !0); + var S = { current: null }, O = { current: null }, E = Object.prototype.hasOwnProperty, - T = { key: !0, ref: !0, __self: !0, __source: !0 }; - function C(e, t, n) { + A = { key: !0, ref: !0, __self: !0, __source: !0 }; + function T(e, t, n) { var r = void 0, o = {}, a = null, @@ -186473,7 +187030,7 @@ object-assign for (r in (void 0 !== t.ref && (s = t.ref), void 0 !== t.key && (a = '' + t.key), t)) - E.call(t, r) && !T.hasOwnProperty(r) && (o[r] = t[r]); + E.call(t, r) && !A.hasOwnProperty(r) && (o[r] = t[r]); var c = arguments.length - 2; if (1 === c) o.children = n; else if (1 < c) { @@ -186493,14 +187050,14 @@ object-assign _owner: O.current }; } - function L(e) { + function C(e) { return 'object' == typeof e && null !== e && e.$$typeof === i; } - var P = /\/+/g, - D = []; - function z(e, t, n, r) { - if (D.length) { - var o = D.pop(); + var L = /\/+/g, + P = []; + function D(e, t, n, r) { + if (P.length) { + var o = P.pop(); return ( (o.result = e), (o.keyPrefix = t), @@ -186518,15 +187075,15 @@ object-assign count: 0 }; } - function N(e) { + function j(e) { (e.result = null), (e.keyPrefix = null), (e.func = null), (e.context = null), (e.count = 0), - 10 > D.length && D.push(e); + 10 > P.length && P.push(e); } - function j(e, t, n) { + function z(e, t, n) { return null == e ? 0 : (function e(t, n, r, o) { @@ -186547,14 +187104,14 @@ object-assign c = !0; } } - if (c) return r(o, t, '' === n ? '.' + R(t, 0) : n), 1; + if (c) return r(o, t, '' === n ? '.' + N(t, 0) : n), 1; if ( ((c = 0), (n = '' === n ? '.' : n + ':'), Array.isArray(t)) ) for (var u = 0; u < t.length; u++) { - var l = n + R((s = t[u]), u); + var l = n + N((s = t[u]), u); c += e(s, l, r, o); } else if ( @@ -186568,10 +187125,10 @@ object-assign : null) ) for (t = l.call(t), u = 0; !(s = t.next()).done; ) - c += e((s = s.value), (l = n + R(s, u++)), r, o); + c += e((s = s.value), (l = n + N(s, u++)), r, o); else 'object' === s && - v( + y( '31', '[object Object]' == (r = '' + t) ? 'object with keys {' + @@ -186583,7 +187140,7 @@ object-assign return c; })(e, '', t, n); } - function R(e, t) { + function N(e, t) { return 'object' == typeof e && null !== e && null != e.key ? (function(e) { var t = { '=': '=0', ':': '=2' }; @@ -186596,19 +187153,19 @@ object-assign })(e.key) : t.toString(36); } - function I(e, t) { + function R(e, t) { e.func.call(e.context, t, e.count++); } - function F(e, t, n) { + function I(e, t, n) { var r = e.result, o = e.keyPrefix; (e = e.func.call(e.context, t, e.count++)), Array.isArray(e) - ? q(e, r, n, function(e) { + ? F(e, r, n, function(e) { return e; }) : null != e && - (L(e) && + (C(e) && (e = (function(e, t) { return { $$typeof: i, @@ -186623,34 +187180,34 @@ object-assign o + (!e.key || (t && t.key === e.key) ? '' - : ('' + e.key).replace(P, '$&/') + '/') + + : ('' + e.key).replace(L, '$&/') + '/') + n )), r.push(e)); } - function q(e, t, n, r, o) { + function F(e, t, n, r, o) { var i = ''; - null != n && (i = ('' + n).replace(P, '$&/') + '/'), - j(e, F, (t = z(t, i, r, o))), - N(t); + null != n && (i = ('' + n).replace(L, '$&/') + '/'), + z(e, I, (t = D(t, i, r, o))), + j(t); } - function B() { - var e = A.current; - return null === e && v('321'), e; + function q() { + var e = S.current; + return null === e && y('321'), e; } - var H = { + var B = { Children: { map: function(e, t, n) { if (null == e) return e; var r = []; - return q(e, r, null, t, n), r; + return F(e, r, null, t, n), r; }, forEach: function(e, t, n) { if (null == e) return e; - j(e, I, (t = z(null, null, t, n))), N(t); + z(e, R, (t = D(null, null, t, n))), j(t); }, count: function(e) { - return j( + return z( e, function() { return null; @@ -186661,21 +187218,21 @@ object-assign toArray: function(e) { var t = []; return ( - q(e, t, null, function(e) { + F(e, t, null, function(e) { return e; }), t ); }, only: function(e) { - return L(e) || v('143'), e; + return C(e) || y('143'), e; } }, createRef: function() { return { current: null }; }, Component: w, - PureComponent: k, + PureComponent: M, createContext: function(e, t) { return ( void 0 === t && (t = null), @@ -186710,39 +187267,39 @@ object-assign }; }, useCallback: function(e, t) { - return B().useCallback(e, t); + return q().useCallback(e, t); }, useContext: function(e, t) { - return B().useContext(e, t); + return q().useContext(e, t); }, useEffect: function(e, t) { - return B().useEffect(e, t); + return q().useEffect(e, t); }, useImperativeHandle: function(e, t, n) { - return B().useImperativeHandle(e, t, n); + return q().useImperativeHandle(e, t, n); }, useDebugValue: function() {}, useLayoutEffect: function(e, t) { - return B().useLayoutEffect(e, t); + return q().useLayoutEffect(e, t); }, useMemo: function(e, t) { - return B().useMemo(e, t); + return q().useMemo(e, t); }, useReducer: function(e, t, n) { - return B().useReducer(e, t, n); + return q().useReducer(e, t, n); }, useRef: function(e) { - return B().useRef(e); + return q().useRef(e); }, useState: function(e) { - return B().useState(e); + return q().useState(e); }, Fragment: s, StrictMode: c, Suspense: h, - createElement: C, + createElement: T, cloneElement: function(e, t, n) { - null == e && v('267', e); + null == e && y('267', e); var o = void 0, a = r({}, e.props), s = e.key, @@ -186757,7 +187314,7 @@ object-assign (l = e.type.defaultProps), t)) E.call(t, o) && - !T.hasOwnProperty(o) && + !A.hasOwnProperty(o) && (a[o] = void 0 === t[o] && void 0 !== l ? l[o] : t[o]); } @@ -186777,22 +187334,22 @@ object-assign }; }, createFactory: function(e) { - var t = C.bind(null, e); + var t = T.bind(null, e); return (t.type = e), t; }, - isValidElement: L, + isValidElement: C, version: '16.8.5', unstable_ConcurrentMode: d, unstable_Profiler: u, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { - ReactCurrentDispatcher: A, + ReactCurrentDispatcher: S, ReactCurrentOwner: O, assign: r } }, - Y = { default: H }, - W = (Y && H) || Y; - e.exports = W.default || W; + H = { default: B }, + Y = (H && B) || H; + e.exports = Y.default || Y; }, function(e, t, n) { 'use strict'; @@ -187037,7 +187594,7 @@ object-assign ? e.replace(//g, '>') : e; }; - function x(e, t) { + function w(e, t) { (this.component = e), (this.params = t || {}), (this.d3 = e.d3), @@ -187058,22 +187615,22 @@ object-assign this.tickLength, (this.axis = this.generateAxis()); } - (x.prototype.axisX = function(e, t, n) { + (w.prototype.axisX = function(e, t, n) { e.attr('transform', function(e) { return 'translate(' + Math.ceil(t(e) + n) + ', 0)'; }); }), - (x.prototype.axisY = function(e, t) { + (w.prototype.axisY = function(e, t) { e.attr('transform', function(e) { return 'translate(0,' + Math.ceil(t(e)) + ')'; }); }), - (x.prototype.scaleExtent = function(e) { + (w.prototype.scaleExtent = function(e) { var t = e[0], n = e[e.length - 1]; return t < n ? [t, n] : [n, t]; }), - (x.prototype.generateTicks = function(e) { + (w.prototype.generateTicks = function(e) { var t, n, r = []; @@ -187087,7 +187644,7 @@ object-assign r ); }), - (x.prototype.copyScale = function() { + (w.prototype.copyScale = function() { var e, t = this.scale.copy(); return ( @@ -187096,11 +187653,11 @@ object-assign t ); }), - (x.prototype.textFormatted = function(e) { + (w.prototype.textFormatted = function(e) { var t = this.tickFormat ? this.tickFormat(e) : e; return void 0 !== t ? t : ''; }), - (x.prototype.updateRange = function() { + (w.prototype.updateRange = function() { return ( (this.range = this.scale.rangeExtent ? this.scale.rangeExtent() @@ -187108,7 +187665,7 @@ object-assign this.range ); }), - (x.prototype.updateTickTextCharSize = function(e) { + (w.prototype.updateTickTextCharSize = function(e) { var t = this; if (t.tickTextCharSize) return t.tickTextCharSize; var n = { h: 11.5, w: 5.5 }; @@ -187130,10 +187687,10 @@ object-assign n ); }), - (x.prototype.isVertical = function() { + (w.prototype.isVertical = function() { return 'left' === this.orient || 'right' === this.orient; }), - (x.prototype.tspanData = function(e, t, n) { + (w.prototype.tspanData = function(e, t, n) { var r = this.params.tickMultiline ? this.splitTickText(e, n) : [].concat(this.textFormatted(e)); @@ -187146,7 +187703,7 @@ object-assign }) ); }), - (x.prototype.splitTickText = function(e, t) { + (w.prototype.splitTickText = function(e, t) { var n, r, o, @@ -187178,7 +187735,7 @@ object-assign return t.concat(a); })([], a + '')); }), - (x.prototype.ellipsify = function(e, t) { + (w.prototype.ellipsify = function(e, t) { if (e.length <= t) return e; for (var n = e.slice(0, t), r = 3, o = t - 1; o >= 0; o--) { var i = n[o].length; @@ -187190,36 +187747,36 @@ object-assign } return n; }), - (x.prototype.updateTickLength = function() { + (w.prototype.updateTickLength = function() { this.tickLength = Math.max(this.innerTickSize, 0) + this.tickPadding; }), - (x.prototype.lineY2 = function(e) { + (w.prototype.lineY2 = function(e) { var t = this.scale(e) + (this.tickCentered ? 0 : this.tickOffset); return this.range[0] < t && t < this.range[1] ? this.innerTickSize : 0; }), - (x.prototype.textY = function() { + (w.prototype.textY = function() { var e = this.tickTextRotate; return e ? 11.5 - (e / 15) * 2.5 * (e > 0 ? 1 : -1) : this.tickLength; }), - (x.prototype.textTransform = function() { + (w.prototype.textTransform = function() { var e = this.tickTextRotate; return e ? 'rotate(' + e + ')' : ''; }), - (x.prototype.textTextAnchor = function() { + (w.prototype.textTextAnchor = function() { var e = this.tickTextRotate; return e ? (e > 0 ? 'start' : 'end') : 'middle'; }), - (x.prototype.tspanDx = function() { + (w.prototype.tspanDx = function() { var e = this.tickTextRotate; return e ? 8 * Math.sin(Math.PI * (e / 180)) : 0; }), - (x.prototype.tspanDy = function(e, t) { + (w.prototype.tspanDy = function(e, t) { var n = this.tickTextCharSize.h; return ( 0 === t && @@ -187232,7 +187789,7 @@ object-assign n ); }), - (x.prototype.generateAxis = function() { + (w.prototype.generateAxis = function() { var e = this, t = e.d3, n = e.params; @@ -187281,11 +187838,11 @@ object-assign return e.splitted; }); v.exit().remove(); - var x = u.selectAll('.domain').data([0]), - w = x + var w = u.selectAll('.domain').data([0]), + x = w .enter() .append('path') - .merge(x) + .merge(w) .attr('class', 'domain'); switch (e.orient) { case 'bottom': @@ -187314,7 +187871,7 @@ object-assign .attr('dx', function(t, n) { return e.tspanDx(t, n); }), - w.attr( + x.attr( 'd', 'M' + e.range[0] + @@ -187355,7 +187912,7 @@ object-assign .attr('dx', function(t, n) { return e.tspanDx(t, n); }), - w.attr( + x.attr( 'd', 'M' + e.range[0] + @@ -187383,7 +187940,7 @@ object-assign ) { return e.tspanDy(t, n); }), - w.attr( + x.attr( 'd', 'M' + -e.outerTickSize + @@ -187411,7 +187968,7 @@ object-assign ) { return e.tspanDy(t, n); }), - w.attr( + x.attr( 'd', 'M' + e.outerTickSize + @@ -187502,7 +188059,7 @@ object-assign r ); }); - var w = { + var x = { target: 'c3-target', chart: 'c3-chart', chartLine: 'c3-chart-line', @@ -187598,7 +188155,7 @@ object-assign })(this, e), (this.owner = t), (this.d3 = t.d3), - (this.internal = x); + (this.internal = w); }; (M.prototype.init = function() { var e = this.owner, @@ -187606,13 +188163,13 @@ object-assign n = e.main; (e.axes.x = n .append('g') - .attr('class', w.axis + ' ' + w.axisX) + .attr('class', x.axis + ' ' + x.axisX) .attr('clip-path', t.axis_x_inner ? '' : e.clipPathForXAxis) .attr('transform', e.getTranslate('x')) .style('visibility', t.axis_x_show ? 'visible' : 'hidden')), e.axes.x .append('text') - .attr('class', w.axisXLabel) + .attr('class', x.axisXLabel) .attr('transform', t.axis_rotated ? 'rotate(-90)' : '') .style( 'text-anchor', @@ -187620,7 +188177,7 @@ object-assign ), (e.axes.y = n .append('g') - .attr('class', w.axis + ' ' + w.axisY) + .attr('class', x.axis + ' ' + x.axisY) .attr( 'clip-path', t.axis_y_inner ? '' : e.clipPathForYAxis @@ -187632,7 +188189,7 @@ object-assign )), e.axes.y .append('text') - .attr('class', w.axisYLabel) + .attr('class', x.axisYLabel) .attr('transform', t.axis_rotated ? '' : 'rotate(-90)') .style( 'text-anchor', @@ -187640,7 +188197,7 @@ object-assign ), (e.axes.y2 = n .append('g') - .attr('class', w.axis + ' ' + w.axisY2) + .attr('class', x.axis + ' ' + x.axisY2) .attr('transform', e.getTranslate('y2')) .style( 'visibility', @@ -187648,7 +188205,7 @@ object-assign )), e.axes.y2 .append('text') - .attr('class', w.axisY2Label) + .attr('class', x.axisY2Label) .attr('transform', t.axis_rotated ? '' : 'rotate(-90)') .style( 'text-anchor', @@ -188009,9 +188566,9 @@ object-assign i, a = this.owner, s = 0; - return ( - (t && a.currentMaxTickWidths[e]) || - (a.svg && + return t && a.currentMaxTickWidths[e] + ? a.currentMaxTickWidths[e] + : (a.svg && ((n = a.filterTargetsToShow(a.data.targets)), 'y' === e ? ((r = a.y.copy().domain(a.getYDomain(n, 'y'))), @@ -188068,15 +188625,14 @@ object-assign i.remove(); })), (a.currentMaxTickWidths[e] = - s <= 0 ? a.currentMaxTickWidths[e] : s)), - a.currentMaxTickWidths[e] - ); + s <= 0 ? a.currentMaxTickWidths[e] : s), + a.currentMaxTickWidths[e]); }), (M.prototype.updateLabels = function(e) { var t = this.owner, - n = t.main.select('.' + w.axisX + ' .' + w.axisXLabel), - r = t.main.select('.' + w.axisY + ' .' + w.axisYLabel), - o = t.main.select('.' + w.axisY2 + ' .' + w.axisY2Label); + n = t.main.select('.' + x.axisX + ' .' + x.axisXLabel), + r = t.main.select('.' + x.axisY + ' .' + x.axisYLabel), + o = t.main.select('.' + x.axisY2 + ' .' + x.axisY2Label); (e ? n.transition() : n) .attr('x', this.xForXAxisLabel.bind(this)) .attr('dx', this.dxForXAxisLabel.bind(this)) @@ -188165,7 +188721,7 @@ object-assign fn: o.prototype, internal: { fn: r.prototype, - axis: { fn: M.prototype, internal: { fn: x.prototype } } + axis: { fn: M.prototype, internal: { fn: w.prototype } } } }, generate: function(e) { @@ -188207,7 +188763,7 @@ object-assign o ); } - function A(e) { + function O(e) { return ( e / Math.pow( @@ -188283,9 +188839,11 @@ object-assign ? t.timeFormat('%I:%M')(e) : e.getHours() ? t.timeFormat('%I %p')(e) - : (e.getDay() && 1 !== e.getDate()) || - 1 !== e.getDate() || - e.getMonth() + : e.getDay() && 1 !== e.getDate() + ? t.timeFormat('%-m/%-d')(e) + : 1 !== e.getDate() + ? t.timeFormat('%-m/%-d')(e) + : e.getMonth() ? t.timeFormat('%-m/%-d')(e) : t.timeFormat('%Y/%-m/%-d')(e); }), @@ -188420,7 +188978,7 @@ object-assign r.initSubchartBrush && r.initSubchartBrush(), n .append('text') - .attr('class', w.text + ' ' + w.empty) + .attr('class', x.text + ' ' + x.empty) .attr('text-anchor', 'middle') .attr('dominant-baseline', 'middle'), r.initRegion(), @@ -188428,7 +188986,7 @@ object-assign n .append('g') .attr('clip-path', r.clipPath) - .attr('class', w.chart), + .attr('class', x.chart), i.grid_lines_front && r.initGridLines(), r.initStanfordElements(), r.initEventRect(), @@ -188558,7 +189116,7 @@ object-assign (r.prototype.showTargets = function() { var e = this; e.svg - .selectAll('.' + w.target) + .selectAll('.' + x.target) .filter(function(t) { return e.isTargetToShow(t.id); }) @@ -188585,29 +189143,29 @@ object-assign y, v, _, - x, + w, M, k, S, - A, O, E, + A, T, C, L, P, D, - z, - N = this, - j = N.main, - R = N.d3, - I = N.config, - F = N.getShapeIndices(N.isAreaType), - q = N.getShapeIndices(N.isBarType), - B = N.getShapeIndices(N.isLineType), - H = N.hasArcType(), - Y = N.filterTargetsToShow(N.data.targets), - W = N.xv.bind(N); + j, + z = this, + N = z.main, + R = z.d3, + I = z.config, + F = z.getShapeIndices(z.isAreaType), + q = z.getShapeIndices(z.isBarType), + B = z.getShapeIndices(z.isLineType), + H = z.hasArcType(), + Y = z.filterTargetsToShow(z.data.targets), + W = z.xv.bind(z); if ( ((n = c((e = e || {}), 'withY', !0)), (r = c(e, 'withSubchart', !0)), @@ -188622,42 +189180,42 @@ object-assign (h = c(e, 'withDimension', !0)), (i = c(e, 'withTransitionForExit', o)), (a = c(e, 'withTransitionForAxis', o)), - (x = o ? I.transition_duration : 0), - (M = i ? x : 0), - (k = a ? x : 0), - (t = t || N.axis.generateTransitions(k)), + (w = o ? I.transition_duration : 0), + (M = i ? w : 0), + (k = a ? w : 0), + (t = t || z.axis.generateTransitions(k)), d && I.legend_show - ? N.updateLegend(N.mapToIds(N.data.targets), e, t) - : h && N.updateDimension(!0), - N.isCategorized() && + ? z.updateLegend(z.mapToIds(z.data.targets), e, t) + : h && z.updateDimension(!0), + z.isCategorized() && 0 === Y.length && - N.x.domain([0, N.axes.x.selectAll('.tick').size()]), + z.x.domain([0, z.axes.x.selectAll('.tick').size()]), Y.length - ? (N.updateXDomain(Y, u, l, f), + ? (z.updateXDomain(Y, u, l, f), I.axis_x_tick_values || - (T = N.axis.updateXAxisTickValues(Y))) - : (N.xAxis.tickValues([]), N.subXAxis.tickValues([])), - I.zoom_rescale && !e.flow && (P = N.x.orgDomain()), - N.y.domain(N.getYDomain(Y, 'y', P)), - N.y2.domain(N.getYDomain(Y, 'y2', P)), + (T = z.axis.updateXAxisTickValues(Y))) + : (z.xAxis.tickValues([]), z.subXAxis.tickValues([])), + I.zoom_rescale && !e.flow && (P = z.x.orgDomain()), + z.y.domain(z.getYDomain(Y, 'y', P)), + z.y2.domain(z.getYDomain(Y, 'y2', P)), !I.axis_y_tick_values && I.axis_y_tick_count && - N.yAxis.tickValues( - N.axis.generateTickValues( - N.y.domain(), + z.yAxis.tickValues( + z.axis.generateTickValues( + z.y.domain(), I.axis_y_tick_count ) ), !I.axis_y2_tick_values && I.axis_y2_tick_count && - N.y2Axis.tickValues( - N.axis.generateTickValues( - N.y2.domain(), + z.y2Axis.tickValues( + z.axis.generateTickValues( + z.y2.domain(), I.axis_y2_tick_count ) ), - N.axis.redraw(k, H), - N.axis.updateLabels(o), + z.axis.redraw(k, H), + z.axis.updateLabels(o), (u || g) && Y.length) ) if (I.axis_x_tick_culling && T) { @@ -188666,8 +189224,8 @@ object-assign L = C; break; } - N.svg - .selectAll('.' + w.axisX + ' .tick text') + z.svg + .selectAll('.' + x.axisX + ' .tick text') .each(function(e) { var t = T.indexOf(e); t >= 0 && @@ -188677,56 +189235,54 @@ object-assign ); }); } else - N.svg - .selectAll('.' + w.axisX + ' .tick text') + z.svg + .selectAll('.' + x.axisX + ' .tick text') .style('display', 'block'); - (m = N.generateDrawArea - ? N.generateDrawArea(F, !1) + (m = z.generateDrawArea + ? z.generateDrawArea(F, !1) : void 0), - (b = N.generateDrawBar ? N.generateDrawBar(q) : void 0), - (y = N.generateDrawLine - ? N.generateDrawLine(B, !1) + (b = z.generateDrawBar ? z.generateDrawBar(q) : void 0), + (y = z.generateDrawLine + ? z.generateDrawLine(B, !1) : void 0), - (v = N.generateXYForText(F, q, B, !0)), - (_ = N.generateXYForText(F, q, B, !1)), - N.updateCircleY(), - (D = (N.config.axis_rotated ? N.circleY : N.circleX).bind( - N + (v = z.generateXYForText(F, q, B, !0)), + (_ = z.generateXYForText(F, q, B, !1)), + z.updateCircleY(), + (D = (z.config.axis_rotated ? z.circleY : z.circleX).bind( + z )), - (z = (N.config.axis_rotated ? N.circleX : N.circleY).bind( - N + (j = (z.config.axis_rotated ? z.circleX : z.circleY).bind( + z )), n && - (N.subY.domain(N.getYDomain(Y, 'y')), - N.subY2.domain(N.getYDomain(Y, 'y2'))), - N.updateXgridFocus(), - j - .select('text.' + w.text + '.' + w.empty) - .attr('x', N.width / 2) - .attr('y', N.height / 2) + (z.subY.domain(z.getYDomain(Y, 'y')), + z.subY2.domain(z.getYDomain(Y, 'y2'))), + z.updateXgridFocus(), + N.select('text.' + x.text + '.' + x.empty) + .attr('x', z.width / 2) + .attr('y', z.height / 2) .text(I.data_empty_label_text) .transition() .style('opacity', Y.length ? 0 : 1), - p && N.redrawEventRect(), - N.updateGrid(x), - N.updateStanfordElements(x), - N.updateRegion(x), - N.updateBar(M), - N.updateLine(M), - N.updateArea(M), - N.updateCircle(D, z), - N.hasDataLabel() && N.updateText(v, _, M), - N.redrawTitle && N.redrawTitle(), - N.redrawArc && N.redrawArc(x, M, s), - N.redrawSubchart && N.redrawSubchart(r, t, x, M, F, q, B), - N.isStanfordGraphType() && N.drawColorScale(), - j - .selectAll('.' + w.selectedCircles) - .filter(N.isBarType.bind(N)) + p && z.redrawEventRect(), + z.updateGrid(w), + z.updateStanfordElements(w), + z.updateRegion(w), + z.updateBar(M), + z.updateLine(M), + z.updateArea(M), + z.updateCircle(D, j), + z.hasDataLabel() && z.updateText(v, _, M), + z.redrawTitle && z.redrawTitle(), + z.redrawArc && z.redrawArc(w, M, s), + z.redrawSubchart && z.redrawSubchart(r, t, w, M, F, q, B), + z.isStanfordGraphType() && z.drawColorScale(), + N.selectAll('.' + x.selectedCircles) + .filter(z.isBarType.bind(z)) .selectAll('circle') .remove(), e.flow && - (O = N.generateFlow({ + (E = z.generateFlow({ targets: Y, flow: e.flow, duration: e.flow.duration, @@ -188734,45 +189290,45 @@ object-assign drawLine: y, drawArea: m, cx: D, - cy: z, + cy: j, xv: W, xForText: v, yForText: _ })), - x && N.isTabVisible() - ? ((E = R.transition().duration(x)), + w && z.isTabVisible() + ? ((A = R.transition().duration(w)), (S = []), [ - N.redrawBar(b, !0, E), - N.redrawLine(y, !0, E), - N.redrawArea(m, !0, E), - N.redrawCircle(D, z, !0, E), - N.redrawText(v, _, e.flow, !0, E), - N.redrawRegion(!0, E), - N.redrawGrid(!0, E) + z.redrawBar(b, !0, A), + z.redrawLine(y, !0, A), + z.redrawArea(m, !0, A), + z.redrawCircle(D, j, !0, A), + z.redrawText(v, _, e.flow, !0, A), + z.redrawRegion(!0, A), + z.redrawGrid(!0, A) ].forEach(function(e) { e.forEach(function(e) { S.push(e); }); }), - (A = N.generateWait()), + (O = z.generateWait()), S.forEach(function(e) { - A.add(e); + O.add(e); }), - A(function() { - O && O(), I.onrendered && I.onrendered.call(N); + O(function() { + E && E(), I.onrendered && I.onrendered.call(z); })) - : (N.redrawBar(b), - N.redrawLine(y), - N.redrawArea(m), - N.redrawCircle(D, z), - N.redrawText(v, _, e.flow), - N.redrawRegion(), - N.redrawGrid(), - O && O(), - I.onrendered && I.onrendered.call(N)), - N.mapToIds(N.data.targets).forEach(function(e) { - N.withoutFadeIn[e] = !0; + : (z.redrawBar(b), + z.redrawLine(y), + z.redrawArea(m), + z.redrawCircle(D, j), + z.redrawText(v, _, e.flow), + z.redrawRegion(), + z.redrawGrid(), + E && E(), + I.onrendered && I.onrendered.call(z)), + z.mapToIds(z.data.targets).forEach(function(e) { + z.withoutFadeIn[e] = !0; }); }), (r.prototype.updateAndRedraw = function(e) { @@ -188918,15 +189474,15 @@ object-assign i = this; t && t.axisX ? (n = t.axisX) - : ((n = i.main.select('.' + w.axisX)), + : ((n = i.main.select('.' + x.axisX)), e && (n = n.transition())), t && t.axisY ? (r = t.axisY) - : ((r = i.main.select('.' + w.axisY)), + : ((r = i.main.select('.' + x.axisY)), e && (r = r.transition())), t && t.axisY2 ? (o = t.axisY2) - : ((o = i.main.select('.' + w.axisY2)), + : ((o = i.main.select('.' + x.axisY2)), e && (o = o.transition())), (e ? i.main.transition() : i.main).attr( 'transform', @@ -188936,7 +189492,7 @@ object-assign r.attr('transform', i.getTranslate('y')), o.attr('transform', i.getTranslate('y2')), i.main - .select('.' + w.chartArcs) + .select('.' + x.chartArcs) .attr('transform', i.getTranslate('arc')); }), (r.prototype.transformAll = function(e, t) { @@ -189179,7 +189735,7 @@ object-assign return !document.hidden; }), (r.prototype.getPathBox = u), - (r.prototype.CLASS = w), + (r.prototype.CLASS = x), 'SVGPathSeg' in window || ((window.SVGPathSeg = function(e, t, n) { (this.pathSegType = e), @@ -191978,20 +192534,20 @@ object-assign y = e.drawBar, v = e.drawLine, _ = e.drawArea, - x = e.cx, + w = e.cx, M = e.cy, k = e.xv, S = e.xForText, - A = e.yForText, - O = e.duration, - E = b.index, + O = e.yForText, + E = e.duration, + A = b.index, T = b.length, - C = t.getValueOnIndex(t.data.targets[0].values, E), - L = t.getValueOnIndex(t.data.targets[0].values, E + T), + C = t.getValueOnIndex(t.data.targets[0].values, A), + L = t.getValueOnIndex(t.data.targets[0].values, A + T), P = t.x.domain(), - D = b.duration || O, - z = b.done || function() {}, - N = t.generateWait(); + D = b.duration || E, + j = b.done || function() {}, + z = t.generateWait(); (t.flowing = !0), t.data.targets.forEach(function(e) { e.values.splice(0, T); @@ -192008,9 +192564,9 @@ object-assign (g = t.mainCircle || r.selectAll([])), b.orgDataCount ? (o = - 1 === b.orgDataCount || - (C && C.x) === (L && L.x) || - t.isTimeSeries() + 1 === b.orgDataCount || (C && C.x) === (L && L.x) + ? t.x(P[0]) - t.x(a[0]) + : t.isTimeSeries() ? t.x(P[0]) - t.x(a[0]) : t.x(C.x) - t.x(L.x)) : 1 !== t.data.targets[0].values.length @@ -192033,41 +192589,41 @@ object-assign s(P) / s(a) + ',1)'), t.hideXGridFocus(); - var j = r + var N = r .transition() .ease(r.easeLinear) .duration(D); - N.add(t.xAxis(t.axes.x, j)), - N.add(d.transition(j).attr('transform', i)), - N.add(p.transition(j).attr('transform', i)), - N.add(h.transition(j).attr('transform', i)), - N.add(g.transition(j).attr('transform', i)), - N.add(f.transition(j).attr('transform', i)), - N.add( + z.add(t.xAxis(t.axes.x, N)), + z.add(d.transition(N).attr('transform', i)), + z.add(p.transition(N).attr('transform', i)), + z.add(h.transition(N).attr('transform', i)), + z.add(g.transition(N).attr('transform', i)), + z.add(f.transition(N).attr('transform', i)), + z.add( l .filter(t.isRegionOnX) - .transition(j) + .transition(N) .attr('transform', i) ), - N.add(c.transition(j).attr('transform', i)), - N.add(u.transition(j).attr('transform', i)), - N(function() { + z.add(c.transition(N).attr('transform', i)), + z.add(u.transition(N).attr('transform', i)), + z(function() { var e, r = [], o = []; if (T) { for (e = 0; e < T; e++) - r.push('.' + w.shape + '-' + (E + e)), - o.push('.' + w.text + '-' + (E + e)); + r.push('.' + x.shape + '-' + (A + e)), + o.push('.' + x.text + '-' + (A + e)); t.svg - .selectAll('.' + w.shapes) + .selectAll('.' + x.shapes) .selectAll(r) .remove(), t.svg - .selectAll('.' + w.texts) + .selectAll('.' + x.texts) .selectAll(o) .remove(), - t.svg.select('.' + w.xgrid).remove(); + t.svg.select('.' + x.xgrid).remove(); } c .attr('transform', null) @@ -192090,19 +192646,19 @@ object-assign h.attr('transform', null).attr('d', _), g .attr('transform', null) - .attr('cx', x) + .attr('cx', w) .attr('cy', M), f .attr('transform', null) .attr('x', S) - .attr('y', A) + .attr('y', O) .style('fill-opacity', t.opacityForText.bind(t)), l.attr('transform', null), l .filter(t.isRegionOnX) .attr('x', t.regionX.bind(t)) .attr('width', t.regionWidth.bind(t)), - z(), + j(), (t.flowing = !1); }); }; @@ -192116,7 +192672,7 @@ object-assign )), this.revert(), this.defocus(), - t.classed(w.focused, !0).classed(w.defocused, !1), + t.classed(x.focused, !0).classed(x.defocused, !1), n.hasArcType() && n.expandArc(e), n.toggleFocusLegend(e, !0), (n.focusedTargetIds = e), @@ -192133,8 +192689,8 @@ object-assign .selectAll( t.selectorTargets(e.filter(t.isTargetToShow, t)) ) - .classed(w.focused, !1) - .classed(w.defocused, !0), + .classed(x.focused, !1) + .classed(x.defocused, !0), t.hasArcType() && t.unexpandArc(e), t.toggleFocusLegend(e, !1), (t.focusedTargetIds = t.focusedTargetIds.filter(function( @@ -192149,8 +192705,8 @@ object-assign (e = t.mapToTargetIds(e)), t.svg .selectAll(t.selectorTargets(e)) - .classed(w.focused, !1) - .classed(w.defocused, !1), + .classed(x.focused, !1) + .classed(x.defocused, !1), t.hasArcType() && t.unexpandArc(e), t.config.legend_show && (t.showLegend(e.filter(t.isLegendToShow.bind(t))), @@ -192159,9 +192715,9 @@ object-assign .filter(function() { return t.d3 .select(this) - .classed(w.legendItemFocused); + .classed(x.legendItemFocused); }) - .classed(w.legendItemFocused, !1)), + .classed(x.legendItemFocused, !1)), (t.focusedTargetIds = []), (t.defocusedTargetIds = []); }), @@ -192200,9 +192756,9 @@ object-assign (o.prototype.groups = function(e) { var t = this.internal, n = t.config; - return ( - b(e) || ((n.data_groups = e), t.redraw()), n.data_groups - ); + return b(e) + ? n.data_groups + : ((n.data_groups = e), t.redraw(), n.data_groups); }), (o.prototype.legend = function() {}), (o.prototype.legend.show = function(e) { @@ -192290,8 +192846,8 @@ object-assign i = o.config; return ( (t = c((e = e || {}), 'duration', i.transition_duration)), - (n = c(e, 'classes', [w.region])), - (r = o.main.select('.' + w.regions).selectAll( + (n = c(e, 'classes', [x.region])), + (r = o.main.select('.' + x.regions).selectAll( n.map(function(e) { return '.' + e; }) @@ -192316,10 +192872,10 @@ object-assign var t = this.internal, n = t.d3; return t.main - .selectAll('.' + w.shapes + t.getTargetSelectorSuffix(e)) - .selectAll('.' + w.shape) + .selectAll('.' + x.shapes + t.getTargetSelectorSuffix(e)) + .selectAll('.' + x.shape) .filter(function() { - return n.select(this).classed(w.SELECTED); + return n.select(this).classed(x.SELECTED); }) .nodes() .map(function(e) { @@ -192333,8 +192889,8 @@ object-assign i = r.config; i.data_selection_enabled && r.main - .selectAll('.' + w.shapes) - .selectAll('.' + w.shape) + .selectAll('.' + x.shapes) + .selectAll('.' + x.shape) .each(function(a, s) { var c = o.select(this), u = a.data ? a.data.id : a.id, @@ -192344,17 +192900,17 @@ object-assign !e || e.indexOf(u) >= 0, p = !t || t.indexOf(s) >= 0, - h = c.classed(w.SELECTED); - c.classed(w.line) || - c.classed(w.area) || + h = c.classed(x.SELECTED); + c.classed(x.line) || + c.classed(x.area) || (f && p ? i.data_selection_isselectable(a) && !h && - l(!0, c.classed(w.SELECTED, !0), a, s) + l(!0, c.classed(x.SELECTED, !0), a, s) : d(n) && n && h && - l(!1, c.classed(w.SELECTED, !1), a, s)); + l(!1, c.classed(x.SELECTED, !1), a, s)); }); }), (o.prototype.unselect = function(e, t) { @@ -192363,8 +192919,8 @@ object-assign o = n.config; o.data_selection_enabled && n.main - .selectAll('.' + w.shapes) - .selectAll('.' + w.shape) + .selectAll('.' + x.shapes) + .selectAll('.' + x.shape) .each(function(i, a) { var s = r.select(this), c = i.data ? i.data.id : i.id, @@ -192374,14 +192930,14 @@ object-assign !e || e.indexOf(c) >= 0, f = !t || t.indexOf(a) >= 0, - d = s.classed(w.SELECTED); - s.classed(w.line) || - s.classed(w.area) || + d = s.classed(x.SELECTED); + s.classed(x.line) || + s.classed(x.area) || (l && f && o.data_selection_isselectable(i) && d && - u(!1, s.classed(w.SELECTED, !1), i, a)); + u(!1, s.classed(x.SELECTED, !1), i, a)); }); }), (o.prototype.show = function(e, t) { @@ -192805,7 +193361,7 @@ object-assign }, 10)) : ((e = n.mapToTargetIds(e)), n.svg - .selectAll(n.selectorTargets(e, '.' + w.chartArc)) + .selectAll(n.selectorTargets(e, '.' + x.chartArc)) .each(function(e) { n.shouldExpand(e.data.id) && n.d3 @@ -192827,14 +193383,14 @@ object-assign t.transiting || ((e = t.mapToTargetIds(e)), t.svg - .selectAll(t.selectorTargets(e, '.' + w.chartArc)) + .selectAll(t.selectorTargets(e, '.' + x.chartArc)) .selectAll('path') .transition() .duration(function(e) { return t.expandDuration(e.data.id); }) .attr('d', t.svgArc), - t.svg.selectAll('.' + w.arc)); + t.svg.selectAll('.' + x.arc)); }), (r.prototype.expandDuration = function(e) { var t = this.config; @@ -192897,8 +193453,8 @@ object-assign i = n.classArcs.bind(n), a = n.classFocus.bind(n); (t = r - .select('.' + w.chartArcs) - .selectAll('.' + w.chartArc) + .select('.' + x.chartArcs) + .selectAll('.' + x.chartArc) .data(n.pie(e)) .attr('class', function(e) { return o(e) + a(e.data); @@ -192918,13 +193474,13 @@ object-assign (r.prototype.initArc = function() { var e = this; (e.arcs = e.main - .select('.' + w.chart) + .select('.' + x.chart) .append('g') - .attr('class', w.chartArcs) + .attr('class', x.chartArcs) .attr('transform', e.getTranslate('arc'))), e.arcs .append('text') - .attr('class', w.chartArcsTitle) + .attr('class', x.chartArcsTitle) .style('text-anchor', 'middle') .text(e.getArcTitle()); }), @@ -192940,8 +193496,8 @@ object-assign f = s.hasType('gauge'); if ( ((o = (r = l - .selectAll('.' + w.arcs) - .selectAll('.' + w.arc) + .selectAll('.' + x.arcs) + .selectAll('.' + x.arc) .data(s.arcData.bind(s))) .enter() .append('path') @@ -192963,18 +193519,18 @@ object-assign .merge(r)), f && ((a = (i = l - .selectAll('.' + w.arcs) - .selectAll('.' + w.arcLabelLine) + .selectAll('.' + x.arcs) + .selectAll('.' + x.arcLabelLine) .data(s.arcData.bind(s))) .enter() .append('rect') .attr('class', function(e) { return ( - w.arcLabelLine + + x.arcLabelLine + ' ' + - w.target + + x.target + ' ' + - w.target + + x.target + '-' + e.data.id ); @@ -193130,11 +193686,11 @@ object-assign .style('opacity', 0) .remove(), l - .selectAll('.' + w.chartArc) + .selectAll('.' + x.chartArc) .select('text') .style('opacity', 0) .attr('class', function(e) { - return s.isGaugeType(e.data) ? w.gaugeValue : ''; + return s.isGaugeType(e.data) ? x.gaugeValue : ''; }) .text(s.textForArcLabel.bind(s)) .attr('transform', s.transformForArcLabel.bind(s)) @@ -193153,23 +193709,23 @@ object-assign : 0; }), l - .select('.' + w.chartArcsTitle) + .select('.' + x.chartArcsTitle) .style('opacity', s.hasType('donut') || f ? 1 : 0), f) ) { var d = 0, p = s.arcs - .select('g.' + w.chartArcsBackground) - .selectAll('path.' + w.chartArcsBackground) + .select('g.' + x.chartArcsBackground) + .selectAll('path.' + x.chartArcsBackground) .data(s.data.targets); p .enter() .append('path') .attr('class', function(e, t) { return ( - w.chartArcsBackground + + x.chartArcsBackground + ' ' + - w.chartArcsBackground + + x.chartArcsBackground + '-' + t ); @@ -193191,11 +193747,11 @@ object-assign }), p.exit().remove(), s.arcs - .select('.' + w.chartArcsGaugeUnit) + .select('.' + x.chartArcsGaugeUnit) .attr('dy', '.75em') .text(u.gauge_label_show ? u.gauge_units : ''), s.arcs - .select('.' + w.chartArcsGaugeMin) + .select('.' + x.chartArcsGaugeMin) .attr( 'dx', -1 * @@ -193211,7 +193767,7 @@ object-assign : '' ), s.arcs - .select('.' + w.chartArcsGaugeMax) + .select('.' + x.chartArcsGaugeMax) .attr( 'dx', s.innerRadius + @@ -193230,20 +193786,20 @@ object-assign (r.prototype.initGauge = function() { var e = this.arcs; this.hasType('gauge') && - (e.append('g').attr('class', w.chartArcsBackground), + (e.append('g').attr('class', x.chartArcsBackground), e .append('text') - .attr('class', w.chartArcsGaugeUnit) + .attr('class', x.chartArcsGaugeUnit) .style('text-anchor', 'middle') .style('pointer-events', 'none'), e .append('text') - .attr('class', w.chartArcsGaugeMin) + .attr('class', x.chartArcsGaugeMin) .style('text-anchor', 'middle') .style('pointer-events', 'none'), e .append('text') - .attr('class', w.chartArcsGaugeMax) + .attr('class', x.chartArcsGaugeMax) .style('text-anchor', 'middle') .style('pointer-events', 'none')); }), @@ -193295,85 +193851,85 @@ object-assign return ' ' + e + ' ' + e + this.generateTargetClass(t); }), (r.prototype.classText = function(e) { - return this.generateClass(w.text, e.index); + return this.generateClass(x.text, e.index); }), (r.prototype.classTexts = function(e) { - return this.generateClass(w.texts, e.id); + return this.generateClass(x.texts, e.id); }), (r.prototype.classShape = function(e) { - return this.generateClass(w.shape, e.index); + return this.generateClass(x.shape, e.index); }), (r.prototype.classShapes = function(e) { - return this.generateClass(w.shapes, e.id); + return this.generateClass(x.shapes, e.id); }), (r.prototype.classLine = function(e) { return ( - this.classShape(e) + this.generateClass(w.line, e.id) + this.classShape(e) + this.generateClass(x.line, e.id) ); }), (r.prototype.classLines = function(e) { return ( - this.classShapes(e) + this.generateClass(w.lines, e.id) + this.classShapes(e) + this.generateClass(x.lines, e.id) ); }), (r.prototype.classCircle = function(e) { return ( - this.classShape(e) + this.generateClass(w.circle, e.index) + this.classShape(e) + this.generateClass(x.circle, e.index) ); }), (r.prototype.classCircles = function(e) { return ( - this.classShapes(e) + this.generateClass(w.circles, e.id) + this.classShapes(e) + this.generateClass(x.circles, e.id) ); }), (r.prototype.classBar = function(e) { return ( - this.classShape(e) + this.generateClass(w.bar, e.index) + this.classShape(e) + this.generateClass(x.bar, e.index) ); }), (r.prototype.classBars = function(e) { return ( - this.classShapes(e) + this.generateClass(w.bars, e.id) + this.classShapes(e) + this.generateClass(x.bars, e.id) ); }), (r.prototype.classArc = function(e) { return ( this.classShape(e.data) + - this.generateClass(w.arc, e.data.id) + this.generateClass(x.arc, e.data.id) ); }), (r.prototype.classArcs = function(e) { return ( this.classShapes(e.data) + - this.generateClass(w.arcs, e.data.id) + this.generateClass(x.arcs, e.data.id) ); }), (r.prototype.classArea = function(e) { return ( - this.classShape(e) + this.generateClass(w.area, e.id) + this.classShape(e) + this.generateClass(x.area, e.id) ); }), (r.prototype.classAreas = function(e) { return ( - this.classShapes(e) + this.generateClass(w.areas, e.id) + this.classShapes(e) + this.generateClass(x.areas, e.id) ); }), (r.prototype.classRegion = function(e, t) { return ( - this.generateClass(w.region, t) + + this.generateClass(x.region, t) + ' ' + ('class' in e ? e.class : '') ); }), (r.prototype.classEvent = function(e) { - return this.generateClass(w.eventRect, e.index); + return this.generateClass(x.eventRect, e.index); }), (r.prototype.classTarget = function(e) { var t = this.config.data_classes[e], n = ''; return ( - t && (n = ' ' + w.target + '-' + t), - this.generateClass(w.target, e) + n + t && (n = ' ' + x.target + '-' + t), + this.generateClass(x.target, e) + n ); }), (r.prototype.classFocus = function(e) { @@ -193383,7 +193939,7 @@ object-assign return ( ' ' + (this.focusedTargetIds.indexOf(e.id) >= 0 - ? w.focused + ? x.focused : '') ); }), @@ -193391,21 +193947,21 @@ object-assign return ( ' ' + (this.defocusedTargetIds.indexOf(e.id) >= 0 - ? w.defocused + ? x.defocused : '') ); }), (r.prototype.classChartText = function(e) { - return w.chartText + this.classTarget(e.id); + return x.chartText + this.classTarget(e.id); }), (r.prototype.classChartLine = function(e) { - return w.chartLine + this.classTarget(e.id); + return x.chartLine + this.classTarget(e.id); }), (r.prototype.classChartBar = function(e) { - return w.chartBar + this.classTarget(e.id); + return x.chartBar + this.classTarget(e.id); }), (r.prototype.classChartArc = function(e) { - return w.chartArc + this.classTarget(e.data.id); + return x.chartArc + this.classTarget(e.data.id); }), (r.prototype.getTargetSelectorSuffix = function(e) { var t = this.generateTargetClass(e); @@ -193420,7 +193976,7 @@ object-assign return ( (t || '') + '.' + - w.target + + x.target + this.getTargetSelectorSuffix(e) ); }), @@ -193433,7 +193989,7 @@ object-assign : null; }), (r.prototype.selectorLegend = function(e) { - return '.' + w.legendItem + this.getTargetSelectorSuffix(e); + return '.' + x.legendItem + this.getTargetSelectorSuffix(e); }), (r.prototype.selectorLegends = function(e) { var t = this; @@ -194540,10 +195096,10 @@ object-assign var n = i.main .select( '.' + - w.bars + + x.bars + i.getTargetSelectorSuffix(e.id) + ' .' + - w.bar + + x.bar + '-' + e.index ) @@ -194626,14 +195182,13 @@ object-assign }), (r.prototype.updateDataAttributes = function(e, t) { var n = this.config['data_' + e]; - return ( - void 0 === t || - (Object.keys(t).forEach(function(e) { + return void 0 === t + ? n + : (Object.keys(t).forEach(function(e) { n[e] = t[e]; }), - this.redraw({ withLegend: !0 })), - n - ); + this.redraw({ withLegend: !0 }), + n); }), (r.prototype.load = function(e, t) { var n = this; @@ -194720,7 +195275,7 @@ object-assign n.legend .selectAll( '.' + - w.legendItem + + x.legendItem + n.getTargetSelectorSuffix(e) ) .remove(), @@ -194847,44 +195402,44 @@ object-assign }), b = n ? r.filterByXDomain(m, n) : m, _ = 'y2' === t ? o.axis_y2_min : o.axis_y_min, - x = 'y2' === t ? o.axis_y2_max : o.axis_y_max, - w = r.getYDomainMin(b), + w = 'y2' === t ? o.axis_y2_max : o.axis_y_max, + x = r.getYDomainMin(b), M = r.getYDomainMax(b), k = 'y2' === t ? o.axis_y2_center : o.axis_y_center, S = (r.hasType('bar', b) && o.bar_zerobased) || (r.hasType('area', b) && o.area_zerobased), - A = 'y2' === t ? o.axis_y2_inverted : o.axis_y_inverted, - O = r.hasDataLabel() && o.axis_rotated, - E = r.hasDataLabel() && !o.axis_rotated; + O = 'y2' === t ? o.axis_y2_inverted : o.axis_y_inverted, + E = r.hasDataLabel() && o.axis_rotated, + A = r.hasDataLabel() && !o.axis_rotated; if ( - ((w = y(_) ? _ : y(x) ? (w < x ? w : x - 10) : w), - (M = y(x) ? x : y(_) ? (_ < M ? M : _ + 10) : M), + ((x = y(_) ? _ : y(w) ? (x < w ? x : w - 10) : x), + (M = y(w) ? w : y(_) ? (_ < M ? M : _ + 10) : M), 0 === b.length) ) return 'y2' === t ? r.y2.domain() : r.y.domain(); if ( - (isNaN(w) && (w = 0), - isNaN(M) && (M = w), - w === M && (w < 0 ? (M = 0) : (w = 0)), - (h = w >= 0 && M >= 0), - (g = w <= 0 && M <= 0), - ((y(_) && h) || (y(x) && g)) && (S = !1), - S && (h && (w = 0), g && (M = 0)), - (c = u = 0.1 * (a = Math.abs(M - w))), + (isNaN(x) && (x = 0), + isNaN(M) && (M = x), + x === M && (x < 0 ? (M = 0) : (x = 0)), + (h = x >= 0 && M >= 0), + (g = x <= 0 && M <= 0), + ((y(_) && h) || (y(w) && g)) && (S = !1), + S && (h && (x = 0), g && (M = 0)), + (c = u = 0.1 * (a = Math.abs(M - x))), void 0 !== k && - ((M = k + (l = Math.max(Math.abs(w), Math.abs(M)))), - (w = k - l)), - O) + ((M = k + (l = Math.max(Math.abs(x), Math.abs(M)))), + (x = k - l)), + E) ) - (f = r.getDataLabelLength(w, M, 'width')), + (f = r.getDataLabelLength(x, M, 'width')), (d = s(r.y.range())), (c += a * ((p = [f[0] / d, f[1] / d])[1] / (1 - p[0] - p[1]))), (u += a * (p[0] / (1 - p[0] - p[1]))); - else if (E) { - f = r.getDataLabelLength(w, M, 'height'); + else if (A) { + f = r.getDataLabelLength(x, M, 'height'); var T = r.getY( o['axis_'.concat(t, '_type')], [0, o.axis_rotated ? r.width : r.height], @@ -194916,9 +195471,9 @@ object-assign u, a ))), - S && (h && (u = w), g && (c = -M)), - (i = [w - u, M + c]), - A ? i.reverse() : i + S && (h && (u = x), g && (c = -M)), + (i = [x - u, M + c]), + O ? i.reverse() : i ); }), (r.prototype.getXDomainMin = function(e) { @@ -195063,14 +195618,14 @@ object-assign ? l.height : Math.max(n, o)), d - .select('.' + w.dragarea) + .select('.' + x.dragarea) .attr('x', i) .attr('y', s) .attr('width', a - i) .attr('height', c - s), d - .selectAll('.' + w.shapes) - .selectAll('.' + w.shape) + .selectAll('.' + x.shapes) + .selectAll('.' + x.shape) .filter(function(e) { return f.data_selection_isselectable(e); }) @@ -195082,16 +195637,16 @@ object-assign d, h, g = p.select(this), - m = g.classed(w.SELECTED), - b = g.classed(w.INCLUDED), + m = g.classed(x.SELECTED), + b = g.classed(x.INCLUDED), y = !1; - if (g.classed(w.circle)) + if (g.classed(x.circle)) (n = 1 * g.attr('cx')), (r = 1 * g.attr('cy')), (d = l.togglePoint), (y = i < n && n < a && s < r && r < c); else { - if (!g.classed(w.bar)) return; + if (!g.classed(x.bar)) return; (n = (h = u(this)).x), (r = h.y), (o = h.width), @@ -195105,8 +195660,8 @@ object-assign )); } y ^ b && - (g.classed(w.INCLUDED, !b), - g.classed(w.SELECTED, !m), + (g.classed(x.INCLUDED, !b), + g.classed(x.SELECTED, !m), d.call(l, !m, g, e, t)); }))); }), @@ -195117,9 +195672,9 @@ object-assign (n.data_selection_enabled && ((t.dragStart = e), t.main - .select('.' + w.chart) + .select('.' + x.chart) .append('rect') - .attr('class', w.dragarea) + .attr('class', x.dragarea) .style('opacity', 0.1), (t.dragging = !0))); }), @@ -195129,12 +195684,12 @@ object-assign e.hasArcType() || (t.data_selection_enabled && (e.main - .select('.' + w.dragarea) + .select('.' + x.dragarea) .transition() .duration(100) .style('opacity', 0) .remove(), - e.main.selectAll('.' + w.shape).classed(w.INCLUDED, !1), + e.main.selectAll('.' + x.shape).classed(x.INCLUDED, !1), (e.dragging = !1))); }), (r.prototype.getYFormat = function(e) { @@ -195193,17 +195748,17 @@ object-assign (e.grid = e.main .append('g') .attr('clip-path', e.clipPathForGrid) - .attr('class', w.grid)), + .attr('class', x.grid)), t.grid_x_show && - e.grid.append('g').attr('class', w.xgrids), + e.grid.append('g').attr('class', x.xgrids), t.grid_y_show && - e.grid.append('g').attr('class', w.ygrids), + e.grid.append('g').attr('class', x.ygrids), t.grid_focus_show && e.grid .append('g') - .attr('class', w.xgridFocus) + .attr('class', x.xgridFocus) .append('line') - .attr('class', w.xgridFocus), + .attr('class', x.xgridFocus), (e.xgrid = n.selectAll([])), t.grid_lines_front || e.initGridLines(); }), @@ -195213,9 +195768,9 @@ object-assign (e.gridLines = e.main .append('g') .attr('clip-path', e.clipPathForGrid) - .attr('class', w.grid + ' ' + w.gridLines)), - e.gridLines.append('g').attr('class', w.xgridLines), - e.gridLines.append('g').attr('class', w.ygridLines), + .attr('class', x.grid + ' ' + x.gridLines)), + e.gridLines.append('g').attr('class', x.xgridLines), + e.gridLines.append('g').attr('class', x.ygridLines), (e.xgridLines = t.selectAll([])); }), (r.prototype.updateXGrid = function(e) { @@ -195254,13 +195809,13 @@ object-assign : 1; }); var a = t.main - .select('.' + w.xgrids) - .selectAll('.' + w.xgrid) + .select('.' + x.xgrids) + .selectAll('.' + x.xgrid) .data(o), s = a .enter() .append('line') - .attr('class', w.xgrid) + .attr('class', x.xgrid) .attr('x1', t.xgridAttr.x1) .attr('x2', t.xgridAttr.x2) .attr('y1', t.xgridAttr.y1) @@ -195281,13 +195836,13 @@ object-assign t = e.config, n = e.yAxis.tickValues() || e.y.ticks(t.grid_y_ticks), r = e.main - .select('.' + w.ygrids) - .selectAll('.' + w.ygrid) + .select('.' + x.ygrids) + .selectAll('.' + x.ygrid) .data(n), o = r .enter() .append('line') - .attr('class', w.ygrid); + .attr('class', x.ygrid); (e.ygrid = o.merge(r)), e.ygrid .attr('x1', t.axis_rotated ? e.y : 0) @@ -195338,17 +195893,17 @@ object-assign i.hasArcType() ? 'hidden' : 'visible' ), a - .select('line.' + w.xgridFocus) + .select('line.' + x.xgridFocus) .style('visibility', 'hidden'), s.grid_x_show && i.updateXGrid(), (n = (t = a - .select('.' + w.xgridLines) - .selectAll('.' + w.xgridLine) + .select('.' + x.xgridLines) + .selectAll('.' + x.xgridLine) .data(s.grid_x_lines)) .enter() .append('g') .attr('class', function(e) { - return w.xgridLine + (e.class ? ' ' + e.class : ''); + return x.xgridLine + (e.class ? ' ' + e.class : ''); })) .append('line') .attr('x1', s.axis_rotated ? 0 : c) @@ -195374,13 +195929,13 @@ object-assign .remove(), s.grid_y_show && i.updateYGrid(), (o = (r = a - .select('.' + w.ygridLines) - .selectAll('.' + w.ygridLine) + .select('.' + x.ygridLines) + .selectAll('.' + x.ygridLine) .data(s.grid_y_lines)) .enter() .append('g') .attr('class', function(e) { - return w.ygridLine + (e.class ? ' ' + e.class : ''); + return x.ygridLine + (e.class ? ' ' + e.class : ''); })) .append('line') .attr('x1', s.axis_rotated ? u : 0) @@ -195462,7 +196017,7 @@ object-assign r = e.filter(function(e) { return e && y(e.value); }), - o = t.main.selectAll('line.' + w.xgridFocus), + o = t.main.selectAll('line.' + x.xgridFocus), i = t.xx.bind(t); n.tooltip_show && (t.hasType('stanford') || @@ -195476,13 +196031,13 @@ object-assign }), (r.prototype.hideXGridFocus = function() { this.main - .select('line.' + w.xgridFocus) + .select('line.' + x.xgridFocus) .style('visibility', 'hidden'); }), (r.prototype.updateXgridFocus = function() { var e = this.config; this.main - .select('line.' + w.xgridFocus) + .select('line.' + x.xgridFocus) .attr('x1', e.axis_rotated ? 0 : -10) .attr('x2', e.axis_rotated ? this.width : -10) .attr('y1', e.axis_rotated ? -10 : 0) @@ -195495,7 +196050,7 @@ object-assign i, a = [], s = this.main - .select('.' + w.axisX) + .select('.' + x.axisX) .selectAll('.tick') .size(); if ('year' === e) @@ -195537,8 +196092,8 @@ object-assign o = function(e) { return !r(e); }, - i = t ? w.xgridLines : w.ygridLines, - a = t ? w.xgridLine : w.ygridLine; + i = t ? x.xgridLines : x.ygridLines, + a = t ? x.xgridLine : x.ygridLine; this.main .select('.' + i) .selectAll('.' + a) @@ -195555,14 +196110,14 @@ object-assign var e = this, t = e.config; e.main - .select('.' + w.chart) + .select('.' + x.chart) .append('g') - .attr('class', w.eventRects) + .attr('class', x.eventRects) .style('fill-opacity', 0), (e.eventRect = e.main - .select('.' + w.eventRects) + .select('.' + x.eventRects) .append('rect') - .attr('class', w.eventRect)), + .attr('class', x.eventRect)), t.zoom_enabled && e.zoom && (e.eventRect.call(e.zoom).on('dblclick.zoom', null), @@ -195580,7 +196135,7 @@ object-assign t = e.d3, n = e.config; function r() { - e.svg.select('.' + w.eventRect).style('cursor', null), + e.svg.select('.' + x.eventRect).style('cursor', null), e.hideXGridFocus(), e.hideTooltip(), e.unexpandCircles(), @@ -195597,7 +196152,7 @@ object-assign return t ? e.addName(Object.assign({}, t)) : null; }; e.main - .select('.' + w.eventRects) + .select('.' + x.eventRects) .style( 'cursor', n.zoom_enabled @@ -195653,7 +196208,7 @@ object-assign (n.data_onmouseover.call(e.api, u), (e.mouseover = u)), e.svg - .select('.' + w.eventRect) + .select('.' + x.eventRect) .style('cursor', l ? 'pointer' : null), !n.tooltip_grouped || e.hasType('stanford', a)) @@ -195707,11 +196262,11 @@ object-assign e.main .selectAll( '.' + - w.shapes + + x.shapes + e.getTargetSelectorSuffix(t.id) ) .selectAll( - '.' + w.shape + '-' + t.index + '.' + x.shape + '-' + t.index ) .each(function() { (n.data_selection_grouped || @@ -195724,10 +196279,10 @@ object-assign var c = e.main .selectAll( '.' + - w.shapes + + x.shapes + e.getTargetSelectorSuffix(s.id) ) - .select('.' + w.shape + '-' + s.index); + .select('.' + x.shape + '-' + s.index); n.data_onclick.call(e.api, s, c.node()); } } @@ -195756,7 +196311,7 @@ object-assign return [this.x(e.x), this.getYScale(e.id)(e.value)]; }), (r.prototype.dispatchEvent = function(e, t) { - var n = '.' + w.eventRect, + var n = '.' + x.eventRect, r = this.main.select(n).node(), o = r.getBoundingClientRect(), i = o.left + (t ? t[0] : 0), @@ -195873,20 +196428,20 @@ object-assign ); }), (r.prototype.opacityForLegend = function(e) { - return e.classed(w.legendItemHidden) ? null : 1; + return e.classed(x.legendItemHidden) ? null : 1; }), (r.prototype.opacityForUnfocusedLegend = function(e) { - return e.classed(w.legendItemHidden) ? null : 0.3; + return e.classed(x.legendItemHidden) ? null : 0.3; }), (r.prototype.toggleFocusLegend = function(e, t) { var n = this; (e = n.mapToTargetIds(e)), n.legend - .selectAll('.' + w.legendItem) + .selectAll('.' + x.legendItem) .filter(function(t) { return e.indexOf(t) >= 0; }) - .classed(w.legendItemFocused, t) + .classed(x.legendItemFocused, t) .transition() .duration(100) .style('opacity', function() { @@ -195900,8 +196455,8 @@ object-assign var e = this, t = e.d3; e.legend - .selectAll('.' + w.legendItem) - .classed(w.legendItemFocused, !1) + .selectAll('.' + x.legendItem) + .classed(x.legendItemFocused, !1) .transition() .duration(100) .style('opacity', function() { @@ -195957,107 +196512,110 @@ object-assign y, v, _, - x = this, - M = x.config, - k = 0, - S = 0, - A = M.legend_item_tile_width + 5, + w = this, + M = w.config, + k = 4, + S = 10, O = 0, - E = {}, - T = {}, - C = {}, - L = [0], + E = 0, + A = 10, + T = M.legend_item_tile_width + 5, + C = 0, + L = {}, P = {}, - D = 0; - function z(t, n, r) { + D = {}, + j = [0], + z = {}, + N = 0; + function R(t, n, r) { var o, i, a = 0 === r, s = r === e.length - 1, c = (function(e, t) { return ( - x.legendItemTextBox[t] || - (x.legendItemTextBox[t] = x.getTextRect( + w.legendItemTextBox[t] || + (w.legendItemTextBox[t] = w.getTextRect( e.textContent, - w.legendItem, + x.legendItem, e )), - x.legendItemTextBox[t] + w.legendItemTextBox[t] ); })(t, n), u = c.width + - A + - (!s || x.isLegendRight || x.isLegendInset ? 10 : 0) + + T + + (!s || w.isLegendRight || w.isLegendInset ? S : 0) + M.legend_padding, - l = c.height + 4, - f = x.isLegendRight || x.isLegendInset ? l : u, + l = c.height + k, + f = w.isLegendRight || w.isLegendInset ? l : u, d = - x.isLegendRight || x.isLegendInset - ? x.getLegendHeight() - : x.getLegendWidth(); + w.isLegendRight || w.isLegendInset + ? w.getLegendHeight() + : w.getLegendWidth(); function p(e, t) { t || - ((o = (d - O - f) / 2) < 10 && - ((o = (d - f) / 2), (O = 0), D++)), - (P[e] = D), - (L[D] = x.isLegendInset ? 10 : o), - (E[e] = O), - (O += f); - } - a && ((O = 0), (D = 0), (k = 0), (S = 0)), - !M.legend_show || x.isLegendToShow(n) - ? ((T[n] = u), - (C[n] = l), - (!k || u >= k) && (k = u), - (!S || l >= S) && (S = l), - (i = x.isLegendRight || x.isLegendInset ? S : k), + ((o = (d - C - f) / 2) < A && + ((o = (d - f) / 2), (C = 0), N++)), + (z[e] = N), + (j[N] = w.isLegendInset ? 10 : o), + (L[e] = C), + (C += f); + } + a && ((C = 0), (N = 0), (O = 0), (E = 0)), + !M.legend_show || w.isLegendToShow(n) + ? ((P[n] = u), + (D[n] = l), + (!O || u >= O) && (O = u), + (!E || l >= E) && (E = l), + (i = w.isLegendRight || w.isLegendInset ? E : O), M.legend_equally - ? (Object.keys(T).forEach(function(e) { - T[e] = k; + ? (Object.keys(P).forEach(function(e) { + P[e] = O; }), - Object.keys(C).forEach(function(e) { - C[e] = S; + Object.keys(D).forEach(function(e) { + D[e] = E; }), - (o = (d - i * e.length) / 2) < 10 - ? ((O = 0), - (D = 0), + (o = (d - i * e.length) / 2) < A + ? ((C = 0), + (N = 0), e.forEach(function(e) { p(e); })) : p(n, !0)) : p(n)) - : (T[n] = C[n] = P[n] = E[n] = 0); + : (P[n] = D[n] = z[n] = L[n] = 0); } (e = e.filter(function(e) { return !d(M.data_names[e]) || null !== M.data_names[e]; })), (g = c((t = t || {}), 'withTransition', !0)), (m = c(t, 'withTransitionForTransform', !0)), - x.isLegendInset && - ((D = M.legend_inset_step + w.isLegendInset && + ((N = M.legend_inset_step ? M.legend_inset_step : e.length), - x.updateLegendStep(D)), - x.isLegendRight + w.updateLegendStep(N)), + w.isLegendRight ? ((r = function(e) { - return k * P[e]; + return O * z[e]; }), (a = function(e) { - return L[P[e]] + E[e]; + return j[z[e]] + L[e]; })) - : x.isLegendInset + : w.isLegendInset ? ((r = function(e) { - return k * P[e] + 10; + return O * z[e] + 10; }), (a = function(e) { - return L[P[e]] + E[e]; + return j[z[e]] + L[e]; })) : ((r = function(e) { - return L[P[e]] + E[e]; + return j[z[e]] + L[e]; }), (a = function(e) { - return S * P[e]; + return E * z[e]; })), (o = function(e, t) { return r(e, t) + 4 + M.legend_item_tile_width; @@ -196080,137 +196638,137 @@ object-assign (p = function(e, t) { return a(e, t) + 4; }), - (h = x.legend - .selectAll('.' + w.legendItem) + (h = w.legend + .selectAll('.' + x.legendItem) .data(e) .enter() .append('g') .attr('class', function(e) { - return x.generateClass(w.legendItem, e); + return w.generateClass(x.legendItem, e); }) .style('visibility', function(e) { - return x.isLegendToShow(e) ? 'visible' : 'hidden'; + return w.isLegendToShow(e) ? 'visible' : 'hidden'; }) .style('cursor', 'pointer') .on('click', function(e) { M.legend_item_onclick - ? M.legend_item_onclick.call(x, e) - : x.d3.event.altKey - ? (x.api.hide(), x.api.show(e)) - : (x.api.toggle(e), - x.isTargetToShow(e) - ? x.api.focus(e) - : x.api.revert()); + ? M.legend_item_onclick.call(w, e) + : w.d3.event.altKey + ? (w.api.hide(), w.api.show(e)) + : (w.api.toggle(e), + w.isTargetToShow(e) + ? w.api.focus(e) + : w.api.revert()); }) .on('mouseover', function(e) { M.legend_item_onmouseover - ? M.legend_item_onmouseover.call(x, e) - : (x.d3 + ? M.legend_item_onmouseover.call(w, e) + : (w.d3 .select(this) - .classed(w.legendItemFocused, !0), - !x.transiting && - x.isTargetToShow(e) && - x.api.focus(e)); + .classed(x.legendItemFocused, !0), + !w.transiting && + w.isTargetToShow(e) && + w.api.focus(e)); }) .on('mouseout', function(e) { M.legend_item_onmouseout - ? M.legend_item_onmouseout.call(x, e) - : (x.d3 + ? M.legend_item_onmouseout.call(w, e) + : (w.d3 .select(this) - .classed(w.legendItemFocused, !1), - x.api.revert()); + .classed(x.legendItemFocused, !1), + w.api.revert()); })) .append('text') .text(function(e) { return d(M.data_names[e]) ? M.data_names[e] : e; }) .each(function(e, t) { - z(this, e, t); + R(this, e, t); }) .style('pointer-events', 'none') .attr( 'x', - x.isLegendRight || x.isLegendInset ? o : -200 + w.isLegendRight || w.isLegendInset ? o : -200 ) .attr( 'y', - x.isLegendRight || x.isLegendInset ? -200 : s + w.isLegendRight || w.isLegendInset ? -200 : s ), h .append('rect') - .attr('class', w.legendItemEvent) + .attr('class', x.legendItemEvent) .style('fill-opacity', 0) .attr( 'x', - x.isLegendRight || x.isLegendInset ? i : -200 + w.isLegendRight || w.isLegendInset ? i : -200 ) .attr( 'y', - x.isLegendRight || x.isLegendInset ? -200 : u + w.isLegendRight || w.isLegendInset ? -200 : u ), h .append('line') - .attr('class', w.legendItemTile) - .style('stroke', x.color) + .attr('class', x.legendItemTile) + .style('stroke', w.color) .style('pointer-events', 'none') .attr( 'x1', - x.isLegendRight || x.isLegendInset ? l : -200 + w.isLegendRight || w.isLegendInset ? l : -200 ) .attr( 'y1', - x.isLegendRight || x.isLegendInset ? -200 : p + w.isLegendRight || w.isLegendInset ? -200 : p ) .attr( 'x2', - x.isLegendRight || x.isLegendInset ? f : -200 + w.isLegendRight || w.isLegendInset ? f : -200 ) .attr( 'y2', - x.isLegendRight || x.isLegendInset ? -200 : p + w.isLegendRight || w.isLegendInset ? -200 : p ) .attr('stroke-width', M.legend_item_tile_height), - (_ = x.legend.select('.' + w.legendBackground + ' rect')), - x.isLegendInset && - k > 0 && + (_ = w.legend.select('.' + x.legendBackground + ' rect')), + w.isLegendInset && + O > 0 && 0 === _.size() && - (_ = x.legend - .insert('g', '.' + w.legendItem) - .attr('class', w.legendBackground) + (_ = w.legend + .insert('g', '.' + x.legendItem) + .attr('class', x.legendBackground) .append('rect')), - (b = x.legend + (b = w.legend .selectAll('text') .data(e) .text(function(e) { return d(M.data_names[e]) ? M.data_names[e] : e; }) .each(function(e, t) { - z(this, e, t); + R(this, e, t); })), (g ? b.transition() : b).attr('x', o).attr('y', s), - (y = x.legend - .selectAll('rect.' + w.legendItemEvent) + (y = w.legend + .selectAll('rect.' + x.legendItemEvent) .data(e)), (g ? y.transition() : y) .attr('width', function(e) { - return T[e]; + return P[e]; }) .attr('height', function(e) { - return C[e]; + return D[e]; }) .attr('x', i) .attr('y', u), - (v = x.legend - .selectAll('line.' + w.legendItemTile) + (v = w.legend + .selectAll('line.' + x.legendItemTile) .data(e)), (g ? v.transition() : v) .style( 'stroke', - x.levelColor + w.levelColor ? function(e) { - return x.levelColor(x.cache[e].values[0].value); + return w.levelColor(w.cache[e].values[0].value); } - : x.color + : w.color ) .attr('x1', l) .attr('y1', p) @@ -196218,27 +196776,27 @@ object-assign .attr('y2', p), _ && (g ? _.transition() : _) - .attr('height', x.getLegendHeight() - 12) - .attr('width', k * (D + 1) + 10), - x.legend - .selectAll('.' + w.legendItem) - .classed(w.legendItemHidden, function(e) { - return !x.isTargetToShow(e); + .attr('height', w.getLegendHeight() - 12) + .attr('width', O * (N + 1) + 10), + w.legend + .selectAll('.' + x.legendItem) + .classed(x.legendItemHidden, function(e) { + return !w.isTargetToShow(e); }), - x.updateLegendItemWidth(k), - x.updateLegendItemHeight(S), - x.updateLegendStep(D), - x.updateSizes(), - x.updateScales(), - x.updateSvgSize(), - x.transformAll(m, n), - (x.legendHasRendered = !0); + w.updateLegendItemWidth(O), + w.updateLegendItemHeight(E), + w.updateLegendStep(N), + w.updateSizes(), + w.updateScales(), + w.updateSvgSize(), + w.transformAll(m, n), + (w.legendHasRendered = !0); }), (r.prototype.initRegion = function() { this.region = this.main .append('g') .attr('clip-path', this.clipPath) - .attr('class', w.regions); + .attr('class', x.regions); }), (r.prototype.updateRegion = function(e) { var t = this, @@ -196248,8 +196806,8 @@ object-assign t.hasArcType() ? 'hidden' : 'visible' ); var r = t.main - .select('.' + w.regions) - .selectAll('.' + w.region) + .select('.' + x.regions) + .selectAll('.' + x.region) .data(n.regions), o = r.enter().append('g'); o @@ -196530,15 +197088,15 @@ object-assign r.main .select( '.' + - w.selectedCircles + + x.selectedCircles + r.getTargetSelectorSuffix(t.id) ) - .selectAll('.' + w.selectedCircle + '-' + n) + .selectAll('.' + x.selectedCircle + '-' + n) .data([t]) .enter() .append('circle') .attr('class', function() { - return r.generateClass(w.selectedCircle, n); + return r.generateClass(x.selectedCircle, n); }) .attr('cx', i) .attr('cy', a) @@ -196557,10 +197115,10 @@ object-assign this.main .select( '.' + - w.selectedCircles + + x.selectedCircles + this.getTargetSelectorSuffix(t.id) ) - .selectAll('.' + w.selectedCircle + '-' + n) + .selectAll('.' + x.selectedCircle + '-' + n) .transition() .duration(100) .attr('r', 0) @@ -196610,7 +197168,7 @@ object-assign o = r.d3, i = r.config, a = o.select(e), - s = a.classed(w.SELECTED), + s = a.classed(x.SELECTED), c = r.getToggle(e, t).bind(r); i.data_selection_enabled && i.data_selection_isselectable(t) && @@ -196618,25 +197176,25 @@ object-assign r.main .selectAll( '.' + - w.shapes + + x.shapes + (i.data_selection_grouped ? r.getTargetSelectorSuffix(t.id) : '') ) - .selectAll('.' + w.shape) + .selectAll('.' + x.shape) .each(function(e, t) { var n = o.select(this); - n.classed(w.SELECTED) && - c(!1, n.classed(w.SELECTED, !1), e, t); + n.classed(x.SELECTED) && + c(!1, n.classed(x.SELECTED, !1), e, t); }), - a.classed(w.SELECTED, !s), + a.classed(x.SELECTED, !s), c(!s, a, t, n)); }), (r.prototype.initBar = function() { this.main - .select('.' + w.chart) + .select('.' + x.chart) .append('g') - .attr('class', w.chartBars); + .attr('class', x.chartBars); }), (r.prototype.updateTargetsForBar = function(e) { var t = this, @@ -196645,8 +197203,8 @@ object-assign o = t.classBars.bind(t), i = t.classFocus.bind(t); t.main - .select('.' + w.chartBars) - .selectAll('.' + w.chartBar) + .select('.' + x.chartBars) + .selectAll('.' + x.chartBar) .data(e) .attr('class', function(e) { return r(e) + i(e); @@ -196672,8 +197230,8 @@ object-assign return t.color(e.id); }, a = t.main - .selectAll('.' + w.bars) - .selectAll('.' + w.bar) + .selectAll('.' + x.bars) + .selectAll('.' + x.bar) .data(n), s = a .enter() @@ -196715,17 +197273,17 @@ object-assign (r.prototype.getBars = function(e, t) { return (t ? this.main.selectAll( - '.' + w.bars + this.getTargetSelectorSuffix(t) + '.' + x.bars + this.getTargetSelectorSuffix(t) ) : this.main - ).selectAll('.' + w.bar + (y(e) ? '-' + e : '')); + ).selectAll('.' + x.bar + (y(e) ? '-' + e : '')); }), (r.prototype.expandBars = function(e, t, n) { n && this.unexpandBars(), - this.getBars(e, t).classed(w.EXPANDED, !0); + this.getBars(e, t).classed(x.EXPANDED, !0); }), (r.prototype.unexpandBars = function(e) { - this.getBars(e).classed(w.EXPANDED, !1); + this.getBars(e).classed(x.EXPANDED, !1); }), (r.prototype.generateDrawBar = function(e, t) { var n = this.config, @@ -196887,7 +197445,7 @@ object-assign : r.isWithinCircle(e, 1.5 * r.pointSelectR(t))) : 'path' === e.nodeName && (n = - !o.classed(w.bar) || + !o.classed(x.bar) || r.isWithinBar(r.d3.mouse(e), e)) : (n = !1), n @@ -196919,9 +197477,9 @@ object-assign }), (r.prototype.initLine = function() { this.main - .select('.' + w.chart) + .select('.' + x.chart) .append('g') - .attr('class', w.chartLines); + .attr('class', x.chartLines); }), (r.prototype.updateTargetsForLine = function(e) { var t, @@ -196933,8 +197491,8 @@ object-assign s = n.classCircles.bind(n), c = n.classFocus.bind(n); (t = n.main - .select('.' + w.chartLines) - .selectAll('.' + w.chartLine) + .select('.' + x.chartLines) + .selectAll('.' + x.chartLine) .data(e) .attr('class', function(e) { return o(e) + c(e); @@ -196948,7 +197506,7 @@ object-assign .attr('class', i), t.append('g').attr('class', a), t.append('g').attr('class', function(e) { - return n.generateClass(w.selectedCircles, e.id); + return n.generateClass(x.selectedCircles, e.id); }), t .append('g') @@ -196962,10 +197520,10 @@ object-assign n.main .selectAll( '.' + - w.selectedCircles + + x.selectedCircles + n.getTargetSelectorSuffix(e.id) ) - .selectAll('.' + w.selectedCircle) + .selectAll('.' + x.selectedCircle) .each(function(t) { t.value = e.values[t.index].value; }); @@ -196974,8 +197532,8 @@ object-assign (r.prototype.updateLine = function(e) { var t = this, n = t.main - .selectAll('.' + w.lines) - .selectAll('.' + w.line) + .selectAll('.' + x.lines) + .selectAll('.' + x.line) .data(t.lineData.bind(t)), r = n .enter() @@ -197095,8 +197653,8 @@ object-assign y = m.config, v = 'M', _ = m.isCategorized() ? 0.5 : 0, - x = []; - function w(e, t) { + w = []; + function x(e, t) { var n; for (n = 0; n < t.length; n++) if (t[n].start < e && e <= t[n].end) return !0; @@ -197104,15 +197662,15 @@ object-assign } if (d(r)) for (o = 0; o < r.length; o++) - (x[o] = {}), + (w[o] = {}), b(r[o].start) - ? (x[o].start = e[0].x) - : (x[o].start = m.isTimeSeries() + ? (w[o].start = e[0].x) + : (w[o].start = m.isTimeSeries() ? m.parseDate(r[o].start) : r[o].start), b(r[o].end) - ? (x[o].end = e[e.length - 1].x) - : (x[o].end = m.isTimeSeries() + ? (w[o].end = e[e.length - 1].x) + : (w[o].end = m.isTimeSeries() ? m.parseDate(r[o].end) : r[o].end); function M(e) { @@ -197150,14 +197708,8 @@ object-assign l = new Date(a + s * (o + i)); return M( y.axis_rotated - ? [ - [n(c(o)), t(u)], - [n(c(o + i)), t(l)] - ] - : [ - [t(u), n(c(o))], - [t(l), n(c(o + i))] - ] + ? [[n(c(o)), t(u)], [n(c(o + i)), t(l)]] + : [[t(u), n(c(o))], [t(l), n(c(o + i))]] ); } : function(e, r, o, i) { @@ -197177,7 +197729,7 @@ object-assign o < e.length; o++ ) { - if (b(x) || !w(e[o].x, x)) + if (b(w) || !x(e[o].x, w)) v += ' ' + h(e[o]) + ' ' + g(e[o]); else for ( @@ -197206,8 +197758,8 @@ object-assign var t = this, n = t.d3, r = t.main - .selectAll('.' + w.areas) - .selectAll('.' + w.area) + .selectAll('.' + x.areas) + .selectAll('.' + x.area) .data(t.lineData.bind(t)), o = r .enter() @@ -197315,20 +197867,15 @@ object-assign r.axis_rotated && ((0 < e.value && f < o) || (e.value < 0 && o < f)) && (f = o), - [ - [l, u], - [l, f - (o - u)], - [l, f - (o - u)], - [l, u] - ] + [[l, u], [l, f - (o - u)], [l, f - (o - u)], [l, u]] ); }; }), (r.prototype.updateCircle = function(e, t) { var n = this, r = n.main - .selectAll('.' + w.circles) - .selectAll('.' + w.circle) + .selectAll('.' + x.circles) + .selectAll('.' + x.circle) .data(n.lineOrScatterOrStanfordData.bind(n)), o = r .enter() @@ -197359,7 +197906,7 @@ object-assign }), (r.prototype.redrawCircle = function(e, t, n, r) { var o = this, - i = o.main.selectAll('.' + w.selectedCircle); + i = o.main.selectAll('.' + x.selectedCircle); return [ (n ? o.mainCircle.transition(r) : o.mainCircle) .style('opacity', this.opacityForCircle.bind(o)) @@ -197394,16 +197941,16 @@ object-assign (r.prototype.getCircles = function(e, t) { return (t ? this.main.selectAll( - '.' + w.circles + this.getTargetSelectorSuffix(t) + '.' + x.circles + this.getTargetSelectorSuffix(t) ) : this.main - ).selectAll('.' + w.circle + (y(e) ? '-' + e : '')); + ).selectAll('.' + x.circle + (y(e) ? '-' + e : '')); }), (r.prototype.expandCircles = function(e, t, n) { var r = this.pointExpandedR.bind(this); n && this.unexpandCircles(), this.getCircles(e, t) - .classed(w.EXPANDED, !0) + .classed(x.EXPANDED, !0) .attr('r', r); }), (r.prototype.unexpandCircles = function(e) { @@ -197411,9 +197958,9 @@ object-assign n = t.pointR.bind(t); t.getCircles(e) .filter(function() { - return t.d3.select(this).classed(w.EXPANDED); + return t.d3.select(this).classed(x.EXPANDED); }) - .classed(w.EXPANDED, !1) + .classed(x.EXPANDED, !1) .attr('r', n); }), (r.prototype.pointR = function(e) { @@ -197549,7 +198096,7 @@ object-assign n = t.config, r = n.axis_rotated || (!n.axis_rotated && !n.axis_y_inner), - o = n.axis_rotated ? w.axisX : w.axisY, + o = n.axis_rotated ? x.axisX : x.axisY, i = t.main.select('.' + o).node(), a = i && r ? i.getBoundingClientRect() : { right: 0 }, s = t.selectChart.node().getBoundingClientRect(), @@ -197631,14 +198178,8 @@ object-assign n = this.scale.range(); return ( (e = t.config.axis_rotated - ? [ - [0, n[0]], - [t.width2, n[1]] - ] - : [ - [n[0], 0], - [n[1], t.height2] - ]), + ? [[0, n[0]], [t.width2, n[1]]] + : [[n[0], 0], [n[1], t.height2]]), this.extent(e), this ); @@ -197648,16 +198189,16 @@ object-assign }), (t.brush.update = function(e) { this.updateScale(e || t.subX).updateExtent(), - t.context.select('.' + w.brush).call(this); + t.context.select('.' + x.brush).call(this); }), (t.brush.clear = function() { t.context - .select('.' + w.brush) + .select('.' + x.brush) .call(t.brush.move, null); }), (t.brush.selection = function() { return n.brushSelection( - t.context.select('.' + w.brush).node() + t.context.select('.' + x.brush).node() ); }), (t.brush.selectionAsValue = function(e, n) { @@ -197665,7 +198206,7 @@ object-assign return e ? (t.context && ((r = [this.scale(e[0]), this.scale(e[1])]), - (o = t.context.select('.' + w.brush)), + (o = t.context.select('.' + x.brush)), n && (o = o.transition()), t.brush.move(o, r)), []) @@ -197690,22 +198231,22 @@ object-assign n .append('g') .attr('clip-path', e.clipPathForSubchart) - .attr('class', w.chart), + .attr('class', x.chart), n - .select('.' + w.chart) + .select('.' + x.chart) .append('g') - .attr('class', w.chartBars), + .attr('class', x.chartBars), n - .select('.' + w.chart) + .select('.' + x.chart) .append('g') - .attr('class', w.chartLines), + .attr('class', x.chartLines), n .append('g') .attr('clip-path', e.clipPath) - .attr('class', w.brush), + .attr('class', x.brush), (e.axes.subx = n .append('g') - .attr('class', w.axisX) + .attr('class', x.axisX) .attr('transform', e.getTranslate('subx')) .attr( 'clip-path', @@ -197714,7 +198255,7 @@ object-assign }), (r.prototype.initSubchartBrush = function() { this.initBrush(this.subX).updateExtent(), - this.context.select('.' + w.brush).call(this.brush); + this.context.select('.' + x.brush).call(this.brush); }), (r.prototype.updateTargetsForSubchart = function(e) { var t, @@ -197731,8 +198272,8 @@ object-assign d = i.classAreas.bind(i); s.subchart_show && ((r = (o = a - .select('.' + w.chartBars) - .selectAll('.' + w.chartBar) + .select('.' + x.chartBars) + .selectAll('.' + x.chartBar) .data(e)) .enter() .append('g') @@ -197741,8 +198282,8 @@ object-assign .attr('class', c), r.append('g').attr('class', u), (t = (n = a - .select('.' + w.chartLines) - .selectAll('.' + w.chartLine) + .select('.' + x.chartLines) + .selectAll('.' + x.chartLine) .data(e)) .enter() .append('g') @@ -197752,7 +198293,7 @@ object-assign t.append('g').attr('class', f), t.append('g').attr('class', d), a - .selectAll('.' + w.brush + ' rect') + .selectAll('.' + x.brush + ' rect') .attr( s.axis_rotated ? 'width' : 'height', s.axis_rotated ? i.width2 : i.height2 @@ -197761,8 +198302,8 @@ object-assign (r.prototype.updateBarForSubchart = function(e) { var t = this, n = t.context - .selectAll('.' + w.bars) - .selectAll('.' + w.bar) + .selectAll('.' + x.bars) + .selectAll('.' + x.bar) .data(t.barData.bind(t)), r = n .enter() @@ -197793,8 +198334,8 @@ object-assign (r.prototype.updateLineForSubchart = function(e) { var t = this, n = t.context - .selectAll('.' + w.lines) - .selectAll('.' + w.line) + .selectAll('.' + x.lines) + .selectAll('.' + x.line) .data(t.lineData.bind(t)), r = n .enter() @@ -197825,8 +198366,8 @@ object-assign var t = this, n = t.d3, r = t.context - .selectAll('.' + w.areas) - .selectAll('.' + w.area) + .selectAll('.' + x.areas) + .selectAll('.' + x.area) .data(t.lineData.bind(t)), o = r .enter() @@ -197903,7 +198444,7 @@ object-assign }), (e = r.event.selection || t.brush.scale.range()), t.main - .select('.' + w.eventRect) + .select('.' + x.eventRect) .call( t.zoom.transform, r.zoomIdentity @@ -197916,7 +198457,7 @@ object-assign var n; t && t.axisSubX ? (n = t.axisSubX) - : ((n = this.context.select('.' + w.axisX)), + : ((n = this.context.select('.' + x.axisX)), e && (n = n.transition())), this.context.attr( 'transform', @@ -197938,9 +198479,9 @@ object-assign }), (r.prototype.initText = function() { this.main - .select('.' + w.chart) + .select('.' + x.chart) .append('g') - .attr('class', w.chartTexts), + .attr('class', x.chartTexts), (this.mainText = this.d3.selectAll([])); }), (r.prototype.updateTargetsForText = function(e) { @@ -197949,8 +198490,8 @@ object-assign r = t.classTexts.bind(t), o = t.classFocus.bind(t), i = t.main - .select('.' + w.chartTexts) - .selectAll('.' + w.chartText) + .select('.' + x.chartTexts) + .selectAll('.' + x.chartText) .data(e), a = i .enter() @@ -197969,8 +198510,8 @@ object-assign i = r.barOrLineData.bind(r), a = r.classText.bind(r), s = r.main - .selectAll('.' + w.texts) - .selectAll('.' + w.text) + .selectAll('.' + x.texts) + .selectAll('.' + x.text) .data(i), c = s .enter() @@ -198177,7 +198718,7 @@ object-assign .append('g') .attr('width', 50) .attr('height', a) - .attr('class', w.colorScale)), + .attr('class', x.colorScale)), s.colorScale .append('g') .attr( @@ -198227,7 +198768,7 @@ object-assign t .selectAll('.tick text') .text(null) - .filter(A) + .filter(O) .text(10) .append('tspan') .attr('dy', '-.7em') @@ -198301,7 +198842,7 @@ object-assign r, o, i, - a = O(e), + a = E(e), s = 0, c = 0; for (t = 0, n = e.length - 1; t < e.length; n = t, t += 1) @@ -198331,13 +198872,13 @@ object-assign }, 0)), { value: (n = r.values.reduce(function(t, n) { - return E(n, e) ? t + Number(n.epochs) : t; + return A(n, e) ? t + Number(n.epochs) : t; }, 0)), percentage: 0 !== n ? ((n / t) * 100).toFixed(1) : 0 } ); }); - var O = function(e) { + var E = function(e) { var t, n, r, @@ -198350,7 +198891,7 @@ object-assign (i -= r.y * o.x); return (i /= 2); }, - E = function(e, t) { + A = function(e, t) { for ( var n, r, @@ -198383,18 +198924,18 @@ object-assign (r.prototype.initStanfordElements = function() { var e = this; (e.stanfordElements = e.main - .select('.' + w.chart) + .select('.' + x.chart) .append('g') - .attr('class', w.stanfordElements)), + .attr('class', x.stanfordElements)), e.stanfordElements .append('g') - .attr('class', w.stanfordLines), + .attr('class', x.stanfordLines), e.stanfordElements .append('g') - .attr('class', w.stanfordTexts), + .attr('class', x.stanfordTexts), e.stanfordElements .append('g') - .attr('class', w.stanfordRegions); + .attr('class', x.stanfordRegions); }), (r.prototype.updateStanfordElements = function(e) { var t, @@ -198410,14 +198951,14 @@ object-assign f = s.yvCustom.bind(s), d = s.countEpochsInRegion.bind(s); (n = (t = c - .select('.' + w.stanfordLines) + .select('.' + x.stanfordLines) .style('shape-rendering', 'geometricprecision') - .selectAll('.' + w.stanfordLine) + .selectAll('.' + x.stanfordLine) .data(u.stanford_lines)) .enter() .append('g') .attr('class', function(e) { - return w.stanfordLine + (e.class ? ' ' + e.class : ''); + return x.stanfordLine + (e.class ? ' ' + e.class : ''); })) .append('line') .attr('x1', function(e) { @@ -198474,14 +199015,14 @@ object-assign .style('opacity', 0) .remove(), (a = (i = c - .select('.' + w.stanfordTexts) - .selectAll('.' + w.stanfordText) + .select('.' + x.stanfordTexts) + .selectAll('.' + x.stanfordText) .data(u.stanford_texts)) .enter() .append('g') .attr('class', function(e) { return ( - w.stanfordText + (e.class ? ' ' + e.class : '') + x.stanfordText + (e.class ? ' ' + e.class : '') ); })) .append('text') @@ -198514,14 +199055,14 @@ object-assign .style('opacity', 0) .remove(), (o = (r = c - .select('.' + w.stanfordRegions) - .selectAll('.' + w.stanfordRegion) + .select('.' + x.stanfordRegions) + .selectAll('.' + x.stanfordRegion) .data(u.stanford_regions)) .enter() .append('g') .attr('class', function(e) { return ( - w.stanfordRegion + (e.class ? ' ' + e.class : '') + x.stanfordRegion + (e.class ? ' ' + e.class : '') ); })) .append('polygon') @@ -198604,7 +199145,7 @@ object-assign ((t.tooltip = t.selectChart .style('position', 'relative') .append('div') - .attr('class', w.tooltipContainer) + .attr('class', x.tooltipContainer) .style('position', 'absolute') .style('pointer-events', 'none') .style('display', 'none')), @@ -199018,14 +199559,8 @@ object-assign (t.zoom.updateExtent = function() { return ( this.scaleExtent([1, 1 / 0]) - .translateExtent([ - [0, 0], - [t.width, t.height] - ]) - .extent([ - [0, 0], - [t.width, t.height] - ]), + .translateExtent([[0, 0], [t.width, t.height]]) + .extent([[0, 0], [t.width, t.height]]), this ); }), @@ -199062,7 +199597,7 @@ object-assign .on('start', function() { e.api.unzoom(), e.svg - .select('.' + w.dragZoom) + .select('.' + x.dragZoom) .classed('disabled', !1), n.zoom_onzoomstart.call( e.api, @@ -199077,13 +199612,13 @@ object-assign var r = a(t.event.selection); n.zoom_disableDefaultBehavior || e.api.zoom(r), e.svg - .select('.' + w.dragZoom) + .select('.' + x.dragZoom) .classed('disabled', !0), n.zoom_onzoomend.call(e.api, r); } })); r.append('g') - .classed(w.dragZoom, !0) + .classed(x.dragZoom, !0) .attr('clip-path', e.clipPath) .attr('transform', 'translate(' + o + ',' + i + ')') .call(s); @@ -199133,98 +199668,98 @@ object-assign 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), (t.CustomPicker = t.TwitterPicker = t.SwatchesPicker = t.SliderPicker = t.SketchPicker = t.PhotoshopPicker = t.MaterialPicker = t.HuePicker = t.GithubPicker = t.CompactPicker = t.ChromePicker = t.default = t.CirclePicker = t.BlockPicker = t.AlphaPicker = void 0); - var r = n(596); + var r = n(640); Object.defineProperty(t, 'AlphaPicker', { enumerable: !0, get: function() { return y(r).default; } }); - var o = n(654); + var o = n(698); Object.defineProperty(t, 'BlockPicker', { enumerable: !0, get: function() { return y(o).default; } }); - var i = n(656); + var i = n(700); Object.defineProperty(t, 'CirclePicker', { enumerable: !0, get: function() { return y(i).default; } }); - var a = n(658); + var a = n(702); Object.defineProperty(t, 'ChromePicker', { enumerable: !0, get: function() { return y(a).default; } }); - var s = n(663); + var s = n(707); Object.defineProperty(t, 'CompactPicker', { enumerable: !0, get: function() { return y(s).default; } }); - var c = n(666); + var c = n(710); Object.defineProperty(t, 'GithubPicker', { enumerable: !0, get: function() { return y(c).default; } }); - var u = n(668); + var u = n(712); Object.defineProperty(t, 'HuePicker', { enumerable: !0, get: function() { return y(u).default; } }); - var l = n(670); + var l = n(714); Object.defineProperty(t, 'MaterialPicker', { enumerable: !0, get: function() { return y(l).default; } }); - var f = n(671); + var f = n(715); Object.defineProperty(t, 'PhotoshopPicker', { enumerable: !0, get: function() { return y(f).default; } }); - var d = n(677); + var d = n(721); Object.defineProperty(t, 'SketchPicker', { enumerable: !0, get: function() { return y(d).default; } }); - var p = n(680); + var p = n(724); Object.defineProperty(t, 'SliderPicker', { enumerable: !0, get: function() { return y(p).default; } }); - var h = n(684); + var h = n(728); Object.defineProperty(t, 'SwatchesPicker', { enumerable: !0, get: function() { return y(h).default; } }); - var g = n(688); + var g = n(732); Object.defineProperty(t, 'TwitterPicker', { enumerable: !0, get: function() { return y(g).default; } }); - var m = n(239); + var m = n(261); Object.defineProperty(t, 'CustomPicker', { enumerable: !0, get: function() { @@ -199252,9 +199787,9 @@ object-assign return e; }, o = c(n(0)), - i = c(n(5)), - a = n(10), - s = c(n(653)); + i = c(n(9)), + a = n(19), + s = c(n(697)); function c(e) { return e && e.__esModule ? e : { default: e }; } @@ -199304,10 +199839,10 @@ object-assign 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), (t.flattenNames = void 0); - var r = s(n(598)), - o = s(n(147)), - i = s(n(194)), - a = s(n(46)); + var r = s(n(642)), + o = s(n(162)), + i = s(n(215)), + a = s(n(59)); function s(e) { return e && e.__esModule ? e : { default: e }; } @@ -199333,19 +199868,18 @@ object-assign t.default = c; }, function(e, t, n) { - var r = n(55), - o = n(22), - i = n(40); + var r = n(67), + o = n(34), + i = n(53), + a = '[object String]'; e.exports = function(e) { - return ( - 'string' == typeof e || (!o(e) && i(e) && '[object String]' == r(e)) - ); + return 'string' == typeof e || (!o(e) && i(e) && r(e) == a); }; }, function(e, t, n) { - var r = n(600), - o = n(601), - i = n(233); + var r = n(644), + o = n(645), + i = n(255); e.exports = function(e) { var t = o(e); return 1 == t.length && t[0][2] @@ -199356,35 +199890,37 @@ object-assign }; }, function(e, t, n) { - var r = n(101), - o = n(142); - e.exports = function(e, t, n, i) { - var a = n.length, - s = a, - c = !i; - if (null == e) return !s; - for (e = Object(e); a--; ) { - var u = n[a]; - if (c && u[2] ? u[1] !== e[u[0]] : !(u[0] in e)) return !1; - } - for (; ++a < s; ) { - var l = (u = n[a])[0], - f = e[l], - d = u[1]; - if (c && u[2]) { - if (void 0 === f && !(l in e)) return !1; + var r = n(116), + o = n(157), + i = 1, + a = 2; + e.exports = function(e, t, n, s) { + var c = n.length, + u = c, + l = !s; + if (null == e) return !u; + for (e = Object(e); c--; ) { + var f = n[c]; + if (l && f[2] ? f[1] !== e[f[0]] : !(f[0] in e)) return !1; + } + for (; ++c < u; ) { + var d = (f = n[c])[0], + p = e[d], + h = f[1]; + if (l && f[2]) { + if (void 0 === p && !(d in e)) return !1; } else { - var p = new r(); - if (i) var h = i(f, d, l, e, t, p); - if (!(void 0 === h ? o(d, f, 3, i, p) : h)) return !1; + var g = new r(); + if (s) var m = s(p, h, d, e, t, g); + if (!(void 0 === m ? o(h, p, i | a, s, g) : m)) return !1; } } return !0; }; }, function(e, t, n) { - var r = n(232), - o = n(64); + var r = n(254), + o = n(78); e.exports = function(e) { for (var t = o(e), n = t.length; n--; ) { var i = t[n], @@ -199395,31 +199931,33 @@ object-assign }; }, function(e, t, n) { - var r = n(142), - o = n(603), - i = n(609), - a = n(148), - s = n(232), - c = n(233), - u = n(114); + var r = n(157), + o = n(647), + i = n(653), + a = n(163), + s = n(254), + c = n(255), + u = n(129), + l = 1, + f = 2; e.exports = function(e, t) { return a(e) && s(t) ? c(u(e), t) : function(n) { var a = o(n, e); - return void 0 === a && a === t ? i(n, e) : r(t, a, 3); + return void 0 === a && a === t ? i(n, e) : r(t, a, l | f); }; }; }, function(e, t, n) { - var r = n(234); + var r = n(256); e.exports = function(e, t, n) { var o = null == e ? void 0 : r(e, t); return void 0 === o ? n : o; }; }, function(e, t, n) { - var r = n(605), + var r = n(649), o = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, i = /\\(\\)?/g, a = r(function(e) { @@ -199435,20 +199973,22 @@ object-assign e.exports = a; }, function(e, t, n) { - var r = n(606); + var r = n(650), + o = 500; e.exports = function(e) { var t = r(e, function(e) { - return 500 === n.size && n.clear(), e; + return n.size === o && n.clear(), e; }), n = t.cache; return t; }; }, function(e, t, n) { - var r = n(134); - function o(e, t) { + var r = n(149), + o = 'Expected a function'; + function i(e, t) { if ('function' != typeof e || (null != t && 'function' != typeof t)) - throw new TypeError('Expected a function'); + throw new TypeError(o); var n = function() { var r = arguments, o = t ? t.apply(this, r) : r[0], @@ -199457,34 +199997,35 @@ object-assign var a = e.apply(this, r); return (n.cache = i.set(o, a) || i), a; }; - return (n.cache = new (o.Cache || r)()), n; + return (n.cache = new (i.Cache || r)()), n; } - (o.Cache = r), (e.exports = o); + (i.Cache = r), (e.exports = i); }, function(e, t, n) { - var r = n(608); + var r = n(652); e.exports = function(e) { return null == e ? '' : r(e); }; }, function(e, t, n) { - var r = n(85), - o = n(231), - i = n(22), - a = n(113), - s = r ? r.prototype : void 0, - c = s ? s.toString : void 0; + var r = n(100), + o = n(253), + i = n(34), + a = n(128), + s = 1 / 0, + c = r ? r.prototype : void 0, + u = c ? c.toString : void 0; e.exports = function e(t) { if ('string' == typeof t) return t; if (i(t)) return o(t, e) + ''; - if (a(t)) return c ? c.call(t) : ''; + if (a(t)) return u ? u.call(t) : ''; var n = t + ''; - return '0' == n && 1 / t == -1 / 0 ? '-0' : n; + return '0' == n && 1 / t == -s ? '-0' : n; }; }, function(e, t, n) { - var r = n(610), - o = n(611); + var r = n(654), + o = n(655); e.exports = function(e, t) { return null != e && o(e, t, r); }; @@ -199495,12 +200036,12 @@ object-assign }; }, function(e, t, n) { - var r = n(235), - o = n(107), - i = n(22), - a = n(141), - s = n(138), - c = n(114); + var r = n(257), + o = n(122), + i = n(34), + a = n(156), + s = n(153), + c = n(129); e.exports = function(e, t, n) { for (var u = -1, l = (t = r(t, e)).length, f = !1; ++u < l; ) { var d = c(t[u]); @@ -199516,10 +200057,10 @@ object-assign }; }, function(e, t, n) { - var r = n(613), - o = n(614), - i = n(148), - a = n(114); + var r = n(657), + o = n(658), + i = n(163), + a = n(129); e.exports = function(e) { return i(e) ? r(a(e)) : o(e); }; @@ -199532,7 +200073,7 @@ object-assign }; }, function(e, t, n) { - var r = n(234); + var r = n(256); e.exports = function(e) { return function(t) { return r(t, e); @@ -199540,8 +200081,8 @@ object-assign }; }, function(e, t, n) { - var r = n(149), - o = n(45); + var r = n(164), + o = n(58); e.exports = function(e, t) { var n = -1, i = o(e) ? Array(e.length) : []; @@ -199554,7 +200095,7 @@ object-assign }; }, function(e, t, n) { - var r = n(45); + var r = n(58); e.exports = function(e, t) { return function(n, o) { if (null == n) return n; @@ -199572,8 +200113,8 @@ object-assign 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), (t.mergeClasses = void 0); - var r = a(n(147)), - o = a(n(618)), + var r = a(n(162)), + o = a(n(662)), i = Object.assign || function(e) { @@ -199608,132 +200149,133 @@ object-assign t.default = s; }, function(e, t, n) { - var r = n(619); + var r = n(663), + o = 1, + i = 4; e.exports = function(e) { - return r(e, 5); + return r(e, o | i); }; }, function(e, t, n) { - var r = n(101), - o = n(236), - i = n(196), - a = n(620), - s = n(621), - c = n(188), - u = n(191), - l = n(622), - f = n(623), - d = n(207), - p = n(624), - h = n(88), - g = n(625), - m = n(626), - b = n(192), - y = n(22), - v = n(86), - _ = n(630), - x = n(35), - w = n(632), - M = n(64), - k = {}; - (k['[object Arguments]'] = k['[object Array]'] = k[ - '[object ArrayBuffer]' - ] = k['[object DataView]'] = k['[object Boolean]'] = k[ - '[object Date]' - ] = k['[object Float32Array]'] = k['[object Float64Array]'] = k[ - '[object Int8Array]' - ] = k['[object Int16Array]'] = k['[object Int32Array]'] = k[ - '[object Map]' - ] = k['[object Number]'] = k['[object Object]'] = k[ - '[object RegExp]' - ] = k['[object Set]'] = k['[object String]'] = k['[object Symbol]'] = k[ - '[object Uint8Array]' - ] = k['[object Uint8ClampedArray]'] = k['[object Uint16Array]'] = k[ - '[object Uint32Array]' - ] = !0), - (k['[object Error]'] = k['[object Function]'] = k[ - '[object WeakMap]' - ] = !1), - (e.exports = function e(t, n, S, A, O, E) { - var T, - C = 1 & n, - L = 2 & n, - P = 4 & n; - if ((S && (T = O ? S(t, A, O, E) : S(t)), void 0 !== T)) return T; - if (!x(t)) return t; - var D = y(t); - if (D) { - if (((T = g(t)), !C)) return u(t, T); + var r = n(116), + o = n(258), + i = n(217), + a = n(664), + s = n(665), + c = n(209), + u = n(212), + l = n(666), + f = n(667), + d = n(229), + p = n(668), + h = n(103), + g = n(669), + m = n(670), + b = n(213), + y = n(34), + v = n(101), + _ = n(674), + w = n(47), + x = n(676), + M = n(78), + k = 1, + S = 2, + O = 4, + E = '[object Arguments]', + A = '[object Function]', + T = '[object GeneratorFunction]', + C = '[object Object]', + L = {}; + (L[E] = L['[object Array]'] = L['[object ArrayBuffer]'] = L[ + '[object DataView]' + ] = L['[object Boolean]'] = L['[object Date]'] = L[ + '[object Float32Array]' + ] = L['[object Float64Array]'] = L['[object Int8Array]'] = L[ + '[object Int16Array]' + ] = L['[object Int32Array]'] = L['[object Map]'] = L[ + '[object Number]' + ] = L[C] = L['[object RegExp]'] = L['[object Set]'] = L[ + '[object String]' + ] = L['[object Symbol]'] = L['[object Uint8Array]'] = L[ + '[object Uint8ClampedArray]' + ] = L['[object Uint16Array]'] = L['[object Uint32Array]'] = !0), + (L['[object Error]'] = L[A] = L['[object WeakMap]'] = !1), + (e.exports = function e(t, n, P, D, j, z) { + var N, + R = n & k, + I = n & S, + F = n & O; + if ((P && (N = j ? P(t, D, j, z) : P(t)), void 0 !== N)) return N; + if (!w(t)) return t; + var q = y(t); + if (q) { + if (((N = g(t)), !R)) return u(t, N); } else { - var z = h(t), - N = '[object Function]' == z || '[object GeneratorFunction]' == z; - if (v(t)) return c(t, C); - if ( - '[object Object]' == z || - '[object Arguments]' == z || - (N && !O) - ) { - if (((T = L || N ? {} : b(t)), !C)) - return L ? f(t, s(T, t)) : l(t, a(T, t)); + var B = h(t), + H = B == A || B == T; + if (v(t)) return c(t, R); + if (B == C || B == E || (H && !j)) { + if (((N = I || H ? {} : b(t)), !R)) + return I ? f(t, s(N, t)) : l(t, a(N, t)); } else { - if (!k[z]) return O ? t : {}; - T = m(t, z, C); + if (!L[B]) return j ? t : {}; + N = m(t, B, R); } } - E || (E = new r()); - var j = E.get(t); - if (j) return j; - E.set(t, T), - w(t) + z || (z = new r()); + var Y = z.get(t); + if (Y) return Y; + z.set(t, N), + x(t) ? t.forEach(function(r) { - T.add(e(r, n, S, r, t, E)); + N.add(e(r, n, P, r, t, z)); }) : _(t) && t.forEach(function(r, o) { - T.set(o, e(r, n, S, o, t, E)); + N.set(o, e(r, n, P, o, t, z)); }); - var R = P ? (L ? p : d) : L ? keysIn : M, - I = D ? void 0 : R(t); + var W = F ? (I ? p : d) : I ? keysIn : M, + V = q ? void 0 : W(t); return ( - o(I || t, function(r, o) { - I && (r = t[(o = r)]), i(T, o, e(r, n, S, o, t, E)); + o(V || t, function(r, o) { + V && (r = t[(o = r)]), i(N, o, e(r, n, P, o, t, z)); }), - T + N ); }); }, function(e, t, n) { - var r = n(87), - o = n(64); + var r = n(102), + o = n(78); e.exports = function(e, t) { return e && r(t, o(t), e); }; }, function(e, t, n) { - var r = n(87), - o = n(109); + var r = n(102), + o = n(124); e.exports = function(e, t) { return e && r(t, o(t), e); }; }, function(e, t, n) { - var r = n(87), - o = n(143); + var r = n(102), + o = n(158); e.exports = function(e, t) { return r(e, o(e), t); }; }, function(e, t, n) { - var r = n(87), - o = n(237); + var r = n(102), + o = n(259); e.exports = function(e, t) { return r(e, o(e), t); }; }, function(e, t, n) { - var r = n(208), - o = n(237), - i = n(109); + var r = n(230), + o = n(259), + i = n(124); e.exports = function(e) { return r(e, i, o); }; @@ -199753,47 +200295,66 @@ object-assign }; }, function(e, t, n) { - var r = n(136), - o = n(627), - i = n(628), - a = n(629), - s = n(189); + var r = n(151), + o = n(671), + i = n(672), + a = n(673), + s = n(210), + c = '[object Boolean]', + u = '[object Date]', + l = '[object Map]', + f = '[object Number]', + d = '[object RegExp]', + p = '[object Set]', + h = '[object String]', + g = '[object Symbol]', + m = '[object ArrayBuffer]', + b = '[object DataView]', + y = '[object Float32Array]', + v = '[object Float64Array]', + _ = '[object Int8Array]', + w = '[object Int16Array]', + x = '[object Int32Array]', + M = '[object Uint8Array]', + k = '[object Uint8ClampedArray]', + S = '[object Uint16Array]', + O = '[object Uint32Array]'; e.exports = function(e, t, n) { - var c = e.constructor; + var E = e.constructor; switch (t) { - case '[object ArrayBuffer]': + case m: return r(e); - case '[object Boolean]': - case '[object Date]': - return new c(+e); - case '[object DataView]': + case c: + case u: + return new E(+e); + case b: return o(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]': + case y: + case v: + case _: + case w: + case x: + case M: + case k: + case S: + case O: return s(e, n); - case '[object Map]': - return new c(); - case '[object Number]': - case '[object String]': - return new c(e); - case '[object RegExp]': + case l: + return new E(); + case f: + case h: + return new E(e); + case d: return i(e); - case '[object Set]': - return new c(); - case '[object Symbol]': + case p: + return new E(); + case g: return a(e); } }; }, function(e, t, n) { - var r = n(136); + var r = n(151); e.exports = function(e, t) { var n = t ? r(e.buffer) : e.buffer; return new e.constructor(n, e.byteOffset, e.byteLength); @@ -199807,7 +200368,7 @@ object-assign }; }, function(e, t, n) { - var r = n(85), + var r = n(100), o = r ? r.prototype : void 0, i = o ? o.valueOf : void 0; e.exports = function(e) { @@ -199815,33 +200376,35 @@ object-assign }; }, function(e, t, n) { - var r = n(631), - o = n(139), - i = n(140), + var r = n(675), + o = n(154), + i = n(155), a = i && i.isMap, s = a ? o(a) : r; e.exports = s; }, function(e, t, n) { - var r = n(88), - o = n(40); + var r = n(103), + o = n(53), + i = '[object Map]'; e.exports = function(e) { - return o(e) && '[object Map]' == r(e); + return o(e) && r(e) == i; }; }, function(e, t, n) { - var r = n(633), - o = n(139), - i = n(140), + var r = n(677), + o = n(154), + i = n(155), a = i && i.isSet, s = a ? o(a) : r; e.exports = s; }, function(e, t, n) { - var r = n(88), - o = n(40); + var r = n(103), + o = n(53), + i = '[object Set]'; e.exports = function(e) { - return o(e) && '[object Set]' == r(e); + return o(e) && r(e) == i; }; }, function(e, t, n) { @@ -199849,7 +200412,7 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.autoprefix = void 0); var r, - o = n(147), + o = n(162), i = (r = o) && r.__esModule ? r : { default: r }, a = Object.assign || @@ -200185,7 +200748,7 @@ object-assign })(), i = n(0), a = l(i), - s = l(n(5)), + s = l(n(9)), c = (function(e) { if (e && e.__esModule) return e; var t = {}; @@ -200193,30 +200756,29 @@ object-assign for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); return (t.default = e), t; - })(n(639)), - u = l(n(150)); + })(n(683)), + u = l(n(165)); function l(e) { return e && e.__esModule ? e : { default: e }; } function f(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function d(e, t) { if (!e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return !t || ('object' != typeof t && 'function' != typeof t) ? e : t; } - var p = (t.Alpha = (function(e) { + var d = (t.Alpha = (function(e) { function t() { var e, n, r; - f(this, t); + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, t); for (var o = arguments.length, i = Array(o), a = 0; a < o; a++) i[a] = arguments[a]; return ( - (n = r = d( + (n = r = f( this, (e = t.__proto__ || Object.getPrototypeOf(t)).call.apply( e, @@ -200247,7 +200809,7 @@ object-assign window.removeEventListener('mousemove', r.handleChange), window.removeEventListener('mouseup', r.handleMouseUp); }), - d(r, n) + f(r, n) ); } return ( @@ -200398,7 +200960,7 @@ object-assign t ); })(i.PureComponent || i.Component)); - t.default = p; + t.default = d; }, function(e, t, n) { 'use strict'; @@ -200473,12 +201035,19 @@ object-assign })(), o = n(0), i = s(o), - a = s(n(5)); + a = s(n(9)); function s(e) { return e && e.__esModule ? e : { default: e }; } - var c = [38, 40], - u = (t.EditableInput = (function(e) { + var c = 38, + u = [c, 40], + l = function(e) { + return u.indexOf(e) > -1; + }, + f = function(e) { + return Number(String(e).replace(/%/g, '')); + }, + d = (t.EditableInput = (function(e) { function t(e) { !(function(e, t) { if (!(e instanceof t)) @@ -200502,14 +201071,11 @@ object-assign n.setUpdatedValue(e.target.value, e); }), (n.handleKeyDown = function(e) { - var t, - r = (function(e) { - return Number(String(e).replace(/%/g, '')); - })(e.target.value); - if (!isNaN(r) && ((t = e.keyCode), c.indexOf(t) > -1)) { - var o = n.getArrowOffset(), - i = 38 === e.keyCode ? r + o : r - o; - n.setUpdatedValue(i, e); + var t = f(e.target.value); + if (!isNaN(t) && l(e.keyCode)) { + var r = n.getArrowOffset(), + o = e.keyCode === c ? t + r : t - r; + n.setUpdatedValue(o, e); } }), (n.handleDrag = function(e) { @@ -200680,7 +201246,7 @@ object-assign t ); })(o.PureComponent || o.Component)); - t.default = u; + t.default = d; }, function(e, t, n) { 'use strict'; @@ -200701,7 +201267,7 @@ object-assign })(), o = n(0), i = c(o), - a = c(n(5)), + a = c(n(9)), s = (function(e) { if (e && e.__esModule) return e; var t = {}; @@ -200709,29 +201275,28 @@ object-assign for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); return (t.default = e), t; - })(n(643)); + })(n(687)); function c(e) { return e && e.__esModule ? e : { default: e }; } function u(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function l(e, t) { if (!e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return !t || ('object' != typeof t && 'function' != typeof t) ? e : t; } - var f = (t.Hue = (function(e) { + var l = (t.Hue = (function(e) { function t() { var e, n, r; - u(this, t); + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, t); for (var o = arguments.length, i = Array(o), a = 0; a < o; a++) i[a] = arguments[a]; return ( - (n = r = l( + (n = r = u( this, (e = t.__proto__ || Object.getPrototypeOf(t)).call.apply( e, @@ -200757,7 +201322,7 @@ object-assign (r.handleMouseUp = function() { r.unbindEventListeners(); }), - l(r, n) + u(r, n) ); } return ( @@ -200875,7 +201440,7 @@ object-assign t ); })(o.PureComponent || o.Component)); - t.default = f; + t.default = l; }, function(e, t, n) { 'use strict'; @@ -200913,8 +201478,8 @@ object-assign (t.Raised = void 0); var r = s(n(0)), o = s(n(1)), - i = s(n(5)), - a = s(n(21)); + i = s(n(9)), + a = s(n(32)); function s(e) { return e && e.__esModule ? e : { default: e }; } @@ -201017,8 +201582,8 @@ object-assign })(), o = n(0), i = u(o), - a = u(n(5)), - s = u(n(151)), + a = u(n(9)), + s = u(n(166)), c = (function(e) { if (e && e.__esModule) return e; var t = {}; @@ -201026,7 +201591,7 @@ object-assign for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); return (t.default = e), t; - })(n(647)); + })(n(691)); function u(e) { return e && e.__esModule ? e : { default: e }; } @@ -201199,7 +201764,7 @@ object-assign t.default = l; }, function(e, t, n) { - var r = n(36); + var r = n(48); e.exports = function() { return r.Date.now(); }; @@ -201222,13 +201787,13 @@ object-assign }; }, function(e, t, n) { - e.exports = n(649); + e.exports = n(693); }, function(e, t, n) { - var r = n(236), - o = n(149), - i = n(230), - a = n(22); + var r = n(258), + o = n(164), + i = n(252), + a = n(34); e.exports = function(e, t) { return (a(e) ? r : o)(e, i(t)); }; @@ -201276,32 +201841,32 @@ object-assign return { h: t[1], s: t[2], v: t[3], a: t[4] }; if ((t = Y.hex8.exec(e))) return { - r: N(t[1]), - g: N(t[2]), - b: N(t[3]), + r: z(t[1]), + g: z(t[2]), + b: z(t[3]), a: F(t[4]), format: n ? 'name' : 'hex8' }; if ((t = Y.hex6.exec(e))) return { - r: N(t[1]), - g: N(t[2]), - b: N(t[3]), + r: z(t[1]), + g: z(t[2]), + b: z(t[3]), format: n ? 'name' : 'hex' }; if ((t = Y.hex4.exec(e))) return { - r: N(t[1] + '' + t[1]), - g: N(t[2] + '' + t[2]), - b: N(t[3] + '' + t[3]), + r: z(t[1] + '' + t[1]), + g: z(t[2] + '' + t[2]), + b: z(t[3] + '' + t[3]), a: F(t[4] + '' + t[4]), format: n ? 'name' : 'hex8' }; if ((t = Y.hex3.exec(e))) return { - r: N(t[1] + '' + t[1]), - g: N(t[2] + '' + t[2]), - b: N(t[3] + '' + t[3]), + r: z(t[1] + '' + t[1]), + g: z(t[2] + '' + t[2]), + b: z(t[3] + '' + t[3]), format: n ? 'name' : 'hex' }; return !1; @@ -201453,9 +202018,9 @@ object-assign } function g(e, t, n, r) { var o = [ - j(c(e).toString(16)), - j(c(t).toString(16)), - j(c(n).toString(16)) + N(c(e).toString(16)), + N(c(t).toString(16)), + N(c(n).toString(16)) ]; return r && o[0].charAt(0) == o[0].charAt(1) && @@ -201466,21 +202031,21 @@ object-assign } function m(e, t, n, r) { return [ - j(I(r)), - j(c(e).toString(16)), - j(c(t).toString(16)), - j(c(n).toString(16)) + N(I(r)), + N(c(e).toString(16)), + N(c(t).toString(16)), + N(c(n).toString(16)) ].join(''); } function b(e, t) { t = 0 === t ? 0 : t || 10; var n = d(e).toHsl(); - return (n.s -= t / 100), (n.s = z(n.s)), d(n); + return (n.s -= t / 100), (n.s = j(n.s)), d(n); } function y(e, t) { t = 0 === t ? 0 : t || 10; var n = d(e).toHsl(); - return (n.s += t / 100), (n.s = z(n.s)), d(n); + return (n.s += t / 100), (n.s = j(n.s)), d(n); } function v(e) { return d(e).desaturate(100); @@ -201488,9 +202053,9 @@ object-assign function _(e, t) { t = 0 === t ? 0 : t || 10; var n = d(e).toHsl(); - return (n.l += t / 100), (n.l = z(n.l)), d(n); + return (n.l += t / 100), (n.l = j(n.l)), d(n); } - function x(e, t) { + function w(e, t) { t = 0 === t ? 0 : t || 10; var n = d(e).toRgb(); return ( @@ -201500,10 +202065,10 @@ object-assign d(n) ); } - function w(e, t) { + function x(e, t) { t = 0 === t ? 0 : t || 10; var n = d(e).toHsl(); - return (n.l -= t / 100), (n.l = z(n.l)), d(n); + return (n.l -= t / 100), (n.l = j(n.l)), d(n); } function M(e, t) { var n = d(e).toHsl(), @@ -201523,7 +202088,7 @@ object-assign d({ h: (n + 240) % 360, s: t.s, l: t.l }) ]; } - function A(e) { + function O(e) { var t = d(e).toHsl(), n = t.h; return [ @@ -201533,7 +202098,7 @@ object-assign d({ h: (n + 270) % 360, s: t.s, l: t.l }) ]; } - function O(e) { + function E(e) { var t = d(e).toHsl(), n = t.h; return [ @@ -201542,7 +202107,7 @@ object-assign d({ h: (n + 216) % 360, s: t.s, l: t.l }) ]; } - function E(e, t, n) { + function A(e, t, n) { (t = t || 6), (n = n || 30); var r = d(e).toHsl(), o = 360 / n, @@ -201641,10 +202206,10 @@ object-assign toHex8: function(e) { return (function(e, t, n, r, o) { var i = [ - j(c(e).toString(16)), - j(c(t).toString(16)), - j(c(n).toString(16)), - j(I(r)) + N(c(e).toString(16)), + N(c(t).toString(16)), + N(c(n).toString(16)), + N(I(r)) ]; if ( o && @@ -201781,10 +202346,10 @@ object-assign return this._applyModification(_, arguments); }, brighten: function() { - return this._applyModification(x, arguments); + return this._applyModification(w, arguments); }, darken: function() { - return this._applyModification(w, arguments); + return this._applyModification(x, arguments); }, desaturate: function() { return this._applyModification(b, arguments); @@ -201802,7 +202367,7 @@ object-assign return e.apply(null, [this].concat([].slice.call(t))); }, analogous: function() { - return this._applyCombination(E, arguments); + return this._applyCombination(A, arguments); }, complement: function() { return this._applyCombination(k, arguments); @@ -201811,13 +202376,13 @@ object-assign return this._applyCombination(T, arguments); }, splitcomplement: function() { - return this._applyCombination(O, arguments); + return this._applyCombination(E, arguments); }, triad: function() { return this._applyCombination(S, arguments); }, tetrad: function() { - return this._applyCombination(A, arguments); + return this._applyCombination(O, arguments); } }), (d.fromRatio = function(e, t) { @@ -202079,13 +202644,13 @@ object-assign o.abs(e - t) < 1e-6 ? 1 : (e % t) / parseFloat(t) ); } - function z(e) { + function j(e) { return u(1, l(0, e)); } - function N(e) { + function z(e) { return parseInt(e, 16); } - function j(e) { + function N(e) { return 1 == e.length ? '0' + e : '' + e; } function R(e) { @@ -202095,7 +202660,7 @@ object-assign return o.round(255 * parseFloat(e)).toString(16); } function F(e) { - return N(e) / 255; + return z(e) / 255; } var q, B, @@ -202158,9 +202723,9 @@ object-assign return e; }, o = c(n(0)), - i = c(n(5)), - a = n(652), - s = c(n(150)); + i = c(n(9)), + a = n(696), + s = c(n(165)); function c(e) { return e && e.__esModule ? e : { default: e }; } @@ -202340,7 +202905,7 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.AlphaPointer = void 0); var r = i(n(0)), - o = i(n(5)); + o = i(n(9)); function i(e) { return e && e.__esModule ? e : { default: e }; } @@ -202371,11 +202936,11 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.Block = void 0); var r = l(n(0)), o = l(n(1)), - i = l(n(5)), - a = l(n(21)), - s = l(n(37)), - c = n(10), - u = l(n(655)); + i = l(n(9)), + a = l(n(32)), + s = l(n(49)), + c = n(19), + u = l(n(699)); function l(e) { return e && e.__esModule ? e : { default: e }; } @@ -202509,9 +203074,9 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.BlockSwatches = void 0); var r = s(n(0)), - o = s(n(5)), - i = s(n(46)), - a = n(10); + o = s(n(9)), + i = s(n(59)), + a = n(19); function s(e) { return e && e.__esModule ? e : { default: e }; } @@ -202557,9 +203122,9 @@ object-assign (t.Circle = void 0); var r = f(n(0)), o = f(n(1)), - i = f(n(5)), - a = f(n(46)), - s = f(n(21)), + i = f(n(9)), + a = f(n(59)), + s = f(n(32)), c = (function(e) { if (e && e.__esModule) return e; var t = {}; @@ -202567,9 +203132,9 @@ object-assign for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); return (t.default = e), t; - })(n(240)), - u = n(10), - l = f(n(657)); + })(n(262)), + u = n(19), + l = f(n(701)); function f(e) { return e && e.__esModule ? e : { default: e }; } @@ -202659,9 +203224,9 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.CircleSwatch = void 0); var r = s(n(0)), - o = n(5), + o = n(9), i = s(o), - a = n(10); + a = n(19); function s(e) { return e && e.__esModule ? e : { default: e }; } @@ -202717,12 +203282,12 @@ object-assign (t.Chrome = void 0); var r = f(n(0)), o = f(n(1)), - i = f(n(5)), - a = f(n(21)), - s = n(10), - c = f(n(659)), - u = f(n(661)), - l = f(n(662)); + i = f(n(9)), + a = f(n(32)), + s = n(19), + c = f(n(703)), + u = f(n(705)), + l = f(n(706)); function f(e) { return e && e.__esModule ? e : { default: e }; } @@ -202740,7 +203305,7 @@ object-assign y = e.className, v = void 0 === y ? '' : y, _ = e.defaultView, - x = (0, i.default)( + w = (0, i.default)( (0, a.default)( { default: { @@ -202811,12 +203376,12 @@ object-assign ); return r.default.createElement( 'div', - { style: x.picker, className: 'chrome-picker ' + v }, + { style: w.picker, className: 'chrome-picker ' + v }, r.default.createElement( 'div', - { style: x.saturation }, + { style: w.saturation }, r.default.createElement(s.Saturation, { - style: x.Saturation, + style: w.Saturation, hsl: d, hsv: p, pointer: l.default, @@ -202825,28 +203390,28 @@ object-assign ), r.default.createElement( 'div', - { style: x.body }, + { style: w.body }, r.default.createElement( 'div', - { style: x.controls, className: 'flexbox-fix' }, + { style: w.controls, className: 'flexbox-fix' }, r.default.createElement( 'div', - { style: x.color }, + { style: w.color }, r.default.createElement( 'div', - { style: x.swatch }, - r.default.createElement('div', { style: x.active }), + { style: w.swatch }, + r.default.createElement('div', { style: w.active }), r.default.createElement(s.Checkboard, { renderers: g }) ) ), r.default.createElement( 'div', - { style: x.toggles }, + { style: w.toggles }, r.default.createElement( 'div', - { style: x.hue }, + { style: w.hue }, r.default.createElement(s.Hue, { - style: x.Hue, + style: w.Hue, hsl: d, pointer: u.default, onChange: n @@ -202854,9 +203419,9 @@ object-assign ), r.default.createElement( 'div', - { style: x.alpha }, + { style: w.alpha }, r.default.createElement(s.Alpha, { - style: x.Alpha, + style: w.Alpha, rgb: f, hsl: d, pointer: u.default, @@ -202905,10 +203470,10 @@ object-assign }; })(), o = u(n(0)), - i = u(n(5)), - a = u(n(37)), - s = n(10), - c = u(n(660)); + i = u(n(9)), + a = u(n(49)), + s = n(19), + c = u(n(704)); function u(e) { return e && e.__esModule ? e : { default: e }; } @@ -203291,7 +203856,7 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.ChromePointer = void 0); var r = i(n(0)), - o = i(n(5)); + o = i(n(9)); function i(e) { return e && e.__esModule ? e : { default: e }; } @@ -203317,7 +203882,7 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.ChromePointerCircle = void 0); var r = i(n(0)), - o = i(n(5)); + o = i(n(9)); function i(e) { return e && e.__esModule ? e : { default: e }; } @@ -203343,13 +203908,13 @@ object-assign (t.Compact = void 0); var r = d(n(0)), o = d(n(1)), - i = d(n(5)), - a = d(n(46)), - s = d(n(21)), - c = d(n(37)), - u = n(10), - l = d(n(664)), - f = d(n(665)); + i = d(n(9)), + a = d(n(59)), + s = d(n(32)), + c = d(n(49)), + u = n(19), + l = d(n(708)), + f = d(n(709)); function d(e) { return e && e.__esModule ? e : { default: e }; } @@ -203462,9 +204027,9 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.CompactColor = void 0); var r = s(n(0)), - o = s(n(5)), - i = s(n(37)), - a = n(10); + o = s(n(9)), + i = s(n(49)), + a = n(19); function s(e) { return e && e.__esModule ? e : { default: e }; } @@ -203526,8 +204091,8 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.CompactFields = void 0); var r = a(n(0)), - o = a(n(5)), - i = n(10); + o = a(n(9)), + i = n(19); function a(e) { return e && e.__esModule ? e : { default: e }; } @@ -203638,11 +204203,11 @@ object-assign (t.Github = void 0); var r = l(n(0)), o = l(n(1)), - i = l(n(5)), - a = l(n(46)), - s = l(n(21)), - c = n(10), - u = l(n(667)); + i = l(n(9)), + a = l(n(59)), + s = l(n(32)), + c = n(19), + u = l(n(711)); function l(e) { return e && e.__esModule ? e : { default: e }; } @@ -203789,9 +204354,9 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.GithubSwatch = void 0); var r = s(n(0)), - o = n(5), + o = n(9), i = s(o), - a = n(10); + a = n(19); function s(e) { return e && e.__esModule ? e : { default: e }; } @@ -203844,10 +204409,10 @@ object-assign }, o = l(n(0)), i = l(n(1)), - a = l(n(5)), - s = l(n(21)), - c = n(10), - u = l(n(669)); + a = l(n(9)), + s = l(n(32)), + c = n(19), + u = l(n(713)); function l(e) { return e && e.__esModule ? e : { default: e }; } @@ -203904,7 +204469,7 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.SliderPointer = void 0); var r = i(n(0)), - o = i(n(5)); + o = i(n(9)); function i(e) { return e && e.__esModule ? e : { default: e }; } @@ -203935,10 +204500,10 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.Material = void 0); var r = c(n(0)), - o = c(n(5)), - i = c(n(21)), - a = c(n(37)), - s = n(10); + o = c(n(9)), + i = c(n(32)), + a = c(n(49)), + s = n(19); function c(e) { return e && e.__esModule ? e : { default: e }; } @@ -204110,14 +204675,14 @@ object-assign })(), o = h(n(0)), i = h(n(1)), - a = h(n(5)), - s = h(n(21)), - c = n(10), - u = h(n(672)), - l = h(n(673)), - f = h(n(674)), - d = h(n(675)), - p = h(n(676)); + a = h(n(9)), + s = h(n(32)), + c = n(19), + u = h(n(716)), + l = h(n(717)), + f = h(n(718)), + d = h(n(719)), + p = h(n(720)); function h(e) { return e && e.__esModule ? e : { default: e }; } @@ -204301,9 +204866,9 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.PhotoshopPicker = void 0); var r = s(n(0)), - o = s(n(5)), - i = s(n(37)), - a = n(10); + o = s(n(9)), + i = s(n(49)), + a = n(19); function s(e) { return e && e.__esModule ? e : { default: e }; } @@ -204464,7 +205029,7 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.PhotoshopPointerCircle = void 0); var r = i(n(0)), - o = i(n(5)); + o = i(n(9)); function i(e) { return e && e.__esModule ? e : { default: e }; } @@ -204494,7 +205059,7 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.PhotoshopPointerCircle = void 0); var r = i(n(0)), - o = i(n(5)); + o = i(n(9)); function i(e) { return e && e.__esModule ? e : { default: e }; } @@ -204558,7 +205123,7 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.PhotoshopButton = void 0); var r = i(n(0)), - o = i(n(5)); + o = i(n(9)); function i(e) { return e && e.__esModule ? e : { default: e }; } @@ -204602,7 +205167,7 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.PhotoshopPreviews = void 0); var r = i(n(0)), - o = i(n(5)); + o = i(n(9)); function i(e) { return e && e.__esModule ? e : { default: e }; } @@ -204663,11 +205228,11 @@ object-assign }, o = f(n(0)), i = f(n(1)), - a = f(n(5)), - s = f(n(21)), - c = n(10), - u = f(n(678)), - l = f(n(679)); + a = f(n(9)), + s = f(n(32)), + c = n(19), + u = f(n(722)), + l = f(n(723)); function f(e) { return e && e.__esModule ? e : { default: e }; } @@ -204685,8 +205250,8 @@ object-assign y = e.styles, v = void 0 === y ? {} : y, _ = e.className, - x = void 0 === _ ? '' : _, - w = (0, a.default)( + w = void 0 === _ ? '' : _, + x = (0, a.default)( (0, s.default)( { default: r( @@ -204765,12 +205330,12 @@ object-assign ); return o.default.createElement( 'div', - { style: w.picker, className: 'sketch-picker ' + x }, + { style: x.picker, className: 'sketch-picker ' + w }, o.default.createElement( 'div', - { style: w.saturation }, + { style: x.saturation }, o.default.createElement(c.Saturation, { - style: w.Saturation, + style: x.Saturation, hsl: d, hsv: f, onChange: p @@ -204778,24 +205343,24 @@ object-assign ), o.default.createElement( 'div', - { style: w.controls, className: 'flexbox-fix' }, + { style: x.controls, className: 'flexbox-fix' }, o.default.createElement( 'div', - { style: w.sliders }, + { style: x.sliders }, o.default.createElement( 'div', - { style: w.hue }, + { style: x.hue }, o.default.createElement(c.Hue, { - style: w.Hue, + style: x.Hue, hsl: d, onChange: p }) ), o.default.createElement( 'div', - { style: w.alpha }, + { style: x.alpha }, o.default.createElement(c.Alpha, { - style: w.Alpha, + style: x.Alpha, rgb: n, hsl: d, renderers: b, @@ -204805,9 +205370,9 @@ object-assign ), o.default.createElement( 'div', - { style: w.color }, + { style: x.color }, o.default.createElement(c.Checkboard, null), - o.default.createElement('div', { style: w.activeColor }) + o.default.createElement('div', { style: x.activeColor }) ) ), o.default.createElement(u.default, { @@ -204858,9 +205423,9 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.SketchFields = void 0); var r = s(n(0)), - o = s(n(5)), - i = s(n(37)), - a = n(10); + o = s(n(9)), + i = s(n(49)), + a = n(19); function s(e) { return e && e.__esModule ? e : { default: e }; } @@ -204999,8 +205564,8 @@ object-assign }, o = c(n(0)), i = c(n(1)), - a = c(n(5)), - s = n(10); + a = c(n(9)), + s = n(19); function c(e) { return e && e.__esModule ? e : { default: e }; } @@ -205081,11 +205646,11 @@ object-assign (t.Slider = void 0); var r = l(n(0)), o = l(n(1)), - i = l(n(5)), - a = l(n(21)), - s = n(10), - c = l(n(681)), - u = l(n(683)); + i = l(n(9)), + a = l(n(32)), + s = n(19), + c = l(n(725)), + u = l(n(727)); function l(e) { return e && e.__esModule ? e : { default: e }; } @@ -205137,8 +205702,8 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.SliderSwatches = void 0); var r = a(n(0)), - o = a(n(5)), - i = a(n(682)); + o = a(n(9)), + i = a(n(726)); function a(e) { return e && e.__esModule ? e : { default: e }; } @@ -205222,7 +205787,7 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.SliderSwatch = void 0); var r = i(n(0)), - o = i(n(5)); + o = i(n(9)); function i(e) { return e && e.__esModule ? e : { default: e }; } @@ -205265,7 +205830,7 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.SliderPointer = void 0); var r = i(n(0)), - o = i(n(5)); + o = i(n(9)); function i(e) { return e && e.__esModule ? e : { default: e }; } @@ -205292,10 +205857,10 @@ object-assign (t.Swatches = void 0); var r = d(n(0)), o = d(n(1)), - i = d(n(5)), - a = d(n(46)), - s = d(n(21)), - c = d(n(37)), + i = d(n(9)), + a = d(n(59)), + s = d(n(32)), + c = d(n(49)), u = (function(e) { if (e && e.__esModule) return e; var t = {}; @@ -205303,9 +205868,9 @@ object-assign for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); return (t.default = e), t; - })(n(240)), - l = n(10), - f = d(n(685)); + })(n(262)), + l = n(19), + f = d(n(729)); function d(e) { return e && e.__esModule ? e : { default: e }; } @@ -205468,9 +206033,9 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.SwatchesGroup = void 0); var r = s(n(0)), - o = s(n(5)), - i = s(n(46)), - a = s(n(686)); + o = s(n(9)), + i = s(n(59)), + a = s(n(730)); function s(e) { return e && e.__esModule ? e : { default: e }; } @@ -205512,10 +206077,10 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.SwatchesColor = void 0); var r = c(n(0)), - o = c(n(5)), - i = c(n(37)), - a = n(10), - s = c(n(687)); + o = c(n(9)), + i = c(n(49)), + a = n(19), + s = c(n(731)); function c(e) { return e && e.__esModule ? e : { default: e }; } @@ -205635,11 +206200,11 @@ object-assign (t.Twitter = void 0); var r = l(n(0)), o = l(n(1)), - i = l(n(5)), - a = l(n(46)), - s = l(n(21)), - c = l(n(37)), - u = n(10); + i = l(n(9)), + a = l(n(59)), + s = l(n(32)), + c = l(n(49)), + u = n(19); function l(e) { return e && e.__esModule ? e : { default: e }; } @@ -205801,9 +206366,9 @@ object-assign 'use strict'; var r = n(0), o = n(1), - i = n(690), - a = n(694), - s = n(695), + i = n(734), + a = n(738), + s = n(739), c = r.createElement; function u(e) { var t = e.language @@ -205842,7 +206407,7 @@ object-assign prefix: 'hljs-' }), (u.registerLanguage = function() { - i.registerLanguage.apply(i, arguments); + 0, i.registerLanguage.apply(i, arguments); }), (u.hasLanguage = function(e) { return !!i.getLanguage(e); @@ -205851,56 +206416,65 @@ object-assign }, function(e, t, n) { 'use strict'; - var r = n(691), - o = n(692); + var r = n(735), + o = n(736); function i() {} i.prototype = r; var a = new i(); (e.exports = a), (a.highlight = function(e, t, n) { var r = (n || {}).prefix; - null == r && (r = 'hljs-'); - return y(g(e, t, !0, r)); + null == r && (r = u); + return E(k(e, t, !0, r)); }), - (a.highlightAuto = p), + (a.highlightAuto = x), (a.registerLanguage = function(e, t) { var n = t(a); (n.rawDefinition = t.bind(null, a)), - (f[e] = n), - l.push(e), - n.aliases && h(e, n.aliases); + (_[e] = n), + v.push(e), + n.aliases && M(e, n.aliases); }), (a.listLanguages = function() { - return l.concat(); + return v.concat(); }), - (a.registerAlias = h), - (a.getLanguage = v); + (a.registerAlias = M), + (a.getLanguage = A); var s = r.inherit, c = {}.hasOwnProperty, - u = ['of', 'and', 'for', 'in', 'not', 'or', 'if', 'then'], - l = [], - f = {}, - d = {}; - function p(e, t) { + u = 'hljs-', + l = 'case_insensitive', + f = 'cached_variants', + d = 'terminator_end', + p = ' ', + h = '|', + g = '(', + m = ')', + b = '\\', + y = ['of', 'and', 'for', 'in', 'not', 'or', 'if', 'then'], + v = [], + _ = {}, + w = {}; + function x(e, t) { var n, r, i, a, s = t || {}, - c = s.subset || l, - u = s.prefix, + c = s.subset || v, + l = s.prefix, f = c.length, d = -1; - if ((null == u && (u = 'hljs-'), 'string' != typeof e)) + if ((null == l && (l = u), 'string' != typeof e)) throw o('Expected `string` for value, got `%s`', e); - for (r = y({}), n = y({}); ++d < f; ) - v((a = c[d])) && - (((i = y(g(a, e, !1, u))).language = a), + for (r = E({}), n = E({}); ++d < f; ) + A((a = c[d])) && + (((i = E(k(a, e, !1, l))).language = a), i.relevance > r.relevance && (r = i), i.relevance > n.relevance && ((r = n), (n = i))); return r.language && (n.secondBest = r), n; } - function h(e, t) { + function M(e, t) { var n, r, o, @@ -205912,27 +206486,27 @@ object-assign ++i < o; ) - d[r[i]] = n; + w[r[i]] = n; } - function g(e, t, n, r, i) { + function k(e, t, n, r, i) { var a, s, u, - l, - d, - h, + f, y, - _, - x = {}, - w = {}, - M = [], - k = '', - S = 0; + v, + w, + M, + E = {}, + T = {}, + C = [], + L = '', + P = 0; if ('string' != typeof e) throw o('Expected `string` for name, got `%s`', e); if ('string' != typeof t) throw o('Expected `string` for value, got `%s`', t); - if (((a = v(e)), (u = s = i || a), (l = _ = []), !a)) + if (((a = A(e)), (u = s = i || a), (f = M = []), !a)) throw o('Unknown language: `%s` is not registered', e); !(function(e) { function t(o, i) { @@ -205952,25 +206526,23 @@ object-assign o = t.length, i = -1; for (; ++i < o; ) - (n = t[i].split('|')), - (r[n[0]] = [e, Number(n[1]) || m(n[0]) ? 0 : 1]); - })(e, (t ? n.toLowerCase() : n).split(' ')); + (n = t[i].split(h)), + (r[n[0]] = [e, Number(n[1]) || S(n[0]) ? 0 : 1]); + })(e, (t ? n.toLowerCase() : n).split(p)); } - })(o.keywords, e.case_insensitive)), + })(o.keywords, e[l])), (o.lexemesRe = n(o.lexemes || /\w+/, !0)), i && (o.beginKeywords && (o.begin = - '\\b(' + o.beginKeywords.split(' ').join('|') + ')\\b'), + '\\b(' + o.beginKeywords.split(p).join(h) + ')\\b'), o.begin || (o.begin = /\B|\b/), (o.beginRe = n(o.begin)), o.endSameAsBegin && (o.end = o.begin), o.end || o.endsWithParent || (o.end = /\B|\b/), o.end && (o.endRe = n(o.end)), - (o.terminator_end = r(o.end) || ''), - o.endsWithParent && - i.terminator_end && - (o.terminator_end += (o.end ? '|' : '') + i.terminator_end)), + (o[d] = r(o.end) || ''), + o.endsWithParent && i[d] && (o[d] += (o.end ? h : '') + i[d])), o.illegal && (o.illegalRe = n(o.illegal)), void 0 === o.relevance && (o.relevance = 1), (o.contains = (function(e, n) { @@ -205979,7 +206551,7 @@ object-assign i = e.length, a = -1; for (; ++a < i; ) - (r = e[a]), (o = o.concat(b('self' === r ? n : r))); + (r = e[a]), (o = o.concat(O('self' === r ? n : r))); (i = o.length), (a = -1); for (; ++a < i; ) t(o[a], n); return o; @@ -205988,23 +206560,23 @@ object-assign (o.terminators = (function(e) { var t, o, - i, - a = {}, - s = [], + i = {}, + a = [], + s = {}, c = 1, u = e.contains, l = u.length, f = -1, - d = []; + p = []; for (; ++f < l; ) - h( - (i = u[f]), - i.beginKeywords ? '\\.?(?:' + i.begin + ')\\.?' : i.begin - ); - e.terminator_end && h('end', e.terminator_end); - e.illegal && h('illegal', e.illegal); - (l = s.length), (f = -1); - for (; ++f < l; ) d[f] = s[f][1]; + y( + (o = u[f]), + o.beginKeywords ? '\\.?(?:' + o.begin + ')\\.?' : o.begin + ); + e[d] && y('end', e[d]); + e.illegal && y('illegal', e.illegal); + (l = a.length), (f = -1); + for (; ++f < l; ) p[f] = a[f][1]; return ( (t = n( (function(e, t) { @@ -206023,7 +206595,7 @@ object-assign i = r(n), o = c += 1, 0 !== f && (u += t), - u += '('; + u += g; i.length > 0; ) { @@ -206033,48 +206605,46 @@ object-assign } (u += i.slice(0, a.index)), (i = i.slice(a.index + a[0].length)), - '\\' === a[0][0] && a[1] - ? (u += '\\' + String(Number(a[1]) + o)) - : ((u += a[0]), '(' === a[0] && c++); + a[0][0] === b && a[1] + ? (u += b + String(Number(a[1]) + o)) + : ((u += a[0]), a[0] === g && c++); } - u += ')'; + u += m; } return u; - })(d, '|'), + })(p, h), !0 )), - (o = { lastIndex: 0, exec: p }) - ); - function p(n) { - var r, i, c, u; - if (0 === s.length) return null; - if (((t.lastIndex = o.lastIndex), !(u = t.exec(n)))) - return null; - for (r = u.length, i = -1; ++i < r; ) - if (void 0 !== u[i] && void 0 !== a[i]) { - c = a[i]; - break; + (s = { + lastIndex: 0, + exec: function(n) { + var r, o, c, u; + if (0 === a.length) return null; + if (((t.lastIndex = s.lastIndex), !(u = t.exec(n)))) + return null; + (r = u.length), (o = -1); + for (; ++o < r; ) + if (void 0 !== u[o] && void 0 !== i[o]) { + c = i[o]; + break; + } + 'string' == typeof c + ? ((u.type = c), + (u.extra = [e.illegal, e.terminator_end])) + : ((u.type = 'begin'), (u.rule = c)); + return u; } - return ( - 'string' == typeof c - ? ((u.type = c), - (u.extra = [e.illegal, e.terminator_end])) - : ((u.type = 'begin'), (u.rule = c)), - u - ); - } - function h(e, t) { - (a[c] = e), - s.push([e, t]), - (c += new RegExp(t.toString() + '|').exec('').length); + }) + ); + function y(e, t) { + (i[c] = e), + a.push([e, t]), + (c += new RegExp(t.toString() + h).exec('').length); } })(o))); } function n(t, n) { - return new RegExp( - r(t), - 'm' + (e.case_insensitive ? 'i' : '') + (n ? 'g' : '') - ); + return new RegExp(r(t), 'm' + (e[l] ? 'i' : '') + (n ? 'g' : '')); } function r(e) { return (e && e.source) || e; @@ -206083,22 +206653,22 @@ object-assign })(a); try { for ( - s.terminators.lastIndex = 0, d = 0, y = s.terminators.exec(t); - y; + s.terminators.lastIndex = 0, y = 0, w = s.terminators.exec(t); + w; ) - (h = E(t.slice(d, y.index), y)), - (d = y.index + h), - (s.terminators.lastIndex = d), - (y = s.terminators.exec(t)); - for (E(t.slice(d)), u = s; u.parent; ) - u.className && j(), (u = u.parent); - return { relevance: S, value: l, illegal: !1, language: e, top: s }; + (v = z(t.slice(y, w.index), w)), + (y = w.index + v), + (s.terminators.lastIndex = y), + (w = s.terminators.exec(t)); + for (z(t.slice(y)), u = s; u.parent; ) + u.className && Y(), (u = u.parent); + return { relevance: P, value: f, illegal: !1, language: e, top: s }; } catch (e) { if (-1 === e.message.indexOf('Illegal')) throw e; - return { relevance: 0, illegal: !0, value: P(t, []) }; + return { relevance: 0, illegal: !0, value: F(t, []) }; } - function A(e) { + function D(e) { var t = e[0], n = e.rule; return ( @@ -206106,20 +206676,20 @@ object-assign n.endSameAsBegin && (n.endRe = (function(e) { return new RegExp( - e.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&'), + e.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'), 'm' ); })(t)), n.skip - ? (k += t) - : (n.excludeBegin && (k += t), - L(C(), l), - n.returnBegin || n.excludeBegin || (k = t)), - T(n), + ? (L += t) + : (n.excludeBegin && (L += t), + I(R(), f), + n.returnBegin || n.excludeBegin || (L = t)), + N(n), n.returnBegin ? 0 : t.length ); } - function O(e) { + function j(e) { var n = e[0], r = t.slice(e.index), o = (function e(t, n) { @@ -206137,66 +206707,66 @@ object-assign if (o) { var i = s; i.skip - ? (k += n) - : (i.returnEnd || i.excludeEnd || (k += n), - L(C(), l), - i.excludeEnd && (k = n)); + ? (L += n) + : (i.returnEnd || i.excludeEnd || (L += n), + I(R(), f), + i.excludeEnd && (L = n)); do { - s.className && j(), - s.skip || s.subLanguage || (S += s.relevance), + s.className && Y(), + s.skip || s.subLanguage || (P += s.relevance), (s = s.parent); } while (s !== o.parent); return ( o.starts && - (o.endSameAsBegin && (o.starts.endRe = o.endRe), T(o.starts)), + (o.endSameAsBegin && (o.starts.endRe = o.endRe), N(o.starts)), i.returnEnd ? 0 : n.length ); } } - function E(e, r) { + function z(e, r) { var i, a = r && r[0]; - if (((k += e), void 0 === a)) return L(C(), l), 0; + if (((L += e), void 0 === a)) return I(R(), f), 0; if ( - 'begin' === x.type && + 'begin' === E.type && 'end' === r.type && - x.index === r.index && + E.index === r.index && '' === a ) - return (k += t.slice(r.index, r.index + 1)), 1; - if (((x = r), 'begin' === r.type)) return A(r); - if ('end' === r.type && void 0 !== (i = O(r))) return i; + return (L += t.slice(r.index, r.index + 1)), 1; + if (((E = r), 'begin' === r.type)) return D(r); + if ('end' === r.type && void 0 !== (i = j(r))) return i; if ('illegal' === r.type && !n) throw o( 'Illegal lexeme "%s" for mode "%s"', a, s.className || '' ); - return (k += a), a.length; + return (L += a), a.length; } - function T(e) { + function N(e) { var t; - e.className && (t = z(e.className, [])), - t && (l.push(t), M.push(l), (l = t.children)), + e.className && (t = B(e.className, [])), + t && (f.push(t), C.push(f), (f = t.children)), (s = Object.create(e, { parent: { value: s } })); } - function C() { + function R() { var e = s.subLanguage ? (function() { var e, t = 'string' == typeof s.subLanguage; - if (t && !f[s.subLanguage]) return P(k, []); + if (t && !_[s.subLanguage]) return F(L, []); e = t - ? g(s.subLanguage, k, !0, r, w[s.subLanguage]) - : p(k, { + ? k(s.subLanguage, L, !0, r, T[s.subLanguage]) + : x(L, { subset: 0 === s.subLanguage.length ? void 0 : s.subLanguage, prefix: r }); - if (!e.language) return [D(k)]; - s.relevance > 0 && (S += e.relevance); - t && (w[s.subLanguage] = e.top); - return [z(e.language, e.value, !0)]; + if (!e.language) return [q(L)]; + s.relevance > 0 && (P += e.relevance); + t && (T[s.subLanguage] = e.top); + return [B(e.language, e.value, !0)]; })() : (function() { var e, @@ -206204,40 +206774,40 @@ object-assign n, r, o = []; - if (!s.keywords) return P(k, o); - (e = 0), (s.lexemesRe.lastIndex = 0), (t = s.lexemesRe.exec(k)); + if (!s.keywords) return F(L, o); + (e = 0), (s.lexemesRe.lastIndex = 0), (t = s.lexemesRe.exec(L)); for (; t; ) - P(k.slice(e, t.index), o), - (r = N(s, t)) - ? ((S += r[1]), - (n = z(r[0], [])), + F(L.slice(e, t.index), o), + (r = H(s, t)) + ? ((P += r[1]), + (n = B(r[0], [])), o.push(n), - P(t[0], n.children)) - : P(t[0], o), + F(t[0], n.children)) + : F(t[0], o), (e = s.lexemesRe.lastIndex), - (t = s.lexemesRe.exec(k)); - return P(k.slice(e), o), o; + (t = s.lexemesRe.exec(L)); + return F(L.slice(e), o), o; })(); - return (k = ''), e; + return (L = ''), e; } - function L(e, t) { + function I(e, t) { for (var n, r = e.length, o = -1; ++o < r; ) - 'text' === (n = e[o]).type ? P(n.value, t) : t.push(n); + 'text' === (n = e[o]).type ? F(n.value, t) : t.push(n); } - function P(e, t) { + function F(e, t) { var n; return ( e && ((n = t[t.length - 1]) && 'text' === n.type ? (n.value += e) - : t.push(D(e))), + : t.push(q(e))), t ); } - function D(e) { + function q(e) { return { type: 'text', value: e }; } - function z(e, t, n) { + function B(e, t, n) { return { type: 'element', tagName: 'span', @@ -206245,26 +206815,26 @@ object-assign children: t }; } - function N(e, t) { + function H(e, t) { var n = t[0]; return ( - a.case_insensitive && (n = n.toLowerCase()), + a[l] && (n = n.toLowerCase()), c.call(e.keywords, n) && e.keywords[n] ); } - function j() { - l = M.pop() || _; + function Y() { + f = C.pop() || M; } } - function m(e) { - return -1 !== u.indexOf(e.toLowerCase()); + function S(e) { + return -1 !== y.indexOf(e.toLowerCase()); } - function b(e) { + function O(e) { var t, n, r, o; - if (e.variants && !e.cached_variants) { + if (e.variants && !e[f]) { for (t = (r = e.variants).length, n = -1, o = []; ++n < t; ) o[n] = s(e, { variants: null }, r[n]); - e.cached_variants = o; + e[f] = o; } return e.cached_variants ? e.cached_variants @@ -206274,47 +206844,49 @@ object-assign ? [s(e, { starts: e.starts ? s(e.starts) : null })] : [e]; } - function y(e) { + function E(e) { return { relevance: e.relevance || 0, language: e.language || null, value: e.value || [] }; } - function v(e) { - return (e = e.toLowerCase()), f[e] || f[d[e]]; + function A(e) { + return (e = e.toLowerCase()), _[e] || _[w[e]]; } }, function(e, t, n) { var r, o, i; (o = function(e) { - var t = [], - n = Object.keys, - r = {}, + var t, + n = [], + r = Object.keys, o = {}, - i = /^(no-?highlight|plain|text)$/i, - a = /\blang(?:uage)?-([\w-]+)\b/i, - s = /((^(<[^>]+>|\t|)+|(?:\n)))/gm, - c = { + i = {}, + a = /^(no-?highlight|plain|text)$/i, + s = /\blang(?:uage)?-([\w-]+)\b/i, + c = /((^(<[^>]+>|\t|)+|(?:\n)))/gm, + u = '', + l = { classPrefix: 'hljs-', tabReplace: null, useBR: !1, languages: void 0 }, - u = 'of and for in not or if then'.split(' '); - function l(e) { + f = 'of and for in not or if then'.split(' '); + function d(e) { return e .replace(/&/g, '&') .replace(//g, '>'); } - function f(e) { + function p(e) { return e.nodeName.toLowerCase(); } - function d(e) { - return i.test(e); + function h(e) { + return a.test(e); } - function p(e) { + function g(e) { var t, n = {}, r = Array.prototype.slice.call(arguments, 1); @@ -206326,7 +206898,7 @@ object-assign n ); } - function h(e) { + function m(e) { var t = []; return ( (function e(n, r) { @@ -206336,47 +206908,54 @@ object-assign : 1 === o.nodeType && (t.push({ event: 'start', offset: r, node: o }), (r = e(o, r)), - f(o).match(/br|hr|img|input/) || + p(o).match(/br|hr|img|input/) || t.push({ event: 'stop', offset: r, node: o })); return r; })(e, 0), t ); } - function g(e) { + function b(e) { return ( e.variants && !e.cached_variants && (e.cached_variants = e.variants.map(function(t) { - return p(e, { variants: null }, t); + return g(e, { variants: null }, t); })), e.cached_variants ? e.cached_variants : (function e(t) { return !!t && (t.endsWithParent || e(t.starts)); })(e) - ? [p(e, { starts: e.starts ? p(e.starts) : null })] + ? [g(e, { starts: e.starts ? g(e.starts) : null })] : [e] ); } - function m(e, t) { + function y(e) { + if (t && !e.langApiRestored) { + for (var n in ((e.langApiRestored = !0), t)) + e[n] && (e[t[n]] = e[n]); + (e.contains || []).concat(e.variants || []).forEach(y); + } + } + function v(e, t) { return t ? Number(t) - : ((n = e), -1 != u.indexOf(n.toLowerCase()) ? 0 : 1); + : ((n = e), -1 != f.indexOf(n.toLowerCase()) ? 0 : 1); var n; } - function b(e) { + function _(e) { function t(e) { return (e && e.source) || e; } - function r(n, r) { + function n(n, r) { return new RegExp( t(n), 'm' + (e.case_insensitive ? 'i' : '') + (r ? 'g' : '') ); } function o(e) { - var n, + var r, o, i = {}, a = [], @@ -206401,7 +206980,7 @@ object-assign return e[1]; }); return ( - (n = r( + (r = n( (function(e, n) { for ( var r = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./, @@ -206433,20 +207012,20 @@ object-assign )), (s.lastIndex = 0), (s.exec = function(t) { - var r; + var n; if (0 === a.length) return null; - n.lastIndex = s.lastIndex; - var o = n.exec(t); + r.lastIndex = s.lastIndex; + var o = r.exec(t); if (!o) return null; for (var c = 0; c < o.length; c++) if (null != o[c] && null != i['' + c]) { - r = i['' + c]; + n = i['' + c]; break; } return ( - 'string' == typeof r - ? ((o.type = r), (o.extra = [e.illegal, e.terminator_end])) - : ((o.type = 'begin'), (o.rule = r)), + 'string' == typeof n + ? ((o.type = n), (o.extra = [e.illegal, e.terminator_end])) + : ((o.type = 'begin'), (o.rule = n)), o ); }), @@ -206459,44 +207038,44 @@ object-assign (a.keywords = a.keywords || a.beginKeywords), a.keywords && (a.keywords = (function(e, t) { - var r = {}; + var n = {}; return ( 'string' == typeof e ? o('keyword', e) - : n(e).forEach(function(t) { + : r(e).forEach(function(t) { o(t, e[t]); }), - r + n ); - function o(e, n) { - t && (n = n.toLowerCase()), - n.split(' ').forEach(function(t) { - var n = t.split('|'); - r[n[0]] = [e, m(n[0], n[1])]; + function o(e, r) { + t && (r = r.toLowerCase()), + r.split(' ').forEach(function(t) { + var r = t.split('|'); + n[r[0]] = [e, v(r[0], r[1])]; }); } })(a.keywords, e.case_insensitive)), - (a.lexemesRe = r(a.lexemes || /\w+/, !0)), + (a.lexemesRe = n(a.lexemes || /\w+/, !0)), s && (a.beginKeywords && (a.begin = '\\b(' + a.beginKeywords.split(' ').join('|') + ')\\b'), a.begin || (a.begin = /\B|\b/), - (a.beginRe = r(a.begin)), + (a.beginRe = n(a.begin)), a.endSameAsBegin && (a.end = a.begin), a.end || a.endsWithParent || (a.end = /\B|\b/), - a.end && (a.endRe = r(a.end)), + a.end && (a.endRe = n(a.end)), (a.terminator_end = t(a.end) || ''), a.endsWithParent && s.terminator_end && (a.terminator_end += (a.end ? '|' : '') + s.terminator_end)), - a.illegal && (a.illegalRe = r(a.illegal)), + a.illegal && (a.illegalRe = n(a.illegal)), null == a.relevance && (a.relevance = 1), a.contains || (a.contains = []), (a.contains = Array.prototype.concat.apply( [], a.contains.map(function(e) { - return g('self' === e ? a : e); + return b('self' === e ? a : e); }) )), a.contains.forEach(function(e) { @@ -206506,56 +207085,56 @@ object-assign (a.terminators = o(a))); })(e); } - function y(e, t, n, o) { + function w(e, t, n, r) { function i(e, t) { - var n = g.case_insensitive ? t[0].toLowerCase() : t[0]; + var n = m.case_insensitive ? t[0].toLowerCase() : t[0]; return e.keywords.hasOwnProperty(n) && e.keywords[n]; } function a(e, t, n, r) { if (!n && '' === t) return ''; if (!e) return t; - var o = '') + t + (n ? '' : ''); + var o = '') + t + (n ? '' : u); } function s() { - (w += - null != _.subLanguage + (M += + null != y.subLanguage ? (function() { - var e = 'string' == typeof _.subLanguage; - if (e && !r[_.subLanguage]) return l(k); + var e = 'string' == typeof y.subLanguage; + if (e && !o[y.subLanguage]) return d(k); var t = e - ? y(_.subLanguage, k, !0, x[_.subLanguage]) - : v(k, _.subLanguage.length ? _.subLanguage : void 0); + ? w(y.subLanguage, k, !0, v[y.subLanguage]) + : x(k, y.subLanguage.length ? y.subLanguage : void 0); return ( - _.relevance > 0 && (S += t.relevance), - e && (x[_.subLanguage] = t.top), + y.relevance > 0 && (S += t.relevance), + e && (v[y.subLanguage] = t.top), a(t.language, t.value, !1, !0) ); })() : (function() { var e, t, n, r; - if (!_.keywords) return l(k); + if (!y.keywords) return d(k); for ( r = '', t = 0, - _.lexemesRe.lastIndex = 0, - n = _.lexemesRe.exec(k); + y.lexemesRe.lastIndex = 0, + n = y.lexemesRe.exec(k); n; ) - (r += l(k.substring(t, n.index))), - (e = i(_, n)) - ? ((S += e[1]), (r += a(e[0], l(n[0])))) - : (r += l(n[0])), - (t = _.lexemesRe.lastIndex), - (n = _.lexemesRe.exec(k)); - return r + l(k.substr(t)); + (r += d(k.substring(t, n.index))), + (e = i(y, n)) + ? ((S += e[1]), (r += a(e[0], d(n[0])))) + : (r += d(n[0])), + (t = y.lexemesRe.lastIndex), + (n = y.lexemesRe.exec(k)); + return r + d(k.substr(t)); })()), (k = ''); } - function u(e) { - (w += e.className ? a(e.className, '', !0) : ''), - (_ = Object.create(e, { parent: { value: _ } })); + function c(e) { + (M += e.className ? a(e.className, '', !0) : ''), + (y = Object.create(e, { parent: { value: y } })); } function f(e) { var t = e[0], @@ -206574,11 +207153,11 @@ object-assign : (n.excludeBegin && (k += t), s(), n.returnBegin || n.excludeBegin || (k = t)), - u(n), + c(n), n.returnBegin ? 0 : t.length ); } - function d(e) { + function p(e) { var t = e[0], n = (function e(t, n) { if ( @@ -206591,115 +207170,115 @@ object-assign return t; } if (t.endsWithParent) return e(t.parent, n); - })(_, t); + })(y, t); if (n) { - var r = _; + var r = y; r.skip ? (k += t) : (r.returnEnd || r.excludeEnd || (k += t), s(), r.excludeEnd && (k = t)); do { - _.className && (w += ''), - _.skip || _.subLanguage || (S += _.relevance), - (_ = _.parent); - } while (_ !== n.parent); + y.className && (M += u), + y.skip || y.subLanguage || (S += y.relevance), + (y = y.parent); + } while (y !== n.parent); return ( n.starts && - (n.endSameAsBegin && (n.starts.endRe = n.endRe), u(n.starts)), + (n.endSameAsBegin && (n.starts.endRe = n.endRe), c(n.starts)), r.returnEnd ? 0 : t.length ); } } - var p = {}; - function h(e, r) { + var h = {}; + function g(e, r) { var o = r && r[0]; if (((k += e), null == o)) return s(), 0; if ( - 'begin' == p.type && + 'begin' == h.type && 'end' == r.type && - p.index == r.index && + h.index == r.index && '' === o ) return (k += t.slice(r.index, r.index + 1)), 1; - if (((p = r), 'begin' === r.type)) return f(r); + if (((h = r), 'begin' === r.type)) return f(r); if ('illegal' === r.type && !n) throw new Error( 'Illegal lexeme "' + o + '" for mode "' + - (_.className || '') + + (y.className || '') + '"' ); if ('end' === r.type) { - var i = d(r); + var i = p(r); if (null != i) return i; } return (k += o), o.length; } - var g = M(e); - if (!g) throw new Error('Unknown language: "' + e + '"'); - b(g); - var m, - _ = o || g, - x = {}, - w = ''; - for (m = _; m !== g; m = m.parent) - m.className && (w = a(m.className, '', !0) + w); + var m = O(e); + if (!m) throw new Error('Unknown language: "' + e + '"'); + _(m); + var b, + y = r || m, + v = {}, + M = ''; + for (b = y; b !== m; b = b.parent) + b.className && (M = a(b.className, '', !0) + M); var k = '', S = 0; try { for ( - var A, O, E = 0; - (_.terminators.lastIndex = E), (A = _.terminators.exec(t)); + var E, A, T = 0; + (y.terminators.lastIndex = T), (E = y.terminators.exec(t)); ) - (O = h(t.substring(E, A.index), A)), (E = A.index + O); - for (h(t.substr(E)), m = _; m.parent; m = m.parent) - m.className && (w += ''); - return { relevance: S, value: w, illegal: !1, language: e, top: _ }; + (A = g(t.substring(T, E.index), E)), (T = E.index + A); + for (g(t.substr(T)), b = y; b.parent; b = b.parent) + b.className && (M += u); + return { relevance: S, value: M, illegal: !1, language: e, top: y }; } catch (e) { if (e.message && -1 !== e.message.indexOf('Illegal')) - return { illegal: !0, relevance: 0, value: l(t) }; + return { illegal: !0, relevance: 0, value: d(t) }; throw e; } } - function v(e, t) { - t = t || c.languages || n(r); - var o = { relevance: 0, value: l(e) }, - i = o; + function x(e, t) { + t = t || l.languages || r(o); + var n = { relevance: 0, value: d(e) }, + i = n; return ( t - .filter(M) - .filter(k) + .filter(O) + .filter(E) .forEach(function(t) { - var n = y(t, e, !1); - (n.language = t), - n.relevance > i.relevance && (i = n), - n.relevance > o.relevance && ((i = o), (o = n)); + var r = w(t, e, !1); + (r.language = t), + r.relevance > i.relevance && (i = r), + r.relevance > n.relevance && ((i = n), (n = r)); }), - i.language && (o.second_best = i), - o + i.language && (n.second_best = i), + n ); } - function _(e) { - return c.tabReplace || c.useBR - ? e.replace(s, function(e, t) { - return c.useBR && '\n' === e + function M(e) { + return l.tabReplace || l.useBR + ? e.replace(c, function(e, t) { + return l.useBR && '\n' === e ? '
' - : c.tabReplace - ? t.replace(/\t/g, c.tabReplace) + : l.tabReplace + ? t.replace(/\t/g, l.tabReplace) : ''; }) : e; } - function x(e) { - var n, + function k(e) { + var t, r, - i, - s, - u, - p = (function(e) { + o, + a, + c, + u = (function(e) { var t, n, r, @@ -206707,56 +207286,56 @@ object-assign i = e.className + ' '; if ( ((i += e.parentNode ? e.parentNode.className : ''), - (n = a.exec(i))) + (n = s.exec(i))) ) - return M(n[1]) ? n[1] : 'no-highlight'; + return O(n[1]) ? n[1] : 'no-highlight'; for (t = 0, r = (i = i.split(/\s+/)).length; t < r; t++) - if (d((o = i[t])) || M(o)) return o; + if (h((o = i[t])) || O(o)) return o; })(e); - d(p) || - (c.useBR - ? ((n = document.createElementNS( + h(u) || + (l.useBR + ? ((t = document.createElementNS( 'http://www.w3.org/1999/xhtml', 'div' )).innerHTML = e.innerHTML .replace(/\n/g, '') .replace(//g, '\n')) - : (n = e), - (u = n.textContent), - (i = p ? y(p, u, !0) : v(u)), - (r = h(n)).length && - (((s = document.createElementNS( + : (t = e), + (c = t.textContent), + (o = u ? w(u, c, !0) : x(c)), + (r = m(t)).length && + (((a = document.createElementNS( 'http://www.w3.org/1999/xhtml', 'div' - )).innerHTML = i.value), - (i.value = (function(e, n, r) { + )).innerHTML = o.value), + (o.value = (function(e, t, r) { var o = 0, i = '', a = []; function s() { - return e.length && n.length - ? e[0].offset !== n[0].offset - ? e[0].offset < n[0].offset + return e.length && t.length + ? e[0].offset !== t[0].offset + ? e[0].offset < t[0].offset ? e - : n - : 'start' === n[0].event + : t + : 'start' === t[0].event ? e - : n + : t : e.length ? e - : n; + : t; } function c(e) { i += '<' + - f(e) + - t.map + p(e) + + n.map .call(e.attributes, function(e) { return ( ' ' + e.nodeName + '="' + - l(e.value).replace('"', '"') + + d(e.value).replace('"', '"') + '"' ); }) @@ -206764,88 +207343,89 @@ object-assign '>'; } function u(e) { - i += ''; + i += ''; } - function d(e) { + function l(e) { ('start' === e.event ? c : u)(e.node); } - for (; e.length || n.length; ) { - var p = s(); + for (; e.length || t.length; ) { + var f = s(); if ( - ((i += l(r.substring(o, p[0].offset))), - (o = p[0].offset), - p === e) + ((i += d(r.substring(o, f[0].offset))), + (o = f[0].offset), + f === e) ) { a.reverse().forEach(u); do { - d(p.splice(0, 1)[0]), (p = s()); - } while (p === e && p.length && p[0].offset === o); + l(f.splice(0, 1)[0]), (f = s()); + } while (f === e && f.length && f[0].offset === o); a.reverse().forEach(c); } else - 'start' === p[0].event ? a.push(p[0].node) : a.pop(), - d(p.splice(0, 1)[0]); + 'start' === f[0].event ? a.push(f[0].node) : a.pop(), + l(f.splice(0, 1)[0]); } - return i + l(r.substr(o)); - })(r, h(s), u))), - (i.value = _(i.value)), - (e.innerHTML = i.value), + return i + d(r.substr(o)); + })(r, m(a), c))), + (o.value = M(o.value)), + (e.innerHTML = o.value), (e.className = (function(e, t, n) { - var r = t ? o[t] : n, - i = [e.trim()]; + var r = t ? i[t] : n, + o = [e.trim()]; return ( - e.match(/\bhljs\b/) || i.push('hljs'), - -1 === e.indexOf(r) && i.push(r), - i.join(' ').trim() + e.match(/\bhljs\b/) || o.push('hljs'), + -1 === e.indexOf(r) && o.push(r), + o.join(' ').trim() ); - })(e.className, p, i.language)), - (e.result = { language: i.language, re: i.relevance }), - i.second_best && + })(e.className, u, o.language)), + (e.result = { language: o.language, re: o.relevance }), + o.second_best && (e.second_best = { - language: i.second_best.language, - re: i.second_best.relevance + language: o.second_best.language, + re: o.second_best.relevance })); } - function w() { - if (!w.called) { - w.called = !0; + function S() { + if (!S.called) { + S.called = !0; var e = document.querySelectorAll('pre code'); - t.forEach.call(e, x); + n.forEach.call(e, k); } } - function M(e) { - return (e = (e || '').toLowerCase()), r[e] || r[o[e]]; + function O(e) { + return (e = (e || '').toLowerCase()), o[e] || o[i[e]]; } - function k(e) { - var t = M(e); + function E(e) { + var t = O(e); return t && !t.disableAutodetect; } return ( - (e.highlight = y), - (e.highlightAuto = v), - (e.fixMarkup = _), - (e.highlightBlock = x), + (e.highlight = w), + (e.highlightAuto = x), + (e.fixMarkup = M), + (e.highlightBlock = k), (e.configure = function(e) { - c = p(c, e); + l = g(l, e); }), - (e.initHighlighting = w), + (e.initHighlighting = S), (e.initHighlightingOnLoad = function() { - addEventListener('DOMContentLoaded', w, !1), - addEventListener('load', w, !1); + addEventListener('DOMContentLoaded', S, !1), + addEventListener('load', S, !1); }), (e.registerLanguage = function(t, n) { - var i = (r[t] = n(e)); - (i.rawDefinition = n.bind(null, e)), - i.aliases && - i.aliases.forEach(function(e) { - o[e] = t; + var r = (o[t] = n(e)); + y(r), + (r.rawDefinition = n.bind(null, e)), + r.aliases && + r.aliases.forEach(function(e) { + i[e] = t; }); }), (e.listLanguages = function() { - return n(r); + return r(o); }), - (e.getLanguage = M), - (e.autoDetection = k), - (e.inherit = p), + (e.getLanguage = O), + (e.autoDetection = E), + (e.inherit = g), (e.IDENT_RE = '[a-zA-Z]\\w*'), (e.UNDERSCORE_IDENT_RE = '[a-zA-Z_]\\w*'), (e.NUMBER_RE = '\\b\\d+(\\.\\d+)?'), @@ -206958,7 +207538,7 @@ object-assign }, function(e, t, n) { 'use strict'; - var r = n(693), + var r = n(737), o = i(Error); function i(e) { return (t.displayName = e.displayName || e.name), t; @@ -207016,10 +207596,9 @@ object-assign u += parseInt(d(), 10).toString(2); break; case 'c': - u += - 'string' == typeof (n = d()) || n instanceof String - ? n - : String.fromCharCode(parseInt(n, 10)); + 'string' == typeof (n = d()) || n instanceof String + ? (u += n) + : (u += String.fromCharCode(parseInt(n, 10))); break; case 'd': u += parseInt(d(), 10); @@ -207162,28 +207741,28 @@ object-assign }; }, function(e, t, n) { - var r = n(697); + var r = n(741); 'string' == typeof r && (r = [[e.i, r, '']]); var o = { hmr: !0, transform: void 0, insertInto: void 0 }; - n(57)(r, o); + n(69)(r, o); r.locals && (e.exports = r.locals); }, function(e, t, n) { - (e.exports = n(56)(!1)).push([ + (e.exports = n(68)(!1)).push([ e.i, '.react-grid-layout{position:relative;transition:height .2s ease}.react-grid-item{transition:all .2s ease;transition-property:left,top}.react-grid-item.cssTransforms{transition-property:transform}.react-grid-item.resizing{z-index:1;will-change:width,height}.react-grid-item.react-draggable-dragging{transition:none;z-index:3;will-change:transform}.react-grid-item.dropping{visibility:hidden}.react-grid-item.react-grid-placeholder{background:red;opacity:.2;transition-duration:.1s;z-index:2;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.react-grid-item>.react-resizable-handle{position:absolute;width:20px;height:20px;bottom:0;right:0;cursor:se-resize}.react-grid-item>.react-resizable-handle:after{content:"";position:absolute;right:3px;bottom:3px;width:5px;height:5px;border-right:2px solid rgba(0,0,0,.4);border-bottom:2px solid rgba(0,0,0,.4)}', '' ]); }, function(e, t, n) { - var r = n(699); + var r = n(743); 'string' == typeof r && (r = [[e.i, r, '']]); var o = { hmr: !0, transform: void 0, insertInto: void 0 }; - n(57)(r, o); + n(69)(r, o); r.locals && (e.exports = r.locals); }, function(e, t, n) { - (e.exports = n(56)(!1)).push([ + (e.exports = n(68)(!1)).push([ e.i, '.react-resizable{position:relative}.react-resizable-handle{position:absolute;width:20px;height:20px;background-repeat:no-repeat;background-origin:content-box;box-sizing:border-box;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+");background-position:100% 100%;padding:0 3px 3px 0}.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-resizable-handle-e,.react-resizable-handle-w{top:50%;margin-top:-10px;cursor:ew-resize}.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-resizable-handle-n,.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}', '' @@ -207191,260 +207770,260 @@ object-assign }, function(e, t, n) { var r = { - './af': 241, - './af.js': 241, - './ar': 242, - './ar-dz': 243, - './ar-dz.js': 243, - './ar-kw': 244, - './ar-kw.js': 244, - './ar-ly': 245, - './ar-ly.js': 245, - './ar-ma': 246, - './ar-ma.js': 246, - './ar-sa': 247, - './ar-sa.js': 247, - './ar-tn': 248, - './ar-tn.js': 248, - './ar.js': 242, - './az': 249, - './az.js': 249, - './be': 250, - './be.js': 250, - './bg': 251, - './bg.js': 251, - './bm': 252, - './bm.js': 252, - './bn': 253, - './bn.js': 253, - './bo': 254, - './bo.js': 254, - './br': 255, - './br.js': 255, - './bs': 256, - './bs.js': 256, - './ca': 257, - './ca.js': 257, - './cs': 258, - './cs.js': 258, - './cv': 259, - './cv.js': 259, - './cy': 260, - './cy.js': 260, - './da': 261, - './da.js': 261, - './de': 262, - './de-at': 263, - './de-at.js': 263, - './de-ch': 264, - './de-ch.js': 264, - './de.js': 262, - './dv': 265, - './dv.js': 265, - './el': 266, - './el.js': 266, - './en-SG': 267, - './en-SG.js': 267, - './en-au': 268, - './en-au.js': 268, - './en-ca': 269, - './en-ca.js': 269, - './en-gb': 270, - './en-gb.js': 270, - './en-ie': 271, - './en-ie.js': 271, - './en-il': 272, - './en-il.js': 272, - './en-nz': 273, - './en-nz.js': 273, - './eo': 274, - './eo.js': 274, - './es': 275, - './es-do': 276, - './es-do.js': 276, - './es-us': 277, - './es-us.js': 277, - './es.js': 275, - './et': 278, - './et.js': 278, - './eu': 279, - './eu.js': 279, - './fa': 280, - './fa.js': 280, - './fi': 281, - './fi.js': 281, - './fo': 282, - './fo.js': 282, - './fr': 283, - './fr-ca': 284, - './fr-ca.js': 284, - './fr-ch': 285, - './fr-ch.js': 285, - './fr.js': 283, - './fy': 286, - './fy.js': 286, - './ga': 287, - './ga.js': 287, - './gd': 288, - './gd.js': 288, - './gl': 289, - './gl.js': 289, - './gom-latn': 290, - './gom-latn.js': 290, - './gu': 291, - './gu.js': 291, - './he': 292, - './he.js': 292, - './hi': 293, - './hi.js': 293, - './hr': 294, - './hr.js': 294, - './hu': 295, - './hu.js': 295, - './hy-am': 296, - './hy-am.js': 296, - './id': 297, - './id.js': 297, - './is': 298, - './is.js': 298, - './it': 299, - './it-ch': 300, - './it-ch.js': 300, - './it.js': 299, - './ja': 301, - './ja.js': 301, - './jv': 302, - './jv.js': 302, - './ka': 303, - './ka.js': 303, - './kk': 304, - './kk.js': 304, - './km': 305, - './km.js': 305, - './kn': 306, - './kn.js': 306, - './ko': 307, - './ko.js': 307, - './ku': 308, - './ku.js': 308, - './ky': 309, - './ky.js': 309, - './lb': 310, - './lb.js': 310, - './lo': 311, - './lo.js': 311, - './lt': 312, - './lt.js': 312, - './lv': 313, - './lv.js': 313, - './me': 314, - './me.js': 314, - './mi': 315, - './mi.js': 315, - './mk': 316, - './mk.js': 316, - './ml': 317, - './ml.js': 317, - './mn': 318, - './mn.js': 318, - './mr': 319, - './mr.js': 319, - './ms': 320, - './ms-my': 321, - './ms-my.js': 321, - './ms.js': 320, - './mt': 322, - './mt.js': 322, - './my': 323, - './my.js': 323, - './nb': 324, - './nb.js': 324, - './ne': 325, - './ne.js': 325, - './nl': 326, - './nl-be': 327, - './nl-be.js': 327, - './nl.js': 326, - './nn': 328, - './nn.js': 328, - './pa-in': 329, - './pa-in.js': 329, - './pl': 330, - './pl.js': 330, - './pt': 331, - './pt-br': 332, - './pt-br.js': 332, - './pt.js': 331, - './ro': 333, - './ro.js': 333, - './ru': 334, - './ru.js': 334, - './sd': 335, - './sd.js': 335, - './se': 336, - './se.js': 336, - './si': 337, - './si.js': 337, - './sk': 338, - './sk.js': 338, - './sl': 339, - './sl.js': 339, - './sq': 340, - './sq.js': 340, - './sr': 341, - './sr-cyrl': 342, - './sr-cyrl.js': 342, - './sr.js': 341, - './ss': 343, - './ss.js': 343, - './sv': 344, - './sv.js': 344, - './sw': 345, - './sw.js': 345, - './ta': 346, - './ta.js': 346, - './te': 347, - './te.js': 347, - './tet': 348, - './tet.js': 348, - './tg': 349, - './tg.js': 349, - './th': 350, - './th.js': 350, - './tl-ph': 351, - './tl-ph.js': 351, - './tlh': 352, - './tlh.js': 352, - './tr': 353, - './tr.js': 353, - './tzl': 354, - './tzl.js': 354, - './tzm': 355, - './tzm-latn': 356, - './tzm-latn.js': 356, - './tzm.js': 355, - './ug-cn': 357, - './ug-cn.js': 357, - './uk': 358, - './uk.js': 358, - './ur': 359, - './ur.js': 359, - './uz': 360, - './uz-latn': 361, - './uz-latn.js': 361, - './uz.js': 360, - './vi': 362, - './vi.js': 362, - './x-pseudo': 363, - './x-pseudo.js': 363, - './yo': 364, - './yo.js': 364, - './zh-cn': 365, - './zh-cn.js': 365, - './zh-hk': 366, - './zh-hk.js': 366, - './zh-tw': 367, - './zh-tw.js': 367 + './af': 263, + './af.js': 263, + './ar': 264, + './ar-dz': 265, + './ar-dz.js': 265, + './ar-kw': 266, + './ar-kw.js': 266, + './ar-ly': 267, + './ar-ly.js': 267, + './ar-ma': 268, + './ar-ma.js': 268, + './ar-sa': 269, + './ar-sa.js': 269, + './ar-tn': 270, + './ar-tn.js': 270, + './ar.js': 264, + './az': 271, + './az.js': 271, + './be': 272, + './be.js': 272, + './bg': 273, + './bg.js': 273, + './bm': 274, + './bm.js': 274, + './bn': 275, + './bn.js': 275, + './bo': 276, + './bo.js': 276, + './br': 277, + './br.js': 277, + './bs': 278, + './bs.js': 278, + './ca': 279, + './ca.js': 279, + './cs': 280, + './cs.js': 280, + './cv': 281, + './cv.js': 281, + './cy': 282, + './cy.js': 282, + './da': 283, + './da.js': 283, + './de': 284, + './de-at': 285, + './de-at.js': 285, + './de-ch': 286, + './de-ch.js': 286, + './de.js': 284, + './dv': 287, + './dv.js': 287, + './el': 288, + './el.js': 288, + './en-SG': 289, + './en-SG.js': 289, + './en-au': 290, + './en-au.js': 290, + './en-ca': 291, + './en-ca.js': 291, + './en-gb': 292, + './en-gb.js': 292, + './en-ie': 293, + './en-ie.js': 293, + './en-il': 294, + './en-il.js': 294, + './en-nz': 295, + './en-nz.js': 295, + './eo': 296, + './eo.js': 296, + './es': 297, + './es-do': 298, + './es-do.js': 298, + './es-us': 299, + './es-us.js': 299, + './es.js': 297, + './et': 300, + './et.js': 300, + './eu': 301, + './eu.js': 301, + './fa': 302, + './fa.js': 302, + './fi': 303, + './fi.js': 303, + './fo': 304, + './fo.js': 304, + './fr': 305, + './fr-ca': 306, + './fr-ca.js': 306, + './fr-ch': 307, + './fr-ch.js': 307, + './fr.js': 305, + './fy': 308, + './fy.js': 308, + './ga': 309, + './ga.js': 309, + './gd': 310, + './gd.js': 310, + './gl': 311, + './gl.js': 311, + './gom-latn': 312, + './gom-latn.js': 312, + './gu': 313, + './gu.js': 313, + './he': 314, + './he.js': 314, + './hi': 315, + './hi.js': 315, + './hr': 316, + './hr.js': 316, + './hu': 317, + './hu.js': 317, + './hy-am': 318, + './hy-am.js': 318, + './id': 319, + './id.js': 319, + './is': 320, + './is.js': 320, + './it': 321, + './it-ch': 322, + './it-ch.js': 322, + './it.js': 321, + './ja': 323, + './ja.js': 323, + './jv': 324, + './jv.js': 324, + './ka': 325, + './ka.js': 325, + './kk': 326, + './kk.js': 326, + './km': 327, + './km.js': 327, + './kn': 328, + './kn.js': 328, + './ko': 329, + './ko.js': 329, + './ku': 330, + './ku.js': 330, + './ky': 331, + './ky.js': 331, + './lb': 332, + './lb.js': 332, + './lo': 333, + './lo.js': 333, + './lt': 334, + './lt.js': 334, + './lv': 335, + './lv.js': 335, + './me': 336, + './me.js': 336, + './mi': 337, + './mi.js': 337, + './mk': 338, + './mk.js': 338, + './ml': 339, + './ml.js': 339, + './mn': 340, + './mn.js': 340, + './mr': 341, + './mr.js': 341, + './ms': 342, + './ms-my': 343, + './ms-my.js': 343, + './ms.js': 342, + './mt': 344, + './mt.js': 344, + './my': 345, + './my.js': 345, + './nb': 346, + './nb.js': 346, + './ne': 347, + './ne.js': 347, + './nl': 348, + './nl-be': 349, + './nl-be.js': 349, + './nl.js': 348, + './nn': 350, + './nn.js': 350, + './pa-in': 351, + './pa-in.js': 351, + './pl': 352, + './pl.js': 352, + './pt': 353, + './pt-br': 354, + './pt-br.js': 354, + './pt.js': 353, + './ro': 355, + './ro.js': 355, + './ru': 356, + './ru.js': 356, + './sd': 357, + './sd.js': 357, + './se': 358, + './se.js': 358, + './si': 359, + './si.js': 359, + './sk': 360, + './sk.js': 360, + './sl': 361, + './sl.js': 361, + './sq': 362, + './sq.js': 362, + './sr': 363, + './sr-cyrl': 364, + './sr-cyrl.js': 364, + './sr.js': 363, + './ss': 365, + './ss.js': 365, + './sv': 366, + './sv.js': 366, + './sw': 367, + './sw.js': 367, + './ta': 368, + './ta.js': 368, + './te': 369, + './te.js': 369, + './tet': 370, + './tet.js': 370, + './tg': 371, + './tg.js': 371, + './th': 372, + './th.js': 372, + './tl-ph': 373, + './tl-ph.js': 373, + './tlh': 374, + './tlh.js': 374, + './tr': 375, + './tr.js': 375, + './tzl': 376, + './tzl.js': 376, + './tzm': 377, + './tzm-latn': 378, + './tzm-latn.js': 378, + './tzm.js': 377, + './ug-cn': 379, + './ug-cn.js': 379, + './uk': 380, + './uk.js': 380, + './ur': 381, + './ur.js': 381, + './uz': 382, + './uz-latn': 383, + './uz-latn.js': 383, + './uz.js': 382, + './vi': 384, + './vi.js': 384, + './x-pseudo': 385, + './x-pseudo.js': 385, + './yo': 386, + './yo.js': 386, + './zh-cn': 387, + './zh-cn.js': 387, + './zh-hk': 388, + './zh-hk.js': 388, + './zh-tw': 389, + './zh-tw.js': 389 }; function o(e) { var t = i(e); @@ -207462,7 +208041,7 @@ object-assign }), (o.resolve = i), (e.exports = o), - (o.id = 700); + (o.id = 744); }, function(e, t, n) { var r; @@ -207977,21 +208556,8 @@ object-assign function r(e) { return e && e.__esModule ? e : { default: e }; } - function o(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function i(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } Object.defineProperty(t, '__esModule', { value: !0 }); - var a = + var o = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { @@ -208002,7 +208568,7 @@ object-assign } return e; }, - s = (function() { + i = (function() { function e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; @@ -208016,13 +208582,27 @@ object-assign return n && e(t.prototype, n), r && e(t, r), t; }; })(), - c = r(n(0)), - u = r(n(1)), - l = (function(e) { + a = r(n(0)), + s = r(n(1)), + c = (function(e) { function t() { return ( - o(this, t), - i( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( this, (t.__proto__ || Object.getPrototypeOf(t)).apply( this, @@ -208051,7 +208631,7 @@ object-assign ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), - s(t, [ + i(t, [ { key: 'render', value: function() { @@ -208060,11 +208640,11 @@ object-assign n = e.displayDataTypes, r = e.theme; return n - ? c.default.createElement( + ? a.default.createElement( 'span', - a( + o( { className: 'data-type-label' }, - (0, u.default)(r, 'data-type-label') + (0, s.default)(r, 'data-type-label') ), t ) @@ -208074,8 +208654,8 @@ object-assign ]), t ); - })(c.default.PureComponent); - t.default = l; + })(a.default.PureComponent); + t.default = c; }, function(e, t) { var n = {}.hasOwnProperty; @@ -208150,10 +208730,6 @@ object-assign return Array.from(e); } function o(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function i(e, t) { if (!e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" @@ -208163,7 +208739,7 @@ object-assign : t; } Object.defineProperty(t, '__esModule', { value: !0 }); - var a = + var i = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { @@ -208174,93 +208750,98 @@ object-assign } return e; }, - s = n(161), - c = (function(e) { + a = n(161), + s = (function(e) { return e && e.__esModule ? e : { default: e }; })(n(14)), - u = n(4), - l = new ((function(e) { + c = n(4), + u = new ((function(e) { function t() { - var e, n, s; - o(this, t); + var e, n, a; + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t); for ( - var c = arguments.length, l = Array(c), f = 0; - f < c; - f++ + var s = arguments.length, u = Array(s), l = 0; + l < s; + l++ ) - l[f] = arguments[f]; + u[l] = arguments[l]; return ( - (n = s = i( + (n = a = o( this, (e = t.__proto__ || Object.getPrototypeOf(t)).call.apply( e, - [this].concat(l) + [this].concat(u) ) )), - (s.objects = {}), - (s.set = function(e, t, n, r) { - void 0 === s.objects[e] && (s.objects[e] = {}), - void 0 === s.objects[e][t] && (s.objects[e][t] = {}), - (s.objects[e][t][n] = r); + (a.objects = {}), + (a.set = function(e, t, n, r) { + void 0 === a.objects[e] && (a.objects[e] = {}), + void 0 === a.objects[e][t] && (a.objects[e][t] = {}), + (a.objects[e][t][n] = r); }), - (s.get = function(e, t, n, r) { - return void 0 === s.objects[e] || - void 0 === s.objects[e][t] || - null == s.objects[e][t][n] + (a.get = function(e, t, n, r) { + return void 0 === a.objects[e] || + void 0 === a.objects[e][t] || + null == a.objects[e][t][n] ? r - : s.objects[e][t][n]; + : a.objects[e][t][n]; }), - (s.handleAction = function(e) { + (a.handleAction = function(e) { var t = e.rjvId, n = e.data; switch (e.name) { case 'RESET': - s.emit('reset-' + t); + a.emit('reset-' + t); break; case 'VARIABLE_UPDATED': - (e.data.updated_src = s.updateSrc(t, n)), - s.set( + (e.data.updated_src = a.updateSrc(t, n)), + a.set( t, 'action', 'variable-update', - a({}, n, { type: 'variable-edited' }) + i({}, n, { type: 'variable-edited' }) ), - s.emit('variable-update-' + t); + a.emit('variable-update-' + t); break; case 'VARIABLE_REMOVED': - (e.data.updated_src = s.updateSrc(t, n)), - s.set( + (e.data.updated_src = a.updateSrc(t, n)), + a.set( t, 'action', 'variable-update', - a({}, n, { type: 'variable-removed' }) + i({}, n, { type: 'variable-removed' }) ), - s.emit('variable-update-' + t); + a.emit('variable-update-' + t); break; case 'VARIABLE_ADDED': - (e.data.updated_src = s.updateSrc(t, n)), - s.set( + (e.data.updated_src = a.updateSrc(t, n)), + a.set( t, 'action', 'variable-update', - a({}, n, { type: 'variable-added' }) + i({}, n, { type: 'variable-added' }) ), - s.emit('variable-update-' + t); + a.emit('variable-update-' + t); break; case 'ADD_VARIABLE_KEY_REQUEST': - s.set(t, 'action', 'new-key-request', n), - s.emit('add-key-request-' + t); + a.set(t, 'action', 'new-key-request', n), + a.emit('add-key-request-' + t); } }), - (s.updateSrc = function(e, t) { + (a.updateSrc = function(e, t) { var n = t.name, o = t.namespace, i = t.new_value, - a = (t.existing_value, t.variable_removed); + s = (t.existing_value, t.variable_removed); o.shift(); - var c = s.get(e, 'global', 'src'), - l = s.deepCopy(c, [].concat(r(o))), + var u = a.get(e, 'global', 'src'), + l = a.deepCopy(u, [].concat(r(o))), f = l, d = !0, p = !1, @@ -208282,30 +208863,30 @@ object-assign } } return ( - a - ? 'array' == (0, u.toType)(f) + s + ? 'array' == (0, c.toType)(f) ? f.splice(n, 1) : delete f[n] : null !== n ? (f[n] = i) : (l = i), - s.set(e, 'global', 'src', l), + a.set(e, 'global', 'src', l), l ); }), - (s.deepCopy = function(e, t) { - var n = (0, u.toType)(e), + (a.deepCopy = function(e, t) { + var n = (0, c.toType)(e), o = void 0, - i = t.shift(); + s = t.shift(); return ( 'array' == n ? (o = [].concat(r(e))) - : 'object' == n && (o = a({}, e)), - void 0 !== i && (o[i] = s.deepCopy(e[i], t)), + : 'object' == n && (o = i({}, e)), + void 0 !== s && (o[s] = a.deepCopy(e[s], t)), o ); }), - i(s, n) + o(a, n) ); } return ( @@ -208330,13 +208911,13 @@ object-assign })(t, e), t ); - })(s.EventEmitter))(); - c.default.register(l.handleAction.bind(l)), (t.default = l); + })(a.EventEmitter))(); + s.default.register(u.handleAction.bind(u)), (t.default = u); }, function(e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }); - var r = new (n(162).Dispatcher)(); + var r = new (n(162)).Dispatcher(); t.default = r; }, function(e, t, n) { @@ -209855,7 +210436,7 @@ object-assign var y, v, _, - x = function(e) { + w = function(e) { if (!d && e in S) return S[e]; switch (e) { case 'keys': @@ -209868,36 +210449,36 @@ object-assign return new n(this, e); }; }, - w = t + ' Iterator', + x = t + ' Iterator', M = 'values' == g, k = !1, S = e.prototype, - A = S[f] || S['@@iterator'] || (g && S[g]), - O = A || x(g), - E = g ? (M ? x('entries') : O) : void 0, - T = ('Array' == t && S.entries) || A; + O = S[f] || S['@@iterator'] || (g && S[g]), + E = O || w(g), + A = g ? (M ? w('entries') : E) : void 0, + T = ('Array' == t && S.entries) || O; if ( (T && (_ = l(T.call(new e()))) !== Object.prototype && _.next && - (u(_, w, !0), r || 'function' == typeof _[f] || a(_, f, p)), + (u(_, x, !0), r || 'function' == typeof _[f] || a(_, f, p)), M && - A && - 'values' !== A.name && + O && + 'values' !== O.name && ((k = !0), - (O = function() { - return A.call(this); + (E = function() { + return O.call(this); })), - (r && !b) || (!d && !k && S[f]) || a(S, f, O), - (s[t] = O), - (s[w] = p), + (r && !b) || (!d && !k && S[f]) || a(S, f, E), + (s[t] = E), + (s[x] = p), g) ) if ( ((y = { - values: M ? O : x('values'), - keys: m ? O : x('keys'), - entries: E + values: M ? E : w('values'), + keys: m ? E : w('keys'), + entries: A }), b) ) @@ -210281,10 +210862,6 @@ object-assign return Array.from(e); } function i(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function a(e, t) { if (!e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" @@ -210294,7 +210871,7 @@ object-assign : t; } Object.defineProperty(t, '__esModule', { value: !0 }); - var s = + var a = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { @@ -210305,29 +210882,34 @@ object-assign } return e; }, - c = r(n(0)), - u = r(n(14)), - l = r(n(55)), - f = n(4), - d = n(15), - p = r(n(1)), - h = (function(e) { + s = r(n(0)), + c = r(n(14)), + u = r(n(55)), + l = n(4), + f = n(15), + d = r(n(1)), + p = (function(e) { function t() { var e, n, r; - i(this, t); + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t); for ( - var h = arguments.length, g = Array(h), m = 0; - m < h; - m++ + var p = arguments.length, h = Array(p), g = 0; + g < p; + g++ ) - g[m] = arguments[m]; + h[g] = arguments[g]; return ( - (n = r = a( + (n = r = i( this, (e = t.__proto__ || Object.getPrototypeOf(t)).call.apply( e, - [this].concat(g) + [this].concat(h) ) )), (r.getObjectSize = function() { @@ -210335,11 +210917,11 @@ object-assign t = e.size, n = e.theme; if (e.displayObjectSize) - return c.default.createElement( + return s.default.createElement( 'span', - s( + a( { className: 'object-size' }, - (0, p.default)(n, 'object-size') + (0, d.default)(n, 'object-size') ), t, ' item', @@ -210351,40 +210933,40 @@ object-assign t = e.theme, n = e.namespace, i = e.name, - a = e.src, - l = e.rjvId, + u = e.src, + p = e.rjvId, h = e.depth; - return c.default.createElement( + return s.default.createElement( 'span', { className: 'click-to-add', style: { verticalAlign: 'top' } }, - c.default.createElement( - d.AddCircle, - s( + s.default.createElement( + f.AddCircle, + a( { className: 'click-to-add-icon' }, - (0, p.default)(t, 'addVarIcon'), + (0, d.default)(t, 'addVarIcon'), { onClick: function() { var e = { name: h > 0 ? i : null, namespace: n.splice(0, n.length - 1), - existing_value: a, + existing_value: u, variable_removed: !1, key_name: null }; - 'object' === (0, f.toType)(a) - ? u.default.dispatch({ + 'object' === (0, l.toType)(u) + ? c.default.dispatch({ name: 'ADD_VARIABLE_KEY_REQUEST', - rjvId: l, + rjvId: p, data: e }) - : u.default.dispatch({ + : c.default.dispatch({ name: 'VARIABLE_ADDED', - rjvId: l, - data: s({}, e, { - new_value: [].concat(o(a), [null]) + rjvId: p, + data: a({}, e, { + new_value: [].concat(o(u), [null]) }) }); } @@ -210399,21 +210981,21 @@ object-assign n = (e.hover, e.namespace), o = e.name, i = e.src, - a = e.rjvId; + u = e.rjvId; if (1 !== n.length) - return c.default.createElement( + return s.default.createElement( 'span', { className: 'click-to-remove' }, - c.default.createElement( - d.RemoveCircle, - s( + s.default.createElement( + f.RemoveCircle, + a( { className: 'click-to-remove-icon' }, - (0, p.default)(t, 'removeVarIcon'), + (0, d.default)(t, 'removeVarIcon'), { onClick: function() { - u.default.dispatch({ + c.default.dispatch({ name: 'VARIABLE_REMOVED', - rjvId: a, + rjvId: u, data: { name: o, namespace: n.splice(0, n.length - 1), @@ -210433,11 +211015,11 @@ object-assign n = e.onDelete, o = e.onAdd, i = e.enableClipboard, - a = e.src, - u = e.namespace; - return c.default.createElement( + c = e.src, + l = e.namespace; + return s.default.createElement( 'div', - s({}, (0, p.default)(t, 'object-meta-data'), { + a({}, (0, d.default)(t, 'object-meta-data'), { className: 'object-meta-data', onClick: function(e) { e.stopPropagation(); @@ -210445,11 +211027,11 @@ object-assign }), r.getObjectSize(), i - ? c.default.createElement( - l.default, - s( + ? s.default.createElement( + u.default, + a( { clickCallback: i }, - { src: a, theme: t, namespace: u } + { src: c, theme: t, namespace: l } ) ) : null, @@ -210457,7 +211039,7 @@ object-assign !1 !== n ? r.getRemoveObject() : null ); }), - a(r, n) + i(r, n) ); } return ( @@ -210482,8 +211064,8 @@ object-assign })(t, e), t ); - })(c.default.PureComponent); - t.default = h; + })(s.default.PureComponent); + t.default = p; }, function(e, t, n) { 'use strict'; @@ -211236,10 +211818,6 @@ object-assign return e && e.__esModule ? e : { default: e }; } function o(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function i(e, t) { if (!e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" @@ -211249,7 +211827,7 @@ object-assign : t; } Object.defineProperty(t, '__esModule', { value: !0 }); - var a = + var i = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { @@ -211260,54 +211838,59 @@ object-assign } return e; }, - s = r(n(0)), - c = r(n(25)), - u = r(n(57)), - l = (function(e) { + a = r(n(0)), + s = r(n(25)), + c = r(n(57)), + u = (function(e) { function t() { var e, n, r; - o(this, t); + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t); for ( - var l = arguments.length, f = Array(l), d = 0; - d < l; - d++ + var u = arguments.length, l = Array(u), f = 0; + f < u; + f++ ) - f[d] = arguments[d]; + l[f] = arguments[f]; return ( - (n = r = i( + (n = r = o( this, (e = t.__proto__ || Object.getPrototypeOf(t)).call.apply( e, - [this].concat(f) + [this].concat(l) ) )), (r.render = function() { var e = r.props, t = [e.name], - n = c.default; + n = s.default; return ( e.groupArraysAfterLength && e.src.length > e.groupArraysAfterLength && - (n = u.default), - s.default.createElement( + (n = c.default), + a.default.createElement( 'div', { className: 'pretty-json-container object-container' }, - s.default.createElement( + a.default.createElement( 'div', { className: 'object-content' }, - s.default.createElement( + a.default.createElement( n, - a({ namespace: t, depth: 0, jsvRoot: !0 }, e) + i({ namespace: t, depth: 0, jsvRoot: !0 }, e) ) ) ) ); }), - i(r, n) + o(r, n) ); } return ( @@ -211332,29 +211915,16 @@ object-assign })(t, e), t ); - })(s.default.PureComponent); - t.default = l; + })(a.default.PureComponent); + t.default = u; }, function(e, t, n) { 'use strict'; function r(e) { return e && e.__esModule ? e : { default: e }; } - function o(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function i(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } Object.defineProperty(t, '__esModule', { value: !0 }); - var a = + var o = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { @@ -211365,7 +211935,7 @@ object-assign } return e; }, - s = (function() { + i = (function() { function e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; @@ -211379,14 +211949,28 @@ object-assign return n && e(t.prototype, n), r && e(t, r), t; }; })(), - c = r(n(0)), - u = r(n(6)), - l = r(n(1)), - f = (function(e) { + a = r(n(0)), + s = r(n(6)), + c = r(n(1)), + u = (function(e) { function t() { return ( - o(this, t), - i( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( this, (t.__proto__ || Object.getPrototypeOf(t)).apply( this, @@ -211415,17 +211999,17 @@ object-assign ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), - s(t, [ + i(t, [ { key: 'render', value: function() { var e = this.props; - return c.default.createElement( + return a.default.createElement( 'div', - (0, l.default)(e.theme, 'boolean'), - c.default.createElement( - u.default, - a({ type_name: 'bool' }, e) + (0, c.default)(e.theme, 'boolean'), + a.default.createElement( + s.default, + o({ type_name: 'bool' }, e) ), e.value ? 'true' : 'false' ); @@ -211434,8 +212018,8 @@ object-assign ]), t ); - })(c.default.PureComponent); - t.default = f; + })(a.default.PureComponent); + t.default = u; }, function(e, t, n) { 'use strict'; @@ -211760,7 +212344,7 @@ object-assign u ); }, - x = (t.invertTheme = function(e) { + w = (t.invertTheme = function(e) { return (0, s.default)(e).reduce(function(t, n) { return ( (t[n] = /^base/.test(n) @@ -211772,7 +212356,7 @@ object-assign ); }, {}); }), - w = + x = ((t.createStyling = (0, c.default)(function(e) { for ( var t = arguments.length, @@ -211794,7 +212378,7 @@ object-assign l = void 0 === u ? h : u, f = o.base16Themes, d = void 0 === f ? null : f, - p = w(a, d); + p = x(a, d); p && (a = (0, i.default)({}, p, a)); var m = g.reduce(function(e, t) { return (e[t] = a[t] || l[t]), e; @@ -211803,8 +212387,8 @@ object-assign return -1 === g.indexOf(t) ? ((e[t] = a[t]), e) : e; }, {}), y = e(m), - x = v(b, y); - return (0, c.default)(_, 2).apply(void 0, [x].concat(n)); + w = v(b, y); + return (0, c.default)(_, 2).apply(void 0, [w].concat(n)); }, 3)), (t.getBase16Theme = function(e, t) { if ( @@ -211815,7 +212399,7 @@ object-assign o = r[0], i = r[1]; (e = (t || {})[o] || u[o]), - 'inverted' === i && (e = x(e)); + 'inverted' === i && (e = w(e)); } return e && e.hasOwnProperty('base00') ? e : void 0; })); @@ -212068,22 +212652,22 @@ object-assign y = n(16), v = n(17), _ = n(12), - x = n(29), - w = n(22), + w = n(29), + x = n(22), M = n(47), k = n(89), S = n(90), - A = n(9), - O = n(19), - E = S.f, - T = A.f, + O = n(9), + E = n(19), + A = S.f, + T = O.f, C = k.f, L = r.Symbol, P = r.JSON, D = P && P.stringify, - z = p('_hidden'), - N = p('toPrimitive'), - j = {}.propertyIsEnumerable, + j = p('_hidden'), + z = p('toPrimitive'), + N = {}.propertyIsEnumerable, R = l('symbol-registry'), I = l('symbols'), F = l('op-symbols'), @@ -212106,7 +212690,7 @@ object-assign ); }) ? function(e, t, n) { - var r = E(q, t); + var r = A(q, t); r && delete q[t], T(e, t, n), r && e !== q && T(q, t, r); @@ -212128,13 +212712,13 @@ object-assign return ( e === q && X(F, t, n), y(e), - (t = x(t, !0)), + (t = w(t, !0)), y(n), o(I, t) ? (n.enumerable - ? (o(e, z) && e[z][t] && (e[z][t] = !1), - (n = M(n, { enumerable: w(0, !1) }))) - : (o(e, z) || T(e, z, w(1, {})), (e[z][t] = !0)), + ? (o(e, j) && e[j][t] && (e[j][t] = !1), + (n = M(n, { enumerable: x(0, !1) }))) + : (o(e, j) || T(e, j, x(1, {})), (e[j][t] = !0)), W(e, t, n)) : T(e, t, n) ); @@ -212146,27 +212730,27 @@ object-assign return e; }, K = function(e) { - var t = j.call(this, (e = x(e, !0))); + var t = N.call(this, (e = w(e, !0))); return ( !(this === q && o(I, e) && !o(F, e)) && (!( t || !o(this, e) || !o(I, e) || - (o(this, z) && this[z][e]) + (o(this, j) && this[j][e]) ) || t) ); }, $ = function(e, t) { if ( - ((e = _(e)), (t = x(t, !0)), e !== q || !o(I, t) || o(F, t)) + ((e = _(e)), (t = w(t, !0)), e !== q || !o(I, t) || o(F, t)) ) { - var n = E(e, t); + var n = A(e, t); return ( !n || !o(I, t) || - (o(e, z) && e[z][t]) || + (o(e, j) && e[j][t]) || (n.enumerable = !0), n ); @@ -212174,7 +212758,7 @@ object-assign }, Q = function(e) { for (var t, n = C(_(e)), r = [], i = 0; n.length > i; ) - o(I, (t = n[i++])) || t == z || t == c || r.push(t); + o(I, (t = n[i++])) || t == j || t == c || r.push(t); return r; }, J = function(e) { @@ -212194,8 +212778,8 @@ object-assign var e = d(arguments.length > 0 ? arguments[0] : void 0), t = function(n) { this === q && t.call(F, n), - o(this, z) && o(this[z], e) && (this[z][e] = !1), - W(this, e, w(1, n)); + o(this, j) && o(this[j], e) && (this[j][e] = !1), + W(this, e, x(1, n)); }; return ( i && Y && W(q, e, { configurable: !0, set: t }), V(e) @@ -212207,7 +212791,7 @@ object-assign } ), (S.f = $), - (A.f = X), + (O.f = X), (n(50).f = k.f = Q), (n(24).f = K), (n(39).f = J), @@ -212225,7 +212809,7 @@ object-assign ) p(Z[ee++]); - for (var te = O(p.store), ne = 0; te.length > ne; ) g(te[ne++]); + for (var te = E(p.store), ne = 0; te.length > ne; ) g(te[ne++]); a(a.S + a.F * !B, 'Symbol', { for: function(e) { return o(R, (e += '')) ? R[e] : (R[e] = L(e)); @@ -212286,7 +212870,7 @@ object-assign } } ), - L.prototype[N] || n(8)(L.prototype, N, L.prototype.valueOf), + L.prototype[z] || n(8)(L.prototype, z, L.prototype.valueOf), f(L, 'Symbol'), f(Math, 'Math', !0), f(r.JSON, 'JSON', !0); @@ -212632,30 +213216,26 @@ object-assign return e != e; } function i(e, t) { - for (var n = e.length, r = 0; n--; ) e[n] === t && r++; - return r; - } - function a(e, t) { for (var n = -1, r = e.length, o = 0, i = []; ++n < r; ) { var a = e[n]; - (a !== t && a !== C) || ((e[n] = C), (i[o++] = n)); + (a !== t && a !== E) || ((e[n] = E), (i[o++] = n)); } return i; } - function s(e) { - return S(e) ? ge(e) : {}; + function a(e) { + return x(e) ? de(e) : {}; } - function c(e) { + function s(e) { return ( !( - !S(e) || + !x(e) || (function(e) { - return !!le && le in e; + return !!se && se in e; })(e) ) && ((function(e) { - var t = S(e) ? pe.call(e) : ''; - return t == V || t == U; + var t = x(e) ? le.call(e) : ''; + return t == H || t == Y; })(e) || (function(e) { var t = !1; @@ -212665,13 +213245,13 @@ object-assign } catch (e) {} return t; })(e) - ? he - : ee + ? fe + : Q ).test( (function(e) { if (null != e) { try { - return fe.call(e); + return ce.call(e); } catch (e) {} try { return e + ''; @@ -212682,44 +213262,7 @@ object-assign ) ); } - function u(e, t, n, r) { - for ( - var o = -1, - i = e.length, - a = n.length, - s = -1, - c = t.length, - u = me(i - a, 0), - l = Array(c + u), - f = !r; - ++s < c; - - ) - l[s] = t[s]; - for (; ++o < a; ) (f || o < i) && (l[n[o]] = e[o]); - for (; u--; ) l[s++] = e[o++]; - return l; - } - function l(e, t, n, r) { - for ( - var o = -1, - i = e.length, - a = -1, - s = n.length, - c = -1, - u = t.length, - l = me(i - s, 0), - f = Array(l + u), - d = !r; - ++o < l; - - ) - f[o] = e[o]; - for (var p = o; ++c < u; ) f[p + c] = t[c]; - for (; ++a < s; ) (d || o < i) && (f[p + n[a]] = e[o++]); - return f; - } - function f(e) { + function c(e) { return function() { var t = arguments; switch (t.length) { @@ -212740,81 +213283,123 @@ object-assign case 7: return new e(t[0], t[1], t[2], t[3], t[4], t[5], t[6]); } - var n = s(e.prototype), + var n = a(e.prototype), r = e.apply(n, t); - return S(r) ? r : n; + return x(r) ? r : n; }; } - function d(e, t, r) { - var o = f(e); - return function i() { + function u(e, t, r) { + var o = c(e); + return function a() { for ( - var s = arguments.length, c = Array(s), u = s, l = b(i); + var s = arguments.length, c = Array(s), u = s, f = h(a); u--; ) c[u] = arguments[u]; - var f = - s < 3 && c[0] !== l && c[s - 1] !== l ? [] : a(c, l); - return (s -= f.length) < r - ? g( + var p = + s < 3 && c[0] !== f && c[s - 1] !== f ? [] : i(c, f); + return (s -= p.length) < r + ? d( e, t, - p, - i.placeholder, + l, + a.placeholder, void 0, c, - f, + p, void 0, void 0, r - s ) : n( - this && this !== ae && this instanceof i ? o : e, + this && this !== re && this instanceof a ? o : e, this, c ); }; } - function p(e, t, n, r, o, s, c, d, h, m) { - var y = t & I, - v = t & L, - _ = t & P, - x = t & (z | N), - M = t & F, - k = _ ? void 0 : f(e); - return function S() { - for (var A = arguments.length, O = Array(A), E = A; E--; ) - O[E] = arguments[E]; - if (x) - var T = b(S), - C = i(O, T); + function l(e, t, n, r, o, a, s, u, f, p) { + var g = t & z, + m = t & A, + b = t & T, + y = t & (L | P), + _ = t & N, + w = b ? void 0 : c(e); + return function x() { + for (var M = arguments.length, k = Array(M), S = M; S--; ) + k[S] = arguments[S]; + if (y) + var O = h(x), + E = (function(e, t) { + for (var n = e.length, r = 0; n--; ) + e[n] === t && r++; + return r; + })(k, O); if ( - (r && (O = u(O, r, o, x)), - s && (O = l(O, s, c, x)), - (A -= C), - x && A < m) + (r && + (k = (function(e, t, n, r) { + for ( + var o = -1, + i = e.length, + a = n.length, + s = -1, + c = t.length, + u = pe(i - a, 0), + l = Array(c + u), + f = !r; + ++s < c; + + ) + l[s] = t[s]; + for (; ++o < a; ) (f || o < i) && (l[n[o]] = e[o]); + for (; u--; ) l[s++] = e[o++]; + return l; + })(k, r, o, y)), + a && + (k = (function(e, t, n, r) { + for ( + var o = -1, + i = e.length, + a = -1, + s = n.length, + c = -1, + u = t.length, + l = pe(i - s, 0), + f = Array(l + u), + d = !r; + ++o < l; + + ) + f[o] = e[o]; + for (var p = o; ++c < u; ) f[p + c] = t[c]; + for (; ++a < s; ) + (d || o < i) && (f[p + n[a]] = e[o++]); + return f; + })(k, a, s, y)), + (M -= E), + y && M < p) ) { - var L = a(O, T); - return g(e, t, p, S.placeholder, n, O, L, d, h, m - A); + var A = i(k, O); + return d(e, t, l, x.placeholder, n, k, A, u, f, p - M); } - var P = v ? n : this, - D = _ ? P[e] : e; + var T = m ? n : this, + C = b ? T[e] : e; return ( - (A = O.length), - d ? (O = w(O, d)) : M && A > 1 && O.reverse(), - y && h < A && (O.length = h), + (M = k.length), + u ? (k = v(k, u)) : _ && M > 1 && k.reverse(), + g && f < M && (k.length = f), this && - this !== ae && - this instanceof S && - (D = k || f(D)), - D.apply(P, O) + this !== re && + this instanceof x && + (C = w || c(C)), + C.apply(T, k) ); }; } - function h(e, t, r, o) { - var i = t & L, - a = f(e); + function f(e, t, r, o) { + var i = t & A, + a = c(e); return function t() { for ( var s = -1, @@ -212822,7 +213407,7 @@ object-assign u = -1, l = o.length, f = Array(l + c), - d = this && this !== ae && this instanceof t ? a : e; + d = this && this !== re && this instanceof t ? a : e; ++u < l; ) @@ -212831,9 +213416,9 @@ object-assign return n(d, i ? r : this, f); }; } - function g(e, t, n, r, o, i, a, s, c, u) { - var l = t & z; - (t |= l ? j : R), (t &= ~(l ? R : j)) & D || (t &= ~(L | P)); + function d(e, t, n, r, o, i, a, s, c, u) { + var l = t & L; + (t |= l ? D : j), (t &= ~(l ? j : D)) & C || (t &= ~(A | T)); var f = n( e, t, @@ -212846,24 +213431,24 @@ object-assign c, u ); - return (f.placeholder = r), ve(f, e, t); + return (f.placeholder = r), me(f, e, t); } - function m(e, t, n, r, o, i, a, s) { - var c = t & P; - if (!c && 'function' != typeof e) throw new TypeError(T); - var u = r ? r.length : 0; + function p(e, t, n, r, o, i, a, s) { + var d = t & T; + if (!d && 'function' != typeof e) throw new TypeError(O); + var p = r ? r.length : 0; if ( - (u || ((t &= ~(j | R)), (r = o = void 0)), - (a = void 0 === a ? a : me(O(a), 0)), - (s = void 0 === s ? s : O(s)), - (u -= o ? o.length : 0), - t & R) + (p || ((t &= ~(D | j)), (r = o = void 0)), + (a = void 0 === a ? a : pe(k(a), 0)), + (s = void 0 === s ? s : k(s)), + (p -= o ? o.length : 0), + t & j) ) { - var l = r, + var h = r, g = o; r = o = void 0; } - var m = [e, t, n, r, o, l, g, i, a, s]; + var m = [e, t, n, r, o, h, g, i, a, s]; if ( ((e = m[0]), (t = m[1]), @@ -212871,65 +213456,65 @@ object-assign (r = m[3]), (o = m[4]), !(s = m[9] = - null == m[9] ? (c ? 0 : e.length) : me(m[9] - u, 0)) && - t & (z | N) && - (t &= ~(z | N)), - t && t != L) + null == m[9] ? (d ? 0 : e.length) : pe(m[9] - p, 0)) && + t & (L | P) && + (t &= ~(L | P)), + t && t != A) ) b = - t == z || t == N - ? d(e, t, s) - : (t != j && t != (L | j)) || o.length - ? p.apply(void 0, m) - : h(e, t, n, r); + t == L || t == P + ? u(e, t, s) + : (t != D && t != (A | D)) || o.length + ? l.apply(void 0, m) + : f(e, t, n, r); else var b = (function(e, t, n) { - var r = t & L, - o = f(e); + var r = t & A, + o = c(e); return function t() { - return (this && this !== ae && this instanceof t + return (this && this !== re && this instanceof t ? o : e ).apply(r ? n : this, arguments); }; })(e, t, n); - return ve(b, e, t); + return me(b, e, t); } - function b(e) { + function h(e) { return e.placeholder; } - function y(e, t) { + function g(e, t) { var n = (function(e, t) { return null == e ? void 0 : e[t]; })(e, t); - return c(n) ? n : void 0; + return s(n) ? n : void 0; } - function v(e) { - var t = e.match($); - return t ? t[1].split(Q) : []; + function m(e) { + var t = e.match(X); + return t ? t[1].split(G) : []; } - function _(e, t) { + function b(e, t) { var n = t.length, r = n - 1; return ( (t[r] = (n > 1 ? '& ' : '') + t[r]), (t = t.join(n > 2 ? ', ' : ' ')), - e.replace(K, '{\n/* [wrapped with ' + t + '] */\n') + e.replace(U, '{\n/* [wrapped with ' + t + '] */\n') ); } - function x(e, t) { + function y(e, t) { return ( - !!(t = null == t ? B : t) && - ('number' == typeof e || ne.test(e)) && + !!(t = null == t ? I : t) && + ('number' == typeof e || Z.test(e)) && e > -1 && e % 1 == 0 && e < t ); } - function w(e, t) { + function v(e, t) { for ( var n = e.length, - r = be(t.length, n), + r = he(t.length, n), o = (function(e, t) { var n = -1, r = e.length; @@ -212940,11 +213525,11 @@ object-assign ) { var i = t[r]; - e[r] = x(i, n) ? o[i] : void 0; + e[r] = y(i, n) ? o[i] : void 0; } return e; } - function M(e, t) { + function _(e, t) { return ( (function(e, t) { for ( @@ -212952,17 +213537,17 @@ object-assign ++n < r && !1 !== t(e[n], n, e); ); - })(W, function(n) { + })(B, function(n) { var o = '_.' + n[0]; t & n[1] && !r(e, o) && e.push(o); }), e.sort() ); } - function k(e, t, n) { - var r = m( + function w(e, t, n) { + var r = p( e, - z, + L, void 0, void 0, void 0, @@ -212970,13 +213555,13 @@ object-assign void 0, (t = n ? void 0 : t) ); - return (r.placeholder = k.placeholder), r; + return (r.placeholder = w.placeholder), r; } - function S(e) { + function x(e) { var t = typeof e; return !!e && ('object' == t || 'function' == t); } - function A(e) { + function M(e) { return e ? (e = (function(e) { if ('number' == typeof e) return e; @@ -212987,26 +213572,26 @@ object-assign ((function(e) { return !!e && 'object' == typeof e; })(e) && - pe.call(e) == X) + le.call(e) == W) ); })(e) ) - return Y; - if (S(e)) { + return q; + if (x(e)) { var t = 'function' == typeof e.valueOf ? e.valueOf() : e; - e = S(t) ? t + '' : t; + e = x(t) ? t + '' : t; } if ('string' != typeof e) return 0 === e ? e : +e; - e = e.replace(G, ''); - var n = Z.test(e); - return n || te.test(e) - ? re(e.slice(2), n ? 2 : 8) - : J.test(e) - ? Y + e = e.replace(V, ''); + var n = $.test(e); + return n || J.test(e) + ? ee(e.slice(2), n ? 2 : 8) + : K.test(e) + ? q : +e; - })(e)) === q || e === -q - ? (e < 0 ? -1 : 1) * H + })(e)) === R || e === -R + ? (e < 0 ? -1 : 1) * F : e == e ? e : 0 @@ -213014,78 +213599,78 @@ object-assign ? e : 0; } - function O(e) { - var t = A(e), + function k(e) { + var t = M(e), n = t % 1; return t == t ? (n ? t - n : t) : 0; } - function E(e) { + function S(e) { return function() { return e; }; } - var T = 'Expected a function', - C = '__lodash_placeholder__', - L = 1, - P = 2, - D = 4, - z = 8, - N = 16, - j = 32, - R = 64, - I = 128, - F = 512, - q = 1 / 0, - B = 9007199254740991, - H = 17976931348623157e292, - Y = NaN, - W = [ - ['ary', I], - ['bind', L], - ['bindKey', P], - ['curry', z], - ['curryRight', N], - ['flip', F], - ['partial', j], - ['partialRight', R], + var O = 'Expected a function', + E = '__lodash_placeholder__', + A = 1, + T = 2, + C = 4, + L = 8, + P = 16, + D = 32, + j = 64, + z = 128, + N = 512, + R = 1 / 0, + I = 9007199254740991, + F = 17976931348623157e292, + q = NaN, + B = [ + ['ary', z], + ['bind', A], + ['bindKey', T], + ['curry', L], + ['curryRight', P], + ['flip', N], + ['partial', D], + ['partialRight', j], ['rearg', 256] ], - V = '[object Function]', - U = '[object GeneratorFunction]', - X = '[object Symbol]', - G = /^\s+|\s+$/g, - K = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, - $ = /\{\n\/\* \[wrapped with (.+)\] \*/, - Q = /,? & /, - J = /^[-+]0x[0-9a-f]+$/i, - Z = /^0b[01]+$/i, - ee = /^\[object .+?Constructor\]$/, - te = /^0o[0-7]+$/i, - ne = /^(?:0|[1-9]\d*)$/, - re = parseInt, - oe = 'object' == typeof t && t && t.Object === Object && t, - ie = + H = '[object Function]', + Y = '[object GeneratorFunction]', + W = '[object Symbol]', + V = /^\s+|\s+$/g, + U = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, + X = /\{\n\/\* \[wrapped with (.+)\] \*/, + G = /,? & /, + K = /^[-+]0x[0-9a-f]+$/i, + $ = /^0b[01]+$/i, + Q = /^\[object .+?Constructor\]$/, + J = /^0o[0-7]+$/i, + Z = /^(?:0|[1-9]\d*)$/, + ee = parseInt, + te = 'object' == typeof t && t && t.Object === Object && t, + ne = 'object' == typeof self && self && self.Object === Object && self, - ae = oe || ie || Function('return this')(), - se = Function.prototype, - ce = Object.prototype, - ue = ae['__core-js_shared__'], - le = (function() { + re = te || ne || Function('return this')(), + oe = Function.prototype, + ie = Object.prototype, + ae = re['__core-js_shared__'], + se = (function() { var e = /[^.]+$/.exec( - (ue && ue.keys && ue.keys.IE_PROTO) || '' + (ae && ae.keys && ae.keys.IE_PROTO) || '' ); return e ? 'Symbol(src)_1.' + e : ''; })(), - fe = se.toString, - de = ce.hasOwnProperty, - pe = ce.toString, - he = RegExp( + ce = oe.toString, + ue = ie.hasOwnProperty, + le = ie.toString, + fe = RegExp( '^' + - fe - .call(de) + ce + .call(ue) .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') .replace( /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, @@ -213093,27 +213678,27 @@ object-assign ) + '$' ), - ge = Object.create, - me = Math.max, - be = Math.min, - ye = (function() { - var e = y(Object, 'defineProperty'), - t = y.name; + de = Object.create, + pe = Math.max, + he = Math.min, + ge = (function() { + var e = g(Object, 'defineProperty'), + t = g.name; return t && t.length > 2 ? e : void 0; })(), - ve = ye + me = ge ? function(e, t, n) { var r = t + ''; - return ye(e, 'toString', { + return ge(e, 'toString', { configurable: !0, enumerable: !1, - value: E(_(r, M(v(r), n))) + value: S(b(r, _(m(r), n))) }); } : function(e) { return e; }; - (k.placeholder = {}), (e.exports = k); + (w.placeholder = {}), (e.exports = w); }.call(t, n(52))); }, function(e, t, n) { @@ -213156,22 +213741,22 @@ object-assign t.eighties = r(v); var _ = n(129); t.embers = r(_); - var x = n(130); - t.flat = r(x); - var w = n(131); - t.google = r(w); + var w = n(130); + t.flat = r(w); + var x = n(131); + t.google = r(x); var M = n(132); t.grayscale = r(M); var k = n(133); t.greenscreen = r(k); var S = n(134); t.harmonic = r(S); - var A = n(135); - t.hopscotch = r(A); - var O = n(136); - t.isotope = r(O); - var E = n(137); - t.marrakesh = r(E); + var O = n(135); + t.hopscotch = r(O); + var E = n(136); + t.isotope = r(E); + var A = n(137); + t.marrakesh = r(A); var T = n(138); t.mocha = r(T); var C = n(139); @@ -213182,12 +213767,12 @@ object-assign t.paraiso = r(P); var D = n(142); t.pop = r(D); - var z = n(143); - t.railscasts = r(z); - var N = n(144); - t.shapeshifter = r(N); - var j = n(145); - t.solarized = r(j); + var j = n(143); + t.railscasts = r(j); + var z = n(144); + t.shapeshifter = r(z); + var N = n(145); + t.solarized = r(N); var R = n(146); t.summerfruit = r(R); var I = n(147); @@ -214414,21 +214999,8 @@ object-assign function r(e) { return e && e.__esModule ? e : { default: e }; } - function o(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function i(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } Object.defineProperty(t, '__esModule', { value: !0 }); - var a = + var o = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { @@ -214439,7 +215011,7 @@ object-assign } return e; }, - s = (function() { + i = (function() { function e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; @@ -214453,14 +215025,28 @@ object-assign return n && e(t.prototype, n), r && e(t, r), t; }; })(), - c = r(n(0)), - u = r(n(6)), - l = r(n(1)), - f = (function(e) { + a = r(n(0)), + s = r(n(6)), + c = r(n(1)), + u = (function(e) { function t() { return ( - o(this, t), - i( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( this, (t.__proto__ || Object.getPrototypeOf(t)).apply( this, @@ -214489,23 +215075,23 @@ object-assign ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), - s(t, [ + i(t, [ { key: 'render', value: function() { var e = this.props; - return c.default.createElement( + return a.default.createElement( 'div', - (0, l.default)(e.theme, 'date'), - c.default.createElement( - u.default, - a({ type_name: 'date' }, e) + (0, c.default)(e.theme, 'date'), + a.default.createElement( + s.default, + o({ type_name: 'date' }, e) ), - c.default.createElement( + a.default.createElement( 'span', - a( + o( { className: 'date-value' }, - (0, l.default)(e.theme, 'date-value') + (0, c.default)(e.theme, 'date-value') ), e.value.toLocaleTimeString('en-us', { weekday: 'short', @@ -214522,29 +215108,16 @@ object-assign ]), t ); - })(c.default.PureComponent); - t.default = f; + })(a.default.PureComponent); + t.default = u; }, function(e, t, n) { 'use strict'; function r(e) { return e && e.__esModule ? e : { default: e }; } - function o(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function i(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } Object.defineProperty(t, '__esModule', { value: !0 }); - var a = + var o = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { @@ -214555,7 +215128,7 @@ object-assign } return e; }, - s = (function() { + i = (function() { function e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; @@ -214569,14 +215142,28 @@ object-assign return n && e(t.prototype, n), r && e(t, r), t; }; })(), - c = r(n(0)), - u = r(n(6)), - l = r(n(1)), - f = (function(e) { + a = r(n(0)), + s = r(n(6)), + c = r(n(1)), + u = (function(e) { function t() { return ( - o(this, t), - i( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( this, (t.__proto__ || Object.getPrototypeOf(t)).apply( this, @@ -214605,17 +215192,17 @@ object-assign ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), - s(t, [ + i(t, [ { key: 'render', value: function() { var e = this.props; - return c.default.createElement( + return a.default.createElement( 'div', - (0, l.default)(e.theme, 'float'), - c.default.createElement( - u.default, - a({ type_name: 'float' }, e) + (0, c.default)(e.theme, 'float'), + a.default.createElement( + s.default, + o({ type_name: 'float' }, e) ), this.props.value ); @@ -214624,8 +215211,8 @@ object-assign ]), t ); - })(c.default.PureComponent); - t.default = f; + })(a.default.PureComponent); + t.default = u; }, function(e, t, n) { 'use strict'; @@ -215069,21 +215656,8 @@ object-assign function r(e) { return e && e.__esModule ? e : { default: e }; } - function o(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function i(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } Object.defineProperty(t, '__esModule', { value: !0 }); - var a = (function() { + var o = (function() { function e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; @@ -215097,13 +215671,27 @@ object-assign return n && e(t.prototype, n), r && e(t, r), t; }; })(), - s = r(n(0)), - c = r(n(1)), - u = (function(e) { + i = r(n(0)), + a = r(n(1)), + s = (function(e) { function t() { return ( - o(this, t), - i( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( this, (t.__proto__ || Object.getPrototypeOf(t)).apply( this, @@ -215132,13 +215720,13 @@ object-assign ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), - a(t, [ + o(t, [ { key: 'render', value: function() { - return s.default.createElement( + return i.default.createElement( 'div', - (0, c.default)(this.props.theme, 'nan'), + (0, a.default)(this.props.theme, 'nan'), 'NaN' ); } @@ -215146,29 +215734,16 @@ object-assign ]), t ); - })(s.default.PureComponent); - t.default = u; + })(i.default.PureComponent); + t.default = s; }, function(e, t, n) { 'use strict'; function r(e) { return e && e.__esModule ? e : { default: e }; } - function o(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function i(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } Object.defineProperty(t, '__esModule', { value: !0 }); - var a = (function() { + var o = (function() { function e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; @@ -215182,13 +215757,27 @@ object-assign return n && e(t.prototype, n), r && e(t, r), t; }; })(), - s = r(n(0)), - c = r(n(1)), - u = (function(e) { + i = r(n(0)), + a = r(n(1)), + s = (function(e) { function t() { return ( - o(this, t), - i( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( this, (t.__proto__ || Object.getPrototypeOf(t)).apply( this, @@ -215217,13 +215806,13 @@ object-assign ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), - a(t, [ + o(t, [ { key: 'render', value: function() { - return s.default.createElement( + return i.default.createElement( 'div', - (0, c.default)(this.props.theme, 'null'), + (0, a.default)(this.props.theme, 'null'), 'NULL' ); } @@ -215231,29 +215820,16 @@ object-assign ]), t ); - })(s.default.PureComponent); - t.default = u; + })(i.default.PureComponent); + t.default = s; }, function(e, t, n) { 'use strict'; function r(e) { return e && e.__esModule ? e : { default: e }; } - function o(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function i(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } Object.defineProperty(t, '__esModule', { value: !0 }); - var a = + var o = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { @@ -215264,7 +215840,7 @@ object-assign } return e; }, - s = (function() { + i = (function() { function e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; @@ -215278,14 +215854,28 @@ object-assign return n && e(t.prototype, n), r && e(t, r), t; }; })(), - c = r(n(0)), - u = r(n(6)), - l = r(n(1)), - f = (function(e) { + a = r(n(0)), + s = r(n(6)), + c = r(n(1)), + u = (function(e) { function t() { return ( - o(this, t), - i( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( this, (t.__proto__ || Object.getPrototypeOf(t)).apply( this, @@ -215314,17 +215904,17 @@ object-assign ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), - s(t, [ + i(t, [ { key: 'render', value: function() { var e = this.props; - return c.default.createElement( + return a.default.createElement( 'div', - (0, l.default)(e.theme, 'integer'), - c.default.createElement( - u.default, - a({ type_name: 'int' }, e) + (0, c.default)(e.theme, 'integer'), + a.default.createElement( + s.default, + o({ type_name: 'int' }, e) ), this.props.value ); @@ -215333,29 +215923,16 @@ object-assign ]), t ); - })(c.default.PureComponent); - t.default = f; + })(a.default.PureComponent); + t.default = u; }, function(e, t, n) { 'use strict'; function r(e) { return e && e.__esModule ? e : { default: e }; } - function o(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function i(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } Object.defineProperty(t, '__esModule', { value: !0 }); - var a = + var o = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { @@ -215366,7 +215943,7 @@ object-assign } return e; }, - s = (function() { + i = (function() { function e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; @@ -215380,14 +215957,28 @@ object-assign return n && e(t.prototype, n), r && e(t, r), t; }; })(), - c = r(n(0)), - u = r(n(6)), - l = r(n(1)), - f = (function(e) { + a = r(n(0)), + s = r(n(6)), + c = r(n(1)), + u = (function(e) { function t() { return ( - o(this, t), - i( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( this, (t.__proto__ || Object.getPrototypeOf(t)).apply( this, @@ -215416,17 +216007,17 @@ object-assign ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), - s(t, [ + i(t, [ { key: 'render', value: function() { var e = this.props; - return c.default.createElement( + return a.default.createElement( 'div', - (0, l.default)(e.theme, 'regexp'), - c.default.createElement( - u.default, - a({ type_name: 'regexp' }, e) + (0, c.default)(e.theme, 'regexp'), + a.default.createElement( + s.default, + o({ type_name: 'regexp' }, e) ), this.props.value.toString() ); @@ -215435,8 +216026,8 @@ object-assign ]), t ); - })(c.default.PureComponent); - t.default = f; + })(a.default.PureComponent); + t.default = u; }, function(e, t, n) { 'use strict'; @@ -215595,21 +216186,8 @@ object-assign function r(e) { return e && e.__esModule ? e : { default: e }; } - function o(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function i(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } Object.defineProperty(t, '__esModule', { value: !0 }); - var a = (function() { + var o = (function() { function e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; @@ -215623,13 +216201,27 @@ object-assign return n && e(t.prototype, n), r && e(t, r), t; }; })(), - s = r(n(0)), - c = r(n(1)), - u = (function(e) { + i = r(n(0)), + a = r(n(1)), + s = (function(e) { function t() { return ( - o(this, t), - i( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( this, (t.__proto__ || Object.getPrototypeOf(t)).apply( this, @@ -215658,13 +216250,13 @@ object-assign ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), - a(t, [ + o(t, [ { key: 'render', value: function() { - return s.default.createElement( + return i.default.createElement( 'div', - (0, c.default)(this.props.theme, 'undefined'), + (0, a.default)(this.props.theme, 'undefined'), 'undefined' ); } @@ -215672,8 +216264,8 @@ object-assign ]), t ); - })(s.default.PureComponent); - t.default = u; + })(i.default.PureComponent); + t.default = s; }, function(e, t, n) { 'use strict'; @@ -216426,8 +217018,8 @@ object-assign ] : [setTimeout, clearTimeout], _ = v[0], - x = v[1], - w = (function(e) { + w = v[1], + x = (function(e) { function t(t) { var n; return ( @@ -216569,12 +217161,12 @@ object-assign })(this._uid); }), (n._clearNextFrame = function() { - x(this._onNextFrameActionId); + w(this._onNextFrameActionId); }), t ); })(s.a.Component); - (w.propTypes = { + (x.propTypes = { inputRef: u.a.func, maxRows: u.a.number, minRows: u.a.number, @@ -216583,13 +217175,13 @@ object-assign useCacheForDOMMeasurements: u.a.bool, value: u.a.string }), - (w.defaultProps = { + (x.defaultProps = { inputRef: y, onChange: y, onHeightChange: y, useCacheForDOMMeasurements: !1 }), - (t.default = w); + (t.default = x); }, function(e, t, n) { e.exports = n(174)(); @@ -216680,10 +217272,6 @@ object-assign return e && e.__esModule ? e : { default: e }; } function o(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function i(e, t) { if (!e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" @@ -216693,7 +217281,7 @@ object-assign : t; } Object.defineProperty(t, '__esModule', { value: !0 }); - var a = + var i = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { @@ -216704,7 +217292,7 @@ object-assign } return e; }, - s = (function() { + a = (function() { function e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; @@ -216718,34 +217306,39 @@ object-assign return n && e(t.prototype, n), r && e(t, r), t; }; })(), - c = r(n(0)), - u = r(n(14)), - l = r(n(13)), - f = r(n(178)), - d = + s = r(n(0)), + c = r(n(14)), + u = r(n(13)), + l = r(n(178)), + f = (r(n(1)), (function(e) { function t() { var e, n, r; - o(this, t); + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t); for ( - var s = arguments.length, c = Array(s), f = 0; - f < s; - f++ + var a = arguments.length, s = Array(a), l = 0; + l < a; + l++ ) - c[f] = arguments[f]; + s[l] = arguments[l]; return ( - (n = r = i( + (n = r = o( this, (e = t.__proto__ || Object.getPrototypeOf(t)).call.apply( e, - [this].concat(c) + [this].concat(s) ) )), (r.isValid = function(e) { var t = r.props.rjvId, - n = l.default.get(t, 'action', 'new-key-request'); + n = u.default.get(t, 'action', 'new-key-request'); return ( '' != e && -1 === Object.keys(n.existing_value).indexOf(e) @@ -216753,16 +217346,16 @@ object-assign }), (r.submit = function(e) { var t = r.props.rjvId, - n = l.default.get(t, 'action', 'new-key-request'); - (n.new_value = a({}, n.existing_value)), + n = u.default.get(t, 'action', 'new-key-request'); + (n.new_value = i({}, n.existing_value)), (n.new_value[e] = r.props.defaultValue), - u.default.dispatch({ + c.default.dispatch({ name: 'VARIABLE_ADDED', rjvId: t, data: n }); }), - i(r, n) + o(r, n) ); } return ( @@ -216785,7 +217378,7 @@ object-assign ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), - s(t, [ + a(t, [ { key: 'render', value: function() { @@ -216794,7 +217387,7 @@ object-assign n = e.theme, r = e.rjvId; return t - ? c.default.createElement(f.default, { + ? s.default.createElement(l.default, { rjvId: r, theme: n, isValid: this.isValid, @@ -216806,8 +217399,8 @@ object-assign ]), t ); - })(c.default.PureComponent)); - t.default = d; + })(s.default.PureComponent)); + t.default = f; }, function(e, t, n) { 'use strict'; @@ -217003,21 +217596,8 @@ object-assign function r(e) { return e && e.__esModule ? e : { default: e }; } - function o(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function i(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - } Object.defineProperty(t, '__esModule', { value: !0 }); - var a = + var o = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { @@ -217028,7 +217608,7 @@ object-assign } return e; }, - s = (function() { + i = (function() { function e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; @@ -217042,15 +217622,29 @@ object-assign return n && e(t.prototype, n), r && e(t, r), t; }; })(), - c = r(n(0)), - u = r(n(14)), - l = (r(n(13)), n(15)), - f = r(n(1)), - d = (function(e) { + a = r(n(0)), + s = r(n(14)), + c = (r(n(13)), n(15)), + u = r(n(1)), + l = (function(e) { function t() { return ( - o(this, t), - i( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || + ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( this, (t.__proto__ || Object.getPrototypeOf(t)).apply( this, @@ -217079,7 +217673,7 @@ object-assign ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); })(t, e), - s(t, [ + i(t, [ { key: 'render', value: function() { @@ -217087,30 +217681,30 @@ object-assign t = e.message, n = e.active, r = e.theme, - o = e.rjvId; + i = e.rjvId; return n - ? c.default.createElement( + ? a.default.createElement( 'div', - a( + o( { className: 'validation-failure' }, - (0, f.default)(r, 'validation-failure'), + (0, u.default)(r, 'validation-failure'), { onClick: function() { - u.default.dispatch({ - rjvId: o, + s.default.dispatch({ + rjvId: i, name: 'RESET' }); } } ), - c.default.createElement( + a.default.createElement( 'span', - (0, f.default)(r, 'validation-failure-label'), + (0, u.default)(r, 'validation-failure-label'), t ), - c.default.createElement( - l.Add, - (0, f.default)(r, 'validation-failure-clear') + a.default.createElement( + c.Add, + (0, u.default)(r, 'validation-failure-clear') ) ) : null; @@ -217119,8 +217713,8 @@ object-assign ]), t ); - })(c.default.PureComponent); - t.default = d; + })(a.default.PureComponent); + t.default = l; }, function(e, t, n) { var r = n(181); @@ -217309,7 +217903,7 @@ object-assign } function f(e, t, n, r) { var o = n ? '' : r.css; - if (e.styleSheet) e.styleSheet.cssText = x(t, o); + if (e.styleSheet) e.styleSheet.cssText = w(t, o); else { var i = document.createTextNode(o), a = e.childNodes; @@ -217394,7 +217988,7 @@ object-assign } ); }; - var x = (function() { + var w = (function() { var e = []; return function(t, n) { return (e[t] = n), e.filter(Boolean).join('\n'); @@ -217438,7 +218032,7 @@ object-assign ]))); }, function(e, t, n) { - e.exports = n(703); + e.exports = n(747); }, function(e, t, n) { 'use strict'; @@ -217554,35 +218148,35 @@ object-assign Object.defineProperty(t, 'toLocalizedDateString', { enumerable: !0, get: function() { - return x.default; + return w.default; } }), Object.defineProperty(t, 'toMomentObject', { enumerable: !0, get: function() { - return w.default; + return x.default; } }); - var r = M(n(152)), - o = M(n(374)), - i = M(n(376)), - a = M(n(724)), - s = M(n(391)), - c = M(n(390)), - u = M(n(383)), - l = M(n(159)), - f = M(n(396)), - d = M(n(399)), - p = M(n(743)), - h = M(n(401)), - g = M(n(400)), - m = M(n(72)), - b = M(n(745)), - y = M(n(397)), - v = M(n(67)), - _ = M(n(117)), - x = M(n(157)), - w = M(n(68)); + var r = M(n(167)), + o = M(n(395)), + i = M(n(397)), + a = M(n(768)), + s = M(n(421)), + c = M(n(420)), + u = M(n(413)), + l = M(n(177)), + f = M(n(426)), + d = M(n(429)), + p = M(n(796)), + h = M(n(431)), + g = M(n(430)), + m = M(n(86)), + b = M(n(798)), + y = M(n(427)), + v = M(n(81)), + _ = M(n(132)), + w = M(n(175)), + x = M(n(82)); function M(e) { return e && e.__esModule ? e : { default: e }; } @@ -217613,7 +218207,7 @@ object-assign }; }, function(e, t, n) { - var r = n(2); + var r = n(4); e.exports = { isValidMoment: function(e) { return ( @@ -217659,64 +218253,65 @@ object-assign '`.' ); } + var i = -1; e.exports = { constructPropValidatorVariations: r, - createMomentChecker: function(e, t, i, a) { - return r(function(r, s, c, u, l, f, d) { - var p = c[u], - h = typeof p, - g = (function(e, t, n, r) { - var i = void 0 === r, - a = null === r; + createMomentChecker: function(e, t, a, s) { + return r(function(r, c, u, l, f, d, p) { + var h = u[l], + g = typeof h, + m = (function(e, t, n, r) { + var a = void 0 === r, + s = null === r; if (e) { - if (i) return o(n, t, 'undefined'); - if (a) return o(n, t, 'null'); + if (a) return o(n, t, 'undefined'); + if (s) return o(n, t, 'null'); } - return i || a ? null : -1; - })(r, (l = l || n.anonymousMessage), (d = d || u), p); - if (-1 !== g) return g; - if (t && !t(p)) + return a || s ? null : i; + })(r, (f = f || n.anonymousMessage), (p = p || l), h); + if (m !== i) return m; + if (t && !t(h)) return new Error( n.invalidTypeCore + ': `' + - u + + l + '` of type `' + - h + + g + '` supplied to `' + - l + + f + '`, expected `' + e + '`.' ); - if (!i(p)) + if (!a(h)) return new Error( n.baseInvalidMessage + - f + + d + ' `' + - u + + l + '` of type `' + - h + + g + '` supplied to `' + - l + + f + '`, expected `' + - a + + s + '`.' ); - if (s && !s(p)) { - var m = s.name || n.anonymousMessage; + if (c && !c(h)) { + var b = c.name || n.anonymousMessage; return new Error( n.baseInvalidMessage + - f + + d + ' `' + - u + + l + '` of type `' + - h + + g + '` supplied to `' + - l + + f + '`. ' + n.predicateFailureCore + ' `' + - m + + b + '`.' ); } @@ -217775,10 +218370,10 @@ object-assign }, function(e, t, n) { 'use strict'; - var r = n(66), - o = n(370), - i = n(372), - a = n(711), + var r = n(80), + o = n(391), + i = n(393), + a = n(755), s = i(); r(s, { getPolyfill: i, implementation: o, shim: a }), (e.exports = s); }, @@ -217788,7 +218383,7 @@ object-assign if (!Object.keys) { var o = Object.prototype.hasOwnProperty, i = Object.prototype.toString, - a = n(369), + a = n(390), s = Object.prototype.propertyIsEnumerable, c = !s.call({ toString: null }, 'toString'), u = s.call(function() {}, 'prototype'), @@ -217931,8 +218526,8 @@ object-assign }, function(e, t, n) { 'use strict'; - var r = n(66), - o = n(372); + var r = n(80), + o = n(393); e.exports = function() { var e = o(); return ( @@ -217984,8 +218579,7 @@ object-assign function s() { for (var e = arguments.length, t = Array(e), n = 0; n < e; n++) t[n] = arguments[n]; - var o = r.resolve(t); - return o; + return r.resolve(t); } function c() { for (var e = arguments.length, t = Array(e), n = 0; n < e; n++) @@ -218032,7 +218626,7 @@ object-assign 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = i); var r = o(n(0)); - n(11), o(n(152)), o(n(717)); + n(21), o(n(167)), o(n(761)); function o(e) { return e && e.__esModule ? e : { default: e }; } @@ -218046,13 +218640,13 @@ object-assign 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = t.PureCustomizableCalendarDay = t.selectedStyles = t.lastInRangeStyles = t.selectedSpanStyles = t.hoveredSpanStyles = t.blockedOutOfRangeStyles = t.blockedCalendarStyles = t.blockedMinNightsStyles = t.highlightedCalendarStyles = t.outsideStyles = t.defaultStyles = void 0); - var r = l(n(32)), + var r = l(n(45)), o = l(n(0)), - i = (l(n(1)), l(n(41)), n(11), n(33)), - a = l(n(2)), - s = n(20), - c = (l(n(23)), l(n(373))), - u = n(7); + i = (l(n(1)), l(n(54)), n(21), n(46)), + a = l(n(4)), + s = n(31), + c = (l(n(35)), l(n(394))), + u = n(15); function l(e) { return e && e.__esModule ? e : { default: e }; } @@ -218083,21 +218677,14 @@ object-assign return e; }).apply(this, arguments); } - function p(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function h(e, t) { - return !t || ('object' !== f(t) && 'function' != typeof t) ? v(e) : t; - } - function g(e) { - return (g = Object.setPrototypeOf + function p(e) { + return (p = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function m(e, t) { + function h(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -218106,123 +218693,123 @@ object-assign Object.defineProperty(e, r.key, r); } } - function b(e, t, n) { - return t && m(e.prototype, t), n && m(e, n), e; + function g(e, t, n) { + return t && h(e.prototype, t), n && h(e, n), e; } - function y(e, t) { - return (y = + function m(e, t) { + return (m = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; })(e, t); } - function v(e) { + function b(e) { if (void 0 === e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return e; } - var _ = l(n(718)).default.reactDates.color; - function x(e, t) { + var y = l(n(762)).default.reactDates.color; + function v(e, t) { if (!e) return null; var n = e.hover; return t && n ? n : e; } - var w = { - border: '1px solid '.concat(_.core.borderLight), - color: _.text, - background: _.background, + var _ = { + border: '1px solid '.concat(y.core.borderLight), + color: y.text, + background: y.background, hover: { - background: _.core.borderLight, - border: '1px solid '.concat(_.core.borderLight), + background: y.core.borderLight, + border: '1px solid '.concat(y.core.borderLight), color: 'inherit' } }; - t.defaultStyles = w; - var M = { - background: _.outside.backgroundColor, + t.defaultStyles = _; + var w = { + background: y.outside.backgroundColor, border: 0, - color: _.outside.color + color: y.outside.color }; - t.outsideStyles = M; - var k = { - background: _.highlighted.backgroundColor, - color: _.highlighted.color, + t.outsideStyles = w; + var x = { + background: y.highlighted.backgroundColor, + color: y.highlighted.color, hover: { - background: _.highlighted.backgroundColor_hover, - color: _.highlighted.color_active + background: y.highlighted.backgroundColor_hover, + color: y.highlighted.color_active } }; - t.highlightedCalendarStyles = k; - var S = { - background: _.minimumNights.backgroundColor, - border: '1px solid '.concat(_.minimumNights.borderColor), - color: _.minimumNights.color, + t.highlightedCalendarStyles = x; + var M = { + background: y.minimumNights.backgroundColor, + border: '1px solid '.concat(y.minimumNights.borderColor), + color: y.minimumNights.color, hover: { - background: _.minimumNights.backgroundColor_hover, - color: _.minimumNights.color_active + background: y.minimumNights.backgroundColor_hover, + color: y.minimumNights.color_active } }; - t.blockedMinNightsStyles = S; - var A = { - background: _.blocked_calendar.backgroundColor, - border: '1px solid '.concat(_.blocked_calendar.borderColor), - color: _.blocked_calendar.color, + t.blockedMinNightsStyles = M; + var k = { + background: y.blocked_calendar.backgroundColor, + border: '1px solid '.concat(y.blocked_calendar.borderColor), + color: y.blocked_calendar.color, hover: { - background: _.blocked_calendar.backgroundColor_hover, - border: '1px solid '.concat(_.blocked_calendar.borderColor), - color: _.blocked_calendar.color_active + background: y.blocked_calendar.backgroundColor_hover, + border: '1px solid '.concat(y.blocked_calendar.borderColor), + color: y.blocked_calendar.color_active } }; - t.blockedCalendarStyles = A; - var O = { - background: _.blocked_out_of_range.backgroundColor, - border: '1px solid '.concat(_.blocked_out_of_range.borderColor), - color: _.blocked_out_of_range.color, + t.blockedCalendarStyles = k; + var S = { + background: y.blocked_out_of_range.backgroundColor, + border: '1px solid '.concat(y.blocked_out_of_range.borderColor), + color: y.blocked_out_of_range.color, hover: { - background: _.blocked_out_of_range.backgroundColor_hover, - border: '1px solid '.concat(_.blocked_out_of_range.borderColor), - color: _.blocked_out_of_range.color_active + background: y.blocked_out_of_range.backgroundColor_hover, + border: '1px solid '.concat(y.blocked_out_of_range.borderColor), + color: y.blocked_out_of_range.color_active } }; - t.blockedOutOfRangeStyles = O; - var E = { - background: _.hoveredSpan.backgroundColor, - border: '1px double '.concat(_.hoveredSpan.borderColor), - color: _.hoveredSpan.color, + t.blockedOutOfRangeStyles = S; + var O = { + background: y.hoveredSpan.backgroundColor, + border: '1px double '.concat(y.hoveredSpan.borderColor), + color: y.hoveredSpan.color, hover: { - background: _.hoveredSpan.backgroundColor_hover, - border: '1px double '.concat(_.hoveredSpan.borderColor), - color: _.hoveredSpan.color_active + background: y.hoveredSpan.backgroundColor_hover, + border: '1px double '.concat(y.hoveredSpan.borderColor), + color: y.hoveredSpan.color_active } }; - t.hoveredSpanStyles = E; - var T = { - background: _.selectedSpan.backgroundColor, - border: '1px double '.concat(_.selectedSpan.borderColor), - color: _.selectedSpan.color, + t.hoveredSpanStyles = O; + var E = { + background: y.selectedSpan.backgroundColor, + border: '1px double '.concat(y.selectedSpan.borderColor), + color: y.selectedSpan.color, hover: { - background: _.selectedSpan.backgroundColor_hover, - border: '1px double '.concat(_.selectedSpan.borderColor), - color: _.selectedSpan.color_active + background: y.selectedSpan.backgroundColor_hover, + border: '1px double '.concat(y.selectedSpan.borderColor), + color: y.selectedSpan.color_active } }; - t.selectedSpanStyles = T; - var C = { borderStyle: 'solid', hover: { borderStyle: 'solid' } }; - t.lastInRangeStyles = C; - var L = { - background: _.selected.backgroundColor, - border: '1px double '.concat(_.selected.borderColor), - color: _.selected.color, + t.selectedSpanStyles = E; + var A = { borderStyle: 'solid', hover: { borderStyle: 'solid' } }; + t.lastInRangeStyles = A; + var T = { + background: y.selected.backgroundColor, + border: '1px double '.concat(y.selected.borderColor), + color: y.selected.color, hover: { - background: _.selected.backgroundColor_hover, - border: '1px double '.concat(_.selected.borderColor), - color: _.selected.color_active + background: y.selected.backgroundColor_hover, + border: '1px double '.concat(y.selected.borderColor), + color: y.selected.color_active } }; - t.selectedStyles = L; - var P = { + t.selectedStyles = T; + var C = { day: (0, a.default)(), daySize: u.DAY_SIZE, isOutsideDay: !1, @@ -218234,17 +218821,17 @@ object-assign onDayMouseLeave: function() {}, renderDayContents: null, ariaLabelFormat: 'dddd, LL', - defaultStyles: w, - outsideStyles: M, + defaultStyles: _, + outsideStyles: w, todayStyles: {}, - highlightedCalendarStyles: k, - blockedMinNightsStyles: S, - blockedCalendarStyles: A, - blockedOutOfRangeStyles: O, - hoveredSpanStyles: E, - selectedSpanStyles: T, - lastInRangeStyles: C, - selectedStyles: L, + highlightedCalendarStyles: x, + blockedMinNightsStyles: M, + blockedCalendarStyles: k, + blockedOutOfRangeStyles: S, + hoveredSpanStyles: O, + selectedSpanStyles: E, + lastInRangeStyles: A, + selectedStyles: T, selectedStartStyles: {}, selectedEndStyles: {}, afterHoveredStartStyles: {}, @@ -218252,18 +218839,24 @@ object-assign lastDayOfWeekStyles: {}, phrases: s.CalendarDayPhrases }, - D = (function(e) { + L = (function(e) { function t() { var e, n; - p(this, t); + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, t); for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) o[i] = arguments[i]; return ( - ((n = h( - this, - (e = g(t)).call.apply(e, [this].concat(o)) - )).state = { isHovered: !1 }), - (n.setButtonRef = n.setButtonRef.bind(v(v(n)))), + ((n = (function(e, t) { + return !t || ('object' !== f(t) && 'function' != typeof t) + ? b(e) + : t; + })(this, (e = p(t)).call.apply(e, [this].concat(o)))).state = { + isHovered: !1 + }), + (n.setButtonRef = n.setButtonRef.bind(b(b(n)))), n ); } @@ -218276,9 +218869,9 @@ object-assign (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } })), - t && y(e, t); + t && m(e, t); })(t, e), - b(t, [ + g(t, [ { key: !o.default.PureComponent && 'shouldComponentUpdate', value: function(e, t) { @@ -218286,7 +218879,7 @@ object-assign } } ]), - b(t, [ + g(t, [ { key: 'componentDidUpdate', value: function(e) { @@ -218348,24 +218941,24 @@ object-assign m = t.outsideStyles, b = t.todayStyles, y = t.firstDayOfWeekStyles, - v = t.lastDayOfWeekStyles, - _ = t.highlightedCalendarStyles, - w = t.blockedMinNightsStyles, + _ = t.lastDayOfWeekStyles, + w = t.highlightedCalendarStyles, + x = t.blockedMinNightsStyles, M = t.blockedCalendarStyles, k = t.blockedOutOfRangeStyles, S = t.hoveredSpanStyles, - A = t.selectedSpanStyles, - O = t.lastInRangeStyles, - E = t.selectedStyles, + O = t.selectedSpanStyles, + E = t.lastInRangeStyles, + A = t.selectedStyles, T = t.selectedStartStyles, C = t.selectedEndStyles, L = t.afterHoveredStartStyles, P = this.state.isHovered; if (!n) return o.default.createElement('td', null); var D = (0, c.default)(n, r, a, u, h), - z = D.daySizeStyles, - N = D.useDefaultCursor, - j = D.selected, + j = D.daySizeStyles, + z = D.useDefaultCursor, + N = D.selected, R = D.hoveredSpan, I = D.isOutsideRange, F = D.ariaLabel; @@ -218375,24 +218968,24 @@ object-assign {}, (0, i.css)( p.CalendarDay, - N && p.CalendarDay__defaultCursor, - z, - x(g, P), - s && x(m, P), - u.has('today') && x(b, P), - u.has('first-day-of-week') && x(y, P), - u.has('last-day-of-week') && x(v, P), - u.has('highlighted-calendar') && x(_, P), - u.has('blocked-minimum-nights') && x(w, P), - u.has('blocked-calendar') && x(M, P), - R && x(S, P), - u.has('after-hovered-start') && x(L, P), - u.has('selected-span') && x(A, P), - u.has('last-in-range') && x(O, P), - j && x(E, P), - u.has('selected-start') && x(T, P), - u.has('selected-end') && x(C, P), - I && x(k, P) + z && p.CalendarDay__defaultCursor, + j, + v(g, P), + s && v(m, P), + u.has('today') && v(b, P), + u.has('first-day-of-week') && v(y, P), + u.has('last-day-of-week') && v(_, P), + u.has('highlighted-calendar') && v(w, P), + u.has('blocked-minimum-nights') && v(x, P), + u.has('blocked-calendar') && v(M, P), + R && v(S, P), + u.has('after-hovered-start') && v(L, P), + u.has('selected-span') && v(O, P), + u.has('last-in-range') && v(E, P), + N && v(A, P), + u.has('selected-start') && v(T, P), + u.has('selected-end') && v(C, P), + I && v(k, P) ), { role: 'button', @@ -218425,10 +219018,10 @@ object-assign t ); })(o.default.PureComponent || o.default.Component); - (t.PureCustomizableCalendarDay = D), - (D.propTypes = {}), - (D.defaultProps = P); - var z = (0, i.withStyles)( + (t.PureCustomizableCalendarDay = L), + (L.propTypes = {}), + (L.defaultProps = C); + var P = (0, i.withStyles)( function(e) { return { CalendarDay: { @@ -218442,8 +219035,8 @@ object-assign }; }, { pureComponent: void 0 !== o.default.PureComponent } - )(D); - t.default = z; + )(L); + t.default = P; }, function(e, t, n) { 'use strict'; @@ -218648,32 +219241,35 @@ object-assign s = (r.day() + 7 - n) % 7, c = (n + 6 - a.day()) % 7, u = r.clone().subtract(s, 'day'), - l = a.clone().add(c, 'day'), - f = l.diff(u, 'days') + 1, - d = u.clone(), - p = [], - h = 0; - h < f; - h += 1 + l = + a + .clone() + .add(c, 'day') + .diff(u, 'days') + 1, + f = u.clone(), + d = [], + p = 0; + p < l; + p += 1 ) { - h % 7 == 0 && p.push([]); - var g = null; - ((h >= s && h < f - c) || t) && (g = d.clone()), - p[p.length - 1].push(g), - d.add(1, 'day'); + p % 7 == 0 && d.push([]); + var h = null; + ((p >= s && p < l - c) || t) && (h = f.clone()), + d[d.length - 1].push(h), + f.add(1, 'day'); } - return p; + return d; }); var r, - o = (r = n(2)) && r.__esModule ? r : { default: r }, - i = n(7); + o = (r = n(4)) && r.__esModule ? r : { default: r }, + i = n(15); }, function(e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = function() { - return !( - 'undefined' == typeof window || !('TransitionEvent' in window) + return !!( + 'undefined' != typeof window && 'TransitionEvent' in window ); }); }, @@ -218698,8 +219294,8 @@ object-assign (0, o.default)(e.clone().subtract(1, 'month'), t) ); }); - var r = i(n(2)), - o = i(n(378)); + var r = i(n(4)), + o = i(n(399)); function i(e) { return e && e.__esModule ? e : { default: e }; } @@ -218713,8 +219309,8 @@ object-assign (0, o.default)(e.clone().add(1, 'month'), t) ); }); - var r = i(n(2)), - o = i(n(378)); + var r = i(n(4)), + o = i(n(399)); function i(e) { return e && e.__esModule ? e : { default: e }; } @@ -218723,26 +219319,26 @@ object-assign 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = t.PureDateRangePicker = void 0); - var r = w(n(32)), - o = w(n(0)), - i = w(n(2)), - a = n(33), - s = n(423), - c = (n(11), n(118)), - u = w(n(70)), - l = w(n(153)), - f = (w(n(383)), n(20)), - d = w(n(387)), - p = w(n(388)), - h = w(n(156)), - g = w(n(72)), - m = w(n(389)), - b = w(n(47)), - y = w(n(390)), - v = w(n(396)), - _ = w(n(94)), - x = n(7); - function w(e) { + var r = x(n(45)), + o = x(n(0)), + i = x(n(4)), + a = n(46), + s = n(451), + c = (n(21), n(133)), + u = x(n(84)), + l = x(n(169)), + f = (x(n(413)), n(31)), + d = x(n(417)), + p = x(n(418)), + h = x(n(174)), + g = x(n(86)), + m = x(n(419)), + b = x(n(60)), + y = x(n(420)), + v = x(n(426)), + _ = x(n(109)), + w = n(15); + function x(e) { return e && e.__esModule ? e : { default: e }; } function M(e) { @@ -218779,7 +219375,7 @@ object-assign return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function A(e, t) { + function O(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -218788,11 +219384,11 @@ object-assign Object.defineProperty(e, r.key, r); } } - function O(e, t, n) { - return t && A(e.prototype, t), n && A(e, n), e; + function E(e, t, n) { + return t && O(e.prototype, t), n && O(e, n), e; } - function E(e, t) { - return (E = + function A(e, t) { + return (A = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; @@ -218848,7 +219444,7 @@ object-assign screenReaderInputMessage: '', showClearDates: !1, showDefaultInputIcon: !1, - inputIconPosition: x.ICON_BEFORE_POSITION, + inputIconPosition: w.ICON_BEFORE_POSITION, customInputIcon: null, customArrowIcon: null, customCloseIcon: null, @@ -218858,9 +219454,9 @@ object-assign regular: !1, keepFocusOnInput: !1, renderMonthText: null, - orientation: x.HORIZONTAL_ORIENTATION, - anchorDirection: x.ANCHOR_LEFT, - openDirection: x.OPEN_DOWN, + orientation: w.HORIZONTAL_ORIENTATION, + anchorDirection: w.ANCHOR_LEFT, + openDirection: w.OPEN_DOWN, horizontalMargin: 0, withPortal: !1, withFullScreenPortal: !1, @@ -218871,14 +219467,14 @@ object-assign keepOpenOnDateSelect: !1, reopenPickerOnClearDates: !1, renderCalendarInfo: null, - calendarInfoPosition: x.INFO_POSITION_BOTTOM, + calendarInfoPosition: w.INFO_POSITION_BOTTOM, hideKeyboardShortcutsPanel: !1, - daySize: x.DAY_SIZE, + daySize: w.DAY_SIZE, isRTL: !1, firstDayOfWeek: null, verticalHeight: null, transitionDuration: void 0, - verticalSpacing: x.DEFAULT_VERTICAL_SPACING, + verticalSpacing: w.DEFAULT_VERTICAL_SPACING, horizontalMonthPadding: void 0, navPrev: null, navNext: null, @@ -218956,9 +219552,9 @@ object-assign (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } })), - t && E(e, t); + t && A(e, t); })(t, e), - O(t, [ + E(t, [ { key: !o.default.PureComponent && 'shouldComponentUpdate', value: function(e, t) { @@ -218966,7 +219562,7 @@ object-assign } } ]), - O(t, [ + E(t, [ { key: 'componentDidMount', value: function() { @@ -219045,7 +219641,7 @@ object-assign var e = this.props, t = e.focusedInput, n = e.onFocusChange; - t || n(x.START_DATE), + t || n(w.START_DATE), this.setState({ isDateRangePickerInputFocused: !1, isDayPickerFocused: !0, @@ -219110,7 +219706,7 @@ object-assign key: 'isOpened', value: function() { var e = this.props.focusedInput; - return e === x.START_DATE || e === x.END_DATE; + return e === w.START_DATE || e === w.END_DATE; } }, { @@ -219139,11 +219735,11 @@ object-assign i = e.withFullScreenPortal, a = e.appendToBody, s = this.state.dayPickerContainerStyles, - c = n === x.ANCHOR_LEFT; + c = n === w.ANCHOR_LEFT; if (!o && !i) { var u = this.dayPickerContainer.getBoundingClientRect(), l = s[n] || 0, - f = c ? u[x.ANCHOR_RIGHT] : u[x.ANCHOR_LEFT]; + f = c ? u[w.ANCHOR_RIGHT] : u[w.ANCHOR_LEFT]; this.setState({ dayPickerContainerStyles: C( {}, @@ -219201,20 +219797,20 @@ object-assign m = e.onPrevMonthClick, b = e.onNextMonthClick, y = e.onDatesChange, - w = e.onFocusChange, + x = e.onFocusChange, M = e.withPortal, S = e.withFullScreenPortal, - A = e.daySize, - O = e.enableOutsideDays, - E = e.focusedInput, + O = e.daySize, + E = e.enableOutsideDays, + A = e.focusedInput, T = e.startDate, C = e.startDateOffset, L = e.endDate, P = e.endDateOffset, D = e.minimumNights, - z = e.keepOpenOnDateSelect, - N = e.renderCalendarDay, - j = e.renderDayContents, + j = e.keepOpenOnDateSelect, + z = e.renderCalendarDay, + N = e.renderDayContents, R = e.renderCalendarInfo, I = e.renderMonthElement, F = e.calendarInfoPosition, @@ -219259,16 +219855,16 @@ object-assign { ref: this.setDayPickerContainerRef }, (0, a.css)( K.DateRangePicker_picker, - t === x.ANCHOR_LEFT && + t === w.ANCHOR_LEFT && K.DateRangePicker_picker__directionLeft, - t === x.ANCHOR_RIGHT && + t === w.ANCHOR_RIGHT && K.DateRangePicker_picker__directionRight, - l === x.HORIZONTAL_ORIENTATION && + l === w.HORIZONTAL_ORIENTATION && K.DateRangePicker_picker__horizontal, - l === x.VERTICAL_ORIENTATION && + l === w.VERTICAL_ORIENTATION && K.DateRangePicker_picker__vertical, - !fe && n === x.OPEN_DOWN && { top: le + J }, - !fe && n === x.OPEN_UP && { bottom: le + J }, + !fe && n === w.OPEN_DOWN && { top: le + J }, + !fe && n === w.OPEN_UP && { bottom: le + J }, fe && K.DateRangePicker_picker__portal, S && K.DateRangePicker_picker__fullScreenPortal, X && K.DateRangePicker_picker__rtl, @@ -219278,14 +219874,14 @@ object-assign ), o.default.createElement(v.default, { orientation: l, - enableOutsideDays: O, + enableOutsideDays: E, numberOfMonths: u, onPrevMonthClick: m, onNextMonthClick: b, onDatesChange: y, - onFocusChange: w, + onFocusChange: x, onClose: W, - focusedInput: E, + focusedInput: A, startDate: T, startDateOffset: C, endDate: L, @@ -219293,7 +219889,7 @@ object-assign monthFormat: f, renderMonthText: d, withPortal: fe, - daySize: A, + daySize: O, initialVisibleMonth: ce, hideKeyboardShortcutsPanel: H, navPrev: p, @@ -219302,9 +219898,9 @@ object-assign isOutsideRange: c, isDayHighlighted: s, isDayBlocked: r, - keepOpenOnDateSelect: z, - renderCalendarDay: N, - renderDayContents: j, + keepOpenOnDateSelect: j, + renderCalendarDay: z, + renderDayContents: N, renderCalendarInfo: R, renderMonthElement: I, calendarInfoPosition: F, @@ -219354,42 +219950,42 @@ object-assign b = e.customCloseIcon, v = e.disabled, _ = e.required, - w = e.readOnly, + x = e.readOnly, M = e.openDirection, S = e.phrases, - A = e.isOutsideRange, - O = e.minimumNights, - E = e.withPortal, + O = e.isOutsideRange, + E = e.minimumNights, + A = e.withPortal, T = e.withFullScreenPortal, C = e.displayFormat, L = e.reopenPickerOnClearDates, P = e.keepOpenOnDateSelect, D = e.onDatesChange, - z = e.onClose, - N = e.isRTL, - j = e.noBorder, + j = e.onClose, + z = e.isRTL, + N = e.noBorder, R = e.block, I = e.verticalSpacing, F = e.small, q = e.regular, B = e.styles, H = this.state.isDateRangePickerInputFocused, - Y = !E && !T, - W = I < x.FANG_HEIGHT_PX, + Y = !A && !T, + W = I < w.FANG_HEIGHT_PX, V = o.default.createElement( y.default, { startDate: t, startDateId: n, startDatePlaceholderText: r, - isStartDateFocused: u === x.START_DATE, + isStartDateFocused: u === w.START_DATE, endDate: i, endDateId: s, endDatePlaceholderText: c, - isEndDateFocused: u === x.END_DATE, + isEndDateFocused: u === w.END_DATE, displayFormat: C, showClearDates: d, - showCaret: !E && !T && !W, + showCaret: !A && !T && !W, showDefaultInputIcon: p, inputIconPosition: h, customInputIcon: g, @@ -219397,23 +219993,23 @@ object-assign customCloseIcon: b, disabled: v, required: _, - readOnly: w, + readOnly: x, openDirection: M, reopenPickerOnClearDates: L, keepOpenOnDateSelect: P, - isOutsideRange: A, - minimumNights: O, + isOutsideRange: O, + minimumNights: E, withFullScreenPortal: T, onDatesChange: D, onFocusChange: this.onDateRangePickerInputFocus, onKeyDownArrowDown: this.onDayPickerFocus, onKeyDownQuestionMark: this.showKeyboardShortcutsPanel, - onClose: z, + onClose: j, phrases: S, screenReaderMessage: f, isFocused: H, - isRTL: N, - noBorder: j, + isRTL: z, + noBorder: N, block: R, small: F, regular: q, @@ -219445,7 +220041,7 @@ object-assign ); })(o.default.PureComponent || o.default.Component); (t.PureDateRangePicker = D), (D.propTypes = {}), (D.defaultProps = P); - var z = (0, a.withStyles)( + var j = (0, a.withStyles)( function(e) { var t = e.reactDates, n = t.color, @@ -219505,7 +220101,7 @@ object-assign }, { pureComponent: void 0 !== o.default.PureComponent } )(D); - t.default = z; + t.default = j; }, function(e, t, n) { 'use strict'; @@ -219526,46 +220122,46 @@ object-assign })(), o = l(n(0)), i = l(n(1)), - a = n(11), - s = n(118), - c = l(n(154)), - u = l(n(733)); + a = n(21), + s = n(133), + c = l(n(170)), + u = l(n(786)); function l(e) { return e && e.__esModule ? e : { default: e }; } - function f(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function d(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) ? e : t; - } - var p = { + var f = { BLOCK: 'block', FLEX: 'flex', INLINE: 'inline', INLINE_BLOCK: 'inline-block', CONTENTS: 'contents' }, - h = (0, a.forbidExtraProps)({ + d = (0, a.forbidExtraProps)({ children: i.default.node.isRequired, onOutsideClick: i.default.func.isRequired, disabled: i.default.bool, useCapture: i.default.bool, - display: i.default.oneOf((0, c.default)(p)) + display: i.default.oneOf((0, c.default)(f)) }), - g = { disabled: !1, useCapture: !0, display: p.BLOCK }, - m = (function(e) { + p = { disabled: !1, useCapture: !0, display: f.BLOCK }, + h = (function(e) { function t() { var e; - f(this, t); + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, t); for (var n = arguments.length, r = Array(n), o = 0; o < n; o++) r[o] = arguments[o]; - var i = d( + var i = (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })( this, (e = t.__proto__ || Object.getPrototypeOf(t)).call.apply( e, @@ -219691,7 +220287,7 @@ object-assign { ref: this.setChildNodeRef, style: - n !== p.BLOCK && (0, c.default)(p).includes(n) + n !== f.BLOCK && (0, c.default)(f).includes(n) ? { display: n } : void 0 }, @@ -219703,67 +220299,1639 @@ object-assign t ); })(o.default.Component); - (t.default = m), (m.propTypes = h), (m.defaultProps = g); + (t.default = h), (h.propTypes = d), (h.defaultProps = p); }, function(e, t, n) { 'use strict'; - var r = n(115); - e.exports = r.call(Function.call, Object.prototype.hasOwnProperty); + e.exports = n(771); }, function(e, t, n) { 'use strict'; - e.exports = n(728); + var r = n(71)('%Array%'), + o = n(171)(), + i = n(772), + a = n(405), + s = n(173), + c = s(r.prototype.push), + u = s(r.prototype.slice), + l = s(r.prototype.join), + f = a(a({}, i), { + SameValueNonNumber: function(e, t) { + if ('number' == typeof e || typeof e != typeof t) + throw new TypeError( + 'SameValueNonNumber requires two non-number values of the same type.' + ); + return this.SameValue(e, t); + }, + IterableToArrayLike: function(e) { + var t; + if (o) t = this.GetMethod(e, Symbol.iterator); + else if (this.IsArray(e)) + t = function() { + var e = -1, + t = this; + return { + next: function() { + return { done: (e += 1) >= t.length, value: t[e] }; + } + }; + }; + else if ('String' === this.Type(e)) { + var n = this; + t = function() { + var t = 0; + return { + next: function() { + var r = n.AdvanceStringIndex(e, t, !0), + o = l(u(e, t, r), ''); + return (t = r), { done: r > e.length, value: o }; + } + }; + }; + } + if (void 0 !== t) { + for (var r = this.GetIterator(e, t), i = [], a = !0; a; ) + if ((a = this.IteratorStep(r))) { + var s = this.IteratorValue(a); + c(i, s); + } + return i; + } + return this.ToObject(e); + } + }); + e.exports = f; }, function(e, t, n) { 'use strict'; - var r = n(155)('%TypeError%'); - e.exports = function(e, t) { - if (null == e) throw new r(t || 'Cannot call method on ' + e); - return e; + var r = n(72), + o = n(773), + i = n(168), + a = n(777), + s = n(71), + c = s('%TypeError%'), + u = s('%RangeError%'), + l = s('%SyntaxError%'), + f = s('%Array%'), + d = f.prototype, + p = s('%String%'), + h = s('%Object%'), + g = s('%Number%'), + m = s('%Symbol%', !0), + b = s('%RegExp%'), + y = s('%Promise%', !0), + v = h.preventExtensions, + _ = n(171)(), + w = n(402), + x = n(403), + M = n(404), + k = Math.pow(2, 32) - 1, + S = g.MAX_SAFE_INTEGER || Math.pow(2, 53) - 1, + O = n(405), + E = n(406), + A = n(407), + T = n(779), + C = n(780), + L = n(408), + P = n(781), + D = n(409), + j = parseInt, + z = n(173), + N = y ? z(s('%PromiseProto_then%')) : null, + R = z(f.prototype.slice), + I = z(p.prototype.slice), + F = z(b.prototype.test, /^0b[01]+$/i), + q = z(b.prototype.test, /^0o[0-7]+$/i), + B = z(b.prototype.test, /^[0-9]$/), + H = z(b.prototype.exec), + Y = new b('[' + ['…', '​', '￾'].join('') + ']', 'g'), + W = z(b.prototype.test, Y), + V = z(b.prototype.test, /^[-+]0x[0-9a-f]+$/i), + U = z(p.prototype.charCodeAt), + X = z(h.prototype.propertyIsEnumerable), + G = z(h.prototype.toString), + K = z(s('%NumberPrototype%').valueOf), + $ = z(s('%BooleanPrototype%').valueOf), + Q = z(s('%StringPrototype%').valueOf), + J = z(s('%DatePrototype%').valueOf), + Z = _ && z(s('%SymbolPrototype%').toString), + ee = Math.floor, + te = Math.abs, + ne = h.create, + re = h.getOwnPropertyDescriptor, + oe = h.getOwnPropertyNames, + ie = h.getOwnPropertySymbols, + ae = h.isExtensible, + se = h.defineProperty, + ce = + Object.setPrototypeOf || + ([].__proto__ !== Array.prototype + ? null + : function(e, t) { + return (e.__proto__ = t), e; + }), + ue = function(e, t, n, r) { + if (!se) { + if (!e.IsDataDescriptor(r)) return !1; + if (!r['[[Configurable]]'] || !r['[[Writable]]']) return !1; + if (n in t && X(t, n) !== !!r['[[Enumerable]]']) return !1; + var o = r['[[Value]]']; + return (t[n] = o), e.SameValue(t[n], o); + } + return se(t, n, e.FromPropertyDescriptor(r)), !0; + }, + le = ['\t\n\v\f\r   ᠎    ', '          \u2028', '\u2029\ufeff'].join( + '' + ), + fe = new RegExp('(^[' + le + ']+)|([' + le + ']+$)', 'g'), + de = z(p.prototype.replace), + pe = n(782), + he = n(784), + ge = O(O({}, pe), { + Call: function(e, t) { + var n = arguments.length > 2 ? arguments[2] : []; + if (!this.IsCallable(e)) throw new c(a(e) + ' is not a function'); + return e.apply(t, n); + }, + ToPrimitive: o, + ToNumber: function(e) { + var t = T(e) ? e : o(e, g); + if ('symbol' == typeof t) + throw new c('Cannot convert a Symbol value to a number'); + if ('string' == typeof t) { + if (F(t)) return this.ToNumber(j(I(t, 2), 2)); + if (q(t)) return this.ToNumber(j(I(t, 2), 8)); + if (W(t) || V(t)) return NaN; + var n = (function(e) { + return de(e, fe, ''); + })(t); + if (n !== t) return this.ToNumber(n); + } + return g(t); + }, + ToInt16: function(e) { + var t = this.ToUint16(e); + return t >= 32768 ? t - 65536 : t; + }, + ToInt8: function(e) { + var t = this.ToUint8(e); + return t >= 128 ? t - 256 : t; + }, + ToUint8: function(e) { + var t = this.ToNumber(e); + if (x(t) || 0 === t || !M(t)) return 0; + var n = E(t) * ee(te(t)); + return A(n, 256); + }, + ToUint8Clamp: function(e) { + var t = this.ToNumber(e); + if (x(t) || t <= 0) return 0; + if (t >= 255) return 255; + var n = ee(e); + return n + 0.5 < t + ? n + 1 + : t < n + 0.5 + ? n + : n % 2 != 0 + ? n + 1 + : n; + }, + ToString: function(e) { + if ('symbol' == typeof e) + throw new c('Cannot convert a Symbol value to a string'); + return p(e); + }, + ToObject: function(e) { + return this.RequireObjectCoercible(e), h(e); + }, + ToPropertyKey: function(e) { + var t = this.ToPrimitive(e, p); + return 'symbol' == typeof t ? t : this.ToString(t); + }, + ToLength: function(e) { + var t = this.ToInteger(e); + return t <= 0 ? 0 : t > S ? S : t; + }, + CanonicalNumericIndexString: function(e) { + if ('[object String]' !== G(e)) throw new c('must be a string'); + if ('-0' === e) return -0; + var t = this.ToNumber(e); + return this.SameValue(this.ToString(t), e) ? t : void 0; + }, + RequireObjectCoercible: pe.CheckObjectCoercible, + IsArray: + f.isArray || + function(e) { + return '[object Array]' === G(e); + }, + IsConstructor: function(e) { + return 'function' == typeof e && !!e.prototype; + }, + IsExtensible: v + ? function(e) { + return !T(e) && ae(e); + } + : function(e) { + return !0; + }, + IsInteger: function(e) { + if ('number' != typeof e || x(e) || !M(e)) return !1; + var t = te(e); + return ee(t) === t; + }, + IsPropertyKey: function(e) { + return 'string' == typeof e || 'symbol' == typeof e; + }, + IsRegExp: function(e) { + if (!e || 'object' != typeof e) return !1; + if (_) { + var t = e[m.match]; + if (void 0 !== t) return pe.ToBoolean(t); + } + return he(e); + }, + SameValueZero: function(e, t) { + return e === t || (x(e) && x(t)); + }, + GetV: function(e, t) { + if (!this.IsPropertyKey(t)) + throw new c('Assertion failed: IsPropertyKey(P) is not true'); + return this.ToObject(e)[t]; + }, + GetMethod: function(e, t) { + if (!this.IsPropertyKey(t)) + throw new c('Assertion failed: IsPropertyKey(P) is not true'); + var n = this.GetV(e, t); + if (null != n) { + if (!this.IsCallable(n)) throw new c(t + 'is not a function'); + return n; + } + }, + Get: function(e, t) { + if ('Object' !== this.Type(e)) + throw new c('Assertion failed: Type(O) is not Object'); + if (!this.IsPropertyKey(t)) + throw new c( + 'Assertion failed: IsPropertyKey(P) is not true, got ' + a(t) + ); + return e[t]; + }, + Type: function(e) { + return 'symbol' == typeof e ? 'Symbol' : pe.Type(e); + }, + SpeciesConstructor: function(e, t) { + if ('Object' !== this.Type(e)) + throw new c('Assertion failed: Type(O) is not Object'); + var n = e.constructor; + if (void 0 === n) return t; + if ('Object' !== this.Type(n)) + throw new c('O.constructor is not an Object'); + var r = _ && m.species ? n[m.species] : void 0; + if (null == r) return t; + if (this.IsConstructor(r)) return r; + throw new c('no constructor found'); + }, + FromPropertyDescriptor: function(e) { + if (void 0 === e) return e; + w(this, 'Property Descriptor', 'Desc', e); + var t = {}; + return ( + '[[Value]]' in e && (t.value = e['[[Value]]']), + '[[Writable]]' in e && (t.writable = e['[[Writable]]']), + '[[Get]]' in e && (t.get = e['[[Get]]']), + '[[Set]]' in e && (t.set = e['[[Set]]']), + '[[Enumerable]]' in e && (t.enumerable = e['[[Enumerable]]']), + '[[Configurable]]' in e && + (t.configurable = e['[[Configurable]]']), + t + ); + }, + CompletePropertyDescriptor: function(e) { + return ( + w(this, 'Property Descriptor', 'Desc', e), + this.IsGenericDescriptor(e) || this.IsDataDescriptor(e) + ? (r(e, '[[Value]]') || (e['[[Value]]'] = void 0), + r(e, '[[Writable]]') || (e['[[Writable]]'] = !1)) + : (r(e, '[[Get]]') || (e['[[Get]]'] = void 0), + r(e, '[[Set]]') || (e['[[Set]]'] = void 0)), + r(e, '[[Enumerable]]') || (e['[[Enumerable]]'] = !1), + r(e, '[[Configurable]]') || (e['[[Configurable]]'] = !1), + e + ); + }, + Set: function(e, t, n, r) { + if ('Object' !== this.Type(e)) throw new c('O must be an Object'); + if (!this.IsPropertyKey(t)) throw new c('P must be a Property Key'); + if ('Boolean' !== this.Type(r)) + throw new c('Throw must be a Boolean'); + if (r) return (e[t] = n), !0; + try { + e[t] = n; + } catch (e) { + return !1; + } + }, + HasOwnProperty: function(e, t) { + if ('Object' !== this.Type(e)) throw new c('O must be an Object'); + if (!this.IsPropertyKey(t)) throw new c('P must be a Property Key'); + return r(e, t); + }, + HasProperty: function(e, t) { + if ('Object' !== this.Type(e)) throw new c('O must be an Object'); + if (!this.IsPropertyKey(t)) throw new c('P must be a Property Key'); + return t in e; + }, + IsConcatSpreadable: function(e) { + if ('Object' !== this.Type(e)) return !1; + if (_ && 'symbol' == typeof m.isConcatSpreadable) { + var t = this.Get(e, Symbol.isConcatSpreadable); + if (void 0 !== t) return this.ToBoolean(t); + } + return this.IsArray(e); + }, + Invoke: function(e, t) { + if (!this.IsPropertyKey(t)) throw new c('P must be a Property Key'); + var n = R(arguments, 2), + r = this.GetV(e, t); + return this.Call(r, e, n); + }, + GetIterator: function(e, t) { + var n = t; + if (arguments.length < 2) { + if (!_) + throw new SyntaxError( + 'GetIterator depends on native Symbol support when `method` is not passed' + ); + n = this.GetMethod(e, m.iterator); + } + var r = this.Call(n, e); + if ('Object' !== this.Type(r)) + throw new c('iterator must return an object'); + return r; + }, + IteratorNext: function(e, t) { + var n = this.Invoke(e, 'next', arguments.length < 2 ? [] : [t]); + if ('Object' !== this.Type(n)) + throw new c('iterator next must return an object'); + return n; + }, + IteratorComplete: function(e) { + if ('Object' !== this.Type(e)) + throw new c('Assertion failed: Type(iterResult) is not Object'); + return this.ToBoolean(this.Get(e, 'done')); + }, + IteratorValue: function(e) { + if ('Object' !== this.Type(e)) + throw new c('Assertion failed: Type(iterResult) is not Object'); + return this.Get(e, 'value'); + }, + IteratorStep: function(e) { + var t = this.IteratorNext(e); + return !0 !== this.IteratorComplete(t) && t; + }, + IteratorClose: function(e, t) { + if ('Object' !== this.Type(e)) + throw new c('Assertion failed: Type(iterator) is not Object'); + if (!this.IsCallable(t)) + throw new c( + 'Assertion failed: completion is not a thunk for a Completion Record' + ); + var n, + r = t, + o = this.GetMethod(e, 'return'); + if (void 0 === o) return r(); + try { + var i = this.Call(o, e, []); + } catch (e) { + throw ((n = r()), (r = null), e); + } + if (((n = r()), (r = null), 'Object' !== this.Type(i))) + throw new c('iterator .return must return an object'); + return n; + }, + CreateIterResultObject: function(e, t) { + if ('Boolean' !== this.Type(t)) + throw new c('Assertion failed: Type(done) is not Boolean'); + return { value: e, done: t }; + }, + RegExpExec: function(e, t) { + if ('Object' !== this.Type(e)) throw new c('R must be an Object'); + if ('String' !== this.Type(t)) throw new c('S must be a String'); + var n = this.Get(e, 'exec'); + if (this.IsCallable(n)) { + var r = this.Call(n, e, [t]); + if (null === r || 'Object' === this.Type(r)) return r; + throw new c('"exec" method must return `null` or an Object'); + } + return H(e, t); + }, + ArraySpeciesCreate: function(e, t) { + if (!this.IsInteger(t) || t < 0) + throw new c('Assertion failed: length must be an integer >= 0'); + var n, + r = 0 === t ? 0 : t; + if ( + (this.IsArray(e) && + ((n = this.Get(e, 'constructor')), + 'Object' === this.Type(n) && + _ && + m.species && + null === (n = this.Get(n, m.species)) && + (n = void 0)), + void 0 === n) + ) + return f(r); + if (!this.IsConstructor(n)) throw new c('C must be a constructor'); + return new n(r); + }, + CreateDataProperty: function(e, t, n) { + if ('Object' !== this.Type(e)) + throw new c('Assertion failed: Type(O) is not Object'); + if (!this.IsPropertyKey(t)) + throw new c('Assertion failed: IsPropertyKey(P) is not true'); + var r = re(e, t), + o = r || this.IsExtensible(e); + return ( + !((r && (!r.writable || !r.configurable)) || !o) && + ue(this, e, t, { + '[[Configurable]]': !0, + '[[Enumerable]]': !0, + '[[Value]]': n, + '[[Writable]]': !0 + }) + ); + }, + CreateDataPropertyOrThrow: function(e, t, n) { + if ('Object' !== this.Type(e)) + throw new c('Assertion failed: Type(O) is not Object'); + if (!this.IsPropertyKey(t)) + throw new c('Assertion failed: IsPropertyKey(P) is not true'); + var r = this.CreateDataProperty(e, t, n); + if (!r) throw new c('unable to create data property'); + return r; + }, + ObjectCreate: function(e, t) { + if (null !== e && 'Object' !== this.Type(e)) + throw new c('Assertion failed: proto must be null or an object'); + var n = arguments.length < 2 ? [] : t; + if (n.length > 0) + throw new l('es-abstract does not yet support internal slots'); + if (null === e && !ne) + throw new l( + 'native Object.create support is required to create null objects' + ); + return ne(e); + }, + AdvanceStringIndex: function(e, t, n) { + if ('String' !== this.Type(e)) throw new c('S must be a String'); + if (!this.IsInteger(t) || t < 0 || t > S) + throw new c( + 'Assertion failed: length must be an integer >= 0 and <= 2**53' + ); + if ('Boolean' !== this.Type(n)) + throw new c('Assertion failed: unicode must be a Boolean'); + if (!n) return t + 1; + if (t + 1 >= e.length) return t + 1; + var r = U(e, t); + if (r < 55296 || r > 56319) return t + 1; + var o = U(e, t + 1); + return o < 56320 || o > 57343 ? t + 1 : t + 2; + }, + CreateMethodProperty: function(e, t, n) { + if ('Object' !== this.Type(e)) + throw new c('Assertion failed: Type(O) is not Object'); + if (!this.IsPropertyKey(t)) + throw new c('Assertion failed: IsPropertyKey(P) is not true'); + return ue(this, e, t, { + '[[Configurable]]': !0, + '[[Enumerable]]': !1, + '[[Value]]': n, + '[[Writable]]': !0 + }); + }, + DefinePropertyOrThrow: function(e, t, n) { + if ('Object' !== this.Type(e)) + throw new c('Assertion failed: Type(O) is not Object'); + if (!this.IsPropertyKey(t)) + throw new c('Assertion failed: IsPropertyKey(P) is not true'); + var r = D(this, n) ? n : this.ToPropertyDescriptor(n); + if (!D(this, r)) + throw new c( + 'Assertion failed: Desc is not a valid Property Descriptor' + ); + return ue(this, e, t, r); + }, + DeletePropertyOrThrow: function(e, t) { + if ('Object' !== this.Type(e)) + throw new c('Assertion failed: Type(O) is not Object'); + if (!this.IsPropertyKey(t)) + throw new c('Assertion failed: IsPropertyKey(P) is not true'); + var n = delete e[t]; + if (!n) throw new TypeError('Attempt to delete property failed.'); + return n; + }, + EnumerableOwnNames: function(e) { + if ('Object' !== this.Type(e)) + throw new c('Assertion failed: Type(O) is not Object'); + return i(e); + }, + thisNumberValue: function(e) { + return 'Number' === this.Type(e) ? e : K(e); + }, + thisBooleanValue: function(e) { + return 'Boolean' === this.Type(e) ? e : $(e); + }, + thisStringValue: function(e) { + return 'String' === this.Type(e) ? e : Q(e); + }, + thisTimeValue: function(e) { + return J(e); + }, + SetIntegrityLevel: function(e, t) { + if ('Object' !== this.Type(e)) + throw new c('Assertion failed: Type(O) is not Object'); + if ('sealed' !== t && 'frozen' !== t) + throw new c( + 'Assertion failed: `level` must be `"sealed"` or `"frozen"`' + ); + if (!v) + throw new l( + 'SetIntegrityLevel requires native `Object.preventExtensions` support' + ); + if (!v(e)) return !1; + if (!oe) + throw new l( + 'SetIntegrityLevel requires native `Object.getOwnPropertyNames` support' + ); + var n = oe(e), + r = this; + return ( + 'sealed' === t + ? C(n, function(t) { + r.DefinePropertyOrThrow(e, t, { configurable: !1 }); + }) + : 'frozen' === t && + C(n, function(t) { + var n, + o = re(e, t); + void 0 !== o && + ((n = r.IsAccessorDescriptor(r.ToPropertyDescriptor(o)) + ? { configurable: !1 } + : { configurable: !1, writable: !1 }), + r.DefinePropertyOrThrow(e, t, n)); + }), + !0 + ); + }, + TestIntegrityLevel: function(e, t) { + if ('Object' !== this.Type(e)) + throw new c('Assertion failed: Type(O) is not Object'); + if ('sealed' !== t && 'frozen' !== t) + throw new c( + 'Assertion failed: `level` must be `"sealed"` or `"frozen"`' + ); + if (this.IsExtensible(e)) return !1; + var n = oe(e), + r = this; + return ( + 0 === n.length || + L(n, function(n) { + var o = re(e, n); + if (void 0 !== o) { + if (o.configurable) return !1; + if ( + 'frozen' === t && + r.IsDataDescriptor(r.ToPropertyDescriptor(o)) && + o.writable + ) + return !1; + } + return !0; + }) + ); + }, + OrdinaryHasInstance: function(e, t) { + if (!1 === this.IsCallable(e)) return !1; + if ('Object' !== this.Type(t)) return !1; + var n = this.Get(e, 'prototype'); + if ('Object' !== this.Type(n)) + throw new c( + 'OrdinaryHasInstance called on an object with an invalid prototype property.' + ); + return t instanceof e; + }, + OrdinaryHasProperty: function(e, t) { + if ('Object' !== this.Type(e)) + throw new c('Assertion failed: Type(O) is not Object'); + if (!this.IsPropertyKey(t)) + throw new c('Assertion failed: P must be a Property Key'); + return t in e; + }, + InstanceofOperator: function(e, t) { + if ('Object' !== this.Type(e)) + throw new c('Assertion failed: Type(O) is not Object'); + var n = + _ && m.hasInstance ? this.GetMethod(t, m.hasInstance) : void 0; + if (void 0 !== n) return this.ToBoolean(this.Call(n, t, [e])); + if (!this.IsCallable(t)) throw new c('`C` is not Callable'); + return this.OrdinaryHasInstance(t, e); + }, + IsPromise: function(e) { + if ('Object' !== this.Type(e)) return !1; + if (!y) return !1; + try { + N(e); + } catch (e) { + return !1; + } + return !0; + }, + 'Abstract Equality Comparison': function(e, t) { + var n = this.Type(e), + r = this.Type(t); + return n === r + ? e === t + : (null == e && null == t) || + ('Number' === n && 'String' === r + ? this['Abstract Equality Comparison'](e, this.ToNumber(t)) + : 'String' === n && 'Number' === r + ? this['Abstract Equality Comparison'](this.ToNumber(e), t) + : 'Boolean' === n + ? this['Abstract Equality Comparison'](this.ToNumber(e), t) + : 'Boolean' === r + ? this['Abstract Equality Comparison'](e, this.ToNumber(t)) + : ('String' !== n && 'Number' !== n && 'Symbol' !== n) || + 'Object' !== r + ? 'Object' === n && + ('String' === r || 'Number' === r || 'Symbol' === r) && + this['Abstract Equality Comparison']( + this.ToPrimitive(e), + t + ) + : this['Abstract Equality Comparison']( + e, + this.ToPrimitive(t) + )); + }, + ValidateAndApplyPropertyDescriptor: function(e, t, n, r, o) { + var i = this.Type(e); + if ('Undefined' !== i && 'Object' !== i) + throw new c('Assertion failed: O must be undefined or an Object'); + if ('Boolean' !== this.Type(n)) + throw new c('Assertion failed: extensible must be a Boolean'); + if (!D(this, r)) + throw new c( + 'Assertion failed: Desc must be a Property Descriptor' + ); + if ('Undefined' !== this.Type(o) && !D(this, o)) + throw new c( + 'Assertion failed: current must be a Property Descriptor, or undefined' + ); + if ('Undefined' !== i && !this.IsPropertyKey(t)) + throw new c( + 'Assertion failed: if O is not undefined, P must be a Property Key' + ); + if ('Undefined' === this.Type(o)) { + if (!n) return !1; + if (this.IsGenericDescriptor(r) || this.IsDataDescriptor(r)) + 'Undefined' !== i && + ue(this, e, t, { + '[[Configurable]]': r['[[Configurable]]'], + '[[Enumerable]]': r['[[Enumerable]]'], + '[[Value]]': r['[[Value]]'], + '[[Writable]]': r['[[Writable]]'] + }); + else { + if (!this.IsAccessorDescriptor(r)) + throw new c( + 'Assertion failed: Desc is not an accessor descriptor' + ); + if ('Undefined' !== i) return ue(this, e, t, r); + } + return !0; + } + if ( + this.IsGenericDescriptor(r) && + !('[[Configurable]]' in r) && + !('[[Enumerable]]' in r) + ) + return !0; + if (P(this, r, o)) return !0; + if (!o['[[Configurable]]']) { + if (r['[[Configurable]]']) return !1; + if ( + '[[Enumerable]]' in r && + !r['[[Enumerable]]'] == !!o['[[Enumerable]]'] + ) + return !1; + } + if (this.IsGenericDescriptor(r)); + else if (this.IsDataDescriptor(o) !== this.IsDataDescriptor(r)) { + if (!o['[[Configurable]]']) return !1; + this.IsDataDescriptor(o) + ? 'Undefined' !== i && + ue(this, e, t, { + '[[Configurable]]': o['[[Configurable]]'], + '[[Enumerable]]': o['[[Enumerable]]'], + '[[Get]]': void 0 + }) + : 'Undefined' !== i && + ue(this, e, t, { + '[[Configurable]]': o['[[Configurable]]'], + '[[Enumerable]]': o['[[Enumerable]]'], + '[[Value]]': void 0 + }); + } else if (this.IsDataDescriptor(o) && this.IsDataDescriptor(r)) { + if (!o['[[Configurable]]'] && !o['[[Writable]]']) + return ( + !('[[Writable]]' in r && r['[[Writable]]']) && + !( + '[[Value]]' in r && + !this.SameValue(r['[[Value]]'], o['[[Value]]']) + ) + ); + } else { + if ( + !this.IsAccessorDescriptor(o) || + !this.IsAccessorDescriptor(r) + ) + throw new c( + 'Assertion failed: current and Desc are not both data, both accessors, or one accessor and one data.' + ); + if (!o['[[Configurable]]']) + return ( + !( + '[[Set]]' in r && + !this.SameValue(r['[[Set]]'], o['[[Set]]']) + ) && + !( + '[[Get]]' in r && + !this.SameValue(r['[[Get]]'], o['[[Get]]']) + ) + ); + } + return 'Undefined' === i || ue(this, e, t, r); + }, + OrdinaryDefineOwnProperty: function(e, t, n) { + if ('Object' !== this.Type(e)) + throw new c('Assertion failed: O must be an Object'); + if (!this.IsPropertyKey(t)) + throw new c('Assertion failed: P must be a Property Key'); + if (!D(this, n)) + throw new c( + 'Assertion failed: Desc must be a Property Descriptor' + ); + var r = re(e, t), + o = r && this.ToPropertyDescriptor(r), + i = this.IsExtensible(e); + return this.ValidateAndApplyPropertyDescriptor(e, t, i, n, o); + }, + OrdinaryGetOwnProperty: function(e, t) { + if ('Object' !== this.Type(e)) + throw new c('Assertion failed: O must be an Object'); + if (!this.IsPropertyKey(t)) + throw new c('Assertion failed: P must be a Property Key'); + if (r(e, t)) { + if (!re) { + var n = this.IsArray(e) && 'length' === t, + o = this.IsRegExp(e) && 'lastIndex' === t; + return { + '[[Configurable]]': !(n || o), + '[[Enumerable]]': X(e, t), + '[[Value]]': e[t], + '[[Writable]]': !0 + }; + } + return this.ToPropertyDescriptor(re(e, t)); + } + }, + ArrayCreate: function(e) { + if (!this.IsInteger(e) || e < 0) + throw new c( + 'Assertion failed: `length` must be an integer Number >= 0' + ); + if (e > k) throw new u('length is greater than (2**32 - 1)'); + var t = arguments.length > 1 ? arguments[1] : d, + n = []; + if (t !== d) { + if (!ce) + throw new l( + 'ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]' + ); + ce(n, t); + } + return 0 !== e && (n.length = e), n; + }, + ArraySetLength: function(e, t) { + if (!this.IsArray(e)) + throw new c('Assertion failed: A must be an Array'); + if (!D(this, t)) + throw new c( + 'Assertion failed: Desc must be a Property Descriptor' + ); + if (!('[[Value]]' in t)) + return this.OrdinaryDefineOwnProperty(e, 'length', t); + var n = O({}, t), + r = this.ToUint32(t['[[Value]]']); + if (r !== this.ToNumber(t['[[Value]]'])) + throw new u('Invalid array length'); + n['[[Value]]'] = r; + var o = this.OrdinaryGetOwnProperty(e, 'length'); + if (!this.IsDataDescriptor(o)) + throw new c( + 'Assertion failed: an array had a non-data descriptor on `length`' + ); + var i, + a = o['[[Value]]']; + if (r >= a) return this.OrdinaryDefineOwnProperty(e, 'length', n); + if (!o['[[Writable]]']) return !1; + if ( + ('[[Writable]]' in n && !n['[[Writable]]'] + ? ((i = !1), (n['[[Writable]]'] = !0)) + : (i = !0), + !this.OrdinaryDefineOwnProperty(e, 'length', n)) + ) + return !1; + for (; r < a; ) { + if ( + ((a -= 1), + !delete e[this.ToString(a)] && ((n['[[Value]]'] = a + 1), !i)) + ) + return ( + (n['[[Writable]]'] = !1), + this.OrdinaryDefineOwnProperty(e, 'length', n), + !1 + ); + } + return ( + !!i || + this.OrdinaryDefineOwnProperty(e, 'length', { + '[[Writable]]': !1 + }) + ); + }, + CreateHTML: function(e, t, n, r) { + if ('String' !== this.Type(t) || 'String' !== this.Type(n)) + throw new c( + 'Assertion failed: `tag` and `attribute` must be strings' + ); + var o = this.RequireObjectCoercible(e), + i = this.ToString(o), + a = '<' + t; + if ('' !== n) { + var s = this.ToString(r); + a += ' ' + n + '="' + de(s, /\x22/g, '"') + '"'; + } + return a + '>' + i + ''; + }, + GetOwnPropertyKeys: function(e, t) { + if ('Object' !== this.Type(e)) + throw new c('Assertion failed: Type(O) is not Object'); + if ('Symbol' === t) return _ && ie ? ie(e) : []; + if ('String' === t) return oe ? oe(e) : i(e); + throw new c( + 'Assertion failed: `Type` must be `"String"` or `"Symbol"`' + ); + }, + SymbolDescriptiveString: function(e) { + if ('Symbol' !== this.Type(e)) + throw new c('Assertion failed: `sym` must be a Symbol'); + return Z(e); + }, + GetSubstitution: function(e, t, n, r, o) { + if ('String' !== this.Type(e)) + throw new c('Assertion failed: `matched` must be a String'); + var i = e.length; + if ('String' !== this.Type(t)) + throw new c('Assertion failed: `str` must be a String'); + var s = t.length; + if (!this.IsInteger(n) || n < 0 || n > s) + throw new c( + 'Assertion failed: `position` must be a nonnegative integer, and less than or equal to the length of `string`, got ' + + a(n) + ); + var u = this; + if ( + !this.IsArray(r) || + !L(r, function(e, t, n) { + return 'String' === u.Type(e) || !(t in n); + }) + ) + throw new c( + 'Assertion failed: `captures` must be a List of Strings, got ' + + a(r) + ); + if ('String' !== this.Type(o)) + throw new c('Assertion failed: `replacement` must be a String'); + for ( + var l = n + i, f = r.length, d = '', p = 0; + p < o.length; + p += 1 + ) { + var h = o[p], + g = p + 1 >= o.length, + m = p + 2 >= o.length; + if ('$' !== h || g) d += o[p]; + else { + var b = o[p + 1]; + if ('$' === b) (d += '$'), (p += 1); + else if ('&' === b) (d += e), (p += 1); + else if ('`' === b) + (d += 0 === n ? '' : I(t, 0, n - 1)), (p += 1); + else if ("'" === b) (d += l >= s ? '' : I(t, l)), (p += 1); + else { + var y = m ? null : o[p + 2]; + if (!B(b) || '0' === b || (!m && B(y))) + if (B(b) && (m || B(y))) { + var v = b + y, + _ = j(v, 10) - 1; + (d += + v <= f && 'Undefined' === this.Type(r[_]) ? '' : r[_]), + (p += 2); + } else d += '$'; + else { + var w = j(b, 10); + (d += + w <= f && 'Undefined' === this.Type(r[w - 1]) + ? '' + : r[w - 1]), + (p += 1); + } + } + } + } + return d; + } + }); + delete ge.CheckObjectCoercible, (e.exports = ge); + }, + function(e, t, n) { + 'use strict'; + e.exports = n(774); + }, + function(e, t, n) { + 'use strict'; + var r = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator, + o = n(401), + i = n(172), + a = n(775), + s = n(776), + c = function(e, t) { + if (null == e) throw new TypeError('Cannot call method on ' + e); + if ('string' != typeof t || ('number' !== t && 'string' !== t)) + throw new TypeError('hint must be "string" or "number"'); + var n, + r, + a, + s = + 'string' === t + ? ['toString', 'valueOf'] + : ['valueOf', 'toString']; + for (a = 0; a < s.length; ++a) + if (((n = e[s[a]]), i(n) && ((r = n.call(e)), o(r)))) return r; + throw new TypeError('No default value'); + }, + u = function(e, t) { + var n = e[t]; + if (null != n) { + if (!i(n)) + throw new TypeError( + n + + ' returned for property ' + + t + + ' of object ' + + e + + ' is not a function' + ); + return n; + } + }; + e.exports = function(e) { + if (o(e)) return e; + var t, + n = 'default'; + if ( + (arguments.length > 1 && + (arguments[1] === String + ? (n = 'string') + : arguments[1] === Number && (n = 'number')), + r && + (Symbol.toPrimitive + ? (t = u(e, Symbol.toPrimitive)) + : s(e) && (t = Symbol.prototype.valueOf)), + void 0 !== t) + ) { + var i = t.call(e, n); + if (o(i)) return i; + throw new TypeError('unable to convert exotic object to primitive'); + } + return ( + 'default' === n && (a(e) || s(e)) && (n = 'string'), + c(e, 'default' === n ? 'number' : n) + ); }; }, function(e, t, n) { 'use strict'; - (function(t) { - var r = t.Symbol, - o = n(371); - e.exports = function() { + var r = Date.prototype.getDay, + o = Object.prototype.toString, + i = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.toStringTag; + e.exports = function(e) { + return ( + 'object' == typeof e && + null !== e && + (i + ? (function(e) { + try { + return r.call(e), !0; + } catch (e) { + return !1; + } + })(e) + : '[object Date]' === o.call(e)) + ); + }; + }, + function(e, t, n) { + 'use strict'; + var r = Object.prototype.toString; + if (n(171)()) { + var o = Symbol.prototype.toString, + i = /^Symbol\(.*\)$/; + e.exports = function(e) { + if ('symbol' == typeof e) return !0; + if ('[object Symbol]' !== r.call(e)) return !1; + try { + return (function(e) { + return 'symbol' == typeof e.valueOf() && i.test(o.call(e)); + })(e); + } catch (e) { + return !1; + } + }; + } else + e.exports = function(e) { + return !1; + }; + }, + function(e, t, n) { + var r = 'function' == typeof Map && Map.prototype, + o = + Object.getOwnPropertyDescriptor && r + ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') + : null, + i = r && o && 'function' == typeof o.get ? o.get : null, + a = r && Map.prototype.forEach, + s = 'function' == typeof Set && Set.prototype, + c = + Object.getOwnPropertyDescriptor && s + ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') + : null, + u = s && c && 'function' == typeof c.get ? c.get : null, + l = s && Set.prototype.forEach, + f = Boolean.prototype.valueOf, + d = Object.prototype.toString, + p = 'function' == typeof BigInt ? BigInt.prototype.valueOf : null, + h = n(778).custom, + g = h && v(h) ? h : null; + function m(e, t, n) { + var r = 'double' === (n.quoteStyle || t) ? '"' : "'"; + return r + e + r; + } + function b(e) { + return String(e).replace(/"/g, '"'); + } + function y(e) { + return '[object Array]' === x(e); + } + function v(e) { + return '[object Symbol]' === x(e); + } + e.exports = function e(t, n, r, o) { + if ( + (n || (n = {}), + w(n, 'quoteStyle') && + 'single' !== n.quoteStyle && + 'double' !== n.quoteStyle) + ) + throw new TypeError( + 'option "quoteStyle" must be "single" or "double"' + ); + if (void 0 === t) return 'undefined'; + if (null === t) return 'null'; + if ('boolean' == typeof t) return t ? 'true' : 'false'; + if ('string' == typeof t) + return (function(e, t) { + return m( + e.replace(/(['\\])/g, '\\$1').replace(/[\x00-\x1f]/g, M), + 'single', + t + ); + })(t, n); + if ('number' == typeof t) + return 0 === t ? (1 / 0 / t > 0 ? '0' : '-0') : String(t); + if ('bigint' == typeof t) return String(t) + 'n'; + var s = void 0 === n.depth ? 5 : n.depth; + if ((void 0 === r && (r = 0), r >= s && s > 0 && 'object' == typeof t)) + return '[Object]'; + if (void 0 === o) o = []; + else if ( + (function(e, t) { + if (e.indexOf) return e.indexOf(t); + for (var n = 0, r = e.length; n < r; n++) if (e[n] === t) return n; + return -1; + })(o, t) >= 0 + ) + return '[Circular]'; + function c(t, i) { + return i && (o = o.slice()).push(i), e(t, n, r + 1, o); + } + if ('function' == typeof t) { + var d = (function(e) { + if (e.name) return e.name; + var t = String(e).match(/^function\s*([\w$]+)/); + if (t) return t[1]; + })(t); + return '[Function' + (d ? ': ' + d : '') + ']'; + } + if (v(t)) { + var h = Symbol.prototype.toString.call(t); + return 'object' == typeof t ? k(h) : h; + } + if ( + (function(e) { + if (!e || 'object' != typeof e) return !1; + if ('undefined' != typeof HTMLElement && e instanceof HTMLElement) + return !0; + return ( + 'string' == typeof e.nodeName && + 'function' == typeof e.getAttribute + ); + })(t) + ) { + for ( + var _ = '<' + String(t.nodeName).toLowerCase(), + E = t.attributes || [], + A = 0; + A < E.length; + A++ + ) + _ += ' ' + E[A].name + '=' + m(b(E[A].value), 'double', n); return ( - 'function' == typeof r && - 'function' == typeof Symbol && - 'symbol' == typeof r('foo') && - 'symbol' == typeof Symbol('bar') && o() + (_ += '>'), + t.childNodes && t.childNodes.length && (_ += '...'), + (_ += '') + ); + } + if (y(t)) + return 0 === t.length ? '[]' : '[ ' + O(t, c).join(', ') + ' ]'; + if ( + (function(e) { + return '[object Error]' === x(e); + })(t) + ) + return 0 === (T = O(t, c)).length + ? '[' + String(t) + ']' + : '{ [' + String(t) + '] ' + T.join(', ') + ' }'; + if ('object' == typeof t) { + if (g && 'function' == typeof t[g]) return t[g](); + if ('function' == typeof t.inspect) return t.inspect(); + } + if ( + (function(e) { + if (!i) return !1; + try { + i.call(e); + try { + u.call(e); + } catch (e) { + return !0; + } + return e instanceof Map; + } catch (e) {} + return !1; + })(t) + ) { + var T = []; + return ( + a.call(t, function(e, n) { + T.push(c(n, t) + ' => ' + c(e, t)); + }), + S('Map', i.call(t), T) + ); + } + if ( + (function(e) { + if (!u) return !1; + try { + u.call(e); + try { + i.call(e); + } catch (e) { + return !0; + } + return e instanceof Set; + } catch (e) {} + return !1; + })(t) + ) { + T = []; + return ( + l.call(t, function(e) { + T.push(c(e, t)); + }), + S('Set', u.call(t), T) ); + } + if ( + (function(e) { + return '[object Number]' === x(e); + })(t) + ) + return k(c(Number(t))); + if ( + (function(e) { + return '[object BigInt]' === x(e); + })(t) + ) + return k(c(p.call(t))); + if ( + (function(e) { + return '[object Boolean]' === x(e); + })(t) + ) + return k(f.call(t)); + if ( + (function(e) { + return '[object String]' === x(e); + })(t) + ) + return k(c(String(t))); + if ( + !(function(e) { + return '[object Date]' === x(e); + })(t) && + !(function(e) { + return '[object RegExp]' === x(e); + })(t) + ) { + var C = O(t, c); + return 0 === C.length ? '{}' : '{ ' + C.join(', ') + ' }'; + } + return String(t); + }; + var _ = + Object.prototype.hasOwnProperty || + function(e) { + return e in this; }; - }.call(this, n(26))); + function w(e, t) { + return _.call(e, t); + } + function x(e) { + return d.call(e); + } + function M(e) { + var t = e.charCodeAt(0), + n = { 8: 'b', 9: 't', 10: 'n', 12: 'f', 13: 'r' }[t]; + return n ? '\\' + n : '\\x' + (t < 16 ? '0' : '') + t.toString(16); + } + function k(e) { + return 'Object(' + e + ')'; + } + function S(e, t, n) { + return e + ' (' + t + ') {' + n.join(', ') + '}'; + } + function O(e, t) { + var n = y(e), + r = []; + if (n) { + r.length = e.length; + for (var o = 0; o < e.length; o++) r[o] = w(e, o) ? t(e[o], e) : ''; + } + for (var i in e) + w(e, i) && + ((n && String(Number(i)) === i && i < e.length) || + (/[^\w$]/.test(i) + ? r.push(t(i, e) + ': ' + t(e[i], e)) + : r.push(i + ': ' + t(e[i], e)))); + return r; + } + }, + function(e, t) {}, + function(e, t, n) { + 'use strict'; + e.exports = function(e) { + return null === e || ('function' != typeof e && 'object' != typeof e); + }; }, function(e, t, n) { 'use strict'; - var r = n(155), - o = n(731), - i = o(r('String.prototype.indexOf')); e.exports = function(e, t) { - var n = r(e, !!t); - return 'function' == typeof n && i(e, '.prototype.') ? o(n) : n; + for (var n = 0; n < e.length; n += 1) t(e[n], n, e); }; }, function(e, t, n) { 'use strict'; - var r = n(115), - o = n(155)('%Function%'), - i = o.apply, - a = o.call; - (e.exports = function() { - return r.apply(a, arguments); - }), - (e.exports.apply = function() { - return r.apply(i, arguments); - }); + var r = n(408); + e.exports = function(e, t, n) { + return r( + [ + '[[Configurable]]', + '[[Enumerable]]', + '[[Get]]', + '[[Set]]', + '[[Value]]', + '[[Writable]]' + ], + function(r) { + return r in t == r in n && e.SameValue(t[r], n[r]); + } + ); + }; }, function(e, t, n) { 'use strict'; - var r = n(380), - o = n(66); + var r = n(71), + o = r('%Object%'), + i = r('%TypeError%'), + a = r('%String%'), + s = r('%Number%'), + c = n(402), + u = n(409), + l = n(403), + f = n(404), + d = n(406), + p = n(407), + h = n(172), + g = n(783), + m = n(72), + b = n(173)(a.prototype.slice), + y = function(e, t) { + return e === t || (!(e.length > t.length) && b(t, 0, e.length) === e); + }, + v = { + ToPrimitive: g, + ToBoolean: function(e) { + return !!e; + }, + ToNumber: function(e) { + return +e; + }, + ToInteger: function(e) { + var t = this.ToNumber(e); + return l(t) + ? 0 + : 0 !== t && f(t) + ? d(t) * Math.floor(Math.abs(t)) + : t; + }, + ToInt32: function(e) { + return this.ToNumber(e) >> 0; + }, + ToUint32: function(e) { + return this.ToNumber(e) >>> 0; + }, + ToUint16: function(e) { + var t = this.ToNumber(e); + if (l(t) || 0 === t || !f(t)) return 0; + var n = d(t) * Math.floor(Math.abs(t)); + return p(n, 65536); + }, + ToString: function(e) { + return a(e); + }, + ToObject: function(e) { + return this.CheckObjectCoercible(e), o(e); + }, + CheckObjectCoercible: function(e, t) { + if (null == e) throw new i(t || 'Cannot call method on ' + e); + return e; + }, + IsCallable: h, + SameValue: function(e, t) { + return e === t ? 0 !== e || 1 / e == 1 / t : l(e) && l(t); + }, + Type: function(e) { + return null === e + ? 'Null' + : void 0 === e + ? 'Undefined' + : 'function' == typeof e || 'object' == typeof e + ? 'Object' + : 'number' == typeof e + ? 'Number' + : 'boolean' == typeof e + ? 'Boolean' + : 'string' == typeof e + ? 'String' + : void 0; + }, + IsPropertyDescriptor: function(e) { + return u(this, e); + }, + IsAccessorDescriptor: function(e) { + return ( + void 0 !== e && + (c(this, 'Property Descriptor', 'Desc', e), + !(!m(e, '[[Get]]') && !m(e, '[[Set]]'))) + ); + }, + IsDataDescriptor: function(e) { + return ( + void 0 !== e && + (c(this, 'Property Descriptor', 'Desc', e), + !(!m(e, '[[Value]]') && !m(e, '[[Writable]]'))) + ); + }, + IsGenericDescriptor: function(e) { + return ( + void 0 !== e && + (c(this, 'Property Descriptor', 'Desc', e), + !this.IsAccessorDescriptor(e) && !this.IsDataDescriptor(e)) + ); + }, + FromPropertyDescriptor: function(e) { + if (void 0 === e) return e; + if ( + (c(this, 'Property Descriptor', 'Desc', e), + this.IsDataDescriptor(e)) + ) + return { + value: e['[[Value]]'], + writable: !!e['[[Writable]]'], + enumerable: !!e['[[Enumerable]]'], + configurable: !!e['[[Configurable]]'] + }; + if (this.IsAccessorDescriptor(e)) + return { + get: e['[[Get]]'], + set: e['[[Set]]'], + enumerable: !!e['[[Enumerable]]'], + configurable: !!e['[[Configurable]]'] + }; + throw new i( + 'FromPropertyDescriptor must be called with a fully populated Property Descriptor' + ); + }, + ToPropertyDescriptor: function(e) { + if ('Object' !== this.Type(e)) + throw new i('ToPropertyDescriptor requires an object'); + var t = {}; + if ( + (m(e, 'enumerable') && + (t['[[Enumerable]]'] = this.ToBoolean(e.enumerable)), + m(e, 'configurable') && + (t['[[Configurable]]'] = this.ToBoolean(e.configurable)), + m(e, 'value') && (t['[[Value]]'] = e.value), + m(e, 'writable') && + (t['[[Writable]]'] = this.ToBoolean(e.writable)), + m(e, 'get')) + ) { + var n = e.get; + if (void 0 !== n && !this.IsCallable(n)) + throw new TypeError('getter must be a function'); + t['[[Get]]'] = n; + } + if (m(e, 'set')) { + var r = e.set; + if (void 0 !== r && !this.IsCallable(r)) + throw new i('setter must be a function'); + t['[[Set]]'] = r; + } + if ( + (m(t, '[[Get]]') || m(t, '[[Set]]')) && + (m(t, '[[Value]]') || m(t, '[[Writable]]')) + ) + throw new i( + 'Invalid property descriptor. Cannot both specify accessors and a value or writable attribute' + ); + return t; + }, + 'Abstract Equality Comparison': function(e, t) { + var n = this.Type(e), + r = this.Type(t); + return n === r + ? e === t + : (null == e && null == t) || + ('Number' === n && 'String' === r + ? this['Abstract Equality Comparison'](e, this.ToNumber(t)) + : 'String' === n && 'Number' === r + ? this['Abstract Equality Comparison'](this.ToNumber(e), t) + : 'Boolean' === n + ? this['Abstract Equality Comparison'](this.ToNumber(e), t) + : 'Boolean' === r + ? this['Abstract Equality Comparison'](e, this.ToNumber(t)) + : ('String' !== n && 'Number' !== n) || 'Object' !== r + ? 'Object' === n && + ('String' === r || 'Number' === r) && + this['Abstract Equality Comparison']( + this.ToPrimitive(e), + t + ) + : this['Abstract Equality Comparison']( + e, + this.ToPrimitive(t) + )); + }, + 'Strict Equality Comparison': function(e, t) { + var n = this.Type(e); + return ( + n === this.Type(t) && + ('Undefined' === n || 'Null' === n || e === t) + ); + }, + 'Abstract Relational Comparison': function(e, t, n) { + if ('Boolean' !== this.Type(n)) + throw new i( + 'Assertion failed: LeftFirst argument must be a Boolean' + ); + var r, o; + if ( + (n + ? ((r = this.ToPrimitive(e, s)), (o = this.ToPrimitive(t, s))) + : ((o = this.ToPrimitive(t, s)), (r = this.ToPrimitive(e, s))), + !('String' === this.Type(r) && 'String' === this.Type(o))) + ) { + var a = this.ToNumber(r), + c = this.ToNumber(o); + if (l(a) || l(c)) return; + return ( + (!f(a) || !f(c) || a !== c) && + ((0 !== a || 0 !== c) && + (a !== 1 / 0 && + (c === 1 / 0 || (c !== -1 / 0 && (a === -1 / 0 || a < c))))) + ); + } + return !y(o, r) && (!!y(r, o) || r < o); + } + }; + e.exports = v; + }, + function(e, t, n) { + 'use strict'; + var r = Object.prototype.toString, + o = n(401), + i = n(172), + a = function(e) { + var t; + if ( + (t = + arguments.length > 1 + ? arguments[1] + : '[object Date]' === r.call(e) + ? String + : Number) === String || + t === Number + ) { + var n, + a, + s = + t === String + ? ['toString', 'valueOf'] + : ['valueOf', 'toString']; + for (a = 0; a < s.length; ++a) + if (i(e[s[a]]) && ((n = e[s[a]]()), o(n))) return n; + throw new TypeError('No default value'); + } + throw new TypeError('invalid [[DefaultValue]] hint supplied'); + }; + e.exports = function(e) { + return o(e) ? e : arguments.length > 1 ? a(e, arguments[1]) : a(e); + }; + }, + function(e, t, n) { + 'use strict'; + var r = n(72), + o = RegExp.prototype.exec, + i = Object.getOwnPropertyDescriptor, + a = Object.prototype.toString, + s = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.toStringTag; + e.exports = function(e) { + if (!e || 'object' != typeof e) return !1; + if (!s) return '[object RegExp]' === a.call(e); + var t = i(e, 'lastIndex'); + return ( + !(!t || !r(t, 'value')) && + (function(e) { + try { + var t = e.lastIndex; + return (e.lastIndex = 0), o.call(e), !0; + } catch (e) { + return !1; + } finally { + e.lastIndex = t; + } + })(e) + ); + }; + }, + function(e, t, n) { + 'use strict'; + var r = n(410), + o = n(80); e.exports = function() { var e = r(); return ( @@ -219782,20 +221950,20 @@ object-assign }, function(e, t, n) { 'use strict'; - var r = n(66), - o = n(381), - i = n(382), + var r = n(80), + o = n(411), + i = n(412), a = i(), s = function(e, t) { return a.apply(e, [t]); }; - r(s, { getPolyfill: i, implementation: o, shim: n(734) }), + r(s, { getPolyfill: i, implementation: o, shim: n(787) }), (e.exports = s); }, function(e, t, n) { 'use strict'; - var r = n(66), - o = n(382); + var r = n(80), + o = n(412); e.exports = function() { var e = o(); return ( @@ -219840,14 +222008,14 @@ object-assign Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = void 0); var r = d(n(0)), - o = (d(n(1)), n(11), n(33)), - i = n(20), - a = (d(n(23)), d(n(47))), - s = d(n(394)), - c = d(n(393)), - u = d(n(737)), - l = d(n(738)), - f = (d(n(69)), n(7)); + o = (d(n(1)), n(21), n(46)), + i = n(31), + a = (d(n(35)), d(n(60))), + s = d(n(424)), + c = d(n(423)), + u = d(n(790)), + l = d(n(791)), + f = (d(n(83)), n(15)); function d(e) { return e && e.__esModule ? e : { default: e }; } @@ -219909,39 +222077,39 @@ object-assign y = e.isRTL, v = e.styles, _ = m === f.HORIZONTAL_ORIENTATION, - x = m !== f.HORIZONTAL_ORIENTATION, - w = m === f.VERTICAL_SCROLLABLE, + w = m !== f.HORIZONTAL_ORIENTATION, + x = m === f.VERTICAL_SCROLLABLE, M = i, k = a, S = !1, - A = !1; + O = !1; if (!M) { S = !0; - var O = x ? u.default : s.default; - y && !x && (O = c.default), + var E = w ? u.default : s.default; + y && !w && (E = c.default), (M = r.default.createElement( - O, + E, (0, o.css)( _ && v.DayPickerNavigation_svg__horizontal, - x && v.DayPickerNavigation_svg__vertical, + w && v.DayPickerNavigation_svg__vertical, t && v.DayPickerNavigation_svg__disabled ) )); } if (!k) { - A = !0; - var E = x ? l.default : c.default; - y && !x && (E = s.default), + O = !0; + var A = w ? l.default : c.default; + y && !w && (A = s.default), (k = r.default.createElement( - E, + A, (0, o.css)( _ && v.DayPickerNavigation_svg__horizontal, - x && v.DayPickerNavigation_svg__vertical, + w && v.DayPickerNavigation_svg__vertical, n && v.DayPickerNavigation_svg__disabled ) )); } - var T = w ? A : A || S; + var T = x ? O : O || S; return r.default.createElement( 'div', o.css.apply( @@ -219951,7 +222119,7 @@ object-assign _ && v.DayPickerNavigation__horizontal ].concat( h( - x + w ? [ v.DayPickerNavigation__vertical, T && v.DayPickerNavigation__verticalDefault @@ -219959,7 +222127,7 @@ object-assign : [] ), h( - w + x ? [ v.DayPickerNavigation__verticalScrollable, T && v.DayPickerNavigation__verticalScrollableDefault @@ -219968,7 +222136,7 @@ object-assign ) ) ), - !w && + !x && r.default.createElement( 'div', p( @@ -219998,7 +222166,7 @@ object-assign : [] ), h( - x + w ? [v.DayPickerNavigation_button__vertical].concat( h( S @@ -220040,14 +222208,14 @@ object-assign void 0, [ v.DayPickerNavigation_button, - A && v.DayPickerNavigation_button__default, + O && v.DayPickerNavigation_button__default, n && v.DayPickerNavigation_button__disabled ].concat( h( _ ? [v.DayPickerNavigation_button__horizontal].concat( h( - A + O ? [ v.DayPickerNavigation_button__horizontalDefault, y && @@ -220061,17 +222229,17 @@ object-assign : [] ), h( - x + w ? [ v.DayPickerNavigation_button__vertical, v.DayPickerNavigation_nextButton__vertical ].concat( h( - A + O ? [ v.DayPickerNavigation_button__verticalDefault, v.DayPickerNavigation_nextButton__verticalDefault, - w && + x && v.DayPickerNavigation_nextButton__verticalScrollableDefault ] : [] @@ -220238,12 +222406,12 @@ object-assign 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = t.BOTTOM_RIGHT = t.TOP_RIGHT = t.TOP_LEFT = void 0); - var r = u(n(32)), + var r = u(n(45)), o = u(n(0)), - i = (u(n(1)), n(11), n(33)), - a = n(20), - s = (u(n(23)), u(n(740))), - c = u(n(94)); + i = (u(n(1)), n(21), n(46)), + a = n(31), + s = (u(n(35)), u(n(793))), + c = u(n(109)); function u(e) { return e && e.__esModule ? e : { default: e }; } @@ -220274,21 +222442,14 @@ object-assign return e; }).apply(this, arguments); } - function d(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function p(e, t) { - return !t || ('object' !== l(t) && 'function' != typeof t) ? y(e) : t; - } - function h(e) { - return (h = Object.setPrototypeOf + function d(e) { + return (d = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function g(e, t) { + function p(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -220297,35 +222458,38 @@ object-assign Object.defineProperty(e, r.key, r); } } - function m(e, t, n) { - return t && g(e.prototype, t), n && g(e, n), e; + function h(e, t, n) { + return t && p(e.prototype, t), n && p(e, n), e; } - function b(e, t) { - return (b = + function g(e, t) { + return (g = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; })(e, t); } - function y(e) { + function m(e) { if (void 0 === e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return e; } - t.TOP_LEFT = 'top-left'; - t.TOP_RIGHT = 'top-right'; - t.BOTTOM_RIGHT = 'bottom-right'; - var v = { + var b = 'top-left'; + t.TOP_LEFT = b; + var y = 'top-right'; + t.TOP_RIGHT = y; + var v = 'bottom-right'; + t.BOTTOM_RIGHT = v; + var _ = { block: !1, - buttonLocation: 'bottom-right', + buttonLocation: v, showKeyboardShortcutsPanel: !1, openKeyboardShortcutsPanel: function() {}, closeKeyboardShortcutsPanel: function() {}, phrases: a.DayPickerKeyboardShortcutsPhrases }; - function _(e) { + function w(e) { return [ { unicode: '↵', label: e.enterKey, action: e.selectFocusedDate }, { @@ -220355,24 +222519,30 @@ object-assign var x = (function(e) { function t() { var e, n; - d(this, t); + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, t); for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) o[i] = arguments[i]; - var a = (n = p(this, (e = h(t)).call.apply(e, [this].concat(o)))) - .props.phrases; + var a = (n = (function(e, t) { + return !t || ('object' !== l(t) && 'function' != typeof t) + ? m(e) + : t; + })(this, (e = d(t)).call.apply(e, [this].concat(o)))).props.phrases; return ( - (n.keyboardShortcuts = _(a)), + (n.keyboardShortcuts = w(a)), (n.onShowKeyboardShortcutsButtonClick = n.onShowKeyboardShortcutsButtonClick.bind( - y(y(n)) + m(m(n)) )), (n.setShowKeyboardShortcutsButtonRef = n.setShowKeyboardShortcutsButtonRef.bind( - y(y(n)) + m(m(n)) )), (n.setHideKeyboardShortcutsButtonRef = n.setHideKeyboardShortcutsButtonRef.bind( - y(y(n)) + m(m(n)) )), - (n.handleFocus = n.handleFocus.bind(y(y(n)))), - (n.onKeyDown = n.onKeyDown.bind(y(y(n)))), + (n.handleFocus = n.handleFocus.bind(m(m(n)))), + (n.onKeyDown = n.onKeyDown.bind(m(m(n)))), n ); } @@ -220385,9 +222555,9 @@ object-assign (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } })), - t && b(e, t); + t && g(e, t); })(t, e), - m(t, [ + h(t, [ { key: !o.default.PureComponent && 'shouldComponentUpdate', value: function(e, t) { @@ -220395,12 +222565,12 @@ object-assign } } ]), - m(t, [ + h(t, [ { key: 'componentWillReceiveProps', value: function(e) { var t = this.props.phrases; - e.phrases !== t && (this.keyboardShortcuts = _(e.phrases)); + e.phrases !== t && (this.keyboardShortcuts = w(e.phrases)); } }, { @@ -220473,9 +222643,9 @@ object-assign d = r ? l.hideKeyboardShortcutsPanel : l.showKeyboardShortcutsPanel, - p = 'bottom-right' === n, - h = 'top-right' === n, - g = 'top-left' === n; + p = n === v, + h = n === y, + g = n === b; return o.default.createElement( 'div', null, @@ -220573,8 +222743,8 @@ object-assign t ); })(o.default.PureComponent || o.default.Component); - (x.propTypes = {}), (x.defaultProps = v); - var w = (0, i.withStyles)( + (x.propTypes = {}), (x.defaultProps = _); + var M = (0, i.withStyles)( function(e) { var t = e.reactDates, n = t.color, @@ -220697,14 +222867,14 @@ object-assign }, { pureComponent: void 0 !== o.default.PureComponent } )(x); - t.default = w; + t.default = M; }, function(e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = void 0); var r = i(n(0)), - o = (i(n(1)), n(11), n(33)); + o = (i(n(1)), n(21), n(46)); function i(e) { return e && e.__esModule ? e : { default: e }; } @@ -220793,15 +222963,13 @@ object-assign arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : o.default.localeData().firstDayOfWeek(), - n = e.clone().startOf('month'), - r = i(n, t); - return Math.ceil((r + e.daysInMonth()) / 7); + n = (function(e, t) { + return (e.day() - t + 7) % 7; + })(e.clone().startOf('month'), t); + return Math.ceil((n + e.daysInMonth()) / 7); }); var r, - o = (r = n(2)) && r.__esModule ? r : { default: r }; - function i(e, t) { - return (e.day() - t + 7) % 7; - } + o = (r = n(4)) && r.__esModule ? r : { default: r }; }, function(e, t, n) { 'use strict'; @@ -220814,26 +222982,26 @@ object-assign 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = t.PureSingleDatePicker = void 0); - var r = w(n(32)), - o = w(n(0)), - i = w(n(2)), - a = n(33), - s = n(423), - c = (n(11), n(118)), - u = w(n(70)), - l = w(n(153)), - f = (w(n(400)), n(20)), - d = w(n(387)), - p = w(n(388)), - h = w(n(156)), - g = w(n(72)), - m = w(n(389)), - b = w(n(47)), - y = w(n(744)), - v = w(n(399)), - _ = w(n(94)), - x = n(7); - function w(e) { + var r = x(n(45)), + o = x(n(0)), + i = x(n(4)), + a = n(46), + s = n(451), + c = (n(21), n(133)), + u = x(n(84)), + l = x(n(169)), + f = (x(n(430)), n(31)), + d = x(n(417)), + p = x(n(418)), + h = x(n(174)), + g = x(n(86)), + m = x(n(419)), + b = x(n(60)), + y = x(n(797)), + v = x(n(429)), + _ = x(n(109)), + w = n(15); + function x(e) { return e && e.__esModule ? e : { default: e }; } function M(e) { @@ -220870,7 +223038,7 @@ object-assign return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function A(e, t) { + function O(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -220879,11 +223047,11 @@ object-assign Object.defineProperty(e, r.key, r); } } - function O(e, t, n) { - return t && A(e.prototype, t), n && A(e, n), e; + function E(e, t, n) { + return t && O(e.prototype, t), n && O(e, n), e; } - function E(e, t) { - return (E = + function A(e, t) { + return (A = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; @@ -220936,18 +223104,18 @@ object-assign screenReaderInputMessage: '', showClearDate: !1, showDefaultInputIcon: !1, - inputIconPosition: x.ICON_BEFORE_POSITION, + inputIconPosition: w.ICON_BEFORE_POSITION, customInputIcon: null, customCloseIcon: null, noBorder: !1, block: !1, small: !1, regular: !1, - verticalSpacing: x.DEFAULT_VERTICAL_SPACING, + verticalSpacing: w.DEFAULT_VERTICAL_SPACING, keepFocusOnInput: !1, - orientation: x.HORIZONTAL_ORIENTATION, - anchorDirection: x.ANCHOR_LEFT, - openDirection: x.OPEN_DOWN, + orientation: w.HORIZONTAL_ORIENTATION, + anchorDirection: w.ANCHOR_LEFT, + openDirection: w.OPEN_DOWN, horizontalMargin: 0, withPortal: !1, withFullScreenPortal: !1, @@ -220959,9 +223127,9 @@ object-assign keepOpenOnDateSelect: !1, reopenPickerOnClearDate: !1, renderCalendarInfo: null, - calendarInfoPosition: x.INFO_POSITION_BOTTOM, + calendarInfoPosition: w.INFO_POSITION_BOTTOM, hideKeyboardShortcutsPanel: !1, - daySize: x.DAY_SIZE, + daySize: w.DAY_SIZE, isRTL: !1, verticalHeight: null, transitionDuration: void 0, @@ -221038,9 +223206,9 @@ object-assign (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } })), - t && E(e, t); + t && A(e, t); })(t, e), - O(t, [ + E(t, [ { key: !o.default.PureComponent && 'shouldComponentUpdate', value: function(e, t) { @@ -221048,12 +223216,11 @@ object-assign } } ]), - O(t, [ + E(t, [ { key: 'componentDidMount', value: function() { - (this.removeResizeEventListener = (0, - c.addEventListener)( + (this.removeResizeEventListener = (0, c.addEventListener)( window, 'resize', this.responsivizePickerPosition, @@ -221212,11 +223379,11 @@ object-assign s = e.focused, c = this.state.dayPickerContainerStyles; if (s) { - var u = n === x.ANCHOR_LEFT; + var u = n === w.ANCHOR_LEFT; if (!o && !i) { var l = this.dayPickerContainer.getBoundingClientRect(), f = c[n] || 0, - h = u ? l[x.ANCHOR_RIGHT] : l[x.ANCHOR_LEFT]; + h = u ? l[w.ANCHOR_RIGHT] : l[w.ANCHOR_LEFT]; this.setState({ dayPickerContainerStyles: C( {}, @@ -221276,20 +223443,20 @@ object-assign m = e.onPrevMonthClick, b = e.onNextMonthClick, y = e.onClose, - w = e.withPortal, + x = e.withPortal, M = e.withFullScreenPortal, S = e.keepOpenOnDateSelect, - A = e.initialVisibleMonth, - O = e.renderMonthText, - E = e.renderCalendarDay, + O = e.initialVisibleMonth, + E = e.renderMonthText, + A = e.renderCalendarDay, T = e.renderDayContents, C = e.renderCalendarInfo, L = e.renderMonthElement, P = e.calendarInfoPosition, D = e.hideKeyboardShortcutsPanel, - z = e.firstDayOfWeek, - N = e.customCloseIcon, - j = e.phrases, + j = e.firstDayOfWeek, + z = e.customCloseIcon, + N = e.phrases, R = e.dayAriaLabelFormat, I = e.daySize, F = e.isRTL, @@ -221308,28 +223475,28 @@ object-assign J = Q.dayPickerContainerStyles, Z = Q.isDayPickerFocused, ee = Q.showKeyboardShortcuts, - te = !M && w ? this.onOutsideClick : void 0, - ne = N || o.default.createElement(_.default, null), + te = !M && x ? this.onOutsideClick : void 0, + ne = z || o.default.createElement(_.default, null), re = (0, h.default)($, K), - oe = w || M; + oe = x || M; return o.default.createElement( 'div', k( { ref: this.setDayPickerContainerRef }, (0, a.css)( W.SingleDatePicker_picker, - t === x.ANCHOR_LEFT && + t === w.ANCHOR_LEFT && W.SingleDatePicker_picker__directionLeft, - t === x.ANCHOR_RIGHT && + t === w.ANCHOR_RIGHT && W.SingleDatePicker_picker__directionRight, - n === x.OPEN_DOWN && + n === w.OPEN_DOWN && W.SingleDatePicker_picker__openDown, - n === x.OPEN_UP && W.SingleDatePicker_picker__openUp, - !oe && n === x.OPEN_DOWN && { top: re + X }, - !oe && n === x.OPEN_UP && { bottom: re + X }, - f === x.HORIZONTAL_ORIENTATION && + n === w.OPEN_UP && W.SingleDatePicker_picker__openUp, + !oe && n === w.OPEN_DOWN && { top: re + X }, + !oe && n === w.OPEN_UP && { bottom: re + X }, + f === w.HORIZONTAL_ORIENTATION && W.SingleDatePicker_picker__horizontal, - f === x.VERTICAL_ORIENTATION && + f === w.VERTICAL_ORIENTATION && W.SingleDatePicker_picker__vertical, oe && W.SingleDatePicker_picker__portal, M && W.SingleDatePicker_picker__fullScreenPortal, @@ -221350,14 +223517,14 @@ object-assign focused: c, keepOpenOnDateSelect: S, hideKeyboardShortcutsPanel: D, - initialVisibleMonth: A, + initialVisibleMonth: O, navPrev: p, navNext: g, onPrevMonthClick: m, onNextMonthClick: b, onClose: y, - renderMonthText: O, - renderCalendarDay: E, + renderMonthText: E, + renderCalendarDay: A, renderDayContents: T, renderCalendarInfo: C, renderMonthElement: L, @@ -221365,14 +223532,14 @@ object-assign isFocused: Z, showKeyboardShortcuts: ee, onBlur: this.onDayPickerBlur, - phrases: j, + phrases: N, dayAriaLabelFormat: R, daySize: I, isRTL: F, isOutsideRange: q, isDayBlocked: B, isDayHighlighted: H, - firstDayOfWeek: z, + firstDayOfWeek: j, weekDayFormat: Y, verticalHeight: V, transitionDuration: U, @@ -221382,7 +223549,7 @@ object-assign o.default.createElement( 'button', k({}, (0, a.css)(W.SingleDatePicker_closeButton), { - 'aria-label': j.closeDatePicker, + 'aria-label': N.closeDatePicker, type: 'button', onClick: this.onOutsideClick }), @@ -221415,38 +223582,38 @@ object-assign b = e.onDateChange, v = e.displayFormat, _ = e.phrases, - w = e.withPortal, + x = e.withPortal, M = e.withFullScreenPortal, S = e.screenReaderInputMessage, - A = e.isRTL, - O = e.noBorder, - E = e.block, + O = e.isRTL, + E = e.noBorder, + A = e.block, T = e.small, C = e.regular, L = e.verticalSpacing, P = e.reopenPickerOnClearDate, D = e.keepOpenOnDateSelect, - z = e.styles, - N = e.isOutsideRange, - j = this.state.isInputFocused, - R = !w && !M, - I = L < x.FANG_HEIGHT_PX, + j = e.styles, + z = e.isOutsideRange, + N = this.state.isInputFocused, + R = !x && !M, + I = L < w.FANG_HEIGHT_PX, F = o.default.createElement( y.default, { id: t, placeholder: n, focused: i, - isFocused: j, + isFocused: N, disabled: r, required: s, readOnly: c, openDirection: u, - showCaret: !w && !M && !I, + showCaret: !x && !M && !I, showClearDate: f, showDefaultInputIcon: d, inputIconPosition: p, - isOutsideRange: N, + isOutsideRange: z, customCloseIcon: h, customInputIcon: g, date: m, @@ -221457,9 +223624,9 @@ object-assign onKeyDownQuestionMark: this.showKeyboardShortcutsPanel, screenReaderMessage: S, phrases: _, - isRTL: A, - noBorder: O, - block: E, + isRTL: O, + noBorder: E, + block: A, small: T, regular: C, verticalSpacing: L, @@ -221473,8 +223640,8 @@ object-assign k( { ref: this.setContainerRef }, (0, a.css)( - z.SingleDatePicker, - E && z.SingleDatePicker__block + j.SingleDatePicker, + A && j.SingleDatePicker__block ) ), R && @@ -221492,7 +223659,7 @@ object-assign ); })(o.default.PureComponent || o.default.Component); (t.PureSingleDatePicker = D), (D.propTypes = {}), (D.defaultProps = P); - var z = (0, a.withStyles)( + var j = (0, a.withStyles)( function(e) { var t = e.reactDates, n = t.color, @@ -221552,21 +223719,21 @@ object-assign }, { pureComponent: void 0 !== o.default.PureComponent } )(D); - t.default = z; + t.default = j; }, function(e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = void 0); - var r = d(n(32)), + var r = d(n(45)), o = d(n(0)), - i = (d(n(1)), d(n(2))), - a = (d(n(41)), n(11), d(n(59)), n(20)), - s = (d(n(23)), d(n(401))), - c = (d(n(71)), d(n(91)), d(n(68))), - u = d(n(157)), - l = d(n(72)), - f = n(7); + i = (d(n(1)), d(n(4))), + a = (d(n(54)), n(21), d(n(73)), n(31)), + s = (d(n(35)), d(n(431))), + c = (d(n(85)), d(n(106)), d(n(82))), + u = d(n(175)), + l = d(n(86)), + f = n(15); function d(e) { return e && e.__esModule ? e : { default: e }; } @@ -221775,14 +223942,14 @@ object-assign y = e.date, v = e.phrases, _ = e.onKeyDownArrowDown, - x = e.onKeyDownQuestionMark, - w = e.screenReaderMessage, + w = e.onKeyDownQuestionMark, + x = e.screenReaderMessage, M = e.isRTL, k = e.noBorder, S = e.block, - A = e.small, - O = e.regular, - E = e.verticalSpacing, + O = e.small, + E = e.regular, + A = e.verticalSpacing, T = this.getDateString(y); return o.default.createElement( s.default, @@ -221807,15 +223974,15 @@ object-assign onFocus: this.onFocus, onKeyDownShiftTab: this.onClearFocus, onKeyDownArrowDown: _, - onKeyDownQuestionMark: x, - screenReaderMessage: w, + onKeyDownQuestionMark: w, + screenReaderMessage: x, phrases: v, isRTL: M, noBorder: k, block: S, - small: A, - regular: O, - verticalSpacing: E + small: O, + regular: E, + verticalSpacing: A }, t ); @@ -221836,21 +224003,21 @@ object-assign !(0, o.default)(e, t) ); }); - var r = i(n(2)), - o = i(n(120)); + var r = i(n(4)), + o = i(n(135)); function i(e) { return e && e.__esModule ? e : { default: e }; } }, function(e, t, n) { - e.exports = { default: n(747), __esModule: !0 }; + e.exports = { default: n(800), __esModule: !0 }; }, function(e, t, n) { - n(748), (e.exports = n(49).Object.assign); + n(801), (e.exports = n(62).Object.assign); }, function(e, t, n) { - var r = n(73); - r(r.S + r.F, 'Object', { assign: n(750) }); + var r = n(87); + r(r.S + r.F, 'Object', { assign: n(803) }); }, function(e, t) { e.exports = function(e) { @@ -221860,16 +224027,16 @@ object-assign }, function(e, t, n) { 'use strict'; - var r = n(50), - o = n(122), - i = n(166), - a = n(125), - s = n(167), - c = n(406), + var r = n(63), + o = n(137), + i = n(184), + a = n(140), + s = n(185), + c = n(436), u = Object.assign; e.exports = !u || - n(96)(function() { + n(111)(function() { var e = {}, t = {}, n = Symbol(), @@ -221903,9 +224070,9 @@ object-assign : u; }, function(e, t, n) { - var r = n(76), - o = n(752), - i = n(753); + var r = n(90), + o = n(805), + i = n(806); e.exports = function(e) { return function(t, n, a) { var s, @@ -221922,14 +224089,14 @@ object-assign }; }, function(e, t, n) { - var r = n(162), + var r = n(180), o = Math.min; e.exports = function(e) { return e > 0 ? o(r(e), 9007199254740991) : 0; }; }, function(e, t, n) { - var r = n(162), + var r = n(180), o = Math.max, i = Math.min; e.exports = function(e, t) { @@ -221937,15 +224104,15 @@ object-assign }; }, function(e, t, n) { - e.exports = { default: n(755), __esModule: !0 }; + e.exports = { default: n(808), __esModule: !0 }; }, function(e, t, n) { - n(756), n(762), (e.exports = n(171).f('iterator')); + n(809), n(815), (e.exports = n(189).f('iterator')); }, function(e, t, n) { 'use strict'; - var r = n(757)(!0); - n(408)( + var r = n(810)(!0); + n(438)( String, 'String', function(e) { @@ -221962,8 +224129,8 @@ object-assign ); }, function(e, t, n) { - var r = n(162), - o = n(161); + var r = n(180), + o = n(179); e.exports = function(e) { return function(t, n) { var i, @@ -221991,11 +224158,11 @@ object-assign }, function(e, t, n) { 'use strict'; - var r = n(169), - o = n(121), - i = n(170), + var r = n(187), + o = n(136), + i = n(188), a = {}; - n(74)(a, n(77)('iterator'), function() { + n(88)(a, n(91)('iterator'), function() { return this; }), (e.exports = function(e, t, n) { @@ -222003,10 +224170,10 @@ object-assign }); }, function(e, t, n) { - var r = n(60), - o = n(95), - i = n(122); - e.exports = n(50) + var r = n(74), + o = n(110), + i = n(137); + e.exports = n(63) ? Object.defineProperties : function(e, t) { o(e); @@ -222016,13 +224183,13 @@ object-assign }; }, function(e, t, n) { - var r = n(48).document; + var r = n(61).document; e.exports = r && r.documentElement; }, function(e, t, n) { - var r = n(61), - o = n(167), - i = n(163)('IE_PROTO'), + var r = n(75), + o = n(185), + i = n(181)('IE_PROTO'), a = Object.prototype; e.exports = Object.getPrototypeOf || @@ -222040,12 +224207,12 @@ object-assign }; }, function(e, t, n) { - n(763); + n(816); for ( - var r = n(48), - o = n(74), - i = n(168), - a = n(77)('toStringTag'), + var r = n(61), + o = n(88), + i = n(186), + a = n(91)('toStringTag'), s = 'CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList'.split( ',' ), @@ -222061,11 +224228,11 @@ object-assign }, function(e, t, n) { 'use strict'; - var r = n(764), - o = n(765), - i = n(168), - a = n(76); - (e.exports = n(408)( + var r = n(817), + o = n(818), + i = n(186), + a = n(90); + (e.exports = n(438)( Array, 'Array', function(e, t) { @@ -222095,54 +224262,54 @@ object-assign }; }, function(e, t, n) { - e.exports = { default: n(767), __esModule: !0 }; + e.exports = { default: n(820), __esModule: !0 }; }, function(e, t, n) { - n(768), n(773), n(774), n(775), (e.exports = n(49).Symbol); + n(821), n(826), n(827), n(828), (e.exports = n(62).Symbol); }, function(e, t, n) { 'use strict'; - var r = n(48), - o = n(61), - i = n(50), - a = n(73), - s = n(409), - c = n(769).KEY, - u = n(96), - l = n(164), - f = n(170), - d = n(124), - p = n(77), - h = n(171), - g = n(172), - m = n(770), - b = n(771), - y = n(95), - v = n(75), - _ = n(167), - x = n(76), - w = n(160), - M = n(121), - k = n(169), - S = n(772), - A = n(411), - O = n(166), - E = n(60), - T = n(122), - C = A.f, - L = E.f, + var r = n(61), + o = n(75), + i = n(63), + a = n(87), + s = n(439), + c = n(822).KEY, + u = n(111), + l = n(182), + f = n(188), + d = n(139), + p = n(91), + h = n(189), + g = n(190), + m = n(823), + b = n(824), + y = n(110), + v = n(89), + _ = n(185), + w = n(90), + x = n(178), + M = n(136), + k = n(187), + S = n(825), + O = n(441), + E = n(184), + A = n(74), + T = n(137), + C = O.f, + L = A.f, P = S.f, D = r.Symbol, - z = r.JSON, - N = z && z.stringify, - j = p('_hidden'), + j = r.JSON, + z = j && j.stringify, + N = p('_hidden'), R = p('toPrimitive'), I = {}.propertyIsEnumerable, F = l('symbol-registry'), q = l('symbols'), B = l('op-symbols'), H = Object.prototype, - Y = 'function' == typeof D && !!O.f, + Y = 'function' == typeof D && !!E.f, W = r.QObject, V = !W || !W.prototype || !W.prototype.findChild, U = @@ -222180,46 +224347,46 @@ object-assign return ( e === H && K(B, t, n), y(e), - (t = w(t, !0)), + (t = x(t, !0)), y(n), o(q, t) ? (n.enumerable - ? (o(e, j) && e[j][t] && (e[j][t] = !1), + ? (o(e, N) && e[N][t] && (e[N][t] = !1), (n = k(n, { enumerable: M(0, !1) }))) - : (o(e, j) || L(e, j, M(1, {})), (e[j][t] = !0)), + : (o(e, N) || L(e, N, M(1, {})), (e[N][t] = !0)), U(e, t, n)) : L(e, t, n) ); }, $ = function(e, t) { y(e); - for (var n, r = m((t = x(t))), o = 0, i = r.length; i > o; ) + for (var n, r = m((t = w(t))), o = 0, i = r.length; i > o; ) K(e, (n = r[o++]), t[n]); return e; }, Q = function(e) { - var t = I.call(this, (e = w(e, !0))); + var t = I.call(this, (e = x(e, !0))); return ( !(this === H && o(q, e) && !o(B, e)) && - (!(t || !o(this, e) || !o(q, e) || (o(this, j) && this[j][e])) || t) + (!(t || !o(this, e) || !o(q, e) || (o(this, N) && this[N][e])) || t) ); }, J = function(e, t) { - if (((e = x(e)), (t = w(t, !0)), e !== H || !o(q, t) || o(B, t))) { + if (((e = w(e)), (t = x(t, !0)), e !== H || !o(q, t) || o(B, t))) { var n = C(e, t); return ( - !n || !o(q, t) || (o(e, j) && e[j][t]) || (n.enumerable = !0), n + !n || !o(q, t) || (o(e, N) && e[N][t]) || (n.enumerable = !0), n ); } }, Z = function(e) { - for (var t, n = P(x(e)), r = [], i = 0; n.length > i; ) - o(q, (t = n[i++])) || t == j || t == c || r.push(t); + for (var t, n = P(w(e)), r = [], i = 0; n.length > i; ) + o(q, (t = n[i++])) || t == N || t == c || r.push(t); return r; }, ee = function(e) { for ( - var t, n = e === H, r = P(n ? B : x(e)), i = [], a = 0; + var t, n = e === H, r = P(n ? B : w(e)), i = [], a = 0; r.length > a; ) @@ -222234,7 +224401,7 @@ object-assign var e = d(arguments.length > 0 ? arguments[0] : void 0), t = function(n) { this === H && t.call(B, n), - o(this, j) && o(this[j], e) && (this[j][e] = !1), + o(this, N) && o(this[N], e) && (this[N][e] = !1), U(this, e, M(1, n)); }; return i && V && U(H, e, { configurable: !0, set: t }), X(e); @@ -222244,12 +224411,12 @@ object-assign return this._k; } ), - (A.f = J), - (E.f = K), - (n(410).f = S.f = Z), - (n(125).f = Q), - (O.f = ee), - i && !n(123) && s(H, 'propertyIsEnumerable', Q, !0), + (O.f = J), + (A.f = K), + (n(440).f = S.f = Z), + (n(140).f = Q), + (E.f = ee), + i && !n(138) && s(H, 'propertyIsEnumerable', Q, !0), (h.f = function(e) { return X(p(e)); })), @@ -222290,14 +224457,14 @@ object-assign getOwnPropertySymbols: ee }); var ie = u(function() { - O.f(1); + E.f(1); }); a(a.S + a.F * ie, 'Object', { getOwnPropertySymbols: function(e) { - return O.f(_(e)); + return E.f(_(e)); } }), - z && + j && a( a.S + a.F * @@ -222305,9 +224472,9 @@ object-assign u(function() { var e = D(); return ( - '[null]' != N([e]) || - '{}' != N({ a: e }) || - '{}' != N(Object(e)) + '[null]' != z([e]) || + '{}' != z({ a: e }) || + '{}' != z(Object(e)) ); })), 'JSON', @@ -222326,28 +224493,28 @@ object-assign return t; }), (r[1] = t), - N.apply(z, r) + z.apply(j, r) ); } } ), - D.prototype[R] || n(74)(D.prototype, R, D.prototype.valueOf), + D.prototype[R] || n(88)(D.prototype, R, D.prototype.valueOf), f(D, 'Symbol'), f(Math, 'Math', !0), f(r.JSON, 'JSON', !0); }, function(e, t, n) { - var r = n(124)('meta'), - o = n(75), - i = n(61), - a = n(60).f, + var r = n(139)('meta'), + o = n(89), + i = n(75), + a = n(74).f, s = 0, c = Object.isExtensible || function() { return !0; }, - u = !n(96)(function() { + u = !n(111)(function() { return c(Object.preventExtensions({})); }), l = function(e) { @@ -222382,9 +224549,9 @@ object-assign }); }, function(e, t, n) { - var r = n(122), - o = n(166), - i = n(125); + var r = n(137), + o = n(184), + i = n(140); e.exports = function(e) { var t = r(e), n = o.f; @@ -222395,7 +224562,7 @@ object-assign }; }, function(e, t, n) { - var r = n(407); + var r = n(437); e.exports = Array.isArray || function(e) { @@ -222403,8 +224570,8 @@ object-assign }; }, function(e, t, n) { - var r = n(76), - o = n(410).f, + var r = n(90), + o = n(440).f, i = {}.toString, a = 'object' == typeof window && window && Object.getOwnPropertyNames @@ -222424,24 +224591,24 @@ object-assign }, function(e, t) {}, function(e, t, n) { - n(172)('asyncIterator'); + n(190)('asyncIterator'); }, function(e, t, n) { - n(172)('observable'); + n(190)('observable'); }, function(e, t, n) { - e.exports = { default: n(777), __esModule: !0 }; + e.exports = { default: n(830), __esModule: !0 }; }, function(e, t, n) { - n(778), (e.exports = n(49).Object.setPrototypeOf); + n(831), (e.exports = n(62).Object.setPrototypeOf); }, function(e, t, n) { - var r = n(73); - r(r.S, 'Object', { setPrototypeOf: n(779).set }); + var r = n(87); + r(r.S, 'Object', { setPrototypeOf: n(832).set }); }, function(e, t, n) { - var r = n(75), - o = n(95), + var r = n(89), + o = n(110), i = function(e, t) { if ((o(e), !r(t) && null !== t)) throw TypeError(t + ": can't set as prototype!"); @@ -222452,9 +224619,9 @@ object-assign ('__proto__' in {} ? (function(e, t, r) { try { - (r = n(402)( + (r = n(432)( Function.call, - n(411).f(Object.prototype, '__proto__').set, + n(441).f(Object.prototype, '__proto__').set, 2 ))(e, []), (t = !(e instanceof Array)); @@ -222470,18 +224637,18 @@ object-assign }; }, function(e, t, n) { - e.exports = { default: n(781), __esModule: !0 }; + e.exports = { default: n(834), __esModule: !0 }; }, function(e, t, n) { - n(782); - var r = n(49).Object; + n(835); + var r = n(62).Object; e.exports = function(e, t) { return r.create(e, t); }; }, function(e, t, n) { - var r = n(73); - r(r.S, 'Object', { create: n(169) }); + var r = n(87); + r(r.S, 'Object', { create: n(187) }); }, function(e, t, n) { 'use strict'; @@ -222489,9 +224656,11 @@ object-assign return e && e.__esModule ? e : { default: e }; } Object.defineProperty(t, '__esModule', { value: !0 }); - var o = r(n(784)), - i = r(n(83)), - a = [ + var o = r(n(837)), + i = r(n(98)), + a = !0, + s = !1, + c = [ 'altKey', 'bubbles', 'cancelable', @@ -222505,15 +224674,15 @@ object-assign 'view', 'type' ]; - function s(e) { + function u(e) { return null == e; } - var c = [ + var l = [ { reg: /^key/, props: ['char', 'charCode', 'key', 'keyCode', 'which'], fix: function(e, t) { - s(e.which) && (e.which = s(t.charCode) ? t.keyCode : t.charCode), + u(e.which) && (e.which = u(t.charCode) ? t.keyCode : t.charCode), void 0 === e.metaKey && (e.metaKey = e.ctrlKey); } }, @@ -222575,8 +224744,8 @@ object-assign a = t.button; return ( i && - s(e.pageX) && - !s(t.clientX) && + u(e.pageX) && + !u(t.clientX) && ((r = (n = i.ownerDocument || document).documentElement), (o = n.body), (e.pageX = @@ -222599,65 +224768,65 @@ object-assign } } ]; - function u() { - return !0; + function f() { + return a; } - function l() { - return !1; + function d() { + return s; } - function f(e) { + function p(e) { var t = e.type, n = 'function' == typeof e.stopPropagation || 'boolean' == typeof e.cancelBubble; o.default.call(this), (this.nativeEvent = e); - var r = l; + var r = d; 'defaultPrevented' in e - ? (r = e.defaultPrevented ? u : l) + ? (r = e.defaultPrevented ? f : d) : 'getPreventDefault' in e - ? (r = e.getPreventDefault() ? u : l) - : 'returnValue' in e && (r = !1 === e.returnValue ? u : l), + ? (r = e.getPreventDefault() ? f : d) + : 'returnValue' in e && (r = e.returnValue === s ? f : d), (this.isDefaultPrevented = r); var i = [], - s = void 0, - f = void 0, - d = a.concat(); + a = void 0, + u = void 0, + p = c.concat(); for ( - c.forEach(function(e) { - t.match(e.reg) && ((d = d.concat(e.props)), e.fix && i.push(e.fix)); + l.forEach(function(e) { + t.match(e.reg) && ((p = p.concat(e.props)), e.fix && i.push(e.fix)); }), - s = d.length; - s; + a = p.length; + a; ) - this[(f = d[--s])] = e[f]; + this[(u = p[--a])] = e[u]; for ( !this.target && n && (this.target = e.srcElement || document), this.target && 3 === this.target.nodeType && (this.target = this.target.parentNode), - s = i.length; - s; + a = i.length; + a; ) - (0, i[--s])(this, e); + (0, i[--a])(this, e); this.timeStamp = e.timeStamp || Date.now(); } - var d = o.default.prototype; - (0, i.default)(f.prototype, d, { - constructor: f, + var h = o.default.prototype; + (0, i.default)(p.prototype, h, { + constructor: p, preventDefault: function() { var e = this.nativeEvent; - e.preventDefault ? e.preventDefault() : (e.returnValue = !1), - d.preventDefault.call(this); + e.preventDefault ? e.preventDefault() : (e.returnValue = s), + h.preventDefault.call(this); }, stopPropagation: function() { var e = this.nativeEvent; - e.stopPropagation ? e.stopPropagation() : (e.cancelBubble = !0), - d.stopPropagation.call(this); + e.stopPropagation ? e.stopPropagation() : (e.cancelBubble = a), + h.stopPropagation.call(this); } }), - (t.default = f), + (t.default = p), (e.exports = t.default); }, function(e, t, n) { @@ -222698,21 +224867,21 @@ object-assign (e.exports = t.default); }, function(e, t, n) { - n(786); - var r = n(49).Object; + n(839); + var r = n(62).Object; e.exports = function(e, t, n) { return r.defineProperty(e, t, n); }; }, function(e, t, n) { - var r = n(73); - r(r.S + r.F * !n(50), 'Object', { defineProperty: n(60).f }); + var r = n(87); + r(r.S + r.F * !n(63), 'Object', { defineProperty: n(74).f }); }, function(e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }); var r, - o = n(788), + o = n(841), i = (r = o) && r.__esModule ? r : { default: r }; (t.default = i.default), (e.exports = t.default); }, @@ -222746,9 +224915,9 @@ object-assign })(), i = n(0), a = h(i), - s = h(n(4)), + s = h(n(7)), c = h(n(1)), - u = h(n(789)), + u = h(n(842)), l = (function(e) { if (e && e.__esModule) return e; var t = {}; @@ -222756,43 +224925,42 @@ object-assign for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); return (t.default = e), t; - })(n(415)), - f = n(173), + })(n(445)), + f = n(191), d = h(f), - p = n(43); + p = n(56); function h(e) { return e && e.__esModule ? e : { default: e }; } function g(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function m(e, t) { if (!e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return !t || ('object' != typeof t && 'function' != typeof t) ? e : t; } - var b = (t.portalClassName = 'ReactModalPortal'), - y = (t.bodyOpenClassName = 'ReactModal__Body--open'), - v = void 0 !== s.default.createPortal, - _ = function() { - return v + var m = (t.portalClassName = 'ReactModalPortal'), + b = (t.bodyOpenClassName = 'ReactModal__Body--open'), + y = void 0 !== s.default.createPortal, + v = function() { + return y ? s.default.createPortal : s.default.unstable_renderSubtreeIntoContainer; }; - function x(e) { + function _(e) { return e(); } var w = (function(e) { function t() { var e, n, o; - g(this, t); + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, t); for (var i = arguments.length, c = Array(i), l = 0; l < i; l++) c[l] = arguments[l]; return ( - (n = o = m( + (n = o = g( this, (e = t.__proto__ || Object.getPrototypeOf(t)).call.apply( e, @@ -222800,19 +224968,14 @@ object-assign ) )), (o.removePortal = function() { - !v && s.default.unmountComponentAtNode(o.node); - var e = x(o.props.parentSelector); - e - ? e.removeChild(o.node) - : console.warn( - 'React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.' - ); + !y && s.default.unmountComponentAtNode(o.node), + _(o.props.parentSelector).removeChild(o.node); }), (o.portalRef = function(e) { o.portal = e; }), (o.renderPortal = function(e) { - var n = _()( + var n = v()( o, a.default.createElement( u.default, @@ -222822,7 +224985,7 @@ object-assign ); o.portalRef(n); }), - m(o, n) + g(o, n) ); } return ( @@ -222852,18 +225015,18 @@ object-assign key: 'componentDidMount', value: function() { f.canUseDOM && - (v || (this.node = document.createElement('div')), + (y || (this.node = document.createElement('div')), (this.node.className = this.props.portalClassName), - x(this.props.parentSelector).appendChild(this.node), - !v && this.renderPortal(this.props)); + _(this.props.parentSelector).appendChild(this.node), + !y && this.renderPortal(this.props)); } }, { key: 'getSnapshotBeforeUpdate', value: function(e) { return { - prevParent: x(e.parentSelector), - nextParent: x(this.props.parentSelector) + prevParent: _(e.parentSelector), + nextParent: _(this.props.parentSelector) }; } }, @@ -222879,7 +225042,7 @@ object-assign s = n.nextParent; s !== a && (a.removeChild(this.node), s.appendChild(this.node)), - (e.isOpen || o) && !v && this.renderPortal(this.props); + (e.isOpen || o) && !y && this.renderPortal(this.props); } } }, @@ -222903,11 +225066,11 @@ object-assign { key: 'render', value: function() { - return f.canUseDOM && v + return f.canUseDOM && y ? (!this.node && - v && + y && (this.node = document.createElement('div')), - _()( + v()( a.default.createElement( u.default, r( @@ -222980,8 +225143,8 @@ object-assign }), (w.defaultProps = { isOpen: !1, - portalClassName: b, - bodyOpenClassName: y, + portalClassName: m, + bodyOpenClassName: b, role: 'dialog', ariaHideApp: !0, closeTimeoutMS: 0, @@ -223061,15 +225224,14 @@ object-assign }; })(), a = n(0), - s = m(a), - c = m(n(1)), - u = g(n(790)), - l = m(n(791)), - f = g(n(415)), - d = g(n(794)), - p = m(n(173)), - h = m(n(416)); - function g(e) { + s = g(a), + c = g(n(1)), + u = h(n(843)), + l = g(n(844)), + f = h(n(445)), + d = h(n(847)), + p = g(n(191)); + function h(e) { if (e && e.__esModule) return e; var t = {}; if (null != e) @@ -223077,16 +225239,17 @@ object-assign Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); return (t.default = e), t; } - function m(e) { + function g(e) { return e && e.__esModule ? e : { default: e }; } - n(795); - var b = { + var m = { overlay: 'ReactModal__Overlay', content: 'ReactModal__Content' }, - y = 0, - v = (function(e) { + b = 9, + y = 27, + v = 0, + _ = (function(e) { function t(e) { !(function(e, t) { if (!(e instanceof t)) @@ -223116,13 +225279,12 @@ object-assign i = e.bodyOpenClassName; i && d.remove(document.body, i), o && d.remove(document.getElementsByTagName('html')[0], o), - r && y > 0 && 0 === (y -= 1) && f.show(t), + r && v > 0 && 0 === (v -= 1) && f.show(t), n.props.shouldFocusAfterRender && (n.props.shouldReturnFocusAfterClose ? (u.returnFocus(), u.teardownScopedFocus()) : u.popWithoutFocus()), - n.props.onAfterClose && n.props.onAfterClose(), - h.default.deregister(n); + n.props.onAfterClose && n.props.onAfterClose(); }), (n.open = function() { n.beforeOpen(), @@ -223135,10 +225297,7 @@ object-assign n.setState({ afterOpen: !0 }), n.props.isOpen && n.props.onAfterOpen && - n.props.onAfterOpen({ - overlayEl: n.overlay, - contentEl: n.content - }); + n.props.onAfterOpen(); })); }), (n.close = function() { @@ -223170,9 +225329,9 @@ object-assign ); }), (n.handleKeyDown = function(e) { - 9 === e.keyCode && (0, l.default)(n.content, e), + e.keyCode === b && (0, l.default)(n.content, e), n.props.shouldCloseOnEsc && - 27 === e.keyCode && + e.keyCode === y && (e.stopPropagation(), n.requestClose(e)); }), (n.handleOverlayOnClick = function(e) { @@ -223218,9 +225377,9 @@ object-assign 'object' === (void 0 === t ? 'undefined' : o(t)) ? t : { - base: b[e], - afterOpen: b[e] + '--after-open', - beforeClose: b[e] + '--before-close' + base: m[e], + afterOpen: m[e] + '--after-open', + beforeClose: m[e] + '--before-close' }, i = r.base; return ( @@ -223296,8 +225455,7 @@ object-assign o = e.bodyOpenClassName; o && d.add(document.body, o), r && d.add(document.getElementsByTagName('html')[0], r), - n && ((y += 1), f.hide(t)), - h.default.register(this); + n && ((v += 1), f.hide(t)); } }, { @@ -223356,11 +225514,11 @@ object-assign t ); })(a.Component); - (v.defaultProps = { + (_.defaultProps = { style: { overlay: {}, content: {} }, defaultStyles: {} }), - (v.propTypes = { + (_.propTypes = { isOpen: c.default.bool.isRequired, defaultStyles: c.default.shape({ content: c.default.object, @@ -223397,7 +225555,7 @@ object-assign id: c.default.string, testId: c.default.string }), - (t.default = v), + (t.default = _), (e.exports = t.default); }, function(e, t, n) { @@ -223442,7 +225600,7 @@ object-assign document.detachEvent('onFocus', l)); }); var r, - o = n(414), + o = n(444), i = (r = o) && r.__esModule ? r : { default: r }; var a = [], s = null, @@ -223466,7 +225624,7 @@ object-assign (t.default = function(e, t) { var n = (0, i.default)(e); if (!n.length) return void t.preventDefault(); - var r = void 0, + var r, o = t.shiftKey, a = n[0], s = n[n.length - 1]; @@ -223486,12 +225644,12 @@ object-assign return; var u = n.indexOf(document.activeElement); u > -1 && (u += o ? -1 : 1); - if (void 0 === (r = n[u])) + if (void 0 === n[u]) return t.preventDefault(), void (r = o ? s : a).focus(); - t.preventDefault(), r.focus(); + t.preventDefault(), n[u].focus(); }); var r, - o = n(414), + o = n(444), i = (r = o) && r.__esModule ? r : { default: r }; e.exports = t.default; }, @@ -223562,49 +225720,19 @@ object-assign }); }, function(e, t, n) { - 'use strict'; - var r, - o = n(416), - i = (r = o) && r.__esModule ? r : { default: r }; - var a = void 0, - s = void 0, - c = []; - function u() { - 0 !== c.length && c[c.length - 1].focusContent(); - } - i.default.subscribe(function(e, t) { - (a && s) || - ((a = document.createElement('div')).setAttribute( - 'data-react-modal-body-trap', - '' - ), - (a.style.position = 'absolute'), - (a.style.opacity = '0'), - a.setAttribute('tabindex', '0'), - a.addEventListener('focus', u), - (s = a.cloneNode()).addEventListener('focus', u)), - (c = t).length > 0 - ? (document.body.firstChild !== a && - document.body.insertBefore(a, document.body.firstChild), - document.body.lastChild !== s && document.body.appendChild(s)) - : (a.parentElement && a.parentElement.removeChild(a), - s.parentElement && s.parentElement.removeChild(s)); - }); - }, - function(e, t, n) { - (e.exports = n(797)).tz.load(n(798)); + (e.exports = n(849)).tz.load(n(850)); }, function(e, t, n) { var r, o, i; //! moment-timezone.js - //! version : 0.5.28 + //! version : 0.5.27 //! Copyright (c) JS Foundation and other contributors //! license : MIT //! github.com/moment/moment-timezone !(function(a, s) { 'use strict'; e.exports - ? (e.exports = s(n(2))) - : ((o = [n(2)]), + ? (e.exports = s(n(4))) + : ((o = [n(4)]), void 0 === (i = 'function' == typeof (r = s) ? r.apply(t, o) : r) || (e.exports = i)); })(0, function(e) { @@ -223613,19 +225741,18 @@ object-assign n = {}, r = {}, o = {}, - i = {}, - a = {}; + i = {}; (e && 'string' == typeof e.version) || - T( + E( 'Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/' ); - var s = e.version.split('.'), - c = +s[0], - u = +s[1]; - function l(e) { + var a = e.version.split('.'), + s = +a[0], + c = +a[1]; + function u(e) { return e > 96 ? e - 87 : e > 64 ? e - 29 : e - 48; } - function f(e) { + function l(e) { var t = 0, n = e.split('.'), r = n[0], @@ -223634,29 +225761,29 @@ object-assign a = 0, s = 1; for (45 === e.charCodeAt(0) && ((t = 1), (s = -1)); t < r.length; t++) - a = 60 * a + l(r.charCodeAt(t)); + a = 60 * a + u(r.charCodeAt(t)); for (t = 0; t < o.length; t++) - (i /= 60), (a += l(o.charCodeAt(t)) * i); + (i /= 60), (a += u(o.charCodeAt(t)) * i); return a * s; } - function d(e) { - for (var t = 0; t < e.length; t++) e[t] = f(e[t]); + function f(e) { + for (var t = 0; t < e.length; t++) e[t] = l(e[t]); } - function p(e, t) { + function d(e, t) { var n, r = []; for (n = 0; n < t.length; n++) r[n] = e[t[n]]; return r; } - function h(e) { + function p(e) { var t = e.split('|'), n = t[2].split(' '), r = t[3].split(''), o = t[4].split(' '); return ( - d(n), - d(r), - d(o), + f(n), + f(r), + f(o), (function(e, t) { for (var n = 0; n < t; n++) e[n] = Math.round((e[n - 1] || 0) + 6e4 * e[n]); @@ -223664,20 +225791,17 @@ object-assign })(o, r.length), { name: t[0], - abbrs: p(t[1].split(' '), r), - offsets: p(n, r), + abbrs: d(t[1].split(' '), r), + offsets: d(n, r), untils: o, population: 0 | t[5] } ); } - function g(e) { - e && this._set(h(e)); - } - function m(e, t) { - (this.name = e), (this.zones = t); + function h(e) { + e && this._set(p(e)); } - function b(e) { + function g(e) { var t = e.toTimeString(), n = t.match(/\([a-z ]+\)/i); 'GMT' === @@ -223693,17 +225817,17 @@ object-assign (this.abbr = n), (this.offset = e.getTimezoneOffset()); } - function y(e) { + function m(e) { (this.zone = e), (this.offsetScore = 0), (this.abbrScore = 0); } - function v(e, t) { + function b(e, t) { for (var n, r; (r = 6e4 * (((t.at - e.at) / 12e4) | 0)); ) - (n = new b(new Date(e.at + r))).offset === e.offset + (n = new g(new Date(e.at + r))).offset === e.offset ? (e = n) : (t = n); return e; } - function _(e, t) { + function y(e, t) { return e.offsetScore !== t.offsetScore ? e.offsetScore - t.offsetScore : e.abbrScore !== t.abbrScore @@ -223712,31 +225836,31 @@ object-assign ? t.zone.population - e.zone.population : t.zone.name.localeCompare(e.zone.name); } - function x(e, t) { + function v(e, t) { var n, r; - for (d(t), n = 0; n < t.length; n++) - (r = t[n]), (a[r] = a[r] || {}), (a[r][e] = !0); + for (f(t), n = 0; n < t.length; n++) + (r = t[n]), (i[r] = i[r] || {}), (i[r][e] = !0); } - function w(e) { + function _(e) { var t, n, r, - o = e.length, + a = e.length, s = {}, c = []; - for (t = 0; t < o; t++) - for (n in (r = a[e[t].offset] || {})) + for (t = 0; t < a; t++) + for (n in (r = i[e[t].offset] || {})) r.hasOwnProperty(n) && (s[n] = !0); - for (t in s) s.hasOwnProperty(t) && c.push(i[t]); + for (t in s) s.hasOwnProperty(t) && c.push(o[t]); return c; } - function M() { + function w() { try { var e = Intl.DateTimeFormat().resolvedOptions().timeZone; if (e && e.length > 3) { - var t = i[k(e)]; + var t = o[x(e)]; if (t) return t; - T( + E( 'Moment Timezone found ' + e + ' from the Intl api, but did not have that data loaded.' @@ -223745,95 +225869,95 @@ object-assign } catch (e) {} var n, r, - o, + i, a = (function() { var e, t, n, r = new Date().getFullYear() - 2, - o = new b(new Date(r, 0, 1)), + o = new g(new Date(r, 0, 1)), i = [o]; for (n = 1; n < 48; n++) - (t = new b(new Date(r, n, 1))).offset !== o.offset && - ((e = v(o, t)), + (t = new g(new Date(r, n, 1))).offset !== o.offset && + ((e = b(o, t)), i.push(e), - i.push(new b(new Date(e.at + 6e4)))), + i.push(new g(new Date(e.at + 6e4)))), (o = t); for (n = 0; n < 4; n++) - i.push(new b(new Date(r + n, 0, 1))), - i.push(new b(new Date(r + n, 6, 1))); + i.push(new g(new Date(r + n, 0, 1))), + i.push(new g(new Date(r + n, 6, 1))); return i; })(), s = a.length, - c = w(a), + c = _(a), u = []; for (r = 0; r < c.length; r++) { - for (n = new y(A(c[r]), s), o = 0; o < s; o++) - n.scoreOffsetAt(a[o]); + for (n = new m(k(c[r]), s), i = 0; i < s; i++) + n.scoreOffsetAt(a[i]); u.push(n); } - return u.sort(_), u.length > 0 ? u[0].zone.name : void 0; + return u.sort(y), u.length > 0 ? u[0].zone.name : void 0; } - function k(e) { + function x(e) { return (e || '').toLowerCase().replace(/\//g, '_'); } - function S(e) { - var t, r, o, a; + function M(e) { + var t, r, i, a; for ('string' == typeof e && (e = [e]), t = 0; t < e.length; t++) - (a = k((r = (o = e[t].split('|'))[0]))), + (a = x((r = (i = e[t].split('|'))[0]))), (n[a] = e[t]), - (i[a] = r), - x(a, o[2].split(' ')); + (o[a] = r), + v(a, i[2].split(' ')); } - function A(e, t) { - e = k(e); - var o, + function k(e, t) { + e = x(e); + var i, a = n[e]; - return a instanceof g + return a instanceof h ? a : 'string' == typeof a - ? ((a = new g(a)), (n[e] = a), a) - : r[e] && t !== A && (o = A(r[e], A)) - ? ((a = n[e] = new g())._set(o), (a.name = i[e]), a) + ? ((a = new h(a)), (n[e] = a), a) + : r[e] && t !== k && (i = k(r[e], k)) + ? ((a = n[e] = new h())._set(i), (a.name = o[e]), a) : null; } - function O(e) { - var t, n, o, a; + function S(e) { + var t, n, i, a; for ('string' == typeof e && (e = [e]), t = 0; t < e.length; t++) - (o = k((n = e[t].split('|'))[0])), - (a = k(n[1])), - (r[o] = a), - (i[o] = n[0]), - (r[a] = o), - (i[a] = n[1]); + (i = x((n = e[t].split('|'))[0])), + (a = x(n[1])), + (r[i] = a), + (o[i] = n[0]), + (r[a] = i), + (o[a] = n[1]); } - function E(e) { + function O(e) { var t = 'X' === e._f || 'x' === e._f; return !(!e._a || void 0 !== e._tzm || t); } - function T(e) { + function E(e) { 'undefined' != typeof console && 'function' == typeof console.error && console.error(e); } - function C(t) { + function A(t) { var n = Array.prototype.slice.call(arguments, 0, -1), r = arguments[arguments.length - 1], - o = A(r), + o = k(r), i = e.utc.apply(null, n); return ( - o && !e.isMoment(t) && E(i) && i.add(o.parse(i), 'minutes'), + o && !e.isMoment(t) && O(i) && i.add(o.parse(i), 'minutes'), i.tz(r), i ); } - (c < 2 || (2 === c && u < 6)) && - T( + (s < 2 || (2 === s && c < 6)) && + E( 'Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js ' + e.version + '. See momentjs.com' ), - (g.prototype = { + (h.prototype = { _set: function(e) { (this.name = e.name), (this.abbrs = e.abbrs), @@ -223847,12 +225971,6 @@ object-assign r = this.untils; for (t = 0; t < r.length; t++) if (n < r[t]) return t; }, - countries: function() { - var e = this.name; - return Object.keys(o).filter(function(t) { - return -1 !== o[t].zones.indexOf(e); - }); - }, parse: function(e) { var t, n, @@ -223867,9 +225985,9 @@ object-assign ((t = a[o]), (n = a[o + 1]), (r = a[o ? o - 1 : o]), - t < n && C.moveAmbiguousForward + t < n && A.moveAmbiguousForward ? (t = n) - : t > r && C.moveInvalidForward && (t = r), + : t > r && A.moveInvalidForward && (t = r), i < s[o] - 6e4 * t) ) return a[o]; @@ -223880,7 +225998,7 @@ object-assign }, offset: function(e) { return ( - T('zone.offset has been deprecated in favor of zone.utcOffset'), + E('zone.offset has been deprecated in favor of zone.utcOffset'), this.offsets[this._index(e)] ); }, @@ -223888,91 +226006,67 @@ object-assign return this.offsets[this._index(e)]; } }), - (y.prototype.scoreOffsetAt = function(e) { + (m.prototype.scoreOffsetAt = function(e) { (this.offsetScore += Math.abs( this.zone.utcOffset(e.at) - e.offset )), this.zone.abbr(e.at).replace(/[^A-Z]/g, '') !== e.abbr && this.abbrScore++; }), - (C.version = '0.5.28'), - (C.dataVersion = ''), - (C._zones = n), - (C._links = r), - (C._names = i), - (C._countries = o), - (C.add = S), - (C.link = O), - (C.load = function(e) { - S(e.zones), - O(e.links), - (function(e) { - var t, n, r, i; - if (e && e.length) - for (t = 0; t < e.length; t++) - (n = (i = e[t].split('|'))[0].toUpperCase()), - (r = i[1].split(' ')), - (o[n] = new m(n, r)); - })(e.countries), - (C.dataVersion = e.version); - }), - (C.zone = A), - (C.zoneExists = function e(t) { + (A.version = '0.5.27'), + (A.dataVersion = ''), + (A._zones = n), + (A._links = r), + (A._names = o), + (A.add = M), + (A.link = S), + (A.load = function(e) { + M(e.zones), S(e.links), (A.dataVersion = e.version); + }), + (A.zone = k), + (A.zoneExists = function e(t) { return ( e.didShowError || ((e.didShowError = !0), - T( + E( "moment.tz.zoneExists('" + t + "') has been deprecated in favor of !moment.tz.zone('" + t + "')" )), - !!A(t) + !!k(t) ); }), - (C.guess = function(e) { - return (t && !e) || (t = M()), t; + (A.guess = function(e) { + return (t && !e) || (t = w()), t; }), - (C.names = function() { + (A.names = function() { var e, t = []; - for (e in i) - i.hasOwnProperty(e) && (n[e] || n[r[e]]) && i[e] && t.push(i[e]); + for (e in o) + o.hasOwnProperty(e) && (n[e] || n[r[e]]) && o[e] && t.push(o[e]); return t.sort(); }), - (C.Zone = g), - (C.unpack = h), - (C.unpackBase60 = f), - (C.needsOffset = E), - (C.moveInvalidForward = !0), - (C.moveAmbiguousForward = !1), - (C.countries = function() { - return Object.keys(o); - }), - (C.zonesForCountry = function(e, t) { - var n; - if (((n = (n = e).toUpperCase()), !(e = o[n] || null))) return null; - var r = e.zones.sort(); - return t - ? r.map(function(e) { - return { name: e, offset: A(e).utcOffset(new Date()) }; - }) - : r; - }); - var L, - P = e.fn; - function D(e) { + (A.Zone = h), + (A.unpack = p), + (A.unpackBase60 = l), + (A.needsOffset = O), + (A.moveInvalidForward = !0), + (A.moveAmbiguousForward = !1); + var T, + C = e.fn; + function L(e) { return function() { return this._z ? this._z.abbr(this) : e.call(this); }; } - function z(e) { + function P(e) { return function() { return (this._z = null), e.apply(this, arguments); }; } - (e.tz = C), + (e.tz = A), (e.defaultZone = null), (e.updateOffset = function(t, n) { var r, @@ -223980,7 +226074,7 @@ object-assign if ( (void 0 === t._z && (o && - E(t) && + O(t) && !t._isUTC && ((t._d = e.utc(t._a)._d), t.utc().add(o.parse(t), 'minutes')), (t._z = o)), @@ -223995,7 +226089,7 @@ object-assign t.utcOffset(-r, n), (t._z = i); } else t.zone(r, n); }), - (P.tz = function(t, n) { + (C.tz = function(t, n) { if (t) { if ('string' != typeof t) throw new Error( @@ -224006,10 +226100,10 @@ object-assign ']' ); return ( - (this._z = A(t)), + (this._z = k(t)), this._z ? e.updateOffset(this, n) - : T( + : E( 'Moment Timezone has no data for ' + t + '. See http://momentjs.com/timezone/docs/#/data-loading/.' @@ -224019,47 +226113,47 @@ object-assign } if (this._z) return this._z.name; }), - (P.zoneName = D(P.zoneName)), - (P.zoneAbbr = D(P.zoneAbbr)), - (P.utc = z(P.utc)), - (P.local = z(P.local)), - (P.utcOffset = - ((L = P.utcOffset), + (C.zoneName = L(C.zoneName)), + (C.zoneAbbr = L(C.zoneAbbr)), + (C.utc = P(C.utc)), + (C.local = P(C.local)), + (C.utcOffset = + ((T = C.utcOffset), function() { return ( arguments.length > 0 && (this._z = null), - L.apply(this, arguments) + T.apply(this, arguments) ); })), (e.tz.setDefault = function(t) { return ( - (c < 2 || (2 === c && u < 9)) && - T( + (s < 2 || (2 === s && c < 9)) && + E( 'Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js ' + e.version + '.' ), - (e.defaultZone = t ? A(t) : null), + (e.defaultZone = t ? k(t) : null), e ); }); - var N = e.momentProperties; + var D = e.momentProperties; return ( - '[object Array]' === Object.prototype.toString.call(N) - ? (N.push('_z'), N.push('_a')) - : N && (N._z = null), + '[object Array]' === Object.prototype.toString.call(D) + ? (D.push('_z'), D.push('_a')) + : D && (D._z = null), e ); }); }, function(e) { e.exports = JSON.parse( - '{"version":"2019c","zones":["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Accra|LMT GMT +0020|.Q 0 -k|012121212121212121212121212121212121212121212121|-26BbX.8 6tzX.8 MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE|41e5","Africa/Nairobi|LMT EAT +0230 +0245|-2r.g -30 -2u -2J|01231|-1F3Cr.g 3Dzr.g okMu MFXJ|47e5","Africa/Algiers|PMT WET WEST CET CEST|-9.l 0 -10 -10 -20|0121212121212121343431312123431213|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 DA0 Imo0 rd0 De0 9Xz0 1fb0 1ap0 16K0 2yo0 mEp0 hwL0 jxA0 11A0 dDd0 17b0 11B0 1cN0 2Dy0 1cN0 1fB0 1cL0|26e5","Africa/Lagos|LMT WAT|-d.A -10|01|-22y0d.A|17e6","Africa/Bissau|LMT -01 GMT|12.k 10 0|012|-2ldX0 2xoo0|39e4","Africa/Maputo|LMT CAT|-2a.k -20|01|-2GJea.k|26e5","Africa/Cairo|EET EEST|-20 -30|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1bIO0 vb0 1ip0 11z0 1iN0 1nz0 12p0 1pz0 10N0 1pz0 16p0 1jz0 s3d0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1WL0 rd0 1Rz0 wp0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1qL0 Xd0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1ny0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 WL0 1qN0 Rb0 1wp0 On0 1zd0 Lz0 1EN0 Fb0 c10 8n0 8Nd0 gL0 e10 mn0|15e6","Africa/Casablanca|LMT +00 +01|u.k 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2gMnt.E 130Lt.E rb0 Dd0 dVb0 b6p0 TX0 EoB0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4mn0 SyN0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0|32e5","Africa/Ceuta|WET WEST CET CEST|0 -10 -10 -20|010101010101010101010232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-25KN0 11z0 drd0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1y7o0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4VB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|85e3","Africa/El_Aaiun|LMT -01 +00 +01|Q.M 10 0 -10|012323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1rDz7.c 1GVA7.c 6L0 AL0 1Nd0 XX0 1Cp0 pz0 1cBB0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0|20e4","Africa/Johannesburg|SAST SAST SAST|-1u -20 -30|012121|-2GJdu 1Ajdu 1cL0 1cN0 1cL0|84e5","Africa/Juba|LMT CAT CAST EAT|-26.s -20 -30 -30|01212121212121212121212121212121213|-1yW26.s 1zK06.s 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0|","Africa/Khartoum|LMT CAT CAST EAT|-2a.8 -20 -30 -30|012121212121212121212121212121212131|-1yW2a.8 1zK0a.8 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 HjL0|51e5","Africa/Monrovia|MMT MMT GMT|H.8 I.u 0|012|-23Lzg.Q 28G01.m|11e5","Africa/Ndjamena|LMT WAT WAST|-10.c -10 -20|0121|-2le10.c 2J3c0.c Wn0|13e5","Africa/Sao_Tome|LMT GMT WAT|A.J 0 -10|0121|-2le00 4i6N0 2q00|","Africa/Tripoli|LMT CET CEST EET|-Q.I -10 -20 -20|012121213121212121212121213123123|-21JcQ.I 1hnBQ.I vx0 4iP0 xx0 4eN0 Bb0 7ip0 U0n0 A10 1db0 1cN0 1db0 1dd0 1db0 1eN0 1bb0 1e10 1cL0 1c10 1db0 1dd0 1db0 1cN0 1db0 1q10 fAn0 1ep0 1db0 AKq0 TA0 1o00|11e5","Africa/Tunis|PMT CET CEST|-9.l -10 -20|0121212121212121212121212121212121|-2nco9.l 18pa9.l 1qM0 DA0 3Tc0 11B0 1ze0 WM0 7z0 3d0 14L0 1cN0 1f90 1ar0 16J0 1gXB0 WM0 1rA0 11c0 nwo0 Ko0 1cM0 1cM0 1rA0 10M0 zuM0 10N0 1aN0 1qM0 WM0 1qM0 11A0 1o00|20e5","Africa/Windhoek|+0130 SAST SAST CAT WAT|-1u -20 -30 -20 -10|01213434343434343434343434343434343434343434343434343|-2GJdu 1Ajdu 1cL0 1SqL0 9Io0 16P0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0|32e4","America/Adak|NST NWT NPT BST BDT AHST HST HDT|b0 a0 a0 b0 a0 a0 a0 90|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|326","America/Anchorage|AST AWT APT AHST AHDT YST AKST AKDT|a0 90 90 a0 90 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T00 8wX0 iA0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|30e4","America/Port_of_Spain|LMT AST|46.4 40|01|-2kNvR.U|43e3","America/Araguaina|LMT -03 -02|3c.M 30 20|0121212121212121212121212121212121212121212121212121|-2glwL.c HdKL.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 ny10 Lz0|14e4","America/Argentina/Buenos_Aires|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Catamarca|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Cordoba|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Jujuy|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1ze0 TX0 1ld0 WK0 1wp0 TX0 A4p0 uL0|","America/Argentina/La_Rioja|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Mendoza|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232312121321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1u20 SL0 1vd0 Tb0 1wp0 TW0 ri10 Op0 7TX0 uL0|","America/Argentina/Rio_Gallegos|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Salta|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0|","America/Argentina/San_Juan|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rld0 m10 8lb0 uL0|","America/Argentina/San_Luis|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121212321212|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 XX0 1q20 SL0 AN0 vDb0 m10 8lb0 8L0 jd0 1qN0 WL0 1qN0|","America/Argentina/Tucuman|CMT -04 -03 -02|4g.M 40 30 20|0121212121212121212121212121212121212121212323232313232123232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 4N0 8BX0 uL0 1qN0 WL0|","America/Argentina/Ushuaia|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rkN0 8p0 8zb0 uL0|","America/Curacao|LMT -0430 AST|4z.L 4u 40|012|-2kV7o.d 28KLS.d|15e4","America/Asuncion|AMT -04 -03|3O.E 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-1x589.k 1DKM9.k 3CL0 3Dd0 10L0 1pB0 10n0 1pB0 10n0 1pB0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1lB0 14n0 1dd0 1cL0 1fd0 WL0 1rd0 1aL0 1dB0 Xz0 1qp0 Xb0 1qN0 10L0 1rB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 WN0 1qL0 11B0 1nX0 1ip0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 TX0 1tB0 19X0 1a10 1fz0 1a10 1fz0 1cN0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0|28e5","America/Atikokan|CST CDT CWT CPT EST|60 50 50 50 50|0101234|-25TQ0 1in0 Rnb0 3je0 8x30 iw0|28e2","America/Bahia_Banderas|LMT MST CST PST MDT CDT|71 70 60 80 60 50|0121212131414141414141414141414141414152525252525252525252525252525252525252525252525252525252|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nW0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|84e3","America/Bahia|LMT -03 -02|2y.4 30 20|01212121212121212121212121212121212121212121212121212121212121|-2glxp.U HdLp.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 l5B0 Rb0|27e5","America/Barbados|LMT BMT AST ADT|3W.t 3W.t 40 30|01232323232|-1Q0I1.v jsM0 1ODC1.v IL0 1ip0 17b0 1ip0 17b0 1ld0 13b0|28e4","America/Belem|LMT -03 -02|3d.U 30 20|012121212121212121212121212121|-2glwK.4 HdKK.4 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|20e5","America/Belize|LMT CST -0530 CDT|5Q.M 60 5u 50|01212121212121212121212121212121212121212121212121213131|-2kBu7.c fPA7.c Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1f0Mu qn0 lxB0 mn0|57e3","America/Blanc-Sablon|AST ADT AWT APT|40 30 30 30|010230|-25TS0 1in0 UGp0 8x50 iu0|11e2","America/Boa_Vista|LMT -04 -03|42.E 40 30|0121212121212121212121212121212121|-2glvV.k HdKV.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 smp0 WL0 1tB0 2L0|62e2","America/Bogota|BMT -05 -04|4U.g 50 40|0121|-2eb73.I 38yo3.I 2en0|90e5","America/Boise|PST PDT MST MWT MPT MDT|80 70 70 60 60 60|0101023425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-261q0 1nX0 11B0 1nX0 8C10 JCL0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 Dd0 1Kn0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e4","America/Cambridge_Bay|-00 MST MWT MPT MDDT MDT CST CDT EST|0 70 60 60 50 60 60 50 50|0123141515151515151515151515151515151515151515678651515151515151515151515151515151515151515151515151515151515151515151515151|-21Jc0 RO90 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11A0 1nX0 2K0 WQ0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e2","America/Campo_Grande|LMT -04 -03|3C.s 40 30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwl.w HdLl.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|77e4","America/Cancun|LMT CST EST EDT CDT|5L.4 60 50 40 50|0123232341414141414141414141414141414141412|-1UQG0 2q2o0 yLB0 1lb0 14p0 1lb0 14p0 Lz0 xB0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 Dd0|63e4","America/Caracas|CMT -0430 -04|4r.E 4u 40|01212|-2kV7w.k 28KM2.k 1IwOu kqo0|29e5","America/Cayenne|LMT -04 -03|3t.k 40 30|012|-2mrwu.E 2gWou.E|58e3","America/Panama|CMT EST|5j.A 50|01|-2uduE.o|15e5","America/Chicago|CST CDT EST CWT CPT|60 50 50 50 50|01010101010101010101010101010101010102010101010103401010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 1wp0 TX0 WN0 1qL0 1cN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 11B0 1Hz0 14p0 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|92e5","America/Chihuahua|LMT MST CST CDT MDT|74.k 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|81e4","America/Costa_Rica|SJMT CST CDT|5A.d 60 50|0121212121|-1Xd6n.L 2lu0n.L Db0 1Kp0 Db0 pRB0 15b0 1kp0 mL0|12e5","America/Creston|MST PST|70 80|010|-29DR0 43B0|53e2","America/Cuiaba|LMT -04 -03|3I.k 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwf.E HdLf.E 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 4a10 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|54e4","America/Danmarkshavn|LMT -03 -02 GMT|1e.E 30 20 0|01212121212121212121212121212121213|-2a5WJ.k 2z5fJ.k 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 DC0|8","America/Dawson_Creek|PST PDT PWT PPT MST|80 70 70 70 70|0102301010101010101010101010101010101010101010101010101014|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 ML0|12e3","America/Dawson|YST YDT YWT YPT YDDT PST PDT|90 80 80 80 70 80 70|0101023040565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 jrA0 fNd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|13e2","America/Denver|MST MDT MWT MPT|70 60 60 60|01010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 11B0 1qL0 WN0 mn0 Ord0 8x20 ix0 LCN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e5","America/Detroit|LMT CST EST EWT EPT EDT|5w.b 60 50 40 40 40|0123425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2Cgir.N peqr.N 156L0 8x40 iv0 6fd0 11z0 JxX1 SMX 1cN0 1cL0 aW10 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e5","America/Edmonton|LMT MST MDT MWT MPT|7x.Q 70 60 60 60|0121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2yd4q.8 shdq.8 1in0 17d0 hz0 2dB0 1fz0 1a10 11z0 1qN0 WL0 1qN0 11z0 IGN0 8x20 ix0 3NB0 11z0 XQp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|10e5","America/Eirunepe|LMT -05 -04|4D.s 50 40|0121212121212121212121212121212121|-2glvk.w HdLk.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0 yTd0 d5X0|31e3","America/El_Salvador|LMT CST CDT|5U.M 60 50|012121|-1XiG3.c 2Fvc3.c WL0 1qN0 WL0|11e5","America/Tijuana|LMT MST PST PDT PWT PPT|7M.4 70 80 70 70 70|012123245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQE0 4PX0 8mM0 8lc0 SN0 1cL0 pHB0 83r0 zI0 5O10 1Rz0 cOO0 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 BUp0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|20e5","America/Fort_Nelson|PST PDT PWT PPT MST|80 70 70 70 70|01023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010104|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0|39e2","America/Fort_Wayne|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010101023010101010101010101040454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 QI10 Db0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 5Tz0 1o10 qLb0 1cL0 1cN0 1cL0 1qhd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Fortaleza|LMT -03 -02|2y 30 20|0121212121212121212121212121212121212121|-2glxq HdLq 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 5z0 2mN0 On0|34e5","America/Glace_Bay|LMT AST ADT AWT APT|3X.M 40 30 30 30|012134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsI0.c CwO0.c 1in0 UGp0 8x50 iu0 iq10 11z0 Jg10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","America/Godthab|LMT -03 -02|3q.U 30 20|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5Ux.4 2z5dx.4 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e3","America/Goose_Bay|NST NDT NST NDT NWT NPT AST ADT ADDT|3u.Q 2u.Q 3u 2u 2u 2u 40 30 20|010232323232323245232323232323232323232323232323232323232326767676767676767676767676767676767676767676768676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-25TSt.8 1in0 DXb0 2HbX.8 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 S10 g0u 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|76e2","America/Grand_Turk|KMT EST EDT AST|57.a 50 40 40|01212121212121212121212121212121212121212121212121212121212121212121212121232121212121212121212121212121212121212121|-2l1uQ.O 2HHBQ.O 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 5Ip0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e2","America/Guatemala|LMT CST CDT|62.4 60 50|0121212121|-24KhV.U 2efXV.U An0 mtd0 Nz0 ifB0 17b0 zDB0 11z0|13e5","America/Guayaquil|QMT -05 -04|5e 50 40|0121|-1yVSK 2uILK rz0|27e5","America/Guyana|LMT -0345 -03 -04|3Q.E 3J 30 40|0123|-2dvU7.k 2r6LQ.k Bxbf|80e4","America/Halifax|LMT AST ADT AWT APT|4e.o 40 30 30 30|0121212121212121212121212121212121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsHJ.A xzzJ.A 1db0 3I30 1in0 3HX0 IL0 1E10 ML0 1yN0 Pb0 1Bd0 Mn0 1Bd0 Rz0 1w10 Xb0 1w10 LX0 1w10 Xb0 1w10 Lz0 1C10 Jz0 1E10 OL0 1yN0 Un0 1qp0 Xb0 1qp0 11X0 1w10 Lz0 1HB0 LX0 1C10 FX0 1w10 Xb0 1qp0 Xb0 1BB0 LX0 1td0 Xb0 1qp0 Xb0 Rf0 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 6i10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|39e4","America/Havana|HMT CST CDT|5t.A 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Meuu.o 72zu.o ML0 sld0 An0 1Nd0 Db0 1Nd0 An0 6Ep0 An0 1Nd0 An0 JDd0 Mn0 1Ap0 On0 1fd0 11X0 1qN0 WL0 1wp0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 14n0 1ld0 14L0 1kN0 15b0 1kp0 1cL0 1cN0 1fz0 1a10 1fz0 1fB0 11z0 14p0 1nX0 11B0 1nX0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 1a10 1in0 1a10 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 17c0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 11A0 6i00 Rc0 1wo0 U00 1tA0 Rc0 1wo0 U00 1wo0 U00 1zc0 U00 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0|21e5","America/Hermosillo|LMT MST CST PST MDT|7n.Q 70 60 80 60|0121212131414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0|64e4","America/Indiana/Knox|CST CDT CWT CPT EST|60 50 50 50 50|0101023010101010101010101010101010101040101010101010101010101010101010101010101010101010141010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 3Cn0 8wp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 z8o0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Marengo|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010104545454545414545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 dyN0 11z0 6fd0 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1e6p0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Petersburg|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010104010101010101010101010141014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 3Fb0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 19co0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Tell_City|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010401054541010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 8wn0 1cN0 1cL0 1cN0 1cK0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vevay|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010102304545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 kPB0 Awn0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1lnd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vincennes|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010454541014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 g0p0 11z0 1o10 11z0 1qL0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 caL0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Winamac|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010101010454541054545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1za0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Inuvik|-00 PST PDDT MST MDT|0 80 60 70 60|0121343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-FnA0 tWU0 1fA0 wPe0 2pz0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|35e2","America/Iqaluit|-00 EWT EPT EST EDDT EDT CST CDT|0 40 40 50 30 40 60 50|01234353535353535353535353535353535353535353567353535353535353535353535353535353535353535353535353535353535353535353535353|-16K00 7nX0 iv0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|67e2","America/Jamaica|KMT EST EDT|57.a 50 40|0121212121212121212121|-2l1uQ.O 2uM1Q.O 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0|94e4","America/Juneau|PST PWT PPT PDT YDT YST AKST AKDT|80 70 70 70 80 90 90 80|01203030303030303030303030403030356767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cM0 1cM0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|33e3","America/Kentucky/Louisville|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101010102301010101010101010101010101454545454545414545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 3Fd0 Nb0 LPd0 11z0 RB0 8x30 iw0 1nX1 e0X 9vd0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 xz0 gso0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Kentucky/Monticello|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 SWp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/La_Paz|CMT BST -04|4w.A 3w.A 40|012|-1x37r.o 13b0|19e5","America/Lima|LMT -05 -04|58.A 50 40|0121212121212121|-2tyGP.o 1bDzP.o zX0 1aN0 1cL0 1cN0 1cL0 1PrB0 zX0 1O10 zX0 6Gp0 zX0 98p0 zX0|11e6","America/Los_Angeles|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 5Wp1 1VaX 3dA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e6","America/Maceio|LMT -03 -02|2m.Q 30 20|012121212121212121212121212121212121212121|-2glxB.8 HdLB.8 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 8Q10 WL0 1tB0 5z0 2mN0 On0|93e4","America/Managua|MMT CST EST CDT|5J.c 60 50 50|0121313121213131|-1quie.M 1yAMe.M 4mn0 9Up0 Dz0 1K10 Dz0 s3F0 1KH0 DB0 9In0 k8p0 19X0 1o30 11y0|22e5","America/Manaus|LMT -04 -03|40.4 40 30|01212121212121212121212121212121|-2glvX.U HdKX.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0|19e5","America/Martinique|FFMT AST ADT|44.k 40 30|0121|-2mPTT.E 2LPbT.E 19X0|39e4","America/Matamoros|LMT CST CDT|6E 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|45e4","America/Mazatlan|LMT MST CST PST MDT|75.E 70 60 80 60|0121212131414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|44e4","America/Menominee|CST CDT CWT CPT EST|60 50 50 50 50|01010230101041010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 LCN0 1fz0 6410 9Jb0 1cM0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|85e2","America/Merida|LMT CST EST CDT|5W.s 60 50 50|0121313131313131313131313131313131313131313131313131313131313131313131313131313131313131|-1UQG0 2q2o0 2hz0 wu30 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|11e5","America/Metlakatla|PST PWT PPT PDT AKST AKDT|80 70 70 70 90 80|01203030303030303030303030303030304545450454545454545454545454545454545454545454|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1hU10 Rd0 1zb0 Op0 1zb0 Op0 1zb0 uM0 jB0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Mexico_City|LMT MST CST CDT CWT|6A.A 70 60 50 50|012121232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 gEn0 TX0 3xd0 Jb0 6zB0 SL0 e5d0 17b0 1Pff0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|20e6","America/Miquelon|LMT AST -03 -02|3I.E 40 30 20|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2mKkf.k 2LTAf.k gQ10 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|61e2","America/Moncton|EST AST ADT AWT APT|50 40 30 30 30|012121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsH0 CwN0 1in0 zAo0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1K10 Lz0 1zB0 NX0 1u10 Wn0 S20 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14n1 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 ReX 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|64e3","America/Monterrey|LMT CST CDT|6F.g 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|41e5","America/Montevideo|LMT MMT -04 -03 -0330 -0230 -02 -0130|3I.P 3I.P 40 30 3u 2u 20 1u|012343434343434343434343435353636353636375363636363636363636363636363636363636363636363|-2tRUf.9 sVc0 8jcf.9 1db0 1dcu 1cLu 1dcu 1cLu ircu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu WLu 1fAu 1cLu 1o0u 11zu NAu 3jXu zXu Dq0u 19Xu pcu jz0 cm10 19X0 6tB0 1fbu 3o0u jX0 4vB0 xz0 3Cp0 mmu 1a10 IMu Db0 4c10 uL0 1Nd0 An0 1SN0 uL0 mp0 28L0 iPB0 un0 1SN0 xz0 1zd0 Lz0 1zd0 Rb0 1zd0 On0 1wp0 Rb0 s8p0 1fB0 1ip0 11z0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 11z0|17e5","America/Toronto|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101012301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 11Wu 1nzu 1fD0 WJ0 1wr0 Nb0 1Ap0 On0 1zd0 On0 1wp0 TX0 1tB0 TX0 1tB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 4kM0 8x40 iv0 1o10 11z0 1nX0 11z0 1o10 11z0 1o10 1qL0 11D0 1nX0 11B0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e5","America/Nassau|LMT EST EDT|59.u 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2kNuO.u 26XdO.u 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|24e4","America/New_York|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 11B0 1qL0 1a10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e6","America/Nipigon|EST EDT EWT EPT|50 40 40 40|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 Rnb0 3je0 8x40 iv0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|16e2","America/Nome|NST NWT NPT BST BDT YST AKST AKDT|b0 a0 a0 b0 a0 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cl0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|38e2","America/Noronha|LMT -02 -01|29.E 20 10|0121212121212121212121212121212121212121|-2glxO.k HdKO.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|30e2","America/North_Dakota/Beulah|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/Center|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/New_Salem|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Ojinaga|LMT MST CST CDT MDT|6V.E 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3","America/Pangnirtung|-00 AST AWT APT ADDT ADT EDT EST CST CDT|0 40 30 30 20 30 40 50 60 50|012314151515151515151515151515151515167676767689767676767676767676767676767676767676767676767676767676767676767676767676767|-1XiM0 PnG0 8x50 iu0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1o00 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Paramaribo|LMT PMT PMT -0330 -03|3E.E 3E.Q 3E.A 3u 30|01234|-2nDUj.k Wqo0.c qanX.I 1yVXN.o|24e4","America/Phoenix|MST MDT MWT|70 60 60|01010202010|-261r0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5","America/Port-au-Prince|PPMT EST EDT|4N 50 40|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-28RHb 2FnMb 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14q0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 i6n0 1nX0 11B0 1nX0 d430 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 3iN0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Rio_Branco|LMT -05 -04|4v.c 50 40|01212121212121212121212121212121|-2glvs.M HdLs.M 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0 d5X0|31e4","America/Porto_Velho|LMT -04 -03|4f.A 40 30|012121212121212121212121212121|-2glvI.o HdKI.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|37e4","America/Puerto_Rico|AST AWT APT|40 30 30|0120|-17lU0 7XT0 iu0|24e5","America/Punta_Arenas|SMT -05 -04 -03|4G.K 50 40 30|0102021212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 blz0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|","America/Rainy_River|CST CDT CWT CPT|60 50 50 50|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TQ0 1in0 Rnb0 3je0 8x30 iw0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|842","America/Rankin_Inlet|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313131313131313131313131313131313131313131313131313131313131313131|-vDc0 keu0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e2","America/Recife|LMT -03 -02|2j.A 30 20|0121212121212121212121212121212121212121|-2glxE.o HdLE.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|33e5","America/Regina|LMT MST MDT MWT MPT CST|6W.A 70 60 60 60 60|012121212121212121212121341212121212121212121212121215|-2AD51.o uHe1.o 1in0 s2L0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 66N0 1cL0 1cN0 19X0 1fB0 1cL0 1fB0 1cL0 1cN0 1cL0 M30 8x20 ix0 1ip0 1cL0 1ip0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 3NB0 1cL0 1cN0|19e4","America/Resolute|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313431313131313131313131313131313131313131313131313131313131313131|-SnA0 GWS0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|229","America/Santarem|LMT -04 -03|3C.M 40 30|0121212121212121212121212121212|-2glwl.c HdLl.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0|21e4","America/Santiago|SMT -05 -04 -03|4G.K 50 40 30|010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 9Bz0 jb0 1oN0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|62e5","America/Santo_Domingo|SDMT EST EDT -0430 AST|4E 50 40 4u 40|01213131313131414|-1ttjk 1lJMk Mn0 6sp0 Lbu 1Cou yLu 1RAu wLu 1QMu xzu 1Q0u xXu 1PAu 13jB0 e00|29e5","America/Sao_Paulo|LMT -03 -02|36.s 30 20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwR.w HdKR.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 pTd0 PX0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|20e6","America/Scoresbysund|LMT -02 -01 +00|1r.Q 20 10 0|0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2a5Ww.8 2z5ew.8 1a00 1cK0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|452","America/Sitka|PST PWT PPT PDT YST AKST AKDT|80 70 70 70 90 90 80|01203030303030303030303030303030345656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|90e2","America/St_Johns|NST NDT NST NDT NWT NPT NDDT|3u.Q 2u.Q 3u 2u 2u 2u 1u|01010101010101010101010101010101010102323232323232324523232323232323232323232323232323232323232323232323232323232323232323232323232323232326232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28oit.8 14L0 1nB0 1in0 1gm0 Dz0 1JB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1fB0 19X0 1fB0 19X0 10O0 eKX.8 19X0 1iq0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Swift_Current|LMT MST MDT MWT MPT CST|7b.k 70 60 60 60 60|012134121212121212121215|-2AD4M.E uHdM.E 1in0 UGp0 8x20 ix0 1o10 17b0 1ip0 11z0 1o10 11z0 1o10 11z0 isN0 1cL0 3Cp0 1cL0 1cN0 11z0 1qN0 WL0 pMp0|16e3","America/Tegucigalpa|LMT CST CDT|5M.Q 60 50|01212121|-1WGGb.8 2ETcb.8 WL0 1qN0 WL0 GRd0 AL0|11e5","America/Thule|LMT AST ADT|4z.8 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5To.Q 31NBo.Q 1cL0 1cN0 1cL0 1fB0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|656","America/Thunder_Bay|CST EST EWT EPT EDT|60 50 40 40 40|0123141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-2q5S0 1iaN0 8x40 iv0 XNB0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Vancouver|PST PDT PWT PPT|80 70 70 70|0102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TO0 1in0 UGp0 8x10 iy0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Whitehorse|YST YDT YWT YPT YDDT PST PDT|90 80 80 80 70 80 70|0101023040565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 3NA0 vrd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3","America/Winnipeg|CST CDT CWT CPT|60 50 50 50|010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aIi0 WL0 3ND0 1in0 Jap0 Rb0 aCN0 8x30 iw0 1tB0 11z0 1ip0 11z0 1o10 11z0 1o10 11z0 1rd0 10L0 1op0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 1cL0 1cN0 11z0 6i10 WL0 6i10 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|66e4","America/Yakutat|YST YWT YPT YDT AKST AKDT|90 80 80 80 90 80|01203030303030303030303030303030304545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-17T10 8x00 iz0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cn0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|642","America/Yellowknife|-00 MST MWT MPT MDDT MDT|0 70 60 60 50 60|012314151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151|-1pdA0 hix0 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","Antarctica/Casey|-00 +08 +11|0 -80 -b0|01212121|-2q00 1DjS0 T90 40P0 KL0 blz0 3m10|10","Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70","Antarctica/DumontDUrville|-00 +10|0 -a0|0101|-U0o0 cfq0 bFm0|80","Antarctica/Macquarie|AEST AEDT -00 +11|-a0 -b0 0 -b0|0102010101010101010101010101010101010101010101010101010101010101010101010101010101010101013|-29E80 19X0 4SL0 1ayy0 Lvs0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0|1","Antarctica/Mawson|-00 +06 +05|0 -60 -50|012|-CEo0 2fyk0|60","Pacific/Auckland|NZMT NZST NZST NZDT|-bu -cu -c0 -d0|01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1GCVu Lz0 1tB0 11zu 1o0u 11zu 1o0u 11zu 1o0u 14nu 1lcu 14nu 1lcu 1lbu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1qLu WMu 1qLu 11Au 1n1bu IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|14e5","Antarctica/Palmer|-00 -03 -04 -02|0 30 40 20|0121212121213121212121212121212121212121212121212121212121212121212121212121212121|-cao0 nD0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 jsN0 14N0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|40","Antarctica/Rothera|-00 -03|0 30|01|gOo0|130","Antarctica/Syowa|-00 +03|0 -30|01|-vs00|20","Antarctica/Troll|-00 +00 +02|0 0 -20|01212121212121212121212121212121212121212121212121212121212121212121|1puo0 hd0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|40","Antarctica/Vostok|-00 +06|0 -60|01|-tjA0|25","Europe/Oslo|CET CEST|-10 -20|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2awM0 Qm0 W6o0 5pf0 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 wJc0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1qM0 WM0 zpc0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e4","Asia/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5","Asia/Almaty|LMT +05 +06 +07|-57.M -50 -60 -70|012323232323232323232321232323232323232323232323232|-1Pc57.M eUo7.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|15e5","Asia/Amman|LMT EET EEST|-2n.I -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1yW2n.I 1HiMn.I KL0 1oN0 11b0 1oN0 11b0 1pd0 1dz0 1cp0 11b0 1op0 11b0 fO10 1db0 1e10 1cL0 1cN0 1cL0 1cN0 1fz0 1pd0 10n0 1ld0 14n0 1hB0 15b0 1ip0 19X0 1cN0 1cL0 1cN0 17b0 1ld0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1So0 y00 1fc0 1dc0 1co0 1dc0 1cM0 1cM0 1cM0 1o00 11A0 1lc0 17c0 1cM0 1cM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 4bX0 Dd0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|25e5","Asia/Anadyr|LMT +12 +13 +14 +11|-bN.U -c0 -d0 -e0 -b0|01232121212121212121214121212121212121212121212121212121212141|-1PcbN.U eUnN.U 23CL0 1db0 2q10 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|13e3","Asia/Aqtau|LMT +04 +05 +06|-3l.4 -40 -50 -60|012323232323232323232123232312121212121212121212|-1Pc3l.4 eUnl.4 24PX0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|15e4","Asia/Aqtobe|LMT +04 +05 +06|-3M.E -40 -50 -60|0123232323232323232321232323232323232323232323232|-1Pc3M.E eUnM.E 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|27e4","Asia/Ashgabat|LMT +04 +05 +06|-3R.w -40 -50 -60|0123232323232323232323212|-1Pc3R.w eUnR.w 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0|41e4","Asia/Atyrau|LMT +03 +05 +06 +04|-3r.I -30 -50 -60 -40|01232323232323232323242323232323232324242424242|-1Pc3r.I eUor.I 24PW0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 2sp0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Baghdad|BMT +03 +04|-2V.A -30 -40|012121212121212121212121212121212121212121212121212121|-26BeV.A 2ACnV.A 11b0 1cp0 1dz0 1dd0 1db0 1cN0 1cp0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1de0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0|66e5","Asia/Qatar|LMT +04 +03|-3q.8 -40 -30|012|-21Jfq.8 27BXq.8|96e4","Asia/Baku|LMT +03 +04 +05|-3j.o -30 -40 -50|01232323232323232323232123232323232323232323232323232323232323232|-1Pc3j.o 1jUoj.o WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 9Je0 1o00 11z0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e5","Asia/Bangkok|BMT +07|-6G.4 -70|01|-218SG.4|15e6","Asia/Barnaul|LMT +06 +07 +08|-5z -60 -70 -80|0123232323232323232323212323232321212121212121212121212121212121212|-21S5z pCnz 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 p90 LE0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|","Asia/Beirut|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-21aq0 1on0 1410 1db0 19B0 1in0 1ip0 WL0 1lQp0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 q6N0 En0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1op0 11b0 dA10 17b0 1iN0 17b0 1iN0 17b0 1iN0 17b0 1vB0 SL0 1mp0 13z0 1iN0 17b0 1iN0 17b0 1jd0 12n0 1a10 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0|22e5","Asia/Bishkek|LMT +05 +06 +07|-4W.o -50 -60 -70|012323232323232323232321212121212121212121212121212|-1Pc4W.o eUnW.o 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2e00 1tX0 17b0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1cPu 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0|87e4","Asia/Brunei|LMT +0730 +08|-7D.E -7u -80|012|-1KITD.E gDc9.E|42e4","Asia/Kolkata|MMT IST +0630|-5l.a -5u -6u|012121|-2zOtl.a 1r2LP.a 1un0 HB0 7zX0|15e6","Asia/Chita|LMT +08 +09 +10|-7x.Q -80 -90 -a0|012323232323232323232321232323232323232323232323232323232323232312|-21Q7x.Q pAnx.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3re0|33e4","Asia/Choibalsan|LMT +07 +08 +10 +09|-7C -70 -80 -a0 -90|0123434343434343434343434343434343434343434343424242|-2APHC 2UkoC cKn0 1da0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 3Db0 h1f0 1cJ0 1cP0 1cJ0|38e3","Asia/Shanghai|CST CDT|-80 -90|010101010101010101010101010|-1c2w0 Rz0 11d0 1wL0 A10 8HX0 1G10 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 aL0 1tU30 Rb0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0|23e6","Asia/Colombo|MMT +0530 +06 +0630|-5j.w -5u -60 -6u|01231321|-2zOtj.w 1rFbN.w 1zzu 7Apu 23dz0 11zu n3cu|22e5","Asia/Dhaka|HMT +0630 +0530 +06 +07|-5R.k -6u -5u -60 -70|0121343|-18LFR.k 1unn.k HB0 m6n0 2kxbu 1i00|16e6","Asia/Damascus|LMT EET EEST|-2p.c -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-21Jep.c Hep.c 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1xRB0 11X0 1oN0 10L0 1pB0 11b0 1oN0 10L0 1mp0 13X0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 Nb0 1AN0 Nb0 bcp0 19X0 1gp0 19X0 3ld0 1xX0 Vd0 1Bz0 Sp0 1vX0 10p0 1dz0 1cN0 1cL0 1db0 1db0 1g10 1an0 1ap0 1db0 1fd0 1db0 1cN0 1db0 1dd0 1db0 1cp0 1dz0 1c10 1dX0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 19z0 1fB0 1qL0 11B0 1on0 Wp0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0|26e5","Asia/Dili|LMT +08 +09|-8m.k -80 -90|01212|-2le8m.k 1dnXm.k 1nfA0 Xld0|19e4","Asia/Dubai|LMT +04|-3F.c -40|01|-21JfF.c|39e5","Asia/Dushanbe|LMT +05 +06 +07|-4z.c -50 -60 -70|012323232323232323232321|-1Pc4z.c eUnz.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2hB0|76e4","Asia/Famagusta|LMT EET EEST +03|-2f.M -20 -30 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212312121212121212121212121212121212121212121|-1Vc2f.M 2a3cf.M 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 15U0 2Ks0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Asia/Gaza|EET EEST IST IDT|-20 -30 -20 -30|0101010101010101010101010101010123232323232323232323232323232320101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 11z0 1o10 14o0 1lA1 SKX 1xd1 MKX 1AN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nz0 1220 1qL0 WN0 1qL0 WN0 1qL0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0|18e5","Asia/Hebron|EET EEST IST IDT|-20 -30 -20 -30|010101010101010101010101010101012323232323232323232323232323232010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 12L0 1mN0 14o0 1lc0 Tb0 1xd1 MKX bB0 cn0 1cN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nz0 1220 1qL0 WN0 1qL0 WN0 1qL0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0|25e4","Asia/Ho_Chi_Minh|LMT PLMT +07 +08 +09|-76.E -76.u -70 -80 -90|0123423232|-2yC76.E bK00.a 1h7b6.u 5lz0 18o0 3Oq0 k5b0 aW00 BAM0|90e5","Asia/Hong_Kong|LMT HKT HKST HKWT JST|-7A.G -80 -90 -8u -90|0123412121212121212121212121212121212121212121212121212121212121212121|-2CFH0 1taO0 Hc0 xUu 9tBu 11z0 1tDu Rc0 1wo0 11A0 1cM0 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1nX0 U10 1tz0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|73e5","Asia/Hovd|LMT +06 +07 +08|-66.A -60 -70 -80|012323232323232323232323232323232323232323232323232|-2APG6.A 2Uko6.A cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|81e3","Asia/Irkutsk|IMT +07 +08 +09|-6V.5 -70 -80 -90|01232323232323232323232123232323232323232323232323232323232323232|-21zGV.5 pjXV.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Europe/Istanbul|IMT EET EEST +03 +04|-1U.U -20 -30 -30 -40|0121212121212121212121212121212121212121212121234312121212121212121212121212121212121212121212121212121212121212123|-2ogNU.U dzzU.U 11b0 8tB0 1on0 1410 1db0 19B0 1in0 3Rd0 Un0 1oN0 11b0 zSN0 CL0 mp0 1Vz0 1gN0 8yn0 1yp0 ML0 1kp0 17b0 1ip0 17b0 1fB0 19X0 1ip0 19X0 1ip0 17b0 qdB0 38L0 1jd0 Tz0 l6O0 11A0 WN0 1qL0 TB0 1tX0 U10 1tz0 11B0 1in0 17d0 z90 cne0 pb0 2Cp0 1800 14o0 1dc0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1a00 1fA0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WO0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 Xc0 1qo0 WM0 1qM0 11A0 1o00 1200 1nA0 11A0 1tA0 U00 15w0|13e6","Asia/Jakarta|BMT +0720 +0730 +09 +08 WIB|-77.c -7k -7u -90 -80 -70|01232425|-1Q0Tk luM0 mPzO 8vWu 6kpu 4PXu xhcu|31e6","Asia/Jayapura|LMT +09 +0930 WIT|-9m.M -90 -9u -90|0123|-1uu9m.M sMMm.M L4nu|26e4","Asia/Jerusalem|JMT IST IDT IDDT|-2k.E -20 -30 -40|012121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-26Bek.E SyMk.E 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 3LB0 Em0 or0 1cn0 1dB0 16n0 10O0 1ja0 1tC0 14o0 1cM0 1a00 11A0 1Na0 An0 1MP0 AJ0 1Kp0 LC0 1oo0 Wl0 EQN0 Db0 1fB0 Rb0 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 1hB0 1dX0 1ep0 1aL0 1eN0 17X0 1nf0 11z0 1tB0 19W0 1e10 17b0 1ep0 1gL0 18N0 1fz0 1eN0 17b0 1gq0 1gn0 19d0 1dz0 1c10 17X0 1hB0 1gn0 19d0 1dz0 1c10 17X0 1kp0 1dz0 1c10 1aL0 1eN0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0|81e4","Asia/Kabul|+04 +0430|-40 -4u|01|-10Qs0|46e5","Asia/Kamchatka|LMT +11 +12 +13|-ay.A -b0 -c0 -d0|012323232323232323232321232323232323232323232323232323232323212|-1SLKy.A ivXy.A 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|18e4","Asia/Karachi|LMT +0530 +0630 +05 PKT PKST|-4s.c -5u -6u -50 -50 -60|012134545454|-2xoss.c 1qOKW.c 7zX0 eup0 LqMu 1fy00 1cL0 dK10 11b0 1610 1jX0|24e6","Asia/Urumqi|LMT +06|-5O.k -60|01|-1GgtO.k|32e5","Asia/Kathmandu|LMT +0530 +0545|-5F.g -5u -5J|012|-21JhF.g 2EGMb.g|12e5","Asia/Khandyga|LMT +08 +09 +10 +11|-92.d -80 -90 -a0 -b0|0123232323232323232323212323232323232323232323232343434343434343432|-21Q92.d pAp2.d 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 qK0 yN0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|66e2","Asia/Krasnoyarsk|LMT +06 +07 +08|-6b.q -60 -70 -80|01232323232323232323232123232323232323232323232323232323232323232|-21Hib.q prAb.q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|10e5","Asia/Kuala_Lumpur|SMT +07 +0720 +0730 +09 +08|-6T.p -70 -7k -7u -90 -80|0123435|-2Bg6T.p 17anT.p l5XE 17bO 8Fyu 1so1u|71e5","Asia/Kuching|LMT +0730 +08 +0820 +09|-7l.k -7u -80 -8k -90|0123232323232323242|-1KITl.k gDbP.k 6ynu AnE 1O0k AnE 1NAk AnE 1NAk AnE 1NAk AnE 1O0k AnE 1NAk AnE pAk 8Fz0|13e4","Asia/Macau|LMT CST +09 +10 CDT|-7y.a -80 -90 -a0 -90|012323214141414141414141414141414141414141414141414141414141414141414141|-2CFHy.a 1uqKy.a PX0 1kn0 15B0 11b0 4Qq0 1oM0 11c0 1ko0 1u00 11A0 1cM0 11c0 1o00 11A0 1o00 11A0 1oo0 1400 1o00 11A0 1o00 U00 1tA0 U00 1wo0 Rc0 1wru U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cK0 1cO0 1cK0 1cO0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|57e4","Asia/Magadan|LMT +10 +11 +12|-a3.c -a0 -b0 -c0|012323232323232323232321232323232323232323232323232323232323232312|-1Pca3.c eUo3.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Cq0|95e3","Asia/Makassar|LMT MMT +08 +09 WITA|-7V.A -7V.A -80 -90 -80|01234|-21JjV.A vfc0 myLV.A 8ML0|15e5","Asia/Manila|PST PDT JST|-80 -90 -90|010201010|-1kJI0 AL0 cK10 65X0 mXB0 vX0 VK10 1db0|24e6","Asia/Nicosia|LMT EET EEST|-2d.s -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Vc2d.s 2a3cd.s 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|32e4","Asia/Novokuznetsk|LMT +06 +07 +08|-5M.M -60 -70 -80|012323232323232323232321232323232323232323232323232323232323212|-1PctM.M eULM.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|55e4","Asia/Novosibirsk|LMT +06 +07 +08|-5v.E -60 -70 -80|0123232323232323232323212323212121212121212121212121212121212121212|-21Qnv.E pAFv.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 ml0 Os0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 4eN0|15e5","Asia/Omsk|LMT +05 +06 +07|-4R.u -50 -60 -70|01232323232323232323232123232323232323232323232323232323232323232|-224sR.u pMLR.u 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|12e5","Asia/Oral|LMT +03 +05 +06 +04|-3p.o -30 -50 -60 -40|01232323232323232424242424242424242424242424242|-1Pc3p.o eUop.o 23CK0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 1cM0 IM0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|27e4","Asia/Pontianak|LMT PMT +0730 +09 +08 WITA WIB|-7h.k -7h.k -7u -90 -80 -80 -70|012324256|-2ua7h.k XE00 munL.k 8Rau 6kpu 4PXu xhcu Wqnu|23e4","Asia/Pyongyang|LMT KST JST KST|-8n -8u -90 -90|012313|-2um8n 97XR 1lTzu 2Onc0 6BA0|29e5","Asia/Qostanay|LMT +04 +05 +06|-4e.s -40 -50 -60|012323232323232323232123232323232323232323232323|-1Pc4e.s eUoe.s 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Qyzylorda|LMT +04 +05 +06|-4l.Q -40 -50 -60|01232323232323232323232323232323232323232323232|-1Pc4l.Q eUol.Q 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 3ao0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 zQl0|73e4","Asia/Rangoon|RMT +0630 +09|-6o.L -6u -90|0121|-21Jio.L SmnS.L 7j9u|48e5","Asia/Sakhalin|LMT +09 +11 +12 +10|-9u.M -90 -b0 -c0 -a0|01232323232323232323232423232323232424242424242424242424242424242|-2AGVu.M 1BoMu.M 1qFa0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 2pB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|58e4","Asia/Samarkand|LMT +04 +05 +06|-4r.R -40 -50 -60|01232323232323232323232|-1Pc4r.R eUor.R 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0|36e4","Asia/Seoul|LMT KST JST KST KDT KDT|-8r.Q -8u -90 -90 -a0 -9u|012343434343151515151515134343|-2um8r.Q 97XV.Q 1m1zu 6CM0 Fz0 1kN0 14n0 1kN0 14L0 1zd0 On0 69B0 2I0u OL0 1FB0 Rb0 1qN0 TX0 1tB0 TX0 1tB0 TX0 1tB0 TX0 2ap0 12FBu 11A0 1o00 11A0|23e6","Asia/Srednekolymsk|LMT +10 +11 +12|-ae.Q -a0 -b0 -c0|01232323232323232323232123232323232323232323232323232323232323232|-1Pcae.Q eUoe.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|35e2","Asia/Taipei|CST JST CDT|-80 -90 -90|01020202020202020202020202020202020202020|-1iw80 joM0 1yo0 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 10N0 1BX0 10p0 1pz0 10p0 1pz0 10p0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1BB0 ML0 1Bd0 ML0 uq10 1db0 1cN0 1db0 97B0 AL0|74e5","Asia/Tashkent|LMT +05 +06 +07|-4B.b -50 -60 -70|012323232323232323232321|-1Pc4B.b eUnB.b 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0|23e5","Asia/Tbilisi|TBMT +03 +04 +05|-2X.b -30 -40 -50|0123232323232323232323212121232323232323232323212|-1Pc2X.b 1jUnX.b WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cK0 1cL0 1cN0 1cL0 1cN0 2pz0 1cL0 1fB0 3Nz0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 An0 Os0 WM0|11e5","Asia/Tehran|LMT TMT +0330 +04 +05 +0430|-3p.I -3p.I -3u -40 -50 -4u|01234325252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2btDp.I 1d3c0 1huLT.I TXu 1pz0 sN0 vAu 1cL0 1dB0 1en0 pNB0 UL0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 64p0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0|14e6","Asia/Thimphu|LMT +0530 +06|-5W.A -5u -60|012|-Su5W.A 1BGMs.A|79e3","Asia/Tokyo|JST JDT|-90 -a0|010101010|-QJJ0 Rc0 1lc0 14o0 1zc0 Oo0 1zc0 Oo0|38e6","Asia/Tomsk|LMT +06 +07 +08|-5D.P -60 -70 -80|0123232323232323232323212323232323232323232323212121212121212121212|-21NhD.P pxzD.P 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 co0 1bB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Qp0|10e5","Asia/Ulaanbaatar|LMT +07 +08 +09|-77.w -70 -80 -90|012323232323232323232323232323232323232323232323232|-2APH7.w 2Uko7.w cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|12e5","Asia/Ust-Nera|LMT +08 +09 +12 +11 +10|-9w.S -80 -90 -c0 -b0 -a0|012343434343434343434345434343434343434343434343434343434343434345|-21Q9w.S pApw.S 23CL0 1d90 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|65e2","Asia/Vladivostok|LMT +09 +10 +11|-8L.v -90 -a0 -b0|01232323232323232323232123232323232323232323232323232323232323232|-1SJIL.v itXL.v 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Asia/Yakutsk|LMT +08 +09 +10|-8C.W -80 -90 -a0|01232323232323232323232123232323232323232323232323232323232323232|-21Q8C.W pAoC.W 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|28e4","Asia/Yekaterinburg|LMT PMT +04 +05 +06|-42.x -3J.5 -40 -50 -60|012343434343434343434343234343434343434343434343434343434343434343|-2ag42.x 7mQh.s qBvJ.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|14e5","Asia/Yerevan|LMT +03 +04 +05|-2W -30 -40 -50|0123232323232323232323212121212323232323232323232323232323232|-1Pc2W 1jUnW WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 4RX0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|13e5","Atlantic/Azores|HMT -02 -01 +00 WET|1S.w 20 10 0 0|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323234323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2ldW0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 3Co0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|25e4","Atlantic/Bermuda|LMT AST ADT|4j.i 40 30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1BnRE.G 1LTbE.G 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e3","Atlantic/Canary|LMT -01 WET WEST|11.A 10 0 -10|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UtaW.o XPAW.o 1lAK0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Atlantic/Cape_Verde|LMT -02 -01|1y.4 20 10|01212|-2ldW0 1eEo0 7zX0 1djf0|50e4","Atlantic/Faroe|LMT WET WEST|r.4 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2uSnw.U 2Wgow.U 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|49e3","Atlantic/Madeira|FMT -01 +00 +01 WET WEST|17.A 10 0 -10 0 -10|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2ldX0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 3Co0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e4","Atlantic/Reykjavik|LMT -01 +00 GMT|1s 10 0 0|012121212121212121212121212121212121212121212121212121212121212121213|-2uWmw mfaw 1Bd0 ML0 1LB0 Cn0 1LB0 3fX0 C10 HrX0 1cO0 LB0 1EL0 LA0 1C00 Oo0 1wo0 Rc0 1wo0 Rc0 1wo0 Rc0 1zc0 Oo0 1zc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0|12e4","Atlantic/South_Georgia|-02|20|0||30","Atlantic/Stanley|SMT -04 -03 -02|3P.o 40 30 20|012121212121212323212121212121212121212121212121212121212121212121212|-2kJw8.A 12bA8.A 19X0 1fB0 19X0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 Cn0 1Cc10 WL0 1qL0 U10 1tz0 2mN0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 U10 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qN0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 U10 1tz0 U10 1tz0 U10|21e2","Australia/Sydney|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|40e5","Australia/Adelaide|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 WM0 1qM0 Rc0 1zc0 U00 1tA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|11e5","Australia/Brisbane|AEST AEDT|-a0 -b0|01010101010101010|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5","Australia/Broken_Hill|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|18e3","Australia/Currie|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|746","Australia/Darwin|ACST ACDT|-9u -au|010101010|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0|12e4","Australia/Eucla|+0845 +0945|-8J -9J|0101010101010101010|-293kI xcX 10jd0 yL0 1cN0 1cL0 1gSp0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368","Australia/Hobart|AEST AEDT|-a0 -b0|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 VfB0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|21e4","Australia/Lord_Howe|AEST +1030 +1130 +11|-a0 -au -bu -b0|0121212121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313|raC0 1zdu Rb0 1zd0 On0 1zd0 On0 1zd0 On0 1zd0 TXu 1qMu WLu 1tAu WLu 1tAu TXu 1tAu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 11Au 1nXu 1qMu 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu 11zu 1o0u WLu 1qMu 14nu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu|347","Australia/Lindeman|AEST AEDT|-a0 -b0|010101010101010101010|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10","Australia/Melbourne|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1qM0 11A0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|39e5","Australia/Perth|AWST AWDT|-80 -90|0101010101010101010|-293jX xcX 10jd0 yL0 1cN0 1cL0 1gSp0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|18e5","CET|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Pacific/Easter|EMT -07 -06 -05|7h.s 70 60 50|012121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1uSgG.w 1s4IG.w WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 2pA0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|30e2","CST6CDT|CST CDT CWT CPT|60 50 50 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","EET|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Europe/Dublin|DMT IST GMT BST IST|p.l -y.D 0 -10 -10|01232323232324242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242|-2ax9y.D Rc0 1fzy.D 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 g600 14o0 1wo0 17c0 1io0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","EST|EST|50|0||","EST5EDT|EST EDT EWT EPT|50 40 40 40|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 SgN0 8x40 iv0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","Etc/GMT-0|GMT|0|0||","Etc/GMT-1|+01|-10|0||","Pacific/Port_Moresby|+10|-a0|0||25e4","Etc/GMT-11|+11|-b0|0||","Pacific/Tarawa|+12|-c0|0||29e3","Etc/GMT-13|+13|-d0|0||","Etc/GMT-14|+14|-e0|0||","Etc/GMT-2|+02|-20|0||","Etc/GMT-3|+03|-30|0||","Etc/GMT-4|+04|-40|0||","Etc/GMT-5|+05|-50|0||","Etc/GMT-6|+06|-60|0||","Indian/Christmas|+07|-70|0||21e2","Etc/GMT-8|+08|-80|0||","Pacific/Palau|+09|-90|0||21e3","Etc/GMT+1|-01|10|0||","Etc/GMT+10|-10|a0|0||","Etc/GMT+11|-11|b0|0||","Etc/GMT+12|-12|c0|0||","Etc/GMT+3|-03|30|0||","Etc/GMT+4|-04|40|0||","Etc/GMT+5|-05|50|0||","Etc/GMT+6|-06|60|0||","Etc/GMT+7|-07|70|0||","Etc/GMT+8|-08|80|0||","Etc/GMT+9|-09|90|0||","Etc/UTC|UTC|0|0||","Europe/Amsterdam|AMT NST +0120 +0020 CEST CET|-j.w -1j.w -1k -k -20 -10|010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-2aFcj.w 11b0 1iP0 11A0 1io0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1co0 1io0 1yo0 Pc0 1a00 1fA0 1Bc0 Mo0 1tc0 Uo0 1tA0 U00 1uo0 W00 1s00 VA0 1so0 Vc0 1sM0 UM0 1wo0 Rc0 1u00 Wo0 1rA0 W00 1s00 VA0 1sM0 UM0 1w00 fV0 BCX.w 1tA0 U00 1u00 Wo0 1sm0 601k WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|16e5","Europe/Andorra|WET CET CEST|0 -10 -20|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-UBA0 1xIN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|79e3","Europe/Astrakhan|LMT +03 +04 +05|-3c.c -30 -40 -50|012323232323232323212121212121212121212121212121212121212121212|-1Pcrc.c eUMc.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|10e5","Europe/Athens|AMT EET EEST CEST CET|-1y.Q -20 -30 -20 -10|012123434121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a61x.Q CNbx.Q mn0 kU10 9b0 3Es0 Xa0 1fb0 1dd0 k3X0 Nz0 SCp0 1vc0 SO0 1cM0 1a00 1ao0 1fc0 1a10 1fG0 1cg0 1dX0 1bX0 1cQ0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|35e5","Europe/London|GMT BST BDST|0 -10 -20|0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|10e6","Europe/Belgrade|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19RC0 3IP0 WM0 1fA0 1cM0 1cM0 1rc0 Qo0 1vmo0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Berlin|CET CEST CEMT|-10 -20 -30|01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 kL0 Nc0 m10 WM0 1ao0 1cp0 dX0 jz0 Dd0 1io0 17c0 1fA0 1a00 1ehA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e5","Europe/Prague|CET CEST GMT|-10 -20 0|01010101010101010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 1qM0 11c0 mp0 xA0 mn0 17c0 1io0 17c0 1fc0 1ao0 1bNc0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|13e5","Europe/Brussels|WET CET CEST WEST|0 -10 -20 -10|0121212103030303030303030303030303030303030303030303212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ehc0 3zX0 11c0 1iO0 11A0 1o00 11A0 my0 Ic0 1qM0 Rc0 1EM0 UM0 1u00 10o0 1io0 1io0 17c0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a30 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 y00 5Wn0 WM0 1fA0 1cM0 16M0 1iM0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|21e5","Europe/Bucharest|BMT EET EEST|-1I.o -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1xApI.o 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Axc0 On0 1fA0 1a10 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|19e5","Europe/Budapest|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1ip0 17b0 1op0 1tb0 Q2m0 3Ne0 WM0 1fA0 1cM0 1cM0 1oJ0 1dc0 1030 1fA0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1iM0 1fA0 8Ha0 Rb0 1wN0 Rb0 1BB0 Lz0 1C20 LB0 SNX0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zurich|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19Lc0 11A0 1o00 11A0 1xG10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e4","Europe/Chisinau|CMT BMT EET EEST CEST CET MSK MSD|-1T -1I.o -20 -30 -20 -10 -30 -40|012323232323232323234545467676767676767676767323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-26jdT wGMa.A 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 27A0 2en0 39g0 WM0 1fA0 1cM0 V90 1t7z0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 gL0 WO0 1cM0 1cM0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11D0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|67e4","Europe/Copenhagen|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 Tz0 VuO0 60q0 WM0 1fA0 1cM0 1cM0 1cM0 S00 1HA0 Nc0 1C00 Dc0 1Nc0 Ao0 1h5A0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Gibraltar|GMT BST BDST CET CEST|0 -10 -20 -10 -20|010101010101010101010101010101010101010101010101012121212121010121010101010101010101034343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 10Jz0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|30e3","Europe/Helsinki|HMT EET EEST|-1D.N -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1WuND.N OULD.N 1dA0 1xGq0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Kaliningrad|CET CEST EET EEST MSK MSD +03|-10 -20 -20 -30 -30 -40 -30|01010101010101232454545454545454543232323232323232323232323232323232323232323262|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 390 7A0 1en0 12N0 1pbb0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|44e4","Europe/Kiev|KMT EET MSK CEST CET MSD EEST|-22.4 -20 -30 -20 -10 -40 -30|0123434252525252525252525256161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc22.4 eUo2.4 rnz0 2Hg0 WM0 1fA0 da0 1v4m0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 Db0 3220 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|34e5","Europe/Kirov|LMT +03 +04 +05|-3i.M -30 -40 -50|01232323232323232321212121212121212121212121212121212121212121|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|48e4","Europe/Lisbon|LMT WET WEST WEMT CET CEST|A.J 0 -10 -20 -10 -20|012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2le00 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 3Co0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 pvy0 1cM0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e5","Europe/Luxembourg|LMT CET CEST WET WEST WEST WET|-o.A -10 -20 0 -10 -20 -10|0121212134343434343434343434343434343434343434343434565651212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2DG0o.A t6mo.A TB0 1nX0 Up0 1o20 11A0 rW0 CM0 1qP0 R90 1EO0 UK0 1u20 10m0 1ip0 1in0 17e0 19W0 1fB0 1db0 1cp0 1in0 17d0 1fz0 1a10 1in0 1a10 1in0 17f0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 vA0 60L0 WM0 1fA0 1cM0 17c0 1io0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Madrid|WET WEST WEMT CET CEST|0 -10 -20 -10 -20|010101010101010101210343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-25Td0 19B0 1cL0 1dd0 b1z0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1in0 17d0 iIn0 Hd0 1cL0 bb0 1200 2s20 14n0 5aL0 Mp0 1vz0 17d0 1in0 17d0 1in0 17d0 1in0 17d0 6hX0 11B0 XHX0 1a10 1fz0 1a10 19X0 1cN0 1fz0 1a10 1fC0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e5","Europe/Malta|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1co0 17c0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1co0 1cM0 1lA0 Xc0 1qq0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1iN0 19z0 1fB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Minsk|MMT EET MSK CEST CET MSD EEST +03|-1O -20 -30 -20 -10 -40 -30 -30|01234343252525252525252525261616161616161616161616161616161616161617|-1Pc1O eUnO qNX0 3gQ0 WM0 1fA0 1cM0 Al0 1tsn0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 3Fc0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0|19e5","Europe/Monaco|PMT WET WEST WEMT CET CEST|-9.l 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121212121232323232345454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 2RV0 11z0 11B0 1ze0 WM0 1fA0 1cM0 1fa0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e3","Europe/Moscow|MMT MMT MST MDST MSD MSK +05 EET EEST MSK|-2u.h -2v.j -3v.j -4v.j -40 -30 -50 -20 -30 -40|012132345464575454545454545454545458754545454545454545454545454545454545454595|-2ag2u.h 2pyW.W 1bA0 11X0 GN0 1Hb0 c4v.j ik0 3DA0 dz0 15A0 c10 2q10 iM10 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|16e6","Europe/Paris|PMT WET WEST CEST CET WEMT|-9.l 0 -10 -20 -10 -20|0121212121212121212121212121212121212121212121212123434352543434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-2nco8.l cNb8.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 Ik0 5M30 WM0 1fA0 1cM0 Vx0 hB0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e6","Europe/Riga|RMT LST EET MSK CEST CET MSD EEST|-1A.y -2A.y -20 -30 -20 -10 -40 -30|010102345454536363636363636363727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272|-25TzA.y 11A0 1iM0 ko0 gWm0 yDXA.y 2bX0 3fE0 WM0 1fA0 1cM0 1cM0 4m0 1sLy0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 1o00 11A0 1o00 11A0 1qM0 3oo0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|64e4","Europe/Rome|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1cM0 16M0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1C00 LA0 1zc0 Oo0 1C00 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1zc0 Oo0 1fC0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|39e5","Europe/Samara|LMT +03 +04 +05|-3k.k -30 -40 -50|0123232323232323232121232323232323232323232323232323232323212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2y10 14m0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|12e5","Europe/Saratov|LMT +03 +04 +05|-34.i -30 -40 -50|012323232323232321212121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 5810|","Europe/Simferopol|SMT EET MSK CEST CET MSD EEST MSK|-2g -20 -30 -20 -10 -40 -30 -40|012343432525252525252525252161616525252616161616161616161616161616161616172|-1Pc2g eUog rEn0 2qs0 WM0 1fA0 1cM0 3V0 1u0L0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 4eL0 1cL0 1cN0 1cL0 1cN0 dX0 WL0 1cN0 1cL0 1fB0 1o30 11B0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11z0 1nW0|33e4","Europe/Sofia|EET CET CEST EEST|-20 -10 -20 -30|01212103030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030|-168L0 WM0 1fA0 1cM0 1cM0 1cN0 1mKH0 1dd0 1fb0 1ap0 1fb0 1a20 1fy0 1a30 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Stockholm|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 TB0 2yDe0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|15e5","Europe/Tallinn|TMT CET CEST EET MSK MSD EEST|-1D -10 -20 -20 -30 -40 -30|012103421212454545454545454546363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363|-26oND teD 11A0 1Ta0 4rXl KSLD 2FX0 2Jg0 WM0 1fA0 1cM0 18J0 1sTX0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o10 11A0 1qM0 5QM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e4","Europe/Tirane|LMT CET CEST|-1j.k -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glBj.k 14pcj.k 5LC0 WM0 4M0 1fCK0 10n0 1op0 11z0 1pd0 11z0 1qN0 WL0 1qp0 Xb0 1qp0 Xb0 1qp0 11z0 1lB0 11z0 1qN0 11z0 1iN0 16n0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Ulyanovsk|LMT +03 +04 +05 +02|-3d.A -30 -40 -50 -20|01232323232323232321214121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|13e5","Europe/Uzhgorod|CET CEST MSK MSD EET EEST|-10 -20 -30 -40 -20 -30|010101023232323232323232320454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-1cqL0 6i00 WM0 1fA0 1cM0 1ml0 1Cp0 1r3W0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 1Nf0 2pw0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e4","Europe/Vienna|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 3KM0 14o0 LA00 6i00 WM0 1fA0 1cM0 1cM0 1cM0 400 2qM0 1ao0 1co0 1cM0 1io0 17c0 1gHa0 19X0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|18e5","Europe/Vilnius|WMT KMT CET EET MSK CEST MSD EEST|-1o -1z.A -10 -20 -30 -20 -40 -30|012324525254646464646464646473737373737373737352537373737373737373737373737373737373737373737373737373737373737373737373|-293do 6ILM.o 1Ooz.A zz0 Mfd0 29W0 3is0 WM0 1fA0 1cM0 LV0 1tgL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11B0 1o00 11A0 1qM0 8io0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Volgograd|LMT +03 +04 +05|-2V.E -30 -40 -50|012323232323232321212121212121212121212121212121212121212121212|-21IqV.E psLV.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 9Jd0|10e5","Europe/Warsaw|WMT CET CEST EET EEST|-1o -10 -20 -20 -30|012121234312121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ctdo 1LXo 11d0 1iO0 11A0 1o00 11A0 1on0 11A0 6zy0 HWP0 5IM0 WM0 1fA0 1cM0 1dz0 1mL0 1en0 15B0 1aq0 1nA0 11A0 1io0 17c0 1fA0 1a00 iDX0 LA0 1cM0 1cM0 1C00 Oo0 1cM0 1cM0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1C00 LA0 uso0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zaporozhye|+0220 EET MSK CEST CET MSD EEST|-2k -20 -30 -20 -10 -40 -30|01234342525252525252525252526161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc2k eUok rdb0 2RE0 WM0 1fA0 8m0 1v9a0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cK0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|77e4","HST|HST|a0|0||","Indian/Chagos|LMT +05 +06|-4N.E -50 -60|012|-2xosN.E 3AGLN.E|30e2","Indian/Cocos|+0630|-6u|0||596","Indian/Kerguelen|-00 +05|0 -50|01|-MG00|130","Indian/Mahe|LMT +04|-3F.M -40|01|-2yO3F.M|79e3","Indian/Maldives|MMT +05|-4S -50|01|-olgS|35e4","Indian/Mauritius|LMT +04 +05|-3O -40 -50|012121|-2xorO 34unO 14L0 12kr0 11z0|15e4","Indian/Reunion|LMT +04|-3F.Q -40|01|-2mDDF.Q|84e4","Pacific/Kwajalein|+11 +10 +09 -12 +12|-b0 -a0 -90 c0 -c0|012034|-1kln0 akp0 6Up0 12ry0 Wan0|14e3","MET|MET MEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","MST|MST|70|0||","MST7MDT|MST MDT MWT MPT|70 60 60 60|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","Pacific/Chatham|+1215 +1245 +1345|-cf -cJ -dJ|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-WqAf 1adef IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|600","Pacific/Apia|LMT -1130 -11 -10 +14 +13|bq.U bu b0 a0 -e0 -d0|01232345454545454545454545454545454545454545454545454545454|-2nDMx.4 1yW03.4 2rRbu 1ff0 1a00 CI0 AQ0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|37e3","Pacific/Bougainville|+10 +09 +11|-a0 -90 -b0|0102|-16Wy0 7CN0 2MQp0|18e4","Pacific/Chuuk|+10 +09|-a0 -90|01010|-2ewy0 axB0 RVX0 axd0|49e3","Pacific/Efate|LMT +11 +12|-bd.g -b0 -c0|0121212121212121212121|-2l9nd.g 2Szcd.g 1cL0 1oN0 10L0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3","Pacific/Enderbury|-12 -11 +13|c0 b0 -d0|012|nIc0 B7X0|1","Pacific/Fakaofo|-11 +13|b0 -d0|01|1Gfn0|483","Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|0121212121212121212121212121212121212121212121212121212121212121|-2bUzT.I 3m8NT.I LA0 1EM0 IM0 nJc0 LA0 1o00 Rc0 1wo0 Ao0 1Nc0 Ao0 1Q00 xz0 1SN0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 20o0 pc0 20o0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00|88e4","Pacific/Galapagos|LMT -05 -06|5W.o 50 60|01212|-1yVS1.A 2dTz1.A gNd0 rz0|25e3","Pacific/Gambier|LMT -09|8X.M 90|01|-2jof0.c|125","Pacific/Guadalcanal|LMT +11|-aD.M -b0|01|-2joyD.M|11e4","Pacific/Guam|GST +09 GDT ChST|-a0 -90 -b0 -a0|01020202020202020203|-18jK0 6pB0 AhB0 3QL0 g2p0 3p91 WOX rX0 1zd0 Rb0 1wp0 Rb0 5xd0 rX0 5sN0 zb1 1C0X On0 ULb0|17e4","Pacific/Honolulu|HST HDT HWT HPT HST|au 9u 9u 9u a0|0102304|-1thLu 8x0 lef0 8wWu iAu 46p0|37e4","Pacific/Kiritimati|-1040 -10 +14|aE a0 -e0|012|nIaE B7Xk|51e2","Pacific/Kosrae|+11 +09 +10 +12|-b0 -90 -a0 -c0|01021030|-2ewz0 axC0 HBy0 akp0 axd0 WOK0 1bdz0|66e2","Pacific/Majuro|+11 +09 +10 +12|-b0 -90 -a0 -c0|0102103|-2ewz0 axC0 HBy0 akp0 6RB0 12um0|28e3","Pacific/Marquesas|LMT -0930|9i 9u|01|-2joeG|86e2","Pacific/Pago_Pago|LMT SST|bm.M b0|01|-2nDMB.c|37e2","Pacific/Nauru|LMT +1130 +09 +12|-b7.E -bu -90 -c0|01213|-1Xdn7.E QCnB.E 7mqu 1lnbu|10e3","Pacific/Niue|-1120 -1130 -11|bk bu b0|012|-KfME 17y0a|12e2","Pacific/Norfolk|+1112 +1130 +1230 +11 +12|-bc -bu -cu -b0 -c0|012134343434343434343434343434343434343434|-Kgbc W01G Oo0 1COo0 9Jcu 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|25e4","Pacific/Noumea|LMT +11 +12|-b5.M -b0 -c0|01212121|-2l9n5.M 2EqM5.M xX0 1PB0 yn0 HeP0 Ao0|98e3","Pacific/Pitcairn|-0830 -08|8u 80|01|18Vku|56","Pacific/Pohnpei|+11 +09 +10|-b0 -90 -a0|010210|-2ewz0 axC0 HBy0 akp0 axd0|34e3","Pacific/Rarotonga|-1030 -0930 -10|au 9u a0|012121212121212121212121212|lyWu IL0 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu|13e3","Pacific/Tahiti|LMT -10|9W.g a0|01|-2joe1.I|18e4","Pacific/Tongatapu|+1220 +13 +14|-ck -d0 -e0|0121212121|-1aB0k 2n5dk 15A0 1wo0 xz0 1Q10 xz0 zWN0 s00|75e3","PST8PDT|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","WET|WET WEST|0 -10|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|"],"links":["Africa/Abidjan|Africa/Bamako","Africa/Abidjan|Africa/Banjul","Africa/Abidjan|Africa/Conakry","Africa/Abidjan|Africa/Dakar","Africa/Abidjan|Africa/Freetown","Africa/Abidjan|Africa/Lome","Africa/Abidjan|Africa/Nouakchott","Africa/Abidjan|Africa/Ouagadougou","Africa/Abidjan|Africa/Timbuktu","Africa/Abidjan|Atlantic/St_Helena","Africa/Cairo|Egypt","Africa/Johannesburg|Africa/Maseru","Africa/Johannesburg|Africa/Mbabane","Africa/Lagos|Africa/Bangui","Africa/Lagos|Africa/Brazzaville","Africa/Lagos|Africa/Douala","Africa/Lagos|Africa/Kinshasa","Africa/Lagos|Africa/Libreville","Africa/Lagos|Africa/Luanda","Africa/Lagos|Africa/Malabo","Africa/Lagos|Africa/Niamey","Africa/Lagos|Africa/Porto-Novo","Africa/Maputo|Africa/Blantyre","Africa/Maputo|Africa/Bujumbura","Africa/Maputo|Africa/Gaborone","Africa/Maputo|Africa/Harare","Africa/Maputo|Africa/Kigali","Africa/Maputo|Africa/Lubumbashi","Africa/Maputo|Africa/Lusaka","Africa/Nairobi|Africa/Addis_Ababa","Africa/Nairobi|Africa/Asmara","Africa/Nairobi|Africa/Asmera","Africa/Nairobi|Africa/Dar_es_Salaam","Africa/Nairobi|Africa/Djibouti","Africa/Nairobi|Africa/Kampala","Africa/Nairobi|Africa/Mogadishu","Africa/Nairobi|Indian/Antananarivo","Africa/Nairobi|Indian/Comoro","Africa/Nairobi|Indian/Mayotte","Africa/Tripoli|Libya","America/Adak|America/Atka","America/Adak|US/Aleutian","America/Anchorage|US/Alaska","America/Argentina/Buenos_Aires|America/Buenos_Aires","America/Argentina/Catamarca|America/Argentina/ComodRivadavia","America/Argentina/Catamarca|America/Catamarca","America/Argentina/Cordoba|America/Cordoba","America/Argentina/Cordoba|America/Rosario","America/Argentina/Jujuy|America/Jujuy","America/Argentina/Mendoza|America/Mendoza","America/Atikokan|America/Coral_Harbour","America/Chicago|US/Central","America/Curacao|America/Aruba","America/Curacao|America/Kralendijk","America/Curacao|America/Lower_Princes","America/Denver|America/Shiprock","America/Denver|Navajo","America/Denver|US/Mountain","America/Detroit|US/Michigan","America/Edmonton|Canada/Mountain","America/Fort_Wayne|America/Indiana/Indianapolis","America/Fort_Wayne|America/Indianapolis","America/Fort_Wayne|US/East-Indiana","America/Halifax|Canada/Atlantic","America/Havana|Cuba","America/Indiana/Knox|America/Knox_IN","America/Indiana/Knox|US/Indiana-Starke","America/Jamaica|Jamaica","America/Kentucky/Louisville|America/Louisville","America/Los_Angeles|US/Pacific","America/Los_Angeles|US/Pacific-New","America/Manaus|Brazil/West","America/Mazatlan|Mexico/BajaSur","America/Mexico_City|Mexico/General","America/New_York|US/Eastern","America/Noronha|Brazil/DeNoronha","America/Panama|America/Cayman","America/Phoenix|US/Arizona","America/Port_of_Spain|America/Anguilla","America/Port_of_Spain|America/Antigua","America/Port_of_Spain|America/Dominica","America/Port_of_Spain|America/Grenada","America/Port_of_Spain|America/Guadeloupe","America/Port_of_Spain|America/Marigot","America/Port_of_Spain|America/Montserrat","America/Port_of_Spain|America/St_Barthelemy","America/Port_of_Spain|America/St_Kitts","America/Port_of_Spain|America/St_Lucia","America/Port_of_Spain|America/St_Thomas","America/Port_of_Spain|America/St_Vincent","America/Port_of_Spain|America/Tortola","America/Port_of_Spain|America/Virgin","America/Regina|Canada/Saskatchewan","America/Rio_Branco|America/Porto_Acre","America/Rio_Branco|Brazil/Acre","America/Santiago|Chile/Continental","America/Sao_Paulo|Brazil/East","America/St_Johns|Canada/Newfoundland","America/Tijuana|America/Ensenada","America/Tijuana|America/Santa_Isabel","America/Tijuana|Mexico/BajaNorte","America/Toronto|America/Montreal","America/Toronto|Canada/Eastern","America/Vancouver|Canada/Pacific","America/Whitehorse|Canada/Yukon","America/Winnipeg|Canada/Central","Asia/Ashgabat|Asia/Ashkhabad","Asia/Bangkok|Asia/Phnom_Penh","Asia/Bangkok|Asia/Vientiane","Asia/Dhaka|Asia/Dacca","Asia/Dubai|Asia/Muscat","Asia/Ho_Chi_Minh|Asia/Saigon","Asia/Hong_Kong|Hongkong","Asia/Jerusalem|Asia/Tel_Aviv","Asia/Jerusalem|Israel","Asia/Kathmandu|Asia/Katmandu","Asia/Kolkata|Asia/Calcutta","Asia/Kuala_Lumpur|Asia/Singapore","Asia/Kuala_Lumpur|Singapore","Asia/Macau|Asia/Macao","Asia/Makassar|Asia/Ujung_Pandang","Asia/Nicosia|Europe/Nicosia","Asia/Qatar|Asia/Bahrain","Asia/Rangoon|Asia/Yangon","Asia/Riyadh|Asia/Aden","Asia/Riyadh|Asia/Kuwait","Asia/Seoul|ROK","Asia/Shanghai|Asia/Chongqing","Asia/Shanghai|Asia/Chungking","Asia/Shanghai|Asia/Harbin","Asia/Shanghai|PRC","Asia/Taipei|ROC","Asia/Tehran|Iran","Asia/Thimphu|Asia/Thimbu","Asia/Tokyo|Japan","Asia/Ulaanbaatar|Asia/Ulan_Bator","Asia/Urumqi|Asia/Kashgar","Atlantic/Faroe|Atlantic/Faeroe","Atlantic/Reykjavik|Iceland","Atlantic/South_Georgia|Etc/GMT+2","Australia/Adelaide|Australia/South","Australia/Brisbane|Australia/Queensland","Australia/Broken_Hill|Australia/Yancowinna","Australia/Darwin|Australia/North","Australia/Hobart|Australia/Tasmania","Australia/Lord_Howe|Australia/LHI","Australia/Melbourne|Australia/Victoria","Australia/Perth|Australia/West","Australia/Sydney|Australia/ACT","Australia/Sydney|Australia/Canberra","Australia/Sydney|Australia/NSW","Etc/GMT-0|Etc/GMT","Etc/GMT-0|Etc/GMT+0","Etc/GMT-0|Etc/GMT0","Etc/GMT-0|Etc/Greenwich","Etc/GMT-0|GMT","Etc/GMT-0|GMT+0","Etc/GMT-0|GMT-0","Etc/GMT-0|GMT0","Etc/GMT-0|Greenwich","Etc/UTC|Etc/UCT","Etc/UTC|Etc/Universal","Etc/UTC|Etc/Zulu","Etc/UTC|UCT","Etc/UTC|UTC","Etc/UTC|Universal","Etc/UTC|Zulu","Europe/Belgrade|Europe/Ljubljana","Europe/Belgrade|Europe/Podgorica","Europe/Belgrade|Europe/Sarajevo","Europe/Belgrade|Europe/Skopje","Europe/Belgrade|Europe/Zagreb","Europe/Chisinau|Europe/Tiraspol","Europe/Dublin|Eire","Europe/Helsinki|Europe/Mariehamn","Europe/Istanbul|Asia/Istanbul","Europe/Istanbul|Turkey","Europe/Lisbon|Portugal","Europe/London|Europe/Belfast","Europe/London|Europe/Guernsey","Europe/London|Europe/Isle_of_Man","Europe/London|Europe/Jersey","Europe/London|GB","Europe/London|GB-Eire","Europe/Moscow|W-SU","Europe/Oslo|Arctic/Longyearbyen","Europe/Oslo|Atlantic/Jan_Mayen","Europe/Prague|Europe/Bratislava","Europe/Rome|Europe/San_Marino","Europe/Rome|Europe/Vatican","Europe/Warsaw|Poland","Europe/Zurich|Europe/Busingen","Europe/Zurich|Europe/Vaduz","Indian/Christmas|Etc/GMT-7","Pacific/Auckland|Antarctica/McMurdo","Pacific/Auckland|Antarctica/South_Pole","Pacific/Auckland|NZ","Pacific/Chatham|NZ-CHAT","Pacific/Chuuk|Pacific/Truk","Pacific/Chuuk|Pacific/Yap","Pacific/Easter|Chile/EasterIsland","Pacific/Guam|Pacific/Saipan","Pacific/Honolulu|Pacific/Johnston","Pacific/Honolulu|US/Hawaii","Pacific/Kwajalein|Kwajalein","Pacific/Pago_Pago|Pacific/Midway","Pacific/Pago_Pago|Pacific/Samoa","Pacific/Pago_Pago|US/Samoa","Pacific/Palau|Etc/GMT-9","Pacific/Pohnpei|Pacific/Ponape","Pacific/Port_Moresby|Etc/GMT-10","Pacific/Tarawa|Etc/GMT-12","Pacific/Tarawa|Pacific/Funafuti","Pacific/Tarawa|Pacific/Wake","Pacific/Tarawa|Pacific/Wallis"],"countries":["AD|Europe/Andorra","AE|Asia/Dubai","AF|Asia/Kabul","AG|America/Port_of_Spain America/Antigua","AI|America/Port_of_Spain America/Anguilla","AL|Europe/Tirane","AM|Asia/Yerevan","AO|Africa/Lagos Africa/Luanda","AQ|Antarctica/Casey Antarctica/Davis Antarctica/DumontDUrville Antarctica/Mawson Antarctica/Palmer Antarctica/Rothera Antarctica/Syowa Antarctica/Troll Antarctica/Vostok Pacific/Auckland Antarctica/McMurdo","AR|America/Argentina/Buenos_Aires America/Argentina/Cordoba America/Argentina/Salta America/Argentina/Jujuy America/Argentina/Tucuman America/Argentina/Catamarca America/Argentina/La_Rioja America/Argentina/San_Juan America/Argentina/Mendoza America/Argentina/San_Luis America/Argentina/Rio_Gallegos America/Argentina/Ushuaia","AS|Pacific/Pago_Pago","AT|Europe/Vienna","AU|Australia/Lord_Howe Antarctica/Macquarie Australia/Hobart Australia/Currie Australia/Melbourne Australia/Sydney Australia/Broken_Hill Australia/Brisbane Australia/Lindeman Australia/Adelaide Australia/Darwin Australia/Perth Australia/Eucla","AW|America/Curacao America/Aruba","AX|Europe/Helsinki Europe/Mariehamn","AZ|Asia/Baku","BA|Europe/Belgrade Europe/Sarajevo","BB|America/Barbados","BD|Asia/Dhaka","BE|Europe/Brussels","BF|Africa/Abidjan Africa/Ouagadougou","BG|Europe/Sofia","BH|Asia/Qatar Asia/Bahrain","BI|Africa/Maputo Africa/Bujumbura","BJ|Africa/Lagos Africa/Porto-Novo","BL|America/Port_of_Spain America/St_Barthelemy","BM|Atlantic/Bermuda","BN|Asia/Brunei","BO|America/La_Paz","BQ|America/Curacao America/Kralendijk","BR|America/Noronha America/Belem America/Fortaleza America/Recife America/Araguaina America/Maceio America/Bahia America/Sao_Paulo America/Campo_Grande America/Cuiaba America/Santarem America/Porto_Velho America/Boa_Vista America/Manaus America/Eirunepe America/Rio_Branco","BS|America/Nassau","BT|Asia/Thimphu","BW|Africa/Maputo Africa/Gaborone","BY|Europe/Minsk","BZ|America/Belize","CA|America/St_Johns America/Halifax America/Glace_Bay America/Moncton America/Goose_Bay America/Blanc-Sablon America/Toronto America/Nipigon America/Thunder_Bay America/Iqaluit America/Pangnirtung America/Atikokan America/Winnipeg America/Rainy_River America/Resolute America/Rankin_Inlet America/Regina America/Swift_Current America/Edmonton America/Cambridge_Bay America/Yellowknife America/Inuvik America/Creston America/Dawson_Creek America/Fort_Nelson America/Vancouver America/Whitehorse America/Dawson","CC|Indian/Cocos","CD|Africa/Maputo Africa/Lagos Africa/Kinshasa Africa/Lubumbashi","CF|Africa/Lagos Africa/Bangui","CG|Africa/Lagos Africa/Brazzaville","CH|Europe/Zurich","CI|Africa/Abidjan","CK|Pacific/Rarotonga","CL|America/Santiago America/Punta_Arenas Pacific/Easter","CM|Africa/Lagos Africa/Douala","CN|Asia/Shanghai Asia/Urumqi","CO|America/Bogota","CR|America/Costa_Rica","CU|America/Havana","CV|Atlantic/Cape_Verde","CW|America/Curacao","CX|Indian/Christmas","CY|Asia/Nicosia Asia/Famagusta","CZ|Europe/Prague","DE|Europe/Zurich Europe/Berlin Europe/Busingen","DJ|Africa/Nairobi Africa/Djibouti","DK|Europe/Copenhagen","DM|America/Port_of_Spain America/Dominica","DO|America/Santo_Domingo","DZ|Africa/Algiers","EC|America/Guayaquil Pacific/Galapagos","EE|Europe/Tallinn","EG|Africa/Cairo","EH|Africa/El_Aaiun","ER|Africa/Nairobi Africa/Asmara","ES|Europe/Madrid Africa/Ceuta Atlantic/Canary","ET|Africa/Nairobi Africa/Addis_Ababa","FI|Europe/Helsinki","FJ|Pacific/Fiji","FK|Atlantic/Stanley","FM|Pacific/Chuuk Pacific/Pohnpei Pacific/Kosrae","FO|Atlantic/Faroe","FR|Europe/Paris","GA|Africa/Lagos Africa/Libreville","GB|Europe/London","GD|America/Port_of_Spain America/Grenada","GE|Asia/Tbilisi","GF|America/Cayenne","GG|Europe/London Europe/Guernsey","GH|Africa/Accra","GI|Europe/Gibraltar","GL|America/Godthab America/Danmarkshavn America/Scoresbysund America/Thule","GM|Africa/Abidjan Africa/Banjul","GN|Africa/Abidjan Africa/Conakry","GP|America/Port_of_Spain America/Guadeloupe","GQ|Africa/Lagos Africa/Malabo","GR|Europe/Athens","GS|Atlantic/South_Georgia","GT|America/Guatemala","GU|Pacific/Guam","GW|Africa/Bissau","GY|America/Guyana","HK|Asia/Hong_Kong","HN|America/Tegucigalpa","HR|Europe/Belgrade Europe/Zagreb","HT|America/Port-au-Prince","HU|Europe/Budapest","ID|Asia/Jakarta Asia/Pontianak Asia/Makassar Asia/Jayapura","IE|Europe/Dublin","IL|Asia/Jerusalem","IM|Europe/London Europe/Isle_of_Man","IN|Asia/Kolkata","IO|Indian/Chagos","IQ|Asia/Baghdad","IR|Asia/Tehran","IS|Atlantic/Reykjavik","IT|Europe/Rome","JE|Europe/London Europe/Jersey","JM|America/Jamaica","JO|Asia/Amman","JP|Asia/Tokyo","KE|Africa/Nairobi","KG|Asia/Bishkek","KH|Asia/Bangkok Asia/Phnom_Penh","KI|Pacific/Tarawa Pacific/Enderbury Pacific/Kiritimati","KM|Africa/Nairobi Indian/Comoro","KN|America/Port_of_Spain America/St_Kitts","KP|Asia/Pyongyang","KR|Asia/Seoul","KW|Asia/Riyadh Asia/Kuwait","KY|America/Panama America/Cayman","KZ|Asia/Almaty Asia/Qyzylorda Asia/Qostanay Asia/Aqtobe Asia/Aqtau Asia/Atyrau Asia/Oral","LA|Asia/Bangkok Asia/Vientiane","LB|Asia/Beirut","LC|America/Port_of_Spain America/St_Lucia","LI|Europe/Zurich Europe/Vaduz","LK|Asia/Colombo","LR|Africa/Monrovia","LS|Africa/Johannesburg Africa/Maseru","LT|Europe/Vilnius","LU|Europe/Luxembourg","LV|Europe/Riga","LY|Africa/Tripoli","MA|Africa/Casablanca","MC|Europe/Monaco","MD|Europe/Chisinau","ME|Europe/Belgrade Europe/Podgorica","MF|America/Port_of_Spain America/Marigot","MG|Africa/Nairobi Indian/Antananarivo","MH|Pacific/Majuro Pacific/Kwajalein","MK|Europe/Belgrade Europe/Skopje","ML|Africa/Abidjan Africa/Bamako","MM|Asia/Yangon","MN|Asia/Ulaanbaatar Asia/Hovd Asia/Choibalsan","MO|Asia/Macau","MP|Pacific/Guam Pacific/Saipan","MQ|America/Martinique","MR|Africa/Abidjan Africa/Nouakchott","MS|America/Port_of_Spain America/Montserrat","MT|Europe/Malta","MU|Indian/Mauritius","MV|Indian/Maldives","MW|Africa/Maputo Africa/Blantyre","MX|America/Mexico_City America/Cancun America/Merida America/Monterrey America/Matamoros America/Mazatlan America/Chihuahua America/Ojinaga America/Hermosillo America/Tijuana America/Bahia_Banderas","MY|Asia/Kuala_Lumpur Asia/Kuching","MZ|Africa/Maputo","NA|Africa/Windhoek","NC|Pacific/Noumea","NE|Africa/Lagos Africa/Niamey","NF|Pacific/Norfolk","NG|Africa/Lagos","NI|America/Managua","NL|Europe/Amsterdam","NO|Europe/Oslo","NP|Asia/Kathmandu","NR|Pacific/Nauru","NU|Pacific/Niue","NZ|Pacific/Auckland Pacific/Chatham","OM|Asia/Dubai Asia/Muscat","PA|America/Panama","PE|America/Lima","PF|Pacific/Tahiti Pacific/Marquesas Pacific/Gambier","PG|Pacific/Port_Moresby Pacific/Bougainville","PH|Asia/Manila","PK|Asia/Karachi","PL|Europe/Warsaw","PM|America/Miquelon","PN|Pacific/Pitcairn","PR|America/Puerto_Rico","PS|Asia/Gaza Asia/Hebron","PT|Europe/Lisbon Atlantic/Madeira Atlantic/Azores","PW|Pacific/Palau","PY|America/Asuncion","QA|Asia/Qatar","RE|Indian/Reunion","RO|Europe/Bucharest","RS|Europe/Belgrade","RU|Europe/Kaliningrad Europe/Moscow Europe/Simferopol Europe/Kirov Europe/Astrakhan Europe/Volgograd Europe/Saratov Europe/Ulyanovsk Europe/Samara Asia/Yekaterinburg Asia/Omsk Asia/Novosibirsk Asia/Barnaul Asia/Tomsk Asia/Novokuznetsk Asia/Krasnoyarsk Asia/Irkutsk Asia/Chita Asia/Yakutsk Asia/Khandyga Asia/Vladivostok Asia/Ust-Nera Asia/Magadan Asia/Sakhalin Asia/Srednekolymsk Asia/Kamchatka Asia/Anadyr","RW|Africa/Maputo Africa/Kigali","SA|Asia/Riyadh","SB|Pacific/Guadalcanal","SC|Indian/Mahe","SD|Africa/Khartoum","SE|Europe/Stockholm","SG|Asia/Singapore","SH|Africa/Abidjan Atlantic/St_Helena","SI|Europe/Belgrade Europe/Ljubljana","SJ|Europe/Oslo Arctic/Longyearbyen","SK|Europe/Prague Europe/Bratislava","SL|Africa/Abidjan Africa/Freetown","SM|Europe/Rome Europe/San_Marino","SN|Africa/Abidjan Africa/Dakar","SO|Africa/Nairobi Africa/Mogadishu","SR|America/Paramaribo","SS|Africa/Juba","ST|Africa/Sao_Tome","SV|America/El_Salvador","SX|America/Curacao America/Lower_Princes","SY|Asia/Damascus","SZ|Africa/Johannesburg Africa/Mbabane","TC|America/Grand_Turk","TD|Africa/Ndjamena","TF|Indian/Reunion Indian/Kerguelen","TG|Africa/Abidjan Africa/Lome","TH|Asia/Bangkok","TJ|Asia/Dushanbe","TK|Pacific/Fakaofo","TL|Asia/Dili","TM|Asia/Ashgabat","TN|Africa/Tunis","TO|Pacific/Tongatapu","TR|Europe/Istanbul","TT|America/Port_of_Spain","TV|Pacific/Funafuti","TW|Asia/Taipei","TZ|Africa/Nairobi Africa/Dar_es_Salaam","UA|Europe/Simferopol Europe/Kiev Europe/Uzhgorod Europe/Zaporozhye","UG|Africa/Nairobi Africa/Kampala","UM|Pacific/Pago_Pago Pacific/Wake Pacific/Honolulu Pacific/Midway","US|America/New_York America/Detroit America/Kentucky/Louisville America/Kentucky/Monticello America/Indiana/Indianapolis America/Indiana/Vincennes America/Indiana/Winamac America/Indiana/Marengo America/Indiana/Petersburg America/Indiana/Vevay America/Chicago America/Indiana/Tell_City America/Indiana/Knox America/Menominee America/North_Dakota/Center America/North_Dakota/New_Salem America/North_Dakota/Beulah America/Denver America/Boise America/Phoenix America/Los_Angeles America/Anchorage America/Juneau America/Sitka America/Metlakatla America/Yakutat America/Nome America/Adak Pacific/Honolulu","UY|America/Montevideo","UZ|Asia/Samarkand Asia/Tashkent","VA|Europe/Rome Europe/Vatican","VC|America/Port_of_Spain America/St_Vincent","VE|America/Caracas","VG|America/Port_of_Spain America/Tortola","VI|America/Port_of_Spain America/St_Thomas","VN|Asia/Bangkok Asia/Ho_Chi_Minh","VU|Pacific/Efate","WF|Pacific/Wallis","WS|Pacific/Apia","YE|Asia/Riyadh Asia/Aden","YT|Africa/Nairobi Indian/Mayotte","ZA|Africa/Johannesburg","ZM|Africa/Maputo Africa/Lusaka","ZW|Africa/Maputo Africa/Harare"]}' + '{"version":"2019c","zones":["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Accra|LMT GMT +0020|.Q 0 -k|012121212121212121212121212121212121212121212121|-26BbX.8 6tzX.8 MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE|41e5","Africa/Nairobi|LMT EAT +0230 +0245|-2r.g -30 -2u -2J|01231|-1F3Cr.g 3Dzr.g okMu MFXJ|47e5","Africa/Algiers|PMT WET WEST CET CEST|-9.l 0 -10 -10 -20|0121212121212121343431312123431213|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 DA0 Imo0 rd0 De0 9Xz0 1fb0 1ap0 16K0 2yo0 mEp0 hwL0 jxA0 11A0 dDd0 17b0 11B0 1cN0 2Dy0 1cN0 1fB0 1cL0|26e5","Africa/Lagos|LMT WAT|-d.A -10|01|-22y0d.A|17e6","Africa/Bissau|LMT -01 GMT|12.k 10 0|012|-2ldX0 2xoo0|39e4","Africa/Maputo|LMT CAT|-2a.k -20|01|-2GJea.k|26e5","Africa/Cairo|EET EEST|-20 -30|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1bIO0 vb0 1ip0 11z0 1iN0 1nz0 12p0 1pz0 10N0 1pz0 16p0 1jz0 s3d0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1WL0 rd0 1Rz0 wp0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1qL0 Xd0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1ny0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 WL0 1qN0 Rb0 1wp0 On0 1zd0 Lz0 1EN0 Fb0 c10 8n0 8Nd0 gL0 e10 mn0|15e6","Africa/Casablanca|LMT +00 +01|u.k 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2gMnt.E 130Lt.E rb0 Dd0 dVb0 b6p0 TX0 EoB0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4mn0 SyN0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0|32e5","Africa/Ceuta|WET WEST CET CEST|0 -10 -10 -20|010101010101010101010232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-25KN0 11z0 drd0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1y7o0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4VB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|85e3","Africa/El_Aaiun|LMT -01 +00 +01|Q.M 10 0 -10|012323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1rDz7.c 1GVA7.c 6L0 AL0 1Nd0 XX0 1Cp0 pz0 1cBB0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0|20e4","Africa/Johannesburg|SAST SAST SAST|-1u -20 -30|012121|-2GJdu 1Ajdu 1cL0 1cN0 1cL0|84e5","Africa/Juba|LMT CAT CAST EAT|-26.s -20 -30 -30|01212121212121212121212121212121213|-1yW26.s 1zK06.s 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0","Africa/Khartoum|LMT CAT CAST EAT|-2a.8 -20 -30 -30|012121212121212121212121212121212131|-1yW2a.8 1zK0a.8 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 HjL0|51e5","Africa/Monrovia|MMT MMT GMT|H.8 I.u 0|012|-23Lzg.Q 28G01.m|11e5","Africa/Ndjamena|LMT WAT WAST|-10.c -10 -20|0121|-2le10.c 2J3c0.c Wn0|13e5","Africa/Sao_Tome|LMT GMT WAT|A.J 0 -10|0121|-2le00 4i6N0 2q00","Africa/Tripoli|LMT CET CEST EET|-Q.I -10 -20 -20|012121213121212121212121213123123|-21JcQ.I 1hnBQ.I vx0 4iP0 xx0 4eN0 Bb0 7ip0 U0n0 A10 1db0 1cN0 1db0 1dd0 1db0 1eN0 1bb0 1e10 1cL0 1c10 1db0 1dd0 1db0 1cN0 1db0 1q10 fAn0 1ep0 1db0 AKq0 TA0 1o00|11e5","Africa/Tunis|PMT CET CEST|-9.l -10 -20|0121212121212121212121212121212121|-2nco9.l 18pa9.l 1qM0 DA0 3Tc0 11B0 1ze0 WM0 7z0 3d0 14L0 1cN0 1f90 1ar0 16J0 1gXB0 WM0 1rA0 11c0 nwo0 Ko0 1cM0 1cM0 1rA0 10M0 zuM0 10N0 1aN0 1qM0 WM0 1qM0 11A0 1o00|20e5","Africa/Windhoek|+0130 SAST SAST CAT WAT|-1u -20 -30 -20 -10|01213434343434343434343434343434343434343434343434343|-2GJdu 1Ajdu 1cL0 1SqL0 9Io0 16P0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0|32e4","America/Adak|NST NWT NPT BST BDT AHST HST HDT|b0 a0 a0 b0 a0 a0 a0 90|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|326","America/Anchorage|AST AWT APT AHST AHDT YST AKST AKDT|a0 90 90 a0 90 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T00 8wX0 iA0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|30e4","America/Port_of_Spain|LMT AST|46.4 40|01|-2kNvR.U|43e3","America/Araguaina|LMT -03 -02|3c.M 30 20|0121212121212121212121212121212121212121212121212121|-2glwL.c HdKL.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 ny10 Lz0|14e4","America/Argentina/Buenos_Aires|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 A4p0 uL0 1qN0 WL0","America/Argentina/Catamarca|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 7B0 8zb0 uL0","America/Argentina/Cordoba|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0 1qN0 WL0","America/Argentina/Jujuy|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1ze0 TX0 1ld0 WK0 1wp0 TX0 A4p0 uL0","America/Argentina/La_Rioja|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0","America/Argentina/Mendoza|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232312121321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1u20 SL0 1vd0 Tb0 1wp0 TW0 ri10 Op0 7TX0 uL0","America/Argentina/Rio_Gallegos|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0","America/Argentina/Salta|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0","America/Argentina/San_Juan|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rld0 m10 8lb0 uL0","America/Argentina/San_Luis|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121212321212|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 XX0 1q20 SL0 AN0 vDb0 m10 8lb0 8L0 jd0 1qN0 WL0 1qN0","America/Argentina/Tucuman|CMT -04 -03 -02|4g.M 40 30 20|0121212121212121212121212121212121212121212323232313232123232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 4N0 8BX0 uL0 1qN0 WL0","America/Argentina/Ushuaia|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rkN0 8p0 8zb0 uL0","America/Curacao|LMT -0430 AST|4z.L 4u 40|012|-2kV7o.d 28KLS.d|15e4","America/Asuncion|AMT -04 -03|3O.E 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-1x589.k 1DKM9.k 3CL0 3Dd0 10L0 1pB0 10n0 1pB0 10n0 1pB0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1lB0 14n0 1dd0 1cL0 1fd0 WL0 1rd0 1aL0 1dB0 Xz0 1qp0 Xb0 1qN0 10L0 1rB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 WN0 1qL0 11B0 1nX0 1ip0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 TX0 1tB0 19X0 1a10 1fz0 1a10 1fz0 1cN0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0|28e5","America/Atikokan|CST CDT CWT CPT EST|60 50 50 50 50|0101234|-25TQ0 1in0 Rnb0 3je0 8x30 iw0|28e2","America/Bahia_Banderas|LMT MST CST PST MDT CDT|71 70 60 80 60 50|0121212131414141414141414141414141414152525252525252525252525252525252525252525252525252525252|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nW0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|84e3","America/Bahia|LMT -03 -02|2y.4 30 20|01212121212121212121212121212121212121212121212121212121212121|-2glxp.U HdLp.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 l5B0 Rb0|27e5","America/Barbados|LMT BMT AST ADT|3W.t 3W.t 40 30|01232323232|-1Q0I1.v jsM0 1ODC1.v IL0 1ip0 17b0 1ip0 17b0 1ld0 13b0|28e4","America/Belem|LMT -03 -02|3d.U 30 20|012121212121212121212121212121|-2glwK.4 HdKK.4 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|20e5","America/Belize|LMT CST -0530 CDT|5Q.M 60 5u 50|01212121212121212121212121212121212121212121212121213131|-2kBu7.c fPA7.c Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1f0Mu qn0 lxB0 mn0|57e3","America/Blanc-Sablon|AST ADT AWT APT|40 30 30 30|010230|-25TS0 1in0 UGp0 8x50 iu0|11e2","America/Boa_Vista|LMT -04 -03|42.E 40 30|0121212121212121212121212121212121|-2glvV.k HdKV.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 smp0 WL0 1tB0 2L0|62e2","America/Bogota|BMT -05 -04|4U.g 50 40|0121|-2eb73.I 38yo3.I 2en0|90e5","America/Boise|PST PDT MST MWT MPT MDT|80 70 70 60 60 60|0101023425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-261q0 1nX0 11B0 1nX0 8C10 JCL0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 Dd0 1Kn0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e4","America/Cambridge_Bay|-00 MST MWT MPT MDDT MDT CST CDT EST|0 70 60 60 50 60 60 50 50|0123141515151515151515151515151515151515151515678651515151515151515151515151515151515151515151515151515151515151515151515151|-21Jc0 RO90 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11A0 1nX0 2K0 WQ0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e2","America/Campo_Grande|LMT -04 -03|3C.s 40 30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwl.w HdLl.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|77e4","America/Cancun|LMT CST EST EDT CDT|5L.4 60 50 40 50|0123232341414141414141414141414141414141412|-1UQG0 2q2o0 yLB0 1lb0 14p0 1lb0 14p0 Lz0 xB0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 Dd0|63e4","America/Caracas|CMT -0430 -04|4r.E 4u 40|01212|-2kV7w.k 28KM2.k 1IwOu kqo0|29e5","America/Cayenne|LMT -04 -03|3t.k 40 30|012|-2mrwu.E 2gWou.E|58e3","America/Panama|CMT EST|5j.A 50|01|-2uduE.o|15e5","America/Chicago|CST CDT EST CWT CPT|60 50 50 50 50|01010101010101010101010101010101010102010101010103401010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 1wp0 TX0 WN0 1qL0 1cN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 11B0 1Hz0 14p0 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|92e5","America/Chihuahua|LMT MST CST CDT MDT|74.k 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|81e4","America/Costa_Rica|SJMT CST CDT|5A.d 60 50|0121212121|-1Xd6n.L 2lu0n.L Db0 1Kp0 Db0 pRB0 15b0 1kp0 mL0|12e5","America/Creston|MST PST|70 80|010|-29DR0 43B0|53e2","America/Cuiaba|LMT -04 -03|3I.k 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwf.E HdLf.E 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 4a10 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|54e4","America/Danmarkshavn|LMT -03 -02 GMT|1e.E 30 20 0|01212121212121212121212121212121213|-2a5WJ.k 2z5fJ.k 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 DC0|8","America/Dawson_Creek|PST PDT PWT PPT MST|80 70 70 70 70|0102301010101010101010101010101010101010101010101010101014|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 ML0|12e3","America/Dawson|YST YDT YWT YPT YDDT PST PDT|90 80 80 80 70 80 70|0101023040565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 jrA0 fNd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|13e2","America/Denver|MST MDT MWT MPT|70 60 60 60|01010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 11B0 1qL0 WN0 mn0 Ord0 8x20 ix0 LCN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e5","America/Detroit|LMT CST EST EWT EPT EDT|5w.b 60 50 40 40 40|0123425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2Cgir.N peqr.N 156L0 8x40 iv0 6fd0 11z0 JxX1 SMX 1cN0 1cL0 aW10 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e5","America/Edmonton|LMT MST MDT MWT MPT|7x.Q 70 60 60 60|0121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2yd4q.8 shdq.8 1in0 17d0 hz0 2dB0 1fz0 1a10 11z0 1qN0 WL0 1qN0 11z0 IGN0 8x20 ix0 3NB0 11z0 XQp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|10e5","America/Eirunepe|LMT -05 -04|4D.s 50 40|0121212121212121212121212121212121|-2glvk.w HdLk.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0 yTd0 d5X0|31e3","America/El_Salvador|LMT CST CDT|5U.M 60 50|012121|-1XiG3.c 2Fvc3.c WL0 1qN0 WL0|11e5","America/Tijuana|LMT MST PST PDT PWT PPT|7M.4 70 80 70 70 70|012123245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQE0 4PX0 8mM0 8lc0 SN0 1cL0 pHB0 83r0 zI0 5O10 1Rz0 cOO0 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 BUp0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|20e5","America/Fort_Nelson|PST PDT PWT PPT MST|80 70 70 70 70|01023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010104|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0|39e2","America/Fort_Wayne|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010101023010101010101010101040454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 QI10 Db0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 5Tz0 1o10 qLb0 1cL0 1cN0 1cL0 1qhd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","America/Fortaleza|LMT -03 -02|2y 30 20|0121212121212121212121212121212121212121|-2glxq HdLq 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 5z0 2mN0 On0|34e5","America/Glace_Bay|LMT AST ADT AWT APT|3X.M 40 30 30 30|012134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsI0.c CwO0.c 1in0 UGp0 8x50 iu0 iq10 11z0 Jg10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","America/Godthab|LMT -03 -02|3q.U 30 20|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5Ux.4 2z5dx.4 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e3","America/Goose_Bay|NST NDT NST NDT NWT NPT AST ADT ADDT|3u.Q 2u.Q 3u 2u 2u 2u 40 30 20|010232323232323245232323232323232323232323232323232323232326767676767676767676767676767676767676767676768676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-25TSt.8 1in0 DXb0 2HbX.8 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 S10 g0u 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|76e2","America/Grand_Turk|KMT EST EDT AST|57.a 50 40 40|01212121212121212121212121212121212121212121212121212121212121212121212121232121212121212121212121212121212121212121|-2l1uQ.O 2HHBQ.O 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 5Ip0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e2","America/Guatemala|LMT CST CDT|62.4 60 50|0121212121|-24KhV.U 2efXV.U An0 mtd0 Nz0 ifB0 17b0 zDB0 11z0|13e5","America/Guayaquil|QMT -05 -04|5e 50 40|0121|-1yVSK 2uILK rz0|27e5","America/Guyana|LMT -0345 -03 -04|3Q.E 3J 30 40|0123|-2dvU7.k 2r6LQ.k Bxbf|80e4","America/Halifax|LMT AST ADT AWT APT|4e.o 40 30 30 30|0121212121212121212121212121212121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsHJ.A xzzJ.A 1db0 3I30 1in0 3HX0 IL0 1E10 ML0 1yN0 Pb0 1Bd0 Mn0 1Bd0 Rz0 1w10 Xb0 1w10 LX0 1w10 Xb0 1w10 Lz0 1C10 Jz0 1E10 OL0 1yN0 Un0 1qp0 Xb0 1qp0 11X0 1w10 Lz0 1HB0 LX0 1C10 FX0 1w10 Xb0 1qp0 Xb0 1BB0 LX0 1td0 Xb0 1qp0 Xb0 Rf0 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 6i10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|39e4","America/Havana|HMT CST CDT|5t.A 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Meuu.o 72zu.o ML0 sld0 An0 1Nd0 Db0 1Nd0 An0 6Ep0 An0 1Nd0 An0 JDd0 Mn0 1Ap0 On0 1fd0 11X0 1qN0 WL0 1wp0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 14n0 1ld0 14L0 1kN0 15b0 1kp0 1cL0 1cN0 1fz0 1a10 1fz0 1fB0 11z0 14p0 1nX0 11B0 1nX0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 1a10 1in0 1a10 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 17c0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 11A0 6i00 Rc0 1wo0 U00 1tA0 Rc0 1wo0 U00 1wo0 U00 1zc0 U00 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0|21e5","America/Hermosillo|LMT MST CST PST MDT|7n.Q 70 60 80 60|0121212131414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0|64e4","America/Indiana/Knox|CST CDT CWT CPT EST|60 50 50 50 50|0101023010101010101010101010101010101040101010101010101010101010101010101010101010101010141010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 3Cn0 8wp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 z8o0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","America/Indiana/Marengo|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010104545454545414545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 dyN0 11z0 6fd0 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1e6p0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","America/Indiana/Petersburg|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010104010101010101010101010141014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 3Fb0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 19co0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","America/Indiana/Tell_City|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010401054541010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 8wn0 1cN0 1cL0 1cN0 1cK0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","America/Indiana/Vevay|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010102304545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 kPB0 Awn0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1lnd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","America/Indiana/Vincennes|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010454541014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 g0p0 11z0 1o10 11z0 1qL0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 caL0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","America/Indiana/Winamac|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010101010454541054545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1za0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","America/Inuvik|-00 PST PDDT MST MDT|0 80 60 70 60|0121343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-FnA0 tWU0 1fA0 wPe0 2pz0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|35e2","America/Iqaluit|-00 EWT EPT EST EDDT EDT CST CDT|0 40 40 50 30 40 60 50|01234353535353535353535353535353535353535353567353535353535353535353535353535353535353535353535353535353535353535353535353|-16K00 7nX0 iv0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|67e2","America/Jamaica|KMT EST EDT|57.a 50 40|0121212121212121212121|-2l1uQ.O 2uM1Q.O 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0|94e4","America/Juneau|PST PWT PPT PDT YDT YST AKST AKDT|80 70 70 70 80 90 90 80|01203030303030303030303030403030356767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cM0 1cM0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|33e3","America/Kentucky/Louisville|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101010102301010101010101010101010101454545454545414545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 3Fd0 Nb0 LPd0 11z0 RB0 8x30 iw0 1nX1 e0X 9vd0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 xz0 gso0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","America/Kentucky/Monticello|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 SWp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","America/La_Paz|CMT BST -04|4w.A 3w.A 40|012|-1x37r.o 13b0|19e5","America/Lima|LMT -05 -04|58.A 50 40|0121212121212121|-2tyGP.o 1bDzP.o zX0 1aN0 1cL0 1cN0 1cL0 1PrB0 zX0 1O10 zX0 6Gp0 zX0 98p0 zX0|11e6","America/Los_Angeles|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 5Wp1 1VaX 3dA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e6","America/Maceio|LMT -03 -02|2m.Q 30 20|012121212121212121212121212121212121212121|-2glxB.8 HdLB.8 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 8Q10 WL0 1tB0 5z0 2mN0 On0|93e4","America/Managua|MMT CST EST CDT|5J.c 60 50 50|0121313121213131|-1quie.M 1yAMe.M 4mn0 9Up0 Dz0 1K10 Dz0 s3F0 1KH0 DB0 9In0 k8p0 19X0 1o30 11y0|22e5","America/Manaus|LMT -04 -03|40.4 40 30|01212121212121212121212121212121|-2glvX.U HdKX.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0|19e5","America/Martinique|FFMT AST ADT|44.k 40 30|0121|-2mPTT.E 2LPbT.E 19X0|39e4","America/Matamoros|LMT CST CDT|6E 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|45e4","America/Mazatlan|LMT MST CST PST MDT|75.E 70 60 80 60|0121212131414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|44e4","America/Menominee|CST CDT CWT CPT EST|60 50 50 50 50|01010230101041010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 LCN0 1fz0 6410 9Jb0 1cM0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|85e2","America/Merida|LMT CST EST CDT|5W.s 60 50 50|0121313131313131313131313131313131313131313131313131313131313131313131313131313131313131|-1UQG0 2q2o0 2hz0 wu30 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|11e5","America/Metlakatla|PST PWT PPT PDT AKST AKDT|80 70 70 70 90 80|01203030303030303030303030303030304545450454545454545454545454545454545454545454|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1hU10 Rd0 1zb0 Op0 1zb0 Op0 1zb0 uM0 jB0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Mexico_City|LMT MST CST CDT CWT|6A.A 70 60 50 50|012121232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 gEn0 TX0 3xd0 Jb0 6zB0 SL0 e5d0 17b0 1Pff0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|20e6","America/Miquelon|LMT AST -03 -02|3I.E 40 30 20|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2mKkf.k 2LTAf.k gQ10 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|61e2","America/Moncton|EST AST ADT AWT APT|50 40 30 30 30|012121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsH0 CwN0 1in0 zAo0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1K10 Lz0 1zB0 NX0 1u10 Wn0 S20 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14n1 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 ReX 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|64e3","America/Monterrey|LMT CST CDT|6F.g 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|41e5","America/Montevideo|LMT MMT -04 -03 -0330 -0230 -02 -0130|3I.P 3I.P 40 30 3u 2u 20 1u|012343434343434343434343435353636353636375363636363636363636363636363636363636363636363|-2tRUf.9 sVc0 8jcf.9 1db0 1dcu 1cLu 1dcu 1cLu ircu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu WLu 1fAu 1cLu 1o0u 11zu NAu 3jXu zXu Dq0u 19Xu pcu jz0 cm10 19X0 6tB0 1fbu 3o0u jX0 4vB0 xz0 3Cp0 mmu 1a10 IMu Db0 4c10 uL0 1Nd0 An0 1SN0 uL0 mp0 28L0 iPB0 un0 1SN0 xz0 1zd0 Lz0 1zd0 Rb0 1zd0 On0 1wp0 Rb0 s8p0 1fB0 1ip0 11z0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 11z0|17e5","America/Toronto|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101012301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 11Wu 1nzu 1fD0 WJ0 1wr0 Nb0 1Ap0 On0 1zd0 On0 1wp0 TX0 1tB0 TX0 1tB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 4kM0 8x40 iv0 1o10 11z0 1nX0 11z0 1o10 11z0 1o10 1qL0 11D0 1nX0 11B0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e5","America/Nassau|LMT EST EDT|59.u 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2kNuO.u 26XdO.u 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|24e4","America/New_York|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 11B0 1qL0 1a10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e6","America/Nipigon|EST EDT EWT EPT|50 40 40 40|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 Rnb0 3je0 8x40 iv0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|16e2","America/Nome|NST NWT NPT BST BDT YST AKST AKDT|b0 a0 a0 b0 a0 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cl0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|38e2","America/Noronha|LMT -02 -01|29.E 20 10|0121212121212121212121212121212121212121|-2glxO.k HdKO.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|30e2","America/North_Dakota/Beulah|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","America/North_Dakota/Center|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","America/North_Dakota/New_Salem|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","America/Ojinaga|LMT MST CST CDT MDT|6V.E 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3","America/Pangnirtung|-00 AST AWT APT ADDT ADT EDT EST CST CDT|0 40 30 30 20 30 40 50 60 50|012314151515151515151515151515151515167676767689767676767676767676767676767676767676767676767676767676767676767676767676767|-1XiM0 PnG0 8x50 iu0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1o00 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Paramaribo|LMT PMT PMT -0330 -03|3E.E 3E.Q 3E.A 3u 30|01234|-2nDUj.k Wqo0.c qanX.I 1yVXN.o|24e4","America/Phoenix|MST MDT MWT|70 60 60|01010202010|-261r0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5","America/Port-au-Prince|PPMT EST EDT|4N 50 40|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-28RHb 2FnMb 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14q0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 i6n0 1nX0 11B0 1nX0 d430 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 3iN0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Rio_Branco|LMT -05 -04|4v.c 50 40|01212121212121212121212121212121|-2glvs.M HdLs.M 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0 d5X0|31e4","America/Porto_Velho|LMT -04 -03|4f.A 40 30|012121212121212121212121212121|-2glvI.o HdKI.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|37e4","America/Puerto_Rico|AST AWT APT|40 30 30|0120|-17lU0 7XT0 iu0|24e5","America/Punta_Arenas|SMT -05 -04 -03|4G.K 50 40 30|0102021212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 blz0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0","America/Rainy_River|CST CDT CWT CPT|60 50 50 50|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TQ0 1in0 Rnb0 3je0 8x30 iw0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|842","America/Rankin_Inlet|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313131313131313131313131313131313131313131313131313131313131313131|-vDc0 keu0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e2","America/Recife|LMT -03 -02|2j.A 30 20|0121212121212121212121212121212121212121|-2glxE.o HdLE.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|33e5","America/Regina|LMT MST MDT MWT MPT CST|6W.A 70 60 60 60 60|012121212121212121212121341212121212121212121212121215|-2AD51.o uHe1.o 1in0 s2L0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 66N0 1cL0 1cN0 19X0 1fB0 1cL0 1fB0 1cL0 1cN0 1cL0 M30 8x20 ix0 1ip0 1cL0 1ip0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 3NB0 1cL0 1cN0|19e4","America/Resolute|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313431313131313131313131313131313131313131313131313131313131313131|-SnA0 GWS0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|229","America/Santarem|LMT -04 -03|3C.M 40 30|0121212121212121212121212121212|-2glwl.c HdLl.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0|21e4","America/Santiago|SMT -05 -04 -03|4G.K 50 40 30|010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 9Bz0 jb0 1oN0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|62e5","America/Santo_Domingo|SDMT EST EDT -0430 AST|4E 50 40 4u 40|01213131313131414|-1ttjk 1lJMk Mn0 6sp0 Lbu 1Cou yLu 1RAu wLu 1QMu xzu 1Q0u xXu 1PAu 13jB0 e00|29e5","America/Sao_Paulo|LMT -03 -02|36.s 30 20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwR.w HdKR.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 pTd0 PX0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|20e6","America/Scoresbysund|LMT -02 -01 +00|1r.Q 20 10 0|0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2a5Ww.8 2z5ew.8 1a00 1cK0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|452","America/Sitka|PST PWT PPT PDT YST AKST AKDT|80 70 70 70 90 90 80|01203030303030303030303030303030345656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|90e2","America/St_Johns|NST NDT NST NDT NWT NPT NDDT|3u.Q 2u.Q 3u 2u 2u 2u 1u|01010101010101010101010101010101010102323232323232324523232323232323232323232323232323232323232323232323232323232323232323232323232323232326232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28oit.8 14L0 1nB0 1in0 1gm0 Dz0 1JB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1fB0 19X0 1fB0 19X0 10O0 eKX.8 19X0 1iq0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Swift_Current|LMT MST MDT MWT MPT CST|7b.k 70 60 60 60 60|012134121212121212121215|-2AD4M.E uHdM.E 1in0 UGp0 8x20 ix0 1o10 17b0 1ip0 11z0 1o10 11z0 1o10 11z0 isN0 1cL0 3Cp0 1cL0 1cN0 11z0 1qN0 WL0 pMp0|16e3","America/Tegucigalpa|LMT CST CDT|5M.Q 60 50|01212121|-1WGGb.8 2ETcb.8 WL0 1qN0 WL0 GRd0 AL0|11e5","America/Thule|LMT AST ADT|4z.8 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5To.Q 31NBo.Q 1cL0 1cN0 1cL0 1fB0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|656","America/Thunder_Bay|CST EST EWT EPT EDT|60 50 40 40 40|0123141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-2q5S0 1iaN0 8x40 iv0 XNB0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Vancouver|PST PDT PWT PPT|80 70 70 70|0102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TO0 1in0 UGp0 8x10 iy0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Whitehorse|YST YDT YWT YPT YDDT PST PDT|90 80 80 80 70 80 70|0101023040565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 3NA0 vrd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3","America/Winnipeg|CST CDT CWT CPT|60 50 50 50|010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aIi0 WL0 3ND0 1in0 Jap0 Rb0 aCN0 8x30 iw0 1tB0 11z0 1ip0 11z0 1o10 11z0 1o10 11z0 1rd0 10L0 1op0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 1cL0 1cN0 11z0 6i10 WL0 6i10 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|66e4","America/Yakutat|YST YWT YPT YDT AKST AKDT|90 80 80 80 90 80|01203030303030303030303030303030304545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-17T10 8x00 iz0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cn0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|642","America/Yellowknife|-00 MST MWT MPT MDDT MDT|0 70 60 60 50 60|012314151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151|-1pdA0 hix0 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","Antarctica/Casey|-00 +08 +11|0 -80 -b0|01212121|-2q00 1DjS0 T90 40P0 KL0 blz0 3m10|10","Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70","Antarctica/DumontDUrville|-00 +10|0 -a0|0101|-U0o0 cfq0 bFm0|80","Antarctica/Macquarie|AEST AEDT -00 +11|-a0 -b0 0 -b0|0102010101010101010101010101010101010101010101010101010101010101010101010101010101010101013|-29E80 19X0 4SL0 1ayy0 Lvs0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0|1","Antarctica/Mawson|-00 +06 +05|0 -60 -50|012|-CEo0 2fyk0|60","Pacific/Auckland|NZMT NZST NZST NZDT|-bu -cu -c0 -d0|01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1GCVu Lz0 1tB0 11zu 1o0u 11zu 1o0u 11zu 1o0u 14nu 1lcu 14nu 1lcu 1lbu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1qLu WMu 1qLu 11Au 1n1bu IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|14e5","Antarctica/Palmer|-00 -03 -04 -02|0 30 40 20|0121212121213121212121212121212121212121212121212121212121212121212121212121212121|-cao0 nD0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 jsN0 14N0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|40","Antarctica/Rothera|-00 -03|0 30|01|gOo0|130","Antarctica/Syowa|-00 +03|0 -30|01|-vs00|20","Antarctica/Troll|-00 +00 +02|0 0 -20|01212121212121212121212121212121212121212121212121212121212121212121|1puo0 hd0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|40","Antarctica/Vostok|-00 +06|0 -60|01|-tjA0|25","Europe/Oslo|CET CEST|-10 -20|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2awM0 Qm0 W6o0 5pf0 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 wJc0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1qM0 WM0 zpc0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e4","Asia/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5","Asia/Almaty|LMT +05 +06 +07|-57.M -50 -60 -70|012323232323232323232321232323232323232323232323232|-1Pc57.M eUo7.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|15e5","Asia/Amman|LMT EET EEST|-2n.I -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1yW2n.I 1HiMn.I KL0 1oN0 11b0 1oN0 11b0 1pd0 1dz0 1cp0 11b0 1op0 11b0 fO10 1db0 1e10 1cL0 1cN0 1cL0 1cN0 1fz0 1pd0 10n0 1ld0 14n0 1hB0 15b0 1ip0 19X0 1cN0 1cL0 1cN0 17b0 1ld0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1So0 y00 1fc0 1dc0 1co0 1dc0 1cM0 1cM0 1cM0 1o00 11A0 1lc0 17c0 1cM0 1cM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 4bX0 Dd0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|25e5","Asia/Anadyr|LMT +12 +13 +14 +11|-bN.U -c0 -d0 -e0 -b0|01232121212121212121214121212121212121212121212121212121212141|-1PcbN.U eUnN.U 23CL0 1db0 2q10 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|13e3","Asia/Aqtau|LMT +04 +05 +06|-3l.4 -40 -50 -60|012323232323232323232123232312121212121212121212|-1Pc3l.4 eUnl.4 24PX0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|15e4","Asia/Aqtobe|LMT +04 +05 +06|-3M.E -40 -50 -60|0123232323232323232321232323232323232323232323232|-1Pc3M.E eUnM.E 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|27e4","Asia/Ashgabat|LMT +04 +05 +06|-3R.w -40 -50 -60|0123232323232323232323212|-1Pc3R.w eUnR.w 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0|41e4","Asia/Atyrau|LMT +03 +05 +06 +04|-3r.I -30 -50 -60 -40|01232323232323232323242323232323232324242424242|-1Pc3r.I eUor.I 24PW0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 2sp0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0","Asia/Baghdad|BMT +03 +04|-2V.A -30 -40|012121212121212121212121212121212121212121212121212121|-26BeV.A 2ACnV.A 11b0 1cp0 1dz0 1dd0 1db0 1cN0 1cp0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1de0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0|66e5","Asia/Qatar|LMT +04 +03|-3q.8 -40 -30|012|-21Jfq.8 27BXq.8|96e4","Asia/Baku|LMT +03 +04 +05|-3j.o -30 -40 -50|01232323232323232323232123232323232323232323232323232323232323232|-1Pc3j.o 1jUoj.o WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 9Je0 1o00 11z0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e5","Asia/Bangkok|BMT +07|-6G.4 -70|01|-218SG.4|15e6","Asia/Barnaul|LMT +06 +07 +08|-5z -60 -70 -80|0123232323232323232323212323232321212121212121212121212121212121212|-21S5z pCnz 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 p90 LE0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0","Asia/Beirut|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-21aq0 1on0 1410 1db0 19B0 1in0 1ip0 WL0 1lQp0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 q6N0 En0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1op0 11b0 dA10 17b0 1iN0 17b0 1iN0 17b0 1iN0 17b0 1vB0 SL0 1mp0 13z0 1iN0 17b0 1iN0 17b0 1jd0 12n0 1a10 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0|22e5","Asia/Bishkek|LMT +05 +06 +07|-4W.o -50 -60 -70|012323232323232323232321212121212121212121212121212|-1Pc4W.o eUnW.o 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2e00 1tX0 17b0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1cPu 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0|87e4","Asia/Brunei|LMT +0730 +08|-7D.E -7u -80|012|-1KITD.E gDc9.E|42e4","Asia/Kolkata|MMT IST +0630|-5l.a -5u -6u|012121|-2zOtl.a 1r2LP.a 1un0 HB0 7zX0|15e6","Asia/Chita|LMT +08 +09 +10|-7x.Q -80 -90 -a0|012323232323232323232321232323232323232323232323232323232323232312|-21Q7x.Q pAnx.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3re0|33e4","Asia/Choibalsan|LMT +07 +08 +10 +09|-7C -70 -80 -a0 -90|0123434343434343434343434343434343434343434343424242|-2APHC 2UkoC cKn0 1da0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 3Db0 h1f0 1cJ0 1cP0 1cJ0|38e3","Asia/Shanghai|CST CDT|-80 -90|010101010101010101010101010|-1c2w0 Rz0 11d0 1wL0 A10 8HX0 1G10 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 aL0 1tU30 Rb0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0|23e6","Asia/Colombo|MMT +0530 +06 +0630|-5j.w -5u -60 -6u|01231321|-2zOtj.w 1rFbN.w 1zzu 7Apu 23dz0 11zu n3cu|22e5","Asia/Dhaka|HMT +0630 +0530 +06 +07|-5R.k -6u -5u -60 -70|0121343|-18LFR.k 1unn.k HB0 m6n0 2kxbu 1i00|16e6","Asia/Damascus|LMT EET EEST|-2p.c -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-21Jep.c Hep.c 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1xRB0 11X0 1oN0 10L0 1pB0 11b0 1oN0 10L0 1mp0 13X0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 Nb0 1AN0 Nb0 bcp0 19X0 1gp0 19X0 3ld0 1xX0 Vd0 1Bz0 Sp0 1vX0 10p0 1dz0 1cN0 1cL0 1db0 1db0 1g10 1an0 1ap0 1db0 1fd0 1db0 1cN0 1db0 1dd0 1db0 1cp0 1dz0 1c10 1dX0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 19z0 1fB0 1qL0 11B0 1on0 Wp0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0|26e5","Asia/Dili|LMT +08 +09|-8m.k -80 -90|01212|-2le8m.k 1dnXm.k 1nfA0 Xld0|19e4","Asia/Dubai|LMT +04|-3F.c -40|01|-21JfF.c|39e5","Asia/Dushanbe|LMT +05 +06 +07|-4z.c -50 -60 -70|012323232323232323232321|-1Pc4z.c eUnz.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2hB0|76e4","Asia/Famagusta|LMT EET EEST +03|-2f.M -20 -30 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212312121212121212121212121212121212121212121|-1Vc2f.M 2a3cf.M 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 15U0 2Ks0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00","Asia/Gaza|EET EEST IST IDT|-20 -30 -20 -30|0101010101010101010101010101010123232323232323232323232323232320101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 11z0 1o10 14o0 1lA1 SKX 1xd1 MKX 1AN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nz0 1220 1qL0 WN0 1qL0 WN0 1qL0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0|18e5","Asia/Hebron|EET EEST IST IDT|-20 -30 -20 -30|010101010101010101010101010101012323232323232323232323232323232010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 12L0 1mN0 14o0 1lc0 Tb0 1xd1 MKX bB0 cn0 1cN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nz0 1220 1qL0 WN0 1qL0 WN0 1qL0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0|25e4","Asia/Ho_Chi_Minh|LMT PLMT +07 +08 +09|-76.E -76.u -70 -80 -90|0123423232|-2yC76.E bK00.a 1h7b6.u 5lz0 18o0 3Oq0 k5b0 aW00 BAM0|90e5","Asia/Hong_Kong|LMT HKT HKST HKWT JST|-7A.G -80 -90 -8u -90|0123412121212121212121212121212121212121212121212121212121212121212121|-2CFH0 1taO0 Hc0 xUu 9tBu 11z0 1tDu Rc0 1wo0 11A0 1cM0 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1nX0 U10 1tz0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|73e5","Asia/Hovd|LMT +06 +07 +08|-66.A -60 -70 -80|012323232323232323232323232323232323232323232323232|-2APG6.A 2Uko6.A cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|81e3","Asia/Irkutsk|IMT +07 +08 +09|-6V.5 -70 -80 -90|01232323232323232323232123232323232323232323232323232323232323232|-21zGV.5 pjXV.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Europe/Istanbul|IMT EET EEST +03 +04|-1U.U -20 -30 -30 -40|0121212121212121212121212121212121212121212121234312121212121212121212121212121212121212121212121212121212121212123|-2ogNU.U dzzU.U 11b0 8tB0 1on0 1410 1db0 19B0 1in0 3Rd0 Un0 1oN0 11b0 zSN0 CL0 mp0 1Vz0 1gN0 8yn0 1yp0 ML0 1kp0 17b0 1ip0 17b0 1fB0 19X0 1ip0 19X0 1ip0 17b0 qdB0 38L0 1jd0 Tz0 l6O0 11A0 WN0 1qL0 TB0 1tX0 U10 1tz0 11B0 1in0 17d0 z90 cne0 pb0 2Cp0 1800 14o0 1dc0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1a00 1fA0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WO0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 Xc0 1qo0 WM0 1qM0 11A0 1o00 1200 1nA0 11A0 1tA0 U00 15w0|13e6","Asia/Jakarta|BMT +0720 +0730 +09 +08 WIB|-77.c -7k -7u -90 -80 -70|01232425|-1Q0Tk luM0 mPzO 8vWu 6kpu 4PXu xhcu|31e6","Asia/Jayapura|LMT +09 +0930 WIT|-9m.M -90 -9u -90|0123|-1uu9m.M sMMm.M L4nu|26e4","Asia/Jerusalem|JMT IST IDT IDDT|-2k.E -20 -30 -40|012121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-26Bek.E SyMk.E 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 3LB0 Em0 or0 1cn0 1dB0 16n0 10O0 1ja0 1tC0 14o0 1cM0 1a00 11A0 1Na0 An0 1MP0 AJ0 1Kp0 LC0 1oo0 Wl0 EQN0 Db0 1fB0 Rb0 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 1hB0 1dX0 1ep0 1aL0 1eN0 17X0 1nf0 11z0 1tB0 19W0 1e10 17b0 1ep0 1gL0 18N0 1fz0 1eN0 17b0 1gq0 1gn0 19d0 1dz0 1c10 17X0 1hB0 1gn0 19d0 1dz0 1c10 17X0 1kp0 1dz0 1c10 1aL0 1eN0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0|81e4","Asia/Kabul|+04 +0430|-40 -4u|01|-10Qs0|46e5","Asia/Kamchatka|LMT +11 +12 +13|-ay.A -b0 -c0 -d0|012323232323232323232321232323232323232323232323232323232323212|-1SLKy.A ivXy.A 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|18e4","Asia/Karachi|LMT +0530 +0630 +05 PKT PKST|-4s.c -5u -6u -50 -50 -60|012134545454|-2xoss.c 1qOKW.c 7zX0 eup0 LqMu 1fy00 1cL0 dK10 11b0 1610 1jX0|24e6","Asia/Urumqi|LMT +06|-5O.k -60|01|-1GgtO.k|32e5","Asia/Kathmandu|LMT +0530 +0545|-5F.g -5u -5J|012|-21JhF.g 2EGMb.g|12e5","Asia/Khandyga|LMT +08 +09 +10 +11|-92.d -80 -90 -a0 -b0|0123232323232323232323212323232323232323232323232343434343434343432|-21Q92.d pAp2.d 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 qK0 yN0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|66e2","Asia/Krasnoyarsk|LMT +06 +07 +08|-6b.q -60 -70 -80|01232323232323232323232123232323232323232323232323232323232323232|-21Hib.q prAb.q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|10e5","Asia/Kuala_Lumpur|SMT +07 +0720 +0730 +09 +08|-6T.p -70 -7k -7u -90 -80|0123435|-2Bg6T.p 17anT.p l5XE 17bO 8Fyu 1so1u|71e5","Asia/Kuching|LMT +0730 +08 +0820 +09|-7l.k -7u -80 -8k -90|0123232323232323242|-1KITl.k gDbP.k 6ynu AnE 1O0k AnE 1NAk AnE 1NAk AnE 1NAk AnE 1O0k AnE 1NAk AnE pAk 8Fz0|13e4","Asia/Macau|LMT CST +09 +10 CDT|-7y.a -80 -90 -a0 -90|012323214141414141414141414141414141414141414141414141414141414141414141|-2CFHy.a 1uqKy.a PX0 1kn0 15B0 11b0 4Qq0 1oM0 11c0 1ko0 1u00 11A0 1cM0 11c0 1o00 11A0 1o00 11A0 1oo0 1400 1o00 11A0 1o00 U00 1tA0 U00 1wo0 Rc0 1wru U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cK0 1cO0 1cK0 1cO0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|57e4","Asia/Magadan|LMT +10 +11 +12|-a3.c -a0 -b0 -c0|012323232323232323232321232323232323232323232323232323232323232312|-1Pca3.c eUo3.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Cq0|95e3","Asia/Makassar|LMT MMT +08 +09 WITA|-7V.A -7V.A -80 -90 -80|01234|-21JjV.A vfc0 myLV.A 8ML0|15e5","Asia/Manila|PST PDT JST|-80 -90 -90|010201010|-1kJI0 AL0 cK10 65X0 mXB0 vX0 VK10 1db0|24e6","Asia/Nicosia|LMT EET EEST|-2d.s -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Vc2d.s 2a3cd.s 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|32e4","Asia/Novokuznetsk|LMT +06 +07 +08|-5M.M -60 -70 -80|012323232323232323232321232323232323232323232323232323232323212|-1PctM.M eULM.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|55e4","Asia/Novosibirsk|LMT +06 +07 +08|-5v.E -60 -70 -80|0123232323232323232323212323212121212121212121212121212121212121212|-21Qnv.E pAFv.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 ml0 Os0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 4eN0|15e5","Asia/Omsk|LMT +05 +06 +07|-4R.u -50 -60 -70|01232323232323232323232123232323232323232323232323232323232323232|-224sR.u pMLR.u 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|12e5","Asia/Oral|LMT +03 +05 +06 +04|-3p.o -30 -50 -60 -40|01232323232323232424242424242424242424242424242|-1Pc3p.o eUop.o 23CK0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 1cM0 IM0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|27e4","Asia/Pontianak|LMT PMT +0730 +09 +08 WITA WIB|-7h.k -7h.k -7u -90 -80 -80 -70|012324256|-2ua7h.k XE00 munL.k 8Rau 6kpu 4PXu xhcu Wqnu|23e4","Asia/Pyongyang|LMT KST JST KST|-8n -8u -90 -90|012313|-2um8n 97XR 1lTzu 2Onc0 6BA0|29e5","Asia/Qostanay|LMT +04 +05 +06|-4e.s -40 -50 -60|012323232323232323232123232323232323232323232323|-1Pc4e.s eUoe.s 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0","Asia/Qyzylorda|LMT +04 +05 +06|-4l.Q -40 -50 -60|01232323232323232323232323232323232323232323232|-1Pc4l.Q eUol.Q 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 3ao0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 zQl0|73e4","Asia/Rangoon|RMT +0630 +09|-6o.L -6u -90|0121|-21Jio.L SmnS.L 7j9u|48e5","Asia/Sakhalin|LMT +09 +11 +12 +10|-9u.M -90 -b0 -c0 -a0|01232323232323232323232423232323232424242424242424242424242424242|-2AGVu.M 1BoMu.M 1qFa0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 2pB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|58e4","Asia/Samarkand|LMT +04 +05 +06|-4r.R -40 -50 -60|01232323232323232323232|-1Pc4r.R eUor.R 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0|36e4","Asia/Seoul|LMT KST JST KST KDT KDT|-8r.Q -8u -90 -90 -a0 -9u|012343434343151515151515134343|-2um8r.Q 97XV.Q 1m1zu 6CM0 Fz0 1kN0 14n0 1kN0 14L0 1zd0 On0 69B0 2I0u OL0 1FB0 Rb0 1qN0 TX0 1tB0 TX0 1tB0 TX0 1tB0 TX0 2ap0 12FBu 11A0 1o00 11A0|23e6","Asia/Srednekolymsk|LMT +10 +11 +12|-ae.Q -a0 -b0 -c0|01232323232323232323232123232323232323232323232323232323232323232|-1Pcae.Q eUoe.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|35e2","Asia/Taipei|CST JST CDT|-80 -90 -90|01020202020202020202020202020202020202020|-1iw80 joM0 1yo0 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 10N0 1BX0 10p0 1pz0 10p0 1pz0 10p0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1BB0 ML0 1Bd0 ML0 uq10 1db0 1cN0 1db0 97B0 AL0|74e5","Asia/Tashkent|LMT +05 +06 +07|-4B.b -50 -60 -70|012323232323232323232321|-1Pc4B.b eUnB.b 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0|23e5","Asia/Tbilisi|TBMT +03 +04 +05|-2X.b -30 -40 -50|0123232323232323232323212121232323232323232323212|-1Pc2X.b 1jUnX.b WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cK0 1cL0 1cN0 1cL0 1cN0 2pz0 1cL0 1fB0 3Nz0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 An0 Os0 WM0|11e5","Asia/Tehran|LMT TMT +0330 +04 +05 +0430|-3p.I -3p.I -3u -40 -50 -4u|01234325252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2btDp.I 1d3c0 1huLT.I TXu 1pz0 sN0 vAu 1cL0 1dB0 1en0 pNB0 UL0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 64p0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0|14e6","Asia/Thimphu|LMT +0530 +06|-5W.A -5u -60|012|-Su5W.A 1BGMs.A|79e3","Asia/Tokyo|JST JDT|-90 -a0|010101010|-QJJ0 Rc0 1lc0 14o0 1zc0 Oo0 1zc0 Oo0|38e6","Asia/Tomsk|LMT +06 +07 +08|-5D.P -60 -70 -80|0123232323232323232323212323232323232323232323212121212121212121212|-21NhD.P pxzD.P 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 co0 1bB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Qp0|10e5","Asia/Ulaanbaatar|LMT +07 +08 +09|-77.w -70 -80 -90|012323232323232323232323232323232323232323232323232|-2APH7.w 2Uko7.w cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|12e5","Asia/Ust-Nera|LMT +08 +09 +12 +11 +10|-9w.S -80 -90 -c0 -b0 -a0|012343434343434343434345434343434343434343434343434343434343434345|-21Q9w.S pApw.S 23CL0 1d90 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|65e2","Asia/Vladivostok|LMT +09 +10 +11|-8L.v -90 -a0 -b0|01232323232323232323232123232323232323232323232323232323232323232|-1SJIL.v itXL.v 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Asia/Yakutsk|LMT +08 +09 +10|-8C.W -80 -90 -a0|01232323232323232323232123232323232323232323232323232323232323232|-21Q8C.W pAoC.W 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|28e4","Asia/Yekaterinburg|LMT PMT +04 +05 +06|-42.x -3J.5 -40 -50 -60|012343434343434343434343234343434343434343434343434343434343434343|-2ag42.x 7mQh.s qBvJ.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|14e5","Asia/Yerevan|LMT +03 +04 +05|-2W -30 -40 -50|0123232323232323232323212121212323232323232323232323232323232|-1Pc2W 1jUnW WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 4RX0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|13e5","Atlantic/Azores|HMT -02 -01 +00 WET|1S.w 20 10 0 0|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323234323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2ldW0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 3Co0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|25e4","Atlantic/Bermuda|LMT AST ADT|4j.i 40 30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1BnRE.G 1LTbE.G 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e3","Atlantic/Canary|LMT -01 WET WEST|11.A 10 0 -10|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UtaW.o XPAW.o 1lAK0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Atlantic/Cape_Verde|LMT -02 -01|1y.4 20 10|01212|-2ldW0 1eEo0 7zX0 1djf0|50e4","Atlantic/Faroe|LMT WET WEST|r.4 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2uSnw.U 2Wgow.U 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|49e3","Atlantic/Madeira|FMT -01 +00 +01 WET WEST|17.A 10 0 -10 0 -10|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2ldX0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 3Co0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e4","Atlantic/Reykjavik|LMT -01 +00 GMT|1s 10 0 0|012121212121212121212121212121212121212121212121212121212121212121213|-2uWmw mfaw 1Bd0 ML0 1LB0 Cn0 1LB0 3fX0 C10 HrX0 1cO0 LB0 1EL0 LA0 1C00 Oo0 1wo0 Rc0 1wo0 Rc0 1wo0 Rc0 1zc0 Oo0 1zc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0|12e4","Atlantic/South_Georgia|-02|20|0||30","Atlantic/Stanley|SMT -04 -03 -02|3P.o 40 30 20|012121212121212323212121212121212121212121212121212121212121212121212|-2kJw8.A 12bA8.A 19X0 1fB0 19X0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 Cn0 1Cc10 WL0 1qL0 U10 1tz0 2mN0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 U10 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qN0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 U10 1tz0 U10 1tz0 U10|21e2","Australia/Sydney|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|40e5","Australia/Adelaide|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 WM0 1qM0 Rc0 1zc0 U00 1tA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|11e5","Australia/Brisbane|AEST AEDT|-a0 -b0|01010101010101010|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5","Australia/Broken_Hill|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|18e3","Australia/Currie|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|746","Australia/Darwin|ACST ACDT|-9u -au|010101010|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0|12e4","Australia/Eucla|+0845 +0945|-8J -9J|0101010101010101010|-293kI xcX 10jd0 yL0 1cN0 1cL0 1gSp0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368","Australia/Hobart|AEST AEDT|-a0 -b0|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 VfB0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|21e4","Australia/Lord_Howe|AEST +1030 +1130 +11|-a0 -au -bu -b0|0121212121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313|raC0 1zdu Rb0 1zd0 On0 1zd0 On0 1zd0 On0 1zd0 TXu 1qMu WLu 1tAu WLu 1tAu TXu 1tAu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 11Au 1nXu 1qMu 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu 11zu 1o0u WLu 1qMu 14nu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu|347","Australia/Lindeman|AEST AEDT|-a0 -b0|010101010101010101010|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10","Australia/Melbourne|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1qM0 11A0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|39e5","Australia/Perth|AWST AWDT|-80 -90|0101010101010101010|-293jX xcX 10jd0 yL0 1cN0 1cL0 1gSp0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|18e5","CET|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00","Pacific/Easter|EMT -07 -06 -05|7h.s 70 60 50|012121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1uSgG.w 1s4IG.w WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 2pA0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|30e2","CST6CDT|CST CDT CWT CPT|60 50 50 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","EET|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00","Europe/Dublin|DMT IST GMT BST IST|p.l -y.D 0 -10 -10|01232323232324242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242|-2ax9y.D Rc0 1fzy.D 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 g600 14o0 1wo0 17c0 1io0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","EST|EST|50|0|","EST5EDT|EST EDT EWT EPT|50 40 40 40|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 SgN0 8x40 iv0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","Etc/GMT-0|GMT|0|0|","Etc/GMT-1|+01|-10|0|","Pacific/Port_Moresby|+10|-a0|0||25e4","Etc/GMT-11|+11|-b0|0|","Pacific/Tarawa|+12|-c0|0||29e3","Etc/GMT-13|+13|-d0|0|","Etc/GMT-14|+14|-e0|0|","Etc/GMT-2|+02|-20|0|","Etc/GMT-3|+03|-30|0|","Etc/GMT-4|+04|-40|0|","Etc/GMT-5|+05|-50|0|","Etc/GMT-6|+06|-60|0|","Indian/Christmas|+07|-70|0||21e2","Etc/GMT-8|+08|-80|0|","Pacific/Palau|+09|-90|0||21e3","Etc/GMT+1|-01|10|0|","Etc/GMT+10|-10|a0|0|","Etc/GMT+11|-11|b0|0|","Etc/GMT+12|-12|c0|0|","Etc/GMT+3|-03|30|0|","Etc/GMT+4|-04|40|0|","Etc/GMT+5|-05|50|0|","Etc/GMT+6|-06|60|0|","Etc/GMT+7|-07|70|0|","Etc/GMT+8|-08|80|0|","Etc/GMT+9|-09|90|0|","Etc/UTC|UTC|0|0|","Europe/Amsterdam|AMT NST +0120 +0020 CEST CET|-j.w -1j.w -1k -k -20 -10|010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-2aFcj.w 11b0 1iP0 11A0 1io0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1co0 1io0 1yo0 Pc0 1a00 1fA0 1Bc0 Mo0 1tc0 Uo0 1tA0 U00 1uo0 W00 1s00 VA0 1so0 Vc0 1sM0 UM0 1wo0 Rc0 1u00 Wo0 1rA0 W00 1s00 VA0 1sM0 UM0 1w00 fV0 BCX.w 1tA0 U00 1u00 Wo0 1sm0 601k WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|16e5","Europe/Andorra|WET CET CEST|0 -10 -20|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-UBA0 1xIN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|79e3","Europe/Astrakhan|LMT +03 +04 +05|-3c.c -30 -40 -50|012323232323232323212121212121212121212121212121212121212121212|-1Pcrc.c eUMc.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|10e5","Europe/Athens|AMT EET EEST CEST CET|-1y.Q -20 -30 -20 -10|012123434121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a61x.Q CNbx.Q mn0 kU10 9b0 3Es0 Xa0 1fb0 1dd0 k3X0 Nz0 SCp0 1vc0 SO0 1cM0 1a00 1ao0 1fc0 1a10 1fG0 1cg0 1dX0 1bX0 1cQ0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|35e5","Europe/London|GMT BST BDST|0 -10 -20|0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|10e6","Europe/Belgrade|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19RC0 3IP0 WM0 1fA0 1cM0 1cM0 1rc0 Qo0 1vmo0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Berlin|CET CEST CEMT|-10 -20 -30|01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 kL0 Nc0 m10 WM0 1ao0 1cp0 dX0 jz0 Dd0 1io0 17c0 1fA0 1a00 1ehA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e5","Europe/Prague|CET CEST GMT|-10 -20 0|01010101010101010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 1qM0 11c0 mp0 xA0 mn0 17c0 1io0 17c0 1fc0 1ao0 1bNc0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|13e5","Europe/Brussels|WET CET CEST WEST|0 -10 -20 -10|0121212103030303030303030303030303030303030303030303212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ehc0 3zX0 11c0 1iO0 11A0 1o00 11A0 my0 Ic0 1qM0 Rc0 1EM0 UM0 1u00 10o0 1io0 1io0 17c0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a30 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 y00 5Wn0 WM0 1fA0 1cM0 16M0 1iM0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|21e5","Europe/Bucharest|BMT EET EEST|-1I.o -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1xApI.o 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Axc0 On0 1fA0 1a10 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|19e5","Europe/Budapest|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1ip0 17b0 1op0 1tb0 Q2m0 3Ne0 WM0 1fA0 1cM0 1cM0 1oJ0 1dc0 1030 1fA0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1iM0 1fA0 8Ha0 Rb0 1wN0 Rb0 1BB0 Lz0 1C20 LB0 SNX0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zurich|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19Lc0 11A0 1o00 11A0 1xG10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e4","Europe/Chisinau|CMT BMT EET EEST CEST CET MSK MSD|-1T -1I.o -20 -30 -20 -10 -30 -40|012323232323232323234545467676767676767676767323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-26jdT wGMa.A 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 27A0 2en0 39g0 WM0 1fA0 1cM0 V90 1t7z0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 gL0 WO0 1cM0 1cM0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11D0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|67e4","Europe/Copenhagen|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 Tz0 VuO0 60q0 WM0 1fA0 1cM0 1cM0 1cM0 S00 1HA0 Nc0 1C00 Dc0 1Nc0 Ao0 1h5A0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Gibraltar|GMT BST BDST CET CEST|0 -10 -20 -10 -20|010101010101010101010101010101010101010101010101012121212121010121010101010101010101034343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 10Jz0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|30e3","Europe/Helsinki|HMT EET EEST|-1D.N -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1WuND.N OULD.N 1dA0 1xGq0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Kaliningrad|CET CEST EET EEST MSK MSD +03|-10 -20 -20 -30 -30 -40 -30|01010101010101232454545454545454543232323232323232323232323232323232323232323262|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 390 7A0 1en0 12N0 1pbb0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|44e4","Europe/Kiev|KMT EET MSK CEST CET MSD EEST|-22.4 -20 -30 -20 -10 -40 -30|0123434252525252525252525256161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc22.4 eUo2.4 rnz0 2Hg0 WM0 1fA0 da0 1v4m0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 Db0 3220 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|34e5","Europe/Kirov|LMT +03 +04 +05|-3i.M -30 -40 -50|01232323232323232321212121212121212121212121212121212121212121|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|48e4","Europe/Lisbon|LMT WET WEST WEMT CET CEST|A.J 0 -10 -20 -10 -20|012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2le00 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 3Co0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 pvy0 1cM0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e5","Europe/Luxembourg|LMT CET CEST WET WEST WEST WET|-o.A -10 -20 0 -10 -20 -10|0121212134343434343434343434343434343434343434343434565651212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2DG0o.A t6mo.A TB0 1nX0 Up0 1o20 11A0 rW0 CM0 1qP0 R90 1EO0 UK0 1u20 10m0 1ip0 1in0 17e0 19W0 1fB0 1db0 1cp0 1in0 17d0 1fz0 1a10 1in0 1a10 1in0 17f0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 vA0 60L0 WM0 1fA0 1cM0 17c0 1io0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Madrid|WET WEST WEMT CET CEST|0 -10 -20 -10 -20|010101010101010101210343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-25Td0 19B0 1cL0 1dd0 b1z0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1in0 17d0 iIn0 Hd0 1cL0 bb0 1200 2s20 14n0 5aL0 Mp0 1vz0 17d0 1in0 17d0 1in0 17d0 1in0 17d0 6hX0 11B0 XHX0 1a10 1fz0 1a10 19X0 1cN0 1fz0 1a10 1fC0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e5","Europe/Malta|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1co0 17c0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1co0 1cM0 1lA0 Xc0 1qq0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1iN0 19z0 1fB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Minsk|MMT EET MSK CEST CET MSD EEST +03|-1O -20 -30 -20 -10 -40 -30 -30|01234343252525252525252525261616161616161616161616161616161616161617|-1Pc1O eUnO qNX0 3gQ0 WM0 1fA0 1cM0 Al0 1tsn0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 3Fc0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0|19e5","Europe/Monaco|PMT WET WEST WEMT CET CEST|-9.l 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121212121232323232345454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 2RV0 11z0 11B0 1ze0 WM0 1fA0 1cM0 1fa0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e3","Europe/Moscow|MMT MMT MST MDST MSD MSK +05 EET EEST MSK|-2u.h -2v.j -3v.j -4v.j -40 -30 -50 -20 -30 -40|012132345464575454545454545454545458754545454545454545454545454545454545454595|-2ag2u.h 2pyW.W 1bA0 11X0 GN0 1Hb0 c4v.j ik0 3DA0 dz0 15A0 c10 2q10 iM10 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|16e6","Europe/Paris|PMT WET WEST CEST CET WEMT|-9.l 0 -10 -20 -10 -20|0121212121212121212121212121212121212121212121212123434352543434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-2nco8.l cNb8.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 Ik0 5M30 WM0 1fA0 1cM0 Vx0 hB0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e6","Europe/Riga|RMT LST EET MSK CEST CET MSD EEST|-1A.y -2A.y -20 -30 -20 -10 -40 -30|010102345454536363636363636363727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272|-25TzA.y 11A0 1iM0 ko0 gWm0 yDXA.y 2bX0 3fE0 WM0 1fA0 1cM0 1cM0 4m0 1sLy0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 1o00 11A0 1o00 11A0 1qM0 3oo0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|64e4","Europe/Rome|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1cM0 16M0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1C00 LA0 1zc0 Oo0 1C00 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1zc0 Oo0 1fC0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|39e5","Europe/Samara|LMT +03 +04 +05|-3k.k -30 -40 -50|0123232323232323232121232323232323232323232323232323232323212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2y10 14m0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|12e5","Europe/Saratov|LMT +03 +04 +05|-34.i -30 -40 -50|012323232323232321212121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 5810","Europe/Simferopol|SMT EET MSK CEST CET MSD EEST MSK|-2g -20 -30 -20 -10 -40 -30 -40|012343432525252525252525252161616525252616161616161616161616161616161616172|-1Pc2g eUog rEn0 2qs0 WM0 1fA0 1cM0 3V0 1u0L0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 4eL0 1cL0 1cN0 1cL0 1cN0 dX0 WL0 1cN0 1cL0 1fB0 1o30 11B0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11z0 1nW0|33e4","Europe/Sofia|EET CET CEST EEST|-20 -10 -20 -30|01212103030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030|-168L0 WM0 1fA0 1cM0 1cM0 1cN0 1mKH0 1dd0 1fb0 1ap0 1fb0 1a20 1fy0 1a30 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Stockholm|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 TB0 2yDe0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|15e5","Europe/Tallinn|TMT CET CEST EET MSK MSD EEST|-1D -10 -20 -20 -30 -40 -30|012103421212454545454545454546363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363|-26oND teD 11A0 1Ta0 4rXl KSLD 2FX0 2Jg0 WM0 1fA0 1cM0 18J0 1sTX0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o10 11A0 1qM0 5QM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e4","Europe/Tirane|LMT CET CEST|-1j.k -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glBj.k 14pcj.k 5LC0 WM0 4M0 1fCK0 10n0 1op0 11z0 1pd0 11z0 1qN0 WL0 1qp0 Xb0 1qp0 Xb0 1qp0 11z0 1lB0 11z0 1qN0 11z0 1iN0 16n0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Ulyanovsk|LMT +03 +04 +05 +02|-3d.A -30 -40 -50 -20|01232323232323232321214121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|13e5","Europe/Uzhgorod|CET CEST MSK MSD EET EEST|-10 -20 -30 -40 -20 -30|010101023232323232323232320454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-1cqL0 6i00 WM0 1fA0 1cM0 1ml0 1Cp0 1r3W0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 1Nf0 2pw0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e4","Europe/Vienna|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 3KM0 14o0 LA00 6i00 WM0 1fA0 1cM0 1cM0 1cM0 400 2qM0 1ao0 1co0 1cM0 1io0 17c0 1gHa0 19X0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|18e5","Europe/Vilnius|WMT KMT CET EET MSK CEST MSD EEST|-1o -1z.A -10 -20 -30 -20 -40 -30|012324525254646464646464646473737373737373737352537373737373737373737373737373737373737373737373737373737373737373737373|-293do 6ILM.o 1Ooz.A zz0 Mfd0 29W0 3is0 WM0 1fA0 1cM0 LV0 1tgL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11B0 1o00 11A0 1qM0 8io0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Volgograd|LMT +03 +04 +05|-2V.E -30 -40 -50|012323232323232321212121212121212121212121212121212121212121212|-21IqV.E psLV.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 9Jd0|10e5","Europe/Warsaw|WMT CET CEST EET EEST|-1o -10 -20 -20 -30|012121234312121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ctdo 1LXo 11d0 1iO0 11A0 1o00 11A0 1on0 11A0 6zy0 HWP0 5IM0 WM0 1fA0 1cM0 1dz0 1mL0 1en0 15B0 1aq0 1nA0 11A0 1io0 17c0 1fA0 1a00 iDX0 LA0 1cM0 1cM0 1C00 Oo0 1cM0 1cM0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1C00 LA0 uso0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zaporozhye|+0220 EET MSK CEST CET MSD EEST|-2k -20 -30 -20 -10 -40 -30|01234342525252525252525252526161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc2k eUok rdb0 2RE0 WM0 1fA0 8m0 1v9a0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cK0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|77e4","HST|HST|a0|0|","Indian/Chagos|LMT +05 +06|-4N.E -50 -60|012|-2xosN.E 3AGLN.E|30e2","Indian/Cocos|+0630|-6u|0||596","Indian/Kerguelen|-00 +05|0 -50|01|-MG00|130","Indian/Mahe|LMT +04|-3F.M -40|01|-2yO3F.M|79e3","Indian/Maldives|MMT +05|-4S -50|01|-olgS|35e4","Indian/Mauritius|LMT +04 +05|-3O -40 -50|012121|-2xorO 34unO 14L0 12kr0 11z0|15e4","Indian/Reunion|LMT +04|-3F.Q -40|01|-2mDDF.Q|84e4","Pacific/Kwajalein|+11 +10 +09 -12 +12|-b0 -a0 -90 c0 -c0|012034|-1kln0 akp0 6Up0 12ry0 Wan0|14e3","MET|MET MEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00","MST|MST|70|0|","MST7MDT|MST MDT MWT MPT|70 60 60 60|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","Pacific/Chatham|+1215 +1245 +1345|-cf -cJ -dJ|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-WqAf 1adef IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|600","Pacific/Apia|LMT -1130 -11 -10 +14 +13|bq.U bu b0 a0 -e0 -d0|01232345454545454545454545454545454545454545454545454545454|-2nDMx.4 1yW03.4 2rRbu 1ff0 1a00 CI0 AQ0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|37e3","Pacific/Bougainville|+10 +09 +11|-a0 -90 -b0|0102|-16Wy0 7CN0 2MQp0|18e4","Pacific/Chuuk|+10 +09|-a0 -90|01010|-2ewy0 axB0 RVX0 axd0|49e3","Pacific/Efate|LMT +11 +12|-bd.g -b0 -c0|0121212121212121212121|-2l9nd.g 2Szcd.g 1cL0 1oN0 10L0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3","Pacific/Enderbury|-12 -11 +13|c0 b0 -d0|012|nIc0 B7X0|1","Pacific/Fakaofo|-11 +13|b0 -d0|01|1Gfn0|483","Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|0121212121212121212121212121212121212121212121212121212121212121|-2bUzT.I 3m8NT.I LA0 1EM0 IM0 nJc0 LA0 1o00 Rc0 1wo0 Ao0 1Nc0 Ao0 1Q00 xz0 1SN0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 20o0 pc0 20o0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00|88e4","Pacific/Galapagos|LMT -05 -06|5W.o 50 60|01212|-1yVS1.A 2dTz1.A gNd0 rz0|25e3","Pacific/Gambier|LMT -09|8X.M 90|01|-2jof0.c|125","Pacific/Guadalcanal|LMT +11|-aD.M -b0|01|-2joyD.M|11e4","Pacific/Guam|GST +09 GDT ChST|-a0 -90 -b0 -a0|01020202020202020203|-18jK0 6pB0 AhB0 3QL0 g2p0 3p91 WOX rX0 1zd0 Rb0 1wp0 Rb0 5xd0 rX0 5sN0 zb1 1C0X On0 ULb0|17e4","Pacific/Honolulu|HST HDT HWT HPT HST|au 9u 9u 9u a0|0102304|-1thLu 8x0 lef0 8wWu iAu 46p0|37e4","Pacific/Kiritimati|-1040 -10 +14|aE a0 -e0|012|nIaE B7Xk|51e2","Pacific/Kosrae|+11 +09 +10 +12|-b0 -90 -a0 -c0|01021030|-2ewz0 axC0 HBy0 akp0 axd0 WOK0 1bdz0|66e2","Pacific/Majuro|+11 +09 +10 +12|-b0 -90 -a0 -c0|0102103|-2ewz0 axC0 HBy0 akp0 6RB0 12um0|28e3","Pacific/Marquesas|LMT -0930|9i 9u|01|-2joeG|86e2","Pacific/Pago_Pago|LMT SST|bm.M b0|01|-2nDMB.c|37e2","Pacific/Nauru|LMT +1130 +09 +12|-b7.E -bu -90 -c0|01213|-1Xdn7.E QCnB.E 7mqu 1lnbu|10e3","Pacific/Niue|-1120 -1130 -11|bk bu b0|012|-KfME 17y0a|12e2","Pacific/Norfolk|+1112 +1130 +1230 +11 +12|-bc -bu -cu -b0 -c0|012134343434343434343434343434343434343434|-Kgbc W01G Oo0 1COo0 9Jcu 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|25e4","Pacific/Noumea|LMT +11 +12|-b5.M -b0 -c0|01212121|-2l9n5.M 2EqM5.M xX0 1PB0 yn0 HeP0 Ao0|98e3","Pacific/Pitcairn|-0830 -08|8u 80|01|18Vku|56","Pacific/Pohnpei|+11 +09 +10|-b0 -90 -a0|010210|-2ewz0 axC0 HBy0 akp0 axd0|34e3","Pacific/Rarotonga|-1030 -0930 -10|au 9u a0|012121212121212121212121212|lyWu IL0 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu|13e3","Pacific/Tahiti|LMT -10|9W.g a0|01|-2joe1.I|18e4","Pacific/Tongatapu|+1220 +13 +14|-ck -d0 -e0|0121212121|-1aB0k 2n5dk 15A0 1wo0 xz0 1Q10 xz0 zWN0 s00|75e3","PST8PDT|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","WET|WET WEST|0 -10|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00"],"links":["Africa/Abidjan|Africa/Bamako","Africa/Abidjan|Africa/Banjul","Africa/Abidjan|Africa/Conakry","Africa/Abidjan|Africa/Dakar","Africa/Abidjan|Africa/Freetown","Africa/Abidjan|Africa/Lome","Africa/Abidjan|Africa/Nouakchott","Africa/Abidjan|Africa/Ouagadougou","Africa/Abidjan|Africa/Timbuktu","Africa/Abidjan|Atlantic/St_Helena","Africa/Cairo|Egypt","Africa/Johannesburg|Africa/Maseru","Africa/Johannesburg|Africa/Mbabane","Africa/Lagos|Africa/Bangui","Africa/Lagos|Africa/Brazzaville","Africa/Lagos|Africa/Douala","Africa/Lagos|Africa/Kinshasa","Africa/Lagos|Africa/Libreville","Africa/Lagos|Africa/Luanda","Africa/Lagos|Africa/Malabo","Africa/Lagos|Africa/Niamey","Africa/Lagos|Africa/Porto-Novo","Africa/Maputo|Africa/Blantyre","Africa/Maputo|Africa/Bujumbura","Africa/Maputo|Africa/Gaborone","Africa/Maputo|Africa/Harare","Africa/Maputo|Africa/Kigali","Africa/Maputo|Africa/Lubumbashi","Africa/Maputo|Africa/Lusaka","Africa/Nairobi|Africa/Addis_Ababa","Africa/Nairobi|Africa/Asmara","Africa/Nairobi|Africa/Asmera","Africa/Nairobi|Africa/Dar_es_Salaam","Africa/Nairobi|Africa/Djibouti","Africa/Nairobi|Africa/Kampala","Africa/Nairobi|Africa/Mogadishu","Africa/Nairobi|Indian/Antananarivo","Africa/Nairobi|Indian/Comoro","Africa/Nairobi|Indian/Mayotte","Africa/Tripoli|Libya","America/Adak|America/Atka","America/Adak|US/Aleutian","America/Anchorage|US/Alaska","America/Argentina/Buenos_Aires|America/Buenos_Aires","America/Argentina/Catamarca|America/Argentina/ComodRivadavia","America/Argentina/Catamarca|America/Catamarca","America/Argentina/Cordoba|America/Cordoba","America/Argentina/Cordoba|America/Rosario","America/Argentina/Jujuy|America/Jujuy","America/Argentina/Mendoza|America/Mendoza","America/Atikokan|America/Coral_Harbour","America/Chicago|US/Central","America/Curacao|America/Aruba","America/Curacao|America/Kralendijk","America/Curacao|America/Lower_Princes","America/Denver|America/Shiprock","America/Denver|Navajo","America/Denver|US/Mountain","America/Detroit|US/Michigan","America/Edmonton|Canada/Mountain","America/Fort_Wayne|America/Indiana/Indianapolis","America/Fort_Wayne|America/Indianapolis","America/Fort_Wayne|US/East-Indiana","America/Halifax|Canada/Atlantic","America/Havana|Cuba","America/Indiana/Knox|America/Knox_IN","America/Indiana/Knox|US/Indiana-Starke","America/Jamaica|Jamaica","America/Kentucky/Louisville|America/Louisville","America/Los_Angeles|US/Pacific","America/Los_Angeles|US/Pacific-New","America/Manaus|Brazil/West","America/Mazatlan|Mexico/BajaSur","America/Mexico_City|Mexico/General","America/New_York|US/Eastern","America/Noronha|Brazil/DeNoronha","America/Panama|America/Cayman","America/Phoenix|US/Arizona","America/Port_of_Spain|America/Anguilla","America/Port_of_Spain|America/Antigua","America/Port_of_Spain|America/Dominica","America/Port_of_Spain|America/Grenada","America/Port_of_Spain|America/Guadeloupe","America/Port_of_Spain|America/Marigot","America/Port_of_Spain|America/Montserrat","America/Port_of_Spain|America/St_Barthelemy","America/Port_of_Spain|America/St_Kitts","America/Port_of_Spain|America/St_Lucia","America/Port_of_Spain|America/St_Thomas","America/Port_of_Spain|America/St_Vincent","America/Port_of_Spain|America/Tortola","America/Port_of_Spain|America/Virgin","America/Regina|Canada/Saskatchewan","America/Rio_Branco|America/Porto_Acre","America/Rio_Branco|Brazil/Acre","America/Santiago|Chile/Continental","America/Sao_Paulo|Brazil/East","America/St_Johns|Canada/Newfoundland","America/Tijuana|America/Ensenada","America/Tijuana|America/Santa_Isabel","America/Tijuana|Mexico/BajaNorte","America/Toronto|America/Montreal","America/Toronto|Canada/Eastern","America/Vancouver|Canada/Pacific","America/Whitehorse|Canada/Yukon","America/Winnipeg|Canada/Central","Asia/Ashgabat|Asia/Ashkhabad","Asia/Bangkok|Asia/Phnom_Penh","Asia/Bangkok|Asia/Vientiane","Asia/Dhaka|Asia/Dacca","Asia/Dubai|Asia/Muscat","Asia/Ho_Chi_Minh|Asia/Saigon","Asia/Hong_Kong|Hongkong","Asia/Jerusalem|Asia/Tel_Aviv","Asia/Jerusalem|Israel","Asia/Kathmandu|Asia/Katmandu","Asia/Kolkata|Asia/Calcutta","Asia/Kuala_Lumpur|Asia/Singapore","Asia/Kuala_Lumpur|Singapore","Asia/Macau|Asia/Macao","Asia/Makassar|Asia/Ujung_Pandang","Asia/Nicosia|Europe/Nicosia","Asia/Qatar|Asia/Bahrain","Asia/Rangoon|Asia/Yangon","Asia/Riyadh|Asia/Aden","Asia/Riyadh|Asia/Kuwait","Asia/Seoul|ROK","Asia/Shanghai|Asia/Chongqing","Asia/Shanghai|Asia/Chungking","Asia/Shanghai|Asia/Harbin","Asia/Shanghai|PRC","Asia/Taipei|ROC","Asia/Tehran|Iran","Asia/Thimphu|Asia/Thimbu","Asia/Tokyo|Japan","Asia/Ulaanbaatar|Asia/Ulan_Bator","Asia/Urumqi|Asia/Kashgar","Atlantic/Faroe|Atlantic/Faeroe","Atlantic/Reykjavik|Iceland","Atlantic/South_Georgia|Etc/GMT+2","Australia/Adelaide|Australia/South","Australia/Brisbane|Australia/Queensland","Australia/Broken_Hill|Australia/Yancowinna","Australia/Darwin|Australia/North","Australia/Hobart|Australia/Tasmania","Australia/Lord_Howe|Australia/LHI","Australia/Melbourne|Australia/Victoria","Australia/Perth|Australia/West","Australia/Sydney|Australia/ACT","Australia/Sydney|Australia/Canberra","Australia/Sydney|Australia/NSW","Etc/GMT-0|Etc/GMT","Etc/GMT-0|Etc/GMT+0","Etc/GMT-0|Etc/GMT0","Etc/GMT-0|Etc/Greenwich","Etc/GMT-0|GMT","Etc/GMT-0|GMT+0","Etc/GMT-0|GMT-0","Etc/GMT-0|GMT0","Etc/GMT-0|Greenwich","Etc/UTC|Etc/UCT","Etc/UTC|Etc/Universal","Etc/UTC|Etc/Zulu","Etc/UTC|UCT","Etc/UTC|UTC","Etc/UTC|Universal","Etc/UTC|Zulu","Europe/Belgrade|Europe/Ljubljana","Europe/Belgrade|Europe/Podgorica","Europe/Belgrade|Europe/Sarajevo","Europe/Belgrade|Europe/Skopje","Europe/Belgrade|Europe/Zagreb","Europe/Chisinau|Europe/Tiraspol","Europe/Dublin|Eire","Europe/Helsinki|Europe/Mariehamn","Europe/Istanbul|Asia/Istanbul","Europe/Istanbul|Turkey","Europe/Lisbon|Portugal","Europe/London|Europe/Belfast","Europe/London|Europe/Guernsey","Europe/London|Europe/Isle_of_Man","Europe/London|Europe/Jersey","Europe/London|GB","Europe/London|GB-Eire","Europe/Moscow|W-SU","Europe/Oslo|Arctic/Longyearbyen","Europe/Oslo|Atlantic/Jan_Mayen","Europe/Prague|Europe/Bratislava","Europe/Rome|Europe/San_Marino","Europe/Rome|Europe/Vatican","Europe/Warsaw|Poland","Europe/Zurich|Europe/Busingen","Europe/Zurich|Europe/Vaduz","Indian/Christmas|Etc/GMT-7","Pacific/Auckland|Antarctica/McMurdo","Pacific/Auckland|Antarctica/South_Pole","Pacific/Auckland|NZ","Pacific/Chatham|NZ-CHAT","Pacific/Chuuk|Pacific/Truk","Pacific/Chuuk|Pacific/Yap","Pacific/Easter|Chile/EasterIsland","Pacific/Guam|Pacific/Saipan","Pacific/Honolulu|Pacific/Johnston","Pacific/Honolulu|US/Hawaii","Pacific/Kwajalein|Kwajalein","Pacific/Pago_Pago|Pacific/Midway","Pacific/Pago_Pago|Pacific/Samoa","Pacific/Pago_Pago|US/Samoa","Pacific/Palau|Etc/GMT-9","Pacific/Pohnpei|Pacific/Ponape","Pacific/Port_Moresby|Etc/GMT-10","Pacific/Tarawa|Etc/GMT-12","Pacific/Tarawa|Pacific/Funafuti","Pacific/Tarawa|Pacific/Wake","Pacific/Tarawa|Pacific/Wallis"]}' ); }, function(e, t, n) { 'use strict'; - var r = n(28).compose; + var r = n(41).compose; (t.__esModule = !0), (t.composeWithDevTools = 'undefined' != typeof window && @@ -224083,13 +226177,13 @@ object-assign function(e, t, n) { 'use strict'; var r = n(0), - o = n(4), - i = n(418), - a = n(419), - s = (n(420), n(809)), - c = n(19), + o = n(7), + i = n(447), + a = n(448), + s = (n(449), n(861)), + c = n(30), u = n(1), - l = n(421), + l = n(450), f = i({ displayName: 'Quill', mixins: [a], @@ -224358,12 +226452,13 @@ object-assign }, function(e, t, n) { 'use strict'; - var r = n(83), - o = n(802), - i = n(803); + var r = n(98), + o = n(854), + i = n(855), + a = 'mixins'; e.exports = function(e, t, n) { - var a = [], - s = { + var s = [], + c = { mixins: 'DEFINE_MANY', statics: 'DEFINE_MANY', propTypes: 'DEFINE_MANY', @@ -224385,13 +226480,13 @@ object-assign UNSAFE_componentWillUpdate: 'DEFINE_MANY', updateComponent: 'OVERRIDE_BASE' }, - c = { getDerivedStateFromProps: 'DEFINE_MANY_MERGED' }, - u = { + u = { getDerivedStateFromProps: 'DEFINE_MANY_MERGED' }, + l = { displayName: function(e, t) { e.displayName = t; }, mixins: function(e, t) { - if (t) for (var n = 0; n < t.length; n++) f(e, t[n]); + if (t) for (var n = 0; n < t.length; n++) d(e, t[n]); }, childContextTypes: function(e, t) { e.childContextTypes = r({}, e.childContextTypes, t); @@ -224401,7 +226496,7 @@ object-assign }, getDefaultProps: function(e, t) { e.getDefaultProps - ? (e.getDefaultProps = p(e.getDefaultProps, t)) + ? (e.getDefaultProps = h(e.getDefaultProps, t)) : (e.getDefaultProps = t); }, propTypes: function(e, t) { @@ -224415,20 +226510,20 @@ object-assign if (t.hasOwnProperty(n)) { if ( (i( - !(n in u), + !(n in l), 'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.', n ), n in e) ) { - var o = c.hasOwnProperty(n) ? c[n] : null; + var o = u.hasOwnProperty(n) ? u[n] : null; return ( i( 'DEFINE_MANY_MERGED' === o, 'ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.', n ), - void (e[n] = p(e[n], r)) + void (e[n] = h(e[n], r)) ); } e[n] = r; @@ -224438,9 +226533,9 @@ object-assign }, autobind: function() {} }; - function l(e, t) { - var n = s.hasOwnProperty(t) ? s[t] : null; - y.hasOwnProperty(t) && + function f(e, t) { + var n = c.hasOwnProperty(t) ? c[t] : null; + v.hasOwnProperty(t) && i( 'OVERRIDE_BASE' === n, 'ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.', @@ -224453,7 +226548,7 @@ object-assign t ); } - function f(e, n) { + function d(e, n) { if (n) { i( 'function' != typeof n, @@ -224465,33 +226560,32 @@ object-assign ); var r = e.prototype, o = r.__reactAutoBindPairs; - for (var a in (n.hasOwnProperty('mixins') && u.mixins(e, n.mixins), - n)) - if (n.hasOwnProperty(a) && 'mixins' !== a) { - var c = n[a], - f = r.hasOwnProperty(a); - if ((l(f, a), u.hasOwnProperty(a))) u[a](e, c); + for (var s in (n.hasOwnProperty(a) && l.mixins(e, n.mixins), n)) + if (n.hasOwnProperty(s) && s !== a) { + var u = n[s], + d = r.hasOwnProperty(s); + if ((f(d, s), l.hasOwnProperty(s))) l[s](e, u); else { - var d = s.hasOwnProperty(a); - if ('function' == typeof c && !d && !f && !1 !== n.autobind) - o.push(a, c), (r[a] = c); - else if (f) { - var g = s[a]; + var p = c.hasOwnProperty(s); + if ('function' == typeof u && !p && !d && !1 !== n.autobind) + o.push(s, u), (r[s] = u); + else if (d) { + var m = c[s]; i( - d && ('DEFINE_MANY_MERGED' === g || 'DEFINE_MANY' === g), + p && ('DEFINE_MANY_MERGED' === m || 'DEFINE_MANY' === m), 'ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.', - g, - a + m, + s ), - 'DEFINE_MANY_MERGED' === g - ? (r[a] = p(r[a], c)) - : 'DEFINE_MANY' === g && (r[a] = h(r[a], c)); - } else r[a] = c; + 'DEFINE_MANY_MERGED' === m + ? (r[s] = h(r[s], u)) + : 'DEFINE_MANY' === m && (r[s] = g(r[s], u)); + } else r[s] = u; } } } else; } - function d(e, t) { + function p(e, t) { for (var n in (i( e && t && 'object' == typeof e && 'object' == typeof t, 'mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.' @@ -224506,35 +226600,35 @@ object-assign (e[n] = t[n])); return e; } - function p(e, t) { + function h(e, t) { return function() { var n = e.apply(this, arguments), r = t.apply(this, arguments); if (null == n) return r; if (null == r) return n; var o = {}; - return d(o, n), d(o, r), o; + return p(o, n), p(o, r), o; }; } - function h(e, t) { + function g(e, t) { return function() { e.apply(this, arguments), t.apply(this, arguments); }; } - function g(e, t) { + function m(e, t) { return t.bind(e); } - var m = { + var b = { componentDidMount: function() { this.__isMounted = !0; } }, - b = { + y = { componentWillUnmount: function() { this.__isMounted = !1; } }, - y = { + v = { replaceState: function(e, t) { this.updater.enqueueReplaceState(this, e, t); }, @@ -224542,9 +226636,9 @@ object-assign return !!this.__isMounted; } }, - v = function() {}; + _ = function() {}; return ( - r(v.prototype, e.prototype, y), + r(_.prototype, e.prototype, v), function(e) { var t = function(e, r, a) { this.__reactAutoBindPairs.length && @@ -224556,7 +226650,7 @@ object-assign ) { var r = t[n], o = t[n + 1]; - e[r] = g(e, o); + e[r] = m(e, o); } })(this), (this.props = e), @@ -224572,19 +226666,19 @@ object-assign ), (this.state = s); }; - for (var r in ((t.prototype = new v()), + for (var r in ((t.prototype = new _()), (t.prototype.constructor = t), (t.prototype.__reactAutoBindPairs = []), - a.forEach(f.bind(null, t)), - f(t, m), - f(t, e), - f(t, b), + s.forEach(d.bind(null, t)), + d(t, b), + d(t, e), + d(t, y), t.getDefaultProps && (t.defaultProps = t.getDefaultProps()), i( t.prototype.render, 'createClass(...): Class specification must implement a `render` method.' ), - s)) + c)) t.prototype[r] || (t.prototype[r] = null); return t; } @@ -224597,30 +226691,31 @@ object-assign }, function(e, t, n) { 'use strict'; - e.exports = function(e, t, n, r, o, i, a, s) { - if (!e) { - var c; + var r = function(e) {}; + e.exports = function(e, t, n, o, i, a, s, c) { + if ((r(t), !e)) { + var u; if (void 0 === t) - c = new Error( + u = new Error( 'Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.' ); else { - var u = [n, r, o, i, a, s], - l = 0; - (c = new Error( + var l = [n, o, i, a, s, c], + f = 0; + (u = new Error( t.replace(/%s/g, function() { - return u[l++]; + return l[f++]; }) )).name = 'Invariant Violation'; } - throw ((c.framesToPop = 1), c); + throw ((u.framesToPop = 1), u); } }; }, function(e, t, n) { - var r = n(112), - o = n(45), - i = n(64); + var r = n(127), + o = n(58), + i = n(78); e.exports = function(e) { return function(t, n, a) { var s = Object(t); @@ -224637,9 +226732,9 @@ object-assign }; }, function(e, t, n) { - var r = n(806), - o = n(112), - i = n(807), + var r = n(858), + o = n(127), + i = n(859), a = Math.max; e.exports = function(e, t, n) { var s = null == e ? 0 : e.length; @@ -224656,7 +226751,7 @@ object-assign }; }, function(e, t, n) { - var r = n(808); + var r = n(860); e.exports = function(e) { var t = r(e), n = t % 1; @@ -224664,11 +226759,13 @@ object-assign }; }, function(e, t, n) { - var r = n(238); + var r = n(260), + o = 1 / 0, + i = 17976931348623157e292; e.exports = function(e) { return e - ? (e = r(e)) === 1 / 0 || e === -1 / 0 - ? 17976931348623157e292 * (e < 0 ? -1 : 1) + ? (e = r(e)) === o || e === -o + ? (e < 0 ? -1 : 1) * i : e == e ? e : 0 @@ -224678,18 +226775,18 @@ object-assign }; }, function(e, t, n) { - var r = n(206), - o = n(112), - i = n(810), - a = n(22), - s = n(198); + var r = n(228), + o = n(127), + i = n(862), + a = n(34), + s = n(219); e.exports = function(e, t, n) { var c = a(e) ? r : i; return n && s(e, t, n) && (t = void 0), c(e, o(t, 3)); }; }, function(e, t, n) { - var r = n(149); + var r = n(164); e.exports = function(e, t) { var n; return ( @@ -224703,12 +226800,12 @@ object-assign function(e, t, n) { 'use strict'; n(0); - var r = n(812), - o = n(418), - i = n(420), - a = n(19), + var r = n(864), + o = n(447), + i = n(449), + a = n(30), s = n(1), - c = n(421), + c = n(450), u = [ 'rgb( 0, 0, 0)', 'rgb(230, 0, 0)', @@ -224924,33 +227021,36 @@ object-assign }, function(e, t, n) { 'use strict'; - e.exports = n(813); + e.exports = n(865); }, function(e, t, n) { 'use strict'; - /** @license React v16.13.1 + /** @license React v16.9.0 * react-dom-server.browser.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */ var r = n(83), + */ var r = n(98), o = n(0); function i(e) { for ( - var t = 'https://reactjs.org/docs/error-decoder.html?invariant=' + e, - n = 1; - n < arguments.length; - n++ + var t = e.message, + n = 'https://reactjs.org/docs/error-decoder.html?invariant=' + t, + r = 1; + r < arguments.length; + r++ ) - t += '&args[]=' + encodeURIComponent(arguments[n]); + n += '&args[]=' + encodeURIComponent(arguments[r]); return ( - 'Minified React error #' + - e + - '; visit ' + - t + - ' for the full message or use the non-minified dev environment for full errors and additional helpful warnings.' + (e.message = + 'Minified React error #' + + t + + '; visit ' + + n + + ' for the full message or use the non-minified dev environment for full errors and additional helpful warnings. '), + e ); } var a = 'function' == typeof Symbol && Symbol.for, @@ -224966,10 +227066,8 @@ object-assign m = a ? Symbol.for('react.suspense_list') : 60120, b = a ? Symbol.for('react.memo') : 60115, y = a ? Symbol.for('react.lazy') : 60116, - v = a ? Symbol.for('react.block') : 60121, - _ = a ? Symbol.for('react.fundamental') : 60117, - x = a ? Symbol.for('react.scope') : 60119; - function w(e) { + v = a ? Symbol.for('react.fundamental') : 60117; + function _(e) { if (null == e) return null; if ('function' == typeof e) return e.displayName || e.name || null; if ('string' == typeof e) return e; @@ -225001,37 +227099,35 @@ object-assign ('' !== t ? 'ForwardRef(' + t + ')' : 'ForwardRef') ); case b: - return w(e.type); - case v: - return w(e.render); + return _(e.type); case y: - if ((e = 1 === e._status ? e._result : null)) return w(e); + if ((e = 1 === e._status ? e._result : null)) return _(e); } return null; } - var M = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; - M.hasOwnProperty('ReactCurrentDispatcher') || - (M.ReactCurrentDispatcher = { current: null }), - M.hasOwnProperty('ReactCurrentBatchConfig') || - (M.ReactCurrentBatchConfig = { suspense: null }); - var k = {}; - function S(e, t) { + var w = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + w.hasOwnProperty('ReactCurrentDispatcher') || + (w.ReactCurrentDispatcher = { current: null }), + w.hasOwnProperty('ReactCurrentBatchConfig') || + (w.ReactCurrentBatchConfig = { suspense: null }); + var x = {}; + function M(e, t) { for (var n = 0 | e._threadCount; n <= t; n++) (e[n] = e._currentValue2), (e._threadCount = n + 1); } - for (var A = new Uint16Array(16), O = 0; 15 > O; O++) A[O] = O + 1; - A[15] = 0; - var E = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, - T = Object.prototype.hasOwnProperty, - C = {}, - L = {}; - function P(e) { + for (var k = new Uint16Array(16), S = 0; 15 > S; S++) k[S] = S + 1; + k[15] = 0; + var O = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, + E = Object.prototype.hasOwnProperty, + A = {}, + T = {}; + function C(e) { return ( - !!T.call(L, e) || - (!T.call(C, e) && (E.test(e) ? (L[e] = !0) : ((C[e] = !0), !1))) + !!E.call(T, e) || + (!E.call(A, e) && (O.test(e) ? (T[e] = !0) : ((A[e] = !0), !1))) ); } - function D(e, t, n, r, o, i) { + function L(e, t, n, r, o, i) { (this.acceptsBooleans = 2 === t || 3 === t || 4 === t), (this.attributeName = r), (this.attributeNamespace = o), @@ -225040,11 +227136,11 @@ object-assign (this.type = t), (this.sanitizeURL = i); } - var z = {}; + var P = {}; 'children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style' .split(' ') .forEach(function(e) { - z[e] = new D(e, 0, !1, e, null, !1); + P[e] = new L(e, 0, !1, e, null, !1); }), [ ['acceptCharset', 'accept-charset'], @@ -225053,11 +227149,11 @@ object-assign ['httpEquiv', 'http-equiv'] ].forEach(function(e) { var t = e[0]; - z[t] = new D(t, 1, !1, e[1], null, !1); + P[t] = new L(t, 1, !1, e[1], null, !1); }), ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach( function(e) { - z[e] = new D(e, 2, !1, e.toLowerCase(), null, !1); + P[e] = new L(e, 2, !1, e.toLowerCase(), null, !1); } ), [ @@ -225066,49 +227162,49 @@ object-assign 'focusable', 'preserveAlpha' ].forEach(function(e) { - z[e] = new D(e, 2, !1, e, null, !1); + P[e] = new L(e, 2, !1, e, null, !1); }), 'allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope' .split(' ') .forEach(function(e) { - z[e] = new D(e, 3, !1, e.toLowerCase(), null, !1); + P[e] = new L(e, 3, !1, e.toLowerCase(), null, !1); }), ['checked', 'multiple', 'muted', 'selected'].forEach(function(e) { - z[e] = new D(e, 3, !0, e, null, !1); + P[e] = new L(e, 3, !0, e, null, !1); }), ['capture', 'download'].forEach(function(e) { - z[e] = new D(e, 4, !1, e, null, !1); + P[e] = new L(e, 4, !1, e, null, !1); }), ['cols', 'rows', 'size', 'span'].forEach(function(e) { - z[e] = new D(e, 6, !1, e, null, !1); + P[e] = new L(e, 6, !1, e, null, !1); }), ['rowSpan', 'start'].forEach(function(e) { - z[e] = new D(e, 5, !1, e.toLowerCase(), null, !1); + P[e] = new L(e, 5, !1, e.toLowerCase(), null, !1); }); - var N = /[\-:]([a-z])/g; + var D = /[\-:]([a-z])/g; function j(e) { return e[1].toUpperCase(); } 'accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height' .split(' ') .forEach(function(e) { - var t = e.replace(N, j); - z[t] = new D(t, 1, !1, e, null, !1); + var t = e.replace(D, j); + P[t] = new L(t, 1, !1, e, null, !1); }), 'xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type' .split(' ') .forEach(function(e) { - var t = e.replace(N, j); - z[t] = new D(t, 1, !1, e, 'http://www.w3.org/1999/xlink', !1); + var t = e.replace(D, j); + P[t] = new L(t, 1, !1, e, 'http://www.w3.org/1999/xlink', !1); }), ['xml:base', 'xml:lang', 'xml:space'].forEach(function(e) { - var t = e.replace(N, j); - z[t] = new D(t, 1, !1, e, 'http://www.w3.org/XML/1998/namespace', !1); + var t = e.replace(D, j); + P[t] = new L(t, 1, !1, e, 'http://www.w3.org/XML/1998/namespace', !1); }), ['tabIndex', 'crossOrigin'].forEach(function(e) { - z[e] = new D(e, 1, !1, e.toLowerCase(), null, !1); + P[e] = new L(e, 1, !1, e.toLowerCase(), null, !1); }), - (z.xlinkHref = new D( + (P.xlinkHref = new L( 'xlinkHref', 1, !1, @@ -225117,13 +227213,13 @@ object-assign !0 )), ['src', 'href', 'action', 'formAction'].forEach(function(e) { - z[e] = new D(e, 1, !1, e.toLowerCase(), null, !0); + P[e] = new L(e, 1, !1, e.toLowerCase(), null, !0); }); - var R = /["'&<>]/; - function I(e) { + var z = /["'&<>]/; + function N(e) { if ('boolean' == typeof e || 'number' == typeof e) return '' + e; e = '' + e; - var t = R.exec(e); + var t = z.exec(e); if (t) { var n, r = '', @@ -225154,9 +227250,9 @@ object-assign } return e; } - function F(e, t) { + function R(e, t) { var n, - r = z.hasOwnProperty(e) ? z[e] : null; + r = P.hasOwnProperty(e) ? P[e] : null; return ( (n = 'style' !== e) && (n = @@ -225208,171 +227304,160 @@ object-assign ? ((e = r.attributeName), 3 === (n = r.type) || (4 === n && !0 === t) ? e + '=""' - : (r.sanitizeURL && (t = '' + t), e + '="' + I(t) + '"')) - : P(e) - ? e + '="' + I(t) + '"' + : (r.sanitizeURL && (t = '' + t), e + '="' + N(t) + '"')) + : C(e) + ? e + '="' + N(t) + '"' : '' ); } - var q = - 'function' == typeof Object.is - ? Object.is - : function(e, t) { - return ( - (e === t && (0 !== e || 1 / e == 1 / t)) || (e != e && t != t) - ); - }, - B = null, - H = null, + var I = null, + F = null, + q = null, + B = !1, + H = !1, Y = null, - W = !1, - V = !1, - U = null, - X = 0; - function G() { - if (null === B) throw Error(i(321)); - return B; + W = 0; + function V() { + if (null === I) throw i(Error(321)); + return I; } - function K() { - if (0 < X) throw Error(i(312)); + function U() { + if (0 < W) throw i(Error(312)); return { memoizedState: null, queue: null, next: null }; } - function $() { + function X() { return ( - null === Y - ? null === H - ? ((W = !1), (H = Y = K())) - : ((W = !0), (Y = H)) - : null === Y.next - ? ((W = !1), (Y = Y.next = K())) - : ((W = !0), (Y = Y.next)), - Y + null === q + ? null === F + ? ((B = !1), (F = q = U())) + : ((B = !0), (q = F)) + : null === q.next + ? ((B = !1), (q = q.next = U())) + : ((B = !0), (q = q.next)), + q ); } - function Q(e, t, n, r) { - for (; V; ) (V = !1), (X += 1), (Y = null), (n = e(t, r)); - return (H = B = null), (X = 0), (Y = U = null), n; + function G(e, t, n, r) { + for (; H; ) (H = !1), (W += 1), (q = null), (n = e(t, r)); + return (F = I = null), (W = 0), (q = Y = null), n; } - function J(e, t) { + function K(e, t) { return 'function' == typeof t ? t(e) : t; } - function Z(e, t, n) { - if (((B = G()), (Y = $()), W)) { - var r = Y.queue; - if (((t = r.dispatch), null !== U && void 0 !== (n = U.get(r)))) { - U.delete(r), (r = Y.memoizedState); + function $(e, t, n) { + if (((I = V()), (q = X()), B)) { + var r = q.queue; + if (((t = r.dispatch), null !== Y && void 0 !== (n = Y.get(r)))) { + Y.delete(r), (r = q.memoizedState); do { (r = e(r, n.action)), (n = n.next); } while (null !== n); - return (Y.memoizedState = r), [r, t]; + return (q.memoizedState = r), [r, t]; } - return [Y.memoizedState, t]; + return [q.memoizedState, t]; } return ( (e = - e === J + e === K ? 'function' == typeof t ? t() : t : void 0 !== n ? n(t) : t), - (Y.memoizedState = e), - (e = (e = Y.queue = { - last: null, - dispatch: null - }).dispatch = ee.bind(null, B, e)), - [Y.memoizedState, e] + (q.memoizedState = e), + (e = (e = q.queue = { last: null, dispatch: null }).dispatch = Q.bind( + null, + I, + e + )), + [q.memoizedState, e] ); } - function ee(e, t, n) { - if (!(25 > X)) throw Error(i(301)); - if (e === B) + function Q(e, t, n) { + if (!(25 > W)) throw i(Error(301)); + if (e === I) if ( - ((V = !0), + ((H = !0), (e = { action: n, next: null }), - null === U && (U = new Map()), - void 0 === (n = U.get(t))) + null === Y && (Y = new Map()), + void 0 === (n = Y.get(t))) ) - U.set(t, e); + Y.set(t, e); else { for (t = n; null !== t.next; ) t = t.next; t.next = e; } } - function te() {} - var ne = 0, - re = { + function J() {} + var Z = 0, + ee = { readContext: function(e) { - var t = ne; - return S(e, t), e[t]; + var t = Z; + return M(e, t), e[t]; }, useContext: function(e) { - G(); - var t = ne; - return S(e, t), e[t]; + V(); + var t = Z; + return M(e, t), e[t]; }, useMemo: function(e, t) { if ( - ((B = G()), (t = void 0 === t ? null : t), null !== (Y = $())) + ((I = V()), (t = void 0 === t ? null : t), null !== (q = X())) ) { - var n = Y.memoizedState; + var n = q.memoizedState; if (null !== n && null !== t) { e: { var r = n[1]; if (null === r) r = !1; else { - for (var o = 0; o < r.length && o < t.length; o++) - if (!q(t[o], r[o])) { + for (var o = 0; o < r.length && o < t.length; o++) { + var i = t[o], + a = r[o]; + if ( + (i !== a || (0 === i && 1 / i != 1 / a)) && + (i == i || a == a) + ) { r = !1; break e; } + } r = !0; } } if (r) return n[0]; } } - return (e = e()), (Y.memoizedState = [e, t]), e; + return (e = e()), (q.memoizedState = [e, t]), e; }, - useReducer: Z, + useReducer: $, useRef: function(e) { - B = G(); - var t = (Y = $()).memoizedState; + I = V(); + var t = (q = X()).memoizedState; return null === t - ? ((e = { current: e }), (Y.memoizedState = e)) + ? ((e = { current: e }), (q.memoizedState = e)) : t; }, useState: function(e) { - return Z(J, e); + return $(K, e); }, useLayoutEffect: function() {}, useCallback: function(e) { return e; }, - useImperativeHandle: te, - useEffect: te, - useDebugValue: te, + useImperativeHandle: J, + useEffect: J, + useDebugValue: J, useResponder: function(e, t) { return { props: t, responder: e }; - }, - useDeferredValue: function(e) { - return G(), e; - }, - useTransition: function() { - return ( - G(), - [ - function(e) { - e(); - }, - !1 - ] - ); } }, - oe = 'http://www.w3.org/1999/xhtml'; - function ie(e) { + te = { + html: 'http://www.w3.org/1999/xhtml', + mathml: 'http://www.w3.org/1998/Math/MathML', + svg: 'http://www.w3.org/2000/svg' + }; + function ne(e) { switch (e) { case 'svg': return 'http://www.w3.org/2000/svg'; @@ -225382,7 +227467,7 @@ object-assign return 'http://www.w3.org/1999/xhtml'; } } - var ae = { + var re = { area: !0, base: !0, br: !0, @@ -225399,8 +227484,8 @@ object-assign track: !0, wbr: !0 }, - se = r({ menuitem: !0 }, ae), - ce = { + oe = r({ menuitem: !0 }, re), + ie = { animationIterationCount: !0, borderImageOutset: !0, borderImageSlice: !0, @@ -225444,40 +227529,40 @@ object-assign strokeOpacity: !0, strokeWidth: !0 }, - ue = ['Webkit', 'ms', 'Moz', 'O']; - Object.keys(ce).forEach(function(e) { - ue.forEach(function(t) { - (t = t + e.charAt(0).toUpperCase() + e.substring(1)), (ce[t] = ce[e]); + ae = ['Webkit', 'ms', 'Moz', 'O']; + Object.keys(ie).forEach(function(e) { + ae.forEach(function(t) { + (t = t + e.charAt(0).toUpperCase() + e.substring(1)), (ie[t] = ie[e]); }); }); - var le = /([A-Z])/g, - fe = /^ms-/, - de = o.Children.toArray, - pe = M.ReactCurrentDispatcher, - he = { listing: !0, pre: !0, textarea: !0 }, - ge = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, - me = {}, - be = {}; - var ye = Object.prototype.hasOwnProperty, - ve = { + var se = /([A-Z])/g, + ce = /^ms-/, + ue = o.Children.toArray, + le = w.ReactCurrentDispatcher, + fe = { listing: !0, pre: !0, textarea: !0 }, + de = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, + pe = {}, + he = {}; + var ge = Object.prototype.hasOwnProperty, + me = { children: null, dangerouslySetInnerHTML: null, suppressContentEditableWarning: null, suppressHydrationWarning: null }; - function _e(e, t) { - if (void 0 === e) throw Error(i(152, w(t) || 'Component')); + function be(e, t) { + if (void 0 === e) throw i(Error(152), _(t) || 'Component'); } - function xe(e, t, n) { + function ye(e, t, n) { function a(o, a) { var s = a.prototype && a.prototype.isReactComponent, c = (function(e, t, n, r) { - if (r && 'object' == typeof (r = e.contextType) && null !== r) - return S(r, n), r[n]; + if (r && ('object' == typeof (r = e.contextType) && null !== r)) + return M(r, n), r[n]; if ((e = e.contextTypes)) { for (var o in ((n = {}), e)) n[o] = t[o]; t = n; - } else t = k; + } else t = x; return t; })(a, t, n, s), u = [], @@ -225496,64 +227581,66 @@ object-assign if (null === u) return null; u.push(t); } - }; - if (s) { - if ( - ((s = new a(o.props, c, f)), - 'function' == typeof a.getDerivedStateFromProps) - ) { - var d = a.getDerivedStateFromProps.call(null, o.props, s.state); - null != d && (s.state = r({}, s.state, d)); - } - } else if ( - ((B = {}), - (s = a(o.props, c, f)), - null == (s = Q(a, o.props, s, c)) || null == s.render) + }, + d = void 0; + if (s) + (d = new a(o.props, c, f)), + 'function' == typeof a.getDerivedStateFromProps && + (null != + (s = a.getDerivedStateFromProps.call( + null, + o.props, + d.state + )) && + (d.state = r({}, d.state, s))); + else if ( + ((I = {}), + (d = a(o.props, c, f)), + null == (d = G(a, o.props, d, c)) || null == d.render) ) - return void _e((e = s), a); + return void be((e = d), a); if ( - ((s.props = o.props), - (s.context = c), - (s.updater = f), - void 0 === (f = s.state) && (s.state = f = null), - 'function' == typeof s.UNSAFE_componentWillMount || - 'function' == typeof s.componentWillMount) + ((d.props = o.props), + (d.context = c), + (d.updater = f), + void 0 === (f = d.state) && (d.state = f = null), + 'function' == typeof d.UNSAFE_componentWillMount || + 'function' == typeof d.componentWillMount) ) if ( - ('function' == typeof s.componentWillMount && + ('function' == typeof d.componentWillMount && 'function' != typeof a.getDerivedStateFromProps && - s.componentWillMount(), - 'function' == typeof s.UNSAFE_componentWillMount && + d.componentWillMount(), + 'function' == typeof d.UNSAFE_componentWillMount && 'function' != typeof a.getDerivedStateFromProps && - s.UNSAFE_componentWillMount(), + d.UNSAFE_componentWillMount(), u.length) ) { f = u; var p = l; - if (((u = null), (l = !1), p && 1 === f.length)) s.state = f[0]; + if (((u = null), (l = !1), p && 1 === f.length)) d.state = f[0]; else { - d = p ? f[0] : s.state; + s = p ? f[0] : d.state; var h = !0; for (p = p ? 1 : 0; p < f.length; p++) { var g = f[p]; null != (g = - 'function' == typeof g ? g.call(s, d, o.props, c) : g) && - (h ? ((h = !1), (d = r({}, d, g))) : r(d, g)); + 'function' == typeof g ? g.call(d, s, o.props, c) : g) && + (h ? ((h = !1), (s = r({}, s, g))) : r(s, g)); } - s.state = d; + d.state = s; } } else u = null; if ( - (_e((e = s.render()), a), - 'function' == typeof s.getChildContext && - 'object' == typeof (o = a.childContextTypes)) - ) { - var m = s.getChildContext(); - for (var b in m) - if (!(b in o)) throw Error(i(108, w(a) || 'Unknown', b)); - } - m && (t = r({}, t, m)); + (be((e = d.render()), a), + (o = void 0), + 'function' == typeof d.getChildContext && + 'object' == typeof (c = a.childContextTypes)) + ) + for (var m in (o = d.getChildContext())) + if (!(m in c)) throw i(Error(108), _(a) || 'Unknown', m); + o && (t = r({}, t, o)); } for (; o.isValidElement(e); ) { var s = e, @@ -225563,63 +227650,64 @@ object-assign } return { child: e, context: t }; } - var we = (function() { - function e(e, t) { - o.isValidElement(e) - ? e.type !== c - ? (e = [e]) - : ((e = e.props.children), - (e = o.isValidElement(e) ? [e] : de(e))) - : (e = de(e)), - (e = { + var ve = (function() { + function e(t, n) { + if (!(this instanceof e)) + throw new TypeError('Cannot call a class as a function'); + o.isValidElement(t) + ? t.type !== c + ? (t = [t]) + : ((t = t.props.children), + (t = o.isValidElement(t) ? [t] : ue(t))) + : (t = ue(t)), + (t = { type: null, - domNamespace: oe, - children: e, + domNamespace: te.html, + children: t, childIndex: 0, - context: k, + context: x, footer: '' }); - var n = A[0]; - if (0 === n) { - var r = A, - a = 2 * (n = r.length); - if (!(65536 >= a)) throw Error(i(304)); - var s = new Uint16Array(a); - for (s.set(r), (A = s)[0] = n + 1, r = n; r < a - 1; r++) - A[r] = r + 1; - A[a - 1] = 0; - } else A[0] = A[n]; - (this.threadID = n), - (this.stack = [e]), + var r = k[0]; + if (0 === r) { + var a = k, + s = 2 * (r = a.length); + if (!(65536 >= s)) throw i(Error(304)); + var u = new Uint16Array(s); + for (u.set(a), (k = u)[0] = r + 1, a = r; a < s - 1; a++) + k[a] = a + 1; + k[s - 1] = 0; + } else k[0] = k[r]; + (this.threadID = r), + (this.stack = [t]), (this.exhausted = !1), (this.currentSelectValue = null), (this.previousWasTextNode = !1), - (this.makeStaticMarkup = t), + (this.makeStaticMarkup = n), (this.suspenseDepth = 0), (this.contextIndex = -1), (this.contextStack = []), (this.contextValueStack = []); } - var t = e.prototype; return ( - (t.destroy = function() { + (e.prototype.destroy = function() { if (!this.exhausted) { (this.exhausted = !0), this.clearProviders(); var e = this.threadID; - (A[e] = A[0]), (A[0] = e); + (k[e] = k[0]), (k[0] = e); } }), - (t.pushProvider = function(e) { + (e.prototype.pushProvider = function(e) { var t = ++this.contextIndex, n = e.type._context, r = this.threadID; - S(n, r); + M(n, r); var o = n[r]; (this.contextStack[t] = n), (this.contextValueStack[t] = o), (n[r] = e.props.value); }), - (t.popProvider = function() { + (e.prototype.popProvider = function() { var e = this.contextIndex, t = this.contextStack[e], n = this.contextValueStack[e]; @@ -225628,22 +227716,22 @@ object-assign this.contextIndex--, (t[this.threadID] = n); }), - (t.clearProviders = function() { + (e.prototype.clearProviders = function() { for (var e = this.contextIndex; 0 <= e; e--) this.contextStack[e][this.threadID] = this.contextValueStack[e]; }), - (t.read = function(e) { + (e.prototype.read = function(e) { if (this.exhausted) return null; - var t = ne; - ne = this.threadID; - var n = pe.current; - pe.current = re; + var t = Z; + Z = this.threadID; + var n = le.current; + le.current = ee; try { for (var r = [''], o = !1; r[0].length < e; ) { if (0 === this.stack.length) { this.exhausted = !0; var a = this.threadID; - (A[a] = A[0]), (A[0] = a); + (k[a] = k[0]), (k[0] = a); break; } var s = this.stack[this.stack.length - 1]; @@ -225667,7 +227755,7 @@ object-assign if (o) { o = !1; var l = s.fallbackFrame; - if (!l) throw Error(i(303)); + if (!l) throw i(Error(303)); this.stack.push(l), (r[this.suspenseDepth] += '\x3c!--$!--\x3e'); continue; @@ -225681,8 +227769,6 @@ object-assign try { p += this.render(d, s.context, s.domNamespace); } catch (e) { - if (null != e && 'function' == typeof e.then) - throw Error(i(294)); throw e; } r.length <= this.suspenseDepth && r.push(''), @@ -225691,31 +227777,31 @@ object-assign } return r[0]; } finally { - (pe.current = n), (ne = t); + (le.current = n), (Z = t); } }), - (t.render = function(e, t, n) { + (e.prototype.render = function(e, t, n) { if ('string' == typeof e || 'number' == typeof e) return '' === (n = '' + e) ? '' : this.makeStaticMarkup - ? I(n) + ? N(n) : this.previousWasTextNode - ? '\x3c!-- --\x3e' + I(n) - : ((this.previousWasTextNode = !0), I(n)); + ? '\x3c!-- --\x3e' + N(n) + : ((this.previousWasTextNode = !0), N(n)); if ( - ((e = (t = xe(e, t, this.threadID)).child), + ((e = (t = ye(e, t, this.threadID)).child), (t = t.context), null === e || !1 === e) ) return ''; if (!o.isValidElement(e)) { if (null != e && null != e.$$typeof) { - if ((n = e.$$typeof) === s) throw Error(i(257)); - throw Error(i(258, n.toString())); + if ((n = e.$$typeof) === s) throw i(Error(257)); + throw i(Error(258), n.toString()); } return ( - (e = de(e)), + (e = ue(e)), this.stack.push({ type: null, domNamespace: n, @@ -225736,7 +227822,7 @@ object-assign case m: case c: return ( - (e = de(e.props.children)), + (e = ue(e.props.children)), this.stack.push({ type: null, domNamespace: n, @@ -225748,20 +227834,20 @@ object-assign '' ); case g: - throw Error(i(294)); + throw i(Error(294)); } if ('object' == typeof a && null !== a) switch (a.$$typeof) { case h: - B = {}; - var v = a.render(e.props, e.ref); + I = {}; + var _ = a.render(e.props, e.ref); return ( - (v = Q(a.render, e.props, v, e.ref)), - (v = de(v)), + (_ = G(a.render, e.props, _, e.ref)), + (_ = ue(_)), this.stack.push({ type: null, domNamespace: n, - children: v, + children: _, childIndex: 0, context: t, footer: '' @@ -225788,7 +227874,7 @@ object-assign (n = { type: e, domNamespace: n, - children: (a = de(e.props.children)), + children: (a = ue(e.props.children)), childIndex: 0, context: t, footer: '' @@ -225798,11 +227884,11 @@ object-assign '' ); case d: - (a = e.type), (v = e.props); + (a = e.type), (_ = e.props); var w = this.threadID; return ( - S(a, w), - (a = de(v.children(a[w]))), + M(a, w), + (a = ue(_.children(a[w]))), this.stack.push({ type: e, domNamespace: n, @@ -225813,65 +227899,18 @@ object-assign }), '' ); - case _: - throw Error(i(338)); + case v: + throw i(Error(338)); case y: - switch ( - ((function(e) { - if (-1 === e._status) { - e._status = 0; - var t = e._ctor; - (t = t()), - (e._result = t), - t.then( - function(t) { - 0 === e._status && - ((t = t.default), - (e._status = 1), - (e._result = t)); - }, - function(t) { - 0 === e._status && - ((e._status = 2), (e._result = t)); - } - ); - } - })((a = e.type)), - a._status) - ) { - case 1: - return ( - (e = [ - o.createElement( - a._result, - r({ ref: e.ref }, e.props) - ) - ]), - this.stack.push({ - type: null, - domNamespace: n, - children: e, - childIndex: 0, - context: t, - footer: '' - }), - '' - ); - case 2: - throw a._result; - default: - throw Error(i(295)); - } - case x: - throw Error(i(343)); + throw i(Error(295)); } - throw Error(i(130, null == a ? a : typeof a, '')); + throw i(Error(130), null == a ? a : typeof a, ''); }), - (t.renderDOM = function(e, t, n) { + (e.prototype.renderDOM = function(e, t, n) { var a = e.type.toLowerCase(); - if ((n === oe && ie(a), !me.hasOwnProperty(a))) { - if (!ge.test(a)) throw Error(i(65, a)); - me[a] = !0; + if ((n === te.html && ne(a), !pe.hasOwnProperty(a))) { + if (!de.test(a)) throw i(Error(65), a); + pe[a] = !0; } var s = e.props; if ('input' === a) @@ -225887,9 +227926,9 @@ object-assign c = s.defaultValue; var u = s.children; if (null != u) { - if (null != c) throw Error(i(92)); + if (null != c) throw i(Error(92)); if (Array.isArray(u)) { - if (!(1 >= u.length)) throw Error(i(93)); + if (!(1 >= u.length)) throw i(Error(93)); u = u[0]; } c = '' + u; @@ -225930,27 +227969,29 @@ object-assign } if ((c = s)) { if ( - se[a] && + oe[a] && (null != c.children || null != c.dangerouslySetInnerHTML) ) - throw Error(i(137, a, '')); + throw i(Error(137), a, ''); if (null != c.dangerouslySetInnerHTML) { - if (null != c.children) throw Error(i(60)); + if (null != c.children) throw i(Error(60)); if ( - 'object' != typeof c.dangerouslySetInnerHTML || - !('__html' in c.dangerouslySetInnerHTML) + !( + 'object' == typeof c.dangerouslySetInnerHTML && + '__html' in c.dangerouslySetInnerHTML + ) ) - throw Error(i(61)); + throw i(Error(61)); } if (null != c.style && 'object' != typeof c.style) - throw Error(i(62, '')); + throw i(Error(62), ''); } for (_ in ((c = s), (u = this.makeStaticMarkup), (l = 1 === this.stack.length), (f = '<' + e.type), c)) - if (ye.call(c, _)) { + if (ge.call(c, _)) { var p = c[_]; if (null != p) { if ('style' === _) { @@ -225963,13 +228004,13 @@ object-assign b = p[d]; if (null != b) { if (m) var y = d; - else if (((y = d), be.hasOwnProperty(y))) y = be[y]; + else if (((y = d), he.hasOwnProperty(y))) y = he[y]; else { var v = y - .replace(le, '-$1') + .replace(se, '-$1') .toLowerCase() - .replace(fe, '-ms-'); - y = be[y] = v; + .replace(ce, '-ms-'); + y = he[y] = v; } (h += g + y + ':'), (g = d), @@ -225979,7 +228020,7 @@ object-assign : m || 'number' != typeof b || 0 === b || - (ce.hasOwnProperty(g) && ce[g]) + (ie.hasOwnProperty(g) && ie[g]) ? ('' + b).trim() : b + 'px'), (g = ';'); @@ -226006,17 +228047,17 @@ object-assign m = !0; } m - ? ve.hasOwnProperty(_) || + ? me.hasOwnProperty(_) || (d = - P((d = _)) && null != p ? d + '="' + I(p) + '"' : '') - : (d = F(_, p)), + C((d = _)) && null != p ? d + '="' + N(p) + '"' : '') + : (d = R(_, p)), d && (f += ' ' + d); } } u || (l && (f += ' data-reactroot=""')); var _ = f; (c = ''), - ae.hasOwnProperty(a) + re.hasOwnProperty(a) ? (_ += '/>') : ((_ += '>'), (c = '')); e: { @@ -226029,7 +228070,7 @@ object-assign 'string' == typeof (u = s.children) || 'number' == typeof u ) { - u = I(u); + u = N(u); break e; } u = null; @@ -226037,13 +228078,13 @@ object-assign return ( null != u ? ((s = []), - he.hasOwnProperty(a) && '\n' === u.charAt(0) && (_ += '\n'), + fe[a] && '\n' === u.charAt(0) && (_ += '\n'), (_ += u)) - : (s = de(s.children)), + : (s = ue(s.children)), (e = e.type), (n = null == n || 'http://www.w3.org/1999/xhtml' === n - ? ie(e) + ? ne(e) : 'http://www.w3.org/2000/svg' === n && 'foreignObject' === e ? 'http://www.w3.org/1999/xhtml' @@ -226063,9 +228104,9 @@ object-assign e ); })(), - Me = { + _e = { renderToString: function(e) { - e = new we(e, !1); + e = new ve(e, !1); try { return e.read(1 / 0); } finally { @@ -226073,7 +228114,7 @@ object-assign } }, renderToStaticMarkup: function(e) { - e = new we(e, !0); + e = new ve(e, !0); try { return e.read(1 / 0); } finally { @@ -226081,36 +228122,38 @@ object-assign } }, renderToNodeStream: function() { - throw Error(i(207)); + throw i(Error(207)); }, renderToStaticNodeStream: function() { - throw Error(i(208)); + throw i(Error(208)); }, - version: '16.13.1' - }; - e.exports = Me.default || Me; + version: '16.9.0' + }, + we = { default: _e }, + xe = (we && _e) || we; + e.exports = xe.default || xe; }, function(e, t, n) { - var r = n(815); + var r = n(867); 'string' == typeof r && (r = [[e.i, r, '']]); var o = { hmr: !0, transform: void 0, insertInto: void 0 }; - n(57)(r, o); + n(69)(r, o); r.locals && (e.exports = r.locals); }, function(e, t, n) { - (e.exports = n(56)(!1)).push([ + (e.exports = n(68)(!1)).push([ e.i, - '/*!\n * Quill Editor v1.3.7\n * https://quilljs.com/\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor ol,.ql-editor p,.ql-editor pre,.ql-editor ul{margin:0;padding:0;counter-reset:a b c d e f g h i}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"\\2022"}.ql-editor ul[data-checked=false],.ql-editor ul[data-checked=true]{pointer-events:none}.ql-editor ul[data-checked=false]>li *,.ql-editor ul[data-checked=true]>li *{pointer-events:all}.ql-editor ul[data-checked=false]>li:before,.ql-editor ul[data-checked=true]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"\\2611"}.ql-editor ul[data-checked=false]>li:before{content:"\\2610"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl):before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl:before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-reset:a b c d e f g h i;counter-increment:j}.ql-editor ol li:before{content:counter(j,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:a}.ql-editor ol li.ql-indent-1:before{content:counter(a,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:b c d e f g h i}.ql-editor ol li.ql-indent-2{counter-increment:b}.ql-editor ol li.ql-indent-2:before{content:counter(b,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:c d e f g h i}.ql-editor ol li.ql-indent-3{counter-increment:c}.ql-editor ol li.ql-indent-3:before{content:counter(c,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:d e f g h i}.ql-editor ol li.ql-indent-4{counter-increment:d}.ql-editor ol li.ql-indent-4:before{content:counter(d,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:e f g h i}.ql-editor ol li.ql-indent-5{counter-increment:e}.ql-editor ol li.ql-indent-5:before{content:counter(e,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:f g h i}.ql-editor ol li.ql-indent-6{counter-increment:f}.ql-editor ol li.ql-indent-6:before{content:counter(f,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:g h i}.ql-editor ol li.ql-indent-7{counter-increment:g}.ql-editor ol li.ql-indent-7:before{content:counter(g,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:h i}.ql-editor ol li.ql-indent-8{counter-increment:h}.ql-editor ol li.ql-indent-8:before{content:counter(h,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:i}.ql-editor ol li.ql-indent-9{counter-increment:i}.ql-editor ol li.ql-indent-9:before{content:counter(i,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover{color:#06c}.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-stroke.ql-thin,.ql-snow .ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor pre{white-space:pre-wrap;margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-item:before,.ql-snow .ql-picker.ql-header .ql-picker-label:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-item:before,.ql-snow .ql-picker.ql-font .ql-picker-label:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-item:before,.ql-snow .ql-picker.ql-size .ql-picker-label:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:0 2px 8px rgba(0,0,0,.2)}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}', + '/*!\n * Quill Editor v1.3.0\n * https://quilljs.com/\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor ol,.ql-editor p,.ql-editor pre,.ql-editor ul{margin:0;padding:0;counter-reset:a b c d e f g h i}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"\\2022"}.ql-editor ul[data-checked=false],.ql-editor ul[data-checked=true]{pointer-events:none}.ql-editor ul[data-checked=false]>li *,.ql-editor ul[data-checked=true]>li *{pointer-events:all}.ql-editor ul[data-checked=false]>li:before,.ql-editor ul[data-checked=true]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"\\2611"}.ql-editor ul[data-checked=false]>li:before{content:"\\2610"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl):before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl:before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-reset:a b c d e f g h i;counter-increment:j}.ql-editor ol li:before{content:counter(j,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:a}.ql-editor ol li.ql-indent-1:before{content:counter(a,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:b c d e f g h i}.ql-editor ol li.ql-indent-2{counter-increment:b}.ql-editor ol li.ql-indent-2:before{content:counter(b,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:c d e f g h i}.ql-editor ol li.ql-indent-3{counter-increment:c}.ql-editor ol li.ql-indent-3:before{content:counter(c,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:d e f g h i}.ql-editor ol li.ql-indent-4{counter-increment:d}.ql-editor ol li.ql-indent-4:before{content:counter(d,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:e f g h i}.ql-editor ol li.ql-indent-5{counter-increment:e}.ql-editor ol li.ql-indent-5:before{content:counter(e,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:f g h i}.ql-editor ol li.ql-indent-6{counter-increment:f}.ql-editor ol li.ql-indent-6:before{content:counter(f,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:g h i}.ql-editor ol li.ql-indent-7{counter-increment:g}.ql-editor ol li.ql-indent-7:before{content:counter(g,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:h i}.ql-editor ol li.ql-indent-8{counter-increment:h}.ql-editor ol li.ql-indent-8:before{content:counter(h,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:i}.ql-editor ol li.ql-indent-9{counter-increment:i}.ql-editor ol li.ql-indent-9:before{content:counter(i,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor .ql-embed-selected{border:1px solid #777;user-select:none}.ql-editor.ql-blank:before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;pointer-events:none;position:absolute}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover{color:#06c}.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-stroke.ql-thin,.ql-snow .ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor pre{white-space:pre-wrap;margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding-bottom:2px;padding-top:2px}.ql-snow .ql-editor code:after,.ql-snow .ql-editor code:before{content:"\\A0";letter-spacing:-2px}.ql-snow .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-item:before,.ql-snow .ql-picker.ql-header .ql-picker-label:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-item:before,.ql-snow .ql-picker.ql-font .ql-picker-label:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-item:before,.ql-snow .ql-picker.ql-size .ql-picker-label:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:0 2px 8px rgba(0,0,0,.2)}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}', '' ]); }, function(e, t, n) { e.exports = { locale: 'en', - long: n(817), - short: n(818), - narrow: n(819), - quantify: n(820) + long: n(869), + short: n(870), + narrow: n(871), + quantify: n(872) }; }, function(e) { @@ -226161,43 +228204,152 @@ object-assign }, function(e, t, n) { 'use strict'; - n.r(t), - n.d(t, 'keenGlobals', function() { - return Vc; - }), - n.d(t, 'DashboardBuilder', function() { - return Uc; - }); - var r = n(39), + n.r(t); + var r = n(52), o = n.n(r), - i = n(12), + i = n(22), a = n.n(i), s = n(0), c = n.n(s), - u = n(4), + u = n(7), l = n.n(u), - f = n(31), - d = n(1), + f = n(39), + d = n(114), p = n.n(d), - h = n(6); - function g(e) { + h = n(1), + g = n.n(h), + m = n(454), + b = n.n(m), + y = 1073741823; + var v = + c.a.createContext || + function(e, t) { + var n, + r, + o = '__create-react-context-' + b()() + '__', + i = (function(e) { + function n() { + var t; + return ( + ((t = e.apply(this, arguments) || this).emitter = (function( + e + ) { + var t = []; + return { + on: function(e) { + t.push(e); + }, + off: function(e) { + t = t.filter(function(t) { + return t !== e; + }); + }, + get: function() { + return e; + }, + set: function(n, r) { + (e = n), + t.forEach(function(t) { + return t(e, r); + }); + } + }; + })(t.props.value)), + t + ); + } + p()(n, e); + var r = n.prototype; + return ( + (r.getChildContext = function() { + var e; + return ((e = {})[o] = this.emitter), e; + }), + (r.componentWillReceiveProps = function(e) { + if (this.props.value !== e.value) { + var n, + r = this.props.value, + o = e.value; + ((i = r) === (a = o) + ? 0 !== i || 1 / i == 1 / a + : i != i && a != a) + ? (n = 0) + : ((n = 'function' == typeof t ? t(r, o) : y), + 0 !== (n |= 0) && this.emitter.set(e.value, n)); + } + var i, a; + }), + (r.render = function() { + return this.props.children; + }), + n + ); + })(s.Component); + i.childContextTypes = (((n = {})[o] = g.a.object.isRequired), n); + var a = (function(t) { + function n() { + var e; + return ( + ((e = t.apply(this, arguments) || this).state = { + value: e.getValue() + }), + (e.onUpdate = function(t, n) { + 0 != ((0 | e.observedBits) & n) && + e.setState({ value: e.getValue() }); + }), + e + ); + } + p()(n, t); + var r = n.prototype; + return ( + (r.componentWillReceiveProps = function(e) { + var t = e.observedBits; + this.observedBits = null == t ? y : t; + }), + (r.componentDidMount = function() { + this.context[o] && this.context[o].on(this.onUpdate); + var e = this.props.observedBits; + this.observedBits = null == e ? y : e; + }), + (r.componentWillUnmount = function() { + this.context[o] && this.context[o].off(this.onUpdate); + }), + (r.getValue = function() { + return this.context[o] ? this.context[o].get() : e; + }), + (r.render = function() { + return ((e = this.props.children), + Array.isArray(e) ? e[0] : e)(this.state.value); + var e; + }), + n + ); + })(s.Component); + return ( + (a.contextTypes = (((r = {})[o] = g.a.object), r)), + { Provider: i, Consumer: a } + ); + }, + w = n(5); + function x(e) { return '/' === e.charAt(0); } - function m(e, t) { + function M(e, t) { for (var n = t, r = n + 1, o = e.length; r < o; n += 1, r += 1) e[n] = e[r]; e.pop(); } - var b = function(e, t) { + var k = function(e, t) { void 0 === t && (t = ''); var n, r = (e && e.split('/')) || [], o = (t && t.split('/')) || [], - i = e && g(e), - a = t && g(t), + i = e && x(e), + a = t && x(t), s = i || a; if ( - (e && g(e) ? (o = r) : r.length && (o.pop(), (o = o.concat(r))), + (e && x(e) ? (o = r) : r.length && (o.pop(), (o = o.concat(r))), !o.length) ) return '/'; @@ -226208,26 +228360,28 @@ object-assign for (var u = 0, l = o.length; l >= 0; l--) { var f = o[l]; '.' === f - ? m(o, l) + ? M(o, l) : '..' === f - ? (m(o, l), u++) - : u && (m(o, l), u--); + ? (M(o, l), u++) + : u && (M(o, l), u--); } if (!s) for (; u--; u) o.unshift('..'); - !s || '' === o[0] || (o[0] && g(o[0])) || o.unshift(''); + !s || '' === o[0] || (o[0] && x(o[0])) || o.unshift(''); var d = o.join('/'); return n && '/' !== d.substr(-1) && (d += '/'), d; }; - var y = function(e, t) { - if (!e) throw new Error('Invariant failed'); + var S = !0, + O = 'Invariant failed'; + var E = function(e, t) { + if (!e) throw S ? new Error(O) : new Error(O + ': ' + (t || '')); }; - function v(e) { + function A(e) { return '/' === e.charAt(0) ? e : '/' + e; } - function x(e) { + function T(e) { return '/' === e.charAt(0) ? e.substr(1) : e; } - function w(e, t) { + function C(e, t) { return (function(e, t) { return ( 0 === e.toLowerCase().indexOf(t.toLowerCase()) && @@ -226237,10 +228391,10 @@ object-assign ? e.substr(t.length) : e; } - function M(e) { + function L(e) { return '/' === e.charAt(e.length - 1) ? e.slice(0, -1) : e; } - function k(e) { + function P(e) { var t = e.pathname, n = e.search, r = e.hash, @@ -226251,7 +228405,7 @@ object-assign o ); } - function S(e, t, n, r) { + function D(e, t, n, r) { var o; 'string' == typeof e ? ((o = (function(e) { @@ -226270,7 +228424,7 @@ object-assign } ); })(e)).state = t) - : (void 0 === (o = Object(h.a)({}, e)).pathname && (o.pathname = ''), + : (void 0 === (o = Object(w.a)({}, e)).pathname && (o.pathname = ''), o.search ? '?' !== o.search.charAt(0) && (o.search = '?' + o.search) : (o.search = ''), @@ -226294,13 +228448,13 @@ object-assign r ? o.pathname ? '/' !== o.pathname.charAt(0) && - (o.pathname = b(o.pathname, r.pathname)) + (o.pathname = k(o.pathname, r.pathname)) : (o.pathname = r.pathname) : o.pathname || (o.pathname = '/'), o ); } - function A() { + function j() { var e = null; var t = []; return { @@ -226346,23 +228500,25 @@ object-assign } }; } - var O = !( + var z = !( 'undefined' == typeof window || !window.document || !window.document.createElement ); - function E(e, t) { + function N(e, t) { t(window.confirm(e)); } - function T() { + var R = 'popstate', + I = 'hashchange'; + function F() { try { return window.history.state || {}; } catch (e) { return {}; } } - function C(e) { - void 0 === e && {}, O || y(!1); + function q(e) { + void 0 === e && {}, z || E(!1); var t, n = window.history, r = @@ -226378,529 +228534,330 @@ object-assign a = i.forceRefresh, s = void 0 !== a && a, c = i.getUserConfirmation, - u = void 0 === c ? E : c, + u = void 0 === c ? N : c, l = i.keyLength, f = void 0 === l ? 6 : l, - d = e.basename ? M(v(e.basename)) : ''; + d = e.basename ? L(A(e.basename)) : ''; function p(e) { var t = e || {}, n = t.key, r = t.state, o = window.location, i = o.pathname + o.search + o.hash; - return d && w(i, d), S(i, r, n); + return d && C(i, d), D(i, r, n); } - function g() { + function h() { return Math.random() .toString(36) .substr(2, f); } - var m = A(); - function b(e) { - Object(h.a)(F, e), - (F.length = n.length), - m.notifyListeners(F.location, F.action); + var g = j(); + function m(e) { + Object(w.a)(B, e), + (B.length = n.length), + g.notifyListeners(B.location, B.action); } - function _(e) { + function b(e) { (function(e) { return ( void 0 === e.state && -1 === navigator.userAgent.indexOf('CriOS') ); - })(e) || L(p(e.state)); + })(e) || _(p(e.state)); } - function x() { - L(p(T())); + function y() { + _(p(F())); } - var C = !1; - function L(e) { - if (C) !1, b(); + var v = !1; + function _(e) { + if (v) !1, m(); else { - m.confirmTransitionTo(e, 'POP', u, function(t) { + g.confirmTransitionTo(e, 'POP', u, function(t) { t - ? b({ action: 'POP', location: e }) + ? m({ action: 'POP', location: e }) : (function(e) { - var t = F.location, - n = D.indexOf(t.key); + var t = B.location, + n = M.indexOf(t.key); -1 === n && 0; - var r = D.indexOf(e.key); + var r = M.indexOf(e.key); -1 === r && 0; var o = n - r; - o && (!0, N(o)); + o && (!0, S(o)); })(e); }); } } - var P = p(T()), - D = [P.key]; - function z(e) { - return d + k(e); + var x = p(F()), + M = [x.key]; + function k(e) { + return d + P(e); } - function N(e) { + function S(e) { n.go(e); } - var j = 0; - function R(e) { - 1 === (j += e) && 1 === e - ? (window.addEventListener('popstate', _), - o && window.addEventListener('hashchange', x)) - : 0 === j && - (window.removeEventListener('popstate', _), - o && window.removeEventListener('hashchange', x)); - } - var I = !1; - var F = { + var O = 0; + function T(e) { + 1 === (O += e) && 1 === e + ? (window.addEventListener(R, b), + o && window.addEventListener(I, y)) + : 0 === O && + (window.removeEventListener(R, b), + o && window.removeEventListener(I, y)); + } + var q = !1; + var B = { length: n.length, action: 'POP', - location: P, - createHref: z, + location: x, + createHref: k, push: function(e, t) { - var o = S(e, t, g(), F.location); - m.confirmTransitionTo(o, 'PUSH', u, function(e) { + var o = D(e, t, h(), B.location); + g.confirmTransitionTo(o, 'PUSH', u, function(e) { if (e) { - var t = z(o), + var t = k(o), i = o.key, a = o.state; if (r) if ((n.pushState({ key: i, state: a }, null, t), s)) window.location.href = t; else { - var c = D.indexOf(F.location.key), - u = D.slice(0, c + 1); - u.push(o.key), u, b({ action: 'PUSH', location: o }); + var c = M.indexOf(B.location.key), + u = M.slice(0, c + 1); + u.push(o.key), u, m({ action: 'PUSH', location: o }); } else window.location.href = t; } }); }, replace: function(e, t) { - var o = S(e, t, g(), F.location); - m.confirmTransitionTo(o, 'REPLACE', u, function(e) { + var o = D(e, t, h(), B.location); + g.confirmTransitionTo(o, 'REPLACE', u, function(e) { if (e) { - var t = z(o), + var t = k(o), i = o.key, a = o.state; if (r) if ((n.replaceState({ key: i, state: a }, null, t), s)) window.location.replace(t); else { - var c = D.indexOf(F.location.key); - -1 !== c && (D[c] = o.key), - b({ action: 'REPLACE', location: o }); + var c = M.indexOf(B.location.key); + -1 !== c && (M[c] = o.key), + m({ action: 'REPLACE', location: o }); } else window.location.replace(t); } }); }, - go: N, + go: S, goBack: function() { - N(-1); + S(-1); }, goForward: function() { - N(1); + S(1); }, block: function(e) { void 0 === e && !1; - var t = m.setPrompt(e); + var t = g.setPrompt(e); return ( - I || (R(1), !0), + q || (T(1), !0), function() { - return I && (!1, R(-1)), t(); + return q && (!1, T(-1)), t(); } ); }, listen: function(e) { - var t = m.appendListener(e); + var t = g.appendListener(e); return ( - R(1), + T(1), function() { - R(-1), t(); + T(-1), t(); } ); } }; - return F; + return B; } - var L = { - hashbang: { - encodePath: function(e) { - return '!' === e.charAt(0) ? e : '!/' + x(e); + var B = 'hashchange', + H = { + hashbang: { + encodePath: function(e) { + return '!' === e.charAt(0) ? e : '!/' + T(e); + }, + decodePath: function(e) { + return '!' === e.charAt(0) ? e.substr(1) : e; + } }, - decodePath: function(e) { - return '!' === e.charAt(0) ? e.substr(1) : e; - } - }, - noslash: { encodePath: x, decodePath: v }, - slash: { encodePath: v, decodePath: v } - }; - function P(e) { - var t = e.indexOf('#'); - return -1 === t ? e : e.slice(0, t); - } - function D() { + noslash: { encodePath: T, decodePath: A }, + slash: { encodePath: A, decodePath: A } + }; + function Y() { var e = window.location.href, t = e.indexOf('#'); return -1 === t ? '' : e.substring(t + 1); } - function z(e) { - window.location.replace(P(window.location.href) + '#' + e); + function W(e) { + var t = window.location.href.indexOf('#'); + window.location.replace( + window.location.href.slice(0, t >= 0 ? t : 0) + '#' + e + ); } - function N(e) { - void 0 === e && (e = {}), O || y(!1); + function V(e) { + void 0 === e && (e = {}), z || E(!1); var t = window.history, n = (window.navigator.userAgent.indexOf('Firefox'), e), r = n.getUserConfirmation, - o = void 0 === r ? E : r, + o = void 0 === r ? N : r, i = n.hashType, a = void 0 === i ? 'slash' : i, - s = e.basename ? M(v(e.basename)) : '', - c = L[a], + s = e.basename ? L(A(e.basename)) : '', + c = H[a], u = c.encodePath, l = c.decodePath; function f() { - var e = l(D()); - return s && (e = w(e, s)), S(e); + var e = l(Y()); + return s && (e = C(e, s)), D(e); } - var d = A(); + var d = j(); function p(e) { - Object(h.a)(F, e), - (F.length = t.length), - d.notifyListeners(F.location, F.action); + Object(w.a)(O, e), + (O.length = t.length), + d.notifyListeners(O.location, O.action); } - var g = !1, - m = null; - function b() { + var h = !1, + g = null; + function m() { var e, t, - n = D(), + n = Y(), r = u(n); - if (n !== r) z(r); + if (n !== r) W(r); else { var i = f(), - a = F.location; + a = O.location; if ( - !g && + !h && ((t = i), (e = a).pathname === t.pathname && e.search === t.search && e.hash === t.hash) ) return; - if (m === k(i)) return; - (m = null), + if (g === P(i)) return; + (g = null), (function(e) { - if (g) (g = !1), p(); + if (h) (h = !1), p(); else { d.confirmTransitionTo(e, 'POP', o, function(t) { t ? p({ action: 'POP', location: e }) : (function(e) { - var t = F.location, - n = C.lastIndexOf(k(t)); + var t = O.location, + n = _.lastIndexOf(P(t)); -1 === n && (n = 0); - var r = C.lastIndexOf(k(e)); + var r = _.lastIndexOf(P(e)); -1 === r && (r = 0); var o = n - r; - o && ((g = !0), N(o)); + o && ((h = !0), x(o)); })(e); }); } })(i); } } - var _ = D(), - x = u(_); - _ !== x && z(x); - var T = f(), - C = [k(T)]; - function N(e) { + var b = Y(), + y = u(b); + b !== y && W(y); + var v = f(), + _ = [P(v)]; + function x(e) { t.go(e); } - var j = 0; - function R(e) { - 1 === (j += e) && 1 === e - ? window.addEventListener('hashchange', b) - : 0 === j && window.removeEventListener('hashchange', b); + var M = 0; + function k(e) { + 1 === (M += e) && 1 === e + ? window.addEventListener(B, m) + : 0 === M && window.removeEventListener(B, m); } - var I = !1; - var F = { + var S = !1; + var O = { length: t.length, action: 'POP', - location: T, + location: v, createHref: function(e) { - var t = document.querySelector('base'), - n = ''; - return ( - t && t.getAttribute('href') && (n = P(window.location.href)), - n + '#' + u(s + k(e)) - ); + return '#' + u(s + P(e)); }, push: function(e, t) { - var n = S(e, void 0, void 0, F.location); + var n = D(e, void 0, void 0, O.location); d.confirmTransitionTo(n, 'PUSH', o, function(e) { if (e) { - var t = k(n), + var t = P(n), r = u(s + t); - if (D() !== r) { - (m = t), + if (Y() !== r) { + (g = t), (function(e) { window.location.hash = e; })(r); - var o = C.lastIndexOf(k(F.location)), - i = C.slice(0, o + 1); - i.push(t), (C = i), p({ action: 'PUSH', location: n }); + var o = _.lastIndexOf(P(O.location)), + i = _.slice(0, o + 1); + i.push(t), (_ = i), p({ action: 'PUSH', location: n }); } else p(); } }); }, replace: function(e, t) { - var n = S(e, void 0, void 0, F.location); + var n = D(e, void 0, void 0, O.location); d.confirmTransitionTo(n, 'REPLACE', o, function(e) { if (e) { - var t = k(n), + var t = P(n), r = u(s + t); - D() !== r && ((m = t), z(r)); - var o = C.indexOf(k(F.location)); - -1 !== o && (C[o] = t), p({ action: 'REPLACE', location: n }); + Y() !== r && ((g = t), W(r)); + var o = _.indexOf(P(O.location)); + -1 !== o && (_[o] = t), p({ action: 'REPLACE', location: n }); } }); }, - go: N, + go: x, goBack: function() { - N(-1); + x(-1); }, goForward: function() { - N(1); + x(1); }, block: function(e) { void 0 === e && (e = !1); var t = d.setPrompt(e); return ( - I || (R(1), (I = !0)), + S || (k(1), (S = !0)), function() { - return I && ((I = !1), R(-1)), t(); + return S && ((S = !1), k(-1)), t(); } ); }, listen: function(e) { var t = d.appendListener(e); return ( - R(1), + k(1), function() { - R(-1), t(); + k(-1), t(); } ); } }; - return F; + return O; } - function j(e, t, n) { + function U(e, t, n) { return Math.min(Math.max(e, t), n); } - function R(e) { - void 0 === e && {}; - var t = e, - n = t.getUserConfirmation, - r = t.initialEntries, - o = void 0 === r ? ['/'] : r, - i = t.initialIndex, - a = void 0 === i ? 0 : i, - s = t.keyLength, - c = void 0 === s ? 6 : s, - u = A(); - function l(e) { - Object(h.a)(b, e), - (b.length = b.entries.length), - u.notifyListeners(b.location, b.action); - } - function f() { - return Math.random() - .toString(36) - .substr(2, c); - } - var d = j(a, 0, o.length - 1), - p = o.map(function(e) { - return S(e, void 0, 'string' == typeof e ? f() : e.key || f()); - }), - g = k; - function m(e) { - var t = j(b.index + e, 0, b.entries.length - 1), - r = b.entries[t]; - u.confirmTransitionTo(r, 'POP', n, function(e) { - e ? l({ action: 'POP', location: r, index: t }) : l(); - }); - } - var b = { - length: p.length, - action: 'POP', - location: p[d], - index: d, - entries: p, - createHref: g, - push: function(e, t) { - var r = S(e, t, f(), b.location); - u.confirmTransitionTo(r, 'PUSH', n, function(e) { - if (e) { - var t = b.index + 1, - n = b.entries.slice(0); - n.length > t ? n.splice(t, n.length - t, r) : n.push(r), - l({ action: 'PUSH', location: r, index: t, entries: n }); - } - }); - }, - replace: function(e, t) { - var r = S(e, t, f(), b.location); - u.confirmTransitionTo(r, 'REPLACE', n, function(e) { - e && - ((b.entries[b.index] = r), - l({ action: 'REPLACE', location: r })); - }); - }, - go: m, - goBack: function() { - m(-1); - }, - goForward: function() { - m(1); - }, - canGo: function(e) { - var t = b.index + e; - return t >= 0 && t < b.entries.length; - }, - block: function(e) { - return void 0 === e && !1, u.setPrompt(e); - }, - listen: function(e) { - return u.appendListener(e); - } - }; - return b; - } - var I = n(99), - F = n.n(I), - q = n(426), - B = n.n(q); - function H(e) { - var t = []; - return { - on: function(e) { - t.push(e); - }, - off: function(e) { - t = t.filter(function(t) { - return t !== e; - }); - }, - get: function() { - return e; - }, - set: function(n, r) { - (e = n), - t.forEach(function(t) { - return t(e, r); - }); - } - }; - } - var Y = - c.a.createContext || - function(e, t) { - var n, - r, - o = '__create-react-context-' + B()() + '__', - i = (function(e) { - function n() { - var t; - return ( - ((t = e.apply(this, arguments) || this).emitter = H( - t.props.value - )), - t - ); - } - F()(n, e); - var r = n.prototype; - return ( - (r.getChildContext = function() { - var e; - return ((e = {})[o] = this.emitter), e; - }), - (r.componentWillReceiveProps = function(e) { - if (this.props.value !== e.value) { - var n, - r = this.props.value, - o = e.value; - ((i = r) === (a = o) - ? 0 !== i || 1 / i == 1 / a - : i != i && a != a) - ? (n = 0) - : ((n = 'function' == typeof t ? t(r, o) : 1073741823), - 0 !== (n |= 0) && this.emitter.set(e.value, n)); - } - var i, a; - }), - (r.render = function() { - return this.props.children; - }), - n - ); - })(s.Component); - i.childContextTypes = (((n = {})[o] = p.a.object.isRequired), n); - var a = (function(t) { - function n() { - var e; - return ( - ((e = t.apply(this, arguments) || this).state = { - value: e.getValue() - }), - (e.onUpdate = function(t, n) { - 0 != ((0 | e.observedBits) & n) && - e.setState({ value: e.getValue() }); - }), - e - ); - } - F()(n, t); - var r = n.prototype; - return ( - (r.componentWillReceiveProps = function(e) { - var t = e.observedBits; - this.observedBits = null == t ? 1073741823 : t; - }), - (r.componentDidMount = function() { - this.context[o] && this.context[o].on(this.onUpdate); - var e = this.props.observedBits; - this.observedBits = null == e ? 1073741823 : e; - }), - (r.componentWillUnmount = function() { - this.context[o] && this.context[o].off(this.onUpdate); - }), - (r.getValue = function() { - return this.context[o] ? this.context[o].get() : e; - }), - (r.render = function() { - return ((e = this.props.children), - Array.isArray(e) ? e[0] : e)(this.state.value); - var e; - }), - n - ); - })(s.Component); - return ( - (a.contextTypes = (((r = {})[o] = p.a.object), r)), - { Provider: i, Consumer: a } - ); - }, - W = n(177), - V = n.n(W), - U = n(78), - X = n(15), - G = n(44), - K = n.n(G), - $ = (function(e) { - var t = Y(); + var X = n(198), + G = n.n(X), + K = n(92), + $ = n(25), + Q = n(57), + J = n.n(Q), + Z = (function(e) { + var t = v(); return (t.displayName = e), t; })('Router'), - Q = (function(e) { + ee = (function(e) { function t(t) { var n; return ( @@ -226933,7 +228890,7 @@ object-assign this.unlisten && this.unlisten(); }), (n.render = function() { - return c.a.createElement($.Provider, { + return c.a.createElement(Z.Provider, { children: this.props.children || null, value: { history: this.props.history, @@ -226948,11 +228905,11 @@ object-assign })(c.a.Component); c.a.Component; c.a.Component; - var J = {}, - Z = 0; - function ee(e, t) { - void 0 === t && (t = {}), - ('string' == typeof t || Array.isArray(t)) && (t = { path: t }); + var te = {}, + ne = 1e4, + re = 0; + function oe(e, t) { + void 0 === t && (t = {}), 'string' == typeof t && (t = { path: t }); var n = t, r = n.path, o = n.exact, @@ -226962,15 +228919,15 @@ object-assign c = n.sensitive, u = void 0 !== c && c; return [].concat(r).reduce(function(t, n) { - if (!n && '' !== n) return null; + if (!n) return null; if (t) return t; var r = (function(e, t) { var n = '' + t.end + t.strict + t.sensitive, - r = J[n] || (J[n] = {}); + r = te[n] || (te[n] = {}); if (r[e]) return r[e]; var o = [], - i = { regexp: V()(e, o, t), keys: o }; - return Z < 1e4 && ((r[e] = i), Z++), i; + i = { regexp: G()(e, o, t), keys: o }; + return re < ne && ((r[e] = i), re++), i; })(n, { end: i, strict: s, sensitive: u }), o = r.regexp, a = r.keys, @@ -226991,7 +228948,7 @@ object-assign }; }, null); } - var te = (function(e) { + var ie = (function(e) { function t() { return e.apply(this, arguments) || this; } @@ -226999,87 +228956,85 @@ object-assign Object(f.a)(t, e), (t.prototype.render = function() { var e = this; - return c.a.createElement($.Consumer, null, function(t) { - t || y(!1); + return c.a.createElement(Z.Consumer, null, function(t) { + t || E(!1); var n = e.props.location || t.location, r = e.props.computedMatch ? e.props.computedMatch : e.props.path - ? ee(n.pathname, e.props) + ? oe(n.pathname, e.props) : t.match, - o = Object(h.a)({}, t, { location: n, match: r }), + o = Object(w.a)({}, t, { location: n, match: r }), i = e.props, a = i.children, s = i.component, u = i.render; - return ( - Array.isArray(a) && 0 === a.length && (a = null), - c.a.createElement( - $.Provider, - { value: o }, - o.match - ? a - ? 'function' == typeof a - ? a(o) - : a - : s - ? c.a.createElement(s, o) - : u - ? u(o) - : null - : 'function' == typeof a - ? a(o) + (Array.isArray(a) && 0 === a.length && (a = null), + 'function' == typeof a) && + (void 0 === (a = a(o)) && (a = null)); + return c.a.createElement( + Z.Provider, + { value: o }, + a && + !(function(e) { + return 0 === c.a.Children.count(e); + })(a) + ? a + : o.match + ? s + ? c.a.createElement(s, o) + : u + ? u(o) : null - ) + : null ); }); }), t ); })(c.a.Component); - function ne(e) { + function ae(e) { return '/' === e.charAt(0) ? e : '/' + e; } - function re(e, t) { + function se(e, t) { if (!e) return t; - var n = ne(e); + var n = ae(e); return 0 !== t.pathname.indexOf(n) ? t - : Object(h.a)({}, t, { pathname: t.pathname.substr(n.length) }); + : Object(w.a)({}, t, { pathname: t.pathname.substr(n.length) }); } - function oe(e) { - return 'string' == typeof e ? e : k(e); + function ce(e) { + return 'string' == typeof e ? e : P(e); } - function ie(e) { + function ue(e) { return function() { - y(!1); + E(!1); }; } - function ae() {} + function le() {} c.a.Component; c.a.Component; - function se(e) { + function fe(e) { var t = 'withRouter(' + (e.displayName || e.name) + ')', n = function(t) { var n = t.wrappedComponentRef, - r = Object(X.a)(t, ['wrappedComponentRef']); - return c.a.createElement($.Consumer, null, function(t) { + r = Object($.a)(t, ['wrappedComponentRef']); + return c.a.createElement(Z.Consumer, null, function(t) { return ( - t || y(!1), - c.a.createElement(e, Object(h.a)({}, r, t, { ref: n })) + t || E(!1), + c.a.createElement(e, Object(w.a)({}, r, t, { ref: n })) ); }); }; - return (n.displayName = t), (n.WrappedComponent = e), K()(n, e); + return (n.displayName = t), (n.WrappedComponent = e), J()(n, e); } - c.a.useContext; c.a.Component; - var ce = (function(e) { + var de = (function(e) { function t() { for (var t, n = arguments.length, r = new Array(n), o = 0; o < n; o++) r[o] = arguments[o]; return ( - ((t = e.call.apply(e, [this].concat(r)) || this).history = N( + ((t = e.call.apply(e, [this].concat(r)) || this).history = V( t.props )), t @@ -227088,7 +229043,7 @@ object-assign return ( Object(f.a)(t, e), (t.prototype.render = function() { - return c.a.createElement(Q, { + return c.a.createElement(ee, { history: this.history, children: this.props.children }); @@ -227096,182 +229051,69 @@ object-assign t ); })(c.a.Component); - var ue = function(e, t) { - return 'function' == typeof e ? e(t) : e; - }, - le = function(e, t) { - return 'string' == typeof e ? S(e, null, null, t) : e; - }, - fe = function(e) { - return e; - }, - de = c.a.forwardRef; - void 0 === de && (de = fe); - var pe = de(function(e, t) { - var n = e.innerRef, - r = e.navigate, - o = e.onClick, - i = Object(X.a)(e, ['innerRef', 'navigate', 'onClick']), - a = i.target, - s = Object(h.a)({}, i, { - onClick: function(e) { - try { - o && o(e); - } catch (t) { - throw (e.preventDefault(), t); - } - e.defaultPrevented || - 0 !== e.button || - (a && '_self' !== a) || - (function(e) { - return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey); - })(e) || - (e.preventDefault(), r()); + var pe = (function(e) { + function t() { + return e.apply(this, arguments) || this; + } + Object(f.a)(t, e); + var n = t.prototype; + return ( + (n.handleClick = function(e, t) { + try { + this.props.onClick && this.props.onClick(e); + } catch (t) { + throw (e.preventDefault(), t); } - }); - return (s.ref = (fe !== de && t) || n), c.a.createElement('a', s); - }); - var he = de(function(e, t) { - var n = e.component, - r = void 0 === n ? pe : n, - o = e.replace, - i = e.to, - a = e.innerRef, - s = Object(X.a)(e, ['component', 'replace', 'to', 'innerRef']); - return c.a.createElement($.Consumer, null, function(e) { - e || y(!1); - var n = e.history, - u = le(ue(i, e.location), e.location), - l = u ? n.createHref(u) : '', - f = Object(h.a)({}, s, { - href: l, - navigate: function() { - var t = ue(i, e.location); - (o ? n.replace : n.push)(t); - } - }); - return ( - fe !== de ? (f.ref = t || a) : (f.innerRef = a), - c.a.createElement(r, f) - ); - }); - }), - ge = function(e) { - return e; - }, - me = c.a.forwardRef; - void 0 === me && (me = ge); - me(function(e, t) { - var n = e['aria-current'], - r = void 0 === n ? 'page' : n, - o = e.activeClassName, - i = void 0 === o ? 'active' : o, - a = e.activeStyle, - s = e.className, - u = e.exact, - l = e.isActive, - f = e.location, - d = e.strict, - p = e.style, - g = e.to, - m = e.innerRef, - b = Object(X.a)(e, [ - 'aria-current', - 'activeClassName', - 'activeStyle', - 'className', - 'exact', - 'isActive', - 'location', - 'strict', - 'style', - 'to', - 'innerRef' - ]); - return c.a.createElement($.Consumer, null, function(e) { - e || y(!1); - var n = f || e.location, - o = le(ue(g, n), n), - v = o.pathname, - _ = v && v.replace(/([.+*?=^!:${}()[\]|/\\])/g, '\\$1'), - x = _ ? ee(n.pathname, { path: _, exact: u, strict: d }) : null, - w = !!(l ? l(x, n) : x), - M = w - ? (function() { - for ( - var e = arguments.length, t = new Array(e), n = 0; - n < e; - n++ - ) - t[n] = arguments[n]; - return t - .filter(function(e) { - return e; - }) - .join(' '); - })(s, i) - : s, - k = w ? Object(h.a)({}, p, {}, a) : p, - S = Object(h.a)( - { - 'aria-current': (w && r) || null, - className: M, - style: k, - to: o - }, - b - ); - return ( - ge !== me ? (S.ref = t || m) : (S.innerRef = m), - c.a.createElement(he, S) - ); - }); - }); - var be = n(28), - ye = c.a.createContext(null); - var ve = function(e) { + e.defaultPrevented || + 0 !== e.button || + (this.props.target && '_self' !== this.props.target) || + (function(e) { + return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey); + })(e) || + (e.preventDefault(), + (this.props.replace ? t.replace : t.push)(this.props.to)); + }), + (n.render = function() { + var e = this, + t = this.props, + n = t.innerRef, + r = (t.replace, t.to), + o = Object($.a)(t, ['innerRef', 'replace', 'to']); + return c.a.createElement(Z.Consumer, null, function(t) { + t || E(!1); + var i = 'string' == typeof r ? D(r, null, null, t.location) : r, + a = i ? t.history.createHref(i) : ''; + return c.a.createElement( + 'a', + Object(w.a)({}, o, { + onClick: function(n) { + return e.handleClick(n, t.history); + }, + href: a, + ref: n + }) + ); + }); + }), + t + ); + })(c.a.Component); + var he = n(41), + ge = c.a.createContext(null); + var me = function(e) { e(); }, - _e = { notify: function() {} }; - function xe() { - var e = ve, - t = null, - n = null; - return { - clear: function() { - (t = null), (n = null); - }, - notify: function() { - e(function() { - for (var e = t; e; ) e.callback(), (e = e.next); - }); - }, - get: function() { - for (var e = [], n = t; n; ) e.push(n), (n = n.next); - return e; - }, - subscribe: function(e) { - var r = !0, - o = (n = { callback: e, next: null, prev: n }); - return ( - o.prev ? (o.prev.next = o) : (t = o), - function() { - r && - null !== t && - ((r = !1), - o.next ? (o.next.prev = o.prev) : (n = o.prev), - o.prev ? (o.prev.next = o.next) : (t = o.next)); - } - ); - } - }; - } - var we = (function() { + be = function() { + return me; + }, + ye = null, + ve = { notify: function() {} }; + var _e = (function() { function e(e, t) { (this.store = e), (this.parentSub = t), (this.unsubscribe = null), - (this.listeners = _e), + (this.listeners = ve), (this.handleChangeWrapper = this.handleChangeWrapper.bind(this)); } var t = e.prototype; @@ -227289,115 +229131,118 @@ object-assign return Boolean(this.unsubscribe); }), (t.trySubscribe = function() { + var e, t, n; this.unsubscribe || ((this.unsubscribe = this.parentSub ? this.parentSub.addNestedSub(this.handleChangeWrapper) : this.store.subscribe(this.handleChangeWrapper)), - (this.listeners = xe())); + (this.listeners = + ((e = be()), + (t = []), + (n = []), + { + clear: function() { + (n = ye), (t = ye); + }, + notify: function() { + var r = (t = n); + e(function() { + for (var e = 0; e < r.length; e++) r[e](); + }); + }, + get: function() { + return n; + }, + subscribe: function(e) { + var r = !0; + return ( + n === t && (n = t.slice()), + n.push(e), + function() { + r && + t !== ye && + ((r = !1), + n === t && (n = t.slice()), + n.splice(n.indexOf(e), 1)); + } + ); + } + }))); }), (t.tryUnsubscribe = function() { this.unsubscribe && (this.unsubscribe(), (this.unsubscribe = null), this.listeners.clear(), - (this.listeners = _e)); + (this.listeners = ve)); }), e ); })(); - var Me = function(e) { - var t = e.store, - n = e.context, - r = e.children, - o = Object(s.useMemo)( - function() { - var e = new we(t); - return ( - (e.onStateChange = e.notifyNestedSubs), - { store: t, subscription: e } - ); - }, - [t] - ), - i = Object(s.useMemo)( - function() { - return t.getState(); - }, - [t] - ); - Object(s.useEffect)( + function we(e) { + var t = e.store, + n = e.context, + r = e.children, + o = Object(s.useMemo)( function() { - var e = o.subscription; + var e = new _e(t); return ( - e.trySubscribe(), - i !== t.getState() && e.notifyNestedSubs(), - function() { - e.tryUnsubscribe(), (e.onStateChange = null); - } + (e.onStateChange = e.notifyNestedSubs), + { store: t, subscription: e } ); }, - [o, i] + [t] + ), + i = Object(s.useMemo)( + function() { + return t.getState(); + }, + [t] ); - var a = n || ye; - return c.a.createElement(a.Provider, { value: o }, r); + Object(s.useEffect)( + function() { + var e = o.subscription; + return ( + e.trySubscribe(), + i !== t.getState() && e.notifyNestedSubs(), + function() { + e.tryUnsubscribe(), (e.onStateChange = null); + } + ); + }, + [o, i] + ); + var a = n || ge; + return c.a.createElement(a.Provider, { value: o }, r); + } + we.propTypes = { + store: g.a.shape({ + subscribe: g.a.func.isRequired, + dispatch: g.a.func.isRequired, + getState: g.a.func.isRequired + }), + context: g.a.object, + children: g.a.any + }; + var xe = we, + Me = n(38), + ke = n.n(Me), + Se = [], + Oe = [null, null]; + function Ee(e, t) { + var n = e[1]; + return [t.payload, n + 1]; + } + var Ae = function() { + return [null, 0]; }, - ke = + Te = 'undefined' != typeof window && void 0 !== window.document && void 0 !== window.document.createElement ? s.useLayoutEffect - : s.useEffect, - Se = [], - Ae = [null, null]; - function Oe(e, t) { - var n = e[1]; - return [t.payload, n + 1]; - } - function Ee(e, t, n) { - ke(function() { - return e.apply(void 0, t); - }, n); - } - function Te(e, t, n, r, o, i, a) { - (e.current = r), - (t.current = o), - (n.current = !1), - i.current && ((i.current = null), a()); - } - function Ce(e, t, n, r, o, i, a, s, c, u) { - if (e) { - var l = !1, - f = null, - d = function() { - if (!l) { - var e, - n, - d = t.getState(); - try { - e = r(d, o.current); - } catch (e) { - (n = e), (f = e); - } - n || (f = null), - e === i.current - ? a.current || c() - : ((i.current = e), - (s.current = e), - (a.current = !0), - u({ type: 'STORE_UPDATED', payload: { error: n } })); - } - }; - (n.onStateChange = d), n.trySubscribe(), d(); - return function() { - if (((l = !0), n.tryUnsubscribe(), (n.onStateChange = null), f)) - throw f; - }; - } - } - var Le = function() { - return [null, 0]; - }; - function Pe(e, t) { + : s.useEffect; + function Ce(e, t) { void 0 === t && (t = {}); var n = t, r = n.getDisplayName, @@ -227414,12 +229259,14 @@ object-assign f = n.shouldHandleStateChanges, d = void 0 === f || f, p = n.storeKey, - g = void 0 === p ? 'store' : p, - m = (n.withRef, n.forwardRef), - b = void 0 !== m && m, - y = n.context, - v = void 0 === y ? ye : y, - _ = Object(X.a)(n, [ + h = void 0 === p ? 'store' : p, + g = n.withRef, + m = void 0 !== g && g, + b = n.forwardRef, + y = void 0 !== b && b, + v = n.context, + _ = void 0 === v ? ge : v, + x = Object($.a)(n, [ 'getDisplayName', 'methodName', 'renderCountProp', @@ -227428,134 +229275,197 @@ object-assign 'withRef', 'forwardRef', 'context' - ]), - x = v; + ]); + ke()( + void 0 === l, + 'renderCountProp is removed. render counting is built into the latest React Dev Tools profiling extension' + ), + ke()( + !m, + 'withRef is removed. To access the wrapped instance, use a ref on the connected component' + ); + ke()( + 'store' === h, + "storeKey has been removed and does not do anything. To use a custom Redux store for specific components, create a custom React context with React.createContext(), and pass the context object to React Redux's Provider and specific components like: . You may also pass a {context : MyContext} option to connect" + ); + var M = _; return function(t) { var n = t.displayName || t.name || 'Component', r = o(n), - i = Object(h.a)({}, _, { + i = Object(w.a)({}, x, { getDisplayName: o, methodName: a, renderCountProp: l, shouldHandleStateChanges: d, - storeKey: g, + storeKey: h, displayName: r, wrappedComponentName: n, WrappedComponent: t }), - u = _.pure; + u = x.pure; var f = u ? s.useMemo : function(e) { return e(); }; function p(n) { - var r = Object(s.useMemo)( + var o = Object(s.useMemo)( function() { var e = n.forwardedRef, - t = Object(X.a)(n, ['forwardedRef']); + t = Object($.a)(n, ['forwardedRef']); return [n.context, e, t]; }, [n] ), - o = r[0], - a = r[1], - u = r[2], - l = Object(s.useMemo)( + a = o[0], + u = o[1], + l = o[2], + p = Object(s.useMemo)( function() { - return o && - o.Consumer && - Object(U.isContextConsumer)( - c.a.createElement(o.Consumer, null) + return a && + a.Consumer && + Object(K.isContextConsumer)( + c.a.createElement(a.Consumer, null) ) - ? o - : x; + ? a + : M; }, - [o, x] + [a, M] ), - p = Object(s.useContext)(l), - g = - Boolean(n.store) && - Boolean(n.store.getState) && - Boolean(n.store.dispatch); - Boolean(p) && Boolean(p.store); - var m = g ? n.store : p.store, - b = Object(s.useMemo)( + h = Object(s.useContext)(p), + g = Boolean(n.store), + m = Boolean(h) && Boolean(h.store); + ke()( + g || m, + 'Could not find "store" in the context of "' + + r + + '". Either wrap the root component in a , or pass a custom React context provider to and the corresponding React context consumer to ' + + r + + ' in connect options.' + ); + var b = n.store || h.store, + y = Object(s.useMemo)( function() { return (function(t) { return e(t.dispatch, i); - })(m); + })(b); }, - [m] + [b] ), - y = Object(s.useMemo)( + v = Object(s.useMemo)( function() { - if (!d) return Ae; - var e = new we(m, g ? null : p.subscription), + if (!d) return Oe; + var e = new _e(b, g ? null : h.subscription), t = e.notifyNestedSubs.bind(e); return [e, t]; }, - [m, g, p] + [b, g, h] ), - v = y[0], - _ = y[1], - w = Object(s.useMemo)( + _ = v[0], + x = v[1], + k = Object(s.useMemo)( function() { - return g ? p : Object(h.a)({}, p, { subscription: v }); + return g ? h : Object(w.a)({}, h, { subscription: _ }); }, - [g, p, v] + [g, h, _] ), - M = Object(s.useReducer)(Oe, Se, Le), - k = M[0][0], - S = M[1]; - if (k && k.error) throw k.error; + S = Object(s.useReducer)(Ee, Se, Ae), + O = S[0][0], + E = S[1]; + if (O && O.error) throw O.error; var A = Object(s.useRef)(), - O = Object(s.useRef)(u), - E = Object(s.useRef)(), - T = Object(s.useRef)(!1), - C = f( + T = Object(s.useRef)(l), + C = Object(s.useRef)(), + L = Object(s.useRef)(!1), + P = f( function() { - return E.current && u === O.current - ? E.current - : b(m.getState(), u); + return C.current && l === T.current + ? C.current + : y(b.getState(), l); + }, + [b, O, l] + ); + Te(function() { + (T.current = l), + (A.current = P), + (L.current = !1), + C.current && ((C.current = null), x()); + }), + Te( + function() { + if (d) { + var e = !1, + t = null, + n = function() { + if (!e) { + var n, + r, + o = b.getState(); + try { + n = y(o, T.current); + } catch (e) { + (r = e), (t = e); + } + r || (t = null), + n === A.current + ? L.current || x() + : ((A.current = n), + (C.current = n), + (L.current = !0), + E({ + type: 'STORE_UPDATED', + payload: { latestStoreState: o, error: r } + })); + } + }; + (_.onStateChange = n), _.trySubscribe(), n(); + return function() { + if ( + ((e = !0), + _.tryUnsubscribe(), + (_.onStateChange = null), + t) + ) + throw t; + }; + } }, - [m, k, u] + [b, _, y] ); - Ee(Te, [O, A, T, u, C, E, _]), - Ee(Ce, [d, m, v, b, O, A, T, E, _, S], [m, v, b]); - var L = Object(s.useMemo)( + var D = Object(s.useMemo)( function() { - return c.a.createElement(t, Object(h.a)({}, C, { ref: a })); + return c.a.createElement(t, Object(w.a)({}, P, { ref: u })); }, - [a, t, C] + [u, t, P] ); return Object(s.useMemo)( function() { - return d ? c.a.createElement(l.Provider, { value: w }, L) : L; + return d ? c.a.createElement(p.Provider, { value: k }, D) : D; }, - [l, L, w] + [p, D, k] ); } - var m = u ? c.a.memo(p) : p; - if (((m.WrappedComponent = t), (m.displayName = r), b)) { - var y = c.a.forwardRef(function(e, t) { + var g = u ? c.a.memo(p) : p; + if (((g.WrappedComponent = t), (g.displayName = r), y)) { + var m = c.a.forwardRef(function(e, t) { return c.a.createElement( - m, - Object(h.a)({}, e, { forwardedRef: t }) + g, + Object(w.a)({}, e, { forwardedRef: t }) ); }); - return (y.displayName = r), (y.WrappedComponent = t), K()(y, t); + return (m.displayName = r), (m.WrappedComponent = t), J()(m, t); } - return K()(m, t); + return J()(g, t); }; } - function De(e, t) { + var Le = Object.prototype.hasOwnProperty; + function Pe(e, t) { return e === t ? 0 !== e || 0 !== t || 1 / e == 1 / t : e != e && t != t; } - function ze(e, t) { - if (De(e, t)) return !0; + function De(e, t) { + if (Pe(e, t)) return !0; if ( 'object' != typeof e || null === e || @@ -227567,14 +229477,10 @@ object-assign r = Object.keys(t); if (n.length !== r.length) return !1; for (var o = 0; o < n.length; o++) - if ( - !Object.prototype.hasOwnProperty.call(t, n[o]) || - !De(e[n[o]], t[n[o]]) - ) - return !1; + if (!Le.call(t, n[o]) || !Pe(e[n[o]], t[n[o]])) return !1; return !0; } - function Ne(e) { + function je(e) { return function(t, n) { var r = e(t, n); function o() { @@ -227583,12 +229489,12 @@ object-assign return (o.dependsOnOwnProps = !1), o; }; } - function je(e) { + function ze(e) { return null !== e.dependsOnOwnProps && void 0 !== e.dependsOnOwnProps ? Boolean(e.dependsOnOwnProps) : 1 !== e.length; } - function Re(e, t) { + function Ne(e, t) { return function(t, n) { n.displayName; var r = function(e, t) { @@ -227597,12 +229503,12 @@ object-assign return ( (r.dependsOnOwnProps = !0), (r.mapToProps = function(t, n) { - (r.mapToProps = e), (r.dependsOnOwnProps = je(e)); + (r.mapToProps = e), (r.dependsOnOwnProps = ze(e)); var o = r(t, n); return ( 'function' == typeof o && ((r.mapToProps = o), - (r.dependsOnOwnProps = je(o)), + (r.dependsOnOwnProps = ze(o)), (o = r(t, n))), o ); @@ -227611,41 +229517,41 @@ object-assign ); }; } - var Ie = [ + var Re = [ function(e) { - return 'function' == typeof e ? Re(e) : void 0; + return 'function' == typeof e ? Ne(e) : void 0; }, function(e) { return e ? void 0 - : Ne(function(e) { + : je(function(e) { return { dispatch: e }; }); }, function(e) { return e && 'object' == typeof e - ? Ne(function(t) { - return Object(be.bindActionCreators)(e, t); + ? je(function(t) { + return Object(he.bindActionCreators)(e, t); }) : void 0; } ]; - var Fe = [ + var Ie = [ function(e) { - return 'function' == typeof e ? Re(e) : void 0; + return 'function' == typeof e ? Ne(e) : void 0; }, function(e) { return e ? void 0 - : Ne(function() { + : je(function() { return {}; }); } ]; - function qe(e, t, n) { - return Object(h.a)({}, n, {}, e, {}, t); + function Fe(e, t, n) { + return Object(w.a)({}, n, {}, e, {}, t); } - var Be = [ + var qe = [ function(e) { return 'function' == typeof e ? (function(e) { @@ -227669,16 +229575,16 @@ object-assign return e ? void 0 : function() { - return qe; + return Fe; }; } ]; - function He(e, t, n, r) { + function Be(e, t, n, r) { return function(o, i) { return n(e(o, i), t(r, i), i); }; } - function Ye(e, t, n, r, o) { + function He(e, t, n, r, o) { var i, a, s, @@ -227723,11 +229629,11 @@ object-assign u); }; } - function We(e, t) { + function Ye(e, t) { var n = t.initMapStateToProps, r = t.initMapDispatchToProps, o = t.initMergeProps, - i = Object(X.a)(t, [ + i = Object($.a)(t, [ 'initMapStateToProps', 'initMapDispatchToProps', 'initMergeProps' @@ -227735,9 +229641,9 @@ object-assign a = n(e, i), s = r(e, i), c = o(e, i); - return (i.pure ? Ye : He)(a, s, c, e, i); + return (i.pure ? He : Be)(a, s, c, e, i); } - function Ve(e, t, n) { + function We(e, t, n) { for (var r = t.length - 1; r >= 0; r--) { var o = t[r](e); if (o) return o; @@ -227754,70 +229660,119 @@ object-assign ); }; } - function Ue(e, t) { + function Ve(e, t) { return e === t; } - function Xe(e) { - var t = void 0 === e ? {} : e, - n = t.connectHOC, - r = void 0 === n ? Pe : n, - o = t.mapStateToPropsFactories, - i = void 0 === o ? Fe : o, - a = t.mapDispatchToPropsFactories, - s = void 0 === a ? Ie : a, - c = t.mergePropsFactories, - u = void 0 === c ? Be : c, - l = t.selectorFactory, - f = void 0 === l ? We : l; - return function(e, t, n, o) { - void 0 === o && (o = {}); - var a = o, - c = a.pure, - l = void 0 === c || c, - d = a.areStatesEqual, - p = void 0 === d ? Ue : d, - g = a.areOwnPropsEqual, - m = void 0 === g ? ze : g, - b = a.areStatePropsEqual, - y = void 0 === b ? ze : b, - v = a.areMergedPropsEqual, - _ = void 0 === v ? ze : v, - x = Object(X.a)(a, [ - 'pure', - 'areStatesEqual', - 'areOwnPropsEqual', - 'areStatePropsEqual', - 'areMergedPropsEqual' - ]), - w = Ve(e, i, 'mapStateToProps'), - M = Ve(t, s, 'mapDispatchToProps'), - k = Ve(n, u, 'mergeProps'); - return r( - f, - Object(h.a)( - { - methodName: 'connect', - getDisplayName: function(e) { - return 'Connect(' + e + ')'; - }, - shouldHandleStateChanges: Boolean(e), - initMapStateToProps: w, - initMapDispatchToProps: M, - initMergeProps: k, - pure: l, - areStatesEqual: p, - areOwnPropsEqual: m, - areStatePropsEqual: y, - areMergedPropsEqual: _ - }, - x - ) - ); + var Ue, + Xe, + Ge, + Ke, + $e, + Qe, + Je, + Ze, + et, + tt, + nt, + rt, + ot = + ((Ge = (Xe = void 0 === Ue ? {} : Ue).connectHOC), + (Ke = void 0 === Ge ? Ce : Ge), + ($e = Xe.mapStateToPropsFactories), + (Qe = void 0 === $e ? Ie : $e), + (Je = Xe.mapDispatchToPropsFactories), + (Ze = void 0 === Je ? Re : Je), + (et = Xe.mergePropsFactories), + (tt = void 0 === et ? qe : et), + (nt = Xe.selectorFactory), + (rt = void 0 === nt ? Ye : nt), + function(e, t, n, r) { + void 0 === r && (r = {}); + var o = r, + i = o.pure, + a = void 0 === i || i, + s = o.areStatesEqual, + c = void 0 === s ? Ve : s, + u = o.areOwnPropsEqual, + l = void 0 === u ? De : u, + f = o.areStatePropsEqual, + d = void 0 === f ? De : f, + p = o.areMergedPropsEqual, + h = void 0 === p ? De : p, + g = Object($.a)(o, [ + 'pure', + 'areStatesEqual', + 'areOwnPropsEqual', + 'areStatePropsEqual', + 'areMergedPropsEqual' + ]), + m = We(e, Qe, 'mapStateToProps'), + b = We(t, Ze, 'mapDispatchToProps'), + y = We(n, tt, 'mergeProps'); + return Ke( + rt, + Object(w.a)( + { + methodName: 'connect', + getDisplayName: function(e) { + return 'Connect(' + e + ')'; + }, + shouldHandleStateChanges: Boolean(e), + initMapStateToProps: m, + initMapDispatchToProps: b, + initMergeProps: y, + pure: a, + areStatesEqual: c, + areOwnPropsEqual: l, + areStatePropsEqual: d, + areMergedPropsEqual: h + }, + g + ) + ); + }); + function it() { + var e = Object(s.useContext)(ge); + return ( + ke()( + e, + 'could not find react-redux context value; please ensure the component is wrapped in a ' + ), + e + ); + } + function at(e) { + void 0 === e && (e = ge); + var t = + e === ge + ? it + : function() { + return Object(s.useContext)(e); + }; + return function() { + return t().store; }; } - var Ge = Xe(); - var Ke; - function $e(e) { + var st = at(); + !(function(e) { + void 0 === e && (e = ge); + var t = e === ge ? st : at(e); + })(); + var ct = 'undefined' != typeof window ? s.useLayoutEffect : s.useEffect, + ut = function(e, t) { + return e === t; + }; + var lt; + !(function(e) { + void 0 === e && (e = ge); + var t = + e === ge + ? it + : function() { + return Object(s.useContext)(e); + }; + })(); + function ft(e) { return function(t) { var n = t.dispatch, r = t.getState; @@ -227828,17 +229783,17 @@ object-assign }; }; } - (Ke = u.unstable_batchedUpdates), (ve = Ke); - var Qe = $e(); - Qe.withExtraArgument = $e; - var Je = Qe, - Ze = n(174), - et = n.n(Ze), - tt = n(25), - nt = n.n(tt), - rt = n(14), - ot = n.n(rt), - it = function(e, t) { + (lt = u.unstable_batchedUpdates), (me = lt); + var dt = ft(); + dt.withExtraArgument = ft; + var pt = dt, + ht = n(192), + gt = n.n(ht), + mt = n(37), + bt = n.n(mt), + yt = n(23), + vt = n.n(yt), + _t = function(e, t) { switch (e) { case 'az': return t.sort(function(e, t) { @@ -227878,7 +229833,7 @@ object-assign }); } }, - at = { + wt = { id: 1, title: 'My great dashboard', last_modified_date: 'Mon, 02 Dec 2019 15:16:38 GMT', @@ -227930,1551 +229885,16 @@ object-assign } ] } - }; - function st(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - function ct(e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e - ); - } - function ut() { - return (ut = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - function lt(e, t) { - var n = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var r = Object.getOwnPropertySymbols(e); - t && - (r = r.filter(function(t) { - return Object.getOwnPropertyDescriptor(e, t).enumerable; - })), - n.push.apply(n, r); - } - return n; - } - function ft(e) { - return (ft = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(e) { - return e.__proto__ || Object.getPrototypeOf(e); - })(e); - } - function dt(e, t) { - return (dt = - Object.setPrototypeOf || - function(e, t) { - return (e.__proto__ = t), e; - })(e, t); - } - function pt(e, t) { - return !t || ('object' != typeof t && 'function' != typeof t) - ? (function(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return e; - })(e) - : t; - } - function ht(e) { - return function() { - return e; - }; - } - var gt = function() {}; - (gt.thatReturns = ht), - (gt.thatReturnsFalse = ht(!1)), - (gt.thatReturnsTrue = ht(!0)), - (gt.thatReturnsNull = ht(null)), - (gt.thatReturnsThis = function() { - return this; - }), - (gt.thatReturnsArgument = function(e) { - return e; - }); - var mt = gt; - var bt = function(e, t, n, r, o, i, a, s) { - if (!e) { - var c; - if (void 0 === t) - c = new Error( - 'Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.' - ); - else { - var u = [n, r, o, i, a, s], - l = 0; - (c = new Error( - t.replace(/%s/g, function() { - return u[l++]; - }) - )).name = 'Invariant Violation'; - } - throw ((c.framesToPop = 1), c); - } - }, - yt = Object.getOwnPropertySymbols, - vt = Object.prototype.hasOwnProperty, - _t = Object.prototype.propertyIsEnumerable; - function xt(e) { - if (null == e) - throw new TypeError( - 'Object.assign cannot be called with null or undefined' - ); - return Object(e); - } - (function() { - try { - if (!Object.assign) return !1; - var e = new String('abc'); - if (((e[5] = 'de'), '5' === Object.getOwnPropertyNames(e)[0])) - return !1; - for (var t = {}, n = 0; n < 10; n++) - t['_' + String.fromCharCode(n)] = n; - if ( - '0123456789' !== - Object.getOwnPropertyNames(t) - .map(function(e) { - return t[e]; - }) - .join('') - ) - return !1; - var r = {}; - return ( - 'abcdefghijklmnopqrst'.split('').forEach(function(e) { - r[e] = e; - }), - 'abcdefghijklmnopqrst' === - Object.keys(Object.assign({}, r)).join('') - ); - } catch (e) { - return !1; - } - })() && Object.assign; - var wt = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; - var Mt = (function(e, t) { - return e((t = { exports: {} }), t.exports), t.exports; - })(function(e) { - e.exports = (function() { - function e(e, t, n, r, o, i) { - i !== wt && - bt( - !1, - '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' - ); - } - function t() { - return e; - } - e.isRequired = e; - var n = { - array: e, - bool: e, - func: e, - number: e, - object: e, - string: e, - symbol: e, - any: e, - arrayOf: t, - element: e, - instanceOf: t, - node: e, - objectOf: t, - oneOf: t, - oneOfType: t, - shape: t, - exact: t - }; - return (n.checkPropTypes = mt), (n.PropTypes = n), n; - })(); - }), - kt = { - HIDE: '__react_tooltip_hide_event', - REBUILD: '__react_tooltip_rebuild_event', - SHOW: '__react_tooltip_show_event' - }, - St = function(e, t) { - var n; - 'function' == typeof window.CustomEvent - ? (n = new window.CustomEvent(e, { detail: t })) - : ((n = document.createEvent('Event')).initEvent(e, !1, !0), - (n.detail = t)), - window.dispatchEvent(n); - }; - var At = function(e, t) { - var n = this.state.show, - r = this.props.id, - o = this.isCapture(t.currentTarget), - i = t.currentTarget.getAttribute('currentItem'); - o || t.stopPropagation(), - n && 'true' === i - ? e || this.hideTooltip(t) - : (t.currentTarget.setAttribute('currentItem', 'true'), - Ot(t.currentTarget, this.getTargetArray(r)), - this.showTooltip(t)); - }, - Ot = function(e, t) { - for (var n = 0; n < t.length; n++) - e !== t[n] - ? t[n].setAttribute('currentItem', 'false') - : t[n].setAttribute('currentItem', 'true'); - }, - Et = { - id: '9b69f92e-d3fe-498b-b1b4-c5e63a51b0cf', - set: function(e, t, n) { - this.id in e - ? (e[this.id][t] = n) - : Object.defineProperty(e, this.id, { - configurable: !0, - value: ct({}, t, n) - }); - }, - get: function(e, t) { - var n = e[this.id]; - if (void 0 !== n) return n[t]; - } - }; - var Tt = function(e, t, n) { - var r = t.respectEffect, - o = void 0 !== r && r, - i = t.customEvent, - a = void 0 !== i && i, - s = this.props.id, - c = n.target.getAttribute('data-tip') || null, - u = n.target.getAttribute('data-for') || null, - l = n.target; - if (!this.isCustomEvent(l) || a) { - var f = (null == s && null == u) || u === s; - if (null != c && (!o || 'float' === this.getEffect(l)) && f) { - var d = (function(e) { - var t = {}; - for (var n in e) - 'function' == typeof e[n] - ? (t[n] = e[n].bind(e)) - : (t[n] = e[n]); - return t; - })(n); - (d.currentTarget = l), e(d); - } - } - }, - Ct = function(e, t) { - var n = {}; - return ( - e.forEach(function(e) { - var r = e.getAttribute(t); - r && - r.split(' ').forEach(function(e) { - return (n[e] = !0); - }); - }), - n - ); - }, - Lt = function() { - return document.getElementsByTagName('body')[0]; - }; - function Pt(e, t, n, r, o, i, a) { - for ( - var s = jt(n), - c = s.width, - u = s.height, - l = jt(t), - f = l.width, - d = l.height, - p = Rt(e, t, i), - h = p.mouseX, - g = p.mouseY, - m = It(i, f, d, c, u), - b = Ft(a), - y = b.extraOffset_X, - v = b.extraOffset_Y, - _ = window.innerWidth, - x = window.innerHeight, - w = qt(n), - M = w.parentTop, - k = w.parentLeft, - S = function(e) { - var t = m[e].l; - return h + t + y; - }, - A = function(e) { - var t = m[e].t; - return g + t + v; - }, - O = function(e) { - return ( - (function(e) { - var t = m[e].r; - return h + t + y; - })(e) > _ - ); - }, - E = function(e) { - return ( - (function(e) { - var t = m[e].b; - return g + t + v; - })(e) > x - ); - }, - T = function(e) { - return ( - (function(e) { - return S(e) < 0; - })(e) || - O(e) || - (function(e) { - return A(e) < 0; - })(e) || - E(e) - ); - }, - C = function(e) { - return !T(e); - }, - L = ['top', 'bottom', 'left', 'right'], - P = [], - D = 0; - D < 4; - D++ - ) { - var z = L[D]; - C(z) && P.push(z); - } - var N, - j = !1, - R = o !== r; - return ( - C(o) && R - ? ((j = !0), (N = o)) - : P.length > 0 && R && T(o) && T(r) && ((j = !0), (N = P[0])), - j - ? { isNewState: !0, newState: { place: N } } - : { - isNewState: !1, - position: { - left: parseInt(S(r) - k, 10), - top: parseInt(A(r) - M, 10) - } - } - ); - } - var Dt, - zt, - Nt, - jt = function(e) { - var t = e.getBoundingClientRect(), - n = t.height, - r = t.width; - return { height: parseInt(n, 10), width: parseInt(r, 10) }; - }, - Rt = function(e, t, n) { - var r = t.getBoundingClientRect(), - o = r.top, - i = r.left, - a = jt(t), - s = a.width, - c = a.height; - return 'float' === n - ? { mouseX: e.clientX, mouseY: e.clientY } - : { mouseX: i + s / 2, mouseY: o + c / 2 }; - }, - It = function(e, t, n, r, o) { - var i, a, s, c; - return ( - 'float' === e - ? ((i = { l: -r / 2, r: r / 2, t: -(o + 3 + 2), b: -3 }), - (s = { l: -r / 2, r: r / 2, t: 15, b: o + 3 + 2 + 12 }), - (c = { l: -(r + 3 + 2), r: -3, t: -o / 2, b: o / 2 }), - (a = { l: 3, r: r + 3 + 2, t: -o / 2, b: o / 2 })) - : 'solid' === e && - ((i = { l: -r / 2, r: r / 2, t: -(n / 2 + o + 2), b: -n / 2 }), - (s = { l: -r / 2, r: r / 2, t: n / 2, b: n / 2 + o + 2 }), - (c = { l: -(r + t / 2 + 2), r: -t / 2, t: -o / 2, b: o / 2 }), - (a = { l: t / 2, r: r + t / 2 + 2, t: -o / 2, b: o / 2 })), - { top: i, bottom: s, left: c, right: a } - ); - }, - Ft = function(e) { - var t = 0, - n = 0; - for (var r in ('[object String]' === - Object.prototype.toString.apply(e) && - (e = JSON.parse(e.toString().replace(/\'/g, '"'))), - e)) - 'top' === r - ? (n -= parseInt(e[r], 10)) - : 'bottom' === r - ? (n += parseInt(e[r], 10)) - : 'left' === r - ? (t -= parseInt(e[r], 10)) - : 'right' === r && (t += parseInt(e[r], 10)); - return { extraOffset_X: t, extraOffset_Y: n }; }, - qt = function(e) { - for ( - var t = e; - t && - 'none' === window.getComputedStyle(t).getPropertyValue('transform'); - - ) - t = t.parentElement; - return { - parentTop: (t && t.getBoundingClientRect().top) || 0, - parentLeft: (t && t.getBoundingClientRect().left) || 0 - }; - }; - function Bt(e, t, n, r) { - if (t) return t; - if (null != n) return n; - if (null === n) return null; - var o = //; - return r && 'false' !== r && o.test(e) - ? e.split(o).map(function(e, t) { - return c.a.createElement( - 'span', - { key: t, className: 'multi-line' }, - e - ); - }) - : e; - } - function Ht(e) { - var t = {}; - return ( - Object.keys(e) - .filter(function(e) { - return /(^aria-\w+$|^role$)/.test(e); - }) - .forEach(function(n) { - t[n] = e[n]; - }), - t - ); - } - !(function(e) { - if (e && 'undefined' != typeof window) { - var t = document.createElement('style'); - t.setAttribute('type', 'text/css'), - (t.innerHTML = e), - document.head.appendChild(t); - } - })( - '.__react_component_tooltip {\n border-radius: 3px;\n display: inline-block;\n font-size: 13px;\n left: -999em;\n opacity: 0;\n padding: 8px 21px;\n position: fixed;\n pointer-events: none;\n transition: opacity 0.3s ease-out;\n top: -999em;\n visibility: hidden;\n z-index: 999;\n}\n.__react_component_tooltip.allow_hover, .__react_component_tooltip.allow_click {\n pointer-events: auto;\n}\n.__react_component_tooltip:before, .__react_component_tooltip:after {\n content: "";\n width: 0;\n height: 0;\n position: absolute;\n}\n.__react_component_tooltip.show {\n opacity: 0.9;\n margin-top: 0px;\n margin-left: 0px;\n visibility: visible;\n}\n.__react_component_tooltip.type-dark {\n color: #fff;\n background-color: #222;\n}\n.__react_component_tooltip.type-dark.place-top:after {\n border-top-color: #222;\n border-top-style: solid;\n border-top-width: 6px;\n}\n.__react_component_tooltip.type-dark.place-bottom:after {\n border-bottom-color: #222;\n border-bottom-style: solid;\n border-bottom-width: 6px;\n}\n.__react_component_tooltip.type-dark.place-left:after {\n border-left-color: #222;\n border-left-style: solid;\n border-left-width: 6px;\n}\n.__react_component_tooltip.type-dark.place-right:after {\n border-right-color: #222;\n border-right-style: solid;\n border-right-width: 6px;\n}\n.__react_component_tooltip.type-dark.border {\n border: 1px solid #fff;\n}\n.__react_component_tooltip.type-dark.border.place-top:before {\n border-top: 8px solid #fff;\n}\n.__react_component_tooltip.type-dark.border.place-bottom:before {\n border-bottom: 8px solid #fff;\n}\n.__react_component_tooltip.type-dark.border.place-left:before {\n border-left: 8px solid #fff;\n}\n.__react_component_tooltip.type-dark.border.place-right:before {\n border-right: 8px solid #fff;\n}\n.__react_component_tooltip.type-success {\n color: #fff;\n background-color: #8DC572;\n}\n.__react_component_tooltip.type-success.place-top:after {\n border-top-color: #8DC572;\n border-top-style: solid;\n border-top-width: 6px;\n}\n.__react_component_tooltip.type-success.place-bottom:after {\n border-bottom-color: #8DC572;\n border-bottom-style: solid;\n border-bottom-width: 6px;\n}\n.__react_component_tooltip.type-success.place-left:after {\n border-left-color: #8DC572;\n border-left-style: solid;\n border-left-width: 6px;\n}\n.__react_component_tooltip.type-success.place-right:after {\n border-right-color: #8DC572;\n border-right-style: solid;\n border-right-width: 6px;\n}\n.__react_component_tooltip.type-success.border {\n border: 1px solid #fff;\n}\n.__react_component_tooltip.type-success.border.place-top:before {\n border-top: 8px solid #fff;\n}\n.__react_component_tooltip.type-success.border.place-bottom:before {\n border-bottom: 8px solid #fff;\n}\n.__react_component_tooltip.type-success.border.place-left:before {\n border-left: 8px solid #fff;\n}\n.__react_component_tooltip.type-success.border.place-right:before {\n border-right: 8px solid #fff;\n}\n.__react_component_tooltip.type-warning {\n color: #fff;\n background-color: #F0AD4E;\n}\n.__react_component_tooltip.type-warning.place-top:after {\n border-top-color: #F0AD4E;\n border-top-style: solid;\n border-top-width: 6px;\n}\n.__react_component_tooltip.type-warning.place-bottom:after {\n border-bottom-color: #F0AD4E;\n border-bottom-style: solid;\n border-bottom-width: 6px;\n}\n.__react_component_tooltip.type-warning.place-left:after {\n border-left-color: #F0AD4E;\n border-left-style: solid;\n border-left-width: 6px;\n}\n.__react_component_tooltip.type-warning.place-right:after {\n border-right-color: #F0AD4E;\n border-right-style: solid;\n border-right-width: 6px;\n}\n.__react_component_tooltip.type-warning.border {\n border: 1px solid #fff;\n}\n.__react_component_tooltip.type-warning.border.place-top:before {\n border-top: 8px solid #fff;\n}\n.__react_component_tooltip.type-warning.border.place-bottom:before {\n border-bottom: 8px solid #fff;\n}\n.__react_component_tooltip.type-warning.border.place-left:before {\n border-left: 8px solid #fff;\n}\n.__react_component_tooltip.type-warning.border.place-right:before {\n border-right: 8px solid #fff;\n}\n.__react_component_tooltip.type-error {\n color: #fff;\n background-color: #BE6464;\n}\n.__react_component_tooltip.type-error.place-top:after {\n border-top-color: #BE6464;\n border-top-style: solid;\n border-top-width: 6px;\n}\n.__react_component_tooltip.type-error.place-bottom:after {\n border-bottom-color: #BE6464;\n border-bottom-style: solid;\n border-bottom-width: 6px;\n}\n.__react_component_tooltip.type-error.place-left:after {\n border-left-color: #BE6464;\n border-left-style: solid;\n border-left-width: 6px;\n}\n.__react_component_tooltip.type-error.place-right:after {\n border-right-color: #BE6464;\n border-right-style: solid;\n border-right-width: 6px;\n}\n.__react_component_tooltip.type-error.border {\n border: 1px solid #fff;\n}\n.__react_component_tooltip.type-error.border.place-top:before {\n border-top: 8px solid #fff;\n}\n.__react_component_tooltip.type-error.border.place-bottom:before {\n border-bottom: 8px solid #fff;\n}\n.__react_component_tooltip.type-error.border.place-left:before {\n border-left: 8px solid #fff;\n}\n.__react_component_tooltip.type-error.border.place-right:before {\n border-right: 8px solid #fff;\n}\n.__react_component_tooltip.type-info {\n color: #fff;\n background-color: #337AB7;\n}\n.__react_component_tooltip.type-info.place-top:after {\n border-top-color: #337AB7;\n border-top-style: solid;\n border-top-width: 6px;\n}\n.__react_component_tooltip.type-info.place-bottom:after {\n border-bottom-color: #337AB7;\n border-bottom-style: solid;\n border-bottom-width: 6px;\n}\n.__react_component_tooltip.type-info.place-left:after {\n border-left-color: #337AB7;\n border-left-style: solid;\n border-left-width: 6px;\n}\n.__react_component_tooltip.type-info.place-right:after {\n border-right-color: #337AB7;\n border-right-style: solid;\n border-right-width: 6px;\n}\n.__react_component_tooltip.type-info.border {\n border: 1px solid #fff;\n}\n.__react_component_tooltip.type-info.border.place-top:before {\n border-top: 8px solid #fff;\n}\n.__react_component_tooltip.type-info.border.place-bottom:before {\n border-bottom: 8px solid #fff;\n}\n.__react_component_tooltip.type-info.border.place-left:before {\n border-left: 8px solid #fff;\n}\n.__react_component_tooltip.type-info.border.place-right:before {\n border-right: 8px solid #fff;\n}\n.__react_component_tooltip.type-light {\n color: #222;\n background-color: #fff;\n}\n.__react_component_tooltip.type-light.place-top:after {\n border-top-color: #fff;\n border-top-style: solid;\n border-top-width: 6px;\n}\n.__react_component_tooltip.type-light.place-bottom:after {\n border-bottom-color: #fff;\n border-bottom-style: solid;\n border-bottom-width: 6px;\n}\n.__react_component_tooltip.type-light.place-left:after {\n border-left-color: #fff;\n border-left-style: solid;\n border-left-width: 6px;\n}\n.__react_component_tooltip.type-light.place-right:after {\n border-right-color: #fff;\n border-right-style: solid;\n border-right-width: 6px;\n}\n.__react_component_tooltip.type-light.border {\n border: 1px solid #222;\n}\n.__react_component_tooltip.type-light.border.place-top:before {\n border-top: 8px solid #222;\n}\n.__react_component_tooltip.type-light.border.place-bottom:before {\n border-bottom: 8px solid #222;\n}\n.__react_component_tooltip.type-light.border.place-left:before {\n border-left: 8px solid #222;\n}\n.__react_component_tooltip.type-light.border.place-right:before {\n border-right: 8px solid #222;\n}\n.__react_component_tooltip.place-top {\n margin-top: -10px;\n}\n.__react_component_tooltip.place-top:before {\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n bottom: -8px;\n left: 50%;\n margin-left: -10px;\n}\n.__react_component_tooltip.place-top:after {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n bottom: -6px;\n left: 50%;\n margin-left: -8px;\n}\n.__react_component_tooltip.place-bottom {\n margin-top: 10px;\n}\n.__react_component_tooltip.place-bottom:before {\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n top: -8px;\n left: 50%;\n margin-left: -10px;\n}\n.__react_component_tooltip.place-bottom:after {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n top: -6px;\n left: 50%;\n margin-left: -8px;\n}\n.__react_component_tooltip.place-left {\n margin-left: -10px;\n}\n.__react_component_tooltip.place-left:before {\n border-top: 6px solid transparent;\n border-bottom: 6px solid transparent;\n right: -8px;\n top: 50%;\n margin-top: -5px;\n}\n.__react_component_tooltip.place-left:after {\n border-top: 5px solid transparent;\n border-bottom: 5px solid transparent;\n right: -6px;\n top: 50%;\n margin-top: -4px;\n}\n.__react_component_tooltip.place-right {\n margin-left: 10px;\n}\n.__react_component_tooltip.place-right:before {\n border-top: 6px solid transparent;\n border-bottom: 6px solid transparent;\n left: -8px;\n top: 50%;\n margin-top: -5px;\n}\n.__react_component_tooltip.place-right:after {\n border-top: 5px solid transparent;\n border-bottom: 5px solid transparent;\n left: -6px;\n top: 50%;\n margin-top: -4px;\n}\n.__react_component_tooltip .multi-line {\n display: block;\n padding: 2px 0px;\n text-align: center;\n}' - ); - var Yt, - Wt = - (function(e) { - (e.hide = function(e) { - St(kt.HIDE, { target: e }); - }), - (e.rebuild = function() { - St(kt.REBUILD); - }), - (e.show = function(e) { - St(kt.SHOW, { target: e }); - }), - (e.prototype.globalRebuild = function() { - this.mount && (this.unbindListener(), this.bindListener()); - }), - (e.prototype.globalShow = function(e) { - if (this.mount) { - var t = { currentTarget: e.detail.target }; - this.showTooltip(t, !0); - } - }), - (e.prototype.globalHide = function(e) { - if (this.mount) { - var t = !!(e && e.detail && e.detail.target); - this.hideTooltip({ currentTarget: t && e.detail.target }, t); - } - }); - })( - (Dt = - (function(e) { - (e.prototype.bindWindowEvents = function(e) { - window.removeEventListener(kt.HIDE, this.globalHide), - window.addEventListener(kt.HIDE, this.globalHide, !1), - window.removeEventListener(kt.REBUILD, this.globalRebuild), - window.addEventListener(kt.REBUILD, this.globalRebuild, !1), - window.removeEventListener(kt.SHOW, this.globalShow), - window.addEventListener(kt.SHOW, this.globalShow, !1), - e && - (window.removeEventListener( - 'resize', - this.onWindowResize - ), - window.addEventListener( - 'resize', - this.onWindowResize, - !1 - )); - }), - (e.prototype.unbindWindowEvents = function() { - window.removeEventListener(kt.HIDE, this.globalHide), - window.removeEventListener( - kt.REBUILD, - this.globalRebuild - ), - window.removeEventListener(kt.SHOW, this.globalShow), - window.removeEventListener('resize', this.onWindowResize); - }), - (e.prototype.onWindowResize = function() { - this.mount && this.hideTooltip(); - }); - })( - (Dt = - (function(e) { - (e.prototype.isCustomEvent = function(e) { - return this.state.event || !!e.getAttribute('data-event'); - }), - (e.prototype.customBindListener = function(e) { - var t = this, - n = this.state, - r = n.event, - o = n.eventOff, - i = e.getAttribute('data-event') || r, - a = e.getAttribute('data-event-off') || o; - i.split(' ').forEach(function(n) { - e.removeEventListener(n, Et.get(e, n)); - var r = At.bind(t, a); - Et.set(e, n, r), e.addEventListener(n, r, !1); - }), - a && - a.split(' ').forEach(function(n) { - e.removeEventListener(n, t.hideTooltip), - e.addEventListener(n, t.hideTooltip, !1); - }); - }), - (e.prototype.customUnbindListener = function(e) { - var t = this.state, - n = t.event, - r = t.eventOff, - o = n || e.getAttribute('data-event'), - i = r || e.getAttribute('data-event-off'); - e.removeEventListener(o, Et.get(e, n)), - i && e.removeEventListener(i, this.hideTooltip); - }); - })( - (Dt = - (function(e) { - e.prototype.isCapture = function(e) { - return ( - (e && - 'true' === e.getAttribute('data-iscapture')) || - this.props.isCapture || - !1 - ); - }; - })( - (Dt = - (function(e) { - e.prototype.getEffect = function(e) { - return ( - e.getAttribute('data-effect') || - this.props.effect || - 'float' - ); - }; - })( - (Dt = - (function(e) { - (e.prototype.isBodyMode = function() { - return !!this.props.bodyMode; - }), - (e.prototype.bindBodyListener = function(e) { - var t = this, - n = this.state, - r = n.event, - o = n.eventOff, - i = n.possibleCustomEvents, - a = n.possibleCustomEventsOff, - s = Lt(), - c = Ct(e, 'data-event'), - u = Ct(e, 'data-event-off'); - null != r && (c[r] = !0), - null != o && (u[o] = !0), - i.split(' ').forEach(function(e) { - return (c[e] = !0); - }), - a.split(' ').forEach(function(e) { - return (u[e] = !0); - }), - this.unbindBodyListener(s); - var l = (this.bodyModeListeners = {}); - for (var f in (null == r && - ((l.mouseover = Tt.bind( - this, - this.showTooltip, - {} - )), - (l.mousemove = Tt.bind( - this, - this.updateTooltip, - { respectEffect: !0 } - )), - (l.mouseout = Tt.bind( - this, - this.hideTooltip, - {} - ))), - c)) - l[f] = Tt.bind( - this, - function(e) { - var n = - e.currentTarget.getAttribute( - 'data-event-off' - ) || o; - At.call(t, n, e); - }, - { customEvent: !0 } - ); - for (var d in u) - l[d] = Tt.bind(this, this.hideTooltip, { - customEvent: !0 - }); - for (var p in l) - s.addEventListener(p, l[p]); - }), - (e.prototype.unbindBodyListener = function( - e - ) { - e = e || Lt(); - var t = this.bodyModeListeners; - for (var n in t) - e.removeEventListener(n, t[n]); - }); - })( - ((Nt = zt = (function(e) { - function t(e) { - var n; - return ( - (function(e, t) { - if (!(e instanceof t)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, t), - ((n = pt( - this, - ft(t).call(this, e) - )).state = { - place: e.place || 'top', - desiredPlace: e.place || 'top', - type: 'dark', - effect: 'float', - show: !1, - border: !1, - offset: {}, - extraClass: '', - html: !1, - delayHide: 0, - delayShow: 0, - event: e.event || null, - eventOff: e.eventOff || null, - currentEvent: null, - currentTarget: null, - ariaProps: Ht(e), - isEmptyTip: !1, - disable: !1, - possibleCustomEvents: - e.possibleCustomEvents || '', - possibleCustomEventsOff: - e.possibleCustomEventsOff || '', - originTooltip: null, - isMultiline: !1 - }), - n.bind([ - 'showTooltip', - 'updateTooltip', - 'hideTooltip', - 'hideTooltipOnScroll', - 'getTooltipContent', - 'globalRebuild', - 'globalShow', - 'globalHide', - 'onWindowResize', - 'mouseOnToolTip' - ]), - (n.mount = !0), - (n.delayShowLoop = null), - (n.delayHideLoop = null), - (n.delayReshow = null), - (n.intervalUpdateContent = null), - n - ); - } - var n, r, o; - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (e.prototype = Object.create( - t && t.prototype, - { - constructor: { - value: e, - writable: !0, - configurable: !0 - } - } - )), - t && dt(e, t); - })(t, e), - (n = t), - (o = [ - { - key: 'getDerivedStateFromProps', - value: function(e, t) { - var n = t.ariaProps, - r = Ht(e); - return Object.keys(r).some(function( - e - ) { - return r[e] !== n[e]; - }) - ? (function(e) { - for ( - var t = 1; - t < arguments.length; - t++ - ) { - var n = - null != arguments[t] - ? arguments[t] - : {}; - t % 2 - ? lt(Object(n), !0).forEach( - function(t) { - ct(e, t, n[t]); - } - ) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties( - e, - Object.getOwnPropertyDescriptors( - n - ) - ) - : lt(Object(n)).forEach( - function(t) { - Object.defineProperty( - e, - t, - Object.getOwnPropertyDescriptor( - n, - t - ) - ); - } - ); - } - return e; - })({}, t, { ariaProps: r }) - : null; - } - } - ]), - (r = [ - { - key: 'bind', - value: function(e) { - var t = this; - e.forEach(function(e) { - t[e] = t[e].bind(t); - }); - } - }, - { - key: 'componentDidMount', - value: function() { - var e = this.props, - t = (e.insecure, e.resizeHide); - this.bindListener(), - this.bindWindowEvents(t); - } - }, - { - key: 'componentWillUnmount', - value: function() { - (this.mount = !1), - this.clearTimer(), - this.unbindListener(), - this.removeScrollListener(), - this.unbindWindowEvents(); - } - }, - { - key: 'mouseOnToolTip', - value: function() { - return ( - !( - !this.state.show || - !this.tooltipRef - ) && - (this.tooltipRef.matches || - (this.tooltipRef.msMatchesSelector - ? (this.tooltipRef.matches = this.tooltipRef.msMatchesSelector) - : (this.tooltipRef.matches = this.tooltipRef.mozMatchesSelector)), - this.tooltipRef.matches(':hover')) - ); - } - }, - { - key: 'getTargetArray', - value: function(e) { - var t, n, r; - if (e) { - var o = e - .replace(/\\/g, '\\\\') - .replace(/"/g, '\\"'); - t = document.querySelectorAll( - '[data-tip][data-for="'.concat( - o, - '"]' - ) - ); - } else - t = document.querySelectorAll( - '[data-tip]:not([data-for])' - ); - return ( - (r = (n = t).length), - n.hasOwnProperty - ? Array.prototype.slice.call(n) - : new Array(r) - .fill() - .map(function(e) { - return n[e]; - }) - ); - } - }, - { - key: 'bindListener', - value: function() { - var e = this, - t = this.props, - n = t.id, - r = t.globalEventOff, - o = t.isCapture, - i = this.getTargetArray(n); - i.forEach(function(t) { - null === - t.getAttribute('currentItem') && - t.setAttribute( - 'currentItem', - 'false' - ), - e.unbindBasicListener(t), - e.isCustomEvent(t) && - e.customUnbindListener(t); - }), - this.isBodyMode() - ? this.bindBodyListener(i) - : i.forEach(function(t) { - var n = e.isCapture(t), - r = e.getEffect(t); - e.isCustomEvent(t) - ? e.customBindListener(t) - : (t.addEventListener( - 'mouseenter', - e.showTooltip, - n - ), - 'float' === r && - t.addEventListener( - 'mousemove', - e.updateTooltip, - n - ), - t.addEventListener( - 'mouseleave', - e.hideTooltip, - n - )); - }), - r && - (window.removeEventListener( - r, - this.hideTooltip - ), - window.addEventListener( - r, - this.hideTooltip, - o - )), - this.bindRemovalTracker(); - } - }, - { - key: 'unbindListener', - value: function() { - var e = this, - t = this.props, - n = t.id, - r = t.globalEventOff; - this.isBodyMode() - ? this.unbindBodyListener() - : this.getTargetArray(n).forEach( - function(t) { - e.unbindBasicListener(t), - e.isCustomEvent(t) && - e.customUnbindListener(t); - } - ), - r && - window.removeEventListener( - r, - this.hideTooltip - ), - this.unbindRemovalTracker(); - } - }, - { - key: 'unbindBasicListener', - value: function(e) { - var t = this.isCapture(e); - e.removeEventListener( - 'mouseenter', - this.showTooltip, - t - ), - e.removeEventListener( - 'mousemove', - this.updateTooltip, - t - ), - e.removeEventListener( - 'mouseleave', - this.hideTooltip, - t - ); - } - }, - { - key: 'getTooltipContent', - value: function() { - var e, - t = this.props, - n = t.getContent, - r = t.children; - return ( - n && - (e = Array.isArray(n) - ? n[0] && - n[0](this.state.originTooltip) - : n(this.state.originTooltip)), - Bt( - this.state.originTooltip, - r, - e, - this.state.isMultiline - ) - ); - } - }, - { - key: 'isEmptyTip', - value: function(e) { - return ( - ('string' == typeof e && - '' === e) || - null === e - ); - } - }, - { - key: 'showTooltip', - value: function(e, t) { - if ( - !t || - this.getTargetArray( - this.props.id - ).some(function(t) { - return t === e.currentTarget; - }) - ) { - var n = this.props, - r = n.multiline, - o = n.getContent, - i = e.currentTarget.getAttribute( - 'data-tip' - ), - a = - e.currentTarget.getAttribute( - 'data-multiline' - ) || - r || - !1, - s = - e instanceof - window.FocusEvent || t, - c = !0; - e.currentTarget.getAttribute( - 'data-scroll-hide' - ) - ? (c = - 'true' === - e.currentTarget.getAttribute( - 'data-scroll-hide' - )) - : null != this.props.scrollHide && - (c = this.props.scrollHide); - var u = - e.currentTarget.getAttribute( - 'data-place' - ) || - this.props.place || - 'top', - l = s - ? 'solid' - : this.getEffect( - e.currentTarget - ), - f = - e.currentTarget.getAttribute( - 'data-offset' - ) || - this.props.offset || - {}, - d = Pt( - e, - e.currentTarget, - this.tooltipRef, - u, - u, - l, - f - ); - d.position && - this.props.overridePosition && - (d.position = this.props.overridePosition( - d.position, - e.currentTarget, - this.tooltipRef, - u, - u, - l, - f - )); - var p = d.isNewState - ? d.newState.place - : u; - this.clearTimer(); - var h = e.currentTarget, - g = this.state.show - ? h.getAttribute( - 'data-delay-update' - ) || this.props.delayUpdate - : 0, - m = this, - b = function() { - m.setState( - { - originTooltip: i, - isMultiline: a, - desiredPlace: u, - place: p, - type: - h.getAttribute( - 'data-type' - ) || - m.props.type || - 'dark', - effect: l, - offset: f, - html: h.getAttribute( - 'data-html' - ) - ? 'true' === - h.getAttribute( - 'data-html' - ) - : m.props.html || !1, - delayShow: - h.getAttribute( - 'data-delay-show' - ) || - m.props.delayShow || - 0, - delayHide: - h.getAttribute( - 'data-delay-hide' - ) || - m.props.delayHide || - 0, - delayUpdate: - h.getAttribute( - 'data-delay-update' - ) || - m.props.delayUpdate || - 0, - border: h.getAttribute( - 'data-border' - ) - ? 'true' === - h.getAttribute( - 'data-border' - ) - : m.props.border || !1, - extraClass: - h.getAttribute( - 'data-class' - ) || - m.props.class || - m.props.className || - '', - disable: h.getAttribute( - 'data-tip-disable' - ) - ? 'true' === - h.getAttribute( - 'data-tip-disable' - ) - : m.props.disable || !1, - currentTarget: h - }, - function() { - c && - m.addScrollListener( - m.state.currentTarget - ), - m.updateTooltip(e), - o && - Array.isArray(o) && - (m.intervalUpdateContent = setInterval( - function() { - if (m.mount) { - var e = - m.props - .getContent, - t = Bt( - i, - '', - e[0](), - a - ), - n = m.isEmptyTip( - t - ); - m.setState({ - isEmptyTip: n - }), - m.updatePosition(); - } - }, - o[1] - )); - } - ); - }; - g - ? (this.delayReshow = setTimeout( - b, - g - )) - : b(); - } - } - }, - { - key: 'updateTooltip', - value: function(e) { - var t = this, - n = this.state, - r = n.delayShow, - o = n.disable, - i = this.props.afterShow, - a = this.getTooltipContent(), - s = parseInt(r, 10), - c = e.currentTarget || e.target; - if ( - !this.mouseOnToolTip() && - !this.isEmptyTip(a) && - !o - ) { - var u = function() { - if ( - (Array.isArray(a) && - a.length > 0) || - a - ) { - var n = !t.state.show; - t.setState( - { - currentEvent: e, - currentTarget: c, - show: !0 - }, - function() { - t.updatePosition(), - n && i && i(e); - } - ); - } - }; - clearTimeout(this.delayShowLoop), - r - ? (this.delayShowLoop = setTimeout( - u, - s - )) - : u(); - } - } - }, - { - key: 'listenForTooltipExit', - value: function() { - this.state.show && - this.tooltipRef && - this.tooltipRef.addEventListener( - 'mouseleave', - this.hideTooltip - ); - } - }, - { - key: 'removeListenerForTooltipExit', - value: function() { - this.state.show && - this.tooltipRef && - this.tooltipRef.removeEventListener( - 'mouseleave', - this.hideTooltip - ); - } - }, - { - key: 'hideTooltip', - value: function(e, t) { - var n = this, - r = - arguments.length > 2 && - void 0 !== arguments[2] - ? arguments[2] - : { isScroll: !1 }, - o = this.state.disable, - i = r.isScroll, - a = i ? 0 : this.state.delayHide, - s = this.props.afterHide, - c = this.getTooltipContent(); - if ( - this.mount && - !this.isEmptyTip(c) && - !o - ) { - if (t) { - var u = this.getTargetArray( - this.props.id - ), - l = u.some(function(t) { - return t === e.currentTarget; - }); - if (!l || !this.state.show) - return; - } - var f = function() { - var t = n.state.show; - n.mouseOnToolTip() - ? n.listenForTooltipExit() - : (n.removeListenerForTooltipExit(), - n.setState( - { show: !1 }, - function() { - n.removeScrollListener(), - t && s && s(e); - } - )); - }; - this.clearTimer(), - a - ? (this.delayHideLoop = setTimeout( - f, - parseInt(a, 10) - )) - : f(); - } - } - }, - { - key: 'hideTooltipOnScroll', - value: function(e, t) { - this.hideTooltip(e, t, { - isScroll: !0 - }); - } - }, - { - key: 'addScrollListener', - value: function(e) { - var t = this.isCapture(e); - window.addEventListener( - 'scroll', - this.hideTooltipOnScroll, - t - ); - } - }, - { - key: 'removeScrollListener', - value: function() { - window.removeEventListener( - 'scroll', - this.hideTooltipOnScroll - ); - } - }, - { - key: 'updatePosition', - value: function() { - var e = this, - t = this.state, - n = t.currentEvent, - r = t.currentTarget, - o = t.place, - i = t.desiredPlace, - a = t.effect, - s = t.offset, - c = this.tooltipRef, - u = Pt(n, r, c, o, i, a, s); - if ( - (u.position && - this.props.overridePosition && - (u.position = this.props.overridePosition( - u.position, - n, - r, - c, - o, - i, - a, - s - )), - u.isNewState) - ) - return this.setState( - u.newState, - function() { - e.updatePosition(); - } - ); - (c.style.left = - u.position.left + 'px'), - (c.style.top = - u.position.top + 'px'); - } - }, - { - key: 'clearTimer', - value: function() { - clearTimeout(this.delayShowLoop), - clearTimeout(this.delayHideLoop), - clearTimeout(this.delayReshow), - clearInterval( - this.intervalUpdateContent - ); - } - }, - { - key: 'render', - value: function() { - var e = this, - n = this.state, - r = n.extraClass, - o = n.html, - i = n.ariaProps, - a = n.disable, - s = this.getTooltipContent(), - u = this.isEmptyTip(s), - l = - '__react_component_tooltip' + - (!this.state.show || a || u - ? '' - : ' show') + - (this.state.border - ? ' border' - : '') + - ' place-'.concat( - this.state.place - ) + - ' type-'.concat(this.state.type) + - (this.props.delayUpdate - ? ' allow_hover' - : '') + - (this.props.clickable - ? ' allow_click' - : ''), - f = this.props.wrapper; - t.supportedWrappers.indexOf(f) < 0 && - (f = t.defaultProps.wrapper); - var d = [l, r] - .filter(Boolean) - .join(' '); - return o - ? c.a.createElement( - f, - ut( - { - className: d, - id: this.props.id, - ref: function(t) { - return (e.tooltipRef = t); - } - }, - i, - { - 'data-id': 'tooltip', - dangerouslySetInnerHTML: { - __html: s - } - } - ) - ) - : c.a.createElement( - f, - ut( - { - className: d, - id: this.props.id - }, - i, - { - ref: function(t) { - return (e.tooltipRef = t); - }, - 'data-id': 'tooltip' - } - ), - s - ); - } - } - ]) && st(n.prototype, r), - o && st(n, o), - t - ); - })(c.a.Component)), - ct(zt, 'propTypes', { - children: Mt.any, - place: Mt.string, - type: Mt.string, - effect: Mt.string, - offset: Mt.object, - multiline: Mt.bool, - border: Mt.bool, - insecure: Mt.bool, - class: Mt.string, - className: Mt.string, - id: Mt.string, - html: Mt.bool, - delayHide: Mt.number, - delayUpdate: Mt.number, - delayShow: Mt.number, - event: Mt.string, - eventOff: Mt.string, - watchWindow: Mt.bool, - isCapture: Mt.bool, - globalEventOff: Mt.string, - getContent: Mt.any, - afterShow: Mt.func, - afterHide: Mt.func, - overridePosition: Mt.func, - disable: Mt.bool, - scrollHide: Mt.bool, - resizeHide: Mt.bool, - wrapper: Mt.string, - bodyMode: Mt.bool, - possibleCustomEvents: Mt.string, - possibleCustomEventsOff: Mt.string, - clickable: Mt.bool - }), - ct(zt, 'defaultProps', { - insecure: !0, - resizeHide: !0, - wrapper: 'div', - clickable: !1 - }), - ct(zt, 'supportedWrappers', ['div', 'span']), - ct(zt, 'displayName', 'ReactTooltip'), - ((Yt = Dt = Nt).prototype.bindRemovalTracker = function() { - var e = this, - t = - window.MutationObserver || - window.WebKitMutationObserver || - window.MozMutationObserver; - if (null != t) { - var n = new t(function(t) { - for (var n = 0; n < t.length; n++) - for ( - var r = t[n], o = 0; - o < r.removedNodes.length; - o++ - ) - if ( - r.removedNodes[o] === - e.state.currentTarget - ) - return void e.hideTooltip(); - }); - n.observe(window.document, { - childList: !0, - subtree: !0 - }), - (this.removalTracker = n); - } - }), - (Dt = - void (Yt.prototype.unbindRemovalTracker = function() { - this.removalTracker && - (this.removalTracker.disconnect(), - (this.removalTracker = null)); - }) || Dt)) - ) || Dt) - ) || Dt) - ) || Dt) - ) || Dt) - ) || Dt) - ) || Dt, - Vt = n(21), - Ut = n.n(Vt), - Xt = n(425), - Gt = function() { - return Object(Xt.uuid)(); + xt = n(18), + Mt = n.n(xt), + kt = n(32), + St = n.n(kt), + Ot = n(453), + Et = function() { + return Object(Ot.uuid)(); }; - function Kt(e, t) { + function At(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); @@ -229486,22 +229906,22 @@ object-assign } return n; } - var $t = function(e) { + var Tt = function(e) { return void 0 !== e.id ? e : (function(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 - ? Kt(Object(n), !0).forEach(function(t) { - ot()(e, t, n[t]); + ? At(n, !0).forEach(function(t) { + vt()(e, t, n[t]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, Object.getOwnPropertyDescriptors(n) ) - : Kt(Object(n)).forEach(function(t) { + : At(n).forEach(function(t) { Object.defineProperty( e, t, @@ -229510,9 +229930,9 @@ object-assign }); } return e; - })({}, e, { id: 'chart-'.concat(Gt()) }); + })({}, e, { id: 'chart-'.concat(Et()) }); }; - function Qt(e, t) { + function Ct(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); @@ -229524,16 +229944,16 @@ object-assign } return n; } - function Jt(e) { + function Lt(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 - ? Qt(Object(n), !0).forEach(function(t) { - ot()(e, t, n[t]); + ? Ct(n, !0).forEach(function(t) { + vt()(e, t, n[t]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) - : Qt(Object(n)).forEach(function(t) { + : Ct(n).forEach(function(t) { Object.defineProperty( e, t, @@ -229543,8 +229963,8 @@ object-assign } return e; } - var Zt = { value: '', label: 'Default' }, - en = { + var Pt = { value: '', label: 'Default' }, + Dt = { dashboardInfo: { id: '', title: '', @@ -229578,18 +229998,18 @@ object-assign dashboardMenuFilter: '', sortingValue: { value: 'az', label: 'A - Z' } }, - tn = Object(be.combineReducers)( - ot()({}, 'app', function() { + jt = Object(he.combineReducers)( + vt()({}, 'app', function() { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] - : en, + : Dt, t = arguments.length > 1 ? arguments[1] : void 0, n = e.dashboardInfo; e.grid; switch (t.type) { case 'LOAD_DASHBOARDS': - return Jt({}, e, { + return Lt({}, e, { isDashboardListLoaded: !0, dashboardList: t.dashboardList.sort(function(e, t) { return e.title.toLowerCase() < t.title.toLowerCase() @@ -229600,18 +230020,18 @@ object-assign }) }); case 'ADD_DASHBOARD_ITEM': - var r = Ut()({}, en.dashboardInfo, t.dashboardInfo); - return Jt({}, e, { + var r = St()({}, Dt.dashboardInfo, t.dashboardInfo); + return Lt({}, e, { dashboardInfo: r, newDashboardId: t.dashboardInfo.id }); case 'HANDLE_SEARCH': - return Jt({}, e, { searchInput: t.value }); + return Lt({}, e, { searchInput: t.value }); case 'DELETE_DASHBOARD_ITEM': var o = e.dashboardList.filter(function(e) { return e.id !== t.id; }); - return Jt({}, e, { + return Lt({}, e, { dashboardList: o.sort(function(e, t) { return e.title.toLowerCase() < t.title.toLowerCase() ? -1 @@ -229621,29 +230041,29 @@ object-assign }) }); case 'LOAD_DASHBOARD_INFO': - var i = Ut()({}, en.dashboardInfo, t.dashboardInfo), + var i = St()({}, Dt.dashboardInfo, t.dashboardInfo), a = i.settings.items, s = (a && a.map(function(e) { - return $t(e); + return Tt(e); })) || [], - c = Jt({}, i, { settings: Jt({}, i.settings, { items: s }) }); - return Jt({}, e, { + c = Lt({}, i, { settings: Lt({}, i.settings, { items: s }) }); + return Lt({}, e, { isDashboardLoading: t.isDashboardLoading, dashboardInfo: c }); case 'UPDATE_DASHBOARD_INFO': - return Jt({}, e, { dashboardInfo: t.dashboardInfo }); + return Lt({}, e, { dashboardInfo: t.dashboardInfo }); case 'CLEAR_DASHBOARD_INFO': - return Jt({}, e, { + return Lt({}, e, { dashboardInfo: { id: '', title: '', data: { version: 2, items: [] }, settings: { - palette: Zt, + palette: Pt, colors: [], picker: {}, dryRun: !1, @@ -229657,15 +230077,15 @@ object-assign settingsVisible: !1 }); case 'SET_LOADING': - return Jt({}, e, { isLoading: t.index }); + return Lt({}, e, { isLoading: t.index }); case 'SELECT_SAVED_QUERY': - return Jt({}, e, { - dashboardInfo: Jt({}, n, { - settings: Jt({}, n.settings, { - items: nt()( + return Lt({}, e, { + dashboardInfo: Lt({}, n, { + settings: Lt({}, n.settings, { + items: bt()( n.settings.items.map(function(e) { return e.i === t.index - ? Jt({}, e, { + ? Lt({}, e, { savedQuery: Array.isArray(t.savedQueries) ? t.savedQueries : [t.savedQueries], @@ -229678,13 +230098,13 @@ object-assign }) }); case 'CHANGE_CHART_TYPE': - return Jt({}, e, { - dashboardInfo: Jt({}, n, { - settings: Jt({}, n.settings, { - items: nt()( + return Lt({}, e, { + dashboardInfo: Lt({}, n, { + settings: Lt({}, n.settings, { + items: bt()( n.settings.items.map(function(e) { return t.index === e.i - ? Jt({}, e, { type: t.value }) + ? Lt({}, e, { type: t.value }) : e; }) ) @@ -229693,12 +230113,12 @@ object-assign isLoading: !1 }); case 'SAVED_QUERY_ERROR': - return Jt({}, e, { - dashboardInfo: Jt({}, n, { - settings: Jt({}, n.settings, { + return Lt({}, e, { + dashboardInfo: Lt({}, n, { + settings: Lt({}, n.settings, { items: n.settings.items.map(function(e) { return t.index === e.i - ? Jt({}, e, { error: t.error }) + ? Lt({}, e, { error: t.error }) : e; }) }) @@ -229706,14 +230126,14 @@ object-assign }); case 'GET_SAVED_QUERIES': var u = t.savedQueries; - return Jt({}, e, { savedQueries: u }); + return Lt({}, e, { savedQueries: u }); case 'LOAD_SAVED_QUERIES': - return Jt({}, e, { - dashboardInfo: Jt({}, n, { - settings: Jt({}, n.settings, { + return Lt({}, e, { + dashboardInfo: Lt({}, n, { + settings: Lt({}, n.settings, { items: n.settings.items.map(function(e) { return t.index === e.i - ? Jt({}, e, { + ? Lt({}, e, { sparkline: !!e.sparkline && e.sparkline }) : e; @@ -229722,78 +230142,78 @@ object-assign }) }); case 'LOAD_SAVED_ERROR': - return Jt({}, e, { - dashboardInfo: Jt({}, n, { - settings: Jt({}, n.settings, { + return Lt({}, e, { + dashboardInfo: Lt({}, n, { + settings: Lt({}, n.settings, { items: n.settings.items.map(function(e) { return t.index === e.i - ? Jt({}, e, { error: t.error }) + ? Lt({}, e, { error: t.error }) : e; }) }) }) }); case 'SAVE_DASHBOARD': - return Jt({}, e, { dashboardSaved: !0 }); + return Lt({}, e, { dashboardSaved: !0 }); case 'HIDE_SAVED_DASHBOARD_MESSAGE': - return Jt({}, e, { dashboardSaved: !1 }); + return Lt({}, e, { dashboardSaved: !1 }); case 'CHANGE_DASHBOARD_TITLE': - return Jt({}, e, { - dashboardInfo: Jt({}, n, { title: t.title }) + return Lt({}, e, { + dashboardInfo: Lt({}, n, { title: t.title }) }); case 'TOGGLE_DRY_RUN': - return Jt({}, e, { - dashboardInfo: Jt({}, n, { - settings: Jt({}, n.settings, { + return Lt({}, e, { + dashboardInfo: Lt({}, n, { + settings: Lt({}, n.settings, { dryRun: !n.settings.dryRun }), - theme: Jt({}, n.theme) + theme: Lt({}, n.theme) }) }); case 'TOGGLE_IS_PUBLIC': - return Jt({}, e, { - dashboardInfo: Jt({}, n, { is_public: !n.is_public }) + return Lt({}, e, { + dashboardInfo: Lt({}, n, { is_public: !n.is_public }) }); case 'SET_THEME': - return Jt({}, e, { - dashboardInfo: Jt({}, n, { - settings: Jt({}, n.settings, { theme: t.value }) + return Lt({}, e, { + dashboardInfo: Lt({}, n, { + settings: Lt({}, n.settings, { theme: t.value }) }) }); case 'SET_CHART_THEME': var l = n.settings.charts_theme - ? Jt({}, n.settings.charts_theme) + ? Lt({}, n.settings.charts_theme) : {}; return ( (l[t.index] = t.value), - Jt({}, e, { - dashboardInfo: Jt({}, n, { - settings: Jt({}, n.settings, { charts_theme: l }) + Lt({}, e, { + dashboardInfo: Lt({}, n, { + settings: Lt({}, n.settings, { charts_theme: l }) }) }) ); case 'SET_LAYOUT': - return Jt({}, e, { - dashboardInfo: Jt({}, e.dashboardInfo, { - settings: Jt({}, e.dashboardInfo.settings, { + return Lt({}, e, { + dashboardInfo: Lt({}, e.dashboardInfo, { + settings: Lt({}, e.dashboardInfo.settings, { layout: t.layout }) }) }); case 'SHOW_TOOLBAR': - return Jt({}, e, { toolbarVisible: !0 }); + return Lt({}, e, { toolbarVisible: !0 }); case 'CLOSE_TOOLBAR': - return Jt({}, e, { toolbarVisible: !1 }); + return Lt({}, e, { toolbarVisible: !1 }); case 'DRAG_START_HANDLER': - return Jt({}, e, { + return Lt({}, e, { draggedType: t.draggedType, toolbarVisible: !1 }); case 'DROP_HANDLER': - return Jt({}, e, { - dashboardInfo: Jt({}, e.dashboardInfo, { - settings: Jt({}, e.dashboardInfo.settings, { - items: [].concat(nt()(e.dashboardInfo.settings.items), [ + return Lt({}, e, { + dashboardInfo: Lt({}, e.dashboardInfo, { + settings: Lt({}, e.dashboardInfo.settings, { + items: [].concat(bt()(e.dashboardInfo.settings.items), [ t.element ]) }) @@ -229802,10 +230222,10 @@ object-assign settingsVisible: t.id }); case 'DELETE_CHART': - return Jt({}, e, { + return Lt({}, e, { settingsVisible: !1, - dashboardInfo: Jt({}, n, { - settings: Jt({}, n.settings, { + dashboardInfo: Lt({}, n, { + settings: Lt({}, n.settings, { items: n.settings.items.filter(function(e) { return e.i !== t.index; }) @@ -229813,17 +230233,17 @@ object-assign }) }); case 'CLOSE_SETTINGS': - return Jt({}, e, { settingsVisible: !1 }); + return Lt({}, e, { settingsVisible: !1 }); case 'SHOW_SETTINGS': - return Jt({}, e, { settingsVisible: t.index }); + return Lt({}, e, { settingsVisible: t.index }); case 'SET_SRC_FOR_IMG': - return Jt({}, e, { - dashboardInfo: Jt({}, n, { - settings: Jt({}, n.settings, { - items: nt()( + return Lt({}, e, { + dashboardInfo: Lt({}, n, { + settings: Lt({}, n.settings, { + items: bt()( n.settings.items.map(function(e) { return t.index === e.i - ? Jt({}, e, { src: t.value }) + ? Lt({}, e, { src: t.value }) : e; }) ) @@ -229832,26 +230252,26 @@ object-assign }); case 'SET_TEXT_FOR_PARAGRAPH': return 'user' === t.source - ? Jt({}, e, { - dashboardInfo: Jt({}, n, { - settings: Jt({}, n.settings, { + ? Lt({}, e, { + dashboardInfo: Lt({}, n, { + settings: Lt({}, n.settings, { items: n.settings.items.map(function(e) { return t.index === e.i - ? Jt({}, e, { text: t.newValue }) + ? Lt({}, e, { text: t.newValue }) : e; }) }) }) }) - : Jt({}, e); + : Lt({}, e); case 'CLEAR_ITEMS': - return Jt({}, e, { - dashboardInfo: Jt({}, n, { - settings: Jt({}, n.settings, { items: [] }) + return Lt({}, e, { + dashboardInfo: Lt({}, n, { + settings: Lt({}, n.settings, { items: [] }) }) }); case 'CLONE_CHART': - var f = 'chart-'.concat(Gt()), + var f = 'chart-'.concat(Et()), d = n.settings.items.find(function(e) { return e.i === t.index; }), @@ -229865,80 +230285,80 @@ object-assign g = {}; if (h && h.style) { var m = new RegExp(''.concat(t.index), 'g'); - g = Jt({}, h, { style: h.style.replace(m, f) }); + g = Lt({}, h, { style: h.style.replace(m, f) }); } var b = p.x, y = p.y, v = p.w, _ = p.h, - x = d.type, - w = d.savedQuery, + w = d.type, + x = d.savedQuery, M = d.options, k = d.error, S = d.text, - A = d.src, - O = { + O = d.src, + E = { i: f, x: b, y: _ + y, w: v, h: _, - type: x, - savedQuery: w, + type: w, + savedQuery: x, options: M, error: k, text: S, - src: A + src: O }; - return Jt({}, e, { - dashboardInfo: Jt({}, n, { - settings: Jt({}, n.settings, { - items: [].concat(nt()(n.settings.items), [O]), - charts_theme: Jt( + return Lt({}, e, { + dashboardInfo: Lt({}, n, { + settings: Lt({}, n.settings, { + items: [].concat(bt()(n.settings.items), [E]), + charts_theme: Lt( {}, n.settings.charts_theme, - ot()({}, f, g) + vt()({}, f, g) ) }) }) }); case 'TOGGLE_DASHBOARDS_MENU': - return Jt({}, e, { dashboardsMenu: t.value || '' }); + return Lt({}, e, { dashboardsMenu: t.value || '' }); case 'SET_NEW_DASHBOARD_FOR_FOCUS': - return Jt({}, e, { newDashboardId: t.value }); + return Lt({}, e, { newDashboardId: t.value }); case 'SET_ACCESS_KEY': - return Jt({}, e, { accessKey: t.value }); + return Lt({}, e, { accessKey: t.value }); case 'CLEAR_ACCESS_KEY': - return Jt({}, e, { accessKey: '' }); + return Lt({}, e, { accessKey: '' }); case 'MAP_OLD_ITEMS': - return Jt({}, e, { dashboardInfo: t.newDashboard }); + return Lt({}, e, { dashboardInfo: t.newDashboard }); case 'LOADING_SINGLE_DASHBOARD': - return Jt({}, e, { isDashboardLoading: !0 }); + return Lt({}, e, { isDashboardLoading: !0 }); case 'FILTER_DASHBOARDS_MENU': - return Jt({}, e, { dashboardMenuFilter: t.value }); + return Lt({}, e, { dashboardMenuFilter: t.value }); case 'CHANGE_SORTING': - return Jt({}, e, { + return Lt({}, e, { sortingValue: t.sorting, - dashboardList: it(t.sorting.value, e.dashboardList) + dashboardList: _t(t.sorting.value, e.dashboardList) }); case 'CHANGE_SAVED_QUERY_LIST': - var E = t.savedQueriesList; - return Jt({}, e, { - dashboardInfo: Jt({}, n, { - settings: Jt({}, n.settings, { savedQueriesList: E }) + var A = t.savedQueriesList; + return Lt({}, e, { + dashboardInfo: Lt({}, n, { + settings: Lt({}, n.settings, { savedQueriesList: A }) }) }); case 'LOAD_DUMMY_DASHBOARDS': - return Jt({}, e, { - dashboardList: [at], - dashboardInfo: Jt({}, e.dashboardInfo, {}, at) + return Lt({}, e, { + dashboardList: [wt], + dashboardInfo: Lt({}, e.dashboardInfo, {}, wt) }); default: return e; } }) ), - nn = function(e) { + zt = function(e) { return function() { return function(t) { return function(n) { @@ -229956,39 +230376,35 @@ object-assign }; }; }, - rn = (n(199), n(200), n(98)), - on = n(38), - an = n.n(on), - sn = 'en', - cn = {}; - function un() { - return sn; + Nt = (n(221), n(222), n(113)), + Rt = n(51), + It = n.n(Rt), + Ft = 'en', + qt = {}; + function Bt() { + return Ft; } - function ln(e) { - return cn[e]; + function Ht(e) { + return qt[e]; } - function fn(e) { + function Yt(e) { var t = - arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, - n = t.localeMatcher || 'lookup'; - switch (n) { + (arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}) + .localeMatcher || 'lookup'; + switch (t) { case 'lookup': case 'best fit': - return dn(e); + return Wt(e); default: - throw new RangeError('Invalid "localeMatcher" option: '.concat(n)); + throw new RangeError('Invalid "localeMatcher" option: '.concat(t)); } } - function dn(e) { - if (ln(e)) return e; + function Wt(e) { + if (Ht(e)) return e; for (var t = e.split('-'); e.length > 1; ) - if ((t.pop(), ln((e = t.join('-'))))) return e; - } - function pn(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); + if ((t.pop(), Ht((e = t.join('-'))))) return e; } - function hn(e, t) { + function Vt(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -229997,7 +230413,7 @@ object-assign Object.defineProperty(e, r.key, r); } } - function gn(e, t, n) { + function Ut(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { @@ -230010,7 +230426,7 @@ object-assign e ); } - var mn = [ + var Xt = [ 'second', 'minute', 'hour', @@ -230020,9 +230436,9 @@ object-assign 'quarter', 'year' ], - bn = ['auto', 'always'], - yn = ['long', 'short', 'narrow'], - vn = (function() { + Gt = ['auto', 'always'], + Kt = ['long', 'short', 'narrow'], + $t = (function() { function e() { var t = arguments.length > 0 && void 0 !== arguments[0] @@ -230032,34 +230448,37 @@ object-assign arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; - pn(this, e), - gn(this, 'numeric', 'always'), - gn(this, 'style', 'long'), - gn(this, 'localeMatcher', 'lookup'); + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, e), + Ut(this, 'numeric', 'always'), + Ut(this, 'style', 'long'), + Ut(this, 'localeMatcher', 'lookup'); var r = n.numeric, o = n.style, i = n.localeMatcher; if (r) { - if (bn.indexOf(r) < 0) + if (Gt.indexOf(r) < 0) throw new RangeError('Invalid "numeric" option: '.concat(r)); this.numeric = r; } if (o) { - if (yn.indexOf(o) < 0) + if (Kt.indexOf(o) < 0) throw new RangeError('Invalid "style" option: '.concat(o)); this.style = o; } if ( (i && (this.localeMatcher = i), 'string' == typeof t && (t = [t]), - t.push(un()), + t.push(Bt()), (this.locale = e.supportedLocalesOf(t, { localeMatcher: this.localeMatcher })[0]), !this.locale) ) throw new TypeError('No supported locale was found'); - (this.locale = fn(this.locale, { + (this.locale = Yt(this.locale, { localeMatcher: this.localeMatcher })), 'undefined' != typeof Intl && @@ -230105,9 +230524,9 @@ object-assign { key: 'getRule', value: function(e, t) { - if (mn.indexOf(t) < 0) + if (Xt.indexOf(t) < 0) throw new RangeError('Unknown time unit: '.concat(t, '.')); - var n = ln(this.locale)[this.style][t]; + var n = Ht(this.locale)[this.style][t]; if ('auto' === this.numeric) if (-2 === e || -1 === e) { var r = @@ -230120,7 +230539,7 @@ object-assign } else if (0 === e && n.current) return n.current; var i = n[e <= 0 ? 'past' : 'future']; if ('string' == typeof i) return i; - var a = ln(this.locale).quantify, + var a = Ht(this.locale).quantify, s = a && a(Math.abs(e)); return i[(s = s || 'other')] || i.other; } @@ -230143,13 +230562,13 @@ object-assign }; } } - ]) && hn(t.prototype, n), - r && hn(t, r), + ]) && Vt(t.prototype, n), + r && Vt(t, r), e ); })(); - function _n(e) { - return (_n = + function Qt(e) { + return (Qt = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { return typeof e; @@ -230163,7 +230582,7 @@ object-assign : typeof e; })(e); } - function xn(e, t) { + function Jt(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -230172,25 +230591,25 @@ object-assign Object.defineProperty(e, r.key, r); } } - (vn.supportedLocalesOf = function(e) { + ($t.supportedLocalesOf = function(e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; return ( 'string' == typeof e && (e = [e]), e.filter(function(e) { - return fn(e, t); + return Yt(e, t); }) ); }), - (vn.addLocale = function(e) { + ($t.addLocale = function(e) { if (!e) throw new Error('No locale data passed'); - cn[e.locale] = e; + qt[e.locale] = e; }), - (vn.setDefaultLocale = function(e) { - sn = e; + ($t.setDefaultLocale = function(e) { + Ft = e; }), - (vn.getDefaultLocale = un); - var wn = (function() { + ($t.getDefaultLocale = Bt); + var Zt = (function() { function e() { !(function(e, t) { if (!(e instanceof t)) @@ -230225,7 +230644,7 @@ object-assign n[r] = arguments[r]; for (var o = 0; o < n.length; o++) { var i = n[o]; - if ('object' !== _n(e)) return; + if ('object' !== Qt(e)) return; e = e[i]; } return e; @@ -230246,18 +230665,18 @@ object-assign a++ ) { var s = t[a]; - 'object' !== _n(i[s]) && (i[s] = {}), (i = i[s]); + 'object' !== Qt(i[s]) && (i[s] = {}), (i = i[s]); } return (i[o] = r); } } - ]) && xn(t.prototype, n), - r && xn(t, r), + ]) && Jt(t.prototype, n), + r && Jt(t, r), e ); })(), - Mn = 86400; - function kn(e, t) { + en = 86400; + function tn(e, t) { var n = e, r = Array.isArray(n), o = 0; @@ -230274,10 +230693,10 @@ object-assign if (a.unit === t) return a; } } - function Sn(e) { + function nn(e) { return e instanceof Date ? e : new Date(e); } - var An = [ + var rn = [ { factor: 1, unit: 'now' }, { threshold: 1, threshold_for_now: 45, factor: 1, unit: 'second' }, { threshold: 45, factor: 60, unit: 'minute' }, @@ -230289,13 +230708,13 @@ object-assign factor: 3600, unit: 'hour' }, - { threshold: 73800, factor: Mn, unit: 'day' }, - { threshold: 475200, factor: 7 * Mn, unit: 'week' }, + { threshold: 73800, factor: en, unit: 'day' }, + { threshold: 475200, factor: 7 * en, unit: 'week' }, { threshold: 2116800, factor: 2630016, unit: 'month' }, { threshold: 27615168, factor: 31556952, unit: 'year' } ]; - function On(e) { - return (On = + function on(e) { + return (on = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { return typeof e; @@ -230309,60 +230728,64 @@ object-assign : typeof e; })(e); } - function En(e, t, n) { + function an(e, t, n) { var r = - arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : An; - if (0 !== (r = Ln(r, n)).length) { - var o = Cn(e, t, r), + arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : rn; + if ( + 0 !== + (r = (function(e, t) { + return e.filter(function(e) { + var n = e.unit; + return !n || t.indexOf(n) >= 0; + }); + })(r, n)).length + ) { + var o = (function e(t, n, r) { + var o = + arguments.length > 3 && void 0 !== arguments[3] + ? arguments[3] + : 0; + if ( + Math.abs(t) < + (function(e, t, n, r) { + var o; + e && + (e.id || e.unit) && + (o = t['threshold_for_'.concat(e.id || e.unit)]); + void 0 === o && (o = t.threshold); + 'function' == typeof o && (o = o(n, r)); + if (e && 'number' != typeof o) { + var i = on(o); + throw new Error( + 'Each step of a gradation must have a threshold defined except for the first one. Got "' + .concat(o, '", ') + .concat(i, '. Step: ') + .concat(JSON.stringify(t)) + ); + } + return o; + })(r[o - 1], r[o], n, t < 0) + ) + return o - 1; + if (o === r.length - 1) return o; + return e(t, n, r, o + 1); + })(e, t, r), i = r[o]; if (-1 !== o) { - if (i.granularity) { - var a = - Math.round(Math.abs(e) / i.factor / i.granularity) * - i.granularity; - if (0 === a && o > 0) return r[o - 1]; - } + if (i.granularity) + if ( + 0 === + Math.round(Math.abs(e) / i.factor / i.granularity) * + i.granularity && + o > 0 + ) + return r[o - 1]; return i; } } } - function Tn(e, t, n, r) { - var o; - if ( - (e && - (e.id || e.unit) && - (o = t['threshold_for_'.concat(e.id || e.unit)]), - void 0 === o && (o = t.threshold), - 'function' == typeof o && (o = o(n, r)), - e && 'number' != typeof o) - ) { - var i = On(o); - throw new Error( - 'Each step of a gradation must have a threshold defined except for the first one. Got "' - .concat(o, '", ') - .concat(i, '. Step: ') - .concat(JSON.stringify(t)) - ); - } - return o; - } - function Cn(e, t, n) { - var r = - arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : 0; - return Math.abs(e) < Tn(n[r - 1], n[r], t, e < 0) - ? r - 1 - : r === n.length - 1 - ? r - : Cn(e, t, n, r + 1); - } - function Ln(e, t) { - return e.filter(function(e) { - var n = e.unit; - return !n || t.indexOf(n) >= 0; - }); - } - function Pn(e) { - return (Pn = + function sn(e) { + return (sn = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { return typeof e; @@ -230376,52 +230799,28 @@ object-assign : typeof e; })(e); } - function Dn(e, t) { - var n = e, - r = Array.isArray(n), - o = 0; - for (n = r ? n : n[Symbol.iterator](); ; ) { - var i; - if (r) { - if (o >= n.length) break; - i = n[o++]; - } else { - if ((o = n.next()).done) break; - i = o.value; - } - var a = i; - if (t(a)) return a; - for (var s = a.split('-'); s.length > 1; ) - if ((s.pop(), t((a = s.join('-'))))) return a; - } - throw new Error( - 'No locale data has been registered for any of the locales: '.concat( - e.join(', ') - ) - ); - } - function zn() { + function cn() { return ( - 'object' === ('undefined' == typeof Intl ? 'undefined' : Pn(Intl)) && + 'object' === ('undefined' == typeof Intl ? 'undefined' : sn(Intl)) && 'function' == typeof Intl.DateTimeFormat ); } - var Nn = { - gradation: An, + var un = { + gradation: rn, flavour: ['long-convenient', 'long'], units: ['now', 'minute', 'hour', 'day', 'week', 'month', 'year'] }, - jn = [ + ln = [ { factor: 1, unit: 'now' }, { threshold: 0.5, factor: 1, unit: 'second' }, { threshold: 59.5, factor: 60, unit: 'minute' }, { threshold: 3570, factor: 3600, unit: 'hour' }, - { threshold: 84600, factor: Mn, unit: 'day' }, - { threshold: 561600, factor: 7 * Mn, unit: 'week' }, + { threshold: 84600, factor: en, unit: 'day' }, + { threshold: 561600, factor: 7 * en, unit: 'week' }, { threshold: 2116800, factor: 2630016, unit: 'month' }, { threshold: 30245184, factor: 31556952, unit: 'year' } ]; - function Rn(e, t, n) { + function fn(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { @@ -230434,8 +230833,8 @@ object-assign e ); } - var In = {}, - Fn = { + var dn = {}, + pn = { gradation: [ (function(e) { for (var t = 1; t < arguments.length; t++) { @@ -230448,24 +230847,24 @@ object-assign }) )), r.forEach(function(t) { - Rn(e, t, n[t]); + fn(e, t, n[t]); }); } return e; - })({}, kn(jn, 'minute'), { threshold: 45 }), - kn(jn, 'hour'), + })({}, tn(ln, 'minute'), { threshold: 45 }), + tn(ln, 'hour'), { threshold: 84600, format: function(e, t) { - if (zn()) + if (cn()) return ( - In[t] || (In[t] = {}), - In[t].this_year || - (In[t].this_year = new Intl.DateTimeFormat(t, { + dn[t] || (dn[t] = {}), + dn[t].this_year || + (dn[t].this_year = new Intl.DateTimeFormat(t, { month: 'short', day: 'numeric' })), - In[t].this_year.format(Sn(e)) + dn[t].this_year.format(nn(e)) ); } }, @@ -230478,33 +230877,33 @@ object-assign 1e3; }, format: function(e, t) { - if (zn()) + if (cn()) return ( - In[t] || (In[t] = {}), - In[t].other || - (In[t].other = new Intl.DateTimeFormat(t, { + dn[t] || (dn[t] = {}), + dn[t].other || + (dn[t].other = new Intl.DateTimeFormat(t, { year: 'numeric', month: 'short', day: 'numeric' })), - In[t].other.format(Sn(e)) + dn[t].other.format(nn(e)) ); } } ], flavour: ['tiny', 'short-time', 'narrow', 'short'] }, - qn = { - gradation: An, + hn = { + gradation: rn, flavour: 'long-time', units: ['now', 'minute', 'hour', 'day', 'week', 'month', 'year'] }, - Bn = {}; - function Hn(e) { - return Bn[e]; + gn = {}; + function mn(e) { + return gn[e]; } - function Yn(e) { - return (Yn = + function bn(e) { + return (bn = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { return typeof e; @@ -230518,11 +230917,7 @@ object-assign : typeof e; })(e); } - function Wn(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function Vn(e, t) { + function yn(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -230531,17 +230926,43 @@ object-assign Object.defineProperty(e, r.key, r); } } - var Un = (function() { + var vn = (function() { function e() { var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : []; - Wn(this, e), + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, e), 'string' == typeof t && (t = [t]), - (this.locale = Dn(t.concat(vn.getDefaultLocale()), Hn)), + (this.locale = (function(e, t) { + var n = e, + r = Array.isArray(n), + o = 0; + for (n = r ? n : n[Symbol.iterator](); ; ) { + var i; + if (r) { + if (o >= n.length) break; + i = n[o++]; + } else { + if ((o = n.next()).done) break; + i = o.value; + } + var a = i; + if (t(a)) return a; + for (var s = a.split('-'); s.length > 1; ) + if ((s.pop(), t((a = s.join('-'))))) return a; + } + throw new Error( + 'No locale data has been registered for any of the locales: '.concat( + e.join(', ') + ) + ); + })(t.concat($t.getDefaultLocale()), mn)), 'undefined' != typeof Intl && Intl.NumberFormat && (this.numberFormat = new Intl.NumberFormat(this.locale)), - (this.relativeTimeFormatCache = new wn()); + (this.relativeTimeFormatCache = new Zt()); } var t, n, r; return ( @@ -230553,19 +230974,19 @@ object-assign var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] - : Nn; + : un; if ('string' == typeof t) switch (t) { case 'twitter': - t = Fn; + t = pn; break; case 'time': - t = qn; + t = hn; break; default: - t = Nn; + t = un; } - var n = Xn(e), + var n = _n(e), r = n.date, o = n.time, i = this.getLocaleData(t.flavour), @@ -230583,7 +231004,7 @@ object-assign }); if (void 0 !== l) return l; } - var f = Gn(s, t.units); + var f = wn(s, t.units); if (0 === f.length) return ( console.error( @@ -230596,7 +231017,7 @@ object-assign ), '' ); - var d = En(u, c, f, t.gradation); + var d = an(u, c, f, t.gradation); if (!d) return ''; if (d.format) return d.format(r || o, this.locale); var p = d.unit, @@ -230604,7 +231025,7 @@ object-assign g = d.granularity, m = Math.abs(u) / h; if ((g && (m = Math.round(m / g) * g), 'now' === p)) - return Kn(s, -1 * Math.sign(u)); + return xn(s, -1 * Math.sign(u)); switch (a) { case 'long': case 'short': @@ -230638,7 +231059,7 @@ object-assign if ('string' == typeof r) return r; var o = r[e <= 0 ? 'past' : 'future'] || r; if ('string' == typeof o) return o; - var i = Hn(this.locale).quantify, + var i = mn(this.locale).quantify, a = i && i(Math.abs(e)); return o[(a = a || 'other')] || o.other; } @@ -230659,7 +231080,7 @@ object-assign this.relativeTimeFormatCache.put( this.locale, e, - new vn(this.locale, { style: e }) + new $t(this.locale, { style: e }) ) ); } @@ -230671,7 +231092,7 @@ object-assign arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [], - t = Hn(this.locale); + t = mn(this.locale); 'string' == typeof e && (e = [e]); var n = (e = e.concat('long')), r = Array.isArray(n), @@ -230690,26 +231111,26 @@ object-assign } } } - ]) && Vn(t.prototype, n), - r && Vn(t, r), + ]) && yn(t.prototype, n), + r && yn(t, r), e ); })(); - function Xn(e) { + function _n(e) { if ( e.constructor === Date || - ('object' === Yn((t = e)) && 'function' == typeof t.getTime) + ('object' === bn((t = e)) && 'function' == typeof t.getTime) ) return { date: e, time: e.getTime() }; var t; if ('number' == typeof e) return { time: e }; throw new Error( 'Unsupported relative time formatter input: ' - .concat(Yn(e), ', ') + .concat(bn(e), ', ') .concat(e) ); } - function Gn(e, t) { + function wn(e, t) { var n = Object.keys(e); return ( t && @@ -230723,7 +231144,7 @@ object-assign n ); } - function Kn(e, t) { + function xn(e, t) { return e.now ? 'string' == typeof e.now ? e.now @@ -230732,20 +231153,20 @@ object-assign : e.now.future : e.second.current; } - (Un.getDefaultLocale = vn.getDefaultLocale), - (Un.setDefaultLocale = vn.setDefaultLocale), - (Un.addLocale = function(e) { + (vn.getDefaultLocale = $t.getDefaultLocale), + (vn.setDefaultLocale = $t.setDefaultLocale), + (vn.addLocale = function(e) { !(function(e) { if (!e) throw new Error('[javascript-time-ago] No locale data passed.'); - Bn[e.locale] = e; + gn[e.locale] = e; })(e), - vn.addLocale(e); + $t.addLocale(e); }), - (Un.locale = Un.addLocale); - var $n = n(440), - Qn = n.n($n), - Jn = { + (vn.locale = vn.addLocale); + var Mn = n(469), + kn = n.n(Mn), + Sn = { prefix: 'fas', iconName: 'angle-double-right', icon: [ @@ -230756,7 +231177,7 @@ object-assign 'M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34zm192-34l-136-136c-9.4-9.4-24.6-9.4-33.9 0l-22.6 22.6c-9.4 9.4-9.4 24.6 0 33.9l96.4 96.4-96.4 96.4c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l136-136c9.4-9.2 9.4-24.4 0-33.8z' ] }, - Zn = { + On = { prefix: 'fas', iconName: 'bars', icon: [ @@ -230767,7 +231188,7 @@ object-assign 'M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z' ] }, - er = { + En = { prefix: 'fas', iconName: 'chart-area', icon: [ @@ -230778,7 +231199,7 @@ object-assign 'M500 384c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v308h436zM372.7 159.5L288 216l-85.3-113.7c-5.1-6.8-15.5-6.3-19.9 1L96 248v104h384l-89.9-187.8c-3.2-6.5-11.4-8.7-17.4-4.7z' ] }, - tr = { + An = { prefix: 'fas', iconName: 'chart-bar', icon: [ @@ -230789,7 +231210,7 @@ object-assign 'M332.8 320h38.4c6.4 0 12.8-6.4 12.8-12.8V172.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V76.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-288 0h38.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zM496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z' ] }, - nr = { + Tn = { prefix: 'fas', iconName: 'chart-line', icon: [ @@ -230800,7 +231221,7 @@ object-assign 'M496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM464 96H345.94c-21.38 0-32.09 25.85-16.97 40.97l32.4 32.4L288 242.75l-73.37-73.37c-12.5-12.5-32.76-12.5-45.25 0l-68.69 68.69c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L192 237.25l73.37 73.37c12.5 12.5 32.76 12.5 45.25 0l96-96 32.4 32.4c15.12 15.12 40.97 4.41 40.97-16.97V112c.01-8.84-7.15-16-15.99-16z' ] }, - rr = { + Cn = { prefix: 'fas', iconName: 'chart-pie', icon: [ @@ -230811,7 +231232,7 @@ object-assign 'M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z' ] }, - or = { + Ln = { prefix: 'fas', iconName: 'chevron-right', icon: [ @@ -230822,7 +231243,7 @@ object-assign 'M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z' ] }, - ir = { + Pn = { prefix: 'fas', iconName: 'clone', icon: [ @@ -230833,7 +231254,7 @@ object-assign 'M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z' ] }, - ar = { + Dn = { prefix: 'fas', iconName: 'code', icon: [ @@ -230844,7 +231265,7 @@ object-assign 'M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z' ] }, - sr = { + jn = { prefix: 'fas', iconName: 'cog', icon: [ @@ -230855,7 +231276,7 @@ object-assign 'M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z' ] }, - cr = { + zn = { prefix: 'fas', iconName: 'copy', icon: [ @@ -230866,7 +231287,7 @@ object-assign 'M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z' ] }, - ur = { + Nn = { prefix: 'fas', iconName: 'edit', icon: [ @@ -230877,18 +231298,18 @@ object-assign 'M402.6 83.2l90.2 90.2c3.8 3.8 3.8 10 0 13.8L274.4 405.6l-92.8 10.3c-12.4 1.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8 83.2c3.8-3.8 10-3.8 13.8 0zm162-22.9l-48.8-48.8c-15.2-15.2-39.9-15.2-55.2 0l-35.4 35.4c-3.8 3.8-3.8 10 0 13.8l90.2 90.2c3.8 3.8 10 3.8 13.8 0l35.4-35.4c15.2-15.3 15.2-40 0-55.2zM384 346.2V448H64V128h229.8c3.2 0 6.2-1.3 8.5-3.5l40-40c7.6-7.6 2.2-20.5-8.5-20.5H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V306.2c0-10.7-12.9-16-20.5-8.5l-40 40c-2.2 2.3-3.5 5.3-3.5 8.5z' ] }, - lr = { + Rn = { prefix: 'fas', iconName: 'external-link-alt', icon: [ - 512, + 576, 512, [], 'f35d', - 'M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z' + 'M576 24v127.984c0 21.461-25.96 31.98-40.971 16.971l-35.707-35.709-243.523 243.523c-9.373 9.373-24.568 9.373-33.941 0l-22.627-22.627c-9.373-9.373-9.373-24.569 0-33.941L442.756 76.676l-35.703-35.705C391.982 25.9 402.656 0 424.024 0H552c13.255 0 24 10.745 24 24zM407.029 270.794l-16 16A23.999 23.999 0 0 0 384 303.765V448H64V128h264a24.003 24.003 0 0 0 16.97-7.029l16-16C376.089 89.851 365.381 64 344 64H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V287.764c0-21.382-25.852-32.09-40.971-16.97z' ] }, - fr = { + In = { prefix: 'fas', iconName: 'eye', icon: [ @@ -230899,7 +231320,7 @@ object-assign 'M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z' ] }, - dr = { + Fn = { prefix: 'fas', iconName: 'file-download', icon: [ @@ -230910,7 +231331,7 @@ object-assign 'M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm76.45 211.36l-96.42 95.7c-6.65 6.61-17.39 6.61-24.04 0l-96.42-95.7C73.42 337.29 80.54 320 94.82 320H160v-80c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v80h65.18c14.28 0 21.4 17.29 11.27 27.36zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z' ] }, - pr = { + qn = { prefix: 'fas', iconName: 'filter', icon: [ @@ -230921,7 +231342,7 @@ object-assign 'M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z' ] }, - hr = { + Bn = { prefix: 'fas', iconName: 'image', icon: [ @@ -230932,7 +231353,7 @@ object-assign 'M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z' ] }, - gr = { + Hn = { prefix: 'fas', iconName: 'info-circle', icon: [ @@ -230943,7 +231364,7 @@ object-assign 'M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z' ] }, - mr = { + Yn = { prefix: 'fas', iconName: 'laptop', icon: [ @@ -230954,7 +231375,7 @@ object-assign 'M624 416H381.54c-.74 19.81-14.71 32-32.74 32H288c-18.69 0-33.02-17.47-32.77-32H16c-8.8 0-16 7.2-16 16v16c0 35.2 28.8 64 64 64h512c35.2 0 64-28.8 64-64v-16c0-8.8-7.2-16-16-16zM576 48c0-26.4-21.6-48-48-48H112C85.6 0 64 21.6 64 48v336h512V48zm-64 272H128V64h384v256z' ] }, - br = { + Wn = { prefix: 'fas', iconName: 'mobile-alt', icon: [ @@ -230965,7 +231386,7 @@ object-assign 'M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm112-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v312z' ] }, - yr = { + Vn = { prefix: 'fas', iconName: 'paragraph', icon: [ @@ -230976,7 +231397,7 @@ object-assign 'M448 48v32a16 16 0 0 1-16 16h-48v368a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16V96h-32v368a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16V352h-32a160 160 0 0 1 0-320h240a16 16 0 0 1 16 16z' ] }, - vr = { + Un = { prefix: 'fas', iconName: 'plus-circle', icon: [ @@ -230987,7 +231408,7 @@ object-assign 'M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z' ] }, - _r = { + Xn = { prefix: 'fas', iconName: 'save', icon: [ @@ -230998,7 +231419,7 @@ object-assign 'M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z' ] }, - xr = { + Gn = { prefix: 'fas', iconName: 'search', icon: [ @@ -231009,7 +231430,7 @@ object-assign 'M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z' ] }, - wr = { + Kn = { prefix: 'fas', iconName: 'share-alt', icon: [ @@ -231020,7 +231441,7 @@ object-assign 'M352 320c-22.608 0-43.387 7.819-59.79 20.895l-102.486-64.054a96.551 96.551 0 0 0 0-41.683l102.486-64.054C308.613 184.181 329.392 192 352 192c53.019 0 96-42.981 96-96S405.019 0 352 0s-96 42.981-96 96c0 7.158.79 14.13 2.276 20.841L155.79 180.895C139.387 167.819 118.608 160 96 160c-53.019 0-96 42.981-96 96s42.981 96 96 96c22.608 0 43.387-7.819 59.79-20.895l102.486 64.054A96.301 96.301 0 0 0 256 416c0 53.019 42.981 96 96 96s96-42.981 96-96-42.981-96-96-96z' ] }, - Mr = { + $n = { prefix: 'fas', iconName: 'spinner', icon: [ @@ -231031,7 +231452,7 @@ object-assign 'M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z' ] }, - kr = { + Qn = { prefix: 'fas', iconName: 'table', icon: [ @@ -231042,7 +231463,7 @@ object-assign 'M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64v-96h160v96zm0-160H64v-96h160v96zm224 160H288v-96h160v96zm0-160H288v-96h160v96z' ] }, - Sr = { + Jn = { prefix: 'fas', iconName: 'tablet-alt', icon: [ @@ -231053,7 +231474,7 @@ object-assign 'M400 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM224 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm176-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h328c6.6 0 12 5.4 12 12v312z' ] }, - Ar = { + Zn = { prefix: 'fas', iconName: 'times', icon: [ @@ -231064,7 +231485,7 @@ object-assign 'M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z' ] }, - Or = { + er = { prefix: 'fas', iconName: 'trash-alt', icon: [ @@ -231075,18 +231496,18 @@ object-assign 'M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z' ] }, - Er = c.a.createContext({}), - Tr = function(e) { - return Object(on.get)( + tr = c.a.createContext({}), + nr = function(e) { + return Object(Rt.get)( e, ['app', 'dashboardInfo', 'settings', 'savedQueriesList'], [] ); }, - Cr = function(e) { - return Object(on.get)(e, ['app', 'dashboardInfo']); + rr = function(e) { + return Object(Rt.get)(e, ['app', 'dashboardInfo']); }, - Lr = function(e, t, n) { + or = function(e, t, n) { var r = Array.from(new Set(e)), o = 'public-dashboard: '.concat(t); n.get({ @@ -231108,7 +231529,7 @@ object-assign }); }); }; - function Pr(e, t) { + function ir(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); @@ -231120,16 +231541,16 @@ object-assign } return n; } - function Dr(e) { + function ar(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 - ? Pr(Object(n), !0).forEach(function(t) { - ot()(e, t, n[t]); + ? ir(n, !0).forEach(function(t) { + vt()(e, t, n[t]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) - : Pr(Object(n)).forEach(function(t) { + : ir(n).forEach(function(t) { Object.defineProperty( e, t, @@ -231139,7 +231560,7 @@ object-assign } return e; } - function zr(e, t) { + function sr(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); @@ -231151,16 +231572,16 @@ object-assign } return n; } - function Nr(e) { + function cr(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 - ? zr(Object(n), !0).forEach(function(t) { - ot()(e, t, n[t]); + ? sr(n, !0).forEach(function(t) { + vt()(e, t, n[t]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) - : zr(Object(n)).forEach(function(t) { + : sr(n).forEach(function(t) { Object.defineProperty( e, t, @@ -231170,9 +231591,9 @@ object-assign } return e; } - var jr = function(e, t) { + var ur = function(e, t) { var n = e.data.items.map(function(e) { - return Nr({}, e, { + return cr({}, e, { i: t(), w: Math.floor(e.width / 100), h: 3 * Math.floor(e.height / 100), @@ -231180,13 +231601,13 @@ object-assign y: Math.floor(e.top / 100) }); }); - return Nr({}, e, { - settings: Nr({}, e.settings, { layout: nt()(n), items: nt()(n) }) + return cr({}, e, { + settings: cr({}, e.settings, { layout: bt()(n), items: bt()(n) }) }); }, - Rr = n(127), - Ir = n.n(Rr), - Fr = function(e) { + lr = n(142), + fr = n.n(lr), + dr = function(e) { var t = (function(e) { var t = new Set(), n = e.settings; @@ -231208,9 +231629,9 @@ object-assign } return Array.from(t); })(e); - t.length && Ir.a.load({ google: { families: t } }); + t.length && fr.a.load({ google: { families: t } }); }; - function qr(e, t) { + function pr(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); @@ -231222,16 +231643,16 @@ object-assign } return n; } - function Br(e) { + function hr(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 - ? qr(Object(n), !0).forEach(function(t) { - ot()(e, t, n[t]); + ? pr(n, !0).forEach(function(t) { + vt()(e, t, n[t]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) - : qr(Object(n)).forEach(function(t) { + : pr(n).forEach(function(t) { Object.defineProperty( e, t, @@ -231241,7 +231662,7 @@ object-assign } return e; } - var Hr = function() { + var gr = function() { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] @@ -231254,7 +231675,7 @@ object-assign 'https://' .concat(i, '/projects/') .concat(o.projectId(), '/dashboards/'), - Br( + hr( { method: 'post', body: JSON.stringify({ @@ -231276,7 +231697,7 @@ object-assign }); }; }, - Yr = function(e) { + mr = function(e) { return function(t, n, r) { var o = r.keenClient; r.keenWebHost, r.keenWebFetchOptions; @@ -231301,10 +231722,10 @@ object-assign }); }; }, - Wr = function(e, t) { + br = function(e, t) { return { type: 'SAVED_QUERY_ERROR', error: e, index: t }; }, - Vr = function() { + yr = function() { return function(e, t, n) { var r = n.keenClient, o = n.keenWebHost, @@ -231313,7 +231734,7 @@ object-assign 'https://' .concat(o, '/projects/') .concat(r.projectId(), '/dashboards'), - Br({}, i) + hr({}, i) ) .then(function(t) { return t.json().then(function(t) { @@ -231325,7 +231746,7 @@ object-assign }); }; }, - Ur = function(e) { + vr = function(e) { return function(t, n, r) { var o = r.keenClient, i = r.keenWebHost, @@ -231335,12 +231756,12 @@ object-assign .concat(i, '/projects/') .concat(o.projectId(), '/dashboards/') .concat(e), - Br({}, a) + hr({}, a) ) .then(function(n) { return n.json().then(function(n) { var r, o, i, a, s, c, u, l; - Fr(n), + dr(n), t({ type: 'LOAD_DASHBOARD_INFO', dashboardInfo: @@ -231348,7 +231769,7 @@ object-assign !r.settings.items || (r.settings.items && !r.settings.items.length) ? !r.data.items || (r.data.items && !r.data.version) - ? ((i = Gt), + ? ((i = Et), (s = function() { var e = arguments.length > 0 && @@ -231360,7 +231781,7 @@ object-assign return t.charAt(0).toUpperCase() + t.slice(1); }), (c = 0), - (u = Dr({}, (o = r), { + (u = ar({}, (o = r), { settings: { items: o.rows.map(function(e) { (c += Math.floor(e.height / 100)), @@ -231402,15 +231823,15 @@ object-assign })), (l = []), u.settings.items.forEach(function(e) { - l.push.apply(l, nt()(e)); + l.push.apply(l, bt()(e)); }), - Dr({}, u, { - settings: Dr({}, u.settings, { + ar({}, u, { + settings: ar({}, u.settings, { items: l, layout: l }) })) - : jr(r, Gt) + : ur(r, Et) : r), id: e, isDashboardLoading: !1 @@ -231422,10 +231843,10 @@ object-assign }); }; }, - Xr = function() { + _r = function() { return { type: 'CLEAR_DASHBOARD_INFO' }; }, - Gr = function(e) { + wr = function(e) { return function(t, n, r) { var o = r.keenClient, i = r.keenWebHost, @@ -231436,7 +231857,7 @@ object-assign .concat(i, '/projects/') .concat(o.projectId(), '/dashboards/') .concat(e.id), - Br({ method: 'put', body: JSON.stringify(e) }, a) + hr({ method: 'put', body: JSON.stringify(e) }, a) ) .then(function(e) { 200 === e.status && @@ -231447,45 +231868,45 @@ object-assign }); }; }, - Kr = function() { + xr = function() { return { type: 'TOGGLE_IS_PUBLIC' }; }, - $r = function(e, t) { + Mr = function(e, t) { return { type: 'DROP_HANDLER', element: e, id: t }; }, - Qr = function(e) { + kr = function(e) { return { type: 'SET_LOADING', index: e }; }, - Jr = function(e) { + Sr = function(e) { return { type: 'LOAD_SAVED_QUERIES', index: e }; }, - Zr = function() { + Or = function() { return { type: 'CLOSE_SETTINGS' }; }, - eo = function(e) { + Er = function(e) { return { type: 'SHOW_SETTINGS', index: e }; }, - to = function(e) { + Ar = function(e) { return { type: 'TOGGLE_DASHBOARDS_MENU', value: e }; }, - no = function(e) { + Tr = function(e) { return { type: 'SET_NEW_DASHBOARD_FOR_FOCUS', value: e }; }, - ro = function(e) { + Cr = function(e) { return { type: 'SET_ACCESS_KEY', value: e }; }, - oo = function() { + Lr = function() { return { type: 'CLEAR_ACCESS_KEY' }; }, - io = function() { + Pr = function() { return { type: 'LOADING_SINGLE_DASHBOARD' }; }, - ao = function(e, t) { + Dr = function(e, t) { return function(n, r) { var o = r(), - i = Cr(o), + i = rr(o), a = i.settings.savedQueriesList - ? nt()(i.settings.savedQueriesList) + ? bt()(i.settings.savedQueriesList) : []; a.length && e && @@ -231500,411 +231921,57 @@ object-assign n({ type: 'CHANGE_SAVED_QUERY_LIST', savedQueriesList: a }); }; }, - so = function(e) { - return Object(on.omit)(e, ['last_modified_date']); + jr = function(e) { + return Object(Rt.omit)(e, ['last_modified_date']); }, - co = function(e) { + zr = function(e) { var t = {}, n = null; return e.subscribe(function() { var r = e.getState(), o = t, - i = Cr(r); + i = rr(r); (function(e) { - return Object(on.get)(e, ['app', 'isMoving']); + return Object(Rt.get)(e, ['app', 'isMoving']); })(r) || (function(e) { - return Object(on.get)(e, ['app', 'isResizing']); + return Object(Rt.get)(e, ['app', 'isResizing']); })(r) || - Object(on.isEqual)(so(o), so(i)) || + Object(Rt.isEqual)(jr(o), jr(i)) || (o.id === i.id && (n && clearTimeout(n), (n = setTimeout(function() { - e.dispatch(Gr(i)), (n = null); + e.dispatch(wr(i)), (n = null); }, 1e4))), (t = i)); }); - }; - function uo(e) { - return (uo = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(e) { - return typeof e; - } - : function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - })(e); - } - function lo(e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e - ); - } - function fo(e, t) { - var n = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var r = Object.getOwnPropertySymbols(e); - t && - (r = r.filter(function(t) { - return Object.getOwnPropertyDescriptor(e, t).enumerable; - })), - n.push.apply(n, r); - } - return n; - } - function po(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}; - t % 2 - ? fo(Object(n), !0).forEach(function(t) { - lo(e, t, n[t]); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) - : fo(Object(n)).forEach(function(t) { - Object.defineProperty( - e, - t, - Object.getOwnPropertyDescriptor(n, t) - ); - }); - } - return e; - } - function ho(e, t) { - if (null == e) return {}; - var n, - r, - o = (function(e, t) { - if (null == e) return {}; - var n, - r, - o = {}, - i = Object.keys(e); - for (r = 0; r < i.length; r++) - (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); - return o; - })(e, t); - if (Object.getOwnPropertySymbols) { - var i = Object.getOwnPropertySymbols(e); - for (r = 0; r < i.length; r++) - (n = i[r]), - t.indexOf(n) >= 0 || - (Object.prototype.propertyIsEnumerable.call(e, n) && - (o[n] = e[n])); - } - return o; - } - function go(e) { - return ( - (function(e) { - if (Array.isArray(e)) { - for (var t = 0, n = new Array(e.length); t < e.length; t++) - n[t] = e[t]; - return n; - } - })(e) || - (function(e) { - if ( - Symbol.iterator in Object(e) || - '[object Arguments]' === Object.prototype.toString.call(e) - ) - return Array.from(e); - })(e) || - (function() { - throw new TypeError( - 'Invalid attempt to spread non-iterable instance' - ); - })() - ); - } - function mo(e) { - return ( - (t = e), - (t -= 0) == t - ? e - : (e = e.replace(/[\-_\s]+(.)?/g, function(e, t) { - return t ? t.toUpperCase() : ''; - })) - .substr(0, 1) - .toLowerCase() + e.substr(1) - ); - var t; - } - function bo(e) { - return e - .split(';') - .map(function(e) { - return e.trim(); - }) - .filter(function(e) { - return e; - }) - .reduce(function(e, t) { - var n, - r = t.indexOf(':'), - o = mo(t.slice(0, r)), - i = t.slice(r + 1).trim(); - return ( - o.startsWith('webkit') - ? (e[((n = o), n.charAt(0).toUpperCase() + n.slice(1))] = i) - : (e[o] = i), - e - ); - }, {}); - } - var yo = !1; - try { - yo = !0; - } catch (e) {} - function vo(e) { - return null === e - ? null - : 'object' === uo(e) && e.prefix && e.iconName - ? e - : Array.isArray(e) && 2 === e.length - ? { prefix: e[0], iconName: e[1] } - : 'string' == typeof e - ? { prefix: 'fas', iconName: e } - : void 0; - } - function _o(e, t) { - return (Array.isArray(t) && t.length > 0) || (!Array.isArray(t) && t) - ? lo({}, e, t) - : {}; - } - function xo(e) { - var t = e.icon, - n = e.mask, - r = e.symbol, - o = e.className, - i = e.title, - a = vo(t), - s = _o( - 'classes', - [].concat( - go( - (function(e) { - var t, - n = e.spin, - r = e.pulse, - o = e.fixedWidth, - i = e.inverse, - a = e.border, - s = e.listItem, - c = e.flip, - u = e.size, - l = e.rotation, - f = e.pull, - d = - (lo( - (t = { - 'fa-spin': n, - 'fa-pulse': r, - 'fa-fw': o, - 'fa-inverse': i, - 'fa-border': a, - 'fa-li': s, - 'fa-flip-horizontal': - 'horizontal' === c || 'both' === c, - 'fa-flip-vertical': 'vertical' === c || 'both' === c - }), - 'fa-'.concat(u), - null != u - ), - lo(t, 'fa-rotate-'.concat(l), null != l), - lo(t, 'fa-pull-'.concat(f), null != f), - lo(t, 'fa-swap-opacity', e.swapOpacity), - t); - return Object.keys(d) - .map(function(e) { - return d[e] ? e : null; - }) - .filter(function(e) { - return e; - }); - })(e) - ), - go(o.split(' ')) - ) - ), - c = _o( - 'transform', - 'string' == typeof e.transform - ? rn.c.transform(e.transform) - : e.transform - ), - u = _o('mask', vo(n)), - l = Object(rn.a)(a, po({}, s, {}, c, {}, u, { symbol: r, title: i })); - if (!l) - return ( - (function() { - var e; - !yo && - console && - 'function' == typeof console.error && - (e = console).error.apply(e, arguments); - })('Could not find icon', a), - null - ); - var f = l.abstract, - d = {}; - return ( - Object.keys(e).forEach(function(t) { - xo.defaultProps.hasOwnProperty(t) || (d[t] = e[t]); - }), - wo(f[0], d) - ); - } - (xo.displayName = 'FontAwesomeIcon'), - (xo.propTypes = { - border: p.a.bool, - className: p.a.string, - mask: p.a.oneOfType([p.a.object, p.a.array, p.a.string]), - fixedWidth: p.a.bool, - inverse: p.a.bool, - flip: p.a.oneOf(['horizontal', 'vertical', 'both']), - icon: p.a.oneOfType([p.a.object, p.a.array, p.a.string]), - listItem: p.a.bool, - pull: p.a.oneOf(['right', 'left']), - pulse: p.a.bool, - rotation: p.a.oneOf([90, 180, 270]), - size: p.a.oneOf([ - 'lg', - 'xs', - 'sm', - '1x', - '2x', - '3x', - '4x', - '5x', - '6x', - '7x', - '8x', - '9x', - '10x' - ]), - spin: p.a.bool, - symbol: p.a.oneOfType([p.a.bool, p.a.string]), - title: p.a.string, - transform: p.a.oneOfType([p.a.string, p.a.object]), - swapOpacity: p.a.bool - }), - (xo.defaultProps = { - border: !1, - className: '', - mask: null, - fixedWidth: !1, - inverse: !1, - flip: null, - icon: null, - listItem: !1, - pull: null, - pulse: !1, - rotation: null, - size: null, - spin: !1, - symbol: !1, - title: '', - transform: null, - swapOpacity: !1 - }); - var wo = function e(t, n) { - var r = - arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; - if ('string' == typeof n) return n; - var o = (n.children || []).map(function(n) { - return e(t, n); - }), - i = Object.keys(n.attributes || {}).reduce( - function(e, t) { - var r = n.attributes[t]; - switch (t) { - case 'class': - (e.attrs.className = r), delete n.attributes.class; - break; - case 'style': - e.attrs.style = bo(r); - break; - default: - 0 === t.indexOf('aria-') || 0 === t.indexOf('data-') - ? (e.attrs[t.toLowerCase()] = r) - : (e.attrs[mo(t)] = r); - } - return e; - }, - { attrs: {} } - ), - a = r.style, - s = void 0 === a ? {} : a, - c = ho(r, ['style']); - return ( - (i.attrs.style = po({}, i.attrs.style, {}, s)), - t.apply(void 0, [n.tag, po({}, i.attrs, {}, c)].concat(go(o))) - ); - }.bind(null, c.a.createElement), - Mo = n(16), - ko = n.n(Mo), - So = n(17), - Ao = n.n(So), - Oo = n(18), - Eo = n.n(Oo), - To = n(8), - Co = n.n(To); - function Lo() { - if ('undefined' == typeof Reflect || !Reflect.construct) return !1; - if (Reflect.construct.sham) return !1; - if ('function' == typeof Proxy) return !0; - try { - return ( - Date.prototype.toString.call( - Reflect.construct(Date, [], function() {}) - ), - !0 - ); - } catch (e) { - return !1; - } - } - var Po = (function(e) { - Ao()(r, e); - var t, - n = - ((t = r), - function() { - var e, - n = Co()(t); - if (Lo()) { - var r = Co()(this).constructor; - e = Reflect.construct(n, arguments, r); - } else e = n.apply(this, arguments); - return Eo()(this, e); - }); - function r(e) { - var t; + }, + Nr = n(8), + Rr = n(26), + Ir = n.n(Rr), + Fr = n(27), + qr = n.n(Fr), + Br = n(28), + Hr = n.n(Br), + Yr = n(29), + Wr = n.n(Yr), + Vr = (function(e) { + function t(e) { + var n; return ( - a()(this, r), - ((t = n.call(this, e)).addDashboard = function() { - t.props.addDashboardItem(); + a()(this, t), + ((n = qr()( + this, + Hr()(t).call(this, e) + )).addDashboard = function() { + n.props.addDashboardItem(); }), - t + n ); } return ( - ko()(r, [ + Wr()(t, e), + Ir()(t, [ { key: 'componentDidUpdate', value: function() { @@ -231931,17 +231998,20 @@ object-assign className: 'new-dashboard-button', onClick: this.addDashboard }, - c.a.createElement(xo, { icon: 'plus-circle', size: 'sm' }), + c.a.createElement(Nr.a, { + icon: 'plus-circle', + size: 'sm' + }), ' New dashboard' ); } } ]), - r + t ); })(c.a.Component), - Do = se( - Ge( + Ur = fe( + ot( function(e) { var t = e.app; return { @@ -231951,22 +232021,22 @@ object-assign }; }, { - addDashboardItem: Hr, - toggleDashboardsMenu: to, - setNewDashboardForFocus: no, - clearAccessKey: oo + addDashboardItem: gr, + toggleDashboardsMenu: Ar, + setNewDashboardForFocus: Tr, + clearAccessKey: Lr } - )(Po) + )(Vr) ), - zo = n(34), - No = n(9), - jo = n(100), - Ro = n.n(jo), - Io = n(51), - Fo = n.n(Io), - qo = n(129); - function Bo(e) { - return (Bo = + Xr = n(50), + Gr = n(16), + Kr = n(115), + $r = n.n(Kr), + Qr = n(456), + Jr = n.n(Qr), + Zr = n(144); + function eo(e) { + return (eo = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { return typeof e; @@ -231980,11 +232050,11 @@ object-assign : typeof e; })(e); } - function Ho(e, t) { + function to(e, t) { if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function'); } - function Yo(e, t) { + function no(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -231993,10 +232063,10 @@ object-assign Object.defineProperty(e, r.key, r); } } - function Wo(e, t, n) { - return t && Yo(e.prototype, t), n && Yo(e, n), e; + function ro(e, t, n) { + return t && no(e.prototype, t), n && no(e, n), e; } - function Vo(e, t, n) { + function oo(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { @@ -232009,8 +232079,8 @@ object-assign e ); } - function Uo() { - return (Uo = + function io() { + return (io = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { @@ -232021,7 +232091,7 @@ object-assign return e; }).apply(this, arguments); } - function Xo(e) { + function ao(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}, r = Object.keys(n); @@ -232032,12 +232102,12 @@ object-assign }) )), r.forEach(function(t) { - Vo(e, t, n[t]); + oo(e, t, n[t]); }); } return e; } - function Go(e, t) { + function so(e, t) { if ('function' != typeof t && null !== t) throw new TypeError( 'Super expression must either be null or a function' @@ -232045,23 +232115,23 @@ object-assign (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } })), - t && $o(e, t); + t && uo(e, t); } - function Ko(e) { - return (Ko = Object.setPrototypeOf + function co(e) { + return (co = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function $o(e, t) { - return ($o = + function uo(e, t) { + return (uo = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; })(e, t); } - function Qo(e, t) { + function lo(e, t) { if (null == e) return {}; var n, r, @@ -232085,19 +232155,19 @@ object-assign } return o; } - function Jo(e) { + function fo(e) { if (void 0 === e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return e; } - function Zo(e, t) { + function po(e, t) { return !t || ('object' != typeof t && 'function' != typeof t) - ? Jo(e) + ? fo(e) : t; } - function ei(e) { + function ho(e) { return ( (function(e) { if (Array.isArray(e)) { @@ -232120,15 +232190,15 @@ object-assign })() ); } - var ti = function() {}; - function ni(e, t) { + var go = function() {}; + function mo(e, t) { return t ? ('-' === t[0] ? e + t : e + '__' + t) : e; } - function ri(e, t, n, r) { + function bo(e, t, n, r) { var o = [t, r]; if (n && e) for (var i in n) - n.hasOwnProperty(i) && n[i] && o.push(''.concat(ni(e, i))); + n.hasOwnProperty(i) && n[i] && o.push(''.concat(mo(e, i))); return o .filter(function(e) { return e; @@ -232138,52 +232208,49 @@ object-assign }) .join(' '); } - var oi = function(e) { + var yo = function(e) { return Array.isArray(e) ? e.filter(Boolean) - : 'object' === Bo(e) && null !== e + : 'object' === eo(e) && null !== e ? [e] : []; }; - function ii(e) { + function vo(e) { return ( [document.documentElement, document.body, window].indexOf(e) > -1 ); } - function ai(e) { - return ii(e) ? window.pageYOffset : e.scrollTop; - } - function si(e, t) { - ii(e) ? window.scrollTo(0, t) : (e.scrollTop = t); + function _o(e) { + return vo(e) ? window.pageYOffset : e.scrollTop; } - function ci(e, t, n, r) { - return n * ((e = e / r - 1) * e * e + 1) + t; + function wo(e, t) { + vo(e) ? window.scrollTo(0, t) : (e.scrollTop = t); } - function ui(e, t) { + function xo(e, t) { var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 200, r = - arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : ti, - o = ai(e), + arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : go, + o = _o(e), i = t - o, a = 10, s = 0; - function c() { - var t = ci((s += a), o, i, n); - si(e, t), s < n ? Ro()(c) : r(e); - } - c(); + !(function t() { + var c, + u = i * ((c = (c = s += a) / n - 1) * c * c + 1) + o; + wo(e, u), s < n ? $r()(t) : r(e); + })(); } - function li() { + function Mo() { try { return document.createEvent('TouchEvent'), !0; } catch (e) { return !1; } } - function fi(e) { + function ko(e) { var t = e.maxHeight, n = e.menuEl, r = e.minHeight, @@ -232215,47 +232282,47 @@ object-assign h = f.top, g = n.offsetParent.getBoundingClientRect().top, m = window.innerHeight, - b = ai(c), + b = _o(c), y = parseInt(getComputedStyle(n).marginBottom, 10), v = parseInt(getComputedStyle(n).marginTop, 10), _ = g - v, - x = m - h, - w = _ + b, + w = m - h, + x = _ + b, M = l - b - h, k = d - m + b + y, S = b + h - v; switch (o) { case 'auto': case 'bottom': - if (x >= p) return { placement: 'bottom', maxHeight: t }; + if (w >= p) return { placement: 'bottom', maxHeight: t }; if (M >= p && !a) - return i && ui(c, k, 160), { placement: 'bottom', maxHeight: t }; - if ((!a && M >= r) || (a && x >= r)) + return i && xo(c, k, 160), { placement: 'bottom', maxHeight: t }; + if ((!a && M >= r) || (a && w >= r)) return ( - i && ui(c, k, 160), - { placement: 'bottom', maxHeight: a ? x - y : M - y } + i && xo(c, k, 160), + { placement: 'bottom', maxHeight: a ? w - y : M - y } ); if ('auto' === o || a) { - var A = t, - O = a ? _ : w; + var O = t, + E = a ? _ : x; return ( - O >= r && (A = Math.min(O - y - s.controlHeight, t)), - { placement: 'top', maxHeight: A } + E >= r && (O = Math.min(E - y - s.controlHeight, t)), + { placement: 'top', maxHeight: O } ); } if ('bottom' === o) - return si(c, k), { placement: 'bottom', maxHeight: t }; + return wo(c, k), { placement: 'bottom', maxHeight: t }; break; case 'top': if (_ >= p) return { placement: 'top', maxHeight: t }; - if (w >= p && !a) - return i && ui(c, S, 160), { placement: 'top', maxHeight: t }; - if ((!a && w >= r) || (a && _ >= r)) { - var E = t; + if (x >= p && !a) + return i && xo(c, S, 160), { placement: 'top', maxHeight: t }; + if ((!a && x >= r) || (a && _ >= r)) { + var A = t; return ( - ((!a && w >= r) || (a && _ >= r)) && (E = a ? _ - v : w - v), - i && ui(c, S, 160), - { placement: 'top', maxHeight: E } + ((!a && x >= r) || (a && _ >= r)) && (A = a ? _ - v : x - v), + i && xo(c, S, 160), + { placement: 'top', maxHeight: A } ); } return { placement: 'bottom', maxHeight: t }; @@ -232264,26 +232331,26 @@ object-assign } return u; } - var di = function(e) { + var So = function(e) { return 'auto' === e ? 'bottom' : e; }, - pi = (function(e) { + Oo = (function(e) { function t() { var e, n; - Ho(this, t); + to(this, t); for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) o[i] = arguments[i]; return ( - Vo( - Jo( - Jo( - (n = Zo(this, (e = Ko(t)).call.apply(e, [this].concat(o)))) + oo( + fo( + fo( + (n = po(this, (e = co(t)).call.apply(e, [this].concat(o)))) ) ), 'state', { maxHeight: n.props.maxMenuHeight, placement: null } ), - Vo(Jo(Jo(n)), 'getPlacement', function(e) { + oo(fo(fo(n)), 'getPlacement', function(e) { var t = n.props, r = t.minMenuHeight, o = t.maxMenuHeight, @@ -232294,7 +232361,7 @@ object-assign u = n.context.getPortalPlacement; if (e) { var l = 'fixed' === a, - f = fi({ + f = ko({ maxHeight: o, menuEl: e, minHeight: r, @@ -232306,10 +232373,10 @@ object-assign u && u(f), n.setState(f); } }), - Vo(Jo(Jo(n)), 'getUpdatedProps', function() { + oo(fo(fo(n)), 'getUpdatedProps', function() { var e = n.props.menuPlacement, - t = n.state.placement || di(e); - return Xo({}, n.props, { + t = n.state.placement || So(e); + return ao({}, n.props, { placement: t, maxHeight: n.state.maxHeight }); @@ -232318,8 +232385,8 @@ object-assign ); } return ( - Go(t, e), - Wo(t, [ + so(t, e), + ro(t, [ { key: 'render', value: function() { @@ -232333,8 +232400,8 @@ object-assign t ); })(s.Component); - Vo(pi, 'contextTypes', { getPortalPlacement: p.a.func }); - var hi = function(e) { + oo(Oo, 'contextTypes', { getPortalPlacement: g.a.func }); + var Eo = function(e) { var t = e.theme, n = t.spacing.baseUnit; return { @@ -232343,9 +232410,9 @@ object-assign textAlign: 'center' }; }, - gi = hi, - mi = hi, - bi = function(e) { + Ao = Eo, + To = Eo, + Co = function(e) { var t = e.children, n = e.className, r = e.cx, @@ -232353,10 +232420,10 @@ object-assign i = e.innerProps; return c.a.createElement( 'div', - Uo( + io( { className: r( - Object(No.a)(o('noOptionsMessage', e)), + Object(Gr.a)(o('noOptionsMessage', e)), { 'menu-notice': !0, 'menu-notice--no-options': !0 }, n ) @@ -232366,8 +232433,8 @@ object-assign t ); }; - bi.defaultProps = { children: 'No options' }; - var yi = function(e) { + Co.defaultProps = { children: 'No options' }; + var Lo = function(e) { var t = e.children, n = e.className, r = e.cx, @@ -232375,10 +232442,10 @@ object-assign i = e.innerProps; return c.a.createElement( 'div', - Uo( + io( { className: r( - Object(No.a)(o('loadingMessage', e)), + Object(Gr.a)(o('loadingMessage', e)), { 'menu-notice': !0, 'menu-notice--loading': !0 }, n ) @@ -232388,31 +232455,31 @@ object-assign t ); }; - yi.defaultProps = { children: 'Loading...' }; - var vi = (function(e) { + Lo.defaultProps = { children: 'Loading...' }; + var Po = (function(e) { function t() { var e, n; - Ho(this, t); + to(this, t); for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) o[i] = arguments[i]; return ( - Vo( - Jo( - Jo((n = Zo(this, (e = Ko(t)).call.apply(e, [this].concat(o))))) + oo( + fo( + fo((n = po(this, (e = co(t)).call.apply(e, [this].concat(o))))) ), 'state', { placement: null } ), - Vo(Jo(Jo(n)), 'getPortalPlacement', function(e) { + oo(fo(fo(n)), 'getPortalPlacement', function(e) { var t = e.placement; - t !== di(n.props.menuPlacement) && n.setState({ placement: t }); + t !== So(n.props.menuPlacement) && n.setState({ placement: t }); }), n ); } return ( - Go(t, e), - Wo(t, [ + so(t, e), + ro(t, [ { key: 'getChildContext', value: function() { @@ -232431,7 +232498,7 @@ object-assign a = e.getStyles, s = 'fixed' === i; if ((!t && !s) || !r) return null; - var l = this.state.placement || di(o), + var l = this.state.placement || So(o), f = (function(e) { var t = e.getBoundingClientRect(); return { @@ -232447,7 +232514,7 @@ object-assign p = { offset: f[l] + d, position: i, rect: f }, h = c.a.createElement( 'div', - { className: Object(No.a)(a('menuPortal', p)) }, + { className: Object(Gr.a)(a('menuPortal', p)) }, n ); return t ? Object(u.createPortal)(h, t) : h; @@ -232457,20 +232524,20 @@ object-assign t ); })(s.Component); - Vo(vi, 'childContextTypes', { getPortalPlacement: p.a.func }); - var _i = Array.isArray, - xi = Object.keys, - wi = Object.prototype.hasOwnProperty; - function Mi(e, t) { + oo(Po, 'childContextTypes', { getPortalPlacement: g.a.func }); + var Do = Array.isArray, + jo = Object.keys, + zo = Object.prototype.hasOwnProperty; + function No(e, t) { try { return (function e(t, n) { if (t === n) return !0; - if (t && n && 'object' == Bo(t) && 'object' == Bo(n)) { + if (t && n && 'object' == eo(t) && 'object' == eo(n)) { var r, o, i, - a = _i(t), - s = _i(n); + a = Do(t), + s = Do(n); if (a && s) { if ((o = t.length) != n.length) return !1; for (r = o; 0 != r--; ) if (!e(t[r], n[r])) return !1; @@ -232485,9 +232552,9 @@ object-assign f = n instanceof RegExp; if (l != f) return !1; if (l && f) return t.toString() == n.toString(); - var d = xi(t); - if ((o = d.length) !== xi(n).length) return !1; - for (r = o; 0 != r--; ) if (!wi.call(n, d[r])) return !1; + var d = jo(t); + if ((o = d.length) !== jo(n).length) return !1; + for (r = o; 0 != r--; ) if (!zo.call(n, d[r])) return !1; for (r = o; 0 != r--; ) if (!(('_owner' === (i = d[r]) && t.$$typeof) || e(t[i], n[i]))) return !1; @@ -232508,7 +232575,7 @@ object-assign throw e; } } - var ki = [ + var Ro = [ { base: 'A', letters: /[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g @@ -232726,23 +232793,23 @@ object-assign letters: /[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g } ], - Si = function(e) { - for (var t = 0; t < ki.length; t++) - e = e.replace(ki[t].letters, ki[t].base); + Io = function(e) { + for (var t = 0; t < Ro.length; t++) + e = e.replace(Ro[t].letters, Ro[t].base); return e; }, - Ai = function(e) { + Fo = function(e) { return e.replace(/^\s+|\s+$/g, ''); }, - Oi = function(e) { + qo = function(e) { return ''.concat(e.label, ' ').concat(e.value); }, - Ei = function(e) { + Bo = function(e) { return c.a.createElement( 'span', - Uo( + io( { - className: Object(No.a)({ + className: Object(Gr.a)({ label: 'a11yText', zIndex: 9999, border: 0, @@ -232761,13 +232828,13 @@ object-assign ) ); }, - Ti = (function(e) { + Ho = (function(e) { function t() { - return Ho(this, t), Zo(this, Ko(t).apply(this, arguments)); + return to(this, t), po(this, co(t).apply(this, arguments)); } return ( - Go(t, e), - Wo(t, [ + so(t, e), + ro(t, [ { key: 'render', value: function() { @@ -232782,7 +232849,7 @@ object-assign e.innerRef), n = (e.emotion, - Qo(e, [ + lo(e, [ 'in', 'out', 'onExited', @@ -232794,8 +232861,8 @@ object-assign ])); return c.a.createElement( 'input', - Uo({ ref: t }, n, { - className: Object(No.a)({ + io({ ref: t }, n, { + className: Object(Gr.a)({ label: 'dummyInput', background: 0, border: 0, @@ -232817,13 +232884,13 @@ object-assign t ); })(s.Component), - Ci = (function(e) { + Yo = (function(e) { function t() { - return Ho(this, t), Zo(this, Ko(t).apply(this, arguments)); + return to(this, t), po(this, co(t).apply(this, arguments)); } return ( - Go(t, e), - Wo(t, [ + so(t, e), + ro(t, [ { key: 'componentDidMount', value: function() { @@ -232846,62 +232913,62 @@ object-assign t ); })(s.Component), - Li = ['boxSizing', 'height', 'overflow', 'paddingRight', 'position'], - Pi = { + Wo = ['boxSizing', 'height', 'overflow', 'paddingRight', 'position'], + Vo = { boxSizing: 'border-box', overflow: 'hidden', position: 'relative', height: '100%' }; - function Di(e) { + function Uo(e) { e.preventDefault(); } - function zi(e) { + function Xo(e) { e.stopPropagation(); } - function Ni() { + function Go() { var e = this.scrollTop, t = this.scrollHeight, n = e + this.offsetHeight; 0 === e ? (this.scrollTop = 1) : n === t && (this.scrollTop = e - 1); } - function ji() { + function Ko() { return 'ontouchstart' in window || navigator.maxTouchPoints; } - var Ri = !( + var $o = !( 'undefined' == typeof window || !window.document || !window.document.createElement ), - Ii = 0, - Fi = (function(e) { + Qo = 0, + Jo = (function(e) { function t() { var e, n; - Ho(this, t); + to(this, t); for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) o[i] = arguments[i]; return ( - Vo( - Jo( - Jo( - (n = Zo(this, (e = Ko(t)).call.apply(e, [this].concat(o)))) + oo( + fo( + fo( + (n = po(this, (e = co(t)).call.apply(e, [this].concat(o)))) ) ), 'originalStyles', {} ), - Vo(Jo(Jo(n)), 'listenerOptions', { capture: !1, passive: !1 }), + oo(fo(fo(n)), 'listenerOptions', { capture: !1, passive: !1 }), n ); } return ( - Go(t, e), - Wo(t, [ + so(t, e), + ro(t, [ { key: 'componentDidMount', value: function() { var e = this; - if (Ri) { + if ($o) { var t = this.props, n = t.accountForScrollbars, r = t.touchScrollTarget, @@ -232909,41 +232976,41 @@ object-assign i = o && o.style; if ( (n && - Li.forEach(function(t) { + Wo.forEach(function(t) { var n = i && i[t]; e.originalStyles[t] = n; }), - n && Ii < 1) + n && Qo < 1) ) { var a = parseInt(this.originalStyles.paddingRight, 10) || 0, s = document.body ? document.body.clientWidth : 0, c = window.innerWidth - s + a || 0; - Object.keys(Pi).forEach(function(e) { - var t = Pi[e]; + Object.keys(Vo).forEach(function(e) { + var t = Vo[e]; i && (i[e] = t); }), i && (i.paddingRight = ''.concat(c, 'px')); } o && - ji() && + Ko() && (o.addEventListener( 'touchmove', - Di, + Uo, this.listenerOptions ), r && (r.addEventListener( 'touchstart', - Ni, + Go, this.listenerOptions ), r.addEventListener( 'touchmove', - zi, + Xo, this.listenerOptions ))), - (Ii += 1); + (Qo += 1); } } }, @@ -232951,35 +233018,35 @@ object-assign key: 'componentWillUnmount', value: function() { var e = this; - if (Ri) { + if ($o) { var t = this.props, n = t.accountForScrollbars, r = t.touchScrollTarget, o = document.body, i = o && o.style; - (Ii = Math.max(Ii - 1, 0)), + (Qo = Math.max(Qo - 1, 0)), n && - Ii < 1 && - Li.forEach(function(t) { + Qo < 1 && + Wo.forEach(function(t) { var n = e.originalStyles[t]; i && (i[t] = n); }), o && - ji() && + Ko() && (o.removeEventListener( 'touchmove', - Di, + Uo, this.listenerOptions ), r && (r.removeEventListener( 'touchstart', - Ni, + Go, this.listenerOptions ), r.removeEventListener( 'touchmove', - zi, + Xo, this.listenerOptions ))); } @@ -232995,36 +233062,36 @@ object-assign t ); })(s.Component); - Vo(Fi, 'defaultProps', { accountForScrollbars: !0 }); - var qi = (function(e) { + oo(Jo, 'defaultProps', { accountForScrollbars: !0 }); + var Zo = (function(e) { function t() { var e, n; - Ho(this, t); + to(this, t); for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) o[i] = arguments[i]; return ( - Vo( - Jo( - Jo( - (n = Zo(this, (e = Ko(t)).call.apply(e, [this].concat(o)))) + oo( + fo( + fo( + (n = po(this, (e = co(t)).call.apply(e, [this].concat(o)))) ) ), 'state', { touchScrollTarget: null } ), - Vo(Jo(Jo(n)), 'getScrollTarget', function(e) { + oo(fo(fo(n)), 'getScrollTarget', function(e) { e !== n.state.touchScrollTarget && n.setState({ touchScrollTarget: e }); }), - Vo(Jo(Jo(n)), 'blurSelectInput', function() { + oo(fo(fo(n)), 'blurSelectInput', function() { document.activeElement && document.activeElement.blur(); }), n ); } return ( - Go(t, e), - Wo(t, [ + so(t, e), + ro(t, [ { key: 'render', value: function() { @@ -233038,7 +233105,7 @@ object-assign null, c.a.createElement('div', { onClick: this.blurSelectInput, - className: Object(No.a)({ + className: Object(Gr.a)({ position: 'fixed', left: 0, bottom: 0, @@ -233047,12 +233114,12 @@ object-assign }) }), c.a.createElement( - Ci, + Yo, { innerRef: this.getScrollTarget }, t ), r - ? c.a.createElement(Fi, { touchScrollTarget: r }) + ? c.a.createElement(Jo, { touchScrollTarget: r }) : null ) : t; @@ -233062,29 +233129,29 @@ object-assign t ); })(s.PureComponent), - Bi = (function(e) { + ei = (function(e) { function t() { var e, n; - Ho(this, t); + to(this, t); for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) o[i] = arguments[i]; return ( - Vo( - Jo( - Jo( - (n = Zo(this, (e = Ko(t)).call.apply(e, [this].concat(o)))) + oo( + fo( + fo( + (n = po(this, (e = co(t)).call.apply(e, [this].concat(o)))) ) ), 'isBottom', !1 ), - Vo(Jo(Jo(n)), 'isTop', !1), - Vo(Jo(Jo(n)), 'scrollTarget', void 0), - Vo(Jo(Jo(n)), 'touchStart', void 0), - Vo(Jo(Jo(n)), 'cancelScroll', function(e) { + oo(fo(fo(n)), 'isTop', !1), + oo(fo(fo(n)), 'scrollTarget', void 0), + oo(fo(fo(n)), 'touchStart', void 0), + oo(fo(fo(n)), 'cancelScroll', function(e) { e.preventDefault(), e.stopPropagation(); }), - Vo(Jo(Jo(n)), 'handleEventDelta', function(e, t) { + oo(fo(fo(n)), 'handleEventDelta', function(e, t) { var r = n.props, o = r.onBottomArrive, i = r.onBottomLeave, @@ -233113,25 +233180,25 @@ object-assign (n.isTop = !0)), g && n.cancelScroll(e); }), - Vo(Jo(Jo(n)), 'onWheel', function(e) { + oo(fo(fo(n)), 'onWheel', function(e) { n.handleEventDelta(e, e.deltaY); }), - Vo(Jo(Jo(n)), 'onTouchStart', function(e) { + oo(fo(fo(n)), 'onTouchStart', function(e) { n.touchStart = e.changedTouches[0].clientY; }), - Vo(Jo(Jo(n)), 'onTouchMove', function(e) { + oo(fo(fo(n)), 'onTouchMove', function(e) { var t = n.touchStart - e.changedTouches[0].clientY; n.handleEventDelta(e, t); }), - Vo(Jo(Jo(n)), 'getScrollTarget', function(e) { + oo(fo(fo(n)), 'getScrollTarget', function(e) { n.scrollTarget = e; }), n ); } return ( - Go(t, e), - Wo(t, [ + so(t, e), + ro(t, [ { key: 'componentDidMount', value: function() { @@ -233177,7 +233244,7 @@ object-assign key: 'render', value: function() { return c.a.createElement( - Ci, + Yo, { innerRef: this.getScrollTarget }, this.props.children ); @@ -233187,28 +233254,28 @@ object-assign t ); })(s.Component), - Hi = (function(e) { + ti = (function(e) { function t() { - return Ho(this, t), Zo(this, Ko(t).apply(this, arguments)); + return to(this, t), po(this, co(t).apply(this, arguments)); } return ( - Go(t, e), - Wo(t, [ + so(t, e), + ro(t, [ { key: 'render', value: function() { var e = this.props, t = e.isEnabled, - n = Qo(e, ['isEnabled']); - return t ? c.a.createElement(Bi, n) : this.props.children; + n = lo(e, ['isEnabled']); + return t ? c.a.createElement(ei, n) : this.props.children; } } ]), t ); })(s.Component); - Vo(Hi, 'defaultProps', { isEnabled: !0 }); - var Yi = function(e) { + oo(ti, 'defaultProps', { isEnabled: !0 }); + var ni = function(e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] @@ -233235,7 +233302,7 @@ object-assign return 'Use left and right to toggle between focused values, press Backspace to remove the currently focused value'; } }, - Wi = function(e, t) { + ri = function(e, t) { var n = t.value, r = t.isDisabled; if (n) @@ -233251,16 +233318,16 @@ object-assign ); } }, - Vi = function(e) { + oi = function(e) { return !!e.isDisabled; }, - Ui = (function(e) { + ii = (function(e) { function t() { - return Ho(this, t), Zo(this, Ko(t).apply(this, arguments)); + return to(this, t), po(this, co(t).apply(this, arguments)); } return ( - Go(t, e), - Wo(t, [ + so(t, e), + ro(t, [ { key: 'render', value: function() { @@ -233275,7 +233342,7 @@ object-assign 'div', { className: r( - Object(No.a)(i('valueContainer', this.props)), + Object(Gr.a)(i('valueContainer', this.props)), { 'value-container': !0, 'value-container--is-multi': o, @@ -233292,19 +233359,19 @@ object-assign t ); })(s.Component), - Xi = function(e) { + ai = function(e) { var t = e.size, - n = Qo(e, ['size']); + n = lo(e, ['size']); return c.a.createElement( 'svg', - Uo( + io( { height: t, width: t, viewBox: '0 0 20 20', 'aria-hidden': 'true', focusable: 'false', - className: Object(No.a)({ + className: Object(Gr.a)({ display: 'inline-block', fill: 'currentColor', lineHeight: 1, @@ -233316,27 +233383,27 @@ object-assign ) ); }, - Gi = function(e) { + si = function(e) { return c.a.createElement( - Xi, - Uo({ size: 20 }, e), + ai, + io({ size: 20 }, e), c.a.createElement('path', { d: 'M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z' }) ); }, - Ki = function(e) { + ci = function(e) { return c.a.createElement( - Xi, - Uo({ size: 20 }, e), + ai, + io({ size: 20 }, e), c.a.createElement('path', { d: 'M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z' }) ); }, - $i = function(e) { + ui = function(e) { var t = e.isFocused, n = e.theme, r = n.spacing.baseUnit, @@ -233350,15 +233417,15 @@ object-assign ':hover': { color: t ? o.neutral80 : o.neutral40 } }; }, - Qi = $i, - Ji = $i, - Zi = !1, - ea = function(e) { + li = ui, + fi = ui, + di = !1, + pi = function(e) { var t = e.color, n = e.delay, r = e.offset; return c.a.createElement('span', { - className: Object(No.a)({ + className: Object(Gr.a)({ animationDuration: '1s', animationDelay: ''.concat(n, 'ms'), animationIterationCount: 'infinite', @@ -233374,7 +233441,7 @@ object-assign }) }); }, - ta = function(e) { + hi = function(e) { var t = e.className, n = e.cx, r = e.getStyles, @@ -233384,30 +233451,30 @@ object-assign s = e.theme.colors, u = i ? s.neutral80 : s.neutral20; return ( - Zi || - (Object(No.b)( + di || + (Object(Gr.b)( '@keyframes ', 'react-select-loading-indicator', '{0%,80%,100%{opacity:0;}40%{opacity:1;}};' ), - (Zi = !0)), + (di = !0)), c.a.createElement( 'div', - Uo({}, o, { + io({}, o, { className: n( - Object(No.a)(r('loadingIndicator', e)), + Object(Gr.a)(r('loadingIndicator', e)), { indicator: !0, 'loading-indicator': !0 }, t ) }), - c.a.createElement(ea, { color: u, delay: 0, offset: a }), - c.a.createElement(ea, { color: u, delay: 160, offset: !0 }), - c.a.createElement(ea, { color: u, delay: 320, offset: !a }) + c.a.createElement(pi, { color: u, delay: 0, offset: a }), + c.a.createElement(pi, { color: u, delay: 160, offset: !0 }), + c.a.createElement(pi, { color: u, delay: 320, offset: !a }) ) ); }; - ta.defaultProps = { size: 4 }; - var na = function(e) { + hi.defaultProps = { size: 4 }; + var gi = function(e) { return { label: 'input', background: 0, @@ -233419,20 +233486,20 @@ object-assign color: 'inherit' }; }, - ra = function(e) { + mi = function(e) { var t = e.children, n = e.innerProps; return c.a.createElement('div', n, t); }, - oa = ra, - ia = ra, - aa = (function(e) { + bi = mi, + yi = mi, + vi = (function(e) { function t() { - return Ho(this, t), Zo(this, Ko(t).apply(this, arguments)); + return to(this, t), po(this, co(t).apply(this, arguments)); } return ( - Go(t, e), - Wo(t, [ + so(t, e), + ro(t, [ { key: 'render', value: function() { @@ -233442,7 +233509,7 @@ object-assign return c.a.createElement( 'div', n, - t || c.a.createElement(Gi, { size: 14 }) + t || c.a.createElement(si, { size: 14 }) ); } } @@ -233450,13 +233517,13 @@ object-assign t ); })(s.Component), - sa = (function(e) { + _i = (function(e) { function t() { - return Ho(this, t), Zo(this, Ko(t).apply(this, arguments)); + return to(this, t), po(this, co(t).apply(this, arguments)); } return ( - Go(t, e), - Wo(t, [ + so(t, e), + ro(t, [ { key: 'render', value: function() { @@ -233474,10 +233541,10 @@ object-assign d = r.Container, p = r.Label, h = r.Remove, - g = Xo( + g = ao( { className: o( - Object(No.a)(a('multiValue', this.props)), + Object(Gr.a)(a('multiValue', this.props)), { 'multi-value': !0, 'multi-value--is-disabled': u }, n ) @@ -233486,15 +233553,15 @@ object-assign ), m = { className: o( - Object(No.a)(a('multiValueLabel', this.props)), + Object(Gr.a)(a('multiValueLabel', this.props)), { 'multi-value__label': !0 }, n ) }, - b = Xo( + b = ao( { className: o( - Object(No.a)(a('multiValueRemove', this.props)), + Object(Gr.a)(a('multiValueRemove', this.props)), { 'multi-value__remove': !0 }, n ) @@ -233521,8 +233588,8 @@ object-assign t ); })(s.Component); - Vo(sa, 'defaultProps', { cropWithEllipsis: !0 }); - var ca = { + oo(_i, 'defaultProps', { cropWithEllipsis: !0 }); + var wi = { ClearIndicator: function(e) { var t = e.children, n = e.className, @@ -233531,14 +233598,14 @@ object-assign i = e.innerProps; return c.a.createElement( 'div', - Uo({}, i, { + io({}, i, { className: r( - Object(No.a)(o('clearIndicator', e)), + Object(Gr.a)(o('clearIndicator', e)), { indicator: !0, 'clear-indicator': !0 }, n ) }), - t || c.a.createElement(Gi, null) + t || c.a.createElement(si, null) ); }, Control: function(e) { @@ -233553,11 +233620,11 @@ object-assign l = e.menuIsOpen; return c.a.createElement( 'div', - Uo( + io( { ref: s, className: n( - Object(No.a)(r('control', e)), + Object(Gr.a)(r('control', e)), { control: !0, 'control--is-disabled': i, @@ -233580,18 +233647,18 @@ object-assign i = e.innerProps; return c.a.createElement( 'div', - Uo({}, i, { + io({}, i, { className: r( - Object(No.a)(o('dropdownIndicator', e)), + Object(Gr.a)(o('dropdownIndicator', e)), { indicator: !0, 'dropdown-indicator': !0 }, n ) }), - t || c.a.createElement(Ki, null) + t || c.a.createElement(ci, null) ); }, - DownChevron: Ki, - CrossIcon: Gi, + DownChevron: ci, + CrossIcon: si, Group: function(e) { var t = e.children, n = e.className, @@ -233604,10 +233671,10 @@ object-assign l = e.selectProps; return c.a.createElement( 'div', - { className: r(Object(No.a)(o('group', e)), { group: !0 }, n) }, + { className: r(Object(Gr.a)(o('group', e)), { group: !0 }, n) }, c.a.createElement( i, - Uo({}, a, { selectProps: l, theme: u, getStyles: o, cx: r }), + io({}, a, { selectProps: l, theme: u, getStyles: o, cx: r }), s ), c.a.createElement('div', null, t) @@ -233620,7 +233687,7 @@ object-assign o = e.theme, i = (e.selectProps, - Qo(e, [ + lo(e, [ 'className', 'cx', 'getStyles', @@ -233629,10 +233696,10 @@ object-assign ])); return c.a.createElement( 'div', - Uo( + io( { className: n( - Object(No.a)(r('groupHeading', Xo({ theme: o }, i))), + Object(Gr.a)(r('groupHeading', ao({ theme: o }, i))), { 'group-heading': !0 }, t ) @@ -233650,7 +233717,7 @@ object-assign 'div', { className: r( - Object(No.a)(o('indicatorsContainer', e)), + Object(Gr.a)(o('indicatorsContainer', e)), { indicators: !0 }, n ) @@ -233665,9 +233732,9 @@ object-assign o = e.innerProps; return c.a.createElement( 'span', - Uo({}, o, { + io({}, o, { className: n( - Object(No.a)(r('indicatorSeparator', e)), + Object(Gr.a)(r('indicatorSeparator', e)), { 'indicator-separator': !0 }, t ) @@ -233684,7 +233751,7 @@ object-assign s = e.theme, u = (e.selectProps, - Qo(e, [ + lo(e, [ 'className', 'cx', 'getStyles', @@ -233696,14 +233763,14 @@ object-assign ])); return c.a.createElement( 'div', - { className: Object(No.a)(r('input', Xo({ theme: s }, u))) }, + { className: Object(Gr.a)(r('input', ao({ theme: s }, u))) }, c.a.createElement( - Fo.a, - Uo( + Jr.a, + io( { className: n(null, { input: !0 }, t), inputRef: o, - inputStyle: na(i), + inputStyle: gi(i), disabled: a }, u @@ -233711,7 +233778,7 @@ object-assign ) ); }, - LoadingIndicator: ta, + LoadingIndicator: hi, Menu: function(e) { var t = e.children, n = e.className, @@ -233719,10 +233786,10 @@ object-assign o = e.getStyles, i = e.innerRef, a = e.innerProps, - s = r(Object(No.a)(o('menu', e)), { menu: !0 }, n); + s = r(Object(Gr.a)(o('menu', e)), { menu: !0 }, n); return c.a.createElement( 'div', - Uo({ className: s }, a, { ref: i }), + io({ className: s }, a, { ref: i }), t ); }, @@ -233737,7 +233804,7 @@ object-assign 'div', { className: r( - Object(No.a)(o('menuList', e)), + Object(Gr.a)(o('menuList', e)), { 'menu-list': !0, 'menu-list--is-multi': i }, n ), @@ -233746,13 +233813,13 @@ object-assign t ); }, - MenuPortal: vi, - LoadingMessage: yi, - NoOptionsMessage: bi, - MultiValue: sa, - MultiValueContainer: oa, - MultiValueLabel: ia, - MultiValueRemove: aa, + MenuPortal: Po, + LoadingMessage: Lo, + NoOptionsMessage: Co, + MultiValue: _i, + MultiValueContainer: bi, + MultiValueLabel: yi, + MultiValueRemove: vi, Option: function(e) { var t = e.children, n = e.className, @@ -233765,11 +233832,11 @@ object-assign l = e.innerProps; return c.a.createElement( 'div', - Uo( + io( { ref: u, className: r( - Object(No.a)(o('option', e)), + Object(Gr.a)(o('option', e)), { option: !0, 'option--is-disabled': i, @@ -233792,10 +233859,10 @@ object-assign i = e.innerProps; return c.a.createElement( 'div', - Uo( + io( { className: r( - Object(No.a)(o('placeholder', e)), + Object(Gr.a)(o('placeholder', e)), { placeholder: !0 }, n ) @@ -233815,10 +233882,10 @@ object-assign s = e.isRtl; return c.a.createElement( 'div', - Uo( + io( { className: r( - Object(No.a)(o('container', e)), + Object(Gr.a)(o('container', e)), { '--is-disabled': a, '--is-rtl': s }, n ) @@ -233837,10 +233904,10 @@ object-assign a = e.innerProps; return c.a.createElement( 'div', - Uo( + io( { className: r( - Object(No.a)(o('singleValue', e)), + Object(Gr.a)(o('singleValue', e)), { 'single-value': !0, 'single-value--is-disabled': i }, n ) @@ -233850,13 +233917,13 @@ object-assign t ); }, - ValueContainer: Ui + ValueContainer: ii }, - ua = function(e) { - return Xo({}, ca, e.components); + xi = function(e) { + return ao({}, wi, e.components); }, - la = { - clearIndicator: Ji, + Mi = { + clearIndicator: fi, container: function(e) { var t = e.isDisabled; return { @@ -233893,7 +233960,7 @@ object-assign '&:hover': { borderColor: n ? o.primary : o.neutral30 } }; }, - dropdownIndicator: Qi, + dropdownIndicator: li, group: function(e) { var t = e.theme.spacing; return { @@ -233971,7 +234038,7 @@ object-assign verticalAlign: 'middle' }; }, - loadingMessage: mi, + loadingMessage: To, menu: function(e) { var t, n = e.placement, @@ -233980,25 +234047,25 @@ object-assign i = r.spacing, a = r.colors; return ( - Vo( + oo( (t = { label: 'menu' }), (function(e) { return e ? { bottom: 'top', top: 'bottom' }[e] : 'bottom'; })(n), '100%' ), - Vo(t, 'backgroundColor', a.neutral0), - Vo(t, 'borderRadius', o), - Vo( + oo(t, 'backgroundColor', a.neutral0), + oo(t, 'borderRadius', o), + oo( t, 'boxShadow', '0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)' ), - Vo(t, 'marginBottom', i.menuGutter), - Vo(t, 'marginTop', i.menuGutter), - Vo(t, 'position', 'absolute'), - Vo(t, 'width', '100%'), - Vo(t, 'zIndex', 1), + oo(t, 'marginBottom', i.menuGutter), + oo(t, 'marginTop', i.menuGutter), + oo(t, 'position', 'absolute'), + oo(t, 'width', '100%'), + oo(t, 'zIndex', 1), t ); }, @@ -234070,7 +234137,7 @@ object-assign ':hover': { backgroundColor: o.dangerLight, color: o.danger } }; }, - noOptionsMessage: gi, + noOptionsMessage: Ao, option: function(e) { var t = e.isDisabled, n = e.isFocused, @@ -234144,8 +234211,8 @@ object-assign }; } }; - var fa, - da = { + var ki, + Si = { borderRadius: 4, colors: { primary: '#2684FF', @@ -234168,36 +234235,36 @@ object-assign }, spacing: { baseUnit: 4, controlHeight: 38, menuGutter: 8 } }, - pa = { + Oi = { backspaceRemovesValue: !0, - blurInputOnSelect: li(), - captureMenuScroll: !li(), + blurInputOnSelect: Mo(), + captureMenuScroll: !Mo(), closeMenuOnSelect: !0, closeMenuOnScroll: !1, components: {}, controlShouldRenderValue: !0, escapeClearsValue: !1, filterOption: function(e, t) { - var n = Xo( + var n = ao( { ignoreCase: !0, ignoreAccents: !0, - stringify: Oi, + stringify: qo, trim: !0, matchFrom: 'any' }, - fa + ki ), r = n.ignoreCase, o = n.ignoreAccents, i = n.stringify, a = n.trim, s = n.matchFrom, - c = a ? Ai(t) : t, - u = a ? Ai(i(e)) : i(e); + c = a ? Fo(t) : t, + u = a ? Fo(i(e)) : i(e); return ( r && ((c = c.toLowerCase()), (u = u.toLowerCase())), - o && ((c = Si(c)), (u = Si(u))), + o && ((c = Io(c)), (u = Io(u))), 'start' === s ? u.substr(0, c.length) === c : u.indexOf(c) > -1 ); }, @@ -234215,7 +234282,7 @@ object-assign isMulti: !1, isRtl: !1, isSearchable: !0, - isOptionDisabled: Vi, + isOptionDisabled: oi, loadingMessage: function() { return 'Loading...'; }, @@ -234252,12 +234319,12 @@ object-assign tabIndex: '0', tabSelectsValue: !0 }, - ha = 1, - ga = (function(e) { + Ei = 1, + Ai = (function(e) { function t(e) { var n; - Ho(this, t), - Vo(Jo(Jo((n = Zo(this, Ko(t).call(this, e))))), 'state', { + to(this, t), + oo(fo(fo((n = po(this, co(t).call(this, e))))), 'state', { ariaLiveSelection: '', ariaLiveContext: '', focusedOption: null, @@ -234267,45 +234334,45 @@ object-assign menuOptions: { render: [], focusable: [] }, selectValue: [] }), - Vo(Jo(Jo(n)), 'blockOptionHover', !1), - Vo(Jo(Jo(n)), 'isComposing', !1), - Vo(Jo(Jo(n)), 'clearFocusValueOnUpdate', !1), - Vo(Jo(Jo(n)), 'commonProps', void 0), - Vo(Jo(Jo(n)), 'components', void 0), - Vo(Jo(Jo(n)), 'hasGroups', !1), - Vo(Jo(Jo(n)), 'initialTouchX', 0), - Vo(Jo(Jo(n)), 'initialTouchY', 0), - Vo(Jo(Jo(n)), 'inputIsHiddenAfterUpdate', void 0), - Vo(Jo(Jo(n)), 'instancePrefix', ''), - Vo(Jo(Jo(n)), 'openAfterFocus', !1), - Vo(Jo(Jo(n)), 'scrollToFocusedOptionOnUpdate', !1), - Vo(Jo(Jo(n)), 'userIsDragging', void 0), - Vo(Jo(Jo(n)), 'controlRef', null), - Vo(Jo(Jo(n)), 'getControlRef', function(e) { + oo(fo(fo(n)), 'blockOptionHover', !1), + oo(fo(fo(n)), 'isComposing', !1), + oo(fo(fo(n)), 'clearFocusValueOnUpdate', !1), + oo(fo(fo(n)), 'commonProps', void 0), + oo(fo(fo(n)), 'components', void 0), + oo(fo(fo(n)), 'hasGroups', !1), + oo(fo(fo(n)), 'initialTouchX', 0), + oo(fo(fo(n)), 'initialTouchY', 0), + oo(fo(fo(n)), 'inputIsHiddenAfterUpdate', void 0), + oo(fo(fo(n)), 'instancePrefix', ''), + oo(fo(fo(n)), 'openAfterFocus', !1), + oo(fo(fo(n)), 'scrollToFocusedOptionOnUpdate', !1), + oo(fo(fo(n)), 'userIsDragging', void 0), + oo(fo(fo(n)), 'controlRef', null), + oo(fo(fo(n)), 'getControlRef', function(e) { n.controlRef = e; }), - Vo(Jo(Jo(n)), 'focusedOptionRef', null), - Vo(Jo(Jo(n)), 'getFocusedOptionRef', function(e) { + oo(fo(fo(n)), 'focusedOptionRef', null), + oo(fo(fo(n)), 'getFocusedOptionRef', function(e) { n.focusedOptionRef = e; }), - Vo(Jo(Jo(n)), 'menuListRef', null), - Vo(Jo(Jo(n)), 'getMenuListRef', function(e) { + oo(fo(fo(n)), 'menuListRef', null), + oo(fo(fo(n)), 'getMenuListRef', function(e) { n.menuListRef = e; }), - Vo(Jo(Jo(n)), 'inputRef', null), - Vo(Jo(Jo(n)), 'getInputRef', function(e) { + oo(fo(fo(n)), 'inputRef', null), + oo(fo(fo(n)), 'getInputRef', function(e) { n.inputRef = e; }), - Vo(Jo(Jo(n)), 'cacheComponents', function(e) { - n.components = ua({ components: e }); + oo(fo(fo(n)), 'cacheComponents', function(e) { + n.components = xi({ components: e }); }), - Vo(Jo(Jo(n)), 'focus', n.focusInput), - Vo(Jo(Jo(n)), 'blur', n.blurInput), - Vo(Jo(Jo(n)), 'onChange', function(e, t) { + oo(fo(fo(n)), 'focus', n.focusInput), + oo(fo(fo(n)), 'blur', n.blurInput), + oo(fo(fo(n)), 'onChange', function(e, t) { var r = n.props; - (0, r.onChange)(e, Xo({}, t, { name: r.name })); + (0, r.onChange)(e, ao({}, t, { name: r.name })); }), - Vo(Jo(Jo(n)), 'setValue', function(e) { + oo(fo(fo(n)), 'setValue', function(e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] @@ -234319,7 +234386,7 @@ object-assign (n.clearFocusValueOnUpdate = !0), n.onChange(e, { action: t, option: r }); }), - Vo(Jo(Jo(n)), 'selectOption', function(e) { + oo(fo(fo(n)), 'selectOption', function(e) { var t = n.props, r = t.blurInputOnSelect, o = t.isMulti, @@ -234347,7 +234414,7 @@ object-assign isDisabled: !0 } }) - : (n.setValue([].concat(ei(i), [e]), 'select-option', e), + : (n.setValue([].concat(ho(i), [e]), 'select-option', e), n.announceAriaLiveSelection({ event: 'select-option', context: { value: n.getOptionLabel(e) } @@ -234365,7 +234432,7 @@ object-assign })); r && n.blurInput(); }), - Vo(Jo(Jo(n)), 'removeValue', function(e) { + oo(fo(fo(n)), 'removeValue', function(e) { var t = n.state.selectValue, r = n.getOptionValue(e); n.onChange( @@ -234380,11 +234447,11 @@ object-assign }), n.focusInput(); }), - Vo(Jo(Jo(n)), 'clearValue', function() { + oo(fo(fo(n)), 'clearValue', function() { var e = n.props.isMulti; n.onChange(e ? [] : null, { action: 'clear' }); }), - Vo(Jo(Jo(n)), 'popValue', function() { + oo(fo(fo(n)), 'popValue', function() { var e = n.state.selectValue, t = e[e.length - 1]; n.announceAriaLiveSelection({ @@ -234396,22 +234463,22 @@ object-assign removedValue: t }); }), - Vo(Jo(Jo(n)), 'getOptionLabel', function(e) { + oo(fo(fo(n)), 'getOptionLabel', function(e) { return n.props.getOptionLabel(e); }), - Vo(Jo(Jo(n)), 'getOptionValue', function(e) { + oo(fo(fo(n)), 'getOptionValue', function(e) { return n.props.getOptionValue(e); }), - Vo(Jo(Jo(n)), 'getStyles', function(e, t) { - var r = la[e](t); + oo(fo(fo(n)), 'getStyles', function(e, t) { + var r = Mi[e](t); r.boxSizing = 'border-box'; var o = n.props.styles[e]; return o ? o(r, t) : r; }), - Vo(Jo(Jo(n)), 'getElementId', function(e) { + oo(fo(fo(n)), 'getElementId', function(e) { return ''.concat(n.instancePrefix, '-').concat(e); }), - Vo(Jo(Jo(n)), 'getActiveDescendentId', function() { + oo(fo(fo(n)), 'getActiveDescendentId', function() { var e = n.props.menuIsOpen, t = n.state, r = t.menuOptions, @@ -234422,29 +234489,29 @@ object-assign return a && a.key; } }), - Vo(Jo(Jo(n)), 'announceAriaLiveSelection', function(e) { + oo(fo(fo(n)), 'announceAriaLiveSelection', function(e) { var t = e.event, r = e.context; - n.setState({ ariaLiveSelection: Wi(t, r) }); + n.setState({ ariaLiveSelection: ri(t, r) }); }), - Vo(Jo(Jo(n)), 'announceAriaLiveContext', function(e) { + oo(fo(fo(n)), 'announceAriaLiveContext', function(e) { var t = e.event, r = e.context; n.setState({ - ariaLiveContext: Yi( + ariaLiveContext: ni( t, - Xo({}, r, { label: n.props['aria-label'] }) + ao({}, r, { label: n.props['aria-label'] }) ) }); }), - Vo(Jo(Jo(n)), 'onMenuMouseDown', function(e) { + oo(fo(fo(n)), 'onMenuMouseDown', function(e) { 0 === e.button && (e.stopPropagation(), e.preventDefault(), n.focusInput()); }), - Vo(Jo(Jo(n)), 'onMenuMouseMove', function(e) { + oo(fo(fo(n)), 'onMenuMouseMove', function(e) { n.blockOptionHover = !1; }), - Vo(Jo(Jo(n)), 'onControlMouseDown', function(e) { + oo(fo(fo(n)), 'onControlMouseDown', function(e) { var t = n.props.openMenuOnClick; n.state.isFocused ? n.props.menuIsOpen @@ -234453,7 +234520,7 @@ object-assign : (t && (n.openAfterFocus = !0), n.focusInput()), 'INPUT' !== e.target.tagName && e.preventDefault(); }), - Vo(Jo(Jo(n)), 'onDropdownIndicatorMouseDown', function(e) { + oo(fo(fo(n)), 'onDropdownIndicatorMouseDown', function(e) { if ( !( (e && 'mousedown' === e.type && 0 !== e.button) || @@ -234471,7 +234538,7 @@ object-assign e.stopPropagation(); } }), - Vo(Jo(Jo(n)), 'onClearIndicatorMouseDown', function(e) { + oo(fo(fo(n)), 'onClearIndicatorMouseDown', function(e) { (e && 'mousedown' === e.type && 0 !== e.button) || (n.clearValue(), e.stopPropagation(), @@ -234480,29 +234547,29 @@ object-assign return n.focusInput(); })); }), - Vo(Jo(Jo(n)), 'onScroll', function(e) { + oo(fo(fo(n)), 'onScroll', function(e) { 'boolean' == typeof n.props.closeMenuOnScroll ? e.target instanceof HTMLElement && - ii(e.target) && + vo(e.target) && n.props.onMenuClose() : 'function' == typeof n.props.closeMenuOnScroll && n.props.closeMenuOnScroll(e) && n.props.onMenuClose(); }), - Vo(Jo(Jo(n)), 'onCompositionStart', function() { + oo(fo(fo(n)), 'onCompositionStart', function() { n.isComposing = !0; }), - Vo(Jo(Jo(n)), 'onCompositionEnd', function() { + oo(fo(fo(n)), 'onCompositionEnd', function() { n.isComposing = !1; }), - Vo(Jo(Jo(n)), 'onTouchStart', function(e) { + oo(fo(fo(n)), 'onTouchStart', function(e) { var t = e.touches.item(0); t && ((n.initialTouchX = t.clientX), (n.initialTouchY = t.clientY), (n.userIsDragging = !1)); }), - Vo(Jo(Jo(n)), 'onTouchMove', function(e) { + oo(fo(fo(n)), 'onTouchMove', function(e) { var t = e.touches.item(0); if (t) { var r = Math.abs(t.clientX - n.initialTouchX), @@ -234510,7 +234577,7 @@ object-assign n.userIsDragging = r > 5 || o > 5; } }), - Vo(Jo(Jo(n)), 'onTouchEnd', function(e) { + oo(fo(fo(n)), 'onTouchEnd', function(e) { n.userIsDragging || (n.controlRef && !n.controlRef.contains(e.target) && @@ -234520,22 +234587,22 @@ object-assign (n.initialTouchX = 0), (n.initialTouchY = 0)); }), - Vo(Jo(Jo(n)), 'onControlTouchEnd', function(e) { + oo(fo(fo(n)), 'onControlTouchEnd', function(e) { n.userIsDragging || n.onControlMouseDown(e); }), - Vo(Jo(Jo(n)), 'onClearIndicatorTouchEnd', function(e) { + oo(fo(fo(n)), 'onClearIndicatorTouchEnd', function(e) { n.userIsDragging || n.onClearIndicatorMouseDown(e); }), - Vo(Jo(Jo(n)), 'onDropdownIndicatorTouchEnd', function(e) { + oo(fo(fo(n)), 'onDropdownIndicatorTouchEnd', function(e) { n.userIsDragging || n.onDropdownIndicatorMouseDown(e); }), - Vo(Jo(Jo(n)), 'handleInputChange', function(e) { + oo(fo(fo(n)), 'handleInputChange', function(e) { var t = e.currentTarget.value; (n.inputIsHiddenAfterUpdate = !1), n.onInputChange(t, { action: 'input-change' }), n.onMenuOpen(); }), - Vo(Jo(Jo(n)), 'onInputFocus', function(e) { + oo(fo(fo(n)), 'onInputFocus', function(e) { var t = n.props, r = t.isSearchable, o = t.isMulti; @@ -234550,7 +234617,7 @@ object-assign n.openMenu('first'), (n.openAfterFocus = !1); }), - Vo(Jo(Jo(n)), 'onInputBlur', function(e) { + oo(fo(fo(n)), 'onInputBlur', function(e) { n.menuListRef && n.menuListRef.contains(document.activeElement) ? n.inputRef.focus() : (n.props.onBlur && n.props.onBlur(e), @@ -234558,18 +234625,18 @@ object-assign n.onMenuClose(), n.setState({ focusedValue: null, isFocused: !1 })); }), - Vo(Jo(Jo(n)), 'onOptionHover', function(e) { + oo(fo(fo(n)), 'onOptionHover', function(e) { n.blockOptionHover || n.state.focusedOption === e || n.setState({ focusedOption: e }); }), - Vo(Jo(Jo(n)), 'shouldHideSelectedOptions', function() { + oo(fo(fo(n)), 'shouldHideSelectedOptions', function() { var e = n.props, t = e.hideSelectedOptions, r = e.isMulti; return void 0 === t ? r : t; }), - Vo(Jo(Jo(n)), 'onKeyDown', function(e) { + oo(fo(fo(n)), 'onKeyDown', function(e) { var t = n.props, r = t.isMulti, o = t.backspaceRemovesValue, @@ -234672,19 +234739,19 @@ object-assign } }); var r = e.value; - (n.cacheComponents = Object(zo.a)(n.cacheComponents, Mi).bind( - Jo(Jo(n)) + (n.cacheComponents = Object(Xr.a)(n.cacheComponents, No).bind( + fo(fo(n)) )), n.cacheComponents(e.components), (n.instancePrefix = - 'react-select-' + (n.props.instanceId || ++ha)); - var o = oi(r), + 'react-select-' + (n.props.instanceId || ++Ei)); + var o = yo(r), i = n.buildMenuOptions(e, o); return (n.state.menuOptions = i), (n.state.selectValue = o), n; } return ( - Go(t, e), - Wo(t, [ + so(t, e), + ro(t, [ { key: 'componentDidMount', value: function() { @@ -234708,7 +234775,7 @@ object-assign (this.cacheComponents(e.components), e.value !== r || e.options !== n || e.inputValue !== o) ) { - var i = oi(e.value), + var i = yo(e.value), a = this.buildMenuOptions(e, i), s = this.getNextFocusedValue(i), c = this.getNextFocusedOption(a.focusable); @@ -234749,7 +234816,7 @@ object-assign (o = n.getBoundingClientRect()), (i = n.offsetHeight / 3), o.bottom + i > r.bottom - ? si( + ? wo( t, Math.min( n.offsetTop + n.clientHeight - t.offsetHeight + i, @@ -234757,7 +234824,7 @@ object-assign ) ) : o.top - i < r.top && - si(t, Math.max(n.offsetTop - i, 0))), + wo(t, Math.max(n.offsetTop - i, 0))), (this.scrollToFocusedOptionOnUpdate = !1); } }, @@ -234904,7 +234971,7 @@ object-assign }), this.announceAriaLiveContext({ event: 'menu', - context: { isDisabled: Vi(i[a]) } + context: { isDisabled: oi(i[a]) } }); } } @@ -234914,9 +234981,9 @@ object-assign value: function() { return this.props.theme ? 'function' == typeof this.props.theme - ? this.props.theme(da) - : Xo({}, da, this.props.theme) - : da; + ? this.props.theme(Si) + : ao({}, Si, this.props.theme) + : Si; } }, { @@ -234934,7 +235001,7 @@ object-assign u = this.state.selectValue, l = this.hasValue(); return { - cx: ri.bind(null, i), + cx: bo.bind(null, i), clearValue: e, getStyles: t, getValue: function() { @@ -235269,11 +235336,11 @@ object-assign s = this.state.inputIsHidden, u = r || this.getElementId('input'); if (!n) - return c.a.createElement(Ti, { + return c.a.createElement(Ho, { id: u, innerRef: this.getInputRef, onBlur: this.onInputBlur, - onChange: ti, + onChange: go, onFocus: this.onInputFocus, readOnly: !0, disabled: t, @@ -235291,7 +235358,7 @@ object-assign h = f.selectProps; return c.a.createElement( a, - Uo( + io( { autoCapitalize: 'none', autoComplete: 'off', @@ -235344,7 +235411,7 @@ object-assign ? null : c.a.createElement( s, - Uo({}, u, { + io({}, u, { key: 'placeholder', isDisabled: d, isFocused: v @@ -235356,7 +235423,7 @@ object-assign var a = t === y; return c.a.createElement( n, - Uo({}, u, { + io({}, u, { components: { Container: r, Label: o, Remove: i }, isFocused: a, isDisabled: d, @@ -235381,7 +235448,7 @@ object-assign var _ = b[0]; return c.a.createElement( a, - Uo({}, u, { data: _, isDisabled: d }), + io({}, u, { data: _, isDisabled: d }), this.formatOptionLabel(_, 'value') ); } @@ -235404,7 +235471,7 @@ object-assign }; return c.a.createElement( e, - Uo({}, t, { innerProps: a, isFocused: i }) + io({}, t, { innerProps: a, isFocused: i }) ); } }, @@ -235420,7 +235487,7 @@ object-assign if (!e || !o) return null; return c.a.createElement( e, - Uo({}, t, { + io({}, t, { innerProps: { 'aria-hidden': 'true' }, isDisabled: r, isFocused: i @@ -235440,7 +235507,7 @@ object-assign i = this.state.isFocused; return c.a.createElement( n, - Uo({}, r, { isDisabled: o, isFocused: i }) + io({}, r, { isDisabled: o, isFocused: i }) ); } }, @@ -235459,7 +235526,7 @@ object-assign }; return c.a.createElement( e, - Uo({}, t, { innerProps: o, isDisabled: n, isFocused: r }) + io({}, t, { innerProps: o, isDisabled: n, isFocused: r }) ); } }, @@ -235486,17 +235553,17 @@ object-assign y = g.isLoading, v = g.loadingMessage, _ = g.minMenuHeight, - x = g.maxMenuHeight, - w = g.menuIsOpen, + w = g.maxMenuHeight, + x = g.menuIsOpen, M = g.menuPlacement, k = g.menuPosition, S = g.menuPortalTarget, - A = g.menuShouldBlockScroll, - O = g.menuShouldScrollIntoView, - E = g.noOptionsMessage, + O = g.menuShouldBlockScroll, + E = g.menuShouldScrollIntoView, + A = g.noOptionsMessage, T = g.onMenuScrollToTop, C = g.onMenuScrollToBottom; - if (!w) return null; + if (!x) return null; var L, P = function(t) { var n = p === t.data; @@ -235504,7 +235571,7 @@ object-assign (t.innerRef = n ? e.getFocusedOptionRef : void 0), c.a.createElement( l, - Uo({}, f, t, { isFocused: n }), + io({}, f, t, { isFocused: n }), e.formatOptionLabel(t.data, 'menu') ) ); @@ -235513,11 +235580,11 @@ object-assign L = h.render.map(function(t) { if ('group' === t.type) { t.type; - var o = Qo(t, ['type']), + var o = lo(t, ['type']), i = ''.concat(t.key, '-heading'); return c.a.createElement( n, - Uo({}, f, o, { + io({}, f, o, { Heading: r, headingProps: { id: i }, label: e.formatGroupLabel(t.data) @@ -235534,25 +235601,25 @@ object-assign if (null === D) return null; L = c.a.createElement(s, f, D); } else { - var z = E({ inputValue: b }); - if (null === z) return null; - L = c.a.createElement(u, f, z); + var j = A({ inputValue: b }); + if (null === j) return null; + L = c.a.createElement(u, f, j); } - var N = { + var z = { minMenuHeight: _, - maxMenuHeight: x, + maxMenuHeight: w, menuPlacement: M, menuPosition: k, - menuShouldScrollIntoView: O + menuShouldScrollIntoView: E }, - j = c.a.createElement(pi, Uo({}, f, N), function(t) { + N = c.a.createElement(Oo, io({}, f, z), function(t) { var n = t.ref, r = t.placerProps, a = r.placement, s = r.maxHeight; return c.a.createElement( o, - Uo({}, f, N, { + io({}, f, z, { innerRef: n, innerProps: { onMouseDown: e.onMenuMouseDown, @@ -235562,14 +235629,14 @@ object-assign placement: a }), c.a.createElement( - Hi, + ti, { isEnabled: m, onTopArrive: T, onBottomArrive: C }, c.a.createElement( - qi, - { isEnabled: A }, + Zo, + { isEnabled: O }, c.a.createElement( i, - Uo({}, f, { + io({}, f, { innerRef: e.getMenuListRef, isLoading: y, maxHeight: s @@ -235583,15 +235650,15 @@ object-assign return S || 'fixed' === k ? c.a.createElement( a, - Uo({}, f, { + io({}, f, { appendTo: S, controlElement: this.controlRef, menuPlacement: M, menuPosition: k }), - j + N ) - : j; + : N; } }, { @@ -235648,7 +235715,7 @@ object-assign value: function() { return this.state.isFocused ? c.a.createElement( - Ei, + Bo, { 'aria-live': 'assertive' }, c.a.createElement( 'p', @@ -235683,7 +235750,7 @@ object-assign d = (this.commonProps = this.getCommonProps()); return c.a.createElement( r, - Uo({}, d, { + io({}, d, { className: a, innerProps: { id: s, onKeyDown: this.onKeyDown }, isDisabled: u, @@ -235692,7 +235759,7 @@ object-assign this.renderLiveRegion(), c.a.createElement( t, - Uo({}, d, { + io({}, d, { innerRef: this.getControlRef, innerProps: { onMouseDown: this.onControlMouseDown, @@ -235704,13 +235771,13 @@ object-assign }), c.a.createElement( o, - Uo({}, d, { isDisabled: u }), + io({}, d, { isDisabled: u }), this.renderPlaceholderOrValue(), this.renderInput() ), c.a.createElement( n, - Uo({}, d, { isDisabled: u }), + io({}, d, { isDisabled: u }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), @@ -235726,19 +235793,19 @@ object-assign t ); })(s.Component); - Vo(ga, 'defaultProps', pa); - var ma = { + oo(Ai, 'defaultProps', Oi); + var Ti = { defaultInputValue: '', defaultMenuIsOpen: !1, defaultValue: null }, - ba = function(e) { + Ci = function(e) { var t, n; return ( (n = t = (function(t) { function n() { var e, t; - Ho(this, n); + to(this, n); for ( var r = arguments.length, o = new Array(r), i = 0; i < r; @@ -235746,19 +235813,19 @@ object-assign ) o[i] = arguments[i]; return ( - Vo( - Jo( - Jo( - (t = Zo( + oo( + fo( + fo( + (t = po( this, - (e = Ko(n)).call.apply(e, [this].concat(o)) + (e = co(n)).call.apply(e, [this].concat(o)) )) ) ), 'select', void 0 ), - Vo(Jo(Jo(t)), 'state', { + oo(fo(fo(t)), 'state', { inputValue: void 0 !== t.props.inputValue ? t.props.inputValue @@ -235772,25 +235839,25 @@ object-assign ? t.props.value : t.props.defaultValue }), - Vo(Jo(Jo(t)), 'onChange', function(e, n) { + oo(fo(fo(t)), 'onChange', function(e, n) { t.callProp('onChange', e, n), t.setState({ value: e }); }), - Vo(Jo(Jo(t)), 'onInputChange', function(e, n) { + oo(fo(fo(t)), 'onInputChange', function(e, n) { var r = t.callProp('onInputChange', e, n); t.setState({ inputValue: void 0 !== r ? r : e }); }), - Vo(Jo(Jo(t)), 'onMenuOpen', function() { + oo(fo(fo(t)), 'onMenuOpen', function() { t.callProp('onMenuOpen'), t.setState({ menuIsOpen: !0 }); }), - Vo(Jo(Jo(t)), 'onMenuClose', function() { + oo(fo(fo(t)), 'onMenuClose', function() { t.callProp('onMenuClose'), t.setState({ menuIsOpen: !1 }); }), t ); } return ( - Go(n, t), - Wo(n, [ + so(n, t), + ro(n, [ { key: 'focus', value: function() { @@ -235837,14 +235904,14 @@ object-assign (n.defaultInputValue, n.defaultMenuIsOpen, n.defaultValue, - Qo(n, [ + lo(n, [ 'defaultInputValue', 'defaultMenuIsOpen', 'defaultValue' ])); return c.a.createElement( e, - Uo({}, r, { + io({}, r, { ref: function(e) { t.select = e; }, @@ -235863,28 +235930,28 @@ object-assign n ); })(s.Component)), - Vo(t, 'defaultProps', ma), + oo(t, 'defaultProps', Ti), n ); }, - ya = { cacheOptions: !1, defaultOptions: !1, filterOption: null }, - va = function(e) { + Li = { cacheOptions: !1, defaultOptions: !1, filterOption: null }, + Pi = function(e) { var t, n; return ( (n = t = (function(t) { function n(e) { var t; return ( - Ho(this, n), - Vo( - Jo(Jo((t = Zo(this, Ko(n).call(this))))), + to(this, n), + oo( + fo(fo((t = po(this, co(n).call(this))))), 'select', void 0 ), - Vo(Jo(Jo(t)), 'lastRequest', void 0), - Vo(Jo(Jo(t)), 'mounted', !1), - Vo(Jo(Jo(t)), 'optionsCache', {}), - Vo(Jo(Jo(t)), 'handleInputChange', function(e, n) { + oo(fo(fo(t)), 'lastRequest', void 0), + oo(fo(fo(t)), 'mounted', !1), + oo(fo(fo(t)), 'optionsCache', {}), + oo(fo(fo(t)), 'handleInputChange', function(e, n) { var r = t.props, o = r.cacheOptions, i = (function(e, t, n) { @@ -235952,8 +236019,8 @@ object-assign ); } return ( - Go(n, t), - Wo(n, [ + so(n, t), + ro(n, [ { key: 'componentDidMount', value: function() { @@ -236022,7 +236089,7 @@ object-assign value: function() { var t = this, n = this.props, - r = (n.loadOptions, Qo(n, ['loadOptions'])), + r = (n.loadOptions, lo(n, ['loadOptions'])), o = this.state, i = o.defaultOptions, a = o.inputValue, @@ -236032,7 +236099,7 @@ object-assign f = o.passEmptyOptions ? [] : a && u ? l : i || []; return c.a.createElement( e, - Uo({}, r, { + io({}, r, { ref: function(e) { t.select = e; }, @@ -236047,12 +236114,12 @@ object-assign n ); })(s.Component)), - Vo(t, 'defaultProps', ya), + oo(t, 'defaultProps', Li), n ); }, - _a = - (va(ba(ga)), + Di = + (Pi(Ci(Ai)), function() { var e = arguments.length > 0 && void 0 !== arguments[0] @@ -236064,7 +236131,7 @@ object-assign o = String(t.label).toLowerCase(); return r === n || o === n; }), - xa = Xo( + ji = ao( { allowCreateWhileLoading: !1, createOptionPosition: 'last' }, { formatCreateLabel: function(e) { @@ -236074,10 +236141,10 @@ object-assign return !( !e || t.some(function(t) { - return _a(e, t); + return Di(e, t); }) || n.some(function(t) { - return _a(e, t); + return Di(e, t); }) ); }, @@ -236086,19 +236153,19 @@ object-assign } } ), - wa = function(e) { + zi = function(e) { var t, n; return ( (n = t = (function(t) { function n(e) { var t; - Ho(this, n), - Vo( - Jo(Jo((t = Zo(this, Ko(n).call(this, e))))), + to(this, n), + oo( + fo(fo((t = po(this, co(n).call(this, e))))), 'select', void 0 ), - Vo(Jo(Jo(t)), 'onChange', function(e, n) { + oo(fo(fo(t)), 'onChange', function(e, n) { var r = t.props, o = r.getNewOptionData, i = r.inputValue, @@ -236114,15 +236181,15 @@ object-assign else { var d = o(i, i), p = { action: 'create-option' }; - s(a ? [].concat(ei(oi(u)), [d]) : d, p); + s(a ? [].concat(ho(yo(u)), [d]) : d, p); } }); var r = e.options || []; return (t.state = { newOption: void 0, options: r }), t; } return ( - Go(n, t), - Wo(n, [ + so(n, t), + ro(n, [ { key: 'componentWillReceiveProps', value: function(e) { @@ -236136,15 +236203,15 @@ object-assign c = e.value, u = e.options || [], l = this.state.newOption; - (l = s(i, oi(c), u) ? o(i, r(i)) : void 0), + (l = s(i, yo(c), u) ? o(i, r(i)) : void 0), this.setState({ newOption: l, options: (!t && a) || !l ? u : 'first' === n - ? [l].concat(ei(u)) - : [].concat(ei(u), [l]) + ? [l].concat(ho(u)) + : [].concat(ho(u), [l]) }); } }, @@ -236164,11 +236231,11 @@ object-assign key: 'render', value: function() { var t = this, - n = Uo({}, this.props), + n = io({}, this.props), r = this.state.options; return c.a.createElement( e, - Uo({}, n, { + io({}, n, { ref: function(e) { t.select = e; }, @@ -236182,27 +236249,27 @@ object-assign n ); })(s.Component)), - Vo(t, 'defaultProps', xa), + oo(t, 'defaultProps', ji), n ); }, - Ma = - (ba(wa(ga)), - va(ba(wa(ga))), + Ni = + (Ci(zi(Ai)), + Pi(Ci(zi(Ai))), function(e) { return function(t) { t.in, t.onExited, t.appear, t.enter, t.exit; - var n = Qo(t, ['in', 'onExited', 'appear', 'enter', 'exit']); + var n = lo(t, ['in', 'onExited', 'appear', 'enter', 'exit']); return c.a.createElement(e, n); }; }), - ka = function(e) { + Ri = function(e) { var t = e.component, n = e.duration, r = void 0 === n ? 1 : n, o = e.in, i = - (e.onExited, Qo(e, ['component', 'duration', 'in', 'onExited'])), + (e.onExited, lo(e, ['component', 'duration', 'in', 'onExited'])), a = { entering: { opacity: 0 }, entered: { opacity: 1, transition: 'opacity '.concat(r, 'ms') }, @@ -236210,40 +236277,41 @@ object-assign exited: { opacity: 0 } }; return c.a.createElement( - qo.Transition, + Zr.Transition, { mountOnEnter: !0, unmountOnExit: !0, in: o, timeout: r }, function(e) { - var n = { style: Xo({}, a[e]) }; - return c.a.createElement(t, Uo({ innerProps: n }, i)); + var n = { style: ao({}, a[e]) }; + return c.a.createElement(t, io({ innerProps: n }, i)); } ); }, - Sa = (function(e) { + Ii = 260, + Fi = (function(e) { function t() { var e, n; - Ho(this, t); + to(this, t); for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) o[i] = arguments[i]; return ( - Vo( - Jo( - Jo( - (n = Zo(this, (e = Ko(t)).call.apply(e, [this].concat(o)))) + oo( + fo( + fo( + (n = po(this, (e = co(t)).call.apply(e, [this].concat(o)))) ) ), 'duration', - 260 + Ii ), - Vo(Jo(Jo(n)), 'rafID', void 0), - Vo(Jo(Jo(n)), 'state', { width: 'auto' }), - Vo(Jo(Jo(n)), 'transition', { + oo(fo(fo(n)), 'rafID', void 0), + oo(fo(fo(n)), 'state', { width: 'auto' }), + oo(fo(fo(n)), 'transition', { exiting: { width: 0, transition: 'width '.concat(n.duration, 'ms ease-out') }, exited: { width: 0 } }), - Vo(Jo(Jo(n)), 'getWidth', function(e) { + oo(fo(fo(n)), 'getWidth', function(e) { e && isNaN(n.state.width) && (n.rafID = window.requestAnimationFrame(function() { @@ -236251,18 +236319,18 @@ object-assign n.setState({ width: t }); })); }), - Vo(Jo(Jo(n)), 'getStyle', function(e) { + oo(fo(fo(n)), 'getStyle', function(e) { return { overflow: 'hidden', whiteSpace: 'nowrap', width: e }; }), - Vo(Jo(Jo(n)), 'getTransition', function(e) { + oo(fo(fo(n)), 'getTransition', function(e) { return n.transition[e]; }), n ); } return ( - Go(t, e), - Wo(t, [ + so(t, e), + ro(t, [ { key: 'componentWillUnmount', value: function() { @@ -236278,7 +236346,7 @@ object-assign r = t.in, o = this.state.width; return c.a.createElement( - qo.Transition, + Zr.Transition, { enter: !1, mountOnEnter: !0, @@ -236287,7 +236355,7 @@ object-assign timeout: this.duration }, function(t) { - var r = Xo({}, e.getStyle(o), e.getTransition(t)); + var r = ao({}, e.getStyle(o), e.getTransition(t)); return c.a.createElement( 'div', { ref: e.getWidth, style: r }, @@ -236301,78 +236369,78 @@ object-assign t ); })(s.Component), - Aa = function(e) { + qi = function(e) { return function(t) { var n = t.in, r = t.onExited, - o = Qo(t, ['in', 'onExited']); + o = lo(t, ['in', 'onExited']); return c.a.createElement( - Sa, + Fi, { in: n, onExited: r }, - c.a.createElement(e, Uo({ cropWithEllipsis: n }, o)) + c.a.createElement(e, io({ cropWithEllipsis: n }, o)) ); }; }, - Oa = function(e) { + Bi = function(e) { return function(t) { return c.a.createElement( - ka, - Uo({ component: e, duration: t.isMulti ? 260 : 1 }, t) + Ri, + io({ component: e, duration: t.isMulti ? Ii : 1 }, t) ); }; }, - Ea = function(e) { + Hi = function(e) { return function(t) { - return c.a.createElement(ka, Uo({ component: e }, t)); + return c.a.createElement(Ri, io({ component: e }, t)); }; }, - Ta = function(e) { + Yi = function(e) { return function(t) { return c.a.createElement( - qo.TransitionGroup, - Uo({ component: e }, t) + Zr.TransitionGroup, + io({ component: e }, t) ); }; }, - Ca = function() { + Wi = function() { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, - t = ua({ components: e }), + t = xi({ components: e }), n = t.Input, r = t.MultiValue, o = t.Placeholder, i = t.SingleValue, a = t.ValueContainer, - s = Qo(t, [ + s = lo(t, [ 'Input', 'MultiValue', 'Placeholder', 'SingleValue', 'ValueContainer' ]); - return Xo( + return ao( { - Input: Ma(n), - MultiValue: Aa(r), - Placeholder: Oa(o), - SingleValue: Ea(i), - ValueContainer: Ta(a) + Input: Ni(n), + MultiValue: qi(r), + Placeholder: Bi(o), + SingleValue: Hi(i), + ValueContainer: Yi(a) }, s ); }, - La = Ca(), - Pa = - (La.Input, - La.MultiValue, - La.Placeholder, - La.SingleValue, - La.ValueContainer, - Object(zo.a)(Ca, Mi), - ba(ga)), - Da = Ge( + Vi = Wi(), + Ui = + (Vi.Input, + Vi.MultiValue, + Vi.Placeholder, + Vi.SingleValue, + Vi.ValueContainer, + Object(Xr.a)(Wi, No), + Ci(Ai)), + Xi = ot( function(e) { return { sortingValue: e.app.sortingValue }; }, @@ -236390,11 +236458,11 @@ object-assign return c.a.createElement( 'div', { className: 'top-toolbar' }, - 'editor' === t && c.a.createElement(Do, null), + 'editor' === t && c.a.createElement(Ur, null), c.a.createElement( 'div', { className: 'search' }, - c.a.createElement(xo, { icon: 'search', size: 'sm' }), + c.a.createElement(Nr.a, { icon: 'search', size: 'sm' }), c.a.createElement('input', { type: 'text', placeholder: 'Search', @@ -236406,7 +236474,7 @@ object-assign c.a.createElement( 'div', { className: 'sorting-select' }, - c.a.createElement(Pa, { + c.a.createElement(Ui, { value: n, onChange: function(t) { return e.changeSorting(t); @@ -236421,7 +236489,7 @@ object-assign ) ); }), - za = Ge(null, { + Gi = ot(null, { deleteDashboardItem: function(e, t) { return function(n, r, o) { var i = o.keenClient, @@ -236433,11 +236501,11 @@ object-assign .concat(a, '/projects/') .concat(i.projectId(), '/dashboards/') .concat(e), - Br({ method: 'delete' }, s) + hr({ method: 'delete' }, s) ) .then(function(r) { 204 === r.status && - (t && n(Yr(c)), + (t && n(mr(c)), n({ type: 'DELETE_DASHBOARD_ITEM', id: e })); }) .catch(function(e) { @@ -236461,12 +236529,12 @@ object-assign { onClick: function() { confirm('Do You want to delete this dashboard?') && - (Wt.hide(), t(n, r)); + (Mt.a.hide(), t(n, r)); } }, - c.a.createElement(xo, { icon: 'trash-alt', size: 'sm' }) + c.a.createElement(Nr.a, { icon: 'trash-alt', size: 'sm' }) ), - c.a.createElement(Wt, { + c.a.createElement(Mt.a, { id: 'enrich', place: 'top', type: 'dark', @@ -236477,98 +236545,31 @@ object-assign }) ); }), - Na = Object(d.oneOfType)([d.number, d.func]), - ja = Object(d.arrayOf)( - Object(d.oneOfType)([ - Object(d.shape)({ - unit: d.string.isRequired, - factor: d.number, - granularity: d.number, - threshold: Na + Ki = Object(h.oneOfType)([h.number, h.func]), + $i = Object(h.arrayOf)( + Object(h.oneOfType)([ + Object(h.shape)({ + unit: h.string.isRequired, + factor: h.number, + granularity: h.number, + threshold: Ki }), - Object(d.shape)({ format: d.func.isRequired, threshold: Na }) + Object(h.shape)({ format: h.func.isRequired, threshold: Ki }) ]) ), - Ra = Object(d.oneOfType)([ - d.string, - Object(d.shape)({ - gradation: ja, - units: Object(d.arrayOf)(d.string), - flavour: Object(d.oneOfType)([ - d.string, - Object(d.arrayOf)(d.string) + Qi = Object(h.oneOfType)([ + h.string, + Object(h.shape)({ + gradation: $i, + units: Object(h.arrayOf)(h.string), + flavour: Object(h.oneOfType)([ + h.string, + Object(h.arrayOf)(h.string) ]), - custom: d.func + custom: h.func }) ]), - Ia = new wn(); - function Fa(e, t) { - if (!zn()) - return function(e) { - return e.toString(); - }; - var n = (function(e) { - var t = e.toString(); - if (qa[t]) return qa[t]; - return (qa[t] = (function(e) { - if (zn()) return Intl.DateTimeFormat.supportedLocalesOf(e)[0]; - })(e)); - })(e), - r = JSON.stringify(t), - o = - Ia.get(String(n), r) || - Ia.put(String(n), r, new Intl.DateTimeFormat(n, t)); - return function(e) { - return o.format(e); - }; - } - var qa = {}; - var Ba = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(e) { - return typeof e; - } - : function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - }; - function Ha(e) { - return e instanceof Date || Ya(e); - } - function Ya(e) { - return ( - 'object' === (void 0 === e ? 'undefined' : Ba(e)) && - 'function' == typeof e.getTime - ); - } - var Wa = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }, - Va = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(e) { - return typeof e; - } - : function(e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - }, - Ua = (function() { + Ji = (function() { function e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; @@ -236582,217 +236583,295 @@ object-assign return n && e(t.prototype, n), r && e(t, r), t; }; })(); - var Xa = c.a.PureComponent || c.a.Component, - Ga = 36e5, - Ka = 24 * Ga, - $a = [ - { interval: 6e4 }, - { threshold: Ga, interval: 6e5 }, - { threshold: 12 * Ga, interval: 12e5 }, - { threshold: Ka, interval: 3 * Ga }, - { threshold: 7 * Ka, interval: 6 * Ga }, - { threshold: 2592e6, interval: 5 * Ka }, - { threshold: 7776e6, interval: 10 * Ka }, - { threshold: 31536e6, interval: 2592e6 } - ], - Qa = (function(e) { - function t(e) { + var Zi = (function() { + function e(t) { + var n = this; !(function(e, t) { if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function'); - })(this, t); - var n = (function(e, t) { - if (!e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !t || ('object' != typeof t && 'function' != typeof t) - ? e - : t; - })(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e)); - if ( - ((n.timeAgo = new Un(n.getPreferredLocales())), - 'undefined' != typeof window) - ) { - var r = n.props.verboseDateFormat; - n.formatVerboseDate = Fa(n.getPreferredLocales(), r); - } - return n; + })(this, e), + (this.subscribers = []), + (this.trigger = function(e) { + var t = n.subscribers, + r = Array.isArray(t), + o = 0; + for (t = r ? t : t[Symbol.iterator](); ; ) { + var i; + if (r) { + if (o >= t.length) break; + i = t[o++]; + } else { + if ((o = t.next()).done) break; + i = o.value; + } + i(); + } + n.schedule(); + }), + (this.period = t); } return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof t - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { - value: e, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - t && - (Object.setPrototypeOf - ? Object.setPrototypeOf(e, t) - : (e.__proto__ = t)); - })(t, e), - Ua(t, [ + Ji(e, [ { - key: 'componentDidMount', + key: 'start', value: function() { - this.props.tick && this.scheduleNextTick(); + this.scheduled || this.schedule(); } }, { - key: 'componentWillUnmount', + key: 'schedule', value: function() { - clearTimeout(this.autoUpdateTimer); + this.scheduled = setTimeout(this.trigger, this.period); } }, { - key: 'scheduleNextTick', + key: 'stop', value: function() { - var e = this; - this.autoUpdateTimer = setTimeout(function() { - e.forceUpdate(), e.scheduleNextTick(); - }, this.getNextAutoUpdateDelay()); + clearTimeout(this.scheduled), (this.scheduled = void 0); } }, { - key: 'getNextAutoUpdateDelay', - value: function() { - var e = this.props, - t = e.date, - n = e.timeStyle, - r = e.updateInterval; - if ('object' === (void 0 === n ? 'undefined' : Va(n))) - return r; - var o = (function(e) { - return Ha(e) ? e.getTime() : e; - })(t), - i = Date.now(), - a = Math.abs(i - o), - s = void 0, - c = $a, - u = Array.isArray(c), - l = 0; - for (c = u ? c : c[Symbol.iterator](); ; ) { - var f; - if (u) { - if (l >= c.length) break; - f = c[l++]; - } else { - if ((l = c.next()).done) break; - f = l.value; + key: 'add', + value: function(e) { + var t = this; + return ( + this.subscribers.indexOf(e) < 0 && this.subscribers.push(e), + 1 === this.subscribers.length && this.start(), + function() { + return t.remove(e); } - var d = f, - p = d.interval, - h = d.threshold; - (h && a < h) || (s = p); - } - return Math.min(s, 2147483647); + ); } }, { - key: 'render', - value: function() { - var e = this.props, - t = e.date, - n = e.timeStyle, - r = e.tooltip, - o = e.container, - i = - (e.locale, - e.locales, - e.formatVerboseDate, - e.verboseDateFormat, - e.updateInterval, - e.tick, - (function(e, t) { - var n = {}; - for (var r in e) - t.indexOf(r) >= 0 || - (Object.prototype.hasOwnProperty.call(e, r) && - (n[r] = e[r])); - return n; - })(e, [ - 'date', - 'timeStyle', - 'tooltip', - 'container', - 'locale', - 'locales', - 'formatVerboseDate', - 'verboseDateFormat', - 'updateInterval', - 'tick' - ])), - a = (function(e) { - return Ha(e) ? e : new Date(e); - })(t), - s = - 'undefined' == typeof window - ? void 0 - : this.getVerboseDate(a), - u = c.a.createElement( - 'time', - Wa( - { dateTime: a.toISOString(), title: r ? s : void 0 }, - i - ), - this.timeAgo.format(a, n) - ); - return o - ? c.a.createElement(o, Wa({ verboseDate: s }, i), u) - : u; + key: 'remove', + value: function(e) { + this.subscribers.indexOf(e) >= 0 && + this.subscribers.splice(this.subscribers.indexOf(e), 1), + 0 === this.subscribers.length && this.stop(); } }, { - key: 'getPreferredLocales', + key: 'destroy', value: function() { - var e = this.props.locale, - t = this.props.locales; - return e && (t = [e]), t.concat(Un.getDefaultLocale()); - } - }, - { - key: 'getVerboseDate', - value: function(e) { - var t = this.props.formatVerboseDate; - return t ? t(Za(e)) : this.formatVerboseDate(Za(e)); + this.stop(), (this.subscribers = []); } } ]), - t - ); - })(Xa), - Ja = Qa; - function Za(e) { - if (e.constructor === Date || Ya(e)) return e; - if ('number' == typeof e) return new Date(e); - throw new Error( - 'Unsupported react-time-ago input: ' + - (void 0 === e ? 'undefined' : Va(e)) + - ', ' + e - ); + ); + })(), + ea = new Zt(); + function ta(e, t) { + if (!cn()) + return function(e) { + return e.toString(); + }; + var n = (function(e) { + var t = e.toString(); + if (na[t]) return na[t]; + return (na[t] = (function(e) { + if (cn()) return Intl.DateTimeFormat.supportedLocalesOf(e)[0]; + })(e)); + })(e), + r = JSON.stringify(t), + o = + ea.get(String(n), r) || + ea.put(String(n), r, new Intl.DateTimeFormat(n, t)); + return function(e) { + return o.format(e); + }; } - (Qa.propTypes = { - date: p.a.oneOfType([p.a.instanceOf(Date), p.a.number]).isRequired, - locale: p.a.string, - locales: p.a.arrayOf(p.a.string), - timeStyle: Ra, - tooltip: p.a.bool.isRequired, - formatVerboseDate: p.a.func, - verboseDateFormat: p.a.object, - updateInterval: p.a.number, - tick: p.a.bool, - container: p.a.func + var na = {}; + var ra = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function(e) { + return typeof e; + } + : function(e) { + return e && + 'function' == typeof Symbol && + e.constructor === Symbol && + e !== Symbol.prototype + ? 'symbol' + : typeof e; + }, + oa = + Object.assign || + function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); + } + return e; + }, + ia = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(); + var aa = (function(e) { + function t(e) { + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, t); + var n = (function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !t || ('object' != typeof t && 'function' != typeof t) + ? e + : t; + })(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e)); + if ( + ((n.timeAgo = new vn(n.getPreferredLocales())), + 'undefined' != typeof window) + ) { + var r = n.props.verboseDateFormat; + n.formatVerboseDate = ta(n.getPreferredLocales(), r); + } + return n; + } + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof t + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + t && + (Object.setPrototypeOf + ? Object.setPrototypeOf(e, t) + : (e.__proto__ = t)); + })(t, e), + ia(t, [ + { + key: 'componentDidMount', + value: function() { + var e = this, + t = this.props, + n = t.tick, + r = t.updateInterval; + n && + (window._react_time_ago_updater || + (window._react_time_ago_updater = new Zi(r)), + (this.stopAutoupdate = window._react_time_ago_updater.add( + function() { + return e.forceUpdate(); + } + ))); + } + }, + { + key: 'componentWillUnmount', + value: function() { + this.stopAutoupdate && this.stopAutoupdate(); + } + }, + { + key: 'render', + value: function() { + var e = this.props, + t = e.date, + n = e.timeStyle, + r = e.tooltip, + o = e.container, + i = + (e.locale, + e.locales, + e.formatVerboseDate, + e.verboseDateFormat, + e.updateInterval, + e.tick, + (function(e, t) { + var n = {}; + for (var r in e) + t.indexOf(r) >= 0 || + (Object.prototype.hasOwnProperty.call(e, r) && + (n[r] = e[r])); + return n; + })(e, [ + 'date', + 'timeStyle', + 'tooltip', + 'container', + 'locale', + 'locales', + 'formatVerboseDate', + 'verboseDateFormat', + 'updateInterval', + 'tick' + ])), + a = (function(e) { + if (e instanceof Date) return e; + if ('number' == typeof e) return new Date(e); + })(t), + s = + 'undefined' == typeof window + ? void 0 + : this.getVerboseDate(a), + u = c.a.createElement( + 'time', + oa({ dateTime: a.toISOString(), title: r ? s : void 0 }, i), + this.timeAgo.format(a, n) + ); + return o + ? c.a.createElement(o, oa({ verboseDate: s }, i), u) + : u; + } + }, + { + key: 'getPreferredLocales', + value: function() { + var e = this.props.locale, + t = this.props.locales; + return e && (t = [e]), (t = t.concat(vn.getDefaultLocale())); + } + }, + { + key: 'getVerboseDate', + value: function(e) { + var t = this.props.formatVerboseDate; + return t ? t(ca(e)) : this.formatVerboseDate(ca(e)); + } + } + ]), + t + ); + })(c.a.PureComponent || c.a.Component); + (aa.propTypes = { + date: g.a.oneOfType([g.a.instanceOf(Date), g.a.number]).isRequired, + locale: g.a.string, + locales: g.a.arrayOf(g.a.string), + timeStyle: Qi, + tooltip: g.a.bool.isRequired, + formatVerboseDate: g.a.func, + verboseDateFormat: g.a.object, + updateInterval: g.a.number, + tick: g.a.bool, + container: g.a.func }), - (Qa.defaultProps = { + (aa.defaultProps = { locales: [], tooltip: !0, verboseDateFormat: { @@ -236806,9 +236885,19 @@ object-assign }, updateInterval: 6e4, tick: !0 - }), - (Qa.default = Qa); - var es = function(e) { + }); + var sa = aa; + function ca(e) { + if (e.constructor === Date) return e; + if ('number' == typeof e) return new Date(e); + throw new Error( + 'Unsupported react-time-ago input: ' + + (void 0 === e ? 'undefined' : ra(e)) + + ', ' + + e + ); + } + var ua = function(e) { var t = e.title, n = e.id, r = e.version, @@ -236819,21 +236908,21 @@ object-assign 'div', { className: 'dashboard-list-item' }, c.a.createElement( - he, + pe, { to: a }, c.a.createElement( 'div', { className: 'dashboard-list-item-box' }, t, - c.a.createElement(Ja, { date: new Date(o) }) + c.a.createElement(sa, { date: new Date(o) }) ) ), - 'editor' === r && c.a.createElement(za, { id: n, is_public: i }) + 'editor' === r && c.a.createElement(Gi, { id: n, is_public: i }) ); }, - ts = n(19), - ns = n.n(ts), - rs = Ge( + la = n(30), + fa = n.n(la), + da = ot( function(e) { var t = e.app; return { @@ -236844,7 +236933,7 @@ object-assign }; }, { - addDashboardItem: Hr, + addDashboardItem: gr, loadDummyDashboards: function() { return { type: 'LOAD_DUMMY_DASHBOARDS' }; } @@ -236869,7 +236958,7 @@ object-assign return ( Object(s.useEffect)(function() { n && !l.length && i('My first dashboard'), - ns()(t, l) || + fa()(t, l) || (l = t.filter(function(e) { return ( '' === r || @@ -236881,14 +236970,14 @@ object-assign c.a.createElement( 'div', { className: 'dashboard-builder container' }, - c.a.createElement(Da, { version: o }), + c.a.createElement(Xi, { version: o }), l.length ? l.map(function(e, t) { var n = e.title, r = e.id, i = e.last_modified_date, a = e.is_public; - return c.a.createElement(es, { + return c.a.createElement(ua, { key: r, id: r, title: n, @@ -236915,64 +237004,39 @@ object-assign c.a.createElement( 'span', { className: 'loading' }, - c.a.createElement(xo, { icon: 'spinner', size: '1x' }) + c.a.createElement(Nr.a, { icon: 'spinner', size: '1x' }) ) ) ) ) ); }), - os = Ge(null, { loadDashboards: Vr })(function(e) { + pa = ot(null, { loadDashboards: yr })(function(e) { return ( Object(s.useEffect)(function() { e.loadDashboards(); }, []), - c.a.createElement(rs, { + c.a.createElement(da, { version: 'editor', keenWebHost: e.keenWebHost }) ); - }); - function is() { - if ('undefined' == typeof Reflect || !Reflect.construct) return !1; - if (Reflect.construct.sham) return !1; - if ('function' == typeof Proxy) return !0; - try { - return ( - Date.prototype.toString.call( - Reflect.construct(Date, [], function() {}) - ), - !0 - ); - } catch (e) { - return !1; - } - } - var as = (function(e) { - Ao()(r, e); - var t, - n = - ((t = r), - function() { - var e, - n = Co()(t); - if (is()) { - var r = Co()(this).constructor; - e = Reflect.construct(n, arguments, r); - } else e = n.apply(this, arguments); - return Eo()(this, e); - }); - function r(e) { - var t; + }), + ha = (function(e) { + function t(e) { + var n; return ( - a()(this, r), - ((t = n.call(this, e)).dragStartHandler = function(e) { + a()(this, t), + ((n = qr()( + this, + Hr()(t).call(this, e) + )).dragStartHandler = function(e) { e.dataTransfer.setData('text/plain', ''), - t.props.dragStartHandler(e.target.getAttribute('name')); + n.props.dragStartHandler(e.target.getAttribute('name')); }), - (t.addElementOnClick = function(e, n) { - var r = t.props.dropHandler, - o = 'chart-'.concat(Gt()); + (n.addElementOnClick = function(e, t) { + var r = n.props.dropHandler, + o = 'chart-'.concat(Et()); r( { i: o, @@ -236980,7 +237044,7 @@ object-assign y: 1 / 0, w: 2, h: 4, - type: n, + type: t, savedQuery: [], src: '', text: '', @@ -236989,11 +237053,12 @@ object-assign o ); }), - t + n ); } return ( - ko()(r, [ + Wr()(t, e), + Ir()(t, [ { key: 'render', value: function() { @@ -237048,7 +237113,7 @@ object-assign return e.addElementOnClick(t, 'bar'); } }, - c.a.createElement(xo, { + c.a.createElement(Nr.a, { icon: 'chart-bar', size: '2x' }) @@ -237067,7 +237132,7 @@ object-assign return e.addElementOnClick(t, 'line'); } }, - c.a.createElement(xo, { + c.a.createElement(Nr.a, { icon: 'chart-line', size: '2x' }) @@ -237086,7 +237151,7 @@ object-assign return e.addElementOnClick(t, 'area'); } }, - c.a.createElement(xo, { + c.a.createElement(Nr.a, { icon: 'chart-area', size: '2x' }) @@ -237105,7 +237170,7 @@ object-assign return e.addElementOnClick(t, 'pie'); } }, - c.a.createElement(xo, { + c.a.createElement(Nr.a, { icon: 'chart-pie', size: '2x' }) @@ -237124,7 +237189,7 @@ object-assign return e.addElementOnClick(t, 'table'); } }, - c.a.createElement(xo, { icon: 'table', size: '2x' }) + c.a.createElement(Nr.a, { icon: 'table', size: '2x' }) ), c.a.createElement( 'p', @@ -237140,7 +237205,10 @@ object-assign return e.addElementOnClick(t, 'funnel'); } }, - c.a.createElement(xo, { icon: 'filter', size: '2x' }) + c.a.createElement(Nr.a, { + icon: 'filter', + size: '2x' + }) ), c.a.createElement('h4', null, 'Elements'), c.a.createElement( @@ -237157,7 +237225,7 @@ object-assign return e.addElementOnClick(t, 'paragraph'); } }, - c.a.createElement(xo, { + c.a.createElement(Nr.a, { icon: 'paragraph', size: '2x' }) @@ -237176,9 +237244,9 @@ object-assign return e.addElementOnClick(t, 'image'); } }, - c.a.createElement(xo, { icon: 'image', size: '2x' }) + c.a.createElement(Nr.a, { icon: 'image', size: '2x' }) ), - c.a.createElement(Wt, { + c.a.createElement(Mt.a, { id: 'enrich', place: 'top', type: 'dark', @@ -237195,7 +237263,7 @@ object-assign className: 'toolbar-bar', onMouseOver: this.props.showToolbar }, - c.a.createElement(xo, { + c.a.createElement(Nr.a, { className: 'plus-icon', icon: 'plus-circle', size: 'lg' @@ -237206,10 +237274,10 @@ object-assign } } ]), - r + t ); })(s.Component), - ss = Ge( + ga = ot( function(e) { var t = e.app, n = t.dashboardInfo; @@ -237232,13 +237300,13 @@ object-assign closeToolbar: function() { return { type: 'CLOSE_TOOLBAR' }; }, - dropHandler: $r + dropHandler: Mr } - )(as), - cs = n(428), - us = n.n(cs), - ls = n(429), - fs = Ge( + )(ha), + ma = n(457), + ba = n.n(ma), + ya = n(458), + va = ot( function(e) { var t = e.app; return { @@ -237248,15 +237316,15 @@ object-assign }; }, { - saveDashboard: Gr, + saveDashboard: wr, hideSavedDashboardMessage: function() { return { type: 'HIDE_SAVED_DASHBOARD_MESSAGE' }; }, - toggleDashboardsMenu: to, + toggleDashboardsMenu: Ar, makeDashboardPublicAndSave: function(e) { return function(t, n) { var r = e; - e.is_public || (t(Kr()), (r = n().dashboardInfo)), t(Gr(r)); + e.is_public || (t(xr()), (r = n().dashboardInfo)), t(wr(r)); }; } } @@ -237280,7 +237348,7 @@ object-assign 'div', { className: 'dashboard-top-bar__breakpoints' }, 'viewer' === n && - c.a.createElement(xo, { + c.a.createElement(Nr.a, { className: 'export-icon', icon: 'file-download', size: 'lg', @@ -237289,12 +237357,12 @@ object-assign onClick: function() { var e; (e = u) && - us.a.toBlob(e).then(function(e) { - Object(ls.saveAs)(e, 'dashboard.png'); + ba.a.toBlob(e).then(function(e) { + Object(ya.saveAs)(e, 'dashboard.png'); }); } }), - c.a.createElement(Wt, { + c.a.createElement(Mt.a, { id: 'screen-size', place: 'bottom', type: 'dark', @@ -237321,9 +237389,9 @@ object-assign i('embed'), a(t), s(); } }, - c.a.createElement(xo, { icon: 'code', size: 'lg' }) + c.a.createElement(Nr.a, { icon: 'code', size: 'lg' }) ), - c.a.createElement(Wt, { + c.a.createElement(Mt.a, { id: 'embed-icon', place: 'bottom', type: 'dark', @@ -237347,9 +237415,9 @@ object-assign i('share'), a(t), s(); } }, - c.a.createElement(xo, { icon: 'share-alt', size: 'lg' }) + c.a.createElement(Nr.a, { icon: 'share-alt', size: 'lg' }) ), - c.a.createElement(Wt, { + c.a.createElement(Mt.a, { id: 'share-icon', place: 'bottom', type: 'dark', @@ -237371,9 +237439,9 @@ object-assign 'data-tip': 'Preview' }, c.a.createElement( - he, + pe, { to: '/viewer/'.concat(t.id) }, - c.a.createElement(xo, { + c.a.createElement(Nr.a, { icon: 'eye', size: 'lg', onClick: function() { @@ -237382,7 +237450,7 @@ object-assign }) ) ), - c.a.createElement(Wt, { + c.a.createElement(Mt.a, { id: 'preview-icon', place: 'bottom', type: 'dark', @@ -237401,14 +237469,14 @@ object-assign return r(e.dashboardInfo), void s(); } }, - c.a.createElement(xo, { icon: 'save', size: 'sm' }), + c.a.createElement(Nr.a, { icon: 'save', size: 'sm' }), ' Save' ) ) ); }), - ds = se( - Ge( + _a = fe( + ot( function(e) { var t = e.app, n = t.dashboardInfo; @@ -237418,7 +237486,7 @@ object-assign dashboardList: t.dashboardList }; }, - { loadDashboardInfo: Ur } + { loadDashboardInfo: vr } )(function(e) { var t = e.dashboardList.map(function(e) { return { value: e.id, label: e.title }; @@ -237426,7 +237494,7 @@ object-assign return c.a.createElement( 'div', { className: 'switch-dashboard' }, - c.a.createElement(Pa, { + c.a.createElement(Ui, { value: { value: e.id, label: e.title }, onChange: function(t) { return (function(t) { @@ -237438,8 +237506,8 @@ object-assign ); }) ), - ps = se( - Ge( + wa = fe( + ot( function(e) { var t = e.app; return { @@ -237449,12 +237517,12 @@ object-assign }; }, { - toggleDashboardsMenu: to, - loadDashboardInfo: Ur, - clearAccessKey: oo, - setNewDashboardForFocus: no, - addDashboardItem: Hr, - loadingSingleDashboard: io, + toggleDashboardsMenu: Ar, + loadDashboardInfo: vr, + clearAccessKey: Lr, + setNewDashboardForFocus: Tr, + addDashboardItem: gr, + loadingSingleDashboard: Pr, filterDashboardsMenu: function(e) { return { type: 'FILTER_DASHBOARDS_MENU', value: e }; } @@ -237479,7 +237547,7 @@ object-assign 'div', { className: 'modal-header' }, 'Dashboards', - c.a.createElement(xo, { + c.a.createElement(Nr.a, { icon: 'times', size: 'sm', onClick: function() { @@ -237524,13 +237592,13 @@ object-assign 'span', null, n === t.id && - c.a.createElement(xo, { + c.a.createElement(Nr.a, { icon: 'angle-double-right', size: 'sm' }), t.title ), - c.a.createElement(Ja, { + c.a.createElement(sa, { className: 'time', date: new Date(t.last_modified_date) }) @@ -237540,57 +237608,33 @@ object-assign c.a.createElement( 'div', { className: 'modal-footer' }, - c.a.createElement(Do, null) + c.a.createElement(Ur, null) ) ) ); }) - ); - function hs() { - if ('undefined' == typeof Reflect || !Reflect.construct) return !1; - if (Reflect.construct.sham) return !1; - if ('function' == typeof Proxy) return !0; - try { - return ( - Date.prototype.toString.call( - Reflect.construct(Date, [], function() {}) - ), - !0 - ); - } catch (e) { - return !1; - } - } - var gs = (function(e) { - Ao()(r, e); - var t, - n = - ((t = r), - function() { - var e, - n = Co()(t); - if (hs()) { - var r = Co()(this).constructor; - e = Reflect.construct(n, arguments, r); - } else e = n.apply(this, arguments); - return Eo()(this, e); - }); - function r(e) { - var t; + ), + xa = (function(e) { + function t(e) { + var n; return ( - a()(this, r), - ((t = n.call(this, e)).handleFocus = function() { - t.title.current.focus(), t.title.current.select(); + a()(this, t), + ((n = qr()( + this, + Hr()(t).call(this, e) + )).handleFocus = function() { + n.title.current.focus(), n.title.current.select(); }), - (t.handleClick = function() { - t.props.toggleDashboardsMenu('dashboard'); + (n.handleClick = function() { + n.props.toggleDashboardsMenu('dashboard'); }), - (t.title = c.a.createRef()), - t + (n.title = c.a.createRef()), + n ); } return ( - ko()(r, [ + Wr()(t, e), + Ir()(t, [ { key: 'componentDidMount', value: function() { @@ -237615,7 +237659,7 @@ object-assign var e = this.props, t = e.title; return e.switcherEnabled - ? c.a.createElement(ds, null) + ? c.a.createElement(_a, null) : c.a.createElement('h1', { className: 'title' }, t); } }, @@ -237639,12 +237683,12 @@ object-assign c.a.createElement( 'div', { className: 'burger-icon' }, - c.a.createElement(xo, { + c.a.createElement(Nr.a, { icon: 'bars', size: 'lg', onClick: this.handleClick }), - 'dashboard' === i && c.a.createElement(ps, null) + 'dashboard' === i && c.a.createElement(wa, null) ), c.a.createElement('input', { ref: this.title, @@ -237667,12 +237711,12 @@ object-assign 'div', { className: 'edit-dashboard-button' }, c.a.createElement( - he, + pe, { to: '/editor/'.concat(n), className: 'edit-dashboard-button__link' }, - c.a.createElement(xo, { + c.a.createElement(Nr.a, { icon: 'edit', size: 'sm' }), @@ -237684,10 +237728,10 @@ object-assign } } ]), - r + t ); })(s.Component), - ms = Ge( + Ma = ot( function(e) { var t = e.app, n = t.dashboardInfo; @@ -237702,33 +237746,33 @@ object-assign changeDashboardTitle: function(e) { return { type: 'CHANGE_DASHBOARD_TITLE', title: e }; }, - toggleDashboardsMenu: to, - setNewDashboardForFocus: no + toggleDashboardsMenu: Ar, + setNewDashboardForFocus: Tr } - )(gs); - gs.defaultProps = { switcherEnabled: !0, editable: !0 }; - var bs = function(e) { + )(xa); + xa.defaultProps = { switcherEnabled: !0, editable: !0 }; + var ka = function(e) { var t = e.version, n = e.isDashboardPublic; return c.a.createElement( 'div', { className: 'dashboard-title' }, - c.a.createElement(ms, { + c.a.createElement(Ma, { version: t, switcherEnabled: !n, editable: !n }) ); }, - ys = n(178), - vs = n.n(ys), - _s = n(430), - xs = n.n(_s), - ws = (function() { - var e = xs()( - vs.a.mark(function e(t, n, r) { + Sa = n(199), + Oa = n.n(Sa), + Ea = n(459), + Aa = n.n(Ea), + Ta = (function() { + var e = Aa()( + Oa.a.mark(function e(t, n, r) { var o, i, a, s; - return vs.a.wrap(function(e) { + return Oa.a.wrap(function(e) { for (;;) switch ((e.prev = e.next)) { case 0: @@ -237778,7 +237822,7 @@ object-assign return e.apply(this, arguments); }; })(), - Ms = function(e) { + Ca = function(e) { var t = document.createElement('textarea'); (t.value = e), document.body.appendChild(t), @@ -237786,8 +237830,8 @@ object-assign document.execCommand('copy'), document.body.removeChild(t); }, - ks = se( - Ge( + La = fe( + ot( function(e) { var t = e.app, n = t.dashboardInfo, @@ -237805,12 +237849,12 @@ object-assign savedQueriesList: s }; }, - { toggleDashboardsMenu: to, setAccessKey: ro, clearAccessKey: oo } + { toggleDashboardsMenu: Ar, setAccessKey: Cr, clearAccessKey: Lr } )(function(e) { - var t = Object(s.useContext)(Er); + var t = Object(s.useContext)(tr); Object(s.useEffect)(function() { e.accessKey || - ws(e.savedQueriesList, e.id, t).then(function(t) { + Ta(e.savedQueriesList, e.id, t).then(function(t) { return e.setAccessKey(t); }); }, []); @@ -237827,7 +237871,7 @@ object-assign 'div', { className: 'modal-header' }, 'Share Your Dashboard', - c.a.createElement(xo, { + c.a.createElement(Nr.a, { icon: 'times', size: 'sm', onClick: function() { @@ -237860,28 +237904,28 @@ object-assign className: 'modal-button', type: 'button', onClick: function() { - return Ms(n()); + return Ca(n()); } }, - c.a.createElement(xo, { icon: 'copy', size: 'sm' }), + c.a.createElement(Nr.a, { icon: 'copy', size: 'sm' }), 'COPY' ) ) ); }) ), - Ss = n(179), - As = n.n(Ss), - Os = - (n(535), - n(536), - n(537), - n(538), - n(539), - n(541), - n(542), - se( - Ge( + Pa = n(200), + Da = n.n(Pa), + ja = + (n(579), + n(580), + n(581), + n(582), + n(583), + n(585), + n(586), + fe( + ot( function(e) { var t = e.app; return { @@ -237890,22 +237934,22 @@ object-assign }; }, { - toggleDashboardsMenu: to, + toggleDashboardsMenu: Ar, setAccessKey: function(e) { - return ro(e); + return Cr(e); } } )(function(e) { - var t = Object(s.useContext)(Er); + var t = Object(s.useContext)(tr); Object(s.useEffect)(function() { e.accessKey || - ws(e.dashboardInfo.data, e.id, t).then(function(t) { + Ta(e.dashboardInfo.data, e.id, t).then(function(t) { return e.setAccessKey(t); }); }, []); var n = '\n \n \n \n \n \n \n
\n \n \n ' ), - r = As.a.highlight(n, As.a.languages.html, 'html'); + r = Da.a.highlight(n, Da.a.languages.html, 'html'); return c.a.createElement( 'div', { className: 'embed-dashboard modal' }, @@ -237928,7 +237972,7 @@ object-assign 'div', { className: 'modal-header' }, 'Embed Dashboard', - c.a.createElement(xo, { + c.a.createElement(Nr.a, { icon: 'times', size: 'sm', onClick: function() { @@ -237949,22 +237993,22 @@ object-assign type: 'button', className: 'modal-button', onClick: function() { - return Ms(n); + return Ca(n); } }, - c.a.createElement(xo, { icon: 'copy', size: 'sm' }), + c.a.createElement(Nr.a, { icon: 'copy', size: 'sm' }), 'COPY' ) ) ); }) )), - Es = n(431), - Ts = n.n(Es), - Cs = n(180), - Ls = n(432), - Ps = n.n(Ls), - Ds = function(e) { + za = n(460), + Na = n.n(za), + Ra = n(201), + Ia = n(461), + Fa = n.n(Ia), + qa = function(e) { var t = e.width, n = e.height, r = e.text; @@ -237972,29 +238016,29 @@ object-assign ? c.a.createElement( 'div', { className: 'paragraph', style: { width: t, height: n } }, - Ps()(r) + Fa()(r) ) : c.a.createElement( 'div', { className: 'big-icon' }, - c.a.createElement(xo, { icon: 'paragraph', size: 'lg' }) + c.a.createElement(Nr.a, { icon: 'paragraph', size: 'lg' }) ); }, - zs = function(e) { + Ba = function(e) { var t = e.src; return t ? c.a.createElement('img', { src: t }) : c.a.createElement( 'div', { className: 'big-icon' }, - c.a.createElement(xo, { icon: 'image', size: 'lg' }) + c.a.createElement(Nr.a, { icon: 'image', size: 'lg' }) ); }, - Ns = n(97), - js = n.n(Ns), - Rs = n(175), - Is = n.n(Rs); - function Fs(e, t) { + Ha = n(112), + Ya = n.n(Ha), + Wa = n(193), + Va = n.n(Wa); + function Ua(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); @@ -238006,16 +238050,16 @@ object-assign } return n; } - function qs(e) { + function Xa(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 - ? Fs(Object(n), !0).forEach(function(t) { - ot()(e, t, n[t]); + ? Ua(n, !0).forEach(function(t) { + vt()(e, t, n[t]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) - : Fs(Object(n)).forEach(function(t) { + : Ua(n).forEach(function(t) { Object.defineProperty( e, t, @@ -238025,47 +238069,20 @@ object-assign } return e; } - function Bs() { - if ('undefined' == typeof Reflect || !Reflect.construct) return !1; - if (Reflect.construct.sham) return !1; - if ('function' == typeof Proxy) return !0; - try { - return ( - Date.prototype.toString.call( - Reflect.construct(Date, [], function() {}) - ), - !0 - ); - } catch (e) { - return !1; - } - } - var Hs = (function(e) { - Ao()(r, e); - var t, - n = - ((t = r), - function() { - var e, - n = Co()(t); - if (Bs()) { - var r = Co()(this).constructor; - e = Reflect.construct(n, arguments, r); - } else e = n.apply(this, arguments); - return Eo()(this, e); - }); - function r(e) { - var t; + var Ga = (function(e) { + function t(e) { + var n; return ( - a()(this, r), - ((t = n.call(this, e)).handleRef = function(e) { - e && ((t.el = e), t.createKeenDataviz()); + a()(this, t), + ((n = qr()(this, Hr()(t).call(this, e))).handleRef = function(e) { + e && ((n.el = e), n.createKeenDataviz()); }), - t + n ); } return ( - ko()(r, [ + Wr()(t, e), + Ir()(t, [ { key: 'componentDidUpdate', value: function() { @@ -238095,16 +238112,16 @@ object-assign this.props.sparkline === e.sparkline && this.props.stacking === e.stacking && this.props.savedQuery === e.savedQuery && - ns()(this.props.results, e.results) && - ns()(this.props.colors, e.colors) && + fa()(this.props.results, e.results) && + fa()(this.props.colors, e.colors) && this.props.screenSize === e.screenSize && this.props.prefix === e.prefix && this.props.suffix === e.suffix && - ns()(this.props.point, e.point) && - ns()(this.props.choropleth, e.choropleth) && - ns()(this.props.heatmap, e.heatmap) && - ns()(this.props.funnel, e.funnel) && - ns()(this.props.table || e.table) && + fa()(this.props.point, e.point) && + fa()(this.props.choropleth, e.choropleth) && + fa()(this.props.heatmap, e.heatmap) && + fa()(this.props.funnel, e.funnel) && + fa()(this.props.table || e.table) && _.isEqual(this.props.axis, e.axis) && this.props.w === e.w && this.props.h === e.h && @@ -238116,7 +238133,7 @@ object-assign { key: 'createKeenDataviz', value: function() { - var e = qs({}, this.props, {}, this.props.options, { + var e = Xa({}, this.props, {}, this.props.options, { axis: { x: { label: @@ -238138,12 +238155,12 @@ object-assign results: this.props.type && this.props.type.includes('funnel') && - ns()(this.props.results.result, [200, 300, 100, 400, 250]) + fa()(this.props.results.result, [200, 300, 100, 400, 250]) ? { result: [430, 300, 220, 150, 80] } : this.props.results }); - this.keenDataviz = new Is.a( - qs({ container: this.el, react: !0 }, e) + this.keenDataviz = new Va.a( + Xa({ container: this.el, react: !0 }, e) ); } }, @@ -238157,97 +238174,97 @@ object-assign } } ]), - r + t ); })(s.Component), - Ys = Ge( + Ka = ot( function(e) { var t = e.app; return { id: t.dashboardInfo.id, screenSize: t.screenSize }; }, - { savedQueryError: Wr } - )(Hs); - (Hs.propTypes = { - type: p.a.string, - showDeprecationWarnings: p.a.bool, - showLoadingSpinner: p.a.bool, - theme: p.a.string, - dateFormat: p.a.string, - title: p.a.oneOfType([p.a.string, p.a.bool, p.a.number]), - legend: p.a.shape({ - show: p.a.bool, - position: p.a.string, - label: p.a.shape({ textMaxLength: p.a.number }), - pagination: p.a.shape({ offset: p.a.number, limit: p.a.number }), - tooltip: p.a.shape({ show: p.a.bool, pointer: p.a.bool }), - sort: p.a.string - }), - colors: p.a.arrayOf(p.a.string), - colorMapping: p.a.objectOf(p.a.string), - labelMapping: p.a.objectOf(p.a.string), - labelMappingRegExp: p.a.arrayOf(p.a.arrayOf(p.a.string)), - labelMappingDimension: p.a.string, - errorMapping: p.a.objectOf(p.a.string), - showErrorMessages: p.a.bool, - labels: p.a.arrayOf(p.a.string), - sortGroups: p.a.string, - sortIntervals: p.a.string, - stacking: p.a.string, - table: p.a.shape({ - columns: p.a.arrayOf(p.a.string), - pagination: p.a.shape({ limit: p.a.number }), - mapValues: p.a.func - }), - renderOnVisible: p.a.bool, - results: p.a.any, - previousResults: p.a.shape({ result: p.a.number }), - funnel: p.a.shape({ - lines: p.a.bool, - resultValues: p.a.bool, - percents: p.a.shape({ - show: p.a.bool, - countingMethod: p.a.string, - decimals: p.a.number - }), - hover: p.a.bool, - marginBetweenSteps: p.a.bool, - effect3d: p.a.string - }), - stacked: p.a.string, - indexBy: p.a.string, - library: p.a.string, - timezone: p.a.string, - padding: p.a.shape({ - top: p.a.number, - right: p.a.number, - bottom: p.a.number, - left: p.a.number - }), - tooltip: p.a.shape({ - show: p.a.bool, - grouped: p.a.bool, - format: p.a.shape({ - title: p.a.func, - name: p.a.func, - value: p.a.func - }), - position: p.a.func, - contenss: p.a.func - }), - partialIntervalIndicator: p.a.shape({ - show: p.a.bool, - className: p.a.string - }), - showTitle: p.a.bool, - notes: p.a.string, - axis: p.a.object, - color: p.a.any, - point: p.a.any, - transition: p.a.any, - data: p.a.any, - grid: p.a.any + { savedQueryError: br } + )(Ga); + (Ga.propTypes = { + type: g.a.string, + showDeprecationWarnings: g.a.bool, + showLoadingSpinner: g.a.bool, + theme: g.a.string, + dateFormat: g.a.string, + title: g.a.oneOfType([g.a.string, g.a.bool, g.a.number]), + legend: g.a.shape({ + show: g.a.bool, + position: g.a.string, + label: g.a.shape({ textMaxLength: g.a.number }), + pagination: g.a.shape({ offset: g.a.number, limit: g.a.number }), + tooltip: g.a.shape({ show: g.a.bool, pointer: g.a.bool }), + sort: g.a.string + }), + colors: g.a.arrayOf(g.a.string), + colorMapping: g.a.objectOf(g.a.string), + labelMapping: g.a.objectOf(g.a.string), + labelMappingRegExp: g.a.arrayOf(g.a.arrayOf(g.a.string)), + labelMappingDimension: g.a.string, + errorMapping: g.a.objectOf(g.a.string), + showErrorMessages: g.a.bool, + labels: g.a.arrayOf(g.a.string), + sortGroups: g.a.string, + sortIntervals: g.a.string, + stacking: g.a.string, + table: g.a.shape({ + columns: g.a.arrayOf(g.a.string), + pagination: g.a.shape({ limit: g.a.number }), + mapValues: g.a.func + }), + renderOnVisible: g.a.bool, + results: g.a.any, + previousResults: g.a.shape({ result: g.a.number }), + funnel: g.a.shape({ + lines: g.a.bool, + resultValues: g.a.bool, + percents: g.a.shape({ + show: g.a.bool, + countingMethod: g.a.string, + decimals: g.a.number + }), + hover: g.a.bool, + marginBetweenSteps: g.a.bool, + effect3d: g.a.string + }), + stacked: g.a.string, + indexBy: g.a.string, + library: g.a.string, + timezone: g.a.string, + padding: g.a.shape({ + top: g.a.number, + right: g.a.number, + bottom: g.a.number, + left: g.a.number + }), + tooltip: g.a.shape({ + show: g.a.bool, + grouped: g.a.bool, + format: g.a.shape({ + title: g.a.func, + name: g.a.func, + value: g.a.func + }), + position: g.a.func, + contenss: g.a.func + }), + partialIntervalIndicator: g.a.shape({ + show: g.a.bool, + className: g.a.string + }), + showTitle: g.a.bool, + notes: g.a.string, + axis: g.a.object, + color: g.a.any, + point: g.a.any, + transition: g.a.any, + data: g.a.any, + grid: g.a.any }), - (Hs.defaultProps = { + (Ga.defaultProps = { theme: 'keen-dataviz', results: { result: [200, 300, 100, 400, 250] }, title: !1, @@ -238268,21 +238285,21 @@ object-assign tooltip: { show: !0, pointer: !0 } } }); - var Ws = n(52), - Vs = n.n(Ws), - Us = function(e) { + var $a = n(64), + Qa = n.n($a), + Ja = function(e) { var t = e.theme, n = e.containerId; return c.a.createElement( c.a.Fragment, null, c.a.createElement('style', { - dangerouslySetInnerHTML: { __html: Object(Ws.getStyles)(t, n) } + dangerouslySetInnerHTML: { __html: Object($a.getStyles)(t, n) } }), e.children ); }, - Xs = { + Za = { getQueryDataType: function(e) { var t, n = 'string' == typeof e.interval, @@ -238370,17 +238387,17 @@ object-assign ], nominal: ['table'], extraction: ['table'] - }[Xs.getQueryDataType(e)]; + }[Za.getQueryDataType(e)]; }, responseSupportsChartType: function(e, t) { - return an.a.includes(Xs.getChartTypeOptions(e), t); + return It.a.includes(Za.getChartTypeOptions(e), t); }, isTableChartType: function(e) { return 'table' == e; } }, - Gs = Xs; - function Ks(e, t) { + es = Za; + function ts(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); @@ -238392,16 +238409,16 @@ object-assign } return n; } - function $s(e) { + function ns(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 - ? Ks(Object(n), !0).forEach(function(t) { - ot()(e, t, n[t]); + ? ts(n, !0).forEach(function(t) { + vt()(e, t, n[t]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) - : Ks(Object(n)).forEach(function(t) { + : ts(n).forEach(function(t) { Object.defineProperty( e, t, @@ -238411,47 +238428,20 @@ object-assign } return e; } - function Qs() { - if ('undefined' == typeof Reflect || !Reflect.construct) return !1; - if (Reflect.construct.sham) return !1; - if ('function' == typeof Proxy) return !0; - try { - return ( - Date.prototype.toString.call( - Reflect.construct(Date, [], function() {}) - ), - !0 - ); - } catch (e) { - return !1; - } - } - var Js = (function(e) { - Ao()(r, e); - var t, - n = - ((t = r), - function() { - var e, - n = Co()(t); - if (Qs()) { - var r = Co()(this).constructor; - e = Reflect.construct(n, arguments, r); - } else e = n.apply(this, arguments); - return Eo()(this, e); - }); - function r(e) { - var t; + var rs = (function(e) { + function t(e) { + var n; return ( - a()(this, r), - (t = n.call(this, e)), - Zs.call(js()(t)), - (t.state = { loading: !1, results: void 0 }), - t + a()(this, t), + (n = qr()(this, Hr()(t).call(this, e))), + os.call(Ya()(n)), + (n.state = { loading: !1, results: void 0 }), + n ); } return ( - ko()(r, [ + Wr()(t, e), + Ir()(t, [ { key: 'componentDidMount', value: function() { @@ -238475,13 +238465,13 @@ object-assign this.setState({ results: void 0 }), this.props.id !== e.id && this.setState({ results: void 0 }), - !1 === ns()(e.savedQuery, this.props.savedQuery) || + !1 === fa()(e.savedQuery, this.props.savedQuery) || (this.props.id !== e.id && this.setState({ results: void 0 })), (this.props.id !== e.id || (this.props.savedQuery && !1 === e.dryRun && - !1 === ns()(e.savedQuery, this.props.savedQuery)) || + !1 === fa()(e.savedQuery, this.props.savedQuery)) || (!1 === this.props.savedQuery && e.savedQuery && this.props.type !== e.type) || @@ -238522,13 +238512,13 @@ object-assign null, Object.keys(m).length ? c.a.createElement( - Us, + Ja, { theme: m.theme, containerId: this.props.containerId }, c.a.createElement( - Ys, + Ka, o()( { key: u, type: h }, this.props, @@ -238539,7 +238529,7 @@ object-assign ) ) : c.a.createElement( - Ys, + Ka, o()( { key: u, type: h }, this.props, @@ -238576,35 +238566,38 @@ object-assign c.a.createElement( 'span', { className: 'loading' }, - c.a.createElement(xo, { icon: 'spinner', size: '1x' }) + c.a.createElement(Nr.a, { + icon: 'spinner', + size: '1x' + }) ) ) ); } } ]), - r + t ); })(s.Component), - Zs = function() { + os = function() { var e = this; (this.runSingleSavedQuery = function(t) { e.setState({ loading: !0 }), e.props.keenAnalysis .query('saved', t.value) .then(function(t) { - var n = Gs.getChartTypeOptions(t.query), + var n = es.getChartTypeOptions(t.query), r = e.props.type ? e.props.type : n[0]; e.props.loadSavedQuery(e.props.index), e.setState({ results: void 0 === e.state.results - ? $s({}, t) + ? ns({}, t) : Array.isArray(e.state.results) - ? [].concat(nt()(e.state.results), [$s({}, t)]) + ? [].concat(bt()(e.state.results), [ns({}, t)]) : r && (r.includes('area') || r.includes('line')) - ? [$s({}, e.state.results), $s({}, t)] - : $s({}, t), + ? [ns({}, e.state.results), ns({}, t)] + : ns({}, t), savedQuery: { value: t.query_name, label: t.metadata.display_name @@ -238635,7 +238628,7 @@ object-assign n[r].query.event_collection === n[o].query.event_collection && (n[o].query.analysis_type += o); - var i = Gs.getChartTypeOptions(n[0].query)[0]; + var i = es.getChartTypeOptions(n[0].query)[0]; t.loadSavedQuery(t.index), e.setState({ results: n, @@ -238650,7 +238643,7 @@ object-assign }); }); }, - ec = Ge( + is = ot( function(e) { var t = e.app, n = t.isLoading, @@ -238669,9 +238662,9 @@ object-assign charts_theme: void 0 === u ? {} : u }; }, - { loadSavedQuery: Jr, savedQueryError: Wr, setLoading: Qr } - )(Js), - tc = Ge( + { loadSavedQuery: Sr, savedQueryError: br, setLoading: kr } + )(rs), + as = ot( function(e) { var t = e.app; return { isMoving: t.isMoving, isResizing: t.isResizing }; @@ -238681,25 +238674,25 @@ object-assign return function(t, n, r) { var o = r.keenClient; if (confirm('Do You want to delete this chart?')) { - Wt.hide(); + Mt.a.hide(); var i = n(), - a = Cr(i), + a = rr(i), s = a.settings.items.find(function(t) { return t.i === e; }).savedQuery; - t(ao(s, [])); + t(Dr(s, [])); var c = n(), - u = Tr(c); + u = nr(c); if (a.is_public && s.length) s.some(function(e) { return !u.includes(e.value); - }) && Lr(u, a.id, o); + }) && or(u, a.id, o); t({ type: 'DELETE_CHART', index: e }); } }; }, - showSettings: eo, - closeSettings: Zr, + showSettings: Er, + closeSettings: Or, cloneChart: function(e) { return { type: 'CLONE_CHART', index: e }; } @@ -238731,7 +238724,7 @@ object-assign })(t); } }, - c.a.createElement(xo, { icon: 'cog', size: 'sm' }) + c.a.createElement(Nr.a, { icon: 'cog', size: 'sm' }) ), c.a.createElement( 'div', @@ -238742,7 +238735,7 @@ object-assign return e.cloneChart(n); } }, - c.a.createElement(xo, { icon: 'clone', size: 'sm' }) + c.a.createElement(Nr.a, { icon: 'clone', size: 'sm' }) ), o && o.length > 0 && @@ -238763,7 +238756,7 @@ object-assign }); } }, - c.a.createElement(xo, { + c.a.createElement(Nr.a, { icon: 'external-link-alt', size: 'sm' }) @@ -238777,10 +238770,10 @@ object-assign t.stopPropagation(), e.deleteChart(n); } }, - c.a.createElement(xo, { icon: 'trash-alt', size: 'sm' }) + c.a.createElement(Nr.a, { icon: 'trash-alt', size: 'sm' }) ) ), - c.a.createElement(Wt, { + c.a.createElement(Mt.a, { id: 'settings', place: 'left', type: 'dark', @@ -238789,7 +238782,7 @@ object-assign return e; } }), - c.a.createElement(Wt, { + c.a.createElement(Mt.a, { id: 'clone', place: 'left', type: 'dark', @@ -238798,7 +238791,7 @@ object-assign return e; } }), - c.a.createElement(Wt, { + c.a.createElement(Mt.a, { id: 'explorer', place: 'left', type: 'dark', @@ -238807,7 +238800,7 @@ object-assign return e; } }), - c.a.createElement(Wt, { + c.a.createElement(Mt.a, { id: 'delete', place: 'left', type: 'dark', @@ -238819,8 +238812,8 @@ object-assign ) ); }); - n(696), n(698); - function nc(e, t) { + n(740), n(742); + function ss(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); @@ -238832,62 +238825,37 @@ object-assign } return n; } - function rc() { - if ('undefined' == typeof Reflect || !Reflect.construct) return !1; - if (Reflect.construct.sham) return !1; - if ('function' == typeof Proxy) return !0; - try { - return ( - Date.prototype.toString.call( - Reflect.construct(Date, [], function() {}) - ), - !0 - ); - } catch (e) { - return !1; - } - } - var oc = Object(Cs.WidthProvider)(Cs.Responsive), - ic = (function(e) { - Ao()(r, e); - var t, - n = - ((t = r), - function() { - var e, - n = Co()(t); - if (rc()) { - var r = Co()(this).constructor; - e = Reflect.construct(n, arguments, r); - } else e = n.apply(this, arguments); - return Eo()(this, e); - }); - function r(e) { - var t; + var cs = Object(Ra.WidthProvider)(Ra.Responsive), + us = (function(e) { + function t(e) { + var n; return ( - a()(this, r), - ((t = n.call(this, e)).onElementClick = function(e, n) { - var r = t.props, + a()(this, t), + ((n = qr()( + this, + Hr()(t).call(this, e) + )).onElementClick = function(e, t) { + var r = n.props, o = r.version, i = r.settingsVisible, a = r.showSettings; - 'viewer' !== o && i !== n && a(n); + 'viewer' !== o && i !== t && a(t); }), - (t.createElement = function(e) { - var n = e.i, + (n.createElement = function(e) { + var t = e.i, r = (e.w, e.h, e.type), i = e.savedQuery, a = e.src, s = e.text; - if (null != n) { - var u = t.props, + if (null != t) { + var u = n.props, l = (u.id, u.theme), f = u.charts_theme, d = u.version, p = u.layout, h = (u.error, u.dryRun, u.settingsVisible), g = u.keenAnalysis, - m = (f && f[n] && f[n].options) || (l && l.options) || {}, + m = (f && f[t] && f[t].options) || (l && l.options) || {}, b = p.find(function(t) { return t.i === e.i; @@ -238896,15 +238864,15 @@ object-assign for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 - ? nc(Object(n), !0).forEach(function(t) { - ot()(e, t, n[t]); + ? ss(n, !0).forEach(function(t) { + vt()(e, t, n[t]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, Object.getOwnPropertyDescriptors(n) ) - : nc(Object(n)).forEach(function(t) { + : ss(n).forEach(function(t) { Object.defineProperty( e, t, @@ -238916,71 +238884,71 @@ object-assign })({}, e, {}, b), v = 1; return ( - h && h !== n && (v = 0.3), + h && h !== t && (v = 0.3), c.a.createElement( 'div', { - key: n, + key: t, 'data-grid': y, - id: n, + id: t, style: { opacity: v }, onDoubleClick: function(e) { - return t.onElementClick(e, n); + return n.onElementClick(e, t); }, - onMouseDown: t.onMouseDown + onMouseDown: n.onMouseDown }, 'image' === r - ? c.a.createElement(zs, { src: a }) + ? c.a.createElement(Ba, { src: a }) : 'paragraph' === r - ? c.a.createElement(Ds, { text: s }) + ? c.a.createElement(qa, { text: s }) : c.a.createElement( - ec, + is, o()( { type: r, - index: n, + index: t, w: b.w, h: b.h, savedQuery: i, keenAnalysis: g, - containerId: n + containerId: t }, m ) ), 'editor' === d && - c.a.createElement(tc, { - key: n, - index: n, + c.a.createElement(as, { + key: t, + index: t, savedQuery: i, - editedWidget: t.state.editedWidget + editedWidget: n.state.editedWidget }) ) ); } }), - (t.onBreakpointChange = function(e, n) { - t.setState({ breakpoint: e, cols: n }); + (n.onBreakpointChange = function(e, t) { + n.setState({ breakpoint: e, cols: t }); }), - (t.onLayoutChange = function(e, n) { - var r = t.props, + (n.onLayoutChange = function(e, t) { + var r = n.props, o = r.version, i = r.setLayout; 'editor' === o && i(e); }), - (t.onDrop = function(e) { - var n = e.x, + (n.onDrop = function(e) { + var t = e.x, r = e.y, o = e.w, i = e.h, - a = t.props, + a = n.props, s = a.draggedType, c = a.dropHandler, - u = 'chart-'.concat(Gt()); + u = 'chart-'.concat(Et()); c( { i: u, - x: n, + x: t, y: r, w: o, h: i, @@ -238994,29 +238962,30 @@ object-assign u ); }), - (t.onDragStart = function(e, n, r, o, i, a) { - t.setState({ editedWidget: n.i }); + (n.onDragStart = function(e, t, r, o, i, a) { + n.setState({ editedWidget: t.i }); }), - (t.onDragStop = function() { - t.setState({ editedWidget: !1 }); + (n.onDragStop = function() { + n.setState({ editedWidget: !1 }); }), - (t.onResizeStart = function(e, n, r, o, i, a) { - t.setState({ editedWidget: n.i }); + (n.onResizeStart = function(e, t, r, o, i, a) { + n.setState({ editedWidget: t.i }); }), - (t.onResizeStop = function() { - t.setState({ editedWidget: !1 }); + (n.onResizeStop = function() { + n.setState({ editedWidget: !1 }); }), - (t.state = { editedWidget: !1, loading: !1, results: void 0 }), - t + (n.state = { editedWidget: !1, loading: !1, results: void 0 }), + n ); } return ( - ko()(r, [ + Wr()(t, e), + Ir()(t, [ { key: 'componentDidUpdate', value: function(e) { var t = this.props.fonts; - t && t.length && Ir.a.load({ google: { families: t } }); + t && t.length && fr.a.load({ google: { families: t } }); } }, { @@ -239034,7 +239003,7 @@ object-assign r = (t.screenSize, t.id), i = t.items, a = (t.layout, t.layouts, t.theme), - s = Ts()(t, [ + s = Na()(t, [ 'version', 'screenSize', 'id', @@ -239051,11 +239020,11 @@ object-assign a.theme && c.a.createElement('style', { dangerouslySetInnerHTML: { - __html: Object(Ws.getStyles)(a.theme, u) + __html: Object($a.getStyles)(a.theme, u) } }), c.a.createElement( - oc, + cs, o()({ key: 'dashboard-'.concat(r) }, s, { measureBeforeMount: !0, breakpoints: { lg: 1200, md: 800, sm: 420, xs: 0 }, @@ -239082,10 +239051,10 @@ object-assign } } ]), - r + t ); })(s.PureComponent), - ac = Ge( + ls = ot( function(e) { var t = e.app, n = t.dashboardInfo, @@ -239114,106 +239083,85 @@ object-assign }; }, { - dropHandler: $r, - showSettings: eo, + dropHandler: Mr, + showSettings: Er, mapOldItems: function(e) { return { type: 'MAP_OLD_ITEMS', newDashboard: e }; }, setLayout: function(e) { return { type: 'SET_LAYOUT', layout: e }; }, - loadSavedQuery: Jr, - savedQueryError: Wr, - setLoading: Qr, - clearDashboardInfo: Xr + loadSavedQuery: Sr, + savedQueryError: br, + setLoading: kr, + clearDashboardInfo: _r } - )(ic); - ic.defaultProps = { + )(us); + us.defaultProps = { cols: { lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 }, rowHeight: 100 }; - var sc = Ge( - function(e) { - var t = e.app; - return { screenSize: t.screenSize, dashboardsMenu: t.dashboardsMenu }; - }, - { closeSettings: Zr } - )(function(e) { - var t = e.version, - n = e.dashboardsMenu, - r = e.isDashboardPublic; - return c.a.createElement( - 'div', - { - className: - 'editor' === t - ? 'dashboard-container' - : 'dashboard-container-viewer', - onMouseDown: e.closeSettings - }, - 'share' === n && c.a.createElement(ks, null), - 'embed' === n && c.a.createElement(Os, null), - c.a.createElement(fs, { version: t, editable: !r }), - c.a.createElement( + var fs = ot( + function(e) { + var t = e.app; + return { + screenSize: t.screenSize, + dashboardsMenu: t.dashboardsMenu + }; + }, + { closeSettings: Or } + )(function(e) { + var t = e.version, + n = e.dashboardsMenu, + r = e.isDashboardPublic; + return c.a.createElement( 'div', - { className: 'dashboard-inner-container' }, - c.a.createElement(bs, { version: t, isDashboardPublic: r }), - c.a.createElement(Er.Consumer, null, function(e) { - return c.a.createElement(ac, { - keenAnalysis: e, - version: t, - isDashboardPublic: r - }); - }) - ) - ); - }); - function cc() { - if ('undefined' == typeof Reflect || !Reflect.construct) return !1; - if (Reflect.construct.sham) return !1; - if ('function' == typeof Proxy) return !0; - try { - return ( - Date.prototype.toString.call( - Reflect.construct(Date, [], function() {}) - ), - !0 + { + className: + 'editor' === t + ? 'dashboard-container' + : 'dashboard-container-viewer', + onMouseDown: e.closeSettings + }, + 'share' === n && c.a.createElement(La, null), + 'embed' === n && c.a.createElement(ja, null), + c.a.createElement(va, { version: t, editable: !r }), + c.a.createElement( + 'div', + { className: 'dashboard-inner-container' }, + c.a.createElement(ka, { version: t, isDashboardPublic: r }), + c.a.createElement(tr.Consumer, null, function(e) { + return c.a.createElement(ls, { + keenAnalysis: e, + version: t, + isDashboardPublic: r + }); + }) + ) ); - } catch (e) { - return !1; - } - } - var uc = (function(e) { - Ao()(r, e); - var t, - n = - ((t = r), - function() { - var e, - n = Co()(t); - if (cc()) { - var r = Co()(this).constructor; - e = Reflect.construct(n, arguments, r); - } else e = n.apply(this, arguments); - return Eo()(this, e); - }); - function r(e) { - var t; + }), + ds = (function(e) { + function t(e) { + var n; return ( - a()(this, r), - ((t = n.call(this, e)).selectSavedQuery = function(e, n) { - var r = t.props.items.find(function(e) { - return e.i === n; + a()(this, t), + ((n = qr()( + this, + Hr()(t).call(this, e) + )).selectSavedQuery = function(e, t) { + var r = n.props.items.find(function(e) { + return e.i === t; }).i, o = !!e.length && r; - t.props.setLoading(o), t.props.selectSavedQuery(e, r); + n.props.setLoading(o), n.props.selectSavedQuery(e, r); }), - (t.state = { savedQueriesForChart: [] }), - t + (n.state = { savedQueriesForChart: [] }), + n ); } return ( - ko()(r, [ + Wr()(t, e), + Ir()(t, [ { key: 'componentDidMount', value: function() { @@ -239222,9 +239170,9 @@ object-assign savedQueriesForChart: this.props.savedQueries .filter(function(t) { if ( - Gs.getChartTypeOptions(t.query).includes( - e.props.type - ) && + es + .getChartTypeOptions(t.query) + .includes(e.props.type) && t.metadata && t.metadata.display_name ) @@ -239248,7 +239196,7 @@ object-assign savedQueriesForChart: e.savedQueries .filter(function(t) { if ( - Gs.getChartTypeOptions(t.query).includes(e.type) && + es.getChartTypeOptions(t.query).includes(e.type) && t.metadata && t.metadata.display_name ) @@ -239276,7 +239224,7 @@ object-assign 'div', { className: 'settings-select' }, t.length > 0 - ? c.a.createElement(Pa, { + ? c.a.createElement(Ui, { value: o || '', onChange: function(t) { return e.selectSavedQuery(t, r); @@ -239294,10 +239242,10 @@ object-assign } } ]), - r + t ); })(s.Component), - lc = Ge( + ps = ot( function(e) { var t = e.app; return { @@ -239307,34 +239255,34 @@ object-assign }; }, { - setLoading: Qr, + setLoading: kr, selectSavedQuery: function(e, t) { return function(n, r, o) { var i = o.keenClient, a = r(), - s = Cr(a), + s = rr(a), c = s.settings.items.find(function(e) { return e.i === t; }).savedQuery, - u = Tr(a), + u = nr(a), l = Array.isArray(e) ? e : [e]; - n(ao(c, l)); + n(Dr(c, l)); var f = r(), - d = Tr(f); + d = nr(f); s.is_public && l.length && - l.some(function(e) { + (l.some(function(e) { return !u.includes(e.value); }) && - Lr(d, s.id, i); + or(d, s.id, i)); n({ type: 'SELECT_SAVED_QUERY', savedQueries: l, index: t }); }; } } - )(uc), - fc = n(433), - dc = n.n(fc); - function pc(e, t) { + )(ds), + hs = n(462), + gs = n.n(hs); + function ms(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); @@ -239346,24 +239294,24 @@ object-assign } return n; } - var hc = function(e) { - var t = Object(s.useContext)(Er); + var bs = function(e) { + var t = Object(s.useContext)(tr); return ( Object(s.useEffect)(function() { - new dc.a( + new gs.a( (function(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 - ? pc(Object(n), !0).forEach(function(t) { - ot()(e, t, n[t]); + ? ms(n, !0).forEach(function(t) { + vt()(e, t, n[t]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, Object.getOwnPropertyDescriptors(n) ) - : pc(Object(n)).forEach(function(t) { + : ms(n).forEach(function(t) { Object.defineProperty( e, t, @@ -239391,18 +239339,18 @@ object-assign c.a.createElement('div', { id: 'dashboard-builder-explorer' }) ); }, - gc = hc; - hc.propTypes = { - container: p.a.string, - keenAnalysis: p.a.shape({ - projectId: p.a.string, - masterKey: p.a.string, - readKey: p.a.string + ys = bs; + bs.propTypes = { + container: g.a.string, + keenAnalysis: g.a.shape({ + projectId: g.a.string, + masterKey: g.a.string, + readKey: g.a.string }) }; - var mc = n(79), - bc = n.n(mc); - function yc(e, t) { + var vs = n(94), + _s = n.n(vs); + function ws(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); @@ -239414,16 +239362,16 @@ object-assign } return n; } - function vc(e) { + function xs(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 - ? yc(Object(n), !0).forEach(function(t) { - ot()(e, t, n[t]); + ? ws(n, !0).forEach(function(t) { + vt()(e, t, n[t]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) - : yc(Object(n)).forEach(function(t) { + : ws(n).forEach(function(t) { Object.defineProperty( e, t, @@ -239433,53 +239381,26 @@ object-assign } return e; } - function _c() { - if ('undefined' == typeof Reflect || !Reflect.construct) return !1; - if (Reflect.construct.sham) return !1; - if ('function' == typeof Proxy) return !0; - try { - return ( - Date.prototype.toString.call( - Reflect.construct(Date, [], function() {}) - ), - !0 - ); - } catch (e) { - return !1; - } - } - var xc = (function(e) { - Ao()(r, e); - var t, - n = - ((t = r), - function() { - var e, - n = Co()(t); - if (_c()) { - var r = Co()(this).constructor; - e = Reflect.construct(n, arguments, r); - } else e = n.apply(this, arguments); - return Eo()(this, e); - }); - function r(e) { - var t; + var Ms = (function(e) { + function t(e) { + var n; return ( - a()(this, r), - (t = n.call(this, e)), - wc.call(js()(t)), - (t.state = { + a()(this, t), + (n = qr()(this, Hr()(t).call(this, e))), + ks.call(Ya()(n)), + (n.state = { results: '', loading: !1, type: '', chartTypeForSelect: {}, availableChartTypes: [] }), - t + n ); } return ( - ko()(r, [ + Wr()(t, e), + Ir()(t, [ { key: 'componentDidMount', value: function() { @@ -239493,7 +239414,7 @@ object-assign (this.props.settingsVisible === e.settingsVisible && e.items.type === this.props.items.type && !1 !== - ns()(e.items.savedQuery, this.props.items.savedQuery) && + fa()(e.items.savedQuery, this.props.items.savedQuery) && 0 !== e.items.savedQuery.length) || (this.generateSettings(e), this.setState({ type: e.items.type })); @@ -239519,7 +239440,7 @@ object-assign return c.a.createElement( 'div', { className: 'settings-chart' }, - 'explorer' === s && c.a.createElement(gc, null), + 'explorer' === s && c.a.createElement(ys, null), c.a.createElement( 'div', { className: 'settings-chart-saved-query' }, @@ -239528,7 +239449,7 @@ object-assign c.a.Fragment, null, c.a.createElement('h4', null, 'Saved Query'), - c.a.createElement(lc, { value: r, index: n, type: f }) + c.a.createElement(ps, { value: r, index: n, type: f }) ), r && 0 !== r.length && @@ -239536,7 +239457,7 @@ object-assign c.a.Fragment, null, c.a.createElement('h4', null, 'Chart type'), - c.a.createElement(Pa, { + c.a.createElement(Ui, { value: d, onChange: function(t) { return e.props.changeChartType(t.value, n); @@ -239546,12 +239467,12 @@ object-assign ) ), 0 !== r.length && - c.a.createElement(Vs.a, { + c.a.createElement(Qa.a, { options: a && void 0 !== a[n] && null !== a[n] - ? vc({}, a[n].theme, {}, h) + ? xs({}, a[n].theme, {}, h) : i - ? vc({}, i.theme, {}, h) + ? xs({}, i.theme, {}, h) : {}, isDashboardBuilderActive: !0, onChange: this.builderChartStyle, @@ -239564,17 +239485,20 @@ object-assign c.a.createElement( 'span', { className: 'loading' }, - c.a.createElement(xo, { icon: 'spinner', size: 'lg' }) + c.a.createElement(Nr.a, { + icon: 'spinner', + size: 'lg' + }) ) ) ); } } ]), - r + t ); })(s.Component), - wc = function() { + ks = function() { var e = this; (this.generateSettings = function(t) { t.items.savedQuery[0] && @@ -239589,7 +239513,7 @@ object-assign api_key: e.props.keenAnalysis.masterKey() }) .then(function(n) { - var r = Gs.getChartTypeOptions(n.query), + var r = es.getChartTypeOptions(n.query), o = t.items.type ? t.items.type : r[0]; if ( (e.setState({ results: n, type: o, loading: !1 }), @@ -239605,7 +239529,7 @@ object-assign }, u = s && - Gs.getChartTypeOptions(s.query).map(function(e) { + es.getChartTypeOptions(s.query).map(function(e) { return { value: e, label: c(e) }; }), l = u.filter(function(e) { @@ -239629,11 +239553,11 @@ object-assign })), e.setState({ type: t.items.type }); }), - (this.builderChartStyle = bc()(function(t) { + (this.builderChartStyle = _s()(function(t) { e.props.setChartTheme(e.props.settingsVisible, t); }, 500)); }, - Mc = Ge( + Ss = ot( function(e) { var t = e.app, n = t.settingsVisible, @@ -239656,7 +239580,7 @@ object-assign }; }, { - savedQueryError: Wr, + savedQueryError: br, changeChartType: function(e, t) { return { type: 'CHANGE_CHART_TYPE', index: t, value: e }; }, @@ -239664,8 +239588,8 @@ object-assign return { type: 'SET_CHART_THEME', index: e, value: t }; } } - )(xc), - kc = Ge( + )(Ms), + Os = ot( function(e) { var t = e.app; return { @@ -239700,10 +239624,10 @@ object-assign }) ); }), - Sc = n(438), - Ac = n.n(Sc), - Oc = - (n(814), + Es = n(467), + As = n.n(Es), + Ts = + (n(866), function e(t) { t.text; var n = t.settingsVisible, @@ -239711,7 +239635,7 @@ object-assign return e.i === n; }), o = (r && r.text) || ''; - return c.a.createElement(Ac.a, { + return c.a.createElement(As.a, { value: o, onChange: function(e, r, o) { return t.setTextForParagraph(e, o, n); @@ -239719,7 +239643,7 @@ object-assign modules: e.modules }); }), - Ec = Ge( + Cs = ot( function(e) { var t = e.app; return { @@ -239737,8 +239661,8 @@ object-assign }; } } - )(Oc); - Oc.modules = { + )(Ts); + Ts.modules = { toolbar: { container: [ ['bold', 'italic', 'underline', 'strike'], @@ -239749,7 +239673,7 @@ object-assign ] } }; - var Tc = function() { + var Ls = function() { return c.a.createElement( 'div', { className: 'settings-chart' }, @@ -239757,12 +239681,12 @@ object-assign 'div', { className: 'settings-chart-saved-query' }, c.a.createElement('h4', null, 'Text'), - c.a.createElement(Ec, null) + c.a.createElement(Cs, null) ) ); }, - Cc = n(53), - Lc = function(e) { + Ps = n(65), + Ds = function(e) { var t = e.text, n = t.title, r = void 0 === n ? '' : n, @@ -239811,18 +239735,18 @@ object-assign ) ); }, - Pc = Lc; - (Lc.defaultProps = { text: {}, onChange: function() {} }), - (Lc.propTypes = { - text: p.a.shape({ - title: p.a.string, - on: p.a.string, - off: p.a.string + js = Ds; + (Ds.defaultProps = { text: {}, onChange: function() {} }), + (Ds.propTypes = { + text: g.a.shape({ + title: g.a.string, + on: g.a.string, + off: g.a.string }), - checked: p.a.bool.isRequired, - onChange: p.a.func.isRequired + checked: g.a.bool.isRequired, + onChange: g.a.func.isRequired }); - var Dc = Ge( + var zs = ot( function(e) { var t = e.app.dashboardInfo.settings, n = t.dryRun, @@ -239835,28 +239759,28 @@ object-assign toggleDryRun: function() { return { type: 'TOGGLE_DRY_RUN' }; }, - toggleIsPublic: Kr, + toggleIsPublic: xr, setTheme: function(e) { return { type: 'SET_THEME', value: e }; } } )(function(e) { - var t = bc()(function(t) { + var t = _s()(function(t) { e.setTheme(t); }, 500); return c.a.createElement( - Cc.Tabs, + Ps.Tabs, null, c.a.createElement( - Cc.TabList, + Ps.TabList, null, - c.a.createElement(Cc.Tab, null, 'Theme'), - c.a.createElement(Cc.Tab, null, 'Settings') + c.a.createElement(Ps.Tab, null, 'Theme'), + c.a.createElement(Ps.Tab, null, 'Settings') ), c.a.createElement( - Cc.TabPanel, + Ps.TabPanel, { className: 'settings-theme-builder' }, - c.a.createElement(Vs.a, { + c.a.createElement(Qa.a, { key: e.id, isDashboardBuilderActive: !0, onChange: t, @@ -239865,12 +239789,12 @@ object-assign }) ), c.a.createElement( - Cc.TabPanel, + Ps.TabPanel, null, c.a.createElement( - Pc, + js, { checked: !!e.isPublic, onChange: e.toggleIsPublic }, - c.a.createElement(xo, { + c.a.createElement(Nr.a, { className: 'label-wrapper__icon', icon: 'info-circle', size: 'sm', @@ -239878,7 +239802,7 @@ object-assign 'data-tip': 'Your dashboard will be accessible to all of the people
who you share this link with' }), - c.a.createElement(Wt, { + c.a.createElement(Mt.a, { id: 'is-public-icon', place: 'top', type: 'dark', @@ -239896,7 +239820,7 @@ object-assign }, 'Is Public' ), - c.a.createElement(Wt, { + c.a.createElement(Mt.a, { id: 'is-public', place: 'top', type: 'dark', @@ -239907,7 +239831,7 @@ object-assign }) ), c.a.createElement( - Pc, + js, { checked: !!e.dryRun, onChange: e.toggleDryRun }, c.a.createElement( 'span', @@ -239917,7 +239841,7 @@ object-assign }, 'Dry run' ), - c.a.createElement(Wt, { + c.a.createElement(Mt.a, { id: 'dry-run', place: 'top', type: 'dark', @@ -239930,7 +239854,7 @@ object-assign ) ); }), - zc = Ge(function(e) { + Ns = ot(function(e) { var t = e.app, n = t.settingsVisible, r = t.dashboardInfo.settings.items; @@ -239956,8 +239880,8 @@ object-assign null, 'image' !== n.type && 'paragraph' !== n.type && - c.a.createElement(Er.Consumer, null, function(e) { - return c.a.createElement(Mc, { + c.a.createElement(tr.Consumer, null, function(e) { + return c.a.createElement(Ss, { querySource: r, keenAnalysis: e }); @@ -239966,53 +239890,26 @@ object-assign c.a.createElement( 'div', { className: 'settings-wrapper' }, - c.a.createElement(kc, null) + c.a.createElement(Os, null) ), 'paragraph' === n.type && c.a.createElement( 'div', { className: 'settings-wrapper' }, - c.a.createElement(Tc, null) + c.a.createElement(Ls, null) ) ) - : c.a.createElement(Dc, null) + : c.a.createElement(zs, null) ) ); - }); - function Nc() { - if ('undefined' == typeof Reflect || !Reflect.construct) return !1; - if (Reflect.construct.sham) return !1; - if ('function' == typeof Proxy) return !0; - try { - return ( - Date.prototype.toString.call( - Reflect.construct(Date, [], function() {}) - ), - !0 - ); - } catch (e) { - return !1; - } - } - var jc = (function(e) { - Ao()(r, e); - var t, - n = - ((t = r), - function() { - var e, - n = Co()(t); - if (Nc()) { - var r = Co()(this).constructor; - e = Reflect.construct(n, arguments, r); - } else e = n.apply(this, arguments); - return Eo()(this, e); - }); - function r(e) { - return a()(this, r), n.call(this, e); + }), + Rs = (function(e) { + function t(e) { + return a()(this, t), qr()(this, Hr()(t).call(this, e)); } return ( - ko()(r, [ + Wr()(t, e), + Ir()(t, [ { key: 'componentDidMount', value: function() { @@ -240049,14 +239946,14 @@ object-assign return c.a.createElement( 'div', { className: 'dashboard-builder' }, - c.a.createElement(ss, null), - c.a.createElement(sc, { version: 'editor' }), - c.a.createElement(zc, { querySource: i }), + c.a.createElement(ga, null), + c.a.createElement(fs, { version: 'editor' }), + c.a.createElement(Ns, { querySource: i }), n && c.a.createElement( 'div', { className: 'dashboard-saved-message' }, - c.a.createElement(xo, { + c.a.createElement(Nr.a, { style: { color: '#fff', marginRight: '1rem' }, className: 'fa-spin', icon: 'spinner', @@ -240082,17 +239979,20 @@ object-assign c.a.createElement( 'span', { className: 'loading' }, - c.a.createElement(xo, { icon: 'spinner', size: '1x' }) + c.a.createElement(Nr.a, { + icon: 'spinner', + size: '1x' + }) ) ) ); } } ]), - r + t ); })(s.Component), - Rc = Ge( + Is = ot( function(e) { var t = e.app; return { @@ -240118,60 +240018,33 @@ object-assign }); }; }, - loadDashboardInfo: Ur, - clearDashboardInfo: Xr, - toggleDashboardsMenu: to, - loadDashboards: Vr, - loadingSingleDashboard: io + loadDashboardInfo: vr, + clearDashboardInfo: _r, + toggleDashboardsMenu: Ar, + loadDashboards: yr, + loadingSingleDashboard: Pr } - )(jc), - Ic = Ge(null, { loadDashboards: Vr })(function(e) { + )(Rs), + Fs = ot(null, { loadDashboards: yr })(function(e) { return ( Object(s.useEffect)(function() { e.loadDashboards(); }, []), - c.a.createElement(rs, { + c.a.createElement(da, { version: 'viewer', keenWebHost: e.keenWebHost }) ); }), - Fc = n(439), - qc = n.n(Fc); - function Bc() { - if ('undefined' == typeof Reflect || !Reflect.construct) return !1; - if (Reflect.construct.sham) return !1; - if ('function' == typeof Proxy) return !0; - try { - return ( - Date.prototype.toString.call( - Reflect.construct(Date, [], function() {}) - ), - !0 - ); - } catch (e) { - return !1; - } - } - var Hc = (function(e) { - Ao()(r, e); - var t, - n = - ((t = r), - function() { - var e, - n = Co()(t); - if (Bc()) { - var r = Co()(this).constructor; - e = Reflect.construct(n, arguments, r); - } else e = n.apply(this, arguments); - return Eo()(this, e); - }); - function r(e) { - return a()(this, r), n.call(this, e); + qs = n(468), + Bs = n.n(qs), + Hs = (function(e) { + function t(e) { + return a()(this, t), qr()(this, Hr()(t).call(this, e)); } return ( - ko()(r, [ + Wr()(t, e), + Ir()(t, [ { key: 'componentDidMount', value: function() { @@ -240181,7 +240054,7 @@ object-assign r = e.updateDashboardInfo, o = e.loadDashboards, i = e.match.params.id; - t && !qc()(t) ? r(t) : (n(i), o()); + t && !Bs()(t) ? r(t) : (n(i), o()); } }, { @@ -240198,7 +240071,7 @@ object-assign return c.a.createElement( 'div', { className: 'dashboard-builder' }, - c.a.createElement(sc, { + c.a.createElement(fs, { version: 'viewer', isDashboardPublic: e }) @@ -240206,67 +240079,73 @@ object-assign } } ]), - r + t ); })(s.Component), - Yc = Ge(null, { - loadDashboardInfo: Ur, + Ys = ot(null, { + loadDashboardInfo: vr, updateDashboardInfo: function(e) { return { type: 'UPDATE_DASHBOARD_INFO', dashboardInfo: e }; }, - clearDashboardInfo: Xr, - loadDashboards: Vr - })(Hc); - rn.b.add( - Or, - er, - tr, - nr, - rr, - vr, - _r, - xr, - kr, - yr, - hr, - sr, - ir, - Mr, - wr, - Zn, - Ar, - Jn, - ur, - fr, - br, - Sr, - mr, - pr, - lr, - ar, - cr, - dr, - gr, - or - ), - Un.locale(Qn.a); - var Wc = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || be.compose, - Vc = void 0; - 'undefined' != typeof webpackKeenGlobals && (Vc = webpackKeenGlobals); - var Uc = function e(t) { + clearDashboardInfo: _r, + loadDashboards: yr + })(Hs); + n.d(t, 'keenGlobals', function() { + return Vs; + }), + n.d(t, 'DashboardBuilder', function() { + return Us; + }), + Nt.b.add( + er, + En, + An, + Tn, + Cn, + Un, + Xn, + Gn, + Qn, + Vn, + Bn, + jn, + Pn, + $n, + Kn, + On, + Zn, + Sn, + Nn, + In, + Wn, + Jn, + Yn, + qn, + Rn, + Dn, + zn, + Fn, + Hn, + Ln + ), + vn.locale(kn.a); + var Ws = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || he.compose, + Vs = void 0; + 'undefined' != typeof webpackKeenGlobals && (Vs = webpackKeenGlobals); + var Us = function e(t) { a()(this, e); var n, r = t.keenAnalysis, i = t.onRouteChange, - s = r.instance || new et.a(r.config), + s = r.instance || new gt.a(r.config), u = t.keenWebHost || window.location.host; t.keenWebHost && (n = { mode: 'cors', credentials: 'include' }); - var f = Object(be.createStore)( - tn, - Wc( - Object(be.applyMiddleware)( - nn(u), - Je.withExtraArgument({ + var f = Object(he.createStore)( + jt, + Ws( + Object(he.applyMiddleware)( + zt(u), + pt.withExtraArgument({ keenClient: s, keenWebHost: u, keenWebFetchOptions: n @@ -240274,48 +240153,48 @@ object-assign ) ) ); - co(f), + zr(f), l.a.render( c.a.createElement( - Me, + xe, { store: f }, c.a.createElement( - Er.Provider, + tr.Provider, { value: s }, c.a.createElement( - ce, + de, null, - c.a.createElement(te, { + c.a.createElement(ie, { path: '/', component: function() { return i(), null; } }), - c.a.createElement(te, { + c.a.createElement(ie, { path: '/', component: function(e) { - return c.a.createElement(os, o()({}, e, t)); + return c.a.createElement(pa, o()({}, e, t)); }, exact: !0 }), ' ', - c.a.createElement(te, { + c.a.createElement(ie, { path: '/editor/:id', component: function(e) { - return c.a.createElement(Rc, o()({}, e, t)); + return c.a.createElement(Is, o()({}, e, t)); } }), - c.a.createElement(te, { + c.a.createElement(ie, { path: '/viewer/', component: function(e) { - return c.a.createElement(Ic, o()({}, e, t)); + return c.a.createElement(Fs, o()({}, e, t)); }, exact: !0 }), - c.a.createElement(te, { + c.a.createElement(ie, { path: '/viewer/:id', component: function(e) { - return c.a.createElement(Yc, o()({}, e, t)); + return c.a.createElement(Ys, o()({}, e, t)); } }) ) @@ -240327,82 +240206,7 @@ object-assign }, function(e, t, n) { 'use strict'; - n.r(t), - n.d(t, 'TemplateTag', function() { - return c; - }), - n.d(t, 'trimResultTransformer', function() { - return u; - }), - n.d(t, 'stripIndentTransformer', function() { - return f; - }), - n.d(t, 'replaceResultTransformer', function() { - return d; - }), - n.d(t, 'replaceSubstitutionTransformer', function() { - return p; - }), - n.d(t, 'replaceStringTransformer', function() { - return h; - }), - n.d(t, 'inlineArrayTransformer', function() { - return m; - }), - n.d(t, 'splitStringTransformer', function() { - return b; - }), - n.d(t, 'removeNonPrintingValuesTransformer', function() { - return v; - }), - n.d(t, 'commaLists', function() { - return _; - }), - n.d(t, 'commaListsAnd', function() { - return x; - }), - n.d(t, 'commaListsOr', function() { - return w; - }), - n.d(t, 'html', function() { - return M; - }), - n.d(t, 'codeBlock', function() { - return M; - }), - n.d(t, 'source', function() { - return M; - }), - n.d(t, 'safeHtml', function() { - return k; - }), - n.d(t, 'oneLine', function() { - return S; - }), - n.d(t, 'oneLineTrim', function() { - return A; - }), - n.d(t, 'oneLineCommaLists', function() { - return O; - }), - n.d(t, 'oneLineCommaListsOr', function() { - return E; - }), - n.d(t, 'oneLineCommaListsAnd', function() { - return T; - }), - n.d(t, 'inlineLists', function() { - return C; - }), - n.d(t, 'oneLineInlineLists', function() { - return L; - }), - n.d(t, 'stripIndent', function() { - return P; - }), - n.d(t, 'stripIndents', function() { - return D; - }); + n.r(t); var r, o, i = (function() { @@ -240425,11 +240229,7 @@ object-assign Object.freeze( Object.defineProperties(r, { raw: { value: Object.freeze(o) } }) )); - function s(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - var c = (function() { + var s = (function() { function e() { for ( var t = this, n = arguments.length, r = Array(n), o = 0; @@ -240438,7 +240238,10 @@ object-assign ) r[o] = arguments[o]; return ( - s(this, e), + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, e), (this.tag = function(e) { for ( var n = arguments.length, r = Array(n > 1 ? n - 1 : 0), o = 1; @@ -240513,7 +240316,7 @@ object-assign e ); })(), - u = function() { + c = function() { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : ''; return { @@ -240526,14 +240329,14 @@ object-assign } }; }; - function l(e) { + function u(e) { if (Array.isArray(e)) { for (var t = 0, n = Array(e.length); t < e.length; t++) n[t] = e[t]; return n; } return Array.from(e); } - var f = function() { + var l = function() { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] @@ -240546,7 +240349,7 @@ object-assign n && Math.min.apply( Math, - l( + u( n.map(function(e) { return e.length; }) @@ -240563,7 +240366,7 @@ object-assign } }; }, - d = function(e, t) { + f = function(e, t) { return { onEndResult: function(n) { if (null == e || null == t) @@ -240574,7 +240377,7 @@ object-assign } }; }, - p = function(e, t) { + d = function(e, t) { return { onSubstitution: function(n, r) { if (null == e || null == t) @@ -240585,7 +240388,7 @@ object-assign } }; }, - h = function(e, t) { + p = function(e, t) { return { onString: function(n) { if (null == e || null == t) @@ -240596,10 +240399,10 @@ object-assign } }; }, - g = { separator: '', conjunction: '', serial: !1 }, - m = function() { + h = { separator: '', conjunction: '', serial: !1 }, + g = function() { var e = - arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : g; + arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : h; return { onSubstitution: function(t, n) { if (Array.isArray(t)) { @@ -240619,7 +240422,7 @@ object-assign } }; }, - b = function(e) { + m = function(e) { return { onSubstitution: function(t, n) { if (null == e || 'string' != typeof e) @@ -240632,71 +240435,143 @@ object-assign } }; }, - y = function(e) { + b = function(e) { return null != e && !Number.isNaN(e) && 'boolean' != typeof e; }, - v = function() { + y = function() { return { onSubstitution: function(e) { - return Array.isArray(e) ? e.filter(y) : y(e) ? e : ''; + return Array.isArray(e) ? e.filter(b) : b(e) ? e : ''; } }; }, - _ = new c(m({ separator: ',' }), f, u), - x = new c(m({ separator: ',', conjunction: 'and' }), f, u), - w = new c(m({ separator: ',', conjunction: 'or' }), f, u), - M = new c(b('\n'), v, m, f, u), - k = new c( - b('\n'), - m, - f, - u, - p(/&/g, '&'), - p(//g, '>'), - p(/"/g, '"'), - p(/'/g, '''), - p(/`/g, '`') + v = new s(g({ separator: ',' }), l, c), + _ = new s(g({ separator: ',', conjunction: 'and' }), l, c), + w = new s(g({ separator: ',', conjunction: 'or' }), l, c), + x = new s(m('\n'), y, g, l, c), + M = new s( + m('\n'), + g, + l, + c, + d(/&/g, '&'), + d(//g, '>'), + d(/"/g, '"'), + d(/'/g, '''), + d(/`/g, '`') ), - S = new c(d(/(?:\n(?:\s*))+/g, ' '), u), - A = new c(d(/(?:\n\s*)/g, ''), u), - O = new c(m({ separator: ',' }), d(/(?:\s+)/g, ' '), u), - E = new c( - m({ separator: ',', conjunction: 'or' }), - d(/(?:\s+)/g, ' '), - u + k = new s(f(/(?:\n(?:\s*))+/g, ' '), c), + S = new s(f(/(?:\n\s*)/g, ''), c), + O = new s(g({ separator: ',' }), f(/(?:\s+)/g, ' '), c), + E = new s( + g({ separator: ',', conjunction: 'or' }), + f(/(?:\s+)/g, ' '), + c ), - T = new c( - m({ separator: ',', conjunction: 'and' }), - d(/(?:\s+)/g, ' '), - u + A = new s( + g({ separator: ',', conjunction: 'and' }), + f(/(?:\s+)/g, ' '), + c ), - C = new c(m, f, u), - L = new c(m, d(/(?:\s+)/g, ' '), u), - P = new c(f, u), - D = new c(f('all'), u); + T = new s(g, l, c), + C = new s(g, f(/(?:\s+)/g, ' '), c), + L = new s(l, c), + P = new s(l('all'), c); + n.d(t, 'TemplateTag', function() { + return s; + }), + n.d(t, 'trimResultTransformer', function() { + return c; + }), + n.d(t, 'stripIndentTransformer', function() { + return l; + }), + n.d(t, 'replaceResultTransformer', function() { + return f; + }), + n.d(t, 'replaceSubstitutionTransformer', function() { + return d; + }), + n.d(t, 'replaceStringTransformer', function() { + return p; + }), + n.d(t, 'inlineArrayTransformer', function() { + return g; + }), + n.d(t, 'splitStringTransformer', function() { + return m; + }), + n.d(t, 'removeNonPrintingValuesTransformer', function() { + return y; + }), + n.d(t, 'commaLists', function() { + return v; + }), + n.d(t, 'commaListsAnd', function() { + return _; + }), + n.d(t, 'commaListsOr', function() { + return w; + }), + n.d(t, 'html', function() { + return x; + }), + n.d(t, 'codeBlock', function() { + return x; + }), + n.d(t, 'source', function() { + return x; + }), + n.d(t, 'safeHtml', function() { + return M; + }), + n.d(t, 'oneLine', function() { + return k; + }), + n.d(t, 'oneLineTrim', function() { + return S; + }), + n.d(t, 'oneLineCommaLists', function() { + return O; + }), + n.d(t, 'oneLineCommaListsOr', function() { + return E; + }), + n.d(t, 'oneLineCommaListsAnd', function() { + return A; + }), + n.d(t, 'inlineLists', function() { + return T; + }), + n.d(t, 'oneLineInlineLists', function() { + return C; + }), + n.d(t, 'stripIndent', function() { + return L; + }), + n.d(t, 'stripIndents', function() { + return P; + }); }, function(e, t, n) { 'use strict'; - n.r(t), - n.d(t, 'default', function() { - return $n; - }); + n.r(t); var r = n(0), o = n.n(r), i = n(1), a = n.n(i), - s = n(42), + s = n(55), c = n.n(s), - u = n(29), + u = n(43), l = n.n(u), - f = n(24), + f = n(36), d = n.n(f), - p = n(30), + p = n(44), h = n.n(p), - g = n(4), + g = n(7), m = n.n(g), - b = n(43); + b = n(56); function y(e, t) { for (var n = t; n; ) { if (n === e) return !0; @@ -240704,9 +240579,9 @@ object-assign } return !1; } - var v = n(434), + var v = n(463), _ = n.n(v); - function x(e, t, n, r) { + function w(e, t, n, r) { var o = m.a.unstable_batchedUpdates ? function(e) { m.a.unstable_batchedUpdates(n, e); @@ -240714,8 +240589,8 @@ object-assign : n; return _()(e, t, o, r); } - function w(e) { - return (w = + function x(e) { + return (x = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { return typeof e; @@ -240730,10 +240605,6 @@ object-assign })(e); } function M(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function k(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -240742,8 +240613,8 @@ object-assign Object.defineProperty(e, r.key, r); } } - function S(e, t) { - return !t || ('object' !== w(t) && 'function' != typeof t) + function k(e, t) { + return !t || ('object' !== x(t) && 'function' != typeof t) ? (function(e) { if (void 0 === e) throw new ReferenceError( @@ -240753,99 +240624,73 @@ object-assign })(e) : t; } - function A() { - if ('undefined' == typeof Reflect || !Reflect.construct) return !1; - if (Reflect.construct.sham) return !1; - if ('function' == typeof Proxy) return !0; - try { - return ( - Date.prototype.toString.call( - Reflect.construct(Date, [], function() {}) - ), - !0 - ); - } catch (e) { - return !1; - } - } - function O(e) { - return (O = Object.setPrototypeOf + function S(e) { + return (S = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function E(e, t) { - return (E = + function O(e, t) { + return (O = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; })(e, t); } - var T = (function(e) { - !(function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { value: e, writable: !0, configurable: !0 } - })), - t && E(e, t); - })(a, e); - var t, - n, - r, - o, - i = - ((t = a), - function() { - var e, - n = O(t); - if (A()) { - var r = O(this).constructor; - e = Reflect.construct(n, arguments, r); - } else e = n.apply(this, arguments); - return S(this, e); - }); - function a() { - var e; - M(this, a); - for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++) - n[r] = arguments[r]; + var E = (function(e) { + function t() { + var e, n; + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, t); + for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) + o[i] = arguments[i]; return ( - ((e = i.call.apply( - i, - [this].concat(n) + ((n = k( + this, + (e = S(t)).call.apply(e, [this].concat(o)) )).removeContainer = function() { - e.container && - (m.a.unmountComponentAtNode(e.container), - e.container.parentNode.removeChild(e.container), - (e.container = null)); + n.container && + (m.a.unmountComponentAtNode(n.container), + n.container.parentNode.removeChild(n.container), + (n.container = null)); }), - (e.renderComponent = function(t, n) { - var r = e.props, + (n.renderComponent = function(e, t) { + var r = n.props, o = r.visible, i = r.getComponent, a = r.forceRender, s = r.getContainer, c = r.parent; (o || c._component || a) && - (e.container || (e.container = s()), + (n.container || (n.container = s()), m.a.unstable_renderSubtreeIntoContainer( c, - i(t), - e.container, + i(e), + n.container, function() { - n && n.call(this); + t && t.call(this); } )); }), - e + n ); } + var n, r, o; return ( - (n = a), + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { value: e, writable: !0, configurable: !0 } + })), + t && O(e, t); + })(t, e), + (n = t), (r = [ { key: 'componentDidMount', @@ -240874,13 +240719,13 @@ object-assign }); } } - ]) && k(n.prototype, r), - o && k(n, o), - a + ]) && M(n.prototype, r), + o && M(n, o), + t ); })(o.a.Component); - function C(e) { - return (C = + function A(e) { + return (A = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { return typeof e; @@ -240894,11 +240739,7 @@ object-assign : typeof e; })(e); } - function L(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function P(e, t) { + function T(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -240907,8 +240748,8 @@ object-assign Object.defineProperty(e, r.key, r); } } - function D(e, t) { - return !t || ('object' !== C(t) && 'function' != typeof t) + function C(e, t) { + return !t || ('object' !== A(t) && 'function' != typeof t) ? (function(e) { if (void 0 === e) throw new ReferenceError( @@ -240918,36 +240759,21 @@ object-assign })(e) : t; } - function z() { - if ('undefined' == typeof Reflect || !Reflect.construct) return !1; - if (Reflect.construct.sham) return !1; - if ('function' == typeof Proxy) return !0; - try { - return ( - Date.prototype.toString.call( - Reflect.construct(Date, [], function() {}) - ), - !0 - ); - } catch (e) { - return !1; - } - } - function N(e) { - return (N = Object.setPrototypeOf + function L(e) { + return (L = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function j(e, t) { - return (j = + function P(e, t) { + return (P = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; })(e, t); } - (T.propTypes = { + (E.propTypes = { autoMount: a.a.bool, autoDestroy: a.a.bool, visible: a.a.bool, @@ -240957,38 +240783,30 @@ object-assign getContainer: a.a.func.isRequired, children: a.a.func.isRequired }), - (T.defaultProps = { autoMount: !0, autoDestroy: !0, forceRender: !1 }); - var R = (function(e) { - !(function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { value: e, writable: !0, configurable: !0 } - })), - t && j(e, t); - })(a, e); - var t, - n, - r, - o, - i = - ((t = a), - function() { - var e, - n = N(t); - if (z()) { - var r = N(this).constructor; - e = Reflect.construct(n, arguments, r); - } else e = n.apply(this, arguments); - return D(this, e); - }); - function a() { - return L(this, a), i.apply(this, arguments); + (E.defaultProps = { autoMount: !0, autoDestroy: !0, forceRender: !1 }); + var D = (function(e) { + function t() { + return ( + (function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, t), + C(this, L(t).apply(this, arguments)) + ); } + var n, r, o; return ( - (n = a), + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { value: e, writable: !0, configurable: !0 } + })), + t && P(e, t); + })(t, e), + (n = t), (r = [ { key: 'componentDidMount', @@ -241031,29 +240849,29 @@ object-assign : null; } } - ]) && P(n.prototype, r), - o && P(n, o), - a + ]) && T(n.prototype, r), + o && T(n, o), + t ); })(o.a.Component); - R.propTypes = { + D.propTypes = { getContainer: a.a.func.isRequired, children: a.a.node.isRequired, didUpdate: a.a.func }; - var I = n(13), - F = n.n(I); - function q(e, t, n) { + var j = n(20), + z = n.n(j); + function N(e, t, n) { return n ? e[0] === t[0] : e[0] === t[0] && e[1] === t[1]; } - function B(e, t) { + function R(e, t) { this[e] = t; } - var H, - Y = n(80), - W = n.n(Y); - function V(e) { - return (V = + var I, + F = n(96), + q = n.n(F); + function B(e) { + return (B = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { return typeof e; @@ -241067,7 +240885,7 @@ object-assign : typeof e; })(e); } - function U(e, t, n) { + function H(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { @@ -241080,7 +240898,7 @@ object-assign e ); } - function X(e, t) { + function Y(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); @@ -241092,49 +240910,49 @@ object-assign } return n; } - var G = { Webkit: '-webkit-', Moz: '-moz-', ms: '-ms-', O: '-o-' }; - function K() { - if (void 0 !== H) return H; - H = ''; + var W = { Webkit: '-webkit-', Moz: '-moz-', ms: '-ms-', O: '-o-' }; + function V() { + if (void 0 !== I) return I; + I = ''; var e = document.createElement('p').style; - for (var t in G) t + 'Transform' in e && (H = t); - return H; + for (var t in W) t + 'Transform' in e && (I = t); + return I; } - function $() { - return K() - ? ''.concat(K(), 'TransitionProperty') + function U() { + return V() + ? ''.concat(V(), 'TransitionProperty') : 'transitionProperty'; } - function Q() { - return K() ? ''.concat(K(), 'Transform') : 'transform'; + function X() { + return V() ? ''.concat(V(), 'Transform') : 'transform'; } - function J(e, t) { - var n = $(); + function G(e, t) { + var n = U(); n && ((e.style[n] = t), 'transitionProperty' !== n && (e.style.transitionProperty = t)); } - function Z(e, t) { - var n = Q(); + function K(e, t) { + var n = X(); n && ((e.style[n] = t), 'transform' !== n && (e.style.transform = t)); } - var ee, - te = /matrix\((.*)\)/, - ne = /matrix3d\((.*)\)/; - function re(e) { + var $, + Q = /matrix\((.*)\)/, + J = /matrix3d\((.*)\)/; + function Z(e) { var t = e.style.display; (e.style.display = 'none'), e.offsetHeight, (e.style.display = t); } - function oe(e, t, n) { + function ee(e, t, n) { var r = n; - if ('object' !== V(t)) + if ('object' !== B(t)) return void 0 !== r ? ('number' == typeof r && (r = ''.concat(r, 'px')), void (e.style[t] = r)) - : ee(e, t); - for (var o in t) t.hasOwnProperty(o) && oe(e, o, t[o]); + : $(e, t); + for (var o in t) t.hasOwnProperty(o) && ee(e, o, t[o]); } - function ie(e, t) { + function te(e, t) { var n = e['page'.concat(t ? 'Y' : 'X', 'Offset')], r = 'scroll'.concat(t ? 'Top' : 'Left'); if ('number' != typeof n) { @@ -241143,13 +240961,13 @@ object-assign } return n; } - function ae(e) { - return ie(e); + function ne(e) { + return te(e); } - function se(e) { - return ie(e, !0); + function re(e) { + return te(e, !0); } - function ce(e) { + function oe(e) { var t = (function(e) { var t, n, @@ -241168,24 +240986,27 @@ object-assign })(e), n = e.ownerDocument, r = n.defaultView || n.parentWindow; - return (t.left += ae(r)), (t.top += se(r)), t; + return (t.left += ne(r)), (t.top += re(r)), t; } - function ue(e) { + function ie(e) { return null != e && e == e.window; } - function le(e) { - return ue(e) ? e.document : 9 === e.nodeType ? e : e.ownerDocument; + function ae(e) { + return ie(e) ? e.document : 9 === e.nodeType ? e : e.ownerDocument; } - var fe = new RegExp( + var se = new RegExp( '^('.concat( /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source, ')(?!px)[a-z%]+$' ), 'i' ), - de = /^(top|right|bottom|left)$/, - pe = 'left'; - function he(e, t) { + ce = /^(top|right|bottom|left)$/, + ue = 'currentStyle', + le = 'runtimeStyle', + fe = 'left', + de = 'px'; + function pe(e, t) { return 'left' === e ? t.useCssRight ? 'right' @@ -241194,7 +241015,7 @@ object-assign ? 'bottom' : e; } - function ge(e) { + function he(e) { return 'left' === e ? 'right' : 'right' === e @@ -241205,48 +241026,48 @@ object-assign ? 'top' : void 0; } - function me(e, t, n) { - 'static' === oe(e, 'position') && (e.style.position = 'relative'); + function ge(e, t, n) { + 'static' === ee(e, 'position') && (e.style.position = 'relative'); var r = -999, o = -999, - i = he('left', n), - a = he('top', n), - s = ge(i), - c = ge(a); + i = pe('left', n), + a = pe('top', n), + s = he(i), + c = he(a); 'left' !== i && (r = 999), 'top' !== a && (o = 999); var u, l = '', - f = ce(e); + f = oe(e); ('left' in t || 'top' in t) && - ((l = (u = e).style.transitionProperty || u.style[$()] || ''), - J(e, 'none')), + ((l = (u = e).style.transitionProperty || u.style[U()] || ''), + G(e, 'none')), 'left' in t && ((e.style[s] = ''), (e.style[i] = ''.concat(r, 'px'))), 'top' in t && ((e.style[c] = ''), (e.style[a] = ''.concat(o, 'px'))), - re(e); - var d = ce(e), + Z(e); + var d = oe(e), p = {}; for (var h in t) if (t.hasOwnProperty(h)) { - var g = he(h, n), + var g = pe(h, n), m = 'left' === h ? r : o, b = f[h] - d[h]; p[g] = g === h ? m + b : m - b; } - oe(e, p), re(e), ('left' in t || 'top' in t) && J(e, l); + ee(e, p), Z(e), ('left' in t || 'top' in t) && G(e, l); var y = {}; for (var v in t) if (t.hasOwnProperty(v)) { - var _ = he(v, n), - x = t[v] - f[v]; - y[_] = v === _ ? p[_] + x : p[_] - x; + var _ = pe(v, n), + w = t[v] - f[v]; + y[_] = v === _ ? p[_] + w : p[_] - w; } - oe(e, y); + ee(e, y); } - function be(e, t) { - var n = ce(e), + function me(e, t) { + var n = oe(e), r = (function(e) { var t = window.getComputedStyle(e, null), - n = t.getPropertyValue('transform') || t.getPropertyValue(Q()); + n = t.getPropertyValue('transform') || t.getPropertyValue(X()); if (n && 'none' !== n) { var r = n.replace(/[^0-9\-.,]/g, '').split(','); return { @@ -241261,27 +241082,27 @@ object-assign 'top' in t && (o.y = r.y + t.top - n.top), (function(e, t) { var n = window.getComputedStyle(e, null), - r = n.getPropertyValue('transform') || n.getPropertyValue(Q()); + r = n.getPropertyValue('transform') || n.getPropertyValue(X()); if (r && 'none' !== r) { var o, - i = r.match(te); + i = r.match(Q); if (i) ((o = (i = i[1]).split(',').map(function(e) { return parseFloat(e, 10); }))[4] = t.x), (o[5] = t.y), - Z(e, 'matrix('.concat(o.join(','), ')')); + K(e, 'matrix('.concat(o.join(','), ')')); else ((o = r - .match(ne)[1] + .match(J)[1] .split(',') .map(function(e) { return parseFloat(e, 10); }))[12] = t.x), (o[13] = t.y), - Z(e, 'matrix3d('.concat(o.join(','), ')')); + K(e, 'matrix3d('.concat(o.join(','), ')')); } else - Z( + K( e, 'translateX(' .concat(t.x, 'px) translateY(') @@ -241289,18 +241110,18 @@ object-assign ); })(e, o); } - function ye(e, t) { + function be(e, t) { for (var n = 0; n < e.length; n++) t(e[n]); } - function ve(e) { - return 'border-box' === ee(e, 'boxSizing'); + function ye(e) { + return 'border-box' === $(e, 'boxSizing'); } 'undefined' != typeof window && - (ee = window.getComputedStyle + ($ = window.getComputedStyle ? function(e, t, n) { var r = n, o = '', - i = le(e); + i = ae(e); return ( (r = r || i.defaultView.getComputedStyle(e, null)) && (o = r.getPropertyValue(t) || r[t]), @@ -241308,28 +241129,24 @@ object-assign ); } : function(e, t) { - var n = e.currentStyle && e.currentStyle[t]; - if (fe.test(n) && !de.test(t)) { + var n = e[ue] && e[ue][t]; + if (se.test(n) && !ce.test(t)) { var r = e.style, - o = r[pe], - i = e.runtimeStyle[pe]; - (e.runtimeStyle[pe] = e.currentStyle[pe]), - (r[pe] = 'fontSize' === t ? '1em' : n || 0), - (n = r.pixelLeft + 'px'), - (r[pe] = o), - (e.runtimeStyle[pe] = i); + o = r[fe], + i = e[le][fe]; + (e[le][fe] = e[ue][fe]), + (r[fe] = 'fontSize' === t ? '1em' : n || 0), + (n = r.pixelLeft + de), + (r[fe] = o), + (e[le][fe] = i); } return '' === n ? 'auto' : n; }); - var _e = ['margin', 'border', 'padding']; - function xe(e, t, n) { - var r, - o = {}, - i = e.style; - for (r in t) t.hasOwnProperty(r) && ((o[r] = i[r]), (i[r] = t[r])); - for (r in (n.call(e), t)) t.hasOwnProperty(r) && (i[r] = o[r]); - } - function we(e, t, n) { + var ve = ['margin', 'border', 'padding'], + _e = -1, + we = 2, + xe = 1; + function Me(e, t, n) { var r, o, i, @@ -241340,11 +241157,11 @@ object-assign var s = void 0; (s = 'border' === r ? ''.concat(r).concat(n[i], 'Width') : r + n[i]), - (a += parseFloat(ee(e, s)) || 0); + (a += parseFloat($(e, s)) || 0); } return a; } - var Me = { + var ke = { getParent: function(e) { var t = e; do { @@ -241353,46 +241170,46 @@ object-assign return t; } }; - function ke(e, t, n) { + function Se(e, t, n) { var r = n; - if (ue(e)) - return 'width' === t ? Me.viewportWidth(e) : Me.viewportHeight(e); + if (ie(e)) + return 'width' === t ? ke.viewportWidth(e) : ke.viewportHeight(e); if (9 === e.nodeType) - return 'width' === t ? Me.docWidth(e) : Me.docHeight(e); + return 'width' === t ? ke.docWidth(e) : ke.docHeight(e); var o = 'width' === t ? ['Left', 'Right'] : ['Top', 'Bottom'], i = 'width' === t ? e.getBoundingClientRect().width : e.getBoundingClientRect().height, - a = (ee(e), ve(e)), + a = ($(e), ye(e)), s = 0; (null == i || i <= 0) && ((i = void 0), - (null == (s = ee(e, t)) || Number(s) < 0) && (s = e.style[t] || 0), + (null == (s = $(e, t)) || Number(s) < 0) && (s = e.style[t] || 0), (s = parseFloat(s) || 0)), - void 0 === r && (r = a ? 1 : -1); + void 0 === r && (r = a ? xe : _e); var c = void 0 !== i || a, u = i || s; - return -1 === r + return r === _e ? c - ? u - we(e, ['border', 'padding'], o) + ? u - Me(e, ['border', 'padding'], o) : s : c - ? 1 === r + ? r === xe ? u - : u + (2 === r ? -we(e, ['border'], o) : we(e, ['margin'], o)) - : s + we(e, _e.slice(r), o); + : u + (r === we ? -Me(e, ['border'], o) : Me(e, ['margin'], o)) + : s + Me(e, ve.slice(r), o); } - ye(['Width', 'Height'], function(e) { - (Me['doc'.concat(e)] = function(t) { + be(['Width', 'Height'], function(e) { + (ke['doc'.concat(e)] = function(t) { var n = t.document; return Math.max( n.documentElement['scroll'.concat(e)], n.body['scroll'.concat(e)], - Me['viewport'.concat(e)](n) + ke['viewport'.concat(e)](n) ); }), - (Me['viewport'.concat(e)] = function(t) { + (ke['viewport'.concat(e)] = function(t) { var n = 'client'.concat(e), r = t.document, o = r.body, @@ -241400,52 +241217,59 @@ object-assign return ('CSS1Compat' === r.compatMode && i) || (o && o[n]) || i; }); }); - var Se = { position: 'absolute', visibility: 'hidden', display: 'block' }; - function Ae() { + var Oe = { position: 'absolute', visibility: 'hidden', display: 'block' }; + function Ee() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; var r, o = t[0]; return ( 0 !== o.offsetWidth - ? (r = ke.apply(void 0, t)) - : xe(o, Se, function() { - r = ke.apply(void 0, t); + ? (r = Se.apply(void 0, t)) + : (function(e, t, n) { + var r, + o = {}, + i = e.style; + for (r in t) + t.hasOwnProperty(r) && ((o[r] = i[r]), (i[r] = t[r])); + for (r in (n.call(e), t)) t.hasOwnProperty(r) && (i[r] = o[r]); + })(o, Oe, function() { + r = Se.apply(void 0, t); }), r ); } - function Oe(e, t) { + function Ae(e, t) { for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); return e; } - ye(['width', 'height'], function(e) { + be(['width', 'height'], function(e) { var t = e.charAt(0).toUpperCase() + e.slice(1); - Me['outer'.concat(t)] = function(t, n) { - return t && Ae(t, e, n ? 0 : 1); + ke['outer'.concat(t)] = function(t, n) { + return t && Ee(t, e, n ? 0 : xe); }; var n = 'width' === e ? ['Left', 'Right'] : ['Top', 'Bottom']; - Me[e] = function(t, r) { + ke[e] = function(t, r) { var o = r; - if (void 0 === o) return t && Ae(t, e, -1); + if (void 0 === o) return t && Ee(t, e, _e); if (t) { - ee(t); - return ve(t) && (o += we(t, ['padding', 'border'], n)), oe(t, e, o); + $(t); + return ye(t) && (o += Me(t, ['padding', 'border'], n)), ee(t, e, o); } }; }); - var Ee = { + var Te = { getWindow: function(e) { if (e && e.document && e.setTimeout) return e; var t = e.ownerDocument || e; return t.defaultView || t.parentWindow; }, - getDocument: le, + getDocument: ae, offset: function(e, t, n) { - if (void 0 === t) return ce(e); + if (void 0 === t) return oe(e); !(function(e, t, n) { if (n.ignoreShake) { - var r = ce(e), + var r = oe(e), o = r.left.toFixed(0), i = r.top.toFixed(0), a = t.left.toFixed(0), @@ -241453,15 +241277,15 @@ object-assign if (o === a && i === s) return; } n.useCssRight || n.useCssBottom - ? me(e, t, n) - : n.useCssTransform && Q() in document.body.style - ? be(e, t) - : me(e, t, n); + ? ge(e, t, n) + : n.useCssTransform && X() in document.body.style + ? me(e, t) + : ge(e, t, n); })(e, t, n || {}); }, - isWindow: ue, - each: ye, - css: oe, + isWindow: ie, + each: be, + css: ee, clone: function(e) { var t, n = {}; @@ -241470,118 +241294,117 @@ object-assign for (t in e) e.hasOwnProperty(t) && (n.overflow[t] = e.overflow[t]); return n; }, - mix: Oe, + mix: Ae, getWindowScrollLeft: function(e) { - return ae(e); + return ne(e); }, getWindowScrollTop: function(e) { - return se(e); + return re(e); }, merge: function() { for (var e = {}, t = 0; t < arguments.length; t++) - Ee.mix(e, t < 0 || arguments.length <= t ? void 0 : arguments[t]); + Te.mix(e, t < 0 || arguments.length <= t ? void 0 : arguments[t]); return e; }, viewportWidth: 0, viewportHeight: 0 }; - Oe(Ee, Me); - var Te = Ee.getParent; - function Ce(e) { - if (Ee.isWindow(e) || 9 === e.nodeType) return null; + Ae(Te, ke); + var Ce = Te.getParent; + function Le(e) { + if (Te.isWindow(e) || 9 === e.nodeType) return null; var t, - n = Ee.getDocument(e).body, - r = Ee.css(e, 'position'); + n = Te.getDocument(e).body, + r = Te.css(e, 'position'); if (!('fixed' === r || 'absolute' === r)) - return 'html' === e.nodeName.toLowerCase() ? null : Te(e); - for (t = Te(e); t && t !== n && 9 !== t.nodeType; t = Te(t)) - if ('static' !== (r = Ee.css(t, 'position'))) return t; + return 'html' === e.nodeName.toLowerCase() ? null : Ce(e); + for (t = Ce(e); t && t !== n; t = Ce(t)) + if ('static' !== (r = Te.css(t, 'position'))) return t; return null; } - var Le = Ee.getParent; - function Pe(e, t) { + var Pe = Te.getParent; + function De(e) { for ( - var n = { left: 0, right: 1 / 0, top: 0, bottom: 1 / 0 }, - r = Ce(e), - o = Ee.getDocument(e), - i = o.defaultView || o.parentWindow, - a = o.body, - s = o.documentElement; - r; + var t = { left: 0, right: 1 / 0, top: 0, bottom: 1 / 0 }, + n = Le(e), + r = Te.getDocument(e), + o = r.defaultView || r.parentWindow, + i = r.body, + a = r.documentElement; + n; ) { if ( (-1 !== navigator.userAgent.indexOf('MSIE') && - 0 === r.clientWidth) || - r === a || - r === s || - 'visible' === Ee.css(r, 'overflow') + 0 === n.clientWidth) || + n === i || + n === a || + 'visible' === Te.css(n, 'overflow') ) { - if (r === a || r === s) break; + if (n === i || n === a) break; } else { - var c = Ee.offset(r); - (c.left += r.clientLeft), - (c.top += r.clientTop), - (n.top = Math.max(n.top, c.top)), - (n.right = Math.min(n.right, c.left + r.clientWidth)), - (n.bottom = Math.min(n.bottom, c.top + r.clientHeight)), - (n.left = Math.max(n.left, c.left)); - } - r = Ce(r); - } - var u = null; - Ee.isWindow(e) || + var s = Te.offset(n); + (s.left += n.clientLeft), + (s.top += n.clientTop), + (t.top = Math.max(t.top, s.top)), + (t.right = Math.min(t.right, s.left + n.clientWidth)), + (t.bottom = Math.min(t.bottom, s.top + n.clientHeight)), + (t.left = Math.max(t.left, s.left)); + } + n = Le(n); + } + var c = null; + Te.isWindow(e) || 9 === e.nodeType || - ((u = e.style.position), - 'absolute' === Ee.css(e, 'position') && (e.style.position = 'fixed')); - var l = Ee.getWindowScrollLeft(i), - f = Ee.getWindowScrollTop(i), - d = Ee.viewportWidth(i), - p = Ee.viewportHeight(i), - h = s.scrollWidth, - g = s.scrollHeight, - m = window.getComputedStyle(a); + ((c = e.style.position), + 'absolute' === Te.css(e, 'position') && (e.style.position = 'fixed')); + var u = Te.getWindowScrollLeft(o), + l = Te.getWindowScrollTop(o), + f = Te.viewportWidth(o), + d = Te.viewportHeight(o), + p = a.scrollWidth, + h = a.scrollHeight, + g = window.getComputedStyle(i); if ( - ('hidden' === m.overflowX && (h = i.innerWidth), - 'hidden' === m.overflowY && (g = i.innerHeight), - e.style && (e.style.position = u), - t || - (function(e) { - if (Ee.isWindow(e) || 9 === e.nodeType) return !1; - var t = Ee.getDocument(e).body, - n = null; - for (n = Le(e); n && n !== t; n = Le(n)) { - if ('fixed' === Ee.css(n, 'position')) return !0; - } - return !1; - })(e)) + ('hidden' === g.overflowX && (p = o.innerWidth), + 'hidden' === g.overflowY && (h = o.innerHeight), + e.style && (e.style.position = c), + (function(e) { + if (Te.isWindow(e) || 9 === e.nodeType) return !1; + var t = Te.getDocument(e).body, + n = null; + for (n = Pe(e); n && n !== t; n = Pe(n)) { + if ('fixed' === Te.css(n, 'position')) return !0; + } + return !1; + })(e)) ) - (n.left = Math.max(n.left, l)), - (n.top = Math.max(n.top, f)), - (n.right = Math.min(n.right, l + d)), - (n.bottom = Math.min(n.bottom, f + p)); + (t.left = Math.max(t.left, u)), + (t.top = Math.max(t.top, l)), + (t.right = Math.min(t.right, u + f)), + (t.bottom = Math.min(t.bottom, l + d)); else { + var m = Math.max(p, u + f); + t.right = Math.min(t.right, m); var b = Math.max(h, l + d); - n.right = Math.min(n.right, b); - var y = Math.max(g, f + p); - n.bottom = Math.min(n.bottom, y); + t.bottom = Math.min(t.bottom, b); } - return n.top >= 0 && n.left >= 0 && n.bottom > n.top && n.right > n.left - ? n + return t.top >= 0 && t.left >= 0 && t.bottom > t.top && t.right > t.left + ? t : null; } - function De(e) { + function je(e) { var t, n, r; - if (Ee.isWindow(e) || 9 === e.nodeType) { - var o = Ee.getWindow(e); + if (Te.isWindow(e) || 9 === e.nodeType) { + var o = Te.getWindow(e); (t = { - left: Ee.getWindowScrollLeft(o), - top: Ee.getWindowScrollTop(o) + left: Te.getWindowScrollLeft(o), + top: Te.getWindowScrollTop(o) }), - (n = Ee.viewportWidth(o)), - (r = Ee.viewportHeight(o)); + (n = Te.viewportWidth(o)), + (r = Te.viewportHeight(o)); } else - (t = Ee.offset(e)), (n = Ee.outerWidth(e)), (r = Ee.outerHeight(e)); + (t = Te.offset(e)), (n = Te.outerWidth(e)), (r = Te.outerHeight(e)); return (t.width = n), (t.height = r), t; } function ze(e, t) { @@ -241606,16 +241429,16 @@ object-assign top: Math.round(e.top - s[1] + r[1] - o[1]) }; } - function je(e, t, n) { + function Re(e, t, n) { return e.left < n.left || e.left + t.width > n.right; } - function Re(e, t, n) { + function Ie(e, t, n) { return e.top < n.top || e.top + t.height > n.bottom; } - function Ie(e, t, n) { + function Fe(e, t, n) { var r = []; return ( - Ee.each(e, function(e) { + Te.each(e, function(e) { r.push( e.replace(t, function(e) { return n[e]; @@ -241625,62 +241448,62 @@ object-assign r ); } - function Fe(e, t) { + function qe(e, t) { return (e[t] = -e[t]), e; } - function qe(e, t) { + function Be(e, t) { return ( (/%$/.test(e) ? (parseInt(e.substring(0, e.length - 1), 10) / 100) * t : parseInt(e, 10)) || 0 ); } - function Be(e, t) { - (e[0] = qe(e[0], t.width)), (e[1] = qe(e[1], t.height)); + function He(e, t) { + (e[0] = Be(e[0], t.width)), (e[1] = Be(e[1], t.height)); } - function He(e, t, n, r) { + function Ye(e, t, n, r) { var o = n.points, i = n.offset || [0, 0], a = n.targetOffset || [0, 0], s = n.overflow, c = n.source || e; - (i = [].concat(i)), (a = [].concat(a)); + (i = [].concat(i)), (a = [].concat(a)), (s = s || {}); var u = {}, l = 0, - f = Pe(c, !(!(s = s || {}) || !s.alwaysByViewport)), - d = De(c); - Be(i, d), Be(a, t); + f = De(c), + d = je(c); + He(i, d), He(a, t); var p = Ne(d, t, o, i, a), - h = Ee.merge(d, p); + h = Te.merge(d, p); if (f && (s.adjustX || s.adjustY) && r) { - if (s.adjustX && je(p, d, f)) { - var g = Ie(o, /[lr]/gi, { l: 'r', r: 'l' }), - m = Fe(i, 0), - b = Fe(a, 0); + if (s.adjustX && Re(p, d, f)) { + var g = Fe(o, /[lr]/gi, { l: 'r', r: 'l' }), + m = qe(i, 0), + b = qe(a, 0); (function(e, t, n) { return e.left > n.right || e.left + t.width < n.left; })(Ne(d, t, g, m, b), d, f) || ((l = 1), (o = g), (i = m), (a = b)); } - if (s.adjustY && Re(p, d, f)) { - var y = Ie(o, /[tb]/gi, { t: 'b', b: 't' }), - v = Fe(i, 1), - _ = Fe(a, 1); + if (s.adjustY && Ie(p, d, f)) { + var y = Fe(o, /[tb]/gi, { t: 'b', b: 't' }), + v = qe(i, 1), + _ = qe(a, 1); (function(e, t, n) { return e.top > n.bottom || e.top + t.height < n.top; })(Ne(d, t, y, v, _), d, f) || ((l = 1), (o = y), (i = v), (a = _)); } - l && ((p = Ne(d, t, o, i, a)), Ee.mix(h, p)); - var x = je(p, d, f), - w = Re(p, d, f); - (x || w) && + l && ((p = Ne(d, t, o, i, a)), Te.mix(h, p)); + var w = Re(p, d, f), + x = Ie(p, d, f); + (w || x) && ((o = n.points), (i = n.offset || [0, 0]), (a = n.targetOffset || [0, 0])), - (u.adjustX = s.adjustX && x), - (u.adjustY = s.adjustY && w), + (u.adjustX = s.adjustX && w), + (u.adjustY = s.adjustY && x), (u.adjustX || u.adjustY) && (h = (function(e, t, n, r) { - var o = Ee.clone(e), + var o = Te.clone(e), i = { width: t.width, height: t.height }; return ( r.adjustX && o.left < n.left && (o.left = n.left), @@ -241699,16 +241522,16 @@ object-assign r.adjustY && o.top + i.height > n.bottom && (o.top = Math.max(n.bottom - i.height, n.top)), - Ee.mix(o, i) + Te.mix(o, i) ); })(p, d, f, u)); } return ( h.width !== d.width && - Ee.css(c, 'width', Ee.width(c) + h.width - d.width), + Te.css(c, 'width', Te.width(c) + h.width - d.width), h.height !== d.height && - Ee.css(c, 'height', Ee.height(c) + h.height - d.height), - Ee.offset( + Te.css(c, 'height', Te.height(c) + h.height - d.height), + Te.offset( c, { left: h.left, top: h.top }, { @@ -241721,53 +241544,53 @@ object-assign { points: o, offset: i, targetOffset: a, overflow: u } ); } - function Ye(e, t, n) { + function We(e, t, n) { var r = n.target || t; - return He( + return Ye( e, - De(r), + je(r), n, - !(function(e, t) { - var n = Pe(e, t), - r = De(e); + !(function(e) { + var t = De(e), + n = je(e); return ( - !n || - r.left + r.width <= n.left || - r.top + r.height <= n.top || - r.left >= n.right || - r.top >= n.bottom + !t || + n.left + n.width <= t.left || + n.top + n.height <= t.top || + n.left >= t.right || + n.top >= t.bottom ); - })(r, n.overflow && n.overflow.alwaysByViewport) + })(r) ); } - function We(e, t, n) { + function Ve(e, t, n) { var r, o, - i = Ee.getDocument(e), + i = Te.getDocument(e), a = i.defaultView || i.parentWindow, - s = Ee.getWindowScrollLeft(a), - c = Ee.getWindowScrollTop(a), - u = Ee.viewportWidth(a), - l = Ee.viewportHeight(a); + s = Te.getWindowScrollLeft(a), + c = Te.getWindowScrollTop(a), + u = Te.viewportWidth(a), + l = Te.viewportHeight(a); (r = 'pageX' in t ? t.pageX : s + t.clientX), (o = 'pageY' in t ? t.pageY : c + t.clientY); var f = r >= 0 && r <= s + u && o >= 0 && o <= c + l; - return He( + return Ye( e, { left: r, top: o, width: 0, height: 0 }, (function(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 - ? X(n, !0).forEach(function(t) { - U(e, t, n[t]); + ? Y(n, !0).forEach(function(t) { + H(e, t, n[t]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, Object.getOwnPropertyDescriptors(n) ) - : X(n).forEach(function(t) { + : Y(n).forEach(function(t) { Object.defineProperty( e, t, @@ -241780,18 +241603,15 @@ object-assign f ); } - (Ye.__getOffsetParent = Ce), (Ye.__getVisibleRectForElement = Pe); - function Ve(e) { + (We.__getOffsetParent = Le), (We.__getVisibleRectForElement = De); + function Ue(e) { return e && 'object' == typeof e && e.window === e; } - function Ue(e, t) { + function Xe(e, t) { var n = Math.floor(e), r = Math.floor(t); return Math.abs(n - r) <= 1; } - function Xe(e, t) { - e !== document.activeElement && y(t, e) && e.focus(); - } function Ge(e) { return 'function' == typeof e && e ? e() : null; } @@ -241824,8 +241644,10 @@ object-assign c = Ge(n), u = Ke(n), l = document.activeElement; - c ? (s = Ye(a, c, o)) : u && (s = We(a, u, o)), - Xe(l, a), + c ? (s = We(a, c, o)) : u && (s = Ve(a, u, o)), + (function(e, t) { + e !== document.activeElement && y(t, e) && e.focus(); + })(l, a), i && i(a, s); } }), @@ -241835,7 +241657,7 @@ object-assign } return ( h()(t, e), - W()(t, [ + q()(t, [ { key: 'componentDidMount', value: function() { @@ -241862,7 +241684,7 @@ object-assign c = Ge(o.target), u = Ke(e.target), l = Ke(o.target); - Ve(s) && Ve(c) + Ue(s) && Ue(c) ? (r = !1) : (s !== c || (s && !c && l) || @@ -241883,7 +241705,7 @@ object-assign var f = this.sourceRect || {}; r || !i || - (Ue(f.width, a.width) && Ue(f.height, a.height)) || + (Xe(f.width, a.width) && Xe(f.height, a.height)) || (r = !0); } this.sourceRect = a; @@ -241914,7 +241736,7 @@ object-assign } return (o.clear = r), o; })(this.forceAlign, this.props.monitorBufferTime)), - (this.resizeHandler = x( + (this.resizeHandler = w( window, 'resize', this.bufferMonitor @@ -241981,7 +241803,7 @@ object-assign disabled: !1 }); var Qe = $e, - Je = n(435), + Je = n(464), Ze = n.n(Je), et = function(e) { var t = e.prototype; @@ -242031,7 +241853,7 @@ object-assign r ); } - var ot = n(126), + var ot = n(141), it = n.n(ot), at = { transitionstart: { @@ -242127,7 +241949,7 @@ object-assign }); } }, - pt = n(436), + pt = n(465), ht = n.n(pt), gt = 0 !== dt.endEvents.length, mt = ['Webkit', 'Moz', 'O', 'ms'], @@ -242156,7 +241978,7 @@ object-assign e.rcEndAnimTimeout && (clearTimeout(e.rcEndAnimTimeout), (e.rcEndAnimTimeout = null)); } - var xt = function(e, t, n) { + var wt = function(e, t, n) { var r = 'object' === (void 0 === t ? 'undefined' : it()(t)), o = r ? t.name : t, i = r ? t.active : t + '-active', @@ -242193,7 +242015,7 @@ object-assign } ); }; - (xt.style = function(e, t, n) { + (wt.style = function(e, t, n) { e.rcEndListener && e.rcEndListener(), (e.rcEndListener = function(t) { (t && t.target !== e) || @@ -242210,7 +242032,7 @@ object-assign (e.rcAnimTimeout = null), vt(e); }, 0)); }), - (xt.setTransition = function(e, t, n) { + (wt.setTransition = function(e, t, n) { var r = t, o = n; void 0 === n && ((o = r), (r = '')), @@ -242219,8 +242041,8 @@ object-assign e.style[t + 'Transition' + r] = o; }); }), - (xt.isCssAnimationSupported = gt); - var wt = xt, + (wt.isCssAnimationSupported = gt); + var xt = wt, Mt = { isAppearSupported: function(e) { return ( @@ -242260,7 +242082,7 @@ object-assign } return ( h()(t, e), - W()(t, [ + q()(t, [ { key: 'componentWillUnmount', value: function() { @@ -242307,7 +242129,7 @@ object-assign var c = a ? i[e] : i + '-' + e, u = c + '-active'; a && i[e + 'Active'] && (u = i[e + 'Active']), - (this.stopper = wt(r, { name: c, active: u }, s)); + (this.stopper = xt(r, { name: c, active: u }, s)); } else this.stopper = o.animation[e](r, s); } }, @@ -242333,12 +242155,12 @@ object-assign animation: a.a.any, transitionName: a.a.any }; - var At = St, - Ot = 'rc_animate_' + Date.now(); - function Et(e) { + var Ot = St, + Et = 'rc_animate_' + Date.now(); + function At(e) { var t = e.children; return o.a.isValidElement(t) && !t.key - ? o.a.cloneElement(t, { key: Ot }) + ? o.a.cloneElement(t, { key: Et }) : t; } function Tt() {} @@ -242354,14 +242176,14 @@ object-assign (n.currentlyAnimatingKeys = {}), (n.keysToEnter = []), (n.keysToLeave = []), - (n.state = { children: tt(Et(e)) }), + (n.state = { children: tt(At(e)) }), (n.childrenRefs = {}), n ); } return ( h()(t, e), - W()(t, [ + q()(t, [ { key: 'componentDidMount', value: function() { @@ -242382,7 +242204,7 @@ object-assign value: function(e) { var t = this; this.nextProps = e; - var n = tt(Et(e)), + var n = tt(At(e)), r = this.props; r.exclusive && Object.keys(this.currentlyAnimatingKeys).forEach(function(e) { @@ -242394,7 +242216,7 @@ object-assign c, u = r.showProp, l = this.currentlyAnimatingKeys, - f = r.exclusive ? tt(Et(r)) : this.state.children, + f = r.exclusive ? tt(At(r)) : this.state.children, d = []; u ? (f.forEach(function(e) { @@ -242488,7 +242310,7 @@ object-assign if (!n.key) throw new Error('must set key for children'); return o.a.createElement( - At, + Ot, { key: n.key, ref: function(t) { @@ -242575,7 +242397,7 @@ object-assign (delete e.currentlyAnimatingKeys[t], !r.exclusive || r === e.nextProps) ) { - var o = tt(Et(r)); + var o = tt(At(r)); e.isValidChildByKey(o, t) ? 'appear' === n ? Mt.allowAppearCallback(r) && @@ -242601,7 +242423,7 @@ object-assign o, i, a, - s = tt(Et(n)); + s = tt(At(n)); if (e.isValidChildByKey(s, t)) e.performEnter(t); else { var c = function() { @@ -242615,11 +242437,11 @@ object-assign var n = o[t]; e && n && - ((e && !n) || - (!e && n) || - e.key !== n.key || - (i && e.props[i] !== n.props[i])) && - (a = !1); + ((e && !n) || (!e && n) + ? (a = !1) + : e.key !== n.key + ? (a = !1) + : i && e.props[i] !== n.props[i] && (a = !1)); }), a ? c() : e.setState({ children: s }, c); } @@ -242627,9 +242449,9 @@ object-assign }); }, Pt = et(Ct), - Dt = n(437), - zt = n.n(Dt), - Nt = (function(e) { + Dt = n(466), + jt = n.n(Dt), + zt = (function(e) { function t() { return l()(this, t), d()(this, e.apply(this, arguments)); } @@ -242642,7 +242464,7 @@ object-assign var e = this.props, t = e.hiddenClassName, n = e.visible, - r = zt()(e, ['hiddenClassName', 'visible']); + r = jt()(e, ['hiddenClassName', 'visible']); return t || o.a.Children.count(r.children) > 1 ? (!n && t && (r.className += ' ' + t), o.a.createElement('div', r)) @@ -242651,13 +242473,13 @@ object-assign t ); })(r.Component); - Nt.propTypes = { + zt.propTypes = { children: a.a.any, className: a.a.string, visible: a.a.bool, hiddenClassName: a.a.string }; - var jt = Nt, + var Nt = zt, Rt = (function(e) { function t() { return l()(this, t), d()(this, e.apply(this, arguments)); @@ -242680,7 +242502,7 @@ object-assign style: e.style }, o.a.createElement( - jt, + Nt, { className: e.prefixCls + '-content', visible: e.visible }, e.children ) @@ -242712,8 +242534,8 @@ object-assign targetWidth: void 0, targetHeight: void 0 }), - (r.savePopupRef = B.bind(r, 'popupInstance')), - (r.saveAlignRef = B.bind(r, 'alignInstance')), + (r.savePopupRef = R.bind(r, 'popupInstance')), + (r.saveAlignRef = R.bind(r, 'alignInstance')), r ); } @@ -242766,8 +242588,8 @@ object-assign y = s.onMouseLeave, v = s.onMouseDown, _ = s.onTouchStart, - x = this.getClassName(this.currentAlignClassName || p(u)), - w = f + '-hidden'; + w = this.getClassName(this.currentAlignClassName || p(u)), + x = f + '-hidden'; l || (this.currentAlignClassName = null); var M = {}; g && @@ -242783,7 +242605,7 @@ object-assign e.alignInstance && e.alignInstance.forceAlign(); }, 0))); var k = { - className: x, + className: w, prefixCls: f, ref: t, onMouseEnter: b, @@ -242838,7 +242660,7 @@ object-assign align: u, onAlign: this.onAlign }, - o.a.createElement(It, c()({ hiddenClassName: w }, k), m) + o.a.createElement(It, c()({ hiddenClassName: x }, k), m) ) ); }), @@ -242852,7 +242674,7 @@ object-assign t = void 0; if (e.mask) { var n = this.getMaskTransitionName(); - (t = o.a.createElement(jt, { + (t = o.a.createElement(Nt, { style: this.getZIndexStyle(), key: 'mask', className: e.prefixCls + '-mask', @@ -243005,14 +242827,14 @@ object-assign this.clickOutsideHandler || (!this.isClickToHide() && !this.isContextMenuToShow()) || ((o = n.getDocument()), - (this.clickOutsideHandler = x( + (this.clickOutsideHandler = w( o, 'mousedown', this.onDocumentClick ))), this.touchOutsideHandler || ((o = o || n.getDocument()), - (this.touchOutsideHandler = x( + (this.touchOutsideHandler = w( o, 'touchstart', this.onDocumentClick @@ -243020,7 +242842,7 @@ object-assign !this.contextMenuOutsideHandler1 && this.isContextMenuToShow() && ((o = o || n.getDocument()), - (this.contextMenuOutsideHandler1 = x( + (this.contextMenuOutsideHandler1 = w( o, 'scroll', this.onContextMenuClose @@ -243028,7 +242850,7 @@ object-assign void ( !this.contextMenuOutsideHandler2 && this.isContextMenuToShow() && - (this.contextMenuOutsideHandler2 = x( + (this.contextMenuOutsideHandler2 = w( window, 'blur', this.onContextMenuClose @@ -243208,12 +243030,12 @@ object-assign ? ((u.onFocus = this.onFocus), (u.onBlur = this.onBlur)) : ((u.onFocus = this.createTwoChains('onFocus')), (u.onBlur = this.createTwoChains('onBlur'))); - var l = F()(c && c.props && c.props.className, s); + var l = z()(c && c.props && c.props.className, s); l && (u.className = l); var f = o.a.cloneElement(c, u); if (!Wt) return o.a.createElement( - T, + E, { parent: this, visible: t, @@ -243231,7 +243053,7 @@ object-assign return ( (t || this._component || i) && (d = o.a.createElement( - R, + D, { key: 'portal', getContainer: this.getContainer, @@ -243422,7 +243244,7 @@ object-assign (function(e, t, n, r) { var o = n.points; for (var i in e) - if (e.hasOwnProperty(i) && q(e[i].points, o, r)) + if (e.hasOwnProperty(i) && N(e[i].points, o, r)) return t + '-placement-' + i; return ''; })(i, a, t, s) @@ -243450,8 +243272,8 @@ object-assign y = t.alignPoint, v = e.state, _ = v.popupVisible, - x = v.point, - w = e.getPopupAlign(), + w = v.point, + x = e.getPopupAlign(), M = {}; return ( e.isMouseEnterToShow() && (M.onMouseEnter = e.onPopupMouseEnter), @@ -243465,10 +243287,10 @@ object-assign prefixCls: n, destroyPopupOnHide: r, visible: _, - point: y && x, + point: y && w, className: i, action: a, - align: w, + align: x, onAlign: s, animation: u, getClassNameFromAlign: e.getPopupClassNameFromAlign @@ -243520,7 +243342,7 @@ object-assign }; Object(b.polyfill)(Ut); var Gt = Ut, - Kt = n(2), + Kt = n(4), $t = n.n(Kt); function Qt(e, t) { for (var n = 0; n < t.length; n++) { @@ -243697,7 +243519,7 @@ object-assign c = a.str, u = s ? ''.concat(n, '-input-invalid') : ''; return o.a.createElement('input', { - className: F()(''.concat(n, '-input'), u), + className: z()(''.concat(n, '-input'), u), ref: function(t) { e.refInput = t; }, @@ -243749,13 +243571,9 @@ object-assign }), tn(nn, 'defaultProps', { inputReadOnly: !1 }); var rn = nn, - on = n(100), + on = n(115), an = n.n(on); function sn(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function cn(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -243764,33 +243582,28 @@ object-assign Object.defineProperty(e, r.key, r); } } - function un(e, t) { - return !t || ('object' != typeof t && 'function' != typeof t) - ? fn(e) - : t; - } - function ln(e) { - return (ln = Object.setPrototypeOf + function cn(e) { + return (cn = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function fn(e) { + function un(e) { if (void 0 === e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return e; } - function dn(e, t) { - return (dn = + function ln(e, t) { + return (ln = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; })(e, t); } - function pn(e, t, n) { + function fn(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { @@ -243803,30 +243616,34 @@ object-assign e ); } - var hn = (function(e) { + var dn = (function(e) { function t() { var e, n; - sn(this, t); + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, t); for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) o[i] = arguments[i]; return ( - pn( - fn((n = un(this, (e = ln(t)).call.apply(e, [this].concat(o))))), - 'state', - { active: !1 } - ), - pn(fn(n), 'onSelect', function(e) { + (n = (function(e, t) { + return !t || ('object' != typeof t && 'function' != typeof t) + ? un(e) + : t; + })(this, (e = cn(t)).call.apply(e, [this].concat(o)))), + fn(un(n), 'state', { active: !1 }), + fn(un(n), 'onSelect', function(e) { var t = n.props; (0, t.onSelect)(t.type, e); }), - pn(fn(n), 'handleMouseEnter', function(e) { + fn(un(n), 'handleMouseEnter', function(e) { var t = n.props.onMouseEnter; n.setState({ active: !0 }), t(e); }), - pn(fn(n), 'handleMouseLeave', function() { + fn(un(n), 'handleMouseLeave', function() { n.setState({ active: !1 }); }), - pn(fn(n), 'saveList', function(e) { + fn(un(n), 'saveList', function(e) { n.list = e; }), n @@ -243842,7 +243659,7 @@ object-assign (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } })), - t && dn(e, t); + t && ln(e, t); })(t, e), (n = t), (r = [ @@ -243870,13 +243687,13 @@ object-assign a = t.onEsc; return n.map(function(t, n) { var s, - c = F()( - (pn( + c = z()( + (fn( (s = {}), ''.concat(i, '-select-option-selected'), r === n ), - pn( + fn( s, ''.concat(i, '-select-option-disabled'), t.disabled @@ -243939,9 +243756,9 @@ object-assign n = e.options, r = this.state.active; if (0 === n.length) return null; - var i = F()( + var i = z()( ''.concat(t, '-select'), - pn({}, ''.concat(t, '-select-active'), r) + fn({}, ''.concat(t, '-select-active'), r) ); return o.a.createElement( 'div', @@ -243958,12 +243775,12 @@ object-assign ); } } - ]) && cn(n.prototype, r), - i && cn(n, i), + ]) && sn(n.prototype, r), + i && sn(n, i), t ); })(r.Component); - pn(hn, 'propTypes', { + fn(dn, 'propTypes', { prefixCls: a.a.string, options: a.a.array, selectedIndex: a.a.number, @@ -243972,12 +243789,8 @@ object-assign onMouseEnter: a.a.func, onEsc: a.a.func }); - var gn = hn; - function mn(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); - } - function bn(e, t) { + var pn = dn; + function hn(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -243986,33 +243799,28 @@ object-assign Object.defineProperty(e, r.key, r); } } - function yn(e, t) { - return !t || ('object' != typeof t && 'function' != typeof t) - ? _n(e) - : t; - } - function vn(e) { - return (vn = Object.setPrototypeOf + function gn(e) { + return (gn = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function _n(e) { + function mn(e) { if (void 0 === e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return e; } - function xn(e, t) { - return (xn = + function bn(e, t) { + return (bn = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; })(e, t); } - function wn(e, t, n) { + function yn(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { @@ -244025,51 +243833,55 @@ object-assign e ); } - var Mn = function(e, t) { + var vn = function(e, t) { var n = ''.concat(e); e < 10 && (n = '0'.concat(e)); var r = !1; return t && t.indexOf(e) >= 0 && (r = !0), { value: n, disabled: r }; }, - kn = (function(e) { + _n = (function(e) { function t() { var e, n; - mn(this, t); + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, t); for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) o[i] = arguments[i]; return ( - wn( - _n((n = yn(this, (e = vn(t)).call.apply(e, [this].concat(o))))), - 'onItemChange', - function(e, t) { - var r = n.props, - o = r.onChange, - i = r.defaultOpenValue, - a = r.use12Hours, - s = r.value, - c = r.isAM, - u = r.onAmPmChange, - l = (s || i).clone(); - if ('hour' === e) - a - ? c - ? l.hour(+t % 12) - : l.hour((+t % 12) + 12) - : l.hour(+t); - else if ('minute' === e) l.minute(+t); - else if ('ampm' === e) { - var f = t.toUpperCase(); - a && - ('PM' === f && - l.hour() < 12 && - l.hour((l.hour() % 12) + 12), - 'AM' === f && l.hour() >= 12 && l.hour(l.hour() - 12)), - u(f); - } else l.second(+t); - o(l); - } - ), - wn(_n(n), 'onEnterSelectPanel', function(e) { + (n = (function(e, t) { + return !t || ('object' != typeof t && 'function' != typeof t) + ? mn(e) + : t; + })(this, (e = gn(t)).call.apply(e, [this].concat(o)))), + yn(mn(n), 'onItemChange', function(e, t) { + var r = n.props, + o = r.onChange, + i = r.defaultOpenValue, + a = r.use12Hours, + s = r.value, + c = r.isAM, + u = r.onAmPmChange, + l = (s || i).clone(); + if ('hour' === e) + a + ? c + ? l.hour(+t % 12) + : l.hour((+t % 12) + 12) + : l.hour(+t); + else if ('minute' === e) l.minute(+t); + else if ('ampm' === e) { + var f = t.toUpperCase(); + a && + ('PM' === f && + l.hour() < 12 && + l.hour((l.hour() % 12) + 12), + 'AM' === f && l.hour() >= 12 && l.hour(l.hour() - 12)), + u(f); + } else l.second(+t); + o(l); + }), + yn(mn(n), 'onEnterSelectPanel', function(e) { (0, n.props.onCurrentSelectPanelChange)(e); }), n @@ -244085,7 +243897,7 @@ object-assign (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } })), - t && xn(e, t); + t && bn(e, t); })(t, e), (n = t), (r = [ @@ -244113,10 +243925,10 @@ object-assign )), (f = e % 12 || 12)) : ((l = i), (f = e)), - o.a.createElement(gn, { + o.a.createElement(pn, { prefixCls: r, options: l.map(function(e) { - return Mn(e, d); + return vn(e, d); }), selectedIndex: l.indexOf(f), type: 'hour', @@ -244143,10 +243955,10 @@ object-assign l = n.onEsc; if (!c) return null; var f = a((u || s).hour()); - return o.a.createElement(gn, { + return o.a.createElement(pn, { prefixCls: r, options: i.map(function(e) { - return Mn(e, f); + return vn(e, f); }), selectedIndex: i.indexOf(e), type: 'minute', @@ -244173,10 +243985,10 @@ object-assign if (!s) return null; var f = u || c, d = a(f.hour(), f.minute()); - return o.a.createElement(gn, { + return o.a.createElement(pn, { prefixCls: r, options: i.map(function(e) { - return Mn(e, d); + return vn(e, d); }), selectedIndex: i.indexOf(e), type: 'second', @@ -244207,7 +244019,7 @@ object-assign return { value: e }; }), u = a ? 0 : 1; - return o.a.createElement(gn, { + return o.a.createElement(pn, { prefixCls: n, options: c, selectedIndex: u, @@ -244237,12 +244049,12 @@ object-assign ); } } - ]) && bn(n.prototype, r), - i && bn(n, i), + ]) && hn(n.prototype, r), + i && hn(n, i), t ); })(r.Component); - wn(kn, 'propTypes', { + yn(_n, 'propTypes', { format: a.a.string, defaultOpenValue: a.a.object, prefixCls: a.a.string, @@ -244263,8 +244075,8 @@ object-assign onEsc: a.a.func, isAM: a.a.bool }); - var Sn = kn; - function An(e, t) { + var wn = _n; + function xn(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); @@ -244276,11 +244088,368 @@ object-assign } return n; } + function Mn(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + function kn(e) { + return (kn = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(e) { + return e.__proto__ || Object.getPrototypeOf(e); + })(e); + } + function Sn(e) { + if (void 0 === e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return e; + } function On(e, t) { - if (!(e instanceof t)) - throw new TypeError('Cannot call a class as a function'); + return (On = + Object.setPrototypeOf || + function(e, t) { + return (e.__proto__ = t), e; + })(e, t); + } + function En(e, t, n) { + return ( + t in e + ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[t] = n), + e + ); + } + function An() {} + function Tn(e, t, n) { + for ( + var r = + arguments.length > 3 && void 0 !== arguments[3] + ? arguments[3] + : 1, + o = [], + i = 0; + i < e; + i += r + ) + (!t || t.indexOf(i) < 0 || !n) && o.push(i); + return o; + } + var Cn = (function(e) { + function t() { + var e, n; + !(function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + })(this, t); + for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) + o[i] = arguments[i]; + return ( + (n = (function(e, t) { + return !t || ('object' != typeof t && 'function' != typeof t) + ? Sn(e) + : t; + })(this, (e = kn(t)).call.apply(e, [this].concat(o)))), + En(Sn(n), 'state', {}), + En(Sn(n), 'onChange', function(e) { + var t = n.props.onChange; + n.setState({ value: e }), t(e); + }), + En(Sn(n), 'onAmPmChange', function(e) { + (0, n.props.onAmPmChange)(e); + }), + En(Sn(n), 'onCurrentSelectPanelChange', function(e) { + n.setState({ currentSelectPanel: e }); + }), + En(Sn(n), 'disabledHours', function() { + var e = n.props, + t = e.use12Hours, + r = (0, e.disabledHours)(); + return ( + t && + Array.isArray(r) && + (r = n.isAM() + ? r + .filter(function(e) { + return e < 12; + }) + .map(function(e) { + return 0 === e ? 12 : e; + }) + : r.map(function(e) { + return 12 === e ? 12 : e - 12; + })), + r + ); + }), + n + ); + } + var n, r, i; + return ( + (function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (e.prototype = Object.create(t && t.prototype, { + constructor: { value: e, writable: !0, configurable: !0 } + })), + t && On(e, t); + })(t, e), + (n = t), + (i = [ + { + key: 'getDerivedStateFromProps', + value: function(e, t) { + return 'value' in e + ? (function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}; + t % 2 + ? xn(Object(n), !0).forEach(function(t) { + En(e, t, n[t]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties( + e, + Object.getOwnPropertyDescriptors(n) + ) + : xn(Object(n)).forEach(function(t) { + Object.defineProperty( + e, + t, + Object.getOwnPropertyDescriptor(n, t) + ); + }); + } + return e; + })({}, t, { value: e.value }) + : null; + } + } + ]), + (r = [ + { + key: 'close', + value: function() { + (0, this.props.onEsc)(); + } + }, + { + key: 'isAM', + value: function() { + var e = this.props.defaultOpenValue, + t = this.state.value || e; + return t.hour() >= 0 && t.hour() < 12; + } + }, + { + key: 'render', + value: function() { + var e = this.props, + t = e.prefixCls, + n = e.className, + r = e.placeholder, + i = e.disabledMinutes, + a = e.disabledSeconds, + s = e.hideDisabledOptions, + c = e.showHour, + u = e.showMinute, + l = e.showSecond, + f = e.format, + d = e.defaultOpenValue, + p = e.clearText, + h = e.onEsc, + g = e.addon, + m = e.use12Hours, + b = e.focusOnOpen, + y = e.onKeyDown, + v = e.hourStep, + _ = e.minuteStep, + w = e.secondStep, + x = e.inputReadOnly, + M = e.clearIcon, + k = this.state, + S = k.value, + O = k.currentSelectPanel, + E = this.disabledHours(), + A = i(S ? S.hour() : null), + T = a(S ? S.hour() : null, S ? S.minute() : null), + C = Tn(24, E, s, v), + L = Tn(60, A, s, _), + P = Tn(60, T, s, w), + D = (function(e, t, n, r) { + var o = t.slice().sort(function(t, n) { + return Math.abs(e.hour() - t) - Math.abs(e.hour() - n); + })[0], + i = n.slice().sort(function(t, n) { + return ( + Math.abs(e.minute() - t) - Math.abs(e.minute() - n) + ); + })[0], + a = r.slice().sort(function(t, n) { + return ( + Math.abs(e.second() - t) - Math.abs(e.second() - n) + ); + })[0]; + return $t()( + '' + .concat(o, ':') + .concat(i, ':') + .concat(a), + 'HH:mm:ss' + ); + })(d, C, L, P); + return o.a.createElement( + 'div', + { className: z()(n, ''.concat(t, '-inner')) }, + o.a.createElement(rn, { + clearText: p, + prefixCls: t, + defaultOpenValue: D, + value: S, + currentSelectPanel: O, + onEsc: h, + format: f, + placeholder: r, + hourOptions: C, + minuteOptions: L, + secondOptions: P, + disabledHours: this.disabledHours, + disabledMinutes: i, + disabledSeconds: a, + onChange: this.onChange, + focusOnOpen: b, + onKeyDown: y, + inputReadOnly: x, + clearIcon: M + }), + o.a.createElement(wn, { + prefixCls: t, + value: S, + defaultOpenValue: D, + format: f, + onChange: this.onChange, + onAmPmChange: this.onAmPmChange, + showHour: c, + showMinute: u, + showSecond: l, + hourOptions: C, + minuteOptions: L, + secondOptions: P, + disabledHours: this.disabledHours, + disabledMinutes: i, + disabledSeconds: a, + onCurrentSelectPanelChange: this.onCurrentSelectPanelChange, + use12Hours: m, + onEsc: h, + isAM: this.isAM() + }), + g(this) + ); + } + } + ]) && Mn(n.prototype, r), + i && Mn(n, i), + t + ); + })(r.Component); + En(Cn, 'propTypes', { + clearText: a.a.string, + prefixCls: a.a.string, + className: a.a.string, + defaultOpenValue: a.a.object, + value: a.a.object, + placeholder: a.a.string, + format: a.a.string, + inputReadOnly: a.a.bool, + disabledHours: a.a.func, + disabledMinutes: a.a.func, + disabledSeconds: a.a.func, + hideDisabledOptions: a.a.bool, + onChange: a.a.func, + onAmPmChange: a.a.func, + onEsc: a.a.func, + showHour: a.a.bool, + showMinute: a.a.bool, + showSecond: a.a.bool, + use12Hours: a.a.bool, + hourStep: a.a.number, + minuteStep: a.a.number, + secondStep: a.a.number, + addon: a.a.func, + focusOnOpen: a.a.bool, + onKeyDown: a.a.func, + clearIcon: a.a.node + }), + En(Cn, 'defaultProps', { + prefixCls: 'rc-time-picker-panel', + onChange: An, + disabledHours: An, + disabledMinutes: An, + disabledSeconds: An, + defaultOpenValue: $t()(), + use12Hours: !1, + addon: An, + onKeyDown: An, + onAmPmChange: An, + inputReadOnly: !1 + }), + Object(b.polyfill)(Cn); + var Ln = Cn, + Pn = { adjustX: 1, adjustY: 1 }, + Dn = [0, 0], + jn = { + bottomLeft: { + points: ['tl', 'tl'], + overflow: Pn, + offset: [0, -3], + targetOffset: Dn + }, + bottomRight: { + points: ['tr', 'tr'], + overflow: Pn, + offset: [0, -3], + targetOffset: Dn + }, + topRight: { + points: ['br', 'br'], + overflow: Pn, + offset: [0, 3], + targetOffset: Dn + }, + topLeft: { + points: ['bl', 'bl'], + overflow: Pn, + offset: [0, 3], + targetOffset: Dn + } + }; + function zn(e, t) { + var n = Object.keys(e); + if (Object.getOwnPropertySymbols) { + var r = Object.getOwnPropertySymbols(e); + t && + (r = r.filter(function(t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable; + })), + n.push.apply(n, r); + } + return n; } - function En(e, t) { + function Nn(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; (r.enumerable = r.enumerable || !1), @@ -244289,33 +244458,28 @@ object-assign Object.defineProperty(e, r.key, r); } } - function Tn(e, t) { - return !t || ('object' != typeof t && 'function' != typeof t) - ? Ln(e) - : t; - } - function Cn(e) { - return (Cn = Object.setPrototypeOf + function Rn(e) { + return (Rn = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { return e.__proto__ || Object.getPrototypeOf(e); })(e); } - function Ln(e) { + function In(e) { if (void 0 === e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return e; } - function Pn(e, t) { - return (Pn = + function Fn(e, t) { + return (Fn = Object.setPrototypeOf || function(e, t) { return (e.__proto__ = t), e; })(e, t); } - function Dn(e, t, n) { + function qn(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { @@ -244328,368 +244492,11 @@ object-assign e ); } - function zn() {} - function Nn(e, t, n) { - for ( - var r = - arguments.length > 3 && void 0 !== arguments[3] - ? arguments[3] - : 1, - o = [], - i = 0; - i < e; - i += r - ) - (!t || t.indexOf(i) < 0 || !n) && o.push(i); - return o; - } - var jn = (function(e) { - function t() { - var e, n; - On(this, t); - for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) - o[i] = arguments[i]; - return ( - Dn( - Ln((n = Tn(this, (e = Cn(t)).call.apply(e, [this].concat(o))))), - 'state', - {} - ), - Dn(Ln(n), 'onChange', function(e) { - var t = n.props.onChange; - n.setState({ value: e }), t(e); - }), - Dn(Ln(n), 'onAmPmChange', function(e) { - (0, n.props.onAmPmChange)(e); - }), - Dn(Ln(n), 'onCurrentSelectPanelChange', function(e) { - n.setState({ currentSelectPanel: e }); - }), - Dn(Ln(n), 'disabledHours', function() { - var e = n.props, - t = e.use12Hours, - r = (0, e.disabledHours)(); - return ( - t && - Array.isArray(r) && - (r = n.isAM() - ? r - .filter(function(e) { - return e < 12; - }) - .map(function(e) { - return 0 === e ? 12 : e; - }) - : r.map(function(e) { - return 12 === e ? 12 : e - 12; - })), - r - ); - }), - n - ); - } - var n, r, i; - return ( - (function(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (e.prototype = Object.create(t && t.prototype, { - constructor: { value: e, writable: !0, configurable: !0 } - })), - t && Pn(e, t); - })(t, e), - (n = t), - (i = [ - { - key: 'getDerivedStateFromProps', - value: function(e, t) { - return 'value' in e - ? (function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}; - t % 2 - ? An(Object(n), !0).forEach(function(t) { - Dn(e, t, n[t]); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties( - e, - Object.getOwnPropertyDescriptors(n) - ) - : An(Object(n)).forEach(function(t) { - Object.defineProperty( - e, - t, - Object.getOwnPropertyDescriptor(n, t) - ); - }); - } - return e; - })({}, t, { value: e.value }) - : null; - } - } - ]), - (r = [ - { - key: 'close', - value: function() { - (0, this.props.onEsc)(); - } - }, - { - key: 'isAM', - value: function() { - var e = this.props.defaultOpenValue, - t = this.state.value || e; - return t.hour() >= 0 && t.hour() < 12; - } - }, - { - key: 'render', - value: function() { - var e = this.props, - t = e.prefixCls, - n = e.className, - r = e.placeholder, - i = e.disabledMinutes, - a = e.disabledSeconds, - s = e.hideDisabledOptions, - c = e.showHour, - u = e.showMinute, - l = e.showSecond, - f = e.format, - d = e.defaultOpenValue, - p = e.clearText, - h = e.onEsc, - g = e.addon, - m = e.use12Hours, - b = e.focusOnOpen, - y = e.onKeyDown, - v = e.hourStep, - _ = e.minuteStep, - x = e.secondStep, - w = e.inputReadOnly, - M = e.clearIcon, - k = this.state, - S = k.value, - A = k.currentSelectPanel, - O = this.disabledHours(), - E = i(S ? S.hour() : null), - T = a(S ? S.hour() : null, S ? S.minute() : null), - C = Nn(24, O, s, v), - L = Nn(60, E, s, _), - P = Nn(60, T, s, x), - D = (function(e, t, n, r) { - var o = t.slice().sort(function(t, n) { - return Math.abs(e.hour() - t) - Math.abs(e.hour() - n); - })[0], - i = n.slice().sort(function(t, n) { - return ( - Math.abs(e.minute() - t) - Math.abs(e.minute() - n) - ); - })[0], - a = r.slice().sort(function(t, n) { - return ( - Math.abs(e.second() - t) - Math.abs(e.second() - n) - ); - })[0]; - return $t()( - '' - .concat(o, ':') - .concat(i, ':') - .concat(a), - 'HH:mm:ss' - ); - })(d, C, L, P); - return o.a.createElement( - 'div', - { className: F()(n, ''.concat(t, '-inner')) }, - o.a.createElement(rn, { - clearText: p, - prefixCls: t, - defaultOpenValue: D, - value: S, - currentSelectPanel: A, - onEsc: h, - format: f, - placeholder: r, - hourOptions: C, - minuteOptions: L, - secondOptions: P, - disabledHours: this.disabledHours, - disabledMinutes: i, - disabledSeconds: a, - onChange: this.onChange, - focusOnOpen: b, - onKeyDown: y, - inputReadOnly: w, - clearIcon: M - }), - o.a.createElement(Sn, { - prefixCls: t, - value: S, - defaultOpenValue: D, - format: f, - onChange: this.onChange, - onAmPmChange: this.onAmPmChange, - showHour: c, - showMinute: u, - showSecond: l, - hourOptions: C, - minuteOptions: L, - secondOptions: P, - disabledHours: this.disabledHours, - disabledMinutes: i, - disabledSeconds: a, - onCurrentSelectPanelChange: this.onCurrentSelectPanelChange, - use12Hours: m, - onEsc: h, - isAM: this.isAM() - }), - g(this) - ); - } - } - ]) && En(n.prototype, r), - i && En(n, i), - t - ); - })(r.Component); - Dn(jn, 'propTypes', { - clearText: a.a.string, - prefixCls: a.a.string, - className: a.a.string, - defaultOpenValue: a.a.object, - value: a.a.object, - placeholder: a.a.string, - format: a.a.string, - inputReadOnly: a.a.bool, - disabledHours: a.a.func, - disabledMinutes: a.a.func, - disabledSeconds: a.a.func, - hideDisabledOptions: a.a.bool, - onChange: a.a.func, - onAmPmChange: a.a.func, - onEsc: a.a.func, - showHour: a.a.bool, - showMinute: a.a.bool, - showSecond: a.a.bool, - use12Hours: a.a.bool, - hourStep: a.a.number, - minuteStep: a.a.number, - secondStep: a.a.number, - addon: a.a.func, - focusOnOpen: a.a.bool, - onKeyDown: a.a.func, - clearIcon: a.a.node - }), - Dn(jn, 'defaultProps', { - prefixCls: 'rc-time-picker-panel', - onChange: zn, - disabledHours: zn, - disabledMinutes: zn, - disabledSeconds: zn, - defaultOpenValue: $t()(), - use12Hours: !1, - addon: zn, - onKeyDown: zn, - onAmPmChange: zn, - inputReadOnly: !1 - }), - Object(b.polyfill)(jn); - var Rn = jn, - In = { adjustX: 1, adjustY: 1 }, - Fn = [0, 0], - qn = { - bottomLeft: { - points: ['tl', 'tl'], - overflow: In, - offset: [0, -3], - targetOffset: Fn - }, - bottomRight: { - points: ['tr', 'tr'], - overflow: In, - offset: [0, -3], - targetOffset: Fn - }, - topRight: { - points: ['br', 'br'], - overflow: In, - offset: [0, 3], - targetOffset: Fn - }, - topLeft: { - points: ['bl', 'bl'], - overflow: In, - offset: [0, 3], - targetOffset: Fn - } - }; - function Bn(e, t) { - var n = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var r = Object.getOwnPropertySymbols(e); - t && - (r = r.filter(function(t) { - return Object.getOwnPropertyDescriptor(e, t).enumerable; - })), - n.push.apply(n, r); - } - return n; - } + function Bn() {} function Hn(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); - } - } - function Yn(e) { - return (Yn = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(e) { - return e.__proto__ || Object.getPrototypeOf(e); - })(e); - } - function Wn(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return e; - } - function Vn(e, t) { - return (Vn = - Object.setPrototypeOf || - function(e, t) { - return (e.__proto__ = t), e; - })(e, t); - } - function Un(e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e - ); - } - function Xn() {} - function Gn(e, t) { this[e] = t; } - var Kn = (function(e) { + var Yn = (function(e) { function t(e) { var n; !(function(e, t) { @@ -244698,29 +244505,29 @@ object-assign })(this, t), (n = (function(e, t) { return !t || ('object' != typeof t && 'function' != typeof t) - ? Wn(e) + ? In(e) : t; - })(this, Yn(t).call(this, e))), - Un(Wn(n), 'onPanelChange', function(e) { + })(this, Rn(t).call(this, e))), + qn(In(n), 'onPanelChange', function(e) { n.setValue(e); }), - Un(Wn(n), 'onAmPmChange', function(e) { + qn(In(n), 'onAmPmChange', function(e) { (0, n.props.onAmPmChange)(e); }), - Un(Wn(n), 'onClear', function(e) { + qn(In(n), 'onClear', function(e) { e.stopPropagation(), n.setValue(null), n.setOpen(!1); }), - Un(Wn(n), 'onVisibleChange', function(e) { + qn(In(n), 'onVisibleChange', function(e) { n.setOpen(e); }), - Un(Wn(n), 'onEsc', function() { + qn(In(n), 'onEsc', function() { n.setOpen(!1), n.focus(); }), - Un(Wn(n), 'onKeyDown', function(e) { + qn(In(n), 'onKeyDown', function(e) { 40 === e.keyCode && n.setOpen(!0); }), - (n.saveInputRef = Gn.bind(Wn(n), 'picker')), - (n.savePanelRef = Gn.bind(Wn(n), 'panelInstance')); + (n.saveInputRef = Hn.bind(In(n), 'picker')), + (n.savePanelRef = Hn.bind(In(n), 'panelInstance')); var r = e.defaultOpen, o = e.defaultValue, i = e.open, @@ -244739,7 +244546,7 @@ object-assign (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } })), - t && Vn(e, t); + t && Fn(e, t); })(t, e), (n = t), (i = [ @@ -244755,15 +244562,15 @@ object-assign for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 - ? Bn(Object(n), !0).forEach(function(t) { - Un(e, t, n[t]); + ? zn(Object(n), !0).forEach(function(t) { + qn(e, t, n[t]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, Object.getOwnPropertyDescriptors(n) ) - : Bn(Object(n)).forEach(function(t) { + : zn(Object(n)).forEach(function(t) { Object.defineProperty( e, t, @@ -244835,13 +244642,13 @@ object-assign y = e.hourStep, v = e.minuteStep, _ = e.secondStep, - x = e.clearIcon, - w = this.state.value; - return o.a.createElement(Rn, { + w = e.clearIcon, + x = this.state.value; + return o.a.createElement(Ln, { clearText: p, prefixCls: ''.concat(t, '-panel'), ref: this.savePanelRef, - value: w, + value: x, inputReadOnly: c, onChange: this.onPanelChange, onAmPmChange: this.onAmPmChange, @@ -244863,7 +244670,7 @@ object-assign addon: h, focusOnOpen: m, onKeyDown: b, - clearIcon: x + clearIcon: w }); } }, @@ -244883,9 +244690,9 @@ object-assign n && (s += 1), r && (s += 1), o && (s += 1), - F()( + z()( a, - Un( + qn( {}, ''.concat(i, '-panel-narrow'), !((t && n && r) || o) @@ -244978,8 +244785,8 @@ object-assign y = e.inputIcon, v = e.popupStyle, _ = this.state, - x = _.open, - w = _.value, + w = _.open, + x = _.value, M = this.getPopupClassName(); return o.a.createElement( Gt, @@ -244989,18 +244796,18 @@ object-assign popupStyle: v, popup: this.getPanelElement(), popupAlign: i, - builtinPlacements: qn, + builtinPlacements: jn, popupPlacement: r, action: s ? [] : ['click'], destroyPopupOnHide: !0, getPopupContainer: f, popupTransitionName: c, - popupVisible: x, + popupVisible: w, onPopupVisibleChange: this.onVisibleChange }, o.a.createElement( 'span', - { className: F()(t, l), style: u }, + { className: z()(t, l), style: u }, o.a.createElement('input', { className: ''.concat(t, '-input'), ref: this.saveInputRef, @@ -245009,12 +244816,12 @@ object-assign name: d, onKeyDown: this.onKeyDown, disabled: s, - value: (w && w.format(this.getFormat())) || '', + value: (x && x.format(this.getFormat())) || '', autoComplete: p, onFocus: h, onBlur: g, autoFocus: m, - onChange: Xn, + onChange: Bn, readOnly: !!b, id: a }), @@ -245027,12 +244834,12 @@ object-assign ); } } - ]) && Hn(n.prototype, r), - i && Hn(n, i), + ]) && Nn(n.prototype, r), + i && Nn(n, i), t ); })(r.Component); - Un(Kn, 'propTypes', { + qn(Yn, 'propTypes', { prefixCls: a.a.string, clearText: a.a.string, value: a.a.object, @@ -245080,7 +244887,7 @@ object-assign inputIcon: a.a.node, clearIcon: a.a.node }), - Un(Kn, 'defaultProps', { + qn(Yn, 'defaultProps', { clearText: 'clear', prefixCls: 'rc-time-picker', defaultOpen: !1, @@ -245095,41 +244902,32 @@ object-assign showHour: !0, showMinute: !0, showSecond: !0, - disabledHours: Xn, - disabledMinutes: Xn, - disabledSeconds: Xn, + disabledHours: Bn, + disabledMinutes: Bn, + disabledSeconds: Bn, hideDisabledOptions: !1, placement: 'bottomLeft', - onChange: Xn, - onAmPmChange: Xn, - onOpen: Xn, - onClose: Xn, - onFocus: Xn, - onBlur: Xn, - addon: Xn, + onChange: Bn, + onAmPmChange: Bn, + onOpen: Bn, + onClose: Bn, + onFocus: Bn, + onBlur: Bn, + addon: Bn, use12Hours: !1, focusOnOpen: !1, - onKeyDown: Xn + onKeyDown: Bn }), - Object(b.polyfill)(Kn); - var $n = Kn; + Object(b.polyfill)(Yn); + var Wn = Yn; + n.d(t, 'default', function() { + return Wn; + }); }, function(e, t, n) { 'use strict'; - n.r(t), - n.d(t, 'Provider', function() { - return l; - }), - n.d(t, 'connectAdvanced', function() { - return y; - }), - n.d(t, 'ReactReduxContext', function() { - return c; - }), - n.d(t, 'connect', function() { - return X; - }); - var r = n(31), + n.r(t); + var r = n(39), o = n(0), i = n.n(o), a = n(1), @@ -245188,15 +244986,16 @@ object-assign context: s.a.object, children: s.a.any }; - var l = u; - var f = n(6), - d = n(15), - p = n(44), - h = n.n(p), - g = n(82), - m = n.n(g), - b = n(78); - function y(e, t) { + var l = u, + f = n(2), + d = n(5), + p = n(25), + h = n(57), + g = n.n(h), + m = n(38), + b = n.n(m), + y = n(92); + function v(e, t) { void 0 === t && (t = {}); var n = t, a = n.getDisplayName, @@ -245208,19 +245007,19 @@ object-assign : a, u = n.methodName, l = void 0 === u ? 'connectAdvanced' : u, - p = n.renderCountProp, - g = void 0 === p ? void 0 : p, - y = n.shouldHandleStateChanges, - v = void 0 === y || y, - _ = n.storeKey, - x = void 0 === _ ? 'store' : _, - w = n.withRef, - M = void 0 !== w && w, - k = n.forwardRef, - S = void 0 !== k && k, - A = n.context, - O = void 0 === A ? c : A, - E = Object(d.a)(n, [ + h = n.renderCountProp, + m = void 0 === h ? void 0 : h, + v = n.shouldHandleStateChanges, + _ = void 0 === v || v, + w = n.storeKey, + x = void 0 === w ? 'store' : w, + M = n.withRef, + k = void 0 !== M && M, + S = n.forwardRef, + O = void 0 !== S && S, + E = n.context, + A = void 0 === E ? c : E, + T = Object(p.a)(n, [ 'getDisplayName', 'methodName', 'renderCountProp', @@ -245230,77 +245029,71 @@ object-assign 'forwardRef', 'context' ]); - m()( - void 0 === g, + b()( + void 0 === m, 'renderCountProp is removed. render counting is built into the latest React dev tools profiling extension' ), - m()( - !M, + b()( + !k, 'withRef is removed. To access the wrapped instance, use a ref on the connected component' ); - var T = + var C = "To use a custom Redux store for specific components, create a custom React context with React.createContext(), and pass the context object to React Redux's Provider and specific components like: . You may also pass a {context : MyContext} option to connect"; - m()( + b()( 'store' === x, - 'storeKey has been removed and does not do anything. ' + T + 'storeKey has been removed and does not do anything. ' + C ); - var C = O; + var L = A; return function(t) { var n = t.displayName || t.name || 'Component', a = s(n), - c = Object(f.a)({}, E, { + c = Object(d.a)({}, T, { getDisplayName: s, methodName: l, - renderCountProp: g, - shouldHandleStateChanges: v, + renderCountProp: m, + shouldHandleStateChanges: _, storeKey: x, displayName: a, wrappedComponentName: n, WrappedComponent: t }), - u = E.pure, - d = o.Component; - u && (d = o.PureComponent); - var p = (function(n) { + u = T.pure, + p = o.Component; + u && (p = o.PureComponent); + var h = (function(n) { function o(t) { - var r, o, a, s, c, l, d, p, h, g, b; + var r, o, a, s, c, l, p, h, g, m, y; return ( (r = n.call(this, t) || this), - m()( - S ? !t.wrapperProps[x] : !t[x], + b()( + O ? !t.wrapperProps[x] : !t[x], 'Passing redux store in props has been removed and does not do anything. ' + - T + C ), (r.selectDerivedProps = function(t, n, r, i) { if (u && o === n && a === t) return s; (r === c && l === i) || - ((c = r), (l = i), (d = e(r.dispatch, i))), + ((c = r), (l = i), (p = e(r.dispatch, i))), (o = n), (a = t); - var f = d(t, n); + var f = p(t, n); return (s = f); }), (r.selectChildElement = function(e, t, n) { return ( - (t === p && n === h && b === e) || - ((p = t), - (h = n), - (b = e), - (g = i.a.createElement( + (t === h && n === g && y === e) || + ((h = t), + (g = n), + (y = e), + (m = i.a.createElement( e, - Object(f.a)({}, t, { ref: n }) + Object(d.a)({}, t, { ref: n }) ))), - g + m ); }), (r.indirectRenderWrappedComponent = r.indirectRenderWrappedComponent.bind( - (function(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return e; - })(r) + Object(f.a)(r) )), r ); @@ -245312,7 +245105,7 @@ object-assign return this.renderWrappedComponent(e); }), (s.renderWrappedComponent = function(e) { - m()( + b()( e, 'Could not find "store" in the context of "' + a + @@ -245324,7 +245117,7 @@ object-assign r = e.storeState, o = e.store, i = this.props; - S && + O && ((i = this.props.wrapperProps), (n = this.props.forwardedRef)); var s = this.selectDerivedProps(r, i, o, c); @@ -245334,11 +245127,11 @@ object-assign var e = this.props.context && this.props.context.Consumer && - Object(b.isContextConsumer)( + Object(y.isContextConsumer)( i.a.createElement(this.props.context.Consumer, null) ) ? this.props.context - : C; + : L; return i.a.createElement( e.Consumer, null, @@ -245347,24 +245140,24 @@ object-assign }), o ); - })(d); - if (((p.WrappedComponent = t), (p.displayName = a), S)) { - var y = i.a.forwardRef(function(e, t) { - return i.a.createElement(p, { wrapperProps: e, forwardedRef: t }); + })(p); + if (((h.WrappedComponent = t), (h.displayName = a), O)) { + var v = i.a.forwardRef(function(e, t) { + return i.a.createElement(h, { wrapperProps: e, forwardedRef: t }); }); - return (y.displayName = a), (y.WrappedComponent = t), h()(y, t); + return (v.displayName = a), (v.WrappedComponent = t), g()(v, t); } - return h()(p, t); + return g()(h, t); }; } - var v = Object.prototype.hasOwnProperty; - function _(e, t) { + var _ = Object.prototype.hasOwnProperty; + function w(e, t) { return e === t ? 0 !== e || 0 !== t || 1 / e == 1 / t : e != e && t != t; } function x(e, t) { - if (_(e, t)) return !0; + if (w(e, t)) return !0; if ( 'object' != typeof e || null === e || @@ -245376,11 +245169,11 @@ object-assign r = Object.keys(t); if (n.length !== r.length) return !1; for (var o = 0; o < n.length; o++) - if (!v.call(t, n[o]) || !_(e[n[o]], t[n[o]])) return !1; + if (!_.call(t, n[o]) || !w(e[n[o]], t[n[o]])) return !1; return !0; } - var w = n(28); - function M(e) { + var M = n(41); + function k(e) { return function(t, n) { var r = e(t, n); function o() { @@ -245389,12 +245182,12 @@ object-assign return (o.dependsOnOwnProps = !1), o; }; } - function k(e) { + function S(e) { return null !== e.dependsOnOwnProps && void 0 !== e.dependsOnOwnProps ? Boolean(e.dependsOnOwnProps) : 1 !== e.length; } - function S(e, t) { + function O(e, t) { return function(t, n) { n.displayName; var r = function(e, t) { @@ -245403,12 +245196,12 @@ object-assign return ( (r.dependsOnOwnProps = !0), (r.mapToProps = function(t, n) { - (r.mapToProps = e), (r.dependsOnOwnProps = k(e)); + (r.mapToProps = e), (r.dependsOnOwnProps = S(e)); var o = r(t, n); return ( 'function' == typeof o && ((r.mapToProps = o), - (r.dependsOnOwnProps = k(o)), + (r.dependsOnOwnProps = S(o)), (o = r(t, n))), o ); @@ -245417,41 +245210,41 @@ object-assign ); }; } - var A = [ + var E = [ function(e) { - return 'function' == typeof e ? S(e) : void 0; + return 'function' == typeof e ? O(e) : void 0; }, function(e) { return e ? void 0 - : M(function(e) { + : k(function(e) { return { dispatch: e }; }); }, function(e) { return e && 'object' == typeof e - ? M(function(t) { - return Object(w.bindActionCreators)(e, t); + ? k(function(t) { + return Object(M.bindActionCreators)(e, t); }) : void 0; } ]; - var O = [ + var A = [ function(e) { - return 'function' == typeof e ? S(e) : void 0; + return 'function' == typeof e ? O(e) : void 0; }, function(e) { return e ? void 0 - : M(function() { + : k(function() { return {}; }); } ]; - function E(e, t, n) { - return Object(f.a)({}, n, e, t); + function T(e, t, n) { + return Object(d.a)({}, n, e, t); } - var T = [ + var C = [ function(e) { return 'function' == typeof e ? (function(e) { @@ -245475,16 +245268,16 @@ object-assign return e ? void 0 : function() { - return E; + return T; }; } ]; - function C(e, t, n, r) { + function L(e, t, n, r) { return function(o, i) { return n(e(o, i), t(r, i), i); }; } - function L(e, t, n, r, o) { + function P(e, t, n, r, o) { var i, a, s, @@ -245529,11 +245322,11 @@ object-assign u); }; } - function P(e, t) { + function D(e, t) { var n = t.initMapStateToProps, r = t.initMapDispatchToProps, o = t.initMergeProps, - i = Object(d.a)(t, [ + i = Object(p.a)(t, [ 'initMapStateToProps', 'initMapDispatchToProps', 'initMergeProps' @@ -245541,9 +245334,9 @@ object-assign a = n(e, i), s = r(e, i), c = o(e, i); - return (i.pure ? L : C)(a, s, c, e, i); + return (i.pure ? P : L)(a, s, c, e, i); } - function D(e, t, n) { + function j(e, t, n) { for (var r = t.length - 1; r >= 0; r--) { var o = t[r](e); if (o) return o; @@ -245564,7 +245357,6 @@ object-assign return e === t; } var N, - j, R, I, F, @@ -245575,17 +245367,18 @@ object-assign W, V, U, - X = - ((R = (j = void 0 === N ? {} : N).connectHOC), - (I = void 0 === R ? y : R), - (F = j.mapStateToPropsFactories), - (q = void 0 === F ? O : F), - (B = j.mapDispatchToPropsFactories), - (H = void 0 === B ? A : B), - (Y = j.mergePropsFactories), - (W = void 0 === Y ? T : Y), - (V = j.selectorFactory), - (U = void 0 === V ? P : V), + X, + G = + ((I = (R = void 0 === N ? {} : N).connectHOC), + (F = void 0 === I ? v : I), + (q = R.mapStateToPropsFactories), + (B = void 0 === q ? A : q), + (H = R.mapDispatchToPropsFactories), + (Y = void 0 === H ? E : H), + (W = R.mergePropsFactories), + (V = void 0 === W ? C : W), + (U = R.selectorFactory), + (X = void 0 === U ? D : U), function(e, t, n, r) { void 0 === r && (r = {}); var o = r, @@ -245595,23 +245388,23 @@ object-assign c = void 0 === s ? z : s, u = o.areOwnPropsEqual, l = void 0 === u ? x : u, - p = o.areStatePropsEqual, - h = void 0 === p ? x : p, + f = o.areStatePropsEqual, + h = void 0 === f ? x : f, g = o.areMergedPropsEqual, m = void 0 === g ? x : g, - b = Object(d.a)(o, [ + b = Object(p.a)(o, [ 'pure', 'areStatesEqual', 'areOwnPropsEqual', 'areStatePropsEqual', 'areMergedPropsEqual' ]), - y = D(e, q, 'mapStateToProps'), - v = D(t, H, 'mapDispatchToProps'), - _ = D(n, W, 'mergeProps'); - return I( - U, - Object(f.a)( + y = j(e, B, 'mapStateToProps'), + v = j(t, Y, 'mapDispatchToProps'), + _ = j(n, V, 'mergeProps'); + return F( + X, + Object(d.a)( { methodName: 'connect', getDisplayName: function(e) { @@ -245631,416 +245424,22 @@ object-assign ) ); }); - }, - function(e, t, n) { - 'use strict'; - n.r(t), - n.d(t, 'v1', function() { - return p; - }), - n.d(t, 'v3', function() { - return x; + n.d(t, 'Provider', function() { + return l; + }), + n.d(t, 'connectAdvanced', function() { + return v; }), - n.d(t, 'v4', function() { - return w; + n.d(t, 'ReactReduxContext', function() { + return c; }), - n.d(t, 'v5', function() { - return S; + n.d(t, 'connect', function() { + return G; }); - var r = - ('undefined' != typeof crypto && - crypto.getRandomValues && - crypto.getRandomValues.bind(crypto)) || - ('undefined' != typeof msCrypto && - 'function' == typeof msCrypto.getRandomValues && - msCrypto.getRandomValues.bind(msCrypto)), - o = new Uint8Array(16); - function i() { - if (!r) - throw new Error( - 'crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported' - ); - return r(o); - } - for (var a = [], s = 0; s < 256; ++s) - a[s] = (s + 256).toString(16).substr(1); - var c, - u, - l = function(e, t) { - var n = t || 0, - r = a; - return [ - r[e[n++]], - r[e[n++]], - r[e[n++]], - r[e[n++]], - '-', - r[e[n++]], - r[e[n++]], - '-', - r[e[n++]], - r[e[n++]], - '-', - r[e[n++]], - r[e[n++]], - '-', - r[e[n++]], - r[e[n++]], - r[e[n++]], - r[e[n++]], - r[e[n++]], - r[e[n++]] - ].join(''); - }, - f = 0, - d = 0; - var p = function(e, t, n) { - var r = (t && n) || 0, - o = t || [], - a = (e = e || {}).node || c, - s = void 0 !== e.clockseq ? e.clockseq : u; - if (null == a || null == s) { - var p = e.random || (e.rng || i)(); - null == a && (a = c = [1 | p[0], p[1], p[2], p[3], p[4], p[5]]), - null == s && (s = u = 16383 & ((p[6] << 8) | p[7])); - } - var h = void 0 !== e.msecs ? e.msecs : new Date().getTime(), - g = void 0 !== e.nsecs ? e.nsecs : d + 1, - m = h - f + (g - d) / 1e4; - if ( - (m < 0 && void 0 === e.clockseq && (s = (s + 1) & 16383), - (m < 0 || h > f) && void 0 === e.nsecs && (g = 0), - g >= 1e4) - ) - throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); - (f = h), (d = g), (u = s); - var b = (1e4 * (268435455 & (h += 122192928e5)) + g) % 4294967296; - (o[r++] = (b >>> 24) & 255), - (o[r++] = (b >>> 16) & 255), - (o[r++] = (b >>> 8) & 255), - (o[r++] = 255 & b); - var y = ((h / 4294967296) * 1e4) & 268435455; - (o[r++] = (y >>> 8) & 255), - (o[r++] = 255 & y), - (o[r++] = ((y >>> 24) & 15) | 16), - (o[r++] = (y >>> 16) & 255), - (o[r++] = (s >>> 8) | 128), - (o[r++] = 255 & s); - for (var v = 0; v < 6; ++v) o[r + v] = a[v]; - return t || l(o); - }; - var h = function(e, t, n) { - var r = function(e, r, o, i) { - var a = (o && i) || 0; - if ( - ('string' == typeof e && - (e = (function(e) { - e = unescape(encodeURIComponent(e)); - for (var t = new Array(e.length), n = 0; n < e.length; n++) - t[n] = e.charCodeAt(n); - return t; - })(e)), - 'string' == typeof r && - (r = (function(e) { - var t = []; - return ( - e.replace(/[a-fA-F0-9]{2}/g, function(e) { - t.push(parseInt(e, 16)); - }), - t - ); - })(r)), - !Array.isArray(e)) - ) - throw TypeError('value must be an array of bytes'); - if (!Array.isArray(r) || 16 !== r.length) - throw TypeError( - 'namespace must be uuid string or an Array of 16 byte values' - ); - var s = n(r.concat(e)); - if (((s[6] = (15 & s[6]) | t), (s[8] = (63 & s[8]) | 128), o)) - for (var c = 0; c < 16; ++c) o[a + c] = s[c]; - return o || l(s); - }; - try { - r.name = e; - } catch (e) {} - return ( - (r.DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'), - (r.URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'), - r - ); - }; - function g(e, t) { - var n = (65535 & e) + (65535 & t); - return (((e >> 16) + (t >> 16) + (n >> 16)) << 16) | (65535 & n); - } - function m(e, t, n, r, o, i) { - return g(((a = g(g(t, e), g(r, i))) << (s = o)) | (a >>> (32 - s)), n); - var a, s; - } - function b(e, t, n, r, o, i, a) { - return m((t & n) | (~t & r), e, t, o, i, a); - } - function y(e, t, n, r, o, i, a) { - return m((t & r) | (n & ~r), e, t, o, i, a); - } - function v(e, t, n, r, o, i, a) { - return m(t ^ n ^ r, e, t, o, i, a); - } - function _(e, t, n, r, o, i, a) { - return m(n ^ (t | ~r), e, t, o, i, a); - } - var x = h('v3', 48, function(e) { - if ('string' == typeof e) { - var t = unescape(encodeURIComponent(e)); - e = new Array(t.length); - for (var n = 0; n < t.length; n++) e[n] = t.charCodeAt(n); - } - return (function(e) { - var t, - n, - r, - o = [], - i = 32 * e.length; - for (t = 0; t < i; t += 8) - (n = (e[t >> 5] >>> t % 32) & 255), - (r = parseInt( - '0123456789abcdef'.charAt((n >>> 4) & 15) + - '0123456789abcdef'.charAt(15 & n), - 16 - )), - o.push(r); - return o; - })( - (function(e, t) { - var n, r, o, i, a; - (e[t >> 5] |= 128 << t % 32), (e[14 + (((t + 64) >>> 9) << 4)] = t); - var s = 1732584193, - c = -271733879, - u = -1732584194, - l = 271733878; - for (n = 0; n < e.length; n += 16) - (r = s), - (o = c), - (i = u), - (a = l), - (s = b(s, c, u, l, e[n], 7, -680876936)), - (l = b(l, s, c, u, e[n + 1], 12, -389564586)), - (u = b(u, l, s, c, e[n + 2], 17, 606105819)), - (c = b(c, u, l, s, e[n + 3], 22, -1044525330)), - (s = b(s, c, u, l, e[n + 4], 7, -176418897)), - (l = b(l, s, c, u, e[n + 5], 12, 1200080426)), - (u = b(u, l, s, c, e[n + 6], 17, -1473231341)), - (c = b(c, u, l, s, e[n + 7], 22, -45705983)), - (s = b(s, c, u, l, e[n + 8], 7, 1770035416)), - (l = b(l, s, c, u, e[n + 9], 12, -1958414417)), - (u = b(u, l, s, c, e[n + 10], 17, -42063)), - (c = b(c, u, l, s, e[n + 11], 22, -1990404162)), - (s = b(s, c, u, l, e[n + 12], 7, 1804603682)), - (l = b(l, s, c, u, e[n + 13], 12, -40341101)), - (u = b(u, l, s, c, e[n + 14], 17, -1502002290)), - (c = b(c, u, l, s, e[n + 15], 22, 1236535329)), - (s = y(s, c, u, l, e[n + 1], 5, -165796510)), - (l = y(l, s, c, u, e[n + 6], 9, -1069501632)), - (u = y(u, l, s, c, e[n + 11], 14, 643717713)), - (c = y(c, u, l, s, e[n], 20, -373897302)), - (s = y(s, c, u, l, e[n + 5], 5, -701558691)), - (l = y(l, s, c, u, e[n + 10], 9, 38016083)), - (u = y(u, l, s, c, e[n + 15], 14, -660478335)), - (c = y(c, u, l, s, e[n + 4], 20, -405537848)), - (s = y(s, c, u, l, e[n + 9], 5, 568446438)), - (l = y(l, s, c, u, e[n + 14], 9, -1019803690)), - (u = y(u, l, s, c, e[n + 3], 14, -187363961)), - (c = y(c, u, l, s, e[n + 8], 20, 1163531501)), - (s = y(s, c, u, l, e[n + 13], 5, -1444681467)), - (l = y(l, s, c, u, e[n + 2], 9, -51403784)), - (u = y(u, l, s, c, e[n + 7], 14, 1735328473)), - (c = y(c, u, l, s, e[n + 12], 20, -1926607734)), - (s = v(s, c, u, l, e[n + 5], 4, -378558)), - (l = v(l, s, c, u, e[n + 8], 11, -2022574463)), - (u = v(u, l, s, c, e[n + 11], 16, 1839030562)), - (c = v(c, u, l, s, e[n + 14], 23, -35309556)), - (s = v(s, c, u, l, e[n + 1], 4, -1530992060)), - (l = v(l, s, c, u, e[n + 4], 11, 1272893353)), - (u = v(u, l, s, c, e[n + 7], 16, -155497632)), - (c = v(c, u, l, s, e[n + 10], 23, -1094730640)), - (s = v(s, c, u, l, e[n + 13], 4, 681279174)), - (l = v(l, s, c, u, e[n], 11, -358537222)), - (u = v(u, l, s, c, e[n + 3], 16, -722521979)), - (c = v(c, u, l, s, e[n + 6], 23, 76029189)), - (s = v(s, c, u, l, e[n + 9], 4, -640364487)), - (l = v(l, s, c, u, e[n + 12], 11, -421815835)), - (u = v(u, l, s, c, e[n + 15], 16, 530742520)), - (c = v(c, u, l, s, e[n + 2], 23, -995338651)), - (s = _(s, c, u, l, e[n], 6, -198630844)), - (l = _(l, s, c, u, e[n + 7], 10, 1126891415)), - (u = _(u, l, s, c, e[n + 14], 15, -1416354905)), - (c = _(c, u, l, s, e[n + 5], 21, -57434055)), - (s = _(s, c, u, l, e[n + 12], 6, 1700485571)), - (l = _(l, s, c, u, e[n + 3], 10, -1894986606)), - (u = _(u, l, s, c, e[n + 10], 15, -1051523)), - (c = _(c, u, l, s, e[n + 1], 21, -2054922799)), - (s = _(s, c, u, l, e[n + 8], 6, 1873313359)), - (l = _(l, s, c, u, e[n + 15], 10, -30611744)), - (u = _(u, l, s, c, e[n + 6], 15, -1560198380)), - (c = _(c, u, l, s, e[n + 13], 21, 1309151649)), - (s = _(s, c, u, l, e[n + 4], 6, -145523070)), - (l = _(l, s, c, u, e[n + 11], 10, -1120210379)), - (u = _(u, l, s, c, e[n + 2], 15, 718787259)), - (c = _(c, u, l, s, e[n + 9], 21, -343485551)), - (s = g(s, r)), - (c = g(c, o)), - (u = g(u, i)), - (l = g(l, a)); - return [s, c, u, l]; - })( - (function(e) { - var t, - n = []; - for (n[(e.length >> 2) - 1] = void 0, t = 0; t < n.length; t += 1) - n[t] = 0; - var r = 8 * e.length; - for (t = 0; t < r; t += 8) - n[t >> 5] |= (255 & e[t / 8]) << t % 32; - return n; - })(e), - 8 * e.length - ) - ); - }); - var w = function(e, t, n) { - var r = (t && n) || 0; - 'string' == typeof e && - ((t = 'binary' === e ? new Array(16) : null), (e = null)); - var o = (e = e || {}).random || (e.rng || i)(); - if (((o[6] = (15 & o[6]) | 64), (o[8] = (63 & o[8]) | 128), t)) - for (var a = 0; a < 16; ++a) t[r + a] = o[a]; - return t || l(o); - }; - function M(e, t, n, r) { - switch (e) { - case 0: - return (t & n) ^ (~t & r); - case 1: - return t ^ n ^ r; - case 2: - return (t & n) ^ (t & r) ^ (n & r); - case 3: - return t ^ n ^ r; - } - } - function k(e, t) { - return (e << t) | (e >>> (32 - t)); - } - var S = h('v5', 80, function(e) { - var t = [1518500249, 1859775393, 2400959708, 3395469782], - n = [1732584193, 4023233417, 2562383102, 271733878, 3285377520]; - if ('string' == typeof e) { - var r = unescape(encodeURIComponent(e)); - e = new Array(r.length); - for (var o = 0; o < r.length; o++) e[o] = r.charCodeAt(o); - } - e.push(128); - var i = e.length / 4 + 2, - a = Math.ceil(i / 16), - s = new Array(a); - for (o = 0; o < a; o++) { - s[o] = new Array(16); - for (var c = 0; c < 16; c++) - s[o][c] = - (e[64 * o + 4 * c] << 24) | - (e[64 * o + 4 * c + 1] << 16) | - (e[64 * o + 4 * c + 2] << 8) | - e[64 * o + 4 * c + 3]; - } - for ( - s[a - 1][14] = (8 * (e.length - 1)) / Math.pow(2, 32), - s[a - 1][14] = Math.floor(s[a - 1][14]), - s[a - 1][15] = (8 * (e.length - 1)) & 4294967295, - o = 0; - o < a; - o++ - ) { - for (var u = new Array(80), l = 0; l < 16; l++) u[l] = s[o][l]; - for (l = 16; l < 80; l++) - u[l] = k(u[l - 3] ^ u[l - 8] ^ u[l - 14] ^ u[l - 16], 1); - var f = n[0], - d = n[1], - p = n[2], - h = n[3], - g = n[4]; - for (l = 0; l < 80; l++) { - var m = Math.floor(l / 20), - b = (k(f, 5) + M(m, d, p, h) + g + t[m] + u[l]) >>> 0; - (g = h), (h = p), (p = k(d, 30) >>> 0), (d = f), (f = b); - } - (n[0] = (n[0] + f) >>> 0), - (n[1] = (n[1] + d) >>> 0), - (n[2] = (n[2] + p) >>> 0), - (n[3] = (n[3] + h) >>> 0), - (n[4] = (n[4] + g) >>> 0); - } - return [ - (n[0] >> 24) & 255, - (n[0] >> 16) & 255, - (n[0] >> 8) & 255, - 255 & n[0], - (n[1] >> 24) & 255, - (n[1] >> 16) & 255, - (n[1] >> 8) & 255, - 255 & n[1], - (n[2] >> 24) & 255, - (n[2] >> 16) & 255, - (n[2] >> 8) & 255, - 255 & n[2], - (n[3] >> 24) & 255, - (n[3] >> 16) & 255, - (n[3] >> 8) & 255, - 255 & n[3], - (n[4] >> 24) & 255, - (n[4] >> 16) & 255, - (n[4] >> 8) & 255, - 255 & n[4] - ]; - }); }, function(e, t, n) { 'use strict'; - n.r(t), - n.d(t, 'CANCEL', function() { - return o; - }), - n.d(t, 'SAGA_LOCATION', function() { - return h; - }), - n.d(t, 'buffers', function() { - return X; - }), - n.d(t, 'detach', function() { - return K; - }), - n.d(t, 'END', function() { - return pe; - }), - n.d(t, 'channel', function() { - return ge; - }), - n.d(t, 'eventChannel', function() { - return me; - }), - n.d(t, 'isEnd', function() { - return he; - }), - n.d(t, 'multicastChannel', function() { - return be; - }), - n.d(t, 'runSaga', function() { - return De; - }), - n.d(t, 'stdChannel', function() { - return ye; - }); + n.r(t); var r = function(e) { return '@@redux-saga/' + e; }, @@ -246054,27 +245453,40 @@ object-assign f = r('TASK'), d = r('TASK_CANCEL'), p = r('TERMINATE'), - h = r('LOCATION'), - g = n(6), - m = n(15), - b = function(e) { + h = r('LOCATION'); + function g() { + return (g = + Object.assign || + function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); + } + return e; + }).apply(this, arguments); + } + var m = function(e) { return null == e; }, - y = function(e) { + b = function(e) { return null != e; }, - v = function(e) { + y = function(e) { return 'function' == typeof e; }, - _ = function(e) { + v = function(e) { return 'string' == typeof e; }, - x = Array.isArray, + _ = Array.isArray, w = function(e) { - return e && v(e.then); + return e && y(e.then); + }, + x = function(e) { + return e && y(e.next) && y(e.throw); }, M = function(e) { - return e && v(e.next) && v(e.throw); + return y(e) && e.hasOwnProperty('toString'); }, k = function(e) { return ( @@ -246089,43 +245501,47 @@ object-assign return e; }; })(!0), - A = function() {}; - var O = function(e) { + O = function() {}; + var E = function(e) { return e; }; 'function' == typeof Symbol && Symbol.asyncIterator && Symbol.asyncIterator; - var E = function(e, t) { - Object(g.a)(e, t), - Object.getOwnPropertySymbols && - Object.getOwnPropertySymbols(t).forEach(function(n) { - e[n] = t[n]; - }); - }; - function T(e, t) { + var A = function(e, t) { + g(e, t), + Object.getOwnPropertySymbols && + Object.getOwnPropertySymbols(t).forEach(function(n) { + e[n] = t[n]; + }); + }, + T = function(e, t) { + var n; + return (n = []).concat.apply(n, t.map(e)); + }; + function C(e, t) { var n = e.indexOf(t); n >= 0 && e.splice(n, 1); } - function C(e) { + function L(e) { var t = !1; return function() { t || ((t = !0), e()); }; } - var L = function(e) { + var P = function(e) { throw e; }, - P = function(e) { + D = function(e) { return { value: e, done: !0 }; }; - function D(e, t, n) { - void 0 === t && (t = L), void 0 === n && (n = 'iterator'); + function j(e, t, n) { + void 0 === t && (t = P), void 0 === n && (n = 'iterator'); var r = { meta: { name: n }, next: e, throw: t, - return: P, + return: D, isSagaIterator: !0 }; return ( @@ -246143,36 +245559,36 @@ object-assign var N = function(e) { return Array.apply(null, new Array(e)); }, - j = function(e) { + R = function(e) { return function(t) { return e(Object.defineProperty(t, u, { value: !0 })); }; }, - R = function(e) { + I = function(e) { return e === p; }, - I = function(e) { + F = function(e) { return e === d; }, - F = function(e) { - return R(e) || I(e); + q = function(e) { + return I(e) || F(e); }; - function q(e, t) { + function B(e, t) { var n = Object.keys(e), r = n.length; var o, i = 0, - a = x(e) ? N(r) : {}, + a = _(e) ? N(r) : {}, s = {}; return ( n.forEach(function(e) { var n = function(n, s) { o || - (s || F(n) + (s || q(n) ? (t.cancel(), t(n, s)) : ((a[e] = n), ++i === r && ((o = !0), t(a)))); }; - (n.cancel = A), (s[e] = n); + (n.cancel = O), (s[e] = n); }), (t.cancel = function() { o || @@ -246184,14 +245600,18 @@ object-assign s ); } - function B(e) { - return { name: e.name || 'anonymous', location: H(e) }; - } function H(e) { + return { name: e.name || 'anonymous', location: Y(e) }; + } + function Y(e) { return e[h]; } - var Y = { isEmpty: S, put: A, take: A }; - function W(e, t) { + var W = "Channel's Buffer overflow!", + V = 1, + U = 3, + X = 4, + G = { isEmpty: S, put: O, take: O }; + function K(e, t) { void 0 === e && (e = 10); var n = new Array(e), r = 0, @@ -246219,12 +245639,12 @@ object-assign if (r < e) a(s); else switch (t) { - case 1: - throw new Error("Channel's Buffer overflow!"); - case 3: + case V: + throw new Error(W); + case U: (n[o] = s), (i = o = (o + 1) % e); break; - case 4: + case X: (u = 2 * e), (n = c()), (r = n.length), @@ -246239,27 +245659,42 @@ object-assign flush: c }; } - var V = function() { - return Y; + var $ = function() { + return G; }, - U = function(e) { - return W(e, 4); + Q = function(e) { + return K(e, X); }, - X = Object.freeze({ + J = Object.freeze({ __proto__: null, - none: V, + none: $, fixed: function(e) { - return W(e, 1); + return K(e, V); }, dropping: function(e) { - return W(e, 2); + return K(e, 2); }, sliding: function(e) { - return W(e, 3); - }, - expanding: U - }), - G = function(e, t) { + return K(e, U); + }, + expanding: Q + }), + Z = 'TAKE', + ee = 'PUT', + te = 'ALL', + ne = 'RACE', + re = 'CALL', + oe = 'CPS', + ie = 'FORK', + ae = 'JOIN', + se = 'CANCEL', + ce = 'SELECT', + ue = 'ACTION_CHANNEL', + le = 'CANCELLED', + fe = 'FLUSH', + de = 'GET_CONTEXT', + pe = 'SET_CONTEXT', + he = function(e, t) { var n; return ( ((n = {})[a] = !0), @@ -246269,11 +245704,11 @@ object-assign n ); }, - K = function(e) { - return G('FORK', Object(g.a)({}, e.payload, { detached: !0 })); + ge = function(e) { + return he(ie, g({}, e.payload, { detached: !0 })); }; - var $ = n(28); - function Q() { + var me = n(41); + function be() { var e = {}; return ( (e.promise = new Promise(function(t, n) { @@ -246282,96 +245717,95 @@ object-assign e ); } - var J = Q, - Z = [], - ee = 0; - function te(e) { + var ye = be, + ve = [], + _e = 0; + function we(e) { try { - oe(), e(); + ke(), e(); } finally { - ie(); + Se(); } } - function ne(e) { - Z.push(e), ee || (oe(), ae()); + function xe(e) { + ve.push(e), _e || (ke(), Oe()); } - function re(e) { + function Me(e) { try { - return oe(), e(); + return ke(), e(); } finally { - ae(); + Oe(); } } - function oe() { - ee++; + function ke() { + _e++; } - function ie() { - ee--; + function Se() { + _e--; } - function ae() { + function Oe() { var e; - for (ie(); !ee && void 0 !== (e = Z.shift()); ) te(e); + for (Se(); !_e && void 0 !== (e = ve.shift()); ) we(e); } - var se = function(e) { + var Ee = function(e) { return function(t) { return e.some(function(e) { - return de(e)(t); + return Pe(e)(t); }); }; }, - ce = function(e) { + Ae = function(e) { return function(t) { return e(t); }; }, - ue = function(e) { + Te = function(e) { return function(t) { return t.type === String(e); }; }, - le = function(e) { + Ce = function(e) { return function(t) { return t.type === e; }; }, - fe = function() { + Le = function() { return S; }; - function de(e) { - var t, - n = - '*' === e - ? fe - : _(e) - ? ue - : x(e) - ? se - : v((t = e)) && t.hasOwnProperty('toString') - ? ue - : v(e) - ? ce - : k(e) - ? le - : null; - if (null === n) throw new Error('invalid pattern: ' + e); - return n(e); + function Pe(e) { + var t = + '*' === e + ? Le + : v(e) + ? Te + : _(e) + ? Ee + : M(e) + ? Te + : y(e) + ? Ae + : k(e) + ? Ce + : null; + if (null === t) throw new Error('invalid pattern: ' + e); + return t(e); } - var pe = { type: i }, - he = function(e) { + var De = { type: i }, + je = function(e) { return e && e.type === i; }; - function ge(e) { - void 0 === e && (e = U()); + function ze(e) { + void 0 === e && (e = Q()); var t = !1, n = []; return { take: function(r) { t && e.isEmpty() - ? r(pe) + ? r(De) : e.isEmpty() ? (n.push(r), (r.cancel = function() { - T(n, r); + C(n, r); })) : r(e.take()); }, @@ -246382,7 +245816,7 @@ object-assign } }, flush: function(n) { - t && e.isEmpty() ? n(pe) : n(e.flush()); + t && e.isEmpty() ? n(De) : n(e.flush()); }, close: function() { if (!t) { @@ -246390,31 +245824,31 @@ object-assign var e = n; n = []; for (var r = 0, o = e.length; r < o; r++) { - (0, e[r])(pe); + (0, e[r])(De); } } } }; } - function me(e, t) { - void 0 === t && (t = V()); + function Ne(e, t) { + void 0 === t && (t = $()); var n, r = !1, - o = ge(t), + o = ze(t), i = function() { - r || ((r = !0), v(n) && n(), o.close()); + r || ((r = !0), y(n) && n(), o.close()); }; return ( - (n = C( + (n = L( (n = e(function(e) { - he(e) ? i() : o.put(e); + je(e) ? i() : o.put(e); })) )), r && n(), { take: o.take, flush: o.flush, close: i } ); } - function be() { + function Re() { var e, t = !1, n = [], @@ -246427,14 +245861,14 @@ object-assign var e = (n = r); (r = []), e.forEach(function(e) { - e(pe); + e(De); }); }; return ( ((e = {})[c] = !0), (e.put = function(e) { if (!t) - if (he(e)) i(); + if (je(e)) i(); else for (var o = (n = r), a = 0, c = o.length; a < c; a++) { var u = o[a]; @@ -246442,105 +245876,109 @@ object-assign } }), (e.take = function(e, n) { - void 0 === n && (n = fe), + void 0 === n && (n = Le), t - ? e(pe) + ? e(De) : ((e[s] = n), o(), r.push(e), - (e.cancel = C(function() { - o(), T(r, e); + (e.cancel = L(function() { + o(), C(r, e); }))); }), (e.close = i), e ); } - function ye() { - var e = be(), + function Ie() { + var e = Re(), t = e.put; return ( (e.put = function(e) { e[u] ? t(e) - : ne(function() { + : xe(function() { t(e); }); }), e ); } - function ve(e, t) { + var Fe = 0, + qe = 1, + Be = 2, + He = 3; + function Ye(e, t) { var n = e[o]; - v(n) && (t.cancel = n), + y(n) && (t.cancel = n), e.then(t, function(e) { t(e, !0); }); } - var _e, - xe = 0, - we = function() { - return ++xe; + var We, + Ve = 0, + Ue = function() { + return ++Ve; }; - function Me(e) { + function Xe(e) { e.isRunning() && e.cancel(); } - var ke = - (((_e = {}).TAKE = function(e, t, n) { + var Ge = + (((We = {})[Z] = function(e, t, n) { var r = t.channel, o = void 0 === r ? e.channel : r, i = t.pattern, a = t.maybe, s = function(e) { - e instanceof Error ? n(e, !0) : !he(e) || a ? n(e) : n(p); + e instanceof Error ? n(e, !0) : !je(e) || a ? n(e) : n(p); }; try { - o.take(s, y(i) ? de(i) : null); + o.take(s, b(i) ? Pe(i) : null); } catch (e) { return void n(e, !0); } n.cancel = s.cancel; }), - (_e.PUT = function(e, t, n) { + (We[ee] = function(e, t, n) { var r = t.channel, o = t.action, i = t.resolve; - ne(function() { + xe(function() { var t; try { t = (r ? r.put : e.dispatch)(o); } catch (e) { return void n(e, !0); } - i && w(t) ? ve(t, n) : n(t); + i && w(t) ? Ye(t, n) : n(t); }); }), - (_e.ALL = function(e, t, n, r) { + (We[te] = function(e, t, n, r) { var o = r.digestEffect, - i = xe, + i = Ve, a = Object.keys(t); if (0 !== a.length) { - var s = q(t, n); + var s = B(t, n); a.forEach(function(e) { o(t[e], i, s[e], e); }); - } else n(x(t) ? [] : {}); + } else n(_(t) ? [] : {}); }), - (_e.RACE = function(e, t, n, r) { + (We[ne] = function(e, t, n, r) { var o = r.digestEffect, - i = xe, + i = Ve, a = Object.keys(t), - s = x(t) ? N(a.length) : {}, + s = _(t) ? N(a.length) : {}, c = {}, u = !1; a.forEach(function(e) { var t = function(t, r) { u || - (r || F(t) + (r || q(t) ? (n.cancel(), n(t, r)) : (n.cancel(), (u = !0), (s[e] = t), n(s))); }; - (t.cancel = A), (c[e] = t); + (t.cancel = O), (c[e] = t); }), (n.cancel = function() { u || @@ -246553,34 +245991,34 @@ object-assign u || o(t[e], i, c[e], e); }); }), - (_e.CALL = function(e, t, n, r) { + (We[re] = function(e, t, n, r) { var o = t.context, i = t.fn, a = t.args, s = r.task; try { var c = i.apply(o, a); - if (w(c)) return void ve(c, n); - if (M(c)) return void Pe(e, c, s.context, xe, B(i), !1, n); + if (w(c)) return void Ye(c, n); + if (x(c)) return void ot(e, c, s.context, Ve, H(i), !1, n); n(c); } catch (e) { n(e, !0); } }), - (_e.CPS = function(e, t, n) { + (We[oe] = function(e, t, n) { var r = t.context, o = t.fn, i = t.args; try { var a = function(e, t) { - b(e) ? n(t) : n(e, !0); + m(e) ? n(t) : n(e, !0); }; o.apply(r, i.concat(a)), a.cancel && (n.cancel = a.cancel); } catch (e) { n(e, !0); } }), - (_e.FORK = function(e, t, n, r) { + (We[ie] = function(e, t, n, r) { var o = t.context, i = t.fn, a = t.args, @@ -246592,24 +246030,24 @@ object-assign r = e.args; try { var o = n.apply(t, r); - if (M(o)) return o; + if (x(o)) return o; var i = !1; - return D(function(e) { + return j(function(e) { return i ? { value: e, done: !0 } : ((i = !0), { value: o, done: !w(o) }); }); } catch (e) { - return D(function() { + return j(function() { throw e; }); } })({ context: o, fn: i, args: a }), l = (function(e, t) { - return e.isSagaIterator ? { name: e.meta.name } : B(t); + return e.isSagaIterator ? { name: e.meta.name } : H(t); })(u, i); - re(function() { - var t = Pe(e, u, c.context, xe, l, s, void 0); + Me(function() { + var t = ot(e, u, c.context, Ve, l, s, void 0); s ? n(t) : t.isRunning() @@ -246619,30 +246057,30 @@ object-assign : n(t); }); }), - (_e.JOIN = function(e, t, n, r) { + (We[ae] = function(e, t, n, r) { var o = r.task, i = function(e, t) { if (e.isRunning()) { var n = { task: o, cb: t }; (t.cancel = function() { - e.isRunning() && T(e.joiners, n); + e.isRunning() && C(e.joiners, n); }), e.joiners.push(n); } else e.isAborted() ? t(e.error(), !0) : t(e.result()); }; - if (x(t)) { + if (_(t)) { if (0 === t.length) return void n([]); - var a = q(t, n); + var a = B(t, n); t.forEach(function(e, t) { i(e, a[t]); }); } else i(t, n); }), - (_e.CANCEL = function(e, t, n, r) { + (We[se] = function(e, t, n, r) { var o = r.task; - t === l ? Me(o) : x(t) ? t.forEach(Me) : Me(t), n(); + t === l ? Xe(o) : _(t) ? t.forEach(Xe) : Xe(t), n(); }), - (_e.SELECT = function(e, t, n) { + (We[ce] = function(e, t, n) { var r = t.selector, o = t.args; try { @@ -246651,12 +246089,12 @@ object-assign n(e, !0); } }), - (_e.ACTION_CHANNEL = function(e, t, n) { + (We[ue] = function(e, t, n) { var r = t.pattern, - o = ge(t.buffer), - i = de(r), + o = ze(t.buffer), + i = Pe(r), a = function t(n) { - he(n) || e.channel.take(t, i), o.put(n); + je(n) || e.channel.take(t, i), o.put(n); }, s = o.close; (o.close = function() { @@ -246665,76 +246103,77 @@ object-assign e.channel.take(a, i), n(o); }), - (_e.CANCELLED = function(e, t, n, r) { + (We[le] = function(e, t, n, r) { n(r.task.isCancelled()); }), - (_e.FLUSH = function(e, t, n) { + (We[fe] = function(e, t, n) { t.flush(n); }), - (_e.GET_CONTEXT = function(e, t, n, r) { + (We[de] = function(e, t, n, r) { n(r.task.context[t]); }), - (_e.SET_CONTEXT = function(e, t, n, r) { + (We[pe] = function(e, t, n, r) { var o = r.task; - E(o.context, t), n(); + A(o.context, t), n(); }), - _e); - function Se(e, t) { + We); + function Ke(e, t) { return e + '?' + t; } - function Ae(e) { + function $e(e) { var t = e.name, n = e.location; - return n ? t + ' ' + Se(n.fileName, n.lineNumber) : t; + return n ? t + ' ' + Ke(n.fileName, n.lineNumber) : t; } - var Oe = null, - Ee = [], - Te = function() { - (Oe = null), (Ee.length = 0); + var Qe = null, + Je = [], + Ze = function(e) { + (e.crashedEffect = Qe), Je.push(e); + }, + et = function() { + (Qe = null), (Je.length = 0); }, - Ce = function() { + tt = function(e) { + Qe = e; + }, + nt = function() { var e, t, - n, - r, - o, - i = Ee[0], - a = Ee.slice(1), - s = i.crashedEffect + n = Je[0], + r = Je.slice(1), + o = n.crashedEffect ? (function(e) { - var t = H(e); - return t ? t.code + ' ' + Se(t.fileName, t.lineNumber) : ''; - })(i.crashedEffect) + var t = Y(e); + return t ? t.code + ' ' + Ke(t.fileName, t.lineNumber) : ''; + })(n.crashedEffect) : null; return [ 'The above error occurred in task ' + - Ae(i.meta) + - (s ? ' \n when executing effect ' + s : '') + $e(n.meta) + + (o ? ' \n when executing effect ' + o : '') ] .concat( - a.map(function(e) { - return ' created by ' + Ae(e.meta); + r.map(function(e) { + return ' created by ' + $e(e.meta); }), [ - ((e = Ee), - (t = function(e) { + ((e = Je), + (t = T(function(e) { return e.cancelledTasks; - }), - (n = e), - (o = (r = []).concat.apply(r, n.map(t))), - o.length - ? ['Tasks cancelled due to error:'].concat(o).join('\n') + }, e)), + t.length + ? ['Tasks cancelled due to error:'].concat(t).join('\n') : '') ] ) .join('\n'); }; - function Le(e, t, n, r, o, i, a) { + function rt(e, t, n, r, o, i, a) { var s; - void 0 === a && (a = A); + void 0 === a && (a = O); var c, u, - l = 0, + l = Fe, p = null, h = [], g = Object.create(n), @@ -246749,8 +246188,8 @@ object-assign o.push(t), (t.cont = function(s, c) { i || - (T(o, t), - (t.cont = A), + (C(o, t), + (t.cont = O), c ? a(s) : (t === e && (r = s), o.length || ((i = !0), n(r)))); @@ -246760,7 +246199,7 @@ object-assign i || ((i = !0), o.forEach(function(e) { - (e.cont = A), e.cancel(); + (e.cont = O), e.cancel(); }), (o = [])); } @@ -246789,19 +246228,15 @@ object-assign ); function b(t, n) { if (n) { - if ( - ((l = 2), - ((i = { meta: o, cancelledTasks: h }).crashedEffect = Oe), - Ee.push(i), - y.isRoot) - ) { - var r = Ce(); - Te(), e.onError(t, { sagaStack: r }); + if (((l = Be), Ze({ meta: o, cancelledTasks: h }), y.isRoot)) { + var r = nt(); + et(), e.onError(t, { sagaStack: r }); } (u = t), p && p.reject(t); } else - t === d ? (l = 1) : 1 !== l && (l = 3), (c = t), p && p.resolve(t); - var i; + t === d ? (l = qe) : l !== qe && (l = He), + (c = t), + p && p.resolve(t); y.cont(t, n), y.joiners.forEach(function(e) { e.cb(t, n); @@ -246817,27 +246252,28 @@ object-assign (s.joiners = []), (s.queue = m), (s.cancel = function() { - 0 === l && ((l = 1), m.cancelAll(), b(d, !1)); + l === Fe && ((l = qe), m.cancelAll(), b(d, !1)); }), (s.cont = a), (s.end = b), (s.setContext = function(e) { - E(g, e); + A(g, e); }), (s.toPromise = function() { - return ( - p || ((p = J()), 2 === l ? p.reject(u) : 0 !== l && p.resolve(c)), - p.promise - ); + return p + ? p.promise + : ((p = ye()), + l === Be ? p.reject(u) : l !== Fe && p.resolve(c), + p.promise); }), (s.isRunning = function() { - return 0 === l; + return l === Fe; }), (s.isCancelled = function() { - return 1 === l || (0 === l && 1 === t.status); + return l === qe || (l === Fe && t.status === qe); }), (s.isAborted = function() { - return 2 === l; + return l === Be; }), (s.result = function() { return c; @@ -246848,63 +246284,60 @@ object-assign s); return y; } - function Pe(e, t, n, r, o, i, s) { + function ot(e, t, n, r, o, i, s) { var c = e.finalizeRunEffect(function(t, n, r) { - if (w(t)) ve(t, r); - else if (M(t)) Pe(e, t, l.context, n, o, !1, r); + if (w(t)) Ye(t, r); + else if (x(t)) ot(e, t, l.context, n, o, !1, r); else if (t && t[a]) { - (0, ke[t.type])(e, t.payload, r, f); + (0, Ge[t.type])(e, t.payload, r, f); } else r(t); }); - p.cancel = A; + p.cancel = O; var u = { meta: o, cancel: function() { - 0 === u.status && ((u.status = 1), p(d)); + u.status === Fe && ((u.status = qe), p(d)); }, - status: 0 + status: Fe }, - l = Le(e, u, n, r, o, i, s), + l = rt(e, u, n, r, o, i, s), f = { task: l, digestEffect: h }; return s && (s.cancel = l.cancel), p(), l; function p(e, n) { try { var o; n - ? ((o = t.throw(e)), Te()) - : I(e) - ? ((u.status = 1), + ? ((o = t.throw(e)), et()) + : F(e) + ? ((u.status = qe), p.cancel(), - (o = v(t.return) ? t.return(d) : { done: !0, value: d })) - : (o = R(e) - ? v(t.return) + (o = y(t.return) ? t.return(d) : { done: !0, value: d })) + : (o = I(e) + ? y(t.return) ? t.return() : { done: !0 } : t.next(e)), o.done - ? (1 !== u.status && (u.status = 3), u.cont(o.value)) + ? (u.status !== qe && (u.status = He), u.cont(o.value)) : h(o.value, r, p); } catch (e) { - if (1 === u.status) throw e; - (u.status = 2), u.cont(e, !0); + if (u.status === qe) throw e; + (u.status = Be), u.cont(e, !0); } } function h(t, n, r, o) { void 0 === o && (o = ''); var i, - a = we(); + a = Ue(); function s(n, o) { i || ((i = !0), - (r.cancel = A), + (r.cancel = O), e.sagaMonitor && (o ? e.sagaMonitor.effectRejected(a, n) : e.sagaMonitor.effectResolved(a, n)), - o && - (function(e) { - Oe = e; - })(t), + o && tt(t), r(n, o)); } e.sagaMonitor && @@ -246914,20 +246347,20 @@ object-assign label: o, effect: t }), - (s.cancel = A), + (s.cancel = O), (r.cancel = function() { i || ((i = !0), s.cancel(), - (s.cancel = A), + (s.cancel = O), e.sagaMonitor && e.sagaMonitor.effectCancelled(a)); }), c(t, a, s); } } - function De(e, t) { + function it(e, t) { var n = e.channel, - r = void 0 === n ? ye() : n, + r = void 0 === n ? Ie() : n, o = e.dispatch, i = e.getState, a = e.context, @@ -246944,19 +246377,19 @@ object-assign p[h - 2] = arguments[h]; var g = t.apply(void 0, p); var m, - b = we(); + b = Ue(); if ( (c && - ((c.rootSagaStarted = c.rootSagaStarted || A), - (c.effectTriggered = c.effectTriggered || A), - (c.effectResolved = c.effectResolved || A), - (c.effectRejected = c.effectRejected || A), - (c.effectCancelled = c.effectCancelled || A), - (c.actionDispatched = c.actionDispatched || A), + ((c.rootSagaStarted = c.rootSagaStarted || O), + (c.effectTriggered = c.effectTriggered || O), + (c.effectResolved = c.effectResolved || O), + (c.effectRejected = c.effectRejected || O), + (c.effectCancelled = c.effectCancelled || O), + (c.actionDispatched = c.actionDispatched || O), c.rootSagaStarted({ effectId: b, saga: t, args: p })), u) ) { - var y = $.compose.apply(void 0, u); + var y = me.compose.apply(void 0, u); m = function(e) { return function(t, n, r) { return y(function(t) { @@ -246964,36 +246397,45 @@ object-assign })(t); }; }; - } else m = O; + } else m = E; var v = { channel: r, - dispatch: j(o), + dispatch: R(o), getState: i, sagaMonitor: c, onError: f, finalizeRunEffect: m }; - return re(function() { - var e = Pe(v, g, s, b, B(t), !0, void 0); + return Me(function() { + var e = ot(v, g, s, b, H(t), !0, void 0); return c && c.effectResolved(b, e), e; }); } - var ze = function(e) { + var at = function(e) { var t, n = void 0 === e ? {} : e, r = n.context, o = void 0 === r ? {} : r, i = n.channel, - a = void 0 === i ? ye() : i, + a = void 0 === i ? Ie() : i, s = n.sagaMonitor, - c = Object(m.a)(n, ['context', 'channel', 'sagaMonitor']); + c = (function(e, t) { + if (null == e) return {}; + var n, + r, + o = {}, + i = Object.keys(e); + for (r = 0; r < i.length; r++) + (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); + return o; + })(n, ['context', 'channel', 'sagaMonitor']); function u(e) { var n = e.getState, r = e.dispatch; return ( - (t = De.bind( + (t = it.bind( null, - Object(g.a)({}, c, { + g({}, c, { context: o, channel: a, dispatch: r, @@ -247015,46 +246457,77 @@ object-assign return t.apply(void 0, arguments); }), (u.setContext = function(e) { - E(o, e); + A(o, e); }), u ); }; - t.default = ze; - }, - function(e, t, n) { - 'use strict'; - n.r(t), - n.d(t, 'components', function() { - return ue; + n.d(t, 'CANCEL', function() { + return o; + }), + n.d(t, 'SAGA_LOCATION', function() { + return h; }), - n.d(t, 'createFilter', function() { + n.d(t, 'buffers', function() { + return J; + }), + n.d(t, 'detach', function() { return ge; }), - n.d(t, 'defaultTheme', function() { - return Be; + n.d(t, 'END', function() { + return De; }), - n.d(t, 'mergeStyles', function() { - return qe; + n.d(t, 'channel', function() { + return ze; }), - n.d(t, 'NonceProvider', function() { - return Ze; + n.d(t, 'eventChannel', function() { + return Ne; + }), + n.d(t, 'isEnd', function() { + return je; + }), + n.d(t, 'multicastChannel', function() { + return Re; + }), + n.d(t, 'runSaga', function() { + return it; + }), + n.d(t, 'stdChannel', function() { + return Ie; }); - var r = n(0), - o = n.n(r), - i = n(34), - a = n(3), - s = n(4), - c = n(1), - u = n.n(c), - l = function() {}; - function f(e, t) { + t.default = at; + }, + function(e, t, n) { + 'use strict'; + n.r(t); + var r = n(24), + o = n(5), + i = n(95), + a = n(17), + s = n(10), + c = n(11), + u = n(12), + l = n(13), + f = n(14), + d = n(2), + p = n(3), + h = n(0), + g = n.n(h), + m = n(50), + b = n(6), + y = n(7), + v = n(1), + _ = n.n(v), + w = n(42), + x = function() {}; + function M(e, t) { return t ? ('-' === t[0] ? e + t : e + '__' + t) : e; } - function d(e, t, n) { + function k(e, t, n) { var r = [n]; if (t && e) - for (var o in t) t.hasOwnProperty(o) && t[o] && r.push('' + f(e, o)); + for (var o in t) + t.hasOwnProperty(o) && t[o] && r.push(''.concat(M(e, o))); return r .filter(function(e) { return e; @@ -247064,63 +246537,53 @@ object-assign }) .join(' '); } - var p = function(e) { + var S = function(e) { return Array.isArray(e) ? e.filter(Boolean) - : 'object' == typeof e && null !== e + : 'object' === Object(w.a)(e) && null !== e ? [e] : []; }; - function h(e) { + function O(e) { return ( [document.documentElement, document.body, window].indexOf(e) > -1 ); } - function g(e) { - return h(e) ? window.pageYOffset : e.scrollTop; + function E(e) { + return O(e) ? window.pageYOffset : e.scrollTop; } - function m(e, t) { - h(e) ? window.scrollTo(0, t) : (e.scrollTop = t); + function A(e, t) { + O(e) ? window.scrollTo(0, t) : (e.scrollTop = t); } - function b(e, t, n, r) { - void 0 === n && (n = 200), void 0 === r && (r = l); - var o = g(e), + function T(e, t) { + var n = + arguments.length > 2 && void 0 !== arguments[2] + ? arguments[2] + : 200, + r = + arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : x, + o = E(e), i = t - o, - a = 0; + a = 10, + s = 0; !(function t() { - var s, - c = i * ((s = (s = a += 10) / n - 1) * s * s + 1) + o; - m(e, c), a < n ? window.requestAnimationFrame(t) : r(e); + var c, + u = i * ((c = (c = s += a) / n - 1) * c * c + 1) + o; + A(e, u), s < n ? window.requestAnimationFrame(t) : r(e); })(); } - function y() { + function C() { try { return document.createEvent('TouchEvent'), !0; } catch (e) { return !1; } } - var v = n(27), - _ = n(51), - x = n.n(_); - function w() { - return (w = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - function M(e, t) { - (e.prototype = Object.create(t.prototype)), - (e.prototype.constructor = e), - (e.__proto__ = t); - } - function k(e) { + var L = n(40), + P = n(93), + D = n(195), + j = n.n(D); + function z(e) { var t = e.maxHeight, n = e.menuEl, r = e.minHeight, @@ -247150,85 +246613,89 @@ object-assign d = f.bottom, p = f.height, h = f.top, - y = n.offsetParent.getBoundingClientRect().top, - v = window.innerHeight, - _ = g(c), - x = parseInt(getComputedStyle(n).marginBottom, 10), - w = parseInt(getComputedStyle(n).marginTop, 10), - M = y - w, - k = v - h, - S = M + _, - A = l - _ - h, - O = d - v + _ + x, - E = _ + h - w; + g = n.offsetParent.getBoundingClientRect().top, + m = window.innerHeight, + b = E(c), + y = parseInt(getComputedStyle(n).marginBottom, 10), + v = parseInt(getComputedStyle(n).marginTop, 10), + _ = g - v, + w = m - h, + x = _ + b, + M = l - b - h, + k = d - m + b + y, + S = b + h - v; switch (o) { case 'auto': case 'bottom': - if (k >= p) return { placement: 'bottom', maxHeight: t }; - if (A >= p && !a) - return i && b(c, O, 160), { placement: 'bottom', maxHeight: t }; - if ((!a && A >= r) || (a && k >= r)) + if (w >= p) return { placement: 'bottom', maxHeight: t }; + if (M >= p && !a) + return i && T(c, k, 160), { placement: 'bottom', maxHeight: t }; + if ((!a && M >= r) || (a && w >= r)) return ( - i && b(c, O, 160), - { placement: 'bottom', maxHeight: a ? k - x : A - x } + i && T(c, k, 160), + { placement: 'bottom', maxHeight: a ? w - y : M - y } ); if ('auto' === o || a) { - var T = t, - C = a ? M : S; + var O = t, + C = a ? _ : x; return ( - C >= r && (T = Math.min(C - x - s.controlHeight, t)), - { placement: 'top', maxHeight: T } + C >= r && (O = Math.min(C - y - s.controlHeight, t)), + { placement: 'top', maxHeight: O } ); } if ('bottom' === o) - return m(c, O), { placement: 'bottom', maxHeight: t }; + return A(c, k), { placement: 'bottom', maxHeight: t }; break; case 'top': - if (M >= p) return { placement: 'top', maxHeight: t }; - if (S >= p && !a) - return i && b(c, E, 160), { placement: 'top', maxHeight: t }; - if ((!a && S >= r) || (a && M >= r)) { + if (_ >= p) return { placement: 'top', maxHeight: t }; + if (x >= p && !a) + return i && T(c, S, 160), { placement: 'top', maxHeight: t }; + if ((!a && x >= r) || (a && _ >= r)) { var L = t; return ( - ((!a && S >= r) || (a && M >= r)) && (L = a ? M - w : S - w), - i && b(c, E, 160), + ((!a && x >= r) || (a && _ >= r)) && (L = a ? _ - v : x - v), + i && T(c, S, 160), { placement: 'top', maxHeight: L } ); } return { placement: 'bottom', maxHeight: t }; default: - throw new Error('Invalid placement provided "' + o + '".'); + throw new Error('Invalid placement provided "'.concat(o, '".')); } return u; } - var S = function(e) { + var N = function(e) { return 'auto' === e ? 'bottom' : e; }, - A = (function(e) { + R = (function(e) { function t() { - for ( - var t, n = arguments.length, r = new Array(n), o = 0; - o < n; - o++ - ) - r[o] = arguments[o]; + var e, n; + Object(s.a)(this, t); + for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) + o[i] = arguments[i]; return ( - ((t = e.call.apply(e, [this].concat(r)) || this).state = { - maxHeight: t.props.maxMenuHeight, + (n = Object(u.a)( + this, + (e = Object(l.a)(t)).call.apply(e, [this].concat(o)) + )), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'state', { + maxHeight: n.props.maxMenuHeight, placement: null }), - (t.getPlacement = function(e) { - var n = t.props, - r = n.minMenuHeight, - o = n.maxMenuHeight, - i = n.menuPlacement, - a = n.menuPosition, - s = n.menuShouldScrollIntoView, - c = n.theme, - u = t.context.getPortalPlacement; + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'getPlacement', function( + e + ) { + var t = n.props, + r = t.minMenuHeight, + o = t.maxMenuHeight, + i = t.menuPlacement, + a = t.menuPosition, + s = t.menuShouldScrollIntoView, + c = t.theme, + u = n.context.getPortalPlacement; if (e) { var l = 'fixed' === a, - f = k({ + f = z({ maxHeight: o, menuEl: e, minHeight: r, @@ -247237,149 +246704,180 @@ object-assign isFixedPosition: l, theme: c }); - u && u(f), t.setState(f); + u && u(f), n.setState(f); } }), - (t.getUpdatedProps = function() { - var e = t.props.menuPlacement, - n = t.state.placement || S(e); - return w({}, t.props, { - placement: n, - maxHeight: t.state.maxHeight - }); - }), - t + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'getUpdatedProps', + function() { + var e = n.props.menuPlacement, + t = n.state.placement || N(e); + return Object(a.a)({}, n.props, { + placement: t, + maxHeight: n.state.maxHeight + }); + } + ), + n ); } return ( - M(t, e), - (t.prototype.render = function() { - return (0, this.props.children)({ - ref: this.getPlacement, - placerProps: this.getUpdatedProps() - }); - }), + Object(f.a)(t, e), + Object(c.a)(t, [ + { + key: 'render', + value: function() { + return (0, this.props.children)({ + ref: this.getPlacement, + placerProps: this.getUpdatedProps() + }); + } + } + ]), t ); - })(r.Component); - A.contextTypes = { getPortalPlacement: u.a.func }; - var O = function(e) { + })(h.Component); + Object(p.a)(R, 'contextTypes', { getPortalPlacement: _.a.func }); + var I = function(e) { var t = e.theme, n = t.spacing.baseUnit; return { color: t.colors.neutral40, - padding: 2 * n + 'px ' + 3 * n + 'px', + padding: ''.concat(2 * n, 'px ').concat(3 * n, 'px'), textAlign: 'center' }; }, - E = O, - T = O, - C = function(e) { + F = I, + q = I, + B = function(e) { var t = e.children, n = e.className, r = e.cx, - o = e.getStyles, - i = e.innerProps; - return Object(a.c)( + i = e.getStyles, + a = e.innerProps; + return Object(b.c)( 'div', - w( + Object(o.a)( { - css: o('noOptionsMessage', e), + css: i('noOptionsMessage', e), className: r( { 'menu-notice': !0, 'menu-notice--no-options': !0 }, n ) }, - i + a ), t ); }; - C.defaultProps = { children: 'No options' }; - var L = function(e) { + B.defaultProps = { children: 'No options' }; + var H = function(e) { var t = e.children, n = e.className, r = e.cx, - o = e.getStyles, - i = e.innerProps; - return Object(a.c)( + i = e.getStyles, + a = e.innerProps; + return Object(b.c)( 'div', - w( + Object(o.a)( { - css: o('loadingMessage', e), + css: i('loadingMessage', e), className: r({ 'menu-notice': !0, 'menu-notice--loading': !0 }, n) }, - i + a ), t ); }; - L.defaultProps = { children: 'Loading...' }; - var P = (function(e) { + H.defaultProps = { children: 'Loading...' }; + var Y = (function(e) { function t() { - for (var t, n = arguments.length, r = new Array(n), o = 0; o < n; o++) - r[o] = arguments[o]; + var e, n; + Object(s.a)(this, t); + for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) + o[i] = arguments[i]; return ( - ((t = e.call.apply(e, [this].concat(r)) || this).state = { + (n = Object(u.a)( + this, + (e = Object(l.a)(t)).call.apply(e, [this].concat(o)) + )), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'state', { placement: null }), - (t.getPortalPlacement = function(e) { - var n = e.placement; - n !== S(t.props.menuPlacement) && t.setState({ placement: n }); - }), - t + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'getPortalPlacement', + function(e) { + var t = e.placement; + t !== N(n.props.menuPlacement) && n.setState({ placement: t }); + } + ), + n ); } - M(t, e); - var n = t.prototype; return ( - (n.getChildContext = function() { - return { getPortalPlacement: this.getPortalPlacement }; - }), - (n.render = function() { - var e = this.props, - t = e.appendTo, - n = e.children, - r = e.controlElement, - o = e.menuPlacement, - i = e.menuPosition, - c = e.getStyles, - u = 'fixed' === i; - if ((!t && !u) || !r) return null; - var l = this.state.placement || S(o), - f = (function(e) { - var t = e.getBoundingClientRect(); - return { - bottom: t.bottom, - height: t.height, - left: t.left, - right: t.right, - top: t.top, - width: t.width - }; - })(r), - d = u ? 0 : window.pageYOffset, - p = { offset: f[l] + d, position: i, rect: f }, - h = Object(a.c)('div', { css: c('menuPortal', p) }, n); - return t ? Object(s.createPortal)(h, t) : h; - }), + Object(f.a)(t, e), + Object(c.a)(t, [ + { + key: 'getChildContext', + value: function() { + return { getPortalPlacement: this.getPortalPlacement }; + } + }, + { + key: 'render', + value: function() { + var e = this.props, + t = e.appendTo, + n = e.children, + r = e.controlElement, + o = e.menuPlacement, + i = e.menuPosition, + a = e.getStyles, + s = 'fixed' === i; + if ((!t && !s) || !r) return null; + var c = this.state.placement || N(o), + u = (function(e) { + var t = e.getBoundingClientRect(); + return { + bottom: t.bottom, + height: t.height, + left: t.left, + right: t.right, + top: t.top, + width: t.width + }; + })(r), + l = s ? 0 : window.pageYOffset, + f = { offset: u[c] + l, position: i, rect: u }, + d = Object(b.c)('div', { css: a('menuPortal', f) }, n); + return t ? Object(y.createPortal)(d, t) : d; + } + } + ]), t ); - })(r.Component); - P.childContextTypes = { getPortalPlacement: u.a.func }; - var D = Array.isArray, - z = Object.keys, - N = Object.prototype.hasOwnProperty; - function j(e, t) { + })(h.Component); + Object(p.a)(Y, 'childContextTypes', { getPortalPlacement: _.a.func }); + var W = Array.isArray, + V = Object.keys, + U = Object.prototype.hasOwnProperty; + function X(e, t) { try { return (function e(t, n) { if (t === n) return !0; - if (t && n && 'object' == typeof t && 'object' == typeof n) { + if ( + t && + n && + 'object' == Object(w.a)(t) && + 'object' == Object(w.a)(n) + ) { var r, o, i, - a = D(t), - s = D(n); + a = W(t), + s = W(n); if (a && s) { if ((o = t.length) != n.length) return !1; for (r = o; 0 != r--; ) if (!e(t[r], n[r])) return !1; @@ -247394,9 +246892,9 @@ object-assign f = n instanceof RegExp; if (l != f) return !1; if (l && f) return t.toString() == n.toString(); - var d = z(t); - if ((o = d.length) !== z(n).length) return !1; - for (r = o; 0 != r--; ) if (!N.call(n, d[r])) return !1; + var d = V(t); + if ((o = d.length) !== V(n).length) return !1; + for (r = o; 0 != r--; ) if (!U.call(n, d[r])) return !1; for (r = o; 0 != r--; ) if (!(('_owner' === (i = d[r]) && t.$$typeof) || e(t[i], n[i]))) return !1; @@ -247417,95 +246915,102 @@ object-assign throw e; } } - function R() { - return (R = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); + var G = (function(e) { + function t() { + return ( + Object(s.a)(this, t), + Object(u.a)(this, Object(l.a)(t).apply(this, arguments)) + ); + } + return ( + Object(f.a)(t, e), + Object(c.a)(t, [ + { + key: 'render', + value: function() { + var e = this.props, + t = e.children, + n = e.className, + r = e.cx, + o = e.isMulti, + i = e.getStyles, + a = e.hasValue; + return Object(b.c)( + 'div', + { + css: i('valueContainer', this.props), + className: r( + { + 'value-container': !0, + 'value-container--is-multi': o, + 'value-container--has-value': a + }, + n + ) + }, + t + ); + } } - return e; - }).apply(this, arguments); - } - function I() { - var e = (function(e, t) { - t || (t = e.slice(0)); - return (e.raw = t), e; - })(['\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n']); + ]), + t + ); + })(h.Component); + function K() { + var e = Object(P.a)([ + '\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n' + ]); return ( - (I = function() { + (K = function() { return e; }), e ); } - function F() { - return (F = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - var q = { + var $ = { name: '19bqh2r', styles: 'display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;' }, - B = function(e) { + Q = function(e) { var t = e.size, - n = (function(e, t) { - if (null == e) return {}; - var n, - r, - o = {}, - i = Object.keys(e); - for (r = 0; r < i.length; r++) - (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); - return o; - })(e, ['size']); - return Object(a.c)( + n = Object(r.a)(e, ['size']); + return Object(b.c)( 'svg', - F( + Object(o.a)( { height: t, width: t, viewBox: '0 0 20 20', 'aria-hidden': 'true', focusable: 'false', - css: q + css: $ }, n ) ); }, - H = function(e) { - return Object(a.c)( - B, - F({ size: 20 }, e), - Object(a.c)('path', { + J = function(e) { + return Object(b.c)( + Q, + Object(o.a)({ size: 20 }, e), + Object(b.c)('path', { d: 'M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z' }) ); }, - Y = function(e) { - return Object(a.c)( - B, - F({ size: 20 }, e), - Object(a.c)('path', { + Z = function(e) { + return Object(b.c)( + Q, + Object(o.a)({ size: 20 }, e), + Object(b.c)('path', { d: 'M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z' }) ); }, - W = function(e) { + ee = function(e) { var t = e.isFocused, n = e.theme, r = n.spacing.baseUnit, @@ -247519,16 +247024,18 @@ object-assign ':hover': { color: t ? o.neutral80 : o.neutral40 } }; }, - V = W, - U = W, - X = Object(a.d)(I()), - G = function(e) { + te = ee, + ne = ee, + re = Object(b.d)(K()), + oe = function(e) { var t = e.delay, n = e.offset; - return Object(a.c)('span', { - css: Object(v.a)( + return Object(b.c)('span', { + css: Object(L.a)( { - animation: X + ' 1s ease-in-out ' + t + 'ms infinite;', + animation: '' + .concat(re, ' 1s ease-in-out ') + .concat(t, 'ms infinite;'), backgroundColor: 'currentColor', borderRadius: '1em', display: 'inline-block', @@ -247541,239 +247048,152 @@ object-assign ) }); }, - K = function(e) { + ie = function(e) { var t = e.className, n = e.cx, r = e.getStyles, - o = e.innerProps, - i = e.isRtl; - return Object(a.c)( + i = e.innerProps, + a = e.isRtl; + return Object(b.c)( 'div', - F({}, o, { + Object(o.a)({}, i, { css: r('loadingIndicator', e), className: n({ indicator: !0, 'loading-indicator': !0 }, t) }), - Object(a.c)(G, { delay: 0, offset: i }), - Object(a.c)(G, { delay: 160, offset: !0 }), - Object(a.c)(G, { delay: 320, offset: !i }) + Object(b.c)(oe, { delay: 0, offset: a }), + Object(b.c)(oe, { delay: 160, offset: !0 }), + Object(b.c)(oe, { delay: 320, offset: !a }) ); }; - function $() { - return ($ = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - K.defaultProps = { size: 4 }; - function Q() { - return (Q = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - function J() { - return (J = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - var Z = function(e) { - return { - label: 'input', - background: 0, - border: 0, - fontSize: 'inherit', - opacity: e ? 0 : 1, - outline: 0, - padding: 0, - color: 'inherit' - }; - }; - function ee() { - return (ee = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - var te = function(e) { + ie.defaultProps = { size: 4 }; + var ae = function(e) { + return { + label: 'input', + background: 0, + border: 0, + fontSize: 'inherit', + opacity: e ? 0 : 1, + outline: 0, + padding: 0, + color: 'inherit' + }; + }, + se = function(e) { var t = e.children, n = e.innerProps; - return Object(a.c)('div', n, t); + return Object(b.c)('div', n, t); }, - ne = te, - re = te; - var oe = function(e) { - var t = e.children, - n = e.className, - r = e.components, - o = e.cx, - i = e.data, - s = e.getStyles, - c = e.innerProps, - u = e.isDisabled, - l = e.removeProps, - f = e.selectProps, - d = r.Container, - p = r.Label, - h = r.Remove; - return Object(a.c)(a.b, null, function(r) { - var g = r.css, - m = r.cx; - return Object(a.c)( - d, - { - data: i, - innerProps: ee({}, c, { - className: m( - g(s('multiValue', e)), - o({ 'multi-value': !0, 'multi-value--is-disabled': u }, n) - ) - }), - selectProps: f - }, - Object(a.c)( - p, + ce = se, + ue = se, + le = (function(e) { + function t() { + return ( + Object(s.a)(this, t), + Object(u.a)(this, Object(l.a)(t).apply(this, arguments)) + ); + } + return ( + Object(f.a)(t, e), + Object(c.a)(t, [ { - data: i, - innerProps: { - className: m( - g(s('multiValueLabel', e)), - o({ 'multi-value__label': !0 }, n) - ) - }, - selectProps: f - }, - t - ), - Object(a.c)(h, { - data: i, - innerProps: ee( - { - className: m( - g(s('multiValueRemove', e)), - o({ 'multi-value__remove': !0 }, n) - ) - }, - l - ), - selectProps: f - }) + key: 'render', + value: function() { + var e = this.props, + t = e.children, + n = e.innerProps; + return Object(b.c)( + 'div', + n, + t || Object(b.c)(J, { size: 14 }) + ); + } + } + ]), + t ); - }); - }; - function ie() { - return (ie = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - oe.defaultProps = { cropWithEllipsis: !0 }; - function ae() { - return (ae = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - function se() { - return (se = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - function ce() { - return (ce = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - var ue = { + })(h.Component), + fe = (function(e) { + function t() { + return ( + Object(s.a)(this, t), + Object(u.a)(this, Object(l.a)(t).apply(this, arguments)) + ); + } + return ( + Object(f.a)(t, e), + Object(c.a)(t, [ + { + key: 'render', + value: function() { + var e = this, + t = this.props, + n = t.children, + r = t.className, + o = t.components, + i = t.cx, + s = t.data, + c = t.getStyles, + u = t.innerProps, + l = t.isDisabled, + f = t.removeProps, + d = t.selectProps, + p = o.Container, + h = o.Label, + g = o.Remove; + return Object(b.c)(b.b, null, function(t) { + var o = t.css, + m = t.cx; + return Object( + b.c + )(p, { data: s, innerProps: Object(a.a)({}, u, { className: m(o(c('multiValue', e.props)), i({ 'multi-value': !0, 'multi-value--is-disabled': l }, r)) }), selectProps: d }, Object(b.c)(h, { data: s, innerProps: { className: m(o(c('multiValueLabel', e.props)), i({ 'multi-value__label': !0 }, r)) }, selectProps: d }, n), Object(b.c)(g, { data: s, innerProps: Object(a.a)({ className: m(o(c('multiValueRemove', e.props)), i({ 'multi-value__remove': !0 }, r)) }, f), selectProps: d })); + }); + } + } + ]), + t + ); + })(h.Component); + Object(p.a)(fe, 'defaultProps', { cropWithEllipsis: !0 }); + var de = { ClearIndicator: function(e) { var t = e.children, n = e.className, r = e.cx, - o = e.getStyles, - i = e.innerProps; - return Object(a.c)( + i = e.getStyles, + a = e.innerProps; + return Object(b.c)( 'div', - F({}, i, { - css: o('clearIndicator', e), + Object(o.a)({}, a, { + css: i('clearIndicator', e), className: r({ indicator: !0, 'clear-indicator': !0 }, n) }), - t || Object(a.c)(H, null) + t || Object(b.c)(J, null) ); }, Control: function(e) { var t = e.children, n = e.cx, r = e.getStyles, - o = e.className, - i = e.isDisabled, + i = e.className, + a = e.isDisabled, s = e.isFocused, c = e.innerRef, u = e.innerProps, l = e.menuIsOpen; - return Object(a.c)( + return Object(b.c)( 'div', - $( + Object(o.a)( { ref: c, css: r('control', e), className: n( { control: !0, - 'control--is-disabled': i, + 'control--is-disabled': a, 'control--is-focused': s, 'control--menu-is-open': l }, - o + i ) }, u @@ -247785,71 +247205,67 @@ object-assign var t = e.children, n = e.className, r = e.cx, - o = e.getStyles, - i = e.innerProps; - return Object(a.c)( + i = e.getStyles, + a = e.innerProps; + return Object(b.c)( 'div', - F({}, i, { - css: o('dropdownIndicator', e), + Object(o.a)({}, a, { + css: i('dropdownIndicator', e), className: r({ indicator: !0, 'dropdown-indicator': !0 }, n) }), - t || Object(a.c)(Y, null) + t || Object(b.c)(Z, null) ); }, - DownChevron: Y, - CrossIcon: H, + DownChevron: Z, + CrossIcon: J, Group: function(e) { var t = e.children, n = e.className, r = e.cx, - o = e.getStyles, - i = e.Heading, + i = e.getStyles, + a = e.Heading, s = e.headingProps, c = e.label, u = e.theme, l = e.selectProps; - return Object(a.c)( + return Object(b.c)( 'div', - { css: o('group', e), className: r({ group: !0 }, n) }, - Object(a.c)( - i, - Q({}, s, { selectProps: l, theme: u, getStyles: o, cx: r }), + { css: i('group', e), className: r({ group: !0 }, n) }, + Object(b.c)( + a, + Object(o.a)({}, s, { + selectProps: l, + theme: u, + getStyles: i, + cx: r + }), c ), - Object(a.c)('div', null, t) + Object(b.c)('div', null, t) ); }, GroupHeading: function(e) { var t = e.className, n = e.cx, - r = e.getStyles, - o = e.theme, - i = + i = e.getStyles, + s = e.theme, + c = (e.selectProps, - (function(e, t) { - if (null == e) return {}; - var n, - r, - o = {}, - i = Object.keys(e); - for (r = 0; r < i.length; r++) - (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); - return o; - })(e, [ + Object(r.a)(e, [ 'className', 'cx', 'getStyles', 'theme', 'selectProps' ])); - return Object(a.c)( + return Object(b.c)( 'div', - Q( + Object(o.a)( { - css: r('groupHeading', Q({ theme: o }, i)), + css: i('groupHeading', Object(a.a)({ theme: s }, c)), className: n({ 'group-heading': !0 }, t) }, - i + c ) ); }, @@ -247858,7 +247274,7 @@ object-assign n = e.className, r = e.cx, o = e.getStyles; - return Object(a.c)( + return Object(b.c)( 'div', { css: o('indicatorsContainer', e), @@ -247871,10 +247287,10 @@ object-assign var t = e.className, n = e.cx, r = e.getStyles, - o = e.innerProps; - return Object(a.c)( + i = e.innerProps; + return Object(b.c)( 'span', - F({}, o, { + Object(o.a)({}, i, { css: r('indicatorSeparator', e), className: n({ 'indicator-separator': !0 }, t) }) @@ -247883,23 +247299,14 @@ object-assign Input: function(e) { var t = e.className, n = e.cx, - r = e.getStyles, - o = e.innerRef, - i = e.isHidden, - s = e.isDisabled, - c = e.theme, - u = + i = e.getStyles, + s = e.innerRef, + c = e.isHidden, + u = e.isDisabled, + l = e.theme, + f = (e.selectProps, - (function(e, t) { - if (null == e) return {}; - var n, - r, - o = {}, - i = Object.keys(e); - for (r = 0; r < i.length; r++) - (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); - return o; - })(e, [ + Object(r.a)(e, [ 'className', 'cx', 'getStyles', @@ -247909,36 +247316,38 @@ object-assign 'theme', 'selectProps' ])); - return Object(a.c)( + return Object(b.c)( 'div', - { css: r('input', J({ theme: c }, u)) }, - Object(a.c)( - x.a, - J( + { css: i('input', Object(a.a)({ theme: l }, f)) }, + Object(b.c)( + j.a, + Object(o.a)( { className: n({ input: !0 }, t), - inputRef: o, - inputStyle: Z(i), - disabled: s + inputRef: s, + inputStyle: ae(c), + disabled: u }, - u + f ) ) ); }, - LoadingIndicator: K, + LoadingIndicator: ie, Menu: function(e) { var t = e.children, n = e.className, r = e.cx, - o = e.getStyles, - i = e.innerRef, + i = e.getStyles, + a = e.innerRef, s = e.innerProps; - return Object(a.c)( + return Object(b.c)( 'div', - w({ css: o('menu', e), className: r({ menu: !0 }, n) }, s, { - ref: i - }), + Object(o.a)( + { css: i('menu', e), className: r({ menu: !0 }, n) }, + s, + { ref: a } + ), t ); }, @@ -247948,47 +247357,43 @@ object-assign r = e.cx, o = e.getStyles, i = e.isMulti, - s = e.innerRef; - return Object(a.c)( + a = e.innerRef; + return Object(b.c)( 'div', { css: o('menuList', e), className: r({ 'menu-list': !0, 'menu-list--is-multi': i }, n), - ref: s + ref: a }, t ); }, - MenuPortal: P, - LoadingMessage: L, - NoOptionsMessage: C, - MultiValue: oe, - MultiValueContainer: ne, - MultiValueLabel: re, - MultiValueRemove: function(e) { - var t = e.children, - n = e.innerProps; - return Object(a.c)('div', n, t || Object(a.c)(H, { size: 14 })); - }, + MenuPortal: Y, + LoadingMessage: H, + NoOptionsMessage: B, + MultiValue: fe, + MultiValueContainer: ce, + MultiValueLabel: ue, + MultiValueRemove: le, Option: function(e) { var t = e.children, n = e.className, r = e.cx, - o = e.getStyles, - i = e.isDisabled, + i = e.getStyles, + a = e.isDisabled, s = e.isFocused, c = e.isSelected, u = e.innerRef, l = e.innerProps; - return Object(a.c)( + return Object(b.c)( 'div', - ie( + Object(o.a)( { - css: o('option', e), + css: i('option', e), className: r( { option: !0, - 'option--is-disabled': i, + 'option--is-disabled': a, 'option--is-focused': s, 'option--is-selected': c }, @@ -248005,16 +247410,16 @@ object-assign var t = e.children, n = e.className, r = e.cx, - o = e.getStyles, - i = e.innerProps; - return Object(a.c)( + i = e.getStyles, + a = e.innerProps; + return Object(b.c)( 'div', - ae( + Object(o.a)( { - css: o('placeholder', e), + css: i('placeholder', e), className: r({ placeholder: !0 }, n) }, - i + a ), t ); @@ -248023,18 +247428,18 @@ object-assign var t = e.children, n = e.className, r = e.cx, - o = e.getStyles, - i = e.innerProps, + i = e.getStyles, + a = e.innerProps, s = e.isDisabled, c = e.isRtl; - return Object(a.c)( + return Object(b.c)( 'div', - R( + Object(o.a)( { - css: o('container', e), + css: i('container', e), className: r({ '--is-disabled': s, '--is-rtl': c }, n) }, - i + a ), t ); @@ -248043,16 +247448,16 @@ object-assign var t = e.children, n = e.className, r = e.cx, - o = e.getStyles, - i = e.isDisabled, + i = e.getStyles, + a = e.isDisabled, s = e.innerProps; - return Object(a.c)( + return Object(b.c)( 'div', - se( + Object(o.a)( { - css: o('singleValue', e), + css: i('singleValue', e), className: r( - { 'single-value': !0, 'single-value--is-disabled': i }, + { 'single-value': !0, 'single-value--is-disabled': a }, n ) }, @@ -248061,31 +247466,12 @@ object-assign t ); }, - ValueContainer: function(e) { - var t = e.children, - n = e.className, - r = e.cx, - o = e.isMulti, - i = e.getStyles, - s = e.hasValue; - return Object(a.c)( - 'div', - { - css: i('valueContainer', e), - className: r( - { - 'value-container': !0, - 'value-container--is-multi': o, - 'value-container--has-value': s - }, - n - ) - }, - t - ); - } + ValueContainer: G }, - le = [ + pe = function(e) { + return Object(a.a)({}, de, e.components); + }, + he = [ { base: 'A', letters: /[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g @@ -248303,36 +247689,24 @@ object-assign letters: /[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g } ], - fe = function(e) { - for (var t = 0; t < le.length; t++) - e = e.replace(le[t].letters, le[t].base); + ge = function(e) { + for (var t = 0; t < he.length; t++) + e = e.replace(he[t].letters, he[t].base); return e; - }; - function de() { - return (de = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - var pe = function(e) { + }, + me = function(e) { return e.replace(/^\s+|\s+$/g, ''); }, - he = function(e) { - return e.label + ' ' + e.value; + be = function(e) { + return ''.concat(e.label, ' ').concat(e.value); }, - ge = function(e) { + ye = function(e) { return function(t, n) { - var r = de( + var r = Object(a.a)( { ignoreCase: !0, ignoreAccents: !0, - stringify: he, + stringify: be, trim: !0, matchFrom: 'any' }, @@ -248340,743 +247714,826 @@ object-assign ), o = r.ignoreCase, i = r.ignoreAccents, - a = r.stringify, - s = r.trim, - c = r.matchFrom, - u = s ? pe(n) : n, - l = s ? pe(a(t)) : a(t); + s = r.stringify, + c = r.trim, + u = r.matchFrom, + l = c ? me(n) : n, + f = c ? me(s(t)) : s(t); return ( - o && ((u = u.toLowerCase()), (l = l.toLowerCase())), - i && ((u = fe(u)), (l = fe(l))), - 'start' === c ? l.substr(0, u.length) === u : l.indexOf(u) > -1 + o && ((l = l.toLowerCase()), (f = f.toLowerCase())), + i && ((l = ge(l)), (f = ge(f))), + 'start' === u ? f.substr(0, l.length) === l : f.indexOf(l) > -1 ); }; - }; - function me() { - return (me = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - var be = { + }, + ve = { name: '1laao21-a11yText', styles: 'label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;' }, - ye = function(e) { - return Object(a.c)('span', me({ css: be }, e)); - }; - function ve() { - return (ve = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - function _e(e) { - e.in, e.out, e.onExited, e.appear, e.enter, e.exit; - var t = e.innerRef, - n = - (e.emotion, - (function(e, t) { - if (null == e) return {}; - var n, - r, - o = {}, - i = Object.keys(e); - for (r = 0; r < i.length; r++) - (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); - return o; - })(e, [ - 'in', - 'out', - 'onExited', - 'appear', - 'enter', - 'exit', - 'innerRef', - 'emotion' - ])); - return Object(a.c)( - 'input', - ve({ ref: t }, n, { - css: Object(v.a)( + _e = function(e) { + return Object(b.c)('span', Object(o.a)({ css: ve }, e)); + }, + we = (function(e) { + function t() { + return ( + Object(s.a)(this, t), + Object(u.a)(this, Object(l.a)(t).apply(this, arguments)) + ); + } + return ( + Object(f.a)(t, e), + Object(c.a)(t, [ { - label: 'dummyInput', - background: 0, - border: 0, - fontSize: 'inherit', - outline: 0, - padding: 0, - width: 1, - color: 'transparent', - left: -100, - opacity: 0, - position: 'relative', - transform: 'scale(0)' - }, - '' - ) - }) - ); - } - var xe = (function(e) { - var t, n; - function r() { - return e.apply(this, arguments) || this; + key: 'render', + value: function() { + var e = this.props, + t = + (e.in, + e.out, + e.onExited, + e.appear, + e.enter, + e.exit, + e.innerRef), + n = + (e.emotion, + Object(r.a)(e, [ + 'in', + 'out', + 'onExited', + 'appear', + 'enter', + 'exit', + 'innerRef', + 'emotion' + ])); + return Object(b.c)( + 'input', + Object(o.a)({ ref: t }, n, { + css: Object(L.a)( + { + label: 'dummyInput', + background: 0, + border: 0, + fontSize: 'inherit', + outline: 0, + padding: 0, + width: 1, + color: 'transparent', + left: -100, + opacity: 0, + position: 'relative', + transform: 'scale(0)' + }, + '' + ) + }) + ); + } + } + ]), + t + ); + })(h.Component), + xe = (function(e) { + function t() { + return ( + Object(s.a)(this, t), + Object(u.a)(this, Object(l.a)(t).apply(this, arguments)) + ); } - (n = e), - ((t = r).prototype = Object.create(n.prototype)), - (t.prototype.constructor = t), - (t.__proto__ = n); - var o = r.prototype; return ( - (o.componentDidMount = function() { - this.props.innerRef(Object(s.findDOMNode)(this)); - }), - (o.componentWillUnmount = function() { - this.props.innerRef(null); - }), - (o.render = function() { - return this.props.children; - }), - r + Object(f.a)(t, e), + Object(c.a)(t, [ + { + key: 'componentDidMount', + value: function() { + this.props.innerRef(Object(y.findDOMNode)(this)); + } + }, + { + key: 'componentWillUnmount', + value: function() { + this.props.innerRef(null); + } + }, + { + key: 'render', + value: function() { + return this.props.children; + } + } + ]), + t ); - })(r.Component), - we = ['boxSizing', 'height', 'overflow', 'paddingRight', 'position'], - Me = { + })(h.Component), + Me = ['boxSizing', 'height', 'overflow', 'paddingRight', 'position'], + ke = { boxSizing: 'border-box', overflow: 'hidden', position: 'relative', height: '100%' }; - function ke(e) { + function Se(e) { e.preventDefault(); } - function Se(e) { + function Oe(e) { e.stopPropagation(); } - function Ae() { + function Ee() { var e = this.scrollTop, t = this.scrollHeight, n = e + this.offsetHeight; 0 === e ? (this.scrollTop = 1) : n === t && (this.scrollTop = e - 1); } - function Oe() { + function Ae() { return 'ontouchstart' in window || navigator.maxTouchPoints; } - var Ee = !(!window.document || !window.document.createElement), - Te = 0, - Ce = (function(e) { - var t, n; - function r() { - for ( - var t, n = arguments.length, r = new Array(n), o = 0; - o < n; - o++ - ) - r[o] = arguments[o]; + var Te = !(!window.document || !window.document.createElement), + Ce = 0, + Le = (function(e) { + function t() { + var e, n; + Object(s.a)(this, t); + for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) + o[i] = arguments[i]; return ( - ((t = - e.call.apply(e, [this].concat(r)) || this).originalStyles = {}), - (t.listenerOptions = { capture: !1, passive: !1 }), - t + (n = Object(u.a)( + this, + (e = Object(l.a)(t)).call.apply(e, [this].concat(o)) + )), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'originalStyles', {}), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'listenerOptions', { + capture: !1, + passive: !1 + }), + n ); } - (n = e), - ((t = r).prototype = Object.create(n.prototype)), - (t.prototype.constructor = t), - (t.__proto__ = n); - var o = r.prototype; return ( - (o.componentDidMount = function() { - var e = this; - if (Ee) { - var t = this.props, - n = t.accountForScrollbars, - r = t.touchScrollTarget, - o = document.body, - i = o && o.style; - if ( - (n && - we.forEach(function(t) { - var n = i && i[t]; - e.originalStyles[t] = n; - }), - n && Te < 1) - ) { - var a = parseInt(this.originalStyles.paddingRight, 10) || 0, - s = document.body ? document.body.clientWidth : 0, - c = window.innerWidth - s + a || 0; - Object.keys(Me).forEach(function(e) { - var t = Me[e]; - i && (i[e] = t); - }), - i && (i.paddingRight = c + 'px'); - } - o && - Oe() && - (o.addEventListener('touchmove', ke, this.listenerOptions), - r && - (r.addEventListener('touchstart', Ae, this.listenerOptions), - r.addEventListener('touchmove', Se, this.listenerOptions))), - (Te += 1); - } - }), - (o.componentWillUnmount = function() { - var e = this; - if (Ee) { - var t = this.props, - n = t.accountForScrollbars, - r = t.touchScrollTarget, - o = document.body, - i = o && o.style; - (Te = Math.max(Te - 1, 0)), - n && - Te < 1 && - we.forEach(function(t) { - var n = e.originalStyles[t]; - i && (i[t] = n); - }), - o && - Oe() && - (o.removeEventListener( - 'touchmove', - ke, - this.listenerOptions - ), - r && - (r.removeEventListener( - 'touchstart', - Ae, - this.listenerOptions - ), - r.removeEventListener( + Object(f.a)(t, e), + Object(c.a)(t, [ + { + key: 'componentDidMount', + value: function() { + var e = this; + if (Te) { + var t = this.props, + n = t.accountForScrollbars, + r = t.touchScrollTarget, + o = document.body, + i = o && o.style; + if ( + (n && + Me.forEach(function(t) { + var n = i && i[t]; + e.originalStyles[t] = n; + }), + n && Ce < 1) + ) { + var a = + parseInt(this.originalStyles.paddingRight, 10) || 0, + s = document.body ? document.body.clientWidth : 0, + c = window.innerWidth - s + a || 0; + Object.keys(ke).forEach(function(e) { + var t = ke[e]; + i && (i[e] = t); + }), + i && (i.paddingRight = ''.concat(c, 'px')); + } + o && + Ae() && + (o.addEventListener( 'touchmove', Se, this.listenerOptions - ))); + ), + r && + (r.addEventListener( + 'touchstart', + Ee, + this.listenerOptions + ), + r.addEventListener( + 'touchmove', + Oe, + this.listenerOptions + ))), + (Ce += 1); + } + } + }, + { + key: 'componentWillUnmount', + value: function() { + var e = this; + if (Te) { + var t = this.props, + n = t.accountForScrollbars, + r = t.touchScrollTarget, + o = document.body, + i = o && o.style; + (Ce = Math.max(Ce - 1, 0)), + n && + Ce < 1 && + Me.forEach(function(t) { + var n = e.originalStyles[t]; + i && (i[t] = n); + }), + o && + Ae() && + (o.removeEventListener( + 'touchmove', + Se, + this.listenerOptions + ), + r && + (r.removeEventListener( + 'touchstart', + Ee, + this.listenerOptions + ), + r.removeEventListener( + 'touchmove', + Oe, + this.listenerOptions + ))); + } + } + }, + { + key: 'render', + value: function() { + return null; + } } - }), - (o.render = function() { - return null; - }), - r + ]), + t ); - })(r.Component); - Ce.defaultProps = { accountForScrollbars: !0 }; - var Le = { + })(h.Component); + Object(p.a)(Le, 'defaultProps', { accountForScrollbars: !0 }); + var Pe = { name: '1dsbpcp', styles: 'position:fixed;left:0;bottom:0;right:0;top:0;' }, - Pe = (function(e) { - var t, n; - function r() { - for ( - var t, n = arguments.length, r = new Array(n), o = 0; - o < n; - o++ - ) - r[o] = arguments[o]; + De = (function(e) { + function t() { + var e, n; + Object(s.a)(this, t); + for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) + o[i] = arguments[i]; return ( - ((t = e.call.apply(e, [this].concat(r)) || this).state = { + (n = Object(u.a)( + this, + (e = Object(l.a)(t)).call.apply(e, [this].concat(o)) + )), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'state', { touchScrollTarget: null }), - (t.getScrollTarget = function(e) { - e !== t.state.touchScrollTarget && - t.setState({ touchScrollTarget: e }); + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'getScrollTarget', + function(e) { + e !== n.state.touchScrollTarget && + n.setState({ touchScrollTarget: e }); + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'blurSelectInput', + function() { + document.activeElement && document.activeElement.blur(); + } + ), + n + ); + } + return ( + Object(f.a)(t, e), + Object(c.a)(t, [ + { + key: 'render', + value: function() { + var e = this.props, + t = e.children, + n = e.isEnabled, + r = this.state.touchScrollTarget; + return n + ? Object(b.c)( + 'div', + null, + Object(b.c)('div', { + onClick: this.blurSelectInput, + css: Pe + }), + Object(b.c)(xe, { innerRef: this.getScrollTarget }, t), + r ? Object(b.c)(Le, { touchScrollTarget: r }) : null + ) + : t; + } + } + ]), + t + ); + })(h.PureComponent), + je = (function(e) { + function t() { + var e, n; + Object(s.a)(this, t); + for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) + o[i] = arguments[i]; + return ( + (n = Object(u.a)( + this, + (e = Object(l.a)(t)).call.apply(e, [this].concat(o)) + )), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'isBottom', !1), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'isTop', !1), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'scrollTarget', void 0), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'touchStart', void 0), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'cancelScroll', function( + e + ) { + e.preventDefault(), e.stopPropagation(); + }), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'handleEventDelta', + function(e, t) { + var r = n.props, + o = r.onBottomArrive, + i = r.onBottomLeave, + a = r.onTopArrive, + s = r.onTopLeave, + c = n.scrollTarget, + u = c.scrollTop, + l = c.scrollHeight, + f = c.clientHeight, + d = n.scrollTarget, + p = t > 0, + h = l - f - u, + g = !1; + h > t && n.isBottom && (i && i(e), (n.isBottom = !1)), + p && n.isTop && (s && s(e), (n.isTop = !1)), + p && t > h + ? (o && !n.isBottom && o(e), + (d.scrollTop = l), + (g = !0), + (n.isBottom = !0)) + : !p && + -t > u && + (a && !n.isTop && a(e), + (d.scrollTop = 0), + (g = !0), + (n.isTop = !0)), + g && n.cancelScroll(e); + } + ), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'onWheel', function(e) { + n.handleEventDelta(e, e.deltaY); }), - (t.blurSelectInput = function() { - document.activeElement && document.activeElement.blur(); + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'onTouchStart', function( + e + ) { + n.touchStart = e.changedTouches[0].clientY; }), - t + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'onTouchMove', function( + e + ) { + var t = n.touchStart - e.changedTouches[0].clientY; + n.handleEventDelta(e, t); + }), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'getScrollTarget', + function(e) { + n.scrollTarget = e; + } + ), + n ); } return ( - (n = e), - ((t = r).prototype = Object.create(n.prototype)), - (t.prototype.constructor = t), - (t.__proto__ = n), - (r.prototype.render = function() { - var e = this.props, - t = e.children, - n = e.isEnabled, - r = this.state.touchScrollTarget; - return n - ? Object(a.c)( - 'div', - null, - Object(a.c)('div', { - onClick: this.blurSelectInput, - css: Le - }), - Object(a.c)(xe, { innerRef: this.getScrollTarget }, t), - r ? Object(a.c)(Ce, { touchScrollTarget: r }) : null - ) - : t; - }), - r + Object(f.a)(t, e), + Object(c.a)(t, [ + { + key: 'componentDidMount', + value: function() { + this.startListening(this.scrollTarget); + } + }, + { + key: 'componentWillUnmount', + value: function() { + this.stopListening(this.scrollTarget); + } + }, + { + key: 'startListening', + value: function(e) { + e && + ('function' == typeof e.addEventListener && + e.addEventListener('wheel', this.onWheel, !1), + 'function' == typeof e.addEventListener && + e.addEventListener('touchstart', this.onTouchStart, !1), + 'function' == typeof e.addEventListener && + e.addEventListener('touchmove', this.onTouchMove, !1)); + } + }, + { + key: 'stopListening', + value: function(e) { + 'function' == typeof e.removeEventListener && + e.removeEventListener('wheel', this.onWheel, !1), + 'function' == typeof e.removeEventListener && + e.removeEventListener( + 'touchstart', + this.onTouchStart, + !1 + ), + 'function' == typeof e.removeEventListener && + e.removeEventListener('touchmove', this.onTouchMove, !1); + } + }, + { + key: 'render', + value: function() { + return g.a.createElement( + xe, + { innerRef: this.getScrollTarget }, + this.props.children + ); + } + } + ]), + t ); - })(r.PureComponent); - var De = (function(e) { - var t, n; - function r() { - for (var t, n = arguments.length, r = new Array(n), o = 0; o < n; o++) - r[o] = arguments[o]; + })(h.Component), + ze = (function(e) { + function t() { + return ( + Object(s.a)(this, t), + Object(u.a)(this, Object(l.a)(t).apply(this, arguments)) + ); + } return ( - ((t = e.call.apply(e, [this].concat(r)) || this).isBottom = !1), - (t.isTop = !1), - (t.scrollTarget = void 0), - (t.touchStart = void 0), - (t.cancelScroll = function(e) { - e.preventDefault(), e.stopPropagation(); - }), - (t.handleEventDelta = function(e, n) { - var r = t.props, - o = r.onBottomArrive, - i = r.onBottomLeave, - a = r.onTopArrive, - s = r.onTopLeave, - c = t.scrollTarget, - u = c.scrollTop, - l = c.scrollHeight, - f = c.clientHeight, - d = t.scrollTarget, - p = n > 0, - h = l - f - u, - g = !1; - h > n && t.isBottom && (i && i(e), (t.isBottom = !1)), - p && t.isTop && (s && s(e), (t.isTop = !1)), - p && n > h - ? (o && !t.isBottom && o(e), - (d.scrollTop = l), - (g = !0), - (t.isBottom = !0)) - : !p && - -n > u && - (a && !t.isTop && a(e), - (d.scrollTop = 0), - (g = !0), - (t.isTop = !0)), - g && t.cancelScroll(e); - }), - (t.onWheel = function(e) { - t.handleEventDelta(e, e.deltaY); - }), - (t.onTouchStart = function(e) { - t.touchStart = e.changedTouches[0].clientY; - }), - (t.onTouchMove = function(e) { - var n = t.touchStart - e.changedTouches[0].clientY; - t.handleEventDelta(e, n); - }), - (t.getScrollTarget = function(e) { - t.scrollTarget = e; - }), + Object(f.a)(t, e), + Object(c.a)(t, [ + { + key: 'render', + value: function() { + var e = this.props, + t = e.isEnabled, + n = Object(r.a)(e, ['isEnabled']); + return t ? g.a.createElement(je, n) : this.props.children; + } + } + ]), t ); - } - (n = e), - ((t = r).prototype = Object.create(n.prototype)), - (t.prototype.constructor = t), - (t.__proto__ = n); - var i = r.prototype; - return ( - (i.componentDidMount = function() { - this.startListening(this.scrollTarget); - }), - (i.componentWillUnmount = function() { - this.stopListening(this.scrollTarget); - }), - (i.startListening = function(e) { - e && - ('function' == typeof e.addEventListener && - e.addEventListener('wheel', this.onWheel, !1), - 'function' == typeof e.addEventListener && - e.addEventListener('touchstart', this.onTouchStart, !1), - 'function' == typeof e.addEventListener && - e.addEventListener('touchmove', this.onTouchMove, !1)); - }), - (i.stopListening = function(e) { - 'function' == typeof e.removeEventListener && - e.removeEventListener('wheel', this.onWheel, !1), - 'function' == typeof e.removeEventListener && - e.removeEventListener('touchstart', this.onTouchStart, !1), - 'function' == typeof e.removeEventListener && - e.removeEventListener('touchmove', this.onTouchMove, !1); - }), - (i.render = function() { - return o.a.createElement( - xe, - { innerRef: this.getScrollTarget }, - this.props.children + })(h.Component); + Object(p.a)(ze, 'defaultProps', { isEnabled: !0 }); + var Ne = function(e) { + var t = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : {}, + n = t.isSearchable, + r = t.isMulti, + o = t.label, + i = t.isDisabled; + switch (e) { + case 'menu': + return 'Use Up and Down to choose options'.concat( + i ? '' : ', press Enter to select the currently focused option', + ', press Escape to exit the menu, press Tab to select the option and exit the menu.' + ); + case 'input': + return '' + .concat(o || 'Select', ' is focused ') + .concat( + n ? ',type to refine list' : '', + ', press Down to open the menu, ' + ) + .concat(r ? ' press left to focus selected values' : ''); + case 'value': + return 'Use left and right to toggle between focused values, press Backspace to remove the currently focused value'; + } + }, + Re = function(e, t) { + var n = t.value, + r = t.isDisabled; + if (n) + switch (e) { + case 'deselect-option': + case 'pop-value': + case 'remove-value': + return 'option '.concat(n, ', deselected.'); + case 'select-option': + return 'option '.concat( + n, + r ? ' is disabled. Select another option.' : ', selected.' + ); + } + }, + Ie = function(e) { + return !!e.isDisabled; + }, + Fe = { + clearIndicator: ne, + container: function(e) { + var t = e.isDisabled; + return { + label: 'container', + direction: e.isRtl ? 'rtl' : null, + pointerEvents: t ? 'none' : null, + position: 'relative' + }; + }, + control: function(e) { + var t = e.isDisabled, + n = e.isFocused, + r = e.theme, + o = r.colors, + i = r.borderRadius, + a = r.spacing; + return { + label: 'control', + alignItems: 'center', + backgroundColor: t ? o.neutral5 : o.neutral0, + borderColor: t ? o.neutral10 : n ? o.primary : o.neutral20, + borderRadius: i, + borderStyle: 'solid', + borderWidth: 1, + boxShadow: n ? '0 0 0 1px '.concat(o.primary) : null, + cursor: 'default', + display: 'flex', + flexWrap: 'wrap', + justifyContent: 'space-between', + minHeight: a.controlHeight, + outline: '0 !important', + position: 'relative', + transition: 'all 100ms', + '&:hover': { borderColor: n ? o.primary : o.neutral30 } + }; + }, + dropdownIndicator: te, + group: function(e) { + var t = e.theme.spacing; + return { + paddingBottom: 2 * t.baseUnit, + paddingTop: 2 * t.baseUnit + }; + }, + groupHeading: function(e) { + var t = e.theme.spacing; + return { + label: 'group', + color: '#999', + cursor: 'default', + display: 'block', + fontSize: '75%', + fontWeight: '500', + marginBottom: '0.25em', + paddingLeft: 3 * t.baseUnit, + paddingRight: 3 * t.baseUnit, + textTransform: 'uppercase' + }; + }, + indicatorsContainer: function() { + return { + alignItems: 'center', + alignSelf: 'stretch', + display: 'flex', + flexShrink: 0 + }; + }, + indicatorSeparator: function(e) { + var t = e.isDisabled, + n = e.theme, + r = n.spacing.baseUnit, + o = n.colors; + return { + label: 'indicatorSeparator', + alignSelf: 'stretch', + backgroundColor: t ? o.neutral10 : o.neutral20, + marginBottom: 2 * r, + marginTop: 2 * r, + width: 1 + }; + }, + input: function(e) { + var t = e.isDisabled, + n = e.theme, + r = n.spacing, + o = n.colors; + return { + margin: r.baseUnit / 2, + paddingBottom: r.baseUnit / 2, + paddingTop: r.baseUnit / 2, + visibility: t ? 'hidden' : 'visible', + color: o.neutral80 + }; + }, + loadingIndicator: function(e) { + var t = e.isFocused, + n = e.size, + r = e.theme, + o = r.colors, + i = r.spacing.baseUnit; + return { + label: 'loadingIndicator', + color: t ? o.neutral60 : o.neutral20, + display: 'flex', + padding: 2 * i, + transition: 'color 150ms', + alignSelf: 'center', + fontSize: n, + lineHeight: 1, + marginRight: n, + textAlign: 'center', + verticalAlign: 'middle' + }; + }, + loadingMessage: q, + menu: function(e) { + var t, + n = e.placement, + r = e.theme, + o = r.borderRadius, + i = r.spacing, + a = r.colors; + return ( + (t = { label: 'menu' }), + Object(p.a)( + t, + (function(e) { + return e ? { bottom: 'top', top: 'bottom' }[e] : 'bottom'; + })(n), + '100%' + ), + Object(p.a)(t, 'backgroundColor', a.neutral0), + Object(p.a)(t, 'borderRadius', o), + Object(p.a)( + t, + 'boxShadow', + '0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)' + ), + Object(p.a)(t, 'marginBottom', i.menuGutter), + Object(p.a)(t, 'marginTop', i.menuGutter), + Object(p.a)(t, 'position', 'absolute'), + Object(p.a)(t, 'width', '100%'), + Object(p.a)(t, 'zIndex', 1), + t ); - }), - r - ); - })(r.Component); - function ze(e) { - var t = e.isEnabled, - n = void 0 === t || t, - r = (function(e, t) { - if (null == e) return {}; - var n, - r, - o = {}, - i = Object.keys(e); - for (r = 0; r < i.length; r++) - (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); - return o; - })(e, ['isEnabled']); - return n ? o.a.createElement(De, r) : r.children; - } - var Ne = function(e, t) { - void 0 === t && (t = {}); - var n = t, - r = n.isSearchable, - o = n.isMulti, - i = n.label, - a = n.isDisabled; - switch (e) { - case 'menu': - return ( - 'Use Up and Down to choose options' + - (a - ? '' - : ', press Enter to select the currently focused option') + - ', press Escape to exit the menu, press Tab to select the option and exit the menu.' - ); - case 'input': - return ( - (i || 'Select') + - ' is focused ' + - (r ? ',type to refine list' : '') + - ', press Down to open the menu, ' + - (o ? ' press left to focus selected values' : '') - ); - case 'value': - return 'Use left and right to toggle between focused values, press Backspace to remove the currently focused value'; + }, + menuList: function(e) { + var t = e.maxHeight, + n = e.theme.spacing.baseUnit; + return { + maxHeight: t, + overflowY: 'auto', + paddingBottom: n, + paddingTop: n, + position: 'relative', + WebkitOverflowScrolling: 'touch' + }; + }, + menuPortal: function(e) { + var t = e.rect, + n = e.offset, + r = e.position; + return { + left: t.left, + position: r, + top: n, + width: t.width, + zIndex: 1 + }; + }, + multiValue: function(e) { + var t = e.theme, + n = t.spacing, + r = t.borderRadius; + return { + label: 'multiValue', + backgroundColor: t.colors.neutral10, + borderRadius: r / 2, + display: 'flex', + margin: n.baseUnit / 2, + minWidth: 0 + }; + }, + multiValueLabel: function(e) { + var t = e.theme, + n = t.borderRadius, + r = t.colors, + o = e.cropWithEllipsis; + return { + borderRadius: n / 2, + color: r.neutral80, + fontSize: '85%', + overflow: 'hidden', + padding: 3, + paddingLeft: 6, + textOverflow: o ? 'ellipsis' : null, + whiteSpace: 'nowrap' + }; + }, + multiValueRemove: function(e) { + var t = e.theme, + n = t.spacing, + r = t.borderRadius, + o = t.colors; + return { + alignItems: 'center', + borderRadius: r / 2, + backgroundColor: e.isFocused && o.dangerLight, + display: 'flex', + paddingLeft: n.baseUnit, + paddingRight: n.baseUnit, + ':hover': { backgroundColor: o.dangerLight, color: o.danger } + }; + }, + noOptionsMessage: F, + option: function(e) { + var t = e.isDisabled, + n = e.isFocused, + r = e.isSelected, + o = e.theme, + i = o.spacing, + a = o.colors; + return { + label: 'option', + backgroundColor: r ? a.primary : n ? a.primary25 : 'transparent', + color: t ? a.neutral20 : r ? a.neutral0 : 'inherit', + cursor: 'default', + display: 'block', + fontSize: 'inherit', + padding: '' + .concat(2 * i.baseUnit, 'px ') + .concat(3 * i.baseUnit, 'px'), + width: '100%', + userSelect: 'none', + WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)', + ':active': { + backgroundColor: !t && (r ? a.primary : a.primary50) + } + }; + }, + placeholder: function(e) { + var t = e.theme, + n = t.spacing; + return { + label: 'placeholder', + color: t.colors.neutral50, + marginLeft: n.baseUnit / 2, + marginRight: n.baseUnit / 2, + position: 'absolute', + top: '50%', + transform: 'translateY(-50%)' + }; + }, + singleValue: function(e) { + var t = e.isDisabled, + n = e.theme, + r = n.spacing, + o = n.colors; + return { + label: 'singleValue', + color: t ? o.neutral40 : o.neutral80, + marginLeft: r.baseUnit / 2, + marginRight: r.baseUnit / 2, + maxWidth: 'calc(100% - '.concat(2 * r.baseUnit, 'px)'), + overflow: 'hidden', + position: 'absolute', + textOverflow: 'ellipsis', + whiteSpace: 'nowrap', + top: '50%', + transform: 'translateY(-50%)' + }; + }, + valueContainer: function(e) { + var t = e.theme.spacing; + return { + alignItems: 'center', + display: 'flex', + flex: 1, + flexWrap: 'wrap', + padding: '' + .concat(t.baseUnit / 2, 'px ') + .concat(2 * t.baseUnit, 'px'), + WebkitOverflowScrolling: 'touch', + position: 'relative', + overflow: 'hidden' + }; } - }, - je = function(e, t) { - var n = t.value, - r = t.isDisabled; - if (n) - switch (e) { - case 'deselect-option': - case 'pop-value': - case 'remove-value': - return 'option ' + n + ', deselected.'; - case 'select-option': - return r - ? 'option ' + n + ' is disabled. Select another option.' - : 'option ' + n + ', selected.'; - } - }, - Re = function(e) { - return !!e.isDisabled; }; - function Ie() { - return (Ie = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - var Fe = { - clearIndicator: U, - container: function(e) { - var t = e.isDisabled; - return { - label: 'container', - direction: e.isRtl ? 'rtl' : null, - pointerEvents: t ? 'none' : null, - position: 'relative' - }; - }, - control: function(e) { - var t = e.isDisabled, - n = e.isFocused, - r = e.theme, - o = r.colors, - i = r.borderRadius, - a = r.spacing; - return { - label: 'control', - alignItems: 'center', - backgroundColor: t ? o.neutral5 : o.neutral0, - borderColor: t ? o.neutral10 : n ? o.primary : o.neutral20, - borderRadius: i, - borderStyle: 'solid', - borderWidth: 1, - boxShadow: n ? '0 0 0 1px ' + o.primary : null, - cursor: 'default', - display: 'flex', - flexWrap: 'wrap', - justifyContent: 'space-between', - minHeight: a.controlHeight, - outline: '0 !important', - position: 'relative', - transition: 'all 100ms', - '&:hover': { borderColor: n ? o.primary : o.neutral30 } - }; - }, - dropdownIndicator: V, - group: function(e) { - var t = e.theme.spacing; - return { paddingBottom: 2 * t.baseUnit, paddingTop: 2 * t.baseUnit }; - }, - groupHeading: function(e) { - var t = e.theme.spacing; - return { - label: 'group', - color: '#999', - cursor: 'default', - display: 'block', - fontSize: '75%', - fontWeight: '500', - marginBottom: '0.25em', - paddingLeft: 3 * t.baseUnit, - paddingRight: 3 * t.baseUnit, - textTransform: 'uppercase' - }; - }, - indicatorsContainer: function() { - return { - alignItems: 'center', - alignSelf: 'stretch', - display: 'flex', - flexShrink: 0 - }; - }, - indicatorSeparator: function(e) { - var t = e.isDisabled, - n = e.theme, - r = n.spacing.baseUnit, - o = n.colors; - return { - label: 'indicatorSeparator', - alignSelf: 'stretch', - backgroundColor: t ? o.neutral10 : o.neutral20, - marginBottom: 2 * r, - marginTop: 2 * r, - width: 1 - }; - }, - input: function(e) { - var t = e.isDisabled, - n = e.theme, - r = n.spacing, - o = n.colors; - return { - margin: r.baseUnit / 2, - paddingBottom: r.baseUnit / 2, - paddingTop: r.baseUnit / 2, - visibility: t ? 'hidden' : 'visible', - color: o.neutral80 - }; - }, - loadingIndicator: function(e) { - var t = e.isFocused, - n = e.size, - r = e.theme, - o = r.colors, - i = r.spacing.baseUnit; - return { - label: 'loadingIndicator', - color: t ? o.neutral60 : o.neutral20, - display: 'flex', - padding: 2 * i, - transition: 'color 150ms', - alignSelf: 'center', - fontSize: n, - lineHeight: 1, - marginRight: n, - textAlign: 'center', - verticalAlign: 'middle' - }; - }, - loadingMessage: T, - menu: function(e) { - var t, - n = e.placement, - r = e.theme, - o = r.borderRadius, - i = r.spacing, - a = r.colors; - return ( - ((t = { label: 'menu' })[ - (function(e) { - return e ? { bottom: 'top', top: 'bottom' }[e] : 'bottom'; - })(n) - ] = '100%'), - (t.backgroundColor = a.neutral0), - (t.borderRadius = o), - (t.boxShadow = - '0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)'), - (t.marginBottom = i.menuGutter), - (t.marginTop = i.menuGutter), - (t.position = 'absolute'), - (t.width = '100%'), - (t.zIndex = 1), - t - ); - }, - menuList: function(e) { - var t = e.maxHeight, - n = e.theme.spacing.baseUnit; - return { - maxHeight: t, - overflowY: 'auto', - paddingBottom: n, - paddingTop: n, - position: 'relative', - WebkitOverflowScrolling: 'touch' - }; - }, - menuPortal: function(e) { - var t = e.rect, - n = e.offset, - r = e.position; - return { - left: t.left, - position: r, - top: n, - width: t.width, - zIndex: 1 - }; - }, - multiValue: function(e) { - var t = e.theme, - n = t.spacing, - r = t.borderRadius; - return { - label: 'multiValue', - backgroundColor: t.colors.neutral10, - borderRadius: r / 2, - display: 'flex', - margin: n.baseUnit / 2, - minWidth: 0 - }; - }, - multiValueLabel: function(e) { - var t = e.theme, - n = t.borderRadius, - r = t.colors, - o = e.cropWithEllipsis; - return { - borderRadius: n / 2, - color: r.neutral80, - fontSize: '85%', - overflow: 'hidden', - padding: 3, - paddingLeft: 6, - textOverflow: o ? 'ellipsis' : null, - whiteSpace: 'nowrap' - }; - }, - multiValueRemove: function(e) { - var t = e.theme, - n = t.spacing, - r = t.borderRadius, - o = t.colors; - return { - alignItems: 'center', - borderRadius: r / 2, - backgroundColor: e.isFocused && o.dangerLight, - display: 'flex', - paddingLeft: n.baseUnit, - paddingRight: n.baseUnit, - ':hover': { backgroundColor: o.dangerLight, color: o.danger } - }; - }, - noOptionsMessage: E, - option: function(e) { - var t = e.isDisabled, - n = e.isFocused, - r = e.isSelected, - o = e.theme, - i = o.spacing, - a = o.colors; - return { - label: 'option', - backgroundColor: r ? a.primary : n ? a.primary25 : 'transparent', - color: t ? a.neutral20 : r ? a.neutral0 : 'inherit', - cursor: 'default', - display: 'block', - fontSize: 'inherit', - padding: 2 * i.baseUnit + 'px ' + 3 * i.baseUnit + 'px', - width: '100%', - userSelect: 'none', - WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)', - ':active': { backgroundColor: !t && (r ? a.primary : a.primary50) } - }; - }, - placeholder: function(e) { - var t = e.theme, - n = t.spacing; - return { - label: 'placeholder', - color: t.colors.neutral50, - marginLeft: n.baseUnit / 2, - marginRight: n.baseUnit / 2, - position: 'absolute', - top: '50%', - transform: 'translateY(-50%)' - }; - }, - singleValue: function(e) { - var t = e.isDisabled, - n = e.theme, - r = n.spacing, - o = n.colors; - return { - label: 'singleValue', - color: t ? o.neutral40 : o.neutral80, - marginLeft: r.baseUnit / 2, - marginRight: r.baseUnit / 2, - maxWidth: 'calc(100% - ' + 2 * r.baseUnit + 'px)', - overflow: 'hidden', - position: 'absolute', - textOverflow: 'ellipsis', - whiteSpace: 'nowrap', - top: '50%', - transform: 'translateY(-50%)' - }; - }, - valueContainer: function(e) { - var t = e.theme.spacing; - return { - alignItems: 'center', - display: 'flex', - flex: 1, - flexWrap: 'wrap', - padding: t.baseUnit / 2 + 'px ' + 2 * t.baseUnit + 'px', - WebkitOverflowScrolling: 'touch', - position: 'relative', - overflow: 'hidden' - }; - } - }; - function qe(e, t) { - void 0 === t && (t = {}); - var n = Ie({}, e); + function qe(e) { + var t = + arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, + n = Object(a.a)({}, e); return ( Object.keys(t).forEach(function(r) { e[r] @@ -249089,57 +248546,38 @@ object-assign ); } var Be = { - borderRadius: 4, - colors: { - primary: '#2684FF', - primary75: '#4C9AFF', - primary50: '#B2D4FF', - primary25: '#DEEBFF', - danger: '#DE350B', - dangerLight: '#FFBDAD', - neutral0: 'hsl(0, 0%, 100%)', - neutral5: 'hsl(0, 0%, 95%)', - neutral10: 'hsl(0, 0%, 90%)', - neutral20: 'hsl(0, 0%, 80%)', - neutral30: 'hsl(0, 0%, 70%)', - neutral40: 'hsl(0, 0%, 60%)', - neutral50: 'hsl(0, 0%, 50%)', - neutral60: 'hsl(0, 0%, 40%)', - neutral70: 'hsl(0, 0%, 30%)', - neutral80: 'hsl(0, 0%, 20%)', - neutral90: 'hsl(0, 0%, 10%)' - }, - spacing: { baseUnit: 4, controlHeight: 38, menuGutter: 8 } - }; - function He() { - return (He = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - function Ye(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return e; - } - var We = { + borderRadius: 4, + colors: { + primary: '#2684FF', + primary75: '#4C9AFF', + primary50: '#B2D4FF', + primary25: '#DEEBFF', + danger: '#DE350B', + dangerLight: '#FFBDAD', + neutral0: 'hsl(0, 0%, 100%)', + neutral5: 'hsl(0, 0%, 95%)', + neutral10: 'hsl(0, 0%, 90%)', + neutral20: 'hsl(0, 0%, 80%)', + neutral30: 'hsl(0, 0%, 70%)', + neutral40: 'hsl(0, 0%, 60%)', + neutral50: 'hsl(0, 0%, 50%)', + neutral60: 'hsl(0, 0%, 40%)', + neutral70: 'hsl(0, 0%, 30%)', + neutral80: 'hsl(0, 0%, 20%)', + neutral90: 'hsl(0, 0%, 10%)' + }, + spacing: { baseUnit: 4, controlHeight: 38, menuGutter: 8 } + }, + He = { backspaceRemovesValue: !0, - blurInputOnSelect: y(), - captureMenuScroll: !y(), + blurInputOnSelect: C(), + captureMenuScroll: !C(), closeMenuOnSelect: !0, closeMenuOnScroll: !1, components: {}, controlShouldRenderValue: !0, escapeClearsValue: !1, - filterOption: ge(), + filterOption: ye(), formatGroupLabel: function(e) { return e.label; }, @@ -249154,7 +248592,7 @@ object-assign isMulti: !1, isRtl: !1, isSearchable: !0, - isOptionDisabled: Re, + isOptionDisabled: Ie, loadingMessage: function() { return 'Loading...'; }, @@ -249183,68 +248621,118 @@ object-assign placeholder: 'Select...', screenReaderStatus: function(e) { var t = e.count; - return t + ' result' + (1 !== t ? 's' : '') + ' available'; + return '' + .concat(t, ' result') + .concat(1 !== t ? 's' : '', ' available'); }, styles: {}, tabIndex: '0', tabSelectsValue: !0 }, - Ve = 1, - Ue = (function(e) { - var t, n; - function r(t) { + Ye = 1, + We = (function(e) { + function t(e) { var n; - ((n = e.call(this, t) || this).state = { - ariaLiveSelection: '', - ariaLiveContext: '', - focusedOption: null, - focusedValue: null, - inputIsHidden: !1, - isFocused: !1, - menuOptions: { render: [], focusable: [] }, - selectValue: [] - }), - (n.blockOptionHover = !1), - (n.isComposing = !1), - (n.clearFocusValueOnUpdate = !1), - (n.commonProps = void 0), - (n.components = void 0), - (n.hasGroups = !1), - (n.initialTouchX = 0), - (n.initialTouchY = 0), - (n.inputIsHiddenAfterUpdate = void 0), - (n.instancePrefix = ''), - (n.openAfterFocus = !1), - (n.scrollToFocusedOptionOnUpdate = !1), - (n.userIsDragging = void 0), - (n.controlRef = null), - (n.getControlRef = function(e) { - n.controlRef = e; - }), - (n.focusedOptionRef = null), - (n.getFocusedOptionRef = function(e) { - n.focusedOptionRef = e; - }), - (n.menuListRef = null), - (n.getMenuListRef = function(e) { - n.menuListRef = e; + Object(s.a)(this, t), + (n = Object(u.a)(this, Object(l.a)(t).call(this, e))), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'state', { + ariaLiveSelection: '', + ariaLiveContext: '', + focusedOption: null, + focusedValue: null, + inputIsHidden: !1, + isFocused: !1, + menuOptions: { render: [], focusable: [] }, + selectValue: [] }), - (n.inputRef = null), - (n.getInputRef = function(e) { + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'blockOptionHover', !1), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'isComposing', !1), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'clearFocusValueOnUpdate', + !1 + ), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'commonProps', void 0), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'components', void 0), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'hasGroups', !1), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'initialTouchX', 0), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'initialTouchY', 0), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'inputIsHiddenAfterUpdate', + void 0 + ), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'instancePrefix', ''), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'openAfterFocus', !1), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'scrollToFocusedOptionOnUpdate', + !1 + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'userIsDragging', + void 0 + ), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'controlRef', null), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'getControlRef', + function(e) { + n.controlRef = e; + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'focusedOptionRef', + null + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'getFocusedOptionRef', + function(e) { + n.focusedOptionRef = e; + } + ), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'menuListRef', null), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'getMenuListRef', + function(e) { + n.menuListRef = e; + } + ), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'inputRef', null), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'getInputRef', function( + e + ) { n.inputRef = e; }), - (n.cacheComponents = function(e) { - n.components = ce({}, ue, { components: e }.components); - }), - (n.focus = n.focusInput), - (n.blur = n.blurInput), - (n.onChange = function(e, t) { - var r = n.props; - (0, r.onChange)(e, He({}, t, { name: r.name })); + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'cacheComponents', + function(e) { + n.components = pe({ components: e }); + } + ), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'focus', n.focusInput), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'blur', n.blurInput), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'onChange', function( + e, + t + ) { + var r = n.props, + o = r.onChange, + i = r.name; + o(e, Object(a.a)({}, t, { name: i })); }), - (n.setValue = function(e, t, r) { - void 0 === t && (t = 'set-value'); - var o = n.props, + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'setValue', function(e) { + var t = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : 'set-value', + r = arguments.length > 2 ? arguments[2] : void 0, + o = n.props, i = o.closeMenuOnSelect, a = o.isMulti; n.onInputChange('', { action: 'set-value' }), @@ -249252,17 +248740,19 @@ object-assign (n.clearFocusValueOnUpdate = !0), n.onChange(e, { action: t, option: r }); }), - (n.selectOption = function(e) { + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'selectOption', function( + e + ) { var t = n.props, r = t.blurInputOnSelect, o = t.isMulti, - i = n.state.selectValue; + a = n.state.selectValue; if (o) - if (n.isOptionSelected(e, i)) { - var a = n.getOptionValue(e); + if (n.isOptionSelected(e, a)) { + var s = n.getOptionValue(e); n.setValue( - i.filter(function(e) { - return n.getOptionValue(e) !== a; + a.filter(function(e) { + return n.getOptionValue(e) !== s; }), 'deselect-option', e @@ -249272,7 +248762,7 @@ object-assign context: { value: n.getOptionLabel(e) } }); } else - n.isOptionDisabled(e, i) + n.isOptionDisabled(e, a) ? n.announceAriaLiveSelection({ event: 'select-option', context: { @@ -249280,13 +248770,17 @@ object-assign isDisabled: !0 } }) - : (n.setValue([].concat(i, [e]), 'select-option', e), + : (n.setValue( + [].concat(Object(i.a)(a), [e]), + 'select-option', + e + ), n.announceAriaLiveSelection({ event: 'select-option', context: { value: n.getOptionLabel(e) } })); else - n.isOptionDisabled(e, i) + n.isOptionDisabled(e, a) ? n.announceAriaLiveSelection({ event: 'select-option', context: { value: n.getOptionLabel(e), isDisabled: !0 } @@ -249298,7 +248792,9 @@ object-assign })); r && n.blurInput(); }), - (n.removeValue = function(e) { + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'removeValue', function( + e + ) { var t = n.state.selectValue, r = n.getOptionValue(e), o = t.filter(function(e) { @@ -249314,11 +248810,15 @@ object-assign }), n.focusInput(); }), - (n.clearValue = function() { - var e = n.props.isMulti; - n.onChange(e ? [] : null, { action: 'clear' }); - }), - (n.popValue = function() { + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'clearValue', + function() { + var e = n.props.isMulti; + n.onChange(e ? [] : null, { action: 'clear' }); + } + ), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'popValue', function() { var e = n.state.selectValue, t = e[e.length - 1], r = e.slice(0, e.length - 1); @@ -249331,119 +248831,172 @@ object-assign removedValue: t }); }), - (n.getOptionLabel = function(e) { - return n.props.getOptionLabel(e); - }), - (n.getOptionValue = function(e) { - return n.props.getOptionValue(e); - }), - (n.getStyles = function(e, t) { + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'getOptionLabel', + function(e) { + return n.props.getOptionLabel(e); + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'getOptionValue', + function(e) { + return n.props.getOptionValue(e); + } + ), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'getStyles', function( + e, + t + ) { var r = Fe[e](t); r.boxSizing = 'border-box'; var o = n.props.styles[e]; return o ? o(r, t) : r; }), - (n.getElementId = function(e) { - return n.instancePrefix + '-' + e; + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'getElementId', function( + e + ) { + return ''.concat(n.instancePrefix, '-').concat(e); }), - (n.getActiveDescendentId = function() { - var e = n.props.menuIsOpen, - t = n.state, - r = t.menuOptions, - o = t.focusedOption; - if (o && e) { - var i = r.focusable.indexOf(o), - a = r.render[i]; - return a && a.key; + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'getActiveDescendentId', + function() { + var e = n.props.menuIsOpen, + t = n.state, + r = t.menuOptions, + o = t.focusedOption; + if (o && e) { + var i = r.focusable.indexOf(o), + a = r.render[i]; + return a && a.key; + } } - }), - (n.announceAriaLiveSelection = function(e) { - var t = e.event, - r = e.context; - n.setState({ ariaLiveSelection: je(t, r) }); - }), - (n.announceAriaLiveContext = function(e) { - var t = e.event, - r = e.context; - n.setState({ - ariaLiveContext: Ne( - t, - He({}, r, { label: n.props['aria-label'] }) - ) - }); - }), - (n.onMenuMouseDown = function(e) { - 0 === e.button && - (e.stopPropagation(), e.preventDefault(), n.focusInput()); - }), - (n.onMenuMouseMove = function(e) { - n.blockOptionHover = !1; - }), - (n.onControlMouseDown = function(e) { - var t = n.props.openMenuOnClick; - n.state.isFocused - ? n.props.menuIsOpen - ? 'INPUT' !== e.target.tagName && - 'TEXTAREA' !== e.target.tagName && - n.onMenuClose() - : t && n.openMenu('first') - : (t && (n.openAfterFocus = !0), n.focusInput()), - 'INPUT' !== e.target.tagName && - 'TEXTAREA' !== e.target.tagName && - e.preventDefault(); - }), - (n.onDropdownIndicatorMouseDown = function(e) { - if ( - !( - (e && 'mousedown' === e.type && 0 !== e.button) || - n.props.isDisabled - ) - ) { - var t = n.props, - r = t.isMulti, - o = t.menuIsOpen; - n.focusInput(), - o - ? ((n.inputIsHiddenAfterUpdate = !r), n.onMenuClose()) - : n.openMenu('first'), - e.preventDefault(), - e.stopPropagation(); + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'announceAriaLiveSelection', + function(e) { + var t = e.event, + r = e.context; + n.setState({ ariaLiveSelection: Re(t, r) }); } - }), - (n.onClearIndicatorMouseDown = function(e) { - (e && 'mousedown' === e.type && 0 !== e.button) || - (n.clearValue(), - e.stopPropagation(), - (n.openAfterFocus = !1), - 'touchend' === e.type - ? n.focusInput() - : setTimeout(function() { - return n.focusInput(); - })); - }), - (n.onScroll = function(e) { + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'announceAriaLiveContext', + function(e) { + var t = e.event, + r = e.context; + n.setState({ + ariaLiveContext: Ne( + t, + Object(a.a)({}, r, { label: n.props['aria-label'] }) + ) + }); + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'onMenuMouseDown', + function(e) { + 0 === e.button && + (e.stopPropagation(), e.preventDefault(), n.focusInput()); + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'onMenuMouseMove', + function(e) { + n.blockOptionHover = !1; + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'onControlMouseDown', + function(e) { + var t = n.props.openMenuOnClick; + n.state.isFocused + ? n.props.menuIsOpen + ? 'INPUT' !== e.target.tagName && n.onMenuClose() + : t && n.openMenu('first') + : (t && (n.openAfterFocus = !0), n.focusInput()), + 'INPUT' !== e.target.tagName && e.preventDefault(); + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'onDropdownIndicatorMouseDown', + function(e) { + if ( + !( + (e && 'mousedown' === e.type && 0 !== e.button) || + n.props.isDisabled + ) + ) { + var t = n.props, + r = t.isMulti, + o = t.menuIsOpen; + n.focusInput(), + o + ? ((n.inputIsHiddenAfterUpdate = !r), n.onMenuClose()) + : n.openMenu('first'), + e.preventDefault(), + e.stopPropagation(); + } + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'onClearIndicatorMouseDown', + function(e) { + (e && 'mousedown' === e.type && 0 !== e.button) || + (n.clearValue(), + e.stopPropagation(), + (n.openAfterFocus = !1), + 'touchend' === e.type + ? n.focusInput() + : setTimeout(function() { + return n.focusInput(); + })); + } + ), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'onScroll', function(e) { 'boolean' == typeof n.props.closeMenuOnScroll ? e.target instanceof HTMLElement && - h(e.target) && + O(e.target) && n.props.onMenuClose() : 'function' == typeof n.props.closeMenuOnScroll && n.props.closeMenuOnScroll(e) && n.props.onMenuClose(); }), - (n.onCompositionStart = function() { - n.isComposing = !0; - }), - (n.onCompositionEnd = function() { - n.isComposing = !1; - }), - (n.onTouchStart = function(e) { + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'onCompositionStart', + function() { + n.isComposing = !0; + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'onCompositionEnd', + function() { + n.isComposing = !1; + } + ), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'onTouchStart', function( + e + ) { var t = e.touches.item(0); t && ((n.initialTouchX = t.clientX), (n.initialTouchY = t.clientY), (n.userIsDragging = !1)); }), - (n.onTouchMove = function(e) { + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'onTouchMove', function( + e + ) { var t = e.touches.item(0); if (t) { var r = Math.abs(t.clientX - n.initialTouchX), @@ -249451,7 +249004,9 @@ object-assign n.userIsDragging = r > 5 || o > 5; } }), - (n.onTouchEnd = function(e) { + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'onTouchEnd', function( + e + ) { n.userIsDragging || (n.controlRef && !n.controlRef.contains(e.target) && @@ -249461,22 +249016,40 @@ object-assign (n.initialTouchX = 0), (n.initialTouchY = 0)); }), - (n.onControlTouchEnd = function(e) { - n.userIsDragging || n.onControlMouseDown(e); - }), - (n.onClearIndicatorTouchEnd = function(e) { - n.userIsDragging || n.onClearIndicatorMouseDown(e); - }), - (n.onDropdownIndicatorTouchEnd = function(e) { - n.userIsDragging || n.onDropdownIndicatorMouseDown(e); - }), - (n.handleInputChange = function(e) { - var t = e.currentTarget.value; - (n.inputIsHiddenAfterUpdate = !1), - n.onInputChange(t, { action: 'input-change' }), - n.onMenuOpen(); - }), - (n.onInputFocus = function(e) { + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'onControlTouchEnd', + function(e) { + n.userIsDragging || n.onControlMouseDown(e); + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'onClearIndicatorTouchEnd', + function(e) { + n.userIsDragging || n.onClearIndicatorMouseDown(e); + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'onDropdownIndicatorTouchEnd', + function(e) { + n.userIsDragging || n.onDropdownIndicatorMouseDown(e); + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'handleInputChange', + function(e) { + var t = e.currentTarget.value; + (n.inputIsHiddenAfterUpdate = !1), + n.onInputChange(t, { action: 'input-change' }), + n.onMenuOpen(); + } + ), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'onInputFocus', function( + e + ) { var t = n.props, r = t.isSearchable, o = t.isMulti; @@ -249491,7 +249064,9 @@ object-assign n.openMenu('first'), (n.openAfterFocus = !1); }), - (n.onInputBlur = function(e) { + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'onInputBlur', function( + e + ) { n.menuListRef && n.menuListRef.contains(document.activeElement) ? n.inputRef.focus() : (n.props.onBlur && n.props.onBlur(e), @@ -249499,18 +249074,28 @@ object-assign n.onMenuClose(), n.setState({ focusedValue: null, isFocused: !1 })); }), - (n.onOptionHover = function(e) { - n.blockOptionHover || - n.state.focusedOption === e || - n.setState({ focusedOption: e }); - }), - (n.shouldHideSelectedOptions = function() { - var e = n.props, - t = e.hideSelectedOptions, - r = e.isMulti; - return void 0 === t ? r : t; - }), - (n.onKeyDown = function(e) { + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'onOptionHover', + function(e) { + n.blockOptionHover || + n.state.focusedOption === e || + n.setState({ focusedOption: e }); + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'shouldHideSelectedOptions', + function() { + var e = n.props, + t = e.hideSelectedOptions, + r = e.isMulti; + return void 0 === t ? r : t; + } + ), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'onKeyDown', function( + e + ) { var t = n.props, r = t.isMulti, o = t.backspaceRemovesValue, @@ -249550,1222 +249135,1371 @@ object-assign case 'Tab': if (n.isComposing) return; if ( - e.shiftKey || - !u || - !f || - !h || - (d && n.isOptionSelected(h, m)) - ) - return; - n.selectOption(h); - break; - case 'Enter': - if (229 === e.keyCode) break; - if (u) { - if (!h) return; - if (n.isComposing) return; - n.selectOption(h); - break; + e.shiftKey || + !u || + !f || + !h || + (d && n.isOptionSelected(h, m)) + ) + return; + n.selectOption(h); + break; + case 'Enter': + if (229 === e.keyCode) break; + if (u) { + if (!h) return; + if (n.isComposing) return; + n.selectOption(h); + break; + } + return; + case 'Escape': + u + ? ((n.inputIsHiddenAfterUpdate = !1), + n.onInputChange('', { action: 'menu-close' }), + n.onMenuClose()) + : s && i && n.clearValue(); + break; + case ' ': + if (a) return; + if (!u) { + n.openMenu('first'); + break; + } + if (!h) return; + n.selectOption(h); + break; + case 'ArrowUp': + u ? n.focusOption('up') : n.openMenu('last'); + break; + case 'ArrowDown': + u ? n.focusOption('down') : n.openMenu('first'); + break; + case 'PageUp': + if (!u) return; + n.focusOption('pageup'); + break; + case 'PageDown': + if (!u) return; + n.focusOption('pagedown'); + break; + case 'Home': + if (!u) return; + n.focusOption('first'); + break; + case 'End': + if (!u) return; + n.focusOption('last'); + break; + default: + return; + } + e.preventDefault(); + } + }); + var r = e.value; + (n.cacheComponents = Object(m.a)(n.cacheComponents, X).bind( + Object(d.a)(Object(d.a)(n)) + )), + n.cacheComponents(e.components), + (n.instancePrefix = + 'react-select-' + (n.props.instanceId || ++Ye)); + var o = S(r), + c = e.menuIsOpen + ? n.buildMenuOptions(e, o) + : { render: [], focusable: [] }; + return (n.state.menuOptions = c), (n.state.selectValue = o), n; + } + return ( + Object(f.a)(t, e), + Object(c.a)(t, [ + { + key: 'componentDidMount', + value: function() { + this.startListeningComposition(), + this.startListeningToTouch(), + this.props.closeMenuOnScroll && + document && + document.addEventListener && + document.addEventListener('scroll', this.onScroll, !0), + this.props.autoFocus && this.focusInput(); + } + }, + { + key: 'UNSAFE_componentWillReceiveProps', + value: function(e) { + var t = this.props, + n = t.options, + r = t.value, + o = t.menuIsOpen, + i = t.inputValue; + if ( + (this.cacheComponents(e.components), + e.value !== r || + e.options !== n || + e.menuIsOpen !== o || + e.inputValue !== i) + ) { + var a = S(e.value), + s = e.menuIsOpen + ? this.buildMenuOptions(e, a) + : { render: [], focusable: [] }, + c = this.getNextFocusedValue(a), + u = this.getNextFocusedOption(s.focusable); + this.setState({ + menuOptions: s, + selectValue: a, + focusedOption: u, + focusedValue: c + }); + } + null != this.inputIsHiddenAfterUpdate && + (this.setState({ + inputIsHidden: this.inputIsHiddenAfterUpdate + }), + delete this.inputIsHiddenAfterUpdate); + } + }, + { + key: 'componentDidUpdate', + value: function(e) { + var t, + n, + r, + o, + i, + a = this.props, + s = a.isDisabled, + c = a.menuIsOpen, + u = this.state.isFocused; + ((u && !s && e.isDisabled) || (u && c && !e.menuIsOpen)) && + this.focusInput(), + this.menuListRef && + this.focusedOptionRef && + this.scrollToFocusedOptionOnUpdate && + ((t = this.menuListRef), + (n = this.focusedOptionRef), + (r = t.getBoundingClientRect()), + (o = n.getBoundingClientRect()), + (i = n.offsetHeight / 3), + o.bottom + i > r.bottom + ? A( + t, + Math.min( + n.offsetTop + n.clientHeight - t.offsetHeight + i, + t.scrollHeight + ) + ) + : o.top - i < r.top && + A(t, Math.max(n.offsetTop - i, 0))), + (this.scrollToFocusedOptionOnUpdate = !1); + } + }, + { + key: 'componentWillUnmount', + value: function() { + this.stopListeningComposition(), + this.stopListeningToTouch(), + document.removeEventListener('scroll', this.onScroll, !0); + } + }, + { + key: 'onMenuOpen', + value: function() { + this.props.onMenuOpen(); + } + }, + { + key: 'onMenuClose', + value: function() { + var e = this.props, + t = e.isSearchable, + n = e.isMulti; + this.announceAriaLiveContext({ + event: 'input', + context: { isSearchable: t, isMulti: n } + }), + this.onInputChange('', { action: 'menu-close' }), + this.props.onMenuClose(); + } + }, + { + key: 'onInputChange', + value: function(e, t) { + this.props.onInputChange(e, t); + } + }, + { + key: 'focusInput', + value: function() { + this.inputRef && this.inputRef.focus(); + } + }, + { + key: 'blurInput', + value: function() { + this.inputRef && this.inputRef.blur(); + } + }, + { + key: 'openMenu', + value: function(e) { + var t = this.state, + n = t.menuOptions, + r = t.selectValue, + o = t.isFocused, + i = this.props.isMulti, + a = 'first' === e ? 0 : n.focusable.length - 1; + if (!i) { + var s = n.focusable.indexOf(r[0]); + s > -1 && (a = s); + } + (this.scrollToFocusedOptionOnUpdate = !( + o && this.menuListRef + )), + (this.inputIsHiddenAfterUpdate = !1), + this.onMenuOpen(), + this.setState({ + focusedValue: null, + focusedOption: n.focusable[a] + }), + this.announceAriaLiveContext({ event: 'menu' }); + } + }, + { + key: 'focusValue', + value: function(e) { + var t = this.props, + n = t.isMulti, + r = t.isSearchable, + o = this.state, + i = o.selectValue, + a = o.focusedValue; + if (n) { + this.setState({ focusedOption: null }); + var s = i.indexOf(a); + a || + ((s = -1), + this.announceAriaLiveContext({ event: 'value' })); + var c = i.length - 1, + u = -1; + if (i.length) { + switch (e) { + case 'previous': + u = 0 === s ? 0 : -1 === s ? c : s - 1; + break; + case 'next': + s > -1 && s < c && (u = s + 1); + } + -1 === u && + this.announceAriaLiveContext({ + event: 'input', + context: { isSearchable: r, isMulti: n } + }), + this.setState({ + inputIsHidden: -1 !== u, + focusedValue: i[u] + }); + } + } + } + }, + { + key: 'focusOption', + value: function() { + var e = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : 'first', + t = this.props.pageSize, + n = this.state, + r = n.focusedOption, + o = n.menuOptions, + i = o.focusable; + if (i.length) { + var a = 0, + s = i.indexOf(r); + r || + ((s = -1), + this.announceAriaLiveContext({ event: 'menu' })), + 'up' === e + ? (a = s > 0 ? s - 1 : i.length - 1) + : 'down' === e + ? (a = (s + 1) % i.length) + : 'pageup' === e + ? (a = s - t) < 0 && (a = 0) + : 'pagedown' === e + ? (a = s + t) > i.length - 1 && (a = i.length - 1) + : 'last' === e && (a = i.length - 1), + (this.scrollToFocusedOptionOnUpdate = !0), + this.setState({ + focusedOption: i[a], + focusedValue: null + }), + this.announceAriaLiveContext({ + event: 'menu', + context: { isDisabled: Ie(i[a]) } + }); + } + } + }, + { + key: 'getTheme', + value: function() { + return this.props.theme + ? 'function' == typeof this.props.theme + ? this.props.theme(Be) + : Object(a.a)({}, Be, this.props.theme) + : Be; + } + }, + { + key: 'getCommonProps', + value: function() { + var e = this.clearValue, + t = this.getStyles, + n = this.setValue, + r = this.selectOption, + o = this.props, + i = o.classNamePrefix, + a = o.isMulti, + s = o.isRtl, + c = o.options, + u = this.state.selectValue, + l = this.hasValue(); + return { + cx: k.bind(null, i), + clearValue: e, + getStyles: t, + getValue: function() { + return u; + }, + hasValue: l, + isMulti: a, + isRtl: s, + options: c, + selectOption: r, + setValue: n, + selectProps: o, + theme: this.getTheme() + }; + } + }, + { + key: 'getNextFocusedValue', + value: function(e) { + if (this.clearFocusValueOnUpdate) + return (this.clearFocusValueOnUpdate = !1), null; + var t = this.state, + n = t.focusedValue, + r = t.selectValue.indexOf(n); + if (r > -1) { + if (e.indexOf(n) > -1) return n; + if (r < e.length) return e[r]; + } + return null; + } + }, + { + key: 'getNextFocusedOption', + value: function(e) { + var t = this.state.focusedOption; + return t && e.indexOf(t) > -1 ? t : e[0]; + } + }, + { + key: 'hasValue', + value: function() { + return this.state.selectValue.length > 0; + } + }, + { + key: 'hasOptions', + value: function() { + return !!this.state.menuOptions.render.length; + } + }, + { + key: 'countOptions', + value: function() { + return this.state.menuOptions.focusable.length; + } + }, + { + key: 'isClearable', + value: function() { + var e = this.props, + t = e.isClearable, + n = e.isMulti; + return void 0 === t ? n : t; + } + }, + { + key: 'isOptionDisabled', + value: function(e, t) { + return ( + 'function' == typeof this.props.isOptionDisabled && + this.props.isOptionDisabled(e, t) + ); + } + }, + { + key: 'isOptionSelected', + value: function(e, t) { + var n = this; + if (t.indexOf(e) > -1) return !0; + if ('function' == typeof this.props.isOptionSelected) + return this.props.isOptionSelected(e, t); + var r = this.getOptionValue(e); + return t.some(function(e) { + return n.getOptionValue(e) === r; + }); + } + }, + { + key: 'filterOption', + value: function(e, t) { + return ( + !this.props.filterOption || this.props.filterOption(e, t) + ); + } + }, + { + key: 'formatOptionLabel', + value: function(e, t) { + if ('function' == typeof this.props.formatOptionLabel) { + var n = this.props.inputValue, + r = this.state.selectValue; + return this.props.formatOptionLabel(e, { + context: t, + inputValue: n, + selectValue: r + }); + } + return this.getOptionLabel(e); + } + }, + { + key: 'formatGroupLabel', + value: function(e) { + return this.props.formatGroupLabel(e); + } + }, + { + key: 'startListeningComposition', + value: function() { + document && + document.addEventListener && + (document.addEventListener( + 'compositionstart', + this.onCompositionStart, + !1 + ), + document.addEventListener( + 'compositionend', + this.onCompositionEnd, + !1 + )); + } + }, + { + key: 'stopListeningComposition', + value: function() { + document && + document.removeEventListener && + (document.removeEventListener( + 'compositionstart', + this.onCompositionStart + ), + document.removeEventListener( + 'compositionend', + this.onCompositionEnd + )); + } + }, + { + key: 'startListeningToTouch', + value: function() { + document && + document.addEventListener && + (document.addEventListener( + 'touchstart', + this.onTouchStart, + !1 + ), + document.addEventListener( + 'touchmove', + this.onTouchMove, + !1 + ), + document.addEventListener('touchend', this.onTouchEnd, !1)); + } + }, + { + key: 'stopListeningToTouch', + value: function() { + document && + document.removeEventListener && + (document.removeEventListener( + 'touchstart', + this.onTouchStart + ), + document.removeEventListener('touchmove', this.onTouchMove), + document.removeEventListener('touchend', this.onTouchEnd)); + } + }, + { + key: 'buildMenuOptions', + value: function(e, t) { + var n = this, + r = e.inputValue, + o = void 0 === r ? '' : r, + i = e.options, + a = function(e, r) { + var i = n.isOptionDisabled(e, t), + a = n.isOptionSelected(e, t), + s = n.getOptionLabel(e), + c = n.getOptionValue(e); + if ( + !( + (n.shouldHideSelectedOptions() && a) || + !n.filterOption({ label: s, value: c, data: e }, o) + ) + ) { + var u = i + ? void 0 + : function() { + return n.onOptionHover(e); + }, + l = i + ? void 0 + : function() { + return n.selectOption(e); + }, + f = '' + .concat(n.getElementId('option'), '-') + .concat(r); + return { + innerProps: { + id: f, + onClick: l, + onMouseMove: u, + onMouseOver: u, + tabIndex: -1 + }, + data: e, + isDisabled: i, + isSelected: a, + key: f, + label: s, + type: 'option', + value: c + }; } - return; - case 'Escape': - u - ? ((n.inputIsHiddenAfterUpdate = !1), - n.onInputChange('', { action: 'menu-close' }), - n.onMenuClose()) - : s && i && n.clearValue(); - break; - case ' ': - if (a) return; - if (!u) { - n.openMenu('first'); - break; + }; + return i.reduce( + function(e, t, r) { + if (t.options) { + n.hasGroups || (n.hasGroups = !0); + var o = t.options + .map(function(t, n) { + var o = a(t, ''.concat(r, '-').concat(n)); + return o && e.focusable.push(t), o; + }) + .filter(Boolean); + if (o.length) { + var i = '' + .concat(n.getElementId('group'), '-') + .concat(r); + e.render.push({ + type: 'group', + key: i, + data: t, + options: o + }); + } + } else { + var s = a(t, ''.concat(r)); + s && (e.render.push(s), e.focusable.push(t)); } - if (!h) return; - n.selectOption(h); - break; - case 'ArrowUp': - u ? n.focusOption('up') : n.openMenu('last'); - break; - case 'ArrowDown': - u ? n.focusOption('down') : n.openMenu('first'); - break; - case 'PageUp': - if (!u) return; - n.focusOption('pageup'); - break; - case 'PageDown': - if (!u) return; - n.focusOption('pagedown'); - break; - case 'Home': - if (!u) return; - n.focusOption('first'); - break; - case 'End': - if (!u) return; - n.focusOption('last'); - break; - default: - return; - } - e.preventDefault(); + return e; + }, + { render: [], focusable: [] } + ); } - }), - (n.buildMenuOptions = function(e, t) { - var r = e.inputValue, - o = void 0 === r ? '' : r, - i = e.options, - a = function(e, r) { - var i = n.isOptionDisabled(e, t), - a = n.isOptionSelected(e, t), - s = n.getOptionLabel(e), - c = n.getOptionValue(e); - if ( - !( - (n.shouldHideSelectedOptions() && a) || - !n.filterOption({ label: s, value: c, data: e }, o) - ) - ) { - var u = i - ? void 0 - : function() { - return n.onOptionHover(e); - }, - l = i - ? void 0 - : function() { - return n.selectOption(e); - }, - f = n.getElementId('option') + '-' + r; - return { - innerProps: { - id: f, - onClick: l, - onMouseMove: u, - onMouseOver: u, - tabIndex: -1 - }, - data: e, - isDisabled: i, - isSelected: a, - key: f, - label: s, - type: 'option', - value: c - }; - } - }; - return i.reduce( - function(e, t, r) { - if (t.options) { - n.hasGroups || (n.hasGroups = !0); - var o = t.options - .map(function(t, n) { - var o = a(t, r + '-' + n); - return o && e.focusable.push(t), o; + }, + { + key: 'constructAriaLiveMessage', + value: function() { + var e = this.state, + t = e.ariaLiveContext, + n = e.selectValue, + r = e.focusedValue, + o = e.focusedOption, + i = this.props, + a = i.options, + s = i.menuIsOpen, + c = i.inputValue, + u = i.screenReaderStatus, + l = r + ? (function(e) { + var t = e.focusedValue, + n = e.getOptionLabel, + r = e.selectValue; + return 'value ' + .concat(n(t), ' focused, ') + .concat(r.indexOf(t) + 1, ' of ') + .concat(r.length, '.'); + })({ + focusedValue: r, + getOptionLabel: this.getOptionLabel, + selectValue: n }) - .filter(Boolean); - if (o.length) { - var i = n.getElementId('group') + '-' + r; - e.render.push({ - type: 'group', - key: i, - data: t, - options: o - }); - } - } else { - var s = a(t, '' + r); - s && (e.render.push(s), e.focusable.push(t)); - } - return e; - }, - { render: [], focusable: [] } - ); - }); - var r = t.value; - (n.cacheComponents = Object(i.a)(n.cacheComponents, j).bind( - Ye(Ye(n)) - )), - n.cacheComponents(t.components), - (n.instancePrefix = - 'react-select-' + (n.props.instanceId || ++Ve)); - var o = p(r); - n.buildMenuOptions = Object(i.a)(n.buildMenuOptions, function( - e, - t - ) { - var n = e, - r = n[0], - o = n[1], - i = t, - a = i[0]; - return ( - j(o, i[1]) && - j(r.inputValue, a.inputValue) && - j(r.options, a.options) - ); - }).bind(Ye(Ye(n))); - var a = t.menuIsOpen - ? n.buildMenuOptions(t, o) - : { render: [], focusable: [] }; - return (n.state.menuOptions = a), (n.state.selectValue = o), n; - } - (n = e), - ((t = r).prototype = Object.create(n.prototype)), - (t.prototype.constructor = t), - (t.__proto__ = n); - var a = r.prototype; - return ( - (a.componentDidMount = function() { - this.startListeningComposition(), - this.startListeningToTouch(), - this.props.closeMenuOnScroll && - document && - document.addEventListener && - document.addEventListener('scroll', this.onScroll, !0), - this.props.autoFocus && this.focusInput(); - }), - (a.UNSAFE_componentWillReceiveProps = function(e) { - var t = this.props, - n = t.options, - r = t.value, - o = t.menuIsOpen, - i = t.inputValue; - if ( - (this.cacheComponents(e.components), - e.value !== r || - e.options !== n || - e.menuIsOpen !== o || - e.inputValue !== i) - ) { - var a = p(e.value), - s = e.menuIsOpen - ? this.buildMenuOptions(e, a) - : { render: [], focusable: [] }, - c = this.getNextFocusedValue(a), - u = this.getNextFocusedOption(s.focusable); - this.setState({ - menuOptions: s, - selectValue: a, - focusedOption: u, - focusedValue: c - }); - } - null != this.inputIsHiddenAfterUpdate && - (this.setState({ - inputIsHidden: this.inputIsHiddenAfterUpdate - }), - delete this.inputIsHiddenAfterUpdate); - }), - (a.componentDidUpdate = function(e) { - var t, - n, - r, - o, - i, - a = this.props, - s = a.isDisabled, - c = a.menuIsOpen, - u = this.state.isFocused; - ((u && !s && e.isDisabled) || (u && c && !e.menuIsOpen)) && - this.focusInput(), - this.menuListRef && - this.focusedOptionRef && - this.scrollToFocusedOptionOnUpdate && - ((t = this.menuListRef), - (n = this.focusedOptionRef), - (r = t.getBoundingClientRect()), - (o = n.getBoundingClientRect()), - (i = n.offsetHeight / 3), - o.bottom + i > r.bottom - ? m( - t, - Math.min( - n.offsetTop + n.clientHeight - t.offsetHeight + i, - t.scrollHeight - ) - ) - : o.top - i < r.top && m(t, Math.max(n.offsetTop - i, 0)), - (this.scrollToFocusedOptionOnUpdate = !1)); - }), - (a.componentWillUnmount = function() { - this.stopListeningComposition(), - this.stopListeningToTouch(), - document.removeEventListener('scroll', this.onScroll, !0); - }), - (a.onMenuOpen = function() { - this.props.onMenuOpen(); - }), - (a.onMenuClose = function() { - var e = this.props, - t = e.isSearchable, - n = e.isMulti; - this.announceAriaLiveContext({ - event: 'input', - context: { isSearchable: t, isMulti: n } - }), - this.onInputChange('', { action: 'menu-close' }), - this.props.onMenuClose(); - }), - (a.onInputChange = function(e, t) { - this.props.onInputChange(e, t); - }), - (a.focusInput = function() { - this.inputRef && this.inputRef.focus(); - }), - (a.blurInput = function() { - this.inputRef && this.inputRef.blur(); - }), - (a.openMenu = function(e) { - var t = this, - n = this.state, - r = n.selectValue, - o = n.isFocused, - i = this.buildMenuOptions(this.props, r), - a = this.props.isMulti, - s = 'first' === e ? 0 : i.focusable.length - 1; - if (!a) { - var c = i.focusable.indexOf(r[0]); - c > -1 && (s = c); - } - (this.scrollToFocusedOptionOnUpdate = !(o && this.menuListRef)), - (this.inputIsHiddenAfterUpdate = !1), - this.setState( - { - menuOptions: i, - focusedValue: null, - focusedOption: i.focusable[s] - }, - function() { - t.onMenuOpen(), - t.announceAriaLiveContext({ event: 'menu' }); - } - ); - }), - (a.focusValue = function(e) { - var t = this.props, - n = t.isMulti, - r = t.isSearchable, - o = this.state, - i = o.selectValue, - a = o.focusedValue; - if (n) { - this.setState({ focusedOption: null }); - var s = i.indexOf(a); - a || - ((s = -1), this.announceAriaLiveContext({ event: 'value' })); - var c = i.length - 1, - u = -1; - if (i.length) { - switch (e) { - case 'previous': - u = 0 === s ? 0 : -1 === s ? c : s - 1; - break; - case 'next': - s > -1 && s < c && (u = s + 1); - } - -1 === u && - this.announceAriaLiveContext({ - event: 'input', - context: { isSearchable: r, isMulti: n } - }), - this.setState({ - inputIsHidden: -1 !== u, - focusedValue: i[u] + : '', + f = + o && s + ? (function(e) { + var t = e.focusedOption, + n = e.getOptionLabel, + r = e.options; + return 'option ' + .concat(n(t), ' focused') + .concat(t.isDisabled ? ' disabled' : '', ', ') + .concat(r.indexOf(t) + 1, ' of ') + .concat(r.length, '.'); + })({ + focusedOption: o, + getOptionLabel: this.getOptionLabel, + options: a + }) + : '', + d = (function(e) { + var t = e.inputValue, + n = e.screenReaderMessage; + return '' + .concat(n) + .concat(t ? ' for search term ' + t : '', '.'); + })({ + inputValue: c, + screenReaderMessage: u({ count: this.countOptions() }) }); + return '' + .concat(l, ' ') + .concat(f, ' ') + .concat(d, ' ') + .concat(t); } - } - }), - (a.focusOption = function(e) { - void 0 === e && (e = 'first'); - var t = this.props.pageSize, - n = this.state, - r = n.focusedOption, - o = n.menuOptions.focusable; - if (o.length) { - var i = 0, - a = o.indexOf(r); - r || - ((a = -1), this.announceAriaLiveContext({ event: 'menu' })), - 'up' === e - ? (i = a > 0 ? a - 1 : o.length - 1) - : 'down' === e - ? (i = (a + 1) % o.length) - : 'pageup' === e - ? (i = a - t) < 0 && (i = 0) - : 'pagedown' === e - ? (i = a + t) > o.length - 1 && (i = o.length - 1) - : 'last' === e && (i = o.length - 1), - (this.scrollToFocusedOptionOnUpdate = !0), - this.setState({ focusedOption: o[i], focusedValue: null }), - this.announceAriaLiveContext({ - event: 'menu', - context: { isDisabled: Re(o[i]) } - }); - } - }), - (a.getTheme = function() { - return this.props.theme - ? 'function' == typeof this.props.theme - ? this.props.theme(Be) - : He({}, Be, this.props.theme) - : Be; - }), - (a.getCommonProps = function() { - var e = this.clearValue, - t = this.getStyles, - n = this.setValue, - r = this.selectOption, - o = this.props, - i = o.classNamePrefix, - a = o.isMulti, - s = o.isRtl, - c = o.options, - u = this.state.selectValue, - l = this.hasValue(); - return { - cx: d.bind(null, i), - clearValue: e, - getStyles: t, - getValue: function() { - return u; - }, - hasValue: l, - isMulti: a, - isRtl: s, - options: c, - selectOption: r, - setValue: n, - selectProps: o, - theme: this.getTheme() - }; - }), - (a.getNextFocusedValue = function(e) { - if (this.clearFocusValueOnUpdate) - return (this.clearFocusValueOnUpdate = !1), null; - var t = this.state, - n = t.focusedValue, - r = t.selectValue.indexOf(n); - if (r > -1) { - if (e.indexOf(n) > -1) return n; - if (r < e.length) return e[r]; - } - return null; - }), - (a.getNextFocusedOption = function(e) { - var t = this.state.focusedOption; - return t && e.indexOf(t) > -1 ? t : e[0]; - }), - (a.hasValue = function() { - return this.state.selectValue.length > 0; - }), - (a.hasOptions = function() { - return !!this.state.menuOptions.render.length; - }), - (a.countOptions = function() { - return this.state.menuOptions.focusable.length; - }), - (a.isClearable = function() { - var e = this.props, - t = e.isClearable, - n = e.isMulti; - return void 0 === t ? n : t; - }), - (a.isOptionDisabled = function(e, t) { - return ( - 'function' == typeof this.props.isOptionDisabled && - this.props.isOptionDisabled(e, t) - ); - }), - (a.isOptionSelected = function(e, t) { - var n = this; - if (t.indexOf(e) > -1) return !0; - if ('function' == typeof this.props.isOptionSelected) - return this.props.isOptionSelected(e, t); - var r = this.getOptionValue(e); - return t.some(function(e) { - return n.getOptionValue(e) === r; - }); - }), - (a.filterOption = function(e, t) { - return !this.props.filterOption || this.props.filterOption(e, t); - }), - (a.formatOptionLabel = function(e, t) { - if ('function' == typeof this.props.formatOptionLabel) { - var n = this.props.inputValue, - r = this.state.selectValue; - return this.props.formatOptionLabel(e, { - context: t, - inputValue: n, - selectValue: r - }); - } - return this.getOptionLabel(e); - }), - (a.formatGroupLabel = function(e) { - return this.props.formatGroupLabel(e); - }), - (a.startListeningComposition = function() { - document && - document.addEventListener && - (document.addEventListener( - 'compositionstart', - this.onCompositionStart, - !1 - ), - document.addEventListener( - 'compositionend', - this.onCompositionEnd, - !1 - )); - }), - (a.stopListeningComposition = function() { - document && - document.removeEventListener && - (document.removeEventListener( - 'compositionstart', - this.onCompositionStart - ), - document.removeEventListener( - 'compositionend', - this.onCompositionEnd - )); - }), - (a.startListeningToTouch = function() { - document && - document.addEventListener && - (document.addEventListener('touchstart', this.onTouchStart, !1), - document.addEventListener('touchmove', this.onTouchMove, !1), - document.addEventListener('touchend', this.onTouchEnd, !1)); - }), - (a.stopListeningToTouch = function() { - document && - document.removeEventListener && - (document.removeEventListener('touchstart', this.onTouchStart), - document.removeEventListener('touchmove', this.onTouchMove), - document.removeEventListener('touchend', this.onTouchEnd)); - }), - (a.constructAriaLiveMessage = function() { - var e = this.state, - t = e.ariaLiveContext, - n = e.selectValue, - r = e.focusedValue, - o = e.focusedOption, - i = this.props, - a = i.options, - s = i.menuIsOpen, - c = i.inputValue, - u = i.screenReaderStatus; - return ( - (r - ? (function(e) { - var t = e.focusedValue, - n = e.getOptionLabel, - r = e.selectValue; - return ( - 'value ' + - n(t) + - ' focused, ' + - (r.indexOf(t) + 1) + - ' of ' + - r.length + - '.' - ); - })({ - focusedValue: r, - getOptionLabel: this.getOptionLabel, - selectValue: n - }) - : '') + - ' ' + - (o && s - ? (function(e) { - var t = e.focusedOption, - n = e.getOptionLabel, - r = e.options; - return ( - 'option ' + - n(t) + - ' focused' + - (t.isDisabled ? ' disabled' : '') + - ', ' + - (r.indexOf(t) + 1) + - ' of ' + - r.length + - '.' - ); - })({ - focusedOption: o, - getOptionLabel: this.getOptionLabel, - options: a - }) - : '') + - ' ' + - (function(e) { - var t = e.inputValue; - return ( - e.screenReaderMessage + - (t ? ' for search term ' + t : '') + - '.' - ); - })({ - inputValue: c, - screenReaderMessage: u({ count: this.countOptions() }) - }) + - ' ' + - t - ); - }), - (a.renderInput = function() { - var e = this.props, - t = e.isDisabled, - n = e.isSearchable, - r = e.inputId, - i = e.inputValue, - a = e.tabIndex, - s = this.components.Input, - c = this.state.inputIsHidden, - u = r || this.getElementId('input'), - f = { - 'aria-autocomplete': 'list', - 'aria-label': this.props['aria-label'], - 'aria-labelledby': this.props['aria-labelledby'] - }; - if (!n) - return o.a.createElement( - _e, - He( - { + }, + { + key: 'renderInput', + value: function() { + var e = this.props, + t = e.isDisabled, + n = e.isSearchable, + r = e.inputId, + i = e.inputValue, + a = e.tabIndex, + s = this.components.Input, + c = this.state.inputIsHidden, + u = r || this.getElementId('input'); + if (!n) + return g.a.createElement(we, { id: u, innerRef: this.getInputRef, onBlur: this.onInputBlur, - onChange: l, + onChange: x, onFocus: this.onInputFocus, readOnly: !0, disabled: t, tabIndex: a, value: '' + }); + var l = { + 'aria-autocomplete': 'list', + 'aria-label': this.props['aria-label'], + 'aria-labelledby': this.props['aria-labelledby'] }, - f - ) - ); - var d = this.commonProps, - p = d.cx, - h = d.theme, - g = d.selectProps; - return o.a.createElement( - s, - He( - { - autoCapitalize: 'none', - autoComplete: 'off', - autoCorrect: 'off', - cx: p, - getStyles: this.getStyles, - id: u, - innerRef: this.getInputRef, - isDisabled: t, - isHidden: c, - onBlur: this.onInputBlur, - onChange: this.handleInputChange, - onFocus: this.onInputFocus, - selectProps: g, - spellCheck: 'false', - tabIndex: a, - theme: h, - type: 'text', - value: i - }, - f - ) - ); - }), - (a.renderPlaceholderOrValue = function() { - var e = this, - t = this.components, - n = t.MultiValue, - r = t.MultiValueContainer, - i = t.MultiValueLabel, - a = t.MultiValueRemove, - s = t.SingleValue, - c = t.Placeholder, - u = this.commonProps, - l = this.props, - f = l.controlShouldRenderValue, - d = l.isDisabled, - p = l.isMulti, - h = l.inputValue, - g = l.placeholder, - m = this.state, - b = m.selectValue, - y = m.focusedValue, - v = m.isFocused; - if (!this.hasValue() || !f) - return h - ? null - : o.a.createElement( - c, - He({}, u, { - key: 'placeholder', - isDisabled: d, - isFocused: v - }), - g - ); - if (p) - return b.map(function(t, s) { - var c = t === y; - return o.a.createElement( - n, - He({}, u, { - components: { Container: r, Label: i, Remove: a }, - isFocused: c, - isDisabled: d, - key: e.getOptionValue(t), - index: s, - removeProps: { - onClick: function() { - return e.removeValue(t); - }, - onTouchEnd: function() { - return e.removeValue(t); - }, - onMouseDown: function(e) { - e.preventDefault(), e.stopPropagation(); - } + f = this.commonProps, + d = f.cx, + p = f.theme, + h = f.selectProps; + return g.a.createElement( + s, + Object(o.a)( + { + autoCapitalize: 'none', + autoComplete: 'off', + autoCorrect: 'off', + cx: d, + getStyles: this.getStyles, + id: u, + innerRef: this.getInputRef, + isDisabled: t, + isHidden: c, + onBlur: this.onInputBlur, + onChange: this.handleInputChange, + onFocus: this.onInputFocus, + selectProps: h, + spellCheck: 'false', + tabIndex: a, + theme: p, + type: 'text', + value: i }, - data: t - }), - e.formatOptionLabel(t, 'value') - ); - }); - if (h) return null; - var _ = b[0]; - return o.a.createElement( - s, - He({}, u, { data: _, isDisabled: d }), - this.formatOptionLabel(_, 'value') - ); - }), - (a.renderClearIndicator = function() { - var e = this.components.ClearIndicator, - t = this.commonProps, - n = this.props, - r = n.isDisabled, - i = n.isLoading, - a = this.state.isFocused; - if (!this.isClearable() || !e || r || !this.hasValue() || i) - return null; - var s = { - onMouseDown: this.onClearIndicatorMouseDown, - onTouchEnd: this.onClearIndicatorTouchEnd, - 'aria-hidden': 'true' - }; - return o.a.createElement( - e, - He({}, t, { innerProps: s, isFocused: a }) - ); - }), - (a.renderLoadingIndicator = function() { - var e = this.components.LoadingIndicator, - t = this.commonProps, - n = this.props, - r = n.isDisabled, - i = n.isLoading, - a = this.state.isFocused; - if (!e || !i) return null; - return o.a.createElement( - e, - He({}, t, { - innerProps: { 'aria-hidden': 'true' }, - isDisabled: r, - isFocused: a - }) - ); - }), - (a.renderIndicatorSeparator = function() { - var e = this.components, - t = e.DropdownIndicator, - n = e.IndicatorSeparator; - if (!t || !n) return null; - var r = this.commonProps, - i = this.props.isDisabled, - a = this.state.isFocused; - return o.a.createElement( - n, - He({}, r, { isDisabled: i, isFocused: a }) - ); - }), - (a.renderDropdownIndicator = function() { - var e = this.components.DropdownIndicator; - if (!e) return null; - var t = this.commonProps, - n = this.props.isDisabled, - r = this.state.isFocused, - i = { - onMouseDown: this.onDropdownIndicatorMouseDown, - onTouchEnd: this.onDropdownIndicatorTouchEnd, - 'aria-hidden': 'true' - }; - return o.a.createElement( - e, - He({}, t, { innerProps: i, isDisabled: n, isFocused: r }) - ); - }), - (a.renderMenu = function() { - var e = this, - t = this.components, - n = t.Group, - r = t.GroupHeading, - i = t.Menu, - a = t.MenuList, - s = t.MenuPortal, - c = t.LoadingMessage, - u = t.NoOptionsMessage, - l = t.Option, - f = this.commonProps, - d = this.state, - p = d.focusedOption, - h = d.menuOptions, - g = this.props, - m = g.captureMenuScroll, - b = g.inputValue, - y = g.isLoading, - v = g.loadingMessage, - _ = g.minMenuHeight, - x = g.maxMenuHeight, - w = g.menuIsOpen, - M = g.menuPlacement, - k = g.menuPosition, - S = g.menuPortalTarget, - O = g.menuShouldBlockScroll, - E = g.menuShouldScrollIntoView, - T = g.noOptionsMessage, - C = g.onMenuScrollToTop, - L = g.onMenuScrollToBottom; - if (!w) return null; - var P, - D = function(t) { - var n = p === t.data; - return ( - (t.innerRef = n ? e.getFocusedOptionRef : void 0), - o.a.createElement( - l, - He({}, f, t, { isFocused: n }), - e.formatOptionLabel(t.data, 'menu') + l ) ); - }; - if (this.hasOptions()) - P = h.render.map(function(t) { - if ('group' === t.type) { - t.type; - var i = (function(e, t) { - if (null == e) return {}; - var n, - r, - o = {}, - i = Object.keys(e); - for (r = 0; r < i.length; r++) - (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); - return o; - })(t, ['type']), - a = t.key + '-heading'; - return o.a.createElement( - n, - He({}, f, i, { - Heading: r, - headingProps: { id: a }, - label: e.formatGroupLabel(t.data) - }), - t.options.map(function(e) { - return D(e); - }) - ); - } - if ('option' === t.type) return D(t); - }); - else if (y) { - var z = v({ inputValue: b }); - if (null === z) return null; - P = o.a.createElement(c, f, z); - } else { - var N = T({ inputValue: b }); - if (null === N) return null; - P = o.a.createElement(u, f, N); - } - var j = { - minMenuHeight: _, - maxMenuHeight: x, - menuPlacement: M, - menuPosition: k, - menuShouldScrollIntoView: E - }, - R = o.a.createElement(A, He({}, f, j), function(t) { - var n = t.ref, - r = t.placerProps, - s = r.placement, - c = r.maxHeight; - return o.a.createElement( - i, - He({}, f, j, { - innerRef: n, - innerProps: { - onMouseDown: e.onMenuMouseDown, - onMouseMove: e.onMenuMouseMove - }, - isLoading: y, - placement: s - }), - o.a.createElement( - ze, - { isEnabled: m, onTopArrive: C, onBottomArrive: L }, - o.a.createElement( - Pe, - { isEnabled: O }, - o.a.createElement( - a, - He({}, f, { - innerRef: e.getMenuListRef, - isLoading: y, - maxHeight: c + } + }, + { + key: 'renderPlaceholderOrValue', + value: function() { + var e = this, + t = this.components, + n = t.MultiValue, + r = t.MultiValueContainer, + i = t.MultiValueLabel, + a = t.MultiValueRemove, + s = t.SingleValue, + c = t.Placeholder, + u = this.commonProps, + l = this.props, + f = l.controlShouldRenderValue, + d = l.isDisabled, + p = l.isMulti, + h = l.inputValue, + m = l.placeholder, + b = this.state, + y = b.selectValue, + v = b.focusedValue, + _ = b.isFocused; + if (!this.hasValue() || !f) + return h + ? null + : g.a.createElement( + c, + Object(o.a)({}, u, { + key: 'placeholder', + isDisabled: d, + isFocused: _ + }), + m + ); + if (p) + return y.map(function(t, s) { + var c = t === v; + return g.a.createElement( + n, + Object(o.a)({}, u, { + components: { Container: r, Label: i, Remove: a }, + isFocused: c, + isDisabled: d, + key: e.getOptionValue(t), + index: s, + removeProps: { + onClick: function() { + return e.removeValue(t); + }, + onTouchEnd: function() { + return e.removeValue(t); + }, + onMouseDown: function(e) { + e.preventDefault(), e.stopPropagation(); + } + }, + data: t + }), + e.formatOptionLabel(t, 'value') + ); + }); + if (h) return null; + var w = y[0]; + return g.a.createElement( + s, + Object(o.a)({}, u, { data: w, isDisabled: d }), + this.formatOptionLabel(w, 'value') + ); + } + }, + { + key: 'renderClearIndicator', + value: function() { + var e = this.components.ClearIndicator, + t = this.commonProps, + n = this.props, + r = n.isDisabled, + i = n.isLoading, + a = this.state.isFocused; + if (!this.isClearable() || !e || r || !this.hasValue() || i) + return null; + var s = { + onMouseDown: this.onClearIndicatorMouseDown, + onTouchEnd: this.onClearIndicatorTouchEnd, + 'aria-hidden': 'true' + }; + return g.a.createElement( + e, + Object(o.a)({}, t, { innerProps: s, isFocused: a }) + ); + } + }, + { + key: 'renderLoadingIndicator', + value: function() { + var e = this.components.LoadingIndicator, + t = this.commonProps, + n = this.props, + r = n.isDisabled, + i = n.isLoading, + a = this.state.isFocused; + if (!e || !i) return null; + return g.a.createElement( + e, + Object(o.a)({}, t, { + innerProps: { 'aria-hidden': 'true' }, + isDisabled: r, + isFocused: a + }) + ); + } + }, + { + key: 'renderIndicatorSeparator', + value: function() { + var e = this.components, + t = e.DropdownIndicator, + n = e.IndicatorSeparator; + if (!t || !n) return null; + var r = this.commonProps, + i = this.props.isDisabled, + a = this.state.isFocused; + return g.a.createElement( + n, + Object(o.a)({}, r, { isDisabled: i, isFocused: a }) + ); + } + }, + { + key: 'renderDropdownIndicator', + value: function() { + var e = this.components.DropdownIndicator; + if (!e) return null; + var t = this.commonProps, + n = this.props.isDisabled, + r = this.state.isFocused, + i = { + onMouseDown: this.onDropdownIndicatorMouseDown, + onTouchEnd: this.onDropdownIndicatorTouchEnd, + 'aria-hidden': 'true' + }; + return g.a.createElement( + e, + Object(o.a)({}, t, { + innerProps: i, + isDisabled: n, + isFocused: r + }) + ); + } + }, + { + key: 'renderMenu', + value: function() { + var e = this, + t = this.components, + n = t.Group, + i = t.GroupHeading, + a = t.Menu, + s = t.MenuList, + c = t.MenuPortal, + u = t.LoadingMessage, + l = t.NoOptionsMessage, + f = t.Option, + d = this.commonProps, + p = this.state, + h = p.focusedOption, + m = p.menuOptions, + b = this.props, + y = b.captureMenuScroll, + v = b.inputValue, + _ = b.isLoading, + w = b.loadingMessage, + x = b.minMenuHeight, + M = b.maxMenuHeight, + k = b.menuIsOpen, + S = b.menuPlacement, + O = b.menuPosition, + E = b.menuPortalTarget, + A = b.menuShouldBlockScroll, + T = b.menuShouldScrollIntoView, + C = b.noOptionsMessage, + L = b.onMenuScrollToTop, + P = b.onMenuScrollToBottom; + if (!k) return null; + var D, + j = function(t) { + var n = h === t.data; + return ( + (t.innerRef = n ? e.getFocusedOptionRef : void 0), + g.a.createElement( + f, + Object(o.a)({}, d, t, { isFocused: n }), + e.formatOptionLabel(t.data, 'menu') + ) + ); + }; + if (this.hasOptions()) + D = m.render.map(function(t) { + if ('group' === t.type) { + t.type; + var a = Object(r.a)(t, ['type']), + s = ''.concat(t.key, '-heading'); + return g.a.createElement( + n, + Object(o.a)({}, d, a, { + Heading: i, + headingProps: { id: s }, + label: e.formatGroupLabel(t.data) }), - P + t.options.map(function(e) { + return j(e); + }) + ); + } + if ('option' === t.type) return j(t); + }); + else if (_) { + var z = w({ inputValue: v }); + if (null === z) return null; + D = g.a.createElement(u, d, z); + } else { + var N = C({ inputValue: v }); + if (null === N) return null; + D = g.a.createElement(l, d, N); + } + var I = { + minMenuHeight: x, + maxMenuHeight: M, + menuPlacement: S, + menuPosition: O, + menuShouldScrollIntoView: T + }, + F = g.a.createElement(R, Object(o.a)({}, d, I), function( + t + ) { + var n = t.ref, + r = t.placerProps, + i = r.placement, + c = r.maxHeight; + return g.a.createElement( + a, + Object(o.a)({}, d, I, { + innerRef: n, + innerProps: { + onMouseDown: e.onMenuMouseDown, + onMouseMove: e.onMenuMouseMove + }, + isLoading: _, + placement: i + }), + g.a.createElement( + ze, + { isEnabled: y, onTopArrive: L, onBottomArrive: P }, + g.a.createElement( + De, + { isEnabled: A }, + g.a.createElement( + s, + Object(o.a)({}, d, { + innerRef: e.getMenuListRef, + isLoading: _, + maxHeight: c + }), + D + ) + ) ) + ); + }); + return E || 'fixed' === O + ? g.a.createElement( + c, + Object(o.a)({}, d, { + appendTo: E, + controlElement: this.controlRef, + menuPlacement: S, + menuPosition: O + }), + F ) - ) - ); - }); - return S || 'fixed' === k - ? o.a.createElement( - s, - He({}, f, { - appendTo: S, - controlElement: this.controlRef, - menuPlacement: M, - menuPosition: k - }), - R - ) - : R; - }), - (a.renderFormField = function() { - var e = this, - t = this.props, - n = t.delimiter, - r = t.isDisabled, - i = t.isMulti, - a = t.name, - s = this.state.selectValue; - if (a && !r) { - if (i) { - if (n) { - var c = s - .map(function(t) { - return e.getOptionValue(t); - }) - .join(n); - return o.a.createElement('input', { - name: a, + : F; + } + }, + { + key: 'renderFormField', + value: function() { + var e = this, + t = this.props, + n = t.delimiter, + r = t.isDisabled, + o = t.isMulti, + i = t.name, + a = this.state.selectValue; + if (i && !r) { + if (o) { + if (n) { + var s = a + .map(function(t) { + return e.getOptionValue(t); + }) + .join(n); + return g.a.createElement('input', { + name: i, + type: 'hidden', + value: s + }); + } + var c = + a.length > 0 + ? a.map(function(t, n) { + return g.a.createElement('input', { + key: 'i-'.concat(n), + name: i, + type: 'hidden', + value: e.getOptionValue(t) + }); + }) + : g.a.createElement('input', { + name: i, + type: 'hidden' + }); + return g.a.createElement('div', null, c); + } + var u = a[0] ? this.getOptionValue(a[0]) : ''; + return g.a.createElement('input', { + name: i, type: 'hidden', - value: c + value: u }); } - var u = - s.length > 0 - ? s.map(function(t, n) { - return o.a.createElement('input', { - key: 'i-' + n, - name: a, - type: 'hidden', - value: e.getOptionValue(t) - }); - }) - : o.a.createElement('input', { name: a, type: 'hidden' }); - return o.a.createElement('div', null, u); } - var l = s[0] ? this.getOptionValue(s[0]) : ''; - return o.a.createElement('input', { - name: a, - type: 'hidden', - value: l - }); - } - }), - (a.renderLiveRegion = function() { - return this.state.isFocused - ? o.a.createElement( - ye, - { 'aria-live': 'polite' }, - o.a.createElement( - 'p', - { id: 'aria-selection-event' }, - ' ', - this.state.ariaLiveSelection + }, + { + key: 'renderLiveRegion', + value: function() { + return this.state.isFocused + ? g.a.createElement( + _e, + { 'aria-live': 'polite' }, + g.a.createElement( + 'p', + { id: 'aria-selection-event' }, + ' ', + this.state.ariaLiveSelection + ), + g.a.createElement( + 'p', + { id: 'aria-context' }, + ' ', + this.constructAriaLiveMessage() + ) + ) + : null; + } + }, + { + key: 'render', + value: function() { + var e = this.components, + t = e.Control, + n = e.IndicatorsContainer, + r = e.SelectContainer, + i = e.ValueContainer, + a = this.props, + s = a.className, + c = a.id, + u = a.isDisabled, + l = a.menuIsOpen, + f = this.state.isFocused, + d = (this.commonProps = this.getCommonProps()); + return g.a.createElement( + r, + Object(o.a)({}, d, { + className: s, + innerProps: { id: c, onKeyDown: this.onKeyDown }, + isDisabled: u, + isFocused: f + }), + this.renderLiveRegion(), + g.a.createElement( + t, + Object(o.a)({}, d, { + innerRef: this.getControlRef, + innerProps: { + onMouseDown: this.onControlMouseDown, + onTouchEnd: this.onControlTouchEnd + }, + isDisabled: u, + isFocused: f, + menuIsOpen: l + }), + g.a.createElement( + i, + Object(o.a)({}, d, { isDisabled: u }), + this.renderPlaceholderOrValue(), + this.renderInput() + ), + g.a.createElement( + n, + Object(o.a)({}, d, { isDisabled: u }), + this.renderClearIndicator(), + this.renderLoadingIndicator(), + this.renderIndicatorSeparator(), + this.renderDropdownIndicator() + ) ), - o.a.createElement( - 'p', - { id: 'aria-context' }, - ' ', - this.constructAriaLiveMessage() - ) - ) - : null; - }), - (a.render = function() { - var e = this.components, - t = e.Control, - n = e.IndicatorsContainer, - r = e.SelectContainer, - i = e.ValueContainer, - a = this.props, - s = a.className, - c = a.id, - u = a.isDisabled, - l = a.menuIsOpen, - f = this.state.isFocused, - d = (this.commonProps = this.getCommonProps()); - return o.a.createElement( - r, - He({}, d, { - className: s, - innerProps: { id: c, onKeyDown: this.onKeyDown }, - isDisabled: u, - isFocused: f - }), - this.renderLiveRegion(), - o.a.createElement( - t, - He({}, d, { - innerRef: this.getControlRef, - innerProps: { - onMouseDown: this.onControlMouseDown, - onTouchEnd: this.onControlTouchEnd - }, - isDisabled: u, - isFocused: f, - menuIsOpen: l - }), - o.a.createElement( - i, - He({}, d, { isDisabled: u }), - this.renderPlaceholderOrValue(), - this.renderInput() - ), - o.a.createElement( - n, - He({}, d, { isDisabled: u }), - this.renderClearIndicator(), - this.renderLoadingIndicator(), - this.renderIndicatorSeparator(), - this.renderDropdownIndicator() - ) - ), - this.renderMenu(), - this.renderFormField() - ); - }), - r + this.renderMenu(), + this.renderFormField() + ); + } + } + ]), + t ); - })(r.Component); - function Xe() { - return (Xe = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - Ue.defaultProps = We; - var Ge = { + })(h.Component); + Object(p.a)(We, 'defaultProps', He); + var Ve = { defaultInputValue: '', defaultMenuIsOpen: !1, defaultValue: null }, - Ke = n(81); - var $e, - Qe, - Je, - Ze = (function(e) { - var t, n; - function r(t) { + Ue = n(97); + n.d(t, 'NonceProvider', function() { + return $e; + }), + n.d(t, 'components', function() { + return de; + }), + n.d(t, 'createFilter', function() { + return ye; + }), + n.d(t, 'defaultTheme', function() { + return Be; + }), + n.d(t, 'mergeStyles', function() { + return qe; + }); + var Xe, + Ge, + Ke, + $e = (function(e) { + function t(e) { var n; return ( - ((n = e.call(this, t) || this).createEmotionCache = function(e) { - return Object(Ke.a)({ nonce: e }); - }), - (n.createEmotionCache = Object(i.a)(n.createEmotionCache)), + Object(s.a)(this, t), + (n = Object(u.a)(this, Object(l.a)(t).call(this, e))), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'createEmotionCache', + function(e) { + return Object(Ue.a)({ nonce: e }); + } + ), + (n.createEmotionCache = Object(m.a)(n.createEmotionCache)), n ); } return ( - (n = e), - ((t = r).prototype = Object.create(n.prototype)), - (t.prototype.constructor = t), - (t.__proto__ = n), - (r.prototype.render = function() { - var e = this.createEmotionCache(this.props.nonce); - return o.a.createElement(a.a, { value: e }, this.props.children); - }), - r + Object(f.a)(t, e), + Object(c.a)(t, [ + { + key: 'render', + value: function() { + var e = this.createEmotionCache(this.props.nonce); + return g.a.createElement( + b.a, + { value: e }, + this.props.children + ); + } + } + ]), + t ); - })(r.Component), - et = - (($e = Ue), - (Je = Qe = (function(e) { - var t, n; - function r() { + })(h.Component), + Qe = + ((Xe = We), + (Ke = Ge = (function(e) { + function t() { + var e, n; + Object(s.a)(this, t); for ( - var t, n = arguments.length, r = new Array(n), o = 0; - o < n; - o++ + var r = arguments.length, o = new Array(r), i = 0; + i < r; + i++ ) - r[o] = arguments[o]; + o[i] = arguments[i]; return ( - ((t = - e.call.apply(e, [this].concat(r)) || this).select = void 0), - (t.state = { + (n = Object(u.a)( + this, + (e = Object(l.a)(t)).call.apply(e, [this].concat(o)) + )), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'select', void 0), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'state', { inputValue: - void 0 !== t.props.inputValue - ? t.props.inputValue - : t.props.defaultInputValue, + void 0 !== n.props.inputValue + ? n.props.inputValue + : n.props.defaultInputValue, menuIsOpen: - void 0 !== t.props.menuIsOpen - ? t.props.menuIsOpen - : t.props.defaultMenuIsOpen, + void 0 !== n.props.menuIsOpen + ? n.props.menuIsOpen + : n.props.defaultMenuIsOpen, value: - void 0 !== t.props.value - ? t.props.value - : t.props.defaultValue + void 0 !== n.props.value + ? n.props.value + : n.props.defaultValue }), - (t.onChange = function(e, n) { - t.callProp('onChange', e, n), t.setState({ value: e }); - }), - (t.onInputChange = function(e, n) { - var r = t.callProp('onInputChange', e, n); - t.setState({ inputValue: void 0 !== r ? r : e }); - }), - (t.onMenuOpen = function() { - t.callProp('onMenuOpen'), t.setState({ menuIsOpen: !0 }); - }), - (t.onMenuClose = function() { - t.callProp('onMenuClose'), t.setState({ menuIsOpen: !1 }); + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'onChange', function( + e, + t + ) { + n.callProp('onChange', e, t), n.setState({ value: e }); }), - t + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'onInputChange', + function(e, t) { + var r = n.callProp('onInputChange', e, t); + n.setState({ inputValue: void 0 !== r ? r : e }); + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'onMenuOpen', + function() { + n.callProp('onMenuOpen'), n.setState({ menuIsOpen: !0 }); + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'onMenuClose', + function() { + n.callProp('onMenuClose'), n.setState({ menuIsOpen: !1 }); + } + ), + n ); } - (n = e), - ((t = r).prototype = Object.create(n.prototype)), - (t.prototype.constructor = t), - (t.__proto__ = n); - var i = r.prototype; return ( - (i.focus = function() { - this.select.focus(); - }), - (i.blur = function() { - this.select.blur(); - }), - (i.getProp = function(e) { - return void 0 !== this.props[e] ? this.props[e] : this.state[e]; - }), - (i.callProp = function(e) { - if ('function' == typeof this.props[e]) { - for ( - var t, - n = arguments.length, - r = new Array(n > 1 ? n - 1 : 0), - o = 1; - o < n; - o++ - ) - r[o - 1] = arguments[o]; - return (t = this.props)[e].apply(t, r); + Object(f.a)(t, e), + Object(c.a)(t, [ + { + key: 'focus', + value: function() { + this.select.focus(); + } + }, + { + key: 'blur', + value: function() { + this.select.blur(); + } + }, + { + key: 'getProp', + value: function(e) { + return void 0 !== this.props[e] + ? this.props[e] + : this.state[e]; + } + }, + { + key: 'callProp', + value: function(e) { + if ('function' == typeof this.props[e]) { + for ( + var t, + n = arguments.length, + r = new Array(n > 1 ? n - 1 : 0), + o = 1; + o < n; + o++ + ) + r[o - 1] = arguments[o]; + return (t = this.props)[e].apply(t, r); + } + } + }, + { + key: 'render', + value: function() { + var e = this, + t = this.props, + n = + (t.defaultInputValue, + t.defaultMenuIsOpen, + t.defaultValue, + Object(r.a)(t, [ + 'defaultInputValue', + 'defaultMenuIsOpen', + 'defaultValue' + ])); + return g.a.createElement( + Xe, + Object(o.a)({}, n, { + ref: function(t) { + e.select = t; + }, + inputValue: this.getProp('inputValue'), + menuIsOpen: this.getProp('menuIsOpen'), + onChange: this.onChange, + onInputChange: this.onInputChange, + onMenuClose: this.onMenuClose, + onMenuOpen: this.onMenuOpen, + value: this.getProp('value') + }) + ); + } } - }), - (i.render = function() { - var e = this, - t = this.props, - n = - (t.defaultInputValue, - t.defaultMenuIsOpen, - t.defaultValue, - (function(e, t) { - if (null == e) return {}; - var n, - r, - o = {}, - i = Object.keys(e); - for (r = 0; r < i.length; r++) - (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); - return o; - })(t, [ - 'defaultInputValue', - 'defaultMenuIsOpen', - 'defaultValue' - ])); - return o.a.createElement( - $e, - Xe({}, n, { - ref: function(t) { - e.select = t; - }, - inputValue: this.getProp('inputValue'), - menuIsOpen: this.getProp('menuIsOpen'), - onChange: this.onChange, - onInputChange: this.onInputChange, - onMenuClose: this.onMenuClose, - onMenuOpen: this.onMenuOpen, - value: this.getProp('value') - }) - ); - }), - r + ]), + t ); - })(r.Component)), - (Qe.defaultProps = Ge), - Je); - t.default = et; + })(h.Component)), + Object(p.a)(Ge, 'defaultProps', Ve), + Ke); + t.default = Qe; }, function(e, t, n) { 'use strict'; - n.r(t), - n.d(t, 'components', function() { - return ue; - }), - n.d(t, 'createFilter', function() { - return ge; - }), - n.d(t, 'defaultTheme', function() { - return Be; - }), - n.d(t, 'mergeStyles', function() { - return qe; - }), - n.d(t, 'NonceProvider', function() { - return Ze; - }); - var r = n(0), - o = n.n(r), - i = n(34), - a = n(3), - s = n(4), - c = n(1), - u = n.n(c), - l = function() {}; - function f(e, t) { + n.r(t); + var r = n(24), + o = n(5), + i = n(95), + a = n(17), + s = n(10), + c = n(11), + u = n(12), + l = n(13), + f = n(14), + d = n(2), + p = n(3), + h = n(0), + g = n.n(h), + m = n(50), + b = n(6), + y = n(7), + v = n(1), + _ = n.n(v), + w = n(42), + x = function() {}; + function M(e, t) { return t ? ('-' === t[0] ? e + t : e + '__' + t) : e; } - function d(e, t, n) { + function k(e, t, n) { var r = [n]; if (t && e) - for (var o in t) t.hasOwnProperty(o) && t[o] && r.push('' + f(e, o)); + for (var o in t) + t.hasOwnProperty(o) && t[o] && r.push(''.concat(M(e, o))); return r .filter(function(e) { return e; @@ -250775,63 +250509,53 @@ object-assign }) .join(' '); } - var p = function(e) { + var S = function(e) { return Array.isArray(e) ? e.filter(Boolean) - : 'object' == typeof e && null !== e + : 'object' === Object(w.a)(e) && null !== e ? [e] : []; }; - function h(e) { + function O(e) { return ( [document.documentElement, document.body, window].indexOf(e) > -1 ); } - function g(e) { - return h(e) ? window.pageYOffset : e.scrollTop; + function E(e) { + return O(e) ? window.pageYOffset : e.scrollTop; } - function m(e, t) { - h(e) ? window.scrollTo(0, t) : (e.scrollTop = t); + function A(e, t) { + O(e) ? window.scrollTo(0, t) : (e.scrollTop = t); } - function b(e, t, n, r) { - void 0 === n && (n = 200), void 0 === r && (r = l); - var o = g(e), + function T(e, t) { + var n = + arguments.length > 2 && void 0 !== arguments[2] + ? arguments[2] + : 200, + r = + arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : x, + o = E(e), i = t - o, - a = 0; + a = 10, + s = 0; !(function t() { - var s, - c = i * ((s = (s = a += 10) / n - 1) * s * s + 1) + o; - m(e, c), a < n ? window.requestAnimationFrame(t) : r(e); + var c, + u = i * ((c = (c = s += a) / n - 1) * c * c + 1) + o; + A(e, u), s < n ? window.requestAnimationFrame(t) : r(e); })(); } - function y() { + function C() { try { return document.createEvent('TouchEvent'), !0; } catch (e) { return !1; } } - var v = n(27), - _ = n(51), - x = n.n(_); - function w() { - return (w = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - function M(e, t) { - (e.prototype = Object.create(t.prototype)), - (e.prototype.constructor = e), - (e.__proto__ = t); - } - function k(e) { + var L = n(40), + P = n(93), + D = n(194), + j = n.n(D); + function z(e) { var t = e.maxHeight, n = e.menuEl, r = e.minHeight, @@ -250861,85 +250585,89 @@ object-assign d = f.bottom, p = f.height, h = f.top, - y = n.offsetParent.getBoundingClientRect().top, - v = window.innerHeight, - _ = g(c), - x = parseInt(getComputedStyle(n).marginBottom, 10), - w = parseInt(getComputedStyle(n).marginTop, 10), - M = y - w, - k = v - h, - S = M + _, - A = l - _ - h, - O = d - v + _ + x, - E = _ + h - w; + g = n.offsetParent.getBoundingClientRect().top, + m = window.innerHeight, + b = E(c), + y = parseInt(getComputedStyle(n).marginBottom, 10), + v = parseInt(getComputedStyle(n).marginTop, 10), + _ = g - v, + w = m - h, + x = _ + b, + M = l - b - h, + k = d - m + b + y, + S = b + h - v; switch (o) { case 'auto': case 'bottom': - if (k >= p) return { placement: 'bottom', maxHeight: t }; - if (A >= p && !a) - return i && b(c, O, 160), { placement: 'bottom', maxHeight: t }; - if ((!a && A >= r) || (a && k >= r)) + if (w >= p) return { placement: 'bottom', maxHeight: t }; + if (M >= p && !a) + return i && T(c, k, 160), { placement: 'bottom', maxHeight: t }; + if ((!a && M >= r) || (a && w >= r)) return ( - i && b(c, O, 160), - { placement: 'bottom', maxHeight: a ? k - x : A - x } + i && T(c, k, 160), + { placement: 'bottom', maxHeight: a ? w - y : M - y } ); if ('auto' === o || a) { - var T = t, - C = a ? M : S; + var O = t, + C = a ? _ : x; return ( - C >= r && (T = Math.min(C - x - s.controlHeight, t)), - { placement: 'top', maxHeight: T } + C >= r && (O = Math.min(C - y - s.controlHeight, t)), + { placement: 'top', maxHeight: O } ); } if ('bottom' === o) - return m(c, O), { placement: 'bottom', maxHeight: t }; + return A(c, k), { placement: 'bottom', maxHeight: t }; break; case 'top': - if (M >= p) return { placement: 'top', maxHeight: t }; - if (S >= p && !a) - return i && b(c, E, 160), { placement: 'top', maxHeight: t }; - if ((!a && S >= r) || (a && M >= r)) { + if (_ >= p) return { placement: 'top', maxHeight: t }; + if (x >= p && !a) + return i && T(c, S, 160), { placement: 'top', maxHeight: t }; + if ((!a && x >= r) || (a && _ >= r)) { var L = t; return ( - ((!a && S >= r) || (a && M >= r)) && (L = a ? M - w : S - w), - i && b(c, E, 160), + ((!a && x >= r) || (a && _ >= r)) && (L = a ? _ - v : x - v), + i && T(c, S, 160), { placement: 'top', maxHeight: L } ); } return { placement: 'bottom', maxHeight: t }; default: - throw new Error('Invalid placement provided "' + o + '".'); + throw new Error('Invalid placement provided "'.concat(o, '".')); } return u; } - var S = function(e) { + var N = function(e) { return 'auto' === e ? 'bottom' : e; }, - A = (function(e) { + R = (function(e) { function t() { - for ( - var t, n = arguments.length, r = new Array(n), o = 0; - o < n; - o++ - ) - r[o] = arguments[o]; + var e, n; + Object(s.a)(this, t); + for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) + o[i] = arguments[i]; return ( - ((t = e.call.apply(e, [this].concat(r)) || this).state = { - maxHeight: t.props.maxMenuHeight, + (n = Object(u.a)( + this, + (e = Object(l.a)(t)).call.apply(e, [this].concat(o)) + )), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'state', { + maxHeight: n.props.maxMenuHeight, placement: null }), - (t.getPlacement = function(e) { - var n = t.props, - r = n.minMenuHeight, - o = n.maxMenuHeight, - i = n.menuPlacement, - a = n.menuPosition, - s = n.menuShouldScrollIntoView, - c = n.theme, - u = t.context.getPortalPlacement; + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'getPlacement', function( + e + ) { + var t = n.props, + r = t.minMenuHeight, + o = t.maxMenuHeight, + i = t.menuPlacement, + a = t.menuPosition, + s = t.menuShouldScrollIntoView, + c = t.theme, + u = n.context.getPortalPlacement; if (e) { var l = 'fixed' === a, - f = k({ + f = z({ maxHeight: o, menuEl: e, minHeight: r, @@ -250948,149 +250676,180 @@ object-assign isFixedPosition: l, theme: c }); - u && u(f), t.setState(f); + u && u(f), n.setState(f); } }), - (t.getUpdatedProps = function() { - var e = t.props.menuPlacement, - n = t.state.placement || S(e); - return w({}, t.props, { - placement: n, - maxHeight: t.state.maxHeight - }); - }), - t + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'getUpdatedProps', + function() { + var e = n.props.menuPlacement, + t = n.state.placement || N(e); + return Object(a.a)({}, n.props, { + placement: t, + maxHeight: n.state.maxHeight + }); + } + ), + n ); } return ( - M(t, e), - (t.prototype.render = function() { - return (0, this.props.children)({ - ref: this.getPlacement, - placerProps: this.getUpdatedProps() - }); - }), + Object(f.a)(t, e), + Object(c.a)(t, [ + { + key: 'render', + value: function() { + return (0, this.props.children)({ + ref: this.getPlacement, + placerProps: this.getUpdatedProps() + }); + } + } + ]), t ); - })(r.Component); - A.contextTypes = { getPortalPlacement: u.a.func }; - var O = function(e) { + })(h.Component); + Object(p.a)(R, 'contextTypes', { getPortalPlacement: _.a.func }); + var I = function(e) { var t = e.theme, n = t.spacing.baseUnit; return { color: t.colors.neutral40, - padding: 2 * n + 'px ' + 3 * n + 'px', + padding: ''.concat(2 * n, 'px ').concat(3 * n, 'px'), textAlign: 'center' }; }, - E = O, - T = O, - C = function(e) { + F = I, + q = I, + B = function(e) { var t = e.children, n = e.className, r = e.cx, - o = e.getStyles, - i = e.innerProps; - return Object(a.c)( + i = e.getStyles, + a = e.innerProps; + return Object(b.c)( 'div', - w( + Object(o.a)( { - css: o('noOptionsMessage', e), + css: i('noOptionsMessage', e), className: r( { 'menu-notice': !0, 'menu-notice--no-options': !0 }, n ) }, - i + a ), t ); }; - C.defaultProps = { children: 'No options' }; - var L = function(e) { + B.defaultProps = { children: 'No options' }; + var H = function(e) { var t = e.children, n = e.className, r = e.cx, - o = e.getStyles, - i = e.innerProps; - return Object(a.c)( + i = e.getStyles, + a = e.innerProps; + return Object(b.c)( 'div', - w( + Object(o.a)( { - css: o('loadingMessage', e), + css: i('loadingMessage', e), className: r({ 'menu-notice': !0, 'menu-notice--loading': !0 }, n) }, - i + a ), t ); }; - L.defaultProps = { children: 'Loading...' }; - var P = (function(e) { + H.defaultProps = { children: 'Loading...' }; + var Y = (function(e) { function t() { - for (var t, n = arguments.length, r = new Array(n), o = 0; o < n; o++) - r[o] = arguments[o]; + var e, n; + Object(s.a)(this, t); + for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) + o[i] = arguments[i]; return ( - ((t = e.call.apply(e, [this].concat(r)) || this).state = { + (n = Object(u.a)( + this, + (e = Object(l.a)(t)).call.apply(e, [this].concat(o)) + )), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'state', { placement: null }), - (t.getPortalPlacement = function(e) { - var n = e.placement; - n !== S(t.props.menuPlacement) && t.setState({ placement: n }); - }), - t + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'getPortalPlacement', + function(e) { + var t = e.placement; + t !== N(n.props.menuPlacement) && n.setState({ placement: t }); + } + ), + n ); } - M(t, e); - var n = t.prototype; return ( - (n.getChildContext = function() { - return { getPortalPlacement: this.getPortalPlacement }; - }), - (n.render = function() { - var e = this.props, - t = e.appendTo, - n = e.children, - r = e.controlElement, - o = e.menuPlacement, - i = e.menuPosition, - c = e.getStyles, - u = 'fixed' === i; - if ((!t && !u) || !r) return null; - var l = this.state.placement || S(o), - f = (function(e) { - var t = e.getBoundingClientRect(); - return { - bottom: t.bottom, - height: t.height, - left: t.left, - right: t.right, - top: t.top, - width: t.width - }; - })(r), - d = u ? 0 : window.pageYOffset, - p = { offset: f[l] + d, position: i, rect: f }, - h = Object(a.c)('div', { css: c('menuPortal', p) }, n); - return t ? Object(s.createPortal)(h, t) : h; - }), + Object(f.a)(t, e), + Object(c.a)(t, [ + { + key: 'getChildContext', + value: function() { + return { getPortalPlacement: this.getPortalPlacement }; + } + }, + { + key: 'render', + value: function() { + var e = this.props, + t = e.appendTo, + n = e.children, + r = e.controlElement, + o = e.menuPlacement, + i = e.menuPosition, + a = e.getStyles, + s = 'fixed' === i; + if ((!t && !s) || !r) return null; + var c = this.state.placement || N(o), + u = (function(e) { + var t = e.getBoundingClientRect(); + return { + bottom: t.bottom, + height: t.height, + left: t.left, + right: t.right, + top: t.top, + width: t.width + }; + })(r), + l = s ? 0 : window.pageYOffset, + f = { offset: u[c] + l, position: i, rect: u }, + d = Object(b.c)('div', { css: a('menuPortal', f) }, n); + return t ? Object(y.createPortal)(d, t) : d; + } + } + ]), t ); - })(r.Component); - P.childContextTypes = { getPortalPlacement: u.a.func }; - var D = Array.isArray, - z = Object.keys, - N = Object.prototype.hasOwnProperty; - function j(e, t) { + })(h.Component); + Object(p.a)(Y, 'childContextTypes', { getPortalPlacement: _.a.func }); + var W = Array.isArray, + V = Object.keys, + U = Object.prototype.hasOwnProperty; + function X(e, t) { try { return (function e(t, n) { if (t === n) return !0; - if (t && n && 'object' == typeof t && 'object' == typeof n) { + if ( + t && + n && + 'object' == Object(w.a)(t) && + 'object' == Object(w.a)(n) + ) { var r, o, i, - a = D(t), - s = D(n); + a = W(t), + s = W(n); if (a && s) { if ((o = t.length) != n.length) return !1; for (r = o; 0 != r--; ) if (!e(t[r], n[r])) return !1; @@ -251105,9 +250864,9 @@ object-assign f = n instanceof RegExp; if (l != f) return !1; if (l && f) return t.toString() == n.toString(); - var d = z(t); - if ((o = d.length) !== z(n).length) return !1; - for (r = o; 0 != r--; ) if (!N.call(n, d[r])) return !1; + var d = V(t); + if ((o = d.length) !== V(n).length) return !1; + for (r = o; 0 != r--; ) if (!U.call(n, d[r])) return !1; for (r = o; 0 != r--; ) if (!(('_owner' === (i = d[r]) && t.$$typeof) || e(t[i], n[i]))) return !1; @@ -251128,95 +250887,102 @@ object-assign throw e; } } - function R() { - return (R = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); + var G = (function(e) { + function t() { + return ( + Object(s.a)(this, t), + Object(u.a)(this, Object(l.a)(t).apply(this, arguments)) + ); + } + return ( + Object(f.a)(t, e), + Object(c.a)(t, [ + { + key: 'render', + value: function() { + var e = this.props, + t = e.children, + n = e.className, + r = e.cx, + o = e.isMulti, + i = e.getStyles, + a = e.hasValue; + return Object(b.c)( + 'div', + { + css: i('valueContainer', this.props), + className: r( + { + 'value-container': !0, + 'value-container--is-multi': o, + 'value-container--has-value': a + }, + n + ) + }, + t + ); + } } - return e; - }).apply(this, arguments); - } - function I() { - var e = (function(e, t) { - t || (t = e.slice(0)); - return (e.raw = t), e; - })(['\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n']); + ]), + t + ); + })(h.Component); + function K() { + var e = Object(P.a)([ + '\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n' + ]); return ( - (I = function() { + (K = function() { return e; }), e ); } - function F() { - return (F = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - var q = { + var $ = { name: '19bqh2r', styles: 'display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;' }, - B = function(e) { + Q = function(e) { var t = e.size, - n = (function(e, t) { - if (null == e) return {}; - var n, - r, - o = {}, - i = Object.keys(e); - for (r = 0; r < i.length; r++) - (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); - return o; - })(e, ['size']); - return Object(a.c)( + n = Object(r.a)(e, ['size']); + return Object(b.c)( 'svg', - F( + Object(o.a)( { height: t, width: t, viewBox: '0 0 20 20', 'aria-hidden': 'true', focusable: 'false', - css: q + css: $ }, n ) ); }, - H = function(e) { - return Object(a.c)( - B, - F({ size: 20 }, e), - Object(a.c)('path', { + J = function(e) { + return Object(b.c)( + Q, + Object(o.a)({ size: 20 }, e), + Object(b.c)('path', { d: 'M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z' }) ); }, - Y = function(e) { - return Object(a.c)( - B, - F({ size: 20 }, e), - Object(a.c)('path', { + Z = function(e) { + return Object(b.c)( + Q, + Object(o.a)({ size: 20 }, e), + Object(b.c)('path', { d: 'M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z' }) ); }, - W = function(e) { + ee = function(e) { var t = e.isFocused, n = e.theme, r = n.spacing.baseUnit, @@ -251230,16 +250996,18 @@ object-assign ':hover': { color: t ? o.neutral80 : o.neutral40 } }; }, - V = W, - U = W, - X = Object(a.d)(I()), - G = function(e) { + te = ee, + ne = ee, + re = Object(b.d)(K()), + oe = function(e) { var t = e.delay, n = e.offset; - return Object(a.c)('span', { - css: Object(v.a)( + return Object(b.c)('span', { + css: Object(L.a)( { - animation: X + ' 1s ease-in-out ' + t + 'ms infinite;', + animation: '' + .concat(re, ' 1s ease-in-out ') + .concat(t, 'ms infinite;'), backgroundColor: 'currentColor', borderRadius: '1em', display: 'inline-block', @@ -251252,239 +251020,152 @@ object-assign ) }); }, - K = function(e) { + ie = function(e) { var t = e.className, n = e.cx, r = e.getStyles, - o = e.innerProps, - i = e.isRtl; - return Object(a.c)( + i = e.innerProps, + a = e.isRtl; + return Object(b.c)( 'div', - F({}, o, { + Object(o.a)({}, i, { css: r('loadingIndicator', e), className: n({ indicator: !0, 'loading-indicator': !0 }, t) }), - Object(a.c)(G, { delay: 0, offset: i }), - Object(a.c)(G, { delay: 160, offset: !0 }), - Object(a.c)(G, { delay: 320, offset: !i }) + Object(b.c)(oe, { delay: 0, offset: a }), + Object(b.c)(oe, { delay: 160, offset: !0 }), + Object(b.c)(oe, { delay: 320, offset: !a }) ); }; - function $() { - return ($ = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - K.defaultProps = { size: 4 }; - function Q() { - return (Q = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - function J() { - return (J = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - var Z = function(e) { - return { - label: 'input', - background: 0, - border: 0, - fontSize: 'inherit', - opacity: e ? 0 : 1, - outline: 0, - padding: 0, - color: 'inherit' - }; - }; - function ee() { - return (ee = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - var te = function(e) { + ie.defaultProps = { size: 4 }; + var ae = function(e) { + return { + label: 'input', + background: 0, + border: 0, + fontSize: 'inherit', + opacity: e ? 0 : 1, + outline: 0, + padding: 0, + color: 'inherit' + }; + }, + se = function(e) { var t = e.children, n = e.innerProps; - return Object(a.c)('div', n, t); + return Object(b.c)('div', n, t); }, - ne = te, - re = te; - var oe = function(e) { - var t = e.children, - n = e.className, - r = e.components, - o = e.cx, - i = e.data, - s = e.getStyles, - c = e.innerProps, - u = e.isDisabled, - l = e.removeProps, - f = e.selectProps, - d = r.Container, - p = r.Label, - h = r.Remove; - return Object(a.c)(a.b, null, function(r) { - var g = r.css, - m = r.cx; - return Object(a.c)( - d, - { - data: i, - innerProps: ee({}, c, { - className: m( - g(s('multiValue', e)), - o({ 'multi-value': !0, 'multi-value--is-disabled': u }, n) - ) - }), - selectProps: f - }, - Object(a.c)( - p, + ce = se, + ue = se, + le = (function(e) { + function t() { + return ( + Object(s.a)(this, t), + Object(u.a)(this, Object(l.a)(t).apply(this, arguments)) + ); + } + return ( + Object(f.a)(t, e), + Object(c.a)(t, [ { - data: i, - innerProps: { - className: m( - g(s('multiValueLabel', e)), - o({ 'multi-value__label': !0 }, n) - ) - }, - selectProps: f - }, - t - ), - Object(a.c)(h, { - data: i, - innerProps: ee( - { - className: m( - g(s('multiValueRemove', e)), - o({ 'multi-value__remove': !0 }, n) - ) - }, - l - ), - selectProps: f - }) + key: 'render', + value: function() { + var e = this.props, + t = e.children, + n = e.innerProps; + return Object(b.c)( + 'div', + n, + t || Object(b.c)(J, { size: 14 }) + ); + } + } + ]), + t ); - }); - }; - function ie() { - return (ie = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - oe.defaultProps = { cropWithEllipsis: !0 }; - function ae() { - return (ae = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - function se() { - return (se = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - function ce() { - return (ce = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - var ue = { + })(h.Component), + fe = (function(e) { + function t() { + return ( + Object(s.a)(this, t), + Object(u.a)(this, Object(l.a)(t).apply(this, arguments)) + ); + } + return ( + Object(f.a)(t, e), + Object(c.a)(t, [ + { + key: 'render', + value: function() { + var e = this, + t = this.props, + n = t.children, + r = t.className, + o = t.components, + i = t.cx, + s = t.data, + c = t.getStyles, + u = t.innerProps, + l = t.isDisabled, + f = t.removeProps, + d = t.selectProps, + p = o.Container, + h = o.Label, + g = o.Remove; + return Object(b.c)(b.b, null, function(t) { + var o = t.css, + m = t.cx; + return Object( + b.c + )(p, { data: s, innerProps: Object(a.a)({}, u, { className: m(o(c('multiValue', e.props)), i({ 'multi-value': !0, 'multi-value--is-disabled': l }, r)) }), selectProps: d }, Object(b.c)(h, { data: s, innerProps: { className: m(o(c('multiValueLabel', e.props)), i({ 'multi-value__label': !0 }, r)) }, selectProps: d }, n), Object(b.c)(g, { data: s, innerProps: Object(a.a)({ className: m(o(c('multiValueRemove', e.props)), i({ 'multi-value__remove': !0 }, r)) }, f), selectProps: d })); + }); + } + } + ]), + t + ); + })(h.Component); + Object(p.a)(fe, 'defaultProps', { cropWithEllipsis: !0 }); + var de = { ClearIndicator: function(e) { var t = e.children, n = e.className, r = e.cx, - o = e.getStyles, - i = e.innerProps; - return Object(a.c)( + i = e.getStyles, + a = e.innerProps; + return Object(b.c)( 'div', - F({}, i, { - css: o('clearIndicator', e), + Object(o.a)({}, a, { + css: i('clearIndicator', e), className: r({ indicator: !0, 'clear-indicator': !0 }, n) }), - t || Object(a.c)(H, null) + t || Object(b.c)(J, null) ); }, Control: function(e) { var t = e.children, n = e.cx, r = e.getStyles, - o = e.className, - i = e.isDisabled, + i = e.className, + a = e.isDisabled, s = e.isFocused, c = e.innerRef, u = e.innerProps, l = e.menuIsOpen; - return Object(a.c)( + return Object(b.c)( 'div', - $( + Object(o.a)( { ref: c, css: r('control', e), className: n( { control: !0, - 'control--is-disabled': i, + 'control--is-disabled': a, 'control--is-focused': s, 'control--menu-is-open': l }, - o + i ) }, u @@ -251496,71 +251177,67 @@ object-assign var t = e.children, n = e.className, r = e.cx, - o = e.getStyles, - i = e.innerProps; - return Object(a.c)( + i = e.getStyles, + a = e.innerProps; + return Object(b.c)( 'div', - F({}, i, { - css: o('dropdownIndicator', e), + Object(o.a)({}, a, { + css: i('dropdownIndicator', e), className: r({ indicator: !0, 'dropdown-indicator': !0 }, n) }), - t || Object(a.c)(Y, null) + t || Object(b.c)(Z, null) ); }, - DownChevron: Y, - CrossIcon: H, + DownChevron: Z, + CrossIcon: J, Group: function(e) { var t = e.children, n = e.className, r = e.cx, - o = e.getStyles, - i = e.Heading, + i = e.getStyles, + a = e.Heading, s = e.headingProps, c = e.label, u = e.theme, l = e.selectProps; - return Object(a.c)( + return Object(b.c)( 'div', - { css: o('group', e), className: r({ group: !0 }, n) }, - Object(a.c)( - i, - Q({}, s, { selectProps: l, theme: u, getStyles: o, cx: r }), + { css: i('group', e), className: r({ group: !0 }, n) }, + Object(b.c)( + a, + Object(o.a)({}, s, { + selectProps: l, + theme: u, + getStyles: i, + cx: r + }), c ), - Object(a.c)('div', null, t) + Object(b.c)('div', null, t) ); }, GroupHeading: function(e) { var t = e.className, n = e.cx, - r = e.getStyles, - o = e.theme, - i = + i = e.getStyles, + s = e.theme, + c = (e.selectProps, - (function(e, t) { - if (null == e) return {}; - var n, - r, - o = {}, - i = Object.keys(e); - for (r = 0; r < i.length; r++) - (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); - return o; - })(e, [ + Object(r.a)(e, [ 'className', 'cx', 'getStyles', 'theme', 'selectProps' ])); - return Object(a.c)( + return Object(b.c)( 'div', - Q( + Object(o.a)( { - css: r('groupHeading', Q({ theme: o }, i)), + css: i('groupHeading', Object(a.a)({ theme: s }, c)), className: n({ 'group-heading': !0 }, t) }, - i + c ) ); }, @@ -251569,7 +251246,7 @@ object-assign n = e.className, r = e.cx, o = e.getStyles; - return Object(a.c)( + return Object(b.c)( 'div', { css: o('indicatorsContainer', e), @@ -251582,10 +251259,10 @@ object-assign var t = e.className, n = e.cx, r = e.getStyles, - o = e.innerProps; - return Object(a.c)( + i = e.innerProps; + return Object(b.c)( 'span', - F({}, o, { + Object(o.a)({}, i, { css: r('indicatorSeparator', e), className: n({ 'indicator-separator': !0 }, t) }) @@ -251594,23 +251271,14 @@ object-assign Input: function(e) { var t = e.className, n = e.cx, - r = e.getStyles, - o = e.innerRef, - i = e.isHidden, - s = e.isDisabled, - c = e.theme, - u = + i = e.getStyles, + s = e.innerRef, + c = e.isHidden, + u = e.isDisabled, + l = e.theme, + f = (e.selectProps, - (function(e, t) { - if (null == e) return {}; - var n, - r, - o = {}, - i = Object.keys(e); - for (r = 0; r < i.length; r++) - (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); - return o; - })(e, [ + Object(r.a)(e, [ 'className', 'cx', 'getStyles', @@ -251620,36 +251288,38 @@ object-assign 'theme', 'selectProps' ])); - return Object(a.c)( + return Object(b.c)( 'div', - { css: r('input', J({ theme: c }, u)) }, - Object(a.c)( - x.a, - J( + { css: i('input', Object(a.a)({ theme: l }, f)) }, + Object(b.c)( + j.a, + Object(o.a)( { className: n({ input: !0 }, t), - inputRef: o, - inputStyle: Z(i), - disabled: s + inputRef: s, + inputStyle: ae(c), + disabled: u }, - u + f ) ) ); }, - LoadingIndicator: K, + LoadingIndicator: ie, Menu: function(e) { var t = e.children, n = e.className, r = e.cx, - o = e.getStyles, - i = e.innerRef, + i = e.getStyles, + a = e.innerRef, s = e.innerProps; - return Object(a.c)( + return Object(b.c)( 'div', - w({ css: o('menu', e), className: r({ menu: !0 }, n) }, s, { - ref: i - }), + Object(o.a)( + { css: i('menu', e), className: r({ menu: !0 }, n) }, + s, + { ref: a } + ), t ); }, @@ -251659,47 +251329,43 @@ object-assign r = e.cx, o = e.getStyles, i = e.isMulti, - s = e.innerRef; - return Object(a.c)( + a = e.innerRef; + return Object(b.c)( 'div', { css: o('menuList', e), className: r({ 'menu-list': !0, 'menu-list--is-multi': i }, n), - ref: s + ref: a }, t ); }, - MenuPortal: P, - LoadingMessage: L, - NoOptionsMessage: C, - MultiValue: oe, - MultiValueContainer: ne, - MultiValueLabel: re, - MultiValueRemove: function(e) { - var t = e.children, - n = e.innerProps; - return Object(a.c)('div', n, t || Object(a.c)(H, { size: 14 })); - }, + MenuPortal: Y, + LoadingMessage: H, + NoOptionsMessage: B, + MultiValue: fe, + MultiValueContainer: ce, + MultiValueLabel: ue, + MultiValueRemove: le, Option: function(e) { var t = e.children, n = e.className, r = e.cx, - o = e.getStyles, - i = e.isDisabled, + i = e.getStyles, + a = e.isDisabled, s = e.isFocused, c = e.isSelected, u = e.innerRef, l = e.innerProps; - return Object(a.c)( + return Object(b.c)( 'div', - ie( + Object(o.a)( { - css: o('option', e), + css: i('option', e), className: r( { option: !0, - 'option--is-disabled': i, + 'option--is-disabled': a, 'option--is-focused': s, 'option--is-selected': c }, @@ -251716,16 +251382,16 @@ object-assign var t = e.children, n = e.className, r = e.cx, - o = e.getStyles, - i = e.innerProps; - return Object(a.c)( + i = e.getStyles, + a = e.innerProps; + return Object(b.c)( 'div', - ae( + Object(o.a)( { - css: o('placeholder', e), + css: i('placeholder', e), className: r({ placeholder: !0 }, n) }, - i + a ), t ); @@ -251734,18 +251400,18 @@ object-assign var t = e.children, n = e.className, r = e.cx, - o = e.getStyles, - i = e.innerProps, + i = e.getStyles, + a = e.innerProps, s = e.isDisabled, c = e.isRtl; - return Object(a.c)( + return Object(b.c)( 'div', - R( + Object(o.a)( { - css: o('container', e), + css: i('container', e), className: r({ '--is-disabled': s, '--is-rtl': c }, n) }, - i + a ), t ); @@ -251754,16 +251420,16 @@ object-assign var t = e.children, n = e.className, r = e.cx, - o = e.getStyles, - i = e.isDisabled, + i = e.getStyles, + a = e.isDisabled, s = e.innerProps; - return Object(a.c)( + return Object(b.c)( 'div', - se( + Object(o.a)( { - css: o('singleValue', e), + css: i('singleValue', e), className: r( - { 'single-value': !0, 'single-value--is-disabled': i }, + { 'single-value': !0, 'single-value--is-disabled': a }, n ) }, @@ -251772,31 +251438,12 @@ object-assign t ); }, - ValueContainer: function(e) { - var t = e.children, - n = e.className, - r = e.cx, - o = e.isMulti, - i = e.getStyles, - s = e.hasValue; - return Object(a.c)( - 'div', - { - css: i('valueContainer', e), - className: r( - { - 'value-container': !0, - 'value-container--is-multi': o, - 'value-container--has-value': s - }, - n - ) - }, - t - ); - } + ValueContainer: G }, - le = [ + pe = function(e) { + return Object(a.a)({}, de, e.components); + }, + he = [ { base: 'A', letters: /[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g @@ -252014,36 +251661,24 @@ object-assign letters: /[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g } ], - fe = function(e) { - for (var t = 0; t < le.length; t++) - e = e.replace(le[t].letters, le[t].base); + ge = function(e) { + for (var t = 0; t < he.length; t++) + e = e.replace(he[t].letters, he[t].base); return e; - }; - function de() { - return (de = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - var pe = function(e) { + }, + me = function(e) { return e.replace(/^\s+|\s+$/g, ''); }, - he = function(e) { - return e.label + ' ' + e.value; + be = function(e) { + return ''.concat(e.label, ' ').concat(e.value); }, - ge = function(e) { + ye = function(e) { return function(t, n) { - var r = de( + var r = Object(a.a)( { ignoreCase: !0, ignoreAccents: !0, - stringify: he, + stringify: be, trim: !0, matchFrom: 'any' }, @@ -252051,743 +251686,826 @@ object-assign ), o = r.ignoreCase, i = r.ignoreAccents, - a = r.stringify, - s = r.trim, - c = r.matchFrom, - u = s ? pe(n) : n, - l = s ? pe(a(t)) : a(t); + s = r.stringify, + c = r.trim, + u = r.matchFrom, + l = c ? me(n) : n, + f = c ? me(s(t)) : s(t); return ( - o && ((u = u.toLowerCase()), (l = l.toLowerCase())), - i && ((u = fe(u)), (l = fe(l))), - 'start' === c ? l.substr(0, u.length) === u : l.indexOf(u) > -1 + o && ((l = l.toLowerCase()), (f = f.toLowerCase())), + i && ((l = ge(l)), (f = ge(f))), + 'start' === u ? f.substr(0, l.length) === l : f.indexOf(l) > -1 ); }; - }; - function me() { - return (me = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - var be = { + }, + ve = { name: '1laao21-a11yText', styles: 'label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;' }, - ye = function(e) { - return Object(a.c)('span', me({ css: be }, e)); - }; - function ve() { - return (ve = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - function _e(e) { - e.in, e.out, e.onExited, e.appear, e.enter, e.exit; - var t = e.innerRef, - n = - (e.emotion, - (function(e, t) { - if (null == e) return {}; - var n, - r, - o = {}, - i = Object.keys(e); - for (r = 0; r < i.length; r++) - (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); - return o; - })(e, [ - 'in', - 'out', - 'onExited', - 'appear', - 'enter', - 'exit', - 'innerRef', - 'emotion' - ])); - return Object(a.c)( - 'input', - ve({ ref: t }, n, { - css: Object(v.a)( + _e = function(e) { + return Object(b.c)('span', Object(o.a)({ css: ve }, e)); + }, + we = (function(e) { + function t() { + return ( + Object(s.a)(this, t), + Object(u.a)(this, Object(l.a)(t).apply(this, arguments)) + ); + } + return ( + Object(f.a)(t, e), + Object(c.a)(t, [ { - label: 'dummyInput', - background: 0, - border: 0, - fontSize: 'inherit', - outline: 0, - padding: 0, - width: 1, - color: 'transparent', - left: -100, - opacity: 0, - position: 'relative', - transform: 'scale(0)' - }, - '' - ) - }) - ); - } - var xe = (function(e) { - var t, n; - function r() { - return e.apply(this, arguments) || this; + key: 'render', + value: function() { + var e = this.props, + t = + (e.in, + e.out, + e.onExited, + e.appear, + e.enter, + e.exit, + e.innerRef), + n = + (e.emotion, + Object(r.a)(e, [ + 'in', + 'out', + 'onExited', + 'appear', + 'enter', + 'exit', + 'innerRef', + 'emotion' + ])); + return Object(b.c)( + 'input', + Object(o.a)({ ref: t }, n, { + css: Object(L.a)( + { + label: 'dummyInput', + background: 0, + border: 0, + fontSize: 'inherit', + outline: 0, + padding: 0, + width: 1, + color: 'transparent', + left: -100, + opacity: 0, + position: 'relative', + transform: 'scale(0)' + }, + '' + ) + }) + ); + } + } + ]), + t + ); + })(h.Component), + xe = (function(e) { + function t() { + return ( + Object(s.a)(this, t), + Object(u.a)(this, Object(l.a)(t).apply(this, arguments)) + ); } - (n = e), - ((t = r).prototype = Object.create(n.prototype)), - (t.prototype.constructor = t), - (t.__proto__ = n); - var o = r.prototype; return ( - (o.componentDidMount = function() { - this.props.innerRef(Object(s.findDOMNode)(this)); - }), - (o.componentWillUnmount = function() { - this.props.innerRef(null); - }), - (o.render = function() { - return this.props.children; - }), - r + Object(f.a)(t, e), + Object(c.a)(t, [ + { + key: 'componentDidMount', + value: function() { + this.props.innerRef(Object(y.findDOMNode)(this)); + } + }, + { + key: 'componentWillUnmount', + value: function() { + this.props.innerRef(null); + } + }, + { + key: 'render', + value: function() { + return this.props.children; + } + } + ]), + t ); - })(r.Component), - we = ['boxSizing', 'height', 'overflow', 'paddingRight', 'position'], - Me = { + })(h.Component), + Me = ['boxSizing', 'height', 'overflow', 'paddingRight', 'position'], + ke = { boxSizing: 'border-box', overflow: 'hidden', position: 'relative', height: '100%' }; - function ke(e) { + function Se(e) { e.preventDefault(); } - function Se(e) { + function Oe(e) { e.stopPropagation(); } - function Ae() { + function Ee() { var e = this.scrollTop, t = this.scrollHeight, n = e + this.offsetHeight; 0 === e ? (this.scrollTop = 1) : n === t && (this.scrollTop = e - 1); } - function Oe() { + function Ae() { return 'ontouchstart' in window || navigator.maxTouchPoints; } - var Ee = !(!window.document || !window.document.createElement), - Te = 0, - Ce = (function(e) { - var t, n; - function r() { - for ( - var t, n = arguments.length, r = new Array(n), o = 0; - o < n; - o++ - ) - r[o] = arguments[o]; + var Te = !(!window.document || !window.document.createElement), + Ce = 0, + Le = (function(e) { + function t() { + var e, n; + Object(s.a)(this, t); + for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) + o[i] = arguments[i]; return ( - ((t = - e.call.apply(e, [this].concat(r)) || this).originalStyles = {}), - (t.listenerOptions = { capture: !1, passive: !1 }), - t + (n = Object(u.a)( + this, + (e = Object(l.a)(t)).call.apply(e, [this].concat(o)) + )), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'originalStyles', {}), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'listenerOptions', { + capture: !1, + passive: !1 + }), + n ); } - (n = e), - ((t = r).prototype = Object.create(n.prototype)), - (t.prototype.constructor = t), - (t.__proto__ = n); - var o = r.prototype; return ( - (o.componentDidMount = function() { - var e = this; - if (Ee) { - var t = this.props, - n = t.accountForScrollbars, - r = t.touchScrollTarget, - o = document.body, - i = o && o.style; - if ( - (n && - we.forEach(function(t) { - var n = i && i[t]; - e.originalStyles[t] = n; - }), - n && Te < 1) - ) { - var a = parseInt(this.originalStyles.paddingRight, 10) || 0, - s = document.body ? document.body.clientWidth : 0, - c = window.innerWidth - s + a || 0; - Object.keys(Me).forEach(function(e) { - var t = Me[e]; - i && (i[e] = t); - }), - i && (i.paddingRight = c + 'px'); - } - o && - Oe() && - (o.addEventListener('touchmove', ke, this.listenerOptions), - r && - (r.addEventListener('touchstart', Ae, this.listenerOptions), - r.addEventListener('touchmove', Se, this.listenerOptions))), - (Te += 1); - } - }), - (o.componentWillUnmount = function() { - var e = this; - if (Ee) { - var t = this.props, - n = t.accountForScrollbars, - r = t.touchScrollTarget, - o = document.body, - i = o && o.style; - (Te = Math.max(Te - 1, 0)), - n && - Te < 1 && - we.forEach(function(t) { - var n = e.originalStyles[t]; - i && (i[t] = n); - }), - o && - Oe() && - (o.removeEventListener( - 'touchmove', - ke, - this.listenerOptions - ), - r && - (r.removeEventListener( - 'touchstart', - Ae, - this.listenerOptions - ), - r.removeEventListener( + Object(f.a)(t, e), + Object(c.a)(t, [ + { + key: 'componentDidMount', + value: function() { + var e = this; + if (Te) { + var t = this.props, + n = t.accountForScrollbars, + r = t.touchScrollTarget, + o = document.body, + i = o && o.style; + if ( + (n && + Me.forEach(function(t) { + var n = i && i[t]; + e.originalStyles[t] = n; + }), + n && Ce < 1) + ) { + var a = + parseInt(this.originalStyles.paddingRight, 10) || 0, + s = document.body ? document.body.clientWidth : 0, + c = window.innerWidth - s + a || 0; + Object.keys(ke).forEach(function(e) { + var t = ke[e]; + i && (i[e] = t); + }), + i && (i.paddingRight = ''.concat(c, 'px')); + } + o && + Ae() && + (o.addEventListener( 'touchmove', Se, this.listenerOptions - ))); + ), + r && + (r.addEventListener( + 'touchstart', + Ee, + this.listenerOptions + ), + r.addEventListener( + 'touchmove', + Oe, + this.listenerOptions + ))), + (Ce += 1); + } + } + }, + { + key: 'componentWillUnmount', + value: function() { + var e = this; + if (Te) { + var t = this.props, + n = t.accountForScrollbars, + r = t.touchScrollTarget, + o = document.body, + i = o && o.style; + (Ce = Math.max(Ce - 1, 0)), + n && + Ce < 1 && + Me.forEach(function(t) { + var n = e.originalStyles[t]; + i && (i[t] = n); + }), + o && + Ae() && + (o.removeEventListener( + 'touchmove', + Se, + this.listenerOptions + ), + r && + (r.removeEventListener( + 'touchstart', + Ee, + this.listenerOptions + ), + r.removeEventListener( + 'touchmove', + Oe, + this.listenerOptions + ))); + } + } + }, + { + key: 'render', + value: function() { + return null; + } } - }), - (o.render = function() { - return null; - }), - r + ]), + t ); - })(r.Component); - Ce.defaultProps = { accountForScrollbars: !0 }; - var Le = { + })(h.Component); + Object(p.a)(Le, 'defaultProps', { accountForScrollbars: !0 }); + var Pe = { name: '1dsbpcp', styles: 'position:fixed;left:0;bottom:0;right:0;top:0;' }, - Pe = (function(e) { - var t, n; - function r() { - for ( - var t, n = arguments.length, r = new Array(n), o = 0; - o < n; - o++ - ) - r[o] = arguments[o]; + De = (function(e) { + function t() { + var e, n; + Object(s.a)(this, t); + for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) + o[i] = arguments[i]; return ( - ((t = e.call.apply(e, [this].concat(r)) || this).state = { + (n = Object(u.a)( + this, + (e = Object(l.a)(t)).call.apply(e, [this].concat(o)) + )), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'state', { touchScrollTarget: null }), - (t.getScrollTarget = function(e) { - e !== t.state.touchScrollTarget && - t.setState({ touchScrollTarget: e }); + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'getScrollTarget', + function(e) { + e !== n.state.touchScrollTarget && + n.setState({ touchScrollTarget: e }); + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'blurSelectInput', + function() { + document.activeElement && document.activeElement.blur(); + } + ), + n + ); + } + return ( + Object(f.a)(t, e), + Object(c.a)(t, [ + { + key: 'render', + value: function() { + var e = this.props, + t = e.children, + n = e.isEnabled, + r = this.state.touchScrollTarget; + return n + ? Object(b.c)( + 'div', + null, + Object(b.c)('div', { + onClick: this.blurSelectInput, + css: Pe + }), + Object(b.c)(xe, { innerRef: this.getScrollTarget }, t), + r ? Object(b.c)(Le, { touchScrollTarget: r }) : null + ) + : t; + } + } + ]), + t + ); + })(h.PureComponent), + je = (function(e) { + function t() { + var e, n; + Object(s.a)(this, t); + for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) + o[i] = arguments[i]; + return ( + (n = Object(u.a)( + this, + (e = Object(l.a)(t)).call.apply(e, [this].concat(o)) + )), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'isBottom', !1), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'isTop', !1), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'scrollTarget', void 0), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'touchStart', void 0), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'cancelScroll', function( + e + ) { + e.preventDefault(), e.stopPropagation(); + }), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'handleEventDelta', + function(e, t) { + var r = n.props, + o = r.onBottomArrive, + i = r.onBottomLeave, + a = r.onTopArrive, + s = r.onTopLeave, + c = n.scrollTarget, + u = c.scrollTop, + l = c.scrollHeight, + f = c.clientHeight, + d = n.scrollTarget, + p = t > 0, + h = l - f - u, + g = !1; + h > t && n.isBottom && (i && i(e), (n.isBottom = !1)), + p && n.isTop && (s && s(e), (n.isTop = !1)), + p && t > h + ? (o && !n.isBottom && o(e), + (d.scrollTop = l), + (g = !0), + (n.isBottom = !0)) + : !p && + -t > u && + (a && !n.isTop && a(e), + (d.scrollTop = 0), + (g = !0), + (n.isTop = !0)), + g && n.cancelScroll(e); + } + ), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'onWheel', function(e) { + n.handleEventDelta(e, e.deltaY); + }), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'onTouchStart', function( + e + ) { + n.touchStart = e.changedTouches[0].clientY; }), - (t.blurSelectInput = function() { - document.activeElement && document.activeElement.blur(); + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'onTouchMove', function( + e + ) { + var t = n.touchStart - e.changedTouches[0].clientY; + n.handleEventDelta(e, t); }), - t + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'getScrollTarget', + function(e) { + n.scrollTarget = e; + } + ), + n ); } return ( - (n = e), - ((t = r).prototype = Object.create(n.prototype)), - (t.prototype.constructor = t), - (t.__proto__ = n), - (r.prototype.render = function() { - var e = this.props, - t = e.children, - n = e.isEnabled, - r = this.state.touchScrollTarget; - return n - ? Object(a.c)( - 'div', - null, - Object(a.c)('div', { - onClick: this.blurSelectInput, - css: Le - }), - Object(a.c)(xe, { innerRef: this.getScrollTarget }, t), - r ? Object(a.c)(Ce, { touchScrollTarget: r }) : null - ) - : t; - }), - r + Object(f.a)(t, e), + Object(c.a)(t, [ + { + key: 'componentDidMount', + value: function() { + this.startListening(this.scrollTarget); + } + }, + { + key: 'componentWillUnmount', + value: function() { + this.stopListening(this.scrollTarget); + } + }, + { + key: 'startListening', + value: function(e) { + e && + ('function' == typeof e.addEventListener && + e.addEventListener('wheel', this.onWheel, !1), + 'function' == typeof e.addEventListener && + e.addEventListener('touchstart', this.onTouchStart, !1), + 'function' == typeof e.addEventListener && + e.addEventListener('touchmove', this.onTouchMove, !1)); + } + }, + { + key: 'stopListening', + value: function(e) { + 'function' == typeof e.removeEventListener && + e.removeEventListener('wheel', this.onWheel, !1), + 'function' == typeof e.removeEventListener && + e.removeEventListener( + 'touchstart', + this.onTouchStart, + !1 + ), + 'function' == typeof e.removeEventListener && + e.removeEventListener('touchmove', this.onTouchMove, !1); + } + }, + { + key: 'render', + value: function() { + return g.a.createElement( + xe, + { innerRef: this.getScrollTarget }, + this.props.children + ); + } + } + ]), + t ); - })(r.PureComponent); - var De = (function(e) { - var t, n; - function r() { - for (var t, n = arguments.length, r = new Array(n), o = 0; o < n; o++) - r[o] = arguments[o]; + })(h.Component), + ze = (function(e) { + function t() { + return ( + Object(s.a)(this, t), + Object(u.a)(this, Object(l.a)(t).apply(this, arguments)) + ); + } return ( - ((t = e.call.apply(e, [this].concat(r)) || this).isBottom = !1), - (t.isTop = !1), - (t.scrollTarget = void 0), - (t.touchStart = void 0), - (t.cancelScroll = function(e) { - e.preventDefault(), e.stopPropagation(); - }), - (t.handleEventDelta = function(e, n) { - var r = t.props, - o = r.onBottomArrive, - i = r.onBottomLeave, - a = r.onTopArrive, - s = r.onTopLeave, - c = t.scrollTarget, - u = c.scrollTop, - l = c.scrollHeight, - f = c.clientHeight, - d = t.scrollTarget, - p = n > 0, - h = l - f - u, - g = !1; - h > n && t.isBottom && (i && i(e), (t.isBottom = !1)), - p && t.isTop && (s && s(e), (t.isTop = !1)), - p && n > h - ? (o && !t.isBottom && o(e), - (d.scrollTop = l), - (g = !0), - (t.isBottom = !0)) - : !p && - -n > u && - (a && !t.isTop && a(e), - (d.scrollTop = 0), - (g = !0), - (t.isTop = !0)), - g && t.cancelScroll(e); - }), - (t.onWheel = function(e) { - t.handleEventDelta(e, e.deltaY); - }), - (t.onTouchStart = function(e) { - t.touchStart = e.changedTouches[0].clientY; - }), - (t.onTouchMove = function(e) { - var n = t.touchStart - e.changedTouches[0].clientY; - t.handleEventDelta(e, n); - }), - (t.getScrollTarget = function(e) { - t.scrollTarget = e; - }), + Object(f.a)(t, e), + Object(c.a)(t, [ + { + key: 'render', + value: function() { + var e = this.props, + t = e.isEnabled, + n = Object(r.a)(e, ['isEnabled']); + return t ? g.a.createElement(je, n) : this.props.children; + } + } + ]), t ); - } - (n = e), - ((t = r).prototype = Object.create(n.prototype)), - (t.prototype.constructor = t), - (t.__proto__ = n); - var i = r.prototype; - return ( - (i.componentDidMount = function() { - this.startListening(this.scrollTarget); - }), - (i.componentWillUnmount = function() { - this.stopListening(this.scrollTarget); - }), - (i.startListening = function(e) { - e && - ('function' == typeof e.addEventListener && - e.addEventListener('wheel', this.onWheel, !1), - 'function' == typeof e.addEventListener && - e.addEventListener('touchstart', this.onTouchStart, !1), - 'function' == typeof e.addEventListener && - e.addEventListener('touchmove', this.onTouchMove, !1)); - }), - (i.stopListening = function(e) { - 'function' == typeof e.removeEventListener && - e.removeEventListener('wheel', this.onWheel, !1), - 'function' == typeof e.removeEventListener && - e.removeEventListener('touchstart', this.onTouchStart, !1), - 'function' == typeof e.removeEventListener && - e.removeEventListener('touchmove', this.onTouchMove, !1); - }), - (i.render = function() { - return o.a.createElement( - xe, - { innerRef: this.getScrollTarget }, - this.props.children - ); - }), - r - ); - })(r.Component); - function ze(e) { - var t = e.isEnabled, - n = void 0 === t || t, - r = (function(e, t) { - if (null == e) return {}; - var n, - r, - o = {}, - i = Object.keys(e); - for (r = 0; r < i.length; r++) - (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); - return o; - })(e, ['isEnabled']); - return n ? o.a.createElement(De, r) : r.children; - } - var Ne = function(e, t) { - void 0 === t && (t = {}); - var n = t, - r = n.isSearchable, - o = n.isMulti, - i = n.label, - a = n.isDisabled; + })(h.Component); + Object(p.a)(ze, 'defaultProps', { isEnabled: !0 }); + var Ne = function(e) { + var t = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : {}, + n = t.isSearchable, + r = t.isMulti, + o = t.label, + i = t.isDisabled; switch (e) { case 'menu': - return ( - 'Use Up and Down to choose options' + - (a - ? '' - : ', press Enter to select the currently focused option') + + return 'Use Up and Down to choose options'.concat( + i ? '' : ', press Enter to select the currently focused option', ', press Escape to exit the menu, press Tab to select the option and exit the menu.' ); case 'input': - return ( - (i || 'Select') + - ' is focused ' + - (r ? ',type to refine list' : '') + - ', press Down to open the menu, ' + - (o ? ' press left to focus selected values' : '') - ); + return '' + .concat(o || 'Select', ' is focused ') + .concat( + n ? ',type to refine list' : '', + ', press Down to open the menu, ' + ) + .concat(r ? ' press left to focus selected values' : ''); case 'value': return 'Use left and right to toggle between focused values, press Backspace to remove the currently focused value'; } - }, - je = function(e, t) { - var n = t.value, - r = t.isDisabled; - if (n) - switch (e) { - case 'deselect-option': - case 'pop-value': - case 'remove-value': - return 'option ' + n + ', deselected.'; - case 'select-option': - return r - ? 'option ' + n + ' is disabled. Select another option.' - : 'option ' + n + ', selected.'; - } - }, - Re = function(e) { - return !!e.isDisabled; + }, + Re = function(e, t) { + var n = t.value, + r = t.isDisabled; + if (n) + switch (e) { + case 'deselect-option': + case 'pop-value': + case 'remove-value': + return 'option '.concat(n, ', deselected.'); + case 'select-option': + return 'option '.concat( + n, + r ? ' is disabled. Select another option.' : ', selected.' + ); + } + }, + Ie = function(e) { + return !!e.isDisabled; + }, + Fe = { + clearIndicator: ne, + container: function(e) { + var t = e.isDisabled; + return { + label: 'container', + direction: e.isRtl ? 'rtl' : null, + pointerEvents: t ? 'none' : null, + position: 'relative' + }; + }, + control: function(e) { + var t = e.isDisabled, + n = e.isFocused, + r = e.theme, + o = r.colors, + i = r.borderRadius, + a = r.spacing; + return { + label: 'control', + alignItems: 'center', + backgroundColor: t ? o.neutral5 : o.neutral0, + borderColor: t ? o.neutral10 : n ? o.primary : o.neutral20, + borderRadius: i, + borderStyle: 'solid', + borderWidth: 1, + boxShadow: n ? '0 0 0 1px '.concat(o.primary) : null, + cursor: 'default', + display: 'flex', + flexWrap: 'wrap', + justifyContent: 'space-between', + minHeight: a.controlHeight, + outline: '0 !important', + position: 'relative', + transition: 'all 100ms', + '&:hover': { borderColor: n ? o.primary : o.neutral30 } + }; + }, + dropdownIndicator: te, + group: function(e) { + var t = e.theme.spacing; + return { + paddingBottom: 2 * t.baseUnit, + paddingTop: 2 * t.baseUnit + }; + }, + groupHeading: function(e) { + var t = e.theme.spacing; + return { + label: 'group', + color: '#999', + cursor: 'default', + display: 'block', + fontSize: '75%', + fontWeight: '500', + marginBottom: '0.25em', + paddingLeft: 3 * t.baseUnit, + paddingRight: 3 * t.baseUnit, + textTransform: 'uppercase' + }; + }, + indicatorsContainer: function() { + return { + alignItems: 'center', + alignSelf: 'stretch', + display: 'flex', + flexShrink: 0 + }; + }, + indicatorSeparator: function(e) { + var t = e.isDisabled, + n = e.theme, + r = n.spacing.baseUnit, + o = n.colors; + return { + label: 'indicatorSeparator', + alignSelf: 'stretch', + backgroundColor: t ? o.neutral10 : o.neutral20, + marginBottom: 2 * r, + marginTop: 2 * r, + width: 1 + }; + }, + input: function(e) { + var t = e.isDisabled, + n = e.theme, + r = n.spacing, + o = n.colors; + return { + margin: r.baseUnit / 2, + paddingBottom: r.baseUnit / 2, + paddingTop: r.baseUnit / 2, + visibility: t ? 'hidden' : 'visible', + color: o.neutral80 + }; + }, + loadingIndicator: function(e) { + var t = e.isFocused, + n = e.size, + r = e.theme, + o = r.colors, + i = r.spacing.baseUnit; + return { + label: 'loadingIndicator', + color: t ? o.neutral60 : o.neutral20, + display: 'flex', + padding: 2 * i, + transition: 'color 150ms', + alignSelf: 'center', + fontSize: n, + lineHeight: 1, + marginRight: n, + textAlign: 'center', + verticalAlign: 'middle' + }; + }, + loadingMessage: q, + menu: function(e) { + var t, + n = e.placement, + r = e.theme, + o = r.borderRadius, + i = r.spacing, + a = r.colors; + return ( + (t = { label: 'menu' }), + Object(p.a)( + t, + (function(e) { + return e ? { bottom: 'top', top: 'bottom' }[e] : 'bottom'; + })(n), + '100%' + ), + Object(p.a)(t, 'backgroundColor', a.neutral0), + Object(p.a)(t, 'borderRadius', o), + Object(p.a)( + t, + 'boxShadow', + '0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)' + ), + Object(p.a)(t, 'marginBottom', i.menuGutter), + Object(p.a)(t, 'marginTop', i.menuGutter), + Object(p.a)(t, 'position', 'absolute'), + Object(p.a)(t, 'width', '100%'), + Object(p.a)(t, 'zIndex', 1), + t + ); + }, + menuList: function(e) { + var t = e.maxHeight, + n = e.theme.spacing.baseUnit; + return { + maxHeight: t, + overflowY: 'auto', + paddingBottom: n, + paddingTop: n, + position: 'relative', + WebkitOverflowScrolling: 'touch' + }; + }, + menuPortal: function(e) { + var t = e.rect, + n = e.offset, + r = e.position; + return { + left: t.left, + position: r, + top: n, + width: t.width, + zIndex: 1 + }; + }, + multiValue: function(e) { + var t = e.theme, + n = t.spacing, + r = t.borderRadius; + return { + label: 'multiValue', + backgroundColor: t.colors.neutral10, + borderRadius: r / 2, + display: 'flex', + margin: n.baseUnit / 2, + minWidth: 0 + }; + }, + multiValueLabel: function(e) { + var t = e.theme, + n = t.borderRadius, + r = t.colors, + o = e.cropWithEllipsis; + return { + borderRadius: n / 2, + color: r.neutral80, + fontSize: '85%', + overflow: 'hidden', + padding: 3, + paddingLeft: 6, + textOverflow: o ? 'ellipsis' : null, + whiteSpace: 'nowrap' + }; + }, + multiValueRemove: function(e) { + var t = e.theme, + n = t.spacing, + r = t.borderRadius, + o = t.colors; + return { + alignItems: 'center', + borderRadius: r / 2, + backgroundColor: e.isFocused && o.dangerLight, + display: 'flex', + paddingLeft: n.baseUnit, + paddingRight: n.baseUnit, + ':hover': { backgroundColor: o.dangerLight, color: o.danger } + }; + }, + noOptionsMessage: F, + option: function(e) { + var t = e.isDisabled, + n = e.isFocused, + r = e.isSelected, + o = e.theme, + i = o.spacing, + a = o.colors; + return { + label: 'option', + backgroundColor: r ? a.primary : n ? a.primary25 : 'transparent', + color: t ? a.neutral20 : r ? a.neutral0 : 'inherit', + cursor: 'default', + display: 'block', + fontSize: 'inherit', + padding: '' + .concat(2 * i.baseUnit, 'px ') + .concat(3 * i.baseUnit, 'px'), + width: '100%', + userSelect: 'none', + WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)', + ':active': { + backgroundColor: !t && (r ? a.primary : a.primary50) + } + }; + }, + placeholder: function(e) { + var t = e.theme, + n = t.spacing; + return { + label: 'placeholder', + color: t.colors.neutral50, + marginLeft: n.baseUnit / 2, + marginRight: n.baseUnit / 2, + position: 'absolute', + top: '50%', + transform: 'translateY(-50%)' + }; + }, + singleValue: function(e) { + var t = e.isDisabled, + n = e.theme, + r = n.spacing, + o = n.colors; + return { + label: 'singleValue', + color: t ? o.neutral40 : o.neutral80, + marginLeft: r.baseUnit / 2, + marginRight: r.baseUnit / 2, + maxWidth: 'calc(100% - '.concat(2 * r.baseUnit, 'px)'), + overflow: 'hidden', + position: 'absolute', + textOverflow: 'ellipsis', + whiteSpace: 'nowrap', + top: '50%', + transform: 'translateY(-50%)' + }; + }, + valueContainer: function(e) { + var t = e.theme.spacing; + return { + alignItems: 'center', + display: 'flex', + flex: 1, + flexWrap: 'wrap', + padding: '' + .concat(t.baseUnit / 2, 'px ') + .concat(2 * t.baseUnit, 'px'), + WebkitOverflowScrolling: 'touch', + position: 'relative', + overflow: 'hidden' + }; + } }; - function Ie() { - return (Ie = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - var Fe = { - clearIndicator: U, - container: function(e) { - var t = e.isDisabled; - return { - label: 'container', - direction: e.isRtl ? 'rtl' : null, - pointerEvents: t ? 'none' : null, - position: 'relative' - }; - }, - control: function(e) { - var t = e.isDisabled, - n = e.isFocused, - r = e.theme, - o = r.colors, - i = r.borderRadius, - a = r.spacing; - return { - label: 'control', - alignItems: 'center', - backgroundColor: t ? o.neutral5 : o.neutral0, - borderColor: t ? o.neutral10 : n ? o.primary : o.neutral20, - borderRadius: i, - borderStyle: 'solid', - borderWidth: 1, - boxShadow: n ? '0 0 0 1px ' + o.primary : null, - cursor: 'default', - display: 'flex', - flexWrap: 'wrap', - justifyContent: 'space-between', - minHeight: a.controlHeight, - outline: '0 !important', - position: 'relative', - transition: 'all 100ms', - '&:hover': { borderColor: n ? o.primary : o.neutral30 } - }; - }, - dropdownIndicator: V, - group: function(e) { - var t = e.theme.spacing; - return { paddingBottom: 2 * t.baseUnit, paddingTop: 2 * t.baseUnit }; - }, - groupHeading: function(e) { - var t = e.theme.spacing; - return { - label: 'group', - color: '#999', - cursor: 'default', - display: 'block', - fontSize: '75%', - fontWeight: '500', - marginBottom: '0.25em', - paddingLeft: 3 * t.baseUnit, - paddingRight: 3 * t.baseUnit, - textTransform: 'uppercase' - }; - }, - indicatorsContainer: function() { - return { - alignItems: 'center', - alignSelf: 'stretch', - display: 'flex', - flexShrink: 0 - }; - }, - indicatorSeparator: function(e) { - var t = e.isDisabled, - n = e.theme, - r = n.spacing.baseUnit, - o = n.colors; - return { - label: 'indicatorSeparator', - alignSelf: 'stretch', - backgroundColor: t ? o.neutral10 : o.neutral20, - marginBottom: 2 * r, - marginTop: 2 * r, - width: 1 - }; - }, - input: function(e) { - var t = e.isDisabled, - n = e.theme, - r = n.spacing, - o = n.colors; - return { - margin: r.baseUnit / 2, - paddingBottom: r.baseUnit / 2, - paddingTop: r.baseUnit / 2, - visibility: t ? 'hidden' : 'visible', - color: o.neutral80 - }; - }, - loadingIndicator: function(e) { - var t = e.isFocused, - n = e.size, - r = e.theme, - o = r.colors, - i = r.spacing.baseUnit; - return { - label: 'loadingIndicator', - color: t ? o.neutral60 : o.neutral20, - display: 'flex', - padding: 2 * i, - transition: 'color 150ms', - alignSelf: 'center', - fontSize: n, - lineHeight: 1, - marginRight: n, - textAlign: 'center', - verticalAlign: 'middle' - }; - }, - loadingMessage: T, - menu: function(e) { - var t, - n = e.placement, - r = e.theme, - o = r.borderRadius, - i = r.spacing, - a = r.colors; - return ( - ((t = { label: 'menu' })[ - (function(e) { - return e ? { bottom: 'top', top: 'bottom' }[e] : 'bottom'; - })(n) - ] = '100%'), - (t.backgroundColor = a.neutral0), - (t.borderRadius = o), - (t.boxShadow = - '0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)'), - (t.marginBottom = i.menuGutter), - (t.marginTop = i.menuGutter), - (t.position = 'absolute'), - (t.width = '100%'), - (t.zIndex = 1), - t - ); - }, - menuList: function(e) { - var t = e.maxHeight, - n = e.theme.spacing.baseUnit; - return { - maxHeight: t, - overflowY: 'auto', - paddingBottom: n, - paddingTop: n, - position: 'relative', - WebkitOverflowScrolling: 'touch' - }; - }, - menuPortal: function(e) { - var t = e.rect, - n = e.offset, - r = e.position; - return { - left: t.left, - position: r, - top: n, - width: t.width, - zIndex: 1 - }; - }, - multiValue: function(e) { - var t = e.theme, - n = t.spacing, - r = t.borderRadius; - return { - label: 'multiValue', - backgroundColor: t.colors.neutral10, - borderRadius: r / 2, - display: 'flex', - margin: n.baseUnit / 2, - minWidth: 0 - }; - }, - multiValueLabel: function(e) { - var t = e.theme, - n = t.borderRadius, - r = t.colors, - o = e.cropWithEllipsis; - return { - borderRadius: n / 2, - color: r.neutral80, - fontSize: '85%', - overflow: 'hidden', - padding: 3, - paddingLeft: 6, - textOverflow: o ? 'ellipsis' : null, - whiteSpace: 'nowrap' - }; - }, - multiValueRemove: function(e) { - var t = e.theme, - n = t.spacing, - r = t.borderRadius, - o = t.colors; - return { - alignItems: 'center', - borderRadius: r / 2, - backgroundColor: e.isFocused && o.dangerLight, - display: 'flex', - paddingLeft: n.baseUnit, - paddingRight: n.baseUnit, - ':hover': { backgroundColor: o.dangerLight, color: o.danger } - }; - }, - noOptionsMessage: E, - option: function(e) { - var t = e.isDisabled, - n = e.isFocused, - r = e.isSelected, - o = e.theme, - i = o.spacing, - a = o.colors; - return { - label: 'option', - backgroundColor: r ? a.primary : n ? a.primary25 : 'transparent', - color: t ? a.neutral20 : r ? a.neutral0 : 'inherit', - cursor: 'default', - display: 'block', - fontSize: 'inherit', - padding: 2 * i.baseUnit + 'px ' + 3 * i.baseUnit + 'px', - width: '100%', - userSelect: 'none', - WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)', - ':active': { backgroundColor: !t && (r ? a.primary : a.primary50) } - }; - }, - placeholder: function(e) { - var t = e.theme, - n = t.spacing; - return { - label: 'placeholder', - color: t.colors.neutral50, - marginLeft: n.baseUnit / 2, - marginRight: n.baseUnit / 2, - position: 'absolute', - top: '50%', - transform: 'translateY(-50%)' - }; - }, - singleValue: function(e) { - var t = e.isDisabled, - n = e.theme, - r = n.spacing, - o = n.colors; - return { - label: 'singleValue', - color: t ? o.neutral40 : o.neutral80, - marginLeft: r.baseUnit / 2, - marginRight: r.baseUnit / 2, - maxWidth: 'calc(100% - ' + 2 * r.baseUnit + 'px)', - overflow: 'hidden', - position: 'absolute', - textOverflow: 'ellipsis', - whiteSpace: 'nowrap', - top: '50%', - transform: 'translateY(-50%)' - }; - }, - valueContainer: function(e) { - var t = e.theme.spacing; - return { - alignItems: 'center', - display: 'flex', - flex: 1, - flexWrap: 'wrap', - padding: t.baseUnit / 2 + 'px ' + 2 * t.baseUnit + 'px', - WebkitOverflowScrolling: 'touch', - position: 'relative', - overflow: 'hidden' - }; - } - }; - function qe(e, t) { - void 0 === t && (t = {}); - var n = Ie({}, e); + function qe(e) { + var t = + arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, + n = Object(a.a)({}, e); return ( Object.keys(t).forEach(function(r) { e[r] @@ -252800,57 +252518,38 @@ object-assign ); } var Be = { - borderRadius: 4, - colors: { - primary: '#2684FF', - primary75: '#4C9AFF', - primary50: '#B2D4FF', - primary25: '#DEEBFF', - danger: '#DE350B', - dangerLight: '#FFBDAD', - neutral0: 'hsl(0, 0%, 100%)', - neutral5: 'hsl(0, 0%, 95%)', - neutral10: 'hsl(0, 0%, 90%)', - neutral20: 'hsl(0, 0%, 80%)', - neutral30: 'hsl(0, 0%, 70%)', - neutral40: 'hsl(0, 0%, 60%)', - neutral50: 'hsl(0, 0%, 50%)', - neutral60: 'hsl(0, 0%, 40%)', - neutral70: 'hsl(0, 0%, 30%)', - neutral80: 'hsl(0, 0%, 20%)', - neutral90: 'hsl(0, 0%, 10%)' - }, - spacing: { baseUnit: 4, controlHeight: 38, menuGutter: 8 } - }; - function He() { - return (He = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - function Ye(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return e; - } - var We = { + borderRadius: 4, + colors: { + primary: '#2684FF', + primary75: '#4C9AFF', + primary50: '#B2D4FF', + primary25: '#DEEBFF', + danger: '#DE350B', + dangerLight: '#FFBDAD', + neutral0: 'hsl(0, 0%, 100%)', + neutral5: 'hsl(0, 0%, 95%)', + neutral10: 'hsl(0, 0%, 90%)', + neutral20: 'hsl(0, 0%, 80%)', + neutral30: 'hsl(0, 0%, 70%)', + neutral40: 'hsl(0, 0%, 60%)', + neutral50: 'hsl(0, 0%, 50%)', + neutral60: 'hsl(0, 0%, 40%)', + neutral70: 'hsl(0, 0%, 30%)', + neutral80: 'hsl(0, 0%, 20%)', + neutral90: 'hsl(0, 0%, 10%)' + }, + spacing: { baseUnit: 4, controlHeight: 38, menuGutter: 8 } + }, + He = { backspaceRemovesValue: !0, - blurInputOnSelect: y(), - captureMenuScroll: !y(), + blurInputOnSelect: C(), + captureMenuScroll: !C(), closeMenuOnSelect: !0, closeMenuOnScroll: !1, components: {}, controlShouldRenderValue: !0, escapeClearsValue: !1, - filterOption: ge(), + filterOption: ye(), formatGroupLabel: function(e) { return e.label; }, @@ -252865,7 +252564,7 @@ object-assign isMulti: !1, isRtl: !1, isSearchable: !0, - isOptionDisabled: Re, + isOptionDisabled: Ie, loadingMessage: function() { return 'Loading...'; }, @@ -252894,68 +252593,118 @@ object-assign placeholder: 'Select...', screenReaderStatus: function(e) { var t = e.count; - return t + ' result' + (1 !== t ? 's' : '') + ' available'; + return '' + .concat(t, ' result') + .concat(1 !== t ? 's' : '', ' available'); }, styles: {}, tabIndex: '0', tabSelectsValue: !0 }, - Ve = 1, - Ue = (function(e) { - var t, n; - function r(t) { + Ye = 1, + We = (function(e) { + function t(e) { var n; - ((n = e.call(this, t) || this).state = { - ariaLiveSelection: '', - ariaLiveContext: '', - focusedOption: null, - focusedValue: null, - inputIsHidden: !1, - isFocused: !1, - menuOptions: { render: [], focusable: [] }, - selectValue: [] - }), - (n.blockOptionHover = !1), - (n.isComposing = !1), - (n.clearFocusValueOnUpdate = !1), - (n.commonProps = void 0), - (n.components = void 0), - (n.hasGroups = !1), - (n.initialTouchX = 0), - (n.initialTouchY = 0), - (n.inputIsHiddenAfterUpdate = void 0), - (n.instancePrefix = ''), - (n.openAfterFocus = !1), - (n.scrollToFocusedOptionOnUpdate = !1), - (n.userIsDragging = void 0), - (n.controlRef = null), - (n.getControlRef = function(e) { - n.controlRef = e; - }), - (n.focusedOptionRef = null), - (n.getFocusedOptionRef = function(e) { - n.focusedOptionRef = e; - }), - (n.menuListRef = null), - (n.getMenuListRef = function(e) { - n.menuListRef = e; + Object(s.a)(this, t), + (n = Object(u.a)(this, Object(l.a)(t).call(this, e))), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'state', { + ariaLiveSelection: '', + ariaLiveContext: '', + focusedOption: null, + focusedValue: null, + inputIsHidden: !1, + isFocused: !1, + menuOptions: { render: [], focusable: [] }, + selectValue: [] }), - (n.inputRef = null), - (n.getInputRef = function(e) { + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'blockOptionHover', !1), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'isComposing', !1), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'clearFocusValueOnUpdate', + !1 + ), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'commonProps', void 0), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'components', void 0), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'hasGroups', !1), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'initialTouchX', 0), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'initialTouchY', 0), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'inputIsHiddenAfterUpdate', + void 0 + ), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'instancePrefix', ''), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'openAfterFocus', !1), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'scrollToFocusedOptionOnUpdate', + !1 + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'userIsDragging', + void 0 + ), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'controlRef', null), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'getControlRef', + function(e) { + n.controlRef = e; + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'focusedOptionRef', + null + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'getFocusedOptionRef', + function(e) { + n.focusedOptionRef = e; + } + ), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'menuListRef', null), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'getMenuListRef', + function(e) { + n.menuListRef = e; + } + ), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'inputRef', null), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'getInputRef', function( + e + ) { n.inputRef = e; }), - (n.cacheComponents = function(e) { - n.components = ce({}, ue, { components: e }.components); - }), - (n.focus = n.focusInput), - (n.blur = n.blurInput), - (n.onChange = function(e, t) { - var r = n.props; - (0, r.onChange)(e, He({}, t, { name: r.name })); + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'cacheComponents', + function(e) { + n.components = pe({ components: e }); + } + ), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'focus', n.focusInput), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'blur', n.blurInput), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'onChange', function( + e, + t + ) { + var r = n.props, + o = r.onChange, + i = r.name; + o(e, Object(a.a)({}, t, { name: i })); }), - (n.setValue = function(e, t, r) { - void 0 === t && (t = 'set-value'); - var o = n.props, + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'setValue', function(e) { + var t = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : 'set-value', + r = arguments.length > 2 ? arguments[2] : void 0, + o = n.props, i = o.closeMenuOnSelect, a = o.isMulti; n.onInputChange('', { action: 'set-value' }), @@ -252963,17 +252712,19 @@ object-assign (n.clearFocusValueOnUpdate = !0), n.onChange(e, { action: t, option: r }); }), - (n.selectOption = function(e) { + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'selectOption', function( + e + ) { var t = n.props, r = t.blurInputOnSelect, o = t.isMulti, - i = n.state.selectValue; + a = n.state.selectValue; if (o) - if (n.isOptionSelected(e, i)) { - var a = n.getOptionValue(e); + if (n.isOptionSelected(e, a)) { + var s = n.getOptionValue(e); n.setValue( - i.filter(function(e) { - return n.getOptionValue(e) !== a; + a.filter(function(e) { + return n.getOptionValue(e) !== s; }), 'deselect-option', e @@ -252983,7 +252734,7 @@ object-assign context: { value: n.getOptionLabel(e) } }); } else - n.isOptionDisabled(e, i) + n.isOptionDisabled(e, a) ? n.announceAriaLiveSelection({ event: 'select-option', context: { @@ -252991,13 +252742,17 @@ object-assign isDisabled: !0 } }) - : (n.setValue([].concat(i, [e]), 'select-option', e), + : (n.setValue( + [].concat(Object(i.a)(a), [e]), + 'select-option', + e + ), n.announceAriaLiveSelection({ event: 'select-option', context: { value: n.getOptionLabel(e) } })); else - n.isOptionDisabled(e, i) + n.isOptionDisabled(e, a) ? n.announceAriaLiveSelection({ event: 'select-option', context: { value: n.getOptionLabel(e), isDisabled: !0 } @@ -253009,7 +252764,9 @@ object-assign })); r && n.blurInput(); }), - (n.removeValue = function(e) { + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'removeValue', function( + e + ) { var t = n.state.selectValue, r = n.getOptionValue(e), o = t.filter(function(e) { @@ -253025,11 +252782,15 @@ object-assign }), n.focusInput(); }), - (n.clearValue = function() { - var e = n.props.isMulti; - n.onChange(e ? [] : null, { action: 'clear' }); - }), - (n.popValue = function() { + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'clearValue', + function() { + var e = n.props.isMulti; + n.onChange(e ? [] : null, { action: 'clear' }); + } + ), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'popValue', function() { var e = n.state.selectValue, t = e[e.length - 1], r = e.slice(0, e.length - 1); @@ -253042,1407 +252803,1643 @@ object-assign removedValue: t }); }), - (n.getOptionLabel = function(e) { - return n.props.getOptionLabel(e); - }), - (n.getOptionValue = function(e) { - return n.props.getOptionValue(e); - }), - (n.getStyles = function(e, t) { + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'getOptionLabel', + function(e) { + return n.props.getOptionLabel(e); + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'getOptionValue', + function(e) { + return n.props.getOptionValue(e); + } + ), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'getStyles', function( + e, + t + ) { var r = Fe[e](t); r.boxSizing = 'border-box'; var o = n.props.styles[e]; return o ? o(r, t) : r; }), - (n.getElementId = function(e) { - return n.instancePrefix + '-' + e; + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'getElementId', function( + e + ) { + return ''.concat(n.instancePrefix, '-').concat(e); }), - (n.getActiveDescendentId = function() { - var e = n.props.menuIsOpen, - t = n.state, - r = t.menuOptions, - o = t.focusedOption; - if (o && e) { - var i = r.focusable.indexOf(o), - a = r.render[i]; - return a && a.key; + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'getActiveDescendentId', + function() { + var e = n.props.menuIsOpen, + t = n.state, + r = t.menuOptions, + o = t.focusedOption; + if (o && e) { + var i = r.focusable.indexOf(o), + a = r.render[i]; + return a && a.key; + } + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'announceAriaLiveSelection', + function(e) { + var t = e.event, + r = e.context; + n.setState({ ariaLiveSelection: Re(t, r) }); + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'announceAriaLiveContext', + function(e) { + var t = e.event, + r = e.context; + n.setState({ + ariaLiveContext: Ne( + t, + Object(a.a)({}, r, { label: n.props['aria-label'] }) + ) + }); + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'onMenuMouseDown', + function(e) { + 0 === e.button && + (e.stopPropagation(), e.preventDefault(), n.focusInput()); + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'onMenuMouseMove', + function(e) { + n.blockOptionHover = !1; + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'onControlMouseDown', + function(e) { + var t = n.props.openMenuOnClick; + n.state.isFocused + ? n.props.menuIsOpen + ? 'INPUT' !== e.target.tagName && n.onMenuClose() + : t && n.openMenu('first') + : (t && (n.openAfterFocus = !0), n.focusInput()), + 'INPUT' !== e.target.tagName && e.preventDefault(); + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'onDropdownIndicatorMouseDown', + function(e) { + if ( + !( + (e && 'mousedown' === e.type && 0 !== e.button) || + n.props.isDisabled + ) + ) { + var t = n.props, + r = t.isMulti, + o = t.menuIsOpen; + n.focusInput(), + o + ? ((n.inputIsHiddenAfterUpdate = !r), n.onMenuClose()) + : n.openMenu('first'), + e.preventDefault(), + e.stopPropagation(); + } + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'onClearIndicatorMouseDown', + function(e) { + (e && 'mousedown' === e.type && 0 !== e.button) || + (n.clearValue(), + e.stopPropagation(), + (n.openAfterFocus = !1), + 'touchend' === e.type + ? n.focusInput() + : setTimeout(function() { + return n.focusInput(); + })); } + ), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'onScroll', function(e) { + 'boolean' == typeof n.props.closeMenuOnScroll + ? e.target instanceof HTMLElement && + O(e.target) && + n.props.onMenuClose() + : 'function' == typeof n.props.closeMenuOnScroll && + n.props.closeMenuOnScroll(e) && + n.props.onMenuClose(); }), - (n.announceAriaLiveSelection = function(e) { - var t = e.event, - r = e.context; - n.setState({ ariaLiveSelection: je(t, r) }); + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'onCompositionStart', + function() { + n.isComposing = !0; + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'onCompositionEnd', + function() { + n.isComposing = !1; + } + ), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'onTouchStart', function( + e + ) { + var t = e.touches.item(0); + t && + ((n.initialTouchX = t.clientX), + (n.initialTouchY = t.clientY), + (n.userIsDragging = !1)); }), - (n.announceAriaLiveContext = function(e) { - var t = e.event, - r = e.context; - n.setState({ - ariaLiveContext: Ne( - t, - He({}, r, { label: n.props['aria-label'] }) - ) - }); + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'onTouchMove', function( + e + ) { + var t = e.touches.item(0); + if (t) { + var r = Math.abs(t.clientX - n.initialTouchX), + o = Math.abs(t.clientY - n.initialTouchY); + n.userIsDragging = r > 5 || o > 5; + } }), - (n.onMenuMouseDown = function(e) { - 0 === e.button && - (e.stopPropagation(), e.preventDefault(), n.focusInput()); + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'onTouchEnd', function( + e + ) { + n.userIsDragging || + (n.controlRef && + !n.controlRef.contains(e.target) && + n.menuListRef && + !n.menuListRef.contains(e.target) && + n.blurInput(), + (n.initialTouchX = 0), + (n.initialTouchY = 0)); }), - (n.onMenuMouseMove = function(e) { - n.blockOptionHover = !1; + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'onControlTouchEnd', + function(e) { + n.userIsDragging || n.onControlMouseDown(e); + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'onClearIndicatorTouchEnd', + function(e) { + n.userIsDragging || n.onClearIndicatorMouseDown(e); + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'onDropdownIndicatorTouchEnd', + function(e) { + n.userIsDragging || n.onDropdownIndicatorMouseDown(e); + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'handleInputChange', + function(e) { + var t = e.currentTarget.value; + (n.inputIsHiddenAfterUpdate = !1), + n.onInputChange(t, { action: 'input-change' }), + n.onMenuOpen(); + } + ), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'onInputFocus', function( + e + ) { + var t = n.props, + r = t.isSearchable, + o = t.isMulti; + n.props.onFocus && n.props.onFocus(e), + (n.inputIsHiddenAfterUpdate = !1), + n.announceAriaLiveContext({ + event: 'input', + context: { isSearchable: r, isMulti: o } + }), + n.setState({ isFocused: !0 }), + (n.openAfterFocus || n.props.openMenuOnFocus) && + n.openMenu('first'), + (n.openAfterFocus = !1); }), - (n.onControlMouseDown = function(e) { - var t = n.props.openMenuOnClick; - n.state.isFocused - ? n.props.menuIsOpen - ? 'INPUT' !== e.target.tagName && - 'TEXTAREA' !== e.target.tagName && - n.onMenuClose() - : t && n.openMenu('first') - : (t && (n.openAfterFocus = !0), n.focusInput()), - 'INPUT' !== e.target.tagName && - 'TEXTAREA' !== e.target.tagName && - e.preventDefault(); + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'onInputBlur', function( + e + ) { + n.menuListRef && n.menuListRef.contains(document.activeElement) + ? n.inputRef.focus() + : (n.props.onBlur && n.props.onBlur(e), + n.onInputChange('', { action: 'input-blur' }), + n.onMenuClose(), + n.setState({ focusedValue: null, isFocused: !1 })); }), - (n.onDropdownIndicatorMouseDown = function(e) { + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'onOptionHover', + function(e) { + n.blockOptionHover || + n.state.focusedOption === e || + n.setState({ focusedOption: e }); + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'shouldHideSelectedOptions', + function() { + var e = n.props, + t = e.hideSelectedOptions, + r = e.isMulti; + return void 0 === t ? r : t; + } + ), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'onKeyDown', function( + e + ) { + var t = n.props, + r = t.isMulti, + o = t.backspaceRemovesValue, + i = t.escapeClearsValue, + a = t.inputValue, + s = t.isClearable, + c = t.isDisabled, + u = t.menuIsOpen, + l = t.onKeyDown, + f = t.tabSelectsValue, + d = t.openMenuOnFocus, + p = n.state, + h = p.focusedOption, + g = p.focusedValue, + m = p.selectValue; if ( - !( - (e && 'mousedown' === e.type && 0 !== e.button) || - n.props.isDisabled - ) + !(c || ('function' == typeof l && (l(e), e.defaultPrevented))) ) { - var t = n.props, - r = t.isMulti, - o = t.menuIsOpen; - n.focusInput(), - o - ? ((n.inputIsHiddenAfterUpdate = !r), n.onMenuClose()) - : n.openMenu('first'), - e.preventDefault(), - e.stopPropagation(); + switch (((n.blockOptionHover = !0), e.key)) { + case 'ArrowLeft': + if (!r || a) return; + n.focusValue('previous'); + break; + case 'ArrowRight': + if (!r || a) return; + n.focusValue('next'); + break; + case 'Delete': + case 'Backspace': + if (a) return; + if (g) n.removeValue(g); + else { + if (!o) return; + r ? n.popValue() : s && n.clearValue(); + } + break; + case 'Tab': + if (n.isComposing) return; + if ( + e.shiftKey || + !u || + !f || + !h || + (d && n.isOptionSelected(h, m)) + ) + return; + n.selectOption(h); + break; + case 'Enter': + if (229 === e.keyCode) break; + if (u) { + if (!h) return; + if (n.isComposing) return; + n.selectOption(h); + break; + } + return; + case 'Escape': + u + ? ((n.inputIsHiddenAfterUpdate = !1), + n.onInputChange('', { action: 'menu-close' }), + n.onMenuClose()) + : s && i && n.clearValue(); + break; + case ' ': + if (a) return; + if (!u) { + n.openMenu('first'); + break; + } + if (!h) return; + n.selectOption(h); + break; + case 'ArrowUp': + u ? n.focusOption('up') : n.openMenu('last'); + break; + case 'ArrowDown': + u ? n.focusOption('down') : n.openMenu('first'); + break; + case 'PageUp': + if (!u) return; + n.focusOption('pageup'); + break; + case 'PageDown': + if (!u) return; + n.focusOption('pagedown'); + break; + case 'Home': + if (!u) return; + n.focusOption('first'); + break; + case 'End': + if (!u) return; + n.focusOption('last'); + break; + default: + return; + } + e.preventDefault(); + } + }); + var r = e.value; + (n.cacheComponents = Object(m.a)(n.cacheComponents, X).bind( + Object(d.a)(Object(d.a)(n)) + )), + n.cacheComponents(e.components), + (n.instancePrefix = + 'react-select-' + (n.props.instanceId || ++Ye)); + var o = S(r), + c = e.menuIsOpen + ? n.buildMenuOptions(e, o) + : { render: [], focusable: [] }; + return (n.state.menuOptions = c), (n.state.selectValue = o), n; + } + return ( + Object(f.a)(t, e), + Object(c.a)(t, [ + { + key: 'componentDidMount', + value: function() { + this.startListeningComposition(), + this.startListeningToTouch(), + this.props.closeMenuOnScroll && + document && + document.addEventListener && + document.addEventListener('scroll', this.onScroll, !0), + this.props.autoFocus && this.focusInput(); + } + }, + { + key: 'UNSAFE_componentWillReceiveProps', + value: function(e) { + var t = this.props, + n = t.options, + r = t.value, + o = t.menuIsOpen, + i = t.inputValue; + if ( + (this.cacheComponents(e.components), + e.value !== r || + e.options !== n || + e.menuIsOpen !== o || + e.inputValue !== i) + ) { + var a = S(e.value), + s = e.menuIsOpen + ? this.buildMenuOptions(e, a) + : { render: [], focusable: [] }, + c = this.getNextFocusedValue(a), + u = this.getNextFocusedOption(s.focusable); + this.setState({ + menuOptions: s, + selectValue: a, + focusedOption: u, + focusedValue: c + }); + } + null != this.inputIsHiddenAfterUpdate && + (this.setState({ + inputIsHidden: this.inputIsHiddenAfterUpdate + }), + delete this.inputIsHiddenAfterUpdate); + } + }, + { + key: 'componentDidUpdate', + value: function(e) { + var t, + n, + r, + o, + i, + a = this.props, + s = a.isDisabled, + c = a.menuIsOpen, + u = this.state.isFocused; + ((u && !s && e.isDisabled) || (u && c && !e.menuIsOpen)) && + this.focusInput(), + this.menuListRef && + this.focusedOptionRef && + this.scrollToFocusedOptionOnUpdate && + ((t = this.menuListRef), + (n = this.focusedOptionRef), + (r = t.getBoundingClientRect()), + (o = n.getBoundingClientRect()), + (i = n.offsetHeight / 3), + o.bottom + i > r.bottom + ? A( + t, + Math.min( + n.offsetTop + n.clientHeight - t.offsetHeight + i, + t.scrollHeight + ) + ) + : o.top - i < r.top && + A(t, Math.max(n.offsetTop - i, 0))), + (this.scrollToFocusedOptionOnUpdate = !1); + } + }, + { + key: 'componentWillUnmount', + value: function() { + this.stopListeningComposition(), + this.stopListeningToTouch(), + document.removeEventListener('scroll', this.onScroll, !0); + } + }, + { + key: 'onMenuOpen', + value: function() { + this.props.onMenuOpen(); + } + }, + { + key: 'onMenuClose', + value: function() { + var e = this.props, + t = e.isSearchable, + n = e.isMulti; + this.announceAriaLiveContext({ + event: 'input', + context: { isSearchable: t, isMulti: n } + }), + this.onInputChange('', { action: 'menu-close' }), + this.props.onMenuClose(); + } + }, + { + key: 'onInputChange', + value: function(e, t) { + this.props.onInputChange(e, t); + } + }, + { + key: 'focusInput', + value: function() { + this.inputRef && this.inputRef.focus(); + } + }, + { + key: 'blurInput', + value: function() { + this.inputRef && this.inputRef.blur(); + } + }, + { + key: 'openMenu', + value: function(e) { + var t = this.state, + n = t.menuOptions, + r = t.selectValue, + o = t.isFocused, + i = this.props.isMulti, + a = 'first' === e ? 0 : n.focusable.length - 1; + if (!i) { + var s = n.focusable.indexOf(r[0]); + s > -1 && (a = s); + } + (this.scrollToFocusedOptionOnUpdate = !( + o && this.menuListRef + )), + (this.inputIsHiddenAfterUpdate = !1), + this.onMenuOpen(), + this.setState({ + focusedValue: null, + focusedOption: n.focusable[a] + }), + this.announceAriaLiveContext({ event: 'menu' }); + } + }, + { + key: 'focusValue', + value: function(e) { + var t = this.props, + n = t.isMulti, + r = t.isSearchable, + o = this.state, + i = o.selectValue, + a = o.focusedValue; + if (n) { + this.setState({ focusedOption: null }); + var s = i.indexOf(a); + a || + ((s = -1), + this.announceAriaLiveContext({ event: 'value' })); + var c = i.length - 1, + u = -1; + if (i.length) { + switch (e) { + case 'previous': + u = 0 === s ? 0 : -1 === s ? c : s - 1; + break; + case 'next': + s > -1 && s < c && (u = s + 1); + } + -1 === u && + this.announceAriaLiveContext({ + event: 'input', + context: { isSearchable: r, isMulti: n } + }), + this.setState({ + inputIsHidden: -1 !== u, + focusedValue: i[u] + }); + } + } + } + }, + { + key: 'focusOption', + value: function() { + var e = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : 'first', + t = this.props.pageSize, + n = this.state, + r = n.focusedOption, + o = n.menuOptions, + i = o.focusable; + if (i.length) { + var a = 0, + s = i.indexOf(r); + r || + ((s = -1), + this.announceAriaLiveContext({ event: 'menu' })), + 'up' === e + ? (a = s > 0 ? s - 1 : i.length - 1) + : 'down' === e + ? (a = (s + 1) % i.length) + : 'pageup' === e + ? (a = s - t) < 0 && (a = 0) + : 'pagedown' === e + ? (a = s + t) > i.length - 1 && (a = i.length - 1) + : 'last' === e && (a = i.length - 1), + (this.scrollToFocusedOptionOnUpdate = !0), + this.setState({ + focusedOption: i[a], + focusedValue: null + }), + this.announceAriaLiveContext({ + event: 'menu', + context: { isDisabled: Ie(i[a]) } + }); + } + } + }, + { + key: 'getTheme', + value: function() { + return this.props.theme + ? 'function' == typeof this.props.theme + ? this.props.theme(Be) + : Object(a.a)({}, Be, this.props.theme) + : Be; + } + }, + { + key: 'getCommonProps', + value: function() { + var e = this.clearValue, + t = this.getStyles, + n = this.setValue, + r = this.selectOption, + o = this.props, + i = o.classNamePrefix, + a = o.isMulti, + s = o.isRtl, + c = o.options, + u = this.state.selectValue, + l = this.hasValue(); + return { + cx: k.bind(null, i), + clearValue: e, + getStyles: t, + getValue: function() { + return u; + }, + hasValue: l, + isMulti: a, + isRtl: s, + options: c, + selectOption: r, + setValue: n, + selectProps: o, + theme: this.getTheme() + }; + } + }, + { + key: 'getNextFocusedValue', + value: function(e) { + if (this.clearFocusValueOnUpdate) + return (this.clearFocusValueOnUpdate = !1), null; + var t = this.state, + n = t.focusedValue, + r = t.selectValue.indexOf(n); + if (r > -1) { + if (e.indexOf(n) > -1) return n; + if (r < e.length) return e[r]; + } + return null; + } + }, + { + key: 'getNextFocusedOption', + value: function(e) { + var t = this.state.focusedOption; + return t && e.indexOf(t) > -1 ? t : e[0]; + } + }, + { + key: 'hasValue', + value: function() { + return this.state.selectValue.length > 0; + } + }, + { + key: 'hasOptions', + value: function() { + return !!this.state.menuOptions.render.length; + } + }, + { + key: 'countOptions', + value: function() { + return this.state.menuOptions.focusable.length; + } + }, + { + key: 'isClearable', + value: function() { + var e = this.props, + t = e.isClearable, + n = e.isMulti; + return void 0 === t ? n : t; + } + }, + { + key: 'isOptionDisabled', + value: function(e, t) { + return ( + 'function' == typeof this.props.isOptionDisabled && + this.props.isOptionDisabled(e, t) + ); + } + }, + { + key: 'isOptionSelected', + value: function(e, t) { + var n = this; + if (t.indexOf(e) > -1) return !0; + if ('function' == typeof this.props.isOptionSelected) + return this.props.isOptionSelected(e, t); + var r = this.getOptionValue(e); + return t.some(function(e) { + return n.getOptionValue(e) === r; + }); + } + }, + { + key: 'filterOption', + value: function(e, t) { + return ( + !this.props.filterOption || this.props.filterOption(e, t) + ); + } + }, + { + key: 'formatOptionLabel', + value: function(e, t) { + if ('function' == typeof this.props.formatOptionLabel) { + var n = this.props.inputValue, + r = this.state.selectValue; + return this.props.formatOptionLabel(e, { + context: t, + inputValue: n, + selectValue: r + }); + } + return this.getOptionLabel(e); + } + }, + { + key: 'formatGroupLabel', + value: function(e) { + return this.props.formatGroupLabel(e); + } + }, + { + key: 'startListeningComposition', + value: function() { + document && + document.addEventListener && + (document.addEventListener( + 'compositionstart', + this.onCompositionStart, + !1 + ), + document.addEventListener( + 'compositionend', + this.onCompositionEnd, + !1 + )); + } + }, + { + key: 'stopListeningComposition', + value: function() { + document && + document.removeEventListener && + (document.removeEventListener( + 'compositionstart', + this.onCompositionStart + ), + document.removeEventListener( + 'compositionend', + this.onCompositionEnd + )); + } + }, + { + key: 'startListeningToTouch', + value: function() { + document && + document.addEventListener && + (document.addEventListener( + 'touchstart', + this.onTouchStart, + !1 + ), + document.addEventListener( + 'touchmove', + this.onTouchMove, + !1 + ), + document.addEventListener('touchend', this.onTouchEnd, !1)); } - }), - (n.onClearIndicatorMouseDown = function(e) { - (e && 'mousedown' === e.type && 0 !== e.button) || - (n.clearValue(), - e.stopPropagation(), - (n.openAfterFocus = !1), - 'touchend' === e.type - ? n.focusInput() - : setTimeout(function() { - return n.focusInput(); - })); - }), - (n.onScroll = function(e) { - 'boolean' == typeof n.props.closeMenuOnScroll - ? e.target instanceof HTMLElement && - h(e.target) && - n.props.onMenuClose() - : 'function' == typeof n.props.closeMenuOnScroll && - n.props.closeMenuOnScroll(e) && - n.props.onMenuClose(); - }), - (n.onCompositionStart = function() { - n.isComposing = !0; - }), - (n.onCompositionEnd = function() { - n.isComposing = !1; - }), - (n.onTouchStart = function(e) { - var t = e.touches.item(0); - t && - ((n.initialTouchX = t.clientX), - (n.initialTouchY = t.clientY), - (n.userIsDragging = !1)); - }), - (n.onTouchMove = function(e) { - var t = e.touches.item(0); - if (t) { - var r = Math.abs(t.clientX - n.initialTouchX), - o = Math.abs(t.clientY - n.initialTouchY); - n.userIsDragging = r > 5 || o > 5; + }, + { + key: 'stopListeningToTouch', + value: function() { + document && + document.removeEventListener && + (document.removeEventListener( + 'touchstart', + this.onTouchStart + ), + document.removeEventListener('touchmove', this.onTouchMove), + document.removeEventListener('touchend', this.onTouchEnd)); } - }), - (n.onTouchEnd = function(e) { - n.userIsDragging || - (n.controlRef && - !n.controlRef.contains(e.target) && - n.menuListRef && - !n.menuListRef.contains(e.target) && - n.blurInput(), - (n.initialTouchX = 0), - (n.initialTouchY = 0)); - }), - (n.onControlTouchEnd = function(e) { - n.userIsDragging || n.onControlMouseDown(e); - }), - (n.onClearIndicatorTouchEnd = function(e) { - n.userIsDragging || n.onClearIndicatorMouseDown(e); - }), - (n.onDropdownIndicatorTouchEnd = function(e) { - n.userIsDragging || n.onDropdownIndicatorMouseDown(e); - }), - (n.handleInputChange = function(e) { - var t = e.currentTarget.value; - (n.inputIsHiddenAfterUpdate = !1), - n.onInputChange(t, { action: 'input-change' }), - n.onMenuOpen(); - }), - (n.onInputFocus = function(e) { - var t = n.props, - r = t.isSearchable, - o = t.isMulti; - n.props.onFocus && n.props.onFocus(e), - (n.inputIsHiddenAfterUpdate = !1), - n.announceAriaLiveContext({ - event: 'input', - context: { isSearchable: r, isMulti: o } - }), - n.setState({ isFocused: !0 }), - (n.openAfterFocus || n.props.openMenuOnFocus) && - n.openMenu('first'), - (n.openAfterFocus = !1); - }), - (n.onInputBlur = function(e) { - n.menuListRef && n.menuListRef.contains(document.activeElement) - ? n.inputRef.focus() - : (n.props.onBlur && n.props.onBlur(e), - n.onInputChange('', { action: 'input-blur' }), - n.onMenuClose(), - n.setState({ focusedValue: null, isFocused: !1 })); - }), - (n.onOptionHover = function(e) { - n.blockOptionHover || - n.state.focusedOption === e || - n.setState({ focusedOption: e }); - }), - (n.shouldHideSelectedOptions = function() { - var e = n.props, - t = e.hideSelectedOptions, - r = e.isMulti; - return void 0 === t ? r : t; - }), - (n.onKeyDown = function(e) { - var t = n.props, - r = t.isMulti, - o = t.backspaceRemovesValue, - i = t.escapeClearsValue, - a = t.inputValue, - s = t.isClearable, - c = t.isDisabled, - u = t.menuIsOpen, - l = t.onKeyDown, - f = t.tabSelectsValue, - d = t.openMenuOnFocus, - p = n.state, - h = p.focusedOption, - g = p.focusedValue, - m = p.selectValue; - if ( - !(c || ('function' == typeof l && (l(e), e.defaultPrevented))) - ) { - switch (((n.blockOptionHover = !0), e.key)) { - case 'ArrowLeft': - if (!r || a) return; - n.focusValue('previous'); - break; - case 'ArrowRight': - if (!r || a) return; - n.focusValue('next'); - break; - case 'Delete': - case 'Backspace': - if (a) return; - if (g) n.removeValue(g); - else { - if (!o) return; - r ? n.popValue() : s && n.clearValue(); - } - break; - case 'Tab': - if (n.isComposing) return; + }, + { + key: 'buildMenuOptions', + value: function(e, t) { + var n = this, + r = e.inputValue, + o = void 0 === r ? '' : r, + i = e.options, + a = function(e, r) { + var i = n.isOptionDisabled(e, t), + a = n.isOptionSelected(e, t), + s = n.getOptionLabel(e), + c = n.getOptionValue(e); if ( - e.shiftKey || - !u || - !f || - !h || - (d && n.isOptionSelected(h, m)) - ) - return; - n.selectOption(h); - break; - case 'Enter': - if (229 === e.keyCode) break; - if (u) { - if (!h) return; - if (n.isComposing) return; - n.selectOption(h); - break; + !( + (n.shouldHideSelectedOptions() && a) || + !n.filterOption({ label: s, value: c, data: e }, o) + ) + ) { + var u = i + ? void 0 + : function() { + return n.onOptionHover(e); + }, + l = i + ? void 0 + : function() { + return n.selectOption(e); + }, + f = '' + .concat(n.getElementId('option'), '-') + .concat(r); + return { + innerProps: { + id: f, + onClick: l, + onMouseMove: u, + onMouseOver: u, + tabIndex: -1 + }, + data: e, + isDisabled: i, + isSelected: a, + key: f, + label: s, + type: 'option', + value: c + }; } - return; - case 'Escape': - u - ? ((n.inputIsHiddenAfterUpdate = !1), - n.onInputChange('', { action: 'menu-close' }), - n.onMenuClose()) - : s && i && n.clearValue(); - break; - case ' ': - if (a) return; - if (!u) { - n.openMenu('first'); - break; + }; + return i.reduce( + function(e, t, r) { + if (t.options) { + n.hasGroups || (n.hasGroups = !0); + var o = t.options + .map(function(t, n) { + var o = a(t, ''.concat(r, '-').concat(n)); + return o && e.focusable.push(t), o; + }) + .filter(Boolean); + if (o.length) { + var i = '' + .concat(n.getElementId('group'), '-') + .concat(r); + e.render.push({ + type: 'group', + key: i, + data: t, + options: o + }); + } + } else { + var s = a(t, ''.concat(r)); + s && (e.render.push(s), e.focusable.push(t)); } - if (!h) return; - n.selectOption(h); - break; - case 'ArrowUp': - u ? n.focusOption('up') : n.openMenu('last'); - break; - case 'ArrowDown': - u ? n.focusOption('down') : n.openMenu('first'); - break; - case 'PageUp': - if (!u) return; - n.focusOption('pageup'); - break; - case 'PageDown': - if (!u) return; - n.focusOption('pagedown'); - break; - case 'Home': - if (!u) return; - n.focusOption('first'); - break; - case 'End': - if (!u) return; - n.focusOption('last'); - break; - default: - return; - } - e.preventDefault(); + return e; + }, + { render: [], focusable: [] } + ); } - }), - (n.buildMenuOptions = function(e, t) { - var r = e.inputValue, - o = void 0 === r ? '' : r, - i = e.options, - a = function(e, r) { - var i = n.isOptionDisabled(e, t), - a = n.isOptionSelected(e, t), - s = n.getOptionLabel(e), - c = n.getOptionValue(e); - if ( - !( - (n.shouldHideSelectedOptions() && a) || - !n.filterOption({ label: s, value: c, data: e }, o) - ) - ) { - var u = i - ? void 0 - : function() { - return n.onOptionHover(e); - }, - l = i - ? void 0 - : function() { - return n.selectOption(e); - }, - f = n.getElementId('option') + '-' + r; - return { - innerProps: { - id: f, - onClick: l, - onMouseMove: u, - onMouseOver: u, - tabIndex: -1 - }, - data: e, - isDisabled: i, - isSelected: a, - key: f, - label: s, - type: 'option', - value: c - }; - } - }; - return i.reduce( - function(e, t, r) { - if (t.options) { - n.hasGroups || (n.hasGroups = !0); - var o = t.options - .map(function(t, n) { - var o = a(t, r + '-' + n); - return o && e.focusable.push(t), o; + }, + { + key: 'constructAriaLiveMessage', + value: function() { + var e = this.state, + t = e.ariaLiveContext, + n = e.selectValue, + r = e.focusedValue, + o = e.focusedOption, + i = this.props, + a = i.options, + s = i.menuIsOpen, + c = i.inputValue, + u = i.screenReaderStatus, + l = r + ? (function(e) { + var t = e.focusedValue, + n = e.getOptionLabel, + r = e.selectValue; + return 'value ' + .concat(n(t), ' focused, ') + .concat(r.indexOf(t) + 1, ' of ') + .concat(r.length, '.'); + })({ + focusedValue: r, + getOptionLabel: this.getOptionLabel, + selectValue: n }) - .filter(Boolean); - if (o.length) { - var i = n.getElementId('group') + '-' + r; - e.render.push({ - type: 'group', - key: i, - data: t, - options: o - }); - } - } else { - var s = a(t, '' + r); - s && (e.render.push(s), e.focusable.push(t)); - } - return e; - }, - { render: [], focusable: [] } - ); - }); - var r = t.value; - (n.cacheComponents = Object(i.a)(n.cacheComponents, j).bind( - Ye(Ye(n)) - )), - n.cacheComponents(t.components), - (n.instancePrefix = - 'react-select-' + (n.props.instanceId || ++Ve)); - var o = p(r); - n.buildMenuOptions = Object(i.a)(n.buildMenuOptions, function( - e, - t - ) { - var n = e, - r = n[0], - o = n[1], - i = t, - a = i[0]; - return ( - j(o, i[1]) && - j(r.inputValue, a.inputValue) && - j(r.options, a.options) - ); - }).bind(Ye(Ye(n))); - var a = t.menuIsOpen - ? n.buildMenuOptions(t, o) - : { render: [], focusable: [] }; - return (n.state.menuOptions = a), (n.state.selectValue = o), n; - } - (n = e), - ((t = r).prototype = Object.create(n.prototype)), - (t.prototype.constructor = t), - (t.__proto__ = n); - var a = r.prototype; - return ( - (a.componentDidMount = function() { - this.startListeningComposition(), - this.startListeningToTouch(), - this.props.closeMenuOnScroll && - document && - document.addEventListener && - document.addEventListener('scroll', this.onScroll, !0), - this.props.autoFocus && this.focusInput(); - }), - (a.UNSAFE_componentWillReceiveProps = function(e) { - var t = this.props, - n = t.options, - r = t.value, - o = t.menuIsOpen, - i = t.inputValue; - if ( - (this.cacheComponents(e.components), - e.value !== r || - e.options !== n || - e.menuIsOpen !== o || - e.inputValue !== i) - ) { - var a = p(e.value), - s = e.menuIsOpen - ? this.buildMenuOptions(e, a) - : { render: [], focusable: [] }, - c = this.getNextFocusedValue(a), - u = this.getNextFocusedOption(s.focusable); - this.setState({ - menuOptions: s, - selectValue: a, - focusedOption: u, - focusedValue: c - }); - } - null != this.inputIsHiddenAfterUpdate && - (this.setState({ - inputIsHidden: this.inputIsHiddenAfterUpdate - }), - delete this.inputIsHiddenAfterUpdate); - }), - (a.componentDidUpdate = function(e) { - var t, - n, - r, - o, - i, - a = this.props, - s = a.isDisabled, - c = a.menuIsOpen, - u = this.state.isFocused; - ((u && !s && e.isDisabled) || (u && c && !e.menuIsOpen)) && - this.focusInput(), - this.menuListRef && - this.focusedOptionRef && - this.scrollToFocusedOptionOnUpdate && - ((t = this.menuListRef), - (n = this.focusedOptionRef), - (r = t.getBoundingClientRect()), - (o = n.getBoundingClientRect()), - (i = n.offsetHeight / 3), - o.bottom + i > r.bottom - ? m( - t, - Math.min( - n.offsetTop + n.clientHeight - t.offsetHeight + i, - t.scrollHeight - ) - ) - : o.top - i < r.top && m(t, Math.max(n.offsetTop - i, 0)), - (this.scrollToFocusedOptionOnUpdate = !1)); - }), - (a.componentWillUnmount = function() { - this.stopListeningComposition(), - this.stopListeningToTouch(), - document.removeEventListener('scroll', this.onScroll, !0); - }), - (a.onMenuOpen = function() { - this.props.onMenuOpen(); - }), - (a.onMenuClose = function() { - var e = this.props, - t = e.isSearchable, - n = e.isMulti; - this.announceAriaLiveContext({ - event: 'input', - context: { isSearchable: t, isMulti: n } - }), - this.onInputChange('', { action: 'menu-close' }), - this.props.onMenuClose(); - }), - (a.onInputChange = function(e, t) { - this.props.onInputChange(e, t); - }), - (a.focusInput = function() { - this.inputRef && this.inputRef.focus(); - }), - (a.blurInput = function() { - this.inputRef && this.inputRef.blur(); - }), - (a.openMenu = function(e) { - var t = this, - n = this.state, - r = n.selectValue, - o = n.isFocused, - i = this.buildMenuOptions(this.props, r), - a = this.props.isMulti, - s = 'first' === e ? 0 : i.focusable.length - 1; - if (!a) { - var c = i.focusable.indexOf(r[0]); - c > -1 && (s = c); - } - (this.scrollToFocusedOptionOnUpdate = !(o && this.menuListRef)), - (this.inputIsHiddenAfterUpdate = !1), - this.setState( - { - menuOptions: i, - focusedValue: null, - focusedOption: i.focusable[s] - }, - function() { - t.onMenuOpen(), - t.announceAriaLiveContext({ event: 'menu' }); - } - ); - }), - (a.focusValue = function(e) { - var t = this.props, - n = t.isMulti, - r = t.isSearchable, - o = this.state, - i = o.selectValue, - a = o.focusedValue; - if (n) { - this.setState({ focusedOption: null }); - var s = i.indexOf(a); - a || - ((s = -1), this.announceAriaLiveContext({ event: 'value' })); - var c = i.length - 1, - u = -1; - if (i.length) { - switch (e) { - case 'previous': - u = 0 === s ? 0 : -1 === s ? c : s - 1; - break; - case 'next': - s > -1 && s < c && (u = s + 1); - } - -1 === u && - this.announceAriaLiveContext({ - event: 'input', - context: { isSearchable: r, isMulti: n } - }), - this.setState({ - inputIsHidden: -1 !== u, - focusedValue: i[u] + : '', + f = + o && s + ? (function(e) { + var t = e.focusedOption, + n = e.getOptionLabel, + r = e.options; + return 'option ' + .concat(n(t), ' focused') + .concat(t.isDisabled ? ' disabled' : '', ', ') + .concat(r.indexOf(t) + 1, ' of ') + .concat(r.length, '.'); + })({ + focusedOption: o, + getOptionLabel: this.getOptionLabel, + options: a + }) + : '', + d = (function(e) { + var t = e.inputValue, + n = e.screenReaderMessage; + return '' + .concat(n) + .concat(t ? ' for search term ' + t : '', '.'); + })({ + inputValue: c, + screenReaderMessage: u({ count: this.countOptions() }) }); + return '' + .concat(l, ' ') + .concat(f, ' ') + .concat(d, ' ') + .concat(t); } - } - }), - (a.focusOption = function(e) { - void 0 === e && (e = 'first'); - var t = this.props.pageSize, - n = this.state, - r = n.focusedOption, - o = n.menuOptions.focusable; - if (o.length) { - var i = 0, - a = o.indexOf(r); - r || - ((a = -1), this.announceAriaLiveContext({ event: 'menu' })), - 'up' === e - ? (i = a > 0 ? a - 1 : o.length - 1) - : 'down' === e - ? (i = (a + 1) % o.length) - : 'pageup' === e - ? (i = a - t) < 0 && (i = 0) - : 'pagedown' === e - ? (i = a + t) > o.length - 1 && (i = o.length - 1) - : 'last' === e && (i = o.length - 1), - (this.scrollToFocusedOptionOnUpdate = !0), - this.setState({ focusedOption: o[i], focusedValue: null }), - this.announceAriaLiveContext({ - event: 'menu', - context: { isDisabled: Re(o[i]) } - }); - } - }), - (a.getTheme = function() { - return this.props.theme - ? 'function' == typeof this.props.theme - ? this.props.theme(Be) - : He({}, Be, this.props.theme) - : Be; - }), - (a.getCommonProps = function() { - var e = this.clearValue, - t = this.getStyles, - n = this.setValue, - r = this.selectOption, - o = this.props, - i = o.classNamePrefix, - a = o.isMulti, - s = o.isRtl, - c = o.options, - u = this.state.selectValue, - l = this.hasValue(); - return { - cx: d.bind(null, i), - clearValue: e, - getStyles: t, - getValue: function() { - return u; - }, - hasValue: l, - isMulti: a, - isRtl: s, - options: c, - selectOption: r, - setValue: n, - selectProps: o, - theme: this.getTheme() - }; - }), - (a.getNextFocusedValue = function(e) { - if (this.clearFocusValueOnUpdate) - return (this.clearFocusValueOnUpdate = !1), null; - var t = this.state, - n = t.focusedValue, - r = t.selectValue.indexOf(n); - if (r > -1) { - if (e.indexOf(n) > -1) return n; - if (r < e.length) return e[r]; - } - return null; - }), - (a.getNextFocusedOption = function(e) { - var t = this.state.focusedOption; - return t && e.indexOf(t) > -1 ? t : e[0]; - }), - (a.hasValue = function() { - return this.state.selectValue.length > 0; - }), - (a.hasOptions = function() { - return !!this.state.menuOptions.render.length; - }), - (a.countOptions = function() { - return this.state.menuOptions.focusable.length; - }), - (a.isClearable = function() { - var e = this.props, - t = e.isClearable, - n = e.isMulti; - return void 0 === t ? n : t; - }), - (a.isOptionDisabled = function(e, t) { - return ( - 'function' == typeof this.props.isOptionDisabled && - this.props.isOptionDisabled(e, t) - ); - }), - (a.isOptionSelected = function(e, t) { - var n = this; - if (t.indexOf(e) > -1) return !0; - if ('function' == typeof this.props.isOptionSelected) - return this.props.isOptionSelected(e, t); - var r = this.getOptionValue(e); - return t.some(function(e) { - return n.getOptionValue(e) === r; - }); - }), - (a.filterOption = function(e, t) { - return !this.props.filterOption || this.props.filterOption(e, t); - }), - (a.formatOptionLabel = function(e, t) { - if ('function' == typeof this.props.formatOptionLabel) { - var n = this.props.inputValue, - r = this.state.selectValue; - return this.props.formatOptionLabel(e, { - context: t, - inputValue: n, - selectValue: r - }); - } - return this.getOptionLabel(e); - }), - (a.formatGroupLabel = function(e) { - return this.props.formatGroupLabel(e); - }), - (a.startListeningComposition = function() { - document && - document.addEventListener && - (document.addEventListener( - 'compositionstart', - this.onCompositionStart, - !1 - ), - document.addEventListener( - 'compositionend', - this.onCompositionEnd, - !1 - )); - }), - (a.stopListeningComposition = function() { - document && - document.removeEventListener && - (document.removeEventListener( - 'compositionstart', - this.onCompositionStart - ), - document.removeEventListener( - 'compositionend', - this.onCompositionEnd - )); - }), - (a.startListeningToTouch = function() { - document && - document.addEventListener && - (document.addEventListener('touchstart', this.onTouchStart, !1), - document.addEventListener('touchmove', this.onTouchMove, !1), - document.addEventListener('touchend', this.onTouchEnd, !1)); - }), - (a.stopListeningToTouch = function() { - document && - document.removeEventListener && - (document.removeEventListener('touchstart', this.onTouchStart), - document.removeEventListener('touchmove', this.onTouchMove), - document.removeEventListener('touchend', this.onTouchEnd)); - }), - (a.constructAriaLiveMessage = function() { - var e = this.state, - t = e.ariaLiveContext, - n = e.selectValue, - r = e.focusedValue, - o = e.focusedOption, - i = this.props, - a = i.options, - s = i.menuIsOpen, - c = i.inputValue, - u = i.screenReaderStatus; - return ( - (r - ? (function(e) { - var t = e.focusedValue, - n = e.getOptionLabel, - r = e.selectValue; - return ( - 'value ' + - n(t) + - ' focused, ' + - (r.indexOf(t) + 1) + - ' of ' + - r.length + - '.' - ); - })({ - focusedValue: r, - getOptionLabel: this.getOptionLabel, - selectValue: n - }) - : '') + - ' ' + - (o && s - ? (function(e) { - var t = e.focusedOption, - n = e.getOptionLabel, - r = e.options; - return ( - 'option ' + - n(t) + - ' focused' + - (t.isDisabled ? ' disabled' : '') + - ', ' + - (r.indexOf(t) + 1) + - ' of ' + - r.length + - '.' - ); - })({ - focusedOption: o, - getOptionLabel: this.getOptionLabel, - options: a - }) - : '') + - ' ' + - (function(e) { - var t = e.inputValue; - return ( - e.screenReaderMessage + - (t ? ' for search term ' + t : '') + - '.' - ); - })({ - inputValue: c, - screenReaderMessage: u({ count: this.countOptions() }) - }) + - ' ' + - t - ); - }), - (a.renderInput = function() { - var e = this.props, - t = e.isDisabled, - n = e.isSearchable, - r = e.inputId, - i = e.inputValue, - a = e.tabIndex, - s = this.components.Input, - c = this.state.inputIsHidden, - u = r || this.getElementId('input'), - f = { - 'aria-autocomplete': 'list', - 'aria-label': this.props['aria-label'], - 'aria-labelledby': this.props['aria-labelledby'] - }; - if (!n) - return o.a.createElement( - _e, - He( - { + }, + { + key: 'renderInput', + value: function() { + var e = this.props, + t = e.isDisabled, + n = e.isSearchable, + r = e.inputId, + i = e.inputValue, + a = e.tabIndex, + s = this.components.Input, + c = this.state.inputIsHidden, + u = r || this.getElementId('input'); + if (!n) + return g.a.createElement(we, { id: u, innerRef: this.getInputRef, onBlur: this.onInputBlur, - onChange: l, + onChange: x, onFocus: this.onInputFocus, readOnly: !0, disabled: t, tabIndex: a, value: '' + }); + var l = { + 'aria-autocomplete': 'list', + 'aria-label': this.props['aria-label'], + 'aria-labelledby': this.props['aria-labelledby'] }, - f - ) - ); - var d = this.commonProps, - p = d.cx, - h = d.theme, - g = d.selectProps; - return o.a.createElement( - s, - He( - { - autoCapitalize: 'none', - autoComplete: 'off', - autoCorrect: 'off', - cx: p, - getStyles: this.getStyles, - id: u, - innerRef: this.getInputRef, - isDisabled: t, - isHidden: c, - onBlur: this.onInputBlur, - onChange: this.handleInputChange, - onFocus: this.onInputFocus, - selectProps: g, - spellCheck: 'false', - tabIndex: a, - theme: h, - type: 'text', - value: i - }, - f - ) - ); - }), - (a.renderPlaceholderOrValue = function() { - var e = this, - t = this.components, - n = t.MultiValue, - r = t.MultiValueContainer, - i = t.MultiValueLabel, - a = t.MultiValueRemove, - s = t.SingleValue, - c = t.Placeholder, - u = this.commonProps, - l = this.props, - f = l.controlShouldRenderValue, - d = l.isDisabled, - p = l.isMulti, - h = l.inputValue, - g = l.placeholder, - m = this.state, - b = m.selectValue, - y = m.focusedValue, - v = m.isFocused; - if (!this.hasValue() || !f) - return h - ? null - : o.a.createElement( - c, - He({}, u, { - key: 'placeholder', - isDisabled: d, - isFocused: v - }), - g - ); - if (p) - return b.map(function(t, s) { - var c = t === y; - return o.a.createElement( - n, - He({}, u, { - components: { Container: r, Label: i, Remove: a }, - isFocused: c, - isDisabled: d, - key: e.getOptionValue(t), - index: s, - removeProps: { - onClick: function() { - return e.removeValue(t); - }, - onTouchEnd: function() { - return e.removeValue(t); - }, - onMouseDown: function(e) { - e.preventDefault(), e.stopPropagation(); - } + f = this.commonProps, + d = f.cx, + p = f.theme, + h = f.selectProps; + return g.a.createElement( + s, + Object(o.a)( + { + autoCapitalize: 'none', + autoComplete: 'off', + autoCorrect: 'off', + cx: d, + getStyles: this.getStyles, + id: u, + innerRef: this.getInputRef, + isDisabled: t, + isHidden: c, + onBlur: this.onInputBlur, + onChange: this.handleInputChange, + onFocus: this.onInputFocus, + selectProps: h, + spellCheck: 'false', + tabIndex: a, + theme: p, + type: 'text', + value: i }, - data: t - }), - e.formatOptionLabel(t, 'value') - ); - }); - if (h) return null; - var _ = b[0]; - return o.a.createElement( - s, - He({}, u, { data: _, isDisabled: d }), - this.formatOptionLabel(_, 'value') - ); - }), - (a.renderClearIndicator = function() { - var e = this.components.ClearIndicator, - t = this.commonProps, - n = this.props, - r = n.isDisabled, - i = n.isLoading, - a = this.state.isFocused; - if (!this.isClearable() || !e || r || !this.hasValue() || i) - return null; - var s = { - onMouseDown: this.onClearIndicatorMouseDown, - onTouchEnd: this.onClearIndicatorTouchEnd, - 'aria-hidden': 'true' - }; - return o.a.createElement( - e, - He({}, t, { innerProps: s, isFocused: a }) - ); - }), - (a.renderLoadingIndicator = function() { - var e = this.components.LoadingIndicator, - t = this.commonProps, - n = this.props, - r = n.isDisabled, - i = n.isLoading, - a = this.state.isFocused; - if (!e || !i) return null; - return o.a.createElement( - e, - He({}, t, { - innerProps: { 'aria-hidden': 'true' }, - isDisabled: r, - isFocused: a - }) - ); - }), - (a.renderIndicatorSeparator = function() { - var e = this.components, - t = e.DropdownIndicator, - n = e.IndicatorSeparator; - if (!t || !n) return null; - var r = this.commonProps, - i = this.props.isDisabled, - a = this.state.isFocused; - return o.a.createElement( - n, - He({}, r, { isDisabled: i, isFocused: a }) - ); - }), - (a.renderDropdownIndicator = function() { - var e = this.components.DropdownIndicator; - if (!e) return null; - var t = this.commonProps, - n = this.props.isDisabled, - r = this.state.isFocused, - i = { - onMouseDown: this.onDropdownIndicatorMouseDown, - onTouchEnd: this.onDropdownIndicatorTouchEnd, - 'aria-hidden': 'true' - }; - return o.a.createElement( - e, - He({}, t, { innerProps: i, isDisabled: n, isFocused: r }) - ); - }), - (a.renderMenu = function() { - var e = this, - t = this.components, - n = t.Group, - r = t.GroupHeading, - i = t.Menu, - a = t.MenuList, - s = t.MenuPortal, - c = t.LoadingMessage, - u = t.NoOptionsMessage, - l = t.Option, - f = this.commonProps, - d = this.state, - p = d.focusedOption, - h = d.menuOptions, - g = this.props, - m = g.captureMenuScroll, - b = g.inputValue, - y = g.isLoading, - v = g.loadingMessage, - _ = g.minMenuHeight, - x = g.maxMenuHeight, - w = g.menuIsOpen, - M = g.menuPlacement, - k = g.menuPosition, - S = g.menuPortalTarget, - O = g.menuShouldBlockScroll, - E = g.menuShouldScrollIntoView, - T = g.noOptionsMessage, - C = g.onMenuScrollToTop, - L = g.onMenuScrollToBottom; - if (!w) return null; - var P, - D = function(t) { - var n = p === t.data; - return ( - (t.innerRef = n ? e.getFocusedOptionRef : void 0), - o.a.createElement( - l, - He({}, f, t, { isFocused: n }), - e.formatOptionLabel(t.data, 'menu') + l ) ); - }; - if (this.hasOptions()) - P = h.render.map(function(t) { - if ('group' === t.type) { - t.type; - var i = (function(e, t) { - if (null == e) return {}; - var n, - r, - o = {}, - i = Object.keys(e); - for (r = 0; r < i.length; r++) - (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); - return o; - })(t, ['type']), - a = t.key + '-heading'; - return o.a.createElement( - n, - He({}, f, i, { - Heading: r, - headingProps: { id: a }, - label: e.formatGroupLabel(t.data) - }), - t.options.map(function(e) { - return D(e); - }) - ); - } - if ('option' === t.type) return D(t); - }); - else if (y) { - var z = v({ inputValue: b }); - if (null === z) return null; - P = o.a.createElement(c, f, z); - } else { - var N = T({ inputValue: b }); - if (null === N) return null; - P = o.a.createElement(u, f, N); - } - var j = { - minMenuHeight: _, - maxMenuHeight: x, - menuPlacement: M, - menuPosition: k, - menuShouldScrollIntoView: E - }, - R = o.a.createElement(A, He({}, f, j), function(t) { - var n = t.ref, - r = t.placerProps, - s = r.placement, - c = r.maxHeight; - return o.a.createElement( - i, - He({}, f, j, { - innerRef: n, - innerProps: { - onMouseDown: e.onMenuMouseDown, - onMouseMove: e.onMenuMouseMove - }, - isLoading: y, - placement: s - }), - o.a.createElement( - ze, - { isEnabled: m, onTopArrive: C, onBottomArrive: L }, - o.a.createElement( - Pe, - { isEnabled: O }, - o.a.createElement( - a, - He({}, f, { - innerRef: e.getMenuListRef, - isLoading: y, - maxHeight: c + } + }, + { + key: 'renderPlaceholderOrValue', + value: function() { + var e = this, + t = this.components, + n = t.MultiValue, + r = t.MultiValueContainer, + i = t.MultiValueLabel, + a = t.MultiValueRemove, + s = t.SingleValue, + c = t.Placeholder, + u = this.commonProps, + l = this.props, + f = l.controlShouldRenderValue, + d = l.isDisabled, + p = l.isMulti, + h = l.inputValue, + m = l.placeholder, + b = this.state, + y = b.selectValue, + v = b.focusedValue, + _ = b.isFocused; + if (!this.hasValue() || !f) + return h + ? null + : g.a.createElement( + c, + Object(o.a)({}, u, { + key: 'placeholder', + isDisabled: d, + isFocused: _ + }), + m + ); + if (p) + return y.map(function(t, s) { + var c = t === v; + return g.a.createElement( + n, + Object(o.a)({}, u, { + components: { Container: r, Label: i, Remove: a }, + isFocused: c, + isDisabled: d, + key: e.getOptionValue(t), + index: s, + removeProps: { + onClick: function() { + return e.removeValue(t); + }, + onTouchEnd: function() { + return e.removeValue(t); + }, + onMouseDown: function(e) { + e.preventDefault(), e.stopPropagation(); + } + }, + data: t + }), + e.formatOptionLabel(t, 'value') + ); + }); + if (h) return null; + var w = y[0]; + return g.a.createElement( + s, + Object(o.a)({}, u, { data: w, isDisabled: d }), + this.formatOptionLabel(w, 'value') + ); + } + }, + { + key: 'renderClearIndicator', + value: function() { + var e = this.components.ClearIndicator, + t = this.commonProps, + n = this.props, + r = n.isDisabled, + i = n.isLoading, + a = this.state.isFocused; + if (!this.isClearable() || !e || r || !this.hasValue() || i) + return null; + var s = { + onMouseDown: this.onClearIndicatorMouseDown, + onTouchEnd: this.onClearIndicatorTouchEnd, + 'aria-hidden': 'true' + }; + return g.a.createElement( + e, + Object(o.a)({}, t, { innerProps: s, isFocused: a }) + ); + } + }, + { + key: 'renderLoadingIndicator', + value: function() { + var e = this.components.LoadingIndicator, + t = this.commonProps, + n = this.props, + r = n.isDisabled, + i = n.isLoading, + a = this.state.isFocused; + if (!e || !i) return null; + return g.a.createElement( + e, + Object(o.a)({}, t, { + innerProps: { 'aria-hidden': 'true' }, + isDisabled: r, + isFocused: a + }) + ); + } + }, + { + key: 'renderIndicatorSeparator', + value: function() { + var e = this.components, + t = e.DropdownIndicator, + n = e.IndicatorSeparator; + if (!t || !n) return null; + var r = this.commonProps, + i = this.props.isDisabled, + a = this.state.isFocused; + return g.a.createElement( + n, + Object(o.a)({}, r, { isDisabled: i, isFocused: a }) + ); + } + }, + { + key: 'renderDropdownIndicator', + value: function() { + var e = this.components.DropdownIndicator; + if (!e) return null; + var t = this.commonProps, + n = this.props.isDisabled, + r = this.state.isFocused, + i = { + onMouseDown: this.onDropdownIndicatorMouseDown, + onTouchEnd: this.onDropdownIndicatorTouchEnd, + 'aria-hidden': 'true' + }; + return g.a.createElement( + e, + Object(o.a)({}, t, { + innerProps: i, + isDisabled: n, + isFocused: r + }) + ); + } + }, + { + key: 'renderMenu', + value: function() { + var e = this, + t = this.components, + n = t.Group, + i = t.GroupHeading, + a = t.Menu, + s = t.MenuList, + c = t.MenuPortal, + u = t.LoadingMessage, + l = t.NoOptionsMessage, + f = t.Option, + d = this.commonProps, + p = this.state, + h = p.focusedOption, + m = p.menuOptions, + b = this.props, + y = b.captureMenuScroll, + v = b.inputValue, + _ = b.isLoading, + w = b.loadingMessage, + x = b.minMenuHeight, + M = b.maxMenuHeight, + k = b.menuIsOpen, + S = b.menuPlacement, + O = b.menuPosition, + E = b.menuPortalTarget, + A = b.menuShouldBlockScroll, + T = b.menuShouldScrollIntoView, + C = b.noOptionsMessage, + L = b.onMenuScrollToTop, + P = b.onMenuScrollToBottom; + if (!k) return null; + var D, + j = function(t) { + var n = h === t.data; + return ( + (t.innerRef = n ? e.getFocusedOptionRef : void 0), + g.a.createElement( + f, + Object(o.a)({}, d, t, { isFocused: n }), + e.formatOptionLabel(t.data, 'menu') + ) + ); + }; + if (this.hasOptions()) + D = m.render.map(function(t) { + if ('group' === t.type) { + t.type; + var a = Object(r.a)(t, ['type']), + s = ''.concat(t.key, '-heading'); + return g.a.createElement( + n, + Object(o.a)({}, d, a, { + Heading: i, + headingProps: { id: s }, + label: e.formatGroupLabel(t.data) }), - P + t.options.map(function(e) { + return j(e); + }) + ); + } + if ('option' === t.type) return j(t); + }); + else if (_) { + var z = w({ inputValue: v }); + if (null === z) return null; + D = g.a.createElement(u, d, z); + } else { + var N = C({ inputValue: v }); + if (null === N) return null; + D = g.a.createElement(l, d, N); + } + var I = { + minMenuHeight: x, + maxMenuHeight: M, + menuPlacement: S, + menuPosition: O, + menuShouldScrollIntoView: T + }, + F = g.a.createElement(R, Object(o.a)({}, d, I), function( + t + ) { + var n = t.ref, + r = t.placerProps, + i = r.placement, + c = r.maxHeight; + return g.a.createElement( + a, + Object(o.a)({}, d, I, { + innerRef: n, + innerProps: { + onMouseDown: e.onMenuMouseDown, + onMouseMove: e.onMenuMouseMove + }, + isLoading: _, + placement: i + }), + g.a.createElement( + ze, + { isEnabled: y, onTopArrive: L, onBottomArrive: P }, + g.a.createElement( + De, + { isEnabled: A }, + g.a.createElement( + s, + Object(o.a)({}, d, { + innerRef: e.getMenuListRef, + isLoading: _, + maxHeight: c + }), + D + ) + ) ) + ); + }); + return E || 'fixed' === O + ? g.a.createElement( + c, + Object(o.a)({}, d, { + appendTo: E, + controlElement: this.controlRef, + menuPlacement: S, + menuPosition: O + }), + F ) - ) - ); - }); - return S || 'fixed' === k - ? o.a.createElement( - s, - He({}, f, { - appendTo: S, - controlElement: this.controlRef, - menuPlacement: M, - menuPosition: k - }), - R - ) - : R; - }), - (a.renderFormField = function() { - var e = this, - t = this.props, - n = t.delimiter, - r = t.isDisabled, - i = t.isMulti, - a = t.name, - s = this.state.selectValue; - if (a && !r) { - if (i) { - if (n) { - var c = s - .map(function(t) { - return e.getOptionValue(t); - }) - .join(n); - return o.a.createElement('input', { - name: a, + : F; + } + }, + { + key: 'renderFormField', + value: function() { + var e = this, + t = this.props, + n = t.delimiter, + r = t.isDisabled, + o = t.isMulti, + i = t.name, + a = this.state.selectValue; + if (i && !r) { + if (o) { + if (n) { + var s = a + .map(function(t) { + return e.getOptionValue(t); + }) + .join(n); + return g.a.createElement('input', { + name: i, + type: 'hidden', + value: s + }); + } + var c = + a.length > 0 + ? a.map(function(t, n) { + return g.a.createElement('input', { + key: 'i-'.concat(n), + name: i, + type: 'hidden', + value: e.getOptionValue(t) + }); + }) + : g.a.createElement('input', { + name: i, + type: 'hidden' + }); + return g.a.createElement('div', null, c); + } + var u = a[0] ? this.getOptionValue(a[0]) : ''; + return g.a.createElement('input', { + name: i, type: 'hidden', - value: c + value: u }); } - var u = - s.length > 0 - ? s.map(function(t, n) { - return o.a.createElement('input', { - key: 'i-' + n, - name: a, - type: 'hidden', - value: e.getOptionValue(t) - }); - }) - : o.a.createElement('input', { name: a, type: 'hidden' }); - return o.a.createElement('div', null, u); } - var l = s[0] ? this.getOptionValue(s[0]) : ''; - return o.a.createElement('input', { - name: a, - type: 'hidden', - value: l - }); - } - }), - (a.renderLiveRegion = function() { - return this.state.isFocused - ? o.a.createElement( - ye, - { 'aria-live': 'polite' }, - o.a.createElement( - 'p', - { id: 'aria-selection-event' }, - ' ', - this.state.ariaLiveSelection + }, + { + key: 'renderLiveRegion', + value: function() { + return this.state.isFocused + ? g.a.createElement( + _e, + { 'aria-live': 'polite' }, + g.a.createElement( + 'p', + { id: 'aria-selection-event' }, + ' ', + this.state.ariaLiveSelection + ), + g.a.createElement( + 'p', + { id: 'aria-context' }, + ' ', + this.constructAriaLiveMessage() + ) + ) + : null; + } + }, + { + key: 'render', + value: function() { + var e = this.components, + t = e.Control, + n = e.IndicatorsContainer, + r = e.SelectContainer, + i = e.ValueContainer, + a = this.props, + s = a.className, + c = a.id, + u = a.isDisabled, + l = a.menuIsOpen, + f = this.state.isFocused, + d = (this.commonProps = this.getCommonProps()); + return g.a.createElement( + r, + Object(o.a)({}, d, { + className: s, + innerProps: { id: c, onKeyDown: this.onKeyDown }, + isDisabled: u, + isFocused: f + }), + this.renderLiveRegion(), + g.a.createElement( + t, + Object(o.a)({}, d, { + innerRef: this.getControlRef, + innerProps: { + onMouseDown: this.onControlMouseDown, + onTouchEnd: this.onControlTouchEnd + }, + isDisabled: u, + isFocused: f, + menuIsOpen: l + }), + g.a.createElement( + i, + Object(o.a)({}, d, { isDisabled: u }), + this.renderPlaceholderOrValue(), + this.renderInput() + ), + g.a.createElement( + n, + Object(o.a)({}, d, { isDisabled: u }), + this.renderClearIndicator(), + this.renderLoadingIndicator(), + this.renderIndicatorSeparator(), + this.renderDropdownIndicator() + ) ), - o.a.createElement( - 'p', - { id: 'aria-context' }, - ' ', - this.constructAriaLiveMessage() - ) - ) - : null; - }), - (a.render = function() { - var e = this.components, - t = e.Control, - n = e.IndicatorsContainer, - r = e.SelectContainer, - i = e.ValueContainer, - a = this.props, - s = a.className, - c = a.id, - u = a.isDisabled, - l = a.menuIsOpen, - f = this.state.isFocused, - d = (this.commonProps = this.getCommonProps()); - return o.a.createElement( - r, - He({}, d, { - className: s, - innerProps: { id: c, onKeyDown: this.onKeyDown }, - isDisabled: u, - isFocused: f - }), - this.renderLiveRegion(), - o.a.createElement( - t, - He({}, d, { - innerRef: this.getControlRef, - innerProps: { - onMouseDown: this.onControlMouseDown, - onTouchEnd: this.onControlTouchEnd - }, - isDisabled: u, - isFocused: f, - menuIsOpen: l - }), - o.a.createElement( - i, - He({}, d, { isDisabled: u }), - this.renderPlaceholderOrValue(), - this.renderInput() - ), - o.a.createElement( - n, - He({}, d, { isDisabled: u }), - this.renderClearIndicator(), - this.renderLoadingIndicator(), - this.renderIndicatorSeparator(), - this.renderDropdownIndicator() - ) - ), - this.renderMenu(), - this.renderFormField() - ); - }), - r + this.renderMenu(), + this.renderFormField() + ); + } + } + ]), + t ); - })(r.Component); - function Xe() { - return (Xe = - Object.assign || - function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }).apply(this, arguments); - } - Ue.defaultProps = We; - var Ge = { + })(h.Component); + Object(p.a)(We, 'defaultProps', He); + var Ve = { defaultInputValue: '', defaultMenuIsOpen: !1, defaultValue: null }, - Ke = n(81); - var $e, - Qe, - Je, - Ze = (function(e) { - var t, n; - function r(t) { + Ue = n(97); + n.d(t, 'NonceProvider', function() { + return $e; + }), + n.d(t, 'components', function() { + return de; + }), + n.d(t, 'createFilter', function() { + return ye; + }), + n.d(t, 'defaultTheme', function() { + return Be; + }), + n.d(t, 'mergeStyles', function() { + return qe; + }); + var Xe, + Ge, + Ke, + $e = (function(e) { + function t(e) { var n; return ( - ((n = e.call(this, t) || this).createEmotionCache = function(e) { - return Object(Ke.a)({ nonce: e }); - }), - (n.createEmotionCache = Object(i.a)(n.createEmotionCache)), + Object(s.a)(this, t), + (n = Object(u.a)(this, Object(l.a)(t).call(this, e))), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'createEmotionCache', + function(e) { + return Object(Ue.a)({ nonce: e }); + } + ), + (n.createEmotionCache = Object(m.a)(n.createEmotionCache)), n ); } return ( - (n = e), - ((t = r).prototype = Object.create(n.prototype)), - (t.prototype.constructor = t), - (t.__proto__ = n), - (r.prototype.render = function() { - var e = this.createEmotionCache(this.props.nonce); - return o.a.createElement(a.a, { value: e }, this.props.children); - }), - r + Object(f.a)(t, e), + Object(c.a)(t, [ + { + key: 'render', + value: function() { + var e = this.createEmotionCache(this.props.nonce); + return g.a.createElement( + b.a, + { value: e }, + this.props.children + ); + } + } + ]), + t ); - })(r.Component), - et = - (($e = Ue), - (Je = Qe = (function(e) { - var t, n; - function r() { + })(h.Component), + Qe = + ((Xe = We), + (Ke = Ge = (function(e) { + function t() { + var e, n; + Object(s.a)(this, t); for ( - var t, n = arguments.length, r = new Array(n), o = 0; - o < n; - o++ + var r = arguments.length, o = new Array(r), i = 0; + i < r; + i++ ) - r[o] = arguments[o]; + o[i] = arguments[i]; return ( - ((t = - e.call.apply(e, [this].concat(r)) || this).select = void 0), - (t.state = { + (n = Object(u.a)( + this, + (e = Object(l.a)(t)).call.apply(e, [this].concat(o)) + )), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'select', void 0), + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'state', { inputValue: - void 0 !== t.props.inputValue - ? t.props.inputValue - : t.props.defaultInputValue, + void 0 !== n.props.inputValue + ? n.props.inputValue + : n.props.defaultInputValue, menuIsOpen: - void 0 !== t.props.menuIsOpen - ? t.props.menuIsOpen - : t.props.defaultMenuIsOpen, + void 0 !== n.props.menuIsOpen + ? n.props.menuIsOpen + : n.props.defaultMenuIsOpen, value: - void 0 !== t.props.value - ? t.props.value - : t.props.defaultValue + void 0 !== n.props.value + ? n.props.value + : n.props.defaultValue }), - (t.onChange = function(e, n) { - t.callProp('onChange', e, n), t.setState({ value: e }); - }), - (t.onInputChange = function(e, n) { - var r = t.callProp('onInputChange', e, n); - t.setState({ inputValue: void 0 !== r ? r : e }); - }), - (t.onMenuOpen = function() { - t.callProp('onMenuOpen'), t.setState({ menuIsOpen: !0 }); - }), - (t.onMenuClose = function() { - t.callProp('onMenuClose'), t.setState({ menuIsOpen: !1 }); + Object(p.a)(Object(d.a)(Object(d.a)(n)), 'onChange', function( + e, + t + ) { + n.callProp('onChange', e, t), n.setState({ value: e }); }), - t + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'onInputChange', + function(e, t) { + var r = n.callProp('onInputChange', e, t); + n.setState({ inputValue: void 0 !== r ? r : e }); + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'onMenuOpen', + function() { + n.callProp('onMenuOpen'), n.setState({ menuIsOpen: !0 }); + } + ), + Object(p.a)( + Object(d.a)(Object(d.a)(n)), + 'onMenuClose', + function() { + n.callProp('onMenuClose'), n.setState({ menuIsOpen: !1 }); + } + ), + n ); } - (n = e), - ((t = r).prototype = Object.create(n.prototype)), - (t.prototype.constructor = t), - (t.__proto__ = n); - var i = r.prototype; return ( - (i.focus = function() { - this.select.focus(); - }), - (i.blur = function() { - this.select.blur(); - }), - (i.getProp = function(e) { - return void 0 !== this.props[e] ? this.props[e] : this.state[e]; - }), - (i.callProp = function(e) { - if ('function' == typeof this.props[e]) { - for ( - var t, - n = arguments.length, - r = new Array(n > 1 ? n - 1 : 0), - o = 1; - o < n; - o++ - ) - r[o - 1] = arguments[o]; - return (t = this.props)[e].apply(t, r); + Object(f.a)(t, e), + Object(c.a)(t, [ + { + key: 'focus', + value: function() { + this.select.focus(); + } + }, + { + key: 'blur', + value: function() { + this.select.blur(); + } + }, + { + key: 'getProp', + value: function(e) { + return void 0 !== this.props[e] + ? this.props[e] + : this.state[e]; + } + }, + { + key: 'callProp', + value: function(e) { + if ('function' == typeof this.props[e]) { + for ( + var t, + n = arguments.length, + r = new Array(n > 1 ? n - 1 : 0), + o = 1; + o < n; + o++ + ) + r[o - 1] = arguments[o]; + return (t = this.props)[e].apply(t, r); + } + } + }, + { + key: 'render', + value: function() { + var e = this, + t = this.props, + n = + (t.defaultInputValue, + t.defaultMenuIsOpen, + t.defaultValue, + Object(r.a)(t, [ + 'defaultInputValue', + 'defaultMenuIsOpen', + 'defaultValue' + ])); + return g.a.createElement( + Xe, + Object(o.a)({}, n, { + ref: function(t) { + e.select = t; + }, + inputValue: this.getProp('inputValue'), + menuIsOpen: this.getProp('menuIsOpen'), + onChange: this.onChange, + onInputChange: this.onInputChange, + onMenuClose: this.onMenuClose, + onMenuOpen: this.onMenuOpen, + value: this.getProp('value') + }) + ); + } } - }), - (i.render = function() { - var e = this, - t = this.props, - n = - (t.defaultInputValue, - t.defaultMenuIsOpen, - t.defaultValue, - (function(e, t) { - if (null == e) return {}; - var n, - r, - o = {}, - i = Object.keys(e); - for (r = 0; r < i.length; r++) - (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); - return o; - })(t, [ - 'defaultInputValue', - 'defaultMenuIsOpen', - 'defaultValue' - ])); - return o.a.createElement( - $e, - Xe({}, n, { - ref: function(t) { - e.select = t; - }, - inputValue: this.getProp('inputValue'), - menuIsOpen: this.getProp('menuIsOpen'), - onChange: this.onChange, - onInputChange: this.onInputChange, - onMenuClose: this.onMenuClose, - onMenuOpen: this.onMenuOpen, - value: this.getProp('value') - }) - ); - }), - r + ]), + t ); - })(r.Component)), - (Qe.defaultProps = Ge), - Je); - t.default = et; + })(h.Component)), + Object(p.a)(Ge, 'defaultProps', Ve), + Ke); + t.default = Qe; } ]); }); diff --git a/dist/viewer.min.js b/dist/viewer.min.js index 174ca0d..8419916 100644 --- a/dist/viewer.min.js +++ b/dist/viewer.min.js @@ -60,26 +60,44 @@ return Object.prototype.hasOwnProperty.call(t, e); }), (n.p = ''), - n((n.s = 438)) + n((n.s = 460)) ); })([ function(t, e, n) { 'use strict'; - t.exports = n(164); + t.exports = n(171); }, function(t, e, n) { - t.exports = n(168)(); + t.exports = n(175)(); + }, + function(t, e, n) { + 'use strict'; + function r() { + return (r = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); + } + return t; + }).apply(this, arguments); + } + n.d(e, 'a', function() { + return r; + }); }, function(t, e, n) { 'use strict'; Object.defineProperty(e, '__esModule', { value: !0 }), (e.ReactCSS = e.loop = e.handleActive = e.handleHover = e.hover = void 0); - var r = l(n(318)), - i = l(n(339)), - o = l(n(356)), - a = l(n(357)), - s = l(n(358)), - u = l(n(359)); + var r = l(n(340)), + i = l(n(361)), + o = l(n(378)), + a = l(n(379)), + s = l(n(380)), + u = l(n(381)); function l(t) { return t && t.__esModule ? t : { default: t }; } @@ -100,6 +118,410 @@ }); e.default = c; }, + function(t, e, n) { + 'use strict'; + (function(t) { + n.d(e, 'a', function() { + return y; + }); + var r = n(47), + i = n(1), + o = n.n(i), + a = n(0), + s = n.n(a); + function u(t) { + return (u = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function(t) { + return typeof t; + } + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t; + })(t); + } + function l(t, e, n) { + return ( + e in t + ? Object.defineProperty(t, e, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (t[e] = n), + t + ); + } + function c(t) { + for (var e = 1; e < arguments.length; e++) { + var n = null != arguments[e] ? arguments[e] : {}, + r = Object.keys(n); + 'function' == typeof Object.getOwnPropertySymbols && + (r = r.concat( + Object.getOwnPropertySymbols(n).filter(function(t) { + return Object.getOwnPropertyDescriptor(n, t).enumerable; + }) + )), + r.forEach(function(e) { + l(t, e, n[e]); + }); + } + return t; + } + function f(t, e) { + if (null == t) return {}; + var n, + r, + i = (function(t, e) { + if (null == t) return {}; + var n, + r, + i = {}, + o = Object.keys(t); + for (r = 0; r < o.length; r++) + (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); + return i; + })(t, e); + if (Object.getOwnPropertySymbols) { + var o = Object.getOwnPropertySymbols(t); + for (r = 0; r < o.length; r++) + (n = o[r]), + e.indexOf(n) >= 0 || + (Object.prototype.propertyIsEnumerable.call(t, n) && + (i[n] = t[n])); + } + return i; + } + function d(t) { + return ( + (function(t) { + if (Array.isArray(t)) { + for (var e = 0, n = new Array(t.length); e < t.length; e++) + n[e] = t[e]; + return n; + } + })(t) || + (function(t) { + if ( + Symbol.iterator in Object(t) || + '[object Arguments]' === Object.prototype.toString.call(t) + ) + return Array.from(t); + })(t) || + (function() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance' + ); + })() + ); + } + var h = + 'undefined' != typeof window + ? window + : void 0 !== t + ? t + : 'undefined' != typeof self + ? self + : {}; + var p = (function(t, e) { + return t((e = { exports: {} }), e.exports), e.exports; + })(function(t) { + !(function(e) { + var n = function(t, e, r) { + if (!u(e) || c(e) || f(e) || d(e) || s(e)) return e; + var i, + o = 0, + a = 0; + if (l(e)) + for (i = [], a = e.length; o < a; o++) i.push(n(t, e[o], r)); + else + for (var h in ((i = {}), e)) + Object.prototype.hasOwnProperty.call(e, h) && + (i[t(h, r)] = n(t, e[h], r)); + return i; + }, + r = function(t) { + return h(t) + ? t + : (t = t.replace(/[\-_\s]+(.)?/g, function(t, e) { + return e ? e.toUpperCase() : ''; + })) + .substr(0, 1) + .toLowerCase() + t.substr(1); + }, + i = function(t) { + var e = r(t); + return e.substr(0, 1).toUpperCase() + e.substr(1); + }, + o = function(t, e) { + return (function(t, e) { + var n = (e = e || {}).separator || '_', + r = e.split || /(?=[A-Z])/; + return t.split(r).join(n); + })(t, e).toLowerCase(); + }, + a = Object.prototype.toString, + s = function(t) { + return 'function' == typeof t; + }, + u = function(t) { + return t === Object(t); + }, + l = function(t) { + return '[object Array]' == a.call(t); + }, + c = function(t) { + return '[object Date]' == a.call(t); + }, + f = function(t) { + return '[object RegExp]' == a.call(t); + }, + d = function(t) { + return '[object Boolean]' == a.call(t); + }, + h = function(t) { + return (t -= 0) == t; + }, + p = function(t, e) { + var n = e && 'process' in e ? e.process : e; + return 'function' != typeof n + ? t + : function(e, r) { + return n(e, t, r); + }; + }, + g = { + camelize: r, + decamelize: o, + pascalize: i, + depascalize: o, + camelizeKeys: function(t, e) { + return n(p(r, e), t); + }, + decamelizeKeys: function(t, e) { + return n(p(o, e), t, e); + }, + pascalizeKeys: function(t, e) { + return n(p(i, e), t); + }, + depascalizeKeys: function() { + return this.decamelizeKeys.apply(this, arguments); + } + }; + t.exports ? (t.exports = g) : (e.humps = g); + })(h); + }); + var g = !1; + try { + g = !0; + } catch (t) {} + function m(t, e) { + return (Array.isArray(e) && e.length > 0) || (!Array.isArray(e) && e) + ? l({}, t, e) + : {}; + } + function v(t) { + return null === t + ? null + : 'object' === u(t) && t.prefix && t.iconName + ? t + : Array.isArray(t) && 2 === t.length + ? { prefix: t[0], iconName: t[1] } + : 'string' == typeof t + ? { prefix: 'fas', iconName: t } + : void 0; + } + function y(t) { + var e = t.icon, + n = t.mask, + i = t.symbol, + o = t.className, + a = t.title, + s = v(e), + u = m( + 'classes', + [].concat( + d( + (function(t) { + var e, + n = + (l( + (e = { + 'fa-spin': t.spin, + 'fa-pulse': t.pulse, + 'fa-fw': t.fixedWidth, + 'fa-inverse': t.inverse, + 'fa-border': t.border, + 'fa-li': t.listItem, + 'fa-flip-horizontal': + 'horizontal' === t.flip || 'both' === t.flip, + 'fa-flip-vertical': + 'vertical' === t.flip || 'both' === t.flip + }), + 'fa-'.concat(t.size), + null !== t.size + ), + l( + e, + 'fa-rotate-'.concat(t.rotation), + null !== t.rotation + ), + l(e, 'fa-pull-'.concat(t.pull), null !== t.pull), + e); + return Object.keys(n) + .map(function(t) { + return n[t] ? t : null; + }) + .filter(function(t) { + return t; + }); + })(t) + ), + d(o.split(' ')) + ) + ), + f = m( + 'transform', + 'string' == typeof t.transform + ? r.c.transform(t.transform) + : t.transform + ), + h = m('mask', v(n)), + p = Object(r.a)(s, c({}, u, f, h, { symbol: i, title: a })); + if (!p) + return ( + (function() { + var t; + !g && + console && + 'function' == typeof console.error && + (t = console).error.apply(t, arguments); + })('Could not find icon', s), + null + ); + var _ = p.abstract, + x = {}; + return ( + Object.keys(t).forEach(function(e) { + y.defaultProps.hasOwnProperty(e) || (x[e] = t[e]); + }), + b(_[0], x) + ); + } + (y.displayName = 'FontAwesomeIcon'), + (y.propTypes = { + border: o.a.bool, + className: o.a.string, + mask: o.a.oneOfType([o.a.object, o.a.array, o.a.string]), + fixedWidth: o.a.bool, + inverse: o.a.bool, + flip: o.a.oneOf(['horizontal', 'vertical', 'both']), + icon: o.a.oneOfType([o.a.object, o.a.array, o.a.string]), + listItem: o.a.bool, + pull: o.a.oneOf(['right', 'left']), + pulse: o.a.bool, + rotation: o.a.oneOf([90, 180, 270]), + size: o.a.oneOf([ + 'lg', + 'xs', + 'sm', + '1x', + '2x', + '3x', + '4x', + '5x', + '6x', + '7x', + '8x', + '9x', + '10x' + ]), + spin: o.a.bool, + symbol: o.a.oneOfType([o.a.bool, o.a.string]), + title: o.a.string, + transform: o.a.oneOfType([o.a.string, o.a.object]) + }), + (y.defaultProps = { + border: !1, + className: '', + mask: null, + fixedWidth: !1, + inverse: !1, + flip: null, + icon: null, + listItem: !1, + pull: null, + pulse: !1, + rotation: null, + size: null, + spin: !1, + symbol: !1, + title: '', + transform: null + }); + var b = function t(e, n) { + var r = + arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; + if ('string' == typeof n) return n; + var i = (n.children || []).map(function(n) { + return t(e, n); + }), + o = Object.keys(n.attributes || {}).reduce( + function(t, e) { + var r = n.attributes[e]; + switch (e) { + case 'class': + (t.attrs.className = r), delete n.attributes.class; + break; + case 'style': + t.attrs.style = r + .split(';') + .map(function(t) { + return t.trim(); + }) + .filter(function(t) { + return t; + }) + .reduce(function(t, e) { + var n, + r = e.indexOf(':'), + i = p.camelize(e.slice(0, r)), + o = e.slice(r + 1).trim(); + return ( + i.startsWith('webkit') + ? (t[ + ((n = i), + n.charAt(0).toUpperCase() + n.slice(1)) + ] = o) + : (t[i] = o), + t + ); + }, {}); + break; + default: + 0 === e.indexOf('aria-') || 0 === e.indexOf('data-') + ? (t.attrs[e.toLowerCase()] = r) + : (t.attrs[p.camelize(e)] = r); + } + return t; + }, + { attrs: {} } + ), + a = r.style, + s = void 0 === a ? {} : a, + u = f(r, ['style']); + return ( + (o.attrs.style = c({}, o.attrs.style, s)), + e.apply(void 0, [n.tag, c({}, o.attrs, u)].concat(d(i))) + ); + }.bind(null, s.a.createElement); + }.call(this, n(13))); + }, function(t, e, n) { 'use strict'; (function(t) { @@ -109,7 +531,7 @@ n.d(e, 'a', function() { return s; }); - var r = n(162), + var r = n(169), i = void 0 !== t ? t : {}, o = Object(r.a)(i), a = @@ -126,56 +548,56 @@ function(t, e, n) { 'use strict'; Object.defineProperty(e, '__esModule', { value: !0 }); - var r = n(360); + var r = n(382); Object.defineProperty(e, 'Alpha', { enumerable: !0, get: function() { return f(r).default; } }); - var i = n(81); + var i = n(85); Object.defineProperty(e, 'Checkboard', { enumerable: !0, get: function() { return f(i).default; } }); - var o = n(363); + var o = n(385); Object.defineProperty(e, 'EditableInput', { enumerable: !0, get: function() { return f(o).default; } }); - var a = n(364); + var a = n(386); Object.defineProperty(e, 'Hue', { enumerable: !0, get: function() { return f(a).default; } }); - var s = n(366); + var s = n(388); Object.defineProperty(e, 'Raised', { enumerable: !0, get: function() { return f(s).default; } }); - var u = n(367); + var u = n(389); Object.defineProperty(e, 'Saturation', { enumerable: !0, get: function() { return f(u).default; } }); - var l = n(146); + var l = n(153); Object.defineProperty(e, 'ColorWrap', { enumerable: !0, get: function() { return f(l).default; } }); - var c = n(375); + var c = n(397); function f(t) { return t && t.__esModule ? t : { default: t }; } @@ -201,7 +623,7 @@ } } })(), - (t.exports = n(165)); + (t.exports = n(172)); }, function(t, e) { t.exports = function(t, e, n) { @@ -218,143343 +640,142655 @@ ); }; }, - function(t, e) { - function n(e) { - return ( - (t.exports = n = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(t) { - return t.__proto__ || Object.getPrototypeOf(t); - }), - n(e) - ); - } - t.exports = n; - }, - function(t, e, n) { - var r = n(190), - i = n(221)(function(t, e, n) { - r(t, e, n); - }); - t.exports = i; - }, - function(t, e, n) { - var r = n(186), - i = n(187), - o = n(188), - a = n(189); - t.exports = function(t) { - return r(t) || i(t) || o(t) || a(); - }; - }, - function(t, e) { - var n = Array.isArray; - t.exports = n; - }, - function(t, e) { - t.exports = function(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - }; - }, - function(t, e, n) { - var r = n(75); - t.exports = function(t, e) { - return r(t, e); - }; - }, - function(t, e) { - var n; - n = (function() { - return this; - })(); - try { - n = n || new Function('return this')(); - } catch (t) { - 'object' == typeof window && (n = window); - } - t.exports = n; - }, - function(t, e) { - t.exports = function(t) { - var e = typeof t; - return null != t && ('object' == e || 'function' == e); - }; - }, - function(t, e) { - function n(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - t.exports = function(t, e, r) { - return e && n(t.prototype, e), r && n(t, r), t; - }; - }, - function(t, e, n) { - var r = n(232); - t.exports = function(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { value: t, writable: !0, configurable: !0 } - })), - e && r(t, e); - }; - }, - function(t, e, n) { - var r = n(233), - i = n(82); - t.exports = function(t, e) { - return !e || ('object' !== r(e) && 'function' != typeof e) ? i(t) : e; - }; - }, - function(t, e, n) { - var r = n(92), - i = 'object' == typeof self && self && self.Object === Object && self, - o = r || i || Function('return this')(); - t.exports = o; - }, function(t, e, n) { 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.red = e.getContrastingColor = e.isValidHex = e.toState = e.simpleCheckForValidColor = void 0); - var r = o(n(372)), - i = o(n(374)); - function o(t) { - return t && t.__esModule ? t : { default: t }; - } - e.simpleCheckForValidColor = function(t) { - var e = 0, - n = 0; - return ( - (0, r.default)(['r', 'g', 'b', 'a', 'h', 's', 'l', 'v'], function(r) { - if ( - t[r] && - ((e += 1), isNaN(t[r]) || (n += 1), 's' === r || 'l' === r) - ) { - /^\d+%$/.test(t[r]) && (n += 1); + var r, + i, + o, + a = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); } - }), - e === n && t - ); - }; - var a = (e.toState = function(t, e) { - var n = t.hex ? (0, i.default)(t.hex) : (0, i.default)(t), - r = n.toHsl(), - o = n.toHsv(), - a = n.toRgb(), - s = n.toHex(); - return ( - 0 === r.s && ((r.h = e || 0), (o.h = e || 0)), - { - hsl: r, - hex: '000000' === s && 0 === a.a ? 'transparent' : '#' + s, - rgb: a, - hsv: o, - oldHue: t.h || e || r.h, - source: t.source - } - ); - }); - (e.isValidHex = function(t) { - var e = '#' === String(t).charAt(0) ? 1 : 0; - return ( - t.length !== 4 + e && t.length < 7 + e && (0, i.default)(t).isValid() - ); - }), - (e.getContrastingColor = function(t) { - if (!t) return '#fff'; - var e = a(t); - return 'transparent' === e.hex - ? 'rgba(0,0,0,0.4)' - : (299 * e.rgb.r + 587 * e.rgb.g + 114 * e.rgb.b) / 1e3 >= 128 - ? '#000' - : '#fff'; - }), - (e.red = { - hsl: { a: 1, h: 0, l: 0.5, s: 1 }, - hex: '#ff0000', - rgb: { r: 255, g: 0, b: 0, a: 1 }, - hsv: { h: 0, s: 1, v: 1, a: 1 } - }); - e.default = e; - }, - function(t, e) { - t.exports = function(t) { - return null != t && 'object' == typeof t; - }; - }, - function(t, e, n) { - var r; - /*! - Copyright (c) 2017 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/ !(function() { - 'use strict'; - var n = {}.hasOwnProperty; - function i() { - for (var t = [], e = 0; e < arguments.length; e++) { - var r = arguments[e]; - if (r) { - var o = typeof r; - if ('string' === o || 'number' === o) t.push(r); - else if (Array.isArray(r) && r.length) { - var a = i.apply(null, r); - a && t.push(a); - } else if ('object' === o) - for (var s in r) n.call(r, s) && r[s] && t.push(s); + return t; + }, + s = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); } } - return t.join(' '); - } - t.exports - ? ((i.default = i), (t.exports = i)) - : void 0 === - (r = function() { - return i; - }.apply(e, [])) || (t.exports = r); - })(); - }, - function(t, e) { - function n() { - return ( - (t.exports = n = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }), - n.apply(this, arguments) - ); - } - t.exports = n; - }, - function(t, e, n) { - var r = n(137), - i = n(320), - o = n(337), - a = n(10); - t.exports = function(t, e) { - return (a(t) ? r : o)(t, i(e, 3)); - }; - }, - function(t, e, n) { - 'use strict'; - function r(t, e) { - if (t.length !== e.length) return !1; - for (var n = 0; n < t.length; n++) if (t[n] !== e[n]) return !1; - return !0; + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + u = w(n(0)), + l = w(n(1)), + c = w(n(24)), + f = w(n(196)), + d = w(n(197)), + h = w(n(198)), + p = w(n(199)), + g = w(n(200)), + m = w(n(201)), + v = w(n(202)), + y = w(n(203)), + b = n(204), + _ = w(n(205)), + x = w(n(206)); + function w(t) { + return t && t.__esModule ? t : { default: t }; } - e.a = function(t, e) { - var n; - void 0 === e && (e = r); - var i, - o = [], - a = !1; - return function() { - for (var r = [], s = 0; s < arguments.length; s++) - r[s] = arguments[s]; - return ( - (a && n === this && e(r, o)) || - ((i = t.apply(this, r)), (a = !0), (n = this), (o = r)), - i - ); - }; - }; - }, - function(t, e, n) { - var r = n(174), - i = n(179); - t.exports = function(t, e) { - var n = i(t, e); - return r(n) ? n : void 0; - }; - }, - function(t, e, n) { - var r = n(33), - i = n(175), - o = n(176), - a = r ? r.toStringTag : void 0; - t.exports = function(t) { - return null == t - ? void 0 === t - ? '[object Undefined]' - : '[object Null]' - : a && a in Object(t) - ? i(t) - : o(t); - }; - }, - function(t, e, n) { - var r = n(65), - i = n(67); - t.exports = function(t) { - return null != t && i(t.length) && !r(t); - }; - }, - function(t, e, n) { - (function(t, r) { - var i; - /** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ (function() { - var o = 'Expected a function', - a = '__lodash_placeholder__', - s = [ - ['ary', 128], - ['bind', 1], - ['bindKey', 2], - ['curry', 8], - ['curryRight', 16], - ['flip', 512], - ['partial', 32], - ['partialRight', 64], - ['rearg', 256] - ], - u = '[object Arguments]', - l = '[object Array]', - c = '[object Boolean]', - f = '[object Date]', - d = '[object Error]', - h = '[object Function]', - p = '[object GeneratorFunction]', - g = '[object Map]', - v = '[object Number]', - m = '[object Object]', - y = '[object RegExp]', - b = '[object Set]', - _ = '[object String]', - x = '[object Symbol]', - w = '[object WeakMap]', - S = '[object ArrayBuffer]', - E = '[object DataView]', - k = '[object Float32Array]', - A = '[object Float64Array]', - T = '[object Int8Array]', - C = '[object Int16Array]', - O = '[object Int32Array]', - P = '[object Uint8Array]', - M = '[object Uint16Array]', - L = '[object Uint32Array]', - D = /\b__p \+= '';/g, - j = /\b(__p \+=) '' \+/g, - R = /(__e\(.*?\)|\b__t\)) \+\n'';/g, - N = /&(?:amp|lt|gt|quot|#39);/g, - z = /[&<>"']/g, - I = RegExp(N.source), - F = RegExp(z.source), - V = /<%-([\s\S]+?)%>/g, - B = /<%([\s\S]+?)%>/g, - G = /<%=([\s\S]+?)%>/g, - H = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, - U = /^\w*$/, - q = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, - W = /[\\^$.*+?()[\]{}|]/g, - X = RegExp(W.source), - Y = /^\s+|\s+$/g, - $ = /^\s+/, - Q = /\s+$/, - K = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, - Z = /\{\n\/\* \[wrapped with (.+)\] \*/, - J = /,? & /, - tt = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, - et = /\\(\\)?/g, - nt = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, - rt = /\w*$/, - it = /^[-+]0x[0-9a-f]+$/i, - ot = /^0b[01]+$/i, - at = /^\[object .+?Constructor\]$/, - st = /^0o[0-7]+$/i, - ut = /^(?:0|[1-9]\d*)$/, - lt = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, - ct = /($^)/, - ft = /['\n\r\u2028\u2029\\]/g, - dt = '\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff', - ht = - '\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000', - pt = '[\\ud800-\\udfff]', - gt = '[' + ht + ']', - vt = '[' + dt + ']', - mt = '\\d+', - yt = '[\\u2700-\\u27bf]', - bt = '[a-z\\xdf-\\xf6\\xf8-\\xff]', - _t = - '[^\\ud800-\\udfff' + - ht + - mt + - '\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]', - xt = '\\ud83c[\\udffb-\\udfff]', - wt = '[^\\ud800-\\udfff]', - St = '(?:\\ud83c[\\udde6-\\uddff]){2}', - Et = '[\\ud800-\\udbff][\\udc00-\\udfff]', - kt = '[A-Z\\xc0-\\xd6\\xd8-\\xde]', - At = '(?:' + bt + '|' + _t + ')', - Tt = '(?:' + kt + '|' + _t + ')', - Ct = '(?:' + vt + '|' + xt + ')' + '?', - Ot = - '[\\ufe0e\\ufe0f]?' + - Ct + - ('(?:\\u200d(?:' + - [wt, St, Et].join('|') + - ')[\\ufe0e\\ufe0f]?' + - Ct + - ')*'), - Pt = '(?:' + [yt, St, Et].join('|') + ')' + Ot, - Mt = '(?:' + [wt + vt + '?', vt, St, Et, pt].join('|') + ')', - Lt = RegExp("['’]", 'g'), - Dt = RegExp(vt, 'g'), - jt = RegExp(xt + '(?=' + xt + ')|' + Mt + Ot, 'g'), - Rt = RegExp( - [ - kt + - '?' + - bt + - "+(?:['’](?:d|ll|m|re|s|t|ve))?(?=" + - [gt, kt, '$'].join('|') + - ')', - Tt + - "+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=" + - [gt, kt + At, '$'].join('|') + - ')', - kt + '?' + At + "+(?:['’](?:d|ll|m|re|s|t|ve))?", - kt + "+(?:['’](?:D|LL|M|RE|S|T|VE))?", - '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])', - '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])', - mt, - Pt - ].join('|'), - 'g' - ), - Nt = RegExp('[\\u200d\\ud800-\\udfff' + dt + '\\ufe0e\\ufe0f]'), - zt = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, - It = [ - 'Array', - 'Buffer', - 'DataView', - 'Date', - 'Error', - 'Float32Array', - 'Float64Array', - 'Function', - 'Int8Array', - 'Int16Array', - 'Int32Array', - 'Map', - 'Math', - 'Object', - 'Promise', - 'RegExp', - 'Set', - 'String', - 'Symbol', - 'TypeError', - 'Uint8Array', - 'Uint8ClampedArray', - 'Uint16Array', - 'Uint32Array', - 'WeakMap', - '_', - 'clearTimeout', - 'isFinite', - 'parseInt', - 'setTimeout' - ], - Ft = -1, - Vt = {}; - (Vt[k] = Vt[A] = Vt[T] = Vt[C] = Vt[O] = Vt[P] = Vt[ - '[object Uint8ClampedArray]' - ] = Vt[M] = Vt[L] = !0), - (Vt[u] = Vt[l] = Vt[S] = Vt[c] = Vt[E] = Vt[f] = Vt[d] = Vt[h] = Vt[ - g - ] = Vt[v] = Vt[m] = Vt[y] = Vt[b] = Vt[_] = Vt[w] = !1); - var Bt = {}; - (Bt[u] = Bt[l] = Bt[S] = Bt[E] = Bt[c] = Bt[f] = Bt[k] = Bt[A] = Bt[ - T - ] = Bt[C] = Bt[O] = Bt[g] = Bt[v] = Bt[m] = Bt[y] = Bt[b] = Bt[ - _ - ] = Bt[x] = Bt[P] = Bt['[object Uint8ClampedArray]'] = Bt[M] = Bt[ - L - ] = !0), - (Bt[d] = Bt[h] = Bt[w] = !1); - var Gt = { - '\\': '\\', - "'": "'", - '\n': 'n', - '\r': 'r', - '\u2028': 'u2028', - '\u2029': 'u2029' - }, - Ht = parseFloat, - Ut = parseInt, - qt = 'object' == typeof t && t && t.Object === Object && t, - Wt = - 'object' == typeof self && self && self.Object === Object && self, - Xt = qt || Wt || Function('return this')(), - Yt = e && !e.nodeType && e, - $t = Yt && 'object' == typeof r && r && !r.nodeType && r, - Qt = $t && $t.exports === Yt, - Kt = Qt && qt.process, - Zt = (function() { - try { - var t = $t && $t.require && $t.require('util').types; - return t || (Kt && Kt.binding && Kt.binding('util')); - } catch (t) {} - })(), - Jt = Zt && Zt.isArrayBuffer, - te = Zt && Zt.isDate, - ee = Zt && Zt.isMap, - ne = Zt && Zt.isRegExp, - re = Zt && Zt.isSet, - ie = Zt && Zt.isTypedArray; - function oe(t, e, n) { - switch (n.length) { - case 0: - return t.call(e); - case 1: - return t.call(e, n[0]); - case 2: - return t.call(e, n[0], n[1]); - case 3: - return t.call(e, n[0], n[1], n[2]); - } - return t.apply(e, n); - } - function ae(t, e, n, r) { - for (var i = -1, o = null == t ? 0 : t.length; ++i < o; ) { - var a = t[i]; - e(r, a, n(a), t); - } - return r; - } - function se(t, e) { - for ( - var n = -1, r = null == t ? 0 : t.length; - ++n < r && !1 !== e(t[n], n, t); - - ); - return t; - } - function ue(t, e) { - for ( - var n = null == t ? 0 : t.length; - n-- && !1 !== e(t[n], n, t); - - ); - return t; - } - function le(t, e) { - for (var n = -1, r = null == t ? 0 : t.length; ++n < r; ) - if (!e(t[n], n, t)) return !1; - return !0; - } - function ce(t, e) { - for ( - var n = -1, r = null == t ? 0 : t.length, i = 0, o = []; - ++n < r; - - ) { - var a = t[n]; - e(a, n, t) && (o[i++] = a); - } - return o; - } - function fe(t, e) { - return !!(null == t ? 0 : t.length) && xe(t, e, 0) > -1; - } - function de(t, e, n) { - for (var r = -1, i = null == t ? 0 : t.length; ++r < i; ) - if (n(e, t[r])) return !0; - return !1; - } - function he(t, e) { - for ( - var n = -1, r = null == t ? 0 : t.length, i = Array(r); - ++n < r; - - ) - i[n] = e(t[n], n, t); - return i; - } - function pe(t, e) { - for (var n = -1, r = e.length, i = t.length; ++n < r; ) - t[i + n] = e[n]; - return t; - } - function ge(t, e, n, r) { - var i = -1, - o = null == t ? 0 : t.length; - for (r && o && (n = t[++i]); ++i < o; ) n = e(n, t[i], i, t); - return n; - } - function ve(t, e, n, r) { - var i = null == t ? 0 : t.length; - for (r && i && (n = t[--i]); i--; ) n = e(n, t[i], i, t); - return n; - } - function me(t, e) { - for (var n = -1, r = null == t ? 0 : t.length; ++n < r; ) - if (e(t[n], n, t)) return !0; - return !1; - } - var ye = ke('length'); - function be(t, e, n) { - var r; - return ( - n(t, function(t, n, i) { - if (e(t, n, i)) return (r = n), !1; - }), - r - ); - } - function _e(t, e, n, r) { - for (var i = t.length, o = n + (r ? 1 : -1); r ? o-- : ++o < i; ) - if (e(t[o], o, t)) return o; - return -1; - } - function xe(t, e, n) { - return e == e - ? (function(t, e, n) { - var r = n - 1, - i = t.length; - for (; ++r < i; ) if (t[r] === e) return r; - return -1; - })(t, e, n) - : _e(t, Se, n); - } - function we(t, e, n, r) { - for (var i = n - 1, o = t.length; ++i < o; ) - if (r(t[i], e)) return i; - return -1; - } - function Se(t) { - return t != t; - } - function Ee(t, e) { - var n = null == t ? 0 : t.length; - return n ? Ce(t, e) / n : NaN; - } - function ke(t) { - return function(e) { - return null == e ? void 0 : e[t]; - }; - } - function Ae(t) { - return function(e) { - return null == t ? void 0 : t[e]; - }; - } - function Te(t, e, n, r, i) { - return ( - i(t, function(t, i, o) { - n = r ? ((r = !1), t) : e(n, t, i, o); - }), - n - ); - } - function Ce(t, e) { - for (var n, r = -1, i = t.length; ++r < i; ) { - var o = e(t[r]); - void 0 !== o && (n = void 0 === n ? o : n + o); - } - return n; - } - function Oe(t, e) { - for (var n = -1, r = Array(t); ++n < t; ) r[n] = e(n); - return r; - } - function Pe(t) { - return function(e) { - return t(e); - }; - } - function Me(t, e) { - return he(e, function(e) { - return t[e]; - }); - } - function Le(t, e) { - return t.has(e); - } - function De(t, e) { - for (var n = -1, r = t.length; ++n < r && xe(e, t[n], 0) > -1; ); - return n; - } - function je(t, e) { - for (var n = t.length; n-- && xe(e, t[n], 0) > -1; ); - return n; - } - function Re(t, e) { - for (var n = t.length, r = 0; n--; ) t[n] === e && ++r; - return r; - } - var Ne = Ae({ - À: 'A', - Á: 'A', - Â: 'A', - Ã: 'A', - Ä: 'A', - Å: 'A', - à: 'a', - á: 'a', - â: 'a', - ã: 'a', - ä: 'a', - å: 'a', - Ç: 'C', - ç: 'c', - Ð: 'D', - ð: 'd', - È: 'E', - É: 'E', - Ê: 'E', - Ë: 'E', - è: 'e', - é: 'e', - ê: 'e', - ë: 'e', - Ì: 'I', - Í: 'I', - Î: 'I', - Ï: 'I', - ì: 'i', - í: 'i', - î: 'i', - ï: 'i', - Ñ: 'N', - ñ: 'n', - Ò: 'O', - Ó: 'O', - Ô: 'O', - Õ: 'O', - Ö: 'O', - Ø: 'O', - ò: 'o', - ó: 'o', - ô: 'o', - õ: 'o', - ö: 'o', - ø: 'o', - Ù: 'U', - Ú: 'U', - Û: 'U', - Ü: 'U', - ù: 'u', - ú: 'u', - û: 'u', - ü: 'u', - Ý: 'Y', - ý: 'y', - ÿ: 'y', - Æ: 'Ae', - æ: 'ae', - Þ: 'Th', - þ: 'th', - ß: 'ss', - Ā: 'A', - Ă: 'A', - Ą: 'A', - ā: 'a', - ă: 'a', - ą: 'a', - Ć: 'C', - Ĉ: 'C', - Ċ: 'C', - Č: 'C', - ć: 'c', - ĉ: 'c', - ċ: 'c', - č: 'c', - Ď: 'D', - Đ: 'D', - ď: 'd', - đ: 'd', - Ē: 'E', - Ĕ: 'E', - Ė: 'E', - Ę: 'E', - Ě: 'E', - ē: 'e', - ĕ: 'e', - ė: 'e', - ę: 'e', - ě: 'e', - Ĝ: 'G', - Ğ: 'G', - Ġ: 'G', - Ģ: 'G', - ĝ: 'g', - ğ: 'g', - ġ: 'g', - ģ: 'g', - Ĥ: 'H', - Ħ: 'H', - ĥ: 'h', - ħ: 'h', - Ĩ: 'I', - Ī: 'I', - Ĭ: 'I', - Į: 'I', - İ: 'I', - ĩ: 'i', - ī: 'i', - ĭ: 'i', - į: 'i', - ı: 'i', - Ĵ: 'J', - ĵ: 'j', - Ķ: 'K', - ķ: 'k', - ĸ: 'k', - Ĺ: 'L', - Ļ: 'L', - Ľ: 'L', - Ŀ: 'L', - Ł: 'L', - ĺ: 'l', - ļ: 'l', - ľ: 'l', - ŀ: 'l', - ł: 'l', - Ń: 'N', - Ņ: 'N', - Ň: 'N', - Ŋ: 'N', - ń: 'n', - ņ: 'n', - ň: 'n', - ŋ: 'n', - Ō: 'O', - Ŏ: 'O', - Ő: 'O', - ō: 'o', - ŏ: 'o', - ő: 'o', - Ŕ: 'R', - Ŗ: 'R', - Ř: 'R', - ŕ: 'r', - ŗ: 'r', - ř: 'r', - Ś: 'S', - Ŝ: 'S', - Ş: 'S', - Š: 'S', - ś: 's', - ŝ: 's', - ş: 's', - š: 's', - Ţ: 'T', - Ť: 'T', - Ŧ: 'T', - ţ: 't', - ť: 't', - ŧ: 't', - Ũ: 'U', - Ū: 'U', - Ŭ: 'U', - Ů: 'U', - Ű: 'U', - Ų: 'U', - ũ: 'u', - ū: 'u', - ŭ: 'u', - ů: 'u', - ű: 'u', - ų: 'u', - Ŵ: 'W', - ŵ: 'w', - Ŷ: 'Y', - ŷ: 'y', - Ÿ: 'Y', - Ź: 'Z', - Ż: 'Z', - Ž: 'Z', - ź: 'z', - ż: 'z', - ž: 'z', - IJ: 'IJ', - ij: 'ij', - Œ: 'Oe', - œ: 'oe', - ʼn: "'n", - ſ: 's' - }), - ze = Ae({ - '&': '&', - '<': '<', - '>': '>', - '"': '"', - "'": ''' - }); - function Ie(t) { - return '\\' + Gt[t]; - } - function Fe(t) { - return Nt.test(t); - } - function Ve(t) { - var e = -1, - n = Array(t.size); - return ( - t.forEach(function(t, r) { - n[++e] = [r, t]; - }), - n - ); - } - function Be(t, e) { - return function(n) { - return t(e(n)); - }; - } - function Ge(t, e) { - for (var n = -1, r = t.length, i = 0, o = []; ++n < r; ) { - var s = t[n]; - (s !== e && s !== a) || ((t[n] = a), (o[i++] = n)); - } - return o; - } - function He(t) { - var e = -1, - n = Array(t.size); - return ( - t.forEach(function(t) { - n[++e] = t; - }), - n - ); - } - function Ue(t) { - var e = -1, - n = Array(t.size); - return ( - t.forEach(function(t) { - n[++e] = [t, t]; - }), - n - ); - } - function qe(t) { - return Fe(t) - ? (function(t) { - var e = (jt.lastIndex = 0); - for (; jt.test(t); ) ++e; - return e; - })(t) - : ye(t); - } - function We(t) { - return Fe(t) - ? (function(t) { - return t.match(jt) || []; - })(t) - : (function(t) { - return t.split(''); - })(t); - } - var Xe = Ae({ - '&': '&', - '<': '<', - '>': '>', - '"': '"', - ''': "'" - }); - var Ye = (function t(e) { - var n, - r = (e = - null == e ? Xt : Ye.defaults(Xt.Object(), e, Ye.pick(Xt, It))) - .Array, - i = e.Date, - dt = e.Error, - ht = e.Function, - pt = e.Math, - gt = e.Object, - vt = e.RegExp, - mt = e.String, - yt = e.TypeError, - bt = r.prototype, - _t = ht.prototype, - xt = gt.prototype, - wt = e['__core-js_shared__'], - St = _t.toString, - Et = xt.hasOwnProperty, - kt = 0, - At = (n = /[^.]+$/.exec( - (wt && wt.keys && wt.keys.IE_PROTO) || '' - )) - ? 'Symbol(src)_1.' + n - : '', - Tt = xt.toString, - Ct = St.call(gt), - Ot = Xt._, - Pt = vt( - '^' + - St.call(Et) - .replace(W, '\\$&') - .replace( - /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, - '$1.*?' - ) + - '$' - ), - Mt = Qt ? e.Buffer : void 0, - jt = e.Symbol, - Nt = e.Uint8Array, - Gt = Mt ? Mt.allocUnsafe : void 0, - qt = Be(gt.getPrototypeOf, gt), - Wt = gt.create, - Yt = xt.propertyIsEnumerable, - $t = bt.splice, - Kt = jt ? jt.isConcatSpreadable : void 0, - Zt = jt ? jt.iterator : void 0, - ye = jt ? jt.toStringTag : void 0, - Ae = (function() { - try { - var t = Ji(gt, 'defineProperty'); - return t({}, '', {}), t; - } catch (t) {} - })(), - $e = e.clearTimeout !== Xt.clearTimeout && e.clearTimeout, - Qe = i && i.now !== Xt.Date.now && i.now, - Ke = e.setTimeout !== Xt.setTimeout && e.setTimeout, - Ze = pt.ceil, - Je = pt.floor, - tn = gt.getOwnPropertySymbols, - en = Mt ? Mt.isBuffer : void 0, - nn = e.isFinite, - rn = bt.join, - on = Be(gt.keys, gt), - an = pt.max, - sn = pt.min, - un = i.now, - ln = e.parseInt, - cn = pt.random, - fn = bt.reverse, - dn = Ji(e, 'DataView'), - hn = Ji(e, 'Map'), - pn = Ji(e, 'Promise'), - gn = Ji(e, 'Set'), - vn = Ji(e, 'WeakMap'), - mn = Ji(gt, 'create'), - yn = vn && new vn(), - bn = {}, - _n = To(dn), - xn = To(hn), - wn = To(pn), - Sn = To(gn), - En = To(vn), - kn = jt ? jt.prototype : void 0, - An = kn ? kn.valueOf : void 0, - Tn = kn ? kn.toString : void 0; - function Cn(t) { - if (Ua(t) && !Da(t) && !(t instanceof Ln)) { - if (t instanceof Mn) return t; - if (Et.call(t, '__wrapped__')) return Co(t); - } - return new Mn(t); - } - var On = (function() { - function t() {} - return function(e) { - if (!Ha(e)) return {}; - if (Wt) return Wt(e); - t.prototype = e; - var n = new t(); - return (t.prototype = void 0), n; - }; - })(); - function Pn() {} - function Mn(t, e) { - (this.__wrapped__ = t), - (this.__actions__ = []), - (this.__chain__ = !!e), - (this.__index__ = 0), - (this.__values__ = void 0); - } - function Ln(t) { - (this.__wrapped__ = t), - (this.__actions__ = []), - (this.__dir__ = 1), - (this.__filtered__ = !1), - (this.__iteratees__ = []), - (this.__takeCount__ = 4294967295), - (this.__views__ = []); - } - function Dn(t) { - var e = -1, - n = null == t ? 0 : t.length; - for (this.clear(); ++e < n; ) { - var r = t[e]; - this.set(r[0], r[1]); - } - } - function jn(t) { - var e = -1, - n = null == t ? 0 : t.length; - for (this.clear(); ++e < n; ) { - var r = t[e]; - this.set(r[0], r[1]); - } - } - function Rn(t) { - var e = -1, - n = null == t ? 0 : t.length; - for (this.clear(); ++e < n; ) { - var r = t[e]; - this.set(r[0], r[1]); - } - } - function Nn(t) { - var e = -1, - n = null == t ? 0 : t.length; - for (this.__data__ = new Rn(); ++e < n; ) this.add(t[e]); - } - function zn(t) { - var e = (this.__data__ = new jn(t)); - this.size = e.size; - } - function In(t, e) { - var n = Da(t), - r = !n && La(t), - i = !n && !r && za(t), - o = !n && !r && !i && Za(t), - a = n || r || i || o, - s = a ? Oe(t.length, mt) : [], - u = s.length; - for (var l in t) - (!e && !Et.call(t, l)) || - (a && - ('length' == l || - (i && ('offset' == l || 'parent' == l)) || - (o && - ('buffer' == l || - 'byteLength' == l || - 'byteOffset' == l)) || - ao(l, u))) || - s.push(l); - return s; - } - function Fn(t) { - var e = t.length; - return e ? t[Nr(0, e - 1)] : void 0; - } - function Vn(t, e) { - return Eo(mi(t), $n(e, 0, t.length)); - } - function Bn(t) { - return Eo(mi(t)); - } - function Gn(t, e, n) { - ((void 0 !== n && !Oa(t[e], n)) || (void 0 === n && !(e in t))) && - Xn(t, e, n); - } - function Hn(t, e, n) { - var r = t[e]; - (Et.call(t, e) && Oa(r, n) && (void 0 !== n || e in t)) || - Xn(t, e, n); - } - function Un(t, e) { - for (var n = t.length; n--; ) if (Oa(t[n][0], e)) return n; - return -1; - } - function qn(t, e, n, r) { - return ( - tr(t, function(t, i, o) { - e(r, t, n(t), o); - }), - r - ); - } - function Wn(t, e) { - return t && yi(e, _s(e), t); - } - function Xn(t, e, n) { - '__proto__' == e && Ae - ? Ae(t, e, { - configurable: !0, - enumerable: !0, - value: n, - writable: !0 - }) - : (t[e] = n); - } - function Yn(t, e) { - for (var n = -1, i = e.length, o = r(i), a = null == t; ++n < i; ) - o[n] = a ? void 0 : gs(t, e[n]); - return o; - } - function $n(t, e, n) { - return ( - t == t && - (void 0 !== n && (t = t <= n ? t : n), - void 0 !== e && (t = t >= e ? t : e)), - t - ); - } - function Qn(t, e, n, r, i, o) { - var a, - s = 1 & e, - l = 2 & e, - d = 4 & e; - if ((n && (a = i ? n(t, r, i, o) : n(t)), void 0 !== a)) return a; - if (!Ha(t)) return t; - var w = Da(t); - if (w) { - if ( - ((a = (function(t) { - var e = t.length, - n = new t.constructor(e); - e && - 'string' == typeof t[0] && - Et.call(t, 'index') && - ((n.index = t.index), (n.input = t.input)); - return n; - })(t)), - !s) - ) - return mi(t, a); - } else { - var D = no(t), - j = D == h || D == p; - if (za(t)) return fi(t, s); - if (D == m || D == u || (j && !i)) { - if (((a = l || j ? {} : io(t)), !s)) - return l - ? (function(t, e) { - return yi(t, eo(t), e); - })( - t, - (function(t, e) { - return t && yi(e, xs(e), t); - })(a, t) - ) - : (function(t, e) { - return yi(t, to(t), e); - })(t, Wn(a, t)); - } else { - if (!Bt[D]) return i ? t : {}; - a = (function(t, e, n) { - var r = t.constructor; - switch (e) { - case S: - return di(t); - case c: - case f: - return new r(+t); - case E: - return (function(t, e) { - var n = e ? di(t.buffer) : t.buffer; - return new t.constructor( - n, - t.byteOffset, - t.byteLength - ); - })(t, n); - case k: - case A: - case T: - case C: - case O: - case P: - case '[object Uint8ClampedArray]': - case M: - case L: - return hi(t, n); - case g: - return new r(); - case v: - case _: - return new r(t); - case y: - return (function(t) { - var e = new t.constructor(t.source, rt.exec(t)); - return (e.lastIndex = t.lastIndex), e; - })(t); - case b: - return new r(); - case x: - return (i = t), An ? gt(An.call(i)) : {}; - } - var i; - })(t, D, s); - } - } - o || (o = new zn()); - var R = o.get(t); - if (R) return R; - o.set(t, a), - $a(t) - ? t.forEach(function(r) { - a.add(Qn(r, e, n, r, t, o)); - }) - : qa(t) && - t.forEach(function(r, i) { - a.set(i, Qn(r, e, n, i, t, o)); - }); - var N = w ? void 0 : (d ? (l ? Wi : qi) : l ? xs : _s)(t); - return ( - se(N || t, function(r, i) { - N && (r = t[(i = r)]), Hn(a, i, Qn(r, e, n, i, t, o)); - }), - a - ); - } - function Kn(t, e, n) { - var r = n.length; - if (null == t) return !r; - for (t = gt(t); r--; ) { - var i = n[r], - o = e[i], - a = t[i]; - if ((void 0 === a && !(i in t)) || !o(a)) return !1; - } - return !0; - } - function Zn(t, e, n) { - if ('function' != typeof t) throw new yt(o); - return _o(function() { - t.apply(void 0, n); - }, e); - } - function Jn(t, e, n, r) { - var i = -1, - o = fe, - a = !0, - s = t.length, - u = [], - l = e.length; - if (!s) return u; - n && (e = he(e, Pe(n))), - r - ? ((o = de), (a = !1)) - : e.length >= 200 && ((o = Le), (a = !1), (e = new Nn(e))); - t: for (; ++i < s; ) { - var c = t[i], - f = null == n ? c : n(c); - if (((c = r || 0 !== c ? c : 0), a && f == f)) { - for (var d = l; d--; ) if (e[d] === f) continue t; - u.push(c); - } else o(e, f, r) || u.push(c); - } - return u; - } - (Cn.templateSettings = { - escape: V, - evaluate: B, - interpolate: G, - variable: '', - imports: { _: Cn } - }), - (Cn.prototype = Pn.prototype), - (Cn.prototype.constructor = Cn), - (Mn.prototype = On(Pn.prototype)), - (Mn.prototype.constructor = Mn), - (Ln.prototype = On(Pn.prototype)), - (Ln.prototype.constructor = Ln), - (Dn.prototype.clear = function() { - (this.__data__ = mn ? mn(null) : {}), (this.size = 0); - }), - (Dn.prototype.delete = function(t) { - var e = this.has(t) && delete this.__data__[t]; - return (this.size -= e ? 1 : 0), e; - }), - (Dn.prototype.get = function(t) { - var e = this.__data__; - if (mn) { - var n = e[t]; - return '__lodash_hash_undefined__' === n ? void 0 : n; - } - return Et.call(e, t) ? e[t] : void 0; - }), - (Dn.prototype.has = function(t) { - var e = this.__data__; - return mn ? void 0 !== e[t] : Et.call(e, t); - }), - (Dn.prototype.set = function(t, e) { - var n = this.__data__; - return ( - (this.size += this.has(t) ? 0 : 1), - (n[t] = mn && void 0 === e ? '__lodash_hash_undefined__' : e), - this - ); - }), - (jn.prototype.clear = function() { - (this.__data__ = []), (this.size = 0); - }), - (jn.prototype.delete = function(t) { - var e = this.__data__, - n = Un(e, t); - return ( - !(n < 0) && - (n == e.length - 1 ? e.pop() : $t.call(e, n, 1), - --this.size, - !0) - ); - }), - (jn.prototype.get = function(t) { - var e = this.__data__, - n = Un(e, t); - return n < 0 ? void 0 : e[n][1]; - }), - (jn.prototype.has = function(t) { - return Un(this.__data__, t) > -1; - }), - (jn.prototype.set = function(t, e) { - var n = this.__data__, - r = Un(n, t); - return ( - r < 0 ? (++this.size, n.push([t, e])) : (n[r][1] = e), this - ); - }), - (Rn.prototype.clear = function() { - (this.size = 0), - (this.__data__ = { - hash: new Dn(), - map: new (hn || jn)(), - string: new Dn() - }); - }), - (Rn.prototype.delete = function(t) { - var e = Ki(this, t).delete(t); - return (this.size -= e ? 1 : 0), e; - }), - (Rn.prototype.get = function(t) { - return Ki(this, t).get(t); - }), - (Rn.prototype.has = function(t) { - return Ki(this, t).has(t); - }), - (Rn.prototype.set = function(t, e) { - var n = Ki(this, t), - r = n.size; - return n.set(t, e), (this.size += n.size == r ? 0 : 1), this; - }), - (Nn.prototype.add = Nn.prototype.push = function(t) { - return this.__data__.set(t, '__lodash_hash_undefined__'), this; - }), - (Nn.prototype.has = function(t) { - return this.__data__.has(t); - }), - (zn.prototype.clear = function() { - (this.__data__ = new jn()), (this.size = 0); - }), - (zn.prototype.delete = function(t) { - var e = this.__data__, - n = e.delete(t); - return (this.size = e.size), n; - }), - (zn.prototype.get = function(t) { - return this.__data__.get(t); - }), - (zn.prototype.has = function(t) { - return this.__data__.has(t); - }), - (zn.prototype.set = function(t, e) { - var n = this.__data__; - if (n instanceof jn) { - var r = n.__data__; - if (!hn || r.length < 199) - return r.push([t, e]), (this.size = ++n.size), this; - n = this.__data__ = new Rn(r); - } - return n.set(t, e), (this.size = n.size), this; - }); - var tr = xi(ur), - er = xi(lr, !0); - function nr(t, e) { - var n = !0; - return ( - tr(t, function(t, r, i) { - return (n = !!e(t, r, i)); - }), - n - ); - } - function rr(t, e, n) { - for (var r = -1, i = t.length; ++r < i; ) { - var o = t[r], - a = e(o); - if (null != a && (void 0 === s ? a == a && !Ka(a) : n(a, s))) - var s = a, - u = o; - } - return u; - } - function ir(t, e) { - var n = []; - return ( - tr(t, function(t, r, i) { - e(t, r, i) && n.push(t); - }), - n - ); - } - function or(t, e, n, r, i) { - var o = -1, - a = t.length; - for (n || (n = oo), i || (i = []); ++o < a; ) { - var s = t[o]; - e > 0 && n(s) - ? e > 1 - ? or(s, e - 1, n, r, i) - : pe(i, s) - : r || (i[i.length] = s); - } - return i; - } - var ar = wi(), - sr = wi(!0); - function ur(t, e) { - return t && ar(t, e, _s); - } - function lr(t, e) { - return t && sr(t, e, _s); - } - function cr(t, e) { - return ce(e, function(e) { - return Va(t[e]); - }); - } - function fr(t, e) { - for (var n = 0, r = (e = si(e, t)).length; null != t && n < r; ) - t = t[Ao(e[n++])]; - return n && n == r ? t : void 0; - } - function dr(t, e, n) { - var r = e(t); - return Da(t) ? r : pe(r, n(t)); - } - function hr(t) { - return null == t - ? void 0 === t - ? '[object Undefined]' - : '[object Null]' - : ye && ye in gt(t) - ? (function(t) { - var e = Et.call(t, ye), - n = t[ye]; - try { - t[ye] = void 0; - var r = !0; - } catch (t) {} - var i = Tt.call(t); - r && (e ? (t[ye] = n) : delete t[ye]); - return i; - })(t) - : (function(t) { - return Tt.call(t); - })(t); - } - function pr(t, e) { - return t > e; - } - function gr(t, e) { - return null != t && Et.call(t, e); - } - function vr(t, e) { - return null != t && e in gt(t); - } - function mr(t, e, n) { - for ( - var i = n ? de : fe, - o = t[0].length, - a = t.length, - s = a, - u = r(a), - l = 1 / 0, - c = []; - s--; - - ) { - var f = t[s]; - s && e && (f = he(f, Pe(e))), - (l = sn(f.length, l)), - (u[s] = - !n && (e || (o >= 120 && f.length >= 120)) - ? new Nn(s && f) - : void 0); - } - f = t[0]; - var d = -1, - h = u[0]; - t: for (; ++d < o && c.length < l; ) { - var p = f[d], - g = e ? e(p) : p; - if ( - ((p = n || 0 !== p ? p : 0), !(h ? Le(h, g) : i(c, g, n))) - ) { - for (s = a; --s; ) { - var v = u[s]; - if (!(v ? Le(v, g) : i(t[s], g, n))) continue t; - } - h && h.push(g), c.push(p); - } - } - return c; - } - function yr(t, e, n) { - var r = null == (t = vo(t, (e = si(e, t)))) ? t : t[Ao(Fo(e))]; - return null == r ? void 0 : oe(r, t, n); - } - function br(t) { - return Ua(t) && hr(t) == u; - } - function _r(t, e, n, r, i) { - return ( - t === e || - (null == t || null == e || (!Ua(t) && !Ua(e)) - ? t != t && e != e - : (function(t, e, n, r, i, o) { - var a = Da(t), - s = Da(e), - h = a ? l : no(t), - p = s ? l : no(e), - w = (h = h == u ? m : h) == m, - k = (p = p == u ? m : p) == m, - A = h == p; - if (A && za(t)) { - if (!za(e)) return !1; - (a = !0), (w = !1); - } - if (A && !w) - return ( - o || (o = new zn()), - a || Za(t) - ? Hi(t, e, n, r, i, o) - : (function(t, e, n, r, i, o, a) { - switch (n) { - case E: - if ( - t.byteLength != e.byteLength || - t.byteOffset != e.byteOffset - ) - return !1; - (t = t.buffer), (e = e.buffer); - case S: - return !( - t.byteLength != e.byteLength || - !o(new Nt(t), new Nt(e)) - ); - case c: - case f: - case v: - return Oa(+t, +e); - case d: - return ( - t.name == e.name && t.message == e.message - ); - case y: - case _: - return t == e + ''; - case g: - var s = Ve; - case b: - var u = 1 & r; - if ((s || (s = He), t.size != e.size && !u)) - return !1; - var l = a.get(t); - if (l) return l == e; - (r |= 2), a.set(t, e); - var h = Hi(s(t), s(e), r, i, o, a); - return a.delete(t), h; - case x: - if (An) return An.call(t) == An.call(e); - } - return !1; - })(t, e, h, n, r, i, o) - ); - if (!(1 & n)) { - var T = w && Et.call(t, '__wrapped__'), - C = k && Et.call(e, '__wrapped__'); - if (T || C) { - var O = T ? t.value() : t, - P = C ? e.value() : e; - return o || (o = new zn()), i(O, P, n, r, o); - } - } - if (!A) return !1; - return ( - o || (o = new zn()), - (function(t, e, n, r, i, o) { - var a = 1 & n, - s = qi(t), - u = s.length, - l = qi(e).length; - if (u != l && !a) return !1; - var c = u; - for (; c--; ) { - var f = s[c]; - if (!(a ? f in e : Et.call(e, f))) return !1; - } - var d = o.get(t); - if (d && o.get(e)) return d == e; - var h = !0; - o.set(t, e), o.set(e, t); - var p = a; - for (; ++c < u; ) { - f = s[c]; - var g = t[f], - v = e[f]; - if (r) - var m = a - ? r(v, g, f, e, t, o) - : r(g, v, f, t, e, o); - if ( - !(void 0 === m ? g === v || i(g, v, n, r, o) : m) - ) { - h = !1; - break; - } - p || (p = 'constructor' == f); - } - if (h && !p) { - var y = t.constructor, - b = e.constructor; - y == b || - !('constructor' in t) || - !('constructor' in e) || - ('function' == typeof y && - y instanceof y && - 'function' == typeof b && - b instanceof b) || - (h = !1); - } - return o.delete(t), o.delete(e), h; - })(t, e, n, r, i, o) - ); - })(t, e, n, r, _r, i)) - ); - } - function xr(t, e, n, r) { - var i = n.length, - o = i, - a = !r; - if (null == t) return !o; - for (t = gt(t); i--; ) { - var s = n[i]; - if (a && s[2] ? s[1] !== t[s[0]] : !(s[0] in t)) return !1; - } - for (; ++i < o; ) { - var u = (s = n[i])[0], - l = t[u], - c = s[1]; - if (a && s[2]) { - if (void 0 === l && !(u in t)) return !1; - } else { - var f = new zn(); - if (r) var d = r(l, c, u, t, e, f); - if (!(void 0 === d ? _r(c, l, 3, r, f) : d)) return !1; - } - } - return !0; - } - function wr(t) { - return ( - !(!Ha(t) || ((e = t), At && At in e)) && - (Va(t) ? Pt : at).test(To(t)) - ); - var e; - } - function Sr(t) { - return 'function' == typeof t - ? t - : null == t - ? Ws - : 'object' == typeof t - ? Da(t) - ? Or(t[0], t[1]) - : Cr(t) - : eu(t); - } - function Er(t) { - if (!fo(t)) return on(t); - var e = []; - for (var n in gt(t)) - Et.call(t, n) && 'constructor' != n && e.push(n); - return e; - } - function kr(t) { - if (!Ha(t)) - return (function(t) { - var e = []; - if (null != t) for (var n in gt(t)) e.push(n); - return e; - })(t); - var e = fo(t), - n = []; - for (var r in t) - ('constructor' != r || (!e && Et.call(t, r))) && n.push(r); - return n; - } - function Ar(t, e) { - return t < e; - } - function Tr(t, e) { - var n = -1, - i = Ra(t) ? r(t.length) : []; - return ( - tr(t, function(t, r, o) { - i[++n] = e(t, r, o); - }), - i - ); - } - function Cr(t) { - var e = Zi(t); - return 1 == e.length && e[0][2] - ? po(e[0][0], e[0][1]) - : function(n) { - return n === t || xr(n, t, e); - }; - } - function Or(t, e) { - return uo(t) && ho(e) - ? po(Ao(t), e) - : function(n) { - var r = gs(n, t); - return void 0 === r && r === e ? vs(n, t) : _r(e, r, 3); - }; - } - function Pr(t, e, n, r, i) { - t !== e && - ar( - e, - function(o, a) { - if ((i || (i = new zn()), Ha(o))) - !(function(t, e, n, r, i, o, a) { - var s = yo(t, n), - u = yo(e, n), - l = a.get(u); - if (l) return void Gn(t, n, l); - var c = o ? o(s, u, n + '', t, e, a) : void 0, - f = void 0 === c; - if (f) { - var d = Da(u), - h = !d && za(u), - p = !d && !h && Za(u); - (c = u), - d || h || p - ? Da(s) - ? (c = s) - : Na(s) - ? (c = mi(s)) - : h - ? ((f = !1), (c = fi(u, !0))) - : p - ? ((f = !1), (c = hi(u, !0))) - : (c = []) - : Xa(u) || La(u) - ? ((c = s), - La(s) - ? (c = as(s)) - : (Ha(s) && !Va(s)) || (c = io(u))) - : (f = !1); - } - f && (a.set(u, c), i(c, u, r, o, a), a.delete(u)); - Gn(t, n, c); - })(t, e, a, n, Pr, r, i); - else { - var s = r ? r(yo(t, a), o, a + '', t, e, i) : void 0; - void 0 === s && (s = o), Gn(t, a, s); - } - }, - xs - ); - } - function Mr(t, e) { - var n = t.length; - if (n) return ao((e += e < 0 ? n : 0), n) ? t[e] : void 0; - } - function Lr(t, e, n) { - var r = -1; - return ( - (e = he(e.length ? e : [Ws], Pe(Qi()))), - (function(t, e) { - var n = t.length; - for (t.sort(e); n--; ) t[n] = t[n].value; - return t; - })( - Tr(t, function(t, n, i) { - return { - criteria: he(e, function(e) { - return e(t); - }), - index: ++r, - value: t - }; - }), - function(t, e) { - return (function(t, e, n) { - var r = -1, - i = t.criteria, - o = e.criteria, - a = i.length, - s = n.length; - for (; ++r < a; ) { - var u = pi(i[r], o[r]); - if (u) { - if (r >= s) return u; - var l = n[r]; - return u * ('desc' == l ? -1 : 1); - } - } - return t.index - e.index; - })(t, e, n); - } - ) - ); - } - function Dr(t, e, n) { - for (var r = -1, i = e.length, o = {}; ++r < i; ) { - var a = e[r], - s = fr(t, a); - n(s, a) && Br(o, si(a, t), s); - } - return o; - } - function jr(t, e, n, r) { - var i = r ? we : xe, - o = -1, - a = e.length, - s = t; - for (t === e && (e = mi(e)), n && (s = he(t, Pe(n))); ++o < a; ) - for ( - var u = 0, l = e[o], c = n ? n(l) : l; - (u = i(s, c, u, r)) > -1; - - ) - s !== t && $t.call(s, u, 1), $t.call(t, u, 1); - return t; - } - function Rr(t, e) { - for (var n = t ? e.length : 0, r = n - 1; n--; ) { - var i = e[n]; - if (n == r || i !== o) { - var o = i; - ao(i) ? $t.call(t, i, 1) : Jr(t, i); - } - } - return t; - } - function Nr(t, e) { - return t + Je(cn() * (e - t + 1)); - } - function zr(t, e) { - var n = ''; - if (!t || e < 1 || e > 9007199254740991) return n; - do { - e % 2 && (n += t), (e = Je(e / 2)) && (t += t); - } while (e); - return n; - } - function Ir(t, e) { - return xo(go(t, e, Ws), t + ''); - } - function Fr(t) { - return Fn(Os(t)); - } - function Vr(t, e) { - var n = Os(t); - return Eo(n, $n(e, 0, n.length)); - } - function Br(t, e, n, r) { - if (!Ha(t)) return t; - for ( - var i = -1, o = (e = si(e, t)).length, a = o - 1, s = t; - null != s && ++i < o; - - ) { - var u = Ao(e[i]), - l = n; - if (i != a) { - var c = s[u]; - void 0 === (l = r ? r(c, u, s) : void 0) && - (l = Ha(c) ? c : ao(e[i + 1]) ? [] : {}); - } - Hn(s, u, l), (s = s[u]); - } - return t; - } - var Gr = yn - ? function(t, e) { - return yn.set(t, e), t; - } - : Ws, - Hr = Ae - ? function(t, e) { - return Ae(t, 'toString', { - configurable: !0, - enumerable: !1, - value: Hs(e), - writable: !0 - }); - } - : Ws; - function Ur(t) { - return Eo(Os(t)); - } - function qr(t, e, n) { - var i = -1, - o = t.length; - e < 0 && (e = -e > o ? 0 : o + e), - (n = n > o ? o : n) < 0 && (n += o), - (o = e > n ? 0 : (n - e) >>> 0), - (e >>>= 0); - for (var a = r(o); ++i < o; ) a[i] = t[i + e]; - return a; - } - function Wr(t, e) { - var n; - return ( - tr(t, function(t, r, i) { - return !(n = e(t, r, i)); - }), - !!n - ); - } - function Xr(t, e, n) { - var r = 0, - i = null == t ? r : t.length; - if ('number' == typeof e && e == e && i <= 2147483647) { - for (; r < i; ) { - var o = (r + i) >>> 1, - a = t[o]; - null !== a && !Ka(a) && (n ? a <= e : a < e) - ? (r = o + 1) - : (i = o); - } - return i; - } - return Yr(t, e, Ws, n); - } - function Yr(t, e, n, r) { - e = n(e); - for ( - var i = 0, - o = null == t ? 0 : t.length, - a = e != e, - s = null === e, - u = Ka(e), - l = void 0 === e; - i < o; - - ) { - var c = Je((i + o) / 2), - f = n(t[c]), - d = void 0 !== f, - h = null === f, - p = f == f, - g = Ka(f); - if (a) var v = r || p; - else - v = l - ? p && (r || d) - : s - ? p && d && (r || !h) - : u - ? p && d && !h && (r || !g) - : !h && !g && (r ? f <= e : f < e); - v ? (i = c + 1) : (o = c); - } - return sn(o, 4294967294); - } - function $r(t, e) { - for (var n = -1, r = t.length, i = 0, o = []; ++n < r; ) { - var a = t[n], - s = e ? e(a) : a; - if (!n || !Oa(s, u)) { - var u = s; - o[i++] = 0 === a ? 0 : a; - } - } - return o; - } - function Qr(t) { - return 'number' == typeof t ? t : Ka(t) ? NaN : +t; - } - function Kr(t) { - if ('string' == typeof t) return t; - if (Da(t)) return he(t, Kr) + ''; - if (Ka(t)) return Tn ? Tn.call(t) : ''; - var e = t + ''; - return '0' == e && 1 / t == -1 / 0 ? '-0' : e; - } - function Zr(t, e, n) { - var r = -1, - i = fe, - o = t.length, - a = !0, - s = [], - u = s; - if (n) (a = !1), (i = de); - else if (o >= 200) { - var l = e ? null : zi(t); - if (l) return He(l); - (a = !1), (i = Le), (u = new Nn()); - } else u = e ? [] : s; - t: for (; ++r < o; ) { - var c = t[r], - f = e ? e(c) : c; - if (((c = n || 0 !== c ? c : 0), a && f == f)) { - for (var d = u.length; d--; ) if (u[d] === f) continue t; - e && u.push(f), s.push(c); - } else i(u, f, n) || (u !== s && u.push(f), s.push(c)); - } - return s; - } - function Jr(t, e) { - return null == (t = vo(t, (e = si(e, t)))) || delete t[Ao(Fo(e))]; - } - function ti(t, e, n, r) { - return Br(t, e, n(fr(t, e)), r); - } - function ei(t, e, n, r) { - for ( - var i = t.length, o = r ? i : -1; - (r ? o-- : ++o < i) && e(t[o], o, t); - - ); - return n - ? qr(t, r ? 0 : o, r ? o + 1 : i) - : qr(t, r ? o + 1 : 0, r ? i : o); - } - function ni(t, e) { - var n = t; - return ( - n instanceof Ln && (n = n.value()), - ge( - e, - function(t, e) { - return e.func.apply(e.thisArg, pe([t], e.args)); - }, - n - ) - ); - } - function ri(t, e, n) { - var i = t.length; - if (i < 2) return i ? Zr(t[0]) : []; - for (var o = -1, a = r(i); ++o < i; ) - for (var s = t[o], u = -1; ++u < i; ) - u != o && (a[o] = Jn(a[o] || s, t[u], e, n)); - return Zr(or(a, 1), e, n); - } - function ii(t, e, n) { - for (var r = -1, i = t.length, o = e.length, a = {}; ++r < i; ) { - var s = r < o ? e[r] : void 0; - n(a, t[r], s); - } - return a; - } - function oi(t) { - return Na(t) ? t : []; - } - function ai(t) { - return 'function' == typeof t ? t : Ws; - } - function si(t, e) { - return Da(t) ? t : uo(t, e) ? [t] : ko(ss(t)); - } - var ui = Ir; - function li(t, e, n) { - var r = t.length; - return (n = void 0 === n ? r : n), !e && n >= r ? t : qr(t, e, n); - } - var ci = - $e || - function(t) { - return Xt.clearTimeout(t); - }; - function fi(t, e) { - if (e) return t.slice(); - var n = t.length, - r = Gt ? Gt(n) : new t.constructor(n); - return t.copy(r), r; - } - function di(t) { - var e = new t.constructor(t.byteLength); - return new Nt(e).set(new Nt(t)), e; - } - function hi(t, e) { - var n = e ? di(t.buffer) : t.buffer; - return new t.constructor(n, t.byteOffset, t.length); - } - function pi(t, e) { - if (t !== e) { - var n = void 0 !== t, - r = null === t, - i = t == t, - o = Ka(t), - a = void 0 !== e, - s = null === e, - u = e == e, - l = Ka(e); - if ( - (!s && !l && !o && t > e) || - (o && a && u && !s && !l) || - (r && a && u) || - (!n && u) || - !i - ) - return 1; - if ( - (!r && !o && !l && t < e) || - (l && n && i && !r && !o) || - (s && n && i) || - (!a && i) || - !u - ) - return -1; - } - return 0; - } - function gi(t, e, n, i) { - for ( - var o = -1, - a = t.length, - s = n.length, - u = -1, - l = e.length, - c = an(a - s, 0), - f = r(l + c), - d = !i; - ++u < l; - - ) - f[u] = e[u]; - for (; ++o < s; ) (d || o < a) && (f[n[o]] = t[o]); - for (; c--; ) f[u++] = t[o++]; - return f; - } - function vi(t, e, n, i) { - for ( - var o = -1, - a = t.length, - s = -1, - u = n.length, - l = -1, - c = e.length, - f = an(a - u, 0), - d = r(f + c), - h = !i; - ++o < f; - - ) - d[o] = t[o]; - for (var p = o; ++l < c; ) d[p + l] = e[l]; - for (; ++s < u; ) (h || o < a) && (d[p + n[s]] = t[o++]); - return d; - } - function mi(t, e) { - var n = -1, - i = t.length; - for (e || (e = r(i)); ++n < i; ) e[n] = t[n]; - return e; - } - function yi(t, e, n, r) { - var i = !n; - n || (n = {}); - for (var o = -1, a = e.length; ++o < a; ) { - var s = e[o], - u = r ? r(n[s], t[s], s, n, t) : void 0; - void 0 === u && (u = t[s]), i ? Xn(n, s, u) : Hn(n, s, u); - } - return n; - } - function bi(t, e) { - return function(n, r) { - var i = Da(n) ? ae : qn, - o = e ? e() : {}; - return i(n, t, Qi(r, 2), o); - }; - } - function _i(t) { - return Ir(function(e, n) { - var r = -1, - i = n.length, - o = i > 1 ? n[i - 1] : void 0, - a = i > 2 ? n[2] : void 0; - for ( - o = - t.length > 3 && 'function' == typeof o ? (i--, o) : void 0, - a && - so(n[0], n[1], a) && - ((o = i < 3 ? void 0 : o), (i = 1)), - e = gt(e); - ++r < i; - - ) { - var s = n[r]; - s && t(e, s, r, o); - } - return e; - }); - } - function xi(t, e) { - return function(n, r) { - if (null == n) return n; - if (!Ra(n)) return t(n, r); - for ( - var i = n.length, o = e ? i : -1, a = gt(n); - (e ? o-- : ++o < i) && !1 !== r(a[o], o, a); - - ); - return n; - }; - } - function wi(t) { - return function(e, n, r) { - for (var i = -1, o = gt(e), a = r(e), s = a.length; s--; ) { - var u = a[t ? s : ++i]; - if (!1 === n(o[u], u, o)) break; - } - return e; - }; - } - function Si(t) { - return function(e) { - var n = Fe((e = ss(e))) ? We(e) : void 0, - r = n ? n[0] : e.charAt(0), - i = n ? li(n, 1).join('') : e.slice(1); - return r[t]() + i; - }; - } - function Ei(t) { - return function(e) { - return ge(Vs(Ls(e).replace(Lt, '')), t, ''); - }; - } - function ki(t) { - return function() { - var e = arguments; - switch (e.length) { - case 0: - return new t(); - case 1: - return new t(e[0]); - case 2: - return new t(e[0], e[1]); - case 3: - return new t(e[0], e[1], e[2]); - case 4: - return new t(e[0], e[1], e[2], e[3]); - case 5: - return new t(e[0], e[1], e[2], e[3], e[4]); - case 6: - return new t(e[0], e[1], e[2], e[3], e[4], e[5]); - case 7: - return new t(e[0], e[1], e[2], e[3], e[4], e[5], e[6]); - } - var n = On(t.prototype), - r = t.apply(n, e); - return Ha(r) ? r : n; - }; - } - function Ai(t) { - return function(e, n, r) { - var i = gt(e); - if (!Ra(e)) { - var o = Qi(n, 3); - (e = _s(e)), - (n = function(t) { - return o(i[t], t, i); - }); - } - var a = t(e, n, r); - return a > -1 ? i[o ? e[a] : a] : void 0; - }; - } - function Ti(t) { - return Ui(function(e) { - var n = e.length, - r = n, - i = Mn.prototype.thru; - for (t && e.reverse(); r--; ) { - var a = e[r]; - if ('function' != typeof a) throw new yt(o); - if (i && !s && 'wrapper' == Yi(a)) var s = new Mn([], !0); - } - for (r = s ? r : n; ++r < n; ) { - var u = Yi((a = e[r])), - l = 'wrapper' == u ? Xi(a) : void 0; - s = - l && lo(l[0]) && 424 == l[1] && !l[4].length && 1 == l[9] - ? s[Yi(l[0])].apply(s, l[3]) - : 1 == a.length && lo(a) - ? s[u]() - : s.thru(a); - } - return function() { - var t = arguments, - r = t[0]; - if (s && 1 == t.length && Da(r)) return s.plant(r).value(); - for (var i = 0, o = n ? e[i].apply(this, t) : r; ++i < n; ) - o = e[i].call(this, o); - return o; - }; - }); - } - function Ci(t, e, n, i, o, a, s, u, l, c) { - var f = 128 & e, - d = 1 & e, - h = 2 & e, - p = 24 & e, - g = 512 & e, - v = h ? void 0 : ki(t); - return function m() { - for (var y = arguments.length, b = r(y), _ = y; _--; ) - b[_] = arguments[_]; - if (p) - var x = $i(m), - w = Re(b, x); - if ( - (i && (b = gi(b, i, o, p)), - a && (b = vi(b, a, s, p)), - (y -= w), - p && y < c) - ) { - var S = Ge(b, x); - return Ri(t, e, Ci, m.placeholder, n, b, S, u, l, c - y); - } - var E = d ? n : this, - k = h ? E[t] : t; - return ( - (y = b.length), - u ? (b = mo(b, u)) : g && y > 1 && b.reverse(), - f && l < y && (b.length = l), - this && this !== Xt && this instanceof m && (k = v || ki(k)), - k.apply(E, b) - ); - }; - } - function Oi(t, e) { - return function(n, r) { - return (function(t, e, n, r) { - return ( - ur(t, function(t, i, o) { - e(r, n(t), i, o); - }), - r - ); - })(n, t, e(r), {}); - }; - } - function Pi(t, e) { - return function(n, r) { - var i; - if (void 0 === n && void 0 === r) return e; - if ((void 0 !== n && (i = n), void 0 !== r)) { - if (void 0 === i) return r; - 'string' == typeof n || 'string' == typeof r - ? ((n = Kr(n)), (r = Kr(r))) - : ((n = Qr(n)), (r = Qr(r))), - (i = t(n, r)); - } - return i; - }; - } - function Mi(t) { - return Ui(function(e) { - return ( - (e = he(e, Pe(Qi()))), - Ir(function(n) { - var r = this; - return t(e, function(t) { - return oe(t, r, n); - }); - }) - ); - }); - } - function Li(t, e) { - var n = (e = void 0 === e ? ' ' : Kr(e)).length; - if (n < 2) return n ? zr(e, t) : e; - var r = zr(e, Ze(t / qe(e))); - return Fe(e) ? li(We(r), 0, t).join('') : r.slice(0, t); - } - function Di(t) { - return function(e, n, i) { - return ( - i && 'number' != typeof i && so(e, n, i) && (n = i = void 0), - (e = ns(e)), - void 0 === n ? ((n = e), (e = 0)) : (n = ns(n)), - (function(t, e, n, i) { - for ( - var o = -1, a = an(Ze((e - t) / (n || 1)), 0), s = r(a); - a--; - - ) - (s[i ? a : ++o] = t), (t += n); - return s; - })(e, n, (i = void 0 === i ? (e < n ? 1 : -1) : ns(i)), t) - ); - }; - } - function ji(t) { - return function(e, n) { - return ( - ('string' == typeof e && 'string' == typeof n) || - ((e = os(e)), (n = os(n))), - t(e, n) - ); - }; - } - function Ri(t, e, n, r, i, o, a, s, u, l) { - var c = 8 & e; - (e |= c ? 32 : 64), 4 & (e &= ~(c ? 64 : 32)) || (e &= -4); - var f = [ - t, - e, - i, - c ? o : void 0, - c ? a : void 0, - c ? void 0 : o, - c ? void 0 : a, - s, - u, - l - ], - d = n.apply(void 0, f); - return lo(t) && bo(d, f), (d.placeholder = r), wo(d, t, e); - } - function Ni(t) { - var e = pt[t]; - return function(t, n) { - if ( - ((t = os(t)), (n = null == n ? 0 : sn(rs(n), 292)) && nn(t)) - ) { - var r = (ss(t) + 'e').split('e'); - return +( - (r = (ss(e(r[0] + 'e' + (+r[1] + n))) + 'e').split( - 'e' - ))[0] + - 'e' + - (+r[1] - n) - ); - } - return e(t); - }; - } - var zi = - gn && 1 / He(new gn([, -0]))[1] == 1 / 0 - ? function(t) { - return new gn(t); - } - : Ks; - function Ii(t) { - return function(e) { - var n = no(e); - return n == g - ? Ve(e) - : n == b - ? Ue(e) - : (function(t, e) { - return he(e, function(e) { - return [e, t[e]]; - }); - })(e, t(e)); - }; - } - function Fi(t, e, n, i, s, u, l, c) { - var f = 2 & e; - if (!f && 'function' != typeof t) throw new yt(o); - var d = i ? i.length : 0; - if ( - (d || ((e &= -97), (i = s = void 0)), - (l = void 0 === l ? l : an(rs(l), 0)), - (c = void 0 === c ? c : rs(c)), - (d -= s ? s.length : 0), - 64 & e) - ) { - var h = i, - p = s; - i = s = void 0; - } - var g = f ? void 0 : Xi(t), - v = [t, e, n, i, s, h, p, u, l, c]; - if ( - (g && - (function(t, e) { - var n = t[1], - r = e[1], - i = n | r, - o = i < 131, - s = - (128 == r && 8 == n) || - (128 == r && 256 == n && t[7].length <= e[8]) || - (384 == r && e[7].length <= e[8] && 8 == n); - if (!o && !s) return t; - 1 & r && ((t[2] = e[2]), (i |= 1 & n ? 0 : 4)); - var u = e[3]; - if (u) { - var l = t[3]; - (t[3] = l ? gi(l, u, e[4]) : u), - (t[4] = l ? Ge(t[3], a) : e[4]); - } - (u = e[5]) && - ((l = t[5]), - (t[5] = l ? vi(l, u, e[6]) : u), - (t[6] = l ? Ge(t[5], a) : e[6])); - (u = e[7]) && (t[7] = u); - 128 & r && (t[8] = null == t[8] ? e[8] : sn(t[8], e[8])); - null == t[9] && (t[9] = e[9]); - (t[0] = e[0]), (t[1] = i); - })(v, g), - (t = v[0]), - (e = v[1]), - (n = v[2]), - (i = v[3]), - (s = v[4]), - !(c = v[9] = - void 0 === v[9] ? (f ? 0 : t.length) : an(v[9] - d, 0)) && - 24 & e && - (e &= -25), - e && 1 != e) - ) - m = - 8 == e || 16 == e - ? (function(t, e, n) { - var i = ki(t); - return function o() { - for ( - var a = arguments.length, - s = r(a), - u = a, - l = $i(o); - u--; - - ) - s[u] = arguments[u]; - var c = - a < 3 && s[0] !== l && s[a - 1] !== l - ? [] - : Ge(s, l); - if ((a -= c.length) < n) - return Ri( - t, - e, - Ci, - o.placeholder, - void 0, - s, - c, - void 0, - void 0, - n - a - ); - var f = - this && this !== Xt && this instanceof o ? i : t; - return oe(f, this, s); - }; - })(t, e, c) - : (32 != e && 33 != e) || s.length - ? Ci.apply(void 0, v) - : (function(t, e, n, i) { - var o = 1 & e, - a = ki(t); - return function e() { - for ( - var s = -1, - u = arguments.length, - l = -1, - c = i.length, - f = r(c + u), - d = - this && this !== Xt && this instanceof e - ? a - : t; - ++l < c; - - ) - f[l] = i[l]; - for (; u--; ) f[l++] = arguments[++s]; - return oe(d, o ? n : this, f); - }; - })(t, e, n, i); - else - var m = (function(t, e, n) { - var r = 1 & e, - i = ki(t); - return function e() { - var o = this && this !== Xt && this instanceof e ? i : t; - return o.apply(r ? n : this, arguments); - }; - })(t, e, n); - return wo((g ? Gr : bo)(m, v), t, e); - } - function Vi(t, e, n, r) { - return void 0 === t || (Oa(t, xt[n]) && !Et.call(r, n)) ? e : t; - } - function Bi(t, e, n, r, i, o) { - return ( - Ha(t) && - Ha(e) && - (o.set(e, t), Pr(t, e, void 0, Bi, o), o.delete(e)), - t - ); - } - function Gi(t) { - return Xa(t) ? void 0 : t; - } - function Hi(t, e, n, r, i, o) { - var a = 1 & n, - s = t.length, - u = e.length; - if (s != u && !(a && u > s)) return !1; - var l = o.get(t); - if (l && o.get(e)) return l == e; - var c = -1, - f = !0, - d = 2 & n ? new Nn() : void 0; - for (o.set(t, e), o.set(e, t); ++c < s; ) { - var h = t[c], - p = e[c]; - if (r) var g = a ? r(p, h, c, e, t, o) : r(h, p, c, t, e, o); - if (void 0 !== g) { - if (g) continue; - f = !1; - break; - } - if (d) { - if ( - !me(e, function(t, e) { - if (!Le(d, e) && (h === t || i(h, t, n, r, o))) - return d.push(e); - }) - ) { - f = !1; - break; - } - } else if (h !== p && !i(h, p, n, r, o)) { - f = !1; - break; - } - } - return o.delete(t), o.delete(e), f; - } - function Ui(t) { - return xo(go(t, void 0, jo), t + ''); - } - function qi(t) { - return dr(t, _s, to); - } - function Wi(t) { - return dr(t, xs, eo); - } - var Xi = yn - ? function(t) { - return yn.get(t); - } - : Ks; - function Yi(t) { - for ( - var e = t.name + '', - n = bn[e], - r = Et.call(bn, e) ? n.length : 0; - r--; - - ) { - var i = n[r], - o = i.func; - if (null == o || o == t) return i.name; - } - return e; - } - function $i(t) { - return (Et.call(Cn, 'placeholder') ? Cn : t).placeholder; - } - function Qi() { - var t = Cn.iteratee || Xs; - return ( - (t = t === Xs ? Sr : t), - arguments.length ? t(arguments[0], arguments[1]) : t - ); - } - function Ki(t, e) { - var n = t.__data__; - return (function(t) { - var e = typeof t; - return 'string' == e || - 'number' == e || - 'symbol' == e || - 'boolean' == e - ? '__proto__' !== t - : null === t; - })(e) - ? n['string' == typeof e ? 'string' : 'hash'] - : n.map; - } - function Zi(t) { - for (var e = _s(t), n = e.length; n--; ) { - var r = e[n], - i = t[r]; - e[n] = [r, i, ho(i)]; - } - return e; - } - function Ji(t, e) { - var n = (function(t, e) { - return null == t ? void 0 : t[e]; - })(t, e); - return wr(n) ? n : void 0; - } - var to = tn - ? function(t) { - return null == t - ? [] - : ((t = gt(t)), - ce(tn(t), function(e) { - return Yt.call(t, e); - })); - } - : iu, - eo = tn - ? function(t) { - for (var e = []; t; ) pe(e, to(t)), (t = qt(t)); - return e; - } - : iu, - no = hr; - function ro(t, e, n) { - for (var r = -1, i = (e = si(e, t)).length, o = !1; ++r < i; ) { - var a = Ao(e[r]); - if (!(o = null != t && n(t, a))) break; - t = t[a]; - } - return o || ++r != i - ? o - : !!(i = null == t ? 0 : t.length) && - Ga(i) && - ao(a, i) && - (Da(t) || La(t)); - } - function io(t) { - return 'function' != typeof t.constructor || fo(t) - ? {} - : On(qt(t)); - } - function oo(t) { - return Da(t) || La(t) || !!(Kt && t && t[Kt]); - } - function ao(t, e) { - var n = typeof t; - return ( - !!(e = null == e ? 9007199254740991 : e) && - ('number' == n || ('symbol' != n && ut.test(t))) && - t > -1 && - t % 1 == 0 && - t < e - ); - } - function so(t, e, n) { - if (!Ha(n)) return !1; - var r = typeof e; - return ( - !!('number' == r - ? Ra(n) && ao(e, n.length) - : 'string' == r && e in n) && Oa(n[e], t) - ); - } - function uo(t, e) { - if (Da(t)) return !1; - var n = typeof t; - return ( - !( - 'number' != n && - 'symbol' != n && - 'boolean' != n && - null != t && - !Ka(t) - ) || - U.test(t) || !H.test(t) || (null != e && t in gt(e)) - ); - } - function lo(t) { - var e = Yi(t), - n = Cn[e]; - if ('function' != typeof n || !(e in Ln.prototype)) return !1; - if (t === n) return !0; - var r = Xi(n); - return !!r && t === r[0]; - } - ((dn && no(new dn(new ArrayBuffer(1))) != E) || - (hn && no(new hn()) != g) || - (pn && '[object Promise]' != no(pn.resolve())) || - (gn && no(new gn()) != b) || - (vn && no(new vn()) != w)) && - (no = function(t) { - var e = hr(t), - n = e == m ? t.constructor : void 0, - r = n ? To(n) : ''; - if (r) - switch (r) { - case _n: - return E; - case xn: - return g; - case wn: - return '[object Promise]'; - case Sn: - return b; - case En: - return w; - } - return e; - }); - var co = wt ? Va : ou; - function fo(t) { - var e = t && t.constructor; - return t === (('function' == typeof e && e.prototype) || xt); - } - function ho(t) { - return t == t && !Ha(t); - } - function po(t, e) { - return function(n) { - return null != n && n[t] === e && (void 0 !== e || t in gt(n)); - }; - } - function go(t, e, n) { - return ( - (e = an(void 0 === e ? t.length - 1 : e, 0)), - function() { - for ( - var i = arguments, - o = -1, - a = an(i.length - e, 0), - s = r(a); - ++o < a; - - ) - s[o] = i[e + o]; - o = -1; - for (var u = r(e + 1); ++o < e; ) u[o] = i[o]; - return (u[e] = n(s)), oe(t, this, u); - } - ); - } - function vo(t, e) { - return e.length < 2 ? t : fr(t, qr(e, 0, -1)); - } - function mo(t, e) { - for (var n = t.length, r = sn(e.length, n), i = mi(t); r--; ) { - var o = e[r]; - t[r] = ao(o, n) ? i[o] : void 0; - } - return t; - } - function yo(t, e) { - if ( - ('constructor' !== e || 'function' != typeof t[e]) && - '__proto__' != e - ) - return t[e]; - } - var bo = So(Gr), - _o = - Ke || - function(t, e) { - return Xt.setTimeout(t, e); - }, - xo = So(Hr); - function wo(t, e, n) { - var r = e + ''; - return xo( - t, - (function(t, e) { - var n = e.length; - if (!n) return t; - var r = n - 1; - return ( - (e[r] = (n > 1 ? '& ' : '') + e[r]), - (e = e.join(n > 2 ? ', ' : ' ')), - t.replace(K, '{\n/* [wrapped with ' + e + '] */\n') - ); - })( - r, - (function(t, e) { - return ( - se(s, function(n) { - var r = '_.' + n[0]; - e & n[1] && !fe(t, r) && t.push(r); - }), - t.sort() - ); - })( - (function(t) { - var e = t.match(Z); - return e ? e[1].split(J) : []; - })(r), - n - ) - ) - ); - } - function So(t) { - var e = 0, - n = 0; - return function() { - var r = un(), - i = 16 - (r - n); - if (((n = r), i > 0)) { - if (++e >= 800) return arguments[0]; - } else e = 0; - return t.apply(void 0, arguments); - }; - } - function Eo(t, e) { - var n = -1, - r = t.length, - i = r - 1; - for (e = void 0 === e ? r : e; ++n < e; ) { - var o = Nr(n, i), - a = t[o]; - (t[o] = t[n]), (t[n] = a); - } - return (t.length = e), t; - } - var ko = (function(t) { - var e = Sa(t, function(t) { - return 500 === n.size && n.clear(), t; - }), - n = e.cache; - return e; - })(function(t) { - var e = []; - return ( - 46 === t.charCodeAt(0) && e.push(''), - t.replace(q, function(t, n, r, i) { - e.push(r ? i.replace(et, '$1') : n || t); - }), - e - ); - }); - function Ao(t) { - if ('string' == typeof t || Ka(t)) return t; - var e = t + ''; - return '0' == e && 1 / t == -1 / 0 ? '-0' : e; - } - function To(t) { - if (null != t) { - try { - return St.call(t); - } catch (t) {} - try { - return t + ''; - } catch (t) {} - } - return ''; - } - function Co(t) { - if (t instanceof Ln) return t.clone(); - var e = new Mn(t.__wrapped__, t.__chain__); - return ( - (e.__actions__ = mi(t.__actions__)), - (e.__index__ = t.__index__), - (e.__values__ = t.__values__), - e - ); - } - var Oo = Ir(function(t, e) { - return Na(t) ? Jn(t, or(e, 1, Na, !0)) : []; - }), - Po = Ir(function(t, e) { - var n = Fo(e); - return ( - Na(n) && (n = void 0), - Na(t) ? Jn(t, or(e, 1, Na, !0), Qi(n, 2)) : [] - ); - }), - Mo = Ir(function(t, e) { - var n = Fo(e); - return ( - Na(n) && (n = void 0), - Na(t) ? Jn(t, or(e, 1, Na, !0), void 0, n) : [] - ); - }); - function Lo(t, e, n) { - var r = null == t ? 0 : t.length; - if (!r) return -1; - var i = null == n ? 0 : rs(n); - return i < 0 && (i = an(r + i, 0)), _e(t, Qi(e, 3), i); - } - function Do(t, e, n) { - var r = null == t ? 0 : t.length; - if (!r) return -1; - var i = r - 1; - return ( - void 0 !== n && - ((i = rs(n)), (i = n < 0 ? an(r + i, 0) : sn(i, r - 1))), - _e(t, Qi(e, 3), i, !0) - ); - } - function jo(t) { - return (null == t ? 0 : t.length) ? or(t, 1) : []; - } - function Ro(t) { - return t && t.length ? t[0] : void 0; - } - var No = Ir(function(t) { - var e = he(t, oi); - return e.length && e[0] === t[0] ? mr(e) : []; - }), - zo = Ir(function(t) { - var e = Fo(t), - n = he(t, oi); - return ( - e === Fo(n) ? (e = void 0) : n.pop(), - n.length && n[0] === t[0] ? mr(n, Qi(e, 2)) : [] - ); - }), - Io = Ir(function(t) { - var e = Fo(t), - n = he(t, oi); - return ( - (e = 'function' == typeof e ? e : void 0) && n.pop(), - n.length && n[0] === t[0] ? mr(n, void 0, e) : [] - ); - }); - function Fo(t) { - var e = null == t ? 0 : t.length; - return e ? t[e - 1] : void 0; - } - var Vo = Ir(Bo); - function Bo(t, e) { - return t && t.length && e && e.length ? jr(t, e) : t; - } - var Go = Ui(function(t, e) { - var n = null == t ? 0 : t.length, - r = Yn(t, e); - return ( - Rr( - t, - he(e, function(t) { - return ao(t, n) ? +t : t; - }).sort(pi) - ), - r - ); - }); - function Ho(t) { - return null == t ? t : fn.call(t); - } - var Uo = Ir(function(t) { - return Zr(or(t, 1, Na, !0)); - }), - qo = Ir(function(t) { - var e = Fo(t); - return Na(e) && (e = void 0), Zr(or(t, 1, Na, !0), Qi(e, 2)); - }), - Wo = Ir(function(t) { - var e = Fo(t); - return ( - (e = 'function' == typeof e ? e : void 0), - Zr(or(t, 1, Na, !0), void 0, e) - ); - }); - function Xo(t) { - if (!t || !t.length) return []; - var e = 0; - return ( - (t = ce(t, function(t) { - if (Na(t)) return (e = an(t.length, e)), !0; - })), - Oe(e, function(e) { - return he(t, ke(e)); - }) - ); - } - function Yo(t, e) { - if (!t || !t.length) return []; - var n = Xo(t); - return null == e - ? n - : he(n, function(t) { - return oe(e, void 0, t); - }); - } - var $o = Ir(function(t, e) { - return Na(t) ? Jn(t, e) : []; - }), - Qo = Ir(function(t) { - return ri(ce(t, Na)); - }), - Ko = Ir(function(t) { - var e = Fo(t); - return Na(e) && (e = void 0), ri(ce(t, Na), Qi(e, 2)); - }), - Zo = Ir(function(t) { - var e = Fo(t); - return ( - (e = 'function' == typeof e ? e : void 0), - ri(ce(t, Na), void 0, e) - ); - }), - Jo = Ir(Xo); - var ta = Ir(function(t) { - var e = t.length, - n = e > 1 ? t[e - 1] : void 0; - return ( - (n = 'function' == typeof n ? (t.pop(), n) : void 0), Yo(t, n) - ); - }); - function ea(t) { - var e = Cn(t); - return (e.__chain__ = !0), e; - } - function na(t, e) { - return e(t); - } - var ra = Ui(function(t) { - var e = t.length, - n = e ? t[0] : 0, - r = this.__wrapped__, - i = function(e) { - return Yn(e, t); - }; - return !(e > 1 || this.__actions__.length) && - r instanceof Ln && - ao(n) - ? ((r = r.slice(n, +n + (e ? 1 : 0))).__actions__.push({ - func: na, - args: [i], - thisArg: void 0 - }), - new Mn(r, this.__chain__).thru(function(t) { - return e && !t.length && t.push(void 0), t; - })) - : this.thru(i); - }); - var ia = bi(function(t, e, n) { - Et.call(t, n) ? ++t[n] : Xn(t, n, 1); - }); - var oa = Ai(Lo), - aa = Ai(Do); - function sa(t, e) { - return (Da(t) ? se : tr)(t, Qi(e, 3)); - } - function ua(t, e) { - return (Da(t) ? ue : er)(t, Qi(e, 3)); - } - var la = bi(function(t, e, n) { - Et.call(t, n) ? t[n].push(e) : Xn(t, n, [e]); - }); - var ca = Ir(function(t, e, n) { - var i = -1, - o = 'function' == typeof e, - a = Ra(t) ? r(t.length) : []; - return ( - tr(t, function(t) { - a[++i] = o ? oe(e, t, n) : yr(t, e, n); - }), - a - ); - }), - fa = bi(function(t, e, n) { - Xn(t, n, e); - }); - function da(t, e) { - return (Da(t) ? he : Tr)(t, Qi(e, 3)); - } - var ha = bi( - function(t, e, n) { - t[n ? 0 : 1].push(e); - }, - function() { - return [[], []]; - } - ); - var pa = Ir(function(t, e) { - if (null == t) return []; - var n = e.length; - return ( - n > 1 && so(t, e[0], e[1]) - ? (e = []) - : n > 2 && so(e[0], e[1], e[2]) && (e = [e[0]]), - Lr(t, or(e, 1), []) - ); - }), - ga = - Qe || - function() { - return Xt.Date.now(); - }; - function va(t, e, n) { - return ( - (e = n ? void 0 : e), - Fi( - t, - 128, - void 0, - void 0, - void 0, - void 0, - (e = t && null == e ? t.length : e) - ) - ); - } - function ma(t, e) { - var n; - if ('function' != typeof e) throw new yt(o); - return ( - (t = rs(t)), - function() { - return ( - --t > 0 && (n = e.apply(this, arguments)), - t <= 1 && (e = void 0), - n - ); - } - ); - } - var ya = Ir(function(t, e, n) { - var r = 1; - if (n.length) { - var i = Ge(n, $i(ya)); - r |= 32; - } - return Fi(t, r, e, n, i); - }), - ba = Ir(function(t, e, n) { - var r = 3; - if (n.length) { - var i = Ge(n, $i(ba)); - r |= 32; - } - return Fi(e, r, t, n, i); - }); - function _a(t, e, n) { - var r, - i, - a, - s, - u, - l, - c = 0, - f = !1, - d = !1, - h = !0; - if ('function' != typeof t) throw new yt(o); - function p(e) { - var n = r, - o = i; - return (r = i = void 0), (c = e), (s = t.apply(o, n)); - } - function g(t) { - return (c = t), (u = _o(m, e)), f ? p(t) : s; - } - function v(t) { - var n = t - l; - return void 0 === l || n >= e || n < 0 || (d && t - c >= a); - } - function m() { - var t = ga(); - if (v(t)) return y(t); - u = _o( - m, - (function(t) { - var n = e - (t - l); - return d ? sn(n, a - (t - c)) : n; - })(t) - ); - } - function y(t) { - return (u = void 0), h && r ? p(t) : ((r = i = void 0), s); - } - function b() { - var t = ga(), - n = v(t); - if (((r = arguments), (i = this), (l = t), n)) { - if (void 0 === u) return g(l); - if (d) return ci(u), (u = _o(m, e)), p(l); - } - return void 0 === u && (u = _o(m, e)), s; - } - return ( - (e = os(e) || 0), - Ha(n) && - ((f = !!n.leading), - (a = (d = 'maxWait' in n) ? an(os(n.maxWait) || 0, e) : a), - (h = 'trailing' in n ? !!n.trailing : h)), - (b.cancel = function() { - void 0 !== u && ci(u), (c = 0), (r = l = i = u = void 0); - }), - (b.flush = function() { - return void 0 === u ? s : y(ga()); - }), - b - ); - } - var xa = Ir(function(t, e) { - return Zn(t, 1, e); - }), - wa = Ir(function(t, e, n) { - return Zn(t, os(e) || 0, n); - }); - function Sa(t, e) { - if ( - 'function' != typeof t || - (null != e && 'function' != typeof e) - ) - throw new yt(o); - var n = function() { - var r = arguments, - i = e ? e.apply(this, r) : r[0], - o = n.cache; - if (o.has(i)) return o.get(i); - var a = t.apply(this, r); - return (n.cache = o.set(i, a) || o), a; - }; - return (n.cache = new (Sa.Cache || Rn)()), n; - } - function Ea(t) { - if ('function' != typeof t) throw new yt(o); - return function() { - var e = arguments; - switch (e.length) { - case 0: - return !t.call(this); - case 1: - return !t.call(this, e[0]); - case 2: - return !t.call(this, e[0], e[1]); - case 3: - return !t.call(this, e[0], e[1], e[2]); - } - return !t.apply(this, e); - }; - } - Sa.Cache = Rn; - var ka = ui(function(t, e) { - var n = (e = - 1 == e.length && Da(e[0]) - ? he(e[0], Pe(Qi())) - : he(or(e, 1), Pe(Qi()))).length; - return Ir(function(r) { - for (var i = -1, o = sn(r.length, n); ++i < o; ) - r[i] = e[i].call(this, r[i]); - return oe(t, this, r); - }); - }), - Aa = Ir(function(t, e) { - return Fi(t, 32, void 0, e, Ge(e, $i(Aa))); - }), - Ta = Ir(function(t, e) { - return Fi(t, 64, void 0, e, Ge(e, $i(Ta))); - }), - Ca = Ui(function(t, e) { - return Fi(t, 256, void 0, void 0, void 0, e); - }); - function Oa(t, e) { - return t === e || (t != t && e != e); - } - var Pa = ji(pr), - Ma = ji(function(t, e) { - return t >= e; - }), - La = br( - (function() { - return arguments; - })() - ) - ? br - : function(t) { - return ( - Ua(t) && Et.call(t, 'callee') && !Yt.call(t, 'callee') - ); - }, - Da = r.isArray, - ja = Jt - ? Pe(Jt) - : function(t) { - return Ua(t) && hr(t) == S; - }; - function Ra(t) { - return null != t && Ga(t.length) && !Va(t); - } - function Na(t) { - return Ua(t) && Ra(t); - } - var za = en || ou, - Ia = te - ? Pe(te) - : function(t) { - return Ua(t) && hr(t) == f; - }; - function Fa(t) { - if (!Ua(t)) return !1; - var e = hr(t); - return ( - e == d || - '[object DOMException]' == e || - ('string' == typeof t.message && - 'string' == typeof t.name && - !Xa(t)) - ); - } - function Va(t) { - if (!Ha(t)) return !1; - var e = hr(t); - return ( - e == h || - e == p || - '[object AsyncFunction]' == e || - '[object Proxy]' == e - ); - } - function Ba(t) { - return 'number' == typeof t && t == rs(t); - } - function Ga(t) { - return ( - 'number' == typeof t && - t > -1 && - t % 1 == 0 && - t <= 9007199254740991 - ); - } - function Ha(t) { - var e = typeof t; - return null != t && ('object' == e || 'function' == e); - } - function Ua(t) { - return null != t && 'object' == typeof t; - } - var qa = ee - ? Pe(ee) - : function(t) { - return Ua(t) && no(t) == g; - }; - function Wa(t) { - return 'number' == typeof t || (Ua(t) && hr(t) == v); - } - function Xa(t) { - if (!Ua(t) || hr(t) != m) return !1; - var e = qt(t); - if (null === e) return !0; - var n = Et.call(e, 'constructor') && e.constructor; - return ( - 'function' == typeof n && n instanceof n && St.call(n) == Ct - ); - } - var Ya = ne - ? Pe(ne) - : function(t) { - return Ua(t) && hr(t) == y; - }; - var $a = re - ? Pe(re) - : function(t) { - return Ua(t) && no(t) == b; - }; - function Qa(t) { - return 'string' == typeof t || (!Da(t) && Ua(t) && hr(t) == _); - } - function Ka(t) { - return 'symbol' == typeof t || (Ua(t) && hr(t) == x); - } - var Za = ie - ? Pe(ie) - : function(t) { - return Ua(t) && Ga(t.length) && !!Vt[hr(t)]; - }; - var Ja = ji(Ar), - ts = ji(function(t, e) { - return t <= e; - }); - function es(t) { - if (!t) return []; - if (Ra(t)) return Qa(t) ? We(t) : mi(t); - if (Zt && t[Zt]) - return (function(t) { - for (var e, n = []; !(e = t.next()).done; ) n.push(e.value); - return n; - })(t[Zt]()); - var e = no(t); - return (e == g ? Ve : e == b ? He : Os)(t); - } - function ns(t) { - return t - ? (t = os(t)) === 1 / 0 || t === -1 / 0 - ? 17976931348623157e292 * (t < 0 ? -1 : 1) - : t == t - ? t - : 0 - : 0 === t - ? t - : 0; - } - function rs(t) { - var e = ns(t), - n = e % 1; - return e == e ? (n ? e - n : e) : 0; - } - function is(t) { - return t ? $n(rs(t), 0, 4294967295) : 0; - } - function os(t) { - if ('number' == typeof t) return t; - if (Ka(t)) return NaN; - if (Ha(t)) { - var e = 'function' == typeof t.valueOf ? t.valueOf() : t; - t = Ha(e) ? e + '' : e; - } - if ('string' != typeof t) return 0 === t ? t : +t; - t = t.replace(Y, ''); - var n = ot.test(t); - return n || st.test(t) - ? Ut(t.slice(2), n ? 2 : 8) - : it.test(t) - ? NaN - : +t; - } - function as(t) { - return yi(t, xs(t)); - } - function ss(t) { - return null == t ? '' : Kr(t); - } - var us = _i(function(t, e) { - if (fo(e) || Ra(e)) yi(e, _s(e), t); - else for (var n in e) Et.call(e, n) && Hn(t, n, e[n]); - }), - ls = _i(function(t, e) { - yi(e, xs(e), t); - }), - cs = _i(function(t, e, n, r) { - yi(e, xs(e), t, r); - }), - fs = _i(function(t, e, n, r) { - yi(e, _s(e), t, r); - }), - ds = Ui(Yn); - var hs = Ir(function(t, e) { - t = gt(t); - var n = -1, - r = e.length, - i = r > 2 ? e[2] : void 0; - for (i && so(e[0], e[1], i) && (r = 1); ++n < r; ) - for ( - var o = e[n], a = xs(o), s = -1, u = a.length; - ++s < u; - - ) { - var l = a[s], - c = t[l]; - (void 0 === c || (Oa(c, xt[l]) && !Et.call(t, l))) && - (t[l] = o[l]); - } - return t; - }), - ps = Ir(function(t) { - return t.push(void 0, Bi), oe(Ss, void 0, t); - }); - function gs(t, e, n) { - var r = null == t ? void 0 : fr(t, e); - return void 0 === r ? n : r; - } - function vs(t, e) { - return null != t && ro(t, e, vr); - } - var ms = Oi(function(t, e, n) { - null != e && - 'function' != typeof e.toString && - (e = Tt.call(e)), - (t[e] = n); - }, Hs(Ws)), - ys = Oi(function(t, e, n) { - null != e && - 'function' != typeof e.toString && - (e = Tt.call(e)), - Et.call(t, e) ? t[e].push(n) : (t[e] = [n]); - }, Qi), - bs = Ir(yr); - function _s(t) { - return Ra(t) ? In(t) : Er(t); - } - function xs(t) { - return Ra(t) ? In(t, !0) : kr(t); - } - var ws = _i(function(t, e, n) { - Pr(t, e, n); - }), - Ss = _i(function(t, e, n, r) { - Pr(t, e, n, r); - }), - Es = Ui(function(t, e) { - var n = {}; - if (null == t) return n; - var r = !1; - (e = he(e, function(e) { - return (e = si(e, t)), r || (r = e.length > 1), e; - })), - yi(t, Wi(t), n), - r && (n = Qn(n, 7, Gi)); - for (var i = e.length; i--; ) Jr(n, e[i]); - return n; - }); - var ks = Ui(function(t, e) { - return null == t - ? {} - : (function(t, e) { - return Dr(t, e, function(e, n) { - return vs(t, n); - }); - })(t, e); - }); - function As(t, e) { - if (null == t) return {}; - var n = he(Wi(t), function(t) { - return [t]; - }); - return ( - (e = Qi(e)), - Dr(t, n, function(t, n) { - return e(t, n[0]); - }) - ); - } - var Ts = Ii(_s), - Cs = Ii(xs); - function Os(t) { - return null == t ? [] : Me(t, _s(t)); - } - var Ps = Ei(function(t, e, n) { - return (e = e.toLowerCase()), t + (n ? Ms(e) : e); - }); - function Ms(t) { - return Fs(ss(t).toLowerCase()); - } - function Ls(t) { - return (t = ss(t)) && t.replace(lt, Ne).replace(Dt, ''); - } - var Ds = Ei(function(t, e, n) { - return t + (n ? '-' : '') + e.toLowerCase(); - }), - js = Ei(function(t, e, n) { - return t + (n ? ' ' : '') + e.toLowerCase(); - }), - Rs = Si('toLowerCase'); - var Ns = Ei(function(t, e, n) { - return t + (n ? '_' : '') + e.toLowerCase(); - }); - var zs = Ei(function(t, e, n) { - return t + (n ? ' ' : '') + Fs(e); - }); - var Is = Ei(function(t, e, n) { - return t + (n ? ' ' : '') + e.toUpperCase(); - }), - Fs = Si('toUpperCase'); - function Vs(t, e, n) { - return ( - (t = ss(t)), - void 0 === (e = n ? void 0 : e) - ? (function(t) { - return zt.test(t); - })(t) - ? (function(t) { - return t.match(Rt) || []; - })(t) - : (function(t) { - return t.match(tt) || []; - })(t) - : t.match(e) || [] - ); - } - var Bs = Ir(function(t, e) { - try { - return oe(t, void 0, e); - } catch (t) { - return Fa(t) ? t : new dt(t); - } - }), - Gs = Ui(function(t, e) { - return ( - se(e, function(e) { - (e = Ao(e)), Xn(t, e, ya(t[e], t)); - }), - t - ); - }); - function Hs(t) { - return function() { - return t; - }; - } - var Us = Ti(), - qs = Ti(!0); - function Ws(t) { - return t; - } - function Xs(t) { - return Sr('function' == typeof t ? t : Qn(t, 1)); - } - var Ys = Ir(function(t, e) { - return function(n) { - return yr(n, t, e); - }; - }), - $s = Ir(function(t, e) { - return function(n) { - return yr(t, n, e); - }; - }); - function Qs(t, e, n) { - var r = _s(e), - i = cr(e, r); - null != n || - (Ha(e) && (i.length || !r.length)) || - ((n = e), (e = t), (t = this), (i = cr(e, _s(e)))); - var o = !(Ha(n) && 'chain' in n && !n.chain), - a = Va(t); - return ( - se(i, function(n) { - var r = e[n]; - (t[n] = r), - a && - (t.prototype[n] = function() { - var e = this.__chain__; - if (o || e) { - var n = t(this.__wrapped__), - i = (n.__actions__ = mi(this.__actions__)); - return ( - i.push({ func: r, args: arguments, thisArg: t }), - (n.__chain__ = e), - n - ); - } - return r.apply(t, pe([this.value()], arguments)); - }); - }), - t - ); - } - function Ks() {} - var Zs = Mi(he), - Js = Mi(le), - tu = Mi(me); - function eu(t) { - return uo(t) - ? ke(Ao(t)) - : (function(t) { - return function(e) { - return fr(e, t); - }; - })(t); - } - var nu = Di(), - ru = Di(!0); - function iu() { - return []; - } - function ou() { - return !1; - } - var au = Pi(function(t, e) { - return t + e; - }, 0), - su = Ni('ceil'), - uu = Pi(function(t, e) { - return t / e; - }, 1), - lu = Ni('floor'); - var cu, - fu = Pi(function(t, e) { - return t * e; - }, 1), - du = Ni('round'), - hu = Pi(function(t, e) { - return t - e; - }, 0); - return ( - (Cn.after = function(t, e) { - if ('function' != typeof e) throw new yt(o); - return ( - (t = rs(t)), - function() { - if (--t < 1) return e.apply(this, arguments); - } - ); - }), - (Cn.ary = va), - (Cn.assign = us), - (Cn.assignIn = ls), - (Cn.assignInWith = cs), - (Cn.assignWith = fs), - (Cn.at = ds), - (Cn.before = ma), - (Cn.bind = ya), - (Cn.bindAll = Gs), - (Cn.bindKey = ba), - (Cn.castArray = function() { - if (!arguments.length) return []; - var t = arguments[0]; - return Da(t) ? t : [t]; - }), - (Cn.chain = ea), - (Cn.chunk = function(t, e, n) { - e = (n ? so(t, e, n) : void 0 === e) ? 1 : an(rs(e), 0); - var i = null == t ? 0 : t.length; - if (!i || e < 1) return []; - for (var o = 0, a = 0, s = r(Ze(i / e)); o < i; ) - s[a++] = qr(t, o, (o += e)); - return s; - }), - (Cn.compact = function(t) { - for ( - var e = -1, n = null == t ? 0 : t.length, r = 0, i = []; - ++e < n; - - ) { - var o = t[e]; - o && (i[r++] = o); - } - return i; - }), - (Cn.concat = function() { - var t = arguments.length; - if (!t) return []; - for (var e = r(t - 1), n = arguments[0], i = t; i--; ) - e[i - 1] = arguments[i]; - return pe(Da(n) ? mi(n) : [n], or(e, 1)); - }), - (Cn.cond = function(t) { - var e = null == t ? 0 : t.length, - n = Qi(); - return ( - (t = e - ? he(t, function(t) { - if ('function' != typeof t[1]) throw new yt(o); - return [n(t[0]), t[1]]; - }) - : []), - Ir(function(n) { - for (var r = -1; ++r < e; ) { - var i = t[r]; - if (oe(i[0], this, n)) return oe(i[1], this, n); - } - }) - ); - }), - (Cn.conforms = function(t) { - return (function(t) { - var e = _s(t); - return function(n) { - return Kn(n, t, e); - }; - })(Qn(t, 1)); - }), - (Cn.constant = Hs), - (Cn.countBy = ia), - (Cn.create = function(t, e) { - var n = On(t); - return null == e ? n : Wn(n, e); - }), - (Cn.curry = function t(e, n, r) { - var i = Fi( - e, - 8, - void 0, - void 0, - void 0, - void 0, - void 0, - (n = r ? void 0 : n) - ); - return (i.placeholder = t.placeholder), i; - }), - (Cn.curryRight = function t(e, n, r) { - var i = Fi( - e, - 16, - void 0, - void 0, - void 0, - void 0, - void 0, - (n = r ? void 0 : n) - ); - return (i.placeholder = t.placeholder), i; - }), - (Cn.debounce = _a), - (Cn.defaults = hs), - (Cn.defaultsDeep = ps), - (Cn.defer = xa), - (Cn.delay = wa), - (Cn.difference = Oo), - (Cn.differenceBy = Po), - (Cn.differenceWith = Mo), - (Cn.drop = function(t, e, n) { - var r = null == t ? 0 : t.length; - return r - ? qr(t, (e = n || void 0 === e ? 1 : rs(e)) < 0 ? 0 : e, r) - : []; - }), - (Cn.dropRight = function(t, e, n) { - var r = null == t ? 0 : t.length; - return r - ? qr( - t, - 0, - (e = r - (e = n || void 0 === e ? 1 : rs(e))) < 0 ? 0 : e - ) - : []; - }), - (Cn.dropRightWhile = function(t, e) { - return t && t.length ? ei(t, Qi(e, 3), !0, !0) : []; - }), - (Cn.dropWhile = function(t, e) { - return t && t.length ? ei(t, Qi(e, 3), !0) : []; - }), - (Cn.fill = function(t, e, n, r) { - var i = null == t ? 0 : t.length; - return i - ? (n && - 'number' != typeof n && - so(t, e, n) && - ((n = 0), (r = i)), - (function(t, e, n, r) { - var i = t.length; - for ( - (n = rs(n)) < 0 && (n = -n > i ? 0 : i + n), - (r = void 0 === r || r > i ? i : rs(r)) < 0 && - (r += i), - r = n > r ? 0 : is(r); - n < r; - - ) - t[n++] = e; - return t; - })(t, e, n, r)) - : []; - }), - (Cn.filter = function(t, e) { - return (Da(t) ? ce : ir)(t, Qi(e, 3)); - }), - (Cn.flatMap = function(t, e) { - return or(da(t, e), 1); - }), - (Cn.flatMapDeep = function(t, e) { - return or(da(t, e), 1 / 0); - }), - (Cn.flatMapDepth = function(t, e, n) { - return (n = void 0 === n ? 1 : rs(n)), or(da(t, e), n); - }), - (Cn.flatten = jo), - (Cn.flattenDeep = function(t) { - return (null == t ? 0 : t.length) ? or(t, 1 / 0) : []; - }), - (Cn.flattenDepth = function(t, e) { - return (null == t - ? 0 - : t.length) - ? or(t, (e = void 0 === e ? 1 : rs(e))) - : []; - }), - (Cn.flip = function(t) { - return Fi(t, 512); - }), - (Cn.flow = Us), - (Cn.flowRight = qs), - (Cn.fromPairs = function(t) { - for ( - var e = -1, n = null == t ? 0 : t.length, r = {}; - ++e < n; - - ) { - var i = t[e]; - r[i[0]] = i[1]; - } - return r; - }), - (Cn.functions = function(t) { - return null == t ? [] : cr(t, _s(t)); - }), - (Cn.functionsIn = function(t) { - return null == t ? [] : cr(t, xs(t)); - }), - (Cn.groupBy = la), - (Cn.initial = function(t) { - return (null == t ? 0 : t.length) ? qr(t, 0, -1) : []; - }), - (Cn.intersection = No), - (Cn.intersectionBy = zo), - (Cn.intersectionWith = Io), - (Cn.invert = ms), - (Cn.invertBy = ys), - (Cn.invokeMap = ca), - (Cn.iteratee = Xs), - (Cn.keyBy = fa), - (Cn.keys = _s), - (Cn.keysIn = xs), - (Cn.map = da), - (Cn.mapKeys = function(t, e) { - var n = {}; - return ( - (e = Qi(e, 3)), - ur(t, function(t, r, i) { - Xn(n, e(t, r, i), t); - }), - n - ); - }), - (Cn.mapValues = function(t, e) { - var n = {}; - return ( - (e = Qi(e, 3)), - ur(t, function(t, r, i) { - Xn(n, r, e(t, r, i)); - }), - n - ); - }), - (Cn.matches = function(t) { - return Cr(Qn(t, 1)); - }), - (Cn.matchesProperty = function(t, e) { - return Or(t, Qn(e, 1)); - }), - (Cn.memoize = Sa), - (Cn.merge = ws), - (Cn.mergeWith = Ss), - (Cn.method = Ys), - (Cn.methodOf = $s), - (Cn.mixin = Qs), - (Cn.negate = Ea), - (Cn.nthArg = function(t) { - return ( - (t = rs(t)), - Ir(function(e) { - return Mr(e, t); - }) - ); - }), - (Cn.omit = Es), - (Cn.omitBy = function(t, e) { - return As(t, Ea(Qi(e))); - }), - (Cn.once = function(t) { - return ma(2, t); - }), - (Cn.orderBy = function(t, e, n, r) { - return null == t - ? [] - : (Da(e) || (e = null == e ? [] : [e]), - Da((n = r ? void 0 : n)) || (n = null == n ? [] : [n]), - Lr(t, e, n)); - }), - (Cn.over = Zs), - (Cn.overArgs = ka), - (Cn.overEvery = Js), - (Cn.overSome = tu), - (Cn.partial = Aa), - (Cn.partialRight = Ta), - (Cn.partition = ha), - (Cn.pick = ks), - (Cn.pickBy = As), - (Cn.property = eu), - (Cn.propertyOf = function(t) { - return function(e) { - return null == t ? void 0 : fr(t, e); - }; - }), - (Cn.pull = Vo), - (Cn.pullAll = Bo), - (Cn.pullAllBy = function(t, e, n) { - return t && t.length && e && e.length ? jr(t, e, Qi(n, 2)) : t; - }), - (Cn.pullAllWith = function(t, e, n) { - return t && t.length && e && e.length ? jr(t, e, void 0, n) : t; - }), - (Cn.pullAt = Go), - (Cn.range = nu), - (Cn.rangeRight = ru), - (Cn.rearg = Ca), - (Cn.reject = function(t, e) { - return (Da(t) ? ce : ir)(t, Ea(Qi(e, 3))); - }), - (Cn.remove = function(t, e) { - var n = []; - if (!t || !t.length) return n; - var r = -1, - i = [], - o = t.length; - for (e = Qi(e, 3); ++r < o; ) { - var a = t[r]; - e(a, r, t) && (n.push(a), i.push(r)); - } - return Rr(t, i), n; - }), - (Cn.rest = function(t, e) { - if ('function' != typeof t) throw new yt(o); - return Ir(t, (e = void 0 === e ? e : rs(e))); - }), - (Cn.reverse = Ho), - (Cn.sampleSize = function(t, e, n) { - return ( - (e = (n ? so(t, e, n) : void 0 === e) ? 1 : rs(e)), - (Da(t) ? Vn : Vr)(t, e) - ); - }), - (Cn.set = function(t, e, n) { - return null == t ? t : Br(t, e, n); - }), - (Cn.setWith = function(t, e, n, r) { - return ( - (r = 'function' == typeof r ? r : void 0), - null == t ? t : Br(t, e, n, r) - ); - }), - (Cn.shuffle = function(t) { - return (Da(t) ? Bn : Ur)(t); - }), - (Cn.slice = function(t, e, n) { - var r = null == t ? 0 : t.length; - return r - ? (n && 'number' != typeof n && so(t, e, n) - ? ((e = 0), (n = r)) - : ((e = null == e ? 0 : rs(e)), - (n = void 0 === n ? r : rs(n))), - qr(t, e, n)) - : []; - }), - (Cn.sortBy = pa), - (Cn.sortedUniq = function(t) { - return t && t.length ? $r(t) : []; - }), - (Cn.sortedUniqBy = function(t, e) { - return t && t.length ? $r(t, Qi(e, 2)) : []; - }), - (Cn.split = function(t, e, n) { - return ( - n && 'number' != typeof n && so(t, e, n) && (e = n = void 0), - (n = void 0 === n ? 4294967295 : n >>> 0) - ? (t = ss(t)) && - ('string' == typeof e || (null != e && !Ya(e))) && - !(e = Kr(e)) && - Fe(t) - ? li(We(t), 0, n) - : t.split(e, n) - : [] - ); - }), - (Cn.spread = function(t, e) { - if ('function' != typeof t) throw new yt(o); - return ( - (e = null == e ? 0 : an(rs(e), 0)), - Ir(function(n) { - var r = n[e], - i = li(n, 0, e); - return r && pe(i, r), oe(t, this, i); - }) - ); - }), - (Cn.tail = function(t) { - var e = null == t ? 0 : t.length; - return e ? qr(t, 1, e) : []; - }), - (Cn.take = function(t, e, n) { - return t && t.length - ? qr(t, 0, (e = n || void 0 === e ? 1 : rs(e)) < 0 ? 0 : e) - : []; - }), - (Cn.takeRight = function(t, e, n) { - var r = null == t ? 0 : t.length; - return r - ? qr( - t, - (e = r - (e = n || void 0 === e ? 1 : rs(e))) < 0 ? 0 : e, - r - ) - : []; - }), - (Cn.takeRightWhile = function(t, e) { - return t && t.length ? ei(t, Qi(e, 3), !1, !0) : []; - }), - (Cn.takeWhile = function(t, e) { - return t && t.length ? ei(t, Qi(e, 3)) : []; - }), - (Cn.tap = function(t, e) { - return e(t), t; - }), - (Cn.throttle = function(t, e, n) { - var r = !0, - i = !0; - if ('function' != typeof t) throw new yt(o); - return ( - Ha(n) && - ((r = 'leading' in n ? !!n.leading : r), - (i = 'trailing' in n ? !!n.trailing : i)), - _a(t, e, { leading: r, maxWait: e, trailing: i }) - ); - }), - (Cn.thru = na), - (Cn.toArray = es), - (Cn.toPairs = Ts), - (Cn.toPairsIn = Cs), - (Cn.toPath = function(t) { - return Da(t) ? he(t, Ao) : Ka(t) ? [t] : mi(ko(ss(t))); - }), - (Cn.toPlainObject = as), - (Cn.transform = function(t, e, n) { - var r = Da(t), - i = r || za(t) || Za(t); - if (((e = Qi(e, 4)), null == n)) { - var o = t && t.constructor; - n = i ? (r ? new o() : []) : Ha(t) && Va(o) ? On(qt(t)) : {}; - } - return ( - (i ? se : ur)(t, function(t, r, i) { - return e(n, t, r, i); - }), - n - ); - }), - (Cn.unary = function(t) { - return va(t, 1); - }), - (Cn.union = Uo), - (Cn.unionBy = qo), - (Cn.unionWith = Wo), - (Cn.uniq = function(t) { - return t && t.length ? Zr(t) : []; - }), - (Cn.uniqBy = function(t, e) { - return t && t.length ? Zr(t, Qi(e, 2)) : []; - }), - (Cn.uniqWith = function(t, e) { - return ( - (e = 'function' == typeof e ? e : void 0), - t && t.length ? Zr(t, void 0, e) : [] - ); - }), - (Cn.unset = function(t, e) { - return null == t || Jr(t, e); - }), - (Cn.unzip = Xo), - (Cn.unzipWith = Yo), - (Cn.update = function(t, e, n) { - return null == t ? t : ti(t, e, ai(n)); - }), - (Cn.updateWith = function(t, e, n, r) { - return ( - (r = 'function' == typeof r ? r : void 0), - null == t ? t : ti(t, e, ai(n), r) - ); - }), - (Cn.values = Os), - (Cn.valuesIn = function(t) { - return null == t ? [] : Me(t, xs(t)); - }), - (Cn.without = $o), - (Cn.words = Vs), - (Cn.wrap = function(t, e) { - return Aa(ai(e), t); - }), - (Cn.xor = Qo), - (Cn.xorBy = Ko), - (Cn.xorWith = Zo), - (Cn.zip = Jo), - (Cn.zipObject = function(t, e) { - return ii(t || [], e || [], Hn); - }), - (Cn.zipObjectDeep = function(t, e) { - return ii(t || [], e || [], Br); - }), - (Cn.zipWith = ta), - (Cn.entries = Ts), - (Cn.entriesIn = Cs), - (Cn.extend = ls), - (Cn.extendWith = cs), - Qs(Cn, Cn), - (Cn.add = au), - (Cn.attempt = Bs), - (Cn.camelCase = Ps), - (Cn.capitalize = Ms), - (Cn.ceil = su), - (Cn.clamp = function(t, e, n) { - return ( - void 0 === n && ((n = e), (e = void 0)), - void 0 !== n && (n = (n = os(n)) == n ? n : 0), - void 0 !== e && (e = (e = os(e)) == e ? e : 0), - $n(os(t), e, n) - ); - }), - (Cn.clone = function(t) { - return Qn(t, 4); - }), - (Cn.cloneDeep = function(t) { - return Qn(t, 5); - }), - (Cn.cloneDeepWith = function(t, e) { - return Qn(t, 5, (e = 'function' == typeof e ? e : void 0)); - }), - (Cn.cloneWith = function(t, e) { - return Qn(t, 4, (e = 'function' == typeof e ? e : void 0)); - }), - (Cn.conformsTo = function(t, e) { - return null == e || Kn(t, e, _s(e)); - }), - (Cn.deburr = Ls), - (Cn.defaultTo = function(t, e) { - return null == t || t != t ? e : t; - }), - (Cn.divide = uu), - (Cn.endsWith = function(t, e, n) { - (t = ss(t)), (e = Kr(e)); - var r = t.length, - i = (n = void 0 === n ? r : $n(rs(n), 0, r)); - return (n -= e.length) >= 0 && t.slice(n, i) == e; - }), - (Cn.eq = Oa), - (Cn.escape = function(t) { - return (t = ss(t)) && F.test(t) ? t.replace(z, ze) : t; - }), - (Cn.escapeRegExp = function(t) { - return (t = ss(t)) && X.test(t) ? t.replace(W, '\\$&') : t; - }), - (Cn.every = function(t, e, n) { - var r = Da(t) ? le : nr; - return n && so(t, e, n) && (e = void 0), r(t, Qi(e, 3)); - }), - (Cn.find = oa), - (Cn.findIndex = Lo), - (Cn.findKey = function(t, e) { - return be(t, Qi(e, 3), ur); - }), - (Cn.findLast = aa), - (Cn.findLastIndex = Do), - (Cn.findLastKey = function(t, e) { - return be(t, Qi(e, 3), lr); - }), - (Cn.floor = lu), - (Cn.forEach = sa), - (Cn.forEachRight = ua), - (Cn.forIn = function(t, e) { - return null == t ? t : ar(t, Qi(e, 3), xs); - }), - (Cn.forInRight = function(t, e) { - return null == t ? t : sr(t, Qi(e, 3), xs); - }), - (Cn.forOwn = function(t, e) { - return t && ur(t, Qi(e, 3)); - }), - (Cn.forOwnRight = function(t, e) { - return t && lr(t, Qi(e, 3)); - }), - (Cn.get = gs), - (Cn.gt = Pa), - (Cn.gte = Ma), - (Cn.has = function(t, e) { - return null != t && ro(t, e, gr); - }), - (Cn.hasIn = vs), - (Cn.head = Ro), - (Cn.identity = Ws), - (Cn.includes = function(t, e, n, r) { - (t = Ra(t) ? t : Os(t)), (n = n && !r ? rs(n) : 0); - var i = t.length; - return ( - n < 0 && (n = an(i + n, 0)), - Qa(t) - ? n <= i && t.indexOf(e, n) > -1 - : !!i && xe(t, e, n) > -1 - ); - }), - (Cn.indexOf = function(t, e, n) { - var r = null == t ? 0 : t.length; - if (!r) return -1; - var i = null == n ? 0 : rs(n); - return i < 0 && (i = an(r + i, 0)), xe(t, e, i); - }), - (Cn.inRange = function(t, e, n) { - return ( - (e = ns(e)), - void 0 === n ? ((n = e), (e = 0)) : (n = ns(n)), - (function(t, e, n) { - return t >= sn(e, n) && t < an(e, n); - })((t = os(t)), e, n) - ); - }), - (Cn.invoke = bs), - (Cn.isArguments = La), - (Cn.isArray = Da), - (Cn.isArrayBuffer = ja), - (Cn.isArrayLike = Ra), - (Cn.isArrayLikeObject = Na), - (Cn.isBoolean = function(t) { - return !0 === t || !1 === t || (Ua(t) && hr(t) == c); - }), - (Cn.isBuffer = za), - (Cn.isDate = Ia), - (Cn.isElement = function(t) { - return Ua(t) && 1 === t.nodeType && !Xa(t); - }), - (Cn.isEmpty = function(t) { - if (null == t) return !0; - if ( - Ra(t) && - (Da(t) || - 'string' == typeof t || - 'function' == typeof t.splice || - za(t) || - Za(t) || - La(t)) - ) - return !t.length; - var e = no(t); - if (e == g || e == b) return !t.size; - if (fo(t)) return !Er(t).length; - for (var n in t) if (Et.call(t, n)) return !1; - return !0; - }), - (Cn.isEqual = function(t, e) { - return _r(t, e); - }), - (Cn.isEqualWith = function(t, e, n) { - var r = (n = 'function' == typeof n ? n : void 0) - ? n(t, e) - : void 0; - return void 0 === r ? _r(t, e, void 0, n) : !!r; - }), - (Cn.isError = Fa), - (Cn.isFinite = function(t) { - return 'number' == typeof t && nn(t); - }), - (Cn.isFunction = Va), - (Cn.isInteger = Ba), - (Cn.isLength = Ga), - (Cn.isMap = qa), - (Cn.isMatch = function(t, e) { - return t === e || xr(t, e, Zi(e)); - }), - (Cn.isMatchWith = function(t, e, n) { - return ( - (n = 'function' == typeof n ? n : void 0), xr(t, e, Zi(e), n) - ); - }), - (Cn.isNaN = function(t) { - return Wa(t) && t != +t; - }), - (Cn.isNative = function(t) { - if (co(t)) - throw new dt( - 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.' - ); - return wr(t); - }), - (Cn.isNil = function(t) { - return null == t; - }), - (Cn.isNull = function(t) { - return null === t; - }), - (Cn.isNumber = Wa), - (Cn.isObject = Ha), - (Cn.isObjectLike = Ua), - (Cn.isPlainObject = Xa), - (Cn.isRegExp = Ya), - (Cn.isSafeInteger = function(t) { - return Ba(t) && t >= -9007199254740991 && t <= 9007199254740991; - }), - (Cn.isSet = $a), - (Cn.isString = Qa), - (Cn.isSymbol = Ka), - (Cn.isTypedArray = Za), - (Cn.isUndefined = function(t) { - return void 0 === t; - }), - (Cn.isWeakMap = function(t) { - return Ua(t) && no(t) == w; - }), - (Cn.isWeakSet = function(t) { - return Ua(t) && '[object WeakSet]' == hr(t); - }), - (Cn.join = function(t, e) { - return null == t ? '' : rn.call(t, e); - }), - (Cn.kebabCase = Ds), - (Cn.last = Fo), - (Cn.lastIndexOf = function(t, e, n) { - var r = null == t ? 0 : t.length; - if (!r) return -1; - var i = r; - return ( - void 0 !== n && - (i = (i = rs(n)) < 0 ? an(r + i, 0) : sn(i, r - 1)), - e == e - ? (function(t, e, n) { - for (var r = n + 1; r--; ) if (t[r] === e) return r; - return r; - })(t, e, i) - : _e(t, Se, i, !0) - ); - }), - (Cn.lowerCase = js), - (Cn.lowerFirst = Rs), - (Cn.lt = Ja), - (Cn.lte = ts), - (Cn.max = function(t) { - return t && t.length ? rr(t, Ws, pr) : void 0; - }), - (Cn.maxBy = function(t, e) { - return t && t.length ? rr(t, Qi(e, 2), pr) : void 0; - }), - (Cn.mean = function(t) { - return Ee(t, Ws); - }), - (Cn.meanBy = function(t, e) { - return Ee(t, Qi(e, 2)); - }), - (Cn.min = function(t) { - return t && t.length ? rr(t, Ws, Ar) : void 0; - }), - (Cn.minBy = function(t, e) { - return t && t.length ? rr(t, Qi(e, 2), Ar) : void 0; - }), - (Cn.stubArray = iu), - (Cn.stubFalse = ou), - (Cn.stubObject = function() { - return {}; - }), - (Cn.stubString = function() { - return ''; - }), - (Cn.stubTrue = function() { - return !0; - }), - (Cn.multiply = fu), - (Cn.nth = function(t, e) { - return t && t.length ? Mr(t, rs(e)) : void 0; - }), - (Cn.noConflict = function() { - return Xt._ === this && (Xt._ = Ot), this; - }), - (Cn.noop = Ks), - (Cn.now = ga), - (Cn.pad = function(t, e, n) { - t = ss(t); - var r = (e = rs(e)) ? qe(t) : 0; - if (!e || r >= e) return t; - var i = (e - r) / 2; - return Li(Je(i), n) + t + Li(Ze(i), n); - }), - (Cn.padEnd = function(t, e, n) { - t = ss(t); - var r = (e = rs(e)) ? qe(t) : 0; - return e && r < e ? t + Li(e - r, n) : t; - }), - (Cn.padStart = function(t, e, n) { - t = ss(t); - var r = (e = rs(e)) ? qe(t) : 0; - return e && r < e ? Li(e - r, n) + t : t; - }), - (Cn.parseInt = function(t, e, n) { - return ( - n || null == e ? (e = 0) : e && (e = +e), - ln(ss(t).replace($, ''), e || 0) - ); - }), - (Cn.random = function(t, e, n) { - if ( - (n && - 'boolean' != typeof n && - so(t, e, n) && - (e = n = void 0), - void 0 === n && - ('boolean' == typeof e - ? ((n = e), (e = void 0)) - : 'boolean' == typeof t && ((n = t), (t = void 0))), - void 0 === t && void 0 === e - ? ((t = 0), (e = 1)) - : ((t = ns(t)), - void 0 === e ? ((e = t), (t = 0)) : (e = ns(e))), - t > e) - ) { - var r = t; - (t = e), (e = r); - } - if (n || t % 1 || e % 1) { - var i = cn(); - return sn( - t + i * (e - t + Ht('1e-' + ((i + '').length - 1))), - e - ); - } - return Nr(t, e); - }), - (Cn.reduce = function(t, e, n) { - var r = Da(t) ? ge : Te, - i = arguments.length < 3; - return r(t, Qi(e, 4), n, i, tr); - }), - (Cn.reduceRight = function(t, e, n) { - var r = Da(t) ? ve : Te, - i = arguments.length < 3; - return r(t, Qi(e, 4), n, i, er); - }), - (Cn.repeat = function(t, e, n) { - return ( - (e = (n ? so(t, e, n) : void 0 === e) ? 1 : rs(e)), - zr(ss(t), e) - ); - }), - (Cn.replace = function() { - var t = arguments, - e = ss(t[0]); - return t.length < 3 ? e : e.replace(t[1], t[2]); - }), - (Cn.result = function(t, e, n) { - var r = -1, - i = (e = si(e, t)).length; - for (i || ((i = 1), (t = void 0)); ++r < i; ) { - var o = null == t ? void 0 : t[Ao(e[r])]; - void 0 === o && ((r = i), (o = n)), - (t = Va(o) ? o.call(t) : o); - } - return t; - }), - (Cn.round = du), - (Cn.runInContext = t), - (Cn.sample = function(t) { - return (Da(t) ? Fn : Fr)(t); - }), - (Cn.size = function(t) { - if (null == t) return 0; - if (Ra(t)) return Qa(t) ? qe(t) : t.length; - var e = no(t); - return e == g || e == b ? t.size : Er(t).length; - }), - (Cn.snakeCase = Ns), - (Cn.some = function(t, e, n) { - var r = Da(t) ? me : Wr; - return n && so(t, e, n) && (e = void 0), r(t, Qi(e, 3)); - }), - (Cn.sortedIndex = function(t, e) { - return Xr(t, e); - }), - (Cn.sortedIndexBy = function(t, e, n) { - return Yr(t, e, Qi(n, 2)); - }), - (Cn.sortedIndexOf = function(t, e) { - var n = null == t ? 0 : t.length; - if (n) { - var r = Xr(t, e); - if (r < n && Oa(t[r], e)) return r; - } - return -1; - }), - (Cn.sortedLastIndex = function(t, e) { - return Xr(t, e, !0); - }), - (Cn.sortedLastIndexBy = function(t, e, n) { - return Yr(t, e, Qi(n, 2), !0); - }), - (Cn.sortedLastIndexOf = function(t, e) { - if (null == t ? 0 : t.length) { - var n = Xr(t, e, !0) - 1; - if (Oa(t[n], e)) return n; - } - return -1; - }), - (Cn.startCase = zs), - (Cn.startsWith = function(t, e, n) { - return ( - (t = ss(t)), - (n = null == n ? 0 : $n(rs(n), 0, t.length)), - (e = Kr(e)), - t.slice(n, n + e.length) == e - ); - }), - (Cn.subtract = hu), - (Cn.sum = function(t) { - return t && t.length ? Ce(t, Ws) : 0; - }), - (Cn.sumBy = function(t, e) { - return t && t.length ? Ce(t, Qi(e, 2)) : 0; - }), - (Cn.template = function(t, e, n) { - var r = Cn.templateSettings; - n && so(t, e, n) && (e = void 0), - (t = ss(t)), - (e = cs({}, e, r, Vi)); - var i, - o, - a = cs({}, e.imports, r.imports, Vi), - s = _s(a), - u = Me(a, s), - l = 0, - c = e.interpolate || ct, - f = "__p += '", - d = vt( - (e.escape || ct).source + - '|' + - c.source + - '|' + - (c === G ? nt : ct).source + - '|' + - (e.evaluate || ct).source + - '|$', - 'g' - ), - h = - '//# sourceURL=' + - (Et.call(e, 'sourceURL') - ? (e.sourceURL + '').replace(/[\r\n]/g, ' ') - : 'lodash.templateSources[' + ++Ft + ']') + - '\n'; - t.replace(d, function(e, n, r, a, s, u) { - return ( - r || (r = a), - (f += t.slice(l, u).replace(ft, Ie)), - n && ((i = !0), (f += "' +\n__e(" + n + ") +\n'")), - s && ((o = !0), (f += "';\n" + s + ";\n__p += '")), - r && - (f += - "' +\n((__t = (" + r + ")) == null ? '' : __t) +\n'"), - (l = u + e.length), - e - ); - }), - (f += "';\n"); - var p = Et.call(e, 'variable') && e.variable; - p || (f = 'with (obj) {\n' + f + '\n}\n'), - (f = (o ? f.replace(D, '') : f) - .replace(j, '$1') - .replace(R, '$1;')), - (f = - 'function(' + - (p || 'obj') + - ') {\n' + - (p ? '' : 'obj || (obj = {});\n') + - "var __t, __p = ''" + - (i ? ', __e = _.escape' : '') + - (o - ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n" - : ';\n') + - f + - 'return __p\n}'); - var g = Bs(function() { - return ht(s, h + 'return ' + f).apply(void 0, u); - }); - if (((g.source = f), Fa(g))) throw g; - return g; - }), - (Cn.times = function(t, e) { - if ((t = rs(t)) < 1 || t > 9007199254740991) return []; - var n = 4294967295, - r = sn(t, 4294967295); - t -= 4294967295; - for (var i = Oe(r, (e = Qi(e))); ++n < t; ) e(n); - return i; - }), - (Cn.toFinite = ns), - (Cn.toInteger = rs), - (Cn.toLength = is), - (Cn.toLower = function(t) { - return ss(t).toLowerCase(); - }), - (Cn.toNumber = os), - (Cn.toSafeInteger = function(t) { - return t - ? $n(rs(t), -9007199254740991, 9007199254740991) - : 0 === t - ? t - : 0; - }), - (Cn.toString = ss), - (Cn.toUpper = function(t) { - return ss(t).toUpperCase(); - }), - (Cn.trim = function(t, e, n) { - if ((t = ss(t)) && (n || void 0 === e)) return t.replace(Y, ''); - if (!t || !(e = Kr(e))) return t; - var r = We(t), - i = We(e); - return li(r, De(r, i), je(r, i) + 1).join(''); - }), - (Cn.trimEnd = function(t, e, n) { - if ((t = ss(t)) && (n || void 0 === e)) return t.replace(Q, ''); - if (!t || !(e = Kr(e))) return t; - var r = We(t); - return li(r, 0, je(r, We(e)) + 1).join(''); - }), - (Cn.trimStart = function(t, e, n) { - if ((t = ss(t)) && (n || void 0 === e)) return t.replace($, ''); - if (!t || !(e = Kr(e))) return t; - var r = We(t); - return li(r, De(r, We(e))).join(''); - }), - (Cn.truncate = function(t, e) { - var n = 30, - r = '...'; - if (Ha(e)) { - var i = 'separator' in e ? e.separator : i; - (n = 'length' in e ? rs(e.length) : n), - (r = 'omission' in e ? Kr(e.omission) : r); - } - var o = (t = ss(t)).length; - if (Fe(t)) { - var a = We(t); - o = a.length; - } - if (n >= o) return t; - var s = n - qe(r); - if (s < 1) return r; - var u = a ? li(a, 0, s).join('') : t.slice(0, s); - if (void 0 === i) return u + r; - if ((a && (s += u.length - s), Ya(i))) { - if (t.slice(s).search(i)) { - var l, - c = u; - for ( - i.global || (i = vt(i.source, ss(rt.exec(i)) + 'g')), - i.lastIndex = 0; - (l = i.exec(c)); - - ) - var f = l.index; - u = u.slice(0, void 0 === f ? s : f); - } - } else if (t.indexOf(Kr(i), s) != s) { - var d = u.lastIndexOf(i); - d > -1 && (u = u.slice(0, d)); - } - return u + r; - }), - (Cn.unescape = function(t) { - return (t = ss(t)) && I.test(t) ? t.replace(N, Xe) : t; - }), - (Cn.uniqueId = function(t) { - var e = ++kt; - return ss(t) + e; - }), - (Cn.upperCase = Is), - (Cn.upperFirst = Fs), - (Cn.each = sa), - (Cn.eachRight = ua), - (Cn.first = Ro), - Qs( - Cn, - ((cu = {}), - ur(Cn, function(t, e) { - Et.call(Cn.prototype, e) || (cu[e] = t); - }), - cu), - { chain: !1 } - ), - (Cn.VERSION = '4.17.15'), - se( - [ - 'bind', - 'bindKey', - 'curry', - 'curryRight', - 'partial', - 'partialRight' - ], - function(t) { - Cn[t].placeholder = Cn; - } - ), - se(['drop', 'take'], function(t, e) { - (Ln.prototype[t] = function(n) { - n = void 0 === n ? 1 : an(rs(n), 0); - var r = this.__filtered__ && !e ? new Ln(this) : this.clone(); - return ( - r.__filtered__ - ? (r.__takeCount__ = sn(n, r.__takeCount__)) - : r.__views__.push({ - size: sn(n, 4294967295), - type: t + (r.__dir__ < 0 ? 'Right' : '') - }), - r - ); - }), - (Ln.prototype[t + 'Right'] = function(e) { - return this.reverse() - [t](e) - .reverse(); - }); - }), - se(['filter', 'map', 'takeWhile'], function(t, e) { - var n = e + 1, - r = 1 == n || 3 == n; - Ln.prototype[t] = function(t) { - var e = this.clone(); - return ( - e.__iteratees__.push({ iteratee: Qi(t, 3), type: n }), - (e.__filtered__ = e.__filtered__ || r), - e - ); - }; - }), - se(['head', 'last'], function(t, e) { - var n = 'take' + (e ? 'Right' : ''); - Ln.prototype[t] = function() { - return this[n](1).value()[0]; - }; - }), - se(['initial', 'tail'], function(t, e) { - var n = 'drop' + (e ? '' : 'Right'); - Ln.prototype[t] = function() { - return this.__filtered__ ? new Ln(this) : this[n](1); - }; - }), - (Ln.prototype.compact = function() { - return this.filter(Ws); - }), - (Ln.prototype.find = function(t) { - return this.filter(t).head(); - }), - (Ln.prototype.findLast = function(t) { - return this.reverse().find(t); - }), - (Ln.prototype.invokeMap = Ir(function(t, e) { - return 'function' == typeof t - ? new Ln(this) - : this.map(function(n) { - return yr(n, t, e); - }); - })), - (Ln.prototype.reject = function(t) { - return this.filter(Ea(Qi(t))); - }), - (Ln.prototype.slice = function(t, e) { - t = rs(t); - var n = this; - return n.__filtered__ && (t > 0 || e < 0) - ? new Ln(n) - : (t < 0 ? (n = n.takeRight(-t)) : t && (n = n.drop(t)), - void 0 !== e && - (n = (e = rs(e)) < 0 ? n.dropRight(-e) : n.take(e - t)), - n); - }), - (Ln.prototype.takeRightWhile = function(t) { - return this.reverse() - .takeWhile(t) - .reverse(); - }), - (Ln.prototype.toArray = function() { - return this.take(4294967295); - }), - ur(Ln.prototype, function(t, e) { - var n = /^(?:filter|find|map|reject)|While$/.test(e), - r = /^(?:head|last)$/.test(e), - i = Cn[r ? 'take' + ('last' == e ? 'Right' : '') : e], - o = r || /^find/.test(e); - i && - (Cn.prototype[e] = function() { - var e = this.__wrapped__, - a = r ? [1] : arguments, - s = e instanceof Ln, - u = a[0], - l = s || Da(e), - c = function(t) { - var e = i.apply(Cn, pe([t], a)); - return r && f ? e[0] : e; - }; - l && - n && - 'function' == typeof u && - 1 != u.length && - (s = l = !1); - var f = this.__chain__, - d = !!this.__actions__.length, - h = o && !f, - p = s && !d; - if (!o && l) { - e = p ? e : new Ln(this); - var g = t.apply(e, a); - return ( - g.__actions__.push({ - func: na, - args: [c], - thisArg: void 0 - }), - new Mn(g, f) - ); - } - return h && p - ? t.apply(this, a) - : ((g = this.thru(c)), - h ? (r ? g.value()[0] : g.value()) : g); - }); - }), - se( - ['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], - function(t) { - var e = bt[t], - n = /^(?:push|sort|unshift)$/.test(t) ? 'tap' : 'thru', - r = /^(?:pop|shift)$/.test(t); - Cn.prototype[t] = function() { - var t = arguments; - if (r && !this.__chain__) { - var i = this.value(); - return e.apply(Da(i) ? i : [], t); - } - return this[n](function(n) { - return e.apply(Da(n) ? n : [], t); - }); - }; - } - ), - ur(Ln.prototype, function(t, e) { - var n = Cn[e]; - if (n) { - var r = n.name + ''; - Et.call(bn, r) || (bn[r] = []), - bn[r].push({ name: e, func: n }); - } - }), - (bn[Ci(void 0, 2).name] = [{ name: 'wrapper', func: void 0 }]), - (Ln.prototype.clone = function() { - var t = new Ln(this.__wrapped__); - return ( - (t.__actions__ = mi(this.__actions__)), - (t.__dir__ = this.__dir__), - (t.__filtered__ = this.__filtered__), - (t.__iteratees__ = mi(this.__iteratees__)), - (t.__takeCount__ = this.__takeCount__), - (t.__views__ = mi(this.__views__)), - t - ); - }), - (Ln.prototype.reverse = function() { - if (this.__filtered__) { - var t = new Ln(this); - (t.__dir__ = -1), (t.__filtered__ = !0); - } else (t = this.clone()).__dir__ *= -1; - return t; - }), - (Ln.prototype.value = function() { - var t = this.__wrapped__.value(), - e = this.__dir__, - n = Da(t), - r = e < 0, - i = n ? t.length : 0, - o = (function(t, e, n) { - var r = -1, - i = n.length; - for (; ++r < i; ) { - var o = n[r], - a = o.size; - switch (o.type) { - case 'drop': - t += a; - break; - case 'dropRight': - e -= a; - break; - case 'take': - e = sn(e, t + a); - break; - case 'takeRight': - t = an(t, e - a); - } - } - return { start: t, end: e }; - })(0, i, this.__views__), - a = o.start, - s = o.end, - u = s - a, - l = r ? s : a - 1, - c = this.__iteratees__, - f = c.length, - d = 0, - h = sn(u, this.__takeCount__); - if (!n || (!r && i == u && h == u)) - return ni(t, this.__actions__); - var p = []; - t: for (; u-- && d < h; ) { - for (var g = -1, v = t[(l += e)]; ++g < f; ) { - var m = c[g], - y = m.iteratee, - b = m.type, - _ = y(v); - if (2 == b) v = _; - else if (!_) { - if (1 == b) continue t; - break t; - } - } - p[d++] = v; - } - return p; - }), - (Cn.prototype.at = ra), - (Cn.prototype.chain = function() { - return ea(this); - }), - (Cn.prototype.commit = function() { - return new Mn(this.value(), this.__chain__); - }), - (Cn.prototype.next = function() { - void 0 === this.__values__ && - (this.__values__ = es(this.value())); - var t = this.__index__ >= this.__values__.length; - return { - done: t, - value: t ? void 0 : this.__values__[this.__index__++] - }; - }), - (Cn.prototype.plant = function(t) { - for (var e, n = this; n instanceof Pn; ) { - var r = Co(n); - (r.__index__ = 0), - (r.__values__ = void 0), - e ? (i.__wrapped__ = r) : (e = r); - var i = r; - n = n.__wrapped__; - } - return (i.__wrapped__ = t), e; - }), - (Cn.prototype.reverse = function() { - var t = this.__wrapped__; - if (t instanceof Ln) { - var e = t; - return ( - this.__actions__.length && (e = new Ln(this)), - (e = e.reverse()).__actions__.push({ - func: na, - args: [Ho], - thisArg: void 0 - }), - new Mn(e, this.__chain__) - ); - } - return this.thru(Ho); - }), - (Cn.prototype.toJSON = Cn.prototype.valueOf = Cn.prototype.value = function() { - return ni(this.__wrapped__, this.__actions__); - }), - (Cn.prototype.first = Cn.prototype.head), - Zt && - (Cn.prototype[Zt] = function() { - return this; - }), - Cn - ); - })(); - (Xt._ = Ye), - void 0 === - (i = function() { - return Ye; - }.call(e, n, e, r)) || (r.exports = i); - }.call(this)); - }.call(this, n(13), n(35)(t))); - }, - function(t, e) { - t.exports = function(t) { - var e = []; - return ( - (e.toString = function() { - return this.map(function(e) { - var n = (function(t, e) { - var n = t[1] || '', - r = t[3]; - if (!r) return n; - if (e && 'function' == typeof btoa) { - var i = - ((a = r), - '/*# sourceMappingURL=data:application/json;charset=utf-8;base64,' + - btoa(unescape(encodeURIComponent(JSON.stringify(a)))) + - ' */'), - o = r.sources.map(function(t) { - return '/*# sourceURL=' + r.sourceRoot + t + ' */'; - }); - return [n] - .concat(o) - .concat([i]) - .join('\n'); - } - var a; - return [n].join('\n'); - })(e, t); - return e[2] ? '@media ' + e[2] + '{' + n + '}' : n; - }).join(''); - }), - (e.i = function(t, n) { - 'string' == typeof t && (t = [[null, t, '']]); - for (var r = {}, i = 0; i < this.length; i++) { - var o = this[i][0]; - 'number' == typeof o && (r[o] = !0); - } - for (i = 0; i < t.length; i++) { - var a = t[i]; - ('number' == typeof a[0] && r[a[0]]) || - (n && !a[2] - ? (a[2] = n) - : n && (a[2] = '(' + a[2] + ') and (' + n + ')'), - e.push(a)); - } - }), - e - ); - }; - }, - function(t, e, n) { - var r, - i, - o = {}, - a = - ((r = function() { - return window && document && document.all && !window.atob; - }), - function() { - return void 0 === i && (i = r.apply(this, arguments)), i; - }), - s = function(t) { - return document.querySelector(t); - }, - u = (function(t) { - var e = {}; - return function(t) { - if ('function' == typeof t) return t(); - if (void 0 === e[t]) { - var n = s.call(this, t); - if ( - window.HTMLIFrameElement && - n instanceof window.HTMLIFrameElement - ) - try { - n = n.contentDocument.head; - } catch (t) { - n = null; - } - e[t] = n; - } - return e[t]; - }; - })(), - l = null, - c = 0, - f = [], - d = n(261); - function h(t, e) { - for (var n = 0; n < t.length; n++) { - var r = t[n], - i = o[r.id]; - if (i) { - i.refs++; - for (var a = 0; a < i.parts.length; a++) i.parts[a](r.parts[a]); - for (; a < r.parts.length; a++) i.parts.push(b(r.parts[a], e)); - } else { - var s = []; - for (a = 0; a < r.parts.length; a++) s.push(b(r.parts[a], e)); - o[r.id] = { id: r.id, refs: 1, parts: s }; - } - } - } - function p(t, e) { - for (var n = [], r = {}, i = 0; i < t.length; i++) { - var o = t[i], - a = e.base ? o[0] + e.base : o[0], - s = { css: o[1], media: o[2], sourceMap: o[3] }; - r[a] ? r[a].parts.push(s) : n.push((r[a] = { id: a, parts: [s] })); - } - return n; - } - function g(t, e) { - var n = u(t.insertInto); - if (!n) - throw new Error( - "Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid." - ); - var r = f[f.length - 1]; - if ('top' === t.insertAt) - r - ? r.nextSibling - ? n.insertBefore(e, r.nextSibling) - : n.appendChild(e) - : n.insertBefore(e, n.firstChild), - f.push(e); - else if ('bottom' === t.insertAt) n.appendChild(e); - else { - if ('object' != typeof t.insertAt || !t.insertAt.before) - throw new Error( - "[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n" - ); - var i = u(t.insertInto + ' ' + t.insertAt.before); - n.insertBefore(e, i); - } - } - function v(t) { - if (null === t.parentNode) return !1; - t.parentNode.removeChild(t); - var e = f.indexOf(t); - e >= 0 && f.splice(e, 1); - } - function m(t) { - var e = document.createElement('style'); - return (t.attrs.type = 'text/css'), y(e, t.attrs), g(t, e), e; - } - function y(t, e) { - Object.keys(e).forEach(function(n) { - t.setAttribute(n, e[n]); - }); - } - function b(t, e) { - var n, r, i, o; - if (e.transform && t.css) { - if (!(o = e.transform(t.css))) return function() {}; - t.css = o; - } - if (e.singleton) { - var a = c++; - (n = l || (l = m(e))), - (r = w.bind(null, n, a, !1)), - (i = w.bind(null, n, a, !0)); - } else - t.sourceMap && - 'function' == typeof URL && - 'function' == typeof URL.createObjectURL && - 'function' == typeof URL.revokeObjectURL && - 'function' == typeof Blob && - 'function' == typeof btoa - ? ((n = (function(t) { - var e = document.createElement('link'); - return ( - (t.attrs.type = 'text/css'), - (t.attrs.rel = 'stylesheet'), - y(e, t.attrs), - g(t, e), - e - ); - })(e)), - (r = E.bind(null, n, e)), - (i = function() { - v(n), n.href && URL.revokeObjectURL(n.href); - })) - : ((n = m(e)), - (r = S.bind(null, n)), - (i = function() { - v(n); - })); - return ( - r(t), - function(e) { - if (e) { - if ( - e.css === t.css && - e.media === t.media && - e.sourceMap === t.sourceMap - ) - return; - r((t = e)); - } else i(); - } - ); - } - t.exports = function(t, e) { - if ('undefined' != typeof DEBUG && DEBUG && 'object' != typeof document) - throw new Error( - 'The style-loader cannot be used in a non-browser environment' - ); - ((e = e || {}).attrs = 'object' == typeof e.attrs ? e.attrs : {}), - e.singleton || 'boolean' == typeof e.singleton || (e.singleton = a()), - e.insertInto || (e.insertInto = 'head'), - e.insertAt || (e.insertAt = 'bottom'); - var n = p(t, e); - return ( - h(n, e), - function(t) { - for (var r = [], i = 0; i < n.length; i++) { - var a = n[i]; - (s = o[a.id]).refs--, r.push(s); - } - t && h(p(t, e), e); - for (i = 0; i < r.length; i++) { - var s; - if (0 === (s = r[i]).refs) { - for (var u = 0; u < s.parts.length; u++) s.parts[u](); - delete o[s.id]; - } - } - } - ); - }; - var _, - x = - ((_ = []), - function(t, e) { - return (_[t] = e), _.filter(Boolean).join('\n'); - }); - function w(t, e, n, r) { - var i = n ? '' : r.css; - if (t.styleSheet) t.styleSheet.cssText = x(e, i); - else { - var o = document.createTextNode(i), - a = t.childNodes; - a[e] && t.removeChild(a[e]), - a.length ? t.insertBefore(o, a[e]) : t.appendChild(o); - } - } - function S(t, e) { - var n = e.css, - r = e.media; - if ((r && t.setAttribute('media', r), t.styleSheet)) - t.styleSheet.cssText = n; - else { - for (; t.firstChild; ) t.removeChild(t.firstChild); - t.appendChild(document.createTextNode(n)); - } - } - function E(t, e, n) { - var r = n.css, - i = n.sourceMap, - o = void 0 === e.convertToAbsoluteUrls && i; - (e.convertToAbsoluteUrls || o) && (r = d(r)), - i && - (r += - '\n/*# sourceMappingURL=data:application/json;base64,' + - btoa(unescape(encodeURIComponent(JSON.stringify(i)))) + - ' */'); - var a = new Blob([r], { type: 'text/css' }), - s = t.href; - (t.href = URL.createObjectURL(a)), s && URL.revokeObjectURL(s); - } - }, - function(t, e, n) { - var r = n(122), - i = n(124); - function o(e, n) { - return delete t.exports[e], (t.exports[e] = n), n; - } - t.exports = { - Parser: r, - Tokenizer: n(123), - ElementType: n(40), - DomHandler: i, - get FeedHandler() { - return o('FeedHandler', n(281)); - }, - get Stream() { - return o('Stream', n(295)); - }, - get WritableStream() { - return o('WritableStream', n(131)); - }, - get ProxyHandler() { - return o('ProxyHandler', n(302)); - }, - get DomUtils() { - return o('DomUtils', n(126)); - }, - get CollectingHandler() { - return o('CollectingHandler', n(303)); - }, - DefaultHandler: i, - get RssHandler() { - return o('RssHandler', this.FeedHandler); - }, - parseDOM: function(t, e) { - var n = new i(e); - return new r(n, e).end(t), n.dom; - }, - parseFeed: function(e, n) { - var i = new t.exports.FeedHandler(n); - return new r(i, n).end(e), i.dom; - }, - createDomStream: function(t, e, n) { - var o = new i(t, e, n); - return new r(o, e); - }, - EVENTS: { - attribute: 2, - cdatastart: 0, - cdataend: 0, - text: 1, - processinginstruction: 2, - comment: 1, - commentend: 0, - closetag: 1, - opentag: 2, - opentagname: 1, - error: 1, - end: 0 - } - }; - }, - function(t, e, n) { - var r = n(173), - i = n(66), - o = n(180), - a = n(181), - s = n(182), - u = n(26), - l = n(93), - c = l(r), - f = l(i), - d = l(o), - h = l(a), - p = l(s), - g = u; - ((r && '[object DataView]' != g(new r(new ArrayBuffer(1)))) || - (i && '[object Map]' != g(new i())) || - (o && '[object Promise]' != g(o.resolve())) || - (a && '[object Set]' != g(new a())) || - (s && '[object WeakMap]' != g(new s()))) && - (g = function(t) { - var e = u(t), - n = '[object Object]' == e ? t.constructor : void 0, - r = n ? l(n) : ''; - if (r) - switch (r) { - case c: - return '[object DataView]'; - case f: - return '[object Map]'; - case d: - return '[object Promise]'; - case h: - return '[object Set]'; - case p: - return '[object WeakMap]'; - } - return e; - }), - (t.exports = g); - }, - function(t, e, n) { - var r = n(18).Symbol; - t.exports = r; - }, - function(t, e, n) { - (function(t) { - var r = n(18), - i = n(184), - o = e && !e.nodeType && e, - a = o && 'object' == typeof t && t && !t.nodeType && t, - s = a && a.exports === o ? r.Buffer : void 0, - u = (s ? s.isBuffer : void 0) || i; - t.exports = u; - }.call(this, n(35)(t))); - }, - function(t, e) { - t.exports = function(t) { - return ( - t.webpackPolyfill || - ((t.deprecate = function() {}), - (t.paths = []), - t.children || (t.children = []), - Object.defineProperty(t, 'loaded', { - enumerable: !0, - get: function() { - return t.l; - } - }), - Object.defineProperty(t, 'id', { - enumerable: !0, - get: function() { - return t.i; - } - }), - (t.webpackPolyfill = 1)), - t - ); - }; - }, - function(t, e) { - t.exports = function(t, e) { - return t === e || (t != t && e != e); - }; - }, - function(t, e, n) { - var r = n(105), - i = n(71); - t.exports = function(t, e, n, o) { - var a = !n; - n || (n = {}); - for (var s = -1, u = e.length; ++s < u; ) { - var l = e[s], - c = o ? o(n[l], t[l], l, n, t) : void 0; - void 0 === c && (c = t[l]), a ? i(n, l, c) : r(n, l, c); - } - return n; - }; - }, - function(t, e, n) { - var r = n(106), - i = n(90), - o = n(27); - t.exports = function(t) { - return o(t) ? r(t) : i(t); - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.bottom = u), - (e.cloneLayout = function(t) { - for (var e = Array(t.length), n = 0, r = t.length; n < r; n++) - e[n] = l(t[n]); - return e; - }), - (e.cloneLayoutItem = l), - (e.childrenEqual = function(t, e) { - return (0, r.default)( - i.default.Children.map(t, function(t) { - return t.key; - }), - i.default.Children.map(e, function(t) { - return t.key; - }) - ); - }), - (e.collides = c), - (e.compact = f), - (e.compactItem = p), - (e.correctBounds = g), - (e.getLayoutItem = v), - (e.getFirstCollision = m), - (e.getAllCollisions = y), - (e.getStatics = b), - (e.moveElement = _), - (e.moveElementAwayFromCollision = x), - (e.perc = function(t) { - return 100 * t + '%'; - }), - (e.setTransform = function(t) { - var e = t.top, - n = t.left, - r = t.width, - i = t.height, - o = 'translate('.concat(n, 'px,').concat(e, 'px)'); - return { - transform: o, - WebkitTransform: o, - MozTransform: o, - msTransform: o, - OTransform: o, - width: ''.concat(r, 'px'), - height: ''.concat(i, 'px'), - position: 'absolute' - }; - }), - (e.setTopLeft = function(t) { - var e = t.top, - n = t.left, - r = t.width, - i = t.height; - return { - top: ''.concat(e, 'px'), - left: ''.concat(n, 'px'), - width: ''.concat(r, 'px'), - height: ''.concat(i, 'px'), - position: 'absolute' - }; - }), - (e.sortLayoutItems = w), - (e.sortLayoutItemsByRowCol = S), - (e.sortLayoutItemsByColRow = E), - (e.synchronizeLayoutWithChildren = function(t, e, n, r) { - t = t || []; - var o = []; - return ( - i.default.Children.forEach(e, function(e, n) { - var r = v(t, String(e.key)); - if (r) o[n] = l(r); - else { - 0; - var i = e.props['data-grid'] || e.props._grid; - o[n] = l( - i - ? (function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = null != arguments[e] ? arguments[e] : {}; - e % 2 - ? a(n, !0).forEach(function(e) { - s(t, e, n[e]); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties( - t, - Object.getOwnPropertyDescriptors(n) - ) - : a(n).forEach(function(e) { - Object.defineProperty( - t, - e, - Object.getOwnPropertyDescriptor(n, e) - ); - }); - } - return t; - })({}, i, { i: e.key }) - : { w: 1, h: 1, x: 0, y: u(o), i: String(e.key) } - ); - } - }), - (o = f((o = g(o, { cols: n })), r, n)) - ); - }), - (e.validateLayout = k), - (e.autoBindHandlers = function(t, e) { - e.forEach(function(e) { - return (t[e] = t[e].bind(t)); - }); - }), - (e.noop = void 0); - var r = o(n(77)), - i = o(n(0)); - function o(t) { - return t && t.__esModule ? t : { default: t }; - } - function a(t, e) { - var n = Object.keys(t); - if (Object.getOwnPropertySymbols) { - var r = Object.getOwnPropertySymbols(t); - e && - (r = r.filter(function(e) { - return Object.getOwnPropertyDescriptor(t, e).enumerable; - })), - n.push.apply(n, r); - } - return n; - } - function s(t, e, n) { - return ( - e in t - ? Object.defineProperty(t, e, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (t[e] = n), - t - ); - } - function u(t) { - for (var e, n = 0, r = 0, i = t.length; r < i; r++) - (e = t[r].y + t[r].h) > n && (n = e); - return n; - } - function l(t) { - return { - w: t.w, - h: t.h, - x: t.x, - y: t.y, - i: t.i, - minW: t.minW, - maxW: t.maxW, - minH: t.minH, - maxH: t.maxH, - moved: Boolean(t.moved), - static: Boolean(t.static), - isDraggable: t.isDraggable, - isResizable: t.isResizable - }; - } - function c(t, e) { - return ( - t.i !== e.i && - !(t.x + t.w <= e.x) && - !(t.x >= e.x + e.w) && !(t.y + t.h <= e.y) && !(t.y >= e.y + e.h) - ); - } - function f(t, e, n) { - for ( - var r = b(t), i = w(t, e), o = Array(t.length), a = 0, s = i.length; - a < s; - a++ - ) { - var u = l(i[a]); - u.static || ((u = p(r, u, e, n, i)), r.push(u)), - (o[t.indexOf(i[a])] = u), - (u.moved = !1); - } - return o; - } - var d = { x: 'w', y: 'h' }; - function h(t, e, n, r) { - var i = d[r]; - e[r] += 1; - for ( - var o = - t - .map(function(t) { - return t.i; - }) - .indexOf(e.i) + 1; - o < t.length; - o++ - ) { - var a = t[o]; - if (!a.static) { - if (a.y > e.y + e.h) break; - c(e, a) && h(t, a, n + e[i], r); - } - } - e[r] = n; - } - function p(t, e, n, r, i) { - var o, - a = 'horizontal' === n; - if ('vertical' === n) - for (e.y = Math.min(u(t), e.y); e.y > 0 && !m(t, e); ) e.y--; - else if (a) - for (e.y = Math.min(u(t), e.y); e.x > 0 && !m(t, e); ) e.x--; - for (; (o = m(t, e)); ) - a ? h(i, e, o.x + o.w, 'x') : h(i, e, o.y + o.h, 'y'), - a && e.x + e.w > r && ((e.x = r - e.w), e.y++); - return e; - } - function g(t, e) { - for (var n = b(t), r = 0, i = t.length; r < i; r++) { - var o = t[r]; - if ( - (o.x + o.w > e.cols && (o.x = e.cols - o.w), - o.x < 0 && ((o.x = 0), (o.w = e.cols)), - o.static) - ) - for (; m(n, o); ) o.y++; - else n.push(o); - } - return t; - } - function v(t, e) { - for (var n = 0, r = t.length; n < r; n++) if (t[n].i === e) return t[n]; - } - function m(t, e) { - for (var n = 0, r = t.length; n < r; n++) if (c(t[n], e)) return t[n]; - } - function y(t, e) { - return t.filter(function(t) { - return c(t, e); - }); - } - function b(t) { - return t.filter(function(t) { - return t.static; - }); - } - function _(t, e, n, r, i, o, a, s) { - if (e.static) return t; - if (e.y === r && e.x === n) return t; - A( - 'Moving element ' - .concat(e.i, ' to [') - .concat(String(n), ',') - .concat(String(r), '] from [') - .concat(e.x, ',') - .concat(e.y, ']') - ); - var u = e.x, - l = e.y; - 'number' == typeof n && (e.x = n), - 'number' == typeof r && (e.y = r), - (e.moved = !0); - var c = w(t, a); - ('vertical' === a && 'number' == typeof r - ? l >= r - : 'horizontal' === a && 'number' == typeof n && u >= n) && - (c = c.reverse()); - var f = y(c, e); - if (o && f.length) - return ( - A('Collision prevented on '.concat(e.i, ', reverting.')), - (e.x = u), - (e.y = l), - (e.moved = !1), - t - ); - for (var d = 0, h = f.length; d < h; d++) { - var p = f[d]; - A( - 'Resolving collision between ' - .concat(e.i, ' at [') - .concat(e.x, ',') - .concat(e.y, '] and ') - .concat(p.i, ' at [') - .concat(p.x, ',') - .concat(p.y, ']') - ), - p.moved || - (t = p.static ? x(t, p, e, i, a, s) : x(t, e, p, i, a, s)); - } - return t; - } - function x(t, e, n, r, i, o) { - var a = 'horizontal' === i, - s = 'horizontal' !== i, - u = e.static; - if (r) { - r = !1; - var l = { - x: a ? Math.max(e.x - n.w, 0) : n.x, - y: s ? Math.max(e.y - n.h, 0) : n.y, - w: n.w, - h: n.h, - i: '-1' - }; - if (!m(t, l)) - return ( - A( - 'Doing reverse collision on ' - .concat(n.i, ' up to [') - .concat(l.x, ',') - .concat(l.y, '].') - ), - _(t, n, a ? l.x : void 0, s ? l.y : void 0, r, u, i, o) - ); - } - return _(t, n, a ? n.x + 1 : void 0, s ? n.y + 1 : void 0, r, u, i, o); - } - function w(t, e) { - return 'horizontal' === e ? E(t) : S(t); - } - function S(t) { - return [].concat(t).sort(function(t, e) { - return t.y > e.y || (t.y === e.y && t.x > e.x) - ? 1 - : t.y === e.y && t.x === e.x - ? 0 - : -1; - }); - } - function E(t) { - return [].concat(t).sort(function(t, e) { - return t.x > e.x || (t.x === e.x && t.y > e.y) ? 1 : -1; - }); - } - function k(t) { - var e = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : 'Layout', - n = ['x', 'y', 'w', 'h']; - if (!Array.isArray(t)) throw new Error(e + ' must be an array!'); - for (var r = 0, i = t.length; r < i; r++) { - for (var o = t[r], a = 0; a < n.length; a++) - if ('number' != typeof o[n[a]]) - throw new Error( - 'ReactGridLayout: ' + - e + - '[' + - r + - '].' + - n[a] + - ' must be a number!' - ); - if (o.i && 'string' != typeof o.i) - throw new Error( - 'ReactGridLayout: ' + e + '[' + r + '].i must be a string!' - ); - if (void 0 !== o.static && 'boolean' != typeof o.static) - throw new Error( - 'ReactGridLayout: ' + e + '[' + r + '].static must be a boolean!' - ); - } - } - function A() {} - e.noop = function() {}; - }, - function(t, e) { - t.exports = { - Text: 'text', - Directive: 'directive', - Comment: 'comment', - Script: 'script', - Style: 'style', - Tag: 'tag', - CDATA: 'cdata', - Doctype: 'doctype', - isTag: function(t) { - return 'tag' === t.type || 'script' === t.type || 'style' === t.type; - } - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }, - i = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - o = n(0), - a = u(o), - s = u(n(1)); - function u(t) { - return t && t.__esModule ? t : { default: t }; - } - var l = { - position: 'absolute', - top: 0, - left: 0, - visibility: 'hidden', - height: 0, - overflow: 'scroll', - whiteSpace: 'pre' - }, - c = [ - 'extraWidth', - 'injectStyles', - 'inputClassName', - 'inputRef', - 'inputStyle', - 'minWidth', - 'onAutosize', - 'placeholderIsMinWidth' - ], - f = function(t, e) { - (e.style.fontSize = t.fontSize), - (e.style.fontFamily = t.fontFamily), - (e.style.fontWeight = t.fontWeight), - (e.style.fontStyle = t.fontStyle), - (e.style.letterSpacing = t.letterSpacing), - (e.style.textTransform = t.textTransform); - }, - d = - !('undefined' == typeof window || !window.navigator) && - /MSIE |Trident\/|Edge\//.test(window.navigator.userAgent), - h = function() { - return d - ? '_' + - Math.random() - .toString(36) - .substr(2, 12) - : void 0; - }, - p = (function(t) { - function e(t) { - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - })(this, e); - var n = (function(t, e) { - if (!t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !e || ('object' != typeof e && 'function' != typeof e) - ? t - : e; - })(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); - return ( - (n.inputRef = function(t) { - (n.input = t), - 'function' == typeof n.props.inputRef && n.props.inputRef(t); - }), - (n.placeHolderSizerRef = function(t) { - n.placeHolderSizer = t; - }), - (n.sizerRef = function(t) { - n.sizer = t; - }), - (n.state = { inputWidth: t.minWidth, inputId: t.id || h() }), - n - ); - } - return ( - (function(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof e - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { - value: t, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - e && - (Object.setPrototypeOf - ? Object.setPrototypeOf(t, e) - : (t.__proto__ = e)); - })(e, t), - i(e, [ - { - key: 'componentDidMount', - value: function() { - (this.mounted = !0), - this.copyInputStyles(), - this.updateInputWidth(); - } - }, - { - key: 'UNSAFE_componentWillReceiveProps', - value: function(t) { - var e = t.id; - e !== this.props.id && this.setState({ inputId: e || h() }); - } - }, - { - key: 'componentDidUpdate', - value: function(t, e) { - e.inputWidth !== this.state.inputWidth && - 'function' == typeof this.props.onAutosize && - this.props.onAutosize(this.state.inputWidth), - this.updateInputWidth(); - } - }, - { - key: 'componentWillUnmount', - value: function() { - this.mounted = !1; - } - }, - { - key: 'copyInputStyles', - value: function() { - if (this.mounted && window.getComputedStyle) { - var t = this.input && window.getComputedStyle(this.input); - t && - (f(t, this.sizer), - this.placeHolderSizer && f(t, this.placeHolderSizer)); - } - } - }, - { - key: 'updateInputWidth', - value: function() { - if ( - this.mounted && - this.sizer && - void 0 !== this.sizer.scrollWidth - ) { - var t = void 0; - (t = - this.props.placeholder && - (!this.props.value || - (this.props.value && this.props.placeholderIsMinWidth)) - ? Math.max( - this.sizer.scrollWidth, - this.placeHolderSizer.scrollWidth - ) + 2 - : this.sizer.scrollWidth + 2), - (t += - 'number' === this.props.type && - void 0 === this.props.extraWidth - ? 16 - : parseInt(this.props.extraWidth) || 0) < - this.props.minWidth && (t = this.props.minWidth), - t !== this.state.inputWidth && - this.setState({ inputWidth: t }); - } - } - }, - { - key: 'getInput', - value: function() { - return this.input; - } - }, - { - key: 'focus', - value: function() { - this.input.focus(); - } - }, - { - key: 'blur', - value: function() { - this.input.blur(); - } - }, - { - key: 'select', - value: function() { - this.input.select(); - } - }, - { - key: 'renderStyles', - value: function() { - var t = this.props.injectStyles; - return d && t - ? a.default.createElement('style', { - dangerouslySetInnerHTML: { - __html: - 'input#' + - this.state.inputId + - '::-ms-clear {display: none;}' - } - }) - : null; - } - }, - { - key: 'render', - value: function() { - var t = [ - this.props.defaultValue, - this.props.value, - '' - ].reduce(function(t, e) { - return null != t ? t : e; - }), - e = r({}, this.props.style); - e.display || (e.display = 'inline-block'); - var n = r( - { - boxSizing: 'content-box', - width: this.state.inputWidth + 'px' - }, - this.props.inputStyle - ), - i = (function(t, e) { - var n = {}; - for (var r in t) - e.indexOf(r) >= 0 || - (Object.prototype.hasOwnProperty.call(t, r) && - (n[r] = t[r])); - return n; - })(this.props, []); - return ( - (function(t) { - c.forEach(function(e) { - return delete t[e]; - }); - })(i), - (i.className = this.props.inputClassName), - (i.id = this.state.inputId), - (i.style = n), - a.default.createElement( - 'div', - { className: this.props.className, style: e }, - this.renderStyles(), - a.default.createElement( - 'input', - r({}, i, { ref: this.inputRef }) - ), - a.default.createElement( - 'div', - { ref: this.sizerRef, style: l }, - t - ), - this.props.placeholder - ? a.default.createElement( - 'div', - { ref: this.placeHolderSizerRef, style: l }, - this.props.placeholder - ) - : null - ) - ); - } - } - ]), - e - ); - })(o.Component); - (p.propTypes = { - className: s.default.string, - defaultValue: s.default.any, - extraWidth: s.default.oneOfType([s.default.number, s.default.string]), - id: s.default.string, - injectStyles: s.default.bool, - inputClassName: s.default.string, - inputRef: s.default.func, - inputStyle: s.default.object, - minWidth: s.default.oneOfType([s.default.number, s.default.string]), - onAutosize: s.default.func, - onChange: s.default.func, - placeholder: s.default.string, - placeholderIsMinWidth: s.default.bool, - style: s.default.object, - value: s.default.any - }), - (p.defaultProps = { minWidth: 1, injectStyles: !0 }), - (e.default = p); - }, - function(t, e, n) { - 'use strict'; - var r = n(58), - i = { - childContextTypes: !0, - contextType: !0, - contextTypes: !0, - defaultProps: !0, - displayName: !0, - getDefaultProps: !0, - getDerivedStateFromError: !0, - getDerivedStateFromProps: !0, - mixins: !0, - propTypes: !0, - type: !0 - }, - o = { - name: !0, - length: !0, - prototype: !0, - caller: !0, - callee: !0, - arguments: !0, - arity: !0 - }, - a = { - $$typeof: !0, - compare: !0, - defaultProps: !0, - displayName: !0, - propTypes: !0, - type: !0 - }, - s = {}; - function u(t) { - return r.isMemo(t) ? a : s[t.$$typeof] || i; - } - (s[r.ForwardRef] = { - $$typeof: !0, - render: !0, - defaultProps: !0, - displayName: !0, - propTypes: !0 - }), - (s[r.Memo] = a); - var l = Object.defineProperty, - c = Object.getOwnPropertyNames, - f = Object.getOwnPropertySymbols, - d = Object.getOwnPropertyDescriptor, - h = Object.getPrototypeOf, - p = Object.prototype; - t.exports = function t(e, n, r) { - if ('string' != typeof n) { - if (p) { - var i = h(n); - i && i !== p && t(e, i, r); - } - var a = c(n); - f && (a = a.concat(f(n))); - for (var s = u(e), g = u(n), v = 0; v < a.length; ++v) { - var m = a[v]; - if (!(o[m] || (r && r[m]) || (g && g[m]) || (s && s[m]))) { - var y = d(n, m); - try { - l(e, m, y); - } catch (t) {} - } - } - } - return e; - }; - }, - function(t, e, n) { - 'use strict'; - (function(t, r) { - function i(t) { - return (i = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - })(t); - } - function o(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - function a(t, e, n) { - return ( - e in t - ? Object.defineProperty(t, e, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (t[e] = n), - t - ); - } - function s(t) { - for (var e = 1; e < arguments.length; e++) { - var n = null != arguments[e] ? arguments[e] : {}, - r = Object.keys(n); - 'function' == typeof Object.getOwnPropertySymbols && - (r = r.concat( - Object.getOwnPropertySymbols(n).filter(function(t) { - return Object.getOwnPropertyDescriptor(n, t).enumerable; - }) - )), - r.forEach(function(e) { - a(t, e, n[e]); - }); - } - return t; - } - function u(t, e) { - return ( - (function(t) { - if (Array.isArray(t)) return t; - })(t) || - (function(t, e) { - var n = [], - r = !0, - i = !1, - o = void 0; - try { - for ( - var a, s = t[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !e || n.length !== e); - r = !0 - ); - } catch (t) { - (i = !0), (o = t); - } finally { - try { - r || null == s.return || s.return(); - } finally { - if (i) throw o; - } - } - return n; - })(t, e) || - (function() { - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance' - ); - })() - ); - } - n.d(e, 'a', function() { - return Et; - }), - n.d(e, 'b', function() { - return xt; - }), - n.d(e, 'c', function() { - return St; - }); - var l = function() {}, - c = {}, - f = {}, - d = { mark: l, measure: l }; - try { - 'undefined' != typeof window && (c = window), - 'undefined' != typeof document && (f = document), - 'undefined' != typeof MutationObserver && MutationObserver, - 'undefined' != typeof performance && (d = performance); - } catch (t) {} - var h = (c.navigator || {}).userAgent, - p = void 0 === h ? '' : h, - g = c, - v = f, - m = d, - y = - (g.document, - !!v.documentElement && - !!v.head && - 'function' == typeof v.addEventListener && - 'function' == typeof v.createElement), - b = - (~p.indexOf('MSIE') || p.indexOf('Trident/'), - (function() { - try { - } catch (t) { - return !1; - } - })(), - [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]), - _ = b.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]), - x = { - GROUP: 'group', - SWAP_OPACITY: 'swap-opacity', - PRIMARY: 'primary', - SECONDARY: 'secondary' - }, - w = - ([ - 'xs', - 'sm', - 'lg', - 'fw', - 'ul', - 'li', - 'border', - 'pull-left', - 'pull-right', - 'spin', - 'pulse', - 'rotate-90', - 'rotate-180', - 'rotate-270', - 'flip-horizontal', - 'flip-vertical', - 'flip-both', - 'stack', - 'stack-1x', - 'stack-2x', - 'inverse', - 'layers', - 'layers-text', - 'layers-counter', - x.GROUP, - x.SWAP_OPACITY, - x.PRIMARY, - x.SECONDARY - ] - .concat( - b.map(function(t) { - return ''.concat(t, 'x'); - }) - ) - .concat( - _.map(function(t) { - return 'w-'.concat(t); - }) - ), - g.FontAwesomeConfig || {}); - if (v && 'function' == typeof v.querySelector) { - [ - ['data-family-prefix', 'familyPrefix'], - ['data-replacement-class', 'replacementClass'], - ['data-auto-replace-svg', 'autoReplaceSvg'], - ['data-auto-add-css', 'autoAddCss'], - ['data-auto-a11y', 'autoA11y'], - ['data-search-pseudo-elements', 'searchPseudoElements'], - ['data-observe-mutations', 'observeMutations'], - ['data-mutate-approach', 'mutateApproach'], - ['data-keep-original-source', 'keepOriginalSource'], - ['data-measure-performance', 'measurePerformance'], - ['data-show-missing-icons', 'showMissingIcons'] - ].forEach(function(t) { - var e = u(t, 2), - n = e[0], - r = e[1], - i = (function(t) { - return '' === t || ('false' !== t && ('true' === t || t)); - })( - (function(t) { - var e = v.querySelector('script[' + t + ']'); - if (e) return e.getAttribute(t); - })(n) - ); - null != i && (w[r] = i); - }); - } - var S = s( - {}, - { - familyPrefix: 'fa', - replacementClass: 'svg-inline--fa', - autoReplaceSvg: !0, - autoAddCss: !0, - autoA11y: !0, - searchPseudoElements: !1, - observeMutations: !0, - mutateApproach: 'async', - keepOriginalSource: !0, - measurePerformance: !1, - showMissingIcons: !0 - }, - w - ); - S.autoReplaceSvg || (S.observeMutations = !1); - var E = s({}, S); - g.FontAwesomeConfig = E; - var k = g || {}; - k.___FONT_AWESOME___ || (k.___FONT_AWESOME___ = {}), - k.___FONT_AWESOME___.styles || (k.___FONT_AWESOME___.styles = {}), - k.___FONT_AWESOME___.hooks || (k.___FONT_AWESOME___.hooks = {}), - k.___FONT_AWESOME___.shims || (k.___FONT_AWESOME___.shims = []); - var A = k.___FONT_AWESOME___, - T = []; - y && - ((v.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test( - v.readyState - ) || - v.addEventListener('DOMContentLoaded', function t() { - v.removeEventListener('DOMContentLoaded', t), - 1, - T.map(function(t) { - return t(); - }); - })); - var C, - O = function() {}, - P = - void 0 !== t && - void 0 !== t.process && - 'function' == typeof t.process.emit, - M = void 0 === r ? setTimeout : r, - L = []; - function D() { - for (var t = 0; t < L.length; t++) L[t][0](L[t][1]); - (L = []), (C = !1); - } - function j(t, e) { - L.push([t, e]), C || ((C = !0), M(D, 0)); - } - function R(t) { - var e = t.owner, - n = e._state, - r = e._data, - i = t[n], - o = t.then; - if ('function' == typeof i) { - n = 'fulfilled'; - try { - r = i(r); - } catch (t) { - F(o, t); - } - } - N(o, r) || - ('fulfilled' === n && z(o, r), 'rejected' === n && F(o, r)); - } - function N(t, e) { - var n; - try { - if (t === e) - throw new TypeError( - 'A promises callback cannot return that same promise.' - ); - if (e && ('function' == typeof e || 'object' === i(e))) { - var r = e.then; - if ('function' == typeof r) - return ( - r.call( - e, - function(r) { - n || ((n = !0), e === r ? I(t, r) : z(t, r)); - }, - function(e) { - n || ((n = !0), F(t, e)); - } - ), - !0 - ); - } - } catch (e) { - return n || F(t, e), !0; - } - return !1; - } - function z(t, e) { - (t !== e && N(t, e)) || I(t, e); - } - function I(t, e) { - 'pending' === t._state && - ((t._state = 'settled'), (t._data = e), j(B, t)); - } - function F(t, e) { - 'pending' === t._state && - ((t._state = 'settled'), (t._data = e), j(G, t)); - } - function V(t) { - t._then = t._then.forEach(R); - } - function B(t) { - (t._state = 'fulfilled'), V(t); - } - function G(e) { - (e._state = 'rejected'), - V(e), - !e._handled && - P && - t.process.emit('unhandledRejection', e._data, e); - } - function H(e) { - t.process.emit('rejectionHandled', e); - } - function U(t) { - if ('function' != typeof t) - throw new TypeError('Promise resolver ' + t + ' is not a function'); - if (this instanceof U == !1) - throw new TypeError( - "Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function." - ); - (this._then = []), - (function(t, e) { - function n(t) { - F(e, t); - } - try { - t(function(t) { - z(e, t); - }, n); - } catch (t) { - n(t); - } - })(t, this); - } - (U.prototype = { - constructor: U, - _state: 'pending', - _then: null, - _data: void 0, - _handled: !1, - then: function(t, e) { - var n = { - owner: this, - then: new this.constructor(O), - fulfilled: t, - rejected: e - }; - return ( - (!e && !t) || - this._handled || - ((this._handled = !0), - 'rejected' === this._state && P && j(H, this)), - 'fulfilled' === this._state || 'rejected' === this._state - ? j(R, n) - : this._then.push(n), - n.then - ); - }, - catch: function(t) { - return this.then(null, t); - } - }), - (U.all = function(t) { - if (!Array.isArray(t)) - throw new TypeError('You must pass an array to Promise.all().'); - return new U(function(e, n) { - var r = [], - i = 0; - function o(t) { - return ( - i++, - function(n) { - (r[t] = n), --i || e(r); - } - ); - } - for (var a, s = 0; s < t.length; s++) - (a = t[s]) && 'function' == typeof a.then - ? a.then(o(s), n) - : (r[s] = a); - i || e(r); - }); - }), - (U.race = function(t) { - if (!Array.isArray(t)) - throw new TypeError('You must pass an array to Promise.race().'); - return new U(function(e, n) { - for (var r, i = 0; i < t.length; i++) - (r = t[i]) && 'function' == typeof r.then ? r.then(e, n) : e(r); - }); - }), - (U.resolve = function(t) { - return t && 'object' === i(t) && t.constructor === U - ? t - : new U(function(e) { - e(t); - }); - }), - (U.reject = function(t) { - return new U(function(e, n) { - n(t); - }); - }); - var q = { size: 16, x: 0, y: 0, rotate: 0, flipX: !1, flipY: !1 }; - function W(t) { - if (t && y) { - var e = v.createElement('style'); - e.setAttribute('type', 'text/css'), (e.innerHTML = t); - for ( - var n = v.head.childNodes, r = null, i = n.length - 1; - i > -1; - i-- - ) { - var o = n[i], - a = (o.tagName || '').toUpperCase(); - ['STYLE', 'LINK'].indexOf(a) > -1 && (r = o); - } - return v.head.insertBefore(e, r), t; - } - } - function X() { - for (var t = 12, e = ''; t-- > 0; ) - e += '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'[ - (62 * Math.random()) | 0 - ]; - return e; - } - function Y(t) { - return '' - .concat(t) - .replace(/&/g, '&') - .replace(/"/g, '"') - .replace(/'/g, ''') - .replace(//g, '>'); - } - function $(t) { - return Object.keys(t || {}).reduce(function(e, n) { - return e + ''.concat(n, ': ').concat(t[n], ';'); - }, ''); - } - function Q(t) { - return ( - t.size !== q.size || - t.x !== q.x || - t.y !== q.y || - t.rotate !== q.rotate || - t.flipX || - t.flipY - ); - } - function K(t) { - var e = t.transform, - n = t.containerWidth, - r = t.iconWidth, - i = { transform: 'translate('.concat(n / 2, ' 256)') }, - o = 'translate('.concat(32 * e.x, ', ').concat(32 * e.y, ') '), - a = 'scale(' - .concat((e.size / 16) * (e.flipX ? -1 : 1), ', ') - .concat((e.size / 16) * (e.flipY ? -1 : 1), ') '), - s = 'rotate('.concat(e.rotate, ' 0 0)'); - return { - outer: i, - inner: { - transform: '' - .concat(o, ' ') - .concat(a, ' ') - .concat(s) - }, - path: { transform: 'translate('.concat((r / 2) * -1, ' -256)') } - }; - } - var Z = { x: 0, y: 0, width: '100%', height: '100%' }; - function J(t) { - var e = - !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1]; - return ( - t.attributes && - (t.attributes.fill || e) && - (t.attributes.fill = 'black'), - t - ); - } - function tt(t) { - var e = t.icons, - n = e.main, - r = e.mask, - i = t.prefix, - o = t.iconName, - a = t.transform, - u = t.symbol, - l = t.title, - c = t.maskId, - f = t.titleId, - d = t.extra, - h = t.watchable, - p = void 0 !== h && h, - g = r.found ? r : n, - v = g.width, - m = g.height, - y = 'fa-w-'.concat(Math.ceil((v / m) * 16)), - b = [ - E.replacementClass, - o ? ''.concat(E.familyPrefix, '-').concat(o) : '', - y - ] - .filter(function(t) { - return -1 === d.classes.indexOf(t); - }) - .concat(d.classes) - .join(' '), - _ = { - children: [], - attributes: s({}, d.attributes, { - 'data-prefix': i, - 'data-icon': o, - class: b, - role: d.attributes.role || 'img', - xmlns: 'http://www.w3.org/2000/svg', - viewBox: '0 0 '.concat(v, ' ').concat(m) - }) - }; - p && (_.attributes['data-fa-i2svg'] = ''), - l && - _.children.push({ - tag: 'title', - attributes: { - id: - _.attributes['aria-labelledby'] || 'title-'.concat(f || X()) - }, - children: [l] - }); - var x = s({}, _, { - prefix: i, - iconName: o, - main: n, - mask: r, - maskId: c, - transform: a, - symbol: u, - styles: d.styles - }), - w = - r.found && n.found - ? (function(t) { - var e, - n = t.children, - r = t.attributes, - i = t.main, - o = t.mask, - a = t.maskId, - u = t.transform, - l = i.width, - c = i.icon, - f = o.width, - d = o.icon, - h = K({ transform: u, containerWidth: f, iconWidth: l }), - p = { - tag: 'rect', - attributes: s({}, Z, { fill: 'white' }) - }, - g = c.children ? { children: c.children.map(J) } : {}, - v = { - tag: 'g', - attributes: s({}, h.inner), - children: [ - J( - s( - { - tag: c.tag, - attributes: s({}, c.attributes, h.path) - }, - g - ) - ) - ] - }, - m = { - tag: 'g', - attributes: s({}, h.outer), - children: [v] - }, - y = 'mask-'.concat(a || X()), - b = 'clip-'.concat(a || X()), - _ = { - tag: 'mask', - attributes: s({}, Z, { - id: y, - maskUnits: 'userSpaceOnUse', - maskContentUnits: 'userSpaceOnUse' - }), - children: [p, m] - }, - x = { - tag: 'defs', - children: [ - { - tag: 'clipPath', - attributes: { id: b }, - children: - ((e = d), 'g' === e.tag ? e.children : [e]) - }, - _ - ] - }; - return ( - n.push(x, { - tag: 'rect', - attributes: s( - { - fill: 'currentColor', - 'clip-path': 'url(#'.concat(b, ')'), - mask: 'url(#'.concat(y, ')') - }, - Z - ) - }), - { children: n, attributes: r } - ); - })(x) - : (function(t) { - var e = t.children, - n = t.attributes, - r = t.main, - i = t.transform, - o = $(t.styles); - if ((o.length > 0 && (n.style = o), Q(i))) { - var a = K({ - transform: i, - containerWidth: r.width, - iconWidth: r.width - }); - e.push({ - tag: 'g', - attributes: s({}, a.outer), - children: [ - { - tag: 'g', - attributes: s({}, a.inner), - children: [ - { - tag: r.icon.tag, - children: r.icon.children, - attributes: s({}, r.icon.attributes, a.path) - } - ] - } - ] - }); - } else e.push(r.icon); - return { children: e, attributes: n }; - })(x), - S = w.children, - k = w.attributes; - return ( - (x.children = S), - (x.attributes = k), - u - ? (function(t) { - var e = t.prefix, - n = t.iconName, - r = t.children, - i = t.attributes, - o = t.symbol; - return [ - { - tag: 'svg', - attributes: { style: 'display: none;' }, - children: [ - { - tag: 'symbol', - attributes: s({}, i, { - id: - !0 === o - ? '' - .concat(e, '-') - .concat(E.familyPrefix, '-') - .concat(n) - : o - }), - children: r - } - ] - } - ]; - })(x) - : (function(t) { - var e = t.children, - n = t.main, - r = t.mask, - i = t.attributes, - o = t.styles, - a = t.transform; - if (Q(a) && n.found && !r.found) { - var u = { x: n.width / n.height / 2, y: 0.5 }; - i.style = $( - s({}, o, { - 'transform-origin': '' - .concat(u.x + a.x / 16, 'em ') - .concat(u.y + a.y / 16, 'em') - }) - ); - } - return [{ tag: 'svg', attributes: i, children: e }]; - })(x) - ); - } - var et = function() {}, - nt = - (E.measurePerformance && m && m.mark && m.measure, - function(t, e, n, r) { - var i, - o, - a, - s = Object.keys(t), - u = s.length, - l = - void 0 !== r - ? (function(t, e) { - return function(n, r, i, o) { - return t.call(e, n, r, i, o); - }; - })(e, r) - : e; - for ( - void 0 === n ? ((i = 1), (a = t[s[0]])) : ((i = 0), (a = n)); - i < u; - i++ - ) - a = l(a, t[(o = s[i])], o, t); - return a; - }); - function rt(t, e) { - var n = - arguments.length > 2 && void 0 !== arguments[2] - ? arguments[2] - : {}, - r = n.skipHooks, - i = void 0 !== r && r, - o = Object.keys(e).reduce(function(t, n) { - var r = e[n]; - return !!r.icon ? (t[r.iconName] = r.icon) : (t[n] = r), t; - }, {}); - 'function' != typeof A.hooks.addPack || i - ? (A.styles[t] = s({}, A.styles[t] || {}, o)) - : A.hooks.addPack(t, o), - 'fas' === t && rt('fa', e); - } - var it = A.styles, - ot = A.shims, - at = function() { - var t = function(t) { - return nt( - it, - function(e, n, r) { - return (e[r] = nt(n, t, {})), e; - }, - {} - ); - }; - t(function(t, e, n) { - return e[3] && (t[e[3]] = n), t; - }), - t(function(t, e, n) { - var r = e[2]; - return ( - (t[n] = n), - r.forEach(function(e) { - t[e] = n; - }), - t - ); - }); - var e = 'far' in it; - nt( - ot, - function(t, n) { - var r = n[0], - i = n[1], - o = n[2]; - return ( - 'far' !== i || e || (i = 'fas'), - (t[r] = { prefix: i, iconName: o }), - t - ); - }, - {} - ); - }; - at(); - A.styles; - function st(t, e, n) { - if (t && t[e] && t[e][n]) - return { prefix: e, iconName: n, icon: t[e][n] }; - } - function ut(t) { - var e = t.tag, - n = t.attributes, - r = void 0 === n ? {} : n, - i = t.children, - o = void 0 === i ? [] : i; - return 'string' == typeof t - ? Y(t) - : '<' - .concat(e, ' ') - .concat( - (function(t) { - return Object.keys(t || {}) - .reduce(function(e, n) { - return e + ''.concat(n, '="').concat(Y(t[n]), '" '); - }, '') - .trim(); - })(r), - '>' - ) - .concat(o.map(ut).join(''), ''); - } - var lt = function(t) { - var e = { size: 16, x: 0, y: 0, flipX: !1, flipY: !1, rotate: 0 }; - return t - ? t - .toLowerCase() - .split(' ') - .reduce(function(t, e) { - var n = e.toLowerCase().split('-'), - r = n[0], - i = n.slice(1).join('-'); - if (r && 'h' === i) return (t.flipX = !0), t; - if (r && 'v' === i) return (t.flipY = !0), t; - if (((i = parseFloat(i)), isNaN(i))) return t; - switch (r) { - case 'grow': - t.size = t.size + i; - break; - case 'shrink': - t.size = t.size - i; - break; - case 'left': - t.x = t.x - i; - break; - case 'right': - t.x = t.x + i; - break; - case 'up': - t.y = t.y - i; - break; - case 'down': - t.y = t.y + i; - break; - case 'rotate': - t.rotate = t.rotate + i; - } - return t; - }, e) - : e; - }; - function ct(t) { - (this.name = 'MissingIcon'), - (this.message = t || 'Icon unavailable'), - (this.stack = new Error().stack); - } - (ct.prototype = Object.create(Error.prototype)), - (ct.prototype.constructor = ct); - var ft = { fill: 'currentColor' }, - dt = { attributeType: 'XML', repeatCount: 'indefinite', dur: '2s' }, - ht = { - tag: 'path', - attributes: s({}, ft, { - d: - 'M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z' - }) - }, - pt = s({}, dt, { attributeName: 'opacity' }); - s({}, ft, { cx: '256', cy: '364', r: '28' }), - s({}, dt, { attributeName: 'r', values: '28;14;28;28;14;28;' }), - s({}, pt, { values: '1;0;1;1;0;1;' }), - s({}, ft, { - opacity: '1', - d: - 'M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z' - }), - s({}, pt, { values: '1;0;0;0;0;1;' }), - s({}, ft, { - opacity: '0', - d: - 'M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z' - }), - s({}, pt, { values: '0;0;1;1;0;0;' }), - A.styles; - function gt(t) { - var e = t[0], - n = t[1], - r = u(t.slice(4), 1)[0]; - return { - found: !0, - width: e, - height: n, - icon: Array.isArray(r) - ? { - tag: 'g', - attributes: { - class: ''.concat(E.familyPrefix, '-').concat(x.GROUP) - }, - children: [ - { - tag: 'path', - attributes: { - class: '' - .concat(E.familyPrefix, '-') - .concat(x.SECONDARY), - fill: 'currentColor', - d: r[0] - } - }, - { - tag: 'path', - attributes: { - class: ''.concat(E.familyPrefix, '-').concat(x.PRIMARY), - fill: 'currentColor', - d: r[1] - } - } - ] - } - : { tag: 'path', attributes: { fill: 'currentColor', d: r } } - }; - } - A.styles; - function vt() { - var t = 'svg-inline--fa', - e = E.familyPrefix, - n = E.replacementClass, - r = - 'svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}'; - if ('fa' !== e || n !== t) { - var i = new RegExp('\\.'.concat('fa', '\\-'), 'g'), - o = new RegExp('\\--'.concat('fa', '\\-'), 'g'), - a = new RegExp('\\.'.concat(t), 'g'); - r = r - .replace(i, '.'.concat(e, '-')) - .replace(o, '--'.concat(e, '-')) - .replace(a, '.'.concat(n)); - } - return r; - } - function mt() { - E.autoAddCss && !wt && (W(vt()), (wt = !0)); - } - function yt(t, e) { - return ( - Object.defineProperty(t, 'abstract', { get: e }), - Object.defineProperty(t, 'html', { - get: function() { - return t.abstract.map(function(t) { - return ut(t); - }); - } - }), - Object.defineProperty(t, 'node', { - get: function() { - if (y) { - var e = v.createElement('div'); - return (e.innerHTML = t.html), e.children; - } - } - }), - t - ); - } - function bt(t) { - var e = t.prefix, - n = void 0 === e ? 'fa' : e, - r = t.iconName; - if (r) return st(xt.definitions, n, r) || st(A.styles, n, r); - } - var _t, - xt = new ((function() { - function t() { - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - })(this, t), - (this.definitions = {}); - } - var e, n, r; - return ( - (e = t), - (n = [ - { - key: 'add', - value: function() { - for ( - var t = this, - e = arguments.length, - n = new Array(e), - r = 0; - r < e; - r++ - ) - n[r] = arguments[r]; - var i = n.reduce(this._pullDefinitions, {}); - Object.keys(i).forEach(function(e) { - (t.definitions[e] = s({}, t.definitions[e] || {}, i[e])), - rt(e, i[e]), - at(); - }); - } - }, - { - key: 'reset', - value: function() { - this.definitions = {}; - } - }, - { - key: '_pullDefinitions', - value: function(t, e) { - var n = e.prefix && e.iconName && e.icon ? { 0: e } : e; - return ( - Object.keys(n).map(function(e) { - var r = n[e], - i = r.prefix, - o = r.iconName, - a = r.icon; - t[i] || (t[i] = {}), (t[i][o] = a); - }), - t - ); - } - } - ]) && o(e.prototype, n), - r && o(e, r), - t - ); - })())(), - wt = !1, - St = { - transform: function(t) { - return lt(t); - } - }, - Et = - ((_t = function(t) { - var e = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : {}, - n = e.transform, - r = void 0 === n ? q : n, - i = e.symbol, - o = void 0 !== i && i, - a = e.mask, - u = void 0 === a ? null : a, - l = e.maskId, - c = void 0 === l ? null : l, - f = e.title, - d = void 0 === f ? null : f, - h = e.titleId, - p = void 0 === h ? null : h, - g = e.classes, - v = void 0 === g ? [] : g, - m = e.attributes, - y = void 0 === m ? {} : m, - b = e.styles, - _ = void 0 === b ? {} : b; - if (t) { - var x = t.prefix, - w = t.iconName, - S = t.icon; - return yt(s({ type: 'icon' }, t), function() { - return ( - mt(), - E.autoA11y && - (d - ? (y['aria-labelledby'] = '' - .concat(E.replacementClass, '-title-') - .concat(p || X())) - : ((y['aria-hidden'] = 'true'), - (y.focusable = 'false'))), - tt({ - icons: { - main: gt(S), - mask: u - ? gt(u.icon) - : { found: !1, width: null, height: null, icon: {} } - }, - prefix: x, - iconName: w, - transform: s({}, q, r), - symbol: o, - title: d, - maskId: c, - titleId: p, - extra: { attributes: y, styles: _, classes: v } - }) - ); - }); - } - }), - function(t) { - var e = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : {}, - n = (t || {}).icon ? t : bt(t || {}), - r = e.mask; - return ( - r && (r = (r || {}).icon ? r : bt(r || {})), - _t(n, s({}, e, { mask: r })) - ); - }); - }.call(this, n(13), n(230).setImmediate)); - }, - function(t, e) { - t.exports = function(t, e) { - (t.prototype = Object.create(e.prototype)), - (t.prototype.constructor = t), - (t.__proto__ = e); - }; - }, - function(t, e) { - var n = Object.prototype; - t.exports = function(t) { - var e = t && t.constructor; - return t === (('function' == typeof e && e.prototype) || n); - }; - }, - function(t, e, n) { - var r = n(183), - i = n(20), - o = Object.prototype, - a = o.hasOwnProperty, - s = o.propertyIsEnumerable, - u = r( - (function() { - return arguments; - })() - ) - ? r - : function(t) { - return i(t) && a.call(t, 'callee') && !s.call(t, 'callee'); - }; - t.exports = u; - }, - function(t, e, n) { - var r = n(185), - i = n(68), - o = n(69), - a = o && o.isTypedArray, - s = a ? i(a) : r; - t.exports = s; - }, - function(t, e, n) { - var r = n(49), - i = n(196), - o = n(197), - a = n(198), - s = n(199), - u = n(200); - function l(t) { - var e = (this.__data__ = new r(t)); - this.size = e.size; - } - (l.prototype.clear = i), - (l.prototype.delete = o), - (l.prototype.get = a), - (l.prototype.has = s), - (l.prototype.set = u), - (t.exports = l); - }, - function(t, e, n) { - var r = n(191), - i = n(192), - o = n(193), - a = n(194), - s = n(195); - function u(t) { - var e = -1, - n = null == t ? 0 : t.length; - for (this.clear(); ++e < n; ) { - var r = t[e]; - this.set(r[0], r[1]); - } - } - (u.prototype.clear = r), - (u.prototype.delete = i), - (u.prototype.get = o), - (u.prototype.has = a), - (u.prototype.set = s), - (t.exports = u); - }, - function(t, e, n) { - var r = n(36); - t.exports = function(t, e) { - for (var n = t.length; n--; ) if (r(t[n][0], e)) return n; - return -1; - }; - }, - function(t, e, n) { - var r = n(25)(Object, 'create'); - t.exports = r; - }, - function(t, e, n) { - var r = n(209); - t.exports = function(t, e) { - var n = t.__data__; - return r(e) ? n['string' == typeof e ? 'string' : 'hash'] : n.map; - }; - }, - function(t, e, n) { - var r = n(106), - i = n(219), - o = n(27); - t.exports = function(t) { - return o(t) ? r(t, !0) : i(t); - }; - }, - function(t, e) { - t.exports = function(t) { - return t; - }; - }, - function(t, e) { - 'function' == typeof Object.create - ? (t.exports = function(t, e) { - e && - ((t.super_ = e), - (t.prototype = Object.create(e.prototype, { - constructor: { - value: t, - enumerable: !1, - writable: !0, - configurable: !0 - } - }))); - }) - : (t.exports = function(t, e) { - if (e) { - t.super_ = e; - var n = function() {}; - (n.prototype = e.prototype), - (t.prototype = new n()), - (t.prototype.constructor = t); - } - }); - }, - function(t, e, n) { - var r = n(26), - i = n(20); - t.exports = function(t) { - return 'symbol' == typeof t || (i(t) && '[object Symbol]' == r(t)); - }; - }, - function(t, e, n) { - var r = n(56); - t.exports = function(t) { - if ('string' == typeof t || r(t)) return t; - var e = t + ''; - return '0' == e && 1 / t == -1 / 0 ? '-0' : e; - }; - }, - function(t, e, n) { - 'use strict'; - t.exports = n(170); - }, - function(t, e, n) { - var r = n(90), - i = n(32), - o = n(46), - a = n(10), - s = n(27), - u = n(34), - l = n(45), - c = n(47), - f = Object.prototype.hasOwnProperty; - t.exports = function(t) { - if (null == t) return !0; - if ( - s(t) && - (a(t) || - 'string' == typeof t || - 'function' == typeof t.splice || - u(t) || - c(t) || - o(t)) - ) - return !t.length; - var e = i(t); - if ('[object Map]' == e || '[object Set]' == e) return !t.size; - if (l(t)) return !r(t).length; - for (var n in t) if (f.call(t, n)) return !1; - return !0; - }; - }, - function(t, e, n) { - var r; - !(function() { - function i(t, e, n) { - return t.call.apply(t.bind, arguments); - } - function o(t, e, n) { - if (!t) throw Error(); - if (2 < arguments.length) { - var r = Array.prototype.slice.call(arguments, 2); - return function() { - var n = Array.prototype.slice.call(arguments); - return Array.prototype.unshift.apply(n, r), t.apply(e, n); - }; - } - return function() { - return t.apply(e, arguments); - }; - } - function a(t, e, n) { - return (a = - Function.prototype.bind && - -1 != Function.prototype.bind.toString().indexOf('native code') - ? i - : o).apply(null, arguments); - } - var s = - Date.now || - function() { - return +new Date(); - }; - function u(t, e) { - (this.a = t), (this.o = e || t), (this.c = this.o.document); - } - var l = !!window.FontFace; - function c(t, e, n, r) { - if (((e = t.c.createElement(e)), n)) - for (var i in n) - n.hasOwnProperty(i) && - ('style' == i - ? (e.style.cssText = n[i]) - : e.setAttribute(i, n[i])); - return r && e.appendChild(t.c.createTextNode(r)), e; - } - function f(t, e, n) { - (t = t.c.getElementsByTagName(e)[0]) || - (t = document.documentElement), - t.insertBefore(n, t.lastChild); - } - function d(t) { - t.parentNode && t.parentNode.removeChild(t); - } - function h(t, e, n) { - (e = e || []), (n = n || []); - for (var r = t.className.split(/\s+/), i = 0; i < e.length; i += 1) { - for (var o = !1, a = 0; a < r.length; a += 1) - if (e[i] === r[a]) { - o = !0; - break; - } - o || r.push(e[i]); - } - for (e = [], i = 0; i < r.length; i += 1) { - for (o = !1, a = 0; a < n.length; a += 1) - if (r[i] === n[a]) { - o = !0; - break; - } - o || e.push(r[i]); - } - t.className = e - .join(' ') - .replace(/\s+/g, ' ') - .replace(/^\s+|\s+$/, ''); - } - function p(t, e) { - for ( - var n = t.className.split(/\s+/), r = 0, i = n.length; - r < i; - r++ - ) - if (n[r] == e) return !0; - return !1; - } - function g(t, e, n) { - function r() { - s && i && o && (s(a), (s = null)); - } - e = c(t, 'link', { rel: 'stylesheet', href: e, media: 'all' }); - var i = !1, - o = !0, - a = null, - s = n || null; - l - ? ((e.onload = function() { - (i = !0), r(); - }), - (e.onerror = function() { - (i = !0), (a = Error('Stylesheet failed to load')), r(); - })) - : setTimeout(function() { - (i = !0), r(); - }, 0), - f(t, 'head', e); - } - function v(t, e, n, r) { - var i = t.c.getElementsByTagName('head')[0]; - if (i) { - var o = c(t, 'script', { src: e }), - a = !1; - return ( - (o.onload = o.onreadystatechange = function() { - a || - (this.readyState && - 'loaded' != this.readyState && - 'complete' != this.readyState) || - ((a = !0), - n && n(null), - (o.onload = o.onreadystatechange = null), - 'HEAD' == o.parentNode.tagName && i.removeChild(o)); - }), - i.appendChild(o), - setTimeout(function() { - a || ((a = !0), n && n(Error('Script load timeout'))); - }, r || 5e3), - o - ); - } - return null; - } - function m() { - (this.a = 0), (this.c = null); - } - function y(t) { - return ( - t.a++, - function() { - t.a--, _(t); - } - ); - } - function b(t, e) { - (t.c = e), _(t); - } - function _(t) { - 0 == t.a && t.c && (t.c(), (t.c = null)); - } - function x(t) { - this.a = t || '-'; - } - function w(t, e) { - (this.c = t), (this.f = 4), (this.a = 'n'); - var n = (e || 'n4').match(/^([nio])([1-9])$/i); - n && ((this.a = n[1]), (this.f = parseInt(n[2], 10))); - } - function S(t) { - var e = []; - t = t.split(/,\s*/); - for (var n = 0; n < t.length; n++) { - var r = t[n].replace(/['"]/g, ''); - -1 != r.indexOf(' ') || /^\d/.test(r) - ? e.push("'" + r + "'") - : e.push(r); - } - return e.join(','); - } - function E(t) { - return t.a + t.f; - } - function k(t) { - var e = 'normal'; - return ( - 'o' === t.a ? (e = 'oblique') : 'i' === t.a && (e = 'italic'), e - ); - } - function A(t) { - var e = 4, - n = 'n', - r = null; - return ( - t && - ((r = t.match(/(normal|oblique|italic)/i)) && - r[1] && - (n = r[1].substr(0, 1).toLowerCase()), - (r = t.match(/([1-9]00|normal|bold)/i)) && - r[1] && - (/bold/i.test(r[1]) - ? (e = 7) - : /[1-9]00/.test(r[1]) && - (e = parseInt(r[1].substr(0, 1), 10)))), - n + e - ); - } - function T(t, e) { - (this.c = t), - (this.f = t.o.document.documentElement), - (this.h = e), - (this.a = new x('-')), - (this.j = !1 !== e.events), - (this.g = !1 !== e.classes); - } - function C(t) { - if (t.g) { - var e = p(t.f, t.a.c('wf', 'active')), - n = [], - r = [t.a.c('wf', 'loading')]; - e || n.push(t.a.c('wf', 'inactive')), h(t.f, n, r); - } - O(t, 'inactive'); - } - function O(t, e, n) { - t.j && t.h[e] && (n ? t.h[e](n.c, E(n)) : t.h[e]()); - } - function P() { - this.c = {}; - } - function M(t, e) { - (this.c = t), - (this.f = e), - (this.a = c(this.c, 'span', { 'aria-hidden': 'true' }, this.f)); - } - function L(t) { - f(t.c, 'body', t.a); - } - function D(t) { - return ( - 'display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:' + - S(t.c) + - ';font-style:' + - k(t) + - ';font-weight:' + - t.f + - '00;' - ); - } - function j(t, e, n, r, i, o) { - (this.g = t), - (this.j = e), - (this.a = r), - (this.c = n), - (this.f = i || 3e3), - (this.h = o || void 0); - } - function R(t, e, n, r, i, o, a) { - (this.v = t), - (this.B = e), - (this.c = n), - (this.a = r), - (this.s = a || 'BESbswy'), - (this.f = {}), - (this.w = i || 3e3), - (this.u = o || null), - (this.m = this.j = this.h = this.g = null), - (this.g = new M(this.c, this.s)), - (this.h = new M(this.c, this.s)), - (this.j = new M(this.c, this.s)), - (this.m = new M(this.c, this.s)), - (t = D((t = new w(this.a.c + ',serif', E(this.a))))), - (this.g.a.style.cssText = t), - (t = D((t = new w(this.a.c + ',sans-serif', E(this.a))))), - (this.h.a.style.cssText = t), - (t = D((t = new w('serif', E(this.a))))), - (this.j.a.style.cssText = t), - (t = D((t = new w('sans-serif', E(this.a))))), - (this.m.a.style.cssText = t), - L(this.g), - L(this.h), - L(this.j), - L(this.m); - } - (x.prototype.c = function(t) { - for (var e = [], n = 0; n < arguments.length; n++) - e.push(arguments[n].replace(/[\W_]+/g, '').toLowerCase()); - return e.join(this.a); - }), - (j.prototype.start = function() { - var t = this.c.o.document, - e = this, - n = s(), - r = new Promise(function(r, i) { - !(function o() { - s() - n >= e.f - ? i() - : t.fonts - .load( - (function(t) { - return k(t) + ' ' + t.f + '00 300px ' + S(t.c); - })(e.a), - e.h - ) - .then( - function(t) { - 1 <= t.length ? r() : setTimeout(o, 25); - }, - function() { - i(); - } - ); - })(); - }), - i = null, - o = new Promise(function(t, n) { - i = setTimeout(n, e.f); - }); - Promise.race([o, r]).then( - function() { - i && (clearTimeout(i), (i = null)), e.g(e.a); - }, - function() { - e.j(e.a); - } - ); - }); - var N = { D: 'serif', C: 'sans-serif' }, - z = null; - function I() { - if (null === z) { - var t = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec( - window.navigator.userAgent - ); - z = - !!t && - (536 > parseInt(t[1], 10) || - (536 === parseInt(t[1], 10) && 11 >= parseInt(t[2], 10))); - } - return z; - } - function F(t, e, n) { - for (var r in N) - if (N.hasOwnProperty(r) && e === t.f[N[r]] && n === t.f[N[r]]) - return !0; - return !1; - } - function V(t) { - var e, - n = t.g.a.offsetWidth, - r = t.h.a.offsetWidth; - (e = n === t.f.serif && r === t.f['sans-serif']) || - (e = I() && F(t, n, r)), - e - ? s() - t.A >= t.w - ? I() && - F(t, n, r) && - (null === t.u || t.u.hasOwnProperty(t.a.c)) - ? B(t, t.v) - : B(t, t.B) - : (function(t) { - setTimeout( - a(function() { - V(this); - }, t), - 50 - ); - })(t) - : B(t, t.v); - } - function B(t, e) { - setTimeout( - a(function() { - d(this.g.a), d(this.h.a), d(this.j.a), d(this.m.a), e(this.a); - }, t), - 0 - ); - } - function G(t, e, n) { - (this.c = t), - (this.a = e), - (this.f = 0), - (this.m = this.j = !1), - (this.s = n); - } - R.prototype.start = function() { - (this.f.serif = this.j.a.offsetWidth), - (this.f['sans-serif'] = this.m.a.offsetWidth), - (this.A = s()), - V(this); - }; - var H = null; - function U(t) { - 0 == --t.f && - t.j && - (t.m - ? ((t = t.a).g && - h( - t.f, - [t.a.c('wf', 'active')], - [t.a.c('wf', 'loading'), t.a.c('wf', 'inactive')] - ), - O(t, 'active')) - : C(t.a)); - } - function q(t) { - (this.j = t), - (this.a = new P()), - (this.h = 0), - (this.f = this.g = !0); - } - function W(t, e, n, r, i) { - var o = 0 == --t.h; - (t.f || t.g) && - setTimeout(function() { - var t = i || null, - s = r || {}; - if (0 === n.length && o) C(e.a); - else { - (e.f += n.length), o && (e.j = o); - var u, - l = []; - for (u = 0; u < n.length; u++) { - var c = n[u], - f = s[c.c], - d = e.a, - p = c; - if ( - (d.g && - h(d.f, [d.a.c('wf', p.c, E(p).toString(), 'loading')]), - O(d, 'fontloading', p), - (d = null), - null === H) - ) - if (window.FontFace) { - p = /Gecko.*Firefox\/(\d+)/.exec( - window.navigator.userAgent - ); - var g = - /OS X.*Version\/10\..*Safari/.exec( - window.navigator.userAgent - ) && /Apple/.exec(window.navigator.vendor); - H = p ? 42 < parseInt(p[1], 10) : !g; - } else H = !1; - (d = H - ? new j(a(e.g, e), a(e.h, e), e.c, c, e.s, f) - : new R(a(e.g, e), a(e.h, e), e.c, c, e.s, t, f)), - l.push(d); - } - for (u = 0; u < l.length; u++) l[u].start(); - } - }, 0); - } - function X(t, e) { - (this.c = t), (this.a = e); - } - function Y(t, e) { - (this.c = t), (this.a = e); - } - function $(t, e) { - (this.c = t || Q), (this.a = []), (this.f = []), (this.g = e || ''); - } - (G.prototype.g = function(t) { - var e = this.a; - e.g && - h( - e.f, - [e.a.c('wf', t.c, E(t).toString(), 'active')], - [ - e.a.c('wf', t.c, E(t).toString(), 'loading'), - e.a.c('wf', t.c, E(t).toString(), 'inactive') - ] - ), - O(e, 'fontactive', t), - (this.m = !0), - U(this); - }), - (G.prototype.h = function(t) { - var e = this.a; - if (e.g) { - var n = p(e.f, e.a.c('wf', t.c, E(t).toString(), 'active')), - r = [], - i = [e.a.c('wf', t.c, E(t).toString(), 'loading')]; - n || r.push(e.a.c('wf', t.c, E(t).toString(), 'inactive')), - h(e.f, r, i); - } - O(e, 'fontinactive', t), U(this); - }), - (q.prototype.load = function(t) { - (this.c = new u(this.j, t.context || this.j)), - (this.g = !1 !== t.events), - (this.f = !1 !== t.classes), - (function(t, e, n) { - var r = [], - i = n.timeout; - !(function(t) { - t.g && h(t.f, [t.a.c('wf', 'loading')]), O(t, 'loading'); - })(e); - r = (function(t, e, n) { - var r, - i = []; - for (r in e) - if (e.hasOwnProperty(r)) { - var o = t.c[r]; - o && i.push(o(e[r], n)); - } - return i; - })(t.a, n, t.c); - var o = new G(t.c, e, i); - for (t.h = r.length, e = 0, n = r.length; e < n; e++) - r[e].load(function(e, n, r) { - W(t, o, e, n, r); - }); - })(this, new T(this.c, t), t); - }), - (X.prototype.load = function(t) { - var e = this, - n = e.a.projectId, - r = e.a.version; - if (n) { - var i = e.c.o; - v( - this.c, - (e.a.api || 'https://fast.fonts.net/jsapi') + - '/' + - n + - '.js' + - (r ? '?v=' + r : ''), - function(r) { - r - ? t([]) - : ((i['__MonotypeConfiguration__' + n] = function() { - return e.a; - }), - (function e() { - if (i['__mti_fntLst' + n]) { - var r, - o = i['__mti_fntLst' + n](), - a = []; - if (o) - for (var s = 0; s < o.length; s++) { - var u = o[s].fontfamily; - null != o[s].fontStyle && null != o[s].fontWeight - ? ((r = o[s].fontStyle + o[s].fontWeight), - a.push(new w(u, r))) - : a.push(new w(u)); - } - t(a); - } else - setTimeout(function() { - e(); - }, 50); - })()); - } - ).id = '__MonotypeAPIScript__' + n; - } else t([]); - }), - (Y.prototype.load = function(t) { - var e, - n, - r = this.a.urls || [], - i = this.a.families || [], - o = this.a.testStrings || {}, - a = new m(); - for (e = 0, n = r.length; e < n; e++) g(this.c, r[e], y(a)); - var s = []; - for (e = 0, n = i.length; e < n; e++) - if ((r = i[e].split(':'))[1]) - for (var u = r[1].split(','), l = 0; l < u.length; l += 1) - s.push(new w(r[0], u[l])); - else s.push(new w(r[0])); - b(a, function() { - t(s, o); - }); - }); - var Q = 'https://fonts.googleapis.com/css'; - function K(t) { - (this.f = t), (this.a = []), (this.c = {}); - } - var Z = { - latin: 'BESbswy', - 'latin-ext': 'çöüğş', - cyrillic: 'йяЖ', - greek: 'αβΣ', - khmer: 'កខគ', - Hanuman: 'កខគ' - }, - J = { - thin: '1', - extralight: '2', - 'extra-light': '2', - ultralight: '2', - 'ultra-light': '2', - light: '3', - regular: '4', - book: '4', - medium: '5', - 'semi-bold': '6', - semibold: '6', - 'demi-bold': '6', - demibold: '6', - bold: '7', - 'extra-bold': '8', - extrabold: '8', - 'ultra-bold': '8', - ultrabold: '8', - black: '9', - heavy: '9', - l: '3', - r: '4', - b: '7' - }, - tt = { i: 'i', italic: 'i', n: 'n', normal: 'n' }, - et = /^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/; - function nt(t, e) { - (this.c = t), (this.a = e); - } - var rt = { Arimo: !0, Cousine: !0, Tinos: !0 }; - function it(t, e) { - (this.c = t), (this.a = e); - } - function ot(t, e) { - (this.c = t), (this.f = e), (this.a = []); - } - (nt.prototype.load = function(t) { - var e = new m(), - n = this.c, - r = new $(this.a.api, this.a.text), - i = this.a.families; - !(function(t, e) { - for (var n = e.length, r = 0; r < n; r++) { - var i = e[r].split(':'); - 3 == i.length && t.f.push(i.pop()); - var o = ''; - 2 == i.length && '' != i[1] && (o = ':'), t.a.push(i.join(o)); - } - })(r, i); - var o = new K(i); - !(function(t) { - for (var e = t.f.length, n = 0; n < e; n++) { - var r = t.f[n].split(':'), - i = r[0].replace(/\+/g, ' '), - o = ['n4']; - if (2 <= r.length) { - var a; - if (((a = []), (s = r[1]))) - for ( - var s, u = (s = s.split(',')).length, l = 0; - l < u; - l++ - ) { - var c; - if ((c = s[l]).match(/^[\w-]+$/)) - if (null == (d = et.exec(c.toLowerCase()))) c = ''; - else { - if ( - ((c = null == (c = d[2]) || '' == c ? 'n' : tt[c]), - null == (d = d[1]) || '' == d) - ) - d = '4'; - else - var f = J[d], - d = f || (isNaN(d) ? '4' : d.substr(0, 1)); - c = [c, d].join(''); - } - else c = ''; - c && a.push(c); - } - 0 < a.length && (o = a), - 3 == r.length && - ((a = []), - 0 < (r = (r = r[2]) ? r.split(',') : a).length && - (r = Z[r[0]]) && - (t.c[i] = r)); - } - for ( - t.c[i] || ((r = Z[i]) && (t.c[i] = r)), r = 0; - r < o.length; - r += 1 - ) - t.a.push(new w(i, o[r])); - } - })(o), - g( - n, - (function(t) { - if (0 == t.a.length) throw Error('No fonts to load!'); - if (-1 != t.c.indexOf('kit=')) return t.c; - for (var e = t.a.length, n = [], r = 0; r < e; r++) - n.push(t.a[r].replace(/ /g, '+')); - return ( - (e = t.c + '?family=' + n.join('%7C')), - 0 < t.f.length && (e += '&subset=' + t.f.join(',')), - 0 < t.g.length && (e += '&text=' + encodeURIComponent(t.g)), - e - ); - })(r), - y(e) - ), - b(e, function() { - t(o.a, o.c, rt); - }); - }), - (it.prototype.load = function(t) { - var e = this.a.id, - n = this.c.o; - e - ? v( - this.c, - (this.a.api || 'https://use.typekit.net/') + '/' + e + '.js', - function(e) { - if (e) t([]); - else if ( - n.Typekit && - n.Typekit.config && - n.Typekit.config.fn - ) { - e = n.Typekit.config.fn; - for (var r = [], i = 0; i < e.length; i += 2) - for ( - var o = e[i], a = e[i + 1], s = 0; - s < a.length; - s++ - ) - r.push(new w(o, a[s])); - try { - n.Typekit.load({ events: !1, classes: !1, async: !0 }); - } catch (t) {} - t(r); - } - }, - 2e3 - ) - : t([]); - }), - (ot.prototype.load = function(t) { - var e = this.f.id, - n = this.c.o, - r = this; - e - ? (n.__webfontfontdeckmodule__ || - (n.__webfontfontdeckmodule__ = {}), - (n.__webfontfontdeckmodule__[e] = function(e, n) { - for (var i = 0, o = n.fonts.length; i < o; ++i) { - var a = n.fonts[i]; - r.a.push( - new w( - a.name, - A('font-weight:' + a.weight + ';font-style:' + a.style) - ) - ); - } - t(r.a); - }), - v( - this.c, - (this.f.api || 'https://f.fontdeck.com/s/css/js/') + - (function(t) { - return t.o.location.hostname || t.a.location.hostname; - })(this.c) + - '/' + - e + - '.js', - function(e) { - e && t([]); - } - )) - : t([]); - }); - var at = new q(window); - (at.a.c.custom = function(t, e) { - return new Y(e, t); - }), - (at.a.c.fontdeck = function(t, e) { - return new ot(e, t); - }), - (at.a.c.monotype = function(t, e) { - return new X(e, t); - }), - (at.a.c.typekit = function(t, e) { - return new it(e, t); - }), - (at.a.c.google = function(t, e) { - return new nt(e, t); - }); - var st = { load: a(at.load, at) }; - void 0 === - (r = function() { - return st; - }.call(e, n, e, t)) || (t.exports = r); - })(); - }, - function(t, e, n) { - var r, i, o, a, s, u, l, c, f; - window, - (t.exports = - ((r = n(0)), - (i = n(1)), - (o = n(440)), - (a = n(441)), - (s = n(315)), - (u = n(316)), - (l = n(413)), - (c = n(439)), - (f = n(5)), - (function(t) { - var e = {}; - function n(r) { - if (e[r]) return e[r].exports; - var i = (e[r] = { i: r, l: !1, exports: {} }); - return ( - t[r].call(i.exports, i, i.exports, n), (i.l = !0), i.exports - ); - } - return ( - (n.m = t), - (n.c = e), - (n.d = function(t, e, r) { - n.o(t, e) || - Object.defineProperty(t, e, { enumerable: !0, get: r }); - }), - (n.r = function(t) { - 'undefined' != typeof Symbol && - Symbol.toStringTag && - Object.defineProperty(t, Symbol.toStringTag, { - value: 'Module' - }), - Object.defineProperty(t, '__esModule', { value: !0 }); - }), - (n.t = function(t, e) { - if ((1 & e && (t = n(t)), 8 & e)) return t; - if (4 & e && 'object' == typeof t && t && t.__esModule) - return t; - var r = Object.create(null); - if ( - (n.r(r), - Object.defineProperty(r, 'default', { - enumerable: !0, - value: t - }), - 2 & e && 'string' != typeof t) - ) - for (var i in t) - n.d( - r, - i, - function(e) { - return t[e]; - }.bind(null, i) - ); - return r; - }), - (n.n = function(t) { - var e = - t && t.__esModule - ? function() { - return t.default; - } - : function() { - return t; - }; - return n.d(e, 'a', e), e; - }), - (n.o = function(t, e) { - return Object.prototype.hasOwnProperty.call(t, e); - }), - (n.p = ''), - n((n.s = 238)) - ); - })([ - function(t, e) { - t.exports = r; - }, - function(t, e) { - t.exports = i; - }, - function(t, e) { - t.exports = o; - }, - function(t, e) { - var n = Array.isArray; - t.exports = n; - }, - function(t, e) { - t.exports = function(t) { - var e = typeof t; - return null != t && ('object' == e || 'function' == e); - }; - }, - function(t, e, n) { - var r = n(55), - i = - 'object' == typeof self && - self && - self.Object === Object && - self, - o = r || i || Function('return this')(); - t.exports = o; - }, - function(t, e) { - t.exports = function(t) { - return null != t && 'object' == typeof t; - }; - }, - function(t, e, n) { - (function(e) { - var n, - r = '__lodash_hash_undefined__', - i = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, - o = /^\w*$/, - a = /^\./, - s = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, - u = /\\(\\)?/g, - l = /^\[object .+?Constructor\]$/, - c = /^(?:0|[1-9]\d*)$/, - f = 'object' == typeof e && e && e.Object === Object && e, - d = - 'object' == typeof self && - self && - self.Object === Object && - self, - h = f || d || Function('return this')(), - p = Array.prototype, - g = Function.prototype, - v = Object.prototype, - m = h['__core-js_shared__'], - y = (n = /[^.]+$/.exec( - (m && m.keys && m.keys.IE_PROTO) || '' - )) - ? 'Symbol(src)_1.' + n - : '', - b = g.toString, - _ = v.hasOwnProperty, - x = v.toString, - w = RegExp( - '^' + - b - .call(_) - .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') - .replace( - /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, - '$1.*?' - ) + - '$' - ), - S = h.Symbol, - E = p.splice, - k = R(h, 'Map'), - A = R(Object, 'create'), - T = S ? S.prototype : void 0, - C = T ? T.toString : void 0; - function O(t) { - var e = -1, - n = t ? t.length : 0; - for (this.clear(); ++e < n; ) { - var r = t[e]; - this.set(r[0], r[1]); - } - } - function P(t) { - var e = -1, - n = t ? t.length : 0; - for (this.clear(); ++e < n; ) { - var r = t[e]; - this.set(r[0], r[1]); - } - } - function M(t) { - var e = -1, - n = t ? t.length : 0; - for (this.clear(); ++e < n; ) { - var r = t[e]; - this.set(r[0], r[1]); - } - } - function L(t, e, n) { - var r = t[e]; - (_.call(t, e) && V(r, n) && (void 0 !== n || e in t)) || - (t[e] = n); - } - function D(t, e) { - for (var n = t.length; n--; ) if (V(t[n][0], e)) return n; - return -1; - } - function j(t, e) { - var n = t.__data__; - return (function(t) { - var e = typeof t; - return 'string' == e || - 'number' == e || - 'symbol' == e || - 'boolean' == e - ? '__proto__' !== t - : null === t; - })(e) - ? n['string' == typeof e ? 'string' : 'hash'] - : n.map; - } - function R(t, e) { - var n = (function(t, e) { - return null == t ? void 0 : t[e]; - })(t, e); - return (function(t) { - return ( - !(!G(t) || ((e = t), y && y in e)) && - ((function(t) { - var e = G(t) ? x.call(t) : ''; - return ( - '[object Function]' == e || - '[object GeneratorFunction]' == e - ); - })(t) || - (function(t) { - var e = !1; - if (null != t && 'function' != typeof t.toString) - try { - e = !!(t + ''); - } catch (t) {} - return e; - })(t) - ? w - : l - ).test( - (function(t) { - if (null != t) { - try { - return b.call(t); - } catch (t) {} - try { - return t + ''; - } catch (t) {} - } - return ''; - })(t) - ) - ); - var e; - })(n) - ? n - : void 0; - } - function N(t, e) { - return ( - !!(e = null == e ? 9007199254740991 : e) && - ('number' == typeof t || c.test(t)) && - t > -1 && - t % 1 == 0 && - t < e - ); - } - (O.prototype.clear = function() { - this.__data__ = A ? A(null) : {}; - }), - (O.prototype.delete = function(t) { - return this.has(t) && delete this.__data__[t]; - }), - (O.prototype.get = function(t) { - var e = this.__data__; - if (A) { - var n = e[t]; - return n === r ? void 0 : n; - } - return _.call(e, t) ? e[t] : void 0; - }), - (O.prototype.has = function(t) { - var e = this.__data__; - return A ? void 0 !== e[t] : _.call(e, t); - }), - (O.prototype.set = function(t, e) { - return (this.__data__[t] = A && void 0 === e ? r : e), this; - }), - (P.prototype.clear = function() { - this.__data__ = []; - }), - (P.prototype.delete = function(t) { - var e = this.__data__, - n = D(e, t); - return !( - n < 0 || - (n == e.length - 1 ? e.pop() : E.call(e, n, 1), 0) - ); - }), - (P.prototype.get = function(t) { - var e = this.__data__, - n = D(e, t); - return n < 0 ? void 0 : e[n][1]; - }), - (P.prototype.has = function(t) { - return D(this.__data__, t) > -1; - }), - (P.prototype.set = function(t, e) { - var n = this.__data__, - r = D(n, t); - return r < 0 ? n.push([t, e]) : (n[r][1] = e), this; - }), - (M.prototype.clear = function() { - this.__data__ = { - hash: new O(), - map: new (k || P)(), - string: new O() - }; - }), - (M.prototype.delete = function(t) { - return j(this, t).delete(t); - }), - (M.prototype.get = function(t) { - return j(this, t).get(t); - }), - (M.prototype.has = function(t) { - return j(this, t).has(t); - }), - (M.prototype.set = function(t, e) { - return j(this, t).set(t, e), this; - }); - var z = F(function(t) { - t = (function(t) { - return null == t - ? '' - : (function(t) { - if ('string' == typeof t) return t; - if (H(t)) return C ? C.call(t) : ''; - var e = t + ''; - return '0' == e && 1 / t == -1 / 0 ? '-0' : e; - })(t); - })(t); - var e = []; - return ( - a.test(t) && e.push(''), - t.replace(s, function(t, n, r, i) { - e.push(r ? i.replace(u, '$1') : n || t); - }), - e - ); - }); - function I(t) { - if ('string' == typeof t || H(t)) return t; - var e = t + ''; - return '0' == e && 1 / t == -1 / 0 ? '-0' : e; - } - function F(t, e) { - if ('function' != typeof t || (e && 'function' != typeof e)) - throw new TypeError('Expected a function'); - var n = function() { - var r = arguments, - i = e ? e.apply(this, r) : r[0], - o = n.cache; - if (o.has(i)) return o.get(i); - var a = t.apply(this, r); - return (n.cache = o.set(i, a)), a; - }; - return (n.cache = new (F.Cache || M)()), n; - } - function V(t, e) { - return t === e || (t != t && e != e); - } - F.Cache = M; - var B = Array.isArray; - function G(t) { - var e = typeof t; - return !!t && ('object' == e || 'function' == e); - } - function H(t) { - return ( - 'symbol' == typeof t || - ((function(t) { - return !!t && 'object' == typeof t; - })(t) && - '[object Symbol]' == x.call(t)) - ); - } - t.exports = function(t, e, n) { - return null == t - ? t - : (function(t, e, n, r) { - if (!G(t)) return t; - for ( - var a = -1, - s = (e = (function(t, e) { - if (B(t)) return !1; - var n = typeof t; - return ( - !( - 'number' != n && - 'symbol' != n && - 'boolean' != n && - null != t && - !H(t) - ) || - o.test(t) || - !i.test(t) || - (null != e && (t in Object(e))) - ); - })(e, t) - ? [e] - : (function(t) { - return B(t) ? t : z(t); - })(e)).length, - u = s - 1, - l = t; - null != l && ++a < s; - - ) { - var c = I(e[a]), - f = n; - if (a != u) { - var d = l[c]; - void 0 === (f = r ? r(d, c, l) : void 0) && - (f = G(d) ? d : N(e[a + 1]) ? [] : {}); - } - L(l, c, f), (l = l[c]); - } - return t; - })(t, e, n); - }; - }.call(this, n(36))); - }, - function(t, e) { - t.exports = a; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.ReactCSS = e.loop = e.handleActive = e.handleHover = e.hover = void 0); - var r = l(n(101)), - i = l(n(173)), - o = l(n(193)), - a = l(n(194)), - s = l(n(195)), - u = l(n(196)); - function l(t) { - return t && t.__esModule ? t : { default: t }; - } - (e.hover = a.default), - (e.handleHover = a.default), - (e.handleActive = s.default), - (e.loop = u.default); - var c = (e.ReactCSS = function(t) { - for ( - var e = arguments.length, n = Array(e > 1 ? e - 1 : 0), a = 1; - a < e; - a++ - ) - n[a - 1] = arguments[a]; - var s = (0, r.default)(n), - u = (0, i.default)(t, s); - return (0, o.default)(u); - }); - e.default = c; - }, - function(t, e, n) { - var r = n(15), - i = n(103), - o = n(104), - a = r ? r.toStringTag : void 0; - t.exports = function(t) { - return null == t - ? void 0 === t - ? '[object Undefined]' - : '[object Null]' - : a && a in Object(t) - ? i(t) - : o(t); - }; - }, - function(t, e, n) { - var r = n(126), - i = n(129); - t.exports = function(t, e) { - var n = i(t, e); - return r(n) ? n : void 0; - }; - }, - function(t, e, n) { - var r = n(45), - i = n(41); - t.exports = function(t) { - return null != t && i(t.length) && !r(t); - }; - }, - function(t, e, n) { - (function(t, n) { - var r = '__lodash_hash_undefined__', - i = 9007199254740991, - o = '[object Arguments]', - a = '[object Array]', - s = '[object Boolean]', - u = '[object Date]', - l = '[object Error]', - c = '[object Function]', - f = '[object Map]', - d = '[object Number]', - h = '[object Object]', - p = '[object RegExp]', - g = '[object Set]', - v = '[object String]', - m = '[object ArrayBuffer]', - y = '[object DataView]', - b = /^\[object .+?Constructor\]$/, - _ = /^(?:0|[1-9]\d*)$/, - x = {}; - (x['[object Float32Array]'] = x['[object Float64Array]'] = x[ - '[object Int8Array]' - ] = x['[object Int16Array]'] = x['[object Int32Array]'] = x[ - '[object Uint8Array]' - ] = x['[object Uint8ClampedArray]'] = x[ - '[object Uint16Array]' - ] = x['[object Uint32Array]'] = !0), - (x[o] = x[a] = x[m] = x[s] = x[y] = x[u] = x[l] = x[c] = x[ - f - ] = x[d] = x[h] = x[p] = x[g] = x[v] = x[ - '[object WeakMap]' - ] = !1); - var w = 'object' == typeof t && t && t.Object === Object && t, - S = - 'object' == typeof self && - self && - self.Object === Object && - self, - E = w || S || Function('return this')(), - k = e && !e.nodeType && e, - A = k && 'object' == typeof n && n && !n.nodeType && n, - T = A && A.exports === k, - C = T && w.process, - O = (function() { - try { - return C && C.binding && C.binding('util'); - } catch (t) {} - })(), - P = O && O.isTypedArray; - function M(t, e) { - for (var n = -1, r = null == t ? 0 : t.length; ++n < r; ) - if (e(t[n], n, t)) return !0; - return !1; - } - function L(t) { - var e = -1, - n = Array(t.size); - return ( - t.forEach(function(t, r) { - n[++e] = [r, t]; - }), - n - ); - } - function D(t) { - var e = -1, - n = Array(t.size); - return ( - t.forEach(function(t) { - n[++e] = t; - }), - n - ); - } - var j, - R, - N, - z = Array.prototype, - I = Function.prototype, - F = Object.prototype, - V = E['__core-js_shared__'], - B = I.toString, - G = F.hasOwnProperty, - H = (j = /[^.]+$/.exec( - (V && V.keys && V.keys.IE_PROTO) || '' - )) - ? 'Symbol(src)_1.' + j - : '', - U = F.toString, - q = RegExp( - '^' + - B.call(G) - .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') - .replace( - /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, - '$1.*?' - ) + - '$' - ), - W = T ? E.Buffer : void 0, - X = E.Symbol, - Y = E.Uint8Array, - $ = F.propertyIsEnumerable, - Q = z.splice, - K = X ? X.toStringTag : void 0, - Z = Object.getOwnPropertySymbols, - J = W ? W.isBuffer : void 0, - tt = - ((R = Object.keys), - (N = Object), - function(t) { - return R(N(t)); - }), - et = At(E, 'DataView'), - nt = At(E, 'Map'), - rt = At(E, 'Promise'), - it = At(E, 'Set'), - ot = At(E, 'WeakMap'), - at = At(Object, 'create'), - st = Pt(et), - ut = Pt(nt), - lt = Pt(rt), - ct = Pt(it), - ft = Pt(ot), - dt = X ? X.prototype : void 0, - ht = dt ? dt.valueOf : void 0; - function pt(t) { - var e = -1, - n = null == t ? 0 : t.length; - for (this.clear(); ++e < n; ) { - var r = t[e]; - this.set(r[0], r[1]); - } - } - function gt(t) { - var e = -1, - n = null == t ? 0 : t.length; - for (this.clear(); ++e < n; ) { - var r = t[e]; - this.set(r[0], r[1]); - } - } - function vt(t) { - var e = -1, - n = null == t ? 0 : t.length; - for (this.clear(); ++e < n; ) { - var r = t[e]; - this.set(r[0], r[1]); - } - } - function mt(t) { - var e = -1, - n = null == t ? 0 : t.length; - for (this.__data__ = new vt(); ++e < n; ) this.add(t[e]); - } - function yt(t) { - var e = (this.__data__ = new gt(t)); - this.size = e.size; - } - function bt(t, e) { - for (var n = t.length; n--; ) if (Mt(t[n][0], e)) return n; - return -1; - } - function _t(t) { - return null == t - ? void 0 === t - ? '[object Undefined]' - : '[object Null]' - : K && K in Object(t) - ? (function(t) { - var e = G.call(t, K), - n = t[K]; - try { - t[K] = void 0; - var r = !0; - } catch (t) {} - var i = U.call(t); - return r && (e ? (t[K] = n) : delete t[K]), i; - })(t) - : (function(t) { - return U.call(t); - })(t); - } - function xt(t) { - return It(t) && _t(t) == o; - } - function wt(t, e, n, r, i) { - return ( - t === e || - (null == t || null == e || (!It(t) && !It(e)) - ? t != t && e != e - : (function(t, e, n, r, i, c) { - var b = Dt(t), - _ = Dt(e), - x = b ? a : Ct(t), - w = _ ? a : Ct(e), - S = (x = x == o ? h : x) == h, - E = (w = w == o ? h : w) == h, - k = x == w; - if (k && jt(t)) { - if (!jt(e)) return !1; - (b = !0), (S = !1); - } - if (k && !S) - return ( - c || (c = new yt()), - b || Ft(t) - ? St(t, e, n, r, i, c) - : (function(t, e, n, r, i, o, a) { - switch (n) { - case y: - if ( - t.byteLength != e.byteLength || - t.byteOffset != e.byteOffset - ) - return !1; - (t = t.buffer), (e = e.buffer); - case m: - return !( - t.byteLength != e.byteLength || - !o(new Y(t), new Y(e)) - ); - case s: - case u: - case d: - return Mt(+t, +e); - case l: - return ( - t.name == e.name && - t.message == e.message - ); - case p: - case v: - return t == e + ''; - case f: - var c = L; - case g: - var h = 1 & r; - if ( - (c || (c = D), t.size != e.size && !h) - ) - return !1; - var b = a.get(t); - if (b) return b == e; - (r |= 2), a.set(t, e); - var _ = St(c(t), c(e), r, i, o, a); - return a.delete(t), _; - case '[object Symbol]': - if (ht) return ht.call(t) == ht.call(e); - } - return !1; - })(t, e, x, n, r, i, c) - ); - if (!(1 & n)) { - var A = S && G.call(t, '__wrapped__'), - T = E && G.call(e, '__wrapped__'); - if (A || T) { - var C = A ? t.value() : t, - O = T ? e.value() : e; - return c || (c = new yt()), i(C, O, n, r, c); - } - } - return ( - !!k && - (c || (c = new yt()), - (function(t, e, n, r, i, o) { - var a = 1 & n, - s = Et(t), - u = s.length; - if (u != Et(e).length && !a) return !1; - for (var l = u; l--; ) { - var c = s[l]; - if (!(a ? c in e : G.call(e, c))) return !1; - } - var f = o.get(t); - if (f && o.get(e)) return f == e; - var d = !0; - o.set(t, e), o.set(e, t); - for (var h = a; ++l < u; ) { - var p = t[(c = s[l])], - g = e[c]; - if (r) - var v = a - ? r(g, p, c, e, t, o) - : r(p, g, c, t, e, o); - if ( - !(void 0 === v - ? p === g || i(p, g, n, r, o) - : v) - ) { - d = !1; - break; - } - h || (h = 'constructor' == c); - } - if (d && !h) { - var m = t.constructor, - y = e.constructor; - m != y && - 'constructor' in t && - 'constructor' in e && - !( - 'function' == typeof m && - m instanceof m && - 'function' == typeof y && - y instanceof y - ) && - (d = !1); - } - return o.delete(t), o.delete(e), d; - })(t, e, n, r, i, c)) - ); - })(t, e, n, r, wt, i)) - ); - } - function St(t, e, n, r, i, o) { - var a = 1 & n, - s = t.length, - u = e.length; - if (s != u && !(a && u > s)) return !1; - var l = o.get(t); - if (l && o.get(e)) return l == e; - var c = -1, - f = !0, - d = 2 & n ? new mt() : void 0; - for (o.set(t, e), o.set(e, t); ++c < s; ) { - var h = t[c], - p = e[c]; - if (r) - var g = a ? r(p, h, c, e, t, o) : r(h, p, c, t, e, o); - if (void 0 !== g) { - if (g) continue; - f = !1; - break; - } - if (d) { - if ( - !M(e, function(t, e) { - if ( - ((a = e), - !d.has(a) && (h === t || i(h, t, n, r, o))) - ) - return d.push(e); - var a; - }) - ) { - f = !1; - break; - } - } else if (h !== p && !i(h, p, n, r, o)) { - f = !1; - break; - } - } - return o.delete(t), o.delete(e), f; - } - function Et(t) { - return (function(t, e, n) { - var r = e(t); - return Dt(t) - ? r - : (function(t, e) { - for ( - var n = -1, r = e.length, i = t.length; - ++n < r; - - ) - t[i + n] = e[n]; - return t; - })(r, n(t)); - })(t, Vt, Tt); - } - function kt(t, e) { - var n = t.__data__; - return (function(t) { - var e = typeof t; - return 'string' == e || - 'number' == e || - 'symbol' == e || - 'boolean' == e - ? '__proto__' !== t - : null === t; - })(e) - ? n['string' == typeof e ? 'string' : 'hash'] - : n.map; - } - function At(t, e) { - var n = (function(t, e) { - return null == t ? void 0 : t[e]; - })(t, e); - return (function(t) { - return ( - !( - !zt(t) || - (function(t) { - return !!H && H in t; - })(t) - ) && (Rt(t) ? q : b).test(Pt(t)) - ); - })(n) - ? n - : void 0; - } - (pt.prototype.clear = function() { - (this.__data__ = at ? at(null) : {}), (this.size = 0); - }), - (pt.prototype.delete = function(t) { - var e = this.has(t) && delete this.__data__[t]; - return (this.size -= e ? 1 : 0), e; - }), - (pt.prototype.get = function(t) { - var e = this.__data__; - if (at) { - var n = e[t]; - return n === r ? void 0 : n; - } - return G.call(e, t) ? e[t] : void 0; - }), - (pt.prototype.has = function(t) { - var e = this.__data__; - return at ? void 0 !== e[t] : G.call(e, t); - }), - (pt.prototype.set = function(t, e) { - var n = this.__data__; - return ( - (this.size += this.has(t) ? 0 : 1), - (n[t] = at && void 0 === e ? r : e), - this - ); - }), - (gt.prototype.clear = function() { - (this.__data__ = []), (this.size = 0); - }), - (gt.prototype.delete = function(t) { - var e = this.__data__, - n = bt(e, t); - return !( - n < 0 || - (n == e.length - 1 ? e.pop() : Q.call(e, n, 1), - --this.size, - 0) - ); - }), - (gt.prototype.get = function(t) { - var e = this.__data__, - n = bt(e, t); - return n < 0 ? void 0 : e[n][1]; - }), - (gt.prototype.has = function(t) { - return bt(this.__data__, t) > -1; - }), - (gt.prototype.set = function(t, e) { - var n = this.__data__, - r = bt(n, t); - return ( - r < 0 ? (++this.size, n.push([t, e])) : (n[r][1] = e), - this - ); - }), - (vt.prototype.clear = function() { - (this.size = 0), - (this.__data__ = { - hash: new pt(), - map: new (nt || gt)(), - string: new pt() - }); - }), - (vt.prototype.delete = function(t) { - var e = kt(this, t).delete(t); - return (this.size -= e ? 1 : 0), e; - }), - (vt.prototype.get = function(t) { - return kt(this, t).get(t); - }), - (vt.prototype.has = function(t) { - return kt(this, t).has(t); - }), - (vt.prototype.set = function(t, e) { - var n = kt(this, t), - r = n.size; - return ( - n.set(t, e), (this.size += n.size == r ? 0 : 1), this - ); - }), - (mt.prototype.add = mt.prototype.push = function(t) { - return this.__data__.set(t, r), this; - }), - (mt.prototype.has = function(t) { - return this.__data__.has(t); - }), - (yt.prototype.clear = function() { - (this.__data__ = new gt()), (this.size = 0); - }), - (yt.prototype.delete = function(t) { - var e = this.__data__, - n = e.delete(t); - return (this.size = e.size), n; - }), - (yt.prototype.get = function(t) { - return this.__data__.get(t); - }), - (yt.prototype.has = function(t) { - return this.__data__.has(t); - }), - (yt.prototype.set = function(t, e) { - var n = this.__data__; - if (n instanceof gt) { - var r = n.__data__; - if (!nt || r.length < 199) - return r.push([t, e]), (this.size = ++n.size), this; - n = this.__data__ = new vt(r); - } - return n.set(t, e), (this.size = n.size), this; - }); - var Tt = Z - ? function(t) { - return null == t - ? [] - : ((t = Object(t)), - (function(t, e) { - for ( - var n = -1, - r = null == t ? 0 : t.length, - i = 0, - o = []; - ++n < r; - - ) { - var a = t[n]; - e(a) && (o[i++] = a); - } - return o; - })(Z(t), function(e) { - return $.call(t, e); - })); - } - : function() { - return []; - }, - Ct = _t; - function Ot(t, e) { - return ( - !!(e = null == e ? i : e) && - ('number' == typeof t || _.test(t)) && - t > -1 && - t % 1 == 0 && - t < e - ); - } - function Pt(t) { - if (null != t) { - try { - return B.call(t); - } catch (t) {} - try { - return t + ''; - } catch (t) {} - } - return ''; - } - function Mt(t, e) { - return t === e || (t != t && e != e); - } - ((et && Ct(new et(new ArrayBuffer(1))) != y) || - (nt && Ct(new nt()) != f) || - (rt && '[object Promise]' != Ct(rt.resolve())) || - (it && Ct(new it()) != g) || - (ot && '[object WeakMap]' != Ct(new ot()))) && - (Ct = function(t) { - var e = _t(t), - n = e == h ? t.constructor : void 0, - r = n ? Pt(n) : ''; - if (r) - switch (r) { - case st: - return y; - case ut: - return f; - case lt: - return '[object Promise]'; - case ct: - return g; - case ft: - return '[object WeakMap]'; - } - return e; - }); - var Lt = xt( - (function() { - return arguments; - })() - ) - ? xt - : function(t) { - return ( - It(t) && G.call(t, 'callee') && !$.call(t, 'callee') - ); - }, - Dt = Array.isArray, - jt = - J || - function() { - return !1; - }; - function Rt(t) { - if (!zt(t)) return !1; - var e = _t(t); - return ( - e == c || - '[object GeneratorFunction]' == e || - '[object AsyncFunction]' == e || - '[object Proxy]' == e - ); - } - function Nt(t) { - return 'number' == typeof t && t > -1 && t % 1 == 0 && t <= i; - } - function zt(t) { - var e = typeof t; - return null != t && ('object' == e || 'function' == e); - } - function It(t) { - return null != t && 'object' == typeof t; - } - var Ft = P - ? (function(t) { - return function(e) { - return t(e); - }; - })(P) - : function(t) { - return It(t) && Nt(t.length) && !!x[_t(t)]; - }; - function Vt(t) { - return (function(t) { - return null != t && Nt(t.length) && !Rt(t); - })(t) - ? (function(t, e) { - var n = Dt(t), - r = !n && Lt(t), - i = !n && !r && jt(t), - o = !n && !r && !i && Ft(t), - a = n || r || i || o, - s = a - ? (function(t, e) { - for (var n = -1, r = Array(t); ++n < t; ) - r[n] = e(n); - return r; - })(t.length, String) - : [], - u = s.length; - for (var l in t) - (!e && !G.call(t, l)) || - (a && - ('length' == l || - (i && ('offset' == l || 'parent' == l)) || - (o && - ('buffer' == l || - 'byteLength' == l || - 'byteOffset' == l)) || - Ot(l, u))) || - s.push(l); - return s; - })(t) - : (function(t) { - if ( - !(function(t) { - var e = t && t.constructor; - return ( - t === - (('function' == typeof e && e.prototype) || F) - ); - })(t) - ) - return tt(t); - var e = []; - for (var n in Object(t)) - G.call(t, n) && 'constructor' != n && e.push(n); - return e; - })(t); - } - n.exports = function(t, e) { - return wt(t, e); - }; - }.call(this, n(36), n(20)(t))); - }, - function(t, e) { - t.exports = s; - }, - function(t, e, n) { - var r = n(5).Symbol; - t.exports = r; - }, - function(t, e, n) { - var r = n(58), - i = n(110), - o = n(12); - t.exports = function(t) { - return o(t) ? r(t) : i(t); - }; - }, - function(t, e) { - t.exports = function(t, e) { - return t === e || (t != t && e != e); - }; - }, - function(t, e, n) { - var r = n(77), - i = n(51); - t.exports = function(t, e, n, o) { - var a = !n; - n || (n = {}); - for (var s = -1, u = e.length; ++s < u; ) { - var l = e[s], - c = o ? o(n[l], t[l], l, n, t) : void 0; - void 0 === c && (c = t[l]), a ? i(n, l, c) : r(n, l, c); - } - return n; - }; - }, - function(t, e) { - t.exports = u; - }, - function(t, e) { - t.exports = function(t) { - return ( - t.webpackPolyfill || - ((t.deprecate = function() {}), - (t.paths = []), - t.children || (t.children = []), - Object.defineProperty(t, 'loaded', { - enumerable: !0, - get: function() { - return t.l; - } - }), - Object.defineProperty(t, 'id', { - enumerable: !0, - get: function() { - return t.i; - } - }), - (t.webpackPolyfill = 1)), - t - ); - }; - }, - function(t, e, n) { - (function(t) { - var r = n(5), - i = n(108), - o = e && !e.nodeType && e, - a = o && 'object' == typeof t && t && !t.nodeType && t, - s = a && a.exports === o ? r.Buffer : void 0, - u = (s ? s.isBuffer : void 0) || i; - t.exports = u; - }.call(this, n(20)(t))); - }, - function(t, e) { - t.exports = function(t) { - return t; - }; - }, - function(t, e, n) { - var r = n(24), - i = n(121), - o = n(122), - a = n(123), - s = n(124), - u = n(125); - function l(t) { - var e = (this.__data__ = new r(t)); - this.size = e.size; - } - (l.prototype.clear = i), - (l.prototype.delete = o), - (l.prototype.get = a), - (l.prototype.has = s), - (l.prototype.set = u), - (t.exports = l); - }, - function(t, e, n) { - var r = n(116), - i = n(117), - o = n(118), - a = n(119), - s = n(120); - function u(t) { - var e = -1, - n = null == t ? 0 : t.length; - for (this.clear(); ++e < n; ) { - var r = t[e]; - this.set(r[0], r[1]); - } - } - (u.prototype.clear = r), - (u.prototype.delete = i), - (u.prototype.get = o), - (u.prototype.has = a), - (u.prototype.set = s), - (t.exports = u); - }, - function(t, e, n) { - var r = n(17); - t.exports = function(t, e) { - for (var n = t.length; n--; ) if (r(t[n][0], e)) return n; - return -1; - }; - }, - function(t, e, n) { - var r = n(11)(Object, 'create'); - t.exports = r; - }, - function(t, e, n) { - var r = n(138); - t.exports = function(t, e) { - var n = t.__data__; - return r(e) - ? n['string' == typeof e ? 'string' : 'hash'] - : n.map; - }; - }, - function(t, e, n) { - var r = n(153), - i = n(47), - o = n(154), - a = n(155), - s = n(156), - u = n(10), - l = n(63), - c = l(r), - f = l(i), - d = l(o), - h = l(a), - p = l(s), - g = u; - ((r && '[object DataView]' != g(new r(new ArrayBuffer(1)))) || - (i && '[object Map]' != g(new i())) || - (o && '[object Promise]' != g(o.resolve())) || - (a && '[object Set]' != g(new a())) || - (s && '[object WeakMap]' != g(new s()))) && - (g = function(t) { - var e = u(t), - n = '[object Object]' == e ? t.constructor : void 0, - r = n ? l(n) : ''; - if (r) - switch (r) { - case c: - return '[object DataView]'; - case f: - return '[object Map]'; - case d: - return '[object Promise]'; - case h: - return '[object Set]'; - case p: - return '[object WeakMap]'; - } - return e; - }), - (t.exports = g); - }, - function(t, e, n) { - var r = n(10), - i = n(6); - t.exports = function(t) { - return ( - 'symbol' == typeof t || (i(t) && '[object Symbol]' == r(t)) - ); - }; - }, - function(t, e, n) { - var r = n(29); - t.exports = function(t) { - if ('string' == typeof t || r(t)) return t; - var e = t + ''; - return '0' == e && 1 / t == -1 / 0 ? '-0' : e; - }; - }, - function(t, e, n) { - var r = n(58), - i = n(178), - o = n(12); - t.exports = function(t) { - return o(t) ? r(t, !0) : i(t); - }; - }, - function(t, e) { - t.exports = function(t) { - var e = []; - return ( - (e.toString = function() { - return this.map(function(e) { - var n = (function(t, e) { - var n, - r = t[1] || '', - i = t[3]; - if (!i) return r; - if (e && 'function' == typeof btoa) { - var o = - ((n = i), - '/*# sourceMappingURL=data:application/json;charset=utf-8;base64,' + - btoa( - unescape( - encodeURIComponent(JSON.stringify(n)) - ) - ) + - ' */'), - a = i.sources.map(function(t) { - return ( - '/*# sourceURL=' + i.sourceRoot + t + ' */' - ); - }); - return [r] - .concat(a) - .concat([o]) - .join('\n'); - } - return [r].join('\n'); - })(e, t); - return e[2] ? '@media ' + e[2] + '{' + n + '}' : n; - }).join(''); - }), - (e.i = function(t, n) { - 'string' == typeof t && (t = [[null, t, '']]); - for (var r = {}, i = 0; i < this.length; i++) { - var o = this[i][0]; - 'number' == typeof o && (r[o] = !0); - } - for (i = 0; i < t.length; i++) { - var a = t[i]; - ('number' == typeof a[0] && r[a[0]]) || - (n && !a[2] - ? (a[2] = n) - : n && (a[2] = '(' + a[2] + ') and (' + n + ')'), - e.push(a)); - } - }), - e - ); - }; - }, - function(t, e, n) { - var r, - i, - o = {}, - a = - ((r = function() { - return window && document && document.all && !window.atob; - }), - function() { - return void 0 === i && (i = r.apply(this, arguments)), i; - }), - s = function(t) { - return document.querySelector(t); - }, - u = (function(t) { - var e = {}; - return function(t) { - if ('function' == typeof t) return t(); - if (void 0 === e[t]) { - var n = s.call(this, t); - if ( - window.HTMLIFrameElement && - n instanceof window.HTMLIFrameElement - ) - try { - n = n.contentDocument.head; - } catch (t) { - n = null; - } - e[t] = n; - } - return e[t]; - }; - })(), - l = null, - c = 0, - f = [], - d = n(231); - function h(t, e) { - for (var n = 0; n < t.length; n++) { - var r = t[n], - i = o[r.id]; - if (i) { - i.refs++; - for (var a = 0; a < i.parts.length; a++) - i.parts[a](r.parts[a]); - for (; a < r.parts.length; a++) - i.parts.push(b(r.parts[a], e)); - } else { - var s = []; - for (a = 0; a < r.parts.length; a++) - s.push(b(r.parts[a], e)); - o[r.id] = { id: r.id, refs: 1, parts: s }; - } - } - } - function p(t, e) { - for (var n = [], r = {}, i = 0; i < t.length; i++) { - var o = t[i], - a = e.base ? o[0] + e.base : o[0], - s = { css: o[1], media: o[2], sourceMap: o[3] }; - r[a] - ? r[a].parts.push(s) - : n.push((r[a] = { id: a, parts: [s] })); - } - return n; - } - function g(t, e) { - var n = u(t.insertInto); - if (!n) - throw new Error( - "Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid." - ); - var r = f[f.length - 1]; - if ('top' === t.insertAt) - r - ? r.nextSibling - ? n.insertBefore(e, r.nextSibling) - : n.appendChild(e) - : n.insertBefore(e, n.firstChild), - f.push(e); - else if ('bottom' === t.insertAt) n.appendChild(e); - else { - if ('object' != typeof t.insertAt || !t.insertAt.before) - throw new Error( - "[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n" - ); - var i = u(t.insertInto + ' ' + t.insertAt.before); - n.insertBefore(e, i); - } - } - function v(t) { - if (null === t.parentNode) return !1; - t.parentNode.removeChild(t); - var e = f.indexOf(t); - e >= 0 && f.splice(e, 1); - } - function m(t) { - var e = document.createElement('style'); - return (t.attrs.type = 'text/css'), y(e, t.attrs), g(t, e), e; - } - function y(t, e) { - Object.keys(e).forEach(function(n) { - t.setAttribute(n, e[n]); - }); - } - function b(t, e) { - var n, r, i, o; - if (e.transform && t.css) { - if (!(o = e.transform(t.css))) return function() {}; - t.css = o; - } - if (e.singleton) { - var a = c++; - (n = l || (l = m(e))), - (r = w.bind(null, n, a, !1)), - (i = w.bind(null, n, a, !0)); - } else - t.sourceMap && - 'function' == typeof URL && - 'function' == typeof URL.createObjectURL && - 'function' == typeof URL.revokeObjectURL && - 'function' == typeof Blob && - 'function' == typeof btoa - ? ((n = (function(t) { - var e = document.createElement('link'); - return ( - (t.attrs.type = 'text/css'), - (t.attrs.rel = 'stylesheet'), - y(e, t.attrs), - g(t, e), - e - ); - })(e)), - (r = E.bind(null, n, e)), - (i = function() { - v(n), n.href && URL.revokeObjectURL(n.href); - })) - : ((n = m(e)), - (r = S.bind(null, n)), - (i = function() { - v(n); - })); - return ( - r(t), - function(e) { - if (e) { - if ( - e.css === t.css && - e.media === t.media && - e.sourceMap === t.sourceMap - ) - return; - r((t = e)); - } else i(); - } - ); - } - t.exports = function(t, e) { - if ( - 'undefined' != typeof DEBUG && - DEBUG && - 'object' != typeof document - ) - throw new Error( - 'The style-loader cannot be used in a non-browser environment' - ); - ((e = e || {}).attrs = - 'object' == typeof e.attrs ? e.attrs : {}), - e.singleton || - 'boolean' == typeof e.singleton || - (e.singleton = a()), - e.insertInto || (e.insertInto = 'head'), - e.insertAt || (e.insertAt = 'bottom'); - var n = p(t, e); - return ( - h(n, e), - function(t) { - for (var r = [], i = 0; i < n.length; i++) { - var a = n[i]; - (s = o[a.id]).refs--, r.push(s); - } - for (t && h(p(t, e), e), i = 0; i < r.length; i++) { - var s; - if (0 === (s = r[i]).refs) { - for (var u = 0; u < s.parts.length; u++) s.parts[u](); - delete o[s.id]; - } - } - } - ); - }; - var _, - x = - ((_ = []), - function(t, e) { - return (_[t] = e), _.filter(Boolean).join('\n'); - }); - function w(t, e, n, r) { - var i = n ? '' : r.css; - if (t.styleSheet) t.styleSheet.cssText = x(e, i); - else { - var o = document.createTextNode(i), - a = t.childNodes; - a[e] && t.removeChild(a[e]), - a.length ? t.insertBefore(o, a[e]) : t.appendChild(o); - } - } - function S(t, e) { - var n = e.css, - r = e.media; - if ((r && t.setAttribute('media', r), t.styleSheet)) - t.styleSheet.cssText = n; - else { - for (; t.firstChild; ) t.removeChild(t.firstChild); - t.appendChild(document.createTextNode(n)); - } - } - function E(t, e, n) { - var r = n.css, - i = n.sourceMap, - o = void 0 === e.convertToAbsoluteUrls && i; - (e.convertToAbsoluteUrls || o) && (r = d(r)), - i && - (r += - '\n/*# sourceMappingURL=data:application/json;base64,' + - btoa(unescape(encodeURIComponent(JSON.stringify(i)))) + - ' */'); - var a = new Blob([r], { type: 'text/css' }), - s = t.href; - (t.href = URL.createObjectURL(a)), s && URL.revokeObjectURL(s); - } - }, - function(t, e, n) { - !(function(t, e, n, r) { - 'use strict'; - function i(t, e) { - return t((e = { exports: {} }), e.exports), e.exports; - } - n = n && n.hasOwnProperty('default') ? n.default : n; - var o = i(function(t) { - function e() { - return ( - (t.exports = e = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }), - e.apply(this, arguments) - ); - } - t.exports = e; - }), - a = function(t, e) { - return ( - (function(t) { - if (Array.isArray(t)) return t; - })(t) || - (function(t, e) { - var n = [], - r = !0, - i = !1, - o = void 0; - try { - for ( - var a, s = t[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !e || n.length !== e); - r = !0 - ); - } catch (t) { - (i = !0), (o = t); - } finally { - try { - r || null == s.return || s.return(); - } finally { - if (i) throw o; - } - } - return n; - })(t, e) || - (function() { - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance' - ); - })() - ); - }, - s = function(t, e, n) { - return ( - e in t - ? Object.defineProperty(t, e, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (t[e] = n), - t - ); - }, - u = function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = null != arguments[e] ? arguments[e] : {}, - r = Object.keys(n); - 'function' == typeof Object.getOwnPropertySymbols && - (r = r.concat( - Object.getOwnPropertySymbols(n).filter(function(t) { - return Object.getOwnPropertyDescriptor( - n, - t - ).enumerable; - }) - )), - r.forEach(function(e) { - s(t, e, n[e]); - }); - } - return t; - }, - l = function(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - }; - function c(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - var f = function(t, e, n) { - return e && c(t.prototype, e), n && c(t, n), t; - }, - d = i(function(t) { - function e(t) { - return (e = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - })(t); - } - function n(r) { - return ( - 'function' == typeof Symbol && - 'symbol' === e(Symbol.iterator) - ? (t.exports = n = function(t) { - return e(t); - }) - : (t.exports = n = function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : e(t); - }), - n(r) - ); - } - t.exports = n; - }), - h = function(t) { - if (void 0 === t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return t; - }, - p = function(t, e) { - return !e || ('object' !== d(e) && 'function' != typeof e) - ? h(t) - : e; - }, - g = i(function(t) { - function e(n) { - return ( - (t.exports = e = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(t) { - return t.__proto__ || Object.getPrototypeOf(t); - }), - e(n) - ); - } - t.exports = e; - }), - v = i(function(t) { - function e(n, r) { - return ( - (t.exports = e = - Object.setPrototypeOf || - function(t, e) { - return (t.__proto__ = e), t; - }), - e(n, r) - ); - } - t.exports = e; - }), - m = function(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { value: t, writable: !0, configurable: !0 } - })), - e && v(t, e); - }, - y = function(t, e, n, r, i, o, a, s) { - if (void 0 === e) - throw new Error( - 'invariant requires an error message argument' - ); - if (!t) { - var u; - if (void 0 === e) - u = new Error( - 'Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.' - ); - else { - var l = [n, r, i, o, a, s], - c = 0; - (u = new Error( - e.replace(/%s/g, function() { - return l[c++]; - }) - )).name = 'Invariant Violation'; - } - throw ((u.framesToPop = 1), u); - } - }, - b = (function() { - function t() { - l(this, t), s(this, 'refs', {}); - } - return ( - f(t, [ - { - key: 'add', - value: function(t, e) { - this.refs[t] || (this.refs[t] = []), - this.refs[t].push(e); - } - }, - { - key: 'remove', - value: function(t, e) { - var n = this.getIndex(t, e); - -1 !== n && this.refs[t].splice(n, 1); - } - }, - { - key: 'isActive', - value: function() { - return this.active; - } - }, - { - key: 'getActive', - value: function() { - var t = this; - return this.refs[this.active.collection].find( - function(e) { - return ( - e.node.sortableInfo.index == t.active.index - ); - } - ); - } - }, - { - key: 'getIndex', - value: function(t, e) { - return this.refs[t].indexOf(e); - } - }, - { - key: 'getOrderedRefs', - value: function() { - var t = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : this.active.collection; - return this.refs[t].sort(_); - } - } - ]), - t - ); - })(); - function _(t, e) { - return t.node.sortableInfo.index - e.node.sortableInfo.index; - } - var x = function(t) { - return ( - (function(t) { - if (Array.isArray(t)) { - for ( - var e = 0, n = new Array(t.length); - e < t.length; - e++ - ) - n[e] = t[e]; - return n; - } - })(t) || - (function(t) { - if ( - Symbol.iterator in Object(t) || - '[object Arguments]' === - Object.prototype.toString.call(t) - ) - return Array.from(t); - })(t) || - (function() { - throw new TypeError( - 'Invalid attempt to spread non-iterable instance' - ); - })() - ); - }; - function w(t) { - for ( - var e = arguments.length, - n = new Array(e > 1 ? e - 1 : 0), - r = 1; - r < e; - r++ - ) - n[r - 1] = arguments[r]; - return Object.keys(t).reduce(function(e, r) { - return -1 === n.indexOf(r) && (e[r] = t[r]), e; - }, {}); - } - var S = { - end: ['touchend', 'touchcancel', 'mouseup'], - move: ['touchmove', 'mousemove'], - start: ['touchstart', 'mousedown'] - }, - E = (function() { - if ( - 'undefined' == typeof window || - 'undefined' == typeof document - ) - return ''; - var t = window.getComputedStyle( - document.documentElement, - '' - ) || ['-moz-hidden-iframe'], - e = (Array.prototype.slice - .call(t) - .join('') - .match(/-(moz|webkit|ms)-/) || - ('' === t.OLink && ['', 'o']))[1]; - switch (e) { - case 'ms': - return 'ms'; - default: - return e && e.length - ? e[0].toUpperCase() + e.substr(1) - : ''; - } - })(); - function k(t, e) { - Object.keys(e).forEach(function(n) { - t.style[n] = e[n]; - }); - } - function A(t, e) { - t.style[''.concat(E, 'Transform')] = - null == e - ? '' - : 'translate3d('.concat(e.x, 'px,').concat(e.y, 'px,0)'); - } - function T(t, e) { - t.style[''.concat(E, 'TransitionDuration')] = - null == e ? '' : ''.concat(e, 'ms'); - } - function C(t, e) { - for (; t; ) { - if (e(t)) return t; - t = t.parentNode; - } - return null; - } - function O(t, e, n) { - return Math.max(t, Math.min(n, e)); - } - function P(t) { - return 'px' === t.substr(-2) ? parseFloat(t) : 0; - } - function M(t, e) { - var n = e.displayName || e.name; - return n ? ''.concat(t, '(').concat(n, ')') : t; - } - function L(t, e) { - var n = t.getBoundingClientRect(); - return { top: n.top + e.top, left: n.left + e.left }; - } - function D(t) { - return t.touches && t.touches.length - ? { x: t.touches[0].pageX, y: t.touches[0].pageY } - : t.changedTouches && t.changedTouches.length - ? { - x: t.changedTouches[0].pageX, - y: t.changedTouches[0].pageY - } - : { x: t.pageX, y: t.pageY }; - } - function j(t, e) { - var n = - arguments.length > 2 && void 0 !== arguments[2] - ? arguments[2] - : { left: 0, top: 0 }; - if (t) { - var r = { - left: n.left + t.offsetLeft, - top: n.top + t.offsetTop - }; - return t.parentNode === e ? r : j(t.parentNode, e, r); - } - } - function R(t) { - var e = t.lockOffset, - n = t.width, - r = t.height, - i = e, - o = e, - a = 'px'; - if ('string' == typeof e) { - var s = /^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(e); - y( - null !== s, - 'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s', - e - ), - (i = parseFloat(e)), - (o = parseFloat(e)), - (a = s[1]); - } - return ( - y( - isFinite(i) && isFinite(o), - 'lockOffset value should be a finite. Given %s', - e - ), - '%' === a && ((i = (i * n) / 100), (o = (o * r) / 100)), - { x: i, y: o } - ); - } - function N(t) { - return t instanceof HTMLElement - ? (function(t) { - var e = window.getComputedStyle(t), - n = /(auto|scroll)/; - return ['overflow', 'overflowX', 'overflowY'].find( - function(t) { - return n.test(e[t]); - } - ); - })(t) - ? t - : N(t.parentNode) - : null; - } - var z = 27, - I = 32, - F = 37, - V = 38, - B = 39, - G = 40, - H = { - Anchor: 'A', - Button: 'BUTTON', - Canvas: 'CANVAS', - Input: 'INPUT', - Option: 'OPTION', - Textarea: 'TEXTAREA', - Select: 'SELECT' - }; - function U(t) { - var n, - i, - a = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : { withRef: !1 }; - return ( - (i = n = (function(n) { - function i() { - return l(this, i), p(this, g(i).apply(this, arguments)); - } - return ( - m(i, n), - f(i, [ - { - key: 'componentDidMount', - value: function() { - r.findDOMNode(this).sortableHandle = !0; - } - }, - { - key: 'getWrappedInstance', - value: function() { - return ( - y( - a.withRef, - 'To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call' - ), - this.refs.wrappedInstance - ); - } - }, - { - key: 'render', - value: function() { - var n = a.withRef ? 'wrappedInstance' : null; - return e.createElement( - t, - o({ ref: n }, this.props) - ); - } - } - ]), - i - ); - })(e.Component)), - s(n, 'displayName', M('sortableHandle', t)), - i - ); - } - function q(t) { - return null != t.sortableHandle; - } - var W = (function() { - function t(e, n) { - l(this, t), - (this.container = e), - (this.onScrollCallback = n); - } - return ( - f(t, [ - { - key: 'clear', - value: function() { - clearInterval(this.interval), - (this.interval = null); - } - }, - { - key: 'update', - value: function(t) { - var e = this, - n = t.translate, - r = t.minTranslate, - i = t.maxTranslate, - o = t.width, - a = t.height, - s = { x: 0, y: 0 }, - u = { x: 1, y: 1 }, - l = this.container, - c = l.scrollTop, - f = l.scrollLeft, - d = l.scrollHeight, - h = l.scrollWidth, - p = 0 === c, - g = d - c - l.clientHeight == 0, - v = 0 === f, - m = h - f - l.clientWidth == 0; - n.y >= i.y - a / 2 && !g - ? ((s.y = 1), - (u.y = 10 * Math.abs((i.y - a / 2 - n.y) / a))) - : n.x >= i.x - o / 2 && !m - ? ((s.x = 1), - (u.x = 10 * Math.abs((i.x - o / 2 - n.x) / o))) - : n.y <= r.y + a / 2 && !p - ? ((s.y = -1), - (u.y = 10 * Math.abs((n.y - a / 2 - r.y) / a))) - : n.x <= r.x + o / 2 && - !v && - ((s.x = -1), - (u.x = 10 * Math.abs((n.x - o / 2 - r.x) / o))), - this.interval && - (this.clear(), (this.isAutoScrolling = !1)), - (0 === s.x && 0 === s.y) || - (this.interval = setInterval(function() { - e.isAutoScrolling = !0; - var t = { left: u.x * s.x, top: u.y * s.y }; - (e.container.scrollTop += t.top), - (e.container.scrollLeft += t.left), - e.onScrollCallback(t); - }, 5)); - } - } - ]), - t - ); - })(), - X = { - axis: n.oneOf(['x', 'y', 'xy']), - contentWindow: n.any, - disableAutoscroll: n.bool, - distance: n.number, - getContainer: n.func, - getHelperDimensions: n.func, - helperClass: n.string, - helperContainer: n.oneOfType([ - n.func, - 'undefined' == typeof HTMLElement - ? n.any - : n.instanceOf(HTMLElement) - ]), - hideSortableGhost: n.bool, - keyboardSortingTransitionDuration: n.number, - lockAxis: n.string, - lockOffset: n.oneOfType([ - n.number, - n.string, - n.arrayOf(n.oneOfType([n.number, n.string])) - ]), - lockToContainerEdges: n.bool, - onSortEnd: n.func, - onSortMove: n.func, - onSortOver: n.func, - onSortStart: n.func, - pressDelay: n.number, - pressThreshold: n.number, - shouldCancelStart: n.func, - transitionDuration: n.number, - updateBeforeSortStart: n.func, - useDragHandle: n.bool, - useWindowAsScrollContainer: n.bool - }, - Y = { - axis: 'y', - disableAutoscroll: !1, - distance: 0, - getHelperDimensions: function(t) { - var e = t.node; - return { height: e.offsetHeight, width: e.offsetWidth }; - }, - hideSortableGhost: !0, - lockOffset: '50%', - lockToContainerEdges: !1, - pressDelay: 0, - pressThreshold: 5, - shouldCancelStart: function(t) { - return ( - -1 !== - [ - H.Input, - H.Textarea, - H.Select, - H.Option, - H.Button - ].indexOf(t.target.tagName) || - !!C(t.target, function(t) { - return 'true' === t.contentEditable; - }) - ); - }, - transitionDuration: 300, - useWindowAsScrollContainer: !1 - }, - $ = Object.keys(X); - function Q(t) { - var i, - c, - d = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : { withRef: !1 }; - return ( - (c = i = (function(n) { - function i(t) { - var e; - return ( - l(this, i), - (e = p(this, g(i).call(this, t))), - s(h(h(e)), 'handleStart', function(t) { - var n = e.props, - r = n.distance, - i = n.shouldCancelStart; - if (2 !== t.button && !i(t)) { - (e.touched = !0), (e.position = D(t)); - var o = C(t.target, function(t) { - return null != t.sortableInfo; - }); - if ( - o && - o.sortableInfo && - e.nodeIsChild(o) && - !e.state.sorting - ) { - var a = e.props.useDragHandle, - s = o.sortableInfo, - u = s.index, - l = s.collection; - if (s.disabled) return; - if (a && !C(t.target, q)) return; - (e.manager.active = { - collection: l, - index: u - }), - (function(t) { - return ( - (t.touches && t.touches.length) || - (t.changedTouches && - t.changedTouches.length) - ); - })(t) || - t.target.tagName !== H.Anchor || - t.preventDefault(), - r || - (0 === e.props.pressDelay - ? e.handlePress(t) - : (e.pressTimer = setTimeout(function() { - return e.handlePress(t); - }, e.props.pressDelay))); - } - } - }), - s(h(h(e)), 'nodeIsChild', function(t) { - return t.sortableInfo.manager === e.manager; - }), - s(h(h(e)), 'handleMove', function(t) { - var n = e.props, - r = n.distance, - i = n.pressThreshold; - if ( - !e.state.sorting && - e.touched && - !e._awaitingUpdateBeforeSortStart - ) { - var o = D(t), - a = { - x: e.position.x - o.x, - y: e.position.y - o.y - }, - s = Math.abs(a.x) + Math.abs(a.y); - (e.delta = a), - r || (i && !(s >= i)) - ? r && - s >= r && - e.manager.isActive() && - e.handlePress(t) - : (clearTimeout(e.cancelTimer), - (e.cancelTimer = setTimeout(e.cancel, 0))); - } - }), - s(h(h(e)), 'handleEnd', function() { - (e.touched = !1), e.cancel(); - }), - s(h(h(e)), 'cancel', function() { - var t = e.props.distance; - e.state.sorting || - (t || clearTimeout(e.pressTimer), - (e.manager.active = null)); - }), - s(h(h(e)), 'handlePress', function(t) { - try { - var n = e.manager.getActive(), - r = (function() { - if (n) { - var r = function() { - var n, - r, - i, - c, - v, - m, - y = h.sortableInfo.index, - b = - ((n = h), - { - bottom: P( - (r = window.getComputedStyle(n)) - .marginBottom - ), - left: P(r.marginLeft), - right: P(r.marginRight), - top: P(r.marginTop) - }), - _ = e.scrollContainer.getBoundingClientRect(), - w = a({ - collection: p, - index: y, - node: h - }); - if ( - ((e.node = h), - (e.margin = b), - (e.width = w.width), - (e.height = w.height), - (e.marginOffset = { - x: e.margin.left + e.margin.right, - y: Math.max( - e.margin.top, - e.margin.bottom - ) - }), - (e.boundingClientRect = h.getBoundingClientRect()), - (e.containerBoundingRect = _), - (e.index = y), - (e.newIndex = y), - (e.axis = { - x: o.indexOf('x') >= 0, - y: o.indexOf('y') >= 0 - }), - (e.offsetEdge = j(h, e.container)), - (e.initialOffset = D( - g - ? u({}, t, { - pageX: - e.boundingClientRect.left, - pageY: - e.boundingClientRect.top - }) - : t - )), - (e.initialScroll = { - left: e.scrollContainer.scrollLeft, - top: e.scrollContainer.scrollTop - }), - (e.initialWindowScroll = { - left: window.pageXOffset, - top: window.pageYOffset - }), - (e.helper = e.helperContainer.appendChild( - ((c = - 'input, textarea, select, canvas, [contenteditable]'), - (v = (i = h).querySelectorAll(c)), - (m = i.cloneNode(!0)), - x(m.querySelectorAll(c)).forEach( - function(t, e) { - 'file' !== t.type && - (t.value = v[e].value), - 'radio' === t.type && - t.name && - (t.name = '__sortableClone__'.concat( - t.name - )), - t.tagName === H.Canvas && - v[e].width > 0 && - v[e].height > 0 && - t - .getContext('2d') - .drawImage(v[e], 0, 0); - } - ), - m) - )), - k(e.helper, { - boxSizing: 'border-box', - height: ''.concat(e.height, 'px'), - left: ''.concat( - e.boundingClientRect.left - - b.left, - 'px' - ), - pointerEvents: 'none', - position: 'fixed', - top: ''.concat( - e.boundingClientRect.top - b.top, - 'px' - ), - width: ''.concat(e.width, 'px') - }), - g && e.helper.focus(), - l && - ((e.sortableGhost = h), - k(h, { - opacity: 0, - visibility: 'hidden' - })), - (e.minTranslate = {}), - (e.maxTranslate = {}), - g) - ) { - var E = d - ? { - top: 0, - left: 0, - width: - e.contentWindow.innerWidth, - height: - e.contentWindow.innerHeight - } - : e.containerBoundingRect, - A = E.top, - T = E.left, - C = E.width, - O = A + E.height, - M = T + C; - e.axis.x && - ((e.minTranslate.x = - T - e.boundingClientRect.left), - (e.maxTranslate.x = - M - - (e.boundingClientRect.left + - e.width))), - e.axis.y && - ((e.minTranslate.y = - A - e.boundingClientRect.top), - (e.maxTranslate.y = - O - - (e.boundingClientRect.top + - e.height))); - } else - e.axis.x && - ((e.minTranslate.x = - (d ? 0 : _.left) - - e.boundingClientRect.left - - e.width / 2), - (e.maxTranslate.x = - (d - ? e.contentWindow.innerWidth - : _.left + _.width) - - e.boundingClientRect.left - - e.width / 2)), - e.axis.y && - ((e.minTranslate.y = - (d ? 0 : _.top) - - e.boundingClientRect.top - - e.height / 2), - (e.maxTranslate.y = - (d - ? e.contentWindow.innerHeight - : _.top + _.height) - - e.boundingClientRect.top - - e.height / 2)); - s && - s.split(' ').forEach(function(t) { - return e.helper.classList.add(t); - }), - (e.listenerNode = t.touches - ? h - : e.contentWindow), - g - ? (e.listenerNode.addEventListener( - 'wheel', - e.handleKeyEnd, - !0 - ), - e.listenerNode.addEventListener( - 'mousedown', - e.handleKeyEnd, - !0 - ), - e.listenerNode.addEventListener( - 'keydown', - e.handleKeyDown - )) - : (S.move.forEach(function(t) { - return e.listenerNode.addEventListener( - t, - e.handleSortMove, - !1 - ); - }), - S.end.forEach(function(t) { - return e.listenerNode.addEventListener( - t, - e.handleSortEnd, - !1 - ); - })), - e.setState({ - sorting: !0, - sortingIndex: y - }), - f && - f( - { - node: h, - index: y, - collection: p, - isKeySorting: g - }, - t - ), - g && e.keyMove(0); - }, - i = e.props, - o = i.axis, - a = i.getHelperDimensions, - s = i.helperClass, - l = i.hideSortableGhost, - c = i.updateBeforeSortStart, - f = i.onSortStart, - d = i.useWindowAsScrollContainer, - h = n.node, - p = n.collection, - g = e.manager.isKeySorting, - v = (function() { - if ('function' == typeof c) { - e._awaitingUpdateBeforeSortStart = !0; - var n = (function(t, e) { - try { - var n = t(); - } catch (t) { - return e(!0, t); - } - return n && n.then - ? n.then( - e.bind(null, !1), - e.bind(null, !0) - ) - : e(!1, value); - })( - function() { - var e = h.sortableInfo.index; - return Promise.resolve( - c( - { - collection: p, - index: e, - node: h, - isKeySorting: g - }, - t - ) - ).then(function() {}); - }, - function(t, n) { - if ( - ((e._awaitingUpdateBeforeSortStart = !1), - t) - ) - throw n; - return n; - } - ); - if (n && n.then) - return n.then(function() {}); - } - })(); - return v && v.then ? v.then(r) : r(); - } - })(); - return Promise.resolve( - r && r.then ? r.then(function() {}) : void 0 - ); - } catch (t) { - return Promise.reject(t); - } - }), - s(h(h(e)), 'handleSortMove', function(t) { - var n = e.props.onSortMove; - 'function' == typeof t.preventDefault && - t.preventDefault(), - e.updateHelperPosition(t), - e.animateNodes(), - e.autoscroll(), - n && n(t); - }), - s(h(h(e)), 'handleSortEnd', function(t) { - var n = e.props, - r = n.hideSortableGhost, - i = n.onSortEnd, - o = e.manager, - a = o.active.collection, - s = o.isKeySorting, - u = e.manager.refs[a]; - e.listenerNode && - (s - ? (e.listenerNode.removeEventListener( - 'wheel', - e.handleKeyEnd, - !0 - ), - e.listenerNode.removeEventListener( - 'mousedown', - e.handleKeyEnd, - !0 - ), - e.listenerNode.removeEventListener( - 'keydown', - e.handleKeyDown - )) - : (S.move.forEach(function(t) { - return e.listenerNode.removeEventListener( - t, - e.handleSortMove - ); - }), - S.end.forEach(function(t) { - return e.listenerNode.removeEventListener( - t, - e.handleSortEnd - ); - }))), - e.helper.parentNode.removeChild(e.helper), - r && - e.sortableGhost && - k(e.sortableGhost, { - opacity: '', - visibility: '' - }); - for (var l = 0, c = u.length; l < c; l++) { - var f = u[l], - d = f.node; - (f.edgeOffset = null), - (f.boundingClientRect = null), - A(d, null), - T(d, null), - (f.translate = null); - } - e.autoScroller.clear(), - (e.manager.active = null), - (e.manager.isKeySorting = !1), - e.setState({ sorting: !1, sortingIndex: null }), - 'function' == typeof i && - i( - { - collection: a, - newIndex: e.newIndex, - oldIndex: e.index, - isKeySorting: s - }, - t - ), - (e.touched = !1); - }), - s(h(h(e)), 'autoscroll', function() { - var t = e.props.disableAutoscroll, - n = e.manager.isKeySorting; - if (!t) { - if (n) { - var r = u({}, e.translate), - i = 0, - o = 0; - return ( - e.axis.x && - ((r.x = Math.min( - e.maxTranslate.x, - Math.max(e.minTranslate.x, e.translate.x) - )), - (i = e.translate.x - r.x)), - e.axis.y && - ((r.y = Math.min( - e.maxTranslate.y, - Math.max(e.minTranslate.y, e.translate.y) - )), - (o = e.translate.y - r.y)), - (e.translate = r), - A(e.helper, e.translate), - (e.scrollContainer.scrollLeft += i), - void (e.scrollContainer.scrollTop += o) - ); - } - e.autoScroller.update({ - height: e.height, - maxTranslate: e.maxTranslate, - minTranslate: e.minTranslate, - translate: e.translate, - width: e.width - }); - } - }), - s(h(h(e)), 'onAutoScroll', function(t) { - (e.translate.x += t.left), - (e.translate.y += t.top), - e.animateNodes(); - }), - s(h(h(e)), 'handleKeyDown', function(t) { - var n = t.keyCode, - r = e.props.shouldCancelStart; - if ( - (!e.manager.active || e.manager.isKeySorting) && - (e.manager.active || - (n === I && !r(t) && e.isValidSortingTarget(t))) - ) - switch ( - (t.stopPropagation(), t.preventDefault(), n) - ) { - case I: - e.manager.active - ? e.keyDrop(t) - : e.keyLift(t); - break; - case G: - case B: - e.keyMove(1); - break; - case V: - case F: - e.keyMove(-1); - break; - case z: - (e.newIndex = e.manager.active.index), - e.keyDrop(t); - } - }), - s(h(h(e)), 'keyLift', function(t) { - var n = t.target, - r = C(n, function(t) { - return null != t.sortableInfo; - }).sortableInfo, - i = r.index, - o = r.collection; - (e.initialFocusedNode = n), - (e.manager.isKeySorting = !0), - (e.manager.active = { index: i, collection: o }), - e.handlePress(t); - }), - s(h(h(e)), 'keyMove', function(t) { - var n = e.manager.getOrderedRefs(), - r = n[n.length - 1].node.sortableInfo.index, - i = e.newIndex + t, - o = e.newIndex; - if (!(i < 0 || i > r)) { - (e.prevIndex = o), (e.newIndex = i); - var a = (function(t, e, n) { - return t < n && t > e - ? t - 1 - : t > n && t < e - ? t + 1 - : t; - })(e.newIndex, e.prevIndex, e.index), - s = n.find(function(t) { - return t.node.sortableInfo.index === a; - }), - u = s.node, - l = e.containerScrollDelta, - c = s.boundingClientRect || L(u, l), - f = s.translate || { x: 0, y: 0 }, - d = c.top + f.y - l.top, - h = c.left + f.x - l.left, - p = o < i, - g = p && e.axis.x ? u.offsetWidth - e.width : 0, - v = - p && e.axis.y ? u.offsetHeight - e.height : 0; - e.handleSortMove({ - pageX: h + g, - pageY: d + v, - ignoreTransition: 0 === t - }); - } - }), - s(h(h(e)), 'keyDrop', function(t) { - e.handleSortEnd(t), - e.initialFocusedNode && - e.initialFocusedNode.focus(); - }), - s(h(h(e)), 'handleKeyEnd', function(t) { - e.manager.active && e.keyDrop(t); - }), - s(h(h(e)), 'isValidSortingTarget', function(t) { - var n = e.props.useDragHandle, - r = t.target, - i = C(r, function(t) { - return null != t.sortableInfo; - }); - return ( - i && - i.sortableInfo && - !i.sortableInfo.disabled && - (n ? q(r) : r.sortableInfo) - ); - }), - (function(t) { - y( - !(t.distance && t.pressDelay), - 'Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.' - ); - })(t), - (e.state = {}), - (e.manager = new b()), - (e.events = { - end: e.handleEnd, - move: e.handleMove, - start: e.handleStart - }), - e - ); - } - return ( - m(i, n), - f(i, [ - { - key: 'getChildContext', - value: function() { - return { manager: this.manager }; - } - }, - { - key: 'componentDidMount', - value: function() { - var t = this, - e = this.props.useWindowAsScrollContainer, - n = this.getContainer(); - Promise.resolve(n).then(function(n) { - (t.container = n), - (t.document = - t.container.ownerDocument || document); - var r = - t.props.contentWindow || - t.document.defaultView || - window; - (t.contentWindow = - 'function' == typeof r ? r() : r), - (t.scrollContainer = e - ? t.document.scrollingElement || - t.document.documentElement - : N(t.container) || t.container), - (t.autoScroller = new W( - t.scrollContainer, - t.onAutoScroll - )), - Object.keys(t.events).forEach(function(e) { - return S[e].forEach(function(n) { - return t.container.addEventListener( - n, - t.events[e], - !1 - ); - }); - }), - t.container.addEventListener( - 'keydown', - t.handleKeyDown - ); - }); - } - }, - { - key: 'componentWillUnmount', - value: function() { - var t = this; - this.helper && - this.helper.parentNode && - this.helper.parentNode.removeChild(this.helper), - this.container && - (Object.keys(this.events).forEach(function( - e - ) { - return S[e].forEach(function(n) { - return t.container.removeEventListener( - n, - t.events[e] - ); - }); - }), - this.container.removeEventListener( - 'keydown', - this.handleKeyDown - )); - } - }, - { - key: 'updateHelperPosition', - value: function(t) { - var e = this.props, - n = e.lockAxis, - r = e.lockOffset, - i = e.lockToContainerEdges, - o = e.transitionDuration, - s = e.keyboardSortingTransitionDuration, - u = void 0 === s ? o : s, - l = this.manager.isKeySorting, - c = t.ignoreTransition, - f = D(t), - d = { - x: f.x - this.initialOffset.x, - y: f.y - this.initialOffset.y - }; - if ( - ((d.y -= - window.pageYOffset - - this.initialWindowScroll.top), - (d.x -= - window.pageXOffset - - this.initialWindowScroll.left), - (this.translate = d), - i) - ) { - var h = (function(t) { - var e = t.height, - n = t.width, - r = t.lockOffset, - i = Array.isArray(r) ? r : [r, r]; - y( - 2 === i.length, - 'lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s', - r - ); - var o = a(i, 2), - s = o[0], - u = o[1]; - return [ - R({ height: e, lockOffset: s, width: n }), - R({ height: e, lockOffset: u, width: n }) - ]; - })({ - height: this.height, - lockOffset: r, - width: this.width - }), - p = a(h, 2), - g = p[0], - v = p[1], - m = { - x: this.width / 2 - g.x, - y: this.height / 2 - g.y - }, - b = { - x: this.width / 2 - v.x, - y: this.height / 2 - v.y - }; - (d.x = O( - this.minTranslate.x + m.x, - this.maxTranslate.x - b.x, - d.x - )), - (d.y = O( - this.minTranslate.y + m.y, - this.maxTranslate.y - b.y, - d.y - )); - } - 'x' === n ? (d.y = 0) : 'y' === n && (d.x = 0), - l && u && !c && T(this.helper, u), - A(this.helper, d); - } - }, - { - key: 'animateNodes', - value: function() { - var t = this.props, - e = t.transitionDuration, - n = t.hideSortableGhost, - r = t.onSortOver, - i = this.containerScrollDelta, - o = this.windowScrollDelta, - a = this.manager.getOrderedRefs(), - s = - this.offsetEdge.left + - this.translate.x + - i.left, - u = - this.offsetEdge.top + - this.translate.y + - i.top, - l = this.manager.isKeySorting, - c = this.newIndex; - this.newIndex = null; - for (var f = 0, d = a.length; f < d; f++) { - var h = a[f].node, - p = h.sortableInfo.index, - g = h.offsetWidth, - v = h.offsetHeight, - m = { - height: - this.height > v ? v / 2 : this.height / 2, - width: - this.width > g ? g / 2 : this.width / 2 - }, - y = l && p > this.index && p <= c, - b = l && p < this.index && p >= c, - _ = { x: 0, y: 0 }, - x = a[f].edgeOffset; - x || - ((x = j(h, this.container)), - (a[f].edgeOffset = x), - l && (a[f].boundingClientRect = L(h, i))); - var w = f < a.length - 1 && a[f + 1], - S = f > 0 && a[f - 1]; - w && - !w.edgeOffset && - ((w.edgeOffset = j(w.node, this.container)), - l && (w.boundingClientRect = L(w.node, i))), - p !== this.index - ? (e && T(h, e), - this.axis.x - ? this.axis.y - ? b || - (p < this.index && - ((s + o.left - m.width <= - x.left && - u + o.top <= - x.top + m.height) || - u + o.top + m.height <= x.top)) - ? ((_.x = - this.width + - this.marginOffset.x), - x.left + _.x > - this.containerBoundingRect - .width - - m.width && - w && - ((_.x = - w.edgeOffset.left - x.left), - (_.y = - w.edgeOffset.top - x.top)), - null === this.newIndex && - (this.newIndex = p)) - : (y || - (p > this.index && - ((s + o.left + m.width >= - x.left && - u + o.top + m.height >= - x.top) || - u + o.top + m.height >= - x.top + v))) && - ((_.x = -( - this.width + this.marginOffset.x - )), - x.left + _.x < - this.containerBoundingRect - .left + - m.width && - S && - ((_.x = - S.edgeOffset.left - x.left), - (_.y = - S.edgeOffset.top - x.top)), - (this.newIndex = p)) - : y || - (p > this.index && - s + o.left + m.width >= x.left) - ? ((_.x = -( - this.width + this.marginOffset.x - )), - (this.newIndex = p)) - : (b || - (p < this.index && - s + o.left <= - x.left + m.width)) && - ((_.x = - this.width + this.marginOffset.x), - null == this.newIndex && - (this.newIndex = p)) - : this.axis.y && - (y || - (p > this.index && - u + o.top + m.height >= x.top) - ? ((_.y = -( - this.height + - this.marginOffset.y - )), - (this.newIndex = p)) - : (b || - (p < this.index && - u + o.top <= - x.top + m.height)) && - ((_.y = - this.height + - this.marginOffset.y), - null == this.newIndex && - (this.newIndex = p))), - A(h, _), - (a[f].translate = _)) - : n && - ((this.sortableGhost = h), - k(h, { - opacity: 0, - visibility: 'hidden' - })); - } - null == this.newIndex && - (this.newIndex = this.index), - l && (this.newIndex = c); - var E = l ? this.prevIndex : c; - r && - this.newIndex !== E && - r({ - collection: this.manager.active.collection, - index: this.index, - newIndex: this.newIndex, - oldIndex: E, - isKeySorting: l - }); - } - }, - { - key: 'getWrappedInstance', - value: function() { - return ( - y( - d.withRef, - 'To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call' - ), - this.refs.wrappedInstance - ); - } - }, - { - key: 'getContainer', - value: function() { - var t = this.props.getContainer; - return 'function' != typeof t - ? r.findDOMNode(this) - : t( - d.withRef - ? this.getWrappedInstance() - : void 0 - ); - } - }, - { - key: 'render', - value: function() { - var n = d.withRef ? 'wrappedInstance' : null; - return e.createElement( - t, - o({ ref: n }, w(this.props, $)) - ); - } - }, - { - key: 'helperContainer', - get: function() { - var t = this.props.helperContainer; - return 'function' == typeof t - ? t() - : this.props.helperContainer || - this.document.body; - } - }, - { - key: 'containerScrollDelta', - get: function() { - return this.props.useWindowAsScrollContainer - ? { left: 0, top: 0 } - : { - left: - this.scrollContainer.scrollLeft - - this.initialScroll.left, - top: - this.scrollContainer.scrollTop - - this.initialScroll.top - }; - } - }, - { - key: 'windowScrollDelta', - get: function() { - return { - left: - this.contentWindow.pageXOffset - - this.initialWindowScroll.left, - top: - this.contentWindow.pageYOffset - - this.initialWindowScroll.top - }; - } - } - ]), - i - ); - })(e.Component)), - s(i, 'displayName', M('sortableList', t)), - s(i, 'defaultProps', Y), - s(i, 'propTypes', X), - s(i, 'childContextTypes', { manager: n.object.isRequired }), - c - ); - } - var K = { - index: n.number.isRequired, - collection: n.oneOfType([n.number, n.string]), - disabled: n.bool - }, - Z = Object.keys(K); - function J(t) { - var i, - a, - u = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : { withRef: !1 }; - return ( - (a = i = (function(n) { - function i() { - return l(this, i), p(this, g(i).apply(this, arguments)); - } - return ( - m(i, n), - f(i, [ - { - key: 'componentDidMount', - value: function() { - this.register(); - } - }, - { - key: 'componentDidUpdate', - value: function(t) { - this.node && - (t.index !== this.props.index && - (this.node.sortableInfo.index = this.props.index), - t.disabled !== this.props.disabled && - (this.node.sortableInfo.disabled = this.props.disabled)), - t.collection !== this.props.collection && - (this.unregister(t.collection), - this.register()); - } - }, - { - key: 'componentWillUnmount', - value: function() { - this.unregister(); - } - }, - { - key: 'register', - value: function() { - var t = this.props, - e = t.collection, - n = t.disabled, - i = t.index, - o = r.findDOMNode(this); - (o.sortableInfo = { - collection: e, - disabled: n, - index: i, - manager: this.context.manager - }), - (this.node = o), - (this.ref = { node: o }), - this.context.manager.add(e, this.ref); - } - }, - { - key: 'unregister', - value: function() { - var t = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : this.props.collection; - this.context.manager.remove(t, this.ref); - } - }, - { - key: 'getWrappedInstance', - value: function() { - return ( - y( - u.withRef, - 'To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call' - ), - this.refs.wrappedInstance - ); - } - }, - { - key: 'render', - value: function() { - var n = u.withRef ? 'wrappedInstance' : null; - return e.createElement( - t, - o({ ref: n }, w(this.props, Z)) - ); - } - } - ]), - i - ); - })(e.Component)), - s(i, 'displayName', M('sortableElement', t)), - s(i, 'contextTypes', { manager: n.object.isRequired }), - s(i, 'propTypes', K), - s(i, 'defaultProps', { collection: 0 }), - a - ); - } - (t.SortableContainer = Q), - (t.sortableContainer = Q), - (t.SortableElement = J), - (t.sortableElement = J), - (t.SortableHandle = U), - (t.sortableHandle = U), - (t.arrayMove = function(t, e, n) { - return ( - 'undefined' != typeof console && - console.warn( - "Deprecation warning: arrayMove will no longer be exported by 'react-sortable-hoc' in the next major release. Please install the `array-move` package locally instead. https://www.npmjs.com/package/array-move" - ), - (t = t.slice()).splice( - n < 0 ? t.length + n : n, - 0, - t.splice(e, 1)[0] - ), - t - ); - }), - Object.defineProperty(t, '__esModule', { value: !0 }); - })(e, n(0), n(1), n(99)); - }, - function(t, e) { - t.exports = l; - }, - function(t, e) { - var n; - n = (function() { - return this; - })(); - try { - n = n || new Function('return this')(); - } catch (t) { - 'object' == typeof window && (n = window); - } - t.exports = n; - }, - function(t, e, n) { - var r = n(56), - i = n(60); - t.exports = function(t, e) { - return t && r(t, i(e)); - }; - }, - function(t, e, n) { - var r = n(107), - i = n(6), - o = Object.prototype, - a = o.hasOwnProperty, - s = o.propertyIsEnumerable, - u = r( - (function() { - return arguments; - })() - ) - ? r - : function(t) { - return ( - i(t) && a.call(t, 'callee') && !s.call(t, 'callee') - ); - }; - t.exports = u; - }, - function(t, e) { - var n = /^(?:0|[1-9]\d*)$/; - t.exports = function(t, e) { - var r = typeof t; - return ( - !!(e = null == e ? 9007199254740991 : e) && - ('number' == r || ('symbol' != r && n.test(t))) && - t > -1 && - t % 1 == 0 && - t < e - ); - }; - }, - function(t, e, n) { - var r = n(109), - i = n(42), - o = n(43), - a = o && o.isTypedArray, - s = a ? i(a) : r; - t.exports = s; - }, - function(t, e) { - t.exports = function(t) { - return ( - 'number' == typeof t && - t > -1 && - t % 1 == 0 && - t <= 9007199254740991 - ); - }; - }, - function(t, e) { - t.exports = function(t) { - return function(e) { - return t(e); - }; - }; - }, - function(t, e, n) { - (function(t) { - var r = n(55), - i = e && !e.nodeType && e, - o = i && 'object' == typeof t && t && !t.nodeType && t, - a = o && o.exports === i && r.process, - s = (function() { - try { - return ( - (o && o.require && o.require('util').types) || - (a && a.binding && a.binding('util')) - ); - } catch (t) {} - })(); - t.exports = s; - }.call(this, n(20)(t))); - }, - function(t, e) { - var n = Object.prototype; - t.exports = function(t) { - var e = t && t.constructor; - return t === (('function' == typeof e && e.prototype) || n); - }; - }, - function(t, e, n) { - var r = n(10), - i = n(4); - t.exports = function(t) { - if (!i(t)) return !1; - var e = r(t); - return ( - '[object Function]' == e || - '[object GeneratorFunction]' == e || - '[object AsyncFunction]' == e || - '[object Proxy]' == e - ); - }; - }, - function(t, e, n) { - var r = n(59)(Object.getPrototypeOf, Object); - t.exports = r; - }, - function(t, e, n) { - var r = n(11)(n(5), 'Map'); - t.exports = r; - }, - function(t, e, n) { - var r = n(130), - i = n(137), - o = n(139), - a = n(140), - s = n(141); - function u(t) { - var e = -1, - n = null == t ? 0 : t.length; - for (this.clear(); ++e < n; ) { - var r = t[e]; - this.set(r[0], r[1]); - } - } - (u.prototype.clear = r), - (u.prototype.delete = i), - (u.prototype.get = o), - (u.prototype.has = a), - (u.prototype.set = s), - (t.exports = u); - }, - function(t, e, n) { - var r = n(152), - i = n(70), - o = Object.prototype.propertyIsEnumerable, - a = Object.getOwnPropertySymbols, - s = a - ? function(t) { - return null == t - ? [] - : ((t = Object(t)), - r(a(t), function(e) { - return o.call(t, e); - })); - } - : i; - t.exports = s; - }, - function(t, e, n) { - var r = n(3), - i = n(29), - o = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, - a = /^\w*$/; - t.exports = function(t, e) { - if (r(t)) return !1; - var n = typeof t; - return ( - !( - 'number' != n && - 'symbol' != n && - 'boolean' != n && - null != t && - !i(t) - ) || - a.test(t) || - !o.test(t) || - (null != e && t in Object(e)) - ); - }; - }, - function(t, e, n) { - var r = n(78); - t.exports = function(t, e, n) { - '__proto__' == e && r - ? r(t, e, { - configurable: !0, - enumerable: !0, - value: n, - writable: !0 - }) - : (t[e] = n); - }; - }, - function(t, e, n) { - var r = n(66); - t.exports = function(t) { - var e = new t.constructor(t.byteLength); - return new r(e).set(new r(t)), e; - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Checkboard = void 0); - var r = a(n(0)), - i = a(n(9)), - o = (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && - (e[n] = t[n]); - return (e.default = t), e; - })(n(198)); - function a(t) { - return t && t.__esModule ? t : { default: t }; - } - var s = (e.Checkboard = function(t) { - var e = t.white, - n = t.grey, - a = t.size, - s = t.renderers, - u = t.borderRadius, - l = t.boxShadow, - c = (0, i.default)({ - default: { - grid: { - borderRadius: u, - boxShadow: l, - absolute: '0px 0px 0px 0px', - background: - 'url('https://github.com/+%20o.get(e,%20n,%20a,%20s.canvas) + ') center left' - } - } - }); - return r.default.createElement('div', { style: c.grid }); - }); - (s.defaultProps = { - size: 8, - white: 'transparent', - grey: 'rgba(0,0,0,.08)', - renderers: {} - }), - (e.default = s); - }, - function(t, e) { - var n, - r, - i = (t.exports = {}); - function o() { - throw new Error('setTimeout has not been defined'); - } - function a() { - throw new Error('clearTimeout has not been defined'); - } - function s(t) { - if (n === setTimeout) return setTimeout(t, 0); - if ((n === o || !n) && setTimeout) - return (n = setTimeout), setTimeout(t, 0); - try { - return n(t, 0); - } catch (e) { - try { - return n.call(null, t, 0); - } catch (e) { - return n.call(this, t, 0); - } - } - } - !(function() { - try { - n = 'function' == typeof setTimeout ? setTimeout : o; - } catch (t) { - n = o; - } - try { - r = 'function' == typeof clearTimeout ? clearTimeout : a; - } catch (t) { - r = a; - } - })(); - var u, - l = [], - c = !1, - f = -1; - function d() { - c && - u && - ((c = !1), - u.length ? (l = u.concat(l)) : (f = -1), - l.length && h()); - } - function h() { - if (!c) { - var t = s(d); - c = !0; - for (var e = l.length; e; ) { - for (u = l, l = []; ++f < e; ) u && u[f].run(); - (f = -1), (e = l.length); - } - (u = null), - (c = !1), - (function(t) { - if (r === clearTimeout) return clearTimeout(t); - if ((r === a || !r) && clearTimeout) - return (r = clearTimeout), clearTimeout(t); - try { - r(t); - } catch (e) { - try { - return r.call(null, t); - } catch (e) { - return r.call(this, t); - } - } - })(t); - } - } - function p(t, e) { - (this.fun = t), (this.array = e); - } - function g() {} - (i.nextTick = function(t) { - var e = new Array(arguments.length - 1); - if (arguments.length > 1) - for (var n = 1; n < arguments.length; n++) - e[n - 1] = arguments[n]; - l.push(new p(t, e)), 1 !== l.length || c || s(h); - }), - (p.prototype.run = function() { - this.fun.apply(null, this.array); - }), - (i.title = 'browser'), - (i.browser = !0), - (i.env = {}), - (i.argv = []), - (i.version = ''), - (i.versions = {}), - (i.on = g), - (i.addListener = g), - (i.once = g), - (i.off = g), - (i.removeListener = g), - (i.removeAllListeners = g), - (i.emit = g), - (i.prependListener = g), - (i.prependOnceListener = g), - (i.listeners = function(t) { - return []; - }), - (i.binding = function(t) { - throw new Error('process.binding is not supported'); - }), - (i.cwd = function() { - return '/'; - }), - (i.chdir = function(t) { - throw new Error('process.chdir is not supported'); - }), - (i.umask = function() { - return 0; - }); - }, - function(t, e, n) { - (function(e) { - var n = 'object' == typeof e && e && e.Object === Object && e; - t.exports = n; - }.call(this, n(36))); - }, - function(t, e, n) { - var r = n(57), - i = n(16); - t.exports = function(t, e) { - return t && r(t, e, i); - }; - }, - function(t, e, n) { - var r = n(105)(); - t.exports = r; - }, - function(t, e, n) { - var r = n(106), - i = n(38), - o = n(3), - a = n(21), - s = n(39), - u = n(40), - l = Object.prototype.hasOwnProperty; - t.exports = function(t, e) { - var n = o(t), - c = !n && i(t), - f = !n && !c && a(t), - d = !n && !c && !f && u(t), - h = n || c || f || d, - p = h ? r(t.length, String) : [], - g = p.length; - for (var v in t) - (!e && !l.call(t, v)) || - (h && - ('length' == v || - (f && ('offset' == v || 'parent' == v)) || - (d && - ('buffer' == v || - 'byteLength' == v || - 'byteOffset' == v)) || - s(v, g))) || - p.push(v); - return p; - }; - }, - function(t, e) { - t.exports = function(t, e) { - return function(n) { - return t(e(n)); - }; - }; - }, - function(t, e, n) { - var r = n(22); - t.exports = function(t) { - return 'function' == typeof t ? t : r; - }; - }, - function(t, e, n) { - var r = n(10), - i = n(46), - o = n(6), - a = Function.prototype, - s = Object.prototype, - u = a.toString, - l = s.hasOwnProperty, - c = u.call(Object); - t.exports = function(t) { - if (!o(t) || '[object Object]' != r(t)) return !1; - var e = i(t); - if (null === e) return !0; - var n = l.call(e, 'constructor') && e.constructor; - return ( - 'function' == typeof n && n instanceof n && u.call(n) == c - ); - }; - }, - function(t, e) { - t.exports = function(t, e) { - for ( - var n = -1, r = null == t ? 0 : t.length, i = Array(r); - ++n < r; - - ) - i[n] = e(t[n], n, t); - return i; - }; - }, - function(t, e) { - var n = Function.prototype.toString; - t.exports = function(t) { - if (null != t) { - try { - return n.call(t); - } catch (t) {} - try { - return t + ''; - } catch (t) {} - } - return ''; - }; - }, - function(t, e, n) { - var r = n(142), - i = n(6); - t.exports = function t(e, n, o, a, s) { - return ( - e === n || - (null == e || null == n || (!i(e) && !i(n)) - ? e != e && n != n - : r(e, n, o, a, t, s)) - ); - }; - }, - function(t, e, n) { - var r = n(143), - i = n(146), - o = n(147); - t.exports = function(t, e, n, a, s, u) { - var l = 1 & n, - c = t.length, - f = e.length; - if (c != f && !(l && f > c)) return !1; - var d = u.get(t); - if (d && u.get(e)) return d == e; - var h = -1, - p = !0, - g = 2 & n ? new r() : void 0; - for (u.set(t, e), u.set(e, t); ++h < c; ) { - var v = t[h], - m = e[h]; - if (a) var y = l ? a(m, v, h, e, t, u) : a(v, m, h, t, e, u); - if (void 0 !== y) { - if (y) continue; - p = !1; - break; - } - if (g) { - if ( - !i(e, function(t, e) { - if (!o(g, e) && (v === t || s(v, t, n, a, u))) - return g.push(e); - }) - ) { - p = !1; - break; - } - } else if (v !== m && !s(v, m, n, a, u)) { - p = !1; - break; - } - } - return u.delete(t), u.delete(e), p; - }; - }, - function(t, e, n) { - var r = n(5).Uint8Array; - t.exports = r; - }, - function(t, e, n) { - var r = n(68), - i = n(49), - o = n(16); - t.exports = function(t) { - return r(t, o, i); - }; - }, - function(t, e, n) { - var r = n(69), - i = n(3); - t.exports = function(t, e, n) { - var o = e(t); - return i(t) ? o : r(o, n(t)); - }; - }, - function(t, e) { - t.exports = function(t, e) { - for (var n = -1, r = e.length, i = t.length; ++n < r; ) - t[i + n] = e[n]; - return t; - }; - }, - function(t, e) { - t.exports = function() { - return []; - }; - }, - function(t, e, n) { - var r = n(4); - t.exports = function(t) { - return t == t && !r(t); - }; - }, - function(t, e) { - t.exports = function(t, e) { - return function(n) { - return ( - null != n && n[t] === e && (void 0 !== e || t in Object(n)) - ); - }; - }; - }, - function(t, e, n) { - var r = n(74), - i = n(30); - t.exports = function(t, e) { - for (var n = 0, o = (e = r(e, t)).length; null != t && n < o; ) - t = t[i(e[n++])]; - return n && n == o ? t : void 0; - }; - }, - function(t, e, n) { - var r = n(3), - i = n(50), - o = n(160), - a = n(163); - t.exports = function(t, e) { - return r(t) ? t : i(t, e) ? [t] : o(a(t)); - }; - }, - function(t, e, n) { - var r = n(56), - i = n(172)(r); - t.exports = i; - }, - function(t, e) { - t.exports = function(t, e) { - for ( - var n = -1, r = null == t ? 0 : t.length; - ++n < r && !1 !== e(t[n], n, t); - - ); - return t; - }; - }, - function(t, e, n) { - var r = n(51), - i = n(17), - o = Object.prototype.hasOwnProperty; - t.exports = function(t, e, n) { - var a = t[e]; - (o.call(t, e) && i(a, n) && (void 0 !== n || e in t)) || - r(t, e, n); - }; - }, - function(t, e, n) { - var r = n(11), - i = (function() { - try { - var t = r(Object, 'defineProperty'); - return t({}, '', {}), t; - } catch (t) {} - })(); - t.exports = i; - }, - function(t, e, n) { - (function(t) { - var r = n(5), - i = e && !e.nodeType && e, - o = i && 'object' == typeof t && t && !t.nodeType && t, - a = o && o.exports === i ? r.Buffer : void 0, - s = a ? a.allocUnsafe : void 0; - t.exports = function(t, e) { - if (e) return t.slice(); - var n = t.length, - r = s ? s(n) : new t.constructor(n); - return t.copy(r), r; - }; - }.call(this, n(20)(t))); - }, - function(t, e) { - t.exports = function(t, e) { - var n = -1, - r = t.length; - for (e || (e = Array(r)); ++n < r; ) e[n] = t[n]; - return e; - }; - }, - function(t, e, n) { - var r = n(69), - i = n(46), - o = n(49), - a = n(70), - s = Object.getOwnPropertySymbols - ? function(t) { - for (var e = []; t; ) r(e, o(t)), (t = i(t)); - return e; - } - : a; - t.exports = s; - }, - function(t, e, n) { - var r = n(52); - t.exports = function(t, e) { - var n = e ? r(t.buffer) : t.buffer; - return new t.constructor(n, t.byteOffset, t.length); - }; - }, - function(t, e, n) { - var r = n(188), - i = n(46), - o = n(44); - t.exports = function(t) { - return 'function' != typeof t.constructor || o(t) - ? {} - : r(i(t)); - }; - }, - function(t, e, n) { - var r = n(51), - i = n(17); - t.exports = function(t, e, n) { - ((void 0 === n || i(t[e], n)) && (void 0 !== n || e in t)) || - r(t, e, n); - }; - }, - function(t, e) { - t.exports = function(t, e) { - if ('__proto__' != e) return t[e]; - }; - }, - function(t, e, n) { - var r = n(4), - i = n(219), - o = n(220), - a = Math.max, - s = Math.min; - t.exports = function(t, e, n) { - var u, - l, - c, - f, - d, - h, - p = 0, - g = !1, - v = !1, - m = !0; - if ('function' != typeof t) - throw new TypeError('Expected a function'); - function y(e) { - var n = u, - r = l; - return (u = l = void 0), (p = e), (f = t.apply(r, n)); - } - function b(t) { - var n = t - h; - return void 0 === h || n >= e || n < 0 || (v && t - p >= c); - } - function _() { - var t = i(); - if (b(t)) return x(t); - d = setTimeout( - _, - (function(t) { - var n = e - (t - h); - return v ? s(n, c - (t - p)) : n; - })(t) - ); - } - function x(t) { - return (d = void 0), m && u ? y(t) : ((u = l = void 0), f); - } - function w() { - var t = i(), - n = b(t); - if (((u = arguments), (l = this), (h = t), n)) { - if (void 0 === d) - return (function(t) { - return (p = t), (d = setTimeout(_, e)), g ? y(t) : f; - })(h); - if (v) return (d = setTimeout(_, e)), y(h); - } - return void 0 === d && (d = setTimeout(_, e)), f; - } - return ( - (e = o(e) || 0), - r(n) && - ((g = !!n.leading), - (c = (v = 'maxWait' in n) ? a(o(n.maxWait) || 0, e) : c), - (m = 'trailing' in n ? !!n.trailing : m)), - (w.cancel = function() { - void 0 !== d && clearTimeout(d), - (p = 0), - (u = h = l = d = void 0); - }), - (w.flush = function() { - return void 0 === d ? f : x(i()); - }), - w - ); - }; - }, - function(t, e, n) { - 'use strict'; - (function(t) { - var n, - r = - 'undefined' != typeof Symbol - ? Symbol('immer-nothing') - : (((n = {})['immer-nothing'] = !0), n), - i = - 'undefined' != typeof Symbol && Symbol.for - ? Symbol.for('immer-draftable') - : '__$immer_draftable', - o = - 'undefined' != typeof Symbol && Symbol.for - ? Symbol.for('immer-state') - : '__$immer_state'; - function a(t) { - return !!t && !!t[o]; - } - function s(t) { - return ( - !!t && - ((function(t) { - if (!t || 'object' != typeof t) return !1; - if (Array.isArray(t)) return !0; - var e = Object.getPrototypeOf(t); - return !e || e === Object.prototype; - })(t) || - !!t[i] || - !!t.constructor[i]) - ); - } - var u = - Object.assign || - function(t, e) { - for (var n in e) h(e, n) && (t[n] = e[n]); - return t; - }, - l = - 'undefined' != typeof Reflect && Reflect.ownKeys - ? Reflect.ownKeys - : void 0 !== Object.getOwnPropertySymbols - ? function(t) { - return Object.getOwnPropertyNames(t).concat( - Object.getOwnPropertySymbols(t) - ); - } - : Object.getOwnPropertyNames; - function c(t, e) { - if ((void 0 === e && (e = !1), Array.isArray(t))) - return t.slice(); - var n = Object.create(Object.getPrototypeOf(t)); - return ( - l(t).forEach(function(r) { - if (r !== o) { - var i = Object.getOwnPropertyDescriptor(t, r), - a = i.value; - if (i.get) { - if (!e) - throw new Error( - 'Immer drafts cannot have computed properties' - ); - a = i.get.call(t); - } - i.enumerable - ? (n[r] = a) - : Object.defineProperty(n, r, { - value: a, - writable: !0, - configurable: !0 - }); - } - }), - n - ); - } - function f(t, e) { - if (Array.isArray(t)) - for (var n = 0; n < t.length; n++) e(n, t[n], t); - else - l(t).forEach(function(n) { - return e(n, t[n], t); - }); - } - function d(t, e) { - var n = Object.getOwnPropertyDescriptor(t, e); - return !!n && n.enumerable; - } - function h(t, e) { - return Object.prototype.hasOwnProperty.call(t, e); - } - function p(t, e) { - return t === e ? 0 !== t || 1 / t == 1 / e : t != t && e != e; - } - function g(t) { - if (!s(t)) return t; - if (Array.isArray(t)) return t.map(g); - var e = Object.create(Object.getPrototypeOf(t)); - for (var n in t) e[n] = g(t[n]); - return e; - } - function v(t) { - if (s(t) && !a(t) && !Object.isFrozen(t)) - if ((Object.freeze(t), Array.isArray(t))) t.forEach(v); - else for (var e in t) v(t[e]); - } - var m = function(t) { - (this.drafts = []), - (this.parent = t), - (this.canAutoFreeze = !0), - (this.patches = null); - }; - function y(t) { - t[o].revoke(); - } - (m.prototype.usePatches = function(t) { - t && - ((this.patches = []), - (this.inversePatches = []), - (this.patchListener = t)); - }), - (m.prototype.revoke = function() { - this.leave(), this.drafts.forEach(y), (this.drafts = null); - }), - (m.prototype.leave = function() { - this === m.current && (m.current = this.parent); - }), - (m.current = null), - (m.enter = function() { - return (this.current = new m(this.current)); - }); - var b = {}; - function _() { - this.revoked = !0; - } - function x(t) { - return t.copy || t.base; - } - function w(t, e) { - var n = t[o]; - if (n && !n.finalizing) { - n.finalizing = !0; - var r = t[e]; - return (n.finalizing = !1), r; - } - return t[e]; - } - function S(t) { - t.modified || ((t.modified = !0), t.parent && S(t.parent)); - } - function E(t) { - t.copy || (t.copy = k(t.base)); - } - function k(t) { - var e = t && t[o]; - if (e) { - e.finalizing = !0; - var n = c(e.draft, !0); - return (e.finalizing = !1), n; - } - return c(t); - } - function A(t) { - if (!0 === t.revoked) - throw new Error( - 'Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? ' + - JSON.stringify(x(t)) - ); - } - function T(t) { - for (var e = t.length - 1; e >= 0; e--) { - var n = t[e][o]; - n.modified || - (Array.isArray(n.base) ? O(n) && S(n) : C(n) && S(n)); - } - } - function C(t) { - for ( - var e = t.base, - n = t.draft, - r = Object.keys(n), - i = r.length - 1; - i >= 0; - i-- - ) { - var a = r[i], - s = e[a]; - if (void 0 === s && !h(e, a)) return !0; - var u = n[a], - l = u && u[o]; - if (l ? l.base !== s : !p(u, s)) return !0; - } - return r.length !== Object.keys(e).length; - } - function O(t) { - var e = t.draft; - if (e.length !== t.base.length) return !0; - var n = Object.getOwnPropertyDescriptor(e, e.length - 1); - return !(!n || n.get); - } - var P = Object.freeze({ - willFinalize: function(t, e, n) { - t.drafts.forEach(function(t) { - t[o].finalizing = !0; - }), - n - ? a(e) && e[o].scope === t && T(t.drafts) - : (t.patches && - (function t(e) { - if (e && 'object' == typeof e) { - var n = e[o]; - if (n) { - var r = n.base, - i = n.draft, - a = n.assigned; - if (Array.isArray(e)) { - if (O(n)) { - if ( - (S(n), - (a.length = !0), - i.length < r.length) - ) - for ( - var s = i.length; - s < r.length; - s++ - ) - a[s] = !1; - else - for ( - var u = r.length; - u < i.length; - u++ - ) - a[u] = !0; - for (var l = 0; l < i.length; l++) - void 0 === a[l] && t(i[l]); - } - } else - Object.keys(i).forEach(function(e) { - void 0 !== r[e] || h(r, e) - ? a[e] || t(i[e]) - : ((a[e] = !0), S(n)); - }), - Object.keys(r).forEach(function(t) { - void 0 !== i[t] || - h(i, t) || - ((a[t] = !1), S(n)); - }); - } - } - })(t.drafts[0]), - T(t.drafts)); - }, - createProxy: function t(e, n) { - var r = Array.isArray(e), - i = k(e); - f(i, function(n) { - !(function(e, n, r) { - var i = b[n]; - i - ? (i.enumerable = r) - : (b[n] = i = { - configurable: !0, - enumerable: r, - get: function() { - return (function(e, n) { - A(e); - var r = w(x(e), n); - return e.finalizing - ? r - : r === w(e.base, n) && s(r) - ? (E(e), (e.copy[n] = t(r, e))) - : r; - })(this[o], n); - }, - set: function(t) { - !(function(t, e, n) { - if ( - (A(t), (t.assigned[e] = !0), !t.modified) - ) { - if (p(n, w(x(t), e))) return; - S(t), E(t); - } - t.copy[e] = n; - })(this[o], n, t); - } - }), - Object.defineProperty(e, n, i); - })(i, n, r || d(e, n)); - }); - var a = n ? n.scope : m.current; - return ( - (function(t, e, n) { - Object.defineProperty(t, e, { - value: n, - enumerable: !1, - writable: !0 - }); - })(i, o, { - scope: a, - modified: !1, - finalizing: !1, - finalized: !1, - assigned: {}, - parent: n, - base: e, - draft: i, - copy: null, - revoke: _, - revoked: !1 - }), - a.drafts.push(i), - i - ); - } - }); - function M(t, e) { - var n = e ? e.scope : m.current, - r = { - scope: n, - modified: !1, - finalized: !1, - assigned: {}, - parent: e, - base: t, - draft: null, - drafts: {}, - copy: null, - revoke: null - }, - i = Array.isArray(t) - ? Proxy.revocable([r], D) - : Proxy.revocable(r, L), - o = i.revoke, - a = i.proxy; - return (r.draft = a), (r.revoke = o), n.drafts.push(a), a; - } - var L = { - get: function(t, e) { - if (e === o) return t; - var n = t.drafts; - if (!t.modified && h(n, e)) return n[e]; - var r = j(t)[e]; - if (t.finalized || !s(r)) return r; - if (t.modified) { - if (r !== R(t.base, e)) return r; - n = t.copy; - } - return (n[e] = M(r, t)); - }, - has: function(t, e) { - return e in j(t); - }, - ownKeys: function(t) { - return Reflect.ownKeys(j(t)); - }, - set: function(t, e, n) { - if (!t.modified) { - var r = R(t.base, e); - if ( - n - ? p(r, n) || n === t.drafts[e] - : p(r, n) && e in t.base - ) - return !0; - N(t); - } - return (t.assigned[e] = !0), (t.copy[e] = n), !0; - }, - deleteProperty: function(t, e) { - return ( - void 0 !== R(t.base, e) || e in t.base - ? ((t.assigned[e] = !1), N(t)) - : t.assigned[e] && delete t.assigned[e], - t.copy && delete t.copy[e], - !0 - ); - }, - getOwnPropertyDescriptor: function(t, e) { - var n = j(t), - r = Reflect.getOwnPropertyDescriptor(n, e); - return ( - r && - ((r.writable = !0), - (r.configurable = - !Array.isArray(n) || 'length' !== e)), - r - ); - }, - defineProperty: function() { - throw new Error( - 'Object.defineProperty() cannot be used on an Immer draft' - ); - }, - getPrototypeOf: function(t) { - return Object.getPrototypeOf(t.base); - }, - setPrototypeOf: function() { - throw new Error( - 'Object.setPrototypeOf() cannot be used on an Immer draft' - ); - } - }, - D = {}; - function j(t) { - return t.copy || t.base; - } - function R(t, e) { - var n = t[o], - r = Reflect.getOwnPropertyDescriptor(n ? j(n) : t, e); - return r && r.value; - } - function N(t) { - t.modified || - ((t.modified = !0), - (t.copy = u(c(t.base), t.drafts)), - (t.drafts = null), - t.parent && N(t.parent)); - } - f(L, function(t, e) { - D[t] = function() { - return ( - (arguments[0] = arguments[0][0]), e.apply(this, arguments) - ); - }; - }), - (D.deleteProperty = function(t, e) { - if (isNaN(parseInt(e))) - throw new Error( - 'Immer only supports deleting array indices' - ); - return L.deleteProperty.call(this, t[0], e); - }), - (D.set = function(t, e, n) { - if ('length' !== e && isNaN(parseInt(e))) - throw new Error( - "Immer only supports setting array indices and the 'length' property" - ); - return L.set.call(this, t[0], e, n); - }); - var z = Object.freeze({ - willFinalize: function() {}, - createProxy: M - }), - I = function(t, e) { - for (var n = 0, r = e; n < r.length; n += 1) { - var i = r[n], - o = i.path, - a = i.op, - s = g(i.value); - if (!o.length) throw new Error('Illegal state'); - for (var u = t, l = 0; l < o.length - 1; l++) - if (!(u = u[o[l]]) || 'object' != typeof u) - throw new Error( - "Cannot apply patch, path doesn't resolve: " + - o.join('/') - ); - var c = o[o.length - 1]; - switch (a) { - case 'replace': - u[c] = s; - break; - case 'add': - Array.isArray(u) ? u.splice(c, 0, s) : (u[c] = s); - break; - case 'remove': - Array.isArray(u) ? u.splice(c, 1) : delete u[c]; - break; - default: - throw new Error('Unsupported patch operation: ' + a); - } - } - return t; - }, - F = { - useProxies: - 'undefined' != typeof Proxy && - void 0 !== Proxy.revocable && - 'undefined' != typeof Reflect, - autoFreeze: - void 0 === t && 'verifyMinified' === function() {}.name, - onAssign: null, - onDelete: null, - onCopy: null - }, - V = function(t) { - u(this, F, t), - this.setUseProxies(this.useProxies), - (this.produce = this.produce.bind(this)); - }; - (V.prototype.produce = function(t, e, n) { - var i, - o = this; - if ('function' == typeof t && 'function' != typeof e) { - var a = e; - e = t; - var u = this; - return function(t) { - var n = this; - void 0 === t && (t = a); - for (var r = [], i = arguments.length - 1; i-- > 0; ) - r[i] = arguments[i + 1]; - return u.produce(t, function(t) { - return e.call.apply(e, [n, t].concat(r)); - }); - }; - } - if ('function' != typeof e) - throw new Error( - 'The first or second argument to `produce` must be a function' - ); - if (void 0 !== n && 'function' != typeof n) - throw new Error( - 'The third argument to `produce` must be a function or undefined' - ); - if (s(t)) { - var l = m.enter(), - c = this.createProxy(t), - f = !0; - try { - (i = e(c)), (f = !1); - } finally { - f ? l.revoke() : l.leave(); - } - return i instanceof Promise - ? i.then( - function(t) { - return l.usePatches(n), o.processResult(t, l); - }, - function(t) { - throw (l.revoke(), t); - } - ) - : (l.usePatches(n), this.processResult(i, l)); - } - if ((i = e(t)) !== r) - return void 0 === i && (i = t), this.maybeFreeze(i, !0), i; - }), - (V.prototype.produceWithPatches = function(t, e, n) { - var r, - i, - o = this; - if ('function' == typeof t) - return function(e) { - for (var n = [], r = arguments.length - 1; r-- > 0; ) - n[r] = arguments[r + 1]; - return o.produceWithPatches(e, function(e) { - return t.apply(void 0, [e].concat(n)); - }); - }; - if (n) - throw new Error( - 'A patch listener cannot be passed to produceWithPatches' - ); - return [ - this.produce(t, e, function(t, e) { - (r = t), (i = e); - }), - r, - i - ]; - }), - (V.prototype.createDraft = function(t) { - if (!s(t)) - throw new Error( - 'First argument to `createDraft` must be a plain object, an array, or an immerable object' - ); - var e = m.enter(), - n = this.createProxy(t); - return (n[o].isManual = !0), e.leave(), n; - }), - (V.prototype.finishDraft = function(t, e) { - var n = t && t[o]; - if (!n || !n.isManual) - throw new Error( - 'First argument to `finishDraft` must be a draft returned by `createDraft`' - ); - if (n.finalized) - throw new Error('The given draft is already finalized'); - var r = n.scope; - return r.usePatches(e), this.processResult(void 0, r); - }), - (V.prototype.setAutoFreeze = function(t) { - this.autoFreeze = t; - }), - (V.prototype.setUseProxies = function(t) { - (this.useProxies = t), u(this, t ? z : P); - }), - (V.prototype.applyPatches = function(t, e) { - var n; - for (n = e.length - 1; n >= 0; n--) { - var r = e[n]; - if (0 === r.path.length && 'replace' === r.op) { - t = r.value; - break; - } - } - return a(t) - ? I(t, e) - : this.produce(t, function(t) { - return I(t, e.slice(n + 1)); - }); - }), - (V.prototype.processResult = function(t, e) { - var n = e.drafts[0], - i = void 0 !== t && t !== n; - if ((this.willFinalize(e, t, i), i)) { - if (n[o].modified) - throw (e.revoke(), - new Error( - 'An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.' - )); - s(t) && - ((t = this.finalize(t, null, e)), this.maybeFreeze(t)), - e.patches && - (e.patches.push({ - op: 'replace', - path: [], - value: t - }), - e.inversePatches.push({ - op: 'replace', - path: [], - value: n[o].base - })); - } else t = this.finalize(n, [], e); - return ( - e.revoke(), - e.patches && e.patchListener(e.patches, e.inversePatches), - t !== r ? t : void 0 - ); - }), - (V.prototype.finalize = function(t, e, n) { - var r = this, - i = t[o]; - if (!i) - return Object.isFrozen(t) - ? t - : this.finalizeTree(t, null, n); - if (i.scope !== n) return t; - if (!i.modified) - return this.maybeFreeze(i.base, !0), i.base; - if (!i.finalized) { - if ( - ((i.finalized = !0), - this.finalizeTree(i.draft, e, n), - this.onDelete) - ) - if (this.useProxies) { - var a = i.assigned; - for (var s in a) a[s] || this.onDelete(i, s); - } else { - var u = i.base, - l = i.copy; - f(u, function(t) { - h(l, t) || r.onDelete(i, t); - }); - } - this.onCopy && this.onCopy(i), - this.autoFreeze && - n.canAutoFreeze && - Object.freeze(i.copy), - e && - n.patches && - (function(t, e, n, r) { - Array.isArray(t.base) - ? (function(t, e, n, r) { - var i, - o, - a = t.base, - s = t.copy, - u = t.assigned; - s.length < a.length && - ((a = (i = [s, a])[0]), - (s = i[1]), - (n = (o = [r, n])[0]), - (r = o[1])); - for ( - var l = s.length - a.length, c = 0; - a[c] === s[c] && c < a.length; - - ) - ++c; - for ( - var f = a.length; - f > c && a[f - 1] === s[f + l - 1]; - - ) - --f; - for (var d = c; d < f; ++d) - if (u[d] && s[d] !== a[d]) { - var h = e.concat([d]); - n.push({ - op: 'replace', - path: h, - value: s[d] - }), - r.push({ - op: 'replace', - path: h, - value: a[d] - }); - } - for ( - var p = n.length, g = f + l - 1; - g >= f; - --g - ) { - var v = e.concat([g]); - (n[p + g - f] = { - op: 'add', - path: v, - value: s[g] - }), - r.push({ op: 'remove', path: v }); - } - })(t, e, n, r) - : (function(t, e, n, r) { - var i = t.base, - o = t.copy; - f(t.assigned, function(t, a) { - var s = i[t], - u = o[t], - l = a - ? t in i - ? 'replace' - : 'add' - : 'remove'; - if (s !== u || 'replace' !== l) { - var c = e.concat(t); - n.push( - 'remove' === l - ? { op: l, path: c } - : { op: l, path: c, value: u } - ), - r.push( - 'add' === l - ? { op: 'remove', path: c } - : 'remove' === l - ? { op: 'add', path: c, value: s } - : { - op: 'replace', - path: c, - value: s - } - ); - } - }); - })(t, e, n, r); - })(i, e, n.patches, n.inversePatches); - } - return i.copy; - }), - (V.prototype.finalizeTree = function(t, e, n) { - var r = this, - i = t[o]; - i && - (this.useProxies || (i.copy = c(i.draft, !0)), - (t = i.copy)); - var u = !!e && !!n.patches, - l = function(o, c, h) { - if (c === h) - throw Error('Immer forbids circular references'); - var g = !!i && h === t; - if (a(c)) { - var v = g && u && !i.assigned[o] ? e.concat(o) : null; - if ( - (a((c = r.finalize(c, v, n))) && - (n.canAutoFreeze = !1), - Array.isArray(h) || d(h, o) - ? (h[o] = c) - : Object.defineProperty(h, o, { value: c }), - g && c === i.base[o]) - ) - return; - } else { - if (g && p(c, i.base[o])) return; - s(c) && - !Object.isFrozen(c) && - (f(c, l), r.maybeFreeze(c)); - } - g && r.onAssign && r.onAssign(i, o, c); - }; - return f(t, l), t; - }), - (V.prototype.maybeFreeze = function(t, e) { - void 0 === e && (e = !1), - this.autoFreeze && !a(t) && (e ? v(t) : Object.freeze(t)); - }); - var B = new V(), - G = B.produce; - B.produceWithPatches.bind(B), - B.setAutoFreeze.bind(B), - B.setUseProxies.bind(B), - B.applyPatches.bind(B), - B.createDraft.bind(B), - B.finishDraft.bind(B), - (e.a = G); - }.call(this, n(54))); - }, - function(t, e, n) { - t.exports = n(95); - }, - function(t, e, n) { - 'use strict'; - const r = (t, e, n) => { - t.splice(n < 0 ? t.length + n : n, 0, t.splice(e, 1)[0]); - }, - i = (t, e, n) => ((t = t.slice()), r(t, e, n), t); - (t.exports = i), (t.exports.default = i), (t.exports.mutate = r); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = n(100); - Object.defineProperty(e, 'Alpha', { - enumerable: !0, - get: function() { - return f(r).default; - } - }); - var i = n(53); - Object.defineProperty(e, 'Checkboard', { - enumerable: !0, - get: function() { - return f(i).default; - } - }); - var o = n(199); - Object.defineProperty(e, 'EditableInput', { - enumerable: !0, - get: function() { - return f(o).default; - } - }); - var a = n(200); - Object.defineProperty(e, 'Hue', { - enumerable: !0, - get: function() { - return f(a).default; - } - }); - var s = n(202); - Object.defineProperty(e, 'Raised', { - enumerable: !0, - get: function() { - return f(s).default; - } - }); - var u = n(217); - Object.defineProperty(e, 'Saturation', { - enumerable: !0, - get: function() { - return f(u).default; - } - }); - var l = n(222); - Object.defineProperty(e, 'ColorWrap', { - enumerable: !0, - get: function() { - return f(l).default; - } - }); - var c = n(227); - function f(t) { - return t && t.__esModule ? t : { default: t }; - } - Object.defineProperty(e, 'Swatch', { - enumerable: !0, - get: function() { - return f(c).default; - } - }); - }, - function(t, e, n) { - var r; - !(function() { - function i(t, e, n) { - return t.call.apply(t.bind, arguments); - } - function o(t, e, n) { - if (!t) throw Error(); - if (2 < arguments.length) { - var r = Array.prototype.slice.call(arguments, 2); - return function() { - var n = Array.prototype.slice.call(arguments); - return Array.prototype.unshift.apply(n, r), t.apply(e, n); - }; - } - return function() { - return t.apply(e, arguments); - }; - } - function a(t, e, n) { - return (a = - Function.prototype.bind && - -1 != - Function.prototype.bind.toString().indexOf('native code') - ? i - : o).apply(null, arguments); - } - var s = - Date.now || - function() { - return +new Date(); - }; - function u(t, e) { - (this.a = t), (this.o = e || t), (this.c = this.o.document); - } - var l = !!window.FontFace; - function c(t, e, n, r) { - if (((e = t.c.createElement(e)), n)) - for (var i in n) - n.hasOwnProperty(i) && - ('style' == i - ? (e.style.cssText = n[i]) - : e.setAttribute(i, n[i])); - return r && e.appendChild(t.c.createTextNode(r)), e; - } - function f(t, e, n) { - (t = t.c.getElementsByTagName(e)[0]) || - (t = document.documentElement), - t.insertBefore(n, t.lastChild); - } - function d(t) { - t.parentNode && t.parentNode.removeChild(t); - } - function h(t, e, n) { - (e = e || []), (n = n || []); - for ( - var r = t.className.split(/\s+/), i = 0; - i < e.length; - i += 1 - ) { - for (var o = !1, a = 0; a < r.length; a += 1) - if (e[i] === r[a]) { - o = !0; - break; - } - o || r.push(e[i]); - } - for (e = [], i = 0; i < r.length; i += 1) { - for (o = !1, a = 0; a < n.length; a += 1) - if (r[i] === n[a]) { - o = !0; - break; - } - o || e.push(r[i]); - } - t.className = e - .join(' ') - .replace(/\s+/g, ' ') - .replace(/^\s+|\s+$/, ''); - } - function p(t, e) { - for ( - var n = t.className.split(/\s+/), r = 0, i = n.length; - r < i; - r++ - ) - if (n[r] == e) return !0; - return !1; - } - function g(t, e, n) { - function r() { - s && i && o && (s(a), (s = null)); - } - e = c(t, 'link', { - rel: 'stylesheet', - href: e, - media: 'all' - }); - var i = !1, - o = !0, - a = null, - s = n || null; - l - ? ((e.onload = function() { - (i = !0), r(); - }), - (e.onerror = function() { - (i = !0), (a = Error('Stylesheet failed to load')), r(); - })) - : setTimeout(function() { - (i = !0), r(); - }, 0), - f(t, 'head', e); - } - function v(t, e, n, r) { - var i = t.c.getElementsByTagName('head')[0]; - if (i) { - var o = c(t, 'script', { src: e }), - a = !1; - return ( - (o.onload = o.onreadystatechange = function() { - a || - (this.readyState && - 'loaded' != this.readyState && - 'complete' != this.readyState) || - ((a = !0), - n && n(null), - (o.onload = o.onreadystatechange = null), - 'HEAD' == o.parentNode.tagName && i.removeChild(o)); - }), - i.appendChild(o), - setTimeout(function() { - a || ((a = !0), n && n(Error('Script load timeout'))); - }, r || 5e3), - o - ); - } - return null; - } - function m() { - (this.a = 0), (this.c = null); - } - function y(t) { - return ( - t.a++, - function() { - t.a--, _(t); - } - ); - } - function b(t, e) { - (t.c = e), _(t); - } - function _(t) { - 0 == t.a && t.c && (t.c(), (t.c = null)); - } - function x(t) { - this.a = t || '-'; - } - function w(t, e) { - (this.c = t), (this.f = 4), (this.a = 'n'); - var n = (e || 'n4').match(/^([nio])([1-9])$/i); - n && ((this.a = n[1]), (this.f = parseInt(n[2], 10))); - } - function S(t) { - var e = []; - t = t.split(/,\s*/); - for (var n = 0; n < t.length; n++) { - var r = t[n].replace(/['"]/g, ''); - -1 != r.indexOf(' ') || /^\d/.test(r) - ? e.push("'" + r + "'") - : e.push(r); - } - return e.join(','); - } - function E(t) { - return t.a + t.f; - } - function k(t) { - var e = 'normal'; - return ( - 'o' === t.a - ? (e = 'oblique') - : 'i' === t.a && (e = 'italic'), - e - ); - } - function A(t) { - var e = 4, - n = 'n', - r = null; - return ( - t && - ((r = t.match(/(normal|oblique|italic)/i)) && - r[1] && - (n = r[1].substr(0, 1).toLowerCase()), - (r = t.match(/([1-9]00|normal|bold)/i)) && - r[1] && - (/bold/i.test(r[1]) - ? (e = 7) - : /[1-9]00/.test(r[1]) && - (e = parseInt(r[1].substr(0, 1), 10)))), - n + e - ); - } - function T(t, e) { - (this.c = t), - (this.f = t.o.document.documentElement), - (this.h = e), - (this.a = new x('-')), - (this.j = !1 !== e.events), - (this.g = !1 !== e.classes); - } - function C(t) { - if (t.g) { - var e = p(t.f, t.a.c('wf', 'active')), - n = [], - r = [t.a.c('wf', 'loading')]; - e || n.push(t.a.c('wf', 'inactive')), h(t.f, n, r); - } - O(t, 'inactive'); - } - function O(t, e, n) { - t.j && t.h[e] && (n ? t.h[e](n.c, E(n)) : t.h[e]()); - } - function P() { - this.c = {}; - } - function M(t, e) { - (this.c = t), - (this.f = e), - (this.a = c( - this.c, - 'span', - { 'aria-hidden': 'true' }, - this.f - )); - } - function L(t) { - f(t.c, 'body', t.a); - } - function D(t) { - return ( - 'display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:' + - S(t.c) + - ';font-style:' + - k(t) + - ';font-weight:' + - t.f + - '00;' - ); - } - function j(t, e, n, r, i, o) { - (this.g = t), - (this.j = e), - (this.a = r), - (this.c = n), - (this.f = i || 3e3), - (this.h = o || void 0); - } - function R(t, e, n, r, i, o, a) { - (this.v = t), - (this.B = e), - (this.c = n), - (this.a = r), - (this.s = a || 'BESbswy'), - (this.f = {}), - (this.w = i || 3e3), - (this.u = o || null), - (this.m = this.j = this.h = this.g = null), - (this.g = new M(this.c, this.s)), - (this.h = new M(this.c, this.s)), - (this.j = new M(this.c, this.s)), - (this.m = new M(this.c, this.s)), - (t = D((t = new w(this.a.c + ',serif', E(this.a))))), - (this.g.a.style.cssText = t), - (t = D((t = new w(this.a.c + ',sans-serif', E(this.a))))), - (this.h.a.style.cssText = t), - (t = D((t = new w('serif', E(this.a))))), - (this.j.a.style.cssText = t), - (t = D((t = new w('sans-serif', E(this.a))))), - (this.m.a.style.cssText = t), - L(this.g), - L(this.h), - L(this.j), - L(this.m); - } - (x.prototype.c = function(t) { - for (var e = [], n = 0; n < arguments.length; n++) - e.push(arguments[n].replace(/[\W_]+/g, '').toLowerCase()); - return e.join(this.a); - }), - (j.prototype.start = function() { - var t = this.c.o.document, - e = this, - n = s(), - r = new Promise(function(r, i) { - !(function o() { - s() - n >= e.f - ? i() - : t.fonts - .load( - (function(t) { - return ( - k(t) + ' ' + t.f + '00 300px ' + S(t.c) - ); - })(e.a), - e.h - ) - .then( - function(t) { - 1 <= t.length ? r() : setTimeout(o, 25); - }, - function() { - i(); - } - ); - })(); - }), - i = null, - o = new Promise(function(t, n) { - i = setTimeout(n, e.f); - }); - Promise.race([o, r]).then( - function() { - i && (clearTimeout(i), (i = null)), e.g(e.a); - }, - function() { - e.j(e.a); - } - ); - }); - var N = { D: 'serif', C: 'sans-serif' }, - z = null; - function I() { - if (null === z) { - var t = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec( - window.navigator.userAgent - ); - z = - !!t && - (536 > parseInt(t[1], 10) || - (536 === parseInt(t[1], 10) && - 11 >= parseInt(t[2], 10))); - } - return z; - } - function F(t, e, n) { - for (var r in N) - if ( - N.hasOwnProperty(r) && - e === t.f[N[r]] && - n === t.f[N[r]] - ) - return !0; - return !1; - } - function V(t, e) { - setTimeout( - a(function() { - d(this.g.a), - d(this.h.a), - d(this.j.a), - d(this.m.a), - e(this.a); - }, t), - 0 - ); - } - function B(t, e, n) { - (this.c = t), - (this.a = e), - (this.f = 0), - (this.m = this.j = !1), - (this.s = n); - } - R.prototype.start = function() { - (this.f.serif = this.j.a.offsetWidth), - (this.f['sans-serif'] = this.m.a.offsetWidth), - (this.A = s()), - (function t(e) { - var n, - r = e.g.a.offsetWidth, - i = e.h.a.offsetWidth; - (n = r === e.f.serif && i === e.f['sans-serif']) || - (n = I() && F(e, r, i)), - n - ? s() - e.A >= e.w - ? I() && - F(e, r, i) && - (null === e.u || e.u.hasOwnProperty(e.a.c)) - ? V(e, e.v) - : V(e, e.B) - : (function(e) { - setTimeout( - a(function() { - t(this); - }, e), - 50 - ); - })(e) - : V(e, e.v); - })(this); - }; - var G = null; - function H(t) { - 0 == --t.f && - t.j && - (t.m - ? ((t = t.a).g && - h( - t.f, - [t.a.c('wf', 'active')], - [t.a.c('wf', 'loading'), t.a.c('wf', 'inactive')] - ), - O(t, 'active')) - : C(t.a)); - } - function U(t) { - (this.j = t), - (this.a = new P()), - (this.h = 0), - (this.f = this.g = !0); - } - function q(t, e, n, r, i) { - var o = 0 == --t.h; - (t.f || t.g) && - setTimeout(function() { - var t = i || null, - s = r || {}; - if (0 === n.length && o) C(e.a); - else { - (e.f += n.length), o && (e.j = o); - var u, - l = []; - for (u = 0; u < n.length; u++) { - var c = n[u], - f = s[c.c], - d = e.a, - p = c; - if ( - (d.g && - h(d.f, [ - d.a.c('wf', p.c, E(p).toString(), 'loading') - ]), - O(d, 'fontloading', p), - (d = null), - null === G) - ) - if (window.FontFace) { - p = /Gecko.*Firefox\/(\d+)/.exec( - window.navigator.userAgent - ); - var g = - /OS X.*Version\/10\..*Safari/.exec( - window.navigator.userAgent - ) && /Apple/.exec(window.navigator.vendor); - G = p ? 42 < parseInt(p[1], 10) : !g; - } else G = !1; - (d = G - ? new j(a(e.g, e), a(e.h, e), e.c, c, e.s, f) - : new R(a(e.g, e), a(e.h, e), e.c, c, e.s, t, f)), - l.push(d); - } - for (u = 0; u < l.length; u++) l[u].start(); - } - }, 0); - } - function W(t, e) { - (this.c = t), (this.a = e); - } - function X(t, e) { - (this.c = t), (this.a = e); - } - function Y(t, e) { - (this.c = t || $), - (this.a = []), - (this.f = []), - (this.g = e || ''); - } - (B.prototype.g = function(t) { - var e = this.a; - e.g && - h( - e.f, - [e.a.c('wf', t.c, E(t).toString(), 'active')], - [ - e.a.c('wf', t.c, E(t).toString(), 'loading'), - e.a.c('wf', t.c, E(t).toString(), 'inactive') - ] - ), - O(e, 'fontactive', t), - (this.m = !0), - H(this); - }), - (B.prototype.h = function(t) { - var e = this.a; - if (e.g) { - var n = p( - e.f, - e.a.c('wf', t.c, E(t).toString(), 'active') - ), - r = [], - i = [e.a.c('wf', t.c, E(t).toString(), 'loading')]; - n || - r.push(e.a.c('wf', t.c, E(t).toString(), 'inactive')), - h(e.f, r, i); - } - O(e, 'fontinactive', t), H(this); - }), - (U.prototype.load = function(t) { - (this.c = new u(this.j, t.context || this.j)), - (this.g = !1 !== t.events), - (this.f = !1 !== t.classes), - (function(t, e, n) { - var r = [], - i = n.timeout; - !(function(t) { - t.g && h(t.f, [t.a.c('wf', 'loading')]), - O(t, 'loading'); - })(e), - (r = (function(t, e, n) { - var r, - i = []; - for (r in e) - if (e.hasOwnProperty(r)) { - var o = t.c[r]; - o && i.push(o(e[r], n)); - } - return i; - })(t.a, n, t.c)); - var o = new B(t.c, e, i); - for (t.h = r.length, e = 0, n = r.length; e < n; e++) - r[e].load(function(e, n, r) { - q(t, o, e, n, r); - }); - })(this, new T(this.c, t), t); - }), - (W.prototype.load = function(t) { - var e = this, - n = e.a.projectId, - r = e.a.version; - if (n) { - var i = e.c.o; - v( - this.c, - (e.a.api || 'https://fast.fonts.net/jsapi') + - '/' + - n + - '.js' + - (r ? '?v=' + r : ''), - function(r) { - r - ? t([]) - : ((i[ - '__MonotypeConfiguration__' + n - ] = function() { - return e.a; - }), - (function e() { - if (i['__mti_fntLst' + n]) { - var r, - o = i['__mti_fntLst' + n](), - a = []; - if (o) - for (var s = 0; s < o.length; s++) { - var u = o[s].fontfamily; - null != o[s].fontStyle && - null != o[s].fontWeight - ? ((r = - o[s].fontStyle + o[s].fontWeight), - a.push(new w(u, r))) - : a.push(new w(u)); - } - t(a); - } else - setTimeout(function() { - e(); - }, 50); - })()); - } - ).id = '__MonotypeAPIScript__' + n; - } else t([]); - }), - (X.prototype.load = function(t) { - var e, - n, - r = this.a.urls || [], - i = this.a.families || [], - o = this.a.testStrings || {}, - a = new m(); - for (e = 0, n = r.length; e < n; e++) g(this.c, r[e], y(a)); - var s = []; - for (e = 0, n = i.length; e < n; e++) - if ((r = i[e].split(':'))[1]) - for ( - var u = r[1].split(','), l = 0; - l < u.length; - l += 1 - ) - s.push(new w(r[0], u[l])); - else s.push(new w(r[0])); - b(a, function() { - t(s, o); - }); - }); - var $ = 'https://fonts.googleapis.com/css'; - function Q(t) { - (this.f = t), (this.a = []), (this.c = {}); - } - var K = { - latin: 'BESbswy', - 'latin-ext': 'çöüğş', - cyrillic: 'йяЖ', - greek: 'αβΣ', - khmer: 'កខគ', - Hanuman: 'កខគ' - }, - Z = { - thin: '1', - extralight: '2', - 'extra-light': '2', - ultralight: '2', - 'ultra-light': '2', - light: '3', - regular: '4', - book: '4', - medium: '5', - 'semi-bold': '6', - semibold: '6', - 'demi-bold': '6', - demibold: '6', - bold: '7', - 'extra-bold': '8', - extrabold: '8', - 'ultra-bold': '8', - ultrabold: '8', - black: '9', - heavy: '9', - l: '3', - r: '4', - b: '7' - }, - J = { i: 'i', italic: 'i', n: 'n', normal: 'n' }, - tt = /^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/; - function et(t, e) { - (this.c = t), (this.a = e); - } - var nt = { Arimo: !0, Cousine: !0, Tinos: !0 }; - function rt(t, e) { - (this.c = t), (this.a = e); - } - function it(t, e) { - (this.c = t), (this.f = e), (this.a = []); - } - (et.prototype.load = function(t) { - var e = new m(), - n = this.c, - r = new Y(this.a.api, this.a.text), - i = this.a.families; - !(function(t, e) { - for (var n = e.length, r = 0; r < n; r++) { - var i = e[r].split(':'); - 3 == i.length && t.f.push(i.pop()); - var o = ''; - 2 == i.length && '' != i[1] && (o = ':'), - t.a.push(i.join(o)); - } - })(r, i); - var o = new Q(i); - !(function(t) { - for (var e = t.f.length, n = 0; n < e; n++) { - var r = t.f[n].split(':'), - i = r[0].replace(/\+/g, ' '), - o = ['n4']; - if (2 <= r.length) { - var a; - if (((a = []), (s = r[1]))) - for ( - var s, u = (s = s.split(',')).length, l = 0; - l < u; - l++ - ) { - var c; - if ((c = s[l]).match(/^[\w-]+$/)) - if (null == (f = tt.exec(c.toLowerCase()))) - c = ''; - else { - if ( - ((c = - null == (c = f[2]) || '' == c ? 'n' : J[c]), - null == (f = f[1]) || '' == f) - ) - f = '4'; - else - var f = - Z[f] || (isNaN(f) ? '4' : f.substr(0, 1)); - c = [c, f].join(''); - } - else c = ''; - c && a.push(c); - } - 0 < a.length && (o = a), - 3 == r.length && - ((a = []), - 0 < (r = (r = r[2]) ? r.split(',') : a).length && - (r = K[r[0]]) && - (t.c[i] = r)); - } - for ( - t.c[i] || ((r = K[i]) && (t.c[i] = r)), r = 0; - r < o.length; - r += 1 - ) - t.a.push(new w(i, o[r])); - } - })(o), - g( - n, - (function(t) { - if (0 == t.a.length) throw Error('No fonts to load!'); - if (-1 != t.c.indexOf('kit=')) return t.c; - for (var e = t.a.length, n = [], r = 0; r < e; r++) - n.push(t.a[r].replace(/ /g, '+')); - return ( - (e = t.c + '?family=' + n.join('%7C')), - 0 < t.f.length && (e += '&subset=' + t.f.join(',')), - 0 < t.g.length && - (e += '&text=' + encodeURIComponent(t.g)), - e - ); - })(r), - y(e) - ), - b(e, function() { - t(o.a, o.c, nt); - }); - }), - (rt.prototype.load = function(t) { - var e = this.a.id, - n = this.c.o; - e - ? v( - this.c, - (this.a.api || 'https://use.typekit.net/') + - '/' + - e + - '.js', - function(e) { - if (e) t([]); - else if ( - n.Typekit && - n.Typekit.config && - n.Typekit.config.fn - ) { - e = n.Typekit.config.fn; - for (var r = [], i = 0; i < e.length; i += 2) - for ( - var o = e[i], a = e[i + 1], s = 0; - s < a.length; - s++ - ) - r.push(new w(o, a[s])); - try { - n.Typekit.load({ - events: !1, - classes: !1, - async: !0 - }); - } catch (t) {} - t(r); - } - }, - 2e3 - ) - : t([]); - }), - (it.prototype.load = function(t) { - var e = this.f.id, - n = this.c.o, - r = this; - e - ? (n.__webfontfontdeckmodule__ || - (n.__webfontfontdeckmodule__ = {}), - (n.__webfontfontdeckmodule__[e] = function(e, n) { - for (var i = 0, o = n.fonts.length; i < o; ++i) { - var a = n.fonts[i]; - r.a.push( - new w( - a.name, - A( - 'font-weight:' + - a.weight + - ';font-style:' + - a.style - ) - ) - ); - } - t(r.a); - }), - v( - this.c, - (this.f.api || 'https://f.fontdeck.com/s/css/js/') + - (function(t) { - return ( - t.o.location.hostname || t.a.location.hostname - ); - })(this.c) + - '/' + - e + - '.js', - function(e) { - e && t([]); - } - )) - : t([]); - }); - var ot = new U(window); - (ot.a.c.custom = function(t, e) { - return new X(e, t); - }), - (ot.a.c.fontdeck = function(t, e) { - return new it(e, t); - }), - (ot.a.c.monotype = function(t, e) { - return new W(e, t); - }), - (ot.a.c.typekit = function(t, e) { - return new rt(e, t); - }), - (ot.a.c.google = function(t, e) { - return new et(e, t); - }); - var at = { load: a(ot.load, ot) }; - void 0 === - (r = function() { - return at; - }.call(e, n, e, t)) || (t.exports = r); - })(); - }, - function(t, e) { - t.exports = function(t) { - var e = { - begin: /[A-Z\_\.\-]+\s*:/, - returnBegin: !0, - end: ';', - endsWithParent: !0, - contains: [ - { - className: 'attribute', - begin: /\S/, - end: ':', - excludeEnd: !0, - starts: { - endsWithParent: !0, - excludeEnd: !0, - contains: [ - { - begin: /[\w-]+\(/, - returnBegin: !0, - contains: [ - { className: 'built_in', begin: /[\w-]+/ }, - { - begin: /\(/, - end: /\)/, - contains: [ - t.APOS_STRING_MODE, - t.QUOTE_STRING_MODE - ] - } - ] - }, - t.CSS_NUMBER_MODE, - t.QUOTE_STRING_MODE, - t.APOS_STRING_MODE, - t.C_BLOCK_COMMENT_MODE, - { className: 'number', begin: '#[0-9A-Fa-f]+' }, - { className: 'meta', begin: '!important' } - ] - } - } - ] - }; - return { - case_insensitive: !0, - illegal: /[=\/|'\$]/, - contains: [ - t.C_BLOCK_COMMENT_MODE, - { className: 'selector-id', begin: /#[A-Za-z0-9_-]+/ }, - { className: 'selector-class', begin: /\.[A-Za-z0-9_-]+/ }, - { - className: 'selector-attr', - begin: /\[/, - end: /\]/, - illegal: '$' - }, - { - className: 'selector-pseudo', - begin: /:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/ - }, - { - begin: '@(font-face|page)', - lexemes: '[a-z-]+', - keywords: 'font-face page' - }, - { - begin: '@', - end: '[{;]', - illegal: /:/, - contains: [ - { className: 'keyword', begin: /\w+/ }, - { - begin: /\s/, - endsWithParent: !0, - excludeEnd: !0, - relevance: 0, - contains: [ - t.APOS_STRING_MODE, - t.QUOTE_STRING_MODE, - t.CSS_NUMBER_MODE - ] - } - ] - }, - { - className: 'selector-tag', - begin: '[a-zA-Z-][a-zA-Z0-9_-]*', - relevance: 0 - }, - { - begin: '{', - end: '}', - illegal: /\S/, - contains: [t.C_BLOCK_COMMENT_MODE, e] - } - ] - }; - }; - }, - function(t, e) { - t.exports = function(t) { - var e = '[A-Za-z$_][0-9A-Za-z$_]*', - n = { - keyword: - 'in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as', - literal: 'true false null undefined NaN Infinity', - built_in: - 'eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise' - }, - r = { - className: 'number', - variants: [ - { begin: '\\b(0[bB][01]+)' }, - { begin: '\\b(0[oO][0-7]+)' }, - { begin: t.C_NUMBER_RE } - ], - relevance: 0 - }, - i = { - className: 'subst', - begin: '\\$\\{', - end: '\\}', - keywords: n, - contains: [] - }, - o = { - className: 'string', - begin: '`', - end: '`', - contains: [t.BACKSLASH_ESCAPE, i] - }; - i.contains = [ - t.APOS_STRING_MODE, - t.QUOTE_STRING_MODE, - o, - r, - t.REGEXP_MODE - ]; - var a = i.contains.concat([ - t.C_BLOCK_COMMENT_MODE, - t.C_LINE_COMMENT_MODE - ]); - return { - aliases: ['js', 'jsx'], - keywords: n, - contains: [ - { - className: 'meta', - relevance: 10, - begin: /^\s*['"]use (strict|asm)['"]/ - }, - { className: 'meta', begin: /^#!/, end: /$/ }, - t.APOS_STRING_MODE, - t.QUOTE_STRING_MODE, - o, - t.C_LINE_COMMENT_MODE, - t.C_BLOCK_COMMENT_MODE, - r, - { - begin: /[{,]\s*/, - relevance: 0, - contains: [ - { - begin: e + '\\s*:', - returnBegin: !0, - relevance: 0, - contains: [ - { className: 'attr', begin: e, relevance: 0 } - ] - } - ] - }, - { - begin: - '(' + - t.RE_STARTERS_RE + - '|\\b(case|return|throw)\\b)\\s*', - keywords: 'return throw case', - contains: [ - t.C_LINE_COMMENT_MODE, - t.C_BLOCK_COMMENT_MODE, - t.REGEXP_MODE, - { - className: 'function', - begin: '(\\(.*?\\)|' + e + ')\\s*=>', - returnBegin: !0, - end: '\\s*=>', - contains: [ - { - className: 'params', - variants: [ - { begin: e }, - { begin: /\(\s*\)/ }, - { - begin: /\(/, - end: /\)/, - excludeBegin: !0, - excludeEnd: !0, - keywords: n, - contains: a - } - ] - } - ] - }, - { className: '', begin: /\s/, end: /\s*/, skip: !0 }, - { - begin: //, - subLanguage: 'xml', - contains: [ - { begin: /<[A-Za-z0-9\\._:-]+\s*\/>/, skip: !0 }, - { - begin: /<[A-Za-z0-9\\._:-]+/, - end: /(\/[A-Za-z0-9\\._:-]+|[A-Za-z0-9\\._:-]+\/)>/, - skip: !0, - contains: [ - { - begin: /<[A-Za-z0-9\\._:-]+\s*\/>/, - skip: !0 - }, - 'self' - ] - } - ] - } - ], - relevance: 0 - }, - { - className: 'function', - beginKeywords: 'function', - end: /\{/, - excludeEnd: !0, - contains: [ - t.inherit(t.TITLE_MODE, { begin: e }), - { - className: 'params', - begin: /\(/, - end: /\)/, - excludeBegin: !0, - excludeEnd: !0, - contains: a - } - ], - illegal: /\[|%/ - }, - { begin: /\$[(.]/ }, - t.METHOD_GUARD, - { - className: 'class', - beginKeywords: 'class', - end: /[{;=]/, - excludeEnd: !0, - illegal: /[:"\[\]]/, - contains: [ - { beginKeywords: 'extends' }, - t.UNDERSCORE_TITLE_MODE - ] - }, - { - beginKeywords: 'constructor get set', - end: /\{/, - excludeEnd: !0 - } - ], - illegal: /#(?!!)/ - }; - }; - }, - function(t, e) { - t.exports = c; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.flush = function() { - var t = l.cssRules(); - return l.flush(), t; - }), - (e.default = void 0); - var r, - i = n(0); - function o(t) { - return (o = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - })(t); - } - function a(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - function s(t) { - return (s = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(t) { - return t.__proto__ || Object.getPrototypeOf(t); - })(t); - } - function u(t, e) { - return (u = - Object.setPrototypeOf || - function(t, e) { - return (t.__proto__ = e), t; - })(t, e); - } - var l = new ((r = n(96)) && r.__esModule - ? r - : { default: r } - ).default(), - c = (function(t) { - function e(t) { - var n; - return ( - (function(t, e) { - if (!(t instanceof e)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, e), - ((n = (function(t, e) { - return !e || - ('object' !== o(e) && 'function' != typeof e) - ? (function(t) { - if (void 0 === t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return t; - })(t) - : e; - })(this, s(e).call(this, t))).prevProps = {}), - n - ); - } - var n, r, i; - return ( - (function(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { - value: t, - writable: !0, - configurable: !0 - } - })), - e && u(t, e); - })(e, t), - (n = e), - (i = [ - { - key: 'dynamic', - value: function(t) { - return t - .map(function(t) { - var e = t[0], - n = t[1]; - return l.computeId(e, n); - }) - .join(' '); - } - } - ]), - (r = [ - { - key: 'shouldComponentUpdate', - value: function(t) { - return ( - this.props.id !== t.id || - String(this.props.dynamic) !== String(t.dynamic) - ); - } - }, - { - key: 'componentWillUnmount', - value: function() { - l.remove(this.props); - } - }, - { - key: 'render', - value: function() { - return ( - this.shouldComponentUpdate(this.prevProps) && - (this.prevProps.id && l.remove(this.prevProps), - l.add(this.props), - (this.prevProps = this.props)), - null - ); - } - } - ]) && a(n.prototype, r), - i && a(n, i), - e - ); - })(i.Component); - e.default = c; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = void 0); - var r = o(n(97)), - i = o(n(98)); - function o(t) { - return t && t.__esModule ? t : { default: t }; - } - function a(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - var s = function(t) { - return t.replace(/\/style/gi, '\\/style'); - }, - u = (function() { - function t() { - var e = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : {}, - n = e.styleSheet, - r = void 0 === n ? null : n, - o = e.optimizeForSpeed, - a = void 0 !== o && o, - s = e.isBrowser, - u = void 0 === s ? 'undefined' != typeof window : s; - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, t), - (this._sheet = - r || - new i.default({ - name: 'styled-jsx', - optimizeForSpeed: a - })), - this._sheet.inject(), - r && - 'boolean' == typeof a && - (this._sheet.setOptimizeForSpeed(a), - (this._optimizeForSpeed = this._sheet.isOptimizeForSpeed())), - (this._isBrowser = u), - (this._fromServer = void 0), - (this._indices = {}), - (this._instancesCounts = {}), - (this.computeId = this.createComputeId()), - (this.computeSelector = this.createComputeSelector()); - } - var e, n; - return ( - (e = t), - (n = [ - { - key: 'add', - value: function(t) { - var e = this; - void 0 === this._optimizeForSpeed && - ((this._optimizeForSpeed = Array.isArray( - t.children - )), - this._sheet.setOptimizeForSpeed( - this._optimizeForSpeed - ), - (this._optimizeForSpeed = this._sheet.isOptimizeForSpeed())), - this._isBrowser && - !this._fromServer && - ((this._fromServer = this.selectFromServer()), - (this._instancesCounts = Object.keys( - this._fromServer - ).reduce(function(t, e) { - return (t[e] = 0), t; - }, {}))); - var n = this.getIdAndRules(t), - r = n.styleId, - i = n.rules; - if (r in this._instancesCounts) - this._instancesCounts[r] += 1; - else { - var o = i - .map(function(t) { - return e._sheet.insertRule(t); - }) - .filter(function(t) { - return -1 !== t; - }); - (this._indices[r] = o), - (this._instancesCounts[r] = 1); - } - } - }, - { - key: 'remove', - value: function(t) { - var e = this, - n = this.getIdAndRules(t).styleId; - if ( - ((function(t, e) { - if (!t) - throw new Error( - 'StyleSheetRegistry: '.concat(e, '.') - ); - })( - n in this._instancesCounts, - 'styleId: `'.concat(n, '` not found') - ), - (this._instancesCounts[n] -= 1), - this._instancesCounts[n] < 1) - ) { - var r = this._fromServer && this._fromServer[n]; - r - ? (r.parentNode.removeChild(r), - delete this._fromServer[n]) - : (this._indices[n].forEach(function(t) { - return e._sheet.deleteRule(t); - }), - delete this._indices[n]), - delete this._instancesCounts[n]; - } - } - }, - { - key: 'update', - value: function(t, e) { - this.add(e), this.remove(t); - } - }, - { - key: 'flush', - value: function() { - this._sheet.flush(), - this._sheet.inject(), - (this._fromServer = void 0), - (this._indices = {}), - (this._instancesCounts = {}), - (this.computeId = this.createComputeId()), - (this.computeSelector = this.createComputeSelector()); - } - }, - { - key: 'cssRules', - value: function() { - var t = this, - e = this._fromServer - ? Object.keys(this._fromServer).map(function(e) { - return [e, t._fromServer[e]]; - }) - : [], - n = this._sheet.cssRules(); - return e.concat( - Object.keys(this._indices) - .map(function(e) { - return [ - e, - t._indices[e] - .map(function(t) { - return n[t].cssText; - }) - .join(t._optimizeForSpeed ? '' : '\n') - ]; - }) - .filter(function(t) { - return Boolean(t[1]); - }) - ); - } - }, - { - key: 'createComputeId', - value: function() { - var t = {}; - return function(e, n) { - if (!n) return 'jsx-'.concat(e); - var i = String(n), - o = e + i; - return ( - t[o] || - (t[o] = 'jsx-'.concat( - (0, r.default)(''.concat(e, '-').concat(i)) - )), - t[o] - ); - }; - } - }, - { - key: 'createComputeSelector', - value: function() { - var t = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : /__jsx-style-dynamic-selector/g, - e = {}; - return function(n, r) { - this._isBrowser || (r = s(r)); - var i = n + r; - return e[i] || (e[i] = r.replace(t, n)), e[i]; - }; - } - }, - { - key: 'getIdAndRules', - value: function(t) { - var e = this, - n = t.children, - r = t.dynamic, - i = t.id; - if (r) { - var o = this.computeId(i, r); - return { - styleId: o, - rules: Array.isArray(n) - ? n.map(function(t) { - return e.computeSelector(o, t); - }) - : [this.computeSelector(o, n)] - }; - } - return { - styleId: this.computeId(i), - rules: Array.isArray(n) ? n : [n] - }; - } - }, - { - key: 'selectFromServer', - value: function() { - return Array.prototype.slice - .call(document.querySelectorAll('[id^="__jsx-"]')) - .reduce(function(t, e) { - return (t[e.id.slice(2)] = e), t; - }, {}); - } - } - ]) && a(e.prototype, n), - t - ); - })(); - e.default = u; - }, - function(t, e, n) { - 'use strict'; - t.exports = function(t) { - for (var e = 5381, n = t.length; n; ) - e = (33 * e) ^ t.charCodeAt(--n); - return e >>> 0; - }; - }, - function(t, e, n) { - 'use strict'; - (function(t) { - function n(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = void 0); - var r = t.env && !0, - i = function(t) { - return ( - '[object String]' === Object.prototype.toString.call(t) - ); - }, - o = (function() { - function t() { - var e = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : {}, - n = e.name, - o = void 0 === n ? 'stylesheet' : n, - s = e.optimizeForSpeed, - u = void 0 === s ? r : s, - l = e.isBrowser, - c = void 0 === l ? 'undefined' != typeof window : l; - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, t), - a(i(o), '`name` must be a string'), - (this._name = o), - (this._deletedRulePlaceholder = '#'.concat( - o, - '-deleted-rule____{}' - )), - a( - 'boolean' == typeof u, - '`optimizeForSpeed` must be a boolean' - ), - (this._optimizeForSpeed = u), - (this._isBrowser = c), - (this._serverSheet = void 0), - (this._tags = []), - (this._injected = !1), - (this._rulesCount = 0); - var f = - this._isBrowser && - document.querySelector('meta[property="csp-nonce"]'); - this._nonce = f ? f.getAttribute('content') : null; - } - var e, o; - return ( - (e = t), - (o = [ - { - key: 'setOptimizeForSpeed', - value: function(t) { - a( - 'boolean' == typeof t, - '`setOptimizeForSpeed` accepts a boolean' - ), - a( - 0 === this._rulesCount, - 'optimizeForSpeed cannot be when rules have already been inserted' - ), - this.flush(), - (this._optimizeForSpeed = t), - this.inject(); - } - }, - { - key: 'isOptimizeForSpeed', - value: function() { - return this._optimizeForSpeed; - } - }, - { - key: 'inject', - value: function() { - var t = this; - if ( - (a(!this._injected, 'sheet already injected'), - (this._injected = !0), - this._isBrowser && this._optimizeForSpeed) - ) - return ( - (this._tags[0] = this.makeStyleTag(this._name)), - (this._optimizeForSpeed = - 'insertRule' in this.getSheet()), - void ( - this._optimizeForSpeed || - (r || - console.warn( - 'StyleSheet: optimizeForSpeed mode not supported falling back to standard mode.' - ), - this.flush(), - (this._injected = !0)) - ) - ); - this._serverSheet = { - cssRules: [], - insertRule: function(e, n) { - return ( - 'number' == typeof n - ? (t._serverSheet.cssRules[n] = { - cssText: e - }) - : t._serverSheet.cssRules.push({ - cssText: e - }), - n - ); - }, - deleteRule: function(e) { - t._serverSheet.cssRules[e] = null; - } - }; - } - }, - { - key: 'getSheetForTag', - value: function(t) { - if (t.sheet) return t.sheet; - for ( - var e = 0; - e < document.styleSheets.length; - e++ - ) - if (document.styleSheets[e].ownerNode === t) - return document.styleSheets[e]; - } - }, - { - key: 'getSheet', - value: function() { - return this.getSheetForTag( - this._tags[this._tags.length - 1] - ); - } - }, - { - key: 'insertRule', - value: function(t, e) { - if ( - (a(i(t), '`insertRule` accepts only strings'), - !this._isBrowser) - ) - return ( - 'number' != typeof e && - (e = this._serverSheet.cssRules.length), - this._serverSheet.insertRule(t, e), - this._rulesCount++ - ); - if (this._optimizeForSpeed) { - var n = this.getSheet(); - 'number' != typeof e && (e = n.cssRules.length); - try { - n.insertRule(t, e); - } catch (e) { - return ( - r || - console.warn( - 'StyleSheet: illegal rule: \n\n'.concat( - t, - '\n\nSee https://stackoverflow.com/q/20007992 for more info' - ) - ), - -1 - ); - } - } else { - var o = this._tags[e]; - this._tags.push( - this.makeStyleTag(this._name, t, o) - ); - } - return this._rulesCount++; - } - }, - { - key: 'replaceRule', - value: function(t, e) { - if (this._optimizeForSpeed || !this._isBrowser) { - var n = this._isBrowser - ? this.getSheet() - : this._serverSheet; - if ( - (e.trim() || (e = this._deletedRulePlaceholder), - !n.cssRules[t]) - ) - return t; - n.deleteRule(t); - try { - n.insertRule(e, t); - } catch (i) { - r || - console.warn( - 'StyleSheet: illegal rule: \n\n'.concat( - e, - '\n\nSee https://stackoverflow.com/q/20007992 for more info' - ) - ), - n.insertRule(this._deletedRulePlaceholder, t); - } - } else { - var i = this._tags[t]; - a( - i, - 'old rule at index `'.concat(t, '` not found') - ), - (i.textContent = e); - } - return t; - } - }, - { - key: 'deleteRule', - value: function(t) { - if (this._isBrowser) - if (this._optimizeForSpeed) - this.replaceRule(t, ''); - else { - var e = this._tags[t]; - a( - e, - 'rule at index `'.concat(t, '` not found') - ), - e.parentNode.removeChild(e), - (this._tags[t] = null); - } - else this._serverSheet.deleteRule(t); - } - }, - { - key: 'flush', - value: function() { - (this._injected = !1), - (this._rulesCount = 0), - this._isBrowser - ? (this._tags.forEach(function(t) { - return t && t.parentNode.removeChild(t); - }), - (this._tags = [])) - : (this._serverSheet.cssRules = []); - } - }, - { - key: 'cssRules', - value: function() { - var t = this; - return this._isBrowser - ? this._tags.reduce(function(e, n) { - return ( - n - ? (e = e.concat( - t - .getSheetForTag(n) - .cssRules.map(function(e) { - return e.cssText === - t._deletedRulePlaceholder - ? null - : e; - }) - )) - : e.push(null), - e - ); - }, []) - : this._serverSheet.cssRules; - } - }, - { - key: 'makeStyleTag', - value: function(t, e, n) { - e && - a( - i(e), - 'makeStyleTag acceps only strings as second parameter' - ); - var r = document.createElement('style'); - this._nonce && r.setAttribute('nonce', this._nonce), - (r.type = 'text/css'), - r.setAttribute('data-'.concat(t), ''), - e && r.appendChild(document.createTextNode(e)); - var o = - document.head || - document.getElementsByTagName('head')[0]; - return ( - n ? o.insertBefore(r, n) : o.appendChild(r), r - ); - } - }, - { - key: 'length', - get: function() { - return this._rulesCount; - } - } - ]) && n(e.prototype, o), - t - ); - })(); - function a(t, e) { - if (!t) throw new Error('StyleSheet: '.concat(e, '.')); - } - e.default = o; - }.call(this, n(54))); - }, - function(t, e) { - t.exports = f; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Alpha = void 0); - var r = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }, - i = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - o = n(0), - a = c(o), - s = c(n(9)), - u = (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && - (e[n] = t[n]); - return (e.default = t), e; - })(n(197)), - l = c(n(53)); - function c(t) { - return t && t.__esModule ? t : { default: t }; - } - function f(t, e) { - if (!t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !e || ('object' != typeof e && 'function' != typeof e) - ? t - : e; - } - var d = (e.Alpha = (function(t) { - function e() { - var t, n, r; - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - })(this, e); - for ( - var i = arguments.length, o = Array(i), a = 0; - a < i; - a++ - ) - o[a] = arguments[a]; - return ( - (n = r = f( - this, - (t = e.__proto__ || Object.getPrototypeOf(e)).call.apply( - t, - [this].concat(o) - ) - )), - (r.handleChange = function(t) { - var e = u.calculateChange( - t, - r.props.hsl, - r.props.direction, - r.props.a, - r.container - ); - e && - 'function' == typeof r.props.onChange && - r.props.onChange(e, t); - }), - (r.handleMouseDown = function(t) { - r.handleChange(t), - window.addEventListener('mousemove', r.handleChange), - window.addEventListener('mouseup', r.handleMouseUp); - }), - (r.handleMouseUp = function() { - r.unbindEventListeners(); - }), - (r.unbindEventListeners = function() { - window.removeEventListener('mousemove', r.handleChange), - window.removeEventListener('mouseup', r.handleMouseUp); - }), - f(r, n) - ); - } - return ( - (function(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof e - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { - value: t, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - e && - (Object.setPrototypeOf - ? Object.setPrototypeOf(t, e) - : (t.__proto__ = e)); - })(e, t), - i(e, [ - { - key: 'componentWillUnmount', - value: function() { - this.unbindEventListeners(); - } - }, - { - key: 'render', - value: function() { - var t = this, - e = this.props.rgb, - n = (0, s.default)( - { - default: { - alpha: { - absolute: '0px 0px 0px 0px', - borderRadius: this.props.radius - }, - checkboard: { - absolute: '0px 0px 0px 0px', - overflow: 'hidden', - borderRadius: this.props.radius - }, - gradient: { - absolute: '0px 0px 0px 0px', - background: - 'linear-gradient(to right, rgba(' + - e.r + - ',' + - e.g + - ',' + - e.b + - ', 0) 0%,\n rgba(' + - e.r + - ',' + - e.g + - ',' + - e.b + - ', 1) 100%)', - boxShadow: this.props.shadow, - borderRadius: this.props.radius - }, - container: { - position: 'relative', - height: '100%', - margin: '0 3px' - }, - pointer: { - position: 'absolute', - left: 100 * e.a + '%' - }, - slider: { - width: '4px', - borderRadius: '1px', - height: '8px', - boxShadow: '0 0 2px rgba(0, 0, 0, .6)', - background: '#fff', - marginTop: '1px', - transform: 'translateX(-2px)' - } - }, - vertical: { - gradient: { - background: - 'linear-gradient(to bottom, rgba(' + - e.r + - ',' + - e.g + - ',' + - e.b + - ', 0) 0%,\n rgba(' + - e.r + - ',' + - e.g + - ',' + - e.b + - ', 1) 100%)' - }, - pointer: { left: 0, top: 100 * e.a + '%' } - }, - overwrite: r({}, this.props.style) - }, - { - vertical: 'vertical' === this.props.direction, - overwrite: !0 - } - ); - return a.default.createElement( - 'div', - { style: n.alpha }, - a.default.createElement( - 'div', - { style: n.checkboard }, - a.default.createElement(l.default, { - renderers: this.props.renderers - }) - ), - a.default.createElement('div', { style: n.gradient }), - a.default.createElement( - 'div', - { - style: n.container, - ref: function(e) { - return (t.container = e); - }, - onMouseDown: this.handleMouseDown, - onTouchMove: this.handleChange, - onTouchStart: this.handleChange - }, - a.default.createElement( - 'div', - { style: n.pointer }, - this.props.pointer - ? a.default.createElement( - this.props.pointer, - this.props - ) - : a.default.createElement('div', { - style: n.slider - }) - ) - ) - ); - } - } - ]), - e - ); - })(o.PureComponent || o.Component)); - e.default = d; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.flattenNames = void 0); - var r = s(n(102)), - i = s(n(37)), - o = s(n(61)), - a = s(n(112)); - function s(t) { - return t && t.__esModule ? t : { default: t }; - } - var u = (e.flattenNames = function t() { - var e = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : [], - n = []; - return ( - (0, a.default)(e, function(e) { - Array.isArray(e) - ? t(e).map(function(t) { - return n.push(t); - }) - : (0, o.default)(e) - ? (0, i.default)(e, function(t, e) { - !0 === t && n.push(e), n.push(e + '-' + t); - }) - : (0, r.default)(e) && n.push(e); - }), - n - ); - }); - e.default = u; - }, - function(t, e, n) { - var r = n(10), - i = n(3), - o = n(6); - t.exports = function(t) { - return ( - 'string' == typeof t || - (!i(t) && o(t) && '[object String]' == r(t)) - ); - }; - }, - function(t, e, n) { - var r = n(15), - i = Object.prototype, - o = i.hasOwnProperty, - a = i.toString, - s = r ? r.toStringTag : void 0; - t.exports = function(t) { - var e = o.call(t, s), - n = t[s]; - try { - t[s] = void 0; - var r = !0; - } catch (t) {} - var i = a.call(t); - return r && (e ? (t[s] = n) : delete t[s]), i; - }; - }, - function(t, e) { - var n = Object.prototype.toString; - t.exports = function(t) { - return n.call(t); - }; - }, - function(t, e) { - t.exports = function(t) { - return function(e, n, r) { - for ( - var i = -1, o = Object(e), a = r(e), s = a.length; - s--; - - ) { - var u = a[t ? s : ++i]; - if (!1 === n(o[u], u, o)) break; - } - return e; - }; - }; - }, - function(t, e) { - t.exports = function(t, e) { - for (var n = -1, r = Array(t); ++n < t; ) r[n] = e(n); - return r; - }; - }, - function(t, e, n) { - var r = n(10), - i = n(6); - t.exports = function(t) { - return i(t) && '[object Arguments]' == r(t); - }; - }, - function(t, e) { - t.exports = function() { - return !1; - }; - }, - function(t, e, n) { - var r = n(10), - i = n(41), - o = n(6), - a = {}; - (a['[object Float32Array]'] = a['[object Float64Array]'] = a[ - '[object Int8Array]' - ] = a['[object Int16Array]'] = a['[object Int32Array]'] = a[ - '[object Uint8Array]' - ] = a['[object Uint8ClampedArray]'] = a[ - '[object Uint16Array]' - ] = a['[object Uint32Array]'] = !0), - (a['[object Arguments]'] = a['[object Array]'] = a[ - '[object ArrayBuffer]' - ] = a['[object Boolean]'] = a['[object DataView]'] = a[ - '[object Date]' - ] = a['[object Error]'] = a['[object Function]'] = a[ - '[object Map]' - ] = a['[object Number]'] = a['[object Object]'] = a[ - '[object RegExp]' - ] = a['[object Set]'] = a['[object String]'] = a[ - '[object WeakMap]' - ] = !1), - (t.exports = function(t) { - return o(t) && i(t.length) && !!a[r(t)]; - }); - }, - function(t, e, n) { - var r = n(44), - i = n(111), - o = Object.prototype.hasOwnProperty; - t.exports = function(t) { - if (!r(t)) return i(t); - var e = []; - for (var n in Object(t)) - o.call(t, n) && 'constructor' != n && e.push(n); - return e; - }; - }, - function(t, e, n) { - var r = n(59)(Object.keys, Object); - t.exports = r; - }, - function(t, e, n) { - var r = n(62), - i = n(113), - o = n(171), - a = n(3); - t.exports = function(t, e) { - return (a(t) ? r : o)(t, i(e, 3)); - }; - }, - function(t, e, n) { - var r = n(114), - i = n(158), - o = n(22), - a = n(3), - s = n(168); - t.exports = function(t) { - return 'function' == typeof t - ? t - : null == t - ? o - : 'object' == typeof t - ? a(t) - ? i(t[0], t[1]) - : r(t) - : s(t); - }; - }, - function(t, e, n) { - var r = n(115), - i = n(157), - o = n(72); - t.exports = function(t) { - var e = i(t); - return 1 == e.length && e[0][2] - ? o(e[0][0], e[0][1]) - : function(n) { - return n === t || r(n, t, e); - }; - }; - }, - function(t, e, n) { - var r = n(23), - i = n(64); - t.exports = function(t, e, n, o) { - var a = n.length, - s = a, - u = !o; - if (null == t) return !s; - for (t = Object(t); a--; ) { - var l = n[a]; - if (u && l[2] ? l[1] !== t[l[0]] : !(l[0] in t)) return !1; - } - for (; ++a < s; ) { - var c = (l = n[a])[0], - f = t[c], - d = l[1]; - if (u && l[2]) { - if (void 0 === f && !(c in t)) return !1; - } else { - var h = new r(); - if (o) var p = o(f, d, c, t, e, h); - if (!(void 0 === p ? i(d, f, 3, o, h) : p)) return !1; - } - } - return !0; - }; - }, - function(t, e) { - t.exports = function() { - (this.__data__ = []), (this.size = 0); - }; - }, - function(t, e, n) { - var r = n(25), - i = Array.prototype.splice; - t.exports = function(t) { - var e = this.__data__, - n = r(e, t); - return !( - n < 0 || - (n == e.length - 1 ? e.pop() : i.call(e, n, 1), - --this.size, - 0) - ); - }; - }, - function(t, e, n) { - var r = n(25); - t.exports = function(t) { - var e = this.__data__, - n = r(e, t); - return n < 0 ? void 0 : e[n][1]; - }; - }, - function(t, e, n) { - var r = n(25); - t.exports = function(t) { - return r(this.__data__, t) > -1; - }; - }, - function(t, e, n) { - var r = n(25); - t.exports = function(t, e) { - var n = this.__data__, - i = r(n, t); - return ( - i < 0 ? (++this.size, n.push([t, e])) : (n[i][1] = e), this - ); - }; - }, - function(t, e, n) { - var r = n(24); - t.exports = function() { - (this.__data__ = new r()), (this.size = 0); - }; - }, - function(t, e) { - t.exports = function(t) { - var e = this.__data__, - n = e.delete(t); - return (this.size = e.size), n; - }; - }, - function(t, e) { - t.exports = function(t) { - return this.__data__.get(t); - }; - }, - function(t, e) { - t.exports = function(t) { - return this.__data__.has(t); - }; - }, - function(t, e, n) { - var r = n(24), - i = n(47), - o = n(48); - t.exports = function(t, e) { - var n = this.__data__; - if (n instanceof r) { - var a = n.__data__; - if (!i || a.length < 199) - return a.push([t, e]), (this.size = ++n.size), this; - n = this.__data__ = new o(a); - } - return n.set(t, e), (this.size = n.size), this; - }; - }, - function(t, e, n) { - var r = n(45), - i = n(127), - o = n(4), - a = n(63), - s = /^\[object .+?Constructor\]$/, - u = Function.prototype, - l = Object.prototype, - c = u.toString, - f = l.hasOwnProperty, - d = RegExp( - '^' + - c - .call(f) - .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') - .replace( - /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, - '$1.*?' - ) + - '$' - ); - t.exports = function(t) { - return !(!o(t) || i(t)) && (r(t) ? d : s).test(a(t)); - }; - }, - function(t, e, n) { - var r, - i = n(128), - o = (r = /[^.]+$/.exec((i && i.keys && i.keys.IE_PROTO) || '')) - ? 'Symbol(src)_1.' + r - : ''; - t.exports = function(t) { - return !!o && o in t; - }; - }, - function(t, e, n) { - var r = n(5)['__core-js_shared__']; - t.exports = r; - }, - function(t, e) { - t.exports = function(t, e) { - return null == t ? void 0 : t[e]; - }; - }, - function(t, e, n) { - var r = n(131), - i = n(24), - o = n(47); - t.exports = function() { - (this.size = 0), - (this.__data__ = { - hash: new r(), - map: new (o || i)(), - string: new r() - }); - }; - }, - function(t, e, n) { - var r = n(132), - i = n(133), - o = n(134), - a = n(135), - s = n(136); - function u(t) { - var e = -1, - n = null == t ? 0 : t.length; - for (this.clear(); ++e < n; ) { - var r = t[e]; - this.set(r[0], r[1]); - } - } - (u.prototype.clear = r), - (u.prototype.delete = i), - (u.prototype.get = o), - (u.prototype.has = a), - (u.prototype.set = s), - (t.exports = u); - }, - function(t, e, n) { - var r = n(26); - t.exports = function() { - (this.__data__ = r ? r(null) : {}), (this.size = 0); - }; - }, - function(t, e) { - t.exports = function(t) { - var e = this.has(t) && delete this.__data__[t]; - return (this.size -= e ? 1 : 0), e; - }; - }, - function(t, e, n) { - var r = n(26), - i = Object.prototype.hasOwnProperty; - t.exports = function(t) { - var e = this.__data__; - if (r) { - var n = e[t]; - return '__lodash_hash_undefined__' === n ? void 0 : n; - } - return i.call(e, t) ? e[t] : void 0; - }; - }, - function(t, e, n) { - var r = n(26), - i = Object.prototype.hasOwnProperty; - t.exports = function(t) { - var e = this.__data__; - return r ? void 0 !== e[t] : i.call(e, t); - }; - }, - function(t, e, n) { - var r = n(26); - t.exports = function(t, e) { - var n = this.__data__; - return ( - (this.size += this.has(t) ? 0 : 1), - (n[t] = r && void 0 === e ? '__lodash_hash_undefined__' : e), - this - ); - }; - }, - function(t, e, n) { - var r = n(27); - t.exports = function(t) { - var e = r(this, t).delete(t); - return (this.size -= e ? 1 : 0), e; - }; - }, - function(t, e) { - t.exports = function(t) { - var e = typeof t; - return 'string' == e || - 'number' == e || - 'symbol' == e || - 'boolean' == e - ? '__proto__' !== t - : null === t; - }; - }, - function(t, e, n) { - var r = n(27); - t.exports = function(t) { - return r(this, t).get(t); - }; - }, - function(t, e, n) { - var r = n(27); - t.exports = function(t) { - return r(this, t).has(t); - }; - }, - function(t, e, n) { - var r = n(27); - t.exports = function(t, e) { - var n = r(this, t), - i = n.size; - return n.set(t, e), (this.size += n.size == i ? 0 : 1), this; - }; - }, - function(t, e, n) { - var r = n(23), - i = n(65), - o = n(148), - a = n(151), - s = n(28), - u = n(3), - l = n(21), - c = n(40), - f = '[object Arguments]', - d = '[object Array]', - h = '[object Object]', - p = Object.prototype.hasOwnProperty; - t.exports = function(t, e, n, g, v, m) { - var y = u(t), - b = u(e), - _ = y ? d : s(t), - x = b ? d : s(e), - w = (_ = _ == f ? h : _) == h, - S = (x = x == f ? h : x) == h, - E = _ == x; - if (E && l(t)) { - if (!l(e)) return !1; - (y = !0), (w = !1); - } - if (E && !w) - return ( - m || (m = new r()), - y || c(t) ? i(t, e, n, g, v, m) : o(t, e, _, n, g, v, m) - ); - if (!(1 & n)) { - var k = w && p.call(t, '__wrapped__'), - A = S && p.call(e, '__wrapped__'); - if (k || A) { - var T = k ? t.value() : t, - C = A ? e.value() : e; - return m || (m = new r()), v(T, C, n, g, m); - } - } - return !!E && (m || (m = new r()), a(t, e, n, g, v, m)); - }; - }, - function(t, e, n) { - var r = n(48), - i = n(144), - o = n(145); - function a(t) { - var e = -1, - n = null == t ? 0 : t.length; - for (this.__data__ = new r(); ++e < n; ) this.add(t[e]); - } - (a.prototype.add = a.prototype.push = i), - (a.prototype.has = o), - (t.exports = a); - }, - function(t, e) { - t.exports = function(t) { - return this.__data__.set(t, '__lodash_hash_undefined__'), this; - }; - }, - function(t, e) { - t.exports = function(t) { - return this.__data__.has(t); - }; - }, - function(t, e) { - t.exports = function(t, e) { - for (var n = -1, r = null == t ? 0 : t.length; ++n < r; ) - if (e(t[n], n, t)) return !0; - return !1; - }; - }, - function(t, e) { - t.exports = function(t, e) { - return t.has(e); - }; - }, - function(t, e, n) { - var r = n(15), - i = n(66), - o = n(17), - a = n(65), - s = n(149), - u = n(150), - l = r ? r.prototype : void 0, - c = l ? l.valueOf : void 0; - t.exports = function(t, e, n, r, l, f, d) { - switch (n) { - case '[object DataView]': - if ( - t.byteLength != e.byteLength || - t.byteOffset != e.byteOffset - ) - return !1; - (t = t.buffer), (e = e.buffer); - case '[object ArrayBuffer]': - return !( - t.byteLength != e.byteLength || !f(new i(t), new i(e)) - ); - case '[object Boolean]': - case '[object Date]': - case '[object Number]': - return o(+t, +e); - case '[object Error]': - return t.name == e.name && t.message == e.message; - case '[object RegExp]': - case '[object String]': - return t == e + ''; - case '[object Map]': - var h = s; - case '[object Set]': - var p = 1 & r; - if ((h || (h = u), t.size != e.size && !p)) return !1; - var g = d.get(t); - if (g) return g == e; - (r |= 2), d.set(t, e); - var v = a(h(t), h(e), r, l, f, d); - return d.delete(t), v; - case '[object Symbol]': - if (c) return c.call(t) == c.call(e); - } - return !1; - }; - }, - function(t, e) { - t.exports = function(t) { - var e = -1, - n = Array(t.size); - return ( - t.forEach(function(t, r) { - n[++e] = [r, t]; - }), - n - ); - }; - }, - function(t, e) { - t.exports = function(t) { - var e = -1, - n = Array(t.size); - return ( - t.forEach(function(t) { - n[++e] = t; - }), - n - ); - }; - }, - function(t, e, n) { - var r = n(67), - i = Object.prototype.hasOwnProperty; - t.exports = function(t, e, n, o, a, s) { - var u = 1 & n, - l = r(t), - c = l.length; - if (c != r(e).length && !u) return !1; - for (var f = c; f--; ) { - var d = l[f]; - if (!(u ? d in e : i.call(e, d))) return !1; - } - var h = s.get(t); - if (h && s.get(e)) return h == e; - var p = !0; - s.set(t, e), s.set(e, t); - for (var g = u; ++f < c; ) { - var v = t[(d = l[f])], - m = e[d]; - if (o) var y = u ? o(m, v, d, e, t, s) : o(v, m, d, t, e, s); - if (!(void 0 === y ? v === m || a(v, m, n, o, s) : y)) { - p = !1; - break; - } - g || (g = 'constructor' == d); - } - if (p && !g) { - var b = t.constructor, - _ = e.constructor; - b != _ && - 'constructor' in t && - 'constructor' in e && - !( - 'function' == typeof b && - b instanceof b && - 'function' == typeof _ && - _ instanceof _ - ) && - (p = !1); - } - return s.delete(t), s.delete(e), p; - }; - }, - function(t, e) { - t.exports = function(t, e) { - for ( - var n = -1, r = null == t ? 0 : t.length, i = 0, o = []; - ++n < r; - - ) { - var a = t[n]; - e(a, n, t) && (o[i++] = a); - } - return o; - }; - }, - function(t, e, n) { - var r = n(11)(n(5), 'DataView'); - t.exports = r; - }, - function(t, e, n) { - var r = n(11)(n(5), 'Promise'); - t.exports = r; - }, - function(t, e, n) { - var r = n(11)(n(5), 'Set'); - t.exports = r; - }, - function(t, e, n) { - var r = n(11)(n(5), 'WeakMap'); - t.exports = r; - }, - function(t, e, n) { - var r = n(71), - i = n(16); - t.exports = function(t) { - for (var e = i(t), n = e.length; n--; ) { - var o = e[n], - a = t[o]; - e[n] = [o, a, r(a)]; - } - return e; - }; - }, - function(t, e, n) { - var r = n(64), - i = n(159), - o = n(165), - a = n(50), - s = n(71), - u = n(72), - l = n(30); - t.exports = function(t, e) { - return a(t) && s(e) - ? u(l(t), e) - : function(n) { - var a = i(n, t); - return void 0 === a && a === e ? o(n, t) : r(e, a, 3); - }; - }; - }, - function(t, e, n) { - var r = n(73); - t.exports = function(t, e, n) { - var i = null == t ? void 0 : r(t, e); - return void 0 === i ? n : i; - }; - }, - function(t, e, n) { - var r = n(161), - i = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, - o = /\\(\\)?/g, - a = r(function(t) { - var e = []; - return ( - 46 === t.charCodeAt(0) && e.push(''), - t.replace(i, function(t, n, r, i) { - e.push(r ? i.replace(o, '$1') : n || t); - }), - e - ); - }); - t.exports = a; - }, - function(t, e, n) { - var r = n(162); - t.exports = function(t) { - var e = r(t, function(t) { - return 500 === n.size && n.clear(), t; - }), - n = e.cache; - return e; - }; - }, - function(t, e, n) { - var r = n(48); - function i(t, e) { - if ( - 'function' != typeof t || - (null != e && 'function' != typeof e) - ) - throw new TypeError('Expected a function'); - var n = function() { - var r = arguments, - i = e ? e.apply(this, r) : r[0], - o = n.cache; - if (o.has(i)) return o.get(i); - var a = t.apply(this, r); - return (n.cache = o.set(i, a) || o), a; - }; - return (n.cache = new (i.Cache || r)()), n; - } - (i.Cache = r), (t.exports = i); - }, - function(t, e, n) { - var r = n(164); - t.exports = function(t) { - return null == t ? '' : r(t); - }; - }, - function(t, e, n) { - var r = n(15), - i = n(62), - o = n(3), - a = n(29), - s = r ? r.prototype : void 0, - u = s ? s.toString : void 0; - t.exports = function t(e) { - if ('string' == typeof e) return e; - if (o(e)) return i(e, t) + ''; - if (a(e)) return u ? u.call(e) : ''; - var n = e + ''; - return '0' == n && 1 / e == -1 / 0 ? '-0' : n; - }; - }, - function(t, e, n) { - var r = n(166), - i = n(167); - t.exports = function(t, e) { - return null != t && i(t, e, r); - }; - }, - function(t, e) { - t.exports = function(t, e) { - return null != t && e in Object(t); - }; - }, - function(t, e, n) { - var r = n(74), - i = n(38), - o = n(3), - a = n(39), - s = n(41), - u = n(30); - t.exports = function(t, e, n) { - for (var l = -1, c = (e = r(e, t)).length, f = !1; ++l < c; ) { - var d = u(e[l]); - if (!(f = null != t && n(t, d))) break; - t = t[d]; - } - return f || ++l != c - ? f - : !!(c = null == t ? 0 : t.length) && - s(c) && - a(d, c) && - (o(t) || i(t)); - }; - }, - function(t, e, n) { - var r = n(169), - i = n(170), - o = n(50), - a = n(30); - t.exports = function(t) { - return o(t) ? r(a(t)) : i(t); - }; - }, - function(t, e) { - t.exports = function(t) { - return function(e) { - return null == e ? void 0 : e[t]; - }; - }; - }, - function(t, e, n) { - var r = n(73); - t.exports = function(t) { - return function(e) { - return r(e, t); - }; - }; - }, - function(t, e, n) { - var r = n(75), - i = n(12); - t.exports = function(t, e) { - var n = -1, - o = i(t) ? Array(t.length) : []; - return ( - r(t, function(t, r, i) { - o[++n] = e(t, r, i); - }), - o - ); - }; - }, - function(t, e, n) { - var r = n(12); - t.exports = function(t, e) { - return function(n, i) { - if (null == n) return n; - if (!r(n)) return t(n, i); - for ( - var o = n.length, a = e ? o : -1, s = Object(n); - (e ? a-- : ++a < o) && !1 !== i(s[a], a, s); - - ); - return n; - }; - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.mergeClasses = void 0); - var r = a(n(37)), - i = a(n(174)), - o = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }; - function a(t) { - return t && t.__esModule ? t : { default: t }; - } - var s = (e.mergeClasses = function(t) { - var e = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : [], - n = (t.default && (0, i.default)(t.default)) || {}; - return ( - e.map(function(e) { - var i = t[e]; - return ( - i && - (0, r.default)(i, function(t, e) { - n[e] || (n[e] = {}), (n[e] = o({}, n[e], i[e])); - }), - e - ); - }), - n - ); - }); - e.default = s; - }, - function(t, e, n) { - var r = n(175); - t.exports = function(t) { - return r(t, 5); - }; - }, - function(t, e, n) { - var r = n(23), - i = n(76), - o = n(77), - a = n(176), - s = n(177), - u = n(79), - l = n(80), - c = n(180), - f = n(181), - d = n(67), - h = n(182), - p = n(28), - g = n(183), - v = n(184), - m = n(83), - y = n(3), - b = n(21), - _ = n(189), - x = n(4), - w = n(191), - S = n(16), - E = '[object Arguments]', - k = '[object Function]', - A = '[object Object]', - T = {}; - (T[E] = T['[object Array]'] = T['[object ArrayBuffer]'] = T[ - '[object DataView]' - ] = T['[object Boolean]'] = T['[object Date]'] = T[ - '[object Float32Array]' - ] = T['[object Float64Array]'] = T['[object Int8Array]'] = T[ - '[object Int16Array]' - ] = T['[object Int32Array]'] = T['[object Map]'] = T[ - '[object Number]' - ] = T[A] = T['[object RegExp]'] = T['[object Set]'] = T[ - '[object String]' - ] = T['[object Symbol]'] = T['[object Uint8Array]'] = T[ - '[object Uint8ClampedArray]' - ] = T['[object Uint16Array]'] = T['[object Uint32Array]'] = !0), - (T['[object Error]'] = T[k] = T['[object WeakMap]'] = !1), - (t.exports = function t(e, n, C, O, P, M) { - var L, - D = 1 & n, - j = 2 & n, - R = 4 & n; - if ((C && (L = P ? C(e, O, P, M) : C(e)), void 0 !== L)) - return L; - if (!x(e)) return e; - var N = y(e); - if (N) { - if (((L = g(e)), !D)) return l(e, L); - } else { - var z = p(e), - I = z == k || '[object GeneratorFunction]' == z; - if (b(e)) return u(e, D); - if (z == A || z == E || (I && !P)) { - if (((L = j || I ? {} : m(e)), !D)) - return j ? f(e, s(L, e)) : c(e, a(L, e)); - } else { - if (!T[z]) return P ? e : {}; - L = v(e, z, D); - } - } - M || (M = new r()); - var F = M.get(e); - if (F) return F; - if ((M.set(e, L), w(e))) - return ( - e.forEach(function(r) { - L.add(t(r, n, C, r, e, M)); - }), - L - ); - if (_(e)) - return ( - e.forEach(function(r, i) { - L.set(i, t(r, n, C, i, e, M)); - }), - L - ); - var V = R ? (j ? h : d) : j ? keysIn : S, - B = N ? void 0 : V(e); - return ( - i(B || e, function(r, i) { - B && (r = e[(i = r)]), o(L, i, t(r, n, C, i, e, M)); - }), - L - ); - }); - }, - function(t, e, n) { - var r = n(18), - i = n(16); - t.exports = function(t, e) { - return t && r(e, i(e), t); - }; - }, - function(t, e, n) { - var r = n(18), - i = n(31); - t.exports = function(t, e) { - return t && r(e, i(e), t); - }; - }, - function(t, e, n) { - var r = n(4), - i = n(44), - o = n(179), - a = Object.prototype.hasOwnProperty; - t.exports = function(t) { - if (!r(t)) return o(t); - var e = i(t), - n = []; - for (var s in t) - ('constructor' != s || (!e && a.call(t, s))) && n.push(s); - return n; - }; - }, - function(t, e) { - t.exports = function(t) { - var e = []; - if (null != t) for (var n in Object(t)) e.push(n); - return e; - }; - }, - function(t, e, n) { - var r = n(18), - i = n(49); - t.exports = function(t, e) { - return r(t, i(t), e); - }; - }, - function(t, e, n) { - var r = n(18), - i = n(81); - t.exports = function(t, e) { - return r(t, i(t), e); - }; - }, - function(t, e, n) { - var r = n(68), - i = n(81), - o = n(31); - t.exports = function(t) { - return r(t, o, i); - }; - }, - function(t, e) { - var n = Object.prototype.hasOwnProperty; - t.exports = function(t) { - var e = t.length, - r = new t.constructor(e); - return ( - e && - 'string' == typeof t[0] && - n.call(t, 'index') && - ((r.index = t.index), (r.input = t.input)), - r - ); - }; - }, - function(t, e, n) { - var r = n(52), - i = n(185), - o = n(186), - a = n(187), - s = n(82); - t.exports = function(t, e, n) { - var u = t.constructor; - switch (e) { - case '[object ArrayBuffer]': - return r(t); - case '[object Boolean]': - case '[object Date]': - return new u(+t); - case '[object DataView]': - return i(t, 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 s(t, n); - case '[object Map]': - return new u(); - case '[object Number]': - case '[object String]': - return new u(t); - case '[object RegExp]': - return o(t); - case '[object Set]': - return new u(); - case '[object Symbol]': - return a(t); - } - }; - }, - function(t, e, n) { - var r = n(52); - t.exports = function(t, e) { - var n = e ? r(t.buffer) : t.buffer; - return new t.constructor(n, t.byteOffset, t.byteLength); - }; - }, - function(t, e) { - var n = /\w*$/; - t.exports = function(t) { - var e = new t.constructor(t.source, n.exec(t)); - return (e.lastIndex = t.lastIndex), e; - }; - }, - function(t, e, n) { - var r = n(15), - i = r ? r.prototype : void 0, - o = i ? i.valueOf : void 0; - t.exports = function(t) { - return o ? Object(o.call(t)) : {}; - }; - }, - function(t, e, n) { - var r = n(4), - i = Object.create, - o = (function() { - function t() {} - return function(e) { - if (!r(e)) return {}; - if (i) return i(e); - t.prototype = e; - var n = new t(); - return (t.prototype = void 0), n; - }; - })(); - t.exports = o; - }, - function(t, e, n) { - var r = n(190), - i = n(42), - o = n(43), - a = o && o.isMap, - s = a ? i(a) : r; - t.exports = s; - }, - function(t, e, n) { - var r = n(28), - i = n(6); - t.exports = function(t) { - return i(t) && '[object Map]' == r(t); - }; - }, - function(t, e, n) { - var r = n(192), - i = n(42), - o = n(43), - a = o && o.isSet, - s = a ? i(a) : r; - t.exports = s; - }, - function(t, e, n) { - var r = n(28), - i = n(6); - t.exports = function(t) { - return i(t) && '[object Set]' == r(t); - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.autoprefix = void 0); - var r, - i = (r = n(37)) && r.__esModule ? r : { default: r }, - o = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }, - a = { - borderRadius: function(t) { - return { - msBorderRadius: t, - MozBorderRadius: t, - OBorderRadius: t, - WebkitBorderRadius: t, - borderRadius: t - }; - }, - boxShadow: function(t) { - return { - msBoxShadow: t, - MozBoxShadow: t, - OBoxShadow: t, - WebkitBoxShadow: t, - boxShadow: t - }; - }, - userSelect: function(t) { - return { - WebkitTouchCallout: t, - KhtmlUserSelect: t, - MozUserSelect: t, - msUserSelect: t, - WebkitUserSelect: t, - userSelect: t - }; - }, - flex: function(t) { - return { - WebkitBoxFlex: t, - MozBoxFlex: t, - WebkitFlex: t, - msFlex: t, - flex: t - }; - }, - flexBasis: function(t) { - return { WebkitFlexBasis: t, flexBasis: t }; - }, - justifyContent: function(t) { - return { WebkitJustifyContent: t, justifyContent: t }; - }, - transition: function(t) { - return { - msTransition: t, - MozTransition: t, - OTransition: t, - WebkitTransition: t, - transition: t - }; - }, - transform: function(t) { - return { - msTransform: t, - MozTransform: t, - OTransform: t, - WebkitTransform: t, - transform: t - }; - }, - absolute: function(t) { - var e = t && t.split(' '); - return { - position: 'absolute', - top: e && e[0], - right: e && e[1], - bottom: e && e[2], - left: e && e[3] - }; - }, - extend: function(t, e) { - return e[t] || { extend: t }; - } - }, - s = (e.autoprefix = function(t) { - var e = {}; - return ( - (0, i.default)(t, function(t, n) { - var r = {}; - (0, i.default)(t, function(t, e) { - var n = a[e]; - n ? (r = o({}, r, n(t))) : (r[e] = t); - }), - (e[n] = r); - }), - e - ); - }); - e.default = s; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.hover = void 0); - var r, - i = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }, - o = (r = n(0)) && r.__esModule ? r : { default: r }; - function a(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - } - function s(t, e) { - if (!t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !e || ('object' != typeof e && 'function' != typeof e) - ? t - : e; - } - function u(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof e - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { - value: t, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - e && - (Object.setPrototypeOf - ? Object.setPrototypeOf(t, e) - : (t.__proto__ = e)); - } - var l = (e.hover = function(t) { - var e = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : 'span'; - return (function(n) { - function r() { - var n, u, l; - a(this, r); - for ( - var c = arguments.length, f = Array(c), d = 0; - d < c; - d++ - ) - f[d] = arguments[d]; - return ( - (u = l = s( - this, - (n = - r.__proto__ || Object.getPrototypeOf(r)).call.apply( - n, - [this].concat(f) - ) - )), - (l.state = { hover: !1 }), - (l.handleMouseOver = function() { - return l.setState({ hover: !0 }); - }), - (l.handleMouseOut = function() { - return l.setState({ hover: !1 }); - }), - (l.render = function() { - return o.default.createElement( - e, - { - onMouseOver: l.handleMouseOver, - onMouseOut: l.handleMouseOut - }, - o.default.createElement(t, i({}, l.props, l.state)) - ); - }), - s(l, u) - ); - } - return u(r, n), r; - })(o.default.Component); - }); - e.default = l; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.active = void 0); - var r, - i = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }, - o = (r = n(0)) && r.__esModule ? r : { default: r }; - function a(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - } - function s(t, e) { - if (!t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !e || ('object' != typeof e && 'function' != typeof e) - ? t - : e; - } - function u(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof e - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { - value: t, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - e && - (Object.setPrototypeOf - ? Object.setPrototypeOf(t, e) - : (t.__proto__ = e)); - } - var l = (e.active = function(t) { - var e = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : 'span'; - return (function(n) { - function r() { - var n, u, l; - a(this, r); - for ( - var c = arguments.length, f = Array(c), d = 0; - d < c; - d++ - ) - f[d] = arguments[d]; - return ( - (u = l = s( - this, - (n = - r.__proto__ || Object.getPrototypeOf(r)).call.apply( - n, - [this].concat(f) - ) - )), - (l.state = { active: !1 }), - (l.handleMouseDown = function() { - return l.setState({ active: !0 }); - }), - (l.handleMouseUp = function() { - return l.setState({ active: !1 }); - }), - (l.render = function() { - return o.default.createElement( - e, - { - onMouseDown: l.handleMouseDown, - onMouseUp: l.handleMouseUp - }, - o.default.createElement(t, i({}, l.props, l.state)) - ); - }), - s(l, u) - ); - } - return u(r, n), r; - })(o.default.Component); - }); - e.default = l; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t, e) { - var n = {}, - r = function(t) { - var e = - !(arguments.length > 1 && void 0 !== arguments[1]) || - arguments[1]; - n[t] = e; - }; - return ( - 0 === t && r('first-child'), - t === e - 1 && r('last-child'), - (0 === t || t % 2 == 0) && r('even'), - 1 === Math.abs(t % 2) && r('odd'), - r('nth-child', t), - n - ); - }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.calculateChange = function(t, e, n, r, i) { - var o, - a, - s = i.clientWidth, - u = i.clientHeight, - l = - 'number' == typeof t.pageX ? t.pageX : t.touches[0].pageX, - c = - 'number' == typeof t.pageY ? t.pageY : t.touches[0].pageY, - f = - l - (i.getBoundingClientRect().left + window.pageXOffset), - d = - c - (i.getBoundingClientRect().top + window.pageYOffset); - if ('vertical' === n) { - if ( - ((o = - d < 0 - ? 0 - : d > u - ? 1 - : Math.round((100 * d) / u) / 100), - e.a !== o) - ) - return { h: e.h, s: e.s, l: e.l, a: o, source: 'rgb' }; - } else if ( - r !== - (a = - f < 0 ? 0 : f > s ? 1 : Math.round((100 * f) / s) / 100) - ) - return { h: e.h, s: e.s, l: e.l, a: a, source: 'rgb' }; - return null; - }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = {}, - i = (e.render = function(t, e, n, r) { - if ('undefined' == typeof document && !r) return null; - var i = r ? new r() : document.createElement('canvas'); - (i.width = 2 * n), (i.height = 2 * n); - var o = i.getContext('2d'); - return o - ? ((o.fillStyle = t), - o.fillRect(0, 0, i.width, i.height), - (o.fillStyle = e), - o.fillRect(0, 0, n, n), - o.translate(n, n), - o.fillRect(0, 0, n, n), - i.toDataURL()) - : null; - }); - e.get = function(t, e, n, o) { - var a = t + '-' + e + '-' + n + (o ? '-server' : ''); - if (r[a]) return r[a]; - var s = i(t, e, n, o); - return (r[a] = s), s; - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.EditableInput = void 0); - var r = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - i = n(0), - o = s(i), - a = s(n(9)); - function s(t) { - return t && t.__esModule ? t : { default: t }; - } - var u = [38, 40], - l = (e.EditableInput = (function(t) { - function e(t) { - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, e); - var n = (function(t, e) { - if (!t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !e || - ('object' != typeof e && 'function' != typeof e) - ? t - : e; - })( - this, - (e.__proto__ || Object.getPrototypeOf(e)).call(this) - ); - return ( - (n.handleBlur = function() { - n.state.blurValue && - n.setState({ - value: n.state.blurValue, - blurValue: null - }); - }), - (n.handleChange = function(t) { - n.setUpdatedValue(t.target.value, t); - }), - (n.handleKeyDown = function(t) { - var e = (function(t) { - return Number(String(t).replace(/%/g, '')); - })(t.target.value); - if ( - !isNaN(e) && - (function(t) { - return u.indexOf(t) > -1; - })(t.keyCode) - ) { - var r = n.getArrowOffset(), - i = 38 === t.keyCode ? e + r : e - r; - n.setUpdatedValue(i, t); - } - }), - (n.handleDrag = function(t) { - if (n.props.dragLabel) { - var e = Math.round(n.props.value + t.movementX); - e >= 0 && - e <= n.props.dragMax && - n.props.onChange && - n.props.onChange(n.getValueObjectWithLabel(e), t); - } - }), - (n.handleMouseDown = function(t) { - n.props.dragLabel && - (t.preventDefault(), - n.handleDrag(t), - window.addEventListener('mousemove', n.handleDrag), - window.addEventListener('mouseup', n.handleMouseUp)); - }), - (n.handleMouseUp = function() { - n.unbindEventListeners(); - }), - (n.unbindEventListeners = function() { - window.removeEventListener('mousemove', n.handleDrag), - window.removeEventListener( - 'mouseup', - n.handleMouseUp - ); - }), - (n.state = { - value: String(t.value).toUpperCase(), - blurValue: String(t.value).toUpperCase() - }), - n - ); - } - return ( - (function(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof e - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { - value: t, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - e && - (Object.setPrototypeOf - ? Object.setPrototypeOf(t, e) - : (t.__proto__ = e)); - })(e, t), - r(e, [ - { - key: 'componentWillReceiveProps', - value: function(t) { - var e = this.input; - t.value !== this.state.value && - (e === document.activeElement - ? this.setState({ - blurValue: String(t.value).toUpperCase() - }) - : this.setState({ - value: String(t.value).toUpperCase(), - blurValue: - !this.state.blurValue && - String(t.value).toUpperCase() - })); - } - }, - { - key: 'componentWillUnmount', - value: function() { - this.unbindEventListeners(); - } - }, - { - key: 'getValueObjectWithLabel', - value: function(t) { - return (function(t, e, n) { - return ( - e in t - ? Object.defineProperty(t, e, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (t[e] = n), - t - ); - })({}, this.props.label, t); - } - }, - { - key: 'getArrowOffset', - value: function() { - return this.props.arrowOffset || 1; - } - }, - { - key: 'setUpdatedValue', - value: function(t, e) { - var n = - null !== this.props.label - ? this.getValueObjectWithLabel(t) - : t; - this.props.onChange && this.props.onChange(n, e); - var r, - i = (function(t) { - return String(t).indexOf('%') > -1; - })(e.target.value); - this.setState({ value: i ? ((r = t), r + '%') : t }); - } - }, - { - key: 'render', - value: function() { - var t = this, - e = (0, a.default)( - { - default: { wrap: { position: 'relative' } }, - 'user-override': { - wrap: - this.props.style && this.props.style.wrap - ? this.props.style.wrap - : {}, - input: - this.props.style && this.props.style.input - ? this.props.style.input - : {}, - label: - this.props.style && this.props.style.label - ? this.props.style.label - : {} - }, - 'dragLabel-true': { - label: { cursor: 'ew-resize' } - } - }, - { 'user-override': !0 }, - this.props - ); - return o.default.createElement( - 'div', - { style: e.wrap }, - o.default.createElement('input', { - style: e.input, - ref: function(e) { - return (t.input = e); - }, - value: this.state.value, - onKeyDown: this.handleKeyDown, - onChange: this.handleChange, - onBlur: this.handleBlur, - placeholder: this.props.placeholder, - spellCheck: 'false' - }), - this.props.label && !this.props.hideLabel - ? o.default.createElement( - 'span', - { - style: e.label, - onMouseDown: this.handleMouseDown - }, - this.props.label - ) - : null - ); - } - } - ]), - e - ); - })(i.PureComponent || i.Component)); - e.default = l; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Hue = void 0); - var r = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - i = n(0), - o = u(i), - a = u(n(9)), - s = (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && - (e[n] = t[n]); - return (e.default = t), e; - })(n(201)); - function u(t) { - return t && t.__esModule ? t : { default: t }; - } - function l(t, e) { - if (!t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !e || ('object' != typeof e && 'function' != typeof e) - ? t - : e; - } - var c = (e.Hue = (function(t) { - function e() { - var t, n, r; - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - })(this, e); - for ( - var i = arguments.length, o = Array(i), a = 0; - a < i; - a++ - ) - o[a] = arguments[a]; - return ( - (n = r = l( - this, - (t = e.__proto__ || Object.getPrototypeOf(e)).call.apply( - t, - [this].concat(o) - ) - )), - (r.handleChange = function(t) { - var e = s.calculateChange( - t, - r.props.direction, - r.props.hsl, - r.container - ); - e && - 'function' == typeof r.props.onChange && - r.props.onChange(e, t); - }), - (r.handleMouseDown = function(t) { - r.handleChange(t), - window.addEventListener('mousemove', r.handleChange), - window.addEventListener('mouseup', r.handleMouseUp); - }), - (r.handleMouseUp = function() { - r.unbindEventListeners(); - }), - l(r, n) - ); - } - return ( - (function(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof e - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { - value: t, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - e && - (Object.setPrototypeOf - ? Object.setPrototypeOf(t, e) - : (t.__proto__ = e)); - })(e, t), - r(e, [ - { - key: 'componentWillUnmount', - value: function() { - this.unbindEventListeners(); - } - }, - { - key: 'unbindEventListeners', - value: function() { - window.removeEventListener( - 'mousemove', - this.handleChange - ), - window.removeEventListener( - 'mouseup', - this.handleMouseUp - ); - } - }, - { - key: 'render', - value: function() { - var t = this, - e = this.props.direction, - n = void 0 === e ? 'horizontal' : e, - r = (0, a.default)( - { - default: { - hue: { - absolute: '0px 0px 0px 0px', - borderRadius: this.props.radius, - boxShadow: this.props.shadow - }, - container: { - padding: '0 2px', - position: 'relative', - height: '100%', - borderRadius: this.props.radius - }, - pointer: { - position: 'absolute', - left: (100 * this.props.hsl.h) / 360 + '%' - }, - slider: { - marginTop: '1px', - width: '4px', - borderRadius: '1px', - height: '8px', - boxShadow: '0 0 2px rgba(0, 0, 0, .6)', - background: '#fff', - transform: 'translateX(-2px)' - } - }, - vertical: { - pointer: { - left: '0px', - top: - (-100 * this.props.hsl.h) / 360 + 100 + '%' - } - } - }, - { vertical: 'vertical' === n } - ); - return o.default.createElement( - 'div', - { style: r.hue }, - o.default.createElement( - 'div', - { - className: 'hue-' + n, - style: r.container, - ref: function(e) { - return (t.container = e); - }, - onMouseDown: this.handleMouseDown, - onTouchMove: this.handleChange, - onTouchStart: this.handleChange - }, - o.default.createElement( - 'style', - null, - '\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n ' - ), - o.default.createElement( - 'div', - { style: r.pointer }, - this.props.pointer - ? o.default.createElement( - this.props.pointer, - this.props - ) - : o.default.createElement('div', { - style: r.slider - }) - ) - ) - ); - } - } - ]), - e - ); - })(i.PureComponent || i.Component)); - e.default = c; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.calculateChange = function(t, e, n, r) { - var i = r.clientWidth, - o = r.clientHeight, - a = - 'number' == typeof t.pageX ? t.pageX : t.touches[0].pageX, - s = - 'number' == typeof t.pageY ? t.pageY : t.touches[0].pageY, - u = - a - (r.getBoundingClientRect().left + window.pageXOffset), - l = - s - (r.getBoundingClientRect().top + window.pageYOffset); - if ('vertical' === e) { - var c = void 0; - if ( - ((c = - l < 0 - ? 359 - : l > o - ? 0 - : (360 * ((-100 * l) / o + 100)) / 100), - n.h !== c) - ) - return { h: c, s: n.s, l: n.l, a: n.a, source: 'rgb' }; - } else { - var f = void 0; - if ( - ((f = - u < 0 - ? 0 - : u > i - ? 359 - : (((100 * u) / i) * 360) / 100), - n.h !== f) - ) - return { h: f, s: n.s, l: n.l, a: n.a, source: 'rgb' }; - } - return null; - }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Raised = void 0); - var r = s(n(0)), - i = s(n(1)), - o = s(n(9)), - a = s(n(203)); - function s(t) { - return t && t.__esModule ? t : { default: t }; - } - var u = (e.Raised = function(t) { - var e = t.zDepth, - n = t.radius, - i = t.background, - s = t.children, - u = t.styles, - l = void 0 === u ? {} : u, - c = (0, o.default)( - (0, a.default)( - { - default: { - wrap: { - position: 'relative', - display: 'inline-block' - }, - content: { position: 'relative' }, - bg: { - absolute: '0px 0px 0px 0px', - boxShadow: - '0 ' + e + 'px ' + 4 * e + 'px rgba(0,0,0,.24)', - borderRadius: n, - background: i - } - }, - 'zDepth-0': { bg: { boxShadow: 'none' } }, - 'zDepth-1': { - bg: { - boxShadow: - '0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)' - } - }, - 'zDepth-2': { - bg: { - boxShadow: - '0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)' - } - }, - 'zDepth-3': { - bg: { - boxShadow: - '0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)' - } - }, - 'zDepth-4': { - bg: { - boxShadow: - '0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)' - } - }, - 'zDepth-5': { - bg: { - boxShadow: - '0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)' - } - }, - square: { bg: { borderRadius: '0' } }, - circle: { bg: { borderRadius: '50%' } } - }, - l - ), - { 'zDepth-1': 1 === e } - ); - return r.default.createElement( - 'div', - { style: c.wrap }, - r.default.createElement('div', { style: c.bg }), - r.default.createElement('div', { style: c.content }, s) - ); - }); - (u.propTypes = { - background: i.default.string, - zDepth: i.default.oneOf([0, 1, 2, 3, 4, 5]), - radius: i.default.number, - styles: i.default.object - }), - (u.defaultProps = { - background: '#fff', - zDepth: 1, - radius: 2, - styles: {} - }), - (e.default = u); - }, - function(t, e, n) { - var r = n(204), - i = n(208)(function(t, e, n) { - r(t, e, n); - }); - t.exports = i; - }, - function(t, e, n) { - var r = n(23), - i = n(84), - o = n(57), - a = n(205), - s = n(4), - u = n(31), - l = n(85); - t.exports = function t(e, n, c, f, d) { - e !== n && - o( - n, - function(o, u) { - if (s(o)) d || (d = new r()), a(e, n, u, c, t, f, d); - else { - var h = f ? f(l(e, u), o, u + '', e, n, d) : void 0; - void 0 === h && (h = o), i(e, u, h); - } - }, - u - ); - }; - }, - function(t, e, n) { - var r = n(84), - i = n(79), - o = n(82), - a = n(80), - s = n(83), - u = n(38), - l = n(3), - c = n(206), - f = n(21), - d = n(45), - h = n(4), - p = n(61), - g = n(40), - v = n(85), - m = n(207); - t.exports = function(t, e, n, y, b, _, x) { - var w = v(t, n), - S = v(e, n), - E = x.get(S); - if (E) r(t, n, E); - else { - var k = _ ? _(w, S, n + '', t, e, x) : void 0, - A = void 0 === k; - if (A) { - var T = l(S), - C = !T && f(S), - O = !T && !C && g(S); - (k = S), - T || C || O - ? l(w) - ? (k = w) - : c(w) - ? (k = a(w)) - : C - ? ((A = !1), (k = i(S, !0))) - : O - ? ((A = !1), (k = o(S, !0))) - : (k = []) - : p(S) || u(S) - ? ((k = w), - u(w) ? (k = m(w)) : (h(w) && !d(w)) || (k = s(S))) - : (A = !1); - } - A && (x.set(S, k), b(k, S, y, _, x), x.delete(S)), r(t, n, k); - } - }; - }, - function(t, e, n) { - var r = n(12), - i = n(6); - t.exports = function(t) { - return i(t) && r(t); - }; - }, - function(t, e, n) { - var r = n(18), - i = n(31); - t.exports = function(t) { - return r(t, i(t)); - }; - }, - function(t, e, n) { - var r = n(209), - i = n(216); - t.exports = function(t) { - return r(function(e, n) { - var r = -1, - o = n.length, - a = o > 1 ? n[o - 1] : void 0, - s = o > 2 ? n[2] : void 0; - for ( - a = - t.length > 3 && 'function' == typeof a - ? (o--, a) - : void 0, - s && - i(n[0], n[1], s) && - ((a = o < 3 ? void 0 : a), (o = 1)), - e = Object(e); - ++r < o; - - ) { - var u = n[r]; - u && t(e, u, r, a); - } - return e; - }); - }; - }, - function(t, e, n) { - var r = n(22), - i = n(210), - o = n(212); - t.exports = function(t, e) { - return o(i(t, e, r), t + ''); - }; - }, - function(t, e, n) { - var r = n(211), - i = Math.max; - t.exports = function(t, e, n) { - return ( - (e = i(void 0 === e ? t.length - 1 : e, 0)), - function() { - for ( - var o = arguments, - a = -1, - s = i(o.length - e, 0), - u = Array(s); - ++a < s; - - ) - u[a] = o[e + a]; - a = -1; - for (var l = Array(e + 1); ++a < e; ) l[a] = o[a]; - return (l[e] = n(u)), r(t, this, l); - } - ); - }; - }, - function(t, e) { - t.exports = function(t, e, n) { - switch (n.length) { - case 0: - return t.call(e); - case 1: - return t.call(e, n[0]); - case 2: - return t.call(e, n[0], n[1]); - case 3: - return t.call(e, n[0], n[1], n[2]); - } - return t.apply(e, n); - }; - }, - function(t, e, n) { - var r = n(213), - i = n(215)(r); - t.exports = i; - }, - function(t, e, n) { - var r = n(214), - i = n(78), - o = n(22), - a = i - ? function(t, e) { - return i(t, 'toString', { - configurable: !0, - enumerable: !1, - value: r(e), - writable: !0 - }); - } - : o; - t.exports = a; - }, - function(t, e) { - t.exports = function(t) { - return function() { - return t; - }; - }; - }, - function(t, e) { - var n = Date.now; - t.exports = function(t) { - var e = 0, - r = 0; - return function() { - var i = n(), - o = 16 - (i - r); - if (((r = i), o > 0)) { - if (++e >= 800) return arguments[0]; - } else e = 0; - return t.apply(void 0, arguments); - }; - }; - }, - function(t, e, n) { - var r = n(17), - i = n(12), - o = n(39), - a = n(4); - t.exports = function(t, e, n) { - if (!a(n)) return !1; - var s = typeof e; - return ( - !!('number' == s - ? i(n) && o(e, n.length) - : 'string' == s && e in n) && r(n[e], t) - ); - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Saturation = void 0); - var r = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - i = n(0), - o = l(i), - a = l(n(9)), - s = l(n(218)), - u = (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && - (e[n] = t[n]); - return (e.default = t), e; - })(n(221)); - function l(t) { - return t && t.__esModule ? t : { default: t }; - } - var c = (e.Saturation = (function(t) { - function e(t) { - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - })(this, e); - var n = (function(t, e) { - if (!t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !e || - ('object' != typeof e && 'function' != typeof e) - ? t - : e; - })( - this, - (e.__proto__ || Object.getPrototypeOf(e)).call(this, t) - ); - return ( - (n.handleChange = function(t) { - 'function' == typeof n.props.onChange && - n.throttle( - n.props.onChange, - u.calculateChange(t, n.props.hsl, n.container), - t - ); - }), - (n.handleMouseDown = function(t) { - n.handleChange(t), - window.addEventListener('mousemove', n.handleChange), - window.addEventListener('mouseup', n.handleMouseUp); - }), - (n.handleMouseUp = function() { - n.unbindEventListeners(); - }), - (n.throttle = (0, s.default)(function(t, e, n) { - t(e, n); - }, 50)), - n - ); - } - return ( - (function(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof e - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { - value: t, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - e && - (Object.setPrototypeOf - ? Object.setPrototypeOf(t, e) - : (t.__proto__ = e)); - })(e, t), - r(e, [ - { - key: 'componentWillUnmount', - value: function() { - this.throttle.cancel(), this.unbindEventListeners(); - } - }, - { - key: 'unbindEventListeners', - value: function() { - window.removeEventListener( - 'mousemove', - this.handleChange - ), - window.removeEventListener( - 'mouseup', - this.handleMouseUp - ); - } - }, - { - key: 'render', - value: function() { - var t = this, - e = this.props.style || {}, - n = e.color, - r = e.white, - i = e.black, - s = e.pointer, - u = e.circle, - l = (0, a.default)( - { - default: { - color: { - absolute: '0px 0px 0px 0px', - background: - 'hsl(' + this.props.hsl.h + ',100%, 50%)', - borderRadius: this.props.radius - }, - white: { - absolute: '0px 0px 0px 0px', - borderRadius: this.props.radius - }, - black: { - absolute: '0px 0px 0px 0px', - boxShadow: this.props.shadow, - borderRadius: this.props.radius - }, - pointer: { - position: 'absolute', - top: -100 * this.props.hsv.v + 100 + '%', - left: 100 * this.props.hsv.s + '%', - cursor: 'default' - }, - circle: { - width: '4px', - height: '4px', - boxShadow: - '0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)', - borderRadius: '50%', - cursor: 'hand', - transform: 'translate(-2px, -2px)' - } - }, - custom: { - color: n, - white: r, - black: i, - pointer: s, - circle: u - } - }, - { custom: !!this.props.style } - ); - return o.default.createElement( - 'div', - { - style: l.color, - ref: function(e) { - return (t.container = e); - }, - onMouseDown: this.handleMouseDown, - onTouchMove: this.handleChange, - onTouchStart: this.handleChange - }, - o.default.createElement( - 'style', - null, - '\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n ' - ), - o.default.createElement( - 'div', - { style: l.white, className: 'saturation-white' }, - o.default.createElement('div', { - style: l.black, - className: 'saturation-black' - }), - o.default.createElement( - 'div', - { style: l.pointer }, - this.props.pointer - ? o.default.createElement( - this.props.pointer, - this.props - ) - : o.default.createElement('div', { - style: l.circle - }) - ) - ) - ); - } - } - ]), - e - ); - })(i.PureComponent || i.Component)); - e.default = c; - }, - function(t, e, n) { - var r = n(86), - i = n(4); - t.exports = function(t, e, n) { - var o = !0, - a = !0; - if ('function' != typeof t) - throw new TypeError('Expected a function'); - return ( - i(n) && - ((o = 'leading' in n ? !!n.leading : o), - (a = 'trailing' in n ? !!n.trailing : a)), - r(t, e, { leading: o, maxWait: e, trailing: a }) - ); - }; - }, - function(t, e, n) { - var r = n(5); - t.exports = function() { - return r.Date.now(); - }; - }, - function(t, e, n) { - var r = n(4), - i = n(29), - o = /^\s+|\s+$/g, - a = /^[-+]0x[0-9a-f]+$/i, - s = /^0b[01]+$/i, - u = /^0o[0-7]+$/i, - l = parseInt; - t.exports = function(t) { - if ('number' == typeof t) return t; - if (i(t)) return NaN; - if (r(t)) { - var e = 'function' == typeof t.valueOf ? t.valueOf() : t; - t = r(e) ? e + '' : e; - } - if ('string' != typeof t) return 0 === t ? t : +t; - t = t.replace(o, ''); - var n = s.test(t); - return n || u.test(t) - ? l(t.slice(2), n ? 2 : 8) - : a.test(t) - ? NaN - : +t; - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.calculateChange = function(t, e, n) { - var r = n.getBoundingClientRect(), - i = r.width, - o = r.height, - a = - 'number' == typeof t.pageX ? t.pageX : t.touches[0].pageX, - s = - 'number' == typeof t.pageY ? t.pageY : t.touches[0].pageY, - u = - a - (n.getBoundingClientRect().left + window.pageXOffset), - l = - s - (n.getBoundingClientRect().top + window.pageYOffset); - u < 0 - ? (u = 0) - : u > i - ? (u = i) - : l < 0 - ? (l = 0) - : l > o && (l = o); - var c = (100 * u) / i, - f = (-100 * l) / o + 100; - return { h: e.h, s: c, v: f, a: e.a, source: 'rgb' }; - }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.ColorWrap = void 0); - var r = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }, - i = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - o = n(0), - a = l(o), - s = l(n(86)), - u = l(n(223)); - function l(t) { - return t && t.__esModule ? t : { default: t }; - } - var c = (e.ColorWrap = function(t) { - var e = (function(e) { - function n(t) { - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, n); - var e = (function(t, e) { - if (!t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !e || - ('object' != typeof e && 'function' != typeof e) - ? t - : e; - })( - this, - (n.__proto__ || Object.getPrototypeOf(n)).call(this) - ); - return ( - (e.handleChange = function(t, n) { - if (u.default.simpleCheckForValidColor(t)) { - var r = u.default.toState(t, t.h || e.state.oldHue); - e.setState(r), - e.props.onChangeComplete && - e.debounce(e.props.onChangeComplete, r, n), - e.props.onChange && e.props.onChange(r, n); - } - }), - (e.handleSwatchHover = function(t, n) { - if (u.default.simpleCheckForValidColor(t)) { - var r = u.default.toState(t, t.h || e.state.oldHue); - e.props.onSwatchHover && e.props.onSwatchHover(r, n); - } - }), - (e.state = r({}, u.default.toState(t.color, 0))), - (e.debounce = (0, s.default)(function(t, e, n) { - t(e, n); - }, 100)), - e - ); - } - return ( - (function(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof e - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { - value: t, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - e && - (Object.setPrototypeOf - ? Object.setPrototypeOf(t, e) - : (t.__proto__ = e)); - })(n, e), - i(n, [ - { - key: 'componentWillReceiveProps', - value: function(t) { - this.setState( - r({}, u.default.toState(t.color, this.state.oldHue)) - ); - } - }, - { - key: 'render', - value: function() { - var e = {}; - return ( - this.props.onSwatchHover && - (e.onSwatchHover = this.handleSwatchHover), - a.default.createElement( - t, - r( - {}, - this.props, - this.state, - { onChange: this.handleChange }, - e - ) - ) - ); - } - } - ]), - n - ); - })(o.PureComponent || o.Component); - return ( - (e.propTypes = r({}, t.propTypes)), - (e.defaultProps = r({}, t.defaultProps, { - color: { h: 250, s: 0.5, l: 0.2, a: 1 } - })), - e - ); - }); - e.default = c; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.red = e.getContrastingColor = e.isValidHex = e.toState = e.simpleCheckForValidColor = void 0); - var r = o(n(224)), - i = o(n(226)); - function o(t) { - return t && t.__esModule ? t : { default: t }; - } - e.simpleCheckForValidColor = function(t) { - var e = 0, - n = 0; - return ( - (0, r.default)( - ['r', 'g', 'b', 'a', 'h', 's', 'l', 'v'], - function(r) { - t[r] && - ((e += 1), - isNaN(t[r]) || (n += 1), - 's' === r || 'l' === r) && - /^\d+%$/.test(t[r]) && - (n += 1); - } - ), - e === n && t - ); - }; - var a = (e.toState = function(t, e) { - var n = t.hex ? (0, i.default)(t.hex) : (0, i.default)(t), - r = n.toHsl(), - o = n.toHsv(), - a = n.toRgb(), - s = n.toHex(); - return ( - 0 === r.s && ((r.h = e || 0), (o.h = e || 0)), - { - hsl: r, - hex: '000000' === s && 0 === a.a ? 'transparent' : '#' + s, - rgb: a, - hsv: o, - oldHue: t.h || e || r.h, - source: t.source - } - ); - }); - (e.isValidHex = function(t) { - var e = '#' === String(t).charAt(0) ? 1 : 0; - return ( - t.length !== 4 + e && - t.length < 7 + e && - (0, i.default)(t).isValid() - ); - }), - (e.getContrastingColor = function(t) { - if (!t) return '#fff'; - var e = a(t); - return 'transparent' === e.hex - ? 'rgba(0,0,0,0.4)' - : (299 * e.rgb.r + 587 * e.rgb.g + 114 * e.rgb.b) / 1e3 >= - 128 - ? '#000' - : '#fff'; - }), - (e.red = { - hsl: { a: 1, h: 0, l: 0.5, s: 1 }, - hex: '#ff0000', - rgb: { r: 255, g: 0, b: 0, a: 1 }, - hsv: { h: 0, s: 1, v: 1, a: 1 } - }), - (e.default = e); - }, - function(t, e, n) { - t.exports = n(225); - }, - function(t, e, n) { - var r = n(76), - i = n(75), - o = n(60), - a = n(3); - t.exports = function(t, e) { - return (a(t) ? r : i)(t, o(e)); - }; - }, - function(t, e, n) { - var r; - !(function(i) { - var o = /^\s+/, - a = /\s+$/, - s = 0, - u = i.round, - l = i.min, - c = i.max, - f = i.random; - function d(t, e) { - if (((e = e || {}), (t = t || '') instanceof d)) return t; - if (!(this instanceof d)) return new d(t, e); - var n = (function(t) { - var e, - n, - r, - s = { r: 0, g: 0, b: 0 }, - u = 1, - f = null, - d = null, - h = null, - p = !1, - g = !1; - return ( - 'string' == typeof t && - (t = (function(t) { - t = t - .replace(o, '') - .replace(a, '') - .toLowerCase(); - var e, - n = !1; - if (P[t]) (t = P[t]), (n = !0); - else if ('transparent' == t) - return { r: 0, g: 0, b: 0, a: 0, format: 'name' }; - return (e = H.rgb.exec(t)) - ? { r: e[1], g: e[2], b: e[3] } - : (e = H.rgba.exec(t)) - ? { r: e[1], g: e[2], b: e[3], a: e[4] } - : (e = H.hsl.exec(t)) - ? { h: e[1], s: e[2], l: e[3] } - : (e = H.hsla.exec(t)) - ? { h: e[1], s: e[2], l: e[3], a: e[4] } - : (e = H.hsv.exec(t)) - ? { h: e[1], s: e[2], v: e[3] } - : (e = H.hsva.exec(t)) - ? { h: e[1], s: e[2], v: e[3], a: e[4] } - : (e = H.hex8.exec(t)) - ? { - r: R(e[1]), - g: R(e[2]), - b: R(e[3]), - a: F(e[4]), - format: n ? 'name' : 'hex8' - } - : (e = H.hex6.exec(t)) - ? { - r: R(e[1]), - g: R(e[2]), - b: R(e[3]), - format: n ? 'name' : 'hex' - } - : (e = H.hex4.exec(t)) - ? { - r: R(e[1] + '' + e[1]), - g: R(e[2] + '' + e[2]), - b: R(e[3] + '' + e[3]), - a: F(e[4] + '' + e[4]), - format: n ? 'name' : 'hex8' - } - : !!(e = H.hex3.exec(t)) && { - r: R(e[1] + '' + e[1]), - g: R(e[2] + '' + e[2]), - b: R(e[3] + '' + e[3]), - format: n ? 'name' : 'hex' - }; - })(t)), - 'object' == typeof t && - (U(t.r) && U(t.g) && U(t.b) - ? ((e = t.r), - (n = t.g), - (r = t.b), - (s = { - r: 255 * D(e, 255), - g: 255 * D(n, 255), - b: 255 * D(r, 255) - }), - (p = !0), - (g = - '%' === String(t.r).substr(-1) ? 'prgb' : 'rgb')) - : U(t.h) && U(t.s) && U(t.v) - ? ((f = z(t.s)), - (d = z(t.v)), - (s = (function(t, e, n) { - (t = 6 * D(t, 360)), - (e = D(e, 100)), - (n = D(n, 100)); - var r = i.floor(t), - o = t - r, - a = n * (1 - e), - s = n * (1 - o * e), - u = n * (1 - (1 - o) * e), - l = r % 6; - return { - r: 255 * [n, s, a, a, u, n][l], - g: 255 * [u, n, n, s, a, a][l], - b: 255 * [a, a, u, n, n, s][l] - }; - })(t.h, f, d)), - (p = !0), - (g = 'hsv')) - : U(t.h) && - U(t.s) && - U(t.l) && - ((f = z(t.s)), - (h = z(t.l)), - (s = (function(t, e, n) { - var r, i, o; - function a(t, e, n) { - return ( - n < 0 && (n += 1), - n > 1 && (n -= 1), - n < 1 / 6 - ? t + 6 * (e - t) * n - : n < 0.5 - ? e - : n < 2 / 3 - ? t + (e - t) * (2 / 3 - n) * 6 - : t - ); - } - if ( - ((t = D(t, 360)), - (e = D(e, 100)), - (n = D(n, 100)), - 0 === e) - ) - r = i = o = n; - else { - var s = n < 0.5 ? n * (1 + e) : n + e - n * e, - u = 2 * n - s; - (r = a(u, s, t + 1 / 3)), - (i = a(u, s, t)), - (o = a(u, s, t - 1 / 3)); - } - return { r: 255 * r, g: 255 * i, b: 255 * o }; - })(t.h, f, h)), - (p = !0), - (g = 'hsl')), - t.hasOwnProperty('a') && (u = t.a)), - (u = L(u)), - { - ok: p, - format: t.format || g, - r: l(255, c(s.r, 0)), - g: l(255, c(s.g, 0)), - b: l(255, c(s.b, 0)), - a: u - } - ); - })(t); - (this._originalInput = t), - (this._r = n.r), - (this._g = n.g), - (this._b = n.b), - (this._a = n.a), - (this._roundA = u(100 * this._a) / 100), - (this._format = e.format || n.format), - (this._gradientType = e.gradientType), - this._r < 1 && (this._r = u(this._r)), - this._g < 1 && (this._g = u(this._g)), - this._b < 1 && (this._b = u(this._b)), - (this._ok = n.ok), - (this._tc_id = s++); - } - function h(t, e, n) { - (t = D(t, 255)), (e = D(e, 255)), (n = D(n, 255)); - var r, - i, - o = c(t, e, n), - a = l(t, e, n), - s = (o + a) / 2; - if (o == a) r = i = 0; - else { - var u = o - a; - switch ( - ((i = s > 0.5 ? u / (2 - o - a) : u / (o + a)), o) - ) { - case t: - r = (e - n) / u + (e < n ? 6 : 0); - break; - case e: - r = (n - t) / u + 2; - break; - case n: - r = (t - e) / u + 4; - } - r /= 6; - } - return { h: r, s: i, l: s }; - } - function p(t, e, n) { - (t = D(t, 255)), (e = D(e, 255)), (n = D(n, 255)); - var r, - i, - o = c(t, e, n), - a = l(t, e, n), - s = o, - u = o - a; - if (((i = 0 === o ? 0 : u / o), o == a)) r = 0; - else { - switch (o) { - case t: - r = (e - n) / u + (e < n ? 6 : 0); - break; - case e: - r = (n - t) / u + 2; - break; - case n: - r = (t - e) / u + 4; - } - r /= 6; - } - return { h: r, s: i, v: s }; - } - function g(t, e, n, r) { - var i = [ - N(u(t).toString(16)), - N(u(e).toString(16)), - N(u(n).toString(16)) - ]; - return r && - i[0].charAt(0) == i[0].charAt(1) && - i[1].charAt(0) == i[1].charAt(1) && - i[2].charAt(0) == i[2].charAt(1) - ? i[0].charAt(0) + i[1].charAt(0) + i[2].charAt(0) - : i.join(''); - } - function v(t, e, n, r) { - return [ - N(I(r)), - N(u(t).toString(16)), - N(u(e).toString(16)), - N(u(n).toString(16)) - ].join(''); - } - function m(t, e) { - e = 0 === e ? 0 : e || 10; - var n = d(t).toHsl(); - return (n.s -= e / 100), (n.s = j(n.s)), d(n); - } - function y(t, e) { - e = 0 === e ? 0 : e || 10; - var n = d(t).toHsl(); - return (n.s += e / 100), (n.s = j(n.s)), d(n); - } - function b(t) { - return d(t).desaturate(100); - } - function _(t, e) { - e = 0 === e ? 0 : e || 10; - var n = d(t).toHsl(); - return (n.l += e / 100), (n.l = j(n.l)), d(n); - } - function x(t, e) { - e = 0 === e ? 0 : e || 10; - var n = d(t).toRgb(); - return ( - (n.r = c(0, l(255, n.r - u((-e / 100) * 255)))), - (n.g = c(0, l(255, n.g - u((-e / 100) * 255)))), - (n.b = c(0, l(255, n.b - u((-e / 100) * 255)))), - d(n) - ); - } - function w(t, e) { - e = 0 === e ? 0 : e || 10; - var n = d(t).toHsl(); - return (n.l -= e / 100), (n.l = j(n.l)), d(n); - } - function S(t, e) { - var n = d(t).toHsl(), - r = (n.h + e) % 360; - return (n.h = r < 0 ? 360 + r : r), d(n); - } - function E(t) { - var e = d(t).toHsl(); - return (e.h = (e.h + 180) % 360), d(e); - } - function k(t) { - var e = d(t).toHsl(), - n = e.h; - return [ - d(t), - d({ h: (n + 120) % 360, s: e.s, l: e.l }), - d({ h: (n + 240) % 360, s: e.s, l: e.l }) - ]; - } - function A(t) { - var e = d(t).toHsl(), - n = e.h; - return [ - d(t), - d({ h: (n + 90) % 360, s: e.s, l: e.l }), - d({ h: (n + 180) % 360, s: e.s, l: e.l }), - d({ h: (n + 270) % 360, s: e.s, l: e.l }) - ]; - } - function T(t) { - var e = d(t).toHsl(), - n = e.h; - return [ - d(t), - d({ h: (n + 72) % 360, s: e.s, l: e.l }), - d({ h: (n + 216) % 360, s: e.s, l: e.l }) - ]; - } - function C(t, e, n) { - (e = e || 6), (n = n || 30); - var r = d(t).toHsl(), - i = 360 / n, - o = [d(t)]; - for (r.h = (r.h - ((i * e) >> 1) + 720) % 360; --e; ) - (r.h = (r.h + i) % 360), o.push(d(r)); - return o; - } - function O(t, e) { - e = e || 6; - for ( - var n = d(t).toHsv(), - r = n.h, - i = n.s, - o = n.v, - a = [], - s = 1 / e; - e--; - - ) - a.push(d({ h: r, s: i, v: o })), (o = (o + s) % 1); - return a; - } - (d.prototype = { - isDark: function() { - return this.getBrightness() < 128; - }, - isLight: function() { - return !this.isDark(); - }, - isValid: function() { - return this._ok; - }, - getOriginalInput: function() { - return this._originalInput; - }, - getFormat: function() { - return this._format; - }, - getAlpha: function() { - return this._a; - }, - getBrightness: function() { - var t = this.toRgb(); - return (299 * t.r + 587 * t.g + 114 * t.b) / 1e3; - }, - getLuminance: function() { - var t, - e, - n, - r = this.toRgb(); - return ( - (t = r.r / 255), - (e = r.g / 255), - (n = r.b / 255), - 0.2126 * - (t <= 0.03928 - ? t / 12.92 - : i.pow((t + 0.055) / 1.055, 2.4)) + - 0.7152 * - (e <= 0.03928 - ? e / 12.92 - : i.pow((e + 0.055) / 1.055, 2.4)) + - 0.0722 * - (n <= 0.03928 - ? n / 12.92 - : i.pow((n + 0.055) / 1.055, 2.4)) - ); - }, - setAlpha: function(t) { - return ( - (this._a = L(t)), - (this._roundA = u(100 * this._a) / 100), - this - ); - }, - toHsv: function() { - var t = p(this._r, this._g, this._b); - return { h: 360 * t.h, s: t.s, v: t.v, a: this._a }; - }, - toHsvString: function() { - var t = p(this._r, this._g, this._b), - e = u(360 * t.h), - n = u(100 * t.s), - r = u(100 * t.v); - return 1 == this._a - ? 'hsv(' + e + ', ' + n + '%, ' + r + '%)' - : 'hsva(' + - e + - ', ' + - n + - '%, ' + - r + - '%, ' + - this._roundA + - ')'; - }, - toHsl: function() { - var t = h(this._r, this._g, this._b); - return { h: 360 * t.h, s: t.s, l: t.l, a: this._a }; - }, - toHslString: function() { - var t = h(this._r, this._g, this._b), - e = u(360 * t.h), - n = u(100 * t.s), - r = u(100 * t.l); - return 1 == this._a - ? 'hsl(' + e + ', ' + n + '%, ' + r + '%)' - : 'hsla(' + - e + - ', ' + - n + - '%, ' + - r + - '%, ' + - this._roundA + - ')'; - }, - toHex: function(t) { - return g(this._r, this._g, this._b, t); - }, - toHexString: function(t) { - return '#' + this.toHex(t); - }, - toHex8: function(t) { - return (function(t, e, n, r, i) { - var o = [ - N(u(t).toString(16)), - N(u(e).toString(16)), - N(u(n).toString(16)), - N(I(r)) - ]; - return i && - o[0].charAt(0) == o[0].charAt(1) && - o[1].charAt(0) == o[1].charAt(1) && - o[2].charAt(0) == o[2].charAt(1) && - o[3].charAt(0) == o[3].charAt(1) - ? o[0].charAt(0) + - o[1].charAt(0) + - o[2].charAt(0) + - o[3].charAt(0) - : o.join(''); - })(this._r, this._g, this._b, this._a, t); - }, - toHex8String: function(t) { - return '#' + this.toHex8(t); - }, - toRgb: function() { - return { - r: u(this._r), - g: u(this._g), - b: u(this._b), - a: this._a - }; - }, - toRgbString: function() { - return 1 == this._a - ? 'rgb(' + - u(this._r) + - ', ' + - u(this._g) + - ', ' + - u(this._b) + - ')' - : 'rgba(' + - u(this._r) + - ', ' + - u(this._g) + - ', ' + - u(this._b) + - ', ' + - this._roundA + - ')'; - }, - toPercentageRgb: function() { - return { - r: u(100 * D(this._r, 255)) + '%', - g: u(100 * D(this._g, 255)) + '%', - b: u(100 * D(this._b, 255)) + '%', - a: this._a - }; - }, - toPercentageRgbString: function() { - return 1 == this._a - ? 'rgb(' + - u(100 * D(this._r, 255)) + - '%, ' + - u(100 * D(this._g, 255)) + - '%, ' + - u(100 * D(this._b, 255)) + - '%)' - : 'rgba(' + - u(100 * D(this._r, 255)) + - '%, ' + - u(100 * D(this._g, 255)) + - '%, ' + - u(100 * D(this._b, 255)) + - '%, ' + - this._roundA + - ')'; - }, - toName: function() { - return 0 === this._a - ? 'transparent' - : !(this._a < 1) && - (M[g(this._r, this._g, this._b, !0)] || !1); - }, - toFilter: function(t) { - var e = '#' + v(this._r, this._g, this._b, this._a), - n = e, - r = this._gradientType ? 'GradientType = 1, ' : ''; - if (t) { - var i = d(t); - n = '#' + v(i._r, i._g, i._b, i._a); - } - return ( - 'progid:DXImageTransform.Microsoft.gradient(' + - r + - 'startColorstr=' + - e + - ',endColorstr=' + - n + - ')' - ); - }, - toString: function(t) { - var e = !!t; - t = t || this._format; - var n = !1, - r = this._a < 1 && this._a >= 0; - return e || - !r || - ('hex' !== t && - 'hex6' !== t && - 'hex3' !== t && - 'hex4' !== t && - 'hex8' !== t && - 'name' !== t) - ? ('rgb' === t && (n = this.toRgbString()), - 'prgb' === t && (n = this.toPercentageRgbString()), - ('hex' !== t && 'hex6' !== t) || - (n = this.toHexString()), - 'hex3' === t && (n = this.toHexString(!0)), - 'hex4' === t && (n = this.toHex8String(!0)), - 'hex8' === t && (n = this.toHex8String()), - 'name' === t && (n = this.toName()), - 'hsl' === t && (n = this.toHslString()), - 'hsv' === t && (n = this.toHsvString()), - n || this.toHexString()) - : 'name' === t && 0 === this._a - ? this.toName() - : this.toRgbString(); - }, - clone: function() { - return d(this.toString()); - }, - _applyModification: function(t, e) { - var n = t.apply(null, [this].concat([].slice.call(e))); - return ( - (this._r = n._r), - (this._g = n._g), - (this._b = n._b), - this.setAlpha(n._a), - this - ); - }, - lighten: function() { - return this._applyModification(_, arguments); - }, - brighten: function() { - return this._applyModification(x, arguments); - }, - darken: function() { - return this._applyModification(w, arguments); - }, - desaturate: function() { - return this._applyModification(m, arguments); - }, - saturate: function() { - return this._applyModification(y, arguments); - }, - greyscale: function() { - return this._applyModification(b, arguments); - }, - spin: function() { - return this._applyModification(S, arguments); - }, - _applyCombination: function(t, e) { - return t.apply(null, [this].concat([].slice.call(e))); - }, - analogous: function() { - return this._applyCombination(C, arguments); - }, - complement: function() { - return this._applyCombination(E, arguments); - }, - monochromatic: function() { - return this._applyCombination(O, arguments); - }, - splitcomplement: function() { - return this._applyCombination(T, arguments); - }, - triad: function() { - return this._applyCombination(k, arguments); - }, - tetrad: function() { - return this._applyCombination(A, arguments); - } - }), - (d.fromRatio = function(t, e) { - if ('object' == typeof t) { - var n = {}; - for (var r in t) - t.hasOwnProperty(r) && - (n[r] = 'a' === r ? t[r] : z(t[r])); - t = n; - } - return d(t, e); - }), - (d.equals = function(t, e) { - return ( - !(!t || !e) && d(t).toRgbString() == d(e).toRgbString() - ); - }), - (d.random = function() { - return d.fromRatio({ r: f(), g: f(), b: f() }); - }), - (d.mix = function(t, e, n) { - n = 0 === n ? 0 : n || 50; - var r = d(t).toRgb(), - i = d(e).toRgb(), - o = n / 100; - return d({ - r: (i.r - r.r) * o + r.r, - g: (i.g - r.g) * o + r.g, - b: (i.b - r.b) * o + r.b, - a: (i.a - r.a) * o + r.a - }); - }), - (d.readability = function(t, e) { - var n = d(t), - r = d(e); - return ( - (i.max(n.getLuminance(), r.getLuminance()) + 0.05) / - (i.min(n.getLuminance(), r.getLuminance()) + 0.05) - ); - }), - (d.isReadable = function(t, e, n) { - var r, - i, - o = d.readability(t, e); - switch ( - ((i = !1), - (r = (function(t) { - var e, n; - return ( - 'AA' !== - (e = ( - (t = t || { level: 'AA', size: 'small' }).level || - 'AA' - ).toUpperCase()) && - 'AAA' !== e && - (e = 'AA'), - 'small' !== (n = (t.size || 'small').toLowerCase()) && - 'large' !== n && - (n = 'small'), - { level: e, size: n } - ); - })(n)).level + r.size) - ) { - case 'AAsmall': - case 'AAAlarge': - i = o >= 4.5; - break; - case 'AAlarge': - i = o >= 3; - break; - case 'AAAsmall': - i = o >= 7; - } - return i; - }), - (d.mostReadable = function(t, e, n) { - var r, - i, - o, - a, - s = null, - u = 0; - (i = (n = n || {}).includeFallbackColors), - (o = n.level), - (a = n.size); - for (var l = 0; l < e.length; l++) - (r = d.readability(t, e[l])) > u && - ((u = r), (s = d(e[l]))); - return d.isReadable(t, s, { level: o, size: a }) || !i - ? s - : ((n.includeFallbackColors = !1), - d.mostReadable(t, ['#fff', '#000'], n)); - }); - var P = (d.names = { - aliceblue: 'f0f8ff', - antiquewhite: 'faebd7', - aqua: '0ff', - aquamarine: '7fffd4', - azure: 'f0ffff', - beige: 'f5f5dc', - bisque: 'ffe4c4', - black: '000', - blanchedalmond: 'ffebcd', - blue: '00f', - blueviolet: '8a2be2', - brown: 'a52a2a', - burlywood: 'deb887', - burntsienna: 'ea7e5d', - cadetblue: '5f9ea0', - chartreuse: '7fff00', - chocolate: 'd2691e', - coral: 'ff7f50', - cornflowerblue: '6495ed', - cornsilk: 'fff8dc', - crimson: 'dc143c', - cyan: '0ff', - darkblue: '00008b', - darkcyan: '008b8b', - darkgoldenrod: 'b8860b', - darkgray: 'a9a9a9', - darkgreen: '006400', - darkgrey: 'a9a9a9', - darkkhaki: 'bdb76b', - darkmagenta: '8b008b', - darkolivegreen: '556b2f', - darkorange: 'ff8c00', - darkorchid: '9932cc', - darkred: '8b0000', - darksalmon: 'e9967a', - darkseagreen: '8fbc8f', - darkslateblue: '483d8b', - darkslategray: '2f4f4f', - darkslategrey: '2f4f4f', - darkturquoise: '00ced1', - darkviolet: '9400d3', - deeppink: 'ff1493', - deepskyblue: '00bfff', - dimgray: '696969', - dimgrey: '696969', - dodgerblue: '1e90ff', - firebrick: 'b22222', - floralwhite: 'fffaf0', - forestgreen: '228b22', - fuchsia: 'f0f', - gainsboro: 'dcdcdc', - ghostwhite: 'f8f8ff', - gold: 'ffd700', - goldenrod: 'daa520', - gray: '808080', - green: '008000', - greenyellow: 'adff2f', - grey: '808080', - honeydew: 'f0fff0', - hotpink: 'ff69b4', - indianred: 'cd5c5c', - indigo: '4b0082', - ivory: 'fffff0', - khaki: 'f0e68c', - lavender: 'e6e6fa', - lavenderblush: 'fff0f5', - lawngreen: '7cfc00', - lemonchiffon: 'fffacd', - lightblue: 'add8e6', - lightcoral: 'f08080', - lightcyan: 'e0ffff', - lightgoldenrodyellow: 'fafad2', - lightgray: 'd3d3d3', - lightgreen: '90ee90', - lightgrey: 'd3d3d3', - lightpink: 'ffb6c1', - lightsalmon: 'ffa07a', - lightseagreen: '20b2aa', - lightskyblue: '87cefa', - lightslategray: '789', - lightslategrey: '789', - lightsteelblue: 'b0c4de', - lightyellow: 'ffffe0', - lime: '0f0', - limegreen: '32cd32', - linen: 'faf0e6', - magenta: 'f0f', - maroon: '800000', - mediumaquamarine: '66cdaa', - mediumblue: '0000cd', - mediumorchid: 'ba55d3', - mediumpurple: '9370db', - mediumseagreen: '3cb371', - mediumslateblue: '7b68ee', - mediumspringgreen: '00fa9a', - mediumturquoise: '48d1cc', - mediumvioletred: 'c71585', - midnightblue: '191970', - mintcream: 'f5fffa', - mistyrose: 'ffe4e1', - moccasin: 'ffe4b5', - navajowhite: 'ffdead', - navy: '000080', - oldlace: 'fdf5e6', - olive: '808000', - olivedrab: '6b8e23', - orange: 'ffa500', - orangered: 'ff4500', - orchid: 'da70d6', - palegoldenrod: 'eee8aa', - palegreen: '98fb98', - paleturquoise: 'afeeee', - palevioletred: 'db7093', - papayawhip: 'ffefd5', - peachpuff: 'ffdab9', - peru: 'cd853f', - pink: 'ffc0cb', - plum: 'dda0dd', - powderblue: 'b0e0e6', - purple: '800080', - rebeccapurple: '663399', - red: 'f00', - rosybrown: 'bc8f8f', - royalblue: '4169e1', - saddlebrown: '8b4513', - salmon: 'fa8072', - sandybrown: 'f4a460', - seagreen: '2e8b57', - seashell: 'fff5ee', - sienna: 'a0522d', - silver: 'c0c0c0', - skyblue: '87ceeb', - slateblue: '6a5acd', - slategray: '708090', - slategrey: '708090', - snow: 'fffafa', - springgreen: '00ff7f', - steelblue: '4682b4', - tan: 'd2b48c', - teal: '008080', - thistle: 'd8bfd8', - tomato: 'ff6347', - turquoise: '40e0d0', - violet: 'ee82ee', - wheat: 'f5deb3', - white: 'fff', - whitesmoke: 'f5f5f5', - yellow: 'ff0', - yellowgreen: '9acd32' - }), - M = (d.hexNames = (function(t) { - var e = {}; - for (var n in t) t.hasOwnProperty(n) && (e[t[n]] = n); - return e; - })(P)); - function L(t) { - return ( - (t = parseFloat(t)), - (isNaN(t) || t < 0 || t > 1) && (t = 1), - t - ); - } - function D(t, e) { - (function(t) { - return ( - 'string' == typeof t && - -1 != t.indexOf('.') && - 1 === parseFloat(t) - ); - })(t) && (t = '100%'); - var n = (function(t) { - return 'string' == typeof t && -1 != t.indexOf('%'); - })(t); - return ( - (t = l(e, c(0, parseFloat(t)))), - n && (t = parseInt(t * e, 10) / 100), - i.abs(t - e) < 1e-6 ? 1 : (t % e) / parseFloat(e) - ); - } - function j(t) { - return l(1, c(0, t)); - } - function R(t) { - return parseInt(t, 16); - } - function N(t) { - return 1 == t.length ? '0' + t : '' + t; - } - function z(t) { - return t <= 1 && (t = 100 * t + '%'), t; - } - function I(t) { - return i.round(255 * parseFloat(t)).toString(16); - } - function F(t) { - return R(t) / 255; - } - var V, - B, - G, - H = - ((B = - '[\\s|\\(]+(' + - (V = '(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)') + - ')[,|\\s]+(' + - V + - ')[,|\\s]+(' + - V + - ')\\s*\\)?'), - (G = - '[\\s|\\(]+(' + - V + - ')[,|\\s]+(' + - V + - ')[,|\\s]+(' + - V + - ')[,|\\s]+(' + - V + - ')\\s*\\)?'), - { - CSS_UNIT: new RegExp(V), - rgb: new RegExp('rgb' + B), - rgba: new RegExp('rgba' + G), - hsl: new RegExp('hsl' + B), - hsla: new RegExp('hsla' + G), - hsv: new RegExp('hsv' + B), - hsva: new RegExp('hsva' + G), - hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, - hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, - hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, - hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ - }); - function U(t) { - return !!H.CSS_UNIT.exec(t); - } - t.exports - ? (t.exports = d) - : void 0 === - (r = function() { - return d; - }.call(e, n, e, t)) || (t.exports = r); - })(Math); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Swatch = void 0); - var r = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }, - i = u(n(0)), - o = u(n(9)), - a = n(228), - s = u(n(53)); - function u(t) { - return t && t.__esModule ? t : { default: t }; - } - var l = (e.Swatch = function(t) { - var e = t.color, - n = t.style, - a = t.onClick, - u = void 0 === a ? function() {} : a, - l = t.onHover, - c = t.title, - f = void 0 === c ? e : c, - d = t.children, - h = t.focus, - p = t.focusStyle, - g = void 0 === p ? {} : p, - v = 'transparent' === e, - m = (0, o.default)({ - default: { - swatch: r( - { - background: e, - height: '100%', - width: '100%', - cursor: 'pointer', - position: 'relative', - outline: 'none' - }, - n, - h ? g : {} - ) - } - }), - y = {}; - return ( - l && - (y.onMouseOver = function(t) { - return l(e, t); - }), - i.default.createElement( - 'div', - r( - { - style: m.swatch, - onClick: function(t) { - return u(e, t); - }, - title: f, - tabIndex: 0, - onKeyDown: function(t) { - return 13 === t.keyCode && u(e, t); - } - }, - y - ), - d, - v && - i.default.createElement(s.default, { - borderRadius: m.swatch.borderRadius, - boxShadow: 'inset 0 0 0 1px rgba(0,0,0,0.1)' - }) - ) - ); - }); - e.default = (0, a.handleFocus)(l); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.handleFocus = void 0); - var r, - i = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }, - o = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - a = (r = n(0)) && r.__esModule ? r : { default: r }; - function s(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - } - function u(t, e) { - if (!t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !e || ('object' != typeof e && 'function' != typeof e) - ? t - : e; - } - function l(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof e - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { - value: t, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - e && - (Object.setPrototypeOf - ? Object.setPrototypeOf(t, e) - : (t.__proto__ = e)); - } - e.handleFocus = function(t) { - var e = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : 'span'; - return (function(n) { - function r() { - var t, e, n; - s(this, r); - for ( - var i = arguments.length, o = Array(i), a = 0; - a < i; - a++ - ) - o[a] = arguments[a]; - return ( - (e = n = u( - this, - (t = - r.__proto__ || Object.getPrototypeOf(r)).call.apply( - t, - [this].concat(o) - ) - )), - (n.state = { focus: !1 }), - (n.handleFocus = function() { - return n.setState({ focus: !0 }); - }), - (n.handleBlur = function() { - return n.setState({ focus: !1 }); - }), - u(n, e) - ); - } - return ( - l(r, n), - o(r, [ - { - key: 'render', - value: function() { - return a.default.createElement( - e, - { - onFocus: this.handleFocus, - onBlur: this.handleBlur - }, - a.default.createElement( - t, - i({}, this.props, this.state) - ) - ); - } - } - ]), - r - ); - })(a.default.Component); - }; - }, - function(t, e, n) { - var r = n(230); - 'string' == typeof r && (r = [[t.i, r, '']]), - n(33)(r, { hmr: !0, transform: void 0, insertInto: void 0 }), - r.locals && (t.exports = r.locals); - }, - function(t, e, n) { - (t.exports = n(32)(!1)).push([ - t.i, - '/**\n * GitHub Gist Theme\n * Author : Louis Barranqueiro - https://github.com/LouisBarranqueiro\n */\n\n.hljs {\n display: block;\n background: white;\n padding: 0.5em;\n color: #333333;\n overflow-x: auto;\n}\n\n.hljs-comment,\n.hljs-meta {\n color: #969896;\n}\n\n.hljs-string,\n.hljs-variable,\n.hljs-template-variable,\n.hljs-strong,\n.hljs-emphasis,\n.hljs-quote {\n color: #df5000;\n}\n\n.hljs-keyword,\n.hljs-selector-tag,\n.hljs-type {\n color: #a71d5d;\n}\n\n.hljs-literal,\n.hljs-symbol,\n.hljs-bullet,\n.hljs-attribute {\n color: #0086b3;\n}\n\n.hljs-section,\n.hljs-name {\n color: #63a35c;\n}\n\n.hljs-tag {\n color: #333333;\n}\n\n.hljs-title,\n.hljs-attr,\n.hljs-selector-id,\n.hljs-selector-class,\n.hljs-selector-attr,\n.hljs-selector-pseudo {\n color: #795da3;\n}\n\n.hljs-addition {\n color: #55a532;\n background-color: #eaffea;\n}\n\n.hljs-deletion {\n color: #bd2c00;\n background-color: #ffecec;\n}\n\n.hljs-link {\n text-decoration: underline;\n}\n', - '' - ]); - }, - function(t, e) { - t.exports = function(t) { - var e = 'undefined' != typeof window && window.location; - if (!e) throw new Error('fixUrls requires window.location'); - if (!t || 'string' != typeof t) return t; - var n = e.protocol + '//' + e.host, - r = n + e.pathname.replace(/\/[^\/]*$/, '/'); - return t.replace( - /url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, - function(t, e) { - var i, - o = e - .trim() - .replace(/^"(.*)"$/, function(t, e) { - return e; - }) - .replace(/^'(.*)'$/, function(t, e) { - return e; - }); - return /^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test( - o - ) - ? t - : ((i = - 0 === o.indexOf('//') - ? o - : 0 === o.indexOf('/') - ? n + o - : r + o.replace(/^\.\//, '')), - 'url('https://github.com/+%20JSON.stringify(i) + ')'); - } - ); - }; - }, - function(t, e, n) { - var r = n(233); - 'string' == typeof r && (r = [[t.i, r, '']]), - n(33)(r, { hmr: !0, transform: void 0, insertInto: void 0 }), - r.locals && (t.exports = r.locals); - }, - function(t, e, n) { - (t.exports = n(32)(!1)).push([ - t.i, - '.react-tabs {\n -webkit-tap-highlight-color: transparent;\n}\n\n.react-tabs__tab-list {\n border-bottom: 1px solid #aaa;\n margin: 0 0 10px;\n padding: 0;\n}\n\n.react-tabs__tab {\n display: inline-block;\n border: 1px solid transparent;\n border-bottom: none;\n bottom: -1px;\n position: relative;\n list-style: none;\n padding: 6px 12px;\n cursor: pointer;\n}\n\n.react-tabs__tab--selected {\n background: #fff;\n border-color: #aaa;\n color: black;\n border-radius: 5px 5px 0 0;\n}\n\n.react-tabs__tab--disabled {\n color: GrayText;\n cursor: default;\n}\n\n.react-tabs__tab:focus {\n -webkit-box-shadow: 0 0 5px hsl(208, 99%, 50%);\n box-shadow: 0 0 5px hsl(208, 99%, 50%);\n border-color: hsl(208, 99%, 50%);\n outline: none;\n}\n\n.react-tabs__tab:focus:after {\n content: "";\n position: absolute;\n height: 5px;\n left: -4px;\n right: -4px;\n bottom: -5px;\n background: #fff;\n}\n\n.react-tabs__tab-panel {\n display: none;\n}\n\n.react-tabs__tab-panel--selected {\n display: block;\n}\n', - '' - ]); - }, - function(t, e, n) { - var r = n(235); - 'string' == typeof r && (r = [[t.i, r, '']]), - n(33)(r, { hmr: !0, transform: void 0, insertInto: void 0 }), - r.locals && (t.exports = r.locals); - }, - function(t, e, n) { - (t.exports = n(32)(!1)).push([ - t.i, - "/*-- Chart --*/\n.c3 svg {\n font: 10px sans-serif;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n\n.c3 path, .c3 line {\n fill: none;\n stroke: #000;\n}\n\n.c3 text {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.c3-legend-item-tile,\n.c3-xgrid-focus,\n.c3-ygrid,\n.c3-event-rect,\n.c3-bars path {\n shape-rendering: crispEdges;\n}\n\n.c3-chart-arc path {\n stroke: #fff;\n}\n\n.c3-chart-arc rect {\n stroke: white;\n stroke-width: 1;\n}\n\n.c3-chart-arc text {\n fill: #fff;\n font-size: 13px;\n}\n\n/*-- Axis --*/\n/*-- Grid --*/\n.c3-grid line {\n stroke: #aaa;\n}\n\n.c3-grid text {\n fill: #aaa;\n}\n\n.c3-xgrid, .c3-ygrid {\n stroke-dasharray: 3 3;\n}\n\n/*-- Text on Chart --*/\n.c3-text.c3-empty {\n fill: #808080;\n font-size: 2em;\n}\n\n/*-- Line --*/\n.c3-line {\n stroke-width: 1px;\n}\n\n/*-- Point --*/\n.c3-circle._expanded_ {\n stroke-width: 1px;\n stroke: white;\n}\n\n.c3-selected-circle {\n fill: white;\n stroke-width: 2px;\n}\n\n/*-- Bar --*/\n.c3-bar {\n stroke-width: 0;\n}\n\n.c3-bar._expanded_ {\n fill-opacity: 1;\n fill-opacity: 0.75;\n}\n\n/*-- Focus --*/\n.c3-target.c3-focused {\n opacity: 1;\n}\n\n.c3-target.c3-focused path.c3-line, .c3-target.c3-focused path.c3-step {\n stroke-width: 2px;\n}\n\n.c3-target.c3-defocused {\n opacity: 0.3 !important;\n}\n\n/*-- Region --*/\n.c3-region {\n fill: steelblue;\n fill-opacity: 0.1;\n}\n\n/*-- Brush --*/\n.c3-brush .extent {\n fill-opacity: 0.1;\n}\n\n/*-- Select - Drag --*/\n/*-- Legend --*/\n.c3-legend-item {\n font-size: 12px;\n}\n\n.c3-legend-item-hidden {\n opacity: 0.15;\n}\n\n.c3-legend-background {\n opacity: 0.75;\n fill: white;\n stroke: lightgray;\n stroke-width: 1;\n}\n\n/*-- Title --*/\n.c3-title {\n font: 14px sans-serif;\n}\n\n/*-- Tooltip --*/\n.c3-tooltip-container {\n z-index: 10;\n}\n\n.c3-tooltip {\n border-collapse: collapse;\n border-spacing: 0;\n background-color: #fff;\n empty-cells: show;\n -webkit-box-shadow: 7px 7px 12px -9px #777777;\n box-shadow: 7px 7px 12px -9px #777777;\n opacity: 0.9;\n}\n\n.c3-tooltip tr {\n border: 1px solid #CCC;\n}\n\n.c3-tooltip th {\n background-color: #aaa;\n font-size: 14px;\n padding: 2px 5px;\n text-align: left;\n color: #FFF;\n}\n\n.c3-tooltip td {\n font-size: 13px;\n padding: 3px 6px;\n background-color: #fff;\n border-left: 1px dotted #999;\n}\n\n.c3-tooltip td > span {\n display: inline-block;\n width: 10px;\n height: 10px;\n margin-right: 6px;\n}\n\n.c3-tooltip .value {\n text-align: right;\n}\n\n/*-- Area --*/\n.c3-area {\n stroke-width: 0;\n opacity: 0.2;\n}\n\n/*-- Arc --*/\n.c3-chart-arcs-title {\n dominant-baseline: middle;\n font-size: 1.3em;\n}\n\n.c3-chart-arcs .c3-chart-arcs-background {\n fill: #e0e0e0;\n stroke: #FFF;\n}\n\n.c3-chart-arcs .c3-chart-arcs-gauge-unit {\n fill: #000;\n font-size: 16px;\n}\n\n.c3-chart-arcs .c3-chart-arcs-gauge-max {\n fill: #777;\n}\n\n.c3-chart-arcs .c3-chart-arcs-gauge-min {\n fill: #777;\n}\n\n.c3-chart-arc .c3-gauge-value {\n fill: #000;\n /* font-size: 28px !important;*/\n}\n\n.c3-chart-arc.c3-target g path {\n opacity: 1;\n}\n\n.c3-chart-arc.c3-target.c3-focused g path {\n opacity: 1;\n}\n\n/*-- Zoom --*/\n.c3-drag-zoom.enabled {\n pointer-events: all !important;\n visibility: visible;\n}\n\n.c3-drag-zoom.disabled {\n pointer-events: none !important;\n visibility: hidden;\n}\n\n.c3-drag-zoom .extent {\n fill-opacity: 0.1;\n}\n/*\r\n Rangeable\r\n Copyright (c) 2018 Karl Saunders\r\n Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)\r\n and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.\r\n\r\n Version: 0.1.6\r\n\r\n*/\n.rangeable-container.combined-tooltip.dragging .rangeable-progress>.rangeable-tooltip,.rangeable-container.combined-tooltip.rangeable-tooltips--visible .rangeable-progress>.rangeable-tooltip,.rangeable-container.dragging.rangeable-tooltips .rangeable-handle .rangeable-tooltip,.rangeable-container.rangeable-tooltips--visible.rangeable-tooltips .rangeable-handle .rangeable-tooltip,.rangeable-container.rangeable-vertical.combined-tooltip .rangeable-progress>.rangeable-tooltip::before{display:block}\n.rangeable-container{cursor:pointer;width:100%}\n.rangeable-container.rangeable-disabled{opacity:.6;cursor:not-allowed}\n.rangeable-container.rangeable-multiple.combined-tooltip .rangeable-handle .rangeable-tooltip,.rangeable-container.rangeable-vertical.combined-tooltip .rangeable-handle .rangeable-tooltip{opacity:0}\n.rangeable-container.focus .rangeable-handle{border:1px solid #74b9ff}\n.rangeable-container.rangeable-multiple .rangeable-handle:nth-child(1){left:0;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}\n.rangeable-container.rangeable-multiple .rangeable-handle:nth-child(2){right:0}\n.rangeable-container.rangeable-vertical{height:100%;width:auto}\n.rangeable-container.rangeable-vertical .rangeable-track{width:8px;height:100%}\n.rangeable-container.rangeable-vertical .rangeable-progress{width:8px;height:100%;top:auto;bottom:0;-webkit-transform-origin:0 100% 0;-ms-transform-origin:0 100% 0;transform-origin:0 100% 0}\n.rangeable-container.rangeable-vertical .rangeable-handle{right:auto;left:50%;top:0;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}\n.rangeable-container.rangeable-vertical .rangeable-tooltip{position:absolute;top:50%;left:calc(100% + 6px + 4px + 5px);right:auto;bottom:auto;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}\n.rangeable-container.rangeable-vertical .rangeable-tooltip::before{right:100%;left:auto;top:50%;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0);border-width:4px 4px 4px 0;border-color:transparent #3db13d transparent transparent}\n.rangeable-container.rangeable-vertical .rangeable-buffer{width:100%;height:0}\n.rangeable-container.rangeable-vertical.rangeable-multiple .rangeable-handle:nth-child(1){top:0;left:50%}\n.rangeable-container.rangeable-vertical.rangeable-multiple .rangeable-handle:nth-child(2){bottom:0;top:auto;-webkit-transform:translate3d(-50%,50%,0);transform:translate3d(-50%,50%,0)}\n.rangeable-input{position:absolute;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;margin:-1px;padding:0;border:0}\n.rangeable-input:focus+.rangeable-track .rangeable-handle::after{position:absolute;width:22px;height:22px;bottom:-6px;right:-6px;outline:#000 dotted 1px;content:\"\"}\n.rangeable-progress,.rangeable-track{height:8px;width:100%;border-radius:4px}\n.rangeable-track{background-color:#ccc;position:relative}\n.rangeable-progress{background-color:#3db13d;position:absolute;left:0;top:0;-webkit-transform-origin:0 0 0;-ms-transform-origin:0 0 0;transform-origin:0 0 0}\n.rangeable-progress>.rangeable-tooltip{display:none;z-index:11;top:auto;bottom:calc(100% + 7px + 9px);white-space:nowrap}\n.rangeable-handle{-webkit-box-sizing:border-box;box-sizing:border-box;width:22px;height:22px;border:6px solid #3db13d;border-radius:50%;background-color:#fff;position:absolute;top:50%;right:0;-webkit-transform:translate3d(50%,-50%,0);transform:translate3d(50%,-50%,0)}\n.rangeable-handle:focus{outline:0}\n.rangeable-handle:focus::after{position:absolute;width:22px;height:22px;bottom:-6px;right:-6px;outline:#000 dotted 1px;content:\"\"}\n.rangeable-handle.active{z-index:10}\n.rangeable-handle .rangeable-tooltip{display:none}\n.rangeable-tooltip{position:absolute;right:50%;bottom:calc(100% + 6px + 4px + 5px);-webkit-transform:translate3d(50%,0,0);transform:translate3d(50%,0,0);text-align:center;padding:2px 13px;background-color:#3db13d;border-radius:4px;font-weight:700;font-size:16px;color:#fff;font-family:Inconsolata,Consolas,Courier New,Lucida Console,sans-serif}\n.rangeable-tooltip::before{width:0;height:0;border-width:4px 4px 0;border-style:solid;border-color:#3db13d transparent transparent;position:absolute;left:50%;top:100%;-webkit-transform:translate3d(-50%,0,0);transform:translate3d(-50%,0,0);content:\"\"}\n.rangeable-buffers{position:absolute;left:0;top:0;height:100%;width:100%}\n.rangeable-buffer{position:absolute;background-color:rgba(0,0,0,.2);border-radius:4px;height:100%}\n/* WRAPPER */\n.keen-dataviz {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n font-family: 'Gotham Rounded SSm A', 'Gotham Rounded SSm B', 'Helvetica Neue', Helvetica, Arial, sans-serif;\n font-family: 'Gotham Rounded SSm A', 'Gotham Rounded SSm B', 'Helvetica Neue', Helvetica, Arial, sans-serif;\n height: 100%;\n}\n.keen-dataviz .partial-interval-indicator{\n fill: #bdbdbd;\n }\n.keen-dataviz .axis {\n shape-rendering: crispEdges\n }\n.keen-dataviz-title {\n color: #4D4D4D;\n color: #4D4D4D;\n padding-bottom: 0.8em;\n }\n.keen-dataviz-stage {\n display: block;\n }\n.keen-dataviz-notes {\n color: #808080;\n color: #808080;\n display: block;\n font-size: 0.8em;\n }\n.keen-dataviz-box {\n border-radius: 4px;\n text-align: center;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-flow: row;\n flex-flow: row;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-direction: column;\n flex-direction: column;\n padding: 1em 0;\n min-height: 4em;\n height: inherit;\n }\n.keen-dataviz-button {\n padding: 0.5rem 1rem;\n margin: 1rem 0;\n border-radius: 4px;\n background-color: #f9f9f9;\n border-color: #d6d6d6;\n cursor: pointer;\n -webkit-transition: background-color 300ms ease;\n -o-transition: background-color 300ms ease;\n transition: background-color 300ms ease\n }\n.keen-dataviz-button:hover {\n background-color: #E7E7E7;\n background-color: #E7E7E7;\n}\n.keen-dataviz .metric-comparison {\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n color: #1A1A1A;\n color: #1A1A1A;\n background: #f9f9f9;\n }\n/* METRIC */\n.keen-dataviz-metric {\n height: inherit;\n color: #FFFFFF;\n color: #FFFFFF;\n background: rgb(0, 187, 222);\n }\n.keen-dataviz-metric-value {\n font-size: 4.3em;\n font-weight: 700;\n width: 100%;\n }\n.keen-dataviz-metric-value-smaller {\n font-size: 3em;\n }\n.keen-dataviz-metric-title {\n font-size: 2em;\n font-weight: 200;\n width: 100%;\n }\n.keen-dataviz-metric-green {\n color: #73D483;\n color: #73D483;\n font-size: 2em;\n }\n.keen-dataviz-metric-red {\n color: #FE6672;\n color: #FE6672;\n font-size: 2em;\n }\n.keen-dataviz .arrow-green {\n width: 0;\n height: 0;\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n border-bottom: 8px solid #73D483;\n border-bottom: 8px solid #73D483;\n position: relative;\n top: 0.7em;\n left: -0.6em;\n }\n.keen-dataviz .arrow-red {\n width: 0;\n height: 0;\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n border-top: 8px solid #FE6672;\n border-top: 8px solid #FE6672;\n position: relative;\n top: 0.8em;\n left: -0.6em;\n }\n/* MESSAGE */\n.keen-dataviz-message {\n color: #808080;\n color: #808080;\n font-size: 1.5em;\n width:100%;\n }\n/* FUNNEL */\n.keen-dataviz .text-label {\n fill: #1A1A1A;\n fill: #1A1A1A;\n }\n.keen-dataviz .text-main {\n fill: #FFFFFF;\n fill: #FFFFFF;\n font-size: 1.5em;\n }\n.keen-dataviz .text-second {\n fill: #FFFFFF;\n fill: #FFFFFF;\n }\n.keen-dataviz .chart-lines {\n stroke: #E7E7E7;\n stroke: #E7E7E7;\n }\n/* METRIC COMBO */\n.keen-dataviz-metric-combo {\n width: 270px;\n height: 120px;\n position: relative;\n }\n.keen-dataviz-metric-combo .metric-combo-data {\n width: 100%;\n height: 100%;\n padding: 0.5rem;\n position: absolute;\n z-index: -1;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n }\n.keen-dataviz-metric-combo .c3-chart {\n height: 120px;\n }\n.keen-dataviz-metric-combo .c3-lines {\n display: none;\n }\n.keen-dataviz-metric-combo .keen-dataviz-title,\n .keen-dataviz-metric-combo .current-count {\n width: 100%;\n }\n.keen-dataviz-metric-combo .current-count {\n margin-top: auto;\n margin-bottom: auto;\n font-size: 2rem;\n text-align: center;\n }\n.keen-dataviz-metric-combo .percent-difference {\n position: absolute;\n top: 0.5rem;\n right: 0.5rem;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n font-size: 80%;\n }\n.keen-dataviz-metric-combo .arrow-green,\n .keen-dataviz-metric-combo .arrow-red {\n margin-right: 0.25rem;\n position: static;\n border-width: 5px;\n }\n/* TABLE */\n.keen-dataviz-table {\n border-bottom: 1px solid #E7E7E7;\n border-bottom: 1px solid #E7E7E7;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n overflow: scroll;\n position: relative;\n width: 100%;\n }\n.keen-dataviz-table table {\n background: #FFFFFF;\n background: #FFFFFF;\n border-collapse: collapse;\n margin: 0;\n position: relative;\n width: 100%;\n }\n.keen-dataviz-table table .table-pagination td {\n background-color: #FFFFFF;\n background-color: #FFFFFF;\n }\n.keen-dataviz-table table .table-pagination:hover td {\n background-color: #FFFFFF;\n background-color: #FFFFFF;\n }\n.keen-dataviz-table table .table-pagination a {\n border: 1px solid #E7E7E7;\n border: 1px solid #E7E7E7;\n padding: 0.5em;\n margin-right: 0.2em;\n cursor: pointer;\n }\n.keen-dataviz-table table .table-pagination .active{\n background: #4D4D4D;\n background: #4D4D4D;\n color: #FFFFFF;\n color: #FFFFFF;\n }\n.keen-dataviz-table table .table-pagination .arrow{\n font-weight:bold;\n }\n.keen-dataviz-table th{\n background: white;\n position: -webkit-sticky;\n position: sticky;\n top: 0;\n z-index: 10;\n cursor: pointer;\n }\n.keen-dataviz-table th,\n .keen-dataviz-table td {\n border-collapse: collapse;\n font-size: 1em;\n padding: 0.7em;\n text-align: left;\n white-space: nowrap;\n }\n.keen-dataviz-table th {\n border-bottom: 1px solid #E7E7E7;\n border-bottom: 1px solid #E7E7E7;\n color: #4D4D4D;\n color: #4D4D4D;\n }\n.keen-dataviz-table td {\n background-color: #FFFFFF;\n background-color: #FFFFFF;\n color: #4D4D4D;\n color: #4D4D4D;\n -webkit-transition: background-color 0.1s, color 0.05s;\n -o-transition: background-color 0.1s, color 0.05s;\n transition: background-color 0.1s, color 0.05s;\n }\n.keen-dataviz-table .table-data-row:nth-child(even) td{\n background-color: #F3F5F6;\n }\n.keen-dataviz-table .table-data-row:hover td{\n background-color: #E7E7E7;\n background-color: #E7E7E7;\n color: #4D4D4D;\n color: #4D4D4D;\n }\n.keen-dataviz-table .keen-dataviz-table-fixed-header {\n background: #FFFFFF;\n background: #FFFFFF;\n border-bottom: 1px solid rgba(0,0,0,.15);\n position: absolute;\n top: 0;\n -webkit-transition: top .1s;\n -o-transition: top .1s;\n transition: top .1s;\n }\n.keen-dataviz .keen-spinner-indicator {\n border-radius: 100%;\n border: 3px solid rgba(0, 0, 0, .1);\n border-top-color: rgba(0, 0, 0, .45);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n height: 3em;\n width: 3em;\n -webkit-animation:spin .7s linear infinite;\n animation:spin .7s linear infinite;\n -ms-animation: spin .7s linear infinite;\n -o-animation: spin .7s linear infinite;\n }\n.keen-dataviz-execution-meta {\n position: absolute;\n z-index: 999;\n padding: 0.5rem 1rem;\n margin: 0.75rem 0;\n display: inline-grid;\n grid-template-columns: repeat(2, -webkit-max-content);\n grid-template-columns: repeat(2, max-content);\n grid-gap: 0.5em 1em;\n text-transform: uppercase;\n font-size: 0.75rem;\n border: 1px solid #eee;\n background: #fff;\n }\n.keen-dataviz-execution-meta dt {\n font-weight: bold\n }\n.keen-dataviz-execution-meta dt:hover + dd {\n font-weight: bold;\n}\n.keen-dataviz-execution-meta dt, .keen-dataviz-execution-meta dd {\n margin: 0;\n cursor: pointer;\n }\n.keen-dataviz-execution-meta .copied:after {\n content: 'copied!';\n vertical-align: middle;\n display: inline-block;\n font-size: 10px;\n margin-left: 0.5em;\n position: absolute;\n text-transform: none;\n font-weight: normal;\n -webkit-animation: 1s ease 0s 1 both fadeOut;\n animation: 1s ease 0s 1 both fadeOut;\n}\n@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }\n@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }\n@-webkit-keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }\n@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }\n/* C3 CUSTOMIZATIONS */\n.keen-dataviz .c3-axis-y path {\n display: none;\n }\n.keen-dataviz .c3-axis-y .tick line{\n display: none;\n }\n.keen-dataviz .tick line, .keen-dataviz path.domain{\n stroke-opacity: 0.2;\n }\n.keen-dataviz .c3-ygrid{\n stroke-dasharray: none;\n stroke-opacity: 0.1;\n }\n.keen-dataviz .c3-ygrids :nth-child(even) {\n display: none;\n }\n.keen-dataviz .c3-tooltip {\n border: 1px solid rgba(0, 0, 0, 0.1);\n padding: 0.2em;\n border-radius: 0.2em;\n -webkit-box-shadow: none;\n box-shadow: none;\n border-collapse: separate;\n }\n.keen-dataviz .c3-tooltip th {\n text-align: center;\n }\n.keen-dataviz .c3-tooltip table, .keen-dataviz .c3-tooltip th, .keen-dataviz .c3-tooltip tr, .keen-dataviz .c3-tooltip td {\n border: none;\n background: none;\n font-size: 0.9em;\n }\n.keen-dataviz .c3-tooltip-container th {\n max-width: 50%;\n word-wrap: break-word;\n color: #1A1A1A;\n color: #1A1A1A;\n background: none;\n font-weight: normal;\n }\n.keen-dataviz .c3-tooltip-container td {\n max-width: 50%;\n word-wrap: break-word;\n }\n.keen-dataviz-rendering{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-flow: row;\n flex-flow: row;\n -ms-flex-pack: distribute;\n justify-content: space-around;\n }\n.keen-dataviz-rendering .c3-chart{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-item-align: center;\n align-self: center;\n -ms-flex-order: 1;\n order: 1;\n -ms-flex: 100%;\n flex: 100%;\n }\n.keen-dataviz-rendering .c3-chart-100-percent{\n width: 100%;\n -ms-flex-item-align: center;\n align-self: center;\n }\n.keen-dataviz-rendering-horizontal{\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n }\n/* CUSTOM LEGEND */\n.keen-c3-legend {\n display: -ms-flexbox;\n display: flex;\n position: relative;\n top: 0;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.keen-c3-legend-horizontal{\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-item-align: end;\n align-self: flex-end;\n display: -ms-flexbox;\n display: flex;\n flex-direction: row;\n -ms-flex-pack: center;\n justify-content: center;\n width: 100%;\n padding: 0.5em 0;\n }\n.keen-c3-legend-horizontal-pagination-left{\n -ms-flex-order: 0;\n order: 0;\n display: -ms-flexbox;\n display: flex;\n margin-right: 1.5em;\n }\n.keen-c3-legend-horizontal-items{\n -ms-flex-order: 1;\n order: 1;\n display: -ms-flexbox;\n display: flex;\n }\n.keen-c3-legend-horizontal-pagination-right{\n -ms-flex-order: 2;\n order: 2;\n display: -ms-flexbox;\n display: flex;\n margin-left: 1.5em;\n }\n.keen-c3-legend-top{\n -ms-flex-order: 0;\n order: 0;\n }\n.keen-c3-legend-bottom {\n -ms-flex-order: 2;\n order: 2;\n }\n.keen-c3-legend-bottom .keen-c3-legend-label-overlay{\n top: 0;\n margin-top: -2.7em;\n }\n.keen-c3-legend-bottom .keen-c3-legend-label-overlay .overlay-pointer {\n top: 2.4em;\n -webkit-transform: rotate(180deg);\n -ms-transform: rotate(180deg);\n transform: rotate(180deg);\n border-color: transparent transparent #f0f0f0 transparent;\n }\n.keen-c3-legend-vertical{\n -ms-flex-direction: column;\n flex-direction: column;\n }\n.keen-c3-legend-vertical .keen-c3-legend-pagination-icons\n {\n margin: 0.5em 0.1em;\n -ms-flex-order: 2;\n order: 2;\n }\n.keen-c3-legend-left{\n -ms-flex-order: 0;\n order: 0;\n }\n.keen-c3-legend-right{\n -ms-flex-order: 2;\n order: 2;\n }\n.keen-c3-legend-items{\n -ms-flex-order: 1;\n order: 1;\n }\n.keen-c3-legend-vertical-items{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n }\n.keen-c3-legend-vertical-items .legend-item{\n width: 8em;\n }\n.keen-c3-legend-horizontal-items{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n }\n.keen-c3-legend-horizontal-items .legend-item{\n width: 6em;\n margin: 0 0.25em;\n }\n.keen-c3-legend .legend-item{\n display: -ms-flexbox;\n display: flex;\n cursor: pointer;\n padding: 0.2em;\n font-size: 0.8em;\n }\n.keen-c3-legend .legend-item > * {\n vertical-align: middle;\n }\n.keen-c3-legend .legend-item-color-sample{\n display: inline-block;\n width: 1em;\n height: 1em;\n margin-right: 0.5em;\n pointer-events: none;\n -ms-flex: none;\n flex: none;\n }\n.keen-c3-legend .legend-item-text{\n pointer-events: none;\n overflow: hidden;\n white-space: nowrap;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n text-align: left;\n }\n.keen-c3-legend-label-overlay .overlay-pointer {\n border-color: transparent transparent #FFFFFF transparent;\n border-color: transparent transparent #FFFFFF transparent;\n border-style: solid;\n border-width: 0 10px 10px 10px;\n height: 0;\n width: 0px;\n position: absolute;\n top: -10px;\n }\n.keen-c3-legend-position-left .overlay-pointer {\n left: 0px;\n }\n.keen-c3-legend-position-right .overlay-pointer {\n left: 0px;\n }\n.keen-c3-legend-pagination-vertical {\n margin-top: 0.5em;\n }\n.keen-c3-legend-pagination-icons {\n padding: 0.2em;\n }\n.keen-c3-legend-pagination-icons i {\n border-left: 1em solid transparent;\n border-right: 1em solid transparent;\n border-top: 1.5em solid #4D4D4D;\n border-top: 1.5em solid #4D4D4D;\n display: inline-block;\n padding: 0em;\n float: left;\n cursor: pointer;\n font-size: 0.5em;\n }\n.keen-c3-legend-pagination-icons .right {\n -ms-transform: rotate(-90deg);\n transform: rotate(-90deg);\n -webkit-transform: rotate(-90deg);\n }\n.keen-c3-legend-pagination-icons .left {\n -ms-transform: rotate(90deg);\n transform: rotate(90deg);\n -webkit-transform: rotate(90deg);\n }\n.keen-c3-legend-pagination-icons .up {\n -ms-transform: rotate(-180deg);\n transform: rotate(-180deg);\n -webkit-transform: rotate(-180deg);\n margin-top: 0.1em;\n }\n.keen-c3-legend-pagination-icons .down {\n margin-right: 1em;\n }\n.keen-c3-legend-label-overlay {\n font-size: 1em;\n background: rgba(255, 255, 255, 0.9);\n background: rgba(255, 255, 255, 0.9);\n -webkit-box-shadow: 0 1px 1px rgba(26, 26, 26, 0.09999999999999998);\n box-shadow: 0 1px 1px rgba(26, 26, 26, 0.09999999999999998);\n box-shadow: 0 1px 1px rgba(26, 26, 26, 0.09999999999999998);\n padding: 0.6em;\n margin-top: 1.5em;\n position: absolute;\n word-wrap: break-word;\n pointer-events: none;\n z-index: 222;\n }\n.keen-c3-legend-align-left {\n -ms-flex-pack: start;\n justify-content: flex-start;\n }\n.keen-c3-legend-align-left .keen-c3-legend-horizontal-items {\n -ms-flex-pack: start;\n justify-content: flex-start;\n margin-right: auto;\n }\n.keen-c3-legend-align-center {\n -ms-flex-pack: center;\n justify-content: center;\n }\n.keen-c3-legend-align-center .keen-c3-legend-horizontal-items {\n -ms-flex-pack: center;\n justify-content: center;\n margin-left: auto;\n margin-right: auto;\n }\n.keen-c3-legend-align-right {\n -ms-flex-pack: end;\n justify-content: flex-end;\n }\n.keen-c3-legend-align-right .keen-c3-legend-horizontal-items {\n -ms-flex-pack: end;\n justify-content: flex-end;\n margin-left: auto;\n }\n.keen-c3-legend-align-top {\n -ms-flex-pack: start;\n justify-content: flex-start;\n }\n.keen-c3-legend-align-middle {\n -ms-flex-pack: center;\n justify-content: center;\n }\n.keen-c3-legend-align-bottom {\n -ms-flex-pack: end;\n justify-content: flex-end;\n }\n.keen-dataviz-range .c3-area-Max {\n display: none;\n}\n.keen-dataviz-range .c3-bars-Max {\n display: none;\n}\n.keen-dataviz ~ .rangeable-container {\n margin: 2rem auto;\n width: 75%;\n}\n.keen-dataviz ~ .rangeable-container .rangeable-track,\n.keen-dataviz ~ .rangeable-container .rangeable-progress {\n height: 4px;\n}\n.keen-dataviz ~ .rangeable-container .rangeable-handle {\n width: 16px;\n height: 16px;\n border-width: 4px;\n}\n.keen-dataviz ~ .rangeable-container .rangeable-tooltip {\n border-radius: 0;\n font-weight: normal;\n padding: 3px 9px;\n}\n", - '' - ]); - }, - function(t, e, n) { - var r = n(237); - 'string' == typeof r && (r = [[t.i, r, '']]), - n(33)(r, { hmr: !0, transform: void 0, insertInto: void 0 }), - r.locals && (t.exports = r.locals); - }, - function(t, e, n) { - (e = t.exports = n(32)(!1)).push([ - t.i, - '@import url(https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap);', - '' - ]), - e.push([ - t.i, - "html {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n*,\n*:before,\n*:after {\n -webkit-box-sizing: inherit;\n box-sizing: inherit;\n}\n* {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.keen-theme-builder {\n padding: 15px;\n padding: 15px;\n display: grid;\n grid-gap: calc(2 * 15px);\n grid-gap: calc(2 * 15px);\n grid-template-columns: 100%;\n background-color: #F3F7F9;\n background-color: #F3F7F9;\n font-family: 'Montserrat', sans-serif;\n font-family: 'Montserrat', sans-serif;\n color: #000;\n color: #000;\n}\n@media (min-width: 960px) {\n .keen-theme-builder {\n grid-template-columns: 350px auto;\n }\n}\n.keen-theme-builder.no-mockup {\n grid-template-columns: 100%;\n}\n.keen-theme-builder__row {\n margin-bottom: 10px;\n margin-bottom: 10px;\n -ms-flex-align: end;\n align-items: end;\n -ms-flex-pack: center;\n justify-content: center;\n grid-column-gap: 10px;\n}\n.keen-theme-builder__row.two-elements {\n display: grid;\n grid-template-columns: 1fr 1fr;\n}\n.keen-theme-builder .builder__mockup {\n min-width: 0;\n }\n.keen-theme-builder .builder__config {\n background-color: #F3F7F9;\n background-color: #F3F7F9;\n }\n.keen-theme-builder .builder__editor {\n padding: 15px;\n padding: 15px;\n border: 1px solid #ccc;\n border: 1px solid #ccc;\n background-color: #fff;\n background-color: #fff;\n }\n.keen-theme-builder .builder__default-charts {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));\n grid-auto-rows: auto;\n grid-gap: 1rem;\n }\n.keen-theme-builder .builder__default-charts .keen-dataviz {\n height: 350px;\n min-width: 0;\n }\n.keen-theme-builder .section-title {\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n text-transform: uppercase;\n}\n.keen-theme-builder .control-title {\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n text-transform: uppercase;\n}\n.keen-theme-builder .section-title {\n font-weight: 700;\n}\n.keen-theme-builder .control-label {\n display: block;\n margin-bottom: 10px;\n margin-bottom: 10px;\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n}\n.keen-theme-builder .color-picker {\n position: relative;\n margin-bottom: 0.5rem;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.keen-theme-builder .color-picker__label {\n margin-bottom: 0.5rem;\n }\n.keen-theme-builder .color-picker__wrapper {\n padding: 0.5rem;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -ms-flex-align: center;\n align-items: center;\n border-radius: 3px;\n border: 1px solid #ccc;\n cursor: pointer;\n }\n.keen-theme-builder .color-picker__input {\n min-width: 0;\n border: none;\n outline: none;\n background: transparent;\n font-size: 1rem;\n line-height: 1;\n color: #aaa;\n cursor: pointer;\n }\n.keen-theme-builder .color-picker__trigger {\n width: 20px;\n height: 20px;\n margin-right: 1em;\n padding: 2px;\n border: 1px solid #ccc;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n -webkit-transition: all 300ms ease;\n -o-transition: all 300ms ease;\n transition: all 300ms ease\n }\n.keen-theme-builder .color-picker__trigger:hover {\n -webkit-transform: scale(1.15);\n -ms-transform: scale(1.15);\n transform: scale(1.15);\n}\n.keen-theme-builder .color-picker__popover {\n position: absolute;\n top: 0;\n left: 36px;\n z-index: 10;\n }\n.keen-theme-builder .color-picker__cover {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: -1;\n }\n.keen-theme-builder .btn {\n padding: 0.5rem 0.75rem;\n display: -ms-inline-flexbox;\n display: inline-flex;\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n color: #44B7DC;\n color: #44B7DC;\n background-color: #fff;\n background-color: #fff;\n border-radius: 4px;\n border-radius: 4px;\n border: 1px solid #ccc;\n border: 1px solid #ccc;\n cursor: pointer;\n -webkit-transition: background-color 250ms ease-in;\n -o-transition: background-color 250ms ease-in;\n transition: background-color 250ms ease-in;\n}\n.keen-theme-builder .btn:hover {\n background-color: #F3F7F9;\n background-color: #F3F7F9;\n}\n.keen-theme-builder .btn:focus {\n outline: none;\n}\n.keen-theme-builder .btn__small {\n font-size: 0.75rem;\n padding: 0.25rem 0.5rem;\n}\n.keen-theme-builder .keen-dataviz {\n min-height: 50vh;\n padding: 15px;\n padding: 15px;\n background-color: #fff;\n background-color: #fff;\n border: 1px solid #ccc;\n border: 1px solid #ccc;\n}\n.keen-theme-builder .keen-dataviz .c3-ygrid {\n stroke-opacity: 1;\n }\n.keen-theme-builder .keen-dataviz .c3-chart-lines .c3-circles {\n fill: currentColor;\n }\n.keen-theme-builder .keen-dataviz .keen-dataviz-metric {\n min-height: 50vh;\n }\n.keen-theme-builder .keen-dataviz > .keen-dataviz {\n background: transparent;\n border: none;\n padding: 0;\n height: 100%;\n font-size: 4.25rem;\n}\n.keen-theme-builder .disabled {\n pointer-events: none;\n opacity: 0.4;\n}\n.copy-to-clipboard {\n clip: rect(0 0 0 0);\n -webkit-clip-path: inset(100%);\n clip-path: inset(100%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n.keen-theme-builder .accordion__item__heading {\n padding: 10px 15px;\n margin-bottom: 5px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n font-size: 0.875rem;\n font-size: 0.875rem;\n font-weight: 400;\n line-height: 1;\n background-color: #fff;\n background-color: #fff;\n cursor: pointer;\n -webkit-box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.1);\n box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.1);\n -webkit-transition: background-color 250ms ease-in;\n -o-transition: background-color 250ms ease-in;\n transition: background-color 250ms ease-in\n }\n.keen-theme-builder .accordion__item__heading:hover {\n background-color: #D9EFFA;\n background-color: #D9EFFA;\n}\n.keen-theme-builder .accordion__item__heading .heading__icon {\n width: 1.125rem;\n margin-right: 0.875rem;\n fill-opacity: 0.35;\n -webkit-transition: -webkit-transform 0.15s ease-in-out;\n transition: -webkit-transform 0.15s ease-in-out;\n -o-transition: transform 0.15s ease-in-out;\n transition: transform 0.15s ease-in-out;\n transition: transform 0.15s ease-in-out, -webkit-transform 0.15s ease-in-out;\n}\n.keen-theme-builder .accordion__item__content {\n padding: 15px 15px 20px 15px;\n -webkit-animation: fadein 0.35s ease-in;\n animation: fadein 0.35s ease-in;\n }\n.keen-theme-builder .accordion__item.open .accordion__item__heading {\n background-color: #D9EFFA;\n background-color: #D9EFFA;\n font-weight: 700;\n}\n.keen-theme-builder .accordion__item.open .accordion__item__heading .heading__icon {\n -webkit-transform: rotate(90deg);\n -ms-transform: rotate(90deg);\n transform: rotate(90deg);\n }\n.keen-theme-builder .accordion__item__row {\n margin-bottom: 15px;\n margin-bottom: 15px;\n -ms-flex-align: end;\n align-items: end;\n -ms-flex-pack: center;\n justify-content: center;\n grid-column-gap: 10px;\n}\n.keen-theme-builder .accordion__item__row.three-elements {\n display: grid;\n grid-template-columns: 4fr 1fr 1fr;\n}\n.keen-theme-builder .accordion__item__row.two-elements {\n display: grid;\n grid-template-columns: 5fr 1fr;\n}\n@-webkit-keyframes fadein {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n@keyframes fadein {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n.keen-theme-builder .switcher {\n margin-bottom: 15px;\n margin-bottom: 15px;\n display: block;\n position: relative;\n overflow: hidden;\n }\n.keen-theme-builder .switcher__input:checked~.switcher__toggle {\n border-color: #3ED08E;\n background-color: #DCF9EB;\n}\n.keen-theme-builder .switcher__input:checked~.switcher__toggle .switcher__switch {\n right: 2px;\n background-color: #3ED08E;\n}\n.keen-theme-builder .switcher__input:checked~.switcher__value .on {\n display: block;\n}\n.keen-theme-builder .switcher__input:checked~.switcher__value .off {\n display: none;\n}\n.keen-theme-builder .switcher__toggle {\n position: relative;\n width: 34px;\n height: 18px;\n margin-right: 0.1875rem;\n margin-left: 0.625rem;\n border: 1px solid #ccc;\n border: 1px solid #ccc;\n background-color: #f5f5f5;\n border-radius: 9px;\n display: inline-block;\n }\n.keen-theme-builder .switcher__switch {\n position: absolute;\n top: 1px;\n bottom: 0;\n right: 17px;\n width: 14px;\n height: 14px;\n margin: 0;\n background: #ccc;\n background: #ccc;\n border-radius: 50%;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n -webkit-transition: right 0.15s ease-in-out, background-color 0.15s ease-in-out;\n -o-transition: right 0.15s ease-in-out, background-color 0.15s ease-in-out;\n transition: right 0.15s ease-in-out, background-color 0.15s ease-in-out;\n }\n.keen-theme-builder .switcher__title {\n font-weight: 800;\n }\n.keen-theme-builder .switcher__label {\n display: -ms-inline-flexbox;\n display: inline-flex;\n -ms-flex-align: center;\n align-items: center;\n cursor: pointer;\n }\n.keen-theme-builder .switcher__label .section-title {\n line-height: 1;\n }\n.keen-theme-builder .switcher__label .control-label {\n margin-bottom: 0;\n }\n.keen-theme-builder .switcher__input {\n position: absolute;\n left: -999px;\n }\n.keen-theme-builder .switcher__value {\n font-size: 0.75rem;\n color: #B3B5B6;\n }\n.keen-theme-builder .switcher__value .on {\n display: none;\n }\n.keen-theme-builder .switcher__value .off {\n display: block;\n }\n.keen-theme-builder .custom-color-picker {\n min-width: 0;\n position: relative;\n }\n.keen-theme-builder .custom-color-picker__title {\n margin-bottom: 10px;\n margin-bottom: 10px;\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n }\n.keen-theme-builder .custom-color-picker__wrapper {\n background-color: #fff;\n background-color: #fff;\n border: 1px solid #ccc;\n border: 1px solid #ccc;\n border-radius: 4px;\n border-radius: 4px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n height: 34px;\n height: 34px\n }\n.keen-theme-builder .custom-color-picker__wrapper:hover {\n border-color: #44B7DC;\n border-color: #44B7DC;\n}\n.keen-theme-builder .custom-color-picker__wrapper input {\n width: 100%;\n padding: 0.4375rem 0.75rem;\n background: transparent;\n border-radius: 0 4px 4px 0;\n border-radius: 0 4px 4px 0;\n font-family: 'Montserrat', sans-serif;\n font-family: 'Montserrat', sans-serif;\n font-size: 0.875rem;\n font-size: 0.875rem;\n}\n.keen-theme-builder .custom-color-picker__popover {\n position: absolute;\n top: 0;\n left: 50px;\n z-index: 10;\n padding: 10px;\n padding: 10px;\n background-color: #fff;\n background-color: #fff;\n border-radius: 4px;\n -webkit-box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 0px 1px, rgba(0, 0, 0, 0.15) 0px 8px 16px;\n box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 0px 1px, rgba(0, 0, 0, 0.15) 0px 8px 16px;\n }\n.keen-theme-builder .custom-color-picker__popover .sketch-picker {\n padding: 0 !important;\n -webkit-box-shadow: none !important;\n box-shadow: none !important;\n }\n.keen-theme-builder .custom-color-picker__popover .btn {\n margin-bottom: 10px;\n margin-bottom: 10px;\n }\n.keen-theme-builder .custom-color-picker__popover .btn-close {\n position: absolute;\n top: 0;\n right: 0;\n padding: 10px;\n padding: 10px;\n font-size: 1.25rem;\n font-weight: 700;\n line-height: 1;\n background: none;\n color: #ccc;\n color: #ccc;\n border: none;\n cursor: pointer \n }\n.keen-theme-builder .custom-color-picker__popover .btn-close:focus {\n outline: none;\n}\n.keen-theme-builder .custom-color-picker__cover {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: -1;\n }\n.keen-theme-builder .custom-color-picker__color {\n height: 32px;\n width: 32px;\n border-radius: 4px 0 0 4px;\n border-radius: 4px 0 0 4px;\n border-right: 1px solid #ccc;\n border-right: 1px solid #ccc;\n }\n.keen-theme-builder .custom-color-picker__swatch {\n cursor: pointer;\n }\n.keen-theme-builder .button-group {\n min-height: 34px;\n min-height: 34px;\n }\n.keen-theme-builder .button-group__title {\n margin-bottom: 10px;\n margin-bottom: 10px;\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n }\n.keen-theme-builder .button-group__wrapper {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-align: center;\n align-items: center;\n }\n.keen-theme-builder .button-group__label {\n margin: 0;\n padding: 0.5rem 0.75rem;\n min-width: 2.375rem;\n min-height: 34px;\n min-height: 34px;\n -ms-flex: 1;\n flex: 1;\n position: relative;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n text-align: center;\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n background-color: #fdfdfd;\n background-color: #fdfdfd;\n color: #000;\n color: #000;\n border-radius: 0;\n cursor: pointer;\n overflow: hidden;\n -webkit-box-shadow: 0 0 0 1px #ccc;\n box-shadow: 0 0 0 1px #ccc;\n box-shadow: 0 0 0 1px #ccc\n }\n.keen-theme-builder .button-group__label:hover {\n -webkit-box-shadow: 0 0 0 1px #44B7DC;\n box-shadow: 0 0 0 1px #44B7DC;\n box-shadow: 0 0 0 1px #44B7DC;\n z-index: 2;\n}\n.keen-theme-builder .button-group__label.active {\n background-color: #D9EFFA;\n background-color: #D9EFFA;\n color: #44B7DC;\n color: #44B7DC;\n -webkit-box-shadow: 0 0 0 1px #44B7DC;\n box-shadow: 0 0 0 1px #44B7DC;\n box-shadow: 0 0 0 1px #44B7DC;\n z-index: 2;\n}\n.keen-theme-builder .button-group__label:first-child {\n border-radius: 4px 0 0 4px;\n border-radius: 4px 0 0 4px;\n}\n.keen-theme-builder .button-group__label:last-child {\n border-radius: 0 4px 4px 0;\n border-radius: 0 4px 4px 0;\n}\n.keen-theme-builder .button-group__input {\n position: absolute;\n left: -999px;\n }\n.keen-theme-builder .custom-dropdown__control {\n padding-left: 0.75rem;\n padding-right: 0.5rem;\n min-height: 34px;\n min-height: 34px;\n min-width: 90px;\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n background-color: #fff;\n background-color: #fff;\n border: 1px solid #ccc;\n border: 1px solid #ccc;\n border-radius: 4px;\n border-radius: 4px;\n -webkit-box-shadow: none;\n box-shadow: none\n }\n.keen-theme-builder .custom-dropdown__control:hover {\n border-color: #44B7DC;\n border-color: #44B7DC;\n}\n.keen-theme-builder .custom-dropdown__menu {\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n z-index: 100;\n }\n.keen-theme-builder .custom-dropdown__option:hover {\n background-color: #D9EFFA;\n background-color: #D9EFFA;\n color: #000;\n color: #000;\n}\n.keen-theme-builder .custom-dropdown__option--is-selected {\n background-color: #44B7DC;\n background-color: #44B7DC;\n color: #fff;\n color: #fff;\n}\n.keen-theme-builder .custom-dropdown__option--is-selected:hover {\n background-color: #44B7DC;\n background-color: #44B7DC;\n color: #fff;\n color: #fff;\n}\n.keen-theme-builder .custom-dropdown__option--is-focused {\n background-color: #D9EFFA;\n background-color: #D9EFFA;\n color: #000;\n color: #000;\n}\n.keen-theme-builder .custom-dropdown__indicator {\n padding: 0;\n color: #ccc;\n color: #ccc;\n }\n.keen-theme-builder .custom-dropdown__indicator-separator {\n display: none;\n }\n.keen-theme-builder .custom-dropdown__value-container {\n padding: 0;\n }\n.keen-theme-builder .dropdown__label {\n display: block;\n margin-bottom: 10px;\n margin-bottom: 10px;\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n }\n.keen-theme-builder .form-input__label {\n display: inline-block;\n margin-bottom: 10px;\n margin-bottom: 10px;\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n }\n.keen-theme-builder .form-input__input {\n width: 100%;\n min-height: 34px;\n min-height: 34px;\n padding: 0.4375rem 0.75rem;\n display: block;\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n border-radius: 4px;\n border-radius: 4px;\n border: 1px solid #ccc;\n border: 1px solid #ccc\n }\n.keen-theme-builder .form-input__input:hover {\n border-color: #44B7DC;\n border-color: #44B7DC;\n}\n.keen-theme-builder .color-palette__list {\n margin: 15px 0;\n margin: 15px 0;\n padding: 0;\n /* min-height: 40px; */\n list-style: none;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -ms-flex-align: center;\n align-items: center;\n }\n.keen-theme-builder .color-palette__list .color-picker__popover {\n top: auto;\n bottom: 100%;\n left: 0;\n z-index: 10;\n }\n.keen-theme-builder .color-palette__button {\n padding: 0;\n width: 24px;\n height: 24px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n border: none;\n border-radius: 2px;\n background-color: rgba(0, 0, 0, 0.2);\n cursor: pointer;\n opacity: 0;\n -webkit-transition: background-color 250ms ease-in,\n opacity 250ms ease-in;\n -o-transition: background-color 250ms ease-in,\n opacity 250ms ease-in;\n transition: background-color 250ms ease-in,\n opacity 250ms ease-in\n }\n.keen-theme-builder .color-palette__button:hover {\n background-color: rgba(0, 0, 0, 0.6);\n}\n.keen-theme-builder .color-palette .btn-edit,\n .keen-theme-builder .color-palette .btn-remove {\n position: absolute;\n top: 5px;\n z-index: 1;\n }\n.keen-theme-builder .color-palette .btn-edit {\n left: 5px;\n }\n.keen-theme-builder .color-palette .btn-remove {\n right: 5px;\n }\n.keen-theme-builder .color-palette .btn-list {\n padding: 0.5rem 0.75rem;\n display: -ms-inline-flexbox;\n display: inline-flex;\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n color: #44B7DC;\n color: #44B7DC;\n background-color: #fff;\n background-color: #fff;\n border-radius: 4px;\n border-radius: 4px;\n border: 1px solid #ccc;\n border: 1px solid #ccc;\n -webkit-transition: background-color 250ms ease-in;\n -o-transition: background-color 250ms ease-in;\n transition: background-color 250ms ease-in\n }\n.keen-theme-builder .color-palette .btn-list:hover {\n background-color: #F3F7F9;\n background-color: #F3F7F9;\n}\n.keen-theme-builder .color-palette__item {\n position: relative;\n display: -ms-flexbox;\n display: flex\n }\n.keen-theme-builder .color-palette__item:hover .color-palette__button {\n opacity: 1 !important;\n}\n.keen-theme-builder .color-palette__trigger {\n cursor: -webkit-grab;\n cursor: grab;\n }\n.keen-theme-builder .react-tabs__tab {\n margin: 0;\n padding: 0.75rem;\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n text-align: center;\n -ms-flex: 1;\n flex: 1;\n border: none;\n border-radius: 0;\n background-color: #fff;\n background-color: #fff;\n -webkit-box-shadow: inset 0 -1px 0 #ccc;\n box-shadow: inset 0 -1px 0 #ccc;\n box-shadow: inset 0 -1px 0 #ccc\n }\n.keen-theme-builder .react-tabs__tab:focus {\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.keen-theme-builder .react-tabs__tab:focus:after {\n content: none;\n}\n.keen-theme-builder .react-tabs__tab-list {\n margin: 0;\n display: -ms-flexbox;\n display: flex;\n border-color: #d6d6d6;\n}\n.keen-theme-builder .react-tabs__tab-panel {\n padding: 15px;\n padding: 15px;\n border: none;\n}\n.keen-theme-builder .react-tabs__tab--selected {\n font-weight: 700;\n -webkit-box-shadow: inset 0 -3px 0 #44B7DC;\n box-shadow: inset 0 -3px 0 #44B7DC;\n box-shadow: inset 0 -3px 0 #44B7DC;\n}\n.keen-theme-builder .font-picker__title {\n margin-bottom: 10px;\n margin-bottom: 10px;\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n }", - '' - ]); - }, - function(t, e, n) { - 'use strict'; - n.r(e); - var r = n(0), - i = n.n(r), - o = n(1), - a = n.n(o), - s = n(87), - u = n(7), - l = n.n(u), - c = n(13), - f = n.n(c), - d = n(8), - h = n(2), - p = n.n(h), - g = n(88), - v = n.n(g), - m = n(34), - y = n(89), - b = n.n(y), - _ = n(19), - x = { - autocollector: { - colors: [ - '#5E77FF', - '#9C60FE', - '#F162FE', - '#FD65B7', - '#FD6768', - '#FDB86A', - '#F2FC6C', - '#A5FC6E', - '#71FB85', - '#73FBD0', - '#76DDFA', - '#76f4fa', - '#bb76fa', - '#fa76bf' - ] - }, - modern: { - colors: [ - '#45B2E8', - '#D9540D', - '#2CAB72', - '#2C4BAB', - '#EDDD02', - '#E84545', - '#E845CE', - '#5FCEC9', - '#E89F45', - '#28E43F', - '#B765C0', - '#458AE8', - '#AB2C2C', - '#AB2C75', - '#27E5FF', - '#7168F2', - '#FF932B', - '#855D00', - '#ACE845', - '#1C91B4' - ] - }, - dracula: { - colors: [ - '#8be9fd', - '#50fa7b', - '#ffb86c', - '#ff79c6', - '#bd93f9', - '#ff5555', - '#f1fa8c' - ] - } - }; - function w() { - return (w = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - var S = i.a.createElement('path', { - fill: 'currentColor', - d: - 'M333.49 238a122 122 0 0027-65.21C367.87 96.49 308 32 233.42 32H34a16 16 0 00-16 16v48a16 16 0 0016 16h31.87v288H34a16 16 0 00-16 16v48a16 16 0 0016 16h209.32c70.8 0 134.14-51.75 141-122.4 4.74-48.45-16.39-92.06-50.83-119.6zM145.66 112h87.76a48 48 0 010 96h-87.76zm87.76 288h-87.76V288h87.76a56 56 0 010 112z' - }); - function E() { - return (E = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - var k = i.a.createElement('path', { - fill: 'currentColor', - d: - 'M320 48v32a16 16 0 01-16 16h-62.76l-80 320H208a16 16 0 0116 16v32a16 16 0 01-16 16H16a16 16 0 01-16-16v-32a16 16 0 0116-16h62.76l80-320H112a16 16 0 01-16-16V48a16 16 0 0116-16h192a16 16 0 0116 16z' - }); - function A() { - return (A = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - var T = i.a.createElement('path', { - fill: 'currentColor', - d: - 'M12.83 352h262.34A12.82 12.82 0 00288 339.17v-38.34A12.82 12.82 0 00275.17 288H12.83A12.82 12.82 0 000 300.83v38.34A12.82 12.82 0 0012.83 352zm0-256h262.34A12.82 12.82 0 00288 83.17V44.83A12.82 12.82 0 00275.17 32H12.83A12.82 12.82 0 000 44.83v38.34A12.82 12.82 0 0012.83 96zM432 160H16a16 16 0 00-16 16v32a16 16 0 0016 16h416a16 16 0 0016-16v-32a16 16 0 00-16-16zm0 256H16a16 16 0 00-16 16v32a16 16 0 0016 16h416a16 16 0 0016-16v-32a16 16 0 00-16-16z' - }); - function C() { - return (C = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - var O = i.a.createElement('path', { - fill: 'currentColor', - d: - 'M16 224h416a16 16 0 0016-16v-32a16 16 0 00-16-16H16a16 16 0 00-16 16v32a16 16 0 0016 16zm416 192H16a16 16 0 00-16 16v32a16 16 0 0016 16h416a16 16 0 0016-16v-32a16 16 0 00-16-16zm3.17-384H172.83A12.82 12.82 0 00160 44.83v38.34A12.82 12.82 0 00172.83 96h262.34A12.82 12.82 0 00448 83.17V44.83A12.82 12.82 0 00435.17 32zm0 256H172.83A12.82 12.82 0 00160 300.83v38.34A12.82 12.82 0 00172.83 352h262.34A12.82 12.82 0 00448 339.17v-38.34A12.82 12.82 0 00435.17 288z' - }); - function P() { - return (P = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - var M = i.a.createElement('path', { - fill: 'currentColor', - d: - 'M432 160H16a16 16 0 00-16 16v32a16 16 0 0016 16h416a16 16 0 0016-16v-32a16 16 0 00-16-16zm0 256H16a16 16 0 00-16 16v32a16 16 0 0016 16h416a16 16 0 0016-16v-32a16 16 0 00-16-16zM108.1 96h231.81A12.09 12.09 0 00352 83.9V44.09A12.09 12.09 0 00339.91 32H108.1A12.09 12.09 0 0096 44.09V83.9A12.1 12.1 0 00108.1 96zm231.81 256A12.09 12.09 0 00352 339.9v-39.81A12.09 12.09 0 00339.91 288H108.1A12.09 12.09 0 0096 300.09v39.81a12.1 12.1 0 0012.1 12.1z' - }); - function L() { - return (L = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - var D = i.a.createElement( - 'defs', - null, - i.a.createElement('path', { - id: 'vertical-align-bottom_svg__a', - d: - 'M24.184 24c.727 0 1.316.448 1.316 1s-.59 1-1.316 1H1.816C1.089 26 .5 25.552.5 25s.59-1 1.316-1h22.368zM13 4c.552 0 1 .61 1 1.364v11.325l3.306.001a.5.5 0 01.41.788l-.056.066-4.308 4.307a.5.5 0 01-.638.058l-.069-.058-4.308-4.307a.5.5 0 01.268-.847l.086-.007L12 16.689V5.364C12 4.61 12.448 4 13 4z' - }) - ), - j = i.a.createElement( - 'g', - { fill: 'none', fillRule: 'evenodd' }, - i.a.createElement( - 'mask', - { id: 'vertical-align-bottom_svg__b', fill: '#fff' }, - i.a.createElement('use', { - xlinkHref: '#vertical-align-bottom_svg__a' - }) - ), - i.a.createElement('use', { - fill: '#000', - fillRule: 'nonzero', - xlinkHref: '#vertical-align-bottom_svg__a' - }), - i.a.createElement( - 'g', - { - fill: '#000', - mask: 'url(#vertical-align-bottom_svg__b)' - }, - i.a.createElement('path', { - d: 'M-160-36.09h340v100h-340z' - }) - ) - ); - function R() { - return (R = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - var N = i.a.createElement( - 'defs', - null, - i.a.createElement('path', { - id: 'vertical-align-middle_svg__a', - d: - 'M13.352 18.146l4.308 4.308a.5.5 0 01-.354.854L14 23.307V28.5a1 1 0 01-2 0v-5.193H8.691a.5.5 0 01-.354-.853l4.308-4.308a.5.5 0 01.707 0zM24.184 14c.727 0 1.316.448 1.316 1s-.59 1-1.316 1H1.816C1.089 16 .5 15.552.5 15s.59-1 1.316-1h22.368zM13 .5a1 1 0 011 1v5.19h3.306a.5.5 0 01.41.788l-.056.066-4.308 4.307a.5.5 0 01-.638.058l-.069-.058-4.308-4.307a.5.5 0 01.268-.847l.086-.007H12V1.5a1 1 0 011-1z' - }) - ), - z = i.a.createElement( - 'g', - { fill: 'none', fillRule: 'evenodd' }, - i.a.createElement( - 'mask', - { id: 'vertical-align-middle_svg__b', fill: '#fff' }, - i.a.createElement('use', { - xlinkHref: '#vertical-align-middle_svg__a' - }) - ), - i.a.createElement('use', { - fill: '#000', - fillRule: 'nonzero', - xlinkHref: '#vertical-align-middle_svg__a' - }), - i.a.createElement( - 'g', - { - fill: '#000', - mask: 'url(#vertical-align-middle_svg__b)' - }, - i.a.createElement('path', { - d: 'M-160-36.09h340v100h-340z' - }) - ) - ); - function I() { - return (I = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - var F = i.a.createElement( - 'defs', - null, - i.a.createElement('path', { - id: 'vertical-align-top_svg__a', - d: - 'M13.352 8.146l4.308 4.308a.5.5 0 01-.354.854L14 13.307v11.33c0 .752-.448 1.363-1 1.363s-1-.61-1-1.364V13.307H8.691a.5.5 0 01-.354-.853l4.308-4.308a.5.5 0 01.707 0zM24.184 4c.727 0 1.316.448 1.316 1s-.59 1-1.316 1H1.816C1.089 6 .5 5.552.5 5s.59-1 1.316-1h22.368z' - }) - ), - V = i.a.createElement( - 'g', - { fill: 'none', fillRule: 'evenodd' }, - i.a.createElement( - 'mask', - { id: 'vertical-align-top_svg__b', fill: '#fff' }, - i.a.createElement('use', { - xlinkHref: '#vertical-align-top_svg__a' - }) - ), - i.a.createElement('use', { - fill: '#000', - fillRule: 'nonzero', - xlinkHref: '#vertical-align-top_svg__a' - }), - i.a.createElement( - 'g', - { fill: '#000', mask: 'url(#vertical-align-top_svg__b)' }, - i.a.createElement('path', { - d: 'M-160-36.09h340v100h-340z' - }) - ) - ); - function B(t, e, n) { - return ( - e in t - ? Object.defineProperty(t, e, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (t[e] = n), - t - ); - } - var G = { - metric: { - query: { - analysis_type: 'count', - event_collection: 'purchases', - filters: [], - group_by: null, - interval: null, - timeframe: { start: '2014-01-01', end: '2015-01-01' }, - timezone: 3600 - }, - result: 255 - }, - bar: { - query: { - analysis_type: 'count', - event_collection: 'mobile_purchases', - timeframe: { - start: '2019-03-20T00:00:00.000-00:00', - end: '2019-03-26T00:00:00.000-00:00' - }, - group_by: ['product.name'], - interval: 'daily', - timezone: 7200 - }, - result: [ - { - value: [ - { 'product.name': 'apps', result: 53 }, - { 'product.name': 'books', result: 47 }, - { 'product.name': 'games', result: 24 }, - { 'product.name': 'sounds', result: 76 } - ], - timeframe: { - start: '2019-03-20T00:00:00.000Z', - end: '2019-03-21T00:00:00.000Z' - } - }, - { - value: [ - { 'product.name': 'apps', result: 32 }, - { 'product.name': 'books', result: 24 }, - { 'product.name': 'games', result: 56 }, - { 'product.name': 'sounds', result: 32 } - ], - timeframe: { - start: '2019-03-21T00:00:00.000Z', - end: '2019-03-22T00:00:00.000Z' - } - }, - { - value: [ - { 'product.name': 'apps', result: 27 }, - { 'product.name': 'books', result: 32 }, - { 'product.name': 'games', result: 18 }, - { 'product.name': 'sounds', result: 33 } - ], - timeframe: { - start: '2019-03-22T00:00:00.000Z', - end: '2019-03-23T00:00:00.000Z' - } - }, - { - value: [ - { 'product.name': 'apps', result: 68 }, - { 'product.name': 'books', result: 56 }, - { 'product.name': 'games', result: 65 }, - { 'product.name': 'sounds', result: 59 } - ], - timeframe: { - start: '2019-03-23T00:00:00.000Z', - end: '2019-03-24T00:00:00.000Z' - } - }, - { - value: [ - { 'product.name': 'apps', result: 38 }, - { 'product.name': 'books', result: 48 }, - { 'product.name': 'games', result: 50 }, - { 'product.name': 'sounds', result: 26 } - ], - timeframe: { - start: '2019-03-24T00:00:00.000Z', - end: '2019-03-25T00:00:00.000Z' - } - }, - { - value: [ - { 'product.name': 'apps', result: 34 }, - { 'product.name': 'books', result: 15 }, - { 'product.name': 'games', result: 18 }, - { 'product.name': 'sounds', result: 14 } - ], - timeframe: { - start: '2019-03-25T00:00:00.000Z', - end: '2019-03-26T00:00:00.000Z' - } - } - ] - }, - line: { - query: { - analysis_type: 'count', - event_collection: 'mobile_purchases', - timeframe: { - start: '2019-03-20T00:00:00.000-00:00', - end: '2019-03-26T00:00:00.000-00:00' - }, - group_by: ['product.name'], - interval: 'daily', - timezone: 7200 - }, - result: [ - { - value: [ - { 'product.name': 'apps', result: 53 }, - { 'product.name': 'books', result: 47 }, - { 'product.name': 'games', result: 24 }, - { 'product.name': 'sounds', result: 76 } - ], - timeframe: { - start: '2019-03-20T00:00:00.000Z', - end: '2019-03-21T00:00:00.000Z' - } - }, - { - value: [ - { 'product.name': 'apps', result: 32 }, - { 'product.name': 'books', result: 24 }, - { 'product.name': 'games', result: 56 }, - { 'product.name': 'sounds', result: 32 } - ], - timeframe: { - start: '2019-03-21T00:00:00.000Z', - end: '2019-03-22T00:00:00.000Z' - } - }, - { - value: [ - { 'product.name': 'apps', result: 27 }, - { 'product.name': 'books', result: 32 }, - { 'product.name': 'games', result: 18 }, - { 'product.name': 'sounds', result: 33 } - ], - timeframe: { - start: '2019-03-22T00:00:00.000Z', - end: '2019-03-23T00:00:00.000Z' - } - }, - { - value: [ - { 'product.name': 'apps', result: 68 }, - { 'product.name': 'books', result: 56 }, - { 'product.name': 'games', result: 65 }, - { 'product.name': 'sounds', result: 59 } - ], - timeframe: { - start: '2019-03-23T00:00:00.000Z', - end: '2019-03-24T00:00:00.000Z' - } - }, - { - value: [ - { 'product.name': 'apps', result: 38 }, - { 'product.name': 'books', result: 48 }, - { 'product.name': 'games', result: 50 }, - { 'product.name': 'sounds', result: 26 } - ], - timeframe: { - start: '2019-03-24T00:00:00.000Z', - end: '2019-03-25T00:00:00.000Z' - } - }, - { - value: [ - { 'product.name': 'apps', result: 34 }, - { 'product.name': 'books', result: 15 }, - { 'product.name': 'games', result: 18 }, - { 'product.name': 'sounds', result: 14 } - ], - timeframe: { - start: '2019-03-25T00:00:00.000Z', - end: '2019-03-26T00:00:00.000Z' - } - } - ] - }, - spline: { - query: { - analysis_type: 'count', - event_collection: 'mobile_purchases', - timeframe: { - start: '2019-03-20T00:00:00.000-00:00', - end: '2019-03-26T00:00:00.000-00:00' - }, - group_by: ['product.name'], - interval: 'daily', - timezone: 7200 - }, - result: [ - { - value: [ - { 'product.name': 'apps', result: 53 }, - { 'product.name': 'books', result: 47 }, - { 'product.name': 'games', result: 24 }, - { 'product.name': 'sounds', result: 76 } - ], - timeframe: { - start: '2019-03-20T00:00:00.000Z', - end: '2019-03-21T00:00:00.000Z' - } - }, - { - value: [ - { 'product.name': 'apps', result: 32 }, - { 'product.name': 'books', result: 24 }, - { 'product.name': 'games', result: 56 }, - { 'product.name': 'sounds', result: 32 } - ], - timeframe: { - start: '2019-03-21T00:00:00.000Z', - end: '2019-03-22T00:00:00.000Z' - } - }, - { - value: [ - { 'product.name': 'apps', result: 27 }, - { 'product.name': 'books', result: 32 }, - { 'product.name': 'games', result: 18 }, - { 'product.name': 'sounds', result: 33 } - ], - timeframe: { - start: '2019-03-22T00:00:00.000Z', - end: '2019-03-23T00:00:00.000Z' - } - }, - { - value: [ - { 'product.name': 'apps', result: 68 }, - { 'product.name': 'books', result: 56 }, - { 'product.name': 'games', result: 65 }, - { 'product.name': 'sounds', result: 59 } - ], - timeframe: { - start: '2019-03-23T00:00:00.000Z', - end: '2019-03-24T00:00:00.000Z' - } - }, - { - value: [ - { 'product.name': 'apps', result: 38 }, - { 'product.name': 'books', result: 48 }, - { 'product.name': 'games', result: 50 }, - { 'product.name': 'sounds', result: 26 } - ], - timeframe: { - start: '2019-03-24T00:00:00.000Z', - end: '2019-03-25T00:00:00.000Z' - } - }, - { - value: [ - { 'product.name': 'apps', result: 34 }, - { 'product.name': 'books', result: 15 }, - { 'product.name': 'games', result: 18 }, - { 'product.name': 'sounds', result: 14 } - ], - timeframe: { - start: '2019-03-25T00:00:00.000Z', - end: '2019-03-26T00:00:00.000Z' - } - } - ] - }, - step: { - query: { - analysis_type: 'count', - event_collection: 'mobile_purchases', - timeframe: { - start: '2019-03-20T00:00:00.000-00:00', - end: '2019-03-26T00:00:00.000-00:00' - }, - group_by: ['product.name'], - interval: 'daily', - timezone: 7200 - }, - result: [ - { - value: [ - { 'product.name': 'apps', result: 53 }, - { 'product.name': 'books', result: 47 }, - { 'product.name': 'games', result: 24 }, - { 'product.name': 'sounds', result: 76 } - ], - timeframe: { - start: '2019-03-20T00:00:00.000Z', - end: '2019-03-21T00:00:00.000Z' - } - }, - { - value: [ - { 'product.name': 'apps', result: 32 }, - { 'product.name': 'books', result: 24 }, - { 'product.name': 'games', result: 56 }, - { 'product.name': 'sounds', result: 32 } - ], - timeframe: { - start: '2019-03-21T00:00:00.000Z', - end: '2019-03-22T00:00:00.000Z' - } - }, - { - value: [ - { 'product.name': 'apps', result: 27 }, - { 'product.name': 'books', result: 32 }, - { 'product.name': 'games', result: 18 }, - { 'product.name': 'sounds', result: 33 } - ], - timeframe: { - start: '2019-03-22T00:00:00.000Z', - end: '2019-03-23T00:00:00.000Z' - } - }, - { - value: [ - { 'product.name': 'apps', result: 68 }, - { 'product.name': 'books', result: 56 }, - { 'product.name': 'games', result: 65 }, - { 'product.name': 'sounds', result: 59 } - ], - timeframe: { - start: '2019-03-23T00:00:00.000Z', - end: '2019-03-24T00:00:00.000Z' - } - }, - { - value: [ - { 'product.name': 'apps', result: 38 }, - { 'product.name': 'books', result: 48 }, - { 'product.name': 'games', result: 50 }, - { 'product.name': 'sounds', result: 26 } - ], - timeframe: { - start: '2019-03-24T00:00:00.000Z', - end: '2019-03-25T00:00:00.000Z' - } - }, - { - value: [ - { 'product.name': 'apps', result: 34 }, - { 'product.name': 'books', result: 15 }, - { 'product.name': 'games', result: 18 }, - { 'product.name': 'sounds', result: 14 } - ], - timeframe: { - start: '2019-03-25T00:00:00.000Z', - end: '2019-03-26T00:00:00.000Z' - } - } - ] - }, - area: { - query: { - analysis_type: 'count', - event_collection: 'mobile_purchases', - timeframe: { - start: '2019-03-20T00:00:00.000-00:00', - end: '2019-03-26T00:00:00.000-00:00' - }, - group_by: ['product.name'], - interval: 'daily', - timezone: 7200 - }, - result: [ - { - value: [ - { 'product.name': 'apps', result: 53 }, - { 'product.name': 'books', result: 47 }, - { 'product.name': 'games', result: 24 }, - { 'product.name': 'sounds', result: 76 } - ], - timeframe: { - start: '2019-03-20T00:00:00.000Z', - end: '2019-03-21T00:00:00.000Z' - } - }, - { - value: [ - { 'product.name': 'apps', result: 32 }, - { 'product.name': 'books', result: 24 }, - { 'product.name': 'games', result: 56 }, - { 'product.name': 'sounds', result: 32 } - ], - timeframe: { - start: '2019-03-21T00:00:00.000Z', - end: '2019-03-22T00:00:00.000Z' - } - }, - { - value: [ - { 'product.name': 'apps', result: 27 }, - { 'product.name': 'books', result: 32 }, - { 'product.name': 'games', result: 18 }, - { 'product.name': 'sounds', result: 33 } - ], - timeframe: { - start: '2019-03-22T00:00:00.000Z', - end: '2019-03-23T00:00:00.000Z' - } - }, - { - value: [ - { 'product.name': 'apps', result: 68 }, - { 'product.name': 'books', result: 56 }, - { 'product.name': 'games', result: 65 }, - { 'product.name': 'sounds', result: 59 } - ], - timeframe: { - start: '2019-03-23T00:00:00.000Z', - end: '2019-03-24T00:00:00.000Z' - } - }, - { - value: [ - { 'product.name': 'apps', result: 38 }, - { 'product.name': 'books', result: 48 }, - { 'product.name': 'games', result: 50 }, - { 'product.name': 'sounds', result: 26 } - ], - timeframe: { - start: '2019-03-24T00:00:00.000Z', - end: '2019-03-25T00:00:00.000Z' - } - }, - { - value: [ - { 'product.name': 'apps', result: 34 }, - { 'product.name': 'books', result: 15 }, - { 'product.name': 'games', result: 18 }, - { 'product.name': 'sounds', result: 14 } - ], - timeframe: { - start: '2019-03-25T00:00:00.000Z', - end: '2019-03-26T00:00:00.000Z' - } - } - ] - }, - pie: { - query: { - analysis_type: 'count', - event_collection: 'mobile_purchases', - timeframe: { - start: '2019-03-20T00:00:00.000-00:00', - end: '2019-03-26T00:00:00.000-00:00' - }, - group_by: ['product.name'], - timezone: 7200 - }, - result: [ - { 'product.name': 'apps', result: 252 }, - { 'product.name': 'books', result: 222 }, - { 'product.name': 'games', result: 231 }, - { 'product.name': 'sounds', result: 240 } - ] - }, - donut: { - query: { - analysis_type: 'count', - event_collection: 'mobile_purchases', - timeframe: { - start: '2019-03-20T00:00:00.000-00:00', - end: '2019-03-26T00:00:00.000-00:00' - }, - group_by: ['product.name'], - timezone: 7200 - }, - result: [ - { 'product.name': 'apps', result: 252 }, - { 'product.name': 'books', result: 222 }, - { 'product.name': 'games', result: 231 }, - { 'product.name': 'sounds', result: 240 } - ] - }, - gauge: { - query: { - analysis_type: 'count', - event_collection: 'mobile_purchases', - timeframe: { - start: '2019-03-21T00:00:00.000-00:00', - end: '2019-03-22T00:00:00.000-00:00' - }, - filters: [ - { - property_name: 'product.name', - operator: 'eq', - property_value: 'games' - } - ], - timezone: 7200 - }, - result: 56 - }, - funnel: { - steps: [ - { - with_actors: !1, - actor_property: 'user.uuid', - filters: [], - timeframe: { - start: '2019-03-13T00:00:00+00:00', - end: '2019-08-14T00:00:00+00:00' - }, - timezone: null, - event_collection: 'pageviews', - optional: !1, - inverted: !1 - }, - { - with_actors: !1, - actor_property: 'user.uuid', - filters: [], - timeframe: { - start: '2019-03-13T00:00:00+00:00', - end: '2019-08-14T00:00:00+00:00' - }, - timezone: null, - event_collection: 'signups', - optional: !1, - inverted: !1 - }, - { - with_actors: !1, - actor_property: 'user.uuid', - filters: [], - timeframe: { - start: '2019-03-13T00:00:00+00:00', - end: '2019-08-14T00:00:00+00:00' - }, - timezone: null, - event_collection: 'purchases', - optional: !1, - inverted: !1 - } - ], - result: [1128, 317, 89] - }, - 'horizontal-funnel': { - steps: [ - { - with_actors: !1, - actor_property: 'user.uuid', - filters: [], - timeframe: { - start: '2019-03-13T00:00:00+00:00', - end: '2019-08-14T00:00:00+00:00' - }, - timezone: null, - event_collection: 'pageviews', - optional: !1, - inverted: !1 - }, - { - with_actors: !1, - actor_property: 'user.uuid', - filters: [], - timeframe: { - start: '2019-03-13T00:00:00+00:00', - end: '2019-08-14T00:00:00+00:00' - }, - timezone: null, - event_collection: 'signups', - optional: !1, - inverted: !1 - }, - { - with_actors: !1, - actor_property: 'user.uuid', - filters: [], - timeframe: { - start: '2019-03-13T00:00:00+00:00', - end: '2019-08-14T00:00:00+00:00' - }, - timezone: null, - event_collection: 'purchases', - optional: !1, - inverted: !1 - } - ], - result: [1128, 317, 89] - }, - 'funnel-3d': { - steps: [ - { - with_actors: !1, - actor_property: 'user.uuid', - filters: [], - timeframe: { - start: '2019-03-13T00:00:00+00:00', - end: '2019-08-14T00:00:00+00:00' - }, - timezone: null, - event_collection: 'pageviews', - optional: !1, - inverted: !1 - }, - { - with_actors: !1, - actor_property: 'user.uuid', - filters: [], - timeframe: { - start: '2019-03-13T00:00:00+00:00', - end: '2019-08-14T00:00:00+00:00' - }, - timezone: null, - event_collection: 'banner_visibility', - optional: !1, - inverted: !1 - }, - { - with_actors: !1, - actor_property: 'user.uuid', - filters: [], - timeframe: { - start: '2019-03-13T00:00:00+00:00', - end: '2019-08-14T00:00:00+00:00' - }, - timezone: null, - event_collection: 'banner_clicks', - optional: !1, - inverted: !1 - }, - { - with_actors: !1, - actor_property: 'user.uuid', - filters: [], - timeframe: { - start: '2019-03-13T00:00:00+00:00', - end: '2019-08-14T00:00:00+00:00' - }, - timezone: null, - event_collection: 'signups', - optional: !1, - inverted: !1 - } - ], - result: [1128, 848, 581, 317] - }, - 'horizontal-funnel-3d': { - steps: [ - { - with_actors: !1, - actor_property: 'user.uuid', - filters: [], - timeframe: { - start: '2019-03-13T00:00:00+00:00', - end: '2019-08-14T00:00:00+00:00' - }, - timezone: null, - event_collection: 'pageviews', - optional: !1, - inverted: !1 - }, - { - with_actors: !1, - actor_property: 'user.uuid', - filters: [], - timeframe: { - start: '2019-03-13T00:00:00+00:00', - end: '2019-08-14T00:00:00+00:00' - }, - timezone: null, - event_collection: 'banner_visibility', - optional: !1, - inverted: !1 - }, - { - with_actors: !1, - actor_property: 'user.uuid', - filters: [], - timeframe: { - start: '2019-03-13T00:00:00+00:00', - end: '2019-08-14T00:00:00+00:00' - }, - timezone: null, - event_collection: 'banner_clicks', - optional: !1, - inverted: !1 - }, - { - with_actors: !1, - actor_property: 'user.uuid', - filters: [], - timeframe: { - start: '2019-03-13T00:00:00+00:00', - end: '2019-08-14T00:00:00+00:00' - }, - timezone: null, - event_collection: 'signups', - optional: !1, - inverted: !1 - } - ], - result: [1128, 848, 581, 317] - }, - choropleth: { - query: { - analysis_type: 'count', - event_collection: 'homepage_views', - timeframe: { - start: '2019-04-13T00:00:00.000-00:00', - end: '2019-04-14T00:00:00.000-00:00' - }, - group_by: ['geo.country'], - timezone: 3600 - }, - result: [ - { 'geo.country': 'Afghanistan', result: 49 }, - { 'geo.country': 'Albania', result: 61 }, - { 'geo.country': 'Algeria', result: 2 }, - { 'geo.country': 'Andorra', result: 1 }, - { 'geo.country': 'Angola', result: 15 }, - { 'geo.country': 'Antarctica', result: 23 }, - { 'geo.country': 'Argentina', result: 479 }, - { 'geo.country': 'Armenia', result: 73 }, - { 'geo.country': 'Australia', result: 339 }, - { 'geo.country': 'Austria', result: 10 }, - { 'geo.country': 'Azerbaijan', result: 71 }, - { 'geo.country': 'Bahamas', result: 59 }, - { 'geo.country': 'Bangladesh', result: 3 }, - { 'geo.country': 'Belarus', result: 9 }, - { 'geo.country': 'Belgium', result: 1 }, - { 'geo.country': 'Bolivia', result: 34 }, - { 'geo.country': 'Botswana', result: 7 }, - { 'geo.country': 'Brazil', result: 879 }, - { 'geo.country': 'Bulgaria', result: 3 }, - { 'geo.country': 'Cambodia', result: 52 }, - { 'geo.country': 'Cameroon', result: 3 }, - { 'geo.country': 'Canada', result: 192 }, - { 'geo.country': 'Chile', result: 37 }, - { 'geo.country': 'China', result: 587 }, - { 'geo.country': 'Colombia', result: 222 }, - { 'geo.country': 'Congo', result: 63 }, - { 'geo.country': 'Croatia', result: 4 }, - { 'geo.country': 'Denmark', result: 455 }, - { 'geo.country': 'Ecuador', result: 39 }, - { 'geo.country': 'Egypt', result: 133 }, - { 'geo.country': 'England', result: 297 }, - { 'geo.country': 'Estonia', result: 31 }, - { 'geo.country': 'Finland', result: 460 }, - { 'geo.country': 'France', result: 452 }, - { 'geo.country': 'Gambia', result: 7 }, - { 'geo.country': 'Germany', result: 155 }, - { 'geo.country': 'Ghana', result: 16 }, - { 'geo.country': 'Greece', result: 30 }, - { 'geo.country': 'Guatemala', result: 9 }, - { 'geo.country': 'Honduras', result: 9 }, - { 'geo.country': 'Hungary', result: 8 }, - { 'geo.country': 'Iceland', result: 18 }, - { 'geo.country': 'India', result: 478 }, - { 'geo.country': 'Indonesia', result: 17 }, - { 'geo.country': 'Iran', result: 40 }, - { 'geo.country': 'Iraq', result: 17 }, - { 'geo.country': 'Ireland', result: 46 }, - { 'geo.country': 'Israel', result: 28 }, - { 'geo.country': 'Italy', result: 25 }, - { 'geo.country': 'Jamaica', result: 21 }, - { 'geo.country': 'Japan', result: 97 }, - { 'geo.country': 'Liechtenstein', result: 22 }, - { 'geo.country': 'Madagascar', result: 9 }, - { 'geo.country': 'Malta', result: 1 }, - { 'geo.country': 'Mexico', result: 31 }, - { 'geo.country': 'Moldova', result: 39 }, - { 'geo.country': 'Mongolia', result: 54 }, - { 'geo.country': 'Netherlands', result: 28 }, - { 'geo.country': 'New Zealand', result: 16 }, - { 'geo.country': 'Norway', result: 22 }, - { 'geo.country': 'Pakistan', result: 45 }, - { 'geo.country': 'Paraguay', result: 59 }, - { 'geo.country': 'Poland', result: 667 }, - { 'geo.country': 'Portugal', result: 29 }, - { 'geo.country': 'Romania', result: 1 }, - { 'geo.country': 'Russia', result: 600 }, - { 'geo.country': 'Samoa', result: 62 }, - { 'geo.country': 'Scotland', result: 9 }, - { 'geo.country': 'Senegal', result: 15 }, - { 'geo.country': 'Serbia', result: 17 }, - { 'geo.country': 'Singapore', result: 9 }, - { 'geo.country': 'Slovakia', result: 27 }, - { 'geo.country': 'Slovenia', result: 1 }, - { 'geo.country': 'Somalia', result: 9 }, - { 'geo.country': 'South Korea', result: 61 }, - { 'geo.country': 'Spain', result: 60 }, - { 'geo.country': 'Sweden', result: 83 }, - { 'geo.country': 'Switzerland', result: 13 }, - { 'geo.country': 'Thailand', result: 9 }, - { 'geo.country': 'Ukraine', result: 13 }, - { 'geo.country': 'United States', result: 1299 }, - { 'geo.country': 'Uruguay', result: 12 }, - { 'geo.country': 'Venezuela', result: 63 }, - { 'geo.country': 'Vietnam', result: 30 }, - { 'geo.country': 'Wales', result: 91 } - ] - }, - 'choropleth-us': { - query: { - analysis_type: 'count', - event_collection: 'homepage_views', - timeframe: { - start: '2019-04-13T00:00:00.000-00:00', - end: '2019-04-14T00:00:00.000-00:00' - }, - group_by: ['geo.province'], - filters: [ - { - property_name: 'geo.country', - operator: 'eq', - property_value: 'United States' - } - ], - timezone: 3600 - }, - result: [ - { result: 6, 'geo.province': 'Alabama' }, - { result: 17, 'geo.province': 'Alaska' }, - { result: 9, 'geo.province': 'American Samoa' }, - { result: 11, 'geo.province': 'Arizona' }, - { result: 14, 'geo.province': 'Arkansas' }, - { result: 21, 'geo.province': 'California' }, - { result: 11, 'geo.province': 'Connecticut' }, - { result: 53, 'geo.province': 'Delaware' }, - { result: 66, 'geo.province': 'Florida' }, - { result: 26, 'geo.province': 'Georgia' }, - { result: 51, 'geo.province': 'Hawaii' }, - { result: 46, 'geo.province': 'Idaho' }, - { result: 9, 'geo.province': 'Illinois' }, - { result: 77, 'geo.province': 'Indiana' }, - { result: 7, 'geo.province': 'Iowa' }, - { result: 11, 'geo.province': 'Kansas' }, - { result: 15, 'geo.province': 'Kentucky' }, - { result: 157, 'geo.province': 'Louisiana' }, - { result: 27, 'geo.province': 'Maine' }, - { result: 16, 'geo.province': 'Maryland' }, - { result: 19, 'geo.province': 'Massachusetts' }, - { result: 54, 'geo.province': 'Michigan' }, - { result: 21, 'geo.province': 'Minnesota' }, - { result: 8, 'geo.province': 'Mississippi' }, - { result: 51, 'geo.province': 'Missouri' }, - { result: 8, 'geo.province': 'Montana' }, - { result: 25, 'geo.province': 'Nebraska' }, - { result: 61, 'geo.province': 'Nevada' }, - { result: 27, 'geo.province': 'New Jersey' }, - { result: 39, 'geo.province': 'New Mexico' }, - { result: 47, 'geo.province': 'New York' }, - { result: 18, 'geo.province': 'North Carolina' }, - { result: 54, 'geo.province': 'Ohio' }, - { result: 6, 'geo.province': 'Oklahoma' }, - { result: 9, 'geo.province': 'Oregon' }, - { result: 51, 'geo.province': 'Pennsylvania' }, - { result: 50, 'geo.province': 'Tennessee' }, - { result: 2, 'geo.province': 'Texas' }, - { result: 23, 'geo.province': 'Utah' }, - { result: 5, 'geo.province': 'Vermont' }, - { result: 8, 'geo.province': 'Virginia' }, - { result: 15, 'geo.province': 'Washington' }, - { result: 39, 'geo.province': 'Wisconsin' }, - { result: 9, 'geo.province': 'Wyoming' } - ] - }, - table: { - query: { - analysis_type: 'extraction', - event_collection: 'user_action', - timeframe: { - start: '2014-02-02T00:00:00.000-00:00', - end: '2014-02-12T00:00:00.000-00:00' - }, - property_names: [ - 'user.name', - 'battery_level', - 'keen.timestamp' - ], - timezone: 3600 - }, - result: [ - { - battery_level: 0.18, - user: { name: 'Florence Clarke' }, - keen: { timestamp: '2014-02-07T20:29:30.915Z' } - }, - { - battery_level: 0.88, - user: { name: 'Nora Briggs' }, - keen: { timestamp: '2014-02-10T18:39:46.587Z' } - }, - { - battery_level: 0.67, - user: { name: 'Kyle Gonzales' }, - keen: { timestamp: '2014-02-10T10:49:19.067Z' } - }, - { - battery_level: 0.47, - user: { name: 'Mason Chapman' }, - keen: { timestamp: '2014-02-08T14:54:31.495Z' } - }, - { - battery_level: 0.73, - user: { name: 'Mollie Jordan' }, - keen: { timestamp: '2014-02-03T18:12:37.714Z' } - }, - { - battery_level: 0.78, - user: { name: 'Jane Moss' }, - keen: { timestamp: '2014-02-11T10:17:42.047Z' } - }, - { - battery_level: 0.83, - user: { name: 'Donald Boone' }, - keen: { timestamp: '2014-02-06T16:05:58.206Z' } - }, - { - battery_level: 0.25, - user: { name: 'Donald Boone' }, - keen: { timestamp: '2014-02-11T09:39:57.938Z' } - }, - { - battery_level: 0.78, - user: { name: 'Phoebe Mack' }, - keen: { timestamp: '2014-02-07T19:55:08.812Z' } - }, - { - battery_level: 0.3, - user: { name: 'Callie Hansen' }, - keen: { timestamp: '2014-02-09T18:28:00.925Z' } - }, - { - battery_level: 0.18, - user: { name: 'Steven McDonald' }, - keen: { timestamp: '2014-02-02T18:31:27.694Z' } - }, - { - battery_level: 0.35, - user: { name: 'Amanda Obrien' }, - keen: { timestamp: '2014-02-04T12:48:03.587Z' } - }, - { - battery_level: 0.5, - user: { name: 'Joe Chambers' }, - keen: { timestamp: '2014-02-06T12:24:13.906Z' } - }, - { - battery_level: 0.59, - user: { name: 'Fanny Bell' }, - keen: { timestamp: '2014-02-10T12:11:11.525Z' } - }, - { - battery_level: 0.58, - user: { name: 'Dominic Haynes' }, - keen: { timestamp: '2014-02-07T19:23:23.654Z' } - }, - { - battery_level: 0.28, - user: { name: 'Lucas Stone' }, - keen: { timestamp: '2014-02-07T18:49:22.586Z' } - } - ] - } - }, - H = { label: 'Default', value: '' }, - U = [ - { label: 'Auto', value: 'auto' }, - { label: '10', value: 10 }, - { label: '12', value: 12 }, - { label: '14', value: 14 }, - { label: '16', value: 16 }, - { label: '18', value: 18 }, - { label: '20', value: 20 }, - { label: '24', value: 24 }, - { label: '30', value: 30 }, - { label: '36', value: 36 }, - { label: '48', value: 48 }, - { label: '60', value: 60 }, - { label: '72', value: 72 } - ], - q = [ - { - label: i.a.createElement( - function(t) { - return i.a.createElement( - 'svg', - w( - { - 'aria-hidden': 'true', - 'data-prefix': 'fas', - 'data-icon': 'bold', - className: - 'bold-solid_svg__svg-inline--fa bold-solid_svg__fa-bold bold-solid_svg__fa-w-12', - viewBox: '0 0 384 512' - }, - t - ), - S - ); - }, - { width: '0.75rem' } - ), - value: 'bold' - }, - { - label: i.a.createElement( - function(t) { - return i.a.createElement( - 'svg', - E( - { - 'aria-hidden': 'true', - 'data-prefix': 'fas', - 'data-icon': 'italic', - className: - 'italic-solid_svg__svg-inline--fa italic-solid_svg__fa-italic italic-solid_svg__fa-w-10', - viewBox: '0 0 320 512' - }, - t - ), - k - ); - }, - { width: '0.625rem' } - ), - value: 'italic' - } - ], - W = [ - { - label: i.a.createElement( - function(t) { - return i.a.createElement( - 'svg', - A( - { - 'aria-hidden': 'true', - 'data-prefix': 'fas', - 'data-icon': 'align-left', - className: - 'align-left-solid_svg__svg-inline--fa align-left-solid_svg__fa-align-left align-left-solid_svg__fa-w-14', - viewBox: '0 0 448 512' - }, - t - ), - T - ); - }, - { width: '0.75rem' } - ), - value: 'left' - }, - { - label: i.a.createElement( - function(t) { - return i.a.createElement( - 'svg', - P( - { - 'aria-hidden': 'true', - 'data-prefix': 'fas', - 'data-icon': 'align-center', - className: - 'align-center-solid_svg__svg-inline--fa align-center-solid_svg__fa-align-center align-center-solid_svg__fa-w-14', - viewBox: '0 0 448 512' - }, - t - ), - M - ); - }, - { width: '0.75rem' } - ), - value: 'center' - }, - { - label: i.a.createElement( - function(t) { - return i.a.createElement( - 'svg', - C( - { - 'aria-hidden': 'true', - 'data-prefix': 'fas', - 'data-icon': 'align-right', - className: - 'align-right-solid_svg__svg-inline--fa align-right-solid_svg__fa-align-right align-right-solid_svg__fa-w-14', - viewBox: '0 0 448 512' - }, - t - ), - O - ); - }, - { width: '0.75rem' } - ), - value: 'right' - } - ], - X = [ - { - label: i.a.createElement( - function(t) { - return i.a.createElement( - 'svg', - I({ viewBox: '0 0 26 30' }, t), - F, - V - ); - }, - { width: '0.85em' } - ), - value: 'top' - }, - { - label: i.a.createElement( - function(t) { - return i.a.createElement( - 'svg', - R({ viewBox: '0 0 26 30' }, t), - N, - z - ); - }, - { width: '0.85em' } - ), - value: 'middle' - }, - { - label: i.a.createElement( - function(t) { - return i.a.createElement( - 'svg', - L({ viewBox: '0 0 26 30' }, t), - D, - j - ); - }, - { width: '0.85em' } - ), - value: 'bottom' - } - ], - Y = [ - { value: 'default', label: 'Default' }, - { value: 'metric', label: 'Metric' }, - { value: 'table', label: 'Table' }, - { value: 'bar', label: 'Bar' }, - { value: 'line', label: 'Line' }, - { value: 'spline', label: 'Spline' }, - { value: 'step', label: 'Step' }, - { value: 'area', label: 'Area' }, - { value: 'pie', label: 'Pie' }, - { value: 'donut', label: 'Donut' }, - { value: 'gauge', label: 'Gauge' }, - { value: 'funnel', label: 'Funnel' }, - { value: 'horizontal-funnel', label: 'Horizontal funnel' }, - { value: 'funnel-3d', label: 'Funnel 3d' }, - { - value: 'horizontal-funnel-3d', - label: 'Horizontal funnel 3d' - }, - { value: 'choropleth', label: 'Choropleth' } - ], - $ = (function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = null != arguments[e] ? arguments[e] : {}, - r = Object.keys(n); - 'function' == typeof Object.getOwnPropertySymbols && - (r = r.concat( - Object.getOwnPropertySymbols(n).filter(function(t) { - return Object.getOwnPropertyDescriptor( - n, - t - ).enumerable; - }) - )), - r.forEach(function(e) { - B(t, e, n[e]); - }); - } - return t; - })( - { - default: { - colors: [ - '#00bbde', - '#fe6672', - '#eeb058', - '#8a8ad6', - '#ff855c', - '#00cfbb', - '#5a9eed', - '#73d483', - '#c879bb', - '#0099b6', - '#d74d58', - '#cb9141', - '#6b6bb6', - '#d86945', - '#00aa99', - '#4281c9', - '#57b566', - '#ac5c9e', - '#27cceb', - '#ff818b', - '#f6bf71', - '#9b9be1', - '#ff9b79', - '#26dfcd', - '#73aff4', - '#87e096', - '#d88bcb' - ] - } - }, - x - ), - Q = [{ value: 'default', label: 'Default' }]; - Object.keys(x).forEach(function(t) { - var e = { - value: t, - label: t.charAt(0).toUpperCase() + t.slice(1) - }; - Q.push(e); - }); - var K = '#222222', - Z = '#6f6f6f', - J = '#e8e8e8', - tt = '#ffffff', - et = '#f3f5f6', - nt = '#e7e7ec', - rt = [ - { label: 'Top', value: 'top' }, - { label: 'Right', value: 'right' }, - { label: 'Bottom', value: 'bottom' }, - { label: 'Left', value: 'left' } - ], - it = [ - { label: 'Top', value: 'top' }, - { label: 'Middle', value: 'middle' }, - { label: 'Bottom', value: 'bottom' } - ], - ot = [ - { label: 'Left', value: 'left' }, - { label: 'Center', value: 'center' }, - { label: 'Right', value: 'right' } - ], - at = [ - { label: 'Auto', value: '' }, - { label: '1', value: 1 }, - { label: '2', value: 2 }, - { label: '3', value: 3 }, - { label: '4', value: 4 }, - { label: '5', value: 5 }, - { label: '6', value: 6 }, - { label: '7', value: 7 }, - { label: '8', value: 8 }, - { label: '9', value: 9 }, - { label: '10', value: 10 } - ], - st = [ - { label: '1px', value: 1 }, - { label: '2px', value: 2 }, - { label: '4px', value: 4 }, - { label: '8px', value: 8 } - ], - ut = [ - { label: 'Auto', value: 2.5 }, - { label: '1', value: 1 }, - { label: '2', value: 2 }, - { label: '3', value: 3 }, - { label: '4', value: 4 }, - { label: '5', value: 5 }, - { label: '6', value: 6 }, - { label: '7', value: 7 }, - { label: '8', value: 8 }, - { label: '9', value: 9 }, - { label: '10', value: 10 } - ], - lt = [ - { label: 'None', value: '' }, - { label: 'Normal', value: 'normal' }, - { label: 'Percent', value: 'percent' } - ], - ct = [ - { label: 'World', value: 'world' }, - { label: 'United States', value: 'us' } - ], - ft = [ - { label: 'Absolute', value: 'absolute' }, - { label: 'Relative', value: 'relative' } - ], - dt = [ - { label: 'Both sides', value: 'both-sides' }, - { label: 'Left', value: 'left' }, - { label: 'Right', value: 'right' } - ], - ht = 'transparent', - pt = { - appearance: !0, - title: !0, - axis: !0, - legend: !0, - gridline: !0, - series: !0, - tooltip: !0, - table: !0, - funnel: !0 - }, - gt = [ - 'funnel', - 'funnel-3d', - 'horizontal-funnel', - 'horizontal-funnel-3d' - ], - vt = { - chart: Y[0].value, - chartPalette: Q[0].value, - colors: $[Q[0].value].colors, - general_prefix: '', - general_suffix: '', - chart_slider_show: !1, - appearance_background: tt, - appearance_border: J, - appearance_color: tt, - appearance_font_family: H.value, - appearance_font_size: U[11].value, - appearance_font_bold: !0, - appearance_font_italic: !1, - appearance_sparkline: !1, - title_show: !1, - title_text: '', - title_textAlign: ot[0].value, - title_color: K, - title_font_family: H.value, - title_font_size: U[0].value, - title_font_bold: !1, - title_font_italic: !1, - subtitle_show: !1, - subtitle_text: '', - subtitle_textAlign: ot[0].value, - subtitle_color: Z, - subtitle_font_family: H.value, - subtitle_font_size: U[0].value, - subtitle_font_bold: !1, - subtitle_font_italic: !1, - axis_vertical_title_show: !1, - axis_vertical_title_text: '', - axis_vertical_title_textAlign: it[1].value, - axis_vertical_title_color: K, - axis_vertical_title_font_family: H.value, - axis_vertical_title_font_size: U[0].value, - axis_vertical_title_font_bold: !1, - axis_vertical_title_font_italic: !1, - axis_vertical_label_show: !1, - axis_vertical_label_color: K, - axis_vertical_label_font_family: H.value, - axis_vertical_label_font_size: U[0].value, - axis_vertical_label_font_bold: !1, - axis_vertical_label_font_italic: !1, - axis_horizontal_title_show: !1, - axis_horizontal_title_text: '', - axis_horizontal_title_textAlign: ot[0].value, - axis_horizontal_title_color: K, - axis_horizontal_title_font_family: H.value, - axis_horizontal_title_font_size: U[0].value, - axis_horizontal_title_font_bold: !1, - axis_horizontal_title_font_italic: !1, - axis_horizontal_label_show: !1, - axis_horizontal_label_color: K, - axis_horizontal_label_font_family: H.value, - axis_horizontal_label_font_size: U[0].value, - axis_horizontal_label_font_bold: !1, - axis_horizontal_label_font_italic: !1, - legend_show: !1, - legend_color: K, - legend_font_family: H.value, - legend_font_size: U[0].value, - legend_font_bold: !1, - legend_font_italic: !1, - legend_layout: rt[0].value, - legend_position_horizontal: ot[0].value, - legend_position_vertical: it[0].value, - grid_show: !1, - grid_lines_color: J, - grid_lines_count: at[0].value, - subgrid_show: !1, - subgrid_lines_color: J, - subgrid_lines_count: at[0].value, - series_label_show: !1, - series_label_color: K, - series_label_font_family: H.value, - series_label_font_size: U[0].value, - series_label_font_bold: !1, - series_label_font_italic: !1, - series_label_textAlign: ot[1].value, - series_line: st[0].value, - series_points_show: !1, - series_points_size: ut[0].value, - series_stacked: lt[0].value, - tooltip_color: K, - tooltip_font_family: H.value, - tooltip_font_size: U[0].value, - tooltip_font_bold: !1, - tooltip_font_italic: !1, - tooltip_background: tt, - tooltip_border: ht, - tooltip_simpleTooltip: !1, - table_pagination_show: !1, - table_pagination_limit: 1, - table_header_show: !1, - table_header_textAlign: ot[0].value, - table_header_color: K, - table_header_font_family: H.value, - table_header_font_size: U[0].value, - table_header_font_bold: !1, - table_header_font_italic: !1, - table_body_show: !1, - table_body_textAlign: ot[0].value, - table_body_color: K, - table_body_font_family: H.value, - table_body_font_size: U[0].value, - table_body_font_bold: !1, - table_body_font_italic: !1, - table_body_row_alternate_color: et, - table_body_row_hover_background: nt, - choropleth_map: ct[0].value, - choropleth_border_show: !1, - choropleth_border_size: st[0].value, - choropleth_border_color: J, - funnel_lines: !1, - funnel_results: !1, - funnel_percents_show: !1, - funnel_percents_count: ft[0].value, - funnel_percents_decimals: 0, - funnel_hover: !1, - funnel_margin: !1, - funnel_minimal_size: 50, - funnel_effect3d: dt[0].value, - funnel_label_textAlign: ot[1].value, - funnel_label_color: K, - funnel_label_font_family: H.value, - funnel_label_font_size: U[0].value, - funnel_label_font_bold: !1, - funnel_label_font_italic: !1 - }; - function mt() { - return (mt = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - var yt = i.a.createElement( - 'defs', - null, - i.a.createElement('path', { - d: - 'M6.838 2.185l3 3-6.515 6.516-2.675.295a.563.563 0 01-.621-.62l.297-2.678 6.514-6.513zm4.856-.446L10.285.329a1.126 1.126 0 00-1.592 0L7.368 1.656l3 3 1.326-1.325c.44-.44.44-1.152 0-1.591z', - id: 'edit_svg__a' - }) - ), - bt = i.a.createElement( - 'g', - { fill: 'none', fillRule: 'evenodd' }, - i.a.createElement( - 'mask', - { id: 'edit_svg__b', fill: '#fff' }, - i.a.createElement('use', { xlinkHref: '#edit_svg__a' }) - ), - i.a.createElement('use', { - fill: '#000', - fillRule: 'nonzero', - xlinkHref: '#edit_svg__a' - }), - i.a.createElement( - 'g', - { mask: 'url(#edit_svg__b)', fill: '#FDFDFD' }, - i.a.createElement('path', { d: 'M-64-14.436H72v40H-64z' }) - ) - ), - _t = function(t) { - return i.a.createElement( - 'svg', - mt({ width: 12, height: 12 }, t), - yt, - bt - ); - }; - function xt() { - return (xt = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - var wt = i.a.createElement( - 'defs', - null, - i.a.createElement('path', { - d: - 'M.208.286l.038-.04A.84.84 0 011.393.208l.04.038L4.5 3.313 7.567.246A.84.84 0 018.714.208l.04.038a.84.84 0 01.038 1.147l-.038.04L5.687 4.5l3.067 3.067a.84.84 0 01.038 1.147l-.038.04a.84.84 0 01-1.147.038l-.04-.038L4.5 5.687 1.433 8.754a.84.84 0 01-1.147.038l-.04-.038a.84.84 0 01-.038-1.147l.038-.04L3.313 4.5.246 1.433A.84.84 0 01.208.286l.038-.04-.038.04z', - id: 'remove-x_svg__a' - }) - ), - St = i.a.createElement( - 'g', - { - transform: 'translate(.5 .5)', - fill: 'none', - fillRule: 'evenodd' - }, - i.a.createElement( - 'mask', - { id: 'remove-x_svg__b', fill: '#fff' }, - i.a.createElement('use', { xlinkHref: '#remove-x_svg__a' }) - ), - i.a.createElement('use', { - fill: '#979797', - fillRule: 'nonzero', - xlinkHref: '#remove-x_svg__a' - }), - i.a.createElement( - 'g', - { mask: 'url(#remove-x_svg__b)', fill: '#FFF' }, - i.a.createElement('path', { d: 'M-48-10.827H54v30H-48z' }) - ) - ), - Et = function(t) { - return i.a.createElement( - 'svg', - xt({ width: 10, height: 10 }, t), - wt, - St - ); - }; - function kt(t) { - return ( - (function(t) { - if (Array.isArray(t)) { - for ( - var e = 0, n = new Array(t.length); - e < t.length; - e++ - ) - n[e] = t[e]; - return n; - } - })(t) || - (function(t) { - if ( - Symbol.iterator in Object(t) || - '[object Arguments]' === Object.prototype.toString.call(t) - ) - return Array.from(t); - })(t) || - (function() { - throw new TypeError( - 'Invalid attempt to spread non-iterable instance' - ); - })() - ); - } - function At(t, e) { - return ( - (function(t) { - if (Array.isArray(t)) return t; - })(t) || - (function(t, e) { - var n = [], - r = !0, - i = !1, - o = void 0; - try { - for ( - var a, s = t[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !e || n.length !== e); - r = !0 - ); - } catch (t) { - (i = !0), (o = t); - } finally { - try { - r || null == s.return || s.return(); - } finally { - if (i) throw o; - } - } - return n; - })(t, e) || - (function() { - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance' - ); - })() - ); - } - var Tt = Object(m.sortableHandle)(function() { - return i.a.createElement('div', { - style: { - position: 'absolute', - top: 0, - bottom: 0, - left: 0, - right: 0 - } - }); - }), - Ct = Object(m.sortableElement)(function(t) { - var e = t.value, - n = t.index, - o = t.removeItem, - a = t.changeColor, - s = t.shouldOpenPicker, - u = At(Object(r.useState)(!1), 2), - l = u[0], - c = u[1], - f = function() { - return c(!0); - }; - return ( - Object(r.useEffect)(function() { - s && f(); - }, []), - i.a.createElement( - 'div', - { className: 'color-palette__item' }, - i.a.createElement( - 'button', - { - className: 'color-palette__button btn-remove', - type: 'button', - onClick: function() { - return o(n); - }, - style: { opacity: 0 } - }, - i.a.createElement(Et, null) - ), - i.a.createElement( - 'button', - { - className: 'color-palette__button btn-edit', - type: 'button', - onClick: f, - style: { opacity: 0 } - }, - i.a.createElement(_t, null) - ), - i.a.createElement( - 'div', - { - className: 'color-palette__trigger', - style: { - backgroundColor: e, - width: '134px', - height: '34px', - padding: '5px', - border: '1px solid #ccc', - display: 'inline-flex', - alignItems: 'center', - justifyContent: 'center', - position: 'relative' - } - }, - i.a.createElement(Tt, null) - ), - l - ? i.a.createElement( - 'div', - { className: 'color-picker__popover' }, - i.a.createElement('div', { - className: 'color-picker__cover', - onClick: function() { - return c(!1); - } - }), - i.a.createElement(_.SketchPicker, { - className: 'color-picker__picker', - color: e, - onChangeComplete: function(t) { - return a(t.hex, n); - }, - disableAlpha: !0 - }) - ) - : null - ) - ); - }), - Ot = Object(m.sortableContainer)(function(t) { - var e = t.children; - return i.a.createElement( - 'div', - { className: 'color-palette__list' }, - e - ); - }), - Pt = function(t) { - var e = t.colors, - n = t.onChange, - o = At(Object(r.useState)(kt(e)), 2), - a = o[0], - s = o[1], - u = At(Object(r.useState)(!1), 2), - l = u[0], - c = u[1], - d = Object(r.useRef)(), - h = d.current; - Object(r.useEffect)( - function() { - (d.current = a), f()(h, e) || s(e), c(!1); - }, - [e] - ), - Object(r.useEffect)( - function() { - f()(a, e) || n(a), c(!1); - }, - [a] - ); - var p = function(t) { - var e = kt(a); - e.splice(t, 1), s(e); - }, - g = function(t, e) { - var n = kt(a); - (n[e] = t), s(n); - }; - return i.a.createElement( - 'div', - { className: 'color-palette' }, - i.a.createElement( - Ot, - { - onSortEnd: function(t) { - var e = t.oldIndex, - n = t.newIndex, - r = b()(a, e, n); - s(r); - }, - useDragHandle: !0, - axis: 'xy', - helperClass: 'color-palette__item-drag' - }, - a.map(function(t, e) { - return i.a.createElement(Ct, { - key: 'color-'.concat(e), - index: e, - value: t, - removeItem: p, - changeColor: g, - shouldOpenPicker: l - }); - }) - ), - i.a.createElement( - 'button', - { - className: 'btn-list btn', - type: 'button', - onClick: function() { - var t = [].concat(kt(a), ['#222222']); - s(t), c(!0); - } - }, - 'Add' - ) - ); - }, - Mt = Pt; - (Pt.propTypes = { colors: a.a.array, onChange: a.a.func }), - (Pt.defaultProps = { colors: [], onChange: function() {} }); - var Lt = function(t) { - var e = t.items, - n = t.singleChoice, - r = t.groupName, - o = t.activeItem, - a = t.title, - s = t.onChange, - u = e.map(function(t) { - return n - ? i.a.createElement( - 'label', - { - className: 'button-group__label '.concat( - t.value === o.value && 'active' - ), - key: t.value - }, - t.label, - i.a.createElement('input', { - type: 'radio', - value: t.value, - checked: t.value === o.value, - name: r, - onChange: s, - className: 'button-group__input' - }) - ) - : i.a.createElement( - 'label', - { - className: 'button-group__label '.concat( - o[t.value] && 'active' - ), - key: t.value - }, - t.label, - i.a.createElement('input', { - type: 'checkbox', - value: t.value, - checked: o[t.value], - onChange: s, - className: 'button-group__input' - }) - ); - }), - l = i.a.createElement( - 'div', - { className: 'button-group__title' }, - a - ); - return i.a.createElement( - 'div', - { className: 'button-group' }, - a && l, - i.a.createElement( - 'div', - { className: 'button-group__wrapper' }, - u - ) - ); - }, - Dt = Lt; - (Lt.propTypes = { - items: a.a.arrayOf( - a.a.shape({ - label: a.a.oneOfType([a.a.string, a.a.object]), - value: a.a.string - }) - ).isRequired, - singleChoice: a.a.bool.isRequired, - groupName: a.a.string, - activeItem: a.a.shape({ - label: a.a.oneOfType([a.a.string, a.a.object]), - value: a.a.string - }).isRequired, - title: a.a.string, - onChange: a.a.func.isRequired - }), - (Lt.defaultProps = { - items: [], - singleChoice: !1, - activeItem: [], - onChange: function() {} - }); - var jt = n(90); - function Rt(t, e) { - return ( - (function(t) { - if (Array.isArray(t)) return t; - })(t) || - (function(t, e) { - var n = [], - r = !0, - i = !1, - o = void 0; - try { - for ( - var a, s = t[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !e || n.length !== e); - r = !0 - ); - } catch (t) { - (i = !0), (o = t); - } finally { - try { - r || null == s.return || s.return(); - } finally { - if (i) throw o; - } - } - return n; - })(t, e) || - (function() { - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance' - ); - })() - ); - } - var Nt = function(t) { - var e = t.title, - n = t.initialColor, - o = t.defaultColor, - a = t.onChange, - s = Rt(Object(r.useState)({ hex: '#222222' }), 2), - u = s[0], - l = s[1], - c = Rt(Object(r.useState)(!1), 2), - f = c[0], - d = c[1]; - Object(r.useEffect)(function() { - n ? l({ hex: n }) : o && l({ hex: o }); - }, []); - var h = { - input: { - border: 'none', - outline: 'none', - fontSize: '14px' - }, - label: { display: 'none' }, - color: { background: ''.concat(u.hex) } - }, - p = function() { - d(!1); - }, - g = function(t) { - t.hex ? (l(t), a(t, e)) : l({ hex: n }); - }; - return i.a.createElement( - 'div', - { className: 'custom-color-picker' }, - e && - i.a.createElement( - 'div', - { className: 'custom-color-picker__title' }, - e - ), - i.a.createElement( - 'div', - { className: 'custom-color-picker__wrapper' }, - i.a.createElement( - 'div', - { - className: 'custom-color-picker__swatch', - style: h.swatch, - onClick: function() { - d(!f); - } - }, - i.a.createElement('div', { - className: 'custom-color-picker__color', - style: h.color - }) - ), - i.a.createElement(jt.EditableInput, { - style: h, - label: 'hex', - value: u.hex === ht ? 'AUTO' : u.hex, - onChange: g - }), - f - ? i.a.createElement( - 'div', - { - className: 'custom-color-picker__popover', - style: h.popover - }, - i.a.createElement('div', { - className: 'custom-color-picker__cover', - style: h.cover, - onClick: p - }), - i.a.createElement( - 'button', - { - className: 'btn btn__small btn-reset', - onClick: function() { - g({ hex: o || ht }); - } - }, - 'Auto' - ), - i.a.createElement( - 'button', - { className: 'btn-close', onClick: p }, - '×' - ), - i.a.createElement(_.SketchPicker, { - color: u, - onChange: g, - disableAlpha: !0 - }) - ) - : null - ) - ); - }, - zt = Object(_.CustomPicker)(Nt); - (Nt.defaultProps = { title: '', onChange: function() {} }), - (Nt.propTypes = { - title: a.a.string, - initialColor: a.a.string, - onChange: a.a.func.isRequired - }); - var It = n(91), - Ft = n.n(It), - Vt = function(t) { - var e, - n = t.family, - r = t.fonts, - o = t.title, - a = t.onChange; - n && - (Ft.a.load({ google: { families: [n] } }), - (e = { label: n, value: n })); - var s = [H]; - return ( - r && - r.length && - r.forEach(function(t) { - var e = { label: t.family, value: t.family }; - s.push(e); - }), - i.a.createElement( - 'div', - { className: 'font-picker' }, - i.a.createElement( - 'div', - { className: 'font-picker__title' }, - o - ), - i.a.createElement(p.a, { - defaultValue: e || s[0], - options: s, - onChange: a, - classNamePrefix: 'custom-dropdown' - }) - ) - ); - }, - Bt = Vt; - function Gt(t, e, n) { - return ( - e in t - ? Object.defineProperty(t, e, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (t[e] = n), - t - ); - } - (Vt.defaultProps = { - title: '', - fonts: [], - onChange: function() {} - }), - (Vt.propTypes = { - title: a.a.string.isRequired, - family: a.a.string, - fonts: a.a.array, - onChange: a.a.func.isRequired - }); - var Ht = function(t) { - var e = t.isOpen, - n = t.label, - r = t.children, - o = t.onClick, - a = 'accordion__item'; - return ( - e && (a = ''.concat(a, ' open')), - i.a.createElement( - 'div', - { className: a }, - i.a.createElement( - 'div', - { - className: 'accordion__item__heading heading', - onClick: function() { - return o(n); - } - }, - i.a.createElement( - 'svg', - { - xmlns: 'http://www.w3.org/2000/svg', - 'aria-hidden': 'true', - viewBox: '0 0 20 20', - className: 'heading__icon' - }, - i.a.createElement('defs', null), - i.a.createElement('path', { - d: - 'M7 16c-.4-.4-.5-1 0-1.6l3.7-3.9L7 6.6c-.5-.5-.4-1.1 0-1.6.4-.4 1.2-.4 1.6 0 .4.4 4.5 4.7 4.5 4.7.2.2.3.5.3.8s-.1.6-.3.8c0 0-4.1 4.3-4.5 4.7s-1.2.4-1.6 0z' - }) - ), - n - ), - i.a.createElement( - 'div', - { className: 'accordion__item__content', hidden: !e }, - r - ) - ) - ); - }; - (Ht.propTypes = { - isOpen: a.a.bool, - label: a.a.string, - children: a.a.oneOfType([a.a.array, a.a.object]), - onClick: a.a.func - }), - (Ht.defaultProps = { - isOpen: !1, - label: '', - onClick: function() {}, - children: [] - }); - var Ut = function(t) { - var e = t.children, - n = t.allowMultipleOpen, - o = (function(t, e) { - return ( - (function(t) { - if (Array.isArray(t)) return t; - })(t) || - (function(t, e) { - var n = [], - r = !0, - i = !1, - o = void 0; - try { - for ( - var a, s = t[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !e || n.length !== e); - r = !0 - ); - } catch (t) { - (i = !0), (o = t); - } finally { - try { - r || null == s.return || s.return(); - } finally { - if (i) throw o; - } - } - return n; - })(t, e) || - (function() { - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance' - ); - })() - ); - })(Object(r.useState)({}), 2), - a = o[0], - s = o[1], - u = function(t) { - var e = !!a[t], - r = n - ? (function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = - null != arguments[e] ? arguments[e] : {}, - r = Object.keys(n); - 'function' == - typeof Object.getOwnPropertySymbols && - (r = r.concat( - Object.getOwnPropertySymbols(n).filter( - function(t) { - return Object.getOwnPropertyDescriptor( - n, - t - ).enumerable; - } - ) - )), - r.forEach(function(e) { - Gt(t, e, n[e]); - }); - } - return t; - })({}, a, Gt({}, t, !e)) - : Gt({}, t, !e); - s(r); - }; - return i.a.createElement( - 'div', - { className: 'accordion' }, - e.map(function(t) { - return ( - t && - i.a.createElement( - Ht, - { - key: t.props.label, - isOpen: !!a[t.props.label], - label: t.props.label, - onClick: u - }, - t.props.children - ) - ); - }) - ); - }, - qt = Ut; - (Ut.defaultProps = { allowMultipleOpen: !1 }), - (Ut.propTypes = { - allowMultipleOpen: a.a.bool, - children: a.a.array.isRequired - }); - var Wt, - Xt = function(t) { - var e = t.text, - n = e.title, - r = void 0 === n ? '' : n, - o = e.on, - a = void 0 === o ? 'On' : o, - s = e.off, - u = void 0 === s ? 'Off' : s, - l = t.checked, - c = t.onChange, - f = - t.children || - i.a.createElement( - 'span', - { className: 'switcher__title' }, - r - ); - return i.a.createElement( - 'div', - { - className: 'switcher '.concat(t.className && t.className) - }, - i.a.createElement( - 'label', - { className: 'switcher__label' }, - f, - i.a.createElement('input', { - type: 'checkbox', - name: 'on-off-switch', - className: 'switcher__input', - checked: l, - onChange: c - }), - i.a.createElement( - 'div', - { - className: 'switcher__toggle', - 'aria-hidden': 'true' - }, - i.a.createElement('div', { - className: 'switcher__switch' - }) - ), - i.a.createElement( - 'div', - { className: 'switcher__value' }, - i.a.createElement( - 'span', - { className: 'switcher__value__label on' }, - a - ), - i.a.createElement( - 'span', - { className: 'switcher__value__label off' }, - u - ) - ) - ) - ); - }, - Yt = Xt; - function $t(t, e, n) { - return ( - e in t - ? Object.defineProperty(t, e, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (t[e] = n), - t - ); - } - function Qt() { - return (Qt = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - (Xt.defaultProps = { text: {}, onChange: function() {} }), - (Xt.propTypes = { - text: a.a.shape({ - title: a.a.string, - on: a.a.string, - off: a.a.string - }), - checked: a.a.bool.isRequired, - onChange: a.a.func.isRequired - }); - var Kt = function(t) { - var e = t.name, - n = t.type, - o = t.placeholder, - a = t.onChange, - s = t.className, - u = t.value, - l = void 0 === u ? '' : u, - c = t.error, - f = (t.children, t.label), - d = (function(t, e) { - if (null == t) return {}; - var n, - r, - i = (function(t, e) { - if (null == t) return {}; - var n, - r, - i = {}, - o = Object.keys(t); - for (r = 0; r < o.length; r++) - (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); - return i; - })(t, e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(t); - for (r = 0; r < o.length; r++) - (n = o[r]), - e.indexOf(n) >= 0 || - (Object.prototype.propertyIsEnumerable.call( - t, - n - ) && - (i[n] = t[n])); - } - return i; - })(t, [ - 'name', - 'type', - 'placeholder', - 'onChange', - 'className', - 'value', - 'error', - 'children', - 'label' - ]), - h = (function(t, e) { - return ( - (function(t) { - if (Array.isArray(t)) return t; - })(t) || - (function(t, e) { - var n = [], - r = !0, - i = !1, - o = void 0; - try { - for ( - var a, s = t[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !e || n.length !== e); - r = !0 - ); - } catch (t) { - (i = !0), (o = t); - } finally { - try { - r || null == s.return || s.return(); - } finally { - if (i) throw o; - } - } - return n; - })(t, e) || - (function() { - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance' - ); - })() - ); - })(Object(r.useState)(l), 2), - p = h[0], - g = h[1]; - Object(r.useEffect)( - function() { - var t = setTimeout(function() { - a(p); - }, 500); - return function() { - return clearTimeout(t); - }; - }, - [p] - ); - var v = s - ? 'form-input__input '.concat(s) - : 'form-input__input'; - return i.a.createElement( - 'div', - { className: 'form-input' }, - f && - i.a.createElement( - 'label', - { htmlFor: e, className: 'form-input__label' }, - f - ), - i.a.createElement( - 'input', - Qt( - { - name: e, - type: n, - placeholder: o, - onChange: function(t) { - t.persist(), g(t.target.value); - }, - value: p, - className: v, - style: c && { border: 'solid 1px red' } - }, - d - ) - ), - c && i.a.createElement('p', null, c) - ); - }, - Zt = Kt; - (Kt.defaultProps = { type: 'text', className: '' }), - (Kt.propTypes = - ($t( - (Wt = { - name: a.a.string.isRequired, - type: a.a.string, - label: a.a.string, - placeholder: a.a.string - }), - 'type', - a.a.oneOf(['text', 'number', 'password', 'email']) - ), - $t(Wt, 'className', a.a.string), - $t(Wt, 'value', a.a.any), - $t(Wt, 'onChange', a.a.func.isRequired), - Wt)); - var Jt = n(35), - te = n.n(Jt), - ee = n(92), - ne = n.n(ee), - re = n(93), - ie = n.n(re), - oe = (n(229), n(94)); - function ae(t) { - return (ae = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - })(t); - } - function se() { - var t = (function(t, e) { - return ( - e || (e = t.slice(0)), - Object.freeze( - Object.defineProperties(t, { - raw: { value: Object.freeze(e) } - }) - ) - ); - })([ - '\n ', - ' .keen-dataviz {\n ', - '\n ', - '\n }\n ', - ' .chart-title,\n ', - ' .chart-subtitle {\n ', - '\n }\n ', - ' .keen-dataviz,\n ', - ' .c3 svg {\n ', - '\n }\n ', - ' .keen-dataviz .keen-dataviz-title,\n ', - ' .keen-dataviz .keen-dataviz-metric-title,\n ', - ' .chart-title input {\n display: block;\n ', - '\n ', - '\n ', - '\n ', - '\n ', - '\n ', - '\n }\n ', - ' .keen-dataviz .keen-dataviz-subtitle,\n ', - ' .keen-dataviz .keen-dataviz-metric-subtitle,\n ', - ' .chart-subtitle input {\n width: 100%;\n display: block;\n ', - '\n ', - '\n ', - '\n ', - '\n ', - '\n ', - '\n }\n ', - ' .keen-dataviz .c3-axis.c3-axis-y .tick text {\n ', - '\n ', - '\n ', - '\n ', - '\n ', - '\n }\n ', - ' .keen-dataviz .c3-axis.c3-axis-x .tick text {\n ', - '\n ', - '\n ', - '\n ', - '\n ', - '\n }\n ', - ' .keen-dataviz .keen-c3-legend .legend-item-text {\n ', - '\n ', - '\n ', - '\n ', - '\n ', - '\n }\n ', - ' .keen-dataviz .c3-grid line,\n ', - ' .keen-dataviz .chart-lines {\n ', - '\n }\n ', - ' .keen-dataviz .c3-ygrid {\n ', - '\n }\n ', - ' .keen-dataviz .c3-axis .c3-axis-y-label {\n ', - '\n ', - '\n ', - '\n ', - '\n ', - '\n }\n ', - ' .keen-dataviz .c3-axis .c3-axis-x-label {\n ', - '\n ', - '\n ', - '\n ', - '\n ', - '\n }\n ', - ' .keen-dataviz .c3-chart-texts .c3-text {\n ', - '\n ', - '\n ', - '\n ', - '\n ', - '\n }\n ', - ' .keen-dataviz .c3-chart-lines .c3-shape.c3-line {\n ', - '\n }\n ', - ' .keen-dataviz .c3-tooltip {\n ', - '\n ', - '\n ', - '\n ', - '\n ', - '\n ', - '\n ', - '\n }\n ', - ' .keen-dataviz .keen-dataviz-metric-value {\n ', - '\n ', - '\n ', - '\n ', - '\n ', - '\n }\n ', - ' .keen-dataviz-table th {\n ', - '\n ', - '\n ', - '\n ', - '\n ', - '\n ', - '\n }\n ', - ' .keen-dataviz-table tr td,\n ', - ' .keen-dataviz-table .table-data-row {\n ', - '\n ', - '\n ', - '\n ', - '\n ', - '\n ', - '\n }\n ', - ' .keen-dataviz-table .table-data-row:nth-child(even) td {\n ', - '\n }\n ', - ' .keen-dataviz-table .table-data-row:hover td {\n ', - '\n color: inherit;\n }\n ', - ' .keen-dataviz-rendering .text-label {\n display: block;\n ', - '\n ', - '\n ', - '\n ', - '\n ', - '\n }\n ' - ]); - return ( - (se = function() { - return t; - }), - t - ); - } - function ue(t, e) { - if (null == t) return {}; - var n, - r, - i = (function(t, e) { - if (null == t) return {}; - var n, - r, - i = {}, - o = Object.keys(t); - for (r = 0; r < o.length; r++) - (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); - return i; - })(t, e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(t); - for (r = 0; r < o.length; r++) - (n = o[r]), - e.indexOf(n) >= 0 || - (Object.prototype.propertyIsEnumerable.call(t, n) && - (i[n] = t[n])); - } - return i; - } - function le(t) { - var e = (function(t, e) { - if ('object' !== ae(t) || null === t) return t; - var n = t[Symbol.toPrimitive]; - if (void 0 !== n) { - var r = n.call(t, e); - if ('object' !== ae(r)) return r; - throw new TypeError( - '@@toPrimitive must return a primitive value.' - ); - } - return String(t); - })(t, 'string'); - return 'symbol' === ae(e) ? e : String(e); - } - function ce(t) { - for (var e = 1; e < arguments.length; e++) { - var n = null != arguments[e] ? arguments[e] : {}, - r = Object.keys(n); - 'function' == typeof Object.getOwnPropertySymbols && - (r = r.concat( - Object.getOwnPropertySymbols(n).filter(function(t) { - return Object.getOwnPropertyDescriptor(n, t).enumerable; - }) - )), - r.forEach(function(e) { - fe(t, e, n[e]); - }); - } - return t; - } - function fe(t, e, n) { - return ( - e in t - ? Object.defineProperty(t, e, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (t[e] = n), - t - ); - } - function de(t) { - return { - chartBackground: t.appearance_background - ? 'background-color: '.concat(t.appearance_background, ';') - : '', - chartBorder: t.appearance_border - ? 'border-color: '.concat(t.appearance_border, ';') - : '', - chartFont: t.appearance_font_family - ? 'font-family: "'.concat(t.appearance_font_family, '";') - : '', - chartFontSize: - 'auto' !== t.appearance_font_size - ? 'font-size: '.concat(t.appearance_font_size, 'px;') - : '', - chartFontBold: t.appearance_font_bold - ? 'font-weight: bold;' - : '', - chartFontItalic: t.appearance_font_italic - ? 'font-style: italic;' - : '', - chartColor: t.appearance_color - ? 'color: '.concat(t.appearance_color, ';') - : '', - titleTextAlign: 'text-align: '.concat(t.title_textAlign, ';'), - titleColor: t.title_color - ? 'color: '.concat(t.title_color, ';') - : '', - titleFontFamily: t.title_font_family - ? 'font-family: "'.concat(t.title_font_family, '";') - : '', - titleFontSize: - 'auto' !== t.title_font_size - ? 'font-size: '.concat(t.title_font_size, 'px;') - : '', - titleFontBold: t.title_font_bold ? 'font-weight: bold;' : '', - titleFontItalic: t.title_font_italic - ? 'font-style: italic;' - : '', - subtitleTextAlign: 'text-align: '.concat( - t.subtitle_textAlign, - ';' - ), - subtitleColor: t.subtitle_color - ? 'color: '.concat(t.subtitle_color, ';') - : '', - subtitleFontFamily: t.subtitle_font_family - ? 'font-family: "'.concat(t.subtitle_font_family, '";') - : '', - subtitleFontSize: - 'auto' !== t.subtitle_font_size - ? 'font-size: '.concat(t.subtitle_font_size, 'px;') - : '', - subtitleFontBold: t.subtitle_font_bold - ? 'font-weight: bold;' - : '', - subtitleFontItalic: t.subtitle_font_italic - ? 'font-style: italic;' - : '', - axisYTitleFont: t.axis_vertical_title_font_family - ? 'font-family: "'.concat( - t.axis_vertical_title_font_family, - '";' - ) - : '', - axisYTitleFontSize: - 'auto' !== t.axis_vertical_title_font_size - ? 'font-size: '.concat( - t.axis_vertical_title_font_size, - 'px;' - ) - : '', - axisYTitleFontBold: t.axis_vertical_title_font_bold - ? 'font-weight: bold;' - : '', - axisYTitleFontItalic: t.axis_vertical_title_font_italic - ? 'font-style: italic;' - : '', - axisYTitleColor: t.axis_vertical_title_color - ? 'fill: '.concat(t.axis_vertical_title_color, ';') - : '', - axisYLabelFont: t.axis_vertical_label_font_family - ? 'font-family: "'.concat( - t.axis_vertical_label_font_family, - '";' - ) - : '', - axisYLabelFontSize: - 'auto' !== t.axis_vertical_label_font_size - ? 'font-size: '.concat( - t.axis_vertical_label_font_size, - 'px;' - ) - : '', - axisYLabelFontBold: t.axis_vertical_label_font_bold - ? 'font-weight: bold;' - : '', - axisYLabelFontItalic: t.axis_vertical_label_font_italic - ? 'font-style: italic;' - : '', - axisYLabelColor: t.axis_vertical_label_color - ? 'fill: '.concat(t.axis_vertical_label_color, ';') - : 'fill: inherit;', - axisXTitleFont: t.axis_horizontal_title_font_family - ? 'font-family: "'.concat( - t.axis_horizontal_title_font_family, - '";' - ) - : '', - axisXTitleFontSize: - 'auto' !== t.axis_horizontal_title_font_size - ? 'font-size: '.concat( - t.axis_horizontal_title_font_size, - 'px;' - ) - : '', - axisXTitleFontBold: t.axis_horizontal_title_font_bold - ? 'font-weight: bold;' - : '', - axisXTitleFontItalic: t.axis_horizontal_title_font_italic - ? 'font-style: italic;' - : '', - axisXTitleColor: t.axis_horizontal_title_color - ? 'fill: '.concat(t.axis_horizontal_title_color, ';') - : '', - axisXLabelFont: t.axis_horizontal_label_font_family - ? 'font-family: "'.concat( - t.axis_horizontal_label_font_family, - '";' - ) - : '', - axisXLabelFontSize: - 'auto' !== t.axis_horizontal_label_font_size - ? 'font-size: '.concat( - t.axis_horizontal_label_font_size, - 'px;' - ) - : '', - axisXLabelFontBold: t.axis_horizontal_label_font_bold - ? 'font-weight: bold;' - : '', - axisXLabelFontItalic: t.axis_horizontal_label_font_italic - ? 'font-style: italic;' - : '', - axisXLabelColor: t.axis_horizontal_label_color - ? 'fill: '.concat(t.axis_horizontal_label_color, ';') - : '', - legendFont: t.legend_font_family - ? 'font-family: "'.concat(t.legend_font_family, '";') - : '', - legendFontSize: - 'auto' !== t.legend_font_size - ? 'font-size: '.concat(t.legend_font_size, 'px;') - : '', - legendFontBold: t.legend_font_bold - ? 'font-weight: bold;' - : '', - legendFontItalic: t.legend_font_italic - ? 'font-style: italic;' - : '', - legendColor: t.legend_color - ? 'color: '.concat(t.legend_color, ';') - : '', - gridLineShow: t.grid_show - ? 'stroke-opacity: 1;' - : 'stroke-opacity: 0;', - gridLineColor: t.grid_lines_color - ? 'stroke: '.concat(t.grid_lines_color) - : '', - subgridLineColor: t.subgrid_lines_color - ? 'stroke: '.concat(t.subgrid_lines_count) - : '', - seriesLabelFont: t.series_label_font_family - ? 'font-family: "'.concat(t.series_label_font_family, '";') - : '', - seriesLabelFontSize: - 'auto' !== t.series_label_font_size - ? 'font-size: '.concat(t.series_label_font_size, 'px;') - : '', - seriesLabelFontBold: t.series_label_font_bold - ? 'font-weight: bold;' - : '', - seriesLabelFontItalic: t.series_label_font_italic - ? 'font-style: italic;' - : '', - seriesLabelColor: t.series_label_color - ? 'fill: '.concat(t.series_label_color, ' !important;') - : '', - seriesLineThickness: 'stroke-width: '.concat( - t.series_line, - 'px;' - ), - tooltipFont: t.tooltip_font_family - ? 'font-family: "'.concat(t.tooltip_font_family, '";') - : '', - tooltipFontSize: - 'auto' !== t.tooltip_font_size - ? 'font-size: '.concat(t.tooltip_font_size, 'px;') - : '', - tooltipFontBold: t.tooltip_font_bold - ? 'font-weight: bold;' - : '', - tooltipFontItalic: t.tooltip_font_italic - ? 'font-style: italic;' - : '', - tooltipColor: t.tooltip_color - ? 'color: '.concat(t.tooltip_color, ';') - : '', - tooltipBackground: t.tooltip_background - ? 'background-color: '.concat(t.tooltip_background, ';') - : '', - tooltipBorder: - t.tooltip_border && t.tooltip_border !== ht - ? 'border-color: '.concat(t.tooltip_border, ';') - : '', - tableHeaderFont: t.table_header_font_family - ? 'font-family: "'.concat(t.table_header_font_family, '";') - : '', - tableHeaderFontSize: - 'auto' !== t.table_header_font_size - ? 'font-size: '.concat(t.table_header_font_size, 'px;') - : '', - tableHeaderFontBold: t.table_header_font_bold - ? 'font-weight: bold;' - : '', - tableHeaderFontItalic: t.table_header_font_italic - ? 'font-style: italic;' - : '', - tableHeaderTextAlign: 'text-align: '.concat( - t.table_header_textAlign, - ';' - ), - tableHeaderColor: t.table_header_color - ? 'color: '.concat(t.table_header_color, ';') - : '', - tableBodyFont: t.table_body_font_family - ? 'font-family: "'.concat(t.table_body_font_family, '";') - : '', - tableBodyFontSize: - 'auto' !== t.table_body_font_size - ? 'font-size: '.concat(t.table_body_font_size, 'px;') - : '', - tableBodyFontBold: t.table_body_font_bold - ? 'font-weight: bold;' - : '', - tableBodyFontItalic: t.table_body_font_italic - ? 'font-style: italic;' - : '', - tableBodyTextAlign: 'text-align: '.concat( - t.table_body_textAlign, - ';' - ), - tableBodyColor: t.table_body_color - ? 'color: '.concat(t.table_body_color, ';') - : '', - tableBodyRowAltBackground: t.table_body_row_alternate_color - ? 'background-color: '.concat( - t.table_body_row_alternate_color, - ';' - ) - : '', - tableBodyRowHoverBackground: t.table_body_row_hover_background - ? 'background-color: '.concat( - t.table_body_row_hover_background, - ';' - ) - : '', - funnelLabelColor: t.funnel_label_color - ? 'fill: '.concat(t.funnel_label_color, ';') - : '', - funnelLabelFontFamily: t.funnel_label_font_family - ? 'font-family: "'.concat(t.funnel_label_font_family, '";') - : '', - funnelLabelFontSize: - 'auto' !== t.funnel_label_font_size - ? 'font-size: '.concat(t.funnel_label_font_size, 'px;') - : '', - funnelLabelFontBold: t.funnel_label_font_bold - ? 'font-weight: bold;' - : '', - funnelLabelFontItalic: t.funnel_label_font_italic - ? 'font-style: italic;' - : '' - }; - } - function he(t) { - var e = {}, - n = it.map(function(t) { - return t.value; - }), - r = ot.map(function(t) { - return t.value; - }); - if ( - (t.axis_vertical_title_show && - t.axis_vertical_title_text && - l()(e, 'y.label.text', t.axis_vertical_title_text), - t.axis_horizontal_title_show && - t.axis_horizontal_title_text && - l()(e, 'x.label.text', t.axis_horizontal_title_text), - t.axis_vertical_title_textAlign) - ) { - var i = n.includes(t.axis_vertical_title_textAlign) - ? t.axis_vertical_title_textAlign - : n[1]; - l()(e, 'y.label.position', 'outer-'.concat(i)); - } - if (t.axis_horizontal_title_textAlign) { - var o = r.includes(t.axis_horizontal_title_textAlign) - ? t.axis_horizontal_title_textAlign - : r[0]; - l()(e, 'x.label.position', 'outer-'.concat(o)); - } - return ( - 'auto' !== t.axis_horizontal_font_size && - l()(e, 'x.height', 60), - 'auto' !== t.axis_vertical_font_size && - l()(e, 'y.height', 60), - e - ); - } - function pe() { - for ( - var t = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : {}, - e = arguments.length, - n = new Array(e > 1 ? e - 1 : 0), - r = 1; - r < e; - r++ - ) - n[r - 1] = arguments[r]; - if (Array.isArray(n)) { - var i = ce({}, t); - return ( - n.forEach(function(t) { - var e = i, - n = (e[t], ue(e, [t].map(le))); - i = ce({}, n); - }), - i - ); - } - } - function ge(t) { - for ( - var e = arguments.length, - n = new Array(e > 1 ? e - 1 : 0), - r = 1; - r < e; - r++ - ) - n[r - 1] = arguments[r]; - if (Array.isArray(n)) { - if (n.length > 1) { - var i = ce({}, t); - return ( - n.forEach(function(t) { - i = ce({}, ge(i, t)); - }), - i - ); - } - switch (n[0]) { - case 'axis': - return pe( - t, - 'axis_vertical_title_show', - 'axis_vertical_title_text', - 'axis_vertical_title_textAlign', - 'axis_vertical_title_color', - 'axis_vertical_title_font_family', - 'axis_vertical_title_font_size', - 'axis_vertical_title_font_bold', - 'axis_vertical_title_font_italic', - 'axis_vertical_label_show', - 'axis_vertical_label_color', - 'axis_vertical_label_font_family', - 'axis_vertical_label_font_size', - 'axis_vertical_label_font_bold', - 'axis_vertical_label_font_italic', - 'axis_horizontal_title_show', - 'axis_horizontal_title_text', - 'axis_horizontal_title_textAlign', - 'axis_horizontal_title_color', - 'axis_horizontal_title_font_family', - 'axis_horizontal_title_font_size', - 'axis_horizontal_title_font_bold', - 'axis_horizontal_title_font_italic', - 'axis_horizontal_label_show', - 'axis_horizontal_label_color', - 'axis_horizontal_label_font_family', - 'axis_horizontal_label_font_size', - 'axis_horizontal_label_font_bold', - 'axis_horizontal_label_font_italic' - ); - case 'legend': - return pe( - t, - 'legend_show', - 'legend_color', - 'legend_font_family', - 'legend_font_size', - 'legend_font_bold', - 'legend_font_italic', - 'legend_layout', - 'legend_position_horizontal', - 'legend_position_vertical' - ); - case 'grid': - return pe( - t, - 'grid_show', - 'grid_lines_color', - 'grid_lines_count', - 'subgrid_show', - 'subgrid_lines_color', - 'subgrid_lines_count' - ); - case 'series': - return pe( - t, - 'series_label_show', - 'series_label_textAlign', - 'series_label_color', - 'series_label_font_family', - 'series_label_font_size', - 'series_label_font_bold', - 'series_label_font_italic', - 'series_label_textAlign', - 'series_line', - 'series_points_show', - 'series_points_size' - ); - case 'tooltip': - return pe( - t, - 'tooltip_color', - 'tooltip_font_family', - 'tooltip_font_size', - 'tooltip_font_bold', - 'tooltip_font_italic', - 'tooltip_background', - 'tooltip_border' - ); - case 'table': - return pe( - t, - 'table_pagination_show', - 'table_pagination_limit', - 'table_header_show', - 'table_header_textAlign', - 'table_header_color', - 'table_header_font_family', - 'table_header_font_size', - 'table_header_font_bold', - 'table_header_font_italic', - 'table_body_show', - 'table_body_textAlign', - 'table_body_color', - 'table_body_font_family', - 'table_body_font_size', - 'table_body_font_bold', - 'table_body_font_italic', - 'table_body_row_alternate_color', - 'table_body_row_hover_background' - ); - case 'funnel': - return pe( - t, - 'funnel_lines', - 'funnel_results', - 'funnel_percents_show', - 'funnel_percents_count', - 'funnel_percents_decimals', - 'funnel_hover', - 'funnel_margin', - 'funnel_minimal_size', - 'funnel_effect3d', - 'funnel_label_textAlign', - 'funnel_label_color', - 'funnel_label_font_family', - 'funnel_label_font_size', - 'funnel_label_font_bold', - 'funnel_label_font_italic' - ); - default: - return t; - } - } - } - function ve(t, e) { - var n = de(t), - r = e ? '#'.concat(e) : '.keen-theme-builder', - i = new RegExp(/(^[ \t]*\n)/, 'gm'); - return Object(oe.stripIndent)( - se(), - r, - n.chartBackground, - n.chartBorder, - r, - r, - n.chartBackground, - r, - r, - n.chartFont, - r, - r, - r, - n.titleColor, - n.titleTextAlign, - n.titleFontFamily, - n.titleFontSize, - n.titleFontBold, - n.titleFontItalic, - r, - r, - r, - n.subtitleColor, - n.subtitleTextAlign, - n.subtitleFontFamily, - n.subtitleFontSize, - n.subtitleFontBold, - n.subtitleFontItalic, - r, - n.axisYLabelColor, - n.axisYLabelFont, - n.axisYLabelFontSize, - n.axisYLabelFontBold, - n.axisYLabelFontItalic, - r, - n.axisXLabelColor, - n.axisXLabelFont, - n.axisXLabelFontSize, - n.axisXLabelFontBold, - n.axisXLabelFontItalic, - r, - n.legendFont, - n.legendFontSize, - n.legendFontBold, - n.legendFontItalic, - n.legendColor, - r, - r, - n.gridLineColor, - r, - n.gridLineShow, - r, - n.axisYTitleFont, - n.axisYTitleFontSize, - n.axisYTitleFontBold, - n.axisYTitleFontItalic, - n.axisYTitleColor, - r, - n.axisXTitleFont, - n.axisXTitleFontSize, - n.axisXTitleFontBold, - n.axisXTitleFontItalic, - n.axisXTitleColor, - r, - n.seriesLabelFont, - n.seriesLabelFontSize, - n.seriesLabelFontBold, - n.seriesLabelFontItalic, - n.seriesLabelColor, - r, - n.seriesLineThickness, - r, - n.tooltipFont, - n.tooltipFontSize, - n.tooltipFontBold, - n.tooltipFontItalic, - n.tooltipColor, - n.tooltipBackground, - n.tooltipBorder, - r, - n.chartFont, - n.chartFontSize, - n.chartFontBold, - n.chartFontItalic, - n.chartColor, - r, - n.tableHeaderFont, - n.tableHeaderFontSize, - n.tableHeaderFontBold, - n.tableHeaderFontItalic, - n.tableHeaderTextAlign, - n.tableHeaderColor, - r, - r, - n.tableBodyFont, - n.tableBodyFontSize, - n.tableBodyFontBold, - n.tableBodyFontItalic, - n.tableBodyTextAlign, - n.tableBodyColor, - r, - n.tableBodyRowAltBackground, - r, - n.tableBodyRowHoverBackground, - r, - n.funnelLabelColor, - n.funnelLabelFontFamily, - n.funnelLabelFontSize, - n.funnelLabelFontBold, - n.funnelLabelFontItalic - ).replace(i, ''); - } - function me(t, e) { - var n, - r = t.colors || [], - i = !(!t.title_show || !t.title_text) && t.title_text, - o = - t.subtitle_show && t.subtitle_text - ? t.subtitle_text - : void 0, - a = - 'top' === t.legend_layout || 'bottom' === t.legend_layout - ? t.legend_position_horizontal - : t.legend_position_vertical, - s = t.legend_show - ? { - show: t.legend_show, - position: t.legend_layout, - alignment: a - } - : { show: t.legend_show }, - u = he(t), - l = t.series_points_show - ? { show: t.series_points_show, r: t.series_points_size } - : { show: t.series_points_show }, - c = { labels: t.series_label_show }, - f = - ('default' !== t.chart && 'metric' !== t.chart) || - !t.general_prefix - ? void 0 - : t.general_prefix, - d = - ('default' !== t.chart && 'metric' !== t.chart) || - !t.general_suffix - ? void 0 - : t.general_suffix, - h = t.appearance_sparkline ? t.appearance_sparkline : void 0, - p = t.series_stacked ? t.series_stacked : void 0, - g = !!t.chart_slider_show, - v = - (t.tooltip_simpleTooltip, - ('default' !== t.chart && 'table' !== t.chart) || - !t.table_pagination_show - ? {} - : { - pagination: { - limit: parseInt(t.table_pagination_limit) - } - }), - m = - 'default' === t.chart || 'choropleth' === t.chart - ? { - map: t.choropleth_map, - borders: { - show: t.choropleth_border_show, - size: t.choropleth_border_show - ? t.choropleth_border_size - : void 0, - color: t.choropleth_border_show - ? t.choropleth_border_color - : void 0 - }, - showSlider: t.chart_slider_show - } - : {}, - y = - 'default' === t.chart || gt.includes(t.chart) - ? { - lines: t.funnel_lines, - resultValues: t.funnel_results, - percents: { - show: t.funnel_percents_show, - countingMethod: - t.funnel_percents_count || ft[0].value, - decimals: t.funnel_percents_show - ? parseInt(t.funnel_percents_decimals) - : void 0 - }, - hover: t.funnel_hover, - marginBetweenSteps: t.funnel_margin, - minimalSize: t.funnel_minimal_size, - effect3d: t.funnel_effect3d - } - : {}; - ('default' !== t.chart && 'heatmap' !== t.chart) || - (n = { - showSlider: g, - simpleTooltip: t.tooltip_simpleTooltip - }); - var b = { - container: '#some_container', - type: t.chart, - title: i, - subtitle: o, - legend: s, - axis: u, - point: l, - data: c, - colors: r, - prefix: f, - suffix: d, - heatmap: n, - choropleth: m, - funnel: y, - sparkline: h, - stacked: p, - table: v - }, - _ = ue(b, ['container', 'type']); - return e - ? _ - : 'const chart = new KeenDataviz('.concat( - JSON.stringify(b, null, 2), - ')' - ); - } - te.a.registerLanguage('css', ne.a), - te.a.registerLanguage('js', ie.a), - (document.createElement('li').className = 'placeholder'); - var ye = function(t) { - var e = t.type, - n = t.data, - r = - ((function(t, e) { - if (null == t) return {}; - var n, - r, - i = (function(t, e) { - if (null == t) return {}; - var n, - r, - i = {}, - o = Object.keys(t); - for (r = 0; r < o.length; r++) - (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); - return i; - })(t, e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(t); - for (r = 0; r < o.length; r++) - (n = o[r]), - e.indexOf(n) >= 0 || - (Object.prototype.propertyIsEnumerable.call( - t, - n - ) && - (i[n] = t[n])); - } - })(t, ['type', 'data']), - 'js' === e ? me(n) : ve(n)); - return i.a.createElement( - i.a.Fragment, - null, - (function(t) { - return i.a.createElement( - 'button', - { - className: 'builder__btn-copy btn', - onClick: function(e) { - return (function(t, e) { - t.preventDefault(); - var n = document.createElement('textarea'); - (n.value = e), - (n.classList = 'copy-to-clipboard'), - document.body.appendChild(n), - n.select(), - document.execCommand('copy'), - document.body.removeChild(n); - })(e, t); - } - }, - 'Copy to Clipboard' - ); - })(r), - i.a.createElement(te.a, { - language: e, - value: r, - className: 'builder__editor' - }) - ); - }, - be = ye; - (ye.defaultProps = { type: 'js', data: {} }), - (ye.propTypes = { - type: a.a.oneOf(['js', 'css']).isRequired, - data: a.a.object.isRequired - }); - var _e = n(14), - xe = n.n(_e); - function we() { - return (we = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - var Se = function(t) { - var e, - n = t.type, - r = t.colors, - o = void 0 === r ? [] : r, - a = t.legend, - s = void 0 === a ? {} : a, - u = t.axis, - l = void 0 === u ? {} : u, - c = t.title, - f = t.subtitle, - d = t.data, - h = t.point, - p = t.prefix, - g = t.suffix, - v = t.choropleth, - m = t.funnel, - y = t.slider, - b = t.simpleTooltip, - _ = t.sparkline, - x = t.stacked, - w = t.pagination, - S = - ((function(t, e) { - if (null == t) return {}; - var n, - r, - i = (function(t, e) { - if (null == t) return {}; - var n, - r, - i = {}, - o = Object.keys(t); - for (r = 0; r < o.length; r++) - (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); - return i; - })(t, e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(t); - for (r = 0; r < o.length; r++) - (n = o[r]), - e.indexOf(n) >= 0 || - (Object.prototype.propertyIsEnumerable.call( - t, - n - ) && - (i[n] = t[n])); - } - })(t, [ - 'type', - 'colors', - 'legend', - 'axis', - 'title', - 'subtitle', - 'data', - 'point', - 'prefix', - 'suffix', - 'choropleth', - 'funnel', - 'slider', - 'simpleTooltip', - 'sparkline', - 'stacked', - 'pagination' - ]), - function(t) { - var e = function() { - return d && d.labels - ? { label: { show: !0 } } - : { label: { show: !1 } }; - }; - return 'pie' === t - ? { pie: e() } - : 'donut' === t - ? { donut: e() } - : 'gauge' === t - ? { gauge: e() } - : void 0; - }), - E = {}; - return ( - 'heatmap' === n && - (e = { showSlider: y, simpleTooltip: b }), - 'table' === n && w && (E = { pagination: { limit: w } }), - 'default' === n - ? i.a.createElement( - 'div', - { className: 'builder__default-charts' }, - i.a.createElement(xe.a, { - type: 'bar', - title: c, - subtitle: f, - colors: o, - legend: s, - axis: l, - data: d, - point: h, - sparkline: _, - stacked: x, - results: G.bar - }), - i.a.createElement(xe.a, { - type: 'area', - title: c, - subtitle: f, - colors: o, - legend: s, - axis: l, - data: d, - point: h, - sparkline: _, - stacked: x, - results: G.area - }), - i.a.createElement(xe.a, { - type: 'funnel-3d', - title: c, - subtitle: f, - colors: o, - legend: s, - data: d, - point: h, - funnel: m, - results: G['funnel-3d'] - }), - i.a.createElement( - xe.a, - we( - { - type: 'donut', - title: c, - subtitle: f, - colors: o, - legend: s, - data: d, - point: h, - sparkline: _, - results: G.donut - }, - S('donut') - ) - ) - ) - : i.a.createElement( - xe.a, - we( - { - type: n, - title: c, - subtitle: f, - colors: o, - legend: s, - axis: l, - data: d, - point: h, - prefix: p, - suffix: g, - heatmap: e, - choropleth: v, - funnel: m, - sparkline: _, - stacked: x, - table: E, - results: - 'choropleth' === n && 'us' === v.map - ? G['choropleth-us'] - : G[n] - }, - S(n) - ) - ) - ); - }, - Ee = Se; - function ke(t) { - return (ke = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - })(t); - } - function Ae(t) { - return ( - (function(t) { - if (Array.isArray(t)) { - for ( - var e = 0, n = new Array(t.length); - e < t.length; - e++ - ) - n[e] = t[e]; - return n; - } - })(t) || - (function(t) { - if ( - Symbol.iterator in Object(t) || - '[object Arguments]' === Object.prototype.toString.call(t) - ) - return Array.from(t); - })(t) || - (function() { - throw new TypeError( - 'Invalid attempt to spread non-iterable instance' - ); - })() - ); - } - function Te(t, e) { - if (null == t) return {}; - var n, - r, - i = (function(t, e) { - if (null == t) return {}; - var n, - r, - i = {}, - o = Object.keys(t); - for (r = 0; r < o.length; r++) - (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); - return i; - })(t, e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(t); - for (r = 0; r < o.length; r++) - (n = o[r]), - e.indexOf(n) >= 0 || - (Object.prototype.propertyIsEnumerable.call(t, n) && - (i[n] = t[n])); - } - return i; - } - function Ce(t) { - for (var e = 1; e < arguments.length; e++) { - var n = null != arguments[e] ? arguments[e] : {}, - r = Object.keys(n); - 'function' == typeof Object.getOwnPropertySymbols && - (r = r.concat( - Object.getOwnPropertySymbols(n).filter(function(t) { - return Object.getOwnPropertyDescriptor(n, t).enumerable; - }) - )), - r.forEach(function(e) { - Oe(t, e, n[e]); - }); - } - return t; - } - function Oe(t, e, n) { - return ( - e in t - ? Object.defineProperty(t, e, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (t[e] = n), - t - ); - } - function Pe(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - function Me(t) { - return (Me = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(t) { - return t.__proto__ || Object.getPrototypeOf(t); - })(t); - } - function Le(t, e) { - return (Le = - Object.setPrototypeOf || - function(t, e) { - return (t.__proto__ = e), t; - })(t, e); - } - (Se.propTypes = { - type: a.a.string.isRequired, - colors: a.a.array.isRequired - }), - n(232), - n(234), - n(236); - var De = (function(t) { - function e(t) { - var n; - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - })(this, e), - ((n = (function(t, e) { - return !e || - ('object' !== ke(e) && 'function' != typeof e) - ? (function(t) { - if (void 0 === t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return t; - })(t) - : e; - })( - this, - Me(e).call(this, t) - )).handleChartTypeChange = function(t) { - t.value && n.setState({ chart: t.value, isModified: !0 }); - }), - (n.handleChartPaletteChange = function(t) { - var e = t.value ? $[t.value].colors : []; - n.setState({ - chartPalette: t.value, - colors: e, - isModified: !0 - }); - }), - (n.handleColorsChange = function(t) { - n.setState({ colors: t, isModified: !0 }); - }), - (n.renderFontSize = function(t, e) { - var r = U.find(function(t) { - return t.value === n.state[''.concat(e, '_font_size')]; - }); - return i.a.createElement( - 'div', - { className: 'accordion__item__row two-elements' }, - i.a.createElement(Bt, { - key: ''.concat(e, '.font'), - title: t, - family: n.state[''.concat(e, '_font_family')], - fonts: n.state.fonts, - onChange: function(t) { - return n.handleTextStateUpdate( - ''.concat(e, '_font_family'), - t.value - ); - } - }), - i.a.createElement(p.a, { - defaultValue: r || U[0], - options: U, - onChange: function(t) { - return n.handleTextStateUpdate( - ''.concat(e, '_font_size'), - t.value - ); - }, - classNamePrefix: 'custom-dropdown' - }) - ); - }), - (n.renderFontStyle = function(t, e, r, o) { - var a = n.state[''.concat(e, '_textAlign')], - s = r - ? 'accordion__item__row three-elements' - : 'accordion__item__row two-elements'; - return i.a.createElement( - 'div', - { className: s }, - i.a.createElement(zt, { - key: e, - title: t, - initialColor: n.state[''.concat(e, '_color')], - defaultColor: o || K, - onChange: function(t) { - return n.handleTextStateUpdate( - ''.concat(e, '_color'), - t.hex - ); - } - }), - i.a.createElement(Dt, { - items: q, - singleChoice: !1, - groupName: ''.concat(e, '_style'), - activeItem: { - bold: n.state[''.concat(e, '_font_bold')], - italic: n.state[''.concat(e, '_font_italic')] - }, - onChange: function(t) { - return n.handleTextStateUpdate( - ''.concat(e, '_font_').concat(t.target.value), - !n.state[ - ''.concat(e, '_font_').concat(t.target.value) - ] - ); - } - }), - r && - i.a.createElement(p.a, { - defaultValue: - W.find(function(t) { - return t.value === a; - }) || W[0], - options: W, - onChange: function(t) { - return n.handleTextStateUpdate( - ''.concat(e, '_textAlign'), - t.value - ); - }, - classNamePrefix: 'custom-dropdown' - }) - ); - }); - var r = t.options.chart, - o = (function() { - switch ( - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : '' - ) { - case 'bar': - case 'horizontal-bar': - case 'area': - case 'line': - case 'spline': - case 'area-spline': - case 'step': - case 'area-step': - return ce({}, ge(vt, 'table', 'funnel')); - case 'table': - return ce( - {}, - ge( - vt, - 'axis', - 'legend', - 'grid', - 'series', - 'tooltip', - 'funnel' - ) - ); - case 'metric': - return ce( - {}, - ge( - vt, - 'axis', - 'legend', - 'grid', - 'series', - 'tooltip', - 'table', - 'funnel' - ) - ); - case 'pie': - case 'donut': - case 'gauge': - return ce( - {}, - ge(vt, 'axis', 'grid', 'table', 'funnel'), - { series_label_show: !0 } - ); - case 'gauge': - return ce( - {}, - ge(vt, 'axis', 'grid', 'legend', 'table', 'funnel') - ); - case 'heatmap': - case 'choropleth': - return ce( - {}, - ge( - vt, - 'axis', - 'series', - 'legend', - 'gridline', - 'table', - 'funnel' - ) - ); - case 'funnel': - case 'funnel-3d': - case 'horizontal-funnel': - case 'horizontal-funnel-3d': - return ce( - {}, - ge( - vt, - 'series', - 'legend', - 'grid', - 'tooltip', - 'table', - 'axis' - ) - ); - default: - return ce({}, vt); - } - })(void 0 === r ? '' : r); - return ( - (n.state = Ce({}, o, t.options, { isModified: !1 })), n - ); - } - var n, r; - return ( - (function(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { value: t, writable: !0, configurable: !0 } - })), - e && Le(t, e); - })(e, t), - (n = e), - (r = [ - { - key: 'componentDidMount', - value: function() { - var t = this; - fetch( - '' - .concat( - 'https://www.googleapis.com/webfonts/v1/webfonts', - '/?key=' - ) - .concat('AIzaSyC529qus-Wu8LEftuMjSSBOt7mKu5lMm2E') - ) - .then(function(t) { - return t.json(); - }) - .then(function(e) { - return t.setState({ fonts: e.items }); - }) - .catch(function(t) { - return console.error(t); - }); - } - }, - { - key: 'componentDidUpdate', - value: function(t, e) { - var n = this; - f()(t, this.props) || - this.setState(function(t) { - return Ce({}, t, n.props.options); - }); - var r = this.state, - i = (r.fonts, r.isModified), - o = Te(r, ['fonts', 'isModified']), - a = - (e.fonts, - e.isModified, - Te(e, ['fonts', 'isModified'])), - s = this.props, - u = s.isDashboardBuilderActive, - l = (s.containerId, s.onChange), - c = u ? { theme: o, options: me(o, !0) } : o; - i && !f()(o, a) && l && this.props.onChange(c); - } - }, - { - key: 'handleStateChange', - value: function(t, e) { - var n = Object(s.a)(this.state, function(n) { - (n.isModified = !0), l()(n, t, e); - }); - this.setState(function() { - return n; - }); - } - }, - { - key: 'addItem', - value: function() { - this.setState(function(t) { - return { - colors: [].concat(Ae(t.colors), ['#222222']), - isModified: !0 - }; - }); - } - }, - { - key: 'removeItem', - value: function(t) { - this.setState(function(e) { - var n = Ae(e.colors); - return n.splice(t, 1), { colors: n, isModified: !0 }; - }); - } - }, - { - key: 'onColorChange', - value: function(t, e) { - this.setState(function(n) { - var r = Ae(n.colors); - return (r[e] = t), { colors: r, isModified: !0 }; - }); - } - }, - { - key: 'renderChartTypeItem', - value: function() { - var t = this, - e = Y.find(function(e) { - return e.value === t.state.chart; - }); - return i.a.createElement( - 'div', - { className: 'keen-theme-builder__row' }, - i.a.createElement( - 'label', - { className: 'control-label' }, - 'Available chart types' - ), - i.a.createElement(p.a, { - defaultValue: e || Y[0], - options: Y, - onChange: this.handleChartTypeChange, - className: 'chart-types', - classNamePrefix: 'custom-dropdown' - }) - ); - } - }, - { - key: 'handleTextStateUpdate', - value: function(t, e) { - this.setState(function(n) { - return Ce( - {}, - n, - Oe({ isModified: !0 }, t, e !== ht ? e : '') - ); - }); - } - }, - { - key: 'renderTitleSection', - value: function() { - var t = this, - e = this.props.options.chart; - return i.a.createElement( - i.a.Fragment, - null, - 'default' !== e && - i.a.createElement( - 'div', - { className: 'accordion__item__row' }, - i.a.createElement(Zt, { - key: 'title', - type: 'text', - name: 'title', - value: this.state.title_text, - onChange: function(e) { - t.handleTextStateUpdate('title_text', e); - } - }) - ), - this.renderFontSize('Title font', 'title'), - this.renderFontStyle('Title format', 'title', !0) - ); - } - }, - { - key: 'renderSubtitleSection', - value: function() { - var t = this, - e = this.props.options.chart; - return i.a.createElement( - i.a.Fragment, - null, - 'default' !== e && - i.a.createElement( - 'div', - { className: 'accordion__item__row' }, - i.a.createElement(Zt, { - key: 'subtitle', - type: 'text', - name: 'subtitle', - value: this.state.subtitle_text, - onChange: function(e) { - return t.handleTextStateUpdate( - 'subtitle_text', - e - ); - } - }) - ), - this.renderFontSize('Subtitle font', 'subtitle'), - this.renderFontStyle( - 'Subtitle format', - 'subtitle', - !0, - Z - ) - ); - } - }, - { - key: 'renderVerticalAxisTitleSection', - value: function() { - var t = this; - return i.a.createElement( - i.a.Fragment, - null, - i.a.createElement( - 'div', - { className: 'accordion__item__row' }, - i.a.createElement(Zt, { - key: 'vertical-axis-title', - type: 'text', - name: 'vertical-axis-title', - value: this.state.axis_vertical_title_text, - onChange: function(e) { - return t.handleTextStateUpdate( - 'axis_vertical_title_text', - e - ); - } - }) - ), - this.renderFontSize( - 'Title font', - 'axis_vertical_title' - ), - i.a.createElement( - 'div', - { - className: 'accordion__item__row three-elements' - }, - i.a.createElement(zt, { - title: 'Title format', - initialColor: this.state - .axis_vertical_title_color, - defaultColor: K, - onChange: function(e) { - return t.handleTextStateUpdate( - 'axis_vertical_title_color', - e.hex - ); - } - }), - i.a.createElement(Dt, { - items: q, - singleChoice: !1, - groupName: 'verticalAxisTitleStyle', - activeItem: { - bold: this.state.axis_vertical_title_font_bold, - italic: this.state - .axis_vertical_title_font_italic - }, - onChange: function(e) { - return t.handleTextStateUpdate( - 'axis_vertical_title_font_'.concat( - e.target.value - ), - !t.state[ - 'axis_vertical_title_font_'.concat( - e.target.value - ) - ] - ); - } - }), - i.a.createElement(p.a, { - defaultValue: X[1], - options: X, - onChange: function(e) { - return t.handleTextStateUpdate( - 'axis_vertical_title_textAlign', - e.value - ); - }, - classNamePrefix: 'custom-dropdown' - }) - ) - ); - } - }, - { - key: 'renderVerticalAxisLabelSection', - value: function() { - return i.a.createElement( - i.a.Fragment, - null, - this.renderFontSize( - 'Axis font', - 'axis_vertical_label' - ), - this.renderFontStyle( - 'Axis format', - 'axis_vertical_label', - !1 - ) - ); - } - }, - { - key: 'renderHorizontalAxisTitleSection', - value: function() { - var t = this; - return i.a.createElement( - i.a.Fragment, - null, - i.a.createElement( - 'div', - { className: 'accordion__item__row' }, - i.a.createElement(Zt, { - key: 'horizontal-axis-title', - type: 'text', - name: 'horizontal-axis-title', - value: this.state.axis_horizontal_title_text, - onChange: function(e) { - return t.handleTextStateUpdate( - 'axis_horizontal_title_text', - e - ); - } - }) - ), - this.renderFontSize( - 'Title font', - 'axis_horizontal_title' - ), - this.renderFontStyle( - 'Title format', - 'axis_horizontal_title', - !0 - ) - ); - } - }, - { - key: 'renderHorizontalAxisLabelSection', - value: function() { - return i.a.createElement( - i.a.Fragment, - null, - this.renderFontSize( - 'Axis font', - 'axis_horizontal_label' - ), - this.renderFontStyle( - 'Axis format', - 'axis_horizontal_label', - !1 - ) - ); - } - }, - { - key: 'renderLegendSection', - value: function() { - var t = this, - e = this.state.legend_layout; - return i.a.createElement( - i.a.Fragment, - null, - i.a.createElement( - 'div', - { className: 'accordion__item__row' }, - i.a.createElement(Dt, { - items: rt, - singleChoice: !0, - groupName: 'legendLayout', - title: 'Layout', - activeItem: rt.find(function(e) { - return e.value === t.state.legend_layout; - }), - onChange: function(e) { - return t.handleTextStateUpdate( - 'legend_layout', - e.target.value - ); - } - }) - ), - i.a.createElement( - 'div', - { className: 'accordion__item__row' }, - ('top' === e || 'bottom' === e) && - i.a.createElement(Dt, { - items: ot, - singleChoice: !0, - groupName: 'legendPositionHorizontal', - title: 'Alignment', - activeItem: ot.find(function(e) { - return ( - e.value === - t.state.legend_position_horizontal - ); - }), - onChange: function(e) { - return t.handleTextStateUpdate( - 'legend_position_horizontal', - e.target.value - ); - } - }), - ('left' === e || 'right' === e) && - i.a.createElement(Dt, { - items: it, - singleChoice: !0, - groupName: 'legendPositionVertical', - title: 'Alignment', - activeItem: it.find(function(e) { - return ( - e.value === t.state.legend_position_vertical - ); - }), - onChange: function(e) { - return t.handleTextStateUpdate( - 'legend_position_vertical', - e.target.value - ); - } - }) - ), - this.renderFontSize('Legend font', 'legend'), - this.renderFontStyle('Legend format', 'legend', !1) - ); - } - }, - { - key: 'renderGridSection', - value: function() { - var t = this; - return i.a.createElement( - 'div', - { className: 'accordion__item__row two-elements' }, - i.a.createElement(zt, { - title: 'Lines color', - initialColor: this.state.grid_lines_color, - defaultColor: J, - onChange: function(e) { - return t.handleTextStateUpdate( - 'grid_lines_color', - e.hex - ); - } - }), - i.a.createElement( - 'div', - { className: 'dropdown disabled' }, - i.a.createElement( - 'span', - { className: 'dropdown__label' }, - 'Count' - ), - i.a.createElement(p.a, { - defaultValue: at[0], - options: at, - onChange: function(e) { - return t.handleTextStateUpdate( - 'grid_count', - e.value - ); - }, - classNamePrefix: 'custom-dropdown' - }) - ) - ); - } - }, - { - key: 'renderSubgridSection', - value: function() { - var t = this; - return i.a.createElement( - 'div', - { className: 'accordion__item__row two-elements' }, - i.a.createElement(zt, { - title: 'Lines color', - initialColor: this.state.subgrid_lines_color, - defaultColor: J, - onChange: function(e) { - return t.handleTextStateUpdate( - 'subgrid_lines_color', - e.hex - ); - } - }), - i.a.createElement( - 'div', - { className: 'dropdown' }, - i.a.createElement( - 'span', - { className: 'dropdown__label' }, - 'Count' - ), - i.a.createElement(p.a, { - defaultValue: at[0], - options: at, - onChange: function(e) { - return t.handleTextStateUpdate( - 'subgrid_count', - e.value - ); - }, - classNamePrefix: 'custom-dropdown' - }) - ) - ); - } - }, - { - key: 'renderSeriesLabelsSection', - value: function() { - return i.a.createElement( - i.a.Fragment, - null, - this.renderFontSize('Labels font', 'series_label'), - this.renderFontStyle( - 'Labels format', - 'series_label', - !1 - ) - ); - } - }, - { - key: 'renderSeriesSection', - value: function() { - var t = this, - e = st.find(function(e) { - return e.value === t.state.series_line; - }); - return i.a.createElement( - i.a.Fragment, - null, - i.a.createElement( - 'div', - { className: 'accordion__item__row' }, - i.a.createElement( - 'span', - { className: 'control-label' }, - 'Line thickness' - ), - i.a.createElement(p.a, { - defaultValue: e || st[0], - options: st, - onChange: function(e) { - return t.handleTextStateUpdate( - 'series_line', - e.value - ); - }, - classNamePrefix: 'custom-dropdown' - }) - ) - ); - } - }, - { - key: 'renderSeriesPointsSection', - value: function() { - var t = this, - e = ut.find(function(e) { - return e.value === t.state.series_points_size; - }); - return i.a.createElement( - i.a.Fragment, - null, - i.a.createElement( - 'div', - { className: 'accordion__item__row' }, - i.a.createElement( - 'span', - { className: 'control-label' }, - 'Points size' - ), - i.a.createElement(p.a, { - defaultValue: e || ut[0], - options: ut, - onChange: function(e) { - return t.handleTextStateUpdate( - 'series_points_size', - e.value - ); - }, - classNamePrefix: 'custom-dropdown' - }) - ) - ); - } - }, - { - key: 'renderMetricOptions', - value: function() { - var t = this; - return i.a.createElement( - 'div', - { className: 'keen-theme-builder__row two-elements' }, - i.a.createElement(Zt, { - key: 'metric-prefix', - type: 'text', - label: 'Prefix', - name: 'metric-prefix', - value: this.state.general_prefix, - onChange: function(e) { - return t.handleTextStateUpdate( - 'general_prefix', - e - ); - } - }), - i.a.createElement(Zt, { - key: 'metric-suffix', - type: 'text', - label: 'Suffix', - name: 'metric-suffix', - value: this.state.general_suffix, - onChange: function(e) { - return t.handleTextStateUpdate( - 'general_suffix', - e - ); - } - }) - ); - } - }, - { - key: 'renderAppearanceFont', - value: function() { - var t = this; - return 'metric' === this.state.chart - ? i.a.createElement( - 'div', - { className: 'accordion__item__row' }, - this.renderFontSize('Chart font', 'appearance'), - this.renderFontStyle( - 'Chart format', - 'appearance', - !1 - ) - ) - : i.a.createElement( - 'div', - { className: 'accordion__item__row' }, - i.a.createElement(Bt, { - title: 'Font', - family: this.state.appearance_font_family, - fonts: this.state.fonts, - onChange: function(e) { - return t.handleStateChange( - 'appearance_font_family', - e.value - ); - } - }) - ); - } - }, - { - key: 'generateHoverColor', - value: function(t) { - if (!t.hsl) return nt; - var e = t.hsl, - n = e.h, - r = e.s, - i = e.l, - o = e.a, - a = - i < 0.5 - ? { h: n, s: r, l: i + 0.2, a: o } - : { h: n, s: r, l: i - 0.2, a: o }; - return (function(t, e, n) { - var r = (1 - Math.abs(2 * n - 1)) * e, - i = r * (1 - Math.abs(((t / 60) % 2) - 1)), - o = n - r / 2, - a = 0, - s = 0, - u = 0; - return ( - 0 <= t && t < 60 - ? ((a = r), (s = i), (u = 0)) - : 60 <= t && t < 120 - ? ((a = i), (s = r), (u = 0)) - : 120 <= t && t < 180 - ? ((a = 0), (s = r), (u = i)) - : 180 <= t && t < 240 - ? ((a = 0), (s = i), (u = r)) - : 240 <= t && t < 300 - ? ((a = i), (s = 0), (u = r)) - : 300 <= t && - t < 360 && - ((a = r), (s = 0), (u = i)), - (a = Math.round(255 * (a + o)).toString(16)), - (s = Math.round(255 * (s + o)).toString(16)), - (u = Math.round(255 * (u + o)).toString(16)), - 1 == a.length && (a = '0' + a), - 1 == s.length && (s = '0' + s), - 1 == u.length && (u = '0' + u), - '#' + a + s + u - ); - })(a.h, a.s, a.l); - } - }, - { - key: 'renderChoroplethMapDropdown', - value: function() { - var t = this, - e = ct.find(function(e) { - return e.value === t.state.choropleth_map; - }); - return i.a.createElement( - 'div', - { className: 'keen-theme-builder__row' }, - i.a.createElement( - 'span', - { className: 'control-label' }, - 'Map' - ), - i.a.createElement(p.a, { - defaultValue: e || ct[0], - options: ct, - onChange: function(e) { - return t.handleTextStateUpdate( - 'choropleth_map', - e.value - ); - }, - classNamePrefix: 'custom-dropdown' - }) - ); - } - }, - { - key: 'renderMapBorderSettings', - value: function() { - var t = this, - e = st.find(function(e) { - return e.value === t.state.choropleth_border_size; - }); - return i.a.createElement( - i.a.Fragment, - null, - i.a.createElement( - 'div', - { className: 'accordion__item__row' }, - i.a.createElement( - 'span', - { className: 'control-label' }, - 'Border size' - ), - i.a.createElement(p.a, { - defaultValue: e || st[0], - options: st, - onChange: function(e) { - return t.handleTextStateUpdate( - 'choropleth_border_size', - e.value - ); - }, - className: 'predefined-palette', - classNamePrefix: 'custom-dropdown' - }) - ), - i.a.createElement( - 'div', - { className: 'accordion__item__row' }, - i.a.createElement(zt, { - title: 'Chart border', - initialColor: this.state.choropleth_border_color, - defaultColor: J, - onChange: function(e) { - return t.handleStateChange( - 'choropleth_border_color', - e.hex - ); - } - }) - ) - ); - } - }, - { - key: 'renderChoroplethSettings', - value: function() { - var t = this; - return i.a.createElement( - i.a.Fragment, - null, - i.a.createElement( - Yt, - { - checked: !!this.state.choropleth_border_show, - onChange: function() { - return t.handleStateChange( - 'choropleth_border_show', - !t.state.choropleth_border_show - ); - }, - text: { on: 'Show', off: 'Hide' } - }, - i.a.createElement( - 'span', - { className: 'control-label' }, - 'Map border' - ) - ), - this.state.choropleth_border_show && - this.renderMapBorderSettings() - ); - } - }, - { - key: 'renderFunnelPercentsSection', - value: function() { - var t = this, - e = ft.find(function(e) { - return e.value === t.state.funnel_percents_count; - }); - return i.a.createElement( - i.a.Fragment, - null, - i.a.createElement( - 'div', - { className: 'accordion__item__row' }, - i.a.createElement( - 'span', - { className: 'control-label' }, - 'Counting method' - ), - i.a.createElement(p.a, { - defaultValue: e || ft[0], - options: ft, - onChange: function(e) { - return t.handleTextStateUpdate( - 'funnel_percents_count', - e.value - ); - }, - className: 'predefined-palette', - classNamePrefix: 'custom-dropdown' - }) - ), - i.a.createElement( - 'div', - { className: 'accordion__item__row' }, - i.a.createElement(Zt, { - key: 'funnel-percents-decimals', - type: 'text', - label: 'Decimals', - name: 'funnel-percents-decimals', - value: this.state.funnel_percents_decimals, - onChange: function(e) { - return t.handleTextStateUpdate( - 'funnel_percents_decimals', - e - ); - }, - maxLength: '2' - }) - ) - ); - } - }, - { - key: 'renderFunnel3dOptions', - value: function() { - var t = this, - e = dt.find(function(e) { - return e.value === t.state.funnel_effect3d; - }); - return i.a.createElement( - 'div', - { className: 'accordion__item__row' }, - i.a.createElement( - 'span', - { className: 'control-label' }, - '3d effect' - ), - i.a.createElement(p.a, { - defaultValue: e || dt[0], - options: dt, - onChange: function(e) { - return t.handleTextStateUpdate( - 'funnel_effect3d', - e.value - ); - }, - className: 'predefined-palette', - classNamePrefix: 'custom-dropdown' - }) - ); - } - }, - { - key: 'renderConfigSection', - value: function() { - var t = this, - e = this.props, - n = e.isDashboardBuilderActive, - r = e.options.chart, - o = (function() { - switch ( - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : '' - ) { - case 'bar': - case 'horizontal-bar': - case 'area': - case 'line': - case 'spline': - case 'area-spline': - case 'step': - case 'area-step': - return ce({}, pt, { table: !1, funnel: !1 }); - case 'table': - return ce({}, pt, { - axis: !1, - legend: !1, - gridline: !1, - series: !1, - tooltip: !1, - funnel: !1 - }); - case 'metric': - return ce({}, pt, { - axis: !1, - legend: !1, - gridline: !1, - series: !1, - tooltip: !1, - table: !1, - funnel: !1 - }); - case 'pie': - case 'donut': - return ce({}, pt, { - axis: !1, - gridline: !1, - table: !1, - funnel: !1 - }); - case 'gauge': - return ce({}, pt, { - axis: !1, - gridline: !1, - legend: !1, - table: !1, - funnel: !1 - }); - case 'heatmap': - case 'choropleth': - return ce({}, pt, { - axis: !1, - series: !1, - legend: !1, - gridline: !1, - table: !1, - funnel: !1 - }); - case 'funnel': - case 'funnel-3d': - case 'horizontal-funnel': - case 'horizontal-funnel-3d': - return ce({}, pt, { - axis: !1, - series: !1, - legend: !1, - gridline: !1, - tooltip: !1, - table: !1 - }); - default: - return pt; - } - })(r), - a = Q.find(function(e) { - return e.value === t.state.chartPalette; - }); - return i.a.createElement( - 'section', - { className: 'builder__config' }, - i.a.createElement( - 'h2', - { className: 'builder__header' }, - 'Chart style' - ), - !n && this.renderChartTypeItem(), - 'metric' === r && this.renderMetricOptions(), - 'choropleth' === r && - this.renderChoroplethMapDropdown(), - ('heatmap' === r || 'choropleth' === r) && - i.a.createElement( - Yt, - { - checked: !!this.state.chart_slider_show, - onChange: function() { - return t.handleStateChange( - 'chart_slider_show', - !t.state.chart_slider_show - ); - }, - text: { on: 'Show', off: 'Hide' } - }, - i.a.createElement( - 'span', - { className: 'control-label' }, - 'Slider' - ) - ), - i.a.createElement( - qt, - null, - o.appearance && - i.a.createElement( - 'div', - { label: 'Appearance' }, - i.a.createElement( - Yt, - { - checked: !!this.state.appearance_sparkline, - onChange: function() { - return t.handleStateChange( - 'appearance_sparkline', - !t.state.appearance_sparkline - ); - } - }, - i.a.createElement( - 'span', - { className: 'control-label' }, - 'Sparkline' - ) - ), - i.a.createElement( - 'div', - { className: 'accordion__item__row' }, - i.a.createElement(zt, { - title: 'Chart background', - initialColor: this.state - .appearance_background, - defaultColor: tt, - onChange: function(e) { - return t.handleStateChange( - 'appearance_background', - e.hex - ); - } - }) - ), - i.a.createElement( - 'div', - { className: 'accordion__item__row' }, - i.a.createElement(zt, { - title: 'Chart border', - initialColor: this.state.appearance_border, - defaultColor: J, - onChange: function(e) { - return t.handleStateChange( - 'appearance_border', - e.hex - ); - } - }) - ), - this.renderAppearanceFont(), - 'choropleth' === this.state.chart && - this.renderChoroplethSettings(), - i.a.createElement( - 'div', - { className: 'accordion__item__row' }, - i.a.createElement( - 'span', - { className: 'control-label' }, - 'Plot colors' - ), - i.a.createElement(p.a, { - defaultValue: a || Q[0], - options: Q, - onChange: this.handleChartPaletteChange, - className: 'predefined-palette', - classNamePrefix: 'custom-dropdown' - }) - ), - i.a.createElement(Mt, { - colors: this.state.colors, - onChange: this.handleColorsChange - }) - ), - o.title && - i.a.createElement( - 'div', - { label: 'Title & Subtitle' }, - i.a.createElement( - Yt, - { - checked: !!this.state.title_show, - onChange: function() { - return t.handleStateChange( - 'title_show', - !t.state.title_show - ); - }, - text: { on: 'Show', off: 'Hide' } - }, - i.a.createElement( - 'span', - { className: 'section-title' }, - 'Title' - ) - ), - this.state.title_show && - this.renderTitleSection(), - i.a.createElement( - Yt, - { - checked: !!this.state.subtitle_show, - onChange: function() { - return t.handleStateChange( - 'subtitle_show', - !t.state.subtitle_show - ); - }, - text: { on: 'Show', off: 'Hide' } - }, - i.a.createElement( - 'span', - { className: 'section-title' }, - 'Subtitle' - ) - ), - this.state.subtitle_show && - this.renderSubtitleSection() - ), - o.axis && - i.a.createElement( - 'div', - { label: 'Vertical axis' }, - 'default' !== r && - i.a.createElement( - Yt, - { - checked: !!this.state - .axis_vertical_title_show, - onChange: function() { - return t.handleStateChange( - 'axis_vertical_title_show', - !t.state.axis_vertical_title_show - ); - } - }, - i.a.createElement( - 'span', - { className: 'section-title' }, - 'Axis title' - ) - ), - 'default' !== r && - this.state.axis_vertical_title_show && - this.renderVerticalAxisTitleSection(), - i.a.createElement( - Yt, - { - checked: !!this.state - .axis_vertical_label_show, - onChange: function() { - return t.handleStateChange( - 'axis_vertical_label_show', - !t.state.axis_vertical_label_show - ); - } - }, - i.a.createElement( - 'span', - { className: 'section-title' }, - 'Axis labels' - ) - ), - this.state.axis_vertical_label_show && - this.renderVerticalAxisLabelSection() - ), - o.axis && - i.a.createElement( - 'div', - { label: 'Horizontal axis' }, - 'default' !== r && - i.a.createElement( - Yt, - { - checked: !!this.state - .axis_horizontal_title_show, - onChange: function() { - return t.handleStateChange( - 'axis_horizontal_title_show', - !t.state.axis_horizontal_title_show - ); - } - }, - i.a.createElement( - 'span', - { className: 'section-title' }, - 'Axis title' - ) - ), - 'default' !== r && - this.state.axis_horizontal_title_show && - this.renderHorizontalAxisTitleSection(), - i.a.createElement( - Yt, - { - checked: !!this.state - .axis_horizontal_label_show, - onChange: function() { - return t.handleStateChange( - 'axis_horizontal_label_show', - !t.state.axis_horizontal_label_show - ); - } - }, - i.a.createElement( - 'span', - { className: 'section-title' }, - 'Axis labels' - ) - ), - this.state.axis_horizontal_label_show && - this.renderHorizontalAxisLabelSection() - ), - o.legend && - i.a.createElement( - 'div', - { label: 'Legend' }, - i.a.createElement( - Yt, - { - checked: !!this.state.legend_show, - onChange: function() { - return t.handleStateChange( - 'legend_show', - !t.state.legend_show - ); - } - }, - i.a.createElement( - 'span', - { className: 'section-title' }, - 'Legend' - ) - ), - this.state.legend_show && - this.renderLegendSection() - ), - o.gridline && - i.a.createElement( - 'div', - { label: 'Gridline' }, - i.a.createElement( - Yt, - { - checked: !!this.state.grid_show, - onChange: function() { - return t.handleStateChange( - 'grid_show', - !t.state.grid_show - ); - } - }, - i.a.createElement( - 'span', - { className: 'section-title' }, - 'Gridline' - ) - ), - this.state.grid_show && - this.renderGridSection(), - i.a.createElement( - Yt, - { - className: 'disabled', - checked: !!this.state.subgrid_show, - onChange: function() { - return t.handleStateChange( - 'subgrid_show', - !t.state.subgrid_show - ); - } - }, - i.a.createElement( - 'span', - { className: 'section-title' }, - 'Subgrid' - ) - ), - this.state.subgrid_show && - this.renderSubgridSection() - ), - o.series && - i.a.createElement( - 'div', - { label: 'Series' }, - this.renderSeriesSection(), - i.a.createElement( - Yt, - { - checked: !!this.state.series_points_show, - onChange: function() { - return t.handleStateChange( - 'series_points_show', - !t.state.series_points_show - ); - }, - text: { on: 'Show', off: 'Hide' } - }, - i.a.createElement( - 'span', - { className: 'section-title' }, - 'Points' - ) - ), - this.state.series_points_show && - this.renderSeriesPointsSection(), - i.a.createElement( - Yt, - { - checked: !!this.state.series_label_show, - onChange: function() { - return t.handleStateChange( - 'series_label_show', - !t.state.series_label_show - ); - }, - text: { on: 'Show', off: 'Hide' } - }, - i.a.createElement( - 'span', - { className: 'section-title' }, - 'Data labels' - ) - ), - this.state.series_label_show && - this.renderSeriesLabelsSection(), - i.a.createElement(Dt, { - items: lt, - singleChoice: !0, - groupName: 'stacked', - title: 'Stacked', - activeItem: lt.find(function(e) { - return e.value === t.state.series_stacked; - }), - onChange: function(e) { - return t.handleTextStateUpdate( - 'series_stacked', - e.target.value - ); - } - }) - ), - o.tooltip && - i.a.createElement( - 'div', - { label: 'Tooltip' }, - this.renderFontSize('Tooltip font', 'tooltip'), - this.renderFontStyle( - 'Tooltip format', - 'tooltip', - !1 - ), - i.a.createElement( - 'div', - { className: 'accordion__item__row' }, - i.a.createElement(zt, { - key: 'tooltip_background', - title: 'Tooltip background', - initialColor: this.state.tooltip_background, - defaultColor: tt, - onChange: function(e) { - return t.handleTextStateUpdate( - 'tooltip_background', - e.hex - ); - } - }) - ), - i.a.createElement( - 'div', - { className: 'accordion__item__row' }, - i.a.createElement(zt, { - key: 'tooltip_border', - title: 'Tooltip border', - initialColor: this.state.tooltip_border, - onChange: function(e) { - return t.handleTextStateUpdate( - 'tooltip_border', - e.hex - ); - } - }) - ), - 'heatmap' === this.state.chart && - i.a.createElement( - Yt, - { - checked: !!this.state - .tooltip_simpleTooltip, - onChange: function() { - return t.handleStateChange( - 'tooltip_simpleTooltip', - !t.state.tooltip_simpleTooltip - ); - } - }, - i.a.createElement( - 'span', - { className: 'control-label' }, - 'Simple tooltip' - ) - ) - ), - o.table && - i.a.createElement( - 'div', - { label: 'Table' }, - i.a.createElement( - Yt, - { - checked: !!this.state.table_pagination_show, - onChange: function() { - return t.handleStateChange( - 'table_pagination_show', - !t.state.table_pagination_show - ); - }, - text: { on: 'Show', off: 'Hide' } - }, - i.a.createElement( - 'span', - { className: 'section-title' }, - 'Pagination' - ) - ), - this.state.table_pagination_show && - i.a.createElement( - 'div', - { className: 'accordion__item__row' }, - i.a.createElement(Zt, { - key: 'table-pagination', - type: 'text', - label: 'Pagination limit', - name: 'table-pagination', - value: this.state.table_pagination_limit, - onChange: function(e) { - return t.handleTextStateUpdate( - 'table_pagination_limit', - e - ); - }, - maxLength: '2' - }) - ), - i.a.createElement( - Yt, - { - checked: !!this.state.table_header_show, - onChange: function() { - return t.handleStateChange( - 'table_header_show', - !t.state.table_header_show - ); - }, - text: { on: 'Show', off: 'Hide' } - }, - i.a.createElement( - 'span', - { className: 'section-title' }, - 'Table header' - ) - ), - this.state.table_header_show && - i.a.createElement( - i.a.Fragment, - null, - this.renderFontSize( - 'Header font', - 'table_header' - ), - this.renderFontStyle( - 'Header format', - 'table_header', - !0 - ) - ), - i.a.createElement( - Yt, - { - checked: !!this.state.table_body_show, - onChange: function() { - return t.handleStateChange( - 'table_body_show', - !t.state.table_body_show - ); - }, - text: { on: 'Show', off: 'Hide' } - }, - i.a.createElement( - 'span', - { className: 'section-title' }, - 'Table body' - ) - ), - this.state.table_body_show && - i.a.createElement( - i.a.Fragment, - null, - this.renderFontSize( - 'Body font', - 'table_body' - ), - this.renderFontStyle( - 'Body format', - 'table_body', - !0 - ), - i.a.createElement( - 'div', - { className: 'accordion__item__row' }, - i.a.createElement(zt, { - title: 'Alternate row background', - initialColor: this.state - .table_body_row_alternate_color, - defaultColor: et, - onChange: function(e) { - t.handleTextStateUpdate( - 'table_body_row_alternate_color', - e.hex - ); - var n = t.generateHoverColor(e); - t.handleTextStateUpdate( - 'table_body_row_hover_background', - n - ); - } - }) - ) - ) - ), - o.funnel && - i.a.createElement( - 'div', - { label: 'Funnel' }, - this.renderFontSize( - 'Label font', - 'funnel_label' - ), - this.renderFontStyle( - 'Label format', - 'funnel_label', - !1 - ), - i.a.createElement( - Yt, - { - checked: !!this.state.funnel_lines, - onChange: function() { - return t.handleStateChange( - 'funnel_lines', - !t.state.funnel_lines - ); - }, - text: { on: 'Show', off: 'Hide' } - }, - i.a.createElement( - 'span', - { className: 'control-label' }, - 'Lines' - ) - ), - i.a.createElement( - Yt, - { - checked: !!this.state.funnel_results, - onChange: function() { - return t.handleStateChange( - 'funnel_results', - !t.state.funnel_results - ); - }, - text: { on: 'Show', off: 'Hide' } - }, - i.a.createElement( - 'span', - { className: 'control-label' }, - 'Results' - ) - ), - i.a.createElement( - Yt, - { - checked: !!this.state.funnel_percents_show, - onChange: function() { - return t.handleStateChange( - 'funnel_percents_show', - !t.state.funnel_percents_show - ); - }, - text: { on: 'Show', off: 'Hide' } - }, - i.a.createElement( - 'span', - { className: 'section-title' }, - 'Percents' - ) - ), - this.state.funnel_percents_show && - this.renderFunnelPercentsSection(), - i.a.createElement( - Yt, - { - checked: !!this.state.funnel_hover, - onChange: function() { - return t.handleStateChange( - 'funnel_hover', - !t.state.funnel_hover - ); - }, - text: { on: 'Show', off: 'Hide' } - }, - i.a.createElement( - 'span', - { className: 'control-label' }, - 'Hover' - ) - ), - i.a.createElement( - Yt, - { - checked: !!this.state.funnel_margin, - onChange: function() { - return t.handleStateChange( - 'funnel_margin', - !t.state.funnel_margin - ); - }, - text: { on: 'Show', off: 'Hide' } - }, - i.a.createElement( - 'span', - { className: 'control-label' }, - 'Margin between steps' - ) - ), - i.a.createElement( - 'div', - { className: 'accordion__item__row' }, - i.a.createElement(Zt, { - key: 'funnel-minimal-size', - type: 'number', - label: 'Minimal size', - name: 'funnel-minimal-size', - value: this.state.funnel_minimal_size, - onChange: function(e) { - return t.handleTextStateUpdate( - 'funnel_minimal_size', - e - ); - } - }) - ), - ('funnel-3d' === this.state.chart || - 'horizontal-funnel-3d' === - this.state.chart) && - this.renderFunnel3dOptions() - ) - ) - ); - } - }, - { - key: 'renderTabChart', - value: function() { - var t = de(this.state), - e = - !( - !this.state.title_show || !this.state.title_text - ) && this.state.title_text, - n = - this.state.subtitle_show && this.state.subtitle_text - ? this.state.subtitle_text - : '', - r = - 'top' === this.state.legend_layout || - 'bottom' === this.state.legend_layout - ? this.state.legend_position_horizontal - : this.state.legend_position_vertical, - o = { - show: this.state.legend_show, - position: this.state.legend_layout, - alignment: r - }, - a = !!this.state.series_label_show && { labels: !0 }, - s = { - show: this.state.series_points_show, - r: this.state.series_points_size - }, - u = this.state.general_prefix - ? this.state.general_prefix - : void 0, - l = this.state.general_suffix - ? this.state.general_suffix - : void 0, - c = parseInt(this.state.table_pagination_limit), - f = - this.state.table_pagination_show && c ? c : void 0, - d = - 'default' === this.state.chart || - 'choropleth' === this.state.chart - ? { - map: this.state.choropleth_map, - borders: { - show: this.state.choropleth_border_show, - size: this.state.choropleth_border_size, - color: this.state.choropleth_border_color - }, - showSlider: this.state.chart_slider_show - } - : void 0, - h = - 'default' === this.state.chart || - gt.includes(this.state.chart) - ? { - lines: this.state.funnel_lines, - resultValues: this.state.funnel_results, - percents: { - show: this.state.funnel_percents_show, - countingMethod: this.state - .funnel_percents_count, - decimals: this.state - .funnel_percents_decimals - }, - hover: this.state.funnel_hover, - marginBetweenSteps: this.state.funnel_margin, - minimalSize: this.state.funnel_minimal_size, - effect3d: this.state.funnel_effect3d - } - : void 0; - return i.a.createElement( - i.a.Fragment, - null, - i.a.createElement(Ee, { - type: this.state.chart, - colors: this.state.colors, - legend: o, - title: e, - subtitle: n, - axis: he(this.state), - data: a, - point: s, - prefix: u, - suffix: l, - choropleth: d, - funnel: h, - simpleTooltip: this.state.tooltip_simpleTooltip, - sparkline: this.state.appearance_sparkline, - stacked: this.state.series_stacked, - pagination: f - }), - i.a.createElement( - v.a, - { - id: '2022330400', - dynamic: [ - t.chartBackground, - t.chartBorder, - t.chartFont, - t.titleColor, - t.titleTextAlign, - t.titleFontFamily, - t.titleFontSize, - t.titleFontBold, - t.titleFontItalic, - t.subtitleColor, - t.subtitleTextAlign, - t.subtitleFontFamily, - t.subtitleFontSize, - t.subtitleFontBold, - t.subtitleFontItalic, - t.axisYLabelColor, - t.axisYLabelFont, - t.axisYLabelFontSize, - t.axisYLabelFontBold, - t.axisYLabelFontItalic, - t.axisXLabelColor, - t.axisXLabelFont, - t.axisXLabelFontSize, - t.axisXLabelFontBold, - t.axisXLabelFontItalic, - t.legendFont, - t.legendFontSize, - t.legendFontBold, - t.legendFontItalic, - t.legendColor, - t.gridLineColor, - t.gridLineShow, - t.axisYTitleFont, - t.axisYTitleFontSize, - t.axisYTitleFontBold, - t.axisYTitleFontItalic, - t.axisYTitleColor, - t.axisXTitleFont, - t.axisXTitleFontSize, - t.axisXTitleFontBold, - t.axisXTitleFontItalic, - t.axisXTitleColor, - t.seriesLabelFont, - t.seriesLabelFontSize, - t.seriesLabelFontBold, - t.seriesLabelFontItalic, - t.seriesLabelColor, - t.seriesLineThickness, - t.tooltipFont, - t.tooltipFontSize, - t.tooltipFontBold, - t.tooltipFontItalic, - t.tooltipColor, - t.tooltipBackground, - t.tooltipBorder, - t.chartFont, - t.chartFontSize, - t.chartFontBold, - t.chartFontItalic, - t.chartColor, - t.tableHeaderFont, - t.tableHeaderFontSize, - t.tableHeaderFontBold, - t.tableHeaderFontItalic, - t.tableHeaderTextAlign, - t.tableHeaderColor, - t.tableBodyFont, - t.tableBodyFontSize, - t.tableBodyFontBold, - t.tableBodyFontItalic, - t.tableBodyTextAlign, - t.tableBodyColor, - t.tableBodyRowAltBackground, - t.tableBodyRowHoverBackground, - t.funnelLabelColor, - t.funnelLabelFontFamily, - t.funnelLabelFontSize, - t.funnelLabelFontBold, - t.funnelLabelFontItalic - ] - }, - [ - '.keen-theme-builder .keen-dataviz{' - .concat(t.chartBackground, ' ') - .concat(t.chartBorder, ';}'), - '.keen-dataviz,.c3 svg{'.concat( - t.chartFont, - ';}' - ), - '.keen-dataviz .keen-dataviz-title,.keen-theme-builder .keen-dataviz .keen-dataviz-metric-title{display:block;' - .concat(t.titleColor, ' ') - .concat(t.titleTextAlign, ' ') - .concat(t.titleFontFamily, ' ') - .concat(t.titleFontSize, ' ') - .concat(t.titleFontBold, ' ') - .concat(t.titleFontItalic, ';}'), - '.keen-dataviz .keen-dataviz-subtitle,.keen-theme-builder .keen-dataviz .keen-dataviz-metric-subtitle{width:100%;display:block;' - .concat(t.subtitleColor, ' ') - .concat(t.subtitleTextAlign, ' ') - .concat(t.subtitleFontFamily, ' ') - .concat(t.subtitleFontSize, ' ') - .concat(t.subtitleFontBold, ' ') - .concat(t.subtitleFontItalic, ';}'), - '.keen-dataviz .c3-axis.c3-axis-y .tick text{' - .concat(t.axisYLabelColor, ' ') - .concat(t.axisYLabelFont, ' ') - .concat(t.axisYLabelFontSize, ' ') - .concat(t.axisYLabelFontBold, ' ') - .concat(t.axisYLabelFontItalic, ';}'), - '.keen-dataviz .c3-axis.c3-axis-x .tick text{' - .concat(t.axisXLabelColor, ' ') - .concat(t.axisXLabelFont, ' ') - .concat(t.axisXLabelFontSize, ' ') - .concat(t.axisXLabelFontBold, ' ') - .concat(t.axisXLabelFontItalic, ';}'), - '.keen-dataviz .keen-c3-legend .legend-item-text{' - .concat(t.legendFont, ' ') - .concat(t.legendFontSize, ' ') - .concat(t.legendFontBold, ' ') - .concat(t.legendFontItalic, ' ') - .concat(t.legendColor, ';}'), - '.keen-dataviz .c3-grid line,.keen-dataviz .chart-lines{'.concat( - t.gridLineColor, - ';}' - ), - '.keen-theme-builder .keen-dataviz .c3-ygrid{'.concat( - t.gridLineShow, - ';}' - ), - '.keen-theme-builder .keen-dataviz .c3-axis .c3-axis-y-label{' - .concat(t.axisYTitleFont, ' ') - .concat(t.axisYTitleFontSize, ' ') - .concat(t.axisYTitleFontBold, ' ') - .concat(t.axisYTitleFontItalic, ' ') - .concat(t.axisYTitleColor, ';}'), - '.keen-theme-builder .keen-dataviz .c3-axis .c3-axis-x-label{' - .concat(t.axisXTitleFont, ' ') - .concat(t.axisXTitleFontSize, ' ') - .concat(t.axisXTitleFontBold, ' ') - .concat(t.axisXTitleFontItalic, ' ') - .concat(t.axisXTitleColor, ';}'), - '.keen-theme-builder .keen-dataviz .c3-chart-texts .c3-text,.keen-theme-builder .keen-dataviz .c3-chart-arcs .c3-chart-arc text,.keen-theme-builder .keen-dataviz .c3-chart-arcs-gauge-min,.keen-theme-builder .keen-dataviz .c3-chart-arcs-gauge-max{' - .concat(t.seriesLabelFont, ' ') - .concat(t.seriesLabelFontSize, ' ') - .concat(t.seriesLabelFontBold, ' ') - .concat(t.seriesLabelFontItalic, ' ') - .concat(t.seriesLabelColor, ';}'), - '.keen-theme-builder .keen-dataviz .c3-chart-lines .c3-shape.c3-line{'.concat( - t.seriesLineThickness, - ';}' - ), - '.keen-theme-builder .keen-dataviz .c3-tooltip{' - .concat(t.tooltipFont, ' ') - .concat(t.tooltipFontSize, ' ') - .concat(t.tooltipFontBold, ' ') - .concat(t.tooltipFontItalic, ' ') - .concat(t.tooltipColor, ' ') - .concat(t.tooltipBackground, ' ') - .concat(t.tooltipBorder, ';}'), - '.keen-theme-builder .keen-dataviz .keen-dataviz-metric-value{' - .concat(t.chartFont, ' ') - .concat(t.chartFontSize, ' ') - .concat(t.chartFontBold, ' ') - .concat(t.chartFontItalic, ' ') - .concat(t.chartColor, ';}'), - '.keen-theme-builder .keen-dataviz-table th{' - .concat(t.tableHeaderFont, ' ') - .concat(t.tableHeaderFontSize, ' ') - .concat(t.tableHeaderFontBold, ' ') - .concat(t.tableHeaderFontItalic, ' ') - .concat(t.tableHeaderTextAlign, ' ') - .concat(t.tableHeaderColor, ';}'), - '.keen-theme-builder .keen-dataviz-table tr td,.keen-theme-builder .keen-dataviz-table .table-data-row{' - .concat(t.tableBodyFont, ' ') - .concat(t.tableBodyFontSize, ' ') - .concat(t.tableBodyFontBold, ' ') - .concat(t.tableBodyFontItalic, ' ') - .concat(t.tableBodyTextAlign, ' ') - .concat(t.tableBodyColor, ';}'), - '.keen-theme-builder .keen-dataviz-table .table-data-row:nth-child(even) td{'.concat( - t.tableBodyRowAltBackground, - ';}' - ), - '.keen-theme-builder .keen-dataviz-table .table-data-row:hover td{'.concat( - t.tableBodyRowHoverBackground, - ' color:inherit;}' - ), - '.keen-theme-builder .keen-dataviz-rendering .text-label{display:block;' - .concat(t.funnelLabelColor, ' ') - .concat(t.funnelLabelFontFamily, ' ') - .concat(t.funnelLabelFontSize, ' ') - .concat(t.funnelLabelFontBold, ' ') - .concat(t.funnelLabelFontItalic, ';}') - ] - ) - ); - } - }, - { - key: 'renderMockUpSection', - value: function() { - return i.a.createElement( - 'div', - { className: 'builder__mockup' }, - i.a.createElement( - 'h2', - { className: 'builder__header' }, - 'Preview' - ), - !this.props.isDashboardBuilderActive && - i.a.createElement( - d.Tabs, - null, - i.a.createElement( - d.TabList, - null, - i.a.createElement(d.Tab, null, 'Chart'), - i.a.createElement(d.Tab, null, 'CSS'), - i.a.createElement(d.Tab, null, 'Javascript') - ), - i.a.createElement( - d.TabPanel, - null, - this.renderTabChart() - ), - i.a.createElement( - d.TabPanel, - null, - i.a.createElement(be, { - data: this.state, - type: 'css' - }) - ), - i.a.createElement( - d.TabPanel, - null, - i.a.createElement(be, { - data: this.state, - type: 'js' - }) - ) - ) - ); - } - }, - { - key: 'render', - value: function() { - var t = this.props.isDashboardBuilderActive - ? 'keen-theme-builder no-mockup' - : 'keen-theme-builder'; - return i.a.createElement( - 'div', - { className: t }, - this.renderConfigSection(), - !this.props.isDashboardBuilderActive && - this.renderMockUpSection() - ); - } - } - ]) && Pe(n.prototype, r), - e - ); - })(r.PureComponent); - (De.propTypes = { - options: a.a.object.isRequired, - isDashboardBuilderActive: a.a.bool, - onChange: a.a.func.isRequired - }), - (De.defaultProps = { - options: vt, - isDashboardBuilderActive: !1, - onChange: function() {} - }), - n.d(e, 'getStyles', function() { - return je; - }), - (e.default = De); - var je = function(t, e) { - return ve(t, e); - }; - } - ]))); - }, - function(t, e, n) { - 'use strict'; - var r = s(n(236)), - i = s(n(241)), - o = s(n(111)), - a = s(n(108)); - function s(t) { - return t && t.__esModule ? t : { default: t }; - } - t.exports = { - Transition: a.default, - TransitionGroup: o.default, - ReplaceTransition: i.default, - CSSTransition: r.default - }; - }, - , - , - function(t, e, n) { - var r = n(26), - i = n(14); - t.exports = function(t) { - if (!i(t)) return !1; - var e = r(t); - return ( - '[object Function]' == e || - '[object GeneratorFunction]' == e || - '[object AsyncFunction]' == e || - '[object Proxy]' == e - ); - }; - }, - function(t, e, n) { - var r = n(25)(n(18), 'Map'); - t.exports = r; - }, - function(t, e) { - t.exports = function(t) { - return ( - 'number' == typeof t && t > -1 && t % 1 == 0 && t <= 9007199254740991 - ); - }; - }, - function(t, e) { - t.exports = function(t) { - return function(e) { - return t(e); - }; - }; - }, - function(t, e, n) { - (function(t) { - var r = n(92), - i = e && !e.nodeType && e, - o = i && 'object' == typeof t && t && !t.nodeType && t, - a = o && o.exports === i && r.process, - s = (function() { - try { - var t = o && o.require && o.require('util').types; - return t || (a && a.binding && a.binding('util')); - } catch (t) {} - })(); - t.exports = s; - }.call(this, n(35)(t))); - }, - function(t, e, n) { - var r = n(201), - i = n(208), - o = n(210), - a = n(211), - s = n(212); - function u(t) { - var e = -1, - n = null == t ? 0 : t.length; - for (this.clear(); ++e < n; ) { - var r = t[e]; - this.set(r[0], r[1]); - } - } - (u.prototype.clear = r), - (u.prototype.delete = i), - (u.prototype.get = o), - (u.prototype.has = a), - (u.prototype.set = s), - (t.exports = u); - }, - function(t, e, n) { - var r = n(96); - t.exports = function(t, e, n) { - '__proto__' == e && r - ? r(t, e, { - configurable: !0, - enumerable: !0, - value: n, - writable: !0 - }) - : (t[e] = n); - }; - }, - function(t, e, n) { - var r = n(100); - t.exports = function(t) { - var e = new t.constructor(t.byteLength); - return new r(e).set(new r(t)), e; - }; - }, - function(t, e, n) { - var r = n(91)(Object.getPrototypeOf, Object); - t.exports = r; - }, - function(t, e) { - var n = /^(?:0|[1-9]\d*)$/; - t.exports = function(t, e) { - var r = typeof t; - return ( - !!(e = null == e ? 9007199254740991 : e) && - ('number' == r || ('symbol' != r && n.test(t))) && - t > -1 && - t % 1 == 0 && - t < e - ); - }; - }, - function(t, e, n) { - var r = n(243), - i = n(20); - t.exports = function t(e, n, o, a, s) { - return ( - e === n || - (null == e || null == n || (!i(e) && !i(n)) - ? e != e && n != n - : r(e, n, o, a, t, s)) - ); - }; - }, - function(t, e, n) { - var r = n(253), - i = n(116), - o = Object.prototype.propertyIsEnumerable, - a = Object.getOwnPropertySymbols, - s = a - ? function(t) { - return null == t - ? [] - : ((t = Object(t)), - r(a(t), function(e) { - return o.call(t, e); - })); - } - : i; - t.exports = s; - }, - function(t, e, n) { - (function(t, n) { - var r = '[object Arguments]', - i = '[object Map]', - o = '[object Object]', - a = '[object Set]', - s = /^\[object .+?Constructor\]$/, - u = /^(?:0|[1-9]\d*)$/, - l = {}; - (l['[object Float32Array]'] = l['[object Float64Array]'] = l[ - '[object Int8Array]' - ] = l['[object Int16Array]'] = l['[object Int32Array]'] = l[ - '[object Uint8Array]' - ] = l['[object Uint8ClampedArray]'] = l['[object Uint16Array]'] = l[ - '[object Uint32Array]' - ] = !0), - (l[r] = l['[object Array]'] = l['[object ArrayBuffer]'] = l[ - '[object Boolean]' - ] = l['[object DataView]'] = l['[object Date]'] = l[ - '[object Error]' - ] = l['[object Function]'] = l[i] = l['[object Number]'] = l[o] = l[ - '[object RegExp]' - ] = l[a] = l['[object String]'] = l['[object WeakMap]'] = !1); - var c = 'object' == typeof t && t && t.Object === Object && t, - f = 'object' == typeof self && self && self.Object === Object && self, - d = c || f || Function('return this')(), - h = e && !e.nodeType && e, - p = h && 'object' == typeof n && n && !n.nodeType && n, - g = p && p.exports === h, - v = g && c.process, - m = (function() { - try { - return v && v.binding && v.binding('util'); - } catch (t) {} - })(), - y = m && m.isTypedArray; - function b(t, e) { - for (var n = -1, r = null == t ? 0 : t.length; ++n < r; ) - if (e(t[n], n, t)) return !0; - return !1; - } - function _(t) { - var e = -1, - n = Array(t.size); - return ( - t.forEach(function(t, r) { - n[++e] = [r, t]; - }), - n - ); - } - function x(t) { - var e = -1, - n = Array(t.size); - return ( - t.forEach(function(t) { - n[++e] = t; - }), - n - ); - } - var w, - S, - E, - k = Array.prototype, - A = Function.prototype, - T = Object.prototype, - C = d['__core-js_shared__'], - O = A.toString, - P = T.hasOwnProperty, - M = (w = /[^.]+$/.exec((C && C.keys && C.keys.IE_PROTO) || '')) - ? 'Symbol(src)_1.' + w - : '', - L = T.toString, - D = RegExp( - '^' + - O.call(P) - .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') - .replace( - /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, - '$1.*?' - ) + - '$' - ), - j = g ? d.Buffer : void 0, - R = d.Symbol, - N = d.Uint8Array, - z = T.propertyIsEnumerable, - I = k.splice, - F = R ? R.toStringTag : void 0, - V = Object.getOwnPropertySymbols, - B = j ? j.isBuffer : void 0, - G = - ((S = Object.keys), - (E = Object), - function(t) { - return S(E(t)); - }), - H = mt(d, 'DataView'), - U = mt(d, 'Map'), - q = mt(d, 'Promise'), - W = mt(d, 'Set'), - X = mt(d, 'WeakMap'), - Y = mt(Object, 'create'), - $ = xt(H), - Q = xt(U), - K = xt(q), - Z = xt(W), - J = xt(X), - tt = R ? R.prototype : void 0, - et = tt ? tt.valueOf : void 0; - function nt(t) { - var e = -1, - n = null == t ? 0 : t.length; - for (this.clear(); ++e < n; ) { - var r = t[e]; - this.set(r[0], r[1]); - } - } - function rt(t) { - var e = -1, - n = null == t ? 0 : t.length; - for (this.clear(); ++e < n; ) { - var r = t[e]; - this.set(r[0], r[1]); - } - } - function it(t) { - var e = -1, - n = null == t ? 0 : t.length; - for (this.clear(); ++e < n; ) { - var r = t[e]; - this.set(r[0], r[1]); - } - } - function ot(t) { - var e = -1, - n = null == t ? 0 : t.length; - for (this.__data__ = new it(); ++e < n; ) this.add(t[e]); - } - function at(t) { - var e = (this.__data__ = new rt(t)); - this.size = e.size; - } - function st(t, e) { - var n = Et(t), - r = !n && St(t), - i = !n && !r && kt(t), - o = !n && !r && !i && Pt(t), - a = n || r || i || o, - s = a - ? (function(t, e) { - for (var n = -1, r = Array(t); ++n < t; ) r[n] = e(n); - return r; - })(t.length, String) - : [], - u = s.length; - for (var l in t) - (!e && !P.call(t, l)) || - (a && - ('length' == l || - (i && ('offset' == l || 'parent' == l)) || - (o && - ('buffer' == l || - 'byteLength' == l || - 'byteOffset' == l)) || - _t(l, u))) || - s.push(l); - return s; - } - function ut(t, e) { - for (var n = t.length; n--; ) if (wt(t[n][0], e)) return n; - return -1; - } - function lt(t) { - return null == t - ? void 0 === t - ? '[object Undefined]' - : '[object Null]' - : F && F in Object(t) - ? (function(t) { - var e = P.call(t, F), - n = t[F]; - try { - t[F] = void 0; - var r = !0; - } catch (t) {} - var i = L.call(t); - r && (e ? (t[F] = n) : delete t[F]); - return i; - })(t) - : (function(t) { - return L.call(t); - })(t); - } - function ct(t) { - return Ot(t) && lt(t) == r; - } - function ft(t, e, n, s, u) { - return ( - t === e || - (null == t || null == e || (!Ot(t) && !Ot(e)) - ? t != t && e != e - : (function(t, e, n, s, u, l) { - var c = Et(t), - f = Et(e), - d = c ? '[object Array]' : bt(t), - h = f ? '[object Array]' : bt(e), - p = (d = d == r ? o : d) == o, - g = (h = h == r ? o : h) == o, - v = d == h; - if (v && kt(t)) { - if (!kt(e)) return !1; - (c = !0), (p = !1); - } - if (v && !p) - return ( - l || (l = new at()), - c || Pt(t) - ? pt(t, e, n, s, u, l) - : (function(t, e, n, r, o, s, u) { - switch (n) { - case '[object DataView]': - if ( - t.byteLength != e.byteLength || - t.byteOffset != e.byteOffset - ) - return !1; - (t = t.buffer), (e = e.buffer); - case '[object ArrayBuffer]': - return !( - t.byteLength != e.byteLength || - !s(new N(t), new N(e)) - ); - case '[object Boolean]': - case '[object Date]': - case '[object Number]': - return wt(+t, +e); - case '[object Error]': - return ( - t.name == e.name && t.message == e.message - ); - case '[object RegExp]': - case '[object String]': - return t == e + ''; - case i: - var l = _; - case a: - var c = 1 & r; - if ((l || (l = x), t.size != e.size && !c)) - return !1; - var f = u.get(t); - if (f) return f == e; - (r |= 2), u.set(t, e); - var d = pt(l(t), l(e), r, o, s, u); - return u.delete(t), d; - case '[object Symbol]': - if (et) return et.call(t) == et.call(e); - } - return !1; - })(t, e, d, n, s, u, l) - ); - if (!(1 & n)) { - var m = p && P.call(t, '__wrapped__'), - y = g && P.call(e, '__wrapped__'); - if (m || y) { - var b = m ? t.value() : t, - w = y ? e.value() : e; - return l || (l = new at()), u(b, w, n, s, l); - } - } - if (!v) return !1; - return ( - l || (l = new at()), - (function(t, e, n, r, i, o) { - var a = 1 & n, - s = gt(t), - u = s.length, - l = gt(e).length; - if (u != l && !a) return !1; - var c = u; - for (; c--; ) { - var f = s[c]; - if (!(a ? f in e : P.call(e, f))) return !1; - } - var d = o.get(t); - if (d && o.get(e)) return d == e; - var h = !0; - o.set(t, e), o.set(e, t); - var p = a; - for (; ++c < u; ) { - f = s[c]; - var g = t[f], - v = e[f]; - if (r) - var m = a ? r(v, g, f, e, t, o) : r(g, v, f, t, e, o); - if (!(void 0 === m ? g === v || i(g, v, n, r, o) : m)) { - h = !1; - break; - } - p || (p = 'constructor' == f); - } - if (h && !p) { - var y = t.constructor, - b = e.constructor; - y == b || - !('constructor' in t) || - !('constructor' in e) || - ('function' == typeof y && - y instanceof y && - 'function' == typeof b && - b instanceof b) || - (h = !1); - } - return o.delete(t), o.delete(e), h; - })(t, e, n, s, u, l) - ); - })(t, e, n, s, ft, u)) - ); - } - function dt(t) { - return ( - !( - !Ct(t) || - (function(t) { - return !!M && M in t; - })(t) - ) && (At(t) ? D : s).test(xt(t)) - ); - } - function ht(t) { - if ( - !(function(t) { - var e = t && t.constructor, - n = ('function' == typeof e && e.prototype) || T; - return t === n; - })(t) - ) - return G(t); - var e = []; - for (var n in Object(t)) - P.call(t, n) && 'constructor' != n && e.push(n); - return e; - } - function pt(t, e, n, r, i, o) { - var a = 1 & n, - s = t.length, - u = e.length; - if (s != u && !(a && u > s)) return !1; - var l = o.get(t); - if (l && o.get(e)) return l == e; - var c = -1, - f = !0, - d = 2 & n ? new ot() : void 0; - for (o.set(t, e), o.set(e, t); ++c < s; ) { - var h = t[c], - p = e[c]; - if (r) var g = a ? r(p, h, c, e, t, o) : r(h, p, c, t, e, o); - if (void 0 !== g) { - if (g) continue; - f = !1; - break; - } - if (d) { - if ( - !b(e, function(t, e) { - if (((a = e), !d.has(a) && (h === t || i(h, t, n, r, o)))) - return d.push(e); - var a; - }) - ) { - f = !1; - break; - } - } else if (h !== p && !i(h, p, n, r, o)) { - f = !1; - break; - } - } - return o.delete(t), o.delete(e), f; - } - function gt(t) { - return (function(t, e, n) { - var r = e(t); - return Et(t) - ? r - : (function(t, e) { - for (var n = -1, r = e.length, i = t.length; ++n < r; ) - t[i + n] = e[n]; - return t; - })(r, n(t)); - })(t, Mt, yt); - } - function vt(t, e) { - var n = t.__data__; - return (function(t) { - var e = typeof t; - return 'string' == e || - 'number' == e || - 'symbol' == e || - 'boolean' == e - ? '__proto__' !== t - : null === t; - })(e) - ? n['string' == typeof e ? 'string' : 'hash'] - : n.map; - } - function mt(t, e) { - var n = (function(t, e) { - return null == t ? void 0 : t[e]; - })(t, e); - return dt(n) ? n : void 0; - } - (nt.prototype.clear = function() { - (this.__data__ = Y ? Y(null) : {}), (this.size = 0); - }), - (nt.prototype.delete = function(t) { - var e = this.has(t) && delete this.__data__[t]; - return (this.size -= e ? 1 : 0), e; - }), - (nt.prototype.get = function(t) { - var e = this.__data__; - if (Y) { - var n = e[t]; - return '__lodash_hash_undefined__' === n ? void 0 : n; - } - return P.call(e, t) ? e[t] : void 0; - }), - (nt.prototype.has = function(t) { - var e = this.__data__; - return Y ? void 0 !== e[t] : P.call(e, t); - }), - (nt.prototype.set = function(t, e) { - var n = this.__data__; - return ( - (this.size += this.has(t) ? 0 : 1), - (n[t] = Y && void 0 === e ? '__lodash_hash_undefined__' : e), - this - ); - }), - (rt.prototype.clear = function() { - (this.__data__ = []), (this.size = 0); - }), - (rt.prototype.delete = function(t) { - var e = this.__data__, - n = ut(e, t); - return ( - !(n < 0) && - (n == e.length - 1 ? e.pop() : I.call(e, n, 1), --this.size, !0) - ); - }), - (rt.prototype.get = function(t) { - var e = this.__data__, - n = ut(e, t); - return n < 0 ? void 0 : e[n][1]; - }), - (rt.prototype.has = function(t) { - return ut(this.__data__, t) > -1; - }), - (rt.prototype.set = function(t, e) { - var n = this.__data__, - r = ut(n, t); - return r < 0 ? (++this.size, n.push([t, e])) : (n[r][1] = e), this; - }), - (it.prototype.clear = function() { - (this.size = 0), - (this.__data__ = { - hash: new nt(), - map: new (U || rt)(), - string: new nt() - }); - }), - (it.prototype.delete = function(t) { - var e = vt(this, t).delete(t); - return (this.size -= e ? 1 : 0), e; - }), - (it.prototype.get = function(t) { - return vt(this, t).get(t); - }), - (it.prototype.has = function(t) { - return vt(this, t).has(t); - }), - (it.prototype.set = function(t, e) { - var n = vt(this, t), - r = n.size; - return n.set(t, e), (this.size += n.size == r ? 0 : 1), this; - }), - (ot.prototype.add = ot.prototype.push = function(t) { - return this.__data__.set(t, '__lodash_hash_undefined__'), this; - }), - (ot.prototype.has = function(t) { - return this.__data__.has(t); - }), - (at.prototype.clear = function() { - (this.__data__ = new rt()), (this.size = 0); - }), - (at.prototype.delete = function(t) { - var e = this.__data__, - n = e.delete(t); - return (this.size = e.size), n; - }), - (at.prototype.get = function(t) { - return this.__data__.get(t); - }), - (at.prototype.has = function(t) { - return this.__data__.has(t); - }), - (at.prototype.set = function(t, e) { - var n = this.__data__; - if (n instanceof rt) { - var r = n.__data__; - if (!U || r.length < 199) - return r.push([t, e]), (this.size = ++n.size), this; - n = this.__data__ = new it(r); - } - return n.set(t, e), (this.size = n.size), this; - }); - var yt = V - ? function(t) { - return null == t - ? [] - : ((t = Object(t)), - (function(t, e) { - for ( - var n = -1, r = null == t ? 0 : t.length, i = 0, o = []; - ++n < r; - - ) { - var a = t[n]; - e(a, n, t) && (o[i++] = a); - } - return o; - })(V(t), function(e) { - return z.call(t, e); - })); - } - : function() { - return []; - }, - bt = lt; - function _t(t, e) { - return ( - !!(e = null == e ? 9007199254740991 : e) && - ('number' == typeof t || u.test(t)) && - t > -1 && - t % 1 == 0 && - t < e - ); - } - function xt(t) { - if (null != t) { - try { - return O.call(t); - } catch (t) {} - try { - return t + ''; - } catch (t) {} - } - return ''; - } - function wt(t, e) { - return t === e || (t != t && e != e); - } - ((H && '[object DataView]' != bt(new H(new ArrayBuffer(1)))) || - (U && bt(new U()) != i) || - (q && '[object Promise]' != bt(q.resolve())) || - (W && bt(new W()) != a) || - (X && '[object WeakMap]' != bt(new X()))) && - (bt = function(t) { - var e = lt(t), - n = e == o ? t.constructor : void 0, - r = n ? xt(n) : ''; - if (r) - switch (r) { - case $: - return '[object DataView]'; - case Q: - return i; - case K: - return '[object Promise]'; - case Z: - return a; - case J: - return '[object WeakMap]'; - } - return e; - }); - var St = ct( - (function() { - return arguments; - })() - ) - ? ct - : function(t) { - return Ot(t) && P.call(t, 'callee') && !z.call(t, 'callee'); - }, - Et = Array.isArray; - var kt = - B || - function() { - return !1; - }; - function At(t) { - if (!Ct(t)) return !1; - var e = lt(t); - return ( - '[object Function]' == e || - '[object GeneratorFunction]' == e || - '[object AsyncFunction]' == e || - '[object Proxy]' == e - ); - } - function Tt(t) { - return ( - 'number' == typeof t && - t > -1 && - t % 1 == 0 && - t <= 9007199254740991 - ); - } - function Ct(t) { - var e = typeof t; - return null != t && ('object' == e || 'function' == e); - } - function Ot(t) { - return null != t && 'object' == typeof t; - } - var Pt = y - ? (function(t) { - return function(e) { - return t(e); - }; - })(y) - : function(t) { - return Ot(t) && Tt(t.length) && !!l[lt(t)]; - }; - function Mt(t) { - return (function(t) { - return null != t && Tt(t.length) && !At(t); - })(t) - ? st(t) - : ht(t); - } - n.exports = function(t, e) { - return ft(t, e); - }; - }.call(this, n(13), n(35)(t))); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t, e) { - return t - .filter(function(t) { - return !(0, r.default)(t); - }) - .map(function(t, n) { - var r = void 0; - return 'function' != typeof e || (null !== (r = e(t, n)) && !r) - ? (0, i.default)(t, n, e) - : r; - }); - }); - var r = o(n(272)), - i = o(n(121)); - function o(t) { - return t && t.__esModule ? t : { default: t }; - } - }, - function(t, e, n) { - var r = n(135), - i = n(136); - t.exports = function(t, e) { - return t && r(t, i(e)); - }; - }, - function(t, e, n) { - var r = n(10), - i = n(56), - o = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, - a = /^\w*$/; - t.exports = function(t, e) { - if (r(t)) return !1; - var n = typeof t; - return ( - !( - 'number' != n && - 'symbol' != n && - 'boolean' != n && - null != t && - !i(t) - ) || - a.test(t) || !o.test(t) || (null != e && t in Object(e)) - ); - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Checkboard = void 0); - var r = a(n(0)), - i = a(n(2)), - o = (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]); - return (e.default = t), e; - })(n(362)); - function a(t) { - return t && t.__esModule ? t : { default: t }; - } - var s = (e.Checkboard = function(t) { - var e = t.white, - n = t.grey, - a = t.size, - s = t.renderers, - u = t.borderRadius, - l = t.boxShadow, - c = (0, i.default)({ - default: { - grid: { - borderRadius: u, - boxShadow: l, - absolute: '0px 0px 0px 0px', - background: 'url('https://github.com/+%20o.get(e,%20n,%20a,%20s.canvas) + ') center left' - } - } - }); - return r.default.createElement('div', { style: c.grid }); - }); - (s.defaultProps = { - size: 8, - white: 'transparent', - grey: 'rgba(0,0,0,.08)', - renderers: {} - }), - (e.default = s); - }, - function(t, e) { - t.exports = function(t) { - if (void 0 === t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return t; - }; - }, - function(t, e, n) { - 'use strict'; - (function(t, r) { - var i, - o = n(149); - i = - 'undefined' != typeof self - ? self - : 'undefined' != typeof window - ? window - : void 0 !== t - ? t - : r; - var a = Object(o.a)(i); - e.a = a; - }.call(this, n(13), n(171)(t))); - }, - function(t, e, n) { - var r = n(234); - (t.exports = h), - (t.exports.parse = o), - (t.exports.compile = function(t, e) { - return s(o(t, e), e); - }), - (t.exports.tokensToFunction = s), - (t.exports.tokensToRegExp = d); - var i = new RegExp( - [ - '(\\\\.)', - '([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))' - ].join('|'), - 'g' - ); - function o(t, e) { - for ( - var n, r = [], o = 0, a = 0, s = '', c = (e && e.delimiter) || '/'; - null != (n = i.exec(t)); - - ) { - var f = n[0], - d = n[1], - h = n.index; - if (((s += t.slice(a, h)), (a = h + f.length), d)) s += d[1]; - else { - var p = t[a], - g = n[2], - v = n[3], - m = n[4], - y = n[5], - b = n[6], - _ = n[7]; - s && (r.push(s), (s = '')); - var x = null != g && null != p && p !== g, - w = '+' === b || '*' === b, - S = '?' === b || '*' === b, - E = n[2] || c, - k = m || y; - r.push({ - name: v || o++, - prefix: g || '', - delimiter: E, - optional: S, - repeat: w, - partial: x, - asterisk: !!_, - pattern: k ? l(k) : _ ? '.*' : '[^' + u(E) + ']+?' - }); - } - } - return a < t.length && (s += t.substr(a)), s && r.push(s), r; - } - function a(t) { - return encodeURI(t).replace(/[\/?#]/g, function(t) { - return ( - '%' + - t - .charCodeAt(0) - .toString(16) - .toUpperCase() - ); - }); - } - function s(t, e) { - for (var n = new Array(t.length), i = 0; i < t.length; i++) - 'object' == typeof t[i] && - (n[i] = new RegExp('^(?:' + t[i].pattern + ')$', f(e))); - return function(e, i) { - for ( - var o = '', - s = e || {}, - u = (i || {}).pretty ? a : encodeURIComponent, - l = 0; - l < t.length; - l++ - ) { - var c = t[l]; - if ('string' != typeof c) { - var f, - d = s[c.name]; - if (null == d) { - if (c.optional) { - c.partial && (o += c.prefix); - continue; - } - throw new TypeError('Expected "' + c.name + '" to be defined'); - } - if (r(d)) { - if (!c.repeat) - throw new TypeError( - 'Expected "' + - c.name + - '" to not repeat, but received `' + - JSON.stringify(d) + - '`' - ); - if (0 === d.length) { - if (c.optional) continue; - throw new TypeError( - 'Expected "' + c.name + '" to not be empty' - ); - } - for (var h = 0; h < d.length; h++) { - if (((f = u(d[h])), !n[l].test(f))) - throw new TypeError( - 'Expected all "' + - c.name + - '" to match "' + - c.pattern + - '", but received `' + - JSON.stringify(f) + - '`' - ); - o += (0 === h ? c.prefix : c.delimiter) + f; - } - } else { - if ( - ((f = c.asterisk - ? encodeURI(d).replace(/[?#]/g, function(t) { - return ( - '%' + - t - .charCodeAt(0) - .toString(16) - .toUpperCase() - ); - }) - : u(d)), - !n[l].test(f)) - ) - throw new TypeError( - 'Expected "' + - c.name + - '" to match "' + - c.pattern + - '", but received "' + - f + - '"' - ); - o += c.prefix + f; - } - } else o += c; - } - return o; - }; - } - function u(t) { - return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1'); - } - function l(t) { - return t.replace(/([=!:$\/()])/g, '\\$1'); - } - function c(t, e) { - return (t.keys = e), t; - } - function f(t) { - return t && t.sensitive ? '' : 'i'; - } - function d(t, e, n) { - r(e) || ((n = e || n), (e = [])); - for ( - var i = (n = n || {}).strict, o = !1 !== n.end, a = '', s = 0; - s < t.length; - s++ - ) { - var l = t[s]; - if ('string' == typeof l) a += u(l); - else { - var d = u(l.prefix), - h = '(?:' + l.pattern + ')'; - e.push(l), - l.repeat && (h += '(?:' + d + h + ')*'), - (a += h = l.optional - ? l.partial - ? d + '(' + h + ')?' - : '(?:' + d + '(' + h + '))?' - : d + '(' + h + ')'); - } - } - var p = u(n.delimiter || '/'), - g = a.slice(-p.length) === p; - return ( - i || (a = (g ? a.slice(0, -p.length) : a) + '(?:' + p + '(?=$))?'), - (a += o ? '$' : i && g ? '' : '(?=' + p + '|$)'), - c(new RegExp('^' + a, f(n)), e) - ); - } - function h(t, e, n) { - return ( - r(e) || ((n = e || n), (e = [])), - (n = n || {}), - t instanceof RegExp - ? (function(t, e) { - var n = t.source.match(/\((?!\?)/g); - if (n) - for (var r = 0; r < n.length; r++) - e.push({ - name: r, - prefix: null, - delimiter: null, - optional: !1, - repeat: !1, - partial: !1, - asterisk: !1, - pattern: null - }); - return c(t, e); - })(t, e) - : r(t) - ? (function(t, e, n) { - for (var r = [], i = 0; i < t.length; i++) - r.push(h(t[i], e, n).source); - return c(new RegExp('(?:' + r.join('|') + ')', f(n)), e); - })(t, e, n) - : (function(t, e, n) { - return d(o(t, n), e, n); - })(t, e, n) - ); - } - }, - function(t, e, n) { - t.exports = n(254); - }, - function(t, e, n) { - (function(e) { - var n = (function(t) { - var e = /\blang(?:uage)?-([\w-]+)\b/i, - n = 0, - r = { - manual: t.Prism && t.Prism.manual, - disableWorkerMessageHandler: - t.Prism && t.Prism.disableWorkerMessageHandler, - util: { - encode: function t(e) { - return e instanceof i - ? new i(e.type, t(e.content), e.alias) - : Array.isArray(e) - ? e.map(t) - : e - .replace(/&/g, '&') - .replace(/ e.length) return; - if (!(E instanceof i)) { - var k = 1; - if (y && w != n.tail.prev) { - if (((g.lastIndex = S), !(P = g.exec(e)))) - break; - var A = P.index + (m && P[1] ? P[1].length : 0), - T = P.index + P[0].length, - C = S; - for (C += w.value.length; A >= C; ) - (w = w.next), (C += w.value.length); - if ( - ((C -= w.value.length), - (S = C), - w.value instanceof i) - ) - continue; - for ( - var O = w; - O !== n.tail && - (C < T || - ('string' == typeof O.value && - !O.prev.value.greedy)); - O = O.next - ) - k++, (C += O.value.length); - k--, (E = e.slice(S, C)), (P.index -= S); - } else { - g.lastIndex = 0; - var P = g.exec(E); - } - if (P) { - m && (b = P[1] ? P[1].length : 0); - (A = P.index + b), - (P = P[0].slice(b)), - (T = A + P.length); - var M = E.slice(0, A), - L = E.slice(T), - D = w.prev; - M && ((D = a(n, D, M)), (S += M.length)), - s(n, D, k); - var j = new i( - d, - v ? r.tokenize(P, v) : P, - _, - P, - y - ); - if ( - ((w = a(n, D, j)), - L && a(n, w, L), - k > 1 && - t(e, n, o, w.prev, S, !0, d + ',' + p), - c) - ) - break; - } else if (c) break; - } - } - } - } - })(t, l, e, l.head, 0), - (function(t) { - var e = [], - n = t.head.next; - for (; n !== t.tail; ) e.push(n.value), (n = n.next); - return e; - })(l) - ); - }, - hooks: { - all: {}, - add: function(t, e) { - var n = r.hooks.all; - (n[t] = n[t] || []), n[t].push(e); - }, - run: function(t, e) { - var n = r.hooks.all[t]; - if (n && n.length) for (var i, o = 0; (i = n[o++]); ) i(e); - } - }, - Token: i - }; - function i(t, e, n, r, i) { - (this.type = t), - (this.content = e), - (this.alias = n), - (this.length = 0 | (r || '').length), - (this.greedy = !!i); - } - function o() { - var t = { value: null, prev: null, next: null }, - e = { value: null, prev: t, next: null }; - (t.next = e), (this.head = t), (this.tail = e), (this.length = 0); - } - function a(t, e, n) { - var r = e.next, - i = { value: n, prev: e, next: r }; - return (e.next = i), (r.prev = i), t.length++, i; - } - function s(t, e, n) { - for (var r = e.next, i = 0; i < n && r !== t.tail; i++) r = r.next; - (e.next = r), (r.prev = e), (t.length -= i); - } - if ( - ((t.Prism = r), - (i.stringify = function t(e, n) { - if ('string' == typeof e) return e; - if (Array.isArray(e)) { - var i = ''; - return ( - e.forEach(function(e) { - i += t(e, n); - }), - i - ); - } - var o = { - type: e.type, - content: t(e.content, n), - tag: 'span', - classes: ['token', e.type], - attributes: {}, - language: n - }, - a = e.alias; - a && - (Array.isArray(a) - ? Array.prototype.push.apply(o.classes, a) - : o.classes.push(a)), - r.hooks.run('wrap', o); - var s = ''; - for (var u in o.attributes) - s += - ' ' + - u + - '="' + - (o.attributes[u] || '').replace(/"/g, '"') + - '"'; - return ( - '<' + - o.tag + - ' class="' + - o.classes.join(' ') + - '"' + - s + - '>' + - o.content + - '' - ); - }), - !t.document) - ) - return t.addEventListener - ? (r.disableWorkerMessageHandler || - t.addEventListener( - 'message', - function(e) { - var n = JSON.parse(e.data), - i = n.language, - o = n.code, - a = n.immediateClose; - t.postMessage(r.highlight(o, r.languages[i], i)), - a && t.close(); - }, - !1 - ), - r) - : r; - var u = r.util.currentScript(); - function l() { - r.manual || r.highlightAll(); - } - if ( - (u && - ((r.filename = u.src), - u.hasAttribute('data-manual') && (r.manual = !0)), - !r.manual) - ) { - var c = document.readyState; - 'loading' === c || ('interactive' === c && u && u.defer) - ? document.addEventListener('DOMContentLoaded', l) - : window.requestAnimationFrame - ? window.requestAnimationFrame(l) - : window.setTimeout(l, 16); - } - return r; - })( - 'undefined' != typeof window - ? window - : 'undefined' != typeof WorkerGlobalScope && - self instanceof WorkerGlobalScope - ? self - : {} - ); - t.exports && (t.exports = n), void 0 !== e && (e.Prism = n); - }.call(this, n(13))); - }, - function(t, e, n) { - (t.exports = n(117).default), - (t.exports.utils = n(39)), - (t.exports.Responsive = n(270).default), - (t.exports.Responsive.utils = n(120)), - (t.exports.WidthProvider = n(271).default); - }, - , - function(t, e, n) { - 'use strict'; - /* -object-assign -(c) Sindre Sorhus -@license MIT -*/ var r = - Object.getOwnPropertySymbols, - i = Object.prototype.hasOwnProperty, - o = Object.prototype.propertyIsEnumerable; - function a(t) { - if (null == t) - throw new TypeError( - 'Object.assign cannot be called with null or undefined' - ); - return Object(t); - } - t.exports = (function() { - try { - if (!Object.assign) return !1; - var t = new String('abc'); - if (((t[5] = 'de'), '5' === Object.getOwnPropertyNames(t)[0])) - return !1; - for (var e = {}, n = 0; n < 10; n++) - e['_' + String.fromCharCode(n)] = n; - if ( - '0123456789' !== - Object.getOwnPropertyNames(e) - .map(function(t) { - return e[t]; - }) - .join('') - ) - return !1; - var r = {}; - return ( - 'abcdefghijklmnopqrst'.split('').forEach(function(t) { - r[t] = t; - }), - 'abcdefghijklmnopqrst' === - Object.keys(Object.assign({}, r)).join('') - ); - } catch (t) { - return !1; - } - })() - ? Object.assign - : function(t, e) { - for (var n, s, u = a(t), l = 1; l < arguments.length; l++) { - for (var c in (n = Object(arguments[l]))) - i.call(n, c) && (u[c] = n[c]); - if (r) { - s = r(n); - for (var f = 0; f < s.length; f++) - o.call(n, s[f]) && (u[s[f]] = n[s[f]]); - } - } - return u; - }; - }, - function(t, e, n) { - var r = n(45), - i = n(172), - o = Object.prototype.hasOwnProperty; - t.exports = function(t) { - if (!r(t)) return i(t); - var e = []; - for (var n in Object(t)) - o.call(t, n) && 'constructor' != n && e.push(n); - return e; - }; - }, - function(t, e) { - t.exports = function(t, e) { - return function(n) { - return t(e(n)); - }; - }; - }, - function(t, e, n) { - (function(e) { - var n = 'object' == typeof e && e && e.Object === Object && e; - t.exports = n; - }.call(this, n(13))); - }, - function(t, e) { - var n = Function.prototype.toString; - t.exports = function(t) { - if (null != t) { - try { - return n.call(t); - } catch (t) {} - try { - return t + ''; - } catch (t) {} - } - return ''; - }; - }, - function(t, e) { - t.exports = function(t, e) { - (null == e || e > t.length) && (e = t.length); - for (var n = 0, r = new Array(e); n < e; n++) r[n] = t[n]; - return r; - }; - }, - function(t, e, n) { - var r = n(71), - i = n(36); - t.exports = function(t, e, n) { - ((void 0 !== n && !i(t[e], n)) || (void 0 === n && !(e in t))) && - r(t, e, n); - }; - }, - function(t, e, n) { - var r = n(25), - i = (function() { - try { - var t = r(Object, 'defineProperty'); - return t({}, '', {}), t; - } catch (t) {} - })(); - t.exports = i; - }, - function(t, e, n) { - var r = n(213)(); - t.exports = r; - }, - function(t, e, n) { - (function(t) { - var r = n(18), - i = e && !e.nodeType && e, - o = i && 'object' == typeof t && t && !t.nodeType && t, - a = o && o.exports === i ? r.Buffer : void 0, - s = a ? a.allocUnsafe : void 0; - t.exports = function(t, e) { - if (e) return t.slice(); - var n = t.length, - r = s ? s(n) : new t.constructor(n); - return t.copy(r), r; - }; - }.call(this, n(35)(t))); - }, - function(t, e, n) { - var r = n(72); - t.exports = function(t, e) { - var n = e ? r(t.buffer) : t.buffer; - return new t.constructor(n, t.byteOffset, t.length); - }; - }, - function(t, e, n) { - var r = n(18).Uint8Array; - t.exports = r; - }, - function(t, e) { - t.exports = function(t, e) { - var n = -1, - r = t.length; - for (e || (e = Array(r)); ++n < r; ) e[n] = t[n]; - return e; - }; - }, - function(t, e, n) { - var r = n(215), - i = n(73), - o = n(45); - t.exports = function(t) { - return 'function' != typeof t.constructor || o(t) ? {} : r(i(t)); - }; - }, - function(t, e, n) { - var r = n(26), - i = n(73), - o = n(20), - a = Function.prototype, - s = Object.prototype, - u = a.toString, - l = s.hasOwnProperty, - c = u.call(Object); - t.exports = function(t) { - if (!o(t) || '[object Object]' != r(t)) return !1; - var e = i(t); - if (null === e) return !0; - var n = l.call(e, 'constructor') && e.constructor; - return 'function' == typeof n && n instanceof n && u.call(n) == c; - }; - }, - function(t, e) { - t.exports = function(t, e) { - if ( - ('constructor' !== e || 'function' != typeof t[e]) && - '__proto__' != e - ) - return t[e]; - }; - }, - function(t, e, n) { - var r = n(71), - i = n(36), - o = Object.prototype.hasOwnProperty; - t.exports = function(t, e, n) { - var a = t[e]; - (o.call(t, e) && i(a, n) && (void 0 !== n || e in t)) || r(t, e, n); - }; - }, - function(t, e, n) { - var r = n(218), - i = n(46), - o = n(10), - a = n(34), - s = n(74), - u = n(47), - l = Object.prototype.hasOwnProperty; - t.exports = function(t, e) { - var n = o(t), - c = !n && i(t), - f = !n && !c && a(t), - d = !n && !c && !f && u(t), - h = n || c || f || d, - p = h ? r(t.length, String) : [], - g = p.length; - for (var v in t) - (!e && !l.call(t, v)) || - (h && - ('length' == v || - (f && ('offset' == v || 'parent' == v)) || - (d && - ('buffer' == v || 'byteLength' == v || 'byteOffset' == v)) || - s(v, g))) || - p.push(v); - return p; - }; - }, - function(t, e) { - var n, - r, - i = (t.exports = {}); - function o() { - throw new Error('setTimeout has not been defined'); - } - function a() { - throw new Error('clearTimeout has not been defined'); - } - function s(t) { - if (n === setTimeout) return setTimeout(t, 0); - if ((n === o || !n) && setTimeout) - return (n = setTimeout), setTimeout(t, 0); - try { - return n(t, 0); - } catch (e) { - try { - return n.call(null, t, 0); - } catch (e) { - return n.call(this, t, 0); - } - } - } - !(function() { - try { - n = 'function' == typeof setTimeout ? setTimeout : o; - } catch (t) { - n = o; - } - try { - r = 'function' == typeof clearTimeout ? clearTimeout : a; - } catch (t) { - r = a; - } - })(); - var u, - l = [], - c = !1, - f = -1; - function d() { - c && - u && - ((c = !1), u.length ? (l = u.concat(l)) : (f = -1), l.length && h()); - } - function h() { - if (!c) { - var t = s(d); - c = !0; - for (var e = l.length; e; ) { - for (u = l, l = []; ++f < e; ) u && u[f].run(); - (f = -1), (e = l.length); - } - (u = null), - (c = !1), - (function(t) { - if (r === clearTimeout) return clearTimeout(t); - if ((r === a || !r) && clearTimeout) - return (r = clearTimeout), clearTimeout(t); - try { - r(t); - } catch (e) { - try { - return r.call(null, t); - } catch (e) { - return r.call(this, t); - } - } - })(t); - } - } - function p(t, e) { - (this.fun = t), (this.array = e); - } - function g() {} - (i.nextTick = function(t) { - var e = new Array(arguments.length - 1); - if (arguments.length > 1) - for (var n = 1; n < arguments.length; n++) e[n - 1] = arguments[n]; - l.push(new p(t, e)), 1 !== l.length || c || s(h); - }), - (p.prototype.run = function() { - this.fun.apply(null, this.array); - }), - (i.title = 'browser'), - (i.browser = !0), - (i.env = {}), - (i.argv = []), - (i.version = ''), - (i.versions = {}), - (i.on = g), - (i.addListener = g), - (i.once = g), - (i.off = g), - (i.removeListener = g), - (i.removeAllListeners = g), - (i.emit = g), - (i.prependListener = g), - (i.prependOnceListener = g), - (i.listeners = function(t) { - return []; - }), - (i.binding = function(t) { - throw new Error('process.binding is not supported'); - }), - (i.cwd = function() { - return '/'; - }), - (i.chdir = function(t) { - throw new Error('process.chdir is not supported'); - }), - (i.umask = function() { - return 0; - }); - }, - function(t, e, n) { - 'use strict'; - (e.__esModule = !0), - (e.default = e.EXITING = e.ENTERED = e.ENTERING = e.EXITED = e.UNMOUNTED = void 0); - var r = (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - if (Object.prototype.hasOwnProperty.call(t, n)) { - var r = - Object.defineProperty && Object.getOwnPropertyDescriptor - ? Object.getOwnPropertyDescriptor(t, n) - : {}; - r.get || r.set ? Object.defineProperty(e, n, r) : (e[n] = t[n]); - } - return (e.default = t), e; - })(n(1)), - i = s(n(0)), - o = s(n(5)), - a = n(109); - n(110); - function s(t) { - return t && t.__esModule ? t : { default: t }; - } - e.UNMOUNTED = 'unmounted'; - e.EXITED = 'exited'; - e.ENTERING = 'entering'; - e.ENTERED = 'entered'; - e.EXITING = 'exiting'; - var u = (function(t) { - var e, n; - function r(e, n) { - var r; - r = t.call(this, e, n) || this; - var i, - o = n.transitionGroup, - a = o && !o.isMounting ? e.enter : e.appear; - return ( - (r.appearStatus = null), - e.in - ? a - ? ((i = 'exited'), (r.appearStatus = 'entering')) - : (i = 'entered') - : (i = - e.unmountOnExit || e.mountOnEnter ? 'unmounted' : 'exited'), - (r.state = { status: i }), - (r.nextCallback = null), - r - ); - } - (n = t), - ((e = r).prototype = Object.create(n.prototype)), - (e.prototype.constructor = e), - (e.__proto__ = n); - var a = r.prototype; - return ( - (a.getChildContext = function() { - return { transitionGroup: null }; - }), - (r.getDerivedStateFromProps = function(t, e) { - return t.in && 'unmounted' === e.status - ? { status: 'exited' } - : null; - }), - (a.componentDidMount = function() { - this.updateStatus(!0, this.appearStatus); - }), - (a.componentDidUpdate = function(t) { - var e = null; - if (t !== this.props) { - var n = this.state.status; - this.props.in - ? 'entering' !== n && 'entered' !== n && (e = 'entering') - : ('entering' !== n && 'entered' !== n) || (e = 'exiting'); - } - this.updateStatus(!1, e); - }), - (a.componentWillUnmount = function() { - this.cancelNextCallback(); - }), - (a.getTimeouts = function() { - var t, - e, - n, - r = this.props.timeout; - return ( - (t = e = n = r), - null != r && - 'number' != typeof r && - ((t = r.exit), - (e = r.enter), - (n = void 0 !== r.appear ? r.appear : e)), - { exit: t, enter: e, appear: n } - ); - }), - (a.updateStatus = function(t, e) { - if ((void 0 === t && (t = !1), null !== e)) { - this.cancelNextCallback(); - var n = o.default.findDOMNode(this); - 'entering' === e ? this.performEnter(n, t) : this.performExit(n); - } else - this.props.unmountOnExit && - 'exited' === this.state.status && - this.setState({ status: 'unmounted' }); - }), - (a.performEnter = function(t, e) { - var n = this, - r = this.props.enter, - i = this.context.transitionGroup - ? this.context.transitionGroup.isMounting - : e, - o = this.getTimeouts(), - a = i ? o.appear : o.enter; - e || r - ? (this.props.onEnter(t, i), - this.safeSetState({ status: 'entering' }, function() { - n.props.onEntering(t, i), - n.onTransitionEnd(t, a, function() { - n.safeSetState({ status: 'entered' }, function() { - n.props.onEntered(t, i); - }); - }); - })) - : this.safeSetState({ status: 'entered' }, function() { - n.props.onEntered(t); - }); - }), - (a.performExit = function(t) { - var e = this, - n = this.props.exit, - r = this.getTimeouts(); - n - ? (this.props.onExit(t), - this.safeSetState({ status: 'exiting' }, function() { - e.props.onExiting(t), - e.onTransitionEnd(t, r.exit, function() { - e.safeSetState({ status: 'exited' }, function() { - e.props.onExited(t); - }); - }); - })) - : this.safeSetState({ status: 'exited' }, function() { - e.props.onExited(t); - }); - }), - (a.cancelNextCallback = function() { - null !== this.nextCallback && - (this.nextCallback.cancel(), (this.nextCallback = null)); - }), - (a.safeSetState = function(t, e) { - (e = this.setNextCallback(e)), this.setState(t, e); - }), - (a.setNextCallback = function(t) { - var e = this, - n = !0; - return ( - (this.nextCallback = function(r) { - n && ((n = !1), (e.nextCallback = null), t(r)); - }), - (this.nextCallback.cancel = function() { - n = !1; - }), - this.nextCallback - ); - }), - (a.onTransitionEnd = function(t, e, n) { - this.setNextCallback(n); - var r = null == e && !this.props.addEndListener; - t && !r - ? (this.props.addEndListener && - this.props.addEndListener(t, this.nextCallback), - null != e && setTimeout(this.nextCallback, e)) - : setTimeout(this.nextCallback, 0); - }), - (a.render = function() { - var t = this.state.status; - if ('unmounted' === t) return null; - var e = this.props, - n = e.children, - r = (function(t, e) { - if (null == t) return {}; - var n, - r, - i = {}, - o = Object.keys(t); - for (r = 0; r < o.length; r++) - (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); - return i; - })(e, ['children']); - if ( - (delete r.in, - delete r.mountOnEnter, - delete r.unmountOnExit, - delete r.appear, - delete r.enter, - delete r.exit, - delete r.timeout, - delete r.addEndListener, - delete r.onEnter, - delete r.onEntering, - delete r.onEntered, - delete r.onExit, - delete r.onExiting, - delete r.onExited, - 'function' == typeof n) - ) - return n(t, r); - var o = i.default.Children.only(n); - return i.default.cloneElement(o, r); - }), - r - ); - })(i.default.Component); - function l() {} - (u.contextTypes = { transitionGroup: r.object }), - (u.childContextTypes = { transitionGroup: function() {} }), - (u.propTypes = {}), - (u.defaultProps = { - in: !1, - mountOnEnter: !1, - unmountOnExit: !1, - appear: !1, - enter: !0, - exit: !0, - onEnter: l, - onEntering: l, - onEntered: l, - onExit: l, - onExiting: l, - onExited: l - }), - (u.UNMOUNTED = 0), - (u.EXITED = 1), - (u.ENTERING = 2), - (u.ENTERED = 3), - (u.EXITING = 4); - var c = (0, a.polyfill)(u); - e.default = c; - }, - function(t, e, n) { - 'use strict'; - function r() { - var t = this.constructor.getDerivedStateFromProps( - this.props, - this.state - ); - null != t && this.setState(t); - } - function i(t) { - this.setState( - function(e) { - var n = this.constructor.getDerivedStateFromProps(t, e); - return null != n ? n : null; - }.bind(this) - ); - } - function o(t, e) { - try { - var n = this.props, - r = this.state; - (this.props = t), - (this.state = e), - (this.__reactInternalSnapshotFlag = !0), - (this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(n, r)); - } finally { - (this.props = n), (this.state = r); - } - } - function a(t) { - var e = t.prototype; - if (!e || !e.isReactComponent) - throw new Error('Can only polyfill class components'); - if ( - 'function' != typeof t.getDerivedStateFromProps && - 'function' != typeof e.getSnapshotBeforeUpdate - ) - return t; - var n = null, - a = null, - s = null; - if ( - ('function' == typeof e.componentWillMount - ? (n = 'componentWillMount') - : 'function' == typeof e.UNSAFE_componentWillMount && - (n = 'UNSAFE_componentWillMount'), - 'function' == typeof e.componentWillReceiveProps - ? (a = 'componentWillReceiveProps') - : 'function' == typeof e.UNSAFE_componentWillReceiveProps && - (a = 'UNSAFE_componentWillReceiveProps'), - 'function' == typeof e.componentWillUpdate - ? (s = 'componentWillUpdate') - : 'function' == typeof e.UNSAFE_componentWillUpdate && - (s = 'UNSAFE_componentWillUpdate'), - null !== n || null !== a || null !== s) - ) { - var u = t.displayName || t.name, - l = - 'function' == typeof t.getDerivedStateFromProps - ? 'getDerivedStateFromProps()' - : 'getSnapshotBeforeUpdate()'; - throw Error( - 'Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' + - u + - ' uses ' + - l + - ' but also contains the following legacy lifecycles:' + - (null !== n ? '\n ' + n : '') + - (null !== a ? '\n ' + a : '') + - (null !== s ? '\n ' + s : '') + - '\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks' - ); - } - if ( - ('function' == typeof t.getDerivedStateFromProps && - ((e.componentWillMount = r), (e.componentWillReceiveProps = i)), - 'function' == typeof e.getSnapshotBeforeUpdate) - ) { - if ('function' != typeof e.componentDidUpdate) - throw new Error( - 'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype' - ); - e.componentWillUpdate = o; - var c = e.componentDidUpdate; - e.componentDidUpdate = function(t, e, n) { - var r = this.__reactInternalSnapshotFlag - ? this.__reactInternalSnapshot - : n; - c.call(this, t, e, r); - }; - } - return t; - } - n.r(e), - n.d(e, 'polyfill', function() { - return a; - }), - (r.__suppressDeprecationWarning = !0), - (i.__suppressDeprecationWarning = !0), - (o.__suppressDeprecationWarning = !0); - }, - function(t, e, n) { - 'use strict'; - (e.__esModule = !0), (e.classNamesShape = e.timeoutsShape = void 0); - var r; - (r = n(1)) && r.__esModule; - e.timeoutsShape = null; - e.classNamesShape = null; - }, - function(t, e, n) { - 'use strict'; - (e.__esModule = !0), (e.default = void 0); - var r = s(n(1)), - i = s(n(0)), - o = n(109), - a = n(242); - function s(t) { - return t && t.__esModule ? t : { default: t }; - } - function u() { - return (u = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - function l(t) { - if (void 0 === t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return t; - } - var c = - Object.values || - function(t) { - return Object.keys(t).map(function(e) { - return t[e]; - }); - }, - f = (function(t) { - var e, n; - function r(e, n) { - var r, - i = (r = t.call(this, e, n) || this).handleExited.bind(l(l(r))); - return (r.state = { handleExited: i, firstRender: !0 }), r; - } - (n = t), - ((e = r).prototype = Object.create(n.prototype)), - (e.prototype.constructor = e), - (e.__proto__ = n); - var o = r.prototype; - return ( - (o.getChildContext = function() { - return { transitionGroup: { isMounting: !this.appeared } }; - }), - (o.componentDidMount = function() { - (this.appeared = !0), (this.mounted = !0); - }), - (o.componentWillUnmount = function() { - this.mounted = !1; - }), - (r.getDerivedStateFromProps = function(t, e) { - var n = e.children, - r = e.handleExited; - return { - children: e.firstRender - ? (0, a.getInitialChildMapping)(t, r) - : (0, a.getNextChildMapping)(t, n, r), - firstRender: !1 - }; - }), - (o.handleExited = function(t, e) { - var n = (0, a.getChildMapping)(this.props.children); - t.key in n || - (t.props.onExited && t.props.onExited(e), - this.mounted && - this.setState(function(e) { - var n = u({}, e.children); - return delete n[t.key], { children: n }; - })); - }), - (o.render = function() { - var t = this.props, - e = t.component, - n = t.childFactory, - r = (function(t, e) { - if (null == t) return {}; - var n, - r, - i = {}, - o = Object.keys(t); - for (r = 0; r < o.length; r++) - (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); - return i; - })(t, ['component', 'childFactory']), - o = c(this.state.children).map(n); - return ( - delete r.appear, - delete r.enter, - delete r.exit, - null === e ? o : i.default.createElement(e, r, o) - ); - }), - r - ); - })(i.default.Component); - (f.childContextTypes = { transitionGroup: r.default.object.isRequired }), - (f.propTypes = {}), - (f.defaultProps = { - component: 'div', - childFactory: function(t) { - return t; - } - }); - var d = (0, o.polyfill)(f); - (e.default = d), (t.exports = e.default); - }, - function(t, e, n) { - var r = n(244), - i = n(247), - o = n(248); - t.exports = function(t, e, n, a, s, u) { - var l = 1 & n, - c = t.length, - f = e.length; - if (c != f && !(l && f > c)) return !1; - var d = u.get(t); - if (d && u.get(e)) return d == e; - var h = -1, - p = !0, - g = 2 & n ? new r() : void 0; - for (u.set(t, e), u.set(e, t); ++h < c; ) { - var v = t[h], - m = e[h]; - if (a) var y = l ? a(m, v, h, e, t, u) : a(v, m, h, t, e, u); - if (void 0 !== y) { - if (y) continue; - p = !1; - break; - } - if (g) { - if ( - !i(e, function(t, e) { - if (!o(g, e) && (v === t || s(v, t, n, a, u))) return g.push(e); - }) - ) { - p = !1; - break; - } - } else if (v !== m && !s(v, m, n, a, u)) { - p = !1; - break; - } - } - return u.delete(t), u.delete(e), p; - }; - }, - function(t, e, n) { - var r = n(114), - i = n(76), - o = n(38); - t.exports = function(t) { - return r(t, o, i); - }; - }, - function(t, e, n) { - var r = n(115), - i = n(10); - t.exports = function(t, e, n) { - var o = e(t); - return i(t) ? o : r(o, n(t)); - }; - }, - function(t, e) { - t.exports = function(t, e) { - for (var n = -1, r = e.length, i = t.length; ++n < r; ) t[i + n] = e[n]; - return t; - }; - }, - function(t, e) { - t.exports = function() { - return []; - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = void 0); - var r = l(n(0)), - i = l(n(1)), - o = l(n(77)), - a = l(n(21)), - s = n(39), - u = l(n(266)); - function l(t) { - return t && t.__esModule ? t : { default: t }; - } - function c(t) { - return (c = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - })(t); - } - function f(t, e) { - var n = Object.keys(t); - if (Object.getOwnPropertySymbols) { - var r = Object.getOwnPropertySymbols(t); - e && - (r = r.filter(function(e) { - return Object.getOwnPropertyDescriptor(t, e).enumerable; - })), - n.push.apply(n, r); - } - return n; - } - function d(t) { - for (var e = 1; e < arguments.length; e++) { - var n = null != arguments[e] ? arguments[e] : {}; - e % 2 - ? f(n, !0).forEach(function(e) { - y(t, e, n[e]); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) - : f(n).forEach(function(e) { - Object.defineProperty( - t, - e, - Object.getOwnPropertyDescriptor(n, e) - ); - }); - } - return t; - } - function h(t) { - return ( - (function(t) { - if (Array.isArray(t)) { - for (var e = 0, n = new Array(t.length); e < t.length; e++) - n[e] = t[e]; - return n; - } - })(t) || - (function(t) { - if ( - Symbol.iterator in Object(t) || - '[object Arguments]' === Object.prototype.toString.call(t) - ) - return Array.from(t); - })(t) || - (function() { - throw new TypeError( - 'Invalid attempt to spread non-iterable instance' - ); - })() - ); - } - function p(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - function g(t) { - return (g = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(t) { - return t.__proto__ || Object.getPrototypeOf(t); - })(t); - } - function v(t) { - if (void 0 === t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return t; - } - function m(t, e) { - return (m = - Object.setPrototypeOf || - function(t, e) { - return (t.__proto__ = e), t; - })(t, e); - } - function y(t, e, n) { - return ( - e in t - ? Object.defineProperty(t, e, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (t[e] = n), - t - ); - } - var b = function(t) { - var e = t || {}, - n = e.verticalCompact, - r = e.compactType; - return !1 === n ? null : r; - }, - _ = !1; - try { - _ = navigator.userAgent.toLowerCase().includes('firefox'); - } catch (t) {} - var x = (function(t) { - function e(t, n) { - var i; - return ( - (function(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - })(this, e), - (i = (function(t, e) { - return !e || ('object' !== c(e) && 'function' != typeof e) - ? v(t) - : e; - })(this, g(e).call(this, t, n))), - y(v(i), 'state', { - activeDrag: null, - layout: (0, s.synchronizeLayoutWithChildren)( - i.props.layout, - i.props.children, - i.props.cols, - b(i.props) - ), - mounted: !1, - oldDragItem: null, - oldLayout: null, - oldResizeItem: null, - droppingDOMNode: null, - children: [] - }), - y(v(i), 'dragEnterCounter', 0), - y(v(i), 'onDragOver', function(t) { - if ( - _ && - !t.nativeEvent.target.className.includes('react-grid-layout') - ) - return !1; - var e = i.props.droppingItem, - n = i.state.layout, - o = t.nativeEvent, - a = o.layerX, - s = o.layerY, - u = { x: a, y: s, e: t }; - if (i.state.droppingDOMNode) { - if (i.state.droppingPosition) { - (i.state.droppingPosition.x != a || - i.state.droppingPosition.y != s) && - i.setState({ droppingPosition: u }); - } - } else i.setState({ droppingDOMNode: r.default.createElement('div', { key: e.i }), droppingPosition: u, layout: [].concat(h(n), [d({}, e, { x: 0, y: 0, static: !1, isDraggable: !0 })]) }); - t.stopPropagation(), t.preventDefault(); - }), - y(v(i), 'removeDroppingPlaceholder', function() { - var t = i.props, - e = t.droppingItem, - n = t.cols, - r = i.state.layout, - o = (0, s.compact)( - r.filter(function(t) { - return t.i !== e.i; - }), - b(i.props), - n - ); - i.setState({ - layout: o, - droppingDOMNode: null, - activeDrag: null, - droppingPosition: void 0 - }); - }), - y(v(i), 'onDragLeave', function() { - i.dragEnterCounter--, - 0 === i.dragEnterCounter && i.removeDroppingPlaceholder(); - }), - y(v(i), 'onDragEnter', function() { - i.dragEnterCounter++; - }), - y(v(i), 'onDrop', function() { - var t = i.props.droppingItem, - e = - i.state.layout.find(function(e) { - return e.i === t.i; - }) || {}, - n = e.x, - r = e.y, - o = e.w, - a = e.h; - (i.dragEnterCounter = 0), - i.removeDroppingPlaceholder(), - i.props.onDrop({ x: n, y: r, w: o, h: a }); - }), - (0, s.autoBindHandlers)(v(i), [ - 'onDragStart', - 'onDrag', - 'onDragStop', - 'onResizeStart', - 'onResize', - 'onResizeStop' - ]), - i - ); - } - var n, i, l; - return ( - (function(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { value: t, writable: !0, configurable: !0 } - })), - e && m(t, e); - })(e, t), - (n = e), - (l = [ - { - key: 'getDerivedStateFromProps', - value: function(t, e) { - var n; - return e.activeDrag - ? null - : ((0, o.default)(t.layout, e.propsLayout) && - t.compactType === e.compactType - ? (0, s.childrenEqual)(t.children, e.children) || - (n = e.layout) - : (n = t.layout), - n - ? { - layout: (0, s.synchronizeLayoutWithChildren)( - n, - t.children, - t.cols, - b(t) - ), - compactType: t.compactType, - children: t.children, - propsLayout: t.layout - } - : null); - } - } - ]), - (i = [ - { - key: 'componentDidMount', - value: function() { - this.setState({ mounted: !0 }), - this.onLayoutMaybeChanged( - this.state.layout, - this.props.layout - ); - } - }, - { - key: 'componentDidUpdate', - value: function(t, e) { - if (!this.state.activeDrag) { - var n = this.state.layout, - r = e.layout; - this.onLayoutMaybeChanged(n, r); - } - } - }, - { - key: 'containerHeight', - value: function() { - if (this.props.autoSize) { - var t = (0, s.bottom)(this.state.layout), - e = this.props.containerPadding - ? this.props.containerPadding[1] - : this.props.margin[1]; - return ( - t * this.props.rowHeight + - (t - 1) * this.props.margin[1] + - 2 * e + - 'px' - ); - } - } - }, - { - key: 'onDragStart', - value: function(t, e, n, r) { - var i = r.e, - o = r.node, - a = this.state.layout, - u = (0, s.getLayoutItem)(a, t); - if (u) - return ( - this.setState({ - oldDragItem: (0, s.cloneLayoutItem)(u), - oldLayout: this.state.layout - }), - this.props.onDragStart(a, u, u, null, i, o) - ); - } - }, - { - key: 'onDrag', - value: function(t, e, n, r) { - var i = r.e, - o = r.node, - a = this.state.oldDragItem, - u = this.state.layout, - l = this.props.cols, - c = (0, s.getLayoutItem)(u, t); - if (c) { - var f = { - w: c.w, - h: c.h, - x: c.x, - y: c.y, - placeholder: !0, - i: t - }; - (u = (0, s.moveElement)( - u, - c, - e, - n, - !0, - this.props.preventCollision, - b(this.props), - l - )), - this.props.onDrag(u, a, c, f, i, o), - this.setState({ - layout: (0, s.compact)(u, b(this.props), l), - activeDrag: f - }); - } - } - }, - { - key: 'onDragStop', - value: function(t, e, n, r) { - var i = r.e, - o = r.node, - a = this.state.oldDragItem, - u = this.state.layout, - l = this.props, - c = l.cols, - f = l.preventCollision, - d = (0, s.getLayoutItem)(u, t); - if (d) { - (u = (0, s.moveElement)(u, d, e, n, !0, f, b(this.props), c)), - this.state.activeDrag && - this.props.onDragStop(u, a, d, null, i, o); - var h = (0, s.compact)(u, b(this.props), c), - p = this.state.oldLayout; - this.setState({ - activeDrag: null, - layout: h, - oldDragItem: null, - oldLayout: null - }), - this.onLayoutMaybeChanged(h, p); - } - } - }, - { - key: 'onLayoutMaybeChanged', - value: function(t, e) { - e || (e = this.state.layout), - (0, o.default)(e, t) || this.props.onLayoutChange(t); - } - }, - { - key: 'onResizeStart', - value: function(t, e, n, r) { - var i = r.e, - o = r.node, - a = this.state.layout, - u = (0, s.getLayoutItem)(a, t); - u && - (this.setState({ - oldResizeItem: (0, s.cloneLayoutItem)(u), - oldLayout: this.state.layout - }), - this.props.onResizeStart(a, u, u, null, i, o)); - } - }, - { - key: 'onResize', - value: function(t, e, n, r) { - var i = r.e, - o = r.node, - a = this.state, - u = a.layout, - l = a.oldResizeItem, - c = this.props, - f = c.cols, - h = c.preventCollision, - p = (0, s.getLayoutItem)(u, t); - if (p) { - var g; - if (h) { - var v = (0, s.getAllCollisions)( - u, - d({}, p, { w: e, h: n }) - ).filter(function(t) { - return t.i !== p.i; - }); - if ((g = v.length > 0)) { - var m = 1 / 0, - y = 1 / 0; - v.forEach(function(t) { - t.x > p.x && (m = Math.min(m, t.x)), - t.y > p.y && (y = Math.min(y, t.y)); - }), - Number.isFinite(m) && (p.w = m - p.x), - Number.isFinite(y) && (p.h = y - p.y); - } - } - g || ((p.w = e), (p.h = n)); - var _ = { w: p.w, h: p.h, x: p.x, y: p.y, static: !0, i: t }; - this.props.onResize(u, l, p, _, i, o), - this.setState({ - layout: (0, s.compact)(u, b(this.props), f), - activeDrag: _ - }); - } - } - }, - { - key: 'onResizeStop', - value: function(t, e, n, r) { - var i = r.e, - o = r.node, - a = this.state, - u = a.layout, - l = a.oldResizeItem, - c = this.props.cols, - f = (0, s.getLayoutItem)(u, t); - this.props.onResizeStop(u, l, f, null, i, o); - var d = (0, s.compact)(u, b(this.props), c), - h = this.state.oldLayout; - this.setState({ - activeDrag: null, - layout: d, - oldResizeItem: null, - oldLayout: null - }), - this.onLayoutMaybeChanged(d, h); - } - }, - { - key: 'placeholder', - value: function() { - var t = this.state.activeDrag; - if (!t) return null; - var e = this.props, - n = e.width, - i = e.cols, - o = e.margin, - a = e.containerPadding, - s = e.rowHeight, - l = e.maxRows, - c = e.useCSSTransforms, - f = e.transformScale; - return r.default.createElement( - u.default, - { - w: t.w, - h: t.h, - x: t.x, - y: t.y, - i: t.i, - className: 'react-grid-placeholder', - containerWidth: n, - cols: i, - margin: o, - containerPadding: a || o, - maxRows: l, - rowHeight: s, - isDraggable: !1, - isResizable: !1, - useCSSTransforms: c, - transformScale: f - }, - r.default.createElement('div', null) - ); - } - }, - { - key: 'processGridItem', - value: function(t, e) { - if (t && t.key) { - var n = (0, s.getLayoutItem)( - this.state.layout, - String(t.key) - ); - if (!n) return null; - var i = this.props, - o = i.width, - a = i.cols, - l = i.margin, - c = i.containerPadding, - f = i.rowHeight, - d = i.maxRows, - h = i.isDraggable, - p = i.isResizable, - g = i.useCSSTransforms, - v = i.transformScale, - m = i.draggableCancel, - y = i.draggableHandle, - b = this.state, - _ = b.mounted, - x = b.droppingPosition, - w = Boolean( - !n.static && h && (n.isDraggable || null == n.isDraggable) - ), - S = Boolean( - !n.static && p && (n.isResizable || null == n.isResizable) - ); - return r.default.createElement( - u.default, - { - containerWidth: o, - cols: a, - margin: l, - containerPadding: c || l, - maxRows: d, - rowHeight: f, - cancel: m, - handle: y, - onDragStop: this.onDragStop, - onDragStart: this.onDragStart, - onDrag: this.onDrag, - onResizeStart: this.onResizeStart, - onResize: this.onResize, - onResizeStop: this.onResizeStop, - isDraggable: w, - isResizable: S, - useCSSTransforms: g && _, - usePercentages: !_, - transformScale: v, - w: n.w, - h: n.h, - x: n.x, - y: n.y, - i: n.i, - minH: n.minH, - minW: n.minW, - maxH: n.maxH, - maxW: n.maxW, - static: n.static, - droppingPosition: e ? x : void 0 - }, - t - ); - } - } - }, - { - key: 'render', - value: function() { - var t = this, - e = this.props, - n = e.className, - i = e.style, - o = e.isDroppable, - u = (0, a.default)('react-grid-layout', n), - l = d({ height: this.containerHeight() }, i); - return r.default.createElement( - 'div', - { - className: u, - style: l, - onDrop: o ? this.onDrop : s.noop, - onDragLeave: o ? this.onDragLeave : s.noop, - onDragEnter: o ? this.onDragEnter : s.noop, - onDragOver: o ? this.onDragOver : s.noop - }, - r.default.Children.map(this.props.children, function(e) { - return t.processGridItem(e); - }), - o && - this.state.droppingDOMNode && - this.processGridItem(this.state.droppingDOMNode, !0), - this.placeholder() - ); - } - } - ]) && p(n.prototype, i), - l && p(n, l), - e - ); - })(r.default.Component); - (e.default = x), - y(x, 'displayName', 'ReactGridLayout'), - y(x, 'propTypes', { - className: i.default.string, - style: i.default.object, - width: i.default.number, - autoSize: i.default.bool, - cols: i.default.number, - draggableCancel: i.default.string, - draggableHandle: i.default.string, - verticalCompact: function(t) { - t.verticalCompact, 0; - }, - compactType: i.default.oneOf(['vertical', 'horizontal']), - layout: function(t) { - var e = t.layout; - void 0 !== e && (0, s.validateLayout)(e, 'layout'); - }, - margin: i.default.arrayOf(i.default.number), - containerPadding: i.default.arrayOf(i.default.number), - rowHeight: i.default.number, - maxRows: i.default.number, - isDraggable: i.default.bool, - isResizable: i.default.bool, - preventCollision: i.default.bool, - useCSSTransforms: i.default.bool, - transformScale: i.default.number, - isDroppable: i.default.bool, - onLayoutChange: i.default.func, - onDragStart: i.default.func, - onDrag: i.default.func, - onDragStop: i.default.func, - onResizeStart: i.default.func, - onResize: i.default.func, - onResizeStop: i.default.func, - onDrop: i.default.func, - droppingItem: i.default.shape({ - i: i.default.string.isRequired, - w: i.default.number.isRequired, - h: i.default.number.isRequired - }), - children: function(t, e) { - var n = t[e], - i = {}; - r.default.Children.forEach(n, function(t) { - if (i[t.key]) - throw new Error( - 'Duplicate child key "' + - t.key + - '" found! This will cause problems in ReactGridLayout.' - ); - i[t.key] = !0; - }); - } - }), - y(x, 'defaultProps', { - autoSize: !0, - cols: 12, - className: '', - style: {}, - draggableHandle: '', - draggableCancel: '', - containerPadding: null, - rowHeight: 150, - maxRows: 1 / 0, - layout: [], - margin: [10, 10], - isDraggable: !0, - isResizable: !0, - isDroppable: !1, - useCSSTransforms: !0, - transformScale: 1, - verticalCompact: !0, - compactType: 'vertical', - preventCollision: !1, - droppingItem: { i: '__dropping-elem__', h: 1, w: 1 }, - onLayoutChange: s.noop, - onDragStart: s.noop, - onDrag: s.noop, - onDragStop: s.noop, - onResizeStart: s.noop, - onResize: s.noop, - onResizeStop: s.noop, - onDrop: s.noop - }); - }, - function(t, e, n) { - var r, i; - window, - (t.exports = - ((r = n(5)), - (i = n(0)), - (function(t) { - var e = {}; - function n(r) { - if (e[r]) return e[r].exports; - var i = (e[r] = { i: r, l: !1, exports: {} }); - return ( - t[r].call(i.exports, i, i.exports, n), (i.l = !0), i.exports - ); - } - return ( - (n.m = t), - (n.c = e), - (n.d = function(t, e, r) { - n.o(t, e) || - Object.defineProperty(t, e, { enumerable: !0, get: r }); - }), - (n.r = function(t) { - 'undefined' != typeof Symbol && - Symbol.toStringTag && - Object.defineProperty(t, Symbol.toStringTag, { - value: 'Module' - }), - Object.defineProperty(t, '__esModule', { value: !0 }); - }), - (n.t = function(t, e) { - if ((1 & e && (t = n(t)), 8 & e)) return t; - if (4 & e && 'object' == typeof t && t && t.__esModule) - return t; - var r = Object.create(null); - if ( - (n.r(r), - Object.defineProperty(r, 'default', { - enumerable: !0, - value: t - }), - 2 & e && 'string' != typeof t) - ) - for (var i in t) - n.d( - r, - i, - function(e) { - return t[e]; - }.bind(null, i) - ); - return r; - }), - (n.n = function(t) { - var e = - t && t.__esModule - ? function() { - return t.default; - } - : function() { - return t; - }; - return n.d(e, 'a', e), e; - }), - (n.o = function(t, e) { - return Object.prototype.hasOwnProperty.call(t, e); - }), - (n.p = ''), - n((n.s = 4)) - ); - })([ - function(t, e, n) { - t.exports = n(5)(); - }, - function(t, e) { - t.exports = r; - }, - function(t, e) { - t.exports = i; - }, - function(t, e, n) { - var r; - !(function() { - 'use strict'; - var n = {}.hasOwnProperty; - function i() { - for (var t = [], e = 0; e < arguments.length; e++) { - var r = arguments[e]; - if (r) { - var o = typeof r; - if ('string' === o || 'number' === o) t.push(r); - else if (Array.isArray(r) && r.length) { - var a = i.apply(null, r); - a && t.push(a); - } else if ('object' === o) - for (var s in r) n.call(r, s) && r[s] && t.push(s); - } - } - return t.join(' '); - } - t.exports - ? ((i.default = i), (t.exports = i)) - : void 0 === - (r = function() { - return i; - }.apply(e, [])) || (t.exports = r); - })(); - }, - function(t, e, n) { - var r = n(7), - i = r.default, - o = r.DraggableCore; - (t.exports = i), - (t.exports.default = i), - (t.exports.DraggableCore = o); - }, - function(t, e, n) { - 'use strict'; - var r = n(6); - function i() {} - function o() {} - (o.resetWarningCache = i), - (t.exports = function() { - function t(t, e, n, i, o, a) { - if (a !== r) { - var s = 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 ((s.name = 'Invariant Violation'), s); - } - } - function e() { - return t; - } - t.isRequired = t; - var n = { - array: t, - bool: t, - func: t, - number: t, - object: t, - string: t, - symbol: t, - any: t, - arrayOf: e, - element: t, - elementType: t, - instanceOf: e, - node: t, - objectOf: e, - oneOf: e, - oneOfType: e, - shape: e, - exact: e, - checkPropTypes: o, - resetWarningCache: i - }; - return (n.PropTypes = n), n; - }); - }, - function(t, e, n) { - 'use strict'; - t.exports = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; - }, - function(t, e, n) { - 'use strict'; - n.r(e), - n.d(e, 'default', function() { - return vt; - }), - n.d(e, 'DraggableCore', function() { - return nt; - }); - var r = n(2), - i = n.n(r), - o = n(0), - a = n.n(o), - s = n(1), - u = n.n(s), - l = n(3), - c = n.n(l); - function f(t, e) { - for (var n = 0, r = t.length; n < r; n++) - if (e.apply(e, [t[n], n, t])) return t[n]; - } - function d(t) { - return ( - 'function' == typeof t || - '[object Function]' === Object.prototype.toString.call(t) - ); - } - function h(t) { - return 'number' == typeof t && !isNaN(t); - } - function p(t) { - return parseInt(t, 10); - } - function g(t, e, n) { - if (t[e]) - return new Error( - 'Invalid prop ' - .concat(e, ' passed to ') - .concat(n, ' - do not set this, set it on the child.') - ); - } - var v = ['Moz', 'Webkit', 'O', 'ms']; - function m(t, e) { - return e - ? ''.concat(e).concat( - (function(t) { - for (var e = '', n = !0, r = 0; r < t.length; r++) - n - ? ((e += t[r].toUpperCase()), (n = !1)) - : '-' === t[r] - ? (n = !0) - : (e += t[r]); - return e; - })(t) - ) - : t; - } - var y = (function() { - var t = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : 'transform'; - if ('undefined' == typeof window || void 0 === window.document) - return ''; - var e = window.document.documentElement.style; - if (t in e) return ''; - for (var n = 0; n < v.length; n++) - if (m(t, v[n]) in e) return v[n]; - return ''; - })(); - function b(t, e) { - var n = Object.keys(t); - if (Object.getOwnPropertySymbols) { - var r = Object.getOwnPropertySymbols(t); - e && - (r = r.filter(function(e) { - return Object.getOwnPropertyDescriptor(t, e).enumerable; - })), - n.push.apply(n, r); - } - return n; - } - function _(t) { - for (var e = 1; e < arguments.length; e++) { - var n = null != arguments[e] ? arguments[e] : {}; - e % 2 - ? b(Object(n), !0).forEach(function(e) { - x(t, e, n[e]); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties( - t, - Object.getOwnPropertyDescriptors(n) - ) - : b(Object(n)).forEach(function(e) { - Object.defineProperty( - t, - e, - Object.getOwnPropertyDescriptor(n, e) - ); - }); - } - return t; - } - function x(t, e, n) { - return ( - e in t - ? Object.defineProperty(t, e, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (t[e] = n), - t - ); - } - var w = ''; - function S(t, e) { - return ( - w || - (w = f( - [ - 'matches', - 'webkitMatchesSelector', - 'mozMatchesSelector', - 'msMatchesSelector', - 'oMatchesSelector' - ], - function(e) { - return d(t[e]); - } - )), - !!d(t[w]) && t[w](e) - ); - } - function E(t, e, n) { - var r = t; - do { - if (S(r, e)) return !0; - if (r === n) return !1; - r = r.parentNode; - } while (r); - return !1; - } - function k(t, e, n, r) { - if (t) { - var i = _({ capture: !0 }, r); - t.addEventListener - ? t.addEventListener(e, n, i) - : t.attachEvent - ? t.attachEvent('on' + e, n) - : (t['on' + e] = n); - } - } - function A(t, e, n, r) { - if (t) { - var i = _({ capture: !0 }, r); - t.removeEventListener - ? t.removeEventListener(e, n, i) - : t.detachEvent - ? t.detachEvent('on' + e, n) - : (t['on' + e] = null); - } - } - function T(t) { - var e = t.clientHeight, - n = t.ownerDocument.defaultView.getComputedStyle(t); - return (e += p(n.borderTopWidth)) + p(n.borderBottomWidth); - } - function C(t) { - var e = t.clientWidth, - n = t.ownerDocument.defaultView.getComputedStyle(t); - return (e += p(n.borderLeftWidth)) + p(n.borderRightWidth); - } - function O(t) { - var e = t.clientHeight, - n = t.ownerDocument.defaultView.getComputedStyle(t); - return (e -= p(n.paddingTop)) - p(n.paddingBottom); - } - function P(t) { - var e = t.clientWidth, - n = t.ownerDocument.defaultView.getComputedStyle(t); - return (e -= p(n.paddingLeft)) - p(n.paddingRight); - } - function M(t, e, n) { - var r = t.x, - i = t.y, - o = 'translate(' - .concat(r) - .concat(n, ',') - .concat(i) - .concat(n, ')'); - if (e) { - var a = ''.concat('string' == typeof e.x ? e.x : e.x + n), - s = ''.concat('string' == typeof e.y ? e.y : e.y + n); - o = 'translate('.concat(a, ', ').concat(s, ')') + o; - } - return o; - } - function L(t) { - return t.targetTouches && t.targetTouches[0] - ? t.targetTouches[0].identifier - : t.changedTouches && t.changedTouches[0] - ? t.changedTouches[0].identifier - : void 0; - } - function D(t) { - if (t) { - var e, - n, - r = t.getElementById('react-draggable-style-el'); - r || - (((r = t.createElement('style')).type = 'text/css'), - (r.id = 'react-draggable-style-el'), - (r.innerHTML = - '.react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n'), - (r.innerHTML += - '.react-draggable-transparent-selection *::selection {all: inherit;}\n'), - t.getElementsByTagName('head')[0].appendChild(r)), - t.body && - ((n = 'react-draggable-transparent-selection'), - (e = t.body).classList - ? e.classList.add(n) - : e.className.match( - new RegExp('(?:^|\\s)'.concat(n, '(?!\\S)')) - ) || (e.className += ' '.concat(n))); - } - } - function j(t) { - var e, n; - if (t) - try { - if ( - (t.body && - ((e = t.body), - (n = 'react-draggable-transparent-selection'), - e.classList - ? e.classList.remove(n) - : (e.className = e.className.replace( - new RegExp('(?:^|\\s)'.concat(n, '(?!\\S)'), 'g'), - '' - ))), - t.selection) - ) - t.selection.empty(); - else { - var r = (t.defaultView || window).getSelection(); - r && 'Caret' !== r.type && r.removeAllRanges(); - } - } catch (t) {} - } - function R(t, e, n) { - return [ - Math.round(e / t[0]) * t[0], - Math.round(n / t[1]) * t[1] - ]; - } - function N(t) { - return 'both' === t.props.axis || 'x' === t.props.axis; - } - function z(t) { - return 'both' === t.props.axis || 'y' === t.props.axis; - } - function I(t, e, n) { - var r = - 'number' == typeof e - ? (function(t, e) { - return ( - (t.targetTouches && - f(t.targetTouches, function(t) { - return e === t.identifier; - })) || - (t.changedTouches && - f(t.changedTouches, function(t) { - return e === t.identifier; - })) - ); - })(t, e) - : null; - if ('number' == typeof e && !r) return null; - var i = B(n); - return (function(t, e, n) { - var r = - e === e.ownerDocument.body - ? { left: 0, top: 0 } - : e.getBoundingClientRect(); - return { - x: (t.clientX + e.scrollLeft - r.left) / n, - y: (t.clientY + e.scrollTop - r.top) / n - }; - })( - r || t, - n.props.offsetParent || - i.offsetParent || - i.ownerDocument.body, - n.props.scale - ); - } - function F(t, e, n) { - var r = t.state, - i = !h(r.lastX), - o = B(t); - return i - ? { - node: o, - deltaX: 0, - deltaY: 0, - lastX: e, - lastY: n, - x: e, - y: n - } - : { - node: o, - deltaX: e - r.lastX, - deltaY: n - r.lastY, - lastX: r.lastX, - lastY: r.lastY, - x: e, - y: n - }; - } - function V(t, e) { - var n = t.props.scale; - return { - node: e.node, - x: t.state.x + e.deltaX / n, - y: t.state.y + e.deltaY / n, - deltaX: e.deltaX / n, - deltaY: e.deltaY / n, - lastX: t.state.x, - lastY: t.state.y - }; - } - function B(t) { - var e = u.a.findDOMNode(t); - if (!e) - throw new Error(': Unmounted during event!'); - return e; - } - function G(t) { - return (G = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - })(t); - } - function H(t, e) { - return ( - (function(t) { - if (Array.isArray(t)) return t; - })(t) || - (function(t, e) { - if ( - 'undefined' != typeof Symbol && - Symbol.iterator in Object(t) - ) { - var n = [], - r = !0, - i = !1, - o = void 0; - try { - for ( - var a, s = t[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !e || n.length !== e); - r = !0 - ); - } catch (t) { - (i = !0), (o = t); - } finally { - try { - r || null == s.return || s.return(); - } finally { - if (i) throw o; - } - } - return n; - } - })(t, e) || - (function(t, e) { - if (t) { - if ('string' == typeof t) return U(t, e); - var n = Object.prototype.toString.call(t).slice(8, -1); - return ( - 'Object' === n && - t.constructor && - (n = t.constructor.name), - 'Map' === n || 'Set' === n - ? Array.from(n) - : 'Arguments' === n || - /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) - ? U(t, e) - : void 0 - ); - } - })(t, e) || - (function() { - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' - ); - })() - ); - } - function U(t, e) { - (null == e || e > t.length) && (e = t.length); - for (var n = 0, r = new Array(e); n < e; n++) r[n] = t[n]; - return r; - } - function q(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - } - function W(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - function X(t, e) { - return !e || ('object' !== G(e) && 'function' != typeof e) - ? Y(t) - : e; - } - function Y(t) { - if (void 0 === t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return t; - } - function $() { - if ('undefined' == typeof Reflect || !Reflect.construct) - return !1; - if (Reflect.construct.sham) return !1; - if ('function' == typeof Proxy) return !0; - try { - return ( - Date.prototype.toString.call( - Reflect.construct(Date, [], function() {}) - ), - !0 - ); - } catch (t) { - return !1; - } - } - function Q(t) { - return (Q = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(t) { - return t.__proto__ || Object.getPrototypeOf(t); - })(t); - } - function K(t, e) { - return (K = - Object.setPrototypeOf || - function(t, e) { - return (t.__proto__ = e), t; - })(t, e); - } - function Z(t, e, n) { - return ( - e in t - ? Object.defineProperty(t, e, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (t[e] = n), - t - ); - } - var J = { - start: 'touchstart', - move: 'touchmove', - stop: 'touchend' - }, - tt = { start: 'mousedown', move: 'mousemove', stop: 'mouseup' }, - et = tt, - nt = (function(t) { - !(function(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { value: t, writable: !0, configurable: !0 } - })), - e && K(t, e); - })(a, t); - var e, - n, - r, - o = - ((e = a), - function() { - var t, - n = Q(e); - if ($()) { - var r = Q(this).constructor; - t = Reflect.construct(n, arguments, r); - } else t = n.apply(this, arguments); - return X(this, t); - }); - function a() { - var t; - q(this, a); - for ( - var e = arguments.length, n = new Array(e), r = 0; - r < e; - r++ - ) - n[r] = arguments[r]; - return ( - Z(Y((t = o.call.apply(o, [this].concat(n)))), 'state', { - dragging: !1, - lastX: NaN, - lastY: NaN, - touchIdentifier: null - }), - Z(Y(t), 'mounted', !1), - Z(Y(t), 'handleDragStart', function(e) { - if ( - (t.props.onMouseDown(e), - !t.props.allowAnyClick && - 'number' == typeof e.button && - 0 !== e.button) - ) - return !1; - var n = u.a.findDOMNode(Y(t)); - if (!n || !n.ownerDocument || !n.ownerDocument.body) - throw new Error( - ' not mounted on DragStart!' - ); - var r = n.ownerDocument; - if ( - !( - t.props.disabled || - !(e.target instanceof r.defaultView.Node) || - (t.props.handle && - !E(e.target, t.props.handle, n)) || - (t.props.cancel && E(e.target, t.props.cancel, n)) - ) - ) { - 'touchstart' === e.type && e.preventDefault(); - var i = L(e); - t.setState({ touchIdentifier: i }); - var o = I(e, i, Y(t)); - if (null != o) { - var a = o.x, - s = o.y, - l = F(Y(t), a, s); - t.props.onStart, - !1 !== t.props.onStart(e, l) && - !1 !== t.mounted && - (t.props.enableUserSelectHack && D(r), - t.setState({ - dragging: !0, - lastX: a, - lastY: s - }), - k(r, et.move, t.handleDrag), - k(r, et.stop, t.handleDragStop)); - } - } - }), - Z(Y(t), 'handleDrag', function(e) { - var n = I(e, t.state.touchIdentifier, Y(t)); - if (null != n) { - var r = n.x, - i = n.y; - if (Array.isArray(t.props.grid)) { - var o = r - t.state.lastX, - a = i - t.state.lastY, - s = H(R(t.props.grid, o, a), 2); - if (((o = s[0]), (a = s[1]), !o && !a)) return; - (r = t.state.lastX + o), (i = t.state.lastY + a); - } - var u = F(Y(t), r, i); - if (!1 !== t.props.onDrag(e, u) && !1 !== t.mounted) - t.setState({ lastX: r, lastY: i }); - else - try { - t.handleDragStop(new MouseEvent('mouseup')); - } catch (e) { - var l = document.createEvent('MouseEvents'); - l.initMouseEvent( - 'mouseup', - !0, - !0, - window, - 0, - 0, - 0, - 0, - 0, - !1, - !1, - !1, - !1, - 0, - null - ), - t.handleDragStop(l); - } - } - }), - Z(Y(t), 'handleDragStop', function(e) { - if (t.state.dragging) { - var n = I(e, t.state.touchIdentifier, Y(t)); - if (null != n) { - var r = n.x, - i = n.y, - o = F(Y(t), r, i); - if (!1 === t.props.onStop(e, o) || !1 === t.mounted) - return !1; - var a = u.a.findDOMNode(Y(t)); - a && - t.props.enableUserSelectHack && - j(a.ownerDocument), - t.setState({ - dragging: !1, - lastX: NaN, - lastY: NaN - }), - a && - (A(a.ownerDocument, et.move, t.handleDrag), - A(a.ownerDocument, et.stop, t.handleDragStop)); - } - } - }), - Z(Y(t), 'onMouseDown', function(e) { - return (et = tt), t.handleDragStart(e); - }), - Z(Y(t), 'onMouseUp', function(e) { - return (et = tt), t.handleDragStop(e); - }), - Z(Y(t), 'onTouchStart', function(e) { - return (et = J), t.handleDragStart(e); - }), - Z(Y(t), 'onTouchEnd', function(e) { - return (et = J), t.handleDragStop(e); - }), - t - ); - } - return ( - (n = a), - (r = [ - { - key: 'componentDidMount', - value: function() { - this.mounted = !0; - var t = u.a.findDOMNode(this); - t && - k(t, J.start, this.onTouchStart, { passive: !1 }); - } - }, - { - key: 'componentWillUnmount', - value: function() { - this.mounted = !1; - var t = u.a.findDOMNode(this); - if (t) { - var e = t.ownerDocument; - A(e, tt.move, this.handleDrag), - A(e, J.move, this.handleDrag), - A(e, tt.stop, this.handleDragStop), - A(e, J.stop, this.handleDragStop), - A(t, J.start, this.onTouchStart, { passive: !1 }), - this.props.enableUserSelectHack && j(e); - } - } - }, - { - key: 'render', - value: function() { - return i.a.cloneElement( - i.a.Children.only(this.props.children), - { - onMouseDown: this.onMouseDown, - onMouseUp: this.onMouseUp, - onTouchEnd: this.onTouchEnd - } - ); - } - } - ]) && W(n.prototype, r), - a - ); - })(i.a.Component); - function rt(t) { - return (rt = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - })(t); - } - function it() { - return (it = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - function ot(t, e) { - (null == e || e > t.length) && (e = t.length); - for (var n = 0, r = new Array(e); n < e; n++) r[n] = t[n]; - return r; - } - function at(t, e) { - var n = Object.keys(t); - if (Object.getOwnPropertySymbols) { - var r = Object.getOwnPropertySymbols(t); - e && - (r = r.filter(function(e) { - return Object.getOwnPropertyDescriptor(t, e).enumerable; - })), - n.push.apply(n, r); - } - return n; - } - function st(t) { - for (var e = 1; e < arguments.length; e++) { - var n = null != arguments[e] ? arguments[e] : {}; - e % 2 - ? at(Object(n), !0).forEach(function(e) { - gt(t, e, n[e]); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties( - t, - Object.getOwnPropertyDescriptors(n) - ) - : at(Object(n)).forEach(function(e) { - Object.defineProperty( - t, - e, - Object.getOwnPropertyDescriptor(n, e) - ); - }); - } - return t; - } - function ut(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - function lt(t, e, n) { - return e && ut(t.prototype, e), n && ut(t, n), t; - } - function ct(t, e) { - return !e || ('object' !== rt(e) && 'function' != typeof e) - ? ft(t) - : e; - } - function ft(t) { - if (void 0 === t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return t; - } - function dt() { - if ('undefined' == typeof Reflect || !Reflect.construct) - return !1; - if (Reflect.construct.sham) return !1; - if ('function' == typeof Proxy) return !0; - try { - return ( - Date.prototype.toString.call( - Reflect.construct(Date, [], function() {}) - ), - !0 - ); - } catch (t) { - return !1; - } - } - function ht(t) { - return (ht = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(t) { - return t.__proto__ || Object.getPrototypeOf(t); - })(t); - } - function pt(t, e) { - return (pt = - Object.setPrototypeOf || - function(t, e) { - return (t.__proto__ = e), t; - })(t, e); - } - function gt(t, e, n) { - return ( - e in t - ? Object.defineProperty(t, e, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (t[e] = n), - t - ); - } - Z(nt, 'displayName', 'DraggableCore'), - Z(nt, 'propTypes', { - allowAnyClick: a.a.bool, - disabled: a.a.bool, - enableUserSelectHack: a.a.bool, - offsetParent: function(t, e) { - if (t[e] && 1 !== t[e].nodeType) - throw new Error( - "Draggable's offsetParent must be a DOM Node." - ); - }, - grid: a.a.arrayOf(a.a.number), - handle: a.a.string, - cancel: a.a.string, - onStart: a.a.func, - onDrag: a.a.func, - onStop: a.a.func, - onMouseDown: a.a.func, - scale: a.a.number, - className: g, - style: g, - transform: g - }), - Z(nt, 'defaultProps', { - allowAnyClick: !1, - cancel: null, - disabled: !1, - enableUserSelectHack: !0, - offsetParent: null, - handle: null, - grid: null, - transform: null, - onStart: function() {}, - onDrag: function() {}, - onStop: function() {}, - onMouseDown: function() {}, - scale: 1 - }); - var vt = (function(t) { - !(function(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { value: t, writable: !0, configurable: !0 } - })), - e && pt(t, e); - })(r, t); - var e, - n = - ((e = r), - function() { - var t, - n = ht(e); - if (dt()) { - var r = ht(this).constructor; - t = Reflect.construct(n, arguments, r); - } else t = n.apply(this, arguments); - return ct(this, t); - }); - function r(t) { - var e; - return ( - (function(t, e) { - if (!(t instanceof e)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, r), - gt(ft((e = n.call(this, t))), 'onDragStart', function( - t, - n - ) { - if (!1 === e.props.onStart(t, V(ft(e), n))) return !1; - e.setState({ dragging: !0, dragged: !0 }); - }), - gt(ft(e), 'onDrag', function(t, n) { - if (!e.state.dragging) return !1; - var r = V(ft(e), n), - i = { x: r.x, y: r.y }; - if (e.props.bounds) { - var o = i.x, - a = i.y; - (i.x += e.state.slackX), (i.y += e.state.slackY); - var s = (function(t, e) { - return ( - (function(t) { - if (Array.isArray(t)) return t; - })(t) || - (function(t, e) { - if ( - 'undefined' != typeof Symbol && - Symbol.iterator in Object(t) - ) { - var n = [], - r = !0, - i = !1, - o = void 0; - try { - for ( - var a, s = t[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !e || n.length !== e); - r = !0 - ); - } catch (t) { - (i = !0), (o = t); - } finally { - try { - r || null == s.return || s.return(); - } finally { - if (i) throw o; - } - } - return n; - } - })(t, e) || - (function(t, e) { - if (t) { - if ('string' == typeof t) return ot(t, e); - var n = Object.prototype.toString - .call(t) - .slice(8, -1); - return ( - 'Object' === n && - t.constructor && - (n = t.constructor.name), - 'Map' === n || 'Set' === n - ? Array.from(n) - : 'Arguments' === n || - /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test( - n - ) - ? ot(t, e) - : void 0 - ); - } - })(t, e) || - (function() { - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' - ); - })() - ); - })( - (function(t, e, n) { - if (!t.props.bounds) return [e, n]; - var r = t.props.bounds; - r = - 'string' == typeof r - ? r - : (function(t) { - return { - left: t.left, - top: t.top, - right: t.right, - bottom: t.bottom - }; - })(r); - var i = B(t); - if ('string' == typeof r) { - var o, - a = i.ownerDocument, - s = a.defaultView; - if ( - !( - (o = - 'parent' === r - ? i.parentNode - : a.querySelector(r)) instanceof - s.HTMLElement - ) - ) - throw new Error( - 'Bounds selector "' + - r + - '" could not find an element.' - ); - var u = s.getComputedStyle(i), - l = s.getComputedStyle(o); - r = { - left: - -i.offsetLeft + - p(l.paddingLeft) + - p(u.marginLeft), - top: - -i.offsetTop + - p(l.paddingTop) + - p(u.marginTop), - right: - P(o) - - C(i) - - i.offsetLeft + - p(l.paddingRight) - - p(u.marginRight), - bottom: - O(o) - - T(i) - - i.offsetTop + - p(l.paddingBottom) - - p(u.marginBottom) - }; - } - return ( - h(r.right) && (e = Math.min(e, r.right)), - h(r.bottom) && (n = Math.min(n, r.bottom)), - h(r.left) && (e = Math.max(e, r.left)), - h(r.top) && (n = Math.max(n, r.top)), - [e, n] - ); - })(ft(e), i.x, i.y), - 2 - ), - u = s[0], - l = s[1]; - (i.x = u), - (i.y = l), - (i.slackX = e.state.slackX + (o - i.x)), - (i.slackY = e.state.slackY + (a - i.y)), - (r.x = i.x), - (r.y = i.y), - (r.deltaX = i.x - e.state.x), - (r.deltaY = i.y - e.state.y); - } - if (!1 === e.props.onDrag(t, r)) return !1; - e.setState(i); - }), - gt(ft(e), 'onDragStop', function(t, n) { - if (!e.state.dragging) return !1; - if (!1 === e.props.onStop(t, V(ft(e), n))) return !1; - var r = { dragging: !1, slackX: 0, slackY: 0 }; - if (Boolean(e.props.position)) { - var i = e.props.position, - o = i.x, - a = i.y; - (r.x = o), (r.y = a); - } - e.setState(r); - }), - (e.state = { - dragging: !1, - dragged: !1, - x: t.position ? t.position.x : t.defaultPosition.x, - y: t.position ? t.position.y : t.defaultPosition.y, - prevPropsPosition: st({}, t.position), - slackX: 0, - slackY: 0, - isElementSVG: !1 - }), - !t.position || - t.onDrag || - t.onStop || - console.warn( - 'A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.' - ), - e - ); - } - return ( - lt(r, null, [ - { - key: 'getDerivedStateFromProps', - value: function(t, e) { - var n = t.position, - r = e.prevPropsPosition; - return !n || (r && n.x === r.x && n.y === r.y) - ? null - : { x: n.x, y: n.y, prevPropsPosition: st({}, n) }; - } - } - ]), - lt(r, [ - { - key: 'componentDidMount', - value: function() { - void 0 !== window.SVGElement && - u.a.findDOMNode(this) instanceof window.SVGElement && - this.setState({ isElementSVG: !0 }); - } - }, - { - key: 'componentWillUnmount', - value: function() { - this.setState({ dragging: !1 }); - } - }, - { - key: 'render', - value: function() { - var t, - e = this.props, - n = (e.axis, e.bounds, e.children), - r = e.defaultPosition, - o = e.defaultClassName, - a = e.defaultClassNameDragging, - s = e.defaultClassNameDragged, - u = e.position, - l = e.positionOffset, - f = - (e.scale, - (function(t, e) { - if (null == t) return {}; - var n, - r, - i = (function(t, e) { - if (null == t) return {}; - var n, - r, - i = {}, - o = Object.keys(t); - for (r = 0; r < o.length; r++) - (n = o[r]), - e.indexOf(n) >= 0 || (i[n] = t[n]); - return i; - })(t, e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(t); - for (r = 0; r < o.length; r++) - (n = o[r]), - e.indexOf(n) >= 0 || - (Object.prototype.propertyIsEnumerable.call( - t, - n - ) && - (i[n] = t[n])); - } - return i; - })(e, [ - 'axis', - 'bounds', - 'children', - 'defaultPosition', - 'defaultClassName', - 'defaultClassNameDragging', - 'defaultClassNameDragged', - 'position', - 'positionOffset', - 'scale' - ])), - d = {}, - h = null, - p = !Boolean(u) || this.state.dragging, - g = u || r, - v = { - x: N(this) && p ? this.state.x : g.x, - y: z(this) && p ? this.state.y : g.y - }; - this.state.isElementSVG - ? (h = (function(t, e) { - return M(t, e, ''); - })(v, l)) - : (d = (function(t, e) { - var n = M(t, e, 'px'); - return x({}, m('transform', y), n); - })(v, l)); - var b = c()( - n.props.className || '', - o, - (gt((t = {}), a, this.state.dragging), - gt(t, s, this.state.dragged), - t) - ); - return i.a.createElement( - nt, - it({}, f, { - onStart: this.onDragStart, - onDrag: this.onDrag, - onStop: this.onDragStop - }), - i.a.cloneElement(i.a.Children.only(n), { - className: b, - style: st({}, n.props.style, {}, d), - transform: h - }) - ); - } - } - ]), - r - ); - })(i.a.Component); - gt(vt, 'displayName', 'Draggable'), - gt( - vt, - 'propTypes', - st({}, nt.propTypes, { - axis: a.a.oneOf(['both', 'x', 'y', 'none']), - bounds: a.a.oneOfType([ - a.a.shape({ - left: a.a.number, - right: a.a.number, - top: a.a.number, - bottom: a.a.number - }), - a.a.string, - a.a.oneOf([!1]) - ]), - defaultClassName: a.a.string, - defaultClassNameDragging: a.a.string, - defaultClassNameDragged: a.a.string, - defaultPosition: a.a.shape({ - x: a.a.number, - y: a.a.number - }), - positionOffset: a.a.shape({ - x: a.a.oneOfType([a.a.number, a.a.string]), - y: a.a.oneOfType([a.a.number, a.a.string]) - }), - position: a.a.shape({ x: a.a.number, y: a.a.number }), - className: g, - style: g, - transform: g - }) - ), - gt( - vt, - 'defaultProps', - st({}, nt.defaultProps, { - axis: 'both', - bounds: !1, - defaultClassName: 'react-draggable', - defaultClassNameDragging: 'react-draggable-dragging', - defaultClassNameDragged: 'react-draggable-dragged', - defaultPosition: { x: 0, y: 0 }, - position: null, - scale: 1 - }) - ); - } - ]))); - }, - function(t, e, n) { - 'use strict'; - (e.__esModule = !0), (e.default = void 0); - var r = s(n(0)), - i = s(n(1)), - o = n(118), - a = n(268); - function s(t) { - return t && t.__esModule ? t : { default: t }; - } - function u() { - return (u = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - function l(t, e) { - var n = Object.keys(t); - if (Object.getOwnPropertySymbols) { - var r = Object.getOwnPropertySymbols(t); - e && - (r = r.filter(function(e) { - return Object.getOwnPropertyDescriptor(t, e).enumerable; - })), - n.push.apply(n, r); - } - return n; - } - function c(t) { - if (void 0 === t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return t; - } - function f(t, e, n) { - return ( - e in t - ? Object.defineProperty(t, e, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (t[e] = n), - t - ); - } - var d = (function(t) { - var e, n; - function i() { - for (var e, n = arguments.length, r = new Array(n), i = 0; i < n; i++) - r[i] = arguments[i]; - return ( - f(c((e = t.call.apply(t, [this].concat(r)) || this)), 'state', { - slackW: 0, - slackH: 0 - }), - e - ); - } - (n = t), - ((e = i).prototype = Object.create(n.prototype)), - (e.prototype.constructor = e), - (e.__proto__ = n); - var s = i.prototype; - return ( - (s.lockAspectRatio = function(t, e, n) { - return [(t = (e = t / n) * n), e]; - }), - (s.runConstraints = function(t, e) { - var n = [this.props.minConstraints, this.props.maxConstraints], - r = n[0], - i = n[1]; - if (!r && !i) return [t, e]; - if (this.props.lockAspectRatio) - if (e === this.props.height) { - var o = this.props.width / this.props.height; - t = (e = t / o) * o; - } else { - var a = this.props.height / this.props.width; - e = (t = e / a) * a; - } - var s = t, - u = e, - l = this.state, - c = l.slackW, - f = l.slackH; - return ( - (t += c), - (e += f), - r && ((t = Math.max(r[0], t)), (e = Math.max(r[1], e))), - i && ((t = Math.min(i[0], t)), (e = Math.min(i[1], e))), - (f += u - e), - ((c += s - t) === this.state.slackW && f === this.state.slackH) || - this.setState({ slackW: c, slackH: f }), - [t, e] - ); - }), - (s.resizeHandler = function(t, e) { - var n = this; - return function(r, i) { - var o = i.node, - a = i.deltaX, - s = i.deltaY; - (a /= n.props.transformScale), (s /= n.props.transformScale); - var u = - ('both' === n.props.axis || 'x' === n.props.axis) && - -1 === ['n', 's'].indexOf(e), - l = - ('both' === n.props.axis || 'y' === n.props.axis) && - -1 === ['e', 'w'].indexOf(e); - u && 'w' === e[e.length - 1] && (a = -a), - l && 'n' === e[0] && (s = -s); - var c = n.props.width + (u ? a : 0), - f = n.props.height + (l ? s : 0), - d = c !== n.props.width, - h = f !== n.props.height; - if ('onResize' !== t || d || h) { - var p = n.runConstraints(c, f); - (c = p[0]), (f = p[1]); - var g = {}; - if ('onResizeStart' === t); - else if ('onResizeStop' === t) g.slackW = g.slackH = 0; - else if (c === n.props.width && f === n.props.height) return; - 'function' == typeof n.props[t] - ? ('function' == typeof r.persist && r.persist(), - n.setState(g, function() { - return n.props[t](r, { - node: o, - size: { width: c, height: f }, - handle: e - }); - })) - : n.setState(g); - } - }; - }), - (s.renderResizeHandle = function(t) { - var e = this.props.handle; - return e - ? 'function' == typeof e - ? e(t) - : e - : r.default.createElement('span', { - className: - 'react-resizable-handle react-resizable-handle-' + t - }); - }), - (s.render = function() { - var t = this, - e = this.props, - n = e.children, - i = e.draggableOpts, - s = - (e.width, - e.height, - e.handleSize, - e.lockAspectRatio, - e.axis, - e.minConstraints, - e.maxConstraints, - e.onResize, - e.onResizeStop, - e.onResizeStart, - e.resizeHandles), - c = - (e.transformScale, - (function(t, e) { - if (null == t) return {}; - var n, - r, - i = {}, - o = Object.keys(t); - for (r = 0; r < o.length; r++) - (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); - return i; - })(e, [ - 'children', - 'draggableOpts', - 'width', - 'height', - 'handleSize', - 'lockAspectRatio', - 'axis', - 'minConstraints', - 'maxConstraints', - 'onResize', - 'onResizeStop', - 'onResizeStart', - 'resizeHandles', - 'transformScale' - ])), - d = c.className - ? c.className + ' react-resizable' - : 'react-resizable'; - return (0, a.cloneElement)( - n, - (function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = null != arguments[e] ? arguments[e] : {}; - e % 2 - ? l(n, !0).forEach(function(e) { - f(t, e, n[e]); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties( - t, - Object.getOwnPropertyDescriptors(n) - ) - : l(n).forEach(function(e) { - Object.defineProperty( - t, - e, - Object.getOwnPropertyDescriptor(n, e) - ); - }); - } - return t; - })({}, c, { - className: d, - children: [ - n.props.children, - s.map(function(e) { - return r.default.createElement( - o.DraggableCore, - u({}, i, { - key: 'resizableHandle-' + e, - onStop: t.resizeHandler('onResizeStop', e), - onStart: t.resizeHandler('onResizeStart', e), - onDrag: t.resizeHandler('onResize', e) - }), - t.renderResizeHandle(e) - ); - }) - ] - }) - ); - }), - i - ); - })(r.default.Component); - (e.default = d), - f(d, 'propTypes', { - children: i.default.element.isRequired, - width: i.default.number.isRequired, - height: i.default.number.isRequired, - handle: i.default.element, - handleSize: i.default.array, - resizeHandles: i.default.arrayOf( - i.default.oneOf(['s', 'w', 'e', 'n', 'sw', 'nw', 'se', 'ne']) - ), - transformScale: i.default.number, - lockAspectRatio: i.default.bool, - axis: i.default.oneOf(['both', 'x', 'y', 'none']), - minConstraints: i.default.arrayOf(i.default.number), - maxConstraints: i.default.arrayOf(i.default.number), - onResizeStop: i.default.func, - onResizeStart: i.default.func, - onResize: i.default.func, - draggableOpts: i.default.object - }), - f(d, 'defaultProps', { - handleSize: [20, 20], - lockAspectRatio: !1, - axis: 'both', - minConstraints: [20, 20], - maxConstraints: [1 / 0, 1 / 0], - resizeHandles: ['se'], - transformScale: 1 - }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.getBreakpointFromWidth = function(t, e) { - for (var n = i(t), r = n[0], o = 1, a = n.length; o < a; o++) { - var s = n[o]; - e > t[s] && (r = s); - } - return r; - }), - (e.getColsFromBreakpoint = function(t, e) { - if (!e[t]) - throw new Error( - 'ResponsiveReactGridLayout: `cols` entry for breakpoint ' + - t + - ' is missing!' - ); - return e[t]; - }), - (e.findOrGenerateResponsiveLayout = function(t, e, n, o, a, s) { - if (t[n]) return (0, r.cloneLayout)(t[n]); - for ( - var u = t[o], - l = i(e), - c = l.slice(l.indexOf(n)), - f = 0, - d = c.length; - f < d; - f++ - ) { - var h = c[f]; - if (t[h]) { - u = t[h]; - break; - } - } - return ( - (u = (0, r.cloneLayout)(u || [])), - (0, r.compact)((0, r.correctBounds)(u, { cols: a }), s, a) - ); - }), - (e.sortBreakpoints = i); - var r = n(39); - function i(t) { - return Object.keys(t).sort(function(e, n) { - return t[e] - t[n]; - }); - } - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t, e, n) { - return o.default[t.type](t, e, n); - }); - var r, - i = n(273), - o = (r = i) && r.__esModule ? r : { default: r }; - }, - function(t, e, n) { - var r = n(123), - i = { - input: !0, - option: !0, - optgroup: !0, - select: !0, - button: !0, - datalist: !0, - textarea: !0 - }, - o = { - tr: { tr: !0, th: !0, td: !0 }, - th: { th: !0 }, - td: { thead: !0, th: !0, td: !0 }, - body: { head: !0, link: !0, script: !0 }, - li: { li: !0 }, - p: { p: !0 }, - h1: { p: !0 }, - h2: { p: !0 }, - h3: { p: !0 }, - h4: { p: !0 }, - h5: { p: !0 }, - h6: { p: !0 }, - select: i, - input: i, - output: i, - button: i, - datalist: i, - textarea: i, - option: { option: !0 }, - optgroup: { optgroup: !0 } - }, - a = { - __proto__: null, - area: !0, - base: !0, - basefont: !0, - br: !0, - col: !0, - command: !0, - embed: !0, - frame: !0, - hr: !0, - img: !0, - input: !0, - isindex: !0, - keygen: !0, - link: !0, - meta: !0, - param: !0, - source: !0, - track: !0, - wbr: !0 - }, - s = { __proto__: null, math: !0, svg: !0 }, - u = { - __proto__: null, - mi: !0, - mo: !0, - mn: !0, - ms: !0, - mtext: !0, - 'annotation-xml': !0, - foreignObject: !0, - desc: !0, - title: !0 - }, - l = /\s|\//; - function c(t, e) { - (this._options = e || {}), - (this._cbs = t || {}), - (this._tagname = ''), - (this._attribname = ''), - (this._attribvalue = ''), - (this._attribs = null), - (this._stack = []), - (this._foreignContext = []), - (this.startIndex = 0), - (this.endIndex = null), - (this._lowerCaseTagNames = - 'lowerCaseTags' in this._options - ? !!this._options.lowerCaseTags - : !this._options.xmlMode), - (this._lowerCaseAttributeNames = - 'lowerCaseAttributeNames' in this._options - ? !!this._options.lowerCaseAttributeNames - : !this._options.xmlMode), - this._options.Tokenizer && (r = this._options.Tokenizer), - (this._tokenizer = new r(this._options, this)), - this._cbs.onparserinit && this._cbs.onparserinit(this); - } - n(55)(c, n(279).EventEmitter), - (c.prototype._updatePosition = function(t) { - null === this.endIndex - ? this._tokenizer._sectionStart <= t - ? (this.startIndex = 0) - : (this.startIndex = this._tokenizer._sectionStart - t) - : (this.startIndex = this.endIndex + 1), - (this.endIndex = this._tokenizer.getAbsoluteIndex()); - }), - (c.prototype.ontext = function(t) { - this._updatePosition(1), - this.endIndex--, - this._cbs.ontext && this._cbs.ontext(t); - }), - (c.prototype.onopentagname = function(t) { - if ( - (this._lowerCaseTagNames && (t = t.toLowerCase()), - (this._tagname = t), - !this._options.xmlMode && t in o) - ) - for ( - var e; - (e = this._stack[this._stack.length - 1]) in o[t]; - this.onclosetag(e) - ); - (!this._options.xmlMode && t in a) || - (this._stack.push(t), - t in s - ? this._foreignContext.push(!0) - : t in u && this._foreignContext.push(!1)), - this._cbs.onopentagname && this._cbs.onopentagname(t), - this._cbs.onopentag && (this._attribs = {}); - }), - (c.prototype.onopentagend = function() { - this._updatePosition(1), - this._attribs && - (this._cbs.onopentag && - this._cbs.onopentag(this._tagname, this._attribs), - (this._attribs = null)), - !this._options.xmlMode && - this._cbs.onclosetag && - this._tagname in a && - this._cbs.onclosetag(this._tagname), - (this._tagname = ''); - }), - (c.prototype.onclosetag = function(t) { - if ( - (this._updatePosition(1), - this._lowerCaseTagNames && (t = t.toLowerCase()), - (t in s || t in u) && this._foreignContext.pop(), - !this._stack.length || (t in a && !this._options.xmlMode)) - ) - this._options.xmlMode || - ('br' !== t && 'p' !== t) || - (this.onopentagname(t), this._closeCurrentTag()); - else { - var e = this._stack.lastIndexOf(t); - if (-1 !== e) - if (this._cbs.onclosetag) - for (e = this._stack.length - e; e--; ) - this._cbs.onclosetag(this._stack.pop()); - else this._stack.length = e; - else - 'p' !== t || - this._options.xmlMode || - (this.onopentagname(t), this._closeCurrentTag()); - } - }), - (c.prototype.onselfclosingtag = function() { - this._options.xmlMode || - this._options.recognizeSelfClosing || - this._foreignContext[this._foreignContext.length - 1] - ? this._closeCurrentTag() - : this.onopentagend(); - }), - (c.prototype._closeCurrentTag = function() { - var t = this._tagname; - this.onopentagend(), - this._stack[this._stack.length - 1] === t && - (this._cbs.onclosetag && this._cbs.onclosetag(t), - this._stack.pop()); - }), - (c.prototype.onattribname = function(t) { - this._lowerCaseAttributeNames && (t = t.toLowerCase()), - (this._attribname = t); - }), - (c.prototype.onattribdata = function(t) { - this._attribvalue += t; - }), - (c.prototype.onattribend = function() { - this._cbs.onattribute && - this._cbs.onattribute(this._attribname, this._attribvalue), - this._attribs && - !Object.prototype.hasOwnProperty.call( - this._attribs, - this._attribname - ) && - (this._attribs[this._attribname] = this._attribvalue), - (this._attribname = ''), - (this._attribvalue = ''); - }), - (c.prototype._getInstructionName = function(t) { - var e = t.search(l), - n = e < 0 ? t : t.substr(0, e); - return this._lowerCaseTagNames && (n = n.toLowerCase()), n; - }), - (c.prototype.ondeclaration = function(t) { - if (this._cbs.onprocessinginstruction) { - var e = this._getInstructionName(t); - this._cbs.onprocessinginstruction('!' + e, '!' + t); - } - }), - (c.prototype.onprocessinginstruction = function(t) { - if (this._cbs.onprocessinginstruction) { - var e = this._getInstructionName(t); - this._cbs.onprocessinginstruction('?' + e, '?' + t); - } - }), - (c.prototype.oncomment = function(t) { - this._updatePosition(4), - this._cbs.oncomment && this._cbs.oncomment(t), - this._cbs.oncommentend && this._cbs.oncommentend(); - }), - (c.prototype.oncdata = function(t) { - this._updatePosition(1), - this._options.xmlMode || this._options.recognizeCDATA - ? (this._cbs.oncdatastart && this._cbs.oncdatastart(), - this._cbs.ontext && this._cbs.ontext(t), - this._cbs.oncdataend && this._cbs.oncdataend()) - : this.oncomment('[CDATA[' + t + ']]'); - }), - (c.prototype.onerror = function(t) { - this._cbs.onerror && this._cbs.onerror(t); - }), - (c.prototype.onend = function() { - if (this._cbs.onclosetag) - for ( - var t = this._stack.length; - t > 0; - this._cbs.onclosetag(this._stack[--t]) - ); - this._cbs.onend && this._cbs.onend(); - }), - (c.prototype.reset = function() { - this._cbs.onreset && this._cbs.onreset(), - this._tokenizer.reset(), - (this._tagname = ''), - (this._attribname = ''), - (this._attribs = null), - (this._stack = []), - this._cbs.onparserinit && this._cbs.onparserinit(this); - }), - (c.prototype.parseComplete = function(t) { - this.reset(), this.end(t); - }), - (c.prototype.write = function(t) { - this._tokenizer.write(t); - }), - (c.prototype.end = function(t) { - this._tokenizer.end(t); - }), - (c.prototype.pause = function() { - this._tokenizer.pause(); - }), - (c.prototype.resume = function() { - this._tokenizer.resume(); - }), - (c.prototype.parseChunk = c.prototype.write), - (c.prototype.done = c.prototype.end), - (t.exports = c); - }, - function(t, e, n) { - t.exports = vt; - var r = n(274), - i = n(276), - o = n(277), - a = n(278), - s = 0, - u = s++, - l = s++, - c = s++, - f = s++, - d = s++, - h = s++, - p = s++, - g = s++, - v = s++, - m = s++, - y = s++, - b = s++, - _ = s++, - x = s++, - w = s++, - S = s++, - E = s++, - k = s++, - A = s++, - T = s++, - C = s++, - O = s++, - P = s++, - M = s++, - L = s++, - D = s++, - j = s++, - R = s++, - N = s++, - z = s++, - I = s++, - F = s++, - V = s++, - B = s++, - G = s++, - H = s++, - U = s++, - q = s++, - W = s++, - X = s++, - Y = s++, - $ = s++, - Q = s++, - K = s++, - Z = s++, - J = s++, - tt = s++, - et = s++, - nt = s++, - rt = s++, - it = s++, - ot = s++, - at = s++, - st = s++, - ut = s++, - lt = 0, - ct = lt++, - ft = lt++, - dt = lt++; - function ht(t) { - return ( - ' ' === t || '\n' === t || '\t' === t || '\f' === t || '\r' === t - ); - } - function pt(t, e, n) { - var r = t.toLowerCase(); - return t === r - ? function(t) { - t === r ? (this._state = e) : ((this._state = n), this._index--); - } - : function(i) { - i === r || i === t - ? (this._state = e) - : ((this._state = n), this._index--); - }; - } - function gt(t, e) { - var n = t.toLowerCase(); - return function(r) { - r === n || r === t - ? (this._state = e) - : ((this._state = c), this._index--); - }; - } - function vt(t, e) { - (this._state = u), - (this._buffer = ''), - (this._sectionStart = 0), - (this._index = 0), - (this._bufferOffset = 0), - (this._baseState = u), - (this._special = ct), - (this._cbs = e), - (this._running = !0), - (this._ended = !1), - (this._xmlMode = !(!t || !t.xmlMode)), - (this._decodeEntities = !(!t || !t.decodeEntities)); - } - (vt.prototype._stateText = function(t) { - '<' === t - ? (this._index > this._sectionStart && - this._cbs.ontext(this._getSection()), - (this._state = l), - (this._sectionStart = this._index)) - : this._decodeEntities && - this._special === ct && - '&' === t && - (this._index > this._sectionStart && - this._cbs.ontext(this._getSection()), - (this._baseState = u), - (this._state = it), - (this._sectionStart = this._index)); - }), - (vt.prototype._stateBeforeTagName = function(t) { - '/' === t - ? (this._state = d) - : '<' === t - ? (this._cbs.ontext(this._getSection()), - (this._sectionStart = this._index)) - : '>' === t || this._special !== ct || ht(t) - ? (this._state = u) - : '!' === t - ? ((this._state = w), (this._sectionStart = this._index + 1)) - : '?' === t - ? ((this._state = E), (this._sectionStart = this._index + 1)) - : ((this._state = - this._xmlMode || ('s' !== t && 'S' !== t) ? c : I), - (this._sectionStart = this._index)); - }), - (vt.prototype._stateInTagName = function(t) { - ('/' === t || '>' === t || ht(t)) && - (this._emitToken('onopentagname'), - (this._state = g), - this._index--); - }), - (vt.prototype._stateBeforeCloseingTagName = function(t) { - ht(t) || - ('>' === t - ? (this._state = u) - : this._special !== ct - ? 's' === t || 'S' === t - ? (this._state = F) - : ((this._state = u), this._index--) - : ((this._state = h), (this._sectionStart = this._index))); - }), - (vt.prototype._stateInCloseingTagName = function(t) { - ('>' === t || ht(t)) && - (this._emitToken('onclosetag'), (this._state = p), this._index--); - }), - (vt.prototype._stateAfterCloseingTagName = function(t) { - '>' === t && - ((this._state = u), (this._sectionStart = this._index + 1)); - }), - (vt.prototype._stateBeforeAttributeName = function(t) { - '>' === t - ? (this._cbs.onopentagend(), - (this._state = u), - (this._sectionStart = this._index + 1)) - : '/' === t - ? (this._state = f) - : ht(t) || ((this._state = v), (this._sectionStart = this._index)); - }), - (vt.prototype._stateInSelfClosingTag = function(t) { - '>' === t - ? (this._cbs.onselfclosingtag(), - (this._state = u), - (this._sectionStart = this._index + 1)) - : ht(t) || ((this._state = g), this._index--); - }), - (vt.prototype._stateInAttributeName = function(t) { - ('=' === t || '/' === t || '>' === t || ht(t)) && - (this._cbs.onattribname(this._getSection()), - (this._sectionStart = -1), - (this._state = m), - this._index--); - }), - (vt.prototype._stateAfterAttributeName = function(t) { - '=' === t - ? (this._state = y) - : '/' === t || '>' === t - ? (this._cbs.onattribend(), (this._state = g), this._index--) - : ht(t) || - (this._cbs.onattribend(), - (this._state = v), - (this._sectionStart = this._index)); - }), - (vt.prototype._stateBeforeAttributeValue = function(t) { - '"' === t - ? ((this._state = b), (this._sectionStart = this._index + 1)) - : "'" === t - ? ((this._state = _), (this._sectionStart = this._index + 1)) - : ht(t) || - ((this._state = x), - (this._sectionStart = this._index), - this._index--); - }), - (vt.prototype._stateInAttributeValueDoubleQuotes = function(t) { - '"' === t - ? (this._emitToken('onattribdata'), - this._cbs.onattribend(), - (this._state = g)) - : this._decodeEntities && - '&' === t && - (this._emitToken('onattribdata'), - (this._baseState = this._state), - (this._state = it), - (this._sectionStart = this._index)); - }), - (vt.prototype._stateInAttributeValueSingleQuotes = function(t) { - "'" === t - ? (this._emitToken('onattribdata'), - this._cbs.onattribend(), - (this._state = g)) - : this._decodeEntities && - '&' === t && - (this._emitToken('onattribdata'), - (this._baseState = this._state), - (this._state = it), - (this._sectionStart = this._index)); - }), - (vt.prototype._stateInAttributeValueNoQuotes = function(t) { - ht(t) || '>' === t - ? (this._emitToken('onattribdata'), - this._cbs.onattribend(), - (this._state = g), - this._index--) - : this._decodeEntities && - '&' === t && - (this._emitToken('onattribdata'), - (this._baseState = this._state), - (this._state = it), - (this._sectionStart = this._index)); - }), - (vt.prototype._stateBeforeDeclaration = function(t) { - this._state = '[' === t ? O : '-' === t ? k : S; - }), - (vt.prototype._stateInDeclaration = function(t) { - '>' === t && - (this._cbs.ondeclaration(this._getSection()), - (this._state = u), - (this._sectionStart = this._index + 1)); - }), - (vt.prototype._stateInProcessingInstruction = function(t) { - '>' === t && - (this._cbs.onprocessinginstruction(this._getSection()), - (this._state = u), - (this._sectionStart = this._index + 1)); - }), - (vt.prototype._stateBeforeComment = function(t) { - '-' === t - ? ((this._state = A), (this._sectionStart = this._index + 1)) - : (this._state = S); - }), - (vt.prototype._stateInComment = function(t) { - '-' === t && (this._state = T); - }), - (vt.prototype._stateAfterComment1 = function(t) { - this._state = '-' === t ? C : A; - }), - (vt.prototype._stateAfterComment2 = function(t) { - '>' === t - ? (this._cbs.oncomment( - this._buffer.substring(this._sectionStart, this._index - 2) - ), - (this._state = u), - (this._sectionStart = this._index + 1)) - : '-' !== t && (this._state = A); - }), - (vt.prototype._stateBeforeCdata1 = pt('C', P, S)), - (vt.prototype._stateBeforeCdata2 = pt('D', M, S)), - (vt.prototype._stateBeforeCdata3 = pt('A', L, S)), - (vt.prototype._stateBeforeCdata4 = pt('T', D, S)), - (vt.prototype._stateBeforeCdata5 = pt('A', j, S)), - (vt.prototype._stateBeforeCdata6 = function(t) { - '[' === t - ? ((this._state = R), (this._sectionStart = this._index + 1)) - : ((this._state = S), this._index--); - }), - (vt.prototype._stateInCdata = function(t) { - ']' === t && (this._state = N); - }), - (vt.prototype._stateAfterCdata1 = function(t) { - this._state = ']' === t ? z : R; - }), - (vt.prototype._stateAfterCdata2 = function(t) { - '>' === t - ? (this._cbs.oncdata( - this._buffer.substring(this._sectionStart, this._index - 2) - ), - (this._state = u), - (this._sectionStart = this._index + 1)) - : ']' !== t && (this._state = R); - }), - (vt.prototype._stateBeforeSpecial = function(t) { - 'c' === t || 'C' === t - ? (this._state = V) - : 't' === t || 'T' === t - ? (this._state = Q) - : ((this._state = c), this._index--); - }), - (vt.prototype._stateBeforeSpecialEnd = function(t) { - this._special !== ft || ('c' !== t && 'C' !== t) - ? this._special !== dt || ('t' !== t && 'T' !== t) - ? (this._state = u) - : (this._state = tt) - : (this._state = q); - }), - (vt.prototype._stateBeforeScript1 = gt('R', B)), - (vt.prototype._stateBeforeScript2 = gt('I', G)), - (vt.prototype._stateBeforeScript3 = gt('P', H)), - (vt.prototype._stateBeforeScript4 = gt('T', U)), - (vt.prototype._stateBeforeScript5 = function(t) { - ('/' === t || '>' === t || ht(t)) && (this._special = ft), - (this._state = c), - this._index--; - }), - (vt.prototype._stateAfterScript1 = pt('R', W, u)), - (vt.prototype._stateAfterScript2 = pt('I', X, u)), - (vt.prototype._stateAfterScript3 = pt('P', Y, u)), - (vt.prototype._stateAfterScript4 = pt('T', $, u)), - (vt.prototype._stateAfterScript5 = function(t) { - '>' === t || ht(t) - ? ((this._special = ct), - (this._state = h), - (this._sectionStart = this._index - 6), - this._index--) - : (this._state = u); - }), - (vt.prototype._stateBeforeStyle1 = gt('Y', K)), - (vt.prototype._stateBeforeStyle2 = gt('L', Z)), - (vt.prototype._stateBeforeStyle3 = gt('E', J)), - (vt.prototype._stateBeforeStyle4 = function(t) { - ('/' === t || '>' === t || ht(t)) && (this._special = dt), - (this._state = c), - this._index--; - }), - (vt.prototype._stateAfterStyle1 = pt('Y', et, u)), - (vt.prototype._stateAfterStyle2 = pt('L', nt, u)), - (vt.prototype._stateAfterStyle3 = pt('E', rt, u)), - (vt.prototype._stateAfterStyle4 = function(t) { - '>' === t || ht(t) - ? ((this._special = ct), - (this._state = h), - (this._sectionStart = this._index - 5), - this._index--) - : (this._state = u); - }), - (vt.prototype._stateBeforeEntity = pt('#', ot, at)), - (vt.prototype._stateBeforeNumericEntity = pt('X', ut, st)), - (vt.prototype._parseNamedEntityStrict = function() { - if (this._sectionStart + 1 < this._index) { - var t = this._buffer.substring(this._sectionStart + 1, this._index), - e = this._xmlMode ? a : i; - e.hasOwnProperty(t) && - (this._emitPartial(e[t]), (this._sectionStart = this._index + 1)); - } - }), - (vt.prototype._parseLegacyEntity = function() { - var t = this._sectionStart + 1, - e = this._index - t; - for (e > 6 && (e = 6); e >= 2; ) { - var n = this._buffer.substr(t, e); - if (o.hasOwnProperty(n)) - return ( - this._emitPartial(o[n]), void (this._sectionStart += e + 1) - ); - e--; - } - }), - (vt.prototype._stateInNamedEntity = function(t) { - ';' === t - ? (this._parseNamedEntityStrict(), - this._sectionStart + 1 < this._index && - !this._xmlMode && - this._parseLegacyEntity(), - (this._state = this._baseState)) - : (t < 'a' || t > 'z') && - (t < 'A' || t > 'Z') && - (t < '0' || t > '9') && - (this._xmlMode || - this._sectionStart + 1 === this._index || - (this._baseState !== u - ? '=' !== t && this._parseNamedEntityStrict() - : this._parseLegacyEntity()), - (this._state = this._baseState), - this._index--); - }), - (vt.prototype._decodeNumericEntity = function(t, e) { - var n = this._sectionStart + t; - if (n !== this._index) { - var i = this._buffer.substring(n, this._index), - o = parseInt(i, e); - this._emitPartial(r(o)), (this._sectionStart = this._index); - } else this._sectionStart--; - this._state = this._baseState; - }), - (vt.prototype._stateInNumericEntity = function(t) { - ';' === t - ? (this._decodeNumericEntity(2, 10), this._sectionStart++) - : (t < '0' || t > '9') && - (this._xmlMode - ? (this._state = this._baseState) - : this._decodeNumericEntity(2, 10), - this._index--); - }), - (vt.prototype._stateInHexEntity = function(t) { - ';' === t - ? (this._decodeNumericEntity(3, 16), this._sectionStart++) - : (t < 'a' || t > 'f') && - (t < 'A' || t > 'F') && - (t < '0' || t > '9') && - (this._xmlMode - ? (this._state = this._baseState) - : this._decodeNumericEntity(3, 16), - this._index--); - }), - (vt.prototype._cleanup = function() { - this._sectionStart < 0 - ? ((this._buffer = ''), - (this._bufferOffset += this._index), - (this._index = 0)) - : this._running && - (this._state === u - ? (this._sectionStart !== this._index && - this._cbs.ontext(this._buffer.substr(this._sectionStart)), - (this._buffer = ''), - (this._bufferOffset += this._index), - (this._index = 0)) - : this._sectionStart === this._index - ? ((this._buffer = ''), - (this._bufferOffset += this._index), - (this._index = 0)) - : ((this._buffer = this._buffer.substr(this._sectionStart)), - (this._index -= this._sectionStart), - (this._bufferOffset += this._sectionStart)), - (this._sectionStart = 0)); - }), - (vt.prototype.write = function(t) { - this._ended && this._cbs.onerror(Error('.write() after done!')), - (this._buffer += t), - this._parse(); - }), - (vt.prototype._parse = function() { - for (; this._index < this._buffer.length && this._running; ) { - var t = this._buffer.charAt(this._index); - this._state === u - ? this._stateText(t) - : this._state === l - ? this._stateBeforeTagName(t) - : this._state === c - ? this._stateInTagName(t) - : this._state === d - ? this._stateBeforeCloseingTagName(t) - : this._state === h - ? this._stateInCloseingTagName(t) - : this._state === p - ? this._stateAfterCloseingTagName(t) - : this._state === f - ? this._stateInSelfClosingTag(t) - : this._state === g - ? this._stateBeforeAttributeName(t) - : this._state === v - ? this._stateInAttributeName(t) - : this._state === m - ? this._stateAfterAttributeName(t) - : this._state === y - ? this._stateBeforeAttributeValue(t) - : this._state === b - ? this._stateInAttributeValueDoubleQuotes(t) - : this._state === _ - ? this._stateInAttributeValueSingleQuotes(t) - : this._state === x - ? this._stateInAttributeValueNoQuotes(t) - : this._state === w - ? this._stateBeforeDeclaration(t) - : this._state === S - ? this._stateInDeclaration(t) - : this._state === E - ? this._stateInProcessingInstruction(t) - : this._state === k - ? this._stateBeforeComment(t) - : this._state === A - ? this._stateInComment(t) - : this._state === T - ? this._stateAfterComment1(t) - : this._state === C - ? this._stateAfterComment2(t) - : this._state === O - ? this._stateBeforeCdata1(t) - : this._state === P - ? this._stateBeforeCdata2(t) - : this._state === M - ? this._stateBeforeCdata3(t) - : this._state === L - ? this._stateBeforeCdata4(t) - : this._state === D - ? this._stateBeforeCdata5(t) - : this._state === j - ? this._stateBeforeCdata6(t) - : this._state === R - ? this._stateInCdata(t) - : this._state === N - ? this._stateAfterCdata1(t) - : this._state === z - ? this._stateAfterCdata2(t) - : this._state === I - ? this._stateBeforeSpecial(t) - : this._state === F - ? this._stateBeforeSpecialEnd(t) - : this._state === V - ? this._stateBeforeScript1(t) - : this._state === B - ? this._stateBeforeScript2(t) - : this._state === G - ? this._stateBeforeScript3(t) - : this._state === H - ? this._stateBeforeScript4(t) - : this._state === U - ? this._stateBeforeScript5(t) - : this._state === q - ? this._stateAfterScript1(t) - : this._state === W - ? this._stateAfterScript2(t) - : this._state === X - ? this._stateAfterScript3(t) - : this._state === Y - ? this._stateAfterScript4(t) - : this._state === $ - ? this._stateAfterScript5(t) - : this._state === Q - ? this._stateBeforeStyle1(t) - : this._state === K - ? this._stateBeforeStyle2(t) - : this._state === Z - ? this._stateBeforeStyle3(t) - : this._state === J - ? this._stateBeforeStyle4(t) - : this._state === tt - ? this._stateAfterStyle1(t) - : this._state === et - ? this._stateAfterStyle2(t) - : this._state === nt - ? this._stateAfterStyle3(t) - : this._state === rt - ? this._stateAfterStyle4(t) - : this._state === it - ? this._stateBeforeEntity(t) - : this._state === ot - ? this._stateBeforeNumericEntity(t) - : this._state === at - ? this._stateInNamedEntity(t) - : this._state === st - ? this._stateInNumericEntity(t) - : this._state === ut - ? this._stateInHexEntity(t) - : this._cbs.onerror(Error('unknown _state'), this._state), - this._index++; - } - this._cleanup(); - }), - (vt.prototype.pause = function() { - this._running = !1; - }), - (vt.prototype.resume = function() { - (this._running = !0), - this._index < this._buffer.length && this._parse(), - this._ended && this._finish(); - }), - (vt.prototype.end = function(t) { - this._ended && this._cbs.onerror(Error('.end() after done!')), - t && this.write(t), - (this._ended = !0), - this._running && this._finish(); - }), - (vt.prototype._finish = function() { - this._sectionStart < this._index && this._handleTrailingData(), - this._cbs.onend(); - }), - (vt.prototype._handleTrailingData = function() { - var t = this._buffer.substr(this._sectionStart); - this._state === R || this._state === N || this._state === z - ? this._cbs.oncdata(t) - : this._state === A || this._state === T || this._state === C - ? this._cbs.oncomment(t) - : this._state !== at || this._xmlMode - ? this._state !== st || this._xmlMode - ? this._state !== ut || this._xmlMode - ? this._state !== c && - this._state !== g && - this._state !== y && - this._state !== m && - this._state !== v && - this._state !== _ && - this._state !== b && - this._state !== x && - this._state !== h && - this._cbs.ontext(t) - : (this._decodeNumericEntity(3, 16), - this._sectionStart < this._index && - ((this._state = this._baseState), - this._handleTrailingData())) - : (this._decodeNumericEntity(2, 10), - this._sectionStart < this._index && - ((this._state = this._baseState), this._handleTrailingData())) - : (this._parseLegacyEntity(), - this._sectionStart < this._index && - ((this._state = this._baseState), this._handleTrailingData())); - }), - (vt.prototype.reset = function() { - vt.call( - this, - { xmlMode: this._xmlMode, decodeEntities: this._decodeEntities }, - this._cbs - ); - }), - (vt.prototype.getAbsoluteIndex = function() { - return this._bufferOffset + this._index; - }), - (vt.prototype._getSection = function() { - return this._buffer.substring(this._sectionStart, this._index); - }), - (vt.prototype._emitToken = function(t) { - this._cbs[t](this._getSection()), (this._sectionStart = -1); - }), - (vt.prototype._emitPartial = function(t) { - this._baseState !== u - ? this._cbs.onattribdata(t) - : this._cbs.ontext(t); - }); - }, - function(t, e, n) { - var r = n(40), - i = /\s+/g, - o = n(125), - a = n(280); - function s(t, e, n) { - 'object' == typeof t - ? ((n = e), (e = t), (t = null)) - : 'function' == typeof e && ((n = e), (e = u)), - (this._callback = t), - (this._options = e || u), - (this._elementCB = n), - (this.dom = []), - (this._done = !1), - (this._tagStack = []), - (this._parser = this._parser || null); - } - var u = { - normalizeWhitespace: !1, - withStartIndices: !1, - withEndIndices: !1 - }; - (s.prototype.onparserinit = function(t) { - this._parser = t; - }), - (s.prototype.onreset = function() { - s.call(this, this._callback, this._options, this._elementCB); - }), - (s.prototype.onend = function() { - this._done || - ((this._done = !0), - (this._parser = null), - this._handleCallback(null)); - }), - (s.prototype._handleCallback = s.prototype.onerror = function(t) { - if ('function' == typeof this._callback) this._callback(t, this.dom); - else if (t) throw t; - }), - (s.prototype.onclosetag = function() { - var t = this._tagStack.pop(); - this._options.withEndIndices && - t && - (t.endIndex = this._parser.endIndex), - this._elementCB && this._elementCB(t); - }), - (s.prototype._createDomElement = function(t) { - if (!this._options.withDomLvl1) return t; - var e; - for (var n in ((e = - 'tag' === t.type ? Object.create(a) : Object.create(o)), - t)) - t.hasOwnProperty(n) && (e[n] = t[n]); - return e; - }), - (s.prototype._addDomElement = function(t) { - var e = this._tagStack[this._tagStack.length - 1], - n = e ? e.children : this.dom, - r = n[n.length - 1]; - (t.next = null), - this._options.withStartIndices && - (t.startIndex = this._parser.startIndex), - this._options.withEndIndices && - (t.endIndex = this._parser.endIndex), - r ? ((t.prev = r), (r.next = t)) : (t.prev = null), - n.push(t), - (t.parent = e || null); - }), - (s.prototype.onopentag = function(t, e) { - var n = { - type: 'script' === t ? r.Script : 'style' === t ? r.Style : r.Tag, - name: t, - attribs: e, - children: [] - }, - i = this._createDomElement(n); - this._addDomElement(i), this._tagStack.push(i); - }), - (s.prototype.ontext = function(t) { - var e, - n = - this._options.normalizeWhitespace || - this._options.ignoreWhitespace; - if ( - !this._tagStack.length && - this.dom.length && - (e = this.dom[this.dom.length - 1]).type === r.Text - ) - n ? (e.data = (e.data + t).replace(i, ' ')) : (e.data += t); - else if ( - this._tagStack.length && - (e = this._tagStack[this._tagStack.length - 1]) && - (e = e.children[e.children.length - 1]) && - e.type === r.Text - ) - n ? (e.data = (e.data + t).replace(i, ' ')) : (e.data += t); - else { - n && (t = t.replace(i, ' ')); - var o = this._createDomElement({ data: t, type: r.Text }); - this._addDomElement(o); - } - }), - (s.prototype.oncomment = function(t) { - var e = this._tagStack[this._tagStack.length - 1]; - if (e && e.type === r.Comment) e.data += t; - else { - var n = { data: t, type: r.Comment }, - i = this._createDomElement(n); - this._addDomElement(i), this._tagStack.push(i); - } - }), - (s.prototype.oncdatastart = function() { - var t = { children: [{ data: '', type: r.Text }], type: r.CDATA }, - e = this._createDomElement(t); - this._addDomElement(e), this._tagStack.push(e); - }), - (s.prototype.oncommentend = s.prototype.oncdataend = function() { - this._tagStack.pop(); - }), - (s.prototype.onprocessinginstruction = function(t, e) { - var n = this._createDomElement({ - name: t, - data: e, - type: r.Directive - }); - this._addDomElement(n); - }), - (t.exports = s); - }, - function(t, e) { - var n = (t.exports = { - get firstChild() { - var t = this.children; - return (t && t[0]) || null; - }, - get lastChild() { - var t = this.children; - return (t && t[t.length - 1]) || null; - }, - get nodeType() { - return i[this.type] || i.element; - } - }), - r = { - tagName: 'name', - childNodes: 'children', - parentNode: 'parent', - previousSibling: 'prev', - nextSibling: 'next', - nodeValue: 'data' - }, - i = { element: 1, text: 3, cdata: 4, comment: 8 }; - Object.keys(r).forEach(function(t) { - var e = r[t]; - Object.defineProperty(n, t, { - get: function() { - return this[e] || null; - }, - set: function(t) { - return (this[e] = t), t; - } - }); - }); - }, - function(t, e, n) { - var r = t.exports; - [n(282), n(290), n(291), n(292), n(293), n(294)].forEach(function(t) { - Object.keys(t).forEach(function(e) { - r[e] = t[e].bind(r); - }); - }); - }, - function(t, e, n) { - 'use strict'; - var r = - (this && this.__importDefault) || - function(t) { - return t && t.__esModule ? t : { default: t }; - }; - Object.defineProperty(e, '__esModule', { value: !0 }); - var i = r(n(128)), - o = r(n(286)), - a = r(n(129)), - s = r(n(287)); - function u(t) { - var e = Object.keys(t).join('|'), - n = c(t), - r = new RegExp( - '&(?:' + (e += '|#[xX][\\da-fA-F]+|#\\d+') + ');', - 'g' - ); - return function(t) { - return String(t).replace(r, n); - }; - } - (e.decodeXML = u(a.default)), (e.decodeHTMLStrict = u(i.default)); - var l = function(t, e) { - return t < e ? 1 : -1; - }; - function c(t) { - return function(e) { - return '#' === e.charAt(1) - ? 'X' === e.charAt(2) || 'x' === e.charAt(2) - ? s.default(parseInt(e.substr(3), 16)) - : s.default(parseInt(e.substr(2), 10)) - : t[e.slice(1, -1)]; - }; - } - e.decodeHTML = (function() { - for ( - var t = Object.keys(o.default).sort(l), - e = Object.keys(i.default).sort(l), - n = 0, - r = 0; - n < e.length; - n++ - ) - t[r] === e[n] ? ((e[n] += ';?'), r++) : (e[n] += ';'); - var a = new RegExp( - '&(?:' + e.join('|') + '|#[xX][\\da-fA-F]+;?|#\\d+;?)', - 'g' - ), - s = c(i.default); - function u(t) { - return ';' !== t.substr(-1) && (t += ';'), s(t); - } - return function(t) { - return String(t).replace(a, u); - }; - })(); - }, - function(t) { - t.exports = JSON.parse( - '{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}' - ); - }, - function(t) { - t.exports = JSON.parse( - '{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}' - ); - }, - function(t, e, n) { - 'use strict'; - var r = - (this && this.__importDefault) || - function(t) { - return t && t.__esModule ? t : { default: t }; - }; - Object.defineProperty(e, '__esModule', { value: !0 }); - var i = u(r(n(129)).default), - o = l(i); - e.encodeXML = p(i, o); - var a = u(r(n(128)).default), - s = l(a); - function u(t) { - return Object.keys(t) - .sort() - .reduce(function(e, n) { - return (e[t[n]] = '&' + n + ';'), e; - }, {}); - } - function l(t) { - var e = [], - n = []; - return ( - Object.keys(t).forEach(function(t) { - return 1 === t.length ? e.push('\\' + t) : n.push(t); - }), - n.unshift('[' + e.join('') + ']'), - new RegExp(n.join('|'), 'g') - ); - } - e.encodeHTML = p(a, s); - var c = /[^\0-\x7F]/g, - f = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g; - function d(t) { - return ( - '&#x' + - t - .charCodeAt(0) - .toString(16) - .toUpperCase() + - ';' - ); - } - function h(t, e) { - return ( - '&#x' + - (1024 * (t.charCodeAt(0) - 55296) + t.charCodeAt(1) - 56320 + 65536) - .toString(16) - .toUpperCase() + - ';' - ); - } - function p(t, e) { - return function(n) { - return n - .replace(e, function(e) { - return t[e]; - }) - .replace(f, h) - .replace(c, d); - }; - } - var g = l(i); - e.escape = function(t) { - return t - .replace(g, d) - .replace(f, h) - .replace(c, d); - }; - }, - function(t, e, n) { - t.exports = s; - var r = n(122), - i = n(296).Writable, - o = n(297).StringDecoder, - a = n(132).Buffer; - function s(t, e) { - var n = (this._parser = new r(t, e)), - a = (this._decoder = new o()); - i.call(this, { decodeStrings: !1 }), - this.once('finish', function() { - n.end(a.end()); - }); - } - n(55)(s, i), - (s.prototype._write = function(t, e, n) { - t instanceof a && (t = this._decoder.write(t)), - this._parser.write(t), - n(); - }); - }, - function(t, e, n) { - 'use strict'; - (function(t) { - /*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */ - var r = n(299), - i = n(300), - o = n(301); - function a() { - return u.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823; - } - function s(t, e) { - if (a() < e) throw new RangeError('Invalid typed array length'); - return ( - u.TYPED_ARRAY_SUPPORT - ? ((t = new Uint8Array(e)).__proto__ = u.prototype) - : (null === t && (t = new u(e)), (t.length = e)), - t - ); - } - function u(t, e, n) { - if (!(u.TYPED_ARRAY_SUPPORT || this instanceof u)) - return new u(t, e, n); - if ('number' == typeof t) { - if ('string' == typeof e) - throw new Error( - 'If encoding is specified then the first argument must be a string' - ); - return f(this, t); - } - return l(this, t, e, n); - } - function l(t, e, n, r) { - if ('number' == typeof e) - throw new TypeError('"value" argument must not be a number'); - return 'undefined' != typeof ArrayBuffer && e instanceof ArrayBuffer - ? (function(t, e, n, r) { - if ((e.byteLength, n < 0 || e.byteLength < n)) - throw new RangeError("'offset' is out of bounds"); - if (e.byteLength < n + (r || 0)) - throw new RangeError("'length' is out of bounds"); - e = - void 0 === n && void 0 === r - ? new Uint8Array(e) - : void 0 === r - ? new Uint8Array(e, n) - : new Uint8Array(e, n, r); - u.TYPED_ARRAY_SUPPORT - ? ((t = e).__proto__ = u.prototype) - : (t = d(t, e)); - return t; - })(t, e, n, r) - : 'string' == typeof e - ? (function(t, e, n) { - ('string' == typeof n && '' !== n) || (n = 'utf8'); - if (!u.isEncoding(n)) - throw new TypeError( - '"encoding" must be a valid string encoding' - ); - var r = 0 | p(e, n), - i = (t = s(t, r)).write(e, n); - i !== r && (t = t.slice(0, i)); - return t; - })(t, e, n) - : (function(t, e) { - if (u.isBuffer(e)) { - var n = 0 | h(e.length); - return 0 === (t = s(t, n)).length || e.copy(t, 0, 0, n), t; - } - if (e) { - if ( - ('undefined' != typeof ArrayBuffer && - e.buffer instanceof ArrayBuffer) || - 'length' in e - ) - return 'number' != typeof e.length || (r = e.length) != r - ? s(t, 0) - : d(t, e); - if ('Buffer' === e.type && o(e.data)) return d(t, e.data); - } - var r; - throw new TypeError( - 'First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.' - ); - })(t, e); - } - function c(t) { - if ('number' != typeof t) - throw new TypeError('"size" argument must be a number'); - if (t < 0) - throw new RangeError('"size" argument must not be negative'); - } - function f(t, e) { - if ((c(e), (t = s(t, e < 0 ? 0 : 0 | h(e))), !u.TYPED_ARRAY_SUPPORT)) - for (var n = 0; n < e; ++n) t[n] = 0; - return t; - } - function d(t, e) { - var n = e.length < 0 ? 0 : 0 | h(e.length); - t = s(t, n); - for (var r = 0; r < n; r += 1) t[r] = 255 & e[r]; - return t; - } - function h(t) { - if (t >= a()) - throw new RangeError( - 'Attempt to allocate Buffer larger than maximum size: 0x' + - a().toString(16) + - ' bytes' - ); - return 0 | t; - } - function p(t, e) { - if (u.isBuffer(t)) return t.length; - if ( - 'undefined' != typeof ArrayBuffer && - 'function' == typeof ArrayBuffer.isView && - (ArrayBuffer.isView(t) || t instanceof ArrayBuffer) - ) - return t.byteLength; - 'string' != typeof t && (t = '' + t); - var n = t.length; - if (0 === n) return 0; - for (var r = !1; ; ) - switch (e) { - case 'ascii': - case 'latin1': - case 'binary': - return n; - case 'utf8': - case 'utf-8': - case void 0: - return V(t).length; - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return 2 * n; - case 'hex': - return n >>> 1; - case 'base64': - return B(t).length; - default: - if (r) return V(t).length; - (e = ('' + e).toLowerCase()), (r = !0); - } - } - function g(t, e, n) { - var r = !1; - if (((void 0 === e || e < 0) && (e = 0), e > this.length)) return ''; - if (((void 0 === n || n > this.length) && (n = this.length), n <= 0)) - return ''; - if ((n >>>= 0) <= (e >>>= 0)) return ''; - for (t || (t = 'utf8'); ; ) - switch (t) { - case 'hex': - return O(this, e, n); - case 'utf8': - case 'utf-8': - return A(this, e, n); - case 'ascii': - return T(this, e, n); - case 'latin1': - case 'binary': - return C(this, e, n); - case 'base64': - return k(this, e, n); - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return P(this, e, n); - default: - if (r) throw new TypeError('Unknown encoding: ' + t); - (t = (t + '').toLowerCase()), (r = !0); - } - } - function v(t, e, n) { - var r = t[e]; - (t[e] = t[n]), (t[n] = r); - } - function m(t, e, n, r, i) { - if (0 === t.length) return -1; - if ( - ('string' == typeof n - ? ((r = n), (n = 0)) - : n > 2147483647 - ? (n = 2147483647) - : n < -2147483648 && (n = -2147483648), - (n = +n), - isNaN(n) && (n = i ? 0 : t.length - 1), - n < 0 && (n = t.length + n), - n >= t.length) - ) { - if (i) return -1; - n = t.length - 1; - } else if (n < 0) { - if (!i) return -1; - n = 0; - } - if (('string' == typeof e && (e = u.from(e, r)), u.isBuffer(e))) - return 0 === e.length ? -1 : y(t, e, n, r, i); - if ('number' == typeof e) - return ( - (e &= 255), - u.TYPED_ARRAY_SUPPORT && - 'function' == typeof Uint8Array.prototype.indexOf - ? i - ? Uint8Array.prototype.indexOf.call(t, e, n) - : Uint8Array.prototype.lastIndexOf.call(t, e, n) - : y(t, [e], n, r, i) - ); - throw new TypeError('val must be string, number or Buffer'); - } - function y(t, e, n, r, i) { - var o, - a = 1, - s = t.length, - u = e.length; - if ( - void 0 !== r && - ('ucs2' === (r = String(r).toLowerCase()) || - 'ucs-2' === r || - 'utf16le' === r || - 'utf-16le' === r) - ) { - if (t.length < 2 || e.length < 2) return -1; - (a = 2), (s /= 2), (u /= 2), (n /= 2); - } - function l(t, e) { - return 1 === a ? t[e] : t.readUInt16BE(e * a); - } - if (i) { - var c = -1; - for (o = n; o < s; o++) - if (l(t, o) === l(e, -1 === c ? 0 : o - c)) { - if ((-1 === c && (c = o), o - c + 1 === u)) return c * a; - } else -1 !== c && (o -= o - c), (c = -1); - } else - for (n + u > s && (n = s - u), o = n; o >= 0; o--) { - for (var f = !0, d = 0; d < u; d++) - if (l(t, o + d) !== l(e, d)) { - f = !1; - break; - } - if (f) return o; - } - return -1; - } - function b(t, e, n, r) { - n = Number(n) || 0; - var i = t.length - n; - r ? (r = Number(r)) > i && (r = i) : (r = i); - var o = e.length; - if (o % 2 != 0) throw new TypeError('Invalid hex string'); - r > o / 2 && (r = o / 2); - for (var a = 0; a < r; ++a) { - var s = parseInt(e.substr(2 * a, 2), 16); - if (isNaN(s)) return a; - t[n + a] = s; - } - return a; - } - function _(t, e, n, r) { - return G(V(e, t.length - n), t, n, r); - } - function x(t, e, n, r) { - return G( - (function(t) { - for (var e = [], n = 0; n < t.length; ++n) - e.push(255 & t.charCodeAt(n)); - return e; - })(e), - t, - n, - r - ); - } - function w(t, e, n, r) { - return x(t, e, n, r); - } - function S(t, e, n, r) { - return G(B(e), t, n, r); - } - function E(t, e, n, r) { - return G( - (function(t, e) { - for ( - var n, r, i, o = [], a = 0; - a < t.length && !((e -= 2) < 0); - ++a - ) - (n = t.charCodeAt(a)), - (r = n >> 8), - (i = n % 256), - o.push(i), - o.push(r); - return o; - })(e, t.length - n), - t, - n, - r - ); - } - function k(t, e, n) { - return 0 === e && n === t.length - ? r.fromByteArray(t) - : r.fromByteArray(t.slice(e, n)); - } - function A(t, e, n) { - n = Math.min(t.length, n); - for (var r = [], i = e; i < n; ) { - var o, - a, - s, - u, - l = t[i], - c = null, - f = l > 239 ? 4 : l > 223 ? 3 : l > 191 ? 2 : 1; - if (i + f <= n) - switch (f) { - case 1: - l < 128 && (c = l); - break; - case 2: - 128 == (192 & (o = t[i + 1])) && - (u = ((31 & l) << 6) | (63 & o)) > 127 && - (c = u); - break; - case 3: - (o = t[i + 1]), - (a = t[i + 2]), - 128 == (192 & o) && - 128 == (192 & a) && - (u = ((15 & l) << 12) | ((63 & o) << 6) | (63 & a)) > - 2047 && - (u < 55296 || u > 57343) && - (c = u); - break; - case 4: - (o = t[i + 1]), - (a = t[i + 2]), - (s = t[i + 3]), - 128 == (192 & o) && - 128 == (192 & a) && - 128 == (192 & s) && - (u = - ((15 & l) << 18) | - ((63 & o) << 12) | - ((63 & a) << 6) | - (63 & s)) > 65535 && - u < 1114112 && - (c = u); - } - null === c - ? ((c = 65533), (f = 1)) - : c > 65535 && - ((c -= 65536), - r.push(((c >>> 10) & 1023) | 55296), - (c = 56320 | (1023 & c))), - r.push(c), - (i += f); - } - return (function(t) { - var e = t.length; - if (e <= 4096) return String.fromCharCode.apply(String, t); - var n = '', - r = 0; - for (; r < e; ) - n += String.fromCharCode.apply(String, t.slice(r, (r += 4096))); - return n; - })(r); - } - (e.Buffer = u), - (e.SlowBuffer = function(t) { - +t != t && (t = 0); - return u.alloc(+t); - }), - (e.INSPECT_MAX_BYTES = 50), - (u.TYPED_ARRAY_SUPPORT = - void 0 !== t.TYPED_ARRAY_SUPPORT - ? t.TYPED_ARRAY_SUPPORT - : (function() { - try { - var t = new Uint8Array(1); - return ( - (t.__proto__ = { - __proto__: Uint8Array.prototype, - foo: function() { - return 42; - } - }), - 42 === t.foo() && - 'function' == typeof t.subarray && - 0 === t.subarray(1, 1).byteLength - ); - } catch (t) { - return !1; - } - })()), - (e.kMaxLength = a()), - (u.poolSize = 8192), - (u._augment = function(t) { - return (t.__proto__ = u.prototype), t; - }), - (u.from = function(t, e, n) { - return l(null, t, e, n); - }), - u.TYPED_ARRAY_SUPPORT && - ((u.prototype.__proto__ = Uint8Array.prototype), - (u.__proto__ = Uint8Array), - 'undefined' != typeof Symbol && - Symbol.species && - u[Symbol.species] === u && - Object.defineProperty(u, Symbol.species, { - value: null, - configurable: !0 - })), - (u.alloc = function(t, e, n) { - return (function(t, e, n, r) { - return ( - c(e), - e <= 0 - ? s(t, e) - : void 0 !== n - ? 'string' == typeof r - ? s(t, e).fill(n, r) - : s(t, e).fill(n) - : s(t, e) - ); - })(null, t, e, n); - }), - (u.allocUnsafe = function(t) { - return f(null, t); - }), - (u.allocUnsafeSlow = function(t) { - return f(null, t); - }), - (u.isBuffer = function(t) { - return !(null == t || !t._isBuffer); - }), - (u.compare = function(t, e) { - if (!u.isBuffer(t) || !u.isBuffer(e)) - throw new TypeError('Arguments must be Buffers'); - if (t === e) return 0; - for ( - var n = t.length, r = e.length, i = 0, o = Math.min(n, r); - i < o; - ++i - ) - if (t[i] !== e[i]) { - (n = t[i]), (r = e[i]); - break; - } - return n < r ? -1 : r < n ? 1 : 0; - }), - (u.isEncoding = function(t) { - switch (String(t).toLowerCase()) { - case 'hex': - case 'utf8': - case 'utf-8': - case 'ascii': - case 'latin1': - case 'binary': - case 'base64': - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return !0; - default: - return !1; - } - }), - (u.concat = function(t, e) { - if (!o(t)) - throw new TypeError( - '"list" argument must be an Array of Buffers' - ); - if (0 === t.length) return u.alloc(0); - var n; - if (void 0 === e) - for (e = 0, n = 0; n < t.length; ++n) e += t[n].length; - var r = u.allocUnsafe(e), - i = 0; - for (n = 0; n < t.length; ++n) { - var a = t[n]; - if (!u.isBuffer(a)) - throw new TypeError( - '"list" argument must be an Array of Buffers' - ); - a.copy(r, i), (i += a.length); - } - return r; - }), - (u.byteLength = p), - (u.prototype._isBuffer = !0), - (u.prototype.swap16 = function() { - var t = this.length; - if (t % 2 != 0) - throw new RangeError('Buffer size must be a multiple of 16-bits'); - for (var e = 0; e < t; e += 2) v(this, e, e + 1); - return this; - }), - (u.prototype.swap32 = function() { - var t = this.length; - if (t % 4 != 0) - throw new RangeError('Buffer size must be a multiple of 32-bits'); - for (var e = 0; e < t; e += 4) - v(this, e, e + 3), v(this, e + 1, e + 2); - return this; - }), - (u.prototype.swap64 = function() { - var t = this.length; - if (t % 8 != 0) - throw new RangeError('Buffer size must be a multiple of 64-bits'); - for (var e = 0; e < t; e += 8) - v(this, e, e + 7), - v(this, e + 1, e + 6), - v(this, e + 2, e + 5), - v(this, e + 3, e + 4); - return this; - }), - (u.prototype.toString = function() { - var t = 0 | this.length; - return 0 === t - ? '' - : 0 === arguments.length - ? A(this, 0, t) - : g.apply(this, arguments); - }), - (u.prototype.equals = function(t) { - if (!u.isBuffer(t)) - throw new TypeError('Argument must be a Buffer'); - return this === t || 0 === u.compare(this, t); - }), - (u.prototype.inspect = function() { - var t = '', - n = e.INSPECT_MAX_BYTES; - return ( - this.length > 0 && - ((t = this.toString('hex', 0, n) - .match(/.{2}/g) - .join(' ')), - this.length > n && (t += ' ... ')), - '' - ); - }), - (u.prototype.compare = function(t, e, n, r, i) { - if (!u.isBuffer(t)) - throw new TypeError('Argument must be a Buffer'); - if ( - (void 0 === e && (e = 0), - void 0 === n && (n = t ? t.length : 0), - void 0 === r && (r = 0), - void 0 === i && (i = this.length), - e < 0 || n > t.length || r < 0 || i > this.length) - ) - throw new RangeError('out of range index'); - if (r >= i && e >= n) return 0; - if (r >= i) return -1; - if (e >= n) return 1; - if (this === t) return 0; - for ( - var o = (i >>>= 0) - (r >>>= 0), - a = (n >>>= 0) - (e >>>= 0), - s = Math.min(o, a), - l = this.slice(r, i), - c = t.slice(e, n), - f = 0; - f < s; - ++f - ) - if (l[f] !== c[f]) { - (o = l[f]), (a = c[f]); - break; - } - return o < a ? -1 : a < o ? 1 : 0; - }), - (u.prototype.includes = function(t, e, n) { - return -1 !== this.indexOf(t, e, n); - }), - (u.prototype.indexOf = function(t, e, n) { - return m(this, t, e, n, !0); - }), - (u.prototype.lastIndexOf = function(t, e, n) { - return m(this, t, e, n, !1); - }), - (u.prototype.write = function(t, e, n, r) { - if (void 0 === e) (r = 'utf8'), (n = this.length), (e = 0); - else if (void 0 === n && 'string' == typeof e) - (r = e), (n = this.length), (e = 0); - else { - if (!isFinite(e)) - throw new Error( - 'Buffer.write(string, encoding, offset[, length]) is no longer supported' - ); - (e |= 0), - isFinite(n) - ? ((n |= 0), void 0 === r && (r = 'utf8')) - : ((r = n), (n = void 0)); - } - var i = this.length - e; - if ( - ((void 0 === n || n > i) && (n = i), - (t.length > 0 && (n < 0 || e < 0)) || e > this.length) - ) - throw new RangeError('Attempt to write outside buffer bounds'); - r || (r = 'utf8'); - for (var o = !1; ; ) - switch (r) { - case 'hex': - return b(this, t, e, n); - case 'utf8': - case 'utf-8': - return _(this, t, e, n); - case 'ascii': - return x(this, t, e, n); - case 'latin1': - case 'binary': - return w(this, t, e, n); - case 'base64': - return S(this, t, e, n); - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return E(this, t, e, n); - default: - if (o) throw new TypeError('Unknown encoding: ' + r); - (r = ('' + r).toLowerCase()), (o = !0); - } - }), - (u.prototype.toJSON = function() { - return { - type: 'Buffer', - data: Array.prototype.slice.call(this._arr || this, 0) - }; - }); - function T(t, e, n) { - var r = ''; - n = Math.min(t.length, n); - for (var i = e; i < n; ++i) r += String.fromCharCode(127 & t[i]); - return r; - } - function C(t, e, n) { - var r = ''; - n = Math.min(t.length, n); - for (var i = e; i < n; ++i) r += String.fromCharCode(t[i]); - return r; - } - function O(t, e, n) { - var r = t.length; - (!e || e < 0) && (e = 0), (!n || n < 0 || n > r) && (n = r); - for (var i = '', o = e; o < n; ++o) i += F(t[o]); - return i; - } - function P(t, e, n) { - for (var r = t.slice(e, n), i = '', o = 0; o < r.length; o += 2) - i += String.fromCharCode(r[o] + 256 * r[o + 1]); - return i; - } - function M(t, e, n) { - if (t % 1 != 0 || t < 0) throw new RangeError('offset is not uint'); - if (t + e > n) - throw new RangeError('Trying to access beyond buffer length'); - } - function L(t, e, n, r, i, o) { - if (!u.isBuffer(t)) - throw new TypeError('"buffer" argument must be a Buffer instance'); - if (e > i || e < o) - throw new RangeError('"value" argument is out of bounds'); - if (n + r > t.length) throw new RangeError('Index out of range'); - } - function D(t, e, n, r) { - e < 0 && (e = 65535 + e + 1); - for (var i = 0, o = Math.min(t.length - n, 2); i < o; ++i) - t[n + i] = - (e & (255 << (8 * (r ? i : 1 - i)))) >>> (8 * (r ? i : 1 - i)); - } - function j(t, e, n, r) { - e < 0 && (e = 4294967295 + e + 1); - for (var i = 0, o = Math.min(t.length - n, 4); i < o; ++i) - t[n + i] = (e >>> (8 * (r ? i : 3 - i))) & 255; - } - function R(t, e, n, r, i, o) { - if (n + r > t.length) throw new RangeError('Index out of range'); - if (n < 0) throw new RangeError('Index out of range'); - } - function N(t, e, n, r, o) { - return o || R(t, 0, n, 4), i.write(t, e, n, r, 23, 4), n + 4; - } - function z(t, e, n, r, o) { - return o || R(t, 0, n, 8), i.write(t, e, n, r, 52, 8), n + 8; - } - (u.prototype.slice = function(t, e) { - var n, - r = this.length; - if ( - ((t = ~~t) < 0 ? (t += r) < 0 && (t = 0) : t > r && (t = r), - (e = void 0 === e ? r : ~~e) < 0 - ? (e += r) < 0 && (e = 0) - : e > r && (e = r), - e < t && (e = t), - u.TYPED_ARRAY_SUPPORT) - ) - (n = this.subarray(t, e)).__proto__ = u.prototype; - else { - var i = e - t; - n = new u(i, void 0); - for (var o = 0; o < i; ++o) n[o] = this[o + t]; - } - return n; - }), - (u.prototype.readUIntLE = function(t, e, n) { - (t |= 0), (e |= 0), n || M(t, e, this.length); - for (var r = this[t], i = 1, o = 0; ++o < e && (i *= 256); ) - r += this[t + o] * i; - return r; - }), - (u.prototype.readUIntBE = function(t, e, n) { - (t |= 0), (e |= 0), n || M(t, e, this.length); - for (var r = this[t + --e], i = 1; e > 0 && (i *= 256); ) - r += this[t + --e] * i; - return r; - }), - (u.prototype.readUInt8 = function(t, e) { - return e || M(t, 1, this.length), this[t]; - }), - (u.prototype.readUInt16LE = function(t, e) { - return e || M(t, 2, this.length), this[t] | (this[t + 1] << 8); - }), - (u.prototype.readUInt16BE = function(t, e) { - return e || M(t, 2, this.length), (this[t] << 8) | this[t + 1]; - }), - (u.prototype.readUInt32LE = function(t, e) { - return ( - e || M(t, 4, this.length), - (this[t] | (this[t + 1] << 8) | (this[t + 2] << 16)) + - 16777216 * this[t + 3] - ); - }), - (u.prototype.readUInt32BE = function(t, e) { - return ( - e || M(t, 4, this.length), - 16777216 * this[t] + - ((this[t + 1] << 16) | (this[t + 2] << 8) | this[t + 3]) - ); - }), - (u.prototype.readIntLE = function(t, e, n) { - (t |= 0), (e |= 0), n || M(t, e, this.length); - for (var r = this[t], i = 1, o = 0; ++o < e && (i *= 256); ) - r += this[t + o] * i; - return r >= (i *= 128) && (r -= Math.pow(2, 8 * e)), r; - }), - (u.prototype.readIntBE = function(t, e, n) { - (t |= 0), (e |= 0), n || M(t, e, this.length); - for (var r = e, i = 1, o = this[t + --r]; r > 0 && (i *= 256); ) - o += this[t + --r] * i; - return o >= (i *= 128) && (o -= Math.pow(2, 8 * e)), o; - }), - (u.prototype.readInt8 = function(t, e) { - return ( - e || M(t, 1, this.length), - 128 & this[t] ? -1 * (255 - this[t] + 1) : this[t] - ); - }), - (u.prototype.readInt16LE = function(t, e) { - e || M(t, 2, this.length); - var n = this[t] | (this[t + 1] << 8); - return 32768 & n ? 4294901760 | n : n; - }), - (u.prototype.readInt16BE = function(t, e) { - e || M(t, 2, this.length); - var n = this[t + 1] | (this[t] << 8); - return 32768 & n ? 4294901760 | n : n; - }), - (u.prototype.readInt32LE = function(t, e) { - return ( - e || M(t, 4, this.length), - this[t] | - (this[t + 1] << 8) | - (this[t + 2] << 16) | - (this[t + 3] << 24) - ); - }), - (u.prototype.readInt32BE = function(t, e) { - return ( - e || M(t, 4, this.length), - (this[t] << 24) | - (this[t + 1] << 16) | - (this[t + 2] << 8) | - this[t + 3] - ); - }), - (u.prototype.readFloatLE = function(t, e) { - return e || M(t, 4, this.length), i.read(this, t, !0, 23, 4); - }), - (u.prototype.readFloatBE = function(t, e) { - return e || M(t, 4, this.length), i.read(this, t, !1, 23, 4); - }), - (u.prototype.readDoubleLE = function(t, e) { - return e || M(t, 8, this.length), i.read(this, t, !0, 52, 8); - }), - (u.prototype.readDoubleBE = function(t, e) { - return e || M(t, 8, this.length), i.read(this, t, !1, 52, 8); - }), - (u.prototype.writeUIntLE = function(t, e, n, r) { - ((t = +t), (e |= 0), (n |= 0), r) || - L(this, t, e, n, Math.pow(2, 8 * n) - 1, 0); - var i = 1, - o = 0; - for (this[e] = 255 & t; ++o < n && (i *= 256); ) - this[e + o] = (t / i) & 255; - return e + n; - }), - (u.prototype.writeUIntBE = function(t, e, n, r) { - ((t = +t), (e |= 0), (n |= 0), r) || - L(this, t, e, n, Math.pow(2, 8 * n) - 1, 0); - var i = n - 1, - o = 1; - for (this[e + i] = 255 & t; --i >= 0 && (o *= 256); ) - this[e + i] = (t / o) & 255; - return e + n; - }), - (u.prototype.writeUInt8 = function(t, e, n) { - return ( - (t = +t), - (e |= 0), - n || L(this, t, e, 1, 255, 0), - u.TYPED_ARRAY_SUPPORT || (t = Math.floor(t)), - (this[e] = 255 & t), - e + 1 - ); - }), - (u.prototype.writeUInt16LE = function(t, e, n) { - return ( - (t = +t), - (e |= 0), - n || L(this, t, e, 2, 65535, 0), - u.TYPED_ARRAY_SUPPORT - ? ((this[e] = 255 & t), (this[e + 1] = t >>> 8)) - : D(this, t, e, !0), - e + 2 - ); - }), - (u.prototype.writeUInt16BE = function(t, e, n) { - return ( - (t = +t), - (e |= 0), - n || L(this, t, e, 2, 65535, 0), - u.TYPED_ARRAY_SUPPORT - ? ((this[e] = t >>> 8), (this[e + 1] = 255 & t)) - : D(this, t, e, !1), - e + 2 - ); - }), - (u.prototype.writeUInt32LE = function(t, e, n) { - return ( - (t = +t), - (e |= 0), - n || L(this, t, e, 4, 4294967295, 0), - u.TYPED_ARRAY_SUPPORT - ? ((this[e + 3] = t >>> 24), - (this[e + 2] = t >>> 16), - (this[e + 1] = t >>> 8), - (this[e] = 255 & t)) - : j(this, t, e, !0), - e + 4 - ); - }), - (u.prototype.writeUInt32BE = function(t, e, n) { - return ( - (t = +t), - (e |= 0), - n || L(this, t, e, 4, 4294967295, 0), - u.TYPED_ARRAY_SUPPORT - ? ((this[e] = t >>> 24), - (this[e + 1] = t >>> 16), - (this[e + 2] = t >>> 8), - (this[e + 3] = 255 & t)) - : j(this, t, e, !1), - e + 4 - ); - }), - (u.prototype.writeIntLE = function(t, e, n, r) { - if (((t = +t), (e |= 0), !r)) { - var i = Math.pow(2, 8 * n - 1); - L(this, t, e, n, i - 1, -i); - } - var o = 0, - a = 1, - s = 0; - for (this[e] = 255 & t; ++o < n && (a *= 256); ) - t < 0 && 0 === s && 0 !== this[e + o - 1] && (s = 1), - (this[e + o] = (((t / a) >> 0) - s) & 255); - return e + n; - }), - (u.prototype.writeIntBE = function(t, e, n, r) { - if (((t = +t), (e |= 0), !r)) { - var i = Math.pow(2, 8 * n - 1); - L(this, t, e, n, i - 1, -i); - } - var o = n - 1, - a = 1, - s = 0; - for (this[e + o] = 255 & t; --o >= 0 && (a *= 256); ) - t < 0 && 0 === s && 0 !== this[e + o + 1] && (s = 1), - (this[e + o] = (((t / a) >> 0) - s) & 255); - return e + n; - }), - (u.prototype.writeInt8 = function(t, e, n) { - return ( - (t = +t), - (e |= 0), - n || L(this, t, e, 1, 127, -128), - u.TYPED_ARRAY_SUPPORT || (t = Math.floor(t)), - t < 0 && (t = 255 + t + 1), - (this[e] = 255 & t), - e + 1 - ); - }), - (u.prototype.writeInt16LE = function(t, e, n) { - return ( - (t = +t), - (e |= 0), - n || L(this, t, e, 2, 32767, -32768), - u.TYPED_ARRAY_SUPPORT - ? ((this[e] = 255 & t), (this[e + 1] = t >>> 8)) - : D(this, t, e, !0), - e + 2 - ); - }), - (u.prototype.writeInt16BE = function(t, e, n) { - return ( - (t = +t), - (e |= 0), - n || L(this, t, e, 2, 32767, -32768), - u.TYPED_ARRAY_SUPPORT - ? ((this[e] = t >>> 8), (this[e + 1] = 255 & t)) - : D(this, t, e, !1), - e + 2 - ); - }), - (u.prototype.writeInt32LE = function(t, e, n) { - return ( - (t = +t), - (e |= 0), - n || L(this, t, e, 4, 2147483647, -2147483648), - u.TYPED_ARRAY_SUPPORT - ? ((this[e] = 255 & t), - (this[e + 1] = t >>> 8), - (this[e + 2] = t >>> 16), - (this[e + 3] = t >>> 24)) - : j(this, t, e, !0), - e + 4 - ); - }), - (u.prototype.writeInt32BE = function(t, e, n) { - return ( - (t = +t), - (e |= 0), - n || L(this, t, e, 4, 2147483647, -2147483648), - t < 0 && (t = 4294967295 + t + 1), - u.TYPED_ARRAY_SUPPORT - ? ((this[e] = t >>> 24), - (this[e + 1] = t >>> 16), - (this[e + 2] = t >>> 8), - (this[e + 3] = 255 & t)) - : j(this, t, e, !1), - e + 4 - ); - }), - (u.prototype.writeFloatLE = function(t, e, n) { - return N(this, t, e, !0, n); - }), - (u.prototype.writeFloatBE = function(t, e, n) { - return N(this, t, e, !1, n); - }), - (u.prototype.writeDoubleLE = function(t, e, n) { - return z(this, t, e, !0, n); - }), - (u.prototype.writeDoubleBE = function(t, e, n) { - return z(this, t, e, !1, n); - }), - (u.prototype.copy = function(t, e, n, r) { - if ( - (n || (n = 0), - r || 0 === r || (r = this.length), - e >= t.length && (e = t.length), - e || (e = 0), - r > 0 && r < n && (r = n), - r === n) - ) - return 0; - if (0 === t.length || 0 === this.length) return 0; - if (e < 0) throw new RangeError('targetStart out of bounds'); - if (n < 0 || n >= this.length) - throw new RangeError('sourceStart out of bounds'); - if (r < 0) throw new RangeError('sourceEnd out of bounds'); - r > this.length && (r = this.length), - t.length - e < r - n && (r = t.length - e + n); - var i, - o = r - n; - if (this === t && n < e && e < r) - for (i = o - 1; i >= 0; --i) t[i + e] = this[i + n]; - else if (o < 1e3 || !u.TYPED_ARRAY_SUPPORT) - for (i = 0; i < o; ++i) t[i + e] = this[i + n]; - else Uint8Array.prototype.set.call(t, this.subarray(n, n + o), e); - return o; - }), - (u.prototype.fill = function(t, e, n, r) { - if ('string' == typeof t) { - if ( - ('string' == typeof e - ? ((r = e), (e = 0), (n = this.length)) - : 'string' == typeof n && ((r = n), (n = this.length)), - 1 === t.length) - ) { - var i = t.charCodeAt(0); - i < 256 && (t = i); - } - if (void 0 !== r && 'string' != typeof r) - throw new TypeError('encoding must be a string'); - if ('string' == typeof r && !u.isEncoding(r)) - throw new TypeError('Unknown encoding: ' + r); - } else 'number' == typeof t && (t &= 255); - if (e < 0 || this.length < e || this.length < n) - throw new RangeError('Out of range index'); - if (n <= e) return this; - var o; - if ( - ((e >>>= 0), - (n = void 0 === n ? this.length : n >>> 0), - t || (t = 0), - 'number' == typeof t) - ) - for (o = e; o < n; ++o) this[o] = t; - else { - var a = u.isBuffer(t) ? t : V(new u(t, r).toString()), - s = a.length; - for (o = 0; o < n - e; ++o) this[o + e] = a[o % s]; - } - return this; - }); - var I = /[^+\/0-9A-Za-z-_]/g; - function F(t) { - return t < 16 ? '0' + t.toString(16) : t.toString(16); - } - function V(t, e) { - var n; - e = e || 1 / 0; - for (var r = t.length, i = null, o = [], a = 0; a < r; ++a) { - if ((n = t.charCodeAt(a)) > 55295 && n < 57344) { - if (!i) { - if (n > 56319) { - (e -= 3) > -1 && o.push(239, 191, 189); - continue; - } - if (a + 1 === r) { - (e -= 3) > -1 && o.push(239, 191, 189); - continue; - } - i = n; - continue; - } - if (n < 56320) { - (e -= 3) > -1 && o.push(239, 191, 189), (i = n); - continue; - } - n = 65536 + (((i - 55296) << 10) | (n - 56320)); - } else i && (e -= 3) > -1 && o.push(239, 191, 189); - if (((i = null), n < 128)) { - if ((e -= 1) < 0) break; - o.push(n); - } else if (n < 2048) { - if ((e -= 2) < 0) break; - o.push((n >> 6) | 192, (63 & n) | 128); - } else if (n < 65536) { - if ((e -= 3) < 0) break; - o.push((n >> 12) | 224, ((n >> 6) & 63) | 128, (63 & n) | 128); - } else { - if (!(n < 1114112)) throw new Error('Invalid code point'); - if ((e -= 4) < 0) break; - o.push( - (n >> 18) | 240, - ((n >> 12) & 63) | 128, - ((n >> 6) & 63) | 128, - (63 & n) | 128 - ); - } - } - return o; - } - function B(t) { - return r.toByteArray( - (function(t) { - if ( - (t = (function(t) { - return t.trim ? t.trim() : t.replace(/^\s+|\s+$/g, ''); - })(t).replace(I, '')).length < 2 - ) - return ''; - for (; t.length % 4 != 0; ) t += '='; - return t; - })(t) - ); - } - function G(t, e, n, r) { - for (var i = 0; i < r && !(i + n >= e.length || i >= t.length); ++i) - e[i + n] = t[i]; - return i; - } - }.call(this, n(13))); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }; - e.default = function(t, e) { - var n = r({}, (0, i.default)(t), { key: e }); - 'string' == typeof n.style || n.style instanceof String - ? (n.style = (0, o.default)(n.style)) - : delete n.style; - return n; - }; - var i = a(n(306)), - o = a(n(309)); - function a(t) { - return t && t.__esModule ? t : { default: t }; - } - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t) { - i.hasOwnProperty(t) || (i[t] = r.test(t)); - return i[t]; - }); - var r = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, - i = {}; - }, - function(t, e, n) { - var r = n(97), - i = n(38); - t.exports = function(t, e) { - return t && r(t, e, i); - }; - }, - function(t, e, n) { - var r = n(54); - t.exports = function(t) { - return 'function' == typeof t ? t : r; - }; - }, - function(t, e) { - t.exports = function(t, e) { - for (var n = -1, r = null == t ? 0 : t.length, i = Array(r); ++n < r; ) - i[n] = e(t[n], n, t); - return i; - }; - }, - function(t, e, n) { - var r = n(14); - t.exports = function(t) { - return t == t && !r(t); - }; - }, - function(t, e) { - t.exports = function(t, e) { - return function(n) { - return null != n && n[t] === e && (void 0 !== e || t in Object(n)); - }; - }; - }, - function(t, e, n) { - var r = n(141), - i = n(57); - t.exports = function(t, e) { - for (var n = 0, o = (e = r(e, t)).length; null != t && n < o; ) - t = t[i(e[n++])]; - return n && n == o ? t : void 0; - }; - }, - function(t, e, n) { - var r = n(10), - i = n(80), - o = n(326), - a = n(329); - t.exports = function(t, e) { - return r(t) ? t : i(t, e) ? [t] : o(a(t)); - }; - }, - function(t, e, n) { - var r = n(135), - i = n(338)(r); - t.exports = i; - }, - function(t, e) { - t.exports = function(t, e) { - for ( - var n = -1, r = null == t ? 0 : t.length; - ++n < r && !1 !== e(t[n], n, t); - - ); - return t; - }; - }, - function(t, e, n) { - var r = n(115), - i = n(73), - o = n(76), - a = n(116), - s = Object.getOwnPropertySymbols - ? function(t) { - for (var e = []; t; ) r(e, o(t)), (t = i(t)); - return e; - } - : a; - t.exports = s; - }, - function(t, e, n) { - var r = n(14), - i = n(369), - o = n(370), - a = Math.max, - s = Math.min; - t.exports = function(t, e, n) { - var u, - l, - c, - f, - d, - h, - p = 0, - g = !1, - v = !1, - m = !0; - if ('function' != typeof t) throw new TypeError('Expected a function'); - function y(e) { - var n = u, - r = l; - return (u = l = void 0), (p = e), (f = t.apply(r, n)); - } - function b(t) { - return (p = t), (d = setTimeout(x, e)), g ? y(t) : f; - } - function _(t) { - var n = t - h; - return void 0 === h || n >= e || n < 0 || (v && t - p >= c); - } - function x() { - var t = i(); - if (_(t)) return w(t); - d = setTimeout( - x, - (function(t) { - var n = e - (t - h); - return v ? s(n, c - (t - p)) : n; - })(t) - ); - } - function w(t) { - return (d = void 0), m && u ? y(t) : ((u = l = void 0), f); - } - function S() { - var t = i(), - n = _(t); - if (((u = arguments), (l = this), (h = t), n)) { - if (void 0 === d) return b(h); - if (v) return clearTimeout(d), (d = setTimeout(x, e)), y(h); - } - return void 0 === d && (d = setTimeout(x, e)), f; - } - return ( - (e = o(e) || 0), - r(n) && - ((g = !!n.leading), - (c = (v = 'maxWait' in n) ? a(o(n.maxWait) || 0, e) : c), - (m = 'trailing' in n ? !!n.trailing : m)), - (S.cancel = function() { - void 0 !== d && clearTimeout(d), (p = 0), (u = h = l = d = void 0); - }), - (S.flush = function() { - return void 0 === d ? f : w(i()); - }), - S - ); - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.ColorWrap = void 0); - var r = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }, - i = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - o = n(0), - a = l(o), - s = l(n(145)), - u = l(n(19)); - function l(t) { - return t && t.__esModule ? t : { default: t }; - } - var c = (e.ColorWrap = function(t) { - var e = (function(e) { - function n(t) { - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - })(this, n); - var e = (function(t, e) { - if (!t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !e || ('object' != typeof e && 'function' != typeof e) - ? t - : e; - })(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this)); - return ( - (e.handleChange = function(t, n) { - if (u.default.simpleCheckForValidColor(t)) { - var r = u.default.toState(t, t.h || e.state.oldHue); - e.setState(r), - e.props.onChangeComplete && - e.debounce(e.props.onChangeComplete, r, n), - e.props.onChange && e.props.onChange(r, n); - } - }), - (e.handleSwatchHover = function(t, n) { - if (u.default.simpleCheckForValidColor(t)) { - var r = u.default.toState(t, t.h || e.state.oldHue); - e.props.onSwatchHover && e.props.onSwatchHover(r, n); - } - }), - (e.state = r({}, u.default.toState(t.color, 0))), - (e.debounce = (0, s.default)(function(t, e, n) { - t(e, n); - }, 100)), - e - ); - } - return ( - (function(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof e - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { - value: t, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - e && - (Object.setPrototypeOf - ? Object.setPrototypeOf(t, e) - : (t.__proto__ = e)); - })(n, e), - i( - n, - [ - { - key: 'render', - value: function() { - var e = {}; - return ( - this.props.onSwatchHover && - (e.onSwatchHover = this.handleSwatchHover), - a.default.createElement( - t, - r( - {}, - this.props, - this.state, - { onChange: this.handleChange }, - e - ) - ) - ); - } - } - ], - [ - { - key: 'getDerivedStateFromProps', - value: function(t, e) { - return r({}, u.default.toState(t.color, e.oldHue)); - } - } - ] - ), - n - ); - })(o.PureComponent || o.Component); - return ( - (e.propTypes = r({}, t.propTypes)), - (e.defaultProps = r({}, t.defaultProps, { - color: { h: 250, s: 0.5, l: 0.2, a: 1 } - })), - e - ); - }); - e.default = c; - }, - function(t, e, n) { - 'use strict'; - n.r(e), - n.d(e, 'red', function() { - return r; - }), - n.d(e, 'pink', function() { - return i; - }), - n.d(e, 'purple', function() { - return o; - }), - n.d(e, 'deepPurple', function() { - return a; - }), - n.d(e, 'indigo', function() { - return s; - }), - n.d(e, 'blue', function() { - return u; - }), - n.d(e, 'lightBlue', function() { - return l; - }), - n.d(e, 'cyan', function() { - return c; - }), - n.d(e, 'teal', function() { - return f; - }), - n.d(e, 'green', function() { - return d; - }), - n.d(e, 'lightGreen', function() { - return h; - }), - n.d(e, 'lime', function() { - return p; - }), - n.d(e, 'yellow', function() { - return g; - }), - n.d(e, 'amber', function() { - return v; - }), - n.d(e, 'orange', function() { - return m; - }), - n.d(e, 'deepOrange', function() { - return y; - }), - n.d(e, 'brown', function() { - return b; - }), - n.d(e, 'grey', function() { - return _; - }), - n.d(e, 'blueGrey', function() { - return x; - }), - n.d(e, 'darkText', function() { - return w; - }), - n.d(e, 'lightText', function() { - return S; - }), - n.d(e, 'darkIcons', function() { - return E; - }), - n.d(e, 'lightIcons', function() { - return k; - }), - n.d(e, 'white', function() { - return A; - }), - n.d(e, 'black', function() { - return T; - }); - var r = { - 50: '#ffebee', - 100: '#ffcdd2', - 200: '#ef9a9a', - 300: '#e57373', - 400: '#ef5350', - 500: '#f44336', - 600: '#e53935', - 700: '#d32f2f', - 800: '#c62828', - 900: '#b71c1c', - a100: '#ff8a80', - a200: '#ff5252', - a400: '#ff1744', - a700: '#d50000' - }, - i = { - 50: '#fce4ec', - 100: '#f8bbd0', - 200: '#f48fb1', - 300: '#f06292', - 400: '#ec407a', - 500: '#e91e63', - 600: '#d81b60', - 700: '#c2185b', - 800: '#ad1457', - 900: '#880e4f', - a100: '#ff80ab', - a200: '#ff4081', - a400: '#f50057', - a700: '#c51162' - }, - o = { - 50: '#f3e5f5', - 100: '#e1bee7', - 200: '#ce93d8', - 300: '#ba68c8', - 400: '#ab47bc', - 500: '#9c27b0', - 600: '#8e24aa', - 700: '#7b1fa2', - 800: '#6a1b9a', - 900: '#4a148c', - a100: '#ea80fc', - a200: '#e040fb', - a400: '#d500f9', - a700: '#aa00ff' - }, - a = { - 50: '#ede7f6', - 100: '#d1c4e9', - 200: '#b39ddb', - 300: '#9575cd', - 400: '#7e57c2', - 500: '#673ab7', - 600: '#5e35b1', - 700: '#512da8', - 800: '#4527a0', - 900: '#311b92', - a100: '#b388ff', - a200: '#7c4dff', - a400: '#651fff', - a700: '#6200ea' - }, - s = { - 50: '#e8eaf6', - 100: '#c5cae9', - 200: '#9fa8da', - 300: '#7986cb', - 400: '#5c6bc0', - 500: '#3f51b5', - 600: '#3949ab', - 700: '#303f9f', - 800: '#283593', - 900: '#1a237e', - a100: '#8c9eff', - a200: '#536dfe', - a400: '#3d5afe', - a700: '#304ffe' - }, - u = { - 50: '#e3f2fd', - 100: '#bbdefb', - 200: '#90caf9', - 300: '#64b5f6', - 400: '#42a5f5', - 500: '#2196f3', - 600: '#1e88e5', - 700: '#1976d2', - 800: '#1565c0', - 900: '#0d47a1', - a100: '#82b1ff', - a200: '#448aff', - a400: '#2979ff', - a700: '#2962ff' - }, - l = { - 50: '#e1f5fe', - 100: '#b3e5fc', - 200: '#81d4fa', - 300: '#4fc3f7', - 400: '#29b6f6', - 500: '#03a9f4', - 600: '#039be5', - 700: '#0288d1', - 800: '#0277bd', - 900: '#01579b', - a100: '#80d8ff', - a200: '#40c4ff', - a400: '#00b0ff', - a700: '#0091ea' - }, - c = { - 50: '#e0f7fa', - 100: '#b2ebf2', - 200: '#80deea', - 300: '#4dd0e1', - 400: '#26c6da', - 500: '#00bcd4', - 600: '#00acc1', - 700: '#0097a7', - 800: '#00838f', - 900: '#006064', - a100: '#84ffff', - a200: '#18ffff', - a400: '#00e5ff', - a700: '#00b8d4' - }, - f = { - 50: '#e0f2f1', - 100: '#b2dfdb', - 200: '#80cbc4', - 300: '#4db6ac', - 400: '#26a69a', - 500: '#009688', - 600: '#00897b', - 700: '#00796b', - 800: '#00695c', - 900: '#004d40', - a100: '#a7ffeb', - a200: '#64ffda', - a400: '#1de9b6', - a700: '#00bfa5' - }, - d = { - 50: '#e8f5e9', - 100: '#c8e6c9', - 200: '#a5d6a7', - 300: '#81c784', - 400: '#66bb6a', - 500: '#4caf50', - 600: '#43a047', - 700: '#388e3c', - 800: '#2e7d32', - 900: '#1b5e20', - a100: '#b9f6ca', - a200: '#69f0ae', - a400: '#00e676', - a700: '#00c853' - }, - h = { - 50: '#f1f8e9', - 100: '#dcedc8', - 200: '#c5e1a5', - 300: '#aed581', - 400: '#9ccc65', - 500: '#8bc34a', - 600: '#7cb342', - 700: '#689f38', - 800: '#558b2f', - 900: '#33691e', - a100: '#ccff90', - a200: '#b2ff59', - a400: '#76ff03', - a700: '#64dd17' - }, - p = { - 50: '#f9fbe7', - 100: '#f0f4c3', - 200: '#e6ee9c', - 300: '#dce775', - 400: '#d4e157', - 500: '#cddc39', - 600: '#c0ca33', - 700: '#afb42b', - 800: '#9e9d24', - 900: '#827717', - a100: '#f4ff81', - a200: '#eeff41', - a400: '#c6ff00', - a700: '#aeea00' - }, - g = { - 50: '#fffde7', - 100: '#fff9c4', - 200: '#fff59d', - 300: '#fff176', - 400: '#ffee58', - 500: '#ffeb3b', - 600: '#fdd835', - 700: '#fbc02d', - 800: '#f9a825', - 900: '#f57f17', - a100: '#ffff8d', - a200: '#ffff00', - a400: '#ffea00', - a700: '#ffd600' - }, - v = { - 50: '#fff8e1', - 100: '#ffecb3', - 200: '#ffe082', - 300: '#ffd54f', - 400: '#ffca28', - 500: '#ffc107', - 600: '#ffb300', - 700: '#ffa000', - 800: '#ff8f00', - 900: '#ff6f00', - a100: '#ffe57f', - a200: '#ffd740', - a400: '#ffc400', - a700: '#ffab00' - }, - m = { - 50: '#fff3e0', - 100: '#ffe0b2', - 200: '#ffcc80', - 300: '#ffb74d', - 400: '#ffa726', - 500: '#ff9800', - 600: '#fb8c00', - 700: '#f57c00', - 800: '#ef6c00', - 900: '#e65100', - a100: '#ffd180', - a200: '#ffab40', - a400: '#ff9100', - a700: '#ff6d00' - }, - y = { - 50: '#fbe9e7', - 100: '#ffccbc', - 200: '#ffab91', - 300: '#ff8a65', - 400: '#ff7043', - 500: '#ff5722', - 600: '#f4511e', - 700: '#e64a19', - 800: '#d84315', - 900: '#bf360c', - a100: '#ff9e80', - a200: '#ff6e40', - a400: '#ff3d00', - a700: '#dd2c00' - }, - b = { - 50: '#efebe9', - 100: '#d7ccc8', - 200: '#bcaaa4', - 300: '#a1887f', - 400: '#8d6e63', - 500: '#795548', - 600: '#6d4c41', - 700: '#5d4037', - 800: '#4e342e', - 900: '#3e2723' - }, - _ = { - 50: '#fafafa', - 100: '#f5f5f5', - 200: '#eeeeee', - 300: '#e0e0e0', - 400: '#bdbdbd', - 500: '#9e9e9e', - 600: '#757575', - 700: '#616161', - 800: '#424242', - 900: '#212121' - }, - x = { - 50: '#eceff1', - 100: '#cfd8dc', - 200: '#b0bec5', - 300: '#90a4ae', - 400: '#78909c', - 500: '#607d8b', - 600: '#546e7a', - 700: '#455a64', - 800: '#37474f', - 900: '#263238' - }, - w = { - primary: 'rgba(0, 0, 0, 0.87)', - secondary: 'rgba(0, 0, 0, 0.54)', - disabled: 'rgba(0, 0, 0, 0.38)', - dividers: 'rgba(0, 0, 0, 0.12)' - }, - S = { - primary: 'rgba(255, 255, 255, 1)', - secondary: 'rgba(255, 255, 255, 0.7)', - disabled: 'rgba(255, 255, 255, 0.5)', - dividers: 'rgba(255, 255, 255, 0.12)' - }, - E = { active: 'rgba(0, 0, 0, 0.54)', inactive: 'rgba(0, 0, 0, 0.38)' }, - k = { - active: 'rgba(255, 255, 255, 1)', - inactive: 'rgba(255, 255, 255, 0.5)' - }, - A = '#ffffff', - T = '#000000'; - e.default = { - red: r, - pink: i, - purple: o, - deepPurple: a, - indigo: s, - blue: u, - lightBlue: l, - cyan: c, - teal: f, - green: d, - lightGreen: h, - lime: p, - yellow: g, - amber: v, - orange: m, - deepOrange: y, - brown: b, - grey: _, - blueGrey: x, - darkText: w, - lightText: S, - darkIcons: E, - lightIcons: k, - white: A, - black: T - }; - }, - function(t, e, n) { - 'use strict'; - n.r(e), - n.d(e, 'version', function() { - return r; - }), - n.d(e, 'bisect', function() { - return l; - }), - n.d(e, 'bisectRight', function() { - return s; - }), - n.d(e, 'bisectLeft', function() { - return u; - }), - n.d(e, 'ascending', function() { - return i; - }), - n.d(e, 'bisector', function() { - return o; - }), - n.d(e, 'cross', function() { - return d; - }), - n.d(e, 'descending', function() { - return h; - }), - n.d(e, 'deviation', function() { - return v; - }), - n.d(e, 'extent', function() { - return m; - }), - n.d(e, 'histogram', function() { - return M; - }), - n.d(e, 'thresholdFreedmanDiaconis', function() { - return D; - }), - n.d(e, 'thresholdScott', function() { - return j; - }), - n.d(e, 'thresholdSturges', function() { - return P; - }), - n.d(e, 'max', function() { - return R; - }), - n.d(e, 'mean', function() { - return N; - }), - n.d(e, 'median', function() { - return z; - }), - n.d(e, 'merge', function() { - return I; - }), - n.d(e, 'min', function() { - return F; - }), - n.d(e, 'pairs', function() { - return c; - }), - n.d(e, 'permute', function() { - return V; - }), - n.d(e, 'quantile', function() { - return L; - }), - n.d(e, 'range', function() { - return S; - }), - n.d(e, 'scan', function() { - return B; - }), - n.d(e, 'shuffle', function() { - return G; - }), - n.d(e, 'sum', function() { - return H; - }), - n.d(e, 'ticks', function() { - return T; - }), - n.d(e, 'tickIncrement', function() { - return C; - }), - n.d(e, 'tickStep', function() { - return O; - }), - n.d(e, 'transpose', function() { - return U; - }), - n.d(e, 'variance', function() { - return g; - }), - n.d(e, 'zip', function() { - return W; - }), - n.d(e, 'axisTop', function() { - return et; - }), - n.d(e, 'axisRight', function() { - return nt; - }), - n.d(e, 'axisBottom', function() { - return rt; - }), - n.d(e, 'axisLeft', function() { - return it; - }), - n.d(e, 'brush', function() { - return Ai; - }), - n.d(e, 'brushX', function() { - return Ei; - }), - n.d(e, 'brushY', function() { - return ki; - }), - n.d(e, 'brushSelection', function() { - return Si; - }), - n.d(e, 'chord', function() { - return Ri; - }), - n.d(e, 'ribbon', function() { - return $i; - }), - n.d(e, 'nest', function() { - return Ji; - }), - n.d(e, 'set', function() { - return so; - }), - n.d(e, 'map', function() { - return Zi; - }), - n.d(e, 'keys', function() { - return uo; - }), - n.d(e, 'values', function() { - return lo; - }), - n.d(e, 'entries', function() { - return co; - }), - n.d(e, 'color', function() { - return Ue; - }), - n.d(e, 'rgb', function() { - return Ye; - }), - n.d(e, 'hsl', function() { - return en; - }), - n.d(e, 'lab', function() { - return vo; - }), - n.d(e, 'hcl', function() { - return Eo; - }), - n.d(e, 'lch', function() { - return So; - }), - n.d(e, 'gray', function() { - return go; - }), - n.d(e, 'cubehelix', function() { - return Lo; - }), - n.d(e, 'contours', function() { - return Go; - }), - n.d(e, 'contourDensity', function() { - return Yo; - }), - n.d(e, 'dispatch', function() { - return ft; - }), - n.d(e, 'drag', function() { - return ea; - }), - n.d(e, 'dragDisable', function() { - return Ae; - }), - n.d(e, 'dragEnable', function() { - return Te; - }), - n.d(e, 'dsvFormat', function() { - return ua; - }), - n.d(e, 'csvParse', function() { - return ca; - }), - n.d(e, 'csvParseRows', function() { - return fa; - }), - n.d(e, 'csvFormat', function() { - return da; - }), - n.d(e, 'csvFormatBody', function() { - return ha; - }), - n.d(e, 'csvFormatRows', function() { - return pa; - }), - n.d(e, 'csvFormatRow', function() { - return ga; - }), - n.d(e, 'csvFormatValue', function() { - return va; - }), - n.d(e, 'tsvParse', function() { - return ya; - }), - n.d(e, 'tsvParseRows', function() { - return ba; - }), - n.d(e, 'tsvFormat', function() { - return _a; - }), - n.d(e, 'tsvFormatBody', function() { - return xa; - }), - n.d(e, 'tsvFormatRows', function() { - return wa; - }), - n.d(e, 'tsvFormatRow', function() { - return Sa; - }), - n.d(e, 'tsvFormatValue', function() { - return Ea; - }), - n.d(e, 'autoType', function() { - return ka; - }), - n.d(e, 'easeLinear', function() { - return Ta; - }), - n.d(e, 'easeQuad', function() { - return Pa; - }), - n.d(e, 'easeQuadIn', function() { - return Ca; - }), - n.d(e, 'easeQuadOut', function() { - return Oa; - }), - n.d(e, 'easeQuadInOut', function() { - return Pa; - }), - n.d(e, 'easeCubic', function() { - return Xr; - }), - n.d(e, 'easeCubicIn', function() { - return qr; - }), - n.d(e, 'easeCubicOut', function() { - return Wr; - }), - n.d(e, 'easeCubicInOut', function() { - return Xr; - }), - n.d(e, 'easePoly', function() { - return Da; - }), - n.d(e, 'easePolyIn', function() { - return Ma; - }), - n.d(e, 'easePolyOut', function() { - return La; - }), - n.d(e, 'easePolyInOut', function() { - return Da; - }), - n.d(e, 'easeSin', function() { - return Ia; - }), - n.d(e, 'easeSinIn', function() { - return Na; - }), - n.d(e, 'easeSinOut', function() { - return za; - }), - n.d(e, 'easeSinInOut', function() { - return Ia; - }), - n.d(e, 'easeExp', function() { - return Ba; - }), - n.d(e, 'easeExpIn', function() { - return Fa; - }), - n.d(e, 'easeExpOut', function() { - return Va; - }), - n.d(e, 'easeExpInOut', function() { - return Ba; - }), - n.d(e, 'easeCircle', function() { - return Ua; - }), - n.d(e, 'easeCircleIn', function() { - return Ga; - }), - n.d(e, 'easeCircleOut', function() { - return Ha; - }), - n.d(e, 'easeCircleInOut', function() { - return Ua; - }), - n.d(e, 'easeBounce', function() { - return Wa; - }), - n.d(e, 'easeBounceIn', function() { - return qa; - }), - n.d(e, 'easeBounceOut', function() { - return Wa; - }), - n.d(e, 'easeBounceInOut', function() { - return Xa; - }), - n.d(e, 'easeBack', function() { - return Qa; - }), - n.d(e, 'easeBackIn', function() { - return Ya; - }), - n.d(e, 'easeBackOut', function() { - return $a; - }), - n.d(e, 'easeBackInOut', function() { - return Qa; - }), - n.d(e, 'easeElastic', function() { - return Ja; - }), - n.d(e, 'easeElasticIn', function() { - return Za; - }), - n.d(e, 'easeElasticOut', function() { - return Ja; - }), - n.d(e, 'easeElasticInOut', function() { - return ts; - }), - n.d(e, 'blob', function() { - return ns; - }), - n.d(e, 'buffer', function() { - return is; - }), - n.d(e, 'dsv', function() { - return us; - }), - n.d(e, 'csv', function() { - return ls; - }), - n.d(e, 'tsv', function() { - return cs; - }), - n.d(e, 'image', function() { - return fs; - }), - n.d(e, 'json', function() { - return hs; - }), - n.d(e, 'text', function() { - return as; - }), - n.d(e, 'xml', function() { - return gs; - }), - n.d(e, 'html', function() { - return vs; - }), - n.d(e, 'svg', function() { - return ms; - }), - n.d(e, 'forceCenter', function() { - return ys; - }), - n.d(e, 'forceCollide', function() { - return Ms; - }), - n.d(e, 'forceLink', function() { - return js; - }), - n.d(e, 'forceManyBody', function() { - return Fs; - }), - n.d(e, 'forceRadial', function() { - return Vs; - }), - n.d(e, 'forceSimulation', function() { - return Is; - }), - n.d(e, 'forceX', function() { - return Bs; - }), - n.d(e, 'forceY', function() { - return Gs; - }), - n.d(e, 'formatDefaultLocale', function() { - return iu; - }), - n.d(e, 'format', function() { - return Qs; - }), - n.d(e, 'formatPrefix', function() { - return Ks; - }), - n.d(e, 'formatLocale', function() { - return ru; - }), - n.d(e, 'formatSpecifier', function() { - return Ws; - }), - n.d(e, 'FormatSpecifier', function() { - return Xs; - }), - n.d(e, 'precisionFixed', function() { - return ou; - }), - n.d(e, 'precisionPrefix', function() { - return au; - }), - n.d(e, 'precisionRound', function() { - return su; - }), - n.d(e, 'geoArea', function() { - return Zu; - }), - n.d(e, 'geoBounds', function() { - return Ul; - }), - n.d(e, 'geoCentroid', function() { - return nc; - }), - n.d(e, 'geoCircle', function() { - return hc; - }), - n.d(e, 'geoClipAntimeridian', function() { - return kc; - }), - n.d(e, 'geoClipCircle', function() { - return Ac; - }), - n.d(e, 'geoClipExtent', function() { - return Mc; - }), - n.d(e, 'geoClipRectangle', function() { - return Tc; - }), - n.d(e, 'geoContains', function() { - return $c; - }), - n.d(e, 'geoDistance', function() { - return Vc; - }), - n.d(e, 'geoGraticule', function() { - return Zc; - }), - n.d(e, 'geoGraticule10', function() { - return Jc; - }), - n.d(e, 'geoInterpolate', function() { - return of; - }), - n.d(e, 'geoLength', function() { - return zc; - }), - n.d(e, 'geoPath', function() { - return rd; - }), - n.d(e, 'geoAlbers', function() { - return wd; - }), - n.d(e, 'geoAlbersUsa', function() { - return Sd; - }), - n.d(e, 'geoAzimuthalEqualArea', function() { - return Td; - }), - n.d(e, 'geoAzimuthalEqualAreaRaw', function() { - return Ad; - }), - n.d(e, 'geoAzimuthalEquidistant', function() { - return Od; - }), - n.d(e, 'geoAzimuthalEquidistantRaw', function() { - return Cd; - }), - n.d(e, 'geoConicConformal', function() { - return Rd; - }), - n.d(e, 'geoConicConformalRaw', function() { - return jd; - }), - n.d(e, 'geoConicEqualArea', function() { - return xd; - }), - n.d(e, 'geoConicEqualAreaRaw', function() { - return _d; - }), - n.d(e, 'geoConicEquidistant', function() { - return Fd; - }), - n.d(e, 'geoConicEquidistantRaw', function() { - return Id; - }), - n.d(e, 'geoEqualEarth', function() { - return Wd; - }), - n.d(e, 'geoEqualEarthRaw', function() { - return qd; - }), - n.d(e, 'geoEquirectangular', function() { - return zd; - }), - n.d(e, 'geoEquirectangularRaw', function() { - return Nd; - }), - n.d(e, 'geoGnomonic', function() { - return Yd; - }), - n.d(e, 'geoGnomonicRaw', function() { - return Xd; - }), - n.d(e, 'geoIdentity', function() { - return $d; - }), - n.d(e, 'geoProjection', function() { - return md; - }), - n.d(e, 'geoProjectionMutator', function() { - return yd; - }), - n.d(e, 'geoMercator', function() { - return Md; - }), - n.d(e, 'geoMercatorRaw', function() { - return Pd; - }), - n.d(e, 'geoNaturalEarth1', function() { - return Kd; - }), - n.d(e, 'geoNaturalEarth1Raw', function() { - return Qd; - }), - n.d(e, 'geoOrthographic', function() { - return Jd; - }), - n.d(e, 'geoOrthographicRaw', function() { - return Zd; - }), - n.d(e, 'geoStereographic', function() { - return eh; - }), - n.d(e, 'geoStereographicRaw', function() { - return th; - }), - n.d(e, 'geoTransverseMercator', function() { - return rh; - }), - n.d(e, 'geoTransverseMercatorRaw', function() { - return nh; - }), - n.d(e, 'geoRotation', function() { - return cc; - }), - n.d(e, 'geoStream', function() { - return Uu; - }), - n.d(e, 'geoTransform', function() { - return id; - }), - n.d(e, 'cluster', function() { - return sh; - }), - n.d(e, 'hierarchy', function() { - return lh; - }), - n.d(e, 'pack', function() { - return jh; - }), - n.d(e, 'packSiblings', function() { - return Ch; - }), - n.d(e, 'packEnclose', function() { - return gh; - }), - n.d(e, 'partition', function() { - return Vh; - }), - n.d(e, 'stratify', function() { - return qh; - }), - n.d(e, 'tree', function() { - return Zh; - }), - n.d(e, 'treemap', function() { - return rp; - }), - n.d(e, 'treemapBinary', function() { - return ip; - }), - n.d(e, 'treemapDice', function() { - return Fh; - }), - n.d(e, 'treemapSlice', function() { - return Jh; - }), - n.d(e, 'treemapSliceDice', function() { - return op; - }), - n.d(e, 'treemapSquarify', function() { - return np; - }), - n.d(e, 'treemapResquarify', function() { - return ap; - }), - n.d(e, 'interpolate', function() { - return On; - }), - n.d(e, 'interpolateArray', function() { - return bn; - }), - n.d(e, 'interpolateBasis', function() { - return an; - }), - n.d(e, 'interpolateBasisClosed', function() { - return sn; - }), - n.d(e, 'interpolateDate', function() { - return xn; - }), - n.d(e, 'interpolateDiscrete', function() { - return sp; - }), - n.d(e, 'interpolateHue', function() { - return up; - }), - n.d(e, 'interpolateNumber', function() { - return wn; - }), - n.d(e, 'interpolateNumberArray', function() { - return mn; - }), - n.d(e, 'interpolateObject', function() { - return Sn; - }), - n.d(e, 'interpolateRound', function() { - return lp; - }), - n.d(e, 'interpolateString', function() { - return Cn; - }), - n.d(e, 'interpolateTransformCss', function() { - return dr; - }), - n.d(e, 'interpolateTransformSvg', function() { - return hr; - }), - n.d(e, 'interpolateZoom', function() { - return dp; - }), - n.d(e, 'interpolateRgb', function() { - return hn; - }), - n.d(e, 'interpolateRgbBasis', function() { - return gn; - }), - n.d(e, 'interpolateRgbBasisClosed', function() { - return vn; - }), - n.d(e, 'interpolateHsl', function() { - return pp; - }), - n.d(e, 'interpolateHslLong', function() { - return gp; - }), - n.d(e, 'interpolateLab', function() { - return vp; - }), - n.d(e, 'interpolateHcl', function() { - return yp; - }), - n.d(e, 'interpolateHclLong', function() { - return bp; - }), - n.d(e, 'interpolateCubehelix', function() { - return xp; - }), - n.d(e, 'interpolateCubehelixLong', function() { - return wp; - }), - n.d(e, 'piecewise', function() { - return Sp; - }), - n.d(e, 'quantize', function() { - return Ep; - }), - n.d(e, 'path', function() { - return Hi; - }), - n.d(e, 'polygonArea', function() { - return kp; - }), - n.d(e, 'polygonCentroid', function() { - return Ap; - }), - n.d(e, 'polygonHull', function() { - return Op; - }), - n.d(e, 'polygonContains', function() { - return Pp; - }), - n.d(e, 'polygonLength', function() { - return Mp; - }), - n.d(e, 'quadtree', function() { - return ks; - }), - n.d(e, 'randomUniform', function() { - return Dp; - }), - n.d(e, 'randomNormal', function() { - return jp; - }), - n.d(e, 'randomLogNormal', function() { - return Rp; - }), - n.d(e, 'randomBates', function() { - return zp; - }), - n.d(e, 'randomIrwinHall', function() { - return Np; - }), - n.d(e, 'randomExponential', function() { - return Ip; - }), - n.d(e, 'scaleBand', function() { - return Wp; - }), - n.d(e, 'scalePoint', function() { - return Yp; - }), - n.d(e, 'scaleIdentity', function() { - return ug; - }), - n.d(e, 'scaleLinear', function() { - return sg; - }), - n.d(e, 'scaleLog', function() { - return mg; - }), - n.d(e, 'scaleSymlog', function() { - return xg; - }), - n.d(e, 'scaleOrdinal', function() { - return qp; - }), - n.d(e, 'scaleImplicit', function() { - return Up; - }), - n.d(e, 'scalePow', function() { - return Ag; - }), - n.d(e, 'scaleSqrt', function() { - return Tg; - }), - n.d(e, 'scaleQuantile', function() { - return Cg; - }), - n.d(e, 'scaleQuantize', function() { - return Og; - }), - n.d(e, 'scaleThreshold', function() { - return Pg; - }), - n.d(e, 'scaleTime', function() { - return sy; - }), - n.d(e, 'scaleUtc', function() { - return my; - }), - n.d(e, 'scaleSequential', function() { - return _y; - }), - n.d(e, 'scaleSequentialLog', function() { - return xy; - }), - n.d(e, 'scaleSequentialPow', function() { - return Sy; - }), - n.d(e, 'scaleSequentialSqrt', function() { - return Ey; - }), - n.d(e, 'scaleSequentialSymlog', function() { - return wy; - }), - n.d(e, 'scaleSequentialQuantile', function() { - return ky; - }), - n.d(e, 'scaleDiverging', function() { - return Ty; - }), - n.d(e, 'scaleDivergingLog', function() { - return Cy; - }), - n.d(e, 'scaleDivergingPow', function() { - return Py; - }), - n.d(e, 'scaleDivergingSqrt', function() { - return My; - }), - n.d(e, 'scaleDivergingSymlog', function() { - return Oy; - }), - n.d(e, 'tickFormat', function() { - return og; - }), - n.d(e, 'schemeCategory10', function() { - return Dy; - }), - n.d(e, 'schemeAccent', function() { - return jy; - }), - n.d(e, 'schemeDark2', function() { - return Ry; - }), - n.d(e, 'schemePaired', function() { - return Ny; - }), - n.d(e, 'schemePastel1', function() { - return zy; - }), - n.d(e, 'schemePastel2', function() { - return Iy; - }), - n.d(e, 'schemeSet1', function() { - return Fy; - }), - n.d(e, 'schemeSet2', function() { - return Vy; - }), - n.d(e, 'schemeSet3', function() { - return By; - }), - n.d(e, 'schemeTableau10', function() { - return Gy; - }), - n.d(e, 'interpolateBrBG', function() { - return qy; - }), - n.d(e, 'schemeBrBG', function() { - return Uy; - }), - n.d(e, 'interpolatePRGn', function() { - return Xy; - }), - n.d(e, 'schemePRGn', function() { - return Wy; - }), - n.d(e, 'interpolatePiYG', function() { - return $y; - }), - n.d(e, 'schemePiYG', function() { - return Yy; - }), - n.d(e, 'interpolatePuOr', function() { - return Ky; - }), - n.d(e, 'schemePuOr', function() { - return Qy; - }), - n.d(e, 'interpolateRdBu', function() { - return Jy; - }), - n.d(e, 'schemeRdBu', function() { - return Zy; - }), - n.d(e, 'interpolateRdGy', function() { - return eb; - }), - n.d(e, 'schemeRdGy', function() { - return tb; - }), - n.d(e, 'interpolateRdYlBu', function() { - return rb; - }), - n.d(e, 'schemeRdYlBu', function() { - return nb; - }), - n.d(e, 'interpolateRdYlGn', function() { - return ob; - }), - n.d(e, 'schemeRdYlGn', function() { - return ib; - }), - n.d(e, 'interpolateSpectral', function() { - return sb; - }), - n.d(e, 'schemeSpectral', function() { - return ab; - }), - n.d(e, 'interpolateBuGn', function() { - return lb; - }), - n.d(e, 'schemeBuGn', function() { - return ub; - }), - n.d(e, 'interpolateBuPu', function() { - return fb; - }), - n.d(e, 'schemeBuPu', function() { - return cb; - }), - n.d(e, 'interpolateGnBu', function() { - return hb; - }), - n.d(e, 'schemeGnBu', function() { - return db; - }), - n.d(e, 'interpolateOrRd', function() { - return gb; - }), - n.d(e, 'schemeOrRd', function() { - return pb; - }), - n.d(e, 'interpolatePuBuGn', function() { - return mb; - }), - n.d(e, 'schemePuBuGn', function() { - return vb; - }), - n.d(e, 'interpolatePuBu', function() { - return bb; - }), - n.d(e, 'schemePuBu', function() { - return yb; - }), - n.d(e, 'interpolatePuRd', function() { - return xb; - }), - n.d(e, 'schemePuRd', function() { - return _b; - }), - n.d(e, 'interpolateRdPu', function() { - return Sb; - }), - n.d(e, 'schemeRdPu', function() { - return wb; - }), - n.d(e, 'interpolateYlGnBu', function() { - return kb; - }), - n.d(e, 'schemeYlGnBu', function() { - return Eb; - }), - n.d(e, 'interpolateYlGn', function() { - return Tb; - }), - n.d(e, 'schemeYlGn', function() { - return Ab; - }), - n.d(e, 'interpolateYlOrBr', function() { - return Ob; - }), - n.d(e, 'schemeYlOrBr', function() { - return Cb; - }), - n.d(e, 'interpolateYlOrRd', function() { - return Mb; - }), - n.d(e, 'schemeYlOrRd', function() { - return Pb; - }), - n.d(e, 'interpolateBlues', function() { - return Db; - }), - n.d(e, 'schemeBlues', function() { - return Lb; - }), - n.d(e, 'interpolateGreens', function() { - return Rb; - }), - n.d(e, 'schemeGreens', function() { - return jb; - }), - n.d(e, 'interpolateGreys', function() { - return zb; - }), - n.d(e, 'schemeGreys', function() { - return Nb; - }), - n.d(e, 'interpolatePurples', function() { - return Fb; - }), - n.d(e, 'schemePurples', function() { - return Ib; - }), - n.d(e, 'interpolateReds', function() { - return Bb; - }), - n.d(e, 'schemeReds', function() { - return Vb; - }), - n.d(e, 'interpolateOranges', function() { - return Hb; - }), - n.d(e, 'schemeOranges', function() { - return Gb; - }), - n.d(e, 'interpolateCividis', function() { - return Ub; - }), - n.d(e, 'interpolateCubehelixDefault', function() { - return qb; - }), - n.d(e, 'interpolateRainbow', function() { - return $b; - }), - n.d(e, 'interpolateWarm', function() { - return Wb; - }), - n.d(e, 'interpolateCool', function() { - return Xb; - }), - n.d(e, 'interpolateSinebow', function() { - return Jb; - }), - n.d(e, 'interpolateTurbo', function() { - return t_; - }), - n.d(e, 'interpolateViridis', function() { - return n_; - }), - n.d(e, 'interpolateMagma', function() { - return r_; - }), - n.d(e, 'interpolateInferno', function() { - return i_; - }), - n.d(e, 'interpolatePlasma', function() { - return o_; - }), - n.d(e, 'create', function() { - return a_; - }), - n.d(e, 'creator', function() { - return re; - }), - n.d(e, 'local', function() { - return u_; - }), - n.d(e, 'matcher', function() { - return vt; - }), - n.d(e, 'mouse', function() { - return Dn; - }), - n.d(e, 'namespace', function() { - return Et; - }), - n.d(e, 'namespaces', function() { - return St; - }), - n.d(e, 'clientPoint', function() { - return Mn; - }), - n.d(e, 'select', function() { - return Se; - }), - n.d(e, 'selectAll', function() { - return c_; - }), - n.d(e, 'selection', function() { - return we; - }), - n.d(e, 'selector', function() { - return ht; - }), - n.d(e, 'selectorAll', function() { - return gt; - }), - n.d(e, 'style', function() { - return Rt; - }), - n.d(e, 'touch', function() { - return Ln; - }), - n.d(e, 'touches', function() { - return f_; - }), - n.d(e, 'window', function() { - return Mt; - }), - n.d(e, 'event', function() { - return le; - }), - n.d(e, 'customEvent', function() { - return ge; - }), - n.d(e, 'arc', function() { - return L_; - }), - n.d(e, 'area', function() { - return I_; - }), - n.d(e, 'line', function() { - return z_; - }), - n.d(e, 'pie', function() { - return B_; - }), - n.d(e, 'areaRadial', function() { - return X_; - }), - n.d(e, 'radialArea', function() { - return X_; - }), - n.d(e, 'lineRadial', function() { - return W_; - }), - n.d(e, 'radialLine', function() { - return W_; - }), - n.d(e, 'pointRadial', function() { - return Y_; - }), - n.d(e, 'linkHorizontal', function() { - return nx; - }), - n.d(e, 'linkVertical', function() { - return rx; - }), - n.d(e, 'linkRadial', function() { - return ix; - }), - n.d(e, 'symbol', function() { - return wx; - }), - n.d(e, 'symbols', function() { - return xx; - }), - n.d(e, 'symbolCircle', function() { - return ox; - }), - n.d(e, 'symbolCross', function() { - return ax; - }), - n.d(e, 'symbolDiamond', function() { - return lx; - }), - n.d(e, 'symbolSquare', function() { - return px; - }), - n.d(e, 'symbolStar', function() { - return hx; - }), - n.d(e, 'symbolTriangle', function() { - return vx; - }), - n.d(e, 'symbolWye', function() { - return _x; - }), - n.d(e, 'curveBasisClosed', function() { - return Cx; - }), - n.d(e, 'curveBasisOpen', function() { - return Px; - }), - n.d(e, 'curveBasis', function() { - return Ax; - }), - n.d(e, 'curveBundle', function() { - return Lx; - }), - n.d(e, 'curveCardinalClosed', function() { - return zx; - }), - n.d(e, 'curveCardinalOpen', function() { - return Fx; - }), - n.d(e, 'curveCardinal', function() { - return Rx; - }), - n.d(e, 'curveCatmullRomClosed', function() { - return Ux; - }), - n.d(e, 'curveCatmullRomOpen', function() { - return Wx; - }), - n.d(e, 'curveCatmullRom', function() { - return Gx; - }), - n.d(e, 'curveLinearClosed', function() { - return Yx; - }), - n.d(e, 'curveLinear', function() { - return j_; - }), - n.d(e, 'curveMonotoneX', function() { - return nw; - }), - n.d(e, 'curveMonotoneY', function() { - return rw; - }), - n.d(e, 'curveNatural', function() { - return aw; - }), - n.d(e, 'curveStep', function() { - return uw; - }), - n.d(e, 'curveStepAfter', function() { - return cw; - }), - n.d(e, 'curveStepBefore', function() { - return lw; - }), - n.d(e, 'stack', function() { - return pw; - }), - n.d(e, 'stackOffsetExpand', function() { - return gw; - }), - n.d(e, 'stackOffsetDiverging', function() { - return vw; - }), - n.d(e, 'stackOffsetNone', function() { - return fw; - }), - n.d(e, 'stackOffsetSilhouette', function() { - return mw; - }), - n.d(e, 'stackOffsetWiggle', function() { - return yw; - }), - n.d(e, 'stackOrderAppearance', function() { - return bw; - }), - n.d(e, 'stackOrderAscending', function() { - return xw; - }), - n.d(e, 'stackOrderDescending', function() { - return Sw; - }), - n.d(e, 'stackOrderInsideOut', function() { - return Ew; - }), - n.d(e, 'stackOrderNone', function() { - return dw; - }), - n.d(e, 'stackOrderReverse', function() { - return kw; - }), - n.d(e, 'timeInterval', function() { - return Dg; - }), - n.d(e, 'timeMillisecond', function() { - return pv; - }), - n.d(e, 'timeMilliseconds', function() { - return gv; - }), - n.d(e, 'utcMillisecond', function() { - return pv; - }), - n.d(e, 'utcMilliseconds', function() { - return gv; - }), - n.d(e, 'timeSecond', function() { - return fv; - }), - n.d(e, 'timeSeconds', function() { - return dv; - }), - n.d(e, 'utcSecond', function() { - return fv; - }), - n.d(e, 'utcSeconds', function() { - return dv; - }), - n.d(e, 'timeMinute', function() { - return uv; - }), - n.d(e, 'timeMinutes', function() { - return lv; - }), - n.d(e, 'timeHour', function() { - return ov; - }), - n.d(e, 'timeHours', function() { - return av; - }), - n.d(e, 'timeDay', function() { - return nv; - }), - n.d(e, 'timeDays', function() { - return rv; - }), - n.d(e, 'timeWeek', function() { - return Bg; - }), - n.d(e, 'timeWeeks', function() { - return Yg; - }), - n.d(e, 'timeSunday', function() { - return Bg; - }), - n.d(e, 'timeSundays', function() { - return Yg; - }), - n.d(e, 'timeMonday', function() { - return Gg; - }), - n.d(e, 'timeMondays', function() { - return $g; - }), - n.d(e, 'timeTuesday', function() { - return Hg; - }), - n.d(e, 'timeTuesdays', function() { - return Qg; - }), - n.d(e, 'timeWednesday', function() { - return Ug; - }), - n.d(e, 'timeWednesdays', function() { - return Kg; - }), - n.d(e, 'timeThursday', function() { - return qg; - }), - n.d(e, 'timeThursdays', function() { - return Zg; - }), - n.d(e, 'timeFriday', function() { - return Wg; - }), - n.d(e, 'timeFridays', function() { - return Jg; - }), - n.d(e, 'timeSaturday', function() { - return Xg; - }), - n.d(e, 'timeSaturdays', function() { - return tv; - }), - n.d(e, 'timeMonth', function() { - return Ig; - }), - n.d(e, 'timeMonths', function() { - return Fg; - }), - n.d(e, 'timeYear', function() { - return Rg; - }), - n.d(e, 'timeYears', function() { - return Ng; - }), - n.d(e, 'utcMinute', function() { - return gy; - }), - n.d(e, 'utcMinutes', function() { - return vy; - }), - n.d(e, 'utcHour', function() { - return dy; - }), - n.d(e, 'utcHours', function() { - return hy; - }), - n.d(e, 'utcDay', function() { - return Lv; - }), - n.d(e, 'utcDays', function() { - return Dv; - }), - n.d(e, 'utcWeek', function() { - return mv; - }), - n.d(e, 'utcWeeks', function() { - return Ev; - }), - n.d(e, 'utcSunday', function() { - return mv; - }), - n.d(e, 'utcSundays', function() { - return Ev; - }), - n.d(e, 'utcMonday', function() { - return yv; - }), - n.d(e, 'utcMondays', function() { - return kv; - }), - n.d(e, 'utcTuesday', function() { - return bv; - }), - n.d(e, 'utcTuesdays', function() { - return Av; - }), - n.d(e, 'utcWednesday', function() { - return _v; - }), - n.d(e, 'utcWednesdays', function() { - return Tv; - }), - n.d(e, 'utcThursday', function() { - return xv; - }), - n.d(e, 'utcThursdays', function() { - return Cv; - }), - n.d(e, 'utcFriday', function() { - return wv; - }), - n.d(e, 'utcFridays', function() { - return Ov; - }), - n.d(e, 'utcSaturday', function() { - return Sv; - }), - n.d(e, 'utcSaturdays', function() { - return Pv; - }), - n.d(e, 'utcMonth', function() { - return ly; - }), - n.d(e, 'utcMonths', function() { - return cy; - }), - n.d(e, 'utcYear', function() { - return Rv; - }), - n.d(e, 'utcYears', function() { - return Nv; - }), - n.d(e, 'timeFormatDefaultLocale', function() { - return ry; - }), - n.d(e, 'timeFormat', function() { - return Gv; - }), - n.d(e, 'timeParse', function() { - return Hv; - }), - n.d(e, 'utcFormat', function() { - return Uv; - }), - n.d(e, 'utcParse', function() { - return qv; - }), - n.d(e, 'timeFormatLocale', function() { - return Vv; - }), - n.d(e, 'isoFormat', function() { - return Aw; - }), - n.d(e, 'isoParse', function() { - return Tw; - }), - n.d(e, 'now', function() { - return Gn; - }), - n.d(e, 'timer', function() { - return qn; - }), - n.d(e, 'timerFlush', function() { - return Wn; - }), - n.d(e, 'timeout', function() { - return Qn; - }), - n.d(e, 'interval', function() { - return Cw; - }), - n.d(e, 'transition', function() { - return Gr; - }), - n.d(e, 'active', function() { - return Kr; - }), - n.d(e, 'interrupt', function() { - return sr; - }), - n.d(e, 'voronoi', function() { - return hS; - }), - n.d(e, 'zoom', function() { - return TS; - }), - n.d(e, 'zoomTransform', function() { - return yS; - }), - n.d(e, 'zoomIdentity', function() { - return mS; - }); - var r = '5.16.0', - i = function(t, e) { - return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; - }, - o = function(t) { - var e; - return ( - 1 === t.length && - ((e = t), - (t = function(t, n) { - return i(e(t), n); - })), - { - left: function(e, n, r, i) { - for ( - null == r && (r = 0), null == i && (i = e.length); - r < i; - - ) { - var o = (r + i) >>> 1; - t(e[o], n) < 0 ? (r = o + 1) : (i = o); - } - return r; - }, - right: function(e, n, r, i) { - for ( - null == r && (r = 0), null == i && (i = e.length); - r < i; - - ) { - var o = (r + i) >>> 1; - t(e[o], n) > 0 ? (i = o) : (r = o + 1); - } - return r; - } - } - ); - }; - var a = o(i), - s = a.right, - u = a.left, - l = s, - c = function(t, e) { - null == e && (e = f); - for ( - var n = 0, r = t.length - 1, i = t[0], o = new Array(r < 0 ? 0 : r); - n < r; - - ) - o[n] = e(i, (i = t[++n])); - return o; - }; - function f(t, e) { - return [t, e]; - } - var d = function(t, e, n) { - var r, - i, - o, - a, - s = t.length, - u = e.length, - l = new Array(s * u); - for (null == n && (n = f), r = o = 0; r < s; ++r) - for (a = t[r], i = 0; i < u; ++i, ++o) l[o] = n(a, e[i]); - return l; - }, - h = function(t, e) { - return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN; - }, - p = function(t) { - return null === t ? NaN : +t; - }, - g = function(t, e) { - var n, - r, - i = t.length, - o = 0, - a = -1, - s = 0, - u = 0; - if (null == e) - for (; ++a < i; ) - isNaN((n = p(t[a]))) || (u += (r = n - s) * (n - (s += r / ++o))); - else - for (; ++a < i; ) - isNaN((n = p(e(t[a], a, t)))) || - (u += (r = n - s) * (n - (s += r / ++o))); - if (o > 1) return u / (o - 1); - }, - v = function(t, e) { - var n = g(t, e); - return n ? Math.sqrt(n) : n; - }, - m = function(t, e) { - var n, - r, - i, - o = t.length, - a = -1; - if (null == e) { - for (; ++a < o; ) - if (null != (n = t[a]) && n >= n) - for (r = i = n; ++a < o; ) - null != (n = t[a]) && (r > n && (r = n), i < n && (i = n)); - } else - for (; ++a < o; ) - if (null != (n = e(t[a], a, t)) && n >= n) - for (r = i = n; ++a < o; ) - null != (n = e(t[a], a, t)) && - (r > n && (r = n), i < n && (i = n)); - return [r, i]; - }, - y = Array.prototype, - b = y.slice, - _ = y.map, - x = function(t) { - return function() { - return t; - }; - }, - w = function(t) { - return t; - }, - S = function(t, e, n) { - (t = +t), - (e = +e), - (n = - (i = arguments.length) < 2 - ? ((e = t), (t = 0), 1) - : i < 3 - ? 1 - : +n); - for ( - var r = -1, - i = 0 | Math.max(0, Math.ceil((e - t) / n)), - o = new Array(i); - ++r < i; - - ) - o[r] = t + r * n; - return o; - }, - E = Math.sqrt(50), - k = Math.sqrt(10), - A = Math.sqrt(2), - T = function(t, e, n) { - var r, - i, - o, - a, - s = -1; - if (((n = +n), (t = +t) === (e = +e) && n > 0)) return [t]; - if ( - ((r = e < t) && ((i = t), (t = e), (e = i)), - 0 === (a = C(t, e, n)) || !isFinite(a)) - ) - return []; - if (a > 0) - for ( - t = Math.ceil(t / a), - e = Math.floor(e / a), - o = new Array((i = Math.ceil(e - t + 1))); - ++s < i; - - ) - o[s] = (t + s) * a; - else - for ( - t = Math.floor(t * a), - e = Math.ceil(e * a), - o = new Array((i = Math.ceil(t - e + 1))); - ++s < i; - - ) - o[s] = (t - s) / a; - return r && o.reverse(), o; - }; - function C(t, e, n) { - var r = (e - t) / Math.max(0, n), - i = Math.floor(Math.log(r) / Math.LN10), - o = r / Math.pow(10, i); - return i >= 0 - ? (o >= E ? 10 : o >= k ? 5 : o >= A ? 2 : 1) * Math.pow(10, i) - : -Math.pow(10, -i) / (o >= E ? 10 : o >= k ? 5 : o >= A ? 2 : 1); - } - function O(t, e, n) { - var r = Math.abs(e - t) / Math.max(0, n), - i = Math.pow(10, Math.floor(Math.log(r) / Math.LN10)), - o = r / i; - return ( - o >= E ? (i *= 10) : o >= k ? (i *= 5) : o >= A && (i *= 2), - e < t ? -i : i - ); - } - var P = function(t) { - return Math.ceil(Math.log(t.length) / Math.LN2) + 1; - }, - M = function() { - var t = w, - e = m, - n = P; - function r(r) { - var i, - o, - a = r.length, - s = new Array(a); - for (i = 0; i < a; ++i) s[i] = t(r[i], i, r); - var u = e(s), - c = u[0], - f = u[1], - d = n(s, c, f); - Array.isArray(d) || - ((d = O(c, f, d)), (d = S(Math.ceil(c / d) * d, f, d))); - for (var h = d.length; d[0] <= c; ) d.shift(), --h; - for (; d[h - 1] > f; ) d.pop(), --h; - var p, - g = new Array(h + 1); - for (i = 0; i <= h; ++i) - ((p = g[i] = []).x0 = i > 0 ? d[i - 1] : c), - (p.x1 = i < h ? d[i] : f); - for (i = 0; i < a; ++i) - c <= (o = s[i]) && o <= f && g[l(d, o, 0, h)].push(r[i]); - return g; - } - return ( - (r.value = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : x(e)), r) - : t; - }), - (r.domain = function(t) { - return arguments.length - ? ((e = 'function' == typeof t ? t : x([t[0], t[1]])), r) - : e; - }), - (r.thresholds = function(t) { - return arguments.length - ? ((n = - 'function' == typeof t - ? t - : Array.isArray(t) - ? x(b.call(t)) - : x(t)), - r) - : n; - }), - r - ); - }, - L = function(t, e, n) { - if ((null == n && (n = p), (r = t.length))) { - if ((e = +e) <= 0 || r < 2) return +n(t[0], 0, t); - if (e >= 1) return +n(t[r - 1], r - 1, t); - var r, - i = (r - 1) * e, - o = Math.floor(i), - a = +n(t[o], o, t); - return a + (+n(t[o + 1], o + 1, t) - a) * (i - o); - } - }, - D = function(t, e, n) { - return ( - (t = _.call(t, p).sort(i)), - Math.ceil( - (n - e) / - (2 * (L(t, 0.75) - L(t, 0.25)) * Math.pow(t.length, -1 / 3)) - ) - ); - }, - j = function(t, e, n) { - return Math.ceil((n - e) / (3.5 * v(t) * Math.pow(t.length, -1 / 3))); - }, - R = function(t, e) { - var n, - r, - i = t.length, - o = -1; - if (null == e) { - for (; ++o < i; ) - if (null != (n = t[o]) && n >= n) - for (r = n; ++o < i; ) null != (n = t[o]) && n > r && (r = n); - } else - for (; ++o < i; ) - if (null != (n = e(t[o], o, t)) && n >= n) - for (r = n; ++o < i; ) - null != (n = e(t[o], o, t)) && n > r && (r = n); - return r; - }, - N = function(t, e) { - var n, - r = t.length, - i = r, - o = -1, - a = 0; - if (null == e) - for (; ++o < r; ) isNaN((n = p(t[o]))) ? --i : (a += n); - else for (; ++o < r; ) isNaN((n = p(e(t[o], o, t)))) ? --i : (a += n); - if (i) return a / i; - }, - z = function(t, e) { - var n, - r = t.length, - o = -1, - a = []; - if (null == e) for (; ++o < r; ) isNaN((n = p(t[o]))) || a.push(n); - else for (; ++o < r; ) isNaN((n = p(e(t[o], o, t)))) || a.push(n); - return L(a.sort(i), 0.5); - }, - I = function(t) { - for (var e, n, r, i = t.length, o = -1, a = 0; ++o < i; ) - a += t[o].length; - for (n = new Array(a); --i >= 0; ) - for (e = (r = t[i]).length; --e >= 0; ) n[--a] = r[e]; - return n; - }, - F = function(t, e) { - var n, - r, - i = t.length, - o = -1; - if (null == e) { - for (; ++o < i; ) - if (null != (n = t[o]) && n >= n) - for (r = n; ++o < i; ) null != (n = t[o]) && r > n && (r = n); - } else - for (; ++o < i; ) - if (null != (n = e(t[o], o, t)) && n >= n) - for (r = n; ++o < i; ) - null != (n = e(t[o], o, t)) && r > n && (r = n); - return r; - }, - V = function(t, e) { - for (var n = e.length, r = new Array(n); n--; ) r[n] = t[e[n]]; - return r; - }, - B = function(t, e) { - if ((n = t.length)) { - var n, - r, - o = 0, - a = 0, - s = t[a]; - for (null == e && (e = i); ++o < n; ) - (e((r = t[o]), s) < 0 || 0 !== e(s, s)) && ((s = r), (a = o)); - return 0 === e(s, s) ? a : void 0; - } - }, - G = function(t, e, n) { - for ( - var r, i, o = (null == n ? t.length : n) - (e = null == e ? 0 : +e); - o; - - ) - (i = (Math.random() * o--) | 0), - (r = t[o + e]), - (t[o + e] = t[i + e]), - (t[i + e] = r); - return t; - }, - H = function(t, e) { - var n, - r = t.length, - i = -1, - o = 0; - if (null == e) for (; ++i < r; ) (n = +t[i]) && (o += n); - else for (; ++i < r; ) (n = +e(t[i], i, t)) && (o += n); - return o; - }, - U = function(t) { - if (!(i = t.length)) return []; - for (var e = -1, n = F(t, q), r = new Array(n); ++e < n; ) - for (var i, o = -1, a = (r[e] = new Array(i)); ++o < i; ) - a[o] = t[o][e]; - return r; - }; - function q(t) { - return t.length; - } - var W = function() { - return U(arguments); - }, - X = Array.prototype.slice, - Y = function(t) { - return t; - }; - function $(t) { - return 'translate(' + (t + 0.5) + ',0)'; - } - function Q(t) { - return 'translate(0,' + (t + 0.5) + ')'; - } - function K(t) { - return function(e) { - return +t(e); - }; - } - function Z(t) { - var e = Math.max(0, t.bandwidth() - 1) / 2; - return ( - t.round() && (e = Math.round(e)), - function(n) { - return +t(n) + e; - } - ); - } - function J() { - return !this.__axis; - } - function tt(t, e) { - var n = [], - r = null, - i = null, - o = 6, - a = 6, - s = 3, - u = 1 === t || 4 === t ? -1 : 1, - l = 4 === t || 2 === t ? 'x' : 'y', - c = 1 === t || 3 === t ? $ : Q; - function f(f) { - var d = null == r ? (e.ticks ? e.ticks.apply(e, n) : e.domain()) : r, - h = null == i ? (e.tickFormat ? e.tickFormat.apply(e, n) : Y) : i, - p = Math.max(o, 0) + s, - g = e.range(), - v = +g[0] + 0.5, - m = +g[g.length - 1] + 0.5, - y = (e.bandwidth ? Z : K)(e.copy()), - b = f.selection ? f.selection() : f, - _ = b.selectAll('.domain').data([null]), - x = b - .selectAll('.tick') - .data(d, e) - .order(), - w = x.exit(), - S = x - .enter() - .append('g') - .attr('class', 'tick'), - E = x.select('line'), - k = x.select('text'); - (_ = _.merge( - _.enter() - .insert('path', '.tick') - .attr('class', 'domain') - .attr('stroke', 'currentColor') - )), - (x = x.merge(S)), - (E = E.merge( - S.append('line') - .attr('stroke', 'currentColor') - .attr(l + '2', u * o) - )), - (k = k.merge( - S.append('text') - .attr('fill', 'currentColor') - .attr(l, u * p) - .attr('dy', 1 === t ? '0em' : 3 === t ? '0.71em' : '0.32em') - )), - f !== b && - ((_ = _.transition(f)), - (x = x.transition(f)), - (E = E.transition(f)), - (k = k.transition(f)), - (w = w - .transition(f) - .attr('opacity', 1e-6) - .attr('transform', function(t) { - return isFinite((t = y(t))) - ? c(t) - : this.getAttribute('transform'); - })), - S.attr('opacity', 1e-6).attr('transform', function(t) { - var e = this.parentNode.__axis; - return c(e && isFinite((e = e(t))) ? e : y(t)); - })), - w.remove(), - _.attr( - 'd', - 4 === t || 2 == t - ? a - ? 'M' + u * a + ',' + v + 'H0.5V' + m + 'H' + u * a - : 'M0.5,' + v + 'V' + m - : a - ? 'M' + v + ',' + u * a + 'V0.5H' + m + 'V' + u * a - : 'M' + v + ',0.5H' + m - ), - x.attr('opacity', 1).attr('transform', function(t) { - return c(y(t)); - }), - E.attr(l + '2', u * o), - k.attr(l, u * p).text(h), - b - .filter(J) - .attr('fill', 'none') - .attr('font-size', 10) - .attr('font-family', 'sans-serif') - .attr( - 'text-anchor', - 2 === t ? 'start' : 4 === t ? 'end' : 'middle' - ), - b.each(function() { - this.__axis = y; - }); - } - return ( - (f.scale = function(t) { - return arguments.length ? ((e = t), f) : e; - }), - (f.ticks = function() { - return (n = X.call(arguments)), f; - }), - (f.tickArguments = function(t) { - return arguments.length - ? ((n = null == t ? [] : X.call(t)), f) - : n.slice(); - }), - (f.tickValues = function(t) { - return arguments.length - ? ((r = null == t ? null : X.call(t)), f) - : r && r.slice(); - }), - (f.tickFormat = function(t) { - return arguments.length ? ((i = t), f) : i; - }), - (f.tickSize = function(t) { - return arguments.length ? ((o = a = +t), f) : o; - }), - (f.tickSizeInner = function(t) { - return arguments.length ? ((o = +t), f) : o; - }), - (f.tickSizeOuter = function(t) { - return arguments.length ? ((a = +t), f) : a; - }), - (f.tickPadding = function(t) { - return arguments.length ? ((s = +t), f) : s; - }), - f - ); - } - function et(t) { - return tt(1, t); - } - function nt(t) { - return tt(2, t); - } - function rt(t) { - return tt(3, t); - } - function it(t) { - return tt(4, t); - } - var ot = { value: function() {} }; - function at() { - for (var t, e = 0, n = arguments.length, r = {}; e < n; ++e) { - if (!(t = arguments[e] + '') || t in r || /[\s.]/.test(t)) - throw new Error('illegal type: ' + t); - r[t] = []; - } - return new st(r); - } - function st(t) { - this._ = t; - } - function ut(t, e) { - return t - .trim() - .split(/^|\s+/) - .map(function(t) { - var n = '', - r = t.indexOf('.'); - if ( - (r >= 0 && ((n = t.slice(r + 1)), (t = t.slice(0, r))), - t && !e.hasOwnProperty(t)) - ) - throw new Error('unknown type: ' + t); - return { type: t, name: n }; - }); - } - function lt(t, e) { - for (var n, r = 0, i = t.length; r < i; ++r) - if ((n = t[r]).name === e) return n.value; - } - function ct(t, e, n) { - for (var r = 0, i = t.length; r < i; ++r) - if (t[r].name === e) { - (t[r] = ot), (t = t.slice(0, r).concat(t.slice(r + 1))); - break; - } - return null != n && t.push({ name: e, value: n }), t; - } - st.prototype = at.prototype = { - constructor: st, - on: function(t, e) { - var n, - r = this._, - i = ut(t + '', r), - o = -1, - a = i.length; - if (!(arguments.length < 2)) { - if (null != e && 'function' != typeof e) - throw new Error('invalid callback: ' + e); - for (; ++o < a; ) - if ((n = (t = i[o]).type)) r[n] = ct(r[n], t.name, e); - else if (null == e) for (n in r) r[n] = ct(r[n], t.name, null); - return this; - } - for (; ++o < a; ) - if ((n = (t = i[o]).type) && (n = lt(r[n], t.name))) return n; - }, - copy: function() { - var t = {}, - e = this._; - for (var n in e) t[n] = e[n].slice(); - return new st(t); - }, - call: function(t, e) { - if ((n = arguments.length - 2) > 0) - for (var n, r, i = new Array(n), o = 0; o < n; ++o) - i[o] = arguments[o + 2]; - if (!this._.hasOwnProperty(t)) throw new Error('unknown type: ' + t); - for (o = 0, n = (r = this._[t]).length; o < n; ++o) - r[o].value.apply(e, i); - }, - apply: function(t, e, n) { - if (!this._.hasOwnProperty(t)) throw new Error('unknown type: ' + t); - for (var r = this._[t], i = 0, o = r.length; i < o; ++i) - r[i].value.apply(e, n); - } - }; - var ft = at; - function dt() {} - var ht = function(t) { - return null == t - ? dt - : function() { - return this.querySelector(t); - }; - }; - function pt() { - return []; - } - var gt = function(t) { - return null == t - ? pt - : function() { - return this.querySelectorAll(t); - }; - }, - vt = function(t) { - return function() { - return this.matches(t); - }; - }, - mt = function(t) { - return new Array(t.length); - }; - function yt(t, e) { - (this.ownerDocument = t.ownerDocument), - (this.namespaceURI = t.namespaceURI), - (this._next = null), - (this._parent = t), - (this.__data__ = e); - } - yt.prototype = { - constructor: yt, - appendChild: function(t) { - return this._parent.insertBefore(t, this._next); - }, - insertBefore: function(t, e) { - return this._parent.insertBefore(t, e); - }, - querySelector: function(t) { - return this._parent.querySelector(t); - }, - querySelectorAll: function(t) { - return this._parent.querySelectorAll(t); - } - }; - function bt(t, e, n, r, i, o) { - for (var a, s = 0, u = e.length, l = o.length; s < l; ++s) - (a = e[s]) - ? ((a.__data__ = o[s]), (r[s] = a)) - : (n[s] = new yt(t, o[s])); - for (; s < u; ++s) (a = e[s]) && (i[s] = a); - } - function _t(t, e, n, r, i, o, a) { - var s, - u, - l, - c = {}, - f = e.length, - d = o.length, - h = new Array(f); - for (s = 0; s < f; ++s) - (u = e[s]) && - ((h[s] = l = '$' + a.call(u, u.__data__, s, e)), - l in c ? (i[s] = u) : (c[l] = u)); - for (s = 0; s < d; ++s) - (u = c[(l = '$' + a.call(t, o[s], s, o))]) - ? ((r[s] = u), (u.__data__ = o[s]), (c[l] = null)) - : (n[s] = new yt(t, o[s])); - for (s = 0; s < f; ++s) (u = e[s]) && c[h[s]] === u && (i[s] = u); - } - function xt(t, e) { - return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; - } - var wt = 'http://www.w3.org/1999/xhtml', - St = { - svg: 'http://www.w3.org/2000/svg', - xhtml: wt, - xlink: 'http://www.w3.org/1999/xlink', - xml: 'http://www.w3.org/XML/1998/namespace', - xmlns: 'http://www.w3.org/2000/xmlns/' - }, - Et = function(t) { - var e = (t += ''), - n = e.indexOf(':'); - return ( - n >= 0 && 'xmlns' !== (e = t.slice(0, n)) && (t = t.slice(n + 1)), - St.hasOwnProperty(e) ? { space: St[e], local: t } : t - ); - }; - function kt(t) { - return function() { - this.removeAttribute(t); - }; - } - function At(t) { - return function() { - this.removeAttributeNS(t.space, t.local); - }; - } - function Tt(t, e) { - return function() { - this.setAttribute(t, e); - }; - } - function Ct(t, e) { - return function() { - this.setAttributeNS(t.space, t.local, e); - }; - } - function Ot(t, e) { - return function() { - var n = e.apply(this, arguments); - null == n ? this.removeAttribute(t) : this.setAttribute(t, n); - }; - } - function Pt(t, e) { - return function() { - var n = e.apply(this, arguments); - null == n - ? this.removeAttributeNS(t.space, t.local) - : this.setAttributeNS(t.space, t.local, n); - }; - } - var Mt = function(t) { - return ( - (t.ownerDocument && t.ownerDocument.defaultView) || - (t.document && t) || - t.defaultView - ); - }; - function Lt(t) { - return function() { - this.style.removeProperty(t); - }; - } - function Dt(t, e, n) { - return function() { - this.style.setProperty(t, e, n); - }; - } - function jt(t, e, n) { - return function() { - var r = e.apply(this, arguments); - null == r - ? this.style.removeProperty(t) - : this.style.setProperty(t, r, n); - }; - } - function Rt(t, e) { - return ( - t.style.getPropertyValue(e) || - Mt(t) - .getComputedStyle(t, null) - .getPropertyValue(e) - ); - } - function Nt(t) { - return function() { - delete this[t]; - }; - } - function zt(t, e) { - return function() { - this[t] = e; - }; - } - function It(t, e) { - return function() { - var n = e.apply(this, arguments); - null == n ? delete this[t] : (this[t] = n); - }; - } - function Ft(t) { - return t.trim().split(/^|\s+/); - } - function Vt(t) { - return t.classList || new Bt(t); - } - function Bt(t) { - (this._node = t), (this._names = Ft(t.getAttribute('class') || '')); - } - function Gt(t, e) { - for (var n = Vt(t), r = -1, i = e.length; ++r < i; ) n.add(e[r]); - } - function Ht(t, e) { - for (var n = Vt(t), r = -1, i = e.length; ++r < i; ) n.remove(e[r]); - } - function Ut(t) { - return function() { - Gt(this, t); - }; - } - function qt(t) { - return function() { - Ht(this, t); - }; - } - function Wt(t, e) { - return function() { - (e.apply(this, arguments) ? Gt : Ht)(this, t); - }; - } - Bt.prototype = { - add: function(t) { - this._names.indexOf(t) < 0 && - (this._names.push(t), - this._node.setAttribute('class', this._names.join(' '))); - }, - remove: function(t) { - var e = this._names.indexOf(t); - e >= 0 && - (this._names.splice(e, 1), - this._node.setAttribute('class', this._names.join(' '))); - }, - contains: function(t) { - return this._names.indexOf(t) >= 0; - } - }; - function Xt() { - this.textContent = ''; - } - function Yt(t) { - return function() { - this.textContent = t; - }; - } - function $t(t) { - return function() { - var e = t.apply(this, arguments); - this.textContent = null == e ? '' : e; - }; - } - function Qt() { - this.innerHTML = ''; - } - function Kt(t) { - return function() { - this.innerHTML = t; - }; - } - function Zt(t) { - return function() { - var e = t.apply(this, arguments); - this.innerHTML = null == e ? '' : e; - }; - } - function Jt() { - this.nextSibling && this.parentNode.appendChild(this); - } - function te() { - this.previousSibling && - this.parentNode.insertBefore(this, this.parentNode.firstChild); - } - function ee(t) { - return function() { - var e = this.ownerDocument, - n = this.namespaceURI; - return n === wt && e.documentElement.namespaceURI === wt - ? e.createElement(t) - : e.createElementNS(n, t); - }; - } - function ne(t) { - return function() { - return this.ownerDocument.createElementNS(t.space, t.local); - }; - } - var re = function(t) { - var e = Et(t); - return (e.local ? ne : ee)(e); - }; - function ie() { - return null; - } - function oe() { - var t = this.parentNode; - t && t.removeChild(this); - } - function ae() { - var t = this.cloneNode(!1), - e = this.parentNode; - return e ? e.insertBefore(t, this.nextSibling) : t; - } - function se() { - var t = this.cloneNode(!0), - e = this.parentNode; - return e ? e.insertBefore(t, this.nextSibling) : t; - } - var ue = {}, - le = null; - 'undefined' != typeof document && - ('onmouseenter' in document.documentElement || - (ue = { mouseenter: 'mouseover', mouseleave: 'mouseout' })); - function ce(t, e, n) { - return ( - (t = fe(t, e, n)), - function(e) { - var n = e.relatedTarget; - (n && (n === this || 8 & n.compareDocumentPosition(this))) || - t.call(this, e); - } - ); - } - function fe(t, e, n) { - return function(r) { - var i = le; - le = r; - try { - t.call(this, this.__data__, e, n); - } finally { - le = i; - } - }; - } - function de(t) { - return t - .trim() - .split(/^|\s+/) - .map(function(t) { - var e = '', - n = t.indexOf('.'); - return ( - n >= 0 && ((e = t.slice(n + 1)), (t = t.slice(0, n))), - { type: t, name: e } - ); - }); - } - function he(t) { - return function() { - var e = this.__on; - if (e) { - for (var n, r = 0, i = -1, o = e.length; r < o; ++r) - (n = e[r]), - (t.type && n.type !== t.type) || n.name !== t.name - ? (e[++i] = n) - : this.removeEventListener(n.type, n.listener, n.capture); - ++i ? (e.length = i) : delete this.__on; - } - }; - } - function pe(t, e, n) { - var r = ue.hasOwnProperty(t.type) ? ce : fe; - return function(i, o, a) { - var s, - u = this.__on, - l = r(e, o, a); - if (u) - for (var c = 0, f = u.length; c < f; ++c) - if ((s = u[c]).type === t.type && s.name === t.name) - return ( - this.removeEventListener(s.type, s.listener, s.capture), - this.addEventListener( - s.type, - (s.listener = l), - (s.capture = n) - ), - void (s.value = e) - ); - this.addEventListener(t.type, l, n), - (s = { - type: t.type, - name: t.name, - value: e, - listener: l, - capture: n - }), - u ? u.push(s) : (this.__on = [s]); - }; - } - function ge(t, e, n, r) { - var i = le; - (t.sourceEvent = le), (le = t); - try { - return e.apply(n, r); - } finally { - le = i; - } - } - function ve(t, e, n) { - var r = Mt(t), - i = r.CustomEvent; - 'function' == typeof i - ? (i = new i(e, n)) - : ((i = r.document.createEvent('Event')), - n - ? (i.initEvent(e, n.bubbles, n.cancelable), (i.detail = n.detail)) - : i.initEvent(e, !1, !1)), - t.dispatchEvent(i); - } - function me(t, e) { - return function() { - return ve(this, t, e); - }; - } - function ye(t, e) { - return function() { - return ve(this, t, e.apply(this, arguments)); - }; - } - var be = [null]; - function _e(t, e) { - (this._groups = t), (this._parents = e); - } - function xe() { - return new _e([[document.documentElement]], be); - } - _e.prototype = xe.prototype = { - constructor: _e, - select: function(t) { - 'function' != typeof t && (t = ht(t)); - for ( - var e = this._groups, n = e.length, r = new Array(n), i = 0; - i < n; - ++i - ) - for ( - var o, - a, - s = e[i], - u = s.length, - l = (r[i] = new Array(u)), - c = 0; - c < u; - ++c - ) - (o = s[c]) && - (a = t.call(o, o.__data__, c, s)) && - ('__data__' in o && (a.__data__ = o.__data__), (l[c] = a)); - return new _e(r, this._parents); - }, - selectAll: function(t) { - 'function' != typeof t && (t = gt(t)); - for ( - var e = this._groups, n = e.length, r = [], i = [], o = 0; - o < n; - ++o - ) - for (var a, s = e[o], u = s.length, l = 0; l < u; ++l) - (a = s[l]) && (r.push(t.call(a, a.__data__, l, s)), i.push(a)); - return new _e(r, i); - }, - filter: function(t) { - 'function' != typeof t && (t = vt(t)); - for ( - var e = this._groups, n = e.length, r = new Array(n), i = 0; - i < n; - ++i - ) - for ( - var o, a = e[i], s = a.length, u = (r[i] = []), l = 0; - l < s; - ++l - ) - (o = a[l]) && t.call(o, o.__data__, l, a) && u.push(o); - return new _e(r, this._parents); - }, - data: function(t, e) { - if (!t) - return ( - (p = new Array(this.size())), - (c = -1), - this.each(function(t) { - p[++c] = t; - }), - p - ); - var n, - r = e ? _t : bt, - i = this._parents, - o = this._groups; - 'function' != typeof t && - ((n = t), - (t = function() { - return n; - })); - for ( - var a = o.length, - s = new Array(a), - u = new Array(a), - l = new Array(a), - c = 0; - c < a; - ++c - ) { - var f = i[c], - d = o[c], - h = d.length, - p = t.call(f, f && f.__data__, c, i), - g = p.length, - v = (u[c] = new Array(g)), - m = (s[c] = new Array(g)); - r(f, d, v, m, (l[c] = new Array(h)), p, e); - for (var y, b, _ = 0, x = 0; _ < g; ++_) - if ((y = v[_])) { - for (_ >= x && (x = _ + 1); !(b = m[x]) && ++x < g; ); - y._next = b || null; - } - } - return ((s = new _e(s, i))._enter = u), (s._exit = l), s; - }, - enter: function() { - return new _e(this._enter || this._groups.map(mt), this._parents); - }, - exit: function() { - return new _e(this._exit || this._groups.map(mt), this._parents); - }, - join: function(t, e, n) { - var r = this.enter(), - i = this, - o = this.exit(); - return ( - (r = 'function' == typeof t ? t(r) : r.append(t + '')), - null != e && (i = e(i)), - null == n ? o.remove() : n(o), - r && i ? r.merge(i).order() : i - ); - }, - merge: function(t) { - for ( - var e = this._groups, - n = t._groups, - r = e.length, - i = n.length, - o = Math.min(r, i), - a = new Array(r), - s = 0; - s < o; - ++s - ) - for ( - var u, - l = e[s], - c = n[s], - f = l.length, - d = (a[s] = new Array(f)), - h = 0; - h < f; - ++h - ) - (u = l[h] || c[h]) && (d[h] = u); - for (; s < r; ++s) a[s] = e[s]; - return new _e(a, this._parents); - }, - order: function() { - for (var t = this._groups, e = -1, n = t.length; ++e < n; ) - for (var r, i = t[e], o = i.length - 1, a = i[o]; --o >= 0; ) - (r = i[o]) && - (a && - 4 ^ r.compareDocumentPosition(a) && - a.parentNode.insertBefore(r, a), - (a = r)); - return this; - }, - sort: function(t) { - function e(e, n) { - return e && n ? t(e.__data__, n.__data__) : !e - !n; - } - t || (t = xt); - for ( - var n = this._groups, r = n.length, i = new Array(r), o = 0; - o < r; - ++o - ) { - for ( - var a, s = n[o], u = s.length, l = (i[o] = new Array(u)), c = 0; - c < u; - ++c - ) - (a = s[c]) && (l[c] = a); - l.sort(e); - } - return new _e(i, this._parents).order(); - }, - call: function() { - var t = arguments[0]; - return (arguments[0] = this), t.apply(null, arguments), this; - }, - nodes: function() { - var t = new Array(this.size()), - e = -1; - return ( - this.each(function() { - t[++e] = this; - }), - t - ); - }, - node: function() { - for (var t = this._groups, e = 0, n = t.length; e < n; ++e) - for (var r = t[e], i = 0, o = r.length; i < o; ++i) { - var a = r[i]; - if (a) return a; - } - return null; - }, - size: function() { - var t = 0; - return ( - this.each(function() { - ++t; - }), - t - ); - }, - empty: function() { - return !this.node(); - }, - each: function(t) { - for (var e = this._groups, n = 0, r = e.length; n < r; ++n) - for (var i, o = e[n], a = 0, s = o.length; a < s; ++a) - (i = o[a]) && t.call(i, i.__data__, a, o); - return this; - }, - attr: function(t, e) { - var n = Et(t); - if (arguments.length < 2) { - var r = this.node(); - return n.local - ? r.getAttributeNS(n.space, n.local) - : r.getAttribute(n); - } - return this.each( - (null == e - ? n.local - ? At - : kt - : 'function' == typeof e - ? n.local - ? Pt - : Ot - : n.local - ? Ct - : Tt)(n, e) - ); - }, - style: function(t, e, n) { - return arguments.length > 1 - ? this.each( - (null == e ? Lt : 'function' == typeof e ? jt : Dt)( - t, - e, - null == n ? '' : n - ) - ) - : Rt(this.node(), t); - }, - property: function(t, e) { - return arguments.length > 1 - ? this.each( - (null == e ? Nt : 'function' == typeof e ? It : zt)(t, e) - ) - : this.node()[t]; - }, - classed: function(t, e) { - var n = Ft(t + ''); - if (arguments.length < 2) { - for (var r = Vt(this.node()), i = -1, o = n.length; ++i < o; ) - if (!r.contains(n[i])) return !1; - return !0; - } - return this.each(('function' == typeof e ? Wt : e ? Ut : qt)(n, e)); - }, - text: function(t) { - return arguments.length - ? this.each(null == t ? Xt : ('function' == typeof t ? $t : Yt)(t)) - : this.node().textContent; - }, - html: function(t) { - return arguments.length - ? this.each(null == t ? Qt : ('function' == typeof t ? Zt : Kt)(t)) - : this.node().innerHTML; - }, - raise: function() { - return this.each(Jt); - }, - lower: function() { - return this.each(te); - }, - append: function(t) { - var e = 'function' == typeof t ? t : re(t); - return this.select(function() { - return this.appendChild(e.apply(this, arguments)); - }); - }, - insert: function(t, e) { - var n = 'function' == typeof t ? t : re(t), - r = null == e ? ie : 'function' == typeof e ? e : ht(e); - return this.select(function() { - return this.insertBefore( - n.apply(this, arguments), - r.apply(this, arguments) || null - ); - }); - }, - remove: function() { - return this.each(oe); - }, - clone: function(t) { - return this.select(t ? se : ae); - }, - datum: function(t) { - return arguments.length - ? this.property('__data__', t) - : this.node().__data__; - }, - on: function(t, e, n) { - var r, - i, - o = de(t + ''), - a = o.length; - if (!(arguments.length < 2)) { - for (s = e ? pe : he, null == n && (n = !1), r = 0; r < a; ++r) - this.each(s(o[r], e, n)); - return this; - } - var s = this.node().__on; - if (s) - for (var u, l = 0, c = s.length; l < c; ++l) - for (r = 0, u = s[l]; r < a; ++r) - if ((i = o[r]).type === u.type && i.name === u.name) - return u.value; - }, - dispatch: function(t, e) { - return this.each(('function' == typeof e ? ye : me)(t, e)); - } - }; - var we = xe, - Se = function(t) { - return 'string' == typeof t - ? new _e([[document.querySelector(t)]], [document.documentElement]) - : new _e([[t]], be); - }; - function Ee() { - le.stopImmediatePropagation(); - } - var ke = function() { - le.preventDefault(), le.stopImmediatePropagation(); - }, - Ae = function(t) { - var e = t.document.documentElement, - n = Se(t).on('dragstart.drag', ke, !0); - 'onselectstart' in e - ? n.on('selectstart.drag', ke, !0) - : ((e.__noselect = e.style.MozUserSelect), - (e.style.MozUserSelect = 'none')); - }; - function Te(t, e) { - var n = t.document.documentElement, - r = Se(t).on('dragstart.drag', null); - e && - (r.on('click.drag', ke, !0), - setTimeout(function() { - r.on('click.drag', null); - }, 0)), - 'onselectstart' in n - ? r.on('selectstart.drag', null) - : ((n.style.MozUserSelect = n.__noselect), delete n.__noselect); - } - var Ce = function(t, e, n) { - (t.prototype = e.prototype = n), (n.constructor = t); - }; - function Oe(t, e) { - var n = Object.create(t.prototype); - for (var r in e) n[r] = e[r]; - return n; - } - function Pe() {} - var Me = '\\s*([+-]?\\d+)\\s*', - Le = '\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*', - De = '\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*', - je = /^#([0-9a-f]{3,8})$/, - Re = new RegExp('^rgb\\(' + [Me, Me, Me] + '\\)$'), - Ne = new RegExp('^rgb\\(' + [De, De, De] + '\\)$'), - ze = new RegExp('^rgba\\(' + [Me, Me, Me, Le] + '\\)$'), - Ie = new RegExp('^rgba\\(' + [De, De, De, Le] + '\\)$'), - Fe = new RegExp('^hsl\\(' + [Le, De, De] + '\\)$'), - Ve = new RegExp('^hsla\\(' + [Le, De, De, Le] + '\\)$'), - Be = { - 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 Ge() { - return this.rgb().formatHex(); - } - function He() { - return this.rgb().formatRgb(); - } - function Ue(t) { - var e, n; - return ( - (t = (t + '').trim().toLowerCase()), - (e = je.exec(t)) - ? ((n = e[1].length), - (e = parseInt(e[1], 16)), - 6 === n - ? qe(e) - : 3 === n - ? new $e( - ((e >> 8) & 15) | ((e >> 4) & 240), - ((e >> 4) & 15) | (240 & e), - ((15 & e) << 4) | (15 & e), - 1 - ) - : 8 === n - ? We( - (e >> 24) & 255, - (e >> 16) & 255, - (e >> 8) & 255, - (255 & e) / 255 - ) - : 4 === n - ? We( - ((e >> 12) & 15) | ((e >> 8) & 240), - ((e >> 8) & 15) | ((e >> 4) & 240), - ((e >> 4) & 15) | (240 & e), - (((15 & e) << 4) | (15 & e)) / 255 - ) - : null) - : (e = Re.exec(t)) - ? new $e(e[1], e[2], e[3], 1) - : (e = Ne.exec(t)) - ? new $e( - (255 * e[1]) / 100, - (255 * e[2]) / 100, - (255 * e[3]) / 100, - 1 - ) - : (e = ze.exec(t)) - ? We(e[1], e[2], e[3], e[4]) - : (e = Ie.exec(t)) - ? We( - (255 * e[1]) / 100, - (255 * e[2]) / 100, - (255 * e[3]) / 100, - e[4] - ) - : (e = Fe.exec(t)) - ? Je(e[1], e[2] / 100, e[3] / 100, 1) - : (e = Ve.exec(t)) - ? Je(e[1], e[2] / 100, e[3] / 100, e[4]) - : Be.hasOwnProperty(t) - ? qe(Be[t]) - : 'transparent' === t - ? new $e(NaN, NaN, NaN, 0) - : null - ); - } - function qe(t) { - return new $e((t >> 16) & 255, (t >> 8) & 255, 255 & t, 1); - } - function We(t, e, n, r) { - return r <= 0 && (t = e = n = NaN), new $e(t, e, n, r); - } - function Xe(t) { - return ( - t instanceof Pe || (t = Ue(t)), - t ? new $e((t = t.rgb()).r, t.g, t.b, t.opacity) : new $e() - ); - } - function Ye(t, e, n, r) { - return 1 === arguments.length - ? Xe(t) - : new $e(t, e, n, null == r ? 1 : r); - } - function $e(t, e, n, r) { - (this.r = +t), (this.g = +e), (this.b = +n), (this.opacity = +r); - } - function Qe() { - return '#' + Ze(this.r) + Ze(this.g) + Ze(this.b); - } - function Ke() { - var t = this.opacity; - return ( - (1 === (t = isNaN(t) ? 1 : Math.max(0, Math.min(1, t))) - ? '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 === t ? ')' : ', ' + t + ')') - ); - } - function Ze(t) { - return ( - ((t = Math.max(0, Math.min(255, Math.round(t) || 0))) < 16 - ? '0' - : '') + t.toString(16) - ); - } - function Je(t, e, n, r) { - return ( - r <= 0 - ? (t = e = n = NaN) - : n <= 0 || n >= 1 - ? (t = e = NaN) - : e <= 0 && (t = NaN), - new nn(t, e, n, r) - ); - } - function tn(t) { - if (t instanceof nn) return new nn(t.h, t.s, t.l, t.opacity); - if ((t instanceof Pe || (t = Ue(t)), !t)) return new nn(); - if (t instanceof nn) return t; - var e = (t = t.rgb()).r / 255, - n = t.g / 255, - r = t.b / 255, - i = Math.min(e, n, r), - o = Math.max(e, n, r), - a = NaN, - s = o - i, - u = (o + i) / 2; - return ( - s - ? ((a = - e === o - ? (n - r) / s + 6 * (n < r) - : n === o - ? (r - e) / s + 2 - : (e - n) / s + 4), - (s /= u < 0.5 ? o + i : 2 - o - i), - (a *= 60)) - : (s = u > 0 && u < 1 ? 0 : a), - new nn(a, s, u, t.opacity) - ); - } - function en(t, e, n, r) { - return 1 === arguments.length - ? tn(t) - : new nn(t, e, n, null == r ? 1 : r); - } - function nn(t, e, n, r) { - (this.h = +t), (this.s = +e), (this.l = +n), (this.opacity = +r); - } - function rn(t, e, n) { - return ( - 255 * - (t < 60 - ? e + ((n - e) * t) / 60 - : t < 180 - ? n - : t < 240 - ? e + ((n - e) * (240 - t)) / 60 - : e) - ); - } - function on(t, e, n, r, i) { - var o = t * t, - a = o * t; - return ( - ((1 - 3 * t + 3 * o - a) * e + - (4 - 6 * o + 3 * a) * n + - (1 + 3 * t + 3 * o - 3 * a) * r + - a * i) / - 6 - ); - } - Ce(Pe, Ue, { - copy: function(t) { - return Object.assign(new this.constructor(), this, t); - }, - displayable: function() { - return this.rgb().displayable(); - }, - hex: Ge, - formatHex: Ge, - formatHsl: function() { - return tn(this).formatHsl(); - }, - formatRgb: He, - toString: He - }), - Ce( - $e, - Ye, - Oe(Pe, { - brighter: function(t) { - return ( - (t = null == t ? 1 / 0.7 : Math.pow(1 / 0.7, t)), - new $e(this.r * t, this.g * t, this.b * t, this.opacity) - ); - }, - darker: function(t) { - return ( - (t = null == t ? 0.7 : Math.pow(0.7, t)), - new $e(this.r * t, this.g * t, this.b * t, this.opacity) - ); - }, - rgb: function() { - return this; - }, - displayable: function() { - return ( - -0.5 <= this.r && - this.r < 255.5 && - -0.5 <= this.g && - this.g < 255.5 && - -0.5 <= this.b && - this.b < 255.5 && - 0 <= this.opacity && - this.opacity <= 1 - ); - }, - hex: Qe, - formatHex: Qe, - formatRgb: Ke, - toString: Ke - }) - ), - Ce( - nn, - en, - Oe(Pe, { - brighter: function(t) { - return ( - (t = null == t ? 1 / 0.7 : Math.pow(1 / 0.7, t)), - new nn(this.h, this.s, this.l * t, this.opacity) - ); - }, - darker: function(t) { - return ( - (t = null == t ? 0.7 : Math.pow(0.7, t)), - new nn(this.h, this.s, this.l * t, this.opacity) - ); - }, - rgb: function() { - var t = (this.h % 360) + 360 * (this.h < 0), - e = isNaN(t) || isNaN(this.s) ? 0 : this.s, - n = this.l, - r = n + (n < 0.5 ? n : 1 - n) * e, - i = 2 * n - r; - return new $e( - rn(t >= 240 ? t - 240 : t + 120, i, r), - rn(t, i, r), - rn(t < 120 ? t + 240 : t - 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 t = this.opacity; - return ( - (1 === (t = isNaN(t) ? 1 : Math.max(0, Math.min(1, t))) - ? 'hsl(' - : 'hsla(') + - (this.h || 0) + - ', ' + - 100 * (this.s || 0) + - '%, ' + - 100 * (this.l || 0) + - '%' + - (1 === t ? ')' : ', ' + t + ')') - ); - } - }) - ); - var an = function(t) { - var e = t.length - 1; - return function(n) { - var r = - n <= 0 - ? (n = 0) - : n >= 1 - ? ((n = 1), e - 1) - : Math.floor(n * e), - i = t[r], - o = t[r + 1], - a = r > 0 ? t[r - 1] : 2 * i - o, - s = r < e - 1 ? t[r + 2] : 2 * o - i; - return on((n - r / e) * e, a, i, o, s); - }; - }, - sn = function(t) { - var e = t.length; - return function(n) { - var r = Math.floor(((n %= 1) < 0 ? ++n : n) * e), - i = t[(r + e - 1) % e], - o = t[r % e], - a = t[(r + 1) % e], - s = t[(r + 2) % e]; - return on((n - r / e) * e, i, o, a, s); - }; - }, - un = function(t) { - return function() { - return t; - }; - }; - function ln(t, e) { - return function(n) { - return t + n * e; - }; - } - function cn(t, e) { - var n = e - t; - return n - ? ln(t, n > 180 || n < -180 ? n - 360 * Math.round(n / 360) : n) - : un(isNaN(t) ? e : t); - } - function fn(t) { - return 1 == (t = +t) - ? dn - : function(e, n) { - return n - e - ? (function(t, e, n) { - return ( - (t = Math.pow(t, n)), - (e = Math.pow(e, n) - t), - (n = 1 / n), - function(r) { - return Math.pow(t + r * e, n); - } - ); - })(e, n, t) - : un(isNaN(e) ? n : e); - }; - } - function dn(t, e) { - var n = e - t; - return n ? ln(t, n) : un(isNaN(t) ? e : t); - } - var hn = (function t(e) { - var n = fn(e); - function r(t, e) { - var r = n((t = Ye(t)).r, (e = Ye(e)).r), - i = n(t.g, e.g), - o = n(t.b, e.b), - a = dn(t.opacity, e.opacity); - return function(e) { - return ( - (t.r = r(e)), - (t.g = i(e)), - (t.b = o(e)), - (t.opacity = a(e)), - t + '' - ); - }; - } - return (r.gamma = t), r; - })(1); - function pn(t) { - return function(e) { - var n, - r, - i = e.length, - o = new Array(i), - a = new Array(i), - s = new Array(i); - for (n = 0; n < i; ++n) - (r = Ye(e[n])), - (o[n] = r.r || 0), - (a[n] = r.g || 0), - (s[n] = r.b || 0); - return ( - (o = t(o)), - (a = t(a)), - (s = t(s)), - (r.opacity = 1), - function(t) { - return (r.r = o(t)), (r.g = a(t)), (r.b = s(t)), r + ''; - } - ); - }; - } - var gn = pn(an), - vn = pn(sn), - mn = function(t, e) { - e || (e = []); - var n, - r = t ? Math.min(e.length, t.length) : 0, - i = e.slice(); - return function(o) { - for (n = 0; n < r; ++n) i[n] = t[n] * (1 - o) + e[n] * o; - return i; - }; - }; - function yn(t) { - return ArrayBuffer.isView(t) && !(t instanceof DataView); - } - var bn = function(t, e) { - return (yn(e) ? mn : _n)(t, e); - }; - function _n(t, e) { - var n, - r = e ? e.length : 0, - i = t ? Math.min(r, t.length) : 0, - o = new Array(i), - a = new Array(r); - for (n = 0; n < i; ++n) o[n] = On(t[n], e[n]); - for (; n < r; ++n) a[n] = e[n]; - return function(t) { - for (n = 0; n < i; ++n) a[n] = o[n](t); - return a; - }; - } - var xn = function(t, e) { - var n = new Date(); - return ( - (t = +t), - (e = +e), - function(r) { - return n.setTime(t * (1 - r) + e * r), n; - } - ); - }, - wn = function(t, e) { - return ( - (t = +t), - (e = +e), - function(n) { - return t * (1 - n) + e * n; - } - ); - }, - Sn = function(t, e) { - var n, - r = {}, - i = {}; - for (n in ((null !== t && 'object' == typeof t) || (t = {}), - (null !== e && 'object' == typeof e) || (e = {}), - e)) - n in t ? (r[n] = On(t[n], e[n])) : (i[n] = e[n]); - return function(t) { - for (n in r) i[n] = r[n](t); - return i; - }; - }, - En = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, - kn = new RegExp(En.source, 'g'); - var An, - Tn, - Cn = function(t, e) { - var n, - r, - i, - o = (En.lastIndex = kn.lastIndex = 0), - a = -1, - s = [], - u = []; - for (t += '', e += ''; (n = En.exec(t)) && (r = kn.exec(e)); ) - (i = r.index) > o && - ((i = e.slice(o, i)), s[a] ? (s[a] += i) : (s[++a] = i)), - (n = n[0]) === (r = r[0]) - ? s[a] - ? (s[a] += r) - : (s[++a] = r) - : ((s[++a] = null), u.push({ i: a, x: wn(n, r) })), - (o = kn.lastIndex); - return ( - o < e.length && - ((i = e.slice(o)), s[a] ? (s[a] += i) : (s[++a] = i)), - s.length < 2 - ? u[0] - ? (function(t) { - return function(e) { - return t(e) + ''; - }; - })(u[0].x) - : (function(t) { - return function() { - return t; - }; - })(e) - : ((e = u.length), - function(t) { - for (var n, r = 0; r < e; ++r) s[(n = u[r]).i] = n.x(t); - return s.join(''); - }) - ); - }, - On = function(t, e) { - var n, - r = typeof e; - return null == e || 'boolean' === r - ? un(e) - : ('number' === r - ? wn - : 'string' === r - ? (n = Ue(e)) - ? ((e = n), hn) - : Cn - : e instanceof Ue - ? hn - : e instanceof Date - ? xn - : yn(e) - ? mn - : Array.isArray(e) - ? _n - : ('function' != typeof e.valueOf && - 'function' != typeof e.toString) || - isNaN(e) - ? Sn - : wn)(t, e); - }, - Pn = function() { - for (var t, e = le; (t = e.sourceEvent); ) e = t; - return e; - }, - Mn = function(t, e) { - var n = t.ownerSVGElement || t; - if (n.createSVGPoint) { - var r = n.createSVGPoint(); - return ( - (r.x = e.clientX), - (r.y = e.clientY), - [(r = r.matrixTransform(t.getScreenCTM().inverse())).x, r.y] - ); - } - var i = t.getBoundingClientRect(); - return [ - e.clientX - i.left - t.clientLeft, - e.clientY - i.top - t.clientTop - ]; - }, - Ln = function(t, e, n) { - arguments.length < 3 && ((n = e), (e = Pn().changedTouches)); - for (var r, i = 0, o = e ? e.length : 0; i < o; ++i) - if ((r = e[i]).identifier === n) return Mn(t, r); - return null; - }, - Dn = function(t) { - var e = Pn(); - return e.changedTouches && (e = e.changedTouches[0]), Mn(t, e); - }, - jn = 0, - Rn = 0, - Nn = 0, - zn = 0, - In = 0, - Fn = 0, - Vn = - 'object' == typeof performance && performance.now - ? performance - : Date, - Bn = - 'object' == typeof window && window.requestAnimationFrame - ? window.requestAnimationFrame.bind(window) - : function(t) { - setTimeout(t, 17); - }; - function Gn() { - return In || (Bn(Hn), (In = Vn.now() + Fn)); - } - function Hn() { - In = 0; - } - function Un() { - this._call = this._time = this._next = null; - } - function qn(t, e, n) { - var r = new Un(); - return r.restart(t, e, n), r; - } - function Wn() { - Gn(), ++jn; - for (var t, e = An; e; ) - (t = In - e._time) >= 0 && e._call.call(null, t), (e = e._next); - --jn; - } - function Xn() { - (In = (zn = Vn.now()) + Fn), (jn = Rn = 0); - try { - Wn(); - } finally { - (jn = 0), - (function() { - var t, - e, - n = An, - r = 1 / 0; - for (; n; ) - n._call - ? (r > n._time && (r = n._time), (t = n), (n = n._next)) - : ((e = n._next), - (n._next = null), - (n = t ? (t._next = e) : (An = e))); - (Tn = t), $n(r); - })(), - (In = 0); - } - } - function Yn() { - var t = Vn.now(), - e = t - zn; - e > 1e3 && ((Fn -= e), (zn = t)); - } - function $n(t) { - jn || - (Rn && (Rn = clearTimeout(Rn)), - t - In > 24 - ? (t < 1 / 0 && (Rn = setTimeout(Xn, t - Vn.now() - Fn)), - Nn && (Nn = clearInterval(Nn))) - : (Nn || ((zn = Vn.now()), (Nn = setInterval(Yn, 1e3))), - (jn = 1), - Bn(Xn))); - } - Un.prototype = qn.prototype = { - constructor: Un, - restart: function(t, e, n) { - if ('function' != typeof t) - throw new TypeError('callback is not a function'); - (n = (null == n ? Gn() : +n) + (null == e ? 0 : +e)), - this._next || - Tn === this || - (Tn ? (Tn._next = this) : (An = this), (Tn = this)), - (this._call = t), - (this._time = n), - $n(); - }, - stop: function() { - this._call && ((this._call = null), (this._time = 1 / 0), $n()); - } - }; - var Qn = function(t, e, n) { - var r = new Un(); - return ( - (e = null == e ? 0 : +e), - r.restart( - function(n) { - r.stop(), t(n + e); - }, - e, - n - ), - r - ); - }, - Kn = ft('start', 'end', 'cancel', 'interrupt'), - Zn = [], - Jn = function(t, e, n, r, i, o) { - var a = t.__transition; - if (a) { - if (n in a) return; - } else t.__transition = {}; - !(function(t, e, n) { - var r, - i = t.__transition; - function o(u) { - var l, c, f, d; - if (1 !== n.state) return s(); - for (l in i) - if ((d = i[l]).name === n.name) { - if (3 === d.state) return Qn(o); - 4 === d.state - ? ((d.state = 6), - d.timer.stop(), - d.on.call('interrupt', t, t.__data__, d.index, d.group), - delete i[l]) - : +l < e && - ((d.state = 6), - d.timer.stop(), - d.on.call('cancel', t, t.__data__, d.index, d.group), - delete i[l]); - } - if ( - (Qn(function() { - 3 === n.state && - ((n.state = 4), n.timer.restart(a, n.delay, n.time), a(u)); - }), - (n.state = 2), - n.on.call('start', t, t.__data__, n.index, n.group), - 2 === n.state) - ) { - for ( - n.state = 3, - r = new Array((f = n.tween.length)), - l = 0, - c = -1; - l < f; - ++l - ) - (d = n.tween[l].value.call( - t, - t.__data__, - n.index, - n.group - )) && (r[++c] = d); - r.length = c + 1; - } - } - function a(e) { - for ( - var i = - e < n.duration - ? n.ease.call(null, e / n.duration) - : (n.timer.restart(s), (n.state = 5), 1), - o = -1, - a = r.length; - ++o < a; - - ) - r[o].call(t, i); - 5 === n.state && - (n.on.call('end', t, t.__data__, n.index, n.group), s()); - } - function s() { - for (var r in ((n.state = 6), n.timer.stop(), delete i[e], i)) - return; - delete t.__transition; - } - (i[e] = n), - (n.timer = qn( - function(t) { - (n.state = 1), - n.timer.restart(o, n.delay, n.time), - n.delay <= t && o(t - n.delay); - }, - 0, - n.time - )); - })(t, n, { - name: e, - index: r, - group: i, - on: Kn, - tween: Zn, - time: o.time, - delay: o.delay, - duration: o.duration, - ease: o.ease, - timer: null, - state: 0 - }); - }; - function tr(t, e) { - var n = nr(t, e); - if (n.state > 0) throw new Error('too late; already scheduled'); - return n; - } - function er(t, e) { - var n = nr(t, e); - if (n.state > 3) throw new Error('too late; already running'); - return n; - } - function nr(t, e) { - var n = t.__transition; - if (!n || !(n = n[e])) throw new Error('transition not found'); - return n; - } - var rr, - ir, - or, - ar, - sr = function(t, e) { - var n, - r, - i, - o = t.__transition, - a = !0; - if (o) { - for (i in ((e = null == e ? null : e + ''), o)) - (n = o[i]).name === e - ? ((r = n.state > 2 && n.state < 5), - (n.state = 6), - n.timer.stop(), - n.on.call( - r ? 'interrupt' : 'cancel', - t, - t.__data__, - n.index, - n.group - ), - delete o[i]) - : (a = !1); - a && delete t.__transition; - } - }, - ur = 180 / Math.PI, - lr = { - translateX: 0, - translateY: 0, - rotate: 0, - skewX: 0, - scaleX: 1, - scaleY: 1 - }, - cr = function(t, e, n, r, i, o) { - var a, s, u; - return ( - (a = Math.sqrt(t * t + e * e)) && ((t /= a), (e /= a)), - (u = t * n + e * r) && ((n -= t * u), (r -= e * u)), - (s = Math.sqrt(n * n + r * r)) && ((n /= s), (r /= s), (u /= s)), - t * r < e * n && ((t = -t), (e = -e), (u = -u), (a = -a)), - { - translateX: i, - translateY: o, - rotate: Math.atan2(e, t) * ur, - skewX: Math.atan(u) * ur, - scaleX: a, - scaleY: s - } - ); - }; - function fr(t, e, n, r) { - function i(t) { - return t.length ? t.pop() + ' ' : ''; - } - return function(o, a) { - var s = [], - u = []; - return ( - (o = t(o)), - (a = t(a)), - (function(t, r, i, o, a, s) { - if (t !== i || r !== o) { - var u = a.push('translate(', null, e, null, n); - s.push({ i: u - 4, x: wn(t, i) }, { i: u - 2, x: wn(r, o) }); - } else (i || o) && a.push('translate(' + i + e + o + n); - })(o.translateX, o.translateY, a.translateX, a.translateY, s, u), - (function(t, e, n, o) { - t !== e - ? (t - e > 180 ? (e += 360) : e - t > 180 && (t += 360), - o.push({ - i: n.push(i(n) + 'rotate(', null, r) - 2, - x: wn(t, e) - })) - : e && n.push(i(n) + 'rotate(' + e + r); - })(o.rotate, a.rotate, s, u), - (function(t, e, n, o) { - t !== e - ? o.push({ - i: n.push(i(n) + 'skewX(', null, r) - 2, - x: wn(t, e) - }) - : e && n.push(i(n) + 'skewX(' + e + r); - })(o.skewX, a.skewX, s, u), - (function(t, e, n, r, o, a) { - if (t !== n || e !== r) { - var s = o.push(i(o) + 'scale(', null, ',', null, ')'); - a.push({ i: s - 4, x: wn(t, n) }, { i: s - 2, x: wn(e, r) }); - } else - (1 === n && 1 === r) || - o.push(i(o) + 'scale(' + n + ',' + r + ')'); - })(o.scaleX, o.scaleY, a.scaleX, a.scaleY, s, u), - (o = a = null), - function(t) { - for (var e, n = -1, r = u.length; ++n < r; ) - s[(e = u[n]).i] = e.x(t); - return s.join(''); - } - ); - }; - } - var dr = fr( - function(t) { - return 'none' === t - ? lr - : (rr || - ((rr = document.createElement('DIV')), - (ir = document.documentElement), - (or = document.defaultView)), - (rr.style.transform = t), - (t = or - .getComputedStyle(ir.appendChild(rr), null) - .getPropertyValue('transform')), - ir.removeChild(rr), - (t = t.slice(7, -1).split(',')), - cr(+t[0], +t[1], +t[2], +t[3], +t[4], +t[5])); - }, - 'px, ', - 'px)', - 'deg)' - ), - hr = fr( - function(t) { - return null == t - ? lr - : (ar || - (ar = document.createElementNS( - 'http://www.w3.org/2000/svg', - 'g' - )), - ar.setAttribute('transform', t), - (t = ar.transform.baseVal.consolidate()) - ? ((t = t.matrix), cr(t.a, t.b, t.c, t.d, t.e, t.f)) - : lr); - }, - ', ', - ')', - ')' - ); - function pr(t, e) { - var n, r; - return function() { - var i = er(this, t), - o = i.tween; - if (o !== n) - for (var a = 0, s = (r = n = o).length; a < s; ++a) - if (r[a].name === e) { - (r = r.slice()).splice(a, 1); - break; - } - i.tween = r; - }; - } - function gr(t, e, n) { - var r, i; - if ('function' != typeof n) throw new Error(); - return function() { - var o = er(this, t), - a = o.tween; - if (a !== r) { - i = (r = a).slice(); - for (var s = { name: e, value: n }, u = 0, l = i.length; u < l; ++u) - if (i[u].name === e) { - i[u] = s; - break; - } - u === l && i.push(s); - } - o.tween = i; - }; - } - function vr(t, e, n) { - var r = t._id; - return ( - t.each(function() { - var t = er(this, r); - (t.value || (t.value = {}))[e] = n.apply(this, arguments); - }), - function(t) { - return nr(t, r).value[e]; - } - ); - } - var mr = function(t, e) { - var n; - return ('number' == typeof e - ? wn - : e instanceof Ue - ? hn - : (n = Ue(e)) - ? ((e = n), hn) - : Cn)(t, e); - }; - function yr(t) { - return function() { - this.removeAttribute(t); - }; - } - function br(t) { - return function() { - this.removeAttributeNS(t.space, t.local); - }; - } - function _r(t, e, n) { - var r, - i, - o = n + ''; - return function() { - var a = this.getAttribute(t); - return a === o ? null : a === r ? i : (i = e((r = a), n)); - }; - } - function xr(t, e, n) { - var r, - i, - o = n + ''; - return function() { - var a = this.getAttributeNS(t.space, t.local); - return a === o ? null : a === r ? i : (i = e((r = a), n)); - }; - } - function wr(t, e, n) { - var r, i, o; - return function() { - var a, - s, - u = n(this); - if (null != u) - return (a = this.getAttribute(t)) === (s = u + '') - ? null - : a === r && s === i - ? o - : ((i = s), (o = e((r = a), u))); - this.removeAttribute(t); - }; - } - function Sr(t, e, n) { - var r, i, o; - return function() { - var a, - s, - u = n(this); - if (null != u) - return (a = this.getAttributeNS(t.space, t.local)) === (s = u + '') - ? null - : a === r && s === i - ? o - : ((i = s), (o = e((r = a), u))); - this.removeAttributeNS(t.space, t.local); - }; - } - function Er(t, e) { - return function(n) { - this.setAttribute(t, e.call(this, n)); - }; - } - function kr(t, e) { - return function(n) { - this.setAttributeNS(t.space, t.local, e.call(this, n)); - }; - } - function Ar(t, e) { - var n, r; - function i() { - var i = e.apply(this, arguments); - return i !== r && (n = (r = i) && kr(t, i)), n; - } - return (i._value = e), i; - } - function Tr(t, e) { - var n, r; - function i() { - var i = e.apply(this, arguments); - return i !== r && (n = (r = i) && Er(t, i)), n; - } - return (i._value = e), i; - } - function Cr(t, e) { - return function() { - tr(this, t).delay = +e.apply(this, arguments); - }; - } - function Or(t, e) { - return ( - (e = +e), - function() { - tr(this, t).delay = e; - } - ); - } - function Pr(t, e) { - return function() { - er(this, t).duration = +e.apply(this, arguments); - }; - } - function Mr(t, e) { - return ( - (e = +e), - function() { - er(this, t).duration = e; - } - ); - } - function Lr(t, e) { - if ('function' != typeof e) throw new Error(); - return function() { - er(this, t).ease = e; - }; - } - function Dr(t, e, n) { - var r, - i, - o = (function(t) { - return (t + '') - .trim() - .split(/^|\s+/) - .every(function(t) { - var e = t.indexOf('.'); - return e >= 0 && (t = t.slice(0, e)), !t || 'start' === t; - }); - })(e) - ? tr - : er; - return function() { - var a = o(this, t), - s = a.on; - s !== r && (i = (r = s).copy()).on(e, n), (a.on = i); - }; - } - var jr = we.prototype.constructor; - function Rr(t) { - return function() { - this.style.removeProperty(t); - }; - } - function Nr(t, e, n) { - return function(r) { - this.style.setProperty(t, e.call(this, r), n); - }; - } - function zr(t, e, n) { - var r, i; - function o() { - var o = e.apply(this, arguments); - return o !== i && (r = (i = o) && Nr(t, o, n)), r; - } - return (o._value = e), o; - } - function Ir(t) { - return function(e) { - this.textContent = t.call(this, e); - }; - } - function Fr(t) { - var e, n; - function r() { - var r = t.apply(this, arguments); - return r !== n && (e = (n = r) && Ir(r)), e; - } - return (r._value = t), r; - } - var Vr = 0; - function Br(t, e, n, r) { - (this._groups = t), - (this._parents = e), - (this._name = n), - (this._id = r); - } - function Gr(t) { - return we().transition(t); - } - function Hr() { - return ++Vr; - } - var Ur = we.prototype; - function qr(t) { - return t * t * t; - } - function Wr(t) { - return --t * t * t + 1; - } - function Xr(t) { - return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2; - } - Br.prototype = Gr.prototype = { - constructor: Br, - select: function(t) { - var e = this._name, - n = this._id; - 'function' != typeof t && (t = ht(t)); - for ( - var r = this._groups, i = r.length, o = new Array(i), a = 0; - a < i; - ++a - ) - for ( - var s, - u, - l = r[a], - c = l.length, - f = (o[a] = new Array(c)), - d = 0; - d < c; - ++d - ) - (s = l[d]) && - (u = t.call(s, s.__data__, d, l)) && - ('__data__' in s && (u.__data__ = s.__data__), - (f[d] = u), - Jn(f[d], e, n, d, f, nr(s, n))); - return new Br(o, this._parents, e, n); - }, - selectAll: function(t) { - var e = this._name, - n = this._id; - 'function' != typeof t && (t = gt(t)); - for ( - var r = this._groups, i = r.length, o = [], a = [], s = 0; - s < i; - ++s - ) - for (var u, l = r[s], c = l.length, f = 0; f < c; ++f) - if ((u = l[f])) { - for ( - var d, - h = t.call(u, u.__data__, f, l), - p = nr(u, n), - g = 0, - v = h.length; - g < v; - ++g - ) - (d = h[g]) && Jn(d, e, n, g, h, p); - o.push(h), a.push(u); - } - return new Br(o, a, e, n); - }, - filter: function(t) { - 'function' != typeof t && (t = vt(t)); - for ( - var e = this._groups, n = e.length, r = new Array(n), i = 0; - i < n; - ++i - ) - for ( - var o, a = e[i], s = a.length, u = (r[i] = []), l = 0; - l < s; - ++l - ) - (o = a[l]) && t.call(o, o.__data__, l, a) && u.push(o); - return new Br(r, this._parents, this._name, this._id); - }, - merge: function(t) { - if (t._id !== this._id) throw new Error(); - for ( - var e = this._groups, - n = t._groups, - r = e.length, - i = n.length, - o = Math.min(r, i), - a = new Array(r), - s = 0; - s < o; - ++s - ) - for ( - var u, - l = e[s], - c = n[s], - f = l.length, - d = (a[s] = new Array(f)), - h = 0; - h < f; - ++h - ) - (u = l[h] || c[h]) && (d[h] = u); - for (; s < r; ++s) a[s] = e[s]; - return new Br(a, this._parents, this._name, this._id); - }, - selection: function() { - return new jr(this._groups, this._parents); - }, - transition: function() { - for ( - var t = this._name, - e = this._id, - n = Hr(), - r = this._groups, - i = r.length, - o = 0; - o < i; - ++o - ) - for (var a, s = r[o], u = s.length, l = 0; l < u; ++l) - if ((a = s[l])) { - var c = nr(a, e); - Jn(a, t, n, l, s, { - time: c.time + c.delay + c.duration, - delay: 0, - duration: c.duration, - ease: c.ease - }); - } - return new Br(r, this._parents, t, n); - }, - call: Ur.call, - nodes: Ur.nodes, - node: Ur.node, - size: Ur.size, - empty: Ur.empty, - each: Ur.each, - on: function(t, e) { - var n = this._id; - return arguments.length < 2 - ? nr(this.node(), n).on.on(t) - : this.each(Dr(n, t, e)); - }, - attr: function(t, e) { - var n = Et(t), - r = 'transform' === n ? hr : mr; - return this.attrTween( - t, - 'function' == typeof e - ? (n.local ? Sr : wr)(n, r, vr(this, 'attr.' + t, e)) - : null == e - ? (n.local ? br : yr)(n) - : (n.local ? xr : _r)(n, r, e) - ); - }, - attrTween: function(t, e) { - var n = 'attr.' + t; - if (arguments.length < 2) return (n = this.tween(n)) && n._value; - if (null == e) return this.tween(n, null); - if ('function' != typeof e) throw new Error(); - var r = Et(t); - return this.tween(n, (r.local ? Ar : Tr)(r, e)); - }, - style: function(t, e, n) { - var r = 'transform' == (t += '') ? dr : mr; - return null == e - ? this.styleTween( - t, - (function(t, e) { - var n, r, i; - return function() { - var o = Rt(this, t), - a = (this.style.removeProperty(t), Rt(this, t)); - return o === a - ? null - : o === n && a === r - ? i - : (i = e((n = o), (r = a))); - }; - })(t, r) - ).on('end.style.' + t, Rr(t)) - : 'function' == typeof e - ? this.styleTween( - t, - (function(t, e, n) { - var r, i, o; - return function() { - var a = Rt(this, t), - s = n(this), - u = s + ''; - return ( - null == s && - (this.style.removeProperty(t), (u = s = Rt(this, t))), - a === u - ? null - : a === r && u === i - ? o - : ((i = u), (o = e((r = a), s))) - ); - }; - })(t, r, vr(this, 'style.' + t, e)) - ).each( - (function(t, e) { - var n, - r, - i, - o, - a = 'style.' + e, - s = 'end.' + a; - return function() { - var u = er(this, t), - l = u.on, - c = null == u.value[a] ? o || (o = Rr(e)) : void 0; - (l === n && i === c) || (r = (n = l).copy()).on(s, (i = c)), - (u.on = r); - }; - })(this._id, t) - ) - : this.styleTween( - t, - (function(t, e, n) { - var r, - i, - o = n + ''; - return function() { - var a = Rt(this, t); - return a === o ? null : a === r ? i : (i = e((r = a), n)); - }; - })(t, r, e), - n - ).on('end.style.' + t, null); - }, - styleTween: function(t, e, n) { - var r = 'style.' + (t += ''); - if (arguments.length < 2) return (r = this.tween(r)) && r._value; - if (null == e) return this.tween(r, null); - if ('function' != typeof e) throw new Error(); - return this.tween(r, zr(t, e, null == n ? '' : n)); - }, - text: function(t) { - return this.tween( - 'text', - 'function' == typeof t - ? (function(t) { - return function() { - var e = t(this); - this.textContent = null == e ? '' : e; - }; - })(vr(this, 'text', t)) - : (function(t) { - return function() { - this.textContent = t; - }; - })(null == t ? '' : t + '') - ); - }, - textTween: function(t) { - var e = 'text'; - if (arguments.length < 1) return (e = this.tween(e)) && e._value; - if (null == t) return this.tween(e, null); - if ('function' != typeof t) throw new Error(); - return this.tween(e, Fr(t)); - }, - remove: function() { - return this.on( - 'end.remove', - ((t = this._id), - function() { - var e = this.parentNode; - for (var n in this.__transition) if (+n !== t) return; - e && e.removeChild(this); - }) - ); - var t; - }, - tween: function(t, e) { - var n = this._id; - if (((t += ''), arguments.length < 2)) { - for ( - var r, i = nr(this.node(), n).tween, o = 0, a = i.length; - o < a; - ++o - ) - if ((r = i[o]).name === t) return r.value; - return null; - } - return this.each((null == e ? pr : gr)(n, t, e)); - }, - delay: function(t) { - var e = this._id; - return arguments.length - ? this.each(('function' == typeof t ? Cr : Or)(e, t)) - : nr(this.node(), e).delay; - }, - duration: function(t) { - var e = this._id; - return arguments.length - ? this.each(('function' == typeof t ? Pr : Mr)(e, t)) - : nr(this.node(), e).duration; - }, - ease: function(t) { - var e = this._id; - return arguments.length - ? this.each(Lr(e, t)) - : nr(this.node(), e).ease; - }, - end: function() { - var t, - e, - n = this, - r = n._id, - i = n.size(); - return new Promise(function(o, a) { - var s = { value: a }, - u = { - value: function() { - 0 == --i && o(); - } - }; - n.each(function() { - var n = er(this, r), - i = n.on; - i !== t && - ((e = (t = i).copy())._.cancel.push(s), - e._.interrupt.push(s), - e._.end.push(u)), - (n.on = e); - }); - }); - } - }; - var Yr = { time: null, delay: 0, duration: 250, ease: Xr }; - function $r(t, e) { - for (var n; !(n = t.__transition) || !(n = n[e]); ) - if (!(t = t.parentNode)) return (Yr.time = Gn()), Yr; - return n; - } - (we.prototype.interrupt = function(t) { - return this.each(function() { - sr(this, t); - }); - }), - (we.prototype.transition = function(t) { - var e, n; - t instanceof Br - ? ((e = t._id), (t = t._name)) - : ((e = Hr()), - ((n = Yr).time = Gn()), - (t = null == t ? null : t + '')); - for (var r = this._groups, i = r.length, o = 0; o < i; ++o) - for (var a, s = r[o], u = s.length, l = 0; l < u; ++l) - (a = s[l]) && Jn(a, t, e, l, s, n || $r(a, e)); - return new Br(r, this._parents, t, e); - }); - var Qr = [null], - Kr = function(t, e) { - var n, - r, - i = t.__transition; - if (i) - for (r in ((e = null == e ? null : e + ''), i)) - if ((n = i[r]).state > 1 && n.name === e) - return new Br([[t]], Qr, e, +r); - return null; - }, - Zr = function(t) { - return function() { - return t; - }; - }, - Jr = function(t, e, n) { - (this.target = t), (this.type = e), (this.selection = n); - }; - function ti() { - le.stopImmediatePropagation(); - } - var ei = function() { - le.preventDefault(), le.stopImmediatePropagation(); - }, - ni = { name: 'drag' }, - ri = { name: 'space' }, - ii = { name: 'handle' }, - oi = { name: 'center' }; - function ai(t) { - return [+t[0], +t[1]]; - } - function si(t) { - return [ai(t[0]), ai(t[1])]; - } - function ui(t) { - return function(e) { - return Ln(e, le.touches, t); - }; - } - var li = { - name: 'x', - handles: ['w', 'e'].map(mi), - input: function(t, e) { - return null == t - ? null - : [ - [+t[0], e[0][1]], - [+t[1], e[1][1]] - ]; - }, - output: function(t) { - return t && [t[0][0], t[1][0]]; - } - }, - ci = { - name: 'y', - handles: ['n', 's'].map(mi), - input: function(t, e) { - return null == t - ? null - : [ - [e[0][0], +t[0]], - [e[1][0], +t[1]] - ]; - }, - output: function(t) { - return t && [t[0][1], t[1][1]]; - } - }, - fi = { - name: 'xy', - handles: ['n', 'w', 'e', 's', 'nw', 'ne', 'sw', 'se'].map(mi), - input: function(t) { - return null == t ? null : si(t); - }, - output: function(t) { - return t; - } - }, - di = { - overlay: 'crosshair', - selection: 'move', - n: 'ns-resize', - e: 'ew-resize', - s: 'ns-resize', - w: 'ew-resize', - nw: 'nwse-resize', - ne: 'nesw-resize', - se: 'nwse-resize', - sw: 'nesw-resize' - }, - hi = { e: 'w', w: 'e', nw: 'ne', ne: 'nw', se: 'sw', sw: 'se' }, - pi = { n: 's', s: 'n', nw: 'sw', ne: 'se', se: 'ne', sw: 'nw' }, - gi = { - overlay: 1, - selection: 1, - n: null, - e: 1, - s: null, - w: -1, - nw: -1, - ne: 1, - se: 1, - sw: -1 - }, - vi = { - overlay: 1, - selection: 1, - n: -1, - e: null, - s: 1, - w: null, - nw: -1, - ne: -1, - se: 1, - sw: 1 - }; - function mi(t) { - return { type: t }; - } - function yi() { - return !le.ctrlKey && !le.button; - } - function bi() { - var t = this.ownerSVGElement || this; - return t.hasAttribute('viewBox') - ? [ - [(t = t.viewBox.baseVal).x, t.y], - [t.x + t.width, t.y + t.height] - ] - : [ - [0, 0], - [t.width.baseVal.value, t.height.baseVal.value] - ]; - } - function _i() { - return navigator.maxTouchPoints || 'ontouchstart' in this; - } - function xi(t) { - for (; !t.__brush; ) if (!(t = t.parentNode)) return; - return t.__brush; - } - function wi(t) { - return t[0][0] === t[1][0] || t[0][1] === t[1][1]; - } - function Si(t) { - var e = t.__brush; - return e ? e.dim.output(e.selection) : null; - } - function Ei() { - return Ti(li); - } - function ki() { - return Ti(ci); - } - var Ai = function() { - return Ti(fi); - }; - function Ti(t) { - var e, - n = bi, - r = yi, - i = _i, - o = !0, - a = ft('start', 'brush', 'end'), - s = 6; - function u(e) { - var n = e - .property('__brush', g) - .selectAll('.overlay') - .data([mi('overlay')]); - n - .enter() - .append('rect') - .attr('class', 'overlay') - .attr('pointer-events', 'all') - .attr('cursor', di.overlay) - .merge(n) - .each(function() { - var t = xi(this).extent; - Se(this) - .attr('x', t[0][0]) - .attr('y', t[0][1]) - .attr('width', t[1][0] - t[0][0]) - .attr('height', t[1][1] - t[0][1]); - }), - e - .selectAll('.selection') - .data([mi('selection')]) - .enter() - .append('rect') - .attr('class', 'selection') - .attr('cursor', di.selection) - .attr('fill', '#777') - .attr('fill-opacity', 0.3) - .attr('stroke', '#fff') - .attr('shape-rendering', 'crispEdges'); - var r = e.selectAll('.handle').data(t.handles, function(t) { - return t.type; - }); - r.exit().remove(), - r - .enter() - .append('rect') - .attr('class', function(t) { - return 'handle handle--' + t.type; - }) - .attr('cursor', function(t) { - return di[t.type]; - }), - e - .each(l) - .attr('fill', 'none') - .attr('pointer-events', 'all') - .on('mousedown.brush', d) - .filter(i) - .on('touchstart.brush', d) - .on('touchmove.brush', h) - .on('touchend.brush touchcancel.brush', p) - .style('touch-action', 'none') - .style('-webkit-tap-highlight-color', 'rgba(0,0,0,0)'); - } - function l() { - var t = Se(this), - e = xi(this).selection; - e - ? (t - .selectAll('.selection') - .style('display', null) - .attr('x', e[0][0]) - .attr('y', e[0][1]) - .attr('width', e[1][0] - e[0][0]) - .attr('height', e[1][1] - e[0][1]), - t - .selectAll('.handle') - .style('display', null) - .attr('x', function(t) { - return 'e' === t.type[t.type.length - 1] - ? e[1][0] - s / 2 - : e[0][0] - s / 2; - }) - .attr('y', function(t) { - return 's' === t.type[0] ? e[1][1] - s / 2 : e[0][1] - s / 2; - }) - .attr('width', function(t) { - return 'n' === t.type || 's' === t.type - ? e[1][0] - e[0][0] + s - : s; - }) - .attr('height', function(t) { - return 'e' === t.type || 'w' === t.type - ? e[1][1] - e[0][1] + s - : s; - })) - : t - .selectAll('.selection,.handle') - .style('display', 'none') - .attr('x', null) - .attr('y', null) - .attr('width', null) - .attr('height', null); - } - function c(t, e, n) { - return (!n && t.__brush.emitter) || new f(t, e); - } - function f(t, e) { - (this.that = t), - (this.args = e), - (this.state = t.__brush), - (this.active = 0); - } - function d() { - if ((!e || le.touches) && r.apply(this, arguments)) { - var n, - i, - a, - s, - u, - f, - d, - h, - p, - g, - v, - m = this, - y = le.target.__data__.type, - b = - 'selection' === (o && le.metaKey ? (y = 'overlay') : y) - ? ni - : o && le.altKey - ? oi - : ii, - _ = t === ci ? null : gi[y], - x = t === li ? null : vi[y], - w = xi(m), - S = w.extent, - E = w.selection, - k = S[0][0], - A = S[0][1], - T = S[1][0], - C = S[1][1], - O = 0, - P = 0, - M = _ && x && o && le.shiftKey, - L = le.touches ? ui(le.changedTouches[0].identifier) : Dn, - D = L(m), - j = D, - R = c(m, arguments, !0).beforestart(); - 'overlay' === y - ? (E && (p = !0), - (w.selection = E = [ - [(n = t === ci ? k : D[0]), (a = t === li ? A : D[1])], - [(u = t === ci ? T : n), (d = t === li ? C : a)] - ])) - : ((n = E[0][0]), (a = E[0][1]), (u = E[1][0]), (d = E[1][1])), - (i = n), - (s = a), - (f = u), - (h = d); - var N = Se(m).attr('pointer-events', 'none'), - z = N.selectAll('.overlay').attr('cursor', di[y]); - if (le.touches) (R.moved = F), (R.ended = B); - else { - var I = Se(le.view) - .on('mousemove.brush', F, !0) - .on('mouseup.brush', B, !0); - o && I.on('keydown.brush', G, !0).on('keyup.brush', H, !0), - Ae(le.view); - } - ti(), sr(m), l.call(m), R.start(); - } - function F() { - var t = L(m); - !M || - g || - v || - (Math.abs(t[0] - j[0]) > Math.abs(t[1] - j[1]) - ? (v = !0) - : (g = !0)), - (j = t), - (p = !0), - ei(), - V(); - } - function V() { - var t; - switch (((O = j[0] - D[0]), (P = j[1] - D[1]), b)) { - case ri: - case ni: - _ && - ((O = Math.max(k - n, Math.min(T - u, O))), - (i = n + O), - (f = u + O)), - x && - ((P = Math.max(A - a, Math.min(C - d, P))), - (s = a + P), - (h = d + P)); - break; - case ii: - _ < 0 - ? ((O = Math.max(k - n, Math.min(T - n, O))), - (i = n + O), - (f = u)) - : _ > 0 && - ((O = Math.max(k - u, Math.min(T - u, O))), - (i = n), - (f = u + O)), - x < 0 - ? ((P = Math.max(A - a, Math.min(C - a, P))), - (s = a + P), - (h = d)) - : x > 0 && - ((P = Math.max(A - d, Math.min(C - d, P))), - (s = a), - (h = d + P)); - break; - case oi: - _ && - ((i = Math.max(k, Math.min(T, n - O * _))), - (f = Math.max(k, Math.min(T, u + O * _)))), - x && - ((s = Math.max(A, Math.min(C, a - P * x))), - (h = Math.max(A, Math.min(C, d + P * x)))); - } - f < i && - ((_ *= -1), - (t = n), - (n = u), - (u = t), - (t = i), - (i = f), - (f = t), - y in hi && z.attr('cursor', di[(y = hi[y])])), - h < s && - ((x *= -1), - (t = a), - (a = d), - (d = t), - (t = s), - (s = h), - (h = t), - y in pi && z.attr('cursor', di[(y = pi[y])])), - w.selection && (E = w.selection), - g && ((i = E[0][0]), (f = E[1][0])), - v && ((s = E[0][1]), (h = E[1][1])), - (E[0][0] === i && - E[0][1] === s && - E[1][0] === f && - E[1][1] === h) || - ((w.selection = [ - [i, s], - [f, h] - ]), - l.call(m), - R.brush()); - } - function B() { - if ((ti(), le.touches)) { - if (le.touches.length) return; - e && clearTimeout(e), - (e = setTimeout(function() { - e = null; - }, 500)); - } else - Te(le.view, p), - I.on( - 'keydown.brush keyup.brush mousemove.brush mouseup.brush', - null - ); - N.attr('pointer-events', 'all'), - z.attr('cursor', di.overlay), - w.selection && (E = w.selection), - wi(E) && ((w.selection = null), l.call(m)), - R.end(); - } - function G() { - switch (le.keyCode) { - case 16: - M = _ && x; - break; - case 18: - b === ii && - (_ && ((u = f - O * _), (n = i + O * _)), - x && ((d = h - P * x), (a = s + P * x)), - (b = oi), - V()); - break; - case 32: - (b !== ii && b !== oi) || - (_ < 0 ? (u = f - O) : _ > 0 && (n = i - O), - x < 0 ? (d = h - P) : x > 0 && (a = s - P), - (b = ri), - z.attr('cursor', di.selection), - V()); - break; - default: - return; - } - ei(); - } - function H() { - switch (le.keyCode) { - case 16: - M && ((g = v = M = !1), V()); - break; - case 18: - b === oi && - (_ < 0 ? (u = f) : _ > 0 && (n = i), - x < 0 ? (d = h) : x > 0 && (a = s), - (b = ii), - V()); - break; - case 32: - b === ri && - (le.altKey - ? (_ && ((u = f - O * _), (n = i + O * _)), - x && ((d = h - P * x), (a = s + P * x)), - (b = oi)) - : (_ < 0 ? (u = f) : _ > 0 && (n = i), - x < 0 ? (d = h) : x > 0 && (a = s), - (b = ii)), - z.attr('cursor', di[y]), - V()); - break; - default: - return; - } - ei(); - } - } - function h() { - c(this, arguments).moved(); - } - function p() { - c(this, arguments).ended(); - } - function g() { - var e = this.__brush || { selection: null }; - return (e.extent = si(n.apply(this, arguments))), (e.dim = t), e; - } - return ( - (u.move = function(e, n) { - e.selection - ? e - .on('start.brush', function() { - c(this, arguments) - .beforestart() - .start(); - }) - .on('interrupt.brush end.brush', function() { - c(this, arguments).end(); - }) - .tween('brush', function() { - var e = this, - r = e.__brush, - i = c(e, arguments), - o = r.selection, - a = t.input( - 'function' == typeof n ? n.apply(this, arguments) : n, - r.extent - ), - s = On(o, a); - function u(t) { - (r.selection = 1 === t && null === a ? null : s(t)), - l.call(e), - i.brush(); - } - return null !== o && null !== a ? u : u(1); - }) - : e.each(function() { - var e = this, - r = arguments, - i = e.__brush, - o = t.input( - 'function' == typeof n ? n.apply(e, r) : n, - i.extent - ), - a = c(e, r).beforestart(); - sr(e), - (i.selection = null === o ? null : o), - l.call(e), - a - .start() - .brush() - .end(); - }); - }), - (u.clear = function(t) { - u.move(t, null); - }), - (f.prototype = { - beforestart: function() { - return ( - 1 == ++this.active && - ((this.state.emitter = this), (this.starting = !0)), - this - ); - }, - start: function() { - return ( - this.starting - ? ((this.starting = !1), this.emit('start')) - : this.emit('brush'), - this - ); - }, - brush: function() { - return this.emit('brush'), this; - }, - end: function() { - return ( - 0 == --this.active && - (delete this.state.emitter, this.emit('end')), - this - ); - }, - emit: function(e) { - ge(new Jr(u, e, t.output(this.state.selection)), a.apply, a, [ - e, - this.that, - this.args - ]); - } - }), - (u.extent = function(t) { - return arguments.length - ? ((n = 'function' == typeof t ? t : Zr(si(t))), u) - : n; - }), - (u.filter = function(t) { - return arguments.length - ? ((r = 'function' == typeof t ? t : Zr(!!t)), u) - : r; - }), - (u.touchable = function(t) { - return arguments.length - ? ((i = 'function' == typeof t ? t : Zr(!!t)), u) - : i; - }), - (u.handleSize = function(t) { - return arguments.length ? ((s = +t), u) : s; - }), - (u.keyModifiers = function(t) { - return arguments.length ? ((o = !!t), u) : o; - }), - (u.on = function() { - var t = a.on.apply(a, arguments); - return t === a ? u : t; - }), - u - ); - } - var Ci = Math.cos, - Oi = Math.sin, - Pi = Math.PI, - Mi = Pi / 2, - Li = 2 * Pi, - Di = Math.max; - function ji(t) { - return function(e, n) { - return t( - e.source.value + e.target.value, - n.source.value + n.target.value - ); - }; - } - var Ri = function() { - var t = 0, - e = null, - n = null, - r = null; - function i(i) { - var o, - a, - s, - u, - l, - c, - f = i.length, - d = [], - h = S(f), - p = [], - g = [], - v = (g.groups = new Array(f)), - m = new Array(f * f); - for (o = 0, l = -1; ++l < f; ) { - for (a = 0, c = -1; ++c < f; ) a += i[l][c]; - d.push(a), p.push(S(f)), (o += a); - } - for ( - e && - h.sort(function(t, n) { - return e(d[t], d[n]); - }), - n && - p.forEach(function(t, e) { - t.sort(function(t, r) { - return n(i[e][t], i[e][r]); - }); - }), - u = (o = Di(0, Li - t * f) / o) ? t : Li / f, - a = 0, - l = -1; - ++l < f; - - ) { - for (s = a, c = -1; ++c < f; ) { - var y = h[l], - b = p[y][c], - _ = i[y][b], - x = a, - w = (a += _ * o); - m[b * f + y] = { - index: y, - subindex: b, - startAngle: x, - endAngle: w, - value: _ - }; - } - (v[y] = { index: y, startAngle: s, endAngle: a, value: d[y] }), - (a += u); - } - for (l = -1; ++l < f; ) - for (c = l - 1; ++c < f; ) { - var E = m[c * f + l], - k = m[l * f + c]; - (E.value || k.value) && - g.push( - E.value < k.value - ? { source: k, target: E } - : { source: E, target: k } - ); - } - return r ? g.sort(r) : g; - } - return ( - (i.padAngle = function(e) { - return arguments.length ? ((t = Di(0, e)), i) : t; - }), - (i.sortGroups = function(t) { - return arguments.length ? ((e = t), i) : e; - }), - (i.sortSubgroups = function(t) { - return arguments.length ? ((n = t), i) : n; - }), - (i.sortChords = function(t) { - return arguments.length - ? (null == t ? (r = null) : ((r = ji(t))._ = t), i) - : r && r._; - }), - i - ); - }, - Ni = Array.prototype.slice, - zi = function(t) { - return function() { - return t; - }; - }, - Ii = Math.PI, - Fi = 2 * Ii, - Vi = Fi - 1e-6; - function Bi() { - (this._x0 = this._y0 = this._x1 = this._y1 = null), (this._ = ''); - } - function Gi() { - return new Bi(); - } - Bi.prototype = Gi.prototype = { - constructor: Bi, - moveTo: function(t, e) { - this._ += - 'M' + (this._x0 = this._x1 = +t) + ',' + (this._y0 = this._y1 = +e); - }, - closePath: function() { - null !== this._x1 && - ((this._x1 = this._x0), (this._y1 = this._y0), (this._ += 'Z')); - }, - lineTo: function(t, e) { - this._ += 'L' + (this._x1 = +t) + ',' + (this._y1 = +e); - }, - quadraticCurveTo: function(t, e, n, r) { - this._ += - 'Q' + +t + ',' + +e + ',' + (this._x1 = +n) + ',' + (this._y1 = +r); - }, - bezierCurveTo: function(t, e, n, r, i, o) { - this._ += - 'C' + - +t + - ',' + - +e + - ',' + - +n + - ',' + - +r + - ',' + - (this._x1 = +i) + - ',' + - (this._y1 = +o); - }, - arcTo: function(t, e, n, r, i) { - (t = +t), (e = +e), (n = +n), (r = +r), (i = +i); - var o = this._x1, - a = this._y1, - s = n - t, - u = r - e, - l = o - t, - c = a - e, - f = l * l + c * c; - if (i < 0) throw new Error('negative radius: ' + i); - if (null === this._x1) - this._ += 'M' + (this._x1 = t) + ',' + (this._y1 = e); - else if (f > 1e-6) - if (Math.abs(c * s - u * l) > 1e-6 && i) { - var d = n - o, - h = r - a, - p = s * s + u * u, - g = d * d + h * h, - v = Math.sqrt(p), - m = Math.sqrt(f), - y = - i * Math.tan((Ii - Math.acos((p + f - g) / (2 * v * m))) / 2), - b = y / m, - _ = y / v; - Math.abs(b - 1) > 1e-6 && - (this._ += 'L' + (t + b * l) + ',' + (e + b * c)), - (this._ += - 'A' + - i + - ',' + - i + - ',0,0,' + - +(c * d > l * h) + - ',' + - (this._x1 = t + _ * s) + - ',' + - (this._y1 = e + _ * u)); - } else this._ += 'L' + (this._x1 = t) + ',' + (this._y1 = e); - else; - }, - arc: function(t, e, n, r, i, o) { - (t = +t), (e = +e), (o = !!o); - var a = (n = +n) * Math.cos(r), - s = n * Math.sin(r), - u = t + a, - l = e + s, - c = 1 ^ o, - f = o ? r - i : i - r; - if (n < 0) throw new Error('negative radius: ' + n); - null === this._x1 - ? (this._ += 'M' + u + ',' + l) - : (Math.abs(this._x1 - u) > 1e-6 || - Math.abs(this._y1 - l) > 1e-6) && - (this._ += 'L' + u + ',' + l), - n && - (f < 0 && (f = (f % Fi) + Fi), - f > Vi - ? (this._ += - 'A' + - n + - ',' + - n + - ',0,1,' + - c + - ',' + - (t - a) + - ',' + - (e - s) + - 'A' + - n + - ',' + - n + - ',0,1,' + - c + - ',' + - (this._x1 = u) + - ',' + - (this._y1 = l)) - : f > 1e-6 && - (this._ += - 'A' + - n + - ',' + - n + - ',0,' + - +(f >= Ii) + - ',' + - c + - ',' + - (this._x1 = t + n * Math.cos(i)) + - ',' + - (this._y1 = e + n * Math.sin(i)))); - }, - rect: function(t, e, n, r) { - this._ += - 'M' + - (this._x0 = this._x1 = +t) + - ',' + - (this._y0 = this._y1 = +e) + - 'h' + - +n + - 'v' + - +r + - 'h' + - -n + - 'Z'; - }, - toString: function() { - return this._; - } - }; - var Hi = Gi; - function Ui(t) { - return t.source; - } - function qi(t) { - return t.target; - } - function Wi(t) { - return t.radius; - } - function Xi(t) { - return t.startAngle; - } - function Yi(t) { - return t.endAngle; - } - var $i = function() { - var t = Ui, - e = qi, - n = Wi, - r = Xi, - i = Yi, - o = null; - function a() { - var a, - s = Ni.call(arguments), - u = t.apply(this, s), - l = e.apply(this, s), - c = +n.apply(this, ((s[0] = u), s)), - f = r.apply(this, s) - Mi, - d = i.apply(this, s) - Mi, - h = c * Ci(f), - p = c * Oi(f), - g = +n.apply(this, ((s[0] = l), s)), - v = r.apply(this, s) - Mi, - m = i.apply(this, s) - Mi; - if ( - (o || (o = a = Hi()), - o.moveTo(h, p), - o.arc(0, 0, c, f, d), - (f === v && d === m) || - (o.quadraticCurveTo(0, 0, g * Ci(v), g * Oi(v)), - o.arc(0, 0, g, v, m)), - o.quadraticCurveTo(0, 0, h, p), - o.closePath(), - a) - ) - return (o = null), a + '' || null; - } - return ( - (a.radius = function(t) { - return arguments.length - ? ((n = 'function' == typeof t ? t : zi(+t)), a) - : n; - }), - (a.startAngle = function(t) { - return arguments.length - ? ((r = 'function' == typeof t ? t : zi(+t)), a) - : r; - }), - (a.endAngle = function(t) { - return arguments.length - ? ((i = 'function' == typeof t ? t : zi(+t)), a) - : i; - }), - (a.source = function(e) { - return arguments.length ? ((t = e), a) : t; - }), - (a.target = function(t) { - return arguments.length ? ((e = t), a) : e; - }), - (a.context = function(t) { - return arguments.length ? ((o = null == t ? null : t), a) : o; - }), - a - ); - }; - function Qi() {} - function Ki(t, e) { - var n = new Qi(); - if (t instanceof Qi) - t.each(function(t, e) { - n.set(e, t); - }); - else if (Array.isArray(t)) { - var r, - i = -1, - o = t.length; - if (null == e) for (; ++i < o; ) n.set(i, t[i]); - else for (; ++i < o; ) n.set(e((r = t[i]), i, t), r); - } else if (t) for (var a in t) n.set(a, t[a]); - return n; - } - Qi.prototype = Ki.prototype = { - constructor: Qi, - has: function(t) { - return '$' + t in this; - }, - get: function(t) { - return this['$' + t]; - }, - set: function(t, e) { - return (this['$' + t] = e), this; - }, - remove: function(t) { - var e = '$' + t; - return e in this && delete this[e]; - }, - clear: function() { - for (var t in this) '$' === t[0] && delete this[t]; - }, - keys: function() { - var t = []; - for (var e in this) '$' === e[0] && t.push(e.slice(1)); - return t; - }, - values: function() { - var t = []; - for (var e in this) '$' === e[0] && t.push(this[e]); - return t; - }, - entries: function() { - var t = []; - for (var e in this) - '$' === e[0] && t.push({ key: e.slice(1), value: this[e] }); - return t; - }, - size: function() { - var t = 0; - for (var e in this) '$' === e[0] && ++t; - return t; - }, - empty: function() { - for (var t in this) if ('$' === t[0]) return !1; - return !0; - }, - each: function(t) { - for (var e in this) '$' === e[0] && t(this[e], e.slice(1), this); - } - }; - var Zi = Ki, - Ji = function() { - var t, - e, - n, - r = [], - i = []; - function o(n, i, a, s) { - if (i >= r.length) - return null != t && n.sort(t), null != e ? e(n) : n; - for ( - var u, l, c, f = -1, d = n.length, h = r[i++], p = Zi(), g = a(); - ++f < d; - - ) - (c = p.get((u = h((l = n[f])) + ''))) ? c.push(l) : p.set(u, [l]); - return ( - p.each(function(t, e) { - s(g, e, o(t, i, a, s)); - }), - g - ); - } - return (n = { - object: function(t) { - return o(t, 0, to, eo); - }, - map: function(t) { - return o(t, 0, no, ro); - }, - entries: function(t) { - return (function t(n, o) { - if (++o > r.length) return n; - var a, - s = i[o - 1]; - return ( - null != e && o >= r.length - ? (a = n.entries()) - : ((a = []), - n.each(function(e, n) { - a.push({ key: n, values: t(e, o) }); - })), - null != s - ? a.sort(function(t, e) { - return s(t.key, e.key); - }) - : a - ); - })(o(t, 0, no, ro), 0); - }, - key: function(t) { - return r.push(t), n; - }, - sortKeys: function(t) { - return (i[r.length - 1] = t), n; - }, - sortValues: function(e) { - return (t = e), n; - }, - rollup: function(t) { - return (e = t), n; - } - }); - }; - function to() { - return {}; - } - function eo(t, e, n) { - t[e] = n; - } - function no() { - return Zi(); - } - function ro(t, e, n) { - t.set(e, n); - } - function io() {} - var oo = Zi.prototype; - function ao(t, e) { - var n = new io(); - if (t instanceof io) - t.each(function(t) { - n.add(t); - }); - else if (t) { - var r = -1, - i = t.length; - if (null == e) for (; ++r < i; ) n.add(t[r]); - else for (; ++r < i; ) n.add(e(t[r], r, t)); - } - return n; - } - io.prototype = ao.prototype = { - constructor: io, - has: oo.has, - add: function(t) { - return (this['$' + (t += '')] = t), this; - }, - remove: oo.remove, - clear: oo.clear, - values: oo.keys, - size: oo.size, - empty: oo.empty, - each: oo.each - }; - var so = ao, - uo = function(t) { - var e = []; - for (var n in t) e.push(n); - return e; - }, - lo = function(t) { - var e = []; - for (var n in t) e.push(t[n]); - return e; - }, - co = function(t) { - var e = []; - for (var n in t) e.push({ key: n, value: t[n] }); - return e; - }, - fo = Math.PI / 180, - ho = 180 / Math.PI; - function po(t) { - if (t instanceof mo) return new mo(t.l, t.a, t.b, t.opacity); - if (t instanceof ko) return Ao(t); - t instanceof $e || (t = Xe(t)); - var e, - n, - r = xo(t.r), - i = xo(t.g), - o = xo(t.b), - a = yo((0.2225045 * r + 0.7168786 * i + 0.0606169 * o) / 1); - return ( - r === i && i === o - ? (e = n = a) - : ((e = yo( - (0.4360747 * r + 0.3850649 * i + 0.1430804 * o) / 0.96422 - )), - (n = yo( - (0.0139322 * r + 0.0971045 * i + 0.7141733 * o) / 0.82521 - ))), - new mo(116 * a - 16, 500 * (e - a), 200 * (a - n), t.opacity) - ); - } - function go(t, e) { - return new mo(t, 0, 0, null == e ? 1 : e); - } - function vo(t, e, n, r) { - return 1 === arguments.length - ? po(t) - : new mo(t, e, n, null == r ? 1 : r); - } - function mo(t, e, n, r) { - (this.l = +t), (this.a = +e), (this.b = +n), (this.opacity = +r); - } - function yo(t) { - return t > (6 / 29) * (6 / 29) * (6 / 29) - ? Math.pow(t, 1 / 3) - : t / ((6 / 29) * 3 * (6 / 29)) + 4 / 29; - } - function bo(t) { - return t > 6 / 29 ? t * t * t : (6 / 29) * 3 * (6 / 29) * (t - 4 / 29); - } - function _o(t) { - return ( - 255 * - (t <= 0.0031308 ? 12.92 * t : 1.055 * Math.pow(t, 1 / 2.4) - 0.055) - ); - } - function xo(t) { - return (t /= 255) <= 0.04045 - ? t / 12.92 - : Math.pow((t + 0.055) / 1.055, 2.4); - } - function wo(t) { - if (t instanceof ko) return new ko(t.h, t.c, t.l, t.opacity); - if ((t instanceof mo || (t = po(t)), 0 === t.a && 0 === t.b)) - return new ko(NaN, 0 < t.l && t.l < 100 ? 0 : NaN, t.l, t.opacity); - var e = Math.atan2(t.b, t.a) * ho; - return new ko( - e < 0 ? e + 360 : e, - Math.sqrt(t.a * t.a + t.b * t.b), - t.l, - t.opacity - ); - } - function So(t, e, n, r) { - return 1 === arguments.length - ? wo(t) - : new ko(n, e, t, null == r ? 1 : r); - } - function Eo(t, e, n, r) { - return 1 === arguments.length - ? wo(t) - : new ko(t, e, n, null == r ? 1 : r); - } - function ko(t, e, n, r) { - (this.h = +t), (this.c = +e), (this.l = +n), (this.opacity = +r); - } - function Ao(t) { - if (isNaN(t.h)) return new mo(t.l, 0, 0, t.opacity); - var e = t.h * fo; - return new mo(t.l, Math.cos(e) * t.c, Math.sin(e) * t.c, t.opacity); - } - Ce( - mo, - vo, - Oe(Pe, { - brighter: function(t) { - return new mo( - this.l + 18 * (null == t ? 1 : t), - this.a, - this.b, - this.opacity - ); - }, - darker: function(t) { - return new mo( - this.l - 18 * (null == t ? 1 : t), - this.a, - this.b, - this.opacity - ); - }, - rgb: function() { - var t = (this.l + 16) / 116, - e = isNaN(this.a) ? t : t + this.a / 500, - n = isNaN(this.b) ? t : t - this.b / 200; - return new $e( - _o( - 3.1338561 * (e = 0.96422 * bo(e)) - - 1.6168667 * (t = 1 * bo(t)) - - 0.4906146 * (n = 0.82521 * bo(n)) - ), - _o(-0.9787684 * e + 1.9161415 * t + 0.033454 * n), - _o(0.0719453 * e - 0.2289914 * t + 1.4052427 * n), - this.opacity - ); - } - }) - ), - Ce( - ko, - Eo, - Oe(Pe, { - brighter: function(t) { - return new ko( - this.h, - this.c, - this.l + 18 * (null == t ? 1 : t), - this.opacity - ); - }, - darker: function(t) { - return new ko( - this.h, - this.c, - this.l - 18 * (null == t ? 1 : t), - this.opacity - ); - }, - rgb: function() { - return Ao(this).rgb(); - } - }) - ); - var To = -0.29227, - Co = -1.7884503806, - Oo = 3.5172982438, - Po = -0.6557636667999999; - function Mo(t) { - if (t instanceof Do) return new Do(t.h, t.s, t.l, t.opacity); - t instanceof $e || (t = Xe(t)); - var e = t.r / 255, - n = t.g / 255, - r = t.b / 255, - i = (Po * r + Co * e - Oo * n) / (Po + Co - Oo), - o = r - i, - a = (1.97294 * (n - i) - To * o) / -0.90649, - s = Math.sqrt(a * a + o * o) / (1.97294 * i * (1 - i)), - u = s ? Math.atan2(a, o) * ho - 120 : NaN; - return new Do(u < 0 ? u + 360 : u, s, i, t.opacity); - } - function Lo(t, e, n, r) { - return 1 === arguments.length - ? Mo(t) - : new Do(t, e, n, null == r ? 1 : r); - } - function Do(t, e, n, r) { - (this.h = +t), (this.s = +e), (this.l = +n), (this.opacity = +r); - } - Ce( - Do, - Lo, - Oe(Pe, { - brighter: function(t) { - return ( - (t = null == t ? 1 / 0.7 : Math.pow(1 / 0.7, t)), - new Do(this.h, this.s, this.l * t, this.opacity) - ); - }, - darker: function(t) { - return ( - (t = null == t ? 0.7 : Math.pow(0.7, t)), - new Do(this.h, this.s, this.l * t, this.opacity) - ); - }, - rgb: function() { - var t = isNaN(this.h) ? 0 : (this.h + 120) * fo, - e = +this.l, - n = isNaN(this.s) ? 0 : this.s * e * (1 - e), - r = Math.cos(t), - i = Math.sin(t); - return new $e( - 255 * (e + n * (-0.14861 * r + 1.78277 * i)), - 255 * (e + n * (To * r + -0.90649 * i)), - 255 * (e + n * (1.97294 * r)), - this.opacity - ); - } - }) - ); - var jo = Array.prototype.slice, - Ro = function(t, e) { - return t - e; - }, - No = function(t) { - return function() { - return t; - }; - }, - zo = function(t, e) { - for (var n, r = -1, i = e.length; ++r < i; ) - if ((n = Io(t, e[r]))) return n; - return 0; - }; - function Io(t, e) { - for ( - var n = e[0], r = e[1], i = -1, o = 0, a = t.length, s = a - 1; - o < a; - s = o++ - ) { - var u = t[o], - l = u[0], - c = u[1], - f = t[s], - d = f[0], - h = f[1]; - if (Fo(u, f, e)) return 0; - c > r != h > r && n < ((d - l) * (r - c)) / (h - c) + l && (i = -i); - } - return i; - } - function Fo(t, e, n) { - var r, i, o, a; - return ( - (function(t, e, n) { - return ( - (e[0] - t[0]) * (n[1] - t[1]) == (n[0] - t[0]) * (e[1] - t[1]) - ); - })(t, e, n) && - ((i = t[(r = +(t[0] === e[0]))]), - (o = n[r]), - (a = e[r]), - (i <= o && o <= a) || (a <= o && o <= i)) - ); - } - var Vo = function() {}, - Bo = [ - [], - [ - [ - [1, 1.5], - [0.5, 1] - ] - ], - [ - [ - [1.5, 1], - [1, 1.5] - ] - ], - [ - [ - [1.5, 1], - [0.5, 1] - ] - ], - [ - [ - [1, 0.5], - [1.5, 1] - ] - ], - [ - [ - [1, 1.5], - [0.5, 1] - ], - [ - [1, 0.5], - [1.5, 1] - ] - ], - [ - [ - [1, 0.5], - [1, 1.5] - ] - ], - [ - [ - [1, 0.5], - [0.5, 1] - ] - ], - [ - [ - [0.5, 1], - [1, 0.5] - ] - ], - [ - [ - [1, 1.5], - [1, 0.5] - ] - ], - [ - [ - [0.5, 1], - [1, 0.5] - ], - [ - [1.5, 1], - [1, 1.5] - ] - ], - [ - [ - [1.5, 1], - [1, 0.5] - ] - ], - [ - [ - [0.5, 1], - [1.5, 1] - ] - ], - [ - [ - [1, 1.5], - [1.5, 1] - ] - ], - [ - [ - [0.5, 1], - [1, 1.5] - ] - ], - [] - ], - Go = function() { - var t = 1, - e = 1, - n = P, - r = s; - function i(t) { - var e = n(t); - if (Array.isArray(e)) e = e.slice().sort(Ro); - else { - var r = m(t), - i = r[0], - a = r[1]; - (e = O(i, a, e)), - (e = S(Math.floor(i / e) * e, Math.floor(a / e) * e, e)); - } - return e.map(function(e) { - return o(t, e); - }); - } - function o(n, i) { - var o = [], - s = []; - return ( - (function(n, r, i) { - var o, - s, - u, - l, - c, - f, - d = new Array(), - h = new Array(); - (o = s = -1), (l = n[0] >= r), Bo[l << 1].forEach(p); - for (; ++o < t - 1; ) - (u = l), (l = n[o + 1] >= r), Bo[u | (l << 1)].forEach(p); - Bo[l << 0].forEach(p); - for (; ++s < e - 1; ) { - for ( - o = -1, - l = n[s * t + t] >= r, - c = n[s * t] >= r, - Bo[(l << 1) | (c << 2)].forEach(p); - ++o < t - 1; - - ) - (u = l), - (l = n[s * t + t + o + 1] >= r), - (f = c), - (c = n[s * t + o + 1] >= r), - Bo[u | (l << 1) | (c << 2) | (f << 3)].forEach(p); - Bo[l | (c << 3)].forEach(p); - } - (o = -1), (c = n[s * t] >= r), Bo[c << 2].forEach(p); - for (; ++o < t - 1; ) - (f = c), - (c = n[s * t + o + 1] >= r), - Bo[(c << 2) | (f << 3)].forEach(p); - function p(t) { - var e, - n, - r = [t[0][0] + o, t[0][1] + s], - u = [t[1][0] + o, t[1][1] + s], - l = a(r), - c = a(u); - (e = h[l]) - ? (n = d[c]) - ? (delete h[e.end], - delete d[n.start], - e === n - ? (e.ring.push(u), i(e.ring)) - : (d[e.start] = h[n.end] = { - start: e.start, - end: n.end, - ring: e.ring.concat(n.ring) - })) - : (delete h[e.end], e.ring.push(u), (h[(e.end = c)] = e)) - : (e = d[c]) - ? (n = h[l]) - ? (delete d[e.start], - delete h[n.end], - e === n - ? (e.ring.push(u), i(e.ring)) - : (d[n.start] = h[e.end] = { - start: n.start, - end: e.end, - ring: n.ring.concat(e.ring) - })) - : (delete d[e.start], - e.ring.unshift(r), - (d[(e.start = l)] = e)) - : (d[l] = h[c] = { start: l, end: c, ring: [r, u] }); - } - Bo[c << 3].forEach(p); - })(n, i, function(t) { - r(t, n, i), - (function(t) { - for ( - var e = 0, - n = t.length, - r = t[n - 1][1] * t[0][0] - t[n - 1][0] * t[0][1]; - ++e < n; - - ) - r += t[e - 1][1] * t[e][0] - t[e - 1][0] * t[e][1]; - return r; - })(t) > 0 - ? o.push([t]) - : s.push(t); - }), - s.forEach(function(t) { - for (var e, n = 0, r = o.length; n < r; ++n) - if (-1 !== zo((e = o[n])[0], t)) return void e.push(t); - }), - { type: 'MultiPolygon', value: i, coordinates: o } - ); - } - function a(e) { - return 2 * e[0] + e[1] * (t + 1) * 4; - } - function s(n, r, i) { - n.forEach(function(n) { - var o, - a = n[0], - s = n[1], - u = 0 | a, - l = 0 | s, - c = r[l * t + u]; - a > 0 && - a < t && - u === a && - ((o = r[l * t + u - 1]), (n[0] = a + (i - o) / (c - o) - 0.5)), - s > 0 && - s < e && - l === s && - ((o = r[(l - 1) * t + u]), - (n[1] = s + (i - o) / (c - o) - 0.5)); - }); - } - return ( - (i.contour = o), - (i.size = function(n) { - if (!arguments.length) return [t, e]; - var r = Math.ceil(n[0]), - o = Math.ceil(n[1]); - if (!(r > 0 && o > 0)) throw new Error('invalid size'); - return (t = r), (e = o), i; - }), - (i.thresholds = function(t) { - return arguments.length - ? ((n = - 'function' == typeof t - ? t - : Array.isArray(t) - ? No(jo.call(t)) - : No(t)), - i) - : n; - }), - (i.smooth = function(t) { - return arguments.length ? ((r = t ? s : Vo), i) : r === s; - }), - i - ); - }; - function Ho(t, e, n) { - for (var r = t.width, i = t.height, o = 1 + (n << 1), a = 0; a < i; ++a) - for (var s = 0, u = 0; s < r + n; ++s) - s < r && (u += t.data[s + a * r]), - s >= n && - (s >= o && (u -= t.data[s - o + a * r]), - (e.data[s - n + a * r] = - u / Math.min(s + 1, r - 1 + o - s, o))); - } - function Uo(t, e, n) { - for (var r = t.width, i = t.height, o = 1 + (n << 1), a = 0; a < r; ++a) - for (var s = 0, u = 0; s < i + n; ++s) - s < i && (u += t.data[a + s * r]), - s >= n && - (s >= o && (u -= t.data[a + (s - o) * r]), - (e.data[a + (s - n) * r] = - u / Math.min(s + 1, i - 1 + o - s, o))); - } - function qo(t) { - return t[0]; - } - function Wo(t) { - return t[1]; - } - function Xo() { - return 1; - } - var Yo = function() { - var t = qo, - e = Wo, - n = Xo, - r = 960, - i = 500, - o = 20, - a = 2, - s = 3 * o, - u = (r + 2 * s) >> a, - l = (i + 2 * s) >> a, - c = No(20); - function f(r) { - var i = new Float32Array(u * l), - f = new Float32Array(u * l); - r.forEach(function(r, o, c) { - var f = (+t(r, o, c) + s) >> a, - d = (+e(r, o, c) + s) >> a, - h = +n(r, o, c); - f >= 0 && f < u && d >= 0 && d < l && (i[f + d * u] += h); - }), - Ho( - { width: u, height: l, data: i }, - { width: u, height: l, data: f }, - o >> a - ), - Uo( - { width: u, height: l, data: f }, - { width: u, height: l, data: i }, - o >> a - ), - Ho( - { width: u, height: l, data: i }, - { width: u, height: l, data: f }, - o >> a - ), - Uo( - { width: u, height: l, data: f }, - { width: u, height: l, data: i }, - o >> a - ), - Ho( - { width: u, height: l, data: i }, - { width: u, height: l, data: f }, - o >> a - ), - Uo( - { width: u, height: l, data: f }, - { width: u, height: l, data: i }, - o >> a - ); - var h = c(i); - if (!Array.isArray(h)) { - var p = R(i); - (h = O(0, p, h)), (h = S(0, Math.floor(p / h) * h, h)).shift(); - } - return Go() - .thresholds(h) - .size([u, l])(i) - .map(d); - } - function d(t) { - return ( - (t.value *= Math.pow(2, -2 * a)), t.coordinates.forEach(h), t - ); - } - function h(t) { - t.forEach(p); - } - function p(t) { - t.forEach(g); - } - function g(t) { - (t[0] = t[0] * Math.pow(2, a) - s), - (t[1] = t[1] * Math.pow(2, a) - s); - } - function v() { - return (u = (r + 2 * (s = 3 * o)) >> a), (l = (i + 2 * s) >> a), f; - } - return ( - (f.x = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : No(+e)), f) - : t; - }), - (f.y = function(t) { - return arguments.length - ? ((e = 'function' == typeof t ? t : No(+t)), f) - : e; - }), - (f.weight = function(t) { - return arguments.length - ? ((n = 'function' == typeof t ? t : No(+t)), f) - : n; - }), - (f.size = function(t) { - if (!arguments.length) return [r, i]; - var e = Math.ceil(t[0]), - n = Math.ceil(t[1]); - if (!(e >= 0 || e >= 0)) throw new Error('invalid size'); - return (r = e), (i = n), v(); - }), - (f.cellSize = function(t) { - if (!arguments.length) return 1 << a; - if (!((t = +t) >= 1)) throw new Error('invalid cell size'); - return (a = Math.floor(Math.log(t) / Math.LN2)), v(); - }), - (f.thresholds = function(t) { - return arguments.length - ? ((c = - 'function' == typeof t - ? t - : Array.isArray(t) - ? No(jo.call(t)) - : No(t)), - f) - : c; - }), - (f.bandwidth = function(t) { - if (!arguments.length) return Math.sqrt(o * (o + 1)); - if (!((t = +t) >= 0)) throw new Error('invalid bandwidth'); - return (o = Math.round((Math.sqrt(4 * t * t + 1) - 1) / 2)), v(); - }), - f - ); - }, - $o = function(t) { - return function() { - return t; - }; - }; - function Qo(t, e, n, r, i, o, a, s, u, l) { - (this.target = t), - (this.type = e), - (this.subject = n), - (this.identifier = r), - (this.active = i), - (this.x = o), - (this.y = a), - (this.dx = s), - (this.dy = u), - (this._ = l); - } - function Ko() { - return !le.ctrlKey && !le.button; - } - function Zo() { - return this.parentNode; - } - function Jo(t) { - return null == t ? { x: le.x, y: le.y } : t; - } - function ta() { - return navigator.maxTouchPoints || 'ontouchstart' in this; - } - Qo.prototype.on = function() { - var t = this._.on.apply(this._, arguments); - return t === this._ ? this : t; - }; - var ea = function() { - var t, - e, - n, - r, - i = Ko, - o = Zo, - a = Jo, - s = ta, - u = {}, - l = ft('start', 'drag', 'end'), - c = 0, - f = 0; - function d(t) { - t.on('mousedown.drag', h) - .filter(s) - .on('touchstart.drag', v) - .on('touchmove.drag', m) - .on('touchend.drag touchcancel.drag', y) - .style('touch-action', 'none') - .style('-webkit-tap-highlight-color', 'rgba(0,0,0,0)'); - } - function h() { - if (!r && i.apply(this, arguments)) { - var a = b('mouse', o.apply(this, arguments), Dn, this, arguments); - a && - (Se(le.view) - .on('mousemove.drag', p, !0) - .on('mouseup.drag', g, !0), - Ae(le.view), - Ee(), - (n = !1), - (t = le.clientX), - (e = le.clientY), - a('start')); - } - } - function p() { - if ((ke(), !n)) { - var r = le.clientX - t, - i = le.clientY - e; - n = r * r + i * i > f; - } - u.mouse('drag'); - } - function g() { - Se(le.view).on('mousemove.drag mouseup.drag', null), - Te(le.view, n), - ke(), - u.mouse('end'); - } - function v() { - if (i.apply(this, arguments)) { - var t, - e, - n = le.changedTouches, - r = o.apply(this, arguments), - a = n.length; - for (t = 0; t < a; ++t) - (e = b(n[t].identifier, r, Ln, this, arguments)) && - (Ee(), e('start')); - } - } - function m() { - var t, - e, - n = le.changedTouches, - r = n.length; - for (t = 0; t < r; ++t) - (e = u[n[t].identifier]) && (ke(), e('drag')); - } - function y() { - var t, - e, - n = le.changedTouches, - i = n.length; - for ( - r && clearTimeout(r), - r = setTimeout(function() { - r = null; - }, 500), - t = 0; - t < i; - ++t - ) - (e = u[n[t].identifier]) && (Ee(), e('end')); - } - function b(t, e, n, r, i) { - var o, - s, - f, - h = n(e, t), - p = l.copy(); - if ( - ge( - new Qo(d, 'beforestart', o, t, c, h[0], h[1], 0, 0, p), - function() { - return ( - null != (le.subject = o = a.apply(r, i)) && - ((s = o.x - h[0] || 0), (f = o.y - h[1] || 0), !0) - ); - } - ) - ) - return function a(l) { - var g, - v = h; - switch (l) { - case 'start': - (u[t] = a), (g = c++); - break; - case 'end': - delete u[t], --c; - case 'drag': - (h = n(e, t)), (g = c); - } - ge( - new Qo( - d, - l, - o, - t, - g, - h[0] + s, - h[1] + f, - h[0] - v[0], - h[1] - v[1], - p - ), - p.apply, - p, - [l, r, i] - ); - }; - } - return ( - (d.filter = function(t) { - return arguments.length - ? ((i = 'function' == typeof t ? t : $o(!!t)), d) - : i; - }), - (d.container = function(t) { - return arguments.length - ? ((o = 'function' == typeof t ? t : $o(t)), d) - : o; - }), - (d.subject = function(t) { - return arguments.length - ? ((a = 'function' == typeof t ? t : $o(t)), d) - : a; - }), - (d.touchable = function(t) { - return arguments.length - ? ((s = 'function' == typeof t ? t : $o(!!t)), d) - : s; - }), - (d.on = function() { - var t = l.on.apply(l, arguments); - return t === l ? d : t; - }), - (d.clickDistance = function(t) { - return arguments.length ? ((f = (t = +t) * t), d) : Math.sqrt(f); - }), - d - ); - }, - na = {}, - ra = {}; - function ia(t) { - return new Function( - 'd', - 'return {' + - t - .map(function(t, e) { - return JSON.stringify(t) + ': d[' + e + '] || ""'; - }) - .join(',') + - '}' - ); - } - function oa(t) { - var e = Object.create(null), - n = []; - return ( - t.forEach(function(t) { - for (var r in t) r in e || n.push((e[r] = r)); - }), - n - ); - } - function aa(t, e) { - var n = t + '', - r = n.length; - return r < e ? new Array(e - r + 1).join(0) + n : n; - } - function sa(t) { - var e, - n = t.getUTCHours(), - r = t.getUTCMinutes(), - i = t.getUTCSeconds(), - o = t.getUTCMilliseconds(); - return isNaN(t) - ? 'Invalid Date' - : ((e = t.getUTCFullYear()) < 0 - ? '-' + aa(-e, 6) - : e > 9999 - ? '+' + aa(e, 6) - : aa(e, 4)) + - '-' + - aa(t.getUTCMonth() + 1, 2) + - '-' + - aa(t.getUTCDate(), 2) + - (o - ? 'T' + - aa(n, 2) + - ':' + - aa(r, 2) + - ':' + - aa(i, 2) + - '.' + - aa(o, 3) + - 'Z' - : i - ? 'T' + aa(n, 2) + ':' + aa(r, 2) + ':' + aa(i, 2) + 'Z' - : r || n - ? 'T' + aa(n, 2) + ':' + aa(r, 2) + 'Z' - : ''); - } - var ua = function(t) { - var e = new RegExp('["' + t + '\n\r]'), - n = t.charCodeAt(0); - function r(t, e) { - var r, - i = [], - o = t.length, - a = 0, - s = 0, - u = o <= 0, - l = !1; - function c() { - if (u) return ra; - if (l) return (l = !1), na; - var e, - r, - i = a; - if (34 === t.charCodeAt(i)) { - for ( - ; - (a++ < o && 34 !== t.charCodeAt(a)) || - 34 === t.charCodeAt(++a); - - ); - return ( - (e = a) >= o - ? (u = !0) - : 10 === (r = t.charCodeAt(a++)) - ? (l = !0) - : 13 === r && ((l = !0), 10 === t.charCodeAt(a) && ++a), - t.slice(i + 1, e - 1).replace(/""/g, '"') - ); - } - for (; a < o; ) { - if (10 === (r = t.charCodeAt((e = a++)))) l = !0; - else if (13 === r) (l = !0), 10 === t.charCodeAt(a) && ++a; - else if (r !== n) continue; - return t.slice(i, e); - } - return (u = !0), t.slice(i, o); - } - for ( - 10 === t.charCodeAt(o - 1) && --o, - 13 === t.charCodeAt(o - 1) && --o; - (r = c()) !== ra; - - ) { - for (var f = []; r !== na && r !== ra; ) f.push(r), (r = c()); - (e && null == (f = e(f, s++))) || i.push(f); - } - return i; - } - function i(e, n) { - return e.map(function(e) { - return n - .map(function(t) { - return a(e[t]); - }) - .join(t); - }); - } - function o(e) { - return e.map(a).join(t); - } - function a(t) { - return null == t - ? '' - : t instanceof Date - ? sa(t) - : e.test((t += '')) - ? '"' + t.replace(/"/g, '""') + '"' - : t; - } - return { - parse: function(t, e) { - var n, - i, - o = r(t, function(t, r) { - if (n) return n(t, r - 1); - (i = t), - (n = e - ? (function(t, e) { - var n = ia(t); - return function(r, i) { - return e(n(r), i, t); - }; - })(t, e) - : ia(t)); - }); - return (o.columns = i || []), o; - }, - parseRows: r, - format: function(e, n) { - return ( - null == n && (n = oa(e)), - [n.map(a).join(t)].concat(i(e, n)).join('\n') - ); - }, - formatBody: function(t, e) { - return null == e && (e = oa(t)), i(t, e).join('\n'); - }, - formatRows: function(t) { - return t.map(o).join('\n'); - }, - formatRow: o, - formatValue: a - }; - }, - la = ua(','), - ca = la.parse, - fa = la.parseRows, - da = la.format, - ha = la.formatBody, - pa = la.formatRows, - ga = la.formatRow, - va = la.formatValue, - ma = ua('\t'), - ya = ma.parse, - ba = ma.parseRows, - _a = ma.format, - xa = ma.formatBody, - wa = ma.formatRows, - Sa = ma.formatRow, - Ea = ma.formatValue; - function ka(t) { - for (var e in t) { - var n, - r, - i = t[e].trim(); - if (i) - if ('true' === i) i = !0; - else if ('false' === i) i = !1; - else if ('NaN' === i) i = NaN; - else if (isNaN((n = +i))) { - if ( - !(r = i.match( - /^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/ - )) - ) - continue; - Aa && - r[4] && - !r[7] && - (i = i.replace(/-/g, '/').replace(/T/, ' ')), - (i = new Date(i)); - } else i = n; - else i = null; - t[e] = i; - } - return t; - } - var Aa = - new Date('2019-01-01T00:00').getHours() || - new Date('2019-07-01T00:00').getHours(); - function Ta(t) { - return +t; - } - function Ca(t) { - return t * t; - } - function Oa(t) { - return t * (2 - t); - } - function Pa(t) { - return ((t *= 2) <= 1 ? t * t : --t * (2 - t) + 1) / 2; - } - var Ma = (function t(e) { - function n(t) { - return Math.pow(t, e); - } - return (e = +e), (n.exponent = t), n; - })(3), - La = (function t(e) { - function n(t) { - return 1 - Math.pow(1 - t, e); - } - return (e = +e), (n.exponent = t), n; - })(3), - Da = (function t(e) { - function n(t) { - return ( - ((t *= 2) <= 1 ? Math.pow(t, e) : 2 - Math.pow(2 - t, e)) / 2 - ); - } - return (e = +e), (n.exponent = t), n; - })(3), - ja = Math.PI, - Ra = ja / 2; - function Na(t) { - return 1 - Math.cos(t * Ra); - } - function za(t) { - return Math.sin(t * Ra); - } - function Ia(t) { - return (1 - Math.cos(ja * t)) / 2; - } - function Fa(t) { - return Math.pow(2, 10 * t - 10); - } - function Va(t) { - return 1 - Math.pow(2, -10 * t); - } - function Ba(t) { - return ( - ((t *= 2) <= 1 - ? Math.pow(2, 10 * t - 10) - : 2 - Math.pow(2, 10 - 10 * t)) / 2 - ); - } - function Ga(t) { - return 1 - Math.sqrt(1 - t * t); - } - function Ha(t) { - return Math.sqrt(1 - --t * t); - } - function Ua(t) { - return ( - ((t *= 2) <= 1 - ? 1 - Math.sqrt(1 - t * t) - : Math.sqrt(1 - (t -= 2) * t) + 1) / 2 - ); - } - function qa(t) { - return 1 - Wa(1 - t); - } - function Wa(t) { - return (t = +t) < 4 / 11 - ? 7.5625 * t * t - : t < 8 / 11 - ? 7.5625 * (t -= 6 / 11) * t + 3 / 4 - : t < 10 / 11 - ? 7.5625 * (t -= 9 / 11) * t + 15 / 16 - : 7.5625 * (t -= 21 / 22) * t + 63 / 64; - } - function Xa(t) { - return ((t *= 2) <= 1 ? 1 - Wa(1 - t) : Wa(t - 1) + 1) / 2; - } - var Ya = (function t(e) { - function n(t) { - return t * t * ((e + 1) * t - e); - } - return (e = +e), (n.overshoot = t), n; - })(1.70158), - $a = (function t(e) { - function n(t) { - return --t * t * ((e + 1) * t + e) + 1; - } - return (e = +e), (n.overshoot = t), n; - })(1.70158), - Qa = (function t(e) { - function n(t) { - return ( - ((t *= 2) < 1 - ? t * t * ((e + 1) * t - e) - : (t -= 2) * t * ((e + 1) * t + e) + 2) / 2 - ); - } - return (e = +e), (n.overshoot = t), n; - })(1.70158), - Ka = 2 * Math.PI, - Za = (function t(e, n) { - var r = Math.asin(1 / (e = Math.max(1, e))) * (n /= Ka); - function i(t) { - return e * Math.pow(2, 10 * --t) * Math.sin((r - t) / n); - } - return ( - (i.amplitude = function(e) { - return t(e, n * Ka); - }), - (i.period = function(n) { - return t(e, n); - }), - i - ); - })(1, 0.3), - Ja = (function t(e, n) { - var r = Math.asin(1 / (e = Math.max(1, e))) * (n /= Ka); - function i(t) { - return 1 - e * Math.pow(2, -10 * (t = +t)) * Math.sin((t + r) / n); - } - return ( - (i.amplitude = function(e) { - return t(e, n * Ka); - }), - (i.period = function(n) { - return t(e, n); - }), - i - ); - })(1, 0.3), - ts = (function t(e, n) { - var r = Math.asin(1 / (e = Math.max(1, e))) * (n /= Ka); - function i(t) { - return ( - ((t = 2 * t - 1) < 0 - ? e * Math.pow(2, 10 * t) * Math.sin((r - t) / n) - : 2 - e * Math.pow(2, -10 * t) * Math.sin((r + t) / n)) / 2 - ); - } - return ( - (i.amplitude = function(e) { - return t(e, n * Ka); - }), - (i.period = function(n) { - return t(e, n); - }), - i - ); - })(1, 0.3); - function es(t) { - if (!t.ok) throw new Error(t.status + ' ' + t.statusText); - return t.blob(); - } - var ns = function(t, e) { - return fetch(t, e).then(es); - }; - function rs(t) { - if (!t.ok) throw new Error(t.status + ' ' + t.statusText); - return t.arrayBuffer(); - } - var is = function(t, e) { - return fetch(t, e).then(rs); - }; - function os(t) { - if (!t.ok) throw new Error(t.status + ' ' + t.statusText); - return t.text(); - } - var as = function(t, e) { - return fetch(t, e).then(os); - }; - function ss(t) { - return function(e, n, r) { - return ( - 2 === arguments.length && - 'function' == typeof n && - ((r = n), (n = void 0)), - as(e, n).then(function(e) { - return t(e, r); - }) - ); - }; - } - function us(t, e, n, r) { - 3 === arguments.length && - 'function' == typeof n && - ((r = n), (n = void 0)); - var i = ua(t); - return as(e, n).then(function(t) { - return i.parse(t, r); - }); - } - var ls = ss(ca), - cs = ss(ya), - fs = function(t, e) { - return new Promise(function(n, r) { - var i = new Image(); - for (var o in e) i[o] = e[o]; - (i.onerror = r), - (i.onload = function() { - n(i); - }), - (i.src = t); - }); - }; - function ds(t) { - if (!t.ok) throw new Error(t.status + ' ' + t.statusText); - return t.json(); - } - var hs = function(t, e) { - return fetch(t, e).then(ds); - }; - function ps(t) { - return function(e, n) { - return as(e, n).then(function(e) { - return new DOMParser().parseFromString(e, t); - }); - }; - } - var gs = ps('application/xml'), - vs = ps('text/html'), - ms = ps('image/svg+xml'), - ys = function(t, e) { - var n; - function r() { - var r, - i, - o = n.length, - a = 0, - s = 0; - for (r = 0; r < o; ++r) (a += (i = n[r]).x), (s += i.y); - for (a = a / o - t, s = s / o - e, r = 0; r < o; ++r) - ((i = n[r]).x -= a), (i.y -= s); - } - return ( - null == t && (t = 0), - null == e && (e = 0), - (r.initialize = function(t) { - n = t; - }), - (r.x = function(e) { - return arguments.length ? ((t = +e), r) : t; - }), - (r.y = function(t) { - return arguments.length ? ((e = +t), r) : e; - }), - r - ); - }, - bs = function(t) { - return function() { - return t; - }; - }, - _s = function() { - return 1e-6 * (Math.random() - 0.5); - }; - function xs(t, e, n, r) { - if (isNaN(e) || isNaN(n)) return t; - var i, - o, - a, - s, - u, - l, - c, - f, - d, - h = t._root, - p = { data: r }, - g = t._x0, - v = t._y0, - m = t._x1, - y = t._y1; - if (!h) return (t._root = p), t; - for (; h.length; ) - if ( - ((l = e >= (o = (g + m) / 2)) ? (g = o) : (m = o), - (c = n >= (a = (v + y) / 2)) ? (v = a) : (y = a), - (i = h), - !(h = h[(f = (c << 1) | l)])) - ) - return (i[f] = p), t; - if ( - ((s = +t._x.call(null, h.data)), - (u = +t._y.call(null, h.data)), - e === s && n === u) - ) - return (p.next = h), i ? (i[f] = p) : (t._root = p), t; - do { - (i = i ? (i[f] = new Array(4)) : (t._root = new Array(4))), - (l = e >= (o = (g + m) / 2)) ? (g = o) : (m = o), - (c = n >= (a = (v + y) / 2)) ? (v = a) : (y = a); - } while ((f = (c << 1) | l) == (d = ((u >= a) << 1) | (s >= o))); - return (i[d] = h), (i[f] = p), t; - } - var ws = function(t, e, n, r, i) { - (this.node = t), - (this.x0 = e), - (this.y0 = n), - (this.x1 = r), - (this.y1 = i); - }; - function Ss(t) { - return t[0]; - } - function Es(t) { - return t[1]; - } - function ks(t, e, n) { - var r = new As( - null == e ? Ss : e, - null == n ? Es : n, - NaN, - NaN, - NaN, - NaN - ); - return null == t ? r : r.addAll(t); - } - function As(t, e, n, r, i, o) { - (this._x = t), - (this._y = e), - (this._x0 = n), - (this._y0 = r), - (this._x1 = i), - (this._y1 = o), - (this._root = void 0); - } - function Ts(t) { - for (var e = { data: t.data }, n = e; (t = t.next); ) - n = n.next = { data: t.data }; - return e; - } - var Cs = (ks.prototype = As.prototype); - function Os(t) { - return t.x + t.vx; - } - function Ps(t) { - return t.y + t.vy; - } - (Cs.copy = function() { - var t, - e, - n = new As(this._x, this._y, this._x0, this._y0, this._x1, this._y1), - r = this._root; - if (!r) return n; - if (!r.length) return (n._root = Ts(r)), n; - for ( - t = [{ source: r, target: (n._root = new Array(4)) }]; - (r = t.pop()); - - ) - for (var i = 0; i < 4; ++i) - (e = r.source[i]) && - (e.length - ? t.push({ source: e, target: (r.target[i] = new Array(4)) }) - : (r.target[i] = Ts(e))); - return n; - }), - (Cs.add = function(t) { - var e = +this._x.call(null, t), - n = +this._y.call(null, t); - return xs(this.cover(e, n), e, n, t); - }), - (Cs.addAll = function(t) { - var e, - n, - r, - i, - o = t.length, - a = new Array(o), - s = new Array(o), - u = 1 / 0, - l = 1 / 0, - c = -1 / 0, - f = -1 / 0; - for (n = 0; n < o; ++n) - isNaN((r = +this._x.call(null, (e = t[n])))) || - isNaN((i = +this._y.call(null, e))) || - ((a[n] = r), - (s[n] = i), - r < u && (u = r), - r > c && (c = r), - i < l && (l = i), - i > f && (f = i)); - if (u > c || l > f) return this; - for (this.cover(u, l).cover(c, f), n = 0; n < o; ++n) - xs(this, a[n], s[n], t[n]); - return this; - }), - (Cs.cover = function(t, e) { - if (isNaN((t = +t)) || isNaN((e = +e))) return this; - var n = this._x0, - r = this._y0, - i = this._x1, - o = this._y1; - if (isNaN(n)) - (i = (n = Math.floor(t)) + 1), (o = (r = Math.floor(e)) + 1); - else { - for ( - var a, s, u = i - n, l = this._root; - n > t || t >= i || r > e || e >= o; - - ) - switch ( - ((s = ((e < r) << 1) | (t < n)), - ((a = new Array(4))[s] = l), - (l = a), - (u *= 2), - s) - ) { - case 0: - (i = n + u), (o = r + u); - break; - case 1: - (n = i - u), (o = r + u); - break; - case 2: - (i = n + u), (r = o - u); - break; - case 3: - (n = i - u), (r = o - u); - } - this._root && this._root.length && (this._root = l); - } - return ( - (this._x0 = n), (this._y0 = r), (this._x1 = i), (this._y1 = o), this - ); - }), - (Cs.data = function() { - var t = []; - return ( - this.visit(function(e) { - if (!e.length) - do { - t.push(e.data); - } while ((e = e.next)); - }), - t - ); - }), - (Cs.extent = function(t) { - return arguments.length - ? this.cover(+t[0][0], +t[0][1]).cover(+t[1][0], +t[1][1]) - : isNaN(this._x0) - ? void 0 - : [ - [this._x0, this._y0], - [this._x1, this._y1] - ]; - }), - (Cs.find = function(t, e, n) { - var r, - i, - o, - a, - s, - u, - l, - c = this._x0, - f = this._y0, - d = this._x1, - h = this._y1, - p = [], - g = this._root; - for ( - g && p.push(new ws(g, c, f, d, h)), - null == n - ? (n = 1 / 0) - : ((c = t - n), - (f = e - n), - (d = t + n), - (h = e + n), - (n *= n)); - (u = p.pop()); - - ) - if ( - !( - !(g = u.node) || - (i = u.x0) > d || - (o = u.y0) > h || - (a = u.x1) < c || - (s = u.y1) < f - ) - ) - if (g.length) { - var v = (i + a) / 2, - m = (o + s) / 2; - p.push( - new ws(g[3], v, m, a, s), - new ws(g[2], i, m, v, s), - new ws(g[1], v, o, a, m), - new ws(g[0], i, o, v, m) - ), - (l = ((e >= m) << 1) | (t >= v)) && - ((u = p[p.length - 1]), - (p[p.length - 1] = p[p.length - 1 - l]), - (p[p.length - 1 - l] = u)); - } else { - var y = t - +this._x.call(null, g.data), - b = e - +this._y.call(null, g.data), - _ = y * y + b * b; - if (_ < n) { - var x = Math.sqrt((n = _)); - (c = t - x), - (f = e - x), - (d = t + x), - (h = e + x), - (r = g.data); - } - } - return r; - }), - (Cs.remove = function(t) { - if ( - isNaN((o = +this._x.call(null, t))) || - isNaN((a = +this._y.call(null, t))) - ) - return this; - var e, - n, - r, - i, - o, - a, - s, - u, - l, - c, - f, - d, - h = this._root, - p = this._x0, - g = this._y0, - v = this._x1, - m = this._y1; - if (!h) return this; - if (h.length) - for (;;) { - if ( - ((l = o >= (s = (p + v) / 2)) ? (p = s) : (v = s), - (c = a >= (u = (g + m) / 2)) ? (g = u) : (m = u), - (e = h), - !(h = h[(f = (c << 1) | l)])) - ) - return this; - if (!h.length) break; - (e[(f + 1) & 3] || e[(f + 2) & 3] || e[(f + 3) & 3]) && - ((n = e), (d = f)); - } - for (; h.data !== t; ) if (((r = h), !(h = h.next))) return this; - return ( - (i = h.next) && delete h.next, - r - ? (i ? (r.next = i) : delete r.next, this) - : e - ? (i ? (e[f] = i) : delete e[f], - (h = e[0] || e[1] || e[2] || e[3]) && - h === (e[3] || e[2] || e[1] || e[0]) && - !h.length && - (n ? (n[d] = h) : (this._root = h)), - this) - : ((this._root = i), this) - ); - }), - (Cs.removeAll = function(t) { - for (var e = 0, n = t.length; e < n; ++e) this.remove(t[e]); - return this; - }), - (Cs.root = function() { - return this._root; - }), - (Cs.size = function() { - var t = 0; - return ( - this.visit(function(e) { - if (!e.length) - do { - ++t; - } while ((e = e.next)); - }), - t - ); - }), - (Cs.visit = function(t) { - var e, - n, - r, - i, - o, - a, - s = [], - u = this._root; - for ( - u && s.push(new ws(u, this._x0, this._y0, this._x1, this._y1)); - (e = s.pop()); - - ) - if ( - !t( - (u = e.node), - (r = e.x0), - (i = e.y0), - (o = e.x1), - (a = e.y1) - ) && - u.length - ) { - var l = (r + o) / 2, - c = (i + a) / 2; - (n = u[3]) && s.push(new ws(n, l, c, o, a)), - (n = u[2]) && s.push(new ws(n, r, c, l, a)), - (n = u[1]) && s.push(new ws(n, l, i, o, c)), - (n = u[0]) && s.push(new ws(n, r, i, l, c)); - } - return this; - }), - (Cs.visitAfter = function(t) { - var e, - n = [], - r = []; - for ( - this._root && - n.push(new ws(this._root, this._x0, this._y0, this._x1, this._y1)); - (e = n.pop()); - - ) { - var i = e.node; - if (i.length) { - var o, - a = e.x0, - s = e.y0, - u = e.x1, - l = e.y1, - c = (a + u) / 2, - f = (s + l) / 2; - (o = i[0]) && n.push(new ws(o, a, s, c, f)), - (o = i[1]) && n.push(new ws(o, c, s, u, f)), - (o = i[2]) && n.push(new ws(o, a, f, c, l)), - (o = i[3]) && n.push(new ws(o, c, f, u, l)); - } - r.push(e); - } - for (; (e = r.pop()); ) t(e.node, e.x0, e.y0, e.x1, e.y1); - return this; - }), - (Cs.x = function(t) { - return arguments.length ? ((this._x = t), this) : this._x; - }), - (Cs.y = function(t) { - return arguments.length ? ((this._y = t), this) : this._y; - }); - var Ms = function(t) { - var e, - n, - r = 1, - i = 1; - function o() { - for (var t, o, s, u, l, c, f, d = e.length, h = 0; h < i; ++h) - for (o = ks(e, Os, Ps).visitAfter(a), t = 0; t < d; ++t) - (s = e[t]), - (c = n[s.index]), - (f = c * c), - (u = s.x + s.vx), - (l = s.y + s.vy), - o.visit(p); - function p(t, e, n, i, o) { - var a = t.data, - d = t.r, - h = c + d; - if (!a) return e > u + h || i < u - h || n > l + h || o < l - h; - if (a.index > s.index) { - var p = u - a.x - a.vx, - g = l - a.y - a.vy, - v = p * p + g * g; - v < h * h && - (0 === p && (v += (p = _s()) * p), - 0 === g && (v += (g = _s()) * g), - (v = ((h - (v = Math.sqrt(v))) / v) * r), - (s.vx += (p *= v) * (h = (d *= d) / (f + d))), - (s.vy += (g *= v) * h), - (a.vx -= p * (h = 1 - h)), - (a.vy -= g * h)); - } - } - } - function a(t) { - if (t.data) return (t.r = n[t.data.index]); - for (var e = (t.r = 0); e < 4; ++e) - t[e] && t[e].r > t.r && (t.r = t[e].r); - } - function s() { - if (e) { - var r, - i, - o = e.length; - for (n = new Array(o), r = 0; r < o; ++r) - (i = e[r]), (n[i.index] = +t(i, r, e)); - } - } - return ( - 'function' != typeof t && (t = bs(null == t ? 1 : +t)), - (o.initialize = function(t) { - (e = t), s(); - }), - (o.iterations = function(t) { - return arguments.length ? ((i = +t), o) : i; - }), - (o.strength = function(t) { - return arguments.length ? ((r = +t), o) : r; - }), - (o.radius = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : bs(+e)), s(), o) - : t; - }), - o - ); - }; - function Ls(t) { - return t.index; - } - function Ds(t, e) { - var n = t.get(e); - if (!n) throw new Error('missing: ' + e); - return n; - } - var js = function(t) { - var e, - n, - r, - i, - o, - a = Ls, - s = function(t) { - return 1 / Math.min(i[t.source.index], i[t.target.index]); - }, - u = bs(30), - l = 1; - function c(r) { - for (var i = 0, a = t.length; i < l; ++i) - for (var s, u, c, f, d, h, p, g = 0; g < a; ++g) - (u = (s = t[g]).source), - (f = (c = s.target).x + c.vx - u.x - u.vx || _s()), - (d = c.y + c.vy - u.y - u.vy || _s()), - (f *= h = - (((h = Math.sqrt(f * f + d * d)) - n[g]) / h) * r * e[g]), - (d *= h), - (c.vx -= f * (p = o[g])), - (c.vy -= d * p), - (u.vx += f * (p = 1 - p)), - (u.vy += d * p); - } - function f() { - if (r) { - var s, - u, - l = r.length, - c = t.length, - f = Zi(r, a); - for (s = 0, i = new Array(l); s < c; ++s) - ((u = t[s]).index = s), - 'object' != typeof u.source && (u.source = Ds(f, u.source)), - 'object' != typeof u.target && (u.target = Ds(f, u.target)), - (i[u.source.index] = (i[u.source.index] || 0) + 1), - (i[u.target.index] = (i[u.target.index] || 0) + 1); - for (s = 0, o = new Array(c); s < c; ++s) - (u = t[s]), - (o[s] = - i[u.source.index] / (i[u.source.index] + i[u.target.index])); - (e = new Array(c)), d(), (n = new Array(c)), h(); - } - } - function d() { - if (r) - for (var n = 0, i = t.length; n < i; ++n) e[n] = +s(t[n], n, t); - } - function h() { - if (r) - for (var e = 0, i = t.length; e < i; ++e) n[e] = +u(t[e], e, t); - } - return ( - null == t && (t = []), - (c.initialize = function(t) { - (r = t), f(); - }), - (c.links = function(e) { - return arguments.length ? ((t = e), f(), c) : t; - }), - (c.id = function(t) { - return arguments.length ? ((a = t), c) : a; - }), - (c.iterations = function(t) { - return arguments.length ? ((l = +t), c) : l; - }), - (c.strength = function(t) { - return arguments.length - ? ((s = 'function' == typeof t ? t : bs(+t)), d(), c) - : s; - }), - (c.distance = function(t) { - return arguments.length - ? ((u = 'function' == typeof t ? t : bs(+t)), h(), c) - : u; - }), - c - ); - }; - function Rs(t) { - return t.x; - } - function Ns(t) { - return t.y; - } - var zs = Math.PI * (3 - Math.sqrt(5)), - Is = function(t) { - var e, - n = 1, - r = 0.001, - i = 1 - Math.pow(r, 1 / 300), - o = 0, - a = 0.6, - s = Zi(), - u = qn(c), - l = ft('tick', 'end'); - function c() { - f(), l.call('tick', e), n < r && (u.stop(), l.call('end', e)); - } - function f(r) { - var u, - l, - c = t.length; - void 0 === r && (r = 1); - for (var f = 0; f < r; ++f) - for ( - n += (o - n) * i, - s.each(function(t) { - t(n); - }), - u = 0; - u < c; - ++u - ) - null == (l = t[u]).fx - ? (l.x += l.vx *= a) - : ((l.x = l.fx), (l.vx = 0)), - null == l.fy - ? (l.y += l.vy *= a) - : ((l.y = l.fy), (l.vy = 0)); - return e; - } - function d() { - for (var e, n = 0, r = t.length; n < r; ++n) { - if ( - (((e = t[n]).index = n), - null != e.fx && (e.x = e.fx), - null != e.fy && (e.y = e.fy), - isNaN(e.x) || isNaN(e.y)) - ) { - var i = 10 * Math.sqrt(n), - o = n * zs; - (e.x = i * Math.cos(o)), (e.y = i * Math.sin(o)); - } - (isNaN(e.vx) || isNaN(e.vy)) && (e.vx = e.vy = 0); - } - } - function h(e) { - return e.initialize && e.initialize(t), e; - } - return ( - null == t && (t = []), - d(), - (e = { - tick: f, - restart: function() { - return u.restart(c), e; - }, - stop: function() { - return u.stop(), e; - }, - nodes: function(n) { - return arguments.length ? ((t = n), d(), s.each(h), e) : t; - }, - alpha: function(t) { - return arguments.length ? ((n = +t), e) : n; - }, - alphaMin: function(t) { - return arguments.length ? ((r = +t), e) : r; - }, - alphaDecay: function(t) { - return arguments.length ? ((i = +t), e) : +i; - }, - alphaTarget: function(t) { - return arguments.length ? ((o = +t), e) : o; - }, - velocityDecay: function(t) { - return arguments.length ? ((a = 1 - t), e) : 1 - a; - }, - force: function(t, n) { - return arguments.length > 1 - ? (null == n ? s.remove(t) : s.set(t, h(n)), e) - : s.get(t); - }, - find: function(e, n, r) { - var i, - o, - a, - s, - u, - l = 0, - c = t.length; - for (null == r ? (r = 1 / 0) : (r *= r), l = 0; l < c; ++l) - (a = (i = e - (s = t[l]).x) * i + (o = n - s.y) * o) < r && - ((u = s), (r = a)); - return u; - }, - on: function(t, n) { - return arguments.length > 1 ? (l.on(t, n), e) : l.on(t); - } - }) - ); - }, - Fs = function() { - var t, - e, - n, - r, - i = bs(-30), - o = 1, - a = 1 / 0, - s = 0.81; - function u(r) { - var i, - o = t.length, - a = ks(t, Rs, Ns).visitAfter(c); - for (n = r, i = 0; i < o; ++i) (e = t[i]), a.visit(f); - } - function l() { - if (t) { - var e, - n, - o = t.length; - for (r = new Array(o), e = 0; e < o; ++e) - (n = t[e]), (r[n.index] = +i(n, e, t)); - } - } - function c(t) { - var e, - n, - i, - o, - a, - s = 0, - u = 0; - if (t.length) { - for (i = o = a = 0; a < 4; ++a) - (e = t[a]) && - (n = Math.abs(e.value)) && - ((s += e.value), (u += n), (i += n * e.x), (o += n * e.y)); - (t.x = i / u), (t.y = o / u); - } else { - ((e = t).x = e.data.x), (e.y = e.data.y); - do { - s += r[e.data.index]; - } while ((e = e.next)); - } - t.value = s; - } - function f(t, i, u, l) { - if (!t.value) return !0; - var c = t.x - e.x, - f = t.y - e.y, - d = l - i, - h = c * c + f * f; - if ((d * d) / s < h) - return ( - h < a && - (0 === c && (h += (c = _s()) * c), - 0 === f && (h += (f = _s()) * f), - h < o && (h = Math.sqrt(o * h)), - (e.vx += (c * t.value * n) / h), - (e.vy += (f * t.value * n) / h)), - !0 - ); - if (!(t.length || h >= a)) { - (t.data !== e || t.next) && - (0 === c && (h += (c = _s()) * c), - 0 === f && (h += (f = _s()) * f), - h < o && (h = Math.sqrt(o * h))); - do { - t.data !== e && - ((d = (r[t.data.index] * n) / h), - (e.vx += c * d), - (e.vy += f * d)); - } while ((t = t.next)); - } - } - return ( - (u.initialize = function(e) { - (t = e), l(); - }), - (u.strength = function(t) { - return arguments.length - ? ((i = 'function' == typeof t ? t : bs(+t)), l(), u) - : i; - }), - (u.distanceMin = function(t) { - return arguments.length ? ((o = t * t), u) : Math.sqrt(o); - }), - (u.distanceMax = function(t) { - return arguments.length ? ((a = t * t), u) : Math.sqrt(a); - }), - (u.theta = function(t) { - return arguments.length ? ((s = t * t), u) : Math.sqrt(s); - }), - u - ); - }, - Vs = function(t, e, n) { - var r, - i, - o, - a = bs(0.1); - function s(t) { - for (var a = 0, s = r.length; a < s; ++a) { - var u = r[a], - l = u.x - e || 1e-6, - c = u.y - n || 1e-6, - f = Math.sqrt(l * l + c * c), - d = ((o[a] - f) * i[a] * t) / f; - (u.vx += l * d), (u.vy += c * d); - } - } - function u() { - if (r) { - var e, - n = r.length; - for (i = new Array(n), o = new Array(n), e = 0; e < n; ++e) - (o[e] = +t(r[e], e, r)), - (i[e] = isNaN(o[e]) ? 0 : +a(r[e], e, r)); - } - } - return ( - 'function' != typeof t && (t = bs(+t)), - null == e && (e = 0), - null == n && (n = 0), - (s.initialize = function(t) { - (r = t), u(); - }), - (s.strength = function(t) { - return arguments.length - ? ((a = 'function' == typeof t ? t : bs(+t)), u(), s) - : a; - }), - (s.radius = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : bs(+e)), u(), s) - : t; - }), - (s.x = function(t) { - return arguments.length ? ((e = +t), s) : e; - }), - (s.y = function(t) { - return arguments.length ? ((n = +t), s) : n; - }), - s - ); - }, - Bs = function(t) { - var e, - n, - r, - i = bs(0.1); - function o(t) { - for (var i, o = 0, a = e.length; o < a; ++o) - (i = e[o]).vx += (r[o] - i.x) * n[o] * t; - } - function a() { - if (e) { - var o, - a = e.length; - for (n = new Array(a), r = new Array(a), o = 0; o < a; ++o) - n[o] = isNaN((r[o] = +t(e[o], o, e))) ? 0 : +i(e[o], o, e); - } - } - return ( - 'function' != typeof t && (t = bs(null == t ? 0 : +t)), - (o.initialize = function(t) { - (e = t), a(); - }), - (o.strength = function(t) { - return arguments.length - ? ((i = 'function' == typeof t ? t : bs(+t)), a(), o) - : i; - }), - (o.x = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : bs(+e)), a(), o) - : t; - }), - o - ); - }, - Gs = function(t) { - var e, - n, - r, - i = bs(0.1); - function o(t) { - for (var i, o = 0, a = e.length; o < a; ++o) - (i = e[o]).vy += (r[o] - i.y) * n[o] * t; - } - function a() { - if (e) { - var o, - a = e.length; - for (n = new Array(a), r = new Array(a), o = 0; o < a; ++o) - n[o] = isNaN((r[o] = +t(e[o], o, e))) ? 0 : +i(e[o], o, e); - } - } - return ( - 'function' != typeof t && (t = bs(null == t ? 0 : +t)), - (o.initialize = function(t) { - (e = t), a(); - }), - (o.strength = function(t) { - return arguments.length - ? ((i = 'function' == typeof t ? t : bs(+t)), a(), o) - : i; - }), - (o.y = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : bs(+e)), a(), o) - : t; - }), - o - ); - }, - Hs = function(t, e) { - if ( - (n = (t = e ? t.toExponential(e - 1) : t.toExponential()).indexOf( - 'e' - )) < 0 - ) - return null; - var n, - r = t.slice(0, n); - return [r.length > 1 ? r[0] + r.slice(2) : r, +t.slice(n + 1)]; - }, - Us = function(t) { - return (t = Hs(Math.abs(t))) ? t[1] : NaN; - }, - qs = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i; - function Ws(t) { - if (!(e = qs.exec(t))) throw new Error('invalid format: ' + t); - var e; - return new Xs({ - fill: e[1], - align: e[2], - sign: e[3], - symbol: e[4], - zero: e[5], - width: e[6], - comma: e[7], - precision: e[8] && e[8].slice(1), - trim: e[9], - type: e[10] - }); - } - function Xs(t) { - (this.fill = void 0 === t.fill ? ' ' : t.fill + ''), - (this.align = void 0 === t.align ? '>' : t.align + ''), - (this.sign = void 0 === t.sign ? '-' : t.sign + ''), - (this.symbol = void 0 === t.symbol ? '' : t.symbol + ''), - (this.zero = !!t.zero), - (this.width = void 0 === t.width ? void 0 : +t.width), - (this.comma = !!t.comma), - (this.precision = void 0 === t.precision ? void 0 : +t.precision), - (this.trim = !!t.trim), - (this.type = void 0 === t.type ? '' : t.type + ''); - } - (Ws.prototype = Xs.prototype), - (Xs.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 Ys, - $s, - Qs, - Ks, - Zs = function(t, e) { - var n = Hs(t, e); - if (!n) return t + ''; - 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'); - }, - Js = { - '%': function(t, e) { - return (100 * t).toFixed(e); - }, - b: function(t) { - return Math.round(t).toString(2); - }, - c: function(t) { - return t + ''; - }, - d: function(t) { - return Math.round(t).toString(10); - }, - e: function(t, e) { - return t.toExponential(e); - }, - f: function(t, e) { - return t.toFixed(e); - }, - g: function(t, e) { - return t.toPrecision(e); - }, - o: function(t) { - return Math.round(t).toString(8); - }, - p: function(t, e) { - return Zs(100 * t, e); - }, - r: Zs, - s: function(t, e) { - var n = Hs(t, e); - if (!n) return t + ''; - var r = n[0], - i = n[1], - o = - i - (Ys = 3 * Math.max(-8, Math.min(8, Math.floor(i / 3)))) + 1, - a = r.length; - return o === a - ? r - : o > a - ? r + new Array(o - a + 1).join('0') - : o > 0 - ? r.slice(0, o) + '.' + r.slice(o) - : '0.' + - new Array(1 - o).join('0') + - Hs(t, Math.max(0, e + o - 1))[0]; - }, - X: function(t) { - return Math.round(t) - .toString(16) - .toUpperCase(); - }, - x: function(t) { - return Math.round(t).toString(16); - } - }, - tu = function(t) { - return t; - }, - eu = Array.prototype.map, - nu = [ - 'y', - 'z', - 'a', - 'f', - 'p', - 'n', - 'µ', - 'm', - '', - 'k', - 'M', - 'G', - 'T', - 'P', - 'E', - 'Z', - 'Y' - ], - ru = function(t) { - var e, - n, - r = - void 0 === t.grouping || void 0 === t.thousands - ? tu - : ((e = eu.call(t.grouping, Number)), - (n = t.thousands + ''), - function(t, r) { - for ( - var i = t.length, o = [], a = 0, s = e[0], u = 0; - i > 0 && - s > 0 && - (u + s + 1 > r && (s = Math.max(1, r - u)), - o.push(t.substring((i -= s), i + s)), - !((u += s + 1) > r)); - - ) - s = e[(a = (a + 1) % e.length)]; - return o.reverse().join(n); - }), - i = void 0 === t.currency ? '' : t.currency[0] + '', - o = void 0 === t.currency ? '' : t.currency[1] + '', - a = void 0 === t.decimal ? '.' : t.decimal + '', - s = - void 0 === t.numerals - ? tu - : (function(t) { - return function(e) { - return e.replace(/[0-9]/g, function(e) { - return t[+e]; - }); - }; - })(eu.call(t.numerals, String)), - u = void 0 === t.percent ? '%' : t.percent + '', - l = void 0 === t.minus ? '-' : t.minus + '', - c = void 0 === t.nan ? 'NaN' : t.nan + ''; - function f(t) { - var e = (t = Ws(t)).fill, - n = t.align, - f = t.sign, - d = t.symbol, - h = t.zero, - p = t.width, - g = t.comma, - v = t.precision, - m = t.trim, - y = t.type; - 'n' === y - ? ((g = !0), (y = 'g')) - : Js[y] || (void 0 === v && (v = 12), (m = !0), (y = 'g')), - (h || ('0' === e && '=' === n)) && - ((h = !0), (e = '0'), (n = '=')); - var b = - '$' === d - ? i - : '#' === d && /[boxX]/.test(y) - ? '0' + y.toLowerCase() - : '', - _ = '$' === d ? o : /[%p]/.test(y) ? u : '', - x = Js[y], - w = /[defgprs%]/.test(y); - function S(t) { - var i, - o, - u, - d = b, - S = _; - if ('c' === y) (S = x(t) + S), (t = ''); - else { - var E = (t = +t) < 0 || 1 / t < 0; - if ( - ((t = isNaN(t) ? c : x(Math.abs(t), v)), - m && - (t = (function(t) { - t: for (var e, n = t.length, r = 1, i = -1; r < n; ++r) - switch (t[r]) { - case '.': - i = e = r; - break; - case '0': - 0 === i && (i = r), (e = r); - break; - default: - if (!+t[r]) break t; - i > 0 && (i = 0); - } - return i > 0 ? t.slice(0, i) + t.slice(e + 1) : t; - })(t)), - E && 0 == +t && '+' !== f && (E = !1), - (d = - (E - ? '(' === f - ? f - : l - : '-' === f || '(' === f - ? '' - : f) + d), - (S = - ('s' === y ? nu[8 + Ys / 3] : '') + - S + - (E && '(' === f ? ')' : '')), - w) - ) - for (i = -1, o = t.length; ++i < o; ) - if (48 > (u = t.charCodeAt(i)) || u > 57) { - (S = (46 === u ? a + t.slice(i + 1) : t.slice(i)) + S), - (t = t.slice(0, i)); - break; - } - } - g && !h && (t = r(t, 1 / 0)); - var k = d.length + t.length + S.length, - A = k < p ? new Array(p - k + 1).join(e) : ''; - switch ( - (g && - h && - ((t = r(A + t, A.length ? p - S.length : 1 / 0)), (A = '')), - n) - ) { - case '<': - t = d + t + S + A; - break; - case '=': - t = d + A + t + S; - break; - case '^': - t = A.slice(0, (k = A.length >> 1)) + d + t + S + A.slice(k); - break; - default: - t = A + d + t + S; - } - return s(t); - } - return ( - (v = - void 0 === v - ? 6 - : /[gprs]/.test(y) - ? Math.max(1, Math.min(21, v)) - : Math.max(0, Math.min(20, v))), - (S.toString = function() { - return t + ''; - }), - S - ); - } - return { - format: f, - formatPrefix: function(t, e) { - var n = f((((t = Ws(t)).type = 'f'), t)), - r = 3 * Math.max(-8, Math.min(8, Math.floor(Us(e) / 3))), - i = Math.pow(10, -r), - o = nu[8 + r / 3]; - return function(t) { - return n(i * t) + o; - }; - } - }; - }; - function iu(t) { - return ($s = ru(t)), (Qs = $s.format), (Ks = $s.formatPrefix), $s; - } - iu({ - decimal: '.', - thousands: ',', - grouping: [3], - currency: ['$', ''], - minus: '-' - }); - var ou = function(t) { - return Math.max(0, -Us(Math.abs(t))); - }, - au = function(t, e) { - return Math.max( - 0, - 3 * Math.max(-8, Math.min(8, Math.floor(Us(e) / 3))) - - Us(Math.abs(t)) - ); - }, - su = function(t, e) { - return ( - (t = Math.abs(t)), - (e = Math.abs(e) - t), - Math.max(0, Us(e) - Us(t)) + 1 - ); - }, - uu = function() { - return new lu(); - }; - function lu() { - this.reset(); - } - lu.prototype = { - constructor: lu, - reset: function() { - this.s = this.t = 0; - }, - add: function(t) { - fu(cu, t, this.t), - fu(this, cu.s, this.s), - this.s ? (this.t += cu.t) : (this.s = cu.t); - }, - valueOf: function() { - return this.s; - } - }; - var cu = new lu(); - function fu(t, e, n) { - var r = (t.s = e + n), - i = r - e, - o = r - i; - t.t = e - o + (n - i); - } - var du = Math.PI, - hu = du / 2, - pu = du / 4, - gu = 2 * du, - vu = 180 / du, - mu = du / 180, - yu = Math.abs, - bu = Math.atan, - _u = Math.atan2, - xu = Math.cos, - wu = Math.ceil, - Su = Math.exp, - Eu = (Math.floor, Math.log), - ku = Math.pow, - Au = Math.sin, - Tu = - Math.sign || - function(t) { - return t > 0 ? 1 : t < 0 ? -1 : 0; - }, - Cu = Math.sqrt, - Ou = Math.tan; - function Pu(t) { - return t > 1 ? 0 : t < -1 ? du : Math.acos(t); - } - function Mu(t) { - return t > 1 ? hu : t < -1 ? -hu : Math.asin(t); - } - function Lu(t) { - return (t = Au(t / 2)) * t; - } - function Du() {} - function ju(t, e) { - t && Nu.hasOwnProperty(t.type) && Nu[t.type](t, e); - } - var Ru = { - Feature: function(t, e) { - ju(t.geometry, e); - }, - FeatureCollection: function(t, e) { - for (var n = t.features, r = -1, i = n.length; ++r < i; ) - ju(n[r].geometry, e); - } - }, - Nu = { - Sphere: function(t, e) { - e.sphere(); - }, - Point: function(t, e) { - (t = t.coordinates), e.point(t[0], t[1], t[2]); - }, - MultiPoint: function(t, e) { - for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) - (t = n[r]), e.point(t[0], t[1], t[2]); - }, - LineString: function(t, e) { - zu(t.coordinates, e, 0); - }, - MultiLineString: function(t, e) { - for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) - zu(n[r], e, 0); - }, - Polygon: function(t, e) { - Iu(t.coordinates, e); - }, - MultiPolygon: function(t, e) { - for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) - Iu(n[r], e); - }, - GeometryCollection: function(t, e) { - for (var n = t.geometries, r = -1, i = n.length; ++r < i; ) - ju(n[r], e); - } - }; - function zu(t, e, n) { - var r, - i = -1, - o = t.length - n; - for (e.lineStart(); ++i < o; ) (r = t[i]), e.point(r[0], r[1], r[2]); - e.lineEnd(); - } - function Iu(t, e) { - var n = -1, - r = t.length; - for (e.polygonStart(); ++n < r; ) zu(t[n], e, 1); - e.polygonEnd(); - } - var Fu, - Vu, - Bu, - Gu, - Hu, - Uu = function(t, e) { - t && Ru.hasOwnProperty(t.type) ? Ru[t.type](t, e) : ju(t, e); - }, - qu = uu(), - Wu = uu(), - Xu = { - point: Du, - lineStart: Du, - lineEnd: Du, - polygonStart: function() { - qu.reset(), (Xu.lineStart = Yu), (Xu.lineEnd = $u); - }, - polygonEnd: function() { - var t = +qu; - Wu.add(t < 0 ? gu + t : t), - (this.lineStart = this.lineEnd = this.point = Du); - }, - sphere: function() { - Wu.add(gu); - } - }; - function Yu() { - Xu.point = Qu; - } - function $u() { - Ku(Fu, Vu); - } - function Qu(t, e) { - (Xu.point = Ku), - (Fu = t), - (Vu = e), - (Bu = t *= mu), - (Gu = xu((e = (e *= mu) / 2 + pu))), - (Hu = Au(e)); - } - function Ku(t, e) { - var n = (t *= mu) - Bu, - r = n >= 0 ? 1 : -1, - i = r * n, - o = xu((e = (e *= mu) / 2 + pu)), - a = Au(e), - s = Hu * a, - u = Gu * o + s * xu(i), - l = s * r * Au(i); - qu.add(_u(l, u)), (Bu = t), (Gu = o), (Hu = a); - } - var Zu = function(t) { - return Wu.reset(), Uu(t, Xu), 2 * Wu; - }; - function Ju(t) { - return [_u(t[1], t[0]), Mu(t[2])]; - } - function tl(t) { - var e = t[0], - n = t[1], - r = xu(n); - return [r * xu(e), r * Au(e), Au(n)]; - } - function el(t, e) { - return t[0] * e[0] + t[1] * e[1] + t[2] * e[2]; - } - function nl(t, e) { - return [ - t[1] * e[2] - t[2] * e[1], - t[2] * e[0] - t[0] * e[2], - t[0] * e[1] - t[1] * e[0] - ]; - } - function rl(t, e) { - (t[0] += e[0]), (t[1] += e[1]), (t[2] += e[2]); - } - function il(t, e) { - return [t[0] * e, t[1] * e, t[2] * e]; - } - function ol(t) { - var e = Cu(t[0] * t[0] + t[1] * t[1] + t[2] * t[2]); - (t[0] /= e), (t[1] /= e), (t[2] /= e); - } - var al, - sl, - ul, - ll, - cl, - fl, - dl, - hl, - pl, - gl, - vl = uu(), - ml = { - point: yl, - lineStart: _l, - lineEnd: xl, - polygonStart: function() { - (ml.point = wl), - (ml.lineStart = Sl), - (ml.lineEnd = El), - vl.reset(), - Xu.polygonStart(); - }, - polygonEnd: function() { - Xu.polygonEnd(), - (ml.point = yl), - (ml.lineStart = _l), - (ml.lineEnd = xl), - qu < 0 - ? ((al = -(ul = 180)), (sl = -(ll = 90))) - : vl > 1e-6 - ? (ll = 90) - : vl < -1e-6 && (sl = -90), - (gl[0] = al), - (gl[1] = ul); - }, - sphere: function() { - (al = -(ul = 180)), (sl = -(ll = 90)); - } - }; - function yl(t, e) { - pl.push((gl = [(al = t), (ul = t)])), - e < sl && (sl = e), - e > ll && (ll = e); - } - function bl(t, e) { - var n = tl([t * mu, e * mu]); - if (hl) { - var r = nl(hl, n), - i = nl([r[1], -r[0], 0], r); - ol(i), (i = Ju(i)); - var o, - a = t - cl, - s = a > 0 ? 1 : -1, - u = i[0] * vu * s, - l = yu(a) > 180; - l ^ (s * cl < u && u < s * t) - ? (o = i[1] * vu) > ll && (ll = o) - : l ^ (s * cl < (u = ((u + 360) % 360) - 180) && u < s * t) - ? (o = -i[1] * vu) < sl && (sl = o) - : (e < sl && (sl = e), e > ll && (ll = e)), - l - ? t < cl - ? kl(al, t) > kl(al, ul) && (ul = t) - : kl(t, ul) > kl(al, ul) && (al = t) - : ul >= al - ? (t < al && (al = t), t > ul && (ul = t)) - : t > cl - ? kl(al, t) > kl(al, ul) && (ul = t) - : kl(t, ul) > kl(al, ul) && (al = t); - } else pl.push((gl = [(al = t), (ul = t)])); - e < sl && (sl = e), e > ll && (ll = e), (hl = n), (cl = t); - } - function _l() { - ml.point = bl; - } - function xl() { - (gl[0] = al), (gl[1] = ul), (ml.point = yl), (hl = null); - } - function wl(t, e) { - if (hl) { - var n = t - cl; - vl.add(yu(n) > 180 ? n + (n > 0 ? 360 : -360) : n); - } else (fl = t), (dl = e); - Xu.point(t, e), bl(t, e); - } - function Sl() { - Xu.lineStart(); - } - function El() { - wl(fl, dl), - Xu.lineEnd(), - yu(vl) > 1e-6 && (al = -(ul = 180)), - (gl[0] = al), - (gl[1] = ul), - (hl = null); - } - function kl(t, e) { - return (e -= t) < 0 ? e + 360 : e; - } - function Al(t, e) { - return t[0] - e[0]; - } - function Tl(t, e) { - return t[0] <= t[1] ? t[0] <= e && e <= t[1] : e < t[0] || t[1] < e; - } - var Cl, - Ol, - Pl, - Ml, - Ll, - Dl, - jl, - Rl, - Nl, - zl, - Il, - Fl, - Vl, - Bl, - Gl, - Hl, - Ul = function(t) { - var e, n, r, i, o, a, s; - if ( - ((ll = ul = -(al = sl = 1 / 0)), - (pl = []), - Uu(t, ml), - (n = pl.length)) - ) { - for (pl.sort(Al), e = 1, o = [(r = pl[0])]; e < n; ++e) - Tl(r, (i = pl[e])[0]) || Tl(r, i[1]) - ? (kl(r[0], i[1]) > kl(r[0], r[1]) && (r[1] = i[1]), - kl(i[0], r[1]) > kl(r[0], r[1]) && (r[0] = i[0])) - : o.push((r = i)); - for ( - a = -1 / 0, e = 0, r = o[(n = o.length - 1)]; - e <= n; - r = i, ++e - ) - (i = o[e]), - (s = kl(r[1], i[0])) > a && ((a = s), (al = i[0]), (ul = r[1])); - } - return ( - (pl = gl = null), - al === 1 / 0 || sl === 1 / 0 - ? [ - [NaN, NaN], - [NaN, NaN] - ] - : [ - [al, sl], - [ul, ll] - ] - ); - }, - ql = { - sphere: Du, - point: Wl, - lineStart: Yl, - lineEnd: Kl, - polygonStart: function() { - (ql.lineStart = Zl), (ql.lineEnd = Jl); - }, - polygonEnd: function() { - (ql.lineStart = Yl), (ql.lineEnd = Kl); - } - }; - function Wl(t, e) { - t *= mu; - var n = xu((e *= mu)); - Xl(n * xu(t), n * Au(t), Au(e)); - } - function Xl(t, e, n) { - ++Cl, - (Pl += (t - Pl) / Cl), - (Ml += (e - Ml) / Cl), - (Ll += (n - Ll) / Cl); - } - function Yl() { - ql.point = $l; - } - function $l(t, e) { - t *= mu; - var n = xu((e *= mu)); - (Bl = n * xu(t)), - (Gl = n * Au(t)), - (Hl = Au(e)), - (ql.point = Ql), - Xl(Bl, Gl, Hl); - } - function Ql(t, e) { - t *= mu; - var n = xu((e *= mu)), - r = n * xu(t), - i = n * Au(t), - o = Au(e), - a = _u( - Cu( - (a = Gl * o - Hl * i) * a + - (a = Hl * r - Bl * o) * a + - (a = Bl * i - Gl * r) * a - ), - Bl * r + Gl * i + Hl * o - ); - (Ol += a), - (Dl += a * (Bl + (Bl = r))), - (jl += a * (Gl + (Gl = i))), - (Rl += a * (Hl + (Hl = o))), - Xl(Bl, Gl, Hl); - } - function Kl() { - ql.point = Wl; - } - function Zl() { - ql.point = tc; - } - function Jl() { - ec(Fl, Vl), (ql.point = Wl); - } - function tc(t, e) { - (Fl = t), (Vl = e), (t *= mu), (e *= mu), (ql.point = ec); - var n = xu(e); - (Bl = n * xu(t)), (Gl = n * Au(t)), (Hl = Au(e)), Xl(Bl, Gl, Hl); - } - function ec(t, e) { - t *= mu; - var n = xu((e *= mu)), - r = n * xu(t), - i = n * Au(t), - o = Au(e), - a = Gl * o - Hl * i, - s = Hl * r - Bl * o, - u = Bl * i - Gl * r, - l = Cu(a * a + s * s + u * u), - c = Mu(l), - f = l && -c / l; - (Nl += f * a), - (zl += f * s), - (Il += f * u), - (Ol += c), - (Dl += c * (Bl + (Bl = r))), - (jl += c * (Gl + (Gl = i))), - (Rl += c * (Hl + (Hl = o))), - Xl(Bl, Gl, Hl); - } - var nc = function(t) { - (Cl = Ol = Pl = Ml = Ll = Dl = jl = Rl = Nl = zl = Il = 0), Uu(t, ql); - var e = Nl, - n = zl, - r = Il, - i = e * e + n * n + r * r; - return i < 1e-12 && - ((e = Dl), - (n = jl), - (r = Rl), - Ol < 1e-6 && ((e = Pl), (n = Ml), (r = Ll)), - (i = e * e + n * n + r * r) < 1e-12) - ? [NaN, NaN] - : [_u(n, e) * vu, Mu(r / Cu(i)) * vu]; - }, - rc = function(t) { - return function() { - return t; - }; - }, - ic = function(t, e) { - function n(n, r) { - return (n = t(n, r)), e(n[0], n[1]); - } - return ( - t.invert && - e.invert && - (n.invert = function(n, r) { - return (n = e.invert(n, r)) && t.invert(n[0], n[1]); - }), - n - ); - }; - function oc(t, e) { - return [yu(t) > du ? t + Math.round(-t / gu) * gu : t, e]; - } - function ac(t, e, n) { - return (t %= gu) - ? e || n - ? ic(uc(t), lc(e, n)) - : uc(t) - : e || n - ? lc(e, n) - : oc; - } - function sc(t) { - return function(e, n) { - return [(e += t) > du ? e - gu : e < -du ? e + gu : e, n]; - }; - } - function uc(t) { - var e = sc(t); - return (e.invert = sc(-t)), e; - } - function lc(t, e) { - var n = xu(t), - r = Au(t), - i = xu(e), - o = Au(e); - function a(t, e) { - var a = xu(e), - s = xu(t) * a, - u = Au(t) * a, - l = Au(e), - c = l * n + s * r; - return [_u(u * i - c * o, s * n - l * r), Mu(c * i + u * o)]; - } - return ( - (a.invert = function(t, e) { - var a = xu(e), - s = xu(t) * a, - u = Au(t) * a, - l = Au(e), - c = l * i - u * o; - return [_u(u * i + l * o, s * n + c * r), Mu(c * n - s * r)]; - }), - a - ); - } - oc.invert = oc; - var cc = function(t) { - function e(e) { - return ((e = t(e[0] * mu, e[1] * mu))[0] *= vu), (e[1] *= vu), e; - } - return ( - (t = ac(t[0] * mu, t[1] * mu, t.length > 2 ? t[2] * mu : 0)), - (e.invert = function(e) { - return ( - ((e = t.invert(e[0] * mu, e[1] * mu))[0] *= vu), (e[1] *= vu), e - ); - }), - e - ); - }; - function fc(t, e, n, r, i, o) { - if (n) { - var a = xu(e), - s = Au(e), - u = r * n; - null == i - ? ((i = e + r * gu), (o = e - u / 2)) - : ((i = dc(a, i)), - (o = dc(a, o)), - (r > 0 ? i < o : i > o) && (i += r * gu)); - for (var l, c = i; r > 0 ? c > o : c < o; c -= u) - (l = Ju([a, -s * xu(c), -s * Au(c)])), t.point(l[0], l[1]); - } - } - function dc(t, e) { - ((e = tl(e))[0] -= t), ol(e); - var n = Pu(-e[1]); - return ((-e[2] < 0 ? -n : n) + gu - 1e-6) % gu; - } - var hc = function() { - var t, - e, - n = rc([0, 0]), - r = rc(90), - i = rc(6), - o = { - point: function(n, r) { - t.push((n = e(n, r))), (n[0] *= vu), (n[1] *= vu); - } - }; - function a() { - var a = n.apply(this, arguments), - s = r.apply(this, arguments) * mu, - u = i.apply(this, arguments) * mu; - return ( - (t = []), - (e = ac(-a[0] * mu, -a[1] * mu, 0).invert), - fc(o, s, u, 1), - (a = { type: 'Polygon', coordinates: [t] }), - (t = e = null), - a - ); - } - return ( - (a.center = function(t) { - return arguments.length - ? ((n = 'function' == typeof t ? t : rc([+t[0], +t[1]])), a) - : n; - }), - (a.radius = function(t) { - return arguments.length - ? ((r = 'function' == typeof t ? t : rc(+t)), a) - : r; - }), - (a.precision = function(t) { - return arguments.length - ? ((i = 'function' == typeof t ? t : rc(+t)), a) - : i; - }), - a - ); - }, - pc = function() { - var t, - e = []; - return { - point: function(e, n) { - t.push([e, n]); - }, - lineStart: function() { - e.push((t = [])); - }, - lineEnd: Du, - rejoin: function() { - e.length > 1 && e.push(e.pop().concat(e.shift())); - }, - result: function() { - var n = e; - return (e = []), (t = null), n; - } - }; - }, - gc = function(t, e) { - return yu(t[0] - e[0]) < 1e-6 && yu(t[1] - e[1]) < 1e-6; - }; - function vc(t, e, n, r) { - (this.x = t), - (this.z = e), - (this.o = n), - (this.e = r), - (this.v = !1), - (this.n = this.p = null); - } - var mc = function(t, e, n, r, i) { - var o, - a, - s = [], - u = []; - if ( - (t.forEach(function(t) { - if (!((e = t.length - 1) <= 0)) { - var e, - n, - r = t[0], - a = t[e]; - if (gc(r, a)) { - for (i.lineStart(), o = 0; o < e; ++o) - i.point((r = t[o])[0], r[1]); - i.lineEnd(); - } else - s.push((n = new vc(r, t, null, !0))), - u.push((n.o = new vc(r, null, n, !1))), - s.push((n = new vc(a, t, null, !1))), - u.push((n.o = new vc(a, null, n, !0))); - } - }), - s.length) - ) { - for (u.sort(e), yc(s), yc(u), o = 0, a = u.length; o < a; ++o) - u[o].e = n = !n; - for (var l, c, f = s[0]; ; ) { - for (var d = f, h = !0; d.v; ) if ((d = d.n) === f) return; - (l = d.z), i.lineStart(); - do { - if (((d.v = d.o.v = !0), d.e)) { - if (h) - for (o = 0, a = l.length; o < a; ++o) - i.point((c = l[o])[0], c[1]); - else r(d.x, d.n.x, 1, i); - d = d.n; - } else { - if (h) - for (l = d.p.z, o = l.length - 1; o >= 0; --o) - i.point((c = l[o])[0], c[1]); - else r(d.x, d.p.x, -1, i); - d = d.p; - } - (l = (d = d.o).z), (h = !h); - } while (!d.v); - i.lineEnd(); - } - } - }; - function yc(t) { - if ((e = t.length)) { - for (var e, n, r = 0, i = t[0]; ++r < e; ) - (i.n = n = t[r]), (n.p = i), (i = n); - (i.n = n = t[0]), (n.p = i); - } - } - var bc = uu(); - function _c(t) { - return yu(t[0]) <= du ? t[0] : Tu(t[0]) * (((yu(t[0]) + du) % gu) - du); - } - var xc = function(t, e) { - var n = _c(e), - r = e[1], - i = Au(r), - o = [Au(n), -xu(n), 0], - a = 0, - s = 0; - bc.reset(), 1 === i ? (r = hu + 1e-6) : -1 === i && (r = -hu - 1e-6); - for (var u = 0, l = t.length; u < l; ++u) - if ((f = (c = t[u]).length)) - for ( - var c, - f, - d = c[f - 1], - h = _c(d), - p = d[1] / 2 + pu, - g = Au(p), - v = xu(p), - m = 0; - m < f; - ++m, h = b, g = x, v = w, d = y - ) { - var y = c[m], - b = _c(y), - _ = y[1] / 2 + pu, - x = Au(_), - w = xu(_), - S = b - h, - E = S >= 0 ? 1 : -1, - k = E * S, - A = k > du, - T = g * x; - if ( - (bc.add(_u(T * E * Au(k), v * w + T * xu(k))), - (a += A ? S + E * gu : S), - A ^ (h >= n) ^ (b >= n)) - ) { - var C = nl(tl(d), tl(y)); - ol(C); - var O = nl(o, C); - ol(O); - var P = (A ^ (S >= 0) ? -1 : 1) * Mu(O[2]); - (r > P || (r === P && (C[0] || C[1]))) && - (s += A ^ (S >= 0) ? 1 : -1); - } - } - return (a < -1e-6 || (a < 1e-6 && bc < -1e-6)) ^ (1 & s); - }, - wc = function(t, e, n, r) { - return function(i) { - var o, - a, - s, - u = e(i), - l = pc(), - c = e(l), - f = !1, - d = { - point: h, - lineStart: g, - lineEnd: v, - polygonStart: function() { - (d.point = m), - (d.lineStart = y), - (d.lineEnd = b), - (a = []), - (o = []); - }, - polygonEnd: function() { - (d.point = h), (d.lineStart = g), (d.lineEnd = v), (a = I(a)); - var t = xc(o, r); - a.length - ? (f || (i.polygonStart(), (f = !0)), mc(a, Ec, t, n, i)) - : t && - (f || (i.polygonStart(), (f = !0)), - i.lineStart(), - n(null, null, 1, i), - i.lineEnd()), - f && (i.polygonEnd(), (f = !1)), - (a = o = null); - }, - sphere: function() { - i.polygonStart(), - i.lineStart(), - n(null, null, 1, i), - i.lineEnd(), - i.polygonEnd(); - } - }; - function h(e, n) { - t(e, n) && i.point(e, n); - } - function p(t, e) { - u.point(t, e); - } - function g() { - (d.point = p), u.lineStart(); - } - function v() { - (d.point = h), u.lineEnd(); - } - function m(t, e) { - s.push([t, e]), c.point(t, e); - } - function y() { - c.lineStart(), (s = []); - } - function b() { - m(s[0][0], s[0][1]), c.lineEnd(); - var t, - e, - n, - r, - u = c.clean(), - d = l.result(), - h = d.length; - if ((s.pop(), o.push(s), (s = null), h)) - if (1 & u) { - if ((e = (n = d[0]).length - 1) > 0) { - for ( - f || (i.polygonStart(), (f = !0)), i.lineStart(), t = 0; - t < e; - ++t - ) - i.point((r = n[t])[0], r[1]); - i.lineEnd(); - } - } else - h > 1 && 2 & u && d.push(d.pop().concat(d.shift())), - a.push(d.filter(Sc)); - } - return d; - }; - }; - function Sc(t) { - return t.length > 1; - } - function Ec(t, e) { - return ( - ((t = t.x)[0] < 0 ? t[1] - hu - 1e-6 : hu - t[1]) - - ((e = e.x)[0] < 0 ? e[1] - hu - 1e-6 : hu - e[1]) - ); - } - var kc = wc( - function() { - return !0; - }, - function(t) { - var e, - n = NaN, - r = NaN, - i = NaN; - return { - lineStart: function() { - t.lineStart(), (e = 1); - }, - point: function(o, a) { - var s = o > 0 ? du : -du, - u = yu(o - n); - yu(u - du) < 1e-6 - ? (t.point(n, (r = (r + a) / 2 > 0 ? hu : -hu)), - t.point(i, r), - t.lineEnd(), - t.lineStart(), - t.point(s, r), - t.point(o, r), - (e = 0)) - : i !== s && - u >= du && - (yu(n - i) < 1e-6 && (n -= 1e-6 * i), - yu(o - s) < 1e-6 && (o -= 1e-6 * s), - (r = (function(t, e, n, r) { - var i, - o, - a = Au(t - n); - return yu(a) > 1e-6 - ? bu( - (Au(e) * (o = xu(r)) * Au(n) - - Au(r) * (i = xu(e)) * Au(t)) / - (i * o * a) - ) - : (e + r) / 2; - })(n, r, o, a)), - t.point(i, r), - t.lineEnd(), - t.lineStart(), - t.point(s, r), - (e = 0)), - t.point((n = o), (r = a)), - (i = s); - }, - lineEnd: function() { - t.lineEnd(), (n = r = NaN); - }, - clean: function() { - return 2 - e; - } - }; - }, - function(t, e, n, r) { - var i; - if (null == t) - (i = n * hu), - r.point(-du, i), - r.point(0, i), - r.point(du, i), - r.point(du, 0), - r.point(du, -i), - r.point(0, -i), - r.point(-du, -i), - r.point(-du, 0), - r.point(-du, i); - else if (yu(t[0] - e[0]) > 1e-6) { - var o = t[0] < e[0] ? du : -du; - (i = (n * o) / 2), r.point(-o, i), r.point(0, i), r.point(o, i); - } else r.point(e[0], e[1]); - }, - [-du, -hu] - ); - var Ac = function(t) { - var e = xu(t), - n = 6 * mu, - r = e > 0, - i = yu(e) > 1e-6; - function o(t, n) { - return xu(t) * xu(n) > e; - } - function a(t, n, r) { - var i = [1, 0, 0], - o = nl(tl(t), tl(n)), - a = el(o, o), - s = o[0], - u = a - s * s; - if (!u) return !r && t; - var l = (e * a) / u, - c = (-e * s) / u, - f = nl(i, o), - d = il(i, l); - rl(d, il(o, c)); - var h = f, - p = el(d, h), - g = el(h, h), - v = p * p - g * (el(d, d) - 1); - if (!(v < 0)) { - var m = Cu(v), - y = il(h, (-p - m) / g); - if ((rl(y, d), (y = Ju(y)), !r)) return y; - var b, - _ = t[0], - x = n[0], - w = t[1], - S = n[1]; - x < _ && ((b = _), (_ = x), (x = b)); - var E = x - _, - k = yu(E - du) < 1e-6; - if ( - (!k && S < w && ((b = w), (w = S), (S = b)), - k || E < 1e-6 - ? k - ? (w + S > 0) ^ (y[1] < (yu(y[0] - _) < 1e-6 ? w : S)) - : w <= y[1] && y[1] <= S - : (E > du) ^ (_ <= y[0] && y[0] <= x)) - ) { - var A = il(h, (-p + m) / g); - return rl(A, d), [y, Ju(A)]; - } - } - } - function s(e, n) { - var i = r ? t : du - t, - o = 0; - return ( - e < -i ? (o |= 1) : e > i && (o |= 2), - n < -i ? (o |= 4) : n > i && (o |= 8), - o - ); - } - return wc( - o, - function(t) { - var e, n, u, l, c; - return { - lineStart: function() { - (l = u = !1), (c = 1); - }, - point: function(f, d) { - var h, - p = [f, d], - g = o(f, d), - v = r - ? g - ? 0 - : s(f, d) - : g - ? s(f + (f < 0 ? du : -du), d) - : 0; - if ( - (!e && (l = u = g) && t.lineStart(), - g !== u && - (!(h = a(e, p)) || gc(e, h) || gc(p, h)) && - ((p[0] += 1e-6), (p[1] += 1e-6), (g = o(p[0], p[1]))), - g !== u) - ) - (c = 0), - g - ? (t.lineStart(), (h = a(p, e)), t.point(h[0], h[1])) - : ((h = a(e, p)), t.point(h[0], h[1]), t.lineEnd()), - (e = h); - else if (i && e && r ^ g) { - var m; - v & n || - !(m = a(p, e, !0)) || - ((c = 0), - r - ? (t.lineStart(), - t.point(m[0][0], m[0][1]), - t.point(m[1][0], m[1][1]), - t.lineEnd()) - : (t.point(m[1][0], m[1][1]), - t.lineEnd(), - t.lineStart(), - t.point(m[0][0], m[0][1]))); - } - !g || (e && gc(e, p)) || t.point(p[0], p[1]), - (e = p), - (u = g), - (n = v); - }, - lineEnd: function() { - u && t.lineEnd(), (e = null); - }, - clean: function() { - return c | ((l && u) << 1); - } - }; - }, - function(e, r, i, o) { - fc(o, t, n, i, e, r); - }, - r ? [0, -t] : [-du, t - du] - ); - }; - function Tc(t, e, n, r) { - function i(i, o) { - return t <= i && i <= n && e <= o && o <= r; - } - function o(i, o, s, l) { - var c = 0, - f = 0; - if ( - null == i || - (c = a(i, s)) !== (f = a(o, s)) || - (u(i, o) < 0) ^ (s > 0) - ) - do { - l.point(0 === c || 3 === c ? t : n, c > 1 ? r : e); - } while ((c = (c + s + 4) % 4) !== f); - else l.point(o[0], o[1]); - } - function a(r, i) { - return yu(r[0] - t) < 1e-6 - ? i > 0 - ? 0 - : 3 - : yu(r[0] - n) < 1e-6 - ? i > 0 - ? 2 - : 1 - : yu(r[1] - e) < 1e-6 - ? i > 0 - ? 1 - : 0 - : i > 0 - ? 3 - : 2; - } - function s(t, e) { - return u(t.x, e.x); - } - function u(t, e) { - var n = a(t, 1), - r = a(e, 1); - return n !== r - ? n - r - : 0 === n - ? e[1] - t[1] - : 1 === n - ? t[0] - e[0] - : 2 === n - ? t[1] - e[1] - : e[0] - t[0]; - } - return function(a) { - var u, - l, - c, - f, - d, - h, - p, - g, - v, - m, - y, - b = a, - _ = pc(), - x = { - point: w, - lineStart: function() { - (x.point = S), l && l.push((c = [])); - (m = !0), (v = !1), (p = g = NaN); - }, - lineEnd: function() { - u && (S(f, d), h && v && _.rejoin(), u.push(_.result())); - (x.point = w), v && b.lineEnd(); - }, - polygonStart: function() { - (b = _), (u = []), (l = []), (y = !0); - }, - polygonEnd: function() { - var e = (function() { - for (var e = 0, n = 0, i = l.length; n < i; ++n) - for ( - var o, - a, - s = l[n], - u = 1, - c = s.length, - f = s[0], - d = f[0], - h = f[1]; - u < c; - ++u - ) - (o = d), - (a = h), - (f = s[u]), - (d = f[0]), - (h = f[1]), - a <= r - ? h > r && - (d - o) * (r - a) > (h - a) * (t - o) && - ++e - : h <= r && - (d - o) * (r - a) < (h - a) * (t - o) && - --e; - return e; - })(), - n = y && e, - i = (u = I(u)).length; - (n || i) && - (a.polygonStart(), - n && (a.lineStart(), o(null, null, 1, a), a.lineEnd()), - i && mc(u, s, e, o, a), - a.polygonEnd()); - (b = a), (u = l = c = null); - } - }; - function w(t, e) { - i(t, e) && b.point(t, e); - } - function S(o, a) { - var s = i(o, a); - if ((l && c.push([o, a]), m)) - (f = o), - (d = a), - (h = s), - (m = !1), - s && (b.lineStart(), b.point(o, a)); - else if (s && v) b.point(o, a); - else { - var u = [ - (p = Math.max(-1e9, Math.min(1e9, p))), - (g = Math.max(-1e9, Math.min(1e9, g))) - ], - _ = [ - (o = Math.max(-1e9, Math.min(1e9, o))), - (a = Math.max(-1e9, Math.min(1e9, a))) - ]; - !(function(t, e, n, r, i, o) { - var a, - s = t[0], - u = t[1], - l = 0, - c = 1, - f = e[0] - s, - d = e[1] - u; - if (((a = n - s), f || !(a > 0))) { - if (((a /= f), f < 0)) { - if (a < l) return; - a < c && (c = a); - } else if (f > 0) { - if (a > c) return; - a > l && (l = a); - } - if (((a = i - s), f || !(a < 0))) { - if (((a /= f), f < 0)) { - if (a > c) return; - a > l && (l = a); - } else if (f > 0) { - if (a < l) return; - a < c && (c = a); - } - if (((a = r - u), d || !(a > 0))) { - if (((a /= d), d < 0)) { - if (a < l) return; - a < c && (c = a); - } else if (d > 0) { - if (a > c) return; - a > l && (l = a); - } - if (((a = o - u), d || !(a < 0))) { - if (((a /= d), d < 0)) { - if (a > c) return; - a > l && (l = a); - } else if (d > 0) { - if (a < l) return; - a < c && (c = a); - } - return ( - l > 0 && ((t[0] = s + l * f), (t[1] = u + l * d)), - c < 1 && ((e[0] = s + c * f), (e[1] = u + c * d)), - !0 - ); - } - } - } - } - })(u, _, t, e, n, r) - ? s && (b.lineStart(), b.point(o, a), (y = !1)) - : (v || (b.lineStart(), b.point(u[0], u[1])), - b.point(_[0], _[1]), - s || b.lineEnd(), - (y = !1)); - } - (p = o), (g = a), (v = s); - } - return x; - }; - } - var Cc, - Oc, - Pc, - Mc = function() { - var t, - e, - n, - r = 0, - i = 0, - o = 960, - a = 500; - return (n = { - stream: function(n) { - return t && e === n ? t : (t = Tc(r, i, o, a)((e = n))); - }, - extent: function(s) { - return arguments.length - ? ((r = +s[0][0]), - (i = +s[0][1]), - (o = +s[1][0]), - (a = +s[1][1]), - (t = e = null), - n) - : [ - [r, i], - [o, a] - ]; - } - }); - }, - Lc = uu(), - Dc = { - sphere: Du, - point: Du, - lineStart: function() { - (Dc.point = Rc), (Dc.lineEnd = jc); - }, - lineEnd: Du, - polygonStart: Du, - polygonEnd: Du - }; - function jc() { - Dc.point = Dc.lineEnd = Du; - } - function Rc(t, e) { - (Cc = t *= mu), (Oc = Au((e *= mu))), (Pc = xu(e)), (Dc.point = Nc); - } - function Nc(t, e) { - t *= mu; - var n = Au((e *= mu)), - r = xu(e), - i = yu(t - Cc), - o = xu(i), - a = r * Au(i), - s = Pc * n - Oc * r * o, - u = Oc * n + Pc * r * o; - Lc.add(_u(Cu(a * a + s * s), u)), (Cc = t), (Oc = n), (Pc = r); - } - var zc = function(t) { - return Lc.reset(), Uu(t, Dc), +Lc; - }, - Ic = [null, null], - Fc = { type: 'LineString', coordinates: Ic }, - Vc = function(t, e) { - return (Ic[0] = t), (Ic[1] = e), zc(Fc); - }, - Bc = { - Feature: function(t, e) { - return Hc(t.geometry, e); - }, - FeatureCollection: function(t, e) { - for (var n = t.features, r = -1, i = n.length; ++r < i; ) - if (Hc(n[r].geometry, e)) return !0; - return !1; - } - }, - Gc = { - Sphere: function() { - return !0; - }, - Point: function(t, e) { - return Uc(t.coordinates, e); - }, - MultiPoint: function(t, e) { - for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) - if (Uc(n[r], e)) return !0; - return !1; - }, - LineString: function(t, e) { - return qc(t.coordinates, e); - }, - MultiLineString: function(t, e) { - for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) - if (qc(n[r], e)) return !0; - return !1; - }, - Polygon: function(t, e) { - return Wc(t.coordinates, e); - }, - MultiPolygon: function(t, e) { - for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) - if (Wc(n[r], e)) return !0; - return !1; - }, - GeometryCollection: function(t, e) { - for (var n = t.geometries, r = -1, i = n.length; ++r < i; ) - if (Hc(n[r], e)) return !0; - return !1; - } - }; - function Hc(t, e) { - return !(!t || !Gc.hasOwnProperty(t.type)) && Gc[t.type](t, e); - } - function Uc(t, e) { - return 0 === Vc(t, e); - } - function qc(t, e) { - for (var n, r, i, o = 0, a = t.length; o < a; o++) { - if (0 === (r = Vc(t[o], e))) return !0; - if ( - o > 0 && - (i = Vc(t[o], t[o - 1])) > 0 && - n <= i && - r <= i && - (n + r - i) * (1 - Math.pow((n - r) / i, 2)) < 1e-12 * i - ) - return !0; - n = r; - } - return !1; - } - function Wc(t, e) { - return !!xc(t.map(Xc), Yc(e)); - } - function Xc(t) { - return (t = t.map(Yc)).pop(), t; - } - function Yc(t) { - return [t[0] * mu, t[1] * mu]; - } - var $c = function(t, e) { - return (t && Bc.hasOwnProperty(t.type) ? Bc[t.type] : Hc)(t, e); - }; - function Qc(t, e, n) { - var r = S(t, e - 1e-6, n).concat(e); - return function(t) { - return r.map(function(e) { - return [t, e]; - }); - }; - } - function Kc(t, e, n) { - var r = S(t, e - 1e-6, n).concat(e); - return function(t) { - return r.map(function(e) { - return [e, t]; - }); - }; - } - function Zc() { - var t, - e, - n, - r, - i, - o, - a, - s, - u, - l, - c, - f, - d = 10, - h = d, - p = 90, - g = 360, - v = 2.5; - function m() { - return { type: 'MultiLineString', coordinates: y() }; - } - function y() { - return S(wu(r / p) * p, n, p) - .map(c) - .concat(S(wu(s / g) * g, a, g).map(f)) - .concat( - S(wu(e / d) * d, t, d) - .filter(function(t) { - return yu(t % p) > 1e-6; - }) - .map(u) - ) - .concat( - S(wu(o / h) * h, i, h) - .filter(function(t) { - return yu(t % g) > 1e-6; - }) - .map(l) - ); - } - return ( - (m.lines = function() { - return y().map(function(t) { - return { type: 'LineString', coordinates: t }; - }); - }), - (m.outline = function() { - return { - type: 'Polygon', - coordinates: [ - c(r).concat( - f(a).slice(1), - c(n) - .reverse() - .slice(1), - f(s) - .reverse() - .slice(1) - ) - ] - }; - }), - (m.extent = function(t) { - return arguments.length - ? m.extentMajor(t).extentMinor(t) - : m.extentMinor(); - }), - (m.extentMajor = function(t) { - return arguments.length - ? ((r = +t[0][0]), - (n = +t[1][0]), - (s = +t[0][1]), - (a = +t[1][1]), - r > n && ((t = r), (r = n), (n = t)), - s > a && ((t = s), (s = a), (a = t)), - m.precision(v)) - : [ - [r, s], - [n, a] - ]; - }), - (m.extentMinor = function(n) { - return arguments.length - ? ((e = +n[0][0]), - (t = +n[1][0]), - (o = +n[0][1]), - (i = +n[1][1]), - e > t && ((n = e), (e = t), (t = n)), - o > i && ((n = o), (o = i), (i = n)), - m.precision(v)) - : [ - [e, o], - [t, i] - ]; - }), - (m.step = function(t) { - return arguments.length - ? m.stepMajor(t).stepMinor(t) - : m.stepMinor(); - }), - (m.stepMajor = function(t) { - return arguments.length ? ((p = +t[0]), (g = +t[1]), m) : [p, g]; - }), - (m.stepMinor = function(t) { - return arguments.length ? ((d = +t[0]), (h = +t[1]), m) : [d, h]; - }), - (m.precision = function(d) { - return arguments.length - ? ((v = +d), - (u = Qc(o, i, 90)), - (l = Kc(e, t, v)), - (c = Qc(s, a, 90)), - (f = Kc(r, n, v)), - m) - : v; - }), - m - .extentMajor([ - [-180, -89.999999], - [180, 89.999999] - ]) - .extentMinor([ - [-180, -80.000001], - [180, 80.000001] - ]) - ); - } - function Jc() { - return Zc()(); - } - var tf, - ef, - nf, - rf, - of = function(t, e) { - var n = t[0] * mu, - r = t[1] * mu, - i = e[0] * mu, - o = e[1] * mu, - a = xu(r), - s = Au(r), - u = xu(o), - l = Au(o), - c = a * xu(n), - f = a * Au(n), - d = u * xu(i), - h = u * Au(i), - p = 2 * Mu(Cu(Lu(o - r) + a * u * Lu(i - n))), - g = Au(p), - v = p - ? function(t) { - var e = Au((t *= p)) / g, - n = Au(p - t) / g, - r = n * c + e * d, - i = n * f + e * h, - o = n * s + e * l; - return [_u(i, r) * vu, _u(o, Cu(r * r + i * i)) * vu]; - } - : function() { - return [n * vu, r * vu]; - }; - return (v.distance = p), v; - }, - af = function(t) { - return t; - }, - sf = uu(), - uf = uu(), - lf = { - point: Du, - lineStart: Du, - lineEnd: Du, - polygonStart: function() { - (lf.lineStart = cf), (lf.lineEnd = hf); - }, - polygonEnd: function() { - (lf.lineStart = lf.lineEnd = lf.point = Du), - sf.add(yu(uf)), - uf.reset(); - }, - result: function() { - var t = sf / 2; - return sf.reset(), t; - } - }; - function cf() { - lf.point = ff; - } - function ff(t, e) { - (lf.point = df), (tf = nf = t), (ef = rf = e); - } - function df(t, e) { - uf.add(rf * t - nf * e), (nf = t), (rf = e); - } - function hf() { - df(tf, ef); - } - var pf = lf, - gf = 1 / 0, - vf = gf, - mf = -gf, - yf = mf; - var bf, - _f, - xf, - wf, - Sf = { - point: function(t, e) { - t < gf && (gf = t); - t > mf && (mf = t); - e < vf && (vf = e); - e > yf && (yf = e); - }, - lineStart: Du, - lineEnd: Du, - polygonStart: Du, - polygonEnd: Du, - result: function() { - var t = [ - [gf, vf], - [mf, yf] - ]; - return (mf = yf = -(vf = gf = 1 / 0)), t; - } - }, - Ef = 0, - kf = 0, - Af = 0, - Tf = 0, - Cf = 0, - Of = 0, - Pf = 0, - Mf = 0, - Lf = 0, - Df = { - point: jf, - lineStart: Rf, - lineEnd: If, - polygonStart: function() { - (Df.lineStart = Ff), (Df.lineEnd = Vf); - }, - polygonEnd: function() { - (Df.point = jf), (Df.lineStart = Rf), (Df.lineEnd = If); - }, - result: function() { - var t = Lf - ? [Pf / Lf, Mf / Lf] - : Of - ? [Tf / Of, Cf / Of] - : Af - ? [Ef / Af, kf / Af] - : [NaN, NaN]; - return (Ef = kf = Af = Tf = Cf = Of = Pf = Mf = Lf = 0), t; - } - }; - function jf(t, e) { - (Ef += t), (kf += e), ++Af; - } - function Rf() { - Df.point = Nf; - } - function Nf(t, e) { - (Df.point = zf), jf((xf = t), (wf = e)); - } - function zf(t, e) { - var n = t - xf, - r = e - wf, - i = Cu(n * n + r * r); - (Tf += (i * (xf + t)) / 2), - (Cf += (i * (wf + e)) / 2), - (Of += i), - jf((xf = t), (wf = e)); - } - function If() { - Df.point = jf; - } - function Ff() { - Df.point = Bf; - } - function Vf() { - Gf(bf, _f); - } - function Bf(t, e) { - (Df.point = Gf), jf((bf = xf = t), (_f = wf = e)); - } - function Gf(t, e) { - var n = t - xf, - r = e - wf, - i = Cu(n * n + r * r); - (Tf += (i * (xf + t)) / 2), - (Cf += (i * (wf + e)) / 2), - (Of += i), - (Pf += (i = wf * t - xf * e) * (xf + t)), - (Mf += i * (wf + e)), - (Lf += 3 * i), - jf((xf = t), (wf = e)); - } - var Hf = Df; - function Uf(t) { - this._context = t; - } - Uf.prototype = { - _radius: 4.5, - pointRadius: function(t) { - return (this._radius = t), this; - }, - polygonStart: function() { - this._line = 0; - }, - polygonEnd: function() { - this._line = NaN; - }, - lineStart: function() { - this._point = 0; - }, - lineEnd: function() { - 0 === this._line && this._context.closePath(), (this._point = NaN); - }, - point: function(t, e) { - switch (this._point) { - case 0: - this._context.moveTo(t, e), (this._point = 1); - break; - case 1: - this._context.lineTo(t, e); - break; - default: - this._context.moveTo(t + this._radius, e), - this._context.arc(t, e, this._radius, 0, gu); - } - }, - result: Du - }; - var qf, - Wf, - Xf, - Yf, - $f, - Qf = uu(), - Kf = { - point: Du, - lineStart: function() { - Kf.point = Zf; - }, - lineEnd: function() { - qf && Jf(Wf, Xf), (Kf.point = Du); - }, - polygonStart: function() { - qf = !0; - }, - polygonEnd: function() { - qf = null; - }, - result: function() { - var t = +Qf; - return Qf.reset(), t; - } - }; - function Zf(t, e) { - (Kf.point = Jf), (Wf = Yf = t), (Xf = $f = e); - } - function Jf(t, e) { - (Yf -= t), ($f -= e), Qf.add(Cu(Yf * Yf + $f * $f)), (Yf = t), ($f = e); - } - var td = Kf; - function ed() { - this._string = []; - } - function nd(t) { - return ( - 'm0,' + - t + - 'a' + - t + - ',' + - t + - ' 0 1,1 0,' + - -2 * t + - 'a' + - t + - ',' + - t + - ' 0 1,1 0,' + - 2 * t + - 'z' - ); - } - ed.prototype = { - _radius: 4.5, - _circle: nd(4.5), - pointRadius: function(t) { - return ( - (t = +t) !== this._radius && - ((this._radius = t), (this._circle = null)), - this - ); - }, - polygonStart: function() { - this._line = 0; - }, - polygonEnd: function() { - this._line = NaN; - }, - lineStart: function() { - this._point = 0; - }, - lineEnd: function() { - 0 === this._line && this._string.push('Z'), (this._point = NaN); - }, - point: function(t, e) { - switch (this._point) { - case 0: - this._string.push('M', t, ',', e), (this._point = 1); - break; - case 1: - this._string.push('L', t, ',', e); - break; - default: - null == this._circle && (this._circle = nd(this._radius)), - this._string.push('M', t, ',', e, this._circle); - } - }, - result: function() { - if (this._string.length) { - var t = this._string.join(''); - return (this._string = []), t; - } - return null; - } - }; - var rd = function(t, e) { - var n, - r, - i = 4.5; - function o(t) { - return ( - t && - ('function' == typeof i && - r.pointRadius(+i.apply(this, arguments)), - Uu(t, n(r))), - r.result() - ); - } - return ( - (o.area = function(t) { - return Uu(t, n(pf)), pf.result(); - }), - (o.measure = function(t) { - return Uu(t, n(td)), td.result(); - }), - (o.bounds = function(t) { - return Uu(t, n(Sf)), Sf.result(); - }), - (o.centroid = function(t) { - return Uu(t, n(Hf)), Hf.result(); - }), - (o.projection = function(e) { - return arguments.length - ? ((n = null == e ? ((t = null), af) : (t = e).stream), o) - : t; - }), - (o.context = function(t) { - return arguments.length - ? ((r = null == t ? ((e = null), new ed()) : new Uf((e = t))), - 'function' != typeof i && r.pointRadius(i), - o) - : e; - }), - (o.pointRadius = function(t) { - return arguments.length - ? ((i = 'function' == typeof t ? t : (r.pointRadius(+t), +t)), - o) - : i; - }), - o.projection(t).context(e) - ); - }, - id = function(t) { - return { stream: od(t) }; - }; - function od(t) { - return function(e) { - var n = new ad(); - for (var r in t) n[r] = t[r]; - return (n.stream = e), n; - }; - } - function ad() {} - function sd(t, e, n) { - var r = t.clipExtent && t.clipExtent(); - return ( - t.scale(150).translate([0, 0]), - null != r && t.clipExtent(null), - Uu(n, t.stream(Sf)), - e(Sf.result()), - null != r && t.clipExtent(r), - t - ); - } - function ud(t, e, n) { - return sd( - t, - function(n) { - var r = e[1][0] - e[0][0], - i = e[1][1] - e[0][1], - o = Math.min(r / (n[1][0] - n[0][0]), i / (n[1][1] - n[0][1])), - a = +e[0][0] + (r - o * (n[1][0] + n[0][0])) / 2, - s = +e[0][1] + (i - o * (n[1][1] + n[0][1])) / 2; - t.scale(150 * o).translate([a, s]); - }, - n - ); - } - function ld(t, e, n) { - return ud(t, [[0, 0], e], n); - } - function cd(t, e, n) { - return sd( - t, - function(n) { - var r = +e, - i = r / (n[1][0] - n[0][0]), - o = (r - i * (n[1][0] + n[0][0])) / 2, - a = -i * n[0][1]; - t.scale(150 * i).translate([o, a]); - }, - n - ); - } - function fd(t, e, n) { - return sd( - t, - function(n) { - var r = +e, - i = r / (n[1][1] - n[0][1]), - o = -i * n[0][0], - a = (r - i * (n[1][1] + n[0][1])) / 2; - t.scale(150 * i).translate([o, a]); - }, - n - ); - } - ad.prototype = { - constructor: ad, - point: function(t, e) { - this.stream.point(t, e); - }, - sphere: function() { - this.stream.sphere(); - }, - lineStart: function() { - this.stream.lineStart(); - }, - lineEnd: function() { - this.stream.lineEnd(); - }, - polygonStart: function() { - this.stream.polygonStart(); - }, - polygonEnd: function() { - this.stream.polygonEnd(); - } - }; - var dd = xu(30 * mu), - hd = function(t, e) { - return +e - ? (function(t, e) { - function n(r, i, o, a, s, u, l, c, f, d, h, p, g, v) { - var m = l - r, - y = c - i, - b = m * m + y * y; - if (b > 4 * e && g--) { - var _ = a + d, - x = s + h, - w = u + p, - S = Cu(_ * _ + x * x + w * w), - E = Mu((w /= S)), - k = - yu(yu(w) - 1) < 1e-6 || yu(o - f) < 1e-6 - ? (o + f) / 2 - : _u(x, _), - A = t(k, E), - T = A[0], - C = A[1], - O = T - r, - P = C - i, - M = y * O - m * P; - ((M * M) / b > e || - yu((m * O + y * P) / b - 0.5) > 0.3 || - a * d + s * h + u * p < dd) && - (n( - r, - i, - o, - a, - s, - u, - T, - C, - k, - (_ /= S), - (x /= S), - w, - g, - v - ), - v.point(T, C), - n(T, C, k, _, x, w, l, c, f, d, h, p, g, v)); - } - } - return function(e) { - var r, - i, - o, - a, - s, - u, - l, - c, - f, - d, - h, - p, - g = { - point: v, - lineStart: m, - lineEnd: b, - polygonStart: function() { - e.polygonStart(), (g.lineStart = _); - }, - polygonEnd: function() { - e.polygonEnd(), (g.lineStart = m); - } - }; - function v(n, r) { - (n = t(n, r)), e.point(n[0], n[1]); - } - function m() { - (c = NaN), (g.point = y), e.lineStart(); - } - function y(r, i) { - var o = tl([r, i]), - a = t(r, i); - n( - c, - f, - l, - d, - h, - p, - (c = a[0]), - (f = a[1]), - (l = r), - (d = o[0]), - (h = o[1]), - (p = o[2]), - 16, - e - ), - e.point(c, f); - } - function b() { - (g.point = v), e.lineEnd(); - } - function _() { - m(), (g.point = x), (g.lineEnd = w); - } - function x(t, e) { - y((r = t), e), - (i = c), - (o = f), - (a = d), - (s = h), - (u = p), - (g.point = y); - } - function w() { - n(c, f, l, d, h, p, i, o, r, a, s, u, 16, e), - (g.lineEnd = b), - b(); - } - return g; - }; - })(t, e) - : (function(t) { - return od({ - point: function(e, n) { - (e = t(e, n)), this.stream.point(e[0], e[1]); - } - }); - })(t); - }; - var pd = od({ - point: function(t, e) { - this.stream.point(t * mu, e * mu); - } - }); - function gd(t, e, n, r, i) { - function o(o, a) { - return [e + t * (o *= r), n - t * (a *= i)]; - } - return ( - (o.invert = function(o, a) { - return [((o - e) / t) * r, ((n - a) / t) * i]; - }), - o - ); - } - function vd(t, e, n, r, i, o) { - var a = xu(o), - s = Au(o), - u = a * t, - l = s * t, - c = a / t, - f = s / t, - d = (s * n - a * e) / t, - h = (s * e + a * n) / t; - function p(t, o) { - return [u * (t *= r) - l * (o *= i) + e, n - l * t - u * o]; - } - return ( - (p.invert = function(t, e) { - return [r * (c * t - f * e + d), i * (h - f * t - c * e)]; - }), - p - ); - } - function md(t) { - return yd(function() { - return t; - })(); - } - function yd(t) { - var e, - n, - r, - i, - o, - a, - s, - u, - l, - c, - f = 150, - d = 480, - h = 250, - p = 0, - g = 0, - v = 0, - m = 0, - y = 0, - b = 0, - _ = 1, - x = 1, - w = null, - S = kc, - E = null, - k = af, - A = 0.5; - function T(t) { - return u(t[0] * mu, t[1] * mu); - } - function C(t) { - return (t = u.invert(t[0], t[1])) && [t[0] * vu, t[1] * vu]; - } - function O() { - var t = vd(f, 0, 0, _, x, b).apply(null, e(p, g)), - r = (b ? vd : gd)(f, d - t[0], h - t[1], _, x, b); - return ( - (n = ac(v, m, y)), - (s = ic(e, r)), - (u = ic(n, s)), - (a = hd(s, A)), - P() - ); - } - function P() { - return (l = c = null), T; - } - return ( - (T.stream = function(t) { - return l && c === t - ? l - : (l = pd( - (function(t) { - return od({ - point: function(e, n) { - var r = t(e, n); - return this.stream.point(r[0], r[1]); - } - }); - })(n)(S(a(k((c = t))))) - )); - }), - (T.preclip = function(t) { - return arguments.length ? ((S = t), (w = void 0), P()) : S; - }), - (T.postclip = function(t) { - return arguments.length - ? ((k = t), (E = r = i = o = null), P()) - : k; - }), - (T.clipAngle = function(t) { - return arguments.length - ? ((S = +t ? Ac((w = t * mu)) : ((w = null), kc)), P()) - : w * vu; - }), - (T.clipExtent = function(t) { - return arguments.length - ? ((k = - null == t - ? ((E = r = i = o = null), af) - : Tc( - (E = +t[0][0]), - (r = +t[0][1]), - (i = +t[1][0]), - (o = +t[1][1]) - )), - P()) - : null == E - ? null - : [ - [E, r], - [i, o] - ]; - }), - (T.scale = function(t) { - return arguments.length ? ((f = +t), O()) : f; - }), - (T.translate = function(t) { - return arguments.length ? ((d = +t[0]), (h = +t[1]), O()) : [d, h]; - }), - (T.center = function(t) { - return arguments.length - ? ((p = (t[0] % 360) * mu), (g = (t[1] % 360) * mu), O()) - : [p * vu, g * vu]; - }), - (T.rotate = function(t) { - return arguments.length - ? ((v = (t[0] % 360) * mu), - (m = (t[1] % 360) * mu), - (y = t.length > 2 ? (t[2] % 360) * mu : 0), - O()) - : [v * vu, m * vu, y * vu]; - }), - (T.angle = function(t) { - return arguments.length ? ((b = (t % 360) * mu), O()) : b * vu; - }), - (T.reflectX = function(t) { - return arguments.length ? ((_ = t ? -1 : 1), O()) : _ < 0; - }), - (T.reflectY = function(t) { - return arguments.length ? ((x = t ? -1 : 1), O()) : x < 0; - }), - (T.precision = function(t) { - return arguments.length ? ((a = hd(s, (A = t * t))), P()) : Cu(A); - }), - (T.fitExtent = function(t, e) { - return ud(T, t, e); - }), - (T.fitSize = function(t, e) { - return ld(T, t, e); - }), - (T.fitWidth = function(t, e) { - return cd(T, t, e); - }), - (T.fitHeight = function(t, e) { - return fd(T, t, e); - }), - function() { - return ( - (e = t.apply(this, arguments)), (T.invert = e.invert && C), O() - ); - } - ); - } - function bd(t) { - var e = 0, - n = du / 3, - r = yd(t), - i = r(e, n); - return ( - (i.parallels = function(t) { - return arguments.length - ? r((e = t[0] * mu), (n = t[1] * mu)) - : [e * vu, n * vu]; - }), - i - ); - } - function _d(t, e) { - var n = Au(t), - r = (n + Au(e)) / 2; - if (yu(r) < 1e-6) - return (function(t) { - var e = xu(t); - function n(t, n) { - return [t * e, Au(n) / e]; - } - return ( - (n.invert = function(t, n) { - return [t / e, Mu(n * e)]; - }), - n - ); - })(t); - var i = 1 + n * (2 * r - n), - o = Cu(i) / r; - function a(t, e) { - var n = Cu(i - 2 * r * Au(e)) / r; - return [n * Au((t *= r)), o - n * xu(t)]; - } - return ( - (a.invert = function(t, e) { - var n = o - e, - a = _u(t, yu(n)) * Tu(n); - return ( - n * r < 0 && (a -= du * Tu(t) * Tu(n)), - [a / r, Mu((i - (t * t + n * n) * r * r) / (2 * r))] - ); - }), - a - ); - } - var xd = function() { - return bd(_d) - .scale(155.424) - .center([0, 33.6442]); - }, - wd = function() { - return xd() - .parallels([29.5, 45.5]) - .scale(1070) - .translate([480, 250]) - .rotate([96, 0]) - .center([-0.6, 38.7]); - }; - var Sd = function() { - var t, - e, - n, - r, - i, - o, - a = wd(), - s = xd() - .rotate([154, 0]) - .center([-2, 58.5]) - .parallels([55, 65]), - u = xd() - .rotate([157, 0]) - .center([-3, 19.9]) - .parallels([8, 18]), - l = { - point: function(t, e) { - o = [t, e]; - } - }; - function c(t) { - var e = t[0], - a = t[1]; - return ( - (o = null), - n.point(e, a), - o || (r.point(e, a), o) || (i.point(e, a), o) - ); - } - function f() { - return (t = e = null), c; - } - return ( - (c.invert = function(t) { - var e = a.scale(), - n = a.translate(), - r = (t[0] - n[0]) / e, - i = (t[1] - n[1]) / e; - return (i >= 0.12 && i < 0.234 && r >= -0.425 && r < -0.214 - ? s - : i >= 0.166 && i < 0.234 && r >= -0.214 && r < -0.115 - ? u - : a - ).invert(t); - }), - (c.stream = function(n) { - return t && e === n - ? t - : ((r = [a.stream((e = n)), s.stream(n), u.stream(n)]), - (i = r.length), - (t = { - point: function(t, e) { - for (var n = -1; ++n < i; ) r[n].point(t, e); - }, - sphere: function() { - for (var t = -1; ++t < i; ) r[t].sphere(); - }, - lineStart: function() { - for (var t = -1; ++t < i; ) r[t].lineStart(); - }, - lineEnd: function() { - for (var t = -1; ++t < i; ) r[t].lineEnd(); - }, - polygonStart: function() { - for (var t = -1; ++t < i; ) r[t].polygonStart(); - }, - polygonEnd: function() { - for (var t = -1; ++t < i; ) r[t].polygonEnd(); - } - })); - var r, i; - }), - (c.precision = function(t) { - return arguments.length - ? (a.precision(t), s.precision(t), u.precision(t), f()) - : a.precision(); - }), - (c.scale = function(t) { - return arguments.length - ? (a.scale(t), - s.scale(0.35 * t), - u.scale(t), - c.translate(a.translate())) - : a.scale(); - }), - (c.translate = function(t) { - if (!arguments.length) return a.translate(); - var e = a.scale(), - o = +t[0], - c = +t[1]; - return ( - (n = a - .translate(t) - .clipExtent([ - [o - 0.455 * e, c - 0.238 * e], - [o + 0.455 * e, c + 0.238 * e] - ]) - .stream(l)), - (r = s - .translate([o - 0.307 * e, c + 0.201 * e]) - .clipExtent([ - [o - 0.425 * e + 1e-6, c + 0.12 * e + 1e-6], - [o - 0.214 * e - 1e-6, c + 0.234 * e - 1e-6] - ]) - .stream(l)), - (i = u - .translate([o - 0.205 * e, c + 0.212 * e]) - .clipExtent([ - [o - 0.214 * e + 1e-6, c + 0.166 * e + 1e-6], - [o - 0.115 * e - 1e-6, c + 0.234 * e - 1e-6] - ]) - .stream(l)), - f() - ); - }), - (c.fitExtent = function(t, e) { - return ud(c, t, e); - }), - (c.fitSize = function(t, e) { - return ld(c, t, e); - }), - (c.fitWidth = function(t, e) { - return cd(c, t, e); - }), - (c.fitHeight = function(t, e) { - return fd(c, t, e); - }), - c.scale(1070) - ); - }; - function Ed(t) { - return function(e, n) { - var r = xu(e), - i = xu(n), - o = t(r * i); - return [o * i * Au(e), o * Au(n)]; - }; - } - function kd(t) { - return function(e, n) { - var r = Cu(e * e + n * n), - i = t(r), - o = Au(i), - a = xu(i); - return [_u(e * o, r * a), Mu(r && (n * o) / r)]; - }; - } - var Ad = Ed(function(t) { - return Cu(2 / (1 + t)); - }); - Ad.invert = kd(function(t) { - return 2 * Mu(t / 2); - }); - var Td = function() { - return md(Ad) - .scale(124.75) - .clipAngle(179.999); - }, - Cd = Ed(function(t) { - return (t = Pu(t)) && t / Au(t); - }); - Cd.invert = kd(function(t) { - return t; - }); - var Od = function() { - return md(Cd) - .scale(79.4188) - .clipAngle(179.999); - }; - function Pd(t, e) { - return [t, Eu(Ou((hu + e) / 2))]; - } - Pd.invert = function(t, e) { - return [t, 2 * bu(Su(e)) - hu]; - }; - var Md = function() { - return Ld(Pd).scale(961 / gu); - }; - function Ld(t) { - var e, - n, - r, - i = md(t), - o = i.center, - a = i.scale, - s = i.translate, - u = i.clipExtent, - l = null; - function c() { - var o = du * a(), - s = i(cc(i.rotate()).invert([0, 0])); - return u( - null == l - ? [ - [s[0] - o, s[1] - o], - [s[0] + o, s[1] + o] - ] - : t === Pd - ? [ - [Math.max(s[0] - o, l), e], - [Math.min(s[0] + o, n), r] - ] - : [ - [l, Math.max(s[1] - o, e)], - [n, Math.min(s[1] + o, r)] - ] - ); - } - return ( - (i.scale = function(t) { - return arguments.length ? (a(t), c()) : a(); - }), - (i.translate = function(t) { - return arguments.length ? (s(t), c()) : s(); - }), - (i.center = function(t) { - return arguments.length ? (o(t), c()) : o(); - }), - (i.clipExtent = function(t) { - return arguments.length - ? (null == t - ? (l = e = n = r = null) - : ((l = +t[0][0]), - (e = +t[0][1]), - (n = +t[1][0]), - (r = +t[1][1])), - c()) - : null == l - ? null - : [ - [l, e], - [n, r] - ]; - }), - c() - ); - } - function Dd(t) { - return Ou((hu + t) / 2); - } - function jd(t, e) { - var n = xu(t), - r = t === e ? Au(t) : Eu(n / xu(e)) / Eu(Dd(e) / Dd(t)), - i = (n * ku(Dd(t), r)) / r; - if (!r) return Pd; - function o(t, e) { - i > 0 - ? e < 1e-6 - hu && (e = 1e-6 - hu) - : e > hu - 1e-6 && (e = hu - 1e-6); - var n = i / ku(Dd(e), r); - return [n * Au(r * t), i - n * xu(r * t)]; - } - return ( - (o.invert = function(t, e) { - var n = i - e, - o = Tu(r) * Cu(t * t + n * n), - a = _u(t, yu(n)) * Tu(n); - return ( - n * r < 0 && (a -= du * Tu(t) * Tu(n)), - [a / r, 2 * bu(ku(i / o, 1 / r)) - hu] - ); - }), - o - ); - } - var Rd = function() { - return bd(jd) - .scale(109.5) - .parallels([30, 30]); - }; - function Nd(t, e) { - return [t, e]; - } - Nd.invert = Nd; - var zd = function() { - return md(Nd).scale(152.63); - }; - function Id(t, e) { - var n = xu(t), - r = t === e ? Au(t) : (n - xu(e)) / (e - t), - i = n / r + t; - if (yu(r) < 1e-6) return Nd; - function o(t, e) { - var n = i - e, - o = r * t; - return [n * Au(o), i - n * xu(o)]; - } - return ( - (o.invert = function(t, e) { - var n = i - e, - o = _u(t, yu(n)) * Tu(n); - return ( - n * r < 0 && (o -= du * Tu(t) * Tu(n)), - [o / r, i - Tu(r) * Cu(t * t + n * n)] - ); - }), - o - ); - } - var Fd = function() { - return bd(Id) - .scale(131.154) - .center([0, 13.9389]); - }, - Vd = 1.340264, - Bd = -0.081106, - Gd = 893e-6, - Hd = 0.003796, - Ud = Cu(3) / 2; - function qd(t, e) { - var n = Mu(Ud * Au(e)), - r = n * n, - i = r * r * r; - return [ - (t * xu(n)) / (Ud * (Vd + 3 * Bd * r + i * (7 * Gd + 9 * Hd * r))), - n * (Vd + Bd * r + i * (Gd + Hd * r)) - ]; - } - qd.invert = function(t, e) { - for ( - var n, r = e, i = r * r, o = i * i * i, a = 0; - a < 12 && - ((o = - (i = - (r -= n = - (r * (Vd + Bd * i + o * (Gd + Hd * i)) - e) / - (Vd + 3 * Bd * i + o * (7 * Gd + 9 * Hd * i))) * r) * - i * - i), - !(yu(n) < 1e-12)); - ++a - ); - return [ - (Ud * t * (Vd + 3 * Bd * i + o * (7 * Gd + 9 * Hd * i))) / xu(r), - Mu(Au(r) / Ud) - ]; - }; - var Wd = function() { - return md(qd).scale(177.158); - }; - function Xd(t, e) { - var n = xu(e), - r = xu(t) * n; - return [(n * Au(t)) / r, Au(e) / r]; - } - Xd.invert = kd(bu); - var Yd = function() { - return md(Xd) - .scale(144.049) - .clipAngle(60); - }, - $d = function() { - var t, - e, - n, - r, - i, - o, - a, - s = 1, - u = 0, - l = 0, - c = 1, - f = 1, - d = 0, - h = null, - p = 1, - g = 1, - v = od({ - point: function(t, e) { - var n = b([t, e]); - this.stream.point(n[0], n[1]); - } - }), - m = af; - function y() { - return (p = s * c), (g = s * f), (o = a = null), b; - } - function b(n) { - var r = n[0] * p, - i = n[1] * g; - if (d) { - var o = i * t - r * e; - (r = r * t + i * e), (i = o); - } - return [r + u, i + l]; - } - return ( - (b.invert = function(n) { - var r = n[0] - u, - i = n[1] - l; - if (d) { - var o = i * t + r * e; - (r = r * t - i * e), (i = o); - } - return [r / p, i / g]; - }), - (b.stream = function(t) { - return o && a === t ? o : (o = v(m((a = t)))); - }), - (b.postclip = function(t) { - return arguments.length - ? ((m = t), (h = n = r = i = null), y()) - : m; - }), - (b.clipExtent = function(t) { - return arguments.length - ? ((m = - null == t - ? ((h = n = r = i = null), af) - : Tc( - (h = +t[0][0]), - (n = +t[0][1]), - (r = +t[1][0]), - (i = +t[1][1]) - )), - y()) - : null == h - ? null - : [ - [h, n], - [r, i] - ]; - }), - (b.scale = function(t) { - return arguments.length ? ((s = +t), y()) : s; - }), - (b.translate = function(t) { - return arguments.length - ? ((u = +t[0]), (l = +t[1]), y()) - : [u, l]; - }), - (b.angle = function(n) { - return arguments.length - ? ((e = Au((d = (n % 360) * mu))), (t = xu(d)), y()) - : d * vu; - }), - (b.reflectX = function(t) { - return arguments.length ? ((c = t ? -1 : 1), y()) : c < 0; - }), - (b.reflectY = function(t) { - return arguments.length ? ((f = t ? -1 : 1), y()) : f < 0; - }), - (b.fitExtent = function(t, e) { - return ud(b, t, e); - }), - (b.fitSize = function(t, e) { - return ld(b, t, e); - }), - (b.fitWidth = function(t, e) { - return cd(b, t, e); - }), - (b.fitHeight = function(t, e) { - return fd(b, t, e); - }), - b - ); - }; - function Qd(t, e) { - var n = e * e, - r = n * n; - return [ - t * - (0.8707 - - 0.131979 * n + - r * (r * (0.003971 * n - 0.001529 * r) - 0.013791)), - e * - (1.007226 + - n * (0.015085 + r * (0.028874 * n - 0.044475 - 0.005916 * r))) - ]; - } - Qd.invert = function(t, e) { - var n, - r = e, - i = 25; - do { - var o = r * r, - a = o * o; - r -= n = - (r * - (1.007226 + - o * (0.015085 + a * (0.028874 * o - 0.044475 - 0.005916 * a))) - - e) / - (1.007226 + - o * - (0.045255 + a * (0.259866 * o - 0.311325 - 0.005916 * 11 * a))); - } while (yu(n) > 1e-6 && --i > 0); - return [ - t / - (0.8707 + - (o = r * r) * - (o * (o * o * o * (0.003971 - 0.001529 * o) - 0.013791) - - 0.131979)), - r - ]; - }; - var Kd = function() { - return md(Qd).scale(175.295); - }; - function Zd(t, e) { - return [xu(e) * Au(t), Au(e)]; - } - Zd.invert = kd(Mu); - var Jd = function() { - return md(Zd) - .scale(249.5) - .clipAngle(90.000001); - }; - function th(t, e) { - var n = xu(e), - r = 1 + xu(t) * n; - return [(n * Au(t)) / r, Au(e) / r]; - } - th.invert = kd(function(t) { - return 2 * bu(t); - }); - var eh = function() { - return md(th) - .scale(250) - .clipAngle(142); - }; - function nh(t, e) { - return [Eu(Ou((hu + e) / 2)), -t]; - } - nh.invert = function(t, e) { - return [-e, 2 * bu(Su(t)) - hu]; - }; - var rh = function() { - var t = Ld(nh), - e = t.center, - n = t.rotate; - return ( - (t.center = function(t) { - return arguments.length ? e([-t[1], t[0]]) : [(t = e())[1], -t[0]]; - }), - (t.rotate = function(t) { - return arguments.length - ? n([t[0], t[1], t.length > 2 ? t[2] + 90 : 90]) - : [(t = n())[0], t[1], t[2] - 90]; - }), - n([0, 0, 90]).scale(159.155) - ); - }; - function ih(t, e) { - return t.parent === e.parent ? 1 : 2; - } - function oh(t, e) { - return t + e.x; - } - function ah(t, e) { - return Math.max(t, e.y); - } - var sh = function() { - var t = ih, - e = 1, - n = 1, - r = !1; - function i(i) { - var o, - a = 0; - i.eachAfter(function(e) { - var n = e.children; - n - ? ((e.x = (function(t) { - return t.reduce(oh, 0) / t.length; - })(n)), - (e.y = (function(t) { - return 1 + t.reduce(ah, 0); - })(n))) - : ((e.x = o ? (a += t(e, o)) : 0), (e.y = 0), (o = e)); - }); - var s = (function(t) { - for (var e; (e = t.children); ) t = e[0]; - return t; - })(i), - u = (function(t) { - for (var e; (e = t.children); ) t = e[e.length - 1]; - return t; - })(i), - l = s.x - t(s, u) / 2, - c = u.x + t(u, s) / 2; - return i.eachAfter( - r - ? function(t) { - (t.x = (t.x - i.x) * e), (t.y = (i.y - t.y) * n); - } - : function(t) { - (t.x = ((t.x - l) / (c - l)) * e), - (t.y = (1 - (i.y ? t.y / i.y : 1)) * n); - } - ); - } - return ( - (i.separation = function(e) { - return arguments.length ? ((t = e), i) : t; - }), - (i.size = function(t) { - return arguments.length - ? ((r = !1), (e = +t[0]), (n = +t[1]), i) - : r - ? null - : [e, n]; - }), - (i.nodeSize = function(t) { - return arguments.length - ? ((r = !0), (e = +t[0]), (n = +t[1]), i) - : r - ? [e, n] - : null; - }), - i - ); - }; - function uh(t) { - var e = 0, - n = t.children, - r = n && n.length; - if (r) for (; --r >= 0; ) e += n[r].value; - else e = 1; - t.value = e; - } - function lh(t, e) { - var n, - r, - i, - o, - a, - s = new hh(t), - u = +t.value && (s.value = t.value), - l = [s]; - for (null == e && (e = ch); (n = l.pop()); ) - if ( - (u && (n.value = +n.data.value), (i = e(n.data)) && (a = i.length)) - ) - for (n.children = new Array(a), o = a - 1; o >= 0; --o) - l.push((r = n.children[o] = new hh(i[o]))), - (r.parent = n), - (r.depth = n.depth + 1); - return s.eachBefore(dh); - } - function ch(t) { - return t.children; - } - function fh(t) { - t.data = t.data.data; - } - function dh(t) { - var e = 0; - do { - t.height = e; - } while ((t = t.parent) && t.height < ++e); - } - function hh(t) { - (this.data = t), (this.depth = this.height = 0), (this.parent = null); - } - hh.prototype = lh.prototype = { - constructor: hh, - count: function() { - return this.eachAfter(uh); - }, - each: function(t) { - var e, - n, - r, - i, - o = this, - a = [o]; - do { - for (e = a.reverse(), a = []; (o = e.pop()); ) - if ((t(o), (n = o.children))) - for (r = 0, i = n.length; r < i; ++r) a.push(n[r]); - } while (a.length); - return this; - }, - eachAfter: function(t) { - for (var e, n, r, i = this, o = [i], a = []; (i = o.pop()); ) - if ((a.push(i), (e = i.children))) - for (n = 0, r = e.length; n < r; ++n) o.push(e[n]); - for (; (i = a.pop()); ) t(i); - return this; - }, - eachBefore: function(t) { - for (var e, n, r = this, i = [r]; (r = i.pop()); ) - if ((t(r), (e = r.children))) - for (n = e.length - 1; n >= 0; --n) i.push(e[n]); - return this; - }, - sum: function(t) { - return this.eachAfter(function(e) { - for ( - var n = +t(e.data) || 0, r = e.children, i = r && r.length; - --i >= 0; - - ) - n += r[i].value; - e.value = n; - }); - }, - sort: function(t) { - return this.eachBefore(function(e) { - e.children && e.children.sort(t); - }); - }, - path: function(t) { - for ( - var e = this, - n = (function(t, e) { - if (t === e) return t; - var n = t.ancestors(), - r = e.ancestors(), - i = null; - (t = n.pop()), (e = r.pop()); - for (; t === e; ) (i = t), (t = n.pop()), (e = r.pop()); - return i; - })(e, t), - r = [e]; - e !== n; - - ) - (e = e.parent), r.push(e); - for (var i = r.length; t !== n; ) r.splice(i, 0, t), (t = t.parent); - return r; - }, - ancestors: function() { - for (var t = this, e = [t]; (t = t.parent); ) e.push(t); - return e; - }, - descendants: function() { - var t = []; - return ( - this.each(function(e) { - t.push(e); - }), - t - ); - }, - leaves: function() { - var t = []; - return ( - this.eachBefore(function(e) { - e.children || t.push(e); - }), - t - ); - }, - links: function() { - var t = this, - e = []; - return ( - t.each(function(n) { - n !== t && e.push({ source: n.parent, target: n }); - }), - e - ); - }, - copy: function() { - return lh(this).eachBefore(fh); - } - }; - var ph = Array.prototype.slice; - var gh = function(t) { - for ( - var e, - n, - r = 0, - i = (t = (function(t) { - for (var e, n, r = t.length; r; ) - (n = (Math.random() * r--) | 0), - (e = t[r]), - (t[r] = t[n]), - (t[n] = e); - return t; - })(ph.call(t))).length, - o = []; - r < i; - - ) - (e = t[r]), n && yh(n, e) ? ++r : ((n = _h((o = vh(o, e)))), (r = 0)); - return n; - }; - function vh(t, e) { - var n, r; - if (bh(e, t)) return [e]; - for (n = 0; n < t.length; ++n) - if (mh(e, t[n]) && bh(xh(t[n], e), t)) return [t[n], e]; - for (n = 0; n < t.length - 1; ++n) - for (r = n + 1; r < t.length; ++r) - if ( - mh(xh(t[n], t[r]), e) && - mh(xh(t[n], e), t[r]) && - mh(xh(t[r], e), t[n]) && - bh(wh(t[n], t[r], e), t) - ) - return [t[n], t[r], e]; - throw new Error(); - } - function mh(t, e) { - var n = t.r - e.r, - r = e.x - t.x, - i = e.y - t.y; - return n < 0 || n * n < r * r + i * i; - } - function yh(t, e) { - var n = t.r - e.r + 1e-6, - r = e.x - t.x, - i = e.y - t.y; - return n > 0 && n * n > r * r + i * i; - } - function bh(t, e) { - for (var n = 0; n < e.length; ++n) if (!yh(t, e[n])) return !1; - return !0; - } - function _h(t) { - switch (t.length) { - case 1: - return { x: (e = t[0]).x, y: e.y, r: e.r }; - case 2: - return xh(t[0], t[1]); - case 3: - return wh(t[0], t[1], t[2]); - } - var e; - } - function xh(t, e) { - var n = t.x, - r = t.y, - i = t.r, - o = e.x, - a = e.y, - s = e.r, - u = o - n, - l = a - r, - c = s - i, - f = Math.sqrt(u * u + l * l); - return { - x: (n + o + (u / f) * c) / 2, - y: (r + a + (l / f) * c) / 2, - r: (f + i + s) / 2 - }; - } - function wh(t, e, n) { - var r = t.x, - i = t.y, - o = t.r, - a = e.x, - s = e.y, - u = e.r, - l = n.x, - c = n.y, - f = n.r, - d = r - a, - h = r - l, - p = i - s, - g = i - c, - v = u - o, - m = f - o, - y = r * r + i * i - o * o, - b = y - a * a - s * s + u * u, - _ = y - l * l - c * c + f * f, - x = h * p - d * g, - w = (p * _ - g * b) / (2 * x) - r, - S = (g * v - p * m) / x, - E = (h * b - d * _) / (2 * x) - i, - k = (d * m - h * v) / x, - A = S * S + k * k - 1, - T = 2 * (o + w * S + E * k), - C = w * w + E * E - o * o, - O = -(A ? (T + Math.sqrt(T * T - 4 * A * C)) / (2 * A) : C / T); - return { x: r + w + S * O, y: i + E + k * O, r: O }; - } - function Sh(t, e, n) { - var r, - i, - o, - a, - s = t.x - e.x, - u = t.y - e.y, - l = s * s + u * u; - l - ? ((i = e.r + n.r), - (i *= i), - (a = t.r + n.r), - i > (a *= a) - ? ((r = (l + a - i) / (2 * l)), - (o = Math.sqrt(Math.max(0, a / l - r * r))), - (n.x = t.x - r * s - o * u), - (n.y = t.y - r * u + o * s)) - : ((r = (l + i - a) / (2 * l)), - (o = Math.sqrt(Math.max(0, i / l - r * r))), - (n.x = e.x + r * s - o * u), - (n.y = e.y + r * u + o * s))) - : ((n.x = e.x + n.r), (n.y = e.y)); - } - function Eh(t, e) { - var n = t.r + e.r - 1e-6, - r = e.x - t.x, - i = e.y - t.y; - return n > 0 && n * n > r * r + i * i; - } - function kh(t) { - var e = t._, - n = t.next._, - r = e.r + n.r, - i = (e.x * n.r + n.x * e.r) / r, - o = (e.y * n.r + n.y * e.r) / r; - return i * i + o * o; - } - function Ah(t) { - (this._ = t), (this.next = null), (this.previous = null); - } - function Th(t) { - if (!(i = t.length)) return 0; - var e, n, r, i, o, a, s, u, l, c, f; - if ((((e = t[0]).x = 0), (e.y = 0), !(i > 1))) return e.r; - if (((n = t[1]), (e.x = -n.r), (n.x = e.r), (n.y = 0), !(i > 2))) - return e.r + n.r; - Sh(n, e, (r = t[2])), - (e = new Ah(e)), - (n = new Ah(n)), - (r = new Ah(r)), - (e.next = r.previous = n), - (n.next = e.previous = r), - (r.next = n.previous = e); - t: for (s = 3; s < i; ++s) { - Sh(e._, n._, (r = t[s])), - (r = new Ah(r)), - (u = n.next), - (l = e.previous), - (c = n._.r), - (f = e._.r); - do { - if (c <= f) { - if (Eh(u._, r._)) { - (n = u), (e.next = n), (n.previous = e), --s; - continue t; - } - (c += u._.r), (u = u.next); - } else { - if (Eh(l._, r._)) { - ((e = l).next = n), (n.previous = e), --s; - continue t; - } - (f += l._.r), (l = l.previous); - } - } while (u !== l.next); - for ( - r.previous = e, r.next = n, e.next = n.previous = n = r, o = kh(e); - (r = r.next) !== n; - - ) - (a = kh(r)) < o && ((e = r), (o = a)); - n = e.next; - } - for (e = [n._], r = n; (r = r.next) !== n; ) e.push(r._); - for (r = gh(e), s = 0; s < i; ++s) ((e = t[s]).x -= r.x), (e.y -= r.y); - return r.r; - } - var Ch = function(t) { - return Th(t), t; - }; - function Oh(t) { - return null == t ? null : Ph(t); - } - function Ph(t) { - if ('function' != typeof t) throw new Error(); - return t; - } - function Mh() { - return 0; - } - var Lh = function(t) { - return function() { - return t; - }; - }; - function Dh(t) { - return Math.sqrt(t.value); - } - var jh = function() { - var t = null, - e = 1, - n = 1, - r = Mh; - function i(i) { - return ( - (i.x = e / 2), - (i.y = n / 2), - t - ? i - .eachBefore(Rh(t)) - .eachAfter(Nh(r, 0.5)) - .eachBefore(zh(1)) - : i - .eachBefore(Rh(Dh)) - .eachAfter(Nh(Mh, 1)) - .eachAfter(Nh(r, i.r / Math.min(e, n))) - .eachBefore(zh(Math.min(e, n) / (2 * i.r))), - i - ); - } - return ( - (i.radius = function(e) { - return arguments.length ? ((t = Oh(e)), i) : t; - }), - (i.size = function(t) { - return arguments.length ? ((e = +t[0]), (n = +t[1]), i) : [e, n]; - }), - (i.padding = function(t) { - return arguments.length - ? ((r = 'function' == typeof t ? t : Lh(+t)), i) - : r; - }), - i - ); - }; - function Rh(t) { - return function(e) { - e.children || (e.r = Math.max(0, +t(e) || 0)); - }; - } - function Nh(t, e) { - return function(n) { - if ((r = n.children)) { - var r, - i, - o, - a = r.length, - s = t(n) * e || 0; - if (s) for (i = 0; i < a; ++i) r[i].r += s; - if (((o = Th(r)), s)) for (i = 0; i < a; ++i) r[i].r -= s; - n.r = o + s; - } - }; - } - function zh(t) { - return function(e) { - var n = e.parent; - (e.r *= t), n && ((e.x = n.x + t * e.x), (e.y = n.y + t * e.y)); - }; - } - var Ih = function(t) { - (t.x0 = Math.round(t.x0)), - (t.y0 = Math.round(t.y0)), - (t.x1 = Math.round(t.x1)), - (t.y1 = Math.round(t.y1)); - }, - Fh = function(t, e, n, r, i) { - for ( - var o, - a = t.children, - s = -1, - u = a.length, - l = t.value && (r - e) / t.value; - ++s < u; - - ) - ((o = a[s]).y0 = n), - (o.y1 = i), - (o.x0 = e), - (o.x1 = e += o.value * l); - }, - Vh = function() { - var t = 1, - e = 1, - n = 0, - r = !1; - function i(i) { - var o = i.height + 1; - return ( - (i.x0 = i.y0 = n), - (i.x1 = t), - (i.y1 = e / o), - i.eachBefore( - (function(t, e) { - return function(r) { - r.children && - Fh( - r, - r.x0, - (t * (r.depth + 1)) / e, - r.x1, - (t * (r.depth + 2)) / e - ); - var i = r.x0, - o = r.y0, - a = r.x1 - n, - s = r.y1 - n; - a < i && (i = a = (i + a) / 2), - s < o && (o = s = (o + s) / 2), - (r.x0 = i), - (r.y0 = o), - (r.x1 = a), - (r.y1 = s); - }; - })(e, o) - ), - r && i.eachBefore(Ih), - i - ); - } - return ( - (i.round = function(t) { - return arguments.length ? ((r = !!t), i) : r; - }), - (i.size = function(n) { - return arguments.length ? ((t = +n[0]), (e = +n[1]), i) : [t, e]; - }), - (i.padding = function(t) { - return arguments.length ? ((n = +t), i) : n; - }), - i - ); - }, - Bh = { depth: -1 }, - Gh = {}; - function Hh(t) { - return t.id; - } - function Uh(t) { - return t.parentId; - } - var qh = function() { - var t = Hh, - e = Uh; - function n(n) { - var r, - i, - o, - a, - s, - u, - l, - c = n.length, - f = new Array(c), - d = {}; - for (i = 0; i < c; ++i) - (r = n[i]), - (s = f[i] = new hh(r)), - null != (u = t(r, i, n)) && - (u += '') && - (d[(l = '$' + (s.id = u))] = l in d ? Gh : s); - for (i = 0; i < c; ++i) - if (((s = f[i]), null != (u = e(n[i], i, n)) && (u += ''))) { - if (!(a = d['$' + u])) throw new Error('missing: ' + u); - if (a === Gh) throw new Error('ambiguous: ' + u); - a.children ? a.children.push(s) : (a.children = [s]), - (s.parent = a); - } else { - if (o) throw new Error('multiple roots'); - o = s; - } - if (!o) throw new Error('no root'); - if ( - ((o.parent = Bh), - o - .eachBefore(function(t) { - (t.depth = t.parent.depth + 1), --c; - }) - .eachBefore(dh), - (o.parent = null), - c > 0) - ) - throw new Error('cycle'); - return o; - } - return ( - (n.id = function(e) { - return arguments.length ? ((t = Ph(e)), n) : t; - }), - (n.parentId = function(t) { - return arguments.length ? ((e = Ph(t)), n) : e; - }), - n - ); - }; - function Wh(t, e) { - return t.parent === e.parent ? 1 : 2; - } - function Xh(t) { - var e = t.children; - return e ? e[0] : t.t; - } - function Yh(t) { - var e = t.children; - return e ? e[e.length - 1] : t.t; - } - function $h(t, e, n) { - var r = n / (e.i - t.i); - (e.c -= r), (e.s += n), (t.c += r), (e.z += n), (e.m += n); - } - function Qh(t, e, n) { - return t.a.parent === e.parent ? t.a : n; - } - function Kh(t, e) { - (this._ = t), - (this.parent = null), - (this.children = null), - (this.A = null), - (this.a = this), - (this.z = 0), - (this.m = 0), - (this.c = 0), - (this.s = 0), - (this.t = null), - (this.i = e); - } - Kh.prototype = Object.create(hh.prototype); - var Zh = function() { - var t = Wh, - e = 1, - n = 1, - r = null; - function i(i) { - var u = (function(t) { - for ( - var e, n, r, i, o, a = new Kh(t, 0), s = [a]; - (e = s.pop()); - - ) - if ((r = e._.children)) - for ( - e.children = new Array((o = r.length)), i = o - 1; - i >= 0; - --i - ) - s.push((n = e.children[i] = new Kh(r[i], i))), - (n.parent = e); - return ((a.parent = new Kh(null, 0)).children = [a]), a; - })(i); - if ((u.eachAfter(o), (u.parent.m = -u.z), u.eachBefore(a), r)) - i.eachBefore(s); - else { - var l = i, - c = i, - f = i; - i.eachBefore(function(t) { - t.x < l.x && (l = t), - t.x > c.x && (c = t), - t.depth > f.depth && (f = t); - }); - var d = l === c ? 1 : t(l, c) / 2, - h = d - l.x, - p = e / (c.x + d + h), - g = n / (f.depth || 1); - i.eachBefore(function(t) { - (t.x = (t.x + h) * p), (t.y = t.depth * g); - }); - } - return i; - } - function o(e) { - var n = e.children, - r = e.parent.children, - i = e.i ? r[e.i - 1] : null; - if (n) { - !(function(t) { - for ( - var e, n = 0, r = 0, i = t.children, o = i.length; - --o >= 0; - - ) - ((e = i[o]).z += n), (e.m += n), (n += e.s + (r += e.c)); - })(e); - var o = (n[0].z + n[n.length - 1].z) / 2; - i ? ((e.z = i.z + t(e._, i._)), (e.m = e.z - o)) : (e.z = o); - } else i && (e.z = i.z + t(e._, i._)); - e.parent.A = (function(e, n, r) { - if (n) { - for ( - var i, - o = e, - a = e, - s = n, - u = o.parent.children[0], - l = o.m, - c = a.m, - f = s.m, - d = u.m; - (s = Yh(s)), (o = Xh(o)), s && o; - - ) - (u = Xh(u)), - ((a = Yh(a)).a = e), - (i = s.z + f - o.z - l + t(s._, o._)) > 0 && - ($h(Qh(s, e, r), e, i), (l += i), (c += i)), - (f += s.m), - (l += o.m), - (d += u.m), - (c += a.m); - s && !Yh(a) && ((a.t = s), (a.m += f - c)), - o && !Xh(u) && ((u.t = o), (u.m += l - d), (r = e)); - } - return r; - })(e, i, e.parent.A || r[0]); - } - function a(t) { - (t._.x = t.z + t.parent.m), (t.m += t.parent.m); - } - function s(t) { - (t.x *= e), (t.y = t.depth * n); - } - return ( - (i.separation = function(e) { - return arguments.length ? ((t = e), i) : t; - }), - (i.size = function(t) { - return arguments.length - ? ((r = !1), (e = +t[0]), (n = +t[1]), i) - : r - ? null - : [e, n]; - }), - (i.nodeSize = function(t) { - return arguments.length - ? ((r = !0), (e = +t[0]), (n = +t[1]), i) - : r - ? [e, n] - : null; - }), - i - ); - }, - Jh = function(t, e, n, r, i) { - for ( - var o, - a = t.children, - s = -1, - u = a.length, - l = t.value && (i - n) / t.value; - ++s < u; - - ) - ((o = a[s]).x0 = e), - (o.x1 = r), - (o.y0 = n), - (o.y1 = n += o.value * l); - }, - tp = (1 + Math.sqrt(5)) / 2; - function ep(t, e, n, r, i, o) { - for ( - var a, - s, - u, - l, - c, - f, - d, - h, - p, - g, - v, - m = [], - y = e.children, - b = 0, - _ = 0, - x = y.length, - w = e.value; - b < x; - - ) { - (u = i - n), (l = o - r); - do { - c = y[_++].value; - } while (!c && _ < x); - for ( - f = d = c, - v = c * c * (g = Math.max(l / u, u / l) / (w * t)), - p = Math.max(d / v, v / f); - _ < x; - ++_ - ) { - if ( - ((c += s = y[_].value), - s < f && (f = s), - s > d && (d = s), - (v = c * c * g), - (h = Math.max(d / v, v / f)) > p) - ) { - c -= s; - break; - } - p = h; - } - m.push((a = { value: c, dice: u < l, children: y.slice(b, _) })), - a.dice - ? Fh(a, n, r, i, w ? (r += (l * c) / w) : o) - : Jh(a, n, r, w ? (n += (u * c) / w) : i, o), - (w -= c), - (b = _); - } - return m; - } - var np = (function t(e) { - function n(t, n, r, i, o) { - ep(e, t, n, r, i, o); - } - return ( - (n.ratio = function(e) { - return t((e = +e) > 1 ? e : 1); - }), - n - ); - })(tp), - rp = function() { - var t = np, - e = !1, - n = 1, - r = 1, - i = [0], - o = Mh, - a = Mh, - s = Mh, - u = Mh, - l = Mh; - function c(t) { - return ( - (t.x0 = t.y0 = 0), - (t.x1 = n), - (t.y1 = r), - t.eachBefore(f), - (i = [0]), - e && t.eachBefore(Ih), - t - ); - } - function f(e) { - var n = i[e.depth], - r = e.x0 + n, - c = e.y0 + n, - f = e.x1 - n, - d = e.y1 - n; - f < r && (r = f = (r + f) / 2), - d < c && (c = d = (c + d) / 2), - (e.x0 = r), - (e.y0 = c), - (e.x1 = f), - (e.y1 = d), - e.children && - ((n = i[e.depth + 1] = o(e) / 2), - (r += l(e) - n), - (c += a(e) - n), - (f -= s(e) - n) < r && (r = f = (r + f) / 2), - (d -= u(e) - n) < c && (c = d = (c + d) / 2), - t(e, r, c, f, d)); - } - return ( - (c.round = function(t) { - return arguments.length ? ((e = !!t), c) : e; - }), - (c.size = function(t) { - return arguments.length ? ((n = +t[0]), (r = +t[1]), c) : [n, r]; - }), - (c.tile = function(e) { - return arguments.length ? ((t = Ph(e)), c) : t; - }), - (c.padding = function(t) { - return arguments.length - ? c.paddingInner(t).paddingOuter(t) - : c.paddingInner(); - }), - (c.paddingInner = function(t) { - return arguments.length - ? ((o = 'function' == typeof t ? t : Lh(+t)), c) - : o; - }), - (c.paddingOuter = function(t) { - return arguments.length - ? c - .paddingTop(t) - .paddingRight(t) - .paddingBottom(t) - .paddingLeft(t) - : c.paddingTop(); - }), - (c.paddingTop = function(t) { - return arguments.length - ? ((a = 'function' == typeof t ? t : Lh(+t)), c) - : a; - }), - (c.paddingRight = function(t) { - return arguments.length - ? ((s = 'function' == typeof t ? t : Lh(+t)), c) - : s; - }), - (c.paddingBottom = function(t) { - return arguments.length - ? ((u = 'function' == typeof t ? t : Lh(+t)), c) - : u; - }), - (c.paddingLeft = function(t) { - return arguments.length - ? ((l = 'function' == typeof t ? t : Lh(+t)), c) - : l; - }), - c - ); - }, - ip = function(t, e, n, r, i) { - var o, - a, - s = t.children, - u = s.length, - l = new Array(u + 1); - for (l[0] = a = o = 0; o < u; ++o) l[o + 1] = a += s[o].value; - !(function t(e, n, r, i, o, a, u) { - if (e >= n - 1) { - var c = s[e]; - return (c.x0 = i), (c.y0 = o), (c.x1 = a), void (c.y1 = u); - } - var f = l[e], - d = r / 2 + f, - h = e + 1, - p = n - 1; - for (; h < p; ) { - var g = (h + p) >>> 1; - l[g] < d ? (h = g + 1) : (p = g); - } - d - l[h - 1] < l[h] - d && e + 1 < h && --h; - var v = l[h] - f, - m = r - v; - if (a - i > u - o) { - var y = (i * m + a * v) / r; - t(e, h, v, i, o, y, u), t(h, n, m, y, o, a, u); - } else { - var b = (o * m + u * v) / r; - t(e, h, v, i, o, a, b), t(h, n, m, i, b, a, u); - } - })(0, u, t.value, e, n, r, i); - }, - op = function(t, e, n, r, i) { - (1 & t.depth ? Jh : Fh)(t, e, n, r, i); - }, - ap = (function t(e) { - function n(t, n, r, i, o) { - if ((a = t._squarify) && a.ratio === e) - for ( - var a, s, u, l, c, f = -1, d = a.length, h = t.value; - ++f < d; - - ) { - for ( - u = (s = a[f]).children, l = s.value = 0, c = u.length; - l < c; - ++l - ) - s.value += u[l].value; - s.dice - ? Fh(s, n, r, i, (r += ((o - r) * s.value) / h)) - : Jh(s, n, r, (n += ((i - n) * s.value) / h), o), - (h -= s.value); - } - else (t._squarify = a = ep(e, t, n, r, i, o)), (a.ratio = e); - } - return ( - (n.ratio = function(e) { - return t((e = +e) > 1 ? e : 1); - }), - n - ); - })(tp), - sp = function(t) { - var e = t.length; - return function(n) { - return t[Math.max(0, Math.min(e - 1, Math.floor(n * e)))]; - }; - }, - up = function(t, e) { - var n = cn(+t, +e); - return function(t) { - var e = n(t); - return e - 360 * Math.floor(e / 360); - }; - }, - lp = function(t, e) { - return ( - (t = +t), - (e = +e), - function(n) { - return Math.round(t * (1 - n) + e * n); - } - ); - }, - cp = Math.SQRT2; - function fp(t) { - return ((t = Math.exp(t)) + 1 / t) / 2; - } - var dp = function(t, e) { - var n, - r, - i = t[0], - o = t[1], - a = t[2], - s = e[0], - u = e[1], - l = e[2], - c = s - i, - f = u - o, - d = c * c + f * f; - if (d < 1e-12) - (r = Math.log(l / a) / cp), - (n = function(t) { - return [i + t * c, o + t * f, a * Math.exp(cp * t * r)]; - }); - else { - var h = Math.sqrt(d), - p = (l * l - a * a + 4 * d) / (2 * a * 2 * h), - g = (l * l - a * a - 4 * d) / (2 * l * 2 * h), - v = Math.log(Math.sqrt(p * p + 1) - p), - m = Math.log(Math.sqrt(g * g + 1) - g); - (r = (m - v) / cp), - (n = function(t) { - var e, - n = t * r, - s = fp(v), - u = - (a / (2 * h)) * - (s * - ((e = cp * n + v), ((e = Math.exp(2 * e)) - 1) / (e + 1)) - - (function(t) { - return ((t = Math.exp(t)) - 1 / t) / 2; - })(v)); - return [i + u * c, o + u * f, (a * s) / fp(cp * n + v)]; - }); - } - return (n.duration = 1e3 * r), n; - }; - function hp(t) { - return function(e, n) { - var r = t((e = en(e)).h, (n = en(n)).h), - i = dn(e.s, n.s), - o = dn(e.l, n.l), - a = dn(e.opacity, n.opacity); - return function(t) { - return ( - (e.h = r(t)), - (e.s = i(t)), - (e.l = o(t)), - (e.opacity = a(t)), - e + '' - ); - }; - }; - } - var pp = hp(cn), - gp = hp(dn); - function vp(t, e) { - var n = dn((t = vo(t)).l, (e = vo(e)).l), - r = dn(t.a, e.a), - i = dn(t.b, e.b), - o = dn(t.opacity, e.opacity); - return function(e) { - return ( - (t.l = n(e)), (t.a = r(e)), (t.b = i(e)), (t.opacity = o(e)), t + '' - ); - }; - } - function mp(t) { - return function(e, n) { - var r = t((e = Eo(e)).h, (n = Eo(n)).h), - i = dn(e.c, n.c), - o = dn(e.l, n.l), - a = dn(e.opacity, n.opacity); - return function(t) { - return ( - (e.h = r(t)), - (e.c = i(t)), - (e.l = o(t)), - (e.opacity = a(t)), - e + '' - ); - }; - }; - } - var yp = mp(cn), - bp = mp(dn); - function _p(t) { - return (function e(n) { - function r(e, r) { - var i = t((e = Lo(e)).h, (r = Lo(r)).h), - o = dn(e.s, r.s), - a = dn(e.l, r.l), - s = dn(e.opacity, r.opacity); - return function(t) { - return ( - (e.h = i(t)), - (e.s = o(t)), - (e.l = a(Math.pow(t, n))), - (e.opacity = s(t)), - e + '' - ); - }; - } - return (n = +n), (r.gamma = e), r; - })(1); - } - var xp = _p(cn), - wp = _p(dn); - function Sp(t, e) { - for ( - var n = 0, r = e.length - 1, i = e[0], o = new Array(r < 0 ? 0 : r); - n < r; - - ) - o[n] = t(i, (i = e[++n])); - return function(t) { - var e = Math.max(0, Math.min(r - 1, Math.floor((t *= r)))); - return o[e](t - e); - }; - } - var Ep = function(t, e) { - for (var n = new Array(e), r = 0; r < e; ++r) n[r] = t(r / (e - 1)); - return n; - }, - kp = function(t) { - for (var e, n = -1, r = t.length, i = t[r - 1], o = 0; ++n < r; ) - (e = i), (i = t[n]), (o += e[1] * i[0] - e[0] * i[1]); - return o / 2; - }, - Ap = function(t) { - for ( - var e, n, r = -1, i = t.length, o = 0, a = 0, s = t[i - 1], u = 0; - ++r < i; - - ) - (e = s), - (s = t[r]), - (u += n = e[0] * s[1] - s[0] * e[1]), - (o += (e[0] + s[0]) * n), - (a += (e[1] + s[1]) * n); - return [o / (u *= 3), a / u]; - }; - function Tp(t, e) { - return t[0] - e[0] || t[1] - e[1]; - } - function Cp(t) { - for (var e, n, r, i = t.length, o = [0, 1], a = 2, s = 2; s < i; ++s) { - for ( - ; - a > 1 && - ((e = t[o[a - 2]]), - (n = t[o[a - 1]]), - (r = t[s]), - (n[0] - e[0]) * (r[1] - e[1]) - (n[1] - e[1]) * (r[0] - e[0]) <= 0); - - ) - --a; - o[a++] = s; - } - return o.slice(0, a); - } - var Op = function(t) { - if ((n = t.length) < 3) return null; - var e, - n, - r = new Array(n), - i = new Array(n); - for (e = 0; e < n; ++e) r[e] = [+t[e][0], +t[e][1], e]; - for (r.sort(Tp), e = 0; e < n; ++e) i[e] = [r[e][0], -r[e][1]]; - var o = Cp(r), - a = Cp(i), - s = a[0] === o[0], - u = a[a.length - 1] === o[o.length - 1], - l = []; - for (e = o.length - 1; e >= 0; --e) l.push(t[r[o[e]][2]]); - for (e = +s; e < a.length - u; ++e) l.push(t[r[a[e]][2]]); - return l; - }, - Pp = function(t, e) { - for ( - var n, - r, - i = t.length, - o = t[i - 1], - a = e[0], - s = e[1], - u = o[0], - l = o[1], - c = !1, - f = 0; - f < i; - ++f - ) - (n = (o = t[f])[0]), - (r = o[1]) > s != l > s && - a < ((u - n) * (s - r)) / (l - r) + n && - (c = !c), - (u = n), - (l = r); - return c; - }, - Mp = function(t) { - for ( - var e, - n, - r = -1, - i = t.length, - o = t[i - 1], - a = o[0], - s = o[1], - u = 0; - ++r < i; - - ) - (e = a), - (n = s), - (e -= a = (o = t[r])[0]), - (n -= s = o[1]), - (u += Math.sqrt(e * e + n * n)); - return u; - }, - Lp = function() { - return Math.random(); - }, - Dp = (function t(e) { - function n(t, n) { - return ( - (t = null == t ? 0 : +t), - (n = null == n ? 1 : +n), - 1 === arguments.length ? ((n = t), (t = 0)) : (n -= t), - function() { - return e() * n + t; - } - ); - } - return (n.source = t), n; - })(Lp), - jp = (function t(e) { - function n(t, n) { - var r, i; - return ( - (t = null == t ? 0 : +t), - (n = null == n ? 1 : +n), - function() { - var o; - if (null != r) (o = r), (r = null); - else - do { - (r = 2 * e() - 1), (o = 2 * e() - 1), (i = r * r + o * o); - } while (!i || i > 1); - return t + n * o * Math.sqrt((-2 * Math.log(i)) / i); - } - ); - } - return (n.source = t), n; - })(Lp), - Rp = (function t(e) { - function n() { - var t = jp.source(e).apply(this, arguments); - return function() { - return Math.exp(t()); - }; - } - return (n.source = t), n; - })(Lp), - Np = (function t(e) { - function n(t) { - return function() { - for (var n = 0, r = 0; r < t; ++r) n += e(); - return n; - }; - } - return (n.source = t), n; - })(Lp), - zp = (function t(e) { - function n(t) { - var n = Np.source(e)(t); - return function() { - return n() / t; - }; - } - return (n.source = t), n; - })(Lp), - Ip = (function t(e) { - function n(t) { - return function() { - return -Math.log(1 - e()) / t; - }; - } - return (n.source = t), n; - })(Lp); - function Fp(t, e) { - switch (arguments.length) { - case 0: - break; - case 1: - this.range(t); - break; - default: - this.range(e).domain(t); - } - return this; - } - function Vp(t, e) { - switch (arguments.length) { - case 0: - break; - case 1: - this.interpolator(t); - break; - default: - this.interpolator(e).domain(t); - } - return this; - } - var Bp = Array.prototype, - Gp = Bp.map, - Hp = Bp.slice, - Up = { name: 'implicit' }; - function qp() { - var t = Zi(), - e = [], - n = [], - r = Up; - function i(i) { - var o = i + '', - a = t.get(o); - if (!a) { - if (r !== Up) return r; - t.set(o, (a = e.push(i))); - } - return n[(a - 1) % n.length]; - } - return ( - (i.domain = function(n) { - if (!arguments.length) return e.slice(); - (e = []), (t = Zi()); - for (var r, o, a = -1, s = n.length; ++a < s; ) - t.has((o = (r = n[a]) + '')) || t.set(o, e.push(r)); - return i; - }), - (i.range = function(t) { - return arguments.length ? ((n = Hp.call(t)), i) : n.slice(); - }), - (i.unknown = function(t) { - return arguments.length ? ((r = t), i) : r; - }), - (i.copy = function() { - return qp(e, n).unknown(r); - }), - Fp.apply(i, arguments), - i - ); - } - function Wp() { - var t, - e, - n = qp().unknown(void 0), - r = n.domain, - i = n.range, - o = [0, 1], - a = !1, - s = 0, - u = 0, - l = 0.5; - function c() { - var n = r().length, - c = o[1] < o[0], - f = o[c - 0], - d = o[1 - c]; - (t = (d - f) / Math.max(1, n - s + 2 * u)), - a && (t = Math.floor(t)), - (f += (d - f - t * (n - s)) * l), - (e = t * (1 - s)), - a && ((f = Math.round(f)), (e = Math.round(e))); - var h = S(n).map(function(e) { - return f + t * e; - }); - return i(c ? h.reverse() : h); - } - return ( - delete n.unknown, - (n.domain = function(t) { - return arguments.length ? (r(t), c()) : r(); - }), - (n.range = function(t) { - return arguments.length ? ((o = [+t[0], +t[1]]), c()) : o.slice(); - }), - (n.rangeRound = function(t) { - return (o = [+t[0], +t[1]]), (a = !0), c(); - }), - (n.bandwidth = function() { - return e; - }), - (n.step = function() { - return t; - }), - (n.round = function(t) { - return arguments.length ? ((a = !!t), c()) : a; - }), - (n.padding = function(t) { - return arguments.length ? ((s = Math.min(1, (u = +t))), c()) : s; - }), - (n.paddingInner = function(t) { - return arguments.length ? ((s = Math.min(1, t)), c()) : s; - }), - (n.paddingOuter = function(t) { - return arguments.length ? ((u = +t), c()) : u; - }), - (n.align = function(t) { - return arguments.length - ? ((l = Math.max(0, Math.min(1, t))), c()) - : l; - }), - (n.copy = function() { - return Wp(r(), o) - .round(a) - .paddingInner(s) - .paddingOuter(u) - .align(l); - }), - Fp.apply(c(), arguments) - ); - } - function Xp(t) { - var e = t.copy; - return ( - (t.padding = t.paddingOuter), - delete t.paddingInner, - delete t.paddingOuter, - (t.copy = function() { - return Xp(e()); - }), - t - ); - } - function Yp() { - return Xp(Wp.apply(null, arguments).paddingInner(1)); - } - var $p = function(t) { - return +t; - }, - Qp = [0, 1]; - function Kp(t) { - return t; - } - function Zp(t, e) { - return (e -= t = +t) - ? function(n) { - return (n - t) / e; - } - : ((n = isNaN(e) ? NaN : 0.5), - function() { - return n; - }); - var n; - } - function Jp(t) { - var e, - n = t[0], - r = t[t.length - 1]; - return ( - n > r && ((e = n), (n = r), (r = e)), - function(t) { - return Math.max(n, Math.min(r, t)); - } - ); - } - function tg(t, e, n) { - var r = t[0], - i = t[1], - o = e[0], - a = e[1]; - return ( - i < r - ? ((r = Zp(i, r)), (o = n(a, o))) - : ((r = Zp(r, i)), (o = n(o, a))), - function(t) { - return o(r(t)); - } - ); - } - function eg(t, e, n) { - var r = Math.min(t.length, e.length) - 1, - i = new Array(r), - o = new Array(r), - a = -1; - for ( - t[r] < t[0] && ((t = t.slice().reverse()), (e = e.slice().reverse())); - ++a < r; - - ) - (i[a] = Zp(t[a], t[a + 1])), (o[a] = n(e[a], e[a + 1])); - return function(e) { - var n = l(t, e, 1, r) - 1; - return o[n](i[n](e)); - }; - } - function ng(t, e) { - return e - .domain(t.domain()) - .range(t.range()) - .interpolate(t.interpolate()) - .clamp(t.clamp()) - .unknown(t.unknown()); - } - function rg() { - var t, - e, - n, - r, - i, - o, - a = Qp, - s = Qp, - u = On, - l = Kp; - function c() { - return ( - (r = Math.min(a.length, s.length) > 2 ? eg : tg), (i = o = null), f - ); - } - function f(e) { - return isNaN((e = +e)) ? n : (i || (i = r(a.map(t), s, u)))(t(l(e))); - } - return ( - (f.invert = function(n) { - return l(e((o || (o = r(s, a.map(t), wn)))(n))); - }), - (f.domain = function(t) { - return arguments.length - ? ((a = Gp.call(t, $p)), l === Kp || (l = Jp(a)), c()) - : a.slice(); - }), - (f.range = function(t) { - return arguments.length ? ((s = Hp.call(t)), c()) : s.slice(); - }), - (f.rangeRound = function(t) { - return (s = Hp.call(t)), (u = lp), c(); - }), - (f.clamp = function(t) { - return arguments.length ? ((l = t ? Jp(a) : Kp), f) : l !== Kp; - }), - (f.interpolate = function(t) { - return arguments.length ? ((u = t), c()) : u; - }), - (f.unknown = function(t) { - return arguments.length ? ((n = t), f) : n; - }), - function(n, r) { - return (t = n), (e = r), c(); - } - ); - } - function ig(t, e) { - return rg()(t, e); - } - var og = function(t, e, n, r) { - var i, - o = O(t, e, n); - switch ((r = Ws(null == r ? ',f' : r)).type) { - case 's': - var a = Math.max(Math.abs(t), Math.abs(e)); - return ( - null != r.precision || isNaN((i = au(o, a))) || (r.precision = i), - Ks(r, a) - ); - case '': - case 'e': - case 'g': - case 'p': - case 'r': - null != r.precision || - isNaN((i = su(o, Math.max(Math.abs(t), Math.abs(e))))) || - (r.precision = i - ('e' === r.type)); - break; - case 'f': - case '%': - null != r.precision || - isNaN((i = ou(o))) || - (r.precision = i - 2 * ('%' === r.type)); - } - return Qs(r); - }; - function ag(t) { - var e = t.domain; - return ( - (t.ticks = function(t) { - var n = e(); - return T(n[0], n[n.length - 1], null == t ? 10 : t); - }), - (t.tickFormat = function(t, n) { - var r = e(); - return og(r[0], r[r.length - 1], null == t ? 10 : t, n); - }), - (t.nice = function(n) { - null == n && (n = 10); - var r, - i = e(), - o = 0, - a = i.length - 1, - s = i[o], - u = i[a]; - return ( - u < s && ((r = s), (s = u), (u = r), (r = o), (o = a), (a = r)), - (r = C(s, u, n)) > 0 - ? (r = C( - (s = Math.floor(s / r) * r), - (u = Math.ceil(u / r) * r), - n - )) - : r < 0 && - (r = C( - (s = Math.ceil(s * r) / r), - (u = Math.floor(u * r) / r), - n - )), - r > 0 - ? ((i[o] = Math.floor(s / r) * r), - (i[a] = Math.ceil(u / r) * r), - e(i)) - : r < 0 && - ((i[o] = Math.ceil(s * r) / r), - (i[a] = Math.floor(u * r) / r), - e(i)), - t - ); - }), - t - ); - } - function sg() { - var t = ig(Kp, Kp); - return ( - (t.copy = function() { - return ng(t, sg()); - }), - Fp.apply(t, arguments), - ag(t) - ); - } - function ug(t) { - var e; - function n(t) { - return isNaN((t = +t)) ? e : t; - } - return ( - (n.invert = n), - (n.domain = n.range = function(e) { - return arguments.length ? ((t = Gp.call(e, $p)), n) : t.slice(); - }), - (n.unknown = function(t) { - return arguments.length ? ((e = t), n) : e; - }), - (n.copy = function() { - return ug(t).unknown(e); - }), - (t = arguments.length ? Gp.call(t, $p) : [0, 1]), - ag(n) - ); - } - var lg = function(t, e) { - var n, - r = 0, - i = (t = t.slice()).length - 1, - o = t[r], - a = t[i]; - return ( - a < o && ((n = r), (r = i), (i = n), (n = o), (o = a), (a = n)), - (t[r] = e.floor(o)), - (t[i] = e.ceil(a)), - t - ); - }; - function cg(t) { - return Math.log(t); - } - function fg(t) { - return Math.exp(t); - } - function dg(t) { - return -Math.log(-t); - } - function hg(t) { - return -Math.exp(-t); - } - function pg(t) { - return isFinite(t) ? +('1e' + t) : t < 0 ? 0 : t; - } - function gg(t) { - return function(e) { - return -t(-e); - }; - } - function vg(t) { - var e, - n, - r = t(cg, fg), - i = r.domain, - o = 10; - function a() { - return ( - (e = (function(t) { - return t === Math.E - ? Math.log - : (10 === t && Math.log10) || - (2 === t && Math.log2) || - ((t = Math.log(t)), - function(e) { - return Math.log(e) / t; - }); - })(o)), - (n = (function(t) { - return 10 === t - ? pg - : t === Math.E - ? Math.exp - : function(e) { - return Math.pow(t, e); - }; - })(o)), - i()[0] < 0 ? ((e = gg(e)), (n = gg(n)), t(dg, hg)) : t(cg, fg), - r - ); - } - return ( - (r.base = function(t) { - return arguments.length ? ((o = +t), a()) : o; - }), - (r.domain = function(t) { - return arguments.length ? (i(t), a()) : i(); - }), - (r.ticks = function(t) { - var r, - a = i(), - s = a[0], - u = a[a.length - 1]; - (r = u < s) && ((d = s), (s = u), (u = d)); - var l, - c, - f, - d = e(s), - h = e(u), - p = null == t ? 10 : +t, - g = []; - if (!(o % 1) && h - d < p) { - if (((d = Math.round(d) - 1), (h = Math.round(h) + 1), s > 0)) { - for (; d < h; ++d) - for (c = 1, l = n(d); c < o; ++c) - if (!((f = l * c) < s)) { - if (f > u) break; - g.push(f); - } - } else - for (; d < h; ++d) - for (c = o - 1, l = n(d); c >= 1; --c) - if (!((f = l * c) < s)) { - if (f > u) break; - g.push(f); - } - } else g = T(d, h, Math.min(h - d, p)).map(n); - return r ? g.reverse() : g; - }), - (r.tickFormat = function(t, i) { - if ( - (null == i && (i = 10 === o ? '.0e' : ','), - 'function' != typeof i && (i = Qs(i)), - t === 1 / 0) - ) - return i; - null == t && (t = 10); - var a = Math.max(1, (o * t) / r.ticks().length); - return function(t) { - var r = t / n(Math.round(e(t))); - return r * o < o - 0.5 && (r *= o), r <= a ? i(t) : ''; - }; - }), - (r.nice = function() { - return i( - lg(i(), { - floor: function(t) { - return n(Math.floor(e(t))); - }, - ceil: function(t) { - return n(Math.ceil(e(t))); - } - }) - ); - }), - r - ); - } - function mg() { - var t = vg(rg()).domain([1, 10]); - return ( - (t.copy = function() { - return ng(t, mg()).base(t.base()); - }), - Fp.apply(t, arguments), - t - ); - } - function yg(t) { - return function(e) { - return Math.sign(e) * Math.log1p(Math.abs(e / t)); - }; - } - function bg(t) { - return function(e) { - return Math.sign(e) * Math.expm1(Math.abs(e)) * t; - }; - } - function _g(t) { - var e = 1, - n = t(yg(e), bg(e)); - return ( - (n.constant = function(n) { - return arguments.length ? t(yg((e = +n)), bg(e)) : e; - }), - ag(n) - ); - } - function xg() { - var t = _g(rg()); - return ( - (t.copy = function() { - return ng(t, xg()).constant(t.constant()); - }), - Fp.apply(t, arguments) - ); - } - function wg(t) { - return function(e) { - return e < 0 ? -Math.pow(-e, t) : Math.pow(e, t); - }; - } - function Sg(t) { - return t < 0 ? -Math.sqrt(-t) : Math.sqrt(t); - } - function Eg(t) { - return t < 0 ? -t * t : t * t; - } - function kg(t) { - var e = t(Kp, Kp), - n = 1; - function r() { - return 1 === n - ? t(Kp, Kp) - : 0.5 === n - ? t(Sg, Eg) - : t(wg(n), wg(1 / n)); - } - return ( - (e.exponent = function(t) { - return arguments.length ? ((n = +t), r()) : n; - }), - ag(e) - ); - } - function Ag() { - var t = kg(rg()); - return ( - (t.copy = function() { - return ng(t, Ag()).exponent(t.exponent()); - }), - Fp.apply(t, arguments), - t - ); - } - function Tg() { - return Ag.apply(null, arguments).exponent(0.5); - } - function Cg() { - var t, - e = [], - n = [], - r = []; - function o() { - var t = 0, - i = Math.max(1, n.length); - for (r = new Array(i - 1); ++t < i; ) r[t - 1] = L(e, t / i); - return a; - } - function a(e) { - return isNaN((e = +e)) ? t : n[l(r, e)]; - } - return ( - (a.invertExtent = function(t) { - var i = n.indexOf(t); - return i < 0 - ? [NaN, NaN] - : [ - i > 0 ? r[i - 1] : e[0], - i < r.length ? r[i] : e[e.length - 1] - ]; - }), - (a.domain = function(t) { - if (!arguments.length) return e.slice(); - e = []; - for (var n, r = 0, a = t.length; r < a; ++r) - null == (n = t[r]) || isNaN((n = +n)) || e.push(n); - return e.sort(i), o(); - }), - (a.range = function(t) { - return arguments.length ? ((n = Hp.call(t)), o()) : n.slice(); - }), - (a.unknown = function(e) { - return arguments.length ? ((t = e), a) : t; - }), - (a.quantiles = function() { - return r.slice(); - }), - (a.copy = function() { - return Cg() - .domain(e) - .range(n) - .unknown(t); - }), - Fp.apply(a, arguments) - ); - } - function Og() { - var t, - e = 0, - n = 1, - r = 1, - i = [0.5], - o = [0, 1]; - function a(e) { - return e <= e ? o[l(i, e, 0, r)] : t; - } - function s() { - var t = -1; - for (i = new Array(r); ++t < r; ) - i[t] = ((t + 1) * n - (t - r) * e) / (r + 1); - return a; - } - return ( - (a.domain = function(t) { - return arguments.length ? ((e = +t[0]), (n = +t[1]), s()) : [e, n]; - }), - (a.range = function(t) { - return arguments.length - ? ((r = (o = Hp.call(t)).length - 1), s()) - : o.slice(); - }), - (a.invertExtent = function(t) { - var a = o.indexOf(t); - return a < 0 - ? [NaN, NaN] - : a < 1 - ? [e, i[0]] - : a >= r - ? [i[r - 1], n] - : [i[a - 1], i[a]]; - }), - (a.unknown = function(e) { - return arguments.length ? ((t = e), a) : a; - }), - (a.thresholds = function() { - return i.slice(); - }), - (a.copy = function() { - return Og() - .domain([e, n]) - .range(o) - .unknown(t); - }), - Fp.apply(ag(a), arguments) - ); - } - function Pg() { - var t, - e = [0.5], - n = [0, 1], - r = 1; - function i(i) { - return i <= i ? n[l(e, i, 0, r)] : t; - } - return ( - (i.domain = function(t) { - return arguments.length - ? ((e = Hp.call(t)), (r = Math.min(e.length, n.length - 1)), i) - : e.slice(); - }), - (i.range = function(t) { - return arguments.length - ? ((n = Hp.call(t)), (r = Math.min(e.length, n.length - 1)), i) - : n.slice(); - }), - (i.invertExtent = function(t) { - var r = n.indexOf(t); - return [e[r - 1], e[r]]; - }), - (i.unknown = function(e) { - return arguments.length ? ((t = e), i) : t; - }), - (i.copy = function() { - return Pg() - .domain(e) - .range(n) - .unknown(t); - }), - Fp.apply(i, arguments) - ); - } - var Mg = new Date(), - Lg = new Date(); - function Dg(t, e, n, r) { - function i(e) { - return t((e = 0 === arguments.length ? new Date() : new Date(+e))), e; - } - return ( - (i.floor = function(e) { - return t((e = new Date(+e))), e; - }), - (i.ceil = function(n) { - return t((n = new Date(n - 1))), e(n, 1), t(n), n; - }), - (i.round = function(t) { - var e = i(t), - n = i.ceil(t); - return t - e < n - t ? e : n; - }), - (i.offset = function(t, n) { - return e((t = new Date(+t)), null == n ? 1 : Math.floor(n)), t; - }), - (i.range = function(n, r, o) { - var a, - s = []; - if ( - ((n = i.ceil(n)), - (o = null == o ? 1 : Math.floor(o)), - !(n < r && o > 0)) - ) - return s; - do { - s.push((a = new Date(+n))), e(n, o), t(n); - } while (a < n && n < r); - return s; - }), - (i.filter = function(n) { - return Dg( - function(e) { - if (e >= e) for (; t(e), !n(e); ) e.setTime(e - 1); - }, - function(t, r) { - if (t >= t) - if (r < 0) for (; ++r <= 0; ) for (; e(t, -1), !n(t); ); - else for (; --r >= 0; ) for (; e(t, 1), !n(t); ); - } - ); - }), - n && - ((i.count = function(e, r) { - return ( - Mg.setTime(+e), - Lg.setTime(+r), - t(Mg), - t(Lg), - Math.floor(n(Mg, Lg)) - ); - }), - (i.every = function(t) { - return ( - (t = Math.floor(t)), - isFinite(t) && t > 0 - ? t > 1 - ? i.filter( - r - ? function(e) { - return r(e) % t == 0; - } - : function(e) { - return i.count(0, e) % t == 0; - } - ) - : i - : null - ); - })), - i - ); - } - var jg = Dg( - function(t) { - t.setMonth(0, 1), t.setHours(0, 0, 0, 0); - }, - function(t, e) { - t.setFullYear(t.getFullYear() + e); - }, - function(t, e) { - return e.getFullYear() - t.getFullYear(); - }, - function(t) { - return t.getFullYear(); - } - ); - jg.every = function(t) { - return isFinite((t = Math.floor(t))) && t > 0 - ? Dg( - function(e) { - e.setFullYear(Math.floor(e.getFullYear() / t) * t), - e.setMonth(0, 1), - e.setHours(0, 0, 0, 0); - }, - function(e, n) { - e.setFullYear(e.getFullYear() + n * t); - } - ) - : null; - }; - var Rg = jg, - Ng = jg.range, - zg = Dg( - function(t) { - t.setDate(1), t.setHours(0, 0, 0, 0); - }, - function(t, e) { - t.setMonth(t.getMonth() + e); - }, - function(t, e) { - return ( - e.getMonth() - - t.getMonth() + - 12 * (e.getFullYear() - t.getFullYear()) - ); - }, - function(t) { - return t.getMonth(); - } - ), - Ig = zg, - Fg = zg.range; - function Vg(t) { - return Dg( - function(e) { - e.setDate(e.getDate() - ((e.getDay() + 7 - t) % 7)), - e.setHours(0, 0, 0, 0); - }, - function(t, e) { - t.setDate(t.getDate() + 7 * e); - }, - function(t, e) { - return ( - (e - t - 6e4 * (e.getTimezoneOffset() - t.getTimezoneOffset())) / - 6048e5 - ); - } - ); - } - var Bg = Vg(0), - Gg = Vg(1), - Hg = Vg(2), - Ug = Vg(3), - qg = Vg(4), - Wg = Vg(5), - Xg = Vg(6), - Yg = Bg.range, - $g = Gg.range, - Qg = Hg.range, - Kg = Ug.range, - Zg = qg.range, - Jg = Wg.range, - tv = Xg.range, - ev = Dg( - function(t) { - t.setHours(0, 0, 0, 0); - }, - function(t, e) { - t.setDate(t.getDate() + e); - }, - function(t, e) { - return ( - (e - t - 6e4 * (e.getTimezoneOffset() - t.getTimezoneOffset())) / - 864e5 - ); - }, - function(t) { - return t.getDate() - 1; - } - ), - nv = ev, - rv = ev.range, - iv = Dg( - function(t) { - t.setTime( - t - - t.getMilliseconds() - - 1e3 * t.getSeconds() - - 6e4 * t.getMinutes() - ); - }, - function(t, e) { - t.setTime(+t + 36e5 * e); - }, - function(t, e) { - return (e - t) / 36e5; - }, - function(t) { - return t.getHours(); - } - ), - ov = iv, - av = iv.range, - sv = Dg( - function(t) { - t.setTime(t - t.getMilliseconds() - 1e3 * t.getSeconds()); - }, - function(t, e) { - t.setTime(+t + 6e4 * e); - }, - function(t, e) { - return (e - t) / 6e4; - }, - function(t) { - return t.getMinutes(); - } - ), - uv = sv, - lv = sv.range, - cv = Dg( - function(t) { - t.setTime(t - t.getMilliseconds()); - }, - function(t, e) { - t.setTime(+t + 1e3 * e); - }, - function(t, e) { - return (e - t) / 1e3; - }, - function(t) { - return t.getUTCSeconds(); - } - ), - fv = cv, - dv = cv.range, - hv = Dg( - function() {}, - function(t, e) { - t.setTime(+t + e); - }, - function(t, e) { - return e - t; - } - ); - hv.every = function(t) { - return ( - (t = Math.floor(t)), - isFinite(t) && t > 0 - ? t > 1 - ? Dg( - function(e) { - e.setTime(Math.floor(e / t) * t); - }, - function(e, n) { - e.setTime(+e + n * t); - }, - function(e, n) { - return (n - e) / t; - } - ) - : hv - : null - ); - }; - var pv = hv, - gv = hv.range; - function vv(t) { - return Dg( - function(e) { - e.setUTCDate(e.getUTCDate() - ((e.getUTCDay() + 7 - t) % 7)), - e.setUTCHours(0, 0, 0, 0); - }, - function(t, e) { - t.setUTCDate(t.getUTCDate() + 7 * e); - }, - function(t, e) { - return (e - t) / 6048e5; - } - ); - } - var mv = vv(0), - yv = vv(1), - bv = vv(2), - _v = vv(3), - xv = vv(4), - wv = vv(5), - Sv = vv(6), - Ev = mv.range, - kv = yv.range, - Av = bv.range, - Tv = _v.range, - Cv = xv.range, - Ov = wv.range, - Pv = Sv.range, - Mv = Dg( - function(t) { - t.setUTCHours(0, 0, 0, 0); - }, - function(t, e) { - t.setUTCDate(t.getUTCDate() + e); - }, - function(t, e) { - return (e - t) / 864e5; - }, - function(t) { - return t.getUTCDate() - 1; - } - ), - Lv = Mv, - Dv = Mv.range, - jv = Dg( - function(t) { - t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0); - }, - function(t, e) { - t.setUTCFullYear(t.getUTCFullYear() + e); - }, - function(t, e) { - return e.getUTCFullYear() - t.getUTCFullYear(); - }, - function(t) { - return t.getUTCFullYear(); - } - ); - jv.every = function(t) { - return isFinite((t = Math.floor(t))) && t > 0 - ? Dg( - function(e) { - e.setUTCFullYear(Math.floor(e.getUTCFullYear() / t) * t), - e.setUTCMonth(0, 1), - e.setUTCHours(0, 0, 0, 0); - }, - function(e, n) { - e.setUTCFullYear(e.getUTCFullYear() + n * t); - } - ) - : null; - }; - var Rv = jv, - Nv = jv.range; - function zv(t) { - if (0 <= t.y && t.y < 100) { - var e = new Date(-1, t.m, t.d, t.H, t.M, t.S, t.L); - return e.setFullYear(t.y), e; - } - return new Date(t.y, t.m, t.d, t.H, t.M, t.S, t.L); - } - function Iv(t) { - if (0 <= t.y && t.y < 100) { - var e = new Date(Date.UTC(-1, t.m, t.d, t.H, t.M, t.S, t.L)); - return e.setUTCFullYear(t.y), e; - } - return new Date(Date.UTC(t.y, t.m, t.d, t.H, t.M, t.S, t.L)); - } - function Fv(t, e, n) { - return { y: t, m: e, d: n, H: 0, M: 0, S: 0, L: 0 }; - } - function Vv(t) { - var e = t.dateTime, - n = t.date, - r = t.time, - i = t.periods, - o = t.days, - a = t.shortDays, - s = t.months, - u = t.shortMonths, - l = Zv(i), - c = Jv(i), - f = Zv(o), - d = Jv(o), - h = Zv(a), - p = Jv(a), - g = Zv(s), - v = Jv(s), - m = Zv(u), - y = Jv(u), - b = { - a: function(t) { - return a[t.getDay()]; - }, - A: function(t) { - return o[t.getDay()]; - }, - b: function(t) { - return u[t.getMonth()]; - }, - B: function(t) { - return s[t.getMonth()]; - }, - c: null, - d: _m, - e: _m, - f: km, - H: xm, - I: wm, - j: Sm, - L: Em, - m: Am, - M: Tm, - p: function(t) { - return i[+(t.getHours() >= 12)]; - }, - q: function(t) { - return 1 + ~~(t.getMonth() / 3); - }, - Q: ey, - s: ny, - S: Cm, - u: Om, - U: Pm, - V: Mm, - w: Lm, - W: Dm, - x: null, - X: null, - y: jm, - Y: Rm, - Z: Nm, - '%': ty - }, - _ = { - a: function(t) { - return a[t.getUTCDay()]; - }, - A: function(t) { - return o[t.getUTCDay()]; - }, - b: function(t) { - return u[t.getUTCMonth()]; - }, - B: function(t) { - return s[t.getUTCMonth()]; - }, - c: null, - d: zm, - e: zm, - f: Gm, - H: Im, - I: Fm, - j: Vm, - L: Bm, - m: Hm, - M: Um, - p: function(t) { - return i[+(t.getUTCHours() >= 12)]; - }, - q: function(t) { - return 1 + ~~(t.getUTCMonth() / 3); - }, - Q: ey, - s: ny, - S: qm, - u: Wm, - U: Xm, - V: Ym, - w: $m, - W: Qm, - x: null, - X: null, - y: Km, - Y: Zm, - Z: Jm, - '%': ty - }, - x = { - a: function(t, e, n) { - var r = h.exec(e.slice(n)); - return r ? ((t.w = p[r[0].toLowerCase()]), n + r[0].length) : -1; - }, - A: function(t, e, n) { - var r = f.exec(e.slice(n)); - return r ? ((t.w = d[r[0].toLowerCase()]), n + r[0].length) : -1; - }, - b: function(t, e, n) { - var r = m.exec(e.slice(n)); - return r ? ((t.m = y[r[0].toLowerCase()]), n + r[0].length) : -1; - }, - B: function(t, e, n) { - var r = g.exec(e.slice(n)); - return r ? ((t.m = v[r[0].toLowerCase()]), n + r[0].length) : -1; - }, - c: function(t, n, r) { - return E(t, e, n, r); - }, - d: cm, - e: cm, - f: vm, - H: dm, - I: dm, - j: fm, - L: gm, - m: lm, - M: hm, - p: function(t, e, n) { - var r = l.exec(e.slice(n)); - return r ? ((t.p = c[r[0].toLowerCase()]), n + r[0].length) : -1; - }, - q: um, - Q: ym, - s: bm, - S: pm, - u: em, - U: nm, - V: rm, - w: tm, - W: im, - x: function(t, e, r) { - return E(t, n, e, r); - }, - X: function(t, e, n) { - return E(t, r, e, n); - }, - y: am, - Y: om, - Z: sm, - '%': mm - }; - function w(t, e) { - return function(n) { - var r, - i, - o, - a = [], - s = -1, - u = 0, - l = t.length; - for (n instanceof Date || (n = new Date(+n)); ++s < l; ) - 37 === t.charCodeAt(s) && - (a.push(t.slice(u, s)), - null != (i = Wv[(r = t.charAt(++s))]) - ? (r = t.charAt(++s)) - : (i = 'e' === r ? ' ' : '0'), - (o = e[r]) && (r = o(n, i)), - a.push(r), - (u = s + 1)); - return a.push(t.slice(u, s)), a.join(''); - }; - } - function S(t, e) { - return function(n) { - var r, - i, - o = Fv(1900, void 0, 1); - if (E(o, t, (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 ( - (e && !('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 = Iv(Fv(o.y, 0, 1))).getUTCDay()), - (r = i > 4 || 0 === i ? yv.ceil(r) : yv(r)), - (r = Lv.offset(r, 7 * (o.V - 1))), - (o.y = r.getUTCFullYear()), - (o.m = r.getUTCMonth()), - (o.d = r.getUTCDate() + ((o.w + 6) % 7))) - : ((i = (r = zv(Fv(o.y, 0, 1))).getDay()), - (r = i > 4 || 0 === i ? Gg.ceil(r) : Gg(r)), - (r = nv.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 - ? Iv(Fv(o.y, 0, 1)).getUTCDay() - : zv(Fv(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), Iv(o)) - : zv(o); - }; - } - function E(t, e, n, r) { - for (var i, o, a = 0, s = e.length, u = n.length; a < s; ) { - if (r >= u) return -1; - if (37 === (i = e.charCodeAt(a++))) { - if ( - ((i = e.charAt(a++)), - !(o = x[i in Wv ? e.charAt(a++) : i]) || (r = o(t, n, r)) < 0) - ) - return -1; - } else if (i != n.charCodeAt(r++)) return -1; - } - return r; - } - return ( - (b.x = w(n, b)), - (b.X = w(r, b)), - (b.c = w(e, b)), - (_.x = w(n, _)), - (_.X = w(r, _)), - (_.c = w(e, _)), - { - format: function(t) { - var e = w((t += ''), b); - return ( - (e.toString = function() { - return t; - }), - e - ); - }, - parse: function(t) { - var e = S((t += ''), !1); - return ( - (e.toString = function() { - return t; - }), - e - ); - }, - utcFormat: function(t) { - var e = w((t += ''), _); - return ( - (e.toString = function() { - return t; - }), - e - ); - }, - utcParse: function(t) { - var e = S((t += ''), !0); - return ( - (e.toString = function() { - return t; - }), - e - ); - } - } - ); - } - var Bv, - Gv, - Hv, - Uv, - qv, - Wv = { '-': '', _: ' ', 0: '0' }, - Xv = /^\s*\d+/, - Yv = /^%/, - $v = /[\\^$*+?|[\]().{}]/g; - function Qv(t, e, n) { - var r = t < 0 ? '-' : '', - i = (r ? -t : t) + '', - o = i.length; - return r + (o < n ? new Array(n - o + 1).join(e) + i : i); - } - function Kv(t) { - return t.replace($v, '\\$&'); - } - function Zv(t) { - return new RegExp('^(?:' + t.map(Kv).join('|') + ')', 'i'); - } - function Jv(t) { - for (var e = {}, n = -1, r = t.length; ++n < r; ) - e[t[n].toLowerCase()] = n; - return e; - } - function tm(t, e, n) { - var r = Xv.exec(e.slice(n, n + 1)); - return r ? ((t.w = +r[0]), n + r[0].length) : -1; - } - function em(t, e, n) { - var r = Xv.exec(e.slice(n, n + 1)); - return r ? ((t.u = +r[0]), n + r[0].length) : -1; - } - function nm(t, e, n) { - var r = Xv.exec(e.slice(n, n + 2)); - return r ? ((t.U = +r[0]), n + r[0].length) : -1; - } - function rm(t, e, n) { - var r = Xv.exec(e.slice(n, n + 2)); - return r ? ((t.V = +r[0]), n + r[0].length) : -1; - } - function im(t, e, n) { - var r = Xv.exec(e.slice(n, n + 2)); - return r ? ((t.W = +r[0]), n + r[0].length) : -1; - } - function om(t, e, n) { - var r = Xv.exec(e.slice(n, n + 4)); - return r ? ((t.y = +r[0]), n + r[0].length) : -1; - } - function am(t, e, n) { - var r = Xv.exec(e.slice(n, n + 2)); - return r - ? ((t.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3)), n + r[0].length) - : -1; - } - function sm(t, e, n) { - var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n, n + 6)); - return r - ? ((t.Z = r[1] ? 0 : -(r[2] + (r[3] || '00'))), n + r[0].length) - : -1; - } - function um(t, e, n) { - var r = Xv.exec(e.slice(n, n + 1)); - return r ? ((t.q = 3 * r[0] - 3), n + r[0].length) : -1; - } - function lm(t, e, n) { - var r = Xv.exec(e.slice(n, n + 2)); - return r ? ((t.m = r[0] - 1), n + r[0].length) : -1; - } - function cm(t, e, n) { - var r = Xv.exec(e.slice(n, n + 2)); - return r ? ((t.d = +r[0]), n + r[0].length) : -1; - } - function fm(t, e, n) { - var r = Xv.exec(e.slice(n, n + 3)); - return r ? ((t.m = 0), (t.d = +r[0]), n + r[0].length) : -1; - } - function dm(t, e, n) { - var r = Xv.exec(e.slice(n, n + 2)); - return r ? ((t.H = +r[0]), n + r[0].length) : -1; - } - function hm(t, e, n) { - var r = Xv.exec(e.slice(n, n + 2)); - return r ? ((t.M = +r[0]), n + r[0].length) : -1; - } - function pm(t, e, n) { - var r = Xv.exec(e.slice(n, n + 2)); - return r ? ((t.S = +r[0]), n + r[0].length) : -1; - } - function gm(t, e, n) { - var r = Xv.exec(e.slice(n, n + 3)); - return r ? ((t.L = +r[0]), n + r[0].length) : -1; - } - function vm(t, e, n) { - var r = Xv.exec(e.slice(n, n + 6)); - return r ? ((t.L = Math.floor(r[0] / 1e3)), n + r[0].length) : -1; - } - function mm(t, e, n) { - var r = Yv.exec(e.slice(n, n + 1)); - return r ? n + r[0].length : -1; - } - function ym(t, e, n) { - var r = Xv.exec(e.slice(n)); - return r ? ((t.Q = +r[0]), n + r[0].length) : -1; - } - function bm(t, e, n) { - var r = Xv.exec(e.slice(n)); - return r ? ((t.s = +r[0]), n + r[0].length) : -1; - } - function _m(t, e) { - return Qv(t.getDate(), e, 2); - } - function xm(t, e) { - return Qv(t.getHours(), e, 2); - } - function wm(t, e) { - return Qv(t.getHours() % 12 || 12, e, 2); - } - function Sm(t, e) { - return Qv(1 + nv.count(Rg(t), t), e, 3); - } - function Em(t, e) { - return Qv(t.getMilliseconds(), e, 3); - } - function km(t, e) { - return Em(t, e) + '000'; - } - function Am(t, e) { - return Qv(t.getMonth() + 1, e, 2); - } - function Tm(t, e) { - return Qv(t.getMinutes(), e, 2); - } - function Cm(t, e) { - return Qv(t.getSeconds(), e, 2); - } - function Om(t) { - var e = t.getDay(); - return 0 === e ? 7 : e; - } - function Pm(t, e) { - return Qv(Bg.count(Rg(t) - 1, t), e, 2); - } - function Mm(t, e) { - var n = t.getDay(); - return ( - (t = n >= 4 || 0 === n ? qg(t) : qg.ceil(t)), - Qv(qg.count(Rg(t), t) + (4 === Rg(t).getDay()), e, 2) - ); - } - function Lm(t) { - return t.getDay(); - } - function Dm(t, e) { - return Qv(Gg.count(Rg(t) - 1, t), e, 2); - } - function jm(t, e) { - return Qv(t.getFullYear() % 100, e, 2); - } - function Rm(t, e) { - return Qv(t.getFullYear() % 1e4, e, 4); - } - function Nm(t) { - var e = t.getTimezoneOffset(); - return ( - (e > 0 ? '-' : ((e *= -1), '+')) + - Qv((e / 60) | 0, '0', 2) + - Qv(e % 60, '0', 2) - ); - } - function zm(t, e) { - return Qv(t.getUTCDate(), e, 2); - } - function Im(t, e) { - return Qv(t.getUTCHours(), e, 2); - } - function Fm(t, e) { - return Qv(t.getUTCHours() % 12 || 12, e, 2); - } - function Vm(t, e) { - return Qv(1 + Lv.count(Rv(t), t), e, 3); - } - function Bm(t, e) { - return Qv(t.getUTCMilliseconds(), e, 3); - } - function Gm(t, e) { - return Bm(t, e) + '000'; - } - function Hm(t, e) { - return Qv(t.getUTCMonth() + 1, e, 2); - } - function Um(t, e) { - return Qv(t.getUTCMinutes(), e, 2); - } - function qm(t, e) { - return Qv(t.getUTCSeconds(), e, 2); - } - function Wm(t) { - var e = t.getUTCDay(); - return 0 === e ? 7 : e; - } - function Xm(t, e) { - return Qv(mv.count(Rv(t) - 1, t), e, 2); - } - function Ym(t, e) { - var n = t.getUTCDay(); - return ( - (t = n >= 4 || 0 === n ? xv(t) : xv.ceil(t)), - Qv(xv.count(Rv(t), t) + (4 === Rv(t).getUTCDay()), e, 2) - ); - } - function $m(t) { - return t.getUTCDay(); - } - function Qm(t, e) { - return Qv(yv.count(Rv(t) - 1, t), e, 2); - } - function Km(t, e) { - return Qv(t.getUTCFullYear() % 100, e, 2); - } - function Zm(t, e) { - return Qv(t.getUTCFullYear() % 1e4, e, 4); - } - function Jm() { - return '+0000'; - } - function ty() { - return '%'; - } - function ey(t) { - return +t; - } - function ny(t) { - return Math.floor(+t / 1e3); - } - function ry(t) { - return ( - (Bv = Vv(t)), - (Gv = Bv.format), - (Hv = Bv.parse), - (Uv = Bv.utcFormat), - (qv = Bv.utcParse), - Bv - ); - } - ry({ - 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' - ] - }); - function iy(t) { - return new Date(t); - } - function oy(t) { - return t instanceof Date ? +t : +new Date(+t); - } - function ay(t, e, n, r, i, a, s, u, l) { - var c = ig(Kp, Kp), - f = c.invert, - d = c.domain, - h = l('.%L'), - p = l(':%S'), - g = l('%I:%M'), - v = l('%I %p'), - m = l('%a %d'), - y = l('%b %d'), - b = l('%B'), - _ = l('%Y'), - x = [ - [s, 1, 1e3], - [s, 5, 5e3], - [s, 15, 15e3], - [s, 30, 3e4], - [a, 1, 6e4], - [a, 5, 3e5], - [a, 15, 9e5], - [a, 30, 18e5], - [i, 1, 36e5], - [i, 3, 108e5], - [i, 6, 216e5], - [i, 12, 432e5], - [r, 1, 864e5], - [r, 2, 1728e5], - [n, 1, 6048e5], - [e, 1, 2592e6], - [e, 3, 7776e6], - [t, 1, 31536e6] - ]; - function w(o) { - return (s(o) < o - ? h - : a(o) < o - ? p - : i(o) < o - ? g - : r(o) < o - ? v - : e(o) < o - ? n(o) < o - ? m - : y - : t(o) < o - ? b - : _)(o); - } - function S(e, n, r, i) { - if ((null == e && (e = 10), 'number' == typeof e)) { - var a = Math.abs(r - n) / e, - s = o(function(t) { - return t[2]; - }).right(x, a); - s === x.length - ? ((i = O(n / 31536e6, r / 31536e6, e)), (e = t)) - : s - ? ((i = (s = x[a / x[s - 1][2] < x[s][2] / a ? s - 1 : s])[1]), - (e = s[0])) - : ((i = Math.max(O(n, r, e), 1)), (e = u)); - } - return null == i ? e : e.every(i); - } - return ( - (c.invert = function(t) { - return new Date(f(t)); - }), - (c.domain = function(t) { - return arguments.length ? d(Gp.call(t, oy)) : d().map(iy); - }), - (c.ticks = function(t, e) { - var n, - r = d(), - i = r[0], - o = r[r.length - 1], - a = o < i; - return ( - a && ((n = i), (i = o), (o = n)), - (n = (n = S(t, i, o, e)) ? n.range(i, o + 1) : []), - a ? n.reverse() : n - ); - }), - (c.tickFormat = function(t, e) { - return null == e ? w : l(e); - }), - (c.nice = function(t, e) { - var n = d(); - return (t = S(t, n[0], n[n.length - 1], e)) ? d(lg(n, t)) : c; - }), - (c.copy = function() { - return ng(c, ay(t, e, n, r, i, a, s, u, l)); - }), - c - ); - } - var sy = function() { - return Fp.apply( - ay(Rg, Ig, Bg, nv, ov, uv, fv, pv, Gv).domain([ - new Date(2e3, 0, 1), - new Date(2e3, 0, 2) - ]), - arguments - ); - }, - uy = Dg( - function(t) { - t.setUTCDate(1), t.setUTCHours(0, 0, 0, 0); - }, - function(t, e) { - t.setUTCMonth(t.getUTCMonth() + e); - }, - function(t, e) { - return ( - e.getUTCMonth() - - t.getUTCMonth() + - 12 * (e.getUTCFullYear() - t.getUTCFullYear()) - ); - }, - function(t) { - return t.getUTCMonth(); - } - ), - ly = uy, - cy = uy.range, - fy = Dg( - function(t) { - t.setUTCMinutes(0, 0, 0); - }, - function(t, e) { - t.setTime(+t + 36e5 * e); - }, - function(t, e) { - return (e - t) / 36e5; - }, - function(t) { - return t.getUTCHours(); - } - ), - dy = fy, - hy = fy.range, - py = Dg( - function(t) { - t.setUTCSeconds(0, 0); - }, - function(t, e) { - t.setTime(+t + 6e4 * e); - }, - function(t, e) { - return (e - t) / 6e4; - }, - function(t) { - return t.getUTCMinutes(); - } - ), - gy = py, - vy = py.range, - my = function() { - return Fp.apply( - ay(Rv, ly, mv, Lv, dy, gy, fv, pv, Uv).domain([ - Date.UTC(2e3, 0, 1), - Date.UTC(2e3, 0, 2) - ]), - arguments - ); - }; - function yy() { - var t, - e, - n, - r, - i, - o = 0, - a = 1, - s = Kp, - u = !1; - function l(e) { - return isNaN((e = +e)) - ? i - : s( - 0 === n - ? 0.5 - : ((e = (r(e) - t) * n), u ? Math.max(0, Math.min(1, e)) : e) - ); - } - return ( - (l.domain = function(i) { - return arguments.length - ? ((t = r((o = +i[0]))), - (e = r((a = +i[1]))), - (n = t === e ? 0 : 1 / (e - t)), - l) - : [o, a]; - }), - (l.clamp = function(t) { - return arguments.length ? ((u = !!t), l) : u; - }), - (l.interpolator = function(t) { - return arguments.length ? ((s = t), l) : s; - }), - (l.unknown = function(t) { - return arguments.length ? ((i = t), l) : i; - }), - function(i) { - return ( - (r = i), - (t = i(o)), - (e = i(a)), - (n = t === e ? 0 : 1 / (e - t)), - l - ); - } - ); - } - function by(t, e) { - return e - .domain(t.domain()) - .interpolator(t.interpolator()) - .clamp(t.clamp()) - .unknown(t.unknown()); - } - function _y() { - var t = ag(yy()(Kp)); - return ( - (t.copy = function() { - return by(t, _y()); - }), - Vp.apply(t, arguments) - ); - } - function xy() { - var t = vg(yy()).domain([1, 10]); - return ( - (t.copy = function() { - return by(t, xy()).base(t.base()); - }), - Vp.apply(t, arguments) - ); - } - function wy() { - var t = _g(yy()); - return ( - (t.copy = function() { - return by(t, wy()).constant(t.constant()); - }), - Vp.apply(t, arguments) - ); - } - function Sy() { - var t = kg(yy()); - return ( - (t.copy = function() { - return by(t, Sy()).exponent(t.exponent()); - }), - Vp.apply(t, arguments) - ); - } - function Ey() { - return Sy.apply(null, arguments).exponent(0.5); - } - function ky() { - var t = [], - e = Kp; - function n(n) { - if (!isNaN((n = +n))) return e((l(t, n) - 1) / (t.length - 1)); - } - return ( - (n.domain = function(e) { - if (!arguments.length) return t.slice(); - t = []; - for (var r, o = 0, a = e.length; o < a; ++o) - null == (r = e[o]) || isNaN((r = +r)) || t.push(r); - return t.sort(i), n; - }), - (n.interpolator = function(t) { - return arguments.length ? ((e = t), n) : e; - }), - (n.copy = function() { - return ky(e).domain(t); - }), - Vp.apply(n, arguments) - ); - } - function Ay() { - var t, - e, - n, - r, - i, - o, - a, - s = 0, - u = 0.5, - l = 1, - c = Kp, - f = !1; - function d(t) { - return isNaN((t = +t)) - ? a - : ((t = 0.5 + ((t = +o(t)) - e) * (t < e ? r : i)), - c(f ? Math.max(0, Math.min(1, t)) : t)); - } - return ( - (d.domain = function(a) { - return arguments.length - ? ((t = o((s = +a[0]))), - (e = o((u = +a[1]))), - (n = o((l = +a[2]))), - (r = t === e ? 0 : 0.5 / (e - t)), - (i = e === n ? 0 : 0.5 / (n - e)), - d) - : [s, u, l]; - }), - (d.clamp = function(t) { - return arguments.length ? ((f = !!t), d) : f; - }), - (d.interpolator = function(t) { - return arguments.length ? ((c = t), d) : c; - }), - (d.unknown = function(t) { - return arguments.length ? ((a = t), d) : a; - }), - function(a) { - return ( - (o = a), - (t = a(s)), - (e = a(u)), - (n = a(l)), - (r = t === e ? 0 : 0.5 / (e - t)), - (i = e === n ? 0 : 0.5 / (n - e)), - d - ); - } - ); - } - function Ty() { - var t = ag(Ay()(Kp)); - return ( - (t.copy = function() { - return by(t, Ty()); - }), - Vp.apply(t, arguments) - ); - } - function Cy() { - var t = vg(Ay()).domain([0.1, 1, 10]); - return ( - (t.copy = function() { - return by(t, Cy()).base(t.base()); - }), - Vp.apply(t, arguments) - ); - } - function Oy() { - var t = _g(Ay()); - return ( - (t.copy = function() { - return by(t, Oy()).constant(t.constant()); - }), - Vp.apply(t, arguments) - ); - } - function Py() { - var t = kg(Ay()); - return ( - (t.copy = function() { - return by(t, Py()).exponent(t.exponent()); - }), - Vp.apply(t, arguments) - ); - } - function My() { - return Py.apply(null, arguments).exponent(0.5); - } - var Ly = function(t) { - for (var e = (t.length / 6) | 0, n = new Array(e), r = 0; r < e; ) - n[r] = '#' + t.slice(6 * r, 6 * ++r); - return n; - }, - Dy = Ly('1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf'), - jy = Ly('7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666'), - Ry = Ly('1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666'), - Ny = Ly( - 'a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928' - ), - zy = Ly('fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2'), - Iy = Ly('b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc'), - Fy = Ly('e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999'), - Vy = Ly('66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3'), - By = Ly( - '8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f' - ), - Gy = Ly('4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab'), - Hy = function(t) { - return gn(t[t.length - 1]); - }, - Uy = new Array(3) - .concat( - 'd8b365f5f5f55ab4ac', - 'a6611adfc27d80cdc1018571', - 'a6611adfc27df5f5f580cdc1018571', - '8c510ad8b365f6e8c3c7eae55ab4ac01665e', - '8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e', - '8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e', - '8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e', - '5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30', - '5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30' - ) - .map(Ly), - qy = Hy(Uy), - Wy = new Array(3) - .concat( - 'af8dc3f7f7f77fbf7b', - '7b3294c2a5cfa6dba0008837', - '7b3294c2a5cff7f7f7a6dba0008837', - '762a83af8dc3e7d4e8d9f0d37fbf7b1b7837', - '762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837', - '762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837', - '762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837', - '40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b', - '40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b' - ) - .map(Ly), - Xy = Hy(Wy), - Yy = new Array(3) - .concat( - 'e9a3c9f7f7f7a1d76a', - 'd01c8bf1b6dab8e1864dac26', - 'd01c8bf1b6daf7f7f7b8e1864dac26', - 'c51b7de9a3c9fde0efe6f5d0a1d76a4d9221', - 'c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221', - 'c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221', - 'c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221', - '8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419', - '8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419' - ) - .map(Ly), - $y = Hy(Yy), - Qy = new Array(3) - .concat( - '998ec3f7f7f7f1a340', - '5e3c99b2abd2fdb863e66101', - '5e3c99b2abd2f7f7f7fdb863e66101', - '542788998ec3d8daebfee0b6f1a340b35806', - '542788998ec3d8daebf7f7f7fee0b6f1a340b35806', - '5427888073acb2abd2d8daebfee0b6fdb863e08214b35806', - '5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806', - '2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08', - '2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08' - ) - .map(Ly), - Ky = Hy(Qy), - Zy = new Array(3) - .concat( - 'ef8a62f7f7f767a9cf', - 'ca0020f4a58292c5de0571b0', - 'ca0020f4a582f7f7f792c5de0571b0', - 'b2182bef8a62fddbc7d1e5f067a9cf2166ac', - 'b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac', - 'b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac', - 'b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac', - '67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061', - '67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061' - ) - .map(Ly), - Jy = Hy(Zy), - tb = new Array(3) - .concat( - 'ef8a62ffffff999999', - 'ca0020f4a582bababa404040', - 'ca0020f4a582ffffffbababa404040', - 'b2182bef8a62fddbc7e0e0e09999994d4d4d', - 'b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d', - 'b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d', - 'b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d', - '67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a', - '67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a' - ) - .map(Ly), - eb = Hy(tb), - nb = new Array(3) - .concat( - 'fc8d59ffffbf91bfdb', - 'd7191cfdae61abd9e92c7bb6', - 'd7191cfdae61ffffbfabd9e92c7bb6', - 'd73027fc8d59fee090e0f3f891bfdb4575b4', - 'd73027fc8d59fee090ffffbfe0f3f891bfdb4575b4', - 'd73027f46d43fdae61fee090e0f3f8abd9e974add14575b4', - 'd73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4', - 'a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695', - 'a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695' - ) - .map(Ly), - rb = Hy(nb), - ib = new Array(3) - .concat( - 'fc8d59ffffbf91cf60', - 'd7191cfdae61a6d96a1a9641', - 'd7191cfdae61ffffbfa6d96a1a9641', - 'd73027fc8d59fee08bd9ef8b91cf601a9850', - 'd73027fc8d59fee08bffffbfd9ef8b91cf601a9850', - 'd73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850', - 'd73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850', - 'a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837', - 'a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837' - ) - .map(Ly), - ob = Hy(ib), - ab = new Array(3) - .concat( - 'fc8d59ffffbf99d594', - 'd7191cfdae61abdda42b83ba', - 'd7191cfdae61ffffbfabdda42b83ba', - 'd53e4ffc8d59fee08be6f59899d5943288bd', - 'd53e4ffc8d59fee08bffffbfe6f59899d5943288bd', - 'd53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd', - 'd53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd', - '9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2', - '9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2' - ) - .map(Ly), - sb = Hy(ab), - ub = new Array(3) - .concat( - 'e5f5f999d8c92ca25f', - 'edf8fbb2e2e266c2a4238b45', - 'edf8fbb2e2e266c2a42ca25f006d2c', - 'edf8fbccece699d8c966c2a42ca25f006d2c', - 'edf8fbccece699d8c966c2a441ae76238b45005824', - 'f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824', - 'f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b' - ) - .map(Ly), - lb = Hy(ub), - cb = new Array(3) - .concat( - 'e0ecf49ebcda8856a7', - 'edf8fbb3cde38c96c688419d', - 'edf8fbb3cde38c96c68856a7810f7c', - 'edf8fbbfd3e69ebcda8c96c68856a7810f7c', - 'edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b', - 'f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b', - 'f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b' - ) - .map(Ly), - fb = Hy(cb), - db = new Array(3) - .concat( - 'e0f3dba8ddb543a2ca', - 'f0f9e8bae4bc7bccc42b8cbe', - 'f0f9e8bae4bc7bccc443a2ca0868ac', - 'f0f9e8ccebc5a8ddb57bccc443a2ca0868ac', - 'f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e', - 'f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e', - 'f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081' - ) - .map(Ly), - hb = Hy(db), - pb = new Array(3) - .concat( - 'fee8c8fdbb84e34a33', - 'fef0d9fdcc8afc8d59d7301f', - 'fef0d9fdcc8afc8d59e34a33b30000', - 'fef0d9fdd49efdbb84fc8d59e34a33b30000', - 'fef0d9fdd49efdbb84fc8d59ef6548d7301f990000', - 'fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000', - 'fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000' - ) - .map(Ly), - gb = Hy(pb), - vb = new Array(3) - .concat( - 'ece2f0a6bddb1c9099', - 'f6eff7bdc9e167a9cf02818a', - 'f6eff7bdc9e167a9cf1c9099016c59', - 'f6eff7d0d1e6a6bddb67a9cf1c9099016c59', - 'f6eff7d0d1e6a6bddb67a9cf3690c002818a016450', - 'fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450', - 'fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636' - ) - .map(Ly), - mb = Hy(vb), - yb = new Array(3) - .concat( - 'ece7f2a6bddb2b8cbe', - 'f1eef6bdc9e174a9cf0570b0', - 'f1eef6bdc9e174a9cf2b8cbe045a8d', - 'f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d', - 'f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b', - 'fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b', - 'fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858' - ) - .map(Ly), - bb = Hy(yb), - _b = new Array(3) - .concat( - 'e7e1efc994c7dd1c77', - 'f1eef6d7b5d8df65b0ce1256', - 'f1eef6d7b5d8df65b0dd1c77980043', - 'f1eef6d4b9dac994c7df65b0dd1c77980043', - 'f1eef6d4b9dac994c7df65b0e7298ace125691003f', - 'f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f', - 'f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f' - ) - .map(Ly), - xb = Hy(_b), - wb = new Array(3) - .concat( - 'fde0ddfa9fb5c51b8a', - 'feebe2fbb4b9f768a1ae017e', - 'feebe2fbb4b9f768a1c51b8a7a0177', - 'feebe2fcc5c0fa9fb5f768a1c51b8a7a0177', - 'feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177', - 'fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177', - 'fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a' - ) - .map(Ly), - Sb = Hy(wb), - Eb = new Array(3) - .concat( - 'edf8b17fcdbb2c7fb8', - 'ffffcca1dab441b6c4225ea8', - 'ffffcca1dab441b6c42c7fb8253494', - 'ffffccc7e9b47fcdbb41b6c42c7fb8253494', - 'ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84', - 'ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84', - 'ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58' - ) - .map(Ly), - kb = Hy(Eb), - Ab = new Array(3) - .concat( - 'f7fcb9addd8e31a354', - 'ffffccc2e69978c679238443', - 'ffffccc2e69978c67931a354006837', - 'ffffccd9f0a3addd8e78c67931a354006837', - 'ffffccd9f0a3addd8e78c67941ab5d238443005a32', - 'ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32', - 'ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529' - ) - .map(Ly), - Tb = Hy(Ab), - Cb = new Array(3) - .concat( - 'fff7bcfec44fd95f0e', - 'ffffd4fed98efe9929cc4c02', - 'ffffd4fed98efe9929d95f0e993404', - 'ffffd4fee391fec44ffe9929d95f0e993404', - 'ffffd4fee391fec44ffe9929ec7014cc4c028c2d04', - 'ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04', - 'ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506' - ) - .map(Ly), - Ob = Hy(Cb), - Pb = new Array(3) - .concat( - 'ffeda0feb24cf03b20', - 'ffffb2fecc5cfd8d3ce31a1c', - 'ffffb2fecc5cfd8d3cf03b20bd0026', - 'ffffb2fed976feb24cfd8d3cf03b20bd0026', - 'ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026', - 'ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026', - 'ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026' - ) - .map(Ly), - Mb = Hy(Pb), - Lb = new Array(3) - .concat( - 'deebf79ecae13182bd', - 'eff3ffbdd7e76baed62171b5', - 'eff3ffbdd7e76baed63182bd08519c', - 'eff3ffc6dbef9ecae16baed63182bd08519c', - 'eff3ffc6dbef9ecae16baed64292c62171b5084594', - 'f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594', - 'f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b' - ) - .map(Ly), - Db = Hy(Lb), - jb = new Array(3) - .concat( - 'e5f5e0a1d99b31a354', - 'edf8e9bae4b374c476238b45', - 'edf8e9bae4b374c47631a354006d2c', - 'edf8e9c7e9c0a1d99b74c47631a354006d2c', - 'edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32', - 'f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32', - 'f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b' - ) - .map(Ly), - Rb = Hy(jb), - Nb = new Array(3) - .concat( - 'f0f0f0bdbdbd636363', - 'f7f7f7cccccc969696525252', - 'f7f7f7cccccc969696636363252525', - 'f7f7f7d9d9d9bdbdbd969696636363252525', - 'f7f7f7d9d9d9bdbdbd969696737373525252252525', - 'fffffff0f0f0d9d9d9bdbdbd969696737373525252252525', - 'fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000' - ) - .map(Ly), - zb = Hy(Nb), - Ib = new Array(3) - .concat( - 'efedf5bcbddc756bb1', - 'f2f0f7cbc9e29e9ac86a51a3', - 'f2f0f7cbc9e29e9ac8756bb154278f', - 'f2f0f7dadaebbcbddc9e9ac8756bb154278f', - 'f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486', - 'fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486', - 'fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d' - ) - .map(Ly), - Fb = Hy(Ib), - Vb = new Array(3) - .concat( - 'fee0d2fc9272de2d26', - 'fee5d9fcae91fb6a4acb181d', - 'fee5d9fcae91fb6a4ade2d26a50f15', - 'fee5d9fcbba1fc9272fb6a4ade2d26a50f15', - 'fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d', - 'fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d', - 'fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d' - ) - .map(Ly), - Bb = Hy(Vb), - Gb = new Array(3) - .concat( - 'fee6cefdae6be6550d', - 'feeddefdbe85fd8d3cd94701', - 'feeddefdbe85fd8d3ce6550da63603', - 'feeddefdd0a2fdae6bfd8d3ce6550da63603', - 'feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04', - 'fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04', - 'fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704' - ) - .map(Ly), - Hb = Hy(Gb), - Ub = function(t) { - return ( - (t = Math.max(0, Math.min(1, t))), - 'rgb(' + - Math.max( - 0, - Math.min( - 255, - Math.round( - -4.54 - - t * - (35.34 - - t * - (2381.73 - - t * (6402.7 - t * (7024.72 - 2710.57 * t)))) - ) - ) - ) + - ', ' + - Math.max( - 0, - Math.min( - 255, - Math.round( - 32.49 + - t * - (170.73 + - t * (52.82 - t * (131.46 - t * (176.58 - 67.37 * t)))) - ) - ) - ) + - ', ' + - Math.max( - 0, - Math.min( - 255, - Math.round( - 81.24 + - t * - (442.36 - - t * - (2482.43 - - t * (6167.24 - t * (6614.94 - 2475.67 * t)))) - ) - ) - ) + - ')' - ); - }, - qb = wp(Lo(300, 0.5, 0), Lo(-240, 0.5, 1)), - Wb = wp(Lo(-100, 0.75, 0.35), Lo(80, 1.5, 0.8)), - Xb = wp(Lo(260, 0.75, 0.35), Lo(80, 1.5, 0.8)), - Yb = Lo(), - $b = function(t) { - (t < 0 || t > 1) && (t -= Math.floor(t)); - var e = Math.abs(t - 0.5); - return ( - (Yb.h = 360 * t - 100), - (Yb.s = 1.5 - 1.5 * e), - (Yb.l = 0.8 - 0.9 * e), - Yb + '' - ); - }, - Qb = Ye(), - Kb = Math.PI / 3, - Zb = (2 * Math.PI) / 3, - Jb = function(t) { - var e; - return ( - (t = (0.5 - t) * Math.PI), - (Qb.r = 255 * (e = Math.sin(t)) * e), - (Qb.g = 255 * (e = Math.sin(t + Kb)) * e), - (Qb.b = 255 * (e = Math.sin(t + Zb)) * e), - Qb + '' - ); - }, - t_ = function(t) { - return ( - (t = Math.max(0, Math.min(1, t))), - 'rgb(' + - Math.max( - 0, - Math.min( - 255, - Math.round( - 34.61 + - t * - (1172.33 - - t * - (10793.56 - - t * (33300.12 - t * (38394.49 - 14825.05 * t)))) - ) - ) - ) + - ', ' + - Math.max( - 0, - Math.min( - 255, - Math.round( - 23.31 + - t * - (557.33 + - t * - (1225.33 - - t * (3574.96 - t * (1073.77 + 707.56 * t)))) - ) - ) - ) + - ', ' + - Math.max( - 0, - Math.min( - 255, - Math.round( - 27.2 + - t * - (3211.1 - - t * - (15327.97 - - t * (27814 - t * (22569.18 - 6838.66 * t)))) - ) - ) - ) + - ')' - ); - }; - function e_(t) { - var e = t.length; - return function(n) { - return t[Math.max(0, Math.min(e - 1, Math.floor(n * e)))]; - }; - } - var n_ = e_( - Ly( - '44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725' - ) - ), - r_ = e_( - Ly( - '00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf' - ) - ), - i_ = e_( - Ly( - '00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4' - ) - ), - o_ = e_( - Ly( - '0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921' - ) - ), - a_ = function(t) { - return Se(re(t).call(document.documentElement)); - }, - s_ = 0; - function u_() { - return new l_(); - } - function l_() { - this._ = '@' + (++s_).toString(36); - } - l_.prototype = u_.prototype = { - constructor: l_, - get: function(t) { - for (var e = this._; !(e in t); ) if (!(t = t.parentNode)) return; - return t[e]; - }, - set: function(t, e) { - return (t[this._] = e); - }, - remove: function(t) { - return this._ in t && delete t[this._]; - }, - toString: function() { - return this._; - } - }; - var c_ = function(t) { - return 'string' == typeof t - ? new _e([document.querySelectorAll(t)], [document.documentElement]) - : new _e([null == t ? [] : t], be); - }, - f_ = function(t, e) { - null == e && (e = Pn().touches); - for (var n = 0, r = e ? e.length : 0, i = new Array(r); n < r; ++n) - i[n] = Mn(t, e[n]); - return i; - }, - d_ = function(t) { - return function() { - return t; - }; - }, - h_ = Math.abs, - p_ = Math.atan2, - g_ = Math.cos, - v_ = Math.max, - m_ = Math.min, - y_ = Math.sin, - b_ = Math.sqrt, - __ = Math.PI, - x_ = __ / 2, - w_ = 2 * __; - function S_(t) { - return t > 1 ? 0 : t < -1 ? __ : Math.acos(t); - } - function E_(t) { - return t >= 1 ? x_ : t <= -1 ? -x_ : Math.asin(t); - } - function k_(t) { - return t.innerRadius; - } - function A_(t) { - return t.outerRadius; - } - function T_(t) { - return t.startAngle; - } - function C_(t) { - return t.endAngle; - } - function O_(t) { - return t && t.padAngle; - } - function P_(t, e, n, r, i, o, a, s) { - var u = n - t, - l = r - e, - c = a - i, - f = s - o, - d = f * u - c * l; - if (!(d * d < 1e-12)) - return [t + (d = (c * (e - o) - f * (t - i)) / d) * u, e + d * l]; - } - function M_(t, e, n, r, i, o, a) { - var s = t - n, - u = e - r, - l = (a ? o : -o) / b_(s * s + u * u), - c = l * u, - f = -l * s, - d = t + c, - h = e + f, - p = n + c, - g = r + f, - v = (d + p) / 2, - m = (h + g) / 2, - y = p - d, - b = g - h, - _ = y * y + b * b, - x = i - o, - w = d * g - p * h, - S = (b < 0 ? -1 : 1) * b_(v_(0, x * x * _ - w * w)), - E = (w * b - y * S) / _, - k = (-w * y - b * S) / _, - A = (w * b + y * S) / _, - T = (-w * y + b * S) / _, - C = E - v, - O = k - m, - P = A - v, - M = T - m; - return ( - C * C + O * O > P * P + M * M && ((E = A), (k = T)), - { - cx: E, - cy: k, - x01: -c, - y01: -f, - x11: E * (i / x - 1), - y11: k * (i / x - 1) - } - ); - } - var L_ = function() { - var t = k_, - e = A_, - n = d_(0), - r = null, - i = T_, - o = C_, - a = O_, - s = null; - function u() { - var u, - l, - c = +t.apply(this, arguments), - f = +e.apply(this, arguments), - d = i.apply(this, arguments) - x_, - h = o.apply(this, arguments) - x_, - p = h_(h - d), - g = h > d; - if ( - (s || (s = u = Hi()), - f < c && ((l = f), (f = c), (c = l)), - f > 1e-12) - ) - if (p > w_ - 1e-12) - s.moveTo(f * g_(d), f * y_(d)), - s.arc(0, 0, f, d, h, !g), - c > 1e-12 && - (s.moveTo(c * g_(h), c * y_(h)), s.arc(0, 0, c, h, d, g)); - else { - var v, - m, - y = d, - b = h, - _ = d, - x = h, - w = p, - S = p, - E = a.apply(this, arguments) / 2, - k = - E > 1e-12 && - (r ? +r.apply(this, arguments) : b_(c * c + f * f)), - A = m_(h_(f - c) / 2, +n.apply(this, arguments)), - T = A, - C = A; - if (k > 1e-12) { - var O = E_((k / c) * y_(E)), - P = E_((k / f) * y_(E)); - (w -= 2 * O) > 1e-12 - ? ((_ += O *= g ? 1 : -1), (x -= O)) - : ((w = 0), (_ = x = (d + h) / 2)), - (S -= 2 * P) > 1e-12 - ? ((y += P *= g ? 1 : -1), (b -= P)) - : ((S = 0), (y = b = (d + h) / 2)); - } - var M = f * g_(y), - L = f * y_(y), - D = c * g_(x), - j = c * y_(x); - if (A > 1e-12) { - var R, - N = f * g_(b), - z = f * y_(b), - I = c * g_(_), - F = c * y_(_); - if (p < __ && (R = P_(M, L, I, F, N, z, D, j))) { - var V = M - R[0], - B = L - R[1], - G = N - R[0], - H = z - R[1], - U = - 1 / - y_( - S_( - (V * G + B * H) / - (b_(V * V + B * B) * b_(G * G + H * H)) - ) / 2 - ), - q = b_(R[0] * R[0] + R[1] * R[1]); - (T = m_(A, (c - q) / (U - 1))), - (C = m_(A, (f - q) / (U + 1))); - } - } - S > 1e-12 - ? C > 1e-12 - ? ((v = M_(I, F, M, L, f, C, g)), - (m = M_(N, z, D, j, f, C, g)), - s.moveTo(v.cx + v.x01, v.cy + v.y01), - C < A - ? s.arc( - v.cx, - v.cy, - C, - p_(v.y01, v.x01), - p_(m.y01, m.x01), - !g - ) - : (s.arc( - v.cx, - v.cy, - C, - p_(v.y01, v.x01), - p_(v.y11, v.x11), - !g - ), - s.arc( - 0, - 0, - f, - p_(v.cy + v.y11, v.cx + v.x11), - p_(m.cy + m.y11, m.cx + m.x11), - !g - ), - s.arc( - m.cx, - m.cy, - C, - p_(m.y11, m.x11), - p_(m.y01, m.x01), - !g - ))) - : (s.moveTo(M, L), s.arc(0, 0, f, y, b, !g)) - : s.moveTo(M, L), - c > 1e-12 && w > 1e-12 - ? T > 1e-12 - ? ((v = M_(D, j, N, z, c, -T, g)), - (m = M_(M, L, I, F, c, -T, g)), - s.lineTo(v.cx + v.x01, v.cy + v.y01), - T < A - ? s.arc( - v.cx, - v.cy, - T, - p_(v.y01, v.x01), - p_(m.y01, m.x01), - !g - ) - : (s.arc( - v.cx, - v.cy, - T, - p_(v.y01, v.x01), - p_(v.y11, v.x11), - !g - ), - s.arc( - 0, - 0, - c, - p_(v.cy + v.y11, v.cx + v.x11), - p_(m.cy + m.y11, m.cx + m.x11), - g - ), - s.arc( - m.cx, - m.cy, - T, - p_(m.y11, m.x11), - p_(m.y01, m.x01), - !g - ))) - : s.arc(0, 0, c, x, _, g) - : s.lineTo(D, j); - } - else s.moveTo(0, 0); - if ((s.closePath(), u)) return (s = null), u + '' || null; - } - return ( - (u.centroid = function() { - var n = (+t.apply(this, arguments) + +e.apply(this, arguments)) / 2, - r = - (+i.apply(this, arguments) + +o.apply(this, arguments)) / 2 - - __ / 2; - return [g_(r) * n, y_(r) * n]; - }), - (u.innerRadius = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : d_(+e)), u) - : t; - }), - (u.outerRadius = function(t) { - return arguments.length - ? ((e = 'function' == typeof t ? t : d_(+t)), u) - : e; - }), - (u.cornerRadius = function(t) { - return arguments.length - ? ((n = 'function' == typeof t ? t : d_(+t)), u) - : n; - }), - (u.padRadius = function(t) { - return arguments.length - ? ((r = null == t ? null : 'function' == typeof t ? t : d_(+t)), - u) - : r; - }), - (u.startAngle = function(t) { - return arguments.length - ? ((i = 'function' == typeof t ? t : d_(+t)), u) - : i; - }), - (u.endAngle = function(t) { - return arguments.length - ? ((o = 'function' == typeof t ? t : d_(+t)), u) - : o; - }), - (u.padAngle = function(t) { - return arguments.length - ? ((a = 'function' == typeof t ? t : d_(+t)), u) - : a; - }), - (u.context = function(t) { - return arguments.length ? ((s = null == t ? null : t), u) : s; - }), - u - ); - }; - function D_(t) { - this._context = t; - } - D_.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(t, e) { - switch (((t = +t), (e = +e), this._point)) { - case 0: - (this._point = 1), - this._line - ? this._context.lineTo(t, e) - : this._context.moveTo(t, e); - break; - case 1: - this._point = 2; - default: - this._context.lineTo(t, e); - } - } - }; - var j_ = function(t) { - return new D_(t); - }; - function R_(t) { - return t[0]; - } - function N_(t) { - return t[1]; - } - var z_ = function() { - var t = R_, - e = N_, - n = d_(!0), - r = null, - i = j_, - o = null; - function a(a) { - var s, - u, - l, - c = a.length, - f = !1; - for (null == r && (o = i((l = Hi()))), s = 0; s <= c; ++s) - !(s < c && n((u = a[s]), s, a)) === f && - ((f = !f) ? o.lineStart() : o.lineEnd()), - f && o.point(+t(u, s, a), +e(u, s, a)); - if (l) return (o = null), l + '' || null; - } - return ( - (a.x = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : d_(+e)), a) - : t; - }), - (a.y = function(t) { - return arguments.length - ? ((e = 'function' == typeof t ? t : d_(+t)), a) - : e; - }), - (a.defined = function(t) { - return arguments.length - ? ((n = 'function' == typeof t ? t : d_(!!t)), a) - : n; - }), - (a.curve = function(t) { - return arguments.length - ? ((i = t), null != r && (o = i(r)), a) - : i; - }), - (a.context = function(t) { - return arguments.length - ? (null == t ? (r = o = null) : (o = i((r = t))), a) - : r; - }), - a - ); - }, - I_ = function() { - var t = R_, - e = null, - n = d_(0), - r = N_, - i = d_(!0), - o = null, - a = j_, - s = null; - function u(u) { - var l, - c, - f, - d, - h, - p = u.length, - g = !1, - v = new Array(p), - m = new Array(p); - for (null == o && (s = a((h = Hi()))), l = 0; l <= p; ++l) { - if (!(l < p && i((d = u[l]), l, u)) === g) - if ((g = !g)) (c = l), s.areaStart(), s.lineStart(); - else { - for (s.lineEnd(), s.lineStart(), f = l - 1; f >= c; --f) - s.point(v[f], m[f]); - s.lineEnd(), s.areaEnd(); - } - g && - ((v[l] = +t(d, l, u)), - (m[l] = +n(d, l, u)), - s.point(e ? +e(d, l, u) : v[l], r ? +r(d, l, u) : m[l])); - } - if (h) return (s = null), h + '' || null; - } - function l() { - return z_() - .defined(i) - .curve(a) - .context(o); - } - return ( - (u.x = function(n) { - return arguments.length - ? ((t = 'function' == typeof n ? n : d_(+n)), (e = null), u) - : t; - }), - (u.x0 = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : d_(+e)), u) - : t; - }), - (u.x1 = function(t) { - return arguments.length - ? ((e = null == t ? null : 'function' == typeof t ? t : d_(+t)), - u) - : e; - }), - (u.y = function(t) { - return arguments.length - ? ((n = 'function' == typeof t ? t : d_(+t)), (r = null), u) - : n; - }), - (u.y0 = function(t) { - return arguments.length - ? ((n = 'function' == typeof t ? t : d_(+t)), u) - : n; - }), - (u.y1 = function(t) { - return arguments.length - ? ((r = null == t ? null : 'function' == typeof t ? t : d_(+t)), - u) - : r; - }), - (u.lineX0 = u.lineY0 = function() { - return l() - .x(t) - .y(n); - }), - (u.lineY1 = function() { - return l() - .x(t) - .y(r); - }), - (u.lineX1 = function() { - return l() - .x(e) - .y(n); - }), - (u.defined = function(t) { - return arguments.length - ? ((i = 'function' == typeof t ? t : d_(!!t)), u) - : i; - }), - (u.curve = function(t) { - return arguments.length - ? ((a = t), null != o && (s = a(o)), u) - : a; - }), - (u.context = function(t) { - return arguments.length - ? (null == t ? (o = s = null) : (s = a((o = t))), u) - : o; - }), - u - ); - }, - F_ = function(t, e) { - return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN; - }, - V_ = function(t) { - return t; - }, - B_ = function() { - var t = V_, - e = F_, - n = null, - r = d_(0), - i = d_(w_), - o = d_(0); - function a(a) { - var s, - u, - l, - c, - f, - d = a.length, - h = 0, - p = new Array(d), - g = new Array(d), - v = +r.apply(this, arguments), - m = Math.min(w_, Math.max(-w_, i.apply(this, arguments) - v)), - y = Math.min(Math.abs(m) / d, o.apply(this, arguments)), - b = y * (m < 0 ? -1 : 1); - for (s = 0; s < d; ++s) - (f = g[(p[s] = s)] = +t(a[s], s, a)) > 0 && (h += f); - for ( - null != e - ? p.sort(function(t, n) { - return e(g[t], g[n]); - }) - : null != n && - p.sort(function(t, e) { - return n(a[t], a[e]); - }), - s = 0, - l = h ? (m - d * b) / h : 0; - s < d; - ++s, v = c - ) - (u = p[s]), - (c = v + ((f = g[u]) > 0 ? f * l : 0) + b), - (g[u] = { - data: a[u], - index: s, - value: f, - startAngle: v, - endAngle: c, - padAngle: y - }); - return g; - } - return ( - (a.value = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : d_(+e)), a) - : t; - }), - (a.sortValues = function(t) { - return arguments.length ? ((e = t), (n = null), a) : e; - }), - (a.sort = function(t) { - return arguments.length ? ((n = t), (e = null), a) : n; - }), - (a.startAngle = function(t) { - return arguments.length - ? ((r = 'function' == typeof t ? t : d_(+t)), a) - : r; - }), - (a.endAngle = function(t) { - return arguments.length - ? ((i = 'function' == typeof t ? t : d_(+t)), a) - : i; - }), - (a.padAngle = function(t) { - return arguments.length - ? ((o = 'function' == typeof t ? t : d_(+t)), a) - : o; - }), - a - ); - }, - G_ = U_(j_); - function H_(t) { - this._curve = t; - } - function U_(t) { - function e(e) { - return new H_(t(e)); - } - return (e._curve = t), e; - } - function q_(t) { - var e = t.curve; - return ( - (t.angle = t.x), - delete t.x, - (t.radius = t.y), - delete t.y, - (t.curve = function(t) { - return arguments.length ? e(U_(t)) : e()._curve; - }), - t - ); - } - H_.prototype = { - areaStart: function() { - this._curve.areaStart(); - }, - areaEnd: function() { - this._curve.areaEnd(); - }, - lineStart: function() { - this._curve.lineStart(); - }, - lineEnd: function() { - this._curve.lineEnd(); - }, - point: function(t, e) { - this._curve.point(e * Math.sin(t), e * -Math.cos(t)); - } - }; - var W_ = function() { - return q_(z_().curve(G_)); - }, - X_ = function() { - var t = I_().curve(G_), - e = t.curve, - n = t.lineX0, - r = t.lineX1, - i = t.lineY0, - o = t.lineY1; - return ( - (t.angle = t.x), - delete t.x, - (t.startAngle = t.x0), - delete t.x0, - (t.endAngle = t.x1), - delete t.x1, - (t.radius = t.y), - delete t.y, - (t.innerRadius = t.y0), - delete t.y0, - (t.outerRadius = t.y1), - delete t.y1, - (t.lineStartAngle = function() { - return q_(n()); - }), - delete t.lineX0, - (t.lineEndAngle = function() { - return q_(r()); - }), - delete t.lineX1, - (t.lineInnerRadius = function() { - return q_(i()); - }), - delete t.lineY0, - (t.lineOuterRadius = function() { - return q_(o()); - }), - delete t.lineY1, - (t.curve = function(t) { - return arguments.length ? e(U_(t)) : e()._curve; - }), - t - ); - }, - Y_ = function(t, e) { - return [(e = +e) * Math.cos((t -= Math.PI / 2)), e * Math.sin(t)]; - }, - $_ = Array.prototype.slice; - function Q_(t) { - return t.source; - } - function K_(t) { - return t.target; - } - function Z_(t) { - var e = Q_, - n = K_, - r = R_, - i = N_, - o = null; - function a() { - var a, - s = $_.call(arguments), - u = e.apply(this, s), - l = n.apply(this, s); - if ( - (o || (o = a = Hi()), - t( - o, - +r.apply(this, ((s[0] = u), s)), - +i.apply(this, s), - +r.apply(this, ((s[0] = l), s)), - +i.apply(this, s) - ), - a) - ) - return (o = null), a + '' || null; - } - return ( - (a.source = function(t) { - return arguments.length ? ((e = t), a) : e; - }), - (a.target = function(t) { - return arguments.length ? ((n = t), a) : n; - }), - (a.x = function(t) { - return arguments.length - ? ((r = 'function' == typeof t ? t : d_(+t)), a) - : r; - }), - (a.y = function(t) { - return arguments.length - ? ((i = 'function' == typeof t ? t : d_(+t)), a) - : i; - }), - (a.context = function(t) { - return arguments.length ? ((o = null == t ? null : t), a) : o; - }), - a - ); - } - function J_(t, e, n, r, i) { - t.moveTo(e, n), t.bezierCurveTo((e = (e + r) / 2), n, e, i, r, i); - } - function tx(t, e, n, r, i) { - t.moveTo(e, n), t.bezierCurveTo(e, (n = (n + i) / 2), r, n, r, i); - } - function ex(t, e, n, r, i) { - var o = Y_(e, n), - a = Y_(e, (n = (n + i) / 2)), - s = Y_(r, n), - u = Y_(r, i); - t.moveTo(o[0], o[1]), - t.bezierCurveTo(a[0], a[1], s[0], s[1], u[0], u[1]); - } - function nx() { - return Z_(J_); - } - function rx() { - return Z_(tx); - } - function ix() { - var t = Z_(ex); - return (t.angle = t.x), delete t.x, (t.radius = t.y), delete t.y, t; - } - var ox = { - draw: function(t, e) { - var n = Math.sqrt(e / __); - t.moveTo(n, 0), t.arc(0, 0, n, 0, w_); - } - }, - ax = { - draw: function(t, e) { - var n = Math.sqrt(e / 5) / 2; - t.moveTo(-3 * n, -n), - t.lineTo(-n, -n), - t.lineTo(-n, -3 * n), - t.lineTo(n, -3 * n), - t.lineTo(n, -n), - t.lineTo(3 * n, -n), - t.lineTo(3 * n, n), - t.lineTo(n, n), - t.lineTo(n, 3 * n), - t.lineTo(-n, 3 * n), - t.lineTo(-n, n), - t.lineTo(-3 * n, n), - t.closePath(); - } - }, - sx = Math.sqrt(1 / 3), - ux = 2 * sx, - lx = { - draw: function(t, e) { - var n = Math.sqrt(e / ux), - r = n * sx; - t.moveTo(0, -n), - t.lineTo(r, 0), - t.lineTo(0, n), - t.lineTo(-r, 0), - t.closePath(); - } - }, - cx = Math.sin(__ / 10) / Math.sin((7 * __) / 10), - fx = Math.sin(w_ / 10) * cx, - dx = -Math.cos(w_ / 10) * cx, - hx = { - draw: function(t, e) { - var n = Math.sqrt(0.8908130915292852 * e), - r = fx * n, - i = dx * n; - t.moveTo(0, -n), t.lineTo(r, i); - for (var o = 1; o < 5; ++o) { - var a = (w_ * o) / 5, - s = Math.cos(a), - u = Math.sin(a); - t.lineTo(u * n, -s * n), t.lineTo(s * r - u * i, u * r + s * i); - } - t.closePath(); - } - }, - px = { - draw: function(t, e) { - var n = Math.sqrt(e), - r = -n / 2; - t.rect(r, r, n, n); - } - }, - gx = Math.sqrt(3), - vx = { - draw: function(t, e) { - var n = -Math.sqrt(e / (3 * gx)); - t.moveTo(0, 2 * n), - t.lineTo(-gx * n, -n), - t.lineTo(gx * n, -n), - t.closePath(); - } - }, - mx = Math.sqrt(3) / 2, - yx = 1 / Math.sqrt(12), - bx = 3 * (yx / 2 + 1), - _x = { - draw: function(t, e) { - var n = Math.sqrt(e / bx), - r = n / 2, - i = n * yx, - o = r, - a = n * yx + n, - s = -o, - u = a; - t.moveTo(r, i), - t.lineTo(o, a), - t.lineTo(s, u), - t.lineTo(-0.5 * r - mx * i, mx * r + -0.5 * i), - t.lineTo(-0.5 * o - mx * a, mx * o + -0.5 * a), - t.lineTo(-0.5 * s - mx * u, mx * s + -0.5 * u), - t.lineTo(-0.5 * r + mx * i, -0.5 * i - mx * r), - t.lineTo(-0.5 * o + mx * a, -0.5 * a - mx * o), - t.lineTo(-0.5 * s + mx * u, -0.5 * u - mx * s), - t.closePath(); - } - }, - xx = [ox, ax, lx, px, hx, vx, _x], - wx = function() { - var t = d_(ox), - e = d_(64), - n = null; - function r() { - var r; - if ( - (n || (n = r = Hi()), - t.apply(this, arguments).draw(n, +e.apply(this, arguments)), - r) - ) - return (n = null), r + '' || null; - } - return ( - (r.type = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : d_(e)), r) - : t; - }), - (r.size = function(t) { - return arguments.length - ? ((e = 'function' == typeof t ? t : d_(+t)), r) - : e; - }), - (r.context = function(t) { - return arguments.length ? ((n = null == t ? null : t), r) : n; - }), - r - ); - }, - Sx = function() {}; - function Ex(t, e, n) { - t._context.bezierCurveTo( - (2 * t._x0 + t._x1) / 3, - (2 * t._y0 + t._y1) / 3, - (t._x0 + 2 * t._x1) / 3, - (t._y0 + 2 * t._y1) / 3, - (t._x0 + 4 * t._x1 + e) / 6, - (t._y0 + 4 * t._y1 + n) / 6 - ); - } - function kx(t) { - this._context = t; - } - kx.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: - Ex(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(t, e) { - switch (((t = +t), (e = +e), this._point)) { - case 0: - (this._point = 1), - this._line - ? this._context.lineTo(t, e) - : this._context.moveTo(t, e); - 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: - Ex(this, t, e); - } - (this._x0 = this._x1), - (this._x1 = t), - (this._y0 = this._y1), - (this._y1 = e); - } - }; - var Ax = function(t) { - return new kx(t); - }; - function Tx(t) { - this._context = t; - } - Tx.prototype = { - areaStart: Sx, - areaEnd: Sx, - 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(t, e) { - switch (((t = +t), (e = +e), this._point)) { - case 0: - (this._point = 1), (this._x2 = t), (this._y2 = e); - break; - case 1: - (this._point = 2), (this._x3 = t), (this._y3 = e); - break; - case 2: - (this._point = 3), - (this._x4 = t), - (this._y4 = e), - this._context.moveTo( - (this._x0 + 4 * this._x1 + t) / 6, - (this._y0 + 4 * this._y1 + e) / 6 - ); - break; - default: - Ex(this, t, e); - } - (this._x0 = this._x1), - (this._x1 = t), - (this._y0 = this._y1), - (this._y1 = e); - } - }; - var Cx = function(t) { - return new Tx(t); - }; - function Ox(t) { - this._context = t; - } - Ox.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(t, e) { - switch (((t = +t), (e = +e), 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 + t) / 6, - r = (this._y0 + 4 * this._y1 + e) / 6; - this._line - ? this._context.lineTo(n, r) - : this._context.moveTo(n, r); - break; - case 3: - this._point = 4; - default: - Ex(this, t, e); - } - (this._x0 = this._x1), - (this._x1 = t), - (this._y0 = this._y1), - (this._y1 = e); - } - }; - var Px = function(t) { - return new Ox(t); - }; - function Mx(t, e) { - (this._basis = new kx(t)), (this._beta = e); - } - Mx.prototype = { - lineStart: function() { - (this._x = []), (this._y = []), this._basis.lineStart(); - }, - lineEnd: function() { - var t = this._x, - e = this._y, - n = t.length - 1; - if (n > 0) - for ( - var r, i = t[0], o = e[0], a = t[n] - i, s = e[n] - o, u = -1; - ++u <= n; - - ) - (r = u / n), - this._basis.point( - this._beta * t[u] + (1 - this._beta) * (i + r * a), - this._beta * e[u] + (1 - this._beta) * (o + r * s) - ); - (this._x = this._y = null), this._basis.lineEnd(); - }, - point: function(t, e) { - this._x.push(+t), this._y.push(+e); - } - }; - var Lx = (function t(e) { - function n(t) { - return 1 === e ? new kx(t) : new Mx(t, e); - } - return ( - (n.beta = function(e) { - return t(+e); - }), - n - ); - })(0.85); - function Dx(t, e, n) { - t._context.bezierCurveTo( - t._x1 + t._k * (t._x2 - t._x0), - t._y1 + t._k * (t._y2 - t._y0), - t._x2 + t._k * (t._x1 - e), - t._y2 + t._k * (t._y1 - n), - t._x2, - t._y2 - ); - } - function jx(t, e) { - (this._context = t), (this._k = (1 - e) / 6); - } - jx.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: - Dx(this, this._x1, this._y1); - } - (this._line || (0 !== this._line && 1 === this._point)) && - this._context.closePath(), - (this._line = 1 - this._line); - }, - point: function(t, e) { - switch (((t = +t), (e = +e), this._point)) { - case 0: - (this._point = 1), - this._line - ? this._context.lineTo(t, e) - : this._context.moveTo(t, e); - break; - case 1: - (this._point = 2), (this._x1 = t), (this._y1 = e); - break; - case 2: - this._point = 3; - default: - Dx(this, t, e); - } - (this._x0 = this._x1), - (this._x1 = this._x2), - (this._x2 = t), - (this._y0 = this._y1), - (this._y1 = this._y2), - (this._y2 = e); - } - }; - var Rx = (function t(e) { - function n(t) { - return new jx(t, e); - } - return ( - (n.tension = function(e) { - return t(+e); - }), - n - ); - })(0); - function Nx(t, e) { - (this._context = t), (this._k = (1 - e) / 6); - } - Nx.prototype = { - areaStart: Sx, - areaEnd: Sx, - 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(t, e) { - switch (((t = +t), (e = +e), this._point)) { - case 0: - (this._point = 1), (this._x3 = t), (this._y3 = e); - break; - case 1: - (this._point = 2), - this._context.moveTo((this._x4 = t), (this._y4 = e)); - break; - case 2: - (this._point = 3), (this._x5 = t), (this._y5 = e); - break; - default: - Dx(this, t, e); - } - (this._x0 = this._x1), - (this._x1 = this._x2), - (this._x2 = t), - (this._y0 = this._y1), - (this._y1 = this._y2), - (this._y2 = e); - } - }; - var zx = (function t(e) { - function n(t) { - return new Nx(t, e); - } - return ( - (n.tension = function(e) { - return t(+e); - }), - n - ); - })(0); - function Ix(t, e) { - (this._context = t), (this._k = (1 - e) / 6); - } - Ix.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(t, e) { - switch (((t = +t), (e = +e), 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: - Dx(this, t, e); - } - (this._x0 = this._x1), - (this._x1 = this._x2), - (this._x2 = t), - (this._y0 = this._y1), - (this._y1 = this._y2), - (this._y2 = e); - } - }; - var Fx = (function t(e) { - function n(t) { - return new Ix(t, e); - } - return ( - (n.tension = function(e) { - return t(+e); - }), - n - ); - })(0); - function Vx(t, e, n) { - var r = t._x1, - i = t._y1, - o = t._x2, - a = t._y2; - if (t._l01_a > 1e-12) { - var s = 2 * t._l01_2a + 3 * t._l01_a * t._l12_a + t._l12_2a, - u = 3 * t._l01_a * (t._l01_a + t._l12_a); - (r = (r * s - t._x0 * t._l12_2a + t._x2 * t._l01_2a) / u), - (i = (i * s - t._y0 * t._l12_2a + t._y2 * t._l01_2a) / u); - } - if (t._l23_a > 1e-12) { - var l = 2 * t._l23_2a + 3 * t._l23_a * t._l12_a + t._l12_2a, - c = 3 * t._l23_a * (t._l23_a + t._l12_a); - (o = (o * l + t._x1 * t._l23_2a - e * t._l12_2a) / c), - (a = (a * l + t._y1 * t._l23_2a - n * t._l12_2a) / c); - } - t._context.bezierCurveTo(r, i, o, a, t._x2, t._y2); - } - function Bx(t, e) { - (this._context = t), (this._alpha = e); - } - Bx.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(t, e) { - if (((t = +t), (e = +e), this._point)) { - var n = this._x2 - t, - r = this._y2 - e; - 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(t, e) - : this._context.moveTo(t, e); - break; - case 1: - this._point = 2; - break; - case 2: - this._point = 3; - default: - Vx(this, t, e); - } - (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 = t), - (this._y0 = this._y1), - (this._y1 = this._y2), - (this._y2 = e); - } - }; - var Gx = (function t(e) { - function n(t) { - return e ? new Bx(t, e) : new jx(t, 0); - } - return ( - (n.alpha = function(e) { - return t(+e); - }), - n - ); - })(0.5); - function Hx(t, e) { - (this._context = t), (this._alpha = e); - } - Hx.prototype = { - areaStart: Sx, - areaEnd: Sx, - 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(t, e) { - if (((t = +t), (e = +e), this._point)) { - var n = this._x2 - t, - r = this._y2 - e; - 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 = t), (this._y3 = e); - break; - case 1: - (this._point = 2), - this._context.moveTo((this._x4 = t), (this._y4 = e)); - break; - case 2: - (this._point = 3), (this._x5 = t), (this._y5 = e); - break; - default: - Vx(this, t, e); - } - (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 = t), - (this._y0 = this._y1), - (this._y1 = this._y2), - (this._y2 = e); - } - }; - var Ux = (function t(e) { - function n(t) { - return e ? new Hx(t, e) : new Nx(t, 0); - } - return ( - (n.alpha = function(e) { - return t(+e); - }), - n - ); - })(0.5); - function qx(t, e) { - (this._context = t), (this._alpha = e); - } - qx.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(t, e) { - if (((t = +t), (e = +e), this._point)) { - var n = this._x2 - t, - r = this._y2 - e; - 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: - Vx(this, t, e); - } - (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 = t), - (this._y0 = this._y1), - (this._y1 = this._y2), - (this._y2 = e); - } - }; - var Wx = (function t(e) { - function n(t) { - return e ? new qx(t, e) : new Ix(t, 0); - } - return ( - (n.alpha = function(e) { - return t(+e); - }), - n - ); - })(0.5); - function Xx(t) { - this._context = t; - } - Xx.prototype = { - areaStart: Sx, - areaEnd: Sx, - lineStart: function() { - this._point = 0; - }, - lineEnd: function() { - this._point && this._context.closePath(); - }, - point: function(t, e) { - (t = +t), - (e = +e), - this._point - ? this._context.lineTo(t, e) - : ((this._point = 1), this._context.moveTo(t, e)); - } - }; - var Yx = function(t) { - return new Xx(t); - }; - function $x(t) { - return t < 0 ? -1 : 1; - } - function Qx(t, e, n) { - var r = t._x1 - t._x0, - i = e - t._x1, - o = (t._y1 - t._y0) / (r || (i < 0 && -0)), - a = (n - t._y1) / (i || (r < 0 && -0)), - s = (o * i + a * r) / (r + i); - return ( - ($x(o) + $x(a)) * - Math.min(Math.abs(o), Math.abs(a), 0.5 * Math.abs(s)) || 0 - ); - } - function Kx(t, e) { - var n = t._x1 - t._x0; - return n ? ((3 * (t._y1 - t._y0)) / n - e) / 2 : e; - } - function Zx(t, e, n) { - var r = t._x0, - i = t._y0, - o = t._x1, - a = t._y1, - s = (o - r) / 3; - t._context.bezierCurveTo(r + s, i + s * e, o - s, a - s * n, o, a); - } - function Jx(t) { - this._context = t; - } - function tw(t) { - this._context = new ew(t); - } - function ew(t) { - this._context = t; - } - function nw(t) { - return new Jx(t); - } - function rw(t) { - return new tw(t); - } - function iw(t) { - this._context = t; - } - function ow(t) { - var e, - n, - r = t.length - 1, - i = new Array(r), - o = new Array(r), - a = new Array(r); - for (i[0] = 0, o[0] = 2, a[0] = t[0] + 2 * t[1], e = 1; e < r - 1; ++e) - (i[e] = 1), (o[e] = 4), (a[e] = 4 * t[e] + 2 * t[e + 1]); - for ( - i[r - 1] = 2, o[r - 1] = 7, a[r - 1] = 8 * t[r - 1] + t[r], e = 1; - e < r; - ++e - ) - (n = i[e] / o[e - 1]), (o[e] -= n), (a[e] -= n * a[e - 1]); - for (i[r - 1] = a[r - 1] / o[r - 1], e = r - 2; e >= 0; --e) - i[e] = (a[e] - i[e + 1]) / o[e]; - for (o[r - 1] = (t[r] + i[r - 1]) / 2, e = 0; e < r - 1; ++e) - o[e] = 2 * t[e + 1] - i[e + 1]; - return [i, o]; - } - (Jx.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: - Zx(this, this._t0, Kx(this, this._t0)); - } - (this._line || (0 !== this._line && 1 === this._point)) && - this._context.closePath(), - (this._line = 1 - this._line); - }, - point: function(t, e) { - var n = NaN; - if (((e = +e), (t = +t) !== this._x1 || e !== this._y1)) { - switch (this._point) { - case 0: - (this._point = 1), - this._line - ? this._context.lineTo(t, e) - : this._context.moveTo(t, e); - break; - case 1: - this._point = 2; - break; - case 2: - (this._point = 3), Zx(this, Kx(this, (n = Qx(this, t, e))), n); - break; - default: - Zx(this, this._t0, (n = Qx(this, t, e))); - } - (this._x0 = this._x1), - (this._x1 = t), - (this._y0 = this._y1), - (this._y1 = e), - (this._t0 = n); - } - } - }), - ((tw.prototype = Object.create(Jx.prototype)).point = function(t, e) { - Jx.prototype.point.call(this, e, t); - }), - (ew.prototype = { - moveTo: function(t, e) { - this._context.moveTo(e, t); - }, - closePath: function() { - this._context.closePath(); - }, - lineTo: function(t, e) { - this._context.lineTo(e, t); - }, - bezierCurveTo: function(t, e, n, r, i, o) { - this._context.bezierCurveTo(e, t, r, n, o, i); - } - }), - (iw.prototype = { - areaStart: function() { - this._line = 0; - }, - areaEnd: function() { - this._line = NaN; - }, - lineStart: function() { - (this._x = []), (this._y = []); - }, - lineEnd: function() { - var t = this._x, - e = this._y, - n = t.length; - if (n) - if ( - (this._line - ? this._context.lineTo(t[0], e[0]) - : this._context.moveTo(t[0], e[0]), - 2 === n) - ) - this._context.lineTo(t[1], e[1]); - else - for (var r = ow(t), i = ow(e), o = 0, a = 1; a < n; ++o, ++a) - this._context.bezierCurveTo( - r[0][o], - i[0][o], - r[1][o], - i[1][o], - t[a], - e[a] - ); - (this._line || (0 !== this._line && 1 === n)) && - this._context.closePath(), - (this._line = 1 - this._line), - (this._x = this._y = null); - }, - point: function(t, e) { - this._x.push(+t), this._y.push(+e); - } - }); - var aw = function(t) { - return new iw(t); - }; - function sw(t, e) { - (this._context = t), (this._t = e); - } - sw.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(t, e) { - switch (((t = +t), (e = +e), this._point)) { - case 0: - (this._point = 1), - this._line - ? this._context.lineTo(t, e) - : this._context.moveTo(t, e); - break; - case 1: - this._point = 2; - default: - if (this._t <= 0) - this._context.lineTo(this._x, e), this._context.lineTo(t, e); - else { - var n = this._x * (1 - this._t) + t * this._t; - this._context.lineTo(n, this._y), this._context.lineTo(n, e); - } - } - (this._x = t), (this._y = e); - } - }; - var uw = function(t) { - return new sw(t, 0.5); - }; - function lw(t) { - return new sw(t, 0); - } - function cw(t) { - return new sw(t, 1); - } - var fw = function(t, e) { - if ((i = t.length) > 1) - for (var n, r, i, o = 1, a = t[e[0]], s = a.length; o < i; ++o) - for (r = a, a = t[e[o]], n = 0; n < s; ++n) - a[n][1] += a[n][0] = isNaN(r[n][1]) ? r[n][0] : r[n][1]; - }, - dw = function(t) { - for (var e = t.length, n = new Array(e); --e >= 0; ) n[e] = e; - return n; - }; - function hw(t, e) { - return t[e]; - } - var pw = function() { - var t = d_([]), - e = dw, - n = fw, - r = hw; - function i(i) { - var o, - a, - s = t.apply(this, arguments), - u = i.length, - l = s.length, - c = new Array(l); - for (o = 0; o < l; ++o) { - for ( - var f, d = s[o], h = (c[o] = new Array(u)), p = 0; - p < u; - ++p - ) - (h[p] = f = [0, +r(i[p], d, p, i)]), (f.data = i[p]); - h.key = d; - } - for (o = 0, a = e(c); o < l; ++o) c[a[o]].index = o; - return n(c, a), c; - } - return ( - (i.keys = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : d_($_.call(e))), i) - : t; - }), - (i.value = function(t) { - return arguments.length - ? ((r = 'function' == typeof t ? t : d_(+t)), i) - : r; - }), - (i.order = function(t) { - return arguments.length - ? ((e = - null == t - ? dw - : 'function' == typeof t - ? t - : d_($_.call(t))), - i) - : e; - }), - (i.offset = function(t) { - return arguments.length ? ((n = null == t ? fw : t), i) : n; - }), - i - ); - }, - gw = function(t, e) { - if ((r = t.length) > 0) { - for (var n, r, i, o = 0, a = t[0].length; o < a; ++o) { - for (i = n = 0; n < r; ++n) i += t[n][o][1] || 0; - if (i) for (n = 0; n < r; ++n) t[n][o][1] /= i; - } - fw(t, e); - } - }, - vw = function(t, e) { - if ((s = t.length) > 0) - for (var n, r, i, o, a, s, u = 0, l = t[e[0]].length; u < l; ++u) - for (o = a = 0, n = 0; n < s; ++n) - (i = (r = t[e[n]][u])[1] - r[0]) > 0 - ? ((r[0] = o), (r[1] = o += i)) - : i < 0 - ? ((r[1] = a), (r[0] = a += i)) - : ((r[0] = 0), (r[1] = i)); - }, - mw = function(t, e) { - if ((n = t.length) > 0) { - for (var n, r = 0, i = t[e[0]], o = i.length; r < o; ++r) { - for (var a = 0, s = 0; a < n; ++a) s += t[a][r][1] || 0; - i[r][1] += i[r][0] = -s / 2; - } - fw(t, e); - } - }, - yw = function(t, e) { - if ((i = t.length) > 0 && (r = (n = t[e[0]]).length) > 0) { - for (var n, r, i, o = 0, a = 1; a < r; ++a) { - for (var s = 0, u = 0, l = 0; s < i; ++s) { - for ( - var c = t[e[s]], - f = c[a][1] || 0, - d = (f - (c[a - 1][1] || 0)) / 2, - h = 0; - h < s; - ++h - ) { - var p = t[e[h]]; - d += (p[a][1] || 0) - (p[a - 1][1] || 0); - } - (u += f), (l += d * f); - } - (n[a - 1][1] += n[a - 1][0] = o), u && (o -= l / u); - } - (n[a - 1][1] += n[a - 1][0] = o), fw(t, e); - } - }, - bw = function(t) { - var e = t.map(_w); - return dw(t).sort(function(t, n) { - return e[t] - e[n]; - }); - }; - function _w(t) { - for (var e, n = -1, r = 0, i = t.length, o = -1 / 0; ++n < i; ) - (e = +t[n][1]) > o && ((o = e), (r = n)); - return r; - } - var xw = function(t) { - var e = t.map(ww); - return dw(t).sort(function(t, n) { - return e[t] - e[n]; - }); - }; - function ww(t) { - for (var e, n = 0, r = -1, i = t.length; ++r < i; ) - (e = +t[r][1]) && (n += e); - return n; - } - var Sw = function(t) { - return xw(t).reverse(); - }, - Ew = function(t) { - var e, - n, - r = t.length, - i = t.map(ww), - o = bw(t), - a = 0, - s = 0, - u = [], - l = []; - for (e = 0; e < r; ++e) - (n = o[e]), - a < s ? ((a += i[n]), u.push(n)) : ((s += i[n]), l.push(n)); - return l.reverse().concat(u); - }, - kw = function(t) { - return dw(t).reverse(); - }; - var Aw = Date.prototype.toISOString - ? function(t) { - return t.toISOString(); - } - : Uv('%Y-%m-%dT%H:%M:%S.%LZ'); - var Tw = +new Date('2000-01-01T00:00:00.000Z') - ? function(t) { - var e = new Date(t); - return isNaN(e) ? null : e; - } - : qv('%Y-%m-%dT%H:%M:%S.%LZ'), - Cw = function(t, e, n) { - var r = new Un(), - i = e; - return null == e - ? (r.restart(t, e, n), r) - : ((e = +e), - (n = null == n ? Gn() : +n), - r.restart( - function o(a) { - (a += i), r.restart(o, (i += e), n), t(a); - }, - e, - n - ), - r); - }, - Ow = function(t) { - return function() { - return t; - }; - }; - function Pw(t) { - return t[0]; - } - function Mw(t) { - return t[1]; - } - function Lw() { - this._ = null; - } - function Dw(t) { - t.U = t.C = t.L = t.R = t.P = t.N = null; - } - function jw(t, e) { - var n = e, - r = e.R, - i = n.U; - i ? (i.L === n ? (i.L = r) : (i.R = r)) : (t._ = r), - (r.U = i), - (n.U = r), - (n.R = r.L), - n.R && (n.R.U = n), - (r.L = n); - } - function Rw(t, e) { - var n = e, - r = e.L, - i = n.U; - i ? (i.L === n ? (i.L = r) : (i.R = r)) : (t._ = r), - (r.U = i), - (n.U = r), - (n.L = r.R), - n.L && (n.L.U = n), - (r.R = n); - } - function Nw(t) { - for (; t.L; ) t = t.L; - return t; - } - Lw.prototype = { - constructor: Lw, - insert: function(t, e) { - var n, r, i; - if (t) { - if (((e.P = t), (e.N = t.N), t.N && (t.N.P = e), (t.N = e), t.R)) { - for (t = t.R; t.L; ) t = t.L; - t.L = e; - } else t.R = e; - n = t; - } else - this._ - ? ((t = Nw(this._)), - (e.P = null), - (e.N = t), - (t.P = t.L = e), - (n = t)) - : ((e.P = e.N = null), (this._ = e), (n = null)); - for (e.L = e.R = null, e.U = n, e.C = !0, t = e; n && n.C; ) - n === (r = n.U).L - ? (i = r.R) && i.C - ? ((n.C = i.C = !1), (r.C = !0), (t = r)) - : (t === n.R && (jw(this, n), (n = (t = n).U)), - (n.C = !1), - (r.C = !0), - Rw(this, r)) - : (i = r.L) && i.C - ? ((n.C = i.C = !1), (r.C = !0), (t = r)) - : (t === n.L && (Rw(this, n), (n = (t = n).U)), - (n.C = !1), - (r.C = !0), - jw(this, r)), - (n = t.U); - this._.C = !1; - }, - remove: function(t) { - t.N && (t.N.P = t.P), t.P && (t.P.N = t.N), (t.N = t.P = null); - var e, - n, - r, - i = t.U, - o = t.L, - a = t.R; - if ( - ((n = o ? (a ? Nw(a) : o) : a), - i ? (i.L === t ? (i.L = n) : (i.R = n)) : (this._ = n), - o && a - ? ((r = n.C), - (n.C = t.C), - (n.L = o), - (o.U = n), - n !== a - ? ((i = n.U), - (n.U = t.U), - (t = n.R), - (i.L = t), - (n.R = a), - (a.U = n)) - : ((n.U = i), (i = n), (t = n.R))) - : ((r = t.C), (t = n)), - t && (t.U = i), - !r) - ) - if (t && t.C) t.C = !1; - else { - do { - if (t === this._) break; - if (t === i.L) { - if ( - ((e = i.R).C && - ((e.C = !1), (i.C = !0), jw(this, i), (e = i.R)), - (e.L && e.L.C) || (e.R && e.R.C)) - ) { - (e.R && e.R.C) || - ((e.L.C = !1), (e.C = !0), Rw(this, e), (e = i.R)), - (e.C = i.C), - (i.C = e.R.C = !1), - jw(this, i), - (t = this._); - break; - } - } else if ( - ((e = i.L).C && - ((e.C = !1), (i.C = !0), Rw(this, i), (e = i.L)), - (e.L && e.L.C) || (e.R && e.R.C)) - ) { - (e.L && e.L.C) || - ((e.R.C = !1), (e.C = !0), jw(this, e), (e = i.L)), - (e.C = i.C), - (i.C = e.L.C = !1), - Rw(this, i), - (t = this._); - break; - } - (e.C = !0), (t = i), (i = i.U); - } while (!t.C); - t && (t.C = !1); - } - } - }; - var zw = Lw; - function Iw(t, e, n, r) { - var i = [null, null], - o = uS.push(i) - 1; - return ( - (i.left = t), - (i.right = e), - n && Vw(i, t, e, n), - r && Vw(i, e, t, r), - aS[t.index].halfedges.push(o), - aS[e.index].halfedges.push(o), - i - ); - } - function Fw(t, e, n) { - var r = [e, n]; - return (r.left = t), r; - } - function Vw(t, e, n, r) { - t[0] || t[1] - ? t.left === n - ? (t[1] = r) - : (t[0] = r) - : ((t[0] = r), (t.left = e), (t.right = n)); - } - function Bw(t, e, n, r, i) { - var o, - a = t[0], - s = t[1], - u = a[0], - l = a[1], - c = 0, - f = 1, - d = s[0] - u, - h = s[1] - l; - if (((o = e - u), d || !(o > 0))) { - if (((o /= d), d < 0)) { - if (o < c) return; - o < f && (f = o); - } else if (d > 0) { - if (o > f) return; - o > c && (c = o); - } - if (((o = r - u), d || !(o < 0))) { - if (((o /= d), d < 0)) { - if (o > f) return; - o > c && (c = o); - } else if (d > 0) { - if (o < c) return; - o < f && (f = o); - } - if (((o = n - l), h || !(o > 0))) { - if (((o /= h), h < 0)) { - if (o < c) return; - o < f && (f = o); - } else if (h > 0) { - if (o > f) return; - o > c && (c = o); - } - if (((o = i - l), h || !(o < 0))) { - if (((o /= h), h < 0)) { - if (o > f) return; - o > c && (c = o); - } else if (h > 0) { - if (o < c) return; - o < f && (f = o); - } - return ( - !(c > 0 || f < 1) || - (c > 0 && (t[0] = [u + c * d, l + c * h]), - f < 1 && (t[1] = [u + f * d, l + f * h]), - !0) - ); - } - } - } - } - } - function Gw(t, e, n, r, i) { - var o = t[1]; - if (o) return !0; - var a, - s, - u = t[0], - l = t.left, - c = t.right, - f = l[0], - d = l[1], - h = c[0], - p = c[1], - g = (f + h) / 2, - v = (d + p) / 2; - if (p === d) { - if (g < e || g >= r) return; - if (f > h) { - if (u) { - if (u[1] >= i) return; - } else u = [g, n]; - o = [g, i]; - } else { - if (u) { - if (u[1] < n) return; - } else u = [g, i]; - o = [g, n]; - } - } else if (((s = v - (a = (f - h) / (p - d)) * g), a < -1 || a > 1)) - if (f > h) { - if (u) { - if (u[1] >= i) return; - } else u = [(n - s) / a, n]; - o = [(i - s) / a, i]; - } else { - if (u) { - if (u[1] < n) return; - } else u = [(i - s) / a, i]; - o = [(n - s) / a, n]; - } - else if (d < p) { - if (u) { - if (u[0] >= r) return; - } else u = [e, a * e + s]; - o = [r, a * r + s]; - } else { - if (u) { - if (u[0] < e) return; - } else u = [r, a * r + s]; - o = [e, a * e + s]; - } - return (t[0] = u), (t[1] = o), !0; - } - function Hw(t, e) { - var n = t.site, - r = e.left, - i = e.right; - return ( - n === i && ((i = r), (r = n)), - i - ? Math.atan2(i[1] - r[1], i[0] - r[0]) - : (n === r ? ((r = e[1]), (i = e[0])) : ((r = e[0]), (i = e[1])), - Math.atan2(r[0] - i[0], i[1] - r[1])) - ); - } - function Uw(t, e) { - return e[+(e.left !== t.site)]; - } - function qw(t, e) { - return e[+(e.left === t.site)]; - } - var Ww, - Xw = []; - function Yw() { - Dw(this), (this.x = this.y = this.arc = this.site = this.cy = null); - } - function $w(t) { - var e = t.P, - n = t.N; - if (e && n) { - var r = e.site, - i = t.site, - o = n.site; - if (r !== o) { - var a = i[0], - s = i[1], - u = r[0] - a, - l = r[1] - s, - c = o[0] - a, - f = o[1] - s, - d = 2 * (u * f - l * c); - if (!(d >= -cS)) { - var h = u * u + l * l, - p = c * c + f * f, - g = (f * h - l * p) / d, - v = (u * p - c * h) / d, - m = Xw.pop() || new Yw(); - (m.arc = t), - (m.site = i), - (m.x = g + a), - (m.y = (m.cy = v + s) + Math.sqrt(g * g + v * v)), - (t.circle = m); - for (var y = null, b = sS._; b; ) - if (m.y < b.y || (m.y === b.y && m.x <= b.x)) { - if (!b.L) { - y = b.P; - break; - } - b = b.L; - } else { - if (!b.R) { - y = b; - break; - } - b = b.R; - } - sS.insert(y, m), y || (Ww = m); - } - } - } - } - function Qw(t) { - var e = t.circle; - e && - (e.P || (Ww = e.N), - sS.remove(e), - Xw.push(e), - Dw(e), - (t.circle = null)); - } - var Kw = []; - function Zw() { - Dw(this), (this.edge = this.site = this.circle = null); - } - function Jw(t) { - var e = Kw.pop() || new Zw(); - return (e.site = t), e; - } - function tS(t) { - Qw(t), oS.remove(t), Kw.push(t), Dw(t); - } - function eS(t) { - var e = t.circle, - n = e.x, - r = e.cy, - i = [n, r], - o = t.P, - a = t.N, - s = [t]; - tS(t); - for ( - var u = o; - u.circle && - Math.abs(n - u.circle.x) < lS && - Math.abs(r - u.circle.cy) < lS; - - ) - (o = u.P), s.unshift(u), tS(u), (u = o); - s.unshift(u), Qw(u); - for ( - var l = a; - l.circle && - Math.abs(n - l.circle.x) < lS && - Math.abs(r - l.circle.cy) < lS; - - ) - (a = l.N), s.push(l), tS(l), (l = a); - s.push(l), Qw(l); - var c, - f = s.length; - for (c = 1; c < f; ++c) - (l = s[c]), (u = s[c - 1]), Vw(l.edge, u.site, l.site, i); - (u = s[0]), - ((l = s[f - 1]).edge = Iw(u.site, l.site, null, i)), - $w(u), - $w(l); - } - function nS(t) { - for (var e, n, r, i, o = t[0], a = t[1], s = oS._; s; ) - if ((r = rS(s, a) - o) > lS) s = s.L; - else { - if (!((i = o - iS(s, a)) > lS)) { - r > -lS - ? ((e = s.P), (n = s)) - : i > -lS - ? ((e = s), (n = s.N)) - : (e = n = s); - break; - } - if (!s.R) { - e = s; - break; - } - s = s.R; - } - !(function(t) { - aS[t.index] = { site: t, halfedges: [] }; - })(t); - var u = Jw(t); - if ((oS.insert(e, u), e || n)) { - if (e === n) - return ( - Qw(e), - (n = Jw(e.site)), - oS.insert(u, n), - (u.edge = n.edge = Iw(e.site, u.site)), - $w(e), - void $w(n) - ); - if (n) { - Qw(e), Qw(n); - var l = e.site, - c = l[0], - f = l[1], - d = t[0] - c, - h = t[1] - f, - p = n.site, - g = p[0] - c, - v = p[1] - f, - m = 2 * (d * v - h * g), - y = d * d + h * h, - b = g * g + v * v, - _ = [(v * y - h * b) / m + c, (d * b - g * y) / m + f]; - Vw(n.edge, l, p, _), - (u.edge = Iw(l, t, null, _)), - (n.edge = Iw(t, p, null, _)), - $w(e), - $w(n); - } else u.edge = Iw(e.site, u.site); - } - } - function rS(t, e) { - var n = t.site, - r = n[0], - i = n[1], - o = i - e; - if (!o) return r; - var a = t.P; - if (!a) return -1 / 0; - var s = (n = a.site)[0], - u = n[1], - l = u - e; - if (!l) return s; - var c = s - r, - f = 1 / o - 1 / l, - d = c / l; - return f - ? (-d + - Math.sqrt( - d * d - 2 * f * ((c * c) / (-2 * l) - u + l / 2 + i - o / 2) - )) / - f + - r - : (r + s) / 2; - } - function iS(t, e) { - var n = t.N; - if (n) return rS(n, e); - var r = t.site; - return r[1] === e ? r[0] : 1 / 0; - } - var oS, - aS, - sS, - uS, - lS = 1e-6, - cS = 1e-12; - function fS(t, e) { - return e[1] - t[1] || e[0] - t[0]; - } - function dS(t, e) { - var n, - r, - i, - o = t.sort(fS).pop(); - for ( - uS = [], aS = new Array(t.length), oS = new zw(), sS = new zw(); - ; - - ) - if ( - ((i = Ww), o && (!i || o[1] < i.y || (o[1] === i.y && o[0] < i.x))) - ) - (o[0] === n && o[1] === r) || (nS(o), (n = o[0]), (r = o[1])), - (o = t.pop()); - else { - if (!i) break; - eS(i.arc); - } - if ( - ((function() { - for (var t, e, n, r, i = 0, o = aS.length; i < o; ++i) - if ((t = aS[i]) && (r = (e = t.halfedges).length)) { - var a = new Array(r), - s = new Array(r); - for (n = 0; n < r; ++n) (a[n] = n), (s[n] = Hw(t, uS[e[n]])); - for ( - a.sort(function(t, e) { - return s[e] - s[t]; - }), - n = 0; - n < r; - ++n - ) - s[n] = e[a[n]]; - for (n = 0; n < r; ++n) e[n] = s[n]; - } - })(), - e) - ) { - var a = +e[0][0], - s = +e[0][1], - u = +e[1][0], - l = +e[1][1]; - !(function(t, e, n, r) { - for (var i, o = uS.length; o--; ) - (Gw((i = uS[o]), t, e, n, r) && - Bw(i, t, e, n, r) && - (Math.abs(i[0][0] - i[1][0]) > lS || - Math.abs(i[0][1] - i[1][1]) > lS)) || - delete uS[o]; - })(a, s, u, l), - (function(t, e, n, r) { - var i, - o, - a, - s, - u, - l, - c, - f, - d, - h, - p, - g, - v = aS.length, - m = !0; - for (i = 0; i < v; ++i) - if ((o = aS[i])) { - for (a = o.site, s = (u = o.halfedges).length; s--; ) - uS[u[s]] || u.splice(s, 1); - for (s = 0, l = u.length; s < l; ) - (p = (h = qw(o, uS[u[s]]))[0]), - (g = h[1]), - (f = (c = Uw(o, uS[u[++s % l]]))[0]), - (d = c[1]), - (Math.abs(p - f) > lS || Math.abs(g - d) > lS) && - (u.splice( - s, - 0, - uS.push( - Fw( - a, - h, - Math.abs(p - t) < lS && r - g > lS - ? [t, Math.abs(f - t) < lS ? d : r] - : Math.abs(g - r) < lS && n - p > lS - ? [Math.abs(d - r) < lS ? f : n, r] - : Math.abs(p - n) < lS && g - e > lS - ? [n, Math.abs(f - n) < lS ? d : e] - : Math.abs(g - e) < lS && p - t > lS - ? [Math.abs(d - e) < lS ? f : t, e] - : null - ) - ) - 1 - ), - ++l); - l && (m = !1); - } - if (m) { - var y, - b, - _, - x = 1 / 0; - for (i = 0, m = null; i < v; ++i) - (o = aS[i]) && - (_ = (y = (a = o.site)[0] - t) * y + (b = a[1] - e) * b) < - x && - ((x = _), (m = o)); - if (m) { - var w = [t, e], - S = [t, r], - E = [n, r], - k = [n, e]; - m.halfedges.push( - uS.push(Fw((a = m.site), w, S)) - 1, - uS.push(Fw(a, S, E)) - 1, - uS.push(Fw(a, E, k)) - 1, - uS.push(Fw(a, k, w)) - 1 - ); - } - } - for (i = 0; i < v; ++i) - (o = aS[i]) && (o.halfedges.length || delete aS[i]); - })(a, s, u, l); - } - (this.edges = uS), (this.cells = aS), (oS = sS = uS = aS = null); - } - dS.prototype = { - constructor: dS, - polygons: function() { - var t = this.edges; - return this.cells.map(function(e) { - var n = e.halfedges.map(function(n) { - return Uw(e, t[n]); - }); - return (n.data = e.site.data), n; - }); - }, - triangles: function() { - var t = [], - e = this.edges; - return ( - this.cells.forEach(function(n, r) { - if ((o = (i = n.halfedges).length)) - for ( - var i, - o, - a, - s, - u, - l, - c = n.site, - f = -1, - d = e[i[o - 1]], - h = d.left === c ? d.right : d.left; - ++f < o; - - ) - (a = h), - (h = (d = e[i[f]]).left === c ? d.right : d.left), - a && - h && - r < a.index && - r < h.index && - ((u = a), - (l = h), - ((s = c)[0] - l[0]) * (u[1] - s[1]) - - (s[0] - u[0]) * (l[1] - s[1]) < - 0) && - t.push([c.data, a.data, h.data]); - }), - t - ); - }, - links: function() { - return this.edges - .filter(function(t) { - return t.right; - }) - .map(function(t) { - return { source: t.left.data, target: t.right.data }; - }); - }, - find: function(t, e, n) { - for ( - var r, i, o = this, a = o._found || 0, s = o.cells.length; - !(i = o.cells[a]); - - ) - if (++a >= s) return null; - var u = t - i.site[0], - l = e - i.site[1], - c = u * u + l * l; - do { - (i = o.cells[(r = a)]), - (a = null), - i.halfedges.forEach(function(n) { - var r = o.edges[n], - s = r.left; - if ((s !== i.site && s) || (s = r.right)) { - var u = t - s[0], - l = e - s[1], - f = u * u + l * l; - f < c && ((c = f), (a = s.index)); - } - }); - } while (null !== a); - return (o._found = r), null == n || c <= n * n ? i.site : null; - } - }; - var hS = function() { - var t = Pw, - e = Mw, - n = null; - function r(r) { - return new dS( - r.map(function(n, i) { - var o = [ - Math.round(t(n, i, r) / lS) * lS, - Math.round(e(n, i, r) / lS) * lS - ]; - return (o.index = i), (o.data = n), o; - }), - n - ); - } - return ( - (r.polygons = function(t) { - return r(t).polygons(); - }), - (r.links = function(t) { - return r(t).links(); - }), - (r.triangles = function(t) { - return r(t).triangles(); - }), - (r.x = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : Ow(+e)), r) - : t; - }), - (r.y = function(t) { - return arguments.length - ? ((e = 'function' == typeof t ? t : Ow(+t)), r) - : e; - }), - (r.extent = function(t) { - return arguments.length - ? ((n = - null == t - ? null - : [ - [+t[0][0], +t[0][1]], - [+t[1][0], +t[1][1]] - ]), - r) - : n && [ - [n[0][0], n[0][1]], - [n[1][0], n[1][1]] - ]; - }), - (r.size = function(t) { - return arguments.length - ? ((n = - null == t - ? null - : [ - [0, 0], - [+t[0], +t[1]] - ]), - r) - : n && [n[1][0] - n[0][0], n[1][1] - n[0][1]]; - }), - r - ); - }, - pS = function(t) { - return function() { - return t; - }; - }; - function gS(t, e, n) { - (this.target = t), (this.type = e), (this.transform = n); - } - function vS(t, e, n) { - (this.k = t), (this.x = e), (this.y = n); - } - vS.prototype = { - constructor: vS, - scale: function(t) { - return 1 === t ? this : new vS(this.k * t, this.x, this.y); - }, - translate: function(t, e) { - return (0 === t) & (0 === e) - ? this - : new vS(this.k, this.x + this.k * t, this.y + this.k * e); - }, - apply: function(t) { - return [t[0] * this.k + this.x, t[1] * this.k + this.y]; - }, - applyX: function(t) { - return t * this.k + this.x; - }, - applyY: function(t) { - return t * this.k + this.y; - }, - invert: function(t) { - return [(t[0] - this.x) / this.k, (t[1] - this.y) / this.k]; - }, - invertX: function(t) { - return (t - this.x) / this.k; - }, - invertY: function(t) { - return (t - this.y) / this.k; - }, - rescaleX: function(t) { - return t.copy().domain( - t - .range() - .map(this.invertX, this) - .map(t.invert, t) - ); - }, - rescaleY: function(t) { - return t.copy().domain( - t - .range() - .map(this.invertY, this) - .map(t.invert, t) - ); - }, - toString: function() { - return ( - 'translate(' + this.x + ',' + this.y + ') scale(' + this.k + ')' - ); - } - }; - var mS = new vS(1, 0, 0); - function yS(t) { - for (; !t.__zoom; ) if (!(t = t.parentNode)) return mS; - return t.__zoom; - } - function bS() { - le.stopImmediatePropagation(); - } - yS.prototype = vS.prototype; - var _S = function() { - le.preventDefault(), le.stopImmediatePropagation(); - }; - function xS() { - return !le.ctrlKey && !le.button; - } - function wS() { - var t = this; - return t instanceof SVGElement - ? (t = t.ownerSVGElement || t).hasAttribute('viewBox') - ? [ - [(t = t.viewBox.baseVal).x, t.y], - [t.x + t.width, t.y + t.height] - ] - : [ - [0, 0], - [t.width.baseVal.value, t.height.baseVal.value] - ] - : [ - [0, 0], - [t.clientWidth, t.clientHeight] - ]; - } - function SS() { - return this.__zoom || mS; - } - function ES() { - return ( - -le.deltaY * (1 === le.deltaMode ? 0.05 : le.deltaMode ? 1 : 0.002) - ); - } - function kS() { - return navigator.maxTouchPoints || 'ontouchstart' in this; - } - function AS(t, e, n) { - var r = t.invertX(e[0][0]) - n[0][0], - i = t.invertX(e[1][0]) - n[1][0], - o = t.invertY(e[0][1]) - n[0][1], - a = t.invertY(e[1][1]) - n[1][1]; - return t.translate( - i > r ? (r + i) / 2 : Math.min(0, r) || Math.max(0, i), - a > o ? (o + a) / 2 : Math.min(0, o) || Math.max(0, a) - ); - } - var TS = function() { - var t, - e, - n = xS, - r = wS, - i = AS, - o = ES, - a = kS, - s = [0, 1 / 0], - u = [ - [-1 / 0, -1 / 0], - [1 / 0, 1 / 0] - ], - l = 250, - c = dp, - f = ft('start', 'zoom', 'end'), - d = 0; - function h(t) { - t.property('__zoom', SS) - .on('wheel.zoom', _) - .on('mousedown.zoom', x) - .on('dblclick.zoom', w) - .filter(a) - .on('touchstart.zoom', S) - .on('touchmove.zoom', E) - .on('touchend.zoom touchcancel.zoom', k) - .style('touch-action', 'none') - .style('-webkit-tap-highlight-color', 'rgba(0,0,0,0)'); - } - function p(t, e) { - return (e = Math.max(s[0], Math.min(s[1], e))) === t.k - ? t - : new vS(e, t.x, t.y); - } - function g(t, e, n) { - var r = e[0] - n[0] * t.k, - i = e[1] - n[1] * t.k; - return r === t.x && i === t.y ? t : new vS(t.k, r, i); - } - function v(t) { - return [(+t[0][0] + +t[1][0]) / 2, (+t[0][1] + +t[1][1]) / 2]; - } - function m(t, e, n) { - t.on('start.zoom', function() { - y(this, arguments).start(); - }) - .on('interrupt.zoom end.zoom', function() { - y(this, arguments).end(); - }) - .tween('zoom', function() { - var t = this, - i = arguments, - o = y(t, i), - a = r.apply(t, i), - s = - null == n ? v(a) : 'function' == typeof n ? n.apply(t, i) : n, - u = Math.max(a[1][0] - a[0][0], a[1][1] - a[0][1]), - l = t.__zoom, - f = 'function' == typeof e ? e.apply(t, i) : e, - d = c(l.invert(s).concat(u / l.k), f.invert(s).concat(u / f.k)); - return function(t) { - if (1 === t) t = f; - else { - var e = d(t), - n = u / e[2]; - t = new vS(n, s[0] - e[0] * n, s[1] - e[1] * n); - } - o.zoom(null, t); - }; - }); - } - function y(t, e, n) { - return (!n && t.__zooming) || new b(t, e); - } - function b(t, e) { - (this.that = t), - (this.args = e), - (this.active = 0), - (this.extent = r.apply(t, e)), - (this.taps = 0); - } - function _() { - if (n.apply(this, arguments)) { - var t = y(this, arguments), - e = this.__zoom, - r = Math.max( - s[0], - Math.min(s[1], e.k * Math.pow(2, o.apply(this, arguments))) - ), - a = Dn(this); - if (t.wheel) - (t.mouse[0][0] === a[0] && t.mouse[0][1] === a[1]) || - (t.mouse[1] = e.invert((t.mouse[0] = a))), - clearTimeout(t.wheel); - else { - if (e.k === r) return; - (t.mouse = [a, e.invert(a)]), sr(this), t.start(); - } - _S(), - (t.wheel = setTimeout(l, 150)), - t.zoom( - 'mouse', - i(g(p(e, r), t.mouse[0], t.mouse[1]), t.extent, u) - ); - } - function l() { - (t.wheel = null), t.end(); - } - } - function x() { - if (!e && n.apply(this, arguments)) { - var t = y(this, arguments, !0), - r = Se(le.view) - .on('mousemove.zoom', l, !0) - .on('mouseup.zoom', c, !0), - o = Dn(this), - a = le.clientX, - s = le.clientY; - Ae(le.view), - bS(), - (t.mouse = [o, this.__zoom.invert(o)]), - sr(this), - t.start(); - } - function l() { - if ((_S(), !t.moved)) { - var e = le.clientX - a, - n = le.clientY - s; - t.moved = e * e + n * n > d; - } - t.zoom( - 'mouse', - i( - g(t.that.__zoom, (t.mouse[0] = Dn(t.that)), t.mouse[1]), - t.extent, - u - ) - ); - } - function c() { - r.on('mousemove.zoom mouseup.zoom', null), - Te(le.view, t.moved), - _S(), - t.end(); - } - } - function w() { - if (n.apply(this, arguments)) { - var t = this.__zoom, - e = Dn(this), - o = t.invert(e), - a = t.k * (le.shiftKey ? 0.5 : 2), - s = i(g(p(t, a), e, o), r.apply(this, arguments), u); - _S(), - l > 0 - ? Se(this) - .transition() - .duration(l) - .call(m, s, e) - : Se(this).call(h.transform, s); - } - } - function S() { - if (n.apply(this, arguments)) { - var e, - r, - i, - o, - a = le.touches, - s = a.length, - u = y(this, arguments, le.changedTouches.length === s); - for (bS(), r = 0; r < s; ++r) - (i = a[r]), - (o = [ - (o = Ln(this, a, i.identifier)), - this.__zoom.invert(o), - i.identifier - ]), - u.touch0 - ? u.touch1 || - u.touch0[2] === o[2] || - ((u.touch1 = o), (u.taps = 0)) - : ((u.touch0 = o), (e = !0), (u.taps = 1 + !!t)); - t && (t = clearTimeout(t)), - e && - (u.taps < 2 && - (t = setTimeout(function() { - t = null; - }, 500)), - sr(this), - u.start()); - } - } - function E() { - if (this.__zooming) { - var e, - n, - r, - o, - a = y(this, arguments), - s = le.changedTouches, - l = s.length; - for ( - _S(), t && (t = clearTimeout(t)), a.taps = 0, e = 0; - e < l; - ++e - ) - (n = s[e]), - (r = Ln(this, s, n.identifier)), - a.touch0 && a.touch0[2] === n.identifier - ? (a.touch0[0] = r) - : a.touch1 && - a.touch1[2] === n.identifier && - (a.touch1[0] = r); - if (((n = a.that.__zoom), a.touch1)) { - var c = a.touch0[0], - f = a.touch0[1], - d = a.touch1[0], - h = a.touch1[1], - v = (v = d[0] - c[0]) * v + (v = d[1] - c[1]) * v, - m = (m = h[0] - f[0]) * m + (m = h[1] - f[1]) * m; - (n = p(n, Math.sqrt(v / m))), - (r = [(c[0] + d[0]) / 2, (c[1] + d[1]) / 2]), - (o = [(f[0] + h[0]) / 2, (f[1] + h[1]) / 2]); - } else { - if (!a.touch0) return; - (r = a.touch0[0]), (o = a.touch0[1]); - } - a.zoom('touch', i(g(n, r, o), a.extent, u)); - } - } - function k() { - if (this.__zooming) { - var t, - n, - r = y(this, arguments), - i = le.changedTouches, - o = i.length; - for ( - bS(), - e && clearTimeout(e), - e = setTimeout(function() { - e = null; - }, 500), - t = 0; - t < o; - ++t - ) - (n = i[t]), - r.touch0 && r.touch0[2] === n.identifier - ? delete r.touch0 - : r.touch1 && r.touch1[2] === n.identifier && delete r.touch1; - if ( - (r.touch1 && - !r.touch0 && - ((r.touch0 = r.touch1), delete r.touch1), - r.touch0) - ) - r.touch0[1] = this.__zoom.invert(r.touch0[0]); - else if ((r.end(), 2 === r.taps)) { - var a = Se(this).on('dblclick.zoom'); - a && a.apply(this, arguments); - } - } - } - return ( - (h.transform = function(t, e, n) { - var r = t.selection ? t.selection() : t; - r.property('__zoom', SS), - t !== r - ? m(t, e, n) - : r.interrupt().each(function() { - y(this, arguments) - .start() - .zoom( - null, - 'function' == typeof e ? e.apply(this, arguments) : e - ) - .end(); - }); - }), - (h.scaleBy = function(t, e, n) { - h.scaleTo( - t, - function() { - var t = this.__zoom.k, - n = 'function' == typeof e ? e.apply(this, arguments) : e; - return t * n; - }, - n - ); - }), - (h.scaleTo = function(t, e, n) { - h.transform( - t, - function() { - var t = r.apply(this, arguments), - o = this.__zoom, - a = - null == n - ? v(t) - : 'function' == typeof n - ? n.apply(this, arguments) - : n, - s = o.invert(a), - l = 'function' == typeof e ? e.apply(this, arguments) : e; - return i(g(p(o, l), a, s), t, u); - }, - n - ); - }), - (h.translateBy = function(t, e, n) { - h.transform(t, function() { - return i( - this.__zoom.translate( - 'function' == typeof e ? e.apply(this, arguments) : e, - 'function' == typeof n ? n.apply(this, arguments) : n - ), - r.apply(this, arguments), - u - ); - }); - }), - (h.translateTo = function(t, e, n, o) { - h.transform( - t, - function() { - var t = r.apply(this, arguments), - a = this.__zoom, - s = - null == o - ? v(t) - : 'function' == typeof o - ? o.apply(this, arguments) - : o; - return i( - mS - .translate(s[0], s[1]) - .scale(a.k) - .translate( - 'function' == typeof e ? -e.apply(this, arguments) : -e, - 'function' == typeof n ? -n.apply(this, arguments) : -n - ), - t, - u - ); - }, - o - ); - }), - (b.prototype = { - start: function() { - return ( - 1 == ++this.active && - ((this.that.__zooming = this), this.emit('start')), - this - ); - }, - zoom: function(t, e) { - return ( - this.mouse && - 'mouse' !== t && - (this.mouse[1] = e.invert(this.mouse[0])), - this.touch0 && - 'touch' !== t && - (this.touch0[1] = e.invert(this.touch0[0])), - this.touch1 && - 'touch' !== t && - (this.touch1[1] = e.invert(this.touch1[0])), - (this.that.__zoom = e), - this.emit('zoom'), - this - ); - }, - end: function() { - return ( - 0 == --this.active && - (delete this.that.__zooming, this.emit('end')), - this - ); - }, - emit: function(t) { - ge(new gS(h, t, this.that.__zoom), f.apply, f, [ - t, - this.that, - this.args - ]); - } - }), - (h.wheelDelta = function(t) { - return arguments.length - ? ((o = 'function' == typeof t ? t : pS(+t)), h) - : o; - }), - (h.filter = function(t) { - return arguments.length - ? ((n = 'function' == typeof t ? t : pS(!!t)), h) - : n; - }), - (h.touchable = function(t) { - return arguments.length - ? ((a = 'function' == typeof t ? t : pS(!!t)), h) - : a; - }), - (h.extent = function(t) { - return arguments.length - ? ((r = - 'function' == typeof t - ? t - : pS([ - [+t[0][0], +t[0][1]], - [+t[1][0], +t[1][1]] - ])), - h) - : r; - }), - (h.scaleExtent = function(t) { - return arguments.length - ? ((s[0] = +t[0]), (s[1] = +t[1]), h) - : [s[0], s[1]]; - }), - (h.translateExtent = function(t) { - return arguments.length - ? ((u[0][0] = +t[0][0]), - (u[1][0] = +t[1][0]), - (u[0][1] = +t[0][1]), - (u[1][1] = +t[1][1]), - h) - : [ - [u[0][0], u[0][1]], - [u[1][0], u[1][1]] - ]; - }), - (h.constrain = function(t) { - return arguments.length ? ((i = t), h) : i; - }), - (h.duration = function(t) { - return arguments.length ? ((l = +t), h) : l; - }), - (h.interpolate = function(t) { - return arguments.length ? ((c = t), h) : c; - }), - (h.on = function() { - var t = f.on.apply(f, arguments); - return t === f ? h : t; - }), - (h.clickDistance = function(t) { - return arguments.length ? ((d = (t = +t) * t), h) : Math.sqrt(d); - }), - h - ); - }; - }, - function(t, e, n) { - 'use strict'; - function r(t) { - var e, - n = t.Symbol; - return ( - 'function' == typeof n - ? n.observable - ? (e = n.observable) - : ((e = n('observable')), (n.observable = e)) - : (e = '@@observable'), - e - ); - } - n.d(e, 'a', function() { - return r; - }); - }, - function(t, e, n) { - var r; - window, - (r = function() { - return (function(t) { - var e = {}; - function n(r) { - if (e[r]) return e[r].exports; - var i = (e[r] = { i: r, l: !1, exports: {} }); - return ( - t[r].call(i.exports, i, i.exports, n), (i.l = !0), i.exports - ); - } - return ( - (n.m = t), - (n.c = e), - (n.d = function(t, e, r) { - n.o(t, e) || - Object.defineProperty(t, e, { - configurable: !1, - enumerable: !0, - get: r - }); - }), - (n.r = function(t) { - Object.defineProperty(t, '__esModule', { value: !0 }); - }), - (n.n = function(t) { - var e = - t && t.__esModule - ? function() { - return t.default; - } - : function() { - return t; - }; - return n.d(e, 'a', e), e; - }), - (n.o = function(t, e) { - return Object.prototype.hasOwnProperty.call(t, e); - }), - (n.p = ''), - n((n.s = 24)) - ); - })([ - function(t, e) { - t.exports = function(t) { - for (var e = 1; e < arguments.length; e++) - for (var n in arguments[e]) t[n] = arguments[e][n]; - return t; - }; - }, - function(t, e) { - t.exports = function(t, e, n) { - var r; - if (!t) return 0; - if (((n = n || t), t instanceof Array)) { - for (r = 0; r < t.length; r++) - if (!1 === e.call(n, t[r], r, t)) return 0; - } else - for (r in t) - if (t.hasOwnProperty(r) && !1 === e.call(n, t[r], r, t)) - return 0; - return 1; - }; - }, - function(t, e) { - var n; - n = (function() { - return this; - })(); - try { - n = n || Function('return this')() || (0, eval)('this'); - } catch (t) { - 'object' == typeof window && (n = window); - } - t.exports = n; - }, - function(t, e, n) { - 'use strict'; - n.r(e), - function(t) { - var e = n(9), - r = n(4), - i = (function() { - if ('undefined' != typeof self) return self; - if ('undefined' != typeof window) return window; - if (void 0 !== t) return t; - throw new Error('unable to locate global object'); - })(); - i.Promise - ? i.Promise.prototype.finally || - (i.Promise.prototype.finally = r.a) - : (i.Promise = e.a); - }.call(this, n(2)); - }, - function(t, e, n) { - 'use strict'; - e.a = function(t) { - var e = this.constructor; - return this.then( - function(n) { - return e.resolve(t()).then(function() { - return n; - }); - }, - function(n) { - return e.resolve(t()).then(function() { - return e.reject(n); - }); - } - ); - }; - }, - function(t, e) { - !(function(t) { - 'use strict'; - if (!t.fetch) { - var e = 'URLSearchParams' in t, - n = 'Symbol' in t && 'iterator' in Symbol, - r = - 'FileReader' in t && - 'Blob' in t && - (function() { - try { - return new Blob(), !0; - } catch (t) { - return !1; - } - })(), - i = 'FormData' in t, - o = 'ArrayBuffer' in t; - if (o) - var a = [ - '[object Int8Array]', - '[object Uint8Array]', - '[object Uint8ClampedArray]', - '[object Int16Array]', - '[object Uint16Array]', - '[object Int32Array]', - '[object Uint32Array]', - '[object Float32Array]', - '[object Float64Array]' - ], - s = function(t) { - return t && DataView.prototype.isPrototypeOf(t); - }, - u = - ArrayBuffer.isView || - function(t) { - return ( - t && - a.indexOf(Object.prototype.toString.call(t)) > -1 - ); - }; - (p.prototype.append = function(t, e) { - (t = f(t)), (e = d(e)); - var n = this.map[t]; - this.map[t] = n ? n + ',' + e : e; - }), - (p.prototype.delete = function(t) { - delete this.map[f(t)]; - }), - (p.prototype.get = function(t) { - return (t = f(t)), this.has(t) ? this.map[t] : null; - }), - (p.prototype.has = function(t) { - return this.map.hasOwnProperty(f(t)); - }), - (p.prototype.set = function(t, e) { - this.map[f(t)] = d(e); - }), - (p.prototype.forEach = function(t, e) { - for (var n in this.map) - this.map.hasOwnProperty(n) && - t.call(e, this.map[n], n, this); - }), - (p.prototype.keys = function() { - var t = []; - return ( - this.forEach(function(e, n) { - t.push(n); - }), - h(t) - ); - }), - (p.prototype.values = function() { - var t = []; - return ( - this.forEach(function(e) { - t.push(e); - }), - h(t) - ); - }), - (p.prototype.entries = function() { - var t = []; - return ( - this.forEach(function(e, n) { - t.push([n, e]); - }), - h(t) - ); - }), - n && (p.prototype[Symbol.iterator] = p.prototype.entries); - var l = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']; - (_.prototype.clone = function() { - return new _(this, { body: this._bodyInit }); - }), - b.call(_.prototype), - b.call(w.prototype), - (w.prototype.clone = function() { - return new w(this._bodyInit, { - status: this.status, - statusText: this.statusText, - headers: new p(this.headers), - url: this.url - }); - }), - (w.error = function() { - var t = new w(null, { status: 0, statusText: '' }); - return (t.type = 'error'), t; - }); - var c = [301, 302, 303, 307, 308]; - (w.redirect = function(t, e) { - if (-1 === c.indexOf(e)) - throw new RangeError('Invalid status code'); - return new w(null, { status: e, headers: { location: t } }); - }), - (t.Headers = p), - (t.Request = _), - (t.Response = w), - (t.fetch = function(t, e) { - return new Promise(function(n, i) { - var o = new _(t, e), - a = new XMLHttpRequest(); - (a.onload = function() { - var t, - e, - r = { - status: a.status, - statusText: a.statusText, - headers: - ((t = a.getAllResponseHeaders() || ''), - (e = new p()), - t - .replace(/\r?\n[\t ]+/g, ' ') - .split(/\r?\n/) - .forEach(function(t) { - var n = t.split(':'), - r = n.shift().trim(); - if (r) { - var i = n.join(':').trim(); - e.append(r, i); - } - }), - e) - }; - r.url = - 'responseURL' in a - ? a.responseURL - : r.headers.get('X-Request-URL'); - var i = 'response' in a ? a.response : a.responseText; - n(new w(i, r)); - }), - (a.onerror = function() { - i(new TypeError('Network request failed')); - }), - (a.ontimeout = function() { - i(new TypeError('Network request failed')); - }), - a.open(o.method, o.url, !0), - 'include' === o.credentials - ? (a.withCredentials = !0) - : 'omit' === o.credentials && - (a.withCredentials = !1), - 'responseType' in a && r && (a.responseType = 'blob'), - o.headers.forEach(function(t, e) { - a.setRequestHeader(e, t); - }), - a.send(void 0 === o._bodyInit ? null : o._bodyInit); - }); - }), - (t.fetch.polyfill = !0); - } - function f(t) { - if ( - ('string' != typeof t && (t = String(t)), - /[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t)) - ) - throw new TypeError( - 'Invalid character in header field name' - ); - return t.toLowerCase(); - } - function d(t) { - return 'string' != typeof t && (t = String(t)), t; - } - function h(t) { - var e = { - next: function() { - var e = t.shift(); - return { done: void 0 === e, value: e }; - } - }; - return ( - n && - (e[Symbol.iterator] = function() { - return e; - }), - e - ); - } - function p(t) { - (this.map = {}), - t instanceof p - ? t.forEach(function(t, e) { - this.append(e, t); - }, this) - : Array.isArray(t) - ? t.forEach(function(t) { - this.append(t[0], t[1]); - }, this) - : t && - Object.getOwnPropertyNames(t).forEach(function(e) { - this.append(e, t[e]); - }, this); - } - function g(t) { - if (t.bodyUsed) - return Promise.reject(new TypeError('Already read')); - t.bodyUsed = !0; - } - function v(t) { - return new Promise(function(e, n) { - (t.onload = function() { - e(t.result); - }), - (t.onerror = function() { - n(t.error); - }); - }); - } - function m(t) { - var e = new FileReader(), - n = v(e); - return e.readAsArrayBuffer(t), n; - } - function y(t) { - if (t.slice) return t.slice(0); - var e = new Uint8Array(t.byteLength); - return e.set(new Uint8Array(t)), e.buffer; - } - function b() { - return ( - (this.bodyUsed = !1), - (this._initBody = function(t) { - if (((this._bodyInit = t), t)) - if ('string' == typeof t) this._bodyText = t; - else if (r && Blob.prototype.isPrototypeOf(t)) - this._bodyBlob = t; - else if (i && FormData.prototype.isPrototypeOf(t)) - this._bodyFormData = t; - else if ( - e && - URLSearchParams.prototype.isPrototypeOf(t) - ) - this._bodyText = t.toString(); - else if (o && r && s(t)) - (this._bodyArrayBuffer = y(t.buffer)), - (this._bodyInit = new Blob([ - this._bodyArrayBuffer - ])); - else { - if ( - !o || - (!ArrayBuffer.prototype.isPrototypeOf(t) && !u(t)) - ) - throw new Error('unsupported BodyInit type'); - this._bodyArrayBuffer = y(t); - } - else this._bodyText = ''; - this.headers.get('content-type') || - ('string' == typeof t - ? this.headers.set( - 'content-type', - 'text/plain;charset=UTF-8' - ) - : this._bodyBlob && this._bodyBlob.type - ? this.headers.set( - 'content-type', - this._bodyBlob.type - ) - : e && - URLSearchParams.prototype.isPrototypeOf(t) && - this.headers.set( - 'content-type', - 'application/x-www-form-urlencoded;charset=UTF-8' - )); - }), - r && - ((this.blob = function() { - var t = g(this); - if (t) return t; - if (this._bodyBlob) - return Promise.resolve(this._bodyBlob); - if (this._bodyArrayBuffer) - return Promise.resolve( - new Blob([this._bodyArrayBuffer]) - ); - if (this._bodyFormData) - throw new Error( - 'could not read FormData body as blob' - ); - return Promise.resolve(new Blob([this._bodyText])); - }), - (this.arrayBuffer = function() { - return this._bodyArrayBuffer - ? g(this) || Promise.resolve(this._bodyArrayBuffer) - : this.blob().then(m); - })), - (this.text = function() { - var t, - e, - n, - r = g(this); - if (r) return r; - if (this._bodyBlob) - return ( - (t = this._bodyBlob), - (e = new FileReader()), - (n = v(e)), - e.readAsText(t), - n - ); - if (this._bodyArrayBuffer) - return Promise.resolve( - (function(t) { - for ( - var e = new Uint8Array(t), - n = new Array(e.length), - r = 0; - r < e.length; - r++ - ) - n[r] = String.fromCharCode(e[r]); - return n.join(''); - })(this._bodyArrayBuffer) - ); - if (this._bodyFormData) - throw new Error('could not read FormData body as text'); - return Promise.resolve(this._bodyText); - }), - i && - (this.formData = function() { - return this.text().then(x); - }), - (this.json = function() { - return this.text().then(JSON.parse); - }), - this - ); - } - function _(t, e) { - var n, - r, - i = (e = e || {}).body; - if (t instanceof _) { - if (t.bodyUsed) throw new TypeError('Already read'); - (this.url = t.url), - (this.credentials = t.credentials), - e.headers || (this.headers = new p(t.headers)), - (this.method = t.method), - (this.mode = t.mode), - i || - null == t._bodyInit || - ((i = t._bodyInit), (t.bodyUsed = !0)); - } else this.url = String(t); - if ( - ((this.credentials = - e.credentials || this.credentials || 'omit'), - (!e.headers && this.headers) || - (this.headers = new p(e.headers)), - (this.method = - ((n = e.method || this.method || 'GET'), - (r = n.toUpperCase()), - l.indexOf(r) > -1 ? r : n)), - (this.mode = e.mode || this.mode || null), - (this.referrer = null), - ('GET' === this.method || 'HEAD' === this.method) && i) - ) - throw new TypeError( - 'Body not allowed for GET or HEAD requests' - ); - this._initBody(i); - } - function x(t) { - var e = new FormData(); - return ( - t - .trim() - .split('&') - .forEach(function(t) { - if (t) { - var n = t.split('='), - r = n.shift().replace(/\+/g, ' '), - i = n.join('=').replace(/\+/g, ' '); - e.append( - decodeURIComponent(r), - decodeURIComponent(i) - ); - } - }), - e - ); - } - function w(t, e) { - e || (e = {}), - (this.type = 'default'), - (this.status = void 0 === e.status ? 200 : e.status), - (this.ok = this.status >= 200 && this.status < 300), - (this.statusText = 'statusText' in e ? e.statusText : 'OK'), - (this.headers = new p(e.headers)), - (this.url = e.url || ''), - this._initBody(t); - } - })('undefined' != typeof self ? self : this); - }, - function(t) { - t.exports = { - name: 'keen-analysis', - version: '3.5.0', - description: 'A JavaScript client for Keen.IO', - main: 'dist/node/keen-analysis.js', - browser: 'dist/keen-analysis.js', - scripts: { - start: 'NODE_ENV=development webpack-dev-server', - test: 'NODE_ENV=test jest && npm run test:node', - 'test:node': 'NODE_ENV=test TEST_ENV=node jest', - 'test:watch': 'NODE_ENV=test jest --watch', - 'test:node:watch': 'NODE_ENV=test TEST_ENV=node jest --watch', - build: - 'NODE_ENV=production webpack -p && NODE_ENV=production OPTIMIZE_MINIMIZE=1 webpack -p && npm run build:node && npm run build:modules && npm run build:modules:node', - 'build:node': 'TARGET=node NODE_ENV=production webpack -p', - 'build:modules': - 'NODE_ENV=production webpack -p --config webpack.modules.config.js', - 'build:modules:node': - 'NODE_ENV=production TARGET=node webpack -p --config webpack.modules.config.js', - profile: 'webpack --profile --json > stats.json', - analyze: 'webpack-bundle-analyzer stats.json /dist', - preversion: 'npm run build && npm run test', - version: 'npm run build && git add .', - postversion: 'git push && git push --tags && npm publish', - demo: 'npm run build:node && node ./test/demo/index.node.js' - }, - repository: { - type: 'git', - url: 'git+https://github.com/keen/keen-analysis.js.git' - }, - author: 'Keen IO ', - homepage: 'https://keen.io/', - contributors: [ - 'Dustin Larimer (https://github.com/dustinlarimer)', - 'Adam Kasprowicz (https://github.com/adamkasprowicz)', - 'Dariusz Łacheta (https://github.com/dariuszlacheta)' - ], - keywords: [ - 'Analytics', - 'Analysis', - 'Conversion', - 'Query', - 'Stats', - 'Client', - 'Min', - 'Max', - 'Count', - 'Percentile', - 'Average', - 'Median', - 'Keen', - 'Keen Query' - ], - license: 'MIT', - bugs: { - url: 'https://github.com/keen/keen-analysis.js/issues' - }, - dependencies: { - crossfilter2: '^1.4.6', - csvtojson: '^2.0.8', - 'keen-core': '^0.2.0', - moment: '^2.22.2', - 'promise-polyfill': '^8.0.0', - 'whatwg-fetch': '^2.0.4' - }, - devDependencies: { - 'abortcontroller-polyfill': '^1.1.9', - 'babel-loader': '^7.1.4', - 'babel-plugin-transform-es2015-modules-commonjs': '^6.26.2', - 'babel-plugin-transform-object-rest-spread': '^6.26.0', - 'babel-preset-env': '^1.7.0', - del: '^2.1.0', - eslint: '^4.19.1', - 'eslint-config-airbnb': '^16.1.0', - 'eslint-loader': '^2.0.0', - 'eslint-plugin-import': '^2.11.0', - 'eslint-plugin-jsx-a11y': '^6.0.3', - 'fake-indexeddb': '^2.0.4', - 'html-loader': '^0.5.5', - 'html-webpack-plugin': '^3.2.0', - jest: '^22.4.3', - 'jest-fetch-mock': '^1.6.5', - merge: '^1.2.1', - nock: '^9.2.6', - 'regenerator-runtime': '^0.11.1', - requirejs: '^2.1.22', - through2: '^2.0.0', - 'url-parse': '^1.4.3', - webpack: '^4.5.0', - 'webpack-bundle-analyzer': '^3.3.2', - 'webpack-cli': '^2.0.13', - 'webpack-dev-server': '^3.1.14', - 'xhr-mock': '^2.3.2' - } - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - }; - e.mapKeysToUnderscore = function t(e) { - var n = ['cache']; - if (!e || 'object' !== (void 0 === e ? 'undefined' : r(e))) - return e; - var i = Object.keys(e) || [], - o = {}; - return ( - i.forEach(function(i) { - var a = e[i]; - return n.includes(i) - ? (o[i] = a) - : (i.match(new RegExp('[A-Z]')) && - (i = i.replace(/[A-Z]/g, function(t) { - return '_' + t.toLowerCase(); - })), - Array.isArray(a) - ? (o[i] = a.map(function(e) { - return t(e); - })) - : 'object' === (void 0 === a ? 'undefined' : r(a)) - ? (o[i] = t(a)) - : void (o[i] = a)); - }), - o - ); - }; - }, - function(t, e, n) { - var r = n(1); - n(0), - (t.exports = function(t) { - var e = []; - return ( - r(t, function(t, n) { - 'string' != typeof t && (t = JSON.stringify(t)), - e.push(n + '=' + encodeURIComponent(t)); - }), - e.join('&') - ); - }); - }, - function(t, e, n) { - 'use strict'; - (function(t) { - var r = n(4), - i = setTimeout; - function o() {} - function a(t) { - if (!(this instanceof a)) - throw new TypeError('Promises must be constructed via new'); - if ('function' != typeof t) - throw new TypeError('not a function'); - (this._state = 0), - (this._handled = !1), - (this._value = void 0), - (this._deferreds = []), - d(t, this); - } - function s(t, e) { - for (; 3 === t._state; ) t = t._value; - 0 !== t._state - ? ((t._handled = !0), - a._immediateFn(function() { - var n = 1 === t._state ? e.onFulfilled : e.onRejected; - if (null !== n) { - var r; - try { - r = n(t._value); - } catch (t) { - return void l(e.promise, t); - } - u(e.promise, r); - } else (1 === t._state ? u : l)(e.promise, t._value); - })) - : t._deferreds.push(e); - } - function u(t, e) { - try { - if (e === t) - throw new TypeError( - 'A promise cannot be resolved with itself.' - ); - if (e && ('object' == typeof e || 'function' == typeof e)) { - var n = e.then; - if (e instanceof a) - return (t._state = 3), (t._value = e), void c(t); - if ('function' == typeof n) - return void d( - ((r = n), - (i = e), - function() { - r.apply(i, arguments); - }), - t - ); - } - (t._state = 1), (t._value = e), c(t); - } catch (e) { - l(t, e); - } - var r, i; - } - function l(t, e) { - (t._state = 2), (t._value = e), c(t); - } - function c(t) { - 2 === t._state && - 0 === t._deferreds.length && - a._immediateFn(function() { - t._handled || a._unhandledRejectionFn(t._value); - }); - for (var e = 0, n = t._deferreds.length; e < n; e++) - s(t, t._deferreds[e]); - t._deferreds = null; - } - function f(t, e, n) { - (this.onFulfilled = 'function' == typeof t ? t : null), - (this.onRejected = 'function' == typeof e ? e : null), - (this.promise = n); - } - function d(t, e) { - var n = !1; - try { - t( - function(t) { - n || ((n = !0), u(e, t)); - }, - function(t) { - n || ((n = !0), l(e, t)); - } - ); - } catch (t) { - if (n) return; - (n = !0), l(e, t); - } - } - (a.prototype.catch = function(t) { - return this.then(null, t); - }), - (a.prototype.then = function(t, e) { - var n = new this.constructor(o); - return s(this, new f(t, e, n)), n; - }), - (a.prototype.finally = r.a), - (a.all = function(t) { - return new a(function(e, n) { - if (!t || void 0 === t.length) - throw new TypeError('Promise.all accepts an array'); - var r = Array.prototype.slice.call(t); - if (0 === r.length) return e([]); - var i = r.length; - function o(t, a) { - try { - if ( - a && - ('object' == typeof a || 'function' == typeof a) - ) { - var s = a.then; - if ('function' == typeof s) - return void s.call( - a, - function(e) { - o(t, e); - }, - n - ); - } - (r[t] = a), 0 == --i && e(r); - } catch (t) { - n(t); - } - } - for (var a = 0; a < r.length; a++) o(a, r[a]); - }); - }), - (a.resolve = function(t) { - return t && 'object' == typeof t && t.constructor === a - ? t - : new a(function(e) { - e(t); - }); - }), - (a.reject = function(t) { - return new a(function(e, n) { - n(t); - }); - }), - (a.race = function(t) { - return new a(function(e, n) { - for (var r = 0, i = t.length; r < i; r++) t[r].then(e, n); - }); - }), - (a._immediateFn = - ('function' == typeof t && - function(e) { - t(e); - }) || - function(t) { - i(t, 0); - }), - (a._unhandledRejectionFn = function(t) { - 'undefined' != typeof console && - console && - console.warn('Possible Unhandled Promise Rejection:', t); - }), - (e.a = a); - }.call(this, n(21).setImmediate)); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = (e.MD5 = function(t) { - return (function(t) { - for ( - var e, n = '0123456789ABCDEF', r = '', i = 0; - i < t.length; - i++ - ) - (e = t.charCodeAt(i)), - (r += n.charAt((e >>> 4) & 15) + n.charAt(15 & e)); - return r; - })( - (function(t) { - for (var e = '', n = 0; n < 32 * t.length; n += 8) - e += String.fromCharCode((t[n >> 5] >>> n % 32) & 255); - return e; - })( - (function(t, e) { - (t[e >> 5] |= 128 << e % 32), - (t[14 + (((e + 64) >>> 9) << 4)] = e); - for ( - var n = 1732584193, - r = -271733879, - i = -1732584194, - c = 271733878, - f = 0; - f < t.length; - f += 16 - ) { - var d = n, - h = r, - p = i, - g = c; - (r = u( - (r = u( - (r = u( - (r = u( - (r = s( - (r = s( - (r = s( - (r = s( - (r = a( - (r = a( - (r = a( - (r = a( - (r = o( - (r = o( - (r = o( - (r = o( - r, - (i = o( - i, - (c = o( - c, - (n = o( - n, - r, - i, - c, - t[f + 0], - 7, - -680876936 - )), - r, - i, - t[f + 1], - 12, - -389564586 - )), - n, - r, - t[f + 2], - 17, - 606105819 - )), - c, - n, - t[f + 3], - 22, - -1044525330 - )), - (i = o( - i, - (c = o( - c, - (n = o( - n, - r, - i, - c, - t[f + 4], - 7, - -176418897 - )), - r, - i, - t[f + 5], - 12, - 1200080426 - )), - n, - r, - t[f + 6], - 17, - -1473231341 - )), - c, - n, - t[f + 7], - 22, - -45705983 - )), - (i = o( - i, - (c = o( - c, - (n = o( - n, - r, - i, - c, - t[f + 8], - 7, - 1770035416 - )), - r, - i, - t[f + 9], - 12, - -1958414417 - )), - n, - r, - t[f + 10], - 17, - -42063 - )), - c, - n, - t[f + 11], - 22, - -1990404162 - )), - (i = o( - i, - (c = o( - c, - (n = o( - n, - r, - i, - c, - t[f + 12], - 7, - 1804603682 - )), - r, - i, - t[f + 13], - 12, - -40341101 - )), - n, - r, - t[f + 14], - 17, - -1502002290 - )), - c, - n, - t[f + 15], - 22, - 1236535329 - )), - (i = a( - i, - (c = a( - c, - (n = a( - n, - r, - i, - c, - t[f + 1], - 5, - -165796510 - )), - r, - i, - t[f + 6], - 9, - -1069501632 - )), - n, - r, - t[f + 11], - 14, - 643717713 - )), - c, - n, - t[f + 0], - 20, - -373897302 - )), - (i = a( - i, - (c = a( - c, - (n = a( - n, - r, - i, - c, - t[f + 5], - 5, - -701558691 - )), - r, - i, - t[f + 10], - 9, - 38016083 - )), - n, - r, - t[f + 15], - 14, - -660478335 - )), - c, - n, - t[f + 4], - 20, - -405537848 - )), - (i = a( - i, - (c = a( - c, - (n = a( - n, - r, - i, - c, - t[f + 9], - 5, - 568446438 - )), - r, - i, - t[f + 14], - 9, - -1019803690 - )), - n, - r, - t[f + 3], - 14, - -187363961 - )), - c, - n, - t[f + 8], - 20, - 1163531501 - )), - (i = a( - i, - (c = a( - c, - (n = a( - n, - r, - i, - c, - t[f + 13], - 5, - -1444681467 - )), - r, - i, - t[f + 2], - 9, - -51403784 - )), - n, - r, - t[f + 7], - 14, - 1735328473 - )), - c, - n, - t[f + 12], - 20, - -1926607734 - )), - (i = s( - i, - (c = s( - c, - (n = s( - n, - r, - i, - c, - t[f + 5], - 4, - -378558 - )), - r, - i, - t[f + 8], - 11, - -2022574463 - )), - n, - r, - t[f + 11], - 16, - 1839030562 - )), - c, - n, - t[f + 14], - 23, - -35309556 - )), - (i = s( - i, - (c = s( - c, - (n = s( - n, - r, - i, - c, - t[f + 1], - 4, - -1530992060 - )), - r, - i, - t[f + 4], - 11, - 1272893353 - )), - n, - r, - t[f + 7], - 16, - -155497632 - )), - c, - n, - t[f + 10], - 23, - -1094730640 - )), - (i = s( - i, - (c = s( - c, - (n = s( - n, - r, - i, - c, - t[f + 13], - 4, - 681279174 - )), - r, - i, - t[f + 0], - 11, - -358537222 - )), - n, - r, - t[f + 3], - 16, - -722521979 - )), - c, - n, - t[f + 6], - 23, - 76029189 - )), - (i = s( - i, - (c = s( - c, - (n = s( - n, - r, - i, - c, - t[f + 9], - 4, - -640364487 - )), - r, - i, - t[f + 12], - 11, - -421815835 - )), - n, - r, - t[f + 15], - 16, - 530742520 - )), - c, - n, - t[f + 2], - 23, - -995338651 - )), - (i = u( - i, - (c = u( - c, - (n = u( - n, - r, - i, - c, - t[f + 0], - 6, - -198630844 - )), - r, - i, - t[f + 7], - 10, - 1126891415 - )), - n, - r, - t[f + 14], - 15, - -1416354905 - )), - c, - n, - t[f + 5], - 21, - -57434055 - )), - (i = u( - i, - (c = u( - c, - (n = u(n, r, i, c, t[f + 12], 6, 1700485571)), - r, - i, - t[f + 3], - 10, - -1894986606 - )), - n, - r, - t[f + 10], - 15, - -1051523 - )), - c, - n, - t[f + 1], - 21, - -2054922799 - )), - (i = u( - i, - (c = u( - c, - (n = u(n, r, i, c, t[f + 8], 6, 1873313359)), - r, - i, - t[f + 15], - 10, - -30611744 - )), - n, - r, - t[f + 6], - 15, - -1560198380 - )), - c, - n, - t[f + 13], - 21, - 1309151649 - )), - (i = u( - i, - (c = u( - c, - (n = u(n, r, i, c, t[f + 4], 6, -145523070)), - r, - i, - t[f + 11], - 10, - -1120210379 - )), - n, - r, - t[f + 2], - 15, - 718787259 - )), - c, - n, - t[f + 9], - 21, - -343485551 - )), - (n = l(n, d)), - (r = l(r, h)), - (i = l(i, p)), - (c = l(c, g)); - } - return Array(n, r, i, c); - })( - (function(t) { - for ( - var e = Array(t.length >> 2), n = 0; - n < e.length; - n++ - ) - e[n] = 0; - for (n = 0; n < 8 * t.length; n += 8) - e[n >> 5] |= (255 & t.charCodeAt(n / 8)) << n % 32; - return e; - })(t), - 8 * t.length - ) - ) - ).toLowerCase(); - }); - function i(t, e, n, r, i, o) { - return l( - (function(t, e) { - return (t << e) | (t >>> (32 - e)); - })(l(l(e, t), l(r, o)), i), - n - ); - } - function o(t, e, n, r, o, a, s) { - return i((e & n) | (~e & r), t, e, o, a, s); - } - function a(t, e, n, r, o, a, s) { - return i((e & r) | (n & ~r), t, e, o, a, s); - } - function s(t, e, n, r, o, a, s) { - return i(e ^ n ^ r, t, e, o, a, s); - } - function u(t, e, n, r, o, a, s) { - return i(n ^ (e | ~r), t, e, o, a, s); - } - function l(t, e) { - var n = (65535 & t) + (65535 & e); - return ( - (((t >> 16) + (e >> 16) + (n >> 16)) << 16) | (65535 & n) - ); - } - e.default = r; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.getFromCache = e.saveToCache = void 0); - var r = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }; - n(3), n(5); - var i, - o = n(10), - a = (i = o) && i.__esModule ? i : { default: i }, - s = 'indexedDB' in self, - u = !0; - s || (u = !1); - var l = void 0, - c = { - dbName: 'keenAnalysisIndexedDB', - dbCollectionName: 'requests', - dbCollectionKey: 'url', - maxAge: 6e4 - }; - function f() { - var t = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : {}; - return l - ? Promise.resolve() - : u - ? ((c = r({}, c, t)), - new Promise(function(t, e) { - var n = self.indexedDB.open(c.dbName); - (n.onerror = function(e) { - (u = !1), t(); - }), - (n.onupgradeneeded = function(t) { - var e = t.target.result.createObjectStore( - c.dbCollectionName, - { keyPath: c.dbCollectionKey } - ); - e.createIndex(c.dbCollectionKey, c.dbCollectionKey, { - unique: !0 - }), - e.createIndex('expiryTime', 'expiryTime', { - unique: !1 - }); - }), - (n.onsuccess = function(e) { - ((l = e.target.result).onerror = function(t) { - u = !1; - }), - t(l); - }); - })) - : Promise.resolve(); - } - var d = function(t, e) { - return (0, a.default)(t + '&body=' + JSON.stringify(e.body)); - }; - (e.saveToCache = function(t, e, n) { - return f().then(function() { - var r = l - .transaction(c.dbCollectionName, 'readwrite') - .objectStore(c.dbCollectionName) - .add({ - url: d(t, e), - expiryTime: Date.now() + c.maxAge, - responseJson: n - }); - (r.onsuccess = function(t) {}), - (r.onerror = function(t) { - u = !1; - }); - }); - }), - (e.getFromCache = function t(e, n) { - var r = - arguments.length > 2 && void 0 !== arguments[2] - ? arguments[2] - : {}; - return f(r.cache).then(function() { - return new Promise(function(i, o) { - if (!u) return i(null); - var a = l - .transaction(c.dbCollectionName, 'readwrite') - .objectStore(c.dbCollectionName) - .index('expiryTime'), - s = IDBKeyRange.upperBound(Date.now(), !0); - a.openCursor(s).onsuccess = function(t) { - var e = t.target.result; - e && - (l - .transaction(c.dbCollectionName, 'readwrite') - .objectStore(c.dbCollectionName) - .delete(t.target.result.value[c.dbCollectionKey]), - e.continue()); - }; - var f = l - .transaction(c.dbCollectionName, 'readwrite') - .objectStore(c.dbCollectionName) - .index(c.dbCollectionKey) - .get(d(e, n)); - (f.onsuccess = function(o) { - if ( - !o.target.result || - o.target.result.expiryTime < Date.now() - ) { - if ( - o.target.result && - o.target.result.expiryTime < Date.now() - ) { - var a = l - .transaction(c.dbCollectionName, 'readwrite') - .objectStore(c.dbCollectionName) - .delete(o.target.result[c.dbCollectionKey]); - return ( - (a.onsuccess = function(o) { - i(t(e, n, r)); - }), - (a.onerror = function(o) { - (u = !1), i(t(e, n, r)); - }), - i(null) - ); - } - return i(null); - } - return i(o.target.result.responseJson); - }), - (f.onerror = function(o) { - (u = !1), i(t(e, n, r)); - }); - }); - }); - }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.DEL = e.PUT = e.POST = e.GET = void 0); - var r = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - }, - i = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }; - n(3), n(5); - var o = l(n(1)), - a = l(n(0)), - s = l(n(8)), - u = n(11); - function l(t) { - return t && t.__esModule ? t : { default: t }; - } - var c = function t(e, n) { - var l = - arguments.length > 2 && void 0 !== arguments[2] - ? arguments[2] - : {}, - c = {}, - f = n.url; - ('GET' !== e && 'DELETE' !== e) || - (-1 === f.indexOf('?') ? (f += '?') : (f += '&'), - n.api_key && (f += 'api_key=' + n.api_key + '&'), - n.params && (f += (0, s.default)(n.params))), - (0, o.default)(n.headers, function(t, e) { - 'string' == typeof t && (c[e] = t); - }); - var d = { - method: e, - body: - 'GET' !== e && n.params - ? JSON.stringify(n.params) - : void 0, - mode: 'cors', - headers: c - }; - if ( - n.cache && - 'DELETE' !== e && - 'PUT' !== e && - !l.notFoundInCache - ) - return (0, u.getFromCache)(f, d, n).then(function(r) { - if (r) return l.resolve(r); - t(e, n, i({}, l, { notFoundInCache: !0 })); - }); - var h = void 0; - fetch(f, i({}, d, { signal: l.signal })) - .catch(function(t) { - l.reject(t); - }) - .then(function(t) { - if (t) - return (h = t), t.ok && 'DELETE' === e ? {} : t.json(); - }) - .then(function(t) { - if (t) { - if (t.error_code || !h.ok) - return l.reject({ - ok: !1, - error_code: t.error_code, - body: t.message, - status: h.status, - statusText: h.statusText - }); - n.cache && - 'DELETE' !== e && - 'PUT' !== e && - (0, u.saveToCache)(f, d, t); - var i = (0, a.default)({}, n); - if ( - (Array.isArray(t.result) - ? n.params.interval - ? n.params.group_by - ? 'extraction' === n.params.analysis_type - ? l.resolve(t) - : t.result && - Array.isArray(t.result) && - t.result.forEach(function(t) { - return t.value - ? Array.isArray(t.value) - ? void t.value.forEach(function(t) { - isNaN(Number(t.result)) || - (t.result = Number(t.result)); - }) - : t.value - : t; - }) - : t.result.forEach(function(t) { - isNaN(Number(t.value)) || - (t.value = Number(t.value)); - }) - : t.result.forEach(function(t) { - isNaN(Number(t.result)) || - (t.result = Number(t.result)); - }) - : isNaN(Number(t.result)) || - (t.result = Number(t.result)), - n.resultParsers) - ) - if (Array.isArray(t.result)) - n.params.interval - ? n.params.group_by - ? t.result.forEach(function(t) { - t.value.forEach(function(t) { - var e = void 0; - n.resultParsers.forEach(function(n) { - e = n(e || t.result); - }), - (t.result = e); - }); - }) - : t.result.forEach(function(t) { - var e = void 0; - n.resultParsers.forEach(function(n) { - e = n(e || t.value); - }), - (t.value = e); - }) - : t.result.forEach(function(t) { - var e = void 0; - n.resultParsers.forEach(function(n) { - e = n(e || t.result); - }), - (t.result = e); - }); - else if ('object' === r(t.result)) - Object.keys(t.result).forEach(function(e) { - var r = void 0; - n.resultParsers.forEach(function(n) { - r = n(r || t.result[e]); - }), - (t.result[e] = r); - }); - else { - var o = void 0; - n.resultParsers.forEach(function(e) { - o = e(o || t.result); - }), - (t.result = o); - } - if ( - i.params && - void 0 !== i.params.event_collection && - void 0 === t.query - ) { - var s = (0, a.default)({ query: i.params }, t); - l.resolve(s); - } - l.resolve(t); - } - }); - }, - f = function() { - var t = window || void 0; - if ( - t.XMLHttpRequest && - (!t.ActiveXObject || - (t.location && - t.location.protocol && - 'file:' !== t.location.protocol)) - ) - return new XMLHttpRequest(); - try { - return new ActiveXObject('Microsoft.XMLHTTP'); - } catch (t) {} - try { - return new ActiveXObject('Msxml2.XMLHTTP.6.0'); - } catch (t) {} - try { - return new ActiveXObject('Msxml2.XMLHTTP.3.0'); - } catch (t) {} - try { - return new ActiveXObject('Msxml2.XMLHTTP'); - } catch (t) {} - return !1; - }, - d = function(t, e) { - var n = - arguments.length > 2 && void 0 !== arguments[2] - ? arguments[2] - : {}, - r = f(), - i = n.callback, - a = e.url; - return ( - (r.onreadystatechange = function() { - var t = void 0; - if (4 == r.readyState) - if (r.status >= 200 && r.status < 300) - if (204 === r.status) i && i(null, r); - else - try { - (t = JSON.parse(r.responseText)), - i && t && i(null, t); - } catch (t) { - i && i(r, null); - } - else - try { - (t = JSON.parse(r.responseText)), - i && t && i(t, null); - } catch (t) { - i && i(r, null); - } - }), - 'GET' !== t - ? (r.open(t, a, !0), - (0, o.default)(e.headers, function(t, e) { - 'string' == typeof t && r.setRequestHeader(e, t); - }), - e.params ? r.send(JSON.stringify(e.params)) : r.send()) - : ((a += '?'), - e.api_key && (a += 'api_key=' + e.api_key + '&'), - e.params && (a += (0, s.default)(e.params)), - r.open(t, a, !0), - (0, o.default)(e.headers, function(t, e) { - 'string' == typeof t && r.setRequestHeader(e, t); - }), - r.send()), - r - ); - }; - (e.GET = function(t, e) { - return 'undefined' != typeof fetch - ? c('GET', t, e) - : f() - ? d('GET', t, e) - : (function(t) { - var e = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : {}, - n = t.url, - r = e.callback, - i = new Date().getTime(), - o = document.createElement('script'), - a = document.getElementsByTagName('head')[0], - u = 'keenJSONPCallback', - l = !1; - for (u += i; u in window; ) u += 'a'; - (window[u] = function(t) { - !0 !== l && c(null, t); - }), - t.params && (n += (0, s.default)(t.params)), - (o.onreadystatechange = function() { - !1 === l && - 'loaded' === this.readyState && - c('An error occurred', null); - }), - (o.onerror = function() { - !1 === l && c('An error occurred', null); - }), - (o.src = n + '&jsonp=' + u), - a.appendChild(o); - var c = function(t, e) { - (l = !0), - r && - 'function' == typeof r && - (r(t, e), (r = void 0)), - (window[u] = void 0); - try { - delete window[u]; - } catch (t) {} - a.removeChild(o); - }; - })(t, e); - }), - (e.POST = function(t, e) { - return 'undefined' != typeof fetch - ? c('POST', t, e) - : f() - ? d('POST', t, e) - : void e.reject('XHR POST not supported'); - }), - (e.PUT = function(t, e) { - return 'undefined' != typeof fetch - ? c('PUT', t, e) - : f() - ? d('PUT', t, e) - : void e.reject('XHR PUT not supported'); - }), - (e.DEL = function(t, e) { - return 'undefined' != typeof fetch - ? c('DELETE', t, e) - : f() - ? d('DELETE', t, e) - : void e.reject('XHR DELETE not supported'); - }); - }, - function(t, e, n) { - (function(t) { - !(function() { - 'use strict'; - var e = function(t, e) { - if (!(t instanceof e)) - throw new TypeError( - 'Cannot call a class as a function' - ); - }, - n = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - r = (function(t) { - function r() { - e(this, r); - var t = (function(t, e) { - if (!t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !e || - ('object' != typeof e && 'function' != typeof e) - ? t - : e; - })( - this, - (r.__proto__ || Object.getPrototypeOf(r)).call(this) - ); - return (t.aborted = !1), (t.onabort = null), t; - } - return ( - (function(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof e - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { - value: t, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - e && - (Object.setPrototypeOf - ? Object.setPrototypeOf(t, e) - : (t.__proto__ = e)); - })(r, t), - n(r, [ - { - key: 'toString', - value: function() { - return '[object AbortSignal]'; - } - }, - { - key: 'dispatchEvent', - value: function(t) { - 'abort' === t.type && - ((this.aborted = !0), - 'function' == typeof this.onabort && - this.onabort.call(this, t)), - (function t(e, n, r) { - null === e && (e = Function.prototype); - var i = Object.getOwnPropertyDescriptor(e, n); - if (void 0 === i) { - var o = Object.getPrototypeOf(e); - return null === o ? void 0 : t(o, n, r); - } - if ('value' in i) return i.value; - var a = i.get; - return void 0 !== a ? a.call(r) : void 0; - })( - r.prototype.__proto__ || - Object.getPrototypeOf(r.prototype), - 'dispatchEvent', - this - ).call(this, t); - } - } - ]), - r - ); - })( - (function() { - function t() { - e(this, t), (this.listeners = {}); - } - return ( - n(t, [ - { - key: 'addEventListener', - value: function(t, e) { - t in this.listeners || (this.listeners[t] = []), - this.listeners[t].push(e); - } - }, - { - key: 'removeEventListener', - value: function(t, e) { - if (t in this.listeners) - for ( - var n = this.listeners[t], - r = 0, - i = n.length; - r < i; - r++ - ) - if (n[r] === e) return void n.splice(r, 1); - } - }, - { - key: 'dispatchEvent', - value: function(t) { - var e = this; - if (t.type in this.listeners) { - for ( - var n = function(n) { - setTimeout(function() { - return n.call(e, t); - }); - }, - r = this.listeners[t.type], - i = 0, - o = r.length; - i < o; - i++ - ) - n(r[i]); - return !t.defaultPrevented; - } - } - } - ]), - t - ); - })() - ), - i = (function() { - function t() { - e(this, t), (this.signal = new r()); - } - return ( - n(t, [ - { - key: 'abort', - value: function() { - var t = void 0; - try { - t = new Event('abort'); - } catch (e) { - 'undefined' != typeof document - ? (t = document.createEvent( - 'Event' - )).initEvent('abort', !1, !1) - : (t = { - type: 'abort', - bubbles: !1, - cancelable: !1 - }); - } - this.signal.dispatchEvent(t); - } - }, - { - key: 'toString', - value: function() { - return '[object AbortController]'; - } - } - ]), - t - ); - })(); - 'undefined' != typeof Symbol && - Symbol.toStringTag && - ((i.prototype[Symbol.toStringTag] = 'AbortController'), - (r.prototype[Symbol.toStringTag] = 'AbortSignal')), - (function(t) { - if (!t.AbortController) - if ( - ((t.AbortController = i), - (t.AbortSignal = r), - t.fetch) - ) { - var e = (function(t) { - 'function' == typeof t && (t = { fetch: t }); - var e = t, - n = e.fetch, - r = e.Request, - o = void 0 === r ? n.Request : r, - a = e.AbortController, - s = o; - if (s) { - var u = new (void 0 === a ? i : a)().signal; - if (new s('/', { signal: u }).signal) - return { fetch: n, Request: s }; - (s = function(t, e) { - var n = new o(t, e); - return ( - e && e.signal && (n.signal = e.signal), n - ); - }).prototype = o.prototype; - } - var l = n; - return { - fetch: function(t, e) { - var n = - s && s.prototype.isPrototypeOf(t) - ? t.signal - : e - ? e.signal - : void 0; - if (n) { - var r = void 0; - try { - r = new DOMException( - 'Aborted', - 'AbortError' - ); - } catch (t) { - (r = new Error('Aborted')).name = - 'AbortError'; - } - if (n.aborted) return Promise.reject(r); - var i = new Promise(function(t, e) { - n.addEventListener( - 'abort', - function() { - return e(r); - }, - { once: !0 } - ); - }); - return Promise.race([i, l(t, e)]); - } - return l(t, e); - }, - Request: s - }; - })(t), - n = e.fetch, - o = e.Request; - (t.fetch = n), (t.Request = o); - } else - console.warn( - 'fetch() is not available, cannot install abortcontroller-polyfill' - ); - })('undefined' != typeof self ? self : t); - })(); - }.call(this, n(2))); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - }, - i = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }; - e.default = c; - var o = l(n(1)), - a = l(n(0)); - n(13), n(3); - var s = n(7), - u = n(6); - function l(t) { - return t && t.__esModule ? t : { default: t }; - } - function c(t, e) { - return ( - (this.httpHandlers = e), - function(e) { - var n = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : {}; - if ('string' == typeof e) - return ( - (this.config = i( - { - api_key: void 0, - method: t, - params: {}, - url: e, - headers: { - Authorization: '', - 'Content-type': 'application/json', - 'keen-sdk': 'javascript-' + u.version - } - }, - n - )), - this - ); - if ( - (e && - e.params && - (e.params = (0, s.mapKeysToUnderscore)(e.params)), - 'DELETE' === t) - ) { - var r = e.url, - o = r, - a = '', - l = ['filters', 'timeframe', 'timezone']; - return ( - l.forEach(function(t) { - if (e[t]) { - var n = e[t]; - try { - n = JSON.parse(decodeURIComponent(e[t])); - } catch (r) { - n = e[t]; - } - Array.isArray(n) - ? (n = (0, s.mapKeysToUnderscore)({ vals: n }) - .vals) - : 'string' != typeof n && - (n = (0, s.mapKeysToUnderscore)(n)), - (a += - t + - '=' + - encodeURIComponent(JSON.stringify(n)) + - '&'); - } - }), - -1 === o.indexOf('?') && (o += '?'), - (o += a), - (this.config = i( - { - api_key: void 0, - params: {}, - method: t, - headers: { - Authorization: e.api_key || e.apiKey, - 'Content-type': 'application/json', - 'keen-sdk': 'javascript-' + u.version - } - }, - e, - n, - { url: o } - )), - this.send() - ); - } - return ( - (this.config = i( - { - api_key: void 0, - params: {}, - method: t, - headers: { - Authorization: e.api_key || e.apiKey, - 'Content-type': 'application/json', - 'keen-sdk': 'javascript-' + u.version - } - }, - e, - n - )), - this.send() - ); - }.bind(this) - ); - } - (c.prototype.auth = function(t) { - return ( - 'string' == typeof t && - ((this.config.api_key = 'string' == typeof t ? t : void 0), - this.headers({ Authorization: t })), - this - ); - }), - (c.prototype.headers = function(t) { - return ( - 'object' === (void 0 === t ? 'undefined' : r(t)) && - (0, o.default)( - t, - function(t, e) { - this.config.headers[e] = t; - }.bind(this) - ), - this - ); - }), - (c.prototype.timeout = function(t) { - return ( - (this.config.timeout = 'number' == typeof t ? t : 3e5), this - ); - }), - (c.prototype.send = function(t) { - if ( - this.config && - !this.config.api_key && - !this.config.apiKey - ) - throw new Error('Please provide a valid API key'); - t && - (this.config.params = - t && 'object' === (void 0 === t ? 'undefined' : r(t)) - ? (0, s.mapKeysToUnderscore)(t) - : {}); - var e = this.config.method; - 'DELETE' === e && (e = 'DEL'); - var n = this.httpHandlers[e], - i = (0, a.default)({}, this.config); - 'DELETE' !== this.config.method && - void 0 === i.params.analysis_type && - i.url.indexOf('/queries/') > -1 && - i.url.indexOf('/saved/') < 0 && - (i.params.analysis_type = i.url.split('/queries/').pop()); - var o = void 0; - 'undefined' != typeof AbortController && - (o = new AbortController()); - var u = void 0, - l = new Promise(function(t, e) { - var r = {}; - return ( - o && (r.signal = o.signal), - (r.resolve = t), - (r.reject = e), - (u = n(i, r)) - ); - }).then(function(t) { - return t; - }); - return ( - (l.abort = function() { - if (o) return o.abort(); - u.emit('abort'); - }), - l - ); - }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - }; - e.validateAuthCredentials = function(t) { - if ('object' === (void 0 === t ? 'undefined' : r(t))) { - if (!t.projectId) - throw new Error('Please provide valid project ID'); - if (!t.masterKey && !t.readKey) - throw new Error('Please provide valid API key'); - return !0; - } - }; - }, - function(t, e, n) { - function r(t) { - if (t) - return (function(t) { - for (var e in r.prototype) t[e] = r.prototype[e]; - return t; - })(t); - } - (t.exports = r), - (r.prototype.on = r.prototype.addEventListener = function( - t, - e - ) { - return ( - (this._callbacks = this._callbacks || {}), - (this._callbacks['$' + t] = - this._callbacks['$' + t] || []).push(e), - this - ); - }), - (r.prototype.once = function(t, e) { - function n() { - this.off(t, n), e.apply(this, arguments); - } - return (n.fn = e), this.on(t, n), this; - }), - (r.prototype.off = r.prototype.removeListener = r.prototype.removeAllListeners = r.prototype.removeEventListener = function( - t, - e - ) { - if ( - ((this._callbacks = this._callbacks || {}), - 0 == arguments.length) - ) - return (this._callbacks = {}), this; - var n, - r = this._callbacks['$' + t]; - if (!r) return this; - if (1 == arguments.length) - return delete this._callbacks['$' + t], this; - for (var i = 0; i < r.length; i++) - if ((n = r[i]) === e || n.fn === e) { - r.splice(i, 1); - break; - } - return this; - }), - (r.prototype.emit = function(t) { - this._callbacks = this._callbacks || {}; - var e = [].slice.call(arguments, 1), - n = this._callbacks['$' + t]; - if (n) - for (var r = 0, i = (n = n.slice(0)).length; r < i; ++r) - n[r].apply(this, e); - return this; - }), - (r.prototype.listeners = function(t) { - return ( - (this._callbacks = this._callbacks || {}), - this._callbacks['$' + t] || [] - ); - }), - (r.prototype.hasListeners = function(t) { - return !!this.listeners(t).length; - }); - }, - function(t, e) { - t.exports = function(t) { - for ( - var e, - n = {}, - r = /\+/g, - i = /([^&=]+)=?([^&]*)/g, - o = function(t) { - return decodeURIComponent(t.replace(r, ' ')); - }, - a = t.split('?')[1]; - (e = i.exec(a)); - - ) - n[o(e[1])] = o(e[2]); - return n; - }; - }, - function(t, e, n) { - (function(e) { - (function(e) { - var r, - i = e.Keen || void 0, - o = n(1), - a = n(0), - s = n(17), - u = n(8), - l = n(16); - function c(t) { - if (this instanceof c == 0) return new c(t); - this.configure(t), - c.debug && this.on('error', c.log), - this.emit('ready'), - c.emit('client', this); - } - function f(t) { - return void 0 !== t; - } - i && void 0 === i.resources && (c.legacyVersion = i), - l(c), - l(c.prototype), - a(c, { - debug: !1, - enabled: !0, - loaded: !1, - version: '__VERSION__' - }), - (c.helpers = c.helpers || {}), - (c.resources = c.resources || {}), - a(c.resources, { - base: '{protocol}://{host}', - version: '{protocol}://{host}/3.0', - projects: '{protocol}://{host}/3.0/projects', - projectId: '{protocol}://{host}/3.0/projects/{projectId}', - events: - '{protocol}://{host}/3.0/projects/{projectId}/events', - queries: - '{protocol}://{host}/3.0/projects/{projectId}/queries', - datasets: - '{protocol}://{host}/3.0/projects/{projectId}/datasets' - }), - (c.utils = c.utils || {}), - a(c.utils, { - each: o, - extend: a, - parseParams: s, - serialize: u - }), - (c.extendLibrary = function(t, e) { - var n = i || e; - return ( - f(n) && - f(n.resources) && - (o(n, function(e, n) { - 'object' == typeof e - ? ((t[n] = t[n] || {}), a(t[n], e)) - : (t[n] = t[n] || e); - }), - a(t.prototype, n.prototype)), - t - ); - }), - (c.log = function(t) { - c.debug && - 'object' == typeof console && - console.log('[Keen]', t); - }), - (c.noConflict = function() { - return ( - void 0 !== e.Keen && (e.Keen = c.legacyVersion || i), c - ); - }), - (c.ready = function(t) { - c.loaded ? t() : c.once('ready', t); - }), - (c.prototype.configure = function(t) { - var e = t || {}; - return ( - (this.config = this.config || { - projectId: void 0, - writeKey: void 0, - host: 'api.keen.io', - protocol: 'https', - requestType: 'jsonp', - resources: a({}, c.resources) - }), - 'undefined' != typeof window && - window.navigator && - window.navigator.userAgent && - window.navigator.userAgent.indexOf('MSIE') > -1 && - (e.protocol = document.location.protocol.replace( - ':', - '' - )), - e.host && e.host.replace(/.*?:\/\//g, ''), - a(this.config, e), - this - ); - }), - (c.prototype.masterKey = function(t) { - return arguments.length - ? ((this.config.masterKey = t ? String(t) : null), this) - : this.config.masterKey; - }), - (c.prototype.projectId = function(t) { - return arguments.length - ? ((this.config.projectId = t ? String(t) : null), this) - : this.config.projectId; - }), - (c.prototype.resources = function(t) { - if (!arguments.length) return this.config.resources; - var e = this; - return ( - 'object' == typeof t && - o(t, function(t, n) { - e.config.resources[n] = t || null; - }), - e - ); - }), - (c.prototype.url = function(t) { - var e, - n = Array.prototype.slice.call(arguments, 1), - r = this.config.resources.base || '{protocol}://{host}'; - return ( - (e = - t && 'string' == typeof t - ? this.config.resources[t] - ? this.config.resources[t] - : r + t - : r), - o(this.config, function(t, n) { - 'object' != typeof t && - (e = e.replace('{' + n + '}', t)); - }), - o(n, function(t, n) { - 'string' == typeof t - ? (e += '/' + t) - : 'object' == typeof t && - ((e += '?'), - o(t, function(t, n) { - e += n + '=' + t + '&'; - }), - (e = e.slice(0, -1))); - }), - e - ); - }), - (r = function() { - (c.loaded = !0), c.emit('ready'); - }), - c.loaded || 'undefined' == typeof document - ? r() - : (null == document.readyState && - document.addEventListener && - (document.addEventListener( - 'DOMContentLoaded', - function t() { - document.removeEventListener( - 'DOMContentLoaded', - t, - !1 - ), - (document.readyState = 'complete'); - }, - !1 - ), - (document.readyState = 'loading')), - (function t(e) { - /in/.test(document.readyState) - ? setTimeout(function() { - t(e); - }, 9) - : e(); - })(r)), - (t.exports = c); - }.call( - this, - 'undefined' != typeof window - ? window - : void 0 !== e - ? e - : 'undefined' != typeof self - ? self - : {} - )); - }.call(this, n(2))); - }, - function(t, e) { - var n, - r, - i = (t.exports = {}); - function o() { - throw new Error('setTimeout has not been defined'); - } - function a() { - throw new Error('clearTimeout has not been defined'); - } - function s(t) { - if (n === setTimeout) return setTimeout(t, 0); - if ((n === o || !n) && setTimeout) - return (n = setTimeout), setTimeout(t, 0); - try { - return n(t, 0); - } catch (e) { - try { - return n.call(null, t, 0); - } catch (e) { - return n.call(this, t, 0); - } - } - } - !(function() { - try { - n = 'function' == typeof setTimeout ? setTimeout : o; - } catch (t) { - n = o; - } - try { - r = 'function' == typeof clearTimeout ? clearTimeout : a; - } catch (t) { - r = a; - } - })(); - var u, - l = [], - c = !1, - f = -1; - function d() { - c && - u && - ((c = !1), - u.length ? (l = u.concat(l)) : (f = -1), - l.length && h()); - } - function h() { - if (!c) { - var t = s(d); - c = !0; - for (var e = l.length; e; ) { - for (u = l, l = []; ++f < e; ) u && u[f].run(); - (f = -1), (e = l.length); - } - (u = null), - (c = !1), - (function(t) { - if (r === clearTimeout) return clearTimeout(t); - if ((r === a || !r) && clearTimeout) - return (r = clearTimeout), clearTimeout(t); - try { - r(t); - } catch (e) { - try { - return r.call(null, t); - } catch (e) { - return r.call(this, t); - } - } - })(t); - } - } - function p(t, e) { - (this.fun = t), (this.array = e); - } - function g() {} - (i.nextTick = function(t) { - var e = new Array(arguments.length - 1); - if (arguments.length > 1) - for (var n = 1; n < arguments.length; n++) - e[n - 1] = arguments[n]; - l.push(new p(t, e)), 1 !== l.length || c || s(h); - }), - (p.prototype.run = function() { - this.fun.apply(null, this.array); - }), - (i.title = 'browser'), - (i.browser = !0), - (i.env = {}), - (i.argv = []), - (i.version = ''), - (i.versions = {}), - (i.on = g), - (i.addListener = g), - (i.once = g), - (i.off = g), - (i.removeListener = g), - (i.removeAllListeners = g), - (i.emit = g), - (i.prependListener = g), - (i.prependOnceListener = g), - (i.listeners = function(t) { - return []; - }), - (i.binding = function(t) { - throw new Error('process.binding is not supported'); - }), - (i.cwd = function() { - return '/'; - }), - (i.chdir = function(t) { - throw new Error('process.chdir is not supported'); - }), - (i.umask = function() { - return 0; - }); - }, - function(t, e, n) { - (function(t, e) { - !(function(t, n) { - 'use strict'; - if (!t.setImmediate) { - var r, - i, - o, - a, - s, - u = 1, - l = {}, - c = !1, - f = t.document, - d = Object.getPrototypeOf && Object.getPrototypeOf(t); - (d = d && d.setTimeout ? d : t), - '[object process]' === {}.toString.call(t.process) - ? (r = function(t) { - e.nextTick(function() { - p(t); - }); - }) - : (function() { - if (t.postMessage && !t.importScripts) { - var e = !0, - n = t.onmessage; - return ( - (t.onmessage = function() { - e = !1; - }), - t.postMessage('', '*'), - (t.onmessage = n), - e - ); - } - })() - ? ((a = 'setImmediate$' + Math.random() + '$'), - (s = function(e) { - e.source === t && - 'string' == typeof e.data && - 0 === e.data.indexOf(a) && - p(+e.data.slice(a.length)); - }), - t.addEventListener - ? t.addEventListener('message', s, !1) - : t.attachEvent('onmessage', s), - (r = function(e) { - t.postMessage(a + e, '*'); - })) - : t.MessageChannel - ? (((o = new MessageChannel()).port1.onmessage = function( - t - ) { - p(t.data); - }), - (r = function(t) { - o.port2.postMessage(t); - })) - : f && 'onreadystatechange' in f.createElement('script') - ? ((i = f.documentElement), - (r = function(t) { - var e = f.createElement('script'); - (e.onreadystatechange = function() { - p(t), - (e.onreadystatechange = null), - i.removeChild(e), - (e = null); - }), - i.appendChild(e); - })) - : (r = function(t) { - setTimeout(p, 0, t); - }), - (d.setImmediate = function(t) { - 'function' != typeof t && (t = new Function('' + t)); - for ( - var e = new Array(arguments.length - 1), n = 0; - n < e.length; - n++ - ) - e[n] = arguments[n + 1]; - var i = { callback: t, args: e }; - return (l[u] = i), r(u), u++; - }), - (d.clearImmediate = h); - } - function h(t) { - delete l[t]; - } - function p(t) { - if (c) setTimeout(p, 0, t); - else { - var e = l[t]; - if (e) { - c = !0; - try { - !(function(t) { - var e = t.callback, - n = t.args; - switch (n.length) { - case 0: - e(); - break; - case 1: - e(n[0]); - break; - case 2: - e(n[0], n[1]); - break; - case 3: - e(n[0], n[1], n[2]); - break; - default: - e.apply(void 0, n); - } - })(e); - } finally { - h(t), (c = !1); - } - } - } - } - })( - 'undefined' == typeof self ? (void 0 === t ? this : t) : self - ); - }.call(this, n(2), n(19))); - }, - function(t, e, n) { - (function(t) { - var r = - (void 0 !== t && t) || - ('undefined' != typeof self && self) || - window, - i = Function.prototype.apply; - function o(t, e) { - (this._id = t), (this._clearFn = e); - } - (e.setTimeout = function() { - return new o(i.call(setTimeout, r, arguments), clearTimeout); - }), - (e.setInterval = function() { - return new o( - i.call(setInterval, r, arguments), - clearInterval - ); - }), - (e.clearTimeout = e.clearInterval = function(t) { - t && t.close(); - }), - (o.prototype.unref = o.prototype.ref = function() {}), - (o.prototype.close = function() { - this._clearFn.call(r, this._id); - }), - (e.enroll = function(t, e) { - clearTimeout(t._idleTimeoutId), (t._idleTimeout = e); - }), - (e.unenroll = function(t) { - clearTimeout(t._idleTimeoutId), (t._idleTimeout = -1); - }), - (e._unrefActive = e.active = function(t) { - clearTimeout(t._idleTimeoutId); - var e = t._idleTimeout; - e >= 0 && - (t._idleTimeoutId = setTimeout(function() { - t._onTimeout && t._onTimeout(); - }, e)); - }), - n(20), - (e.setImmediate = - ('undefined' != typeof self && self.setImmediate) || - (void 0 !== t && t.setImmediate) || - (this && this.setImmediate)), - (e.clearImmediate = - ('undefined' != typeof self && self.clearImmediate) || - (void 0 !== t && t.clearImmediate) || - (this && this.clearImmediate)); - }.call(this, n(2))); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.KeenAnalysis = void 0); - var r = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }, - i = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - }; - n(3); - var o = f(n(18)), - a = f(n(1)), - s = f(n(0)), - u = n(15), - l = n(7), - c = f(n(6)); - function f(t) { - return t && t.__esModule ? t : { default: t }; - } - function d(t, e) { - var n = {}; - for (var r in t) - e.indexOf(r) >= 0 || - (Object.prototype.hasOwnProperty.call(t, r) && - (n[r] = t[r])); - return n; - } - function h(t) { - var e = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : {}, - n = - arguments.length > 2 && void 0 !== arguments[2] - ? arguments[2] - : {}; - (this.analysis = t), - (this.params = {}), - this.set(e), - (this.options = r({}, n)); - } - (o.default.prototype.readKey = function(t) { - return arguments.length - ? ((this.config.readKey = t ? String(t) : null), this) - : this.config.readKey; - }), - (o.default.prototype.query = function(t) { - var e = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : void 0, - n = - arguments.length > 2 && void 0 !== arguments[2] - ? arguments[2] - : {}; - (0, u.validateAuthCredentials)(this.config); - var o = { - a: (0, l.mapKeysToUnderscore)(t), - b: (0, l.mapKeysToUnderscore)(e) - }, - a = o.a, - c = o.b; - if ('object' === (void 0 === t ? 'undefined' : i(t)) && !e) { - var f = o.a, - h = f.analysis_type, - p = f.cache, - g = d(f, ['analysis_type', 'cache']); - (a = h), (c = g); - var v = this.config.cache; - void 0 !== p && (v = p), (n.cache = v); - } - if ( - ((n.resultParsers = this.config.resultParsers), - void 0 === n.cache && - this.config.cache && - (n.cache = r({}, this.config.cache)), - 'object' === (void 0 === c ? 'undefined' : i(c)) && - (this.config.includeMetadata || - this.config.include_metadata) && - (c.includeMetadata = !0), - a && c && 'string' == typeof c) - ) - return ( - c.indexOf('/result') < 0 && (c += '/result'), - this.get( - { - url: this.url('https://github.com/queries',%20a,%20c), - api_key: this.config.readKey || this.config.masterKey - }, - n - ) - ); - if (c && c.saved_query_name) { - var m = - c.saved_query_name.indexOf('/result') > -1 - ? c.saved_query_name - : c.saved_query_name + '/result'; - return this.get( - { - url: this.url('https://github.com/queries',%20'saved',%20m), - api_key: this.config.readKey || this.config.masterKey - }, - n - ); - } - if ( - 'dataset' === a && - 'object' === (void 0 === c ? 'undefined' : i(c)) - ) - return this.get( - { - url: this.url('https://github.com/datasets',%20c.name,%20'results'), - api_key: this.config.readKey || this.config.masterKey, - params: c - }, - n - ); - if (c && c.dataset_name) - return this.get( - { - url: this.url('https://github.com/datasets',%20c.dataset_name,%20'results'), - api_key: this.config.readKey || this.config.masterKey, - params: c - }, - n - ); - if ( - a && - c && - 'object' === (void 0 === c ? 'undefined' : i(c)) - ) { - var y = (0, s.default)({ analysis_type: a }, c); - return ( - y.timezone || - (y.timezone = -60 * new Date().getTimezoneOffset()), - this.post( - { - url: this.url('https://github.com/queries',%20a), - api_key: this.config.readKey || this.config.masterKey, - params: y - }, - n - ) - ); - } - return a && 'string' == typeof a && !c - ? Promise.reject({ - error_code: 'SDKError', - message: '.query() called with incorrect arguments' - }) - : void 0; - }), - (o.default.Query = h), - (o.default.prototype.run = function(t, e) { - var n = this, - r = e, - i = void 0, - u = t instanceof Array ? t : [t], - l = []; - return ( - (0, a.default)(u, function(t, e) { - var r = void 0; - (r = - 'string' == typeof t - ? n.query('saved', t + '/result') - : t instanceof o.default.Query - ? n.query( - t.analysis, - (0, s.default)( - { analysis_type: t.analysis }, - t.params - ), - t.options - ) - : t), - l.push(r); - }), - (i = l.length > 1 ? Promise.all(l) : l[0]), - r && - (i.then(function(t) { - r(null, t); - }), - i.catch(function(t) { - r(t, null); - })), - i - ); - }), - (h.prototype.set = function(t) { - var e = this; - return ( - (0, a.default)(t, function(t, n) { - var r = n, - o = t; - n.match(new RegExp('[A-Z]')) && - (r = n.replace(/([A-Z])/g, function(t) { - return '_' + t.toLowerCase(); - })), - (e.params[r] = o), - o instanceof Array && - (0, a.default)(o, function(t, n) { - t instanceof Array == 0 && - 'object' === - (void 0 === t ? 'undefined' : i(t)) && - (0, a.default)(t, function(t, i) { - if (i.match(new RegExp('[A-Z]'))) { - var o = i.replace(/([A-Z])/g, function(t) { - return '_' + t.toLowerCase(); - }); - delete e.params[r][n][i], - (e.params[r][n][o] = t); - } - }); - }); - }), - e - ); - }), - (h.prototype.get = function(t) { - var e = t; - if ( - (e.match(new RegExp('[A-Z]')) && - (e = e.replace(/([A-Z])/g, function(t) { - return '_' + t.toLowerCase(); - })), - this.params) - ) - return this.params[e] || null; - }), - (h.prototype.addFilter = function(t, e, n) { - return ( - (this.params.filters = this.params.filters || []), - this.params.filters.push({ - property_name: t, - operator: e, - property_value: n - }), - this - ); - }), - (o.default.version = c.default.version); - var p = (e.KeenAnalysis = o.default); - e.default = p; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.KeenAnalysis = e.Keen = e.keenGlobals = void 0), - a(n(0)); - var r = a(n(22)), - i = a(n(14)), - o = (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && - (e[n] = t[n]); - return (e.default = t), e; - })(n(12)); - function a(t) { - return t && t.__esModule ? t : { default: t }; - } - (r.default.prototype.get = new i.default('GET', o)), - (r.default.prototype.post = new i.default('POST', o)), - (r.default.prototype.put = new i.default('PUT', o)), - (r.default.prototype.del = new i.default('DELETE', o)), - (e.keenGlobals = void 0), - 'undefined' != typeof webpackKeenGlobals && - (e.keenGlobals = webpackKeenGlobals); - var s = (e.Keen = r.default.extendLibrary(r.default)); - (e.KeenAnalysis = s), (e.default = s); - }, - function(t, e, n) { - t.exports = n(23); - } - ]); - }), - (t.exports = r()); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - const r = n(442); - e.uuid = function() { - return r.v4(); - }; - const i = { - v4: /(?:^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}$)|(?:^0{8}-0{4}-0{4}-0{4}-0{12}$)/u, - v5: /(?:^[a-f0-9]{8}-[a-f0-9]{4}-5[a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}$)|(?:^0{8}-0{4}-0{4}-0{4}-0{12}$)/u - }; - e.regex = i; - e.isUuid = function(t) { - return i.v4.test(t) || i.v5.test(t); - }; - e.empty = function() { - return '00000000-0000-0000-0000-000000000000'; - }; - e.fromString = function(t) { - return r.v5(t, 'bb5d0ffa-9a4c-4d7c-8fc2-0a7d2220ba45'); - }; - }, - function(t, e, n) { - 'use strict'; - (function(e) { - var n = '__global_unique_id__'; - t.exports = function() { - return (e[n] = (e[n] || 0) + 1); - }; - }.call(this, n(13))); - }, - function(t, e, n) { - t.exports = (function() { - 'use strict'; - return function(t) { - function e(e) { - if (e) - try { - t(e + '}'); - } catch (t) {} - } - return function(n, r, i, o, a, s, u, l, c, f) { - switch (n) { - case 1: - if (0 === c && 64 === r.charCodeAt(0)) return t(r + ';'), ''; - break; - case 2: - if (0 === l) return r + '/*|*/'; - break; - case 3: - switch (l) { - case 102: - case 112: - return t(i[0] + r), ''; - default: - return r + (0 === f ? '/*|*/' : ''); - } - case -2: - r.split('/*|*/}').forEach(e); - } - }; - }; - })(); - }, - function(t, e, n) { - (function(e) { - for ( - var r = n(235), - i = 'undefined' == typeof window ? e : window, - o = ['moz', 'webkit'], - a = 'AnimationFrame', - s = i['request' + a], - u = i['cancel' + a] || i['cancelRequest' + a], - l = 0; - !s && l < o.length; - l++ - ) - (s = i[o[l] + 'Request' + a]), - (u = i[o[l] + 'Cancel' + a] || i[o[l] + 'CancelRequest' + a]); - if (!s || !u) { - var c = 0, - f = 0, - d = []; - (s = function(t) { - if (0 === d.length) { - var e = r(), - n = Math.max(0, 1e3 / 60 - (e - c)); - (c = n + e), - setTimeout(function() { - var t = d.slice(0); - d.length = 0; - for (var e = 0; e < t.length; e++) - if (!t[e].cancelled) - try { - t[e].callback(c); - } catch (t) { - setTimeout(function() { - throw t; - }, 0); - } - }, Math.round(n)); - } - return d.push({ handle: ++f, callback: t, cancelled: !1 }), f; - }), - (u = function(t) { - for (var e = 0; e < d.length; e++) - d[e].handle === t && (d[e].cancelled = !0); - }); - } - (t.exports = function(t) { - return s.call(i, t); - }), - (t.exports.cancel = function() { - u.apply(i, arguments); - }), - (t.exports.polyfill = function(t) { - t || (t = i), - (t.requestAnimationFrame = s), - (t.cancelAnimationFrame = u); - }); - }.call(this, n(13))); - }, - function(t, e, n) { - !(function(e) { - 'use strict'; - var n = (function() { - return { - escape: function(t) { - return t.replace(/([.*+?^${}()|\[\]\/\\])/g, '\\$1'); - }, - parseExtension: e, - mimeType: function(t) { - var n = e(t).toLowerCase(); - return ( - ((r = 'application/font-woff'), - { - woff: r, - woff2: r, - ttf: 'application/font-truetype', - eot: 'application/vnd.ms-fontobject', - png: 'image/png', - jpg: 'image/jpeg', - jpeg: 'image/jpeg', - gif: 'image/gif', - tiff: 'image/tiff', - svg: 'image/svg+xml' - })[n] || '' - ); - var r; - }, - dataAsUrl: function(t, e) { - return 'data:' + e + ';base64,' + t; - }, - isDataUrl: function(t) { - return -1 !== t.search(/^(data:)/); - }, - canvasToBlob: function(t) { - return t.toBlob - ? new Promise(function(e) { - t.toBlob(e); - }) - : (function(t) { - return new Promise(function(e) { - for ( - var n = window.atob(t.toDataURL().split(',')[1]), - r = n.length, - i = new Uint8Array(r), - o = 0; - o < r; - o++ - ) - i[o] = n.charCodeAt(o); - e(new Blob([i], { type: 'image/png' })); - }); - })(t); - }, - resolveUrl: function(t, e) { - var n = document.implementation.createHTMLDocument(), - r = n.createElement('base'); - n.head.appendChild(r); - var i = n.createElement('a'); - return ( - n.body.appendChild(i), (r.href = e), (i.href = t), i.href - ); - }, - getAndEncode: function(t) { - s.impl.options.cacheBust && - (t += (/\?/.test(t) ? '&' : '?') + new Date().getTime()); - return new Promise(function(e) { - var n, - r = new XMLHttpRequest(); - if ( - ((r.onreadystatechange = function() { - if (4 !== r.readyState) return; - if (200 !== r.status) - return void (n - ? e(n) - : o( - 'cannot fetch resource: ' + - t + - ', status: ' + - r.status - )); - var i = new FileReader(); - (i.onloadend = function() { - var t = i.result.split(/,/)[1]; - e(t); - }), - i.readAsDataURL(r.response); - }), - (r.ontimeout = function() { - n - ? e(n) - : o( - 'timeout of 30000ms occured while fetching resource: ' + - t - ); - }), - (r.responseType = 'blob'), - (r.timeout = 3e4), - r.open('GET', t, !0), - r.send(), - s.impl.options.imagePlaceholder) - ) { - var i = s.impl.options.imagePlaceholder.split(/,/); - i && i[1] && (n = i[1]); - } - function o(t) { - console.error(t), e(''); - } - }); - }, - uid: - ((t = 0), - function() { - return ( - 'u' + - ( - '0000' + - ((Math.random() * Math.pow(36, 4)) << 0).toString(36) - ).slice(-4) + - t++ - ); - }), - delay: function(t) { - return function(e) { - return new Promise(function(n) { - setTimeout(function() { - n(e); - }, t); - }); - }; - }, - asArray: function(t) { - for (var e = [], n = t.length, r = 0; r < n; r++) e.push(t[r]); - return e; - }, - escapeXhtml: function(t) { - return t.replace(/#/g, '%23').replace(/\n/g, '%0A'); - }, - makeImage: function(t) { - return new Promise(function(e, n) { - var r = new Image(); - (r.onload = function() { - e(r); - }), - (r.onerror = n), - (r.src = t); - }); - }, - width: function(t) { - var e = n(t, 'border-left-width'), - r = n(t, 'border-right-width'); - return t.scrollWidth + e + r; - }, - height: function(t) { - var e = n(t, 'border-top-width'), - r = n(t, 'border-bottom-width'); - return t.scrollHeight + e + r; - } - }; - var t; - function e(t) { - var e = /\.([^\.\/]*?)$/g.exec(t); - return e ? e[1] : ''; - } - function n(t, e) { - var n = window.getComputedStyle(t).getPropertyValue(e); - return parseFloat(n.replace('px', '')); - } - })(), - r = (function() { - var t = /url\(['"]?([^'"]+?)['"]?\)/g; - return { - inlineAll: function(t, n, o) { - return (function() { - return !e(t); - })() - ? Promise.resolve(t) - : Promise.resolve(t) - .then(r) - .then(function(e) { - var r = Promise.resolve(t); - return ( - e.forEach(function(t) { - r = r.then(function(e) { - return i(e, t, n, o); - }); - }), - r - ); - }); - }, - shouldProcess: e, - impl: { readUrls: r, inline: i } - }; - function e(e) { - return -1 !== e.search(t); - } - function r(e) { - for (var r, i = []; null !== (r = t.exec(e)); ) i.push(r[1]); - return i.filter(function(t) { - return !n.isDataUrl(t); - }); - } - function i(t, e, r, i) { - return Promise.resolve(e) - .then(function(t) { - return r ? n.resolveUrl(t, r) : t; - }) - .then(i || n.getAndEncode) - .then(function(t) { - return n.dataAsUrl(t, n.mimeType(e)); - }) - .then(function(r) { - return t.replace( - (function(t) { - return new RegExp( - '(url\\([\'"]?)(' + n.escape(t) + ')([\'"]?\\))', - 'g' - ); - })(e), - '$1' + r + '$3' - ); - }); - } - })(), - i = (function() { - return { - resolveAll: function() { - return t(document) - .then(function(t) { - return Promise.all( - t.map(function(t) { - return t.resolve(); - }) - ); - }) - .then(function(t) { - return t.join('\n'); - }); - }, - impl: { readAll: t } - }; - function t() { - return Promise.resolve(n.asArray(document.styleSheets)) - .then(function(t) { - var e = []; - return ( - t.forEach(function(t) { - try { - n.asArray(t.cssRules || []).forEach(e.push.bind(e)); - } catch (e) { - console.log( - 'Error while reading CSS rules from ' + t.href, - e.toString() - ); - } - }), - e - ); - }) - .then(function(t) { - return t - .filter(function(t) { - return t.type === CSSRule.FONT_FACE_RULE; - }) - .filter(function(t) { - return r.shouldProcess(t.style.getPropertyValue('src')); - }); - }) - .then(function(e) { - return e.map(t); - }); - function t(t) { - return { - resolve: function() { - var e = (t.parentStyleSheet || {}).href; - return r.inlineAll(t.cssText, e); - }, - src: function() { - return t.style.getPropertyValue('src'); - } - }; - } - } - })(), - o = (function() { - return { - inlineAll: function e(i) { - return i instanceof Element - ? (function(t) { - var e = t.style.getPropertyValue('background'); - return e - ? r - .inlineAll(e) - .then(function(e) { - t.style.setProperty( - 'background', - e, - t.style.getPropertyPriority('background') - ); - }) - .then(function() { - return t; - }) - : Promise.resolve(t); - })(i).then(function() { - return i instanceof HTMLImageElement - ? t(i).inline() - : Promise.all( - n.asArray(i.childNodes).map(function(t) { - return e(t); - }) - ); - }) - : Promise.resolve(i); - }, - impl: { newImage: t } - }; - function t(t) { - return { - inline: function(e) { - return n.isDataUrl(t.src) - ? Promise.resolve() - : Promise.resolve(t.src) - .then(e || n.getAndEncode) - .then(function(e) { - return n.dataAsUrl(e, n.mimeType(t.src)); - }) - .then(function(e) { - return new Promise(function(n, r) { - (t.onload = n), (t.onerror = r), (t.src = e); - }); - }); - } - }; - } - })(), - a = { imagePlaceholder: void 0, cacheBust: !1 }, - s = { - toSvg: u, - toPng: function(t, e) { - return l(t, e || {}).then(function(t) { - return t.toDataURL(); - }); - }, - toJpeg: function(t, e) { - return l(t, (e = e || {})).then(function(t) { - return t.toDataURL('image/jpeg', e.quality || 1); - }); - }, - toBlob: function(t, e) { - return l(t, e || {}).then(n.canvasToBlob); - }, - toPixelData: function(t, e) { - return l(t, e || {}).then(function(e) { - return e - .getContext('2d') - .getImageData(0, 0, n.width(t), n.height(t)).data; - }); - }, - impl: { fontFaces: i, images: o, util: n, inliner: r, options: {} } - }; - function u(t, e) { - return ( - (function(t) { - void 0 === t.imagePlaceholder - ? (s.impl.options.imagePlaceholder = a.imagePlaceholder) - : (s.impl.options.imagePlaceholder = t.imagePlaceholder); - void 0 === t.cacheBust - ? (s.impl.options.cacheBust = a.cacheBust) - : (s.impl.options.cacheBust = t.cacheBust); - })((e = e || {})), - Promise.resolve(t) - .then(function(t) { - return (function t(e, r, i) { - return i || !r || r(e) - ? Promise.resolve(e) - .then(function(t) { - return t instanceof HTMLCanvasElement - ? n.makeImage(t.toDataURL()) - : t.cloneNode(!1); - }) - .then(function(t) { - return o(e, t, r); - }) - .then(function(t) { - return (function(t, e) { - return e instanceof Element - ? Promise.resolve() - .then(r) - .then(i) - .then(o) - .then(a) - .then(function() { - return e; - }) - : e; - function r() { - var r, i; - (r = window.getComputedStyle(t)), - (i = e.style), - r.cssText - ? (i.cssText = r.cssText) - : (function(t, e) { - n.asArray(t).forEach(function(n) { - e.setProperty( - n, - t.getPropertyValue(n), - t.getPropertyPriority(n) - ); - }); - })(r, i); - } - function i() { - [':before', ':after'].forEach(function(r) { - !(function(r) { - var i = window.getComputedStyle(t, r), - o = i.getPropertyValue('content'); - if ('' === o || 'none' === o) return; - var a = n.uid(); - e.className = e.className + ' ' + a; - var s = document.createElement('style'); - s.appendChild( - (function(t, e, r) { - var i = '.' + t + ':' + e, - o = r.cssText - ? (function(t) { - var e = t.getPropertyValue( - 'content' - ); - return ( - t.cssText + - ' content: ' + - e + - ';' - ); - })(r) - : (function(t) { - return ( - n - .asArray(t) - .map(function(e) { - return ( - e + - ': ' + - t.getPropertyValue(e) + - (t.getPropertyPriority(e) - ? ' !important' - : '') - ); - }) - .join('; ') + ';' - ); - })(r); - return document.createTextNode( - i + '{' + o + '}' - ); - })(a, r, i) - ), - e.appendChild(s); - })(r); - }); - } - function o() { - t instanceof HTMLTextAreaElement && - (e.innerHTML = t.value), - t instanceof HTMLInputElement && - e.setAttribute('value', t.value); - } - function a() { - e instanceof SVGElement && - (e.setAttribute( - 'xmlns', - 'http://www.w3.org/2000/svg' - ), - e instanceof SVGRectElement && - ['width', 'height'].forEach(function(t) { - var n = e.getAttribute(t); - n && e.style.setProperty(t, n); - })); - } - })(e, t); - }) - : Promise.resolve(); - function o(e, r, i) { - var o = e.childNodes; - return 0 === o.length - ? Promise.resolve(r) - : a(r, n.asArray(o), i).then(function() { - return r; - }); - function a(e, n, r) { - var i = Promise.resolve(); - return ( - n.forEach(function(n) { - i = i - .then(function() { - return t(n, r); - }) - .then(function(t) { - t && e.appendChild(t); - }); - }), - i - ); - } - } - })(t, e.filter, !0); - }) - .then(c) - .then(f) - .then(function(t) { - e.bgcolor && (t.style.backgroundColor = e.bgcolor); - e.width && (t.style.width = e.width + 'px'); - e.height && (t.style.height = e.height + 'px'); - e.style && - Object.keys(e.style).forEach(function(n) { - t.style[n] = e.style[n]; - }); - return t; - }) - .then(function(r) { - return (function(t, e, r) { - return Promise.resolve(t) - .then(function(t) { - return ( - t.setAttribute('xmlns', 'http://www.w3.org/1999/xhtml'), - new XMLSerializer().serializeToString(t) - ); - }) - .then(n.escapeXhtml) - .then(function(t) { - return ( - '' + - t + - '' - ); - }) - .then(function(t) { - return ( - '' + - t + - '' - ); - }) - .then(function(t) { - return 'data:image/svg+xml;charset=utf-8,' + t; - }); - })(r, e.width || n.width(t), e.height || n.height(t)); - }) - ); - } - function l(t, e) { - return u(t, e) - .then(n.makeImage) - .then(n.delay(100)) - .then(function(r) { - var i = (function(t) { - var r = document.createElement('canvas'); - if ( - ((r.width = e.width || n.width(t)), - (r.height = e.height || n.height(t)), - e.bgcolor) - ) { - var i = r.getContext('2d'); - (i.fillStyle = e.bgcolor), - i.fillRect(0, 0, r.width, r.height); - } - return r; - })(t); - return i.getContext('2d').drawImage(r, 0, 0), i; - }); - } - function c(t) { - return i.resolveAll().then(function(e) { - var n = document.createElement('style'); - return ( - t.appendChild(n), n.appendChild(document.createTextNode(e)), t - ); - }); - } - function f(t) { - return o.inlineAll(t).then(function() { - return t; - }); - } - t.exports = s; - })(); - }, - function(t, e, n) { - (function(n) { - var r, i, o; - (i = []), - void 0 === - (o = - 'function' == - typeof (r = function() { - 'use strict'; - function e(t, e, n) { - var r = new XMLHttpRequest(); - r.open('GET', t), - (r.responseType = 'blob'), - (r.onload = function() { - a(r.response, e, n); - }), - (r.onerror = function() { - console.error('could not download file'); - }), - r.send(); - } - function r(t) { - var e = new XMLHttpRequest(); - e.open('HEAD', t, !1); - try { - e.send(); - } catch (t) {} - return 200 <= e.status && 299 >= e.status; - } - function i(t) { - try { - t.dispatchEvent(new MouseEvent('click')); - } catch (n) { - var e = document.createEvent('MouseEvents'); - e.initMouseEvent( - 'click', - !0, - !0, - window, - 0, - 0, - 0, - 80, - 20, - !1, - !1, - !1, - !1, - 0, - null - ), - t.dispatchEvent(e); - } - } - var o = - 'object' == typeof window && window.window === window - ? window - : 'object' == typeof self && self.self === self - ? self - : 'object' == typeof n && n.global === n - ? n - : void 0, - a = - o.saveAs || - ('object' != typeof window || window !== o - ? function() {} - : 'download' in HTMLAnchorElement.prototype - ? function(t, n, a) { - var s = o.URL || o.webkitURL, - u = document.createElement('a'); - (n = n || t.name || 'download'), - (u.download = n), - (u.rel = 'noopener'), - 'string' == typeof t - ? ((u.href = t), - u.origin === location.origin - ? i(u) - : r(u.href) - ? e(t, n, a) - : i(u, (u.target = '_blank'))) - : ((u.href = s.createObjectURL(t)), - setTimeout(function() { - s.revokeObjectURL(u.href); - }, 4e4), - setTimeout(function() { - i(u); - }, 0)); - } - : 'msSaveOrOpenBlob' in navigator - ? function(t, n, o) { - if ( - ((n = n || t.name || 'download'), - 'string' != typeof t) - ) - navigator.msSaveOrOpenBlob( - (function(t, e) { - return ( - void 0 === e - ? (e = { autoBom: !1 }) - : 'object' != typeof e && - (console.warn( - 'Deprecated: Expected third argument to be a object' - ), - (e = { autoBom: !e })), - e.autoBom && - /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test( - t.type - ) - ? new Blob(['\ufeff', t], { type: t.type }) - : t - ); - })(t, o), - n - ); - else if (r(t)) e(t, n, o); - else { - var a = document.createElement('a'); - (a.href = t), - (a.target = '_blank'), - setTimeout(function() { - i(a); - }); - } - } - : function(t, n, r, i) { - if ( - ((i = i || open('', '_blank')) && - (i.document.title = i.document.body.innerText = - 'downloading...'), - 'string' == typeof t) - ) - return e(t, n, r); - var a = 'application/octet-stream' === t.type, - s = /constructor/i.test(o.HTMLElement) || o.safari, - u = /CriOS\/[\d]+/.test(navigator.userAgent); - if ( - (u || (a && s)) && - 'object' == typeof FileReader - ) { - var l = new FileReader(); - (l.onloadend = function() { - var t = l.result; - (t = u - ? t - : t.replace( - /^data:[^;]*;/, - 'data:attachment/file;' - )), - i ? (i.location.href = t) : (location = t), - (i = null); - }), - l.readAsDataURL(t); - } else { - var c = o.URL || o.webkitURL, - f = c.createObjectURL(t); - i ? (i.location = f) : (location.href = f), - (i = null), - setTimeout(function() { - c.revokeObjectURL(f); - }, 4e4); - } - }); - (o.saveAs = a.saveAs = a), (t.exports = a); - }) - ? r.apply(e, i) - : r) || (t.exports = o); - }.call(this, n(13))); - }, - function(t, e) { - function n(t, e, n, r, i, o, a) { - try { - var s = t[o](a), - u = s.value; - } catch (t) { - return void n(t); - } - s.done ? e(u) : Promise.resolve(u).then(r, i); - } - t.exports = function(t) { - return function() { - var e = this, - r = arguments; - return new Promise(function(i, o) { - var a = t.apply(e, r); - function s(t) { - n(a, i, o, s, u, 'next', t); - } - function u(t) { - n(a, i, o, s, u, 'throw', t); - } - s(void 0); - }); - }; - }; - }, - function(t, e, n) { - var r = n(265); - t.exports = function(t, e) { - if (null == t) return {}; - var n, - i, - o = r(t, e); - if (Object.getOwnPropertySymbols) { - var a = Object.getOwnPropertySymbols(t); - for (i = 0; i < a.length; i++) - (n = a[i]), - e.indexOf(n) >= 0 || - (Object.prototype.propertyIsEnumerable.call(t, n) && - (o[n] = t[n])); - } - return o; - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.htmlparser2 = e.convertNodeToElement = e.processNodes = void 0); - var r = n(78); - Object.defineProperty(e, 'processNodes', { - enumerable: !0, - get: function() { - return s(r).default; - } - }); - var i = n(121); - Object.defineProperty(e, 'convertNodeToElement', { - enumerable: !0, - get: function() { - return s(i).default; - } - }); - var o = n(31); - Object.defineProperty(e, 'htmlparser2', { - enumerable: !0, - get: function() { - return s(o).default; - } - }); - var a = s(n(313)); - function s(t) { - return t && t.__esModule ? t : { default: t }; - } - e.default = a.default; - }, - function(t, e, n) { - var r; - window, - (r = function(t, e) { - return (function(t) { - var e = {}; - function n(r) { - if (e[r]) return e[r].exports; - var i = (e[r] = { i: r, l: !1, exports: {} }); - return ( - t[r].call(i.exports, i, i.exports, n), (i.l = !0), i.exports - ); - } - return ( - (n.m = t), - (n.c = e), - (n.d = function(t, e, r) { - n.o(t, e) || - Object.defineProperty(t, e, { enumerable: !0, get: r }); - }), - (n.r = function(t) { - 'undefined' != typeof Symbol && - Symbol.toStringTag && - Object.defineProperty(t, Symbol.toStringTag, { - value: 'Module' - }), - Object.defineProperty(t, '__esModule', { value: !0 }); - }), - (n.t = function(t, e) { - if ((1 & e && (t = n(t)), 8 & e)) return t; - if (4 & e && 'object' == typeof t && t && t.__esModule) - return t; - var r = Object.create(null); - if ( - (n.r(r), - Object.defineProperty(r, 'default', { - enumerable: !0, - value: t - }), - 2 & e && 'string' != typeof t) - ) - for (var i in t) - n.d( - r, - i, - function(e) { - return t[e]; - }.bind(null, i) - ); - return r; - }), - (n.n = function(t) { - var e = - t && t.__esModule - ? function() { - return t.default; - } - : function() { - return t; - }; - return n.d(e, 'a', e), e; - }), - (n.o = function(t, e) { - return Object.prototype.hasOwnProperty.call(t, e); - }), - (n.p = ''), - n((n.s = 20)) - ); - })([ - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.each = function(t, e, n) { - var r; - if (!t) return 0; - if (((n = n || t), t instanceof Array)) { - for (r = 0; r < t.length; r++) - if (!1 === e.call(n, t[r], r, t)) return 0; - } else - for (r in t) - if (t.hasOwnProperty(r) && !1 === e.call(n, t[r], r, t)) - return 0; - return 1; - }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t, e) { - var n = document.createElement('input'); - if ( - ((n.value = t), - document.body.appendChild(n), - n.select(), - document.execCommand('copy'), - document.body.removeChild(n), - e) - ) { - var r = document.createElement('div'); - (r.style.padding = '5px 10px'), - (r.style.backgroundColor = '#ffffff'), - (r.style.fontSize = '12px'), - (r.style.position = 'absolute'), - (r.style.top = e.pageY + 'px'), - (r.style.left = e.pageX + 10 + 'px'), - (r.style.zIndex = '999'), - (r.style.opacity = 1), - (r.style.transition = 'opacity 1s ease'), - (r.innerText = 'copied!'), - document.body.appendChild(r), - document.addEventListener('mousemove', function(t) { - return (function(t, e) { - (e.style.opacity = 0), - (e.style.top = t.pageY + 'px'), - (e.style.left = t.pageX + 10 + 'px'); - })(t, r); - }), - setTimeout(function() { - (r.style.opacity = 1), document.body.removeChild(r); - }, 1e3); - } - }); - }, - function(e, n) { - e.exports = t; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.prettyNumber = function(t) { - var e = (t = Number(t)).toPrecision(3), - n = '', - r = ['', 'k', 'M', 'B', 'T']; - return Number(e) == t && String(t).length <= 4 - ? String(t) - : Math.abs(t) >= 1e15 - ? e - : t >= 1 || t <= -1 - ? (t < 0 && ((t = -t), (n = '-')), - n + - (function t(e, n) { - var i = (e = String(e)).split('.'); - if (i.length > 1) { - e = i[0]; - var o = i[1]; - 2 == e.length && o.length > 0 - ? o.length > 0 - ? (e = e + '.' + o.charAt(0)) - : (e += '0') - : 1 == e.length && - o.length > 0 && - ((e = e + '.' + o.charAt(0)), - o.length > 1 ? (e += o.charAt(1)) : (e += '0')); - } - var a = e.length; - return ( - e.split('.').length > 1 && a--, - a <= 3 - ? String(e) + r[n] - : t(Number(e) / 1e3, n + 1) - ); - })(t, 0)) - : t.toPrecision(3); - }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.escapeHtml = function(t) { - var e, - n = '' + t, - i = r.exec(n); - if (!i) return n; - var o = '', - a = 0, - s = 0; - for (a = i.index; a < n.length; a++) { - switch (n.charCodeAt(a)) { - case 34: - e = '"'; - break; - case 38: - e = '&'; - break; - case 39: - e = '''; - break; - case 60: - e = '<'; - break; - case 62: - e = '>'; - break; - default: - continue; - } - s !== a && (o += n.substring(s, a)), (s = a + 1), (o += e); - } - return s !== a ? o + n.substring(s, a) : o; - }); - var r = /["'&<>]/; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.extend = function(t) { - for (var e = 1; e < arguments.length; e++) - for (var n in arguments[e]) t[n] = arguments[e][n]; - return t; - }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.textWrap = function(t, e) { - t.each(function() { - for ( - var t = r.select(this), - n = t - .text() - .split(/\s+/) - .reverse(), - i = void 0, - o = [], - a = 0, - s = t.attr('x'), - u = t.attr('y'), - l = t - .text(null) - .append('tspan') - .attr('x', s) - .attr('y', u) - .attr('dy', '0em'); - (i = n.pop()); - - ) - o.push(i), - l.text(o.join(' ')), - l.node().getComputedTextLength() > e && - (o.pop(), - l.text(o.join(' ')), - (o = [i]), - (l = t - .append('tspan') - .attr('x', s) - .attr('y', u) - .attr('dy', 1.1 * ++a + 0 + 'em') - .text(i))); - }); - }); - var r = (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]); - return (e.default = t), e; - })(n(2)); - }, - function(t, e) { - var n; - n = (function() { - return this; - })(); - try { - n = n || new Function('return this')(); - } catch (t) { - 'object' == typeof window && (n = window); - } - t.exports = n; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.appendColumn = s), - (e.appendRow = u); - var r, - i = n(9), - o = (r = i) && r.__esModule ? r : { default: r }, - a = n(0); - function s(t, e) { - var n = this, - r = - (Array.prototype.slice.call(arguments, 2), - void 0 !== t ? t : null); - return ( - 'function' == typeof e - ? (n.matrix[0].push(r), - (0, a.each)(n.matrix, function(t, r) { - var i = void 0; - r > 0 && - (void 0 === (i = e.call(n, t, r)) && (i = null), - n.matrix[r].push(i)); - })) - : (!e || e instanceof Array) && - ((e = e || []).length <= n.matrix.length - 1 - ? (e = e.concat( - (0, o.default)(n.matrix.length - 1 - e.length) - )) - : (0, a.each)(e, function(t, r) { - n.matrix.length - 1 < e.length && - u.call(n, String(n.matrix.length)); - }), - n.matrix[0].push(r), - (0, a.each)(e, function(t, e) { - n.matrix[e + 1][n.matrix[0].length - 1] = t; - })), - n - ); - } - function u(t, e) { - var n = this, - r = - (Array.prototype.slice.call(arguments, 2), - void 0 !== t ? t : null), - i = []; - return ( - i.push(r), - 'function' == typeof e - ? ((0, a.each)(n.matrix[0], function(t, r) { - var o = void 0, - a = void 0; - r > 0 && - ((o = n.selectColumn(r)), - void 0 === (a = e.call(n, o, r)) && (a = null), - i.push(a)); - }), - n.matrix.push(i)) - : (!e || e instanceof Array) && - ((e = e || []).length <= n.matrix[0].length - 1 - ? (e = e.concat( - (0, o.default)(n.matrix[0].length - 1 - e.length) - )) - : (0, a.each)(e, function(t, r) { - n.matrix[0].length - 1 < e.length && - s.call(n, String(n.matrix[0].length)); - }), - n.matrix.push(i.concat(e))), - n - ); - } - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t) { - for (var e = [], n = 0; n < t; n++) e.push(null); - return e; - }); - }, - function(t, n) { - t.exports = e; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - }; - function i(t) { - return ( - null !== t && - 'function' == typeof t.getTime && - !isNaN(t.getTime()) - ); - } - function o(t) { - return /^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d+)?(([+-]\d\d:\d\d)|Z)?$/i.test( - t - ); - } - (e.testObject = i), - (e.testString = o), - (e.default = function(t) { - return 'object' === (void 0 === t ? 'undefined' : r(t)) - ? i(t) - : 'string' == typeof t && o(t); - }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Dataset = void 0); - var r = p(n(8)), - i = p(n(22)), - o = p(n(23)), - a = p(n(24)), - s = p(n(25)), - u = p(n(26)), - l = p(n(27)), - c = h(n(13)), - f = n(5), - d = h(n(28)); - function h(t) { - return t && t.__esModule ? t : { default: t }; - } - function p(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]); - return (e.default = t), e; - } - var g = (e.Dataset = function t() { - var e = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : {}; - if (this instanceof t == 0) return new t(e); - (this.matrix = [['Index']]), - (this.meta = { type: void 0 }), - (this.config = e); - }); - (g.prototype.data = function(t) { - return arguments.length - ? ((this.matrix = t instanceof Array ? t : null), this) - : this.matrix; - }), - (g.prototype.set = function(t, e) { - if (arguments.length < 2 || t.length < 2) - throw Error('Incorrect arguments provided for #set method'); - var n = - 'number' == typeof t[0] - ? t[0] - : this.matrix[0].indexOf(t[0]), - i = - 'number' == typeof t[1] - ? t[1] - : s.selectColumn.call(this, 0).indexOf(t[1]), - o = s.selectColumn.call(this, t[0]), - a = s.selectRow.call(this, t[1]); - return ( - o.length < 1 && - (r.appendColumn.call(this, String(t[0])), - (n = this.matrix[0].length - 1)), - a.length < 1 && - (r.appendRow.call(this, String(t[1])), - (i = this.matrix.length - 1)), - (this.matrix[i][n] = e), - this - ); - }), - (g.prototype.type = function(t) { - return arguments.length - ? ((this.meta.type = t ? String(t) : void 0), this) - : this.meta.type; - }), - (0, f.extend)(g.prototype, r), - (0, f.extend)(g.prototype, i), - (0, f.extend)(g.prototype, o), - (0, f.extend)(g.prototype, a), - (0, f.extend)(g.prototype, s), - (0, f.extend)(g.prototype, u), - (0, f.extend)(g.prototype, l), - (0, f.extend)(g.prototype, c.default), - (g.parser = (0, d.default)(g)), - (e.default = g); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = n(0); - function i(t, e, n) { - var i = t.slice(e || 0, n ? n + 1 : t.length), - o = 0; - return ( - (0, r.each)(i, function(t, e) { - 'number' != typeof t || - isNaN(parseFloat(t)) || - (o += parseFloat(t)); - }), - o / i.length - ); - } - function o(t, e, n) { - var i = t.slice(e || 0, n ? n + 1 : t.length), - o = []; - return ( - (0, r.each)(i, function(t, e) { - 'number' != typeof t || - isNaN(parseFloat(t)) || - o.push(parseFloat(t)); - }), - Math.max.apply(Math, o) - ); - } - function a(t, e, n) { - var i = t.slice(e || 0, n ? n + 1 : t.length), - o = []; - return ( - (0, r.each)(i, function(t, e) { - 'number' != typeof t || - isNaN(parseFloat(t)) || - o.push(parseFloat(t)); - }), - Math.min.apply(Math, o) - ); - } - function s(t, e, n) { - var i = t.slice(e || 0, n ? n + 1 : t.length), - o = 0; - return ( - (0, r.each)(i, function(t, e) { - 'number' != typeof t || - isNaN(parseFloat(t)) || - (o += parseFloat(t)); - }), - o - ); - } - n(5); - var u = function(t) { - return i(t, 1); - }, - l = u, - c = function(t) { - return s(t, 1); - }, - f = c, - d = function(t) { - return o(t, 1); - }, - h = d, - p = function(t) { - return a(t, 1); - }, - g = p, - v = function(t) { - return t[0]; - }, - m = v; - e.default = { - average: i, - maximum: o, - minimum: a, - sum: s, - getColumnAverage: u, - getRowAverage: l, - getColumnSum: c, - getRowSum: f, - getColumnMaximum: d, - getRowMaximum: h, - getColumnMinimum: p, - getRowMinimum: g, - getColumnLabel: v, - getRowIndex: m - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.stripHtmlTags = function(t) { - return 'string' != typeof t - ? t - : t.replace(/(<([^>]+)>)/gi, ''); - }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - }; - e.extendDeep = function t(e) { - for (var n = 1; n < arguments.length; n++) - (0, i.each)(arguments[n], function(n, i) { - void 0 !== e[i] && - void 0 !== n && - 'object' === r(e[i]) && - 'object' === (void 0 === n ? 'undefined' : r(n)) && - null !== e[i] && - null !== n - ? t(e[i], n) - : (e[i] = n); - }); - return e; - }; - var i = n(0); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function() { - var t = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : {}, - e = t.element, - n = t.label, - r = void 0 === n ? 'Download' : n, - i = t.type, - s = void 0 === i ? 'json' : i, - u = t.data, - l = 'keen-dataviz-button', - c = [].concat(a(e.parentNode.children)).find(function(t) { - return t.className === l; - }); - if (!c) { - var f = document.createElement('button'); - (f.innerText = r), - (f.className = l), - f.addEventListener('click', function(t) { - return (0, o.default)({ event: t, type: s, data: u }); - }), - e.parentNode.insertBefore(f, e.nextSibling); - } - }); - var r, - i = n(40), - o = (r = i) && r.__esModule ? r : { default: r }; - function a(t) { - if (Array.isArray(t)) { - for (var e = 0, n = Array(t.length); e < t.length; e++) - n[e] = t[e]; - return n; - } - return Array.from(t); - } - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t) { - var e = t.node, - n = t.quality, - r = t.bgcolor; - if (n) { - if (n < 0 || n > 1) - throw Error( - 'Please provide image quality between 0 and 1' - ); - o.default - .toBlob(e, { quality: n, bgcolor: r }) - .then(function(t) { - (0, a.saveAs)(t, 'chart.jpeg'); - }); - } - n || - o.default.toBlob(e).then(function(t) { - (0, a.saveAs)(t, 'chart.png'); - }); - }); - var r, - i = n(41), - o = (r = i) && r.__esModule ? r : { default: r }, - a = n(42); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t) { - var e = t.type, - n = t.data, - r = e.toLowerCase(); - if (!['json', 'csv'].includes(e)) - throw new Error('This type is not supported'); - var i = '', - o = ''; - 'json' === r && - ((o = - 'data:text/json;charset=utf-8, ' + - encodeURIComponent(JSON.stringify(n))), - (i = r)), - 'csv' === r && - (o = (function(t) { - var e = 'data:text/csv;charset=utf-8,'; - return ( - t.forEach(function(n, r) { - n.forEach(function(t, r) { - (e += String(t).replace(/,/g, '')), - n.length > r + 1 && (e += ','); - }), - t.length > r + 1 && (e += '\n'); - }), - e - ); - })(n)); - var a = document.createElement('a'); - a.setAttribute('href', o), - a.setAttribute('download', 'chart.' + i), - document.body.appendChild(a), - a.click(), - document.body.removeChild(a); - }); - }, - function(t, e, n) { - (function(e) { - var n, r, i, o, a; - void 0 === e && (this.window || this.global), - (t.exports = - ((n = function(t, e) { - var n = document.createElement(t); - return e && n.classList.add(e), n; - }), - (r = function(t) { - return t && 'function' == typeof t; - }), - (i = function(t, e, n) { - var r; - return function() { - if (((n = n || this), !r)) - return ( - t.apply(n, arguments), - (r = !0), - setTimeout(function() { - r = !1; - }, e) - ); - }; - }), - ((a = (o = function(t, e) { - (this.plugins = ['ruler']), - 'string' == typeof t && (t = document.querySelector(t)), - (this.input = t), - (this.config = Object.assign( - {}, - { - type: 'single', - tooltips: 'always', - updateThrottle: 30, - formatTooltip: function(t) { - return t; - }, - classes: { - input: 'rangeable-input', - container: 'rangeable-container', - vertical: 'rangeable-vertical', - progress: 'rangeable-progress', - handle: 'rangeable-handle', - track: 'rangeable-track', - multiple: 'rangeable-multiple', - disabled: 'rangeable-disabled', - tooltips: 'rangeable-tooltips', - tooltip: 'rangeable-tooltip', - visible: 'rangeable-tooltips--visible' - } - }, - e - )), - (this.mouseAxis = { x: 'clientX', y: 'clientY' }), - (this.trackSize = { x: 'width', y: 'height' }), - (this.trackPos = { x: 'left', y: 'top' }), - (this.lastPos = 0), - (this.double = - 'double' === this.config.type || - Array.isArray(this.config.value)), - (this.touch = - 'ontouchstart' in window || - (window.DocumentTouch && - document instanceof DocumentTouch)), - (this.version = '0.1.6'), - this.init(), - this.onInit(); - }).prototype).init = function() { - if (!this.input.rangeable) { - var t, - e = { - min: 0, - max: 100, - step: 1, - value: this.input.value - }; - for (t in e) - this.input[t] || (this.input[t] = e[t]), - void 0 !== this.config[t] && - (this.input[t] = this.config[t]); - (this.axis = this.config.vertical ? 'y' : 'x'), - (this.input.rangeable = this), - this.double - ? ((this.input.values = this.config.value - ? this.config.value - : [this.input.min, this.input.max]), - (this.input.defaultValues = this.input.values.slice())) - : this.input.defaultValue || - (this.input.defaultValue = this.input.value), - this.render(), - (this.initialised = !0); - } - }), - (a.render = function() { - var t = this, - e = this.config, - r = e.classes, - i = n('div', r.container), - o = n('div', r.track), - a = n('div', r.progress), - s = n('div', r.handle), - u = n('div', r.tooltip); - if (((this.input.tabIndex = -1), this.double)) { - (s = [n('div', r.handle), n('div', r.handle)]), - (u = []); - for (var l = 0; 3 > l; l++) u[l] = n('div', r.tooltip); - s.forEach(function(t, n) { - (t.index = n), - a.appendChild(t), - t.appendChild(u[n]), - (t.tabIndex = 1), - e.controls && - e.controls[n] && - e.controls[n].locked && - !0 === e.controls[n].locked && - (t.locked = !0); - }), - e.vertical && a.appendChild(s[0]), - a.appendChild(u[2]), - i.classList.add(r.multiple); - } else - a.appendChild(s), - s.appendChild(u), - (s.tabIndex = 1), - e.controls && - e.controls.locked && - !0 === e.controls.locked && - (s.locked = !0); - if ( - (i.appendChild(o), - e.vertical && i.classList.add(r.vertical), - e.size && - (i.style[this.trackSize[this.axis]] = isNaN(e.size) - ? e.size - : e.size + 'px'), - e.tooltips && - (i.classList.add(r.tooltips), - 'string' == typeof e.tooltips && - 'always' === e.tooltips && - i.classList.add(r.visible)), - (this.nodes = { - container: i, - track: o, - progress: a, - handle: s, - tooltip: u - }), - this.double) - ) { - this.nodes.buffer = []; - var c = n('div', 'rangeable-buffers'); - this.input.values.forEach(function(r, i) { - var a = n('div', 'rangeable-buffer'); - c.appendChild(a), - t.nodes.buffer.push(a), - o.appendChild(c), - e.controls && - ((t.limits = [{}, {}]), - void 0 !== e.controls[i].min && - (t.limits[i].min = e.controls[i].min), - void 0 !== e.controls[i].max && - (t.limits[i].max = e.controls[i].max)); - }); - } else - (s = n('div', 'rangeable-buffer')), - o.appendChild(s), - (this.nodes.buffer = s), - o.appendChild(s), - e.controls && - ((this.limits = {}), - void 0 !== e.controls.min && - (this.limits.min = e.controls.min), - void 0 !== e.controls.max && - (this.limits.max = e.controls.max)); - this.setLimits(e.controls), - o.appendChild(a), - this.input.parentNode.insertBefore(i, this.input), - i.insertBefore(this.input, o), - this.input.classList.add(r.input), - this.bind(), - this.update(); - }), - (a.reset = function() { - this.double - ? this.input.defaultValues.forEach(this.setValue, this) - : this.setValue(this.input.defaultValue), - this.onEnd(); - }), - (a.setValueFromPosition = function(t) { - var e = this.getLimits(), - n = parseFloat(this.input.step), - r = this.touch - ? t.touches[0][this.mouseAxis[this.axis]] - : t[this.mouseAxis[this.axis]], - i = r - this.rects.container[this.trackPos[this.axis]], - o = this.rects.container[this.trackSize[this.axis]]; - return ( - ('mousedown' !== t.type || - !( - (!this.double && - this.nodes.handle.contains(t.target)) || - (this.double && - (this.nodes.handle[0].contains(t.target) || - this.nodes.handle[1].contains(t.target))) - )) && - ((t = - ((this.config.vertical - ? ((o - i) / o) * 100 - : (i / o) * 100) * - (e.max - e.min)) / - 100 + - e.min), - (t = Math.ceil(t / n) * n), - r >= this.lastPos && (t -= n), - parseFloat(t) !== parseFloat(this.startValue) && - ((n = !1), - this.double && (n = this.activeHandle.index), - (t = this.limit(t, n)), - void this.setValue(t, n))) - ); - }), - (a.start = function(t) { - return ( - t.preventDefault(), - (this.startValue = this.getValue()), - this.onStart(), - this.nodes.container.classList.add('dragging'), - this.recalculate(), - (this.activeHandle = this.getHandle(t)), - !!this.activeHandle && - (this.activeHandle.classList.add('active'), - this.setValueFromPosition(t), - void (this.touch - ? (document.addEventListener( - 'touchmove', - this.events.move, - !1 - ), - document.addEventListener( - 'touchend', - this.events.stop, - !1 - ), - document.addEventListener( - 'touchcancel', - this.events.stop, - !1 - )) - : (document.addEventListener( - 'mousemove', - this.events.move, - !1 - ), - document.addEventListener( - 'mouseup', - this.events.stop, - !1 - )))) - ); - }), - (a.move = function(t) { - this.setValueFromPosition(t), - (this.lastPos = this.touch - ? t.touches[0][this.mouseAxis[this.axis]] - : t[this.mouseAxis[this.axis]]); - }), - (a.stop = function() { - (this.stopValue = this.getValue()), - this.nodes.container.classList.remove('dragging'), - this.onEnd(), - this.activeHandle.classList.remove('active'), - (this.activeHandle = !1), - this.touch - ? (document.removeEventListener( - 'touchmove', - this.events.move - ), - document.removeEventListener( - 'touchend', - this.events.stop - ), - document.removeEventListener( - 'touchcancel', - this.events.stop - )) - : (document.removeEventListener( - 'mousemove', - this.events.move - ), - document.removeEventListener( - 'mouseup', - this.events.stop - )), - this.startValue !== this.stopValue && - this.input.dispatchEvent(new Event('change')), - (this.startValue = null); - }), - (a.keydown = function(t) { - var e = this, - n = function(n) { - switch (t.key) { - case 'ArrowRight': - case 'ArrowUp': - e.stepUp(n); - break; - case 'ArrowLeft': - case 'ArrowDown': - e.stepDown(n); - } - }; - this.double - ? this.nodes.handle.forEach(function(t) { - t === document.activeElement && n(t.index); - }) - : this.nodes.handle === document.activeElement && n(); - }), - (a.stepUp = function(t) { - var e = parseFloat(this.input.step), - n = this.getValue(); - this.double && void 0 !== t && (n = n[t]), - (e = this.limit(parseFloat(n) + e, t)), - this.setValue(e, t); - }), - (a.stepDown = function(t) { - var e = parseFloat(this.input.step), - n = this.getValue(); - this.double && void 0 !== t && (n = n[t]), - (e = this.limit(parseFloat(n) - e, t)), - this.setValue(e, t); - }), - (a.limit = function(t, e) { - var n = this.input, - r = this.getLimits(); - return ( - (t = parseFloat(t)), - this.double && void 0 !== e - ? (!e && t > n.values[1] - ? (t = n.values[1]) - : 0 < e && t < n.values[0] && (t = n.values[0]), - this.limits && - (e - ? t > this.limits[1].max - ? (t = this.limits[1].max) - : t < this.limits[1].min && - (t = this.limits[1].min) - : t > this.limits[0].max - ? (t = this.limits[0].max) - : t < this.limits[0].min && - (t = this.limits[0].min))) - : this.limits && - (t > this.limits.max - ? (t = this.limits.max) - : t < this.limits.min && (t = this.limits.min)), - t > r.max ? (t = r.max) : t < r.min && (t = r.min), - (t = parseFloat(t)).toFixed(this.accuracy) - ); - }), - (a.recalculate = function() { - var t = []; - this.double - ? this.nodes.handle.forEach(function(e, n) { - t[n] = e.getBoundingClientRect(); - }) - : (t = this.nodes.handle.getBoundingClientRect()), - (this.rects = { - handle: t, - container: this.nodes.container.getBoundingClientRect() - }); - }), - (a.update = function() { - var t = this; - this.recalculate(), - (this.accuracy = 0), - this.input.step.includes('.') && - (this.accuracy = ( - this.input.step.split('.')[1] || [] - ).length); - var e = this.getValue(), - n = this.getLimits(), - r = this.rects.container[this.trackSize[this.axis]], - i = function(e, i, o) { - (e.style[t.config.vertical ? 'bottom' : 'left'] = - i + 'px'), - (e.style[t.trackSize[t.axis]] = - (o / n.max) * r - i + 'px'); - }; - this.double - ? (this.limits && - this.limits.forEach(function(e, o) { - i(t.nodes.buffer[o], (e.min / n.max) * r, e.max); - }), - this.input.values.forEach(function(e, n) { - t.setValue(t.limit(e, n), n); - })) - : (this.limits && - i( - this.nodes.buffer, - (this.limits.min / n.max) * r, - this.limits.max - ), - this.setValue(this.limit(e))); - }), - (a.getValue = function() { - return this.double ? this.input.values : this.input.value; - }), - (a.setValue = function(t, e) { - var n = this.nodes; - if (this.double && void 0 === e) return !1; - void 0 === t && (t = this.input.value), - (t = this.limit(t, e)); - var r = - this.initialised && - (t !== this.input.value || this.nativeEvent), - i = this.config.formatTooltip; - if (this.double) { - var o = this.input.values; - if (((o[e] = t), this.config.tooltips)) { - n.tooltip[e].textContent = i.call(this, t); - var a = n.tooltip[0].getBoundingClientRect(), - s = n.tooltip[1].getBoundingClientRect(); - (a = !( - a.right < s.left || - a.left > s.right || - a.bottom < s.top || - a.top > s.bottom - )), - n.container.classList.toggle('combined-tooltip', a), - a && - (n.tooltip[2].textContent = - o[0] === o[1] - ? i.call(this, o[0]) - : i.call(this, o[0]) + - ' - ' + - i.call(this, o[1])); - } - } else - (this.input.value = t), - (n.tooltip.textContent = i.call(this, t)); - this.setPosition(t, e), - r && - (this.onChange(), - this.nativeEvent || - this.input.dispatchEvent(new Event('input')), - (this.nativeEvent = !1)); - }), - (a.native = function() { - (this.nativeEvent = !0), this.setValue(); - }), - (a.getLimits = function() { - return { - min: parseFloat(this.input.min), - max: parseFloat(this.input.max) - }; - }), - (a.setLimits = function(t) { - var e = this; - if (void 0 === t) return !1; - this.limits || (this.limits = t); - var n = function(t, e) { - void 0 !== e.min && (t.min = e.min), - void 0 !== e.max && (t.max = e.max); - }; - this.double - ? t.forEach(function(t, r) { - n(e.limits[r], t); - }) - : n(this.limits, t), - this.update(); - }), - (a.setPosition = function(t) { - if (this.double) { - t = this.getPosition(this.input.values[0]); - var e = this.getPosition(this.input.values[1]); - (this.nodes.progress.style[ - this.config.vertical ? 'bottom' : 'left' - ] = t + 'px'), - (t = e - t); - } else t = this.getPosition(); - this.nodes.progress.style[this.trackSize[this.axis]] = - t + 'px'; - }), - (a.getPosition = function(t) { - void 0 === t && (t = this.input.value); - var e = this.getLimits(); - return ( - ((t - e.min) / (e.max - e.min)) * - this.rects.container[this.trackSize[this.axis]] - ); - }), - (a.getHandle = function(t) { - if (!this.double) - return !this.nodes.handle.locked && this.nodes.handle; - var e = this.rects, - n = Math.abs( - t[this.mouseAxis[this.axis]] - - e.handle[0][this.trackPos[this.axis]] - ); - return ( - (e = Math.abs( - t[this.mouseAxis[this.axis]] - - e.handle[1][this.trackPos[this.axis]] - )), - (t = t.target.closest( - '.' + this.config.classes.handle - )) || - (t = - n > e - ? this.nodes.handle[1] - : this.nodes.handle[0]), - !t.locked && t - ); - }), - (a.enable = function() { - this.input.disabled && - (this.nodes.container.addEventListener( - this.touch ? 'touchstart' : 'mousedown', - this.events.start, - !1 - ), - this.double - ? this.nodes.handle.forEach(function(t) { - return (t.tabIndex = 1); - }) - : (this.nodes.handle.tabIndex = 1), - this.nodes.container.classList.remove( - this.config.classes.disabled - ), - (this.input.disabled = !1)); - }), - (a.disable = function() { - this.input.disabled || - (this.nodes.container.removeEventListener( - this.touch ? 'touchstart' : 'mousedown', - this.events.start - ), - this.double - ? this.nodes.handle.forEach(function(t) { - return t.removeAttribute('tabindex'); - }) - : this.nodes.handle.removeAttribute('tabindex'), - this.nodes.container.classList.add( - this.config.classes.disabled - ), - (this.input.disabled = !0)); - }), - (a.bind = function() { - var t = this; - (this.events = {}), - 'start move stop update reset native keydown' - .split(' ') - .forEach(function(e) { - t.events[e] = t[e].bind(t); - }), - (this.events.scroll = i( - this.events.update, - this.config.updateThrottle - )), - (this.events.resize = i( - this.events.update, - this.config.updateThrottle - )), - document.addEventListener( - 'scroll', - this.events.scroll, - !1 - ), - window.addEventListener( - 'resize', - this.events.resize, - !1 - ), - document.addEventListener( - 'keydown', - this.events.keydown, - !1 - ), - this.nodes.container.addEventListener( - this.touch ? 'touchstart' : 'mousedown', - this.events.start, - !1 - ), - this.input.addEventListener( - 'input', - this.events.native, - !1 - ), - this.input.form && - this.input.form.addEventListener( - 'reset', - this.events.reset, - !1 - ); - }), - (a.unbind = function() { - document.removeEventListener( - 'scroll', - this.events.scroll - ), - window.removeEventListener( - 'resize', - this.events.resize - ), - document.removeEventListener( - 'keydown', - this.events.keydown - ), - this.nodes.container.removeEventListener( - this.touch ? 'touchstart' : 'mousedown', - this.events.start - ), - this.input.removeEventListener( - 'input', - this.events.native - ), - this.input.form && - this.input.form.removeEventListener( - 'reset', - this.events.reset - ), - (this.events = null); - }), - (a.destroy = function() { - this.input.rangeable && - (this.unbind(), - this.input.classList.remove(this.config.classes.input), - this.nodes.container.parentNode.replaceChild( - this.input, - this.nodes.container - ), - delete this.input.rangeable, - (this.initialised = !1)); - }), - (a.onInit = function() { - r(this.config.onInit) && - this.config.onInit.call(this, this.getValue()); - }), - (a.onStart = function() { - r(this.config.onStart) && - this.config.onStart.call(this, this.getValue()); - }), - (a.onChange = function() { - r(this.config.onChange) && - this.config.onChange.call(this, this.getValue()); - }), - (a.onEnd = function() { - r(this.config.onEnd) && - this.config.onEnd.call(this, this.getValue()); - }), - o)); - }.call(this, n(7))); - }, - function(t, e, n) { - 'use strict'; - (function(t) { - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Dataset = e.Dataviz = e.keenGlobals = e.extendKeenGlobalObject = void 0); - var r = n(21); - Object.defineProperty(e, 'Dataviz', { - enumerable: !0, - get: function() { - return r.Dataviz; - } - }), - Object.defineProperty(e, 'Dataset', { - enumerable: !0, - get: function() { - return r.Dataset; - } - }), - void 0 !== t || - ('undefined' != typeof self - ? self - : 'undefined' != typeof window && window), - (e.extendKeenGlobalObject = function(t) { - (t.KeenDataviz = r.Dataviz), - (t.KeenDataset = r.Dataset), - (t.Keen = t.Keen || {}), - (t.Keen.Dataset = r.Dataset), - (t.Keen.Dataviz = r.Dataviz); - }), - (e.keenGlobals = void 0), - 'undefined' != typeof webpackKeenGlobals && - (e.keenGlobals = webpackKeenGlobals), - (e.default = r.Dataviz); - }.call(this, n(7))); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Dataset = e.Dataviz = void 0); - var r = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - }, - i = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }, - o = n(12); - Object.defineProperty(e, 'Dataset', { - enumerable: !0, - get: function() { - return o.Dataset; - } - }); - var a = (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && - (e[n] = t[n]); - return (e.default = t), e; - })(n(2)), - s = x(n(10)), - u = x(n(31)), - l = x(n(32)), - c = n(0), - f = x(n(11)), - d = n(14), - h = (n(4), x(n(33))), - p = n(15), - g = x(n(17)), - v = x(n(18)), - m = x(n(16)), - y = x(n(53)), - b = x(n(1)), - _ = x(n(54)); - function x(t) { - return t && t.__esModule ? t : { default: t }; - } - var w = (e.Dataviz = function t() { - var e = this, - n = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : {}; - if (this instanceof t == 0) return new t(n); - (this.c3 = s.default), (this.d3 = a); - var r = { - showDeprecationWarnings: !0, - showLoadingSpinner: !1, - container: void 0, - containerElement: void 0, - title: void 0, - showTitle: !0, - subtitle: void 0, - notes: void 0, - theme: 'keen-dataviz', - colors: [ - '#00bbde', - '#fe6672', - '#eeb058', - '#8a8ad6', - '#ff855c', - '#00cfbb', - '#5a9eed', - '#73d483', - '#c879bb', - '#0099b6', - '#d74d58', - '#cb9141', - '#6b6bb6', - '#d86945', - '#00aa99', - '#4281c9', - '#57b566', - '#ac5c9e', - '#27cceb', - '#ff818b', - '#f6bf71', - '#9b9be1', - '#ff9b79', - '#26dfcd', - '#73aff4', - '#87e096', - '#d88bcb' - ], - colorMapping: {}, - ui: { executionMetadata: !0 }, - utils: { clickToCopyToClipboard: !0 }, - indexBy: 'timeframe.start', - labels: [], - labelMapping: {}, - labelMappingRegExp: void 0, - errorMapping: {}, - showErrorMessages: !0, - library: 'default', - sortGroups: void 0, - sortIntervals: void 0, - results: void 0, - type: void 0, - stacked: !1, - dateFormat: void 0, - legend: { - show: !0, - position: 'right', - alignment: 'top', - label: { textMaxLength: 12 }, - pagination: { offset: 0, limit: 5 }, - tooltip: { show: !0, pointer: !0 }, - sort: void 0 - }, - axis: {}, - color: {}, - size: {}, - padding: { top: 15 }, - point: { - focus: { expand: { enabled: !1 } }, - r: 2, - show: !0, - sensitivity: 300 - }, - tooltip: { horizontal: !0, format: {} }, - transition: {}, - data: { - order: null, - selection: { enabled: !0, draggable: !0, multiple: !0 }, - onselected: function(t, n) { - var r = e.view._artifacts.c3 - .selected() - .reduce(function(t, e) { - return t + e.value; - }, 0); - (0, b.default)(r); - } - }, - grid: { y: { show: !0 } }, - partialIntervalIndicator: { - show: void 0, - className: 'partial-interval-indicator' - }, - timezone: 'UTC', - table: { schema: 'static' }, - renderOnVisible: !1, - funnel: { - lines: !0, - resultValues: !0, - percents: { - show: !1, - countingMethod: 'absolute', - decimals: 0 - }, - marginBetweenElements: !1, - hover: !0, - effect3d: 'both-sides', - minimalSize: !1 - }, - react: !1, - range: !1, - sparkline: !1, - choropleth: { - map: 'world', - borders: { show: !0, size: 0.5, color: '#000' }, - showSlider: !1 - }, - heatmap: {} - }; - (this.config = i({}, (0, p.extendDeep)(r, n))), - n.palette && - (_.default[n.palette] || - console.log('Colors pallete not found', n.palette), - (this.config.colors = _.default[n.palette].colors)), - this.config.type && (this.config.type = O(this.config.type)), - this.config.type && - this.config.type.includes('-range') && - ((this.config.range = !0), - (this.config.type = this.config.type.replace('-range', '')), - (this.config.legend.show = !1), - (this.config.stacking = 'normal'), - (this.config.labels = ['Max', 'Min']), - (this.config.colors = [ - this.config.colors[0], - this.config.colors[0] - ])), - this.config.stacking && (this.config.stacked = !0), - this.config.sparkline && - ((this.config.legend.show = !1), - (this.config.axis = { x: { show: !1 }, y: { show: !1 } }), - (this.config.grid = { x: { show: !1 }, y: { show: !1 } })), - this.config.container && this.el(this.config.container), - void 0 === n.legend || - n.legend || - (this.config.legend = i({}, n, { show: !1 })), - n.color && - n.color.pattern && - (this.config.colors = n.color.pattern), - this.config.legend && - this.config.legend.tooltip && - !1 === this.config.legend.tooltip.show && - void 0 === this.config.tooltip.show && - (this.config.tooltip = { show: !1 }), - (this.dataset = new o.Dataset(this.config)), - (this.view = { - _prepared: !1, - _rendered: !1, - _artifacts: {} - }), - t.visuals.push(this), - this.config.showLoadingSpinner && this.prepare(), - this.config.results && this.render(this.config.results), - (this.config.firstVisibilityState = document.visibilityState), - this.config.utils.clickToCopyToClipboard || - (this.config.data.onselected = function() {}), - n.data && - n.data.onselected && - (this.config.data.onselected = function(t, r) { - if ( - (n.data.onselected.bind(null, t, r)(), - e.config.utils.clickToCopyToClipboard) - ) { - var i = e.view._artifacts.c3 - .selected() - .reduce(function(t, e) { - return t + e.value; - }, 0); - (0, b.default)(i); - } - }); - }); - function S(t) { - 2 !== t.data()[0].length || (0, f.default)(t.data()[1][0]) - ? t.dataset.updateRow( - 0, - function(e, n) { - return n > 0 && t.config.labels[n - 1] - ? (0, d.stripHtmlTags)(String(t.config.labels[n - 1])) - : (0, d.stripHtmlTags)(e); - }.bind(t) - ) - : t.dataset.updateColumn( - 0, - function(e, n) { - return t.config.labels[n - 1] - ? (0, d.stripHtmlTags)(String(t.config.labels[n - 1])) - : (0, d.stripHtmlTags)(e); - }.bind(t) - ); - } - function E(t) { - var e = t.datavizInstance, - n = t.value; - if (e.config.labelMappingRegExp) { - var r = n; - return ( - e.config.labelMappingRegExp.forEach(function(t) { - t.length > 1 && t[0].test(n) && (r = t[1]); - }), - (0, d.stripHtmlTags)(r) - ); - } - return e.config.labelMapping[n] - ? (0, d.stripHtmlTags)(String(e.config.labelMapping[n])) - : (0, d.stripHtmlTags)(n); - } - function k(t) { - t.config.labelMappingDimension || - (2 !== t.data()[0].length || (0, f.default)(t.data()[1][0]) - ? (t.config.labelMappingDimension = 'column') - : (t.config.labelMappingDimension = 'row')), - ('row' !== t.config.labelMappingDimension && - 'both' !== t.config.labelMappingDimension) || - t.dataset.updateColumn( - 0, - function(e) { - return E({ datavizInstance: t, value: e }); - }.bind(t) - ), - ('column' !== t.config.labelMappingDimension && - 'both' !== t.config.labelMappingDimension) || - t.dataset.updateRow( - 0, - function(e) { - return E({ datavizInstance: t, value: e }); - }.bind(t) - ); - } - function A(t) { - t.config.sortGroups && - t.data().length > 1 && - ((0, f.default)(t.data()[1][0]) - ? t.dataset.sortColumns( - t.config.sortGroups, - t.dataset.getColumnSum - ) - : t.dataset.sortRows( - t.config.sortGroups, - t.dataset.getRowSum - )); - } - function T(t) { - t.config.sortIntervals && - t.dataset.sortRows(t.config.sortIntervals); - } - function C(t, e) { - var n = '', - r = '', - i = ''; - ('top' !== e.legend.position && - 'bottom' !== e.legend.position) || - (r = 'c3-chart-100-percent'), - e.range && (i = 'keen-dataviz-range'); - var o = '
', - a = 'horizontal', - s = 'center'; - ['left', 'center', 'right'].includes(e.legend.alignment) && - (s = e.legend.alignment), - ('left' !== e.legend.position && - 'right' !== e.legend.position) || - ((a = 'vertical'), - ['top', 'middle', 'bottom'].includes(e.legend.alignment) && - (s = e.legend.alignment)), - e.legend && - e.legend.show && - (o = - 'top' === e.legend.position || - 'left' === e.legend.position - ? '
' + - o - : o + - '
'), - e.react || (n += '
'), - e.title && - e.showTitle && - (n += - '
' + - e.title + - '
'), - e.subtitle && - (n += - '
' + - e.subtitle + - '
'), - (n += - '
' + - o + - '
'), - e.notes && - (n += - '
' + - e.notes + - '
'), - e.react || (n += '
'), - (t.innerHTML = n); - } - function O(t) { - return ( - { - areachart: 'area', - barchart: 'horizontal-bar', - columnchart: 'bar', - linechart: 'line', - piechart: 'pie' - }[t] || t - ); - } - function P(t) { - 'undefined' == typeof document && 'undefined' != typeof window - ? (null == document.readyState && - document.addEventListener && - (document.addEventListener( - 'DOMContentLoaded', - function t() { - document.removeEventListener( - 'DOMContentLoaded', - t, - !1 - ), - (document.readyState = 'complete'); - }, - !1 - ), - (document.readyState = 'loading')), - (function t(e) { - /in/.test(document.readyState) - ? setTimeout(function() { - t(e); - }, 9) - : e(); - })(t)) - : t(); - } - (w.libraries = { default: {} }), - 'undefined' != typeof window && - (w.libraries.default = (0, h.default)(w)), - (w.visuals = []), - (w.register = function(t, e) { - (w.libraries[t] = w.libraries[t] || {}), - (0, c.each)(e, function(e, n) { - w.libraries[t][n] = e; - }); - }), - (w.find = function(t) { - if (!arguments.length) return w.visuals; - var e = t.nodeName ? t : document.querySelector(t), - n = null; - return ( - (0, c.each)(w.visuals, function(t) { - if (e == t.config.container) return (n = t), !1; - }), - n - ); - }), - (w.prototype.attributes = function(t) { - if ( - (this.config.showDeprecationWarnings && - console.log( - '.attributes() is deprecated. Use: new KeenDataviz({ _your_value_here_ })' - ), - !arguments.length) - ) - return this.config; - var e = this.config; - return ( - (0, c.each)(t, function(t, n) { - 'chartType' === n && (n = 'type'), (e[n] = t); - }), - this - ); - }), - (w.prototype.call = function(t) { - return t.call(this), this; - }), - (w.prototype.chartOptions = function(t) { - return ( - this.config.showDeprecationWarnings && - console.log( - '.chartOptions() is deprecated. Use: new KeenDataviz({ _your_value_here_ })' - ), - arguments.length - ? ((this.config = (0, p.extendDeep)(this.config, t)), - this) - : this.config - ); - }), - (w.prototype.colors = function(t) { - return ( - this.config.showDeprecationWarnings && - console.log( - '.colors() is deprecated. Use: new KeenDataviz({ colors: _your_value_here_ })' - ), - arguments.length - ? ((this.config.colors = t instanceof Array ? t : []), - this) - : this.config.colors - ); - }), - (w.prototype.colorMapping = function(t) { - this.config.showDeprecationWarnings && - console.log( - '.colorMapping() is deprecated. Use: new KeenDataviz({ colorMapping: _your_value_here_ })' - ); - var e = this; - return arguments.length - ? (null === t - ? (this.config.colorMapping = {}) - : 'object' === (void 0 === t ? 'undefined' : r(t)) && - (0, c.each)(t, function(t, n) { - e.config.colorMapping[n] = t || null; - }), - this) - : this.config.colorMapping; - }), - (w.prototype.data = l.default), - (w.prototype.dateFormat = function(t) { - return ( - this.config.showDeprecationWarnings && - console.log( - '.dateFormat() is deprecated. Use: new KeenDataviz({ dateFormat: _your_value_here_ })' - ), - arguments.length - ? ((this.config.dateFormat = - 'string' == typeof t || 'function' == typeof t - ? t - : void 0), - this) - : this.config.dateFormat - ); - }), - (w.prototype.destroy = function() { - var t = this.library(), - e = this.config.type, - n = this.el(); - return ( - w.libraries[t] && - w.libraries[t][e] && - w.libraries[t][e].destroy.call(this), - n && (n.innerHTML = ''), - (this.view._prepared = !1), - (this.view._rendered = !1), - (this.view._artifacts = {}), - this - ); - }), - (w.prototype.el = function(t) { - var e = this; - return arguments.length - ? (P(function() { - t && null !== t - ? t.nodeName - ? (e.config.containerElement = t) - : document.querySelector && - (e.config.containerElement = document.querySelector( - t - )) - : (e.config.containerElement = void 0); - }), - this) - : this.config.containerElement; - }), - (w.prototype.height = function(t) { - return ( - this.config.showDeprecationWarnings && - console.log('.height() is deprecated - use CSS classes'), - this - ); - }), - (w.prototype.indexBy = function(t) { - return ( - this.config.showDeprecationWarnings && - console.log( - '.indexBy() is deprecated. Use: new KeenDataviz({ indexBy: _your_value_here_ })' - ), - arguments.length - ? ((this.config.indexBy = t - ? String(t) - : 'timeframe.start'), - this) - : this.config.indexBy - ); - }), - (w.prototype.labels = function(t) { - return ( - this.config.showDeprecationWarnings && - console.log( - '.labels() is deprecated. Use: new KeenDataviz({ labels: _your_value_here_ })' - ), - arguments.length - ? ((this.config.labels = t instanceof Array ? t : []), - S(this), - this) - : this.config.labels - ); - }), - (w.prototype.labelMapping = function(t) { - return ( - this.config.showDeprecationWarnings && - console.log( - '.labelMapping() is deprecated. Use: new KeenDataviz({ labelMapping: _your_value_here_ })' - ), - arguments.length - ? (null === t - ? (this.config.labelMapping = {}) - : 'object' === (void 0 === t ? 'undefined' : r(t)) && - (0, c.each)( - t, - function(t, e) { - this.config.labelMapping[e] = t || null; - }.bind(this) - ), - k(this), - this) - : this.config.labelMapping - ); - }), - (w.prototype.library = function(t) { - return arguments.length - ? ((this.config.library = t ? String(t) : null), this) - : this.config.library; - }), - (w.prototype.message = function() { - if ((this.view._rendered && this.destroy(), this.el())) { - this.el().innerHTML = ''; - var t = w.libraries.default.message; - t.render && t.render.apply(this, arguments); - } - return this; - }), - (w.prototype.notes = function(t) { - return ( - this.config.showDeprecationWarnings && - console.log( - '.notes() is deprecated. Use: new KeenDataviz({ notes: _your_value_here_ })' - ), - arguments.length - ? ((this.config.notes = t ? String(t) : null), this) - : this.config.notes - ); - }), - (w.prototype.prepare = function() { - var t = this; - if (!this.el()) - throw this.config.container + - ' not found. A DOM parent element is required to mount the chart.'; - return ( - P(function() { - if ((t.view._rendered && t.destroy(), t.el())) { - t.el().innerHTML = ''; - var e = w.libraries.default.spinner; - e.render && e.render.call(t), (t.view._prepared = !0); - } - }), - this - ); - }), - (w.prototype.render = function() { - var t = this, - e = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : void 0, - n = this; - if (e) { - var r = e[0] || e; - if ( - (r.query && - r.query.interval && - r.query.timeframe && - 'string' == typeof r.query.timeframe && - r.query.timeframe.includes('this_') && - this.config.partialIntervalIndicator && - void 0 === this.config.partialIntervalIndicator.show && - (this.config.partialIntervalIndicator.show = !0), - Array.isArray(e)) - ) { - var i = e.map(function(t) { - return t.query.timeframe; - }); - return ( - i.forEach(function(t) { - if ( - i.find(function(e) { - return JSON.stringify(e) !== JSON.stringify(t); - }) - ) { - var e = - 'Timeframes of the queries should be the same'; - throw (console.error(e), e); - } - }), - n - .data(e[0]) - .call(function() { - var r = function(t) { - return ( - t.query.event_collection + - ' ' + - t.query.analysis_type - ); - }, - i = r(e[0]); - n.config.labelMapping[i] && - (i = n.config.labelMapping[i]), - t.dataset.deleteColumn(1); - var a = !0, - s = !1, - u = void 0; - try { - for ( - var l, c = e[Symbol.iterator](); - !(a = (l = c.next()).done); - a = !0 - ) { - var f = l.value; - i = r(f); - var d = o.Dataset.parser('interval')(f); - n.dataset.appendColumn( - i, - d.selectColumn(1).slice(1) - ); - } - } catch (t) { - (s = !0), (u = t); - } finally { - try { - !a && c.return && c.return(); - } finally { - if (s) throw u; - } - } - }) - .render() - ); - } - return n.data(e).render(); - } - ((this.config.labelMapping && - Object.keys(this.config.labelMapping).length > 0) || - (this.config.labelMappingRegExp && - this.config.labelMappingRegExp.length > 0)) && - k(n), - this.config.labels && - Object.keys(this.config.labels).length > 0 && - S(n), - this.config.sortGroups && A(n), - this.config.sortIntervals && T(n); - var a = w.libraries.default.spinner, - s = this.config.library, - u = this.config.type, - l = this.el(); - if (!l || void 0 === l) { - var c = - this.config.container + - ' not found. A DOM parent element is required to mount the chart.'; - throw (console.error(c), c); - } - var f = n; - return ( - n.config.renderAsPromise && - (f = new Promise(function(e, r) { - var i = t.config.onrendered; - n.config.onrendered = function() { - i && i(), e(n); - }; - })), - P(function() { - var t = - n.execution_metadata && - n.config.ui && - n.config.ui.executionMetadata, - e = - n.config.ui && - n.config.ui.buttons && - n.config.ui.buttons.download && - n.config.ui.buttons.download.type; - if ( - (n.view._prepared && - a.destroy && - a.destroy.apply(n, arguments), - (l.innerHTML = ''), - 'undefined' === w.libraries[s]) - ) { - var r = 'Incorrect library'; - throw (n.message(r), r); - } - if (void 0 === w.libraries[s][u]) { - var i = 'Incorrect chart type', - o = this.config.errorMapping[i] || i; - throw (n.message(o), i); - } - C(l, n.config), - e && - (0, m.default)({ - element: l, - data: n.dataset.matrix, - type: n.config.ui.buttons.download.type, - label: n.config.ui.buttons.download.label - }), - t && - (0, y.default)({ - element: l, - data: n.execution_metadata - }); - var c = n.config.renderOnVisible; - if (c && 'undefined' != typeof IntersectionObserver) { - var f = function(t, e) { - t.forEach(function(t) { - t.isIntersecting && - (n.view._rendered || - (w.libraries[s][u].render.call(n), - (n.view._rendered = !0))); - }); - }, - d = new IntersectionObserver(f); - d.observe(l); - } else { - if ( - 'hidden' === n.config.firstVisibilityState && - 'undefined' != typeof document - ) { - var h = void 0, - p = void 0; - void 0 !== document.hidden - ? ((h = 'hidden'), (p = 'visibilitychange')) - : void 0 !== document.msHidden - ? ((h = 'msHidden'), (p = 'msvisibilitychange')) - : void 0 !== document.webkitHidden && - ((h = 'webkitHidden'), - (p = 'webkitvisibilitychange')); - var g = function() { - document[h] || - n.view._artifacts.c3.load(n.dataset.matrix); - }; - (void 0 === document.addEventListener && - void 0 === h) || - document.addEventListener(p, g, { once: !0 }); - } - w.libraries[s][u].render.call(n), - (n.view._rendered = !0); - } - }), - f - ); - }), - (w.prototype.sortGroups = function(t) { - return ( - this.config.showDeprecationWarnings && - console.log( - '.sortGroups() is deprecated. Use: new KeenDataviz({ sortGroups: _your_value_here_ })' - ), - arguments.length - ? ((this.config.sortGroups = t ? String(t) : null), - A(this), - this) - : this.config.sortGroups - ); - }), - (w.prototype.sortIntervals = function(t) { - return ( - this.config.showDeprecationWarnings && - console.log( - '.sortIntervals() is deprecated. Use: new KeenDataviz({ sortIntervals: _your_value_here_ })' - ), - arguments.length - ? ((this.config.sortIntervals = t ? String(t) : null), - T(this), - this) - : this.config.sortIntervals - ); - }), - (w.prototype.stacked = function(t) { - return ( - this.config.showDeprecationWarnings && - console.log( - '.stacked() is deprecated. Use: new KeenDataviz({ stacked: _your_value_here_ })' - ), - arguments.length - ? ((this.config.stacked = !!t), this) - : this.config.stacked - ); - }), - (w.prototype.theme = function(t) { - return ( - this.config.showDeprecationWarnings && - console.log( - '.theme() is deprecated. Use: new KeenDataviz({ theme: _your_value_here_ })' - ), - arguments.length - ? ((this.config.theme = t ? String(t) : null), this) - : this.config.theme - ); - }), - (w.prototype.title = function(t) { - return ( - this.config.showDeprecationWarnings && - console.log( - '.title() is deprecated. Use: new KeenDataviz({ title: _your_value_here_ })' - ), - arguments.length - ? ((this.config.title = t ? String(t) : null), this) - : this.config.title - ); - }), - (w.prototype.type = function(t) { - return ( - this.config.showDeprecationWarnings && - console.log( - '.type() is deprecated. Use: new KeenDataviz({ type: _your_value_here_ })' - ), - arguments.length - ? ((this.config.type = t ? O(t) : null), this) - : this.config.type - ); - }), - (w.prototype.update = function() { - var t = this.config.library, - e = this.config.type, - n = this.el(); - return ( - t && - e && - n && - w.libraries[t][e].update && - w.libraries[t][e].update.apply(this, arguments), - this - ); - }), - (w.prototype.width = function(t) { - return ( - this.config.showDeprecationWarnings && - console.log('.width() is deprecated - use CSS classes'), - this - ); - }), - (w.prototype.exportImage = function() { - var t = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : {}, - e = t.quality, - n = void 0 === e ? 0 : e, - r = t.bgcolor, - i = void 0 === r ? '#fff' : r; - (0, g.default)({ - node: this.config.containerElement, - quality: n, - bgcolor: i - }); - }), - (w.prototype.exportData = function() { - var t = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : 'json'; - (0, v.default)({ data: this.dataset.matrix, type: t }); - }), - (w.prototype.chartType = w.prototype.type), - (w.prototype.error = w.prototype.message), - (w.prototype.parseRawData = w.prototype.data), - (w.prototype.parseRequest = function() { - return this; - }), - (w.prototype.initialize = function() { - return this; - }), - (w.version = u.default.version), - (e.default = w); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.deleteColumn = function(t) { - var e = this, - n = 'number' == typeof t ? t : this.matrix[0].indexOf(t); - return ( - n > -1 && - (0, r.each)(e.matrix, function(t, r) { - e.matrix[r].splice(n, 1); - }), - e - ); - }), - (e.deleteRow = function(t) { - var e = - 'number' == typeof t ? t : this.selectColumn(0).indexOf(t); - return e > -1 && this.matrix.splice(e, 1), this; - }); - var r = n(0); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.filterColumns = function(t) { - var e = this, - n = []; - return ( - (0, r.each)(e.matrix, function(t, e) { - n.push([]); - }), - (0, r.each)(e.matrix[0], function(i, o) { - var a = e.selectColumn(o); - (0 == o || t.call(e, a, o)) && - (0, r.each)(a, function(t, e) { - n[e].push(t); - }); - }), - e.data(n), - e - ); - }), - (e.filterRows = function(t) { - var e = this, - n = []; - return ( - (0, r.each)(e.matrix, function(r, i) { - (0 == i || t.call(e, r, i)) && n.push(r); - }), - e.data(n), - e - ); - }); - var r = n(0); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.insertColumn = function(t, e, n) { - var r = this, - o = void 0 !== e ? e : null; - return ( - 'function' == typeof n - ? (r.matrix[0].splice(t, 0, o), - (0, i.each)(r.matrix, function(e, i) { - var o; - i > 0 && - (void 0 === (o = n.call(r, e, i)) && (o = null), - r.matrix[i].splice(t, 0, o)); - })) - : (!n || n instanceof Array) && - ((n = n || []).length <= r.matrix.length - 1 - ? (n = n.concat( - (0, a.default)(r.matrix.length - 1 - n.length) - )) - : (0, i.each)(n, function(t, e) { - r.matrix.length - 1 < n.length && - s.appendRow.call(r, String(r.matrix.length)); - }), - r.matrix[0].splice(t, 0, o), - (0, i.each)(n, function(e, n) { - r.matrix[n + 1].splice(t, 0, e); - })), - r - ); - }), - (e.insertRow = function(t, e, n) { - var r = this, - o = [], - u = void 0 !== e ? e : null; - return ( - o.push(u), - 'function' == typeof n - ? ((0, i.each)(r.matrix[0], function(t, e) { - var i = void 0, - a = void 0; - e > 0 && - ((i = r.selectColumn(e)), - void 0 === (a = n.call(r, i, e)) && (a = null), - o.push(a)); - }), - r.matrix.splice(t, 0, o)) - : (!n || n instanceof Array) && - ((n = n || []).length <= r.matrix[0].length - 1 - ? (n = n.concat( - (0, a.default)(r.matrix[0].length - 1 - n.length) - )) - : (0, i.each)(n, function(t, e) { - r.matrix[0].length - 1 < n.length && - s.appendColumn.call( - r, - String(r.matrix[0].length) - ); - }), - r.matrix.splice(t, 0, o.concat(n))), - r - ); - }); - var r, - i = n(0), - o = n(9), - a = (r = o) && r.__esModule ? r : { default: r }, - s = n(8); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.selectColumn = function(t) { - var e = [], - n = 'number' == typeof t ? t : this.matrix[0].indexOf(t); - return ( - n > -1 && - void 0 !== this.matrix[0][n] && - (0, r.each)(this.matrix, function(t, r) { - e.push(t[n]); - }), - e - ); - }), - (e.selectRow = function(t) { - var e = [], - n = - 'number' == typeof t - ? t - : this.selectColumn(0).indexOf(t); - return ( - n > -1 && void 0 !== this.matrix[n] && (e = this.matrix[n]), - e - ); - }); - var r = n(0); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.sortColumns = function(t, e) { - var n = this, - r = this.matrix[0].slice(1), - o = [], - s = e || a.default.getColumnLabel; - return ( - (0, i.each)(r, function(t, e) { - o.push(n.selectColumn(e + 1).slice(0)); - }), - o.sort(function(e, r) { - var i = s.call(n, e) > s.call(n, r); - return i - ? 'asc' === t - ? 1 - : -1 - : i - ? 0 - : 'asc' === t - ? -1 - : 1; - }), - (0, i.each)(o, function(t, e) { - n.deleteColumn(e + 1).insertColumn( - e + 1, - t[0], - t.slice(1) - ); - }), - n - ); - }), - (e.sortRows = function(t, e) { - var n = this, - r = this.matrix.slice(0, 1), - i = this.matrix.slice(1), - o = e || a.default.getRowIndex; - return ( - i.sort(function(e, r) { - var i = o.call(n, e) > o.call(n, r); - return i - ? 'asc' === t - ? 1 - : -1 - : i - ? 0 - : 'asc' === t - ? -1 - : 1; - }), - n.data(r.concat(i)), - n - ); - }); - var r, - i = n(0), - o = n(13), - a = (r = o) && r.__esModule ? r : { default: r }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.updateColumn = function(t, e) { - var n = this, - r = 'number' == typeof t ? t : this.matrix[0].indexOf(t); - return ( - r > -1 && - ('function' == typeof e - ? (0, i.each)(n.data(), function(t, i) { - var o; - i > 0 && - void 0 !== (o = e.call(n, t[r], i, t)) && - (n.matrix[i][r] = o); - }) - : (!e || e instanceof Array) && - ((e = e || []).length <= n.data().length - 1 - ? (e = e.concat( - (0, a.default)(n.data().length - 1 - e.length) - )) - : (0, i.each)(e, function(t, r) { - n.matrix.length - 1 < e.length && - s.appendRow.call(n, String(n.matrix.length)); - }), - (0, i.each)(e, function(t, e) { - n.matrix[e + 1][r] = t; - }))), - n - ); - }), - (e.updateRow = function(t, e) { - var n = this, - r = - 'number' == typeof t - ? t - : this.selectColumn(0).indexOf(t); - return ( - r > -1 && - ('function' == typeof e - ? (0, i.each)(n.data()[r], function(t, i) { - var o = n.selectColumn(i), - a = e.call(n, t, i, o); - void 0 !== a && (n.matrix[r][i] = a); - }) - : (!e || e instanceof Array) && - ((e = e || []).length <= n.matrix[0].length - 1 - ? (e = e.concat( - (0, a.default)( - n.matrix[0].length - 1 - e.length - ) - )) - : (0, i.each)(e, function(t, r) { - n.matrix[0].length - 1 < e.length && - s.appendColumn.call( - n, - String(n.matrix[0].length) - ); - }), - (0, i.each)(e, function(t, e) { - n.matrix[r][e + 1] = t; - }))), - n - ); - }); - var r, - i = n(0), - o = n(9), - a = (r = o) && r.__esModule ? r : { default: r }, - s = n(8); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t) { - return ( - (a = t), - function(t) { - var e = Array.prototype.slice.call(arguments, 1); - if (s[t]) return s[t].apply(this, e); - throw 'Requested parser does not exist'; - } - ); - }); - var r = n(0), - i = n(29), - o = n(30), - a = void 0, - s = { - metric: function() { - return function(t) { - return new a() - .set(['Value', 'Result'], t.result) - .type('metric'); - }; - }, - interval: function() { - var t = Array.prototype.slice.call(arguments); - return function(e) { - var n = new a().type('interval'); - return ( - (0, r.each)(e.result, function(e, r) { - var i = - t[0] && 'timeframe.end' === t[0] - ? e.timeframe.end - : e.timeframe.start; - n.set(['Result', i], e.value); - }), - n - ); - }; - }, - 'grouped-metric': function() { - return function(t) { - var e = new a().type('grouped-metric'); - return ( - (0, r.each)(t.result, function(t, n) { - var i; - (0, r.each)(t, function(t, e) { - 'result' !== e && (i = e); - }), - e.set(['Result', String(t[i])], t.result); - }), - e - ); - }; - }, - 'grouped-interval': function() { - var t = Array.prototype.slice.call(arguments); - return function(e) { - var n = new a().type('grouped-interval'); - return ( - (0, r.each)(e.result, function(e, i) { - var o = - t[0] && 'timeframe.end' === t[0] - ? e.timeframe.end - : e.timeframe.start; - e.value.length - ? (0, r.each)(e.value, function(t, e) { - var i; - (0, r.each)(t, function(t, e) { - 'result' !== e && (i = e); - }), - n.set([String(t[i]), o], t.result); - }) - : n.appendRow(o); - }), - n - ); - }; - }, - 'double-grouped-metric': function() { - var t = Array.prototype.slice.call(arguments); - if (!t[0]) - throw 'Requested parser requires a sequential list (array) of properties to target as a second argument'; - return function(e) { - var n = new a().type('double-grouped-metric'); - return ( - (0, r.each)(e.result, function(e, r) { - var i = e[t[0][0]] + ' ' + e[t[0][1]]; - n.set(['Result', i], e.result); - }), - n - ); - }; - }, - 'double-grouped-interval': function() { - var t = Array.prototype.slice.call(arguments); - if (!t[0]) - throw 'Requested parser requires a sequential list (array) of properties to target as a second argument'; - return function(e) { - var n = new a().type('double-grouped-interval'); - return ( - (0, r.each)(e.result, function(e, i) { - var o = - t[1] && 'timeframe.end' === t[1] - ? e.timeframe.end - : e.timeframe.start; - (0, r.each)(e.value, function(e, r) { - var i = e[t[0][0]] + ' ' + e[t[0][1]]; - n.set([i, o], e.result); - }); - }), - n - ); - }; - }, - funnel: function() { - return function(t) { - var e, n, i; - return ( - void 0 !== t.steps && - void 0 !== t.result && - t.result instanceof Array - ? ((e = t.result), (n = t.steps)) - : void 0 !== t.result.steps && - void 0 !== t.result.result && - t.result.result instanceof Array && - ((e = t.result.result), (n = t.result.steps)), - (i = new a().type('funnel')).appendColumn('Step Value'), - (0, r.each)(e, function(t, e) { - void 0 !== n && - n[e] && - i.appendRow(String(n[e].event_collection), [t]); - }), - i - ); - }; - }, - list: function() { - return function(t) { - var e = new a().type('list'); - return ( - (0, r.each)(t.result, function(t, n) { - e.set(['Result', String(n + 1)], t); - }), - e - ); - }; - }, - extraction: function() { - var t = this.config; - return function(e) { - var n = new a().type('extraction'), - r = Object.keys((0, i.flatten)(e.result[0])), - s = t && t.table; - if (s && 'dynamic' === s.schema) { - var u = e.result, - l = {}; - u.forEach(function(t) { - var e = Object.keys((0, i.flatten)(t)); - e && - e.length && - e.forEach(function(t) { - l[t] || (l[t] = !0); - }); - }), - (r = Object.keys(l)); - } - r.forEach(function(t) { - n.set([t, '0'], t); - }), - a && - t && - t.table && - t.table.columns && - (r = t.table.columns); - for (var c = 0; c < e.result.length; c++) { - for (var f = [c + 1], d = 0; d < r.length; d++) - f.push((0, o.valueAtDeepKey)(e.result[c], r[d])); - n.matrix[String(c + 1)] = f; - } - return n.deleteColumn(0), n; - }; - }, - 'heatmap-axis': function() { - return function(t) { - var e = new a().type('heatmap'); - return ( - (0, r.each)(t.result, function(t, n) { - var r = Object.keys(t), - i = t[r[0]], - o = t[r[1]]; - e.appendRow([String(i), String(o), t.result]); - }), - e - ); - }; - } - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - }; - e.flatten = function t(e) { - var n = {}; - for (var i in e) - if (e.hasOwnProperty(i)) - if ('object' == r(e[i]) && null !== e[i]) { - var o = t(e[i]); - for (var a in o) - o.hasOwnProperty(a) && (n[i + '.' + a] = o[a]); - } else n[i] = e[i]; - return n; - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.valueAtDeepKey = function t(e, n, r) { - return 'string' == typeof n - ? t(e, n.split('.'), r) - : 1 == n.length && - void 0 !== r && - null !== e && - void 0 !== e[n[0]] - ? (e[n[0]] = r) - : 0 == n.length - ? e - : void 0 === n || - void 0 === e || - null === n || - null === e || - void 0 === e[n[0]] - ? null - : t(e[n[0]], n.slice(1), r); - }); - }, - function(t) { - t.exports = { - name: 'keen-dataviz', - description: 'Data Visualization SDK for Keen IO', - license: 'MIT', - version: '3.13.8', - main: 'dist/external_d3_c3/node/keen-dataviz.js', - browser: 'dist/external_d3_c3/keen-dataviz.js', - style: 'dist/keen-dataviz.css', - scripts: { - start: - 'concurrently --kill-others "NODE_ENV=development webpack-dev-server" "npm run postcss-watch"', - 'postcss-watch': - 'node_modules/postcss-cli/bin/postcss lib/style/keen-dataviz-c3.css -o test/demo/keen-dataviz.css --watch --config postcss.config.js', - build: - 'NODE_ENV=production webpack -p && npm run build:css && NODE_ENV=production OPTIMIZE_MINIMIZE=1 webpack -p && npm run build:css && npm run build:css:min && npm run build:external_d3_c3 && npm run build:external_d3_c3:css && npm run build:external_d3_c3:css:min && npm run build:node', - 'build:css': - 'node_modules/postcss-cli/bin/postcss lib/style/keen-dataviz-c3.css -o dist/keen-dataviz.css --config postcss.config.js', - 'build:css:min': - 'OPTIMIZE_MINIMIZE=1 node_modules/postcss-cli/bin/postcss lib/style/keen-dataviz-c3.css -o dist/keen-dataviz.min.css --config postcss.config.js', - 'build:external_d3_c3:css': - 'node_modules/postcss-cli/bin/postcss lib/style/keen-dataviz.css -o dist/external_d3_c3/keen-dataviz.css --config postcss.config.js', - 'build:external_d3_c3:css:min': - 'OPTIMIZE_MINIMIZE=1 node_modules/postcss-cli/bin/postcss lib/style/keen-dataviz.css -o dist/external_d3_c3/keen-dataviz.min.css --config postcss.config.js', - 'build:external_d3_c3': - 'NODE_ENV=production EXTERNAL_D3_C3=1 webpack -p && NODE_ENV=production EXTERNAL_D3_C3=1 OPTIMIZE_MINIMIZE=1 webpack -p', - 'build:node': - 'TARGET=node NODE_ENV=production EXTERNAL_D3_C3=1 webpack -p', - profile: 'webpack --profile --json > stats.json', - analyze: 'webpack-bundle-analyzer stats.json /dist', - version: 'npm run build && git add .', - postversion: 'git push && git push --tags && npm publish', - test: 'NODE_ENV=test jest', - 'test:watch': 'NODE_ENV=test jest --watch' - }, - repository: { - type: 'git', - url: 'https://github.com/keen/keen-dataviz.js.git' - }, - bugs: 'https://github.com/keen/keen-dataviz.js/issues', - author: 'Keen.IO (https://keen.io/)', - contributors: [ - 'Dustin Larimer (https://github.com/dustinlarimer)', - 'Joanne Cheng (https://github.com/joannecheng)', - 'Eric Anderson (https://github.com/aroc)', - 'Joe Wegner (https://github.com/josephwegner)', - 'Sara Falkoff (https://github.com/adamkasprowicz)', - 'Dariusz Łacheta (https://github.com/dariuszlacheta)' - ], - homepage: 'https://keen.io/', - keywords: [ - 'd3', - 'c3', - 'Analytics', - 'Stats', - 'Statistics', - 'Visualization', - 'Visualizations', - 'Data Visualization', - 'Chart', - 'Charts', - 'Charting', - 'Svg', - 'Dataviz', - 'Plots', - 'Graphs', - 'Funnels' - ], - dependencies: { - c3: '^0.7.2', - d3: '^5.11.0', - 'dom-to-image': '^2.6.0', - 'file-saver': '^2.0.1', - 'promise-polyfill': '^8.0.0', - rangeable: '^0.1.6' - }, - devDependencies: { - autoprefixer: '^8.2.0', - 'babel-loader': '^7.1.4', - 'babel-plugin-transform-es2015-modules-commonjs': '^6.26.2', - 'babel-plugin-transform-object-rest-spread': '^6.26.0', - 'babel-preset-env': '^1.7.0', - concurrently: '^3.5.1', - cssnano: '^3.10.0', - eslint: '^4.19.1', - 'eslint-config-airbnb': '^16.1.0', - 'eslint-loader': '^2.0.0', - 'eslint-plugin-import': '^2.11.0', - 'eslint-plugin-jsx-a11y': '^6.0.3', - 'eslint-plugin-react': '^7.7.0', - 'html-loader': '^0.5.5', - 'html-webpack-plugin': '^3.2.0', - jest: '^22.4.3', - 'jest-environment-jsdom-c3': '^2.0.0', - nock: '^9.2.6', - postcss: '^6.0.21', - 'postcss-cli': '^5.0.0', - 'postcss-color-function': '^4.0.1', - 'postcss-css-variables': '^0.8.1', - 'postcss-cssnext': '^2.4.0', - 'postcss-import': '^8.0.2', - 'postcss-loader': '^2.1.3', - precss: '^3.1.2', - 'regenerator-runtime': '^0.11.1', - 'replace-in-file': '^3.4.0', - 'style-loader': '^0.20.3', - webpack: '^4.29.0', - 'webpack-bundle-analyzer': '^3.3.2', - 'webpack-cli': '^3.2.1', - 'webpack-dev-server': '^3.3.1', - 'xhr-mock': '^2.3.2' - } - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t) { - return arguments.length - ? t instanceof o.default - ? ((this.dataset = t), this) - : u.call(this, t) - : this.dataset.data(); - }); - var r, - i = n(12), - o = (r = i) && r.__esModule ? r : { default: r }, - a = n(5), - s = n(14); - function u(t) { - var e, - n, - r, - i, - u, - l, - c, - f = []; - return ( - (n = this.config.indexBy), - (r = t.metadata || {}), - (u = void 0 !== t.query ? t.query : {}), - 'funnel' === - (u = (0, a.extend)( - { - analysis_type: null, - event_collection: null, - filters: [], - group_by: null, - interval: null, - timeframe: null, - timezone: null - }, - u - )).analysis_type - ? (i = 'funnel') - : 'extraction' === u.analysis_type - ? (i = 'extraction') - : 'select_unique' === u.analysis_type - ? u.group_by || u.interval || (i = 'list') - : u.analysis_type && - (u.group_by || u.interval - ? u.group_by && !u.interval - ? u.group_by instanceof Array && u.group_by.length > 1 - ? ((i = 'double-grouped-metric'), - f.push(u.group_by)) - : (i = 'grouped-metric') - : u.interval && !u.group_by - ? ((i = 'interval'), f.push(n)) - : u.group_by && - u.interval && - (u.group_by instanceof Array && - u.group_by.length > 1 - ? ((i = 'double-grouped-interval'), - f.push(u.group_by), - f.push(n)) - : ((i = 'grouped-interval'), f.push(n))) - : (i = 'metric')), - i || - ('number' == typeof t.result && (i = 'metric'), - t.result instanceof Array && - t.result.length > 0 && - (!t.result[0].timeframe || - ('number' != typeof t.result[0].value && - null != t.result[0].value) || - ((i = 'interval'), f.push(n)), - 'number' == typeof t.result[0].result && - (i = 'grouped-metric'), - 'heatmap' === this.config.type && - Object.keys( - 3 === t.result[0] && - 'number' == typeof t.result[0].result - ) && - (i = 'heatmap-axis'), - t.result[0].value instanceof Array && - ((i = 'grouped-interval'), f.push(n)), - 'number' == typeof t.result[0] && - void 0 !== t.steps && - ((i = 'funnel'), (u.steps = t.steps)), - ('string' != typeof t.result[0] && - 'number' != typeof t.result[0]) || - void 0 !== t.steps || - (i = 'list'), - i || (i = 'extraction')), - i || (i = 'extraction')), - void 0 === this.config.title && - ((l = r.display_name - ? r.display_name - : (function(t) { - var e, - n = t.analysis_type - ? t.analysis_type.replace('_', ' ') - : ''; - return ( - (e = n.replace(/\b./g, function(t) { - return t.toUpperCase(); - })), - t.event_collection && - (e += ' - ' + t.event_collection), - e - ); - })(u)), - (this.config.title = l)), - this.config.type || - ((c = - r.visualization && r.visualization.chart_type - ? r.visualization.chart_type - : (function(t) { - var e = void 0; - switch (t) { - case 'metric': - e = 'metric'; - break; - case 'interval': - e = 'area'; - break; - case 'grouped-metric': - case 'double-grouped-metric': - e = 'bar'; - break; - case 'grouped-interval': - case 'double-grouped-interval': - e = 'line'; - break; - case 'funnel': - e = 'horizontal-bar'; - break; - case 'list': - case 'extraction': - default: - e = 'table'; - } - return e; - })(i)), - (this.config.type = c)), - (e = o.default.parser.apply( - this, - [i].concat(f) - )((0, a.extend)(t, { query: u }))), - i.indexOf('interval') > -1 && - e.updateColumn(0, function(t, e) { - return new Date(t); - }), - e.updateRow(0, function(t, e) { - return (0, s.stripHtmlTags)(t); - }), - (this.dataset = e), - t.execution_metadata && - (this.execution_metadata = t.execution_metadata), - this - ); - } - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }; - e.default = function(t) { - var e, - n = void 0; - return ( - (e = function() { - n && clearTimeout(n); - var e = t.visuals.length > 12 ? 1e3 : 250; - n = setTimeout(function() { - (0, o.each)(t.visuals, function(t) { - var e = t.view._artifacts.c3; - if (e) { - var n = e.element.parentNode.parentNode.offsetWidth, - r = n; - if ( - t.config.legend && - t.config.legend.show && - ('left' === t.config.legend.position || - 'right' === t.config.legend.position) - ) { - var i = e.element.nextSibling - ? e.element.nextSibling.offsetWidth - : 0; - r = - n - - (e.element.previousSibling - ? e.element.previousSibling.offsetWidth - : 0) - - i; - } - e.resize({ width: r }); - } - }); - }, e); - }), - 'undefined' != typeof window && - ((window.onresize = window.resize = function() {}), - window.addEventListener - ? window.addEventListener('resize', e, !0) - : window.attachEvent && - window.attachEvent('onresize', e)), - (function() { - var t = { - message: h.default, - metric: p.default, - table: g.default, - spinner: v.default, - funnel: new m.default(), - 'funnel-3d': new y.default(), - 'horizontal-funnel': new b.default(), - 'horizontal-funnel-3d': new _.default(), - 'metric-combo': new x.default(), - heatmap: new w.default(), - choropleth: new S.default() - }, - e = function(t, e) { - return parseInt( - window - .getComputedStyle(t) - ['padding' + e].replace('px', '') - ); - }; - function n() { - var t = { - bindto: this.el().querySelector( - '.' + this.config.theme + '-rendering .c3-chart' - ), - color: { pattern: this.config.colors }, - data: { - colors: r({}, this.config.colorMapping), - columns: [], - type: this.config.type.replace('horizontal-', '') - } - }, - n = this.el(), - i = n.offsetHeight; - if ( - ((i -= e(n, 'Top') + e(n, 'Bottom')), - this.config.showTitle) - ) { - var o = this.el().querySelector('.keen-dataviz-title'); - i -= o - ? o.offsetHeight - : parseInt( - window - .getComputedStyle(this.el(), null) - ['font-size'].replace('px', '') - ); - } - if (this.config.subtitle) { - var s = this.el().querySelector( - '.keen-dataviz-subtitle' - ); - i -= s - ? s.offsetHeight - : parseInt( - window - .getComputedStyle(this.el(), null) - ['font-size'].replace('px', '') - ); - } - if (this.config.notes) { - var u = this.el().querySelector('.keen-dataviz-notes'); - i -= u - ? u.offsetHeight - : parseInt( - window - .getComputedStyle(this.el(), null) - ['font-size'].replace('px', '') - ); - } - var l = - this.el().querySelector('.c3-chart').offsetWidth - - (e(n, 'Left') + e(n, 'Right')); - l < 0 && (l = 0); - var c = { - size: { width: l, height: i > 0 ? i : void 0 } - }; - return (0, a.extendDeep)({}, c, this.config, t); - } - return ( - (0, o.each)( - [ - 'area', - 'area-spline', - 'area-step', - 'bar', - 'donut', - 'gauge', - 'line', - 'pie', - 'step', - 'spline', - 'horizontal-area', - 'horizontal-area-spline', - 'horizontal-area-step', - 'horizontal-bar', - 'horizontal-line', - 'horizontal-step', - 'horizontal-spline' - ], - function(a, h) { - t[a] = { - render: function() { - var t = this, - h = n.call(this), - p = (0, d.calculateSumForPercents)( - this.dataset.matrix - ); - if ( - ('percent' !== h.stacking || - ('bar' !== a && - 'horizontal-bar' !== a && - 'area' !== a && - 'area-step' !== a && - 'area-spline' !== a) || - (this.dataset.matrix, - (this.dataset.matrix = [ - this.dataset.matrix[0] - ].concat( - k( - (0, d.calculatePercents)( - this.dataset.matrix, - p - ) - ) - )), - h.sparkline || - (h.axis = { - y: { - padding: { top: 0 }, - tick: { - format: function(t) { - return t + '%'; - } - } - } - })), - h.range && - (this.dataset.matrix = [ - this.dataset.matrix[0] - ].concat( - k((0, f.default)(this.dataset.matrix)) - )), - this.config.clearOnRender && - h.data.columns.length && - this.dataset && - this.dataset.meta) - ) { - var g = (this.dataset.meta || {}).type, - v = 0; - ['interval'].includes(void 0 === g ? '' : g) && - (v = 1), - h.data.columns.splice(v); - } - if ( - 1 !== this.data()[0].length && - 1 !== this.data().length - ) { - var m = !1; - if ( - ('gauge' === a - ? ((h.legend.show = !1), - (h.data.columns = [ - [ - this.config.title || - this.data()[1][0], - this.data()[1][1] - ] - ]), - (m = !0)) - : 'pie' === a || 'donut' === a - ? (h.data.columns = this.data().slice(1)) - : (a.indexOf('horizontal-') > -1 && - (h.axis.rotated = - a.indexOf('horizontal-') > -1), - (0, s.default)(this.data()[1][0]) - ? ((h.axis.x = h.axis.x || {}), - (h.axis.x.type = 'timeseries'), - (h.axis.x.tick = h.axis.x.tick || { - format: - this.config.dateFormat || - (0, u.default)( - this.data()[1][0], - this.data()[2] - ? this.data()[2][0] - : this.data()[1][0] - ), - culling: { max: 5 } - }), - (h.data.columns[0] = []), - (0, o.each)( - this.dataset.selectColumn(0), - function(t, e) { - e > 0 && (t = new Date(t)), - (h.data.columns[0][e] = t); - } - ), - (h.data.columns[0][0] = 'x'), - (h.data.x = 'x'), - this.config.stacked && - this.data()[0].length > 2 && - (h.data.groups = [ - this.dataset.selectRow(0).slice(1) - ])) - : ((h.axis.x = h.axis.x || {}), - (h.axis.x.type = 'category'), - (h.axis.x.categories = this.dataset - .selectColumn(0) - .slice(1)), - this.config.stacked && - this.data()[0].length > 2 && - (h.data.groups = [ - this.dataset.selectRow(0).slice(1) - ])), - 2 === this.data()[0].length && - ((h.legend.show = !1), (m = !0)), - (0, o.each)( - this.data()[0], - function(t, e) { - e > 0 && - h.data.columns.push( - this.dataset.selectColumn(e) - ); - }.bind(this) - )), - m) - ) { - var y = this.el().querySelector( - '.keen-c3-legend' - ); - y && - (y.remove(), - (h.size.width = this.el().querySelector( - '.c3-chart' - ).offsetWidth)), - (h.legend.show = !1); - } - if ( - h.partialIntervalIndicator && - h.partialIntervalIndicator.show && - [ - 'area', - 'area-spline', - 'area-step', - 'line', - 'spline', - 'step' - ].indexOf(h.type) > -1 - ) { - var b = h.data.columns && h.data.columns[0]; - if (b && b.length > 1) { - var _ = { - axis: 'x', - start: new Date(b[b.length - 2]), - class: - h.partialIntervalIndicator.className - }; - h.regions = [].concat(k(h.regions || []), [ - _ - ]); - } - } - if ( - ((h.tooltip && !1 === h.tooltip.show) || - !( - !0 === h.legend.show || - (h.legend && - h.legend.tooltip && - h.legend.tooltip.show) - ) || - (h.tooltip = { - contents: c.default, - format: { - title: this.config.tooltip.format.title, - value: function(e, n, r, i) { - var o = T.call(t, e, n, r, i); - return t.config.tooltip && - t.config.tooltip.format && - t.config.tooltip.format.value - ? ((o = t.config.tooltip.format.value.call( - t, - o, - n, - r, - i - )), - 'percent' !== h.stacking || - ('bar' !== a && - 'horizontal-bar' !== a && - 'area' !== a && - 'area-step' !== a && - 'area-spline' !== a) || - (o = parseFloat( - ((o / 100) * p[i]).toFixed(2) - )), - h.range && - 'Max' === r && - (o += - t.dataset.matrix[i + 1][2]), - o) - : 'percent' !== h.stacking || - ('bar' !== a && - 'horizontal-bar' !== a && - 'area' !== a && - 'area-step' !== a && - 'area-spline' !== a) - ? (h.range && - 'Max' === r && - (o += - t.dataset.matrix[i + 1][2]), - o) - : ((o = ((o / 100) * p[i]).toFixed( - 2 - )), - parseFloat(o)); - } - } - }), - !0 === h.legend.show) - ) { - var x = r({}, h); - (x.data.color = A.bind(this)), - (x.legend.hide = !0), - (this.view._artifacts.c3 = i.default.generate( - x - )), - l.default.call( - this, - r({}, h, { - onLegendRendered: function() { - var n = t - .el() - .querySelector('.keen-c3-legend'); - n && - ('top' === h.legend.position || - 'bottom' === h.legend.position - ? ((x.size.height -= - n.offsetHeight), - t.view._artifacts.c3.resize({ - height: x.size.height - })) - : (0 === x.size.width && - (x.size.width = - t.el().offsetWidth - - e(t.el(), 'Left') - - e(t.el(), 'Right')), - (x.size.width -= n.offsetWidth), - t.view._artifacts.c3.resize({ - width: x.size.width - }))); - }, - onPaginated: function() { - t.view._artifacts.c3.flush(); - } - }) - ); - } else - this.view._artifacts.c3 = i.default.generate( - h - ); - } else { - var w = 'No data to display', - S = this.config.errorMapping[w] || w; - this.config.showErrorMessages && - this.message(S); - } - }, - update: function() { - this.render(); - }, - destroy: function() { - this.view._artifacts.c3 && - (this.view._artifacts.c3.destroy(), - (this.view._artifacts.c3 = null)); - } - }; - } - ), - t - ); - })() - ); - }; - var i = E(n(10)), - o = n(0), - a = (n(5), n(15)), - s = E(n(11)), - u = E(n(34)), - l = E(n(35)), - c = E(n(36)), - f = E(n(37)), - d = n(38), - h = E(n(39)), - p = E(n(43)), - g = E(n(44)), - v = E(n(45)), - m = E(n(46)), - y = E(n(47)), - b = E(n(48)), - _ = E(n(49)), - x = E(n(50)), - w = E(n(51)), - S = E(n(52)); - function E(t) { - return t && t.__esModule ? t : { default: t }; - } - function k(t) { - if (Array.isArray(t)) { - for (var e = 0, n = Array(t.length); e < t.length; e++) - n[e] = t[e]; - return n; - } - return Array.from(t); - } - function A(t, e) { - var n = this.config.type; - if (this.view._artifacts.pagination && 'gauge' !== n) { - var r = this.view._artifacts.pagination.labels; - return (e.id && r.indexOf(e.id) > -1) || - (e && !e.id && r.indexOf(e) > -1) - ? t - : 'donut' === n || 'pie' === n - ? 'rgba(0,0,0,.1)' - : 'rgba(0,0,0,.07)'; - } - return t; - } - function T(t, e, n, r) { - var i = this.config.type; - return this.view._artifacts.pagination && 'gauge' !== i - ? this.view._artifacts.pagination.labels.indexOf(n) > -1 - ? t - : void 0 - : t; - } - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t, e) { - var n = Math.abs( - new Date(t).getTime() - new Date(e).getTime() - ), - r = [ - 'Jan', - 'Feb', - 'Mar', - 'Apr', - 'May', - 'June', - 'July', - 'Aug', - 'Sept', - 'Oct', - 'Nov', - 'Dec' - ]; - return n >= 24192e5 - ? function(t) { - var e = new Date(t); - return r[e.getMonth()] + ' ' + e.getFullYear(); - } - : n >= 864e5 - ? function(t) { - var e = new Date(t); - return r[e.getMonth()] + ' ' + e.getDate(); - } - : n >= 36e5 - ? '%I:%M %p' - : '%I:%M:%S %p'; - }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }; - (e.default = function(t) { - var e = t.data.columns, - n = this, - i = this.view._artifacts.c3, - o = [], - s = this.el().querySelector( - '.' + n.config.theme + '-rendering' - ), - u = n.config.legend, - l = (this.view._artifacts.pagination = r( - { - hidden: [], - labels: [], - offset: 0, - limit: Math.round((s.offsetHeight - 78) / 20), - total: 0 - }, - u.pagination - )); - if (t.legend.sort) { - o = t.legend.sort(e); - var c = []; - 'x' === e[0][0] && c.push(e[0]), - o.forEach(function(e) { - var n = t.data.columns.find(function(t) { - return t[0] === e; - }); - c.push(n); - }), - (t.data.columns = c); - } else - for (var f = 0; f < e.length; f++) - 'x' === e[f][0] || - (0, a.default)(e[f][1]) || - o.push(e[f][0]); - var d = this.el().querySelector('.keen-c3-legend'), - h = 'vertical'; - ('top' !== u.position && 'bottom' !== u.position) || - (h = 'horizontal'); - var p = document.createElement('div'); - p.setAttribute( - 'class', - 'keen-c3-legend-pagination-icons keen-c3-legend-horizontal-pagination-left' - ), - 'horizontal' === h && d.append(p); - var g = document.createElement('div'); - g.setAttribute( - 'class', - 'keen-c3-legend-items keen-c3-legend-' + h + '-items' - ), - d.append(g); - var v = document.createElement('div'); - v.setAttribute( - 'class', - 'keen-c3-legend-pagination keen-c3-legend-pagination-icons' - ), - 'vertical' === h && d.append(v); - var m = document.createElement('div'); - function y() { - (l.labels = o.slice(l.offset, l.offset + l.limit)), - (l.total = o.length), - b.call(n, l.labels), - l.total > l.limit && _.call(n), - t.onPaginated && t.onPaginated(); - } - function b() { - (g.innerHTML = ''), - l.labels.forEach(function(e) { - var n = u.label.textMaxLength - ? e.slice(0, u.label.textMaxLength - 1) - : e, - r = document.createElement('div'); - (r.innerHTML = - "" + n + ''), - (r.chartPartId = e), - r.setAttribute('class', 'legend-item'), - g.append(r); - var o = document.createElement('span'); - o.setAttribute('class', 'legend-item-color-sample'), - (o.style.backgroundColor = i.color(r.chartPartId)), - r.prepend(o); - var a = document.createElement('div'); - r.addEventListener('mouseover', function(e) { - i.focus(r.chartPartId), - u.tooltip.show && - r.chartPartId.length > u.label.textMaxLength && - (a.setAttribute( - 'class', - 'keen-c3-legend-label-overlay keen-c3-legend-position-' + - u.position - ), - (a.innerHTML = - (t.legend.tooltip.pointer - ? "
" - : '') + r.chartPartId), - r.append(a)); - }), - r.addEventListener('mouseout', function(t) { - i.revert(), a.remove(); - }), - r.addEventListener('click', function(t) { - var e = 1, - n = l.hidden.indexOf(r.chartPartId); - n < 0 - ? (l.hidden.push(r.chartPartId), (e = 0.35)) - : (l.hidden.splice(n, 1), (e = 1)), - (r.style.opacity = e), - i.toggle(r.chartPartId); - }); - }), - t.onLegendRendered && - (t.onLegendRendered(), (t.onLegendRendered = null)); - } - function _() { - (v.innerHTML = ''), (p.innerHTML = ''), (m.innerHTML = ''); - var t = document.createElement('i'), - e = document.createElement('i'), - n = function(t) { - if ('forward' === t) { - var e = l.offset + l.limit; - return e < l.total - ? void (l.offset = e) - : void (l.offset = 0); - } - var n = l.offset - l.limit; - l.offset = - n >= 0 ? n : Math.floor(l.total / l.limit) * l.limit; - }; - e.addEventListener('click', function() { - n('forward'), y(), x(); - }), - t.addEventListener('click', function() { - n('backward'), y(), x(); - }), - 'left' === u.position || 'right' === u.position - ? (t.setAttribute('class', 'up'), - e.setAttribute('class', 'down'), - v.append(e), - v.append(t)) - : (t.setAttribute('class', 'left'), - e.setAttribute('class', 'right'), - p.append(t), - m.append(e)); - } - function x() { - document.selection && document.selection.empty - ? document.selection.empty() - : window.getSelection && - window.getSelection().removeAllRanges(); - } - m.setAttribute( - 'class', - 'keen-c3-legend-pagination-icons keen-c3-legend-horizontal-pagination-right' - ), - 'horizontal' === h && d.append(m), - y(); - }), - (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && - (e[n] = t[n]); - e.default = t; - })(n(2)); - var i, - o = n(11), - a = (i = o) && i.__esModule ? i : { default: i }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t, e, n, i) { - for ( - var o = void 0, - a = void 0, - s = - this.config.tooltip_format_name || - function(t) { - return t; - }, - u = this.config.tooltip_format_title || e, - l = this.config.tooltip_format_value || n, - c = 0; - c < t.length; - c++ - ) - if (t[c] && (t[c].value || 0 === t[c].value)) { - o || - ((a = u ? u(t[c].x) : t[c].x), - (o = - "" + - (a || 0 === a - ? "' - : ''))); - var f = s(t[c].name), - d = l(t[c].value, t[c].ratio, t[c].id, t[c].index), - h = this.levelColor - ? this.levelColor(t[c].value) - : i(t[c].id); - d && - !isNaN(d) && - ((o += - ""), - -1 === f.indexOf('__tooltip_ignore_name_field__') && - (o += - "'), - (o += - "'), - (o += '')); - } - return o + '
" + - (0, r.escapeHtml)(a) + - '
" + - (0, r.escapeHtml)(f) + - '" + - (0, r.escapeHtml)(d) + - '
'; - }); - var r = n(4); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t) { - return t.slice(1).map(function(t) { - return t.map(function(e, n) { - return 'number' == typeof e && 1 === n ? e - t[n + 1] : e; - }); - }); - }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.calculateSumForPercents = function(t) { - var e = []; - return ( - t.slice(1).forEach(function(t, n) { - t.forEach(function(t) { - if ('number' == typeof t) { - if (!e[n]) return (e[n] = t), e[n]; - e[n] += t; - } - return e[n]; - }); - }), - e - ); - }), - (e.calculatePercents = function(t, e) { - return t.slice(1).map(function(t, n) { - return t.map(function(t) { - return 'number' == typeof t ? (t / e[n]) * 100 : t; - }); - }); - }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = n(4), - i = a(n(16)), - o = a(n(1)); - function a(t) { - return t && t.__esModule ? t : { default: t }; - } - e.default = { - render: function(t) { - var e = document.createElement('div'), - n = document.createElement('div'), - a = document.createElement('span'), - s = document.createElement('div'), - u = document.createElement('div'), - l = document.createElement('div'); - (e.className = this.config.theme + ' keen-dataviz-box'), - (n.className = this.config.theme + '-message'), - (s.className = this.config.theme + '-title'), - (s.innerHTML = (0, r.escapeHtml)(this.config.title || '')), - (u.className = this.config.theme + '-subtitle'), - (u.innerHTML = (0, r.escapeHtml)( - this.config.subtitle || '' - )), - (l.className = this.config.theme + '-notes'), - (l.innerHTML = (0, r.escapeHtml)(this.config.notes || '')), - (a.innerHTML = (0, r.escapeHtml)(t) || ''), - n.appendChild(a), - this.config.title && - this.config.showTitle && - e.appendChild(s), - this.config.subtitle && e.appendChild(u), - e.appendChild(n), - this.config.notes && e.appendChild(l), - this.config.ui && - this.config.ui.buttons && - this.config.ui.buttons.download && - this.config.ui.buttons.download.type && - (0, i.default)({ - element: this.el(), - data: (0, r.escapeHtml)(t) || '', - type: this.config.ui.buttons.download.type, - label: this.config.ui.buttons.download.label - }), - this.config.utils && - this.config.utils.clickToCopyToClipboard && - (s.addEventListener('click', function(t) { - return (0, o.default)(t.target.innerText, t); - }), - l.addEventListener('click', function(t) { - return (0, o.default)(t.target.innerText, t); - }), - a.addEventListener('click', function(t) { - return (0, o.default)(t.target.innerText, t); - })), - (this.el().innerHTML = ''), - this.el().appendChild(e); - }, - update: function() { - this.render(); - }, - destroy: function() {} - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t) { - var e = t.event, - n = t.type, - o = t.data; - e.preventDefault(); - var a = n.toLowerCase(); - if (!['json', 'csv', 'jpg', 'jpeg', 'png'].includes(n)) - throw new Error('This type is not supported'); - 'png' !== a - ? 'jpg' !== a && 'jpeg' !== a - ? ('json' === a && (0, i.default)({ type: a, data: o }), - 'csv' === a && (0, i.default)({ type: a, data: o })) - : (0, r.default)({ - node: e.currentTarget.previousElementSibling, - quality: 1, - bgcolor: '#fff' - }) - : (0, r.default)({ - node: e.currentTarget.previousElementSibling - }); - }); - var r = o(n(17)), - i = o(n(18)); - function o(t) { - return t && t.__esModule ? t : { default: t }; - } - }, - function(t, e, n) { - !(function(e) { - 'use strict'; - var n = (function() { - return { - escape: function(t) { - return t.replace(/([.*+?^${}()|\[\]\/\\])/g, '\\$1'); - }, - parseExtension: e, - mimeType: function(t) { - var n, - r = e(t).toLowerCase(); - return ( - ((n = 'application/font-woff'), - { - woff: n, - woff2: n, - ttf: 'application/font-truetype', - eot: 'application/vnd.ms-fontobject', - png: 'image/png', - jpg: 'image/jpeg', - jpeg: 'image/jpeg', - gif: 'image/gif', - tiff: 'image/tiff', - svg: 'image/svg+xml' - })[r] || '' - ); - }, - dataAsUrl: function(t, e) { - return 'data:' + e + ';base64,' + t; - }, - isDataUrl: function(t) { - return -1 !== t.search(/^(data:)/); - }, - canvasToBlob: function(t) { - return t.toBlob - ? new Promise(function(e) { - t.toBlob(e); - }) - : (function(t) { - return new Promise(function(e) { - for ( - var n = window.atob( - t.toDataURL().split(',')[1] - ), - r = n.length, - i = new Uint8Array(r), - o = 0; - o < r; - o++ - ) - i[o] = n.charCodeAt(o); - e(new Blob([i], { type: 'image/png' })); - }); - })(t); - }, - resolveUrl: function(t, e) { - var n = document.implementation.createHTMLDocument(), - r = n.createElement('base'); - n.head.appendChild(r); - var i = n.createElement('a'); - return ( - n.body.appendChild(i), - (r.href = e), - (i.href = t), - i.href - ); - }, - getAndEncode: function(t) { - return ( - s.impl.options.cacheBust && - (t += - (/\?/.test(t) ? '&' : '?') + - new Date().getTime()), - new Promise(function(e) { - var n, - r = new XMLHttpRequest(); - if ( - ((r.onreadystatechange = function() { - if (4 === r.readyState) - if (200 === r.status) { - var i = new FileReader(); - (i.onloadend = function() { - var t = i.result.split(/,/)[1]; - e(t); - }), - i.readAsDataURL(r.response); - } else - n - ? e(n) - : o( - 'cannot fetch resource: ' + - t + - ', status: ' + - r.status - ); - }), - (r.ontimeout = function() { - n - ? e(n) - : o( - 'timeout of 30000ms occured while fetching resource: ' + - t - ); - }), - (r.responseType = 'blob'), - (r.timeout = 3e4), - r.open('GET', t, !0), - r.send(), - s.impl.options.imagePlaceholder) - ) { - var i = s.impl.options.imagePlaceholder.split( - /,/ - ); - i && i[1] && (n = i[1]); - } - function o(t) { - console.error(t), e(''); - } - }) - ); - }, - uid: - ((t = 0), - function() { - return ( - 'u' + - ( - '0000' + - ((Math.random() * Math.pow(36, 4)) << 0).toString( - 36 - ) - ).slice(-4) + - t++ - ); - }), - delay: function(t) { - return function(e) { - return new Promise(function(n) { - setTimeout(function() { - n(e); - }, t); - }); - }; - }, - asArray: function(t) { - for (var e = [], n = t.length, r = 0; r < n; r++) - e.push(t[r]); - return e; - }, - escapeXhtml: function(t) { - return t.replace(/#/g, '%23').replace(/\n/g, '%0A'); - }, - makeImage: function(t) { - return new Promise(function(e, n) { - var r = new Image(); - (r.onload = function() { - e(r); - }), - (r.onerror = n), - (r.src = t); - }); - }, - width: function(t) { - var e = n(t, 'border-left-width'), - r = n(t, 'border-right-width'); - return t.scrollWidth + e + r; - }, - height: function(t) { - var e = n(t, 'border-top-width'), - r = n(t, 'border-bottom-width'); - return t.scrollHeight + e + r; - } - }; - var t; - function e(t) { - var e = /\.([^\.\/]*?)$/g.exec(t); - return e ? e[1] : ''; - } - function n(t, e) { - var n = window.getComputedStyle(t).getPropertyValue(e); - return parseFloat(n.replace('px', '')); - } - })(), - r = (function() { - var t = /url\(['"]?([^'"]+?)['"]?\)/g; - return { - inlineAll: function(t, n, o) { - return e(t) - ? Promise.resolve(t) - .then(r) - .then(function(e) { - var r = Promise.resolve(t); - return ( - e.forEach(function(t) { - r = r.then(function(e) { - return i(e, t, n, o); - }); - }), - r - ); - }) - : Promise.resolve(t); - }, - shouldProcess: e, - impl: { readUrls: r, inline: i } - }; - function e(e) { - return -1 !== e.search(t); - } - function r(e) { - for (var r, i = []; null !== (r = t.exec(e)); ) - i.push(r[1]); - return i.filter(function(t) { - return !n.isDataUrl(t); - }); - } - function i(t, e, r, i) { - return Promise.resolve(e) - .then(function(t) { - return r ? n.resolveUrl(t, r) : t; - }) - .then(i || n.getAndEncode) - .then(function(t) { - return n.dataAsUrl(t, n.mimeType(e)); - }) - .then(function(r) { - return t.replace( - (function(t) { - return new RegExp( - '(url\\([\'"]?)(' + - n.escape(t) + - ')([\'"]?\\))', - 'g' - ); - })(e), - '$1' + r + '$3' - ); - }); - } - })(), - i = (function() { - return { - resolveAll: function() { - return t(document) - .then(function(t) { - return Promise.all( - t.map(function(t) { - return t.resolve(); - }) - ); - }) - .then(function(t) { - return t.join('\n'); - }); - }, - impl: { readAll: t } - }; - function t() { - return Promise.resolve(n.asArray(document.styleSheets)) - .then(function(t) { - var e = []; - return ( - t.forEach(function(t) { - try { - n.asArray(t.cssRules || []).forEach( - e.push.bind(e) - ); - } catch (e) { - console.log( - 'Error while reading CSS rules from ' + - t.href, - e.toString() - ); - } - }), - e - ); - }) - .then(function(t) { - return t - .filter(function(t) { - return t.type === CSSRule.FONT_FACE_RULE; - }) - .filter(function(t) { - return r.shouldProcess( - t.style.getPropertyValue('src') - ); - }); - }) - .then(function(e) { - return e.map(t); - }); - function t(t) { - return { - resolve: function() { - var e = (t.parentStyleSheet || {}).href; - return r.inlineAll(t.cssText, e); - }, - src: function() { - return t.style.getPropertyValue('src'); - } - }; - } - } - })(), - o = (function() { - return { - inlineAll: function e(i) { - return i instanceof Element - ? (function(t) { - var e = t.style.getPropertyValue('background'); - return e - ? r - .inlineAll(e) - .then(function(e) { - t.style.setProperty( - 'background', - e, - t.style.getPropertyPriority( - 'background' - ) - ); - }) - .then(function() { - return t; - }) - : Promise.resolve(t); - })(i).then(function() { - return i instanceof HTMLImageElement - ? t(i).inline() - : Promise.all( - n.asArray(i.childNodes).map(function(t) { - return e(t); - }) - ); - }) - : Promise.resolve(i); - }, - impl: { newImage: t } - }; - function t(t) { - return { - inline: function(e) { - return n.isDataUrl(t.src) - ? Promise.resolve() - : Promise.resolve(t.src) - .then(e || n.getAndEncode) - .then(function(e) { - return n.dataAsUrl(e, n.mimeType(t.src)); - }) - .then(function(e) { - return new Promise(function(n, r) { - (t.onload = n), - (t.onerror = r), - (t.src = e); - }); - }); - } - }; - } - })(), - a = { imagePlaceholder: void 0, cacheBust: !1 }, - s = { - toSvg: u, - toPng: function(t, e) { - return l(t, e || {}).then(function(t) { - return t.toDataURL(); - }); - }, - toJpeg: function(t, e) { - return l(t, (e = e || {})).then(function(t) { - return t.toDataURL('image/jpeg', e.quality || 1); - }); - }, - toBlob: function(t, e) { - return l(t, e || {}).then(n.canvasToBlob); - }, - toPixelData: function(t, e) { - return l(t, e || {}).then(function(e) { - return e - .getContext('2d') - .getImageData(0, 0, n.width(t), n.height(t)).data; - }); - }, - impl: { - fontFaces: i, - images: o, - util: n, - inliner: r, - options: {} - } - }; - function u(t, e) { - return ( - (function(t) { - void 0 === t.imagePlaceholder - ? (s.impl.options.imagePlaceholder = a.imagePlaceholder) - : (s.impl.options.imagePlaceholder = - t.imagePlaceholder), - void 0 === t.cacheBust - ? (s.impl.options.cacheBust = a.cacheBust) - : (s.impl.options.cacheBust = t.cacheBust); - })((e = e || {})), - Promise.resolve(t) - .then(function(t) { - return (function t(e, r, i) { - return i || !r || r(e) - ? Promise.resolve(e) - .then(function(t) { - return t instanceof HTMLCanvasElement - ? n.makeImage(t.toDataURL()) - : t.cloneNode(!1); - }) - .then(function(t) { - return o(e, t, r); - }) - .then(function(t) { - return (function(t, e) { - return e instanceof Element - ? Promise.resolve() - .then(function() { - var r, i; - (r = window.getComputedStyle(t)), - (i = e.style), - r.cssText - ? (i.cssText = r.cssText) - : (function(t, e) { - n.asArray(t).forEach( - function(n) { - e.setProperty( - n, - t.getPropertyValue(n), - t.getPropertyPriority( - n - ) - ); - } - ); - })(r, i); - }) - .then(function() { - [':before', ':after'].forEach( - function(r) { - !(function(r) { - var i = window.getComputedStyle( - t, - r - ), - o = i.getPropertyValue( - 'content' - ); - if ('' === o || 'none' === o) - return; - var a = n.uid(); - e.className = - e.className + ' ' + a; - var s = document.createElement( - 'style' - ); - s.appendChild( - (function(t, e, r) { - var i = '.' + t + ':' + e, - o = r.cssText - ? (function(t) { - var e = t.getPropertyValue( - 'content' - ); - return ( - t.cssText + - ' content: ' + - e + - ';' - ); - })(r) - : (function(t) { - return ( - n - .asArray(t) - .map(function( - e - ) { - return ( - e + - ': ' + - t.getPropertyValue( - e - ) + - (t.getPropertyPriority( - e - ) - ? ' !important' - : '') - ); - }) - .join('; ') + - ';' - ); - })(r); - return document.createTextNode( - i + '{' + o + '}' - ); - })(a, r, i) - ), - e.appendChild(s); - })(r); - } - ); - }) - .then(function() { - t instanceof HTMLTextAreaElement && - (e.innerHTML = t.value), - t instanceof HTMLInputElement && - e.setAttribute( - 'value', - t.value - ); - }) - .then(function() { - e instanceof SVGElement && - (e.setAttribute( - 'xmlns', - 'http://www.w3.org/2000/svg' - ), - e instanceof SVGRectElement && - ['width', 'height'].forEach( - function(t) { - var n = e.getAttribute(t); - n && - e.style.setProperty(t, n); - } - )); - }) - .then(function() { - return e; - }) - : e; - })(e, t); - }) - : Promise.resolve(); - function o(e, r, i) { - var o = e.childNodes; - return 0 === o.length - ? Promise.resolve(r) - : a(r, n.asArray(o), i).then(function() { - return r; - }); - function a(e, n, r) { - var i = Promise.resolve(); - return ( - n.forEach(function(n) { - i = i - .then(function() { - return t(n, r); - }) - .then(function(t) { - t && e.appendChild(t); - }); - }), - i - ); - } - } - })(t, e.filter, !0); - }) - .then(c) - .then(f) - .then(function(t) { - return ( - e.bgcolor && (t.style.backgroundColor = e.bgcolor), - e.width && (t.style.width = e.width + 'px'), - e.height && (t.style.height = e.height + 'px'), - e.style && - Object.keys(e.style).forEach(function(n) { - t.style[n] = e.style[n]; - }), - t - ); - }) - .then(function(r) { - return (function(t, e, r) { - return Promise.resolve(t) - .then(function(t) { - return ( - t.setAttribute( - 'xmlns', - 'http://www.w3.org/1999/xhtml' - ), - new XMLSerializer().serializeToString(t) - ); - }) - .then(n.escapeXhtml) - .then(function(t) { - return ( - '' + - t + - '' - ); - }) - .then(function(t) { - return ( - '' + - t + - '' - ); - }) - .then(function(t) { - return 'data:image/svg+xml;charset=utf-8,' + t; - }); - })(r, e.width || n.width(t), e.height || n.height(t)); - }) - ); - } - function l(t, e) { - return u(t, e) - .then(n.makeImage) - .then(n.delay(100)) - .then(function(r) { - var i = (function(t) { - var r = document.createElement('canvas'); - if ( - ((r.width = e.width || n.width(t)), - (r.height = e.height || n.height(t)), - e.bgcolor) - ) { - var i = r.getContext('2d'); - (i.fillStyle = e.bgcolor), - i.fillRect(0, 0, r.width, r.height); - } - return r; - })(t); - return i.getContext('2d').drawImage(r, 0, 0), i; - }); - } - function c(t) { - return i.resolveAll().then(function(e) { - var n = document.createElement('style'); - return ( - t.appendChild(n), - n.appendChild(document.createTextNode(e)), - t - ); - }); - } - function f(t) { - return o.inlineAll(t).then(function() { - return t; - }); - } - t.exports = s; - })(); - }, - function(t, e, n) { - (function(n) { - var r, i, o; - (i = []), - void 0 === - (o = - 'function' == - typeof (r = function() { - 'use strict'; - function e(t, e, n) { - var r = new XMLHttpRequest(); - r.open('GET', t), - (r.responseType = 'blob'), - (r.onload = function() { - a(r.response, e, n); - }), - (r.onerror = function() { - console.error('could not download file'); - }), - r.send(); - } - function r(t) { - var e = new XMLHttpRequest(); - e.open('HEAD', t, !1); - try { - e.send(); - } catch (t) {} - return 200 <= e.status && 299 >= e.status; - } - function i(t) { - try { - t.dispatchEvent(new MouseEvent('click')); - } catch (n) { - var e = document.createEvent('MouseEvents'); - e.initMouseEvent( - 'click', - !0, - !0, - window, - 0, - 0, - 0, - 80, - 20, - !1, - !1, - !1, - !1, - 0, - null - ), - t.dispatchEvent(e); - } - } - var o = - 'object' == typeof window && - window.window === window - ? window - : 'object' == typeof self && self.self === self - ? self - : 'object' == typeof n && n.global === n - ? n - : void 0, - a = - o.saveAs || - ('object' != typeof window || window !== o - ? function() {} - : 'download' in HTMLAnchorElement.prototype - ? function(t, n, a) { - var s = o.URL || o.webkitURL, - u = document.createElement('a'); - (n = n || t.name || 'download'), - (u.download = n), - (u.rel = 'noopener'), - 'string' == typeof t - ? ((u.href = t), - u.origin === location.origin - ? i(u) - : r(u.href) - ? e(t, n, a) - : i(u, (u.target = '_blank'))) - : ((u.href = s.createObjectURL(t)), - setTimeout(function() { - s.revokeObjectURL(u.href); - }, 4e4), - setTimeout(function() { - i(u); - }, 0)); - } - : 'msSaveOrOpenBlob' in navigator - ? function(t, n, o) { - if ( - ((n = n || t.name || 'download'), - 'string' != typeof t) - ) - navigator.msSaveOrOpenBlob( - (function(t, e) { - return ( - void 0 === e - ? (e = { autoBom: !1 }) - : 'object' != typeof e && - (console.warn( - 'Deprecated: Expected third argument to be a object' - ), - (e = { autoBom: !e })), - e.autoBom && - /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test( - t.type - ) - ? new Blob(['\ufeff', t], { - type: t.type - }) - : t - ); - })(t, o), - n - ); - else if (r(t)) e(t, n, o); - else { - var a = document.createElement('a'); - (a.href = t), - (a.target = '_blank'), - setTimeout(function() { - i(a); - }); - } - } - : function(t, n, r, i) { - if ( - ((i = i || open('', '_blank')) && - (i.document.title = i.document.body.innerText = - 'downloading...'), - 'string' == typeof t) - ) - return e(t, n, r); - var a = 'application/octet-stream' === t.type, - s = - /constructor/i.test(o.HTMLElement) || - o.safari, - u = /CriOS\/[\d]+/.test( - navigator.userAgent - ); - if ( - (u || (a && s)) && - 'object' == typeof FileReader - ) { - var l = new FileReader(); - (l.onloadend = function() { - var t = l.result; - (t = u - ? t - : t.replace( - /^data:[^;]*;/, - 'data:attachment/file;' - )), - i - ? (i.location.href = t) - : (location = t), - (i = null); - }), - l.readAsDataURL(t); - } else { - var c = o.URL || o.webkitURL, - f = c.createObjectURL(t); - i ? (i.location = f) : (location.href = f), - (i = null), - setTimeout(function() { - c.revokeObjectURL(f); - }, 4e4); - } - }); - (o.saveAs = a.saveAs = a), (t.exports = a); - }) - ? r.apply(e, i) - : r) || (t.exports = o); - }.call(this, n(7))); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r, - i = n(3), - o = n(4), - a = n(1), - s = (r = a) && r.__esModule ? r : { default: r }; - e.default = { - render: function() { - var t = this.config.colors[0], - e = this.config.theme, - n = this.config.title, - r = this.config.subtitle, - a = this.config, - u = '-', - l = '', - c = '', - f = '', - d = '', - h = void 0, - p = '', - g = '', - v = '', - m = '', - y = this.config, - b = y.results, - _ = y.previousResults, - x = y.isExtraction, - w = y.comparedProp; - if ( - (b && - _ && - ((p = _ ? ' metric-comparison' : ''), - (m = _ && n ? '-smaller' : ''), - (v = (g = b.result - _.result) > 0 ? '-green' : '-red'), - (g = Math.abs(g)), - (t = '')), - this.data() && - this.data()[1] && - this.data()[1][1] && - 'number' == typeof this.data()[1][1] && - (u = this.data()[1][1]), - x && w) - ) { - var S = (function(t, e) { - var n = t.query, - r = t.result, - i = []; - if ('extraction' !== n.analysis_type) - throw new Error('Analysis type is not an extraction!'); - return ( - Array.isArray(r) && - r.forEach(function(t) { - var r = { query: n, result: t[e] }; - i.push(r); - }), - i - ); - })(b, w); - (u = S[0].result), - (p = (l = S[1].result) ? ' metric-comparison' : ''), - (m = l && n ? '-smaller' : ''), - (v = (g = u - l) > 0 ? '-green' : '-red'), - (g = Math.abs(g)), - (t = ''); - } - if ( - ((h = u), - (void 0 !== a.prettyNumber && !0 !== a.prettyNumber) || - isNaN(parseInt(u)) || - ((h = (0, i.prettyNumber)(u)), - b && _ && (g = (0, i.prettyNumber)(g))), - a.prefix && - (f = - '' + - a.prefix + - ''), - a.suffix && - (d = - '' + - a.suffix + - ''), - (c += '
'), - (c += - '
'), - b && - _ && - (c += - '
' + - (0, o.escapeHtml)(g) + - '
'), - x && - w && - (u && l - ? ((c += - '
' + - (0, o.escapeHtml)(g) + - '
'), - (c += '' + l + '')) - : (c += '

No data to display

')), - (c += - '
' + - f + - (0, o.escapeHtml)(h) + - d + - '
'), - n && - (c += - '
' + - (0, o.escapeHtml)(n) + - '
'), - r && - (c += - '
' + - (0, o.escapeHtml)(r) + - '
'), - (c += '
'), - (c += '
'), - (this.el().innerHTML = c), - this.config.onrendered && this.config.onrendered(), - this.config.utils && - this.config.utils.clickToCopyToClipboard) - ) { - var E = '.' + e + '-metric-value' + m; - if ( - (document - .querySelector(E) - .addEventListener('click', function(t) { - return (0, s.default)(t.target.innerText, t); - }), - b && _) - ) { - var k = '.' + e + '-metric' + v; - document - .querySelector(k) - .addEventListener('click', function(t) { - return (0, s.default)(t.target.innerText, t); - }); - } - } - }, - update: function() { - this.render(); - }, - destroy: function() {} - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r, - i = function(t, e) { - if (Array.isArray(t)) return t; - if (Symbol.iterator in Object(t)) - return (function(t, e) { - var n = [], - r = !0, - i = !1, - o = void 0; - try { - for ( - var a, s = t[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !e || n.length !== e); - r = !0 - ); - } catch (t) { - (i = !0), (o = t); - } finally { - try { - !r && s.return && s.return(); - } finally { - if (i) throw o; - } - } - return n; - })(t, e); - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance' - ); - }, - o = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }, - a = n(4), - s = n(1), - u = (r = s) && r.__esModule ? r : { default: r }, - l = void 0; - function c(t, e) { - var n = '', - r = {}; - t.config.table && - t.config.table.pagination && - (r = t.config.table.pagination); - var s = o({}, { page: 1, limit: 0, arrows: !0 }, r); - l || (l = s.page); - var u = void 0, - c = 0; - if (0 === s.limit) u = e.slice(1); - else { - var f = s.limit * (l - 1) + 1, - d = f + s.limit; - (u = e.slice(f, d)), - (c = Math.ceil((e.length - 1) / s.limit)); - } - var h = t.config.table.columns - ? t.config.table.columns - : t.dataset.matrix[0], - p = {}, - g = t.config.table, - v = g.mapValues, - m = g.mapDates; - for (var y in v) p[h.indexOf(y)] = y; - var b = !0, - _ = !1, - x = void 0; - try { - for ( - var w, S = u[Symbol.iterator](); - !(b = (w = S.next()).done); - b = !0 - ) { - var E = w.value; - n += ''; - var k = !0, - A = !1, - T = void 0; - try { - for ( - var C, O = E.entries()[Symbol.iterator](); - !(k = (C = O.next()).done); - k = !0 - ) { - var P = C.value, - M = i(P, 2), - L = M[0], - D = M[1]; - m && D instanceof Date && (D = m(D)); - var j = (0, a.escapeHtml)(D); - p[L] - ? (n += '' + v[p[L]](j) + '') - : (n += '' + j + ''); - } - } catch (t) { - (A = !0), (T = t); - } finally { - try { - !k && O.return && O.return(); - } finally { - if (A) throw T; - } - } - n += ''; - } - } catch (t) { - (_ = !0), (x = t); - } finally { - try { - !b && S.return && S.return(); - } finally { - if (_) throw x; - } - } - if (c > 1) { - n += ''; - var R = 1, - N = 1 === l ? 1 : l - 1, - z = l === c ? c : l + 1; - for ( - s.arrows && - (n += - '
«'); - R <= c; - - ) - (n += - '' + - R + - ''), - R++; - s.arrows && - (n += - '»'), - (n += ''); - } - return n; - } - e.default = { - render: function() { - var t = this, - e = this.dataset.matrix, - n = this.el(), - r = this.config.theme, - i = this, - o = ''; - if (1 === e.length && 0 === e[0].length) { - var s = 'No data to display', - f = this.config.errorMapping[s] || s; - this.config.showErrorMessages && this.message(f); - } else { - (o += '
'), - (o += ''), - (o += ''), - (o += ''), - (o += (function(t, e) { - var n = '', - r = -1, - i = t.config.table, - o = (i && i.columns) || e[0], - s = !0, - u = !1, - l = void 0; - try { - for ( - var c, f = o[Symbol.iterator](); - !(s = (c = f.next()).done); - s = !0 - ) { - var d = c.value, - h = (0, a.escapeHtml)(d); - n += - ''; - } - } catch (t) { - (u = !0), (l = t); - } finally { - try { - !s && f.return && f.return(); - } finally { - if (u) throw l; - } - } - return n; - })(i, e)), - (o += ''), - (o += ''), - (o += ''), - (o += c(i, e)), - (o += ''), - (o += '
' + - h + - '
'), - (o += '
'), - (n.querySelector('.' + r + '-rendering').innerHTML = o), - n - .querySelectorAll('.' + r + '-rendering th') - .forEach(function(o) { - o.addEventListener('click', function(o) { - var a = o.target.getAttribute('order') || 'asc', - s = o.target.getAttribute('fieldNumber'); - (a = 'asc' === a ? 'desc' : 'asc'), - o.target.setAttribute('order', a); - var u = t.dataset.matrix.shift(); - t.dataset.matrix.sort(function(t, e) { - var n = 'asc' === a ? 1 : -1; - if ('string' == typeof t[s]) { - var r = t[s].toUpperCase(), - i = e[s].toUpperCase(); - return r < i ? -1 * n : r > i ? 1 * n : 0; - } - return (t[s] - e[s]) * n; - }), - t.dataset.matrix.unshift(u), - (n.querySelector( - '.' + r + '-rendering tbody' - ).innerHTML = c(i, e)), - d(); - }); - }); - var d = function t() { - n.querySelectorAll('.btn').forEach(function(o) { - o.addEventListener( - 'click', - function(o) { - (l = parseInt(o.target.getAttribute('data-page'))), - (n.querySelector( - '.' + r + '-rendering tbody' - ).innerHTML = c(i, e)), - t(); - }, - !0 - ); - }); - }; - if ( - (d(i, n, r), - this.config.onrendered && this.config.onrendered(), - this.config.utils && - this.config.utils.clickToCopyToClipboard) - ) { - var h = '.' + r + '-table-dataset'; - document - .querySelector(h) - .addEventListener('click', function(t) { - var e = t.target, - n = e.nodeName, - r = e.innerText; - 'TD' === n && (0, u.default)(r, t); - }); - } - } - }, - update: function() { - this.render(); - }, - destroy: function() {} - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = { - render: function() { - var t = ''; - (this.view._artifacts.spinner = {}), - (t += '
'), - (t += - '
'), - (t += '
'), - (t += '
'), - (t += '
'), - (this.el().innerHTML = t); - }, - update: function() { - this.render(); - }, - destroy: function() { - if (this.view._artifacts.spinner) { - this.view._artifacts.spinner.interval && - clearInterval(this.view._artifacts.spinner.interval), - (this.view._artifacts.spinner.radius = 0); - try { - delete this.view._artifacts.spinner; - } catch (t) { - this.view._artifacts.spinner = void 0; - } - } - this.el().innerHTML = ''; - } - }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r, - i = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - o = (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && - (e[n] = t[n]); - return (e.default = t), e; - })(n(2)), - a = n(6), - s = n(3), - u = n(1), - l = (r = u) && r.__esModule ? r : { default: r }, - c = (function() { - function t() { - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, t); - } - return ( - i(t, [ - { - key: 'render', - value: function() { - var t = this.dataset.matrix, - e = this.config, - n = e.colors, - r = e.container, - i = e.labelMapping, - u = e.colorMapping, - c = e.utils, - f = this.config, - d = this.config.funnel, - h = d.percents, - p = h.show, - g = h.countingMethod, - v = h.decimals, - m = d.lines, - y = d.marginBetweenSteps, - b = d.resultValues, - _ = d.hover, - x = d.minimalSize, - w = 20, - S = 30, - E = 30, - k = 200, - A = 0; - y && (A = 5); - var T = o.select(r), - C = o - .select( - this.el().querySelector( - '.' + - this.config.theme + - '-rendering .c3-chart' - ) - ) - .append('svg'), - O = T.style('width').slice(0, -2) - S - k, - P = T.style('height').slice(0, -2) - w - E - 30, - M = P / (t.length - 1), - L = O, - D = (100).toFixed(v), - j = 0; - x && (j = (O - x) / (t.length - 2)); - var R = t.slice(1).map(function(e, n) { - var r = [ - { x: (O - L) / 2, y: M * n + A }, - { x: (O - L) / 2 + L, y: M * n + A } - ]; - 0 !== n && - ('relative' === g && - (x ? (L -= j) : (L = (L * e[1]) / t[n][1]), - (D = ((e[1] / t[n][1]) * 100).toFixed(v))), - 'absolute' === g && - (x ? (L -= j) : (L = (O * e[1]) / t[1][1]), - (D = ((e[1] / t[1][1]) * 100).toFixed(v)))); - var o = e[0]; - if (Object.keys(i).length) - for (var a in i) i[a] === e[0] && (o = a); - var u = e[1]; - return ( - (void 0 !== f.prettyNumber && - !0 !== f.prettyNumber) || - isNaN(parseInt(e[1])) || - (u = (0, s.prettyNumber)(e[1])), - { - name: e[0], - label: o, - percent: D + '%', - result: u, - points: [].concat(r, [ - { x: (O - L) / 2 + L, y: M * (n + 1) }, - { x: (O - L) / 2, y: M * (n + 1) } - ]) - } - ); - }); - if ( - (C.attr('preserveAspectRatio', 'xMidYMid slice') - .attr( - 'viewBox', - '0 0 ' + (O + k + S) + ' ' + (P + w + E - 30) - ) - .attr('height', '100%') - .attr('width', '100%') - .append('g') - .attr( - 'transform', - 'translate(' + k + ',' + w + ')' - ) - .selectAll('polygon') - .data(R) - .enter() - .append('polygon') - .attr('points', function(t) { - return t.points - .map(function(t) { - return [t.x, t.y].join(','); - }) - .join(' '); - }) - .style('fill', function(t, e) { - return u[t.label] ? u[t.label] : n[e]; - }) - .attr('class', function(t) { - return t.label; - }) - .attr('cursor', 'pointer'), - m && - (C.selectAll('line') - .data(R) - .enter() - .append('line') - .attr('x1', 10) - .attr('y1', function(t) { - return t.points[0].y + w - A / 2; - }) - .attr('x2', function(t) { - return t.points[1].x + k; - }) - .attr('y2', function(t) { - return t.points[0].y + w - A / 2; - }) - .attr('class', 'chart-lines'), - C.append('line') - .attr('x1', 10) - .attr( - 'y1', - R[R.length - 1].points[2].y + w + A / 2 - ) - .attr('x2', R[R.length - 1].points[2].x + k) - .attr( - 'y2', - R[R.length - 1].points[2].y + w + A / 2 - ) - .attr('class', 'chart-lines')), - m && - C.selectAll('text.label') - .data(R) - .enter() - .append('text') - .style('text-anchor', 'start') - .attr('x', 20) - .attr('y', function(t) { - return ( - (t.points[2].y - t.points[1].y) / 2 + - t.points[1].y + - w + - A + - 5 - ); - }) - .attr('class', function(t) { - return 'text-label ' + t.label; - }) - .text(function(t) { - return t.name; - }) - .call(a.textWrap, k) - .attr('cursor', 'pointer'), - m || - C.selectAll('text.label') - .data(R) - .enter() - .append('text') - .style('text-anchor', 'end') - .attr('x', function(t) { - return ( - t.points[0].x + - (t.points[3].x - t.points[0].x) / 2 + - 0.9 * k - ); - }) - .attr('y', function(t) { - return ( - (t.points[2].y - t.points[1].y) / 2 + - t.points[1].y + - w + - A + - 5 - ); - }) - .attr('class', function(t) { - return 'text-label ' + t.label; - }) - .text(function(t) { - return t.name; - }) - .call(a.textWrap, k) - .attr('cursor', 'pointer'), - p && - !b && - C.selectAll('text.label') - .data(R) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', O / 2 + k) - .attr('y', function(t) { - return ( - (t.points[2].y - t.points[1].y) / 2 + - t.points[1].y + - w + - A + - 8 - ); - }) - .attr('class', function(t) { - return 'text-main ' + t.label; - }) - .text(function(t) { - return t.percent; - }) - .attr('cursor', 'pointer'), - b && - !p && - C.selectAll('text.label') - .data(R) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', O / 2 + k) - .attr('y', function(t) { - return ( - (t.points[2].y - t.points[1].y) / 2 + - t.points[1].y + - w + - A + - 8 - ); - }) - .attr('class', function(t) { - return 'text-main ' + t.label; - }) - .text(function(t) { - return t.result; - }) - .attr('cursor', 'pointer'), - p && - b && - (C.selectAll('text.label') - .data(R) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', O / 2 + k) - .attr('y', function(t) { - return 0 === A - ? (t.points[2].y - t.points[1].y) / 2 + - t.points[1].y + - w + - 16 - : (t.points[2].y - t.points[1].y) / 2 + - t.points[1].y + - w + - A + - 12; - }) - .attr('class', function(t) { - return 'text-second ' + t.label; - }) - .text(function(t) { - return t.percent; - }) - .attr('cursor', 'pointer'), - C.selectAll('text.label') - .data(R) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', O / 2 + k) - .attr('y', function(t) { - return 0 === A - ? (t.points[2].y - t.points[1].y) / 2 + - t.points[1].y + - w - : (t.points[2].y - t.points[1].y) / 2 + - t.points[1].y + - w + - A - - 5; - }) - .attr('class', function(t) { - return 'text-main ' + t.label; - }) - .text(function(t) { - return t.result; - }) - .attr('cursor', 'pointer')), - _) - ) { - var N = function(t) { - I.style('opacity', 0.5), - F.style('opacity', 0.5); - var e = /[^ ]*$/.exec( - o.select(this).attr('class') - )[0]; - C.selectAll('.' + e).style('opacity', 1); - }, - z = function(t) { - I.style('opacity', 1), F.style('opacity', 1); - }, - I = C.selectAll('polygon'); - I.on('mouseover', N).on('mouseout', z); - var F = C.selectAll('text'); - F.on('mouseover', N).on('mouseout', z); - } - c && - c.clickToCopyToClipboard && - C.selectAll('text').on('click', function(t) { - var e = t.percent, - n = t.result; - b - ? (0, l.default)(n, o.event) - : p && (0, l.default)(e, o.event); - }); - } - }, - { - key: 'update', - value: function() { - this.destroy(), this.render(); - } - }, - { - key: 'destroy', - value: function() { - o.select( - this.el().querySelector( - '.' + this.config.theme + '-rendering .c3-chart' - ) - ).remove(); - } - } - ]), - t - ); - })(); - e.default = c; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r, - i = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - o = (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && - (e[n] = t[n]); - return (e.default = t), e; - })(n(2)), - a = n(6), - s = n(3), - u = n(1), - l = (r = u) && r.__esModule ? r : { default: r }, - c = (function() { - function t() { - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, t); - } - return ( - i(t, [ - { - key: 'render', - value: function() { - var t = this.dataset.matrix, - e = this.config, - n = e.colors, - r = e.container, - i = e.labelMapping, - u = e.colorMapping, - c = e.utils, - f = this.config, - d = this.config.funnel, - h = d.percents, - p = h.show, - g = h.countingMethod, - v = h.decimals, - m = d.lines, - y = d.resultValues, - b = d.effect3d, - _ = d.hover, - x = d.minimalSize, - w = 20, - S = 30, - E = 60, - k = 200, - A = o.select(r), - T = o - .select( - this.el().querySelector( - '.' + - this.config.theme + - '-rendering .c3-chart' - ) - ) - .append('svg'), - C = A.style('width').slice(0, -2) - S - k, - O = A.style('height').slice(0, -2) - w - E - 30, - P = O / (t.length - 1), - M = 0.3 * P, - L = 2.5 * M, - D = C, - j = (100).toFixed(v), - R = 0; - x && (R = (C - x) / (t.length - 2)); - var N = t.slice(1).map(function(e, n) { - var r = [ - { x: (C - D) / 2, y: P * n + M }, - { x: (C - D) / 2 + D, y: P * n + M } - ]; - 0 !== n && - ('relative' === g && - (x ? (D -= R) : (D = (D * e[1]) / t[n][1]), - (j = ((e[1] / t[n][1]) * 100).toFixed(v))), - 'absolute' === g && - (x ? (D -= R) : (D = (C * e[1]) / t[1][1]), - (j = ((e[1] / t[1][1]) * 100).toFixed(v)))); - var o = e[0]; - if (Object.keys(i).length) - for (var a in i) i[a] === e[0] && (o = a); - var u = e[1]; - return ( - (void 0 !== f.prettyNumber && - !0 !== f.prettyNumber) || - isNaN(parseInt(e[1])) || - (u = (0, s.prettyNumber)(e[1])), - { - name: e[0], - label: o, - percent: j + '%', - result: u, - points: [].concat(r, [ - { x: (C - D) / 2 + D, y: P * (n + 1) }, - { x: (C - D) / 2, y: P * (n + 1) } - ]) - } - ); - }), - z = N.map(function(t, e) { - return { - label: t.label, - points: [ - { x: t.points[3].x, y: t.points[3].y }, - { x: t.points[2].x, y: t.points[2].y }, - { - x: - 'left' === b - ? t.points[2].x - : t.points[2].x - L < C / 2 - ? C / 2 + 5 - : t.points[2].x - L, - y: - 'left' === b - ? t.points[2].y - : t.points[2].y + M / 1.5 - }, - { - x: - 'right' === b - ? t.points[3].x - : t.points[3].x + L > C / 2 - ? C / 2 - 5 - : t.points[3].x + L, - y: - 'right' === b - ? t.points[3].y - : t.points[3].y + M / 1.5 - } - ] - }; - }), - I = N.concat(z); - if ( - (T.attr('preserveAspectRatio', 'xMidYMid meet') - .attr( - 'viewBox', - '0 0 ' + (C + k + S) + ' ' + (O + w + E - 30) - ) - .attr('height', '100%') - .attr('width', '100%') - .append('g') - .attr( - 'transform', - 'translate(' + k + ',' + w + ')' - ) - .selectAll('polygon') - .data(I) - .enter() - .append('polygon') - .attr('points', function(t) { - return t.points - .map(function(t) { - return [t.x, t.y].join(','); - }) - .join(' '); - }) - .style('fill', function(t, e) { - return e > N.length - 1 - ? u[t.label] - ? o.rgb(u[t.label]).darker(1.5) - : o.rgb(n[e - N.length]).darker(1.5) - : u[t.label] - ? u[t.label] - : n[e]; - }) - .attr('class', function(t) { - return t.label; - }) - .attr('cursor', 'pointer'), - m && - (T.selectAll('line') - .data(N) - .enter() - .append('line') - .attr('x1', 10) - .attr('y1', function(t) { - return t.points[0].y + w - M / 5; - }) - .attr('x2', function(t, e) { - return 0 === e - ? t.points[1].x + k - : t.points[1].x + k - L; - }) - .attr('y2', function(t) { - return t.points[0].y + w - M / 5; - }) - .attr('class', 'chart-lines'), - T.append('line') - .attr('x1', 10) - .attr( - 'y1', - N[N.length - 1].points[2].y + w + M - M / 5 - ) - .attr('x2', N[N.length - 1].points[2].x + k - L) - .attr( - 'y2', - N[N.length - 1].points[2].y + w + M - M / 5 - ) - .attr('class', 'chart-lines')), - m && - T.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'start') - .attr('x', 20) - .attr('y', function(t) { - return ( - (t.points[2].y - t.points[1].y) / 2 + - t.points[1].y + - w + - 5 + - M / 4 - ); - }) - .attr('class', function(t) { - return 'text-label ' + t.label; - }) - .text(function(t) { - return t.name; - }) - .call(a.textWrap, k) - .attr('cursor', 'pointer'), - m || - T.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'end') - .attr('x', function(t) { - return ( - t.points[0].x + - (t.points[3].x - t.points[0].x) / 2 + - 130 - ); - }) - .attr('y', function(t) { - return ( - (t.points[2].y - t.points[1].y) / 2 + - t.points[1].y + - w + - 5 - ); - }) - .attr('class', function(t) { - return 'text-label ' + t.label; - }) - .text(function(t) { - return t.name; - }) - .call(a.textWrap, k) - .attr('cursor', 'pointer'), - p && - !y && - T.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', C / 2 + k) - .attr('y', function(t) { - return ( - (t.points[2].y - t.points[1].y) / 2 + - t.points[1].y + - w + - 8 - ); - }) - .attr('class', function(t) { - return 'text-main ' + t.label; - }) - .text(function(t) { - return t.percent; - }) - .attr('cursor', 'pointer'), - y && - !p && - T.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', C / 2 + k) - .attr('y', function(t) { - return ( - (t.points[2].y - t.points[1].y) / 2 + - t.points[1].y + - w + - 8 - ); - }) - .attr('class', function(t) { - return 'text-main ' + t.label; - }) - .text(function(t) { - return t.result; - }) - .attr('cursor', 'pointer'), - p && - y && - (T.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', C / 2 + k) - .attr('y', function(t) { - return ( - (t.points[2].y - t.points[1].y) / 2 + - t.points[1].y + - w + - 18 - ); - }) - .attr('class', function(t) { - return 'text-second ' + t.label; - }) - .text(function(t) { - return t.percent; - }) - .attr('cursor', 'pointer'), - T.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', C / 2 + k) - .attr('y', function(t) { - return ( - (t.points[2].y - t.points[1].y) / 2 + - t.points[1].y + - w + - 3 - ); - }) - .attr('class', function(t) { - return 'text-main ' + t.label; - }) - .text(function(t) { - return t.result; - }) - .attr('cursor', 'pointer')), - _) - ) { - var F = function(t) { - B.style('opacity', 0.5), - G.style('opacity', 0.5); - var e = /[^ ]*$/.exec( - o.select(this).attr('class') - )[0]; - T.selectAll('.' + e).style('opacity', 1); - }, - V = function(t) { - B.style('opacity', 1), G.style('opacity', 1); - }, - B = T.selectAll('polygon'); - B.on('mouseover', F).on('mouseout', V); - var G = T.selectAll('text'); - G.on('mouseover', F).on('mouseout', V); - } - c && - c.clickToCopyToClipboard && - T.selectAll('text').on('click', function(t) { - var e = t.percent, - n = t.result; - y - ? (0, l.default)(n, o.event) - : p && (0, l.default)(e, o.event); - }); - } - }, - { - key: 'update', - value: function() { - this.destroy(), this.render(); - } - }, - { - key: 'destroy', - value: function() { - o.select( - this.el().querySelector( - '.' + this.config.theme + '-rendering .c3-chart' - ) - ).remove(); - } - } - ]), - t - ); - })(); - e.default = c; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r, - i = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - o = (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && - (e[n] = t[n]); - return (e.default = t), e; - })(n(2)), - a = n(6), - s = n(3), - u = n(1), - l = (r = u) && r.__esModule ? r : { default: r }, - c = (function() { - function t() { - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, t); - } - return ( - i(t, [ - { - key: 'render', - value: function() { - var t = this.dataset.matrix, - e = this.config, - n = e.colors, - r = e.container, - i = e.labelMapping, - u = e.colorMapping, - c = e.utils, - f = this.config, - d = this.config.funnel, - h = d.percents, - p = h.show, - g = h.countingMethod, - v = h.decimals, - m = d.lines, - y = d.marginBetweenSteps, - b = d.resultValues, - _ = d.hover, - x = d.minimalSize, - w = 20, - S = 30, - E = 100, - k = 10, - A = 0; - y && (A = 5); - var T = o.select(r), - C = o - .select( - this.el().querySelector( - '.' + - this.config.theme + - '-rendering .c3-chart' - ) - ) - .append('svg'), - O = T.style('width').slice(0, -2) - S - k, - P = T.style('height').slice(0, -2) - w - E - 30, - M = O / (t.length - 1), - L = P, - D = (100).toFixed(v), - j = 0; - x && (j = (P - x) / (t.length - 2)); - var R = t.slice(1).map(function(e, n) { - var r = [ - { x: M * n + A, y: (P - L) / 2 }, - { x: M * n + A, y: (P - L) / 2 + L } - ]; - 0 !== n && - ('relative' === g && - (x ? (L -= j) : (L = (L * e[1]) / t[n][1]), - (D = ((e[1] / t[n][1]) * 100).toFixed(v))), - 'absolute' === g && - (x ? (L -= j) : (L = (P * e[1]) / t[1][1]), - (D = ((e[1] / t[1][1]) * 100).toFixed(v)))); - var o = e[0]; - if (Object.keys(i).length) - for (var a in i) i[a] === e[0] && (o = a); - var u = e[1]; - return ( - (void 0 !== f.prettyNumber && - !0 !== f.prettyNumber) || - isNaN(parseInt(e[1])) || - (u = (0, s.prettyNumber)(e[1])), - { - name: e[0], - label: o, - percent: D + '%', - result: u, - points: [].concat(r, [ - { x: M * (n + 1), y: (P - L) / 2 + L }, - { x: M * (n + 1), y: (P - L) / 2 } - ]) - } - ); - }); - if ( - (C.attr('preserveAspectRatio', 'xMidYMid meet') - .attr( - 'viewBox', - '0 0 ' + (O + k + S) + ' ' + (P + w + E - 30) - ) - .attr('height', '100%') - .attr('width', '100%') - .append('g') - .attr( - 'transform', - 'translate(' + k + ',' + w + ')' - ) - .selectAll('polygon') - .data(R) - .enter() - .append('polygon') - .attr('points', function(t) { - return t.points - .map(function(t) { - return [t.x, t.y].join(','); - }) - .join(' '); - }) - .style('fill', function(t, e) { - return u[t.label] ? u[t.label] : n[e]; - }) - .attr('class', function(t) { - return t.label; - }) - .attr('cursor', 'pointer'), - m && - (C.selectAll('line') - .data(R) - .enter() - .append('line') - .attr('x1', function(t) { - return t.points[0].x + k - A / 2; - }) - .attr('y1', P + E) - .attr('x2', function(t) { - return t.points[0].x + k - A / 2; - }) - .attr('y2', function(t) { - return t.points[0].y + w; - }) - .attr('class', 'chart-lines'), - C.append('line') - .attr('x1', O + k - A / 2) - .attr('y1', P + E) - .attr( - 'x2', - R[R.length - 1].points[3].x + k + A / 2 - ) - .attr('y2', R[R.length - 1].points[3].y + w) - .attr('class', 'chart-lines')), - m && - C.selectAll('text.label') - .data(R) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(t) { - return t.points[1].x + M / 2 + k; - }) - .attr('y', P + 0.5 * E + w) - .attr('class', function(t) { - return 'text-label ' + t.label; - }) - .text(function(t) { - return t.name; - }) - .call(a.textWrap, M) - .attr('cursor', 'pointer'), - m || - C.selectAll('text.label') - .data(R) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(t) { - return t.points[1].x + M / 2 + k; - }) - .attr('y', function(t) { - return t.points[2].y + - (t.points[3].y - t.points[0].y) / 2 + - M / 4 > - P + E - 40 + w - ? P + E - 40 + w - : t.points[2].y + - (t.points[3].y - t.points[0].y) / 2 + - M / 4 + - w; - }) - .attr('class', function(t) { - return 'text-label ' + t.label; - }) - .text(function(t) { - return t.name; - }) - .call(a.textWrap, M) - .attr('cursor', 'pointer'), - p && - !b && - C.selectAll('text.label') - .data(R) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(t) { - return t.points[1].x + M / 2 + k; - }) - .attr('y', P / 2 + w + 10) - .attr('class', function(t) { - return 'text-main ' + t.label; - }) - .text(function(t) { - return t.percent; - }) - .attr('cursor', 'pointer'), - b && - !p && - C.selectAll('text.label') - .data(R) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(t) { - return t.points[1].x + M / 2 + k; - }) - .attr('y', P / 2 + w + 10) - .attr('class', function(t) { - return 'text-main ' + t.label; - }) - .text(function(t) { - return t.result; - }) - .attr('cursor', 'pointer'), - p && - b && - (C.selectAll('text.label') - .data(R) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(t) { - return t.points[1].x + M / 2 + k; - }) - .attr('y', P / 2 + w + 16) - .attr('class', function(t) { - return 'text-second ' + t.label; - }) - .text(function(t) { - return t.percent; - }) - .attr('cursor', 'pointer'), - C.selectAll('text.label') - .data(R) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(t) { - return t.points[1].x + M / 2 + k; - }) - .attr('y', P / 2 + w - 3) - .attr('class', function(t) { - return 'text-main ' + t.label; - }) - .text(function(t) { - return t.result; - }) - .attr('cursor', 'pointer')), - _) - ) { - var N = function(t) { - I.style('opacity', 0.5), - F.style('opacity', 0.5); - var e = /[^ ]*$/.exec( - o.select(this).attr('class') - )[0]; - C.selectAll('.' + e).style('opacity', 1); - }, - z = function(t) { - I.style('opacity', 1), F.style('opacity', 1); - }, - I = C.selectAll('polygon'); - I.on('mouseover', N).on('mouseout', z); - var F = C.selectAll('text'); - F.on('mouseover', N).on('mouseout', z); - } - c && - c.clickToCopyToClipboard && - C.selectAll('text').on('click', function(t) { - var e = t.percent, - n = t.result; - b - ? (0, l.default)(n, o.event) - : p && (0, l.default)(e, o.event); - }); - } - }, - { - key: 'update', - value: function() { - this.destroy(), this.render(); - } - }, - { - key: 'destroy', - value: function() { - o.select( - this.el().querySelector( - '.' + this.config.theme + '-rendering .c3-chart' - ) - ).remove(); - } - } - ]), - t - ); - })(); - e.default = c; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r, - i = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - o = (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && - (e[n] = t[n]); - return (e.default = t), e; - })(n(2)), - a = n(6), - s = n(3), - u = n(1), - l = (r = u) && r.__esModule ? r : { default: r }, - c = (function() { - function t() { - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, t); - } - return ( - i(t, [ - { - key: 'render', - value: function() { - var t = this.dataset.matrix, - e = this.config, - n = e.colors, - r = e.container, - i = e.labelMapping, - u = e.colorMapping, - c = e.utils, - f = this.config, - d = this.config.funnel, - h = d.percents, - p = h.show, - g = h.countingMethod, - v = h.decimals, - m = d.lines, - y = d.resultValues, - b = d.effect3d, - _ = d.hover, - x = d.minimalSize, - w = 20, - S = 30, - E = 100, - k = 10, - A = o.select(r), - T = o - .select( - this.el().querySelector( - '.' + - this.config.theme + - '-rendering .c3-chart' - ) - ) - .append('svg'), - C = A.style('width').slice(0, -2) - S - k, - O = A.style('height').slice(0, -2) - w - E - 30, - P = C / (t.length - 1), - M = 0.3 * P, - L = M / 1.5, - D = O, - j = (100).toFixed(v), - R = 0; - x && (R = (O - x) / (t.length - 2)); - var N = t.slice(1).map(function(e, n) { - var r = [ - { x: P * n + M, y: (O - D) / 2 }, - { x: P * n + M, y: (O - D) / 2 + D } - ]; - 0 !== n && - ('relative' === g && - (x ? (D -= R) : (D = (D * e[1]) / t[n][1]), - (j = ((e[1] / t[n][1]) * 100).toFixed(v))), - 'absolute' === g && - (x ? (D -= R) : (D = (O * e[1]) / t[1][1]), - (j = ((e[1] / t[1][1]) * 100).toFixed(v)))); - var o = e[0]; - if (Object.keys(i).length) - for (var a in i) i[a] === e[0] && (o = a); - var u = e[1]; - return ( - (void 0 !== f.prettyNumber && - !0 !== f.prettyNumber) || - isNaN(parseInt(e[1])) || - (u = (0, s.prettyNumber)(e[1])), - { - name: e[0], - label: o, - percent: j + '%', - result: u, - points: [].concat(r, [ - { x: P * (n + 1), y: (O - D) / 2 + D }, - { x: P * (n + 1), y: (O - D) / 2 } - ]) - } - ); - }), - z = N.map(function(t, e) { - return { - label: t.label, - points: [ - { x: t.points[0].x, y: t.points[0].y }, - { x: t.points[1].x, y: t.points[1].y }, - { - x: - 'top' === b - ? t.points[1].x - : t.points[1].x - L, - y: - 'top' === b - ? t.points[1].y - : t.points[1].y - M < O / 2 - ? O / 2 + 5 - : t.points[1].y - M - }, - { - x: - 'bottom' === b - ? t.points[0].x - : t.points[0].x - L, - y: - 'bottom' === b - ? t.points[0].y - : t.points[0].y + M > O / 2 - ? O / 2 - 5 - : t.points[0].y + M - } - ] - }; - }), - I = N.concat(z); - if ( - (T.attr('preserveAspectRatio', 'xMidYMid meet') - .attr( - 'viewBox', - '0 0 ' + (C + k + S) + ' ' + (O + w + E - 30) - ) - .attr('height', '100%') - .attr('width', '100%') - .append('g') - .attr( - 'transform', - 'translate(' + k + ',' + w + ')' - ) - .selectAll('polygon') - .data(I) - .enter() - .append('polygon') - .attr('points', function(t) { - return t.points - .map(function(t) { - return [t.x, t.y].join(','); - }) - .join(' '); - }) - .style('fill', function(t, e) { - return e > N.length - 1 - ? u[t.label] - ? o.rgb(u[t.label]).darker(1.5) - : o.rgb(n[e - N.length]).darker(1.5) - : u[t.label] - ? u[t.label] - : n[e]; - }) - .attr('class', function(t) { - return t.label; - }) - .attr('cursor', 'pointer'), - m && - (T.selectAll('line') - .data(N) - .enter() - .append('line') - .attr('x1', function(t) { - return t.points[0].x + k - 0.8 * M; - }) - .attr('y1', O + E) - .attr('x2', function(t) { - return t.points[0].x + k - 0.8 * M; - }) - .attr('y2', function(t) { - return t.points[0].y + w; - }) - .attr('class', 'chart-lines'), - T.append('line') - .attr('x1', C + k + M / 4) - .attr('y1', O + E) - .attr( - 'x2', - N[N.length - 1].points[3].x + k + M / 4 - ) - .attr('y2', N[N.length - 1].points[3].y + w) - .attr('class', 'chart-lines')), - m && - T.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(t) { - return t.points[0].x + k + 0.25 * P; - }) - .attr('y', O + 0.4 * E + w) - .attr('class', function(t) { - return 'text-label ' + t.label; - }) - .text(function(t) { - return t.name; - }) - .call(a.textWrap, P) - .attr('cursor', 'pointer'), - m || - T.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(t) { - return t.points[0].x + k + 0.25 * P; - }) - .attr('y', function(t) { - return t.points[2].y + P / 4 > O + E - 40 - ? O + E - 40 + w - : t.points[2].y + P / 4 < t.points[1].y - ? t.points[1].y + 20 + w - : t.points[2].y + P / 4 + 10 + w; - }) - .attr('class', function(t) { - return 'text-label ' + t.label; - }) - .text(function(t) { - return t.name; - }) - .call(a.textWrap, P) - .attr('cursor', 'pointer'), - p && - !y && - T.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(t) { - return t.points[1].x + P / 2.8 + k; - }) - .attr('y', O / 2 + w + 10) - .attr('class', function(t) { - return 'text-main ' + t.label; - }) - .text(function(t) { - return t.percent; - }) - .attr('cursor', 'pointer'), - y && - !p && - T.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(t) { - return t.points[1].x + P / 2.8 + k; - }) - .attr('y', O / 2 + w + 10) - .attr('class', function(t) { - return 'text-main ' + t.label; - }) - .text(function(t) { - return t.result; - }) - .attr('cursor', 'pointer'), - p && - y && - (T.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(t) { - return t.points[1].x + P / 2.8 + k; - }) - .attr('y', O / 2 + w + 16) - .attr('class', function(t) { - return 'text-second ' + t.label; - }) - .text(function(t) { - return t.percent; - }) - .attr('cursor', 'pointer'), - T.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(t) { - return t.points[1].x + P / 2.8 + k; - }) - .attr('y', O / 2 + w - 3) - .attr('class', function(t) { - return 'text-main ' + t.label; - }) - .text(function(t) { - return t.result; - }) - .attr('cursor', 'pointer')), - _) - ) { - var F = function(t) { - B.style('opacity', 0.5), - G.style('opacity', 0.5); - var e = /[^ ]*$/.exec( - o.select(this).attr('class') - )[0]; - T.selectAll('.' + e).style('opacity', 1); - }, - V = function(t) { - B.style('opacity', 1), G.style('opacity', 1); - }, - B = T.selectAll('polygon'); - B.on('mouseover', F).on('mouseout', V); - var G = T.selectAll('text'); - G.on('mouseover', F).on('mouseout', V); - } - c && - c.clickToCopyToClipboard && - T.selectAll('text').on('click', function(t) { - var e = t.percent, - n = t.result; - y - ? (0, l.default)(n, o.event) - : p && (0, l.default)(e, o.event); - }); - } - }, - { - key: 'update', - value: function() { - this.destroy(), this.render(); - } - }, - { - key: 'destroy', - value: function() { - o.select( - this.el().querySelector( - '.' + this.config.theme + '-rendering .c3-chart' - ) - ).remove(); - } - } - ]), - t - ); - })(); - e.default = c; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - i = u(n(10)), - o = n(0), - a = n(3), - s = u(n(1)); - function u(t) { - return t && t.__esModule ? t : { default: t }; - } - var l = (function() { - function t() { - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - })(this, t); - } - return ( - r(t, [ - { - key: 'render', - value: function() { - var t = this, - e = this.config, - n = e.container, - r = e.metricResults, - u = e.title, - l = e.showTitle, - c = e.subtitle, - f = e.tooltip, - d = e.utils, - h = []; - (h[0] = []), - (0, o.each)(this.dataset.selectColumn(0), function( - t, - e - ) { - var n = void 0; - e > 0 && (n = new Date(t)), (h[0][e] = n); - }), - (h[0][0] = 'x'), - (0, o.each)(this.data()[0], function(e, n) { - n > 0 && h.push(t.dataset.selectColumn(n)); - }); - var p = (r && r.previous && r.previous.result) || 0, - g = ((r && r.current && r.current.result) || 0) - p, - v = - 0 === p - ? '-' - : (0, a.prettyNumber)(Math.round((g / p) * 100)), - m = 'keen-dataviz-metric-green', - y = 'arrow-green'; - v < 0 && - ((m = 'keen-dataviz-metric-red'), (y = 'arrow-red')); - var b = - l && u - ? '
' + - u + - '
' - : '', - _ = c - ? '
' + - c + - '
' - : '', - x = document.querySelector(n); - x.innerHTML = - '\n
\n
\n
\n ' + - b + - '\n ' + - _ + - '\n
' + - v + - ' %
\n
' + - (0, a.prettyNumber)(g) + - '
\n
\n
\n
\n
\n
\n
'; - var w = x.querySelector('.c3-chart'); - if ( - (i.default.generate({ - bindto: w, - color: { pattern: ['#c3c4cc'] }, - title: u, - legend: { show: !1 }, - data: { - x: 'x', - columns: h, - type: 'area-spline', - selection: { - draggable: !1, - enabled: !0, - multiple: !0 - } - }, - point: { - r: 0, - focus: { expand: { r: 5, enabled: !0 } }, - select: { r: 5, enabled: !0 } - }, - axis: { y: { show: !1 }, x: { show: !1 } }, - grid: { x: { show: !1 }, y: { show: !1 } }, - padding: { left: 0, right: 0, top: 0, bottom: -4 }, - tooltip: f - }), - d && d.clickToCopyToClipboard) - ) { - var S = document.querySelector('.current-count') - .innerText; - document - .querySelector('.keen-dataviz-metric-combo') - .addEventListener('click', function(t) { - return (0, s.default)(S, t); - }); - } - } - }, - { - key: 'update', - value: function() { - this.destroy(), this.render(); - } - }, - { - key: 'destroy', - value: function() { - var t = this.config.container; - document - .querySelector(t) - .querySelector('.c3-chart') - .remove(); - } - } - ]), - t - ); - })(); - e.default = l; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = function(t, e) { - if (Array.isArray(t)) return t; - if (Symbol.iterator in Object(t)) - return (function(t, e) { - var n = [], - r = !0, - i = !1, - o = void 0; - try { - for ( - var a, s = t[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !e || n.length !== e); - r = !0 - ); - } catch (t) { - (i = !0), (o = t); - } finally { - try { - !r && s.return && s.return(); - } finally { - if (i) throw o; - } - } - return n; - })(t, e); - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance' - ); - }, - i = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - o = (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && - (e[n] = t[n]); - return (e.default = t), e; - })(n(2)), - a = u(n(19)), - s = u(n(1)); - function u(t) { - return t && t.__esModule ? t : { default: t }; - } - function l(t) { - if (Array.isArray(t)) { - for (var e = 0, n = Array(t.length); e < t.length; e++) - n[e] = t[e]; - return n; - } - return Array.from(t); - } - var c = (function() { - function t() { - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - })(this, t); - } - return ( - i(t, [ - { - key: 'render', - value: function() { - var t, - e, - n, - i = this.config, - u = i.colors, - c = i.container, - f = i.heatmap, - d = f.showSlider, - h = f.simpleTooltip, - p = this.dataset, - g = p.matrix, - v = p.meta, - m = 10, - y = 10, - b = 50, - _ = 50, - x = o.select(c), - w = parseInt(x.style('width'), 10) || 600, - S = parseInt(x.style('height'), 10) || 600, - E = this.el().querySelector('.c3-chart'), - k = w - y - _, - A = S - m - b, - T = new Set(), - C = new Set(), - O = - ((t = o.timeFormat('%B %d')), - (e = o.timeFormat('%H:%M')), - (n = []), - g.forEach(function(r) { - if ('heatmap' === v.type) { - if ('number' == typeof r[0][2]) { - var i = { - x: r[0][0], - y: r[0][1], - value: r[0][2] - }; - n.push(i); - } - } else { - var o = Date.parse(r[0]); - if (!isNaN(o)) { - var a = { - x: t(new Date(r[0])), - y: e(new Date(r[0])), - value: r[1] - }; - n.push(a); - } - } - }), - n); - O.forEach(function(t) { - T.add(t.x), C.add(t.y); - }); - var P = O[0].value, - M = O.reduce(function(t, e) { - return e.value < t ? e.value : t; - }, P), - L = O.reduce(function(t, e) { - return e.value > t ? e.value : t; - }, P), - D = function() { - var t = u[0], - e = o.rgb('#00BBDE'); - return o.color(t) && (e = o.rgb(t)), e; - }, - j = o - .scaleLinear() - .domain([ - 0, - o.max(O, function(t) { - return t.value; - }) - ]) - .range([0, 1]), - R = function(t) { - var e = j(t), - n = D(), - r = (function(t) { - var e = - arguments.length > 1 && - void 0 !== arguments[1] - ? arguments[1] - : [255, 255, 255], - n = t[3]; - return [ - Math.floor((1 - n) * e[0] + n * t[0] + 0.5), - Math.floor((1 - n) * e[1] + n * t[1] + 0.5), - Math.floor((1 - n) * e[2] + n * t[2] + 0.5) - ]; - })([n.r, n.g, n.b, e]); - return ( - 'rgb(' + r[0] + ', ' + r[1] + ', ' + r[2] + ')' - ); - }, - N = o - .select(E) - .append('svg') - .attr('preserveAspectRatio', 'xMidYMid slice') - .attr('viewBox', '0 0 ' + w + ' ' + S) - .attr('height', '100%') - .attr('width', '100%') - .append('g') - .attr( - 'transform', - 'translate(' + _ + ',' + m + ')' - ); - if (d) { - o - .select(c) - .append('input') - .attr('type', 'range') - .attr('class', 'keen-dataviz-slider'), - new a.default('.keen-dataviz-slider', { - multiple: !0, - min: M, - max: L, - value: [M, L], - onChange: function(t) { - return (function(t) { - var e = N.selectAll('rect'), - n = r(t, 2), - i = n[0], - a = n[1]; - e.each(function(t, e, n) { - o.select(n[e]).style( - 'visibility', - function() { - return t.value > a || t.value < i - ? 'hidden' - : 'visible'; - } - ); - }); - })(t); - } - }); - var z = c.className - ? '.' + c.className.replace(/\s/g, '.') - : c, - I = - '\n ' + - z + - ' .rangeable-progress,\n ' + - z + - ' .rangeable-tooltip,\n ' + - z + - ' .active {\n background-color: ' + - D() + - ';\n }\n ' + - z + - ' .rangeable-tooltip::before {\n border-color: ' + - D() + - ' transparent transparent;\n }\n ' + - z + - ' .rangeable-handle {\n border-color: ' + - D() + - ';\n }\n ', - F = document.createElement('style'); - F.innerHTML = I; - var V = document.querySelector('script'); - V.parentNode.insertBefore(F, V); - } - var B = function(t, e) { - return Math.floor(e / t) + 1; - }, - G = o - .scaleBand() - .range([0, k]) - .domain([].concat(l(T))) - .padding(0.02); - N.append('g') - .style('font-size', 12) - .attr('transform', 'translate(0, ' + A + ')') - .call(o.axisBottom(G).tickSize(0)) - .selectAll('text') - .attr('dy', '1em') - .filter(function(t, e) { - return e % B(5, T.size); - }) - .style('display', 'none'); - var H = o - .scaleBand() - .range([A, 0]) - .domain([].concat(l(C)).sort()) - .padding(0.02); - N.append('g') - .style('font-size', 12) - .call(o.axisLeft(H).tickSize(0)) - .selectAll('text') - .filter(function(t, e) { - return e % B(10, C.size); - }) - .style('display', 'none'); - var U = o - .select(c) - .append('div') - .attr('class', 'keen-dataviz-tooltip') - .style('opacity', 0) - .style('background-color', 'white') - .style('border', '2px solid ' + D().toString()) - .style('font-size', '14px') - .style('padding', '2px 8px') - .style('box-shadow', '2px 2px 4px rgba(0,0,0,0.25') - .style('display', 'none') - .style('position', 'fixed'); - N.selectAll() - .data(O, function(t) { - return t.x + ':' + t.y; - }) - .enter() - .append('rect') - .attr('x', function(t) { - return G(t.x); - }) - .attr('y', function(t) { - return H(t.y); - }) - .attr('width', G.bandwidth()) - .attr('height', H.bandwidth()) - .style('fill', function(t) { - return R(t.value); - }) - .style('cursor', 'pointer') - .on('mouseover', function() { - o - .select(o.event.target) - .raise() - .style('transition', 'transform 150ms ease-out') - .style('outline', '1px solid ' + D()) - .style('transform', 'translate(0px, -4px)'), - U.style('opacity', 1).style('display', 'block'); - }) - .on('mousemove', function(t) { - var e = - '\n \n value:\n ' + - t.value + - '\n '; - h || - (e = - '\n \n xAxis:\n ' + - t.x + - '\n \n \n yAxis:\n ' + - t.y + - '\n \n ' + - e + - '\n '), - U.html( - '\n \n ' + - e + - '\n
\n ' - ) - .style('left', o.event.clientX + 10 + 'px') - .style('top', o.event.clientY + 10 + 'px'); - }) - .on('mouseleave', function() { - o - .select(o.event.target) - .style('outline', 'none') - .style('transform', 'none'), - U.style('opacity', 0).style('display', 'none'); - }) - .on('click', function(t) { - return (0, s.default)(t.value); - }); - } - }, - { - key: 'update', - value: function() { - this.destroy(), this.render(); - } - }, - { - key: 'destroy', - value: function() { - this.el() - .querySelector('.c3-chart') - .remove(); - } - } - ]), - t - ); - })(); - e.default = c; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = function(t, e) { - if (Array.isArray(t)) return t; - if (Symbol.iterator in Object(t)) - return (function(t, e) { - var n = [], - r = !0, - i = !1, - o = void 0; - try { - for ( - var a, s = t[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !e || n.length !== e); - r = !0 - ); - } catch (t) { - (i = !0), (o = t); - } finally { - try { - !r && s.return && s.return(); - } finally { - if (i) throw o; - } - } - return n; - })(t, e); - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance' - ); - }, - i = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }, - o = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - a = (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && - (e[n] = t[n]); - return (e.default = t), e; - })(n(2)), - s = c(n(19)), - u = n(3), - l = c(n(1)); - function c(t) { - return t && t.__esModule ? t : { default: t }; - } - var f = (function() { - function t() { - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - })(this, t); - } - return ( - o(t, [ - { - key: 'render', - value: function() { - var t = this.dataset.matrix, - e = this.config, - n = e.colors, - o = e.container, - c = e.utils, - f = e.title, - d = e.choropleth, - h = d.map, - p = d.borders, - g = p.show, - v = p.size, - m = p.color, - y = d.showSlider, - b = this.config, - _ = a.select(o), - x = a.select( - this.el().querySelector( - '.' + this.config.theme + '-rendering .c3-chart' - ) - ), - w = Number(_.style('width').slice(0, -2)), - S = Number(_.style('height').slice(0, -2)), - E = 0; - f && (E += 31), y && (E += 20); - var k = x - .append('svg') - .attr('width', w) - .attr('height', S - E), - A = t.slice(1).map(function(t) { - return t[1]; - }), - T = a.min(A), - C = a.max(A); - T === C && (T = 0); - var O = a.hsl(n[0]).brighter(1); - O.l = 0.95; - var P = n[0], - M = a - .scaleLinear() - .domain([ - void 0 === T ? 0 : T, - void 0 === C ? 0 : C - ]) - .range([O, P]); - a.json( - 'https://cdn.jsdelivr.net/npm/keen-dataviz-maps@1.0.0/maps/' + - h + - '.json' - ).then(function(e) { - var f = a - .zoom() - .scaleExtent([1, 5]) - .translateExtent([ - [0, 0], - [w, S - 50] - ]) - .on('zoom', function() { - k.selectAll('.' + P).attr( - 'transform', - a.event.transform - ); - }), - d = void 0; - switch (h) { - case 'world': - d = a.geoMercator().fitSize([w, S - 50], e); - break; - case 'us': - d = a - .geoAlbersUsa() - .scale(w) - .fitSize([w, S - 50], e); - break; - default: - d = a - .geoMercator() - .scale(w) - .fitSize([w, S - 50], e); - } - var p = a.geoPath().projection(d), - _ = e.features.map(function(e) { - var n = t.filter(function(t) { - return t[0] === e.properties.name; - }); - return n[0] - ? i({}, e, { - properties: i({}, e.properties, { - result: n[0][1] - }) - }) - : i({}, e, { - properties: i({}, e.properties, { - result: 0 - }) - }); - }); - if (y) { - x - .style('display', 'flex') - .style('flex-direction', 'column') - .style('justify-content', 'center'), - x - .append('div') - .style('width', '95%') - .style('margin', 'auto') - .append('input') - .attr('id', 'rangeSlider'), - new s.default('#rangeSlider', { - type: 'double', - tooltips: !0, - min: 0, - max: C, - onChange: function(t) { - return (function(t) { - var e = k.selectAll('.' + P), - n = r(t, 2), - i = n[0], - o = n[1]; - e.each(function(t, e, n) { - a.select(n[e]).style( - 'visibility', - function() { - return t.properties.result > o || - t.properties.result < i - ? 'hidden' - : 'visible'; - } - ); - }); - })(t); - } - }); - var E = o.className - ? '.' + o.className.replace(/\s/g, '.') - : o, - A = - '\n ' + - E + - ' .rangeable-progress,\n ' + - E + - ' .rangeable-tooltip,\n ' + - E + - ' .active {\n background-color: ' + - n[0] + - ';\n }\n ' + - E + - ' .rangeable-tooltip::before {\n border-color: ' + - n[0] + - ' transparent transparent;\n }\n ' + - E + - ' .rangeable-handle {\n border-color: ' + - n[0] + - ';\n }\n ', - T = document.createElement('style'); - T.innerHTML = A; - var O = document.querySelector('script'); - O.parentNode.insertBefore(T, O); - } - var P = 'world' === h ? 'country' : 'state'; - k - .selectAll('path') - .data(_) - .enter() - .append('path') - .attr('d', p) - .attr('class', P) - .attr('id', function(t) { - return ( - '' + - t.properties.name - .split(' ') - .join('-') - .split('.') - .join('') - ); - }) - .style('fill', function(t) { - return M(t.properties.result); - }) - .attr('cursor', 'pointer') - .on('mouseover', function(t) { - k - .select( - '#' + - t.properties.name - .split(' ') - .join('-') - .split('.') - .join('') - ) - .style('fill', function(t) { - return M(1.2 * C); - }) - .style('stroke-width', 1.5 * v), - L.style('opacity', 1).style('display', 'block'); - }) - .on('mousemove', function(t) { - var e = t.properties.result; - (void 0 !== b.prettyNumber && - !0 !== b.prettyNumber) || - isNaN(parseInt(t.properties.result)) || - (e = (0, u.prettyNumber)(t.properties.result)), - L.html( - '\n \n \n \n \n \n \n \n
' + - t.properties.name + - '
' + - e + - '
\n ' - ) - .style('left', a.event.clientX + 10 + 'px') - .style('top', a.event.clientY + 10 + 'px'); - }) - .on('mouseout', function(t) { - k - .select( - '#' + - t.properties.name - .split(' ') - .join('-') - .split('.') - .join('') - ) - .style('fill', function(t) { - return M(t.properties.result); - }) - .style('stroke-width', v), - L.style('opacity', 0).style('display', 'none'); - }), - g && - k - .selectAll('.' + P) - .style('stroke', m) - .style('stroke-width', v); - var L = a - .select('.c3-chart') - .append('div') - .style('opacity', 0) - .attr('class', 'c3-tooltip-container') - .style('display', 'none') - .style('position', 'fixed'); - c && - c.clickToCopyToClipboard && - k.selectAll('.' + P).on('click', function(t) { - var e = t.properties.result; - (0, l.default)(e, a.event); - }), - k.call(f), - k.call(f).on('mousedown.zoom', null); - }); - } - }, - { - key: 'update', - value: function() { - this.destroy(), this.render(); - } - }, - { - key: 'destroy', - value: function() { - a.select( - this.el().querySelector( - '.' + this.config.theme + '-rendering .c3-chart' - ) - ).remove(); - } - } - ]), - t - ); - })(); - e.default = f; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function() { - var t = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : {}, - e = t.element, - n = t.data, - r = document.createElement('dl'); - (r.classList = 'keen-dataviz-execution-meta'), - Object.keys(n).length - ? Object.keys(n).forEach(function(t) { - var e = document.createElement('dt'); - (e.innerText = t.replace(/_/g, ' ')), - e.addEventListener('click', function(t) { - return s(t); - }); - var i = document.createElement('dd'); - (i.innerText = n[t]), - i.addEventListener('click', function(t) { - return s(t); - }), - r.append(e), - r.append(i); - }) - : (r.innerText = 'No execution metadata available'), - e.append(r); - }); - var r, - i = n(1), - o = (r = i) && r.__esModule ? r : { default: r }; - function a(t) { - var e = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : 'copied', - n = - arguments.length > 2 && void 0 !== arguments[2] - ? arguments[2] - : 1e3; - setTimeout(function() { - t.classList.remove(e); - }, n); - } - function s(t) { - var e = t.target, - n = t.target.nodeName, - r = void 0; - 'DD' === n && - ((r = e.innerText), - e.classList.contains('copied') || - (e.classList.add('copied'), a(e))), - 'DT' === n && - ((r = e.nextSibling.innerText), - e.nextSibling.classList.contains('copied') || - (e.nextSibling.classList.add('copied'), - a(e.nextSibling))), - (0, o.default)(r); - } - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = a(n(55)), - i = a(n(56)), - o = a(n(57)); - function a(t) { - return t && t.__esModule ? t : { default: t }; - } - e.default = { - autocollector: r.default, - modern: i.default, - dracula: o.default - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = { - colors: [ - '#5E77FF', - '#9C60FE', - '#F162FE', - '#FD65B7', - '#FD6768', - '#FDB86A', - '#F2FC6C', - '#A5FC6E', - '#71FB85', - '#73FBD0', - '#76DDFA', - '#76f4fa', - '#bb76fa', - '#fa76bf' - ] - }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = { - colors: [ - '#45B2E8', - '#D9540D', - '#2CAB72', - '#2C4BAB', - '#EDDD02', - '#E84545', - '#E845CE', - '#5FCEC9', - '#E89F45', - '#28E43F', - '#B765C0', - '#458AE8', - '#AB2C2C', - '#AB2C75', - '#27E5FF', - '#7168F2', - '#FF932B', - '#855D00', - '#ACE845', - '#1C91B4' - ] - }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = { - colors: [ - '#8be9fd', - '#50fa7b', - '#ffb86c', - '#ff79c6', - '#bd93f9', - '#ff5555', - '#f1fa8c' - ] - }); - } - ]); - }), - (t.exports = r(n(148), n(314))); - }, - function(t, e, n) { - var r = n(428); - t.exports = { - locale: r.locale, - long: r.long, - short: r.short, - narrow: r.narrow, - 'short-time': n(433), - 'short-convenient': n(434), - 'long-time': n(435), - 'long-convenient': n(436), - tiny: n(437), - quantify: r.quantify - }; - }, - function(t, e, n) { - 'use strict'; - var r = function(t) { - var e = {}; - return function(n) { - return void 0 === e[n] && (e[n] = t(n)), e[n]; - }; - }, - i = { - animationIterationCount: 1, - borderImageOutset: 1, - borderImageSlice: 1, - borderImageWidth: 1, - boxFlex: 1, - boxFlexGroup: 1, - boxOrdinalGroup: 1, - columnCount: 1, - columns: 1, - flex: 1, - flexGrow: 1, - flexPositive: 1, - flexShrink: 1, - flexNegative: 1, - flexOrder: 1, - gridRow: 1, - gridRowEnd: 1, - gridRowSpan: 1, - gridRowStart: 1, - gridColumn: 1, - gridColumnEnd: 1, - gridColumnSpan: 1, - gridColumnStart: 1, - fontWeight: 1, - lineHeight: 1, - opacity: 1, - order: 1, - orphans: 1, - tabSize: 1, - widows: 1, - zIndex: 1, - zoom: 1, - WebkitLineClamp: 1, - fillOpacity: 1, - floodOpacity: 1, - stopOpacity: 1, - strokeDasharray: 1, - strokeDashoffset: 1, - strokeMiterlimit: 1, - strokeOpacity: 1, - strokeWidth: 1 - }; - var o = function(t) { - for (var e, n = t.length, r = n ^ n, i = 0; n >= 4; ) - (e = - 1540483477 * - (65535 & - (e = - (255 & t.charCodeAt(i)) | - ((255 & t.charCodeAt(++i)) << 8) | - ((255 & t.charCodeAt(++i)) << 16) | - ((255 & t.charCodeAt(++i)) << 24))) + - (((1540483477 * (e >>> 16)) & 65535) << 16)), - (r = - (1540483477 * (65535 & r) + - (((1540483477 * (r >>> 16)) & 65535) << 16)) ^ - (e = - 1540483477 * (65535 & (e ^= e >>> 24)) + - (((1540483477 * (e >>> 16)) & 65535) << 16))), - (n -= 4), - ++i; - switch (n) { - case 3: - r ^= (255 & t.charCodeAt(i + 2)) << 16; - case 2: - r ^= (255 & t.charCodeAt(i + 1)) << 8; - case 1: - r = - 1540483477 * (65535 & (r ^= 255 & t.charCodeAt(i))) + - (((1540483477 * (r >>> 16)) & 65535) << 16); - } - return ( - (r = - 1540483477 * (65535 & (r ^= r >>> 13)) + - (((1540483477 * (r >>> 16)) & 65535) << 16)), - ((r ^= r >>> 15) >>> 0).toString(36) - ); - }; - var a = function(t) { - function e(t, e, r) { - var i = e.trim().split(p); - e = i; - var o = i.length, - a = t.length; - switch (a) { - case 0: - case 1: - var s = 0; - for (t = 0 === a ? '' : t[0] + ' '; s < o; ++s) - e[s] = n(t, e[s], r).trim(); - break; - default: - var u = (s = 0); - for (e = []; s < o; ++s) - for (var l = 0; l < a; ++l) - e[u++] = n(t[l] + ' ', i[s], r).trim(); - } - return e; - } - function n(t, e, n) { - var r = e.charCodeAt(0); - switch ((33 > r && (r = (e = e.trim()).charCodeAt(0)), r)) { - case 38: - return e.replace(g, '$1' + t.trim()); - case 58: - return t.trim() + e.replace(g, '$1' + t.trim()); - default: - if (0 < 1 * n && 0 < e.indexOf('\f')) - return e.replace( - g, - (58 === t.charCodeAt(0) ? '' : '$1') + t.trim() - ); - } - return t + e; - } - function r(t, e, n, o) { - var a = t + ';', - s = 2 * e + 3 * n + 4 * o; - if (944 === s) { - t = a.indexOf(':', 9) + 1; - var u = a.substring(t, a.length - 1).trim(); - return ( - (u = a.substring(0, t).trim() + u + ';'), - 1 === O || (2 === O && i(u, 1)) ? '-webkit-' + u + u : u - ); - } - if (0 === O || (2 === O && !i(a, 1))) return a; - switch (s) { - case 1015: - return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a; - case 951: - return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a; - case 963: - return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a; - case 1009: - if (100 !== a.charCodeAt(4)) break; - case 969: - case 942: - return '-webkit-' + a + a; - case 978: - return '-webkit-' + a + '-moz-' + a + a; - case 1019: - case 983: - return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a; - case 883: - if (45 === a.charCodeAt(8)) return '-webkit-' + a + a; - if (0 < a.indexOf('image-set(', 11)) - return a.replace(k, '$1-webkit-$2') + a; - break; - case 932: - if (45 === a.charCodeAt(4)) - switch (a.charCodeAt(5)) { - case 103: - return ( - '-webkit-box-' + - a.replace('-grow', '') + - '-webkit-' + - a + - '-ms-' + - a.replace('grow', 'positive') + - a - ); - case 115: - return ( - '-webkit-' + - a + - '-ms-' + - a.replace('shrink', 'negative') + - a - ); - case 98: - return ( - '-webkit-' + - a + - '-ms-' + - a.replace('basis', 'preferred-size') + - a - ); - } - return '-webkit-' + a + '-ms-' + a + a; - case 964: - return '-webkit-' + a + '-ms-flex-' + a + a; - case 1023: - if (99 !== a.charCodeAt(8)) break; - return ( - '-webkit-box-pack' + - (u = a - .substring(a.indexOf(':', 15)) - .replace('flex-', '') - .replace('space-between', 'justify')) + - '-webkit-' + - a + - '-ms-flex-pack' + - u + - a - ); - case 1005: - return d.test(a) - ? a.replace(f, ':-webkit-') + a.replace(f, ':-moz-') + a - : a; - case 1e3: - switch ( - ((e = (u = a.substring(13).trim()).indexOf('-') + 1), - u.charCodeAt(0) + u.charCodeAt(e)) - ) { - case 226: - u = a.replace(b, 'tb'); - break; - case 232: - u = a.replace(b, 'tb-rl'); - break; - case 220: - u = a.replace(b, 'lr'); - break; - default: - return a; - } - return '-webkit-' + a + '-ms-' + u + a; - case 1017: - if (-1 === a.indexOf('sticky', 9)) break; - case 975: - switch ( - ((e = (a = t).length - 10), - (s = - (u = (33 === a.charCodeAt(e) ? a.substring(0, e) : a) - .substring(t.indexOf(':', 7) + 1) - .trim()).charCodeAt(0) + - (0 | u.charCodeAt(7)))) - ) { - case 203: - if (111 > u.charCodeAt(8)) break; - case 115: - a = a.replace(u, '-webkit-' + u) + ';' + a; - break; - case 207: - case 102: - a = - a.replace( - u, - '-webkit-' + (102 < s ? 'inline-' : '') + 'box' - ) + - ';' + - a.replace(u, '-webkit-' + u) + - ';' + - a.replace(u, '-ms-' + u + 'box') + - ';' + - a; - } - return a + ';'; - case 938: - if (45 === a.charCodeAt(5)) - switch (a.charCodeAt(6)) { - case 105: - return ( - (u = a.replace('-items', '')), - '-webkit-' + - a + - '-webkit-box-' + - u + - '-ms-flex-' + - u + - a - ); - case 115: - return ( - '-webkit-' + a + '-ms-flex-item-' + a.replace(w, '') + a - ); - default: - return ( - '-webkit-' + - a + - '-ms-flex-line-pack' + - a.replace('align-content', '').replace(w, '') + - a - ); - } - break; - case 973: - case 989: - if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break; - case 931: - case 953: - if (!0 === E.test(t)) - return 115 === - (u = t.substring(t.indexOf(':') + 1)).charCodeAt(0) - ? r( - t.replace('stretch', 'fill-available'), - e, - n, - o - ).replace(':fill-available', ':stretch') - : a.replace(u, '-webkit-' + u) + - a.replace(u, '-moz-' + u.replace('fill-', '')) + - a; - break; - case 962: - if ( - ((a = - '-webkit-' + - a + - (102 === a.charCodeAt(5) ? '-ms-' + a : '') + - a), - 211 === n + o && - 105 === a.charCodeAt(13) && - 0 < a.indexOf('transform', 10)) - ) - return ( - a - .substring(0, a.indexOf(';', 27) + 1) - .replace(h, '$1-webkit-$2') + a - ); - } - return a; - } - function i(t, e) { - var n = t.indexOf(1 === e ? ':' : '{'), - r = t.substring(0, 3 !== e ? n : 10); - return ( - (n = t.substring(n + 1, t.length - 1)), - D(2 !== e ? r : r.replace(S, '$1'), n, e) - ); - } - function o(t, e) { - var n = r(e, e.charCodeAt(0), e.charCodeAt(1), e.charCodeAt(2)); - return n !== e + ';' - ? n.replace(x, ' or ($1)').substring(4) - : '(' + e + ')'; - } - function a(t, e, n, r, i, o, a, s, l, c) { - for (var f, d = 0, h = e; d < L; ++d) - switch ((f = M[d].call(u, t, h, n, r, i, o, a, s, l, c))) { - case void 0: - case !1: - case !0: - case null: - break; - default: - h = f; - } - if (h !== e) return h; - } - function s(t) { - return ( - void 0 !== (t = t.prefix) && - ((D = null), - t - ? 'function' != typeof t - ? (O = 1) - : ((O = 2), (D = t)) - : (O = 0)), - s - ); - } - function u(t, n) { - var s = t; - if ((33 > s.charCodeAt(0) && (s = s.trim()), (s = [s]), 0 < L)) { - var u = a(-1, n, s, s, T, A, 0, 0, 0, 0); - void 0 !== u && 'string' == typeof u && (n = u); - } - var f = (function t(n, s, u, f, d) { - for ( - var h, - p, - g, - b, - x, - w = 0, - S = 0, - E = 0, - k = 0, - M = 0, - D = 0, - R = (g = h = 0), - N = 0, - z = 0, - I = 0, - F = 0, - V = u.length, - B = V - 1, - G = '', - H = '', - U = '', - q = ''; - N < V; - - ) { - if ( - ((p = u.charCodeAt(N)), - N === B && - 0 !== S + k + E + w && - (0 !== S && (p = 47 === S ? 10 : 47), - (k = E = w = 0), - V++, - B++), - 0 === S + k + E + w) - ) { - if ( - N === B && - (0 < z && (G = G.replace(c, '')), 0 < G.trim().length) - ) { - switch (p) { - case 32: - case 9: - case 59: - case 13: - case 10: - break; - default: - G += u.charAt(N); - } - p = 59; - } - switch (p) { - case 123: - for ( - h = (G = G.trim()).charCodeAt(0), g = 1, F = ++N; - N < V; - - ) { - switch ((p = u.charCodeAt(N))) { - case 123: - g++; - break; - case 125: - g--; - break; - case 47: - switch ((p = u.charCodeAt(N + 1))) { - case 42: - case 47: - t: { - for (R = N + 1; R < B; ++R) - switch (u.charCodeAt(R)) { - case 47: - if ( - 42 === p && - 42 === u.charCodeAt(R - 1) && - N + 2 !== R - ) { - N = R + 1; - break t; - } - break; - case 10: - if (47 === p) { - N = R + 1; - break t; - } - } - N = R; - } - } - break; - case 91: - p++; - case 40: - p++; - case 34: - case 39: - for (; N++ < B && u.charCodeAt(N) !== p; ); - } - if (0 === g) break; - N++; - } - switch ( - ((g = u.substring(F, N)), - 0 === h && - (h = (G = G.replace(l, '').trim()).charCodeAt(0)), - h) - ) { - case 64: - switch ( - (0 < z && (G = G.replace(c, '')), - (p = G.charCodeAt(1))) - ) { - case 100: - case 109: - case 115: - case 45: - z = s; - break; - default: - z = P; - } - if ( - ((F = (g = t(s, z, g, p, d + 1)).length), - 0 < L && - ((x = a( - 3, - g, - (z = e(P, G, I)), - s, - T, - A, - F, - p, - d, - f - )), - (G = z.join('')), - void 0 !== x && - 0 === (F = (g = x.trim()).length) && - ((p = 0), (g = ''))), - 0 < F) - ) - switch (p) { - case 115: - G = G.replace(_, o); - case 100: - case 109: - case 45: - g = G + '{' + g + '}'; - break; - case 107: - (g = - (G = G.replace(v, '$1 $2')) + '{' + g + '}'), - (g = - 1 === O || (2 === O && i('@' + g, 3)) - ? '@-webkit-' + g + '@' + g - : '@' + g); - break; - default: - (g = G + g), 112 === f && ((H += g), (g = '')); - } - else g = ''; - break; - default: - g = t(s, e(s, G, I), g, f, d + 1); - } - (U += g), - (g = I = z = R = h = 0), - (G = ''), - (p = u.charCodeAt(++N)); - break; - case 125: - case 59: - if ( - 1 < - (F = (G = (0 < z ? G.replace(c, '') : G).trim()).length) - ) - switch ( - (0 === R && - ((h = G.charCodeAt(0)), - 45 === h || (96 < h && 123 > h)) && - (F = (G = G.replace(' ', ':')).length), - 0 < L && - void 0 !== - (x = a(1, G, s, n, T, A, H.length, f, d, f)) && - 0 === (F = (G = x.trim()).length) && - (G = '\0\0'), - (h = G.charCodeAt(0)), - (p = G.charCodeAt(1)), - h) - ) { - case 0: - break; - case 64: - if (105 === p || 99 === p) { - q += G + u.charAt(N); - break; - } - default: - 58 !== G.charCodeAt(F - 1) && - (H += r(G, h, p, G.charCodeAt(2))); - } - (I = z = R = h = 0), (G = ''), (p = u.charCodeAt(++N)); - } - } - switch (p) { - case 13: - case 10: - 47 === S - ? (S = 0) - : 0 === 1 + h && - 107 !== f && - 0 < G.length && - ((z = 1), (G += '\0')), - 0 < L * j && a(0, G, s, n, T, A, H.length, f, d, f), - (A = 1), - T++; - break; - case 59: - case 125: - if (0 === S + k + E + w) { - A++; - break; - } - default: - switch ((A++, (b = u.charAt(N)), p)) { - case 9: - case 32: - if (0 === k + w + S) - switch (M) { - case 44: - case 58: - case 9: - case 32: - b = ''; - break; - default: - 32 !== p && (b = ' '); - } - break; - case 0: - b = '\\0'; - break; - case 12: - b = '\\f'; - break; - case 11: - b = '\\v'; - break; - case 38: - 0 === k + S + w && ((z = I = 1), (b = '\f' + b)); - break; - case 108: - if (0 === k + S + w + C && 0 < R) - switch (N - R) { - case 2: - 112 === M && - 58 === u.charCodeAt(N - 3) && - (C = M); - case 8: - 111 === D && (C = D); - } - break; - case 58: - 0 === k + S + w && (R = N); - break; - case 44: - 0 === S + E + k + w && ((z = 1), (b += '\r')); - break; - case 34: - case 39: - 0 === S && (k = k === p ? 0 : 0 === k ? p : k); - break; - case 91: - 0 === k + S + E && w++; - break; - case 93: - 0 === k + S + E && w--; - break; - case 41: - 0 === k + S + w && E--; - break; - case 40: - if (0 === k + S + w) { - if (0 === h) - switch (2 * M + 3 * D) { - case 533: - break; - default: - h = 1; - } - E++; - } - break; - case 64: - 0 === S + E + k + w + R + g && (g = 1); - break; - case 42: - case 47: - if (!(0 < k + w + E)) - switch (S) { - case 0: - switch (2 * p + 3 * u.charCodeAt(N + 1)) { - case 235: - S = 47; - break; - case 220: - (F = N), (S = 42); - } - break; - case 42: - 47 === p && - 42 === M && - F + 2 !== N && - (33 === u.charCodeAt(F + 2) && - (H += u.substring(F, N + 1)), - (b = ''), - (S = 0)); - } - } - 0 === S && (G += b); - } - (D = M), (M = p), N++; - } - if (0 < (F = H.length)) { - if ( - ((z = s), - 0 < L && - void 0 !== (x = a(2, H, z, n, T, A, F, f, d, f)) && - 0 === (H = x).length) - ) - return q + H + U; - if (((H = z.join(',') + '{' + H + '}'), 0 != O * C)) { - switch ((2 !== O || i(H, 2) || (C = 0), C)) { - case 111: - H = H.replace(y, ':-moz-$1') + H; - break; - case 112: - H = - H.replace(m, '::-webkit-input-$1') + - H.replace(m, '::-moz-$1') + - H.replace(m, ':-ms-input-$1') + - H; - } - C = 0; - } - } - return q + H + U; - })(P, s, n, 0, 0); - return ( - 0 < L && - void 0 !== (u = a(-2, f, s, s, T, A, f.length, 0, 0, 0)) && - (f = u), - '', - (C = 0), - (A = T = 1), - f - ); - } - var l = /^\0+/g, - c = /[\0\r\f]/g, - f = /: */g, - d = /zoo|gra/, - h = /([,: ])(transform)/g, - p = /,\r+?/g, - g = /([\t\r\n ])*\f?&/g, - v = /@(k\w+)\s*(\S*)\s*/, - m = /::(place)/g, - y = /:(read-only)/g, - b = /[svh]\w+-[tblr]{2}/, - _ = /\(\s*(.*)\s*\)/g, - x = /([\s\S]*?);/g, - w = /-self|flex-/g, - S = /[^]*?(:[rp][el]a[\w-]+)[^]*/, - E = /stretch|:\s*\w+\-(?:conte|avail)/, - k = /([^-])(image-set\()/, - A = 1, - T = 1, - C = 0, - O = 1, - P = [], - M = [], - L = 0, - D = null, - j = 0; - return ( - (u.use = function t(e) { - switch (e) { - case void 0: - case null: - L = M.length = 0; - break; - default: - switch (e.constructor) { - case Array: - for (var n = 0, r = e.length; n < r; ++n) t(e[n]); - break; - case Function: - M[L++] = e; - break; - case Boolean: - j = 0 | !!e; - } - } - return t; - }), - (u.set = s), - void 0 !== t && s(t), - u - ); - }, - s = n(153), - u = n.n(s), - l = /[A-Z]|^ms/g, - c = r(function(t) { - return t.replace(l, '-$&').toLowerCase(); - }), - f = function(t, e) { - return null == e || 'boolean' == typeof e - ? '' - : 1 === i[t] || 45 === t.charCodeAt(1) || isNaN(e) || 0 === e - ? e - : e + 'px'; - }, - d = function t(e) { - for (var n = e.length, r = 0, i = ''; r < n; r++) { - var o = e[r]; - if (null != o) { - var a = void 0; - switch (typeof o) { - case 'boolean': - break; - case 'function': - 0, (a = t([o()])); - break; - case 'object': - if (Array.isArray(o)) a = t(o); - else - for (var s in ((a = ''), o)) - o[s] && s && (a && (a += ' '), (a += s)); - break; - default: - a = o; - } - a && (i && (i += ' '), (i += a)); - } - } - return i; - }, - h = 'undefined' != typeof document; - function p(t) { - var e = document.createElement('style'); - return ( - e.setAttribute('data-emotion', t.key || ''), - void 0 !== t.nonce && e.setAttribute('nonce', t.nonce), - e.appendChild(document.createTextNode('')), - (void 0 !== t.container ? t.container : document.head).appendChild(e), - e - ); - } - var g = (function() { - function t(t) { - (this.isSpeedy = !0), - (this.tags = []), - (this.ctr = 0), - (this.opts = t); - } - var e = t.prototype; - return ( - (e.inject = function() { - if (this.injected) throw new Error('already injected!'); - (this.tags[0] = p(this.opts)), (this.injected = !0); - }), - (e.speedy = function(t) { - if (0 !== this.ctr) throw new Error('cannot change speedy now'); - this.isSpeedy = !!t; - }), - (e.insert = function(t, e) { - if (this.isSpeedy) { - var n = (function(t) { - if (t.sheet) return t.sheet; - for (var e = 0; e < document.styleSheets.length; e++) - if (document.styleSheets[e].ownerNode === t) - return document.styleSheets[e]; - })(this.tags[this.tags.length - 1]); - try { - n.insertRule(t, n.cssRules.length); - } catch (t) { - 0; - } - } else { - var r = p(this.opts); - this.tags.push(r), - r.appendChild(document.createTextNode(t + (e || ''))); - } - this.ctr++, this.ctr % 65e3 == 0 && this.tags.push(p(this.opts)); - }), - (e.flush = function() { - this.tags.forEach(function(t) { - return t.parentNode.removeChild(t); - }), - (this.tags = []), - (this.ctr = 0), - (this.injected = !1); - }), - t - ); - })(); - e.a = function(t, e) { - if (void 0 !== t.__SECRET_EMOTION__) return t.__SECRET_EMOTION__; - void 0 === e && (e = {}); - var n, - r, - i = e.key || 'css', - s = u()(function(t) { - (n += t), h && p.insert(t, m); - }); - void 0 !== e.prefix && (r = { prefix: e.prefix }); - var l = { registered: {}, inserted: {}, nonce: e.nonce, key: i }, - p = new g(e); - h && p.inject(); - var v = new a(r); - v.use(e.stylisPlugins)(s); - var m = ''; - function y(t, e) { - if (null == t) return ''; - switch (typeof t) { - case 'boolean': - return ''; - case 'function': - if (void 0 !== t.__emotion_styles) { - var n = t.toString(); - return n; - } - return y.call( - this, - void 0 === this ? t() : t(this.mergedProps, this.context), - e - ); - case 'object': - return w.call(this, t); - default: - var r = l.registered[t]; - return !1 === e && void 0 !== r ? r : t; - } - } - var b, - _, - x = new WeakMap(); - function w(t) { - if (x.has(t)) return x.get(t); - var e = ''; - return ( - Array.isArray(t) - ? t.forEach(function(t) { - e += y.call(this, t, !1); - }, this) - : Object.keys(t).forEach(function(n) { - 'object' != typeof t[n] - ? void 0 !== l.registered[t[n]] - ? (e += n + '{' + l.registered[t[n]] + '}') - : (e += c(n) + ':' + f(n, t[n]) + ';') - : Array.isArray(t[n]) && - 'string' == typeof t[n][0] && - void 0 === l.registered[t[n][0]] - ? t[n].forEach(function(t) { - e += c(n) + ':' + f(n, t) + ';'; - }) - : (e += n + '{' + y.call(this, t[n], !1) + '}'); - }, this), - x.set(t, e), - e - ); - } - var S = /label:\s*([^\s;\n{]+)\s*;/g, - E = function(t, e) { - return o(t + e) + e; - }, - k = function(t) { - var e = !0, - n = '', - r = ''; - null == t || void 0 === t.raw - ? ((e = !1), (n += y.call(this, t, !1))) - : (n += t[0]); - for ( - var i = arguments.length, o = new Array(i > 1 ? i - 1 : 0), a = 1; - a < i; - a++ - ) - o[a - 1] = arguments[a]; - return ( - o.forEach(function(r, i) { - (n += y.call(this, r, 46 === n.charCodeAt(n.length - 1))), - !0 === e && void 0 !== t[i + 1] && (n += t[i + 1]); - }, this), - (_ = n), - (n = n.replace(S, function(t, e) { - return (r += '-' + e), ''; - })), - (b = E(n, r)), - n - ); - }; - function A(t, e) { - void 0 === l.inserted[b] && ((n = ''), v(t, e), (l.inserted[b] = n)); - } - var T = function() { - var t = k.apply(this, arguments), - e = i + '-' + b; - return ( - void 0 === l.registered[e] && (l.registered[e] = _), - A('.' + e, t), - e - ); - }; - function C(t, e) { - var n = ''; - return ( - e.split(' ').forEach(function(e) { - void 0 !== l.registered[e] ? t.push(e) : (n += e + ' '); - }), - n - ); - } - function O(t, e) { - var n = [], - r = C(n, t); - return n.length < 2 ? t : r + T(n, e); - } - function P(t) { - l.inserted[t] = !0; - } - if (h) { - var M = document.querySelectorAll('[data-emotion-' + i + ']'); - Array.prototype.forEach.call(M, function(t) { - p.tags[0].parentNode.insertBefore(t, p.tags[0]), - t - .getAttribute('data-emotion-' + i) - .split(' ') - .forEach(P); - }); - } - var L = { - flush: function() { - h && (p.flush(), p.inject()), - (l.inserted = {}), - (l.registered = {}); - }, - hydrate: function(t) { - t.forEach(P); - }, - cx: function() { - for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++) - e[n] = arguments[n]; - return O(d(e)); - }, - merge: O, - getRegisteredStyles: C, - injectGlobal: function() { - var t = k.apply(this, arguments); - A('', t); - }, - keyframes: function() { - var t = k.apply(this, arguments), - e = 'animation-' + b; - return A('', '@keyframes ' + e + '{' + t + '}'), e; - }, - css: T, - sheet: p, - caches: l - }; - return (t.__SECRET_EMOTION__ = L), L; - }; - }, - , - function(t, e, n) { - 'use strict'; - /** @license React v16.13.1 - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ var r = n(89), - i = 'function' == typeof Symbol && Symbol.for, - o = i ? Symbol.for('react.element') : 60103, - a = i ? Symbol.for('react.portal') : 60106, - s = i ? Symbol.for('react.fragment') : 60107, - u = i ? Symbol.for('react.strict_mode') : 60108, - l = i ? Symbol.for('react.profiler') : 60114, - c = i ? Symbol.for('react.provider') : 60109, - f = i ? Symbol.for('react.context') : 60110, - d = i ? Symbol.for('react.forward_ref') : 60112, - h = i ? Symbol.for('react.suspense') : 60113, - p = i ? Symbol.for('react.memo') : 60115, - g = i ? Symbol.for('react.lazy') : 60116, - v = 'function' == typeof Symbol && Symbol.iterator; - function m(t) { - for ( - var e = 'https://reactjs.org/docs/error-decoder.html?invariant=' + t, - n = 1; - n < arguments.length; - n++ - ) - e += '&args[]=' + encodeURIComponent(arguments[n]); - return ( - 'Minified React error #' + - t + - '; visit ' + - e + - ' for the full message or use the non-minified dev environment for full errors and additional helpful warnings.' - ); - } - var y = { - isMounted: function() { - return !1; - }, - enqueueForceUpdate: function() {}, - enqueueReplaceState: function() {}, - enqueueSetState: function() {} - }, - b = {}; - function _(t, e, n) { - (this.props = t), - (this.context = e), - (this.refs = b), - (this.updater = n || y); - } - function x() {} - function w(t, e, n) { - (this.props = t), - (this.context = e), - (this.refs = b), - (this.updater = n || y); - } - (_.prototype.isReactComponent = {}), - (_.prototype.setState = function(t, e) { - if ('object' != typeof t && 'function' != typeof t && null != t) - throw Error(m(85)); - this.updater.enqueueSetState(this, t, e, 'setState'); - }), - (_.prototype.forceUpdate = function(t) { - this.updater.enqueueForceUpdate(this, t, 'forceUpdate'); - }), - (x.prototype = _.prototype); - var S = (w.prototype = new x()); - (S.constructor = w), r(S, _.prototype), (S.isPureReactComponent = !0); - var E = { current: null }, - k = Object.prototype.hasOwnProperty, - A = { key: !0, ref: !0, __self: !0, __source: !0 }; - function T(t, e, n) { - var r, - i = {}, - a = null, - s = null; - if (null != e) - for (r in (void 0 !== e.ref && (s = e.ref), - void 0 !== e.key && (a = '' + e.key), - e)) - k.call(e, r) && !A.hasOwnProperty(r) && (i[r] = e[r]); - var u = arguments.length - 2; - if (1 === u) i.children = n; - else if (1 < u) { - for (var l = Array(u), c = 0; c < u; c++) l[c] = arguments[c + 2]; - i.children = l; - } - if (t && t.defaultProps) - for (r in (u = t.defaultProps)) void 0 === i[r] && (i[r] = u[r]); - return { - $$typeof: o, - type: t, - key: a, - ref: s, - props: i, - _owner: E.current - }; - } - function C(t) { - return 'object' == typeof t && null !== t && t.$$typeof === o; - } - var O = /\/+/g, - P = []; - function M(t, e, n, r) { - if (P.length) { - var i = P.pop(); - return ( - (i.result = t), - (i.keyPrefix = e), - (i.func = n), - (i.context = r), - (i.count = 0), - i - ); - } - return { result: t, keyPrefix: e, func: n, context: r, count: 0 }; - } - function L(t) { - (t.result = null), - (t.keyPrefix = null), - (t.func = null), - (t.context = null), - (t.count = 0), - 10 > P.length && P.push(t); - } - function D(t, e, n) { - return null == t - ? 0 - : (function t(e, n, r, i) { - var s = typeof e; - ('undefined' !== s && 'boolean' !== s) || (e = null); - var u = !1; - if (null === e) u = !0; - else - switch (s) { - case 'string': - case 'number': - u = !0; - break; - case 'object': - switch (e.$$typeof) { - case o: - case a: - u = !0; - } - } - if (u) return r(i, e, '' === n ? '.' + j(e, 0) : n), 1; - if (((u = 0), (n = '' === n ? '.' : n + ':'), Array.isArray(e))) - for (var l = 0; l < e.length; l++) { - var c = n + j((s = e[l]), l); - u += t(s, c, r, i); - } - else if ( - (null === e || 'object' != typeof e - ? (c = null) - : (c = - 'function' == typeof (c = (v && e[v]) || e['@@iterator']) - ? c - : null), - 'function' == typeof c) - ) - for (e = c.call(e), l = 0; !(s = e.next()).done; ) - u += t((s = s.value), (c = n + j(s, l++)), r, i); - else if ('object' === s) - throw ((r = '' + e), - Error( - m( - 31, - '[object Object]' === r - ? 'object with keys {' + Object.keys(e).join(', ') + '}' - : r, - '' - ) - )); - return u; - })(t, '', e, n); - } - function j(t, e) { - return 'object' == typeof t && null !== t && null != t.key - ? (function(t) { - var e = { '=': '=0', ':': '=2' }; - return ( - '$' + - ('' + t).replace(/[=:]/g, function(t) { - return e[t]; - }) - ); - })(t.key) - : e.toString(36); - } - function R(t, e) { - t.func.call(t.context, e, t.count++); - } - function N(t, e, n) { - var r = t.result, - i = t.keyPrefix; - (t = t.func.call(t.context, e, t.count++)), - Array.isArray(t) - ? z(t, r, n, function(t) { - return t; - }) - : null != t && - (C(t) && - (t = (function(t, e) { - return { - $$typeof: o, - type: t.type, - key: e, - ref: t.ref, - props: t.props, - _owner: t._owner - }; - })( - t, - i + - (!t.key || (e && e.key === t.key) - ? '' - : ('' + t.key).replace(O, '$&/') + '/') + - n - )), - r.push(t)); - } - function z(t, e, n, r, i) { - var o = ''; - null != n && (o = ('' + n).replace(O, '$&/') + '/'), - D(t, N, (e = M(e, o, r, i))), - L(e); - } - var I = { current: null }; - function F() { - var t = I.current; - if (null === t) throw Error(m(321)); - return t; - } - var V = { - ReactCurrentDispatcher: I, - ReactCurrentBatchConfig: { suspense: null }, - ReactCurrentOwner: E, - IsSomeRendererActing: { current: !1 }, - assign: r - }; - (e.Children = { - map: function(t, e, n) { - if (null == t) return t; - var r = []; - return z(t, r, null, e, n), r; - }, - forEach: function(t, e, n) { - if (null == t) return t; - D(t, R, (e = M(null, null, e, n))), L(e); - }, - count: function(t) { - return D( - t, - function() { - return null; - }, - null - ); - }, - toArray: function(t) { - var e = []; - return ( - z(t, e, null, function(t) { - return t; - }), - e - ); - }, - only: function(t) { - if (!C(t)) throw Error(m(143)); - return t; - } - }), - (e.Component = _), - (e.Fragment = s), - (e.Profiler = l), - (e.PureComponent = w), - (e.StrictMode = u), - (e.Suspense = h), - (e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = V), - (e.cloneElement = function(t, e, n) { - if (null == t) throw Error(m(267, t)); - var i = r({}, t.props), - a = t.key, - s = t.ref, - u = t._owner; - if (null != e) { - if ( - (void 0 !== e.ref && ((s = e.ref), (u = E.current)), - void 0 !== e.key && (a = '' + e.key), - t.type && t.type.defaultProps) - ) - var l = t.type.defaultProps; - for (c in e) - k.call(e, c) && - !A.hasOwnProperty(c) && - (i[c] = void 0 === e[c] && void 0 !== l ? l[c] : e[c]); - } - var c = arguments.length - 2; - if (1 === c) i.children = n; - else if (1 < c) { - l = Array(c); - for (var f = 0; f < c; f++) l[f] = arguments[f + 2]; - i.children = l; - } - return { - $$typeof: o, - type: t.type, - key: a, - ref: s, - props: i, - _owner: u - }; - }), - (e.createContext = function(t, e) { - return ( - void 0 === e && (e = null), - ((t = { - $$typeof: f, - _calculateChangedBits: e, - _currentValue: t, - _currentValue2: t, - _threadCount: 0, - Provider: null, - Consumer: null - }).Provider = { $$typeof: c, _context: t }), - (t.Consumer = t) - ); - }), - (e.createElement = T), - (e.createFactory = function(t) { - var e = T.bind(null, t); - return (e.type = t), e; - }), - (e.createRef = function() { - return { current: null }; - }), - (e.forwardRef = function(t) { - return { $$typeof: d, render: t }; - }), - (e.isValidElement = C), - (e.lazy = function(t) { - return { $$typeof: g, _ctor: t, _status: -1, _result: null }; - }), - (e.memo = function(t, e) { - return { $$typeof: p, type: t, compare: void 0 === e ? null : e }; - }), - (e.useCallback = function(t, e) { - return F().useCallback(t, e); - }), - (e.useContext = function(t, e) { - return F().useContext(t, e); - }), - (e.useDebugValue = function() {}), - (e.useEffect = function(t, e) { - return F().useEffect(t, e); - }), - (e.useImperativeHandle = function(t, e, n) { - return F().useImperativeHandle(t, e, n); - }), - (e.useLayoutEffect = function(t, e) { - return F().useLayoutEffect(t, e); - }), - (e.useMemo = function(t, e) { - return F().useMemo(t, e); - }), - (e.useReducer = function(t, e, n) { - return F().useReducer(t, e, n); - }), - (e.useRef = function(t) { - return F().useRef(t); - }), - (e.useState = function(t) { - return F().useState(t); - }), - (e.version = '16.13.1'); - }, - function(t, e, n) { - 'use strict'; - /** @license React v16.13.1 - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ var r = n(0), - i = n(89), - o = n(166); - function a(t) { - for ( - var e = 'https://reactjs.org/docs/error-decoder.html?invariant=' + t, - n = 1; - n < arguments.length; - n++ - ) - e += '&args[]=' + encodeURIComponent(arguments[n]); - return ( - 'Minified React error #' + - t + - '; visit ' + - e + - ' for the full message or use the non-minified dev environment for full errors and additional helpful warnings.' - ); - } - if (!r) throw Error(a(227)); - function s(t, e, n, r, i, o, a, s, u) { - var l = Array.prototype.slice.call(arguments, 3); - try { - e.apply(n, l); - } catch (t) { - this.onError(t); - } - } - var u = !1, - l = null, - c = !1, - f = null, - d = { - onError: function(t) { - (u = !0), (l = t); - } - }; - function h(t, e, n, r, i, o, a, c, f) { - (u = !1), (l = null), s.apply(d, arguments); - } - var p = null, - g = null, - v = null; - function m(t, e, n) { - var r = t.type || 'unknown-event'; - (t.currentTarget = v(n)), - (function(t, e, n, r, i, o, s, d, p) { - if ((h.apply(this, arguments), u)) { - if (!u) throw Error(a(198)); - var g = l; - (u = !1), (l = null), c || ((c = !0), (f = g)); - } - })(r, e, void 0, t), - (t.currentTarget = null); - } - var y = null, - b = {}; - function _() { - if (y) - for (var t in b) { - var e = b[t], - n = y.indexOf(t); - if (!(-1 < n)) throw Error(a(96, t)); - if (!w[n]) { - if (!e.extractEvents) throw Error(a(97, t)); - for (var r in ((w[n] = e), (n = e.eventTypes))) { - var i = void 0, - o = n[r], - s = e, - u = r; - if (S.hasOwnProperty(u)) throw Error(a(99, u)); - S[u] = o; - var l = o.phasedRegistrationNames; - if (l) { - for (i in l) l.hasOwnProperty(i) && x(l[i], s, u); - i = !0; - } else - o.registrationName - ? (x(o.registrationName, s, u), (i = !0)) - : (i = !1); - if (!i) throw Error(a(98, r, t)); - } - } - } - } - function x(t, e, n) { - if (E[t]) throw Error(a(100, t)); - (E[t] = e), (k[t] = e.eventTypes[n].dependencies); - } - var w = [], - S = {}, - E = {}, - k = {}; - function A(t) { - var e, - n = !1; - for (e in t) - if (t.hasOwnProperty(e)) { - var r = t[e]; - if (!b.hasOwnProperty(e) || b[e] !== r) { - if (b[e]) throw Error(a(102, e)); - (b[e] = r), (n = !0); - } - } - n && _(); - } - var T = !( - 'undefined' == typeof window || - void 0 === window.document || - void 0 === window.document.createElement - ), - C = null, - O = null, - P = null; - function M(t) { - if ((t = g(t))) { - if ('function' != typeof C) throw Error(a(280)); - var e = t.stateNode; - e && ((e = p(e)), C(t.stateNode, t.type, e)); - } - } - function L(t) { - O ? (P ? P.push(t) : (P = [t])) : (O = t); - } - function D() { - if (O) { - var t = O, - e = P; - if (((P = O = null), M(t), e)) for (t = 0; t < e.length; t++) M(e[t]); - } - } - function j(t, e) { - return t(e); - } - function R(t, e, n, r, i) { - return t(e, n, r, i); - } - function N() {} - var z = j, - I = !1, - F = !1; - function V() { - (null === O && null === P) || (N(), D()); - } - function B(t, e, n) { - if (F) return t(e, n); - F = !0; - try { - return z(t, e, n); - } finally { - (F = !1), V(); - } - } - var G = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, - H = Object.prototype.hasOwnProperty, - U = {}, - q = {}; - function W(t, e, n, r, i, o) { - (this.acceptsBooleans = 2 === e || 3 === e || 4 === e), - (this.attributeName = r), - (this.attributeNamespace = i), - (this.mustUseProperty = n), - (this.propertyName = t), - (this.type = e), - (this.sanitizeURL = o); - } - var X = {}; - 'children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style' - .split(' ') - .forEach(function(t) { - X[t] = new W(t, 0, !1, t, null, !1); - }), - [ - ['acceptCharset', 'accept-charset'], - ['className', 'class'], - ['htmlFor', 'for'], - ['httpEquiv', 'http-equiv'] - ].forEach(function(t) { - var e = t[0]; - X[e] = new W(e, 1, !1, t[1], null, !1); - }), - ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach( - function(t) { - X[t] = new W(t, 2, !1, t.toLowerCase(), null, !1); - } - ), - [ - 'autoReverse', - 'externalResourcesRequired', - 'focusable', - 'preserveAlpha' - ].forEach(function(t) { - X[t] = new W(t, 2, !1, t, null, !1); - }), - 'allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope' - .split(' ') - .forEach(function(t) { - X[t] = new W(t, 3, !1, t.toLowerCase(), null, !1); - }), - ['checked', 'multiple', 'muted', 'selected'].forEach(function(t) { - X[t] = new W(t, 3, !0, t, null, !1); - }), - ['capture', 'download'].forEach(function(t) { - X[t] = new W(t, 4, !1, t, null, !1); - }), - ['cols', 'rows', 'size', 'span'].forEach(function(t) { - X[t] = new W(t, 6, !1, t, null, !1); - }), - ['rowSpan', 'start'].forEach(function(t) { - X[t] = new W(t, 5, !1, t.toLowerCase(), null, !1); - }); - var Y = /[\-:]([a-z])/g; - function $(t) { - return t[1].toUpperCase(); - } - 'accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height' - .split(' ') - .forEach(function(t) { - var e = t.replace(Y, $); - X[e] = new W(e, 1, !1, t, null, !1); - }), - 'xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type' - .split(' ') - .forEach(function(t) { - var e = t.replace(Y, $); - X[e] = new W(e, 1, !1, t, 'http://www.w3.org/1999/xlink', !1); - }), - ['xml:base', 'xml:lang', 'xml:space'].forEach(function(t) { - var e = t.replace(Y, $); - X[e] = new W(e, 1, !1, t, 'http://www.w3.org/XML/1998/namespace', !1); - }), - ['tabIndex', 'crossOrigin'].forEach(function(t) { - X[t] = new W(t, 1, !1, t.toLowerCase(), null, !1); - }), - (X.xlinkHref = new W( - 'xlinkHref', - 1, - !1, - 'xlink:href', - 'http://www.w3.org/1999/xlink', - !0 - )), - ['src', 'href', 'action', 'formAction'].forEach(function(t) { - X[t] = new W(t, 1, !1, t.toLowerCase(), null, !0); - }); - var Q = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; - function K(t, e, n, r) { - var i = X.hasOwnProperty(e) ? X[e] : null; - (null !== i - ? 0 === i.type - : !r && - 2 < e.length && - ('o' === e[0] || 'O' === e[0]) && - ('n' === e[1] || 'N' === e[1])) || - ((function(t, e, n, r) { - if ( - null == e || - (function(t, e, n, r) { - if (null !== n && 0 === n.type) return !1; - switch (typeof e) { - case 'function': - case 'symbol': - return !0; - case 'boolean': - return ( - !r && - (null !== n - ? !n.acceptsBooleans - : 'data-' !== (t = t.toLowerCase().slice(0, 5)) && - 'aria-' !== t) - ); - default: - return !1; - } - })(t, e, n, r) - ) - return !0; - if (r) return !1; - if (null !== n) - switch (n.type) { - case 3: - return !e; - case 4: - return !1 === e; - case 5: - return isNaN(e); - case 6: - return isNaN(e) || 1 > e; - } - return !1; - })(e, n, i, r) && (n = null), - r || null === i - ? (function(t) { - return ( - !!H.call(q, t) || - (!H.call(U, t) && - (G.test(t) ? (q[t] = !0) : ((U[t] = !0), !1))) - ); - })(e) && - (null === n ? t.removeAttribute(e) : t.setAttribute(e, '' + n)) - : i.mustUseProperty - ? (t[i.propertyName] = null === n ? 3 !== i.type && '' : n) - : ((e = i.attributeName), - (r = i.attributeNamespace), - null === n - ? t.removeAttribute(e) - : ((n = - 3 === (i = i.type) || (4 === i && !0 === n) ? '' : '' + n), - r ? t.setAttributeNS(r, e, n) : t.setAttribute(e, n)))); - } - Q.hasOwnProperty('ReactCurrentDispatcher') || - (Q.ReactCurrentDispatcher = { current: null }), - Q.hasOwnProperty('ReactCurrentBatchConfig') || - (Q.ReactCurrentBatchConfig = { suspense: null }); - var Z = /^(.*)[\\\/]/, - J = 'function' == typeof Symbol && Symbol.for, - tt = J ? Symbol.for('react.element') : 60103, - et = J ? Symbol.for('react.portal') : 60106, - nt = J ? Symbol.for('react.fragment') : 60107, - rt = J ? Symbol.for('react.strict_mode') : 60108, - it = J ? Symbol.for('react.profiler') : 60114, - ot = J ? Symbol.for('react.provider') : 60109, - at = J ? Symbol.for('react.context') : 60110, - st = J ? Symbol.for('react.concurrent_mode') : 60111, - ut = J ? Symbol.for('react.forward_ref') : 60112, - lt = J ? Symbol.for('react.suspense') : 60113, - ct = J ? Symbol.for('react.suspense_list') : 60120, - ft = J ? Symbol.for('react.memo') : 60115, - dt = J ? Symbol.for('react.lazy') : 60116, - ht = J ? Symbol.for('react.block') : 60121, - pt = 'function' == typeof Symbol && Symbol.iterator; - function gt(t) { - return null === t || 'object' != typeof t - ? null - : 'function' == typeof (t = (pt && t[pt]) || t['@@iterator']) - ? t - : null; - } - function vt(t) { - if (null == t) return null; - if ('function' == typeof t) return t.displayName || t.name || null; - if ('string' == typeof t) return t; - switch (t) { - case nt: - return 'Fragment'; - case et: - return 'Portal'; - case it: - return 'Profiler'; - case rt: - return 'StrictMode'; - case lt: - return 'Suspense'; - case ct: - return 'SuspenseList'; - } - if ('object' == typeof t) - switch (t.$$typeof) { - case at: - return 'Context.Consumer'; - case ot: - return 'Context.Provider'; - case ut: - var e = t.render; - return ( - (e = e.displayName || e.name || ''), - t.displayName || - ('' !== e ? 'ForwardRef(' + e + ')' : 'ForwardRef') - ); - case ft: - return vt(t.type); - case ht: - return vt(t.render); - case dt: - if ((t = 1 === t._status ? t._result : null)) return vt(t); - } - return null; - } - function mt(t) { - var e = ''; - do { - t: switch (t.tag) { - case 3: - case 4: - case 6: - case 7: - case 10: - case 9: - var n = ''; - break t; - default: - var r = t._debugOwner, - i = t._debugSource, - o = vt(t.type); - (n = null), - r && (n = vt(r.type)), - (r = o), - (o = ''), - i - ? (o = - ' (at ' + - i.fileName.replace(Z, '') + - ':' + - i.lineNumber + - ')') - : n && (o = ' (created by ' + n + ')'), - (n = '\n in ' + (r || 'Unknown') + o); - } - (e += n), (t = t.return); - } while (t); - return e; - } - function yt(t) { - switch (typeof t) { - case 'boolean': - case 'number': - case 'object': - case 'string': - case 'undefined': - return t; - default: - return ''; - } - } - function bt(t) { - var e = t.type; - return ( - (t = t.nodeName) && - 'input' === t.toLowerCase() && - ('checkbox' === e || 'radio' === e) - ); - } - function _t(t) { - t._valueTracker || - (t._valueTracker = (function(t) { - var e = bt(t) ? 'checked' : 'value', - n = Object.getOwnPropertyDescriptor(t.constructor.prototype, e), - r = '' + t[e]; - if ( - !t.hasOwnProperty(e) && - void 0 !== n && - 'function' == typeof n.get && - 'function' == typeof n.set - ) { - var i = n.get, - o = n.set; - return ( - Object.defineProperty(t, e, { - configurable: !0, - get: function() { - return i.call(this); - }, - set: function(t) { - (r = '' + t), o.call(this, t); - } - }), - Object.defineProperty(t, e, { enumerable: n.enumerable }), - { - getValue: function() { - return r; - }, - setValue: function(t) { - r = '' + t; - }, - stopTracking: function() { - (t._valueTracker = null), delete t[e]; - } - } - ); - } - })(t)); - } - function xt(t) { - if (!t) return !1; - var e = t._valueTracker; - if (!e) return !0; - var n = e.getValue(), - r = ''; - return ( - t && (r = bt(t) ? (t.checked ? 'true' : 'false') : t.value), - (t = r) !== n && (e.setValue(t), !0) - ); - } - function wt(t, e) { - var n = e.checked; - return i({}, e, { - defaultChecked: void 0, - defaultValue: void 0, - value: void 0, - checked: null != n ? n : t._wrapperState.initialChecked - }); - } - function St(t, e) { - var n = null == e.defaultValue ? '' : e.defaultValue, - r = null != e.checked ? e.checked : e.defaultChecked; - (n = yt(null != e.value ? e.value : n)), - (t._wrapperState = { - initialChecked: r, - initialValue: n, - controlled: - 'checkbox' === e.type || 'radio' === e.type - ? null != e.checked - : null != e.value - }); - } - function Et(t, e) { - null != (e = e.checked) && K(t, 'checked', e, !1); - } - function kt(t, e) { - Et(t, e); - var n = yt(e.value), - r = e.type; - if (null != n) - 'number' === r - ? ((0 === n && '' === t.value) || t.value != n) && - (t.value = '' + n) - : t.value !== '' + n && (t.value = '' + n); - else if ('submit' === r || 'reset' === r) - return void t.removeAttribute('value'); - e.hasOwnProperty('value') - ? Tt(t, e.type, n) - : e.hasOwnProperty('defaultValue') && - Tt(t, e.type, yt(e.defaultValue)), - null == e.checked && - null != e.defaultChecked && - (t.defaultChecked = !!e.defaultChecked); - } - function At(t, e, n) { - if (e.hasOwnProperty('value') || e.hasOwnProperty('defaultValue')) { - var r = e.type; - if ( - !( - ('submit' !== r && 'reset' !== r) || - (void 0 !== e.value && null !== e.value) - ) - ) - return; - (e = '' + t._wrapperState.initialValue), - n || e === t.value || (t.value = e), - (t.defaultValue = e); - } - '' !== (n = t.name) && (t.name = ''), - (t.defaultChecked = !!t._wrapperState.initialChecked), - '' !== n && (t.name = n); - } - function Tt(t, e, n) { - ('number' === e && t.ownerDocument.activeElement === t) || - (null == n - ? (t.defaultValue = '' + t._wrapperState.initialValue) - : t.defaultValue !== '' + n && (t.defaultValue = '' + n)); - } - function Ct(t, e) { - return ( - (t = i({ children: void 0 }, e)), - (e = (function(t) { - var e = ''; - return ( - r.Children.forEach(t, function(t) { - null != t && (e += t); - }), - e - ); - })(e.children)) && (t.children = e), - t - ); - } - function Ot(t, e, n, r) { - if (((t = t.options), e)) { - e = {}; - for (var i = 0; i < n.length; i++) e['$' + n[i]] = !0; - for (n = 0; n < t.length; n++) - (i = e.hasOwnProperty('$' + t[n].value)), - t[n].selected !== i && (t[n].selected = i), - i && r && (t[n].defaultSelected = !0); - } else { - for (n = '' + yt(n), e = null, i = 0; i < t.length; i++) { - if (t[i].value === n) - return ( - (t[i].selected = !0), void (r && (t[i].defaultSelected = !0)) - ); - null !== e || t[i].disabled || (e = t[i]); - } - null !== e && (e.selected = !0); - } - } - function Pt(t, e) { - if (null != e.dangerouslySetInnerHTML) throw Error(a(91)); - return i({}, e, { - value: void 0, - defaultValue: void 0, - children: '' + t._wrapperState.initialValue - }); - } - function Mt(t, e) { - var n = e.value; - if (null == n) { - if (((n = e.children), (e = e.defaultValue), null != n)) { - if (null != e) throw Error(a(92)); - if (Array.isArray(n)) { - if (!(1 >= n.length)) throw Error(a(93)); - n = n[0]; - } - e = n; - } - null == e && (e = ''), (n = e); - } - t._wrapperState = { initialValue: yt(n) }; - } - function Lt(t, e) { - var n = yt(e.value), - r = yt(e.defaultValue); - null != n && - ((n = '' + n) !== t.value && (t.value = n), - null == e.defaultValue && - t.defaultValue !== n && - (t.defaultValue = n)), - null != r && (t.defaultValue = '' + r); - } - function Dt(t) { - var e = t.textContent; - e === t._wrapperState.initialValue && - '' !== e && - null !== e && - (t.value = e); - } - var jt = 'http://www.w3.org/1999/xhtml', - Rt = 'http://www.w3.org/2000/svg'; - function Nt(t) { - switch (t) { - case 'svg': - return 'http://www.w3.org/2000/svg'; - case 'math': - return 'http://www.w3.org/1998/Math/MathML'; - default: - return 'http://www.w3.org/1999/xhtml'; - } - } - function zt(t, e) { - return null == t || 'http://www.w3.org/1999/xhtml' === t - ? Nt(e) - : 'http://www.w3.org/2000/svg' === t && 'foreignObject' === e - ? 'http://www.w3.org/1999/xhtml' - : t; - } - var It, - Ft = (function(t) { - return 'undefined' != typeof MSApp && MSApp.execUnsafeLocalFunction - ? function(e, n, r, i) { - MSApp.execUnsafeLocalFunction(function() { - return t(e, n); - }); - } - : t; - })(function(t, e) { - if (t.namespaceURI !== Rt || 'innerHTML' in t) t.innerHTML = e; - else { - for ( - (It = It || document.createElement('div')).innerHTML = - '' + e.valueOf().toString() + '', - e = It.firstChild; - t.firstChild; - - ) - t.removeChild(t.firstChild); - for (; e.firstChild; ) t.appendChild(e.firstChild); - } - }); - function Vt(t, e) { - if (e) { - var n = t.firstChild; - if (n && n === t.lastChild && 3 === n.nodeType) - return void (n.nodeValue = e); - } - t.textContent = e; - } - function Bt(t, e) { - var n = {}; - return ( - (n[t.toLowerCase()] = e.toLowerCase()), - (n['Webkit' + t] = 'webkit' + e), - (n['Moz' + t] = 'moz' + e), - n - ); - } - var Gt = { - animationend: Bt('Animation', 'AnimationEnd'), - animationiteration: Bt('Animation', 'AnimationIteration'), - animationstart: Bt('Animation', 'AnimationStart'), - transitionend: Bt('Transition', 'TransitionEnd') - }, - Ht = {}, - Ut = {}; - function qt(t) { - if (Ht[t]) return Ht[t]; - if (!Gt[t]) return t; - var e, - n = Gt[t]; - for (e in n) if (n.hasOwnProperty(e) && e in Ut) return (Ht[t] = n[e]); - return t; - } - T && - ((Ut = document.createElement('div').style), - 'AnimationEvent' in window || - (delete Gt.animationend.animation, - delete Gt.animationiteration.animation, - delete Gt.animationstart.animation), - 'TransitionEvent' in window || delete Gt.transitionend.transition); - var Wt = qt('animationend'), - Xt = qt('animationiteration'), - Yt = qt('animationstart'), - $t = qt('transitionend'), - Qt = 'abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting'.split( - ' ' - ), - Kt = new ('function' == typeof WeakMap ? WeakMap : Map)(); - function Zt(t) { - var e = Kt.get(t); - return void 0 === e && ((e = new Map()), Kt.set(t, e)), e; - } - function Jt(t) { - var e = t, - n = t; - if (t.alternate) for (; e.return; ) e = e.return; - else { - t = e; - do { - 0 != (1026 & (e = t).effectTag) && (n = e.return), (t = e.return); - } while (t); - } - return 3 === e.tag ? n : null; - } - function te(t) { - if (13 === t.tag) { - var e = t.memoizedState; - if ( - (null === e && null !== (t = t.alternate) && (e = t.memoizedState), - null !== e) - ) - return e.dehydrated; - } - return null; - } - function ee(t) { - if (Jt(t) !== t) throw Error(a(188)); - } - function ne(t) { - if ( - !(t = (function(t) { - var e = t.alternate; - if (!e) { - if (null === (e = Jt(t))) throw Error(a(188)); - return e !== t ? null : t; - } - for (var n = t, r = e; ; ) { - var i = n.return; - if (null === i) break; - var o = i.alternate; - if (null === o) { - if (null !== (r = i.return)) { - n = r; - continue; - } - break; - } - if (i.child === o.child) { - for (o = i.child; o; ) { - if (o === n) return ee(i), t; - if (o === r) return ee(i), e; - o = o.sibling; - } - throw Error(a(188)); - } - if (n.return !== r.return) (n = i), (r = o); - else { - for (var s = !1, u = i.child; u; ) { - if (u === n) { - (s = !0), (n = i), (r = o); - break; - } - if (u === r) { - (s = !0), (r = i), (n = o); - break; - } - u = u.sibling; - } - if (!s) { - for (u = o.child; u; ) { - if (u === n) { - (s = !0), (n = o), (r = i); - break; - } - if (u === r) { - (s = !0), (r = o), (n = i); - break; - } - u = u.sibling; - } - if (!s) throw Error(a(189)); - } - } - if (n.alternate !== r) throw Error(a(190)); - } - if (3 !== n.tag) throw Error(a(188)); - return n.stateNode.current === n ? t : e; - })(t)) - ) - return null; - for (var e = t; ; ) { - if (5 === e.tag || 6 === e.tag) return e; - if (e.child) (e.child.return = e), (e = e.child); - else { - if (e === t) break; - for (; !e.sibling; ) { - if (!e.return || e.return === t) return null; - e = e.return; - } - (e.sibling.return = e.return), (e = e.sibling); - } - } - return null; - } - function re(t, e) { - if (null == e) throw Error(a(30)); - return null == t - ? e - : Array.isArray(t) - ? Array.isArray(e) - ? (t.push.apply(t, e), t) - : (t.push(e), t) - : Array.isArray(e) - ? [t].concat(e) - : [t, e]; - } - function ie(t, e, n) { - Array.isArray(t) ? t.forEach(e, n) : t && e.call(n, t); - } - var oe = null; - function ae(t) { - if (t) { - var e = t._dispatchListeners, - n = t._dispatchInstances; - if (Array.isArray(e)) - for (var r = 0; r < e.length && !t.isPropagationStopped(); r++) - m(t, e[r], n[r]); - else e && m(t, e, n); - (t._dispatchListeners = null), - (t._dispatchInstances = null), - t.isPersistent() || t.constructor.release(t); - } - } - function se(t) { - if ((null !== t && (oe = re(oe, t)), (t = oe), (oe = null), t)) { - if ((ie(t, ae), oe)) throw Error(a(95)); - if (c) throw ((t = f), (c = !1), (f = null), t); - } - } - function ue(t) { - return ( - (t = t.target || t.srcElement || window).correspondingUseElement && - (t = t.correspondingUseElement), - 3 === t.nodeType ? t.parentNode : t - ); - } - function le(t) { - if (!T) return !1; - var e = (t = 'on' + t) in document; - return ( - e || - ((e = document.createElement('div')).setAttribute(t, 'return;'), - (e = 'function' == typeof e[t])), - e - ); - } - var ce = []; - function fe(t) { - (t.topLevelType = null), - (t.nativeEvent = null), - (t.targetInst = null), - (t.ancestors.length = 0), - 10 > ce.length && ce.push(t); - } - function de(t, e, n, r) { - if (ce.length) { - var i = ce.pop(); - return ( - (i.topLevelType = t), - (i.eventSystemFlags = r), - (i.nativeEvent = e), - (i.targetInst = n), - i - ); - } - return { - topLevelType: t, - eventSystemFlags: r, - nativeEvent: e, - targetInst: n, - ancestors: [] - }; - } - function he(t) { - var e = t.targetInst, - n = e; - do { - if (!n) { - t.ancestors.push(n); - break; - } - var r = n; - if (3 === r.tag) r = r.stateNode.containerInfo; - else { - for (; r.return; ) r = r.return; - r = 3 !== r.tag ? null : r.stateNode.containerInfo; - } - if (!r) break; - (5 !== (e = n.tag) && 6 !== e) || t.ancestors.push(n), (n = Tn(r)); - } while (n); - for (n = 0; n < t.ancestors.length; n++) { - e = t.ancestors[n]; - var i = ue(t.nativeEvent); - r = t.topLevelType; - var o = t.nativeEvent, - a = t.eventSystemFlags; - 0 === n && (a |= 64); - for (var s = null, u = 0; u < w.length; u++) { - var l = w[u]; - l && (l = l.extractEvents(r, e, o, i, a)) && (s = re(s, l)); - } - se(s); - } - } - function pe(t, e, n) { - if (!n.has(t)) { - switch (t) { - case 'scroll': - Ye(e, 'scroll', !0); - break; - case 'focus': - case 'blur': - Ye(e, 'focus', !0), - Ye(e, 'blur', !0), - n.set('blur', null), - n.set('focus', null); - break; - case 'cancel': - case 'close': - le(t) && Ye(e, t, !0); - break; - case 'invalid': - case 'submit': - case 'reset': - break; - default: - -1 === Qt.indexOf(t) && Xe(t, e); - } - n.set(t, null); - } - } - var ge, - ve, - me, - ye = !1, - be = [], - _e = null, - xe = null, - we = null, - Se = new Map(), - Ee = new Map(), - ke = [], - Ae = 'mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit'.split( - ' ' - ), - Te = 'focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture'.split( - ' ' - ); - function Ce(t, e, n, r, i) { - return { - blockedOn: t, - topLevelType: e, - eventSystemFlags: 32 | n, - nativeEvent: i, - container: r - }; - } - function Oe(t, e) { - switch (t) { - case 'focus': - case 'blur': - _e = null; - break; - case 'dragenter': - case 'dragleave': - xe = null; - break; - case 'mouseover': - case 'mouseout': - we = null; - break; - case 'pointerover': - case 'pointerout': - Se.delete(e.pointerId); - break; - case 'gotpointercapture': - case 'lostpointercapture': - Ee.delete(e.pointerId); - } - } - function Pe(t, e, n, r, i, o) { - return null === t || t.nativeEvent !== o - ? ((t = Ce(e, n, r, i, o)), - null !== e && null !== (e = Cn(e)) && ve(e), - t) - : ((t.eventSystemFlags |= r), t); - } - function Me(t) { - var e = Tn(t.target); - if (null !== e) { - var n = Jt(e); - if (null !== n) - if (13 === (e = n.tag)) { - if (null !== (e = te(n))) - return ( - (t.blockedOn = e), - void o.unstable_runWithPriority(t.priority, function() { - me(n); - }) - ); - } else if (3 === e && n.stateNode.hydrate) - return void (t.blockedOn = - 3 === n.tag ? n.stateNode.containerInfo : null); - } - t.blockedOn = null; - } - function Le(t) { - if (null !== t.blockedOn) return !1; - var e = Ze( - t.topLevelType, - t.eventSystemFlags, - t.container, - t.nativeEvent - ); - if (null !== e) { - var n = Cn(e); - return null !== n && ve(n), (t.blockedOn = e), !1; - } - return !0; - } - function De(t, e, n) { - Le(t) && n.delete(e); - } - function je() { - for (ye = !1; 0 < be.length; ) { - var t = be[0]; - if (null !== t.blockedOn) { - null !== (t = Cn(t.blockedOn)) && ge(t); - break; - } - var e = Ze( - t.topLevelType, - t.eventSystemFlags, - t.container, - t.nativeEvent - ); - null !== e ? (t.blockedOn = e) : be.shift(); - } - null !== _e && Le(_e) && (_e = null), - null !== xe && Le(xe) && (xe = null), - null !== we && Le(we) && (we = null), - Se.forEach(De), - Ee.forEach(De); - } - function Re(t, e) { - t.blockedOn === e && - ((t.blockedOn = null), - ye || - ((ye = !0), - o.unstable_scheduleCallback(o.unstable_NormalPriority, je))); - } - function Ne(t) { - function e(e) { - return Re(e, t); - } - if (0 < be.length) { - Re(be[0], t); - for (var n = 1; n < be.length; n++) { - var r = be[n]; - r.blockedOn === t && (r.blockedOn = null); - } - } - for ( - null !== _e && Re(_e, t), - null !== xe && Re(xe, t), - null !== we && Re(we, t), - Se.forEach(e), - Ee.forEach(e), - n = 0; - n < ke.length; - n++ - ) - (r = ke[n]).blockedOn === t && (r.blockedOn = null); - for (; 0 < ke.length && null === (n = ke[0]).blockedOn; ) - Me(n), null === n.blockedOn && ke.shift(); - } - var ze = {}, - Ie = new Map(), - Fe = new Map(), - Ve = [ - 'abort', - 'abort', - Wt, - 'animationEnd', - Xt, - 'animationIteration', - Yt, - 'animationStart', - 'canplay', - 'canPlay', - 'canplaythrough', - 'canPlayThrough', - 'durationchange', - 'durationChange', - 'emptied', - 'emptied', - 'encrypted', - 'encrypted', - 'ended', - 'ended', - 'error', - 'error', - 'gotpointercapture', - 'gotPointerCapture', - 'load', - 'load', - 'loadeddata', - 'loadedData', - 'loadedmetadata', - 'loadedMetadata', - 'loadstart', - 'loadStart', - 'lostpointercapture', - 'lostPointerCapture', - 'playing', - 'playing', - 'progress', - 'progress', - 'seeking', - 'seeking', - 'stalled', - 'stalled', - 'suspend', - 'suspend', - 'timeupdate', - 'timeUpdate', - $t, - 'transitionEnd', - 'waiting', - 'waiting' - ]; - function Be(t, e) { - for (var n = 0; n < t.length; n += 2) { - var r = t[n], - i = t[n + 1], - o = 'on' + (i[0].toUpperCase() + i.slice(1)); - (o = { - phasedRegistrationNames: { bubbled: o, captured: o + 'Capture' }, - dependencies: [r], - eventPriority: e - }), - Fe.set(r, e), - Ie.set(r, o), - (ze[i] = o); - } - } - Be( - 'blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange'.split( - ' ' - ), - 0 - ), - Be( - 'drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel'.split( - ' ' - ), - 1 - ), - Be(Ve, 2); - for ( - var Ge = 'change selectionchange textInput compositionstart compositionend compositionupdate'.split( - ' ' - ), - He = 0; - He < Ge.length; - He++ - ) - Fe.set(Ge[He], 0); - var Ue = o.unstable_UserBlockingPriority, - qe = o.unstable_runWithPriority, - We = !0; - function Xe(t, e) { - Ye(e, t, !1); - } - function Ye(t, e, n) { - var r = Fe.get(e); - switch (void 0 === r ? 2 : r) { - case 0: - r = $e.bind(null, e, 1, t); - break; - case 1: - r = Qe.bind(null, e, 1, t); - break; - default: - r = Ke.bind(null, e, 1, t); - } - n ? t.addEventListener(e, r, !0) : t.addEventListener(e, r, !1); - } - function $e(t, e, n, r) { - I || N(); - var i = Ke, - o = I; - I = !0; - try { - R(i, t, e, n, r); - } finally { - (I = o) || V(); - } - } - function Qe(t, e, n, r) { - qe(Ue, Ke.bind(null, t, e, n, r)); - } - function Ke(t, e, n, r) { - if (We) - if (0 < be.length && -1 < Ae.indexOf(t)) - (t = Ce(null, t, e, n, r)), be.push(t); - else { - var i = Ze(t, e, n, r); - if (null === i) Oe(t, r); - else if (-1 < Ae.indexOf(t)) (t = Ce(i, t, e, n, r)), be.push(t); - else if ( - !(function(t, e, n, r, i) { - switch (e) { - case 'focus': - return (_e = Pe(_e, t, e, n, r, i)), !0; - case 'dragenter': - return (xe = Pe(xe, t, e, n, r, i)), !0; - case 'mouseover': - return (we = Pe(we, t, e, n, r, i)), !0; - case 'pointerover': - var o = i.pointerId; - return Se.set(o, Pe(Se.get(o) || null, t, e, n, r, i)), !0; - case 'gotpointercapture': - return ( - (o = i.pointerId), - Ee.set(o, Pe(Ee.get(o) || null, t, e, n, r, i)), - !0 - ); - } - return !1; - })(i, t, e, n, r) - ) { - Oe(t, r), (t = de(t, r, null, e)); - try { - B(he, t); - } finally { - fe(t); - } - } - } - } - function Ze(t, e, n, r) { - if (null !== (n = Tn((n = ue(r))))) { - var i = Jt(n); - if (null === i) n = null; - else { - var o = i.tag; - if (13 === o) { - if (null !== (n = te(i))) return n; - n = null; - } else if (3 === o) { - if (i.stateNode.hydrate) - return 3 === i.tag ? i.stateNode.containerInfo : null; - n = null; - } else i !== n && (n = null); - } - } - t = de(t, r, n, e); - try { - B(he, t); - } finally { - fe(t); - } - return null; - } - var Je = { - 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, - gridArea: !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 - }, - tn = ['Webkit', 'ms', 'Moz', 'O']; - function en(t, e, n) { - return null == e || 'boolean' == typeof e || '' === e - ? '' - : n || - 'number' != typeof e || - 0 === e || - (Je.hasOwnProperty(t) && Je[t]) - ? ('' + e).trim() - : e + 'px'; - } - function nn(t, e) { - for (var n in ((t = t.style), e)) - if (e.hasOwnProperty(n)) { - var r = 0 === n.indexOf('--'), - i = en(n, e[n], r); - 'float' === n && (n = 'cssFloat'), - r ? t.setProperty(n, i) : (t[n] = i); - } - } - Object.keys(Je).forEach(function(t) { - tn.forEach(function(e) { - (e = e + t.charAt(0).toUpperCase() + t.substring(1)), (Je[e] = Je[t]); - }); - }); - var rn = i( - { menuitem: !0 }, - { - area: !0, - base: !0, - br: !0, - col: !0, - embed: !0, - hr: !0, - img: !0, - input: !0, - keygen: !0, - link: !0, - meta: !0, - param: !0, - source: !0, - track: !0, - wbr: !0 - } - ); - function on(t, e) { - if (e) { - if ( - rn[t] && - (null != e.children || null != e.dangerouslySetInnerHTML) - ) - throw Error(a(137, t, '')); - if (null != e.dangerouslySetInnerHTML) { - if (null != e.children) throw Error(a(60)); - if ( - 'object' != typeof e.dangerouslySetInnerHTML || - !('__html' in e.dangerouslySetInnerHTML) - ) - throw Error(a(61)); - } - if (null != e.style && 'object' != typeof e.style) - throw Error(a(62, '')); - } - } - function an(t, e) { - if (-1 === t.indexOf('-')) return 'string' == typeof e.is; - switch (t) { - case 'annotation-xml': - case 'color-profile': - case 'font-face': - case 'font-face-src': - case 'font-face-uri': - case 'font-face-format': - case 'font-face-name': - case 'missing-glyph': - return !1; - default: - return !0; - } - } - var sn = jt; - function un(t, e) { - var n = Zt( - (t = 9 === t.nodeType || 11 === t.nodeType ? t : t.ownerDocument) - ); - e = k[e]; - for (var r = 0; r < e.length; r++) pe(e[r], t, n); - } - function ln() {} - function cn(t) { - if ( - void 0 === - (t = t || ('undefined' != typeof document ? document : void 0)) - ) - return null; - try { - return t.activeElement || t.body; - } catch (e) { - return t.body; - } - } - function fn(t) { - for (; t && t.firstChild; ) t = t.firstChild; - return t; - } - function dn(t, e) { - var n, - r = fn(t); - for (t = 0; r; ) { - if (3 === r.nodeType) { - if (((n = t + r.textContent.length), t <= e && n >= e)) - return { node: r, offset: e - t }; - t = n; - } - t: { - for (; r; ) { - if (r.nextSibling) { - r = r.nextSibling; - break t; - } - r = r.parentNode; - } - r = void 0; - } - r = fn(r); - } - } - function hn() { - for (var t = window, e = cn(); e instanceof t.HTMLIFrameElement; ) { - try { - var n = 'string' == typeof e.contentWindow.location.href; - } catch (t) { - n = !1; - } - if (!n) break; - e = cn((t = e.contentWindow).document); - } - return e; - } - function pn(t) { - var e = t && t.nodeName && t.nodeName.toLowerCase(); - return ( - e && - (('input' === e && - ('text' === t.type || - 'search' === t.type || - 'tel' === t.type || - 'url' === t.type || - 'password' === t.type)) || - 'textarea' === e || - 'true' === t.contentEditable) - ); - } - var gn = null, - vn = null; - function mn(t, e) { - switch (t) { - case 'button': - case 'input': - case 'select': - case 'textarea': - return !!e.autoFocus; - } - return !1; - } - function yn(t, e) { - return ( - 'textarea' === t || - 'option' === t || - 'noscript' === t || - 'string' == typeof e.children || - 'number' == typeof e.children || - ('object' == typeof e.dangerouslySetInnerHTML && - null !== e.dangerouslySetInnerHTML && - null != e.dangerouslySetInnerHTML.__html) - ); - } - var bn = 'function' == typeof setTimeout ? setTimeout : void 0, - _n = 'function' == typeof clearTimeout ? clearTimeout : void 0; - function xn(t) { - for (; null != t; t = t.nextSibling) { - var e = t.nodeType; - if (1 === e || 3 === e) break; - } - return t; - } - function wn(t) { - t = t.previousSibling; - for (var e = 0; t; ) { - if (8 === t.nodeType) { - var n = t.data; - if ('$' === n || '$!' === n || '$?' === n) { - if (0 === e) return t; - e--; - } else '/$' === n && e++; - } - t = t.previousSibling; - } - return null; - } - var Sn = Math.random() - .toString(36) - .slice(2), - En = '__reactInternalInstance$' + Sn, - kn = '__reactEventHandlers$' + Sn, - An = '__reactContainere$' + Sn; - function Tn(t) { - var e = t[En]; - if (e) return e; - for (var n = t.parentNode; n; ) { - if ((e = n[An] || n[En])) { - if ( - ((n = e.alternate), - null !== e.child || (null !== n && null !== n.child)) - ) - for (t = wn(t); null !== t; ) { - if ((n = t[En])) return n; - t = wn(t); - } - return e; - } - n = (t = n).parentNode; - } - return null; - } - function Cn(t) { - return !(t = t[En] || t[An]) || - (5 !== t.tag && 6 !== t.tag && 13 !== t.tag && 3 !== t.tag) - ? null - : t; - } - function On(t) { - if (5 === t.tag || 6 === t.tag) return t.stateNode; - throw Error(a(33)); - } - function Pn(t) { - return t[kn] || null; - } - function Mn(t) { - do { - t = t.return; - } while (t && 5 !== t.tag); - return t || null; - } - function Ln(t, e) { - var n = t.stateNode; - if (!n) return null; - var r = p(n); - if (!r) return null; - n = r[e]; - t: switch (e) { - case 'onClick': - case 'onClickCapture': - case 'onDoubleClick': - case 'onDoubleClickCapture': - case 'onMouseDown': - case 'onMouseDownCapture': - case 'onMouseMove': - case 'onMouseMoveCapture': - case 'onMouseUp': - case 'onMouseUpCapture': - case 'onMouseEnter': - (r = !r.disabled) || - (r = !( - 'button' === (t = t.type) || - 'input' === t || - 'select' === t || - 'textarea' === t - )), - (t = !r); - break t; - default: - t = !1; - } - if (t) return null; - if (n && 'function' != typeof n) throw Error(a(231, e, typeof n)); - return n; - } - function Dn(t, e, n) { - (e = Ln(t, n.dispatchConfig.phasedRegistrationNames[e])) && - ((n._dispatchListeners = re(n._dispatchListeners, e)), - (n._dispatchInstances = re(n._dispatchInstances, t))); - } - function jn(t) { - if (t && t.dispatchConfig.phasedRegistrationNames) { - for (var e = t._targetInst, n = []; e; ) n.push(e), (e = Mn(e)); - for (e = n.length; 0 < e--; ) Dn(n[e], 'captured', t); - for (e = 0; e < n.length; e++) Dn(n[e], 'bubbled', t); - } - } - function Rn(t, e, n) { - t && - n && - n.dispatchConfig.registrationName && - (e = Ln(t, n.dispatchConfig.registrationName)) && - ((n._dispatchListeners = re(n._dispatchListeners, e)), - (n._dispatchInstances = re(n._dispatchInstances, t))); - } - function Nn(t) { - t && t.dispatchConfig.registrationName && Rn(t._targetInst, null, t); - } - function zn(t) { - ie(t, jn); - } - var In = null, - Fn = null, - Vn = null; - function Bn() { - if (Vn) return Vn; - var t, - e, - n = Fn, - r = n.length, - i = 'value' in In ? In.value : In.textContent, - o = i.length; - for (t = 0; t < r && n[t] === i[t]; t++); - var a = r - t; - for (e = 1; e <= a && n[r - e] === i[o - e]; e++); - return (Vn = i.slice(t, 1 < e ? 1 - e : void 0)); - } - function Gn() { - return !0; - } - function Hn() { - return !1; - } - function Un(t, e, n, r) { - for (var i in ((this.dispatchConfig = t), - (this._targetInst = e), - (this.nativeEvent = n), - (t = this.constructor.Interface))) - t.hasOwnProperty(i) && - ((e = t[i]) - ? (this[i] = e(n)) - : 'target' === i - ? (this.target = r) - : (this[i] = n[i])); - return ( - (this.isDefaultPrevented = (null != n.defaultPrevented - ? n.defaultPrevented - : !1 === n.returnValue) - ? Gn - : Hn), - (this.isPropagationStopped = Hn), - this - ); - } - function qn(t, e, n, r) { - if (this.eventPool.length) { - var i = this.eventPool.pop(); - return this.call(i, t, e, n, r), i; - } - return new this(t, e, n, r); - } - function Wn(t) { - if (!(t instanceof this)) throw Error(a(279)); - t.destructor(), 10 > this.eventPool.length && this.eventPool.push(t); - } - function Xn(t) { - (t.eventPool = []), (t.getPooled = qn), (t.release = Wn); - } - i(Un.prototype, { - preventDefault: function() { - this.defaultPrevented = !0; - var t = this.nativeEvent; - t && - (t.preventDefault - ? t.preventDefault() - : 'unknown' != typeof t.returnValue && (t.returnValue = !1), - (this.isDefaultPrevented = Gn)); - }, - stopPropagation: function() { - var t = this.nativeEvent; - t && - (t.stopPropagation - ? t.stopPropagation() - : 'unknown' != typeof t.cancelBubble && (t.cancelBubble = !0), - (this.isPropagationStopped = Gn)); - }, - persist: function() { - this.isPersistent = Gn; - }, - isPersistent: Hn, - destructor: function() { - var t, - e = this.constructor.Interface; - for (t in e) this[t] = null; - (this.nativeEvent = this._targetInst = this.dispatchConfig = null), - (this.isPropagationStopped = this.isDefaultPrevented = Hn), - (this._dispatchInstances = this._dispatchListeners = null); - } - }), - (Un.Interface = { - type: null, - target: null, - currentTarget: function() { - return null; - }, - eventPhase: null, - bubbles: null, - cancelable: null, - timeStamp: function(t) { - return t.timeStamp || Date.now(); - }, - defaultPrevented: null, - isTrusted: null - }), - (Un.extend = function(t) { - function e() {} - function n() { - return r.apply(this, arguments); - } - var r = this; - e.prototype = r.prototype; - var o = new e(); - return ( - i(o, n.prototype), - (n.prototype = o), - (n.prototype.constructor = n), - (n.Interface = i({}, r.Interface, t)), - (n.extend = r.extend), - Xn(n), - n - ); - }), - Xn(Un); - var Yn = Un.extend({ data: null }), - $n = Un.extend({ data: null }), - Qn = [9, 13, 27, 32], - Kn = T && 'CompositionEvent' in window, - Zn = null; - T && 'documentMode' in document && (Zn = document.documentMode); - var Jn = T && 'TextEvent' in window && !Zn, - tr = T && (!Kn || (Zn && 8 < Zn && 11 >= Zn)), - er = String.fromCharCode(32), - nr = { - beforeInput: { - phasedRegistrationNames: { - bubbled: 'onBeforeInput', - captured: 'onBeforeInputCapture' - }, - dependencies: ['compositionend', 'keypress', 'textInput', 'paste'] - }, - compositionEnd: { - phasedRegistrationNames: { - bubbled: 'onCompositionEnd', - captured: 'onCompositionEndCapture' - }, - dependencies: 'blur compositionend keydown keypress keyup mousedown'.split( - ' ' - ) - }, - compositionStart: { - phasedRegistrationNames: { - bubbled: 'onCompositionStart', - captured: 'onCompositionStartCapture' - }, - dependencies: 'blur compositionstart keydown keypress keyup mousedown'.split( - ' ' - ) - }, - compositionUpdate: { - phasedRegistrationNames: { - bubbled: 'onCompositionUpdate', - captured: 'onCompositionUpdateCapture' - }, - dependencies: 'blur compositionupdate keydown keypress keyup mousedown'.split( - ' ' - ) - } - }, - rr = !1; - function ir(t, e) { - switch (t) { - case 'keyup': - return -1 !== Qn.indexOf(e.keyCode); - case 'keydown': - return 229 !== e.keyCode; - case 'keypress': - case 'mousedown': - case 'blur': - return !0; - default: - return !1; - } - } - function or(t) { - return 'object' == typeof (t = t.detail) && 'data' in t ? t.data : null; - } - var ar = !1; - var sr = { - eventTypes: nr, - extractEvents: function(t, e, n, r) { - var i; - if (Kn) - t: { - switch (t) { - case 'compositionstart': - var o = nr.compositionStart; - break t; - case 'compositionend': - o = nr.compositionEnd; - break t; - case 'compositionupdate': - o = nr.compositionUpdate; - break t; - } - o = void 0; - } - else - ar - ? ir(t, n) && (o = nr.compositionEnd) - : 'keydown' === t && - 229 === n.keyCode && - (o = nr.compositionStart); - return ( - o - ? (tr && - 'ko' !== n.locale && - (ar || o !== nr.compositionStart - ? o === nr.compositionEnd && ar && (i = Bn()) - : ((Fn = 'value' in (In = r) ? In.value : In.textContent), - (ar = !0))), - (o = Yn.getPooled(o, e, n, r)), - i ? (o.data = i) : null !== (i = or(n)) && (o.data = i), - zn(o), - (i = o)) - : (i = null), - (t = Jn - ? (function(t, e) { - switch (t) { - case 'compositionend': - return or(e); - case 'keypress': - return 32 !== e.which ? null : ((rr = !0), er); - case 'textInput': - return (t = e.data) === er && rr ? null : t; - default: - return null; - } - })(t, n) - : (function(t, e) { - if (ar) - return 'compositionend' === t || (!Kn && ir(t, e)) - ? ((t = Bn()), (Vn = Fn = In = null), (ar = !1), t) - : null; - switch (t) { - case 'paste': - return null; - case 'keypress': - if ( - !(e.ctrlKey || e.altKey || e.metaKey) || - (e.ctrlKey && e.altKey) - ) { - if (e.char && 1 < e.char.length) return e.char; - if (e.which) return String.fromCharCode(e.which); - } - return null; - case 'compositionend': - return tr && 'ko' !== e.locale ? null : e.data; - default: - return null; - } - })(t, n)) - ? (((e = $n.getPooled(nr.beforeInput, e, n, r)).data = t), - zn(e)) - : (e = null), - null === i ? e : null === e ? i : [i, e] - ); - } - }, - ur = { - color: !0, - date: !0, - datetime: !0, - 'datetime-local': !0, - email: !0, - month: !0, - number: !0, - password: !0, - range: !0, - search: !0, - tel: !0, - text: !0, - time: !0, - url: !0, - week: !0 - }; - function lr(t) { - var e = t && t.nodeName && t.nodeName.toLowerCase(); - return 'input' === e ? !!ur[t.type] : 'textarea' === e; - } - var cr = { - change: { - phasedRegistrationNames: { - bubbled: 'onChange', - captured: 'onChangeCapture' - }, - dependencies: 'blur change click focus input keydown keyup selectionchange'.split( - ' ' - ) - } - }; - function fr(t, e, n) { - return ( - ((t = Un.getPooled(cr.change, t, e, n)).type = 'change'), - L(n), - zn(t), - t - ); - } - var dr = null, - hr = null; - function pr(t) { - se(t); - } - function gr(t) { - if (xt(On(t))) return t; - } - function vr(t, e) { - if ('change' === t) return e; - } - var mr = !1; - function yr() { - dr && (dr.detachEvent('onpropertychange', br), (hr = dr = null)); - } - function br(t) { - if ('value' === t.propertyName && gr(hr)) - if (((t = fr(hr, t, ue(t))), I)) se(t); - else { - I = !0; - try { - j(pr, t); - } finally { - (I = !1), V(); - } - } - } - function _r(t, e, n) { - 'focus' === t - ? (yr(), (hr = n), (dr = e).attachEvent('onpropertychange', br)) - : 'blur' === t && yr(); - } - function xr(t) { - if ('selectionchange' === t || 'keyup' === t || 'keydown' === t) - return gr(hr); - } - function wr(t, e) { - if ('click' === t) return gr(e); - } - function Sr(t, e) { - if ('input' === t || 'change' === t) return gr(e); - } - T && - (mr = - le('input') && (!document.documentMode || 9 < document.documentMode)); - var Er = { - eventTypes: cr, - _isInputEventSupported: mr, - extractEvents: function(t, e, n, r) { - var i = e ? On(e) : window, - o = i.nodeName && i.nodeName.toLowerCase(); - if ('select' === o || ('input' === o && 'file' === i.type)) - var a = vr; - else if (lr(i)) - if (mr) a = Sr; - else { - a = xr; - var s = _r; - } - else - (o = i.nodeName) && - 'input' === o.toLowerCase() && - ('checkbox' === i.type || 'radio' === i.type) && - (a = wr); - if (a && (a = a(t, e))) return fr(a, n, r); - s && s(t, i, e), - 'blur' === t && - (t = i._wrapperState) && - t.controlled && - 'number' === i.type && - Tt(i, 'number', i.value); - } - }, - kr = Un.extend({ view: null, detail: null }), - Ar = { - Alt: 'altKey', - Control: 'ctrlKey', - Meta: 'metaKey', - Shift: 'shiftKey' - }; - function Tr(t) { - var e = this.nativeEvent; - return e.getModifierState - ? e.getModifierState(t) - : !!(t = Ar[t]) && !!e[t]; - } - function Cr() { - return Tr; - } - var Or = 0, - Pr = 0, - Mr = !1, - Lr = !1, - Dr = kr.extend({ - screenX: null, - screenY: null, - clientX: null, - clientY: null, - pageX: null, - pageY: null, - ctrlKey: null, - shiftKey: null, - altKey: null, - metaKey: null, - getModifierState: Cr, - button: null, - buttons: null, - relatedTarget: function(t) { - return ( - t.relatedTarget || - (t.fromElement === t.srcElement ? t.toElement : t.fromElement) - ); - }, - movementX: function(t) { - if ('movementX' in t) return t.movementX; - var e = Or; - return ( - (Or = t.screenX), - Mr ? ('mousemove' === t.type ? t.screenX - e : 0) : ((Mr = !0), 0) - ); - }, - movementY: function(t) { - if ('movementY' in t) return t.movementY; - var e = Pr; - return ( - (Pr = t.screenY), - Lr ? ('mousemove' === t.type ? t.screenY - e : 0) : ((Lr = !0), 0) - ); - } - }), - jr = Dr.extend({ - pointerId: null, - width: null, - height: null, - pressure: null, - tangentialPressure: null, - tiltX: null, - tiltY: null, - twist: null, - pointerType: null, - isPrimary: null - }), - Rr = { - mouseEnter: { - registrationName: 'onMouseEnter', - dependencies: ['mouseout', 'mouseover'] - }, - mouseLeave: { - registrationName: 'onMouseLeave', - dependencies: ['mouseout', 'mouseover'] - }, - pointerEnter: { - registrationName: 'onPointerEnter', - dependencies: ['pointerout', 'pointerover'] - }, - pointerLeave: { - registrationName: 'onPointerLeave', - dependencies: ['pointerout', 'pointerover'] - } - }, - Nr = { - eventTypes: Rr, - extractEvents: function(t, e, n, r, i) { - var o = 'mouseover' === t || 'pointerover' === t, - a = 'mouseout' === t || 'pointerout' === t; - if ( - (o && 0 == (32 & i) && (n.relatedTarget || n.fromElement)) || - (!a && !o) - ) - return null; - ((o = - r.window === r - ? r - : (o = r.ownerDocument) - ? o.defaultView || o.parentWindow - : window), - a) - ? ((a = e), - null !== - (e = (e = n.relatedTarget || n.toElement) ? Tn(e) : null) && - (e !== Jt(e) || (5 !== e.tag && 6 !== e.tag)) && - (e = null)) - : (a = null); - if (a === e) return null; - if ('mouseout' === t || 'mouseover' === t) - var s = Dr, - u = Rr.mouseLeave, - l = Rr.mouseEnter, - c = 'mouse'; - else - ('pointerout' !== t && 'pointerover' !== t) || - ((s = jr), - (u = Rr.pointerLeave), - (l = Rr.pointerEnter), - (c = 'pointer')); - if ( - ((t = null == a ? o : On(a)), - (o = null == e ? o : On(e)), - ((u = s.getPooled(u, a, n, r)).type = c + 'leave'), - (u.target = t), - (u.relatedTarget = o), - ((n = s.getPooled(l, e, n, r)).type = c + 'enter'), - (n.target = o), - (n.relatedTarget = t), - (c = e), - (r = a) && c) - ) - t: { - for (l = c, a = 0, t = s = r; t; t = Mn(t)) a++; - for (t = 0, e = l; e; e = Mn(e)) t++; - for (; 0 < a - t; ) (s = Mn(s)), a--; - for (; 0 < t - a; ) (l = Mn(l)), t--; - for (; a--; ) { - if (s === l || s === l.alternate) break t; - (s = Mn(s)), (l = Mn(l)); - } - s = null; - } - else s = null; - for ( - l = s, s = []; - r && r !== l && (null === (a = r.alternate) || a !== l); - - ) - s.push(r), (r = Mn(r)); - for ( - r = []; - c && c !== l && (null === (a = c.alternate) || a !== l); - - ) - r.push(c), (c = Mn(c)); - for (c = 0; c < s.length; c++) Rn(s[c], 'bubbled', u); - for (c = r.length; 0 < c--; ) Rn(r[c], 'captured', n); - return 0 == (64 & i) ? [u] : [u, n]; - } - }; - var zr = - 'function' == typeof Object.is - ? Object.is - : function(t, e) { - return ( - (t === e && (0 !== t || 1 / t == 1 / e)) || (t != t && e != e) - ); - }, - Ir = Object.prototype.hasOwnProperty; - function Fr(t, e) { - if (zr(t, e)) return !0; - if ( - 'object' != typeof t || - null === t || - 'object' != typeof e || - null === e - ) - return !1; - var n = Object.keys(t), - r = Object.keys(e); - if (n.length !== r.length) return !1; - for (r = 0; r < n.length; r++) - if (!Ir.call(e, n[r]) || !zr(t[n[r]], e[n[r]])) return !1; - return !0; - } - var Vr = T && 'documentMode' in document && 11 >= document.documentMode, - Br = { - select: { - phasedRegistrationNames: { - bubbled: 'onSelect', - captured: 'onSelectCapture' - }, - dependencies: 'blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange'.split( - ' ' - ) - } - }, - Gr = null, - Hr = null, - Ur = null, - qr = !1; - function Wr(t, e) { - var n = - e.window === e ? e.document : 9 === e.nodeType ? e : e.ownerDocument; - return qr || null == Gr || Gr !== cn(n) - ? null - : ('selectionStart' in (n = Gr) && pn(n) - ? (n = { start: n.selectionStart, end: n.selectionEnd }) - : (n = { - anchorNode: (n = ( - (n.ownerDocument && n.ownerDocument.defaultView) || - window - ).getSelection()).anchorNode, - anchorOffset: n.anchorOffset, - focusNode: n.focusNode, - focusOffset: n.focusOffset - }), - Ur && Fr(Ur, n) - ? null - : ((Ur = n), - ((t = Un.getPooled(Br.select, Hr, t, e)).type = 'select'), - (t.target = Gr), - zn(t), - t)); - } - var Xr = { - eventTypes: Br, - extractEvents: function(t, e, n, r, i, o) { - if ( - !(o = !(i = - o || - (r.window === r - ? r.document - : 9 === r.nodeType - ? r - : r.ownerDocument))) - ) { - t: { - (i = Zt(i)), (o = k.onSelect); - for (var a = 0; a < o.length; a++) - if (!i.has(o[a])) { - i = !1; - break t; - } - i = !0; - } - o = !i; - } - if (o) return null; - switch (((i = e ? On(e) : window), t)) { - case 'focus': - (lr(i) || 'true' === i.contentEditable) && - ((Gr = i), (Hr = e), (Ur = null)); - break; - case 'blur': - Ur = Hr = Gr = null; - break; - case 'mousedown': - qr = !0; - break; - case 'contextmenu': - case 'mouseup': - case 'dragend': - return (qr = !1), Wr(n, r); - case 'selectionchange': - if (Vr) break; - case 'keydown': - case 'keyup': - return Wr(n, r); - } - return null; - } - }, - Yr = Un.extend({ - animationName: null, - elapsedTime: null, - pseudoElement: null - }), - $r = Un.extend({ - clipboardData: function(t) { - return 'clipboardData' in t - ? t.clipboardData - : window.clipboardData; - } - }), - Qr = kr.extend({ relatedTarget: null }); - function Kr(t) { - var e = t.keyCode; - return ( - 'charCode' in t - ? 0 === (t = t.charCode) && 13 === e && (t = 13) - : (t = e), - 10 === t && (t = 13), - 32 <= t || 13 === t ? t : 0 - ); - } - var Zr = { - Esc: 'Escape', - Spacebar: ' ', - Left: 'ArrowLeft', - Up: 'ArrowUp', - Right: 'ArrowRight', - Down: 'ArrowDown', - Del: 'Delete', - Win: 'OS', - Menu: 'ContextMenu', - Apps: 'ContextMenu', - Scroll: 'ScrollLock', - MozPrintableKey: 'Unidentified' - }, - Jr = { - 8: 'Backspace', - 9: 'Tab', - 12: 'Clear', - 13: 'Enter', - 16: 'Shift', - 17: 'Control', - 18: 'Alt', - 19: 'Pause', - 20: 'CapsLock', - 27: 'Escape', - 32: ' ', - 33: 'PageUp', - 34: 'PageDown', - 35: 'End', - 36: 'Home', - 37: 'ArrowLeft', - 38: 'ArrowUp', - 39: 'ArrowRight', - 40: 'ArrowDown', - 45: 'Insert', - 46: 'Delete', - 112: 'F1', - 113: 'F2', - 114: 'F3', - 115: 'F4', - 116: 'F5', - 117: 'F6', - 118: 'F7', - 119: 'F8', - 120: 'F9', - 121: 'F10', - 122: 'F11', - 123: 'F12', - 144: 'NumLock', - 145: 'ScrollLock', - 224: 'Meta' - }, - ti = kr.extend({ - key: function(t) { - if (t.key) { - var e = Zr[t.key] || t.key; - if ('Unidentified' !== e) return e; - } - return 'keypress' === t.type - ? 13 === (t = Kr(t)) - ? 'Enter' - : String.fromCharCode(t) - : 'keydown' === t.type || 'keyup' === t.type - ? Jr[t.keyCode] || 'Unidentified' - : ''; - }, - location: null, - ctrlKey: null, - shiftKey: null, - altKey: null, - metaKey: null, - repeat: null, - locale: null, - getModifierState: Cr, - charCode: function(t) { - return 'keypress' === t.type ? Kr(t) : 0; - }, - keyCode: function(t) { - return 'keydown' === t.type || 'keyup' === t.type ? t.keyCode : 0; - }, - which: function(t) { - return 'keypress' === t.type - ? Kr(t) - : 'keydown' === t.type || 'keyup' === t.type - ? t.keyCode - : 0; - } - }), - ei = Dr.extend({ dataTransfer: null }), - ni = kr.extend({ - touches: null, - targetTouches: null, - changedTouches: null, - altKey: null, - metaKey: null, - ctrlKey: null, - shiftKey: null, - getModifierState: Cr - }), - ri = Un.extend({ - propertyName: null, - elapsedTime: null, - pseudoElement: null - }), - ii = Dr.extend({ - deltaX: function(t) { - return 'deltaX' in t - ? t.deltaX - : 'wheelDeltaX' in t - ? -t.wheelDeltaX - : 0; - }, - deltaY: function(t) { - return 'deltaY' in t - ? t.deltaY - : 'wheelDeltaY' in t - ? -t.wheelDeltaY - : 'wheelDelta' in t - ? -t.wheelDelta - : 0; - }, - deltaZ: null, - deltaMode: null - }), - oi = { - eventTypes: ze, - extractEvents: function(t, e, n, r) { - var i = Ie.get(t); - if (!i) return null; - switch (t) { - case 'keypress': - if (0 === Kr(n)) return null; - case 'keydown': - case 'keyup': - t = ti; - break; - case 'blur': - case 'focus': - t = Qr; - break; - case 'click': - if (2 === n.button) return null; - case 'auxclick': - case 'dblclick': - case 'mousedown': - case 'mousemove': - case 'mouseup': - case 'mouseout': - case 'mouseover': - case 'contextmenu': - t = Dr; - break; - case 'drag': - case 'dragend': - case 'dragenter': - case 'dragexit': - case 'dragleave': - case 'dragover': - case 'dragstart': - case 'drop': - t = ei; - break; - case 'touchcancel': - case 'touchend': - case 'touchmove': - case 'touchstart': - t = ni; - break; - case Wt: - case Xt: - case Yt: - t = Yr; - break; - case $t: - t = ri; - break; - case 'scroll': - t = kr; - break; - case 'wheel': - t = ii; - break; - case 'copy': - case 'cut': - case 'paste': - t = $r; - break; - case 'gotpointercapture': - case 'lostpointercapture': - case 'pointercancel': - case 'pointerdown': - case 'pointermove': - case 'pointerout': - case 'pointerover': - case 'pointerup': - t = jr; - break; - default: - t = Un; - } - return zn((e = t.getPooled(i, e, n, r))), e; - } - }; - if (y) throw Error(a(101)); - (y = Array.prototype.slice.call( - 'ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin'.split( - ' ' - ) - )), - _(), - (p = Pn), - (g = Cn), - (v = On), - A({ - SimpleEventPlugin: oi, - EnterLeaveEventPlugin: Nr, - ChangeEventPlugin: Er, - SelectEventPlugin: Xr, - BeforeInputEventPlugin: sr - }); - var ai = [], - si = -1; - function ui(t) { - 0 > si || ((t.current = ai[si]), (ai[si] = null), si--); - } - function li(t, e) { - si++, (ai[si] = t.current), (t.current = e); - } - var ci = {}, - fi = { current: ci }, - di = { current: !1 }, - hi = ci; - function pi(t, e) { - var n = t.type.contextTypes; - if (!n) return ci; - var r = t.stateNode; - if (r && r.__reactInternalMemoizedUnmaskedChildContext === e) - return r.__reactInternalMemoizedMaskedChildContext; - var i, - o = {}; - for (i in n) o[i] = e[i]; - return ( - r && - (((t = - t.stateNode).__reactInternalMemoizedUnmaskedChildContext = e), - (t.__reactInternalMemoizedMaskedChildContext = o)), - o - ); - } - function gi(t) { - return null != (t = t.childContextTypes); - } - function vi() { - ui(di), ui(fi); - } - function mi(t, e, n) { - if (fi.current !== ci) throw Error(a(168)); - li(fi, e), li(di, n); - } - function yi(t, e, n) { - var r = t.stateNode; - if (((t = e.childContextTypes), 'function' != typeof r.getChildContext)) - return n; - for (var o in (r = r.getChildContext())) - if (!(o in t)) throw Error(a(108, vt(e) || 'Unknown', o)); - return i({}, n, {}, r); - } - function bi(t) { - return ( - (t = - ((t = t.stateNode) && - t.__reactInternalMemoizedMergedChildContext) || - ci), - (hi = fi.current), - li(fi, t), - li(di, di.current), - !0 - ); - } - function _i(t, e, n) { - var r = t.stateNode; - if (!r) throw Error(a(169)); - n - ? ((t = yi(t, e, hi)), - (r.__reactInternalMemoizedMergedChildContext = t), - ui(di), - ui(fi), - li(fi, t)) - : ui(di), - li(di, n); - } - var xi = o.unstable_runWithPriority, - wi = o.unstable_scheduleCallback, - Si = o.unstable_cancelCallback, - Ei = o.unstable_requestPaint, - ki = o.unstable_now, - Ai = o.unstable_getCurrentPriorityLevel, - Ti = o.unstable_ImmediatePriority, - Ci = o.unstable_UserBlockingPriority, - Oi = o.unstable_NormalPriority, - Pi = o.unstable_LowPriority, - Mi = o.unstable_IdlePriority, - Li = {}, - Di = o.unstable_shouldYield, - ji = void 0 !== Ei ? Ei : function() {}, - Ri = null, - Ni = null, - zi = !1, - Ii = ki(), - Fi = - 1e4 > Ii - ? ki - : function() { - return ki() - Ii; - }; - function Vi() { - switch (Ai()) { - case Ti: - return 99; - case Ci: - return 98; - case Oi: - return 97; - case Pi: - return 96; - case Mi: - return 95; - default: - throw Error(a(332)); - } - } - function Bi(t) { - switch (t) { - case 99: - return Ti; - case 98: - return Ci; - case 97: - return Oi; - case 96: - return Pi; - case 95: - return Mi; - default: - throw Error(a(332)); - } - } - function Gi(t, e) { - return (t = Bi(t)), xi(t, e); - } - function Hi(t, e, n) { - return (t = Bi(t)), wi(t, e, n); - } - function Ui(t) { - return null === Ri ? ((Ri = [t]), (Ni = wi(Ti, Wi))) : Ri.push(t), Li; - } - function qi() { - if (null !== Ni) { - var t = Ni; - (Ni = null), Si(t); - } - Wi(); - } - function Wi() { - if (!zi && null !== Ri) { - zi = !0; - var t = 0; - try { - var e = Ri; - Gi(99, function() { - for (; t < e.length; t++) { - var n = e[t]; - do { - n = n(!0); - } while (null !== n); - } - }), - (Ri = null); - } catch (e) { - throw (null !== Ri && (Ri = Ri.slice(t + 1)), wi(Ti, qi), e); - } finally { - zi = !1; - } - } - } - function Xi(t, e, n) { - return ( - 1073741821 - (1 + (((1073741821 - t + e / 10) / (n /= 10)) | 0)) * n - ); - } - function Yi(t, e) { - if (t && t.defaultProps) - for (var n in ((e = i({}, e)), (t = t.defaultProps))) - void 0 === e[n] && (e[n] = t[n]); - return e; - } - var $i = { current: null }, - Qi = null, - Ki = null, - Zi = null; - function Ji() { - Zi = Ki = Qi = null; - } - function to(t) { - var e = $i.current; - ui($i), (t.type._context._currentValue = e); - } - function eo(t, e) { - for (; null !== t; ) { - var n = t.alternate; - if (t.childExpirationTime < e) - (t.childExpirationTime = e), - null !== n && - n.childExpirationTime < e && - (n.childExpirationTime = e); - else { - if (!(null !== n && n.childExpirationTime < e)) break; - n.childExpirationTime = e; - } - t = t.return; - } - } - function no(t, e) { - (Qi = t), - (Zi = Ki = null), - null !== (t = t.dependencies) && - null !== t.firstContext && - (t.expirationTime >= e && (Pa = !0), (t.firstContext = null)); - } - function ro(t, e) { - if (Zi !== t && !1 !== e && 0 !== e) - if ( - (('number' == typeof e && 1073741823 !== e) || - ((Zi = t), (e = 1073741823)), - (e = { context: t, observedBits: e, next: null }), - null === Ki) - ) { - if (null === Qi) throw Error(a(308)); - (Ki = e), - (Qi.dependencies = { - expirationTime: 0, - firstContext: e, - responders: null - }); - } else Ki = Ki.next = e; - return t._currentValue; - } - var io = !1; - function oo(t) { - t.updateQueue = { - baseState: t.memoizedState, - baseQueue: null, - shared: { pending: null }, - effects: null - }; - } - function ao(t, e) { - (t = t.updateQueue), - e.updateQueue === t && - (e.updateQueue = { - baseState: t.baseState, - baseQueue: t.baseQueue, - shared: t.shared, - effects: t.effects - }); - } - function so(t, e) { - return ((t = { - expirationTime: t, - suspenseConfig: e, - tag: 0, - payload: null, - callback: null, - next: null - }).next = t); - } - function uo(t, e) { - if (null !== (t = t.updateQueue)) { - var n = (t = t.shared).pending; - null === n ? (e.next = e) : ((e.next = n.next), (n.next = e)), - (t.pending = e); - } - } - function lo(t, e) { - var n = t.alternate; - null !== n && ao(n, t), - null === (n = (t = t.updateQueue).baseQueue) - ? ((t.baseQueue = e.next = e), (e.next = e)) - : ((e.next = n.next), (n.next = e)); - } - function co(t, e, n, r) { - var o = t.updateQueue; - io = !1; - var a = o.baseQueue, - s = o.shared.pending; - if (null !== s) { - if (null !== a) { - var u = a.next; - (a.next = s.next), (s.next = u); - } - (a = s), - (o.shared.pending = null), - null !== (u = t.alternate) && - null !== (u = u.updateQueue) && (u.baseQueue = s); - } - if (null !== a) { - u = a.next; - var l = o.baseState, - c = 0, - f = null, - d = null, - h = null; - if (null !== u) - for (var p = u; ; ) { - if ((s = p.expirationTime) < r) { - var g = { - expirationTime: p.expirationTime, - suspenseConfig: p.suspenseConfig, - tag: p.tag, - payload: p.payload, - callback: p.callback, - next: null - }; - null === h ? ((d = h = g), (f = l)) : (h = h.next = g), - s > c && (c = s); - } else { - null !== h && - (h = h.next = { - expirationTime: 1073741823, - suspenseConfig: p.suspenseConfig, - tag: p.tag, - payload: p.payload, - callback: p.callback, - next: null - }), - ou(s, p.suspenseConfig); - t: { - var v = t, - m = p; - switch (((s = e), (g = n), m.tag)) { - case 1: - if ('function' == typeof (v = m.payload)) { - l = v.call(g, l, s); - break t; - } - l = v; - break t; - case 3: - v.effectTag = (-4097 & v.effectTag) | 64; - case 0: - if ( - null == - (s = - 'function' == typeof (v = m.payload) - ? v.call(g, l, s) - : v) - ) - break t; - l = i({}, l, s); - break t; - case 2: - io = !0; - } - } - null !== p.callback && - ((t.effectTag |= 32), - null === (s = o.effects) ? (o.effects = [p]) : s.push(p)); - } - if (null === (p = p.next) || p === u) { - if (null === (s = o.shared.pending)) break; - (p = a.next = s.next), - (s.next = u), - (o.baseQueue = a = s), - (o.shared.pending = null); - } - } - null === h ? (f = l) : (h.next = d), - (o.baseState = f), - (o.baseQueue = h), - au(c), - (t.expirationTime = c), - (t.memoizedState = l); - } - } - function fo(t, e, n) { - if (((t = e.effects), (e.effects = null), null !== t)) - for (e = 0; e < t.length; e++) { - var r = t[e], - i = r.callback; - if (null !== i) { - if ( - ((r.callback = null), (r = i), (i = n), 'function' != typeof r) - ) - throw Error(a(191, r)); - r.call(i); - } - } - } - var ho = Q.ReactCurrentBatchConfig, - po = new r.Component().refs; - function go(t, e, n, r) { - (n = null == (n = n(r, (e = t.memoizedState))) ? e : i({}, e, n)), - (t.memoizedState = n), - 0 === t.expirationTime && (t.updateQueue.baseState = n); - } - var vo = { - isMounted: function(t) { - return !!(t = t._reactInternalFiber) && Jt(t) === t; - }, - enqueueSetState: function(t, e, n) { - t = t._reactInternalFiber; - var r = Ws(), - i = ho.suspense; - ((i = so((r = Xs(r, t, i)), i)).payload = e), - null != n && (i.callback = n), - uo(t, i), - Ys(t, r); - }, - enqueueReplaceState: function(t, e, n) { - t = t._reactInternalFiber; - var r = Ws(), - i = ho.suspense; - ((i = so((r = Xs(r, t, i)), i)).tag = 1), - (i.payload = e), - null != n && (i.callback = n), - uo(t, i), - Ys(t, r); - }, - enqueueForceUpdate: function(t, e) { - t = t._reactInternalFiber; - var n = Ws(), - r = ho.suspense; - ((r = so((n = Xs(n, t, r)), r)).tag = 2), - null != e && (r.callback = e), - uo(t, r), - Ys(t, n); - } - }; - function mo(t, e, n, r, i, o, a) { - return 'function' == typeof (t = t.stateNode).shouldComponentUpdate - ? t.shouldComponentUpdate(r, o, a) - : !e.prototype || - !e.prototype.isPureReactComponent || - !Fr(n, r) || !Fr(i, o); - } - function yo(t, e, n) { - var r = !1, - i = ci, - o = e.contextType; - return ( - 'object' == typeof o && null !== o - ? (o = ro(o)) - : ((i = gi(e) ? hi : fi.current), - (o = (r = null != (r = e.contextTypes)) ? pi(t, i) : ci)), - (e = new e(n, o)), - (t.memoizedState = - null !== e.state && void 0 !== e.state ? e.state : null), - (e.updater = vo), - (t.stateNode = e), - (e._reactInternalFiber = t), - r && - (((t = - t.stateNode).__reactInternalMemoizedUnmaskedChildContext = i), - (t.__reactInternalMemoizedMaskedChildContext = o)), - e - ); - } - function bo(t, e, n, r) { - (t = e.state), - 'function' == typeof e.componentWillReceiveProps && - e.componentWillReceiveProps(n, r), - 'function' == typeof e.UNSAFE_componentWillReceiveProps && - e.UNSAFE_componentWillReceiveProps(n, r), - e.state !== t && vo.enqueueReplaceState(e, e.state, null); - } - function _o(t, e, n, r) { - var i = t.stateNode; - (i.props = n), (i.state = t.memoizedState), (i.refs = po), oo(t); - var o = e.contextType; - 'object' == typeof o && null !== o - ? (i.context = ro(o)) - : ((o = gi(e) ? hi : fi.current), (i.context = pi(t, o))), - co(t, n, i, r), - (i.state = t.memoizedState), - 'function' == typeof (o = e.getDerivedStateFromProps) && - (go(t, e, o, n), (i.state = t.memoizedState)), - 'function' == typeof e.getDerivedStateFromProps || - 'function' == typeof i.getSnapshotBeforeUpdate || - ('function' != typeof i.UNSAFE_componentWillMount && - 'function' != typeof i.componentWillMount) || - ((e = i.state), - 'function' == typeof i.componentWillMount && i.componentWillMount(), - 'function' == typeof i.UNSAFE_componentWillMount && - i.UNSAFE_componentWillMount(), - e !== i.state && vo.enqueueReplaceState(i, i.state, null), - co(t, n, i, r), - (i.state = t.memoizedState)), - 'function' == typeof i.componentDidMount && (t.effectTag |= 4); - } - var xo = Array.isArray; - function wo(t, e, n) { - if ( - null !== (t = n.ref) && - 'function' != typeof t && - 'object' != typeof t - ) { - if (n._owner) { - if ((n = n._owner)) { - if (1 !== n.tag) throw Error(a(309)); - var r = n.stateNode; - } - if (!r) throw Error(a(147, t)); - var i = '' + t; - return null !== e && - null !== e.ref && - 'function' == typeof e.ref && - e.ref._stringRef === i - ? e.ref - : (((e = function(t) { - var e = r.refs; - e === po && (e = r.refs = {}), - null === t ? delete e[i] : (e[i] = t); - })._stringRef = i), - e); - } - if ('string' != typeof t) throw Error(a(284)); - if (!n._owner) throw Error(a(290, t)); - } - return t; - } - function So(t, e) { - if ('textarea' !== t.type) - throw Error( - a( - 31, - '[object Object]' === Object.prototype.toString.call(e) - ? 'object with keys {' + Object.keys(e).join(', ') + '}' - : e, - '' - ) - ); - } - function Eo(t) { - function e(e, n) { - if (t) { - var r = e.lastEffect; - null !== r - ? ((r.nextEffect = n), (e.lastEffect = n)) - : (e.firstEffect = e.lastEffect = n), - (n.nextEffect = null), - (n.effectTag = 8); - } - } - function n(n, r) { - if (!t) return null; - for (; null !== r; ) e(n, r), (r = r.sibling); - return null; - } - function r(t, e) { - for (t = new Map(); null !== e; ) - null !== e.key ? t.set(e.key, e) : t.set(e.index, e), - (e = e.sibling); - return t; - } - function i(t, e) { - return ((t = Au(t, e)).index = 0), (t.sibling = null), t; - } - function o(e, n, r) { - return ( - (e.index = r), - t - ? null !== (r = e.alternate) - ? (r = r.index) < n - ? ((e.effectTag = 2), n) - : r - : ((e.effectTag = 2), n) - : n - ); - } - function s(e) { - return t && null === e.alternate && (e.effectTag = 2), e; - } - function u(t, e, n, r) { - return null === e || 6 !== e.tag - ? (((e = Ou(n, t.mode, r)).return = t), e) - : (((e = i(e, n)).return = t), e); - } - function l(t, e, n, r) { - return null !== e && e.elementType === n.type - ? (((r = i(e, n.props)).ref = wo(t, e, n)), (r.return = t), r) - : (((r = Tu(n.type, n.key, n.props, null, t.mode, r)).ref = wo( - t, - e, - n - )), - (r.return = t), - r); - } - function c(t, e, n, r) { - return null === e || - 4 !== e.tag || - e.stateNode.containerInfo !== n.containerInfo || - e.stateNode.implementation !== n.implementation - ? (((e = Pu(n, t.mode, r)).return = t), e) - : (((e = i(e, n.children || [])).return = t), e); - } - function f(t, e, n, r, o) { - return null === e || 7 !== e.tag - ? (((e = Cu(n, t.mode, r, o)).return = t), e) - : (((e = i(e, n)).return = t), e); - } - function d(t, e, n) { - if ('string' == typeof e || 'number' == typeof e) - return ((e = Ou('' + e, t.mode, n)).return = t), e; - if ('object' == typeof e && null !== e) { - switch (e.$$typeof) { - case tt: - return ( - ((n = Tu(e.type, e.key, e.props, null, t.mode, n)).ref = wo( - t, - null, - e - )), - (n.return = t), - n - ); - case et: - return ((e = Pu(e, t.mode, n)).return = t), e; - } - if (xo(e) || gt(e)) - return ((e = Cu(e, t.mode, n, null)).return = t), e; - So(t, e); - } - return null; - } - function h(t, e, n, r) { - var i = null !== e ? e.key : null; - if ('string' == typeof n || 'number' == typeof n) - return null !== i ? null : u(t, e, '' + n, r); - if ('object' == typeof n && null !== n) { - switch (n.$$typeof) { - case tt: - return n.key === i - ? n.type === nt - ? f(t, e, n.props.children, r, i) - : l(t, e, n, r) - : null; - case et: - return n.key === i ? c(t, e, n, r) : null; - } - if (xo(n) || gt(n)) return null !== i ? null : f(t, e, n, r, null); - So(t, n); - } - return null; - } - function p(t, e, n, r, i) { - if ('string' == typeof r || 'number' == typeof r) - return u(e, (t = t.get(n) || null), '' + r, i); - if ('object' == typeof r && null !== r) { - switch (r.$$typeof) { - case tt: - return ( - (t = t.get(null === r.key ? n : r.key) || null), - r.type === nt - ? f(e, t, r.props.children, i, r.key) - : l(e, t, r, i) - ); - case et: - return c( - e, - (t = t.get(null === r.key ? n : r.key) || null), - r, - i - ); - } - if (xo(r) || gt(r)) return f(e, (t = t.get(n) || null), r, i, null); - So(e, r); - } - return null; - } - function g(i, a, s, u) { - for ( - var l = null, c = null, f = a, g = (a = 0), v = null; - null !== f && g < s.length; - g++ - ) { - f.index > g ? ((v = f), (f = null)) : (v = f.sibling); - var m = h(i, f, s[g], u); - if (null === m) { - null === f && (f = v); - break; - } - t && f && null === m.alternate && e(i, f), - (a = o(m, a, g)), - null === c ? (l = m) : (c.sibling = m), - (c = m), - (f = v); - } - if (g === s.length) return n(i, f), l; - if (null === f) { - for (; g < s.length; g++) - null !== (f = d(i, s[g], u)) && - ((a = o(f, a, g)), - null === c ? (l = f) : (c.sibling = f), - (c = f)); - return l; - } - for (f = r(i, f); g < s.length; g++) - null !== (v = p(f, i, g, s[g], u)) && - (t && - null !== v.alternate && - f.delete(null === v.key ? g : v.key), - (a = o(v, a, g)), - null === c ? (l = v) : (c.sibling = v), - (c = v)); - return ( - t && - f.forEach(function(t) { - return e(i, t); - }), - l - ); - } - function v(i, s, u, l) { - var c = gt(u); - if ('function' != typeof c) throw Error(a(150)); - if (null == (u = c.call(u))) throw Error(a(151)); - for ( - var f = (c = null), g = s, v = (s = 0), m = null, y = u.next(); - null !== g && !y.done; - v++, y = u.next() - ) { - g.index > v ? ((m = g), (g = null)) : (m = g.sibling); - var b = h(i, g, y.value, l); - if (null === b) { - null === g && (g = m); - break; - } - t && g && null === b.alternate && e(i, g), - (s = o(b, s, v)), - null === f ? (c = b) : (f.sibling = b), - (f = b), - (g = m); - } - if (y.done) return n(i, g), c; - if (null === g) { - for (; !y.done; v++, y = u.next()) - null !== (y = d(i, y.value, l)) && - ((s = o(y, s, v)), - null === f ? (c = y) : (f.sibling = y), - (f = y)); - return c; - } - for (g = r(i, g); !y.done; v++, y = u.next()) - null !== (y = p(g, i, v, y.value, l)) && - (t && - null !== y.alternate && - g.delete(null === y.key ? v : y.key), - (s = o(y, s, v)), - null === f ? (c = y) : (f.sibling = y), - (f = y)); - return ( - t && - g.forEach(function(t) { - return e(i, t); - }), - c - ); - } - return function(t, r, o, u) { - var l = - 'object' == typeof o && - null !== o && - o.type === nt && - null === o.key; - l && (o = o.props.children); - var c = 'object' == typeof o && null !== o; - if (c) - switch (o.$$typeof) { - case tt: - t: { - for (c = o.key, l = r; null !== l; ) { - if (l.key === c) { - switch (l.tag) { - case 7: - if (o.type === nt) { - n(t, l.sibling), - ((r = i(l, o.props.children)).return = t), - (t = r); - break t; - } - break; - default: - if (l.elementType === o.type) { - n(t, l.sibling), - ((r = i(l, o.props)).ref = wo(t, l, o)), - (r.return = t), - (t = r); - break t; - } - } - n(t, l); - break; - } - e(t, l), (l = l.sibling); - } - o.type === nt - ? (((r = Cu( - o.props.children, - t.mode, - u, - o.key - )).return = t), - (t = r)) - : (((u = Tu( - o.type, - o.key, - o.props, - null, - t.mode, - u - )).ref = wo(t, r, o)), - (u.return = t), - (t = u)); - } - return s(t); - case et: - t: { - for (l = o.key; null !== r; ) { - if (r.key === l) { - if ( - 4 === r.tag && - r.stateNode.containerInfo === o.containerInfo && - r.stateNode.implementation === o.implementation - ) { - n(t, r.sibling), - ((r = i(r, o.children || [])).return = t), - (t = r); - break t; - } - n(t, r); - break; - } - e(t, r), (r = r.sibling); - } - ((r = Pu(o, t.mode, u)).return = t), (t = r); - } - return s(t); - } - if ('string' == typeof o || 'number' == typeof o) - return ( - (o = '' + o), - null !== r && 6 === r.tag - ? (n(t, r.sibling), ((r = i(r, o)).return = t), (t = r)) - : (n(t, r), ((r = Ou(o, t.mode, u)).return = t), (t = r)), - s(t) - ); - if (xo(o)) return g(t, r, o, u); - if (gt(o)) return v(t, r, o, u); - if ((c && So(t, o), void 0 === o && !l)) - switch (t.tag) { - case 1: - case 0: - throw ((t = t.type), - Error(a(152, t.displayName || t.name || 'Component'))); - } - return n(t, r); - }; - } - var ko = Eo(!0), - Ao = Eo(!1), - To = {}, - Co = { current: To }, - Oo = { current: To }, - Po = { current: To }; - function Mo(t) { - if (t === To) throw Error(a(174)); - return t; - } - function Lo(t, e) { - switch ((li(Po, e), li(Oo, t), li(Co, To), (t = e.nodeType))) { - case 9: - case 11: - e = (e = e.documentElement) ? e.namespaceURI : zt(null, ''); - break; - default: - e = zt( - (e = (t = 8 === t ? e.parentNode : e).namespaceURI || null), - (t = t.tagName) - ); - } - ui(Co), li(Co, e); - } - function Do() { - ui(Co), ui(Oo), ui(Po); - } - function jo(t) { - Mo(Po.current); - var e = Mo(Co.current), - n = zt(e, t.type); - e !== n && (li(Oo, t), li(Co, n)); - } - function Ro(t) { - Oo.current === t && (ui(Co), ui(Oo)); - } - var No = { current: 0 }; - function zo(t) { - for (var e = t; null !== e; ) { - if (13 === e.tag) { - var n = e.memoizedState; - if ( - null !== n && - (null === (n = n.dehydrated) || - '$?' === n.data || - '$!' === n.data) - ) - return e; - } else if (19 === e.tag && void 0 !== e.memoizedProps.revealOrder) { - if (0 != (64 & e.effectTag)) return e; - } else if (null !== e.child) { - (e.child.return = e), (e = e.child); - continue; - } - if (e === t) break; - for (; null === e.sibling; ) { - if (null === e.return || e.return === t) return null; - e = e.return; - } - (e.sibling.return = e.return), (e = e.sibling); - } - return null; - } - function Io(t, e) { - return { responder: t, props: e }; - } - var Fo = Q.ReactCurrentDispatcher, - Vo = Q.ReactCurrentBatchConfig, - Bo = 0, - Go = null, - Ho = null, - Uo = null, - qo = !1; - function Wo() { - throw Error(a(321)); - } - function Xo(t, e) { - if (null === e) return !1; - for (var n = 0; n < e.length && n < t.length; n++) - if (!zr(t[n], e[n])) return !1; - return !0; - } - function Yo(t, e, n, r, i, o) { - if ( - ((Bo = o), - (Go = e), - (e.memoizedState = null), - (e.updateQueue = null), - (e.expirationTime = 0), - (Fo.current = null === t || null === t.memoizedState ? ma : ya), - (t = n(r, i)), - e.expirationTime === Bo) - ) { - o = 0; - do { - if (((e.expirationTime = 0), !(25 > o))) throw Error(a(301)); - (o += 1), - (Uo = Ho = null), - (e.updateQueue = null), - (Fo.current = ba), - (t = n(r, i)); - } while (e.expirationTime === Bo); - } - if ( - ((Fo.current = va), - (e = null !== Ho && null !== Ho.next), - (Bo = 0), - (Uo = Ho = Go = null), - (qo = !1), - e) - ) - throw Error(a(300)); - return t; - } - function $o() { - var t = { - memoizedState: null, - baseState: null, - baseQueue: null, - queue: null, - next: null - }; - return ( - null === Uo ? (Go.memoizedState = Uo = t) : (Uo = Uo.next = t), Uo - ); - } - function Qo() { - if (null === Ho) { - var t = Go.alternate; - t = null !== t ? t.memoizedState : null; - } else t = Ho.next; - var e = null === Uo ? Go.memoizedState : Uo.next; - if (null !== e) (Uo = e), (Ho = t); - else { - if (null === t) throw Error(a(310)); - (t = { - memoizedState: (Ho = t).memoizedState, - baseState: Ho.baseState, - baseQueue: Ho.baseQueue, - queue: Ho.queue, - next: null - }), - null === Uo ? (Go.memoizedState = Uo = t) : (Uo = Uo.next = t); - } - return Uo; - } - function Ko(t, e) { - return 'function' == typeof e ? e(t) : e; - } - function Zo(t) { - var e = Qo(), - n = e.queue; - if (null === n) throw Error(a(311)); - n.lastRenderedReducer = t; - var r = Ho, - i = r.baseQueue, - o = n.pending; - if (null !== o) { - if (null !== i) { - var s = i.next; - (i.next = o.next), (o.next = s); - } - (r.baseQueue = i = o), (n.pending = null); - } - if (null !== i) { - (i = i.next), (r = r.baseState); - var u = (s = o = null), - l = i; - do { - var c = l.expirationTime; - if (c < Bo) { - var f = { - expirationTime: l.expirationTime, - suspenseConfig: l.suspenseConfig, - action: l.action, - eagerReducer: l.eagerReducer, - eagerState: l.eagerState, - next: null - }; - null === u ? ((s = u = f), (o = r)) : (u = u.next = f), - c > Go.expirationTime && ((Go.expirationTime = c), au(c)); - } else - null !== u && - (u = u.next = { - expirationTime: 1073741823, - suspenseConfig: l.suspenseConfig, - action: l.action, - eagerReducer: l.eagerReducer, - eagerState: l.eagerState, - next: null - }), - ou(c, l.suspenseConfig), - (r = l.eagerReducer === t ? l.eagerState : t(r, l.action)); - l = l.next; - } while (null !== l && l !== i); - null === u ? (o = r) : (u.next = s), - zr(r, e.memoizedState) || (Pa = !0), - (e.memoizedState = r), - (e.baseState = o), - (e.baseQueue = u), - (n.lastRenderedState = r); - } - return [e.memoizedState, n.dispatch]; - } - function Jo(t) { - var e = Qo(), - n = e.queue; - if (null === n) throw Error(a(311)); - n.lastRenderedReducer = t; - var r = n.dispatch, - i = n.pending, - o = e.memoizedState; - if (null !== i) { - n.pending = null; - var s = (i = i.next); - do { - (o = t(o, s.action)), (s = s.next); - } while (s !== i); - zr(o, e.memoizedState) || (Pa = !0), - (e.memoizedState = o), - null === e.baseQueue && (e.baseState = o), - (n.lastRenderedState = o); - } - return [o, r]; - } - function ta(t) { - var e = $o(); - return ( - 'function' == typeof t && (t = t()), - (e.memoizedState = e.baseState = t), - (t = (t = e.queue = { - pending: null, - dispatch: null, - lastRenderedReducer: Ko, - lastRenderedState: t - }).dispatch = ga.bind(null, Go, t)), - [e.memoizedState, t] - ); - } - function ea(t, e, n, r) { - return ( - (t = { tag: t, create: e, destroy: n, deps: r, next: null }), - null === (e = Go.updateQueue) - ? ((e = { lastEffect: null }), - (Go.updateQueue = e), - (e.lastEffect = t.next = t)) - : null === (n = e.lastEffect) - ? (e.lastEffect = t.next = t) - : ((r = n.next), (n.next = t), (t.next = r), (e.lastEffect = t)), - t - ); - } - function na() { - return Qo().memoizedState; - } - function ra(t, e, n, r) { - var i = $o(); - (Go.effectTag |= t), - (i.memoizedState = ea(1 | e, n, void 0, void 0 === r ? null : r)); - } - function ia(t, e, n, r) { - var i = Qo(); - r = void 0 === r ? null : r; - var o = void 0; - if (null !== Ho) { - var a = Ho.memoizedState; - if (((o = a.destroy), null !== r && Xo(r, a.deps))) - return void ea(e, n, o, r); - } - (Go.effectTag |= t), (i.memoizedState = ea(1 | e, n, o, r)); - } - function oa(t, e) { - return ra(516, 4, t, e); - } - function aa(t, e) { - return ia(516, 4, t, e); - } - function sa(t, e) { - return ia(4, 2, t, e); - } - function ua(t, e) { - return 'function' == typeof e - ? ((t = t()), - e(t), - function() { - e(null); - }) - : null != e - ? ((t = t()), - (e.current = t), - function() { - e.current = null; - }) - : void 0; - } - function la(t, e, n) { - return ( - (n = null != n ? n.concat([t]) : null), - ia(4, 2, ua.bind(null, e, t), n) - ); - } - function ca() {} - function fa(t, e) { - return ($o().memoizedState = [t, void 0 === e ? null : e]), t; - } - function da(t, e) { - var n = Qo(); - e = void 0 === e ? null : e; - var r = n.memoizedState; - return null !== r && null !== e && Xo(e, r[1]) - ? r[0] - : ((n.memoizedState = [t, e]), t); - } - function ha(t, e) { - var n = Qo(); - e = void 0 === e ? null : e; - var r = n.memoizedState; - return null !== r && null !== e && Xo(e, r[1]) - ? r[0] - : ((t = t()), (n.memoizedState = [t, e]), t); - } - function pa(t, e, n) { - var r = Vi(); - Gi(98 > r ? 98 : r, function() { - t(!0); - }), - Gi(97 < r ? 97 : r, function() { - var r = Vo.suspense; - Vo.suspense = void 0 === e ? null : e; - try { - t(!1), n(); - } finally { - Vo.suspense = r; - } - }); - } - function ga(t, e, n) { - var r = Ws(), - i = ho.suspense; - i = { - expirationTime: (r = Xs(r, t, i)), - suspenseConfig: i, - action: n, - eagerReducer: null, - eagerState: null, - next: null - }; - var o = e.pending; - if ( - (null === o ? (i.next = i) : ((i.next = o.next), (o.next = i)), - (e.pending = i), - (o = t.alternate), - t === Go || (null !== o && o === Go)) - ) - (qo = !0), (i.expirationTime = Bo), (Go.expirationTime = Bo); - else { - if ( - 0 === t.expirationTime && - (null === o || 0 === o.expirationTime) && - null !== (o = e.lastRenderedReducer) - ) - try { - var a = e.lastRenderedState, - s = o(a, n); - if (((i.eagerReducer = o), (i.eagerState = s), zr(s, a))) return; - } catch (t) {} - Ys(t, r); - } - } - var va = { - readContext: ro, - useCallback: Wo, - useContext: Wo, - useEffect: Wo, - useImperativeHandle: Wo, - useLayoutEffect: Wo, - useMemo: Wo, - useReducer: Wo, - useRef: Wo, - useState: Wo, - useDebugValue: Wo, - useResponder: Wo, - useDeferredValue: Wo, - useTransition: Wo - }, - ma = { - readContext: ro, - useCallback: fa, - useContext: ro, - useEffect: oa, - useImperativeHandle: function(t, e, n) { - return ( - (n = null != n ? n.concat([t]) : null), - ra(4, 2, ua.bind(null, e, t), n) - ); - }, - useLayoutEffect: function(t, e) { - return ra(4, 2, t, e); - }, - useMemo: function(t, e) { - var n = $o(); - return ( - (e = void 0 === e ? null : e), - (t = t()), - (n.memoizedState = [t, e]), - t - ); - }, - useReducer: function(t, e, n) { - var r = $o(); - return ( - (e = void 0 !== n ? n(e) : e), - (r.memoizedState = r.baseState = e), - (t = (t = r.queue = { - pending: null, - dispatch: null, - lastRenderedReducer: t, - lastRenderedState: e - }).dispatch = ga.bind(null, Go, t)), - [r.memoizedState, t] - ); - }, - useRef: function(t) { - return (t = { current: t }), ($o().memoizedState = t); - }, - useState: ta, - useDebugValue: ca, - useResponder: Io, - useDeferredValue: function(t, e) { - var n = ta(t), - r = n[0], - i = n[1]; - return ( - oa( - function() { - var n = Vo.suspense; - Vo.suspense = void 0 === e ? null : e; - try { - i(t); - } finally { - Vo.suspense = n; - } - }, - [t, e] - ), - r - ); - }, - useTransition: function(t) { - var e = ta(!1), - n = e[0]; - return (e = e[1]), [fa(pa.bind(null, e, t), [e, t]), n]; - } - }, - ya = { - readContext: ro, - useCallback: da, - useContext: ro, - useEffect: aa, - useImperativeHandle: la, - useLayoutEffect: sa, - useMemo: ha, - useReducer: Zo, - useRef: na, - useState: function() { - return Zo(Ko); - }, - useDebugValue: ca, - useResponder: Io, - useDeferredValue: function(t, e) { - var n = Zo(Ko), - r = n[0], - i = n[1]; - return ( - aa( - function() { - var n = Vo.suspense; - Vo.suspense = void 0 === e ? null : e; - try { - i(t); - } finally { - Vo.suspense = n; - } - }, - [t, e] - ), - r - ); - }, - useTransition: function(t) { - var e = Zo(Ko), - n = e[0]; - return (e = e[1]), [da(pa.bind(null, e, t), [e, t]), n]; - } - }, - ba = { - readContext: ro, - useCallback: da, - useContext: ro, - useEffect: aa, - useImperativeHandle: la, - useLayoutEffect: sa, - useMemo: ha, - useReducer: Jo, - useRef: na, - useState: function() { - return Jo(Ko); - }, - useDebugValue: ca, - useResponder: Io, - useDeferredValue: function(t, e) { - var n = Jo(Ko), - r = n[0], - i = n[1]; - return ( - aa( - function() { - var n = Vo.suspense; - Vo.suspense = void 0 === e ? null : e; - try { - i(t); - } finally { - Vo.suspense = n; - } - }, - [t, e] - ), - r - ); - }, - useTransition: function(t) { - var e = Jo(Ko), - n = e[0]; - return (e = e[1]), [da(pa.bind(null, e, t), [e, t]), n]; - } - }, - _a = null, - xa = null, - wa = !1; - function Sa(t, e) { - var n = Eu(5, null, null, 0); - (n.elementType = 'DELETED'), - (n.type = 'DELETED'), - (n.stateNode = e), - (n.return = t), - (n.effectTag = 8), - null !== t.lastEffect - ? ((t.lastEffect.nextEffect = n), (t.lastEffect = n)) - : (t.firstEffect = t.lastEffect = n); - } - function Ea(t, e) { - switch (t.tag) { - case 5: - var n = t.type; - return ( - null !== - (e = - 1 !== e.nodeType || - n.toLowerCase() !== e.nodeName.toLowerCase() - ? null - : e) && ((t.stateNode = e), !0) - ); - case 6: - return ( - null !== - (e = '' === t.pendingProps || 3 !== e.nodeType ? null : e) && - ((t.stateNode = e), !0) - ); - case 13: - default: - return !1; - } - } - function ka(t) { - if (wa) { - var e = xa; - if (e) { - var n = e; - if (!Ea(t, e)) { - if (!(e = xn(n.nextSibling)) || !Ea(t, e)) - return ( - (t.effectTag = (-1025 & t.effectTag) | 2), - (wa = !1), - void (_a = t) - ); - Sa(_a, n); - } - (_a = t), (xa = xn(e.firstChild)); - } else (t.effectTag = (-1025 & t.effectTag) | 2), (wa = !1), (_a = t); - } - } - function Aa(t) { - for ( - t = t.return; - null !== t && 5 !== t.tag && 3 !== t.tag && 13 !== t.tag; - - ) - t = t.return; - _a = t; - } - function Ta(t) { - if (t !== _a) return !1; - if (!wa) return Aa(t), (wa = !0), !1; - var e = t.type; - if ( - 5 !== t.tag || - ('head' !== e && 'body' !== e && !yn(e, t.memoizedProps)) - ) - for (e = xa; e; ) Sa(t, e), (e = xn(e.nextSibling)); - if ((Aa(t), 13 === t.tag)) { - if (!(t = null !== (t = t.memoizedState) ? t.dehydrated : null)) - throw Error(a(317)); - t: { - for (t = t.nextSibling, e = 0; t; ) { - if (8 === t.nodeType) { - var n = t.data; - if ('/$' === n) { - if (0 === e) { - xa = xn(t.nextSibling); - break t; - } - e--; - } else ('$' !== n && '$!' !== n && '$?' !== n) || e++; - } - t = t.nextSibling; - } - xa = null; - } - } else xa = _a ? xn(t.stateNode.nextSibling) : null; - return !0; - } - function Ca() { - (xa = _a = null), (wa = !1); - } - var Oa = Q.ReactCurrentOwner, - Pa = !1; - function Ma(t, e, n, r) { - e.child = null === t ? Ao(e, null, n, r) : ko(e, t.child, n, r); - } - function La(t, e, n, r, i) { - n = n.render; - var o = e.ref; - return ( - no(e, i), - (r = Yo(t, e, n, r, o, i)), - null === t || Pa - ? ((e.effectTag |= 1), Ma(t, e, r, i), e.child) - : ((e.updateQueue = t.updateQueue), - (e.effectTag &= -517), - t.expirationTime <= i && (t.expirationTime = 0), - Ya(t, e, i)) - ); - } - function Da(t, e, n, r, i, o) { - if (null === t) { - var a = n.type; - return 'function' != typeof a || - ku(a) || - void 0 !== a.defaultProps || - null !== n.compare || - void 0 !== n.defaultProps - ? (((t = Tu(n.type, null, r, null, e.mode, o)).ref = e.ref), - (t.return = e), - (e.child = t)) - : ((e.tag = 15), (e.type = a), ja(t, e, a, r, i, o)); - } - return ( - (a = t.child), - i < o && - ((i = a.memoizedProps), - (n = null !== (n = n.compare) ? n : Fr)(i, r) && t.ref === e.ref) - ? Ya(t, e, o) - : ((e.effectTag |= 1), - ((t = Au(a, r)).ref = e.ref), - (t.return = e), - (e.child = t)) - ); - } - function ja(t, e, n, r, i, o) { - return null !== t && - Fr(t.memoizedProps, r) && - t.ref === e.ref && - ((Pa = !1), i < o) - ? ((e.expirationTime = t.expirationTime), Ya(t, e, o)) - : Na(t, e, n, r, o); - } - function Ra(t, e) { - var n = e.ref; - ((null === t && null !== n) || (null !== t && t.ref !== n)) && - (e.effectTag |= 128); - } - function Na(t, e, n, r, i) { - var o = gi(n) ? hi : fi.current; - return ( - (o = pi(e, o)), - no(e, i), - (n = Yo(t, e, n, r, o, i)), - null === t || Pa - ? ((e.effectTag |= 1), Ma(t, e, n, i), e.child) - : ((e.updateQueue = t.updateQueue), - (e.effectTag &= -517), - t.expirationTime <= i && (t.expirationTime = 0), - Ya(t, e, i)) - ); - } - function za(t, e, n, r, i) { - if (gi(n)) { - var o = !0; - bi(e); - } else o = !1; - if ((no(e, i), null === e.stateNode)) - null !== t && - ((t.alternate = null), (e.alternate = null), (e.effectTag |= 2)), - yo(e, n, r), - _o(e, n, r, i), - (r = !0); - else if (null === t) { - var a = e.stateNode, - s = e.memoizedProps; - a.props = s; - var u = a.context, - l = n.contextType; - 'object' == typeof l && null !== l - ? (l = ro(l)) - : (l = pi(e, (l = gi(n) ? hi : fi.current))); - var c = n.getDerivedStateFromProps, - f = - 'function' == typeof c || - 'function' == typeof a.getSnapshotBeforeUpdate; - f || - ('function' != typeof a.UNSAFE_componentWillReceiveProps && - 'function' != typeof a.componentWillReceiveProps) || - ((s !== r || u !== l) && bo(e, a, r, l)), - (io = !1); - var d = e.memoizedState; - (a.state = d), - co(e, r, a, i), - (u = e.memoizedState), - s !== r || d !== u || di.current || io - ? ('function' == typeof c && - (go(e, n, c, r), (u = e.memoizedState)), - (s = io || mo(e, n, s, r, d, u, l)) - ? (f || - ('function' != typeof a.UNSAFE_componentWillMount && - 'function' != typeof a.componentWillMount) || - ('function' == typeof a.componentWillMount && - a.componentWillMount(), - 'function' == typeof a.UNSAFE_componentWillMount && - a.UNSAFE_componentWillMount()), - 'function' == typeof a.componentDidMount && - (e.effectTag |= 4)) - : ('function' == typeof a.componentDidMount && - (e.effectTag |= 4), - (e.memoizedProps = r), - (e.memoizedState = u)), - (a.props = r), - (a.state = u), - (a.context = l), - (r = s)) - : ('function' == typeof a.componentDidMount && (e.effectTag |= 4), - (r = !1)); - } else - (a = e.stateNode), - ao(t, e), - (s = e.memoizedProps), - (a.props = e.type === e.elementType ? s : Yi(e.type, s)), - (u = a.context), - 'object' == typeof (l = n.contextType) && null !== l - ? (l = ro(l)) - : (l = pi(e, (l = gi(n) ? hi : fi.current))), - (f = - 'function' == typeof (c = n.getDerivedStateFromProps) || - 'function' == typeof a.getSnapshotBeforeUpdate) || - ('function' != typeof a.UNSAFE_componentWillReceiveProps && - 'function' != typeof a.componentWillReceiveProps) || - ((s !== r || u !== l) && bo(e, a, r, l)), - (io = !1), - (u = e.memoizedState), - (a.state = u), - co(e, r, a, i), - (d = e.memoizedState), - s !== r || u !== d || di.current || io - ? ('function' == typeof c && - (go(e, n, c, r), (d = e.memoizedState)), - (c = io || mo(e, n, s, r, u, d, l)) - ? (f || - ('function' != typeof a.UNSAFE_componentWillUpdate && - 'function' != typeof a.componentWillUpdate) || - ('function' == typeof a.componentWillUpdate && - a.componentWillUpdate(r, d, l), - 'function' == typeof a.UNSAFE_componentWillUpdate && - a.UNSAFE_componentWillUpdate(r, d, l)), - 'function' == typeof a.componentDidUpdate && - (e.effectTag |= 4), - 'function' == typeof a.getSnapshotBeforeUpdate && - (e.effectTag |= 256)) - : ('function' != typeof a.componentDidUpdate || - (s === t.memoizedProps && u === t.memoizedState) || - (e.effectTag |= 4), - 'function' != typeof a.getSnapshotBeforeUpdate || - (s === t.memoizedProps && u === t.memoizedState) || - (e.effectTag |= 256), - (e.memoizedProps = r), - (e.memoizedState = d)), - (a.props = r), - (a.state = d), - (a.context = l), - (r = c)) - : ('function' != typeof a.componentDidUpdate || - (s === t.memoizedProps && u === t.memoizedState) || - (e.effectTag |= 4), - 'function' != typeof a.getSnapshotBeforeUpdate || - (s === t.memoizedProps && u === t.memoizedState) || - (e.effectTag |= 256), - (r = !1)); - return Ia(t, e, n, r, o, i); - } - function Ia(t, e, n, r, i, o) { - Ra(t, e); - var a = 0 != (64 & e.effectTag); - if (!r && !a) return i && _i(e, n, !1), Ya(t, e, o); - (r = e.stateNode), (Oa.current = e); - var s = - a && 'function' != typeof n.getDerivedStateFromError - ? null - : r.render(); - return ( - (e.effectTag |= 1), - null !== t && a - ? ((e.child = ko(e, t.child, null, o)), - (e.child = ko(e, null, s, o))) - : Ma(t, e, s, o), - (e.memoizedState = r.state), - i && _i(e, n, !0), - e.child - ); - } - function Fa(t) { - var e = t.stateNode; - e.pendingContext - ? mi(0, e.pendingContext, e.pendingContext !== e.context) - : e.context && mi(0, e.context, !1), - Lo(t, e.containerInfo); - } - var Va, - Ba, - Ga, - Ha = { dehydrated: null, retryTime: 0 }; - function Ua(t, e, n) { - var r, - i = e.mode, - o = e.pendingProps, - a = No.current, - s = !1; - if ( - ((r = 0 != (64 & e.effectTag)) || - (r = 0 != (2 & a) && (null === t || null !== t.memoizedState)), - r - ? ((s = !0), (e.effectTag &= -65)) - : (null !== t && null === t.memoizedState) || - void 0 === o.fallback || - !0 === o.unstable_avoidThisFallback || - (a |= 1), - li(No, 1 & a), - null === t) - ) { - if ((void 0 !== o.fallback && ka(e), s)) { - if ( - ((s = o.fallback), - ((o = Cu(null, i, 0, null)).return = e), - 0 == (2 & e.mode)) - ) - for ( - t = null !== e.memoizedState ? e.child.child : e.child, - o.child = t; - null !== t; - - ) - (t.return = o), (t = t.sibling); - return ( - ((n = Cu(s, i, n, null)).return = e), - (o.sibling = n), - (e.memoizedState = Ha), - (e.child = o), - n - ); - } - return ( - (i = o.children), - (e.memoizedState = null), - (e.child = Ao(e, null, i, n)) - ); - } - if (null !== t.memoizedState) { - if (((i = (t = t.child).sibling), s)) { - if ( - ((o = o.fallback), - ((n = Au(t, t.pendingProps)).return = e), - 0 == (2 & e.mode) && - (s = null !== e.memoizedState ? e.child.child : e.child) !== - t.child) - ) - for (n.child = s; null !== s; ) (s.return = n), (s = s.sibling); - return ( - ((i = Au(i, o)).return = e), - (n.sibling = i), - (n.childExpirationTime = 0), - (e.memoizedState = Ha), - (e.child = n), - i - ); - } - return ( - (n = ko(e, t.child, o.children, n)), - (e.memoizedState = null), - (e.child = n) - ); - } - if (((t = t.child), s)) { - if ( - ((s = o.fallback), - ((o = Cu(null, i, 0, null)).return = e), - (o.child = t), - null !== t && (t.return = o), - 0 == (2 & e.mode)) - ) - for ( - t = null !== e.memoizedState ? e.child.child : e.child, - o.child = t; - null !== t; - - ) - (t.return = o), (t = t.sibling); - return ( - ((n = Cu(s, i, n, null)).return = e), - (o.sibling = n), - (n.effectTag |= 2), - (o.childExpirationTime = 0), - (e.memoizedState = Ha), - (e.child = o), - n - ); - } - return (e.memoizedState = null), (e.child = ko(e, t, o.children, n)); - } - function qa(t, e) { - t.expirationTime < e && (t.expirationTime = e); - var n = t.alternate; - null !== n && n.expirationTime < e && (n.expirationTime = e), - eo(t.return, e); - } - function Wa(t, e, n, r, i, o) { - var a = t.memoizedState; - null === a - ? (t.memoizedState = { - isBackwards: e, - rendering: null, - renderingStartTime: 0, - last: r, - tail: n, - tailExpiration: 0, - tailMode: i, - lastEffect: o - }) - : ((a.isBackwards = e), - (a.rendering = null), - (a.renderingStartTime = 0), - (a.last = r), - (a.tail = n), - (a.tailExpiration = 0), - (a.tailMode = i), - (a.lastEffect = o)); - } - function Xa(t, e, n) { - var r = e.pendingProps, - i = r.revealOrder, - o = r.tail; - if ((Ma(t, e, r.children, n), 0 != (2 & (r = No.current)))) - (r = (1 & r) | 2), (e.effectTag |= 64); - else { - if (null !== t && 0 != (64 & t.effectTag)) - t: for (t = e.child; null !== t; ) { - if (13 === t.tag) null !== t.memoizedState && qa(t, n); - else if (19 === t.tag) qa(t, n); - else if (null !== t.child) { - (t.child.return = t), (t = t.child); - continue; - } - if (t === e) break t; - for (; null === t.sibling; ) { - if (null === t.return || t.return === e) break t; - t = t.return; - } - (t.sibling.return = t.return), (t = t.sibling); - } - r &= 1; - } - if ((li(No, r), 0 == (2 & e.mode))) e.memoizedState = null; - else - switch (i) { - case 'forwards': - for (n = e.child, i = null; null !== n; ) - null !== (t = n.alternate) && null === zo(t) && (i = n), - (n = n.sibling); - null === (n = i) - ? ((i = e.child), (e.child = null)) - : ((i = n.sibling), (n.sibling = null)), - Wa(e, !1, i, n, o, e.lastEffect); - break; - case 'backwards': - for (n = null, i = e.child, e.child = null; null !== i; ) { - if (null !== (t = i.alternate) && null === zo(t)) { - e.child = i; - break; - } - (t = i.sibling), (i.sibling = n), (n = i), (i = t); - } - Wa(e, !0, n, null, o, e.lastEffect); - break; - case 'together': - Wa(e, !1, null, null, void 0, e.lastEffect); - break; - default: - e.memoizedState = null; - } - return e.child; - } - function Ya(t, e, n) { - null !== t && (e.dependencies = t.dependencies); - var r = e.expirationTime; - if ((0 !== r && au(r), e.childExpirationTime < n)) return null; - if (null !== t && e.child !== t.child) throw Error(a(153)); - if (null !== e.child) { - for ( - n = Au((t = e.child), t.pendingProps), e.child = n, n.return = e; - null !== t.sibling; - - ) - (t = t.sibling), - ((n = n.sibling = Au(t, t.pendingProps)).return = e); - n.sibling = null; - } - return e.child; - } - function $a(t, e) { - switch (t.tailMode) { - case 'hidden': - e = t.tail; - for (var n = null; null !== e; ) - null !== e.alternate && (n = e), (e = e.sibling); - null === n ? (t.tail = null) : (n.sibling = null); - break; - case 'collapsed': - n = t.tail; - for (var r = null; null !== n; ) - null !== n.alternate && (r = n), (n = n.sibling); - null === r - ? e || null === t.tail - ? (t.tail = null) - : (t.tail.sibling = null) - : (r.sibling = null); - } - } - function Qa(t, e, n) { - var r = e.pendingProps; - switch (e.tag) { - case 2: - case 16: - case 15: - case 0: - case 11: - case 7: - case 8: - case 12: - case 9: - case 14: - return null; - case 1: - return gi(e.type) && vi(), null; - case 3: - return ( - Do(), - ui(di), - ui(fi), - (n = e.stateNode).pendingContext && - ((n.context = n.pendingContext), (n.pendingContext = null)), - (null !== t && null !== t.child) || !Ta(e) || (e.effectTag |= 4), - null - ); - case 5: - Ro(e), (n = Mo(Po.current)); - var o = e.type; - if (null !== t && null != e.stateNode) - Ba(t, e, o, r, n), t.ref !== e.ref && (e.effectTag |= 128); - else { - if (!r) { - if (null === e.stateNode) throw Error(a(166)); - return null; - } - if (((t = Mo(Co.current)), Ta(e))) { - (r = e.stateNode), (o = e.type); - var s = e.memoizedProps; - switch (((r[En] = e), (r[kn] = s), o)) { - case 'iframe': - case 'object': - case 'embed': - Xe('load', r); - break; - case 'video': - case 'audio': - for (t = 0; t < Qt.length; t++) Xe(Qt[t], r); - break; - case 'source': - Xe('error', r); - break; - case 'img': - case 'image': - case 'link': - Xe('error', r), Xe('load', r); - break; - case 'form': - Xe('reset', r), Xe('submit', r); - break; - case 'details': - Xe('toggle', r); - break; - case 'input': - St(r, s), Xe('invalid', r), un(n, 'onChange'); - break; - case 'select': - (r._wrapperState = { wasMultiple: !!s.multiple }), - Xe('invalid', r), - un(n, 'onChange'); - break; - case 'textarea': - Mt(r, s), Xe('invalid', r), un(n, 'onChange'); - } - for (var u in (on(o, s), (t = null), s)) - if (s.hasOwnProperty(u)) { - var l = s[u]; - 'children' === u - ? 'string' == typeof l - ? r.textContent !== l && (t = ['children', l]) - : 'number' == typeof l && - r.textContent !== '' + l && - (t = ['children', '' + l]) - : E.hasOwnProperty(u) && null != l && un(n, u); - } - switch (o) { - case 'input': - _t(r), At(r, s, !0); - break; - case 'textarea': - _t(r), Dt(r); - break; - case 'select': - case 'option': - break; - default: - 'function' == typeof s.onClick && (r.onclick = ln); - } - (n = t), (e.updateQueue = n), null !== n && (e.effectTag |= 4); - } else { - switch ( - ((u = 9 === n.nodeType ? n : n.ownerDocument), - t === sn && (t = Nt(o)), - t === sn - ? 'script' === o - ? (((t = u.createElement('div')).innerHTML = - ''), - (t = t.removeChild(t.firstChild))) - : 'string' == typeof r.is - ? (t = u.createElement(o, { is: r.is })) - : ((t = u.createElement(o)), - 'select' === o && - ((u = t), - r.multiple - ? (u.multiple = !0) - : r.size && (u.size = r.size))) - : (t = u.createElementNS(t, o)), - (t[En] = e), - (t[kn] = r), - Va(t, e), - (e.stateNode = t), - (u = an(o, r)), - o) - ) { - case 'iframe': - case 'object': - case 'embed': - Xe('load', t), (l = r); - break; - case 'video': - case 'audio': - for (l = 0; l < Qt.length; l++) Xe(Qt[l], t); - l = r; - break; - case 'source': - Xe('error', t), (l = r); - break; - case 'img': - case 'image': - case 'link': - Xe('error', t), Xe('load', t), (l = r); - break; - case 'form': - Xe('reset', t), Xe('submit', t), (l = r); - break; - case 'details': - Xe('toggle', t), (l = r); - break; - case 'input': - St(t, r), - (l = wt(t, r)), - Xe('invalid', t), - un(n, 'onChange'); - break; - case 'option': - l = Ct(t, r); - break; - case 'select': - (t._wrapperState = { wasMultiple: !!r.multiple }), - (l = i({}, r, { value: void 0 })), - Xe('invalid', t), - un(n, 'onChange'); - break; - case 'textarea': - Mt(t, r), - (l = Pt(t, r)), - Xe('invalid', t), - un(n, 'onChange'); - break; - default: - l = r; - } - on(o, l); - var c = l; - for (s in c) - if (c.hasOwnProperty(s)) { - var f = c[s]; - 'style' === s - ? nn(t, f) - : 'dangerouslySetInnerHTML' === s - ? null != (f = f ? f.__html : void 0) && Ft(t, f) - : 'children' === s - ? 'string' == typeof f - ? ('textarea' !== o || '' !== f) && Vt(t, f) - : 'number' == typeof f && Vt(t, '' + f) - : 'suppressContentEditableWarning' !== s && - 'suppressHydrationWarning' !== s && - 'autoFocus' !== s && - (E.hasOwnProperty(s) - ? null != f && un(n, s) - : null != f && K(t, s, f, u)); - } - switch (o) { - case 'input': - _t(t), At(t, r, !1); - break; - case 'textarea': - _t(t), Dt(t); - break; - case 'option': - null != r.value && - t.setAttribute('value', '' + yt(r.value)); - break; - case 'select': - (t.multiple = !!r.multiple), - null != (n = r.value) - ? Ot(t, !!r.multiple, n, !1) - : null != r.defaultValue && - Ot(t, !!r.multiple, r.defaultValue, !0); - break; - default: - 'function' == typeof l.onClick && (t.onclick = ln); - } - mn(o, r) && (e.effectTag |= 4); - } - null !== e.ref && (e.effectTag |= 128); - } - return null; - case 6: - if (t && null != e.stateNode) Ga(0, e, t.memoizedProps, r); - else { - if ('string' != typeof r && null === e.stateNode) - throw Error(a(166)); - (n = Mo(Po.current)), - Mo(Co.current), - Ta(e) - ? ((n = e.stateNode), - (r = e.memoizedProps), - (n[En] = e), - n.nodeValue !== r && (e.effectTag |= 4)) - : (((n = (9 === n.nodeType - ? n - : n.ownerDocument - ).createTextNode(r))[En] = e), - (e.stateNode = n)); - } - return null; - case 13: - return ( - ui(No), - (r = e.memoizedState), - 0 != (64 & e.effectTag) - ? ((e.expirationTime = n), e) - : ((n = null !== r), - (r = !1), - null === t - ? void 0 !== e.memoizedProps.fallback && Ta(e) - : ((r = null !== (o = t.memoizedState)), - n || - null === o || - (null !== (o = t.child.sibling) && - (null !== (s = e.firstEffect) - ? ((e.firstEffect = o), (o.nextEffect = s)) - : ((e.firstEffect = e.lastEffect = o), - (o.nextEffect = null)), - (o.effectTag = 8)))), - n && - !r && - 0 != (2 & e.mode) && - ((null === t && - !0 !== e.memoizedProps.unstable_avoidThisFallback) || - 0 != (1 & No.current) - ? Ts === _s && (Ts = xs) - : ((Ts !== _s && Ts !== xs) || (Ts = ws), - 0 !== Ls && null !== Es && (Du(Es, As), ju(Es, Ls)))), - (n || r) && (e.effectTag |= 4), - null) - ); - case 4: - return Do(), null; - case 10: - return to(e), null; - case 17: - return gi(e.type) && vi(), null; - case 19: - if ((ui(No), null === (r = e.memoizedState))) return null; - if (((o = 0 != (64 & e.effectTag)), null === (s = r.rendering))) { - if (o) $a(r, !1); - else if (Ts !== _s || (null !== t && 0 != (64 & t.effectTag))) - for (s = e.child; null !== s; ) { - if (null !== (t = zo(s))) { - for ( - e.effectTag |= 64, - $a(r, !1), - null !== (o = t.updateQueue) && - ((e.updateQueue = o), (e.effectTag |= 4)), - null === r.lastEffect && (e.firstEffect = null), - e.lastEffect = r.lastEffect, - r = e.child; - null !== r; - - ) - (s = n), - ((o = r).effectTag &= 2), - (o.nextEffect = null), - (o.firstEffect = null), - (o.lastEffect = null), - null === (t = o.alternate) - ? ((o.childExpirationTime = 0), - (o.expirationTime = s), - (o.child = null), - (o.memoizedProps = null), - (o.memoizedState = null), - (o.updateQueue = null), - (o.dependencies = null)) - : ((o.childExpirationTime = t.childExpirationTime), - (o.expirationTime = t.expirationTime), - (o.child = t.child), - (o.memoizedProps = t.memoizedProps), - (o.memoizedState = t.memoizedState), - (o.updateQueue = t.updateQueue), - (s = t.dependencies), - (o.dependencies = - null === s - ? null - : { - expirationTime: s.expirationTime, - firstContext: s.firstContext, - responders: s.responders - })), - (r = r.sibling); - return li(No, (1 & No.current) | 2), e.child; - } - s = s.sibling; - } - } else { - if (!o) - if (null !== (t = zo(s))) { - if ( - ((e.effectTag |= 64), - (o = !0), - null !== (n = t.updateQueue) && - ((e.updateQueue = n), (e.effectTag |= 4)), - $a(r, !0), - null === r.tail && 'hidden' === r.tailMode && !s.alternate) - ) - return ( - null !== (e = e.lastEffect = r.lastEffect) && - (e.nextEffect = null), - null - ); - } else - 2 * Fi() - r.renderingStartTime > r.tailExpiration && - 1 < n && - ((e.effectTag |= 64), - (o = !0), - $a(r, !1), - (e.expirationTime = e.childExpirationTime = n - 1)); - r.isBackwards - ? ((s.sibling = e.child), (e.child = s)) - : (null !== (n = r.last) ? (n.sibling = s) : (e.child = s), - (r.last = s)); - } - return null !== r.tail - ? (0 === r.tailExpiration && (r.tailExpiration = Fi() + 500), - (n = r.tail), - (r.rendering = n), - (r.tail = n.sibling), - (r.lastEffect = e.lastEffect), - (r.renderingStartTime = Fi()), - (n.sibling = null), - (e = No.current), - li(No, o ? (1 & e) | 2 : 1 & e), - n) - : null; - } - throw Error(a(156, e.tag)); - } - function Ka(t) { - switch (t.tag) { - case 1: - gi(t.type) && vi(); - var e = t.effectTag; - return 4096 & e ? ((t.effectTag = (-4097 & e) | 64), t) : null; - case 3: - if ((Do(), ui(di), ui(fi), 0 != (64 & (e = t.effectTag)))) - throw Error(a(285)); - return (t.effectTag = (-4097 & e) | 64), t; - case 5: - return Ro(t), null; - case 13: - return ( - ui(No), - 4096 & (e = t.effectTag) - ? ((t.effectTag = (-4097 & e) | 64), t) - : null - ); - case 19: - return ui(No), null; - case 4: - return Do(), null; - case 10: - return to(t), null; - default: - return null; - } - } - function Za(t, e) { - return { value: t, source: e, stack: mt(e) }; - } - (Va = function(t, e) { - for (var n = e.child; null !== n; ) { - if (5 === n.tag || 6 === n.tag) t.appendChild(n.stateNode); - else if (4 !== n.tag && null !== n.child) { - (n.child.return = n), (n = n.child); - continue; - } - if (n === e) break; - for (; null === n.sibling; ) { - if (null === n.return || n.return === e) return; - n = n.return; - } - (n.sibling.return = n.return), (n = n.sibling); - } - }), - (Ba = function(t, e, n, r, o) { - var a = t.memoizedProps; - if (a !== r) { - var s, - u, - l = e.stateNode; - switch ((Mo(Co.current), (t = null), n)) { - case 'input': - (a = wt(l, a)), (r = wt(l, r)), (t = []); - break; - case 'option': - (a = Ct(l, a)), (r = Ct(l, r)), (t = []); - break; - case 'select': - (a = i({}, a, { value: void 0 })), - (r = i({}, r, { value: void 0 })), - (t = []); - break; - case 'textarea': - (a = Pt(l, a)), (r = Pt(l, r)), (t = []); - break; - default: - 'function' != typeof a.onClick && - 'function' == typeof r.onClick && - (l.onclick = ln); - } - for (s in (on(n, r), (n = null), a)) - if (!r.hasOwnProperty(s) && a.hasOwnProperty(s) && null != a[s]) - if ('style' === s) - for (u in (l = a[s])) - l.hasOwnProperty(u) && (n || (n = {}), (n[u] = '')); - else - 'dangerouslySetInnerHTML' !== s && - 'children' !== s && - 'suppressContentEditableWarning' !== s && - 'suppressHydrationWarning' !== s && - 'autoFocus' !== s && - (E.hasOwnProperty(s) - ? t || (t = []) - : (t = t || []).push(s, null)); - for (s in r) { - var c = r[s]; - if ( - ((l = null != a ? a[s] : void 0), - r.hasOwnProperty(s) && c !== l && (null != c || null != l)) - ) - if ('style' === s) - if (l) { - for (u in l) - !l.hasOwnProperty(u) || - (c && c.hasOwnProperty(u)) || - (n || (n = {}), (n[u] = '')); - for (u in c) - c.hasOwnProperty(u) && - l[u] !== c[u] && - (n || (n = {}), (n[u] = c[u])); - } else n || (t || (t = []), t.push(s, n)), (n = c); - else - 'dangerouslySetInnerHTML' === s - ? ((c = c ? c.__html : void 0), - (l = l ? l.__html : void 0), - null != c && l !== c && (t = t || []).push(s, c)) - : 'children' === s - ? l === c || - ('string' != typeof c && 'number' != typeof c) || - (t = t || []).push(s, '' + c) - : 'suppressContentEditableWarning' !== s && - 'suppressHydrationWarning' !== s && - (E.hasOwnProperty(s) - ? (null != c && un(o, s), t || l === c || (t = [])) - : (t = t || []).push(s, c)); - } - n && (t = t || []).push('style', n), - (o = t), - (e.updateQueue = o) && (e.effectTag |= 4); - } - }), - (Ga = function(t, e, n, r) { - n !== r && (e.effectTag |= 4); - }); - var Ja = 'function' == typeof WeakSet ? WeakSet : Set; - function ts(t, e) { - var n = e.source, - r = e.stack; - null === r && null !== n && (r = mt(n)), - null !== n && vt(n.type), - (e = e.value), - null !== t && 1 === t.tag && vt(t.type); - try { - console.error(e); - } catch (t) { - setTimeout(function() { - throw t; - }); - } - } - function es(t) { - var e = t.ref; - if (null !== e) - if ('function' == typeof e) - try { - e(null); - } catch (e) { - yu(t, e); - } - else e.current = null; - } - function ns(t, e) { - switch (e.tag) { - case 0: - case 11: - case 15: - case 22: - return; - case 1: - if (256 & e.effectTag && null !== t) { - var n = t.memoizedProps, - r = t.memoizedState; - (e = (t = e.stateNode).getSnapshotBeforeUpdate( - e.elementType === e.type ? n : Yi(e.type, n), - r - )), - (t.__reactInternalSnapshotBeforeUpdate = e); - } - return; - case 3: - case 5: - case 6: - case 4: - case 17: - return; - } - throw Error(a(163)); - } - function rs(t, e) { - if (null !== (e = null !== (e = e.updateQueue) ? e.lastEffect : null)) { - var n = (e = e.next); - do { - if ((n.tag & t) === t) { - var r = n.destroy; - (n.destroy = void 0), void 0 !== r && r(); - } - n = n.next; - } while (n !== e); - } - } - function is(t, e) { - if (null !== (e = null !== (e = e.updateQueue) ? e.lastEffect : null)) { - var n = (e = e.next); - do { - if ((n.tag & t) === t) { - var r = n.create; - n.destroy = r(); - } - n = n.next; - } while (n !== e); - } - } - function os(t, e, n) { - switch (n.tag) { - case 0: - case 11: - case 15: - case 22: - return void is(3, n); - case 1: - if (((t = n.stateNode), 4 & n.effectTag)) - if (null === e) t.componentDidMount(); - else { - var r = - n.elementType === n.type - ? e.memoizedProps - : Yi(n.type, e.memoizedProps); - t.componentDidUpdate( - r, - e.memoizedState, - t.__reactInternalSnapshotBeforeUpdate - ); - } - return void (null !== (e = n.updateQueue) && fo(n, e, t)); - case 3: - if (null !== (e = n.updateQueue)) { - if (((t = null), null !== n.child)) - switch (n.child.tag) { - case 5: - t = n.child.stateNode; - break; - case 1: - t = n.child.stateNode; - } - fo(n, e, t); - } - return; - case 5: - return ( - (t = n.stateNode), - void ( - null === e && - 4 & n.effectTag && - mn(n.type, n.memoizedProps) && - t.focus() - ) - ); - case 6: - case 4: - case 12: - return; - case 13: - return void ( - null === n.memoizedState && - ((n = n.alternate), - null !== n && - ((n = n.memoizedState), - null !== n && ((n = n.dehydrated), null !== n && Ne(n)))) - ); - case 19: - case 17: - case 20: - case 21: - return; - } - throw Error(a(163)); - } - function as(t, e, n) { - switch (('function' == typeof wu && wu(e), e.tag)) { - case 0: - case 11: - case 14: - case 15: - case 22: - if (null !== (t = e.updateQueue) && null !== (t = t.lastEffect)) { - var r = t.next; - Gi(97 < n ? 97 : n, function() { - var t = r; - do { - var n = t.destroy; - if (void 0 !== n) { - var i = e; - try { - n(); - } catch (t) { - yu(i, t); - } - } - t = t.next; - } while (t !== r); - }); - } - break; - case 1: - es(e), - 'function' == typeof (n = e.stateNode).componentWillUnmount && - (function(t, e) { - try { - (e.props = t.memoizedProps), - (e.state = t.memoizedState), - e.componentWillUnmount(); - } catch (e) { - yu(t, e); - } - })(e, n); - break; - case 5: - es(e); - break; - case 4: - cs(t, e, n); - } - } - function ss(t) { - var e = t.alternate; - (t.return = null), - (t.child = null), - (t.memoizedState = null), - (t.updateQueue = null), - (t.dependencies = null), - (t.alternate = null), - (t.firstEffect = null), - (t.lastEffect = null), - (t.pendingProps = null), - (t.memoizedProps = null), - (t.stateNode = null), - null !== e && ss(e); - } - function us(t) { - return 5 === t.tag || 3 === t.tag || 4 === t.tag; - } - function ls(t) { - t: { - for (var e = t.return; null !== e; ) { - if (us(e)) { - var n = e; - break t; - } - e = e.return; - } - throw Error(a(160)); - } - switch (((e = n.stateNode), n.tag)) { - case 5: - var r = !1; - break; - case 3: - case 4: - (e = e.containerInfo), (r = !0); - break; - default: - throw Error(a(161)); - } - 16 & n.effectTag && (Vt(e, ''), (n.effectTag &= -17)); - t: e: for (n = t; ; ) { - for (; null === n.sibling; ) { - if (null === n.return || us(n.return)) { - n = null; - break t; - } - n = n.return; - } - for ( - n.sibling.return = n.return, n = n.sibling; - 5 !== n.tag && 6 !== n.tag && 18 !== n.tag; - - ) { - if (2 & n.effectTag) continue e; - if (null === n.child || 4 === n.tag) continue e; - (n.child.return = n), (n = n.child); - } - if (!(2 & n.effectTag)) { - n = n.stateNode; - break t; - } - } - r - ? (function t(e, n, r) { - var i = e.tag, - o = 5 === i || 6 === i; - if (o) - (e = o ? e.stateNode : e.stateNode.instance), - n - ? 8 === r.nodeType - ? r.parentNode.insertBefore(e, n) - : r.insertBefore(e, n) - : (8 === r.nodeType - ? (n = r.parentNode).insertBefore(e, r) - : (n = r).appendChild(e), - (null !== (r = r._reactRootContainer) && void 0 !== r) || - null !== n.onclick || - (n.onclick = ln)); - else if (4 !== i && null !== (e = e.child)) - for (t(e, n, r), e = e.sibling; null !== e; ) - t(e, n, r), (e = e.sibling); - })(t, n, e) - : (function t(e, n, r) { - var i = e.tag, - o = 5 === i || 6 === i; - if (o) - (e = o ? e.stateNode : e.stateNode.instance), - n ? r.insertBefore(e, n) : r.appendChild(e); - else if (4 !== i && null !== (e = e.child)) - for (t(e, n, r), e = e.sibling; null !== e; ) - t(e, n, r), (e = e.sibling); - })(t, n, e); - } - function cs(t, e, n) { - for (var r, i, o = e, s = !1; ; ) { - if (!s) { - s = o.return; - t: for (;;) { - if (null === s) throw Error(a(160)); - switch (((r = s.stateNode), s.tag)) { - case 5: - i = !1; - break t; - case 3: - case 4: - (r = r.containerInfo), (i = !0); - break t; - } - s = s.return; - } - s = !0; - } - if (5 === o.tag || 6 === o.tag) { - t: for (var u = t, l = o, c = n, f = l; ; ) - if ((as(u, f, c), null !== f.child && 4 !== f.tag)) - (f.child.return = f), (f = f.child); - else { - if (f === l) break t; - for (; null === f.sibling; ) { - if (null === f.return || f.return === l) break t; - f = f.return; - } - (f.sibling.return = f.return), (f = f.sibling); - } - i - ? ((u = r), - (l = o.stateNode), - 8 === u.nodeType - ? u.parentNode.removeChild(l) - : u.removeChild(l)) - : r.removeChild(o.stateNode); - } else if (4 === o.tag) { - if (null !== o.child) { - (r = o.stateNode.containerInfo), - (i = !0), - (o.child.return = o), - (o = o.child); - continue; - } - } else if ((as(t, o, n), null !== o.child)) { - (o.child.return = o), (o = o.child); - continue; - } - if (o === e) break; - for (; null === o.sibling; ) { - if (null === o.return || o.return === e) return; - 4 === (o = o.return).tag && (s = !1); - } - (o.sibling.return = o.return), (o = o.sibling); - } - } - function fs(t, e) { - switch (e.tag) { - case 0: - case 11: - case 14: - case 15: - case 22: - return void rs(3, e); - case 1: - return; - case 5: - var n = e.stateNode; - if (null != n) { - var r = e.memoizedProps, - i = null !== t ? t.memoizedProps : r; - t = e.type; - var o = e.updateQueue; - if (((e.updateQueue = null), null !== o)) { - for ( - n[kn] = r, - 'input' === t && - 'radio' === r.type && - null != r.name && - Et(n, r), - an(t, i), - e = an(t, r), - i = 0; - i < o.length; - i += 2 - ) { - var s = o[i], - u = o[i + 1]; - 'style' === s - ? nn(n, u) - : 'dangerouslySetInnerHTML' === s - ? Ft(n, u) - : 'children' === s - ? Vt(n, u) - : K(n, s, u, e); - } - switch (t) { - case 'input': - kt(n, r); - break; - case 'textarea': - Lt(n, r); - break; - case 'select': - (e = n._wrapperState.wasMultiple), - (n._wrapperState.wasMultiple = !!r.multiple), - null != (t = r.value) - ? Ot(n, !!r.multiple, t, !1) - : e !== !!r.multiple && - (null != r.defaultValue - ? Ot(n, !!r.multiple, r.defaultValue, !0) - : Ot(n, !!r.multiple, r.multiple ? [] : '', !1)); - } - } - } - return; - case 6: - if (null === e.stateNode) throw Error(a(162)); - return void (e.stateNode.nodeValue = e.memoizedProps); - case 3: - return void ( - (e = e.stateNode).hydrate && - ((e.hydrate = !1), Ne(e.containerInfo)) - ); - case 12: - return; - case 13: - if ( - ((n = e), - null === e.memoizedState - ? (r = !1) - : ((r = !0), (n = e.child), (js = Fi())), - null !== n) - ) - t: for (t = n; ; ) { - if (5 === t.tag) - (o = t.stateNode), - r - ? 'function' == typeof (o = o.style).setProperty - ? o.setProperty('display', 'none', 'important') - : (o.display = 'none') - : ((o = t.stateNode), - (i = - null != (i = t.memoizedProps.style) && - i.hasOwnProperty('display') - ? i.display - : null), - (o.style.display = en('display', i))); - else if (6 === t.tag) - t.stateNode.nodeValue = r ? '' : t.memoizedProps; - else { - if ( - 13 === t.tag && - null !== t.memoizedState && - null === t.memoizedState.dehydrated - ) { - ((o = t.child.sibling).return = t), (t = o); - continue; - } - if (null !== t.child) { - (t.child.return = t), (t = t.child); - continue; - } - } - if (t === n) break; - for (; null === t.sibling; ) { - if (null === t.return || t.return === n) break t; - t = t.return; - } - (t.sibling.return = t.return), (t = t.sibling); - } - return void ds(e); - case 19: - return void ds(e); - case 17: - return; - } - throw Error(a(163)); - } - function ds(t) { - var e = t.updateQueue; - if (null !== e) { - t.updateQueue = null; - var n = t.stateNode; - null === n && (n = t.stateNode = new Ja()), - e.forEach(function(e) { - var r = _u.bind(null, t, e); - n.has(e) || (n.add(e), e.then(r, r)); - }); - } - } - var hs = 'function' == typeof WeakMap ? WeakMap : Map; - function ps(t, e, n) { - ((n = so(n, null)).tag = 3), (n.payload = { element: null }); - var r = e.value; - return ( - (n.callback = function() { - Ns || ((Ns = !0), (zs = r)), ts(t, e); - }), - n - ); - } - function gs(t, e, n) { - (n = so(n, null)).tag = 3; - var r = t.type.getDerivedStateFromError; - if ('function' == typeof r) { - var i = e.value; - n.payload = function() { - return ts(t, e), r(i); - }; - } - var o = t.stateNode; - return ( - null !== o && - 'function' == typeof o.componentDidCatch && - (n.callback = function() { - 'function' != typeof r && - (null === Is ? (Is = new Set([this])) : Is.add(this), ts(t, e)); - var n = e.stack; - this.componentDidCatch(e.value, { - componentStack: null !== n ? n : '' - }); - }), - n - ); - } - var vs, - ms = Math.ceil, - ys = Q.ReactCurrentDispatcher, - bs = Q.ReactCurrentOwner, - _s = 0, - xs = 3, - ws = 4, - Ss = 0, - Es = null, - ks = null, - As = 0, - Ts = _s, - Cs = null, - Os = 1073741823, - Ps = 1073741823, - Ms = null, - Ls = 0, - Ds = !1, - js = 0, - Rs = null, - Ns = !1, - zs = null, - Is = null, - Fs = !1, - Vs = null, - Bs = 90, - Gs = null, - Hs = 0, - Us = null, - qs = 0; - function Ws() { - return 0 != (48 & Ss) - ? 1073741821 - ((Fi() / 10) | 0) - : 0 !== qs - ? qs - : (qs = 1073741821 - ((Fi() / 10) | 0)); - } - function Xs(t, e, n) { - if (0 == (2 & (e = e.mode))) return 1073741823; - var r = Vi(); - if (0 == (4 & e)) return 99 === r ? 1073741823 : 1073741822; - if (0 != (16 & Ss)) return As; - if (null !== n) t = Xi(t, 0 | n.timeoutMs || 5e3, 250); - else - switch (r) { - case 99: - t = 1073741823; - break; - case 98: - t = Xi(t, 150, 100); - break; - case 97: - case 96: - t = Xi(t, 5e3, 250); - break; - case 95: - t = 2; - break; - default: - throw Error(a(326)); - } - return null !== Es && t === As && --t, t; - } - function Ys(t, e) { - if (50 < Hs) throw ((Hs = 0), (Us = null), Error(a(185))); - if (null !== (t = $s(t, e))) { - var n = Vi(); - 1073741823 === e - ? 0 != (8 & Ss) && 0 == (48 & Ss) - ? Js(t) - : (Ks(t), 0 === Ss && qi()) - : Ks(t), - 0 == (4 & Ss) || - (98 !== n && 99 !== n) || - (null === Gs - ? (Gs = new Map([[t, e]])) - : (void 0 === (n = Gs.get(t)) || n > e) && Gs.set(t, e)); - } - } - function $s(t, e) { - t.expirationTime < e && (t.expirationTime = e); - var n = t.alternate; - null !== n && n.expirationTime < e && (n.expirationTime = e); - var r = t.return, - i = null; - if (null === r && 3 === t.tag) i = t.stateNode; - else - for (; null !== r; ) { - if ( - ((n = r.alternate), - r.childExpirationTime < e && (r.childExpirationTime = e), - null !== n && - n.childExpirationTime < e && - (n.childExpirationTime = e), - null === r.return && 3 === r.tag) - ) { - i = r.stateNode; - break; - } - r = r.return; - } - return ( - null !== i && (Es === i && (au(e), Ts === ws && Du(i, As)), ju(i, e)), - i - ); - } - function Qs(t) { - var e = t.lastExpiredTime; - if (0 !== e) return e; - if (!Lu(t, (e = t.firstPendingTime))) return e; - var n = t.lastPingedTime; - return 2 >= (t = n > (t = t.nextKnownPendingLevel) ? n : t) && e !== t - ? 0 - : t; - } - function Ks(t) { - if (0 !== t.lastExpiredTime) - (t.callbackExpirationTime = 1073741823), - (t.callbackPriority = 99), - (t.callbackNode = Ui(Js.bind(null, t))); - else { - var e = Qs(t), - n = t.callbackNode; - if (0 === e) - null !== n && - ((t.callbackNode = null), - (t.callbackExpirationTime = 0), - (t.callbackPriority = 90)); - else { - var r = Ws(); - if ( - (1073741823 === e - ? (r = 99) - : 1 === e || 2 === e - ? (r = 95) - : (r = - 0 >= (r = 10 * (1073741821 - e) - 10 * (1073741821 - r)) - ? 99 - : 250 >= r - ? 98 - : 5250 >= r - ? 97 - : 95), - null !== n) - ) { - var i = t.callbackPriority; - if (t.callbackExpirationTime === e && i >= r) return; - n !== Li && Si(n); - } - (t.callbackExpirationTime = e), - (t.callbackPriority = r), - (e = - 1073741823 === e - ? Ui(Js.bind(null, t)) - : Hi(r, Zs.bind(null, t), { - timeout: 10 * (1073741821 - e) - Fi() - })), - (t.callbackNode = e); - } - } - } - function Zs(t, e) { - if (((qs = 0), e)) return Ru(t, (e = Ws())), Ks(t), null; - var n = Qs(t); - if (0 !== n) { - if (((e = t.callbackNode), 0 != (48 & Ss))) throw Error(a(327)); - if ((gu(), (t === Es && n === As) || nu(t, n), null !== ks)) { - var r = Ss; - Ss |= 16; - for (var i = iu(); ; ) - try { - uu(); - break; - } catch (e) { - ru(t, e); - } - if ((Ji(), (Ss = r), (ys.current = i), 1 === Ts)) - throw ((e = Cs), nu(t, n), Du(t, n), Ks(t), e); - if (null === ks) - switch ( - ((i = t.finishedWork = t.current.alternate), - (t.finishedExpirationTime = n), - (r = Ts), - (Es = null), - r) - ) { - case _s: - case 1: - throw Error(a(345)); - case 2: - Ru(t, 2 < n ? 2 : n); - break; - case xs: - if ( - (Du(t, n), - n === (r = t.lastSuspendedTime) && - (t.nextKnownPendingLevel = fu(i)), - 1073741823 === Os && 10 < (i = js + 500 - Fi())) - ) { - if (Ds) { - var o = t.lastPingedTime; - if (0 === o || o >= n) { - (t.lastPingedTime = n), nu(t, n); - break; - } - } - if (0 !== (o = Qs(t)) && o !== n) break; - if (0 !== r && r !== n) { - t.lastPingedTime = r; - break; - } - t.timeoutHandle = bn(du.bind(null, t), i); - break; - } - du(t); - break; - case ws: - if ( - (Du(t, n), - n === (r = t.lastSuspendedTime) && - (t.nextKnownPendingLevel = fu(i)), - Ds && (0 === (i = t.lastPingedTime) || i >= n)) - ) { - (t.lastPingedTime = n), nu(t, n); - break; - } - if (0 !== (i = Qs(t)) && i !== n) break; - if (0 !== r && r !== n) { - t.lastPingedTime = r; - break; - } - if ( - (1073741823 !== Ps - ? (r = 10 * (1073741821 - Ps) - Fi()) - : 1073741823 === Os - ? (r = 0) - : ((r = 10 * (1073741821 - Os) - 5e3), - 0 > (r = (i = Fi()) - r) && (r = 0), - (n = 10 * (1073741821 - n) - i) < - (r = - (120 > r - ? 120 - : 480 > r - ? 480 - : 1080 > r - ? 1080 - : 1920 > r - ? 1920 - : 3e3 > r - ? 3e3 - : 4320 > r - ? 4320 - : 1960 * ms(r / 1960)) - r) && (r = n)), - 10 < r) - ) { - t.timeoutHandle = bn(du.bind(null, t), r); - break; - } - du(t); - break; - case 5: - if (1073741823 !== Os && null !== Ms) { - o = Os; - var s = Ms; - if ( - (0 >= (r = 0 | s.busyMinDurationMs) - ? (r = 0) - : ((i = 0 | s.busyDelayMs), - (r = - (o = - Fi() - - (10 * (1073741821 - o) - - (0 | s.timeoutMs || 5e3))) <= i - ? 0 - : i + r - o)), - 10 < r) - ) { - Du(t, n), (t.timeoutHandle = bn(du.bind(null, t), r)); - break; - } - } - du(t); - break; - default: - throw Error(a(329)); - } - if ((Ks(t), t.callbackNode === e)) return Zs.bind(null, t); - } - } - return null; - } - function Js(t) { - var e = t.lastExpiredTime; - if (((e = 0 !== e ? e : 1073741823), 0 != (48 & Ss))) - throw Error(a(327)); - if ((gu(), (t === Es && e === As) || nu(t, e), null !== ks)) { - var n = Ss; - Ss |= 16; - for (var r = iu(); ; ) - try { - su(); - break; - } catch (e) { - ru(t, e); - } - if ((Ji(), (Ss = n), (ys.current = r), 1 === Ts)) - throw ((n = Cs), nu(t, e), Du(t, e), Ks(t), n); - if (null !== ks) throw Error(a(261)); - (t.finishedWork = t.current.alternate), - (t.finishedExpirationTime = e), - (Es = null), - du(t), - Ks(t); - } - return null; - } - function tu(t, e) { - var n = Ss; - Ss |= 1; - try { - return t(e); - } finally { - 0 === (Ss = n) && qi(); - } - } - function eu(t, e) { - var n = Ss; - (Ss &= -2), (Ss |= 8); - try { - return t(e); - } finally { - 0 === (Ss = n) && qi(); - } - } - function nu(t, e) { - (t.finishedWork = null), (t.finishedExpirationTime = 0); - var n = t.timeoutHandle; - if ((-1 !== n && ((t.timeoutHandle = -1), _n(n)), null !== ks)) - for (n = ks.return; null !== n; ) { - var r = n; - switch (r.tag) { - case 1: - null != (r = r.type.childContextTypes) && vi(); - break; - case 3: - Do(), ui(di), ui(fi); - break; - case 5: - Ro(r); - break; - case 4: - Do(); - break; - case 13: - case 19: - ui(No); - break; - case 10: - to(r); - } - n = n.return; - } - (Es = t), - (ks = Au(t.current, null)), - (As = e), - (Ts = _s), - (Cs = null), - (Ps = Os = 1073741823), - (Ms = null), - (Ls = 0), - (Ds = !1); - } - function ru(t, e) { - for (;;) { - try { - if ((Ji(), (Fo.current = va), qo)) - for (var n = Go.memoizedState; null !== n; ) { - var r = n.queue; - null !== r && (r.pending = null), (n = n.next); - } - if ( - ((Bo = 0), - (Uo = Ho = Go = null), - (qo = !1), - null === ks || null === ks.return) - ) - return (Ts = 1), (Cs = e), (ks = null); - t: { - var i = t, - o = ks.return, - a = ks, - s = e; - if ( - ((e = As), - (a.effectTag |= 2048), - (a.firstEffect = a.lastEffect = null), - null !== s && - 'object' == typeof s && - 'function' == typeof s.then) - ) { - var u = s; - if (0 == (2 & a.mode)) { - var l = a.alternate; - l - ? ((a.updateQueue = l.updateQueue), - (a.memoizedState = l.memoizedState), - (a.expirationTime = l.expirationTime)) - : ((a.updateQueue = null), (a.memoizedState = null)); - } - var c = 0 != (1 & No.current), - f = o; - do { - var d; - if ((d = 13 === f.tag)) { - var h = f.memoizedState; - if (null !== h) d = null !== h.dehydrated; - else { - var p = f.memoizedProps; - d = - void 0 !== p.fallback && - (!0 !== p.unstable_avoidThisFallback || !c); - } - } - if (d) { - var g = f.updateQueue; - if (null === g) { - var v = new Set(); - v.add(u), (f.updateQueue = v); - } else g.add(u); - if (0 == (2 & f.mode)) { - if ( - ((f.effectTag |= 64), - (a.effectTag &= -2981), - 1 === a.tag) - ) - if (null === a.alternate) a.tag = 17; - else { - var m = so(1073741823, null); - (m.tag = 2), uo(a, m); - } - a.expirationTime = 1073741823; - break t; - } - (s = void 0), (a = e); - var y = i.pingCache; - if ( - (null === y - ? ((y = i.pingCache = new hs()), - (s = new Set()), - y.set(u, s)) - : void 0 === (s = y.get(u)) && - ((s = new Set()), y.set(u, s)), - !s.has(a)) - ) { - s.add(a); - var b = bu.bind(null, i, u, a); - u.then(b, b); - } - (f.effectTag |= 4096), (f.expirationTime = e); - break t; - } - f = f.return; - } while (null !== f); - s = Error( - (vt(a.type) || 'A React component') + - ' suspended while rendering, but no fallback UI was specified.\n\nAdd a component higher in the tree to provide a loading indicator or placeholder to display.' + - mt(a) - ); - } - 5 !== Ts && (Ts = 2), (s = Za(s, a)), (f = o); - do { - switch (f.tag) { - case 3: - (u = s), - (f.effectTag |= 4096), - (f.expirationTime = e), - lo(f, ps(f, u, e)); - break t; - case 1: - u = s; - var _ = f.type, - x = f.stateNode; - if ( - 0 == (64 & f.effectTag) && - ('function' == typeof _.getDerivedStateFromError || - (null !== x && - 'function' == typeof x.componentDidCatch && - (null === Is || !Is.has(x)))) - ) { - (f.effectTag |= 4096), - (f.expirationTime = e), - lo(f, gs(f, u, e)); - break t; - } - } - f = f.return; - } while (null !== f); - } - ks = cu(ks); - } catch (t) { - e = t; - continue; - } - break; - } - } - function iu() { - var t = ys.current; - return (ys.current = va), null === t ? va : t; - } - function ou(t, e) { - t < Os && 2 < t && (Os = t), - null !== e && t < Ps && 2 < t && ((Ps = t), (Ms = e)); - } - function au(t) { - t > Ls && (Ls = t); - } - function su() { - for (; null !== ks; ) ks = lu(ks); - } - function uu() { - for (; null !== ks && !Di(); ) ks = lu(ks); - } - function lu(t) { - var e = vs(t.alternate, t, As); - return ( - (t.memoizedProps = t.pendingProps), - null === e && (e = cu(t)), - (bs.current = null), - e - ); - } - function cu(t) { - ks = t; - do { - var e = ks.alternate; - if (((t = ks.return), 0 == (2048 & ks.effectTag))) { - if ( - ((e = Qa(e, ks, As)), 1 === As || 1 !== ks.childExpirationTime) - ) { - for (var n = 0, r = ks.child; null !== r; ) { - var i = r.expirationTime, - o = r.childExpirationTime; - i > n && (n = i), o > n && (n = o), (r = r.sibling); - } - ks.childExpirationTime = n; - } - if (null !== e) return e; - null !== t && - 0 == (2048 & t.effectTag) && - (null === t.firstEffect && (t.firstEffect = ks.firstEffect), - null !== ks.lastEffect && - (null !== t.lastEffect && - (t.lastEffect.nextEffect = ks.firstEffect), - (t.lastEffect = ks.lastEffect)), - 1 < ks.effectTag && - (null !== t.lastEffect - ? (t.lastEffect.nextEffect = ks) - : (t.firstEffect = ks), - (t.lastEffect = ks))); - } else { - if (null !== (e = Ka(ks))) return (e.effectTag &= 2047), e; - null !== t && - ((t.firstEffect = t.lastEffect = null), (t.effectTag |= 2048)); - } - if (null !== (e = ks.sibling)) return e; - ks = t; - } while (null !== ks); - return Ts === _s && (Ts = 5), null; - } - function fu(t) { - var e = t.expirationTime; - return e > (t = t.childExpirationTime) ? e : t; - } - function du(t) { - var e = Vi(); - return Gi(99, hu.bind(null, t, e)), null; - } - function hu(t, e) { - do { - gu(); - } while (null !== Vs); - if (0 != (48 & Ss)) throw Error(a(327)); - var n = t.finishedWork, - r = t.finishedExpirationTime; - if (null === n) return null; - if ( - ((t.finishedWork = null), - (t.finishedExpirationTime = 0), - n === t.current) - ) - throw Error(a(177)); - (t.callbackNode = null), - (t.callbackExpirationTime = 0), - (t.callbackPriority = 90), - (t.nextKnownPendingLevel = 0); - var i = fu(n); - if ( - ((t.firstPendingTime = i), - r <= t.lastSuspendedTime - ? (t.firstSuspendedTime = t.lastSuspendedTime = t.nextKnownPendingLevel = 0) - : r <= t.firstSuspendedTime && (t.firstSuspendedTime = r - 1), - r <= t.lastPingedTime && (t.lastPingedTime = 0), - r <= t.lastExpiredTime && (t.lastExpiredTime = 0), - t === Es && ((ks = Es = null), (As = 0)), - 1 < n.effectTag - ? null !== n.lastEffect - ? ((n.lastEffect.nextEffect = n), (i = n.firstEffect)) - : (i = n) - : (i = n.firstEffect), - null !== i) - ) { - var o = Ss; - (Ss |= 32), (bs.current = null), (gn = We); - var s = hn(); - if (pn(s)) { - if ('selectionStart' in s) - var u = { start: s.selectionStart, end: s.selectionEnd }; - else - t: { - var l = - (u = ((u = s.ownerDocument) && u.defaultView) || window) - .getSelection && u.getSelection(); - if (l && 0 !== l.rangeCount) { - u = l.anchorNode; - var c = l.anchorOffset, - f = l.focusNode; - l = l.focusOffset; - try { - u.nodeType, f.nodeType; - } catch (t) { - u = null; - break t; - } - var d = 0, - h = -1, - p = -1, - g = 0, - v = 0, - m = s, - y = null; - e: for (;;) { - for ( - var b; - m !== u || (0 !== c && 3 !== m.nodeType) || (h = d + c), - m !== f || (0 !== l && 3 !== m.nodeType) || (p = d + l), - 3 === m.nodeType && (d += m.nodeValue.length), - null !== (b = m.firstChild); - - ) - (y = m), (m = b); - for (;;) { - if (m === s) break e; - if ( - (y === u && ++g === c && (h = d), - y === f && ++v === l && (p = d), - null !== (b = m.nextSibling)) - ) - break; - y = (m = y).parentNode; - } - m = b; - } - u = -1 === h || -1 === p ? null : { start: h, end: p }; - } else u = null; - } - u = u || { start: 0, end: 0 }; - } else u = null; - (vn = { - activeElementDetached: null, - focusedElem: s, - selectionRange: u - }), - (We = !1), - (Rs = i); - do { - try { - pu(); - } catch (t) { - if (null === Rs) throw Error(a(330)); - yu(Rs, t), (Rs = Rs.nextEffect); - } - } while (null !== Rs); - Rs = i; - do { - try { - for (s = t, u = e; null !== Rs; ) { - var _ = Rs.effectTag; - if ((16 & _ && Vt(Rs.stateNode, ''), 128 & _)) { - var x = Rs.alternate; - if (null !== x) { - var w = x.ref; - null !== w && - ('function' == typeof w ? w(null) : (w.current = null)); - } - } - switch (1038 & _) { - case 2: - ls(Rs), (Rs.effectTag &= -3); - break; - case 6: - ls(Rs), (Rs.effectTag &= -3), fs(Rs.alternate, Rs); - break; - case 1024: - Rs.effectTag &= -1025; - break; - case 1028: - (Rs.effectTag &= -1025), fs(Rs.alternate, Rs); - break; - case 4: - fs(Rs.alternate, Rs); - break; - case 8: - cs(s, (c = Rs), u), ss(c); - } - Rs = Rs.nextEffect; - } - } catch (t) { - if (null === Rs) throw Error(a(330)); - yu(Rs, t), (Rs = Rs.nextEffect); - } - } while (null !== Rs); - if ( - ((w = vn), - (x = hn()), - (_ = w.focusedElem), - (u = w.selectionRange), - x !== _ && - _ && - _.ownerDocument && - (function t(e, n) { - return ( - !(!e || !n) && - (e === n || - ((!e || 3 !== e.nodeType) && - (n && 3 === n.nodeType - ? t(e, n.parentNode) - : 'contains' in e - ? e.contains(n) - : !!e.compareDocumentPosition && - !!(16 & e.compareDocumentPosition(n))))) - ); - })(_.ownerDocument.documentElement, _)) - ) { - null !== u && - pn(_) && - ((x = u.start), - void 0 === (w = u.end) && (w = x), - 'selectionStart' in _ - ? ((_.selectionStart = x), - (_.selectionEnd = Math.min(w, _.value.length))) - : (w = - ((x = _.ownerDocument || document) && x.defaultView) || - window).getSelection && - ((w = w.getSelection()), - (c = _.textContent.length), - (s = Math.min(u.start, c)), - (u = void 0 === u.end ? s : Math.min(u.end, c)), - !w.extend && s > u && ((c = u), (u = s), (s = c)), - (c = dn(_, s)), - (f = dn(_, u)), - c && - f && - (1 !== w.rangeCount || - w.anchorNode !== c.node || - w.anchorOffset !== c.offset || - w.focusNode !== f.node || - w.focusOffset !== f.offset) && - ((x = x.createRange()).setStart(c.node, c.offset), - w.removeAllRanges(), - s > u - ? (w.addRange(x), w.extend(f.node, f.offset)) - : (x.setEnd(f.node, f.offset), w.addRange(x))))), - (x = []); - for (w = _; (w = w.parentNode); ) - 1 === w.nodeType && - x.push({ element: w, left: w.scrollLeft, top: w.scrollTop }); - for ( - 'function' == typeof _.focus && _.focus(), _ = 0; - _ < x.length; - _++ - ) - ((w = x[_]).element.scrollLeft = w.left), - (w.element.scrollTop = w.top); - } - (We = !!gn), (vn = gn = null), (t.current = n), (Rs = i); - do { - try { - for (_ = t; null !== Rs; ) { - var S = Rs.effectTag; - if ((36 & S && os(_, Rs.alternate, Rs), 128 & S)) { - x = void 0; - var E = Rs.ref; - if (null !== E) { - var k = Rs.stateNode; - switch (Rs.tag) { - case 5: - x = k; - break; - default: - x = k; - } - 'function' == typeof E ? E(x) : (E.current = x); - } - } - Rs = Rs.nextEffect; - } - } catch (t) { - if (null === Rs) throw Error(a(330)); - yu(Rs, t), (Rs = Rs.nextEffect); - } - } while (null !== Rs); - (Rs = null), ji(), (Ss = o); - } else t.current = n; - if (Fs) (Fs = !1), (Vs = t), (Bs = e); - else - for (Rs = i; null !== Rs; ) - (e = Rs.nextEffect), (Rs.nextEffect = null), (Rs = e); - if ( - (0 === (e = t.firstPendingTime) && (Is = null), - 1073741823 === e - ? t === Us - ? Hs++ - : ((Hs = 0), (Us = t)) - : (Hs = 0), - 'function' == typeof xu && xu(n.stateNode, r), - Ks(t), - Ns) - ) - throw ((Ns = !1), (t = zs), (zs = null), t); - return 0 != (8 & Ss) || qi(), null; - } - function pu() { - for (; null !== Rs; ) { - var t = Rs.effectTag; - 0 != (256 & t) && ns(Rs.alternate, Rs), - 0 == (512 & t) || - Fs || - ((Fs = !0), - Hi(97, function() { - return gu(), null; - })), - (Rs = Rs.nextEffect); - } - } - function gu() { - if (90 !== Bs) { - var t = 97 < Bs ? 97 : Bs; - return (Bs = 90), Gi(t, vu); - } - } - function vu() { - if (null === Vs) return !1; - var t = Vs; - if (((Vs = null), 0 != (48 & Ss))) throw Error(a(331)); - var e = Ss; - for (Ss |= 32, t = t.current.firstEffect; null !== t; ) { - try { - var n = t; - if (0 != (512 & n.effectTag)) - switch (n.tag) { - case 0: - case 11: - case 15: - case 22: - rs(5, n), is(5, n); - } - } catch (e) { - if (null === t) throw Error(a(330)); - yu(t, e); - } - (n = t.nextEffect), (t.nextEffect = null), (t = n); - } - return (Ss = e), qi(), !0; - } - function mu(t, e, n) { - uo(t, (e = ps(t, (e = Za(n, e)), 1073741823))), - null !== (t = $s(t, 1073741823)) && Ks(t); - } - function yu(t, e) { - if (3 === t.tag) mu(t, t, e); - else - for (var n = t.return; null !== n; ) { - if (3 === n.tag) { - mu(n, t, e); - break; - } - if (1 === n.tag) { - var r = n.stateNode; - if ( - 'function' == typeof n.type.getDerivedStateFromError || - ('function' == typeof r.componentDidCatch && - (null === Is || !Is.has(r))) - ) { - uo(n, (t = gs(n, (t = Za(e, t)), 1073741823))), - null !== (n = $s(n, 1073741823)) && Ks(n); - break; - } - } - n = n.return; - } - } - function bu(t, e, n) { - var r = t.pingCache; - null !== r && r.delete(e), - Es === t && As === n - ? Ts === ws || (Ts === xs && 1073741823 === Os && Fi() - js < 500) - ? nu(t, As) - : (Ds = !0) - : Lu(t, n) && - ((0 !== (e = t.lastPingedTime) && e < n) || - ((t.lastPingedTime = n), Ks(t))); - } - function _u(t, e) { - var n = t.stateNode; - null !== n && n.delete(e), - 0 === (e = 0) && (e = Xs((e = Ws()), t, null)), - null !== (t = $s(t, e)) && Ks(t); - } - vs = function(t, e, n) { - var r = e.expirationTime; - if (null !== t) { - var i = e.pendingProps; - if (t.memoizedProps !== i || di.current) Pa = !0; - else { - if (r < n) { - switch (((Pa = !1), e.tag)) { - case 3: - Fa(e), Ca(); - break; - case 5: - if ((jo(e), 4 & e.mode && 1 !== n && i.hidden)) - return (e.expirationTime = e.childExpirationTime = 1), null; - break; - case 1: - gi(e.type) && bi(e); - break; - case 4: - Lo(e, e.stateNode.containerInfo); - break; - case 10: - (r = e.memoizedProps.value), - (i = e.type._context), - li($i, i._currentValue), - (i._currentValue = r); - break; - case 13: - if (null !== e.memoizedState) - return 0 !== (r = e.child.childExpirationTime) && r >= n - ? Ua(t, e, n) - : (li(No, 1 & No.current), - null !== (e = Ya(t, e, n)) ? e.sibling : null); - li(No, 1 & No.current); - break; - case 19: - if ( - ((r = e.childExpirationTime >= n), 0 != (64 & t.effectTag)) - ) { - if (r) return Xa(t, e, n); - e.effectTag |= 64; - } - if ( - (null !== (i = e.memoizedState) && - ((i.rendering = null), (i.tail = null)), - li(No, No.current), - !r) - ) - return null; - } - return Ya(t, e, n); - } - Pa = !1; - } - } else Pa = !1; - switch (((e.expirationTime = 0), e.tag)) { - case 2: - if ( - ((r = e.type), - null !== t && - ((t.alternate = null), - (e.alternate = null), - (e.effectTag |= 2)), - (t = e.pendingProps), - (i = pi(e, fi.current)), - no(e, n), - (i = Yo(null, e, r, t, i, n)), - (e.effectTag |= 1), - 'object' == typeof i && - null !== i && - 'function' == typeof i.render && - void 0 === i.$$typeof) - ) { - if ( - ((e.tag = 1), - (e.memoizedState = null), - (e.updateQueue = null), - gi(r)) - ) { - var o = !0; - bi(e); - } else o = !1; - (e.memoizedState = - null !== i.state && void 0 !== i.state ? i.state : null), - oo(e); - var s = r.getDerivedStateFromProps; - 'function' == typeof s && go(e, r, s, t), - (i.updater = vo), - (e.stateNode = i), - (i._reactInternalFiber = e), - _o(e, r, t, n), - (e = Ia(null, e, r, !0, o, n)); - } else (e.tag = 0), Ma(null, e, i, n), (e = e.child); - return e; - case 16: - t: { - if ( - ((i = e.elementType), - null !== t && - ((t.alternate = null), - (e.alternate = null), - (e.effectTag |= 2)), - (t = e.pendingProps), - (function(t) { - if (-1 === t._status) { - t._status = 0; - var e = t._ctor; - (e = e()), - (t._result = e), - e.then( - function(e) { - 0 === t._status && - ((e = e.default), (t._status = 1), (t._result = e)); - }, - function(e) { - 0 === t._status && ((t._status = 2), (t._result = e)); - } - ); - } - })(i), - 1 !== i._status) - ) - throw i._result; - switch ( - ((i = i._result), - (e.type = i), - (o = e.tag = (function(t) { - if ('function' == typeof t) return ku(t) ? 1 : 0; - if (null != t) { - if ((t = t.$$typeof) === ut) return 11; - if (t === ft) return 14; - } - return 2; - })(i)), - (t = Yi(i, t)), - o) - ) { - case 0: - e = Na(null, e, i, t, n); - break t; - case 1: - e = za(null, e, i, t, n); - break t; - case 11: - e = La(null, e, i, t, n); - break t; - case 14: - e = Da(null, e, i, Yi(i.type, t), r, n); - break t; - } - throw Error(a(306, i, '')); - } - return e; - case 0: - return ( - (r = e.type), - (i = e.pendingProps), - Na(t, e, r, (i = e.elementType === r ? i : Yi(r, i)), n) - ); - case 1: - return ( - (r = e.type), - (i = e.pendingProps), - za(t, e, r, (i = e.elementType === r ? i : Yi(r, i)), n) - ); - case 3: - if ((Fa(e), (r = e.updateQueue), null === t || null === r)) - throw Error(a(282)); - if ( - ((r = e.pendingProps), - (i = null !== (i = e.memoizedState) ? i.element : null), - ao(t, e), - co(e, r, null, n), - (r = e.memoizedState.element) === i) - ) - Ca(), (e = Ya(t, e, n)); - else { - if ( - ((i = e.stateNode.hydrate) && - ((xa = xn(e.stateNode.containerInfo.firstChild)), - (_a = e), - (i = wa = !0)), - i) - ) - for (n = Ao(e, null, r, n), e.child = n; n; ) - (n.effectTag = (-3 & n.effectTag) | 1024), (n = n.sibling); - else Ma(t, e, r, n), Ca(); - e = e.child; - } - return e; - case 5: - return ( - jo(e), - null === t && ka(e), - (r = e.type), - (i = e.pendingProps), - (o = null !== t ? t.memoizedProps : null), - (s = i.children), - yn(r, i) - ? (s = null) - : null !== o && yn(r, o) && (e.effectTag |= 16), - Ra(t, e), - 4 & e.mode && 1 !== n && i.hidden - ? ((e.expirationTime = e.childExpirationTime = 1), (e = null)) - : (Ma(t, e, s, n), (e = e.child)), - e - ); - case 6: - return null === t && ka(e), null; - case 13: - return Ua(t, e, n); - case 4: - return ( - Lo(e, e.stateNode.containerInfo), - (r = e.pendingProps), - null === t ? (e.child = ko(e, null, r, n)) : Ma(t, e, r, n), - e.child - ); - case 11: - return ( - (r = e.type), - (i = e.pendingProps), - La(t, e, r, (i = e.elementType === r ? i : Yi(r, i)), n) - ); - case 7: - return Ma(t, e, e.pendingProps, n), e.child; - case 8: - case 12: - return Ma(t, e, e.pendingProps.children, n), e.child; - case 10: - t: { - (r = e.type._context), - (i = e.pendingProps), - (s = e.memoizedProps), - (o = i.value); - var u = e.type._context; - if ((li($i, u._currentValue), (u._currentValue = o), null !== s)) - if ( - ((u = s.value), - 0 === - (o = zr(u, o) - ? 0 - : 0 | - ('function' == typeof r._calculateChangedBits - ? r._calculateChangedBits(u, o) - : 1073741823))) - ) { - if (s.children === i.children && !di.current) { - e = Ya(t, e, n); - break t; - } - } else - for (null !== (u = e.child) && (u.return = e); null !== u; ) { - var l = u.dependencies; - if (null !== l) { - s = u.child; - for (var c = l.firstContext; null !== c; ) { - if (c.context === r && 0 != (c.observedBits & o)) { - 1 === u.tag && - (((c = so(n, null)).tag = 2), uo(u, c)), - u.expirationTime < n && (u.expirationTime = n), - null !== (c = u.alternate) && - c.expirationTime < n && - (c.expirationTime = n), - eo(u.return, n), - l.expirationTime < n && (l.expirationTime = n); - break; - } - c = c.next; - } - } else - s = 10 === u.tag && u.type === e.type ? null : u.child; - if (null !== s) s.return = u; - else - for (s = u; null !== s; ) { - if (s === e) { - s = null; - break; - } - if (null !== (u = s.sibling)) { - (u.return = s.return), (s = u); - break; - } - s = s.return; - } - u = s; - } - Ma(t, e, i.children, n), (e = e.child); - } - return e; - case 9: - return ( - (i = e.type), - (r = (o = e.pendingProps).children), - no(e, n), - (r = r((i = ro(i, o.unstable_observedBits)))), - (e.effectTag |= 1), - Ma(t, e, r, n), - e.child - ); - case 14: - return ( - (o = Yi((i = e.type), e.pendingProps)), - Da(t, e, i, (o = Yi(i.type, o)), r, n) - ); - case 15: - return ja(t, e, e.type, e.pendingProps, r, n); - case 17: - return ( - (r = e.type), - (i = e.pendingProps), - (i = e.elementType === r ? i : Yi(r, i)), - null !== t && - ((t.alternate = null), - (e.alternate = null), - (e.effectTag |= 2)), - (e.tag = 1), - gi(r) ? ((t = !0), bi(e)) : (t = !1), - no(e, n), - yo(e, r, i), - _o(e, r, i, n), - Ia(null, e, r, !0, t, n) - ); - case 19: - return Xa(t, e, n); - } - throw Error(a(156, e.tag)); - }; - var xu = null, - wu = null; - function Su(t, e, n, r) { - (this.tag = t), - (this.key = n), - (this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null), - (this.index = 0), - (this.ref = null), - (this.pendingProps = e), - (this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null), - (this.mode = r), - (this.effectTag = 0), - (this.lastEffect = this.firstEffect = this.nextEffect = null), - (this.childExpirationTime = this.expirationTime = 0), - (this.alternate = null); - } - function Eu(t, e, n, r) { - return new Su(t, e, n, r); - } - function ku(t) { - return !(!(t = t.prototype) || !t.isReactComponent); - } - function Au(t, e) { - var n = t.alternate; - return ( - null === n - ? (((n = Eu(t.tag, e, t.key, t.mode)).elementType = t.elementType), - (n.type = t.type), - (n.stateNode = t.stateNode), - (n.alternate = t), - (t.alternate = n)) - : ((n.pendingProps = e), - (n.effectTag = 0), - (n.nextEffect = null), - (n.firstEffect = null), - (n.lastEffect = null)), - (n.childExpirationTime = t.childExpirationTime), - (n.expirationTime = t.expirationTime), - (n.child = t.child), - (n.memoizedProps = t.memoizedProps), - (n.memoizedState = t.memoizedState), - (n.updateQueue = t.updateQueue), - (e = t.dependencies), - (n.dependencies = - null === e - ? null - : { - expirationTime: e.expirationTime, - firstContext: e.firstContext, - responders: e.responders - }), - (n.sibling = t.sibling), - (n.index = t.index), - (n.ref = t.ref), - n - ); - } - function Tu(t, e, n, r, i, o) { - var s = 2; - if (((r = t), 'function' == typeof t)) ku(t) && (s = 1); - else if ('string' == typeof t) s = 5; - else - t: switch (t) { - case nt: - return Cu(n.children, i, o, e); - case st: - (s = 8), (i |= 7); - break; - case rt: - (s = 8), (i |= 1); - break; - case it: - return ( - ((t = Eu(12, n, e, 8 | i)).elementType = it), - (t.type = it), - (t.expirationTime = o), - t - ); - case lt: - return ( - ((t = Eu(13, n, e, i)).type = lt), - (t.elementType = lt), - (t.expirationTime = o), - t - ); - case ct: - return ( - ((t = Eu(19, n, e, i)).elementType = ct), - (t.expirationTime = o), - t - ); - default: - if ('object' == typeof t && null !== t) - switch (t.$$typeof) { - case ot: - s = 10; - break t; - case at: - s = 9; - break t; - case ut: - s = 11; - break t; - case ft: - s = 14; - break t; - case dt: - (s = 16), (r = null); - break t; - case ht: - s = 22; - break t; - } - throw Error(a(130, null == t ? t : typeof t, '')); - } - return ( - ((e = Eu(s, n, e, i)).elementType = t), - (e.type = r), - (e.expirationTime = o), - e - ); - } - function Cu(t, e, n, r) { - return ((t = Eu(7, t, r, e)).expirationTime = n), t; - } - function Ou(t, e, n) { - return ((t = Eu(6, t, null, e)).expirationTime = n), t; - } - function Pu(t, e, n) { - return ( - ((e = Eu( - 4, - null !== t.children ? t.children : [], - t.key, - e - )).expirationTime = n), - (e.stateNode = { - containerInfo: t.containerInfo, - pendingChildren: null, - implementation: t.implementation - }), - e - ); - } - function Mu(t, e, n) { - (this.tag = e), - (this.current = null), - (this.containerInfo = t), - (this.pingCache = this.pendingChildren = null), - (this.finishedExpirationTime = 0), - (this.finishedWork = null), - (this.timeoutHandle = -1), - (this.pendingContext = this.context = null), - (this.hydrate = n), - (this.callbackNode = null), - (this.callbackPriority = 90), - (this.lastExpiredTime = this.lastPingedTime = this.nextKnownPendingLevel = this.lastSuspendedTime = this.firstSuspendedTime = this.firstPendingTime = 0); - } - function Lu(t, e) { - var n = t.firstSuspendedTime; - return (t = t.lastSuspendedTime), 0 !== n && n >= e && t <= e; - } - function Du(t, e) { - var n = t.firstSuspendedTime, - r = t.lastSuspendedTime; - n < e && (t.firstSuspendedTime = e), - (r > e || 0 === n) && (t.lastSuspendedTime = e), - e <= t.lastPingedTime && (t.lastPingedTime = 0), - e <= t.lastExpiredTime && (t.lastExpiredTime = 0); - } - function ju(t, e) { - e > t.firstPendingTime && (t.firstPendingTime = e); - var n = t.firstSuspendedTime; - 0 !== n && - (e >= n - ? (t.firstSuspendedTime = t.lastSuspendedTime = t.nextKnownPendingLevel = 0) - : e >= t.lastSuspendedTime && (t.lastSuspendedTime = e + 1), - e > t.nextKnownPendingLevel && (t.nextKnownPendingLevel = e)); - } - function Ru(t, e) { - var n = t.lastExpiredTime; - (0 === n || n > e) && (t.lastExpiredTime = e); - } - function Nu(t, e, n, r) { - var i = e.current, - o = Ws(), - s = ho.suspense; - o = Xs(o, i, s); - t: if (n) { - e: { - if (Jt((n = n._reactInternalFiber)) !== n || 1 !== n.tag) - throw Error(a(170)); - var u = n; - do { - switch (u.tag) { - case 3: - u = u.stateNode.context; - break e; - case 1: - if (gi(u.type)) { - u = u.stateNode.__reactInternalMemoizedMergedChildContext; - break e; - } - } - u = u.return; - } while (null !== u); - throw Error(a(171)); - } - if (1 === n.tag) { - var l = n.type; - if (gi(l)) { - n = yi(n, l, u); - break t; - } - } - n = u; - } else n = ci; - return ( - null === e.context ? (e.context = n) : (e.pendingContext = n), - ((e = so(o, s)).payload = { element: t }), - null !== (r = void 0 === r ? null : r) && (e.callback = r), - uo(i, e), - Ys(i, o), - o - ); - } - function zu(t) { - if (!(t = t.current).child) return null; - switch (t.child.tag) { - case 5: - default: - return t.child.stateNode; - } - } - function Iu(t, e) { - null !== (t = t.memoizedState) && - null !== t.dehydrated && - t.retryTime < e && - (t.retryTime = e); - } - function Fu(t, e) { - Iu(t, e), (t = t.alternate) && Iu(t, e); - } - function Vu(t, e, n) { - var r = new Mu(t, e, (n = null != n && !0 === n.hydrate)), - i = Eu(3, null, null, 2 === e ? 7 : 1 === e ? 3 : 0); - (r.current = i), - (i.stateNode = r), - oo(i), - (t[An] = r.current), - n && - 0 !== e && - (function(t, e) { - var n = Zt(e); - Ae.forEach(function(t) { - pe(t, e, n); - }), - Te.forEach(function(t) { - pe(t, e, n); - }); - })(0, 9 === t.nodeType ? t : t.ownerDocument), - (this._internalRoot = r); - } - function Bu(t) { - return !( - !t || - (1 !== t.nodeType && - 9 !== t.nodeType && - 11 !== t.nodeType && - (8 !== t.nodeType || - ' react-mount-point-unstable ' !== t.nodeValue)) - ); - } - function Gu(t, e, n, r, i) { - var o = n._reactRootContainer; - if (o) { - var a = o._internalRoot; - if ('function' == typeof i) { - var s = i; - i = function() { - var t = zu(a); - s.call(t); - }; - } - Nu(e, a, t, i); - } else { - if ( - ((o = n._reactRootContainer = (function(t, e) { - if ( - (e || - (e = !( - !(e = t - ? 9 === t.nodeType - ? t.documentElement - : t.firstChild - : null) || - 1 !== e.nodeType || - !e.hasAttribute('data-reactroot') - )), - !e) - ) - for (var n; (n = t.lastChild); ) t.removeChild(n); - return new Vu(t, 0, e ? { hydrate: !0 } : void 0); - })(n, r)), - (a = o._internalRoot), - 'function' == typeof i) - ) { - var u = i; - i = function() { - var t = zu(a); - u.call(t); - }; - } - eu(function() { - Nu(e, a, t, i); - }); - } - return zu(a); - } - function Hu(t, e, n) { - var r = - 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; - return { - $$typeof: et, - key: null == r ? null : '' + r, - children: t, - containerInfo: e, - implementation: n - }; - } - function Uu(t, e) { - var n = - 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null; - if (!Bu(e)) throw Error(a(200)); - return Hu(t, e, null, n); - } - (Vu.prototype.render = function(t) { - Nu(t, this._internalRoot, null, null); - }), - (Vu.prototype.unmount = function() { - var t = this._internalRoot, - e = t.containerInfo; - Nu(null, t, null, function() { - e[An] = null; - }); - }), - (ge = function(t) { - if (13 === t.tag) { - var e = Xi(Ws(), 150, 100); - Ys(t, e), Fu(t, e); - } - }), - (ve = function(t) { - 13 === t.tag && (Ys(t, 3), Fu(t, 3)); - }), - (me = function(t) { - if (13 === t.tag) { - var e = Ws(); - Ys(t, (e = Xs(e, t, null))), Fu(t, e); - } - }), - (C = function(t, e, n) { - switch (e) { - case 'input': - if ((kt(t, n), (e = n.name), 'radio' === n.type && null != e)) { - for (n = t; n.parentNode; ) n = n.parentNode; - for ( - n = n.querySelectorAll( - 'input[name=' + JSON.stringify('' + e) + '][type="radio"]' - ), - e = 0; - e < n.length; - e++ - ) { - var r = n[e]; - if (r !== t && r.form === t.form) { - var i = Pn(r); - if (!i) throw Error(a(90)); - xt(r), kt(r, i); - } - } - } - break; - case 'textarea': - Lt(t, n); - break; - case 'select': - null != (e = n.value) && Ot(t, !!n.multiple, e, !1); - } - }), - (j = tu), - (R = function(t, e, n, r, i) { - var o = Ss; - Ss |= 4; - try { - return Gi(98, t.bind(null, e, n, r, i)); - } finally { - 0 === (Ss = o) && qi(); - } - }), - (N = function() { - 0 == (49 & Ss) && - ((function() { - if (null !== Gs) { - var t = Gs; - (Gs = null), - t.forEach(function(t, e) { - Ru(e, t), Ks(e); - }), - qi(); - } - })(), - gu()); - }), - (z = function(t, e) { - var n = Ss; - Ss |= 2; - try { - return t(e); - } finally { - 0 === (Ss = n) && qi(); - } - }); - var qu, - Wu, - Xu = { - Events: [ - Cn, - On, - Pn, - A, - S, - zn, - function(t) { - ie(t, Nn); - }, - L, - D, - Ke, - se, - gu, - { current: !1 } - ] - }; - (Wu = (qu = { - findFiberByHostInstance: Tn, - bundleType: 0, - version: '16.13.1', - rendererPackageName: 'react-dom' - }).findFiberByHostInstance), - (function(t) { - if ('undefined' == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; - var e = __REACT_DEVTOOLS_GLOBAL_HOOK__; - if (e.isDisabled || !e.supportsFiber) return !0; - try { - var n = e.inject(t); - (xu = function(t) { - try { - e.onCommitFiberRoot( - n, - t, - void 0, - 64 == (64 & t.current.effectTag) - ); - } catch (t) {} - }), - (wu = function(t) { - try { - e.onCommitFiberUnmount(n, t); - } catch (t) {} - }); - } catch (t) {} - })( - i({}, qu, { - overrideHookState: null, - overrideProps: null, - setSuspenseHandler: null, - scheduleUpdate: null, - currentDispatcherRef: Q.ReactCurrentDispatcher, - findHostInstanceByFiber: function(t) { - return null === (t = ne(t)) ? null : t.stateNode; - }, - findFiberByHostInstance: function(t) { - return Wu ? Wu(t) : null; - }, - findHostInstancesForRefresh: null, - scheduleRefresh: null, - scheduleRoot: null, - setRefreshHandler: null, - getCurrentFiber: null - }) - ), - (e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Xu), - (e.createPortal = Uu), - (e.findDOMNode = function(t) { - if (null == t) return null; - if (1 === t.nodeType) return t; - var e = t._reactInternalFiber; - if (void 0 === e) { - if ('function' == typeof t.render) throw Error(a(188)); - throw Error(a(268, Object.keys(t))); - } - return (t = null === (t = ne(e)) ? null : t.stateNode); - }), - (e.flushSync = function(t, e) { - if (0 != (48 & Ss)) throw Error(a(187)); - var n = Ss; - Ss |= 1; - try { - return Gi(99, t.bind(null, e)); - } finally { - (Ss = n), qi(); - } - }), - (e.hydrate = function(t, e, n) { - if (!Bu(e)) throw Error(a(200)); - return Gu(null, t, e, !0, n); - }), - (e.render = function(t, e, n) { - if (!Bu(e)) throw Error(a(200)); - return Gu(null, t, e, !1, n); - }), - (e.unmountComponentAtNode = function(t) { - if (!Bu(t)) throw Error(a(40)); - return ( - !!t._reactRootContainer && - (eu(function() { - Gu(null, null, t, !1, function() { - (t._reactRootContainer = null), (t[An] = null); - }); - }), - !0) - ); - }), - (e.unstable_batchedUpdates = tu), - (e.unstable_createPortal = function(t, e) { - return Uu( - t, - e, - 2 < arguments.length && void 0 !== arguments[2] - ? arguments[2] - : null - ); - }), - (e.unstable_renderSubtreeIntoContainer = function(t, e, n, r) { - if (!Bu(n)) throw Error(a(200)); - if (null == t || void 0 === t._reactInternalFiber) throw Error(a(38)); - return Gu(t, e, n, !1, r); - }), - (e.version = '16.13.1'); - }, - function(t, e, n) { - 'use strict'; - t.exports = n(167); - }, - function(t, e, n) { - 'use strict'; - /** @license React v0.19.1 - * scheduler.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ var r, i, o, a, s; - if ('undefined' == typeof window || 'function' != typeof MessageChannel) { - var u = null, - l = null, - c = function() { - if (null !== u) - try { - var t = e.unstable_now(); - u(!0, t), (u = null); - } catch (t) { - throw (setTimeout(c, 0), t); - } - }, - f = Date.now(); - (e.unstable_now = function() { - return Date.now() - f; - }), - (r = function(t) { - null !== u ? setTimeout(r, 0, t) : ((u = t), setTimeout(c, 0)); - }), - (i = function(t, e) { - l = setTimeout(t, e); - }), - (o = function() { - clearTimeout(l); - }), - (a = function() { - return !1; - }), - (s = e.unstable_forceFrameRate = function() {}); - } else { - var d = window.performance, - h = window.Date, - p = window.setTimeout, - g = window.clearTimeout; - if ('undefined' != typeof console) { - var v = window.cancelAnimationFrame; - 'function' != typeof window.requestAnimationFrame && - console.error( - "This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills" - ), - 'function' != typeof v && - console.error( - "This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills" - ); - } - if ('object' == typeof d && 'function' == typeof d.now) - e.unstable_now = function() { - return d.now(); - }; - else { - var m = h.now(); - e.unstable_now = function() { - return h.now() - m; - }; - } - var y = !1, - b = null, - _ = -1, - x = 5, - w = 0; - (a = function() { - return e.unstable_now() >= w; - }), - (s = function() {}), - (e.unstable_forceFrameRate = function(t) { - 0 > t || 125 < t - ? console.error( - 'forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported' - ) - : (x = 0 < t ? Math.floor(1e3 / t) : 5); - }); - var S = new MessageChannel(), - E = S.port2; - (S.port1.onmessage = function() { - if (null !== b) { - var t = e.unstable_now(); - w = t + x; - try { - b(!0, t) ? E.postMessage(null) : ((y = !1), (b = null)); - } catch (t) { - throw (E.postMessage(null), t); - } - } else y = !1; - }), - (r = function(t) { - (b = t), y || ((y = !0), E.postMessage(null)); - }), - (i = function(t, n) { - _ = p(function() { - t(e.unstable_now()); - }, n); - }), - (o = function() { - g(_), (_ = -1); - }); - } - function k(t, e) { - var n = t.length; - t.push(e); - t: for (;;) { - var r = (n - 1) >>> 1, - i = t[r]; - if (!(void 0 !== i && 0 < C(i, e))) break t; - (t[r] = e), (t[n] = i), (n = r); - } - } - function A(t) { - return void 0 === (t = t[0]) ? null : t; - } - function T(t) { - var e = t[0]; - if (void 0 !== e) { - var n = t.pop(); - if (n !== e) { - t[0] = n; - t: for (var r = 0, i = t.length; r < i; ) { - var o = 2 * (r + 1) - 1, - a = t[o], - s = o + 1, - u = t[s]; - if (void 0 !== a && 0 > C(a, n)) - void 0 !== u && 0 > C(u, a) - ? ((t[r] = u), (t[s] = n), (r = s)) - : ((t[r] = a), (t[o] = n), (r = o)); - else { - if (!(void 0 !== u && 0 > C(u, n))) break t; - (t[r] = u), (t[s] = n), (r = s); - } - } - } - return e; - } - return null; - } - function C(t, e) { - var n = t.sortIndex - e.sortIndex; - return 0 !== n ? n : t.id - e.id; - } - var O = [], - P = [], - M = 1, - L = null, - D = 3, - j = !1, - R = !1, - N = !1; - function z(t) { - for (var e = A(P); null !== e; ) { - if (null === e.callback) T(P); - else { - if (!(e.startTime <= t)) break; - T(P), (e.sortIndex = e.expirationTime), k(O, e); - } - e = A(P); - } - } - function I(t) { - if (((N = !1), z(t), !R)) - if (null !== A(O)) (R = !0), r(F); - else { - var e = A(P); - null !== e && i(I, e.startTime - t); - } - } - function F(t, n) { - (R = !1), N && ((N = !1), o()), (j = !0); - var r = D; - try { - for ( - z(n), L = A(O); - null !== L && (!(L.expirationTime > n) || (t && !a())); - - ) { - var s = L.callback; - if (null !== s) { - (L.callback = null), (D = L.priorityLevel); - var u = s(L.expirationTime <= n); - (n = e.unstable_now()), - 'function' == typeof u ? (L.callback = u) : L === A(O) && T(O), - z(n); - } else T(O); - L = A(O); - } - if (null !== L) var l = !0; - else { - var c = A(P); - null !== c && i(I, c.startTime - n), (l = !1); - } - return l; - } finally { - (L = null), (D = r), (j = !1); - } - } - function V(t) { - switch (t) { - case 1: - return -1; - case 2: - return 250; - case 5: - return 1073741823; - case 4: - return 1e4; - default: - return 5e3; - } - } - var B = s; - (e.unstable_IdlePriority = 5), - (e.unstable_ImmediatePriority = 1), - (e.unstable_LowPriority = 4), - (e.unstable_NormalPriority = 3), - (e.unstable_Profiling = null), - (e.unstable_UserBlockingPriority = 2), - (e.unstable_cancelCallback = function(t) { - t.callback = null; - }), - (e.unstable_continueExecution = function() { - R || j || ((R = !0), r(F)); - }), - (e.unstable_getCurrentPriorityLevel = function() { - return D; - }), - (e.unstable_getFirstCallbackNode = function() { - return A(O); - }), - (e.unstable_next = function(t) { - switch (D) { - case 1: - case 2: - case 3: - var e = 3; - break; - default: - e = D; - } - var n = D; - D = e; - try { - return t(); - } finally { - D = n; - } - }), - (e.unstable_pauseExecution = function() {}), - (e.unstable_requestPaint = B), - (e.unstable_runWithPriority = function(t, e) { - switch (t) { - case 1: - case 2: - case 3: - case 4: - case 5: - break; - default: - t = 3; - } - var n = D; - D = t; - try { - return e(); - } finally { - D = n; - } - }), - (e.unstable_scheduleCallback = function(t, n, a) { - var s = e.unstable_now(); - if ('object' == typeof a && null !== a) { - var u = a.delay; - (u = 'number' == typeof u && 0 < u ? s + u : s), - (a = 'number' == typeof a.timeout ? a.timeout : V(t)); - } else (a = V(t)), (u = s); - return ( - (t = { - id: M++, - callback: n, - priorityLevel: t, - startTime: u, - expirationTime: (a = u + a), - sortIndex: -1 - }), - u > s - ? ((t.sortIndex = u), - k(P, t), - null === A(O) && - t === A(P) && - (N ? o() : (N = !0), i(I, u - s))) - : ((t.sortIndex = a), k(O, t), R || j || ((R = !0), r(F))), - t - ); - }), - (e.unstable_shouldYield = function() { - var t = e.unstable_now(); - z(t); - var n = A(O); - return ( - (n !== L && - null !== L && - null !== n && - null !== n.callback && - n.startTime <= t && - n.expirationTime < L.expirationTime) || - a() - ); - }), - (e.unstable_wrapCallback = function(t) { - var e = D; - return function() { - var n = D; - D = e; - try { - return t.apply(this, arguments); - } finally { - D = n; - } - }; - }); - }, - function(t, e, n) { - 'use strict'; - var r = n(169); - function i() {} - function o() {} - (o.resetWarningCache = i), - (t.exports = function() { - function t(t, e, n, i, o, a) { - if (a !== r) { - var s = 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 ((s.name = 'Invariant Violation'), s); - } - } - function e() { - return t; - } - t.isRequired = t; - var n = { - array: t, - bool: t, - func: t, - number: t, - object: t, - string: t, - symbol: t, - any: t, - arrayOf: e, - element: t, - elementType: t, - instanceOf: e, - node: t, - objectOf: e, - oneOf: e, - oneOfType: e, - shape: e, - exact: e, - checkPropTypes: o, - resetWarningCache: i - }; - return (n.PropTypes = n), n; - }); - }, - function(t, e, n) { - 'use strict'; - t.exports = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; - }, - function(t, e, n) { - 'use strict'; - /** @license React v16.13.1 - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ var r = 'function' == typeof Symbol && Symbol.for, - i = r ? Symbol.for('react.element') : 60103, - o = r ? Symbol.for('react.portal') : 60106, - a = r ? Symbol.for('react.fragment') : 60107, - s = r ? Symbol.for('react.strict_mode') : 60108, - u = r ? Symbol.for('react.profiler') : 60114, - l = r ? Symbol.for('react.provider') : 60109, - c = r ? Symbol.for('react.context') : 60110, - f = r ? Symbol.for('react.async_mode') : 60111, - d = r ? Symbol.for('react.concurrent_mode') : 60111, - h = r ? Symbol.for('react.forward_ref') : 60112, - p = r ? Symbol.for('react.suspense') : 60113, - g = r ? Symbol.for('react.suspense_list') : 60120, - v = r ? Symbol.for('react.memo') : 60115, - m = r ? Symbol.for('react.lazy') : 60116, - y = r ? Symbol.for('react.block') : 60121, - b = r ? Symbol.for('react.fundamental') : 60117, - _ = r ? Symbol.for('react.responder') : 60118, - x = r ? Symbol.for('react.scope') : 60119; - function w(t) { - if ('object' == typeof t && null !== t) { - var e = t.$$typeof; - switch (e) { - case i: - switch ((t = t.type)) { - case f: - case d: - case a: - case u: - case s: - case p: - return t; - default: - switch ((t = t && t.$$typeof)) { - case c: - case h: - case m: - case v: - case l: - return t; - default: - return e; - } - } - case o: - return e; - } - } - } - function S(t) { - return w(t) === d; - } - (e.AsyncMode = f), - (e.ConcurrentMode = d), - (e.ContextConsumer = c), - (e.ContextProvider = l), - (e.Element = i), - (e.ForwardRef = h), - (e.Fragment = a), - (e.Lazy = m), - (e.Memo = v), - (e.Portal = o), - (e.Profiler = u), - (e.StrictMode = s), - (e.Suspense = p), - (e.isAsyncMode = function(t) { - return S(t) || w(t) === f; - }), - (e.isConcurrentMode = S), - (e.isContextConsumer = function(t) { - return w(t) === c; - }), - (e.isContextProvider = function(t) { - return w(t) === l; - }), - (e.isElement = function(t) { - return 'object' == typeof t && null !== t && t.$$typeof === i; - }), - (e.isForwardRef = function(t) { - return w(t) === h; - }), - (e.isFragment = function(t) { - return w(t) === a; - }), - (e.isLazy = function(t) { - return w(t) === m; - }), - (e.isMemo = function(t) { - return w(t) === v; - }), - (e.isPortal = function(t) { - return w(t) === o; - }), - (e.isProfiler = function(t) { - return w(t) === u; - }), - (e.isStrictMode = function(t) { - return w(t) === s; - }), - (e.isSuspense = function(t) { - return w(t) === p; - }), - (e.isValidElementType = function(t) { - return ( - 'string' == typeof t || - 'function' == typeof t || - t === a || - t === d || - t === u || - t === s || - t === p || - t === g || - ('object' == typeof t && - null !== t && - (t.$$typeof === m || - t.$$typeof === v || - t.$$typeof === l || - t.$$typeof === c || - t.$$typeof === h || - t.$$typeof === b || - t.$$typeof === _ || - t.$$typeof === x || - t.$$typeof === y)) - ); - }), - (e.typeOf = w); - }, - function(t, e) { - t.exports = function(t) { - if (!t.webpackPolyfill) { - var e = Object.create(t); - e.children || (e.children = []), - Object.defineProperty(e, 'loaded', { - enumerable: !0, - get: function() { - return e.l; - } - }), - Object.defineProperty(e, 'id', { - enumerable: !0, - get: function() { - return e.i; - } - }), - Object.defineProperty(e, 'exports', { enumerable: !0 }), - (e.webpackPolyfill = 1); - } - return e; - }; - }, - function(t, e, n) { - var r = n(91)(Object.keys, Object); - t.exports = r; - }, - function(t, e, n) { - var r = n(25)(n(18), 'DataView'); - t.exports = r; - }, - function(t, e, n) { - var r = n(65), - i = n(177), - o = n(14), - a = n(93), - s = /^\[object .+?Constructor\]$/, - u = Function.prototype, - l = Object.prototype, - c = u.toString, - f = l.hasOwnProperty, - d = RegExp( - '^' + - c - .call(f) - .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') - .replace( - /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, - '$1.*?' - ) + - '$' - ); - t.exports = function(t) { - return !(!o(t) || i(t)) && (r(t) ? d : s).test(a(t)); - }; - }, - function(t, e, n) { - var r = n(33), - i = Object.prototype, - o = i.hasOwnProperty, - a = i.toString, - s = r ? r.toStringTag : void 0; - t.exports = function(t) { - var e = o.call(t, s), - n = t[s]; - try { - t[s] = void 0; - var r = !0; - } catch (t) {} - var i = a.call(t); - return r && (e ? (t[s] = n) : delete t[s]), i; - }; - }, - function(t, e) { - var n = Object.prototype.toString; - t.exports = function(t) { - return n.call(t); - }; - }, - function(t, e, n) { - var r, - i = n(178), - o = (r = /[^.]+$/.exec((i && i.keys && i.keys.IE_PROTO) || '')) - ? 'Symbol(src)_1.' + r - : ''; - t.exports = function(t) { - return !!o && o in t; - }; - }, - function(t, e, n) { - var r = n(18)['__core-js_shared__']; - t.exports = r; - }, - function(t, e) { - t.exports = function(t, e) { - return null == t ? void 0 : t[e]; - }; - }, - function(t, e, n) { - var r = n(25)(n(18), 'Promise'); - t.exports = r; - }, - function(t, e, n) { - var r = n(25)(n(18), 'Set'); - t.exports = r; - }, - function(t, e, n) { - var r = n(25)(n(18), 'WeakMap'); - t.exports = r; - }, - function(t, e, n) { - var r = n(26), - i = n(20); - t.exports = function(t) { - return i(t) && '[object Arguments]' == r(t); - }; - }, - function(t, e) { - t.exports = function() { - return !1; - }; - }, - function(t, e, n) { - var r = n(26), - i = n(67), - o = n(20), - a = {}; - (a['[object Float32Array]'] = a['[object Float64Array]'] = a[ - '[object Int8Array]' - ] = a['[object Int16Array]'] = a['[object Int32Array]'] = a[ - '[object Uint8Array]' - ] = a['[object Uint8ClampedArray]'] = a['[object Uint16Array]'] = a[ - '[object Uint32Array]' - ] = !0), - (a['[object Arguments]'] = a['[object Array]'] = a[ - '[object ArrayBuffer]' - ] = a['[object Boolean]'] = a['[object DataView]'] = a[ - '[object Date]' - ] = a['[object Error]'] = a['[object Function]'] = a[ - '[object Map]' - ] = a['[object Number]'] = a['[object Object]'] = a[ - '[object RegExp]' - ] = a['[object Set]'] = a['[object String]'] = a[ - '[object WeakMap]' - ] = !1), - (t.exports = function(t) { - return o(t) && i(t.length) && !!a[r(t)]; - }); - }, - function(t, e, n) { - var r = n(94); - t.exports = function(t) { - if (Array.isArray(t)) return r(t); - }; - }, - function(t, e) { - t.exports = function(t) { - if ('undefined' != typeof Symbol && Symbol.iterator in Object(t)) - return Array.from(t); - }; - }, - function(t, e, n) { - var r = n(94); - t.exports = function(t, e) { - if (t) { - if ('string' == typeof t) return r(t, e); - var n = Object.prototype.toString.call(t).slice(8, -1); - return ( - 'Object' === n && t.constructor && (n = t.constructor.name), - 'Map' === n || 'Set' === n - ? Array.from(n) - : 'Arguments' === n || - /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) - ? r(t, e) - : void 0 - ); - } - }; - }, - function(t, e) { - t.exports = function() { - throw new TypeError( - 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' - ); - }; - }, - function(t, e, n) { - var r = n(48), - i = n(95), - o = n(97), - a = n(214), - s = n(14), - u = n(53), - l = n(104); - t.exports = function t(e, n, c, f, d) { - e !== n && - o( - n, - function(o, u) { - if ((d || (d = new r()), s(o))) a(e, n, u, c, t, f, d); - else { - var h = f ? f(l(e, u), o, u + '', e, n, d) : void 0; - void 0 === h && (h = o), i(e, u, h); - } - }, - u - ); - }; - }, - function(t, e) { - t.exports = function() { - (this.__data__ = []), (this.size = 0); - }; - }, - function(t, e, n) { - var r = n(50), - i = Array.prototype.splice; - t.exports = function(t) { - var e = this.__data__, - n = r(e, t); - return ( - !(n < 0) && - (n == e.length - 1 ? e.pop() : i.call(e, n, 1), --this.size, !0) - ); - }; - }, - function(t, e, n) { - var r = n(50); - t.exports = function(t) { - var e = this.__data__, - n = r(e, t); - return n < 0 ? void 0 : e[n][1]; - }; - }, - function(t, e, n) { - var r = n(50); - t.exports = function(t) { - return r(this.__data__, t) > -1; - }; - }, - function(t, e, n) { - var r = n(50); - t.exports = function(t, e) { - var n = this.__data__, - i = r(n, t); - return i < 0 ? (++this.size, n.push([t, e])) : (n[i][1] = e), this; - }; - }, - function(t, e, n) { - var r = n(49); - t.exports = function() { - (this.__data__ = new r()), (this.size = 0); - }; - }, - function(t, e) { - t.exports = function(t) { - var e = this.__data__, - n = e.delete(t); - return (this.size = e.size), n; - }; - }, - function(t, e) { - t.exports = function(t) { - return this.__data__.get(t); - }; - }, - function(t, e) { - t.exports = function(t) { - return this.__data__.has(t); - }; - }, - function(t, e, n) { - var r = n(49), - i = n(66), - o = n(70); - t.exports = function(t, e) { - var n = this.__data__; - if (n instanceof r) { - var a = n.__data__; - if (!i || a.length < 199) - return a.push([t, e]), (this.size = ++n.size), this; - n = this.__data__ = new o(a); - } - return n.set(t, e), (this.size = n.size), this; - }; - }, - function(t, e, n) { - var r = n(202), - i = n(49), - o = n(66); - t.exports = function() { - (this.size = 0), - (this.__data__ = { - hash: new r(), - map: new (o || i)(), - string: new r() - }); - }; - }, - function(t, e, n) { - var r = n(203), - i = n(204), - o = n(205), - a = n(206), - s = n(207); - function u(t) { - var e = -1, - n = null == t ? 0 : t.length; - for (this.clear(); ++e < n; ) { - var r = t[e]; - this.set(r[0], r[1]); - } - } - (u.prototype.clear = r), - (u.prototype.delete = i), - (u.prototype.get = o), - (u.prototype.has = a), - (u.prototype.set = s), - (t.exports = u); - }, - function(t, e, n) { - var r = n(51); - t.exports = function() { - (this.__data__ = r ? r(null) : {}), (this.size = 0); - }; - }, - function(t, e) { - t.exports = function(t) { - var e = this.has(t) && delete this.__data__[t]; - return (this.size -= e ? 1 : 0), e; - }; - }, - function(t, e, n) { - var r = n(51), - i = Object.prototype.hasOwnProperty; - t.exports = function(t) { - var e = this.__data__; - if (r) { - var n = e[t]; - return '__lodash_hash_undefined__' === n ? void 0 : n; - } - return i.call(e, t) ? e[t] : void 0; - }; - }, - function(t, e, n) { - var r = n(51), - i = Object.prototype.hasOwnProperty; - t.exports = function(t) { - var e = this.__data__; - return r ? void 0 !== e[t] : i.call(e, t); - }; - }, - function(t, e, n) { - var r = n(51); - t.exports = function(t, e) { - var n = this.__data__; - return ( - (this.size += this.has(t) ? 0 : 1), - (n[t] = r && void 0 === e ? '__lodash_hash_undefined__' : e), - this - ); - }; - }, - function(t, e, n) { - var r = n(52); - t.exports = function(t) { - var e = r(this, t).delete(t); - return (this.size -= e ? 1 : 0), e; - }; - }, - function(t, e) { - t.exports = function(t) { - var e = typeof t; - return 'string' == e || 'number' == e || 'symbol' == e || 'boolean' == e - ? '__proto__' !== t - : null === t; - }; - }, - function(t, e, n) { - var r = n(52); - t.exports = function(t) { - return r(this, t).get(t); - }; - }, - function(t, e, n) { - var r = n(52); - t.exports = function(t) { - return r(this, t).has(t); - }; - }, - function(t, e, n) { - var r = n(52); - t.exports = function(t, e) { - var n = r(this, t), - i = n.size; - return n.set(t, e), (this.size += n.size == i ? 0 : 1), this; - }; - }, - function(t, e) { - t.exports = function(t) { - return function(e, n, r) { - for (var i = -1, o = Object(e), a = r(e), s = a.length; s--; ) { - var u = a[t ? s : ++i]; - if (!1 === n(o[u], u, o)) break; - } - return e; - }; - }; - }, - function(t, e, n) { - var r = n(95), - i = n(98), - o = n(99), - a = n(101), - s = n(102), - u = n(46), - l = n(10), - c = n(216), - f = n(34), - d = n(65), - h = n(14), - p = n(103), - g = n(47), - v = n(104), - m = n(217); - t.exports = function(t, e, n, y, b, _, x) { - var w = v(t, n), - S = v(e, n), - E = x.get(S); - if (E) r(t, n, E); - else { - var k = _ ? _(w, S, n + '', t, e, x) : void 0, - A = void 0 === k; - if (A) { - var T = l(S), - C = !T && f(S), - O = !T && !C && g(S); - (k = S), - T || C || O - ? l(w) - ? (k = w) - : c(w) - ? (k = a(w)) - : C - ? ((A = !1), (k = i(S, !0))) - : O - ? ((A = !1), (k = o(S, !0))) - : (k = []) - : p(S) || u(S) - ? ((k = w), u(w) ? (k = m(w)) : (h(w) && !d(w)) || (k = s(S))) - : (A = !1); - } - A && (x.set(S, k), b(k, S, y, _, x), x.delete(S)), r(t, n, k); - } - }; - }, - function(t, e, n) { - var r = n(14), - i = Object.create, - o = (function() { - function t() {} - return function(e) { - if (!r(e)) return {}; - if (i) return i(e); - t.prototype = e; - var n = new t(); - return (t.prototype = void 0), n; - }; - })(); - t.exports = o; - }, - function(t, e, n) { - var r = n(27), - i = n(20); - t.exports = function(t) { - return i(t) && r(t); - }; - }, - function(t, e, n) { - var r = n(37), - i = n(53); - t.exports = function(t) { - return r(t, i(t)); - }; - }, - function(t, e) { - t.exports = function(t, e) { - for (var n = -1, r = Array(t); ++n < t; ) r[n] = e(n); - return r; - }; - }, - function(t, e, n) { - var r = n(14), - i = n(45), - o = n(220), - a = Object.prototype.hasOwnProperty; - t.exports = function(t) { - if (!r(t)) return o(t); - var e = i(t), - n = []; - for (var s in t) - ('constructor' != s || (!e && a.call(t, s))) && n.push(s); - return n; - }; - }, - function(t, e) { - t.exports = function(t) { - var e = []; - if (null != t) for (var n in Object(t)) e.push(n); - return e; - }; - }, - function(t, e, n) { - var r = n(222), - i = n(229); - t.exports = function(t) { - return r(function(e, n) { - var r = -1, - o = n.length, - a = o > 1 ? n[o - 1] : void 0, - s = o > 2 ? n[2] : void 0; - for ( - a = t.length > 3 && 'function' == typeof a ? (o--, a) : void 0, - s && i(n[0], n[1], s) && ((a = o < 3 ? void 0 : a), (o = 1)), - e = Object(e); - ++r < o; - - ) { - var u = n[r]; - u && t(e, u, r, a); - } - return e; - }); - }; - }, - function(t, e, n) { - var r = n(54), - i = n(223), - o = n(225); - t.exports = function(t, e) { - return o(i(t, e, r), t + ''); - }; - }, - function(t, e, n) { - var r = n(224), - i = Math.max; - t.exports = function(t, e, n) { - return ( - (e = i(void 0 === e ? t.length - 1 : e, 0)), - function() { - for ( - var o = arguments, a = -1, s = i(o.length - e, 0), u = Array(s); - ++a < s; - - ) - u[a] = o[e + a]; - a = -1; - for (var l = Array(e + 1); ++a < e; ) l[a] = o[a]; - return (l[e] = n(u)), r(t, this, l); - } - ); - }; - }, - function(t, e) { - t.exports = function(t, e, n) { - switch (n.length) { - case 0: - return t.call(e); - case 1: - return t.call(e, n[0]); - case 2: - return t.call(e, n[0], n[1]); - case 3: - return t.call(e, n[0], n[1], n[2]); - } - return t.apply(e, n); - }; - }, - function(t, e, n) { - var r = n(226), - i = n(228)(r); - t.exports = i; - }, - function(t, e, n) { - var r = n(227), - i = n(96), - o = n(54), - a = i - ? function(t, e) { - return i(t, 'toString', { - configurable: !0, - enumerable: !1, - value: r(e), - writable: !0 - }); - } - : o; - t.exports = a; - }, - function(t, e) { - t.exports = function(t) { - return function() { - return t; - }; - }; - }, - function(t, e) { - var n = Date.now; - t.exports = function(t) { - var e = 0, - r = 0; - return function() { - var i = n(), - o = 16 - (i - r); - if (((r = i), o > 0)) { - if (++e >= 800) return arguments[0]; - } else e = 0; - return t.apply(void 0, arguments); - }; - }; - }, - function(t, e, n) { - var r = n(36), - i = n(27), - o = n(74), - a = n(14); - t.exports = function(t, e, n) { - if (!a(n)) return !1; - var s = typeof e; - return ( - !!('number' == s - ? i(n) && o(e, n.length) - : 'string' == s && e in n) && r(n[e], t) - ); - }; - }, - function(t, e, n) { - (function(t) { - var r = - (void 0 !== t && t) || - ('undefined' != typeof self && self) || - window, - i = Function.prototype.apply; - function o(t, e) { - (this._id = t), (this._clearFn = e); - } - (e.setTimeout = function() { - return new o(i.call(setTimeout, r, arguments), clearTimeout); - }), - (e.setInterval = function() { - return new o(i.call(setInterval, r, arguments), clearInterval); - }), - (e.clearTimeout = e.clearInterval = function(t) { - t && t.close(); - }), - (o.prototype.unref = o.prototype.ref = function() {}), - (o.prototype.close = function() { - this._clearFn.call(r, this._id); - }), - (e.enroll = function(t, e) { - clearTimeout(t._idleTimeoutId), (t._idleTimeout = e); - }), - (e.unenroll = function(t) { - clearTimeout(t._idleTimeoutId), (t._idleTimeout = -1); - }), - (e._unrefActive = e.active = function(t) { - clearTimeout(t._idleTimeoutId); - var e = t._idleTimeout; - e >= 0 && - (t._idleTimeoutId = setTimeout(function() { - t._onTimeout && t._onTimeout(); - }, e)); - }), - n(231), - (e.setImmediate = - ('undefined' != typeof self && self.setImmediate) || - (void 0 !== t && t.setImmediate) || - (this && this.setImmediate)), - (e.clearImmediate = - ('undefined' != typeof self && self.clearImmediate) || - (void 0 !== t && t.clearImmediate) || - (this && this.clearImmediate)); - }.call(this, n(13))); - }, - function(t, e, n) { - (function(t, e) { - !(function(t, n) { - 'use strict'; - if (!t.setImmediate) { - var r, - i, - o, - a, - s, - u = 1, - l = {}, - c = !1, - f = t.document, - d = Object.getPrototypeOf && Object.getPrototypeOf(t); - (d = d && d.setTimeout ? d : t), - '[object process]' === {}.toString.call(t.process) - ? (r = function(t) { - e.nextTick(function() { - p(t); - }); - }) - : !(function() { - if (t.postMessage && !t.importScripts) { - var e = !0, - n = t.onmessage; - return ( - (t.onmessage = function() { - e = !1; - }), - t.postMessage('', '*'), - (t.onmessage = n), - e - ); - } - })() - ? t.MessageChannel - ? (((o = new MessageChannel()).port1.onmessage = function(t) { - p(t.data); - }), - (r = function(t) { - o.port2.postMessage(t); - })) - : f && 'onreadystatechange' in f.createElement('script') - ? ((i = f.documentElement), - (r = function(t) { - var e = f.createElement('script'); - (e.onreadystatechange = function() { - p(t), - (e.onreadystatechange = null), - i.removeChild(e), - (e = null); - }), - i.appendChild(e); - })) - : (r = function(t) { - setTimeout(p, 0, t); - }) - : ((a = 'setImmediate$' + Math.random() + '$'), - (s = function(e) { - e.source === t && - 'string' == typeof e.data && - 0 === e.data.indexOf(a) && - p(+e.data.slice(a.length)); - }), - t.addEventListener - ? t.addEventListener('message', s, !1) - : t.attachEvent('onmessage', s), - (r = function(e) { - t.postMessage(a + e, '*'); - })), - (d.setImmediate = function(t) { - 'function' != typeof t && (t = new Function('' + t)); - for ( - var e = new Array(arguments.length - 1), n = 0; - n < e.length; - n++ - ) - e[n] = arguments[n + 1]; - var i = { callback: t, args: e }; - return (l[u] = i), r(u), u++; - }), - (d.clearImmediate = h); - } - function h(t) { - delete l[t]; - } - function p(t) { - if (c) setTimeout(p, 0, t); - else { - var e = l[t]; - if (e) { - c = !0; - try { - !(function(t) { - var e = t.callback, - n = t.args; - switch (n.length) { - case 0: - e(); - break; - case 1: - e(n[0]); - break; - case 2: - e(n[0], n[1]); - break; - case 3: - e(n[0], n[1], n[2]); - break; - default: - e.apply(void 0, n); - } - })(e); - } finally { - h(t), (c = !1); - } - } - } - } - })('undefined' == typeof self ? (void 0 === t ? this : t) : self); - }.call(this, n(13), n(107))); - }, - function(t, e) { - function n(e, r) { - return ( - (t.exports = n = - Object.setPrototypeOf || - function(t, e) { - return (t.__proto__ = e), t; - }), - n(e, r) - ); - } - t.exports = n; - }, - function(t, e) { - function n(e) { - return ( - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? (t.exports = n = function(t) { - return typeof t; - }) - : (t.exports = n = function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - }), - n(e) - ); - } - t.exports = n; - }, - function(t, e) { - t.exports = - Array.isArray || - function(t) { - return '[object Array]' == Object.prototype.toString.call(t); - }; - }, - function(t, e, n) { - (function(e) { - (function() { - var n, r, i, o, a, s; - 'undefined' != typeof performance && - null !== performance && - performance.now - ? (t.exports = function() { - return performance.now(); - }) - : null != e && e.hrtime - ? ((t.exports = function() { - return (n() - a) / 1e6; - }), - (r = e.hrtime), - (o = (n = function() { - var t; - return 1e9 * (t = r())[0] + t[1]; - })()), - (s = 1e9 * e.uptime()), - (a = o - s)) - : Date.now - ? ((t.exports = function() { - return Date.now() - i; - }), - (i = Date.now())) - : ((t.exports = function() { - return new Date().getTime() - i; - }), - (i = new Date().getTime())); - }.call(this)); - }.call(this, n(107))); - }, - function(t, e, n) { - 'use strict'; - (e.__esModule = !0), (e.default = void 0); - !(function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - if (Object.prototype.hasOwnProperty.call(t, n)) { - var r = - Object.defineProperty && Object.getOwnPropertyDescriptor - ? Object.getOwnPropertyDescriptor(t, n) - : {}; - r.get || r.set ? Object.defineProperty(e, n, r) : (e[n] = t[n]); - } - e.default = t; - })(n(1)); - var r = s(n(237)), - i = s(n(240)), - o = s(n(0)), - a = s(n(108)); - n(110); - function s(t) { - return t && t.__esModule ? t : { default: t }; - } - function u() { - return (u = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - var l = function(t, e) { - return ( - t && - e && - e.split(' ').forEach(function(e) { - return (0, r.default)(t, e); - }) - ); - }, - c = function(t, e) { - return ( - t && - e && - e.split(' ').forEach(function(e) { - return (0, i.default)(t, e); - }) - ); - }, - f = (function(t) { - var e, n; - function r() { - for ( - var e, n = arguments.length, r = new Array(n), i = 0; - i < n; - i++ - ) - r[i] = arguments[i]; - return ( - ((e = - t.call.apply(t, [this].concat(r)) || this).onEnter = function( - t, - n - ) { - var r = e.getClassNames(n ? 'appear' : 'enter').className; - e.removeClasses(t, 'exit'), - l(t, r), - e.props.onEnter && e.props.onEnter(t, n); - }), - (e.onEntering = function(t, n) { - var r = e.getClassNames(n ? 'appear' : 'enter').activeClassName; - e.reflowAndAddClass(t, r), - e.props.onEntering && e.props.onEntering(t, n); - }), - (e.onEntered = function(t, n) { - var r = e.getClassNames('appear').doneClassName, - i = e.getClassNames('enter').doneClassName, - o = n ? r + ' ' + i : i; - e.removeClasses(t, n ? 'appear' : 'enter'), - l(t, o), - e.props.onEntered && e.props.onEntered(t, n); - }), - (e.onExit = function(t) { - var n = e.getClassNames('exit').className; - e.removeClasses(t, 'appear'), - e.removeClasses(t, 'enter'), - l(t, n), - e.props.onExit && e.props.onExit(t); - }), - (e.onExiting = function(t) { - var n = e.getClassNames('exit').activeClassName; - e.reflowAndAddClass(t, n), - e.props.onExiting && e.props.onExiting(t); - }), - (e.onExited = function(t) { - var n = e.getClassNames('exit').doneClassName; - e.removeClasses(t, 'exit'), - l(t, n), - e.props.onExited && e.props.onExited(t); - }), - (e.getClassNames = function(t) { - var n = e.props.classNames, - r = 'string' == typeof n, - i = r ? (r && n ? n + '-' : '') + t : n[t]; - return { - className: i, - activeClassName: r ? i + '-active' : n[t + 'Active'], - doneClassName: r ? i + '-done' : n[t + 'Done'] - }; - }), - e - ); - } - (n = t), - ((e = r).prototype = Object.create(n.prototype)), - (e.prototype.constructor = e), - (e.__proto__ = n); - var i = r.prototype; - return ( - (i.removeClasses = function(t, e) { - var n = this.getClassNames(e), - r = n.className, - i = n.activeClassName, - o = n.doneClassName; - r && c(t, r), i && c(t, i), o && c(t, o); - }), - (i.reflowAndAddClass = function(t, e) { - e && (t && t.scrollTop, l(t, e)); - }), - (i.render = function() { - var t = u({}, this.props); - return ( - delete t.classNames, - o.default.createElement( - a.default, - u({}, t, { - onEnter: this.onEnter, - onEntered: this.onEntered, - onEntering: this.onEntering, - onExit: this.onExit, - onExiting: this.onExiting, - onExited: this.onExited - }) - ) - ); - }), - r - ); - })(o.default.Component); - (f.defaultProps = { classNames: '' }), (f.propTypes = {}); - var d = f; - (e.default = d), (t.exports = e.default); - }, - function(t, e, n) { - 'use strict'; - var r = n(238); - (e.__esModule = !0), - (e.default = function(t, e) { - t.classList - ? t.classList.add(e) - : (0, i.default)(t, e) || - ('string' == typeof t.className - ? (t.className = t.className + ' ' + e) - : t.setAttribute( - 'class', - ((t.className && t.className.baseVal) || '') + ' ' + e - )); - }); - var i = r(n(239)); - t.exports = e.default; - }, - function(t, e) { - t.exports = function(t) { - return t && t.__esModule ? t : { default: t }; - }; - }, - function(t, e, n) { - 'use strict'; - (e.__esModule = !0), - (e.default = function(t, e) { - return t.classList - ? !!e && t.classList.contains(e) - : -1 !== - (' ' + (t.className.baseVal || t.className) + ' ').indexOf( - ' ' + e + ' ' - ); - }), - (t.exports = e.default); - }, - function(t, e, n) { - 'use strict'; - function r(t, e) { - return t - .replace(new RegExp('(^|\\s)' + e + '(?:\\s|$)', 'g'), '$1') - .replace(/\s+/g, ' ') - .replace(/^\s*|\s*$/g, ''); - } - t.exports = function(t, e) { - t.classList - ? t.classList.remove(e) - : 'string' == typeof t.className - ? (t.className = r(t.className, e)) - : t.setAttribute( - 'class', - r((t.className && t.className.baseVal) || '', e) - ); - }; - }, - function(t, e, n) { - 'use strict'; - (e.__esModule = !0), (e.default = void 0); - a(n(1)); - var r = a(n(0)), - i = n(5), - o = a(n(111)); - function a(t) { - return t && t.__esModule ? t : { default: t }; - } - var s = (function(t) { - var e, n; - function a() { - for (var e, n = arguments.length, r = new Array(n), i = 0; i < n; i++) - r[i] = arguments[i]; - return ( - ((e = - t.call.apply(t, [this].concat(r)) || - this).handleEnter = function() { - for ( - var t = arguments.length, n = new Array(t), r = 0; - r < t; - r++ - ) - n[r] = arguments[r]; - return e.handleLifecycle('onEnter', 0, n); - }), - (e.handleEntering = function() { - for ( - var t = arguments.length, n = new Array(t), r = 0; - r < t; - r++ - ) - n[r] = arguments[r]; - return e.handleLifecycle('onEntering', 0, n); - }), - (e.handleEntered = function() { - for ( - var t = arguments.length, n = new Array(t), r = 0; - r < t; - r++ - ) - n[r] = arguments[r]; - return e.handleLifecycle('onEntered', 0, n); - }), - (e.handleExit = function() { - for ( - var t = arguments.length, n = new Array(t), r = 0; - r < t; - r++ - ) - n[r] = arguments[r]; - return e.handleLifecycle('onExit', 1, n); - }), - (e.handleExiting = function() { - for ( - var t = arguments.length, n = new Array(t), r = 0; - r < t; - r++ - ) - n[r] = arguments[r]; - return e.handleLifecycle('onExiting', 1, n); - }), - (e.handleExited = function() { - for ( - var t = arguments.length, n = new Array(t), r = 0; - r < t; - r++ - ) - n[r] = arguments[r]; - return e.handleLifecycle('onExited', 1, n); - }), - e - ); - } - (n = t), - ((e = a).prototype = Object.create(n.prototype)), - (e.prototype.constructor = e), - (e.__proto__ = n); - var s = a.prototype; - return ( - (s.handleLifecycle = function(t, e, n) { - var o, - a = this.props.children, - s = r.default.Children.toArray(a)[e]; - s.props[t] && (o = s.props)[t].apply(o, n), - this.props[t] && this.props[t]((0, i.findDOMNode)(this)); - }), - (s.render = function() { - var t = this.props, - e = t.children, - n = t.in, - i = (function(t, e) { - if (null == t) return {}; - var n, - r, - i = {}, - o = Object.keys(t); - for (r = 0; r < o.length; r++) - (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); - return i; - })(t, ['children', 'in']), - a = r.default.Children.toArray(e), - s = a[0], - u = a[1]; - return ( - delete i.onEnter, - delete i.onEntering, - delete i.onEntered, - delete i.onExit, - delete i.onExiting, - delete i.onExited, - r.default.createElement( - o.default, - i, - n - ? r.default.cloneElement(s, { - key: 'first', - onEnter: this.handleEnter, - onEntering: this.handleEntering, - onEntered: this.handleEntered - }) - : r.default.cloneElement(u, { - key: 'second', - onEnter: this.handleExit, - onEntering: this.handleExiting, - onEntered: this.handleExited - }) - ) - ); - }), - a - ); - })(r.default.Component); - s.propTypes = {}; - var u = s; - (e.default = u), (t.exports = e.default); - }, - function(t, e, n) { - 'use strict'; - (e.__esModule = !0), - (e.getChildMapping = i), - (e.mergeChildMappings = o), - (e.getInitialChildMapping = function(t, e) { - return i(t.children, function(n) { - return (0, - r.cloneElement)(n, { onExited: e.bind(null, n), in: !0, appear: a(n, 'appear', t), enter: a(n, 'enter', t), exit: a(n, 'exit', t) }); - }); - }), - (e.getNextChildMapping = function(t, e, n) { - var s = i(t.children), - u = o(e, s); - return ( - Object.keys(u).forEach(function(i) { - var o = u[i]; - if ((0, r.isValidElement)(o)) { - var l = i in e, - c = i in s, - f = e[i], - d = (0, r.isValidElement)(f) && !f.props.in; - !c || (l && !d) - ? c || !l || d - ? c && - l && - (0, r.isValidElement)(f) && - (u[i] = (0, r.cloneElement)(o, { - onExited: n.bind(null, o), - in: f.props.in, - exit: a(o, 'exit', t), - enter: a(o, 'enter', t) - })) - : (u[i] = (0, r.cloneElement)(o, { in: !1 })) - : (u[i] = (0, r.cloneElement)(o, { - onExited: n.bind(null, o), - in: !0, - exit: a(o, 'exit', t), - enter: a(o, 'enter', t) - })); - } - }), - u - ); - }); - var r = n(0); - function i(t, e) { - var n = Object.create(null); - return ( - t && - r.Children.map(t, function(t) { - return t; - }).forEach(function(t) { - n[t.key] = (function(t) { - return e && (0, r.isValidElement)(t) ? e(t) : t; - })(t); - }), - n - ); - } - function o(t, e) { - function n(n) { - return n in e ? e[n] : t[n]; - } - (t = t || {}), (e = e || {}); - var r, - i = Object.create(null), - o = []; - for (var a in t) - a in e ? o.length && ((i[a] = o), (o = [])) : o.push(a); - var s = {}; - for (var u in e) { - if (i[u]) - for (r = 0; r < i[u].length; r++) { - var l = i[u][r]; - s[i[u][r]] = n(l); - } - s[u] = n(u); - } - for (r = 0; r < o.length; r++) s[o[r]] = n(o[r]); - return s; - } - function a(t, e, n) { - return null != n[e] ? n[e] : t.props[e]; - } - }, - function(t, e, n) { - var r = n(48), - i = n(112), - o = n(249), - a = n(252), - s = n(32), - u = n(10), - l = n(34), - c = n(47), - f = '[object Object]', - d = Object.prototype.hasOwnProperty; - t.exports = function(t, e, n, h, p, g) { - var v = u(t), - m = u(e), - y = v ? '[object Array]' : s(t), - b = m ? '[object Array]' : s(e), - _ = (y = '[object Arguments]' == y ? f : y) == f, - x = (b = '[object Arguments]' == b ? f : b) == f, - w = y == b; - if (w && l(t)) { - if (!l(e)) return !1; - (v = !0), (_ = !1); - } - if (w && !_) - return ( - g || (g = new r()), - v || c(t) ? i(t, e, n, h, p, g) : o(t, e, y, n, h, p, g) - ); - if (!(1 & n)) { - var S = _ && d.call(t, '__wrapped__'), - E = x && d.call(e, '__wrapped__'); - if (S || E) { - var k = S ? t.value() : t, - A = E ? e.value() : e; - return g || (g = new r()), p(k, A, n, h, g); - } - } - return !!w && (g || (g = new r()), a(t, e, n, h, p, g)); - }; - }, - function(t, e, n) { - var r = n(70), - i = n(245), - o = n(246); - function a(t) { - var e = -1, - n = null == t ? 0 : t.length; - for (this.__data__ = new r(); ++e < n; ) this.add(t[e]); - } - (a.prototype.add = a.prototype.push = i), - (a.prototype.has = o), - (t.exports = a); - }, - function(t, e) { - t.exports = function(t) { - return this.__data__.set(t, '__lodash_hash_undefined__'), this; - }; - }, - function(t, e) { - t.exports = function(t) { - return this.__data__.has(t); - }; - }, - function(t, e) { - t.exports = function(t, e) { - for (var n = -1, r = null == t ? 0 : t.length; ++n < r; ) - if (e(t[n], n, t)) return !0; - return !1; - }; - }, - function(t, e) { - t.exports = function(t, e) { - return t.has(e); - }; - }, - function(t, e, n) { - var r = n(33), - i = n(100), - o = n(36), - a = n(112), - s = n(250), - u = n(251), - l = r ? r.prototype : void 0, - c = l ? l.valueOf : void 0; - t.exports = function(t, e, n, r, l, f, d) { - switch (n) { - case '[object DataView]': - if (t.byteLength != e.byteLength || t.byteOffset != e.byteOffset) - return !1; - (t = t.buffer), (e = e.buffer); - case '[object ArrayBuffer]': - return !(t.byteLength != e.byteLength || !f(new i(t), new i(e))); - case '[object Boolean]': - case '[object Date]': - case '[object Number]': - return o(+t, +e); - case '[object Error]': - return t.name == e.name && t.message == e.message; - case '[object RegExp]': - case '[object String]': - return t == e + ''; - case '[object Map]': - var h = s; - case '[object Set]': - var p = 1 & r; - if ((h || (h = u), t.size != e.size && !p)) return !1; - var g = d.get(t); - if (g) return g == e; - (r |= 2), d.set(t, e); - var v = a(h(t), h(e), r, l, f, d); - return d.delete(t), v; - case '[object Symbol]': - if (c) return c.call(t) == c.call(e); - } - return !1; - }; - }, - function(t, e) { - t.exports = function(t) { - var e = -1, - n = Array(t.size); - return ( - t.forEach(function(t, r) { - n[++e] = [r, t]; - }), - n - ); - }; - }, - function(t, e) { - t.exports = function(t) { - var e = -1, - n = Array(t.size); - return ( - t.forEach(function(t) { - n[++e] = t; - }), - n - ); - }; - }, - function(t, e, n) { - var r = n(113), - i = Object.prototype.hasOwnProperty; - t.exports = function(t, e, n, o, a, s) { - var u = 1 & n, - l = r(t), - c = l.length; - if (c != r(e).length && !u) return !1; - for (var f = c; f--; ) { - var d = l[f]; - if (!(u ? d in e : i.call(e, d))) return !1; - } - var h = s.get(t); - if (h && s.get(e)) return h == e; - var p = !0; - s.set(t, e), s.set(e, t); - for (var g = u; ++f < c; ) { - var v = t[(d = l[f])], - m = e[d]; - if (o) var y = u ? o(m, v, d, e, t, s) : o(v, m, d, t, e, s); - if (!(void 0 === y ? v === m || a(v, m, n, o, s) : y)) { - p = !1; - break; - } - g || (g = 'constructor' == d); - } - if (p && !g) { - var b = t.constructor, - _ = e.constructor; - b == _ || - !('constructor' in t) || - !('constructor' in e) || - ('function' == typeof b && - b instanceof b && - 'function' == typeof _ && - _ instanceof _) || - (p = !1); - } - return s.delete(t), s.delete(e), p; - }; - }, - function(t, e) { - t.exports = function(t, e) { - for ( - var n = -1, r = null == t ? 0 : t.length, i = 0, o = []; - ++n < r; - - ) { - var a = t[n]; - e(a, n, t) && (o[i++] = a); - } - return o; - }; - }, - function(t, e, n) { - var r = (function(t) { - 'use strict'; - var e = Object.prototype, - n = e.hasOwnProperty, - r = 'function' == typeof Symbol ? Symbol : {}, - i = r.iterator || '@@iterator', - o = r.asyncIterator || '@@asyncIterator', - a = r.toStringTag || '@@toStringTag'; - function s(t, e, n, r) { - var i = e && e.prototype instanceof c ? e : c, - o = Object.create(i.prototype), - a = new w(r || []); - return ( - (o._invoke = (function(t, e, n) { - var r = 'suspendedStart'; - return function(i, o) { - if ('executing' === r) - throw new Error('Generator is already running'); - if ('completed' === r) { - if ('throw' === i) throw o; - return E(); - } - for (n.method = i, n.arg = o; ; ) { - var a = n.delegate; - if (a) { - var s = b(a, n); - if (s) { - if (s === l) continue; - return s; - } - } - if ('next' === n.method) n.sent = n._sent = n.arg; - else if ('throw' === n.method) { - if ('suspendedStart' === r) - throw ((r = 'completed'), n.arg); - n.dispatchException(n.arg); - } else 'return' === n.method && n.abrupt('return', n.arg); - r = 'executing'; - var c = u(t, e, n); - if ('normal' === c.type) { - if ( - ((r = n.done ? 'completed' : 'suspendedYield'), - c.arg === l) - ) - continue; - return { value: c.arg, done: n.done }; - } - 'throw' === c.type && - ((r = 'completed'), (n.method = 'throw'), (n.arg = c.arg)); - } - }; - })(t, n, a)), - o - ); - } - function u(t, e, n) { - try { - return { type: 'normal', arg: t.call(e, n) }; - } catch (t) { - return { type: 'throw', arg: t }; - } - } - t.wrap = s; - var l = {}; - function c() {} - function f() {} - function d() {} - var h = {}; - h[i] = function() { - return this; - }; - var p = Object.getPrototypeOf, - g = p && p(p(S([]))); - g && g !== e && n.call(g, i) && (h = g); - var v = (d.prototype = c.prototype = Object.create(h)); - function m(t) { - ['next', 'throw', 'return'].forEach(function(e) { - t[e] = function(t) { - return this._invoke(e, t); - }; - }); - } - function y(t, e) { - var r; - this._invoke = function(i, o) { - function a() { - return new e(function(r, a) { - !(function r(i, o, a, s) { - var l = u(t[i], t, o); - if ('throw' !== l.type) { - var c = l.arg, - f = c.value; - return f && 'object' == typeof f && n.call(f, '__await') - ? e.resolve(f.__await).then( - function(t) { - r('next', t, a, s); - }, - function(t) { - r('throw', t, a, s); - } - ) - : e.resolve(f).then( - function(t) { - (c.value = t), a(c); - }, - function(t) { - return r('throw', t, a, s); - } - ); - } - s(l.arg); - })(i, o, r, a); - }); - } - return (r = r ? r.then(a, a) : a()); - }; - } - function b(t, e) { - var n = t.iterator[e.method]; - if (void 0 === n) { - if (((e.delegate = null), 'throw' === e.method)) { - if ( - t.iterator.return && - ((e.method = 'return'), - (e.arg = void 0), - b(t, e), - 'throw' === e.method) - ) - return l; - (e.method = 'throw'), - (e.arg = new TypeError( - "The iterator does not provide a 'throw' method" - )); - } - return l; - } - var r = u(n, t.iterator, e.arg); - if ('throw' === r.type) - return ( - (e.method = 'throw'), (e.arg = r.arg), (e.delegate = null), l - ); - var i = r.arg; - return i - ? i.done - ? ((e[t.resultName] = i.value), - (e.next = t.nextLoc), - 'return' !== e.method && - ((e.method = 'next'), (e.arg = void 0)), - (e.delegate = null), - l) - : i - : ((e.method = 'throw'), - (e.arg = new TypeError('iterator result is not an object')), - (e.delegate = null), - l); - } - function _(t) { - var e = { tryLoc: t[0] }; - 1 in t && (e.catchLoc = t[1]), - 2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])), - this.tryEntries.push(e); - } - function x(t) { - var e = t.completion || {}; - (e.type = 'normal'), delete e.arg, (t.completion = e); - } - function w(t) { - (this.tryEntries = [{ tryLoc: 'root' }]), - t.forEach(_, this), - this.reset(!0); - } - function S(t) { - if (t) { - var e = t[i]; - if (e) return e.call(t); - if ('function' == typeof t.next) return t; - if (!isNaN(t.length)) { - var r = -1, - o = function e() { - for (; ++r < t.length; ) - if (n.call(t, r)) return (e.value = t[r]), (e.done = !1), e; - return (e.value = void 0), (e.done = !0), e; - }; - return (o.next = o); - } - } - return { next: E }; - } - function E() { - return { value: void 0, done: !0 }; - } - return ( - (f.prototype = v.constructor = d), - (d.constructor = f), - (d[a] = f.displayName = 'GeneratorFunction'), - (t.isGeneratorFunction = function(t) { - var e = 'function' == typeof t && t.constructor; - return ( - !!e && - (e === f || 'GeneratorFunction' === (e.displayName || e.name)) - ); - }), - (t.mark = function(t) { - return ( - Object.setPrototypeOf - ? Object.setPrototypeOf(t, d) - : ((t.__proto__ = d), a in t || (t[a] = 'GeneratorFunction')), - (t.prototype = Object.create(v)), - t - ); - }), - (t.awrap = function(t) { - return { __await: t }; - }), - m(y.prototype), - (y.prototype[o] = function() { - return this; - }), - (t.AsyncIterator = y), - (t.async = function(e, n, r, i, o) { - void 0 === o && (o = Promise); - var a = new y(s(e, n, r, i), o); - return t.isGeneratorFunction(n) - ? a - : a.next().then(function(t) { - return t.done ? t.value : a.next(); - }); - }), - m(v), - (v[a] = 'Generator'), - (v[i] = function() { - return this; - }), - (v.toString = function() { - return '[object Generator]'; - }), - (t.keys = function(t) { - var e = []; - for (var n in t) e.push(n); - return ( - e.reverse(), - function n() { - for (; e.length; ) { - var r = e.pop(); - if (r in t) return (n.value = r), (n.done = !1), n; - } - return (n.done = !0), n; - } - ); - }), - (t.values = S), - (w.prototype = { - constructor: w, - reset: function(t) { - if ( - ((this.prev = 0), - (this.next = 0), - (this.sent = this._sent = void 0), - (this.done = !1), - (this.delegate = null), - (this.method = 'next'), - (this.arg = void 0), - this.tryEntries.forEach(x), - !t) - ) - for (var e in this) - 't' === e.charAt(0) && - n.call(this, e) && - !isNaN(+e.slice(1)) && - (this[e] = void 0); - }, - stop: function() { - this.done = !0; - var t = this.tryEntries[0].completion; - if ('throw' === t.type) throw t.arg; - return this.rval; - }, - dispatchException: function(t) { - if (this.done) throw t; - var e = this; - function r(n, r) { - return ( - (a.type = 'throw'), - (a.arg = t), - (e.next = n), - r && ((e.method = 'next'), (e.arg = void 0)), - !!r - ); - } - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var o = this.tryEntries[i], - a = o.completion; - if ('root' === o.tryLoc) return r('end'); - if (o.tryLoc <= this.prev) { - var s = n.call(o, 'catchLoc'), - u = n.call(o, 'finallyLoc'); - if (s && u) { - if (this.prev < o.catchLoc) return r(o.catchLoc, !0); - if (this.prev < o.finallyLoc) return r(o.finallyLoc); - } else if (s) { - if (this.prev < o.catchLoc) return r(o.catchLoc, !0); - } else { - if (!u) - throw new Error('try statement without catch or finally'); - if (this.prev < o.finallyLoc) return r(o.finallyLoc); - } - } - } - }, - abrupt: function(t, e) { - for (var r = this.tryEntries.length - 1; r >= 0; --r) { - var i = this.tryEntries[r]; - if ( - i.tryLoc <= this.prev && - n.call(i, 'finallyLoc') && - this.prev < i.finallyLoc - ) { - var o = i; - break; - } - } - o && - ('break' === t || 'continue' === t) && - o.tryLoc <= e && - e <= o.finallyLoc && - (o = null); - var a = o ? o.completion : {}; - return ( - (a.type = t), - (a.arg = e), - o - ? ((this.method = 'next'), (this.next = o.finallyLoc), l) - : this.complete(a) - ); - }, - complete: function(t, e) { - if ('throw' === t.type) throw t.arg; - return ( - 'break' === t.type || 'continue' === t.type - ? (this.next = t.arg) - : 'return' === t.type - ? ((this.rval = this.arg = t.arg), - (this.method = 'return'), - (this.next = 'end')) - : 'normal' === t.type && e && (this.next = e), - l - ); - }, - finish: function(t) { - for (var e = this.tryEntries.length - 1; e >= 0; --e) { - var n = this.tryEntries[e]; - if (n.finallyLoc === t) - return this.complete(n.completion, n.afterLoc), x(n), l; - } - }, - catch: function(t) { - for (var e = this.tryEntries.length - 1; e >= 0; --e) { - var n = this.tryEntries[e]; - if (n.tryLoc === t) { - var r = n.completion; - if ('throw' === r.type) { - var i = r.arg; - x(n); - } - return i; - } - } - throw new Error('illegal catch attempt'); - }, - delegateYield: function(t, e, n) { - return ( - (this.delegate = { iterator: S(t), resultName: e, nextLoc: n }), - 'next' === this.method && (this.arg = void 0), - l - ); - } - }), - t - ); - })(t.exports); - try { - regeneratorRuntime = r; - } catch (t) { - Function('r', 'regeneratorRuntime = r')(r); - } - }, - function(t, e) { - Prism.languages.clike = { - comment: [ - { pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, lookbehind: !0 }, - { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 } - ], - string: { - pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, - greedy: !0 - }, - 'class-name': { - pattern: /(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i, - lookbehind: !0, - inside: { punctuation: /[.\\]/ } - }, - keyword: /\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/, - boolean: /\b(?:true|false)\b/, - function: /\w+(?=\()/, - number: /\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i, - operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/, - punctuation: /[{}[\];(),.:]/ - }; - }, - function(t, e) { - (Prism.languages.javascript = Prism.languages.extend('clike', { - 'class-name': [ - Prism.languages.clike['class-name'], - { - pattern: /(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/, - lookbehind: !0 - } - ], - keyword: [ - { pattern: /((?:^|})\s*)(?:catch|finally)\b/, lookbehind: !0 }, - { - pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/, - lookbehind: !0 - } - ], - number: /\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/, - function: /#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/, - operator: /--|\+\+|\*\*=?|=>|&&|\|\||[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?[.?]?|[~:]/ - })), - (Prism.languages.javascript[ - 'class-name' - ][0].pattern = /(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/), - Prism.languages.insertBefore('javascript', 'keyword', { - regex: { - pattern: /((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=(?:\s|\/\*[\s\S]*?\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/, - lookbehind: !0, - greedy: !0 - }, - 'function-variable': { - pattern: /#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/, - alias: 'function' - }, - parameter: [ - { - pattern: /(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/, - lookbehind: !0, - inside: Prism.languages.javascript - }, - { - pattern: /[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i, - inside: Prism.languages.javascript - }, - { - pattern: /(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/, - lookbehind: !0, - inside: Prism.languages.javascript - }, - { - pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/, - lookbehind: !0, - inside: Prism.languages.javascript - } - ], - constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/ - }), - Prism.languages.insertBefore('javascript', 'string', { - 'template-string': { - pattern: /`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/, - greedy: !0, - inside: { - 'template-punctuation': { pattern: /^`|`$/, alias: 'string' }, - interpolation: { - pattern: /((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/, - lookbehind: !0, - inside: { - 'interpolation-punctuation': { - pattern: /^\${|}$/, - alias: 'punctuation' - }, - rest: Prism.languages.javascript - } - }, - string: /[\s\S]+/ - } - } - }), - Prism.languages.markup && - Prism.languages.markup.tag.addInlined('script', 'javascript'), - (Prism.languages.js = Prism.languages.javascript); - }, - function(t, e) { - !(function(t) { - var e = /("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/; - (t.languages.css = { - comment: /\/\*[\s\S]*?\*\//, - atrule: { - pattern: /@[\w-]+[\s\S]*?(?:;|(?=\s*\{))/, - inside: { - rule: /^@[\w-]+/, - 'selector-function-argument': { - pattern: /(\bselector\s*\((?!\s*\))\s*)(?:[^()]|\((?:[^()]|\([^()]*\))*\))+?(?=\s*\))/, - lookbehind: !0, - alias: 'selector' - } - } - }, - url: { - pattern: RegExp('url\\((?:' + e.source + '|[^\n\r()]*)\\)', 'i'), - greedy: !0, - inside: { function: /^url/i, punctuation: /^\(|\)$/ } - }, - selector: RegExp( - '[^{}\\s](?:[^{};"\']|' + e.source + ')*?(?=\\s*\\{)' - ), - string: { pattern: e, greedy: !0 }, - property: /[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i, - important: /!important\b/i, - function: /[-a-z0-9]+(?=\()/i, - punctuation: /[(){};:,]/ - }), - (t.languages.css.atrule.inside.rest = t.languages.css); - var n = t.languages.markup; - n && - (n.tag.addInlined('style', 'css'), - t.languages.insertBefore( - 'inside', - 'attr-value', - { - 'style-attr': { - pattern: /\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i, - inside: { - 'attr-name': { pattern: /^\s*style/i, inside: n.tag.inside }, - punctuation: /^\s*=\s*['"]|['"]\s*$/, - 'attr-value': { pattern: /.+/i, inside: t.languages.css } - }, - alias: 'language-css' - } - }, - n.tag - )); - })(Prism); - }, - function(t, e) { - (Prism.languages.markup = { - comment: //, - prolog: /<\?[\s\S]+?\?>/, - doctype: { - pattern: /"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:(?!)*\]\s*)?>/i, - greedy: !0 - }, - cdata: //i, - tag: { - pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/i, - greedy: !0, - inside: { - tag: { - pattern: /^<\/?[^\s>\/]+/i, - inside: { punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/ } - }, - 'attr-value': { - pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/i, - inside: { - punctuation: [ - /^=/, - { pattern: /^(\s*)["']|["']$/, lookbehind: !0 } - ] - } - }, - punctuation: /\/?>/, - 'attr-name': { - pattern: /[^\s>\/]+/, - inside: { namespace: /^[^\s>\/:]+:/ } - } - } - }, - entity: /&#?[\da-z]{1,8};/i - }), - (Prism.languages.markup.tag.inside['attr-value'].inside.entity = - Prism.languages.markup.entity), - Prism.hooks.add('wrap', function(t) { - 'entity' === t.type && - (t.attributes.title = t.content.replace(/&/, '&')); - }), - Object.defineProperty(Prism.languages.markup.tag, 'addInlined', { - value: function(t, e) { - var n = {}; - (n['language-' + e] = { - pattern: /(^$)/i, - lookbehind: !0, - inside: Prism.languages[e] - }), - (n.cdata = /^$/i); - var r = { - 'included-cdata': { - pattern: //i, - inside: n - } - }; - r['language-' + e] = { - pattern: /[\s\S]+/, - inside: Prism.languages[e] - }; - var i = {}; - (i[t] = { - pattern: RegExp( - /(<__[\s\S]*?>)(?:\s*|[\s\S])*?(?=<\/__>)/.source.replace( - /__/g, - function() { - return t; - } - ), - 'i' - ), - lookbehind: !0, - greedy: !0, - inside: r - }), - Prism.languages.insertBefore('markup', 'cdata', i); - } - }), - (Prism.languages.xml = Prism.languages.extend('markup', {})), - (Prism.languages.html = Prism.languages.markup), - (Prism.languages.mathml = Prism.languages.markup), - (Prism.languages.svg = Prism.languages.markup); - }, - function(t, e, n) { - var r = n(260); - 'string' == typeof r && (r = [[t.i, r, '']]); - var i = { hmr: !0, transform: void 0, insertInto: void 0 }; - n(30)(r, i); - r.locals && (t.exports = r.locals); - }, - function(t, e, n) { - (t.exports = n(29)(!1)).push([ - t.i, - 'pre[class*=language-].line-numbers{position:relative;padding-left:3.8em;counter-reset:a}pre[class*=language-].line-numbers>code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows>span{pointer-events:none;display:block;counter-increment:a}.line-numbers-rows>span:before{content:counter(a);color:#999;display:block;padding-right:.8em;text-align:right}', - '' - ]); - }, - function(t, e) { - t.exports = function(t) { - var e = 'undefined' != typeof window && window.location; - if (!e) throw new Error('fixUrls requires window.location'); - if (!t || 'string' != typeof t) return t; - var n = e.protocol + '//' + e.host, - r = n + e.pathname.replace(/\/[^\/]*$/, '/'); - return t.replace( - /url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, - function(t, e) { - var i, - o = e - .trim() - .replace(/^"(.*)"$/, function(t, e) { - return e; - }) - .replace(/^'(.*)'$/, function(t, e) { - return e; - }); - return /^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o) - ? t - : ((i = - 0 === o.indexOf('//') - ? o - : 0 === o.indexOf('/') - ? n + o - : r + o.replace(/^\.\//, '')), - 'url('https://github.com/+%20JSON.stringify(i) + ')'); - } - ); - }; - }, - function(t, e) { - !(function() { - if ('undefined' != typeof self && self.Prism && self.document) { - var t = /\n(?!$)/g, - e = function(e) { - var r = n(e)['white-space']; - if ('pre-wrap' === r || 'pre-line' === r) { - var i = e.querySelector('code'), - o = e.querySelector('.line-numbers-rows'), - a = e.querySelector('.line-numbers-sizer'), - s = i.textContent.split(t); - a || - (((a = document.createElement('span')).className = - 'line-numbers-sizer'), - i.appendChild(a)), - (a.style.display = 'block'), - s.forEach(function(t, e) { - a.textContent = t || '\n'; - var n = a.getBoundingClientRect().height; - o.children[e].style.height = n + 'px'; - }), - (a.textContent = ''), - (a.style.display = 'none'); - } - }, - n = function(t) { - return t - ? window.getComputedStyle - ? getComputedStyle(t) - : t.currentStyle || null - : null; - }; - window.addEventListener('resize', function() { - Array.prototype.forEach.call( - document.querySelectorAll('pre.line-numbers'), - e - ); - }), - Prism.hooks.add('complete', function(n) { - if (n.code) { - var r = n.element, - i = r.parentNode; - if ( - i && - /pre/i.test(i.nodeName) && - !r.querySelector('.line-numbers-rows') - ) { - for ( - var o = !1, a = /(?:^|\s)line-numbers(?:\s|$)/, s = r; - s; - s = s.parentNode - ) - if (a.test(s.className)) { - o = !0; - break; - } - if (o) { - (r.className = r.className.replace(a, ' ')), - a.test(i.className) || (i.className += ' line-numbers'); - var u, - l = n.code.match(t), - c = l ? l.length + 1 : 1, - f = new Array(c + 1).join(''); - (u = document.createElement('span')).setAttribute( - 'aria-hidden', - 'true' - ), - (u.className = 'line-numbers-rows'), - (u.innerHTML = f), - i.hasAttribute('data-start') && - (i.style.counterReset = - 'linenumber ' + - (parseInt(i.getAttribute('data-start'), 10) - 1)), - n.element.appendChild(u), - e(i), - Prism.hooks.run('line-numbers', n); - } - } - } - }), - Prism.hooks.add('line-numbers', function(t) { - (t.plugins = t.plugins || {}), (t.plugins.lineNumbers = !0); - }), - (Prism.plugins.lineNumbers = { - getLine: function(t, e) { - if ( - 'PRE' === t.tagName && - t.classList.contains('line-numbers') - ) { - var n = t.querySelector('.line-numbers-rows'), - r = parseInt(t.getAttribute('data-start'), 10) || 1, - i = r + (n.children.length - 1); - e < r && (e = r), e > i && (e = i); - var o = e - r; - return n.children[o]; - } - } - }); - } - })(); - }, - function(t, e, n) { - var r = n(264); - 'string' == typeof r && (r = [[t.i, r, '']]); - var i = { hmr: !0, transform: void 0, insertInto: void 0 }; - n(30)(r, i); - r.locals && (t.exports = r.locals); - }, - function(t, e, n) { - (t.exports = n(29)(!1)).push([ - t.i, - 'code[class*=language-],pre[class*=language-]{color:#000;background:none;text-shadow:0 1px #fff;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;tab-size:4;-webkit-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-]::-moz-selection,code[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-]::selection,code[class*=language-] ::selection,pre[class*=language-]::selection,pre[class*=language-] ::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#999}.token.namespace{opacity:.7}.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color:#905}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#690}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.class-name,.token.function{color:#dd4a68}.token.important,.token.regex,.token.variable{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}', - '' - ]); - }, - function(t, e) { - t.exports = function(t, e) { - if (null == t) return {}; - var n, - r, - i = {}, - o = Object.keys(t); - for (r = 0; r < o.length; r++) - (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); - return i; - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = void 0); - var r = c(n(0)), - i = c(n(5)), - o = c(n(1)), - a = n(118), - s = n(267), - u = n(39), - l = c(n(21)); - function c(t) { - return t && t.__esModule ? t : { default: t }; - } - function f(t) { - return (f = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - })(t); - } - function d(t, e) { - var n = Object.keys(t); - if (Object.getOwnPropertySymbols) { - var r = Object.getOwnPropertySymbols(t); - e && - (r = r.filter(function(e) { - return Object.getOwnPropertyDescriptor(t, e).enumerable; - })), - n.push.apply(n, r); - } - return n; - } - function h(t) { - for (var e = 1; e < arguments.length; e++) { - var n = null != arguments[e] ? arguments[e] : {}; - e % 2 - ? d(n, !0).forEach(function(e) { - _(t, e, n[e]); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) - : d(n).forEach(function(e) { - Object.defineProperty( - t, - e, - Object.getOwnPropertyDescriptor(n, e) - ); - }); - } - return t; - } - function p(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - } - function g(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - function v(t, e) { - return !e || ('object' !== f(e) && 'function' != typeof e) ? y(t) : e; - } - function m(t) { - return (m = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(t) { - return t.__proto__ || Object.getPrototypeOf(t); - })(t); - } - function y(t) { - if (void 0 === t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return t; - } - function b(t, e) { - return (b = - Object.setPrototypeOf || - function(t, e) { - return (t.__proto__ = e), t; - })(t, e); - } - function _(t, e, n) { - return ( - e in t - ? Object.defineProperty(t, e, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (t[e] = n), - t - ); - } - var x = (function(t) { - function e() { - var t, n; - p(this, e); - for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) - i[o] = arguments[o]; - return ( - _( - y((n = v(this, (t = m(e)).call.apply(t, [this].concat(i))))), - 'state', - { resizing: null, dragging: null, className: '' } - ), - _(y(n), 'currentNode', void 0), - _(y(n), 'onDragStart', function(t, e) { - var r = e.node; - if (n.props.onDragStart) { - var i = { top: 0, left: 0 }, - o = r.offsetParent; - if (o) { - var a = o.getBoundingClientRect(), - s = r.getBoundingClientRect(), - u = s.left / n.props.transformScale, - l = a.left / n.props.transformScale, - c = s.top / n.props.transformScale, - f = a.top / n.props.transformScale; - (i.left = u - l + o.scrollLeft), - (i.top = c - f + o.scrollTop), - n.setState({ dragging: i }); - var d = n.calcXY(i.top, i.left), - h = d.x, - p = d.y; - return ( - n.props.onDragStart && - n.props.onDragStart.call(y(n), n.props.i, h, p, { - e: t, - node: r, - newPosition: i - }) - ); - } - } - }), - _(y(n), 'onDrag', function(t, e) { - var r = e.node, - i = e.deltaX, - o = e.deltaY; - if (n.props.onDrag) { - var a = { top: 0, left: 0 }; - if (!n.state.dragging) - throw new Error('onDrag called before onDragStart.'); - (a.left = n.state.dragging.left + i), - (a.top = n.state.dragging.top + o), - n.setState({ dragging: a }); - var s = n.calcXY(a.top, a.left), - u = s.x, - l = s.y; - return ( - n.props.onDrag && - n.props.onDrag.call(y(n), n.props.i, u, l, { - e: t, - node: r, - newPosition: a - }) - ); - } - }), - _(y(n), 'onDragStop', function(t, e) { - var r = e.node; - if (n.props.onDragStop) { - var i = { top: 0, left: 0 }; - if (!n.state.dragging) - throw new Error('onDragEnd called before onDragStart.'); - (i.left = n.state.dragging.left), - (i.top = n.state.dragging.top), - n.setState({ dragging: null }); - var o = n.calcXY(i.top, i.left), - a = o.x, - s = o.y; - return ( - n.props.onDragStop && - n.props.onDragStop.call(y(n), n.props.i, a, s, { - e: t, - node: r, - newPosition: i - }) - ); - } - }), - _(y(n), 'onResizeStop', function(t, e) { - n.onResizeHandler(t, e, 'onResizeStop'); - }), - _(y(n), 'onResizeStart', function(t, e) { - n.onResizeHandler(t, e, 'onResizeStart'); - }), - _(y(n), 'onResize', function(t, e) { - n.onResizeHandler(t, e, 'onResize'); - }), - n - ); - } - var n, o, c; - return ( - (function(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { value: t, writable: !0, configurable: !0 } - })), - e && b(t, e); - })(e, t), - (n = e), - (o = [ - { - key: 'componentDidUpdate', - value: function(t) { - this.props.droppingPosition && - t.droppingPosition && - this.moveDroppingItem(t); - } - }, - { - key: 'moveDroppingItem', - value: function(t) { - var e = this.props.droppingPosition, - n = this.state.dragging; - if (e && t.droppingPosition) { - this.currentNode || - (this.currentNode = i.default.findDOMNode(this)); - var r = - (n && e.x !== t.droppingPosition.x) || - e.y !== t.droppingPosition.y; - if (n) { - if (r) { - var o = e.x - n.left, - a = e.y - n.top; - this.onDrag(e.e, { - node: this.currentNode, - deltaX: o, - deltaY: a - }); - } - } else - this.onDragStart(e.e, { - node: this.currentNode, - deltaX: e.x, - deltaY: e.y - }); - } - } - }, - { - key: 'calcColWidth', - value: function() { - var t = this.props, - e = t.margin, - n = t.containerPadding, - r = t.containerWidth, - i = t.cols; - return (r - e[0] * (i - 1) - 2 * n[0]) / i; - } - }, - { - key: 'calcPosition', - value: function(t, e, n, r, i) { - var o = this.props, - a = o.margin, - s = o.containerPadding, - u = o.rowHeight, - l = this.calcColWidth(), - c = {}; - return ( - i && i.resizing - ? ((c.width = Math.round(i.resizing.width)), - (c.height = Math.round(i.resizing.height))) - : ((c.width = - n === 1 / 0 - ? n - : Math.round(l * n + Math.max(0, n - 1) * a[0])), - (c.height = - r === 1 / 0 - ? r - : Math.round(u * r + Math.max(0, r - 1) * a[1]))), - i && i.dragging - ? ((c.top = Math.round(i.dragging.top)), - (c.left = Math.round(i.dragging.left))) - : ((c.top = Math.round((u + a[1]) * e + s[1])), - (c.left = Math.round((l + a[0]) * t + s[0]))), - c - ); - } - }, - { - key: 'calcXY', - value: function(t, e) { - var n = this.props, - r = n.margin, - i = n.cols, - o = n.rowHeight, - a = n.w, - s = n.h, - u = n.maxRows, - l = this.calcColWidth(), - c = Math.round((e - r[0]) / (l + r[0])), - f = Math.round((t - r[1]) / (o + r[1])); - return { - x: (c = Math.max(Math.min(c, i - a), 0)), - y: (f = Math.max(Math.min(f, u - s), 0)) - }; - } - }, - { - key: 'calcWH', - value: function(t) { - var e = t.height, - n = t.width, - r = this.props, - i = r.margin, - o = r.maxRows, - a = r.cols, - s = r.rowHeight, - u = r.x, - l = r.y, - c = this.calcColWidth(), - f = Math.round((n + i[0]) / (c + i[0])), - d = Math.round((e + i[1]) / (s + i[1])); - return { - w: (f = Math.max(Math.min(f, a - u), 0)), - h: (d = Math.max(Math.min(d, o - l), 0)) - }; - } - }, - { - key: 'createStyle', - value: function(t) { - var e, - n = this.props, - r = n.usePercentages, - i = n.containerWidth; - return ( - n.useCSSTransforms - ? (e = (0, u.setTransform)(t)) - : ((e = (0, u.setTopLeft)(t)), - r && - ((e.left = (0, u.perc)(t.left / i)), - (e.width = (0, u.perc)(t.width / i)))), - e - ); - } - }, - { - key: 'mixinDraggable', - value: function(t) { - return r.default.createElement( - a.DraggableCore, - { - onStart: this.onDragStart, - onDrag: this.onDrag, - onStop: this.onDragStop, - handle: this.props.handle, - cancel: - '.react-resizable-handle' + - (this.props.cancel ? ',' + this.props.cancel : ''), - scale: this.props.transformScale - }, - t - ); - } - }, - { - key: 'mixinResizable', - value: function(t, e) { - var n = this.props, - i = n.cols, - o = n.x, - a = n.minW, - u = n.minH, - l = n.maxW, - c = n.maxH, - f = this.calcPosition(0, 0, i - o, 0).width, - d = this.calcPosition(0, 0, a, u), - h = this.calcPosition(0, 0, l, c), - p = [d.width, d.height], - g = [Math.min(h.width, f), Math.min(h.height, 1 / 0)]; - return r.default.createElement( - s.Resizable, - { - width: e.width, - height: e.height, - minConstraints: p, - maxConstraints: g, - onResizeStop: this.onResizeStop, - onResizeStart: this.onResizeStart, - onResize: this.onResize - }, - t - ); - } - }, - { - key: 'onResizeHandler', - value: function(t, e, n) { - var r = e.node, - i = e.size, - o = this.props[n]; - if (o) { - var a = this.props, - s = a.cols, - u = a.x, - l = a.i, - c = a.maxW, - f = a.minW, - d = a.maxH, - h = a.minH, - p = this.calcWH(i), - g = p.w, - v = p.h; - (g = Math.min(g, s - u)), - (g = Math.max(g, 1)), - (g = Math.max(Math.min(g, c), f)), - (v = Math.max(Math.min(v, d), h)), - this.setState({ - resizing: 'onResizeStop' === n ? null : i - }), - o.call(this, l, g, v, { e: t, node: r, size: i }); - } - } - }, - { - key: 'render', - value: function() { - var t = this.props, - e = t.x, - n = t.y, - i = t.w, - o = t.h, - a = t.isDraggable, - s = t.isResizable, - u = t.droppingPosition, - c = t.useCSSTransforms, - f = this.calcPosition(e, n, i, o, this.state), - d = r.default.Children.only(this.props.children), - p = r.default.cloneElement(d, { - className: (0, l.default)( - 'react-grid-item', - d.props.className, - this.props.className, - { - static: this.props.static, - resizing: Boolean(this.state.resizing), - 'react-draggable': a, - 'react-draggable-dragging': Boolean( - this.state.dragging - ), - dropping: Boolean(u), - cssTransforms: c - } - ), - style: h( - {}, - this.props.style, - {}, - d.props.style, - {}, - this.createStyle(f) - ) - }); - return ( - s && (p = this.mixinResizable(p, f)), - a && (p = this.mixinDraggable(p)), - p - ); - } - } - ]) && g(n.prototype, o), - c && g(n, c), - e - ); - })(r.default.Component); - (e.default = x), - _(x, 'propTypes', { - children: o.default.element, - cols: o.default.number.isRequired, - containerWidth: o.default.number.isRequired, - rowHeight: o.default.number.isRequired, - margin: o.default.array.isRequired, - maxRows: o.default.number.isRequired, - containerPadding: o.default.array.isRequired, - x: o.default.number.isRequired, - y: o.default.number.isRequired, - w: o.default.number.isRequired, - h: o.default.number.isRequired, - minW: function(t, e) { - var n = t[e]; - return 'number' != typeof n - ? new Error('minWidth not Number') - : n > t.w || n > t.maxW - ? new Error('minWidth larger than item width/maxWidth') - : void 0; - }, - maxW: function(t, e) { - var n = t[e]; - return 'number' != typeof n - ? new Error('maxWidth not Number') - : n < t.w || n < t.minW - ? new Error('maxWidth smaller than item width/minWidth') - : void 0; - }, - minH: function(t, e) { - var n = t[e]; - return 'number' != typeof n - ? new Error('minHeight not Number') - : n > t.h || n > t.maxH - ? new Error('minHeight larger than item height/maxHeight') - : void 0; - }, - maxH: function(t, e) { - var n = t[e]; - return 'number' != typeof n - ? new Error('maxHeight not Number') - : n < t.h || n < t.minH - ? new Error('maxHeight smaller than item height/minHeight') - : void 0; - }, - i: o.default.string.isRequired, - onDragStop: o.default.func, - onDragStart: o.default.func, - onDrag: o.default.func, - onResizeStop: o.default.func, - onResizeStart: o.default.func, - onResize: o.default.func, - isDraggable: o.default.bool.isRequired, - isResizable: o.default.bool.isRequired, - static: o.default.bool, - useCSSTransforms: o.default.bool.isRequired, - transformScale: o.default.number, - className: o.default.string, - handle: o.default.string, - cancel: o.default.string, - droppingPosition: o.default.shape({ - e: o.default.object.isRequired, - x: o.default.number.isRequired, - y: o.default.number.isRequired - }) - }), - _(x, 'defaultProps', { - className: '', - cancel: '', - handle: '', - minH: 1, - minW: 1, - maxH: 1 / 0, - maxW: 1 / 0, - transformScale: 1 - }); - }, - function(t, e, n) { - 'use strict'; - (t.exports = function() { - throw new Error( - "Don't instantiate Resizable directly! Use require('react-resizable').Resizable" - ); - }), - (t.exports.Resizable = n(119).default), - (t.exports.ResizableBox = n(269).default); - }, - function(t, e, n) { - 'use strict'; - (e.__esModule = !0), - (e.cloneElement = function(t, e) { - e.style && - t.props.style && - (e.style = (function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = null != arguments[e] ? arguments[e] : {}; - e % 2 - ? o(n, !0).forEach(function(e) { - a(t, e, n[e]); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties( - t, - Object.getOwnPropertyDescriptors(n) - ) - : o(n).forEach(function(e) { - Object.defineProperty( - t, - e, - Object.getOwnPropertyDescriptor(n, e) - ); - }); - } - return t; - })({}, t.props.style, {}, e.style)); - e.className && - t.props.className && - (e.className = t.props.className + ' ' + e.className); - return i.default.cloneElement(t, e); - }); - var r, - i = (r = n(0)) && r.__esModule ? r : { default: r }; - function o(t, e) { - var n = Object.keys(t); - if (Object.getOwnPropertySymbols) { - var r = Object.getOwnPropertySymbols(t); - e && - (r = r.filter(function(e) { - return Object.getOwnPropertyDescriptor(t, e).enumerable; - })), - n.push.apply(n, r); - } - return n; - } - function a(t, e, n) { - return ( - e in t - ? Object.defineProperty(t, e, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (t[e] = n), - t - ); - } - }, - function(t, e, n) { - 'use strict'; - (e.__esModule = !0), (e.default = void 0); - var r = a(n(0)), - i = a(n(1)), - o = a(n(119)); - function a(t) { - return t && t.__esModule ? t : { default: t }; - } - function s() { - return (s = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - function u(t) { - if (void 0 === t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return t; - } - function l(t, e, n) { - return ( - e in t - ? Object.defineProperty(t, e, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (t[e] = n), - t - ); - } - var c = (function(t) { - var e, n; - function i() { - for (var e, n = arguments.length, r = new Array(n), i = 0; i < n; i++) - r[i] = arguments[i]; - return ( - l(u((e = t.call.apply(t, [this].concat(r)) || this)), 'state', { - width: e.props.width, - height: e.props.height, - propsWidth: e.props.width, - propsHeight: e.props.height - }), - l(u(e), 'onResize', function(t, n) { - var r = n.size; - r.width, r.height; - e.props.onResize - ? (t.persist && t.persist(), - e.setState(r, function() { - return e.props.onResize && e.props.onResize(t, n); - })) - : e.setState(r); - }), - e - ); - } - return ( - (n = t), - ((e = i).prototype = Object.create(n.prototype)), - (e.prototype.constructor = e), - (e.__proto__ = n), - (i.getDerivedStateFromProps = function(t, e) { - return e.propsWidth !== t.width || e.propsHeight !== t.height - ? { - width: t.width, - height: t.height, - propsWidth: t.width, - propsHeight: t.height - } - : null; - }), - (i.prototype.render = function() { - var t = this.props, - e = t.handle, - n = t.handleSize, - i = (t.onResize, t.onResizeStart), - a = t.onResizeStop, - u = t.draggableOpts, - l = t.minConstraints, - c = t.maxConstraints, - f = t.lockAspectRatio, - d = t.axis, - h = (t.width, t.height, t.resizeHandles), - p = (function(t, e) { - if (null == t) return {}; - var n, - r, - i = {}, - o = Object.keys(t); - for (r = 0; r < o.length; r++) - (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); - return i; - })(t, [ - 'handle', - 'handleSize', - 'onResize', - 'onResizeStart', - 'onResizeStop', - 'draggableOpts', - 'minConstraints', - 'maxConstraints', - 'lockAspectRatio', - 'axis', - 'width', - 'height', - 'resizeHandles' - ]); - return r.default.createElement( - o.default, - { - handle: e, - handleSize: n, - width: this.state.width, - height: this.state.height, - onResizeStart: i, - onResize: this.onResize, - onResizeStop: a, - draggableOpts: u, - minConstraints: l, - maxConstraints: c, - lockAspectRatio: f, - axis: d, - resizeHandles: h - }, - r.default.createElement( - 'div', - s( - { - style: { - width: this.state.width + 'px', - height: this.state.height + 'px' - } - }, - p - ) - ) - ); - }), - i - ); - })(r.default.Component); - (e.default = c), - l(c, 'propTypes', { - height: i.default.number, - width: i.default.number - }), - l(c, 'defaultProps', { handleSize: [20, 20] }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = void 0); - var r = l(n(0)), - i = l(n(1)), - o = l(n(77)), - a = n(39), - s = n(120), - u = l(n(117)); - function l(t) { - return t && t.__esModule ? t : { default: t }; - } - function c(t) { - return (c = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - })(t); - } - function f() { - return (f = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - function d(t, e) { - if (null == t) return {}; - var n, - r, - i = (function(t, e) { - if (null == t) return {}; - var n, - r, - i = {}, - o = Object.keys(t); - for (r = 0; r < o.length; r++) - (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); - return i; - })(t, e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(t); - for (r = 0; r < o.length; r++) - (n = o[r]), - e.indexOf(n) >= 0 || - (Object.prototype.propertyIsEnumerable.call(t, n) && - (i[n] = t[n])); - } - return i; - } - function h(t, e) { - var n = Object.keys(t); - if (Object.getOwnPropertySymbols) { - var r = Object.getOwnPropertySymbols(t); - e && - (r = r.filter(function(e) { - return Object.getOwnPropertyDescriptor(t, e).enumerable; - })), - n.push.apply(n, r); - } - return n; - } - function p(t) { - for (var e = 1; e < arguments.length; e++) { - var n = null != arguments[e] ? arguments[e] : {}; - e % 2 - ? h(n, !0).forEach(function(e) { - x(t, e, n[e]); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) - : h(n).forEach(function(e) { - Object.defineProperty( - t, - e, - Object.getOwnPropertyDescriptor(n, e) - ); - }); - } - return t; - } - function g(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - } - function v(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - function m(t, e) { - return !e || ('object' !== c(e) && 'function' != typeof e) ? b(t) : e; - } - function y(t) { - return (y = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(t) { - return t.__proto__ || Object.getPrototypeOf(t); - })(t); - } - function b(t) { - if (void 0 === t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return t; - } - function _(t, e) { - return (_ = - Object.setPrototypeOf || - function(t, e) { - return (t.__proto__ = e), t; - })(t, e); - } - function x(t, e, n) { - return ( - e in t - ? Object.defineProperty(t, e, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (t[e] = n), - t - ); - } - var w = function(t) { - return Object.prototype.toString.call(t); - }; - function S(t, e) { - return Array.isArray(t) ? t : t[e]; - } - var E = (function(t) { - function e() { - var t, n; - g(this, e); - for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) - i[o] = arguments[o]; - return ( - x( - b((n = m(this, (t = y(e)).call.apply(t, [this].concat(i))))), - 'state', - n.generateInitialState() - ), - x(b(n), 'onLayoutChange', function(t) { - n.props.onLayoutChange( - t, - p({}, n.props.layouts, x({}, n.state.breakpoint, t)) - ); - }), - n - ); - } - var n, i, l; - return ( - (function(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { value: t, writable: !0, configurable: !0 } - })), - e && _(t, e); - })(e, t), - (n = e), - (l = [ - { - key: 'getDerivedStateFromProps', - value: function(t, e) { - if (!(0, o.default)(t.layouts, e.layouts)) { - var n = e.breakpoint, - r = e.cols; - return { - layout: (0, s.findOrGenerateResponsiveLayout)( - t.layouts, - t.breakpoints, - n, - n, - r, - t.compactType - ), - layouts: t.layouts - }; - } - return null; - } - } - ]), - (i = [ - { - key: 'generateInitialState', - value: function() { - var t = this.props, - e = t.width, - n = t.breakpoints, - r = t.layouts, - i = t.cols, - o = (0, s.getBreakpointFromWidth)(n, e), - a = (0, s.getColsFromBreakpoint)(o, i), - u = - !1 === this.props.verticalCompact - ? null - : this.props.compactType; - return { - layout: (0, s.findOrGenerateResponsiveLayout)( - r, - n, - o, - o, - a, - u - ), - breakpoint: o, - cols: a - }; - } - }, - { - key: 'componentDidUpdate', - value: function(t) { - (this.props.width == t.width && - this.props.breakpoint === t.breakpoint && - (0, o.default)(this.props.breakpoints, t.breakpoints) && - (0, o.default)(this.props.cols, t.cols)) || - this.onWidthChange(this.props); - } - }, - { - key: 'onWidthChange', - value: function(t) { - var e = t.breakpoints, - n = t.cols, - r = t.layouts, - i = t.compactType, - o = - t.breakpoint || - (0, s.getBreakpointFromWidth)(t.breakpoints, t.width), - u = this.state.breakpoint, - l = (0, s.getColsFromBreakpoint)(o, n); - if ( - u !== o || - this.props.breakpoints !== e || - this.props.cols !== n - ) { - u in r || (r[u] = (0, a.cloneLayout)(this.state.layout)); - var c = (0, s.findOrGenerateResponsiveLayout)( - r, - e, - o, - u, - l, - i - ); - (c = (0, a.synchronizeLayoutWithChildren)( - c, - t.children, - l, - i - )), - (r[o] = c), - this.props.onLayoutChange(c, r), - this.props.onBreakpointChange(o, l), - this.setState({ breakpoint: o, layout: c, cols: l }); - } - var f = S(t.margin, o), - d = S(t.containerPadding, o); - this.props.onWidthChange(t.width, f, l, d); - } - }, - { - key: 'render', - value: function() { - var t = this.props, - e = - (t.breakpoint, t.breakpoints, t.cols, t.layouts, t.margin), - n = t.containerPadding, - i = - (t.onBreakpointChange, - t.onLayoutChange, - t.onWidthChange, - d(t, [ - 'breakpoint', - 'breakpoints', - 'cols', - 'layouts', - 'margin', - 'containerPadding', - 'onBreakpointChange', - 'onLayoutChange', - 'onWidthChange' - ])); - return r.default.createElement( - u.default, - f({}, i, { - margin: S(e, this.state.breakpoint), - containerPadding: S(n, this.state.breakpoint), - onLayoutChange: this.onLayoutChange, - layout: this.state.layout, - cols: this.state.cols - }) - ); - } - } - ]) && v(n.prototype, i), - l && v(n, l), - e - ); - })(r.default.Component); - (e.default = E), - x(E, 'propTypes', { - breakpoint: i.default.string, - breakpoints: i.default.object, - cols: i.default.object, - margin: i.default.oneOfType([i.default.array, i.default.object]), - containerPadding: i.default.oneOfType([ - i.default.array, - i.default.object - ]), - layouts: function(t, e) { - if ('[object Object]' !== w(t[e])) - throw new Error( - 'Layout property must be an object. Received: ' + w(t[e]) - ); - Object.keys(t[e]).forEach(function(e) { - if (!(e in t.breakpoints)) - throw new Error( - 'Each key in layouts must align with a key in breakpoints.' - ); - (0, a.validateLayout)(t.layouts[e], 'layouts.' + e); - }); - }, - width: i.default.number.isRequired, - onBreakpointChange: i.default.func, - onLayoutChange: i.default.func, - onWidthChange: i.default.func - }), - x(E, 'defaultProps', { - breakpoints: { lg: 1200, md: 996, sm: 768, xs: 480, xxs: 0 }, - cols: { lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 }, - layouts: {}, - margin: [10, 10], - containerPadding: { - lg: null, - md: null, - sm: null, - xs: null, - xxs: null - }, - onBreakpointChange: a.noop, - onLayoutChange: a.noop, - onWidthChange: a.noop - }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t) { - var e, n; - return ( - (n = e = (function(e) { - function n() { - var t, e; - l(this, n); - for ( - var r = arguments.length, i = new Array(r), a = 0; - a < r; - a++ - ) - i[a] = arguments[a]; - return ( - g( - h( - (e = f(this, (t = d(n)).call.apply(t, [this].concat(i)))) - ), - 'state', - { width: 1280 } - ), - g(h(e), 'mounted', !1), - g(h(e), 'onWindowResize', function() { - if (e.mounted) { - var t = o.default.findDOMNode(h(e)); - t instanceof HTMLElement && - e.setState({ width: t.offsetWidth }); - } - }), - e - ); - } - return ( - (function(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { value: t, writable: !0, configurable: !0 } - })), - e && p(t, e); - })(n, e), - (function(t, e, n) { - e && c(t.prototype, e); - n && c(t, n); - })(n, [ - { - key: 'componentDidMount', - value: function() { - (this.mounted = !0), - window.addEventListener('resize', this.onWindowResize), - this.onWindowResize(); - } - }, - { - key: 'componentWillUnmount', - value: function() { - (this.mounted = !1), - window.removeEventListener( - 'resize', - this.onWindowResize - ); - } - }, - { - key: 'render', - value: function() { - var e = this.props, - n = e.measureBeforeMount, - i = (function(t, e) { - if (null == t) return {}; - var n, - r, - i = (function(t, e) { - if (null == t) return {}; - var n, - r, - i = {}, - o = Object.keys(t); - for (r = 0; r < o.length; r++) - (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); - return i; - })(t, e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(t); - for (r = 0; r < o.length; r++) - (n = o[r]), - e.indexOf(n) >= 0 || - (Object.prototype.propertyIsEnumerable.call( - t, - n - ) && - (i[n] = t[n])); - } - return i; - })(e, ['measureBeforeMount']); - return n && !this.mounted - ? r.default.createElement('div', { - className: this.props.className, - style: this.props.style - }) - : r.default.createElement(t, u({}, i, this.state)); - } - } - ]), - n - ); - })(r.default.Component)), - g(e, 'defaultProps', { measureBeforeMount: !1 }), - g(e, 'propTypes', { measureBeforeMount: i.default.bool }), - n - ); - }); - var r = a(n(0)), - i = a(n(1)), - o = a(n(5)); - function a(t) { - return t && t.__esModule ? t : { default: t }; - } - function s(t) { - return (s = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - })(t); - } - function u() { - return (u = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - function l(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - } - function c(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - function f(t, e) { - return !e || ('object' !== s(e) && 'function' != typeof e) ? h(t) : e; - } - function d(t) { - return (d = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(t) { - return t.__proto__ || Object.getPrototypeOf(t); - })(t); - } - function h(t) { - if (void 0 === t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return t; - } - function p(t, e) { - return (p = - Object.setPrototypeOf || - function(t, e) { - return (t.__proto__ = e), t; - })(t, e); - } - function g(t, e, n) { - return ( - e in t - ? Object.defineProperty(t, e, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (t[e] = n), - t - ); - } - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t) { - return ( - 'text' === t.type && /\r?\n/.test(t.data) && '' === t.data.trim() - ); - }); - }, - function(t, e, n) { - 'use strict'; - var r; - Object.defineProperty(e, '__esModule', { value: !0 }); - var i = n(31), - o = l(n(304)), - a = l(n(305)), - s = l(n(311)), - u = l(n(312)); - function l(t) { - return t && t.__esModule ? t : { default: t }; - } - function c(t, e, n) { - return ( - e in t - ? Object.defineProperty(t, e, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (t[e] = n), - t - ); - } - e.default = - (c((r = {}), i.ElementType.Text, o.default), - c(r, i.ElementType.Tag, a.default), - c(r, i.ElementType.Style, s.default), - c(r, i.ElementType.Directive, u.default), - c(r, i.ElementType.Comment, u.default), - c(r, i.ElementType.Script, u.default), - c(r, i.ElementType.CDATA, u.default), - c(r, i.ElementType.Doctype, u.default), - r); - }, - function(t, e, n) { - var r = n(275); - t.exports = function(t) { - if ((t >= 55296 && t <= 57343) || t > 1114111) return '�'; - t in r && (t = r[t]); - var e = ''; - t > 65535 && - ((t -= 65536), - (e += String.fromCharCode(((t >>> 10) & 1023) | 55296)), - (t = 56320 | (1023 & t))); - return (e += String.fromCharCode(t)); - }; - }, - function(t) { - t.exports = JSON.parse( - '{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}' - ); - }, - function(t) { - t.exports = JSON.parse( - '{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}' - ); - }, - function(t) { - t.exports = JSON.parse( - '{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}' - ); - }, - function(t) { - t.exports = JSON.parse( - '{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}' - ); - }, - function(t, e, n) { - 'use strict'; - var r, - i = 'object' == typeof Reflect ? Reflect : null, - o = - i && 'function' == typeof i.apply - ? i.apply - : function(t, e, n) { - return Function.prototype.apply.call(t, e, n); - }; - r = - i && 'function' == typeof i.ownKeys - ? i.ownKeys - : Object.getOwnPropertySymbols - ? function(t) { - return Object.getOwnPropertyNames(t).concat( - Object.getOwnPropertySymbols(t) - ); - } - : function(t) { - return Object.getOwnPropertyNames(t); - }; - var a = - Number.isNaN || - function(t) { - return t != t; - }; - function s() { - s.init.call(this); - } - (t.exports = s), - (s.EventEmitter = s), - (s.prototype._events = void 0), - (s.prototype._eventsCount = 0), - (s.prototype._maxListeners = void 0); - var u = 10; - function l(t) { - if ('function' != typeof t) - throw new TypeError( - 'The "listener" argument must be of type Function. Received type ' + - typeof t - ); - } - function c(t) { - return void 0 === t._maxListeners - ? s.defaultMaxListeners - : t._maxListeners; - } - function f(t, e, n, r) { - var i, o, a, s; - if ( - (l(n), - void 0 === (o = t._events) - ? ((o = t._events = Object.create(null)), (t._eventsCount = 0)) - : (void 0 !== o.newListener && - (t.emit('newListener', e, n.listener ? n.listener : n), - (o = t._events)), - (a = o[e])), - void 0 === a) - ) - (a = o[e] = n), ++t._eventsCount; - else if ( - ('function' == typeof a - ? (a = o[e] = r ? [n, a] : [a, n]) - : r - ? a.unshift(n) - : a.push(n), - (i = c(t)) > 0 && a.length > i && !a.warned) - ) { - a.warned = !0; - var u = new Error( - 'Possible EventEmitter memory leak detected. ' + - a.length + - ' ' + - String(e) + - ' listeners added. Use emitter.setMaxListeners() to increase limit' - ); - (u.name = 'MaxListenersExceededWarning'), - (u.emitter = t), - (u.type = e), - (u.count = a.length), - (s = u), - console && console.warn && console.warn(s); - } - return t; - } - function d() { - if (!this.fired) - return ( - this.target.removeListener(this.type, this.wrapFn), - (this.fired = !0), - 0 === arguments.length - ? this.listener.call(this.target) - : this.listener.apply(this.target, arguments) - ); - } - function h(t, e, n) { - var r = { fired: !1, wrapFn: void 0, target: t, type: e, listener: n }, - i = d.bind(r); - return (i.listener = n), (r.wrapFn = i), i; - } - function p(t, e, n) { - var r = t._events; - if (void 0 === r) return []; - var i = r[e]; - return void 0 === i - ? [] - : 'function' == typeof i - ? n - ? [i.listener || i] - : [i] - : n - ? (function(t) { - for (var e = new Array(t.length), n = 0; n < e.length; ++n) - e[n] = t[n].listener || t[n]; - return e; - })(i) - : v(i, i.length); - } - function g(t) { - var e = this._events; - if (void 0 !== e) { - var n = e[t]; - if ('function' == typeof n) return 1; - if (void 0 !== n) return n.length; - } - return 0; - } - function v(t, e) { - for (var n = new Array(e), r = 0; r < e; ++r) n[r] = t[r]; - return n; - } - Object.defineProperty(s, 'defaultMaxListeners', { - enumerable: !0, - get: function() { - return u; - }, - set: function(t) { - if ('number' != typeof t || t < 0 || a(t)) - throw new RangeError( - 'The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + - t + - '.' - ); - u = t; - } - }), - (s.init = function() { - (void 0 !== this._events && - this._events !== Object.getPrototypeOf(this)._events) || - ((this._events = Object.create(null)), (this._eventsCount = 0)), - (this._maxListeners = this._maxListeners || void 0); - }), - (s.prototype.setMaxListeners = function(t) { - if ('number' != typeof t || t < 0 || a(t)) - throw new RangeError( - 'The value of "n" is out of range. It must be a non-negative number. Received ' + - t + - '.' - ); - return (this._maxListeners = t), this; - }), - (s.prototype.getMaxListeners = function() { - return c(this); - }), - (s.prototype.emit = function(t) { - for (var e = [], n = 1; n < arguments.length; n++) - e.push(arguments[n]); - var r = 'error' === t, - i = this._events; - if (void 0 !== i) r = r && void 0 === i.error; - else if (!r) return !1; - if (r) { - var a; - if ((e.length > 0 && (a = e[0]), a instanceof Error)) throw a; - var s = new Error( - 'Unhandled error.' + (a ? ' (' + a.message + ')' : '') - ); - throw ((s.context = a), s); - } - var u = i[t]; - if (void 0 === u) return !1; - if ('function' == typeof u) o(u, this, e); - else { - var l = u.length, - c = v(u, l); - for (n = 0; n < l; ++n) o(c[n], this, e); - } - return !0; - }), - (s.prototype.addListener = function(t, e) { - return f(this, t, e, !1); - }), - (s.prototype.on = s.prototype.addListener), - (s.prototype.prependListener = function(t, e) { - return f(this, t, e, !0); - }), - (s.prototype.once = function(t, e) { - return l(e), this.on(t, h(this, t, e)), this; - }), - (s.prototype.prependOnceListener = function(t, e) { - return l(e), this.prependListener(t, h(this, t, e)), this; - }), - (s.prototype.removeListener = function(t, e) { - var n, r, i, o, a; - if ((l(e), void 0 === (r = this._events))) return this; - if (void 0 === (n = r[t])) return this; - if (n === e || n.listener === e) - 0 == --this._eventsCount - ? (this._events = Object.create(null)) - : (delete r[t], - r.removeListener && - this.emit('removeListener', t, n.listener || e)); - else if ('function' != typeof n) { - for (i = -1, o = n.length - 1; o >= 0; o--) - if (n[o] === e || n[o].listener === e) { - (a = n[o].listener), (i = o); - break; - } - if (i < 0) return this; - 0 === i - ? n.shift() - : (function(t, e) { - for (; e + 1 < t.length; e++) t[e] = t[e + 1]; - t.pop(); - })(n, i), - 1 === n.length && (r[t] = n[0]), - void 0 !== r.removeListener && - this.emit('removeListener', t, a || e); - } - return this; - }), - (s.prototype.off = s.prototype.removeListener), - (s.prototype.removeAllListeners = function(t) { - var e, n, r; - if (void 0 === (n = this._events)) return this; - if (void 0 === n.removeListener) - return ( - 0 === arguments.length - ? ((this._events = Object.create(null)), - (this._eventsCount = 0)) - : void 0 !== n[t] && - (0 == --this._eventsCount - ? (this._events = Object.create(null)) - : delete n[t]), - this - ); - if (0 === arguments.length) { - var i, - o = Object.keys(n); - for (r = 0; r < o.length; ++r) - 'removeListener' !== (i = o[r]) && this.removeAllListeners(i); - return ( - this.removeAllListeners('removeListener'), - (this._events = Object.create(null)), - (this._eventsCount = 0), - this - ); - } - if ('function' == typeof (e = n[t])) this.removeListener(t, e); - else if (void 0 !== e) - for (r = e.length - 1; r >= 0; r--) this.removeListener(t, e[r]); - return this; - }), - (s.prototype.listeners = function(t) { - return p(this, t, !0); - }), - (s.prototype.rawListeners = function(t) { - return p(this, t, !1); - }), - (s.listenerCount = function(t, e) { - return 'function' == typeof t.listenerCount - ? t.listenerCount(e) - : g.call(t, e); - }), - (s.prototype.listenerCount = g), - (s.prototype.eventNames = function() { - return this._eventsCount > 0 ? r(this._events) : []; - }); - }, - function(t, e, n) { - var r = n(125), - i = (t.exports = Object.create(r)), - o = { tagName: 'name' }; - Object.keys(o).forEach(function(t) { - var e = o[t]; - Object.defineProperty(i, t, { - get: function() { - return this[e] || null; - }, - set: function(t) { - return (this[e] = t), t; - } - }); - }); - }, - function(t, e, n) { - var r = n(124), - i = n(126); - function o(t, e) { - this.init(t, e); - } - function a(t, e) { - return i.getElementsByTagName(t, e, !0); - } - function s(t, e) { - return i.getElementsByTagName(t, e, !0, 1)[0]; - } - function u(t, e, n) { - return i.getText(i.getElementsByTagName(t, e, n, 1)).trim(); - } - function l(t, e, n, r, i) { - var o = u(n, r, i); - o && (t[e] = o); - } - n(55)(o, r), (o.prototype.init = r); - var c = function(t) { - return 'rss' === t || 'feed' === t || 'rdf:RDF' === t; - }; - (o.prototype.onend = function() { - var t, - e, - n = {}, - i = s(c, this.dom); - i && - ('feed' === i.name - ? ((e = i.children), - (n.type = 'atom'), - l(n, 'id', 'id', e), - l(n, 'title', 'title', e), - (t = s('link', e)) && - (t = t.attribs) && - (t = t.href) && - (n.link = t), - l(n, 'description', 'subtitle', e), - (t = u('updated', e)) && (n.updated = new Date(t)), - l(n, 'author', 'email', e, !0), - (n.items = a('entry', e).map(function(t) { - var e, - n = {}; - return ( - l(n, 'id', 'id', (t = t.children)), - l(n, 'title', 'title', t), - (e = s('link', t)) && - (e = e.attribs) && - (e = e.href) && - (n.link = e), - (e = u('summary', t) || u('content', t)) && - (n.description = e), - (e = u('updated', t)) && (n.pubDate = new Date(e)), - n - ); - }))) - : ((e = s('channel', i.children).children), - (n.type = i.name.substr(0, 3)), - (n.id = ''), - l(n, 'title', 'title', e), - l(n, 'link', 'link', e), - l(n, 'description', 'description', e), - (t = u('lastBuildDate', e)) && (n.updated = new Date(t)), - l(n, 'author', 'managingEditor', e, !0), - (n.items = a('item', i.children).map(function(t) { - var e, - n = {}; - return ( - l(n, 'id', 'guid', (t = t.children)), - l(n, 'title', 'title', t), - l(n, 'link', 'link', t), - l(n, 'description', 'description', t), - (e = u('pubDate', t)) && (n.pubDate = new Date(e)), - n - ); - })))), - (this.dom = n), - r.prototype._handleCallback.call( - this, - i ? null : Error("couldn't find root of feed") - ); - }), - (t.exports = o); - }, - function(t, e, n) { - var r = n(40), - i = n(283), - o = r.isTag; - t.exports = { - getInnerHTML: function(t, e) { - return t.children - ? t.children - .map(function(t) { - return i(t, e); - }) - .join('') - : ''; - }, - getOuterHTML: i, - getText: function t(e) { - return Array.isArray(e) - ? e.map(t).join('') - : o(e) - ? 'br' === e.name - ? '\n' - : t(e.children) - : e.type === r.CDATA - ? t(e.children) - : e.type === r.Text - ? e.data - : ''; - } - }; - }, - function(t, e, n) { - var r = n(284), - i = n(285), - o = n(289); - (o.elementNames.__proto__ = null), (o.attributeNames.__proto__ = null); - var a = { - __proto__: null, - style: !0, - script: !0, - xmp: !0, - iframe: !0, - noembed: !0, - noframes: !0, - plaintext: !0, - noscript: !0 - }; - var s = { - __proto__: null, - area: !0, - base: !0, - basefont: !0, - br: !0, - col: !0, - command: !0, - embed: !0, - frame: !0, - hr: !0, - img: !0, - input: !0, - isindex: !0, - keygen: !0, - link: !0, - meta: !0, - param: !0, - source: !0, - track: !0, - wbr: !0 - }, - u = (t.exports = function(t, e) { - Array.isArray(t) || t.cheerio || (t = [t]), (e = e || {}); - for (var n = '', i = 0; i < t.length; i++) { - var o = t[i]; - 'root' === o.type - ? (n += u(o.children, e)) - : r.isTag(o) - ? (n += c(o, e)) - : o.type === r.Directive - ? (n += f(o)) - : o.type === r.Comment - ? (n += p(o)) - : o.type === r.CDATA - ? (n += h(o)) - : (n += d(o, e)); - } - return n; - }), - l = [ - 'mi', - 'mo', - 'mn', - 'ms', - 'mtext', - 'annotation-xml', - 'foreignObject', - 'desc', - 'title' - ]; - function c(t, e) { - 'foreign' === e.xmlMode && - ((t.name = o.elementNames[t.name] || t.name), - t.parent && - l.indexOf(t.parent.name) >= 0 && - (e = Object.assign({}, e, { xmlMode: !1 }))), - !e.xmlMode && - ['svg', 'math'].indexOf(t.name) >= 0 && - (e = Object.assign({}, e, { xmlMode: 'foreign' })); - var n = '<' + t.name, - r = (function(t, e) { - if (t) { - var n, - r = ''; - for (var a in t) - (n = t[a]), - r && (r += ' '), - 'foreign' === e.xmlMode && (a = o.attributeNames[a] || a), - (r += a), - ((null !== n && '' !== n) || e.xmlMode) && - (r += - '="' + - (e.decodeEntities - ? i.encodeXML(n) - : n.replace(/\"/g, '"')) + - '"'); - return r; - } - })(t.attribs, e); - return ( - r && (n += ' ' + r), - !e.xmlMode || (t.children && 0 !== t.children.length) - ? ((n += '>'), - t.children && (n += u(t.children, e)), - (s[t.name] && !e.xmlMode) || (n += '')) - : (n += '/>'), - n - ); - } - function f(t) { - return '<' + t.data + '>'; - } - function d(t, e) { - var n = t.data || ''; - return ( - !e.decodeEntities || - (t.parent && t.parent.name in a) || - (n = i.encodeXML(n)), - n - ); - } - function h(t) { - return ''; - } - function p(t) { - return '\x3c!--' + t.data + '--\x3e'; - } - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.isTag = function(t) { - return 'tag' === t.type || 'script' === t.type || 'style' === t.type; - }), - (e.Text = 'text'), - (e.Directive = 'directive'), - (e.Comment = 'comment'), - (e.Script = 'script'), - (e.Style = 'style'), - (e.Tag = 'tag'), - (e.CDATA = 'cdata'), - (e.Doctype = 'doctype'); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = n(127), - i = n(130); - (e.decode = function(t, e) { - return (!e || e <= 0 ? r.decodeXML : r.decodeHTML)(t); - }), - (e.decodeStrict = function(t, e) { - return (!e || e <= 0 ? r.decodeXML : r.decodeHTMLStrict)(t); - }), - (e.encode = function(t, e) { - return (!e || e <= 0 ? i.encodeXML : i.encodeHTML)(t); - }); - var o = n(130); - (e.encodeXML = o.encodeXML), - (e.encodeHTML = o.encodeHTML), - (e.escape = o.escape), - (e.encodeHTML4 = o.encodeHTML), - (e.encodeHTML5 = o.encodeHTML); - var a = n(127); - (e.decodeXML = a.decodeXML), - (e.decodeHTML = a.decodeHTML), - (e.decodeHTMLStrict = a.decodeHTMLStrict), - (e.decodeHTML4 = a.decodeHTML), - (e.decodeHTML5 = a.decodeHTML), - (e.decodeHTML4Strict = a.decodeHTMLStrict), - (e.decodeHTML5Strict = a.decodeHTMLStrict), - (e.decodeXMLStrict = a.decodeXML); - }, - function(t) { - t.exports = JSON.parse( - '{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}' - ); - }, - function(t, e, n) { - 'use strict'; - var r = - (this && this.__importDefault) || - function(t) { - return t && t.__esModule ? t : { default: t }; - }; - Object.defineProperty(e, '__esModule', { value: !0 }); - var i = r(n(288)); - e.default = function(t) { - if ((t >= 55296 && t <= 57343) || t > 1114111) return '�'; - t in i.default && (t = i.default[t]); - var e = ''; - return ( - t > 65535 && - ((t -= 65536), - (e += String.fromCharCode(((t >>> 10) & 1023) | 55296)), - (t = 56320 | (1023 & t))), - (e += String.fromCharCode(t)) - ); - }; - }, - function(t) { - t.exports = JSON.parse( - '{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}' - ); - }, - function(t) { - t.exports = JSON.parse( - '{"elementNames":{"altglyph":"altGlyph","altglyphdef":"altGlyphDef","altglyphitem":"altGlyphItem","animatecolor":"animateColor","animatemotion":"animateMotion","animatetransform":"animateTransform","clippath":"clipPath","feblend":"feBlend","fecolormatrix":"feColorMatrix","fecomponenttransfer":"feComponentTransfer","fecomposite":"feComposite","feconvolvematrix":"feConvolveMatrix","fediffuselighting":"feDiffuseLighting","fedisplacementmap":"feDisplacementMap","fedistantlight":"feDistantLight","fedropshadow":"feDropShadow","feflood":"feFlood","fefunca":"feFuncA","fefuncb":"feFuncB","fefuncg":"feFuncG","fefuncr":"feFuncR","fegaussianblur":"feGaussianBlur","feimage":"feImage","femerge":"feMerge","femergenode":"feMergeNode","femorphology":"feMorphology","feoffset":"feOffset","fepointlight":"fePointLight","fespecularlighting":"feSpecularLighting","fespotlight":"feSpotLight","fetile":"feTile","feturbulence":"feTurbulence","foreignobject":"foreignObject","glyphref":"glyphRef","lineargradient":"linearGradient","radialgradient":"radialGradient","textpath":"textPath"},"attributeNames":{"definitionurl":"definitionURL","attributename":"attributeName","attributetype":"attributeType","basefrequency":"baseFrequency","baseprofile":"baseProfile","calcmode":"calcMode","clippathunits":"clipPathUnits","diffuseconstant":"diffuseConstant","edgemode":"edgeMode","filterunits":"filterUnits","glyphref":"glyphRef","gradienttransform":"gradientTransform","gradientunits":"gradientUnits","kernelmatrix":"kernelMatrix","kernelunitlength":"kernelUnitLength","keypoints":"keyPoints","keysplines":"keySplines","keytimes":"keyTimes","lengthadjust":"lengthAdjust","limitingconeangle":"limitingConeAngle","markerheight":"markerHeight","markerunits":"markerUnits","markerwidth":"markerWidth","maskcontentunits":"maskContentUnits","maskunits":"maskUnits","numoctaves":"numOctaves","pathlength":"pathLength","patterncontentunits":"patternContentUnits","patterntransform":"patternTransform","patternunits":"patternUnits","pointsatx":"pointsAtX","pointsaty":"pointsAtY","pointsatz":"pointsAtZ","preservealpha":"preserveAlpha","preserveaspectratio":"preserveAspectRatio","primitiveunits":"primitiveUnits","refx":"refX","refy":"refY","repeatcount":"repeatCount","repeatdur":"repeatDur","requiredextensions":"requiredExtensions","requiredfeatures":"requiredFeatures","specularconstant":"specularConstant","specularexponent":"specularExponent","spreadmethod":"spreadMethod","startoffset":"startOffset","stddeviation":"stdDeviation","stitchtiles":"stitchTiles","surfacescale":"surfaceScale","systemlanguage":"systemLanguage","tablevalues":"tableValues","targetx":"targetX","targety":"targetY","textlength":"textLength","viewbox":"viewBox","viewtarget":"viewTarget","xchannelselector":"xChannelSelector","ychannelselector":"yChannelSelector","zoomandpan":"zoomAndPan"}}' - ); - }, - function(t, e) { - var n = (e.getChildren = function(t) { - return t.children; - }), - r = (e.getParent = function(t) { - return t.parent; - }); - (e.getSiblings = function(t) { - var e = r(t); - return e ? n(e) : [t]; - }), - (e.getAttributeValue = function(t, e) { - return t.attribs && t.attribs[e]; - }), - (e.hasAttrib = function(t, e) { - return !!t.attribs && hasOwnProperty.call(t.attribs, e); - }), - (e.getName = function(t) { - return t.name; - }); - }, - function(t, e) { - (e.removeElement = function(t) { - if ( - (t.prev && (t.prev.next = t.next), - t.next && (t.next.prev = t.prev), - t.parent) - ) { - var e = t.parent.children; - e.splice(e.lastIndexOf(t), 1); - } - }), - (e.replaceElement = function(t, e) { - var n = (e.prev = t.prev); - n && (n.next = e); - var r = (e.next = t.next); - r && (r.prev = e); - var i = (e.parent = t.parent); - if (i) { - var o = i.children; - o[o.lastIndexOf(t)] = e; - } - }), - (e.appendChild = function(t, e) { - if (((e.parent = t), 1 !== t.children.push(e))) { - var n = t.children[t.children.length - 2]; - (n.next = e), (e.prev = n), (e.next = null); - } - }), - (e.append = function(t, e) { - var n = t.parent, - r = t.next; - if (((e.next = r), (e.prev = t), (t.next = e), (e.parent = n), r)) { - if (((r.prev = e), n)) { - var i = n.children; - i.splice(i.lastIndexOf(r), 0, e); - } - } else n && n.children.push(e); - }), - (e.prepend = function(t, e) { - var n = t.parent; - if (n) { - var r = n.children; - r.splice(r.lastIndexOf(t), 0, e); - } - t.prev && (t.prev.next = e), - (e.parent = n), - (e.prev = t.prev), - (e.next = t), - (t.prev = e); - }); - }, - function(t, e, n) { - var r = n(40).isTag; - function i(t, e, n, r) { - for ( - var o, a = [], s = 0, u = e.length; - s < u && - !(t(e[s]) && (a.push(e[s]), --r <= 0)) && - ((o = e[s].children), - !( - n && - o && - o.length > 0 && - ((o = i(t, o, n, r)), (a = a.concat(o)), (r -= o.length) <= 0) - )); - s++ - ); - return a; - } - t.exports = { - filter: function(t, e, n, r) { - Array.isArray(e) || (e = [e]); - ('number' == typeof r && isFinite(r)) || (r = 1 / 0); - return i(t, e, !1 !== n, r); - }, - find: i, - findOneChild: function(t, e) { - for (var n = 0, r = e.length; n < r; n++) if (t(e[n])) return e[n]; - return null; - }, - findOne: function t(e, n) { - for (var i = null, o = 0, a = n.length; o < a && !i; o++) - r(n[o]) && - (e(n[o]) - ? (i = n[o]) - : n[o].children.length > 0 && (i = t(e, n[o].children))); - return i; - }, - existsOne: function t(e, n) { - for (var i = 0, o = n.length; i < o; i++) - if ( - r(n[i]) && - (e(n[i]) || (n[i].children.length > 0 && t(e, n[i].children))) - ) - return !0; - return !1; - }, - findAll: function(t, e) { - var n = [], - i = e.slice(); - for (; i.length; ) { - var o = i.shift(); - r(o) && - (o.children && - o.children.length > 0 && - i.unshift.apply(i, o.children), - t(o) && n.push(o)); - } - return n; - } - }; - }, - function(t, e, n) { - var r = n(40), - i = (e.isTag = r.isTag); - e.testElement = function(t, e) { - for (var n in t) - if (t.hasOwnProperty(n)) { - if ('tag_name' === n) { - if (!i(e) || !t.tag_name(e.name)) return !1; - } else if ('tag_type' === n) { - if (!t.tag_type(e.type)) return !1; - } else if ('tag_contains' === n) { - if (i(e) || !t.tag_contains(e.data)) return !1; - } else if (!e.attribs || !t[n](e.attribs[n])) return !1; - } else; - return !0; - }; - var o = { - tag_name: function(t) { - return 'function' == typeof t - ? function(e) { - return i(e) && t(e.name); - } - : '*' === t - ? i - : function(e) { - return i(e) && e.name === t; - }; - }, - tag_type: function(t) { - return 'function' == typeof t - ? function(e) { - return t(e.type); - } - : function(e) { - return e.type === t; - }; - }, - tag_contains: function(t) { - return 'function' == typeof t - ? function(e) { - return !i(e) && t(e.data); - } - : function(e) { - return !i(e) && e.data === t; - }; - } - }; - function a(t, e) { - return 'function' == typeof e - ? function(n) { - return n.attribs && e(n.attribs[t]); - } - : function(n) { - return n.attribs && n.attribs[t] === e; - }; - } - function s(t, e) { - return function(n) { - return t(n) || e(n); - }; - } - (e.getElements = function(t, e, n, r) { - var i = Object.keys(t).map(function(e) { - var n = t[e]; - return e in o ? o[e](n) : a(e, n); - }); - return 0 === i.length ? [] : this.filter(i.reduce(s), e, n, r); - }), - (e.getElementById = function(t, e, n) { - return ( - Array.isArray(e) || (e = [e]), this.findOne(a('id', t), e, !1 !== n) - ); - }), - (e.getElementsByTagName = function(t, e, n, r) { - return this.filter(o.tag_name(t), e, n, r); - }), - (e.getElementsByTagType = function(t, e, n, r) { - return this.filter(o.tag_type(t), e, n, r); - }); - }, - function(t, e) { - e.removeSubsets = function(t) { - for (var e, n, r, i = t.length; --i > -1; ) { - for (e = n = t[i], t[i] = null, r = !0; n; ) { - if (t.indexOf(n) > -1) { - (r = !1), t.splice(i, 1); - break; - } - n = n.parent; - } - r && (t[i] = e); - } - return t; - }; - var n = 1, - r = 2, - i = 4, - o = 8, - a = 16, - s = (e.compareDocumentPosition = function(t, e) { - var s, - u, - l, - c, - f, - d, - h = [], - p = []; - if (t === e) return 0; - for (s = t; s; ) h.unshift(s), (s = s.parent); - for (s = e; s; ) p.unshift(s), (s = s.parent); - for (d = 0; h[d] === p[d]; ) d++; - return 0 === d - ? n - : ((l = (u = h[d - 1]).children), - (c = h[d]), - (f = p[d]), - l.indexOf(c) > l.indexOf(f) - ? u === e - ? i | a - : i - : u === t - ? r | o - : r); - }); - e.uniqueSort = function(t) { - var e, - n, - o = t.length; - for (t = t.slice(); --o > -1; ) - (e = t[o]), (n = t.indexOf(e)) > -1 && n < o && t.splice(o, 1); - return ( - t.sort(function(t, e) { - var n = s(t, e); - return n & r ? -1 : n & i ? 1 : 0; - }), - t - ); - }; - }, - function(t, e, n) { - t.exports = i; - var r = n(131); - function i(t) { - r.call(this, new o(this), t); - } - function o(t) { - this.scope = t; - } - n(55)(i, r), (i.prototype.readable = !0); - var a = n(31).EVENTS; - Object.keys(a).forEach(function(t) { - if (0 === a[t]) - o.prototype['on' + t] = function() { - this.scope.emit(t); - }; - else if (1 === a[t]) - o.prototype['on' + t] = function(e) { - this.scope.emit(t, e); - }; - else { - if (2 !== a[t]) throw Error('wrong number of arguments!'); - o.prototype['on' + t] = function(e, n) { - this.scope.emit(t, e, n); - }; - } - }); - }, - function(t, e) {}, - function(t, e, n) { - 'use strict'; - var r = n(298).Buffer, - i = - r.isEncoding || - function(t) { - switch ((t = '' + t) && t.toLowerCase()) { - case 'hex': - case 'utf8': - case 'utf-8': - case 'ascii': - case 'binary': - case 'base64': - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - case 'raw': - return !0; - default: - return !1; - } - }; - function o(t) { - var e; - switch ( - ((this.encoding = (function(t) { - var e = (function(t) { - if (!t) return 'utf8'; - for (var e; ; ) - switch (t) { - case 'utf8': - case 'utf-8': - return 'utf8'; - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return 'utf16le'; - case 'latin1': - case 'binary': - return 'latin1'; - case 'base64': - case 'ascii': - case 'hex': - return t; - default: - if (e) return; - (t = ('' + t).toLowerCase()), (e = !0); - } - })(t); - if ('string' != typeof e && (r.isEncoding === i || !i(t))) - throw new Error('Unknown encoding: ' + t); - return e || t; - })(t)), - this.encoding) - ) { - case 'utf16le': - (this.text = u), (this.end = l), (e = 4); - break; - case 'utf8': - (this.fillLast = s), (e = 4); - break; - case 'base64': - (this.text = c), (this.end = f), (e = 3); - break; - default: - return (this.write = d), void (this.end = h); - } - (this.lastNeed = 0), - (this.lastTotal = 0), - (this.lastChar = r.allocUnsafe(e)); - } - function a(t) { - return t <= 127 - ? 0 - : t >> 5 == 6 - ? 2 - : t >> 4 == 14 - ? 3 - : t >> 3 == 30 - ? 4 - : t >> 6 == 2 - ? -1 - : -2; - } - function s(t) { - var e = this.lastTotal - this.lastNeed, - n = (function(t, e, n) { - if (128 != (192 & e[0])) return (t.lastNeed = 0), '�'; - if (t.lastNeed > 1 && e.length > 1) { - if (128 != (192 & e[1])) return (t.lastNeed = 1), '�'; - if (t.lastNeed > 2 && e.length > 2 && 128 != (192 & e[2])) - return (t.lastNeed = 2), '�'; - } - })(this, t); - return void 0 !== n - ? n - : this.lastNeed <= t.length - ? (t.copy(this.lastChar, e, 0, this.lastNeed), - this.lastChar.toString(this.encoding, 0, this.lastTotal)) - : (t.copy(this.lastChar, e, 0, t.length), - void (this.lastNeed -= t.length)); - } - function u(t, e) { - if ((t.length - e) % 2 == 0) { - var n = t.toString('utf16le', e); - if (n) { - var r = n.charCodeAt(n.length - 1); - if (r >= 55296 && r <= 56319) - return ( - (this.lastNeed = 2), - (this.lastTotal = 4), - (this.lastChar[0] = t[t.length - 2]), - (this.lastChar[1] = t[t.length - 1]), - n.slice(0, -1) - ); - } - return n; - } - return ( - (this.lastNeed = 1), - (this.lastTotal = 2), - (this.lastChar[0] = t[t.length - 1]), - t.toString('utf16le', e, t.length - 1) - ); - } - function l(t) { - var e = t && t.length ? this.write(t) : ''; - if (this.lastNeed) { - var n = this.lastTotal - this.lastNeed; - return e + this.lastChar.toString('utf16le', 0, n); - } - return e; - } - function c(t, e) { - var n = (t.length - e) % 3; - return 0 === n - ? t.toString('base64', e) - : ((this.lastNeed = 3 - n), - (this.lastTotal = 3), - 1 === n - ? (this.lastChar[0] = t[t.length - 1]) - : ((this.lastChar[0] = t[t.length - 2]), - (this.lastChar[1] = t[t.length - 1])), - t.toString('base64', e, t.length - n)); - } - function f(t) { - var e = t && t.length ? this.write(t) : ''; - return this.lastNeed - ? e + this.lastChar.toString('base64', 0, 3 - this.lastNeed) - : e; - } - function d(t) { - return t.toString(this.encoding); - } - function h(t) { - return t && t.length ? this.write(t) : ''; - } - (e.StringDecoder = o), - (o.prototype.write = function(t) { - if (0 === t.length) return ''; - var e, n; - if (this.lastNeed) { - if (void 0 === (e = this.fillLast(t))) return ''; - (n = this.lastNeed), (this.lastNeed = 0); - } else n = 0; - return n < t.length - ? e - ? e + this.text(t, n) - : this.text(t, n) - : e || ''; - }), - (o.prototype.end = function(t) { - var e = t && t.length ? this.write(t) : ''; - return this.lastNeed ? e + '�' : e; - }), - (o.prototype.text = function(t, e) { - var n = (function(t, e, n) { - var r = e.length - 1; - if (r < n) return 0; - var i = a(e[r]); - if (i >= 0) return i > 0 && (t.lastNeed = i - 1), i; - if (--r < n || -2 === i) return 0; - if ((i = a(e[r])) >= 0) return i > 0 && (t.lastNeed = i - 2), i; - if (--r < n || -2 === i) return 0; - if ((i = a(e[r])) >= 0) - return i > 0 && (2 === i ? (i = 0) : (t.lastNeed = i - 3)), i; - return 0; - })(this, t, e); - if (!this.lastNeed) return t.toString('utf8', e); - this.lastTotal = n; - var r = t.length - (n - this.lastNeed); - return t.copy(this.lastChar, 0, r), t.toString('utf8', e, r); - }), - (o.prototype.fillLast = function(t) { - if (this.lastNeed <= t.length) - return ( - t.copy( - this.lastChar, - this.lastTotal - this.lastNeed, - 0, - this.lastNeed - ), - this.lastChar.toString(this.encoding, 0, this.lastTotal) - ); - t.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, t.length), - (this.lastNeed -= t.length); - }); - }, - function(t, e, n) { - var r = n(132), - i = r.Buffer; - function o(t, e) { - for (var n in t) e[n] = t[n]; - } - function a(t, e, n) { - return i(t, e, n); - } - i.from && i.alloc && i.allocUnsafe && i.allocUnsafeSlow - ? (t.exports = r) - : (o(r, e), (e.Buffer = a)), - (a.prototype = Object.create(i.prototype)), - o(i, a), - (a.from = function(t, e, n) { - if ('number' == typeof t) - throw new TypeError('Argument must not be a number'); - return i(t, e, n); - }), - (a.alloc = function(t, e, n) { - if ('number' != typeof t) - throw new TypeError('Argument must be a number'); - var r = i(t); - return ( - void 0 !== e - ? 'string' == typeof n - ? r.fill(e, n) - : r.fill(e) - : r.fill(0), - r - ); - }), - (a.allocUnsafe = function(t) { - if ('number' != typeof t) - throw new TypeError('Argument must be a number'); - return i(t); - }), - (a.allocUnsafeSlow = function(t) { - if ('number' != typeof t) - throw new TypeError('Argument must be a number'); - return r.SlowBuffer(t); - }); - }, - function(t, e, n) { - 'use strict'; - (e.byteLength = function(t) { - var e = l(t), - n = e[0], - r = e[1]; - return (3 * (n + r)) / 4 - r; - }), - (e.toByteArray = function(t) { - var e, - n, - r = l(t), - a = r[0], - s = r[1], - u = new o( - (function(t, e, n) { - return (3 * (e + n)) / 4 - n; - })(0, a, s) - ), - c = 0, - f = s > 0 ? a - 4 : a; - for (n = 0; n < f; n += 4) - (e = - (i[t.charCodeAt(n)] << 18) | - (i[t.charCodeAt(n + 1)] << 12) | - (i[t.charCodeAt(n + 2)] << 6) | - i[t.charCodeAt(n + 3)]), - (u[c++] = (e >> 16) & 255), - (u[c++] = (e >> 8) & 255), - (u[c++] = 255 & e); - 2 === s && - ((e = (i[t.charCodeAt(n)] << 2) | (i[t.charCodeAt(n + 1)] >> 4)), - (u[c++] = 255 & e)); - 1 === s && - ((e = - (i[t.charCodeAt(n)] << 10) | - (i[t.charCodeAt(n + 1)] << 4) | - (i[t.charCodeAt(n + 2)] >> 2)), - (u[c++] = (e >> 8) & 255), - (u[c++] = 255 & e)); - return u; - }), - (e.fromByteArray = function(t) { - for ( - var e, n = t.length, i = n % 3, o = [], a = 0, s = n - i; - a < s; - a += 16383 - ) - o.push(c(t, a, a + 16383 > s ? s : a + 16383)); - 1 === i - ? ((e = t[n - 1]), o.push(r[e >> 2] + r[(e << 4) & 63] + '==')) - : 2 === i && - ((e = (t[n - 2] << 8) + t[n - 1]), - o.push(r[e >> 10] + r[(e >> 4) & 63] + r[(e << 2) & 63] + '=')); - return o.join(''); - }); - for ( - var r = [], - i = [], - o = 'undefined' != typeof Uint8Array ? Uint8Array : Array, - a = - 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/', - s = 0, - u = a.length; - s < u; - ++s - ) - (r[s] = a[s]), (i[a.charCodeAt(s)] = s); - function l(t) { - var e = t.length; - if (e % 4 > 0) - throw new Error('Invalid string. Length must be a multiple of 4'); - var n = t.indexOf('='); - return -1 === n && (n = e), [n, n === e ? 0 : 4 - (n % 4)]; - } - function c(t, e, n) { - for (var i, o, a = [], s = e; s < n; s += 3) - (i = - ((t[s] << 16) & 16711680) + - ((t[s + 1] << 8) & 65280) + - (255 & t[s + 2])), - a.push( - r[((o = i) >> 18) & 63] + - r[(o >> 12) & 63] + - r[(o >> 6) & 63] + - r[63 & o] - ); - return a.join(''); - } - (i['-'.charCodeAt(0)] = 62), (i['_'.charCodeAt(0)] = 63); - }, - function(t, e) { - (e.read = function(t, e, n, r, i) { - var o, - a, - s = 8 * i - r - 1, - u = (1 << s) - 1, - l = u >> 1, - c = -7, - f = n ? i - 1 : 0, - d = n ? -1 : 1, - h = t[e + f]; - for ( - f += d, o = h & ((1 << -c) - 1), h >>= -c, c += s; - c > 0; - o = 256 * o + t[e + f], f += d, c -= 8 - ); - for ( - a = o & ((1 << -c) - 1), o >>= -c, c += r; - c > 0; - a = 256 * a + t[e + f], f += d, c -= 8 - ); - if (0 === o) o = 1 - l; - else { - if (o === u) return a ? NaN : (1 / 0) * (h ? -1 : 1); - (a += Math.pow(2, r)), (o -= l); - } - return (h ? -1 : 1) * a * Math.pow(2, o - r); - }), - (e.write = function(t, e, n, r, i, o) { - var a, - s, - u, - l = 8 * o - i - 1, - c = (1 << l) - 1, - f = c >> 1, - d = 23 === i ? Math.pow(2, -24) - Math.pow(2, -77) : 0, - h = r ? 0 : o - 1, - p = r ? 1 : -1, - g = e < 0 || (0 === e && 1 / e < 0) ? 1 : 0; - for ( - e = Math.abs(e), - isNaN(e) || e === 1 / 0 - ? ((s = isNaN(e) ? 1 : 0), (a = c)) - : ((a = Math.floor(Math.log(e) / Math.LN2)), - e * (u = Math.pow(2, -a)) < 1 && (a--, (u *= 2)), - (e += a + f >= 1 ? d / u : d * Math.pow(2, 1 - f)) * u >= 2 && - (a++, (u /= 2)), - a + f >= c - ? ((s = 0), (a = c)) - : a + f >= 1 - ? ((s = (e * u - 1) * Math.pow(2, i)), (a += f)) - : ((s = e * Math.pow(2, f - 1) * Math.pow(2, i)), (a = 0))); - i >= 8; - t[n + h] = 255 & s, h += p, s /= 256, i -= 8 - ); - for ( - a = (a << i) | s, l += i; - l > 0; - t[n + h] = 255 & a, h += p, a /= 256, l -= 8 - ); - t[n + h - p] |= 128 * g; - }); - }, - function(t, e) { - var n = {}.toString; - t.exports = - Array.isArray || - function(t) { - return '[object Array]' == n.call(t); - }; - }, - function(t, e, n) { - function r(t) { - this._cbs = t || {}; - } - t.exports = r; - var i = n(31).EVENTS; - Object.keys(i).forEach(function(t) { - if (0 === i[t]) - (t = 'on' + t), - (r.prototype[t] = function() { - this._cbs[t] && this._cbs[t](); - }); - else if (1 === i[t]) - (t = 'on' + t), - (r.prototype[t] = function(e) { - this._cbs[t] && this._cbs[t](e); - }); - else { - if (2 !== i[t]) throw Error('wrong number of arguments'); - (t = 'on' + t), - (r.prototype[t] = function(e, n) { - this._cbs[t] && this._cbs[t](e, n); - }); - } - }); - }, - function(t, e, n) { - function r(t) { - (this._cbs = t || {}), (this.events = []); - } - t.exports = r; - var i = n(31).EVENTS; - Object.keys(i).forEach(function(t) { - if (0 === i[t]) - (t = 'on' + t), - (r.prototype[t] = function() { - this.events.push([t]), this._cbs[t] && this._cbs[t](); - }); - else if (1 === i[t]) - (t = 'on' + t), - (r.prototype[t] = function(e) { - this.events.push([t, e]), this._cbs[t] && this._cbs[t](e); - }); - else { - if (2 !== i[t]) throw Error('wrong number of arguments'); - (t = 'on' + t), - (r.prototype[t] = function(e, n) { - this.events.push([t, e, n]), this._cbs[t] && this._cbs[t](e, n); - }); - } - }), - (r.prototype.onreset = function() { - (this.events = []), this._cbs.onreset && this._cbs.onreset(); - }), - (r.prototype.restart = function() { - this._cbs.onreset && this._cbs.onreset(); - for (var t = 0, e = this.events.length; t < e; t++) - if (this._cbs[this.events[t][0]]) { - var n = this.events[t].length; - 1 === n - ? this._cbs[this.events[t][0]]() - : 2 === n - ? this._cbs[this.events[t][0]](this.events[t][1]) - : this._cbs[this.events[t][0]]( - this.events[t][1], - this.events[t][2] - ); - } - }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t) { - return t.data; - }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t, e, n) { - var u = t.name; - if (!(0, s.default)(u)) return null; - var l = (0, o.default)(t.attribs, e), - c = null; - -1 === a.default.indexOf(u) && (c = (0, i.default)(t.children, n)); - return r.default.createElement(u, l, c); - }); - var r = u(n(0)), - i = u(n(78)), - o = u(n(133)), - a = u(n(310)), - s = u(n(134)); - function u(t) { - return t && t.__esModule ? t : { default: t }; - } - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t) { - return Object.keys(t) - .filter(function(t) { - return (0, o.default)(t); - }) - .reduce(function(e, n) { - var o = n.toLowerCase(), - a = i.default[o] || o; - return ( - (e[a] = (function(t, e) { - r.default - .map(function(t) { - return t.toLowerCase(); - }) - .indexOf(t.toLowerCase()) >= 0 && (e = t); - return e; - })(a, t[n])), - e - ); - }, {}); - }); - var r = a(n(307)), - i = a(n(308)), - o = a(n(134)); - function a(t) { - return t && t.__esModule ? t : { default: t }; - } - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = [ - 'allowfullScreen', - 'async', - 'autoplay', - 'capture', - 'checked', - 'controls', - 'default', - 'defer', - 'disabled', - 'formnovalidate', - 'hidden', - 'loop', - 'multiple', - 'muted', - 'novalidate', - 'open', - 'playsinline', - 'readonly', - 'required', - 'reversed', - 'scoped', - 'seamless', - 'selected', - 'itemscope' - ]); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = { - accept: 'accept', - 'accept-charset': 'acceptCharset', - accesskey: 'accessKey', - action: 'action', - allowfullscreen: 'allowFullScreen', - allowtransparency: 'allowTransparency', - alt: 'alt', - as: 'as', - async: 'async', - autocomplete: 'autoComplete', - autoplay: 'autoPlay', - capture: 'capture', - cellpadding: 'cellPadding', - cellspacing: 'cellSpacing', - charset: 'charSet', - challenge: 'challenge', - checked: 'checked', - cite: 'cite', - classid: 'classID', - class: 'className', - cols: 'cols', - colspan: 'colSpan', - content: 'content', - contenteditable: 'contentEditable', - contextmenu: 'contextMenu', - controls: 'controls', - controlsList: 'controlsList', - coords: 'coords', - crossorigin: 'crossOrigin', - data: 'data', - datetime: 'dateTime', - default: 'default', - defer: 'defer', - dir: 'dir', - disabled: 'disabled', - download: 'download', - draggable: 'draggable', - enctype: 'encType', - form: 'form', - formaction: 'formAction', - formenctype: 'formEncType', - formmethod: 'formMethod', - formnovalidate: 'formNoValidate', - formtarget: 'formTarget', - frameborder: 'frameBorder', - headers: 'headers', - height: 'height', - hidden: 'hidden', - high: 'high', - href: 'href', - hreflang: 'hrefLang', - for: 'htmlFor', - 'http-equiv': 'httpEquiv', - icon: 'icon', - id: 'id', - inputmode: 'inputMode', - integrity: 'integrity', - is: 'is', - keyparams: 'keyParams', - keytype: 'keyType', - kind: 'kind', - label: 'label', - lang: 'lang', - list: 'list', - loop: 'loop', - low: 'low', - manifest: 'manifest', - marginheight: 'marginHeight', - marginwidth: 'marginWidth', - max: 'max', - maxlength: 'maxLength', - media: 'media', - mediagroup: 'mediaGroup', - method: 'method', - min: 'min', - minlength: 'minLength', - multiple: 'multiple', - muted: 'muted', - name: 'name', - nonce: 'nonce', - novalidate: 'noValidate', - open: 'open', - optimum: 'optimum', - pattern: 'pattern', - placeholder: 'placeholder', - playsinline: 'playsInline', - poster: 'poster', - preload: 'preload', - profile: 'profile', - radiogroup: 'radioGroup', - readonly: 'readOnly', - referrerpolicy: 'referrerPolicy', - rel: 'rel', - required: 'required', - reversed: 'reversed', - role: 'role', - rows: 'rows', - rowspan: 'rowSpan', - sandbox: 'sandbox', - scope: 'scope', - scoped: 'scoped', - scrolling: 'scrolling', - seamless: 'seamless', - selected: 'selected', - shape: 'shape', - size: 'size', - sizes: 'sizes', - slot: 'slot', - span: 'span', - spellcheck: 'spellCheck', - src: 'src', - srcdoc: 'srcDoc', - srclang: 'srcLang', - srcset: 'srcSet', - start: 'start', - step: 'step', - style: 'style', - summary: 'summary', - tabindex: 'tabIndex', - target: 'target', - title: 'title', - type: 'type', - usemap: 'useMap', - value: 'value', - width: 'width', - wmode: 'wmode', - wrap: 'wrap', - about: 'about', - datatype: 'datatype', - inlist: 'inlist', - prefix: 'prefix', - property: 'property', - resource: 'resource', - typeof: 'typeof', - vocab: 'vocab', - autocapitalize: 'autoCapitalize', - autocorrect: 'autoCorrect', - autosave: 'autoSave', - color: 'color', - itemprop: 'itemProp', - itemscope: 'itemScope', - itemtype: 'itemType', - itemid: 'itemID', - itemref: 'itemRef', - results: 'results', - security: 'security', - unselectable: 'unselectable' - }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = function(t, e) { - if (Array.isArray(t)) return t; - if (Symbol.iterator in Object(t)) - return (function(t, e) { - var n = [], - r = !0, - i = !1, - o = void 0; - try { - for ( - var a, s = t[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !e || n.length !== e); - r = !0 - ); - } catch (t) { - (i = !0), (o = t); - } finally { - try { - !r && s.return && s.return(); - } finally { - if (i) throw o; - } - } - return n; - })(t, e); - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance' - ); - }; - e.default = function() { - var t = - arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : ''; - if ('' === t) return {}; - return t.split(';').reduce(function(t, e) { - var n = e - .split(/^([^:]+):/) - .filter(function(t, e) { - return e > 0; - }) - .map(function(t) { - return t.trim().toLowerCase(); - }), - i = r(n, 2), - o = i[0], - a = i[1]; - return ( - void 0 === a || - (t[ - (o = o.replace(/^-ms-/, 'ms-').replace(/-(.)/g, function(t, e) { - return e.toUpperCase(); - })) - ] = a), - t - ); - }, {}); - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = [ - 'area', - 'base', - 'br', - 'col', - 'command', - 'embed', - 'hr', - 'img', - 'input', - 'keygen', - 'link', - 'meta', - 'param', - 'source', - 'track', - 'wbr' - ]); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t, e) { - var n = void 0; - t.children.length > 0 && (n = t.children[0].data); - var o = (0, i.default)(t.attribs, e); - return r.default.createElement('style', o, n); - }); - var r = o(n(0)), - i = o(n(133)); - function o(t) { - return t && t.__esModule ? t : { default: t }; - } - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function() { - return null; - }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t) { - var e = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : {}, - n = e.decodeEntities, - o = void 0 === n || n, - a = e.transform, - s = e.preprocessNodes, - u = - void 0 === s - ? function(t) { - return t; - } - : s, - l = u(r.default.parseDOM(t, { decodeEntities: o })); - return (0, i.default)(l, a); - }); - var r = o(n(31)), - i = o(n(78)); - function o(t) { - return t && t.__esModule ? t : { default: t }; - } - }, - function(t, e, n) { - /* @license C3.js v0.7.15 | (c) C3 Team and other contributors | http://c3js.org/ */ - t.exports = (function() { - 'use strict'; - function t(e) { - return (t = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - })(e); - } - function e(t) { - return ( - (function(t) { - if (Array.isArray(t)) { - for (var e = 0, n = new Array(t.length); e < t.length; e++) - n[e] = t[e]; - return n; - } - })(t) || - (function(t) { - if ( - Symbol.iterator in Object(t) || - '[object Arguments]' === Object.prototype.toString.call(t) - ) - return Array.from(t); - })(t) || - (function() { - throw new TypeError( - 'Invalid attempt to spread non-iterable instance' - ); - })() - ); - } - function r(t) { - var e = this; - (e.d3 = window.d3 ? window.d3 : n(148)), - (e.api = t), - (e.config = e.getDefaultConfig()), - (e.data = {}), - (e.cache = {}), - (e.axes = {}); - } - function i(t) { - (this.internal = new r(this)), - this.internal.loadConfig(t), - this.internal.beforeInit(t), - this.internal.init(), - this.internal.afterInit(t), - (function t(e, n, r) { - Object.keys(e).forEach(function(i) { - (n[i] = e[i].bind(r)), - Object.keys(e[i]).length > 0 && t(e[i], n[i], r); - }); - })(i.prototype, this, this); - } - var o = function(t) { - return Math.ceil(t) + 0.5; - }, - a = function(t) { - return 10 * Math.ceil(t / 10); - }, - s = function(t) { - return t[1] - t[0]; - }, - u = function(t, e, n) { - return d(t[e]) ? t[e] : n; - }, - l = function(t) { - var e = c(t), - n = [t.pathSegList.getItem(0), t.pathSegList.getItem(1)]; - return { - x: n[0].x, - y: Math.min(n[0].y, n[1].y), - width: e.width, - height: e.height - }; - }, - c = function(t) { - try { - return t.getBBox(); - } catch (t) { - return { x: 0, y: 0, width: 0, height: 0 }; - } - }, - f = function(t) { - return Array.isArray(t); - }, - d = function(t) { - return void 0 !== t; - }, - h = function(e) { - return ( - null == e || - (v(e) && 0 === e.length) || - ('object' === t(e) && 0 === Object.keys(e).length) - ); - }, - p = function(t) { - return 'function' == typeof t; - }, - g = function(t) { - return 'number' == typeof t; - }, - v = function(t) { - return 'string' == typeof t; - }, - m = function(t) { - return void 0 === t; - }, - y = function(t) { - return t || 0 === t; - }, - b = function(t) { - return !h(t); - }, - _ = function(t) { - return 'string' == typeof t - ? t.replace(//g, '>') - : t; - }, - x = function(t) { - var e = (function(t) { - void 0 === t && (t = window.navigator.userAgent); - var e = t.indexOf('MSIE '); - return e > 0 - ? parseInt(t.substring(e + 5, t.indexOf('.', e)), 10) - : (e = t.indexOf('Trident/')) > 0 && - ((e = t.indexOf('rv:')), - parseInt(t.substring(e + 3, t.indexOf('.', e)), 10)); - })(); - return void 0 === t ? !!e : t === e; - }; - function w(t, e) { - (this.component = t), - (this.params = e || {}), - (this.d3 = t.d3), - (this.scale = this.d3.scaleLinear()), - this.range, - (this.orient = 'bottom'), - (this.innerTickSize = 6), - (this.outerTickSize = this.params.withOuterTick ? 6 : 0), - (this.tickPadding = 3), - (this.tickValues = null), - this.tickFormat, - this.tickArguments, - (this.tickOffset = 0), - (this.tickCulling = !0), - this.tickCentered, - this.tickTextCharSize, - (this.tickTextRotate = this.params.tickTextRotate), - this.tickLength, - (this.axis = this.generateAxis()); - } - (w.prototype.axisX = function(t, e, n) { - t.attr('transform', function(t) { - return 'translate(' + Math.ceil(e(t) + n) + ', 0)'; - }); - }), - (w.prototype.axisY = function(t, e) { - t.attr('transform', function(t) { - return 'translate(0,' + Math.ceil(e(t)) + ')'; - }); - }), - (w.prototype.scaleExtent = function(t) { - var e = t[0], - n = t[t.length - 1]; - return e < n ? [e, n] : [n, e]; - }), - (w.prototype.generateTicks = function(t) { - var e, - n, - r = []; - if (t.ticks) return t.ticks.apply(t, this.tickArguments); - for (n = t.domain(), e = Math.ceil(n[0]); e < n[1]; e++) r.push(e); - return ( - r.length > 0 && r[0] > 0 && r.unshift(r[0] - (r[1] - r[0])), r - ); - }), - (w.prototype.copyScale = function() { - var t, - e = this.scale.copy(); - return ( - this.params.isCategory && - ((t = this.scale.domain()), e.domain([t[0], t[1] - 1])), - e - ); - }), - (w.prototype.textFormatted = function(t) { - var e = this.tickFormat ? this.tickFormat(t) : t; - return void 0 !== e ? e : ''; - }), - (w.prototype.updateRange = function() { - return ( - (this.range = this.scale.rangeExtent - ? this.scale.rangeExtent() - : this.scaleExtent(this.scale.range())), - this.range - ); - }), - (w.prototype.updateTickTextCharSize = function(t) { - var e = this; - if (e.tickTextCharSize) return e.tickTextCharSize; - var n = { h: 11.5, w: 5.5 }; - return ( - t - .select('text') - .text(function(t) { - return e.textFormatted(t); - }) - .each(function(t) { - var r = c(this), - i = e.textFormatted(t), - o = r.height, - a = i ? r.width / i.length : void 0; - o && a && ((n.h = o), (n.w = a)); - }) - .text(''), - (e.tickTextCharSize = n), - n - ); - }), - (w.prototype.isVertical = function() { - return 'left' === this.orient || 'right' === this.orient; - }), - (w.prototype.tspanData = function(t, e, n) { - var r = this.params.tickMultiline - ? this.splitTickText(t, n) - : [].concat(this.textFormatted(t)); - return ( - this.params.tickMultiline && - this.params.tickMultilineMax > 0 && - (r = this.ellipsify(r, this.params.tickMultilineMax)), - r.map(function(t) { - return { index: e, splitted: t, length: r.length }; - }) - ); - }), - (w.prototype.splitTickText = function(t, e) { - var n, - r, - i, - o = this, - a = o.textFormatted(t), - s = o.params.tickWidth; - return '[object Array]' === Object.prototype.toString.call(a) - ? a - : ((!s || s <= 0) && - (s = o.isVertical() - ? 95 - : o.params.isCategory - ? Math.ceil(e(1) - e(0)) - 12 - : 110), - (function t(e, a) { - r = void 0; - for (var u = 1; u < a.length; u++) - if ( - (' ' === a.charAt(u) && (r = u), - (n = a.substr(0, u + 1)), - (i = o.tickTextCharSize.w * n.length), - s < i) - ) - return t( - e.concat(a.substr(0, r || u)), - a.slice(r ? r + 1 : u) - ); - return e.concat(a); - })([], a + '')); - }), - (w.prototype.ellipsify = function(t, e) { - if (t.length <= e) return t; - for (var n = t.slice(0, e), r = 3, i = e - 1; i >= 0; i--) { - var o = n[i].length; - if ( - ((n[i] = n[i].substr(0, o - r).padEnd(o, '.')), (r -= o) <= 0) - ) - break; - } - return n; - }), - (w.prototype.updateTickLength = function() { - this.tickLength = - Math.max(this.innerTickSize, 0) + this.tickPadding; - }), - (w.prototype.lineY2 = function(t) { - var e = this.scale(t) + (this.tickCentered ? 0 : this.tickOffset); - return this.range[0] < e && e < this.range[1] - ? this.innerTickSize - : 0; - }), - (w.prototype.textY = function() { - var t = this.tickTextRotate; - return t - ? 11.5 - (t / 15) * 2.5 * (t > 0 ? 1 : -1) - : this.tickLength; - }), - (w.prototype.textTransform = function() { - var t = this.tickTextRotate; - return t ? 'rotate(' + t + ')' : ''; - }), - (w.prototype.textTextAnchor = function() { - var t = this.tickTextRotate; - return t ? (t > 0 ? 'start' : 'end') : 'middle'; - }), - (w.prototype.tspanDx = function() { - var t = this.tickTextRotate; - return t ? 8 * Math.sin(Math.PI * (t / 180)) : 0; - }), - (w.prototype.tspanDy = function(t, e) { - var n = this.tickTextCharSize.h; - return ( - 0 === e && - (n = this.isVertical() - ? -((t.length - 1) * (this.tickTextCharSize.h / 2) - 3) - : '.71em'), - n - ); - }), - (w.prototype.generateAxis = function() { - var t = this, - e = t.d3, - n = t.params; - function r(i, o) { - var a; - return ( - i.each(function() { - var i, - s, - u, - l = (r.g = e.select(this)), - c = this.__chart__ || t.scale, - f = (this.__chart__ = t.copyScale()), - d = t.tickValues ? t.tickValues : t.generateTicks(f), - h = l.selectAll('.tick').data(d, f), - p = h - .enter() - .insert('g', '.domain') - .attr('class', 'tick') - .style('opacity', 1e-6), - g = h.exit().remove(), - v = h.merge(p); - n.isCategory - ? ((t.tickOffset = Math.ceil((f(1) - f(0)) / 2)), - (s = t.tickCentered ? 0 : t.tickOffset), - (u = t.tickCentered ? t.tickOffset : 0)) - : (t.tickOffset = s = 0), - t.updateRange(), - t.updateTickLength(), - t.updateTickTextCharSize(l.select('.tick')); - var m = v.select('line').merge(p.append('line')), - y = v.select('text').merge(p.append('text')), - b = v - .selectAll('text') - .selectAll('tspan') - .data(function(e, n) { - return t.tspanData(e, n, f); - }), - _ = b - .enter() - .append('tspan') - .merge(b) - .text(function(t) { - return t.splitted; - }); - b.exit().remove(); - var x = l.selectAll('.domain').data([0]), - w = x - .enter() - .append('path') - .merge(x) - .attr('class', 'domain'); - switch (t.orient) { - case 'bottom': - (i = t.axisX), - m - .attr('x1', s) - .attr('x2', s) - .attr('y2', function(e, n) { - return t.lineY2(e, n); - }), - y - .attr('x', 0) - .attr('y', function(e, n) { - return t.textY(e, n); - }) - .attr('transform', function(e, n) { - return t.textTransform(e, n); - }) - .style('text-anchor', function(e, n) { - return t.textTextAnchor(e, n); - }), - _.attr('x', 0) - .attr('dy', function(e, n) { - return t.tspanDy(e, n); - }) - .attr('dx', function(e, n) { - return t.tspanDx(e, n); - }), - w.attr( - 'd', - 'M' + - t.range[0] + - ',' + - t.outerTickSize + - 'V0H' + - t.range[1] + - 'V' + - t.outerTickSize - ); - break; - case 'top': - (i = t.axisX), - m - .attr('x1', s) - .attr('x2', s) - .attr('y2', function(e, n) { - return -1 * t.lineY2(e, n); - }), - y - .attr('x', 0) - .attr('y', function(e, r) { - return ( - -1 * t.textY(e, r) - - (n.isCategory ? 2 : t.tickLength - 2) - ); - }) - .attr('transform', function(e, n) { - return t.textTransform(e, n); - }) - .style('text-anchor', function(e, n) { - return t.textTextAnchor(e, n); - }), - _.attr('x', 0) - .attr('dy', function(e, n) { - return t.tspanDy(e, n); - }) - .attr('dx', function(e, n) { - return t.tspanDx(e, n); - }), - w.attr( - 'd', - 'M' + - t.range[0] + - ',' + - -t.outerTickSize + - 'V0H' + - t.range[1] + - 'V' + - -t.outerTickSize - ); - break; - case 'left': - (i = t.axisY), - m - .attr('x2', -t.innerTickSize) - .attr('y1', u) - .attr('y2', u), - y - .attr('x', -t.tickLength) - .attr('y', t.tickOffset) - .style('text-anchor', 'end'), - _.attr('x', -t.tickLength).attr('dy', function(e, n) { - return t.tspanDy(e, n); - }), - w.attr( - 'd', - 'M' + - -t.outerTickSize + - ',' + - t.range[0] + - 'H0V' + - t.range[1] + - 'H' + - -t.outerTickSize - ); - break; - case 'right': - (i = t.axisY), - m - .attr('x2', t.innerTickSize) - .attr('y1', u) - .attr('y2', u), - y - .attr('x', t.tickLength) - .attr('y', t.tickOffset) - .style('text-anchor', 'start'), - _.attr('x', t.tickLength).attr('dy', function(e, n) { - return t.tspanDy(e, n); - }), - w.attr( - 'd', - 'M' + - t.outerTickSize + - ',' + - t.range[0] + - 'H0V' + - t.range[1] + - 'H' + - t.outerTickSize - ); - } - if (f.rangeBand) { - var S = f, - E = S.rangeBand() / 2; - c = f = function(t) { - return S(t) + E; - }; - } else c.rangeBand ? (c = f) : g.call(i, f, t.tickOffset); - p.call(i, c, t.tickOffset), - (a = (o ? v.transition(o) : v) - .style('opacity', 1) - .call(i, f, t.tickOffset)); - }), - a - ); - } - return ( - (r.scale = function(e) { - return arguments.length ? ((t.scale = e), r) : t.scale; - }), - (r.orient = function(e) { - return arguments.length - ? ((t.orient = - e in { top: 1, right: 1, bottom: 1, left: 1 } - ? e + '' - : 'bottom'), - r) - : t.orient; - }), - (r.tickFormat = function(e) { - return arguments.length - ? ((t.tickFormat = e), r) - : t.tickFormat; - }), - (r.tickCentered = function(e) { - return arguments.length - ? ((t.tickCentered = e), r) - : t.tickCentered; - }), - (r.tickOffset = function() { - return t.tickOffset; - }), - (r.tickInterval = function() { - var e; - return (e = n.isCategory - ? 2 * t.tickOffset - : (r.g - .select('path.domain') - .node() - .getTotalLength() - - 2 * t.outerTickSize) / - r.g.selectAll('line').size()) == - 1 / 0 - ? 0 - : e; - }), - (r.ticks = function() { - return arguments.length - ? ((t.tickArguments = arguments), r) - : t.tickArguments; - }), - (r.tickCulling = function(e) { - return arguments.length - ? ((t.tickCulling = e), r) - : t.tickCulling; - }), - (r.tickValues = function(e) { - if ('function' == typeof e) - t.tickValues = function() { - return e(t.scale.domain()); - }; - else { - if (!arguments.length) return t.tickValues; - t.tickValues = e; - } - return r; - }), - r - ); - }); - var S = { - target: 'c3-target', - chart: 'c3-chart', - chartLine: 'c3-chart-line', - chartLines: 'c3-chart-lines', - chartBar: 'c3-chart-bar', - chartBars: 'c3-chart-bars', - chartText: 'c3-chart-text', - chartTexts: 'c3-chart-texts', - chartArc: 'c3-chart-arc', - chartArcs: 'c3-chart-arcs', - chartArcsTitle: 'c3-chart-arcs-title', - chartArcsBackground: 'c3-chart-arcs-background', - chartArcsGaugeUnit: 'c3-chart-arcs-gauge-unit', - chartArcsGaugeMax: 'c3-chart-arcs-gauge-max', - chartArcsGaugeMin: 'c3-chart-arcs-gauge-min', - selectedCircle: 'c3-selected-circle', - selectedCircles: 'c3-selected-circles', - eventRect: 'c3-event-rect', - eventRects: 'c3-event-rects', - eventRectsSingle: 'c3-event-rects-single', - eventRectsMultiple: 'c3-event-rects-multiple', - zoomRect: 'c3-zoom-rect', - brush: 'c3-brush', - dragZoom: 'c3-drag-zoom', - focused: 'c3-focused', - defocused: 'c3-defocused', - region: 'c3-region', - regions: 'c3-regions', - title: 'c3-title', - tooltipContainer: 'c3-tooltip-container', - tooltip: 'c3-tooltip', - tooltipName: 'c3-tooltip-name', - shape: 'c3-shape', - shapes: 'c3-shapes', - line: 'c3-line', - lines: 'c3-lines', - bar: 'c3-bar', - bars: 'c3-bars', - circle: 'c3-circle', - circles: 'c3-circles', - arc: 'c3-arc', - arcLabelLine: 'c3-arc-label-line', - arcs: 'c3-arcs', - area: 'c3-area', - areas: 'c3-areas', - empty: 'c3-empty', - text: 'c3-text', - texts: 'c3-texts', - gaugeValue: 'c3-gauge-value', - grid: 'c3-grid', - gridLines: 'c3-grid-lines', - xgrid: 'c3-xgrid', - xgrids: 'c3-xgrids', - xgridLine: 'c3-xgrid-line', - xgridLines: 'c3-xgrid-lines', - xgridFocus: 'c3-xgrid-focus', - ygrid: 'c3-ygrid', - ygrids: 'c3-ygrids', - ygridLine: 'c3-ygrid-line', - ygridLines: 'c3-ygrid-lines', - colorScale: 'c3-colorscale', - stanfordElements: 'c3-stanford-elements', - stanfordLine: 'c3-stanford-line', - stanfordLines: 'c3-stanford-lines', - stanfordRegion: 'c3-stanford-region', - stanfordRegions: 'c3-stanford-regions', - stanfordText: 'c3-stanford-text', - stanfordTexts: 'c3-stanford-texts', - axis: 'c3-axis', - axisX: 'c3-axis-x', - axisXLabel: 'c3-axis-x-label', - axisY: 'c3-axis-y', - axisYLabel: 'c3-axis-y-label', - axisY2: 'c3-axis-y2', - axisY2Label: 'c3-axis-y2-label', - legendBackground: 'c3-legend-background', - legendItem: 'c3-legend-item', - legendItemEvent: 'c3-legend-item-event', - legendItemTile: 'c3-legend-item-tile', - legendItemHidden: 'c3-legend-item-hidden', - legendItemFocused: 'c3-legend-item-focused', - dragarea: 'c3-dragarea', - EXPANDED: '_expanded_', - SELECTED: '_selected_', - INCLUDED: '_included_' - }, - E = function t(e) { - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - })(this, t), - (this.owner = e), - (this.d3 = e.d3), - (this.internal = w); - }; - (E.prototype.init = function() { - var t = this.owner, - e = t.config, - n = t.main; - (t.axes.x = n - .append('g') - .attr('class', S.axis + ' ' + S.axisX) - .attr('clip-path', e.axis_x_inner ? '' : t.clipPathForXAxis) - .attr('transform', t.getTranslate('x')) - .style('visibility', e.axis_x_show ? 'visible' : 'hidden')), - t.axes.x - .append('text') - .attr('class', S.axisXLabel) - .attr('transform', e.axis_rotated ? 'rotate(-90)' : '') - .style('text-anchor', this.textAnchorForXAxisLabel.bind(this)), - (t.axes.y = n - .append('g') - .attr('class', S.axis + ' ' + S.axisY) - .attr('clip-path', e.axis_y_inner ? '' : t.clipPathForYAxis) - .attr('transform', t.getTranslate('y')) - .style('visibility', e.axis_y_show ? 'visible' : 'hidden')), - t.axes.y - .append('text') - .attr('class', S.axisYLabel) - .attr('transform', e.axis_rotated ? '' : 'rotate(-90)') - .style('text-anchor', this.textAnchorForYAxisLabel.bind(this)), - (t.axes.y2 = n - .append('g') - .attr('class', S.axis + ' ' + S.axisY2) - .attr('transform', t.getTranslate('y2')) - .style('visibility', e.axis_y2_show ? 'visible' : 'hidden')), - t.axes.y2 - .append('text') - .attr('class', S.axisY2Label) - .attr('transform', e.axis_rotated ? '' : 'rotate(-90)') - .style('text-anchor', this.textAnchorForY2AxisLabel.bind(this)); - }), - (E.prototype.getXAxis = function(t, e, n, r, i, o, a) { - var s = this.owner, - u = s.config, - l = { - isCategory: s.isCategorized(), - withOuterTick: i, - tickMultiline: u.axis_x_tick_multiline, - tickMultilineMax: u.axis_x_tick_multiline - ? Number(u.axis_x_tick_multilineMax) - : 0, - tickWidth: u.axis_x_tick_width, - tickTextRotate: a ? 0 : u.axis_x_tick_rotate, - withoutTransition: o - }, - c = new this.internal(this, l).axis.scale(t).orient(e); - return ( - s.isTimeSeries() && - r && - 'function' != typeof r && - (r = r.map(function(t) { - return s.parseDate(t); - })), - c.tickFormat(n).tickValues(r), - s.isCategorized() && - (c.tickCentered(u.axis_x_tick_centered), - h(u.axis_x_tick_culling) && (u.axis_x_tick_culling = !1)), - c - ); - }), - (E.prototype.updateXAxisTickValues = function(t, e) { - var n, - r = this.owner, - i = r.config; - return ( - (i.axis_x_tick_fit || i.axis_x_tick_count) && - (n = this.generateTickValues( - r.mapTargetsToUniqueXs(t), - i.axis_x_tick_count, - r.isTimeSeries() - )), - e - ? e.tickValues(n) - : (r.xAxis.tickValues(n), r.subXAxis.tickValues(n)), - n - ); - }), - (E.prototype.getYAxis = function(t, e, n, r, i, o, a) { - var s = this.owner, - u = s.config, - l = u['axis_'.concat(t, '_tick_format')]; - !l && - s.isAxisNormalized(t) && - (l = function(t) { - return ''.concat(t, '%'); - }); - var c = new this.internal(this, { - withOuterTick: i, - withoutTransition: o, - tickTextRotate: a ? 0 : u.axis_y_tick_rotate - }).axis - .scale(e) - .orient(n); - return ( - l && c.tickFormat(l), - s.isTimeSeriesY() - ? c.ticks(u.axis_y_tick_time_type, u.axis_y_tick_time_interval) - : c.tickValues(r), - c - ); - }), - (E.prototype.getId = function(t) { - var e = this.owner.config; - return t in e.data_axes ? e.data_axes[t] : 'y'; - }), - (E.prototype.getXAxisTickFormat = function() { - var t = this.owner, - e = t.config, - n = t.isTimeSeries() - ? t.defaultAxisTimeFormat - : t.isCategorized() - ? t.categoryName - : function(t) { - return t; - }; - return ( - e.axis_x_tick_format && - (p(e.axis_x_tick_format) - ? (n = e.axis_x_tick_format) - : t.isTimeSeries() && - (n = function(n) { - return n ? t.axisTimeFormat(e.axis_x_tick_format)(n) : ''; - })), - p(n) - ? function(e) { - return n.call(t, e); - } - : n - ); - }), - (E.prototype.getTickValues = function(t, e) { - return t || (e ? e.tickValues() : void 0); - }), - (E.prototype.getXAxisTickValues = function() { - return this.getTickValues( - this.owner.config.axis_x_tick_values, - this.owner.xAxis - ); - }), - (E.prototype.getYAxisTickValues = function() { - return this.getTickValues( - this.owner.config.axis_y_tick_values, - this.owner.yAxis - ); - }), - (E.prototype.getY2AxisTickValues = function() { - return this.getTickValues( - this.owner.config.axis_y2_tick_values, - this.owner.y2Axis - ); - }), - (E.prototype.getLabelOptionByAxisId = function(t) { - var e, - n = this.owner.config; - return ( - 'y' === t - ? (e = n.axis_y_label) - : 'y2' === t - ? (e = n.axis_y2_label) - : 'x' === t && (e = n.axis_x_label), - e - ); - }), - (E.prototype.getLabelText = function(t) { - var e = this.getLabelOptionByAxisId(t); - return v(e) ? e : e ? e.text : null; - }), - (E.prototype.setLabelText = function(t, e) { - var n = this.owner.config, - r = this.getLabelOptionByAxisId(t); - v(r) - ? 'y' === t - ? (n.axis_y_label = e) - : 'y2' === t - ? (n.axis_y2_label = e) - : 'x' === t && (n.axis_x_label = e) - : r && (r.text = e); - }), - (E.prototype.getLabelPosition = function(e, n) { - var r = this.getLabelOptionByAxisId(e), - i = r && 'object' === t(r) && r.position ? r.position : n; - return { - isInner: i.indexOf('inner') >= 0, - isOuter: i.indexOf('outer') >= 0, - isLeft: i.indexOf('left') >= 0, - isCenter: i.indexOf('center') >= 0, - isRight: i.indexOf('right') >= 0, - isTop: i.indexOf('top') >= 0, - isMiddle: i.indexOf('middle') >= 0, - isBottom: i.indexOf('bottom') >= 0 - }; - }), - (E.prototype.getXAxisLabelPosition = function() { - return this.getLabelPosition( - 'x', - this.owner.config.axis_rotated ? 'inner-top' : 'inner-right' - ); - }), - (E.prototype.getYAxisLabelPosition = function() { - return this.getLabelPosition( - 'y', - this.owner.config.axis_rotated ? 'inner-right' : 'inner-top' - ); - }), - (E.prototype.getY2AxisLabelPosition = function() { - return this.getLabelPosition( - 'y2', - this.owner.config.axis_rotated ? 'inner-right' : 'inner-top' - ); - }), - (E.prototype.getLabelPositionById = function(t) { - return 'y2' === t - ? this.getY2AxisLabelPosition() - : 'y' === t - ? this.getYAxisLabelPosition() - : this.getXAxisLabelPosition(); - }), - (E.prototype.textForXAxisLabel = function() { - return this.getLabelText('x'); - }), - (E.prototype.textForYAxisLabel = function() { - return this.getLabelText('y'); - }), - (E.prototype.textForY2AxisLabel = function() { - return this.getLabelText('y2'); - }), - (E.prototype.xForAxisLabel = function(t, e) { - var n = this.owner; - return t - ? e.isLeft - ? 0 - : e.isCenter - ? n.width / 2 - : n.width - : e.isBottom - ? -n.height - : e.isMiddle - ? -n.height / 2 - : 0; - }), - (E.prototype.dxForAxisLabel = function(t, e) { - return t - ? e.isLeft - ? '0.5em' - : e.isRight - ? '-0.5em' - : '0' - : e.isTop - ? '-0.5em' - : e.isBottom - ? '0.5em' - : '0'; - }), - (E.prototype.textAnchorForAxisLabel = function(t, e) { - return t - ? e.isLeft - ? 'start' - : e.isCenter - ? 'middle' - : 'end' - : e.isBottom - ? 'start' - : e.isMiddle - ? 'middle' - : 'end'; - }), - (E.prototype.xForXAxisLabel = function() { - return this.xForAxisLabel( - !this.owner.config.axis_rotated, - this.getXAxisLabelPosition() - ); - }), - (E.prototype.xForYAxisLabel = function() { - return this.xForAxisLabel( - this.owner.config.axis_rotated, - this.getYAxisLabelPosition() - ); - }), - (E.prototype.xForY2AxisLabel = function() { - return this.xForAxisLabel( - this.owner.config.axis_rotated, - this.getY2AxisLabelPosition() - ); - }), - (E.prototype.dxForXAxisLabel = function() { - return this.dxForAxisLabel( - !this.owner.config.axis_rotated, - this.getXAxisLabelPosition() - ); - }), - (E.prototype.dxForYAxisLabel = function() { - return this.dxForAxisLabel( - this.owner.config.axis_rotated, - this.getYAxisLabelPosition() - ); - }), - (E.prototype.dxForY2AxisLabel = function() { - return this.dxForAxisLabel( - this.owner.config.axis_rotated, - this.getY2AxisLabelPosition() - ); - }), - (E.prototype.dyForXAxisLabel = function() { - var t = this.owner, - e = t.config, - n = this.getXAxisLabelPosition(); - return e.axis_rotated - ? n.isInner - ? '1.2em' - : -25 - (t.config.axis_x_inner ? 0 : this.getMaxTickWidth('x')) - : n.isInner - ? '-0.5em' - : t.getHorizontalAxisHeight('x') - 10; - }), - (E.prototype.dyForYAxisLabel = function() { - var t = this.owner, - e = this.getYAxisLabelPosition(); - return t.config.axis_rotated - ? e.isInner - ? '-0.5em' - : '3em' - : e.isInner - ? '1.2em' - : -10 - - (t.config.axis_y_inner ? 0 : this.getMaxTickWidth('y') + 10); - }), - (E.prototype.dyForY2AxisLabel = function() { - var t = this.owner, - e = this.getY2AxisLabelPosition(); - return t.config.axis_rotated - ? e.isInner - ? '1.2em' - : '-2.2em' - : e.isInner - ? '-0.5em' - : 15 + - (t.config.axis_y2_inner ? 0 : this.getMaxTickWidth('y2') + 15); - }), - (E.prototype.textAnchorForXAxisLabel = function() { - var t = this.owner; - return this.textAnchorForAxisLabel( - !t.config.axis_rotated, - this.getXAxisLabelPosition() - ); - }), - (E.prototype.textAnchorForYAxisLabel = function() { - var t = this.owner; - return this.textAnchorForAxisLabel( - t.config.axis_rotated, - this.getYAxisLabelPosition() - ); - }), - (E.prototype.textAnchorForY2AxisLabel = function() { - var t = this.owner; - return this.textAnchorForAxisLabel( - t.config.axis_rotated, - this.getY2AxisLabelPosition() - ); - }), - (E.prototype.getMaxTickWidth = function(t, e) { - var n, - r, - i, - o, - a = this.owner, - s = 0; - return ( - (e && a.currentMaxTickWidths[t]) || - (a.svg && - ((n = a.filterTargetsToShow(a.data.targets)), - 'y' === t - ? ((r = a.y.copy().domain(a.getYDomain(n, 'y'))), - (i = this.getYAxis( - t, - r, - a.yOrient, - a.yAxisTickValues, - !1, - !0, - !0 - ))) - : 'y2' === t - ? ((r = a.y2.copy().domain(a.getYDomain(n, 'y2'))), - (i = this.getYAxis( - t, - r, - a.y2Orient, - a.y2AxisTickValues, - !1, - !0, - !0 - ))) - : ((r = a.x.copy().domain(a.getXDomain(n))), - (i = this.getXAxis( - r, - a.xOrient, - a.xAxisTickFormat, - a.xAxisTickValues, - !1, - !0, - !0 - )), - this.updateXAxisTickValues(n, i)), - (o = a.d3 - .select('body') - .append('div') - .classed('c3', !0)) - .append('svg') - .style('visibility', 'hidden') - .style('position', 'fixed') - .style('top', 0) - .style('left', 0) - .append('g') - .call(i) - .each(function() { - a.d3 - .select(this) - .selectAll('text') - .each(function() { - var t = c(this); - s < t.width && (s = t.width); - }), - o.remove(); - })), - (a.currentMaxTickWidths[t] = - s <= 0 ? a.currentMaxTickWidths[t] : s)), - a.currentMaxTickWidths[t] - ); - }), - (E.prototype.updateLabels = function(t) { - var e = this.owner, - n = e.main.select('.' + S.axisX + ' .' + S.axisXLabel), - r = e.main.select('.' + S.axisY + ' .' + S.axisYLabel), - i = e.main.select('.' + S.axisY2 + ' .' + S.axisY2Label); - (t ? n.transition() : n) - .attr('x', this.xForXAxisLabel.bind(this)) - .attr('dx', this.dxForXAxisLabel.bind(this)) - .attr('dy', this.dyForXAxisLabel.bind(this)) - .text(this.textForXAxisLabel.bind(this)), - (t ? r.transition() : r) - .attr('x', this.xForYAxisLabel.bind(this)) - .attr('dx', this.dxForYAxisLabel.bind(this)) - .attr('dy', this.dyForYAxisLabel.bind(this)) - .text(this.textForYAxisLabel.bind(this)), - (t ? i.transition() : i) - .attr('x', this.xForY2AxisLabel.bind(this)) - .attr('dx', this.dxForY2AxisLabel.bind(this)) - .attr('dy', this.dyForY2AxisLabel.bind(this)) - .text(this.textForY2AxisLabel.bind(this)); - }), - (E.prototype.getPadding = function(t, e, n, r) { - var i = 'number' == typeof t ? t : t[e]; - return y(i) - ? 'ratio' === t.unit - ? t[e] * r - : this.convertPixelsToAxisPadding(i, r) - : n; - }), - (E.prototype.convertPixelsToAxisPadding = function(t, e) { - var n = this.owner; - return e * (t / (n.config.axis_rotated ? n.width : n.height)); - }), - (E.prototype.generateTickValues = function(t, e, n) { - var r, - i, - o, - a, - s, - u, - l, - c = t; - if (e) - if (1 === (r = p(e) ? e() : e)) c = [t[0]]; - else if (2 === r) c = [t[0], t[t.length - 1]]; - else if (r > 2) { - for ( - a = r - 2, - i = t[0], - s = ((o = t[t.length - 1]) - i) / (a + 1), - c = [i], - u = 0; - u < a; - u++ - ) - (l = +i + s * (u + 1)), c.push(n ? new Date(l) : l); - c.push(o); - } - return ( - n || - (c = c.sort(function(t, e) { - return t - e; - })), - c - ); - }), - (E.prototype.generateTransitions = function(t) { - var e = this.owner.axes; - return { - axisX: t ? e.x.transition().duration(t) : e.x, - axisY: t ? e.y.transition().duration(t) : e.y, - axisY2: t ? e.y2.transition().duration(t) : e.y2, - axisSubX: t ? e.subx.transition().duration(t) : e.subx - }; - }), - (E.prototype.redraw = function(t, e) { - var n = this.owner, - r = t ? n.d3.transition().duration(t) : null; - n.axes.x.style('opacity', e ? 0 : 1).call(n.xAxis, r), - n.axes.y.style('opacity', e ? 0 : 1).call(n.yAxis, r), - n.axes.y2.style('opacity', e ? 0 : 1).call(n.y2Axis, r), - n.axes.subx.style('opacity', e ? 0 : 1).call(n.subXAxis, r); - }); - var k = { - version: '0.7.15', - chart: { - fn: i.prototype, - internal: { - fn: r.prototype, - axis: { fn: E.prototype, internal: { fn: w.prototype } } - } - }, - generate: function(t) { - return new i(t); - } - }; - function A(t, e, n) { - var r = [0.01, 10]; - function i(t) { - return n(e(t)); - } - return ( - e || (e = t.scaleLinear()).range(r), - n || ((n = t.scaleLog()).domain(r), n.nice()), - (i.domain = function(t) { - return arguments.length ? (e.domain(t), i) : e.domain(); - }), - (i.range = function(t) { - return arguments.length ? (n.range(t), i) : n.range(); - }), - (i.ticks = function(t) { - return (function(t, e, n) { - var r, i, o, a; - if (arguments.length < 3) n = 10; - else if (0 === n) return []; - (a = (e - t) / (i = n - 1)), - (o = t), - ((r = new Array(n))[0] = Math.pow(10, o)); - for (var s = 1; s < i; s++) (o += a), (r[s] = Math.pow(10, o)); - return (r[i] = Math.pow(10, e)), r; - })(-2, 1, t || 10).map(function(t) { - return e.invert(t); - }); - }), - (i.copy = function() { - return A(t, e.copy(), n.copy()); - }), - i - ); - } - function T(t) { - return ( - t / Math.pow(10, Math.ceil(Math.log(t) / Math.LN10 - 1e-12)) == 1 - ); - } - (r.prototype.beforeInit = function() {}), - (r.prototype.afterInit = function() {}), - (r.prototype.init = function() { - var t = this, - e = t.config; - if ((t.initParams(), e.data_url)) - t.convertUrlToData( - e.data_url, - e.data_mimeType, - e.data_headers, - e.data_keys, - t.initWithData - ); - else if (e.data_json) - t.initWithData(t.convertJsonToData(e.data_json, e.data_keys)); - else if (e.data_rows) - t.initWithData(t.convertRowsToData(e.data_rows)); - else { - if (!e.data_columns) - throw Error('url or json or rows or columns is required.'); - t.initWithData(t.convertColumnsToData(e.data_columns)); - } - }), - (r.prototype.initParams = function() { - var t = this, - e = t.d3, - n = t.config; - (t.clipId = 'c3-' + +new Date() + '-clip'), - (t.clipIdForXAxis = t.clipId + '-xaxis'), - (t.clipIdForYAxis = t.clipId + '-yaxis'), - (t.clipIdForGrid = t.clipId + '-grid'), - (t.clipIdForSubchart = t.clipId + '-subchart'), - (t.clipPath = t.getClipPath(t.clipId)), - (t.clipPathForXAxis = t.getClipPath(t.clipIdForXAxis)), - (t.clipPathForYAxis = t.getClipPath(t.clipIdForYAxis)), - (t.clipPathForGrid = t.getClipPath(t.clipIdForGrid)), - (t.clipPathForSubchart = t.getClipPath(t.clipIdForSubchart)), - (t.dragStart = null), - (t.dragging = !1), - (t.flowing = !1), - (t.cancelClick = !1), - (t.mouseover = void 0), - (t.transiting = !1), - (t.color = t.generateColor()), - (t.levelColor = t.generateLevelColor()), - (t.dataTimeParse = (n.data_xLocaltime ? e.timeParse : e.utcParse)( - t.config.data_xFormat - )), - (t.axisTimeFormat = n.axis_x_localtime - ? e.timeFormat - : e.utcFormat), - (t.defaultAxisTimeFormat = function(t) { - return t.getMilliseconds() - ? e.timeFormat('.%L')(t) - : t.getSeconds() - ? e.timeFormat(':%S')(t) - : t.getMinutes() - ? e.timeFormat('%I:%M')(t) - : t.getHours() - ? e.timeFormat('%I %p')(t) - : (t.getDay() && 1 !== t.getDate()) || - 1 !== t.getDate() || - t.getMonth() - ? e.timeFormat('%-m/%-d')(t) - : e.timeFormat('%Y/%-m/%-d')(t); - }), - (t.hiddenTargetIds = []), - (t.hiddenLegendIds = []), - (t.focusedTargetIds = []), - (t.defocusedTargetIds = []), - (t.xOrient = n.axis_rotated - ? n.axis_x_inner - ? 'right' - : 'left' - : n.axis_x_inner - ? 'top' - : 'bottom'), - (t.yOrient = n.axis_rotated - ? n.axis_y_inner - ? 'top' - : 'bottom' - : n.axis_y_inner - ? 'right' - : 'left'), - (t.y2Orient = n.axis_rotated - ? n.axis_y2_inner - ? 'bottom' - : 'top' - : n.axis_y2_inner - ? 'left' - : 'right'), - (t.subXOrient = n.axis_rotated ? 'left' : 'bottom'), - (t.isLegendRight = 'right' === n.legend_position), - (t.isLegendInset = 'inset' === n.legend_position), - (t.isLegendTop = - 'top-left' === n.legend_inset_anchor || - 'top-right' === n.legend_inset_anchor), - (t.isLegendLeft = - 'top-left' === n.legend_inset_anchor || - 'bottom-left' === n.legend_inset_anchor), - (t.legendStep = 0), - (t.legendItemWidth = 0), - (t.legendItemHeight = 0), - (t.currentMaxTickWidths = { x: 0, y: 0, y2: 0 }), - (t.rotated_padding_left = 30), - (t.rotated_padding_right = - n.axis_rotated && !n.axis_x_show ? 0 : 30), - (t.rotated_padding_top = 5), - (t.withoutFadeIn = {}), - (t.intervalForObserveInserted = void 0), - (t.axes.subx = e.selectAll([])); - }), - (r.prototype.initChartElements = function() { - this.initBar && this.initBar(), - this.initLine && this.initLine(), - this.initArc && this.initArc(), - this.initGauge && this.initGauge(), - this.initText && this.initText(); - }), - (r.prototype.initWithData = function(t) { - var e, - n, - r = this, - i = r.d3, - o = r.config, - a = !0; - (r.axis = new E(r)), - o.bindto - ? 'function' == typeof o.bindto.node - ? (r.selectChart = o.bindto) - : (r.selectChart = i.select(o.bindto)) - : (r.selectChart = i.selectAll([])), - r.selectChart.empty() && - ((r.selectChart = i - .select(document.createElement('div')) - .style('opacity', 0)), - r.observeInserted(r.selectChart), - (a = !1)), - r.selectChart.html('').classed('c3', !0), - (r.data.xs = {}), - (r.data.targets = r.convertDataToTargets(t)), - o.data_filter && - (r.data.targets = r.data.targets.filter(o.data_filter)), - o.data_hide && - r.addHiddenTargetIds( - !0 === o.data_hide ? r.mapToIds(r.data.targets) : o.data_hide - ), - o.legend_hide && - r.addHiddenLegendIds( - !0 === o.legend_hide - ? r.mapToIds(r.data.targets) - : o.legend_hide - ), - r.isStanfordGraphType() && r.initStanfordData(), - r.updateSizes(), - r.updateScales(), - r.x.domain(i.extent(r.getXDomain(r.data.targets))), - r.y.domain(r.getYDomain(r.data.targets, 'y')), - r.y2.domain(r.getYDomain(r.data.targets, 'y2')), - r.subX.domain(r.x.domain()), - r.subY.domain(r.y.domain()), - r.subY2.domain(r.y2.domain()), - (r.orgXDomain = r.x.domain()), - (r.svg = r.selectChart - .append('svg') - .style('overflow', 'hidden') - .on('mouseenter', function() { - return o.onmouseover.call(r); - }) - .on('mouseleave', function() { - return o.onmouseout.call(r); - })), - r.config.svg_classname && - r.svg.attr('class', r.config.svg_classname), - (e = r.svg.append('defs')), - (r.clipChart = r.appendClip(e, r.clipId)), - (r.clipXAxis = r.appendClip(e, r.clipIdForXAxis)), - (r.clipYAxis = r.appendClip(e, r.clipIdForYAxis)), - (r.clipGrid = r.appendClip(e, r.clipIdForGrid)), - (r.clipSubchart = r.appendClip(e, r.clipIdForSubchart)), - r.updateSvgSize(), - (n = r.main = r.svg - .append('g') - .attr('transform', r.getTranslate('main'))), - r.initPie && r.initPie(), - r.initDragZoom && r.initDragZoom(), - o.subchart_show && r.initSubchart && r.initSubchart(), - r.initTooltip && r.initTooltip(), - r.initLegend && r.initLegend(), - r.initTitle && r.initTitle(), - r.initZoom && r.initZoom(), - r.isStanfordGraphType() && r.drawColorScale(), - o.subchart_show && r.initSubchartBrush && r.initSubchartBrush(), - n - .append('text') - .attr('class', S.text + ' ' + S.empty) - .attr('text-anchor', 'middle') - .attr('dominant-baseline', 'middle'), - r.initRegion(), - r.initGrid(), - n - .append('g') - .attr('clip-path', r.clipPath) - .attr('class', S.chart), - o.grid_lines_front && r.initGridLines(), - r.initStanfordElements(), - r.initEventRect(), - r.initChartElements(), - r.axis.init(), - r.updateTargets(r.data.targets), - o.axis_x_selection && - r.brush.selectionAsValue(r.getDefaultSelection()), - a && - (r.updateDimension(), - r.config.oninit.call(r), - r.redraw({ - withTransition: !1, - withTransform: !0, - withUpdateXDomain: !0, - withUpdateOrgXDomain: !0, - withTransitionForAxis: !1 - })), - r.bindResize(), - r.bindWindowFocus(), - (r.api.element = r.selectChart.node()); - }), - (r.prototype.smoothLines = function(t, e) { - var n = this; - 'grid' === e && - t.each(function() { - var t = n.d3.select(this), - e = t.attr('x1'), - r = t.attr('x2'), - i = t.attr('y1'), - o = t.attr('y2'); - t.attr({ - x1: Math.ceil(e), - x2: Math.ceil(r), - y1: Math.ceil(i), - y2: Math.ceil(o) - }); - }); - }), - (r.prototype.updateSizes = function() { - var t = this, - e = t.config, - n = t.legend ? t.getLegendHeight() : 0, - r = t.legend ? t.getLegendWidth() : 0, - i = t.isLegendRight || t.isLegendInset ? 0 : n, - o = t.hasArcType(), - a = e.axis_rotated || o ? 0 : t.getHorizontalAxisHeight('x'), - s = e.subchart_show && !o ? e.subchart_size_height + a : 0; - (t.currentWidth = t.getCurrentWidth()), - (t.currentHeight = t.getCurrentHeight()), - (t.margin = e.axis_rotated - ? { - top: - t.getHorizontalAxisHeight('y2') + - t.getCurrentPaddingTop(), - right: o ? 0 : t.getCurrentPaddingRight(), - bottom: - t.getHorizontalAxisHeight('y') + - i + - t.getCurrentPaddingBottom(), - left: s + (o ? 0 : t.getCurrentPaddingLeft()) - } - : { - top: 4 + t.getCurrentPaddingTop(), - right: o ? 0 : t.getCurrentPaddingRight(), - bottom: a + s + i + t.getCurrentPaddingBottom(), - left: o ? 0 : t.getCurrentPaddingLeft() - }), - (t.margin2 = e.axis_rotated - ? { - top: t.margin.top, - right: NaN, - bottom: 20 + i, - left: t.rotated_padding_left - } - : { - top: t.currentHeight - s - i, - right: NaN, - bottom: a + i, - left: t.margin.left - }), - (t.margin3 = { top: 0, right: NaN, bottom: 0, left: 0 }), - t.updateSizeForLegend && t.updateSizeForLegend(n, r), - (t.width = t.currentWidth - t.margin.left - t.margin.right), - (t.height = t.currentHeight - t.margin.top - t.margin.bottom), - t.width < 0 && (t.width = 0), - t.height < 0 && (t.height = 0), - (t.width2 = e.axis_rotated - ? t.margin.left - - t.rotated_padding_left - - t.rotated_padding_right - : t.width), - (t.height2 = e.axis_rotated - ? t.height - : t.currentHeight - t.margin2.top - t.margin2.bottom), - t.width2 < 0 && (t.width2 = 0), - t.height2 < 0 && (t.height2 = 0), - (t.arcWidth = t.width - (t.isLegendRight ? r + 10 : 0)), - (t.arcHeight = t.height - (t.isLegendRight ? 0 : 10)), - t.hasType('gauge') && - !e.gauge_fullCircle && - (t.arcHeight += t.height - t.getGaugeLabelHeight()), - t.updateRadius && t.updateRadius(), - t.isLegendRight && - o && - (t.margin3.left = t.arcWidth / 2 + 1.1 * t.radiusExpanded); - }), - (r.prototype.updateTargets = function(t) { - var e = this, - n = e.config; - e.updateTargetsForText(t), - e.updateTargetsForBar(t), - e.updateTargetsForLine(t), - e.hasArcType() && - e.updateTargetsForArc && - e.updateTargetsForArc(t), - n.subchart_show && - e.updateTargetsForSubchart && - e.updateTargetsForSubchart(t), - e.showTargets(); - }), - (r.prototype.showTargets = function() { - var t = this; - t.svg - .selectAll('.' + S.target) - .filter(function(e) { - return t.isTargetToShow(e.id); - }) - .transition() - .duration(t.config.transition_duration) - .style('opacity', 1); - }), - (r.prototype.redraw = function(t, e) { - var n, - r, - i, - o, - a, - s, - l, - c, - f, - d, - h, - p, - g, - v, - m, - y, - b, - _, - x, - w, - E, - k, - A, - T, - C, - O, - P, - M, - L, - D, - j, - R = this, - N = R.main, - z = R.d3, - I = R.config, - F = R.getShapeIndices(R.isAreaType), - V = R.getShapeIndices(R.isBarType), - B = R.getShapeIndices(R.isLineType), - G = R.hasArcType(), - H = R.filterTargetsToShow(R.data.targets), - U = R.xv.bind(R); - if ( - ((n = u((t = t || {}), 'withY', !0)), - (r = u(t, 'withSubchart', !0)), - (i = u(t, 'withTransition', !0)), - (s = u(t, 'withTransform', !1)), - (l = u(t, 'withUpdateXDomain', !1)), - (c = u(t, 'withUpdateOrgXDomain', !1)), - (f = u(t, 'withTrimXDomain', !0)), - (g = u(t, 'withUpdateXAxis', l)), - (d = u(t, 'withLegend', !1)), - (h = u(t, 'withEventRect', !0)), - (p = u(t, 'withDimension', !0)), - (o = u(t, 'withTransitionForExit', i)), - (a = u(t, 'withTransitionForAxis', i)), - (x = i ? I.transition_duration : 0), - (w = o ? x : 0), - (E = a ? x : 0), - (e = e || R.axis.generateTransitions(E)), - d && I.legend_show - ? R.updateLegend(R.mapToIds(R.data.targets), t, e) - : p && R.updateDimension(!0), - R.isCategorized() && - 0 === H.length && - R.x.domain([0, R.axes.x.selectAll('.tick').size()]), - H.length - ? (R.updateXDomain(H, l, c, f), - I.axis_x_tick_values || (O = R.axis.updateXAxisTickValues(H))) - : (R.xAxis.tickValues([]), R.subXAxis.tickValues([])), - I.zoom_rescale && !t.flow && (L = R.x.orgDomain()), - R.y.domain(R.getYDomain(H, 'y', L)), - R.y2.domain(R.getYDomain(H, 'y2', L)), - !I.axis_y_tick_values && - I.axis_y_tick_count && - R.yAxis.tickValues( - R.axis.generateTickValues(R.y.domain(), I.axis_y_tick_count) - ), - !I.axis_y2_tick_values && - I.axis_y2_tick_count && - R.y2Axis.tickValues( - R.axis.generateTickValues(R.y2.domain(), I.axis_y2_tick_count) - ), - R.axis.redraw(E, G), - R.axis.updateLabels(i), - (l || g) && H.length) - ) - if (I.axis_x_tick_culling && O) { - for (P = 1; P < O.length; P++) - if (O.length / P < I.axis_x_tick_culling_max) { - M = P; - break; - } - R.svg - .selectAll('.' + S.axisX + ' .tick text') - .each(function(t) { - var e = O.indexOf(t); - e >= 0 && - z.select(this).style('display', e % M ? 'none' : 'block'); - }); - } else - R.svg - .selectAll('.' + S.axisX + ' .tick text') - .style('display', 'block'); - (v = R.generateDrawArea ? R.generateDrawArea(F, !1) : void 0), - (m = R.generateDrawBar ? R.generateDrawBar(V) : void 0), - (y = R.generateDrawLine ? R.generateDrawLine(B, !1) : void 0), - (b = R.generateXYForText(F, V, B, !0)), - (_ = R.generateXYForText(F, V, B, !1)), - R.updateCircleY(), - (D = (R.config.axis_rotated ? R.circleY : R.circleX).bind(R)), - (j = (R.config.axis_rotated ? R.circleX : R.circleY).bind(R)), - n && - (R.subY.domain(R.getYDomain(H, 'y')), - R.subY2.domain(R.getYDomain(H, 'y2'))), - R.updateXgridFocus(), - N.select('text.' + S.text + '.' + S.empty) - .attr('x', R.width / 2) - .attr('y', R.height / 2) - .text(I.data_empty_label_text) - .transition() - .style('opacity', H.length ? 0 : 1), - h && R.redrawEventRect(), - R.updateGrid(x), - R.updateStanfordElements(x), - R.updateRegion(x), - R.updateBar(w), - R.updateLine(w), - R.updateArea(w), - R.updateCircle(D, j), - R.hasDataLabel() && R.updateText(b, _, w), - R.redrawTitle && R.redrawTitle(), - R.redrawArc && R.redrawArc(x, w, s), - I.subchart_show && - R.redrawSubchart && - R.redrawSubchart(r, e, x, w, F, V, B), - R.isStanfordGraphType() && R.drawColorScale(), - N.selectAll('.' + S.selectedCircles) - .filter(R.isBarType.bind(R)) - .selectAll('circle') - .remove(), - t.flow && - (T = R.generateFlow({ - targets: H, - flow: t.flow, - duration: t.flow.duration, - drawBar: m, - drawLine: y, - drawArea: v, - cx: D, - cy: j, - xv: U, - xForText: b, - yForText: _ - })), - x && R.isTabVisible() - ? ((C = z.transition().duration(x)), - (k = []), - [ - R.redrawBar(m, !0, C), - R.redrawLine(y, !0, C), - R.redrawArea(v, !0, C), - R.redrawCircle(D, j, !0, C), - R.redrawText(b, _, t.flow, !0, C), - R.redrawRegion(!0, C), - R.redrawGrid(!0, C) - ].forEach(function(t) { - t.forEach(function(t) { - k.push(t); - }); - }), - (A = R.generateWait()), - k.forEach(function(t) { - A.add(t); - }), - A(function() { - T && T(), I.onrendered && I.onrendered.call(R); - })) - : (R.redrawBar(m), - R.redrawLine(y), - R.redrawArea(v), - R.redrawCircle(D, j), - R.redrawText(b, _, t.flow), - R.redrawRegion(), - R.redrawGrid(), - T && T(), - I.onrendered && I.onrendered.call(R)), - R.mapToIds(R.data.targets).forEach(function(t) { - R.withoutFadeIn[t] = !0; - }); - }), - (r.prototype.updateAndRedraw = function(t) { - var e, - n = this, - r = n.config; - ((t = t || {}).withTransition = u(t, 'withTransition', !0)), - (t.withTransform = u(t, 'withTransform', !1)), - (t.withLegend = u(t, 'withLegend', !1)), - (t.withUpdateXDomain = u(t, 'withUpdateXDomain', !0)), - (t.withUpdateOrgXDomain = u(t, 'withUpdateOrgXDomain', !0)), - (t.withTransitionForExit = !1), - (t.withTransitionForTransform = u( - t, - 'withTransitionForTransform', - t.withTransition - )), - n.updateSizes(), - (t.withLegend && r.legend_show) || - ((e = n.axis.generateTransitions( - t.withTransitionForAxis ? r.transition_duration : 0 - )), - n.updateScales(), - n.updateSvgSize(), - n.transformAll(t.withTransitionForTransform, e)), - n.redraw(t, e); - }), - (r.prototype.redrawWithoutRescale = function() { - this.redraw({ - withY: !1, - withSubchart: !1, - withEventRect: !1, - withTransitionForAxis: !1 - }); - }), - (r.prototype.isTimeSeries = function() { - return 'timeseries' === this.config.axis_x_type; - }), - (r.prototype.isCategorized = function() { - return this.config.axis_x_type.indexOf('categor') >= 0; - }), - (r.prototype.isCustomX = function() { - var t = this.config; - return !this.isTimeSeries() && (t.data_x || b(t.data_xs)); - }), - (r.prototype.isTimeSeriesY = function() { - return 'timeseries' === this.config.axis_y_type; - }), - (r.prototype.getTranslate = function(t) { - var e, - n, - r = this, - i = r.config; - return ( - 'main' === t - ? ((e = o(r.margin.left)), (n = o(r.margin.top))) - : 'context' === t - ? ((e = o(r.margin2.left)), (n = o(r.margin2.top))) - : 'legend' === t - ? ((e = r.margin3.left), (n = r.margin3.top)) - : 'x' === t - ? ((e = 0), (n = i.axis_rotated ? 0 : r.height)) - : 'y' === t - ? ((e = 0), (n = i.axis_rotated ? r.height : 0)) - : 'y2' === t - ? ((e = i.axis_rotated ? 0 : r.width), - (n = i.axis_rotated ? 1 : 0)) - : 'subx' === t - ? ((e = 0), (n = i.axis_rotated ? 0 : r.height2)) - : 'arc' === t && - ((e = r.arcWidth / 2), - (n = r.arcHeight / 2 - (r.hasType('gauge') ? 6 : 0))), - 'translate(' + e + ',' + n + ')' - ); - }), - (r.prototype.initialOpacity = function(t) { - return null !== t.value && this.withoutFadeIn[t.id] ? 1 : 0; - }), - (r.prototype.initialOpacityForCircle = function(t) { - return null !== t.value && this.withoutFadeIn[t.id] - ? this.opacityForCircle(t) - : 0; - }), - (r.prototype.opacityForCircle = function(t) { - var e = - (p(this.config.point_show) - ? this.config.point_show(t) - : this.config.point_show) || this.isStanfordType(t) - ? 1 - : 0; - return y(t.value) ? (this.isScatterType(t) ? 0.5 : e) : 0; - }), - (r.prototype.opacityForText = function() { - return this.hasDataLabel() ? 1 : 0; - }), - (r.prototype.xx = function(t) { - return t ? this.x(t.x) : null; - }), - (r.prototype.xvCustom = function(t, e) { - var n = this, - r = e ? t[e] : t.value; - return ( - n.isTimeSeries() - ? (r = n.parseDate(t.value)) - : n.isCategorized() && - 'string' == typeof t.value && - (r = n.config.axis_x_categories.indexOf(t.value)), - Math.ceil(n.x(r)) - ); - }), - (r.prototype.yvCustom = function(t, e) { - var n = t.axis && 'y2' === t.axis ? this.y2 : this.y, - r = e ? t[e] : t.value; - return Math.ceil(n(r)); - }), - (r.prototype.xv = function(t) { - var e = this, - n = t.value; - return ( - e.isTimeSeries() - ? (n = e.parseDate(t.value)) - : e.isCategorized() && - 'string' == typeof t.value && - (n = e.config.axis_x_categories.indexOf(t.value)), - Math.ceil(e.x(n)) - ); - }), - (r.prototype.yv = function(t) { - var e = t.axis && 'y2' === t.axis ? this.y2 : this.y; - return Math.ceil(e(t.value)); - }), - (r.prototype.subxx = function(t) { - return t ? this.subX(t.x) : null; - }), - (r.prototype.transformMain = function(t, e) { - var n, - r, - i, - o = this; - e && e.axisX - ? (n = e.axisX) - : ((n = o.main.select('.' + S.axisX)), t && (n = n.transition())), - e && e.axisY - ? (r = e.axisY) - : ((r = o.main.select('.' + S.axisY)), - t && (r = r.transition())), - e && e.axisY2 - ? (i = e.axisY2) - : ((i = o.main.select('.' + S.axisY2)), - t && (i = i.transition())), - (t ? o.main.transition() : o.main).attr( - 'transform', - o.getTranslate('main') - ), - n.attr('transform', o.getTranslate('x')), - r.attr('transform', o.getTranslate('y')), - i.attr('transform', o.getTranslate('y2')), - o.main - .select('.' + S.chartArcs) - .attr('transform', o.getTranslate('arc')); - }), - (r.prototype.transformAll = function(t, e) { - var n = this; - n.transformMain(t, e), - n.config.subchart_show && n.transformContext(t, e), - n.legend && n.transformLegend(t); - }), - (r.prototype.updateSvgSize = function() { - var t = this, - e = t.svg.select('.'.concat(S.brush, ' .overlay')); - t.svg.attr('width', t.currentWidth).attr('height', t.currentHeight), - t.svg - .selectAll(['#' + t.clipId, '#' + t.clipIdForGrid]) - .select('rect') - .attr('width', t.width) - .attr('height', t.height), - t.svg - .select('#' + t.clipIdForXAxis) - .select('rect') - .attr('x', t.getXAxisClipX.bind(t)) - .attr('y', t.getXAxisClipY.bind(t)) - .attr('width', t.getXAxisClipWidth.bind(t)) - .attr('height', t.getXAxisClipHeight.bind(t)), - t.svg - .select('#' + t.clipIdForYAxis) - .select('rect') - .attr('x', t.getYAxisClipX.bind(t)) - .attr('y', t.getYAxisClipY.bind(t)) - .attr('width', t.getYAxisClipWidth.bind(t)) - .attr('height', t.getYAxisClipHeight.bind(t)), - t.svg - .select('#' + t.clipIdForSubchart) - .select('rect') - .attr('width', t.width) - .attr('height', (e.size() && e.attr('height')) || 0), - t.selectChart.style('max-height', t.currentHeight + 'px'); - }), - (r.prototype.updateDimension = function(t) { - var e = this; - t || - (e.config.axis_rotated - ? (e.axes.x.call(e.xAxis), e.axes.subx.call(e.subXAxis)) - : (e.axes.y.call(e.yAxis), e.axes.y2.call(e.y2Axis))), - e.updateSizes(), - e.updateScales(), - e.updateSvgSize(), - e.transformAll(!1); - }), - (r.prototype.observeInserted = function(t) { - var e, - n = this; - 'undefined' != typeof MutationObserver - ? (e = new MutationObserver(function(r) { - r.forEach(function(r) { - 'childList' === r.type && - r.previousSibling && - (e.disconnect(), - (n.intervalForObserveInserted = window.setInterval( - function() { - t.node().parentNode && - (window.clearInterval(n.intervalForObserveInserted), - n.updateDimension(), - n.brush && n.brush.update(), - n.config.oninit.call(n), - n.redraw({ - withTransform: !0, - withUpdateXDomain: !0, - withUpdateOrgXDomain: !0, - withTransition: !1, - withTransitionForTransform: !1, - withLegend: !0 - }), - t.transition().style('opacity', 1)); - }, - 10 - ))); - }); - })).observe(t.node(), { - attributes: !0, - childList: !0, - characterData: !0 - }) - : window.console.error('MutationObserver not defined.'); - }), - (r.prototype.bindResize = function() { - var t = this, - e = t.config; - if ( - ((t.resizeFunction = t.generateResize()), - t.resizeFunction.add(function() { - e.onresize.call(t); - }), - e.resize_auto && - t.resizeFunction.add(function() { - void 0 !== t.resizeTimeout && - window.clearTimeout(t.resizeTimeout), - (t.resizeTimeout = window.setTimeout(function() { - delete t.resizeTimeout, - t.updateAndRedraw({ - withUpdateXDomain: !1, - withUpdateOrgXDomain: !1, - withTransition: !1, - withTransitionForTransform: !1, - withLegend: !0 - }), - t.brush && t.brush.update(); - }, 100)); - }), - t.resizeFunction.add(function() { - e.onresized.call(t); - }), - (t.resizeIfElementDisplayed = function() { - null != t.api && - t.api.element.offsetParent && - t.resizeFunction(); - }), - window.attachEvent) - ) - window.attachEvent('onresize', t.resizeIfElementDisplayed); - else if (window.addEventListener) - window.addEventListener('resize', t.resizeIfElementDisplayed, !1); - else { - var n = window.onresize; - n - ? (n.add && n.remove) || - (n = t.generateResize()).add(window.onresize) - : (n = t.generateResize()), - n.add(t.resizeFunction), - (window.onresize = function() { - t.api.element.offsetParent && n(); - }); - } - }), - (r.prototype.bindWindowFocus = function() { - var t = this; - this.windowFocusHandler || - ((this.windowFocusHandler = function() { - t.redraw(); - }), - window.addEventListener('focus', this.windowFocusHandler)); - }), - (r.prototype.unbindWindowFocus = function() { - window.removeEventListener('focus', this.windowFocusHandler), - delete this.windowFocusHandler; - }), - (r.prototype.generateResize = function() { - var t = []; - function e() { - t.forEach(function(t) { - t(); - }); - } - return ( - (e.add = function(e) { - t.push(e); - }), - (e.remove = function(e) { - for (var n = 0; n < t.length; n++) - if (t[n] === e) { - t.splice(n, 1); - break; - } - }), - e - ); - }), - (r.prototype.endall = function(t, e) { - var n = 0; - t.each(function() { - ++n; - }).on('end', function() { - --n || e.apply(this, arguments); - }); - }), - (r.prototype.generateWait = function() { - var t = this, - e = [], - n = function(n) { - var r = setInterval(function() { - if (t.isTabVisible()) { - var i = 0; - e.forEach(function(t) { - if (t.empty()) i += 1; - else - try { - t.transition(); - } catch (t) { - i += 1; - } - }), - i === e.length && (clearInterval(r), n && n()); - } - }, 50); - }; - return ( - (n.add = function(t) { - e.push(t); - }), - n - ); - }), - (r.prototype.parseDate = function(e) { - var n; - return ( - e instanceof Date - ? (n = e) - : 'string' == typeof e - ? (n = this.dataTimeParse(e)) - : 'object' === t(e) - ? (n = new Date(+e)) - : 'number' != typeof e || isNaN(e) || (n = new Date(+e)), - (n && !isNaN(+n)) || - window.console.error( - "Failed to parse x '" + e + "' to Date object" - ), - n - ); - }), - (r.prototype.isTabVisible = function() { - return !document.hidden; - }), - (r.prototype.getPathBox = l), - (r.prototype.CLASS = S), - 'SVGPathSeg' in window || - ((window.SVGPathSeg = function(t, e, n) { - (this.pathSegType = t), - (this.pathSegTypeAsLetter = e), - (this._owningPathSegList = n); - }), - (window.SVGPathSeg.prototype.classname = 'SVGPathSeg'), - (window.SVGPathSeg.PATHSEG_UNKNOWN = 0), - (window.SVGPathSeg.PATHSEG_CLOSEPATH = 1), - (window.SVGPathSeg.PATHSEG_MOVETO_ABS = 2), - (window.SVGPathSeg.PATHSEG_MOVETO_REL = 3), - (window.SVGPathSeg.PATHSEG_LINETO_ABS = 4), - (window.SVGPathSeg.PATHSEG_LINETO_REL = 5), - (window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS = 6), - (window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL = 7), - (window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS = 8), - (window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL = 9), - (window.SVGPathSeg.PATHSEG_ARC_ABS = 10), - (window.SVGPathSeg.PATHSEG_ARC_REL = 11), - (window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS = 12), - (window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL = 13), - (window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS = 14), - (window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL = 15), - (window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16), - (window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17), - (window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18), - (window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19), - (window.SVGPathSeg.prototype._segmentChanged = function() { - this._owningPathSegList && - this._owningPathSegList.segmentChanged(this); - }), - (window.SVGPathSegClosePath = function(t) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_CLOSEPATH, - 'z', - t - ); - }), - (window.SVGPathSegClosePath.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegClosePath.prototype.toString = function() { - return '[object SVGPathSegClosePath]'; - }), - (window.SVGPathSegClosePath.prototype._asPathString = function() { - return this.pathSegTypeAsLetter; - }), - (window.SVGPathSegClosePath.prototype.clone = function() { - return new window.SVGPathSegClosePath(void 0); - }), - (window.SVGPathSegMovetoAbs = function(t, e, n) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_MOVETO_ABS, - 'M', - t - ), - (this._x = e), - (this._y = n); - }), - (window.SVGPathSegMovetoAbs.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegMovetoAbs.prototype.toString = function() { - return '[object SVGPathSegMovetoAbs]'; - }), - (window.SVGPathSegMovetoAbs.prototype._asPathString = function() { - return this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y; - }), - (window.SVGPathSegMovetoAbs.prototype.clone = function() { - return new window.SVGPathSegMovetoAbs(void 0, this._x, this._y); - }), - Object.defineProperty(window.SVGPathSegMovetoAbs.prototype, 'x', { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - }), - Object.defineProperty(window.SVGPathSegMovetoAbs.prototype, 'y', { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 - }), - (window.SVGPathSegMovetoRel = function(t, e, n) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_MOVETO_REL, - 'm', - t - ), - (this._x = e), - (this._y = n); - }), - (window.SVGPathSegMovetoRel.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegMovetoRel.prototype.toString = function() { - return '[object SVGPathSegMovetoRel]'; - }), - (window.SVGPathSegMovetoRel.prototype._asPathString = function() { - return this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y; - }), - (window.SVGPathSegMovetoRel.prototype.clone = function() { - return new window.SVGPathSegMovetoRel(void 0, this._x, this._y); - }), - Object.defineProperty(window.SVGPathSegMovetoRel.prototype, 'x', { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - }), - Object.defineProperty(window.SVGPathSegMovetoRel.prototype, 'y', { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 - }), - (window.SVGPathSegLinetoAbs = function(t, e, n) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_LINETO_ABS, - 'L', - t - ), - (this._x = e), - (this._y = n); - }), - (window.SVGPathSegLinetoAbs.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegLinetoAbs.prototype.toString = function() { - return '[object SVGPathSegLinetoAbs]'; - }), - (window.SVGPathSegLinetoAbs.prototype._asPathString = function() { - return this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y; - }), - (window.SVGPathSegLinetoAbs.prototype.clone = function() { - return new window.SVGPathSegLinetoAbs(void 0, this._x, this._y); - }), - Object.defineProperty(window.SVGPathSegLinetoAbs.prototype, 'x', { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - }), - Object.defineProperty(window.SVGPathSegLinetoAbs.prototype, 'y', { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 - }), - (window.SVGPathSegLinetoRel = function(t, e, n) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_LINETO_REL, - 'l', - t - ), - (this._x = e), - (this._y = n); - }), - (window.SVGPathSegLinetoRel.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegLinetoRel.prototype.toString = function() { - return '[object SVGPathSegLinetoRel]'; - }), - (window.SVGPathSegLinetoRel.prototype._asPathString = function() { - return this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y; - }), - (window.SVGPathSegLinetoRel.prototype.clone = function() { - return new window.SVGPathSegLinetoRel(void 0, this._x, this._y); - }), - Object.defineProperty(window.SVGPathSegLinetoRel.prototype, 'x', { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - }), - Object.defineProperty(window.SVGPathSegLinetoRel.prototype, 'y', { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 - }), - (window.SVGPathSegCurvetoCubicAbs = function(t, e, n, r, i, o, a) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS, - 'C', - t - ), - (this._x = e), - (this._y = n), - (this._x1 = r), - (this._y1 = i), - (this._x2 = o), - (this._y2 = a); - }), - (window.SVGPathSegCurvetoCubicAbs.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegCurvetoCubicAbs.prototype.toString = function() { - return '[object SVGPathSegCurvetoCubicAbs]'; - }), - (window.SVGPathSegCurvetoCubicAbs.prototype._asPathString = function() { - return ( - this.pathSegTypeAsLetter + - ' ' + - this._x1 + - ' ' + - this._y1 + - ' ' + - this._x2 + - ' ' + - this._y2 + - ' ' + - this._x + - ' ' + - this._y - ); - }), - (window.SVGPathSegCurvetoCubicAbs.prototype.clone = function() { - return new window.SVGPathSegCurvetoCubicAbs( - void 0, - this._x, - this._y, - this._x1, - this._y1, - this._x2, - this._y2 - ); - }), - Object.defineProperty( - window.SVGPathSegCurvetoCubicAbs.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicAbs.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicAbs.prototype, - 'x1', - { - get: function() { - return this._x1; - }, - set: function(t) { - (this._x1 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicAbs.prototype, - 'y1', - { - get: function() { - return this._y1; - }, - set: function(t) { - (this._y1 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicAbs.prototype, - 'x2', - { - get: function() { - return this._x2; - }, - set: function(t) { - (this._x2 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicAbs.prototype, - 'y2', - { - get: function() { - return this._y2; - }, - set: function(t) { - (this._y2 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegCurvetoCubicRel = function(t, e, n, r, i, o, a) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL, - 'c', - t - ), - (this._x = e), - (this._y = n), - (this._x1 = r), - (this._y1 = i), - (this._x2 = o), - (this._y2 = a); - }), - (window.SVGPathSegCurvetoCubicRel.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegCurvetoCubicRel.prototype.toString = function() { - return '[object SVGPathSegCurvetoCubicRel]'; - }), - (window.SVGPathSegCurvetoCubicRel.prototype._asPathString = function() { - return ( - this.pathSegTypeAsLetter + - ' ' + - this._x1 + - ' ' + - this._y1 + - ' ' + - this._x2 + - ' ' + - this._y2 + - ' ' + - this._x + - ' ' + - this._y - ); - }), - (window.SVGPathSegCurvetoCubicRel.prototype.clone = function() { - return new window.SVGPathSegCurvetoCubicRel( - void 0, - this._x, - this._y, - this._x1, - this._y1, - this._x2, - this._y2 - ); - }), - Object.defineProperty( - window.SVGPathSegCurvetoCubicRel.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicRel.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicRel.prototype, - 'x1', - { - get: function() { - return this._x1; - }, - set: function(t) { - (this._x1 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicRel.prototype, - 'y1', - { - get: function() { - return this._y1; - }, - set: function(t) { - (this._y1 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicRel.prototype, - 'x2', - { - get: function() { - return this._x2; - }, - set: function(t) { - (this._x2 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicRel.prototype, - 'y2', - { - get: function() { - return this._y2; - }, - set: function(t) { - (this._y2 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegCurvetoQuadraticAbs = function(t, e, n, r, i) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS, - 'Q', - t - ), - (this._x = e), - (this._y = n), - (this._x1 = r), - (this._y1 = i); - }), - (window.SVGPathSegCurvetoQuadraticAbs.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegCurvetoQuadraticAbs.prototype.toString = function() { - return '[object SVGPathSegCurvetoQuadraticAbs]'; - }), - (window.SVGPathSegCurvetoQuadraticAbs.prototype._asPathString = function() { - return ( - this.pathSegTypeAsLetter + - ' ' + - this._x1 + - ' ' + - this._y1 + - ' ' + - this._x + - ' ' + - this._y - ); - }), - (window.SVGPathSegCurvetoQuadraticAbs.prototype.clone = function() { - return new window.SVGPathSegCurvetoQuadraticAbs( - void 0, - this._x, - this._y, - this._x1, - this._y1 - ); - }), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticAbs.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticAbs.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticAbs.prototype, - 'x1', - { - get: function() { - return this._x1; - }, - set: function(t) { - (this._x1 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticAbs.prototype, - 'y1', - { - get: function() { - return this._y1; - }, - set: function(t) { - (this._y1 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegCurvetoQuadraticRel = function(t, e, n, r, i) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL, - 'q', - t - ), - (this._x = e), - (this._y = n), - (this._x1 = r), - (this._y1 = i); - }), - (window.SVGPathSegCurvetoQuadraticRel.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegCurvetoQuadraticRel.prototype.toString = function() { - return '[object SVGPathSegCurvetoQuadraticRel]'; - }), - (window.SVGPathSegCurvetoQuadraticRel.prototype._asPathString = function() { - return ( - this.pathSegTypeAsLetter + - ' ' + - this._x1 + - ' ' + - this._y1 + - ' ' + - this._x + - ' ' + - this._y - ); - }), - (window.SVGPathSegCurvetoQuadraticRel.prototype.clone = function() { - return new window.SVGPathSegCurvetoQuadraticRel( - void 0, - this._x, - this._y, - this._x1, - this._y1 - ); - }), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticRel.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticRel.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticRel.prototype, - 'x1', - { - get: function() { - return this._x1; - }, - set: function(t) { - (this._x1 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticRel.prototype, - 'y1', - { - get: function() { - return this._y1; - }, - set: function(t) { - (this._y1 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegArcAbs = function(t, e, n, r, i, o, a, s) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_ARC_ABS, - 'A', - t - ), - (this._x = e), - (this._y = n), - (this._r1 = r), - (this._r2 = i), - (this._angle = o), - (this._largeArcFlag = a), - (this._sweepFlag = s); - }), - (window.SVGPathSegArcAbs.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegArcAbs.prototype.toString = function() { - return '[object SVGPathSegArcAbs]'; - }), - (window.SVGPathSegArcAbs.prototype._asPathString = function() { - return ( - this.pathSegTypeAsLetter + - ' ' + - this._r1 + - ' ' + - this._r2 + - ' ' + - this._angle + - ' ' + - (this._largeArcFlag ? '1' : '0') + - ' ' + - (this._sweepFlag ? '1' : '0') + - ' ' + - this._x + - ' ' + - this._y - ); - }), - (window.SVGPathSegArcAbs.prototype.clone = function() { - return new window.SVGPathSegArcAbs( - void 0, - this._x, - this._y, - this._r1, - this._r2, - this._angle, - this._largeArcFlag, - this._sweepFlag - ); - }), - Object.defineProperty(window.SVGPathSegArcAbs.prototype, 'x', { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - }), - Object.defineProperty(window.SVGPathSegArcAbs.prototype, 'y', { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 - }), - Object.defineProperty(window.SVGPathSegArcAbs.prototype, 'r1', { - get: function() { - return this._r1; - }, - set: function(t) { - (this._r1 = t), this._segmentChanged(); - }, - enumerable: !0 - }), - Object.defineProperty(window.SVGPathSegArcAbs.prototype, 'r2', { - get: function() { - return this._r2; - }, - set: function(t) { - (this._r2 = t), this._segmentChanged(); - }, - enumerable: !0 - }), - Object.defineProperty(window.SVGPathSegArcAbs.prototype, 'angle', { - get: function() { - return this._angle; - }, - set: function(t) { - (this._angle = t), this._segmentChanged(); - }, - enumerable: !0 - }), - Object.defineProperty( - window.SVGPathSegArcAbs.prototype, - 'largeArcFlag', - { - get: function() { - return this._largeArcFlag; - }, - set: function(t) { - (this._largeArcFlag = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegArcAbs.prototype, - 'sweepFlag', - { - get: function() { - return this._sweepFlag; - }, - set: function(t) { - (this._sweepFlag = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegArcRel = function(t, e, n, r, i, o, a, s) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_ARC_REL, - 'a', - t - ), - (this._x = e), - (this._y = n), - (this._r1 = r), - (this._r2 = i), - (this._angle = o), - (this._largeArcFlag = a), - (this._sweepFlag = s); - }), - (window.SVGPathSegArcRel.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegArcRel.prototype.toString = function() { - return '[object SVGPathSegArcRel]'; - }), - (window.SVGPathSegArcRel.prototype._asPathString = function() { - return ( - this.pathSegTypeAsLetter + - ' ' + - this._r1 + - ' ' + - this._r2 + - ' ' + - this._angle + - ' ' + - (this._largeArcFlag ? '1' : '0') + - ' ' + - (this._sweepFlag ? '1' : '0') + - ' ' + - this._x + - ' ' + - this._y - ); - }), - (window.SVGPathSegArcRel.prototype.clone = function() { - return new window.SVGPathSegArcRel( - void 0, - this._x, - this._y, - this._r1, - this._r2, - this._angle, - this._largeArcFlag, - this._sweepFlag - ); - }), - Object.defineProperty(window.SVGPathSegArcRel.prototype, 'x', { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - }), - Object.defineProperty(window.SVGPathSegArcRel.prototype, 'y', { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 - }), - Object.defineProperty(window.SVGPathSegArcRel.prototype, 'r1', { - get: function() { - return this._r1; - }, - set: function(t) { - (this._r1 = t), this._segmentChanged(); - }, - enumerable: !0 - }), - Object.defineProperty(window.SVGPathSegArcRel.prototype, 'r2', { - get: function() { - return this._r2; - }, - set: function(t) { - (this._r2 = t), this._segmentChanged(); - }, - enumerable: !0 - }), - Object.defineProperty(window.SVGPathSegArcRel.prototype, 'angle', { - get: function() { - return this._angle; - }, - set: function(t) { - (this._angle = t), this._segmentChanged(); - }, - enumerable: !0 - }), - Object.defineProperty( - window.SVGPathSegArcRel.prototype, - 'largeArcFlag', - { - get: function() { - return this._largeArcFlag; - }, - set: function(t) { - (this._largeArcFlag = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegArcRel.prototype, - 'sweepFlag', - { - get: function() { - return this._sweepFlag; - }, - set: function(t) { - (this._sweepFlag = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegLinetoHorizontalAbs = function(t, e) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS, - 'H', - t - ), - (this._x = e); - }), - (window.SVGPathSegLinetoHorizontalAbs.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegLinetoHorizontalAbs.prototype.toString = function() { - return '[object SVGPathSegLinetoHorizontalAbs]'; - }), - (window.SVGPathSegLinetoHorizontalAbs.prototype._asPathString = function() { - return this.pathSegTypeAsLetter + ' ' + this._x; - }), - (window.SVGPathSegLinetoHorizontalAbs.prototype.clone = function() { - return new window.SVGPathSegLinetoHorizontalAbs(void 0, this._x); - }), - Object.defineProperty( - window.SVGPathSegLinetoHorizontalAbs.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegLinetoHorizontalRel = function(t, e) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL, - 'h', - t - ), - (this._x = e); - }), - (window.SVGPathSegLinetoHorizontalRel.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegLinetoHorizontalRel.prototype.toString = function() { - return '[object SVGPathSegLinetoHorizontalRel]'; - }), - (window.SVGPathSegLinetoHorizontalRel.prototype._asPathString = function() { - return this.pathSegTypeAsLetter + ' ' + this._x; - }), - (window.SVGPathSegLinetoHorizontalRel.prototype.clone = function() { - return new window.SVGPathSegLinetoHorizontalRel(void 0, this._x); - }), - Object.defineProperty( - window.SVGPathSegLinetoHorizontalRel.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegLinetoVerticalAbs = function(t, e) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS, - 'V', - t - ), - (this._y = e); - }), - (window.SVGPathSegLinetoVerticalAbs.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegLinetoVerticalAbs.prototype.toString = function() { - return '[object SVGPathSegLinetoVerticalAbs]'; - }), - (window.SVGPathSegLinetoVerticalAbs.prototype._asPathString = function() { - return this.pathSegTypeAsLetter + ' ' + this._y; - }), - (window.SVGPathSegLinetoVerticalAbs.prototype.clone = function() { - return new window.SVGPathSegLinetoVerticalAbs(void 0, this._y); - }), - Object.defineProperty( - window.SVGPathSegLinetoVerticalAbs.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegLinetoVerticalRel = function(t, e) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL, - 'v', - t - ), - (this._y = e); - }), - (window.SVGPathSegLinetoVerticalRel.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegLinetoVerticalRel.prototype.toString = function() { - return '[object SVGPathSegLinetoVerticalRel]'; - }), - (window.SVGPathSegLinetoVerticalRel.prototype._asPathString = function() { - return this.pathSegTypeAsLetter + ' ' + this._y; - }), - (window.SVGPathSegLinetoVerticalRel.prototype.clone = function() { - return new window.SVGPathSegLinetoVerticalRel(void 0, this._y); - }), - Object.defineProperty( - window.SVGPathSegLinetoVerticalRel.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegCurvetoCubicSmoothAbs = function(t, e, n, r, i) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS, - 'S', - t - ), - (this._x = e), - (this._y = n), - (this._x2 = r), - (this._y2 = i); - }), - (window.SVGPathSegCurvetoCubicSmoothAbs.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegCurvetoCubicSmoothAbs.prototype.toString = function() { - return '[object SVGPathSegCurvetoCubicSmoothAbs]'; - }), - (window.SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString = function() { - return ( - this.pathSegTypeAsLetter + - ' ' + - this._x2 + - ' ' + - this._y2 + - ' ' + - this._x + - ' ' + - this._y - ); - }), - (window.SVGPathSegCurvetoCubicSmoothAbs.prototype.clone = function() { - return new window.SVGPathSegCurvetoCubicSmoothAbs( - void 0, - this._x, - this._y, - this._x2, - this._y2 - ); - }), - Object.defineProperty( - window.SVGPathSegCurvetoCubicSmoothAbs.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicSmoothAbs.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicSmoothAbs.prototype, - 'x2', - { - get: function() { - return this._x2; - }, - set: function(t) { - (this._x2 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicSmoothAbs.prototype, - 'y2', - { - get: function() { - return this._y2; - }, - set: function(t) { - (this._y2 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegCurvetoCubicSmoothRel = function(t, e, n, r, i) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL, - 's', - t - ), - (this._x = e), - (this._y = n), - (this._x2 = r), - (this._y2 = i); - }), - (window.SVGPathSegCurvetoCubicSmoothRel.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegCurvetoCubicSmoothRel.prototype.toString = function() { - return '[object SVGPathSegCurvetoCubicSmoothRel]'; - }), - (window.SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString = function() { - return ( - this.pathSegTypeAsLetter + - ' ' + - this._x2 + - ' ' + - this._y2 + - ' ' + - this._x + - ' ' + - this._y - ); - }), - (window.SVGPathSegCurvetoCubicSmoothRel.prototype.clone = function() { - return new window.SVGPathSegCurvetoCubicSmoothRel( - void 0, - this._x, - this._y, - this._x2, - this._y2 - ); - }), - Object.defineProperty( - window.SVGPathSegCurvetoCubicSmoothRel.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicSmoothRel.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicSmoothRel.prototype, - 'x2', - { - get: function() { - return this._x2; - }, - set: function(t) { - (this._x2 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicSmoothRel.prototype, - 'y2', - { - get: function() { - return this._y2; - }, - set: function(t) { - (this._y2 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegCurvetoQuadraticSmoothAbs = function(t, e, n) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS, - 'T', - t - ), - (this._x = e), - (this._y = n); - }), - (window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString = function() { - return '[object SVGPathSegCurvetoQuadraticSmoothAbs]'; - }), - (window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString = function() { - return this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y; - }), - (window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone = function() { - return new window.SVGPathSegCurvetoQuadraticSmoothAbs( - void 0, - this._x, - this._y - ); - }), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegCurvetoQuadraticSmoothRel = function(t, e, n) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL, - 't', - t - ), - (this._x = e), - (this._y = n); - }), - (window.SVGPathSegCurvetoQuadraticSmoothRel.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString = function() { - return '[object SVGPathSegCurvetoQuadraticSmoothRel]'; - }), - (window.SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString = function() { - return this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y; - }), - (window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone = function() { - return new window.SVGPathSegCurvetoQuadraticSmoothRel( - void 0, - this._x, - this._y - ); - }), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticSmoothRel.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticSmoothRel.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathElement.prototype.createSVGPathSegClosePath = function() { - return new window.SVGPathSegClosePath(void 0); - }), - (window.SVGPathElement.prototype.createSVGPathSegMovetoAbs = function( - t, - e - ) { - return new window.SVGPathSegMovetoAbs(void 0, t, e); - }), - (window.SVGPathElement.prototype.createSVGPathSegMovetoRel = function( - t, - e - ) { - return new window.SVGPathSegMovetoRel(void 0, t, e); - }), - (window.SVGPathElement.prototype.createSVGPathSegLinetoAbs = function( - t, - e - ) { - return new window.SVGPathSegLinetoAbs(void 0, t, e); - }), - (window.SVGPathElement.prototype.createSVGPathSegLinetoRel = function( - t, - e - ) { - return new window.SVGPathSegLinetoRel(void 0, t, e); - }), - (window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs = function( - t, - e, - n, - r, - i, - o - ) { - return new window.SVGPathSegCurvetoCubicAbs( - void 0, - t, - e, - n, - r, - i, - o - ); - }), - (window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel = function( - t, - e, - n, - r, - i, - o - ) { - return new window.SVGPathSegCurvetoCubicRel( - void 0, - t, - e, - n, - r, - i, - o - ); - }), - (window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs = function( - t, - e, - n, - r - ) { - return new window.SVGPathSegCurvetoQuadraticAbs( - void 0, - t, - e, - n, - r - ); - }), - (window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel = function( - t, - e, - n, - r - ) { - return new window.SVGPathSegCurvetoQuadraticRel( - void 0, - t, - e, - n, - r - ); - }), - (window.SVGPathElement.prototype.createSVGPathSegArcAbs = function( - t, - e, - n, - r, - i, - o, - a - ) { - return new window.SVGPathSegArcAbs(void 0, t, e, n, r, i, o, a); - }), - (window.SVGPathElement.prototype.createSVGPathSegArcRel = function( - t, - e, - n, - r, - i, - o, - a - ) { - return new window.SVGPathSegArcRel(void 0, t, e, n, r, i, o, a); - }), - (window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs = function( - t - ) { - return new window.SVGPathSegLinetoHorizontalAbs(void 0, t); - }), - (window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel = function( - t - ) { - return new window.SVGPathSegLinetoHorizontalRel(void 0, t); - }), - (window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs = function( - t - ) { - return new window.SVGPathSegLinetoVerticalAbs(void 0, t); - }), - (window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel = function( - t - ) { - return new window.SVGPathSegLinetoVerticalRel(void 0, t); - }), - (window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs = function( - t, - e, - n, - r - ) { - return new window.SVGPathSegCurvetoCubicSmoothAbs( - void 0, - t, - e, - n, - r - ); - }), - (window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel = function( - t, - e, - n, - r - ) { - return new window.SVGPathSegCurvetoCubicSmoothRel( - void 0, - t, - e, - n, - r - ); - }), - (window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs = function( - t, - e - ) { - return new window.SVGPathSegCurvetoQuadraticSmoothAbs( - void 0, - t, - e - ); - }), - (window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel = function( - t, - e - ) { - return new window.SVGPathSegCurvetoQuadraticSmoothRel( - void 0, - t, - e - ); - }), - 'getPathSegAtLength' in window.SVGPathElement.prototype || - (window.SVGPathElement.prototype.getPathSegAtLength = function( - t - ) { - if (void 0 === t || !isFinite(t)) throw 'Invalid arguments.'; - var e = document.createElementNS( - 'http://www.w3.org/2000/svg', - 'path' - ); - e.setAttribute('d', this.getAttribute('d')); - var n = e.pathSegList.numberOfItems - 1; - if (n <= 0) return 0; - do { - if ((e.pathSegList.removeItem(n), t > e.getTotalLength())) - break; - n--; - } while (n > 0); - return n; - })), - 'SVGPathSegList' in window || - ((window.SVGPathSegList = function(t) { - (this._pathElement = t), - (this._list = this._parsePath( - this._pathElement.getAttribute('d') - )), - (this._mutationObserverConfig = { - attributes: !0, - attributeFilter: ['d'] - }), - (this._pathElementMutationObserver = new MutationObserver( - this._updateListFromPathMutations.bind(this) - )), - this._pathElementMutationObserver.observe( - this._pathElement, - this._mutationObserverConfig - ); - }), - (window.SVGPathSegList.prototype.classname = 'SVGPathSegList'), - Object.defineProperty( - window.SVGPathSegList.prototype, - 'numberOfItems', - { - get: function() { - return this._checkPathSynchronizedToList(), this._list.length; - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathElement.prototype, - 'pathSegList', - { - get: function() { - return ( - this._pathSegList || - (this._pathSegList = new window.SVGPathSegList(this)), - this._pathSegList - ); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathElement.prototype, - 'normalizedPathSegList', - { - get: function() { - return this.pathSegList; - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathElement.prototype, - 'animatedPathSegList', - { - get: function() { - return this.pathSegList; - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathElement.prototype, - 'animatedNormalizedPathSegList', - { - get: function() { - return this.pathSegList; - }, - enumerable: !0 - } - ), - (window.SVGPathSegList.prototype._checkPathSynchronizedToList = function() { - this._updateListFromPathMutations( - this._pathElementMutationObserver.takeRecords() - ); - }), - (window.SVGPathSegList.prototype._updateListFromPathMutations = function( - t - ) { - if (this._pathElement) { - var e = !1; - t.forEach(function(t) { - 'd' == t.attributeName && (e = !0); - }), - e && - (this._list = this._parsePath( - this._pathElement.getAttribute('d') - )); - } - }), - (window.SVGPathSegList.prototype._writeListToPath = function() { - this._pathElementMutationObserver.disconnect(), - this._pathElement.setAttribute( - 'd', - window.SVGPathSegList._pathSegArrayAsString(this._list) - ), - this._pathElementMutationObserver.observe( - this._pathElement, - this._mutationObserverConfig - ); - }), - (window.SVGPathSegList.prototype.segmentChanged = function(t) { - this._writeListToPath(); - }), - (window.SVGPathSegList.prototype.clear = function() { - this._checkPathSynchronizedToList(), - this._list.forEach(function(t) { - t._owningPathSegList = null; - }), - (this._list = []), - this._writeListToPath(); - }), - (window.SVGPathSegList.prototype.initialize = function(t) { - return ( - this._checkPathSynchronizedToList(), - (this._list = [t]), - (t._owningPathSegList = this), - this._writeListToPath(), - t - ); - }), - (window.SVGPathSegList.prototype._checkValidIndex = function(t) { - if (isNaN(t) || t < 0 || t >= this.numberOfItems) - throw 'INDEX_SIZE_ERR'; - }), - (window.SVGPathSegList.prototype.getItem = function(t) { - return ( - this._checkPathSynchronizedToList(), - this._checkValidIndex(t), - this._list[t] - ); - }), - (window.SVGPathSegList.prototype.insertItemBefore = function(t, e) { - return ( - this._checkPathSynchronizedToList(), - e > this.numberOfItems && (e = this.numberOfItems), - t._owningPathSegList && (t = t.clone()), - this._list.splice(e, 0, t), - (t._owningPathSegList = this), - this._writeListToPath(), - t - ); - }), - (window.SVGPathSegList.prototype.replaceItem = function(t, e) { - return ( - this._checkPathSynchronizedToList(), - t._owningPathSegList && (t = t.clone()), - this._checkValidIndex(e), - (this._list[e] = t), - (t._owningPathSegList = this), - this._writeListToPath(), - t - ); - }), - (window.SVGPathSegList.prototype.removeItem = function(t) { - this._checkPathSynchronizedToList(), this._checkValidIndex(t); - var e = this._list[t]; - return this._list.splice(t, 1), this._writeListToPath(), e; - }), - (window.SVGPathSegList.prototype.appendItem = function(t) { - return ( - this._checkPathSynchronizedToList(), - t._owningPathSegList && (t = t.clone()), - this._list.push(t), - (t._owningPathSegList = this), - this._writeListToPath(), - t - ); - }), - (window.SVGPathSegList._pathSegArrayAsString = function(t) { - var e = '', - n = !0; - return ( - t.forEach(function(t) { - n - ? ((n = !1), (e += t._asPathString())) - : (e += ' ' + t._asPathString()); - }), - e - ); - }), - (window.SVGPathSegList.prototype._parsePath = function(t) { - if (!t || 0 == t.length) return []; - var e = this, - n = function() { - this.pathSegList = []; - }; - n.prototype.appendSegment = function(t) { - this.pathSegList.push(t); - }; - var r = function(t) { - (this._string = t), - (this._currentIndex = 0), - (this._endIndex = this._string.length), - (this._previousCommand = window.SVGPathSeg.PATHSEG_UNKNOWN), - this._skipOptionalSpaces(); - }; - (r.prototype._isCurrentSpace = function() { - var t = this._string[this._currentIndex]; - return ( - t <= ' ' && - (' ' == t || '\n' == t || '\t' == t || '\r' == t || '\f' == t) - ); - }), - (r.prototype._skipOptionalSpaces = function() { - for ( - ; - this._currentIndex < this._endIndex && - this._isCurrentSpace(); - - ) - this._currentIndex++; - return this._currentIndex < this._endIndex; - }), - (r.prototype._skipOptionalSpacesOrDelimiter = function() { - return ( - !( - this._currentIndex < this._endIndex && - !this._isCurrentSpace() && - ',' != this._string.charAt(this._currentIndex) - ) && - (this._skipOptionalSpaces() && - this._currentIndex < this._endIndex && - ',' == this._string.charAt(this._currentIndex) && - (this._currentIndex++, this._skipOptionalSpaces()), - this._currentIndex < this._endIndex) - ); - }), - (r.prototype.hasMoreData = function() { - return this._currentIndex < this._endIndex; - }), - (r.prototype.peekSegmentType = function() { - var t = this._string[this._currentIndex]; - return this._pathSegTypeFromChar(t); - }), - (r.prototype._pathSegTypeFromChar = function(t) { - switch (t) { - case 'Z': - case 'z': - return window.SVGPathSeg.PATHSEG_CLOSEPATH; - case 'M': - return window.SVGPathSeg.PATHSEG_MOVETO_ABS; - case 'm': - return window.SVGPathSeg.PATHSEG_MOVETO_REL; - case 'L': - return window.SVGPathSeg.PATHSEG_LINETO_ABS; - case 'l': - return window.SVGPathSeg.PATHSEG_LINETO_REL; - case 'C': - return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS; - case 'c': - return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL; - case 'Q': - return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS; - case 'q': - return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL; - case 'A': - return window.SVGPathSeg.PATHSEG_ARC_ABS; - case 'a': - return window.SVGPathSeg.PATHSEG_ARC_REL; - case 'H': - return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS; - case 'h': - return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL; - case 'V': - return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS; - case 'v': - return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL; - case 'S': - return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS; - case 's': - return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL; - case 'T': - return window.SVGPathSeg - .PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS; - case 't': - return window.SVGPathSeg - .PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL; - default: - return window.SVGPathSeg.PATHSEG_UNKNOWN; - } - }), - (r.prototype._nextCommandHelper = function(t, e) { - return ('+' == t || - '-' == t || - '.' == t || - (t >= '0' && t <= '9')) && - e != window.SVGPathSeg.PATHSEG_CLOSEPATH - ? e == window.SVGPathSeg.PATHSEG_MOVETO_ABS - ? window.SVGPathSeg.PATHSEG_LINETO_ABS - : e == window.SVGPathSeg.PATHSEG_MOVETO_REL - ? window.SVGPathSeg.PATHSEG_LINETO_REL - : e - : window.SVGPathSeg.PATHSEG_UNKNOWN; - }), - (r.prototype.initialCommandIsMoveTo = function() { - if (!this.hasMoreData()) return !0; - var t = this.peekSegmentType(); - return ( - t == window.SVGPathSeg.PATHSEG_MOVETO_ABS || - t == window.SVGPathSeg.PATHSEG_MOVETO_REL - ); - }), - (r.prototype._parseNumber = function() { - var t = 0, - e = 0, - n = 1, - r = 0, - i = 1, - o = 1, - a = this._currentIndex; - if ( - (this._skipOptionalSpaces(), - this._currentIndex < this._endIndex && - '+' == this._string.charAt(this._currentIndex) - ? this._currentIndex++ - : this._currentIndex < this._endIndex && - '-' == this._string.charAt(this._currentIndex) && - (this._currentIndex++, (i = -1)), - !( - this._currentIndex == this._endIndex || - ((this._string.charAt(this._currentIndex) < '0' || - this._string.charAt(this._currentIndex) > '9') && - '.' != this._string.charAt(this._currentIndex)) - )) - ) { - for ( - var s = this._currentIndex; - this._currentIndex < this._endIndex && - this._string.charAt(this._currentIndex) >= '0' && - this._string.charAt(this._currentIndex) <= '9'; - - ) - this._currentIndex++; - if (this._currentIndex != s) - for (var u = this._currentIndex - 1, l = 1; u >= s; ) - (e += l * (this._string.charAt(u--) - '0')), (l *= 10); - if ( - this._currentIndex < this._endIndex && - '.' == this._string.charAt(this._currentIndex) - ) { - if ( - (this._currentIndex++, - this._currentIndex >= this._endIndex || - this._string.charAt(this._currentIndex) < '0' || - this._string.charAt(this._currentIndex) > '9') - ) - return; - for ( - ; - this._currentIndex < this._endIndex && - this._string.charAt(this._currentIndex) >= '0' && - this._string.charAt(this._currentIndex) <= '9'; - - ) - (n *= 10), - (r += - (this._string.charAt(this._currentIndex) - '0') / - n), - (this._currentIndex += 1); - } - if ( - this._currentIndex != a && - this._currentIndex + 1 < this._endIndex && - ('e' == this._string.charAt(this._currentIndex) || - 'E' == this._string.charAt(this._currentIndex)) && - 'x' != this._string.charAt(this._currentIndex + 1) && - 'm' != this._string.charAt(this._currentIndex + 1) - ) { - if ( - (this._currentIndex++, - '+' == this._string.charAt(this._currentIndex) - ? this._currentIndex++ - : '-' == this._string.charAt(this._currentIndex) && - (this._currentIndex++, (o = -1)), - this._currentIndex >= this._endIndex || - this._string.charAt(this._currentIndex) < '0' || - this._string.charAt(this._currentIndex) > '9') - ) - return; - for ( - ; - this._currentIndex < this._endIndex && - this._string.charAt(this._currentIndex) >= '0' && - this._string.charAt(this._currentIndex) <= '9'; - - ) - (t *= 10), - (t += this._string.charAt(this._currentIndex) - '0'), - this._currentIndex++; - } - var c = e + r; - if ( - ((c *= i), - t && (c *= Math.pow(10, o * t)), - a != this._currentIndex) - ) - return this._skipOptionalSpacesOrDelimiter(), c; - } - }), - (r.prototype._parseArcFlag = function() { - if (!(this._currentIndex >= this._endIndex)) { - var t = !1, - e = this._string.charAt(this._currentIndex++); - if ('0' == e) t = !1; - else { - if ('1' != e) return; - t = !0; - } - return this._skipOptionalSpacesOrDelimiter(), t; - } - }), - (r.prototype.parseSegment = function() { - var t = this._string[this._currentIndex], - n = this._pathSegTypeFromChar(t); - if (n == window.SVGPathSeg.PATHSEG_UNKNOWN) { - if ( - this._previousCommand == window.SVGPathSeg.PATHSEG_UNKNOWN - ) - return null; - if ( - (n = this._nextCommandHelper(t, this._previousCommand)) == - window.SVGPathSeg.PATHSEG_UNKNOWN - ) - return null; - } else this._currentIndex++; - switch (((this._previousCommand = n), n)) { - case window.SVGPathSeg.PATHSEG_MOVETO_REL: - return new window.SVGPathSegMovetoRel( - e, - this._parseNumber(), - this._parseNumber() - ); - case window.SVGPathSeg.PATHSEG_MOVETO_ABS: - return new window.SVGPathSegMovetoAbs( - e, - this._parseNumber(), - this._parseNumber() - ); - case window.SVGPathSeg.PATHSEG_LINETO_REL: - return new window.SVGPathSegLinetoRel( - e, - this._parseNumber(), - this._parseNumber() - ); - case window.SVGPathSeg.PATHSEG_LINETO_ABS: - return new window.SVGPathSegLinetoAbs( - e, - this._parseNumber(), - this._parseNumber() - ); - case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL: - return new window.SVGPathSegLinetoHorizontalRel( - e, - this._parseNumber() - ); - case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS: - return new window.SVGPathSegLinetoHorizontalAbs( - e, - this._parseNumber() - ); - case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL: - return new window.SVGPathSegLinetoVerticalRel( - e, - this._parseNumber() - ); - case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS: - return new window.SVGPathSegLinetoVerticalAbs( - e, - this._parseNumber() - ); - case window.SVGPathSeg.PATHSEG_CLOSEPATH: - return ( - this._skipOptionalSpaces(), - new window.SVGPathSegClosePath(e) - ); - case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL: - var r = { - x1: this._parseNumber(), - y1: this._parseNumber(), - x2: this._parseNumber(), - y2: this._parseNumber(), - x: this._parseNumber(), - y: this._parseNumber() - }; - return new window.SVGPathSegCurvetoCubicRel( - e, - r.x, - r.y, - r.x1, - r.y1, - r.x2, - r.y2 - ); - case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS: - return ( - (r = { - x1: this._parseNumber(), - y1: this._parseNumber(), - x2: this._parseNumber(), - y2: this._parseNumber(), - x: this._parseNumber(), - y: this._parseNumber() - }), - new window.SVGPathSegCurvetoCubicAbs( - e, - r.x, - r.y, - r.x1, - r.y1, - r.x2, - r.y2 - ) - ); - case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL: - return ( - (r = { - x2: this._parseNumber(), - y2: this._parseNumber(), - x: this._parseNumber(), - y: this._parseNumber() - }), - new window.SVGPathSegCurvetoCubicSmoothRel( - e, - r.x, - r.y, - r.x2, - r.y2 - ) - ); - case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: - return ( - (r = { - x2: this._parseNumber(), - y2: this._parseNumber(), - x: this._parseNumber(), - y: this._parseNumber() - }), - new window.SVGPathSegCurvetoCubicSmoothAbs( - e, - r.x, - r.y, - r.x2, - r.y2 - ) - ); - case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL: - return ( - (r = { - x1: this._parseNumber(), - y1: this._parseNumber(), - x: this._parseNumber(), - y: this._parseNumber() - }), - new window.SVGPathSegCurvetoQuadraticRel( - e, - r.x, - r.y, - r.x1, - r.y1 - ) - ); - case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS: - return ( - (r = { - x1: this._parseNumber(), - y1: this._parseNumber(), - x: this._parseNumber(), - y: this._parseNumber() - }), - new window.SVGPathSegCurvetoQuadraticAbs( - e, - r.x, - r.y, - r.x1, - r.y1 - ) - ); - case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: - return new window.SVGPathSegCurvetoQuadraticSmoothRel( - e, - this._parseNumber(), - this._parseNumber() - ); - case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: - return new window.SVGPathSegCurvetoQuadraticSmoothAbs( - e, - this._parseNumber(), - this._parseNumber() - ); - case window.SVGPathSeg.PATHSEG_ARC_REL: - return ( - (r = { - x1: this._parseNumber(), - y1: this._parseNumber(), - arcAngle: this._parseNumber(), - arcLarge: this._parseArcFlag(), - arcSweep: this._parseArcFlag(), - x: this._parseNumber(), - y: this._parseNumber() - }), - new window.SVGPathSegArcRel( - e, - r.x, - r.y, - r.x1, - r.y1, - r.arcAngle, - r.arcLarge, - r.arcSweep - ) - ); - case window.SVGPathSeg.PATHSEG_ARC_ABS: - return ( - (r = { - x1: this._parseNumber(), - y1: this._parseNumber(), - arcAngle: this._parseNumber(), - arcLarge: this._parseArcFlag(), - arcSweep: this._parseArcFlag(), - x: this._parseNumber(), - y: this._parseNumber() - }), - new window.SVGPathSegArcAbs( - e, - r.x, - r.y, - r.x1, - r.y1, - r.arcAngle, - r.arcLarge, - r.arcSweep - ) - ); - default: - throw 'Unknown path seg type.'; - } - }); - var i = new n(), - o = new r(t); - if (!o.initialCommandIsMoveTo()) return []; - for (; o.hasMoreData(); ) { - var a = o.parseSegment(); - if (!a) return []; - i.appendSegment(a); - } - return i.pathSegList; - })), - String.prototype.padEnd || - (String.prototype.padEnd = function(t, e) { - return ( - (t >>= 0), - (e = String(void 0 !== e ? e : ' ')), - this.length > t - ? String(this) - : ((t -= this.length) > e.length && - (e += e.repeat(t / e.length)), - String(this) + e.slice(0, t)) - ); - }), - 'function' != typeof Object.assign && - Object.defineProperty(Object, 'assign', { - value: function(t, e) { - if (null == t) - throw new TypeError( - 'Cannot convert undefined or null to object' - ); - for (var n = Object(t), r = 1; r < arguments.length; r++) { - var i = arguments[r]; - if (null != i) - for (var o in i) - Object.prototype.hasOwnProperty.call(i, o) && - (n[o] = i[o]); - } - return n; - }, - writable: !0, - configurable: !0 - }), - (i.prototype.axis = function() {}), - (i.prototype.axis.labels = function(t) { - var e = this.internal; - arguments.length && - (Object.keys(t).forEach(function(n) { - e.axis.setLabelText(n, t[n]); - }), - e.axis.updateLabels()); - }), - (i.prototype.axis.max = function(e) { - var n = this.internal, - r = n.config; - if (!arguments.length) - return { x: r.axis_x_max, y: r.axis_y_max, y2: r.axis_y2_max }; - 'object' === t(e) - ? (y(e.x) && (r.axis_x_max = e.x), - y(e.y) && (r.axis_y_max = e.y), - y(e.y2) && (r.axis_y2_max = e.y2)) - : (r.axis_y_max = r.axis_y2_max = e), - n.redraw({ withUpdateOrgXDomain: !0, withUpdateXDomain: !0 }); - }), - (i.prototype.axis.min = function(e) { - var n = this.internal, - r = n.config; - if (!arguments.length) - return { x: r.axis_x_min, y: r.axis_y_min, y2: r.axis_y2_min }; - 'object' === t(e) - ? (y(e.x) && (r.axis_x_min = e.x), - y(e.y) && (r.axis_y_min = e.y), - y(e.y2) && (r.axis_y2_min = e.y2)) - : (r.axis_y_min = r.axis_y2_min = e), - n.redraw({ withUpdateOrgXDomain: !0, withUpdateXDomain: !0 }); - }), - (i.prototype.axis.range = function(t) { - if (!arguments.length) - return { max: this.axis.max(), min: this.axis.min() }; - d(t.max) && this.axis.max(t.max), d(t.min) && this.axis.min(t.min); - }), - (i.prototype.axis.types = function(t) { - var e = this.internal; - if (void 0 === t) - return { y: e.config.axis_y_type, y2: e.config.axis_y2_type }; - d(t.y) && (e.config.axis_y_type = t.y), - d(t.y2) && (e.config.axis_y2_type = t.y2), - e.updateScales(), - e.redraw(); - }), - (i.prototype.category = function(t, e) { - var n = this.internal, - r = n.config; - return ( - arguments.length > 1 && - ((r.axis_x_categories[t] = e), n.redraw()), - r.axis_x_categories[t] - ); - }), - (i.prototype.categories = function(t) { - var e = this.internal, - n = e.config; - return arguments.length - ? ((n.axis_x_categories = t), e.redraw(), n.axis_x_categories) - : n.axis_x_categories; - }), - (i.prototype.resize = function(t) { - var e = this.internal.config; - (e.size_width = t ? t.width : null), - (e.size_height = t ? t.height : null), - this.flush(); - }), - (i.prototype.flush = function() { - this.internal.updateAndRedraw({ - withLegend: !0, - withTransition: !1, - withTransitionForTransform: !1 - }); - }), - (i.prototype.destroy = function() { - var t = this.internal; - if ( - (window.clearInterval(t.intervalForObserveInserted), - void 0 !== t.resizeTimeout && - window.clearTimeout(t.resizeTimeout), - window.detachEvent) - ) - window.detachEvent('onresize', t.resizeIfElementDisplayed); - else if (window.removeEventListener) - window.removeEventListener('resize', t.resizeIfElementDisplayed); - else { - var e = window.onresize; - e && e.add && e.remove && e.remove(t.resizeFunction); - } - return ( - t.resizeFunction.remove(), - t.unbindWindowFocus(), - t.selectChart.classed('c3', !1).html(''), - Object.keys(t).forEach(function(e) { - t[e] = null; - }), - null - ); - }), - (i.prototype.color = function(t) { - return this.internal.color(t); - }), - (i.prototype.data = function(t) { - var e = this.internal.data.targets; - return void 0 === t - ? e - : e.filter(function(e) { - return [].concat(t).indexOf(e.id) >= 0; - }); - }), - (i.prototype.data.shown = function(t) { - return this.internal.filterTargetsToShow(this.data(t)); - }), - (i.prototype.data.values = function(t) { - var e = - !(arguments.length > 1 && void 0 !== arguments[1]) || - arguments[1], - n = null; - if (t) { - var r = this.data(t); - r && - f(r) && - (n = r.reduce(function(t, n) { - var r = n.values.map(function(t) { - return t.value; - }); - return e ? (t = t.concat(r)) : t.push(r), t; - }, [])); - } - return n; - }), - (i.prototype.data.names = function(t) { - return ( - this.internal.clearLegendItemTextBoxCache(), - this.internal.updateDataAttributes('names', t) - ); - }), - (i.prototype.data.colors = function(t) { - return this.internal.updateDataAttributes('colors', t); - }), - (i.prototype.data.axes = function(t) { - return this.internal.updateDataAttributes('axes', t); - }), - (i.prototype.data.stackNormalized = function(t) { - if (void 0 === t) return this.internal.isStackNormalized(); - (this.internal.config.data_stack_normalize = !!t), - this.internal.redraw(); - }), - (i.prototype.donut = function() {}), - (i.prototype.donut.padAngle = function(t) { - if (void 0 === t) return this.internal.config.donut_padAngle; - (this.internal.config.donut_padAngle = t), this.flush(); - }), - (i.prototype.flow = function(t) { - var e, - n, - r, - i, - o, - a, - s, - u = this.internal, - l = [], - c = u.getMaxDataCount(), - f = 0, - h = 0; - if (t.json) n = u.convertJsonToData(t.json, t.keys); - else if (t.rows) n = u.convertRowsToData(t.rows); - else { - if (!t.columns) return; - n = u.convertColumnsToData(t.columns); - } - (e = u.convertDataToTargets(n, !0)), - u.data.targets.forEach(function(t) { - var n, - r, - i = !1; - for (n = 0; n < e.length; n++) - if (t.id === e[n].id) { - for ( - i = !0, - t.values[t.values.length - 1] && - (h = t.values[t.values.length - 1].index + 1), - f = e[n].values.length, - r = 0; - r < f; - r++ - ) - (e[n].values[r].index = h + r), - u.isTimeSeries() || (e[n].values[r].x = h + r); - (t.values = t.values.concat(e[n].values)), e.splice(n, 1); - break; - } - i || l.push(t.id); - }), - u.data.targets.forEach(function(t) { - var e, n; - for (e = 0; e < l.length; e++) - if (t.id === l[e]) - for ( - h = t.values[t.values.length - 1].index + 1, n = 0; - n < f; - n++ - ) - t.values.push({ - id: t.id, - index: h + n, - x: u.isTimeSeries() ? u.getOtherTargetX(h + n) : h + n, - value: null - }); - }), - u.data.targets.length && - e.forEach(function(t) { - var e, - n = []; - for (e = u.data.targets[0].values[0].index; e < h; e++) - n.push({ - id: t.id, - index: e, - x: u.isTimeSeries() ? u.getOtherTargetX(e) : e, - value: null - }); - t.values.forEach(function(t) { - (t.index += h), u.isTimeSeries() || (t.x += h); - }), - (t.values = n.concat(t.values)); - }), - (u.data.targets = u.data.targets.concat(e)), - u.getMaxDataCount(), - (o = (i = u.data.targets[0]).values[0]), - d(t.to) - ? ((f = 0), - (s = u.isTimeSeries() ? u.parseDate(t.to) : t.to), - i.values.forEach(function(t) { - t.x < s && f++; - })) - : d(t.length) && (f = t.length), - c - ? 1 === c && - u.isTimeSeries() && - ((a = (i.values[i.values.length - 1].x - o.x) / 2), - (r = [new Date(+o.x - a), new Date(+o.x + a)]), - u.updateXDomain(null, !0, !0, !1, r)) - : ((a = u.isTimeSeries() - ? i.values.length > 1 - ? i.values[i.values.length - 1].x - o.x - : o.x - u.getXDomain(u.data.targets)[0] - : 1), - (r = [o.x - a, o.x]), - u.updateXDomain(null, !0, !0, !1, r)), - u.updateTargets(u.data.targets), - u.redraw({ - flow: { - index: o.index, - length: f, - duration: y(t.duration) - ? t.duration - : u.config.transition_duration, - done: t.done, - orgDataCount: c - }, - withLegend: !0, - withTransition: c > 1, - withTrimXDomain: !1, - withUpdateXAxis: !0 - }); - }), - (r.prototype.generateFlow = function(t) { - var e = this, - n = e.config, - r = e.d3; - return function() { - var i, - o, - a, - u, - l, - c, - f, - d, - h, - p, - g, - v = t.targets, - m = t.flow, - y = t.drawBar, - b = t.drawLine, - _ = t.drawArea, - x = t.cx, - w = t.cy, - E = t.xv, - k = t.xForText, - A = t.yForText, - T = t.duration, - C = m.index, - O = m.length, - P = e.getValueOnIndex(e.data.targets[0].values, C), - M = e.getValueOnIndex(e.data.targets[0].values, C + O), - L = e.x.domain(), - D = m.duration || T, - j = m.done || function() {}, - R = e.generateWait(); - (e.flowing = !0), - e.data.targets.forEach(function(t) { - t.values.splice(0, O); - }), - (a = e.updateXDomain(v, !0, !0)), - e.updateXGrid && e.updateXGrid(!0), - (u = e.xgrid || r.selectAll([])), - (l = e.xgridLines || r.selectAll([])), - (c = e.mainRegion || r.selectAll([])), - (f = e.mainText || r.selectAll([])), - (d = e.mainBar || r.selectAll([])), - (h = e.mainLine || r.selectAll([])), - (p = e.mainArea || r.selectAll([])), - (g = e.mainCircle || r.selectAll([])), - m.orgDataCount - ? (i = - 1 === m.orgDataCount || - (P && P.x) === (M && M.x) || - e.isTimeSeries() - ? e.x(L[0]) - e.x(a[0]) - : e.x(P.x) - e.x(M.x)) - : 1 !== e.data.targets[0].values.length - ? (i = e.x(L[0]) - e.x(a[0])) - : e.isTimeSeries() - ? ((P = e.getValueOnIndex(e.data.targets[0].values, 0)), - (M = e.getValueOnIndex( - e.data.targets[0].values, - e.data.targets[0].values.length - 1 - )), - (i = e.x(P.x) - e.x(M.x))) - : (i = s(a) / 2), - (o = 'translate(' + i + ',0) scale(' + s(L) / s(a) + ',1)'), - e.hideXGridFocus(); - var N = r - .transition() - .ease(r.easeLinear) - .duration(D); - R.add(e.xAxis(e.axes.x, N)), - R.add(d.transition(N).attr('transform', o)), - R.add(h.transition(N).attr('transform', o)), - R.add(p.transition(N).attr('transform', o)), - R.add(g.transition(N).attr('transform', o)), - R.add(f.transition(N).attr('transform', o)), - R.add( - c - .filter(e.isRegionOnX) - .transition(N) - .attr('transform', o) - ), - R.add(u.transition(N).attr('transform', o)), - R.add(l.transition(N).attr('transform', o)), - R(function() { - var t, - r = [], - i = []; - if (O) { - for (t = 0; t < O; t++) - r.push('.' + S.shape + '-' + (C + t)), - i.push('.' + S.text + '-' + (C + t)); - e.svg - .selectAll('.' + S.shapes) - .selectAll(r) - .remove(), - e.svg - .selectAll('.' + S.texts) - .selectAll(i) - .remove(), - e.svg.select('.' + S.xgrid).remove(); - } - u - .attr('transform', null) - .attr('x1', e.xgridAttr.x1) - .attr('x2', e.xgridAttr.x2) - .attr('y1', e.xgridAttr.y1) - .attr('y2', e.xgridAttr.y2) - .style('opacity', e.xgridAttr.opacity), - l.attr('transform', null), - l - .select('line') - .attr('x1', n.axis_rotated ? 0 : E) - .attr('x2', n.axis_rotated ? e.width : E), - l - .select('text') - .attr('x', n.axis_rotated ? e.width : 0) - .attr('y', E), - d.attr('transform', null).attr('d', y), - h.attr('transform', null).attr('d', b), - p.attr('transform', null).attr('d', _), - g - .attr('transform', null) - .attr('cx', x) - .attr('cy', w), - f - .attr('transform', null) - .attr('x', k) - .attr('y', A) - .style('fill-opacity', e.opacityForText.bind(e)), - c.attr('transform', null), - c - .filter(e.isRegionOnX) - .attr('x', e.regionX.bind(e)) - .attr('width', e.regionWidth.bind(e)), - j(), - (e.flowing = !1); - }); - }; - }), - (i.prototype.focus = function(t) { - var e, - n = this.internal; - (t = n.mapToTargetIds(t)), - (e = n.svg.selectAll( - n.selectorTargets(t.filter(n.isTargetToShow, n)) - )), - this.revert(), - this.defocus(), - e.classed(S.focused, !0).classed(S.defocused, !1), - n.hasArcType() && n.expandArc(t), - n.toggleFocusLegend(t, !0), - (n.focusedTargetIds = t), - (n.defocusedTargetIds = n.defocusedTargetIds.filter(function(e) { - return t.indexOf(e) < 0; - })); - }), - (i.prototype.defocus = function(t) { - var e = this.internal; - (t = e.mapToTargetIds(t)), - e.svg - .selectAll(e.selectorTargets(t.filter(e.isTargetToShow, e))) - .classed(S.focused, !1) - .classed(S.defocused, !0), - e.hasArcType() && e.unexpandArc(t), - e.toggleFocusLegend(t, !1), - (e.focusedTargetIds = e.focusedTargetIds.filter(function(e) { - return t.indexOf(e) < 0; - })), - (e.defocusedTargetIds = t); - }), - (i.prototype.revert = function(t) { - var e = this.internal; - (t = e.mapToTargetIds(t)), - e.svg - .selectAll(e.selectorTargets(t)) - .classed(S.focused, !1) - .classed(S.defocused, !1), - e.hasArcType() && e.unexpandArc(t), - e.config.legend_show && - (e.showLegend(t.filter(e.isLegendToShow.bind(e))), - e.legend - .selectAll(e.selectorLegends(t)) - .filter(function() { - return e.d3.select(this).classed(S.legendItemFocused); - }) - .classed(S.legendItemFocused, !1)), - (e.focusedTargetIds = []), - (e.defocusedTargetIds = []); - }), - (i.prototype.xgrids = function(t) { - var e = this.internal, - n = e.config; - return t - ? ((n.grid_x_lines = t), e.redrawWithoutRescale(), n.grid_x_lines) - : n.grid_x_lines; - }), - (i.prototype.xgrids.add = function(t) { - var e = this.internal; - return this.xgrids(e.config.grid_x_lines.concat(t || [])); - }), - (i.prototype.xgrids.remove = function(t) { - this.internal.removeGridLines(t, !0); - }), - (i.prototype.ygrids = function(t) { - var e = this.internal, - n = e.config; - return t - ? ((n.grid_y_lines = t), e.redrawWithoutRescale(), n.grid_y_lines) - : n.grid_y_lines; - }), - (i.prototype.ygrids.add = function(t) { - var e = this.internal; - return this.ygrids(e.config.grid_y_lines.concat(t || [])); - }), - (i.prototype.ygrids.remove = function(t) { - this.internal.removeGridLines(t, !1); - }), - (i.prototype.groups = function(t) { - var e = this.internal, - n = e.config; - return m(t) || ((n.data_groups = t), e.redraw()), n.data_groups; - }), - (i.prototype.legend = function() {}), - (i.prototype.legend.show = function(t) { - var e = this.internal; - e.showLegend(e.mapToTargetIds(t)), - e.updateAndRedraw({ withLegend: !0 }); - }), - (i.prototype.legend.hide = function(t) { - var e = this.internal; - e.hideLegend(e.mapToTargetIds(t)), - e.updateAndRedraw({ withLegend: !1 }); - }), - (i.prototype.load = function(t) { - var e = this.internal, - n = e.config; - t.xs && e.addXs(t.xs), - 'names' in t && i.prototype.data.names.bind(this)(t.names), - 'classes' in t && - Object.keys(t.classes).forEach(function(e) { - n.data_classes[e] = t.classes[e]; - }), - 'categories' in t && - e.isCategorized() && - (n.axis_x_categories = t.categories), - 'axes' in t && - Object.keys(t.axes).forEach(function(e) { - n.data_axes[e] = t.axes[e]; - }), - 'colors' in t && - Object.keys(t.colors).forEach(function(e) { - n.data_colors[e] = t.colors[e]; - }), - 'cacheIds' in t && e.hasCaches(t.cacheIds) - ? e.load(e.getCaches(t.cacheIds), t.done) - : t.unload - ? e.unload( - e.mapToTargetIds(!0 === t.unload ? null : t.unload), - function() { - e.loadFromArgs(t); - } - ) - : e.loadFromArgs(t); - }), - (i.prototype.unload = function(t) { - var e = this.internal; - (t = t || {}) instanceof Array - ? (t = { ids: t }) - : 'string' == typeof t && (t = { ids: [t] }), - e.unload(e.mapToTargetIds(t.ids), function() { - e.redraw({ - withUpdateOrgXDomain: !0, - withUpdateXDomain: !0, - withLegend: !0 - }), - t.done && t.done(); - }); - }), - (i.prototype.pie = function() {}), - (i.prototype.pie.padAngle = function(t) { - if (void 0 === t) return this.internal.config.pie_padAngle; - (this.internal.config.pie_padAngle = t), this.flush(); - }), - (i.prototype.regions = function(t) { - var e = this.internal, - n = e.config; - return t - ? ((n.regions = t), e.redrawWithoutRescale(), n.regions) - : n.regions; - }), - (i.prototype.regions.add = function(t) { - var e = this.internal, - n = e.config; - return t - ? ((n.regions = n.regions.concat(t)), - e.redrawWithoutRescale(), - n.regions) - : n.regions; - }), - (i.prototype.regions.remove = function(t) { - var e, - n, - r, - i = this.internal, - o = i.config; - return ( - (e = u((t = t || {}), 'duration', o.transition_duration)), - (n = u(t, 'classes', [S.region])), - (r = i.main.select('.' + S.regions).selectAll( - n.map(function(t) { - return '.' + t; - }) - )), - (e ? r.transition().duration(e) : r).style('opacity', 0).remove(), - (o.regions = o.regions.filter(function(t) { - var e = !1; - return ( - !t.class || - (t.class.split(' ').forEach(function(t) { - n.indexOf(t) >= 0 && (e = !0); - }), - !e) - ); - })), - o.regions - ); - }), - (i.prototype.selected = function(t) { - var e = this.internal, - n = e.d3; - return e.main - .selectAll('.' + S.shapes + e.getTargetSelectorSuffix(t)) - .selectAll('.' + S.shape) - .filter(function() { - return n.select(this).classed(S.SELECTED); - }) - .nodes() - .map(function(t) { - var e = t.__data__; - return e.data ? e.data : e; - }); - }), - (i.prototype.select = function(t, e, n) { - var r = this.internal, - i = r.d3, - o = r.config; - o.data_selection_enabled && - r.main - .selectAll('.' + S.shapes) - .selectAll('.' + S.shape) - .each(function(a, s) { - var u = i.select(this), - l = a.data ? a.data.id : a.id, - c = r.getToggle(this, a).bind(r), - f = o.data_selection_grouped || !t || t.indexOf(l) >= 0, - h = !e || e.indexOf(s) >= 0, - p = u.classed(S.SELECTED); - u.classed(S.line) || - u.classed(S.area) || - (f && h - ? o.data_selection_isselectable(a) && - !p && - c(!0, u.classed(S.SELECTED, !0), a, s) - : d(n) && - n && - p && - c(!1, u.classed(S.SELECTED, !1), a, s)); - }); - }), - (i.prototype.unselect = function(t, e) { - var n = this.internal, - r = n.d3, - i = n.config; - i.data_selection_enabled && - n.main - .selectAll('.' + S.shapes) - .selectAll('.' + S.shape) - .each(function(o, a) { - var s = r.select(this), - u = o.data ? o.data.id : o.id, - l = n.getToggle(this, o).bind(n), - c = i.data_selection_grouped || !t || t.indexOf(u) >= 0, - f = !e || e.indexOf(a) >= 0, - d = s.classed(S.SELECTED); - s.classed(S.line) || - s.classed(S.area) || - (c && - f && - i.data_selection_isselectable(o) && - d && - l(!1, s.classed(S.SELECTED, !1), o, a)); - }); - }), - (i.prototype.show = function(t, e) { - var n, - r = this.internal; - (t = r.mapToTargetIds(t)), - (e = e || {}), - r.removeHiddenTargetIds(t), - (n = r.svg.selectAll(r.selectorTargets(t))) - .transition() - .style('display', x() ? 'block' : 'initial', 'important') - .style('opacity', 1, 'important') - .call(r.endall, function() { - n.style('opacity', null).style('opacity', 1); - }), - e.withLegend && r.showLegend(t), - r.redraw({ - withUpdateOrgXDomain: !0, - withUpdateXDomain: !0, - withLegend: !0 - }); - }), - (i.prototype.hide = function(t, e) { - var n, - r = this.internal; - (t = r.mapToTargetIds(t)), - (e = e || {}), - r.addHiddenTargetIds(t), - (n = r.svg.selectAll(r.selectorTargets(t))) - .transition() - .style('opacity', 0, 'important') - .call(r.endall, function() { - n.style('opacity', null).style('opacity', 0), - n.style('display', 'none'); - }), - e.withLegend && r.hideLegend(t), - r.redraw({ - withUpdateOrgXDomain: !0, - withUpdateXDomain: !0, - withLegend: !0 - }); - }), - (i.prototype.toggle = function(t, e) { - var n = this, - r = this.internal; - r.mapToTargetIds(t).forEach(function(t) { - r.isTargetToShow(t) ? n.hide(t, e) : n.show(t, e); - }); - }), - (i.prototype.subchart = function() {}), - (i.prototype.subchart.isShown = function() { - return this.internal.config.subchart_show; - }), - (i.prototype.subchart.show = function() { - var t = this.internal; - t.config.subchart_show || - ((t.config.subchart_show = !0), - t.initSubchart(), - t.updateDimension(), - t.initSubchartBrush(), - t.updateTargetsForSubchart(t.getTargets()), - t.mapToIds(t.data.targets).forEach(function(e) { - t.withoutFadeIn[e] = !1; - }), - t.updateAndRedraw(), - t.showTargets()); - }), - (i.prototype.subchart.hide = function() { - var t = this.internal; - t.config.subchart_show && - ((t.config.subchart_show = !1), t.removeSubchart(), t.redraw()); - }), - (i.prototype.tooltip = function() {}), - (i.prototype.tooltip.show = function(t) { - var e, - n, - r = this.internal, - i = {}; - t.mouse - ? (i = t.mouse) - : (t.data - ? (n = t.data) - : void 0 !== t.x && - ((e = t.id - ? r.data.targets.filter(function(e) { - return e.id === t.id; - }) - : r.data.targets), - (n = r.filterByX(e, t.x).slice(0, 1)[0])), - (i = n ? r.getMousePosition(n) : null)), - r.dispatchEvent('mousemove', i), - r.config.tooltip_onshow.call(r, n); - }), - (i.prototype.tooltip.hide = function() { - this.internal.dispatchEvent('mouseout', 0), - this.internal.config.tooltip_onhide.call(this); - }), - (i.prototype.transform = function(t, e) { - var n = this.internal, - r = - ['pie', 'donut'].indexOf(t) >= 0 ? { withTransform: !0 } : null; - n.transformTo(e, t, r); - }), - (r.prototype.transformTo = function(t, e, n) { - var r = this, - i = !r.hasArcType(), - o = n || { withTransitionForAxis: i }; - (o.withTransitionForTransform = !1), - (r.transiting = !1), - r.setTargetType(t, e), - r.updateTargets(r.data.targets), - r.updateAndRedraw(o); - }), - (i.prototype.x = function(t) { - var e = this.internal; - return ( - arguments.length && - (e.updateTargetX(e.data.targets, t), - e.redraw({ withUpdateOrgXDomain: !0, withUpdateXDomain: !0 })), - e.data.xs - ); - }), - (i.prototype.xs = function(t) { - var e = this.internal; - return ( - arguments.length && - (e.updateTargetXs(e.data.targets, t), - e.redraw({ withUpdateOrgXDomain: !0, withUpdateXDomain: !0 })), - e.data.xs - ); - }), - (i.prototype.zoom = function(t) { - var e = this.internal; - return t - ? (e.isTimeSeries() && - (t = t.map(function(t) { - return e.parseDate(t); - })), - e.config.subchart_show - ? e.brush.selectionAsValue(t, !0) - : (e.updateXDomain(null, !0, !1, !1, t), - e.redraw({ - withY: e.config.zoom_rescale, - withSubchart: !1 - })), - e.config.zoom_onzoom.call(this, e.x.orgDomain()), - t) - : e.x.domain(); - }), - (i.prototype.zoom.enable = function(t) { - var e = this.internal; - (e.config.zoom_enabled = t), e.updateAndRedraw(); - }), - (i.prototype.unzoom = function() { - var t = this.internal; - t.config.subchart_show - ? t.brush.clear() - : (t.updateXDomain(null, !0, !1, !1, t.subX.domain()), - t.redraw({ withY: t.config.zoom_rescale, withSubchart: !1 })); - }), - (i.prototype.zoom.max = function(t) { - var e = this.internal, - n = e.config, - r = e.d3; - if (0 !== t && !t) return n.zoom_x_max; - n.zoom_x_max = r.max([e.orgXDomain[1], t]); - }), - (i.prototype.zoom.min = function(t) { - var e = this.internal, - n = e.config, - r = e.d3; - if (0 !== t && !t) return n.zoom_x_min; - n.zoom_x_min = r.min([e.orgXDomain[0], t]); - }), - (i.prototype.zoom.range = function(t) { - if (!arguments.length) - return { max: this.domain.max(), min: this.domain.min() }; - d(t.max) && this.domain.max(t.max), - d(t.min) && this.domain.min(t.min); - }), - (r.prototype.initPie = function() { - var t = this, - e = t.d3; - t.pie = e - .pie() - .padAngle(this.getPadAngle.bind(this)) - .value(function(t) { - return t.values.reduce(function(t, e) { - return t + e.value; - }, 0); - }); - var n = t.getOrderFunction(); - if (n && (t.isOrderAsc() || t.isOrderDesc())) { - var r = n; - n = function(t, e) { - return -1 * r(t, e); - }; - } - t.pie.sort(n || null); - }), - (r.prototype.updateRadius = function() { - var t = this, - e = t.config, - n = e.gauge_width || e.donut_width, - r = - t.filterTargetsToShow(t.data.targets).length * - t.config.gauge_arcs_minWidth; - (t.radiusExpanded = - (Math.min(t.arcWidth, t.arcHeight) / 2) * - (t.hasType('gauge') ? 0.85 : 1)), - (t.radius = 0.95 * t.radiusExpanded), - (t.innerRadiusRatio = n ? (t.radius - n) / t.radius : 0.6), - (t.innerRadius = - t.hasType('donut') || t.hasType('gauge') - ? t.radius * t.innerRadiusRatio - : 0), - (t.gaugeArcWidth = - n || - (r <= t.radius - t.innerRadius - ? t.radius - t.innerRadius - : r <= t.radius - ? r - : t.radius)); - }), - (r.prototype.getPadAngle = function() { - return this.hasType('pie') - ? this.config.pie_padAngle || 0 - : (this.hasType('donut') && this.config.donut_padAngle) || 0; - }), - (r.prototype.updateArc = function() { - var t = this; - (t.svgArc = t.getSvgArc()), - (t.svgArcExpanded = t.getSvgArcExpanded()), - (t.svgArcExpandedSub = t.getSvgArcExpanded(0.98)); - }), - (r.prototype.updateAngle = function(t) { - var e, - n, - r, - i, - o = this, - a = o.config, - s = !1, - u = 0; - return a - ? (o - .pie(o.filterTargetsToShow(o.data.targets)) - .forEach(function(e) { - s || - e.data.id !== t.data.id || - ((s = !0), ((t = e).index = u)), - u++; - }), - isNaN(t.startAngle) && (t.startAngle = 0), - isNaN(t.endAngle) && (t.endAngle = t.startAngle), - o.isGaugeType(t.data) && - ((e = a.gauge_min), - (n = a.gauge_max), - (r = (Math.PI * (a.gauge_fullCircle ? 2 : 1)) / (n - e)), - (i = t.value < e ? 0 : t.value < n ? t.value - e : n - e), - (t.startAngle = a.gauge_startingAngle), - (t.endAngle = t.startAngle + r * i)), - s ? t : null) - : null; - }), - (r.prototype.getSvgArc = function() { - var t = this, - e = t.hasType('gauge'), - n = - t.gaugeArcWidth / t.filterTargetsToShow(t.data.targets).length, - r = t.d3 - .arc() - .outerRadius(function(r) { - return e ? t.radius - n * r.index : t.radius; - }) - .innerRadius(function(r) { - return e ? t.radius - n * (r.index + 1) : t.innerRadius; - }), - i = function(e, n) { - var i; - return n ? r(e) : (i = t.updateAngle(e)) ? r(i) : 'M 0 0'; - }; - return (i.centroid = r.centroid), i; - }), - (r.prototype.getSvgArcExpanded = function(t) { - t = t || 1; - var e = this, - n = e.hasType('gauge'), - r = - e.gaugeArcWidth / e.filterTargetsToShow(e.data.targets).length, - i = Math.min( - e.radiusExpanded * t - e.radius, - 0.8 * r - 100 * (1 - t) - ), - o = e.d3 - .arc() - .outerRadius(function(o) { - return n ? e.radius - r * o.index + i : e.radiusExpanded * t; - }) - .innerRadius(function(t) { - return n ? e.radius - r * (t.index + 1) : e.innerRadius; - }); - return function(t) { - var n = e.updateAngle(t); - return n ? o(n) : 'M 0 0'; - }; - }), - (r.prototype.getArc = function(t, e, n) { - return n || this.isArcType(t.data) ? this.svgArc(t, e) : 'M 0 0'; - }), - (r.prototype.transformForArcLabel = function(t) { - var e, - n, - r, - i, - o, - a = this, - s = a.config, - u = a.updateAngle(t), - l = '', - c = a.hasType('gauge'); - if (u && !c) - (e = this.svgArc.centroid(u)), - (n = isNaN(e[0]) ? 0 : e[0]), - (r = isNaN(e[1]) ? 0 : e[1]), - (i = Math.sqrt(n * n + r * r)), - (l = - 'translate(' + - n * - (o = - a.hasType('donut') && s.donut_label_ratio - ? p(s.donut_label_ratio) - ? s.donut_label_ratio(t, a.radius, i) - : s.donut_label_ratio - : a.hasType('pie') && s.pie_label_ratio - ? p(s.pie_label_ratio) - ? s.pie_label_ratio(t, a.radius, i) - : s.pie_label_ratio - : a.radius && i - ? ((36 / a.radius > 0.375 - ? 1.175 - 36 / a.radius - : 0.8) * - a.radius) / - i - : 0) + - ',' + - r * o + - ')'); - else if ( - u && - c && - a.filterTargetsToShow(a.data.targets).length > 1 - ) { - var f = Math.sin(u.endAngle - Math.PI / 2); - l = - 'translate(' + - (n = - Math.cos(u.endAngle - Math.PI / 2) * - (a.radiusExpanded + 25)) + - ',' + - (r = f * (a.radiusExpanded + 15 - Math.abs(10 * f)) + 3) + - ')'; - } - return l; - }), - (r.prototype.getArcRatio = function(t) { - return this.getRatio('arc', t); - }), - (r.prototype.convertToArcData = function(t) { - return this.addName({ - id: t.data.id, - value: t.value, - ratio: this.getRatio('arc', t), - index: t.index - }); - }), - (r.prototype.textForArcLabel = function(t) { - var e, - n, - r, - i, - o, - a = this; - return a.shouldShowArcLabel() - ? ((n = (e = a.updateAngle(t)) ? e.value : null), - (r = a.getRatio('arc', e)), - (i = t.data.id), - a.hasType('gauge') || a.meetsArcLabelThreshold(r) - ? (o = a.getArcLabelFormat()) - ? o(n, r, i) - : a.defaultArcValueFormat(n, r) - : '') - : ''; - }), - (r.prototype.textForGaugeMinMax = function(t, e) { - var n = this.getGaugeLabelExtents(); - return n ? n(t, e) : t; - }), - (r.prototype.expandArc = function(t) { - var e, - n = this; - n.transiting - ? (e = window.setInterval(function() { - n.transiting || - (window.clearInterval(e), - n.legend.selectAll('.c3-legend-item-focused').size() > 0 && - n.expandArc(t)); - }, 10)) - : ((t = n.mapToTargetIds(t)), - n.svg - .selectAll(n.selectorTargets(t, '.' + S.chartArc)) - .each(function(t) { - n.shouldExpand(t.data.id) && - n.d3 - .select(this) - .selectAll('path') - .transition() - .duration(n.expandDuration(t.data.id)) - .attr('d', n.svgArcExpanded) - .transition() - .duration(2 * n.expandDuration(t.data.id)) - .attr('d', n.svgArcExpandedSub) - .each(function(t) { - n.isDonutType(t.data); - }); - })); - }), - (r.prototype.unexpandArc = function(t) { - var e = this; - e.transiting || - ((t = e.mapToTargetIds(t)), - e.svg - .selectAll(e.selectorTargets(t, '.' + S.chartArc)) - .selectAll('path') - .transition() - .duration(function(t) { - return e.expandDuration(t.data.id); - }) - .attr('d', e.svgArc), - e.svg.selectAll('.' + S.arc)); - }), - (r.prototype.expandDuration = function(t) { - var e = this.config; - return this.isDonutType(t) - ? e.donut_expand_duration - : this.isGaugeType(t) - ? e.gauge_expand_duration - : this.isPieType(t) - ? e.pie_expand_duration - : 50; - }), - (r.prototype.shouldExpand = function(t) { - var e = this.config; - return ( - (this.isDonutType(t) && e.donut_expand) || - (this.isGaugeType(t) && e.gauge_expand) || - (this.isPieType(t) && e.pie_expand) - ); - }), - (r.prototype.shouldShowArcLabel = function() { - var t = this.config, - e = !0; - return ( - this.hasType('donut') - ? (e = t.donut_label_show) - : this.hasType('pie') && (e = t.pie_label_show), - e - ); - }), - (r.prototype.meetsArcLabelThreshold = function(t) { - var e = this.config; - return ( - t >= - (this.hasType('donut') - ? e.donut_label_threshold - : e.pie_label_threshold) - ); - }), - (r.prototype.getArcLabelFormat = function() { - var t = this.config, - e = t.pie_label_format; - return ( - this.hasType('gauge') - ? (e = t.gauge_label_format) - : this.hasType('donut') && (e = t.donut_label_format), - e - ); - }), - (r.prototype.getGaugeLabelExtents = function() { - return this.config.gauge_label_extents; - }), - (r.prototype.getArcTitle = function() { - return this.hasType('donut') ? this.config.donut_title : ''; - }), - (r.prototype.updateTargetsForArc = function(t) { - var e, - n = this, - r = n.main, - i = n.classChartArc.bind(n), - o = n.classArcs.bind(n), - a = n.classFocus.bind(n); - (e = r - .select('.' + S.chartArcs) - .selectAll('.' + S.chartArc) - .data(n.pie(t)) - .attr('class', function(t) { - return i(t) + a(t.data); - }) - .enter() - .append('g') - .attr('class', i)) - .append('g') - .attr('class', o), - e - .append('text') - .attr('dy', n.hasType('gauge') ? '-.1em' : '.35em') - .style('opacity', 0) - .style('text-anchor', 'middle') - .style('pointer-events', 'none'); - }), - (r.prototype.initArc = function() { - var t = this; - (t.arcs = t.main - .select('.' + S.chart) - .append('g') - .attr('class', S.chartArcs) - .attr('transform', t.getTranslate('arc'))), - t.arcs - .append('text') - .attr('class', S.chartArcsTitle) - .style('text-anchor', 'middle') - .text(t.getArcTitle()); - }), - (r.prototype.redrawArc = function(t, e, n) { - var r, - i, - o, - a, - s = this, - u = s.d3, - l = s.config, - c = s.main, - f = s.hasType('gauge'); - if ( - ((i = (r = c - .selectAll('.' + S.arcs) - .selectAll('.' + S.arc) - .data(s.arcData.bind(s))) - .enter() - .append('path') - .attr('class', s.classArc.bind(s)) - .style('fill', function(t) { - return s.color(t.data); - }) - .style('cursor', function(t) { - return l.interaction_enabled && - l.data_selection_isselectable(t) - ? 'pointer' - : null; - }) - .each(function(t) { - s.isGaugeType(t.data) && - (t.startAngle = t.endAngle = l.gauge_startingAngle), - (this._current = t); - }) - .merge(r)), - f && - ((a = (o = c - .selectAll('.' + S.arcs) - .selectAll('.' + S.arcLabelLine) - .data(s.arcData.bind(s))) - .enter() - .append('rect') - .attr('class', function(t) { - return ( - S.arcLabelLine + - ' ' + - S.target + - ' ' + - S.target + - '-' + - t.data.id - ); - }) - .merge(o)), - 1 === s.filterTargetsToShow(s.data.targets).length - ? a.style('display', 'none') - : a - .style('fill', function(t) { - return s.levelColor - ? s.levelColor( - t.data.values.reduce(function(t, e) { - return t + e.value; - }, 0) - ) - : s.color(t.data); - }) - .style('display', l.gauge_labelLine_show ? '' : 'none') - .each(function(t) { - var e = 0, - n = 0, - r = 0, - i = ''; - if (s.hiddenTargetIds.indexOf(t.data.id) < 0) { - var o = s.updateAngle(t), - a = - (s.gaugeArcWidth / - s.filterTargetsToShow(s.data.targets).length) * - (o.index + 1), - l = o.endAngle - Math.PI / 2, - c = s.radius - a, - f = l - (0 === c ? 0 : 1 / c); - (e = s.radiusExpanded - s.radius + a), - (n = Math.cos(f) * c), - (r = Math.sin(f) * c), - (i = - 'rotate(' + - (180 * l) / Math.PI + - ', ' + - n + - ', ' + - r + - ')'); - } - u.select(this) - .attr('x', n) - .attr('y', r) - .attr('width', e) - .attr('height', 2) - .attr('transform', i) - .style('stroke-dasharray', '0, ' + (e + 2) + ', 0'); - })), - i - .attr('transform', function(t) { - return !s.isGaugeType(t.data) && n ? 'scale(0)' : ''; - }) - .on( - 'mouseover', - l.interaction_enabled - ? function(t) { - var e, n; - s.transiting || - ((e = s.updateAngle(t)) && - ((n = s.convertToArcData(e)), - s.expandArc(e.data.id), - s.api.focus(e.data.id), - s.toggleFocusLegend(e.data.id, !0), - s.config.data_onmouseover(n, this))); - } - : null - ) - .on( - 'mousemove', - l.interaction_enabled - ? function(t) { - var e, - n = s.updateAngle(t); - n && - ((e = [s.convertToArcData(n)]), - s.showTooltip(e, this)); - } - : null - ) - .on( - 'mouseout', - l.interaction_enabled - ? function(t) { - var e, n; - s.transiting || - ((e = s.updateAngle(t)) && - ((n = s.convertToArcData(e)), - s.unexpandArc(e.data.id), - s.api.revert(), - s.revertLegend(), - s.hideTooltip(), - s.config.data_onmouseout(n, this))); - } - : null - ) - .on( - 'click', - l.interaction_enabled - ? function(t, e) { - var n, - r = s.updateAngle(t); - r && - ((n = s.convertToArcData(r)), - s.toggleShape && s.toggleShape(this, n, e), - s.config.data_onclick.call(s.api, n, this)); - } - : null - ) - .each(function() { - s.transiting = !0; - }) - .transition() - .duration(t) - .attrTween('d', function(t) { - var e, - n = s.updateAngle(t); - return n - ? (isNaN(this._current.startAngle) && - (this._current.startAngle = 0), - isNaN(this._current.endAngle) && - (this._current.endAngle = this._current.startAngle), - (e = u.interpolate(this._current, n)), - (this._current = e(0)), - function(n) { - if (null === s.config) return 'M 0 0'; - var r = e(n); - return (r.data = t.data), s.getArc(r, !0); - }) - : function() { - return 'M 0 0'; - }; - }) - .attr('transform', n ? 'scale(1)' : '') - .style('fill', function(t) { - return s.levelColor - ? s.levelColor( - t.data.values.reduce(function(t, e) { - return t + e.value; - }, 0) - ) - : s.color(t.data.id); - }) - .call(s.endall, function() { - s.transiting = !1; - }), - r - .exit() - .transition() - .duration(e) - .style('opacity', 0) - .remove(), - c - .selectAll('.' + S.chartArc) - .select('text') - .style('opacity', 0) - .attr('class', function(t) { - return s.isGaugeType(t.data) ? S.gaugeValue : ''; - }) - .text(s.textForArcLabel.bind(s)) - .attr('transform', s.transformForArcLabel.bind(s)) - .style('font-size', function(t) { - return s.isGaugeType(t.data) && - 1 === s.filterTargetsToShow(s.data.targets).length - ? Math.round(s.radius / 5) + 'px' - : ''; - }) - .transition() - .duration(t) - .style('opacity', function(t) { - return s.isTargetToShow(t.data.id) && s.isArcType(t.data) - ? 1 - : 0; - }), - c - .select('.' + S.chartArcsTitle) - .style('opacity', s.hasType('donut') || f ? 1 : 0), - f) - ) { - var d = 0, - h = s.arcs - .select('g.' + S.chartArcsBackground) - .selectAll('path.' + S.chartArcsBackground) - .data(s.data.targets); - h - .enter() - .append('path') - .attr('class', function(t, e) { - return ( - S.chartArcsBackground + - ' ' + - S.chartArcsBackground + - '-' + - e - ); - }) - .merge(h) - .attr('d', function(t) { - if (s.hiddenTargetIds.indexOf(t.id) >= 0) return 'M 0 0'; - var e = { - data: [{ value: l.gauge_max }], - startAngle: l.gauge_startingAngle, - endAngle: - -1 * - l.gauge_startingAngle * - (l.gauge_fullCircle ? Math.PI : 1), - index: d++ - }; - return s.getArc(e, !0, !0); - }), - h.exit().remove(), - s.arcs - .select('.' + S.chartArcsGaugeUnit) - .attr('dy', '.75em') - .text(l.gauge_label_show ? l.gauge_units : ''), - s.arcs - .select('.' + S.chartArcsGaugeMin) - .attr( - 'dx', - -1 * - (s.innerRadius + - (s.radius - s.innerRadius) / - (l.gauge_fullCircle ? 1 : 2)) + - 'px' - ) - .attr('dy', '1.2em') - .text( - l.gauge_label_show - ? s.textForGaugeMinMax(l.gauge_min, !1) - : '' - ), - s.arcs - .select('.' + S.chartArcsGaugeMax) - .attr( - 'dx', - s.innerRadius + - (s.radius - s.innerRadius) / - (l.gauge_fullCircle ? 1 : 2) + - 'px' - ) - .attr('dy', '1.2em') - .text( - l.gauge_label_show - ? s.textForGaugeMinMax(l.gauge_max, !0) - : '' - ); - } - }), - (r.prototype.initGauge = function() { - var t = this.arcs; - this.hasType('gauge') && - (t.append('g').attr('class', S.chartArcsBackground), - t - .append('text') - .attr('class', S.chartArcsGaugeUnit) - .style('text-anchor', 'middle') - .style('pointer-events', 'none'), - t - .append('text') - .attr('class', S.chartArcsGaugeMin) - .style('text-anchor', 'middle') - .style('pointer-events', 'none'), - t - .append('text') - .attr('class', S.chartArcsGaugeMax) - .style('text-anchor', 'middle') - .style('pointer-events', 'none')); - }), - (r.prototype.getGaugeLabelHeight = function() { - return this.config.gauge_label_show ? 20 : 0; - }), - (r.prototype.addToCache = function(t, e) { - this.cache['$'.concat(t)] = e; - }), - (r.prototype.getFromCache = function(t) { - return this.cache['$'.concat(t)]; - }), - (r.prototype.resetCache = function() { - var t = this; - Object.keys(this.cache) - .filter(function(t) { - return /^\$/.test(t); - }) - .forEach(function(e) { - delete t.cache[e]; - }); - }), - (r.prototype.hasCaches = function(t) { - for (var e = 0; e < t.length; e++) - if (!(t[e] in this.cache)) return !1; - return !0; - }), - (r.prototype.addCache = function(t, e) { - this.cache[t] = this.cloneTarget(e); - }), - (r.prototype.getCaches = function(t) { - var e, - n = []; - for (e = 0; e < t.length; e++) - t[e] in this.cache && n.push(this.cloneTarget(this.cache[t[e]])); - return n; - }), - (r.prototype.categoryName = function(t) { - var e = this.config; - return t < e.axis_x_categories.length ? e.axis_x_categories[t] : t; - }), - (r.prototype.generateTargetClass = function(t) { - return t || 0 === t ? ('-' + t).replace(/\s/g, '-') : ''; - }), - (r.prototype.generateClass = function(t, e) { - return ' ' + t + ' ' + t + this.generateTargetClass(e); - }), - (r.prototype.classText = function(t) { - return this.generateClass(S.text, t.index); - }), - (r.prototype.classTexts = function(t) { - return this.generateClass(S.texts, t.id); - }), - (r.prototype.classShape = function(t) { - return this.generateClass(S.shape, t.index); - }), - (r.prototype.classShapes = function(t) { - return this.generateClass(S.shapes, t.id); - }), - (r.prototype.classLine = function(t) { - return this.classShape(t) + this.generateClass(S.line, t.id); - }), - (r.prototype.classLines = function(t) { - return this.classShapes(t) + this.generateClass(S.lines, t.id); - }), - (r.prototype.classCircle = function(t) { - return this.classShape(t) + this.generateClass(S.circle, t.index); - }), - (r.prototype.classCircles = function(t) { - return this.classShapes(t) + this.generateClass(S.circles, t.id); - }), - (r.prototype.classBar = function(t) { - return this.classShape(t) + this.generateClass(S.bar, t.index); - }), - (r.prototype.classBars = function(t) { - return this.classShapes(t) + this.generateClass(S.bars, t.id); - }), - (r.prototype.classArc = function(t) { - return ( - this.classShape(t.data) + this.generateClass(S.arc, t.data.id) - ); - }), - (r.prototype.classArcs = function(t) { - return ( - this.classShapes(t.data) + this.generateClass(S.arcs, t.data.id) - ); - }), - (r.prototype.classArea = function(t) { - return this.classShape(t) + this.generateClass(S.area, t.id); - }), - (r.prototype.classAreas = function(t) { - return this.classShapes(t) + this.generateClass(S.areas, t.id); - }), - (r.prototype.classRegion = function(t, e) { - return ( - this.generateClass(S.region, e) + - ' ' + - ('class' in t ? t.class : '') - ); - }), - (r.prototype.classEvent = function(t) { - return this.generateClass(S.eventRect, t.index); - }), - (r.prototype.classTarget = function(t) { - var e = this.config.data_classes[t], - n = ''; - return ( - e && (n = ' ' + S.target + '-' + e), - this.generateClass(S.target, t) + n - ); - }), - (r.prototype.classFocus = function(t) { - return this.classFocused(t) + this.classDefocused(t); - }), - (r.prototype.classFocused = function(t) { - return ( - ' ' + (this.focusedTargetIds.indexOf(t.id) >= 0 ? S.focused : '') - ); - }), - (r.prototype.classDefocused = function(t) { - return ( - ' ' + - (this.defocusedTargetIds.indexOf(t.id) >= 0 ? S.defocused : '') - ); - }), - (r.prototype.classChartText = function(t) { - return S.chartText + this.classTarget(t.id); - }), - (r.prototype.classChartLine = function(t) { - return S.chartLine + this.classTarget(t.id); - }), - (r.prototype.classChartBar = function(t) { - return S.chartBar + this.classTarget(t.id); - }), - (r.prototype.classChartArc = function(t) { - return S.chartArc + this.classTarget(t.data.id); - }), - (r.prototype.getTargetSelectorSuffix = function(t) { - var e = this.generateTargetClass(t); - return window.CSS && window.CSS.escape - ? window.CSS.escape(e) - : e.replace(/([?!@#$%^&*()=+,.<>'":;\[\]\/|~`{}\\])/g, '\\$1'); - }), - (r.prototype.selectorTarget = function(t, e) { - return (e || '') + '.' + S.target + this.getTargetSelectorSuffix(t); - }), - (r.prototype.selectorTargets = function(t, e) { - var n = this; - return (t = t || []).length - ? t.map(function(t) { - return n.selectorTarget(t, e); - }) - : null; - }), - (r.prototype.selectorLegend = function(t) { - return '.' + S.legendItem + this.getTargetSelectorSuffix(t); - }), - (r.prototype.selectorLegends = function(t) { - var e = this; - return t && t.length - ? t.map(function(t) { - return e.selectorLegend(t); - }) - : null; - }), - (r.prototype.getClipPath = function(t) { - return ( - 'url('https://github.com/+%20(x(9) ? '' : document.URL.split('#')[0]) + '#' + t + ')' - ); - }), - (r.prototype.appendClip = function(t, e) { - return t - .append('clipPath') - .attr('id', e) - .append('rect'); - }), - (r.prototype.getAxisClipX = function(t) { - var e = Math.max(30, this.margin.left); - return t ? -(1 + e) : -(e - 1); - }), - (r.prototype.getAxisClipY = function(t) { - return t ? -20 : -this.margin.top; - }), - (r.prototype.getXAxisClipX = function() { - return this.getAxisClipX(!this.config.axis_rotated); - }), - (r.prototype.getXAxisClipY = function() { - return this.getAxisClipY(!this.config.axis_rotated); - }), - (r.prototype.getYAxisClipX = function() { - return this.config.axis_y_inner - ? -1 - : this.getAxisClipX(this.config.axis_rotated); - }), - (r.prototype.getYAxisClipY = function() { - return this.getAxisClipY(this.config.axis_rotated); - }), - (r.prototype.getAxisClipWidth = function(t) { - var e = Math.max(30, this.margin.left), - n = Math.max(30, this.margin.right); - return t ? this.width + 2 + e + n : this.margin.left + 20; - }), - (r.prototype.getAxisClipHeight = function(t) { - return ( - (t ? this.margin.bottom : this.margin.top + this.height) + 20 - ); - }), - (r.prototype.getXAxisClipWidth = function() { - return this.getAxisClipWidth(!this.config.axis_rotated); - }), - (r.prototype.getXAxisClipHeight = function() { - return this.getAxisClipHeight(!this.config.axis_rotated); - }), - (r.prototype.getYAxisClipWidth = function() { - return ( - this.getAxisClipWidth(this.config.axis_rotated) + - (this.config.axis_y_inner ? 20 : 0) - ); - }), - (r.prototype.getYAxisClipHeight = function() { - return this.getAxisClipHeight(this.config.axis_rotated); - }), - (r.prototype.generateColor = function() { - var t = this.config, - e = this.d3, - n = t.data_colors, - r = b(t.color_pattern) ? t.color_pattern : e.schemeCategory10, - i = t.data_color, - o = []; - return function(t) { - var e, - a = t.id || (t.data && t.data.id) || t; - return ( - n[a] instanceof Function - ? (e = n[a](t)) - : n[a] - ? (e = n[a]) - : (o.indexOf(a) < 0 && o.push(a), - (e = r[o.indexOf(a) % r.length]), - (n[a] = e)), - i instanceof Function ? i(e, t) : e - ); - }; - }), - (r.prototype.generateLevelColor = function() { - var t = this.config, - e = t.color_pattern, - n = t.color_threshold, - r = 'value' === n.unit, - i = n.values && n.values.length ? n.values : [], - o = n.max || 100; - return b(n) && b(e) - ? function(t) { - var n, - a = e[e.length - 1]; - for (n = 0; n < i.length; n++) - if ((r ? t : (100 * t) / o) < i[n]) { - a = e[n]; - break; - } - return a; - } - : null; - }), - (r.prototype.getDefaultConfig = function() { - var t = { - bindto: '#chart', - svg_classname: void 0, - size_width: void 0, - size_height: void 0, - padding_left: void 0, - padding_right: void 0, - padding_top: void 0, - padding_bottom: void 0, - resize_auto: !0, - zoom_enabled: !1, - zoom_initialRange: void 0, - zoom_type: 'scroll', - zoom_disableDefaultBehavior: !1, - zoom_privileged: !1, - zoom_rescale: !1, - zoom_onzoom: function() {}, - zoom_onzoomstart: function() {}, - zoom_onzoomend: function() {}, - zoom_x_min: void 0, - zoom_x_max: void 0, - interaction_brighten: !0, - interaction_enabled: !0, - onmouseover: function() {}, - onmouseout: function() {}, - onresize: function() {}, - onresized: function() {}, - oninit: function() {}, - onrendered: function() {}, - transition_duration: 350, - data_epochs: 'epochs', - data_x: void 0, - data_xs: {}, - data_xFormat: '%Y-%m-%d', - data_xLocaltime: !0, - data_xSort: !0, - data_idConverter: function(t) { - return t; - }, - data_names: {}, - data_classes: {}, - data_groups: [], - data_axes: {}, - data_type: void 0, - data_types: {}, - data_labels: {}, - data_order: 'desc', - data_regions: {}, - data_color: void 0, - data_colors: {}, - data_hide: !1, - data_filter: void 0, - data_selection_enabled: !1, - data_selection_grouped: !1, - data_selection_isselectable: function() { - return !0; - }, - data_selection_multiple: !0, - data_selection_draggable: !1, - data_stack_normalize: !1, - data_onclick: function() {}, - data_onmouseover: function() {}, - data_onmouseout: function() {}, - data_onselected: function() {}, - data_onunselected: function() {}, - data_url: void 0, - data_headers: void 0, - data_json: void 0, - data_rows: void 0, - data_columns: void 0, - data_mimeType: void 0, - data_keys: void 0, - data_empty_label_text: '', - subchart_show: !1, - subchart_size_height: 60, - subchart_axis_x_show: !0, - subchart_onbrush: function() {}, - color_pattern: [], - color_threshold: {}, - legend_show: !0, - legend_hide: !1, - legend_position: 'bottom', - legend_inset_anchor: 'top-left', - legend_inset_x: 10, - legend_inset_y: 0, - legend_inset_step: void 0, - legend_item_onclick: void 0, - legend_item_onmouseover: void 0, - legend_item_onmouseout: void 0, - legend_equally: !1, - legend_padding: 0, - legend_item_tile_width: 10, - legend_item_tile_height: 10, - axis_rotated: !1, - axis_x_show: !0, - axis_x_type: 'indexed', - axis_x_localtime: !0, - axis_x_categories: [], - axis_x_tick_centered: !1, - axis_x_tick_format: void 0, - axis_x_tick_culling: {}, - axis_x_tick_culling_max: 10, - axis_x_tick_count: void 0, - axis_x_tick_fit: !0, - axis_x_tick_values: null, - axis_x_tick_rotate: 0, - axis_x_tick_outer: !0, - axis_x_tick_multiline: !0, - axis_x_tick_multilineMax: 0, - axis_x_tick_width: null, - axis_x_max: void 0, - axis_x_min: void 0, - axis_x_padding: {}, - axis_x_height: void 0, - axis_x_selection: void 0, - axis_x_label: {}, - axis_x_inner: void 0, - axis_y_show: !0, - axis_y_type: 'linear', - axis_y_max: void 0, - axis_y_min: void 0, - axis_y_inverted: !1, - axis_y_center: void 0, - axis_y_inner: void 0, - axis_y_label: {}, - axis_y_tick_format: void 0, - axis_y_tick_outer: !0, - axis_y_tick_values: null, - axis_y_tick_rotate: 0, - axis_y_tick_count: void 0, - axis_y_tick_time_type: void 0, - axis_y_tick_time_interval: void 0, - axis_y_padding: {}, - axis_y_default: void 0, - axis_y2_show: !1, - axis_y2_type: 'linear', - axis_y2_max: void 0, - axis_y2_min: void 0, - axis_y2_inverted: !1, - axis_y2_center: void 0, - axis_y2_inner: void 0, - axis_y2_label: {}, - axis_y2_tick_format: void 0, - axis_y2_tick_outer: !0, - axis_y2_tick_values: null, - axis_y2_tick_count: void 0, - axis_y2_padding: {}, - axis_y2_default: void 0, - grid_x_show: !1, - grid_x_type: 'tick', - grid_x_lines: [], - grid_y_show: !1, - grid_y_lines: [], - grid_y_ticks: 10, - grid_focus_show: !0, - grid_lines_front: !0, - point_show: !0, - point_r: 2.5, - point_sensitivity: 10, - point_focus_expand_enabled: !0, - point_focus_expand_r: void 0, - point_select_r: void 0, - line_connectNull: !1, - line_step_type: 'step', - bar_width: void 0, - bar_width_ratio: 0.6, - bar_width_max: void 0, - bar_zerobased: !0, - bar_space: 0, - area_zerobased: !0, - area_above: !1, - pie_label_show: !0, - pie_label_format: void 0, - pie_label_threshold: 0.05, - pie_label_ratio: void 0, - pie_expand: {}, - pie_expand_duration: 50, - pie_padAngle: 0, - gauge_fullCircle: !1, - gauge_label_show: !0, - gauge_labelLine_show: !0, - gauge_label_format: void 0, - gauge_min: 0, - gauge_max: 100, - gauge_startingAngle: (-1 * Math.PI) / 2, - gauge_label_extents: void 0, - gauge_units: void 0, - gauge_width: void 0, - gauge_arcs_minWidth: 5, - gauge_expand: {}, - gauge_expand_duration: 50, - donut_label_show: !0, - donut_label_format: void 0, - donut_label_threshold: 0.05, - donut_label_ratio: void 0, - donut_width: void 0, - donut_title: '', - donut_expand: {}, - donut_expand_duration: 50, - donut_padAngle: 0, - spline_interpolation_type: 'cardinal', - stanford_lines: [], - stanford_regions: [], - stanford_texts: [], - stanford_scaleMin: void 0, - stanford_scaleMax: void 0, - stanford_scaleWidth: void 0, - stanford_scaleFormat: void 0, - stanford_scaleValues: void 0, - stanford_colors: void 0, - stanford_padding: { top: 0, right: 0, bottom: 0, left: 0 }, - regions: [], - tooltip_show: !0, - tooltip_grouped: !0, - tooltip_order: void 0, - tooltip_format_title: void 0, - tooltip_format_name: void 0, - tooltip_format_value: void 0, - tooltip_horizontal: void 0, - tooltip_position: void 0, - tooltip_contents: function(t, e, n, r) { - return this.getTooltipContent - ? this.getTooltipContent(t, e, n, r) - : ''; - }, - tooltip_init_show: !1, - tooltip_init_x: 0, - tooltip_init_position: { top: '0px', left: '50px' }, - tooltip_onshow: function() {}, - tooltip_onhide: function() {}, - title_text: void 0, - title_padding: { top: 0, right: 0, bottom: 0, left: 0 }, - title_position: 'top-center' - }; - return ( - Object.keys(this.additionalConfig).forEach(function(e) { - t[e] = this.additionalConfig[e]; - }, this), - t - ); - }), - (r.prototype.additionalConfig = {}), - (r.prototype.loadConfig = function(e) { - var n, - r, - i, - o = this.config; - Object.keys(o).forEach(function(a) { - (n = e), - (r = a.split('_')), - (i = (function e() { - var i = r.shift(); - return i && n && 'object' === t(n) && i in n - ? ((n = n[i]), e()) - : i - ? void 0 - : n; - })()), - d(i) && (o[a] = i); - }); - }), - (r.prototype.convertUrlToData = function(t, e, n, r, i) { - var o, - a, - s = this, - u = e || 'csv'; - 'json' === u - ? ((o = s.d3.json), (a = s.convertJsonToData)) - : 'tsv' === u - ? ((o = s.d3.tsv), (a = s.convertXsvToData)) - : ((o = s.d3.csv), (a = s.convertXsvToData)), - o(t, n) - .then(function(t) { - i.call(s, a.call(s, t, r)); - }) - .catch(function(t) { - throw t; - }); - }), - (r.prototype.convertXsvToData = function(t) { - var e = t.columns; - return 0 === t.length - ? { - keys: e, - rows: [ - e.reduce(function(t, e) { - return Object.assign( - t, - (function(t, e, n) { - return ( - e in t - ? Object.defineProperty(t, e, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (t[e] = n), - t - ); - })({}, e, null) - ); - }, {}) - ] - } - : { keys: e, rows: [].concat(t) }; - }), - (r.prototype.convertJsonToData = function(t, e) { - var n, - r, - i = this, - o = []; - return ( - e - ? (e.x - ? ((n = e.value.concat(e.x)), (i.config.data_x = e.x)) - : (n = e.value), - o.push(n), - t.forEach(function(t) { - var e = []; - n.forEach(function(n) { - var r = i.findValueInJson(t, n); - m(r) && (r = null), e.push(r); - }), - o.push(e); - }), - (r = i.convertRowsToData(o))) - : (Object.keys(t).forEach(function(e) { - o.push([e].concat(t[e])); - }), - (r = i.convertColumnsToData(o))), - r - ); - }), - (r.prototype.findValueInJson = function(t, e) { - if (e in t) return t[e]; - for ( - var n = (e = (e = e.replace(/\[(\w+)\]/g, '.$1')).replace( - /^\./, - '' - )).split('.'), - r = 0; - r < n.length; - ++r - ) { - var i = n[r]; - if (!(i in t)) return; - t = t[i]; - } - return t; - }), - (r.prototype.convertRowsToData = function(t) { - for (var e = [], n = t[0], r = 1; r < t.length; r++) { - for (var i = {}, o = 0; o < t[r].length; o++) { - if (m(t[r][o])) - throw new Error( - 'Source data is missing a component at (' + - r + - ',' + - o + - ')!' - ); - i[n[o]] = t[r][o]; - } - e.push(i); - } - return { keys: n, rows: e }; - }), - (r.prototype.convertColumnsToData = function(t) { - for (var e = [], n = [], r = 0; r < t.length; r++) { - for (var i = t[r][0], o = 1; o < t[r].length; o++) { - if ((m(e[o - 1]) && (e[o - 1] = {}), m(t[r][o]))) - throw new Error( - 'Source data is missing a component at (' + - r + - ',' + - o + - ')!' - ); - e[o - 1][i] = t[r][o]; - } - n.push(i); - } - return { keys: n, rows: e }; - }), - (r.prototype.convertDataToTargets = function(t, e) { - var n, - r, - i, - o, - a, - s = this, - u = s.config; - if ( - (f(t) ? (o = Object.keys(t[0])) : ((o = t.keys), (t = t.rows)), - (i = o.filter(s.isX, s)), - s.isStanfordGraphType()) - ) { - if ( - ((a = o.filter(s.isEpochs, s)), - (r = o.filter(s.isNotXAndNotEpochs, s)), - 1 !== i.length || 1 !== a.length || 1 !== r.length) - ) - throw new Error( - "You must define the 'x' key name and the 'epochs' for Stanford Diagrams" - ); - } else r = o.filter(s.isNotX, s); - return ( - r.forEach(function(n) { - var r = s.getXKey(n); - s.isCustomX() || s.isTimeSeries() - ? i.indexOf(r) >= 0 - ? (s.data.xs[n] = (e && s.data.xs[n] - ? s.data.xs[n] - : [] - ).concat( - t - .map(function(t) { - return t[r]; - }) - .filter(y) - .map(function(t, e) { - return s.generateTargetX(t, n, e); - }) - )) - : u.data_x - ? (s.data.xs[n] = s.getOtherTargetXs()) - : b(u.data_xs) && - (s.data.xs[n] = s.getXValuesOfXKey(r, s.data.targets)) - : (s.data.xs[n] = t.map(function(t, e) { - return e; - })); - }), - r.forEach(function(t) { - if (!s.data.xs[t]) - throw new Error('x is not defined for id = "' + t + '".'); - }), - (n = r.map(function(e, n) { - var r = u.data_idConverter(e); - return { - id: r, - id_org: e, - values: t - .map(function(t, i) { - var o, - l, - c = t[s.getXKey(e)], - f = null === t[e] || isNaN(t[e]) ? null : +t[e]; - return ( - s.isCustomX() && s.isCategorized() && !m(c) - ? (0 === n && 0 === i && (u.axis_x_categories = []), - -1 === (o = u.axis_x_categories.indexOf(c)) && - ((o = u.axis_x_categories.length), - u.axis_x_categories.push(c))) - : (o = s.generateTargetX(c, e, i)), - (m(t[e]) || s.data.xs[e].length <= i) && (o = void 0), - (l = { x: o, value: f, id: r }), - s.isStanfordGraphType() && (l.epochs = t[a]), - l - ); - }) - .filter(function(t) { - return d(t.x); - }) - }; - })).forEach(function(t) { - var e; - u.data_xSort && - (t.values = t.values.sort(function(t, e) { - return ( - (t.x || 0 === t.x ? t.x : 1 / 0) - - (e.x || 0 === e.x ? e.x : 1 / 0) - ); - })), - (e = 0), - t.values.forEach(function(t) { - t.index = e++; - }), - s.data.xs[t.id].sort(function(t, e) { - return t - e; - }); - }), - (s.hasNegativeValue = s.hasNegativeValueInTargets(n)), - (s.hasPositiveValue = s.hasPositiveValueInTargets(n)), - u.data_type && - s.setTargetType( - s.mapToIds(n).filter(function(t) { - return !(t in u.data_types); - }), - u.data_type - ), - n.forEach(function(t) { - s.addCache(t.id_org, t); - }), - n - ); - }), - (r.prototype.isEpochs = function(t) { - var e = this.config; - return e.data_epochs && t === e.data_epochs; - }), - (r.prototype.isX = function(t) { - var e = this.config; - return ( - (e.data_x && t === e.data_x) || - (b(e.data_xs) && - (function(t, e) { - var n = !1; - return ( - Object.keys(t).forEach(function(r) { - t[r] === e && (n = !0); - }), - n - ); - })(e.data_xs, t)) - ); - }), - (r.prototype.isNotX = function(t) { - return !this.isX(t); - }), - (r.prototype.isNotXAndNotEpochs = function(t) { - return !this.isX(t) && !this.isEpochs(t); - }), - (r.prototype.isStackNormalized = function() { - return ( - this.config.data_stack_normalize && - this.config.data_groups.length > 0 - ); - }), - (r.prototype.isAxisNormalized = function(t) { - var e = this; - return ( - !!e.isStackNormalized() && - e.data.targets - .filter(function(n) { - return e.axis.getId(n.id) === t; - }) - .some(function(t) { - return e.isTargetNormalized(t.id); - }) - ); - }), - (r.prototype.isTargetNormalized = function(t) { - return ( - this.isStackNormalized() && - this.config.data_groups.some(function(e) { - return e.includes(t); - }) - ); - }), - (r.prototype.getXKey = function(t) { - var e = this.config; - return e.data_x ? e.data_x : b(e.data_xs) ? e.data_xs[t] : null; - }), - (r.prototype.getTotalPerIndex = function(t) { - var e = this; - if (!e.isStackNormalized()) return null; - var n = e.getFromCache('getTotalPerIndex'); - if (void 0 !== n) return n[t]; - var r = { y: [], y2: [] }; - return ( - e.data.targets - .filter(function(t) { - return e.isTargetNormalized(t.id); - }) - .filter(function(t) { - return e.isTargetToShow(t.id); - }) - .forEach(function(t) { - var n = r[e.axis.getId(t.id)]; - t.values.forEach(function(t, e) { - n[e] || (n[e] = 0), (n[e] += g(t.value) ? t.value : 0); - }); - }), - e.addToCache('getTotalPerIndex', r), - r[t] - ); - }), - (r.prototype.getTotalDataSum = function() { - var t = this, - n = t.getFromCache('getTotalDataSum'); - if (void 0 !== n) return n; - var r, - i, - o = ((r = t.data.targets - .filter(function(e) { - return t.isTargetToShow(e.id); - }) - .map(function(t) { - return t.values; - })), - Array.isArray(r) ? (i = []).concat.apply(i, e(r)) : []) - .map(function(t) { - return t.value; - }) - .reduce(function(t, e) { - return t + e; - }, 0); - return t.addToCache('getTotalDataSum', o), o; - }), - (r.prototype.getXValuesOfXKey = function(t, e) { - var n, - r = this; - return ( - (e && b(e) ? r.mapToIds(e) : []).forEach(function(e) { - r.getXKey(e) === t && (n = r.data.xs[e]); - }), - n - ); - }), - (r.prototype.getXValue = function(t, e) { - return t in this.data.xs && this.data.xs[t] && y(this.data.xs[t][e]) - ? this.data.xs[t][e] - : e; - }), - (r.prototype.getOtherTargetXs = function() { - var t = Object.keys(this.data.xs); - return t.length ? this.data.xs[t[0]] : null; - }), - (r.prototype.getOtherTargetX = function(t) { - var e = this.getOtherTargetXs(); - return e && t < e.length ? e[t] : null; - }), - (r.prototype.addXs = function(t) { - var e = this; - Object.keys(t).forEach(function(n) { - e.config.data_xs[n] = t[n]; - }); - }), - (r.prototype.addName = function(t) { - var e; - return ( - t && - ((e = this.config.data_names[t.id]), - (t.name = void 0 !== e ? e : t.id)), - t - ); - }), - (r.prototype.getValueOnIndex = function(t, e) { - var n = t.filter(function(t) { - return t.index === e; - }); - return n.length ? n[0] : null; - }), - (r.prototype.updateTargetX = function(t, e) { - var n = this; - t.forEach(function(t) { - t.values.forEach(function(r, i) { - r.x = n.generateTargetX(e[i], t.id, i); - }), - (n.data.xs[t.id] = e); - }); - }), - (r.prototype.updateTargetXs = function(t, e) { - var n = this; - t.forEach(function(t) { - e[t.id] && n.updateTargetX([t], e[t.id]); - }); - }), - (r.prototype.generateTargetX = function(t, e, n) { - var r = this; - return r.isTimeSeries() - ? t - ? r.parseDate(t) - : r.parseDate(r.getXValue(e, n)) - : r.isCustomX() && !r.isCategorized() - ? y(t) - ? +t - : r.getXValue(e, n) - : n; - }), - (r.prototype.cloneTarget = function(t) { - return { - id: t.id, - id_org: t.id_org, - values: t.values.map(function(t) { - return { x: t.x, value: t.value, id: t.id }; - }) - }; - }), - (r.prototype.getMaxDataCount = function() { - return this.d3.max(this.data.targets, function(t) { - return t.values.length; - }); - }), - (r.prototype.mapToIds = function(t) { - return t.map(function(t) { - return t.id; - }); - }), - (r.prototype.mapToTargetIds = function(t) { - return t ? [].concat(t) : this.mapToIds(this.data.targets); - }), - (r.prototype.hasTarget = function(t, e) { - var n, - r = this.mapToIds(t); - for (n = 0; n < r.length; n++) if (r[n] === e) return !0; - return !1; - }), - (r.prototype.isTargetToShow = function(t) { - return this.hiddenTargetIds.indexOf(t) < 0; - }), - (r.prototype.isLegendToShow = function(t) { - return this.hiddenLegendIds.indexOf(t) < 0; - }), - (r.prototype.getTargetsToShow = function() { - return this.filterTargetsToShow(this.data.targets); - }), - (r.prototype.filterTargetsToShow = function(t) { - var e = this; - return t.filter(function(t) { - return e.isTargetToShow(t.id); - }); - }), - (r.prototype.getTargets = function() { - return this.data.targets; - }), - (r.prototype.mapTargetsToUniqueXs = function(t) { - var e = this.d3 - .set( - this.d3.merge( - t.map(function(t) { - return t.values.map(function(t) { - return +t.x; - }); - }) - ) - ) - .values(); - return (e = this.isTimeSeries() - ? e.map(function(t) { - return new Date(+t); - }) - : e.map(function(t) { - return +t; - })).sort(function(t, e) { - return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; - }); - }), - (r.prototype.addHiddenTargetIds = function(t) { - t = t instanceof Array ? t : new Array(t); - for (var e = 0; e < t.length; e++) - this.hiddenTargetIds.indexOf(t[e]) < 0 && - (this.hiddenTargetIds = this.hiddenTargetIds.concat(t[e])); - this.resetCache(); - }), - (r.prototype.removeHiddenTargetIds = function(t) { - (this.hiddenTargetIds = this.hiddenTargetIds.filter(function(e) { - return t.indexOf(e) < 0; - })), - this.resetCache(); - }), - (r.prototype.addHiddenLegendIds = function(t) { - t = t instanceof Array ? t : new Array(t); - for (var e = 0; e < t.length; e++) - this.hiddenLegendIds.indexOf(t[e]) < 0 && - (this.hiddenLegendIds = this.hiddenLegendIds.concat(t[e])); - }), - (r.prototype.removeHiddenLegendIds = function(t) { - this.hiddenLegendIds = this.hiddenLegendIds.filter(function(e) { - return t.indexOf(e) < 0; - }); - }), - (r.prototype.getValuesAsIdKeyed = function(t) { - var e = {}; - return ( - t.forEach(function(t) { - (e[t.id] = []), - t.values.forEach(function(n) { - e[t.id].push(n.value); - }); - }), - e - ); - }), - (r.prototype.checkValueInTargets = function(t, e) { - var n, - r, - i, - o = Object.keys(t); - for (n = 0; n < o.length; n++) - for (i = t[o[n]].values, r = 0; r < i.length; r++) - if (e(i[r].value)) return !0; - return !1; - }), - (r.prototype.hasNegativeValueInTargets = function(t) { - return this.checkValueInTargets(t, function(t) { - return t < 0; - }); - }), - (r.prototype.hasPositiveValueInTargets = function(t) { - return this.checkValueInTargets(t, function(t) { - return t > 0; - }); - }), - (r.prototype.isOrderDesc = function() { - var t = this.config; - return ( - 'string' == typeof t.data_order && - 'desc' === t.data_order.toLowerCase() - ); - }), - (r.prototype.isOrderAsc = function() { - var t = this.config; - return ( - 'string' == typeof t.data_order && - 'asc' === t.data_order.toLowerCase() - ); - }), - (r.prototype.getOrderFunction = function() { - var t = this.config, - e = this.isOrderAsc(), - n = this.isOrderDesc(); - if (e || n) { - var r = function(t, e) { - return t + Math.abs(e.value); - }; - return function(t, n) { - var i = t.values.reduce(r, 0), - o = n.values.reduce(r, 0); - return e ? o - i : i - o; - }; - } - if (p(t.data_order)) return t.data_order; - if (f(t.data_order)) { - var i = t.data_order; - return function(t, e) { - return i.indexOf(t.id) - i.indexOf(e.id); - }; - } - }), - (r.prototype.orderTargets = function(t) { - var e = this.getOrderFunction(); - return e && t.sort(e), t; - }), - (r.prototype.filterByIndex = function(t, e) { - return this.d3.merge( - t.map(function(t) { - return t.values.filter(function(t) { - return t.index === e; - }); - }) - ); - }), - (r.prototype.filterByX = function(t, e) { - return this.d3 - .merge( - t.map(function(t) { - return t.values; - }) - ) - .filter(function(t) { - return t.x - e == 0; - }); - }), - (r.prototype.filterRemoveNull = function(t) { - return t.filter(function(t) { - return y(t.value); - }); - }), - (r.prototype.filterByXDomain = function(t, e) { - return t.map(function(t) { - return { - id: t.id, - id_org: t.id_org, - values: t.values.filter(function(t) { - return e[0] <= t.x && t.x <= e[1]; - }) - }; - }); - }), - (r.prototype.hasDataLabel = function() { - var e = this.config; - return ( - !('boolean' != typeof e.data_labels || !e.data_labels) || - !('object' !== t(e.data_labels) || !b(e.data_labels)) - ); - }), - (r.prototype.getDataLabelLength = function(t, e, n) { - var r = this, - i = [0, 0]; - return ( - r.selectChart - .select('svg') - .selectAll('.dummy') - .data([t, e]) - .enter() - .append('text') - .text(function(t) { - return r.dataLabelFormat(t.id)(t); - }) - .each(function(t, e) { - i[e] = 1.3 * c(this)[n]; - }) - .remove(), - i - ); - }), - (r.prototype.isNoneArc = function(t) { - return this.hasTarget(this.data.targets, t.id); - }), - (r.prototype.isArc = function(t) { - return 'data' in t && this.hasTarget(this.data.targets, t.data.id); - }), - (r.prototype.findClosestFromTargets = function(t, e) { - var n = this, - r = t - .map(function(t) { - return n.findClosest( - t.values, - e, - n.config.tooltip_horizontal - ? n.horizontalDistance.bind(n) - : n.dist.bind(n), - n.config.point_sensitivity - ); - }) - .filter(function(t) { - return t; - }); - return 0 === r.length - ? void 0 - : 1 === r.length - ? r[0] - : n.findClosest(r, e, n.dist.bind(n)); - }), - (r.prototype.findClosestFromTargetsByX = function(t, e) { - var n, r; - return ( - t.forEach(function(t) { - t.values.forEach(function(t) { - var i = Math.abs(e - t.x); - (void 0 === r || i < r) && ((n = t), (r = i)); - }); - }), - n - ); - }), - (r.prototype.findClosest = function(t, e, n) { - var r, - i = - arguments.length > 3 && void 0 !== arguments[3] - ? arguments[3] - : 1 / 0, - o = this; - return ( - t - .filter(function(t) { - return t && o.isBarType(t.id); - }) - .forEach(function(t) { - if (!r) { - var n = o.main - .select( - '.' + - S.bars + - o.getTargetSelectorSuffix(t.id) + - ' .' + - S.bar + - '-' + - t.index - ) - .node(); - o.isWithinBar(e, n) && (r = t); - } - }), - t - .filter(function(t) { - return t && !o.isBarType(t.id); - }) - .forEach(function(t) { - var o = n(t, e); - o < i && ((i = o), (r = t)); - }), - r - ); - }), - (r.prototype.dist = function(t, e) { - var n = this.config, - r = n.axis_rotated ? 1 : 0, - i = n.axis_rotated ? 0 : 1, - o = this.circleY(t, t.index), - a = this.x(t.x); - return Math.sqrt(Math.pow(a - e[r], 2) + Math.pow(o - e[i], 2)); - }), - (r.prototype.horizontalDistance = function(t, e) { - var n = this.config.axis_rotated ? 1 : 0, - r = this.x(t.x); - return Math.abs(r - e[n]); - }), - (r.prototype.convertValuesToStep = function(t) { - var e, - n = [].concat(t); - if (!this.isCategorized()) return t; - for (e = t.length + 1; 0 < e; e--) n[e] = n[e - 1]; - return ( - (n[0] = { x: n[0].x - 1, value: n[0].value, id: n[0].id }), - (n[t.length + 1] = { - x: n[t.length].x + 1, - value: n[t.length].value, - id: n[t.length].id - }), - n - ); - }), - (r.prototype.getRatio = function(t, e) { - var n = - arguments.length > 2 && void 0 !== arguments[2] && arguments[2], - r = this, - i = r.api, - o = 0; - if (e && i.data.shown.call(i).length) - if (((o = e.ratio || e.value), 'arc' === t)) - if (r.hasType('gauge')) - o = - (e.endAngle - e.startAngle) / - (Math.PI * (r.config.gauge_fullCircle ? 2 : 1)); - else { - var a = r.getTotalDataSum(); - o = e.value / a; - } - else if ('index' === t) { - var s = r.getTotalPerIndex(r.axis.getId(e.id)); - (e.ratio = - g(e.value) && s && s[e.index] > 0 ? e.value / s[e.index] : 0), - (o = e.ratio); - } - return n && o ? 100 * o : o; - }), - (r.prototype.updateDataAttributes = function(t, e) { - var n = this.config['data_' + t]; - return ( - void 0 === e || - (Object.keys(e).forEach(function(t) { - n[t] = e[t]; - }), - this.redraw({ withLegend: !0 })), - n - ); - }), - (r.prototype.load = function(t, e) { - var n = this; - t && - (e.filter && (t = t.filter(e.filter)), - (e.type || e.types) && - t.forEach(function(t) { - var r = e.types && e.types[t.id] ? e.types[t.id] : e.type; - n.setTargetType(t.id, r); - }), - n.data.targets.forEach(function(e) { - for (var n = 0; n < t.length; n++) - if (e.id === t[n].id) { - (e.values = t[n].values), t.splice(n, 1); - break; - } - }), - (n.data.targets = n.data.targets.concat(t))), - n.updateTargets(n.data.targets), - n.redraw({ - withUpdateOrgXDomain: !0, - withUpdateXDomain: !0, - withLegend: !0 - }), - e.done && e.done(); - }), - (r.prototype.loadFromArgs = function(t) { - var e = this; - e.resetCache(), - t.data - ? e.load(e.convertDataToTargets(t.data), t) - : t.url - ? e.convertUrlToData( - t.url, - t.mimeType, - t.headers, - t.keys, - function(n) { - e.load(e.convertDataToTargets(n), t); - } - ) - : t.json - ? e.load( - e.convertDataToTargets(e.convertJsonToData(t.json, t.keys)), - t - ) - : t.rows - ? e.load(e.convertDataToTargets(e.convertRowsToData(t.rows)), t) - : t.columns - ? e.load( - e.convertDataToTargets(e.convertColumnsToData(t.columns)), - t - ) - : e.load(null, t); - }), - (r.prototype.unload = function(t, e) { - var n = this; - n.resetCache(), - e || (e = function() {}), - (t = t.filter(function(t) { - return n.hasTarget(n.data.targets, t); - })) && 0 !== t.length - ? (n.svg - .selectAll( - t.map(function(t) { - return n.selectorTarget(t); - }) - ) - .transition() - .style('opacity', 0) - .remove() - .call(n.endall, e), - t.forEach(function(t) { - (n.withoutFadeIn[t] = !1), - n.legend && - n.legend - .selectAll( - '.' + S.legendItem + n.getTargetSelectorSuffix(t) - ) - .remove(), - (n.data.targets = n.data.targets.filter(function(e) { - return e.id !== t; - })); - })) - : e(); - }), - (r.prototype.getYDomainMin = function(t) { - var e, - n, - r, - i, - o, - a, - s = this, - u = s.config, - l = s.mapToIds(t), - c = s.getValuesAsIdKeyed(t); - if (u.data_groups.length > 0) - for ( - a = s.hasNegativeValueInTargets(t), e = 0; - e < u.data_groups.length; - e++ - ) - if ( - 0 !== - (i = u.data_groups[e].filter(function(t) { - return l.indexOf(t) >= 0; - })).length - ) - for ( - r = i[0], - a && - c[r] && - c[r].forEach(function(t, e) { - c[r][e] = t < 0 ? t : 0; - }), - n = 1; - n < i.length; - n++ - ) - (o = i[n]), - c[o] && - c[o].forEach(function(t, e) { - s.axis.getId(o) !== s.axis.getId(r) || - !c[r] || - (a && +t > 0) || - (c[r][e] += +t); - }); - return s.d3.min( - Object.keys(c).map(function(t) { - return s.d3.min(c[t]); - }) - ); - }), - (r.prototype.getYDomainMax = function(t) { - var e, - n, - r, - i, - o, - a, - s = this, - u = s.config, - l = s.mapToIds(t), - c = s.getValuesAsIdKeyed(t); - if (u.data_groups.length > 0) - for ( - a = s.hasPositiveValueInTargets(t), e = 0; - e < u.data_groups.length; - e++ - ) - if ( - 0 !== - (i = u.data_groups[e].filter(function(t) { - return l.indexOf(t) >= 0; - })).length - ) - for ( - r = i[0], - a && - c[r] && - c[r].forEach(function(t, e) { - c[r][e] = t > 0 ? t : 0; - }), - n = 1; - n < i.length; - n++ - ) - (o = i[n]), - c[o] && - c[o].forEach(function(t, e) { - s.axis.getId(o) !== s.axis.getId(r) || - !c[r] || - (a && +t < 0) || - (c[r][e] += +t); - }); - return s.d3.max( - Object.keys(c).map(function(t) { - return s.d3.max(c[t]); - }) - ); - }), - (r.prototype.getYDomain = function(t, e, n) { - var r = this, - i = r.config; - if (r.isAxisNormalized(e)) return [0, 100]; - var o, - a, - u, - l, - c, - f, - d, - h, - p, - g, - v = t.filter(function(t) { - return r.axis.getId(t.id) === e; - }), - m = n ? r.filterByXDomain(v, n) : v, - _ = 'y2' === e ? i.axis_y2_min : i.axis_y_min, - x = 'y2' === e ? i.axis_y2_max : i.axis_y_max, - w = r.getYDomainMin(m), - S = r.getYDomainMax(m), - E = 'y2' === e ? i.axis_y2_center : i.axis_y_center, - k = - (r.hasType('bar', m) && i.bar_zerobased) || - (r.hasType('area', m) && i.area_zerobased), - A = 'y2' === e ? i.axis_y2_inverted : i.axis_y_inverted, - T = r.hasDataLabel() && i.axis_rotated, - C = r.hasDataLabel() && !i.axis_rotated; - if ( - ((w = y(_) ? _ : y(x) ? (w < x ? w : x - 10) : w), - (S = y(x) ? x : y(_) ? (_ < S ? S : _ + 10) : S), - 0 === m.length) - ) - return 'y2' === e ? r.y2.domain() : r.y.domain(); - if ( - (isNaN(w) && (w = 0), - isNaN(S) && (S = w), - w === S && (w < 0 ? (S = 0) : (w = 0)), - (p = w >= 0 && S >= 0), - (g = w <= 0 && S <= 0), - ((y(_) && p) || (y(x) && g)) && (k = !1), - k && (p && (w = 0), g && (S = 0)), - (u = l = 0.1 * (a = Math.abs(S - w))), - void 0 !== E && - ((S = E + (c = Math.max(Math.abs(w), Math.abs(S)))), - (w = E - c)), - T) - ) - (f = r.getDataLabelLength(w, S, 'width')), - (d = s(r.y.range())), - (u += a * ((h = [f[0] / d, f[1] / d])[1] / (1 - h[0] - h[1]))), - (l += a * (h[0] / (1 - h[0] - h[1]))); - else if (C) { - f = r.getDataLabelLength(w, S, 'height'); - var O = r.getY( - i['axis_'.concat(e, '_type')], - [0, i.axis_rotated ? r.width : r.height], - [0, a] - ); - (u += O(f[1])), (l += O(f[0])); - } - return ( - 'y' === e && - b(i.axis_y_padding) && - ((u = r.axis.getPadding(i.axis_y_padding, 'top', u, a)), - (l = r.axis.getPadding(i.axis_y_padding, 'bottom', l, a))), - 'y2' === e && - b(i.axis_y2_padding) && - ((u = r.axis.getPadding(i.axis_y2_padding, 'top', u, a)), - (l = r.axis.getPadding(i.axis_y2_padding, 'bottom', l, a))), - k && (p && (l = w), g && (u = -S)), - (o = [w - l, S + u]), - A ? o.reverse() : o - ); - }), - (r.prototype.getXDomainMin = function(t) { - var e = this, - n = e.config; - return d(n.axis_x_min) - ? e.isTimeSeries() - ? this.parseDate(n.axis_x_min) - : n.axis_x_min - : e.d3.min(t, function(t) { - return e.d3.min(t.values, function(t) { - return t.x; - }); - }); - }), - (r.prototype.getXDomainMax = function(t) { - var e = this, - n = e.config; - return d(n.axis_x_max) - ? e.isTimeSeries() - ? this.parseDate(n.axis_x_max) - : n.axis_x_max - : e.d3.max(t, function(t) { - return e.d3.max(t.values, function(t) { - return t.x; - }); - }); - }), - (r.prototype.getXDomainPadding = function(e) { - var n, - r, - i, - o, - a = this.config, - s = e[1] - e[0]; - return ( - (r = this.isCategorized() - ? 0 - : this.hasType('bar') - ? (n = this.getMaxDataCount()) > 1 - ? s / (n - 1) / 2 - : 0.5 - : 0.01 * s), - 'object' === t(a.axis_x_padding) && b(a.axis_x_padding) - ? ((i = y(a.axis_x_padding.left) ? a.axis_x_padding.left : r), - (o = y(a.axis_x_padding.right) ? a.axis_x_padding.right : r)) - : (i = o = - 'number' == typeof a.axis_x_padding ? a.axis_x_padding : r), - { left: i, right: o } - ); - }), - (r.prototype.getXDomain = function(t) { - var e = this, - n = [e.getXDomainMin(t), e.getXDomainMax(t)], - r = n[0], - i = n[1], - o = e.getXDomainPadding(n), - a = 0, - s = 0; - return ( - r - i != 0 || - e.isCategorized() || - (e.isTimeSeries() - ? ((r = new Date(0.5 * r.getTime())), - (i = new Date(1.5 * i.getTime()))) - : ((r = 0 === r ? 1 : 0.5 * r), - (i = 0 === i ? -1 : 1.5 * i))), - (r || 0 === r) && - (a = e.isTimeSeries() - ? new Date(r.getTime() - o.left) - : r - o.left), - (i || 0 === i) && - (s = e.isTimeSeries() - ? new Date(i.getTime() + o.right) - : i + o.right), - [a, s] - ); - }), - (r.prototype.updateXDomain = function(t, e, n, r, i) { - var o = this, - a = o.config; - return ( - n && - (o.x.domain(i || o.d3.extent(o.getXDomain(t))), - (o.orgXDomain = o.x.domain()), - a.zoom_enabled && o.zoom.update(), - o.subX.domain(o.x.domain()), - o.brush && o.brush.updateScale(o.subX)), - e && - o.x.domain( - i || - (!o.brush || o.brush.empty() - ? o.orgXDomain - : o.brush.selectionAsValue()) - ), - r && o.x.domain(o.trimXDomain(o.x.orgDomain())), - o.x.domain() - ); - }), - (r.prototype.trimXDomain = function(t) { - var e = this.getZoomDomain(), - n = e[0], - r = e[1]; - return ( - t[0] <= n && ((t[1] = +t[1] + (n - t[0])), (t[0] = n)), - r <= t[1] && ((t[0] = +t[0] - (t[1] - r)), (t[1] = r)), - t - ); - }), - (r.prototype.drag = function(t) { - var e, - n, - r, - i, - o, - a, - s, - u, - c = this, - f = c.config, - d = c.main, - h = c.d3; - c.hasArcType() || - (f.data_selection_enabled && - f.data_selection_multiple && - ((e = c.dragStart[0]), - (n = c.dragStart[1]), - (r = t[0]), - (i = t[1]), - (o = Math.min(e, r)), - (a = Math.max(e, r)), - (s = f.data_selection_grouped ? c.margin.top : Math.min(n, i)), - (u = f.data_selection_grouped ? c.height : Math.max(n, i)), - d - .select('.' + S.dragarea) - .attr('x', o) - .attr('y', s) - .attr('width', a - o) - .attr('height', u - s), - d - .selectAll('.' + S.shapes) - .selectAll('.' + S.shape) - .filter(function(t) { - return f.data_selection_isselectable(t); - }) - .each(function(t, e) { - var n, - r, - i, - f, - d, - p, - g = h.select(this), - v = g.classed(S.SELECTED), - m = g.classed(S.INCLUDED), - y = !1; - if (g.classed(S.circle)) - (n = 1 * g.attr('cx')), - (r = 1 * g.attr('cy')), - (d = c.togglePoint), - (y = o < n && n < a && s < r && r < u); - else { - if (!g.classed(S.bar)) return; - (n = (p = l(this)).x), - (r = p.y), - (i = p.width), - (f = p.height), - (d = c.togglePath), - (y = !(a < n || n + i < o || u < r || r + f < s)); - } - y ^ m && - (g.classed(S.INCLUDED, !m), - g.classed(S.SELECTED, !v), - d.call(c, !v, g, t, e)); - }))); - }), - (r.prototype.dragstart = function(t) { - var e = this, - n = e.config; - e.hasArcType() || - (n.data_selection_enabled && - ((e.dragStart = t), - e.main - .select('.' + S.chart) - .append('rect') - .attr('class', S.dragarea) - .style('opacity', 0.1), - (e.dragging = !0))); - }), - (r.prototype.dragend = function() { - var t = this, - e = t.config; - t.hasArcType() || - (e.data_selection_enabled && - (t.main - .select('.' + S.dragarea) - .transition() - .duration(100) - .style('opacity', 0) - .remove(), - t.main.selectAll('.' + S.shape).classed(S.INCLUDED, !1), - (t.dragging = !1))); - }), - (r.prototype.getYFormat = function(t) { - var e = this, - n = - t && !e.hasType('gauge') ? e.defaultArcValueFormat : e.yFormat, - r = - t && !e.hasType('gauge') ? e.defaultArcValueFormat : e.y2Format; - return function(t, i, o) { - return ('y2' === e.axis.getId(o) ? r : n).call(e, t, i); - }; - }), - (r.prototype.yFormat = function(t) { - var e = this.config; - return (e.axis_y_tick_format - ? e.axis_y_tick_format - : this.defaultValueFormat)(t); - }), - (r.prototype.y2Format = function(t) { - var e = this.config; - return (e.axis_y2_tick_format - ? e.axis_y2_tick_format - : this.defaultValueFormat)(t); - }), - (r.prototype.defaultValueFormat = function(t) { - return y(t) ? +t : ''; - }), - (r.prototype.defaultArcValueFormat = function(t, e) { - return (100 * e).toFixed(1) + '%'; - }), - (r.prototype.dataLabelFormat = function(e) { - var n = this.config.data_labels, - r = function(t) { - return y(t) ? +t : ''; - }; - return 'function' == typeof n.format - ? n.format - : 'object' === t(n.format) - ? n.format[e] - ? !0 === n.format[e] - ? r - : n.format[e] - : function() { - return ''; - } - : r; - }), - (r.prototype.initGrid = function() { - var t = this, - e = t.config, - n = t.d3; - (t.grid = t.main - .append('g') - .attr('clip-path', t.clipPathForGrid) - .attr('class', S.grid)), - e.grid_x_show && t.grid.append('g').attr('class', S.xgrids), - e.grid_y_show && t.grid.append('g').attr('class', S.ygrids), - e.grid_focus_show && - t.grid - .append('g') - .attr('class', S.xgridFocus) - .append('line') - .attr('class', S.xgridFocus), - (t.xgrid = n.selectAll([])), - e.grid_lines_front || t.initGridLines(); - }), - (r.prototype.initGridLines = function() { - var t = this, - e = t.d3; - (t.gridLines = t.main - .append('g') - .attr('clip-path', t.clipPathForGrid) - .attr('class', S.grid + ' ' + S.gridLines)), - t.gridLines.append('g').attr('class', S.xgridLines), - t.gridLines.append('g').attr('class', S.ygridLines), - (t.xgridLines = e.selectAll([])); - }), - (r.prototype.updateXGrid = function(t) { - var e = this, - n = e.config, - r = e.d3, - i = e.generateGridData(n.grid_x_type, e.x), - o = e.isCategorized() ? e.xAxis.tickOffset() : 0; - (e.xgridAttr = n.axis_rotated - ? { - x1: 0, - x2: e.width, - y1: function(t) { - return e.x(t) - o; - }, - y2: function(t) { - return e.x(t) - o; - } - } - : { - x1: function(t) { - return e.x(t) + o; - }, - x2: function(t) { - return e.x(t) + o; - }, - y1: 0, - y2: e.height - }), - (e.xgridAttr.opacity = function() { - return +r.select(this).attr(n.axis_rotated ? 'y1' : 'x1') === - (n.axis_rotated ? e.height : 0) - ? 0 - : 1; - }); - var a = e.main - .select('.' + S.xgrids) - .selectAll('.' + S.xgrid) - .data(i), - s = a - .enter() - .append('line') - .attr('class', S.xgrid) - .attr('x1', e.xgridAttr.x1) - .attr('x2', e.xgridAttr.x2) - .attr('y1', e.xgridAttr.y1) - .attr('y2', e.xgridAttr.y2) - .style('opacity', 0); - (e.xgrid = s.merge(a)), - t || - e.xgrid - .attr('x1', e.xgridAttr.x1) - .attr('x2', e.xgridAttr.x2) - .attr('y1', e.xgridAttr.y1) - .attr('y2', e.xgridAttr.y2) - .style('opacity', e.xgridAttr.opacity), - a.exit().remove(); - }), - (r.prototype.updateYGrid = function() { - var t = this, - e = t.config, - n = t.yAxis.tickValues() || t.y.ticks(e.grid_y_ticks), - r = t.main - .select('.' + S.ygrids) - .selectAll('.' + S.ygrid) - .data(n), - i = r - .enter() - .append('line') - .attr('class', S.ygrid); - (t.ygrid = i.merge(r)), - t.ygrid - .attr('x1', e.axis_rotated ? t.y : 0) - .attr('x2', e.axis_rotated ? t.y : t.width) - .attr('y1', e.axis_rotated ? 0 : t.y) - .attr('y2', e.axis_rotated ? t.height : t.y), - r.exit().remove(), - t.smoothLines(t.ygrid, 'grid'); - }), - (r.prototype.gridTextAnchor = function(t) { - return t.position ? t.position : 'end'; - }), - (r.prototype.gridTextDx = function(t) { - return 'start' === t.position - ? 4 - : 'middle' === t.position - ? 0 - : -4; - }), - (r.prototype.xGridTextX = function(t) { - return 'start' === t.position - ? -this.height - : 'middle' === t.position - ? -this.height / 2 - : 0; - }), - (r.prototype.yGridTextX = function(t) { - return 'start' === t.position - ? 0 - : 'middle' === t.position - ? this.width / 2 - : this.width; - }), - (r.prototype.updateGrid = function(t) { - var e, - n, - r, - i, - o = this, - a = o.main, - s = o.config, - u = o.xv.bind(o), - l = o.yv.bind(o), - c = o.xGridTextX.bind(o), - f = o.yGridTextX.bind(o); - o.grid.style('visibility', o.hasArcType() ? 'hidden' : 'visible'), - a.select('line.' + S.xgridFocus).style('visibility', 'hidden'), - s.grid_x_show && o.updateXGrid(), - (n = (e = a - .select('.' + S.xgridLines) - .selectAll('.' + S.xgridLine) - .data(s.grid_x_lines)) - .enter() - .append('g') - .attr('class', function(t) { - return S.xgridLine + (t.class ? ' ' + t.class : ''); - })) - .append('line') - .attr('x1', s.axis_rotated ? 0 : u) - .attr('x2', s.axis_rotated ? o.width : u) - .attr('y1', s.axis_rotated ? u : 0) - .attr('y2', s.axis_rotated ? u : o.height) - .style('opacity', 0), - n - .append('text') - .attr('text-anchor', o.gridTextAnchor) - .attr('transform', s.axis_rotated ? '' : 'rotate(-90)') - .attr('x', s.axis_rotated ? f : c) - .attr('y', u) - .attr('dx', o.gridTextDx) - .attr('dy', -5) - .style('opacity', 0), - (o.xgridLines = n.merge(e)), - e - .exit() - .transition() - .duration(t) - .style('opacity', 0) - .remove(), - s.grid_y_show && o.updateYGrid(), - (i = (r = a - .select('.' + S.ygridLines) - .selectAll('.' + S.ygridLine) - .data(s.grid_y_lines)) - .enter() - .append('g') - .attr('class', function(t) { - return S.ygridLine + (t.class ? ' ' + t.class : ''); - })) - .append('line') - .attr('x1', s.axis_rotated ? l : 0) - .attr('x2', s.axis_rotated ? l : o.width) - .attr('y1', s.axis_rotated ? 0 : l) - .attr('y2', s.axis_rotated ? o.height : l) - .style('opacity', 0), - i - .append('text') - .attr('text-anchor', o.gridTextAnchor) - .attr('transform', s.axis_rotated ? 'rotate(-90)' : '') - .attr('x', s.axis_rotated ? c : f) - .attr('y', l) - .attr('dx', o.gridTextDx) - .attr('dy', -5) - .style('opacity', 0), - (o.ygridLines = i.merge(r)), - o.ygridLines - .select('line') - .transition() - .duration(t) - .attr('x1', s.axis_rotated ? l : 0) - .attr('x2', s.axis_rotated ? l : o.width) - .attr('y1', s.axis_rotated ? 0 : l) - .attr('y2', s.axis_rotated ? o.height : l) - .style('opacity', 1), - o.ygridLines - .select('text') - .transition() - .duration(t) - .attr( - 'x', - s.axis_rotated ? o.xGridTextX.bind(o) : o.yGridTextX.bind(o) - ) - .attr('y', l) - .text(function(t) { - return t.text; - }) - .style('opacity', 1), - r - .exit() - .transition() - .duration(t) - .style('opacity', 0) - .remove(); - }), - (r.prototype.redrawGrid = function(t, e) { - var n = this, - r = n.config, - i = n.xv.bind(n), - o = n.xgridLines.select('line'), - a = n.xgridLines.select('text'); - return [ - (t ? o.transition(e) : o) - .attr('x1', r.axis_rotated ? 0 : i) - .attr('x2', r.axis_rotated ? n.width : i) - .attr('y1', r.axis_rotated ? i : 0) - .attr('y2', r.axis_rotated ? i : n.height) - .style('opacity', 1), - (t ? a.transition(e) : a) - .attr( - 'x', - r.axis_rotated ? n.yGridTextX.bind(n) : n.xGridTextX.bind(n) - ) - .attr('y', i) - .text(function(t) { - return t.text; - }) - .style('opacity', 1) - ]; - }), - (r.prototype.showXGridFocus = function(t) { - var e = this, - n = e.config, - r = t.filter(function(t) { - return t && y(t.value); - }), - i = e.main.selectAll('line.' + S.xgridFocus), - o = e.xx.bind(e); - n.tooltip_show && - (e.hasType('stanford') || - e.hasArcType() || - (i - .style('visibility', 'visible') - .data([r[0]]) - .attr(n.axis_rotated ? 'y1' : 'x1', o) - .attr(n.axis_rotated ? 'y2' : 'x2', o), - e.smoothLines(i, 'grid'))); - }), - (r.prototype.hideXGridFocus = function() { - this.main - .select('line.' + S.xgridFocus) - .style('visibility', 'hidden'); - }), - (r.prototype.updateXgridFocus = function() { - var t = this.config; - this.main - .select('line.' + S.xgridFocus) - .attr('x1', t.axis_rotated ? 0 : -10) - .attr('x2', t.axis_rotated ? this.width : -10) - .attr('y1', t.axis_rotated ? -10 : 0) - .attr('y2', t.axis_rotated ? -10 : this.height); - }), - (r.prototype.generateGridData = function(t, e) { - var n, - r, - i, - o, - a = [], - s = this.main - .select('.' + S.axisX) - .selectAll('.tick') - .size(); - if ('year' === t) - for ( - r = (n = this.getXDomain())[0].getFullYear(), - i = n[1].getFullYear(), - o = r; - o <= i; - o++ - ) - a.push(new Date(o + '-01-01 00:00:00')); - else - (a = e.ticks(10)).length > s && - (a = a.filter(function(t) { - return ('' + t).indexOf('.') < 0; - })); - return a; - }), - (r.prototype.getGridFilterToRemove = function(t) { - return t - ? function(e) { - var n = !1; - return ( - [].concat(t).forEach(function(t) { - (('value' in t && e.value === t.value) || - ('class' in t && e.class === t.class)) && - (n = !0); - }), - n - ); - } - : function() { - return !0; - }; - }), - (r.prototype.removeGridLines = function(t, e) { - var n = this.config, - r = this.getGridFilterToRemove(t), - i = function(t) { - return !r(t); - }, - o = e ? S.xgridLines : S.ygridLines, - a = e ? S.xgridLine : S.ygridLine; - this.main - .select('.' + o) - .selectAll('.' + a) - .filter(r) - .transition() - .duration(n.transition_duration) - .style('opacity', 0) - .remove(), - e - ? (n.grid_x_lines = n.grid_x_lines.filter(i)) - : (n.grid_y_lines = n.grid_y_lines.filter(i)); - }), - (r.prototype.initEventRect = function() { - var t = this, - e = t.config; - t.main - .select('.' + S.chart) - .append('g') - .attr('class', S.eventRects) - .style('fill-opacity', 0), - (t.eventRect = t.main - .select('.' + S.eventRects) - .append('rect') - .attr('class', S.eventRect)), - e.zoom_enabled && - t.zoom && - (t.eventRect.call(t.zoom).on('dblclick.zoom', null), - e.zoom_initialRange && - t.eventRect - .transition() - .duration(0) - .call( - t.zoom.transform, - t.zoomTransform(e.zoom_initialRange) - )); - }), - (r.prototype.redrawEventRect = function() { - var t = this, - e = t.d3, - n = t.config; - function r() { - t.svg.select('.' + S.eventRect).style('cursor', null), - t.hideXGridFocus(), - t.hideTooltip(), - t.unexpandCircles(), - t.unexpandBars(); - } - var i = function(e, r) { - return ( - r && (t.isBarType(r.id) || t.dist(r, e) < n.point_sensitivity) - ); - }, - o = function(e) { - return e ? t.addName(Object.assign({}, e)) : null; - }; - t.main - .select('.' + S.eventRects) - .style( - 'cursor', - n.zoom_enabled - ? n.axis_rotated - ? 'ns-resize' - : 'ew-resize' - : null - ), - t.eventRect - .attr('x', 0) - .attr('y', 0) - .attr('width', t.width) - .attr('height', t.height) - .on( - 'mouseout', - n.interaction_enabled - ? function() { - n && - (t.hasArcType() || - (t.mouseover && - (n.data_onmouseout.call(t.api, t.mouseover), - (t.mouseover = void 0)), - r())); - } - : null - ) - .on( - 'mousemove', - n.interaction_enabled - ? function() { - if (!t.dragging) { - var a = t.getTargetsToShow(); - if (!t.hasArcType(a)) { - var s, - u = e.mouse(this), - l = o(t.findClosestFromTargets(a, u)), - c = i(u, l); - if ( - (!t.mouseover || - (l && - l.id === t.mouseover.id && - l.index === t.mouseover.index) || - (n.data_onmouseout.call(t.api, t.mouseover), - (t.mouseover = void 0)), - l && - !t.mouseover && - (n.data_onmouseover.call(t.api, l), - (t.mouseover = l)), - t.svg - .select('.' + S.eventRect) - .style('cursor', c ? 'pointer' : null), - !n.tooltip_grouped || t.hasType('stanford', a)) - ) - l && (s = [l]); - else { - var f; - if (l) f = l; - else { - var d = n.axis_rotated ? u[1] : u[0]; - f = t.findClosestFromTargetsByX( - a, - t.x.invert(d) - ); - } - f && (s = t.filterByX(a, f.x)); - } - if (!s || 0 === s.length) return r(); - (s = s.map(o)), - t.showTooltip(s, this), - n.point_focus_expand_enabled && - (t.unexpandCircles(), - s.forEach(function(e) { - t.expandCircles(e.index, e.id, !1); - })), - t.unexpandBars(), - s.forEach(function(e) { - t.expandBars(e.index, e.id, !1); - }), - t.showXGridFocus(s); - } - } - } - : null - ) - .on( - 'click', - n.interaction_enabled - ? function() { - var r = t.getTargetsToShow(); - if (!t.hasArcType(r)) { - var a = e.mouse(this), - s = o(t.findClosestFromTargets(r, a)); - if ( - i(a, s) && - ((!n.data_selection_grouped || t.isStanfordType(s) - ? [s] - : t.filterByX(r, s.x) - ).forEach(function(e) { - t.main - .selectAll( - '.' + - S.shapes + - t.getTargetSelectorSuffix(e.id) - ) - .selectAll('.' + S.shape + '-' + e.index) - .each(function() { - (n.data_selection_grouped || - t.isWithinShape(this, e)) && - t.toggleShape(this, e, e.index); - }); - }), - s) - ) { - var u = t.main - .selectAll( - '.' + S.shapes + t.getTargetSelectorSuffix(s.id) - ) - .select('.' + S.shape + '-' + s.index); - n.data_onclick.call(t.api, s, u.node()); - } - } - } - : null - ) - .call( - n.interaction_enabled && n.data_selection_draggable && t.drag - ? e - .drag() - .on('drag', function() { - t.drag(e.mouse(this)); - }) - .on('start', function() { - t.dragstart(e.mouse(this)); - }) - .on('end', function() { - t.dragend(); - }) - : function() {} - ); - }), - (r.prototype.getMousePosition = function(t) { - return [this.x(t.x), this.getYScale(t.id)(t.value)]; - }), - (r.prototype.dispatchEvent = function(t, e) { - var n = '.' + S.eventRect, - r = this.main.select(n).node(), - i = r.getBoundingClientRect(), - o = i.left + (e ? e[0] : 0), - a = i.top + (e ? e[1] : 0), - s = document.createEvent('MouseEvents'); - s.initMouseEvent( - t, - !0, - !0, - window, - 0, - o, - a, - o, - a, - !1, - !1, - !1, - !1, - 0, - null - ), - r.dispatchEvent(s); - }), - (r.prototype.initLegend = function() { - var t = this; - if ( - ((t.legendItemTextBox = {}), - (t.legendHasRendered = !1), - (t.legend = t.svg - .append('g') - .attr('transform', t.getTranslate('legend'))), - !t.config.legend_show) - ) - return ( - t.legend.style('visibility', 'hidden'), - void (t.hiddenLegendIds = t.mapToIds(t.data.targets)) - ); - t.updateLegendWithDefaults(); - }), - (r.prototype.updateLegendWithDefaults = function() { - this.updateLegend(this.mapToIds(this.data.targets), { - withTransform: !1, - withTransitionForTransform: !1, - withTransition: !1 - }); - }), - (r.prototype.updateSizeForLegend = function(t, e) { - var n = this, - r = n.config, - i = { - top: n.isLegendTop - ? n.getCurrentPaddingTop() + r.legend_inset_y + 5.5 - : n.currentHeight - - t - - n.getCurrentPaddingBottom() - - r.legend_inset_y, - left: n.isLegendLeft - ? n.getCurrentPaddingLeft() + r.legend_inset_x + 0.5 - : n.currentWidth - - e - - n.getCurrentPaddingRight() - - r.legend_inset_x + - 0.5 - }; - n.margin3 = { - top: n.isLegendRight - ? 0 - : n.isLegendInset - ? i.top - : n.currentHeight - t, - right: NaN, - bottom: 0, - left: n.isLegendRight - ? n.currentWidth - e - : n.isLegendInset - ? i.left - : 0 - }; - }), - (r.prototype.transformLegend = function(t) { - (t ? this.legend.transition() : this.legend).attr( - 'transform', - this.getTranslate('legend') - ); - }), - (r.prototype.updateLegendStep = function(t) { - this.legendStep = t; - }), - (r.prototype.updateLegendItemWidth = function(t) { - this.legendItemWidth = t; - }), - (r.prototype.updateLegendItemHeight = function(t) { - this.legendItemHeight = t; - }), - (r.prototype.getLegendWidth = function() { - var t = this; - return t.config.legend_show - ? t.isLegendRight || t.isLegendInset - ? t.legendItemWidth * (t.legendStep + 1) - : t.currentWidth - : 0; - }), - (r.prototype.getLegendHeight = function() { - var t = this, - e = 0; - return ( - t.config.legend_show && - (e = t.isLegendRight - ? t.currentHeight - : Math.max(20, t.legendItemHeight) * (t.legendStep + 1)), - e - ); - }), - (r.prototype.opacityForLegend = function(t) { - return t.classed(S.legendItemHidden) ? null : 1; - }), - (r.prototype.opacityForUnfocusedLegend = function(t) { - return t.classed(S.legendItemHidden) ? null : 0.3; - }), - (r.prototype.toggleFocusLegend = function(t, e) { - var n = this; - (t = n.mapToTargetIds(t)), - n.legend - .selectAll('.' + S.legendItem) - .filter(function(e) { - return t.indexOf(e) >= 0; - }) - .classed(S.legendItemFocused, e) - .transition() - .duration(100) - .style('opacity', function() { - return (e - ? n.opacityForLegend - : n.opacityForUnfocusedLegend - ).call(n, n.d3.select(this)); - }); - }), - (r.prototype.revertLegend = function() { - var t = this, - e = t.d3; - t.legend - .selectAll('.' + S.legendItem) - .classed(S.legendItemFocused, !1) - .transition() - .duration(100) - .style('opacity', function() { - return t.opacityForLegend(e.select(this)); - }); - }), - (r.prototype.showLegend = function(t) { - var e = this, - n = e.config; - n.legend_show || - ((n.legend_show = !0), - e.legend.style('visibility', 'visible'), - e.legendHasRendered || e.updateLegendWithDefaults()), - e.removeHiddenLegendIds(t), - e.legend - .selectAll(e.selectorLegends(t)) - .style('visibility', 'visible') - .transition() - .style('opacity', function() { - return e.opacityForLegend(e.d3.select(this)); - }); - }), - (r.prototype.hideLegend = function(t) { - var e = this, - n = e.config; - n.legend_show && - h(t) && - ((n.legend_show = !1), e.legend.style('visibility', 'hidden')), - e.addHiddenLegendIds(t), - e.legend - .selectAll(e.selectorLegends(t)) - .style('opacity', 0) - .style('visibility', 'hidden'); - }), - (r.prototype.clearLegendItemTextBoxCache = function() { - this.legendItemTextBox = {}; - }), - (r.prototype.updateLegend = function(t, e, n) { - var r, - i, - o, - a, - s, - l, - c, - f, - h, - p, - g, - v, - m, - y, - b, - _, - x = this, - w = x.config, - E = 0, - k = 0, - A = w.legend_item_tile_width + 5, - T = 0, - C = {}, - O = {}, - P = {}, - M = [0], - L = {}, - D = 0; - function j(e, n, r) { - var i, - o, - a = 0 === r, - s = r === t.length - 1, - u = (function(t, e) { - return ( - x.legendItemTextBox[e] || - (x.legendItemTextBox[e] = x.getTextRect( - t.textContent, - S.legendItem, - t - )), - x.legendItemTextBox[e] - ); - })(e, n), - l = - u.width + - A + - (!s || x.isLegendRight || x.isLegendInset ? 10 : 0) + - w.legend_padding, - c = u.height + 4, - f = x.isLegendRight || x.isLegendInset ? c : l, - d = - x.isLegendRight || x.isLegendInset - ? x.getLegendHeight() - : x.getLegendWidth(); - function h(t, e) { - e || - ((i = (d - T - f) / 2) < 10 && - ((i = (d - f) / 2), (T = 0), D++)), - (L[t] = D), - (M[D] = x.isLegendInset ? 10 : i), - (C[t] = T), - (T += f); - } - a && ((T = 0), (D = 0), (E = 0), (k = 0)), - !w.legend_show || x.isLegendToShow(n) - ? ((O[n] = l), - (P[n] = c), - (!E || l >= E) && (E = l), - (!k || c >= k) && (k = c), - (o = x.isLegendRight || x.isLegendInset ? k : E), - w.legend_equally - ? (Object.keys(O).forEach(function(t) { - O[t] = E; - }), - Object.keys(P).forEach(function(t) { - P[t] = k; - }), - (i = (d - o * t.length) / 2) < 10 - ? ((T = 0), - (D = 0), - t.forEach(function(t) { - h(t); - })) - : h(n, !0)) - : h(n)) - : (O[n] = P[n] = L[n] = C[n] = 0); - } - (t = t.filter(function(t) { - return !d(w.data_names[t]) || null !== w.data_names[t]; - })), - (g = u((e = e || {}), 'withTransition', !0)), - (v = u(e, 'withTransitionForTransform', !0)), - x.isLegendInset && - ((D = w.legend_inset_step ? w.legend_inset_step : t.length), - x.updateLegendStep(D)), - x.isLegendRight - ? ((r = function(t) { - return E * L[t]; - }), - (a = function(t) { - return M[L[t]] + C[t]; - })) - : x.isLegendInset - ? ((r = function(t) { - return E * L[t] + 10; - }), - (a = function(t) { - return M[L[t]] + C[t]; - })) - : ((r = function(t) { - return M[L[t]] + C[t]; - }), - (a = function(t) { - return k * L[t]; - })), - (i = function(t, e) { - return r(t, e) + 4 + w.legend_item_tile_width; - }), - (s = function(t, e) { - return a(t, e) + 9; - }), - (o = function(t, e) { - return r(t, e); - }), - (l = function(t, e) { - return a(t, e) - 5; - }), - (c = function(t, e) { - return r(t, e) - 2; - }), - (f = function(t, e) { - return r(t, e) - 2 + w.legend_item_tile_width; - }), - (h = function(t, e) { - return a(t, e) + 4; - }), - (p = x.legend - .selectAll('.' + S.legendItem) - .data(t) - .enter() - .append('g') - .attr('class', function(t) { - return x.generateClass(S.legendItem, t); - }) - .style('visibility', function(t) { - return x.isLegendToShow(t) ? 'visible' : 'hidden'; - }) - .style('cursor', 'pointer') - .on('click', function(t) { - w.legend_item_onclick - ? w.legend_item_onclick.call(x, t) - : x.d3.event.altKey - ? (x.api.hide(), x.api.show(t)) - : (x.api.toggle(t), - x.isTargetToShow(t) ? x.api.focus(t) : x.api.revert()); - }) - .on('mouseover', function(t) { - w.legend_item_onmouseover - ? w.legend_item_onmouseover.call(x, t) - : (x.d3.select(this).classed(S.legendItemFocused, !0), - !x.transiting && x.isTargetToShow(t) && x.api.focus(t)); - }) - .on('mouseout', function(t) { - w.legend_item_onmouseout - ? w.legend_item_onmouseout.call(x, t) - : (x.d3.select(this).classed(S.legendItemFocused, !1), - x.api.revert()); - })) - .append('text') - .text(function(t) { - return d(w.data_names[t]) ? w.data_names[t] : t; - }) - .each(function(t, e) { - j(this, t, e); - }) - .style('pointer-events', 'none') - .attr('x', x.isLegendRight || x.isLegendInset ? i : -200) - .attr('y', x.isLegendRight || x.isLegendInset ? -200 : s), - p - .append('rect') - .attr('class', S.legendItemEvent) - .style('fill-opacity', 0) - .attr('x', x.isLegendRight || x.isLegendInset ? o : -200) - .attr('y', x.isLegendRight || x.isLegendInset ? -200 : l), - p - .append('line') - .attr('class', S.legendItemTile) - .style('stroke', x.color) - .style('pointer-events', 'none') - .attr('x1', x.isLegendRight || x.isLegendInset ? c : -200) - .attr('y1', x.isLegendRight || x.isLegendInset ? -200 : h) - .attr('x2', x.isLegendRight || x.isLegendInset ? f : -200) - .attr('y2', x.isLegendRight || x.isLegendInset ? -200 : h) - .attr('stroke-width', w.legend_item_tile_height), - (_ = x.legend.select('.' + S.legendBackground + ' rect')), - x.isLegendInset && - E > 0 && - 0 === _.size() && - (_ = x.legend - .insert('g', '.' + S.legendItem) - .attr('class', S.legendBackground) - .append('rect')), - (m = x.legend - .selectAll('text') - .data(t) - .text(function(t) { - return d(w.data_names[t]) ? w.data_names[t] : t; - }) - .each(function(t, e) { - j(this, t, e); - })), - (g ? m.transition() : m).attr('x', i).attr('y', s), - (y = x.legend.selectAll('rect.' + S.legendItemEvent).data(t)), - (g ? y.transition() : y) - .attr('width', function(t) { - return O[t]; - }) - .attr('height', function(t) { - return P[t]; - }) - .attr('x', o) - .attr('y', l), - (b = x.legend.selectAll('line.' + S.legendItemTile).data(t)), - (g ? b.transition() : b) - .style( - 'stroke', - x.levelColor - ? function(t) { - return x.levelColor( - x.cache[t].values.reduce(function(t, e) { - return t + e.value; - }, 0) - ); - } - : x.color - ) - .attr('x1', c) - .attr('y1', h) - .attr('x2', f) - .attr('y2', h), - _ && - (g ? _.transition() : _) - .attr('height', x.getLegendHeight() - 12) - .attr('width', E * (D + 1) + 10), - x.legend - .selectAll('.' + S.legendItem) - .classed(S.legendItemHidden, function(t) { - return !x.isTargetToShow(t); - }), - x.updateLegendItemWidth(E), - x.updateLegendItemHeight(k), - x.updateLegendStep(D), - x.updateSizes(), - x.updateScales(), - x.updateSvgSize(), - x.transformAll(v, n), - (x.legendHasRendered = !0); - }), - (r.prototype.initRegion = function() { - this.region = this.main - .append('g') - .attr('clip-path', this.clipPath) - .attr('class', S.regions); - }), - (r.prototype.updateRegion = function(t) { - var e = this, - n = e.config; - e.region.style('visibility', e.hasArcType() ? 'hidden' : 'visible'); - var r = e.main - .select('.' + S.regions) - .selectAll('.' + S.region) - .data(n.regions), - i = r.enter().append('g'); - i - .append('rect') - .attr('x', e.regionX.bind(e)) - .attr('y', e.regionY.bind(e)) - .attr('width', e.regionWidth.bind(e)) - .attr('height', e.regionHeight.bind(e)) - .style('fill-opacity', function(t) { - return y(t.opacity) ? t.opacity : 0.1; - }), - i.append('text').text(e.labelRegion.bind(e)), - (e.mainRegion = i.merge(r).attr('class', e.classRegion.bind(e))), - r - .exit() - .transition() - .duration(t) - .style('opacity', 0) - .remove(); - }), - (r.prototype.redrawRegion = function(t, e) { - var n = this, - r = n.mainRegion, - i = n.mainRegion.selectAll('text'); - return [ - (t ? r.transition(e) : r) - .attr('x', n.regionX.bind(n)) - .attr('y', n.regionY.bind(n)) - .attr('width', n.regionWidth.bind(n)) - .attr('height', n.regionHeight.bind(n)) - .style('fill-opacity', function(t) { - return y(t.opacity) ? t.opacity : 0.1; - }), - (t ? i.transition(e) : i) - .attr('x', n.labelOffsetX.bind(n)) - .attr('y', n.labelOffsetY.bind(n)) - .attr('transform', n.labelTransform.bind(n)) - .attr('style', 'text-anchor: left;') - ]; - }), - (r.prototype.regionX = function(t) { - var e = this, - n = e.config, - r = 'y' === t.axis ? e.y : e.y2; - return 'y' === t.axis || 'y2' === t.axis - ? n.axis_rotated && 'start' in t - ? r(t.start) - : 0 - : n.axis_rotated - ? 0 - : 'start' in t - ? e.x(e.isTimeSeries() ? e.parseDate(t.start) : t.start) - : 0; - }), - (r.prototype.regionY = function(t) { - var e = this, - n = e.config, - r = 'y' === t.axis ? e.y : e.y2; - return 'y' === t.axis || 'y2' === t.axis - ? n.axis_rotated - ? 0 - : 'end' in t - ? r(t.end) - : 0 - : n.axis_rotated && 'start' in t - ? e.x(e.isTimeSeries() ? e.parseDate(t.start) : t.start) - : 0; - }), - (r.prototype.regionWidth = function(t) { - var e, - n = this, - r = n.config, - i = n.regionX(t), - o = 'y' === t.axis ? n.y : n.y2; - return (e = - 'y' === t.axis || 'y2' === t.axis - ? r.axis_rotated && 'end' in t - ? o(t.end) - : n.width - : r.axis_rotated - ? n.width - : 'end' in t - ? n.x(n.isTimeSeries() ? n.parseDate(t.end) : t.end) - : n.width) < i - ? 0 - : e - i; - }), - (r.prototype.regionHeight = function(t) { - var e, - n = this, - r = n.config, - i = this.regionY(t), - o = 'y' === t.axis ? n.y : n.y2; - return (e = - 'y' === t.axis || 'y2' === t.axis - ? r.axis_rotated - ? n.height - : 'start' in t - ? o(t.start) - : n.height - : r.axis_rotated && 'end' in t - ? n.x(n.isTimeSeries() ? n.parseDate(t.end) : t.end) - : n.height) < i - ? 0 - : e - i; - }), - (r.prototype.isRegionOnX = function(t) { - return !t.axis || 'x' === t.axis; - }), - (r.prototype.labelRegion = function(t) { - return 'label' in t ? t.label : ''; - }), - (r.prototype.labelTransform = function(t) { - return 'vertical' in t && t.vertical ? 'rotate(90)' : ''; - }), - (r.prototype.labelOffsetX = function(t) { - var e = 'paddingX' in t ? t.paddingX : 3, - n = 'paddingY' in t ? t.paddingY : 3; - return 'vertical' in t && t.vertical - ? this.regionY(t) + n - : this.regionX(t) + e; - }), - (r.prototype.labelOffsetY = function(t) { - var e = 'paddingX' in t ? t.paddingX : 3, - n = 'paddingY' in t ? t.paddingY : 3; - return 'vertical' in t && t.vertical - ? -(this.regionX(t) + e) - : this.regionY(t) + 10 + n; - }), - (r.prototype.getScale = function(t, e, n) { - return (n ? this.d3.scaleTime() : this.d3.scaleLinear()).range([ - t, - e - ]); - }), - (r.prototype.getX = function(t, e, n, r) { - var i, - o = this.getScale(t, e, this.isTimeSeries()), - a = n ? o.domain(n) : o; - for (i in (this.isCategorized() - ? ((r = - r || - function() { - return 0; - }), - (o = function(t, e) { - var n = a(t) + r(t); - return e ? n : Math.ceil(n); - })) - : (o = function(t, e) { - var n = a(t); - return e ? n : Math.ceil(n); - }), - a)) - o[i] = a[i]; - return ( - (o.orgDomain = function() { - return a.domain(); - }), - this.isCategorized() && - (o.domain = function(t) { - return arguments.length - ? (a.domain(t), o) - : [(t = this.orgDomain())[0], t[1] + 1]; - }), - o - ); - }), - (r.prototype.getY = function(t, e, n) { - var r; - if ('timeseries' === t || 'time' === t) r = this.d3.scaleTime(); - else if ('log' === t) r = A(this.d3); - else { - if ('linear' !== t && void 0 !== t) - throw new Error('Invalid Y axis type: "'.concat(t, '"')); - r = this.d3.scaleLinear(); - } - return e && r.domain(e), n && r.range(n), r; - }), - (r.prototype.getYScale = function(t) { - return 'y2' === this.axis.getId(t) ? this.y2 : this.y; - }), - (r.prototype.getSubYScale = function(t) { - return 'y2' === this.axis.getId(t) ? this.subY2 : this.subY; - }), - (r.prototype.updateScales = function() { - var t = this, - e = t.config, - n = !t.x; - (t.xMin = e.axis_rotated ? 1 : 0), - (t.xMax = e.axis_rotated ? t.height : t.width), - (t.yMin = e.axis_rotated ? 0 : t.height), - (t.yMax = e.axis_rotated ? t.width : 1), - (t.subXMin = t.xMin), - (t.subXMax = t.xMax), - (t.subYMin = e.axis_rotated ? 0 : t.height2), - (t.subYMax = e.axis_rotated ? t.width2 : 1), - (t.x = t.getX( - t.xMin, - t.xMax, - n ? void 0 : t.x.orgDomain(), - function() { - return t.xAxis.tickOffset(); - } - )), - (t.y = t.getY( - e.axis_y_type, - n ? e.axis_y_default : t.y.domain(), - [t.yMin, t.yMax] - )), - (t.y2 = t.getY( - e.axis_y2_type, - n ? e.axis_y2_default : t.y2.domain(), - [t.yMin, t.yMax] - )), - (t.subX = t.getX(t.xMin, t.xMax, t.orgXDomain, function(e) { - return e % 1 ? 0 : t.subXAxis.tickOffset(); - })), - (t.subY = t.getY( - e.axis_y_type, - n ? e.axis_y_default : t.subY.domain(), - [t.subYMin, t.subYMax] - )), - (t.subY2 = t.getY( - e.axis_y2_type, - n ? e.axis_y2_default : t.subY2.domain(), - [t.subYMin, t.subYMax] - )), - (t.xAxisTickFormat = t.axis.getXAxisTickFormat()), - (t.xAxisTickValues = t.axis.getXAxisTickValues()), - (t.yAxisTickValues = t.axis.getYAxisTickValues()), - (t.y2AxisTickValues = t.axis.getY2AxisTickValues()), - (t.xAxis = t.axis.getXAxis( - t.x, - t.xOrient, - t.xAxisTickFormat, - t.xAxisTickValues, - e.axis_x_tick_outer - )), - (t.subXAxis = t.axis.getXAxis( - t.subX, - t.subXOrient, - t.xAxisTickFormat, - t.xAxisTickValues, - e.axis_x_tick_outer - )), - (t.yAxis = t.axis.getYAxis( - 'y', - t.y, - t.yOrient, - t.yAxisTickValues, - e.axis_y_tick_outer - )), - (t.y2Axis = t.axis.getYAxis( - 'y2', - t.y2, - t.y2Orient, - t.y2AxisTickValues, - e.axis_y2_tick_outer - )), - n || (t.brush && t.brush.updateScale(t.subX)), - t.updateArc && t.updateArc(); - }), - (r.prototype.selectPoint = function(t, e, n) { - var r = this, - i = r.config, - o = (i.axis_rotated ? r.circleY : r.circleX).bind(r), - a = (i.axis_rotated ? r.circleX : r.circleY).bind(r), - s = r.pointSelectR.bind(r); - i.data_onselected.call(r.api, e, t.node()), - r.main - .select( - '.' + S.selectedCircles + r.getTargetSelectorSuffix(e.id) - ) - .selectAll('.' + S.selectedCircle + '-' + n) - .data([e]) - .enter() - .append('circle') - .attr('class', function() { - return r.generateClass(S.selectedCircle, n); - }) - .attr('cx', o) - .attr('cy', a) - .attr('stroke', function() { - return r.color(e); - }) - .attr('r', function(t) { - return 1.4 * r.pointSelectR(t); - }) - .transition() - .duration(100) - .attr('r', s); - }), - (r.prototype.unselectPoint = function(t, e, n) { - this.config.data_onunselected.call(this.api, e, t.node()), - this.main - .select( - '.' + S.selectedCircles + this.getTargetSelectorSuffix(e.id) - ) - .selectAll('.' + S.selectedCircle + '-' + n) - .transition() - .duration(100) - .attr('r', 0) - .remove(); - }), - (r.prototype.togglePoint = function(t, e, n, r) { - t ? this.selectPoint(e, n, r) : this.unselectPoint(e, n, r); - }), - (r.prototype.selectPath = function(t, e) { - var n = this; - n.config.data_onselected.call(n, e, t.node()), - n.config.interaction_brighten && - t - .transition() - .duration(100) - .style('fill', function() { - return n.d3.rgb(n.color(e)).brighter(0.75); - }); - }), - (r.prototype.unselectPath = function(t, e) { - var n = this; - n.config.data_onunselected.call(n, e, t.node()), - n.config.interaction_brighten && - t - .transition() - .duration(100) - .style('fill', function() { - return n.color(e); - }); - }), - (r.prototype.togglePath = function(t, e, n, r) { - t ? this.selectPath(e, n, r) : this.unselectPath(e, n, r); - }), - (r.prototype.getToggle = function(t, e) { - var n; - return ( - 'circle' === t.nodeName - ? (n = this.isStepType(e) ? function() {} : this.togglePoint) - : 'path' === t.nodeName && (n = this.togglePath), - n - ); - }), - (r.prototype.toggleShape = function(t, e, n) { - var r = this, - i = r.d3, - o = r.config, - a = i.select(t), - s = a.classed(S.SELECTED), - u = r.getToggle(t, e).bind(r); - o.data_selection_enabled && - o.data_selection_isselectable(e) && - (o.data_selection_multiple || - r.main - .selectAll( - '.' + - S.shapes + - (o.data_selection_grouped - ? r.getTargetSelectorSuffix(e.id) - : '') - ) - .selectAll('.' + S.shape) - .each(function(t, e) { - var n = i.select(this); - n.classed(S.SELECTED) && - u(!1, n.classed(S.SELECTED, !1), t, e); - }), - a.classed(S.SELECTED, !s), - u(!s, a, e, n)); - }), - (r.prototype.initBar = function() { - this.main - .select('.' + S.chart) - .append('g') - .attr('class', S.chartBars); - }), - (r.prototype.updateTargetsForBar = function(t) { - var e = this, - n = e.config, - r = e.classChartBar.bind(e), - i = e.classBars.bind(e), - o = e.classFocus.bind(e); - e.main - .select('.' + S.chartBars) - .selectAll('.' + S.chartBar) - .data(t) - .attr('class', function(t) { - return r(t) + o(t); - }) - .enter() - .append('g') - .attr('class', r) - .style('pointer-events', 'none') - .append('g') - .attr('class', i) - .style('cursor', function(t) { - return n.data_selection_isselectable(t) ? 'pointer' : null; - }); - }), - (r.prototype.updateBar = function(t) { - var e = this, - n = e.barData.bind(e), - r = e.classBar.bind(e), - i = e.initialOpacity.bind(e), - o = function(t) { - return e.color(t.id); - }, - a = e.main - .selectAll('.' + S.bars) - .selectAll('.' + S.bar) - .data(n), - s = a - .enter() - .append('path') - .attr('class', r) - .style('stroke', o) - .style('fill', o); - (e.mainBar = s.merge(a).style('opacity', i)), - a - .exit() - .transition() - .duration(t) - .style('opacity', 0); - }), - (r.prototype.redrawBar = function(t, e, n) { - var r = this; - return [ - (e ? this.mainBar.transition(n) : this.mainBar) - .attr('d', t) - .style('stroke', this.color) - .style('fill', this.color) - .style('opacity', function(t) { - return r.isTargetToShow(t.id) ? 1 : 0; - }) - ]; - }), - (r.prototype.getBarW = function(t, e) { - var n = this.config, - r = - 'number' == typeof n.bar_width - ? n.bar_width - : e - ? (t.tickInterval() * n.bar_width_ratio) / e - : 0; - return n.bar_width_max && r > n.bar_width_max ? n.bar_width_max : r; - }), - (r.prototype.getBars = function(t, e) { - return (e - ? this.main.selectAll( - '.' + S.bars + this.getTargetSelectorSuffix(e) - ) - : this.main - ).selectAll('.' + S.bar + (y(t) ? '-' + t : '')); - }), - (r.prototype.expandBars = function(t, e, n) { - n && this.unexpandBars(), - this.getBars(t, e).classed(S.EXPANDED, !0); - }), - (r.prototype.unexpandBars = function(t) { - this.getBars(t).classed(S.EXPANDED, !1); - }), - (r.prototype.generateDrawBar = function(t, e) { - var n = this.config, - r = this.generateGetBarPoints(t, e); - return function(t, e) { - var i = r(t, e), - o = n.axis_rotated ? 1 : 0, - a = n.axis_rotated ? 0 : 1; - return ( - 'M ' + - i[0][o] + - ',' + - i[0][a] + - ' L' + - i[1][o] + - ',' + - i[1][a] + - ' L' + - i[2][o] + - ',' + - i[2][a] + - ' L' + - i[3][o] + - ',' + - i[3][a] + - ' z' - ); - }; - }), - (r.prototype.generateGetBarPoints = function(t, e) { - var n = this, - r = e ? n.subXAxis : n.xAxis, - i = t.__max__ + 1, - o = n.getBarW(r, i), - a = n.getShapeX(o, i, t, !!e), - s = n.getShapeY(!!e), - u = n.getShapeOffset(n.isBarType, t, !!e), - l = o * (n.config.bar_space / 2), - c = e ? n.getSubYScale : n.getYScale; - return function(t, e) { - var r = c.call(n, t.id)(0), - i = u(t, e) || r, - f = a(t), - d = s(t); - return ( - n.config.axis_rotated && - ((0 < t.value && d < r) || (t.value < 0 && r < d)) && - (d = r), - [ - [f + l, i], - [f + l, (d -= r - i)], - [f + o - l, d], - [f + o - l, i] - ] - ); - }; - }), - (r.prototype.isWithinBar = function(t, e) { - return (function(t, e) { - var n = - arguments.length > 2 && void 0 !== arguments[2] - ? arguments[2] - : 0, - r = e.x - n, - i = e.x + e.width + n, - o = e.y + e.height + n, - a = e.y - n; - return r < t[0] && t[0] < i && a < t[1] && t[1] < o; - })(t, c(e), 2); - }), - (r.prototype.getShapeIndices = function(t) { - var e, - n, - r = this.config, - i = {}, - o = 0; - return ( - this.filterTargetsToShow( - this.data.targets.filter(t, this) - ).forEach(function(t) { - for (e = 0; e < r.data_groups.length; e++) - if (!(r.data_groups[e].indexOf(t.id) < 0)) - for (n = 0; n < r.data_groups[e].length; n++) - if (r.data_groups[e][n] in i) { - i[t.id] = i[r.data_groups[e][n]]; - break; - } - m(i[t.id]) && (i[t.id] = o++); - }), - (i.__max__ = o - 1), - i - ); - }), - (r.prototype.getShapeX = function(t, e, n, r) { - var i = r ? this.subX : this.x; - return function(r) { - var o = r.id in n ? n[r.id] : 0; - return r.x || 0 === r.x ? i(r.x) - t * (e / 2 - o) : 0; - }; - }), - (r.prototype.getShapeY = function(t) { - var e = this; - return function(n) { - return (t ? e.getSubYScale(n.id) : e.getYScale(n.id))( - e.isTargetNormalized(n.id) - ? e.getRatio('index', n, !0) - : n.value - ); - }; - }), - (r.prototype.getShapeOffset = function(t, e, n) { - var r = this, - i = r.orderTargets( - r.filterTargetsToShow(r.data.targets.filter(t, r)) - ), - o = i.map(function(t) { - return t.id; - }); - return function(t, a) { - var s = n ? r.getSubYScale(t.id) : r.getYScale(t.id), - u = s(0), - l = u; - return ( - i.forEach(function(n) { - var i = r.isStepType(t) - ? r.convertValuesToStep(n.values) - : n.values, - c = r.isTargetNormalized(t.id), - f = i.map(function(t) { - return c ? r.getRatio('index', t, !0) : t.value; - }); - n.id !== t.id && - e[n.id] === e[t.id] && - o.indexOf(n.id) < o.indexOf(t.id) && - ((m(i[a]) || +i[a].x != +t.x) && - ((a = -1), - i.forEach(function(e, n) { - (e.x.constructor === Date ? +e.x : e.x) === - (t.x.constructor === Date ? +t.x : t.x) && (a = n); - })), - a in i && i[a].value * t.value >= 0 && (l += s(f[a]) - u)); - }), - l - ); - }; - }), - (r.prototype.isWithinShape = function(t, e) { - var n, - r = this, - i = r.d3.select(t); - return ( - r.isTargetToShow(e.id) - ? 'circle' === t.nodeName - ? (n = r.isStepType(e) - ? r.isWithinStep(t, r.getYScale(e.id)(e.value)) - : r.isWithinCircle(t, 1.5 * r.pointSelectR(e))) - : 'path' === t.nodeName && - (n = !i.classed(S.bar) || r.isWithinBar(r.d3.mouse(t), t)) - : (n = !1), - n - ); - }), - (r.prototype.getInterpolate = function(t) { - var e = this, - n = e.d3, - r = { - linear: n.curveLinear, - 'linear-closed': n.curveLinearClosed, - basis: n.curveBasis, - 'basis-open': n.curveBasisOpen, - 'basis-closed': n.curveBasisClosed, - bundle: n.curveBundle, - cardinal: n.curveCardinal, - 'cardinal-open': n.curveCardinalOpen, - 'cardinal-closed': n.curveCardinalClosed, - monotone: n.curveMonotoneX, - step: n.curveStep, - 'step-before': n.curveStepBefore, - 'step-after': n.curveStepAfter - }; - return e.isSplineType(t) - ? r[e.config.spline_interpolation_type] || r.cardinal - : e.isStepType(t) - ? r[e.config.line_step_type] - : r.linear; - }), - (r.prototype.initLine = function() { - this.main - .select('.' + S.chart) - .append('g') - .attr('class', S.chartLines); - }), - (r.prototype.updateTargetsForLine = function(t) { - var e, - n = this, - r = n.config, - i = n.classChartLine.bind(n), - o = n.classLines.bind(n), - a = n.classAreas.bind(n), - s = n.classCircles.bind(n), - u = n.classFocus.bind(n); - (e = n.main - .select('.' + S.chartLines) - .selectAll('.' + S.chartLine) - .data(t) - .attr('class', function(t) { - return i(t) + u(t); - }) - .enter() - .append('g') - .attr('class', i) - .style('opacity', 0) - .style('pointer-events', 'none')) - .append('g') - .attr('class', o), - e.append('g').attr('class', a), - e.append('g').attr('class', function(t) { - return n.generateClass(S.selectedCircles, t.id); - }), - e - .append('g') - .attr('class', s) - .style('cursor', function(t) { - return r.data_selection_isselectable(t) ? 'pointer' : null; - }), - t.forEach(function(t) { - n.main - .selectAll( - '.' + S.selectedCircles + n.getTargetSelectorSuffix(t.id) - ) - .selectAll('.' + S.selectedCircle) - .each(function(e) { - e.value = t.values[e.index].value; - }); - }); - }), - (r.prototype.updateLine = function(t) { - var e = this, - n = e.main - .selectAll('.' + S.lines) - .selectAll('.' + S.line) - .data(e.lineData.bind(e)), - r = n - .enter() - .append('path') - .attr('class', e.classLine.bind(e)) - .style('stroke', e.color); - (e.mainLine = r - .merge(n) - .style('opacity', e.initialOpacity.bind(e)) - .style('shape-rendering', function(t) { - return e.isStepType(t) ? 'crispEdges' : ''; - }) - .attr('transform', null)), - n - .exit() - .transition() - .duration(t) - .style('opacity', 0); - }), - (r.prototype.redrawLine = function(t, e, n) { - return [ - (e ? this.mainLine.transition(n) : this.mainLine) - .attr('d', t) - .style('stroke', this.color) - .style('opacity', 1) - ]; - }), - (r.prototype.generateDrawLine = function(t, e) { - var n = this, - r = n.config, - i = n.d3.line(), - o = n.generateGetLinePoints(t, e), - a = e ? n.getSubYScale : n.getYScale, - s = function(t) { - return (e ? n.subxx : n.xx).call(n, t); - }, - u = function(t, e) { - return r.data_groups.length > 0 - ? o(t, e)[0][1] - : a.call(n, t.id)(t.value); - }; - return ( - (i = r.axis_rotated ? i.x(u).y(s) : i.x(s).y(u)), - r.line_connectNull || - (i = i.defined(function(t) { - return null != t.value; - })), - function(t) { - var o, - s = r.line_connectNull - ? n.filterRemoveNull(t.values) - : t.values, - u = e ? n.subX : n.x, - l = a.call(n, t.id), - c = 0, - f = 0; - return ( - n.isLineType(t) - ? r.data_regions[t.id] - ? (o = n.lineWithRegions(s, u, l, r.data_regions[t.id])) - : (n.isStepType(t) && (s = n.convertValuesToStep(s)), - (o = i.curve(n.getInterpolate(t))(s))) - : (s[0] && ((c = u(s[0].x)), (f = l(s[0].value))), - (o = r.axis_rotated - ? 'M ' + f + ' ' + c - : 'M ' + c + ' ' + f)), - o || 'M 0 0' - ); - } - ); - }), - (r.prototype.generateGetLinePoints = function(t, e) { - var n = this, - r = n.config, - i = t.__max__ + 1, - o = n.getShapeX(0, i, t, !!e), - a = n.getShapeY(!!e), - s = n.getShapeOffset(n.isLineType, t, !!e), - u = e ? n.getSubYScale : n.getYScale; - return function(t, e) { - var i = u.call(n, t.id)(0), - l = s(t, e) || i, - c = o(t), - f = a(t); - return ( - r.axis_rotated && - ((0 < t.value && f < i) || (t.value < 0 && i < f)) && - (f = i), - [ - [c, f - (i - l)], - [c, f - (i - l)], - [c, f - (i - l)], - [c, f - (i - l)] - ] - ); - }; - }), - (r.prototype.lineWithRegions = function(t, e, n, r) { - var i, - o, - a, - s, - u, - l, - c, - f, - h, - p, - g, - v = this, - y = v.config, - b = 'M', - _ = v.isCategorized() ? 0.5 : 0, - x = []; - function w(t, e) { - var n; - for (n = 0; n < e.length; n++) - if (e[n].start < t && t <= e[n].end) return !0; - return !1; - } - if (d(r)) - for (i = 0; i < r.length; i++) - (x[i] = {}), - m(r[i].start) - ? (x[i].start = t[0].x) - : (x[i].start = v.isTimeSeries() - ? v.parseDate(r[i].start) - : r[i].start), - m(r[i].end) - ? (x[i].end = t[t.length - 1].x) - : (x[i].end = v.isTimeSeries() - ? v.parseDate(r[i].end) - : r[i].end); - function S(t) { - return ( - 'M' + t[0][0] + ' ' + t[0][1] + ' ' + t[1][0] + ' ' + t[1][1] - ); - } - for ( - p = y.axis_rotated - ? function(t) { - return n(t.value); - } - : function(t) { - return e(t.x); - }, - g = y.axis_rotated - ? function(t) { - return e(t.x); - } - : function(t) { - return n(t.value); - }, - a = v.isTimeSeries() - ? function(t, r, i, o) { - var a = t.x.getTime(), - s = r.x - t.x, - l = new Date(a + s * i), - c = new Date(a + s * (i + o)); - return S( - y.axis_rotated - ? [ - [n(u(i)), e(l)], - [n(u(i + o)), e(c)] - ] - : [ - [e(l), n(u(i))], - [e(c), n(u(i + o))] - ] - ); - } - : function(t, r, i, o) { - return S( - y.axis_rotated - ? [ - [n(u(i), !0), e(s(i))], - [n(u(i + o), !0), e(s(i + o))] - ] - : [ - [e(s(i), !0), n(u(i))], - [e(s(i + o), !0), n(u(i + o))] - ] - ); - }, - i = 0; - i < t.length; - i++ - ) { - if (m(x) || !w(t[i].x, x)) b += ' ' + p(t[i]) + ' ' + g(t[i]); - else - for ( - s = v.getScale(t[i - 1].x + _, t[i].x + _, v.isTimeSeries()), - u = v.getScale(t[i - 1].value, t[i].value), - l = e(t[i].x) - e(t[i - 1].x), - c = n(t[i].value) - n(t[i - 1].value), - h = - 2 * (f = 2 / Math.sqrt(Math.pow(l, 2) + Math.pow(c, 2))), - o = f; - o <= 1; - o += h - ) - b += a(t[i - 1], t[i], o, f); - t[i].x; - } - return b; - }), - (r.prototype.updateArea = function(t) { - var e = this, - n = e.d3, - r = e.main - .selectAll('.' + S.areas) - .selectAll('.' + S.area) - .data(e.lineData.bind(e)), - i = r - .enter() - .append('path') - .attr('class', e.classArea.bind(e)) - .style('fill', e.color) - .style('opacity', function() { - return ( - (e.orgAreaOpacity = +n.select(this).style('opacity')), 0 - ); - }); - (e.mainArea = i.merge(r).style('opacity', e.orgAreaOpacity)), - r - .exit() - .transition() - .duration(t) - .style('opacity', 0); - }), - (r.prototype.redrawArea = function(t, e, n) { - return [ - (e ? this.mainArea.transition(n) : this.mainArea) - .attr('d', t) - .style('fill', this.color) - .style('opacity', this.orgAreaOpacity) - ]; - }), - (r.prototype.generateDrawArea = function(t, e) { - var n = this, - r = n.config, - i = n.d3.area(), - o = n.generateGetAreaPoints(t, e), - a = e ? n.getSubYScale : n.getYScale, - s = function(t) { - return (e ? n.subxx : n.xx).call(n, t); - }, - u = function(t, e) { - return r.data_groups.length > 0 - ? o(t, e)[0][1] - : a.call(n, t.id)(n.getAreaBaseValue(t.id)); - }, - l = function(t, e) { - return r.data_groups.length > 0 - ? o(t, e)[1][1] - : a.call(n, t.id)(t.value); - }; - return ( - (i = r.axis_rotated - ? i - .x0(u) - .x1(l) - .y(s) - : i - .x(s) - .y0(r.area_above ? 0 : u) - .y1(l)), - r.line_connectNull || - (i = i.defined(function(t) { - return null !== t.value; - })), - function(t) { - var e, - o = r.line_connectNull - ? n.filterRemoveNull(t.values) - : t.values, - a = 0, - s = 0; - return ( - n.isAreaType(t) - ? (n.isStepType(t) && (o = n.convertValuesToStep(o)), - (e = i.curve(n.getInterpolate(t))(o))) - : (o[0] && - ((a = n.x(o[0].x)), - (s = n.getYScale(t.id)(o[0].value))), - (e = r.axis_rotated - ? 'M ' + s + ' ' + a - : 'M ' + a + ' ' + s)), - e || 'M 0 0' - ); - } - ); - }), - (r.prototype.getAreaBaseValue = function() { - return 0; - }), - (r.prototype.generateGetAreaPoints = function(t, e) { - var n = this, - r = n.config, - i = t.__max__ + 1, - o = n.getShapeX(0, i, t, !!e), - a = n.getShapeY(!!e), - s = n.getShapeOffset(n.isAreaType, t, !!e), - u = e ? n.getSubYScale : n.getYScale; - return function(t, e) { - var i = u.call(n, t.id)(0), - l = s(t, e) || i, - c = o(t), - f = a(t); - return ( - r.axis_rotated && - ((0 < t.value && f < i) || (t.value < 0 && i < f)) && - (f = i), - [ - [c, l], - [c, f - (i - l)], - [c, f - (i - l)], - [c, l] - ] - ); - }; - }), - (r.prototype.updateCircle = function(t, e) { - var n = this, - r = n.main - .selectAll('.' + S.circles) - .selectAll('.' + S.circle) - .data(n.lineOrScatterOrStanfordData.bind(n)), - i = r - .enter() - .append('circle') - .attr( - 'shape-rendering', - n.isStanfordGraphType() ? 'crispEdges' : '' - ) - .attr('class', n.classCircle.bind(n)) - .attr('cx', t) - .attr('cy', e) - .attr('r', n.pointR.bind(n)) - .style( - 'color', - n.isStanfordGraphType() - ? n.getStanfordPointColor.bind(n) - : n.color - ); - (n.mainCircle = i - .merge(r) - .style( - 'opacity', - n.isStanfordGraphType() ? 1 : n.initialOpacityForCircle.bind(n) - )), - r.exit().style('opacity', 0); - }), - (r.prototype.redrawCircle = function(t, e, n, r) { - var i = this, - o = i.main.selectAll('.' + S.selectedCircle); - return [ - (n ? i.mainCircle.transition(r) : i.mainCircle) - .style('opacity', this.opacityForCircle.bind(i)) - .style( - 'color', - i.isStanfordGraphType() - ? i.getStanfordPointColor.bind(i) - : i.color - ) - .attr('cx', t) - .attr('cy', e), - (n ? o.transition(r) : o).attr('cx', t).attr('cy', e) - ]; - }), - (r.prototype.circleX = function(t) { - return t.x || 0 === t.x ? this.x(t.x) : null; - }), - (r.prototype.updateCircleY = function() { - var t, - e, - n = this; - n.config.data_groups.length > 0 - ? ((t = n.getShapeIndices(n.isLineType)), - (e = n.generateGetLinePoints(t)), - (n.circleY = function(t, n) { - return e(t, n)[0][1]; - })) - : (n.circleY = function(t) { - return n.getYScale(t.id)(t.value); - }); - }), - (r.prototype.getCircles = function(t, e) { - return (e - ? this.main.selectAll( - '.' + S.circles + this.getTargetSelectorSuffix(e) - ) - : this.main - ).selectAll('.' + S.circle + (y(t) ? '-' + t : '')); - }), - (r.prototype.expandCircles = function(t, e, n) { - var r = this.pointExpandedR.bind(this); - n && this.unexpandCircles(), - this.getCircles(t, e) - .classed(S.EXPANDED, !0) - .attr('r', r); - }), - (r.prototype.unexpandCircles = function(t) { - var e = this, - n = e.pointR.bind(e); - e.getCircles(t) - .filter(function() { - return e.d3.select(this).classed(S.EXPANDED); - }) - .classed(S.EXPANDED, !1) - .attr('r', n); - }), - (r.prototype.pointR = function(t) { - var e = this.config; - return this.isStepType(t) - ? 0 - : p(e.point_r) - ? e.point_r(t) - : e.point_r; - }), - (r.prototype.pointExpandedR = function(t) { - var e = this.config; - return e.point_focus_expand_enabled - ? p(e.point_focus_expand_r) - ? e.point_focus_expand_r(t) - : e.point_focus_expand_r - ? e.point_focus_expand_r - : 1.75 * this.pointR(t) - : this.pointR(t); - }), - (r.prototype.pointSelectR = function(t) { - var e = this.config; - return p(e.point_select_r) - ? e.point_select_r(t) - : e.point_select_r - ? e.point_select_r - : 4 * this.pointR(t); - }), - (r.prototype.isWithinCircle = function(t, e) { - var n = this.d3, - r = n.mouse(t), - i = n.select(t), - o = +i.attr('cx'), - a = +i.attr('cy'); - return Math.sqrt(Math.pow(o - r[0], 2) + Math.pow(a - r[1], 2)) < e; - }), - (r.prototype.isWithinStep = function(t, e) { - return Math.abs(e - this.d3.mouse(t)[1]) < 30; - }), - (r.prototype.getCurrentWidth = function() { - var t = this.config; - return t.size_width ? t.size_width : this.getParentWidth(); - }), - (r.prototype.getCurrentHeight = function() { - var t = this.config, - e = t.size_height ? t.size_height : this.getParentHeight(); - return e > 0 - ? e - : 320 / (this.hasType('gauge') && !t.gauge_fullCircle ? 2 : 1); - }), - (r.prototype.getCurrentPaddingTop = function() { - var t = this.config, - e = y(t.padding_top) ? t.padding_top : 0; - return ( - this.title && this.title.node() && (e += this.getTitlePadding()), - e - ); - }), - (r.prototype.getCurrentPaddingBottom = function() { - var t = this.config; - return y(t.padding_bottom) ? t.padding_bottom : 0; - }), - (r.prototype.getCurrentPaddingLeft = function(t) { - var e = this.config; - return y(e.padding_left) - ? e.padding_left - : e.axis_rotated - ? !e.axis_x_show || e.axis_x_inner - ? 1 - : Math.max(a(this.getAxisWidthByAxisId('x', t)), 40) - : !e.axis_y_show || e.axis_y_inner - ? this.axis.getYAxisLabelPosition().isOuter - ? 30 - : 1 - : a(this.getAxisWidthByAxisId('y', t)); - }), - (r.prototype.getCurrentPaddingRight = function() { - var t = this, - e = t.config, - n = 0, - r = t.isLegendRight ? t.getLegendWidth() + 20 : 0; - return ( - (n = y(e.padding_right) - ? e.padding_right + 1 - : e.axis_rotated - ? 10 + r - : !e.axis_y2_show || e.axis_y2_inner - ? 2 + r + (t.axis.getY2AxisLabelPosition().isOuter ? 20 : 0) - : a(t.getAxisWidthByAxisId('y2')) + r), - t.colorScale && - t.colorScale.node() && - (n += t.getColorScalePadding()), - n - ); - }), - (r.prototype.getParentRectValue = function(t) { - for ( - var e, n = this.selectChart.node(); - n && 'BODY' !== n.tagName; - - ) { - try { - e = n.getBoundingClientRect()[t]; - } catch (r) { - 'width' === t && (e = n.offsetWidth); - } - if (e) break; - n = n.parentNode; - } - return e; - }), - (r.prototype.getParentWidth = function() { - return this.getParentRectValue('width'); - }), - (r.prototype.getParentHeight = function() { - var t = this.selectChart.style('height'); - return t.indexOf('px') > 0 ? +t.replace('px', '') : 0; - }), - (r.prototype.getSvgLeft = function(t) { - var e = this, - n = e.config, - r = n.axis_rotated || (!n.axis_rotated && !n.axis_y_inner), - i = n.axis_rotated ? S.axisX : S.axisY, - o = e.main.select('.' + i).node(), - a = o && r ? o.getBoundingClientRect() : { right: 0 }, - s = e.selectChart.node().getBoundingClientRect(), - u = e.hasArcType(), - l = a.right - s.left - (u ? 0 : e.getCurrentPaddingLeft(t)); - return l > 0 ? l : 0; - }), - (r.prototype.getAxisWidthByAxisId = function(t, e) { - var n = this.axis.getLabelPositionById(t); - return this.axis.getMaxTickWidth(t, e) + (n.isInner ? 20 : 40); - }), - (r.prototype.getHorizontalAxisHeight = function(t) { - var e = this, - n = e.config, - r = 30; - return 'x' !== t || n.axis_x_show - ? 'x' === t && n.axis_x_height - ? n.axis_x_height - : 'y' !== t || n.axis_y_show - ? 'y2' !== t || n.axis_y2_show - ? ('x' === t && - !n.axis_rotated && - n.axis_x_tick_rotate && - (r = - 30 + - e.axis.getMaxTickWidth(t) * - Math.cos( - (Math.PI * (90 - Math.abs(n.axis_x_tick_rotate))) / - 180 - )), - 'y' === t && - n.axis_rotated && - n.axis_y_tick_rotate && - (r = - 30 + - e.axis.getMaxTickWidth(t) * - Math.cos( - (Math.PI * (90 - Math.abs(n.axis_y_tick_rotate))) / - 180 - )), - r + - (e.axis.getLabelPositionById(t).isInner ? 0 : 10) + - ('y2' === t ? -10 : 0)) - : e.rotated_padding_top - : !n.legend_show || e.isLegendRight || e.isLegendInset - ? 1 - : 10 - : 8; - }), - (r.prototype.initBrush = function(t) { - var e = this, - n = e.d3; - return ( - (e.brush = (e.config.axis_rotated ? n.brushY() : n.brushX()) - .on('brush', function() { - var t = n.event.sourceEvent; - (t && 'zoom' === t.type) || e.redrawForBrush(); - }) - .on('end', function() { - var t = n.event.sourceEvent; - (t && 'zoom' === t.type) || - (e.brush.empty() && - t && - 'end' !== t.type && - e.brush.clear()); - })), - (e.brush.updateExtent = function() { - var t, - n = this.scale.range(); - return ( - (t = e.config.axis_rotated - ? [ - [0, n[0]], - [e.width2, n[1]] - ] - : [ - [n[0], 0], - [n[1], e.height2] - ]), - this.extent(t), - this - ); - }), - (e.brush.updateScale = function(t) { - return (this.scale = t), this; - }), - (e.brush.update = function(t) { - this.updateScale(t || e.subX).updateExtent(), - e.context.select('.' + S.brush).call(this); - }), - (e.brush.clear = function() { - e.context.select('.' + S.brush).call(e.brush.move, null); - }), - (e.brush.selection = function() { - return n.brushSelection(e.context.select('.' + S.brush).node()); - }), - (e.brush.selectionAsValue = function(t, n) { - var r, i; - return t - ? (e.context && - ((r = [this.scale(t[0]), this.scale(t[1])]), - (i = e.context.select('.' + S.brush)), - n && (i = i.transition()), - e.brush.move(i, r)), - []) - : ((r = e.brush.selection() || [0, 0]), - [this.scale.invert(r[0]), this.scale.invert(r[1])]); - }), - (e.brush.empty = function() { - var t = e.brush.selection(); - return !t || t[0] === t[1]; - }), - e.brush.updateScale(t) - ); - }), - (r.prototype.initSubchart = function() { - var t = this, - e = t.config, - n = (t.context = t.svg - .append('g') - .attr('transform', t.getTranslate('context'))); - n.style('visibility', 'visible'), - n - .append('g') - .attr('clip-path', t.clipPathForSubchart) - .attr('class', S.chart), - n - .select('.' + S.chart) - .append('g') - .attr('class', S.chartBars), - n - .select('.' + S.chart) - .append('g') - .attr('class', S.chartLines), - n - .append('g') - .attr('clip-path', t.clipPath) - .attr('class', S.brush), - (t.axes.subx = n - .append('g') - .attr('class', S.axisX) - .attr('transform', t.getTranslate('subx')) - .attr('clip-path', e.axis_rotated ? '' : t.clipPathForXAxis)); - }), - (r.prototype.initSubchartBrush = function() { - this.initBrush(this.subX).updateExtent(), - this.context.select('.' + S.brush).call(this.brush); - }), - (r.prototype.updateTargetsForSubchart = function(t) { - var e, - n, - r, - i, - o = this, - a = o.context, - s = o.config, - u = o.classChartBar.bind(o), - l = o.classBars.bind(o), - c = o.classChartLine.bind(o), - f = o.classLines.bind(o), - d = o.classAreas.bind(o); - (r = (i = a - .select('.' + S.chartBars) - .selectAll('.' + S.chartBar) - .data(t)) - .enter() - .append('g') - .style('opacity', 0)) - .merge(i) - .attr('class', u), - r.append('g').attr('class', l), - (e = (n = a - .select('.' + S.chartLines) - .selectAll('.' + S.chartLine) - .data(t)) - .enter() - .append('g') - .style('opacity', 0)) - .merge(n) - .attr('class', c), - e.append('g').attr('class', f), - e.append('g').attr('class', d), - a - .selectAll('.' + S.brush + ' rect') - .attr( - s.axis_rotated ? 'width' : 'height', - s.axis_rotated ? o.width2 : o.height2 - ); - }), - (r.prototype.updateBarForSubchart = function(t) { - var e = this, - n = e.context - .selectAll('.' + S.bars) - .selectAll('.' + S.bar) - .data(e.barData.bind(e)), - r = n - .enter() - .append('path') - .attr('class', e.classBar.bind(e)) - .style('stroke', 'none') - .style('fill', e.color); - n - .exit() - .transition() - .duration(t) - .style('opacity', 0) - .remove(), - (e.contextBar = r - .merge(n) - .style('opacity', e.initialOpacity.bind(e))); - }), - (r.prototype.redrawBarForSubchart = function(t, e, n) { - (e - ? this.contextBar.transition(Math.random().toString()).duration(n) - : this.contextBar - ) - .attr('d', t) - .style('opacity', 1); - }), - (r.prototype.updateLineForSubchart = function(t) { - var e = this, - n = e.context - .selectAll('.' + S.lines) - .selectAll('.' + S.line) - .data(e.lineData.bind(e)), - r = n - .enter() - .append('path') - .attr('class', e.classLine.bind(e)) - .style('stroke', e.color); - n - .exit() - .transition() - .duration(t) - .style('opacity', 0) - .remove(), - (e.contextLine = r - .merge(n) - .style('opacity', e.initialOpacity.bind(e))); - }), - (r.prototype.redrawLineForSubchart = function(t, e, n) { - (e - ? this.contextLine - .transition(Math.random().toString()) - .duration(n) - : this.contextLine - ) - .attr('d', t) - .style('opacity', 1); - }), - (r.prototype.updateAreaForSubchart = function(t) { - var e = this, - n = e.d3, - r = e.context - .selectAll('.' + S.areas) - .selectAll('.' + S.area) - .data(e.lineData.bind(e)), - i = r - .enter() - .append('path') - .attr('class', e.classArea.bind(e)) - .style('fill', e.color) - .style('opacity', function() { - return ( - (e.orgAreaOpacity = +n.select(this).style('opacity')), 0 - ); - }); - r - .exit() - .transition() - .duration(t) - .style('opacity', 0) - .remove(), - (e.contextArea = i.merge(r).style('opacity', 0)); - }), - (r.prototype.redrawAreaForSubchart = function(t, e, n) { - (e - ? this.contextArea - .transition(Math.random().toString()) - .duration(n) - : this.contextArea - ) - .attr('d', t) - .style('fill', this.color) - .style('opacity', this.orgAreaOpacity); - }), - (r.prototype.redrawSubchart = function(t, e, n, r, i, o, a) { - var s, - u, - l, - c = this, - f = c.d3; - f.event && - 'zoom' === f.event.type && - c.brush.selectionAsValue(c.x.orgDomain()), - t && - (c.brush.empty() || c.brush.selectionAsValue(c.x.orgDomain()), - (s = c.generateDrawArea(i, !0)), - (u = c.generateDrawBar(o, !0)), - (l = c.generateDrawLine(a, !0)), - c.updateBarForSubchart(n), - c.updateLineForSubchart(n), - c.updateAreaForSubchart(n), - c.redrawBarForSubchart(u, n, n), - c.redrawLineForSubchart(l, n, n), - c.redrawAreaForSubchart(s, n, n)); - }), - (r.prototype.redrawForBrush = function() { - var t, - e = this, - n = e.x, - r = e.d3; - e.redraw({ - withTransition: !1, - withY: e.config.zoom_rescale, - withSubchart: !1, - withUpdateXDomain: !0, - withEventRect: !1, - withDimension: !1 - }), - (t = r.event.selection || e.brush.scale.range()), - e.main - .select('.' + S.eventRect) - .call( - e.zoom.transform, - r.zoomIdentity - .scale(e.width / (t[1] - t[0])) - .translate(-t[0], 0) - ), - e.config.subchart_onbrush.call(e.api, n.orgDomain()); - }), - (r.prototype.transformContext = function(t, e) { - var n; - e && e.axisSubX - ? (n = e.axisSubX) - : ((n = this.context.select('.' + S.axisX)), - t && (n = n.transition())), - this.context.attr('transform', this.getTranslate('context')), - n.attr('transform', this.getTranslate('subx')); - }), - (r.prototype.getDefaultSelection = function() { - var t = this, - e = t.config, - n = p(e.axis_x_selection) - ? e.axis_x_selection(t.getXDomain(t.data.targets)) - : e.axis_x_selection; - return ( - t.isTimeSeries() && (n = [t.parseDate(n[0]), t.parseDate(n[1])]), - n - ); - }), - (r.prototype.removeSubchart = function() { - (this.brush = null), this.context.remove(), (this.context = null); - }), - (r.prototype.initText = function() { - this.main - .select('.' + S.chart) - .append('g') - .attr('class', S.chartTexts), - (this.mainText = this.d3.selectAll([])); - }), - (r.prototype.updateTargetsForText = function(t) { - var e = this, - n = e.classChartText.bind(e), - r = e.classTexts.bind(e), - i = e.classFocus.bind(e), - o = e.main - .select('.' + S.chartTexts) - .selectAll('.' + S.chartText) - .data(t), - a = o - .enter() - .append('g') - .attr('class', n) - .style('opacity', 0) - .style('pointer-events', 'none'); - a.append('g').attr('class', r), - a.merge(o).attr('class', function(t) { - return n(t) + i(t); - }); - }), - (r.prototype.updateText = function(t, e, n) { - var r = this, - i = r.config, - o = r.barOrLineData.bind(r), - a = r.classText.bind(r), - s = r.main - .selectAll('.' + S.texts) - .selectAll('.' + S.text) - .data(o), - u = s - .enter() - .append('text') - .attr('class', a) - .attr('text-anchor', function(t) { - return i.axis_rotated - ? t.value < 0 - ? 'end' - : 'start' - : 'middle'; - }) - .style('stroke', 'none') - .attr('x', t) - .attr('y', e) - .style('fill', function(t) { - return r.color(t); - }) - .style('fill-opacity', 0); - (r.mainText = u.merge(s).text(function(t, e, n) { - return r.dataLabelFormat(t.id)(t.value, t.id, e, n); - })), - s - .exit() - .transition() - .duration(n) - .style('fill-opacity', 0) - .remove(); - }), - (r.prototype.redrawText = function(t, e, n, r, i) { - return [ - (r ? this.mainText.transition(i) : this.mainText) - .attr('x', t) - .attr('y', e) - .style('fill', this.color) - .style('fill-opacity', n ? 0 : this.opacityForText.bind(this)) - ]; - }), - (r.prototype.getTextRect = function(t, e, n) { - var r, - i = this.d3 - .select('body') - .append('div') - .classed('c3', !0), - o = i - .append('svg') - .style('visibility', 'hidden') - .style('position', 'fixed') - .style('top', 0) - .style('left', 0), - a = this.d3.select(n).style('font'); - return ( - o - .selectAll('.dummy') - .data([t]) - .enter() - .append('text') - .classed(e || '', !0) - .style('font', a) - .text(t) - .each(function() { - r = c(this); - }), - i.remove(), - r - ); - }), - (r.prototype.generateXYForText = function(t, e, n, r) { - var i = this, - o = i.generateGetAreaPoints(t, !1), - a = i.generateGetBarPoints(e, !1), - s = i.generateGetLinePoints(n, !1), - u = r ? i.getXForText : i.getYForText; - return function(t, e) { - var n = i.isAreaType(t) ? o : i.isBarType(t) ? a : s; - return u.call(i, n(t, e), t, this); - }; - }), - (r.prototype.getXForText = function(t, e, n) { - var r, - i, - o = this, - a = c(n); - return ( - o.config.axis_rotated - ? ((i = o.isBarType(e) ? 4 : 6), - (r = t[2][1] + i * (e.value < 0 ? -1 : 1))) - : (r = o.hasType('bar') ? (t[2][0] + t[0][0]) / 2 : t[0][0]), - null === e.value && - (r > o.width ? (r = o.width - a.width) : r < 0 && (r = 4)), - r - ); - }), - (r.prototype.getYForText = function(t, e, n) { - var r, - i = this, - o = c(n); - return ( - i.config.axis_rotated - ? (r = (t[0][0] + t[2][0] + 0.6 * o.height) / 2) - : ((r = t[2][1]), - e.value < 0 || (0 === e.value && !i.hasPositiveValue) - ? ((r += o.height), - i.isBarType(e) && i.isSafari() - ? (r -= 3) - : !i.isBarType(e) && i.isChrome() && (r += 3)) - : (r += i.isBarType(e) ? -3 : -6)), - null !== e.value || - i.config.axis_rotated || - (r < o.height - ? (r = o.height) - : r > this.height && (r = this.height - 4)), - r - ); - }), - (r.prototype.initTitle = function() { - this.title = this.svg - .append('text') - .text(this.config.title_text) - .attr('class', this.CLASS.title); - }), - (r.prototype.redrawTitle = function() { - var t = this; - t.title - .attr('x', t.xForTitle.bind(t)) - .attr('y', t.yForTitle.bind(t)); - }), - (r.prototype.xForTitle = function() { - var t = this, - e = t.config, - n = e.title_position || 'left'; - return n.indexOf('right') >= 0 - ? t.currentWidth - - t.getTextRect( - t.title.node().textContent, - t.CLASS.title, - t.title.node() - ).width - - e.title_padding.right - : n.indexOf('center') >= 0 - ? Math.max( - (t.currentWidth - - t.getTextRect( - t.title.node().textContent, - t.CLASS.title, - t.title.node() - ).width) / - 2, - 0 - ) - : e.title_padding.left; - }), - (r.prototype.yForTitle = function() { - var t = this; - return ( - t.config.title_padding.top + - t.getTextRect( - t.title.node().textContent, - t.CLASS.title, - t.title.node() - ).height - ); - }), - (r.prototype.getTitlePadding = function() { - return this.yForTitle() + this.config.title_padding.bottom; - }), - (r.prototype.drawColorScale = function() { - var t, - e, - n, - r, - i, - o, - a, - s = this, - u = s.d3, - l = s.config, - c = s.data.targets[0]; - if ( - (t = isNaN(l.stanford_scaleWidth) ? 20 : l.stanford_scaleWidth) < - 0 - ) - throw Error( - "Colorscale's barheight and barwidth must be greater than 0." - ); - (a = s.height - l.stanford_padding.bottom - l.stanford_padding.top), - (n = u.range(l.stanford_padding.bottom, a, 5)), - (o = u.scaleSequential(c.colors).domain([n[n.length - 1], n[0]])), - s.colorScale && s.colorScale.remove(), - (s.colorScale = s.svg - .append('g') - .attr('width', 50) - .attr('height', a) - .attr('class', S.colorScale)), - s.colorScale - .append('g') - .attr( - 'transform', - 'translate(0, '.concat(l.stanford_padding.top, ')') - ) - .selectAll('bars') - .data(n) - .enter() - .append('rect') - .attr('y', function(t, e) { - return 5 * e; - }) - .attr('x', 0) - .attr('width', t) - .attr('height', 5) - .attr('fill', function(t) { - return o(t); - }), - (i = u - .scaleLog() - .domain([c.minEpochs, c.maxEpochs]) - .range([ - n[0] + l.stanford_padding.top + n[n.length - 1] + 5 - 1, - n[0] + l.stanford_padding.top - ])), - (r = u.axisRight(i)), - 'pow10' === l.stanford_scaleFormat - ? r.tickValues([1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7]) - : p(l.stanford_scaleFormat) - ? r.tickFormat(l.stanford_scaleFormat) - : r.tickFormat(u.format('d')), - p(l.stanford_scaleValues) && - r.tickValues(l.stanford_scaleValues(c.minEpochs, c.maxEpochs)), - (e = s.colorScale - .append('g') - .attr('class', 'legend axis') - .attr('transform', 'translate('.concat(t, ',0)')) - .call(r)), - 'pow10' === l.stanford_scaleFormat && - e - .selectAll('.tick text') - .text(null) - .filter(T) - .text(10) - .append('tspan') - .attr('dy', '-.7em') - .text(function(t) { - return Math.round(Math.log(t) / Math.LN10); - }), - s.colorScale.attr( - 'transform', - 'translate('.concat(s.currentWidth - s.xForColorScale(), ', 0)') - ); - }), - (r.prototype.xForColorScale = function() { - return ( - this.config.stanford_padding.right + - c(this.colorScale.node()).width - ); - }), - (r.prototype.getColorScalePadding = function() { - return ( - this.xForColorScale() + this.config.stanford_padding.left + 20 - ); - }), - (r.prototype.isStanfordGraphType = function() { - return 'stanford' === this.config.data_type; - }), - (r.prototype.initStanfordData = function() { - var t, - e, - n, - r = this.d3, - i = this.config, - o = this.data.targets[0]; - if ( - (o.values.sort(P), - (t = o.values.map(function(t) { - return t.epochs; - })), - (n = isNaN(i.stanford_scaleMin) - ? r.min(t) - : i.stanford_scaleMin) > - (e = isNaN(i.stanford_scaleMax) - ? r.max(t) - : i.stanford_scaleMax)) - ) - throw Error( - 'Number of minEpochs has to be smaller than maxEpochs' - ); - (o.colors = p(i.stanford_colors) - ? i.stanford_colors - : r.interpolateHslLong(r.hsl(250, 1, 0.5), r.hsl(0, 1, 0.5))), - (o.colorscale = r.scaleSequentialLog(o.colors).domain([n, e])), - (o.minEpochs = n), - (o.maxEpochs = e); - }), - (r.prototype.getStanfordPointColor = function(t) { - return this.data.targets[0].colorscale(t.epochs); - }), - (r.prototype.getCentroid = function(t) { - var e, - n, - r, - i, - o, - a = C(t), - s = 0, - u = 0; - for (e = 0, n = t.length - 1; e < t.length; n = e, e += 1) - (i = t[e]), - (o = t[n]), - (r = i.x * o.y - o.x * i.y), - (s += (i.x + o.x) * r), - (u += (i.y + o.y) * r); - return { x: s / (r = 6 * a), y: u / r }; - }), - (r.prototype.getStanfordTooltipTitle = function(t) { - var e = this.axis.getLabelText('x'), - n = this.axis.getLabelText('y'); - return '\n ' - .concat(e ? _(e) : 'x', "") - .concat(t.x, '\n ') - .concat(n ? _(n) : 'y', "") - .concat(t.value, '\n '); - }), - (r.prototype.countEpochsInRegion = function(t) { - var e, - n, - r = this.data.targets[0]; - return ( - (e = r.values.reduce(function(t, e) { - return t + Number(e.epochs); - }, 0)), - { - value: (n = r.values.reduce(function(e, n) { - return O(n, t) ? e + Number(n.epochs) : e; - }, 0)), - percentage: 0 !== n ? ((n / e) * 100).toFixed(1) : 0 - } - ); - }); - var C = function(t) { - var e, - n, - r, - i, - o = 0; - for (e = 0, n = t.length - 1; e < t.length; n = e, e += 1) - (r = t[e]), (i = t[n]), (o += r.x * i.y), (o -= r.y * i.x); - return (o /= 2); - }, - O = function(t, e) { - for ( - var n, - r, - i, - o, - a = t.x, - s = t.value, - u = !1, - l = 0, - c = e.length - 1; - l < e.length; - c = l++ - ) - (n = e[l].x), - (r = e[l].y), - (o = e[c].x), - r > s != (i = e[c].y) > s && - a < ((o - n) * (s - r)) / (i - r) + n && - (u = !u); - return u; - }, - P = function(t, e) { - return t.epochs < e.epochs ? -1 : t.epochs > e.epochs ? 1 : 0; - }; - return ( - (r.prototype.initStanfordElements = function() { - var t = this; - (t.stanfordElements = t.main - .select('.' + S.chart) - .append('g') - .attr('class', S.stanfordElements)), - t.stanfordElements.append('g').attr('class', S.stanfordLines), - t.stanfordElements.append('g').attr('class', S.stanfordTexts), - t.stanfordElements.append('g').attr('class', S.stanfordRegions); - }), - (r.prototype.updateStanfordElements = function(t) { - var e, - n, - r, - i, - o, - a, - s = this, - u = s.main, - l = s.config, - c = s.xvCustom.bind(s), - f = s.yvCustom.bind(s), - d = s.countEpochsInRegion.bind(s); - (n = (e = u - .select('.' + S.stanfordLines) - .style('shape-rendering', 'geometricprecision') - .selectAll('.' + S.stanfordLine) - .data(l.stanford_lines)) - .enter() - .append('g') - .attr('class', function(t) { - return S.stanfordLine + (t.class ? ' ' + t.class : ''); - })) - .append('line') - .attr('x1', function(t) { - return l.axis_rotated ? f(t, 'value_y1') : c(t, 'value_x1'); - }) - .attr('x2', function(t) { - return l.axis_rotated ? f(t, 'value_y2') : c(t, 'value_x2'); - }) - .attr('y1', function(t) { - return l.axis_rotated ? c(t, 'value_x1') : f(t, 'value_y1'); - }) - .attr('y2', function(t) { - return l.axis_rotated ? c(t, 'value_x2') : f(t, 'value_y2'); - }) - .style('opacity', 0), - (s.stanfordLines = n.merge(e)), - s.stanfordLines - .select('line') - .transition() - .duration(t) - .attr('x1', function(t) { - return l.axis_rotated ? f(t, 'value_y1') : c(t, 'value_x1'); - }) - .attr('x2', function(t) { - return l.axis_rotated ? f(t, 'value_y2') : c(t, 'value_x2'); - }) - .attr('y1', function(t) { - return l.axis_rotated ? c(t, 'value_x1') : f(t, 'value_y1'); - }) - .attr('y2', function(t) { - return l.axis_rotated ? c(t, 'value_x2') : f(t, 'value_y2'); - }) - .style('opacity', 1), - e - .exit() - .transition() - .duration(t) - .style('opacity', 0) - .remove(), - (a = (o = u - .select('.' + S.stanfordTexts) - .selectAll('.' + S.stanfordText) - .data(l.stanford_texts)) - .enter() - .append('g') - .attr('class', function(t) { - return S.stanfordText + (t.class ? ' ' + t.class : ''); - })) - .append('text') - .attr('x', function(t) { - return l.axis_rotated ? f(t, 'y') : c(t, 'x'); - }) - .attr('y', function(t) { - return l.axis_rotated ? c(t, 'x') : f(t, 'y'); - }) - .style('opacity', 0), - (s.stanfordTexts = a.merge(o)), - s.stanfordTexts - .select('text') - .transition() - .duration(t) - .attr('x', function(t) { - return l.axis_rotated ? f(t, 'y') : c(t, 'x'); - }) - .attr('y', function(t) { - return l.axis_rotated ? c(t, 'x') : f(t, 'y'); - }) - .text(function(t) { - return t.content; - }) - .style('opacity', 1), - o - .exit() - .transition() - .duration(t) - .style('opacity', 0) - .remove(), - (i = (r = u - .select('.' + S.stanfordRegions) - .selectAll('.' + S.stanfordRegion) - .data(l.stanford_regions)) - .enter() - .append('g') - .attr('class', function(t) { - return S.stanfordRegion + (t.class ? ' ' + t.class : ''); - })) - .append('polygon') - .attr('points', function(t) { - return t.points - .map(function(t) { - return [ - l.axis_rotated ? f(t, 'y') : c(t, 'x'), - l.axis_rotated ? c(t, 'x') : f(t, 'y') - ].join(','); - }) - .join(' '); - }) - .style('opacity', 0), - i - .append('text') - .attr('x', function(t) { - return s.getCentroid(t.points).x; - }) - .attr('y', function(t) { - return s.getCentroid(t.points).y; - }) - .style('opacity', 0), - (s.stanfordRegions = i.merge(r)), - s.stanfordRegions - .select('polygon') - .transition() - .duration(t) - .attr('points', function(t) { - return t.points - .map(function(t) { - return [ - l.axis_rotated ? f(t, 'y') : c(t, 'x'), - l.axis_rotated ? c(t, 'x') : f(t, 'y') - ].join(','); - }) - .join(' '); - }) - .style('opacity', function(t) { - return t.opacity ? t.opacity : 0.2; - }), - s.stanfordRegions - .select('text') - .transition() - .duration(t) - .attr('x', function(t) { - return l.axis_rotated - ? f(s.getCentroid(t.points), 'y') - : c(s.getCentroid(t.points), 'x'); - }) - .attr('y', function(t) { - return l.axis_rotated - ? c(s.getCentroid(t.points), 'x') - : f(s.getCentroid(t.points), 'y'); - }) - .text(function(t) { - var e, n, r; - return t.text - ? (s.isStanfordGraphType() && - ((e = (r = d(t.points)).value), (n = r.percentage)), - t.text(e, n)) - : ''; - }) - .attr('text-anchor', 'middle') - .attr('dominant-baseline', 'middle') - .style('opacity', 1), - r - .exit() - .transition() - .duration(t) - .style('opacity', 0) - .remove(); - }), - (r.prototype.initTooltip = function() { - var t, - e = this, - n = e.config; - if ( - ((e.tooltip = e.selectChart - .style('position', 'relative') - .append('div') - .attr('class', S.tooltipContainer) - .style('position', 'absolute') - .style('pointer-events', 'none') - .style('display', 'none')), - n.tooltip_init_show) - ) { - if (e.isTimeSeries() && v(n.tooltip_init_x)) { - for ( - n.tooltip_init_x = e.parseDate(n.tooltip_init_x), t = 0; - t < e.data.targets[0].values.length && - e.data.targets[0].values[t].x - n.tooltip_init_x != 0; - t++ - ); - n.tooltip_init_x = t; - } - e.tooltip.html( - n.tooltip_contents.call( - e, - e.data.targets.map(function(t) { - return e.addName(t.values[n.tooltip_init_x]); - }), - e.axis.getXAxisTickFormat(), - e.getYFormat(e.hasArcType()), - e.color - ) - ), - e.tooltip - .style('top', n.tooltip_init_position.top) - .style('left', n.tooltip_init_position.left) - .style('display', 'block'); - } - }), - (r.prototype.getTooltipSortFunction = function() { - var t = this, - e = t.config; - if (0 !== e.data_groups.length && void 0 === e.tooltip_order) { - var n = t.orderTargets(t.data.targets).map(function(t) { - return t.id; - }); - return ( - (t.isOrderAsc() || t.isOrderDesc()) && (n = n.reverse()), - function(t, e) { - return n.indexOf(t.id) - n.indexOf(e.id); - } - ); - } - var r = e.tooltip_order; - void 0 === r && (r = e.data_order); - var i = function(t) { - return t ? t.value : null; - }; - if (v(r) && 'asc' === r.toLowerCase()) - return function(t, e) { - return i(t) - i(e); - }; - if (v(r) && 'desc' === r.toLowerCase()) - return function(t, e) { - return i(e) - i(t); - }; - if (p(r)) { - var o = r; - return ( - void 0 === e.tooltip_order && - (o = function(t, e) { - return r( - t ? { id: t.id, values: [t] } : null, - e ? { id: e.id, values: [e] } : null - ); - }), - o - ); - } - return f(r) - ? function(t, e) { - return r.indexOf(t.id) - r.indexOf(e.id); - } - : void 0; - }), - (r.prototype.getTooltipContent = function(t, e, n, r) { - var i, - o, - a, - s, - u, - l, - c = this, - f = c.config, - d = f.tooltip_format_title || e, - h = - f.tooltip_format_name || - function(t) { - return t; - }, - p = f.tooltip_format_value; - p || - (p = c.isTargetNormalized(t.id) - ? function(t, e) { - return ''.concat((100 * e).toFixed(2), '%'); - } - : n); - var g = this.getTooltipSortFunction(); - for (g && t.sort(g), o = 0; o < t.length; o++) - if (t[o] && (t[o].value || 0 === t[o].value)) { - if (c.isStanfordGraphType()) - i || - ((a = c.getStanfordTooltipTitle(t[o])), - (i = "" + a)), - (l = c.getStanfordPointColor(t[o])), - (u = _(f.data_epochs)), - (s = t[o].epochs); - else if ( - (i || - ((a = _(d ? d(t[o].x, t[o].index) : t[o].x)), - (i = - "
" + - (a || 0 === a - ? "' - : ''))), - void 0 !== - (s = _(p(t[o].value, t[o].ratio, t[o].id, t[o].index, t)))) - ) { - if (null === t[o].name) continue; - (u = _(h(t[o].name, t[o].ratio, t[o].id, t[o].index))), - (l = c.levelColor ? c.levelColor(t[o].value) : r(t[o].id)); - } - void 0 !== s && - ((i += - ""), - (i += - "'), - (i += "'), - (i += '')); - } - return i + '
" + a + '
" + - u + - '" + s + '
'; - }), - (r.prototype.tooltipPosition = function(t, e, n, r) { - var i, - o, - a, - s, - u, - l = this, - c = l.config, - f = l.d3, - d = l.hasArcType(), - h = f.mouse(r); - return ( - d - ? ((o = - (l.width - (l.isLegendRight ? l.getLegendWidth() : 0)) / 2 + - h[0]), - (s = - (l.hasType('gauge') ? l.height : l.height / 2) + h[1] + 20)) - : ((i = l.getSvgLeft(!0)), - c.axis_rotated - ? ((a = (o = i + h[0] + 100) + e), - (u = l.currentWidth - l.getCurrentPaddingRight()), - (s = l.x(t[0].x) + 20)) - : ((a = - (o = - i + l.getCurrentPaddingLeft(!0) + l.x(t[0].x) + 20) + - e), - (u = i + l.currentWidth - l.getCurrentPaddingRight()), - (s = h[1] + 15)), - a > u && (o -= a - u + 20), - s + n > l.currentHeight && (s -= n + 30)), - s < 0 && (s = 0), - { top: s, left: o } - ); - }), - (r.prototype.showTooltip = function(t, e) { - var n, - i, - o, - a = this, - s = a.config, - u = a.hasArcType(), - l = t.filter(function(t) { - return t && y(t.value); - }), - c = s.tooltip_position || r.prototype.tooltipPosition; - 0 !== l.length && - s.tooltip_show && - (a.tooltip - .html( - s.tooltip_contents.call( - a, - t, - a.axis.getXAxisTickFormat(), - a.getYFormat(u), - a.color - ) - ) - .style('display', 'block'), - (n = a.tooltip.property('offsetWidth')), - (i = a.tooltip.property('offsetHeight')), - (o = c.call(this, l, n, i, e)), - a.tooltip - .style('top', o.top + 'px') - .style('left', o.left + 'px')); - }), - (r.prototype.hideTooltip = function() { - this.tooltip.style('display', 'none'); - }), - (r.prototype.setTargetType = function(t, e) { - var n = this, - r = n.config; - n.mapToTargetIds(t).forEach(function(t) { - (n.withoutFadeIn[t] = e === r.data_types[t]), - (r.data_types[t] = e); - }), - t || (r.data_type = e); - }), - (r.prototype.hasType = function(t, e) { - var n = this.config.data_types, - r = !1; - return ( - (e = e || this.data.targets) && e.length - ? e.forEach(function(e) { - var i = n[e.id]; - ((i && i.indexOf(t) >= 0) || (!i && 'line' === t)) && - (r = !0); - }) - : Object.keys(n).length - ? Object.keys(n).forEach(function(e) { - n[e] === t && (r = !0); - }) - : (r = this.config.data_type === t), - r - ); - }), - (r.prototype.hasArcType = function(t) { - return ( - this.hasType('pie', t) || - this.hasType('donut', t) || - this.hasType('gauge', t) - ); - }), - (r.prototype.isLineType = function(t) { - var e = this.config, - n = v(t) ? t : t.id; - return ( - !e.data_types[n] || - [ - 'line', - 'spline', - 'area', - 'area-spline', - 'step', - 'area-step' - ].indexOf(e.data_types[n]) >= 0 - ); - }), - (r.prototype.isStepType = function(t) { - var e = v(t) ? t : t.id; - return ( - ['step', 'area-step'].indexOf(this.config.data_types[e]) >= 0 - ); - }), - (r.prototype.isSplineType = function(t) { - var e = v(t) ? t : t.id; - return ( - ['spline', 'area-spline'].indexOf(this.config.data_types[e]) >= 0 - ); - }), - (r.prototype.isAreaType = function(t) { - var e = v(t) ? t : t.id; - return ( - ['area', 'area-spline', 'area-step'].indexOf( - this.config.data_types[e] - ) >= 0 - ); - }), - (r.prototype.isBarType = function(t) { - var e = v(t) ? t : t.id; - return 'bar' === this.config.data_types[e]; - }), - (r.prototype.isScatterType = function(t) { - var e = v(t) ? t : t.id; - return 'scatter' === this.config.data_types[e]; - }), - (r.prototype.isStanfordType = function(t) { - var e = v(t) ? t : t.id; - return 'stanford' === this.config.data_types[e]; - }), - (r.prototype.isPieType = function(t) { - var e = v(t) ? t : t.id; - return 'pie' === this.config.data_types[e]; - }), - (r.prototype.isGaugeType = function(t) { - var e = v(t) ? t : t.id; - return 'gauge' === this.config.data_types[e]; - }), - (r.prototype.isDonutType = function(t) { - var e = v(t) ? t : t.id; - return 'donut' === this.config.data_types[e]; - }), - (r.prototype.isArcType = function(t) { - return ( - this.isPieType(t) || this.isDonutType(t) || this.isGaugeType(t) - ); - }), - (r.prototype.lineData = function(t) { - return this.isLineType(t) ? [t] : []; - }), - (r.prototype.arcData = function(t) { - return this.isArcType(t.data) ? [t] : []; - }), - (r.prototype.barData = function(t) { - return this.isBarType(t) ? t.values : []; - }), - (r.prototype.lineOrScatterOrStanfordData = function(t) { - return this.isLineType(t) || - this.isScatterType(t) || - this.isStanfordType(t) - ? t.values - : []; - }), - (r.prototype.barOrLineData = function(t) { - return this.isBarType(t) || this.isLineType(t) ? t.values : []; - }), - (r.prototype.isSafari = function() { - var t = window.navigator.userAgent; - return t.indexOf('Safari') >= 0 && t.indexOf('Chrome') < 0; - }), - (r.prototype.isChrome = function() { - return window.navigator.userAgent.indexOf('Chrome') >= 0; - }), - (r.prototype.initZoom = function() { - var t, - e = this, - n = e.d3, - r = e.config; - return ( - (e.zoom = n - .zoom() - .on('start', function() { - if ('scroll' === r.zoom_type) { - var i = n.event.sourceEvent; - (i && 'brush' === i.type) || - ((t = i), r.zoom_onzoomstart.call(e.api, i)); - } - }) - .on('zoom', function() { - if ('scroll' === r.zoom_type) { - var t = n.event.sourceEvent; - (t && 'brush' === t.type) || - (e.redrawForZoom(), - r.zoom_onzoom.call(e.api, e.x.orgDomain())); - } - }) - .on('end', function() { - if ('scroll' === r.zoom_type) { - var i = n.event.sourceEvent; - (i && 'brush' === i.type) || - (i && - t.clientX === i.clientX && - t.clientY === i.clientY) || - r.zoom_onzoomend.call(e.api, e.x.orgDomain()); - } - })), - (e.zoom.updateDomain = function() { - return ( - n.event && - n.event.transform && - e.x.domain(n.event.transform.rescaleX(e.subX).domain()), - this - ); - }), - (e.zoom.updateExtent = function() { - return ( - this.scaleExtent([1, 1 / 0]) - .translateExtent([ - [0, 0], - [e.width, e.height] - ]) - .extent([ - [0, 0], - [e.width, e.height] - ]), - this - ); - }), - (e.zoom.update = function() { - return this.updateExtent().updateDomain(); - }), - e.zoom.updateExtent() - ); - }), - (r.prototype.zoomTransform = function(t) { - var e = [this.x(t[0]), this.x(t[1])]; - return this.d3.zoomIdentity - .scale(this.width / (e[1] - e[0])) - .translate(-e[0], 0); - }), - (r.prototype.initDragZoom = function() { - var t = this, - e = t.d3, - n = t.config, - r = (t.context = t.svg), - i = t.margin.left + 20.5, - o = t.margin.top + 0.5; - if ('drag' === n.zoom_type && n.zoom_enabled) { - var a = function(e) { - return ( - e && - e.map(function(e) { - return t.x.invert(e); - }) - ); - }, - s = (t.dragZoomBrush = e - .brushX() - .on('start', function() { - t.api.unzoom(), - t.svg.select('.' + S.dragZoom).classed('disabled', !1), - n.zoom_onzoomstart.call(t.api, e.event.sourceEvent); - }) - .on('brush', function() { - n.zoom_onzoom.call(t.api, a(e.event.selection)); - }) - .on('end', function() { - if (null != e.event.selection) { - var r = a(e.event.selection); - n.zoom_disableDefaultBehavior || t.api.zoom(r), - t.svg.select('.' + S.dragZoom).classed('disabled', !0), - n.zoom_onzoomend.call(t.api, r); - } - })); - r.append('g') - .classed(S.dragZoom, !0) - .attr('clip-path', t.clipPath) - .attr('transform', 'translate(' + i + ',' + o + ')') - .call(s); - } - }), - (r.prototype.getZoomDomain = function() { - var t = this.config, - e = this.d3; - return [ - e.min([this.orgXDomain[0], t.zoom_x_min]), - e.max([this.orgXDomain[1], t.zoom_x_max]) - ]; - }), - (r.prototype.redrawForZoom = function() { - var t = this, - e = t.d3, - n = t.config, - r = t.zoom, - i = t.x; - n.zoom_enabled && - 0 !== t.filterTargetsToShow(t.data.targets).length && - (r.update(), - n.zoom_disableDefaultBehavior || - (t.isCategorized() && - i.orgDomain()[0] === t.orgXDomain[0] && - i.domain([t.orgXDomain[0] - 1e-10, i.orgDomain()[1]]), - t.redraw({ - withTransition: !1, - withY: n.zoom_rescale, - withSubchart: !1, - withEventRect: !1, - withDimension: !1 - }), - e.event.sourceEvent && - 'mousemove' === e.event.sourceEvent.type && - (t.cancelClick = !0))); - }), - k - ); - })(); - }, - function(t, e, n) { - var r; - window, - (r = function() { - return (function(t) { - var e = {}; - function n(r) { - if (e[r]) return e[r].exports; - var i = (e[r] = { i: r, l: !1, exports: {} }); - return ( - t[r].call(i.exports, i, i.exports, n), (i.l = !0), i.exports - ); - } - return ( - (n.m = t), - (n.c = e), - (n.d = function(t, e, r) { - n.o(t, e) || - Object.defineProperty(t, e, { enumerable: !0, get: r }); - }), - (n.r = function(t) { - 'undefined' != typeof Symbol && - Symbol.toStringTag && - Object.defineProperty(t, Symbol.toStringTag, { - value: 'Module' - }), - Object.defineProperty(t, '__esModule', { value: !0 }); - }), - (n.t = function(t, e) { - if ((1 & e && (t = n(t)), 8 & e)) return t; - if (4 & e && 'object' == typeof t && t && t.__esModule) - return t; - var r = Object.create(null); - if ( - (n.r(r), - Object.defineProperty(r, 'default', { - enumerable: !0, - value: t - }), - 2 & e && 'string' != typeof t) - ) - for (var i in t) - n.d( - r, - i, - function(e) { - return t[e]; - }.bind(null, i) - ); - return r; - }), - (n.n = function(t) { - var e = - t && t.__esModule - ? function() { - return t.default; - } - : function() { - return t; - }; - return n.d(e, 'a', e), e; - }), - (n.o = function(t, e) { - return Object.prototype.hasOwnProperty.call(t, e); - }), - (n.p = ''), - n((n.s = 4)) - ); - })([ - function(t, e, n) { - t.exports = n(7)(); - }, - function(t, e, n) { - 'use strict'; - t.exports = n(5); - }, - function(t, e, n) { - 'use strict'; - n.r(e); - var r = function(t, e) { - return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; - }, - i = function(t) { - var e; - return ( - 1 === t.length && - ((e = t), - (t = function(t, n) { - return r(e(t), n); - })), - { - left: function(e, n, r, i) { - for ( - null == r && (r = 0), null == i && (i = e.length); - r < i; - - ) { - var o = (r + i) >>> 1; - t(e[o], n) < 0 ? (r = o + 1) : (i = o); - } - return r; - }, - right: function(e, n, r, i) { - for ( - null == r && (r = 0), null == i && (i = e.length); - r < i; - - ) { - var o = (r + i) >>> 1; - t(e[o], n) > 0 ? (i = o) : (r = o + 1); - } - return r; - } - } - ); - }, - o = i(r), - a = o.right, - s = o.left, - u = a, - l = function(t, e) { - null == e && (e = c); - for ( - var n = 0, - r = t.length - 1, - i = t[0], - o = new Array(r < 0 ? 0 : r); - n < r; - - ) - o[n] = e(i, (i = t[++n])); - return o; - }; - function c(t, e) { - return [t, e]; - } - var f = function(t, e, n) { - var r, - i, - o, - a, - s = t.length, - u = e.length, - l = new Array(s * u); - for (null == n && (n = c), r = o = 0; r < s; ++r) - for (a = t[r], i = 0; i < u; ++i, ++o) l[o] = n(a, e[i]); - return l; - }, - d = function(t, e) { - return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN; - }, - h = function(t) { - return null === t ? NaN : +t; - }, - p = function(t, e) { - var n, - r, - i = t.length, - o = 0, - a = -1, - s = 0, - u = 0; - if (null == e) - for (; ++a < i; ) - isNaN((n = h(t[a]))) || - (u += (r = n - s) * (n - (s += r / ++o))); - else - for (; ++a < i; ) - isNaN((n = h(e(t[a], a, t)))) || - (u += (r = n - s) * (n - (s += r / ++o))); - if (o > 1) return u / (o - 1); - }, - g = function(t, e) { - var n = p(t, e); - return n ? Math.sqrt(n) : n; - }, - v = function(t, e) { - var n, - r, - i, - o = t.length, - a = -1; - if (null == e) { - for (; ++a < o; ) - if (null != (n = t[a]) && n >= n) - for (r = i = n; ++a < o; ) - null != (n = t[a]) && - (r > n && (r = n), i < n && (i = n)); - } else - for (; ++a < o; ) - if (null != (n = e(t[a], a, t)) && n >= n) - for (r = i = n; ++a < o; ) - null != (n = e(t[a], a, t)) && - (r > n && (r = n), i < n && (i = n)); - return [r, i]; - }, - m = Array.prototype, - y = m.slice, - b = m.map, - _ = function(t) { - return function() { - return t; - }; - }, - x = function(t) { - return t; - }, - w = function(t, e, n) { - (t = +t), - (e = +e), - (n = - (i = arguments.length) < 2 - ? ((e = t), (t = 0), 1) - : i < 3 - ? 1 - : +n); - for ( - var r = -1, - i = 0 | Math.max(0, Math.ceil((e - t) / n)), - o = new Array(i); - ++r < i; - - ) - o[r] = t + r * n; - return o; - }, - S = Math.sqrt(50), - E = Math.sqrt(10), - k = Math.sqrt(2), - A = function(t, e, n) { - var r, - i, - o, - a, - s = -1; - if (((n = +n), (t = +t) == (e = +e) && n > 0)) return [t]; - if ( - ((r = e < t) && ((i = t), (t = e), (e = i)), - 0 === (a = T(t, e, n)) || !isFinite(a)) - ) - return []; - if (a > 0) - for ( - t = Math.ceil(t / a), - e = Math.floor(e / a), - o = new Array((i = Math.ceil(e - t + 1))); - ++s < i; - - ) - o[s] = (t + s) * a; - else - for ( - t = Math.floor(t * a), - e = Math.ceil(e * a), - o = new Array((i = Math.ceil(t - e + 1))); - ++s < i; - - ) - o[s] = (t - s) / a; - return r && o.reverse(), o; - }; - function T(t, e, n) { - var r = (e - t) / Math.max(0, n), - i = Math.floor(Math.log(r) / Math.LN10), - o = r / Math.pow(10, i); - return i >= 0 - ? (o >= S ? 10 : o >= E ? 5 : o >= k ? 2 : 1) * - Math.pow(10, i) - : -Math.pow(10, -i) / - (o >= S ? 10 : o >= E ? 5 : o >= k ? 2 : 1); - } - function C(t, e, n) { - var r = Math.abs(e - t) / Math.max(0, n), - i = Math.pow(10, Math.floor(Math.log(r) / Math.LN10)), - o = r / i; - return ( - o >= S ? (i *= 10) : o >= E ? (i *= 5) : o >= k && (i *= 2), - e < t ? -i : i - ); - } - var O = function(t) { - return Math.ceil(Math.log(t.length) / Math.LN2) + 1; - }, - P = function() { - var t = x, - e = v, - n = O; - function r(r) { - var i, - o, - a = r.length, - s = new Array(a); - for (i = 0; i < a; ++i) s[i] = t(r[i], i, r); - var l = e(s), - c = l[0], - f = l[1], - d = n(s, c, f); - Array.isArray(d) || - ((d = C(c, f, d)), (d = w(Math.ceil(c / d) * d, f, d))); - for (var h = d.length; d[0] <= c; ) d.shift(), --h; - for (; d[h - 1] > f; ) d.pop(), --h; - var p, - g = new Array(h + 1); - for (i = 0; i <= h; ++i) - ((p = g[i] = []).x0 = i > 0 ? d[i - 1] : c), - (p.x1 = i < h ? d[i] : f); - for (i = 0; i < a; ++i) - c <= (o = s[i]) && o <= f && g[u(d, o, 0, h)].push(r[i]); - return g; - } - return ( - (r.value = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : _(e)), r) - : t; - }), - (r.domain = function(t) { - return arguments.length - ? ((e = 'function' == typeof t ? t : _([t[0], t[1]])), - r) - : e; - }), - (r.thresholds = function(t) { - return arguments.length - ? ((n = - 'function' == typeof t - ? t - : Array.isArray(t) - ? _(y.call(t)) - : _(t)), - r) - : n; - }), - r - ); - }, - M = function(t, e, n) { - if ((null == n && (n = h), (r = t.length))) { - if ((e = +e) <= 0 || r < 2) return +n(t[0], 0, t); - if (e >= 1) return +n(t[r - 1], r - 1, t); - var r, - i = (r - 1) * e, - o = Math.floor(i), - a = +n(t[o], o, t); - return a + (+n(t[o + 1], o + 1, t) - a) * (i - o); - } - }, - L = function(t, e, n) { - return ( - (t = b.call(t, h).sort(r)), - Math.ceil( - (n - e) / - (2 * - (M(t, 0.75) - M(t, 0.25)) * - Math.pow(t.length, -1 / 3)) - ) - ); - }, - D = function(t, e, n) { - return Math.ceil( - (n - e) / (3.5 * g(t) * Math.pow(t.length, -1 / 3)) - ); - }, - j = function(t, e) { - var n, - r, - i = t.length, - o = -1; - if (null == e) { - for (; ++o < i; ) - if (null != (n = t[o]) && n >= n) - for (r = n; ++o < i; ) - null != (n = t[o]) && n > r && (r = n); - } else - for (; ++o < i; ) - if (null != (n = e(t[o], o, t)) && n >= n) - for (r = n; ++o < i; ) - null != (n = e(t[o], o, t)) && n > r && (r = n); - return r; - }, - R = function(t, e) { - var n, - r = t.length, - i = r, - o = -1, - a = 0; - if (null == e) - for (; ++o < r; ) isNaN((n = h(t[o]))) ? --i : (a += n); - else - for (; ++o < r; ) - isNaN((n = h(e(t[o], o, t)))) ? --i : (a += n); - if (i) return a / i; - }, - N = function(t, e) { - var n, - i = t.length, - o = -1, - a = []; - if (null == e) - for (; ++o < i; ) isNaN((n = h(t[o]))) || a.push(n); - else - for (; ++o < i; ) - isNaN((n = h(e(t[o], o, t)))) || a.push(n); - return M(a.sort(r), 0.5); - }, - z = function(t) { - for (var e, n, r, i = t.length, o = -1, a = 0; ++o < i; ) - a += t[o].length; - for (n = new Array(a); --i >= 0; ) - for (e = (r = t[i]).length; --e >= 0; ) n[--a] = r[e]; - return n; - }, - I = function(t, e) { - var n, - r, - i = t.length, - o = -1; - if (null == e) { - for (; ++o < i; ) - if (null != (n = t[o]) && n >= n) - for (r = n; ++o < i; ) - null != (n = t[o]) && r > n && (r = n); - } else - for (; ++o < i; ) - if (null != (n = e(t[o], o, t)) && n >= n) - for (r = n; ++o < i; ) - null != (n = e(t[o], o, t)) && r > n && (r = n); - return r; - }, - F = function(t, e) { - for (var n = e.length, r = new Array(n); n--; ) - r[n] = t[e[n]]; - return r; - }, - V = function(t, e) { - if ((n = t.length)) { - var n, - i, - o = 0, - a = 0, - s = t[a]; - for (null == e && (e = r); ++o < n; ) - (e((i = t[o]), s) < 0 || 0 !== e(s, s)) && - ((s = i), (a = o)); - return 0 === e(s, s) ? a : void 0; - } - }, - B = function(t, e, n) { - for ( - var r, - i, - o = (null == n ? t.length : n) - (e = null == e ? 0 : +e); - o; - - ) - (i = (Math.random() * o--) | 0), - (r = t[o + e]), - (t[o + e] = t[i + e]), - (t[i + e] = r); - return t; - }, - G = function(t, e) { - var n, - r = t.length, - i = -1, - o = 0; - if (null == e) for (; ++i < r; ) (n = +t[i]) && (o += n); - else for (; ++i < r; ) (n = +e(t[i], i, t)) && (o += n); - return o; - }, - H = function(t) { - if (!(i = t.length)) return []; - for (var e = -1, n = I(t, U), r = new Array(n); ++e < n; ) - for (var i, o = -1, a = (r[e] = new Array(i)); ++o < i; ) - a[o] = t[o][e]; - return r; - }; - function U(t) { - return t.length; - } - var q = function() { - return H(arguments); - }, - W = Array.prototype.slice, - X = function(t) { - return t; - }; - function Y(t) { - return 'translate(' + (t + 0.5) + ',0)'; - } - function $(t) { - return 'translate(0,' + (t + 0.5) + ')'; - } - function Q(t) { - return function(e) { - return +t(e); - }; - } - function K(t) { - var e = Math.max(0, t.bandwidth() - 1) / 2; - return ( - t.round() && (e = Math.round(e)), - function(n) { - return +t(n) + e; - } - ); - } - function Z() { - return !this.__axis; - } - function J(t, e) { - var n = [], - r = null, - i = null, - o = 6, - a = 6, - s = 3, - u = 1 === t || 4 === t ? -1 : 1, - l = 4 === t || 2 === t ? 'x' : 'y', - c = 1 === t || 3 === t ? Y : $; - function f(f) { - var d = - null == r - ? e.ticks - ? e.ticks.apply(e, n) - : e.domain() - : r, - h = - null == i - ? e.tickFormat - ? e.tickFormat.apply(e, n) - : X - : i, - p = Math.max(o, 0) + s, - g = e.range(), - v = +g[0] + 0.5, - m = +g[g.length - 1] + 0.5, - y = (e.bandwidth ? K : Q)(e.copy()), - b = f.selection ? f.selection() : f, - _ = b.selectAll('.domain').data([null]), - x = b - .selectAll('.tick') - .data(d, e) - .order(), - w = x.exit(), - S = x - .enter() - .append('g') - .attr('class', 'tick'), - E = x.select('line'), - k = x.select('text'); - (_ = _.merge( - _.enter() - .insert('path', '.tick') - .attr('class', 'domain') - .attr('stroke', 'currentColor') - )), - (x = x.merge(S)), - (E = E.merge( - S.append('line') - .attr('stroke', 'currentColor') - .attr(l + '2', u * o) - )), - (k = k.merge( - S.append('text') - .attr('fill', 'currentColor') - .attr(l, u * p) - .attr( - 'dy', - 1 === t ? '0em' : 3 === t ? '0.71em' : '0.32em' - ) - )), - f !== b && - ((_ = _.transition(f)), - (x = x.transition(f)), - (E = E.transition(f)), - (k = k.transition(f)), - (w = w - .transition(f) - .attr('opacity', 1e-6) - .attr('transform', function(t) { - return isFinite((t = y(t))) - ? c(t) - : this.getAttribute('transform'); - })), - S.attr('opacity', 1e-6).attr('transform', function(t) { - var e = this.parentNode.__axis; - return c(e && isFinite((e = e(t))) ? e : y(t)); - })), - w.remove(), - _.attr( - 'd', - 4 === t || 2 == t - ? a - ? 'M' + u * a + ',' + v + 'H0.5V' + m + 'H' + u * a - : 'M0.5,' + v + 'V' + m - : a - ? 'M' + v + ',' + u * a + 'V0.5H' + m + 'V' + u * a - : 'M' + v + ',0.5H' + m - ), - x.attr('opacity', 1).attr('transform', function(t) { - return c(y(t)); - }), - E.attr(l + '2', u * o), - k.attr(l, u * p).text(h), - b - .filter(Z) - .attr('fill', 'none') - .attr('font-size', 10) - .attr('font-family', 'sans-serif') - .attr( - 'text-anchor', - 2 === t ? 'start' : 4 === t ? 'end' : 'middle' - ), - b.each(function() { - this.__axis = y; - }); - } - return ( - (f.scale = function(t) { - return arguments.length ? ((e = t), f) : e; - }), - (f.ticks = function() { - return (n = W.call(arguments)), f; - }), - (f.tickArguments = function(t) { - return arguments.length - ? ((n = null == t ? [] : W.call(t)), f) - : n.slice(); - }), - (f.tickValues = function(t) { - return arguments.length - ? ((r = null == t ? null : W.call(t)), f) - : r && r.slice(); - }), - (f.tickFormat = function(t) { - return arguments.length ? ((i = t), f) : i; - }), - (f.tickSize = function(t) { - return arguments.length ? ((o = a = +t), f) : o; - }), - (f.tickSizeInner = function(t) { - return arguments.length ? ((o = +t), f) : o; - }), - (f.tickSizeOuter = function(t) { - return arguments.length ? ((a = +t), f) : a; - }), - (f.tickPadding = function(t) { - return arguments.length ? ((s = +t), f) : s; - }), - f - ); - } - function tt(t) { - return J(1, t); - } - function et(t) { - return J(2, t); - } - function nt(t) { - return J(3, t); - } - function rt(t) { - return J(4, t); - } - var it = { value: function() {} }; - function ot() { - for (var t, e = 0, n = arguments.length, r = {}; e < n; ++e) { - if (!(t = arguments[e] + '') || t in r) - throw new Error('illegal type: ' + t); - r[t] = []; - } - return new at(r); - } - function at(t) { - this._ = t; - } - function st(t, e) { - return t - .trim() - .split(/^|\s+/) - .map(function(t) { - var n = '', - r = t.indexOf('.'); - if ( - (r >= 0 && ((n = t.slice(r + 1)), (t = t.slice(0, r))), - t && !e.hasOwnProperty(t)) - ) - throw new Error('unknown type: ' + t); - return { type: t, name: n }; - }); - } - function ut(t, e) { - for (var n, r = 0, i = t.length; r < i; ++r) - if ((n = t[r]).name === e) return n.value; - } - function lt(t, e, n) { - for (var r = 0, i = t.length; r < i; ++r) - if (t[r].name === e) { - (t[r] = it), (t = t.slice(0, r).concat(t.slice(r + 1))); - break; - } - return null != n && t.push({ name: e, value: n }), t; - } - at.prototype = ot.prototype = { - constructor: at, - on: function(t, e) { - var n, - r = this._, - i = st(t + '', r), - o = -1, - a = i.length; - if (!(arguments.length < 2)) { - if (null != e && 'function' != typeof e) - throw new Error('invalid callback: ' + e); - for (; ++o < a; ) - if ((n = (t = i[o]).type)) r[n] = lt(r[n], t.name, e); - else if (null == e) - for (n in r) r[n] = lt(r[n], t.name, null); - return this; - } - for (; ++o < a; ) - if ((n = (t = i[o]).type) && (n = ut(r[n], t.name))) - return n; - }, - copy: function() { - var t = {}, - e = this._; - for (var n in e) t[n] = e[n].slice(); - return new at(t); - }, - call: function(t, e) { - if ((n = arguments.length - 2) > 0) - for (var n, r, i = new Array(n), o = 0; o < n; ++o) - i[o] = arguments[o + 2]; - if (!this._.hasOwnProperty(t)) - throw new Error('unknown type: ' + t); - for (o = 0, n = (r = this._[t]).length; o < n; ++o) - r[o].value.apply(e, i); - }, - apply: function(t, e, n) { - if (!this._.hasOwnProperty(t)) - throw new Error('unknown type: ' + t); - for (var r = this._[t], i = 0, o = r.length; i < o; ++i) - r[i].value.apply(e, n); - } - }; - var ct = ot, - ft = 'http://www.w3.org/1999/xhtml', - dt = { - svg: 'http://www.w3.org/2000/svg', - xhtml: ft, - xlink: 'http://www.w3.org/1999/xlink', - xml: 'http://www.w3.org/XML/1998/namespace', - xmlns: 'http://www.w3.org/2000/xmlns/' - }, - ht = function(t) { - var e = (t += ''), - n = e.indexOf(':'); - return ( - n >= 0 && - 'xmlns' !== (e = t.slice(0, n)) && - (t = t.slice(n + 1)), - dt.hasOwnProperty(e) ? { space: dt[e], local: t } : t - ); - }; - function pt(t) { - return function() { - var e = this.ownerDocument, - n = this.namespaceURI; - return n === ft && e.documentElement.namespaceURI === ft - ? e.createElement(t) - : e.createElementNS(n, t); - }; - } - function gt(t) { - return function() { - return this.ownerDocument.createElementNS(t.space, t.local); - }; - } - var vt = function(t) { - var e = ht(t); - return (e.local ? gt : pt)(e); - }; - function mt() {} - var yt = function(t) { - return null == t - ? mt - : function() { - return this.querySelector(t); - }; - }; - function bt() { - return []; - } - var _t = function(t) { - return null == t - ? bt - : function() { - return this.querySelectorAll(t); - }; - }, - xt = function(t) { - return function() { - return this.matches(t); - }; - }, - wt = function(t) { - return new Array(t.length); - }; - function St(t, e) { - (this.ownerDocument = t.ownerDocument), - (this.namespaceURI = t.namespaceURI), - (this._next = null), - (this._parent = t), - (this.__data__ = e); - } - function Et(t, e, n, r, i, o) { - for (var a, s = 0, u = e.length, l = o.length; s < l; ++s) - (a = e[s]) - ? ((a.__data__ = o[s]), (r[s] = a)) - : (n[s] = new St(t, o[s])); - for (; s < u; ++s) (a = e[s]) && (i[s] = a); - } - function kt(t, e, n, r, i, o, a) { - var s, - u, - l, - c = {}, - f = e.length, - d = o.length, - h = new Array(f); - for (s = 0; s < f; ++s) - (u = e[s]) && - ((h[s] = l = '$' + a.call(u, u.__data__, s, e)), - l in c ? (i[s] = u) : (c[l] = u)); - for (s = 0; s < d; ++s) - (u = c[(l = '$' + a.call(t, o[s], s, o))]) - ? ((r[s] = u), (u.__data__ = o[s]), (c[l] = null)) - : (n[s] = new St(t, o[s])); - for (s = 0; s < f; ++s) - (u = e[s]) && c[h[s]] === u && (i[s] = u); - } - function At(t, e) { - return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; - } - function Tt(t) { - return function() { - this.removeAttribute(t); - }; - } - function Ct(t) { - return function() { - this.removeAttributeNS(t.space, t.local); - }; - } - function Ot(t, e) { - return function() { - this.setAttribute(t, e); - }; - } - function Pt(t, e) { - return function() { - this.setAttributeNS(t.space, t.local, e); - }; - } - function Mt(t, e) { - return function() { - var n = e.apply(this, arguments); - null == n ? this.removeAttribute(t) : this.setAttribute(t, n); - }; - } - function Lt(t, e) { - return function() { - var n = e.apply(this, arguments); - null == n - ? this.removeAttributeNS(t.space, t.local) - : this.setAttributeNS(t.space, t.local, n); - }; - } - St.prototype = { - constructor: St, - appendChild: function(t) { - return this._parent.insertBefore(t, this._next); - }, - insertBefore: function(t, e) { - return this._parent.insertBefore(t, e); - }, - querySelector: function(t) { - return this._parent.querySelector(t); - }, - querySelectorAll: function(t) { - return this._parent.querySelectorAll(t); - } - }; - var Dt = function(t) { - return ( - (t.ownerDocument && t.ownerDocument.defaultView) || - (t.document && t) || - t.defaultView - ); - }; - function jt(t) { - return function() { - this.style.removeProperty(t); - }; - } - function Rt(t, e, n) { - return function() { - this.style.setProperty(t, e, n); - }; - } - function Nt(t, e, n) { - return function() { - var r = e.apply(this, arguments); - null == r - ? this.style.removeProperty(t) - : this.style.setProperty(t, r, n); - }; - } - function zt(t, e) { - return ( - t.style.getPropertyValue(e) || - Dt(t) - .getComputedStyle(t, null) - .getPropertyValue(e) - ); - } - function It(t) { - return function() { - delete this[t]; - }; - } - function Ft(t, e) { - return function() { - this[t] = e; - }; - } - function Vt(t, e) { - return function() { - var n = e.apply(this, arguments); - null == n ? delete this[t] : (this[t] = n); - }; - } - function Bt(t) { - return t.trim().split(/^|\s+/); - } - function Gt(t) { - return t.classList || new Ht(t); - } - function Ht(t) { - (this._node = t), - (this._names = Bt(t.getAttribute('class') || '')); - } - function Ut(t, e) { - for (var n = Gt(t), r = -1, i = e.length; ++r < i; ) - n.add(e[r]); - } - function qt(t, e) { - for (var n = Gt(t), r = -1, i = e.length; ++r < i; ) - n.remove(e[r]); - } - function Wt(t) { - return function() { - Ut(this, t); - }; - } - function Xt(t) { - return function() { - qt(this, t); - }; - } - function Yt(t, e) { - return function() { - (e.apply(this, arguments) ? Ut : qt)(this, t); - }; - } - function $t() { - this.textContent = ''; - } - function Qt(t) { - return function() { - this.textContent = t; - }; - } - function Kt(t) { - return function() { - var e = t.apply(this, arguments); - this.textContent = null == e ? '' : e; - }; - } - function Zt() { - this.innerHTML = ''; - } - function Jt(t) { - return function() { - this.innerHTML = t; - }; - } - function te(t) { - return function() { - var e = t.apply(this, arguments); - this.innerHTML = null == e ? '' : e; - }; - } - function ee() { - this.nextSibling && this.parentNode.appendChild(this); - } - function ne() { - this.previousSibling && - this.parentNode.insertBefore( - this, - this.parentNode.firstChild - ); - } - function re() { - return null; - } - function ie() { - var t = this.parentNode; - t && t.removeChild(this); - } - function oe() { - return this.parentNode.insertBefore( - this.cloneNode(!1), - this.nextSibling - ); - } - function ae() { - return this.parentNode.insertBefore( - this.cloneNode(!0), - this.nextSibling - ); - } - Ht.prototype = { - add: function(t) { - this._names.indexOf(t) < 0 && - (this._names.push(t), - this._node.setAttribute('class', this._names.join(' '))); - }, - remove: function(t) { - var e = this._names.indexOf(t); - e >= 0 && - (this._names.splice(e, 1), - this._node.setAttribute('class', this._names.join(' '))); - }, - contains: function(t) { - return this._names.indexOf(t) >= 0; - } - }; - var se = {}, - ue = null; - function le(t, e, n) { - return ( - (t = ce(t, e, n)), - function(e) { - var n = e.relatedTarget; - (n && - (n === this || 8 & n.compareDocumentPosition(this))) || - t.call(this, e); - } - ); - } - function ce(t, e, n) { - return function(r) { - var i = ue; - ue = r; - try { - t.call(this, this.__data__, e, n); - } finally { - ue = i; - } - }; - } - function fe(t) { - return t - .trim() - .split(/^|\s+/) - .map(function(t) { - var e = '', - n = t.indexOf('.'); - return ( - n >= 0 && ((e = t.slice(n + 1)), (t = t.slice(0, n))), - { type: t, name: e } - ); - }); - } - function de(t) { - return function() { - var e = this.__on; - if (e) { - for (var n, r = 0, i = -1, o = e.length; r < o; ++r) - (n = e[r]), - (t.type && n.type !== t.type) || n.name !== t.name - ? (e[++i] = n) - : this.removeEventListener( - n.type, - n.listener, - n.capture - ); - ++i ? (e.length = i) : delete this.__on; - } - }; - } - function he(t, e, n) { - var r = se.hasOwnProperty(t.type) ? le : ce; - return function(i, o, a) { - var s, - u = this.__on, - l = r(e, o, a); - if (u) - for (var c = 0, f = u.length; c < f; ++c) - if ((s = u[c]).type === t.type && s.name === t.name) - return ( - this.removeEventListener( - s.type, - s.listener, - s.capture - ), - this.addEventListener( - s.type, - (s.listener = l), - (s.capture = n) - ), - void (s.value = e) - ); - this.addEventListener(t.type, l, n), - (s = { - type: t.type, - name: t.name, - value: e, - listener: l, - capture: n - }), - u ? u.push(s) : (this.__on = [s]); - }; - } - function pe(t, e, n, r) { - var i = ue; - (t.sourceEvent = ue), (ue = t); - try { - return e.apply(n, r); - } finally { - ue = i; - } - } - function ge(t, e, n) { - var r = Dt(t), - i = r.CustomEvent; - 'function' == typeof i - ? (i = new i(e, n)) - : ((i = r.document.createEvent('Event')), - n - ? (i.initEvent(e, n.bubbles, n.cancelable), - (i.detail = n.detail)) - : i.initEvent(e, !1, !1)), - t.dispatchEvent(i); - } - function ve(t, e) { - return function() { - return ge(this, t, e); - }; - } - function me(t, e) { - return function() { - return ge(this, t, e.apply(this, arguments)); - }; - } - 'undefined' != typeof document && - ('onmouseenter' in document.documentElement || - (se = { mouseenter: 'mouseover', mouseleave: 'mouseout' })); - var ye = [null]; - function be(t, e) { - (this._groups = t), (this._parents = e); - } - function _e() { - return new be([[document.documentElement]], ye); - } - be.prototype = _e.prototype = { - constructor: be, - select: function(t) { - 'function' != typeof t && (t = yt(t)); - for ( - var e = this._groups, n = e.length, r = new Array(n), i = 0; - i < n; - ++i - ) - for ( - var o, - a, - s = e[i], - u = s.length, - l = (r[i] = new Array(u)), - c = 0; - c < u; - ++c - ) - (o = s[c]) && - (a = t.call(o, o.__data__, c, s)) && - ('__data__' in o && (a.__data__ = o.__data__), - (l[c] = a)); - return new be(r, this._parents); - }, - selectAll: function(t) { - 'function' != typeof t && (t = _t(t)); - for ( - var e = this._groups, n = e.length, r = [], i = [], o = 0; - o < n; - ++o - ) - for (var a, s = e[o], u = s.length, l = 0; l < u; ++l) - (a = s[l]) && - (r.push(t.call(a, a.__data__, l, s)), i.push(a)); - return new be(r, i); - }, - filter: function(t) { - 'function' != typeof t && (t = xt(t)); - for ( - var e = this._groups, n = e.length, r = new Array(n), i = 0; - i < n; - ++i - ) - for ( - var o, a = e[i], s = a.length, u = (r[i] = []), l = 0; - l < s; - ++l - ) - (o = a[l]) && t.call(o, o.__data__, l, a) && u.push(o); - return new be(r, this._parents); - }, - data: function(t, e) { - if (!t) - return ( - (p = new Array(this.size())), - (c = -1), - this.each(function(t) { - p[++c] = t; - }), - p - ); - var n, - r = e ? kt : Et, - i = this._parents, - o = this._groups; - 'function' != typeof t && - ((n = t), - (t = function() { - return n; - })); - for ( - var a = o.length, - s = new Array(a), - u = new Array(a), - l = new Array(a), - c = 0; - c < a; - ++c - ) { - var f = i[c], - d = o[c], - h = d.length, - p = t.call(f, f && f.__data__, c, i), - g = p.length, - v = (u[c] = new Array(g)), - m = (s[c] = new Array(g)); - r(f, d, v, m, (l[c] = new Array(h)), p, e); - for (var y, b, _ = 0, x = 0; _ < g; ++_) - if ((y = v[_])) { - for (_ >= x && (x = _ + 1); !(b = m[x]) && ++x < g; ); - y._next = b || null; - } - } - return ((s = new be(s, i))._enter = u), (s._exit = l), s; - }, - enter: function() { - return new be( - this._enter || this._groups.map(wt), - this._parents - ); - }, - exit: function() { - return new be( - this._exit || this._groups.map(wt), - this._parents - ); - }, - join: function(t, e, n) { - var r = this.enter(), - i = this, - o = this.exit(); - return ( - (r = 'function' == typeof t ? t(r) : r.append(t + '')), - null != e && (i = e(i)), - null == n ? o.remove() : n(o), - r && i ? r.merge(i).order() : i - ); - }, - merge: function(t) { - for ( - var e = this._groups, - n = t._groups, - r = e.length, - i = n.length, - o = Math.min(r, i), - a = new Array(r), - s = 0; - s < o; - ++s - ) - for ( - var u, - l = e[s], - c = n[s], - f = l.length, - d = (a[s] = new Array(f)), - h = 0; - h < f; - ++h - ) - (u = l[h] || c[h]) && (d[h] = u); - for (; s < r; ++s) a[s] = e[s]; - return new be(a, this._parents); - }, - order: function() { - for (var t = this._groups, e = -1, n = t.length; ++e < n; ) - for ( - var r, i = t[e], o = i.length - 1, a = i[o]; - --o >= 0; - - ) - (r = i[o]) && - (a && - 4 ^ r.compareDocumentPosition(a) && - a.parentNode.insertBefore(r, a), - (a = r)); - return this; - }, - sort: function(t) { - function e(e, n) { - return e && n ? t(e.__data__, n.__data__) : !e - !n; - } - t || (t = At); - for ( - var n = this._groups, r = n.length, i = new Array(r), o = 0; - o < r; - ++o - ) { - for ( - var a, - s = n[o], - u = s.length, - l = (i[o] = new Array(u)), - c = 0; - c < u; - ++c - ) - (a = s[c]) && (l[c] = a); - l.sort(e); - } - return new be(i, this._parents).order(); - }, - call: function() { - var t = arguments[0]; - return (arguments[0] = this), t.apply(null, arguments), this; - }, - nodes: function() { - var t = new Array(this.size()), - e = -1; - return ( - this.each(function() { - t[++e] = this; - }), - t - ); - }, - node: function() { - for (var t = this._groups, e = 0, n = t.length; e < n; ++e) - for (var r = t[e], i = 0, o = r.length; i < o; ++i) { - var a = r[i]; - if (a) return a; - } - return null; - }, - size: function() { - var t = 0; - return ( - this.each(function() { - ++t; - }), - t - ); - }, - empty: function() { - return !this.node(); - }, - each: function(t) { - for (var e = this._groups, n = 0, r = e.length; n < r; ++n) - for (var i, o = e[n], a = 0, s = o.length; a < s; ++a) - (i = o[a]) && t.call(i, i.__data__, a, o); - return this; - }, - attr: function(t, e) { - var n = ht(t); - if (arguments.length < 2) { - var r = this.node(); - return n.local - ? r.getAttributeNS(n.space, n.local) - : r.getAttribute(n); - } - return this.each( - (null == e - ? n.local - ? Ct - : Tt - : 'function' == typeof e - ? n.local - ? Lt - : Mt - : n.local - ? Pt - : Ot)(n, e) - ); - }, - style: function(t, e, n) { - return arguments.length > 1 - ? this.each( - (null == e ? jt : 'function' == typeof e ? Nt : Rt)( - t, - e, - null == n ? '' : n - ) - ) - : zt(this.node(), t); - }, - property: function(t, e) { - return arguments.length > 1 - ? this.each( - (null == e ? It : 'function' == typeof e ? Vt : Ft)( - t, - e - ) - ) - : this.node()[t]; - }, - classed: function(t, e) { - var n = Bt(t + ''); - if (arguments.length < 2) { - for ( - var r = Gt(this.node()), i = -1, o = n.length; - ++i < o; - - ) - if (!r.contains(n[i])) return !1; - return !0; - } - return this.each( - ('function' == typeof e ? Yt : e ? Wt : Xt)(n, e) - ); - }, - text: function(t) { - return arguments.length - ? this.each( - null == t ? $t : ('function' == typeof t ? Kt : Qt)(t) - ) - : this.node().textContent; - }, - html: function(t) { - return arguments.length - ? this.each( - null == t ? Zt : ('function' == typeof t ? te : Jt)(t) - ) - : this.node().innerHTML; - }, - raise: function() { - return this.each(ee); - }, - lower: function() { - return this.each(ne); - }, - append: function(t) { - var e = 'function' == typeof t ? t : vt(t); - return this.select(function() { - return this.appendChild(e.apply(this, arguments)); - }); - }, - insert: function(t, e) { - var n = 'function' == typeof t ? t : vt(t), - r = null == e ? re : 'function' == typeof e ? e : yt(e); - return this.select(function() { - return this.insertBefore( - n.apply(this, arguments), - r.apply(this, arguments) || null - ); - }); - }, - remove: function() { - return this.each(ie); - }, - clone: function(t) { - return this.select(t ? ae : oe); - }, - datum: function(t) { - return arguments.length - ? this.property('__data__', t) - : this.node().__data__; - }, - on: function(t, e, n) { - var r, - i, - o = fe(t + ''), - a = o.length; - if (!(arguments.length < 2)) { - for ( - s = e ? he : de, null == n && (n = !1), r = 0; - r < a; - ++r - ) - this.each(s(o[r], e, n)); - return this; - } - var s = this.node().__on; - if (s) - for (var u, l = 0, c = s.length; l < c; ++l) - for (r = 0, u = s[l]; r < a; ++r) - if ((i = o[r]).type === u.type && i.name === u.name) - return u.value; - }, - dispatch: function(t, e) { - return this.each(('function' == typeof e ? me : ve)(t, e)); - } - }; - var xe = _e, - we = function(t) { - return 'string' == typeof t - ? new be( - [[document.querySelector(t)]], - [document.documentElement] - ) - : new be([[t]], ye); - }, - Se = function(t) { - return we(vt(t).call(document.documentElement)); - }, - Ee = 0; - function ke() { - return new Ae(); - } - function Ae() { - this._ = '@' + (++Ee).toString(36); - } - Ae.prototype = ke.prototype = { - constructor: Ae, - get: function(t) { - for (var e = this._; !(e in t); ) - if (!(t = t.parentNode)) return; - return t[e]; - }, - set: function(t, e) { - return (t[this._] = e); - }, - remove: function(t) { - return this._ in t && delete t[this._]; - }, - toString: function() { - return this._; - } - }; - var Te = function() { - for (var t, e = ue; (t = e.sourceEvent); ) e = t; - return e; - }, - Ce = function(t, e) { - var n = t.ownerSVGElement || t; - if (n.createSVGPoint) { - var r = n.createSVGPoint(); - return ( - (r.x = e.clientX), - (r.y = e.clientY), - [ - (r = r.matrixTransform(t.getScreenCTM().inverse())).x, - r.y - ] - ); - } - var i = t.getBoundingClientRect(); - return [ - e.clientX - i.left - t.clientLeft, - e.clientY - i.top - t.clientTop - ]; - }, - Oe = function(t) { - var e = Te(); - return ( - e.changedTouches && (e = e.changedTouches[0]), Ce(t, e) - ); - }, - Pe = function(t) { - return 'string' == typeof t - ? new be( - [document.querySelectorAll(t)], - [document.documentElement] - ) - : new be([null == t ? [] : t], ye); - }, - Me = function(t, e, n) { - arguments.length < 3 && ((n = e), (e = Te().changedTouches)); - for (var r, i = 0, o = e ? e.length : 0; i < o; ++i) - if ((r = e[i]).identifier === n) return Ce(t, r); - return null; - }, - Le = function(t, e) { - null == e && (e = Te().touches); - for ( - var n = 0, r = e ? e.length : 0, i = new Array(r); - n < r; - ++n - ) - i[n] = Ce(t, e[n]); - return i; - }; - function De() { - ue.stopImmediatePropagation(); - } - var je = function() { - ue.preventDefault(), ue.stopImmediatePropagation(); - }, - Re = function(t) { - var e = t.document.documentElement, - n = we(t).on('dragstart.drag', je, !0); - 'onselectstart' in e - ? n.on('selectstart.drag', je, !0) - : ((e.__noselect = e.style.MozUserSelect), - (e.style.MozUserSelect = 'none')); - }; - function Ne(t, e) { - var n = t.document.documentElement, - r = we(t).on('dragstart.drag', null); - e && - (r.on('click.drag', je, !0), - setTimeout(function() { - r.on('click.drag', null); - }, 0)), - 'onselectstart' in n - ? r.on('selectstart.drag', null) - : ((n.style.MozUserSelect = n.__noselect), - delete n.__noselect); - } - var ze = function(t) { - return function() { - return t; - }; - }; - function Ie(t, e, n, r, i, o, a, s, u, l) { - (this.target = t), - (this.type = e), - (this.subject = n), - (this.identifier = r), - (this.active = i), - (this.x = o), - (this.y = a), - (this.dx = s), - (this.dy = u), - (this._ = l); - } - function Fe() { - return !ue.ctrlKey && !ue.button; - } - function Ve() { - return this.parentNode; - } - function Be(t) { - return null == t ? { x: ue.x, y: ue.y } : t; - } - function Ge() { - return navigator.maxTouchPoints || 'ontouchstart' in this; - } - Ie.prototype.on = function() { - var t = this._.on.apply(this._, arguments); - return t === this._ ? this : t; - }; - var He = function() { - var t, - e, - n, - r, - i = Fe, - o = Ve, - a = Be, - s = Ge, - u = {}, - l = ct('start', 'drag', 'end'), - c = 0, - f = 0; - function d(t) { - t.on('mousedown.drag', h) - .filter(s) - .on('touchstart.drag', v) - .on('touchmove.drag', m) - .on('touchend.drag touchcancel.drag', y) - .style('touch-action', 'none') - .style('-webkit-tap-highlight-color', 'rgba(0,0,0,0)'); - } - function h() { - if (!r && i.apply(this, arguments)) { - var a = b( - 'mouse', - o.apply(this, arguments), - Oe, - this, - arguments - ); - a && - (we(ue.view) - .on('mousemove.drag', p, !0) - .on('mouseup.drag', g, !0), - Re(ue.view), - De(), - (n = !1), - (t = ue.clientX), - (e = ue.clientY), - a('start')); - } - } - function p() { - if ((je(), !n)) { - var r = ue.clientX - t, - i = ue.clientY - e; - n = r * r + i * i > f; - } - u.mouse('drag'); - } - function g() { - we(ue.view).on('mousemove.drag mouseup.drag', null), - Ne(ue.view, n), - je(), - u.mouse('end'); - } - function v() { - if (i.apply(this, arguments)) { - var t, - e, - n = ue.changedTouches, - r = o.apply(this, arguments), - a = n.length; - for (t = 0; t < a; ++t) - (e = b(n[t].identifier, r, Me, this, arguments)) && - (De(), e('start')); - } - } - function m() { - var t, - e, - n = ue.changedTouches, - r = n.length; - for (t = 0; t < r; ++t) - (e = u[n[t].identifier]) && (je(), e('drag')); - } - function y() { - var t, - e, - n = ue.changedTouches, - i = n.length; - for ( - r && clearTimeout(r), - r = setTimeout(function() { - r = null; - }, 500), - t = 0; - t < i; - ++t - ) - (e = u[n[t].identifier]) && (De(), e('end')); - } - function b(t, e, n, r, i) { - var o, - s, - f, - h = n(e, t), - p = l.copy(); - if ( - pe( - new Ie(d, 'beforestart', o, t, c, h[0], h[1], 0, 0, p), - function() { - return ( - null != (ue.subject = o = a.apply(r, i)) && - ((s = o.x - h[0] || 0), (f = o.y - h[1] || 0), !0) - ); - } - ) - ) - return function a(l) { - var g, - v = h; - switch (l) { - case 'start': - (u[t] = a), (g = c++); - break; - case 'end': - delete u[t], --c; - case 'drag': - (h = n(e, t)), (g = c); - } - pe( - new Ie( - d, - l, - o, - t, - g, - h[0] + s, - h[1] + f, - h[0] - v[0], - h[1] - v[1], - p - ), - p.apply, - p, - [l, r, i] - ); - }; - } - return ( - (d.filter = function(t) { - return arguments.length - ? ((i = 'function' == typeof t ? t : ze(!!t)), d) - : i; - }), - (d.container = function(t) { - return arguments.length - ? ((o = 'function' == typeof t ? t : ze(t)), d) - : o; - }), - (d.subject = function(t) { - return arguments.length - ? ((a = 'function' == typeof t ? t : ze(t)), d) - : a; - }), - (d.touchable = function(t) { - return arguments.length - ? ((s = 'function' == typeof t ? t : ze(!!t)), d) - : s; - }), - (d.on = function() { - var t = l.on.apply(l, arguments); - return t === l ? d : t; - }), - (d.clickDistance = function(t) { - return arguments.length - ? ((f = (t = +t) * t), d) - : Math.sqrt(f); - }), - d - ); - }, - Ue = function(t, e, n) { - (t.prototype = e.prototype = n), (n.constructor = t); - }; - function qe(t, e) { - var n = Object.create(t.prototype); - for (var r in e) n[r] = e[r]; - return n; - } - function We() {} - var Xe = '\\s*([+-]?\\d+)\\s*', - Ye = '\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*', - $e = '\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*', - Qe = /^#([0-9a-f]{3,8})$/, - Ke = new RegExp('^rgb\\(' + [Xe, Xe, Xe] + '\\)$'), - Ze = new RegExp('^rgb\\(' + [$e, $e, $e] + '\\)$'), - Je = new RegExp('^rgba\\(' + [Xe, Xe, Xe, Ye] + '\\)$'), - tn = new RegExp('^rgba\\(' + [$e, $e, $e, Ye] + '\\)$'), - en = new RegExp('^hsl\\(' + [Ye, $e, $e] + '\\)$'), - nn = new RegExp('^hsla\\(' + [Ye, $e, $e, Ye] + '\\)$'), - rn = { - 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 on() { - return this.rgb().formatHex(); - } - function an() { - return this.rgb().formatRgb(); - } - function sn(t) { - var e, n; - return ( - (t = (t + '').trim().toLowerCase()), - (e = Qe.exec(t)) - ? ((n = e[1].length), - (e = parseInt(e[1], 16)), - 6 === n - ? un(e) - : 3 === n - ? new dn( - ((e >> 8) & 15) | ((e >> 4) & 240), - ((e >> 4) & 15) | (240 & e), - ((15 & e) << 4) | (15 & e), - 1 - ) - : 8 === n - ? new dn( - (e >> 24) & 255, - (e >> 16) & 255, - (e >> 8) & 255, - (255 & e) / 255 - ) - : 4 === n - ? new dn( - ((e >> 12) & 15) | ((e >> 8) & 240), - ((e >> 8) & 15) | ((e >> 4) & 240), - ((e >> 4) & 15) | (240 & e), - (((15 & e) << 4) | (15 & e)) / 255 - ) - : null) - : (e = Ke.exec(t)) - ? new dn(e[1], e[2], e[3], 1) - : (e = Ze.exec(t)) - ? new dn( - (255 * e[1]) / 100, - (255 * e[2]) / 100, - (255 * e[3]) / 100, - 1 - ) - : (e = Je.exec(t)) - ? ln(e[1], e[2], e[3], e[4]) - : (e = tn.exec(t)) - ? ln( - (255 * e[1]) / 100, - (255 * e[2]) / 100, - (255 * e[3]) / 100, - e[4] - ) - : (e = en.exec(t)) - ? vn(e[1], e[2] / 100, e[3] / 100, 1) - : (e = nn.exec(t)) - ? vn(e[1], e[2] / 100, e[3] / 100, e[4]) - : rn.hasOwnProperty(t) - ? un(rn[t]) - : 'transparent' === t - ? new dn(NaN, NaN, NaN, 0) - : null - ); - } - function un(t) { - return new dn((t >> 16) & 255, (t >> 8) & 255, 255 & t, 1); - } - function ln(t, e, n, r) { - return r <= 0 && (t = e = n = NaN), new dn(t, e, n, r); - } - function cn(t) { - return ( - t instanceof We || (t = sn(t)), - t ? new dn((t = t.rgb()).r, t.g, t.b, t.opacity) : new dn() - ); - } - function fn(t, e, n, r) { - return 1 === arguments.length - ? cn(t) - : new dn(t, e, n, null == r ? 1 : r); - } - function dn(t, e, n, r) { - (this.r = +t), - (this.g = +e), - (this.b = +n), - (this.opacity = +r); - } - function hn() { - return '#' + gn(this.r) + gn(this.g) + gn(this.b); - } - function pn() { - var t = this.opacity; - return ( - (1 === (t = isNaN(t) ? 1 : Math.max(0, Math.min(1, t))) - ? '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 === t ? ')' : ', ' + t + ')') - ); - } - function gn(t) { - return ( - ((t = Math.max(0, Math.min(255, Math.round(t) || 0))) < 16 - ? '0' - : '') + t.toString(16) - ); - } - function vn(t, e, n, r) { - return ( - r <= 0 - ? (t = e = n = NaN) - : n <= 0 || n >= 1 - ? (t = e = NaN) - : e <= 0 && (t = NaN), - new bn(t, e, n, r) - ); - } - function mn(t) { - if (t instanceof bn) return new bn(t.h, t.s, t.l, t.opacity); - if ((t instanceof We || (t = sn(t)), !t)) return new bn(); - if (t instanceof bn) return t; - var e = (t = t.rgb()).r / 255, - n = t.g / 255, - r = t.b / 255, - i = Math.min(e, n, r), - o = Math.max(e, n, r), - a = NaN, - s = o - i, - u = (o + i) / 2; - return ( - s - ? ((a = - e === o - ? (n - r) / s + 6 * (n < r) - : n === o - ? (r - e) / s + 2 - : (e - n) / s + 4), - (s /= u < 0.5 ? o + i : 2 - o - i), - (a *= 60)) - : (s = u > 0 && u < 1 ? 0 : a), - new bn(a, s, u, t.opacity) - ); - } - function yn(t, e, n, r) { - return 1 === arguments.length - ? mn(t) - : new bn(t, e, n, null == r ? 1 : r); - } - function bn(t, e, n, r) { - (this.h = +t), - (this.s = +e), - (this.l = +n), - (this.opacity = +r); - } - function _n(t, e, n) { - return ( - 255 * - (t < 60 - ? e + ((n - e) * t) / 60 - : t < 180 - ? n - : t < 240 - ? e + ((n - e) * (240 - t)) / 60 - : e) - ); - } - function xn(t, e, n, r, i) { - var o = t * t, - a = o * t; - return ( - ((1 - 3 * t + 3 * o - a) * e + - (4 - 6 * o + 3 * a) * n + - (1 + 3 * t + 3 * o - 3 * a) * r + - a * i) / - 6 - ); - } - Ue(We, sn, { - copy: function(t) { - return Object.assign(new this.constructor(), this, t); - }, - displayable: function() { - return this.rgb().displayable(); - }, - hex: on, - formatHex: on, - formatHsl: function() { - return mn(this).formatHsl(); - }, - formatRgb: an, - toString: an - }), - Ue( - dn, - fn, - qe(We, { - brighter: function(t) { - return ( - (t = null == t ? 1 / 0.7 : Math.pow(1 / 0.7, t)), - new dn(this.r * t, this.g * t, this.b * t, this.opacity) - ); - }, - darker: function(t) { - return ( - (t = null == t ? 0.7 : Math.pow(0.7, t)), - new dn(this.r * t, this.g * t, this.b * t, this.opacity) - ); - }, - rgb: function() { - return this; - }, - displayable: function() { - return ( - -0.5 <= this.r && - this.r < 255.5 && - -0.5 <= this.g && - this.g < 255.5 && - -0.5 <= this.b && - this.b < 255.5 && - 0 <= this.opacity && - this.opacity <= 1 - ); - }, - hex: hn, - formatHex: hn, - formatRgb: pn, - toString: pn - }) - ), - Ue( - bn, - yn, - qe(We, { - brighter: function(t) { - return ( - (t = null == t ? 1 / 0.7 : Math.pow(1 / 0.7, t)), - new bn(this.h, this.s, this.l * t, this.opacity) - ); - }, - darker: function(t) { - return ( - (t = null == t ? 0.7 : Math.pow(0.7, t)), - new bn(this.h, this.s, this.l * t, this.opacity) - ); - }, - rgb: function() { - var t = (this.h % 360) + 360 * (this.h < 0), - e = isNaN(t) || isNaN(this.s) ? 0 : this.s, - n = this.l, - r = n + (n < 0.5 ? n : 1 - n) * e, - i = 2 * n - r; - return new dn( - _n(t >= 240 ? t - 240 : t + 120, i, r), - _n(t, i, r), - _n(t < 120 ? t + 240 : t - 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 t = this.opacity; - return ( - (1 === (t = isNaN(t) ? 1 : Math.max(0, Math.min(1, t))) - ? 'hsl(' - : 'hsla(') + - (this.h || 0) + - ', ' + - 100 * (this.s || 0) + - '%, ' + - 100 * (this.l || 0) + - '%' + - (1 === t ? ')' : ', ' + t + ')') - ); - } - }) - ); - var wn = function(t) { - var e = t.length - 1; - return function(n) { - var r = - n <= 0 - ? (n = 0) - : n >= 1 - ? ((n = 1), e - 1) - : Math.floor(n * e), - i = t[r], - o = t[r + 1], - a = r > 0 ? t[r - 1] : 2 * i - o, - s = r < e - 1 ? t[r + 2] : 2 * o - i; - return xn((n - r / e) * e, a, i, o, s); - }; - }, - Sn = function(t) { - var e = t.length; - return function(n) { - var r = Math.floor(((n %= 1) < 0 ? ++n : n) * e), - i = t[(r + e - 1) % e], - o = t[r % e], - a = t[(r + 1) % e], - s = t[(r + 2) % e]; - return xn((n - r / e) * e, i, o, a, s); - }; - }, - En = function(t) { - return function() { - return t; - }; - }; - function kn(t, e) { - return function(n) { - return t + n * e; - }; - } - function An(t, e) { - var n = e - t; - return n - ? kn( - t, - n > 180 || n < -180 ? n - 360 * Math.round(n / 360) : n - ) - : En(isNaN(t) ? e : t); - } - function Tn(t) { - return 1 == (t = +t) - ? Cn - : function(e, n) { - return n - e - ? (function(t, e, n) { - return ( - (t = Math.pow(t, n)), - (e = Math.pow(e, n) - t), - (n = 1 / n), - function(r) { - return Math.pow(t + r * e, n); - } - ); - })(e, n, t) - : En(isNaN(e) ? n : e); - }; - } - function Cn(t, e) { - var n = e - t; - return n ? kn(t, n) : En(isNaN(t) ? e : t); - } - var On = (function t(e) { - var n = Tn(e); - function r(t, e) { - var r = n((t = fn(t)).r, (e = fn(e)).r), - i = n(t.g, e.g), - o = n(t.b, e.b), - a = Cn(t.opacity, e.opacity); - return function(e) { - return ( - (t.r = r(e)), - (t.g = i(e)), - (t.b = o(e)), - (t.opacity = a(e)), - t + '' - ); - }; - } - return (r.gamma = t), r; - })(1); - function Pn(t) { - return function(e) { - var n, - r, - i = e.length, - o = new Array(i), - a = new Array(i), - s = new Array(i); - for (n = 0; n < i; ++n) - (r = fn(e[n])), - (o[n] = r.r || 0), - (a[n] = r.g || 0), - (s[n] = r.b || 0); - return ( - (o = t(o)), - (a = t(a)), - (s = t(s)), - (r.opacity = 1), - function(t) { - return (r.r = o(t)), (r.g = a(t)), (r.b = s(t)), r + ''; - } - ); - }; - } - var Mn, - Ln, - Dn, - jn, - Rn = Pn(wn), - Nn = Pn(Sn), - zn = function(t, e) { - var n, - r = e ? e.length : 0, - i = t ? Math.min(r, t.length) : 0, - o = new Array(i), - a = new Array(r); - for (n = 0; n < i; ++n) o[n] = Un(t[n], e[n]); - for (; n < r; ++n) a[n] = e[n]; - return function(t) { - for (n = 0; n < i; ++n) a[n] = o[n](t); - return a; - }; - }, - In = function(t, e) { - var n = new Date(); - return ( - (e -= t = +t), - function(r) { - return n.setTime(t + e * r), n; - } - ); - }, - Fn = function(t, e) { - return ( - (e -= t = +t), - function(n) { - return t + e * n; - } - ); - }, - Vn = function(t, e) { - var n, - r = {}, - i = {}; - for (n in ((null !== t && 'object' == typeof t) || (t = {}), - (null !== e && 'object' == typeof e) || (e = {}), - e)) - n in t ? (r[n] = Un(t[n], e[n])) : (i[n] = e[n]); - return function(t) { - for (n in r) i[n] = r[n](t); - return i; - }; - }, - Bn = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, - Gn = new RegExp(Bn.source, 'g'), - Hn = function(t, e) { - var n, - r, - i, - o = (Bn.lastIndex = Gn.lastIndex = 0), - a = -1, - s = [], - u = []; - for (t += '', e += ''; (n = Bn.exec(t)) && (r = Gn.exec(e)); ) - (i = r.index) > o && - ((i = e.slice(o, i)), s[a] ? (s[a] += i) : (s[++a] = i)), - (n = n[0]) === (r = r[0]) - ? s[a] - ? (s[a] += r) - : (s[++a] = r) - : ((s[++a] = null), u.push({ i: a, x: Fn(n, r) })), - (o = Gn.lastIndex); - return ( - o < e.length && - ((i = e.slice(o)), s[a] ? (s[a] += i) : (s[++a] = i)), - s.length < 2 - ? u[0] - ? (function(t) { - return function(e) { - return t(e) + ''; - }; - })(u[0].x) - : (function(t) { - return function() { - return t; - }; - })(e) - : ((e = u.length), - function(t) { - for (var n, r = 0; r < e; ++r) - s[(n = u[r]).i] = n.x(t); - return s.join(''); - }) - ); - }, - Un = function(t, e) { - var n, - r = typeof e; - return null == e || 'boolean' === r - ? En(e) - : ('number' === r - ? Fn - : 'string' === r - ? (n = sn(e)) - ? ((e = n), On) - : Hn - : e instanceof sn - ? On - : e instanceof Date - ? In - : Array.isArray(e) - ? zn - : ('function' != typeof e.valueOf && - 'function' != typeof e.toString) || - isNaN(e) - ? Vn - : Fn)(t, e); - }, - qn = function(t) { - var e = t.length; - return function(n) { - return t[Math.max(0, Math.min(e - 1, Math.floor(n * e)))]; - }; - }, - Wn = function(t, e) { - var n = An(+t, +e); - return function(t) { - var e = n(t); - return e - 360 * Math.floor(e / 360); - }; - }, - Xn = function(t, e) { - return ( - (e -= t = +t), - function(n) { - return Math.round(t + e * n); - } - ); - }, - Yn = 180 / Math.PI, - $n = { - translateX: 0, - translateY: 0, - rotate: 0, - skewX: 0, - scaleX: 1, - scaleY: 1 - }, - Qn = function(t, e, n, r, i, o) { - var a, s, u; - return ( - (a = Math.sqrt(t * t + e * e)) && ((t /= a), (e /= a)), - (u = t * n + e * r) && ((n -= t * u), (r -= e * u)), - (s = Math.sqrt(n * n + r * r)) && - ((n /= s), (r /= s), (u /= s)), - t * r < e * n && ((t = -t), (e = -e), (u = -u), (a = -a)), - { - translateX: i, - translateY: o, - rotate: Math.atan2(e, t) * Yn, - skewX: Math.atan(u) * Yn, - scaleX: a, - scaleY: s - } - ); - }; - function Kn(t, e, n, r) { - function i(t) { - return t.length ? t.pop() + ' ' : ''; - } - return function(o, a) { - var s = [], - u = []; - return ( - (o = t(o)), - (a = t(a)), - (function(t, r, i, o, a, s) { - if (t !== i || r !== o) { - var u = a.push('translate(', null, e, null, n); - s.push( - { i: u - 4, x: Fn(t, i) }, - { i: u - 2, x: Fn(r, o) } - ); - } else (i || o) && a.push('translate(' + i + e + o + n); - })( - o.translateX, - o.translateY, - a.translateX, - a.translateY, - s, - u - ), - (function(t, e, n, o) { - t !== e - ? (t - e > 180 ? (e += 360) : e - t > 180 && (t += 360), - o.push({ - i: n.push(i(n) + 'rotate(', null, r) - 2, - x: Fn(t, e) - })) - : e && n.push(i(n) + 'rotate(' + e + r); - })(o.rotate, a.rotate, s, u), - (function(t, e, n, o) { - t !== e - ? o.push({ - i: n.push(i(n) + 'skewX(', null, r) - 2, - x: Fn(t, e) - }) - : e && n.push(i(n) + 'skewX(' + e + r); - })(o.skewX, a.skewX, s, u), - (function(t, e, n, r, o, a) { - if (t !== n || e !== r) { - var s = o.push(i(o) + 'scale(', null, ',', null, ')'); - a.push( - { i: s - 4, x: Fn(t, n) }, - { i: s - 2, x: Fn(e, r) } - ); - } else - (1 === n && 1 === r) || - o.push(i(o) + 'scale(' + n + ',' + r + ')'); - })(o.scaleX, o.scaleY, a.scaleX, a.scaleY, s, u), - (o = a = null), - function(t) { - for (var e, n = -1, r = u.length; ++n < r; ) - s[(e = u[n]).i] = e.x(t); - return s.join(''); - } - ); - }; - } - var Zn = Kn( - function(t) { - return 'none' === t - ? $n - : (Mn || - ((Mn = document.createElement('DIV')), - (Ln = document.documentElement), - (Dn = document.defaultView)), - (Mn.style.transform = t), - (t = Dn.getComputedStyle( - Ln.appendChild(Mn), - null - ).getPropertyValue('transform')), - Ln.removeChild(Mn), - (t = t.slice(7, -1).split(',')), - Qn(+t[0], +t[1], +t[2], +t[3], +t[4], +t[5])); - }, - 'px, ', - 'px)', - 'deg)' - ), - Jn = Kn( - function(t) { - return null == t - ? $n - : (jn || - (jn = document.createElementNS( - 'http://www.w3.org/2000/svg', - 'g' - )), - jn.setAttribute('transform', t), - (t = jn.transform.baseVal.consolidate()) - ? ((t = t.matrix), Qn(t.a, t.b, t.c, t.d, t.e, t.f)) - : $n); - }, - ', ', - ')', - ')' - ), - tr = Math.SQRT2; - function er(t) { - return ((t = Math.exp(t)) + 1 / t) / 2; - } - var nr = function(t, e) { - var n, - r, - i = t[0], - o = t[1], - a = t[2], - s = e[0], - u = e[1], - l = e[2], - c = s - i, - f = u - o, - d = c * c + f * f; - if (d < 1e-12) - (r = Math.log(l / a) / tr), - (n = function(t) { - return [i + t * c, o + t * f, a * Math.exp(tr * t * r)]; - }); - else { - var h = Math.sqrt(d), - p = (l * l - a * a + 4 * d) / (2 * a * 2 * h), - g = (l * l - a * a - 4 * d) / (2 * l * 2 * h), - v = Math.log(Math.sqrt(p * p + 1) - p), - m = Math.log(Math.sqrt(g * g + 1) - g); - (r = (m - v) / tr), - (n = function(t) { - var e, - n = t * r, - s = er(v), - u = - (a / (2 * h)) * - (s * - ((e = tr * n + v), - ((e = Math.exp(2 * e)) - 1) / (e + 1)) - - (function(t) { - return ((t = Math.exp(t)) - 1 / t) / 2; - })(v)); - return [i + u * c, o + u * f, (a * s) / er(tr * n + v)]; - }); - } - return (n.duration = 1e3 * r), n; - }; - function rr(t) { - return function(e, n) { - var r = t((e = yn(e)).h, (n = yn(n)).h), - i = Cn(e.s, n.s), - o = Cn(e.l, n.l), - a = Cn(e.opacity, n.opacity); - return function(t) { - return ( - (e.h = r(t)), - (e.s = i(t)), - (e.l = o(t)), - (e.opacity = a(t)), - e + '' - ); - }; - }; - } - var ir = rr(An), - or = rr(Cn), - ar = Math.PI / 180, - sr = 180 / Math.PI; - function ur(t) { - if (t instanceof fr) return new fr(t.l, t.a, t.b, t.opacity); - if (t instanceof br) return _r(t); - t instanceof dn || (t = cn(t)); - var e, - n, - r = gr(t.r), - i = gr(t.g), - o = gr(t.b), - a = dr((0.2225045 * r + 0.7168786 * i + 0.0606169 * o) / 1); - return ( - r === i && i === o - ? (e = n = a) - : ((e = dr( - (0.4360747 * r + 0.3850649 * i + 0.1430804 * o) / - 0.96422 - )), - (n = dr( - (0.0139322 * r + 0.0971045 * i + 0.7141733 * o) / - 0.82521 - ))), - new fr(116 * a - 16, 500 * (e - a), 200 * (a - n), t.opacity) - ); - } - function lr(t, e) { - return new fr(t, 0, 0, null == e ? 1 : e); - } - function cr(t, e, n, r) { - return 1 === arguments.length - ? ur(t) - : new fr(t, e, n, null == r ? 1 : r); - } - function fr(t, e, n, r) { - (this.l = +t), - (this.a = +e), - (this.b = +n), - (this.opacity = +r); - } - function dr(t) { - return t > (6 / 29) * (6 / 29) * (6 / 29) - ? Math.pow(t, 1 / 3) - : t / ((6 / 29) * 3 * (6 / 29)) + 4 / 29; - } - function hr(t) { - return t > 6 / 29 - ? t * t * t - : (6 / 29) * 3 * (6 / 29) * (t - 4 / 29); - } - function pr(t) { - return ( - 255 * - (t <= 0.0031308 - ? 12.92 * t - : 1.055 * Math.pow(t, 1 / 2.4) - 0.055) - ); - } - function gr(t) { - return (t /= 255) <= 0.04045 - ? t / 12.92 - : Math.pow((t + 0.055) / 1.055, 2.4); - } - function vr(t) { - if (t instanceof br) return new br(t.h, t.c, t.l, t.opacity); - if ((t instanceof fr || (t = ur(t)), 0 === t.a && 0 === t.b)) - return new br( - NaN, - 0 < t.l && t.l < 100 ? 0 : NaN, - t.l, - t.opacity - ); - var e = Math.atan2(t.b, t.a) * sr; - return new br( - e < 0 ? e + 360 : e, - Math.sqrt(t.a * t.a + t.b * t.b), - t.l, - t.opacity - ); - } - function mr(t, e, n, r) { - return 1 === arguments.length - ? vr(t) - : new br(n, e, t, null == r ? 1 : r); - } - function yr(t, e, n, r) { - return 1 === arguments.length - ? vr(t) - : new br(t, e, n, null == r ? 1 : r); - } - function br(t, e, n, r) { - (this.h = +t), - (this.c = +e), - (this.l = +n), - (this.opacity = +r); - } - function _r(t) { - if (isNaN(t.h)) return new fr(t.l, 0, 0, t.opacity); - var e = t.h * ar; - return new fr( - t.l, - Math.cos(e) * t.c, - Math.sin(e) * t.c, - t.opacity - ); - } - function xr(t, e) { - var n = Cn((t = cr(t)).l, (e = cr(e)).l), - r = Cn(t.a, e.a), - i = Cn(t.b, e.b), - o = Cn(t.opacity, e.opacity); - return function(e) { - return ( - (t.l = n(e)), - (t.a = r(e)), - (t.b = i(e)), - (t.opacity = o(e)), - t + '' - ); - }; - } - function wr(t) { - return function(e, n) { - var r = t((e = yr(e)).h, (n = yr(n)).h), - i = Cn(e.c, n.c), - o = Cn(e.l, n.l), - a = Cn(e.opacity, n.opacity); - return function(t) { - return ( - (e.h = r(t)), - (e.c = i(t)), - (e.l = o(t)), - (e.opacity = a(t)), - e + '' - ); - }; - }; - } - Ue( - fr, - cr, - qe(We, { - brighter: function(t) { - return new fr( - this.l + 18 * (null == t ? 1 : t), - this.a, - this.b, - this.opacity - ); - }, - darker: function(t) { - return new fr( - this.l - 18 * (null == t ? 1 : t), - this.a, - this.b, - this.opacity - ); - }, - rgb: function() { - var t = (this.l + 16) / 116, - e = isNaN(this.a) ? t : t + this.a / 500, - n = isNaN(this.b) ? t : t - this.b / 200; - return new dn( - pr( - 3.1338561 * (e = 0.96422 * hr(e)) - - 1.6168667 * (t = 1 * hr(t)) - - 0.4906146 * (n = 0.82521 * hr(n)) - ), - pr(-0.9787684 * e + 1.9161415 * t + 0.033454 * n), - pr(0.0719453 * e - 0.2289914 * t + 1.4052427 * n), - this.opacity - ); - } - }) - ), - Ue( - br, - yr, - qe(We, { - brighter: function(t) { - return new br( - this.h, - this.c, - this.l + 18 * (null == t ? 1 : t), - this.opacity - ); - }, - darker: function(t) { - return new br( - this.h, - this.c, - this.l - 18 * (null == t ? 1 : t), - this.opacity - ); - }, - rgb: function() { - return _r(this).rgb(); - } - }) - ); - var Sr = wr(An), - Er = wr(Cn), - kr = -0.29227, - Ar = -1.7884503806, - Tr = 3.5172982438, - Cr = -0.6557636667999999; - function Or(t) { - if (t instanceof Mr) return new Mr(t.h, t.s, t.l, t.opacity); - t instanceof dn || (t = cn(t)); - var e = t.r / 255, - n = t.g / 255, - r = t.b / 255, - i = (Cr * r + Ar * e - Tr * n) / (Cr + Ar - Tr), - o = r - i, - a = (1.97294 * (n - i) - kr * o) / -0.90649, - s = Math.sqrt(a * a + o * o) / (1.97294 * i * (1 - i)), - u = s ? Math.atan2(a, o) * sr - 120 : NaN; - return new Mr(u < 0 ? u + 360 : u, s, i, t.opacity); - } - function Pr(t, e, n, r) { - return 1 === arguments.length - ? Or(t) - : new Mr(t, e, n, null == r ? 1 : r); - } - function Mr(t, e, n, r) { - (this.h = +t), - (this.s = +e), - (this.l = +n), - (this.opacity = +r); - } - function Lr(t) { - return (function e(n) { - function r(e, r) { - var i = t((e = Pr(e)).h, (r = Pr(r)).h), - o = Cn(e.s, r.s), - a = Cn(e.l, r.l), - s = Cn(e.opacity, r.opacity); - return function(t) { - return ( - (e.h = i(t)), - (e.s = o(t)), - (e.l = a(Math.pow(t, n))), - (e.opacity = s(t)), - e + '' - ); - }; - } - return (n = +n), (r.gamma = e), r; - })(1); - } - Ue( - Mr, - Pr, - qe(We, { - brighter: function(t) { - return ( - (t = null == t ? 1 / 0.7 : Math.pow(1 / 0.7, t)), - new Mr(this.h, this.s, this.l * t, this.opacity) - ); - }, - darker: function(t) { - return ( - (t = null == t ? 0.7 : Math.pow(0.7, t)), - new Mr(this.h, this.s, this.l * t, this.opacity) - ); - }, - rgb: function() { - var t = isNaN(this.h) ? 0 : (this.h + 120) * ar, - e = +this.l, - n = isNaN(this.s) ? 0 : this.s * e * (1 - e), - r = Math.cos(t), - i = Math.sin(t); - return new dn( - 255 * (e + n * (-0.14861 * r + 1.78277 * i)), - 255 * (e + n * (kr * r + -0.90649 * i)), - 255 * (e + n * (1.97294 * r)), - this.opacity - ); - } - }) - ); - var Dr = Lr(An), - jr = Lr(Cn); - function Rr(t, e) { - for ( - var n = 0, - r = e.length - 1, - i = e[0], - o = new Array(r < 0 ? 0 : r); - n < r; - - ) - o[n] = t(i, (i = e[++n])); - return function(t) { - var e = Math.max(0, Math.min(r - 1, Math.floor((t *= r)))); - return o[e](t - e); - }; - } - var Nr, - zr, - Ir = function(t, e) { - for (var n = new Array(e), r = 0; r < e; ++r) - n[r] = t(r / (e - 1)); - return n; - }, - Fr = 0, - Vr = 0, - Br = 0, - Gr = 0, - Hr = 0, - Ur = 0, - qr = - 'object' == typeof performance && performance.now - ? performance - : Date, - Wr = - 'object' == typeof window && window.requestAnimationFrame - ? window.requestAnimationFrame.bind(window) - : function(t) { - setTimeout(t, 17); - }; - function Xr() { - return Hr || (Wr(Yr), (Hr = qr.now() + Ur)); - } - function Yr() { - Hr = 0; - } - function $r() { - this._call = this._time = this._next = null; - } - function Qr(t, e, n) { - var r = new $r(); - return r.restart(t, e, n), r; - } - function Kr() { - Xr(), ++Fr; - for (var t, e = Nr; e; ) - (t = Hr - e._time) >= 0 && e._call.call(null, t), - (e = e._next); - --Fr; - } - function Zr() { - (Hr = (Gr = qr.now()) + Ur), (Fr = Vr = 0); - try { - Kr(); - } finally { - (Fr = 0), - (function() { - for (var t, e, n = Nr, r = 1 / 0; n; ) - n._call - ? (r > n._time && (r = n._time), - (t = n), - (n = n._next)) - : ((e = n._next), - (n._next = null), - (n = t ? (t._next = e) : (Nr = e))); - (zr = t), ti(r); - })(), - (Hr = 0); - } - } - function Jr() { - var t = qr.now(), - e = t - Gr; - e > 1e3 && ((Ur -= e), (Gr = t)); - } - function ti(t) { - Fr || - (Vr && (Vr = clearTimeout(Vr)), - t - Hr > 24 - ? (t < 1 / 0 && (Vr = setTimeout(Zr, t - qr.now() - Ur)), - Br && (Br = clearInterval(Br))) - : (Br || ((Gr = qr.now()), (Br = setInterval(Jr, 1e3))), - (Fr = 1), - Wr(Zr))); - } - $r.prototype = Qr.prototype = { - constructor: $r, - restart: function(t, e, n) { - if ('function' != typeof t) - throw new TypeError('callback is not a function'); - (n = (null == n ? Xr() : +n) + (null == e ? 0 : +e)), - this._next || - zr === this || - (zr ? (zr._next = this) : (Nr = this), (zr = this)), - (this._call = t), - (this._time = n), - ti(); - }, - stop: function() { - this._call && - ((this._call = null), (this._time = 1 / 0), ti()); - } - }; - var ei = function(t, e, n) { - var r = new $r(); - return ( - (e = null == e ? 0 : +e), - r.restart( - function(n) { - r.stop(), t(n + e); - }, - e, - n - ), - r - ); - }, - ni = function(t, e, n) { - var r = new $r(), - i = e; - return null == e - ? (r.restart(t, e, n), r) - : ((e = +e), - (n = null == n ? Xr() : +n), - r.restart( - function o(a) { - (a += i), r.restart(o, (i += e), n), t(a); - }, - e, - n - ), - r); - }, - ri = ct('start', 'end', 'cancel', 'interrupt'), - ii = [], - oi = function(t, e, n, r, i, o) { - var a = t.__transition; - if (a) { - if (n in a) return; - } else t.__transition = {}; - !(function(t, e, n) { - var r, - i = t.__transition; - function o(u) { - var l, c, f, d; - if (1 !== n.state) return s(); - for (l in i) - if ((d = i[l]).name === n.name) { - if (3 === d.state) return ei(o); - 4 === d.state - ? ((d.state = 6), - d.timer.stop(), - d.on.call( - 'interrupt', - t, - t.__data__, - d.index, - d.group - ), - delete i[l]) - : +l < e && - ((d.state = 6), - d.timer.stop(), - d.on.call( - 'cancel', - t, - t.__data__, - d.index, - d.group - ), - delete i[l]); - } - if ( - (ei(function() { - 3 === n.state && - ((n.state = 4), - n.timer.restart(a, n.delay, n.time), - a(u)); - }), - (n.state = 2), - n.on.call('start', t, t.__data__, n.index, n.group), - 2 === n.state) - ) { - for ( - n.state = 3, - r = new Array((f = n.tween.length)), - l = 0, - c = -1; - l < f; - ++l - ) - (d = n.tween[l].value.call( - t, - t.__data__, - n.index, - n.group - )) && (r[++c] = d); - r.length = c + 1; - } - } - function a(e) { - for ( - var i = - e < n.duration - ? n.ease.call(null, e / n.duration) - : (n.timer.restart(s), (n.state = 5), 1), - o = -1, - a = r.length; - ++o < a; - - ) - r[o].call(t, i); - 5 === n.state && - (n.on.call('end', t, t.__data__, n.index, n.group), - s()); - } - function s() { - for (var r in ((n.state = 6), - n.timer.stop(), - delete i[e], - i)) - return; - delete t.__transition; - } - (i[e] = n), - (n.timer = Qr( - function(t) { - (n.state = 1), - n.timer.restart(o, n.delay, n.time), - n.delay <= t && o(t - n.delay); - }, - 0, - n.time - )); - })(t, n, { - name: e, - index: r, - group: i, - on: ri, - tween: ii, - time: o.time, - delay: o.delay, - duration: o.duration, - ease: o.ease, - timer: null, - state: 0 - }); - }; - function ai(t, e) { - var n = ui(t, e); - if (n.state > 0) throw new Error('too late; already scheduled'); - return n; - } - function si(t, e) { - var n = ui(t, e); - if (n.state > 3) throw new Error('too late; already running'); - return n; - } - function ui(t, e) { - var n = t.__transition; - if (!n || !(n = n[e])) throw new Error('transition not found'); - return n; - } - var li = function(t, e) { - var n, - r, - i, - o = t.__transition, - a = !0; - if (o) { - for (i in ((e = null == e ? null : e + ''), o)) - (n = o[i]).name === e - ? ((r = n.state > 2 && n.state < 5), - (n.state = 6), - n.timer.stop(), - n.on.call( - r ? 'interrupt' : 'cancel', - t, - t.__data__, - n.index, - n.group - ), - delete o[i]) - : (a = !1); - a && delete t.__transition; - } - }; - function ci(t, e) { - var n, r; - return function() { - var i = si(this, t), - o = i.tween; - if (o !== n) - for (var a = 0, s = (r = n = o).length; a < s; ++a) - if (r[a].name === e) { - (r = r.slice()).splice(a, 1); - break; - } - i.tween = r; - }; - } - function fi(t, e, n) { - var r, i; - if ('function' != typeof n) throw new Error(); - return function() { - var o = si(this, t), - a = o.tween; - if (a !== r) { - i = (r = a).slice(); - for ( - var s = { name: e, value: n }, u = 0, l = i.length; - u < l; - ++u - ) - if (i[u].name === e) { - i[u] = s; - break; - } - u === l && i.push(s); - } - o.tween = i; - }; - } - function di(t, e, n) { - var r = t._id; - return ( - t.each(function() { - var t = si(this, r); - (t.value || (t.value = {}))[e] = n.apply(this, arguments); - }), - function(t) { - return ui(t, r).value[e]; - } - ); - } - var hi = function(t, e) { - var n; - return ('number' == typeof e - ? Fn - : e instanceof sn - ? On - : (n = sn(e)) - ? ((e = n), On) - : Hn)(t, e); - }; - function pi(t) { - return function() { - this.removeAttribute(t); - }; - } - function gi(t) { - return function() { - this.removeAttributeNS(t.space, t.local); - }; - } - function vi(t, e, n) { - var r, - i, - o = n + ''; - return function() { - var a = this.getAttribute(t); - return a === o ? null : a === r ? i : (i = e((r = a), n)); - }; - } - function mi(t, e, n) { - var r, - i, - o = n + ''; - return function() { - var a = this.getAttributeNS(t.space, t.local); - return a === o ? null : a === r ? i : (i = e((r = a), n)); - }; - } - function yi(t, e, n) { - var r, i, o; - return function() { - var a, - s, - u = n(this); - if (null != u) - return (a = this.getAttribute(t)) === (s = u + '') - ? null - : a === r && s === i - ? o - : ((i = s), (o = e((r = a), u))); - this.removeAttribute(t); - }; - } - function bi(t, e, n) { - var r, i, o; - return function() { - var a, - s, - u = n(this); - if (null != u) - return (a = this.getAttributeNS(t.space, t.local)) === - (s = u + '') - ? null - : a === r && s === i - ? o - : ((i = s), (o = e((r = a), u))); - this.removeAttributeNS(t.space, t.local); - }; - } - function _i(t, e) { - return function(n) { - this.setAttribute(t, e(n)); - }; - } - function xi(t, e) { - return function(n) { - this.setAttributeNS(t.space, t.local, e(n)); - }; - } - function wi(t, e) { - var n, r; - function i() { - var i = e.apply(this, arguments); - return i !== r && (n = (r = i) && xi(t, i)), n; - } - return (i._value = e), i; - } - function Si(t, e) { - var n, r; - function i() { - var i = e.apply(this, arguments); - return i !== r && (n = (r = i) && _i(t, i)), n; - } - return (i._value = e), i; - } - function Ei(t, e) { - return function() { - ai(this, t).delay = +e.apply(this, arguments); - }; - } - function ki(t, e) { - return ( - (e = +e), - function() { - ai(this, t).delay = e; - } - ); - } - function Ai(t, e) { - return function() { - si(this, t).duration = +e.apply(this, arguments); - }; - } - function Ti(t, e) { - return ( - (e = +e), - function() { - si(this, t).duration = e; - } - ); - } - function Ci(t, e) { - if ('function' != typeof e) throw new Error(); - return function() { - si(this, t).ease = e; - }; - } - function Oi(t, e, n) { - var r, - i, - o = (function(t) { - return (t + '') - .trim() - .split(/^|\s+/) - .every(function(t) { - var e = t.indexOf('.'); - return ( - e >= 0 && (t = t.slice(0, e)), !t || 'start' === t - ); - }); - })(e) - ? ai - : si; - return function() { - var a = o(this, t), - s = a.on; - s !== r && (i = (r = s).copy()).on(e, n), (a.on = i); - }; - } - var Pi = xe.prototype.constructor; - function Mi(t) { - return function() { - this.style.removeProperty(t); - }; - } - function Li(t, e, n) { - return function(r) { - this.style.setProperty(t, e(r), n); - }; - } - function Di(t, e, n) { - var r, i; - function o() { - var o = e.apply(this, arguments); - return o !== i && (r = (i = o) && Li(t, o, n)), r; - } - return (o._value = e), o; - } - var ji = 0; - function Ri(t, e, n, r) { - (this._groups = t), - (this._parents = e), - (this._name = n), - (this._id = r); - } - function Ni(t) { - return xe().transition(t); - } - function zi() { - return ++ji; - } - var Ii = xe.prototype; - function Fi(t) { - return +t; - } - function Vi(t) { - return t * t; - } - function Bi(t) { - return t * (2 - t); - } - function Gi(t) { - return ((t *= 2) <= 1 ? t * t : --t * (2 - t) + 1) / 2; - } - function Hi(t) { - return t * t * t; - } - function Ui(t) { - return --t * t * t + 1; - } - function qi(t) { - return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2; - } - Ri.prototype = Ni.prototype = { - constructor: Ri, - select: function(t) { - var e = this._name, - n = this._id; - 'function' != typeof t && (t = yt(t)); - for ( - var r = this._groups, i = r.length, o = new Array(i), a = 0; - a < i; - ++a - ) - for ( - var s, - u, - l = r[a], - c = l.length, - f = (o[a] = new Array(c)), - d = 0; - d < c; - ++d - ) - (s = l[d]) && - (u = t.call(s, s.__data__, d, l)) && - ('__data__' in s && (u.__data__ = s.__data__), - (f[d] = u), - oi(f[d], e, n, d, f, ui(s, n))); - return new Ri(o, this._parents, e, n); - }, - selectAll: function(t) { - var e = this._name, - n = this._id; - 'function' != typeof t && (t = _t(t)); - for ( - var r = this._groups, i = r.length, o = [], a = [], s = 0; - s < i; - ++s - ) - for (var u, l = r[s], c = l.length, f = 0; f < c; ++f) - if ((u = l[f])) { - for ( - var d, - h = t.call(u, u.__data__, f, l), - p = ui(u, n), - g = 0, - v = h.length; - g < v; - ++g - ) - (d = h[g]) && oi(d, e, n, g, h, p); - o.push(h), a.push(u); - } - return new Ri(o, a, e, n); - }, - filter: function(t) { - 'function' != typeof t && (t = xt(t)); - for ( - var e = this._groups, n = e.length, r = new Array(n), i = 0; - i < n; - ++i - ) - for ( - var o, a = e[i], s = a.length, u = (r[i] = []), l = 0; - l < s; - ++l - ) - (o = a[l]) && t.call(o, o.__data__, l, a) && u.push(o); - return new Ri(r, this._parents, this._name, this._id); - }, - merge: function(t) { - if (t._id !== this._id) throw new Error(); - for ( - var e = this._groups, - n = t._groups, - r = e.length, - i = n.length, - o = Math.min(r, i), - a = new Array(r), - s = 0; - s < o; - ++s - ) - for ( - var u, - l = e[s], - c = n[s], - f = l.length, - d = (a[s] = new Array(f)), - h = 0; - h < f; - ++h - ) - (u = l[h] || c[h]) && (d[h] = u); - for (; s < r; ++s) a[s] = e[s]; - return new Ri(a, this._parents, this._name, this._id); - }, - selection: function() { - return new Pi(this._groups, this._parents); - }, - transition: function() { - for ( - var t = this._name, - e = this._id, - n = zi(), - r = this._groups, - i = r.length, - o = 0; - o < i; - ++o - ) - for (var a, s = r[o], u = s.length, l = 0; l < u; ++l) - if ((a = s[l])) { - var c = ui(a, e); - oi(a, t, n, l, s, { - time: c.time + c.delay + c.duration, - delay: 0, - duration: c.duration, - ease: c.ease - }); - } - return new Ri(r, this._parents, t, n); - }, - call: Ii.call, - nodes: Ii.nodes, - node: Ii.node, - size: Ii.size, - empty: Ii.empty, - each: Ii.each, - on: function(t, e) { - var n = this._id; - return arguments.length < 2 - ? ui(this.node(), n).on.on(t) - : this.each(Oi(n, t, e)); - }, - attr: function(t, e) { - var n = ht(t), - r = 'transform' === n ? Jn : hi; - return this.attrTween( - t, - 'function' == typeof e - ? (n.local ? bi : yi)(n, r, di(this, 'attr.' + t, e)) - : null == e - ? (n.local ? gi : pi)(n) - : (n.local ? mi : vi)(n, r, e) - ); - }, - attrTween: function(t, e) { - var n = 'attr.' + t; - if (arguments.length < 2) - return (n = this.tween(n)) && n._value; - if (null == e) return this.tween(n, null); - if ('function' != typeof e) throw new Error(); - var r = ht(t); - return this.tween(n, (r.local ? wi : Si)(r, e)); - }, - style: function(t, e, n) { - var r = 'transform' == (t += '') ? Zn : hi; - return null == e - ? this.styleTween( - t, - (function(t, e) { - var n, r, i; - return function() { - var o = zt(this, t), - a = (this.style.removeProperty(t), zt(this, t)); - return o === a - ? null - : o === n && a === r - ? i - : (i = e((n = o), (r = a))); - }; - })(t, r) - ).on('end.style.' + t, Mi(t)) - : 'function' == typeof e - ? this.styleTween( - t, - (function(t, e, n) { - var r, i, o; - return function() { - var a = zt(this, t), - s = n(this), - u = s + ''; - return ( - null == s && - (this.style.removeProperty(t), - (u = s = zt(this, t))), - a === u - ? null - : a === r && u === i - ? o - : ((i = u), (o = e((r = a), s))) - ); - }; - })(t, r, di(this, 'style.' + t, e)) - ).each( - (function(t, e) { - var n, - r, - i, - o, - a = 'style.' + e, - s = 'end.' + a; - return function() { - var u = si(this, t), - l = u.on, - c = - null == u.value[a] ? o || (o = Mi(e)) : void 0; - (l === n && i === c) || - (r = (n = l).copy()).on(s, (i = c)), - (u.on = r); - }; - })(this._id, t) - ) - : this.styleTween( - t, - (function(t, e, n) { - var r, - i, - o = n + ''; - return function() { - var a = zt(this, t); - return a === o - ? null - : a === r - ? i - : (i = e((r = a), n)); - }; - })(t, r, e), - n - ).on('end.style.' + t, null); - }, - styleTween: function(t, e, n) { - var r = 'style.' + (t += ''); - if (arguments.length < 2) - return (r = this.tween(r)) && r._value; - if (null == e) return this.tween(r, null); - if ('function' != typeof e) throw new Error(); - return this.tween(r, Di(t, e, null == n ? '' : n)); - }, - text: function(t) { - return this.tween( - 'text', - 'function' == typeof t - ? (function(t) { - return function() { - var e = t(this); - this.textContent = null == e ? '' : e; - }; - })(di(this, 'text', t)) - : (function(t) { - return function() { - this.textContent = t; - }; - })(null == t ? '' : t + '') - ); - }, - remove: function() { - return this.on( - 'end.remove', - ((t = this._id), - function() { - var e = this.parentNode; - for (var n in this.__transition) if (+n !== t) return; - e && e.removeChild(this); - }) - ); - var t; - }, - tween: function(t, e) { - var n = this._id; - if (((t += ''), arguments.length < 2)) { - for ( - var r, i = ui(this.node(), n).tween, o = 0, a = i.length; - o < a; - ++o - ) - if ((r = i[o]).name === t) return r.value; - return null; - } - return this.each((null == e ? ci : fi)(n, t, e)); - }, - delay: function(t) { - var e = this._id; - return arguments.length - ? this.each(('function' == typeof t ? Ei : ki)(e, t)) - : ui(this.node(), e).delay; - }, - duration: function(t) { - var e = this._id; - return arguments.length - ? this.each(('function' == typeof t ? Ai : Ti)(e, t)) - : ui(this.node(), e).duration; - }, - ease: function(t) { - var e = this._id; - return arguments.length - ? this.each(Ci(e, t)) - : ui(this.node(), e).ease; - }, - end: function() { - var t, - e, - n = this, - r = n._id, - i = n.size(); - return new Promise(function(o, a) { - var s = { value: a }, - u = { - value: function() { - 0 == --i && o(); - } - }; - n.each(function() { - var n = si(this, r), - i = n.on; - i !== t && - ((e = (t = i).copy())._.cancel.push(s), - e._.interrupt.push(s), - e._.end.push(u)), - (n.on = e); - }); - }); - } - }; - var Wi = (function t(e) { - function n(t) { - return Math.pow(t, e); - } - return (e = +e), (n.exponent = t), n; - })(3), - Xi = (function t(e) { - function n(t) { - return 1 - Math.pow(1 - t, e); - } - return (e = +e), (n.exponent = t), n; - })(3), - Yi = (function t(e) { - function n(t) { - return ( - ((t *= 2) <= 1 - ? Math.pow(t, e) - : 2 - Math.pow(2 - t, e)) / 2 - ); - } - return (e = +e), (n.exponent = t), n; - })(3), - $i = Math.PI, - Qi = $i / 2; - function Ki(t) { - return 1 - Math.cos(t * Qi); - } - function Zi(t) { - return Math.sin(t * Qi); - } - function Ji(t) { - return (1 - Math.cos($i * t)) / 2; - } - function to(t) { - return Math.pow(2, 10 * t - 10); - } - function eo(t) { - return 1 - Math.pow(2, -10 * t); - } - function no(t) { - return ( - ((t *= 2) <= 1 - ? Math.pow(2, 10 * t - 10) - : 2 - Math.pow(2, 10 - 10 * t)) / 2 - ); - } - function ro(t) { - return 1 - Math.sqrt(1 - t * t); - } - function io(t) { - return Math.sqrt(1 - --t * t); - } - function oo(t) { - return ( - ((t *= 2) <= 1 - ? 1 - Math.sqrt(1 - t * t) - : Math.sqrt(1 - (t -= 2) * t) + 1) / 2 - ); - } - function ao(t) { - return 1 - so(1 - t); - } - function so(t) { - return (t = +t) < 4 / 11 - ? 7.5625 * t * t - : t < 8 / 11 - ? 7.5625 * (t -= 6 / 11) * t + 3 / 4 - : t < 10 / 11 - ? 7.5625 * (t -= 9 / 11) * t + 15 / 16 - : 7.5625 * (t -= 21 / 22) * t + 63 / 64; - } - function uo(t) { - return ((t *= 2) <= 1 ? 1 - so(1 - t) : so(t - 1) + 1) / 2; - } - var lo = (function t(e) { - function n(t) { - return t * t * ((e + 1) * t - e); - } - return (e = +e), (n.overshoot = t), n; - })(1.70158), - co = (function t(e) { - function n(t) { - return --t * t * ((e + 1) * t + e) + 1; - } - return (e = +e), (n.overshoot = t), n; - })(1.70158), - fo = (function t(e) { - function n(t) { - return ( - ((t *= 2) < 1 - ? t * t * ((e + 1) * t - e) - : (t -= 2) * t * ((e + 1) * t + e) + 2) / 2 - ); - } - return (e = +e), (n.overshoot = t), n; - })(1.70158), - ho = 2 * Math.PI, - po = (function t(e, n) { - var r = Math.asin(1 / (e = Math.max(1, e))) * (n /= ho); - function i(t) { - return e * Math.pow(2, 10 * --t) * Math.sin((r - t) / n); - } - return ( - (i.amplitude = function(e) { - return t(e, n * ho); - }), - (i.period = function(n) { - return t(e, n); - }), - i - ); - })(1, 0.3), - go = (function t(e, n) { - var r = Math.asin(1 / (e = Math.max(1, e))) * (n /= ho); - function i(t) { - return ( - 1 - - e * Math.pow(2, -10 * (t = +t)) * Math.sin((t + r) / n) - ); - } - return ( - (i.amplitude = function(e) { - return t(e, n * ho); - }), - (i.period = function(n) { - return t(e, n); - }), - i - ); - })(1, 0.3), - vo = (function t(e, n) { - var r = Math.asin(1 / (e = Math.max(1, e))) * (n /= ho); - function i(t) { - return ( - ((t = 2 * t - 1) < 0 - ? e * Math.pow(2, 10 * t) * Math.sin((r - t) / n) - : 2 - - e * Math.pow(2, -10 * t) * Math.sin((r + t) / n)) / 2 - ); - } - return ( - (i.amplitude = function(e) { - return t(e, n * ho); - }), - (i.period = function(n) { - return t(e, n); - }), - i - ); - })(1, 0.3), - mo = { time: null, delay: 0, duration: 250, ease: qi }; - function yo(t, e) { - for (var n; !(n = t.__transition) || !(n = n[e]); ) - if (!(t = t.parentNode)) return (mo.time = Xr()), mo; - return n; - } - (xe.prototype.interrupt = function(t) { - return this.each(function() { - li(this, t); - }); - }), - (xe.prototype.transition = function(t) { - var e, n; - t instanceof Ri - ? ((e = t._id), (t = t._name)) - : ((e = zi()), - ((n = mo).time = Xr()), - (t = null == t ? null : t + '')); - for (var r = this._groups, i = r.length, o = 0; o < i; ++o) - for (var a, s = r[o], u = s.length, l = 0; l < u; ++l) - (a = s[l]) && oi(a, t, e, l, s, n || yo(a, e)); - return new Ri(r, this._parents, t, e); - }); - var bo = [null], - _o = function(t, e) { - var n, - r, - i = t.__transition; - if (i) - for (r in ((e = null == e ? null : e + ''), i)) - if ((n = i[r]).state > 1 && n.name === e) - return new Ri([[t]], bo, e, +r); - return null; - }, - xo = function(t) { - return function() { - return t; - }; - }, - wo = function(t, e, n) { - (this.target = t), (this.type = e), (this.selection = n); - }; - function So() { - ue.stopImmediatePropagation(); - } - var Eo = function() { - ue.preventDefault(), ue.stopImmediatePropagation(); - }, - ko = { name: 'drag' }, - Ao = { name: 'space' }, - To = { name: 'handle' }, - Co = { name: 'center' }; - function Oo(t) { - return [+t[0], +t[1]]; - } - function Po(t) { - return [Oo(t[0]), Oo(t[1])]; - } - function Mo(t) { - return function(e) { - return Me(e, ue.touches, t); - }; - } - var Lo = { - name: 'x', - handles: ['w', 'e'].map(Vo), - input: function(t, e) { - return null == t - ? null - : [ - [+t[0], e[0][1]], - [+t[1], e[1][1]] - ]; - }, - output: function(t) { - return t && [t[0][0], t[1][0]]; - } - }, - Do = { - name: 'y', - handles: ['n', 's'].map(Vo), - input: function(t, e) { - return null == t - ? null - : [ - [e[0][0], +t[0]], - [e[1][0], +t[1]] - ]; - }, - output: function(t) { - return t && [t[0][1], t[1][1]]; - } - }, - jo = { - name: 'xy', - handles: ['n', 'w', 'e', 's', 'nw', 'ne', 'sw', 'se'].map(Vo), - input: function(t) { - return null == t ? null : Po(t); - }, - output: function(t) { - return t; - } - }, - Ro = { - overlay: 'crosshair', - selection: 'move', - n: 'ns-resize', - e: 'ew-resize', - s: 'ns-resize', - w: 'ew-resize', - nw: 'nwse-resize', - ne: 'nesw-resize', - se: 'nwse-resize', - sw: 'nesw-resize' - }, - No = { e: 'w', w: 'e', nw: 'ne', ne: 'nw', se: 'sw', sw: 'se' }, - zo = { n: 's', s: 'n', nw: 'sw', ne: 'se', se: 'ne', sw: 'nw' }, - Io = { - overlay: 1, - selection: 1, - n: null, - e: 1, - s: null, - w: -1, - nw: -1, - ne: 1, - se: 1, - sw: -1 - }, - Fo = { - overlay: 1, - selection: 1, - n: -1, - e: null, - s: 1, - w: null, - nw: -1, - ne: -1, - se: 1, - sw: 1 - }; - function Vo(t) { - return { type: t }; - } - function Bo() { - return !ue.ctrlKey && !ue.button; - } - function Go() { - var t = this.ownerSVGElement || this; - return t.hasAttribute('viewBox') - ? [ - [(t = t.viewBox.baseVal).x, t.y], - [t.x + t.width, t.y + t.height] - ] - : [ - [0, 0], - [t.width.baseVal.value, t.height.baseVal.value] - ]; - } - function Ho() { - return navigator.maxTouchPoints || 'ontouchstart' in this; - } - function Uo(t) { - for (; !t.__brush; ) if (!(t = t.parentNode)) return; - return t.__brush; - } - function qo(t) { - return t[0][0] === t[1][0] || t[0][1] === t[1][1]; - } - function Wo(t) { - var e = t.__brush; - return e ? e.dim.output(e.selection) : null; - } - function Xo() { - return Qo(Lo); - } - function Yo() { - return Qo(Do); - } - var $o = function() { - return Qo(jo); - }; - function Qo(t) { - var e, - n = Go, - r = Bo, - i = Ho, - o = !0, - a = ct(u, 'start', 'brush', 'end'), - s = 6; - function u(e) { - var n = e - .property('__brush', g) - .selectAll('.overlay') - .data([Vo('overlay')]); - n - .enter() - .append('rect') - .attr('class', 'overlay') - .attr('pointer-events', 'all') - .attr('cursor', Ro.overlay) - .merge(n) - .each(function() { - var t = Uo(this).extent; - we(this) - .attr('x', t[0][0]) - .attr('y', t[0][1]) - .attr('width', t[1][0] - t[0][0]) - .attr('height', t[1][1] - t[0][1]); - }), - e - .selectAll('.selection') - .data([Vo('selection')]) - .enter() - .append('rect') - .attr('class', 'selection') - .attr('cursor', Ro.selection) - .attr('fill', '#777') - .attr('fill-opacity', 0.3) - .attr('stroke', '#fff') - .attr('shape-rendering', 'crispEdges'); - var r = e.selectAll('.handle').data(t.handles, function(t) { - return t.type; - }); - r.exit().remove(), - r - .enter() - .append('rect') - .attr('class', function(t) { - return 'handle handle--' + t.type; - }) - .attr('cursor', function(t) { - return Ro[t.type]; - }), - e - .each(l) - .attr('fill', 'none') - .attr('pointer-events', 'all') - .on('mousedown.brush', d) - .filter(i) - .on('touchstart.brush', d) - .on('touchmove.brush', h) - .on('touchend.brush touchcancel.brush', p) - .style('touch-action', 'none') - .style('-webkit-tap-highlight-color', 'rgba(0,0,0,0)'); - } - function l() { - var t = we(this), - e = Uo(this).selection; - e - ? (t - .selectAll('.selection') - .style('display', null) - .attr('x', e[0][0]) - .attr('y', e[0][1]) - .attr('width', e[1][0] - e[0][0]) - .attr('height', e[1][1] - e[0][1]), - t - .selectAll('.handle') - .style('display', null) - .attr('x', function(t) { - return 'e' === t.type[t.type.length - 1] - ? e[1][0] - s / 2 - : e[0][0] - s / 2; - }) - .attr('y', function(t) { - return 's' === t.type[0] - ? e[1][1] - s / 2 - : e[0][1] - s / 2; - }) - .attr('width', function(t) { - return 'n' === t.type || 's' === t.type - ? e[1][0] - e[0][0] + s - : s; - }) - .attr('height', function(t) { - return 'e' === t.type || 'w' === t.type - ? e[1][1] - e[0][1] + s - : s; - })) - : t - .selectAll('.selection,.handle') - .style('display', 'none') - .attr('x', null) - .attr('y', null) - .attr('width', null) - .attr('height', null); - } - function c(t, e, n) { - return (!n && t.__brush.emitter) || new f(t, e); - } - function f(t, e) { - (this.that = t), - (this.args = e), - (this.state = t.__brush), - (this.active = 0); - } - function d() { - if ((!e || ue.touches) && r.apply(this, arguments)) { - var n, - i, - a, - s, - u, - f, - d, - h, - p, - g, - v, - m = this, - y = ue.target.__data__.type, - b = - 'selection' === (o && ue.metaKey ? (y = 'overlay') : y) - ? ko - : o && ue.altKey - ? Co - : To, - _ = t === Do ? null : Io[y], - x = t === Lo ? null : Fo[y], - w = Uo(m), - S = w.extent, - E = w.selection, - k = S[0][0], - A = S[0][1], - T = S[1][0], - C = S[1][1], - O = 0, - P = 0, - M = _ && x && o && ue.shiftKey, - L = ue.touches ? Mo(ue.changedTouches[0].identifier) : Oe, - D = L(m), - j = D, - R = c(m, arguments, !0).beforestart(); - 'overlay' === y - ? (E && (p = !0), - (w.selection = E = [ - [ - (n = t === Do ? k : D[0]), - (a = t === Lo ? A : D[1]) - ], - [(u = t === Do ? T : n), (d = t === Lo ? C : a)] - ])) - : ((n = E[0][0]), - (a = E[0][1]), - (u = E[1][0]), - (d = E[1][1])), - (i = n), - (s = a), - (f = u), - (h = d); - var N = we(m).attr('pointer-events', 'none'), - z = N.selectAll('.overlay').attr('cursor', Ro[y]); - if (ue.touches) (R.moved = F), (R.ended = B); - else { - var I = we(ue.view) - .on('mousemove.brush', F, !0) - .on('mouseup.brush', B, !0); - o && - I.on('keydown.brush', G, !0).on('keyup.brush', H, !0), - Re(ue.view); - } - So(), li(m), l.call(m), R.start(); - } - function F() { - var t = L(m); - !M || - g || - v || - (Math.abs(t[0] - j[0]) > Math.abs(t[1] - j[1]) - ? (v = !0) - : (g = !0)), - (j = t), - (p = !0), - Eo(), - V(); - } - function V() { - var t; - switch (((O = j[0] - D[0]), (P = j[1] - D[1]), b)) { - case Ao: - case ko: - _ && - ((O = Math.max(k - n, Math.min(T - u, O))), - (i = n + O), - (f = u + O)), - x && - ((P = Math.max(A - a, Math.min(C - d, P))), - (s = a + P), - (h = d + P)); - break; - case To: - _ < 0 - ? ((O = Math.max(k - n, Math.min(T - n, O))), - (i = n + O), - (f = u)) - : _ > 0 && - ((O = Math.max(k - u, Math.min(T - u, O))), - (i = n), - (f = u + O)), - x < 0 - ? ((P = Math.max(A - a, Math.min(C - a, P))), - (s = a + P), - (h = d)) - : x > 0 && - ((P = Math.max(A - d, Math.min(C - d, P))), - (s = a), - (h = d + P)); - break; - case Co: - _ && - ((i = Math.max(k, Math.min(T, n - O * _))), - (f = Math.max(k, Math.min(T, u + O * _)))), - x && - ((s = Math.max(A, Math.min(C, a - P * x))), - (h = Math.max(A, Math.min(C, d + P * x)))); - } - f < i && - ((_ *= -1), - (t = n), - (n = u), - (u = t), - (t = i), - (i = f), - (f = t), - y in No && z.attr('cursor', Ro[(y = No[y])])), - h < s && - ((x *= -1), - (t = a), - (a = d), - (d = t), - (t = s), - (s = h), - (h = t), - y in zo && z.attr('cursor', Ro[(y = zo[y])])), - w.selection && (E = w.selection), - g && ((i = E[0][0]), (f = E[1][0])), - v && ((s = E[0][1]), (h = E[1][1])), - (E[0][0] === i && - E[0][1] === s && - E[1][0] === f && - E[1][1] === h) || - ((w.selection = [ - [i, s], - [f, h] - ]), - l.call(m), - R.brush()); - } - function B() { - if ((So(), ue.touches)) { - if (ue.touches.length) return; - e && clearTimeout(e), - (e = setTimeout(function() { - e = null; - }, 500)); - } else - Ne(ue.view, p), - I.on( - 'keydown.brush keyup.brush mousemove.brush mouseup.brush', - null - ); - N.attr('pointer-events', 'all'), - z.attr('cursor', Ro.overlay), - w.selection && (E = w.selection), - qo(E) && ((w.selection = null), l.call(m)), - R.end(); - } - function G() { - switch (ue.keyCode) { - case 16: - M = _ && x; - break; - case 18: - b === To && - (_ && ((u = f - O * _), (n = i + O * _)), - x && ((d = h - P * x), (a = s + P * x)), - (b = Co), - V()); - break; - case 32: - (b !== To && b !== Co) || - (_ < 0 ? (u = f - O) : _ > 0 && (n = i - O), - x < 0 ? (d = h - P) : x > 0 && (a = s - P), - (b = Ao), - z.attr('cursor', Ro.selection), - V()); - break; - default: - return; - } - Eo(); - } - function H() { - switch (ue.keyCode) { - case 16: - M && ((g = v = M = !1), V()); - break; - case 18: - b === Co && - (_ < 0 ? (u = f) : _ > 0 && (n = i), - x < 0 ? (d = h) : x > 0 && (a = s), - (b = To), - V()); - break; - case 32: - b === Ao && - (ue.altKey - ? (_ && ((u = f - O * _), (n = i + O * _)), - x && ((d = h - P * x), (a = s + P * x)), - (b = Co)) - : (_ < 0 ? (u = f) : _ > 0 && (n = i), - x < 0 ? (d = h) : x > 0 && (a = s), - (b = To)), - z.attr('cursor', Ro[y]), - V()); - break; - default: - return; - } - Eo(); - } - } - function h() { - c(this, arguments).moved(); - } - function p() { - c(this, arguments).ended(); - } - function g() { - var e = this.__brush || { selection: null }; - return ( - (e.extent = Po(n.apply(this, arguments))), (e.dim = t), e - ); - } - return ( - (u.move = function(e, n) { - e.selection - ? e - .on('start.brush', function() { - c(this, arguments) - .beforestart() - .start(); - }) - .on('interrupt.brush end.brush', function() { - c(this, arguments).end(); - }) - .tween('brush', function() { - var e = this, - r = e.__brush, - i = c(e, arguments), - o = r.selection, - a = t.input( - 'function' == typeof n - ? n.apply(this, arguments) - : n, - r.extent - ), - s = Un(o, a); - function u(t) { - (r.selection = - 1 === t && null === a ? null : s(t)), - l.call(e), - i.brush(); - } - return null !== o && null !== a ? u : u(1); - }) - : e.each(function() { - var e = this, - r = arguments, - i = e.__brush, - o = t.input( - 'function' == typeof n ? n.apply(e, r) : n, - i.extent - ), - a = c(e, r).beforestart(); - li(e), - (i.selection = null === o ? null : o), - l.call(e), - a - .start() - .brush() - .end(); - }); - }), - (u.clear = function(t) { - u.move(t, null); - }), - (f.prototype = { - beforestart: function() { - return ( - 1 == ++this.active && - ((this.state.emitter = this), (this.starting = !0)), - this - ); - }, - start: function() { - return ( - this.starting - ? ((this.starting = !1), this.emit('start')) - : this.emit('brush'), - this - ); - }, - brush: function() { - return this.emit('brush'), this; - }, - end: function() { - return ( - 0 == --this.active && - (delete this.state.emitter, this.emit('end')), - this - ); - }, - emit: function(e) { - pe( - new wo(u, e, t.output(this.state.selection)), - a.apply, - a, - [e, this.that, this.args] - ); - } - }), - (u.extent = function(t) { - return arguments.length - ? ((n = 'function' == typeof t ? t : xo(Po(t))), u) - : n; - }), - (u.filter = function(t) { - return arguments.length - ? ((r = 'function' == typeof t ? t : xo(!!t)), u) - : r; - }), - (u.handleSize = function(t) { - return arguments.length ? ((s = +t), u) : s; - }), - (u.keyModifiers = function(t) { - return arguments.length ? ((o = !!t), u) : o; - }), - (u.on = function() { - var t = a.on.apply(a, arguments); - return t === a ? u : t; - }), - u - ); - } - var Ko = Math.cos, - Zo = Math.sin, - Jo = Math.PI, - ta = Jo / 2, - ea = 2 * Jo, - na = Math.max; - function ra(t) { - return function(e, n) { - return t( - e.source.value + e.target.value, - n.source.value + n.target.value - ); - }; - } - var ia = function() { - var t = 0, - e = null, - n = null, - r = null; - function i(i) { - var o, - a, - s, - u, - l, - c, - f = i.length, - d = [], - h = w(f), - p = [], - g = [], - v = (g.groups = new Array(f)), - m = new Array(f * f); - for (o = 0, l = -1; ++l < f; ) { - for (a = 0, c = -1; ++c < f; ) a += i[l][c]; - d.push(a), p.push(w(f)), (o += a); - } - for ( - e && - h.sort(function(t, n) { - return e(d[t], d[n]); - }), - n && - p.forEach(function(t, e) { - t.sort(function(t, r) { - return n(i[e][t], i[e][r]); - }); - }), - u = (o = na(0, ea - t * f) / o) ? t : ea / f, - a = 0, - l = -1; - ++l < f; - - ) { - for (s = a, c = -1; ++c < f; ) { - var y = h[l], - b = p[y][c], - _ = i[y][b], - x = a, - S = (a += _ * o); - m[b * f + y] = { - index: y, - subindex: b, - startAngle: x, - endAngle: S, - value: _ - }; - } - (v[y] = { - index: y, - startAngle: s, - endAngle: a, - value: d[y] - }), - (a += u); - } - for (l = -1; ++l < f; ) - for (c = l - 1; ++c < f; ) { - var E = m[c * f + l], - k = m[l * f + c]; - (E.value || k.value) && - g.push( - E.value < k.value - ? { source: k, target: E } - : { source: E, target: k } - ); - } - return r ? g.sort(r) : g; - } - return ( - (i.padAngle = function(e) { - return arguments.length ? ((t = na(0, e)), i) : t; - }), - (i.sortGroups = function(t) { - return arguments.length ? ((e = t), i) : e; - }), - (i.sortSubgroups = function(t) { - return arguments.length ? ((n = t), i) : n; - }), - (i.sortChords = function(t) { - return arguments.length - ? (null == t ? (r = null) : ((r = ra(t))._ = t), i) - : r && r._; - }), - i - ); - }, - oa = Array.prototype.slice, - aa = function(t) { - return function() { - return t; - }; - }, - sa = Math.PI, - ua = 2 * sa, - la = ua - 1e-6; - function ca() { - (this._x0 = this._y0 = this._x1 = this._y1 = null), - (this._ = ''); - } - function fa() { - return new ca(); - } - ca.prototype = fa.prototype = { - constructor: ca, - moveTo: function(t, e) { - this._ += - 'M' + - (this._x0 = this._x1 = +t) + - ',' + - (this._y0 = this._y1 = +e); - }, - closePath: function() { - null !== this._x1 && - ((this._x1 = this._x0), - (this._y1 = this._y0), - (this._ += 'Z')); - }, - lineTo: function(t, e) { - this._ += 'L' + (this._x1 = +t) + ',' + (this._y1 = +e); - }, - quadraticCurveTo: function(t, e, n, r) { - this._ += - 'Q' + - +t + - ',' + - +e + - ',' + - (this._x1 = +n) + - ',' + - (this._y1 = +r); - }, - bezierCurveTo: function(t, e, n, r, i, o) { - this._ += - 'C' + - +t + - ',' + - +e + - ',' + - +n + - ',' + - +r + - ',' + - (this._x1 = +i) + - ',' + - (this._y1 = +o); - }, - arcTo: function(t, e, n, r, i) { - (t = +t), (e = +e), (n = +n), (r = +r), (i = +i); - var o = this._x1, - a = this._y1, - s = n - t, - u = r - e, - l = o - t, - c = a - e, - f = l * l + c * c; - if (i < 0) throw new Error('negative radius: ' + i); - if (null === this._x1) - this._ += 'M' + (this._x1 = t) + ',' + (this._y1 = e); - else if (f > 1e-6) - if (Math.abs(c * s - u * l) > 1e-6 && i) { - var d = n - o, - h = r - a, - p = s * s + u * u, - g = d * d + h * h, - v = Math.sqrt(p), - m = Math.sqrt(f), - y = - i * - Math.tan( - (sa - Math.acos((p + f - g) / (2 * v * m))) / 2 - ), - b = y / m, - _ = y / v; - Math.abs(b - 1) > 1e-6 && - (this._ += 'L' + (t + b * l) + ',' + (e + b * c)), - (this._ += - 'A' + - i + - ',' + - i + - ',0,0,' + - +(c * d > l * h) + - ',' + - (this._x1 = t + _ * s) + - ',' + - (this._y1 = e + _ * u)); - } else - this._ += 'L' + (this._x1 = t) + ',' + (this._y1 = e); - }, - arc: function(t, e, n, r, i, o) { - (t = +t), (e = +e), (o = !!o); - var a = (n = +n) * Math.cos(r), - s = n * Math.sin(r), - u = t + a, - l = e + s, - c = 1 ^ o, - f = o ? r - i : i - r; - if (n < 0) throw new Error('negative radius: ' + n); - null === this._x1 - ? (this._ += 'M' + u + ',' + l) - : (Math.abs(this._x1 - u) > 1e-6 || - Math.abs(this._y1 - l) > 1e-6) && - (this._ += 'L' + u + ',' + l), - n && - (f < 0 && (f = (f % ua) + ua), - f > la - ? (this._ += - 'A' + - n + - ',' + - n + - ',0,1,' + - c + - ',' + - (t - a) + - ',' + - (e - s) + - 'A' + - n + - ',' + - n + - ',0,1,' + - c + - ',' + - (this._x1 = u) + - ',' + - (this._y1 = l)) - : f > 1e-6 && - (this._ += - 'A' + - n + - ',' + - n + - ',0,' + - +(f >= sa) + - ',' + - c + - ',' + - (this._x1 = t + n * Math.cos(i)) + - ',' + - (this._y1 = e + n * Math.sin(i)))); - }, - rect: function(t, e, n, r) { - this._ += - 'M' + - (this._x0 = this._x1 = +t) + - ',' + - (this._y0 = this._y1 = +e) + - 'h' + - +n + - 'v' + - +r + - 'h' + - -n + - 'Z'; - }, - toString: function() { - return this._; - } - }; - var da = fa; - function ha(t) { - return t.source; - } - function pa(t) { - return t.target; - } - function ga(t) { - return t.radius; - } - function va(t) { - return t.startAngle; - } - function ma(t) { - return t.endAngle; - } - var ya = function() { - var t = ha, - e = pa, - n = ga, - r = va, - i = ma, - o = null; - function a() { - var a, - s = oa.call(arguments), - u = t.apply(this, s), - l = e.apply(this, s), - c = +n.apply(this, ((s[0] = u), s)), - f = r.apply(this, s) - ta, - d = i.apply(this, s) - ta, - h = c * Ko(f), - p = c * Zo(f), - g = +n.apply(this, ((s[0] = l), s)), - v = r.apply(this, s) - ta, - m = i.apply(this, s) - ta; - if ( - (o || (o = a = da()), - o.moveTo(h, p), - o.arc(0, 0, c, f, d), - (f === v && d === m) || - (o.quadraticCurveTo(0, 0, g * Ko(v), g * Zo(v)), - o.arc(0, 0, g, v, m)), - o.quadraticCurveTo(0, 0, h, p), - o.closePath(), - a) - ) - return (o = null), a + '' || null; - } - return ( - (a.radius = function(t) { - return arguments.length - ? ((n = 'function' == typeof t ? t : aa(+t)), a) - : n; - }), - (a.startAngle = function(t) { - return arguments.length - ? ((r = 'function' == typeof t ? t : aa(+t)), a) - : r; - }), - (a.endAngle = function(t) { - return arguments.length - ? ((i = 'function' == typeof t ? t : aa(+t)), a) - : i; - }), - (a.source = function(e) { - return arguments.length ? ((t = e), a) : t; - }), - (a.target = function(t) { - return arguments.length ? ((e = t), a) : e; - }), - (a.context = function(t) { - return arguments.length - ? ((o = null == t ? null : t), a) - : o; - }), - a - ); - }; - function ba() {} - function _a(t, e) { - var n = new ba(); - if (t instanceof ba) - t.each(function(t, e) { - n.set(e, t); - }); - else if (Array.isArray(t)) { - var r, - i = -1, - o = t.length; - if (null == e) for (; ++i < o; ) n.set(i, t[i]); - else for (; ++i < o; ) n.set(e((r = t[i]), i, t), r); - } else if (t) for (var a in t) n.set(a, t[a]); - return n; - } - ba.prototype = _a.prototype = { - constructor: ba, - has: function(t) { - return '$' + t in this; - }, - get: function(t) { - return this['$' + t]; - }, - set: function(t, e) { - return (this['$' + t] = e), this; - }, - remove: function(t) { - var e = '$' + t; - return e in this && delete this[e]; - }, - clear: function() { - for (var t in this) '$' === t[0] && delete this[t]; - }, - keys: function() { - var t = []; - for (var e in this) '$' === e[0] && t.push(e.slice(1)); - return t; - }, - values: function() { - var t = []; - for (var e in this) '$' === e[0] && t.push(this[e]); - return t; - }, - entries: function() { - var t = []; - for (var e in this) - '$' === e[0] && t.push({ key: e.slice(1), value: this[e] }); - return t; - }, - size: function() { - var t = 0; - for (var e in this) '$' === e[0] && ++t; - return t; - }, - empty: function() { - for (var t in this) if ('$' === t[0]) return !1; - return !0; - }, - each: function(t) { - for (var e in this) - '$' === e[0] && t(this[e], e.slice(1), this); - } - }; - var xa = _a, - wa = function() { - var t, - e, - n, - r = [], - i = []; - function o(n, i, a, s) { - if (i >= r.length) - return null != t && n.sort(t), null != e ? e(n) : n; - for ( - var u, - l, - c, - f = -1, - d = n.length, - h = r[i++], - p = xa(), - g = a(); - ++f < d; - - ) - (c = p.get((u = h((l = n[f])) + ''))) - ? c.push(l) - : p.set(u, [l]); - return ( - p.each(function(t, e) { - s(g, e, o(t, i, a, s)); - }), - g - ); - } - return (n = { - object: function(t) { - return o(t, 0, Sa, Ea); - }, - map: function(t) { - return o(t, 0, ka, Aa); - }, - entries: function(t) { - return (function t(n, o) { - if (++o > r.length) return n; - var a, - s = i[o - 1]; - return ( - null != e && o >= r.length - ? (a = n.entries()) - : ((a = []), - n.each(function(e, n) { - a.push({ key: n, values: t(e, o) }); - })), - null != s - ? a.sort(function(t, e) { - return s(t.key, e.key); - }) - : a - ); - })(o(t, 0, ka, Aa), 0); - }, - key: function(t) { - return r.push(t), n; - }, - sortKeys: function(t) { - return (i[r.length - 1] = t), n; - }, - sortValues: function(e) { - return (t = e), n; - }, - rollup: function(t) { - return (e = t), n; - } - }); - }; - function Sa() { - return {}; - } - function Ea(t, e, n) { - t[e] = n; - } - function ka() { - return xa(); - } - function Aa(t, e, n) { - t.set(e, n); - } - function Ta() {} - var Ca = xa.prototype; - function Oa(t, e) { - var n = new Ta(); - if (t instanceof Ta) - t.each(function(t) { - n.add(t); - }); - else if (t) { - var r = -1, - i = t.length; - if (null == e) for (; ++r < i; ) n.add(t[r]); - else for (; ++r < i; ) n.add(e(t[r], r, t)); - } - return n; - } - Ta.prototype = Oa.prototype = { - constructor: Ta, - has: Ca.has, - add: function(t) { - return (this['$' + (t += '')] = t), this; - }, - remove: Ca.remove, - clear: Ca.clear, - values: Ca.keys, - size: Ca.size, - empty: Ca.empty, - each: Ca.each - }; - var Pa = Oa, - Ma = function(t) { - var e = []; - for (var n in t) e.push(n); - return e; - }, - La = function(t) { - var e = []; - for (var n in t) e.push(t[n]); - return e; - }, - Da = function(t) { - var e = []; - for (var n in t) e.push({ key: n, value: t[n] }); - return e; - }, - ja = Array.prototype.slice, - Ra = function(t, e) { - return t - e; - }, - Na = function(t) { - return function() { - return t; - }; - }, - za = function(t, e) { - for (var n, r = -1, i = e.length; ++r < i; ) - if ((n = Ia(t, e[r]))) return n; - return 0; - }; - function Ia(t, e) { - for ( - var n = e[0], - r = e[1], - i = -1, - o = 0, - a = t.length, - s = a - 1; - o < a; - s = o++ - ) { - var u = t[o], - l = u[0], - c = u[1], - f = t[s], - d = f[0], - h = f[1]; - if (Fa(u, f, e)) return 0; - c > r != h > r && - n < ((d - l) * (r - c)) / (h - c) + l && - (i = -i); - } - return i; - } - function Fa(t, e, n) { - var r, i, o, a; - return ( - (function(t, e, n) { - return ( - (e[0] - t[0]) * (n[1] - t[1]) == - (n[0] - t[0]) * (e[1] - t[1]) - ); - })(t, e, n) && - ((i = t[(r = +(t[0] === e[0]))]), - (o = n[r]), - (a = e[r]), - (i <= o && o <= a) || (a <= o && o <= i)) - ); - } - var Va = function() {}, - Ba = [ - [], - [ - [ - [1, 1.5], - [0.5, 1] - ] - ], - [ - [ - [1.5, 1], - [1, 1.5] - ] - ], - [ - [ - [1.5, 1], - [0.5, 1] - ] - ], - [ - [ - [1, 0.5], - [1.5, 1] - ] - ], - [ - [ - [1, 1.5], - [0.5, 1] - ], - [ - [1, 0.5], - [1.5, 1] - ] - ], - [ - [ - [1, 0.5], - [1, 1.5] - ] - ], - [ - [ - [1, 0.5], - [0.5, 1] - ] - ], - [ - [ - [0.5, 1], - [1, 0.5] - ] - ], - [ - [ - [1, 1.5], - [1, 0.5] - ] - ], - [ - [ - [0.5, 1], - [1, 0.5] - ], - [ - [1.5, 1], - [1, 1.5] - ] - ], - [ - [ - [1.5, 1], - [1, 0.5] - ] - ], - [ - [ - [0.5, 1], - [1.5, 1] - ] - ], - [ - [ - [1, 1.5], - [1.5, 1] - ] - ], - [ - [ - [0.5, 1], - [1, 1.5] - ] - ], - [] - ], - Ga = function() { - var t = 1, - e = 1, - n = O, - r = s; - function i(t) { - var e = n(t); - if (Array.isArray(e)) e = e.slice().sort(Ra); - else { - var r = v(t), - i = r[0], - a = r[1]; - (e = C(i, a, e)), - (e = w( - Math.floor(i / e) * e, - Math.floor(a / e) * e, - e - )); - } - return e.map(function(e) { - return o(t, e); - }); - } - function o(n, i) { - var o = [], - s = []; - return ( - (function(n, r, i) { - var o, - s, - u, - l, - c, - f, - d = new Array(), - h = new Array(); - for ( - o = s = -1, l = n[0] >= r, Ba[l << 1].forEach(p); - ++o < t - 1; - - ) - (u = l), - (l = n[o + 1] >= r), - Ba[u | (l << 1)].forEach(p); - for (Ba[l << 0].forEach(p); ++s < e - 1; ) { - for ( - o = -1, - l = n[s * t + t] >= r, - c = n[s * t] >= r, - Ba[(l << 1) | (c << 2)].forEach(p); - ++o < t - 1; - - ) - (u = l), - (l = n[s * t + t + o + 1] >= r), - (f = c), - (c = n[s * t + o + 1] >= r), - Ba[u | (l << 1) | (c << 2) | (f << 3)].forEach(p); - Ba[l | (c << 3)].forEach(p); - } - for ( - o = -1, c = n[s * t] >= r, Ba[c << 2].forEach(p); - ++o < t - 1; - - ) - (f = c), - (c = n[s * t + o + 1] >= r), - Ba[(c << 2) | (f << 3)].forEach(p); - function p(t) { - var e, - n, - r = [t[0][0] + o, t[0][1] + s], - u = [t[1][0] + o, t[1][1] + s], - l = a(r), - c = a(u); - (e = h[l]) - ? (n = d[c]) - ? (delete h[e.end], - delete d[n.start], - e === n - ? (e.ring.push(u), i(e.ring)) - : (d[e.start] = h[n.end] = { - start: e.start, - end: n.end, - ring: e.ring.concat(n.ring) - })) - : (delete h[e.end], - e.ring.push(u), - (h[(e.end = c)] = e)) - : (e = d[c]) - ? (n = h[l]) - ? (delete d[e.start], - delete h[n.end], - e === n - ? (e.ring.push(u), i(e.ring)) - : (d[n.start] = h[e.end] = { - start: n.start, - end: e.end, - ring: n.ring.concat(e.ring) - })) - : (delete d[e.start], - e.ring.unshift(r), - (d[(e.start = l)] = e)) - : (d[l] = h[c] = { - start: l, - end: c, - ring: [r, u] - }); - } - Ba[c << 3].forEach(p); - })(n, i, function(t) { - r(t, n, i), - (function(t) { - for ( - var e = 0, - n = t.length, - r = - t[n - 1][1] * t[0][0] - t[n - 1][0] * t[0][1]; - ++e < n; - - ) - r += - t[e - 1][1] * t[e][0] - t[e - 1][0] * t[e][1]; - return r; - })(t) > 0 - ? o.push([t]) - : s.push(t); - }), - s.forEach(function(t) { - for (var e, n = 0, r = o.length; n < r; ++n) - if (-1 !== za((e = o[n])[0], t)) - return void e.push(t); - }), - { type: 'MultiPolygon', value: i, coordinates: o } - ); - } - function a(e) { - return 2 * e[0] + e[1] * (t + 1) * 4; - } - function s(n, r, i) { - n.forEach(function(n) { - var o, - a = n[0], - s = n[1], - u = 0 | a, - l = 0 | s, - c = r[l * t + u]; - a > 0 && - a < t && - u === a && - ((o = r[l * t + u - 1]), - (n[0] = a + (i - o) / (c - o) - 0.5)), - s > 0 && - s < e && - l === s && - ((o = r[(l - 1) * t + u]), - (n[1] = s + (i - o) / (c - o) - 0.5)); - }); - } - return ( - (i.contour = o), - (i.size = function(n) { - if (!arguments.length) return [t, e]; - var r = Math.ceil(n[0]), - o = Math.ceil(n[1]); - if (!(r > 0 && o > 0)) throw new Error('invalid size'); - return (t = r), (e = o), i; - }), - (i.thresholds = function(t) { - return arguments.length - ? ((n = - 'function' == typeof t - ? t - : Array.isArray(t) - ? Na(ja.call(t)) - : Na(t)), - i) - : n; - }), - (i.smooth = function(t) { - return arguments.length ? ((r = t ? s : Va), i) : r === s; - }), - i - ); - }; - function Ha(t, e, n) { - for ( - var r = t.width, i = t.height, o = 1 + (n << 1), a = 0; - a < i; - ++a - ) - for (var s = 0, u = 0; s < r + n; ++s) - s < r && (u += t.data[s + a * r]), - s >= n && - (s >= o && (u -= t.data[s - o + a * r]), - (e.data[s - n + a * r] = - u / Math.min(s + 1, r - 1 + o - s, o))); - } - function Ua(t, e, n) { - for ( - var r = t.width, i = t.height, o = 1 + (n << 1), a = 0; - a < r; - ++a - ) - for (var s = 0, u = 0; s < i + n; ++s) - s < i && (u += t.data[a + s * r]), - s >= n && - (s >= o && (u -= t.data[a + (s - o) * r]), - (e.data[a + (s - n) * r] = - u / Math.min(s + 1, i - 1 + o - s, o))); - } - function qa(t) { - return t[0]; - } - function Wa(t) { - return t[1]; - } - function Xa() { - return 1; - } - var Ya = function() { - var t = qa, - e = Wa, - n = Xa, - r = 960, - i = 500, - o = 20, - a = 2, - s = 3 * o, - u = (r + 2 * s) >> a, - l = (i + 2 * s) >> a, - c = Na(20); - function f(r) { - var i = new Float32Array(u * l), - f = new Float32Array(u * l); - r.forEach(function(r, o, c) { - var f = (+t(r, o, c) + s) >> a, - d = (+e(r, o, c) + s) >> a, - h = +n(r, o, c); - f >= 0 && f < u && d >= 0 && d < l && (i[f + d * u] += h); - }), - Ha( - { width: u, height: l, data: i }, - { width: u, height: l, data: f }, - o >> a - ), - Ua( - { width: u, height: l, data: f }, - { width: u, height: l, data: i }, - o >> a - ), - Ha( - { width: u, height: l, data: i }, - { width: u, height: l, data: f }, - o >> a - ), - Ua( - { width: u, height: l, data: f }, - { width: u, height: l, data: i }, - o >> a - ), - Ha( - { width: u, height: l, data: i }, - { width: u, height: l, data: f }, - o >> a - ), - Ua( - { width: u, height: l, data: f }, - { width: u, height: l, data: i }, - o >> a - ); - var h = c(i); - if (!Array.isArray(h)) { - var p = j(i); - (h = C(0, p, h)), - (h = w(0, Math.floor(p / h) * h, h)).shift(); - } - return Ga() - .thresholds(h) - .size([u, l])(i) - .map(d); - } - function d(t) { - return ( - (t.value *= Math.pow(2, -2 * a)), - t.coordinates.forEach(h), - t - ); - } - function h(t) { - t.forEach(p); - } - function p(t) { - t.forEach(g); - } - function g(t) { - (t[0] = t[0] * Math.pow(2, a) - s), - (t[1] = t[1] * Math.pow(2, a) - s); - } - function v() { - return ( - (u = (r + 2 * (s = 3 * o)) >> a), - (l = (i + 2 * s) >> a), - f - ); - } - return ( - (f.x = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : Na(+e)), f) - : t; - }), - (f.y = function(t) { - return arguments.length - ? ((e = 'function' == typeof t ? t : Na(+t)), f) - : e; - }), - (f.weight = function(t) { - return arguments.length - ? ((n = 'function' == typeof t ? t : Na(+t)), f) - : n; - }), - (f.size = function(t) { - if (!arguments.length) return [r, i]; - var e = Math.ceil(t[0]), - n = Math.ceil(t[1]); - if (!(e >= 0 || e >= 0)) throw new Error('invalid size'); - return (r = e), (i = n), v(); - }), - (f.cellSize = function(t) { - if (!arguments.length) return 1 << a; - if (!((t = +t) >= 1)) - throw new Error('invalid cell size'); - return (a = Math.floor(Math.log(t) / Math.LN2)), v(); - }), - (f.thresholds = function(t) { - return arguments.length - ? ((c = - 'function' == typeof t - ? t - : Array.isArray(t) - ? Na(ja.call(t)) - : Na(t)), - f) - : c; - }), - (f.bandwidth = function(t) { - if (!arguments.length) return Math.sqrt(o * (o + 1)); - if (!((t = +t) >= 0)) - throw new Error('invalid bandwidth'); - return ( - (o = Math.round((Math.sqrt(4 * t * t + 1) - 1) / 2)), - v() - ); - }), - f - ); - }, - $a = {}, - Qa = {}; - function Ka(t) { - return new Function( - 'd', - 'return {' + - t - .map(function(t, e) { - return JSON.stringify(t) + ': d[' + e + ']'; - }) - .join(',') + - '}' - ); - } - function Za(t) { - var e = Object.create(null), - n = []; - return ( - t.forEach(function(t) { - for (var r in t) r in e || n.push((e[r] = r)); - }), - n - ); - } - function Ja(t, e) { - var n = t + '', - r = n.length; - return r < e ? new Array(e - r + 1).join(0) + n : n; - } - function ts(t) { - var e, - n = t.getUTCHours(), - r = t.getUTCMinutes(), - i = t.getUTCSeconds(), - o = t.getUTCMilliseconds(); - return isNaN(t) - ? 'Invalid Date' - : ((e = t.getUTCFullYear()) < 0 - ? '-' + Ja(-e, 6) - : e > 9999 - ? '+' + Ja(e, 6) - : Ja(e, 4)) + - '-' + - Ja(t.getUTCMonth() + 1, 2) + - '-' + - Ja(t.getUTCDate(), 2) + - (o - ? 'T' + - Ja(n, 2) + - ':' + - Ja(r, 2) + - ':' + - Ja(i, 2) + - '.' + - Ja(o, 3) + - 'Z' - : i - ? 'T' + Ja(n, 2) + ':' + Ja(r, 2) + ':' + Ja(i, 2) + 'Z' - : r || n - ? 'T' + Ja(n, 2) + ':' + Ja(r, 2) + 'Z' - : ''); - } - var es = function(t) { - var e = new RegExp('["' + t + '\n\r]'), - n = t.charCodeAt(0); - function r(t, e) { - var r, - i = [], - o = t.length, - a = 0, - s = 0, - u = o <= 0, - l = !1; - function c() { - if (u) return Qa; - if (l) return (l = !1), $a; - var e, - r, - i = a; - if (34 === t.charCodeAt(i)) { - for ( - ; - (a++ < o && 34 !== t.charCodeAt(a)) || - 34 === t.charCodeAt(++a); - - ); - return ( - (e = a) >= o - ? (u = !0) - : 10 === (r = t.charCodeAt(a++)) - ? (l = !0) - : 13 === r && - ((l = !0), 10 === t.charCodeAt(a) && ++a), - t.slice(i + 1, e - 1).replace(/""/g, '"') - ); - } - for (; a < o; ) { - if (10 === (r = t.charCodeAt((e = a++)))) l = !0; - else if (13 === r) - (l = !0), 10 === t.charCodeAt(a) && ++a; - else if (r !== n) continue; - return t.slice(i, e); - } - return (u = !0), t.slice(i, o); - } - for ( - 10 === t.charCodeAt(o - 1) && --o, - 13 === t.charCodeAt(o - 1) && --o; - (r = c()) !== Qa; - - ) { - for (var f = []; r !== $a && r !== Qa; ) - f.push(r), (r = c()); - (e && null == (f = e(f, s++))) || i.push(f); - } - return i; - } - function i(e, n) { - return e.map(function(e) { - return n - .map(function(t) { - return a(e[t]); - }) - .join(t); - }); - } - function o(e) { - return e.map(a).join(t); - } - function a(t) { - return null == t - ? '' - : t instanceof Date - ? ts(t) - : e.test((t += '')) - ? '"' + t.replace(/"/g, '""') + '"' - : t; - } - return { - parse: function(t, e) { - var n, - i, - o = r(t, function(t, r) { - if (n) return n(t, r - 1); - (i = t), - (n = e - ? (function(t, e) { - var n = Ka(t); - return function(r, i) { - return e(n(r), i, t); - }; - })(t, e) - : Ka(t)); - }); - return (o.columns = i || []), o; - }, - parseRows: r, - format: function(e, n) { - return ( - null == n && (n = Za(e)), - [n.map(a).join(t)].concat(i(e, n)).join('\n') - ); - }, - formatBody: function(t, e) { - return null == e && (e = Za(t)), i(t, e).join('\n'); - }, - formatRows: function(t) { - return t.map(o).join('\n'); - } - }; - }, - ns = es(','), - rs = ns.parse, - is = ns.parseRows, - os = ns.format, - as = ns.formatBody, - ss = ns.formatRows, - us = es('\t'), - ls = us.parse, - cs = us.parseRows, - fs = us.format, - ds = us.formatBody, - hs = us.formatRows; - function ps(t) { - for (var e in t) { - var n, - r = t[e].trim(); - if (r) - if ('true' === r) r = !0; - else if ('false' === r) r = !1; - else if ('NaN' === r) r = NaN; - else if (isNaN((n = +r))) { - if ( - !/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/.test( - r - ) - ) - continue; - r = new Date(r); - } else r = n; - else r = null; - t[e] = r; - } - return t; - } - function gs(t) { - if (!t.ok) throw new Error(t.status + ' ' + t.statusText); - return t.blob(); - } - var vs = function(t, e) { - return fetch(t, e).then(gs); - }; - function ms(t) { - if (!t.ok) throw new Error(t.status + ' ' + t.statusText); - return t.arrayBuffer(); - } - var ys = function(t, e) { - return fetch(t, e).then(ms); - }; - function bs(t) { - if (!t.ok) throw new Error(t.status + ' ' + t.statusText); - return t.text(); - } - var _s = function(t, e) { - return fetch(t, e).then(bs); - }; - function xs(t) { - return function(e, n, r) { - return ( - 2 === arguments.length && - 'function' == typeof n && - ((r = n), (n = void 0)), - _s(e, n).then(function(e) { - return t(e, r); - }) - ); - }; - } - function ws(t, e, n, r) { - 3 === arguments.length && - 'function' == typeof n && - ((r = n), (n = void 0)); - var i = es(t); - return _s(e, n).then(function(t) { - return i.parse(t, r); - }); - } - var Ss = xs(rs), - Es = xs(ls), - ks = function(t, e) { - return new Promise(function(n, r) { - var i = new Image(); - for (var o in e) i[o] = e[o]; - (i.onerror = r), - (i.onload = function() { - n(i); - }), - (i.src = t); - }); - }; - function As(t) { - if (!t.ok) throw new Error(t.status + ' ' + t.statusText); - return t.json(); - } - var Ts = function(t, e) { - return fetch(t, e).then(As); - }; - function Cs(t) { - return function(e, n) { - return _s(e, n).then(function(e) { - return new DOMParser().parseFromString(e, t); - }); - }; - } - var Os = Cs('application/xml'), - Ps = Cs('text/html'), - Ms = Cs('image/svg+xml'), - Ls = function(t, e) { - var n; - function r() { - var r, - i, - o = n.length, - a = 0, - s = 0; - for (r = 0; r < o; ++r) (a += (i = n[r]).x), (s += i.y); - for (a = a / o - t, s = s / o - e, r = 0; r < o; ++r) - ((i = n[r]).x -= a), (i.y -= s); - } - return ( - null == t && (t = 0), - null == e && (e = 0), - (r.initialize = function(t) { - n = t; - }), - (r.x = function(e) { - return arguments.length ? ((t = +e), r) : t; - }), - (r.y = function(t) { - return arguments.length ? ((e = +t), r) : e; - }), - r - ); - }, - Ds = function(t) { - return function() { - return t; - }; - }, - js = function() { - return 1e-6 * (Math.random() - 0.5); - }; - function Rs(t, e, n, r) { - if (isNaN(e) || isNaN(n)) return t; - var i, - o, - a, - s, - u, - l, - c, - f, - d, - h = t._root, - p = { data: r }, - g = t._x0, - v = t._y0, - m = t._x1, - y = t._y1; - if (!h) return (t._root = p), t; - for (; h.length; ) - if ( - ((l = e >= (o = (g + m) / 2)) ? (g = o) : (m = o), - (c = n >= (a = (v + y) / 2)) ? (v = a) : (y = a), - (i = h), - !(h = h[(f = (c << 1) | l)])) - ) - return (i[f] = p), t; - if ( - ((s = +t._x.call(null, h.data)), - (u = +t._y.call(null, h.data)), - e === s && n === u) - ) - return (p.next = h), i ? (i[f] = p) : (t._root = p), t; - do { - (i = i ? (i[f] = new Array(4)) : (t._root = new Array(4))), - (l = e >= (o = (g + m) / 2)) ? (g = o) : (m = o), - (c = n >= (a = (v + y) / 2)) ? (v = a) : (y = a); - } while ( - (f = (c << 1) | l) == (d = ((u >= a) << 1) | (s >= o)) - ); - return (i[d] = h), (i[f] = p), t; - } - var Ns = function(t, e, n, r, i) { - (this.node = t), - (this.x0 = e), - (this.y0 = n), - (this.x1 = r), - (this.y1 = i); - }; - function zs(t) { - return t[0]; - } - function Is(t) { - return t[1]; - } - function Fs(t, e, n) { - var r = new Vs( - null == e ? zs : e, - null == n ? Is : n, - NaN, - NaN, - NaN, - NaN - ); - return null == t ? r : r.addAll(t); - } - function Vs(t, e, n, r, i, o) { - (this._x = t), - (this._y = e), - (this._x0 = n), - (this._y0 = r), - (this._x1 = i), - (this._y1 = o), - (this._root = void 0); - } - function Bs(t) { - for (var e = { data: t.data }, n = e; (t = t.next); ) - n = n.next = { data: t.data }; - return e; - } - var Gs = (Fs.prototype = Vs.prototype); - function Hs(t) { - return t.x + t.vx; - } - function Us(t) { - return t.y + t.vy; - } - (Gs.copy = function() { - var t, - e, - n = new Vs( - this._x, - this._y, - this._x0, - this._y0, - this._x1, - this._y1 - ), - r = this._root; - if (!r) return n; - if (!r.length) return (n._root = Bs(r)), n; - for ( - t = [{ source: r, target: (n._root = new Array(4)) }]; - (r = t.pop()); - - ) - for (var i = 0; i < 4; ++i) - (e = r.source[i]) && - (e.length - ? t.push({ - source: e, - target: (r.target[i] = new Array(4)) - }) - : (r.target[i] = Bs(e))); - return n; - }), - (Gs.add = function(t) { - var e = +this._x.call(null, t), - n = +this._y.call(null, t); - return Rs(this.cover(e, n), e, n, t); - }), - (Gs.addAll = function(t) { - var e, - n, - r, - i, - o = t.length, - a = new Array(o), - s = new Array(o), - u = 1 / 0, - l = 1 / 0, - c = -1 / 0, - f = -1 / 0; - for (n = 0; n < o; ++n) - isNaN((r = +this._x.call(null, (e = t[n])))) || - isNaN((i = +this._y.call(null, e))) || - ((a[n] = r), - (s[n] = i), - r < u && (u = r), - r > c && (c = r), - i < l && (l = i), - i > f && (f = i)); - if (u > c || l > f) return this; - for (this.cover(u, l).cover(c, f), n = 0; n < o; ++n) - Rs(this, a[n], s[n], t[n]); - return this; - }), - (Gs.cover = function(t, e) { - if (isNaN((t = +t)) || isNaN((e = +e))) return this; - var n = this._x0, - r = this._y0, - i = this._x1, - o = this._y1; - if (isNaN(n)) - (i = (n = Math.floor(t)) + 1), - (o = (r = Math.floor(e)) + 1); - else { - for ( - var a, s, u = i - n, l = this._root; - n > t || t >= i || r > e || e >= o; - - ) - switch ( - ((s = ((e < r) << 1) | (t < n)), - ((a = new Array(4))[s] = l), - (l = a), - (u *= 2), - s) - ) { - case 0: - (i = n + u), (o = r + u); - break; - case 1: - (n = i - u), (o = r + u); - break; - case 2: - (i = n + u), (r = o - u); - break; - case 3: - (n = i - u), (r = o - u); - } - this._root && this._root.length && (this._root = l); - } - return ( - (this._x0 = n), - (this._y0 = r), - (this._x1 = i), - (this._y1 = o), - this - ); - }), - (Gs.data = function() { - var t = []; - return ( - this.visit(function(e) { - if (!e.length) - do { - t.push(e.data); - } while ((e = e.next)); - }), - t - ); - }), - (Gs.extent = function(t) { - return arguments.length - ? this.cover(+t[0][0], +t[0][1]).cover(+t[1][0], +t[1][1]) - : isNaN(this._x0) - ? void 0 - : [ - [this._x0, this._y0], - [this._x1, this._y1] - ]; - }), - (Gs.find = function(t, e, n) { - var r, - i, - o, - a, - s, - u, - l, - c = this._x0, - f = this._y0, - d = this._x1, - h = this._y1, - p = [], - g = this._root; - for ( - g && p.push(new Ns(g, c, f, d, h)), - null == n - ? (n = 1 / 0) - : ((c = t - n), - (f = e - n), - (d = t + n), - (h = e + n), - (n *= n)); - (u = p.pop()); - - ) - if ( - !( - !(g = u.node) || - (i = u.x0) > d || - (o = u.y0) > h || - (a = u.x1) < c || - (s = u.y1) < f - ) - ) - if (g.length) { - var v = (i + a) / 2, - m = (o + s) / 2; - p.push( - new Ns(g[3], v, m, a, s), - new Ns(g[2], i, m, v, s), - new Ns(g[1], v, o, a, m), - new Ns(g[0], i, o, v, m) - ), - (l = ((e >= m) << 1) | (t >= v)) && - ((u = p[p.length - 1]), - (p[p.length - 1] = p[p.length - 1 - l]), - (p[p.length - 1 - l] = u)); - } else { - var y = t - +this._x.call(null, g.data), - b = e - +this._y.call(null, g.data), - _ = y * y + b * b; - if (_ < n) { - var x = Math.sqrt((n = _)); - (c = t - x), - (f = e - x), - (d = t + x), - (h = e + x), - (r = g.data); - } - } - return r; - }), - (Gs.remove = function(t) { - if ( - isNaN((o = +this._x.call(null, t))) || - isNaN((a = +this._y.call(null, t))) - ) - return this; - var e, - n, - r, - i, - o, - a, - s, - u, - l, - c, - f, - d, - h = this._root, - p = this._x0, - g = this._y0, - v = this._x1, - m = this._y1; - if (!h) return this; - if (h.length) - for (;;) { - if ( - ((l = o >= (s = (p + v) / 2)) ? (p = s) : (v = s), - (c = a >= (u = (g + m) / 2)) ? (g = u) : (m = u), - (e = h), - !(h = h[(f = (c << 1) | l)])) - ) - return this; - if (!h.length) break; - (e[(f + 1) & 3] || e[(f + 2) & 3] || e[(f + 3) & 3]) && - ((n = e), (d = f)); - } - for (; h.data !== t; ) - if (((r = h), !(h = h.next))) return this; - return ( - (i = h.next) && delete h.next, - r - ? (i ? (r.next = i) : delete r.next, this) - : e - ? (i ? (e[f] = i) : delete e[f], - (h = e[0] || e[1] || e[2] || e[3]) && - h === (e[3] || e[2] || e[1] || e[0]) && - !h.length && - (n ? (n[d] = h) : (this._root = h)), - this) - : ((this._root = i), this) - ); - }), - (Gs.removeAll = function(t) { - for (var e = 0, n = t.length; e < n; ++e) this.remove(t[e]); - return this; - }), - (Gs.root = function() { - return this._root; - }), - (Gs.size = function() { - var t = 0; - return ( - this.visit(function(e) { - if (!e.length) - do { - ++t; - } while ((e = e.next)); - }), - t - ); - }), - (Gs.visit = function(t) { - var e, - n, - r, - i, - o, - a, - s = [], - u = this._root; - for ( - u && - s.push(new Ns(u, this._x0, this._y0, this._x1, this._y1)); - (e = s.pop()); - - ) - if ( - !t( - (u = e.node), - (r = e.x0), - (i = e.y0), - (o = e.x1), - (a = e.y1) - ) && - u.length - ) { - var l = (r + o) / 2, - c = (i + a) / 2; - (n = u[3]) && s.push(new Ns(n, l, c, o, a)), - (n = u[2]) && s.push(new Ns(n, r, c, l, a)), - (n = u[1]) && s.push(new Ns(n, l, i, o, c)), - (n = u[0]) && s.push(new Ns(n, r, i, l, c)); - } - return this; - }), - (Gs.visitAfter = function(t) { - var e, - n = [], - r = []; - for ( - this._root && - n.push( - new Ns(this._root, this._x0, this._y0, this._x1, this._y1) - ); - (e = n.pop()); - - ) { - var i = e.node; - if (i.length) { - var o, - a = e.x0, - s = e.y0, - u = e.x1, - l = e.y1, - c = (a + u) / 2, - f = (s + l) / 2; - (o = i[0]) && n.push(new Ns(o, a, s, c, f)), - (o = i[1]) && n.push(new Ns(o, c, s, u, f)), - (o = i[2]) && n.push(new Ns(o, a, f, c, l)), - (o = i[3]) && n.push(new Ns(o, c, f, u, l)); - } - r.push(e); - } - for (; (e = r.pop()); ) t(e.node, e.x0, e.y0, e.x1, e.y1); - return this; - }), - (Gs.x = function(t) { - return arguments.length ? ((this._x = t), this) : this._x; - }), - (Gs.y = function(t) { - return arguments.length ? ((this._y = t), this) : this._y; - }); - var qs = function(t) { - var e, - n, - r = 1, - i = 1; - function o() { - for (var t, o, s, u, l, c, f, d = e.length, h = 0; h < i; ++h) - for (o = Fs(e, Hs, Us).visitAfter(a), t = 0; t < d; ++t) - (s = e[t]), - (c = n[s.index]), - (f = c * c), - (u = s.x + s.vx), - (l = s.y + s.vy), - o.visit(p); - function p(t, e, n, i, o) { - var a = t.data, - d = t.r, - h = c + d; - if (!a) - return e > u + h || i < u - h || n > l + h || o < l - h; - if (a.index > s.index) { - var p = u - a.x - a.vx, - g = l - a.y - a.vy, - v = p * p + g * g; - v < h * h && - (0 === p && (v += (p = js()) * p), - 0 === g && (v += (g = js()) * g), - (v = ((h - (v = Math.sqrt(v))) / v) * r), - (s.vx += (p *= v) * (h = (d *= d) / (f + d))), - (s.vy += (g *= v) * h), - (a.vx -= p * (h = 1 - h)), - (a.vy -= g * h)); - } - } - } - function a(t) { - if (t.data) return (t.r = n[t.data.index]); - for (var e = (t.r = 0); e < 4; ++e) - t[e] && t[e].r > t.r && (t.r = t[e].r); - } - function s() { - if (e) { - var r, - i, - o = e.length; - for (n = new Array(o), r = 0; r < o; ++r) - (i = e[r]), (n[i.index] = +t(i, r, e)); - } - } - return ( - 'function' != typeof t && (t = Ds(null == t ? 1 : +t)), - (o.initialize = function(t) { - (e = t), s(); - }), - (o.iterations = function(t) { - return arguments.length ? ((i = +t), o) : i; - }), - (o.strength = function(t) { - return arguments.length ? ((r = +t), o) : r; - }), - (o.radius = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : Ds(+e)), s(), o) - : t; - }), - o - ); - }; - function Ws(t) { - return t.index; - } - function Xs(t, e) { - var n = t.get(e); - if (!n) throw new Error('missing: ' + e); - return n; - } - var Ys = function(t) { - var e, - n, - r, - i, - o, - a = Ws, - s = function(t) { - return 1 / Math.min(i[t.source.index], i[t.target.index]); - }, - u = Ds(30), - l = 1; - function c(r) { - for (var i = 0, a = t.length; i < l; ++i) - for (var s, u, c, f, d, h, p, g = 0; g < a; ++g) - (u = (s = t[g]).source), - (f = (c = s.target).x + c.vx - u.x - u.vx || js()), - (d = c.y + c.vy - u.y - u.vy || js()), - (f *= h = - (((h = Math.sqrt(f * f + d * d)) - n[g]) / h) * - r * - e[g]), - (d *= h), - (c.vx -= f * (p = o[g])), - (c.vy -= d * p), - (u.vx += f * (p = 1 - p)), - (u.vy += d * p); - } - function f() { - if (r) { - var s, - u, - l = r.length, - c = t.length, - f = xa(r, a); - for (s = 0, i = new Array(l); s < c; ++s) - ((u = t[s]).index = s), - 'object' != typeof u.source && - (u.source = Xs(f, u.source)), - 'object' != typeof u.target && - (u.target = Xs(f, u.target)), - (i[u.source.index] = (i[u.source.index] || 0) + 1), - (i[u.target.index] = (i[u.target.index] || 0) + 1); - for (s = 0, o = new Array(c); s < c; ++s) - (u = t[s]), - (o[s] = - i[u.source.index] / - (i[u.source.index] + i[u.target.index])); - (e = new Array(c)), d(), (n = new Array(c)), h(); - } - } - function d() { - if (r) - for (var n = 0, i = t.length; n < i; ++n) - e[n] = +s(t[n], n, t); - } - function h() { - if (r) - for (var e = 0, i = t.length; e < i; ++e) - n[e] = +u(t[e], e, t); - } - return ( - null == t && (t = []), - (c.initialize = function(t) { - (r = t), f(); - }), - (c.links = function(e) { - return arguments.length ? ((t = e), f(), c) : t; - }), - (c.id = function(t) { - return arguments.length ? ((a = t), c) : a; - }), - (c.iterations = function(t) { - return arguments.length ? ((l = +t), c) : l; - }), - (c.strength = function(t) { - return arguments.length - ? ((s = 'function' == typeof t ? t : Ds(+t)), d(), c) - : s; - }), - (c.distance = function(t) { - return arguments.length - ? ((u = 'function' == typeof t ? t : Ds(+t)), h(), c) - : u; - }), - c - ); - }; - function $s(t) { - return t.x; - } - function Qs(t) { - return t.y; - } - var Ks = Math.PI * (3 - Math.sqrt(5)), - Zs = function(t) { - var e, - n = 1, - r = 0.001, - i = 1 - Math.pow(r, 1 / 300), - o = 0, - a = 0.6, - s = xa(), - u = Qr(c), - l = ct('tick', 'end'); - function c() { - f(), - l.call('tick', e), - n < r && (u.stop(), l.call('end', e)); - } - function f(r) { - var u, - l, - c = t.length; - void 0 === r && (r = 1); - for (var f = 0; f < r; ++f) - for ( - n += (o - n) * i, - s.each(function(t) { - t(n); - }), - u = 0; - u < c; - ++u - ) - null == (l = t[u]).fx - ? (l.x += l.vx *= a) - : ((l.x = l.fx), (l.vx = 0)), - null == l.fy - ? (l.y += l.vy *= a) - : ((l.y = l.fy), (l.vy = 0)); - return e; - } - function d() { - for (var e, n = 0, r = t.length; n < r; ++n) { - if ( - (((e = t[n]).index = n), - null != e.fx && (e.x = e.fx), - null != e.fy && (e.y = e.fy), - isNaN(e.x) || isNaN(e.y)) - ) { - var i = 10 * Math.sqrt(n), - o = n * Ks; - (e.x = i * Math.cos(o)), (e.y = i * Math.sin(o)); - } - (isNaN(e.vx) || isNaN(e.vy)) && (e.vx = e.vy = 0); - } - } - function h(e) { - return e.initialize && e.initialize(t), e; - } - return ( - null == t && (t = []), - d(), - (e = { - tick: f, - restart: function() { - return u.restart(c), e; - }, - stop: function() { - return u.stop(), e; - }, - nodes: function(n) { - return arguments.length - ? ((t = n), d(), s.each(h), e) - : t; - }, - alpha: function(t) { - return arguments.length ? ((n = +t), e) : n; - }, - alphaMin: function(t) { - return arguments.length ? ((r = +t), e) : r; - }, - alphaDecay: function(t) { - return arguments.length ? ((i = +t), e) : +i; - }, - alphaTarget: function(t) { - return arguments.length ? ((o = +t), e) : o; - }, - velocityDecay: function(t) { - return arguments.length ? ((a = 1 - t), e) : 1 - a; - }, - force: function(t, n) { - return arguments.length > 1 - ? (null == n ? s.remove(t) : s.set(t, h(n)), e) - : s.get(t); - }, - find: function(e, n, r) { - var i, - o, - a, - s, - u, - l = 0, - c = t.length; - for ( - null == r ? (r = 1 / 0) : (r *= r), l = 0; - l < c; - ++l - ) - (a = (i = e - (s = t[l]).x) * i + (o = n - s.y) * o) < - r && ((u = s), (r = a)); - return u; - }, - on: function(t, n) { - return arguments.length > 1 ? (l.on(t, n), e) : l.on(t); - } - }) - ); - }, - Js = function() { - var t, - e, - n, - r, - i = Ds(-30), - o = 1, - a = 1 / 0, - s = 0.81; - function u(r) { - var i, - o = t.length, - a = Fs(t, $s, Qs).visitAfter(c); - for (n = r, i = 0; i < o; ++i) (e = t[i]), a.visit(f); - } - function l() { - if (t) { - var e, - n, - o = t.length; - for (r = new Array(o), e = 0; e < o; ++e) - (n = t[e]), (r[n.index] = +i(n, e, t)); - } - } - function c(t) { - var e, - n, - i, - o, - a, - s = 0, - u = 0; - if (t.length) { - for (i = o = a = 0; a < 4; ++a) - (e = t[a]) && - (n = Math.abs(e.value)) && - ((s += e.value), - (u += n), - (i += n * e.x), - (o += n * e.y)); - (t.x = i / u), (t.y = o / u); - } else { - ((e = t).x = e.data.x), (e.y = e.data.y); - do { - s += r[e.data.index]; - } while ((e = e.next)); - } - t.value = s; - } - function f(t, i, u, l) { - if (!t.value) return !0; - var c = t.x - e.x, - f = t.y - e.y, - d = l - i, - h = c * c + f * f; - if ((d * d) / s < h) - return ( - h < a && - (0 === c && (h += (c = js()) * c), - 0 === f && (h += (f = js()) * f), - h < o && (h = Math.sqrt(o * h)), - (e.vx += (c * t.value * n) / h), - (e.vy += (f * t.value * n) / h)), - !0 - ); - if (!(t.length || h >= a)) { - (t.data !== e || t.next) && - (0 === c && (h += (c = js()) * c), - 0 === f && (h += (f = js()) * f), - h < o && (h = Math.sqrt(o * h))); - do { - t.data !== e && - ((d = (r[t.data.index] * n) / h), - (e.vx += c * d), - (e.vy += f * d)); - } while ((t = t.next)); - } - } - return ( - (u.initialize = function(e) { - (t = e), l(); - }), - (u.strength = function(t) { - return arguments.length - ? ((i = 'function' == typeof t ? t : Ds(+t)), l(), u) - : i; - }), - (u.distanceMin = function(t) { - return arguments.length ? ((o = t * t), u) : Math.sqrt(o); - }), - (u.distanceMax = function(t) { - return arguments.length ? ((a = t * t), u) : Math.sqrt(a); - }), - (u.theta = function(t) { - return arguments.length ? ((s = t * t), u) : Math.sqrt(s); - }), - u - ); - }, - tu = function(t, e, n) { - var r, - i, - o, - a = Ds(0.1); - function s(t) { - for (var a = 0, s = r.length; a < s; ++a) { - var u = r[a], - l = u.x - e || 1e-6, - c = u.y - n || 1e-6, - f = Math.sqrt(l * l + c * c), - d = ((o[a] - f) * i[a] * t) / f; - (u.vx += l * d), (u.vy += c * d); - } - } - function u() { - if (r) { - var e, - n = r.length; - for ( - i = new Array(n), o = new Array(n), e = 0; - e < n; - ++e - ) - (o[e] = +t(r[e], e, r)), - (i[e] = isNaN(o[e]) ? 0 : +a(r[e], e, r)); - } - } - return ( - 'function' != typeof t && (t = Ds(+t)), - null == e && (e = 0), - null == n && (n = 0), - (s.initialize = function(t) { - (r = t), u(); - }), - (s.strength = function(t) { - return arguments.length - ? ((a = 'function' == typeof t ? t : Ds(+t)), u(), s) - : a; - }), - (s.radius = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : Ds(+e)), u(), s) - : t; - }), - (s.x = function(t) { - return arguments.length ? ((e = +t), s) : e; - }), - (s.y = function(t) { - return arguments.length ? ((n = +t), s) : n; - }), - s - ); - }, - eu = function(t) { - var e, - n, - r, - i = Ds(0.1); - function o(t) { - for (var i, o = 0, a = e.length; o < a; ++o) - (i = e[o]).vx += (r[o] - i.x) * n[o] * t; - } - function a() { - if (e) { - var o, - a = e.length; - for ( - n = new Array(a), r = new Array(a), o = 0; - o < a; - ++o - ) - n[o] = isNaN((r[o] = +t(e[o], o, e))) - ? 0 - : +i(e[o], o, e); - } - } - return ( - 'function' != typeof t && (t = Ds(null == t ? 0 : +t)), - (o.initialize = function(t) { - (e = t), a(); - }), - (o.strength = function(t) { - return arguments.length - ? ((i = 'function' == typeof t ? t : Ds(+t)), a(), o) - : i; - }), - (o.x = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : Ds(+e)), a(), o) - : t; - }), - o - ); - }, - nu = function(t) { - var e, - n, - r, - i = Ds(0.1); - function o(t) { - for (var i, o = 0, a = e.length; o < a; ++o) - (i = e[o]).vy += (r[o] - i.y) * n[o] * t; - } - function a() { - if (e) { - var o, - a = e.length; - for ( - n = new Array(a), r = new Array(a), o = 0; - o < a; - ++o - ) - n[o] = isNaN((r[o] = +t(e[o], o, e))) - ? 0 - : +i(e[o], o, e); - } - } - return ( - 'function' != typeof t && (t = Ds(null == t ? 0 : +t)), - (o.initialize = function(t) { - (e = t), a(); - }), - (o.strength = function(t) { - return arguments.length - ? ((i = 'function' == typeof t ? t : Ds(+t)), a(), o) - : i; - }), - (o.y = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : Ds(+e)), a(), o) - : t; - }), - o - ); - }, - ru = function(t, e) { - if ( - (n = (t = e - ? t.toExponential(e - 1) - : t.toExponential()).indexOf('e')) < 0 - ) - return null; - var n, - r = t.slice(0, n); - return [ - r.length > 1 ? r[0] + r.slice(2) : r, - +t.slice(n + 1) - ]; - }, - iu = function(t) { - return (t = ru(Math.abs(t))) ? t[1] : NaN; - }, - ou = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i; - function au(t) { - if (!(e = ou.exec(t))) throw new Error('invalid format: ' + t); - var e; - return new su({ - fill: e[1], - align: e[2], - sign: e[3], - symbol: e[4], - zero: e[5], - width: e[6], - comma: e[7], - precision: e[8] && e[8].slice(1), - trim: e[9], - type: e[10] - }); - } - function su(t) { - (this.fill = void 0 === t.fill ? ' ' : t.fill + ''), - (this.align = void 0 === t.align ? '>' : t.align + ''), - (this.sign = void 0 === t.sign ? '-' : t.sign + ''), - (this.symbol = void 0 === t.symbol ? '' : t.symbol + ''), - (this.zero = !!t.zero), - (this.width = void 0 === t.width ? void 0 : +t.width), - (this.comma = !!t.comma), - (this.precision = - void 0 === t.precision ? void 0 : +t.precision), - (this.trim = !!t.trim), - (this.type = void 0 === t.type ? '' : t.type + ''); - } - (au.prototype = su.prototype), - (su.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 uu, - lu, - cu, - fu, - du = function(t, e) { - var n = ru(t, e); - if (!n) return t + ''; - 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'); - }, - hu = { - '%': function(t, e) { - return (100 * t).toFixed(e); - }, - b: function(t) { - return Math.round(t).toString(2); - }, - c: function(t) { - return t + ''; - }, - d: function(t) { - return Math.round(t).toString(10); - }, - e: function(t, e) { - return t.toExponential(e); - }, - f: function(t, e) { - return t.toFixed(e); - }, - g: function(t, e) { - return t.toPrecision(e); - }, - o: function(t) { - return Math.round(t).toString(8); - }, - p: function(t, e) { - return du(100 * t, e); - }, - r: du, - s: function(t, e) { - var n = ru(t, e); - if (!n) return t + ''; - var r = n[0], - i = n[1], - o = - i - - (uu = - 3 * Math.max(-8, Math.min(8, Math.floor(i / 3)))) + - 1, - a = r.length; - return o === a - ? r - : o > a - ? r + new Array(o - a + 1).join('0') - : o > 0 - ? r.slice(0, o) + '.' + r.slice(o) - : '0.' + - new Array(1 - o).join('0') + - ru(t, Math.max(0, e + o - 1))[0]; - }, - X: function(t) { - return Math.round(t) - .toString(16) - .toUpperCase(); - }, - x: function(t) { - return Math.round(t).toString(16); - } - }, - pu = function(t) { - return t; - }, - gu = Array.prototype.map, - vu = [ - 'y', - 'z', - 'a', - 'f', - 'p', - 'n', - 'µ', - 'm', - '', - 'k', - 'M', - 'G', - 'T', - 'P', - 'E', - 'Z', - 'Y' - ], - mu = function(t) { - var e, - n, - r = - void 0 === t.grouping || void 0 === t.thousands - ? pu - : ((e = gu.call(t.grouping, Number)), - (n = t.thousands + ''), - function(t, r) { - for ( - var i = t.length, o = [], a = 0, s = e[0], u = 0; - i > 0 && - s > 0 && - (u + s + 1 > r && (s = Math.max(1, r - u)), - o.push(t.substring((i -= s), i + s)), - !((u += s + 1) > r)); - - ) - s = e[(a = (a + 1) % e.length)]; - return o.reverse().join(n); - }), - i = void 0 === t.currency ? '' : t.currency[0] + '', - o = void 0 === t.currency ? '' : t.currency[1] + '', - a = void 0 === t.decimal ? '.' : t.decimal + '', - s = - void 0 === t.numerals - ? pu - : (function(t) { - return function(e) { - return e.replace(/[0-9]/g, function(e) { - return t[+e]; - }); - }; - })(gu.call(t.numerals, String)), - u = void 0 === t.percent ? '%' : t.percent + '', - l = void 0 === t.minus ? '-' : t.minus + '', - c = void 0 === t.nan ? 'NaN' : t.nan + ''; - function f(t) { - var e = (t = au(t)).fill, - n = t.align, - f = t.sign, - d = t.symbol, - h = t.zero, - p = t.width, - g = t.comma, - v = t.precision, - m = t.trim, - y = t.type; - 'n' === y - ? ((g = !0), (y = 'g')) - : hu[y] || - (void 0 === v && (v = 12), (m = !0), (y = 'g')), - (h || ('0' === e && '=' === n)) && - ((h = !0), (e = '0'), (n = '=')); - var b = - '$' === d - ? i - : '#' === d && /[boxX]/.test(y) - ? '0' + y.toLowerCase() - : '', - _ = '$' === d ? o : /[%p]/.test(y) ? u : '', - x = hu[y], - w = /[defgprs%]/.test(y); - function S(t) { - var i, - o, - u, - d = b, - S = _; - if ('c' === y) (S = x(t) + S), (t = ''); - else { - var E = (t = +t) < 0; - if ( - ((t = isNaN(t) ? c : x(Math.abs(t), v)), - m && - (t = (function(t) { - t: for ( - var e, n = t.length, r = 1, i = -1; - r < n; - ++r - ) - switch (t[r]) { - case '.': - i = e = r; - break; - case '0': - 0 === i && (i = r), (e = r); - break; - default: - if (i > 0) { - if (!+t[r]) break t; - i = 0; - } - } - return i > 0 ? t.slice(0, i) + t.slice(e + 1) : t; - })(t)), - E && 0 == +t && (E = !1), - (d = - (E - ? '(' === f - ? f - : l - : '-' === f || '(' === f - ? '' - : f) + d), - (S = - ('s' === y ? vu[8 + uu / 3] : '') + - S + - (E && '(' === f ? ')' : '')), - w) - ) - for (i = -1, o = t.length; ++i < o; ) - if (48 > (u = t.charCodeAt(i)) || u > 57) { - (S = - (46 === u ? a + t.slice(i + 1) : t.slice(i)) + - S), - (t = t.slice(0, i)); - break; - } - } - g && !h && (t = r(t, 1 / 0)); - var k = d.length + t.length + S.length, - A = k < p ? new Array(p - k + 1).join(e) : ''; - switch ( - (g && - h && - ((t = r(A + t, A.length ? p - S.length : 1 / 0)), - (A = '')), - n) - ) { - case '<': - t = d + t + S + A; - break; - case '=': - t = d + A + t + S; - break; - case '^': - t = - A.slice(0, (k = A.length >> 1)) + - d + - t + - S + - A.slice(k); - break; - default: - t = A + d + t + S; - } - return s(t); - } - return ( - (v = - void 0 === v - ? 6 - : /[gprs]/.test(y) - ? Math.max(1, Math.min(21, v)) - : Math.max(0, Math.min(20, v))), - (S.toString = function() { - return t + ''; - }), - S - ); - } - return { - format: f, - formatPrefix: function(t, e) { - var n = f((((t = au(t)).type = 'f'), t)), - r = - 3 * Math.max(-8, Math.min(8, Math.floor(iu(e) / 3))), - i = Math.pow(10, -r), - o = vu[8 + r / 3]; - return function(t) { - return n(i * t) + o; - }; - } - }; - }; - function yu(t) { - return ( - (lu = mu(t)), (cu = lu.format), (fu = lu.formatPrefix), lu - ); - } - yu({ - decimal: '.', - thousands: ',', - grouping: [3], - currency: ['$', ''], - minus: '-' - }); - var bu = function(t) { - return Math.max(0, -iu(Math.abs(t))); - }, - _u = function(t, e) { - return Math.max( - 0, - 3 * Math.max(-8, Math.min(8, Math.floor(iu(e) / 3))) - - iu(Math.abs(t)) - ); - }, - xu = function(t, e) { - return ( - (t = Math.abs(t)), - (e = Math.abs(e) - t), - Math.max(0, iu(e) - iu(t)) + 1 - ); - }, - wu = function() { - return new Su(); - }; - function Su() { - this.reset(); - } - Su.prototype = { - constructor: Su, - reset: function() { - this.s = this.t = 0; - }, - add: function(t) { - ku(Eu, t, this.t), - ku(this, Eu.s, this.s), - this.s ? (this.t += Eu.t) : (this.s = Eu.t); - }, - valueOf: function() { - return this.s; - } - }; - var Eu = new Su(); - function ku(t, e, n) { - var r = (t.s = e + n), - i = r - e, - o = r - i; - t.t = e - o + (n - i); - } - var Au = Math.PI, - Tu = Au / 2, - Cu = Au / 4, - Ou = 2 * Au, - Pu = 180 / Au, - Mu = Au / 180, - Lu = Math.abs, - Du = Math.atan, - ju = Math.atan2, - Ru = Math.cos, - Nu = Math.ceil, - zu = Math.exp, - Iu = (Math.floor, Math.log), - Fu = Math.pow, - Vu = Math.sin, - Bu = - Math.sign || - function(t) { - return t > 0 ? 1 : t < 0 ? -1 : 0; - }, - Gu = Math.sqrt, - Hu = Math.tan; - function Uu(t) { - return t > 1 ? 0 : t < -1 ? Au : Math.acos(t); - } - function qu(t) { - return t > 1 ? Tu : t < -1 ? -Tu : Math.asin(t); - } - function Wu(t) { - return (t = Vu(t / 2)) * t; - } - function Xu() {} - function Yu(t, e) { - t && Qu.hasOwnProperty(t.type) && Qu[t.type](t, e); - } - var $u = { - Feature: function(t, e) { - Yu(t.geometry, e); - }, - FeatureCollection: function(t, e) { - for (var n = t.features, r = -1, i = n.length; ++r < i; ) - Yu(n[r].geometry, e); - } - }, - Qu = { - Sphere: function(t, e) { - e.sphere(); - }, - Point: function(t, e) { - (t = t.coordinates), e.point(t[0], t[1], t[2]); - }, - MultiPoint: function(t, e) { - for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) - (t = n[r]), e.point(t[0], t[1], t[2]); - }, - LineString: function(t, e) { - Ku(t.coordinates, e, 0); - }, - MultiLineString: function(t, e) { - for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) - Ku(n[r], e, 0); - }, - Polygon: function(t, e) { - Zu(t.coordinates, e); - }, - MultiPolygon: function(t, e) { - for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) - Zu(n[r], e); - }, - GeometryCollection: function(t, e) { - for (var n = t.geometries, r = -1, i = n.length; ++r < i; ) - Yu(n[r], e); - } - }; - function Ku(t, e, n) { - var r, - i = -1, - o = t.length - n; - for (e.lineStart(); ++i < o; ) - (r = t[i]), e.point(r[0], r[1], r[2]); - e.lineEnd(); - } - function Zu(t, e) { - var n = -1, - r = t.length; - for (e.polygonStart(); ++n < r; ) Ku(t[n], e, 1); - e.polygonEnd(); - } - var Ju, - tl, - el, - nl, - rl, - il = function(t, e) { - t && $u.hasOwnProperty(t.type) ? $u[t.type](t, e) : Yu(t, e); - }, - ol = wu(), - al = wu(), - sl = { - point: Xu, - lineStart: Xu, - lineEnd: Xu, - polygonStart: function() { - ol.reset(), (sl.lineStart = ul), (sl.lineEnd = ll); - }, - polygonEnd: function() { - var t = +ol; - al.add(t < 0 ? Ou + t : t), - (this.lineStart = this.lineEnd = this.point = Xu); - }, - sphere: function() { - al.add(Ou); - } - }; - function ul() { - sl.point = cl; - } - function ll() { - fl(Ju, tl); - } - function cl(t, e) { - (sl.point = fl), - (Ju = t), - (tl = e), - (el = t *= Mu), - (nl = Ru((e = (e *= Mu) / 2 + Cu))), - (rl = Vu(e)); - } - function fl(t, e) { - var n = (t *= Mu) - el, - r = n >= 0 ? 1 : -1, - i = r * n, - o = Ru((e = (e *= Mu) / 2 + Cu)), - a = Vu(e), - s = rl * a, - u = nl * o + s * Ru(i), - l = s * r * Vu(i); - ol.add(ju(l, u)), (el = t), (nl = o), (rl = a); - } - var dl = function(t) { - return al.reset(), il(t, sl), 2 * al; - }; - function hl(t) { - return [ju(t[1], t[0]), qu(t[2])]; - } - function pl(t) { - var e = t[0], - n = t[1], - r = Ru(n); - return [r * Ru(e), r * Vu(e), Vu(n)]; - } - function gl(t, e) { - return t[0] * e[0] + t[1] * e[1] + t[2] * e[2]; - } - function vl(t, e) { - return [ - t[1] * e[2] - t[2] * e[1], - t[2] * e[0] - t[0] * e[2], - t[0] * e[1] - t[1] * e[0] - ]; - } - function ml(t, e) { - (t[0] += e[0]), (t[1] += e[1]), (t[2] += e[2]); - } - function yl(t, e) { - return [t[0] * e, t[1] * e, t[2] * e]; - } - function bl(t) { - var e = Gu(t[0] * t[0] + t[1] * t[1] + t[2] * t[2]); - (t[0] /= e), (t[1] /= e), (t[2] /= e); - } - var _l, - xl, - wl, - Sl, - El, - kl, - Al, - Tl, - Cl, - Ol, - Pl = wu(), - Ml = { - point: Ll, - lineStart: jl, - lineEnd: Rl, - polygonStart: function() { - (Ml.point = Nl), - (Ml.lineStart = zl), - (Ml.lineEnd = Il), - Pl.reset(), - sl.polygonStart(); - }, - polygonEnd: function() { - sl.polygonEnd(), - (Ml.point = Ll), - (Ml.lineStart = jl), - (Ml.lineEnd = Rl), - ol < 0 - ? ((_l = -(wl = 180)), (xl = -(Sl = 90))) - : Pl > 1e-6 - ? (Sl = 90) - : Pl < -1e-6 && (xl = -90), - (Ol[0] = _l), - (Ol[1] = wl); - }, - sphere: function() { - (_l = -(wl = 180)), (xl = -(Sl = 90)); - } - }; - function Ll(t, e) { - Cl.push((Ol = [(_l = t), (wl = t)])), - e < xl && (xl = e), - e > Sl && (Sl = e); - } - function Dl(t, e) { - var n = pl([t * Mu, e * Mu]); - if (Tl) { - var r = vl(Tl, n), - i = vl([r[1], -r[0], 0], r); - bl(i), (i = hl(i)); - var o, - a = t - El, - s = a > 0 ? 1 : -1, - u = i[0] * Pu * s, - l = Lu(a) > 180; - l ^ (s * El < u && u < s * t) - ? (o = i[1] * Pu) > Sl && (Sl = o) - : l ^ (s * El < (u = ((u + 360) % 360) - 180) && u < s * t) - ? (o = -i[1] * Pu) < xl && (xl = o) - : (e < xl && (xl = e), e > Sl && (Sl = e)), - l - ? t < El - ? Fl(_l, t) > Fl(_l, wl) && (wl = t) - : Fl(t, wl) > Fl(_l, wl) && (_l = t) - : wl >= _l - ? (t < _l && (_l = t), t > wl && (wl = t)) - : t > El - ? Fl(_l, t) > Fl(_l, wl) && (wl = t) - : Fl(t, wl) > Fl(_l, wl) && (_l = t); - } else Cl.push((Ol = [(_l = t), (wl = t)])); - e < xl && (xl = e), e > Sl && (Sl = e), (Tl = n), (El = t); - } - function jl() { - Ml.point = Dl; - } - function Rl() { - (Ol[0] = _l), (Ol[1] = wl), (Ml.point = Ll), (Tl = null); - } - function Nl(t, e) { - if (Tl) { - var n = t - El; - Pl.add(Lu(n) > 180 ? n + (n > 0 ? 360 : -360) : n); - } else (kl = t), (Al = e); - sl.point(t, e), Dl(t, e); - } - function zl() { - sl.lineStart(); - } - function Il() { - Nl(kl, Al), - sl.lineEnd(), - Lu(Pl) > 1e-6 && (_l = -(wl = 180)), - (Ol[0] = _l), - (Ol[1] = wl), - (Tl = null); - } - function Fl(t, e) { - return (e -= t) < 0 ? e + 360 : e; - } - function Vl(t, e) { - return t[0] - e[0]; - } - function Bl(t, e) { - return t[0] <= t[1] - ? t[0] <= e && e <= t[1] - : e < t[0] || t[1] < e; - } - var Gl, - Hl, - Ul, - ql, - Wl, - Xl, - Yl, - $l, - Ql, - Kl, - Zl, - Jl, - tc, - ec, - nc, - rc, - ic = function(t) { - var e, n, r, i, o, a, s; - if ( - ((Sl = wl = -(_l = xl = 1 / 0)), - (Cl = []), - il(t, Ml), - (n = Cl.length)) - ) { - for (Cl.sort(Vl), e = 1, o = [(r = Cl[0])]; e < n; ++e) - Bl(r, (i = Cl[e])[0]) || Bl(r, i[1]) - ? (Fl(r[0], i[1]) > Fl(r[0], r[1]) && (r[1] = i[1]), - Fl(i[0], r[1]) > Fl(r[0], r[1]) && (r[0] = i[0])) - : o.push((r = i)); - for ( - a = -1 / 0, e = 0, r = o[(n = o.length - 1)]; - e <= n; - r = i, ++e - ) - (i = o[e]), - (s = Fl(r[1], i[0])) > a && - ((a = s), (_l = i[0]), (wl = r[1])); - } - return ( - (Cl = Ol = null), - _l === 1 / 0 || xl === 1 / 0 - ? [ - [NaN, NaN], - [NaN, NaN] - ] - : [ - [_l, xl], - [wl, Sl] - ] - ); - }, - oc = { - sphere: Xu, - point: ac, - lineStart: uc, - lineEnd: fc, - polygonStart: function() { - (oc.lineStart = dc), (oc.lineEnd = hc); - }, - polygonEnd: function() { - (oc.lineStart = uc), (oc.lineEnd = fc); - } - }; - function ac(t, e) { - t *= Mu; - var n = Ru((e *= Mu)); - sc(n * Ru(t), n * Vu(t), Vu(e)); - } - function sc(t, e, n) { - ++Gl, - (Ul += (t - Ul) / Gl), - (ql += (e - ql) / Gl), - (Wl += (n - Wl) / Gl); - } - function uc() { - oc.point = lc; - } - function lc(t, e) { - t *= Mu; - var n = Ru((e *= Mu)); - (ec = n * Ru(t)), - (nc = n * Vu(t)), - (rc = Vu(e)), - (oc.point = cc), - sc(ec, nc, rc); - } - function cc(t, e) { - t *= Mu; - var n = Ru((e *= Mu)), - r = n * Ru(t), - i = n * Vu(t), - o = Vu(e), - a = ju( - Gu( - (a = nc * o - rc * i) * a + - (a = rc * r - ec * o) * a + - (a = ec * i - nc * r) * a - ), - ec * r + nc * i + rc * o - ); - (Hl += a), - (Xl += a * (ec + (ec = r))), - (Yl += a * (nc + (nc = i))), - ($l += a * (rc + (rc = o))), - sc(ec, nc, rc); - } - function fc() { - oc.point = ac; - } - function dc() { - oc.point = pc; - } - function hc() { - gc(Jl, tc), (oc.point = ac); - } - function pc(t, e) { - (Jl = t), (tc = e), (t *= Mu), (e *= Mu), (oc.point = gc); - var n = Ru(e); - (ec = n * Ru(t)), - (nc = n * Vu(t)), - (rc = Vu(e)), - sc(ec, nc, rc); - } - function gc(t, e) { - t *= Mu; - var n = Ru((e *= Mu)), - r = n * Ru(t), - i = n * Vu(t), - o = Vu(e), - a = nc * o - rc * i, - s = rc * r - ec * o, - u = ec * i - nc * r, - l = Gu(a * a + s * s + u * u), - c = qu(l), - f = l && -c / l; - (Ql += f * a), - (Kl += f * s), - (Zl += f * u), - (Hl += c), - (Xl += c * (ec + (ec = r))), - (Yl += c * (nc + (nc = i))), - ($l += c * (rc + (rc = o))), - sc(ec, nc, rc); - } - var vc = function(t) { - (Gl = Hl = Ul = ql = Wl = Xl = Yl = $l = Ql = Kl = Zl = 0), - il(t, oc); - var e = Ql, - n = Kl, - r = Zl, - i = e * e + n * n + r * r; - return i < 1e-12 && - ((e = Xl), - (n = Yl), - (r = $l), - Hl < 1e-6 && ((e = Ul), (n = ql), (r = Wl)), - (i = e * e + n * n + r * r) < 1e-12) - ? [NaN, NaN] - : [ju(n, e) * Pu, qu(r / Gu(i)) * Pu]; - }, - mc = function(t) { - return function() { - return t; - }; - }, - yc = function(t, e) { - function n(n, r) { - return (n = t(n, r)), e(n[0], n[1]); - } - return ( - t.invert && - e.invert && - (n.invert = function(n, r) { - return (n = e.invert(n, r)) && t.invert(n[0], n[1]); - }), - n - ); - }; - function bc(t, e) { - return [Lu(t) > Au ? t + Math.round(-t / Ou) * Ou : t, e]; - } - function _c(t, e, n) { - return (t %= Ou) - ? e || n - ? yc(wc(t), Sc(e, n)) - : wc(t) - : e || n - ? Sc(e, n) - : bc; - } - function xc(t) { - return function(e, n) { - return [(e += t) > Au ? e - Ou : e < -Au ? e + Ou : e, n]; - }; - } - function wc(t) { - var e = xc(t); - return (e.invert = xc(-t)), e; - } - function Sc(t, e) { - var n = Ru(t), - r = Vu(t), - i = Ru(e), - o = Vu(e); - function a(t, e) { - var a = Ru(e), - s = Ru(t) * a, - u = Vu(t) * a, - l = Vu(e), - c = l * n + s * r; - return [ju(u * i - c * o, s * n - l * r), qu(c * i + u * o)]; - } - return ( - (a.invert = function(t, e) { - var a = Ru(e), - s = Ru(t) * a, - u = Vu(t) * a, - l = Vu(e), - c = l * i - u * o; - return [ - ju(u * i + l * o, s * n + c * r), - qu(c * n - s * r) - ]; - }), - a - ); - } - bc.invert = bc; - var Ec = function(t) { - function e(e) { - return ( - ((e = t(e[0] * Mu, e[1] * Mu))[0] *= Pu), (e[1] *= Pu), e - ); - } - return ( - (t = _c(t[0] * Mu, t[1] * Mu, t.length > 2 ? t[2] * Mu : 0)), - (e.invert = function(e) { - return ( - ((e = t.invert(e[0] * Mu, e[1] * Mu))[0] *= Pu), - (e[1] *= Pu), - e - ); - }), - e - ); - }; - function kc(t, e, n, r, i, o) { - if (n) { - var a = Ru(e), - s = Vu(e), - u = r * n; - null == i - ? ((i = e + r * Ou), (o = e - u / 2)) - : ((i = Ac(a, i)), - (o = Ac(a, o)), - (r > 0 ? i < o : i > o) && (i += r * Ou)); - for (var l, c = i; r > 0 ? c > o : c < o; c -= u) - (l = hl([a, -s * Ru(c), -s * Vu(c)])), t.point(l[0], l[1]); - } - } - function Ac(t, e) { - ((e = pl(e))[0] -= t), bl(e); - var n = Uu(-e[1]); - return ((-e[2] < 0 ? -n : n) + Ou - 1e-6) % Ou; - } - var Tc = function() { - var t, - e, - n = mc([0, 0]), - r = mc(90), - i = mc(6), - o = { - point: function(n, r) { - t.push((n = e(n, r))), (n[0] *= Pu), (n[1] *= Pu); - } - }; - function a() { - var a = n.apply(this, arguments), - s = r.apply(this, arguments) * Mu, - u = i.apply(this, arguments) * Mu; - return ( - (t = []), - (e = _c(-a[0] * Mu, -a[1] * Mu, 0).invert), - kc(o, s, u, 1), - (a = { type: 'Polygon', coordinates: [t] }), - (t = e = null), - a - ); - } - return ( - (a.center = function(t) { - return arguments.length - ? ((n = - 'function' == typeof t ? t : mc([+t[0], +t[1]])), - a) - : n; - }), - (a.radius = function(t) { - return arguments.length - ? ((r = 'function' == typeof t ? t : mc(+t)), a) - : r; - }), - (a.precision = function(t) { - return arguments.length - ? ((i = 'function' == typeof t ? t : mc(+t)), a) - : i; - }), - a - ); - }, - Cc = function() { - var t, - e = []; - return { - point: function(e, n) { - t.push([e, n]); - }, - lineStart: function() { - e.push((t = [])); - }, - lineEnd: Xu, - rejoin: function() { - e.length > 1 && e.push(e.pop().concat(e.shift())); - }, - result: function() { - var n = e; - return (e = []), (t = null), n; - } - }; - }, - Oc = function(t, e) { - return Lu(t[0] - e[0]) < 1e-6 && Lu(t[1] - e[1]) < 1e-6; - }; - function Pc(t, e, n, r) { - (this.x = t), - (this.z = e), - (this.o = n), - (this.e = r), - (this.v = !1), - (this.n = this.p = null); - } - var Mc = function(t, e, n, r, i) { - var o, - a, - s = [], - u = []; - if ( - (t.forEach(function(t) { - if (!((e = t.length - 1) <= 0)) { - var e, - n, - r = t[0], - a = t[e]; - if (Oc(r, a)) { - for (i.lineStart(), o = 0; o < e; ++o) - i.point((r = t[o])[0], r[1]); - i.lineEnd(); - } else - s.push((n = new Pc(r, t, null, !0))), - u.push((n.o = new Pc(r, null, n, !1))), - s.push((n = new Pc(a, t, null, !1))), - u.push((n.o = new Pc(a, null, n, !0))); - } - }), - s.length) - ) { - for (u.sort(e), Lc(s), Lc(u), o = 0, a = u.length; o < a; ++o) - u[o].e = n = !n; - for (var l, c, f = s[0]; ; ) { - for (var d = f, h = !0; d.v; ) if ((d = d.n) === f) return; - (l = d.z), i.lineStart(); - do { - if (((d.v = d.o.v = !0), d.e)) { - if (h) - for (o = 0, a = l.length; o < a; ++o) - i.point((c = l[o])[0], c[1]); - else r(d.x, d.n.x, 1, i); - d = d.n; - } else { - if (h) - for (l = d.p.z, o = l.length - 1; o >= 0; --o) - i.point((c = l[o])[0], c[1]); - else r(d.x, d.p.x, -1, i); - d = d.p; - } - (l = (d = d.o).z), (h = !h); - } while (!d.v); - i.lineEnd(); - } - } - }; - function Lc(t) { - if ((e = t.length)) { - for (var e, n, r = 0, i = t[0]; ++r < e; ) - (i.n = n = t[r]), (n.p = i), (i = n); - (i.n = n = t[0]), (n.p = i); - } - } - var Dc = wu(); - function jc(t) { - return Lu(t[0]) <= Au - ? t[0] - : Bu(t[0]) * (((Lu(t[0]) + Au) % Ou) - Au); - } - var Rc = function(t, e) { - var n = jc(e), - r = e[1], - i = Vu(r), - o = [Vu(n), -Ru(n), 0], - a = 0, - s = 0; - Dc.reset(), - 1 === i ? (r = Tu + 1e-6) : -1 === i && (r = -Tu - 1e-6); - for (var u = 0, l = t.length; u < l; ++u) - if ((f = (c = t[u]).length)) - for ( - var c, - f, - d = c[f - 1], - h = jc(d), - p = d[1] / 2 + Cu, - g = Vu(p), - v = Ru(p), - m = 0; - m < f; - ++m, h = b, g = x, v = w, d = y - ) { - var y = c[m], - b = jc(y), - _ = y[1] / 2 + Cu, - x = Vu(_), - w = Ru(_), - S = b - h, - E = S >= 0 ? 1 : -1, - k = E * S, - A = k > Au, - T = g * x; - if ( - (Dc.add(ju(T * E * Vu(k), v * w + T * Ru(k))), - (a += A ? S + E * Ou : S), - A ^ (h >= n) ^ (b >= n)) - ) { - var C = vl(pl(d), pl(y)); - bl(C); - var O = vl(o, C); - bl(O); - var P = (A ^ (S >= 0) ? -1 : 1) * qu(O[2]); - (r > P || (r === P && (C[0] || C[1]))) && - (s += A ^ (S >= 0) ? 1 : -1); - } - } - return (a < -1e-6 || (a < 1e-6 && Dc < -1e-6)) ^ (1 & s); - }, - Nc = function(t, e, n, r) { - return function(i) { - var o, - a, - s, - u = e(i), - l = Cc(), - c = e(l), - f = !1, - d = { - point: h, - lineStart: g, - lineEnd: v, - polygonStart: function() { - (d.point = m), - (d.lineStart = y), - (d.lineEnd = b), - (a = []), - (o = []); - }, - polygonEnd: function() { - (d.point = h), - (d.lineStart = g), - (d.lineEnd = v), - (a = z(a)); - var t = Rc(o, r); - a.length - ? (f || (i.polygonStart(), (f = !0)), - Mc(a, Ic, t, n, i)) - : t && - (f || (i.polygonStart(), (f = !0)), - i.lineStart(), - n(null, null, 1, i), - i.lineEnd()), - f && (i.polygonEnd(), (f = !1)), - (a = o = null); - }, - sphere: function() { - i.polygonStart(), - i.lineStart(), - n(null, null, 1, i), - i.lineEnd(), - i.polygonEnd(); - } - }; - function h(e, n) { - t(e, n) && i.point(e, n); - } - function p(t, e) { - u.point(t, e); - } - function g() { - (d.point = p), u.lineStart(); - } - function v() { - (d.point = h), u.lineEnd(); - } - function m(t, e) { - s.push([t, e]), c.point(t, e); - } - function y() { - c.lineStart(), (s = []); - } - function b() { - m(s[0][0], s[0][1]), c.lineEnd(); - var t, - e, - n, - r, - u = c.clean(), - d = l.result(), - h = d.length; - if ((s.pop(), o.push(s), (s = null), h)) - if (1 & u) { - if ((e = (n = d[0]).length - 1) > 0) { - for ( - f || (i.polygonStart(), (f = !0)), - i.lineStart(), - t = 0; - t < e; - ++t - ) - i.point((r = n[t])[0], r[1]); - i.lineEnd(); - } - } else - h > 1 && 2 & u && d.push(d.pop().concat(d.shift())), - a.push(d.filter(zc)); - } - return d; - }; - }; - function zc(t) { - return t.length > 1; - } - function Ic(t, e) { - return ( - ((t = t.x)[0] < 0 ? t[1] - Tu - 1e-6 : Tu - t[1]) - - ((e = e.x)[0] < 0 ? e[1] - Tu - 1e-6 : Tu - e[1]) - ); - } - var Fc = Nc( - function() { - return !0; - }, - function(t) { - var e, - n = NaN, - r = NaN, - i = NaN; - return { - lineStart: function() { - t.lineStart(), (e = 1); - }, - point: function(o, a) { - var s = o > 0 ? Au : -Au, - u = Lu(o - n); - Lu(u - Au) < 1e-6 - ? (t.point(n, (r = (r + a) / 2 > 0 ? Tu : -Tu)), - t.point(i, r), - t.lineEnd(), - t.lineStart(), - t.point(s, r), - t.point(o, r), - (e = 0)) - : i !== s && - u >= Au && - (Lu(n - i) < 1e-6 && (n -= 1e-6 * i), - Lu(o - s) < 1e-6 && (o -= 1e-6 * s), - (r = (function(t, e, n, r) { - var i, - o, - a = Vu(t - n); - return Lu(a) > 1e-6 - ? Du( - (Vu(e) * (o = Ru(r)) * Vu(n) - - Vu(r) * (i = Ru(e)) * Vu(t)) / - (i * o * a) - ) - : (e + r) / 2; - })(n, r, o, a)), - t.point(i, r), - t.lineEnd(), - t.lineStart(), - t.point(s, r), - (e = 0)), - t.point((n = o), (r = a)), - (i = s); - }, - lineEnd: function() { - t.lineEnd(), (n = r = NaN); - }, - clean: function() { - return 2 - e; - } - }; - }, - function(t, e, n, r) { - var i; - if (null == t) - (i = n * Tu), - r.point(-Au, i), - r.point(0, i), - r.point(Au, i), - r.point(Au, 0), - r.point(Au, -i), - r.point(0, -i), - r.point(-Au, -i), - r.point(-Au, 0), - r.point(-Au, i); - else if (Lu(t[0] - e[0]) > 1e-6) { - var o = t[0] < e[0] ? Au : -Au; - (i = (n * o) / 2), - r.point(-o, i), - r.point(0, i), - r.point(o, i); - } else r.point(e[0], e[1]); - }, - [-Au, -Tu] - ), - Vc = function(t) { - var e = Ru(t), - n = 6 * Mu, - r = e > 0, - i = Lu(e) > 1e-6; - function o(t, n) { - return Ru(t) * Ru(n) > e; - } - function a(t, n, r) { - var i = [1, 0, 0], - o = vl(pl(t), pl(n)), - a = gl(o, o), - s = o[0], - u = a - s * s; - if (!u) return !r && t; - var l = (e * a) / u, - c = (-e * s) / u, - f = vl(i, o), - d = yl(i, l); - ml(d, yl(o, c)); - var h = f, - p = gl(d, h), - g = gl(h, h), - v = p * p - g * (gl(d, d) - 1); - if (!(v < 0)) { - var m = Gu(v), - y = yl(h, (-p - m) / g); - if ((ml(y, d), (y = hl(y)), !r)) return y; - var b, - _ = t[0], - x = n[0], - w = t[1], - S = n[1]; - x < _ && ((b = _), (_ = x), (x = b)); - var E = x - _, - k = Lu(E - Au) < 1e-6; - if ( - (!k && S < w && ((b = w), (w = S), (S = b)), - k || E < 1e-6 - ? k - ? (w + S > 0) ^ - (y[1] < (Lu(y[0] - _) < 1e-6 ? w : S)) - : w <= y[1] && y[1] <= S - : (E > Au) ^ (_ <= y[0] && y[0] <= x)) - ) { - var A = yl(h, (-p + m) / g); - return ml(A, d), [y, hl(A)]; - } - } - } - function s(e, n) { - var i = r ? t : Au - t, - o = 0; - return ( - e < -i ? (o |= 1) : e > i && (o |= 2), - n < -i ? (o |= 4) : n > i && (o |= 8), - o - ); - } - return Nc( - o, - function(t) { - var e, n, u, l, c; - return { - lineStart: function() { - (l = u = !1), (c = 1); - }, - point: function(f, d) { - var h, - p = [f, d], - g = o(f, d), - v = r - ? g - ? 0 - : s(f, d) - : g - ? s(f + (f < 0 ? Au : -Au), d) - : 0; - if ( - (!e && (l = u = g) && t.lineStart(), - g !== u && - (!(h = a(e, p)) || Oc(e, h) || Oc(p, h)) && - ((p[0] += 1e-6), - (p[1] += 1e-6), - (g = o(p[0], p[1]))), - g !== u) - ) - (c = 0), - g - ? (t.lineStart(), - (h = a(p, e)), - t.point(h[0], h[1])) - : ((h = a(e, p)), - t.point(h[0], h[1]), - t.lineEnd()), - (e = h); - else if (i && e && r ^ g) { - var m; - v & n || - !(m = a(p, e, !0)) || - ((c = 0), - r - ? (t.lineStart(), - t.point(m[0][0], m[0][1]), - t.point(m[1][0], m[1][1]), - t.lineEnd()) - : (t.point(m[1][0], m[1][1]), - t.lineEnd(), - t.lineStart(), - t.point(m[0][0], m[0][1]))); - } - !g || (e && Oc(e, p)) || t.point(p[0], p[1]), - (e = p), - (u = g), - (n = v); - }, - lineEnd: function() { - u && t.lineEnd(), (e = null); - }, - clean: function() { - return c | ((l && u) << 1); - } - }; - }, - function(e, r, i, o) { - kc(o, t, n, i, e, r); - }, - r ? [0, -t] : [-Au, t - Au] - ); - }; - function Bc(t, e, n, r) { - function i(i, o) { - return t <= i && i <= n && e <= o && o <= r; - } - function o(i, o, s, l) { - var c = 0, - f = 0; - if ( - null == i || - (c = a(i, s)) !== (f = a(o, s)) || - (u(i, o) < 0) ^ (s > 0) - ) - do { - l.point(0 === c || 3 === c ? t : n, c > 1 ? r : e); - } while ((c = (c + s + 4) % 4) !== f); - else l.point(o[0], o[1]); - } - function a(r, i) { - return Lu(r[0] - t) < 1e-6 - ? i > 0 - ? 0 - : 3 - : Lu(r[0] - n) < 1e-6 - ? i > 0 - ? 2 - : 1 - : Lu(r[1] - e) < 1e-6 - ? i > 0 - ? 1 - : 0 - : i > 0 - ? 3 - : 2; - } - function s(t, e) { - return u(t.x, e.x); - } - function u(t, e) { - var n = a(t, 1), - r = a(e, 1); - return n !== r - ? n - r - : 0 === n - ? e[1] - t[1] - : 1 === n - ? t[0] - e[0] - : 2 === n - ? t[1] - e[1] - : e[0] - t[0]; - } - return function(a) { - var u, - l, - c, - f, - d, - h, - p, - g, - v, - m, - y, - b = a, - _ = Cc(), - x = { - point: w, - lineStart: function() { - (x.point = S), - l && l.push((c = [])), - (m = !0), - (v = !1), - (p = g = NaN); - }, - lineEnd: function() { - u && - (S(f, d), h && v && _.rejoin(), u.push(_.result())), - (x.point = w), - v && b.lineEnd(); - }, - polygonStart: function() { - (b = _), (u = []), (l = []), (y = !0); - }, - polygonEnd: function() { - var e = (function() { - for (var e = 0, n = 0, i = l.length; n < i; ++n) - for ( - var o, - a, - s = l[n], - u = 1, - c = s.length, - f = s[0], - d = f[0], - h = f[1]; - u < c; - ++u - ) - (o = d), - (a = h), - (f = s[u]), - (d = f[0]), - (h = f[1]), - a <= r - ? h > r && - (d - o) * (r - a) > (h - a) * (t - o) && - ++e - : h <= r && - (d - o) * (r - a) < (h - a) * (t - o) && - --e; - return e; - })(), - n = y && e, - i = (u = z(u)).length; - (n || i) && - (a.polygonStart(), - n && - (a.lineStart(), o(null, null, 1, a), a.lineEnd()), - i && Mc(u, s, e, o, a), - a.polygonEnd()), - (b = a), - (u = l = c = null); - } - }; - function w(t, e) { - i(t, e) && b.point(t, e); - } - function S(o, a) { - var s = i(o, a); - if ((l && c.push([o, a]), m)) - (f = o), - (d = a), - (h = s), - (m = !1), - s && (b.lineStart(), b.point(o, a)); - else if (s && v) b.point(o, a); - else { - var u = [ - (p = Math.max(-1e9, Math.min(1e9, p))), - (g = Math.max(-1e9, Math.min(1e9, g))) - ], - _ = [ - (o = Math.max(-1e9, Math.min(1e9, o))), - (a = Math.max(-1e9, Math.min(1e9, a))) - ]; - !(function(t, e, n, r, i, o) { - var a, - s = t[0], - u = t[1], - l = 0, - c = 1, - f = e[0] - s, - d = e[1] - u; - if (((a = n - s), f || !(a > 0))) { - if (((a /= f), f < 0)) { - if (a < l) return; - a < c && (c = a); - } else if (f > 0) { - if (a > c) return; - a > l && (l = a); - } - if (((a = i - s), f || !(a < 0))) { - if (((a /= f), f < 0)) { - if (a > c) return; - a > l && (l = a); - } else if (f > 0) { - if (a < l) return; - a < c && (c = a); - } - if (((a = r - u), d || !(a > 0))) { - if (((a /= d), d < 0)) { - if (a < l) return; - a < c && (c = a); - } else if (d > 0) { - if (a > c) return; - a > l && (l = a); - } - if (((a = o - u), d || !(a < 0))) { - if (((a /= d), d < 0)) { - if (a > c) return; - a > l && (l = a); - } else if (d > 0) { - if (a < l) return; - a < c && (c = a); - } - return ( - l > 0 && - ((t[0] = s + l * f), (t[1] = u + l * d)), - c < 1 && - ((e[0] = s + c * f), (e[1] = u + c * d)), - !0 - ); - } - } - } - } - })(u, _, t, e, n, r) - ? s && (b.lineStart(), b.point(o, a), (y = !1)) - : (v || (b.lineStart(), b.point(u[0], u[1])), - b.point(_[0], _[1]), - s || b.lineEnd(), - (y = !1)); - } - (p = o), (g = a), (v = s); - } - return x; - }; - } - var Gc, - Hc, - Uc, - qc = function() { - var t, - e, - n, - r = 0, - i = 0, - o = 960, - a = 500; - return (n = { - stream: function(n) { - return t && e === n ? t : (t = Bc(r, i, o, a)((e = n))); - }, - extent: function(s) { - return arguments.length - ? ((r = +s[0][0]), - (i = +s[0][1]), - (o = +s[1][0]), - (a = +s[1][1]), - (t = e = null), - n) - : [ - [r, i], - [o, a] - ]; - } - }); - }, - Wc = wu(), - Xc = { - sphere: Xu, - point: Xu, - lineStart: function() { - (Xc.point = $c), (Xc.lineEnd = Yc); - }, - lineEnd: Xu, - polygonStart: Xu, - polygonEnd: Xu - }; - function Yc() { - Xc.point = Xc.lineEnd = Xu; - } - function $c(t, e) { - (Gc = t *= Mu), - (Hc = Vu((e *= Mu))), - (Uc = Ru(e)), - (Xc.point = Qc); - } - function Qc(t, e) { - t *= Mu; - var n = Vu((e *= Mu)), - r = Ru(e), - i = Lu(t - Gc), - o = Ru(i), - a = r * Vu(i), - s = Uc * n - Hc * r * o, - u = Hc * n + Uc * r * o; - Wc.add(ju(Gu(a * a + s * s), u)), (Gc = t), (Hc = n), (Uc = r); - } - var Kc = function(t) { - return Wc.reset(), il(t, Xc), +Wc; - }, - Zc = [null, null], - Jc = { type: 'LineString', coordinates: Zc }, - tf = function(t, e) { - return (Zc[0] = t), (Zc[1] = e), Kc(Jc); - }, - ef = { - Feature: function(t, e) { - return rf(t.geometry, e); - }, - FeatureCollection: function(t, e) { - for (var n = t.features, r = -1, i = n.length; ++r < i; ) - if (rf(n[r].geometry, e)) return !0; - return !1; - } - }, - nf = { - Sphere: function() { - return !0; - }, - Point: function(t, e) { - return of(t.coordinates, e); - }, - MultiPoint: function(t, e) { - for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) - if (of(n[r], e)) return !0; - return !1; - }, - LineString: function(t, e) { - return af(t.coordinates, e); - }, - MultiLineString: function(t, e) { - for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) - if (af(n[r], e)) return !0; - return !1; - }, - Polygon: function(t, e) { - return sf(t.coordinates, e); - }, - MultiPolygon: function(t, e) { - for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) - if (sf(n[r], e)) return !0; - return !1; - }, - GeometryCollection: function(t, e) { - for (var n = t.geometries, r = -1, i = n.length; ++r < i; ) - if (rf(n[r], e)) return !0; - return !1; - } - }; - function rf(t, e) { - return !(!t || !nf.hasOwnProperty(t.type)) && nf[t.type](t, e); - } - function of(t, e) { - return 0 === tf(t, e); - } - function af(t, e) { - for (var n, r, i, o = 0, a = t.length; o < a; o++) { - if (0 === (r = tf(t[o], e))) return !0; - if ( - o > 0 && - (i = tf(t[o], t[o - 1])) > 0 && - n <= i && - r <= i && - (n + r - i) * (1 - Math.pow((n - r) / i, 2)) < 1e-12 * i - ) - return !0; - n = r; - } - return !1; - } - function sf(t, e) { - return !!Rc(t.map(uf), lf(e)); - } - function uf(t) { - return (t = t.map(lf)).pop(), t; - } - function lf(t) { - return [t[0] * Mu, t[1] * Mu]; - } - var cf = function(t, e) { - return (t && ef.hasOwnProperty(t.type) ? ef[t.type] : rf)(t, e); - }; - function ff(t, e, n) { - var r = w(t, e - 1e-6, n).concat(e); - return function(t) { - return r.map(function(e) { - return [t, e]; - }); - }; - } - function df(t, e, n) { - var r = w(t, e - 1e-6, n).concat(e); - return function(t) { - return r.map(function(e) { - return [e, t]; - }); - }; - } - function hf() { - var t, - e, - n, - r, - i, - o, - a, - s, - u, - l, - c, - f, - d = 10, - h = d, - p = 90, - g = 360, - v = 2.5; - function m() { - return { type: 'MultiLineString', coordinates: y() }; - } - function y() { - return w(Nu(r / p) * p, n, p) - .map(c) - .concat(w(Nu(s / g) * g, a, g).map(f)) - .concat( - w(Nu(e / d) * d, t, d) - .filter(function(t) { - return Lu(t % p) > 1e-6; - }) - .map(u) - ) - .concat( - w(Nu(o / h) * h, i, h) - .filter(function(t) { - return Lu(t % g) > 1e-6; - }) - .map(l) - ); - } - return ( - (m.lines = function() { - return y().map(function(t) { - return { type: 'LineString', coordinates: t }; - }); - }), - (m.outline = function() { - return { - type: 'Polygon', - coordinates: [ - c(r).concat( - f(a).slice(1), - c(n) - .reverse() - .slice(1), - f(s) - .reverse() - .slice(1) - ) - ] - }; - }), - (m.extent = function(t) { - return arguments.length - ? m.extentMajor(t).extentMinor(t) - : m.extentMinor(); - }), - (m.extentMajor = function(t) { - return arguments.length - ? ((r = +t[0][0]), - (n = +t[1][0]), - (s = +t[0][1]), - (a = +t[1][1]), - r > n && ((t = r), (r = n), (n = t)), - s > a && ((t = s), (s = a), (a = t)), - m.precision(v)) - : [ - [r, s], - [n, a] - ]; - }), - (m.extentMinor = function(n) { - return arguments.length - ? ((e = +n[0][0]), - (t = +n[1][0]), - (o = +n[0][1]), - (i = +n[1][1]), - e > t && ((n = e), (e = t), (t = n)), - o > i && ((n = o), (o = i), (i = n)), - m.precision(v)) - : [ - [e, o], - [t, i] - ]; - }), - (m.step = function(t) { - return arguments.length - ? m.stepMajor(t).stepMinor(t) - : m.stepMinor(); - }), - (m.stepMajor = function(t) { - return arguments.length - ? ((p = +t[0]), (g = +t[1]), m) - : [p, g]; - }), - (m.stepMinor = function(t) { - return arguments.length - ? ((d = +t[0]), (h = +t[1]), m) - : [d, h]; - }), - (m.precision = function(d) { - return arguments.length - ? ((v = +d), - (u = ff(o, i, 90)), - (l = df(e, t, v)), - (c = ff(s, a, 90)), - (f = df(r, n, v)), - m) - : v; - }), - m - .extentMajor([ - [-180, -89.999999], - [180, 89.999999] - ]) - .extentMinor([ - [-180, -80.000001], - [180, 80.000001] - ]) - ); - } - function pf() { - return hf()(); - } - var gf, - vf, - mf, - yf, - bf = function(t, e) { - var n = t[0] * Mu, - r = t[1] * Mu, - i = e[0] * Mu, - o = e[1] * Mu, - a = Ru(r), - s = Vu(r), - u = Ru(o), - l = Vu(o), - c = a * Ru(n), - f = a * Vu(n), - d = u * Ru(i), - h = u * Vu(i), - p = 2 * qu(Gu(Wu(o - r) + a * u * Wu(i - n))), - g = Vu(p), - v = p - ? function(t) { - var e = Vu((t *= p)) / g, - n = Vu(p - t) / g, - r = n * c + e * d, - i = n * f + e * h, - o = n * s + e * l; - return [ju(i, r) * Pu, ju(o, Gu(r * r + i * i)) * Pu]; - } - : function() { - return [n * Pu, r * Pu]; - }; - return (v.distance = p), v; - }, - _f = function(t) { - return t; - }, - xf = wu(), - wf = wu(), - Sf = { - point: Xu, - lineStart: Xu, - lineEnd: Xu, - polygonStart: function() { - (Sf.lineStart = Ef), (Sf.lineEnd = Tf); - }, - polygonEnd: function() { - (Sf.lineStart = Sf.lineEnd = Sf.point = Xu), - xf.add(Lu(wf)), - wf.reset(); - }, - result: function() { - var t = xf / 2; - return xf.reset(), t; - } - }; - function Ef() { - Sf.point = kf; - } - function kf(t, e) { - (Sf.point = Af), (gf = mf = t), (vf = yf = e); - } - function Af(t, e) { - wf.add(yf * t - mf * e), (mf = t), (yf = e); - } - function Tf() { - Af(gf, vf); - } - var Cf, - Of, - Pf, - Mf, - Lf = Sf, - Df = 1 / 0, - jf = Df, - Rf = -Df, - Nf = Rf, - zf = { - point: function(t, e) { - t < Df && (Df = t), - t > Rf && (Rf = t), - e < jf && (jf = e), - e > Nf && (Nf = e); - }, - lineStart: Xu, - lineEnd: Xu, - polygonStart: Xu, - polygonEnd: Xu, - result: function() { - var t = [ - [Df, jf], - [Rf, Nf] - ]; - return (Rf = Nf = -(jf = Df = 1 / 0)), t; - } - }, - If = 0, - Ff = 0, - Vf = 0, - Bf = 0, - Gf = 0, - Hf = 0, - Uf = 0, - qf = 0, - Wf = 0, - Xf = { - point: Yf, - lineStart: $f, - lineEnd: Zf, - polygonStart: function() { - (Xf.lineStart = Jf), (Xf.lineEnd = td); - }, - polygonEnd: function() { - (Xf.point = Yf), (Xf.lineStart = $f), (Xf.lineEnd = Zf); - }, - result: function() { - var t = Wf - ? [Uf / Wf, qf / Wf] - : Hf - ? [Bf / Hf, Gf / Hf] - : Vf - ? [If / Vf, Ff / Vf] - : [NaN, NaN]; - return (If = Ff = Vf = Bf = Gf = Hf = Uf = qf = Wf = 0), t; - } - }; - function Yf(t, e) { - (If += t), (Ff += e), ++Vf; - } - function $f() { - Xf.point = Qf; - } - function Qf(t, e) { - (Xf.point = Kf), Yf((Pf = t), (Mf = e)); - } - function Kf(t, e) { - var n = t - Pf, - r = e - Mf, - i = Gu(n * n + r * r); - (Bf += (i * (Pf + t)) / 2), - (Gf += (i * (Mf + e)) / 2), - (Hf += i), - Yf((Pf = t), (Mf = e)); - } - function Zf() { - Xf.point = Yf; - } - function Jf() { - Xf.point = ed; - } - function td() { - nd(Cf, Of); - } - function ed(t, e) { - (Xf.point = nd), Yf((Cf = Pf = t), (Of = Mf = e)); - } - function nd(t, e) { - var n = t - Pf, - r = e - Mf, - i = Gu(n * n + r * r); - (Bf += (i * (Pf + t)) / 2), - (Gf += (i * (Mf + e)) / 2), - (Hf += i), - (Uf += (i = Mf * t - Pf * e) * (Pf + t)), - (qf += i * (Mf + e)), - (Wf += 3 * i), - Yf((Pf = t), (Mf = e)); - } - var rd = Xf; - function id(t) { - this._context = t; - } - id.prototype = { - _radius: 4.5, - pointRadius: function(t) { - return (this._radius = t), this; - }, - polygonStart: function() { - this._line = 0; - }, - polygonEnd: function() { - this._line = NaN; - }, - lineStart: function() { - this._point = 0; - }, - lineEnd: function() { - 0 === this._line && this._context.closePath(), - (this._point = NaN); - }, - point: function(t, e) { - switch (this._point) { - case 0: - this._context.moveTo(t, e), (this._point = 1); - break; - case 1: - this._context.lineTo(t, e); - break; - default: - this._context.moveTo(t + this._radius, e), - this._context.arc(t, e, this._radius, 0, Ou); - } - }, - result: Xu - }; - var od, - ad, - sd, - ud, - ld, - cd = wu(), - fd = { - point: Xu, - lineStart: function() { - fd.point = dd; - }, - lineEnd: function() { - od && hd(ad, sd), (fd.point = Xu); - }, - polygonStart: function() { - od = !0; - }, - polygonEnd: function() { - od = null; - }, - result: function() { - var t = +cd; - return cd.reset(), t; - } - }; - function dd(t, e) { - (fd.point = hd), (ad = ud = t), (sd = ld = e); - } - function hd(t, e) { - (ud -= t), - (ld -= e), - cd.add(Gu(ud * ud + ld * ld)), - (ud = t), - (ld = e); - } - var pd = fd; - function gd() { - this._string = []; - } - function vd(t) { - return ( - 'm0,' + - t + - 'a' + - t + - ',' + - t + - ' 0 1,1 0,' + - -2 * t + - 'a' + - t + - ',' + - t + - ' 0 1,1 0,' + - 2 * t + - 'z' - ); - } - gd.prototype = { - _radius: 4.5, - _circle: vd(4.5), - pointRadius: function(t) { - return ( - (t = +t) !== this._radius && - ((this._radius = t), (this._circle = null)), - this - ); - }, - polygonStart: function() { - this._line = 0; - }, - polygonEnd: function() { - this._line = NaN; - }, - lineStart: function() { - this._point = 0; - }, - lineEnd: function() { - 0 === this._line && this._string.push('Z'), - (this._point = NaN); - }, - point: function(t, e) { - switch (this._point) { - case 0: - this._string.push('M', t, ',', e), (this._point = 1); - break; - case 1: - this._string.push('L', t, ',', e); - break; - default: - null == this._circle && (this._circle = vd(this._radius)), - this._string.push('M', t, ',', e, this._circle); - } - }, - result: function() { - if (this._string.length) { - var t = this._string.join(''); - return (this._string = []), t; - } - return null; - } - }; - var md = function(t, e) { - var n, - r, - i = 4.5; - function o(t) { - return ( - t && - ('function' == typeof i && - r.pointRadius(+i.apply(this, arguments)), - il(t, n(r))), - r.result() - ); - } - return ( - (o.area = function(t) { - return il(t, n(Lf)), Lf.result(); - }), - (o.measure = function(t) { - return il(t, n(pd)), pd.result(); - }), - (o.bounds = function(t) { - return il(t, n(zf)), zf.result(); - }), - (o.centroid = function(t) { - return il(t, n(rd)), rd.result(); - }), - (o.projection = function(e) { - return arguments.length - ? ((n = null == e ? ((t = null), _f) : (t = e).stream), - o) - : t; - }), - (o.context = function(t) { - return arguments.length - ? ((r = - null == t - ? ((e = null), new gd()) - : new id((e = t))), - 'function' != typeof i && r.pointRadius(i), - o) - : e; - }), - (o.pointRadius = function(t) { - return arguments.length - ? ((i = - 'function' == typeof t - ? t - : (r.pointRadius(+t), +t)), - o) - : i; - }), - o.projection(t).context(e) - ); - }, - yd = function(t) { - return { stream: bd(t) }; - }; - function bd(t) { - return function(e) { - var n = new _d(); - for (var r in t) n[r] = t[r]; - return (n.stream = e), n; - }; - } - function _d() {} - function xd(t, e, n) { - var r = t.clipExtent && t.clipExtent(); - return ( - t.scale(150).translate([0, 0]), - null != r && t.clipExtent(null), - il(n, t.stream(zf)), - e(zf.result()), - null != r && t.clipExtent(r), - t - ); - } - function wd(t, e, n) { - return xd( - t, - function(n) { - var r = e[1][0] - e[0][0], - i = e[1][1] - e[0][1], - o = Math.min( - r / (n[1][0] - n[0][0]), - i / (n[1][1] - n[0][1]) - ), - a = +e[0][0] + (r - o * (n[1][0] + n[0][0])) / 2, - s = +e[0][1] + (i - o * (n[1][1] + n[0][1])) / 2; - t.scale(150 * o).translate([a, s]); - }, - n - ); - } - function Sd(t, e, n) { - return wd(t, [[0, 0], e], n); - } - function Ed(t, e, n) { - return xd( - t, - function(n) { - var r = +e, - i = r / (n[1][0] - n[0][0]), - o = (r - i * (n[1][0] + n[0][0])) / 2, - a = -i * n[0][1]; - t.scale(150 * i).translate([o, a]); - }, - n - ); - } - function kd(t, e, n) { - return xd( - t, - function(n) { - var r = +e, - i = r / (n[1][1] - n[0][1]), - o = -i * n[0][0], - a = (r - i * (n[1][1] + n[0][1])) / 2; - t.scale(150 * i).translate([o, a]); - }, - n - ); - } - _d.prototype = { - constructor: _d, - point: function(t, e) { - this.stream.point(t, e); - }, - sphere: function() { - this.stream.sphere(); - }, - lineStart: function() { - this.stream.lineStart(); - }, - lineEnd: function() { - this.stream.lineEnd(); - }, - polygonStart: function() { - this.stream.polygonStart(); - }, - polygonEnd: function() { - this.stream.polygonEnd(); - } - }; - var Ad = Ru(30 * Mu), - Td = function(t, e) { - return +e - ? (function(t, e) { - function n(r, i, o, a, s, u, l, c, f, d, h, p, g, v) { - var m = l - r, - y = c - i, - b = m * m + y * y; - if (b > 4 * e && g--) { - var _ = a + d, - x = s + h, - w = u + p, - S = Gu(_ * _ + x * x + w * w), - E = qu((w /= S)), - k = - Lu(Lu(w) - 1) < 1e-6 || Lu(o - f) < 1e-6 - ? (o + f) / 2 - : ju(x, _), - A = t(k, E), - T = A[0], - C = A[1], - O = T - r, - P = C - i, - M = y * O - m * P; - ((M * M) / b > e || - Lu((m * O + y * P) / b - 0.5) > 0.3 || - a * d + s * h + u * p < Ad) && - (n( - r, - i, - o, - a, - s, - u, - T, - C, - k, - (_ /= S), - (x /= S), - w, - g, - v - ), - v.point(T, C), - n(T, C, k, _, x, w, l, c, f, d, h, p, g, v)); - } - } - return function(e) { - var r, - i, - o, - a, - s, - u, - l, - c, - f, - d, - h, - p, - g = { - point: v, - lineStart: m, - lineEnd: b, - polygonStart: function() { - e.polygonStart(), (g.lineStart = _); - }, - polygonEnd: function() { - e.polygonEnd(), (g.lineStart = m); - } - }; - function v(n, r) { - (n = t(n, r)), e.point(n[0], n[1]); - } - function m() { - (c = NaN), (g.point = y), e.lineStart(); - } - function y(r, i) { - var o = pl([r, i]), - a = t(r, i); - n( - c, - f, - l, - d, - h, - p, - (c = a[0]), - (f = a[1]), - (l = r), - (d = o[0]), - (h = o[1]), - (p = o[2]), - 16, - e - ), - e.point(c, f); - } - function b() { - (g.point = v), e.lineEnd(); - } - function _() { - m(), (g.point = x), (g.lineEnd = w); - } - function x(t, e) { - y((r = t), e), - (i = c), - (o = f), - (a = d), - (s = h), - (u = p), - (g.point = y); - } - function w() { - n(c, f, l, d, h, p, i, o, r, a, s, u, 16, e), - (g.lineEnd = b), - b(); - } - return g; - }; - })(t, e) - : (function(t) { - return bd({ - point: function(e, n) { - (e = t(e, n)), this.stream.point(e[0], e[1]); - } - }); - })(t); - }, - Cd = bd({ - point: function(t, e) { - this.stream.point(t * Mu, e * Mu); - } - }); - function Od(t, e, n) { - function r(r, i) { - return [e + t * r, n - t * i]; - } - return ( - (r.invert = function(r, i) { - return [(r - e) / t, (n - i) / t]; - }), - r - ); - } - function Pd(t, e, n, r) { - var i = Ru(r), - o = Vu(r), - a = i * t, - s = o * t, - u = i / t, - l = o / t, - c = (o * n - i * e) / t, - f = (o * e + i * n) / t; - function d(t, r) { - return [a * t - s * r + e, n - s * t - a * r]; - } - return ( - (d.invert = function(t, e) { - return [u * t - l * e + c, f - l * t - u * e]; - }), - d - ); - } - function Md(t) { - return Ld(function() { - return t; - })(); - } - function Ld(t) { - var e, - n, - r, - i, - o, - a, - s, - u, - l, - c, - f = 150, - d = 480, - h = 250, - p = 0, - g = 0, - v = 0, - m = 0, - y = 0, - b = 0, - _ = null, - x = Fc, - w = null, - S = _f, - E = 0.5; - function k(t) { - return u(t[0] * Mu, t[1] * Mu); - } - function A(t) { - return (t = u.invert(t[0], t[1])) && [t[0] * Pu, t[1] * Pu]; - } - function T() { - var t = Pd(f, 0, 0, b).apply(null, e(p, g)), - r = (b ? Pd : Od)(f, d - t[0], h - t[1], b); - return ( - (n = _c(v, m, y)), - (s = yc(e, r)), - (u = yc(n, s)), - (a = Td(s, E)), - C() - ); - } - function C() { - return (l = c = null), k; - } - return ( - (k.stream = function(t) { - return l && c === t - ? l - : (l = Cd( - (function(t) { - return bd({ - point: function(e, n) { - var r = t(e, n); - return this.stream.point(r[0], r[1]); - } - }); - })(n)(x(a(S((c = t))))) - )); - }), - (k.preclip = function(t) { - return arguments.length ? ((x = t), (_ = void 0), C()) : x; - }), - (k.postclip = function(t) { - return arguments.length - ? ((S = t), (w = r = i = o = null), C()) - : S; - }), - (k.clipAngle = function(t) { - return arguments.length - ? ((x = +t ? Vc((_ = t * Mu)) : ((_ = null), Fc)), C()) - : _ * Pu; - }), - (k.clipExtent = function(t) { - return arguments.length - ? ((S = - null == t - ? ((w = r = i = o = null), _f) - : Bc( - (w = +t[0][0]), - (r = +t[0][1]), - (i = +t[1][0]), - (o = +t[1][1]) - )), - C()) - : null == w - ? null - : [ - [w, r], - [i, o] - ]; - }), - (k.scale = function(t) { - return arguments.length ? ((f = +t), T()) : f; - }), - (k.translate = function(t) { - return arguments.length - ? ((d = +t[0]), (h = +t[1]), T()) - : [d, h]; - }), - (k.center = function(t) { - return arguments.length - ? ((p = (t[0] % 360) * Mu), (g = (t[1] % 360) * Mu), T()) - : [p * Pu, g * Pu]; - }), - (k.rotate = function(t) { - return arguments.length - ? ((v = (t[0] % 360) * Mu), - (m = (t[1] % 360) * Mu), - (y = t.length > 2 ? (t[2] % 360) * Mu : 0), - T()) - : [v * Pu, m * Pu, y * Pu]; - }), - (k.angle = function(t) { - return arguments.length - ? ((b = (t % 360) * Mu), T()) - : b * Pu; - }), - (k.precision = function(t) { - return arguments.length - ? ((a = Td(s, (E = t * t))), C()) - : Gu(E); - }), - (k.fitExtent = function(t, e) { - return wd(k, t, e); - }), - (k.fitSize = function(t, e) { - return Sd(k, t, e); - }), - (k.fitWidth = function(t, e) { - return Ed(k, t, e); - }), - (k.fitHeight = function(t, e) { - return kd(k, t, e); - }), - function() { - return ( - (e = t.apply(this, arguments)), - (k.invert = e.invert && A), - T() - ); - } - ); - } - function Dd(t) { - var e = 0, - n = Au / 3, - r = Ld(t), - i = r(e, n); - return ( - (i.parallels = function(t) { - return arguments.length - ? r((e = t[0] * Mu), (n = t[1] * Mu)) - : [e * Pu, n * Pu]; - }), - i - ); - } - function jd(t, e) { - var n = Vu(t), - r = (n + Vu(e)) / 2; - if (Lu(r) < 1e-6) - return (function(t) { - var e = Ru(t); - function n(t, n) { - return [t * e, Vu(n) / e]; - } - return ( - (n.invert = function(t, n) { - return [t / e, qu(n * e)]; - }), - n - ); - })(t); - var i = 1 + n * (2 * r - n), - o = Gu(i) / r; - function a(t, e) { - var n = Gu(i - 2 * r * Vu(e)) / r; - return [n * Vu((t *= r)), o - n * Ru(t)]; - } - return ( - (a.invert = function(t, e) { - var n = o - e; - return [ - (ju(t, Lu(n)) / r) * Bu(n), - qu((i - (t * t + n * n) * r * r) / (2 * r)) - ]; - }), - a - ); - } - var Rd = function() { - return Dd(jd) - .scale(155.424) - .center([0, 33.6442]); - }, - Nd = function() { - return Rd() - .parallels([29.5, 45.5]) - .scale(1070) - .translate([480, 250]) - .rotate([96, 0]) - .center([-0.6, 38.7]); - }, - zd = function() { - var t, - e, - n, - r, - i, - o, - a = Nd(), - s = Rd() - .rotate([154, 0]) - .center([-2, 58.5]) - .parallels([55, 65]), - u = Rd() - .rotate([157, 0]) - .center([-3, 19.9]) - .parallels([8, 18]), - l = { - point: function(t, e) { - o = [t, e]; - } - }; - function c(t) { - var e = t[0], - a = t[1]; - return ( - (o = null), - n.point(e, a), - o || (r.point(e, a), o) || (i.point(e, a), o) - ); - } - function f() { - return (t = e = null), c; - } - return ( - (c.invert = function(t) { - var e = a.scale(), - n = a.translate(), - r = (t[0] - n[0]) / e, - i = (t[1] - n[1]) / e; - return (i >= 0.12 && - i < 0.234 && - r >= -0.425 && - r < -0.214 - ? s - : i >= 0.166 && i < 0.234 && r >= -0.214 && r < -0.115 - ? u - : a - ).invert(t); - }), - (c.stream = function(n) { - return t && e === n - ? t - : ((r = [a.stream((e = n)), s.stream(n), u.stream(n)]), - (i = r.length), - (t = { - point: function(t, e) { - for (var n = -1; ++n < i; ) r[n].point(t, e); - }, - sphere: function() { - for (var t = -1; ++t < i; ) r[t].sphere(); - }, - lineStart: function() { - for (var t = -1; ++t < i; ) r[t].lineStart(); - }, - lineEnd: function() { - for (var t = -1; ++t < i; ) r[t].lineEnd(); - }, - polygonStart: function() { - for (var t = -1; ++t < i; ) r[t].polygonStart(); - }, - polygonEnd: function() { - for (var t = -1; ++t < i; ) r[t].polygonEnd(); - } - })); - var r, i; - }), - (c.precision = function(t) { - return arguments.length - ? (a.precision(t), s.precision(t), u.precision(t), f()) - : a.precision(); - }), - (c.scale = function(t) { - return arguments.length - ? (a.scale(t), - s.scale(0.35 * t), - u.scale(t), - c.translate(a.translate())) - : a.scale(); - }), - (c.translate = function(t) { - if (!arguments.length) return a.translate(); - var e = a.scale(), - o = +t[0], - c = +t[1]; - return ( - (n = a - .translate(t) - .clipExtent([ - [o - 0.455 * e, c - 0.238 * e], - [o + 0.455 * e, c + 0.238 * e] - ]) - .stream(l)), - (r = s - .translate([o - 0.307 * e, c + 0.201 * e]) - .clipExtent([ - [o - 0.425 * e + 1e-6, c + 0.12 * e + 1e-6], - [o - 0.214 * e - 1e-6, c + 0.234 * e - 1e-6] - ]) - .stream(l)), - (i = u - .translate([o - 0.205 * e, c + 0.212 * e]) - .clipExtent([ - [o - 0.214 * e + 1e-6, c + 0.166 * e + 1e-6], - [o - 0.115 * e - 1e-6, c + 0.234 * e - 1e-6] - ]) - .stream(l)), - f() - ); - }), - (c.fitExtent = function(t, e) { - return wd(c, t, e); - }), - (c.fitSize = function(t, e) { - return Sd(c, t, e); - }), - (c.fitWidth = function(t, e) { - return Ed(c, t, e); - }), - (c.fitHeight = function(t, e) { - return kd(c, t, e); - }), - c.scale(1070) - ); - }; - function Id(t) { - return function(e, n) { - var r = Ru(e), - i = Ru(n), - o = t(r * i); - return [o * i * Vu(e), o * Vu(n)]; - }; - } - function Fd(t) { - return function(e, n) { - var r = Gu(e * e + n * n), - i = t(r), - o = Vu(i), - a = Ru(i); - return [ju(e * o, r * a), qu(r && (n * o) / r)]; - }; - } - var Vd = Id(function(t) { - return Gu(2 / (1 + t)); - }); - Vd.invert = Fd(function(t) { - return 2 * qu(t / 2); - }); - var Bd = function() { - return Md(Vd) - .scale(124.75) - .clipAngle(179.999); - }, - Gd = Id(function(t) { - return (t = Uu(t)) && t / Vu(t); - }); - Gd.invert = Fd(function(t) { - return t; - }); - var Hd = function() { - return Md(Gd) - .scale(79.4188) - .clipAngle(179.999); - }; - function Ud(t, e) { - return [t, Iu(Hu((Tu + e) / 2))]; - } - Ud.invert = function(t, e) { - return [t, 2 * Du(zu(e)) - Tu]; - }; - var qd = function() { - return Wd(Ud).scale(961 / Ou); - }; - function Wd(t) { - var e, - n, - r, - i = Md(t), - o = i.center, - a = i.scale, - s = i.translate, - u = i.clipExtent, - l = null; - function c() { - var o = Au * a(), - s = i(Ec(i.rotate()).invert([0, 0])); - return u( - null == l - ? [ - [s[0] - o, s[1] - o], - [s[0] + o, s[1] + o] - ] - : t === Ud - ? [ - [Math.max(s[0] - o, l), e], - [Math.min(s[0] + o, n), r] - ] - : [ - [l, Math.max(s[1] - o, e)], - [n, Math.min(s[1] + o, r)] - ] - ); - } - return ( - (i.scale = function(t) { - return arguments.length ? (a(t), c()) : a(); - }), - (i.translate = function(t) { - return arguments.length ? (s(t), c()) : s(); - }), - (i.center = function(t) { - return arguments.length ? (o(t), c()) : o(); - }), - (i.clipExtent = function(t) { - return arguments.length - ? (null == t - ? (l = e = n = r = null) - : ((l = +t[0][0]), - (e = +t[0][1]), - (n = +t[1][0]), - (r = +t[1][1])), - c()) - : null == l - ? null - : [ - [l, e], - [n, r] - ]; - }), - c() - ); - } - function Xd(t) { - return Hu((Tu + t) / 2); - } - function Yd(t, e) { - var n = Ru(t), - r = t === e ? Vu(t) : Iu(n / Ru(e)) / Iu(Xd(e) / Xd(t)), - i = (n * Fu(Xd(t), r)) / r; - if (!r) return Ud; - function o(t, e) { - i > 0 - ? e < 1e-6 - Tu && (e = 1e-6 - Tu) - : e > Tu - 1e-6 && (e = Tu - 1e-6); - var n = i / Fu(Xd(e), r); - return [n * Vu(r * t), i - n * Ru(r * t)]; - } - return ( - (o.invert = function(t, e) { - var n = i - e, - o = Bu(r) * Gu(t * t + n * n); - return [ - (ju(t, Lu(n)) / r) * Bu(n), - 2 * Du(Fu(i / o, 1 / r)) - Tu - ]; - }), - o - ); - } - var $d = function() { - return Dd(Yd) - .scale(109.5) - .parallels([30, 30]); - }; - function Qd(t, e) { - return [t, e]; - } - Qd.invert = Qd; - var Kd = function() { - return Md(Qd).scale(152.63); - }; - function Zd(t, e) { - var n = Ru(t), - r = t === e ? Vu(t) : (n - Ru(e)) / (e - t), - i = n / r + t; - if (Lu(r) < 1e-6) return Qd; - function o(t, e) { - var n = i - e, - o = r * t; - return [n * Vu(o), i - n * Ru(o)]; - } - return ( - (o.invert = function(t, e) { - var n = i - e; - return [ - (ju(t, Lu(n)) / r) * Bu(n), - i - Bu(r) * Gu(t * t + n * n) - ]; - }), - o - ); - } - var Jd = function() { - return Dd(Zd) - .scale(131.154) - .center([0, 13.9389]); - }, - th = 1.340264, - eh = -0.081106, - nh = 893e-6, - rh = 0.003796, - ih = Gu(3) / 2; - function oh(t, e) { - var n = qu(ih * Vu(e)), - r = n * n, - i = r * r * r; - return [ - (t * Ru(n)) / - (ih * (th + 3 * eh * r + i * (7 * nh + 9 * rh * r))), - n * (th + eh * r + i * (nh + rh * r)) - ]; - } - oh.invert = function(t, e) { - for ( - var n, r = e, i = r * r, o = i * i * i, a = 0; - a < 12 && - ((o = - (i = - (r -= n = - (r * (th + eh * i + o * (nh + rh * i)) - e) / - (th + 3 * eh * i + o * (7 * nh + 9 * rh * i))) * r) * - i * - i), - !(Lu(n) < 1e-12)); - ++a - ); - return [ - (ih * t * (th + 3 * eh * i + o * (7 * nh + 9 * rh * i))) / - Ru(r), - qu(Vu(r) / ih) - ]; - }; - var ah = function() { - return Md(oh).scale(177.158); - }; - function sh(t, e) { - var n = Ru(e), - r = Ru(t) * n; - return [(n * Vu(t)) / r, Vu(e) / r]; - } - sh.invert = Fd(Du); - var uh = function() { - return Md(sh) - .scale(144.049) - .clipAngle(60); - }; - function lh(t, e, n, r) { - return 1 === t && 1 === e && 0 === n && 0 === r - ? _f - : bd({ - point: function(i, o) { - this.stream.point(i * t + n, o * e + r); - } - }); - } - var ch = function() { - var t, - e, - n, - r, - i, - o, - a = 1, - s = 0, - u = 0, - l = 1, - c = 1, - f = _f, - d = null, - h = _f; - function p() { - return (r = i = null), o; - } - return (o = { - stream: function(t) { - return r && i === t ? r : (r = f(h((i = t)))); - }, - postclip: function(r) { - return arguments.length - ? ((h = r), (d = t = e = n = null), p()) - : h; - }, - clipExtent: function(r) { - return arguments.length - ? ((h = - null == r - ? ((d = t = e = n = null), _f) - : Bc( - (d = +r[0][0]), - (t = +r[0][1]), - (e = +r[1][0]), - (n = +r[1][1]) - )), - p()) - : null == d - ? null - : [ - [d, t], - [e, n] - ]; - }, - scale: function(t) { - return arguments.length - ? ((f = lh((a = +t) * l, a * c, s, u)), p()) - : a; - }, - translate: function(t) { - return arguments.length - ? ((f = lh(a * l, a * c, (s = +t[0]), (u = +t[1]))), p()) - : [s, u]; - }, - reflectX: function(t) { - return arguments.length - ? ((f = lh(a * (l = t ? -1 : 1), a * c, s, u)), p()) - : l < 0; - }, - reflectY: function(t) { - return arguments.length - ? ((f = lh(a * l, a * (c = t ? -1 : 1), s, u)), p()) - : c < 0; - }, - fitExtent: function(t, e) { - return wd(o, t, e); - }, - fitSize: function(t, e) { - return Sd(o, t, e); - }, - fitWidth: function(t, e) { - return Ed(o, t, e); - }, - fitHeight: function(t, e) { - return kd(o, t, e); - } - }); - }; - function fh(t, e) { - var n = e * e, - r = n * n; - return [ - t * - (0.8707 - - 0.131979 * n + - r * (r * (0.003971 * n - 0.001529 * r) - 0.013791)), - e * - (1.007226 + - n * - (0.015085 + - r * (0.028874 * n - 0.044475 - 0.005916 * r))) - ]; - } - fh.invert = function(t, e) { - var n, - r = e, - i = 25; - do { - var o = r * r, - a = o * o; - r -= n = - (r * - (1.007226 + - o * - (0.015085 + - a * (0.028874 * o - 0.044475 - 0.005916 * a))) - - e) / - (1.007226 + - o * - (0.045255 + - a * (0.259866 * o - 0.311325 - 0.005916 * 11 * a))); - } while (Lu(n) > 1e-6 && --i > 0); - return [ - t / - (0.8707 + - (o = r * r) * - (o * - (o * o * o * (0.003971 - 0.001529 * o) - 0.013791) - - 0.131979)), - r - ]; - }; - var dh = function() { - return Md(fh).scale(175.295); - }; - function hh(t, e) { - return [Ru(e) * Vu(t), Vu(e)]; - } - hh.invert = Fd(qu); - var ph = function() { - return Md(hh) - .scale(249.5) - .clipAngle(90.000001); - }; - function gh(t, e) { - var n = Ru(e), - r = 1 + Ru(t) * n; - return [(n * Vu(t)) / r, Vu(e) / r]; - } - gh.invert = Fd(function(t) { - return 2 * Du(t); - }); - var vh = function() { - return Md(gh) - .scale(250) - .clipAngle(142); - }; - function mh(t, e) { - return [Iu(Hu((Tu + e) / 2)), -t]; - } - mh.invert = function(t, e) { - return [-e, 2 * Du(zu(t)) - Tu]; - }; - var yh = function() { - var t = Wd(mh), - e = t.center, - n = t.rotate; - return ( - (t.center = function(t) { - return arguments.length - ? e([-t[1], t[0]]) - : [(t = e())[1], -t[0]]; - }), - (t.rotate = function(t) { - return arguments.length - ? n([t[0], t[1], t.length > 2 ? t[2] + 90 : 90]) - : [(t = n())[0], t[1], t[2] - 90]; - }), - n([0, 0, 90]).scale(159.155) - ); - }; - function bh(t, e) { - return t.parent === e.parent ? 1 : 2; - } - function _h(t, e) { - return t + e.x; - } - function xh(t, e) { - return Math.max(t, e.y); - } - var wh = function() { - var t = bh, - e = 1, - n = 1, - r = !1; - function i(i) { - var o, - a = 0; - i.eachAfter(function(e) { - var n = e.children; - n - ? ((e.x = (function(t) { - return t.reduce(_h, 0) / t.length; - })(n)), - (e.y = (function(t) { - return 1 + t.reduce(xh, 0); - })(n))) - : ((e.x = o ? (a += t(e, o)) : 0), (e.y = 0), (o = e)); - }); - var s = (function(t) { - for (var e; (e = t.children); ) t = e[0]; - return t; - })(i), - u = (function(t) { - for (var e; (e = t.children); ) t = e[e.length - 1]; - return t; - })(i), - l = s.x - t(s, u) / 2, - c = u.x + t(u, s) / 2; - return i.eachAfter( - r - ? function(t) { - (t.x = (t.x - i.x) * e), (t.y = (i.y - t.y) * n); - } - : function(t) { - (t.x = ((t.x - l) / (c - l)) * e), - (t.y = (1 - (i.y ? t.y / i.y : 1)) * n); - } - ); - } - return ( - (i.separation = function(e) { - return arguments.length ? ((t = e), i) : t; - }), - (i.size = function(t) { - return arguments.length - ? ((r = !1), (e = +t[0]), (n = +t[1]), i) - : r - ? null - : [e, n]; - }), - (i.nodeSize = function(t) { - return arguments.length - ? ((r = !0), (e = +t[0]), (n = +t[1]), i) - : r - ? [e, n] - : null; - }), - i - ); - }; - function Sh(t) { - var e = 0, - n = t.children, - r = n && n.length; - if (r) for (; --r >= 0; ) e += n[r].value; - else e = 1; - t.value = e; - } - function Eh(t, e) { - var n, - r, - i, - o, - a, - s = new Ch(t), - u = +t.value && (s.value = t.value), - l = [s]; - for (null == e && (e = kh); (n = l.pop()); ) - if ( - (u && (n.value = +n.data.value), - (i = e(n.data)) && (a = i.length)) - ) - for (n.children = new Array(a), o = a - 1; o >= 0; --o) - l.push((r = n.children[o] = new Ch(i[o]))), - (r.parent = n), - (r.depth = n.depth + 1); - return s.eachBefore(Th); - } - function kh(t) { - return t.children; - } - function Ah(t) { - t.data = t.data.data; - } - function Th(t) { - var e = 0; - do { - t.height = e; - } while ((t = t.parent) && t.height < ++e); - } - function Ch(t) { - (this.data = t), - (this.depth = this.height = 0), - (this.parent = null); - } - Ch.prototype = Eh.prototype = { - constructor: Ch, - count: function() { - return this.eachAfter(Sh); - }, - each: function(t) { - var e, - n, - r, - i, - o = this, - a = [o]; - do { - for (e = a.reverse(), a = []; (o = e.pop()); ) - if ((t(o), (n = o.children))) - for (r = 0, i = n.length; r < i; ++r) a.push(n[r]); - } while (a.length); - return this; - }, - eachAfter: function(t) { - for (var e, n, r, i = this, o = [i], a = []; (i = o.pop()); ) - if ((a.push(i), (e = i.children))) - for (n = 0, r = e.length; n < r; ++n) o.push(e[n]); - for (; (i = a.pop()); ) t(i); - return this; - }, - eachBefore: function(t) { - for (var e, n, r = this, i = [r]; (r = i.pop()); ) - if ((t(r), (e = r.children))) - for (n = e.length - 1; n >= 0; --n) i.push(e[n]); - return this; - }, - sum: function(t) { - return this.eachAfter(function(e) { - for ( - var n = +t(e.data) || 0, - r = e.children, - i = r && r.length; - --i >= 0; - - ) - n += r[i].value; - e.value = n; - }); - }, - sort: function(t) { - return this.eachBefore(function(e) { - e.children && e.children.sort(t); - }); - }, - path: function(t) { - for ( - var e = this, - n = (function(t, e) { - if (t === e) return t; - var n = t.ancestors(), - r = e.ancestors(), - i = null; - for (t = n.pop(), e = r.pop(); t === e; ) - (i = t), (t = n.pop()), (e = r.pop()); - return i; - })(e, t), - r = [e]; - e !== n; - - ) - (e = e.parent), r.push(e); - for (var i = r.length; t !== n; ) - r.splice(i, 0, t), (t = t.parent); - return r; - }, - ancestors: function() { - for (var t = this, e = [t]; (t = t.parent); ) e.push(t); - return e; - }, - descendants: function() { - var t = []; - return ( - this.each(function(e) { - t.push(e); - }), - t - ); - }, - leaves: function() { - var t = []; - return ( - this.eachBefore(function(e) { - e.children || t.push(e); - }), - t - ); - }, - links: function() { - var t = this, - e = []; - return ( - t.each(function(n) { - n !== t && e.push({ source: n.parent, target: n }); - }), - e - ); - }, - copy: function() { - return Eh(this).eachBefore(Ah); - } - }; - var Oh = Array.prototype.slice, - Ph = function(t) { - for ( - var e, - n, - r = 0, - i = (t = (function(t) { - for (var e, n, r = t.length; r; ) - (n = (Math.random() * r--) | 0), - (e = t[r]), - (t[r] = t[n]), - (t[n] = e); - return t; - })(Oh.call(t))).length, - o = []; - r < i; - - ) - (e = t[r]), - n && Dh(n, e) ? ++r : ((n = Rh((o = Mh(o, e)))), (r = 0)); - return n; - }; - function Mh(t, e) { - var n, r; - if (jh(e, t)) return [e]; - for (n = 0; n < t.length; ++n) - if (Lh(e, t[n]) && jh(Nh(t[n], e), t)) return [t[n], e]; - for (n = 0; n < t.length - 1; ++n) - for (r = n + 1; r < t.length; ++r) - if ( - Lh(Nh(t[n], t[r]), e) && - Lh(Nh(t[n], e), t[r]) && - Lh(Nh(t[r], e), t[n]) && - jh(zh(t[n], t[r], e), t) - ) - return [t[n], t[r], e]; - throw new Error(); - } - function Lh(t, e) { - var n = t.r - e.r, - r = e.x - t.x, - i = e.y - t.y; - return n < 0 || n * n < r * r + i * i; - } - function Dh(t, e) { - var n = t.r - e.r + 1e-6, - r = e.x - t.x, - i = e.y - t.y; - return n > 0 && n * n > r * r + i * i; - } - function jh(t, e) { - for (var n = 0; n < e.length; ++n) if (!Dh(t, e[n])) return !1; - return !0; - } - function Rh(t) { - switch (t.length) { - case 1: - return { x: (e = t[0]).x, y: e.y, r: e.r }; - case 2: - return Nh(t[0], t[1]); - case 3: - return zh(t[0], t[1], t[2]); - } - var e; - } - function Nh(t, e) { - var n = t.x, - r = t.y, - i = t.r, - o = e.x, - a = e.y, - s = e.r, - u = o - n, - l = a - r, - c = s - i, - f = Math.sqrt(u * u + l * l); - return { - x: (n + o + (u / f) * c) / 2, - y: (r + a + (l / f) * c) / 2, - r: (f + i + s) / 2 - }; - } - function zh(t, e, n) { - var r = t.x, - i = t.y, - o = t.r, - a = e.x, - s = e.y, - u = e.r, - l = n.x, - c = n.y, - f = n.r, - d = r - a, - h = r - l, - p = i - s, - g = i - c, - v = u - o, - m = f - o, - y = r * r + i * i - o * o, - b = y - a * a - s * s + u * u, - _ = y - l * l - c * c + f * f, - x = h * p - d * g, - w = (p * _ - g * b) / (2 * x) - r, - S = (g * v - p * m) / x, - E = (h * b - d * _) / (2 * x) - i, - k = (d * m - h * v) / x, - A = S * S + k * k - 1, - T = 2 * (o + w * S + E * k), - C = w * w + E * E - o * o, - O = -(A - ? (T + Math.sqrt(T * T - 4 * A * C)) / (2 * A) - : C / T); - return { x: r + w + S * O, y: i + E + k * O, r: O }; - } - function Ih(t, e, n) { - var r, - i, - o, - a, - s = t.x - e.x, - u = t.y - e.y, - l = s * s + u * u; - l - ? ((i = e.r + n.r), - (i *= i), - (a = t.r + n.r), - i > (a *= a) - ? ((r = (l + a - i) / (2 * l)), - (o = Math.sqrt(Math.max(0, a / l - r * r))), - (n.x = t.x - r * s - o * u), - (n.y = t.y - r * u + o * s)) - : ((r = (l + i - a) / (2 * l)), - (o = Math.sqrt(Math.max(0, i / l - r * r))), - (n.x = e.x + r * s - o * u), - (n.y = e.y + r * u + o * s))) - : ((n.x = e.x + n.r), (n.y = e.y)); - } - function Fh(t, e) { - var n = t.r + e.r - 1e-6, - r = e.x - t.x, - i = e.y - t.y; - return n > 0 && n * n > r * r + i * i; - } - function Vh(t) { - var e = t._, - n = t.next._, - r = e.r + n.r, - i = (e.x * n.r + n.x * e.r) / r, - o = (e.y * n.r + n.y * e.r) / r; - return i * i + o * o; - } - function Bh(t) { - (this._ = t), (this.next = null), (this.previous = null); - } - function Gh(t) { - if (!(i = t.length)) return 0; - var e, n, r, i, o, a, s, u, l, c, f; - if ((((e = t[0]).x = 0), (e.y = 0), !(i > 1))) return e.r; - if ( - ((n = t[1]), (e.x = -n.r), (n.x = e.r), (n.y = 0), !(i > 2)) - ) - return e.r + n.r; - Ih(n, e, (r = t[2])), - (e = new Bh(e)), - (n = new Bh(n)), - (r = new Bh(r)), - (e.next = r.previous = n), - (n.next = e.previous = r), - (r.next = n.previous = e); - t: for (s = 3; s < i; ++s) { - Ih(e._, n._, (r = t[s])), - (r = new Bh(r)), - (u = n.next), - (l = e.previous), - (c = n._.r), - (f = e._.r); - do { - if (c <= f) { - if (Fh(u._, r._)) { - (n = u), (e.next = n), (n.previous = e), --s; - continue t; - } - (c += u._.r), (u = u.next); - } else { - if (Fh(l._, r._)) { - ((e = l).next = n), (n.previous = e), --s; - continue t; - } - (f += l._.r), (l = l.previous); - } - } while (u !== l.next); - for ( - r.previous = e, - r.next = n, - e.next = n.previous = n = r, - o = Vh(e); - (r = r.next) !== n; - - ) - (a = Vh(r)) < o && ((e = r), (o = a)); - n = e.next; - } - for (e = [n._], r = n; (r = r.next) !== n; ) e.push(r._); - for (r = Ph(e), s = 0; s < i; ++s) - ((e = t[s]).x -= r.x), (e.y -= r.y); - return r.r; - } - var Hh = function(t) { - return Gh(t), t; - }; - function Uh(t) { - return null == t ? null : qh(t); - } - function qh(t) { - if ('function' != typeof t) throw new Error(); - return t; - } - function Wh() { - return 0; - } - var Xh = function(t) { - return function() { - return t; - }; - }; - function Yh(t) { - return Math.sqrt(t.value); - } - var $h = function() { - var t = null, - e = 1, - n = 1, - r = Wh; - function i(i) { - return ( - (i.x = e / 2), - (i.y = n / 2), - t - ? i - .eachBefore(Qh(t)) - .eachAfter(Kh(r, 0.5)) - .eachBefore(Zh(1)) - : i - .eachBefore(Qh(Yh)) - .eachAfter(Kh(Wh, 1)) - .eachAfter(Kh(r, i.r / Math.min(e, n))) - .eachBefore(Zh(Math.min(e, n) / (2 * i.r))), - i - ); - } - return ( - (i.radius = function(e) { - return arguments.length ? ((t = Uh(e)), i) : t; - }), - (i.size = function(t) { - return arguments.length - ? ((e = +t[0]), (n = +t[1]), i) - : [e, n]; - }), - (i.padding = function(t) { - return arguments.length - ? ((r = 'function' == typeof t ? t : Xh(+t)), i) - : r; - }), - i - ); - }; - function Qh(t) { - return function(e) { - e.children || (e.r = Math.max(0, +t(e) || 0)); - }; - } - function Kh(t, e) { - return function(n) { - if ((r = n.children)) { - var r, - i, - o, - a = r.length, - s = t(n) * e || 0; - if (s) for (i = 0; i < a; ++i) r[i].r += s; - if (((o = Gh(r)), s)) for (i = 0; i < a; ++i) r[i].r -= s; - n.r = o + s; - } - }; - } - function Zh(t) { - return function(e) { - var n = e.parent; - (e.r *= t), - n && ((e.x = n.x + t * e.x), (e.y = n.y + t * e.y)); - }; - } - var Jh = function(t) { - (t.x0 = Math.round(t.x0)), - (t.y0 = Math.round(t.y0)), - (t.x1 = Math.round(t.x1)), - (t.y1 = Math.round(t.y1)); - }, - tp = function(t, e, n, r, i) { - for ( - var o, - a = t.children, - s = -1, - u = a.length, - l = t.value && (r - e) / t.value; - ++s < u; - - ) - ((o = a[s]).y0 = n), - (o.y1 = i), - (o.x0 = e), - (o.x1 = e += o.value * l); - }, - ep = function() { - var t = 1, - e = 1, - n = 0, - r = !1; - function i(i) { - var o = i.height + 1; - return ( - (i.x0 = i.y0 = n), - (i.x1 = t), - (i.y1 = e / o), - i.eachBefore( - (function(t, e) { - return function(r) { - r.children && - tp( - r, - r.x0, - (t * (r.depth + 1)) / e, - r.x1, - (t * (r.depth + 2)) / e - ); - var i = r.x0, - o = r.y0, - a = r.x1 - n, - s = r.y1 - n; - a < i && (i = a = (i + a) / 2), - s < o && (o = s = (o + s) / 2), - (r.x0 = i), - (r.y0 = o), - (r.x1 = a), - (r.y1 = s); - }; - })(e, o) - ), - r && i.eachBefore(Jh), - i - ); - } - return ( - (i.round = function(t) { - return arguments.length ? ((r = !!t), i) : r; - }), - (i.size = function(n) { - return arguments.length - ? ((t = +n[0]), (e = +n[1]), i) - : [t, e]; - }), - (i.padding = function(t) { - return arguments.length ? ((n = +t), i) : n; - }), - i - ); - }, - np = { depth: -1 }, - rp = {}; - function ip(t) { - return t.id; - } - function op(t) { - return t.parentId; - } - var ap = function() { - var t = ip, - e = op; - function n(n) { - var r, - i, - o, - a, - s, - u, - l, - c = n.length, - f = new Array(c), - d = {}; - for (i = 0; i < c; ++i) - (r = n[i]), - (s = f[i] = new Ch(r)), - null != (u = t(r, i, n)) && - (u += '') && - (d[(l = '$' + (s.id = u))] = l in d ? rp : s); - for (i = 0; i < c; ++i) - if ( - ((s = f[i]), null != (u = e(n[i], i, n)) && (u += '')) - ) { - if (!(a = d['$' + u])) throw new Error('missing: ' + u); - if (a === rp) throw new Error('ambiguous: ' + u); - a.children ? a.children.push(s) : (a.children = [s]), - (s.parent = a); - } else { - if (o) throw new Error('multiple roots'); - o = s; - } - if (!o) throw new Error('no root'); - if ( - ((o.parent = np), - o - .eachBefore(function(t) { - (t.depth = t.parent.depth + 1), --c; - }) - .eachBefore(Th), - (o.parent = null), - c > 0) - ) - throw new Error('cycle'); - return o; - } - return ( - (n.id = function(e) { - return arguments.length ? ((t = qh(e)), n) : t; - }), - (n.parentId = function(t) { - return arguments.length ? ((e = qh(t)), n) : e; - }), - n - ); - }; - function sp(t, e) { - return t.parent === e.parent ? 1 : 2; - } - function up(t) { - var e = t.children; - return e ? e[0] : t.t; - } - function lp(t) { - var e = t.children; - return e ? e[e.length - 1] : t.t; - } - function cp(t, e, n) { - var r = n / (e.i - t.i); - (e.c -= r), (e.s += n), (t.c += r), (e.z += n), (e.m += n); - } - function fp(t, e, n) { - return t.a.parent === e.parent ? t.a : n; - } - function dp(t, e) { - (this._ = t), - (this.parent = null), - (this.children = null), - (this.A = null), - (this.a = this), - (this.z = 0), - (this.m = 0), - (this.c = 0), - (this.s = 0), - (this.t = null), - (this.i = e); - } - dp.prototype = Object.create(Ch.prototype); - var hp = function() { - var t = sp, - e = 1, - n = 1, - r = null; - function i(i) { - var u = (function(t) { - for ( - var e, n, r, i, o, a = new dp(t, 0), s = [a]; - (e = s.pop()); - - ) - if ((r = e._.children)) - for ( - e.children = new Array((o = r.length)), i = o - 1; - i >= 0; - --i - ) - s.push((n = e.children[i] = new dp(r[i], i))), - (n.parent = e); - return ((a.parent = new dp(null, 0)).children = [a]), a; - })(i); - if ( - (u.eachAfter(o), (u.parent.m = -u.z), u.eachBefore(a), r) - ) - i.eachBefore(s); - else { - var l = i, - c = i, - f = i; - i.eachBefore(function(t) { - t.x < l.x && (l = t), - t.x > c.x && (c = t), - t.depth > f.depth && (f = t); - }); - var d = l === c ? 1 : t(l, c) / 2, - h = d - l.x, - p = e / (c.x + d + h), - g = n / (f.depth || 1); - i.eachBefore(function(t) { - (t.x = (t.x + h) * p), (t.y = t.depth * g); - }); - } - return i; - } - function o(e) { - var n = e.children, - r = e.parent.children, - i = e.i ? r[e.i - 1] : null; - if (n) { - !(function(t) { - for ( - var e, n = 0, r = 0, i = t.children, o = i.length; - --o >= 0; - - ) - ((e = i[o]).z += n), - (e.m += n), - (n += e.s + (r += e.c)); - })(e); - var o = (n[0].z + n[n.length - 1].z) / 2; - i - ? ((e.z = i.z + t(e._, i._)), (e.m = e.z - o)) - : (e.z = o); - } else i && (e.z = i.z + t(e._, i._)); - e.parent.A = (function(e, n, r) { - if (n) { - for ( - var i, - o = e, - a = e, - s = n, - u = o.parent.children[0], - l = o.m, - c = a.m, - f = s.m, - d = u.m; - (s = lp(s)), (o = up(o)), s && o; - - ) - (u = up(u)), - ((a = lp(a)).a = e), - (i = s.z + f - o.z - l + t(s._, o._)) > 0 && - (cp(fp(s, e, r), e, i), (l += i), (c += i)), - (f += s.m), - (l += o.m), - (d += u.m), - (c += a.m); - s && !lp(a) && ((a.t = s), (a.m += f - c)), - o && !up(u) && ((u.t = o), (u.m += l - d), (r = e)); - } - return r; - })(e, i, e.parent.A || r[0]); - } - function a(t) { - (t._.x = t.z + t.parent.m), (t.m += t.parent.m); - } - function s(t) { - (t.x *= e), (t.y = t.depth * n); - } - return ( - (i.separation = function(e) { - return arguments.length ? ((t = e), i) : t; - }), - (i.size = function(t) { - return arguments.length - ? ((r = !1), (e = +t[0]), (n = +t[1]), i) - : r - ? null - : [e, n]; - }), - (i.nodeSize = function(t) { - return arguments.length - ? ((r = !0), (e = +t[0]), (n = +t[1]), i) - : r - ? [e, n] - : null; - }), - i - ); - }, - pp = function(t, e, n, r, i) { - for ( - var o, - a = t.children, - s = -1, - u = a.length, - l = t.value && (i - n) / t.value; - ++s < u; - - ) - ((o = a[s]).x0 = e), - (o.x1 = r), - (o.y0 = n), - (o.y1 = n += o.value * l); - }, - gp = (1 + Math.sqrt(5)) / 2; - function vp(t, e, n, r, i, o) { - for ( - var a, - s, - u, - l, - c, - f, - d, - h, - p, - g, - v, - m = [], - y = e.children, - b = 0, - _ = 0, - x = y.length, - w = e.value; - b < x; - - ) { - (u = i - n), (l = o - r); - do { - c = y[_++].value; - } while (!c && _ < x); - for ( - f = d = c, - v = c * c * (g = Math.max(l / u, u / l) / (w * t)), - p = Math.max(d / v, v / f); - _ < x; - ++_ - ) { - if ( - ((c += s = y[_].value), - s < f && (f = s), - s > d && (d = s), - (v = c * c * g), - (h = Math.max(d / v, v / f)) > p) - ) { - c -= s; - break; - } - p = h; - } - m.push( - (a = { value: c, dice: u < l, children: y.slice(b, _) }) - ), - a.dice - ? tp(a, n, r, i, w ? (r += (l * c) / w) : o) - : pp(a, n, r, w ? (n += (u * c) / w) : i, o), - (w -= c), - (b = _); - } - return m; - } - var mp = (function t(e) { - function n(t, n, r, i, o) { - vp(e, t, n, r, i, o); - } - return ( - (n.ratio = function(e) { - return t((e = +e) > 1 ? e : 1); - }), - n - ); - })(gp), - yp = function() { - var t = mp, - e = !1, - n = 1, - r = 1, - i = [0], - o = Wh, - a = Wh, - s = Wh, - u = Wh, - l = Wh; - function c(t) { - return ( - (t.x0 = t.y0 = 0), - (t.x1 = n), - (t.y1 = r), - t.eachBefore(f), - (i = [0]), - e && t.eachBefore(Jh), - t - ); - } - function f(e) { - var n = i[e.depth], - r = e.x0 + n, - c = e.y0 + n, - f = e.x1 - n, - d = e.y1 - n; - f < r && (r = f = (r + f) / 2), - d < c && (c = d = (c + d) / 2), - (e.x0 = r), - (e.y0 = c), - (e.x1 = f), - (e.y1 = d), - e.children && - ((n = i[e.depth + 1] = o(e) / 2), - (r += l(e) - n), - (c += a(e) - n), - (f -= s(e) - n) < r && (r = f = (r + f) / 2), - (d -= u(e) - n) < c && (c = d = (c + d) / 2), - t(e, r, c, f, d)); - } - return ( - (c.round = function(t) { - return arguments.length ? ((e = !!t), c) : e; - }), - (c.size = function(t) { - return arguments.length - ? ((n = +t[0]), (r = +t[1]), c) - : [n, r]; - }), - (c.tile = function(e) { - return arguments.length ? ((t = qh(e)), c) : t; - }), - (c.padding = function(t) { - return arguments.length - ? c.paddingInner(t).paddingOuter(t) - : c.paddingInner(); - }), - (c.paddingInner = function(t) { - return arguments.length - ? ((o = 'function' == typeof t ? t : Xh(+t)), c) - : o; - }), - (c.paddingOuter = function(t) { - return arguments.length - ? c - .paddingTop(t) - .paddingRight(t) - .paddingBottom(t) - .paddingLeft(t) - : c.paddingTop(); - }), - (c.paddingTop = function(t) { - return arguments.length - ? ((a = 'function' == typeof t ? t : Xh(+t)), c) - : a; - }), - (c.paddingRight = function(t) { - return arguments.length - ? ((s = 'function' == typeof t ? t : Xh(+t)), c) - : s; - }), - (c.paddingBottom = function(t) { - return arguments.length - ? ((u = 'function' == typeof t ? t : Xh(+t)), c) - : u; - }), - (c.paddingLeft = function(t) { - return arguments.length - ? ((l = 'function' == typeof t ? t : Xh(+t)), c) - : l; - }), - c - ); - }, - bp = function(t, e, n, r, i) { - var o, - a, - s = t.children, - u = s.length, - l = new Array(u + 1); - for (l[0] = a = o = 0; o < u; ++o) l[o + 1] = a += s[o].value; - !(function t(e, n, r, i, o, a, u) { - if (e >= n - 1) { - var c = s[e]; - return ( - (c.x0 = i), (c.y0 = o), (c.x1 = a), void (c.y1 = u) - ); - } - for ( - var f = l[e], d = r / 2 + f, h = e + 1, p = n - 1; - h < p; - - ) { - var g = (h + p) >>> 1; - l[g] < d ? (h = g + 1) : (p = g); - } - d - l[h - 1] < l[h] - d && e + 1 < h && --h; - var v = l[h] - f, - m = r - v; - if (a - i > u - o) { - var y = (i * m + a * v) / r; - t(e, h, v, i, o, y, u), t(h, n, m, y, o, a, u); - } else { - var b = (o * m + u * v) / r; - t(e, h, v, i, o, a, b), t(h, n, m, i, b, a, u); - } - })(0, u, t.value, e, n, r, i); - }, - _p = function(t, e, n, r, i) { - (1 & t.depth ? pp : tp)(t, e, n, r, i); - }, - xp = (function t(e) { - function n(t, n, r, i, o) { - if ((a = t._squarify) && a.ratio === e) - for ( - var a, s, u, l, c, f = -1, d = a.length, h = t.value; - ++f < d; - - ) { - for ( - u = (s = a[f]).children, - l = s.value = 0, - c = u.length; - l < c; - ++l - ) - s.value += u[l].value; - s.dice - ? tp(s, n, r, i, (r += ((o - r) * s.value) / h)) - : pp(s, n, r, (n += ((i - n) * s.value) / h), o), - (h -= s.value); - } - else - (t._squarify = a = vp(e, t, n, r, i, o)), (a.ratio = e); - } - return ( - (n.ratio = function(e) { - return t((e = +e) > 1 ? e : 1); - }), - n - ); - })(gp), - wp = function(t) { - for ( - var e, n = -1, r = t.length, i = t[r - 1], o = 0; - ++n < r; - - ) - (e = i), (i = t[n]), (o += e[1] * i[0] - e[0] * i[1]); - return o / 2; - }, - Sp = function(t) { - for ( - var e, - n, - r = -1, - i = t.length, - o = 0, - a = 0, - s = t[i - 1], - u = 0; - ++r < i; - - ) - (e = s), - (s = t[r]), - (u += n = e[0] * s[1] - s[0] * e[1]), - (o += (e[0] + s[0]) * n), - (a += (e[1] + s[1]) * n); - return [o / (u *= 3), a / u]; - }; - function Ep(t, e) { - return t[0] - e[0] || t[1] - e[1]; - } - function kp(t) { - for ( - var e, n, r, i = t.length, o = [0, 1], a = 2, s = 2; - s < i; - ++s - ) { - for ( - ; - a > 1 && - ((e = t[o[a - 2]]), - (n = t[o[a - 1]]), - (r = t[s]), - (n[0] - e[0]) * (r[1] - e[1]) - - (n[1] - e[1]) * (r[0] - e[0]) <= - 0); - - ) - --a; - o[a++] = s; - } - return o.slice(0, a); - } - var Ap = function(t) { - if ((n = t.length) < 3) return null; - var e, - n, - r = new Array(n), - i = new Array(n); - for (e = 0; e < n; ++e) r[e] = [+t[e][0], +t[e][1], e]; - for (r.sort(Ep), e = 0; e < n; ++e) - i[e] = [r[e][0], -r[e][1]]; - var o = kp(r), - a = kp(i), - s = a[0] === o[0], - u = a[a.length - 1] === o[o.length - 1], - l = []; - for (e = o.length - 1; e >= 0; --e) l.push(t[r[o[e]][2]]); - for (e = +s; e < a.length - u; ++e) l.push(t[r[a[e]][2]]); - return l; - }, - Tp = function(t, e) { - for ( - var n, - r, - i = t.length, - o = t[i - 1], - a = e[0], - s = e[1], - u = o[0], - l = o[1], - c = !1, - f = 0; - f < i; - ++f - ) - (n = (o = t[f])[0]), - (r = o[1]) > s != l > s && - a < ((u - n) * (s - r)) / (l - r) + n && - (c = !c), - (u = n), - (l = r); - return c; - }, - Cp = function(t) { - for ( - var e, - n, - r = -1, - i = t.length, - o = t[i - 1], - a = o[0], - s = o[1], - u = 0; - ++r < i; - - ) - (e = a), - (n = s), - (e -= a = (o = t[r])[0]), - (n -= s = o[1]), - (u += Math.sqrt(e * e + n * n)); - return u; - }, - Op = function() { - return Math.random(); - }, - Pp = (function t(e) { - function n(t, n) { - return ( - (t = null == t ? 0 : +t), - (n = null == n ? 1 : +n), - 1 === arguments.length ? ((n = t), (t = 0)) : (n -= t), - function() { - return e() * n + t; - } - ); - } - return (n.source = t), n; - })(Op), - Mp = (function t(e) { - function n(t, n) { - var r, i; - return ( - (t = null == t ? 0 : +t), - (n = null == n ? 1 : +n), - function() { - var o; - if (null != r) (o = r), (r = null); - else - do { - (r = 2 * e() - 1), - (o = 2 * e() - 1), - (i = r * r + o * o); - } while (!i || i > 1); - return t + n * o * Math.sqrt((-2 * Math.log(i)) / i); - } - ); - } - return (n.source = t), n; - })(Op), - Lp = (function t(e) { - function n() { - var t = Mp.source(e).apply(this, arguments); - return function() { - return Math.exp(t()); - }; - } - return (n.source = t), n; - })(Op), - Dp = (function t(e) { - function n(t) { - return function() { - for (var n = 0, r = 0; r < t; ++r) n += e(); - return n; - }; - } - return (n.source = t), n; - })(Op), - jp = (function t(e) { - function n(t) { - var n = Dp.source(e)(t); - return function() { - return n() / t; - }; - } - return (n.source = t), n; - })(Op), - Rp = (function t(e) { - function n(t) { - return function() { - return -Math.log(1 - e()) / t; - }; - } - return (n.source = t), n; - })(Op); - function Np(t, e) { - switch (arguments.length) { - case 0: - break; - case 1: - this.range(t); - break; - default: - this.range(e).domain(t); - } - return this; - } - function zp(t, e) { - switch (arguments.length) { - case 0: - break; - case 1: - this.interpolator(t); - break; - default: - this.interpolator(e).domain(t); - } - return this; - } - var Ip = Array.prototype, - Fp = Ip.map, - Vp = Ip.slice, - Bp = { name: 'implicit' }; - function Gp() { - var t = xa(), - e = [], - n = [], - r = Bp; - function i(i) { - var o = i + '', - a = t.get(o); - if (!a) { - if (r !== Bp) return r; - t.set(o, (a = e.push(i))); - } - return n[(a - 1) % n.length]; - } - return ( - (i.domain = function(n) { - if (!arguments.length) return e.slice(); - (e = []), (t = xa()); - for (var r, o, a = -1, s = n.length; ++a < s; ) - t.has((o = (r = n[a]) + '')) || t.set(o, e.push(r)); - return i; - }), - (i.range = function(t) { - return arguments.length ? ((n = Vp.call(t)), i) : n.slice(); - }), - (i.unknown = function(t) { - return arguments.length ? ((r = t), i) : r; - }), - (i.copy = function() { - return Gp(e, n).unknown(r); - }), - Np.apply(i, arguments), - i - ); - } - function Hp() { - var t, - e, - n = Gp().unknown(void 0), - r = n.domain, - i = n.range, - o = [0, 1], - a = !1, - s = 0, - u = 0, - l = 0.5; - function c() { - var n = r().length, - c = o[1] < o[0], - f = o[c - 0], - d = o[1 - c]; - (t = (d - f) / Math.max(1, n - s + 2 * u)), - a && (t = Math.floor(t)), - (f += (d - f - t * (n - s)) * l), - (e = t * (1 - s)), - a && ((f = Math.round(f)), (e = Math.round(e))); - var h = w(n).map(function(e) { - return f + t * e; - }); - return i(c ? h.reverse() : h); - } - return ( - delete n.unknown, - (n.domain = function(t) { - return arguments.length ? (r(t), c()) : r(); - }), - (n.range = function(t) { - return arguments.length - ? ((o = [+t[0], +t[1]]), c()) - : o.slice(); - }), - (n.rangeRound = function(t) { - return (o = [+t[0], +t[1]]), (a = !0), c(); - }), - (n.bandwidth = function() { - return e; - }), - (n.step = function() { - return t; - }), - (n.round = function(t) { - return arguments.length ? ((a = !!t), c()) : a; - }), - (n.padding = function(t) { - return arguments.length - ? ((s = Math.min(1, (u = +t))), c()) - : s; - }), - (n.paddingInner = function(t) { - return arguments.length ? ((s = Math.min(1, t)), c()) : s; - }), - (n.paddingOuter = function(t) { - return arguments.length ? ((u = +t), c()) : u; - }), - (n.align = function(t) { - return arguments.length - ? ((l = Math.max(0, Math.min(1, t))), c()) - : l; - }), - (n.copy = function() { - return Hp(r(), o) - .round(a) - .paddingInner(s) - .paddingOuter(u) - .align(l); - }), - Np.apply(c(), arguments) - ); - } - function Up(t) { - var e = t.copy; - return ( - (t.padding = t.paddingOuter), - delete t.paddingInner, - delete t.paddingOuter, - (t.copy = function() { - return Up(e()); - }), - t - ); - } - function qp() { - return Up(Hp.apply(null, arguments).paddingInner(1)); - } - var Wp = function(t) { - return +t; - }, - Xp = [0, 1]; - function Yp(t) { - return t; - } - function $p(t, e) { - return (e -= t = +t) - ? function(n) { - return (n - t) / e; - } - : ((n = isNaN(e) ? NaN : 0.5), - function() { - return n; - }); - var n; - } - function Qp(t) { - var e, - n = t[0], - r = t[t.length - 1]; - return ( - n > r && ((e = n), (n = r), (r = e)), - function(t) { - return Math.max(n, Math.min(r, t)); - } - ); - } - function Kp(t, e, n) { - var r = t[0], - i = t[1], - o = e[0], - a = e[1]; - return ( - i < r - ? ((r = $p(i, r)), (o = n(a, o))) - : ((r = $p(r, i)), (o = n(o, a))), - function(t) { - return o(r(t)); - } - ); - } - function Zp(t, e, n) { - var r = Math.min(t.length, e.length) - 1, - i = new Array(r), - o = new Array(r), - a = -1; - for ( - t[r] < t[0] && - ((t = t.slice().reverse()), (e = e.slice().reverse())); - ++a < r; - - ) - (i[a] = $p(t[a], t[a + 1])), (o[a] = n(e[a], e[a + 1])); - return function(e) { - var n = u(t, e, 1, r) - 1; - return o[n](i[n](e)); - }; - } - function Jp(t, e) { - return e - .domain(t.domain()) - .range(t.range()) - .interpolate(t.interpolate()) - .clamp(t.clamp()) - .unknown(t.unknown()); - } - function tg() { - var t, - e, - n, - r, - i, - o, - a = Xp, - s = Xp, - u = Un, - l = Yp; - function c() { - return ( - (r = Math.min(a.length, s.length) > 2 ? Zp : Kp), - (i = o = null), - f - ); - } - function f(e) { - return isNaN((e = +e)) - ? n - : (i || (i = r(a.map(t), s, u)))(t(l(e))); - } - return ( - (f.invert = function(n) { - return l(e((o || (o = r(s, a.map(t), Fn)))(n))); - }), - (f.domain = function(t) { - return arguments.length - ? ((a = Fp.call(t, Wp)), l === Yp || (l = Qp(a)), c()) - : a.slice(); - }), - (f.range = function(t) { - return arguments.length - ? ((s = Vp.call(t)), c()) - : s.slice(); - }), - (f.rangeRound = function(t) { - return (s = Vp.call(t)), (u = Xn), c(); - }), - (f.clamp = function(t) { - return arguments.length - ? ((l = t ? Qp(a) : Yp), f) - : l !== Yp; - }), - (f.interpolate = function(t) { - return arguments.length ? ((u = t), c()) : u; - }), - (f.unknown = function(t) { - return arguments.length ? ((n = t), f) : n; - }), - function(n, r) { - return (t = n), (e = r), c(); - } - ); - } - function eg(t, e) { - return tg()(t, e); - } - var ng = function(t, e, n, r) { - var i, - o = C(t, e, n); - switch ((r = au(null == r ? ',f' : r)).type) { - case 's': - var a = Math.max(Math.abs(t), Math.abs(e)); - return ( - null != r.precision || - isNaN((i = _u(o, a))) || - (r.precision = i), - fu(r, a) - ); - case '': - case 'e': - case 'g': - case 'p': - case 'r': - null != r.precision || - isNaN((i = xu(o, Math.max(Math.abs(t), Math.abs(e))))) || - (r.precision = i - ('e' === r.type)); - break; - case 'f': - case '%': - null != r.precision || - isNaN((i = bu(o))) || - (r.precision = i - 2 * ('%' === r.type)); - } - return cu(r); - }; - function rg(t) { - var e = t.domain; - return ( - (t.ticks = function(t) { - var n = e(); - return A(n[0], n[n.length - 1], null == t ? 10 : t); - }), - (t.tickFormat = function(t, n) { - var r = e(); - return ng(r[0], r[r.length - 1], null == t ? 10 : t, n); - }), - (t.nice = function(n) { - null == n && (n = 10); - var r, - i = e(), - o = 0, - a = i.length - 1, - s = i[o], - u = i[a]; - return ( - u < s && - ((r = s), (s = u), (u = r), (r = o), (o = a), (a = r)), - (r = T(s, u, n)) > 0 - ? (r = T( - (s = Math.floor(s / r) * r), - (u = Math.ceil(u / r) * r), - n - )) - : r < 0 && - (r = T( - (s = Math.ceil(s * r) / r), - (u = Math.floor(u * r) / r), - n - )), - r > 0 - ? ((i[o] = Math.floor(s / r) * r), - (i[a] = Math.ceil(u / r) * r), - e(i)) - : r < 0 && - ((i[o] = Math.ceil(s * r) / r), - (i[a] = Math.floor(u * r) / r), - e(i)), - t - ); - }), - t - ); - } - function ig() { - var t = eg(Yp, Yp); - return ( - (t.copy = function() { - return Jp(t, ig()); - }), - Np.apply(t, arguments), - rg(t) - ); - } - function og(t) { - var e; - function n(t) { - return isNaN((t = +t)) ? e : t; - } - return ( - (n.invert = n), - (n.domain = n.range = function(e) { - return arguments.length - ? ((t = Fp.call(e, Wp)), n) - : t.slice(); - }), - (n.unknown = function(t) { - return arguments.length ? ((e = t), n) : e; - }), - (n.copy = function() { - return og(t).unknown(e); - }), - (t = arguments.length ? Fp.call(t, Wp) : [0, 1]), - rg(n) - ); - } - var ag = function(t, e) { - var n, - r = 0, - i = (t = t.slice()).length - 1, - o = t[r], - a = t[i]; - return ( - a < o && - ((n = r), (r = i), (i = n), (n = o), (o = a), (a = n)), - (t[r] = e.floor(o)), - (t[i] = e.ceil(a)), - t - ); - }; - function sg(t) { - return Math.log(t); - } - function ug(t) { - return Math.exp(t); - } - function lg(t) { - return -Math.log(-t); - } - function cg(t) { - return -Math.exp(-t); - } - function fg(t) { - return isFinite(t) ? +('1e' + t) : t < 0 ? 0 : t; - } - function dg(t) { - return function(e) { - return -t(-e); - }; - } - function hg(t) { - var e, - n, - r = t(sg, ug), - i = r.domain, - o = 10; - function a() { - return ( - (e = (function(t) { - return t === Math.E - ? Math.log - : (10 === t && Math.log10) || - (2 === t && Math.log2) || - ((t = Math.log(t)), - function(e) { - return Math.log(e) / t; - }); - })(o)), - (n = (function(t) { - return 10 === t - ? fg - : t === Math.E - ? Math.exp - : function(e) { - return Math.pow(t, e); - }; - })(o)), - i()[0] < 0 - ? ((e = dg(e)), (n = dg(n)), t(lg, cg)) - : t(sg, ug), - r - ); - } - return ( - (r.base = function(t) { - return arguments.length ? ((o = +t), a()) : o; - }), - (r.domain = function(t) { - return arguments.length ? (i(t), a()) : i(); - }), - (r.ticks = function(t) { - var r, - a = i(), - s = a[0], - u = a[a.length - 1]; - (r = u < s) && ((d = s), (s = u), (u = d)); - var l, - c, - f, - d = e(s), - h = e(u), - p = null == t ? 10 : +t, - g = []; - if (!(o % 1) && h - d < p) { - if ( - ((d = Math.round(d) - 1), - (h = Math.round(h) + 1), - s > 0) - ) { - for (; d < h; ++d) - for (c = 1, l = n(d); c < o; ++c) - if (!((f = l * c) < s)) { - if (f > u) break; - g.push(f); - } - } else - for (; d < h; ++d) - for (c = o - 1, l = n(d); c >= 1; --c) - if (!((f = l * c) < s)) { - if (f > u) break; - g.push(f); - } - } else g = A(d, h, Math.min(h - d, p)).map(n); - return r ? g.reverse() : g; - }), - (r.tickFormat = function(t, i) { - if ( - (null == i && (i = 10 === o ? '.0e' : ','), - 'function' != typeof i && (i = cu(i)), - t === 1 / 0) - ) - return i; - null == t && (t = 10); - var a = Math.max(1, (o * t) / r.ticks().length); - return function(t) { - var r = t / n(Math.round(e(t))); - return r * o < o - 0.5 && (r *= o), r <= a ? i(t) : ''; - }; - }), - (r.nice = function() { - return i( - ag(i(), { - floor: function(t) { - return n(Math.floor(e(t))); - }, - ceil: function(t) { - return n(Math.ceil(e(t))); - } - }) - ); - }), - r - ); - } - function pg() { - var t = hg(tg()).domain([1, 10]); - return ( - (t.copy = function() { - return Jp(t, pg()).base(t.base()); - }), - Np.apply(t, arguments), - t - ); - } - function gg(t) { - return function(e) { - return Math.sign(e) * Math.log1p(Math.abs(e / t)); - }; - } - function vg(t) { - return function(e) { - return Math.sign(e) * Math.expm1(Math.abs(e)) * t; - }; - } - function mg(t) { - var e = 1, - n = t(gg(e), vg(e)); - return ( - (n.constant = function(n) { - return arguments.length ? t(gg((e = +n)), vg(e)) : e; - }), - rg(n) - ); - } - function yg() { - var t = mg(tg()); - return ( - (t.copy = function() { - return Jp(t, yg()).constant(t.constant()); - }), - Np.apply(t, arguments) - ); - } - function bg(t) { - return function(e) { - return e < 0 ? -Math.pow(-e, t) : Math.pow(e, t); - }; - } - function _g(t) { - return t < 0 ? -Math.sqrt(-t) : Math.sqrt(t); - } - function xg(t) { - return t < 0 ? -t * t : t * t; - } - function wg(t) { - var e = t(Yp, Yp), - n = 1; - function r() { - return 1 === n - ? t(Yp, Yp) - : 0.5 === n - ? t(_g, xg) - : t(bg(n), bg(1 / n)); - } - return ( - (e.exponent = function(t) { - return arguments.length ? ((n = +t), r()) : n; - }), - rg(e) - ); - } - function Sg() { - var t = wg(tg()); - return ( - (t.copy = function() { - return Jp(t, Sg()).exponent(t.exponent()); - }), - Np.apply(t, arguments), - t - ); - } - function Eg() { - return Sg.apply(null, arguments).exponent(0.5); - } - function kg() { - var t, - e = [], - n = [], - i = []; - function o() { - var t = 0, - r = Math.max(1, n.length); - for (i = new Array(r - 1); ++t < r; ) i[t - 1] = M(e, t / r); - return a; - } - function a(e) { - return isNaN((e = +e)) ? t : n[u(i, e)]; - } - return ( - (a.invertExtent = function(t) { - var r = n.indexOf(t); - return r < 0 - ? [NaN, NaN] - : [ - r > 0 ? i[r - 1] : e[0], - r < i.length ? i[r] : e[e.length - 1] - ]; - }), - (a.domain = function(t) { - if (!arguments.length) return e.slice(); - e = []; - for (var n, i = 0, a = t.length; i < a; ++i) - null == (n = t[i]) || isNaN((n = +n)) || e.push(n); - return e.sort(r), o(); - }), - (a.range = function(t) { - return arguments.length - ? ((n = Vp.call(t)), o()) - : n.slice(); - }), - (a.unknown = function(e) { - return arguments.length ? ((t = e), a) : t; - }), - (a.quantiles = function() { - return i.slice(); - }), - (a.copy = function() { - return kg() - .domain(e) - .range(n) - .unknown(t); - }), - Np.apply(a, arguments) - ); - } - function Ag() { - var t, - e = 0, - n = 1, - r = 1, - i = [0.5], - o = [0, 1]; - function a(e) { - return e <= e ? o[u(i, e, 0, r)] : t; - } - function s() { - var t = -1; - for (i = new Array(r); ++t < r; ) - i[t] = ((t + 1) * n - (t - r) * e) / (r + 1); - return a; - } - return ( - (a.domain = function(t) { - return arguments.length - ? ((e = +t[0]), (n = +t[1]), s()) - : [e, n]; - }), - (a.range = function(t) { - return arguments.length - ? ((r = (o = Vp.call(t)).length - 1), s()) - : o.slice(); - }), - (a.invertExtent = function(t) { - var a = o.indexOf(t); - return a < 0 - ? [NaN, NaN] - : a < 1 - ? [e, i[0]] - : a >= r - ? [i[r - 1], n] - : [i[a - 1], i[a]]; - }), - (a.unknown = function(e) { - return arguments.length ? ((t = e), a) : a; - }), - (a.thresholds = function() { - return i.slice(); - }), - (a.copy = function() { - return Ag() - .domain([e, n]) - .range(o) - .unknown(t); - }), - Np.apply(rg(a), arguments) - ); - } - function Tg() { - var t, - e = [0.5], - n = [0, 1], - r = 1; - function i(i) { - return i <= i ? n[u(e, i, 0, r)] : t; - } - return ( - (i.domain = function(t) { - return arguments.length - ? ((e = Vp.call(t)), - (r = Math.min(e.length, n.length - 1)), - i) - : e.slice(); - }), - (i.range = function(t) { - return arguments.length - ? ((n = Vp.call(t)), - (r = Math.min(e.length, n.length - 1)), - i) - : n.slice(); - }), - (i.invertExtent = function(t) { - var r = n.indexOf(t); - return [e[r - 1], e[r]]; - }), - (i.unknown = function(e) { - return arguments.length ? ((t = e), i) : t; - }), - (i.copy = function() { - return Tg() - .domain(e) - .range(n) - .unknown(t); - }), - Np.apply(i, arguments) - ); - } - var Cg = new Date(), - Og = new Date(); - function Pg(t, e, n, r) { - function i(e) { - return ( - t((e = 0 === arguments.length ? new Date() : new Date(+e))), - e - ); - } - return ( - (i.floor = function(e) { - return t((e = new Date(+e))), e; - }), - (i.ceil = function(n) { - return t((n = new Date(n - 1))), e(n, 1), t(n), n; - }), - (i.round = function(t) { - var e = i(t), - n = i.ceil(t); - return t - e < n - t ? e : n; - }), - (i.offset = function(t, n) { - return ( - e((t = new Date(+t)), null == n ? 1 : Math.floor(n)), t - ); - }), - (i.range = function(n, r, o) { - var a, - s = []; - if ( - ((n = i.ceil(n)), - (o = null == o ? 1 : Math.floor(o)), - !(n < r && o > 0)) - ) - return s; - do { - s.push((a = new Date(+n))), e(n, o), t(n); - } while (a < n && n < r); - return s; - }), - (i.filter = function(n) { - return Pg( - function(e) { - if (e >= e) for (; t(e), !n(e); ) e.setTime(e - 1); - }, - function(t, r) { - if (t >= t) - if (r < 0) - for (; ++r <= 0; ) for (; e(t, -1), !n(t); ); - else for (; --r >= 0; ) for (; e(t, 1), !n(t); ); - } - ); - }), - n && - ((i.count = function(e, r) { - return ( - Cg.setTime(+e), - Og.setTime(+r), - t(Cg), - t(Og), - Math.floor(n(Cg, Og)) - ); - }), - (i.every = function(t) { - return ( - (t = Math.floor(t)), - isFinite(t) && t > 0 - ? t > 1 - ? i.filter( - r - ? function(e) { - return r(e) % t == 0; - } - : function(e) { - return i.count(0, e) % t == 0; - } - ) - : i - : null - ); - })), - i - ); - } - var Mg = Pg( - function(t) { - t.setMonth(0, 1), t.setHours(0, 0, 0, 0); - }, - function(t, e) { - t.setFullYear(t.getFullYear() + e); - }, - function(t, e) { - return e.getFullYear() - t.getFullYear(); - }, - function(t) { - return t.getFullYear(); - } - ); - Mg.every = function(t) { - return isFinite((t = Math.floor(t))) && t > 0 - ? Pg( - function(e) { - e.setFullYear(Math.floor(e.getFullYear() / t) * t), - e.setMonth(0, 1), - e.setHours(0, 0, 0, 0); - }, - function(e, n) { - e.setFullYear(e.getFullYear() + n * t); - } - ) - : null; - }; - var Lg = Mg, - Dg = Mg.range, - jg = Pg( - function(t) { - t.setDate(1), t.setHours(0, 0, 0, 0); - }, - function(t, e) { - t.setMonth(t.getMonth() + e); - }, - function(t, e) { - return ( - e.getMonth() - - t.getMonth() + - 12 * (e.getFullYear() - t.getFullYear()) - ); - }, - function(t) { - return t.getMonth(); - } - ), - Rg = jg, - Ng = jg.range; - function zg(t) { - return Pg( - function(e) { - e.setDate(e.getDate() - ((e.getDay() + 7 - t) % 7)), - e.setHours(0, 0, 0, 0); - }, - function(t, e) { - t.setDate(t.getDate() + 7 * e); - }, - function(t, e) { - return ( - (e - - t - - 6e4 * (e.getTimezoneOffset() - t.getTimezoneOffset())) / - 6048e5 - ); - } - ); - } - var Ig = zg(0), - Fg = zg(1), - Vg = zg(2), - Bg = zg(3), - Gg = zg(4), - Hg = zg(5), - Ug = zg(6), - qg = Ig.range, - Wg = Fg.range, - Xg = Vg.range, - Yg = Bg.range, - $g = Gg.range, - Qg = Hg.range, - Kg = Ug.range, - Zg = Pg( - function(t) { - t.setHours(0, 0, 0, 0); - }, - function(t, e) { - t.setDate(t.getDate() + e); - }, - function(t, e) { - return ( - (e - - t - - 6e4 * (e.getTimezoneOffset() - t.getTimezoneOffset())) / - 864e5 - ); - }, - function(t) { - return t.getDate() - 1; - } - ), - Jg = Zg, - tv = Zg.range, - ev = Pg( - function(t) { - t.setTime( - t - - t.getMilliseconds() - - 1e3 * t.getSeconds() - - 6e4 * t.getMinutes() - ); - }, - function(t, e) { - t.setTime(+t + 36e5 * e); - }, - function(t, e) { - return (e - t) / 36e5; - }, - function(t) { - return t.getHours(); - } - ), - nv = ev, - rv = ev.range, - iv = Pg( - function(t) { - t.setTime(t - t.getMilliseconds() - 1e3 * t.getSeconds()); - }, - function(t, e) { - t.setTime(+t + 6e4 * e); - }, - function(t, e) { - return (e - t) / 6e4; - }, - function(t) { - return t.getMinutes(); - } - ), - ov = iv, - av = iv.range, - sv = Pg( - function(t) { - t.setTime(t - t.getMilliseconds()); - }, - function(t, e) { - t.setTime(+t + 1e3 * e); - }, - function(t, e) { - return (e - t) / 1e3; - }, - function(t) { - return t.getUTCSeconds(); - } - ), - uv = sv, - lv = sv.range, - cv = Pg( - function() {}, - function(t, e) { - t.setTime(+t + e); - }, - function(t, e) { - return e - t; - } - ); - cv.every = function(t) { - return ( - (t = Math.floor(t)), - isFinite(t) && t > 0 - ? t > 1 - ? Pg( - function(e) { - e.setTime(Math.floor(e / t) * t); - }, - function(e, n) { - e.setTime(+e + n * t); - }, - function(e, n) { - return (n - e) / t; - } - ) - : cv - : null - ); - }; - var fv = cv, - dv = cv.range; - function hv(t) { - return Pg( - function(e) { - e.setUTCDate( - e.getUTCDate() - ((e.getUTCDay() + 7 - t) % 7) - ), - e.setUTCHours(0, 0, 0, 0); - }, - function(t, e) { - t.setUTCDate(t.getUTCDate() + 7 * e); - }, - function(t, e) { - return (e - t) / 6048e5; - } - ); - } - var pv = hv(0), - gv = hv(1), - vv = hv(2), - mv = hv(3), - yv = hv(4), - bv = hv(5), - _v = hv(6), - xv = pv.range, - wv = gv.range, - Sv = vv.range, - Ev = mv.range, - kv = yv.range, - Av = bv.range, - Tv = _v.range, - Cv = Pg( - function(t) { - t.setUTCHours(0, 0, 0, 0); - }, - function(t, e) { - t.setUTCDate(t.getUTCDate() + e); - }, - function(t, e) { - return (e - t) / 864e5; - }, - function(t) { - return t.getUTCDate() - 1; - } - ), - Ov = Cv, - Pv = Cv.range, - Mv = Pg( - function(t) { - t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0); - }, - function(t, e) { - t.setUTCFullYear(t.getUTCFullYear() + e); - }, - function(t, e) { - return e.getUTCFullYear() - t.getUTCFullYear(); - }, - function(t) { - return t.getUTCFullYear(); - } - ); - Mv.every = function(t) { - return isFinite((t = Math.floor(t))) && t > 0 - ? Pg( - function(e) { - e.setUTCFullYear( - Math.floor(e.getUTCFullYear() / t) * t - ), - e.setUTCMonth(0, 1), - e.setUTCHours(0, 0, 0, 0); - }, - function(e, n) { - e.setUTCFullYear(e.getUTCFullYear() + n * t); - } - ) - : null; - }; - var Lv = Mv, - Dv = Mv.range; - function jv(t) { - if (0 <= t.y && t.y < 100) { - var e = new Date(-1, t.m, t.d, t.H, t.M, t.S, t.L); - return e.setFullYear(t.y), e; - } - return new Date(t.y, t.m, t.d, t.H, t.M, t.S, t.L); - } - function Rv(t) { - if (0 <= t.y && t.y < 100) { - var e = new Date(Date.UTC(-1, t.m, t.d, t.H, t.M, t.S, t.L)); - return e.setUTCFullYear(t.y), e; - } - return new Date(Date.UTC(t.y, t.m, t.d, t.H, t.M, t.S, t.L)); - } - function Nv(t, e, n) { - return { y: t, m: e, d: n, H: 0, M: 0, S: 0, L: 0 }; - } - function zv(t) { - var e = t.dateTime, - n = t.date, - r = t.time, - i = t.periods, - o = t.days, - a = t.shortDays, - s = t.months, - u = t.shortMonths, - l = $v(i), - c = Qv(i), - f = $v(o), - d = Qv(o), - h = $v(a), - p = Qv(a), - g = $v(s), - v = Qv(s), - m = $v(u), - y = Qv(u), - b = { - a: function(t) { - return a[t.getDay()]; - }, - A: function(t) { - return o[t.getDay()]; - }, - b: function(t) { - return u[t.getMonth()]; - }, - B: function(t) { - return s[t.getMonth()]; - }, - c: null, - d: mm, - e: mm, - f: wm, - H: ym, - I: bm, - j: _m, - L: xm, - m: Sm, - M: Em, - p: function(t) { - return i[+(t.getHours() >= 12)]; - }, - q: function(t) { - return 1 + ~~(t.getMonth() / 3); - }, - Q: Zm, - s: Jm, - S: km, - u: Am, - U: Tm, - V: Cm, - w: Om, - W: Pm, - x: null, - X: null, - y: Mm, - Y: Lm, - Z: Dm, - '%': Km - }, - _ = { - a: function(t) { - return a[t.getUTCDay()]; - }, - A: function(t) { - return o[t.getUTCDay()]; - }, - b: function(t) { - return u[t.getUTCMonth()]; - }, - B: function(t) { - return s[t.getUTCMonth()]; - }, - c: null, - d: jm, - e: jm, - f: Fm, - H: Rm, - I: Nm, - j: zm, - L: Im, - m: Vm, - M: Bm, - p: function(t) { - return i[+(t.getUTCHours() >= 12)]; - }, - q: function(t) { - return 1 + ~~(t.getUTCMonth() / 3); - }, - Q: Zm, - s: Jm, - S: Gm, - u: Hm, - U: Um, - V: qm, - w: Wm, - W: Xm, - x: null, - X: null, - y: Ym, - Y: $m, - Z: Qm, - '%': Km - }, - x = { - a: function(t, e, n) { - var r = h.exec(e.slice(n)); - return r - ? ((t.w = p[r[0].toLowerCase()]), n + r[0].length) - : -1; - }, - A: function(t, e, n) { - var r = f.exec(e.slice(n)); - return r - ? ((t.w = d[r[0].toLowerCase()]), n + r[0].length) - : -1; - }, - b: function(t, e, n) { - var r = m.exec(e.slice(n)); - return r - ? ((t.m = y[r[0].toLowerCase()]), n + r[0].length) - : -1; - }, - B: function(t, e, n) { - var r = g.exec(e.slice(n)); - return r - ? ((t.m = v[r[0].toLowerCase()]), n + r[0].length) - : -1; - }, - c: function(t, n, r) { - return E(t, e, n, r); - }, - d: sm, - e: sm, - f: hm, - H: lm, - I: lm, - j: um, - L: dm, - m: am, - M: cm, - p: function(t, e, n) { - var r = l.exec(e.slice(n)); - return r - ? ((t.p = c[r[0].toLowerCase()]), n + r[0].length) - : -1; - }, - q: om, - Q: gm, - s: vm, - S: fm, - u: Zv, - U: Jv, - V: tm, - w: Kv, - W: em, - x: function(t, e, r) { - return E(t, n, e, r); - }, - X: function(t, e, n) { - return E(t, r, e, n); - }, - y: rm, - Y: nm, - Z: im, - '%': pm - }; - function w(t, e) { - return function(n) { - var r, - i, - o, - a = [], - s = -1, - u = 0, - l = t.length; - for (n instanceof Date || (n = new Date(+n)); ++s < l; ) - 37 === t.charCodeAt(s) && - (a.push(t.slice(u, s)), - null != (i = Hv[(r = t.charAt(++s))]) - ? (r = t.charAt(++s)) - : (i = 'e' === r ? ' ' : '0'), - (o = e[r]) && (r = o(n, i)), - a.push(r), - (u = s + 1)); - return a.push(t.slice(u, s)), a.join(''); - }; - } - function S(t, e) { - return function(n) { - var r, - i, - o = Nv(1900, void 0, 1); - if (E(o, t, (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 ( - (e && !('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 = Rv(Nv(o.y, 0, 1))).getUTCDay()), - (r = i > 4 || 0 === i ? gv.ceil(r) : gv(r)), - (r = Ov.offset(r, 7 * (o.V - 1))), - (o.y = r.getUTCFullYear()), - (o.m = r.getUTCMonth()), - (o.d = r.getUTCDate() + ((o.w + 6) % 7))) - : ((i = (r = jv(Nv(o.y, 0, 1))).getDay()), - (r = i > 4 || 0 === i ? Fg.ceil(r) : Fg(r)), - (r = Jg.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 - ? Rv(Nv(o.y, 0, 1)).getUTCDay() - : jv(Nv(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), Rv(o)) - : jv(o); - }; - } - function E(t, e, n, r) { - for (var i, o, a = 0, s = e.length, u = n.length; a < s; ) { - if (r >= u) return -1; - if (37 === (i = e.charCodeAt(a++))) { - if ( - ((i = e.charAt(a++)), - !(o = x[i in Hv ? e.charAt(a++) : i]) || - (r = o(t, n, r)) < 0) - ) - return -1; - } else if (i != n.charCodeAt(r++)) return -1; - } - return r; - } - return ( - (b.x = w(n, b)), - (b.X = w(r, b)), - (b.c = w(e, b)), - (_.x = w(n, _)), - (_.X = w(r, _)), - (_.c = w(e, _)), - { - format: function(t) { - var e = w((t += ''), b); - return ( - (e.toString = function() { - return t; - }), - e - ); - }, - parse: function(t) { - var e = S((t += ''), !1); - return ( - (e.toString = function() { - return t; - }), - e - ); - }, - utcFormat: function(t) { - var e = w((t += ''), _); - return ( - (e.toString = function() { - return t; - }), - e - ); - }, - utcParse: function(t) { - var e = S((t += ''), !0); - return ( - (e.toString = function() { - return t; - }), - e - ); - } - } - ); - } - var Iv, - Fv, - Vv, - Bv, - Gv, - Hv = { '-': '', _: ' ', 0: '0' }, - Uv = /^\s*\d+/, - qv = /^%/, - Wv = /[\\^$*+?|[\]().{}]/g; - function Xv(t, e, n) { - var r = t < 0 ? '-' : '', - i = (r ? -t : t) + '', - o = i.length; - return r + (o < n ? new Array(n - o + 1).join(e) + i : i); - } - function Yv(t) { - return t.replace(Wv, '\\$&'); - } - function $v(t) { - return new RegExp('^(?:' + t.map(Yv).join('|') + ')', 'i'); - } - function Qv(t) { - for (var e = {}, n = -1, r = t.length; ++n < r; ) - e[t[n].toLowerCase()] = n; - return e; - } - function Kv(t, e, n) { - var r = Uv.exec(e.slice(n, n + 1)); - return r ? ((t.w = +r[0]), n + r[0].length) : -1; - } - function Zv(t, e, n) { - var r = Uv.exec(e.slice(n, n + 1)); - return r ? ((t.u = +r[0]), n + r[0].length) : -1; - } - function Jv(t, e, n) { - var r = Uv.exec(e.slice(n, n + 2)); - return r ? ((t.U = +r[0]), n + r[0].length) : -1; - } - function tm(t, e, n) { - var r = Uv.exec(e.slice(n, n + 2)); - return r ? ((t.V = +r[0]), n + r[0].length) : -1; - } - function em(t, e, n) { - var r = Uv.exec(e.slice(n, n + 2)); - return r ? ((t.W = +r[0]), n + r[0].length) : -1; - } - function nm(t, e, n) { - var r = Uv.exec(e.slice(n, n + 4)); - return r ? ((t.y = +r[0]), n + r[0].length) : -1; - } - function rm(t, e, n) { - var r = Uv.exec(e.slice(n, n + 2)); - return r - ? ((t.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3)), n + r[0].length) - : -1; - } - function im(t, e, n) { - var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n, n + 6)); - return r - ? ((t.Z = r[1] ? 0 : -(r[2] + (r[3] || '00'))), - n + r[0].length) - : -1; - } - function om(t, e, n) { - var r = Uv.exec(e.slice(n, n + 1)); - return r ? ((t.q = 3 * r[0] - 3), n + r[0].length) : -1; - } - function am(t, e, n) { - var r = Uv.exec(e.slice(n, n + 2)); - return r ? ((t.m = r[0] - 1), n + r[0].length) : -1; - } - function sm(t, e, n) { - var r = Uv.exec(e.slice(n, n + 2)); - return r ? ((t.d = +r[0]), n + r[0].length) : -1; - } - function um(t, e, n) { - var r = Uv.exec(e.slice(n, n + 3)); - return r ? ((t.m = 0), (t.d = +r[0]), n + r[0].length) : -1; - } - function lm(t, e, n) { - var r = Uv.exec(e.slice(n, n + 2)); - return r ? ((t.H = +r[0]), n + r[0].length) : -1; - } - function cm(t, e, n) { - var r = Uv.exec(e.slice(n, n + 2)); - return r ? ((t.M = +r[0]), n + r[0].length) : -1; - } - function fm(t, e, n) { - var r = Uv.exec(e.slice(n, n + 2)); - return r ? ((t.S = +r[0]), n + r[0].length) : -1; - } - function dm(t, e, n) { - var r = Uv.exec(e.slice(n, n + 3)); - return r ? ((t.L = +r[0]), n + r[0].length) : -1; - } - function hm(t, e, n) { - var r = Uv.exec(e.slice(n, n + 6)); - return r - ? ((t.L = Math.floor(r[0] / 1e3)), n + r[0].length) - : -1; - } - function pm(t, e, n) { - var r = qv.exec(e.slice(n, n + 1)); - return r ? n + r[0].length : -1; - } - function gm(t, e, n) { - var r = Uv.exec(e.slice(n)); - return r ? ((t.Q = +r[0]), n + r[0].length) : -1; - } - function vm(t, e, n) { - var r = Uv.exec(e.slice(n)); - return r ? ((t.s = +r[0]), n + r[0].length) : -1; - } - function mm(t, e) { - return Xv(t.getDate(), e, 2); - } - function ym(t, e) { - return Xv(t.getHours(), e, 2); - } - function bm(t, e) { - return Xv(t.getHours() % 12 || 12, e, 2); - } - function _m(t, e) { - return Xv(1 + Jg.count(Lg(t), t), e, 3); - } - function xm(t, e) { - return Xv(t.getMilliseconds(), e, 3); - } - function wm(t, e) { - return xm(t, e) + '000'; - } - function Sm(t, e) { - return Xv(t.getMonth() + 1, e, 2); - } - function Em(t, e) { - return Xv(t.getMinutes(), e, 2); - } - function km(t, e) { - return Xv(t.getSeconds(), e, 2); - } - function Am(t) { - var e = t.getDay(); - return 0 === e ? 7 : e; - } - function Tm(t, e) { - return Xv(Ig.count(Lg(t) - 1, t), e, 2); - } - function Cm(t, e) { - var n = t.getDay(); - return ( - (t = n >= 4 || 0 === n ? Gg(t) : Gg.ceil(t)), - Xv(Gg.count(Lg(t), t) + (4 === Lg(t).getDay()), e, 2) - ); - } - function Om(t) { - return t.getDay(); - } - function Pm(t, e) { - return Xv(Fg.count(Lg(t) - 1, t), e, 2); - } - function Mm(t, e) { - return Xv(t.getFullYear() % 100, e, 2); - } - function Lm(t, e) { - return Xv(t.getFullYear() % 1e4, e, 4); - } - function Dm(t) { - var e = t.getTimezoneOffset(); - return ( - (e > 0 ? '-' : ((e *= -1), '+')) + - Xv((e / 60) | 0, '0', 2) + - Xv(e % 60, '0', 2) - ); - } - function jm(t, e) { - return Xv(t.getUTCDate(), e, 2); - } - function Rm(t, e) { - return Xv(t.getUTCHours(), e, 2); - } - function Nm(t, e) { - return Xv(t.getUTCHours() % 12 || 12, e, 2); - } - function zm(t, e) { - return Xv(1 + Ov.count(Lv(t), t), e, 3); - } - function Im(t, e) { - return Xv(t.getUTCMilliseconds(), e, 3); - } - function Fm(t, e) { - return Im(t, e) + '000'; - } - function Vm(t, e) { - return Xv(t.getUTCMonth() + 1, e, 2); - } - function Bm(t, e) { - return Xv(t.getUTCMinutes(), e, 2); - } - function Gm(t, e) { - return Xv(t.getUTCSeconds(), e, 2); - } - function Hm(t) { - var e = t.getUTCDay(); - return 0 === e ? 7 : e; - } - function Um(t, e) { - return Xv(pv.count(Lv(t) - 1, t), e, 2); - } - function qm(t, e) { - var n = t.getUTCDay(); - return ( - (t = n >= 4 || 0 === n ? yv(t) : yv.ceil(t)), - Xv(yv.count(Lv(t), t) + (4 === Lv(t).getUTCDay()), e, 2) - ); - } - function Wm(t) { - return t.getUTCDay(); - } - function Xm(t, e) { - return Xv(gv.count(Lv(t) - 1, t), e, 2); - } - function Ym(t, e) { - return Xv(t.getUTCFullYear() % 100, e, 2); - } - function $m(t, e) { - return Xv(t.getUTCFullYear() % 1e4, e, 4); - } - function Qm() { - return '+0000'; - } - function Km() { - return '%'; - } - function Zm(t) { - return +t; - } - function Jm(t) { - return Math.floor(+t / 1e3); - } - function ty(t) { - return ( - (Iv = zv(t)), - (Fv = Iv.format), - (Vv = Iv.parse), - (Bv = Iv.utcFormat), - (Gv = Iv.utcParse), - Iv - ); - } - function ey(t) { - return new Date(t); - } - function ny(t) { - return t instanceof Date ? +t : +new Date(+t); - } - function ry(t, e, n, r, o, a, s, u, l) { - var c = eg(Yp, Yp), - f = c.invert, - d = c.domain, - h = l('.%L'), - p = l(':%S'), - g = l('%I:%M'), - v = l('%I %p'), - m = l('%a %d'), - y = l('%b %d'), - b = l('%B'), - _ = l('%Y'), - x = [ - [s, 1, 1e3], - [s, 5, 5e3], - [s, 15, 15e3], - [s, 30, 3e4], - [a, 1, 6e4], - [a, 5, 3e5], - [a, 15, 9e5], - [a, 30, 18e5], - [o, 1, 36e5], - [o, 3, 108e5], - [o, 6, 216e5], - [o, 12, 432e5], - [r, 1, 864e5], - [r, 2, 1728e5], - [n, 1, 6048e5], - [e, 1, 2592e6], - [e, 3, 7776e6], - [t, 1, 31536e6] - ]; - function w(i) { - return (s(i) < i - ? h - : a(i) < i - ? p - : o(i) < i - ? g - : r(i) < i - ? v - : e(i) < i - ? n(i) < i - ? m - : y - : t(i) < i - ? b - : _)(i); - } - function S(e, n, r, o) { - if ((null == e && (e = 10), 'number' == typeof e)) { - var a = Math.abs(r - n) / e, - s = i(function(t) { - return t[2]; - }).right(x, a); - s === x.length - ? ((o = C(n / 31536e6, r / 31536e6, e)), (e = t)) - : s - ? ((o = (s = - x[a / x[s - 1][2] < x[s][2] / a ? s - 1 : s])[1]), - (e = s[0])) - : ((o = Math.max(C(n, r, e), 1)), (e = u)); - } - return null == o ? e : e.every(o); - } - return ( - (c.invert = function(t) { - return new Date(f(t)); - }), - (c.domain = function(t) { - return arguments.length ? d(Fp.call(t, ny)) : d().map(ey); - }), - (c.ticks = function(t, e) { - var n, - r = d(), - i = r[0], - o = r[r.length - 1], - a = o < i; - return ( - a && ((n = i), (i = o), (o = n)), - (n = (n = S(t, i, o, e)) ? n.range(i, o + 1) : []), - a ? n.reverse() : n - ); - }), - (c.tickFormat = function(t, e) { - return null == e ? w : l(e); - }), - (c.nice = function(t, e) { - var n = d(); - return (t = S(t, n[0], n[n.length - 1], e)) - ? d(ag(n, t)) - : c; - }), - (c.copy = function() { - return Jp(c, ry(t, e, n, r, o, a, s, u, l)); - }), - c - ); - } - ty({ - dateTime: '%x, %X', - date: '%-m/%-d/%Y', - time: '%-I:%M:%S %p', - periods: ['AM', 'PM'], - days: [ - 'Sunday', - 'Monday', - 'Tuesday', - 'Wednesday', - 'Thursday', - 'Friday', - 'Saturday' - ], - shortDays: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], - months: [ - 'January', - 'February', - 'March', - 'April', - 'May', - 'June', - 'July', - 'August', - 'September', - 'October', - 'November', - 'December' - ], - shortMonths: [ - 'Jan', - 'Feb', - 'Mar', - 'Apr', - 'May', - 'Jun', - 'Jul', - 'Aug', - 'Sep', - 'Oct', - 'Nov', - 'Dec' - ] - }); - var iy = function() { - return Np.apply( - ry(Lg, Rg, Ig, Jg, nv, ov, uv, fv, Fv).domain([ - new Date(2e3, 0, 1), - new Date(2e3, 0, 2) - ]), - arguments - ); - }, - oy = Pg( - function(t) { - t.setUTCDate(1), t.setUTCHours(0, 0, 0, 0); - }, - function(t, e) { - t.setUTCMonth(t.getUTCMonth() + e); - }, - function(t, e) { - return ( - e.getUTCMonth() - - t.getUTCMonth() + - 12 * (e.getUTCFullYear() - t.getUTCFullYear()) - ); - }, - function(t) { - return t.getUTCMonth(); - } - ), - ay = oy, - sy = oy.range, - uy = Pg( - function(t) { - t.setUTCMinutes(0, 0, 0); - }, - function(t, e) { - t.setTime(+t + 36e5 * e); - }, - function(t, e) { - return (e - t) / 36e5; - }, - function(t) { - return t.getUTCHours(); - } - ), - ly = uy, - cy = uy.range, - fy = Pg( - function(t) { - t.setUTCSeconds(0, 0); - }, - function(t, e) { - t.setTime(+t + 6e4 * e); - }, - function(t, e) { - return (e - t) / 6e4; - }, - function(t) { - return t.getUTCMinutes(); - } - ), - dy = fy, - hy = fy.range, - py = function() { - return Np.apply( - ry(Lv, ay, pv, Ov, ly, dy, uv, fv, Bv).domain([ - Date.UTC(2e3, 0, 1), - Date.UTC(2e3, 0, 2) - ]), - arguments - ); - }; - function gy() { - var t, - e, - n, - r, - i, - o = 0, - a = 1, - s = Yp, - u = !1; - function l(e) { - return isNaN((e = +e)) - ? i - : s( - 0 === n - ? 0.5 - : ((e = (r(e) - t) * n), - u ? Math.max(0, Math.min(1, e)) : e) - ); - } - return ( - (l.domain = function(i) { - return arguments.length - ? ((t = r((o = +i[0]))), - (e = r((a = +i[1]))), - (n = t === e ? 0 : 1 / (e - t)), - l) - : [o, a]; - }), - (l.clamp = function(t) { - return arguments.length ? ((u = !!t), l) : u; - }), - (l.interpolator = function(t) { - return arguments.length ? ((s = t), l) : s; - }), - (l.unknown = function(t) { - return arguments.length ? ((i = t), l) : i; - }), - function(i) { - return ( - (r = i), - (t = i(o)), - (e = i(a)), - (n = t === e ? 0 : 1 / (e - t)), - l - ); - } - ); - } - function vy(t, e) { - return e - .domain(t.domain()) - .interpolator(t.interpolator()) - .clamp(t.clamp()) - .unknown(t.unknown()); - } - function my() { - var t = rg(gy()(Yp)); - return ( - (t.copy = function() { - return vy(t, my()); - }), - zp.apply(t, arguments) - ); - } - function yy() { - var t = hg(gy()).domain([1, 10]); - return ( - (t.copy = function() { - return vy(t, yy()).base(t.base()); - }), - zp.apply(t, arguments) - ); - } - function by() { - var t = mg(gy()); - return ( - (t.copy = function() { - return vy(t, by()).constant(t.constant()); - }), - zp.apply(t, arguments) - ); - } - function _y() { - var t = wg(gy()); - return ( - (t.copy = function() { - return vy(t, _y()).exponent(t.exponent()); - }), - zp.apply(t, arguments) - ); - } - function xy() { - return _y.apply(null, arguments).exponent(0.5); - } - function wy() { - var t = [], - e = Yp; - function n(n) { - if (!isNaN((n = +n))) - return e((u(t, n) - 1) / (t.length - 1)); - } - return ( - (n.domain = function(e) { - if (!arguments.length) return t.slice(); - t = []; - for (var i, o = 0, a = e.length; o < a; ++o) - null == (i = e[o]) || isNaN((i = +i)) || t.push(i); - return t.sort(r), n; - }), - (n.interpolator = function(t) { - return arguments.length ? ((e = t), n) : e; - }), - (n.copy = function() { - return wy(e).domain(t); - }), - zp.apply(n, arguments) - ); - } - function Sy() { - var t, - e, - n, - r, - i, - o, - a, - s = 0, - u = 0.5, - l = 1, - c = Yp, - f = !1; - function d(t) { - return isNaN((t = +t)) - ? a - : ((t = 0.5 + ((t = +o(t)) - e) * (t < e ? r : i)), - c(f ? Math.max(0, Math.min(1, t)) : t)); - } - return ( - (d.domain = function(a) { - return arguments.length - ? ((t = o((s = +a[0]))), - (e = o((u = +a[1]))), - (n = o((l = +a[2]))), - (r = t === e ? 0 : 0.5 / (e - t)), - (i = e === n ? 0 : 0.5 / (n - e)), - d) - : [s, u, l]; - }), - (d.clamp = function(t) { - return arguments.length ? ((f = !!t), d) : f; - }), - (d.interpolator = function(t) { - return arguments.length ? ((c = t), d) : c; - }), - (d.unknown = function(t) { - return arguments.length ? ((a = t), d) : a; - }), - function(a) { - return ( - (o = a), - (t = a(s)), - (e = a(u)), - (n = a(l)), - (r = t === e ? 0 : 0.5 / (e - t)), - (i = e === n ? 0 : 0.5 / (n - e)), - d - ); - } - ); - } - function Ey() { - var t = rg(Sy()(Yp)); - return ( - (t.copy = function() { - return vy(t, Ey()); - }), - zp.apply(t, arguments) - ); - } - function ky() { - var t = hg(Sy()).domain([0.1, 1, 10]); - return ( - (t.copy = function() { - return vy(t, ky()).base(t.base()); - }), - zp.apply(t, arguments) - ); - } - function Ay() { - var t = mg(Sy()); - return ( - (t.copy = function() { - return vy(t, Ay()).constant(t.constant()); - }), - zp.apply(t, arguments) - ); - } - function Ty() { - var t = wg(Sy()); - return ( - (t.copy = function() { - return vy(t, Ty()).exponent(t.exponent()); - }), - zp.apply(t, arguments) - ); - } - function Cy() { - return Ty.apply(null, arguments).exponent(0.5); - } - var Oy = function(t) { - for ( - var e = (t.length / 6) | 0, n = new Array(e), r = 0; - r < e; - - ) - n[r] = '#' + t.slice(6 * r, 6 * ++r); - return n; - }, - Py = Oy( - '1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf' - ), - My = Oy('7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666'), - Ly = Oy('1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666'), - Dy = Oy( - 'a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928' - ), - jy = Oy( - 'fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2' - ), - Ry = Oy('b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc'), - Ny = Oy( - 'e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999' - ), - zy = Oy('66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3'), - Iy = Oy( - '8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f' - ), - Fy = Oy( - '4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab' - ), - Vy = function(t) { - return Rn(t[t.length - 1]); - }, - By = new Array(3) - .concat( - 'd8b365f5f5f55ab4ac', - 'a6611adfc27d80cdc1018571', - 'a6611adfc27df5f5f580cdc1018571', - '8c510ad8b365f6e8c3c7eae55ab4ac01665e', - '8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e', - '8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e', - '8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e', - '5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30', - '5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30' - ) - .map(Oy), - Gy = Vy(By), - Hy = new Array(3) - .concat( - 'af8dc3f7f7f77fbf7b', - '7b3294c2a5cfa6dba0008837', - '7b3294c2a5cff7f7f7a6dba0008837', - '762a83af8dc3e7d4e8d9f0d37fbf7b1b7837', - '762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837', - '762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837', - '762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837', - '40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b', - '40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b' - ) - .map(Oy), - Uy = Vy(Hy), - qy = new Array(3) - .concat( - 'e9a3c9f7f7f7a1d76a', - 'd01c8bf1b6dab8e1864dac26', - 'd01c8bf1b6daf7f7f7b8e1864dac26', - 'c51b7de9a3c9fde0efe6f5d0a1d76a4d9221', - 'c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221', - 'c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221', - 'c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221', - '8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419', - '8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419' - ) - .map(Oy), - Wy = Vy(qy), - Xy = new Array(3) - .concat( - '998ec3f7f7f7f1a340', - '5e3c99b2abd2fdb863e66101', - '5e3c99b2abd2f7f7f7fdb863e66101', - '542788998ec3d8daebfee0b6f1a340b35806', - '542788998ec3d8daebf7f7f7fee0b6f1a340b35806', - '5427888073acb2abd2d8daebfee0b6fdb863e08214b35806', - '5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806', - '2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08', - '2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08' - ) - .map(Oy), - Yy = Vy(Xy), - $y = new Array(3) - .concat( - 'ef8a62f7f7f767a9cf', - 'ca0020f4a58292c5de0571b0', - 'ca0020f4a582f7f7f792c5de0571b0', - 'b2182bef8a62fddbc7d1e5f067a9cf2166ac', - 'b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac', - 'b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac', - 'b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac', - '67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061', - '67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061' - ) - .map(Oy), - Qy = Vy($y), - Ky = new Array(3) - .concat( - 'ef8a62ffffff999999', - 'ca0020f4a582bababa404040', - 'ca0020f4a582ffffffbababa404040', - 'b2182bef8a62fddbc7e0e0e09999994d4d4d', - 'b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d', - 'b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d', - 'b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d', - '67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a', - '67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a' - ) - .map(Oy), - Zy = Vy(Ky), - Jy = new Array(3) - .concat( - 'fc8d59ffffbf91bfdb', - 'd7191cfdae61abd9e92c7bb6', - 'd7191cfdae61ffffbfabd9e92c7bb6', - 'd73027fc8d59fee090e0f3f891bfdb4575b4', - 'd73027fc8d59fee090ffffbfe0f3f891bfdb4575b4', - 'd73027f46d43fdae61fee090e0f3f8abd9e974add14575b4', - 'd73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4', - 'a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695', - 'a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695' - ) - .map(Oy), - tb = Vy(Jy), - eb = new Array(3) - .concat( - 'fc8d59ffffbf91cf60', - 'd7191cfdae61a6d96a1a9641', - 'd7191cfdae61ffffbfa6d96a1a9641', - 'd73027fc8d59fee08bd9ef8b91cf601a9850', - 'd73027fc8d59fee08bffffbfd9ef8b91cf601a9850', - 'd73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850', - 'd73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850', - 'a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837', - 'a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837' - ) - .map(Oy), - nb = Vy(eb), - rb = new Array(3) - .concat( - 'fc8d59ffffbf99d594', - 'd7191cfdae61abdda42b83ba', - 'd7191cfdae61ffffbfabdda42b83ba', - 'd53e4ffc8d59fee08be6f59899d5943288bd', - 'd53e4ffc8d59fee08bffffbfe6f59899d5943288bd', - 'd53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd', - 'd53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd', - '9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2', - '9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2' - ) - .map(Oy), - ib = Vy(rb), - ob = new Array(3) - .concat( - 'e5f5f999d8c92ca25f', - 'edf8fbb2e2e266c2a4238b45', - 'edf8fbb2e2e266c2a42ca25f006d2c', - 'edf8fbccece699d8c966c2a42ca25f006d2c', - 'edf8fbccece699d8c966c2a441ae76238b45005824', - 'f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824', - 'f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b' - ) - .map(Oy), - ab = Vy(ob), - sb = new Array(3) - .concat( - 'e0ecf49ebcda8856a7', - 'edf8fbb3cde38c96c688419d', - 'edf8fbb3cde38c96c68856a7810f7c', - 'edf8fbbfd3e69ebcda8c96c68856a7810f7c', - 'edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b', - 'f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b', - 'f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b' - ) - .map(Oy), - ub = Vy(sb), - lb = new Array(3) - .concat( - 'e0f3dba8ddb543a2ca', - 'f0f9e8bae4bc7bccc42b8cbe', - 'f0f9e8bae4bc7bccc443a2ca0868ac', - 'f0f9e8ccebc5a8ddb57bccc443a2ca0868ac', - 'f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e', - 'f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e', - 'f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081' - ) - .map(Oy), - cb = Vy(lb), - fb = new Array(3) - .concat( - 'fee8c8fdbb84e34a33', - 'fef0d9fdcc8afc8d59d7301f', - 'fef0d9fdcc8afc8d59e34a33b30000', - 'fef0d9fdd49efdbb84fc8d59e34a33b30000', - 'fef0d9fdd49efdbb84fc8d59ef6548d7301f990000', - 'fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000', - 'fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000' - ) - .map(Oy), - db = Vy(fb), - hb = new Array(3) - .concat( - 'ece2f0a6bddb1c9099', - 'f6eff7bdc9e167a9cf02818a', - 'f6eff7bdc9e167a9cf1c9099016c59', - 'f6eff7d0d1e6a6bddb67a9cf1c9099016c59', - 'f6eff7d0d1e6a6bddb67a9cf3690c002818a016450', - 'fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450', - 'fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636' - ) - .map(Oy), - pb = Vy(hb), - gb = new Array(3) - .concat( - 'ece7f2a6bddb2b8cbe', - 'f1eef6bdc9e174a9cf0570b0', - 'f1eef6bdc9e174a9cf2b8cbe045a8d', - 'f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d', - 'f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b', - 'fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b', - 'fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858' - ) - .map(Oy), - vb = Vy(gb), - mb = new Array(3) - .concat( - 'e7e1efc994c7dd1c77', - 'f1eef6d7b5d8df65b0ce1256', - 'f1eef6d7b5d8df65b0dd1c77980043', - 'f1eef6d4b9dac994c7df65b0dd1c77980043', - 'f1eef6d4b9dac994c7df65b0e7298ace125691003f', - 'f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f', - 'f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f' - ) - .map(Oy), - yb = Vy(mb), - bb = new Array(3) - .concat( - 'fde0ddfa9fb5c51b8a', - 'feebe2fbb4b9f768a1ae017e', - 'feebe2fbb4b9f768a1c51b8a7a0177', - 'feebe2fcc5c0fa9fb5f768a1c51b8a7a0177', - 'feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177', - 'fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177', - 'fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a' - ) - .map(Oy), - _b = Vy(bb), - xb = new Array(3) - .concat( - 'edf8b17fcdbb2c7fb8', - 'ffffcca1dab441b6c4225ea8', - 'ffffcca1dab441b6c42c7fb8253494', - 'ffffccc7e9b47fcdbb41b6c42c7fb8253494', - 'ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84', - 'ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84', - 'ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58' - ) - .map(Oy), - wb = Vy(xb), - Sb = new Array(3) - .concat( - 'f7fcb9addd8e31a354', - 'ffffccc2e69978c679238443', - 'ffffccc2e69978c67931a354006837', - 'ffffccd9f0a3addd8e78c67931a354006837', - 'ffffccd9f0a3addd8e78c67941ab5d238443005a32', - 'ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32', - 'ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529' - ) - .map(Oy), - Eb = Vy(Sb), - kb = new Array(3) - .concat( - 'fff7bcfec44fd95f0e', - 'ffffd4fed98efe9929cc4c02', - 'ffffd4fed98efe9929d95f0e993404', - 'ffffd4fee391fec44ffe9929d95f0e993404', - 'ffffd4fee391fec44ffe9929ec7014cc4c028c2d04', - 'ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04', - 'ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506' - ) - .map(Oy), - Ab = Vy(kb), - Tb = new Array(3) - .concat( - 'ffeda0feb24cf03b20', - 'ffffb2fecc5cfd8d3ce31a1c', - 'ffffb2fecc5cfd8d3cf03b20bd0026', - 'ffffb2fed976feb24cfd8d3cf03b20bd0026', - 'ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026', - 'ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026', - 'ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026' - ) - .map(Oy), - Cb = Vy(Tb), - Ob = new Array(3) - .concat( - 'deebf79ecae13182bd', - 'eff3ffbdd7e76baed62171b5', - 'eff3ffbdd7e76baed63182bd08519c', - 'eff3ffc6dbef9ecae16baed63182bd08519c', - 'eff3ffc6dbef9ecae16baed64292c62171b5084594', - 'f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594', - 'f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b' - ) - .map(Oy), - Pb = Vy(Ob), - Mb = new Array(3) - .concat( - 'e5f5e0a1d99b31a354', - 'edf8e9bae4b374c476238b45', - 'edf8e9bae4b374c47631a354006d2c', - 'edf8e9c7e9c0a1d99b74c47631a354006d2c', - 'edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32', - 'f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32', - 'f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b' - ) - .map(Oy), - Lb = Vy(Mb), - Db = new Array(3) - .concat( - 'f0f0f0bdbdbd636363', - 'f7f7f7cccccc969696525252', - 'f7f7f7cccccc969696636363252525', - 'f7f7f7d9d9d9bdbdbd969696636363252525', - 'f7f7f7d9d9d9bdbdbd969696737373525252252525', - 'fffffff0f0f0d9d9d9bdbdbd969696737373525252252525', - 'fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000' - ) - .map(Oy), - jb = Vy(Db), - Rb = new Array(3) - .concat( - 'efedf5bcbddc756bb1', - 'f2f0f7cbc9e29e9ac86a51a3', - 'f2f0f7cbc9e29e9ac8756bb154278f', - 'f2f0f7dadaebbcbddc9e9ac8756bb154278f', - 'f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486', - 'fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486', - 'fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d' - ) - .map(Oy), - Nb = Vy(Rb), - zb = new Array(3) - .concat( - 'fee0d2fc9272de2d26', - 'fee5d9fcae91fb6a4acb181d', - 'fee5d9fcae91fb6a4ade2d26a50f15', - 'fee5d9fcbba1fc9272fb6a4ade2d26a50f15', - 'fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d', - 'fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d', - 'fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d' - ) - .map(Oy), - Ib = Vy(zb), - Fb = new Array(3) - .concat( - 'fee6cefdae6be6550d', - 'feeddefdbe85fd8d3cd94701', - 'feeddefdbe85fd8d3ce6550da63603', - 'feeddefdd0a2fdae6bfd8d3ce6550da63603', - 'feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04', - 'fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04', - 'fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704' - ) - .map(Oy), - Vb = Vy(Fb), - Bb = function(t) { - return ( - (t = Math.max(0, Math.min(1, t))), - 'rgb(' + - Math.max( - 0, - Math.min( - 255, - Math.round( - -4.54 - - t * - (35.34 - - t * - (2381.73 - - t * - (6402.7 - t * (7024.72 - 2710.57 * t)))) - ) - ) - ) + - ', ' + - Math.max( - 0, - Math.min( - 255, - Math.round( - 32.49 + - t * - (170.73 + - t * - (52.82 - - t * (131.46 - t * (176.58 - 67.37 * t)))) - ) - ) - ) + - ', ' + - Math.max( - 0, - Math.min( - 255, - Math.round( - 81.24 + - t * - (442.36 - - t * - (2482.43 - - t * - (6167.24 - - t * (6614.94 - 2475.67 * t)))) - ) - ) - ) + - ')' - ); - }, - Gb = jr(Pr(300, 0.5, 0), Pr(-240, 0.5, 1)), - Hb = jr(Pr(-100, 0.75, 0.35), Pr(80, 1.5, 0.8)), - Ub = jr(Pr(260, 0.75, 0.35), Pr(80, 1.5, 0.8)), - qb = Pr(), - Wb = function(t) { - (t < 0 || t > 1) && (t -= Math.floor(t)); - var e = Math.abs(t - 0.5); - return ( - (qb.h = 360 * t - 100), - (qb.s = 1.5 - 1.5 * e), - (qb.l = 0.8 - 0.9 * e), - qb + '' - ); - }, - Xb = fn(), - Yb = Math.PI / 3, - $b = (2 * Math.PI) / 3, - Qb = function(t) { - var e; - return ( - (t = (0.5 - t) * Math.PI), - (Xb.r = 255 * (e = Math.sin(t)) * e), - (Xb.g = 255 * (e = Math.sin(t + Yb)) * e), - (Xb.b = 255 * (e = Math.sin(t + $b)) * e), - Xb + '' - ); - }, - Kb = function(t) { - return ( - (t = Math.max(0, Math.min(1, t))), - 'rgb(' + - Math.max( - 0, - Math.min( - 255, - Math.round( - 34.61 + - t * - (1172.33 - - t * - (10793.56 - - t * - (33300.12 - - t * (38394.49 - 14825.05 * t)))) - ) - ) - ) + - ', ' + - Math.max( - 0, - Math.min( - 255, - Math.round( - 23.31 + - t * - (557.33 + - t * - (1225.33 - - t * - (3574.96 - t * (1073.77 + 707.56 * t)))) - ) - ) - ) + - ', ' + - Math.max( - 0, - Math.min( - 255, - Math.round( - 27.2 + - t * - (3211.1 - - t * - (15327.97 - - t * - (27814 - t * (22569.18 - 6838.66 * t)))) - ) - ) - ) + - ')' - ); - }; - function Zb(t) { - var e = t.length; - return function(n) { - return t[Math.max(0, Math.min(e - 1, Math.floor(n * e)))]; - }; - } - var Jb = Zb( - Oy( - '44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725' - ) - ), - t_ = Zb( - Oy( - '00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf' - ) - ), - e_ = Zb( - Oy( - '00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4' - ) - ), - n_ = Zb( - Oy( - '0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921' - ) - ), - r_ = function(t) { - return function() { - return t; - }; - }, - i_ = Math.abs, - o_ = Math.atan2, - a_ = Math.cos, - s_ = Math.max, - u_ = Math.min, - l_ = Math.sin, - c_ = Math.sqrt, - f_ = Math.PI, - d_ = f_ / 2, - h_ = 2 * f_; - function p_(t) { - return t > 1 ? 0 : t < -1 ? f_ : Math.acos(t); - } - function g_(t) { - return t >= 1 ? d_ : t <= -1 ? -d_ : Math.asin(t); - } - function v_(t) { - return t.innerRadius; - } - function m_(t) { - return t.outerRadius; - } - function y_(t) { - return t.startAngle; - } - function b_(t) { - return t.endAngle; - } - function __(t) { - return t && t.padAngle; - } - function x_(t, e, n, r, i, o, a, s) { - var u = n - t, - l = r - e, - c = a - i, - f = s - o, - d = f * u - c * l; - if (!(d * d < 1e-12)) - return [ - t + (d = (c * (e - o) - f * (t - i)) / d) * u, - e + d * l - ]; - } - function w_(t, e, n, r, i, o, a) { - var s = t - n, - u = e - r, - l = (a ? o : -o) / c_(s * s + u * u), - c = l * u, - f = -l * s, - d = t + c, - h = e + f, - p = n + c, - g = r + f, - v = (d + p) / 2, - m = (h + g) / 2, - y = p - d, - b = g - h, - _ = y * y + b * b, - x = i - o, - w = d * g - p * h, - S = (b < 0 ? -1 : 1) * c_(s_(0, x * x * _ - w * w)), - E = (w * b - y * S) / _, - k = (-w * y - b * S) / _, - A = (w * b + y * S) / _, - T = (-w * y + b * S) / _, - C = E - v, - O = k - m, - P = A - v, - M = T - m; - return ( - C * C + O * O > P * P + M * M && ((E = A), (k = T)), - { - cx: E, - cy: k, - x01: -c, - y01: -f, - x11: E * (i / x - 1), - y11: k * (i / x - 1) - } - ); - } - var S_ = function() { - var t = v_, - e = m_, - n = r_(0), - r = null, - i = y_, - o = b_, - a = __, - s = null; - function u() { - var u, - l, - c = +t.apply(this, arguments), - f = +e.apply(this, arguments), - d = i.apply(this, arguments) - d_, - h = o.apply(this, arguments) - d_, - p = i_(h - d), - g = h > d; - if ( - (s || (s = u = da()), - f < c && ((l = f), (f = c), (c = l)), - f > 1e-12) - ) - if (p > h_ - 1e-12) - s.moveTo(f * a_(d), f * l_(d)), - s.arc(0, 0, f, d, h, !g), - c > 1e-12 && - (s.moveTo(c * a_(h), c * l_(h)), - s.arc(0, 0, c, h, d, g)); - else { - var v, - m, - y = d, - b = h, - _ = d, - x = h, - w = p, - S = p, - E = a.apply(this, arguments) / 2, - k = - E > 1e-12 && - (r ? +r.apply(this, arguments) : c_(c * c + f * f)), - A = u_(i_(f - c) / 2, +n.apply(this, arguments)), - T = A, - C = A; - if (k > 1e-12) { - var O = g_((k / c) * l_(E)), - P = g_((k / f) * l_(E)); - (w -= 2 * O) > 1e-12 - ? ((_ += O *= g ? 1 : -1), (x -= O)) - : ((w = 0), (_ = x = (d + h) / 2)), - (S -= 2 * P) > 1e-12 - ? ((y += P *= g ? 1 : -1), (b -= P)) - : ((S = 0), (y = b = (d + h) / 2)); - } - var M = f * a_(y), - L = f * l_(y), - D = c * a_(x), - j = c * l_(x); - if (A > 1e-12) { - var R, - N = f * a_(b), - z = f * l_(b), - I = c * a_(_), - F = c * l_(_); - if (p < f_ && (R = x_(M, L, I, F, N, z, D, j))) { - var V = M - R[0], - B = L - R[1], - G = N - R[0], - H = z - R[1], - U = - 1 / - l_( - p_( - (V * G + B * H) / - (c_(V * V + B * B) * c_(G * G + H * H)) - ) / 2 - ), - q = c_(R[0] * R[0] + R[1] * R[1]); - (T = u_(A, (c - q) / (U - 1))), - (C = u_(A, (f - q) / (U + 1))); - } - } - S > 1e-12 - ? C > 1e-12 - ? ((v = w_(I, F, M, L, f, C, g)), - (m = w_(N, z, D, j, f, C, g)), - s.moveTo(v.cx + v.x01, v.cy + v.y01), - C < A - ? s.arc( - v.cx, - v.cy, - C, - o_(v.y01, v.x01), - o_(m.y01, m.x01), - !g - ) - : (s.arc( - v.cx, - v.cy, - C, - o_(v.y01, v.x01), - o_(v.y11, v.x11), - !g - ), - s.arc( - 0, - 0, - f, - o_(v.cy + v.y11, v.cx + v.x11), - o_(m.cy + m.y11, m.cx + m.x11), - !g - ), - s.arc( - m.cx, - m.cy, - C, - o_(m.y11, m.x11), - o_(m.y01, m.x01), - !g - ))) - : (s.moveTo(M, L), s.arc(0, 0, f, y, b, !g)) - : s.moveTo(M, L), - c > 1e-12 && w > 1e-12 - ? T > 1e-12 - ? ((v = w_(D, j, N, z, c, -T, g)), - (m = w_(M, L, I, F, c, -T, g)), - s.lineTo(v.cx + v.x01, v.cy + v.y01), - T < A - ? s.arc( - v.cx, - v.cy, - T, - o_(v.y01, v.x01), - o_(m.y01, m.x01), - !g - ) - : (s.arc( - v.cx, - v.cy, - T, - o_(v.y01, v.x01), - o_(v.y11, v.x11), - !g - ), - s.arc( - 0, - 0, - c, - o_(v.cy + v.y11, v.cx + v.x11), - o_(m.cy + m.y11, m.cx + m.x11), - g - ), - s.arc( - m.cx, - m.cy, - T, - o_(m.y11, m.x11), - o_(m.y01, m.x01), - !g - ))) - : s.arc(0, 0, c, x, _, g) - : s.lineTo(D, j); - } - else s.moveTo(0, 0); - if ((s.closePath(), u)) return (s = null), u + '' || null; - } - return ( - (u.centroid = function() { - var n = - (+t.apply(this, arguments) + - +e.apply(this, arguments)) / - 2, - r = - (+i.apply(this, arguments) + - +o.apply(this, arguments)) / - 2 - - f_ / 2; - return [a_(r) * n, l_(r) * n]; - }), - (u.innerRadius = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : r_(+e)), u) - : t; - }), - (u.outerRadius = function(t) { - return arguments.length - ? ((e = 'function' == typeof t ? t : r_(+t)), u) - : e; - }), - (u.cornerRadius = function(t) { - return arguments.length - ? ((n = 'function' == typeof t ? t : r_(+t)), u) - : n; - }), - (u.padRadius = function(t) { - return arguments.length - ? ((r = - null == t - ? null - : 'function' == typeof t - ? t - : r_(+t)), - u) - : r; - }), - (u.startAngle = function(t) { - return arguments.length - ? ((i = 'function' == typeof t ? t : r_(+t)), u) - : i; - }), - (u.endAngle = function(t) { - return arguments.length - ? ((o = 'function' == typeof t ? t : r_(+t)), u) - : o; - }), - (u.padAngle = function(t) { - return arguments.length - ? ((a = 'function' == typeof t ? t : r_(+t)), u) - : a; - }), - (u.context = function(t) { - return arguments.length - ? ((s = null == t ? null : t), u) - : s; - }), - u - ); - }; - function E_(t) { - this._context = t; - } - E_.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(t, e) { - switch (((t = +t), (e = +e), this._point)) { - case 0: - (this._point = 1), - this._line - ? this._context.lineTo(t, e) - : this._context.moveTo(t, e); - break; - case 1: - this._point = 2; - default: - this._context.lineTo(t, e); - } - } - }; - var k_ = function(t) { - return new E_(t); - }; - function A_(t) { - return t[0]; - } - function T_(t) { - return t[1]; - } - var C_ = function() { - var t = A_, - e = T_, - n = r_(!0), - r = null, - i = k_, - o = null; - function a(a) { - var s, - u, - l, - c = a.length, - f = !1; - for (null == r && (o = i((l = da()))), s = 0; s <= c; ++s) - !(s < c && n((u = a[s]), s, a)) === f && - ((f = !f) ? o.lineStart() : o.lineEnd()), - f && o.point(+t(u, s, a), +e(u, s, a)); - if (l) return (o = null), l + '' || null; - } - return ( - (a.x = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : r_(+e)), a) - : t; - }), - (a.y = function(t) { - return arguments.length - ? ((e = 'function' == typeof t ? t : r_(+t)), a) - : e; - }), - (a.defined = function(t) { - return arguments.length - ? ((n = 'function' == typeof t ? t : r_(!!t)), a) - : n; - }), - (a.curve = function(t) { - return arguments.length - ? ((i = t), null != r && (o = i(r)), a) - : i; - }), - (a.context = function(t) { - return arguments.length - ? (null == t ? (r = o = null) : (o = i((r = t))), a) - : r; - }), - a - ); - }, - O_ = function() { - var t = A_, - e = null, - n = r_(0), - r = T_, - i = r_(!0), - o = null, - a = k_, - s = null; - function u(u) { - var l, - c, - f, - d, - h, - p = u.length, - g = !1, - v = new Array(p), - m = new Array(p); - for (null == o && (s = a((h = da()))), l = 0; l <= p; ++l) { - if (!(l < p && i((d = u[l]), l, u)) === g) - if ((g = !g)) (c = l), s.areaStart(), s.lineStart(); - else { - for ( - s.lineEnd(), s.lineStart(), f = l - 1; - f >= c; - --f - ) - s.point(v[f], m[f]); - s.lineEnd(), s.areaEnd(); - } - g && - ((v[l] = +t(d, l, u)), - (m[l] = +n(d, l, u)), - s.point( - e ? +e(d, l, u) : v[l], - r ? +r(d, l, u) : m[l] - )); - } - if (h) return (s = null), h + '' || null; - } - function l() { - return C_() - .defined(i) - .curve(a) - .context(o); - } - return ( - (u.x = function(n) { - return arguments.length - ? ((t = 'function' == typeof n ? n : r_(+n)), - (e = null), - u) - : t; - }), - (u.x0 = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : r_(+e)), u) - : t; - }), - (u.x1 = function(t) { - return arguments.length - ? ((e = - null == t - ? null - : 'function' == typeof t - ? t - : r_(+t)), - u) - : e; - }), - (u.y = function(t) { - return arguments.length - ? ((n = 'function' == typeof t ? t : r_(+t)), - (r = null), - u) - : n; - }), - (u.y0 = function(t) { - return arguments.length - ? ((n = 'function' == typeof t ? t : r_(+t)), u) - : n; - }), - (u.y1 = function(t) { - return arguments.length - ? ((r = - null == t - ? null - : 'function' == typeof t - ? t - : r_(+t)), - u) - : r; - }), - (u.lineX0 = u.lineY0 = function() { - return l() - .x(t) - .y(n); - }), - (u.lineY1 = function() { - return l() - .x(t) - .y(r); - }), - (u.lineX1 = function() { - return l() - .x(e) - .y(n); - }), - (u.defined = function(t) { - return arguments.length - ? ((i = 'function' == typeof t ? t : r_(!!t)), u) - : i; - }), - (u.curve = function(t) { - return arguments.length - ? ((a = t), null != o && (s = a(o)), u) - : a; - }), - (u.context = function(t) { - return arguments.length - ? (null == t ? (o = s = null) : (s = a((o = t))), u) - : o; - }), - u - ); - }, - P_ = function(t, e) { - return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN; - }, - M_ = function(t) { - return t; - }, - L_ = function() { - var t = M_, - e = P_, - n = null, - r = r_(0), - i = r_(h_), - o = r_(0); - function a(a) { - var s, - u, - l, - c, - f, - d = a.length, - h = 0, - p = new Array(d), - g = new Array(d), - v = +r.apply(this, arguments), - m = Math.min( - h_, - Math.max(-h_, i.apply(this, arguments) - v) - ), - y = Math.min(Math.abs(m) / d, o.apply(this, arguments)), - b = y * (m < 0 ? -1 : 1); - for (s = 0; s < d; ++s) - (f = g[(p[s] = s)] = +t(a[s], s, a)) > 0 && (h += f); - for ( - null != e - ? p.sort(function(t, n) { - return e(g[t], g[n]); - }) - : null != n && - p.sort(function(t, e) { - return n(a[t], a[e]); - }), - s = 0, - l = h ? (m - d * b) / h : 0; - s < d; - ++s, v = c - ) - (u = p[s]), - (c = v + ((f = g[u]) > 0 ? f * l : 0) + b), - (g[u] = { - data: a[u], - index: s, - value: f, - startAngle: v, - endAngle: c, - padAngle: y - }); - return g; - } - return ( - (a.value = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : r_(+e)), a) - : t; - }), - (a.sortValues = function(t) { - return arguments.length ? ((e = t), (n = null), a) : e; - }), - (a.sort = function(t) { - return arguments.length ? ((n = t), (e = null), a) : n; - }), - (a.startAngle = function(t) { - return arguments.length - ? ((r = 'function' == typeof t ? t : r_(+t)), a) - : r; - }), - (a.endAngle = function(t) { - return arguments.length - ? ((i = 'function' == typeof t ? t : r_(+t)), a) - : i; - }), - (a.padAngle = function(t) { - return arguments.length - ? ((o = 'function' == typeof t ? t : r_(+t)), a) - : o; - }), - a - ); - }, - D_ = R_(k_); - function j_(t) { - this._curve = t; - } - function R_(t) { - function e(e) { - return new j_(t(e)); - } - return (e._curve = t), e; - } - function N_(t) { - var e = t.curve; - return ( - (t.angle = t.x), - delete t.x, - (t.radius = t.y), - delete t.y, - (t.curve = function(t) { - return arguments.length ? e(R_(t)) : e()._curve; - }), - t - ); - } - j_.prototype = { - areaStart: function() { - this._curve.areaStart(); - }, - areaEnd: function() { - this._curve.areaEnd(); - }, - lineStart: function() { - this._curve.lineStart(); - }, - lineEnd: function() { - this._curve.lineEnd(); - }, - point: function(t, e) { - this._curve.point(e * Math.sin(t), e * -Math.cos(t)); - } - }; - var z_ = function() { - return N_(C_().curve(D_)); - }, - I_ = function() { - var t = O_().curve(D_), - e = t.curve, - n = t.lineX0, - r = t.lineX1, - i = t.lineY0, - o = t.lineY1; - return ( - (t.angle = t.x), - delete t.x, - (t.startAngle = t.x0), - delete t.x0, - (t.endAngle = t.x1), - delete t.x1, - (t.radius = t.y), - delete t.y, - (t.innerRadius = t.y0), - delete t.y0, - (t.outerRadius = t.y1), - delete t.y1, - (t.lineStartAngle = function() { - return N_(n()); - }), - delete t.lineX0, - (t.lineEndAngle = function() { - return N_(r()); - }), - delete t.lineX1, - (t.lineInnerRadius = function() { - return N_(i()); - }), - delete t.lineY0, - (t.lineOuterRadius = function() { - return N_(o()); - }), - delete t.lineY1, - (t.curve = function(t) { - return arguments.length ? e(R_(t)) : e()._curve; - }), - t - ); - }, - F_ = function(t, e) { - return [ - (e = +e) * Math.cos((t -= Math.PI / 2)), - e * Math.sin(t) - ]; - }, - V_ = Array.prototype.slice; - function B_(t) { - return t.source; - } - function G_(t) { - return t.target; - } - function H_(t) { - var e = B_, - n = G_, - r = A_, - i = T_, - o = null; - function a() { - var a, - s = V_.call(arguments), - u = e.apply(this, s), - l = n.apply(this, s); - if ( - (o || (o = a = da()), - t( - o, - +r.apply(this, ((s[0] = u), s)), - +i.apply(this, s), - +r.apply(this, ((s[0] = l), s)), - +i.apply(this, s) - ), - a) - ) - return (o = null), a + '' || null; - } - return ( - (a.source = function(t) { - return arguments.length ? ((e = t), a) : e; - }), - (a.target = function(t) { - return arguments.length ? ((n = t), a) : n; - }), - (a.x = function(t) { - return arguments.length - ? ((r = 'function' == typeof t ? t : r_(+t)), a) - : r; - }), - (a.y = function(t) { - return arguments.length - ? ((i = 'function' == typeof t ? t : r_(+t)), a) - : i; - }), - (a.context = function(t) { - return arguments.length - ? ((o = null == t ? null : t), a) - : o; - }), - a - ); - } - function U_(t, e, n, r, i) { - t.moveTo(e, n), - t.bezierCurveTo((e = (e + r) / 2), n, e, i, r, i); - } - function q_(t, e, n, r, i) { - t.moveTo(e, n), - t.bezierCurveTo(e, (n = (n + i) / 2), r, n, r, i); - } - function W_(t, e, n, r, i) { - var o = F_(e, n), - a = F_(e, (n = (n + i) / 2)), - s = F_(r, n), - u = F_(r, i); - t.moveTo(o[0], o[1]), - t.bezierCurveTo(a[0], a[1], s[0], s[1], u[0], u[1]); - } - function X_() { - return H_(U_); - } - function Y_() { - return H_(q_); - } - function $_() { - var t = H_(W_); - return ( - (t.angle = t.x), delete t.x, (t.radius = t.y), delete t.y, t - ); - } - var Q_ = { - draw: function(t, e) { - var n = Math.sqrt(e / f_); - t.moveTo(n, 0), t.arc(0, 0, n, 0, h_); - } - }, - K_ = { - draw: function(t, e) { - var n = Math.sqrt(e / 5) / 2; - t.moveTo(-3 * n, -n), - t.lineTo(-n, -n), - t.lineTo(-n, -3 * n), - t.lineTo(n, -3 * n), - t.lineTo(n, -n), - t.lineTo(3 * n, -n), - t.lineTo(3 * n, n), - t.lineTo(n, n), - t.lineTo(n, 3 * n), - t.lineTo(-n, 3 * n), - t.lineTo(-n, n), - t.lineTo(-3 * n, n), - t.closePath(); - } - }, - Z_ = Math.sqrt(1 / 3), - J_ = 2 * Z_, - tx = { - draw: function(t, e) { - var n = Math.sqrt(e / J_), - r = n * Z_; - t.moveTo(0, -n), - t.lineTo(r, 0), - t.lineTo(0, n), - t.lineTo(-r, 0), - t.closePath(); - } - }, - ex = Math.sin(f_ / 10) / Math.sin((7 * f_) / 10), - nx = Math.sin(h_ / 10) * ex, - rx = -Math.cos(h_ / 10) * ex, - ix = { - draw: function(t, e) { - var n = Math.sqrt(0.8908130915292852 * e), - r = nx * n, - i = rx * n; - t.moveTo(0, -n), t.lineTo(r, i); - for (var o = 1; o < 5; ++o) { - var a = (h_ * o) / 5, - s = Math.cos(a), - u = Math.sin(a); - t.lineTo(u * n, -s * n), - t.lineTo(s * r - u * i, u * r + s * i); - } - t.closePath(); - } - }, - ox = { - draw: function(t, e) { - var n = Math.sqrt(e), - r = -n / 2; - t.rect(r, r, n, n); - } - }, - ax = Math.sqrt(3), - sx = { - draw: function(t, e) { - var n = -Math.sqrt(e / (3 * ax)); - t.moveTo(0, 2 * n), - t.lineTo(-ax * n, -n), - t.lineTo(ax * n, -n), - t.closePath(); - } - }, - ux = Math.sqrt(3) / 2, - lx = 1 / Math.sqrt(12), - cx = 3 * (lx / 2 + 1), - fx = { - draw: function(t, e) { - var n = Math.sqrt(e / cx), - r = n / 2, - i = n * lx, - o = r, - a = n * lx + n, - s = -o, - u = a; - t.moveTo(r, i), - t.lineTo(o, a), - t.lineTo(s, u), - t.lineTo(-0.5 * r - ux * i, ux * r + -0.5 * i), - t.lineTo(-0.5 * o - ux * a, ux * o + -0.5 * a), - t.lineTo(-0.5 * s - ux * u, ux * s + -0.5 * u), - t.lineTo(-0.5 * r + ux * i, -0.5 * i - ux * r), - t.lineTo(-0.5 * o + ux * a, -0.5 * a - ux * o), - t.lineTo(-0.5 * s + ux * u, -0.5 * u - ux * s), - t.closePath(); - } - }, - dx = [Q_, K_, tx, ox, ix, sx, fx], - hx = function() { - var t = r_(Q_), - e = r_(64), - n = null; - function r() { - var r; - if ( - (n || (n = r = da()), - t - .apply(this, arguments) - .draw(n, +e.apply(this, arguments)), - r) - ) - return (n = null), r + '' || null; - } - return ( - (r.type = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : r_(e)), r) - : t; - }), - (r.size = function(t) { - return arguments.length - ? ((e = 'function' == typeof t ? t : r_(+t)), r) - : e; - }), - (r.context = function(t) { - return arguments.length - ? ((n = null == t ? null : t), r) - : n; - }), - r - ); - }, - px = function() {}; - function gx(t, e, n) { - t._context.bezierCurveTo( - (2 * t._x0 + t._x1) / 3, - (2 * t._y0 + t._y1) / 3, - (t._x0 + 2 * t._x1) / 3, - (t._y0 + 2 * t._y1) / 3, - (t._x0 + 4 * t._x1 + e) / 6, - (t._y0 + 4 * t._y1 + n) / 6 - ); - } - function vx(t) { - this._context = t; - } - vx.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: - gx(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(t, e) { - switch (((t = +t), (e = +e), this._point)) { - case 0: - (this._point = 1), - this._line - ? this._context.lineTo(t, e) - : this._context.moveTo(t, e); - 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: - gx(this, t, e); - } - (this._x0 = this._x1), - (this._x1 = t), - (this._y0 = this._y1), - (this._y1 = e); - } - }; - var mx = function(t) { - return new vx(t); - }; - function yx(t) { - this._context = t; - } - yx.prototype = { - areaStart: px, - areaEnd: px, - 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(t, e) { - switch (((t = +t), (e = +e), this._point)) { - case 0: - (this._point = 1), (this._x2 = t), (this._y2 = e); - break; - case 1: - (this._point = 2), (this._x3 = t), (this._y3 = e); - break; - case 2: - (this._point = 3), - (this._x4 = t), - (this._y4 = e), - this._context.moveTo( - (this._x0 + 4 * this._x1 + t) / 6, - (this._y0 + 4 * this._y1 + e) / 6 - ); - break; - default: - gx(this, t, e); - } - (this._x0 = this._x1), - (this._x1 = t), - (this._y0 = this._y1), - (this._y1 = e); - } - }; - var bx = function(t) { - return new yx(t); - }; - function _x(t) { - this._context = t; - } - _x.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(t, e) { - switch (((t = +t), (e = +e), 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 + t) / 6, - r = (this._y0 + 4 * this._y1 + e) / 6; - this._line - ? this._context.lineTo(n, r) - : this._context.moveTo(n, r); - break; - case 3: - this._point = 4; - default: - gx(this, t, e); - } - (this._x0 = this._x1), - (this._x1 = t), - (this._y0 = this._y1), - (this._y1 = e); - } - }; - var xx = function(t) { - return new _x(t); - }; - function wx(t, e) { - (this._basis = new vx(t)), (this._beta = e); - } - wx.prototype = { - lineStart: function() { - (this._x = []), (this._y = []), this._basis.lineStart(); - }, - lineEnd: function() { - var t = this._x, - e = this._y, - n = t.length - 1; - if (n > 0) - for ( - var r, - i = t[0], - o = e[0], - a = t[n] - i, - s = e[n] - o, - u = -1; - ++u <= n; - - ) - (r = u / n), - this._basis.point( - this._beta * t[u] + (1 - this._beta) * (i + r * a), - this._beta * e[u] + (1 - this._beta) * (o + r * s) - ); - (this._x = this._y = null), this._basis.lineEnd(); - }, - point: function(t, e) { - this._x.push(+t), this._y.push(+e); - } - }; - var Sx = (function t(e) { - function n(t) { - return 1 === e ? new vx(t) : new wx(t, e); - } - return ( - (n.beta = function(e) { - return t(+e); - }), - n - ); - })(0.85); - function Ex(t, e, n) { - t._context.bezierCurveTo( - t._x1 + t._k * (t._x2 - t._x0), - t._y1 + t._k * (t._y2 - t._y0), - t._x2 + t._k * (t._x1 - e), - t._y2 + t._k * (t._y1 - n), - t._x2, - t._y2 - ); - } - function kx(t, e) { - (this._context = t), (this._k = (1 - e) / 6); - } - kx.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: - Ex(this, this._x1, this._y1); - } - (this._line || (0 !== this._line && 1 === this._point)) && - this._context.closePath(), - (this._line = 1 - this._line); - }, - point: function(t, e) { - switch (((t = +t), (e = +e), this._point)) { - case 0: - (this._point = 1), - this._line - ? this._context.lineTo(t, e) - : this._context.moveTo(t, e); - break; - case 1: - (this._point = 2), (this._x1 = t), (this._y1 = e); - break; - case 2: - this._point = 3; - default: - Ex(this, t, e); - } - (this._x0 = this._x1), - (this._x1 = this._x2), - (this._x2 = t), - (this._y0 = this._y1), - (this._y1 = this._y2), - (this._y2 = e); - } - }; - var Ax = (function t(e) { - function n(t) { - return new kx(t, e); - } - return ( - (n.tension = function(e) { - return t(+e); - }), - n - ); - })(0); - function Tx(t, e) { - (this._context = t), (this._k = (1 - e) / 6); - } - Tx.prototype = { - areaStart: px, - areaEnd: px, - 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(t, e) { - switch (((t = +t), (e = +e), this._point)) { - case 0: - (this._point = 1), (this._x3 = t), (this._y3 = e); - break; - case 1: - (this._point = 2), - this._context.moveTo((this._x4 = t), (this._y4 = e)); - break; - case 2: - (this._point = 3), (this._x5 = t), (this._y5 = e); - break; - default: - Ex(this, t, e); - } - (this._x0 = this._x1), - (this._x1 = this._x2), - (this._x2 = t), - (this._y0 = this._y1), - (this._y1 = this._y2), - (this._y2 = e); - } - }; - var Cx = (function t(e) { - function n(t) { - return new Tx(t, e); - } - return ( - (n.tension = function(e) { - return t(+e); - }), - n - ); - })(0); - function Ox(t, e) { - (this._context = t), (this._k = (1 - e) / 6); - } - Ox.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(t, e) { - switch (((t = +t), (e = +e), 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: - Ex(this, t, e); - } - (this._x0 = this._x1), - (this._x1 = this._x2), - (this._x2 = t), - (this._y0 = this._y1), - (this._y1 = this._y2), - (this._y2 = e); - } - }; - var Px = (function t(e) { - function n(t) { - return new Ox(t, e); - } - return ( - (n.tension = function(e) { - return t(+e); - }), - n - ); - })(0); - function Mx(t, e, n) { - var r = t._x1, - i = t._y1, - o = t._x2, - a = t._y2; - if (t._l01_a > 1e-12) { - var s = 2 * t._l01_2a + 3 * t._l01_a * t._l12_a + t._l12_2a, - u = 3 * t._l01_a * (t._l01_a + t._l12_a); - (r = (r * s - t._x0 * t._l12_2a + t._x2 * t._l01_2a) / u), - (i = (i * s - t._y0 * t._l12_2a + t._y2 * t._l01_2a) / u); - } - if (t._l23_a > 1e-12) { - var l = 2 * t._l23_2a + 3 * t._l23_a * t._l12_a + t._l12_2a, - c = 3 * t._l23_a * (t._l23_a + t._l12_a); - (o = (o * l + t._x1 * t._l23_2a - e * t._l12_2a) / c), - (a = (a * l + t._y1 * t._l23_2a - n * t._l12_2a) / c); - } - t._context.bezierCurveTo(r, i, o, a, t._x2, t._y2); - } - function Lx(t, e) { - (this._context = t), (this._alpha = e); - } - Lx.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(t, e) { - if (((t = +t), (e = +e), this._point)) { - var n = this._x2 - t, - r = this._y2 - e; - 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(t, e) - : this._context.moveTo(t, e); - break; - case 1: - this._point = 2; - break; - case 2: - this._point = 3; - default: - Mx(this, t, e); - } - (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 = t), - (this._y0 = this._y1), - (this._y1 = this._y2), - (this._y2 = e); - } - }; - var Dx = (function t(e) { - function n(t) { - return e ? new Lx(t, e) : new kx(t, 0); - } - return ( - (n.alpha = function(e) { - return t(+e); - }), - n - ); - })(0.5); - function jx(t, e) { - (this._context = t), (this._alpha = e); - } - jx.prototype = { - areaStart: px, - areaEnd: px, - 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(t, e) { - if (((t = +t), (e = +e), this._point)) { - var n = this._x2 - t, - r = this._y2 - e; - 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 = t), (this._y3 = e); - break; - case 1: - (this._point = 2), - this._context.moveTo((this._x4 = t), (this._y4 = e)); - break; - case 2: - (this._point = 3), (this._x5 = t), (this._y5 = e); - break; - default: - Mx(this, t, e); - } - (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 = t), - (this._y0 = this._y1), - (this._y1 = this._y2), - (this._y2 = e); - } - }; - var Rx = (function t(e) { - function n(t) { - return e ? new jx(t, e) : new Tx(t, 0); - } - return ( - (n.alpha = function(e) { - return t(+e); - }), - n - ); - })(0.5); - function Nx(t, e) { - (this._context = t), (this._alpha = e); - } - Nx.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(t, e) { - if (((t = +t), (e = +e), this._point)) { - var n = this._x2 - t, - r = this._y2 - e; - 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: - Mx(this, t, e); - } - (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 = t), - (this._y0 = this._y1), - (this._y1 = this._y2), - (this._y2 = e); - } - }; - var zx = (function t(e) { - function n(t) { - return e ? new Nx(t, e) : new Ox(t, 0); - } - return ( - (n.alpha = function(e) { - return t(+e); - }), - n - ); - })(0.5); - function Ix(t) { - this._context = t; - } - Ix.prototype = { - areaStart: px, - areaEnd: px, - lineStart: function() { - this._point = 0; - }, - lineEnd: function() { - this._point && this._context.closePath(); - }, - point: function(t, e) { - (t = +t), - (e = +e), - this._point - ? this._context.lineTo(t, e) - : ((this._point = 1), this._context.moveTo(t, e)); - } - }; - var Fx = function(t) { - return new Ix(t); - }; - function Vx(t) { - return t < 0 ? -1 : 1; - } - function Bx(t, e, n) { - var r = t._x1 - t._x0, - i = e - t._x1, - o = (t._y1 - t._y0) / (r || (i < 0 && -0)), - a = (n - t._y1) / (i || (r < 0 && -0)), - s = (o * i + a * r) / (r + i); - return ( - (Vx(o) + Vx(a)) * - Math.min(Math.abs(o), Math.abs(a), 0.5 * Math.abs(s)) || 0 - ); - } - function Gx(t, e) { - var n = t._x1 - t._x0; - return n ? ((3 * (t._y1 - t._y0)) / n - e) / 2 : e; - } - function Hx(t, e, n) { - var r = t._x0, - i = t._y0, - o = t._x1, - a = t._y1, - s = (o - r) / 3; - t._context.bezierCurveTo( - r + s, - i + s * e, - o - s, - a - s * n, - o, - a - ); - } - function Ux(t) { - this._context = t; - } - function qx(t) { - this._context = new Wx(t); - } - function Wx(t) { - this._context = t; - } - function Xx(t) { - return new Ux(t); - } - function Yx(t) { - return new qx(t); - } - function $x(t) { - this._context = t; - } - function Qx(t) { - var e, - n, - r = t.length - 1, - i = new Array(r), - o = new Array(r), - a = new Array(r); - for ( - i[0] = 0, o[0] = 2, a[0] = t[0] + 2 * t[1], e = 1; - e < r - 1; - ++e - ) - (i[e] = 1), (o[e] = 4), (a[e] = 4 * t[e] + 2 * t[e + 1]); - for ( - i[r - 1] = 2, - o[r - 1] = 7, - a[r - 1] = 8 * t[r - 1] + t[r], - e = 1; - e < r; - ++e - ) - (n = i[e] / o[e - 1]), (o[e] -= n), (a[e] -= n * a[e - 1]); - for (i[r - 1] = a[r - 1] / o[r - 1], e = r - 2; e >= 0; --e) - i[e] = (a[e] - i[e + 1]) / o[e]; - for (o[r - 1] = (t[r] + i[r - 1]) / 2, e = 0; e < r - 1; ++e) - o[e] = 2 * t[e + 1] - i[e + 1]; - return [i, o]; - } - (Ux.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: - Hx(this, this._t0, Gx(this, this._t0)); - } - (this._line || (0 !== this._line && 1 === this._point)) && - this._context.closePath(), - (this._line = 1 - this._line); - }, - point: function(t, e) { - var n = NaN; - if (((e = +e), (t = +t) !== this._x1 || e !== this._y1)) { - switch (this._point) { - case 0: - (this._point = 1), - this._line - ? this._context.lineTo(t, e) - : this._context.moveTo(t, e); - break; - case 1: - this._point = 2; - break; - case 2: - (this._point = 3), - Hx(this, Gx(this, (n = Bx(this, t, e))), n); - break; - default: - Hx(this, this._t0, (n = Bx(this, t, e))); - } - (this._x0 = this._x1), - (this._x1 = t), - (this._y0 = this._y1), - (this._y1 = e), - (this._t0 = n); - } - } - }), - ((qx.prototype = Object.create(Ux.prototype)).point = function( - t, - e - ) { - Ux.prototype.point.call(this, e, t); - }), - (Wx.prototype = { - moveTo: function(t, e) { - this._context.moveTo(e, t); - }, - closePath: function() { - this._context.closePath(); - }, - lineTo: function(t, e) { - this._context.lineTo(e, t); - }, - bezierCurveTo: function(t, e, n, r, i, o) { - this._context.bezierCurveTo(e, t, r, n, o, i); - } - }), - ($x.prototype = { - areaStart: function() { - this._line = 0; - }, - areaEnd: function() { - this._line = NaN; - }, - lineStart: function() { - (this._x = []), (this._y = []); - }, - lineEnd: function() { - var t = this._x, - e = this._y, - n = t.length; - if (n) - if ( - (this._line - ? this._context.lineTo(t[0], e[0]) - : this._context.moveTo(t[0], e[0]), - 2 === n) - ) - this._context.lineTo(t[1], e[1]); - else - for ( - var r = Qx(t), i = Qx(e), o = 0, a = 1; - a < n; - ++o, ++a - ) - this._context.bezierCurveTo( - r[0][o], - i[0][o], - r[1][o], - i[1][o], - t[a], - e[a] - ); - (this._line || (0 !== this._line && 1 === n)) && - this._context.closePath(), - (this._line = 1 - this._line), - (this._x = this._y = null); - }, - point: function(t, e) { - this._x.push(+t), this._y.push(+e); - } - }); - var Kx = function(t) { - return new $x(t); - }; - function Zx(t, e) { - (this._context = t), (this._t = e); - } - Zx.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(t, e) { - switch (((t = +t), (e = +e), this._point)) { - case 0: - (this._point = 1), - this._line - ? this._context.lineTo(t, e) - : this._context.moveTo(t, e); - break; - case 1: - this._point = 2; - default: - if (this._t <= 0) - this._context.lineTo(this._x, e), - this._context.lineTo(t, e); - else { - var n = this._x * (1 - this._t) + t * this._t; - this._context.lineTo(n, this._y), - this._context.lineTo(n, e); - } - } - (this._x = t), (this._y = e); - } - }; - var Jx = function(t) { - return new Zx(t, 0.5); - }; - function tw(t) { - return new Zx(t, 0); - } - function ew(t) { - return new Zx(t, 1); - } - var nw = function(t, e) { - if ((i = t.length) > 1) - for ( - var n, r, i, o = 1, a = t[e[0]], s = a.length; - o < i; - ++o - ) - for (r = a, a = t[e[o]], n = 0; n < s; ++n) - a[n][1] += a[n][0] = isNaN(r[n][1]) ? r[n][0] : r[n][1]; - }, - rw = function(t) { - for (var e = t.length, n = new Array(e); --e >= 0; ) n[e] = e; - return n; - }; - function iw(t, e) { - return t[e]; - } - var ow = function() { - var t = r_([]), - e = rw, - n = nw, - r = iw; - function i(i) { - var o, - a, - s = t.apply(this, arguments), - u = i.length, - l = s.length, - c = new Array(l); - for (o = 0; o < l; ++o) { - for ( - var f, d = s[o], h = (c[o] = new Array(u)), p = 0; - p < u; - ++p - ) - (h[p] = f = [0, +r(i[p], d, p, i)]), (f.data = i[p]); - h.key = d; - } - for (o = 0, a = e(c); o < l; ++o) c[a[o]].index = o; - return n(c, a), c; - } - return ( - (i.keys = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : r_(V_.call(e))), i) - : t; - }), - (i.value = function(t) { - return arguments.length - ? ((r = 'function' == typeof t ? t : r_(+t)), i) - : r; - }), - (i.order = function(t) { - return arguments.length - ? ((e = - null == t - ? rw - : 'function' == typeof t - ? t - : r_(V_.call(t))), - i) - : e; - }), - (i.offset = function(t) { - return arguments.length - ? ((n = null == t ? nw : t), i) - : n; - }), - i - ); - }, - aw = function(t, e) { - if ((r = t.length) > 0) { - for (var n, r, i, o = 0, a = t[0].length; o < a; ++o) { - for (i = n = 0; n < r; ++n) i += t[n][o][1] || 0; - if (i) for (n = 0; n < r; ++n) t[n][o][1] /= i; - } - nw(t, e); - } - }, - sw = function(t, e) { - if ((s = t.length) > 0) - for ( - var n, r, i, o, a, s, u = 0, l = t[e[0]].length; - u < l; - ++u - ) - for (o = a = 0, n = 0; n < s; ++n) - (i = (r = t[e[n]][u])[1] - r[0]) >= 0 - ? ((r[0] = o), (r[1] = o += i)) - : i < 0 - ? ((r[1] = a), (r[0] = a += i)) - : (r[0] = o); - }, - uw = function(t, e) { - if ((n = t.length) > 0) { - for (var n, r = 0, i = t[e[0]], o = i.length; r < o; ++r) { - for (var a = 0, s = 0; a < n; ++a) s += t[a][r][1] || 0; - i[r][1] += i[r][0] = -s / 2; - } - nw(t, e); - } - }, - lw = function(t, e) { - if ((i = t.length) > 0 && (r = (n = t[e[0]]).length) > 0) { - for (var n, r, i, o = 0, a = 1; a < r; ++a) { - for (var s = 0, u = 0, l = 0; s < i; ++s) { - for ( - var c = t[e[s]], - f = c[a][1] || 0, - d = (f - (c[a - 1][1] || 0)) / 2, - h = 0; - h < s; - ++h - ) { - var p = t[e[h]]; - d += (p[a][1] || 0) - (p[a - 1][1] || 0); - } - (u += f), (l += d * f); - } - (n[a - 1][1] += n[a - 1][0] = o), u && (o -= l / u); - } - (n[a - 1][1] += n[a - 1][0] = o), nw(t, e); - } - }, - cw = function(t) { - var e = t.map(fw); - return rw(t).sort(function(t, n) { - return e[t] - e[n]; - }); - }; - function fw(t) { - for (var e, n = -1, r = 0, i = t.length, o = -1 / 0; ++n < i; ) - (e = +t[n][1]) > o && ((o = e), (r = n)); - return r; - } - var dw = function(t) { - var e = t.map(hw); - return rw(t).sort(function(t, n) { - return e[t] - e[n]; - }); - }; - function hw(t) { - for (var e, n = 0, r = -1, i = t.length; ++r < i; ) - (e = +t[r][1]) && (n += e); - return n; - } - var pw = function(t) { - return dw(t).reverse(); - }, - gw = function(t) { - var e, - n, - r = t.length, - i = t.map(hw), - o = cw(t), - a = 0, - s = 0, - u = [], - l = []; - for (e = 0; e < r; ++e) - (n = o[e]), - a < s - ? ((a += i[n]), u.push(n)) - : ((s += i[n]), l.push(n)); - return l.reverse().concat(u); - }, - vw = function(t) { - return rw(t).reverse(); - }, - mw = Date.prototype.toISOString - ? function(t) { - return t.toISOString(); - } - : Bv('%Y-%m-%dT%H:%M:%S.%LZ'), - yw = +new Date('2000-01-01T00:00:00.000Z') - ? function(t) { - var e = new Date(t); - return isNaN(e) ? null : e; - } - : Gv('%Y-%m-%dT%H:%M:%S.%LZ'), - bw = function(t) { - return function() { - return t; - }; - }; - function _w(t) { - return t[0]; - } - function xw(t) { - return t[1]; - } - function ww() { - this._ = null; - } - function Sw(t) { - t.U = t.C = t.L = t.R = t.P = t.N = null; - } - function Ew(t, e) { - var n = e, - r = e.R, - i = n.U; - i ? (i.L === n ? (i.L = r) : (i.R = r)) : (t._ = r), - (r.U = i), - (n.U = r), - (n.R = r.L), - n.R && (n.R.U = n), - (r.L = n); - } - function kw(t, e) { - var n = e, - r = e.L, - i = n.U; - i ? (i.L === n ? (i.L = r) : (i.R = r)) : (t._ = r), - (r.U = i), - (n.U = r), - (n.L = r.R), - n.L && (n.L.U = n), - (r.R = n); - } - function Aw(t) { - for (; t.L; ) t = t.L; - return t; - } - ww.prototype = { - constructor: ww, - insert: function(t, e) { - var n, r, i; - if (t) { - if ( - ((e.P = t), - (e.N = t.N), - t.N && (t.N.P = e), - (t.N = e), - t.R) - ) { - for (t = t.R; t.L; ) t = t.L; - t.L = e; - } else t.R = e; - n = t; - } else - this._ - ? ((t = Aw(this._)), - (e.P = null), - (e.N = t), - (t.P = t.L = e), - (n = t)) - : ((e.P = e.N = null), (this._ = e), (n = null)); - for (e.L = e.R = null, e.U = n, e.C = !0, t = e; n && n.C; ) - n === (r = n.U).L - ? (i = r.R) && i.C - ? ((n.C = i.C = !1), (r.C = !0), (t = r)) - : (t === n.R && (Ew(this, n), (n = (t = n).U)), - (n.C = !1), - (r.C = !0), - kw(this, r)) - : (i = r.L) && i.C - ? ((n.C = i.C = !1), (r.C = !0), (t = r)) - : (t === n.L && (kw(this, n), (n = (t = n).U)), - (n.C = !1), - (r.C = !0), - Ew(this, r)), - (n = t.U); - this._.C = !1; - }, - remove: function(t) { - t.N && (t.N.P = t.P), - t.P && (t.P.N = t.N), - (t.N = t.P = null); - var e, - n, - r, - i = t.U, - o = t.L, - a = t.R; - if ( - ((n = o ? (a ? Aw(a) : o) : a), - i ? (i.L === t ? (i.L = n) : (i.R = n)) : (this._ = n), - o && a - ? ((r = n.C), - (n.C = t.C), - (n.L = o), - (o.U = n), - n !== a - ? ((i = n.U), - (n.U = t.U), - (t = n.R), - (i.L = t), - (n.R = a), - (a.U = n)) - : ((n.U = i), (i = n), (t = n.R))) - : ((r = t.C), (t = n)), - t && (t.U = i), - !r) - ) - if (t && t.C) t.C = !1; - else { - do { - if (t === this._) break; - if (t === i.L) { - if ( - ((e = i.R).C && - ((e.C = !1), (i.C = !0), Ew(this, i), (e = i.R)), - (e.L && e.L.C) || (e.R && e.R.C)) - ) { - (e.R && e.R.C) || - ((e.L.C = !1), - (e.C = !0), - kw(this, e), - (e = i.R)), - (e.C = i.C), - (i.C = e.R.C = !1), - Ew(this, i), - (t = this._); - break; - } - } else if ( - ((e = i.L).C && - ((e.C = !1), (i.C = !0), kw(this, i), (e = i.L)), - (e.L && e.L.C) || (e.R && e.R.C)) - ) { - (e.L && e.L.C) || - ((e.R.C = !1), (e.C = !0), Ew(this, e), (e = i.L)), - (e.C = i.C), - (i.C = e.L.C = !1), - kw(this, i), - (t = this._); - break; - } - (e.C = !0), (t = i), (i = i.U); - } while (!t.C); - t && (t.C = !1); - } - } - }; - var Tw = ww; - function Cw(t, e, n, r) { - var i = [null, null], - o = Zw.push(i) - 1; - return ( - (i.left = t), - (i.right = e), - n && Pw(i, t, e, n), - r && Pw(i, e, t, r), - Qw[t.index].halfedges.push(o), - Qw[e.index].halfedges.push(o), - i - ); - } - function Ow(t, e, n) { - var r = [e, n]; - return (r.left = t), r; - } - function Pw(t, e, n, r) { - t[0] || t[1] - ? t.left === n - ? (t[1] = r) - : (t[0] = r) - : ((t[0] = r), (t.left = e), (t.right = n)); - } - function Mw(t, e, n, r, i) { - var o, - a = t[0], - s = t[1], - u = a[0], - l = a[1], - c = 0, - f = 1, - d = s[0] - u, - h = s[1] - l; - if (((o = e - u), d || !(o > 0))) { - if (((o /= d), d < 0)) { - if (o < c) return; - o < f && (f = o); - } else if (d > 0) { - if (o > f) return; - o > c && (c = o); - } - if (((o = r - u), d || !(o < 0))) { - if (((o /= d), d < 0)) { - if (o > f) return; - o > c && (c = o); - } else if (d > 0) { - if (o < c) return; - o < f && (f = o); - } - if (((o = n - l), h || !(o > 0))) { - if (((o /= h), h < 0)) { - if (o < c) return; - o < f && (f = o); - } else if (h > 0) { - if (o > f) return; - o > c && (c = o); - } - if (((o = i - l), h || !(o < 0))) { - if (((o /= h), h < 0)) { - if (o > f) return; - o > c && (c = o); - } else if (h > 0) { - if (o < c) return; - o < f && (f = o); - } - return ( - !(c > 0 || f < 1) || - (c > 0 && (t[0] = [u + c * d, l + c * h]), - f < 1 && (t[1] = [u + f * d, l + f * h]), - !0) - ); - } - } - } - } - } - function Lw(t, e, n, r, i) { - var o = t[1]; - if (o) return !0; - var a, - s, - u = t[0], - l = t.left, - c = t.right, - f = l[0], - d = l[1], - h = c[0], - p = c[1], - g = (f + h) / 2, - v = (d + p) / 2; - if (p === d) { - if (g < e || g >= r) return; - if (f > h) { - if (u) { - if (u[1] >= i) return; - } else u = [g, n]; - o = [g, i]; - } else { - if (u) { - if (u[1] < n) return; - } else u = [g, i]; - o = [g, n]; - } - } else if ( - ((s = v - (a = (f - h) / (p - d)) * g), a < -1 || a > 1) - ) - if (f > h) { - if (u) { - if (u[1] >= i) return; - } else u = [(n - s) / a, n]; - o = [(i - s) / a, i]; - } else { - if (u) { - if (u[1] < n) return; - } else u = [(i - s) / a, i]; - o = [(n - s) / a, n]; - } - else if (d < p) { - if (u) { - if (u[0] >= r) return; - } else u = [e, a * e + s]; - o = [r, a * r + s]; - } else { - if (u) { - if (u[0] < e) return; - } else u = [r, a * r + s]; - o = [e, a * e + s]; - } - return (t[0] = u), (t[1] = o), !0; - } - function Dw(t, e) { - var n = t.site, - r = e.left, - i = e.right; - return ( - n === i && ((i = r), (r = n)), - i - ? Math.atan2(i[1] - r[1], i[0] - r[0]) - : (n === r - ? ((r = e[1]), (i = e[0])) - : ((r = e[0]), (i = e[1])), - Math.atan2(r[0] - i[0], i[1] - r[1])) - ); - } - function jw(t, e) { - return e[+(e.left !== t.site)]; - } - function Rw(t, e) { - return e[+(e.left === t.site)]; - } - var Nw, - zw = []; - function Iw() { - Sw(this), - (this.x = this.y = this.arc = this.site = this.cy = null); - } - function Fw(t) { - var e = t.P, - n = t.N; - if (e && n) { - var r = e.site, - i = t.site, - o = n.site; - if (r !== o) { - var a = i[0], - s = i[1], - u = r[0] - a, - l = r[1] - s, - c = o[0] - a, - f = o[1] - s, - d = 2 * (u * f - l * c); - if (!(d >= -tS)) { - var h = u * u + l * l, - p = c * c + f * f, - g = (f * h - l * p) / d, - v = (u * p - c * h) / d, - m = zw.pop() || new Iw(); - (m.arc = t), - (m.site = i), - (m.x = g + a), - (m.y = (m.cy = v + s) + Math.sqrt(g * g + v * v)), - (t.circle = m); - for (var y = null, b = Kw._; b; ) - if (m.y < b.y || (m.y === b.y && m.x <= b.x)) { - if (!b.L) { - y = b.P; - break; - } - b = b.L; - } else { - if (!b.R) { - y = b; - break; - } - b = b.R; - } - Kw.insert(y, m), y || (Nw = m); - } - } - } - } - function Vw(t) { - var e = t.circle; - e && - (e.P || (Nw = e.N), - Kw.remove(e), - zw.push(e), - Sw(e), - (t.circle = null)); - } - var Bw = []; - function Gw() { - Sw(this), (this.edge = this.site = this.circle = null); - } - function Hw(t) { - var e = Bw.pop() || new Gw(); - return (e.site = t), e; - } - function Uw(t) { - Vw(t), $w.remove(t), Bw.push(t), Sw(t); - } - function qw(t) { - var e = t.circle, - n = e.x, - r = e.cy, - i = [n, r], - o = t.P, - a = t.N, - s = [t]; - Uw(t); - for ( - var u = o; - u.circle && - Math.abs(n - u.circle.x) < Jw && - Math.abs(r - u.circle.cy) < Jw; - - ) - (o = u.P), s.unshift(u), Uw(u), (u = o); - s.unshift(u), Vw(u); - for ( - var l = a; - l.circle && - Math.abs(n - l.circle.x) < Jw && - Math.abs(r - l.circle.cy) < Jw; - - ) - (a = l.N), s.push(l), Uw(l), (l = a); - s.push(l), Vw(l); - var c, - f = s.length; - for (c = 1; c < f; ++c) - (l = s[c]), (u = s[c - 1]), Pw(l.edge, u.site, l.site, i); - (u = s[0]), - ((l = s[f - 1]).edge = Cw(u.site, l.site, null, i)), - Fw(u), - Fw(l); - } - function Ww(t) { - for (var e, n, r, i, o = t[0], a = t[1], s = $w._; s; ) - if ((r = Xw(s, a) - o) > Jw) s = s.L; - else { - if (!((i = o - Yw(s, a)) > Jw)) { - r > -Jw - ? ((e = s.P), (n = s)) - : i > -Jw - ? ((e = s), (n = s.N)) - : (e = n = s); - break; - } - if (!s.R) { - e = s; - break; - } - s = s.R; - } - !(function(t) { - Qw[t.index] = { site: t, halfedges: [] }; - })(t); - var u = Hw(t); - if (($w.insert(e, u), e || n)) { - if (e === n) - return ( - Vw(e), - (n = Hw(e.site)), - $w.insert(u, n), - (u.edge = n.edge = Cw(e.site, u.site)), - Fw(e), - void Fw(n) - ); - if (n) { - Vw(e), Vw(n); - var l = e.site, - c = l[0], - f = l[1], - d = t[0] - c, - h = t[1] - f, - p = n.site, - g = p[0] - c, - v = p[1] - f, - m = 2 * (d * v - h * g), - y = d * d + h * h, - b = g * g + v * v, - _ = [(v * y - h * b) / m + c, (d * b - g * y) / m + f]; - Pw(n.edge, l, p, _), - (u.edge = Cw(l, t, null, _)), - (n.edge = Cw(t, p, null, _)), - Fw(e), - Fw(n); - } else u.edge = Cw(e.site, u.site); - } - } - function Xw(t, e) { - var n = t.site, - r = n[0], - i = n[1], - o = i - e; - if (!o) return r; - var a = t.P; - if (!a) return -1 / 0; - var s = (n = a.site)[0], - u = n[1], - l = u - e; - if (!l) return s; - var c = s - r, - f = 1 / o - 1 / l, - d = c / l; - return f - ? (-d + - Math.sqrt( - d * d - - 2 * f * ((c * c) / (-2 * l) - u + l / 2 + i - o / 2) - )) / - f + - r - : (r + s) / 2; - } - function Yw(t, e) { - var n = t.N; - if (n) return Xw(n, e); - var r = t.site; - return r[1] === e ? r[0] : 1 / 0; - } - var $w, - Qw, - Kw, - Zw, - Jw = 1e-6, - tS = 1e-12; - function eS(t, e) { - return e[1] - t[1] || e[0] - t[0]; - } - function nS(t, e) { - var n, - r, - i, - o = t.sort(eS).pop(); - for ( - Zw = [], - Qw = new Array(t.length), - $w = new Tw(), - Kw = new Tw(); - ; - - ) - if ( - ((i = Nw), - o && (!i || o[1] < i.y || (o[1] === i.y && o[0] < i.x))) - ) - (o[0] === n && o[1] === r) || - (Ww(o), (n = o[0]), (r = o[1])), - (o = t.pop()); - else { - if (!i) break; - qw(i.arc); - } - if ( - ((function() { - for (var t, e, n, r, i = 0, o = Qw.length; i < o; ++i) - if ((t = Qw[i]) && (r = (e = t.halfedges).length)) { - var a = new Array(r), - s = new Array(r); - for (n = 0; n < r; ++n) - (a[n] = n), (s[n] = Dw(t, Zw[e[n]])); - for ( - a.sort(function(t, e) { - return s[e] - s[t]; - }), - n = 0; - n < r; - ++n - ) - s[n] = e[a[n]]; - for (n = 0; n < r; ++n) e[n] = s[n]; - } - })(), - e) - ) { - var a = +e[0][0], - s = +e[0][1], - u = +e[1][0], - l = +e[1][1]; - !(function(t, e, n, r) { - for (var i, o = Zw.length; o--; ) - (Lw((i = Zw[o]), t, e, n, r) && - Mw(i, t, e, n, r) && - (Math.abs(i[0][0] - i[1][0]) > Jw || - Math.abs(i[0][1] - i[1][1]) > Jw)) || - delete Zw[o]; - })(a, s, u, l), - (function(t, e, n, r) { - var i, - o, - a, - s, - u, - l, - c, - f, - d, - h, - p, - g, - v = Qw.length, - m = !0; - for (i = 0; i < v; ++i) - if ((o = Qw[i])) { - for (a = o.site, s = (u = o.halfedges).length; s--; ) - Zw[u[s]] || u.splice(s, 1); - for (s = 0, l = u.length; s < l; ) - (p = (h = Rw(o, Zw[u[s]]))[0]), - (g = h[1]), - (f = (c = jw(o, Zw[u[++s % l]]))[0]), - (d = c[1]), - (Math.abs(p - f) > Jw || Math.abs(g - d) > Jw) && - (u.splice( - s, - 0, - Zw.push( - Ow( - a, - h, - Math.abs(p - t) < Jw && r - g > Jw - ? [t, Math.abs(f - t) < Jw ? d : r] - : Math.abs(g - r) < Jw && n - p > Jw - ? [Math.abs(d - r) < Jw ? f : n, r] - : Math.abs(p - n) < Jw && g - e > Jw - ? [n, Math.abs(f - n) < Jw ? d : e] - : Math.abs(g - e) < Jw && p - t > Jw - ? [Math.abs(d - e) < Jw ? f : t, e] - : null - ) - ) - 1 - ), - ++l); - l && (m = !1); - } - if (m) { - var y, - b, - _, - x = 1 / 0; - for (i = 0, m = null; i < v; ++i) - (o = Qw[i]) && - (_ = - (y = (a = o.site)[0] - t) * y + - (b = a[1] - e) * b) < x && - ((x = _), (m = o)); - if (m) { - var w = [t, e], - S = [t, r], - E = [n, r], - k = [n, e]; - m.halfedges.push( - Zw.push(Ow((a = m.site), w, S)) - 1, - Zw.push(Ow(a, S, E)) - 1, - Zw.push(Ow(a, E, k)) - 1, - Zw.push(Ow(a, k, w)) - 1 - ); - } - } - for (i = 0; i < v; ++i) - (o = Qw[i]) && (o.halfedges.length || delete Qw[i]); - })(a, s, u, l); - } - (this.edges = Zw), - (this.cells = Qw), - ($w = Kw = Zw = Qw = null); - } - nS.prototype = { - constructor: nS, - polygons: function() { - var t = this.edges; - return this.cells.map(function(e) { - var n = e.halfedges.map(function(n) { - return jw(e, t[n]); - }); - return (n.data = e.site.data), n; - }); - }, - triangles: function() { - var t = [], - e = this.edges; - return ( - this.cells.forEach(function(n, r) { - if ((o = (i = n.halfedges).length)) - for ( - var i, - o, - a, - s, - u, - l, - c = n.site, - f = -1, - d = e[i[o - 1]], - h = d.left === c ? d.right : d.left; - ++f < o; - - ) - (a = h), - (h = (d = e[i[f]]).left === c ? d.right : d.left), - a && - h && - r < a.index && - r < h.index && - ((u = a), - (l = h), - ((s = c)[0] - l[0]) * (u[1] - s[1]) - - (s[0] - u[0]) * (l[1] - s[1]) < - 0) && - t.push([c.data, a.data, h.data]); - }), - t - ); - }, - links: function() { - return this.edges - .filter(function(t) { - return t.right; - }) - .map(function(t) { - return { source: t.left.data, target: t.right.data }; - }); - }, - find: function(t, e, n) { - for ( - var r, i, o = this, a = o._found || 0, s = o.cells.length; - !(i = o.cells[a]); - - ) - if (++a >= s) return null; - var u = t - i.site[0], - l = e - i.site[1], - c = u * u + l * l; - do { - (i = o.cells[(r = a)]), - (a = null), - i.halfedges.forEach(function(n) { - var r = o.edges[n], - s = r.left; - if ((s !== i.site && s) || (s = r.right)) { - var u = t - s[0], - l = e - s[1], - f = u * u + l * l; - f < c && ((c = f), (a = s.index)); - } - }); - } while (null !== a); - return ( - (o._found = r), null == n || c <= n * n ? i.site : null - ); - } - }; - var rS = function() { - var t = _w, - e = xw, - n = null; - function r(r) { - return new nS( - r.map(function(n, i) { - var o = [ - Math.round(t(n, i, r) / Jw) * Jw, - Math.round(e(n, i, r) / Jw) * Jw - ]; - return (o.index = i), (o.data = n), o; - }), - n - ); - } - return ( - (r.polygons = function(t) { - return r(t).polygons(); - }), - (r.links = function(t) { - return r(t).links(); - }), - (r.triangles = function(t) { - return r(t).triangles(); - }), - (r.x = function(e) { - return arguments.length - ? ((t = 'function' == typeof e ? e : bw(+e)), r) - : t; - }), - (r.y = function(t) { - return arguments.length - ? ((e = 'function' == typeof t ? t : bw(+t)), r) - : e; - }), - (r.extent = function(t) { - return arguments.length - ? ((n = - null == t - ? null - : [ - [+t[0][0], +t[0][1]], - [+t[1][0], +t[1][1]] - ]), - r) - : n && [ - [n[0][0], n[0][1]], - [n[1][0], n[1][1]] - ]; - }), - (r.size = function(t) { - return arguments.length - ? ((n = - null == t - ? null - : [ - [0, 0], - [+t[0], +t[1]] - ]), - r) - : n && [n[1][0] - n[0][0], n[1][1] - n[0][1]]; - }), - r - ); - }, - iS = function(t) { - return function() { - return t; - }; - }; - function oS(t, e, n) { - (this.target = t), (this.type = e), (this.transform = n); - } - function aS(t, e, n) { - (this.k = t), (this.x = e), (this.y = n); - } - aS.prototype = { - constructor: aS, - scale: function(t) { - return 1 === t ? this : new aS(this.k * t, this.x, this.y); - }, - translate: function(t, e) { - return (0 === t) & (0 === e) - ? this - : new aS(this.k, this.x + this.k * t, this.y + this.k * e); - }, - apply: function(t) { - return [t[0] * this.k + this.x, t[1] * this.k + this.y]; - }, - applyX: function(t) { - return t * this.k + this.x; - }, - applyY: function(t) { - return t * this.k + this.y; - }, - invert: function(t) { - return [(t[0] - this.x) / this.k, (t[1] - this.y) / this.k]; - }, - invertX: function(t) { - return (t - this.x) / this.k; - }, - invertY: function(t) { - return (t - this.y) / this.k; - }, - rescaleX: function(t) { - return t.copy().domain( - t - .range() - .map(this.invertX, this) - .map(t.invert, t) - ); - }, - rescaleY: function(t) { - return t.copy().domain( - t - .range() - .map(this.invertY, this) - .map(t.invert, t) - ); - }, - toString: function() { - return ( - 'translate(' + - this.x + - ',' + - this.y + - ') scale(' + - this.k + - ')' - ); - } - }; - var sS = new aS(1, 0, 0); - function uS(t) { - for (; !t.__zoom; ) if (!(t = t.parentNode)) return sS; - return t.__zoom; - } - function lS() { - ue.stopImmediatePropagation(); - } - uS.prototype = aS.prototype; - var cS = function() { - ue.preventDefault(), ue.stopImmediatePropagation(); - }; - function fS() { - return !ue.ctrlKey && !ue.button; - } - function dS() { - var t = this; - return t instanceof SVGElement - ? (t = t.ownerSVGElement || t).hasAttribute('viewBox') - ? [ - [(t = t.viewBox.baseVal).x, t.y], - [t.x + t.width, t.y + t.height] - ] - : [ - [0, 0], - [t.width.baseVal.value, t.height.baseVal.value] - ] - : [ - [0, 0], - [t.clientWidth, t.clientHeight] - ]; - } - function hS() { - return this.__zoom || sS; - } - function pS() { - return ( - -ue.deltaY * - (1 === ue.deltaMode ? 0.05 : ue.deltaMode ? 1 : 0.002) - ); - } - function gS() { - return navigator.maxTouchPoints || 'ontouchstart' in this; - } - function vS(t, e, n) { - var r = t.invertX(e[0][0]) - n[0][0], - i = t.invertX(e[1][0]) - n[1][0], - o = t.invertY(e[0][1]) - n[0][1], - a = t.invertY(e[1][1]) - n[1][1]; - return t.translate( - i > r ? (r + i) / 2 : Math.min(0, r) || Math.max(0, i), - a > o ? (o + a) / 2 : Math.min(0, o) || Math.max(0, a) - ); - } - var mS = function() { - var t, - e, - n = fS, - r = dS, - i = vS, - o = pS, - a = gS, - s = [0, 1 / 0], - u = [ - [-1 / 0, -1 / 0], - [1 / 0, 1 / 0] - ], - l = 250, - c = nr, - f = ct('start', 'zoom', 'end'), - d = 0; - function h(t) { - t.property('__zoom', hS) - .on('wheel.zoom', _) - .on('mousedown.zoom', x) - .on('dblclick.zoom', w) - .filter(a) - .on('touchstart.zoom', S) - .on('touchmove.zoom', E) - .on('touchend.zoom touchcancel.zoom', k) - .style('touch-action', 'none') - .style('-webkit-tap-highlight-color', 'rgba(0,0,0,0)'); - } - function p(t, e) { - return (e = Math.max(s[0], Math.min(s[1], e))) === t.k - ? t - : new aS(e, t.x, t.y); - } - function g(t, e, n) { - var r = e[0] - n[0] * t.k, - i = e[1] - n[1] * t.k; - return r === t.x && i === t.y ? t : new aS(t.k, r, i); - } - function v(t) { - return [(+t[0][0] + +t[1][0]) / 2, (+t[0][1] + +t[1][1]) / 2]; - } - function m(t, e, n) { - t.on('start.zoom', function() { - y(this, arguments).start(); - }) - .on('interrupt.zoom end.zoom', function() { - y(this, arguments).end(); - }) - .tween('zoom', function() { - var t = this, - i = arguments, - o = y(t, i), - a = r.apply(t, i), - s = - null == n - ? v(a) - : 'function' == typeof n - ? n.apply(t, i) - : n, - u = Math.max(a[1][0] - a[0][0], a[1][1] - a[0][1]), - l = t.__zoom, - f = 'function' == typeof e ? e.apply(t, i) : e, - d = c( - l.invert(s).concat(u / l.k), - f.invert(s).concat(u / f.k) - ); - return function(t) { - if (1 === t) t = f; - else { - var e = d(t), - n = u / e[2]; - t = new aS(n, s[0] - e[0] * n, s[1] - e[1] * n); - } - o.zoom(null, t); - }; - }); - } - function y(t, e, n) { - return (!n && t.__zooming) || new b(t, e); - } - function b(t, e) { - (this.that = t), - (this.args = e), - (this.active = 0), - (this.extent = r.apply(t, e)), - (this.taps = 0); - } - function _() { - if (n.apply(this, arguments)) { - var t = y(this, arguments), - e = this.__zoom, - r = Math.max( - s[0], - Math.min( - s[1], - e.k * Math.pow(2, o.apply(this, arguments)) - ) - ), - a = Oe(this); - if (t.wheel) - (t.mouse[0][0] === a[0] && t.mouse[0][1] === a[1]) || - (t.mouse[1] = e.invert((t.mouse[0] = a))), - clearTimeout(t.wheel); - else { - if (e.k === r) return; - (t.mouse = [a, e.invert(a)]), li(this), t.start(); - } - cS(), - (t.wheel = setTimeout(l, 150)), - t.zoom( - 'mouse', - i(g(p(e, r), t.mouse[0], t.mouse[1]), t.extent, u) - ); - } - function l() { - (t.wheel = null), t.end(); - } - } - function x() { - if (!e && n.apply(this, arguments)) { - var t = y(this, arguments, !0), - r = we(ue.view) - .on('mousemove.zoom', l, !0) - .on('mouseup.zoom', c, !0), - o = Oe(this), - a = ue.clientX, - s = ue.clientY; - Re(ue.view), - lS(), - (t.mouse = [o, this.__zoom.invert(o)]), - li(this), - t.start(); - } - function l() { - if ((cS(), !t.moved)) { - var e = ue.clientX - a, - n = ue.clientY - s; - t.moved = e * e + n * n > d; - } - t.zoom( - 'mouse', - i( - g(t.that.__zoom, (t.mouse[0] = Oe(t.that)), t.mouse[1]), - t.extent, - u - ) - ); - } - function c() { - r.on('mousemove.zoom mouseup.zoom', null), - Ne(ue.view, t.moved), - cS(), - t.end(); - } - } - function w() { - if (n.apply(this, arguments)) { - var t = this.__zoom, - e = Oe(this), - o = t.invert(e), - a = t.k * (ue.shiftKey ? 0.5 : 2), - s = i(g(p(t, a), e, o), r.apply(this, arguments), u); - cS(), - l > 0 - ? we(this) - .transition() - .duration(l) - .call(m, s, e) - : we(this).call(h.transform, s); - } - } - function S() { - if (n.apply(this, arguments)) { - var e, - r, - i, - o, - a = ue.touches, - s = a.length, - u = y(this, arguments, ue.changedTouches.length === s); - for (lS(), r = 0; r < s; ++r) - (i = a[r]), - (o = [ - (o = Me(this, a, i.identifier)), - this.__zoom.invert(o), - i.identifier - ]), - u.touch0 - ? u.touch1 || - u.touch0[2] === o[2] || - ((u.touch1 = o), (u.taps = 0)) - : ((u.touch0 = o), (e = !0), (u.taps = 1 + !!t)); - t && (t = clearTimeout(t)), - e && - (u.taps < 2 && - (t = setTimeout(function() { - t = null; - }, 500)), - li(this), - u.start()); - } - } - function E() { - if (this.__zooming) { - var e, - n, - r, - o, - a = y(this, arguments), - s = ue.changedTouches, - l = s.length; - for ( - cS(), t && (t = clearTimeout(t)), a.taps = 0, e = 0; - e < l; - ++e - ) - (n = s[e]), - (r = Me(this, s, n.identifier)), - a.touch0 && a.touch0[2] === n.identifier - ? (a.touch0[0] = r) - : a.touch1 && - a.touch1[2] === n.identifier && - (a.touch1[0] = r); - if (((n = a.that.__zoom), a.touch1)) { - var c = a.touch0[0], - f = a.touch0[1], - d = a.touch1[0], - h = a.touch1[1], - v = (v = d[0] - c[0]) * v + (v = d[1] - c[1]) * v, - m = (m = h[0] - f[0]) * m + (m = h[1] - f[1]) * m; - (n = p(n, Math.sqrt(v / m))), - (r = [(c[0] + d[0]) / 2, (c[1] + d[1]) / 2]), - (o = [(f[0] + h[0]) / 2, (f[1] + h[1]) / 2]); - } else { - if (!a.touch0) return; - (r = a.touch0[0]), (o = a.touch0[1]); - } - a.zoom('touch', i(g(n, r, o), a.extent, u)); - } - } - function k() { - if (this.__zooming) { - var t, - n, - r = y(this, arguments), - i = ue.changedTouches, - o = i.length; - for ( - lS(), - e && clearTimeout(e), - e = setTimeout(function() { - e = null; - }, 500), - t = 0; - t < o; - ++t - ) - (n = i[t]), - r.touch0 && r.touch0[2] === n.identifier - ? delete r.touch0 - : r.touch1 && - r.touch1[2] === n.identifier && - delete r.touch1; - if ( - (r.touch1 && - !r.touch0 && - ((r.touch0 = r.touch1), delete r.touch1), - r.touch0) - ) - r.touch0[1] = this.__zoom.invert(r.touch0[0]); - else if ((r.end(), 2 === r.taps)) { - var a = we(this).on('dblclick.zoom'); - a && a.apply(this, arguments); - } - } - } - return ( - (h.transform = function(t, e, n) { - var r = t.selection ? t.selection() : t; - r.property('__zoom', hS), - t !== r - ? m(t, e, n) - : r.interrupt().each(function() { - y(this, arguments) - .start() - .zoom( - null, - 'function' == typeof e - ? e.apply(this, arguments) - : e - ) - .end(); - }); - }), - (h.scaleBy = function(t, e, n) { - h.scaleTo( - t, - function() { - var t = this.__zoom.k, - n = - 'function' == typeof e - ? e.apply(this, arguments) - : e; - return t * n; - }, - n - ); - }), - (h.scaleTo = function(t, e, n) { - h.transform( - t, - function() { - var t = r.apply(this, arguments), - o = this.__zoom, - a = - null == n - ? v(t) - : 'function' == typeof n - ? n.apply(this, arguments) - : n, - s = o.invert(a), - l = - 'function' == typeof e - ? e.apply(this, arguments) - : e; - return i(g(p(o, l), a, s), t, u); - }, - n - ); - }), - (h.translateBy = function(t, e, n) { - h.transform(t, function() { - return i( - this.__zoom.translate( - 'function' == typeof e ? e.apply(this, arguments) : e, - 'function' == typeof n ? n.apply(this, arguments) : n - ), - r.apply(this, arguments), - u - ); - }); - }), - (h.translateTo = function(t, e, n, o) { - h.transform( - t, - function() { - var t = r.apply(this, arguments), - a = this.__zoom, - s = - null == o - ? v(t) - : 'function' == typeof o - ? o.apply(this, arguments) - : o; - return i( - sS - .translate(s[0], s[1]) - .scale(a.k) - .translate( - 'function' == typeof e - ? -e.apply(this, arguments) - : -e, - 'function' == typeof n - ? -n.apply(this, arguments) - : -n - ), - t, - u - ); - }, - o - ); - }), - (b.prototype = { - start: function() { - return ( - 1 == ++this.active && - ((this.that.__zooming = this), this.emit('start')), - this - ); - }, - zoom: function(t, e) { - return ( - this.mouse && - 'mouse' !== t && - (this.mouse[1] = e.invert(this.mouse[0])), - this.touch0 && - 'touch' !== t && - (this.touch0[1] = e.invert(this.touch0[0])), - this.touch1 && - 'touch' !== t && - (this.touch1[1] = e.invert(this.touch1[0])), - (this.that.__zoom = e), - this.emit('zoom'), - this - ); - }, - end: function() { - return ( - 0 == --this.active && - (delete this.that.__zooming, this.emit('end')), - this - ); - }, - emit: function(t) { - pe(new oS(h, t, this.that.__zoom), f.apply, f, [ - t, - this.that, - this.args - ]); - } - }), - (h.wheelDelta = function(t) { - return arguments.length - ? ((o = 'function' == typeof t ? t : iS(+t)), h) - : o; - }), - (h.filter = function(t) { - return arguments.length - ? ((n = 'function' == typeof t ? t : iS(!!t)), h) - : n; - }), - (h.touchable = function(t) { - return arguments.length - ? ((a = 'function' == typeof t ? t : iS(!!t)), h) - : a; - }), - (h.extent = function(t) { - return arguments.length - ? ((r = - 'function' == typeof t - ? t - : iS([ - [+t[0][0], +t[0][1]], - [+t[1][0], +t[1][1]] - ])), - h) - : r; - }), - (h.scaleExtent = function(t) { - return arguments.length - ? ((s[0] = +t[0]), (s[1] = +t[1]), h) - : [s[0], s[1]]; - }), - (h.translateExtent = function(t) { - return arguments.length - ? ((u[0][0] = +t[0][0]), - (u[1][0] = +t[1][0]), - (u[0][1] = +t[0][1]), - (u[1][1] = +t[1][1]), - h) - : [ - [u[0][0], u[0][1]], - [u[1][0], u[1][1]] - ]; - }), - (h.constrain = function(t) { - return arguments.length ? ((i = t), h) : i; - }), - (h.duration = function(t) { - return arguments.length ? ((l = +t), h) : l; - }), - (h.interpolate = function(t) { - return arguments.length ? ((c = t), h) : c; - }), - (h.on = function() { - var t = f.on.apply(f, arguments); - return t === f ? h : t; - }), - (h.clickDistance = function(t) { - return arguments.length - ? ((d = (t = +t) * t), h) - : Math.sqrt(d); - }), - h - ); - }; - n.d(e, 'version', function() { - return '5.12.0'; - }), - n.d(e, 'bisect', function() { - return u; - }), - n.d(e, 'bisectRight', function() { - return a; - }), - n.d(e, 'bisectLeft', function() { - return s; - }), - n.d(e, 'ascending', function() { - return r; - }), - n.d(e, 'bisector', function() { - return i; - }), - n.d(e, 'cross', function() { - return f; - }), - n.d(e, 'descending', function() { - return d; - }), - n.d(e, 'deviation', function() { - return g; - }), - n.d(e, 'extent', function() { - return v; - }), - n.d(e, 'histogram', function() { - return P; - }), - n.d(e, 'thresholdFreedmanDiaconis', function() { - return L; - }), - n.d(e, 'thresholdScott', function() { - return D; - }), - n.d(e, 'thresholdSturges', function() { - return O; - }), - n.d(e, 'max', function() { - return j; - }), - n.d(e, 'mean', function() { - return R; - }), - n.d(e, 'median', function() { - return N; - }), - n.d(e, 'merge', function() { - return z; - }), - n.d(e, 'min', function() { - return I; - }), - n.d(e, 'pairs', function() { - return l; - }), - n.d(e, 'permute', function() { - return F; - }), - n.d(e, 'quantile', function() { - return M; - }), - n.d(e, 'range', function() { - return w; - }), - n.d(e, 'scan', function() { - return V; - }), - n.d(e, 'shuffle', function() { - return B; - }), - n.d(e, 'sum', function() { - return G; - }), - n.d(e, 'ticks', function() { - return A; - }), - n.d(e, 'tickIncrement', function() { - return T; - }), - n.d(e, 'tickStep', function() { - return C; - }), - n.d(e, 'transpose', function() { - return H; - }), - n.d(e, 'variance', function() { - return p; - }), - n.d(e, 'zip', function() { - return q; - }), - n.d(e, 'axisTop', function() { - return tt; - }), - n.d(e, 'axisRight', function() { - return et; - }), - n.d(e, 'axisBottom', function() { - return nt; - }), - n.d(e, 'axisLeft', function() { - return rt; - }), - n.d(e, 'brush', function() { - return $o; - }), - n.d(e, 'brushX', function() { - return Xo; - }), - n.d(e, 'brushY', function() { - return Yo; - }), - n.d(e, 'brushSelection', function() { - return Wo; - }), - n.d(e, 'chord', function() { - return ia; - }), - n.d(e, 'ribbon', function() { - return ya; - }), - n.d(e, 'nest', function() { - return wa; - }), - n.d(e, 'set', function() { - return Pa; - }), - n.d(e, 'map', function() { - return xa; - }), - n.d(e, 'keys', function() { - return Ma; - }), - n.d(e, 'values', function() { - return La; - }), - n.d(e, 'entries', function() { - return Da; - }), - n.d(e, 'color', function() { - return sn; - }), - n.d(e, 'rgb', function() { - return fn; - }), - n.d(e, 'hsl', function() { - return yn; - }), - n.d(e, 'lab', function() { - return cr; - }), - n.d(e, 'hcl', function() { - return yr; - }), - n.d(e, 'lch', function() { - return mr; - }), - n.d(e, 'gray', function() { - return lr; - }), - n.d(e, 'cubehelix', function() { - return Pr; - }), - n.d(e, 'contours', function() { - return Ga; - }), - n.d(e, 'contourDensity', function() { - return Ya; - }), - n.d(e, 'dispatch', function() { - return ct; - }), - n.d(e, 'drag', function() { - return He; - }), - n.d(e, 'dragDisable', function() { - return Re; - }), - n.d(e, 'dragEnable', function() { - return Ne; - }), - n.d(e, 'dsvFormat', function() { - return es; - }), - n.d(e, 'csvParse', function() { - return rs; - }), - n.d(e, 'csvParseRows', function() { - return is; - }), - n.d(e, 'csvFormat', function() { - return os; - }), - n.d(e, 'csvFormatBody', function() { - return as; - }), - n.d(e, 'csvFormatRows', function() { - return ss; - }), - n.d(e, 'tsvParse', function() { - return ls; - }), - n.d(e, 'tsvParseRows', function() { - return cs; - }), - n.d(e, 'tsvFormat', function() { - return fs; - }), - n.d(e, 'tsvFormatBody', function() { - return ds; - }), - n.d(e, 'tsvFormatRows', function() { - return hs; - }), - n.d(e, 'autoType', function() { - return ps; - }), - n.d(e, 'easeLinear', function() { - return Fi; - }), - n.d(e, 'easeQuad', function() { - return Gi; - }), - n.d(e, 'easeQuadIn', function() { - return Vi; - }), - n.d(e, 'easeQuadOut', function() { - return Bi; - }), - n.d(e, 'easeQuadInOut', function() { - return Gi; - }), - n.d(e, 'easeCubic', function() { - return qi; - }), - n.d(e, 'easeCubicIn', function() { - return Hi; - }), - n.d(e, 'easeCubicOut', function() { - return Ui; - }), - n.d(e, 'easeCubicInOut', function() { - return qi; - }), - n.d(e, 'easePoly', function() { - return Yi; - }), - n.d(e, 'easePolyIn', function() { - return Wi; - }), - n.d(e, 'easePolyOut', function() { - return Xi; - }), - n.d(e, 'easePolyInOut', function() { - return Yi; - }), - n.d(e, 'easeSin', function() { - return Ji; - }), - n.d(e, 'easeSinIn', function() { - return Ki; - }), - n.d(e, 'easeSinOut', function() { - return Zi; - }), - n.d(e, 'easeSinInOut', function() { - return Ji; - }), - n.d(e, 'easeExp', function() { - return no; - }), - n.d(e, 'easeExpIn', function() { - return to; - }), - n.d(e, 'easeExpOut', function() { - return eo; - }), - n.d(e, 'easeExpInOut', function() { - return no; - }), - n.d(e, 'easeCircle', function() { - return oo; - }), - n.d(e, 'easeCircleIn', function() { - return ro; - }), - n.d(e, 'easeCircleOut', function() { - return io; - }), - n.d(e, 'easeCircleInOut', function() { - return oo; - }), - n.d(e, 'easeBounce', function() { - return so; - }), - n.d(e, 'easeBounceIn', function() { - return ao; - }), - n.d(e, 'easeBounceOut', function() { - return so; - }), - n.d(e, 'easeBounceInOut', function() { - return uo; - }), - n.d(e, 'easeBack', function() { - return fo; - }), - n.d(e, 'easeBackIn', function() { - return lo; - }), - n.d(e, 'easeBackOut', function() { - return co; - }), - n.d(e, 'easeBackInOut', function() { - return fo; - }), - n.d(e, 'easeElastic', function() { - return go; - }), - n.d(e, 'easeElasticIn', function() { - return po; - }), - n.d(e, 'easeElasticOut', function() { - return go; - }), - n.d(e, 'easeElasticInOut', function() { - return vo; - }), - n.d(e, 'blob', function() { - return vs; - }), - n.d(e, 'buffer', function() { - return ys; - }), - n.d(e, 'dsv', function() { - return ws; - }), - n.d(e, 'csv', function() { - return Ss; - }), - n.d(e, 'tsv', function() { - return Es; - }), - n.d(e, 'image', function() { - return ks; - }), - n.d(e, 'json', function() { - return Ts; - }), - n.d(e, 'text', function() { - return _s; - }), - n.d(e, 'xml', function() { - return Os; - }), - n.d(e, 'html', function() { - return Ps; - }), - n.d(e, 'svg', function() { - return Ms; - }), - n.d(e, 'forceCenter', function() { - return Ls; - }), - n.d(e, 'forceCollide', function() { - return qs; - }), - n.d(e, 'forceLink', function() { - return Ys; - }), - n.d(e, 'forceManyBody', function() { - return Js; - }), - n.d(e, 'forceRadial', function() { - return tu; - }), - n.d(e, 'forceSimulation', function() { - return Zs; - }), - n.d(e, 'forceX', function() { - return eu; - }), - n.d(e, 'forceY', function() { - return nu; - }), - n.d(e, 'formatDefaultLocale', function() { - return yu; - }), - n.d(e, 'format', function() { - return cu; - }), - n.d(e, 'formatPrefix', function() { - return fu; - }), - n.d(e, 'formatLocale', function() { - return mu; - }), - n.d(e, 'formatSpecifier', function() { - return au; - }), - n.d(e, 'FormatSpecifier', function() { - return su; - }), - n.d(e, 'precisionFixed', function() { - return bu; - }), - n.d(e, 'precisionPrefix', function() { - return _u; - }), - n.d(e, 'precisionRound', function() { - return xu; - }), - n.d(e, 'geoArea', function() { - return dl; - }), - n.d(e, 'geoBounds', function() { - return ic; - }), - n.d(e, 'geoCentroid', function() { - return vc; - }), - n.d(e, 'geoCircle', function() { - return Tc; - }), - n.d(e, 'geoClipAntimeridian', function() { - return Fc; - }), - n.d(e, 'geoClipCircle', function() { - return Vc; - }), - n.d(e, 'geoClipExtent', function() { - return qc; - }), - n.d(e, 'geoClipRectangle', function() { - return Bc; - }), - n.d(e, 'geoContains', function() { - return cf; - }), - n.d(e, 'geoDistance', function() { - return tf; - }), - n.d(e, 'geoGraticule', function() { - return hf; - }), - n.d(e, 'geoGraticule10', function() { - return pf; - }), - n.d(e, 'geoInterpolate', function() { - return bf; - }), - n.d(e, 'geoLength', function() { - return Kc; - }), - n.d(e, 'geoPath', function() { - return md; - }), - n.d(e, 'geoAlbers', function() { - return Nd; - }), - n.d(e, 'geoAlbersUsa', function() { - return zd; - }), - n.d(e, 'geoAzimuthalEqualArea', function() { - return Bd; - }), - n.d(e, 'geoAzimuthalEqualAreaRaw', function() { - return Vd; - }), - n.d(e, 'geoAzimuthalEquidistant', function() { - return Hd; - }), - n.d(e, 'geoAzimuthalEquidistantRaw', function() { - return Gd; - }), - n.d(e, 'geoConicConformal', function() { - return $d; - }), - n.d(e, 'geoConicConformalRaw', function() { - return Yd; - }), - n.d(e, 'geoConicEqualArea', function() { - return Rd; - }), - n.d(e, 'geoConicEqualAreaRaw', function() { - return jd; - }), - n.d(e, 'geoConicEquidistant', function() { - return Jd; - }), - n.d(e, 'geoConicEquidistantRaw', function() { - return Zd; - }), - n.d(e, 'geoEqualEarth', function() { - return ah; - }), - n.d(e, 'geoEqualEarthRaw', function() { - return oh; - }), - n.d(e, 'geoEquirectangular', function() { - return Kd; - }), - n.d(e, 'geoEquirectangularRaw', function() { - return Qd; - }), - n.d(e, 'geoGnomonic', function() { - return uh; - }), - n.d(e, 'geoGnomonicRaw', function() { - return sh; - }), - n.d(e, 'geoIdentity', function() { - return ch; - }), - n.d(e, 'geoProjection', function() { - return Md; - }), - n.d(e, 'geoProjectionMutator', function() { - return Ld; - }), - n.d(e, 'geoMercator', function() { - return qd; - }), - n.d(e, 'geoMercatorRaw', function() { - return Ud; - }), - n.d(e, 'geoNaturalEarth1', function() { - return dh; - }), - n.d(e, 'geoNaturalEarth1Raw', function() { - return fh; - }), - n.d(e, 'geoOrthographic', function() { - return ph; - }), - n.d(e, 'geoOrthographicRaw', function() { - return hh; - }), - n.d(e, 'geoStereographic', function() { - return vh; - }), - n.d(e, 'geoStereographicRaw', function() { - return gh; - }), - n.d(e, 'geoTransverseMercator', function() { - return yh; - }), - n.d(e, 'geoTransverseMercatorRaw', function() { - return mh; - }), - n.d(e, 'geoRotation', function() { - return Ec; - }), - n.d(e, 'geoStream', function() { - return il; - }), - n.d(e, 'geoTransform', function() { - return yd; - }), - n.d(e, 'cluster', function() { - return wh; - }), - n.d(e, 'hierarchy', function() { - return Eh; - }), - n.d(e, 'pack', function() { - return $h; - }), - n.d(e, 'packSiblings', function() { - return Hh; - }), - n.d(e, 'packEnclose', function() { - return Ph; - }), - n.d(e, 'partition', function() { - return ep; - }), - n.d(e, 'stratify', function() { - return ap; - }), - n.d(e, 'tree', function() { - return hp; - }), - n.d(e, 'treemap', function() { - return yp; - }), - n.d(e, 'treemapBinary', function() { - return bp; - }), - n.d(e, 'treemapDice', function() { - return tp; - }), - n.d(e, 'treemapSlice', function() { - return pp; - }), - n.d(e, 'treemapSliceDice', function() { - return _p; - }), - n.d(e, 'treemapSquarify', function() { - return mp; - }), - n.d(e, 'treemapResquarify', function() { - return xp; - }), - n.d(e, 'interpolate', function() { - return Un; - }), - n.d(e, 'interpolateArray', function() { - return zn; - }), - n.d(e, 'interpolateBasis', function() { - return wn; - }), - n.d(e, 'interpolateBasisClosed', function() { - return Sn; - }), - n.d(e, 'interpolateDate', function() { - return In; - }), - n.d(e, 'interpolateDiscrete', function() { - return qn; - }), - n.d(e, 'interpolateHue', function() { - return Wn; - }), - n.d(e, 'interpolateNumber', function() { - return Fn; - }), - n.d(e, 'interpolateObject', function() { - return Vn; - }), - n.d(e, 'interpolateRound', function() { - return Xn; - }), - n.d(e, 'interpolateString', function() { - return Hn; - }), - n.d(e, 'interpolateTransformCss', function() { - return Zn; - }), - n.d(e, 'interpolateTransformSvg', function() { - return Jn; - }), - n.d(e, 'interpolateZoom', function() { - return nr; - }), - n.d(e, 'interpolateRgb', function() { - return On; - }), - n.d(e, 'interpolateRgbBasis', function() { - return Rn; - }), - n.d(e, 'interpolateRgbBasisClosed', function() { - return Nn; - }), - n.d(e, 'interpolateHsl', function() { - return ir; - }), - n.d(e, 'interpolateHslLong', function() { - return or; - }), - n.d(e, 'interpolateLab', function() { - return xr; - }), - n.d(e, 'interpolateHcl', function() { - return Sr; - }), - n.d(e, 'interpolateHclLong', function() { - return Er; - }), - n.d(e, 'interpolateCubehelix', function() { - return Dr; - }), - n.d(e, 'interpolateCubehelixLong', function() { - return jr; - }), - n.d(e, 'piecewise', function() { - return Rr; - }), - n.d(e, 'quantize', function() { - return Ir; - }), - n.d(e, 'path', function() { - return da; - }), - n.d(e, 'polygonArea', function() { - return wp; - }), - n.d(e, 'polygonCentroid', function() { - return Sp; - }), - n.d(e, 'polygonHull', function() { - return Ap; - }), - n.d(e, 'polygonContains', function() { - return Tp; - }), - n.d(e, 'polygonLength', function() { - return Cp; - }), - n.d(e, 'quadtree', function() { - return Fs; - }), - n.d(e, 'randomUniform', function() { - return Pp; - }), - n.d(e, 'randomNormal', function() { - return Mp; - }), - n.d(e, 'randomLogNormal', function() { - return Lp; - }), - n.d(e, 'randomBates', function() { - return jp; - }), - n.d(e, 'randomIrwinHall', function() { - return Dp; - }), - n.d(e, 'randomExponential', function() { - return Rp; - }), - n.d(e, 'scaleBand', function() { - return Hp; - }), - n.d(e, 'scalePoint', function() { - return qp; - }), - n.d(e, 'scaleIdentity', function() { - return og; - }), - n.d(e, 'scaleLinear', function() { - return ig; - }), - n.d(e, 'scaleLog', function() { - return pg; - }), - n.d(e, 'scaleSymlog', function() { - return yg; - }), - n.d(e, 'scaleOrdinal', function() { - return Gp; - }), - n.d(e, 'scaleImplicit', function() { - return Bp; - }), - n.d(e, 'scalePow', function() { - return Sg; - }), - n.d(e, 'scaleSqrt', function() { - return Eg; - }), - n.d(e, 'scaleQuantile', function() { - return kg; - }), - n.d(e, 'scaleQuantize', function() { - return Ag; - }), - n.d(e, 'scaleThreshold', function() { - return Tg; - }), - n.d(e, 'scaleTime', function() { - return iy; - }), - n.d(e, 'scaleUtc', function() { - return py; - }), - n.d(e, 'scaleSequential', function() { - return my; - }), - n.d(e, 'scaleSequentialLog', function() { - return yy; - }), - n.d(e, 'scaleSequentialPow', function() { - return _y; - }), - n.d(e, 'scaleSequentialSqrt', function() { - return xy; - }), - n.d(e, 'scaleSequentialSymlog', function() { - return by; - }), - n.d(e, 'scaleSequentialQuantile', function() { - return wy; - }), - n.d(e, 'scaleDiverging', function() { - return Ey; - }), - n.d(e, 'scaleDivergingLog', function() { - return ky; - }), - n.d(e, 'scaleDivergingPow', function() { - return Ty; - }), - n.d(e, 'scaleDivergingSqrt', function() { - return Cy; - }), - n.d(e, 'scaleDivergingSymlog', function() { - return Ay; - }), - n.d(e, 'tickFormat', function() { - return ng; - }), - n.d(e, 'schemeCategory10', function() { - return Py; - }), - n.d(e, 'schemeAccent', function() { - return My; - }), - n.d(e, 'schemeDark2', function() { - return Ly; - }), - n.d(e, 'schemePaired', function() { - return Dy; - }), - n.d(e, 'schemePastel1', function() { - return jy; - }), - n.d(e, 'schemePastel2', function() { - return Ry; - }), - n.d(e, 'schemeSet1', function() { - return Ny; - }), - n.d(e, 'schemeSet2', function() { - return zy; - }), - n.d(e, 'schemeSet3', function() { - return Iy; - }), - n.d(e, 'schemeTableau10', function() { - return Fy; - }), - n.d(e, 'interpolateBrBG', function() { - return Gy; - }), - n.d(e, 'schemeBrBG', function() { - return By; - }), - n.d(e, 'interpolatePRGn', function() { - return Uy; - }), - n.d(e, 'schemePRGn', function() { - return Hy; - }), - n.d(e, 'interpolatePiYG', function() { - return Wy; - }), - n.d(e, 'schemePiYG', function() { - return qy; - }), - n.d(e, 'interpolatePuOr', function() { - return Yy; - }), - n.d(e, 'schemePuOr', function() { - return Xy; - }), - n.d(e, 'interpolateRdBu', function() { - return Qy; - }), - n.d(e, 'schemeRdBu', function() { - return $y; - }), - n.d(e, 'interpolateRdGy', function() { - return Zy; - }), - n.d(e, 'schemeRdGy', function() { - return Ky; - }), - n.d(e, 'interpolateRdYlBu', function() { - return tb; - }), - n.d(e, 'schemeRdYlBu', function() { - return Jy; - }), - n.d(e, 'interpolateRdYlGn', function() { - return nb; - }), - n.d(e, 'schemeRdYlGn', function() { - return eb; - }), - n.d(e, 'interpolateSpectral', function() { - return ib; - }), - n.d(e, 'schemeSpectral', function() { - return rb; - }), - n.d(e, 'interpolateBuGn', function() { - return ab; - }), - n.d(e, 'schemeBuGn', function() { - return ob; - }), - n.d(e, 'interpolateBuPu', function() { - return ub; - }), - n.d(e, 'schemeBuPu', function() { - return sb; - }), - n.d(e, 'interpolateGnBu', function() { - return cb; - }), - n.d(e, 'schemeGnBu', function() { - return lb; - }), - n.d(e, 'interpolateOrRd', function() { - return db; - }), - n.d(e, 'schemeOrRd', function() { - return fb; - }), - n.d(e, 'interpolatePuBuGn', function() { - return pb; - }), - n.d(e, 'schemePuBuGn', function() { - return hb; - }), - n.d(e, 'interpolatePuBu', function() { - return vb; - }), - n.d(e, 'schemePuBu', function() { - return gb; - }), - n.d(e, 'interpolatePuRd', function() { - return yb; - }), - n.d(e, 'schemePuRd', function() { - return mb; - }), - n.d(e, 'interpolateRdPu', function() { - return _b; - }), - n.d(e, 'schemeRdPu', function() { - return bb; - }), - n.d(e, 'interpolateYlGnBu', function() { - return wb; - }), - n.d(e, 'schemeYlGnBu', function() { - return xb; - }), - n.d(e, 'interpolateYlGn', function() { - return Eb; - }), - n.d(e, 'schemeYlGn', function() { - return Sb; - }), - n.d(e, 'interpolateYlOrBr', function() { - return Ab; - }), - n.d(e, 'schemeYlOrBr', function() { - return kb; - }), - n.d(e, 'interpolateYlOrRd', function() { - return Cb; - }), - n.d(e, 'schemeYlOrRd', function() { - return Tb; - }), - n.d(e, 'interpolateBlues', function() { - return Pb; - }), - n.d(e, 'schemeBlues', function() { - return Ob; - }), - n.d(e, 'interpolateGreens', function() { - return Lb; - }), - n.d(e, 'schemeGreens', function() { - return Mb; - }), - n.d(e, 'interpolateGreys', function() { - return jb; - }), - n.d(e, 'schemeGreys', function() { - return Db; - }), - n.d(e, 'interpolatePurples', function() { - return Nb; - }), - n.d(e, 'schemePurples', function() { - return Rb; - }), - n.d(e, 'interpolateReds', function() { - return Ib; - }), - n.d(e, 'schemeReds', function() { - return zb; - }), - n.d(e, 'interpolateOranges', function() { - return Vb; - }), - n.d(e, 'schemeOranges', function() { - return Fb; - }), - n.d(e, 'interpolateCividis', function() { - return Bb; - }), - n.d(e, 'interpolateCubehelixDefault', function() { - return Gb; - }), - n.d(e, 'interpolateRainbow', function() { - return Wb; - }), - n.d(e, 'interpolateWarm', function() { - return Hb; - }), - n.d(e, 'interpolateCool', function() { - return Ub; - }), - n.d(e, 'interpolateSinebow', function() { - return Qb; - }), - n.d(e, 'interpolateTurbo', function() { - return Kb; - }), - n.d(e, 'interpolateViridis', function() { - return Jb; - }), - n.d(e, 'interpolateMagma', function() { - return t_; - }), - n.d(e, 'interpolateInferno', function() { - return e_; - }), - n.d(e, 'interpolatePlasma', function() { - return n_; - }), - n.d(e, 'create', function() { - return Se; - }), - n.d(e, 'creator', function() { - return vt; - }), - n.d(e, 'local', function() { - return ke; - }), - n.d(e, 'matcher', function() { - return xt; - }), - n.d(e, 'mouse', function() { - return Oe; - }), - n.d(e, 'namespace', function() { - return ht; - }), - n.d(e, 'namespaces', function() { - return dt; - }), - n.d(e, 'clientPoint', function() { - return Ce; - }), - n.d(e, 'select', function() { - return we; - }), - n.d(e, 'selectAll', function() { - return Pe; - }), - n.d(e, 'selection', function() { - return xe; - }), - n.d(e, 'selector', function() { - return yt; - }), - n.d(e, 'selectorAll', function() { - return _t; - }), - n.d(e, 'style', function() { - return zt; - }), - n.d(e, 'touch', function() { - return Me; - }), - n.d(e, 'touches', function() { - return Le; - }), - n.d(e, 'window', function() { - return Dt; - }), - n.d(e, 'event', function() { - return ue; - }), - n.d(e, 'customEvent', function() { - return pe; - }), - n.d(e, 'arc', function() { - return S_; - }), - n.d(e, 'area', function() { - return O_; - }), - n.d(e, 'line', function() { - return C_; - }), - n.d(e, 'pie', function() { - return L_; - }), - n.d(e, 'areaRadial', function() { - return I_; - }), - n.d(e, 'radialArea', function() { - return I_; - }), - n.d(e, 'lineRadial', function() { - return z_; - }), - n.d(e, 'radialLine', function() { - return z_; - }), - n.d(e, 'pointRadial', function() { - return F_; - }), - n.d(e, 'linkHorizontal', function() { - return X_; - }), - n.d(e, 'linkVertical', function() { - return Y_; - }), - n.d(e, 'linkRadial', function() { - return $_; - }), - n.d(e, 'symbol', function() { - return hx; - }), - n.d(e, 'symbols', function() { - return dx; - }), - n.d(e, 'symbolCircle', function() { - return Q_; - }), - n.d(e, 'symbolCross', function() { - return K_; - }), - n.d(e, 'symbolDiamond', function() { - return tx; - }), - n.d(e, 'symbolSquare', function() { - return ox; - }), - n.d(e, 'symbolStar', function() { - return ix; - }), - n.d(e, 'symbolTriangle', function() { - return sx; - }), - n.d(e, 'symbolWye', function() { - return fx; - }), - n.d(e, 'curveBasisClosed', function() { - return bx; - }), - n.d(e, 'curveBasisOpen', function() { - return xx; - }), - n.d(e, 'curveBasis', function() { - return mx; - }), - n.d(e, 'curveBundle', function() { - return Sx; - }), - n.d(e, 'curveCardinalClosed', function() { - return Cx; - }), - n.d(e, 'curveCardinalOpen', function() { - return Px; - }), - n.d(e, 'curveCardinal', function() { - return Ax; - }), - n.d(e, 'curveCatmullRomClosed', function() { - return Rx; - }), - n.d(e, 'curveCatmullRomOpen', function() { - return zx; - }), - n.d(e, 'curveCatmullRom', function() { - return Dx; - }), - n.d(e, 'curveLinearClosed', function() { - return Fx; - }), - n.d(e, 'curveLinear', function() { - return k_; - }), - n.d(e, 'curveMonotoneX', function() { - return Xx; - }), - n.d(e, 'curveMonotoneY', function() { - return Yx; - }), - n.d(e, 'curveNatural', function() { - return Kx; - }), - n.d(e, 'curveStep', function() { - return Jx; - }), - n.d(e, 'curveStepAfter', function() { - return ew; - }), - n.d(e, 'curveStepBefore', function() { - return tw; - }), - n.d(e, 'stack', function() { - return ow; - }), - n.d(e, 'stackOffsetExpand', function() { - return aw; - }), - n.d(e, 'stackOffsetDiverging', function() { - return sw; - }), - n.d(e, 'stackOffsetNone', function() { - return nw; - }), - n.d(e, 'stackOffsetSilhouette', function() { - return uw; - }), - n.d(e, 'stackOffsetWiggle', function() { - return lw; - }), - n.d(e, 'stackOrderAppearance', function() { - return cw; - }), - n.d(e, 'stackOrderAscending', function() { - return dw; - }), - n.d(e, 'stackOrderDescending', function() { - return pw; - }), - n.d(e, 'stackOrderInsideOut', function() { - return gw; - }), - n.d(e, 'stackOrderNone', function() { - return rw; - }), - n.d(e, 'stackOrderReverse', function() { - return vw; - }), - n.d(e, 'timeInterval', function() { - return Pg; - }), - n.d(e, 'timeMillisecond', function() { - return fv; - }), - n.d(e, 'timeMilliseconds', function() { - return dv; - }), - n.d(e, 'utcMillisecond', function() { - return fv; - }), - n.d(e, 'utcMilliseconds', function() { - return dv; - }), - n.d(e, 'timeSecond', function() { - return uv; - }), - n.d(e, 'timeSeconds', function() { - return lv; - }), - n.d(e, 'utcSecond', function() { - return uv; - }), - n.d(e, 'utcSeconds', function() { - return lv; - }), - n.d(e, 'timeMinute', function() { - return ov; - }), - n.d(e, 'timeMinutes', function() { - return av; - }), - n.d(e, 'timeHour', function() { - return nv; - }), - n.d(e, 'timeHours', function() { - return rv; - }), - n.d(e, 'timeDay', function() { - return Jg; - }), - n.d(e, 'timeDays', function() { - return tv; - }), - n.d(e, 'timeWeek', function() { - return Ig; - }), - n.d(e, 'timeWeeks', function() { - return qg; - }), - n.d(e, 'timeSunday', function() { - return Ig; - }), - n.d(e, 'timeSundays', function() { - return qg; - }), - n.d(e, 'timeMonday', function() { - return Fg; - }), - n.d(e, 'timeMondays', function() { - return Wg; - }), - n.d(e, 'timeTuesday', function() { - return Vg; - }), - n.d(e, 'timeTuesdays', function() { - return Xg; - }), - n.d(e, 'timeWednesday', function() { - return Bg; - }), - n.d(e, 'timeWednesdays', function() { - return Yg; - }), - n.d(e, 'timeThursday', function() { - return Gg; - }), - n.d(e, 'timeThursdays', function() { - return $g; - }), - n.d(e, 'timeFriday', function() { - return Hg; - }), - n.d(e, 'timeFridays', function() { - return Qg; - }), - n.d(e, 'timeSaturday', function() { - return Ug; - }), - n.d(e, 'timeSaturdays', function() { - return Kg; - }), - n.d(e, 'timeMonth', function() { - return Rg; - }), - n.d(e, 'timeMonths', function() { - return Ng; - }), - n.d(e, 'timeYear', function() { - return Lg; - }), - n.d(e, 'timeYears', function() { - return Dg; - }), - n.d(e, 'utcMinute', function() { - return dy; - }), - n.d(e, 'utcMinutes', function() { - return hy; - }), - n.d(e, 'utcHour', function() { - return ly; - }), - n.d(e, 'utcHours', function() { - return cy; - }), - n.d(e, 'utcDay', function() { - return Ov; - }), - n.d(e, 'utcDays', function() { - return Pv; - }), - n.d(e, 'utcWeek', function() { - return pv; - }), - n.d(e, 'utcWeeks', function() { - return xv; - }), - n.d(e, 'utcSunday', function() { - return pv; - }), - n.d(e, 'utcSundays', function() { - return xv; - }), - n.d(e, 'utcMonday', function() { - return gv; - }), - n.d(e, 'utcMondays', function() { - return wv; - }), - n.d(e, 'utcTuesday', function() { - return vv; - }), - n.d(e, 'utcTuesdays', function() { - return Sv; - }), - n.d(e, 'utcWednesday', function() { - return mv; - }), - n.d(e, 'utcWednesdays', function() { - return Ev; - }), - n.d(e, 'utcThursday', function() { - return yv; - }), - n.d(e, 'utcThursdays', function() { - return kv; - }), - n.d(e, 'utcFriday', function() { - return bv; - }), - n.d(e, 'utcFridays', function() { - return Av; - }), - n.d(e, 'utcSaturday', function() { - return _v; - }), - n.d(e, 'utcSaturdays', function() { - return Tv; - }), - n.d(e, 'utcMonth', function() { - return ay; + var S = + (0, f.default)( + (r = + (0, d.default)( + (r = + (0, h.default)( + (r = + (0, p.default)( + (r = + (0, g.default)( + (r = + (0, m.default)( + ((o = i = (function(t) { + function e(t) { + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, e); + var n = (function(t, e) { + if (!t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !e || + ('object' != typeof e && + 'function' != typeof e) + ? t + : e; + })( + this, + ( + e.__proto__ || Object.getPrototypeOf(e) + ).call(this, t) + ); + return ( + (n.state = { + place: t.place || 'top', + desiredPlace: t.place || 'top', + type: 'dark', + effect: 'float', + show: !1, + border: !1, + offset: {}, + extraClass: '', + html: !1, + delayHide: 0, + delayShow: 0, + event: t.event || null, + eventOff: t.eventOff || null, + currentEvent: null, + currentTarget: null, + ariaProps: (0, b.parseAria)(t), + isEmptyTip: !1, + disable: !1, + originTooltip: null, + isMultiline: !1 + }), + n.bind([ + 'showTooltip', + 'updateTooltip', + 'hideTooltip', + 'hideTooltipOnScroll', + 'getTooltipContent', + 'globalRebuild', + 'globalShow', + 'globalHide', + 'onWindowResize', + 'mouseOnToolTip' + ]), + (n.mount = !0), + (n.delayShowLoop = null), + (n.delayHideLoop = null), + (n.delayReshow = null), + (n.intervalUpdateContent = null), + n + ); + } + return ( + (function(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof e + ); + (t.prototype = Object.create( + e && e.prototype, + { + constructor: { + value: t, + enumerable: !1, + writable: !0, + configurable: !0 + } + } + )), + e && + (Object.setPrototypeOf + ? Object.setPrototypeOf(t, e) + : (t.__proto__ = e)); + })(e, t), + s( + e, + [ + { + key: 'bind', + value: function(t) { + var e = this; + t.forEach(function(t) { + e[t] = e[t].bind(e); + }); + } + }, + { + key: 'componentDidMount', + value: function() { + var t = this.props, + e = t.insecure, + n = t.resizeHide; + e && this.setStyleHeader(), + this.bindListener(), + this.bindWindowEvents(n); + } + }, + { + key: 'componentWillUnmount', + value: function() { + (this.mount = !1), + this.clearTimer(), + this.unbindListener(), + this.removeScrollListener(), + this.unbindWindowEvents(); + } + }, + { + key: 'mouseOnToolTip', + value: function() { + return ( + !( + !this.state.show || + !this.tooltipRef + ) && + (this.tooltipRef.matches || + (this.tooltipRef.msMatchesSelector + ? (this.tooltipRef.matches = this.tooltipRef.msMatchesSelector) + : (this.tooltipRef.matches = this.tooltipRef.mozMatchesSelector)), + this.tooltipRef.matches(':hover')) + ); + } + }, + { + key: 'getTargetArray', + value: function(t) { + var e = void 0; + if (t) { + var n = t + .replace(/\\/g, '\\\\') + .replace(/"/g, '\\"'); + e = document.querySelectorAll( + '[data-tip][data-for="' + n + '"]' + ); + } else + e = document.querySelectorAll( + '[data-tip]:not([data-for])' + ); + return (0, _.default)(e); + } + }, + { + key: 'bindListener', + value: function() { + var t = this, + e = this.props, + n = e.id, + r = e.globalEventOff, + i = e.isCapture; + this.getTargetArray(n).forEach( + function(e) { + var n = t.isCapture(e), + r = t.getEffect(e); + null === + e.getAttribute('currentItem') && + e.setAttribute( + 'currentItem', + 'false' + ), + t.unbindBasicListener(e), + t.isCustomEvent(e) + ? t.customBindListener(e) + : (e.addEventListener( + 'mouseenter', + t.showTooltip, + n + ), + 'float' === r && + e.addEventListener( + 'mousemove', + t.updateTooltip, + n + ), + e.addEventListener( + 'mouseleave', + t.hideTooltip, + n + )); + } + ), + r && + (window.removeEventListener( + r, + this.hideTooltip + ), + window.addEventListener( + r, + this.hideTooltip, + i + )), + this.bindRemovalTracker(); + } + }, + { + key: 'unbindListener', + value: function() { + var t = this, + e = this.props, + n = e.id, + r = e.globalEventOff; + this.getTargetArray(n).forEach( + function(e) { + t.unbindBasicListener(e), + t.isCustomEvent(e) && + t.customUnbindListener(e); + } + ), + r && + window.removeEventListener( + r, + this.hideTooltip + ), + this.unbindRemovalTracker(); + } + }, + { + key: 'unbindBasicListener', + value: function(t) { + var e = this.isCapture(t); + t.removeEventListener( + 'mouseenter', + this.showTooltip, + e + ), + t.removeEventListener( + 'mousemove', + this.updateTooltip, + e + ), + t.removeEventListener( + 'mouseleave', + this.hideTooltip, + e + ); + } + }, + { + key: 'getTooltipContent', + value: function() { + var t = this.props, + e = t.getContent, + n = t.children, + r = void 0; + return ( + e && + (r = Array.isArray(e) + ? e[0] && + e[0](this.state.originTooltip) + : e(this.state.originTooltip)), + (0, y.default)( + this.state.originTooltip, + n, + r, + this.state.isMultiline + ) + ); + } + }, + { + key: 'isEmptyTip', + value: function(t) { + return ( + ('string' == typeof t && + '' === t) || + null === t + ); + } + }, + { + key: 'showTooltip', + value: function(t, e) { + if ( + e && + !this.getTargetArray( + this.props.id + ).some(function(e) { + return e === t.currentTarget; + }) + ) + return; + var n = this.props, + r = n.multiline, + i = n.getContent, + o = t.currentTarget.getAttribute( + 'data-tip' + ), + a = + t.currentTarget.getAttribute( + 'data-multiline' + ) || + r || + !1, + s = + t instanceof window.FocusEvent || + e, + u = !0; + t.currentTarget.getAttribute( + 'data-scroll-hide' + ) + ? (u = + 'true' === + t.currentTarget.getAttribute( + 'data-scroll-hide' + )) + : null != this.props.scrollHide && + (u = this.props.scrollHide); + var l = + t.currentTarget.getAttribute( + 'data-place' + ) || + this.props.place || + 'top', + c = s + ? 'solid' + : this.getEffect(t.currentTarget), + f = + t.currentTarget.getAttribute( + 'data-offset' + ) || + this.props.offset || + {}, + d = (0, v.default)( + t, + t.currentTarget, + this.tooltipRef, + l, + l, + c, + f + ); + d.position && + this.props.overridePosition && + (d.position = this.props.overridePosition( + d.position, + t.currentTarget, + this.tooltipRef, + l, + l, + c, + f + )); + var h = d.isNewState + ? d.newState.place + : l; + this.clearTimer(); + var p = t.currentTarget, + g = this.state.show + ? p.getAttribute( + 'data-delay-update' + ) || this.props.delayUpdate + : 0, + m = this, + b = function() { + m.setState( + { + originTooltip: o, + isMultiline: a, + desiredPlace: l, + place: h, + type: + p.getAttribute( + 'data-type' + ) || + m.props.type || + 'dark', + effect: c, + offset: f, + html: p.getAttribute( + 'data-html' + ) + ? 'true' === + p.getAttribute( + 'data-html' + ) + : m.props.html || !1, + delayShow: + p.getAttribute( + 'data-delay-show' + ) || + m.props.delayShow || + 0, + delayHide: + p.getAttribute( + 'data-delay-hide' + ) || + m.props.delayHide || + 0, + delayUpdate: + p.getAttribute( + 'data-delay-update' + ) || + m.props.delayUpdate || + 0, + border: p.getAttribute( + 'data-border' + ) + ? 'true' === + p.getAttribute( + 'data-border' + ) + : m.props.border || !1, + extraClass: + p.getAttribute( + 'data-class' + ) || + m.props.class || + m.props.className || + '', + disable: p.getAttribute( + 'data-tip-disable' + ) + ? 'true' === + p.getAttribute( + 'data-tip-disable' + ) + : m.props.disable || !1, + currentTarget: p + }, + function() { + u && + m.addScrollListener( + m.state.currentTarget + ), + m.updateTooltip(t), + i && + Array.isArray(i) && + (m.intervalUpdateContent = setInterval( + function() { + if (m.mount) { + var t = + m.props + .getContent, + e = (0, + y.default)( + o, + '', + t[0](), + a + ), + n = m.isEmptyTip( + e + ); + m.setState({ + isEmptyTip: n + }), + m.updatePosition(); + } + }, + i[1] + )); + } + ); + }; + g + ? (this.delayReshow = setTimeout( + b, + g + )) + : b(); + } + }, + { + key: 'updateTooltip', + value: function(t) { + var e = this, + n = this.state, + r = n.delayShow, + i = n.disable, + o = this.props.afterShow, + a = this.getTooltipContent(), + s = parseInt(r, 10), + u = t.currentTarget || t.target; + if ( + !this.mouseOnToolTip() && + !this.isEmptyTip(a) && + !i + ) { + var l = function() { + if ( + (Array.isArray(a) && + a.length > 0) || + a + ) { + var n = !e.state.show; + e.setState( + { + currentEvent: t, + currentTarget: u, + show: !0 + }, + function() { + e.updatePosition(), + n && o && o(t); + } + ); + } + }; + clearTimeout(this.delayShowLoop), + r + ? (this.delayShowLoop = setTimeout( + l, + s + )) + : l(); + } + } + }, + { + key: 'listenForTooltipExit', + value: function() { + this.state.show && + this.tooltipRef && + this.tooltipRef.addEventListener( + 'mouseleave', + this.hideTooltip + ); + } + }, + { + key: 'removeListenerForTooltipExit', + value: function() { + this.state.show && + this.tooltipRef && + this.tooltipRef.removeEventListener( + 'mouseleave', + this.hideTooltip + ); + } + }, + { + key: 'hideTooltip', + value: function(t, e) { + var n = this, + r = + arguments.length > 2 && + void 0 !== arguments[2] + ? arguments[2] + : { isScroll: !1 }, + i = this.state.disable, + o = r.isScroll, + a = o ? 0 : this.state.delayHide, + s = this.props.afterHide, + u = this.getTooltipContent(); + if ( + this.mount && + !this.isEmptyTip(u) && + !i + ) { + if (e) { + var l = this.getTargetArray( + this.props.id + ), + c = l.some(function(e) { + return e === t.currentTarget; + }); + if (!c || !this.state.show) + return; + } + var f = function() { + var e = n.state.show; + n.mouseOnToolTip() + ? n.listenForTooltipExit() + : (n.removeListenerForTooltipExit(), + n.setState( + { show: !1 }, + function() { + n.removeScrollListener(), + e && s && s(t); + } + )); + }; + this.clearTimer(), + a + ? (this.delayHideLoop = setTimeout( + f, + parseInt(a, 10) + )) + : f(); + } + } + }, + { + key: 'hideTooltipOnScroll', + value: function(t, e) { + this.hideTooltip(t, e, { + isScroll: !0 + }); + } + }, + { + key: 'addScrollListener', + value: function(t) { + var e = this.isCapture(t); + window.addEventListener( + 'scroll', + this.hideTooltipOnScroll, + e + ); + } + }, + { + key: 'removeScrollListener', + value: function() { + window.removeEventListener( + 'scroll', + this.hideTooltipOnScroll + ); + } + }, + { + key: 'updatePosition', + value: function() { + var t = this, + e = this.state, + n = e.currentEvent, + r = e.currentTarget, + i = e.place, + o = e.desiredPlace, + a = e.effect, + s = e.offset, + u = this.tooltipRef, + l = (0, v.default)( + n, + r, + u, + i, + o, + a, + s + ); + if ( + (l.position && + this.props.overridePosition && + (l.position = this.props.overridePosition( + l.position, + n, + r, + u, + i, + o, + a, + s + )), + l.isNewState) + ) + return this.setState( + l.newState, + function() { + t.updatePosition(); + } + ); + (u.style.left = + l.position.left + 'px'), + (u.style.top = + l.position.top + 'px'); + } + }, + { + key: 'setStyleHeader', + value: function() { + var t = document.getElementsByTagName( + 'head' + )[0]; + if ( + !t.querySelector( + 'style[id="react-tooltip"]' + ) + ) { + var e = document.createElement( + 'style' + ); + (e.id = 'react-tooltip'), + (e.innerHTML = x.default), + n.nc && + e.setAttribute('nonce', n.nc), + t.insertBefore(e, t.firstChild); + } + } + }, + { + key: 'clearTimer', + value: function() { + clearTimeout(this.delayShowLoop), + clearTimeout(this.delayHideLoop), + clearTimeout(this.delayReshow), + clearInterval( + this.intervalUpdateContent + ); + } + }, + { + key: 'render', + value: function() { + var t = this, + n = this.state, + r = n.extraClass, + i = n.html, + o = n.ariaProps, + s = n.disable, + l = this.getTooltipContent(), + f = this.isEmptyTip(l), + d = (0, c.default)( + '__react_component_tooltip', + { + show: + this.state.show && !s && !f + }, + { border: this.state.border }, + { + 'place-top': + 'top' === this.state.place + }, + { + 'place-bottom': + 'bottom' === this.state.place + }, + { + 'place-left': + 'left' === this.state.place + }, + { + 'place-right': + 'right' === this.state.place + }, + { + 'type-dark': + 'dark' === this.state.type + }, + { + 'type-success': + 'success' === this.state.type + }, + { + 'type-warning': + 'warning' === this.state.type + }, + { + 'type-error': + 'error' === this.state.type + }, + { + 'type-info': + 'info' === this.state.type + }, + { + 'type-light': + 'light' === this.state.type + }, + { + allow_hover: this.props + .delayUpdate + }, + { + allow_click: this.props + .clickable + } + ), + h = this.props.wrapper; + return ( + e.supportedWrappers.indexOf(h) < + 0 && (h = e.defaultProps.wrapper), + i + ? u.default.createElement( + h, + a( + { + className: d + ' ' + r, + id: this.props.id, + ref: function(e) { + return (t.tooltipRef = e); + } + }, + o, + { + 'data-id': 'tooltip', + dangerouslySetInnerHTML: { + __html: l + } + } + ) + ) + : u.default.createElement( + h, + a( + { + className: d + ' ' + r, + id: this.props.id + }, + o, + { + ref: function(e) { + return (t.tooltipRef = e); + }, + 'data-id': 'tooltip' + } + ), + l + ) + ); + } + } + ], + [ + { + key: 'getDerivedStateFromProps', + value: function(t, e) { + var n = e.ariaProps, + r = (0, b.parseAria)(t); + return Object.keys(r).some(function( + t + ) { + return r[t] !== n[t]; + }) + ? a({}, e, { ariaProps: r }) + : null; + } + } + ] + ), + e + ); + })(u.default.Component)), + (i.propTypes = { + children: l.default.any, + place: l.default.string, + type: l.default.string, + effect: l.default.string, + offset: l.default.object, + multiline: l.default.bool, + border: l.default.bool, + insecure: l.default.bool, + class: l.default.string, + className: l.default.string, + id: l.default.string, + html: l.default.bool, + delayHide: l.default.number, + delayUpdate: l.default.number, + delayShow: l.default.number, + event: l.default.string, + eventOff: l.default.string, + watchWindow: l.default.bool, + isCapture: l.default.bool, + globalEventOff: l.default.string, + getContent: l.default.any, + afterShow: l.default.func, + afterHide: l.default.func, + overridePosition: l.default.func, + disable: l.default.bool, + scrollHide: l.default.bool, + resizeHide: l.default.bool, + wrapper: l.default.string, + clickable: l.default.bool + }), + (i.defaultProps = { + insecure: !0, + resizeHide: !0, + wrapper: 'div', + clickable: !1 + }), + (i.supportedWrappers = ['div', 'span']), + (i.displayName = 'ReactTooltip'), + (r = o)) + ) || r) + ) || r) + ) || r) + ) || r) + ) || r) + ) || r; + t.exports = S; + }, + function(t, e, n) { + var r = n(207), + i = n(238)(function(t, e, n) { + r(t, e, n); + }); + t.exports = i; + }, + function(t, e, n) { + 'use strict'; + function r(t, e) { + if (null == t) return {}; + var n, + r, + i = {}, + o = Object.keys(t); + for (r = 0; r < o.length; r++) + (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); + return i; + } + n.d(e, 'a', function() { + return r; + }); + }, + function(t, e, n) { + var r = n(193), + i = n(194), + o = n(195); + t.exports = function(t) { + return r(t) || i(t) || o(); + }; + }, + function(t, e) { + var n; + n = (function() { + return this; + })(); + try { + n = n || new Function('return this')(); + } catch (t) { + 'object' == typeof window && (n = window); + } + t.exports = n; + }, + function(t, e) { + var n = Array.isArray; + t.exports = n; + }, + function(t, e) { + t.exports = function(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + }; + }, + function(t, e, n) { + var r = n(79); + t.exports = function(t, e) { + return r(t, e); + }; + }, + function(t, e) { + t.exports = function(t) { + var e = typeof t; + return null != t && ('object' == e || 'function' == e); + }; + }, + function(t, e) { + function n(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + t.exports = function(t, e, r) { + return e && n(t.prototype, e), r && n(t, r), t; + }; + }, + function(t, e, n) { + var r = n(254), + i = n(86); + t.exports = function(t, e) { + return !e || ('object' !== r(e) && 'function' != typeof e) ? i(t) : e; + }; + }, + function(t, e) { + function n(e) { + return ( + (t.exports = n = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }), + n(e) + ); + } + t.exports = n; + }, + function(t, e, n) { + var r = n(255); + t.exports = function(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { value: t, writable: !0, configurable: !0 } + })), + e && r(t, e); + }; + }, + function(t, e, n) { + var r = n(98), + i = 'object' == typeof self && self && self.Object === Object && self, + o = r || i || Function('return this')(); + t.exports = o; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.red = e.getContrastingColor = e.isValidHex = e.toState = e.simpleCheckForValidColor = void 0); + var r = o(n(394)), + i = o(n(396)); + function o(t) { + return t && t.__esModule ? t : { default: t }; + } + e.simpleCheckForValidColor = function(t) { + var e = 0, + n = 0; + return ( + (0, r.default)(['r', 'g', 'b', 'a', 'h', 's', 'l', 'v'], function(r) { + if ( + t[r] && + ((e += 1), isNaN(t[r]) || (n += 1), 's' === r || 'l' === r) + ) { + /^\d+%$/.test(t[r]) && (n += 1); + } + }), + e === n && t + ); + }; + var a = (e.toState = function(t, e) { + var n = t.hex ? (0, i.default)(t.hex) : (0, i.default)(t), + r = n.toHsl(), + o = n.toHsv(), + a = n.toRgb(), + s = n.toHex(); + return ( + 0 === r.s && ((r.h = e || 0), (o.h = e || 0)), + { + hsl: r, + hex: '000000' === s && 0 === a.a ? 'transparent' : '#' + s, + rgb: a, + hsv: o, + oldHue: t.h || e || r.h, + source: t.source + } + ); + }); + (e.isValidHex = function(t) { + var e = '#' === String(t).charAt(0) ? 1 : 0; + return ( + t.length !== 4 + e && t.length < 7 + e && (0, i.default)(t).isValid() + ); + }), + (e.getContrastingColor = function(t) { + if (!t) return '#fff'; + var e = a(t); + return 'transparent' === e.hex + ? 'rgba(0,0,0,0.4)' + : (299 * e.rgb.r + 587 * e.rgb.g + 114 * e.rgb.b) / 1e3 >= 128 + ? '#000' + : '#fff'; + }), + (e.red = { + hsl: { a: 1, h: 0, l: 0.5, s: 1 }, + hex: '#ff0000', + rgb: { r: 255, g: 0, b: 0, a: 1 }, + hsv: { h: 0, s: 1, v: 1, a: 1 } + }); + e.default = e; + }, + function(t, e, n) { + var r; + /*! + Copyright (c) 2017 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/ !(function() { + 'use strict'; + var n = {}.hasOwnProperty; + function i() { + for (var t = [], e = 0; e < arguments.length; e++) { + var r = arguments[e]; + if (r) { + var o = typeof r; + if ('string' === o || 'number' === o) t.push(r); + else if (Array.isArray(r) && r.length) { + var a = i.apply(null, r); + a && t.push(a); + } else if ('object' === o) + for (var s in r) n.call(r, s) && r[s] && t.push(s); + } + } + return t.join(' '); + } + t.exports + ? ((i.default = i), (t.exports = i)) + : void 0 === + (r = function() { + return i; + }.apply(e, [])) || (t.exports = r); + })(); + }, + function(t, e) { + t.exports = function(t) { + return null != t && 'object' == typeof t; + }; + }, + function(t, e) { + function n() { + return ( + (t.exports = n = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); + } + return t; + }), + n.apply(this, arguments) + ); + } + t.exports = n; + }, + function(t, e, n) { + 'use strict'; + t.exports = function(t, e, n, r, i, o, a, s) { + if (!t) { + var u; + if (void 0 === e) + u = new Error( + 'Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.' + ); + else { + var l = [n, r, i, o, a, s], + c = 0; + (u = new Error( + e.replace(/%s/g, function() { + return l[c++]; + }) + )).name = 'Invariant Violation'; + } + throw ((u.framesToPop = 1), u); + } + }; + }, + function(t, e, n) { + var r = n(144), + i = n(342), + o = n(359), + a = n(14); + t.exports = function(t, e) { + return (a(t) ? r : o)(t, i(e, 3)); + }; + }, + function(t, e, n) { + var r = n(181), + i = n(186); + t.exports = function(t, e) { + var n = i(t, e); + return r(n) ? n : void 0; + }; + }, + function(t, e, n) { + var r = n(38), + i = n(182), + o = n(183), + a = '[object Null]', + s = '[object Undefined]', + u = r ? r.toStringTag : void 0; + t.exports = function(t) { + return null == t + ? void 0 === t + ? s + : a + : u && u in Object(t) + ? i(t) + : o(t); + }; + }, + function(t, e, n) { + var r = n(69), + i = n(71); + t.exports = function(t) { + return null != t && i(t.length) && !r(t); + }; + }, + function(t, e, n) { + 'use strict'; + function r(t, e) { + if (t.length !== e.length) return !1; + for (var n = 0; n < t.length; n++) if (t[n] !== e[n]) return !1; + return !0; + } + e.a = function(t, e) { + var n; + void 0 === e && (e = r); + var i, + o = [], + a = !1; + return function() { + for (var r = [], s = 0; s < arguments.length; s++) + r[s] = arguments[s]; + return a && n === this && e(r, o) + ? i + : ((i = t.apply(this, r)), (a = !0), (n = this), (o = r), i); + }; + }; + }, + function(t, e, n) { + (function(t, r) { + var i; + /** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ (function() { + var o, + a = 200, + s = + 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.', + u = 'Expected a function', + l = '__lodash_hash_undefined__', + c = 500, + f = '__lodash_placeholder__', + d = 1, + h = 2, + p = 4, + g = 1, + m = 2, + v = 1, + y = 2, + b = 4, + _ = 8, + x = 16, + w = 32, + S = 64, + E = 128, + k = 256, + A = 512, + T = 30, + C = '...', + O = 800, + P = 16, + M = 1, + L = 2, + j = 1 / 0, + D = 9007199254740991, + R = 17976931348623157e292, + z = NaN, + N = 4294967295, + I = N - 1, + F = N >>> 1, + V = [ + ['ary', E], + ['bind', v], + ['bindKey', y], + ['curry', _], + ['curryRight', x], + ['flip', A], + ['partial', w], + ['partialRight', S], + ['rearg', k] + ], + B = '[object Arguments]', + G = '[object Array]', + H = '[object AsyncFunction]', + U = '[object Boolean]', + q = '[object Date]', + W = '[object DOMException]', + X = '[object Error]', + Y = '[object Function]', + $ = '[object GeneratorFunction]', + K = '[object Map]', + Q = '[object Number]', + Z = '[object Null]', + J = '[object Object]', + tt = '[object Proxy]', + et = '[object RegExp]', + nt = '[object Set]', + rt = '[object String]', + it = '[object Symbol]', + ot = '[object Undefined]', + at = '[object WeakMap]', + st = '[object WeakSet]', + ut = '[object ArrayBuffer]', + lt = '[object DataView]', + ct = '[object Float32Array]', + ft = '[object Float64Array]', + dt = '[object Int8Array]', + ht = '[object Int16Array]', + pt = '[object Int32Array]', + gt = '[object Uint8Array]', + mt = '[object Uint8ClampedArray]', + vt = '[object Uint16Array]', + yt = '[object Uint32Array]', + bt = /\b__p \+= '';/g, + _t = /\b(__p \+=) '' \+/g, + xt = /(__e\(.*?\)|\b__t\)) \+\n'';/g, + wt = /&(?:amp|lt|gt|quot|#39);/g, + St = /[&<>"']/g, + Et = RegExp(wt.source), + kt = RegExp(St.source), + At = /<%-([\s\S]+?)%>/g, + Tt = /<%([\s\S]+?)%>/g, + Ct = /<%=([\s\S]+?)%>/g, + Ot = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, + Pt = /^\w*$/, + Mt = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, + Lt = /[\\^$.*+?()[\]{}|]/g, + jt = RegExp(Lt.source), + Dt = /^\s+|\s+$/g, + Rt = /^\s+/, + zt = /\s+$/, + Nt = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, + It = /\{\n\/\* \[wrapped with (.+)\] \*/, + Ft = /,? & /, + Vt = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, + Bt = /\\(\\)?/g, + Gt = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, + Ht = /\w*$/, + Ut = /^[-+]0x[0-9a-f]+$/i, + qt = /^0b[01]+$/i, + Wt = /^\[object .+?Constructor\]$/, + Xt = /^0o[0-7]+$/i, + Yt = /^(?:0|[1-9]\d*)$/, + $t = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, + Kt = /($^)/, + Qt = /['\n\r\u2028\u2029\\]/g, + Zt = '\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff', + Jt = + '\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000', + te = '[\\ud800-\\udfff]', + ee = '[' + Jt + ']', + ne = '[' + Zt + ']', + re = '\\d+', + ie = '[\\u2700-\\u27bf]', + oe = '[a-z\\xdf-\\xf6\\xf8-\\xff]', + ae = + '[^\\ud800-\\udfff' + + Jt + + re + + '\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]', + se = '\\ud83c[\\udffb-\\udfff]', + ue = '[^\\ud800-\\udfff]', + le = '(?:\\ud83c[\\udde6-\\uddff]){2}', + ce = '[\\ud800-\\udbff][\\udc00-\\udfff]', + fe = '[A-Z\\xc0-\\xd6\\xd8-\\xde]', + de = '(?:' + oe + '|' + ae + ')', + he = '(?:' + fe + '|' + ae + ')', + pe = '(?:' + ne + '|' + se + ')' + '?', + ge = + '[\\ufe0e\\ufe0f]?' + + pe + + ('(?:\\u200d(?:' + + [ue, le, ce].join('|') + + ')[\\ufe0e\\ufe0f]?' + + pe + + ')*'), + me = '(?:' + [ie, le, ce].join('|') + ')' + ge, + ve = '(?:' + [ue + ne + '?', ne, le, ce, te].join('|') + ')', + ye = RegExp("['’]", 'g'), + be = RegExp(ne, 'g'), + _e = RegExp(se + '(?=' + se + ')|' + ve + ge, 'g'), + xe = RegExp( + [ + fe + + '?' + + oe + + "+(?:['’](?:d|ll|m|re|s|t|ve))?(?=" + + [ee, fe, '$'].join('|') + + ')', + he + + "+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=" + + [ee, fe + de, '$'].join('|') + + ')', + fe + '?' + de + "+(?:['’](?:d|ll|m|re|s|t|ve))?", + fe + "+(?:['’](?:D|LL|M|RE|S|T|VE))?", + '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])', + '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])', + re, + me + ].join('|'), + 'g' + ), + we = RegExp('[\\u200d\\ud800-\\udfff' + Zt + '\\ufe0e\\ufe0f]'), + Se = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, + Ee = [ + 'Array', + 'Buffer', + 'DataView', + 'Date', + 'Error', + 'Float32Array', + 'Float64Array', + 'Function', + 'Int8Array', + 'Int16Array', + 'Int32Array', + 'Map', + 'Math', + 'Object', + 'Promise', + 'RegExp', + 'Set', + 'String', + 'Symbol', + 'TypeError', + 'Uint8Array', + 'Uint8ClampedArray', + 'Uint16Array', + 'Uint32Array', + 'WeakMap', + '_', + 'clearTimeout', + 'isFinite', + 'parseInt', + 'setTimeout' + ], + ke = -1, + Ae = {}; + (Ae[ct] = Ae[ft] = Ae[dt] = Ae[ht] = Ae[pt] = Ae[gt] = Ae[mt] = Ae[ + vt + ] = Ae[yt] = !0), + (Ae[B] = Ae[G] = Ae[ut] = Ae[U] = Ae[lt] = Ae[q] = Ae[X] = Ae[ + Y + ] = Ae[K] = Ae[Q] = Ae[J] = Ae[et] = Ae[nt] = Ae[rt] = Ae[at] = !1); + var Te = {}; + (Te[B] = Te[G] = Te[ut] = Te[lt] = Te[U] = Te[q] = Te[ct] = Te[ + ft + ] = Te[dt] = Te[ht] = Te[pt] = Te[K] = Te[Q] = Te[J] = Te[et] = Te[ + nt + ] = Te[rt] = Te[it] = Te[gt] = Te[mt] = Te[vt] = Te[yt] = !0), + (Te[X] = Te[Y] = Te[at] = !1); + var Ce = { + '\\': '\\', + "'": "'", + '\n': 'n', + '\r': 'r', + '\u2028': 'u2028', + '\u2029': 'u2029' + }, + Oe = parseFloat, + Pe = parseInt, + Me = 'object' == typeof t && t && t.Object === Object && t, + Le = + 'object' == typeof self && self && self.Object === Object && self, + je = Me || Le || Function('return this')(), + De = e && !e.nodeType && e, + Re = De && 'object' == typeof r && r && !r.nodeType && r, + ze = Re && Re.exports === De, + Ne = ze && Me.process, + Ie = (function() { + try { + var t = Re && Re.require && Re.require('util').types; + return t || (Ne && Ne.binding && Ne.binding('util')); + } catch (t) {} + })(), + Fe = Ie && Ie.isArrayBuffer, + Ve = Ie && Ie.isDate, + Be = Ie && Ie.isMap, + Ge = Ie && Ie.isRegExp, + He = Ie && Ie.isSet, + Ue = Ie && Ie.isTypedArray; + function qe(t, e, n) { + switch (n.length) { + case 0: + return t.call(e); + case 1: + return t.call(e, n[0]); + case 2: + return t.call(e, n[0], n[1]); + case 3: + return t.call(e, n[0], n[1], n[2]); + } + return t.apply(e, n); + } + function We(t, e, n, r) { + for (var i = -1, o = null == t ? 0 : t.length; ++i < o; ) { + var a = t[i]; + e(r, a, n(a), t); + } + return r; + } + function Xe(t, e) { + for ( + var n = -1, r = null == t ? 0 : t.length; + ++n < r && !1 !== e(t[n], n, t); + + ); + return t; + } + function Ye(t, e) { + for ( + var n = null == t ? 0 : t.length; + n-- && !1 !== e(t[n], n, t); + + ); + return t; + } + function $e(t, e) { + for (var n = -1, r = null == t ? 0 : t.length; ++n < r; ) + if (!e(t[n], n, t)) return !1; + return !0; + } + function Ke(t, e) { + for ( + var n = -1, r = null == t ? 0 : t.length, i = 0, o = []; + ++n < r; + + ) { + var a = t[n]; + e(a, n, t) && (o[i++] = a); + } + return o; + } + function Qe(t, e) { + return !!(null == t ? 0 : t.length) && un(t, e, 0) > -1; + } + function Ze(t, e, n) { + for (var r = -1, i = null == t ? 0 : t.length; ++r < i; ) + if (n(e, t[r])) return !0; + return !1; + } + function Je(t, e) { + for ( + var n = -1, r = null == t ? 0 : t.length, i = Array(r); + ++n < r; + + ) + i[n] = e(t[n], n, t); + return i; + } + function tn(t, e) { + for (var n = -1, r = e.length, i = t.length; ++n < r; ) + t[i + n] = e[n]; + return t; + } + function en(t, e, n, r) { + var i = -1, + o = null == t ? 0 : t.length; + for (r && o && (n = t[++i]); ++i < o; ) n = e(n, t[i], i, t); + return n; + } + function nn(t, e, n, r) { + var i = null == t ? 0 : t.length; + for (r && i && (n = t[--i]); i--; ) n = e(n, t[i], i, t); + return n; + } + function rn(t, e) { + for (var n = -1, r = null == t ? 0 : t.length; ++n < r; ) + if (e(t[n], n, t)) return !0; + return !1; + } + var on = dn('length'); + function an(t, e, n) { + var r; + return ( + n(t, function(t, n, i) { + if (e(t, n, i)) return (r = n), !1; + }), + r + ); + } + function sn(t, e, n, r) { + for (var i = t.length, o = n + (r ? 1 : -1); r ? o-- : ++o < i; ) + if (e(t[o], o, t)) return o; + return -1; + } + function un(t, e, n) { + return e == e + ? (function(t, e, n) { + var r = n - 1, + i = t.length; + for (; ++r < i; ) if (t[r] === e) return r; + return -1; + })(t, e, n) + : sn(t, cn, n); + } + function ln(t, e, n, r) { + for (var i = n - 1, o = t.length; ++i < o; ) + if (r(t[i], e)) return i; + return -1; + } + function cn(t) { + return t != t; + } + function fn(t, e) { + var n = null == t ? 0 : t.length; + return n ? gn(t, e) / n : z; + } + function dn(t) { + return function(e) { + return null == e ? o : e[t]; + }; + } + function hn(t) { + return function(e) { + return null == t ? o : t[e]; + }; + } + function pn(t, e, n, r, i) { + return ( + i(t, function(t, i, o) { + n = r ? ((r = !1), t) : e(n, t, i, o); + }), + n + ); + } + function gn(t, e) { + for (var n, r = -1, i = t.length; ++r < i; ) { + var a = e(t[r]); + a !== o && (n = n === o ? a : n + a); + } + return n; + } + function mn(t, e) { + for (var n = -1, r = Array(t); ++n < t; ) r[n] = e(n); + return r; + } + function vn(t) { + return function(e) { + return t(e); + }; + } + function yn(t, e) { + return Je(e, function(e) { + return t[e]; + }); + } + function bn(t, e) { + return t.has(e); + } + function _n(t, e) { + for (var n = -1, r = t.length; ++n < r && un(e, t[n], 0) > -1; ); + return n; + } + function xn(t, e) { + for (var n = t.length; n-- && un(e, t[n], 0) > -1; ); + return n; + } + var wn = hn({ + À: 'A', + Á: 'A', + Â: 'A', + Ã: 'A', + Ä: 'A', + Å: 'A', + à: 'a', + á: 'a', + â: 'a', + ã: 'a', + ä: 'a', + å: 'a', + Ç: 'C', + ç: 'c', + Ð: 'D', + ð: 'd', + È: 'E', + É: 'E', + Ê: 'E', + Ë: 'E', + è: 'e', + é: 'e', + ê: 'e', + ë: 'e', + Ì: 'I', + Í: 'I', + Î: 'I', + Ï: 'I', + ì: 'i', + í: 'i', + î: 'i', + ï: 'i', + Ñ: 'N', + ñ: 'n', + Ò: 'O', + Ó: 'O', + Ô: 'O', + Õ: 'O', + Ö: 'O', + Ø: 'O', + ò: 'o', + ó: 'o', + ô: 'o', + õ: 'o', + ö: 'o', + ø: 'o', + Ù: 'U', + Ú: 'U', + Û: 'U', + Ü: 'U', + ù: 'u', + ú: 'u', + û: 'u', + ü: 'u', + Ý: 'Y', + ý: 'y', + ÿ: 'y', + Æ: 'Ae', + æ: 'ae', + Þ: 'Th', + þ: 'th', + ß: 'ss', + Ā: 'A', + Ă: 'A', + Ą: 'A', + ā: 'a', + ă: 'a', + ą: 'a', + Ć: 'C', + Ĉ: 'C', + Ċ: 'C', + Č: 'C', + ć: 'c', + ĉ: 'c', + ċ: 'c', + č: 'c', + Ď: 'D', + Đ: 'D', + ď: 'd', + đ: 'd', + Ē: 'E', + Ĕ: 'E', + Ė: 'E', + Ę: 'E', + Ě: 'E', + ē: 'e', + ĕ: 'e', + ė: 'e', + ę: 'e', + ě: 'e', + Ĝ: 'G', + Ğ: 'G', + Ġ: 'G', + Ģ: 'G', + ĝ: 'g', + ğ: 'g', + ġ: 'g', + ģ: 'g', + Ĥ: 'H', + Ħ: 'H', + ĥ: 'h', + ħ: 'h', + Ĩ: 'I', + Ī: 'I', + Ĭ: 'I', + Į: 'I', + İ: 'I', + ĩ: 'i', + ī: 'i', + ĭ: 'i', + į: 'i', + ı: 'i', + Ĵ: 'J', + ĵ: 'j', + Ķ: 'K', + ķ: 'k', + ĸ: 'k', + Ĺ: 'L', + Ļ: 'L', + Ľ: 'L', + Ŀ: 'L', + Ł: 'L', + ĺ: 'l', + ļ: 'l', + ľ: 'l', + ŀ: 'l', + ł: 'l', + Ń: 'N', + Ņ: 'N', + Ň: 'N', + Ŋ: 'N', + ń: 'n', + ņ: 'n', + ň: 'n', + ŋ: 'n', + Ō: 'O', + Ŏ: 'O', + Ő: 'O', + ō: 'o', + ŏ: 'o', + ő: 'o', + Ŕ: 'R', + Ŗ: 'R', + Ř: 'R', + ŕ: 'r', + ŗ: 'r', + ř: 'r', + Ś: 'S', + Ŝ: 'S', + Ş: 'S', + Š: 'S', + ś: 's', + ŝ: 's', + ş: 's', + š: 's', + Ţ: 'T', + Ť: 'T', + Ŧ: 'T', + ţ: 't', + ť: 't', + ŧ: 't', + Ũ: 'U', + Ū: 'U', + Ŭ: 'U', + Ů: 'U', + Ű: 'U', + Ų: 'U', + ũ: 'u', + ū: 'u', + ŭ: 'u', + ů: 'u', + ű: 'u', + ų: 'u', + Ŵ: 'W', + ŵ: 'w', + Ŷ: 'Y', + ŷ: 'y', + Ÿ: 'Y', + Ź: 'Z', + Ż: 'Z', + Ž: 'Z', + ź: 'z', + ż: 'z', + ž: 'z', + IJ: 'IJ', + ij: 'ij', + Œ: 'Oe', + œ: 'oe', + ʼn: "'n", + ſ: 's' + }), + Sn = hn({ + '&': '&', + '<': '<', + '>': '>', + '"': '"', + "'": ''' + }); + function En(t) { + return '\\' + Ce[t]; + } + function kn(t) { + return we.test(t); + } + function An(t) { + var e = -1, + n = Array(t.size); + return ( + t.forEach(function(t, r) { + n[++e] = [r, t]; + }), + n + ); + } + function Tn(t, e) { + return function(n) { + return t(e(n)); + }; + } + function Cn(t, e) { + for (var n = -1, r = t.length, i = 0, o = []; ++n < r; ) { + var a = t[n]; + (a !== e && a !== f) || ((t[n] = f), (o[i++] = n)); + } + return o; + } + function On(t) { + var e = -1, + n = Array(t.size); + return ( + t.forEach(function(t) { + n[++e] = t; + }), + n + ); + } + function Pn(t) { + var e = -1, + n = Array(t.size); + return ( + t.forEach(function(t) { + n[++e] = [t, t]; + }), + n + ); + } + function Mn(t) { + return kn(t) + ? (function(t) { + var e = (_e.lastIndex = 0); + for (; _e.test(t); ) ++e; + return e; + })(t) + : on(t); + } + function Ln(t) { + return kn(t) + ? (function(t) { + return t.match(_e) || []; + })(t) + : (function(t) { + return t.split(''); + })(t); + } + var jn = hn({ + '&': '&', + '<': '<', + '>': '>', + '"': '"', + ''': "'" + }); + var Dn = (function t(e) { + var n, + r = (e = + null == e ? je : Dn.defaults(je.Object(), e, Dn.pick(je, Ee))) + .Array, + i = e.Date, + Zt = e.Error, + Jt = e.Function, + te = e.Math, + ee = e.Object, + ne = e.RegExp, + re = e.String, + ie = e.TypeError, + oe = r.prototype, + ae = Jt.prototype, + se = ee.prototype, + ue = e['__core-js_shared__'], + le = ae.toString, + ce = se.hasOwnProperty, + fe = 0, + de = (n = /[^.]+$/.exec( + (ue && ue.keys && ue.keys.IE_PROTO) || '' + )) + ? 'Symbol(src)_1.' + n + : '', + he = se.toString, + pe = le.call(ee), + ge = je._, + me = ne( + '^' + + le + .call(ce) + .replace(Lt, '\\$&') + .replace( + /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, + '$1.*?' + ) + + '$' + ), + ve = ze ? e.Buffer : o, + _e = e.Symbol, + we = e.Uint8Array, + Ce = ve ? ve.allocUnsafe : o, + Me = Tn(ee.getPrototypeOf, ee), + Le = ee.create, + De = se.propertyIsEnumerable, + Re = oe.splice, + Ne = _e ? _e.isConcatSpreadable : o, + Ie = _e ? _e.iterator : o, + on = _e ? _e.toStringTag : o, + hn = (function() { + try { + var t = Fo(ee, 'defineProperty'); + return t({}, '', {}), t; + } catch (t) {} + })(), + Rn = e.clearTimeout !== je.clearTimeout && e.clearTimeout, + zn = i && i.now !== je.Date.now && i.now, + Nn = e.setTimeout !== je.setTimeout && e.setTimeout, + In = te.ceil, + Fn = te.floor, + Vn = ee.getOwnPropertySymbols, + Bn = ve ? ve.isBuffer : o, + Gn = e.isFinite, + Hn = oe.join, + Un = Tn(ee.keys, ee), + qn = te.max, + Wn = te.min, + Xn = i.now, + Yn = e.parseInt, + $n = te.random, + Kn = oe.reverse, + Qn = Fo(e, 'DataView'), + Zn = Fo(e, 'Map'), + Jn = Fo(e, 'Promise'), + tr = Fo(e, 'Set'), + er = Fo(e, 'WeakMap'), + nr = Fo(ee, 'create'), + rr = er && new er(), + ir = {}, + or = fa(Qn), + ar = fa(Zn), + sr = fa(Jn), + ur = fa(tr), + lr = fa(er), + cr = _e ? _e.prototype : o, + fr = cr ? cr.valueOf : o, + dr = cr ? cr.toString : o; + function hr(t) { + if (Cs(t) && !vs(t) && !(t instanceof vr)) { + if (t instanceof mr) return t; + if (ce.call(t, '__wrapped__')) return da(t); + } + return new mr(t); + } + var pr = (function() { + function t() {} + return function(e) { + if (!Ts(e)) return {}; + if (Le) return Le(e); + t.prototype = e; + var n = new t(); + return (t.prototype = o), n; + }; + })(); + function gr() {} + function mr(t, e) { + (this.__wrapped__ = t), + (this.__actions__ = []), + (this.__chain__ = !!e), + (this.__index__ = 0), + (this.__values__ = o); + } + function vr(t) { + (this.__wrapped__ = t), + (this.__actions__ = []), + (this.__dir__ = 1), + (this.__filtered__ = !1), + (this.__iteratees__ = []), + (this.__takeCount__ = N), + (this.__views__ = []); + } + function yr(t) { + var e = -1, + n = null == t ? 0 : t.length; + for (this.clear(); ++e < n; ) { + var r = t[e]; + this.set(r[0], r[1]); + } + } + function br(t) { + var e = -1, + n = null == t ? 0 : t.length; + for (this.clear(); ++e < n; ) { + var r = t[e]; + this.set(r[0], r[1]); + } + } + function _r(t) { + var e = -1, + n = null == t ? 0 : t.length; + for (this.clear(); ++e < n; ) { + var r = t[e]; + this.set(r[0], r[1]); + } + } + function xr(t) { + var e = -1, + n = null == t ? 0 : t.length; + for (this.__data__ = new _r(); ++e < n; ) this.add(t[e]); + } + function wr(t) { + var e = (this.__data__ = new br(t)); + this.size = e.size; + } + function Sr(t, e) { + var n = vs(t), + r = !n && ms(t), + i = !n && !r && xs(t), + o = !n && !r && !i && zs(t), + a = n || r || i || o, + s = a ? mn(t.length, re) : [], + u = s.length; + for (var l in t) + (!e && !ce.call(t, l)) || + (a && + ('length' == l || + (i && ('offset' == l || 'parent' == l)) || + (o && + ('buffer' == l || + 'byteLength' == l || + 'byteOffset' == l)) || + Wo(l, u))) || + s.push(l); + return s; + } + function Er(t) { + var e = t.length; + return e ? t[xi(0, e - 1)] : o; + } + function kr(t, e) { + return ua(no(t), Dr(e, 0, t.length)); + } + function Ar(t) { + return ua(no(t)); + } + function Tr(t, e, n) { + ((n === o || hs(t[e], n)) && (n !== o || e in t)) || Lr(t, e, n); + } + function Cr(t, e, n) { + var r = t[e]; + (ce.call(t, e) && hs(r, n) && (n !== o || e in t)) || Lr(t, e, n); + } + function Or(t, e) { + for (var n = t.length; n--; ) if (hs(t[n][0], e)) return n; + return -1; + } + function Pr(t, e, n, r) { + return ( + Fr(t, function(t, i, o) { + e(r, t, n(t), o); }), - n.d(e, 'utcMonths', function() { - return sy; + r + ); + } + function Mr(t, e) { + return t && ro(e, iu(e), t); + } + function Lr(t, e, n) { + '__proto__' == e && hn + ? hn(t, e, { + configurable: !0, + enumerable: !0, + value: n, + writable: !0 + }) + : (t[e] = n); + } + function jr(t, e) { + for (var n = -1, i = e.length, a = r(i), s = null == t; ++n < i; ) + a[n] = s ? o : Js(t, e[n]); + return a; + } + function Dr(t, e, n) { + return ( + t == t && + (n !== o && (t = t <= n ? t : n), + e !== o && (t = t >= e ? t : e)), + t + ); + } + function Rr(t, e, n, r, i, a) { + var s, + u = e & d, + l = e & h, + c = e & p; + if ((n && (s = i ? n(t, r, i, a) : n(t)), s !== o)) return s; + if (!Ts(t)) return t; + var f = vs(t); + if (f) { + if ( + ((s = (function(t) { + var e = t.length, + n = new t.constructor(e); + e && + 'string' == typeof t[0] && + ce.call(t, 'index') && + ((n.index = t.index), (n.input = t.input)); + return n; + })(t)), + !u) + ) + return no(t, s); + } else { + var g = Go(t), + m = g == Y || g == $; + if (xs(t)) return Ki(t, u); + if (g == J || g == B || (m && !i)) { + if (((s = l || m ? {} : Uo(t)), !u)) + return l + ? (function(t, e) { + return ro(t, Bo(t), e); + })( + t, + (function(t, e) { + return t && ro(e, ou(e), t); + })(s, t) + ) + : (function(t, e) { + return ro(t, Vo(t), e); + })(t, Mr(s, t)); + } else { + if (!Te[g]) return i ? t : {}; + s = (function(t, e, n) { + var r = t.constructor; + switch (e) { + case ut: + return Qi(t); + case U: + case q: + return new r(+t); + case lt: + return (function(t, e) { + var n = e ? Qi(t.buffer) : t.buffer; + return new t.constructor( + n, + t.byteOffset, + t.byteLength + ); + })(t, n); + case ct: + case ft: + case dt: + case ht: + case pt: + case gt: + case mt: + case vt: + case yt: + return Zi(t, n); + case K: + return new r(); + case Q: + case rt: + return new r(t); + case et: + return (function(t) { + var e = new t.constructor(t.source, Ht.exec(t)); + return (e.lastIndex = t.lastIndex), e; + })(t); + case nt: + return new r(); + case it: + return (i = t), fr ? ee(fr.call(i)) : {}; + } + var i; + })(t, g, u); + } + } + a || (a = new wr()); + var v = a.get(t); + if (v) return v; + a.set(t, s), + js(t) + ? t.forEach(function(r) { + s.add(Rr(r, e, n, r, t, a)); + }) + : Os(t) && + t.forEach(function(r, i) { + s.set(i, Rr(r, e, n, i, t, a)); + }); + var y = f ? o : (c ? (l ? Lo : Mo) : l ? ou : iu)(t); + return ( + Xe(y || t, function(r, i) { + y && (r = t[(i = r)]), Cr(s, i, Rr(r, e, n, i, t, a)); }), - n.d(e, 'utcYear', function() { - return Lv; + s + ); + } + function zr(t, e, n) { + var r = n.length; + if (null == t) return !r; + for (t = ee(t); r--; ) { + var i = n[r], + a = e[i], + s = t[i]; + if ((s === o && !(i in t)) || !a(s)) return !1; + } + return !0; + } + function Nr(t, e, n) { + if ('function' != typeof t) throw new ie(u); + return ia(function() { + t.apply(o, n); + }, e); + } + function Ir(t, e, n, r) { + var i = -1, + o = Qe, + s = !0, + u = t.length, + l = [], + c = e.length; + if (!u) return l; + n && (e = Je(e, vn(n))), + r + ? ((o = Ze), (s = !1)) + : e.length >= a && ((o = bn), (s = !1), (e = new xr(e))); + t: for (; ++i < u; ) { + var f = t[i], + d = null == n ? f : n(f); + if (((f = r || 0 !== f ? f : 0), s && d == d)) { + for (var h = c; h--; ) if (e[h] === d) continue t; + l.push(f); + } else o(e, d, r) || l.push(f); + } + return l; + } + (hr.templateSettings = { + escape: At, + evaluate: Tt, + interpolate: Ct, + variable: '', + imports: { _: hr } + }), + (hr.prototype = gr.prototype), + (hr.prototype.constructor = hr), + (mr.prototype = pr(gr.prototype)), + (mr.prototype.constructor = mr), + (vr.prototype = pr(gr.prototype)), + (vr.prototype.constructor = vr), + (yr.prototype.clear = function() { + (this.__data__ = nr ? nr(null) : {}), (this.size = 0); + }), + (yr.prototype.delete = function(t) { + var e = this.has(t) && delete this.__data__[t]; + return (this.size -= e ? 1 : 0), e; + }), + (yr.prototype.get = function(t) { + var e = this.__data__; + if (nr) { + var n = e[t]; + return n === l ? o : n; + } + return ce.call(e, t) ? e[t] : o; + }), + (yr.prototype.has = function(t) { + var e = this.__data__; + return nr ? e[t] !== o : ce.call(e, t); + }), + (yr.prototype.set = function(t, e) { + var n = this.__data__; + return ( + (this.size += this.has(t) ? 0 : 1), + (n[t] = nr && e === o ? l : e), + this + ); + }), + (br.prototype.clear = function() { + (this.__data__ = []), (this.size = 0); + }), + (br.prototype.delete = function(t) { + var e = this.__data__, + n = Or(e, t); + return ( + !(n < 0) && + (n == e.length - 1 ? e.pop() : Re.call(e, n, 1), + --this.size, + !0) + ); + }), + (br.prototype.get = function(t) { + var e = this.__data__, + n = Or(e, t); + return n < 0 ? o : e[n][1]; + }), + (br.prototype.has = function(t) { + return Or(this.__data__, t) > -1; + }), + (br.prototype.set = function(t, e) { + var n = this.__data__, + r = Or(n, t); + return ( + r < 0 ? (++this.size, n.push([t, e])) : (n[r][1] = e), this + ); + }), + (_r.prototype.clear = function() { + (this.size = 0), + (this.__data__ = { + hash: new yr(), + map: new (Zn || br)(), + string: new yr() + }); + }), + (_r.prototype.delete = function(t) { + var e = No(this, t).delete(t); + return (this.size -= e ? 1 : 0), e; + }), + (_r.prototype.get = function(t) { + return No(this, t).get(t); + }), + (_r.prototype.has = function(t) { + return No(this, t).has(t); + }), + (_r.prototype.set = function(t, e) { + var n = No(this, t), + r = n.size; + return n.set(t, e), (this.size += n.size == r ? 0 : 1), this; + }), + (xr.prototype.add = xr.prototype.push = function(t) { + return this.__data__.set(t, l), this; + }), + (xr.prototype.has = function(t) { + return this.__data__.has(t); + }), + (wr.prototype.clear = function() { + (this.__data__ = new br()), (this.size = 0); + }), + (wr.prototype.delete = function(t) { + var e = this.__data__, + n = e.delete(t); + return (this.size = e.size), n; + }), + (wr.prototype.get = function(t) { + return this.__data__.get(t); + }), + (wr.prototype.has = function(t) { + return this.__data__.has(t); + }), + (wr.prototype.set = function(t, e) { + var n = this.__data__; + if (n instanceof br) { + var r = n.__data__; + if (!Zn || r.length < a - 1) + return r.push([t, e]), (this.size = ++n.size), this; + n = this.__data__ = new _r(r); + } + return n.set(t, e), (this.size = n.size), this; + }); + var Fr = ao(Xr), + Vr = ao(Yr, !0); + function Br(t, e) { + var n = !0; + return ( + Fr(t, function(t, r, i) { + return (n = !!e(t, r, i)); }), - n.d(e, 'utcYears', function() { - return Dv; + n + ); + } + function Gr(t, e, n) { + for (var r = -1, i = t.length; ++r < i; ) { + var a = t[r], + s = e(a); + if (null != s && (u === o ? s == s && !Rs(s) : n(s, u))) + var u = s, + l = a; + } + return l; + } + function Hr(t, e) { + var n = []; + return ( + Fr(t, function(t, r, i) { + e(t, r, i) && n.push(t); }), - n.d(e, 'timeFormatDefaultLocale', function() { - return ty; + n + ); + } + function Ur(t, e, n, r, i) { + var o = -1, + a = t.length; + for (n || (n = qo), i || (i = []); ++o < a; ) { + var s = t[o]; + e > 0 && n(s) + ? e > 1 + ? Ur(s, e - 1, n, r, i) + : tn(i, s) + : r || (i[i.length] = s); + } + return i; + } + var qr = so(), + Wr = so(!0); + function Xr(t, e) { + return t && qr(t, e, iu); + } + function Yr(t, e) { + return t && Wr(t, e, iu); + } + function $r(t, e) { + return Ke(e, function(e) { + return Es(t[e]); + }); + } + function Kr(t, e) { + for (var n = 0, r = (e = Wi(e, t)).length; null != t && n < r; ) + t = t[ca(e[n++])]; + return n && n == r ? t : o; + } + function Qr(t, e, n) { + var r = e(t); + return vs(t) ? r : tn(r, n(t)); + } + function Zr(t) { + return null == t + ? t === o + ? ot + : Z + : on && on in ee(t) + ? (function(t) { + var e = ce.call(t, on), + n = t[on]; + try { + t[on] = o; + var r = !0; + } catch (t) {} + var i = he.call(t); + r && (e ? (t[on] = n) : delete t[on]); + return i; + })(t) + : (function(t) { + return he.call(t); + })(t); + } + function Jr(t, e) { + return t > e; + } + function ti(t, e) { + return null != t && ce.call(t, e); + } + function ei(t, e) { + return null != t && e in ee(t); + } + function ni(t, e, n) { + for ( + var i = n ? Ze : Qe, + a = t[0].length, + s = t.length, + u = s, + l = r(s), + c = 1 / 0, + f = []; + u--; + + ) { + var d = t[u]; + u && e && (d = Je(d, vn(e))), + (c = Wn(d.length, c)), + (l[u] = + !n && (e || (a >= 120 && d.length >= 120)) + ? new xr(u && d) + : o); + } + d = t[0]; + var h = -1, + p = l[0]; + t: for (; ++h < a && f.length < c; ) { + var g = d[h], + m = e ? e(g) : g; + if ( + ((g = n || 0 !== g ? g : 0), !(p ? bn(p, m) : i(f, m, n))) + ) { + for (u = s; --u; ) { + var v = l[u]; + if (!(v ? bn(v, m) : i(t[u], m, n))) continue t; + } + p && p.push(m), f.push(g); + } + } + return f; + } + function ri(t, e, n) { + var r = null == (t = ea(t, (e = Wi(e, t)))) ? t : t[ca(Sa(e))]; + return null == r ? o : qe(r, t, n); + } + function ii(t) { + return Cs(t) && Zr(t) == B; + } + function oi(t, e, n, r, i) { + return ( + t === e || + (null == t || null == e || (!Cs(t) && !Cs(e)) + ? t != t && e != e + : (function(t, e, n, r, i, a) { + var s = vs(t), + u = vs(e), + l = s ? G : Go(t), + c = u ? G : Go(e), + f = (l = l == B ? J : l) == J, + d = (c = c == B ? J : c) == J, + h = l == c; + if (h && xs(t)) { + if (!xs(e)) return !1; + (s = !0), (f = !1); + } + if (h && !f) + return ( + a || (a = new wr()), + s || zs(t) + ? Oo(t, e, n, r, i, a) + : (function(t, e, n, r, i, o, a) { + switch (n) { + case lt: + if ( + t.byteLength != e.byteLength || + t.byteOffset != e.byteOffset + ) + return !1; + (t = t.buffer), (e = e.buffer); + case ut: + return !( + t.byteLength != e.byteLength || + !o(new we(t), new we(e)) + ); + case U: + case q: + case Q: + return hs(+t, +e); + case X: + return ( + t.name == e.name && t.message == e.message + ); + case et: + case rt: + return t == e + ''; + case K: + var s = An; + case nt: + var u = r & g; + if ((s || (s = On), t.size != e.size && !u)) + return !1; + var l = a.get(t); + if (l) return l == e; + (r |= m), a.set(t, e); + var c = Oo(s(t), s(e), r, i, o, a); + return a.delete(t), c; + case it: + if (fr) return fr.call(t) == fr.call(e); + } + return !1; + })(t, e, l, n, r, i, a) + ); + if (!(n & g)) { + var p = f && ce.call(t, '__wrapped__'), + v = d && ce.call(e, '__wrapped__'); + if (p || v) { + var y = p ? t.value() : t, + b = v ? e.value() : e; + return a || (a = new wr()), i(y, b, n, r, a); + } + } + if (!h) return !1; + return ( + a || (a = new wr()), + (function(t, e, n, r, i, a) { + var s = n & g, + u = Mo(t), + l = u.length, + c = Mo(e).length; + if (l != c && !s) return !1; + var f = l; + for (; f--; ) { + var d = u[f]; + if (!(s ? d in e : ce.call(e, d))) return !1; + } + var h = a.get(t); + if (h && a.get(e)) return h == e; + var p = !0; + a.set(t, e), a.set(e, t); + var m = s; + for (; ++f < l; ) { + d = u[f]; + var v = t[d], + y = e[d]; + if (r) + var b = s + ? r(y, v, d, e, t, a) + : r(v, y, d, t, e, a); + if (!(b === o ? v === y || i(v, y, n, r, a) : b)) { + p = !1; + break; + } + m || (m = 'constructor' == d); + } + if (p && !m) { + var _ = t.constructor, + x = e.constructor; + _ != x && + 'constructor' in t && + 'constructor' in e && + !( + 'function' == typeof _ && + _ instanceof _ && + 'function' == typeof x && + x instanceof x + ) && + (p = !1); + } + return a.delete(t), a.delete(e), p; + })(t, e, n, r, i, a) + ); + })(t, e, n, r, oi, i)) + ); + } + function ai(t, e, n, r) { + var i = n.length, + a = i, + s = !r; + if (null == t) return !a; + for (t = ee(t); i--; ) { + var u = n[i]; + if (s && u[2] ? u[1] !== t[u[0]] : !(u[0] in t)) return !1; + } + for (; ++i < a; ) { + var l = (u = n[i])[0], + c = t[l], + f = u[1]; + if (s && u[2]) { + if (c === o && !(l in t)) return !1; + } else { + var d = new wr(); + if (r) var h = r(c, f, l, t, e, d); + if (!(h === o ? oi(f, c, g | m, r, d) : h)) return !1; + } + } + return !0; + } + function si(t) { + return ( + !(!Ts(t) || ((e = t), de && de in e)) && + (Es(t) ? me : Wt).test(fa(t)) + ); + var e; + } + function ui(t) { + return 'function' == typeof t + ? t + : null == t + ? Pu + : 'object' == typeof t + ? vs(t) + ? pi(t[0], t[1]) + : hi(t) + : Fu(t); + } + function li(t) { + if (!Qo(t)) return Un(t); + var e = []; + for (var n in ee(t)) + ce.call(t, n) && 'constructor' != n && e.push(n); + return e; + } + function ci(t) { + if (!Ts(t)) + return (function(t) { + var e = []; + if (null != t) for (var n in ee(t)) e.push(n); + return e; + })(t); + var e = Qo(t), + n = []; + for (var r in t) + ('constructor' != r || (!e && ce.call(t, r))) && n.push(r); + return n; + } + function fi(t, e) { + return t < e; + } + function di(t, e) { + var n = -1, + i = bs(t) ? r(t.length) : []; + return ( + Fr(t, function(t, r, o) { + i[++n] = e(t, r, o); }), - n.d(e, 'timeFormat', function() { - return Fv; + i + ); + } + function hi(t) { + var e = Io(t); + return 1 == e.length && e[0][2] + ? Jo(e[0][0], e[0][1]) + : function(n) { + return n === t || ai(n, t, e); + }; + } + function pi(t, e) { + return Yo(t) && Zo(e) + ? Jo(ca(t), e) + : function(n) { + var r = Js(n, t); + return r === o && r === e ? tu(n, t) : oi(e, r, g | m); + }; + } + function gi(t, e, n, r, i) { + t !== e && + qr( + e, + function(a, s) { + if ((i || (i = new wr()), Ts(a))) + !(function(t, e, n, r, i, a, s) { + var u = na(t, n), + l = na(e, n), + c = s.get(l); + if (c) return void Tr(t, n, c); + var f = a ? a(u, l, n + '', t, e, s) : o, + d = f === o; + if (d) { + var h = vs(l), + p = !h && xs(l), + g = !h && !p && zs(l); + (f = l), + h || p || g + ? vs(u) + ? (f = u) + : _s(u) + ? (f = no(u)) + : p + ? ((d = !1), (f = Ki(l, !0))) + : g + ? ((d = !1), (f = Zi(l, !0))) + : (f = []) + : Ms(l) || ms(l) + ? ((f = u), + ms(u) + ? (f = Us(u)) + : (Ts(u) && !Es(u)) || (f = Uo(l))) + : (d = !1); + } + d && (s.set(l, f), i(f, l, r, a, s), s.delete(l)); + Tr(t, n, f); + })(t, e, s, n, gi, r, i); + else { + var u = r ? r(na(t, s), a, s + '', t, e, i) : o; + u === o && (u = a), Tr(t, s, u); + } + }, + ou + ); + } + function mi(t, e) { + var n = t.length; + if (n) return Wo((e += e < 0 ? n : 0), n) ? t[e] : o; + } + function vi(t, e, n) { + var r = -1; + return ( + (e = Je(e.length ? e : [Pu], vn(zo()))), + (function(t, e) { + var n = t.length; + for (t.sort(e); n--; ) t[n] = t[n].value; + return t; + })( + di(t, function(t, n, i) { + return { + criteria: Je(e, function(e) { + return e(t); + }), + index: ++r, + value: t + }; + }), + function(t, e) { + return (function(t, e, n) { + var r = -1, + i = t.criteria, + o = e.criteria, + a = i.length, + s = n.length; + for (; ++r < a; ) { + var u = Ji(i[r], o[r]); + if (u) { + if (r >= s) return u; + var l = n[r]; + return u * ('desc' == l ? -1 : 1); + } + } + return t.index - e.index; + })(t, e, n); + } + ) + ); + } + function yi(t, e, n) { + for (var r = -1, i = e.length, o = {}; ++r < i; ) { + var a = e[r], + s = Kr(t, a); + n(s, a) && Ai(o, Wi(a, t), s); + } + return o; + } + function bi(t, e, n, r) { + var i = r ? ln : un, + o = -1, + a = e.length, + s = t; + for (t === e && (e = no(e)), n && (s = Je(t, vn(n))); ++o < a; ) + for ( + var u = 0, l = e[o], c = n ? n(l) : l; + (u = i(s, c, u, r)) > -1; + + ) + s !== t && Re.call(s, u, 1), Re.call(t, u, 1); + return t; + } + function _i(t, e) { + for (var n = t ? e.length : 0, r = n - 1; n--; ) { + var i = e[n]; + if (n == r || i !== o) { + var o = i; + Wo(i) ? Re.call(t, i, 1) : Ii(t, i); + } + } + return t; + } + function xi(t, e) { + return t + Fn($n() * (e - t + 1)); + } + function wi(t, e) { + var n = ''; + if (!t || e < 1 || e > D) return n; + do { + e % 2 && (n += t), (e = Fn(e / 2)) && (t += t); + } while (e); + return n; + } + function Si(t, e) { + return oa(ta(t, e, Pu), t + ''); + } + function Ei(t) { + return Er(hu(t)); + } + function ki(t, e) { + var n = hu(t); + return ua(n, Dr(e, 0, n.length)); + } + function Ai(t, e, n, r) { + if (!Ts(t)) return t; + for ( + var i = -1, a = (e = Wi(e, t)).length, s = a - 1, u = t; + null != u && ++i < a; + + ) { + var l = ca(e[i]), + c = n; + if (i != s) { + var f = u[l]; + (c = r ? r(f, l, u) : o) === o && + (c = Ts(f) ? f : Wo(e[i + 1]) ? [] : {}); + } + Cr(u, l, c), (u = u[l]); + } + return t; + } + var Ti = rr + ? function(t, e) { + return rr.set(t, e), t; + } + : Pu, + Ci = hn + ? function(t, e) { + return hn(t, 'toString', { + configurable: !0, + enumerable: !1, + value: Tu(e), + writable: !0 + }); + } + : Pu; + function Oi(t) { + return ua(hu(t)); + } + function Pi(t, e, n) { + var i = -1, + o = t.length; + e < 0 && (e = -e > o ? 0 : o + e), + (n = n > o ? o : n) < 0 && (n += o), + (o = e > n ? 0 : (n - e) >>> 0), + (e >>>= 0); + for (var a = r(o); ++i < o; ) a[i] = t[i + e]; + return a; + } + function Mi(t, e) { + var n; + return ( + Fr(t, function(t, r, i) { + return !(n = e(t, r, i)); }), - n.d(e, 'timeParse', function() { - return Vv; + !!n + ); + } + function Li(t, e, n) { + var r = 0, + i = null == t ? r : t.length; + if ('number' == typeof e && e == e && i <= F) { + for (; r < i; ) { + var o = (r + i) >>> 1, + a = t[o]; + null !== a && !Rs(a) && (n ? a <= e : a < e) + ? (r = o + 1) + : (i = o); + } + return i; + } + return ji(t, e, Pu, n); + } + function ji(t, e, n, r) { + e = n(e); + for ( + var i = 0, + a = null == t ? 0 : t.length, + s = e != e, + u = null === e, + l = Rs(e), + c = e === o; + i < a; + + ) { + var f = Fn((i + a) / 2), + d = n(t[f]), + h = d !== o, + p = null === d, + g = d == d, + m = Rs(d); + if (s) var v = r || g; + else + v = c + ? g && (r || h) + : u + ? g && h && (r || !p) + : l + ? g && h && !p && (r || !m) + : !p && !m && (r ? d <= e : d < e); + v ? (i = f + 1) : (a = f); + } + return Wn(a, I); + } + function Di(t, e) { + for (var n = -1, r = t.length, i = 0, o = []; ++n < r; ) { + var a = t[n], + s = e ? e(a) : a; + if (!n || !hs(s, u)) { + var u = s; + o[i++] = 0 === a ? 0 : a; + } + } + return o; + } + function Ri(t) { + return 'number' == typeof t ? t : Rs(t) ? z : +t; + } + function zi(t) { + if ('string' == typeof t) return t; + if (vs(t)) return Je(t, zi) + ''; + if (Rs(t)) return dr ? dr.call(t) : ''; + var e = t + ''; + return '0' == e && 1 / t == -j ? '-0' : e; + } + function Ni(t, e, n) { + var r = -1, + i = Qe, + o = t.length, + s = !0, + u = [], + l = u; + if (n) (s = !1), (i = Ze); + else if (o >= a) { + var c = e ? null : So(t); + if (c) return On(c); + (s = !1), (i = bn), (l = new xr()); + } else l = e ? [] : u; + t: for (; ++r < o; ) { + var f = t[r], + d = e ? e(f) : f; + if (((f = n || 0 !== f ? f : 0), s && d == d)) { + for (var h = l.length; h--; ) if (l[h] === d) continue t; + e && l.push(d), u.push(f); + } else i(l, d, n) || (l !== u && l.push(d), u.push(f)); + } + return u; + } + function Ii(t, e) { + return null == (t = ea(t, (e = Wi(e, t)))) || delete t[ca(Sa(e))]; + } + function Fi(t, e, n, r) { + return Ai(t, e, n(Kr(t, e)), r); + } + function Vi(t, e, n, r) { + for ( + var i = t.length, o = r ? i : -1; + (r ? o-- : ++o < i) && e(t[o], o, t); + + ); + return n + ? Pi(t, r ? 0 : o, r ? o + 1 : i) + : Pi(t, r ? o + 1 : 0, r ? i : o); + } + function Bi(t, e) { + var n = t; + return ( + n instanceof vr && (n = n.value()), + en( + e, + function(t, e) { + return e.func.apply(e.thisArg, tn([t], e.args)); + }, + n + ) + ); + } + function Gi(t, e, n) { + var i = t.length; + if (i < 2) return i ? Ni(t[0]) : []; + for (var o = -1, a = r(i); ++o < i; ) + for (var s = t[o], u = -1; ++u < i; ) + u != o && (a[o] = Ir(a[o] || s, t[u], e, n)); + return Ni(Ur(a, 1), e, n); + } + function Hi(t, e, n) { + for (var r = -1, i = t.length, a = e.length, s = {}; ++r < i; ) { + var u = r < a ? e[r] : o; + n(s, t[r], u); + } + return s; + } + function Ui(t) { + return _s(t) ? t : []; + } + function qi(t) { + return 'function' == typeof t ? t : Pu; + } + function Wi(t, e) { + return vs(t) ? t : Yo(t, e) ? [t] : la(qs(t)); + } + var Xi = Si; + function Yi(t, e, n) { + var r = t.length; + return (n = n === o ? r : n), !e && n >= r ? t : Pi(t, e, n); + } + var $i = + Rn || + function(t) { + return je.clearTimeout(t); + }; + function Ki(t, e) { + if (e) return t.slice(); + var n = t.length, + r = Ce ? Ce(n) : new t.constructor(n); + return t.copy(r), r; + } + function Qi(t) { + var e = new t.constructor(t.byteLength); + return new we(e).set(new we(t)), e; + } + function Zi(t, e) { + var n = e ? Qi(t.buffer) : t.buffer; + return new t.constructor(n, t.byteOffset, t.length); + } + function Ji(t, e) { + if (t !== e) { + var n = t !== o, + r = null === t, + i = t == t, + a = Rs(t), + s = e !== o, + u = null === e, + l = e == e, + c = Rs(e); + if ( + (!u && !c && !a && t > e) || + (a && s && l && !u && !c) || + (r && s && l) || + (!n && l) || + !i + ) + return 1; + if ( + (!r && !a && !c && t < e) || + (c && n && i && !r && !a) || + (u && n && i) || + (!s && i) || + !l + ) + return -1; + } + return 0; + } + function to(t, e, n, i) { + for ( + var o = -1, + a = t.length, + s = n.length, + u = -1, + l = e.length, + c = qn(a - s, 0), + f = r(l + c), + d = !i; + ++u < l; + + ) + f[u] = e[u]; + for (; ++o < s; ) (d || o < a) && (f[n[o]] = t[o]); + for (; c--; ) f[u++] = t[o++]; + return f; + } + function eo(t, e, n, i) { + for ( + var o = -1, + a = t.length, + s = -1, + u = n.length, + l = -1, + c = e.length, + f = qn(a - u, 0), + d = r(f + c), + h = !i; + ++o < f; + + ) + d[o] = t[o]; + for (var p = o; ++l < c; ) d[p + l] = e[l]; + for (; ++s < u; ) (h || o < a) && (d[p + n[s]] = t[o++]); + return d; + } + function no(t, e) { + var n = -1, + i = t.length; + for (e || (e = r(i)); ++n < i; ) e[n] = t[n]; + return e; + } + function ro(t, e, n, r) { + var i = !n; + n || (n = {}); + for (var a = -1, s = e.length; ++a < s; ) { + var u = e[a], + l = r ? r(n[u], t[u], u, n, t) : o; + l === o && (l = t[u]), i ? Lr(n, u, l) : Cr(n, u, l); + } + return n; + } + function io(t, e) { + return function(n, r) { + var i = vs(n) ? We : Pr, + o = e ? e() : {}; + return i(n, t, zo(r, 2), o); + }; + } + function oo(t) { + return Si(function(e, n) { + var r = -1, + i = n.length, + a = i > 1 ? n[i - 1] : o, + s = i > 2 ? n[2] : o; + for ( + a = t.length > 3 && 'function' == typeof a ? (i--, a) : o, + s && Xo(n[0], n[1], s) && ((a = i < 3 ? o : a), (i = 1)), + e = ee(e); + ++r < i; + + ) { + var u = n[r]; + u && t(e, u, r, a); + } + return e; + }); + } + function ao(t, e) { + return function(n, r) { + if (null == n) return n; + if (!bs(n)) return t(n, r); + for ( + var i = n.length, o = e ? i : -1, a = ee(n); + (e ? o-- : ++o < i) && !1 !== r(a[o], o, a); + + ); + return n; + }; + } + function so(t) { + return function(e, n, r) { + for (var i = -1, o = ee(e), a = r(e), s = a.length; s--; ) { + var u = a[t ? s : ++i]; + if (!1 === n(o[u], u, o)) break; + } + return e; + }; + } + function uo(t) { + return function(e) { + var n = kn((e = qs(e))) ? Ln(e) : o, + r = n ? n[0] : e.charAt(0), + i = n ? Yi(n, 1).join('') : e.slice(1); + return r[t]() + i; + }; + } + function lo(t) { + return function(e) { + return en(Eu(mu(e).replace(ye, '')), t, ''); + }; + } + function co(t) { + return function() { + var e = arguments; + switch (e.length) { + case 0: + return new t(); + case 1: + return new t(e[0]); + case 2: + return new t(e[0], e[1]); + case 3: + return new t(e[0], e[1], e[2]); + case 4: + return new t(e[0], e[1], e[2], e[3]); + case 5: + return new t(e[0], e[1], e[2], e[3], e[4]); + case 6: + return new t(e[0], e[1], e[2], e[3], e[4], e[5]); + case 7: + return new t(e[0], e[1], e[2], e[3], e[4], e[5], e[6]); + } + var n = pr(t.prototype), + r = t.apply(n, e); + return Ts(r) ? r : n; + }; + } + function fo(t) { + return function(e, n, r) { + var i = ee(e); + if (!bs(e)) { + var a = zo(n, 3); + (e = iu(e)), + (n = function(t) { + return a(i[t], t, i); + }); + } + var s = t(e, n, r); + return s > -1 ? i[a ? e[s] : s] : o; + }; + } + function ho(t) { + return Po(function(e) { + var n = e.length, + r = n, + i = mr.prototype.thru; + for (t && e.reverse(); r--; ) { + var a = e[r]; + if ('function' != typeof a) throw new ie(u); + if (i && !s && 'wrapper' == Do(a)) var s = new mr([], !0); + } + for (r = s ? r : n; ++r < n; ) { + var l = Do((a = e[r])), + c = 'wrapper' == l ? jo(a) : o; + s = + c && + $o(c[0]) && + c[1] == (E | _ | w | k) && + !c[4].length && + 1 == c[9] + ? s[Do(c[0])].apply(s, c[3]) + : 1 == a.length && $o(a) + ? s[l]() + : s.thru(a); + } + return function() { + var t = arguments, + r = t[0]; + if (s && 1 == t.length && vs(r)) return s.plant(r).value(); + for (var i = 0, o = n ? e[i].apply(this, t) : r; ++i < n; ) + o = e[i].call(this, o); + return o; + }; + }); + } + function po(t, e, n, i, a, s, u, l, c, f) { + var d = e & E, + h = e & v, + p = e & y, + g = e & (_ | x), + m = e & A, + b = p ? o : co(t); + return function v() { + for (var y = arguments.length, _ = r(y), x = y; x--; ) + _[x] = arguments[x]; + if (g) + var w = Ro(v), + S = (function(t, e) { + for (var n = t.length, r = 0; n--; ) t[n] === e && ++r; + return r; + })(_, w); + if ( + (i && (_ = to(_, i, a, g)), + s && (_ = eo(_, s, u, g)), + (y -= S), + g && y < f) + ) { + var E = Cn(_, w); + return xo(t, e, po, v.placeholder, n, _, E, l, c, f - y); + } + var k = h ? n : this, + A = p ? k[t] : t; + return ( + (y = _.length), + l + ? (_ = (function(t, e) { + var n = t.length, + r = Wn(e.length, n), + i = no(t); + for (; r--; ) { + var a = e[r]; + t[r] = Wo(a, n) ? i[a] : o; + } + return t; + })(_, l)) + : m && y > 1 && _.reverse(), + d && c < y && (_.length = c), + this && this !== je && this instanceof v && (A = b || co(A)), + A.apply(k, _) + ); + }; + } + function go(t, e) { + return function(n, r) { + return (function(t, e, n, r) { + return ( + Xr(t, function(t, i, o) { + e(r, n(t), i, o); + }), + r + ); + })(n, t, e(r), {}); + }; + } + function mo(t, e) { + return function(n, r) { + var i; + if (n === o && r === o) return e; + if ((n !== o && (i = n), r !== o)) { + if (i === o) return r; + 'string' == typeof n || 'string' == typeof r + ? ((n = zi(n)), (r = zi(r))) + : ((n = Ri(n)), (r = Ri(r))), + (i = t(n, r)); + } + return i; + }; + } + function vo(t) { + return Po(function(e) { + return ( + (e = Je(e, vn(zo()))), + Si(function(n) { + var r = this; + return t(e, function(t) { + return qe(t, r, n); + }); + }) + ); + }); + } + function yo(t, e) { + var n = (e = e === o ? ' ' : zi(e)).length; + if (n < 2) return n ? wi(e, t) : e; + var r = wi(e, In(t / Mn(e))); + return kn(e) ? Yi(Ln(r), 0, t).join('') : r.slice(0, t); + } + function bo(t) { + return function(e, n, i) { + return ( + i && 'number' != typeof i && Xo(e, n, i) && (n = i = o), + (e = Vs(e)), + n === o ? ((n = e), (e = 0)) : (n = Vs(n)), + (function(t, e, n, i) { + for ( + var o = -1, a = qn(In((e - t) / (n || 1)), 0), s = r(a); + a--; + + ) + (s[i ? a : ++o] = t), (t += n); + return s; + })(e, n, (i = i === o ? (e < n ? 1 : -1) : Vs(i)), t) + ); + }; + } + function _o(t) { + return function(e, n) { + return ( + ('string' == typeof e && 'string' == typeof n) || + ((e = Hs(e)), (n = Hs(n))), + t(e, n) + ); + }; + } + function xo(t, e, n, r, i, a, s, u, l, c) { + var f = e & _; + (e |= f ? w : S), (e &= ~(f ? S : w)) & b || (e &= ~(v | y)); + var d = [ + t, + e, + i, + f ? a : o, + f ? s : o, + f ? o : a, + f ? o : s, + u, + l, + c + ], + h = n.apply(o, d); + return $o(t) && ra(h, d), (h.placeholder = r), aa(h, t, e); + } + function wo(t) { + var e = te[t]; + return function(t, n) { + if ( + ((t = Hs(t)), (n = null == n ? 0 : Wn(Bs(n), 292)) && Gn(t)) + ) { + var r = (qs(t) + 'e').split('e'); + return +( + (r = (qs(e(r[0] + 'e' + (+r[1] + n))) + 'e').split( + 'e' + ))[0] + + 'e' + + (+r[1] - n) + ); + } + return e(t); + }; + } + var So = + tr && 1 / On(new tr([, -0]))[1] == j + ? function(t) { + return new tr(t); + } + : Ru; + function Eo(t) { + return function(e) { + var n = Go(e); + return n == K + ? An(e) + : n == nt + ? Pn(e) + : (function(t, e) { + return Je(e, function(e) { + return [e, t[e]]; + }); + })(e, t(e)); + }; + } + function ko(t, e, n, i, a, s, l, c) { + var d = e & y; + if (!d && 'function' != typeof t) throw new ie(u); + var h = i ? i.length : 0; + if ( + (h || ((e &= ~(w | S)), (i = a = o)), + (l = l === o ? l : qn(Bs(l), 0)), + (c = c === o ? c : Bs(c)), + (h -= a ? a.length : 0), + e & S) + ) { + var p = i, + g = a; + i = a = o; + } + var m = d ? o : jo(t), + A = [t, e, n, i, a, p, g, s, l, c]; + if ( + (m && + (function(t, e) { + var n = t[1], + r = e[1], + i = n | r, + o = i < (v | y | E), + a = + (r == E && n == _) || + (r == E && n == k && t[7].length <= e[8]) || + (r == (E | k) && e[7].length <= e[8] && n == _); + if (!o && !a) return t; + r & v && ((t[2] = e[2]), (i |= n & v ? 0 : b)); + var s = e[3]; + if (s) { + var u = t[3]; + (t[3] = u ? to(u, s, e[4]) : s), + (t[4] = u ? Cn(t[3], f) : e[4]); + } + (s = e[5]) && + ((u = t[5]), + (t[5] = u ? eo(u, s, e[6]) : s), + (t[6] = u ? Cn(t[5], f) : e[6])); + (s = e[7]) && (t[7] = s); + r & E && (t[8] = null == t[8] ? e[8] : Wn(t[8], e[8])); + null == t[9] && (t[9] = e[9]); + (t[0] = e[0]), (t[1] = i); + })(A, m), + (t = A[0]), + (e = A[1]), + (n = A[2]), + (i = A[3]), + (a = A[4]), + !(c = A[9] = + A[9] === o ? (d ? 0 : t.length) : qn(A[9] - h, 0)) && + e & (_ | x) && + (e &= ~(_ | x)), + e && e != v) + ) + T = + e == _ || e == x + ? (function(t, e, n) { + var i = co(t); + return function a() { + for ( + var s = arguments.length, + u = r(s), + l = s, + c = Ro(a); + l--; + + ) + u[l] = arguments[l]; + var f = + s < 3 && u[0] !== c && u[s - 1] !== c + ? [] + : Cn(u, c); + return (s -= f.length) < n + ? xo(t, e, po, a.placeholder, o, u, f, o, o, n - s) + : qe( + this && this !== je && this instanceof a + ? i + : t, + this, + u + ); + }; + })(t, e, c) + : (e != w && e != (v | w)) || a.length + ? po.apply(o, A) + : (function(t, e, n, i) { + var o = e & v, + a = co(t); + return function e() { + for ( + var s = -1, + u = arguments.length, + l = -1, + c = i.length, + f = r(c + u), + d = + this && this !== je && this instanceof e + ? a + : t; + ++l < c; + + ) + f[l] = i[l]; + for (; u--; ) f[l++] = arguments[++s]; + return qe(d, o ? n : this, f); + }; + })(t, e, n, i); + else + var T = (function(t, e, n) { + var r = e & v, + i = co(t); + return function e() { + return (this && this !== je && this instanceof e + ? i + : t + ).apply(r ? n : this, arguments); + }; + })(t, e, n); + return aa((m ? Ti : ra)(T, A), t, e); + } + function Ao(t, e, n, r) { + return t === o || (hs(t, se[n]) && !ce.call(r, n)) ? e : t; + } + function To(t, e, n, r, i, a) { + return ( + Ts(t) && + Ts(e) && + (a.set(e, t), gi(t, e, o, To, a), a.delete(e)), + t + ); + } + function Co(t) { + return Ms(t) ? o : t; + } + function Oo(t, e, n, r, i, a) { + var s = n & g, + u = t.length, + l = e.length; + if (u != l && !(s && l > u)) return !1; + var c = a.get(t); + if (c && a.get(e)) return c == e; + var f = -1, + d = !0, + h = n & m ? new xr() : o; + for (a.set(t, e), a.set(e, t); ++f < u; ) { + var p = t[f], + v = e[f]; + if (r) var y = s ? r(v, p, f, e, t, a) : r(p, v, f, t, e, a); + if (y !== o) { + if (y) continue; + d = !1; + break; + } + if (h) { + if ( + !rn(e, function(t, e) { + if (!bn(h, e) && (p === t || i(p, t, n, r, a))) + return h.push(e); + }) + ) { + d = !1; + break; + } + } else if (p !== v && !i(p, v, n, r, a)) { + d = !1; + break; + } + } + return a.delete(t), a.delete(e), d; + } + function Po(t) { + return oa(ta(t, o, ya), t + ''); + } + function Mo(t) { + return Qr(t, iu, Vo); + } + function Lo(t) { + return Qr(t, ou, Bo); + } + var jo = rr + ? function(t) { + return rr.get(t); + } + : Ru; + function Do(t) { + for ( + var e = t.name + '', + n = ir[e], + r = ce.call(ir, e) ? n.length : 0; + r--; + + ) { + var i = n[r], + o = i.func; + if (null == o || o == t) return i.name; + } + return e; + } + function Ro(t) { + return (ce.call(hr, 'placeholder') ? hr : t).placeholder; + } + function zo() { + var t = hr.iteratee || Mu; + return ( + (t = t === Mu ? ui : t), + arguments.length ? t(arguments[0], arguments[1]) : t + ); + } + function No(t, e) { + var n = t.__data__; + return (function(t) { + var e = typeof t; + return 'string' == e || + 'number' == e || + 'symbol' == e || + 'boolean' == e + ? '__proto__' !== t + : null === t; + })(e) + ? n['string' == typeof e ? 'string' : 'hash'] + : n.map; + } + function Io(t) { + for (var e = iu(t), n = e.length; n--; ) { + var r = e[n], + i = t[r]; + e[n] = [r, i, Zo(i)]; + } + return e; + } + function Fo(t, e) { + var n = (function(t, e) { + return null == t ? o : t[e]; + })(t, e); + return si(n) ? n : o; + } + var Vo = Vn + ? function(t) { + return null == t + ? [] + : ((t = ee(t)), + Ke(Vn(t), function(e) { + return De.call(t, e); + })); + } + : Gu, + Bo = Vn + ? function(t) { + for (var e = []; t; ) tn(e, Vo(t)), (t = Me(t)); + return e; + } + : Gu, + Go = Zr; + function Ho(t, e, n) { + for (var r = -1, i = (e = Wi(e, t)).length, o = !1; ++r < i; ) { + var a = ca(e[r]); + if (!(o = null != t && n(t, a))) break; + t = t[a]; + } + return o || ++r != i + ? o + : !!(i = null == t ? 0 : t.length) && + As(i) && + Wo(a, i) && + (vs(t) || ms(t)); + } + function Uo(t) { + return 'function' != typeof t.constructor || Qo(t) + ? {} + : pr(Me(t)); + } + function qo(t) { + return vs(t) || ms(t) || !!(Ne && t && t[Ne]); + } + function Wo(t, e) { + var n = typeof t; + return ( + !!(e = null == e ? D : e) && + ('number' == n || ('symbol' != n && Yt.test(t))) && + t > -1 && + t % 1 == 0 && + t < e + ); + } + function Xo(t, e, n) { + if (!Ts(n)) return !1; + var r = typeof e; + return ( + !!('number' == r + ? bs(n) && Wo(e, n.length) + : 'string' == r && e in n) && hs(n[e], t) + ); + } + function Yo(t, e) { + if (vs(t)) return !1; + var n = typeof t; + return ( + !( + 'number' != n && + 'symbol' != n && + 'boolean' != n && + null != t && + !Rs(t) + ) || + (Pt.test(t) || !Ot.test(t) || (null != e && t in ee(e))) + ); + } + function $o(t) { + var e = Do(t), + n = hr[e]; + if ('function' != typeof n || !(e in vr.prototype)) return !1; + if (t === n) return !0; + var r = jo(n); + return !!r && t === r[0]; + } + ((Qn && Go(new Qn(new ArrayBuffer(1))) != lt) || + (Zn && Go(new Zn()) != K) || + (Jn && '[object Promise]' != Go(Jn.resolve())) || + (tr && Go(new tr()) != nt) || + (er && Go(new er()) != at)) && + (Go = function(t) { + var e = Zr(t), + n = e == J ? t.constructor : o, + r = n ? fa(n) : ''; + if (r) + switch (r) { + case or: + return lt; + case ar: + return K; + case sr: + return '[object Promise]'; + case ur: + return nt; + case lr: + return at; + } + return e; + }); + var Ko = ue ? Es : Hu; + function Qo(t) { + var e = t && t.constructor; + return t === (('function' == typeof e && e.prototype) || se); + } + function Zo(t) { + return t == t && !Ts(t); + } + function Jo(t, e) { + return function(n) { + return null != n && (n[t] === e && (e !== o || t in ee(n))); + }; + } + function ta(t, e, n) { + return ( + (e = qn(e === o ? t.length - 1 : e, 0)), + function() { + for ( + var i = arguments, + o = -1, + a = qn(i.length - e, 0), + s = r(a); + ++o < a; + + ) + s[o] = i[e + o]; + o = -1; + for (var u = r(e + 1); ++o < e; ) u[o] = i[o]; + return (u[e] = n(s)), qe(t, this, u); + } + ); + } + function ea(t, e) { + return e.length < 2 ? t : Kr(t, Pi(e, 0, -1)); + } + function na(t, e) { + if ( + ('constructor' !== e || 'function' != typeof t[e]) && + '__proto__' != e + ) + return t[e]; + } + var ra = sa(Ti), + ia = + Nn || + function(t, e) { + return je.setTimeout(t, e); + }, + oa = sa(Ci); + function aa(t, e, n) { + var r = e + ''; + return oa( + t, + (function(t, e) { + var n = e.length; + if (!n) return t; + var r = n - 1; + return ( + (e[r] = (n > 1 ? '& ' : '') + e[r]), + (e = e.join(n > 2 ? ', ' : ' ')), + t.replace(Nt, '{\n/* [wrapped with ' + e + '] */\n') + ); + })( + r, + (function(t, e) { + return ( + Xe(V, function(n) { + var r = '_.' + n[0]; + e & n[1] && !Qe(t, r) && t.push(r); + }), + t.sort() + ); + })( + (function(t) { + var e = t.match(It); + return e ? e[1].split(Ft) : []; + })(r), + n + ) + ) + ); + } + function sa(t) { + var e = 0, + n = 0; + return function() { + var r = Xn(), + i = P - (r - n); + if (((n = r), i > 0)) { + if (++e >= O) return arguments[0]; + } else e = 0; + return t.apply(o, arguments); + }; + } + function ua(t, e) { + var n = -1, + r = t.length, + i = r - 1; + for (e = e === o ? r : e; ++n < e; ) { + var a = xi(n, i), + s = t[a]; + (t[a] = t[n]), (t[n] = s); + } + return (t.length = e), t; + } + var la = (function(t) { + var e = ss(t, function(t) { + return n.size === c && n.clear(), t; }), - n.d(e, 'utcFormat', function() { - return Bv; + n = e.cache; + return e; + })(function(t) { + var e = []; + return ( + 46 === t.charCodeAt(0) && e.push(''), + t.replace(Mt, function(t, n, r, i) { + e.push(r ? i.replace(Bt, '$1') : n || t); }), - n.d(e, 'utcParse', function() { - return Gv; + e + ); + }); + function ca(t) { + if ('string' == typeof t || Rs(t)) return t; + var e = t + ''; + return '0' == e && 1 / t == -j ? '-0' : e; + } + function fa(t) { + if (null != t) { + try { + return le.call(t); + } catch (t) {} + try { + return t + ''; + } catch (t) {} + } + return ''; + } + function da(t) { + if (t instanceof vr) return t.clone(); + var e = new mr(t.__wrapped__, t.__chain__); + return ( + (e.__actions__ = no(t.__actions__)), + (e.__index__ = t.__index__), + (e.__values__ = t.__values__), + e + ); + } + var ha = Si(function(t, e) { + return _s(t) ? Ir(t, Ur(e, 1, _s, !0)) : []; + }), + pa = Si(function(t, e) { + var n = Sa(e); + return ( + _s(n) && (n = o), + _s(t) ? Ir(t, Ur(e, 1, _s, !0), zo(n, 2)) : [] + ); + }), + ga = Si(function(t, e) { + var n = Sa(e); + return ( + _s(n) && (n = o), _s(t) ? Ir(t, Ur(e, 1, _s, !0), o, n) : [] + ); + }); + function ma(t, e, n) { + var r = null == t ? 0 : t.length; + if (!r) return -1; + var i = null == n ? 0 : Bs(n); + return i < 0 && (i = qn(r + i, 0)), sn(t, zo(e, 3), i); + } + function va(t, e, n) { + var r = null == t ? 0 : t.length; + if (!r) return -1; + var i = r - 1; + return ( + n !== o && + ((i = Bs(n)), (i = n < 0 ? qn(r + i, 0) : Wn(i, r - 1))), + sn(t, zo(e, 3), i, !0) + ); + } + function ya(t) { + return (null == t ? 0 : t.length) ? Ur(t, 1) : []; + } + function ba(t) { + return t && t.length ? t[0] : o; + } + var _a = Si(function(t) { + var e = Je(t, Ui); + return e.length && e[0] === t[0] ? ni(e) : []; + }), + xa = Si(function(t) { + var e = Sa(t), + n = Je(t, Ui); + return ( + e === Sa(n) ? (e = o) : n.pop(), + n.length && n[0] === t[0] ? ni(n, zo(e, 2)) : [] + ); + }), + wa = Si(function(t) { + var e = Sa(t), + n = Je(t, Ui); + return ( + (e = 'function' == typeof e ? e : o) && n.pop(), + n.length && n[0] === t[0] ? ni(n, o, e) : [] + ); + }); + function Sa(t) { + var e = null == t ? 0 : t.length; + return e ? t[e - 1] : o; + } + var Ea = Si(ka); + function ka(t, e) { + return t && t.length && e && e.length ? bi(t, e) : t; + } + var Aa = Po(function(t, e) { + var n = null == t ? 0 : t.length, + r = jr(t, e); + return ( + _i( + t, + Je(e, function(t) { + return Wo(t, n) ? +t : t; + }).sort(Ji) + ), + r + ); + }); + function Ta(t) { + return null == t ? t : Kn.call(t); + } + var Ca = Si(function(t) { + return Ni(Ur(t, 1, _s, !0)); + }), + Oa = Si(function(t) { + var e = Sa(t); + return _s(e) && (e = o), Ni(Ur(t, 1, _s, !0), zo(e, 2)); + }), + Pa = Si(function(t) { + var e = Sa(t); + return ( + (e = 'function' == typeof e ? e : o), + Ni(Ur(t, 1, _s, !0), o, e) + ); + }); + function Ma(t) { + if (!t || !t.length) return []; + var e = 0; + return ( + (t = Ke(t, function(t) { + if (_s(t)) return (e = qn(t.length, e)), !0; + })), + mn(e, function(e) { + return Je(t, dn(e)); + }) + ); + } + function La(t, e) { + if (!t || !t.length) return []; + var n = Ma(t); + return null == e + ? n + : Je(n, function(t) { + return qe(e, o, t); + }); + } + var ja = Si(function(t, e) { + return _s(t) ? Ir(t, e) : []; + }), + Da = Si(function(t) { + return Gi(Ke(t, _s)); + }), + Ra = Si(function(t) { + var e = Sa(t); + return _s(e) && (e = o), Gi(Ke(t, _s), zo(e, 2)); + }), + za = Si(function(t) { + var e = Sa(t); + return ( + (e = 'function' == typeof e ? e : o), Gi(Ke(t, _s), o, e) + ); + }), + Na = Si(Ma); + var Ia = Si(function(t) { + var e = t.length, + n = e > 1 ? t[e - 1] : o; + return (n = 'function' == typeof n ? (t.pop(), n) : o), La(t, n); + }); + function Fa(t) { + var e = hr(t); + return (e.__chain__ = !0), e; + } + function Va(t, e) { + return e(t); + } + var Ba = Po(function(t) { + var e = t.length, + n = e ? t[0] : 0, + r = this.__wrapped__, + i = function(e) { + return jr(e, t); + }; + return !(e > 1 || this.__actions__.length) && + r instanceof vr && + Wo(n) + ? ((r = r.slice(n, +n + (e ? 1 : 0))).__actions__.push({ + func: Va, + args: [i], + thisArg: o + }), + new mr(r, this.__chain__).thru(function(t) { + return e && !t.length && t.push(o), t; + })) + : this.thru(i); + }); + var Ga = io(function(t, e, n) { + ce.call(t, n) ? ++t[n] : Lr(t, n, 1); + }); + var Ha = fo(ma), + Ua = fo(va); + function qa(t, e) { + return (vs(t) ? Xe : Fr)(t, zo(e, 3)); + } + function Wa(t, e) { + return (vs(t) ? Ye : Vr)(t, zo(e, 3)); + } + var Xa = io(function(t, e, n) { + ce.call(t, n) ? t[n].push(e) : Lr(t, n, [e]); + }); + var Ya = Si(function(t, e, n) { + var i = -1, + o = 'function' == typeof e, + a = bs(t) ? r(t.length) : []; + return ( + Fr(t, function(t) { + a[++i] = o ? qe(e, t, n) : ri(t, e, n); + }), + a + ); + }), + $a = io(function(t, e, n) { + Lr(t, n, e); + }); + function Ka(t, e) { + return (vs(t) ? Je : di)(t, zo(e, 3)); + } + var Qa = io( + function(t, e, n) { + t[n ? 0 : 1].push(e); + }, + function() { + return [[], []]; + } + ); + var Za = Si(function(t, e) { + if (null == t) return []; + var n = e.length; + return ( + n > 1 && Xo(t, e[0], e[1]) + ? (e = []) + : n > 2 && Xo(e[0], e[1], e[2]) && (e = [e[0]]), + vi(t, Ur(e, 1), []) + ); + }), + Ja = + zn || + function() { + return je.Date.now(); + }; + function ts(t, e, n) { + return ( + (e = n ? o : e), + (e = t && null == e ? t.length : e), + ko(t, E, o, o, o, o, e) + ); + } + function es(t, e) { + var n; + if ('function' != typeof e) throw new ie(u); + return ( + (t = Bs(t)), + function() { + return ( + --t > 0 && (n = e.apply(this, arguments)), + t <= 1 && (e = o), + n + ); + } + ); + } + var ns = Si(function(t, e, n) { + var r = v; + if (n.length) { + var i = Cn(n, Ro(ns)); + r |= w; + } + return ko(t, r, e, n, i); + }), + rs = Si(function(t, e, n) { + var r = v | y; + if (n.length) { + var i = Cn(n, Ro(rs)); + r |= w; + } + return ko(e, r, t, n, i); + }); + function is(t, e, n) { + var r, + i, + a, + s, + l, + c, + f = 0, + d = !1, + h = !1, + p = !0; + if ('function' != typeof t) throw new ie(u); + function g(e) { + var n = r, + a = i; + return (r = i = o), (f = e), (s = t.apply(a, n)); + } + function m(t) { + var n = t - c; + return c === o || n >= e || n < 0 || (h && t - f >= a); + } + function v() { + var t = Ja(); + if (m(t)) return y(t); + l = ia( + v, + (function(t) { + var n = e - (t - c); + return h ? Wn(n, a - (t - f)) : n; + })(t) + ); + } + function y(t) { + return (l = o), p && r ? g(t) : ((r = i = o), s); + } + function b() { + var t = Ja(), + n = m(t); + if (((r = arguments), (i = this), (c = t), n)) { + if (l === o) + return (function(t) { + return (f = t), (l = ia(v, e)), d ? g(t) : s; + })(c); + if (h) return $i(l), (l = ia(v, e)), g(c); + } + return l === o && (l = ia(v, e)), s; + } + return ( + (e = Hs(e) || 0), + Ts(n) && + ((d = !!n.leading), + (a = (h = 'maxWait' in n) ? qn(Hs(n.maxWait) || 0, e) : a), + (p = 'trailing' in n ? !!n.trailing : p)), + (b.cancel = function() { + l !== o && $i(l), (f = 0), (r = c = i = l = o); }), - n.d(e, 'timeFormatLocale', function() { - return zv; + (b.flush = function() { + return l === o ? s : y(Ja()); }), - n.d(e, 'isoFormat', function() { - return mw; + b + ); + } + var os = Si(function(t, e) { + return Nr(t, 1, e); + }), + as = Si(function(t, e, n) { + return Nr(t, Hs(e) || 0, n); + }); + function ss(t, e) { + if ( + 'function' != typeof t || + (null != e && 'function' != typeof e) + ) + throw new ie(u); + var n = function() { + var r = arguments, + i = e ? e.apply(this, r) : r[0], + o = n.cache; + if (o.has(i)) return o.get(i); + var a = t.apply(this, r); + return (n.cache = o.set(i, a) || o), a; + }; + return (n.cache = new (ss.Cache || _r)()), n; + } + function us(t) { + if ('function' != typeof t) throw new ie(u); + return function() { + var e = arguments; + switch (e.length) { + case 0: + return !t.call(this); + case 1: + return !t.call(this, e[0]); + case 2: + return !t.call(this, e[0], e[1]); + case 3: + return !t.call(this, e[0], e[1], e[2]); + } + return !t.apply(this, e); + }; + } + ss.Cache = _r; + var ls = Xi(function(t, e) { + var n = (e = + 1 == e.length && vs(e[0]) + ? Je(e[0], vn(zo())) + : Je(Ur(e, 1), vn(zo()))).length; + return Si(function(r) { + for (var i = -1, o = Wn(r.length, n); ++i < o; ) + r[i] = e[i].call(this, r[i]); + return qe(t, this, r); + }); + }), + cs = Si(function(t, e) { + var n = Cn(e, Ro(cs)); + return ko(t, w, o, e, n); + }), + fs = Si(function(t, e) { + var n = Cn(e, Ro(fs)); + return ko(t, S, o, e, n); + }), + ds = Po(function(t, e) { + return ko(t, k, o, o, o, e); + }); + function hs(t, e) { + return t === e || (t != t && e != e); + } + var ps = _o(Jr), + gs = _o(function(t, e) { + return t >= e; + }), + ms = ii( + (function() { + return arguments; + })() + ) + ? ii + : function(t) { + return ( + Cs(t) && ce.call(t, 'callee') && !De.call(t, 'callee') + ); + }, + vs = r.isArray, + ys = Fe + ? vn(Fe) + : function(t) { + return Cs(t) && Zr(t) == ut; + }; + function bs(t) { + return null != t && As(t.length) && !Es(t); + } + function _s(t) { + return Cs(t) && bs(t); + } + var xs = Bn || Hu, + ws = Ve + ? vn(Ve) + : function(t) { + return Cs(t) && Zr(t) == q; + }; + function Ss(t) { + if (!Cs(t)) return !1; + var e = Zr(t); + return ( + e == X || + e == W || + ('string' == typeof t.message && + 'string' == typeof t.name && + !Ms(t)) + ); + } + function Es(t) { + if (!Ts(t)) return !1; + var e = Zr(t); + return e == Y || e == $ || e == H || e == tt; + } + function ks(t) { + return 'number' == typeof t && t == Bs(t); + } + function As(t) { + return 'number' == typeof t && t > -1 && t % 1 == 0 && t <= D; + } + function Ts(t) { + var e = typeof t; + return null != t && ('object' == e || 'function' == e); + } + function Cs(t) { + return null != t && 'object' == typeof t; + } + var Os = Be + ? vn(Be) + : function(t) { + return Cs(t) && Go(t) == K; + }; + function Ps(t) { + return 'number' == typeof t || (Cs(t) && Zr(t) == Q); + } + function Ms(t) { + if (!Cs(t) || Zr(t) != J) return !1; + var e = Me(t); + if (null === e) return !0; + var n = ce.call(e, 'constructor') && e.constructor; + return ( + 'function' == typeof n && n instanceof n && le.call(n) == pe + ); + } + var Ls = Ge + ? vn(Ge) + : function(t) { + return Cs(t) && Zr(t) == et; + }; + var js = He + ? vn(He) + : function(t) { + return Cs(t) && Go(t) == nt; + }; + function Ds(t) { + return 'string' == typeof t || (!vs(t) && Cs(t) && Zr(t) == rt); + } + function Rs(t) { + return 'symbol' == typeof t || (Cs(t) && Zr(t) == it); + } + var zs = Ue + ? vn(Ue) + : function(t) { + return Cs(t) && As(t.length) && !!Ae[Zr(t)]; + }; + var Ns = _o(fi), + Is = _o(function(t, e) { + return t <= e; + }); + function Fs(t) { + if (!t) return []; + if (bs(t)) return Ds(t) ? Ln(t) : no(t); + if (Ie && t[Ie]) + return (function(t) { + for (var e, n = []; !(e = t.next()).done; ) n.push(e.value); + return n; + })(t[Ie]()); + var e = Go(t); + return (e == K ? An : e == nt ? On : hu)(t); + } + function Vs(t) { + return t + ? (t = Hs(t)) === j || t === -j + ? (t < 0 ? -1 : 1) * R + : t == t + ? t + : 0 + : 0 === t + ? t + : 0; + } + function Bs(t) { + var e = Vs(t), + n = e % 1; + return e == e ? (n ? e - n : e) : 0; + } + function Gs(t) { + return t ? Dr(Bs(t), 0, N) : 0; + } + function Hs(t) { + if ('number' == typeof t) return t; + if (Rs(t)) return z; + if (Ts(t)) { + var e = 'function' == typeof t.valueOf ? t.valueOf() : t; + t = Ts(e) ? e + '' : e; + } + if ('string' != typeof t) return 0 === t ? t : +t; + t = t.replace(Dt, ''); + var n = qt.test(t); + return n || Xt.test(t) + ? Pe(t.slice(2), n ? 2 : 8) + : Ut.test(t) + ? z + : +t; + } + function Us(t) { + return ro(t, ou(t)); + } + function qs(t) { + return null == t ? '' : zi(t); + } + var Ws = oo(function(t, e) { + if (Qo(e) || bs(e)) ro(e, iu(e), t); + else for (var n in e) ce.call(e, n) && Cr(t, n, e[n]); + }), + Xs = oo(function(t, e) { + ro(e, ou(e), t); + }), + Ys = oo(function(t, e, n, r) { + ro(e, ou(e), t, r); + }), + $s = oo(function(t, e, n, r) { + ro(e, iu(e), t, r); + }), + Ks = Po(jr); + var Qs = Si(function(t, e) { + t = ee(t); + var n = -1, + r = e.length, + i = r > 2 ? e[2] : o; + for (i && Xo(e[0], e[1], i) && (r = 1); ++n < r; ) + for ( + var a = e[n], s = ou(a), u = -1, l = s.length; + ++u < l; + + ) { + var c = s[u], + f = t[c]; + (f === o || (hs(f, se[c]) && !ce.call(t, c))) && + (t[c] = a[c]); + } + return t; + }), + Zs = Si(function(t) { + return t.push(o, To), qe(su, o, t); + }); + function Js(t, e, n) { + var r = null == t ? o : Kr(t, e); + return r === o ? n : r; + } + function tu(t, e) { + return null != t && Ho(t, e, ei); + } + var eu = go(function(t, e, n) { + null != e && + 'function' != typeof e.toString && + (e = he.call(e)), + (t[e] = n); + }, Tu(Pu)), + nu = go(function(t, e, n) { + null != e && + 'function' != typeof e.toString && + (e = he.call(e)), + ce.call(t, e) ? t[e].push(n) : (t[e] = [n]); + }, zo), + ru = Si(ri); + function iu(t) { + return bs(t) ? Sr(t) : li(t); + } + function ou(t) { + return bs(t) ? Sr(t, !0) : ci(t); + } + var au = oo(function(t, e, n) { + gi(t, e, n); + }), + su = oo(function(t, e, n, r) { + gi(t, e, n, r); + }), + uu = Po(function(t, e) { + var n = {}; + if (null == t) return n; + var r = !1; + (e = Je(e, function(e) { + return (e = Wi(e, t)), r || (r = e.length > 1), e; + })), + ro(t, Lo(t), n), + r && (n = Rr(n, d | h | p, Co)); + for (var i = e.length; i--; ) Ii(n, e[i]); + return n; + }); + var lu = Po(function(t, e) { + return null == t + ? {} + : (function(t, e) { + return yi(t, e, function(e, n) { + return tu(t, n); + }); + })(t, e); + }); + function cu(t, e) { + if (null == t) return {}; + var n = Je(Lo(t), function(t) { + return [t]; + }); + return ( + (e = zo(e)), + yi(t, n, function(t, n) { + return e(t, n[0]); + }) + ); + } + var fu = Eo(iu), + du = Eo(ou); + function hu(t) { + return null == t ? [] : yn(t, iu(t)); + } + var pu = lo(function(t, e, n) { + return (e = e.toLowerCase()), t + (n ? gu(e) : e); + }); + function gu(t) { + return Su(qs(t).toLowerCase()); + } + function mu(t) { + return (t = qs(t)) && t.replace($t, wn).replace(be, ''); + } + var vu = lo(function(t, e, n) { + return t + (n ? '-' : '') + e.toLowerCase(); + }), + yu = lo(function(t, e, n) { + return t + (n ? ' ' : '') + e.toLowerCase(); + }), + bu = uo('toLowerCase'); + var _u = lo(function(t, e, n) { + return t + (n ? '_' : '') + e.toLowerCase(); + }); + var xu = lo(function(t, e, n) { + return t + (n ? ' ' : '') + Su(e); + }); + var wu = lo(function(t, e, n) { + return t + (n ? ' ' : '') + e.toUpperCase(); + }), + Su = uo('toUpperCase'); + function Eu(t, e, n) { + return ( + (t = qs(t)), + (e = n ? o : e) === o + ? (function(t) { + return Se.test(t); + })(t) + ? (function(t) { + return t.match(xe) || []; + })(t) + : (function(t) { + return t.match(Vt) || []; + })(t) + : t.match(e) || [] + ); + } + var ku = Si(function(t, e) { + try { + return qe(t, o, e); + } catch (t) { + return Ss(t) ? t : new Zt(t); + } + }), + Au = Po(function(t, e) { + return ( + Xe(e, function(e) { + (e = ca(e)), Lr(t, e, ns(t[e], t)); + }), + t + ); + }); + function Tu(t) { + return function() { + return t; + }; + } + var Cu = ho(), + Ou = ho(!0); + function Pu(t) { + return t; + } + function Mu(t) { + return ui('function' == typeof t ? t : Rr(t, d)); + } + var Lu = Si(function(t, e) { + return function(n) { + return ri(n, t, e); + }; + }), + ju = Si(function(t, e) { + return function(n) { + return ri(t, n, e); + }; + }); + function Du(t, e, n) { + var r = iu(e), + i = $r(e, r); + null != n || + (Ts(e) && (i.length || !r.length)) || + ((n = e), (e = t), (t = this), (i = $r(e, iu(e)))); + var o = !(Ts(n) && 'chain' in n && !n.chain), + a = Es(t); + return ( + Xe(i, function(n) { + var r = e[n]; + (t[n] = r), + a && + (t.prototype[n] = function() { + var e = this.__chain__; + if (o || e) { + var n = t(this.__wrapped__), + i = (n.__actions__ = no(this.__actions__)); + return ( + i.push({ func: r, args: arguments, thisArg: t }), + (n.__chain__ = e), + n + ); + } + return r.apply(t, tn([this.value()], arguments)); + }); }), - n.d(e, 'isoParse', function() { - return yw; + t + ); + } + function Ru() {} + var zu = vo(Je), + Nu = vo($e), + Iu = vo(rn); + function Fu(t) { + return Yo(t) + ? dn(ca(t)) + : (function(t) { + return function(e) { + return Kr(e, t); + }; + })(t); + } + var Vu = bo(), + Bu = bo(!0); + function Gu() { + return []; + } + function Hu() { + return !1; + } + var Uu = mo(function(t, e) { + return t + e; + }, 0), + qu = wo('ceil'), + Wu = mo(function(t, e) { + return t / e; + }, 1), + Xu = wo('floor'); + var Yu, + $u = mo(function(t, e) { + return t * e; + }, 1), + Ku = wo('round'), + Qu = mo(function(t, e) { + return t - e; + }, 0); + return ( + (hr.after = function(t, e) { + if ('function' != typeof e) throw new ie(u); + return ( + (t = Bs(t)), + function() { + if (--t < 1) return e.apply(this, arguments); + } + ); + }), + (hr.ary = ts), + (hr.assign = Ws), + (hr.assignIn = Xs), + (hr.assignInWith = Ys), + (hr.assignWith = $s), + (hr.at = Ks), + (hr.before = es), + (hr.bind = ns), + (hr.bindAll = Au), + (hr.bindKey = rs), + (hr.castArray = function() { + if (!arguments.length) return []; + var t = arguments[0]; + return vs(t) ? t : [t]; + }), + (hr.chain = Fa), + (hr.chunk = function(t, e, n) { + e = (n ? Xo(t, e, n) : e === o) ? 1 : qn(Bs(e), 0); + var i = null == t ? 0 : t.length; + if (!i || e < 1) return []; + for (var a = 0, s = 0, u = r(In(i / e)); a < i; ) + u[s++] = Pi(t, a, (a += e)); + return u; + }), + (hr.compact = function(t) { + for ( + var e = -1, n = null == t ? 0 : t.length, r = 0, i = []; + ++e < n; + + ) { + var o = t[e]; + o && (i[r++] = o); + } + return i; + }), + (hr.concat = function() { + var t = arguments.length; + if (!t) return []; + for (var e = r(t - 1), n = arguments[0], i = t; i--; ) + e[i - 1] = arguments[i]; + return tn(vs(n) ? no(n) : [n], Ur(e, 1)); + }), + (hr.cond = function(t) { + var e = null == t ? 0 : t.length, + n = zo(); + return ( + (t = e + ? Je(t, function(t) { + if ('function' != typeof t[1]) throw new ie(u); + return [n(t[0]), t[1]]; + }) + : []), + Si(function(n) { + for (var r = -1; ++r < e; ) { + var i = t[r]; + if (qe(i[0], this, n)) return qe(i[1], this, n); + } + }) + ); + }), + (hr.conforms = function(t) { + return (function(t) { + var e = iu(t); + return function(n) { + return zr(n, t, e); + }; + })(Rr(t, d)); + }), + (hr.constant = Tu), + (hr.countBy = Ga), + (hr.create = function(t, e) { + var n = pr(t); + return null == e ? n : Mr(n, e); + }), + (hr.curry = function t(e, n, r) { + var i = ko(e, _, o, o, o, o, o, (n = r ? o : n)); + return (i.placeholder = t.placeholder), i; + }), + (hr.curryRight = function t(e, n, r) { + var i = ko(e, x, o, o, o, o, o, (n = r ? o : n)); + return (i.placeholder = t.placeholder), i; + }), + (hr.debounce = is), + (hr.defaults = Qs), + (hr.defaultsDeep = Zs), + (hr.defer = os), + (hr.delay = as), + (hr.difference = ha), + (hr.differenceBy = pa), + (hr.differenceWith = ga), + (hr.drop = function(t, e, n) { + var r = null == t ? 0 : t.length; + return r + ? Pi(t, (e = n || e === o ? 1 : Bs(e)) < 0 ? 0 : e, r) + : []; + }), + (hr.dropRight = function(t, e, n) { + var r = null == t ? 0 : t.length; + return r + ? Pi( + t, + 0, + (e = r - (e = n || e === o ? 1 : Bs(e))) < 0 ? 0 : e + ) + : []; + }), + (hr.dropRightWhile = function(t, e) { + return t && t.length ? Vi(t, zo(e, 3), !0, !0) : []; + }), + (hr.dropWhile = function(t, e) { + return t && t.length ? Vi(t, zo(e, 3), !0) : []; + }), + (hr.fill = function(t, e, n, r) { + var i = null == t ? 0 : t.length; + return i + ? (n && + 'number' != typeof n && + Xo(t, e, n) && + ((n = 0), (r = i)), + (function(t, e, n, r) { + var i = t.length; + for ( + (n = Bs(n)) < 0 && (n = -n > i ? 0 : i + n), + (r = r === o || r > i ? i : Bs(r)) < 0 && (r += i), + r = n > r ? 0 : Gs(r); + n < r; + + ) + t[n++] = e; + return t; + })(t, e, n, r)) + : []; + }), + (hr.filter = function(t, e) { + return (vs(t) ? Ke : Hr)(t, zo(e, 3)); + }), + (hr.flatMap = function(t, e) { + return Ur(Ka(t, e), 1); + }), + (hr.flatMapDeep = function(t, e) { + return Ur(Ka(t, e), j); + }), + (hr.flatMapDepth = function(t, e, n) { + return (n = n === o ? 1 : Bs(n)), Ur(Ka(t, e), n); + }), + (hr.flatten = ya), + (hr.flattenDeep = function(t) { + return (null == t ? 0 : t.length) ? Ur(t, j) : []; + }), + (hr.flattenDepth = function(t, e) { + return (null == t + ? 0 + : t.length) + ? Ur(t, (e = e === o ? 1 : Bs(e))) + : []; + }), + (hr.flip = function(t) { + return ko(t, A); + }), + (hr.flow = Cu), + (hr.flowRight = Ou), + (hr.fromPairs = function(t) { + for ( + var e = -1, n = null == t ? 0 : t.length, r = {}; + ++e < n; + + ) { + var i = t[e]; + r[i[0]] = i[1]; + } + return r; + }), + (hr.functions = function(t) { + return null == t ? [] : $r(t, iu(t)); + }), + (hr.functionsIn = function(t) { + return null == t ? [] : $r(t, ou(t)); + }), + (hr.groupBy = Xa), + (hr.initial = function(t) { + return (null == t ? 0 : t.length) ? Pi(t, 0, -1) : []; + }), + (hr.intersection = _a), + (hr.intersectionBy = xa), + (hr.intersectionWith = wa), + (hr.invert = eu), + (hr.invertBy = nu), + (hr.invokeMap = Ya), + (hr.iteratee = Mu), + (hr.keyBy = $a), + (hr.keys = iu), + (hr.keysIn = ou), + (hr.map = Ka), + (hr.mapKeys = function(t, e) { + var n = {}; + return ( + (e = zo(e, 3)), + Xr(t, function(t, r, i) { + Lr(n, e(t, r, i), t); + }), + n + ); + }), + (hr.mapValues = function(t, e) { + var n = {}; + return ( + (e = zo(e, 3)), + Xr(t, function(t, r, i) { + Lr(n, r, e(t, r, i)); + }), + n + ); + }), + (hr.matches = function(t) { + return hi(Rr(t, d)); + }), + (hr.matchesProperty = function(t, e) { + return pi(t, Rr(e, d)); + }), + (hr.memoize = ss), + (hr.merge = au), + (hr.mergeWith = su), + (hr.method = Lu), + (hr.methodOf = ju), + (hr.mixin = Du), + (hr.negate = us), + (hr.nthArg = function(t) { + return ( + (t = Bs(t)), + Si(function(e) { + return mi(e, t); + }) + ); + }), + (hr.omit = uu), + (hr.omitBy = function(t, e) { + return cu(t, us(zo(e))); + }), + (hr.once = function(t) { + return es(2, t); + }), + (hr.orderBy = function(t, e, n, r) { + return null == t + ? [] + : (vs(e) || (e = null == e ? [] : [e]), + vs((n = r ? o : n)) || (n = null == n ? [] : [n]), + vi(t, e, n)); + }), + (hr.over = zu), + (hr.overArgs = ls), + (hr.overEvery = Nu), + (hr.overSome = Iu), + (hr.partial = cs), + (hr.partialRight = fs), + (hr.partition = Qa), + (hr.pick = lu), + (hr.pickBy = cu), + (hr.property = Fu), + (hr.propertyOf = function(t) { + return function(e) { + return null == t ? o : Kr(t, e); + }; + }), + (hr.pull = Ea), + (hr.pullAll = ka), + (hr.pullAllBy = function(t, e, n) { + return t && t.length && e && e.length ? bi(t, e, zo(n, 2)) : t; + }), + (hr.pullAllWith = function(t, e, n) { + return t && t.length && e && e.length ? bi(t, e, o, n) : t; + }), + (hr.pullAt = Aa), + (hr.range = Vu), + (hr.rangeRight = Bu), + (hr.rearg = ds), + (hr.reject = function(t, e) { + return (vs(t) ? Ke : Hr)(t, us(zo(e, 3))); + }), + (hr.remove = function(t, e) { + var n = []; + if (!t || !t.length) return n; + var r = -1, + i = [], + o = t.length; + for (e = zo(e, 3); ++r < o; ) { + var a = t[r]; + e(a, r, t) && (n.push(a), i.push(r)); + } + return _i(t, i), n; + }), + (hr.rest = function(t, e) { + if ('function' != typeof t) throw new ie(u); + return Si(t, (e = e === o ? e : Bs(e))); + }), + (hr.reverse = Ta), + (hr.sampleSize = function(t, e, n) { + return ( + (e = (n ? Xo(t, e, n) : e === o) ? 1 : Bs(e)), + (vs(t) ? kr : ki)(t, e) + ); + }), + (hr.set = function(t, e, n) { + return null == t ? t : Ai(t, e, n); + }), + (hr.setWith = function(t, e, n, r) { + return ( + (r = 'function' == typeof r ? r : o), + null == t ? t : Ai(t, e, n, r) + ); + }), + (hr.shuffle = function(t) { + return (vs(t) ? Ar : Oi)(t); + }), + (hr.slice = function(t, e, n) { + var r = null == t ? 0 : t.length; + return r + ? (n && 'number' != typeof n && Xo(t, e, n) + ? ((e = 0), (n = r)) + : ((e = null == e ? 0 : Bs(e)), + (n = n === o ? r : Bs(n))), + Pi(t, e, n)) + : []; + }), + (hr.sortBy = Za), + (hr.sortedUniq = function(t) { + return t && t.length ? Di(t) : []; + }), + (hr.sortedUniqBy = function(t, e) { + return t && t.length ? Di(t, zo(e, 2)) : []; + }), + (hr.split = function(t, e, n) { + return ( + n && 'number' != typeof n && Xo(t, e, n) && (e = n = o), + (n = n === o ? N : n >>> 0) + ? (t = qs(t)) && + ('string' == typeof e || (null != e && !Ls(e))) && + !(e = zi(e)) && + kn(t) + ? Yi(Ln(t), 0, n) + : t.split(e, n) + : [] + ); + }), + (hr.spread = function(t, e) { + if ('function' != typeof t) throw new ie(u); + return ( + (e = null == e ? 0 : qn(Bs(e), 0)), + Si(function(n) { + var r = n[e], + i = Yi(n, 0, e); + return r && tn(i, r), qe(t, this, i); + }) + ); + }), + (hr.tail = function(t) { + var e = null == t ? 0 : t.length; + return e ? Pi(t, 1, e) : []; + }), + (hr.take = function(t, e, n) { + return t && t.length + ? Pi(t, 0, (e = n || e === o ? 1 : Bs(e)) < 0 ? 0 : e) + : []; + }), + (hr.takeRight = function(t, e, n) { + var r = null == t ? 0 : t.length; + return r + ? Pi( + t, + (e = r - (e = n || e === o ? 1 : Bs(e))) < 0 ? 0 : e, + r + ) + : []; + }), + (hr.takeRightWhile = function(t, e) { + return t && t.length ? Vi(t, zo(e, 3), !1, !0) : []; + }), + (hr.takeWhile = function(t, e) { + return t && t.length ? Vi(t, zo(e, 3)) : []; + }), + (hr.tap = function(t, e) { + return e(t), t; + }), + (hr.throttle = function(t, e, n) { + var r = !0, + i = !0; + if ('function' != typeof t) throw new ie(u); + return ( + Ts(n) && + ((r = 'leading' in n ? !!n.leading : r), + (i = 'trailing' in n ? !!n.trailing : i)), + is(t, e, { leading: r, maxWait: e, trailing: i }) + ); + }), + (hr.thru = Va), + (hr.toArray = Fs), + (hr.toPairs = fu), + (hr.toPairsIn = du), + (hr.toPath = function(t) { + return vs(t) ? Je(t, ca) : Rs(t) ? [t] : no(la(qs(t))); + }), + (hr.toPlainObject = Us), + (hr.transform = function(t, e, n) { + var r = vs(t), + i = r || xs(t) || zs(t); + if (((e = zo(e, 4)), null == n)) { + var o = t && t.constructor; + n = i ? (r ? new o() : []) : Ts(t) && Es(o) ? pr(Me(t)) : {}; + } + return ( + (i ? Xe : Xr)(t, function(t, r, i) { + return e(n, t, r, i); + }), + n + ); + }), + (hr.unary = function(t) { + return ts(t, 1); + }), + (hr.union = Ca), + (hr.unionBy = Oa), + (hr.unionWith = Pa), + (hr.uniq = function(t) { + return t && t.length ? Ni(t) : []; + }), + (hr.uniqBy = function(t, e) { + return t && t.length ? Ni(t, zo(e, 2)) : []; + }), + (hr.uniqWith = function(t, e) { + return ( + (e = 'function' == typeof e ? e : o), + t && t.length ? Ni(t, o, e) : [] + ); + }), + (hr.unset = function(t, e) { + return null == t || Ii(t, e); + }), + (hr.unzip = Ma), + (hr.unzipWith = La), + (hr.update = function(t, e, n) { + return null == t ? t : Fi(t, e, qi(n)); + }), + (hr.updateWith = function(t, e, n, r) { + return ( + (r = 'function' == typeof r ? r : o), + null == t ? t : Fi(t, e, qi(n), r) + ); + }), + (hr.values = hu), + (hr.valuesIn = function(t) { + return null == t ? [] : yn(t, ou(t)); + }), + (hr.without = ja), + (hr.words = Eu), + (hr.wrap = function(t, e) { + return cs(qi(e), t); + }), + (hr.xor = Da), + (hr.xorBy = Ra), + (hr.xorWith = za), + (hr.zip = Na), + (hr.zipObject = function(t, e) { + return Hi(t || [], e || [], Cr); + }), + (hr.zipObjectDeep = function(t, e) { + return Hi(t || [], e || [], Ai); + }), + (hr.zipWith = Ia), + (hr.entries = fu), + (hr.entriesIn = du), + (hr.extend = Xs), + (hr.extendWith = Ys), + Du(hr, hr), + (hr.add = Uu), + (hr.attempt = ku), + (hr.camelCase = pu), + (hr.capitalize = gu), + (hr.ceil = qu), + (hr.clamp = function(t, e, n) { + return ( + n === o && ((n = e), (e = o)), + n !== o && (n = (n = Hs(n)) == n ? n : 0), + e !== o && (e = (e = Hs(e)) == e ? e : 0), + Dr(Hs(t), e, n) + ); + }), + (hr.clone = function(t) { + return Rr(t, p); + }), + (hr.cloneDeep = function(t) { + return Rr(t, d | p); + }), + (hr.cloneDeepWith = function(t, e) { + return Rr(t, d | p, (e = 'function' == typeof e ? e : o)); + }), + (hr.cloneWith = function(t, e) { + return Rr(t, p, (e = 'function' == typeof e ? e : o)); + }), + (hr.conformsTo = function(t, e) { + return null == e || zr(t, e, iu(e)); + }), + (hr.deburr = mu), + (hr.defaultTo = function(t, e) { + return null == t || t != t ? e : t; + }), + (hr.divide = Wu), + (hr.endsWith = function(t, e, n) { + (t = qs(t)), (e = zi(e)); + var r = t.length, + i = (n = n === o ? r : Dr(Bs(n), 0, r)); + return (n -= e.length) >= 0 && t.slice(n, i) == e; + }), + (hr.eq = hs), + (hr.escape = function(t) { + return (t = qs(t)) && kt.test(t) ? t.replace(St, Sn) : t; + }), + (hr.escapeRegExp = function(t) { + return (t = qs(t)) && jt.test(t) ? t.replace(Lt, '\\$&') : t; + }), + (hr.every = function(t, e, n) { + var r = vs(t) ? $e : Br; + return n && Xo(t, e, n) && (e = o), r(t, zo(e, 3)); + }), + (hr.find = Ha), + (hr.findIndex = ma), + (hr.findKey = function(t, e) { + return an(t, zo(e, 3), Xr); + }), + (hr.findLast = Ua), + (hr.findLastIndex = va), + (hr.findLastKey = function(t, e) { + return an(t, zo(e, 3), Yr); + }), + (hr.floor = Xu), + (hr.forEach = qa), + (hr.forEachRight = Wa), + (hr.forIn = function(t, e) { + return null == t ? t : qr(t, zo(e, 3), ou); + }), + (hr.forInRight = function(t, e) { + return null == t ? t : Wr(t, zo(e, 3), ou); + }), + (hr.forOwn = function(t, e) { + return t && Xr(t, zo(e, 3)); + }), + (hr.forOwnRight = function(t, e) { + return t && Yr(t, zo(e, 3)); + }), + (hr.get = Js), + (hr.gt = ps), + (hr.gte = gs), + (hr.has = function(t, e) { + return null != t && Ho(t, e, ti); + }), + (hr.hasIn = tu), + (hr.head = ba), + (hr.identity = Pu), + (hr.includes = function(t, e, n, r) { + (t = bs(t) ? t : hu(t)), (n = n && !r ? Bs(n) : 0); + var i = t.length; + return ( + n < 0 && (n = qn(i + n, 0)), + Ds(t) + ? n <= i && t.indexOf(e, n) > -1 + : !!i && un(t, e, n) > -1 + ); + }), + (hr.indexOf = function(t, e, n) { + var r = null == t ? 0 : t.length; + if (!r) return -1; + var i = null == n ? 0 : Bs(n); + return i < 0 && (i = qn(r + i, 0)), un(t, e, i); + }), + (hr.inRange = function(t, e, n) { + return ( + (e = Vs(e)), + n === o ? ((n = e), (e = 0)) : (n = Vs(n)), + (function(t, e, n) { + return t >= Wn(e, n) && t < qn(e, n); + })((t = Hs(t)), e, n) + ); + }), + (hr.invoke = ru), + (hr.isArguments = ms), + (hr.isArray = vs), + (hr.isArrayBuffer = ys), + (hr.isArrayLike = bs), + (hr.isArrayLikeObject = _s), + (hr.isBoolean = function(t) { + return !0 === t || !1 === t || (Cs(t) && Zr(t) == U); + }), + (hr.isBuffer = xs), + (hr.isDate = ws), + (hr.isElement = function(t) { + return Cs(t) && 1 === t.nodeType && !Ms(t); + }), + (hr.isEmpty = function(t) { + if (null == t) return !0; + if ( + bs(t) && + (vs(t) || + 'string' == typeof t || + 'function' == typeof t.splice || + xs(t) || + zs(t) || + ms(t)) + ) + return !t.length; + var e = Go(t); + if (e == K || e == nt) return !t.size; + if (Qo(t)) return !li(t).length; + for (var n in t) if (ce.call(t, n)) return !1; + return !0; + }), + (hr.isEqual = function(t, e) { + return oi(t, e); + }), + (hr.isEqualWith = function(t, e, n) { + var r = (n = 'function' == typeof n ? n : o) ? n(t, e) : o; + return r === o ? oi(t, e, o, n) : !!r; + }), + (hr.isError = Ss), + (hr.isFinite = function(t) { + return 'number' == typeof t && Gn(t); + }), + (hr.isFunction = Es), + (hr.isInteger = ks), + (hr.isLength = As), + (hr.isMap = Os), + (hr.isMatch = function(t, e) { + return t === e || ai(t, e, Io(e)); + }), + (hr.isMatchWith = function(t, e, n) { + return (n = 'function' == typeof n ? n : o), ai(t, e, Io(e), n); + }), + (hr.isNaN = function(t) { + return Ps(t) && t != +t; + }), + (hr.isNative = function(t) { + if (Ko(t)) throw new Zt(s); + return si(t); + }), + (hr.isNil = function(t) { + return null == t; + }), + (hr.isNull = function(t) { + return null === t; + }), + (hr.isNumber = Ps), + (hr.isObject = Ts), + (hr.isObjectLike = Cs), + (hr.isPlainObject = Ms), + (hr.isRegExp = Ls), + (hr.isSafeInteger = function(t) { + return ks(t) && t >= -D && t <= D; + }), + (hr.isSet = js), + (hr.isString = Ds), + (hr.isSymbol = Rs), + (hr.isTypedArray = zs), + (hr.isUndefined = function(t) { + return t === o; + }), + (hr.isWeakMap = function(t) { + return Cs(t) && Go(t) == at; + }), + (hr.isWeakSet = function(t) { + return Cs(t) && Zr(t) == st; + }), + (hr.join = function(t, e) { + return null == t ? '' : Hn.call(t, e); + }), + (hr.kebabCase = vu), + (hr.last = Sa), + (hr.lastIndexOf = function(t, e, n) { + var r = null == t ? 0 : t.length; + if (!r) return -1; + var i = r; + return ( + n !== o && + (i = (i = Bs(n)) < 0 ? qn(r + i, 0) : Wn(i, r - 1)), + e == e + ? (function(t, e, n) { + for (var r = n + 1; r--; ) if (t[r] === e) return r; + return r; + })(t, e, i) + : sn(t, cn, i, !0) + ); + }), + (hr.lowerCase = yu), + (hr.lowerFirst = bu), + (hr.lt = Ns), + (hr.lte = Is), + (hr.max = function(t) { + return t && t.length ? Gr(t, Pu, Jr) : o; + }), + (hr.maxBy = function(t, e) { + return t && t.length ? Gr(t, zo(e, 2), Jr) : o; + }), + (hr.mean = function(t) { + return fn(t, Pu); + }), + (hr.meanBy = function(t, e) { + return fn(t, zo(e, 2)); + }), + (hr.min = function(t) { + return t && t.length ? Gr(t, Pu, fi) : o; + }), + (hr.minBy = function(t, e) { + return t && t.length ? Gr(t, zo(e, 2), fi) : o; + }), + (hr.stubArray = Gu), + (hr.stubFalse = Hu), + (hr.stubObject = function() { + return {}; + }), + (hr.stubString = function() { + return ''; + }), + (hr.stubTrue = function() { + return !0; + }), + (hr.multiply = $u), + (hr.nth = function(t, e) { + return t && t.length ? mi(t, Bs(e)) : o; + }), + (hr.noConflict = function() { + return je._ === this && (je._ = ge), this; + }), + (hr.noop = Ru), + (hr.now = Ja), + (hr.pad = function(t, e, n) { + t = qs(t); + var r = (e = Bs(e)) ? Mn(t) : 0; + if (!e || r >= e) return t; + var i = (e - r) / 2; + return yo(Fn(i), n) + t + yo(In(i), n); + }), + (hr.padEnd = function(t, e, n) { + t = qs(t); + var r = (e = Bs(e)) ? Mn(t) : 0; + return e && r < e ? t + yo(e - r, n) : t; + }), + (hr.padStart = function(t, e, n) { + t = qs(t); + var r = (e = Bs(e)) ? Mn(t) : 0; + return e && r < e ? yo(e - r, n) + t : t; + }), + (hr.parseInt = function(t, e, n) { + return ( + n || null == e ? (e = 0) : e && (e = +e), + Yn(qs(t).replace(Rt, ''), e || 0) + ); + }), + (hr.random = function(t, e, n) { + if ( + (n && 'boolean' != typeof n && Xo(t, e, n) && (e = n = o), + n === o && + ('boolean' == typeof e + ? ((n = e), (e = o)) + : 'boolean' == typeof t && ((n = t), (t = o))), + t === o && e === o + ? ((t = 0), (e = 1)) + : ((t = Vs(t)), e === o ? ((e = t), (t = 0)) : (e = Vs(e))), + t > e) + ) { + var r = t; + (t = e), (e = r); + } + if (n || t % 1 || e % 1) { + var i = $n(); + return Wn( + t + i * (e - t + Oe('1e-' + ((i + '').length - 1))), + e + ); + } + return xi(t, e); + }), + (hr.reduce = function(t, e, n) { + var r = vs(t) ? en : pn, + i = arguments.length < 3; + return r(t, zo(e, 4), n, i, Fr); + }), + (hr.reduceRight = function(t, e, n) { + var r = vs(t) ? nn : pn, + i = arguments.length < 3; + return r(t, zo(e, 4), n, i, Vr); + }), + (hr.repeat = function(t, e, n) { + return ( + (e = (n ? Xo(t, e, n) : e === o) ? 1 : Bs(e)), wi(qs(t), e) + ); + }), + (hr.replace = function() { + var t = arguments, + e = qs(t[0]); + return t.length < 3 ? e : e.replace(t[1], t[2]); + }), + (hr.result = function(t, e, n) { + var r = -1, + i = (e = Wi(e, t)).length; + for (i || ((i = 1), (t = o)); ++r < i; ) { + var a = null == t ? o : t[ca(e[r])]; + a === o && ((r = i), (a = n)), (t = Es(a) ? a.call(t) : a); + } + return t; + }), + (hr.round = Ku), + (hr.runInContext = t), + (hr.sample = function(t) { + return (vs(t) ? Er : Ei)(t); + }), + (hr.size = function(t) { + if (null == t) return 0; + if (bs(t)) return Ds(t) ? Mn(t) : t.length; + var e = Go(t); + return e == K || e == nt ? t.size : li(t).length; + }), + (hr.snakeCase = _u), + (hr.some = function(t, e, n) { + var r = vs(t) ? rn : Mi; + return n && Xo(t, e, n) && (e = o), r(t, zo(e, 3)); + }), + (hr.sortedIndex = function(t, e) { + return Li(t, e); + }), + (hr.sortedIndexBy = function(t, e, n) { + return ji(t, e, zo(n, 2)); + }), + (hr.sortedIndexOf = function(t, e) { + var n = null == t ? 0 : t.length; + if (n) { + var r = Li(t, e); + if (r < n && hs(t[r], e)) return r; + } + return -1; + }), + (hr.sortedLastIndex = function(t, e) { + return Li(t, e, !0); + }), + (hr.sortedLastIndexBy = function(t, e, n) { + return ji(t, e, zo(n, 2), !0); + }), + (hr.sortedLastIndexOf = function(t, e) { + if (null == t ? 0 : t.length) { + var n = Li(t, e, !0) - 1; + if (hs(t[n], e)) return n; + } + return -1; + }), + (hr.startCase = xu), + (hr.startsWith = function(t, e, n) { + return ( + (t = qs(t)), + (n = null == n ? 0 : Dr(Bs(n), 0, t.length)), + (e = zi(e)), + t.slice(n, n + e.length) == e + ); + }), + (hr.subtract = Qu), + (hr.sum = function(t) { + return t && t.length ? gn(t, Pu) : 0; + }), + (hr.sumBy = function(t, e) { + return t && t.length ? gn(t, zo(e, 2)) : 0; + }), + (hr.template = function(t, e, n) { + var r = hr.templateSettings; + n && Xo(t, e, n) && (e = o), + (t = qs(t)), + (e = Ys({}, e, r, Ao)); + var i, + a, + s = Ys({}, e.imports, r.imports, Ao), + u = iu(s), + l = yn(s, u), + c = 0, + f = e.interpolate || Kt, + d = "__p += '", + h = ne( + (e.escape || Kt).source + + '|' + + f.source + + '|' + + (f === Ct ? Gt : Kt).source + + '|' + + (e.evaluate || Kt).source + + '|$', + 'g' + ), + p = + '//# sourceURL=' + + (ce.call(e, 'sourceURL') + ? (e.sourceURL + '').replace(/[\r\n]/g, ' ') + : 'lodash.templateSources[' + ++ke + ']') + + '\n'; + t.replace(h, function(e, n, r, o, s, u) { + return ( + r || (r = o), + (d += t.slice(c, u).replace(Qt, En)), + n && ((i = !0), (d += "' +\n__e(" + n + ") +\n'")), + s && ((a = !0), (d += "';\n" + s + ";\n__p += '")), + r && + (d += + "' +\n((__t = (" + r + ")) == null ? '' : __t) +\n'"), + (c = u + e.length), + e + ); }), - n.d(e, 'now', function() { - return Xr; + (d += "';\n"); + var g = ce.call(e, 'variable') && e.variable; + g || (d = 'with (obj) {\n' + d + '\n}\n'), + (d = (a ? d.replace(bt, '') : d) + .replace(_t, '$1') + .replace(xt, '$1;')), + (d = + 'function(' + + (g || 'obj') + + ') {\n' + + (g ? '' : 'obj || (obj = {});\n') + + "var __t, __p = ''" + + (i ? ', __e = _.escape' : '') + + (a + ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n" + : ';\n') + + d + + 'return __p\n}'); + var m = ku(function() { + return Jt(u, p + 'return ' + d).apply(o, l); + }); + if (((m.source = d), Ss(m))) throw m; + return m; + }), + (hr.times = function(t, e) { + if ((t = Bs(t)) < 1 || t > D) return []; + var n = N, + r = Wn(t, N); + (e = zo(e)), (t -= N); + for (var i = mn(r, e); ++n < t; ) e(n); + return i; + }), + (hr.toFinite = Vs), + (hr.toInteger = Bs), + (hr.toLength = Gs), + (hr.toLower = function(t) { + return qs(t).toLowerCase(); + }), + (hr.toNumber = Hs), + (hr.toSafeInteger = function(t) { + return t ? Dr(Bs(t), -D, D) : 0 === t ? t : 0; + }), + (hr.toString = qs), + (hr.toUpper = function(t) { + return qs(t).toUpperCase(); + }), + (hr.trim = function(t, e, n) { + if ((t = qs(t)) && (n || e === o)) return t.replace(Dt, ''); + if (!t || !(e = zi(e))) return t; + var r = Ln(t), + i = Ln(e); + return Yi(r, _n(r, i), xn(r, i) + 1).join(''); + }), + (hr.trimEnd = function(t, e, n) { + if ((t = qs(t)) && (n || e === o)) return t.replace(zt, ''); + if (!t || !(e = zi(e))) return t; + var r = Ln(t); + return Yi(r, 0, xn(r, Ln(e)) + 1).join(''); + }), + (hr.trimStart = function(t, e, n) { + if ((t = qs(t)) && (n || e === o)) return t.replace(Rt, ''); + if (!t || !(e = zi(e))) return t; + var r = Ln(t); + return Yi(r, _n(r, Ln(e))).join(''); + }), + (hr.truncate = function(t, e) { + var n = T, + r = C; + if (Ts(e)) { + var i = 'separator' in e ? e.separator : i; + (n = 'length' in e ? Bs(e.length) : n), + (r = 'omission' in e ? zi(e.omission) : r); + } + var a = (t = qs(t)).length; + if (kn(t)) { + var s = Ln(t); + a = s.length; + } + if (n >= a) return t; + var u = n - Mn(r); + if (u < 1) return r; + var l = s ? Yi(s, 0, u).join('') : t.slice(0, u); + if (i === o) return l + r; + if ((s && (u += l.length - u), Ls(i))) { + if (t.slice(u).search(i)) { + var c, + f = l; + for ( + i.global || (i = ne(i.source, qs(Ht.exec(i)) + 'g')), + i.lastIndex = 0; + (c = i.exec(f)); + + ) + var d = c.index; + l = l.slice(0, d === o ? u : d); + } + } else if (t.indexOf(zi(i), u) != u) { + var h = l.lastIndexOf(i); + h > -1 && (l = l.slice(0, h)); + } + return l + r; + }), + (hr.unescape = function(t) { + return (t = qs(t)) && Et.test(t) ? t.replace(wt, jn) : t; + }), + (hr.uniqueId = function(t) { + var e = ++fe; + return qs(t) + e; + }), + (hr.upperCase = wu), + (hr.upperFirst = Su), + (hr.each = qa), + (hr.eachRight = Wa), + (hr.first = ba), + Du( + hr, + ((Yu = {}), + Xr(hr, function(t, e) { + ce.call(hr.prototype, e) || (Yu[e] = t); + }), + Yu), + { chain: !1 } + ), + (hr.VERSION = '4.17.15'), + Xe( + [ + 'bind', + 'bindKey', + 'curry', + 'curryRight', + 'partial', + 'partialRight' + ], + function(t) { + hr[t].placeholder = hr; + } + ), + Xe(['drop', 'take'], function(t, e) { + (vr.prototype[t] = function(n) { + n = n === o ? 1 : qn(Bs(n), 0); + var r = this.__filtered__ && !e ? new vr(this) : this.clone(); + return ( + r.__filtered__ + ? (r.__takeCount__ = Wn(n, r.__takeCount__)) + : r.__views__.push({ + size: Wn(n, N), + type: t + (r.__dir__ < 0 ? 'Right' : '') + }), + r + ); }), - n.d(e, 'timer', function() { - return Qr; + (vr.prototype[t + 'Right'] = function(e) { + return this.reverse() + [t](e) + .reverse(); + }); + }), + Xe(['filter', 'map', 'takeWhile'], function(t, e) { + var n = e + 1, + r = n == M || 3 == n; + vr.prototype[t] = function(t) { + var e = this.clone(); + return ( + e.__iteratees__.push({ iteratee: zo(t, 3), type: n }), + (e.__filtered__ = e.__filtered__ || r), + e + ); + }; + }), + Xe(['head', 'last'], function(t, e) { + var n = 'take' + (e ? 'Right' : ''); + vr.prototype[t] = function() { + return this[n](1).value()[0]; + }; + }), + Xe(['initial', 'tail'], function(t, e) { + var n = 'drop' + (e ? '' : 'Right'); + vr.prototype[t] = function() { + return this.__filtered__ ? new vr(this) : this[n](1); + }; + }), + (vr.prototype.compact = function() { + return this.filter(Pu); + }), + (vr.prototype.find = function(t) { + return this.filter(t).head(); + }), + (vr.prototype.findLast = function(t) { + return this.reverse().find(t); + }), + (vr.prototype.invokeMap = Si(function(t, e) { + return 'function' == typeof t + ? new vr(this) + : this.map(function(n) { + return ri(n, t, e); + }); + })), + (vr.prototype.reject = function(t) { + return this.filter(us(zo(t))); + }), + (vr.prototype.slice = function(t, e) { + t = Bs(t); + var n = this; + return n.__filtered__ && (t > 0 || e < 0) + ? new vr(n) + : (t < 0 ? (n = n.takeRight(-t)) : t && (n = n.drop(t)), + e !== o && + (n = (e = Bs(e)) < 0 ? n.dropRight(-e) : n.take(e - t)), + n); + }), + (vr.prototype.takeRightWhile = function(t) { + return this.reverse() + .takeWhile(t) + .reverse(); + }), + (vr.prototype.toArray = function() { + return this.take(N); + }), + Xr(vr.prototype, function(t, e) { + var n = /^(?:filter|find|map|reject)|While$/.test(e), + r = /^(?:head|last)$/.test(e), + i = hr[r ? 'take' + ('last' == e ? 'Right' : '') : e], + a = r || /^find/.test(e); + i && + (hr.prototype[e] = function() { + var e = this.__wrapped__, + s = r ? [1] : arguments, + u = e instanceof vr, + l = s[0], + c = u || vs(e), + f = function(t) { + var e = i.apply(hr, tn([t], s)); + return r && d ? e[0] : e; + }; + c && + n && + 'function' == typeof l && + 1 != l.length && + (u = c = !1); + var d = this.__chain__, + h = !!this.__actions__.length, + p = a && !d, + g = u && !h; + if (!a && c) { + e = g ? e : new vr(this); + var m = t.apply(e, s); + return ( + m.__actions__.push({ func: Va, args: [f], thisArg: o }), + new mr(m, d) + ); + } + return p && g + ? t.apply(this, s) + : ((m = this.thru(f)), + p ? (r ? m.value()[0] : m.value()) : m); + }); + }), + Xe( + ['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], + function(t) { + var e = oe[t], + n = /^(?:push|sort|unshift)$/.test(t) ? 'tap' : 'thru', + r = /^(?:pop|shift)$/.test(t); + hr.prototype[t] = function() { + var t = arguments; + if (r && !this.__chain__) { + var i = this.value(); + return e.apply(vs(i) ? i : [], t); + } + return this[n](function(n) { + return e.apply(vs(n) ? n : [], t); + }); + }; + } + ), + Xr(vr.prototype, function(t, e) { + var n = hr[e]; + if (n) { + var r = n.name + ''; + ce.call(ir, r) || (ir[r] = []), + ir[r].push({ name: e, func: n }); + } + }), + (ir[po(o, y).name] = [{ name: 'wrapper', func: o }]), + (vr.prototype.clone = function() { + var t = new vr(this.__wrapped__); + return ( + (t.__actions__ = no(this.__actions__)), + (t.__dir__ = this.__dir__), + (t.__filtered__ = this.__filtered__), + (t.__iteratees__ = no(this.__iteratees__)), + (t.__takeCount__ = this.__takeCount__), + (t.__views__ = no(this.__views__)), + t + ); + }), + (vr.prototype.reverse = function() { + if (this.__filtered__) { + var t = new vr(this); + (t.__dir__ = -1), (t.__filtered__ = !0); + } else (t = this.clone()).__dir__ *= -1; + return t; + }), + (vr.prototype.value = function() { + var t = this.__wrapped__.value(), + e = this.__dir__, + n = vs(t), + r = e < 0, + i = n ? t.length : 0, + o = (function(t, e, n) { + var r = -1, + i = n.length; + for (; ++r < i; ) { + var o = n[r], + a = o.size; + switch (o.type) { + case 'drop': + t += a; + break; + case 'dropRight': + e -= a; + break; + case 'take': + e = Wn(e, t + a); + break; + case 'takeRight': + t = qn(t, e - a); + } + } + return { start: t, end: e }; + })(0, i, this.__views__), + a = o.start, + s = o.end, + u = s - a, + l = r ? s : a - 1, + c = this.__iteratees__, + f = c.length, + d = 0, + h = Wn(u, this.__takeCount__); + if (!n || (!r && i == u && h == u)) + return Bi(t, this.__actions__); + var p = []; + t: for (; u-- && d < h; ) { + for (var g = -1, m = t[(l += e)]; ++g < f; ) { + var v = c[g], + y = v.iteratee, + b = v.type, + _ = y(m); + if (b == L) m = _; + else if (!_) { + if (b == M) continue t; + break t; + } + } + p[d++] = m; + } + return p; + }), + (hr.prototype.at = Ba), + (hr.prototype.chain = function() { + return Fa(this); + }), + (hr.prototype.commit = function() { + return new mr(this.value(), this.__chain__); + }), + (hr.prototype.next = function() { + this.__values__ === o && (this.__values__ = Fs(this.value())); + var t = this.__index__ >= this.__values__.length; + return { + done: t, + value: t ? o : this.__values__[this.__index__++] + }; + }), + (hr.prototype.plant = function(t) { + for (var e, n = this; n instanceof gr; ) { + var r = da(n); + (r.__index__ = 0), + (r.__values__ = o), + e ? (i.__wrapped__ = r) : (e = r); + var i = r; + n = n.__wrapped__; + } + return (i.__wrapped__ = t), e; + }), + (hr.prototype.reverse = function() { + var t = this.__wrapped__; + if (t instanceof vr) { + var e = t; + return ( + this.__actions__.length && (e = new vr(this)), + (e = e.reverse()).__actions__.push({ + func: Va, + args: [Ta], + thisArg: o + }), + new mr(e, this.__chain__) + ); + } + return this.thru(Ta); + }), + (hr.prototype.toJSON = hr.prototype.valueOf = hr.prototype.value = function() { + return Bi(this.__wrapped__, this.__actions__); + }), + (hr.prototype.first = hr.prototype.head), + Ie && + (hr.prototype[Ie] = function() { + return this; }), - n.d(e, 'timerFlush', function() { - return Kr; + hr + ); + })(); + (je._ = Dn), + (i = function() { + return Dn; + }.call(e, n, e, r)) === o || (r.exports = i); + }.call(this)); + }.call(this, n(13), n(40)(t))); + }, + function(t, e) { + t.exports = function(t) { + var e = []; + return ( + (e.toString = function() { + return this.map(function(e) { + var n = (function(t, e) { + var n = t[1] || '', + r = t[3]; + if (!r) return n; + if (e && 'function' == typeof btoa) { + var i = + ((a = r), + '/*# sourceMappingURL=data:application/json;charset=utf-8;base64,' + + btoa(unescape(encodeURIComponent(JSON.stringify(a)))) + + ' */'), + o = r.sources.map(function(t) { + return '/*# sourceURL=' + r.sourceRoot + t + ' */'; + }); + return [n] + .concat(o) + .concat([i]) + .join('\n'); + } + var a; + return [n].join('\n'); + })(e, t); + return e[2] ? '@media ' + e[2] + '{' + n + '}' : n; + }).join(''); + }), + (e.i = function(t, n) { + 'string' == typeof t && (t = [[null, t, '']]); + for (var r = {}, i = 0; i < this.length; i++) { + var o = this[i][0]; + 'number' == typeof o && (r[o] = !0); + } + for (i = 0; i < t.length; i++) { + var a = t[i]; + ('number' == typeof a[0] && r[a[0]]) || + (n && !a[2] + ? (a[2] = n) + : n && (a[2] = '(' + a[2] + ') and (' + n + ')'), + e.push(a)); + } + }), + e + ); + }; + }, + function(t, e, n) { + var r, + i, + o = {}, + a = + ((r = function() { + return window && document && document.all && !window.atob; + }), + function() { + return void 0 === i && (i = r.apply(this, arguments)), i; + }), + s = function(t) { + return document.querySelector(t); + }, + u = (function(t) { + var e = {}; + return function(t) { + if ('function' == typeof t) return t(); + if (void 0 === e[t]) { + var n = s.call(this, t); + if ( + window.HTMLIFrameElement && + n instanceof window.HTMLIFrameElement + ) + try { + n = n.contentDocument.head; + } catch (t) { + n = null; + } + e[t] = n; + } + return e[t]; + }; + })(), + l = null, + c = 0, + f = [], + d = n(283); + function h(t, e) { + for (var n = 0; n < t.length; n++) { + var r = t[n], + i = o[r.id]; + if (i) { + i.refs++; + for (var a = 0; a < i.parts.length; a++) i.parts[a](r.parts[a]); + for (; a < r.parts.length; a++) i.parts.push(b(r.parts[a], e)); + } else { + var s = []; + for (a = 0; a < r.parts.length; a++) s.push(b(r.parts[a], e)); + o[r.id] = { id: r.id, refs: 1, parts: s }; + } + } + } + function p(t, e) { + for (var n = [], r = {}, i = 0; i < t.length; i++) { + var o = t[i], + a = e.base ? o[0] + e.base : o[0], + s = { css: o[1], media: o[2], sourceMap: o[3] }; + r[a] ? r[a].parts.push(s) : n.push((r[a] = { id: a, parts: [s] })); + } + return n; + } + function g(t, e) { + var n = u(t.insertInto); + if (!n) + throw new Error( + "Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid." + ); + var r = f[f.length - 1]; + if ('top' === t.insertAt) + r + ? r.nextSibling + ? n.insertBefore(e, r.nextSibling) + : n.appendChild(e) + : n.insertBefore(e, n.firstChild), + f.push(e); + else if ('bottom' === t.insertAt) n.appendChild(e); + else { + if ('object' != typeof t.insertAt || !t.insertAt.before) + throw new Error( + "[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n" + ); + var i = u(t.insertInto + ' ' + t.insertAt.before); + n.insertBefore(e, i); + } + } + function m(t) { + if (null === t.parentNode) return !1; + t.parentNode.removeChild(t); + var e = f.indexOf(t); + e >= 0 && f.splice(e, 1); + } + function v(t) { + var e = document.createElement('style'); + return (t.attrs.type = 'text/css'), y(e, t.attrs), g(t, e), e; + } + function y(t, e) { + Object.keys(e).forEach(function(n) { + t.setAttribute(n, e[n]); + }); + } + function b(t, e) { + var n, r, i, o; + if (e.transform && t.css) { + if (!(o = e.transform(t.css))) return function() {}; + t.css = o; + } + if (e.singleton) { + var a = c++; + (n = l || (l = v(e))), + (r = w.bind(null, n, a, !1)), + (i = w.bind(null, n, a, !0)); + } else + t.sourceMap && + 'function' == typeof URL && + 'function' == typeof URL.createObjectURL && + 'function' == typeof URL.revokeObjectURL && + 'function' == typeof Blob && + 'function' == typeof btoa + ? ((n = (function(t) { + var e = document.createElement('link'); + return ( + (t.attrs.type = 'text/css'), + (t.attrs.rel = 'stylesheet'), + y(e, t.attrs), + g(t, e), + e + ); + })(e)), + (r = E.bind(null, n, e)), + (i = function() { + m(n), n.href && URL.revokeObjectURL(n.href); + })) + : ((n = v(e)), + (r = S.bind(null, n)), + (i = function() { + m(n); + })); + return ( + r(t), + function(e) { + if (e) { + if ( + e.css === t.css && + e.media === t.media && + e.sourceMap === t.sourceMap + ) + return; + r((t = e)); + } else i(); + } + ); + } + t.exports = function(t, e) { + if ('undefined' != typeof DEBUG && DEBUG && 'object' != typeof document) + throw new Error( + 'The style-loader cannot be used in a non-browser environment' + ); + ((e = e || {}).attrs = 'object' == typeof e.attrs ? e.attrs : {}), + e.singleton || 'boolean' == typeof e.singleton || (e.singleton = a()), + e.insertInto || (e.insertInto = 'head'), + e.insertAt || (e.insertAt = 'bottom'); + var n = p(t, e); + return ( + h(n, e), + function(t) { + for (var r = [], i = 0; i < n.length; i++) { + var a = n[i]; + (s = o[a.id]).refs--, r.push(s); + } + t && h(p(t, e), e); + for (i = 0; i < r.length; i++) { + var s; + if (0 === (s = r[i]).refs) { + for (var u = 0; u < s.parts.length; u++) s.parts[u](); + delete o[s.id]; + } + } + } + ); + }; + var _, + x = + ((_ = []), + function(t, e) { + return (_[t] = e), _.filter(Boolean).join('\n'); + }); + function w(t, e, n, r) { + var i = n ? '' : r.css; + if (t.styleSheet) t.styleSheet.cssText = x(e, i); + else { + var o = document.createTextNode(i), + a = t.childNodes; + a[e] && t.removeChild(a[e]), + a.length ? t.insertBefore(o, a[e]) : t.appendChild(o); + } + } + function S(t, e) { + var n = e.css, + r = e.media; + if ((r && t.setAttribute('media', r), t.styleSheet)) + t.styleSheet.cssText = n; + else { + for (; t.firstChild; ) t.removeChild(t.firstChild); + t.appendChild(document.createTextNode(n)); + } + } + function E(t, e, n) { + var r = n.css, + i = n.sourceMap, + o = void 0 === e.convertToAbsoluteUrls && i; + (e.convertToAbsoluteUrls || o) && (r = d(r)), + i && + (r += + '\n/*# sourceMappingURL=data:application/json;base64,' + + btoa(unescape(encodeURIComponent(JSON.stringify(i)))) + + ' */'); + var a = new Blob([r], { type: 'text/css' }), + s = t.href; + (t.href = URL.createObjectURL(a)), s && URL.revokeObjectURL(s); + } + }, + function(t, e, n) { + var r = n(129), + i = n(131); + function o(e, n) { + return delete t.exports[e], (t.exports[e] = n), n; + } + t.exports = { + Parser: r, + Tokenizer: n(130), + ElementType: n(45), + DomHandler: i, + get FeedHandler() { + return o('FeedHandler', n(303)); + }, + get Stream() { + return o('Stream', n(317)); + }, + get WritableStream() { + return o('WritableStream', n(138)); + }, + get ProxyHandler() { + return o('ProxyHandler', n(324)); + }, + get DomUtils() { + return o('DomUtils', n(133)); + }, + get CollectingHandler() { + return o('CollectingHandler', n(325)); + }, + DefaultHandler: i, + get RssHandler() { + return o('RssHandler', this.FeedHandler); + }, + parseDOM: function(t, e) { + var n = new i(e); + return new r(n, e).end(t), n.dom; + }, + parseFeed: function(e, n) { + var i = new t.exports.FeedHandler(n); + return new r(i, n).end(e), i.dom; + }, + createDomStream: function(t, e, n) { + var o = new i(t, e, n); + return new r(o, e); + }, + EVENTS: { + attribute: 2, + cdatastart: 0, + cdataend: 0, + text: 1, + processinginstruction: 2, + comment: 1, + commentend: 0, + closetag: 1, + opentag: 2, + opentagname: 1, + error: 1, + end: 0 + } + }; + }, + function(t, e, n) { + var r = n(180), + i = n(70), + o = n(187), + a = n(188), + s = n(189), + u = n(30), + l = n(99), + c = l(r), + f = l(i), + d = l(o), + h = l(a), + p = l(s), + g = u; + ((r && '[object DataView]' != g(new r(new ArrayBuffer(1)))) || + (i && '[object Map]' != g(new i())) || + (o && '[object Promise]' != g(o.resolve())) || + (a && '[object Set]' != g(new a())) || + (s && '[object WeakMap]' != g(new s()))) && + (g = function(t) { + var e = u(t), + n = '[object Object]' == e ? t.constructor : void 0, + r = n ? l(n) : ''; + if (r) + switch (r) { + case c: + return '[object DataView]'; + case f: + return '[object Map]'; + case d: + return '[object Promise]'; + case h: + return '[object Set]'; + case p: + return '[object WeakMap]'; + } + return e; + }), + (t.exports = g); + }, + function(t, e, n) { + var r = n(22).Symbol; + t.exports = r; + }, + function(t, e, n) { + (function(t) { + var r = n(22), + i = n(191), + o = e && !e.nodeType && e, + a = o && 'object' == typeof t && t && !t.nodeType && t, + s = a && a.exports === o ? r.Buffer : void 0, + u = (s ? s.isBuffer : void 0) || i; + t.exports = u; + }.call(this, n(40)(t))); + }, + function(t, e) { + t.exports = function(t) { + return ( + t.webpackPolyfill || + ((t.deprecate = function() {}), + (t.paths = []), + t.children || (t.children = []), + Object.defineProperty(t, 'loaded', { + enumerable: !0, + get: function() { + return t.l; + } + }), + Object.defineProperty(t, 'id', { + enumerable: !0, + get: function() { + return t.i; + } + }), + (t.webpackPolyfill = 1)), + t + ); + }; + }, + function(t, e) { + t.exports = function(t, e) { + return t === e || (t != t && e != e); + }; + }, + function(t, e, n) { + var r = n(111), + i = n(75); + t.exports = function(t, e, n, o) { + var a = !n; + n || (n = {}); + for (var s = -1, u = e.length; ++s < u; ) { + var l = e[s], + c = o ? o(n[l], t[l], l, n, t) : void 0; + void 0 === c && (c = t[l]), a ? i(n, l, c) : r(n, l, c); + } + return n; + }; + }, + function(t, e, n) { + var r = n(112), + i = n(96), + o = n(31); + t.exports = function(t) { + return o(t) ? r(t) : i(t); + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.bottom = c), + (e.cloneLayout = function(t) { + for (var e = Array(t.length), n = 0, r = t.length; n < r; n++) + e[n] = f(t[n]); + return e; + }), + (e.cloneLayoutItem = f), + (e.childrenEqual = function(t, e) { + return (0, r.default)( + i.default.Children.map(t, function(t) { + return t.key; + }), + i.default.Children.map(e, function(t) { + return t.key; + }) + ); + }), + (e.collides = d), + (e.compact = h), + (e.compactItem = m), + (e.correctBounds = v), + (e.getLayoutItem = y), + (e.getFirstCollision = b), + (e.getAllCollisions = _), + (e.getStatics = x), + (e.moveElement = w), + (e.moveElementAwayFromCollision = S), + (e.perc = function(t) { + return 100 * t + '%'; + }), + (e.setTransform = function(t) { + var e = t.top, + n = t.left, + r = t.width, + i = t.height, + o = 'translate('.concat(n, 'px,').concat(e, 'px)'); + return { + transform: o, + WebkitTransform: o, + MozTransform: o, + msTransform: o, + OTransform: o, + width: ''.concat(r, 'px'), + height: ''.concat(i, 'px'), + position: 'absolute' + }; + }), + (e.setTopLeft = function(t) { + var e = t.top, + n = t.left, + r = t.width, + i = t.height; + return { + top: ''.concat(e, 'px'), + left: ''.concat(n, 'px'), + width: ''.concat(r, 'px'), + height: ''.concat(i, 'px'), + position: 'absolute' + }; + }), + (e.sortLayoutItems = E), + (e.sortLayoutItemsByRowCol = k), + (e.sortLayoutItemsByColRow = A), + (e.synchronizeLayoutWithChildren = function(t, e, n, r) { + t = t || []; + var o = []; + return ( + i.default.Children.forEach(e, function(e, n) { + var r = y(t, String(e.key)); + if (r) o[n] = f(r); + else { + !u && + e.props._grid && + console.warn( + '`_grid` properties on children have been deprecated as of React 15.2. Please use `data-grid` or add your properties directly to the `layout`.' + ); + var i = e.props['data-grid'] || e.props._grid; + i + ? (u || T([i], 'ReactGridLayout.children'), + (o[n] = f( + (function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = null != arguments[e] ? arguments[e] : {}; + e % 2 + ? a(n, !0).forEach(function(e) { + s(t, e, n[e]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties( + t, + Object.getOwnPropertyDescriptors(n) + ) + : a(n).forEach(function(e) { + Object.defineProperty( + t, + e, + Object.getOwnPropertyDescriptor(n, e) + ); + }); + } + return t; + })({}, i, { i: e.key }) + ))) + : (o[n] = f({ w: 1, h: 1, x: 0, y: c(o), i: String(e.key) })); + } + }), + (o = h((o = v(o, { cols: n })), r, n)) + ); + }), + (e.validateLayout = T), + (e.autoBindHandlers = function(t, e) { + e.forEach(function(e) { + return (t[e] = t[e].bind(t)); + }); + }), + (e.noop = void 0); + var r = o(n(81)), + i = o(n(0)); + function o(t) { + return t && t.__esModule ? t : { default: t }; + } + function a(t, e) { + var n = Object.keys(t); + if (Object.getOwnPropertySymbols) { + var r = Object.getOwnPropertySymbols(t); + e && + (r = r.filter(function(e) { + return Object.getOwnPropertyDescriptor(t, e).enumerable; + })), + n.push.apply(n, r); + } + return n; + } + function s(t, e, n) { + return ( + e in t + ? Object.defineProperty(t, e, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (t[e] = n), + t + ); + } + var u = !0, + l = !1; + function c(t) { + for (var e, n = 0, r = 0, i = t.length; r < i; r++) + (e = t[r].y + t[r].h) > n && (n = e); + return n; + } + function f(t) { + return { + w: t.w, + h: t.h, + x: t.x, + y: t.y, + i: t.i, + minW: t.minW, + maxW: t.maxW, + minH: t.minH, + maxH: t.maxH, + moved: Boolean(t.moved), + static: Boolean(t.static), + isDraggable: t.isDraggable, + isResizable: t.isResizable + }; + } + function d(t, e) { + return ( + t.i !== e.i && + (!(t.x + t.w <= e.x) && + (!(t.x >= e.x + e.w) && + (!(t.y + t.h <= e.y) && !(t.y >= e.y + e.h)))) + ); + } + function h(t, e, n) { + for ( + var r = x(t), i = E(t, e), o = Array(t.length), a = 0, s = i.length; + a < s; + a++ + ) { + var u = f(i[a]); + u.static || ((u = m(r, u, e, n, i)), r.push(u)), + (o[t.indexOf(i[a])] = u), + (u.moved = !1); + } + return o; + } + var p = { x: 'w', y: 'h' }; + function g(t, e, n, r) { + var i = p[r]; + e[r] += 1; + for ( + var o = + t + .map(function(t) { + return t.i; + }) + .indexOf(e.i) + 1; + o < t.length; + o++ + ) { + var a = t[o]; + if (!a.static) { + if (a.y > e.y + e.h) break; + d(e, a) && g(t, a, n + e[i], r); + } + } + e[r] = n; + } + function m(t, e, n, r, i) { + var o, + a = 'horizontal' === n; + if ('vertical' === n) + for (e.y = Math.min(c(t), e.y); e.y > 0 && !b(t, e); ) e.y--; + else if (a) + for (e.y = Math.min(c(t), e.y); e.x > 0 && !b(t, e); ) e.x--; + for (; (o = b(t, e)); ) + a ? g(i, e, o.x + o.w, 'x') : g(i, e, o.y + o.h, 'y'), + a && e.x + e.w > r && ((e.x = r - e.w), e.y++); + return e; + } + function v(t, e) { + for (var n = x(t), r = 0, i = t.length; r < i; r++) { + var o = t[r]; + if ( + (o.x + o.w > e.cols && (o.x = e.cols - o.w), + o.x < 0 && ((o.x = 0), (o.w = e.cols)), + o.static) + ) + for (; b(n, o); ) o.y++; + else n.push(o); + } + return t; + } + function y(t, e) { + for (var n = 0, r = t.length; n < r; n++) if (t[n].i === e) return t[n]; + } + function b(t, e) { + for (var n = 0, r = t.length; n < r; n++) if (d(t[n], e)) return t[n]; + } + function _(t, e) { + return t.filter(function(t) { + return d(t, e); + }); + } + function x(t) { + return t.filter(function(t) { + return t.static; + }); + } + function w(t, e, n, r, i, o, a, s) { + if (e.static) return t; + if (e.y === r && e.x === n) return t; + C( + 'Moving element ' + .concat(e.i, ' to [') + .concat(String(n), ',') + .concat(String(r), '] from [') + .concat(e.x, ',') + .concat(e.y, ']') + ); + var u = e.x, + l = e.y; + 'number' == typeof n && (e.x = n), + 'number' == typeof r && (e.y = r), + (e.moved = !0); + var c = E(t, a); + ('vertical' === a && 'number' == typeof r + ? l >= r + : 'horizontal' === a && 'number' == typeof n && u >= n) && + (c = c.reverse()); + var f = _(c, e); + if (o && f.length) + return ( + C('Collision prevented on '.concat(e.i, ', reverting.')), + (e.x = u), + (e.y = l), + (e.moved = !1), + t + ); + for (var d = 0, h = f.length; d < h; d++) { + var p = f[d]; + C( + 'Resolving collision between ' + .concat(e.i, ' at [') + .concat(e.x, ',') + .concat(e.y, '] and ') + .concat(p.i, ' at [') + .concat(p.x, ',') + .concat(p.y, ']') + ), + p.moved || + (t = p.static ? S(t, p, e, i, a, s) : S(t, e, p, i, a, s)); + } + return t; + } + function S(t, e, n, r, i, o) { + var a = 'horizontal' === i, + s = 'horizontal' !== i, + u = e.static; + if (r) { + r = !1; + var l = { + x: a ? Math.max(e.x - n.w, 0) : n.x, + y: s ? Math.max(e.y - n.h, 0) : n.y, + w: n.w, + h: n.h, + i: '-1' + }; + if (!b(t, l)) + return ( + C( + 'Doing reverse collision on ' + .concat(n.i, ' up to [') + .concat(l.x, ',') + .concat(l.y, '].') + ), + w(t, n, a ? l.x : void 0, s ? l.y : void 0, r, u, i, o) + ); + } + return w(t, n, a ? n.x + 1 : void 0, s ? n.y + 1 : void 0, r, u, i, o); + } + function E(t, e) { + return 'horizontal' === e ? A(t) : k(t); + } + function k(t) { + return [].concat(t).sort(function(t, e) { + return t.y > e.y || (t.y === e.y && t.x > e.x) + ? 1 + : t.y === e.y && t.x === e.x + ? 0 + : -1; + }); + } + function A(t) { + return [].concat(t).sort(function(t, e) { + return t.x > e.x || (t.x === e.x && t.y > e.y) ? 1 : -1; + }); + } + function T(t) { + var e = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : 'Layout', + n = ['x', 'y', 'w', 'h']; + if (!Array.isArray(t)) throw new Error(e + ' must be an array!'); + for (var r = 0, i = t.length; r < i; r++) { + for (var o = t[r], a = 0; a < n.length; a++) + if ('number' != typeof o[n[a]]) + throw new Error( + 'ReactGridLayout: ' + + e + + '[' + + r + + '].' + + n[a] + + ' must be a number!' + ); + if (o.i && 'string' != typeof o.i) + throw new Error( + 'ReactGridLayout: ' + e + '[' + r + '].i must be a string!' + ); + if (void 0 !== o.static && 'boolean' != typeof o.static) + throw new Error( + 'ReactGridLayout: ' + e + '[' + r + '].static must be a boolean!' + ); + } + } + function C() { + var t; + l && (t = console).log.apply(t, arguments); + } + e.noop = function() {}; + }, + function(t, e) { + t.exports = { + Text: 'text', + Directive: 'directive', + Comment: 'comment', + Script: 'script', + Style: 'style', + Tag: 'tag', + CDATA: 'cdata', + Doctype: 'doctype', + isTag: function(t) { + return 'tag' === t.type || 'script' === t.type || 'style' === t.type; + } + }; + }, + function(t, e, n) { + 'use strict'; + var r = n(62), + i = { + childContextTypes: !0, + contextType: !0, + contextTypes: !0, + defaultProps: !0, + displayName: !0, + getDefaultProps: !0, + getDerivedStateFromError: !0, + getDerivedStateFromProps: !0, + mixins: !0, + propTypes: !0, + type: !0 + }, + o = { + name: !0, + length: !0, + prototype: !0, + caller: !0, + callee: !0, + arguments: !0, + arity: !0 + }, + a = { + $$typeof: !0, + compare: !0, + defaultProps: !0, + displayName: !0, + propTypes: !0, + type: !0 + }, + s = {}; + function u(t) { + return r.isMemo(t) ? a : s[t.$$typeof] || i; + } + s[r.ForwardRef] = { + $$typeof: !0, + render: !0, + defaultProps: !0, + displayName: !0, + propTypes: !0 + }; + var l = Object.defineProperty, + c = Object.getOwnPropertyNames, + f = Object.getOwnPropertySymbols, + d = Object.getOwnPropertyDescriptor, + h = Object.getPrototypeOf, + p = Object.prototype; + t.exports = function t(e, n, r) { + if ('string' != typeof n) { + if (p) { + var i = h(n); + i && i !== p && t(e, i, r); + } + var a = c(n); + f && (a = a.concat(f(n))); + for (var s = u(e), g = u(n), m = 0; m < a.length; ++m) { + var v = a[m]; + if (!(o[v] || (r && r[v]) || (g && g[v]) || (s && s[v]))) { + var y = d(n, v); + try { + l(e, v, y); + } catch (t) {} + } + } + return e; + } + return e; + }; + }, + function(t, e, n) { + 'use strict'; + (function(t, r) { + function i(t) { + return (i = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function(t) { + return typeof t; + } + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t; + })(t); + } + function o(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + function a(t, e, n) { + return ( + e in t + ? Object.defineProperty(t, e, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (t[e] = n), + t + ); + } + function s(t) { + for (var e = 1; e < arguments.length; e++) { + var n = null != arguments[e] ? arguments[e] : {}, + r = Object.keys(n); + 'function' == typeof Object.getOwnPropertySymbols && + (r = r.concat( + Object.getOwnPropertySymbols(n).filter(function(t) { + return Object.getOwnPropertyDescriptor(n, t).enumerable; + }) + )), + r.forEach(function(e) { + a(t, e, n[e]); + }); + } + return t; + } + function u(t, e) { + return ( + (function(t) { + if (Array.isArray(t)) return t; + })(t) || + (function(t, e) { + var n = [], + r = !0, + i = !1, + o = void 0; + try { + for ( + var a, s = t[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !e || n.length !== e); + r = !0 + ); + } catch (t) { + (i = !0), (o = t); + } finally { + try { + r || null == s.return || s.return(); + } finally { + if (i) throw o; + } + } + return n; + })(t, e) || + (function() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' + ); + })() + ); + } + n.d(e, 'a', function() { + return jt; + }), + n.d(e, 'b', function() { + return Pt; + }), + n.d(e, 'c', function() { + return Lt; + }); + var l = function() {}, + c = {}, + f = {}, + d = { mark: l, measure: l }; + try { + 'undefined' != typeof window && (c = window), + 'undefined' != typeof document && (f = document), + 'undefined' != typeof MutationObserver && MutationObserver, + 'undefined' != typeof performance && (d = performance); + } catch (t) {} + var h = (c.navigator || {}).userAgent, + p = void 0 === h ? '' : h, + g = c, + m = f, + v = d, + y = + (g.document, + !!m.documentElement && + !!m.head && + 'function' == typeof m.addEventListener && + 'function' == typeof m.createElement), + b = (~p.indexOf('MSIE') || p.indexOf('Trident/'), 'fa'), + _ = 'svg-inline--fa', + x = 'data-fa-i2svg', + w = + ((function() { + try { + } catch (t) { + return !1; + } + })(), + [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]), + S = w.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]), + E = { + GROUP: 'group', + SWAP_OPACITY: 'swap-opacity', + PRIMARY: 'primary', + SECONDARY: 'secondary' + }, + k = + ([ + 'xs', + 'sm', + 'lg', + 'fw', + 'ul', + 'li', + 'border', + 'pull-left', + 'pull-right', + 'spin', + 'pulse', + 'rotate-90', + 'rotate-180', + 'rotate-270', + 'flip-horizontal', + 'flip-vertical', + 'flip-both', + 'stack', + 'stack-1x', + 'stack-2x', + 'inverse', + 'layers', + 'layers-text', + 'layers-counter', + E.GROUP, + E.SWAP_OPACITY, + E.PRIMARY, + E.SECONDARY + ] + .concat( + w.map(function(t) { + return ''.concat(t, 'x'); + }) + ) + .concat( + S.map(function(t) { + return 'w-'.concat(t); + }) + ), + g.FontAwesomeConfig || {}); + if (m && 'function' == typeof m.querySelector) { + [ + ['data-family-prefix', 'familyPrefix'], + ['data-replacement-class', 'replacementClass'], + ['data-auto-replace-svg', 'autoReplaceSvg'], + ['data-auto-add-css', 'autoAddCss'], + ['data-auto-a11y', 'autoA11y'], + ['data-search-pseudo-elements', 'searchPseudoElements'], + ['data-observe-mutations', 'observeMutations'], + ['data-mutate-approach', 'mutateApproach'], + ['data-keep-original-source', 'keepOriginalSource'], + ['data-measure-performance', 'measurePerformance'], + ['data-show-missing-icons', 'showMissingIcons'] + ].forEach(function(t) { + var e = u(t, 2), + n = e[0], + r = e[1], + i = (function(t) { + return '' === t || ('false' !== t && ('true' === t || t)); + })( + (function(t) { + var e = m.querySelector('script[' + t + ']'); + if (e) return e.getAttribute(t); + })(n) + ); + null != i && (k[r] = i); + }); + } + var A = s( + {}, + { + familyPrefix: b, + replacementClass: _, + autoReplaceSvg: !0, + autoAddCss: !0, + autoA11y: !0, + searchPseudoElements: !1, + observeMutations: !0, + mutateApproach: 'async', + keepOriginalSource: !0, + measurePerformance: !1, + showMissingIcons: !0 + }, + k + ); + A.autoReplaceSvg || (A.observeMutations = !1); + var T = s({}, A); + g.FontAwesomeConfig = T; + var C = g || {}; + C.___FONT_AWESOME___ || (C.___FONT_AWESOME___ = {}), + C.___FONT_AWESOME___.styles || (C.___FONT_AWESOME___.styles = {}), + C.___FONT_AWESOME___.hooks || (C.___FONT_AWESOME___.hooks = {}), + C.___FONT_AWESOME___.shims || (C.___FONT_AWESOME___.shims = []); + var O = C.___FONT_AWESOME___, + P = []; + y && + ((m.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test( + m.readyState + ) || + m.addEventListener('DOMContentLoaded', function t() { + m.removeEventListener('DOMContentLoaded', t), + 1, + P.map(function(t) { + return t(); + }); + })); + var M, + L = 'pending', + j = 'settled', + D = 'fulfilled', + R = 'rejected', + z = function() {}, + N = + void 0 !== t && + void 0 !== t.process && + 'function' == typeof t.process.emit, + I = void 0 === r ? setTimeout : r, + F = []; + function V() { + for (var t = 0; t < F.length; t++) F[t][0](F[t][1]); + (F = []), (M = !1); + } + function B(t, e) { + F.push([t, e]), M || ((M = !0), I(V, 0)); + } + function G(t) { + var e = t.owner, + n = e._state, + r = e._data, + i = t[n], + o = t.then; + if ('function' == typeof i) { + n = D; + try { + r = i(r); + } catch (t) { + W(o, t); + } + } + H(o, r) || (n === D && U(o, r), n === R && W(o, r)); + } + function H(t, e) { + var n; + try { + if (t === e) + throw new TypeError( + 'A promises callback cannot return that same promise.' + ); + if (e && ('function' == typeof e || 'object' === i(e))) { + var r = e.then; + if ('function' == typeof r) + return ( + r.call( + e, + function(r) { + n || ((n = !0), e === r ? q(t, r) : U(t, r)); + }, + function(e) { + n || ((n = !0), W(t, e)); + } + ), + !0 + ); + } + } catch (e) { + return n || W(t, e), !0; + } + return !1; + } + function U(t, e) { + (t !== e && H(t, e)) || q(t, e); + } + function q(t, e) { + t._state === L && ((t._state = j), (t._data = e), B(Y, t)); + } + function W(t, e) { + t._state === L && ((t._state = j), (t._data = e), B($, t)); + } + function X(t) { + t._then = t._then.forEach(G); + } + function Y(t) { + (t._state = D), X(t); + } + function $(e) { + (e._state = R), + X(e), + !e._handled && + N && + t.process.emit('unhandledRejection', e._data, e); + } + function K(e) { + t.process.emit('rejectionHandled', e); + } + function Q(t) { + if ('function' != typeof t) + throw new TypeError('Promise resolver ' + t + ' is not a function'); + if (this instanceof Q == !1) + throw new TypeError( + "Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function." + ); + (this._then = []), + (function(t, e) { + function n(t) { + W(e, t); + } + try { + t(function(t) { + U(e, t); + }, n); + } catch (t) { + n(t); + } + })(t, this); + } + (Q.prototype = { + constructor: Q, + _state: L, + _then: null, + _data: void 0, + _handled: !1, + then: function(t, e) { + var n = { + owner: this, + then: new this.constructor(z), + fulfilled: t, + rejected: e + }; + return ( + (!e && !t) || + this._handled || + ((this._handled = !0), this._state === R && N && B(K, this)), + this._state === D || this._state === R + ? B(G, n) + : this._then.push(n), + n.then + ); + }, + catch: function(t) { + return this.then(null, t); + } + }), + (Q.all = function(t) { + if (!Array.isArray(t)) + throw new TypeError('You must pass an array to Promise.all().'); + return new Q(function(e, n) { + var r = [], + i = 0; + function o(t) { + return ( + i++, + function(n) { + (r[t] = n), --i || e(r); + } + ); + } + for (var a, s = 0; s < t.length; s++) + (a = t[s]) && 'function' == typeof a.then + ? a.then(o(s), n) + : (r[s] = a); + i || e(r); + }); + }), + (Q.race = function(t) { + if (!Array.isArray(t)) + throw new TypeError('You must pass an array to Promise.race().'); + return new Q(function(e, n) { + for (var r, i = 0; i < t.length; i++) + (r = t[i]) && 'function' == typeof r.then ? r.then(e, n) : e(r); + }); + }), + (Q.resolve = function(t) { + return t && 'object' === i(t) && t.constructor === Q + ? t + : new Q(function(e) { + e(t); + }); + }), + (Q.reject = function(t) { + return new Q(function(e, n) { + n(t); + }); + }); + 'function' == typeof Promise && Promise; + var Z = { size: 16, x: 0, y: 0, rotate: 0, flipX: !1, flipY: !1 }; + function J(t) { + if (t && y) { + var e = m.createElement('style'); + e.setAttribute('type', 'text/css'), (e.innerHTML = t); + for ( + var n = m.head.childNodes, r = null, i = n.length - 1; + i > -1; + i-- + ) { + var o = n[i], + a = (o.tagName || '').toUpperCase(); + ['STYLE', 'LINK'].indexOf(a) > -1 && (r = o); + } + return m.head.insertBefore(e, r), t; + } + } + var tt = + '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; + function et() { + for (var t = 12, e = ''; t-- > 0; ) e += tt[(62 * Math.random()) | 0]; + return e; + } + function nt(t) { + return '' + .concat(t) + .replace(/&/g, '&') + .replace(/"/g, '"') + .replace(/'/g, ''') + .replace(//g, '>'); + } + function rt(t) { + return Object.keys(t || {}).reduce(function(e, n) { + return e + ''.concat(n, ': ').concat(t[n], ';'); + }, ''); + } + function it(t) { + return ( + t.size !== Z.size || + t.x !== Z.x || + t.y !== Z.y || + t.rotate !== Z.rotate || + t.flipX || + t.flipY + ); + } + function ot(t) { + var e = t.transform, + n = t.containerWidth, + r = t.iconWidth, + i = { transform: 'translate('.concat(n / 2, ' 256)') }, + o = 'translate('.concat(32 * e.x, ', ').concat(32 * e.y, ') '), + a = 'scale(' + .concat((e.size / 16) * (e.flipX ? -1 : 1), ', ') + .concat((e.size / 16) * (e.flipY ? -1 : 1), ') '), + s = 'rotate('.concat(e.rotate, ' 0 0)'); + return { + outer: i, + inner: { + transform: '' + .concat(o, ' ') + .concat(a, ' ') + .concat(s) + }, + path: { transform: 'translate('.concat((r / 2) * -1, ' -256)') } + }; + } + var at = { x: 0, y: 0, width: '100%', height: '100%' }; + function st(t) { + var e = + !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1]; + return ( + t.attributes && + (t.attributes.fill || e) && + (t.attributes.fill = 'black'), + t + ); + } + function ut(t) { + var e = t.icons, + n = e.main, + r = e.mask, + i = t.prefix, + o = t.iconName, + a = t.transform, + u = t.symbol, + l = t.title, + c = t.extra, + f = t.watchable, + d = void 0 !== f && f, + h = r.found ? r : n, + p = h.width, + g = h.height, + m = 'fa-w-'.concat(Math.ceil((p / g) * 16)), + v = [ + T.replacementClass, + o ? ''.concat(T.familyPrefix, '-').concat(o) : '', + m + ] + .filter(function(t) { + return -1 === c.classes.indexOf(t); + }) + .concat(c.classes) + .join(' '), + y = { + children: [], + attributes: s({}, c.attributes, { + 'data-prefix': i, + 'data-icon': o, + class: v, + role: c.attributes.role || 'img', + xmlns: 'http://www.w3.org/2000/svg', + viewBox: '0 0 '.concat(p, ' ').concat(g) + }) + }; + d && (y.attributes[x] = ''), + l && + y.children.push({ + tag: 'title', + attributes: { + id: y.attributes['aria-labelledby'] || 'title-'.concat(et()) + }, + children: [l] + }); + var b = s({}, y, { + prefix: i, + iconName: o, + main: n, + mask: r, + transform: a, + symbol: u, + styles: c.styles + }), + _ = + r.found && n.found + ? (function(t) { + var e, + n = t.children, + r = t.attributes, + i = t.main, + o = t.mask, + a = t.transform, + u = i.width, + l = i.icon, + c = o.width, + f = o.icon, + d = ot({ transform: a, containerWidth: c, iconWidth: u }), + h = { + tag: 'rect', + attributes: s({}, at, { fill: 'white' }) + }, + p = l.children ? { children: l.children.map(st) } : {}, + g = { + tag: 'g', + attributes: s({}, d.inner), + children: [ + st( + s( + { + tag: l.tag, + attributes: s({}, l.attributes, d.path) + }, + p + ) + ) + ] + }, + m = { + tag: 'g', + attributes: s({}, d.outer), + children: [g] + }, + v = 'mask-'.concat(et()), + y = 'clip-'.concat(et()), + b = { + tag: 'mask', + attributes: s({}, at, { + id: v, + maskUnits: 'userSpaceOnUse', + maskContentUnits: 'userSpaceOnUse' + }), + children: [h, m] + }, + _ = { + tag: 'defs', + children: [ + { + tag: 'clipPath', + attributes: { id: y }, + children: + ((e = f), 'g' === e.tag ? e.children : [e]) + }, + b + ] + }; + return ( + n.push(_, { + tag: 'rect', + attributes: s( + { + fill: 'currentColor', + 'clip-path': 'url(#'.concat(y, ')'), + mask: 'url(#'.concat(v, ')') + }, + at + ) + }), + { children: n, attributes: r } + ); + })(b) + : (function(t) { + var e = t.children, + n = t.attributes, + r = t.main, + i = t.transform, + o = rt(t.styles); + if ((o.length > 0 && (n.style = o), it(i))) { + var a = ot({ + transform: i, + containerWidth: r.width, + iconWidth: r.width + }); + e.push({ + tag: 'g', + attributes: s({}, a.outer), + children: [ + { + tag: 'g', + attributes: s({}, a.inner), + children: [ + { + tag: r.icon.tag, + children: r.icon.children, + attributes: s({}, r.icon.attributes, a.path) + } + ] + } + ] + }); + } else e.push(r.icon); + return { children: e, attributes: n }; + })(b), + w = _.children, + S = _.attributes; + return ( + (b.children = w), + (b.attributes = S), + u + ? (function(t) { + var e = t.prefix, + n = t.iconName, + r = t.children, + i = t.attributes, + o = t.symbol; + return [ + { + tag: 'svg', + attributes: { style: 'display: none;' }, + children: [ + { + tag: 'symbol', + attributes: s({}, i, { + id: + !0 === o + ? '' + .concat(e, '-') + .concat(T.familyPrefix, '-') + .concat(n) + : o + }), + children: r + } + ] + } + ]; + })(b) + : (function(t) { + var e = t.children, + n = t.main, + r = t.mask, + i = t.attributes, + o = t.styles, + a = t.transform; + if (it(a) && n.found && !r.found) { + var u = { x: n.width / n.height / 2, y: 0.5 }; + i.style = rt( + s({}, o, { + 'transform-origin': '' + .concat(u.x + a.x / 16, 'em ') + .concat(u.y + a.y / 16, 'em') + }) + ); + } + return [{ tag: 'svg', attributes: i, children: e }]; + })(b) + ); + } + var lt = function() {}, + ct = + (T.measurePerformance && v && v.mark && v.measure, + function(t, e, n, r) { + var i, + o, + a, + s = Object.keys(t), + u = s.length, + l = + void 0 !== r + ? (function(t, e) { + return function(n, r, i, o) { + return t.call(e, n, r, i, o); + }; + })(e, r) + : e; + for ( + void 0 === n ? ((i = 1), (a = t[s[0]])) : ((i = 0), (a = n)); + i < u; + i++ + ) + a = l(a, t[(o = s[i])], o, t); + return a; + }); + function ft(t, e) { + var n = (arguments.length > 2 && void 0 !== arguments[2] + ? arguments[2] + : {} + ).skipHooks, + r = void 0 !== n && n, + i = Object.keys(e).reduce(function(t, n) { + var r = e[n]; + return !!r.icon ? (t[r.iconName] = r.icon) : (t[n] = r), t; + }, {}); + 'function' != typeof O.hooks.addPack || r + ? (O.styles[t] = s({}, O.styles[t] || {}, i)) + : O.hooks.addPack(t, i), + 'fas' === t && ft('fa', e); + } + var dt = O.styles, + ht = O.shims, + pt = function() { + var t = function(t) { + return ct( + dt, + function(e, n, r) { + return (e[r] = ct(n, t, {})), e; + }, + {} + ); + }; + t(function(t, e, n) { + return e[3] && (t[e[3]] = n), t; + }), + t(function(t, e, n) { + var r = e[2]; + return ( + (t[n] = n), + r.forEach(function(e) { + t[e] = n; + }), + t + ); + }); + var e = 'far' in dt; + ct( + ht, + function(t, n) { + var r = n[0], + i = n[1], + o = n[2]; + return ( + 'far' !== i || e || (i = 'fas'), + (t[r] = { prefix: i, iconName: o }), + t + ); + }, + {} + ); + }; + pt(); + O.styles; + function gt(t, e, n) { + if (t && t[e] && t[e][n]) + return { prefix: e, iconName: n, icon: t[e][n] }; + } + function mt(t) { + var e = t.tag, + n = t.attributes, + r = void 0 === n ? {} : n, + i = t.children, + o = void 0 === i ? [] : i; + return 'string' == typeof t + ? nt(t) + : '<' + .concat(e, ' ') + .concat( + (function(t) { + return Object.keys(t || {}) + .reduce(function(e, n) { + return e + ''.concat(n, '="').concat(nt(t[n]), '" '); + }, '') + .trim(); + })(r), + '>' + ) + .concat(o.map(mt).join(''), ''); + } + var vt = function(t) { + var e = { size: 16, x: 0, y: 0, flipX: !1, flipY: !1, rotate: 0 }; + return t + ? t + .toLowerCase() + .split(' ') + .reduce(function(t, e) { + var n = e.toLowerCase().split('-'), + r = n[0], + i = n.slice(1).join('-'); + if (r && 'h' === i) return (t.flipX = !0), t; + if (r && 'v' === i) return (t.flipY = !0), t; + if (((i = parseFloat(i)), isNaN(i))) return t; + switch (r) { + case 'grow': + t.size = t.size + i; + break; + case 'shrink': + t.size = t.size - i; + break; + case 'left': + t.x = t.x - i; + break; + case 'right': + t.x = t.x + i; + break; + case 'up': + t.y = t.y - i; + break; + case 'down': + t.y = t.y + i; + break; + case 'rotate': + t.rotate = t.rotate + i; + } + return t; + }, e) + : e; + }; + function yt(t) { + (this.name = 'MissingIcon'), + (this.message = t || 'Icon unavailable'), + (this.stack = new Error().stack); + } + (yt.prototype = Object.create(Error.prototype)), + (yt.prototype.constructor = yt); + var bt = { fill: 'currentColor' }, + _t = { attributeType: 'XML', repeatCount: 'indefinite', dur: '2s' }, + xt = { + tag: 'path', + attributes: s({}, bt, { + d: + 'M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z' + }) + }, + wt = s({}, _t, { attributeName: 'opacity' }); + s({}, bt, { cx: '256', cy: '364', r: '28' }), + s({}, _t, { attributeName: 'r', values: '28;14;28;28;14;28;' }), + s({}, wt, { values: '1;0;1;1;0;1;' }), + s({}, bt, { + opacity: '1', + d: + 'M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z' + }), + s({}, wt, { values: '1;0;0;0;0;1;' }), + s({}, bt, { + opacity: '0', + d: + 'M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z' + }), + s({}, wt, { values: '0;0;1;1;0;0;' }), + O.styles; + function St(t) { + var e = t[0], + n = t[1], + r = u(t.slice(4), 1)[0]; + return { + found: !0, + width: e, + height: n, + icon: Array.isArray(r) + ? { + tag: 'g', + attributes: { + class: ''.concat(T.familyPrefix, '-').concat(E.GROUP) + }, + children: [ + { + tag: 'path', + attributes: { + class: '' + .concat(T.familyPrefix, '-') + .concat(E.SECONDARY), + fill: 'currentColor', + d: r[0] + } + }, + { + tag: 'path', + attributes: { + class: ''.concat(T.familyPrefix, '-').concat(E.PRIMARY), + fill: 'currentColor', + d: r[1] + } + } + ] + } + : { tag: 'path', attributes: { fill: 'currentColor', d: r } } + }; + } + O.styles; + var Et = + 'svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}'; + function kt() { + var t = b, + e = _, + n = T.familyPrefix, + r = T.replacementClass, + i = Et; + if (n !== t || r !== e) { + var o = new RegExp('\\.'.concat(t, '\\-'), 'g'), + a = new RegExp('\\--'.concat(t, '\\-'), 'g'), + s = new RegExp('\\.'.concat(e), 'g'); + i = i + .replace(o, '.'.concat(n, '-')) + .replace(a, '--'.concat(n, '-')) + .replace(s, '.'.concat(r)); + } + return i; + } + function At() { + T.autoAddCss && !Mt && (J(kt()), (Mt = !0)); + } + function Tt(t, e) { + return ( + Object.defineProperty(t, 'abstract', { get: e }), + Object.defineProperty(t, 'html', { + get: function() { + return t.abstract.map(function(t) { + return mt(t); + }); + } + }), + Object.defineProperty(t, 'node', { + get: function() { + if (y) { + var e = m.createElement('div'); + return (e.innerHTML = t.html), e.children; + } + } + }), + t + ); + } + function Ct(t) { + var e = t.prefix, + n = void 0 === e ? 'fa' : e, + r = t.iconName; + if (r) return gt(Pt.definitions, n, r) || gt(O.styles, n, r); + } + var Ot, + Pt = new ((function() { + function t() { + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + })(this, t), + (this.definitions = {}); + } + var e, n, r; + return ( + (e = t), + (n = [ + { + key: 'add', + value: function() { + for ( + var t = this, + e = arguments.length, + n = new Array(e), + r = 0; + r < e; + r++ + ) + n[r] = arguments[r]; + var i = n.reduce(this._pullDefinitions, {}); + Object.keys(i).forEach(function(e) { + (t.definitions[e] = s({}, t.definitions[e] || {}, i[e])), + ft(e, i[e]), + pt(); + }); + } + }, + { + key: 'reset', + value: function() { + this.definitions = {}; + } + }, + { + key: '_pullDefinitions', + value: function(t, e) { + var n = e.prefix && e.iconName && e.icon ? { 0: e } : e; + return ( + Object.keys(n).map(function(e) { + var r = n[e], + i = r.prefix, + o = r.iconName, + a = r.icon; + t[i] || (t[i] = {}), (t[i][o] = a); + }), + t + ); + } + } + ]) && o(e.prototype, n), + r && o(e, r), + t + ); + })())(), + Mt = !1, + Lt = { + transform: function(t) { + return vt(t); + } + }, + jt = + ((Ot = function(t) { + var e = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : {}, + n = e.transform, + r = void 0 === n ? Z : n, + i = e.symbol, + o = void 0 !== i && i, + a = e.mask, + u = void 0 === a ? null : a, + l = e.title, + c = void 0 === l ? null : l, + f = e.classes, + d = void 0 === f ? [] : f, + h = e.attributes, + p = void 0 === h ? {} : h, + g = e.styles, + m = void 0 === g ? {} : g; + if (t) { + var v = t.prefix, + y = t.iconName, + b = t.icon; + return Tt(s({ type: 'icon' }, t), function() { + return ( + At(), + T.autoA11y && + (c + ? (p['aria-labelledby'] = '' + .concat(T.replacementClass, '-title-') + .concat(et())) + : ((p['aria-hidden'] = 'true'), + (p.focusable = 'false'))), + ut({ + icons: { + main: St(b), + mask: u + ? St(u.icon) + : { found: !1, width: null, height: null, icon: {} } + }, + prefix: v, + iconName: y, + transform: s({}, Z, r), + symbol: o, + title: c, + extra: { attributes: p, styles: m, classes: d } + }) + ); + }); + } + }), + function(t) { + var e = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : {}, + n = (t || {}).icon ? t : Ct(t || {}), + r = e.mask; + return ( + r && (r = (r || {}).icon ? r : Ct(r || {})), + Ot(n, s({}, e, { mask: r })) + ); + }); + }.call(this, n(13), n(252).setImmediate)); + }, + function(t, e) { + t.exports = function(t, e) { + (t.prototype = Object.create(e.prototype)), + (t.prototype.constructor = t), + (t.__proto__ = e); + }; + }, + function(t, e) { + var n = Object.prototype; + t.exports = function(t) { + var e = t && t.constructor; + return t === (('function' == typeof e && e.prototype) || n); + }; + }, + function(t, e, n) { + var r = n(190), + i = n(25), + o = Object.prototype, + a = o.hasOwnProperty, + s = o.propertyIsEnumerable, + u = r( + (function() { + return arguments; + })() + ) + ? r + : function(t) { + return i(t) && a.call(t, 'callee') && !s.call(t, 'callee'); + }; + t.exports = u; + }, + function(t, e, n) { + var r = n(192), + i = n(72), + o = n(73), + a = o && o.isTypedArray, + s = a ? i(a) : r; + t.exports = s; + }, + function(t, e, n) { + var r = n(53), + i = n(213), + o = n(214), + a = n(215), + s = n(216), + u = n(217); + function l(t) { + var e = (this.__data__ = new r(t)); + this.size = e.size; + } + (l.prototype.clear = i), + (l.prototype.delete = o), + (l.prototype.get = a), + (l.prototype.has = s), + (l.prototype.set = u), + (t.exports = l); + }, + function(t, e, n) { + var r = n(208), + i = n(209), + o = n(210), + a = n(211), + s = n(212); + function u(t) { + var e = -1, + n = null == t ? 0 : t.length; + for (this.clear(); ++e < n; ) { + var r = t[e]; + this.set(r[0], r[1]); + } + } + (u.prototype.clear = r), + (u.prototype.delete = i), + (u.prototype.get = o), + (u.prototype.has = a), + (u.prototype.set = s), + (t.exports = u); + }, + function(t, e, n) { + var r = n(41); + t.exports = function(t, e) { + for (var n = t.length; n--; ) if (r(t[n][0], e)) return n; + return -1; + }; + }, + function(t, e, n) { + var r = n(29)(Object, 'create'); + t.exports = r; + }, + function(t, e, n) { + var r = n(226); + t.exports = function(t, e) { + var n = t.__data__; + return r(e) ? n['string' == typeof e ? 'string' : 'hash'] : n.map; + }; + }, + function(t, e, n) { + var r = n(112), + i = n(236), + o = n(31); + t.exports = function(t) { + return o(t) ? r(t, !0) : i(t); + }; + }, + function(t, e) { + t.exports = function(t) { + return t; + }; + }, + function(t, e) { + 'function' == typeof Object.create + ? (t.exports = function(t, e) { + e && + ((t.super_ = e), + (t.prototype = Object.create(e.prototype, { + constructor: { + value: t, + enumerable: !1, + writable: !0, + configurable: !0 + } + }))); + }) + : (t.exports = function(t, e) { + if (e) { + t.super_ = e; + var n = function() {}; + (n.prototype = e.prototype), + (t.prototype = new n()), + (t.prototype.constructor = t); + } + }); + }, + function(t, e, n) { + var r = n(30), + i = n(25), + o = '[object Symbol]'; + t.exports = function(t) { + return 'symbol' == typeof t || (i(t) && r(t) == o); + }; + }, + function(t, e, n) { + var r = n(60), + i = 1 / 0; + t.exports = function(t) { + if ('string' == typeof t || r(t)) return t; + var e = t + ''; + return '0' == e && 1 / t == -i ? '-0' : e; + }; + }, + function(t, e, n) { + 'use strict'; + t.exports = n(177); + }, + function(t, e, n) { + var r = n(96), + i = n(37), + o = n(50), + a = n(14), + s = n(31), + u = n(39), + l = n(49), + c = n(51), + f = '[object Map]', + d = '[object Set]', + h = Object.prototype.hasOwnProperty; + t.exports = function(t) { + if (null == t) return !0; + if ( + s(t) && + (a(t) || + 'string' == typeof t || + 'function' == typeof t.splice || + u(t) || + c(t) || + o(t)) + ) + return !t.length; + var e = i(t); + if (e == f || e == d) return !t.size; + if (l(t)) return !r(t).length; + for (var n in t) if (h.call(t, n)) return !1; + return !0; + }; + }, + function(t, e, n) { + var r; + !(function() { + function i(t, e, n) { + return t.call.apply(t.bind, arguments); + } + function o(t, e, n) { + if (!t) throw Error(); + if (2 < arguments.length) { + var r = Array.prototype.slice.call(arguments, 2); + return function() { + var n = Array.prototype.slice.call(arguments); + return Array.prototype.unshift.apply(n, r), t.apply(e, n); + }; + } + return function() { + return t.apply(e, arguments); + }; + } + function a(t, e, n) { + return (a = + Function.prototype.bind && + -1 != Function.prototype.bind.toString().indexOf('native code') + ? i + : o).apply(null, arguments); + } + var s = + Date.now || + function() { + return +new Date(); + }; + function u(t, e) { + (this.a = t), (this.o = e || t), (this.c = this.o.document); + } + var l = !!window.FontFace; + function c(t, e, n, r) { + if (((e = t.c.createElement(e)), n)) + for (var i in n) + n.hasOwnProperty(i) && + ('style' == i + ? (e.style.cssText = n[i]) + : e.setAttribute(i, n[i])); + return r && e.appendChild(t.c.createTextNode(r)), e; + } + function f(t, e, n) { + (t = t.c.getElementsByTagName(e)[0]) || + (t = document.documentElement), + t.insertBefore(n, t.lastChild); + } + function d(t) { + t.parentNode && t.parentNode.removeChild(t); + } + function h(t, e, n) { + (e = e || []), (n = n || []); + for (var r = t.className.split(/\s+/), i = 0; i < e.length; i += 1) { + for (var o = !1, a = 0; a < r.length; a += 1) + if (e[i] === r[a]) { + o = !0; + break; + } + o || r.push(e[i]); + } + for (e = [], i = 0; i < r.length; i += 1) { + for (o = !1, a = 0; a < n.length; a += 1) + if (r[i] === n[a]) { + o = !0; + break; + } + o || e.push(r[i]); + } + t.className = e + .join(' ') + .replace(/\s+/g, ' ') + .replace(/^\s+|\s+$/, ''); + } + function p(t, e) { + for ( + var n = t.className.split(/\s+/), r = 0, i = n.length; + r < i; + r++ + ) + if (n[r] == e) return !0; + return !1; + } + function g(t, e, n) { + function r() { + s && i && o && (s(a), (s = null)); + } + e = c(t, 'link', { rel: 'stylesheet', href: e, media: 'all' }); + var i = !1, + o = !0, + a = null, + s = n || null; + l + ? ((e.onload = function() { + (i = !0), r(); + }), + (e.onerror = function() { + (i = !0), (a = Error('Stylesheet failed to load')), r(); + })) + : setTimeout(function() { + (i = !0), r(); + }, 0), + f(t, 'head', e); + } + function m(t, e, n, r) { + var i = t.c.getElementsByTagName('head')[0]; + if (i) { + var o = c(t, 'script', { src: e }), + a = !1; + return ( + (o.onload = o.onreadystatechange = function() { + a || + (this.readyState && + 'loaded' != this.readyState && + 'complete' != this.readyState) || + ((a = !0), + n && n(null), + (o.onload = o.onreadystatechange = null), + 'HEAD' == o.parentNode.tagName && i.removeChild(o)); + }), + i.appendChild(o), + setTimeout(function() { + a || ((a = !0), n && n(Error('Script load timeout'))); + }, r || 5e3), + o + ); + } + return null; + } + function v() { + (this.a = 0), (this.c = null); + } + function y(t) { + return ( + t.a++, + function() { + t.a--, _(t); + } + ); + } + function b(t, e) { + (t.c = e), _(t); + } + function _(t) { + 0 == t.a && t.c && (t.c(), (t.c = null)); + } + function x(t) { + this.a = t || '-'; + } + function w(t, e) { + (this.c = t), (this.f = 4), (this.a = 'n'); + var n = (e || 'n4').match(/^([nio])([1-9])$/i); + n && ((this.a = n[1]), (this.f = parseInt(n[2], 10))); + } + function S(t) { + var e = []; + t = t.split(/,\s*/); + for (var n = 0; n < t.length; n++) { + var r = t[n].replace(/['"]/g, ''); + -1 != r.indexOf(' ') || /^\d/.test(r) + ? e.push("'" + r + "'") + : e.push(r); + } + return e.join(','); + } + function E(t) { + return t.a + t.f; + } + function k(t) { + var e = 'normal'; + return ( + 'o' === t.a ? (e = 'oblique') : 'i' === t.a && (e = 'italic'), e + ); + } + function A(t) { + var e = 4, + n = 'n', + r = null; + return ( + t && + ((r = t.match(/(normal|oblique|italic)/i)) && + r[1] && + (n = r[1].substr(0, 1).toLowerCase()), + (r = t.match(/([1-9]00|normal|bold)/i)) && + r[1] && + (/bold/i.test(r[1]) + ? (e = 7) + : /[1-9]00/.test(r[1]) && + (e = parseInt(r[1].substr(0, 1), 10)))), + n + e + ); + } + function T(t, e) { + (this.c = t), + (this.f = t.o.document.documentElement), + (this.h = e), + (this.a = new x('-')), + (this.j = !1 !== e.events), + (this.g = !1 !== e.classes); + } + function C(t) { + if (t.g) { + var e = p(t.f, t.a.c('wf', 'active')), + n = [], + r = [t.a.c('wf', 'loading')]; + e || n.push(t.a.c('wf', 'inactive')), h(t.f, n, r); + } + O(t, 'inactive'); + } + function O(t, e, n) { + t.j && t.h[e] && (n ? t.h[e](n.c, E(n)) : t.h[e]()); + } + function P() { + this.c = {}; + } + function M(t, e) { + (this.c = t), + (this.f = e), + (this.a = c(this.c, 'span', { 'aria-hidden': 'true' }, this.f)); + } + function L(t) { + f(t.c, 'body', t.a); + } + function j(t) { + return ( + 'display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:' + + S(t.c) + + ';font-style:' + + k(t) + + ';font-weight:' + + t.f + + '00;' + ); + } + function D(t, e, n, r, i, o) { + (this.g = t), + (this.j = e), + (this.a = r), + (this.c = n), + (this.f = i || 3e3), + (this.h = o || void 0); + } + function R(t, e, n, r, i, o, a) { + (this.v = t), + (this.B = e), + (this.c = n), + (this.a = r), + (this.s = a || 'BESbswy'), + (this.f = {}), + (this.w = i || 3e3), + (this.u = o || null), + (this.m = this.j = this.h = this.g = null), + (this.g = new M(this.c, this.s)), + (this.h = new M(this.c, this.s)), + (this.j = new M(this.c, this.s)), + (this.m = new M(this.c, this.s)), + (t = j((t = new w(this.a.c + ',serif', E(this.a))))), + (this.g.a.style.cssText = t), + (t = j((t = new w(this.a.c + ',sans-serif', E(this.a))))), + (this.h.a.style.cssText = t), + (t = j((t = new w('serif', E(this.a))))), + (this.j.a.style.cssText = t), + (t = j((t = new w('sans-serif', E(this.a))))), + (this.m.a.style.cssText = t), + L(this.g), + L(this.h), + L(this.j), + L(this.m); + } + (x.prototype.c = function(t) { + for (var e = [], n = 0; n < arguments.length; n++) + e.push(arguments[n].replace(/[\W_]+/g, '').toLowerCase()); + return e.join(this.a); + }), + (D.prototype.start = function() { + var t = this.c.o.document, + e = this, + n = s(), + r = new Promise(function(r, i) { + !(function o() { + s() - n >= e.f + ? i() + : t.fonts + .load( + (function(t) { + return k(t) + ' ' + t.f + '00 300px ' + S(t.c); + })(e.a), + e.h + ) + .then( + function(t) { + 1 <= t.length ? r() : setTimeout(o, 25); + }, + function() { + i(); + } + ); + })(); + }), + i = null, + o = new Promise(function(t, n) { + i = setTimeout(n, e.f); + }); + Promise.race([o, r]).then( + function() { + i && (clearTimeout(i), (i = null)), e.g(e.a); + }, + function() { + e.j(e.a); + } + ); + }); + var z = { D: 'serif', C: 'sans-serif' }, + N = null; + function I() { + if (null === N) { + var t = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec( + window.navigator.userAgent + ); + N = + !!t && + (536 > parseInt(t[1], 10) || + (536 === parseInt(t[1], 10) && 11 >= parseInt(t[2], 10))); + } + return N; + } + function F(t, e, n) { + for (var r in z) + if (z.hasOwnProperty(r) && e === t.f[z[r]] && n === t.f[z[r]]) + return !0; + return !1; + } + function V(t) { + var e, + n = t.g.a.offsetWidth, + r = t.h.a.offsetWidth; + (e = n === t.f.serif && r === t.f['sans-serif']) || + (e = I() && F(t, n, r)), + e + ? s() - t.A >= t.w + ? I() && + F(t, n, r) && + (null === t.u || t.u.hasOwnProperty(t.a.c)) + ? B(t, t.v) + : B(t, t.B) + : (function(t) { + setTimeout( + a(function() { + V(this); + }, t), + 50 + ); + })(t) + : B(t, t.v); + } + function B(t, e) { + setTimeout( + a(function() { + d(this.g.a), d(this.h.a), d(this.j.a), d(this.m.a), e(this.a); + }, t), + 0 + ); + } + function G(t, e, n) { + (this.c = t), + (this.a = e), + (this.f = 0), + (this.m = this.j = !1), + (this.s = n); + } + R.prototype.start = function() { + (this.f.serif = this.j.a.offsetWidth), + (this.f['sans-serif'] = this.m.a.offsetWidth), + (this.A = s()), + V(this); + }; + var H = null; + function U(t) { + 0 == --t.f && + t.j && + (t.m + ? ((t = t.a).g && + h( + t.f, + [t.a.c('wf', 'active')], + [t.a.c('wf', 'loading'), t.a.c('wf', 'inactive')] + ), + O(t, 'active')) + : C(t.a)); + } + function q(t) { + (this.j = t), + (this.a = new P()), + (this.h = 0), + (this.f = this.g = !0); + } + function W(t, e, n, r, i) { + var o = 0 == --t.h; + (t.f || t.g) && + setTimeout(function() { + var t = i || null, + s = r || {}; + if (0 === n.length && o) C(e.a); + else { + (e.f += n.length), o && (e.j = o); + var u, + l = []; + for (u = 0; u < n.length; u++) { + var c = n[u], + f = s[c.c], + d = e.a, + p = c; + if ( + (d.g && + h(d.f, [d.a.c('wf', p.c, E(p).toString(), 'loading')]), + O(d, 'fontloading', p), + (d = null), + null === H) + ) + if (window.FontFace) { + p = /Gecko.*Firefox\/(\d+)/.exec( + window.navigator.userAgent + ); + var g = + /OS X.*Version\/10\..*Safari/.exec( + window.navigator.userAgent + ) && /Apple/.exec(window.navigator.vendor); + H = p ? 42 < parseInt(p[1], 10) : !g; + } else H = !1; + (d = H + ? new D(a(e.g, e), a(e.h, e), e.c, c, e.s, f) + : new R(a(e.g, e), a(e.h, e), e.c, c, e.s, t, f)), + l.push(d); + } + for (u = 0; u < l.length; u++) l[u].start(); + } + }, 0); + } + function X(t, e) { + (this.c = t), (this.a = e); + } + function Y(t, e) { + (this.c = t), (this.a = e); + } + function $(t, e) { + (this.c = t || K), (this.a = []), (this.f = []), (this.g = e || ''); + } + (G.prototype.g = function(t) { + var e = this.a; + e.g && + h( + e.f, + [e.a.c('wf', t.c, E(t).toString(), 'active')], + [ + e.a.c('wf', t.c, E(t).toString(), 'loading'), + e.a.c('wf', t.c, E(t).toString(), 'inactive') + ] + ), + O(e, 'fontactive', t), + (this.m = !0), + U(this); + }), + (G.prototype.h = function(t) { + var e = this.a; + if (e.g) { + var n = p(e.f, e.a.c('wf', t.c, E(t).toString(), 'active')), + r = [], + i = [e.a.c('wf', t.c, E(t).toString(), 'loading')]; + n || r.push(e.a.c('wf', t.c, E(t).toString(), 'inactive')), + h(e.f, r, i); + } + O(e, 'fontinactive', t), U(this); + }), + (q.prototype.load = function(t) { + (this.c = new u(this.j, t.context || this.j)), + (this.g = !1 !== t.events), + (this.f = !1 !== t.classes), + (function(t, e, n) { + var r = [], + i = n.timeout; + !(function(t) { + t.g && h(t.f, [t.a.c('wf', 'loading')]), O(t, 'loading'); + })(e); + r = (function(t, e, n) { + var r, + i = []; + for (r in e) + if (e.hasOwnProperty(r)) { + var o = t.c[r]; + o && i.push(o(e[r], n)); + } + return i; + })(t.a, n, t.c); + var o = new G(t.c, e, i); + for (t.h = r.length, e = 0, n = r.length; e < n; e++) + r[e].load(function(e, n, r) { + W(t, o, e, n, r); + }); + })(this, new T(this.c, t), t); + }), + (X.prototype.load = function(t) { + var e = this, + n = e.a.projectId, + r = e.a.version; + if (n) { + var i = e.c.o; + m( + this.c, + (e.a.api || 'https://fast.fonts.net/jsapi') + + '/' + + n + + '.js' + + (r ? '?v=' + r : ''), + function(r) { + r + ? t([]) + : ((i['__MonotypeConfiguration__' + n] = function() { + return e.a; + }), + (function e() { + if (i['__mti_fntLst' + n]) { + var r, + o = i['__mti_fntLst' + n](), + a = []; + if (o) + for (var s = 0; s < o.length; s++) { + var u = o[s].fontfamily; + null != o[s].fontStyle && null != o[s].fontWeight + ? ((r = o[s].fontStyle + o[s].fontWeight), + a.push(new w(u, r))) + : a.push(new w(u)); + } + t(a); + } else + setTimeout(function() { + e(); + }, 50); + })()); + } + ).id = '__MonotypeAPIScript__' + n; + } else t([]); + }), + (Y.prototype.load = function(t) { + var e, + n, + r = this.a.urls || [], + i = this.a.families || [], + o = this.a.testStrings || {}, + a = new v(); + for (e = 0, n = r.length; e < n; e++) g(this.c, r[e], y(a)); + var s = []; + for (e = 0, n = i.length; e < n; e++) + if ((r = i[e].split(':'))[1]) + for (var u = r[1].split(','), l = 0; l < u.length; l += 1) + s.push(new w(r[0], u[l])); + else s.push(new w(r[0])); + b(a, function() { + t(s, o); + }); + }); + var K = 'https://fonts.googleapis.com/css'; + function Q(t) { + (this.f = t), (this.a = []), (this.c = {}); + } + var Z = { + latin: 'BESbswy', + 'latin-ext': 'çöüğş', + cyrillic: 'йяЖ', + greek: 'αβΣ', + khmer: 'កខគ', + Hanuman: 'កខគ' + }, + J = { + thin: '1', + extralight: '2', + 'extra-light': '2', + ultralight: '2', + 'ultra-light': '2', + light: '3', + regular: '4', + book: '4', + medium: '5', + 'semi-bold': '6', + semibold: '6', + 'demi-bold': '6', + demibold: '6', + bold: '7', + 'extra-bold': '8', + extrabold: '8', + 'ultra-bold': '8', + ultrabold: '8', + black: '9', + heavy: '9', + l: '3', + r: '4', + b: '7' + }, + tt = { i: 'i', italic: 'i', n: 'n', normal: 'n' }, + et = /^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/; + function nt(t, e) { + (this.c = t), (this.a = e); + } + var rt = { Arimo: !0, Cousine: !0, Tinos: !0 }; + function it(t, e) { + (this.c = t), (this.a = e); + } + function ot(t, e) { + (this.c = t), (this.f = e), (this.a = []); + } + (nt.prototype.load = function(t) { + var e = new v(), + n = this.c, + r = new $(this.a.api, this.a.text), + i = this.a.families; + !(function(t, e) { + for (var n = e.length, r = 0; r < n; r++) { + var i = e[r].split(':'); + 3 == i.length && t.f.push(i.pop()); + var o = ''; + 2 == i.length && '' != i[1] && (o = ':'), t.a.push(i.join(o)); + } + })(r, i); + var o = new Q(i); + !(function(t) { + for (var e = t.f.length, n = 0; n < e; n++) { + var r = t.f[n].split(':'), + i = r[0].replace(/\+/g, ' '), + o = ['n4']; + if (2 <= r.length) { + var a; + if (((a = []), (s = r[1]))) + for ( + var s, u = (s = s.split(',')).length, l = 0; + l < u; + l++ + ) { + var c; + if ((c = s[l]).match(/^[\w-]+$/)) + if (null == (d = et.exec(c.toLowerCase()))) c = ''; + else { + if ( + ((c = null == (c = d[2]) || '' == c ? 'n' : tt[c]), + null == (d = d[1]) || '' == d) + ) + d = '4'; + else + var f = J[d], + d = f || (isNaN(d) ? '4' : d.substr(0, 1)); + c = [c, d].join(''); + } + else c = ''; + c && a.push(c); + } + 0 < a.length && (o = a), + 3 == r.length && + ((a = []), + 0 < (r = (r = r[2]) ? r.split(',') : a).length && + (r = Z[r[0]]) && + (t.c[i] = r)); + } + for ( + t.c[i] || ((r = Z[i]) && (t.c[i] = r)), r = 0; + r < o.length; + r += 1 + ) + t.a.push(new w(i, o[r])); + } + })(o), + g( + n, + (function(t) { + if (0 == t.a.length) throw Error('No fonts to load!'); + if (-1 != t.c.indexOf('kit=')) return t.c; + for (var e = t.a.length, n = [], r = 0; r < e; r++) + n.push(t.a[r].replace(/ /g, '+')); + return ( + (e = t.c + '?family=' + n.join('%7C')), + 0 < t.f.length && (e += '&subset=' + t.f.join(',')), + 0 < t.g.length && (e += '&text=' + encodeURIComponent(t.g)), + e + ); + })(r), + y(e) + ), + b(e, function() { + t(o.a, o.c, rt); + }); + }), + (it.prototype.load = function(t) { + var e = this.a.id, + n = this.c.o; + e + ? m( + this.c, + (this.a.api || 'https://use.typekit.net/') + '/' + e + '.js', + function(e) { + if (e) t([]); + else if ( + n.Typekit && + n.Typekit.config && + n.Typekit.config.fn + ) { + e = n.Typekit.config.fn; + for (var r = [], i = 0; i < e.length; i += 2) + for ( + var o = e[i], a = e[i + 1], s = 0; + s < a.length; + s++ + ) + r.push(new w(o, a[s])); + try { + n.Typekit.load({ events: !1, classes: !1, async: !0 }); + } catch (t) {} + t(r); + } + }, + 2e3 + ) + : t([]); + }), + (ot.prototype.load = function(t) { + var e = this.f.id, + n = this.c.o, + r = this; + e + ? (n.__webfontfontdeckmodule__ || + (n.__webfontfontdeckmodule__ = {}), + (n.__webfontfontdeckmodule__[e] = function(e, n) { + for (var i = 0, o = n.fonts.length; i < o; ++i) { + var a = n.fonts[i]; + r.a.push( + new w( + a.name, + A('font-weight:' + a.weight + ';font-style:' + a.style) + ) + ); + } + t(r.a); }), - n.d(e, 'timeout', function() { - return ei; + m( + this.c, + (this.f.api || 'https://f.fontdeck.com/s/css/js/') + + (function(t) { + return t.o.location.hostname || t.a.location.hostname; + })(this.c) + + '/' + + e + + '.js', + function(e) { + e && t([]); + } + )) + : t([]); + }); + var at = new q(window); + (at.a.c.custom = function(t, e) { + return new Y(e, t); + }), + (at.a.c.fontdeck = function(t, e) { + return new ot(e, t); + }), + (at.a.c.monotype = function(t, e) { + return new X(e, t); + }), + (at.a.c.typekit = function(t, e) { + return new it(e, t); + }), + (at.a.c.google = function(t, e) { + return new nt(e, t); + }); + var st = { load: a(at.load, at) }; + void 0 === + (r = function() { + return st; + }.call(e, n, e, t)) || (t.exports = r); + })(); + }, + function(t, e, n) { + var r, i, o, a, s, u, l, c, f; + window, + (t.exports = + ((r = n(0)), + (i = n(1)), + (o = n(462)), + (a = n(463)), + (s = n(337)), + (u = n(338)), + (l = n(435)), + (c = n(461)), + (f = n(7)), + (function(t) { + var e = {}; + function n(r) { + if (e[r]) return e[r].exports; + var i = (e[r] = { i: r, l: !1, exports: {} }); + return ( + t[r].call(i.exports, i, i.exports, n), (i.l = !0), i.exports + ); + } + return ( + (n.m = t), + (n.c = e), + (n.d = function(t, e, r) { + n.o(t, e) || + Object.defineProperty(t, e, { enumerable: !0, get: r }); + }), + (n.r = function(t) { + 'undefined' != typeof Symbol && + Symbol.toStringTag && + Object.defineProperty(t, Symbol.toStringTag, { + value: 'Module' + }), + Object.defineProperty(t, '__esModule', { value: !0 }); + }), + (n.t = function(t, e) { + if ((1 & e && (t = n(t)), 8 & e)) return t; + if (4 & e && 'object' == typeof t && t && t.__esModule) + return t; + var r = Object.create(null); + if ( + (n.r(r), + Object.defineProperty(r, 'default', { + enumerable: !0, + value: t + }), + 2 & e && 'string' != typeof t) + ) + for (var i in t) + n.d( + r, + i, + function(e) { + return t[e]; + }.bind(null, i) + ); + return r; + }), + (n.n = function(t) { + var e = + t && t.__esModule + ? function() { + return t.default; + } + : function() { + return t; + }; + return n.d(e, 'a', e), e; + }), + (n.o = function(t, e) { + return Object.prototype.hasOwnProperty.call(t, e); + }), + (n.p = ''), + n((n.s = 238)) + ); + })([ + function(t, e) { + t.exports = r; + }, + function(t, e) { + t.exports = i; + }, + function(t, e) { + t.exports = o; + }, + function(t, e) { + var n = Array.isArray; + t.exports = n; + }, + function(t, e) { + t.exports = function(t) { + var e = typeof t; + return null != t && ('object' == e || 'function' == e); + }; + }, + function(t, e, n) { + var r = n(55), + i = + 'object' == typeof self && + self && + self.Object === Object && + self, + o = r || i || Function('return this')(); + t.exports = o; + }, + function(t, e) { + t.exports = function(t) { + return null != t && 'object' == typeof t; + }; + }, + function(t, e, n) { + (function(e) { + var n, + r = 'Expected a function', + i = '__lodash_hash_undefined__', + o = 1 / 0, + a = 9007199254740991, + s = '[object Function]', + u = '[object GeneratorFunction]', + l = '[object Symbol]', + c = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, + f = /^\w*$/, + d = /^\./, + h = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, + p = /\\(\\)?/g, + g = /^\[object .+?Constructor\]$/, + m = /^(?:0|[1-9]\d*)$/, + v = 'object' == typeof e && e && e.Object === Object && e, + y = + 'object' == typeof self && + self && + self.Object === Object && + self, + b = v || y || Function('return this')(), + _ = Array.prototype, + x = Function.prototype, + w = Object.prototype, + S = b['__core-js_shared__'], + E = (n = /[^.]+$/.exec( + (S && S.keys && S.keys.IE_PROTO) || '' + )) + ? 'Symbol(src)_1.' + n + : '', + k = x.toString, + A = w.hasOwnProperty, + T = w.toString, + C = RegExp( + '^' + + k + .call(A) + .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') + .replace( + /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, + '$1.*?' + ) + + '$' + ), + O = b.Symbol, + P = _.splice, + M = B(b, 'Map'), + L = B(Object, 'create'), + j = O ? O.prototype : void 0, + D = j ? j.toString : void 0; + function R(t) { + var e = -1, + n = t ? t.length : 0; + for (this.clear(); ++e < n; ) { + var r = t[e]; + this.set(r[0], r[1]); + } + } + function z(t) { + var e = -1, + n = t ? t.length : 0; + for (this.clear(); ++e < n; ) { + var r = t[e]; + this.set(r[0], r[1]); + } + } + function N(t) { + var e = -1, + n = t ? t.length : 0; + for (this.clear(); ++e < n; ) { + var r = t[e]; + this.set(r[0], r[1]); + } + } + function I(t, e, n) { + var r = t[e]; + (A.call(t, e) && W(r, n) && (void 0 !== n || e in t)) || + (t[e] = n); + } + function F(t, e) { + for (var n = t.length; n--; ) if (W(t[n][0], e)) return n; + return -1; + } + function V(t, e) { + var n = t.__data__; + return (function(t) { + var e = typeof t; + return 'string' == e || + 'number' == e || + 'symbol' == e || + 'boolean' == e + ? '__proto__' !== t + : null === t; + })(e) + ? n['string' == typeof e ? 'string' : 'hash'] + : n.map; + } + function B(t, e) { + var n = (function(t, e) { + return null == t ? void 0 : t[e]; + })(t, e); + return (function(t) { + return ( + !(!Y(t) || ((e = t), E && E in e)) && + ((function(t) { + var e = Y(t) ? T.call(t) : ''; + return e == s || e == u; + })(t) || + (function(t) { + var e = !1; + if (null != t && 'function' != typeof t.toString) + try { + e = !!(t + ''); + } catch (t) {} + return e; + })(t) + ? C + : g + ).test( + (function(t) { + if (null != t) { + try { + return k.call(t); + } catch (t) {} + try { + return t + ''; + } catch (t) {} + } + return ''; + })(t) + ) + ); + var e; + })(n) + ? n + : void 0; + } + function G(t, e) { + return ( + !!(e = null == e ? a : e) && + ('number' == typeof t || m.test(t)) && + t > -1 && + t % 1 == 0 && + t < e + ); + } + (R.prototype.clear = function() { + this.__data__ = L ? L(null) : {}; }), - n.d(e, 'interval', function() { - return ni; + (R.prototype.delete = function(t) { + return this.has(t) && delete this.__data__[t]; + }), + (R.prototype.get = function(t) { + var e = this.__data__; + if (L) { + var n = e[t]; + return n === i ? void 0 : n; + } + return A.call(e, t) ? e[t] : void 0; + }), + (R.prototype.has = function(t) { + var e = this.__data__; + return L ? void 0 !== e[t] : A.call(e, t); + }), + (R.prototype.set = function(t, e) { + return (this.__data__[t] = L && void 0 === e ? i : e), this; + }), + (z.prototype.clear = function() { + this.__data__ = []; + }), + (z.prototype.delete = function(t) { + var e = this.__data__, + n = F(e, t); + return !( + n < 0 || + (n == e.length - 1 ? e.pop() : P.call(e, n, 1), 0) + ); + }), + (z.prototype.get = function(t) { + var e = this.__data__, + n = F(e, t); + return n < 0 ? void 0 : e[n][1]; + }), + (z.prototype.has = function(t) { + return F(this.__data__, t) > -1; + }), + (z.prototype.set = function(t, e) { + var n = this.__data__, + r = F(n, t); + return r < 0 ? n.push([t, e]) : (n[r][1] = e), this; + }), + (N.prototype.clear = function() { + this.__data__ = { + hash: new R(), + map: new (M || z)(), + string: new R() + }; + }), + (N.prototype.delete = function(t) { + return V(this, t).delete(t); + }), + (N.prototype.get = function(t) { + return V(this, t).get(t); + }), + (N.prototype.has = function(t) { + return V(this, t).has(t); + }), + (N.prototype.set = function(t, e) { + return V(this, t).set(t, e), this; + }); + var H = q(function(t) { + t = (function(t) { + return null == t + ? '' + : (function(t) { + if ('string' == typeof t) return t; + if ($(t)) return D ? D.call(t) : ''; + var e = t + ''; + return '0' == e && 1 / t == -o ? '-0' : e; + })(t); + })(t); + var e = []; + return ( + d.test(t) && e.push(''), + t.replace(h, function(t, n, r, i) { + e.push(r ? i.replace(p, '$1') : n || t); + }), + e + ); + }); + function U(t) { + if ('string' == typeof t || $(t)) return t; + var e = t + ''; + return '0' == e && 1 / t == -o ? '-0' : e; + } + function q(t, e) { + if ('function' != typeof t || (e && 'function' != typeof e)) + throw new TypeError(r); + var n = function() { + var r = arguments, + i = e ? e.apply(this, r) : r[0], + o = n.cache; + if (o.has(i)) return o.get(i); + var a = t.apply(this, r); + return (n.cache = o.set(i, a)), a; + }; + return (n.cache = new (q.Cache || N)()), n; + } + function W(t, e) { + return t === e || (t != t && e != e); + } + q.Cache = N; + var X = Array.isArray; + function Y(t) { + var e = typeof t; + return !!t && ('object' == e || 'function' == e); + } + function $(t) { + return ( + 'symbol' == typeof t || + ((function(t) { + return !!t && 'object' == typeof t; + })(t) && + T.call(t) == l) + ); + } + t.exports = function(t, e, n) { + return null == t + ? t + : (function(t, e, n, r) { + if (!Y(t)) return t; + for ( + var i = -1, + o = (e = (function(t, e) { + if (X(t)) return !1; + var n = typeof t; + return ( + !( + 'number' != n && + 'symbol' != n && + 'boolean' != n && + null != t && + !$(t) + ) || + f.test(t) || + !c.test(t) || + (null != e && (t in Object(e))) + ); + })(e, t) + ? [e] + : (function(t) { + return X(t) ? t : H(t); + })(e)).length, + a = o - 1, + s = t; + null != s && ++i < o; + + ) { + var u = U(e[i]), + l = n; + if (i != a) { + var d = s[u]; + void 0 === (l = r ? r(d, u, s) : void 0) && + (l = Y(d) ? d : G(e[i + 1]) ? [] : {}); + } + I(s, u, l), (s = s[u]); + } + return t; + })(t, e, n); + }; + }.call(this, n(36))); + }, + function(t, e) { + t.exports = a; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.ReactCSS = e.loop = e.handleActive = e.handleHover = e.hover = void 0); + var r = l(n(101)), + i = l(n(173)), + o = l(n(193)), + a = l(n(194)), + s = l(n(195)), + u = l(n(196)); + function l(t) { + return t && t.__esModule ? t : { default: t }; + } + (e.hover = a.default), + (e.handleHover = a.default), + (e.handleActive = s.default), + (e.loop = u.default); + var c = (e.ReactCSS = function(t) { + for ( + var e = arguments.length, n = Array(e > 1 ? e - 1 : 0), a = 1; + a < e; + a++ + ) + n[a - 1] = arguments[a]; + var s = (0, r.default)(n), + u = (0, i.default)(t, s); + return (0, o.default)(u); + }); + e.default = c; + }, + function(t, e, n) { + var r = n(15), + i = n(103), + o = n(104), + a = r ? r.toStringTag : void 0; + t.exports = function(t) { + return null == t + ? void 0 === t + ? '[object Undefined]' + : '[object Null]' + : a && a in Object(t) + ? i(t) + : o(t); + }; + }, + function(t, e, n) { + var r = n(126), + i = n(129); + t.exports = function(t, e) { + var n = i(t, e); + return r(n) ? n : void 0; + }; + }, + function(t, e, n) { + var r = n(45), + i = n(41); + t.exports = function(t) { + return null != t && i(t.length) && !r(t); + }; + }, + function(t, e, n) { + (function(t, n) { + var r = '__lodash_hash_undefined__', + i = 1, + o = 2, + a = 9007199254740991, + s = '[object Arguments]', + u = '[object Array]', + l = '[object AsyncFunction]', + c = '[object Boolean]', + f = '[object Date]', + d = '[object Error]', + h = '[object Function]', + p = '[object GeneratorFunction]', + g = '[object Map]', + m = '[object Number]', + v = '[object Null]', + y = '[object Object]', + b = '[object Proxy]', + _ = '[object RegExp]', + x = '[object Set]', + w = '[object String]', + S = '[object Symbol]', + E = '[object Undefined]', + k = '[object ArrayBuffer]', + A = '[object DataView]', + T = /^\[object .+?Constructor\]$/, + C = /^(?:0|[1-9]\d*)$/, + O = {}; + (O['[object Float32Array]'] = O['[object Float64Array]'] = O[ + '[object Int8Array]' + ] = O['[object Int16Array]'] = O['[object Int32Array]'] = O[ + '[object Uint8Array]' + ] = O['[object Uint8ClampedArray]'] = O[ + '[object Uint16Array]' + ] = O['[object Uint32Array]'] = !0), + (O[s] = O[u] = O[k] = O[c] = O[A] = O[f] = O[d] = O[h] = O[ + g + ] = O[m] = O[y] = O[_] = O[x] = O[w] = O[ + '[object WeakMap]' + ] = !1); + var P = 'object' == typeof t && t && t.Object === Object && t, + M = + 'object' == typeof self && + self && + self.Object === Object && + self, + L = P || M || Function('return this')(), + j = e && !e.nodeType && e, + D = j && 'object' == typeof n && n && !n.nodeType && n, + R = D && D.exports === j, + z = R && P.process, + N = (function() { + try { + return z && z.binding && z.binding('util'); + } catch (t) {} + })(), + I = N && N.isTypedArray; + function F(t, e) { + for (var n = -1, r = null == t ? 0 : t.length; ++n < r; ) + if (e(t[n], n, t)) return !0; + return !1; + } + function V(t) { + var e = -1, + n = Array(t.size); + return ( + t.forEach(function(t, r) { + n[++e] = [r, t]; + }), + n + ); + } + function B(t) { + var e = -1, + n = Array(t.size); + return ( + t.forEach(function(t) { + n[++e] = t; + }), + n + ); + } + var G, + H, + U, + q = Array.prototype, + W = Function.prototype, + X = Object.prototype, + Y = L['__core-js_shared__'], + $ = W.toString, + K = X.hasOwnProperty, + Q = (G = /[^.]+$/.exec( + (Y && Y.keys && Y.keys.IE_PROTO) || '' + )) + ? 'Symbol(src)_1.' + G + : '', + Z = X.toString, + J = RegExp( + '^' + + $.call(K) + .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') + .replace( + /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, + '$1.*?' + ) + + '$' + ), + tt = R ? L.Buffer : void 0, + et = L.Symbol, + nt = L.Uint8Array, + rt = X.propertyIsEnumerable, + it = q.splice, + ot = et ? et.toStringTag : void 0, + at = Object.getOwnPropertySymbols, + st = tt ? tt.isBuffer : void 0, + ut = + ((H = Object.keys), + (U = Object), + function(t) { + return H(U(t)); + }), + lt = Dt(L, 'DataView'), + ct = Dt(L, 'Map'), + ft = Dt(L, 'Promise'), + dt = Dt(L, 'Set'), + ht = Dt(L, 'WeakMap'), + pt = Dt(Object, 'create'), + gt = It(lt), + mt = It(ct), + vt = It(ft), + yt = It(dt), + bt = It(ht), + _t = et ? et.prototype : void 0, + xt = _t ? _t.valueOf : void 0; + function wt(t) { + var e = -1, + n = null == t ? 0 : t.length; + for (this.clear(); ++e < n; ) { + var r = t[e]; + this.set(r[0], r[1]); + } + } + function St(t) { + var e = -1, + n = null == t ? 0 : t.length; + for (this.clear(); ++e < n; ) { + var r = t[e]; + this.set(r[0], r[1]); + } + } + function Et(t) { + var e = -1, + n = null == t ? 0 : t.length; + for (this.clear(); ++e < n; ) { + var r = t[e]; + this.set(r[0], r[1]); + } + } + function kt(t) { + var e = -1, + n = null == t ? 0 : t.length; + for (this.__data__ = new Et(); ++e < n; ) this.add(t[e]); + } + function At(t) { + var e = (this.__data__ = new St(t)); + this.size = e.size; + } + function Tt(t, e) { + for (var n = t.length; n--; ) if (Ft(t[n][0], e)) return n; + return -1; + } + function Ct(t) { + return null == t + ? void 0 === t + ? E + : v + : ot && ot in Object(t) + ? (function(t) { + var e = K.call(t, ot), + n = t[ot]; + try { + t[ot] = void 0; + var r = !0; + } catch (t) {} + var i = Z.call(t); + return r && (e ? (t[ot] = n) : delete t[ot]), i; + })(t) + : (function(t) { + return Z.call(t); + })(t); + } + function Ot(t) { + return Wt(t) && Ct(t) == s; + } + function Pt(t, e, n, r, a) { + return ( + t === e || + (null == t || null == e || (!Wt(t) && !Wt(e)) + ? t != t && e != e + : (function(t, e, n, r, a, l) { + var h = Bt(t), + p = Bt(e), + v = h ? u : zt(t), + b = p ? u : zt(e), + E = (v = v == s ? y : v) == y, + T = (b = b == s ? y : b) == y, + C = v == b; + if (C && Gt(t)) { + if (!Gt(e)) return !1; + (h = !0), (E = !1); + } + if (C && !E) + return ( + l || (l = new At()), + h || Xt(t) + ? Mt(t, e, n, r, a, l) + : (function(t, e, n, r, a, s, u) { + switch (n) { + case A: + if ( + t.byteLength != e.byteLength || + t.byteOffset != e.byteOffset + ) + return !1; + (t = t.buffer), (e = e.buffer); + case k: + return !( + t.byteLength != e.byteLength || + !s(new nt(t), new nt(e)) + ); + case c: + case f: + case m: + return Ft(+t, +e); + case d: + return ( + t.name == e.name && + t.message == e.message + ); + case _: + case w: + return t == e + ''; + case g: + var l = V; + case x: + var h = r & i; + if ( + (l || (l = B), t.size != e.size && !h) + ) + return !1; + var p = u.get(t); + if (p) return p == e; + (r |= o), u.set(t, e); + var v = Mt(l(t), l(e), r, a, s, u); + return u.delete(t), v; + case S: + if (xt) return xt.call(t) == xt.call(e); + } + return !1; + })(t, e, v, n, r, a, l) + ); + if (!(n & i)) { + var O = E && K.call(t, '__wrapped__'), + P = T && K.call(e, '__wrapped__'); + if (O || P) { + var M = O ? t.value() : t, + L = P ? e.value() : e; + return l || (l = new At()), a(M, L, n, r, l); + } + } + return ( + !!C && + (l || (l = new At()), + (function(t, e, n, r, o, a) { + var s = n & i, + u = Lt(t), + l = u.length; + if (l != Lt(e).length && !s) return !1; + for (var c = l; c--; ) { + var f = u[c]; + if (!(s ? f in e : K.call(e, f))) return !1; + } + var d = a.get(t); + if (d && a.get(e)) return d == e; + var h = !0; + a.set(t, e), a.set(e, t); + for (var p = s; ++c < l; ) { + var g = t[(f = u[c])], + m = e[f]; + if (r) + var v = s + ? r(m, g, f, e, t, a) + : r(g, m, f, t, e, a); + if ( + !(void 0 === v + ? g === m || o(g, m, n, r, a) + : v) + ) { + h = !1; + break; + } + p || (p = 'constructor' == f); + } + if (h && !p) { + var y = t.constructor, + b = e.constructor; + y != b && + 'constructor' in t && + 'constructor' in e && + !( + 'function' == typeof y && + y instanceof y && + 'function' == typeof b && + b instanceof b + ) && + (h = !1); + } + return a.delete(t), a.delete(e), h; + })(t, e, n, r, a, l)) + ); + })(t, e, n, r, Pt, a)) + ); + } + function Mt(t, e, n, r, a, s) { + var u = n & i, + l = t.length, + c = e.length; + if (l != c && !(u && c > l)) return !1; + var f = s.get(t); + if (f && s.get(e)) return f == e; + var d = -1, + h = !0, + p = n & o ? new kt() : void 0; + for (s.set(t, e), s.set(e, t); ++d < l; ) { + var g = t[d], + m = e[d]; + if (r) + var v = u ? r(m, g, d, e, t, s) : r(g, m, d, t, e, s); + if (void 0 !== v) { + if (v) continue; + h = !1; + break; + } + if (p) { + if ( + !F(e, function(t, e) { + if ( + ((i = e), + !p.has(i) && (g === t || a(g, t, n, r, s))) + ) + return p.push(e); + var i; + }) + ) { + h = !1; + break; + } + } else if (g !== m && !a(g, m, n, r, s)) { + h = !1; + break; + } + } + return s.delete(t), s.delete(e), h; + } + function Lt(t) { + return (function(t, e, n) { + var r = e(t); + return Bt(t) + ? r + : (function(t, e) { + for ( + var n = -1, r = e.length, i = t.length; + ++n < r; + + ) + t[i + n] = e[n]; + return t; + })(r, n(t)); + })(t, Yt, Rt); + } + function jt(t, e) { + var n = t.__data__; + return (function(t) { + var e = typeof t; + return 'string' == e || + 'number' == e || + 'symbol' == e || + 'boolean' == e + ? '__proto__' !== t + : null === t; + })(e) + ? n['string' == typeof e ? 'string' : 'hash'] + : n.map; + } + function Dt(t, e) { + var n = (function(t, e) { + return null == t ? void 0 : t[e]; + })(t, e); + return (function(t) { + return ( + !( + !qt(t) || + (function(t) { + return !!Q && Q in t; + })(t) + ) && (Ht(t) ? J : T).test(It(t)) + ); + })(n) + ? n + : void 0; + } + (wt.prototype.clear = function() { + (this.__data__ = pt ? pt(null) : {}), (this.size = 0); }), - n.d(e, 'transition', function() { - return Ni; + (wt.prototype.delete = function(t) { + var e = this.has(t) && delete this.__data__[t]; + return (this.size -= e ? 1 : 0), e; + }), + (wt.prototype.get = function(t) { + var e = this.__data__; + if (pt) { + var n = e[t]; + return n === r ? void 0 : n; + } + return K.call(e, t) ? e[t] : void 0; + }), + (wt.prototype.has = function(t) { + var e = this.__data__; + return pt ? void 0 !== e[t] : K.call(e, t); + }), + (wt.prototype.set = function(t, e) { + var n = this.__data__; + return ( + (this.size += this.has(t) ? 0 : 1), + (n[t] = pt && void 0 === e ? r : e), + this + ); + }), + (St.prototype.clear = function() { + (this.__data__ = []), (this.size = 0); + }), + (St.prototype.delete = function(t) { + var e = this.__data__, + n = Tt(e, t); + return !( + n < 0 || + (n == e.length - 1 ? e.pop() : it.call(e, n, 1), + --this.size, + 0) + ); + }), + (St.prototype.get = function(t) { + var e = this.__data__, + n = Tt(e, t); + return n < 0 ? void 0 : e[n][1]; + }), + (St.prototype.has = function(t) { + return Tt(this.__data__, t) > -1; + }), + (St.prototype.set = function(t, e) { + var n = this.__data__, + r = Tt(n, t); + return ( + r < 0 ? (++this.size, n.push([t, e])) : (n[r][1] = e), + this + ); + }), + (Et.prototype.clear = function() { + (this.size = 0), + (this.__data__ = { + hash: new wt(), + map: new (ct || St)(), + string: new wt() + }); + }), + (Et.prototype.delete = function(t) { + var e = jt(this, t).delete(t); + return (this.size -= e ? 1 : 0), e; + }), + (Et.prototype.get = function(t) { + return jt(this, t).get(t); + }), + (Et.prototype.has = function(t) { + return jt(this, t).has(t); + }), + (Et.prototype.set = function(t, e) { + var n = jt(this, t), + r = n.size; + return ( + n.set(t, e), (this.size += n.size == r ? 0 : 1), this + ); + }), + (kt.prototype.add = kt.prototype.push = function(t) { + return this.__data__.set(t, r), this; + }), + (kt.prototype.has = function(t) { + return this.__data__.has(t); + }), + (At.prototype.clear = function() { + (this.__data__ = new St()), (this.size = 0); + }), + (At.prototype.delete = function(t) { + var e = this.__data__, + n = e.delete(t); + return (this.size = e.size), n; + }), + (At.prototype.get = function(t) { + return this.__data__.get(t); + }), + (At.prototype.has = function(t) { + return this.__data__.has(t); + }), + (At.prototype.set = function(t, e) { + var n = this.__data__; + if (n instanceof St) { + var r = n.__data__; + if (!ct || r.length < 199) + return r.push([t, e]), (this.size = ++n.size), this; + n = this.__data__ = new Et(r); + } + return n.set(t, e), (this.size = n.size), this; + }); + var Rt = at + ? function(t) { + return null == t + ? [] + : ((t = Object(t)), + (function(t, e) { + for ( + var n = -1, + r = null == t ? 0 : t.length, + i = 0, + o = []; + ++n < r; + + ) { + var a = t[n]; + e(a) && (o[i++] = a); + } + return o; + })(at(t), function(e) { + return rt.call(t, e); + })); + } + : function() { + return []; + }, + zt = Ct; + function Nt(t, e) { + return ( + !!(e = null == e ? a : e) && + ('number' == typeof t || C.test(t)) && + t > -1 && + t % 1 == 0 && + t < e + ); + } + function It(t) { + if (null != t) { + try { + return $.call(t); + } catch (t) {} + try { + return t + ''; + } catch (t) {} + } + return ''; + } + function Ft(t, e) { + return t === e || (t != t && e != e); + } + ((lt && zt(new lt(new ArrayBuffer(1))) != A) || + (ct && zt(new ct()) != g) || + (ft && '[object Promise]' != zt(ft.resolve())) || + (dt && zt(new dt()) != x) || + (ht && '[object WeakMap]' != zt(new ht()))) && + (zt = function(t) { + var e = Ct(t), + n = e == y ? t.constructor : void 0, + r = n ? It(n) : ''; + if (r) + switch (r) { + case gt: + return A; + case mt: + return g; + case vt: + return '[object Promise]'; + case yt: + return x; + case bt: + return '[object WeakMap]'; + } + return e; + }); + var Vt = Ot( + (function() { + return arguments; + })() + ) + ? Ot + : function(t) { + return ( + Wt(t) && K.call(t, 'callee') && !rt.call(t, 'callee') + ); + }, + Bt = Array.isArray, + Gt = + st || + function() { + return !1; + }; + function Ht(t) { + if (!qt(t)) return !1; + var e = Ct(t); + return e == h || e == p || e == l || e == b; + } + function Ut(t) { + return 'number' == typeof t && t > -1 && t % 1 == 0 && t <= a; + } + function qt(t) { + var e = typeof t; + return null != t && ('object' == e || 'function' == e); + } + function Wt(t) { + return null != t && 'object' == typeof t; + } + var Xt = I + ? (function(t) { + return function(e) { + return t(e); + }; + })(I) + : function(t) { + return Wt(t) && Ut(t.length) && !!O[Ct(t)]; + }; + function Yt(t) { + return (function(t) { + return null != t && Ut(t.length) && !Ht(t); + })(t) + ? (function(t, e) { + var n = Bt(t), + r = !n && Vt(t), + i = !n && !r && Gt(t), + o = !n && !r && !i && Xt(t), + a = n || r || i || o, + s = a + ? (function(t, e) { + for (var n = -1, r = Array(t); ++n < t; ) + r[n] = e(n); + return r; + })(t.length, String) + : [], + u = s.length; + for (var l in t) + (!e && !K.call(t, l)) || + (a && + ('length' == l || + (i && ('offset' == l || 'parent' == l)) || + (o && + ('buffer' == l || + 'byteLength' == l || + 'byteOffset' == l)) || + Nt(l, u))) || + s.push(l); + return s; + })(t) + : (function(t) { + if ( + !(function(t) { + var e = t && t.constructor; + return ( + t === + (('function' == typeof e && e.prototype) || X) + ); + })(t) + ) + return ut(t); + var e = []; + for (var n in Object(t)) + K.call(t, n) && 'constructor' != n && e.push(n); + return e; + })(t); + } + n.exports = function(t, e) { + return Pt(t, e); + }; + }.call(this, n(36), n(20)(t))); + }, + function(t, e) { + t.exports = s; + }, + function(t, e, n) { + var r = n(5).Symbol; + t.exports = r; + }, + function(t, e, n) { + var r = n(58), + i = n(110), + o = n(12); + t.exports = function(t) { + return o(t) ? r(t) : i(t); + }; + }, + function(t, e) { + t.exports = function(t, e) { + return t === e || (t != t && e != e); + }; + }, + function(t, e, n) { + var r = n(77), + i = n(51); + t.exports = function(t, e, n, o) { + var a = !n; + n || (n = {}); + for (var s = -1, u = e.length; ++s < u; ) { + var l = e[s], + c = o ? o(n[l], t[l], l, n, t) : void 0; + void 0 === c && (c = t[l]), a ? i(n, l, c) : r(n, l, c); + } + return n; + }; + }, + function(t, e) { + t.exports = u; + }, + function(t, e) { + t.exports = function(t) { + return ( + t.webpackPolyfill || + ((t.deprecate = function() {}), + (t.paths = []), + t.children || (t.children = []), + Object.defineProperty(t, 'loaded', { + enumerable: !0, + get: function() { + return t.l; + } + }), + Object.defineProperty(t, 'id', { + enumerable: !0, + get: function() { + return t.i; + } + }), + (t.webpackPolyfill = 1)), + t + ); + }; + }, + function(t, e, n) { + (function(t) { + var r = n(5), + i = n(108), + o = e && !e.nodeType && e, + a = o && 'object' == typeof t && t && !t.nodeType && t, + s = a && a.exports === o ? r.Buffer : void 0, + u = (s ? s.isBuffer : void 0) || i; + t.exports = u; + }.call(this, n(20)(t))); + }, + function(t, e) { + t.exports = function(t) { + return t; + }; + }, + function(t, e, n) { + var r = n(24), + i = n(121), + o = n(122), + a = n(123), + s = n(124), + u = n(125); + function l(t) { + var e = (this.__data__ = new r(t)); + this.size = e.size; + } + (l.prototype.clear = i), + (l.prototype.delete = o), + (l.prototype.get = a), + (l.prototype.has = s), + (l.prototype.set = u), + (t.exports = l); + }, + function(t, e, n) { + var r = n(116), + i = n(117), + o = n(118), + a = n(119), + s = n(120); + function u(t) { + var e = -1, + n = null == t ? 0 : t.length; + for (this.clear(); ++e < n; ) { + var r = t[e]; + this.set(r[0], r[1]); + } + } + (u.prototype.clear = r), + (u.prototype.delete = i), + (u.prototype.get = o), + (u.prototype.has = a), + (u.prototype.set = s), + (t.exports = u); + }, + function(t, e, n) { + var r = n(17); + t.exports = function(t, e) { + for (var n = t.length; n--; ) if (r(t[n][0], e)) return n; + return -1; + }; + }, + function(t, e, n) { + var r = n(11)(Object, 'create'); + t.exports = r; + }, + function(t, e, n) { + var r = n(138); + t.exports = function(t, e) { + var n = t.__data__; + return r(e) + ? n['string' == typeof e ? 'string' : 'hash'] + : n.map; + }; + }, + function(t, e, n) { + var r = n(153), + i = n(47), + o = n(154), + a = n(155), + s = n(156), + u = n(10), + l = n(63), + c = l(r), + f = l(i), + d = l(o), + h = l(a), + p = l(s), + g = u; + ((r && '[object DataView]' != g(new r(new ArrayBuffer(1)))) || + (i && '[object Map]' != g(new i())) || + (o && '[object Promise]' != g(o.resolve())) || + (a && '[object Set]' != g(new a())) || + (s && '[object WeakMap]' != g(new s()))) && + (g = function(t) { + var e = u(t), + n = '[object Object]' == e ? t.constructor : void 0, + r = n ? l(n) : ''; + if (r) + switch (r) { + case c: + return '[object DataView]'; + case f: + return '[object Map]'; + case d: + return '[object Promise]'; + case h: + return '[object Set]'; + case p: + return '[object WeakMap]'; + } + return e; }), - n.d(e, 'active', function() { - return _o; + (t.exports = g); + }, + function(t, e, n) { + var r = n(10), + i = n(6); + t.exports = function(t) { + return ( + 'symbol' == typeof t || (i(t) && '[object Symbol]' == r(t)) + ); + }; + }, + function(t, e, n) { + var r = n(29); + t.exports = function(t) { + if ('string' == typeof t || r(t)) return t; + var e = t + ''; + return '0' == e && 1 / t == -1 / 0 ? '-0' : e; + }; + }, + function(t, e, n) { + var r = n(58), + i = n(178), + o = n(12); + t.exports = function(t) { + return o(t) ? r(t, !0) : i(t); + }; + }, + function(t, e) { + t.exports = function(t) { + var e = []; + return ( + (e.toString = function() { + return this.map(function(e) { + var n = (function(t, e) { + var n, + r = t[1] || '', + i = t[3]; + if (!i) return r; + if (e && 'function' == typeof btoa) { + var o = + ((n = i), + '/*# sourceMappingURL=data:application/json;charset=utf-8;base64,' + + btoa( + unescape( + encodeURIComponent(JSON.stringify(n)) + ) + ) + + ' */'), + a = i.sources.map(function(t) { + return ( + '/*# sourceURL=' + i.sourceRoot + t + ' */' + ); + }); + return [r] + .concat(a) + .concat([o]) + .join('\n'); + } + return [r].join('\n'); + })(e, t); + return e[2] ? '@media ' + e[2] + '{' + n + '}' : n; + }).join(''); + }), + (e.i = function(t, n) { + 'string' == typeof t && (t = [[null, t, '']]); + for (var r = {}, i = 0; i < this.length; i++) { + var o = this[i][0]; + 'number' == typeof o && (r[o] = !0); + } + for (i = 0; i < t.length; i++) { + var a = t[i]; + ('number' == typeof a[0] && r[a[0]]) || + (n && !a[2] + ? (a[2] = n) + : n && (a[2] = '(' + a[2] + ') and (' + n + ')'), + e.push(a)); + } + }), + e + ); + }; + }, + function(t, e, n) { + var r, + i, + o = {}, + a = + ((r = function() { + return window && document && document.all && !window.atob; + }), + function() { + return void 0 === i && (i = r.apply(this, arguments)), i; + }), + s = function(t) { + return document.querySelector(t); + }, + u = (function(t) { + var e = {}; + return function(t) { + if ('function' == typeof t) return t(); + if (void 0 === e[t]) { + var n = s.call(this, t); + if ( + window.HTMLIFrameElement && + n instanceof window.HTMLIFrameElement + ) + try { + n = n.contentDocument.head; + } catch (t) { + n = null; + } + e[t] = n; + } + return e[t]; + }; + })(), + l = null, + c = 0, + f = [], + d = n(231); + function h(t, e) { + for (var n = 0; n < t.length; n++) { + var r = t[n], + i = o[r.id]; + if (i) { + i.refs++; + for (var a = 0; a < i.parts.length; a++) + i.parts[a](r.parts[a]); + for (; a < r.parts.length; a++) + i.parts.push(b(r.parts[a], e)); + } else { + var s = []; + for (a = 0; a < r.parts.length; a++) + s.push(b(r.parts[a], e)); + o[r.id] = { id: r.id, refs: 1, parts: s }; + } + } + } + function p(t, e) { + for (var n = [], r = {}, i = 0; i < t.length; i++) { + var o = t[i], + a = e.base ? o[0] + e.base : o[0], + s = { css: o[1], media: o[2], sourceMap: o[3] }; + r[a] + ? r[a].parts.push(s) + : n.push((r[a] = { id: a, parts: [s] })); + } + return n; + } + function g(t, e) { + var n = u(t.insertInto); + if (!n) + throw new Error( + "Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid." + ); + var r = f[f.length - 1]; + if ('top' === t.insertAt) + r + ? r.nextSibling + ? n.insertBefore(e, r.nextSibling) + : n.appendChild(e) + : n.insertBefore(e, n.firstChild), + f.push(e); + else if ('bottom' === t.insertAt) n.appendChild(e); + else { + if ('object' != typeof t.insertAt || !t.insertAt.before) + throw new Error( + "[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n" + ); + var i = u(t.insertInto + ' ' + t.insertAt.before); + n.insertBefore(e, i); + } + } + function m(t) { + if (null === t.parentNode) return !1; + t.parentNode.removeChild(t); + var e = f.indexOf(t); + e >= 0 && f.splice(e, 1); + } + function v(t) { + var e = document.createElement('style'); + return (t.attrs.type = 'text/css'), y(e, t.attrs), g(t, e), e; + } + function y(t, e) { + Object.keys(e).forEach(function(n) { + t.setAttribute(n, e[n]); + }); + } + function b(t, e) { + var n, r, i, o; + if (e.transform && t.css) { + if (!(o = e.transform(t.css))) return function() {}; + t.css = o; + } + if (e.singleton) { + var a = c++; + (n = l || (l = v(e))), + (r = w.bind(null, n, a, !1)), + (i = w.bind(null, n, a, !0)); + } else + t.sourceMap && + 'function' == typeof URL && + 'function' == typeof URL.createObjectURL && + 'function' == typeof URL.revokeObjectURL && + 'function' == typeof Blob && + 'function' == typeof btoa + ? ((n = (function(t) { + var e = document.createElement('link'); + return ( + (t.attrs.type = 'text/css'), + (t.attrs.rel = 'stylesheet'), + y(e, t.attrs), + g(t, e), + e + ); + })(e)), + (r = E.bind(null, n, e)), + (i = function() { + m(n), n.href && URL.revokeObjectURL(n.href); + })) + : ((n = v(e)), + (r = S.bind(null, n)), + (i = function() { + m(n); + })); + return ( + r(t), + function(e) { + if (e) { + if ( + e.css === t.css && + e.media === t.media && + e.sourceMap === t.sourceMap + ) + return; + r((t = e)); + } else i(); + } + ); + } + t.exports = function(t, e) { + if ( + 'undefined' != typeof DEBUG && + DEBUG && + 'object' != typeof document + ) + throw new Error( + 'The style-loader cannot be used in a non-browser environment' + ); + ((e = e || {}).attrs = + 'object' == typeof e.attrs ? e.attrs : {}), + e.singleton || + 'boolean' == typeof e.singleton || + (e.singleton = a()), + e.insertInto || (e.insertInto = 'head'), + e.insertAt || (e.insertAt = 'bottom'); + var n = p(t, e); + return ( + h(n, e), + function(t) { + for (var r = [], i = 0; i < n.length; i++) { + var a = n[i]; + (s = o[a.id]).refs--, r.push(s); + } + for (t && h(p(t, e), e), i = 0; i < r.length; i++) { + var s; + if (0 === (s = r[i]).refs) { + for (var u = 0; u < s.parts.length; u++) s.parts[u](); + delete o[s.id]; + } + } + } + ); + }; + var _, + x = + ((_ = []), + function(t, e) { + return (_[t] = e), _.filter(Boolean).join('\n'); + }); + function w(t, e, n, r) { + var i = n ? '' : r.css; + if (t.styleSheet) t.styleSheet.cssText = x(e, i); + else { + var o = document.createTextNode(i), + a = t.childNodes; + a[e] && t.removeChild(a[e]), + a.length ? t.insertBefore(o, a[e]) : t.appendChild(o); + } + } + function S(t, e) { + var n = e.css, + r = e.media; + if ((r && t.setAttribute('media', r), t.styleSheet)) + t.styleSheet.cssText = n; + else { + for (; t.firstChild; ) t.removeChild(t.firstChild); + t.appendChild(document.createTextNode(n)); + } + } + function E(t, e, n) { + var r = n.css, + i = n.sourceMap, + o = void 0 === e.convertToAbsoluteUrls && i; + (e.convertToAbsoluteUrls || o) && (r = d(r)), + i && + (r += + '\n/*# sourceMappingURL=data:application/json;base64,' + + btoa(unescape(encodeURIComponent(JSON.stringify(i)))) + + ' */'); + var a = new Blob([r], { type: 'text/css' }), + s = t.href; + (t.href = URL.createObjectURL(a)), s && URL.revokeObjectURL(s); + } + }, + function(t, e, n) { + !(function(t, e, n, r) { + 'use strict'; + function i(t, e) { + return t((e = { exports: {} }), e.exports), e.exports; + } + n = n && n.hasOwnProperty('default') ? n.default : n; + var o = i(function(t) { + function e() { + return ( + (t.exports = e = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }), + e.apply(this, arguments) + ); + } + t.exports = e; + }), + a = function(t, e) { + return ( + (function(t) { + if (Array.isArray(t)) return t; + })(t) || + (function(t, e) { + var n = [], + r = !0, + i = !1, + o = void 0; + try { + for ( + var a, s = t[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !e || n.length !== e); + r = !0 + ); + } catch (t) { + (i = !0), (o = t); + } finally { + try { + r || null == s.return || s.return(); + } finally { + if (i) throw o; + } + } + return n; + })(t, e) || + (function() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' + ); + })() + ); + }, + s = function(t, e, n) { + return ( + e in t + ? Object.defineProperty(t, e, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (t[e] = n), + t + ); + }, + u = function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = null != arguments[e] ? arguments[e] : {}, + r = Object.keys(n); + 'function' == typeof Object.getOwnPropertySymbols && + (r = r.concat( + Object.getOwnPropertySymbols(n).filter(function(t) { + return Object.getOwnPropertyDescriptor( + n, + t + ).enumerable; + }) + )), + r.forEach(function(e) { + s(t, e, n[e]); + }); + } + return t; + }, + l = function(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + }; + function c(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + var f = function(t, e, n) { + return e && c(t.prototype, e), n && c(t, n), t; + }, + d = i(function(t) { + function e(t) { + return (e = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(t) { + return typeof t; + } + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t; + })(t); + } + function n(r) { + return ( + 'function' == typeof Symbol && + 'symbol' === e(Symbol.iterator) + ? (t.exports = n = function(t) { + return e(t); + }) + : (t.exports = n = function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : e(t); + }), + n(r) + ); + } + t.exports = n; + }), + h = function(t) { + if (void 0 === t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return t; + }, + p = function(t, e) { + return !e || ('object' !== d(e) && 'function' != typeof e) + ? h(t) + : e; + }, + g = i(function(t) { + function e(n) { + return ( + (t.exports = e = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }), + e(n) + ); + } + t.exports = e; + }), + m = i(function(t) { + function e(n, r) { + return ( + (t.exports = e = + Object.setPrototypeOf || + function(t, e) { + return (t.__proto__ = e), t; + }), + e(n, r) + ); + } + t.exports = e; + }), + v = function(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { value: t, writable: !0, configurable: !0 } + })), + e && m(t, e); + }, + y = function(t, e, n, r, i, o, a, s) { + if (void 0 === e) + throw new Error( + 'invariant requires an error message argument' + ); + if (!t) { + var u; + if (void 0 === e) + u = new Error( + 'Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.' + ); + else { + var l = [n, r, i, o, a, s], + c = 0; + (u = new Error( + e.replace(/%s/g, function() { + return l[c++]; + }) + )).name = 'Invariant Violation'; + } + throw ((u.framesToPop = 1), u); + } + }, + b = (function() { + function t() { + l(this, t), s(this, 'refs', {}); + } + return ( + f(t, [ + { + key: 'add', + value: function(t, e) { + this.refs[t] || (this.refs[t] = []), + this.refs[t].push(e); + } + }, + { + key: 'remove', + value: function(t, e) { + var n = this.getIndex(t, e); + -1 !== n && this.refs[t].splice(n, 1); + } + }, + { + key: 'isActive', + value: function() { + return this.active; + } + }, + { + key: 'getActive', + value: function() { + var t = this; + return this.refs[this.active.collection].find( + function(e) { + return ( + e.node.sortableInfo.index == t.active.index + ); + } + ); + } + }, + { + key: 'getIndex', + value: function(t, e) { + return this.refs[t].indexOf(e); + } + }, + { + key: 'getOrderedRefs', + value: function() { + var t = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : this.active.collection; + return this.refs[t].sort(_); + } + } + ]), + t + ); + })(); + function _(t, e) { + return t.node.sortableInfo.index - e.node.sortableInfo.index; + } + var x = function(t) { + return ( + (function(t) { + if (Array.isArray(t)) { + for ( + var e = 0, n = new Array(t.length); + e < t.length; + e++ + ) + n[e] = t[e]; + return n; + } + })(t) || + (function(t) { + if ( + Symbol.iterator in Object(t) || + '[object Arguments]' === + Object.prototype.toString.call(t) + ) + return Array.from(t); + })(t) || + (function() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance' + ); + })() + ); + }; + function w(t) { + for ( + var e = arguments.length, + n = new Array(e > 1 ? e - 1 : 0), + r = 1; + r < e; + r++ + ) + n[r - 1] = arguments[r]; + return Object.keys(t).reduce(function(e, r) { + return -1 === n.indexOf(r) && (e[r] = t[r]), e; + }, {}); + } + var S = { + end: ['touchend', 'touchcancel', 'mouseup'], + move: ['touchmove', 'mousemove'], + start: ['touchstart', 'mousedown'] + }, + E = (function() { + if ( + 'undefined' == typeof window || + 'undefined' == typeof document + ) + return ''; + var t = window.getComputedStyle( + document.documentElement, + '' + ) || ['-moz-hidden-iframe'], + e = (Array.prototype.slice + .call(t) + .join('') + .match(/-(moz|webkit|ms)-/) || + ('' === t.OLink && ['', 'o']))[1]; + switch (e) { + case 'ms': + return 'ms'; + default: + return e && e.length + ? e[0].toUpperCase() + e.substr(1) + : ''; + } + })(); + function k(t, e) { + Object.keys(e).forEach(function(n) { + t.style[n] = e[n]; + }); + } + function A(t, e) { + t.style[''.concat(E, 'Transform')] = + null == e + ? '' + : 'translate3d('.concat(e.x, 'px,').concat(e.y, 'px,0)'); + } + function T(t, e) { + t.style[''.concat(E, 'TransitionDuration')] = + null == e ? '' : ''.concat(e, 'ms'); + } + function C(t, e) { + for (; t; ) { + if (e(t)) return t; + t = t.parentNode; + } + return null; + } + function O(t, e, n) { + return Math.max(t, Math.min(n, e)); + } + function P(t) { + return 'px' === t.substr(-2) ? parseFloat(t) : 0; + } + function M(t, e) { + var n = e.displayName || e.name; + return n ? ''.concat(t, '(').concat(n, ')') : t; + } + function L(t, e) { + var n = t.getBoundingClientRect(); + return { top: n.top + e.top, left: n.left + e.left }; + } + function j(t) { + return t.touches && t.touches.length + ? { x: t.touches[0].pageX, y: t.touches[0].pageY } + : t.changedTouches && t.changedTouches.length + ? { + x: t.changedTouches[0].pageX, + y: t.changedTouches[0].pageY + } + : { x: t.pageX, y: t.pageY }; + } + function D(t, e) { + var n = + arguments.length > 2 && void 0 !== arguments[2] + ? arguments[2] + : { left: 0, top: 0 }; + if (t) { + var r = { + left: n.left + t.offsetLeft, + top: n.top + t.offsetTop + }; + return t.parentNode === e ? r : D(t.parentNode, e, r); + } + } + function R(t) { + var e = t.lockOffset, + n = t.width, + r = t.height, + i = e, + o = e, + a = 'px'; + if ('string' == typeof e) { + var s = /^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(e); + y( + null !== s, + 'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s', + e + ), + (i = parseFloat(e)), + (o = parseFloat(e)), + (a = s[1]); + } + return ( + y( + isFinite(i) && isFinite(o), + 'lockOffset value should be a finite. Given %s', + e + ), + '%' === a && ((i = (i * n) / 100), (o = (o * r) / 100)), + { x: i, y: o } + ); + } + var z = { + TAB: 9, + ESC: 27, + SPACE: 32, + LEFT: 37, + UP: 38, + RIGHT: 39, + DOWN: 40 + }, + N = { + Anchor: 'A', + Button: 'BUTTON', + Canvas: 'CANVAS', + Input: 'INPUT', + Option: 'OPTION', + Textarea: 'TEXTAREA', + Select: 'SELECT' + }; + function I(t) { + var n, + i, + a = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : { withRef: !1 }; + return ( + (i = n = (function(n) { + function i() { + return l(this, i), p(this, g(i).apply(this, arguments)); + } + return ( + v(i, n), + f(i, [ + { + key: 'componentDidMount', + value: function() { + r.findDOMNode(this).sortableHandle = !0; + } + }, + { + key: 'getWrappedInstance', + value: function() { + return ( + y( + a.withRef, + 'To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call' + ), + this.refs.wrappedInstance + ); + } + }, + { + key: 'render', + value: function() { + var n = a.withRef ? 'wrappedInstance' : null; + return e.createElement( + t, + o({ ref: n }, this.props) + ); + } + } + ]), + i + ); + })(e.Component)), + s(n, 'displayName', M('sortableHandle', t)), + i + ); + } + function F(t) { + return null != t.sortableHandle; + } + var V = (function() { + function t(e, n) { + l(this, t), + (this.container = e), + (this.onScrollCallback = n); + } + return ( + f(t, [ + { + key: 'clear', + value: function() { + clearInterval(this.interval), + (this.interval = null); + } + }, + { + key: 'update', + value: function(t) { + var e = this, + n = t.translate, + r = t.minTranslate, + i = t.maxTranslate, + o = t.width, + a = t.height, + s = { x: 0, y: 0 }, + u = { x: 1, y: 1 }, + l = this.container, + c = l.scrollTop, + f = l.scrollLeft, + d = l.scrollHeight, + h = l.scrollWidth, + p = 0 === c, + g = d - c - l.clientHeight == 0, + m = 0 === f, + v = h - f - l.clientWidth == 0; + n.y >= i.y - a / 2 && !g + ? ((s.y = 1), + (u.y = 10 * Math.abs((i.y - a / 2 - n.y) / a))) + : n.x >= i.x - o / 2 && !v + ? ((s.x = 1), + (u.x = 10 * Math.abs((i.x - o / 2 - n.x) / o))) + : n.y <= r.y + a / 2 && !p + ? ((s.y = -1), + (u.y = 10 * Math.abs((n.y - a / 2 - r.y) / a))) + : n.x <= r.x + o / 2 && + !m && + ((s.x = -1), + (u.x = 10 * Math.abs((n.x - o / 2 - r.x) / o))), + this.interval && + (this.clear(), (this.isAutoScrolling = !1)), + (0 === s.x && 0 === s.y) || + (this.interval = setInterval(function() { + e.isAutoScrolling = !0; + var t = { left: u.x * s.x, top: u.y * s.y }; + (e.container.scrollTop += t.top), + (e.container.scrollLeft += t.left), + e.onScrollCallback(t); + }, 5)); + } + } + ]), + t + ); + })(), + B = { + axis: n.oneOf(['x', 'y', 'xy']), + contentWindow: n.any, + disableAutoscroll: n.bool, + distance: n.number, + getContainer: n.func, + getHelperDimensions: n.func, + helperClass: n.string, + helperContainer: n.oneOfType([ + n.func, + 'undefined' == typeof HTMLElement + ? n.any + : n.instanceOf(HTMLElement) + ]), + hideSortableGhost: n.bool, + keyboardSortingTransitionDuration: n.number, + lockAxis: n.string, + lockOffset: n.oneOfType([ + n.number, + n.string, + n.arrayOf(n.oneOfType([n.number, n.string])) + ]), + lockToContainerEdges: n.bool, + onSortEnd: n.func, + onSortMove: n.func, + onSortOver: n.func, + onSortStart: n.func, + pressDelay: n.number, + pressThreshold: n.number, + shouldCancelStart: n.func, + transitionDuration: n.number, + updateBeforeSortStart: n.func, + useDragHandle: n.bool, + useWindowAsScrollContainer: n.bool + }, + G = { + axis: 'y', + disableAutoscroll: !1, + distance: 0, + getHelperDimensions: function(t) { + var e = t.node; + return { height: e.offsetHeight, width: e.offsetWidth }; + }, + hideSortableGhost: !0, + lockOffset: '50%', + lockToContainerEdges: !1, + pressDelay: 0, + pressThreshold: 5, + shouldCancelStart: function(t) { + return ( + -1 !== + [ + N.Input, + N.Textarea, + N.Select, + N.Option, + N.Button + ].indexOf(t.target.tagName) || + !!C(t.target, function(t) { + return 'true' === t.contentEditable; + }) + ); + }, + transitionDuration: 300, + useWindowAsScrollContainer: !1 + }, + H = Object.keys(B); + function U(t) { + var i, + c, + d = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : { withRef: !1 }; + return ( + (c = i = (function(n) { + function i(t) { + var e; + return ( + l(this, i), + (e = p(this, g(i).call(this, t))), + s(h(h(e)), 'handleStart', function(t) { + var n = e.props, + r = n.distance, + i = n.shouldCancelStart; + if (2 !== t.button && !i(t)) { + (e.touched = !0), (e.position = j(t)); + var o = C(t.target, function(t) { + return null != t.sortableInfo; + }); + if ( + o && + o.sortableInfo && + e.nodeIsChild(o) && + !e.state.sorting + ) { + var a = e.props.useDragHandle, + s = o.sortableInfo, + u = s.index, + l = s.collection; + if (s.disabled) return; + if (a && !C(t.target, F)) return; + (e.manager.active = { + collection: l, + index: u + }), + (function(t) { + return ( + (t.touches && t.touches.length) || + (t.changedTouches && + t.changedTouches.length) + ); + })(t) || + t.target.tagName !== N.Anchor || + t.preventDefault(), + r || + (0 === e.props.pressDelay + ? e.handlePress(t) + : (e.pressTimer = setTimeout(function() { + return e.handlePress(t); + }, e.props.pressDelay))); + } + } + }), + s(h(h(e)), 'nodeIsChild', function(t) { + return t.sortableInfo.manager === e.manager; + }), + s(h(h(e)), 'handleMove', function(t) { + var n = e.props, + r = n.distance, + i = n.pressThreshold; + if ( + !e.state.sorting && + e.touched && + !e._awaitingUpdateBeforeSortStart + ) { + var o = j(t), + a = { + x: e.position.x - o.x, + y: e.position.y - o.y + }, + s = Math.abs(a.x) + Math.abs(a.y); + (e.delta = a), + r || (i && !(s >= i)) + ? r && + s >= r && + e.manager.isActive() && + e.handlePress(t) + : (clearTimeout(e.cancelTimer), + (e.cancelTimer = setTimeout(e.cancel, 0))); + } + }), + s(h(h(e)), 'handleEnd', function() { + (e.touched = !1), e.cancel(); + }), + s(h(h(e)), 'cancel', function() { + var t = e.props.distance; + e.state.sorting || + (t || clearTimeout(e.pressTimer), + (e.manager.active = null)); + }), + s(h(h(e)), 'handlePress', function(t) { + try { + var n = e.manager.getActive(), + r = (function() { + if (n) { + var r = function() { + var n, + r, + i, + c, + m, + v, + y = h.sortableInfo.index, + b = + ((n = h), + { + bottom: P( + (r = window.getComputedStyle(n)) + .marginBottom + ), + left: P(r.marginLeft), + right: P(r.marginRight), + top: P(r.marginTop) + }), + _ = e.scrollContainer.getBoundingClientRect(), + w = a({ + collection: p, + index: y, + node: h + }); + if ( + ((e.node = h), + (e.margin = b), + (e.width = w.width), + (e.height = w.height), + (e.marginOffset = { + x: e.margin.left + e.margin.right, + y: Math.max( + e.margin.top, + e.margin.bottom + ) + }), + (e.boundingClientRect = h.getBoundingClientRect()), + (e.containerBoundingRect = _), + (e.index = y), + (e.newIndex = y), + (e.axis = { + x: o.indexOf('x') >= 0, + y: o.indexOf('y') >= 0 + }), + (e.offsetEdge = D(h, e.container)), + (e.initialOffset = j( + g + ? u({}, t, { + pageX: + e.boundingClientRect.left, + pageY: + e.boundingClientRect.top + }) + : t + )), + (e.initialScroll = { + left: e.scrollContainer.scrollLeft, + top: e.scrollContainer.scrollTop + }), + (e.initialWindowScroll = { + left: window.pageXOffset, + top: window.pageYOffset + }), + (e.helper = e.helperContainer.appendChild( + ((c = + 'input, textarea, select, canvas, [contenteditable]'), + (m = (i = h).querySelectorAll(c)), + (v = i.cloneNode(!0)), + x(v.querySelectorAll(c)).forEach( + function(t, e) { + 'file' !== t.type && + (t.value = m[e].value), + 'radio' === t.type && + t.name && + (t.name = '__sortableClone__'.concat( + t.name + )), + t.tagName === N.Canvas && + m[e].width > 0 && + m[e].height > 0 && + t + .getContext('2d') + .drawImage(m[e], 0, 0); + } + ), + v) + )), + k(e.helper, { + boxSizing: 'border-box', + height: ''.concat(e.height, 'px'), + left: ''.concat( + e.boundingClientRect.left - + b.left, + 'px' + ), + pointerEvents: 'none', + position: 'fixed', + top: ''.concat( + e.boundingClientRect.top - b.top, + 'px' + ), + width: ''.concat(e.width, 'px') + }), + g && e.helper.focus(), + l && + ((e.sortableGhost = h), + k(h, { + opacity: 0, + visibility: 'hidden' + })), + (e.minTranslate = {}), + (e.maxTranslate = {}), + g) + ) { + var E = d + ? { + top: 0, + left: 0, + width: + e.contentWindow.innerWidth, + height: + e.contentWindow.innerHeight + } + : e.containerBoundingRect, + A = E.top, + T = E.left, + C = E.width, + O = A + E.height, + M = T + C; + e.axis.x && + ((e.minTranslate.x = + T - e.boundingClientRect.left), + (e.maxTranslate.x = + M - + (e.boundingClientRect.left + + e.width))), + e.axis.y && + ((e.minTranslate.y = + A - e.boundingClientRect.top), + (e.maxTranslate.y = + O - + (e.boundingClientRect.top + + e.height))); + } else + e.axis.x && + ((e.minTranslate.x = + (d ? 0 : _.left) - + e.boundingClientRect.left - + e.width / 2), + (e.maxTranslate.x = + (d + ? e.contentWindow.innerWidth + : _.left + _.width) - + e.boundingClientRect.left - + e.width / 2)), + e.axis.y && + ((e.minTranslate.y = + (d ? 0 : _.top) - + e.boundingClientRect.top - + e.height / 2), + (e.maxTranslate.y = + (d + ? e.contentWindow.innerHeight + : _.top + _.height) - + e.boundingClientRect.top - + e.height / 2)); + s && + s.split(' ').forEach(function(t) { + return e.helper.classList.add(t); + }), + (e.listenerNode = t.touches + ? h + : e.contentWindow), + g + ? (e.listenerNode.addEventListener( + 'wheel', + e.handleKeyEnd, + !0 + ), + e.listenerNode.addEventListener( + 'mousedown', + e.handleKeyEnd, + !0 + ), + e.listenerNode.addEventListener( + 'keydown', + e.handleKeyDown + )) + : (S.move.forEach(function(t) { + return e.listenerNode.addEventListener( + t, + e.handleSortMove, + !1 + ); + }), + S.end.forEach(function(t) { + return e.listenerNode.addEventListener( + t, + e.handleSortEnd, + !1 + ); + })), + e.setState({ + sorting: !0, + sortingIndex: y + }), + f && + f( + { + node: h, + index: y, + collection: p, + isKeySorting: g + }, + t + ), + g && e.keyMove(0); + }, + i = e.props, + o = i.axis, + a = i.getHelperDimensions, + s = i.helperClass, + l = i.hideSortableGhost, + c = i.updateBeforeSortStart, + f = i.onSortStart, + d = i.useWindowAsScrollContainer, + h = n.node, + p = n.collection, + g = e.manager.isKeySorting, + m = (function() { + if ('function' == typeof c) { + e._awaitingUpdateBeforeSortStart = !0; + var n = (function(t, e) { + try { + var n = t(); + } catch (t) { + return e(!0, t); + } + return n && n.then + ? n.then( + e.bind(null, !1), + e.bind(null, !0) + ) + : e(!1, value); + })( + function() { + var e = h.sortableInfo.index; + return Promise.resolve( + c( + { + collection: p, + index: e, + node: h, + isKeySorting: g + }, + t + ) + ).then(function() {}); + }, + function(t, n) { + if ( + ((e._awaitingUpdateBeforeSortStart = !1), + t) + ) + throw n; + return n; + } + ); + if (n && n.then) + return n.then(function() {}); + } + })(); + return m && m.then ? m.then(r) : r(); + } + })(); + return Promise.resolve( + r && r.then ? r.then(function() {}) : void 0 + ); + } catch (t) { + return Promise.reject(t); + } + }), + s(h(h(e)), 'handleSortMove', function(t) { + var n = e.props.onSortMove; + 'function' == typeof t.preventDefault && + t.preventDefault(), + e.updateHelperPosition(t), + e.animateNodes(), + e.autoscroll(), + n && n(t); + }), + s(h(h(e)), 'handleSortEnd', function(t) { + var n = e.props, + r = n.hideSortableGhost, + i = n.onSortEnd, + o = e.manager, + a = o.active.collection, + s = o.isKeySorting, + u = e.manager.refs[a]; + e.listenerNode && + (s + ? (e.listenerNode.removeEventListener( + 'wheel', + e.handleKeyEnd, + !0 + ), + e.listenerNode.removeEventListener( + 'mousedown', + e.handleKeyEnd, + !0 + ), + e.listenerNode.removeEventListener( + 'keydown', + e.handleKeyDown + )) + : (S.move.forEach(function(t) { + return e.listenerNode.removeEventListener( + t, + e.handleSortMove + ); + }), + S.end.forEach(function(t) { + return e.listenerNode.removeEventListener( + t, + e.handleSortEnd + ); + }))), + e.helper.parentNode.removeChild(e.helper), + r && + e.sortableGhost && + k(e.sortableGhost, { + opacity: '', + visibility: '' + }); + for (var l = 0, c = u.length; l < c; l++) { + var f = u[l], + d = f.node; + (f.edgeOffset = null), + (f.boundingClientRect = null), + A(d, null), + T(d, null), + (f.translate = null); + } + e.autoScroller.clear(), + (e.manager.active = null), + (e.manager.isKeySorting = !1), + e.setState({ sorting: !1, sortingIndex: null }), + 'function' == typeof i && + i( + { + collection: a, + newIndex: e.newIndex, + oldIndex: e.index, + isKeySorting: s + }, + t + ), + (e.touched = !1); + }), + s(h(h(e)), 'autoscroll', function() { + var t = e.props.disableAutoscroll, + n = e.manager.isKeySorting; + if (!t) { + if (n) { + var r = u({}, e.translate), + i = 0, + o = 0; + return ( + e.axis.x && + ((r.x = Math.min( + e.maxTranslate.x, + Math.max(e.minTranslate.x, e.translate.x) + )), + (i = e.translate.x - r.x)), + e.axis.y && + ((r.y = Math.min( + e.maxTranslate.y, + Math.max(e.minTranslate.y, e.translate.y) + )), + (o = e.translate.y - r.y)), + (e.translate = r), + A(e.helper, e.translate), + (e.scrollContainer.scrollLeft += i), + void (e.scrollContainer.scrollTop += o) + ); + } + e.autoScroller.update({ + height: e.height, + maxTranslate: e.maxTranslate, + minTranslate: e.minTranslate, + translate: e.translate, + width: e.width + }); + } + }), + s(h(h(e)), 'onAutoScroll', function(t) { + (e.translate.x += t.left), + (e.translate.y += t.top), + e.animateNodes(); + }), + s(h(h(e)), 'handleKeyDown', function(t) { + var n = t.keyCode, + r = e.props.shouldCancelStart; + if ( + (!e.manager.active || e.manager.isKeySorting) && + (e.manager.active || + (n === z.SPACE && + !r(t) && + e.isValidSortingTarget(t))) + ) + switch ( + (t.stopPropagation(), t.preventDefault(), n) + ) { + case z.SPACE: + e.manager.active + ? e.keyDrop(t) + : e.keyLift(t); + break; + case z.DOWN: + case z.RIGHT: + e.keyMove(1); + break; + case z.UP: + case z.LEFT: + e.keyMove(-1); + break; + case z.ESC: + (e.newIndex = e.manager.active.index), + e.keyDrop(t); + } + }), + s(h(h(e)), 'keyLift', function(t) { + var n = t.target, + r = C(n, function(t) { + return null != t.sortableInfo; + }).sortableInfo, + i = r.index, + o = r.collection; + (e.initialFocusedNode = n), + (e.manager.isKeySorting = !0), + (e.manager.active = { index: i, collection: o }), + e.handlePress(t); + }), + s(h(h(e)), 'keyMove', function(t) { + var n = e.manager.getOrderedRefs(), + r = n[n.length - 1].node.sortableInfo.index, + i = e.newIndex + t, + o = e.newIndex; + if (!(i < 0 || i > r)) { + (e.prevIndex = o), (e.newIndex = i); + var a = (function(t, e, n) { + return t < n && t > e + ? t - 1 + : t > n && t < e + ? t + 1 + : t; + })(e.newIndex, e.prevIndex, e.index), + s = n.find(function(t) { + return t.node.sortableInfo.index === a; + }), + u = s.node, + l = e.containerScrollDelta, + c = s.boundingClientRect || L(u, l), + f = s.translate || { x: 0, y: 0 }, + d = c.top + f.y - l.top, + h = c.left + f.x - l.left, + p = o < i, + g = p && e.axis.x ? u.offsetWidth - e.width : 0, + m = + p && e.axis.y ? u.offsetHeight - e.height : 0; + e.handleSortMove({ + pageX: h + g, + pageY: d + m, + ignoreTransition: 0 === t + }); + } + }), + s(h(h(e)), 'keyDrop', function(t) { + e.handleSortEnd(t), + e.initialFocusedNode && + e.initialFocusedNode.focus(); + }), + s(h(h(e)), 'handleKeyEnd', function(t) { + e.manager.active && e.keyDrop(t); + }), + s(h(h(e)), 'isValidSortingTarget', function(t) { + var n = e.props.useDragHandle, + r = t.target, + i = C(r, function(t) { + return null != t.sortableInfo; + }); + return ( + i && + i.sortableInfo && + !i.sortableInfo.disabled && + (n ? F(r) : r.sortableInfo) + ); + }), + (function(t) { + y( + !(t.distance && t.pressDelay), + 'Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.' + ); + })(t), + (e.state = {}), + (e.manager = new b()), + (e.events = { + end: e.handleEnd, + move: e.handleMove, + start: e.handleStart + }), + e + ); + } + return ( + v(i, n), + f(i, [ + { + key: 'getChildContext', + value: function() { + return { manager: this.manager }; + } + }, + { + key: 'componentDidMount', + value: function() { + var t = this, + e = this.props.useWindowAsScrollContainer, + n = this.getContainer(); + Promise.resolve(n).then(function(n) { + (t.container = n), + (t.document = + t.container.ownerDocument || document); + var r = + t.props.contentWindow || + t.document.defaultView || + window; + (t.contentWindow = + 'function' == typeof r ? r() : r), + (t.scrollContainer = e + ? t.document.scrollingElement || + t.document.documentElement + : (function t(e) { + return e instanceof HTMLElement + ? (function(t) { + var e = window.getComputedStyle( + t + ), + n = /(auto|scroll)/; + return [ + 'overflow', + 'overflowX', + 'overflowY' + ].find(function(t) { + return n.test(e[t]); + }); + })(e) + ? e + : t(e.parentNode) + : null; + })(t.container) || t.container), + (t.autoScroller = new V( + t.scrollContainer, + t.onAutoScroll + )), + Object.keys(t.events).forEach(function(e) { + return S[e].forEach(function(n) { + return t.container.addEventListener( + n, + t.events[e], + !1 + ); + }); + }), + t.container.addEventListener( + 'keydown', + t.handleKeyDown + ); + }); + } + }, + { + key: 'componentWillUnmount', + value: function() { + var t = this; + this.helper && + this.helper.parentNode && + this.helper.parentNode.removeChild(this.helper), + this.container && + (Object.keys(this.events).forEach(function( + e + ) { + return S[e].forEach(function(n) { + return t.container.removeEventListener( + n, + t.events[e] + ); + }); + }), + this.container.removeEventListener( + 'keydown', + this.handleKeyDown + )); + } + }, + { + key: 'updateHelperPosition', + value: function(t) { + var e = this.props, + n = e.lockAxis, + r = e.lockOffset, + i = e.lockToContainerEdges, + o = e.transitionDuration, + s = e.keyboardSortingTransitionDuration, + u = void 0 === s ? o : s, + l = this.manager.isKeySorting, + c = t.ignoreTransition, + f = j(t), + d = { + x: f.x - this.initialOffset.x, + y: f.y - this.initialOffset.y + }; + if ( + ((d.y -= + window.pageYOffset - + this.initialWindowScroll.top), + (d.x -= + window.pageXOffset - + this.initialWindowScroll.left), + (this.translate = d), + i) + ) { + var h = (function(t) { + var e = t.height, + n = t.width, + r = t.lockOffset, + i = Array.isArray(r) ? r : [r, r]; + y( + 2 === i.length, + 'lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s', + r + ); + var o = a(i, 2), + s = o[0], + u = o[1]; + return [ + R({ height: e, lockOffset: s, width: n }), + R({ height: e, lockOffset: u, width: n }) + ]; + })({ + height: this.height, + lockOffset: r, + width: this.width + }), + p = a(h, 2), + g = p[0], + m = p[1], + v = { + x: this.width / 2 - g.x, + y: this.height / 2 - g.y + }, + b = { + x: this.width / 2 - m.x, + y: this.height / 2 - m.y + }; + (d.x = O( + this.minTranslate.x + v.x, + this.maxTranslate.x - b.x, + d.x + )), + (d.y = O( + this.minTranslate.y + v.y, + this.maxTranslate.y - b.y, + d.y + )); + } + 'x' === n ? (d.y = 0) : 'y' === n && (d.x = 0), + l && u && !c && T(this.helper, u), + A(this.helper, d); + } + }, + { + key: 'animateNodes', + value: function() { + var t = this.props, + e = t.transitionDuration, + n = t.hideSortableGhost, + r = t.onSortOver, + i = this.containerScrollDelta, + o = this.windowScrollDelta, + a = this.manager.getOrderedRefs(), + s = + this.offsetEdge.left + + this.translate.x + + i.left, + u = + this.offsetEdge.top + + this.translate.y + + i.top, + l = this.manager.isKeySorting, + c = this.newIndex; + this.newIndex = null; + for (var f = 0, d = a.length; f < d; f++) { + var h = a[f].node, + p = h.sortableInfo.index, + g = h.offsetWidth, + m = h.offsetHeight, + v = { + height: + this.height > m ? m / 2 : this.height / 2, + width: + this.width > g ? g / 2 : this.width / 2 + }, + y = l && p > this.index && p <= c, + b = l && p < this.index && p >= c, + _ = { x: 0, y: 0 }, + x = a[f].edgeOffset; + x || + ((x = D(h, this.container)), + (a[f].edgeOffset = x), + l && (a[f].boundingClientRect = L(h, i))); + var w = f < a.length - 1 && a[f + 1], + S = f > 0 && a[f - 1]; + w && + !w.edgeOffset && + ((w.edgeOffset = D(w.node, this.container)), + l && (w.boundingClientRect = L(w.node, i))), + p !== this.index + ? (e && T(h, e), + this.axis.x + ? this.axis.y + ? b || + (p < this.index && + ((s + o.left - v.width <= + x.left && + u + o.top <= + x.top + v.height) || + u + o.top + v.height <= x.top)) + ? ((_.x = + this.width + + this.marginOffset.x), + x.left + _.x > + this.containerBoundingRect + .width - + v.width && + w && + ((_.x = + w.edgeOffset.left - x.left), + (_.y = + w.edgeOffset.top - x.top)), + null === this.newIndex && + (this.newIndex = p)) + : (y || + (p > this.index && + ((s + o.left + v.width >= + x.left && + u + o.top + v.height >= + x.top) || + u + o.top + v.height >= + x.top + m))) && + ((_.x = -( + this.width + this.marginOffset.x + )), + x.left + _.x < + this.containerBoundingRect + .left + + v.width && + S && + ((_.x = + S.edgeOffset.left - x.left), + (_.y = + S.edgeOffset.top - x.top)), + (this.newIndex = p)) + : y || + (p > this.index && + s + o.left + v.width >= x.left) + ? ((_.x = -( + this.width + this.marginOffset.x + )), + (this.newIndex = p)) + : (b || + (p < this.index && + s + o.left <= + x.left + v.width)) && + ((_.x = + this.width + this.marginOffset.x), + null == this.newIndex && + (this.newIndex = p)) + : this.axis.y && + (y || + (p > this.index && + u + o.top + v.height >= x.top) + ? ((_.y = -( + this.height + + this.marginOffset.y + )), + (this.newIndex = p)) + : (b || + (p < this.index && + u + o.top <= + x.top + v.height)) && + ((_.y = + this.height + + this.marginOffset.y), + null == this.newIndex && + (this.newIndex = p))), + A(h, _), + (a[f].translate = _)) + : n && + ((this.sortableGhost = h), + k(h, { + opacity: 0, + visibility: 'hidden' + })); + } + null == this.newIndex && + (this.newIndex = this.index), + l && (this.newIndex = c); + var E = l ? this.prevIndex : c; + r && + this.newIndex !== E && + r({ + collection: this.manager.active.collection, + index: this.index, + newIndex: this.newIndex, + oldIndex: E, + isKeySorting: l + }); + } + }, + { + key: 'getWrappedInstance', + value: function() { + return ( + y( + d.withRef, + 'To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call' + ), + this.refs.wrappedInstance + ); + } + }, + { + key: 'getContainer', + value: function() { + var t = this.props.getContainer; + return 'function' != typeof t + ? r.findDOMNode(this) + : t( + d.withRef + ? this.getWrappedInstance() + : void 0 + ); + } + }, + { + key: 'render', + value: function() { + var n = d.withRef ? 'wrappedInstance' : null; + return e.createElement( + t, + o({ ref: n }, w(this.props, H)) + ); + } + }, + { + key: 'helperContainer', + get: function() { + var t = this.props.helperContainer; + return 'function' == typeof t + ? t() + : this.props.helperContainer || + this.document.body; + } + }, + { + key: 'containerScrollDelta', + get: function() { + return this.props.useWindowAsScrollContainer + ? { left: 0, top: 0 } + : { + left: + this.scrollContainer.scrollLeft - + this.initialScroll.left, + top: + this.scrollContainer.scrollTop - + this.initialScroll.top + }; + } + }, + { + key: 'windowScrollDelta', + get: function() { + return { + left: + this.contentWindow.pageXOffset - + this.initialWindowScroll.left, + top: + this.contentWindow.pageYOffset - + this.initialWindowScroll.top + }; + } + } + ]), + i + ); + })(e.Component)), + s(i, 'displayName', M('sortableList', t)), + s(i, 'defaultProps', G), + s(i, 'propTypes', B), + s(i, 'childContextTypes', { manager: n.object.isRequired }), + c + ); + } + var q = { + index: n.number.isRequired, + collection: n.oneOfType([n.number, n.string]), + disabled: n.bool + }, + W = Object.keys(q); + function X(t) { + var i, + a, + u = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : { withRef: !1 }; + return ( + (a = i = (function(n) { + function i() { + return l(this, i), p(this, g(i).apply(this, arguments)); + } + return ( + v(i, n), + f(i, [ + { + key: 'componentDidMount', + value: function() { + this.register(); + } + }, + { + key: 'componentDidUpdate', + value: function(t) { + this.node && + (t.index !== this.props.index && + (this.node.sortableInfo.index = this.props.index), + t.disabled !== this.props.disabled && + (this.node.sortableInfo.disabled = this.props.disabled)), + t.collection !== this.props.collection && + (this.unregister(t.collection), + this.register()); + } + }, + { + key: 'componentWillUnmount', + value: function() { + this.unregister(); + } + }, + { + key: 'register', + value: function() { + var t = this.props, + e = t.collection, + n = t.disabled, + i = t.index, + o = r.findDOMNode(this); + (o.sortableInfo = { + collection: e, + disabled: n, + index: i, + manager: this.context.manager + }), + (this.node = o), + (this.ref = { node: o }), + this.context.manager.add(e, this.ref); + } + }, + { + key: 'unregister', + value: function() { + var t = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : this.props.collection; + this.context.manager.remove(t, this.ref); + } + }, + { + key: 'getWrappedInstance', + value: function() { + return ( + y( + u.withRef, + 'To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call' + ), + this.refs.wrappedInstance + ); + } + }, + { + key: 'render', + value: function() { + var n = u.withRef ? 'wrappedInstance' : null; + return e.createElement( + t, + o({ ref: n }, w(this.props, W)) + ); + } + } + ]), + i + ); + })(e.Component)), + s(i, 'displayName', M('sortableElement', t)), + s(i, 'contextTypes', { manager: n.object.isRequired }), + s(i, 'propTypes', q), + s(i, 'defaultProps', { collection: 0 }), + a + ); + } + (t.SortableContainer = U), + (t.sortableContainer = U), + (t.SortableElement = X), + (t.sortableElement = X), + (t.SortableHandle = I), + (t.sortableHandle = I), + (t.arrayMove = function(t, e, n) { + return ( + 'undefined' != typeof console && + console.warn( + "Deprecation warning: arrayMove will no longer be exported by 'react-sortable-hoc' in the next major release. Please install the `array-move` package locally instead. https://www.npmjs.com/package/array-move" + ), + (t = t.slice()).splice( + n < 0 ? t.length + n : n, + 0, + t.splice(e, 1)[0] + ), + t + ); + }), + Object.defineProperty(t, '__esModule', { value: !0 }); + })(e, n(0), n(1), n(99)); + }, + function(t, e) { + t.exports = l; + }, + function(t, e) { + var n; + n = (function() { + return this; + })(); + try { + n = n || new Function('return this')(); + } catch (t) { + 'object' == typeof window && (n = window); + } + t.exports = n; + }, + function(t, e, n) { + var r = n(56), + i = n(60); + t.exports = function(t, e) { + return t && r(t, i(e)); + }; + }, + function(t, e, n) { + var r = n(107), + i = n(6), + o = Object.prototype, + a = o.hasOwnProperty, + s = o.propertyIsEnumerable, + u = r( + (function() { + return arguments; + })() + ) + ? r + : function(t) { + return ( + i(t) && a.call(t, 'callee') && !s.call(t, 'callee') + ); + }; + t.exports = u; + }, + function(t, e) { + var n = /^(?:0|[1-9]\d*)$/; + t.exports = function(t, e) { + var r = typeof t; + return ( + !!(e = null == e ? 9007199254740991 : e) && + ('number' == r || ('symbol' != r && n.test(t))) && + t > -1 && + t % 1 == 0 && + t < e + ); + }; + }, + function(t, e, n) { + var r = n(109), + i = n(42), + o = n(43), + a = o && o.isTypedArray, + s = a ? i(a) : r; + t.exports = s; + }, + function(t, e) { + t.exports = function(t) { + return ( + 'number' == typeof t && + t > -1 && + t % 1 == 0 && + t <= 9007199254740991 + ); + }; + }, + function(t, e) { + t.exports = function(t) { + return function(e) { + return t(e); + }; + }; + }, + function(t, e, n) { + (function(t) { + var r = n(55), + i = e && !e.nodeType && e, + o = i && 'object' == typeof t && t && !t.nodeType && t, + a = o && o.exports === i && r.process, + s = (function() { + try { + return ( + (o && o.require && o.require('util').types) || + (a && a.binding && a.binding('util')) + ); + } catch (t) {} + })(); + t.exports = s; + }.call(this, n(20)(t))); + }, + function(t, e) { + var n = Object.prototype; + t.exports = function(t) { + var e = t && t.constructor; + return t === (('function' == typeof e && e.prototype) || n); + }; + }, + function(t, e, n) { + var r = n(10), + i = n(4); + t.exports = function(t) { + if (!i(t)) return !1; + var e = r(t); + return ( + '[object Function]' == e || + '[object GeneratorFunction]' == e || + '[object AsyncFunction]' == e || + '[object Proxy]' == e + ); + }; + }, + function(t, e, n) { + var r = n(59)(Object.getPrototypeOf, Object); + t.exports = r; + }, + function(t, e, n) { + var r = n(11)(n(5), 'Map'); + t.exports = r; + }, + function(t, e, n) { + var r = n(130), + i = n(137), + o = n(139), + a = n(140), + s = n(141); + function u(t) { + var e = -1, + n = null == t ? 0 : t.length; + for (this.clear(); ++e < n; ) { + var r = t[e]; + this.set(r[0], r[1]); + } + } + (u.prototype.clear = r), + (u.prototype.delete = i), + (u.prototype.get = o), + (u.prototype.has = a), + (u.prototype.set = s), + (t.exports = u); + }, + function(t, e, n) { + var r = n(152), + i = n(70), + o = Object.prototype.propertyIsEnumerable, + a = Object.getOwnPropertySymbols, + s = a + ? function(t) { + return null == t + ? [] + : ((t = Object(t)), + r(a(t), function(e) { + return o.call(t, e); + })); + } + : i; + t.exports = s; + }, + function(t, e, n) { + var r = n(3), + i = n(29), + o = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, + a = /^\w*$/; + t.exports = function(t, e) { + if (r(t)) return !1; + var n = typeof t; + return ( + !( + 'number' != n && + 'symbol' != n && + 'boolean' != n && + null != t && + !i(t) + ) || + a.test(t) || + !o.test(t) || + (null != e && t in Object(e)) + ); + }; + }, + function(t, e, n) { + var r = n(78); + t.exports = function(t, e, n) { + '__proto__' == e && r + ? r(t, e, { + configurable: !0, + enumerable: !0, + value: n, + writable: !0 + }) + : (t[e] = n); + }; + }, + function(t, e, n) { + var r = n(66); + t.exports = function(t) { + var e = new t.constructor(t.byteLength); + return new r(e).set(new r(t)), e; + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.Checkboard = void 0); + var r = a(n(0)), + i = a(n(9)), + o = (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && + (e[n] = t[n]); + return (e.default = t), e; + })(n(198)); + function a(t) { + return t && t.__esModule ? t : { default: t }; + } + var s = (e.Checkboard = function(t) { + var e = t.white, + n = t.grey, + a = t.size, + s = t.renderers, + u = t.borderRadius, + l = t.boxShadow, + c = (0, i.default)({ + default: { + grid: { + borderRadius: u, + boxShadow: l, + absolute: '0px 0px 0px 0px', + background: + 'url('https://github.com/+%20o.get(e,%20n,%20a,%20s.canvas) + ') center left' + } + } + }); + return r.default.createElement('div', { style: c.grid }); + }); + (s.defaultProps = { + size: 8, + white: 'transparent', + grey: 'rgba(0,0,0,.08)', + renderers: {} + }), + (e.default = s); + }, + function(t, e) { + var n, + r, + i = (t.exports = {}); + function o() { + throw new Error('setTimeout has not been defined'); + } + function a() { + throw new Error('clearTimeout has not been defined'); + } + function s(t) { + if (n === setTimeout) return setTimeout(t, 0); + if ((n === o || !n) && setTimeout) + return (n = setTimeout), setTimeout(t, 0); + try { + return n(t, 0); + } catch (e) { + try { + return n.call(null, t, 0); + } catch (e) { + return n.call(this, t, 0); + } + } + } + !(function() { + try { + n = 'function' == typeof setTimeout ? setTimeout : o; + } catch (t) { + n = o; + } + try { + r = 'function' == typeof clearTimeout ? clearTimeout : a; + } catch (t) { + r = a; + } + })(); + var u, + l = [], + c = !1, + f = -1; + function d() { + c && + u && + ((c = !1), + u.length ? (l = u.concat(l)) : (f = -1), + l.length && h()); + } + function h() { + if (!c) { + var t = s(d); + c = !0; + for (var e = l.length; e; ) { + for (u = l, l = []; ++f < e; ) u && u[f].run(); + (f = -1), (e = l.length); + } + (u = null), + (c = !1), + (function(t) { + if (r === clearTimeout) return clearTimeout(t); + if ((r === a || !r) && clearTimeout) + return (r = clearTimeout), clearTimeout(t); + try { + r(t); + } catch (e) { + try { + return r.call(null, t); + } catch (e) { + return r.call(this, t); + } + } + })(t); + } + } + function p(t, e) { + (this.fun = t), (this.array = e); + } + function g() {} + (i.nextTick = function(t) { + var e = new Array(arguments.length - 1); + if (arguments.length > 1) + for (var n = 1; n < arguments.length; n++) + e[n - 1] = arguments[n]; + l.push(new p(t, e)), 1 !== l.length || c || s(h); + }), + (p.prototype.run = function() { + this.fun.apply(null, this.array); }), - n.d(e, 'interrupt', function() { - return li; + (i.title = 'browser'), + (i.browser = !0), + (i.env = {}), + (i.argv = []), + (i.version = ''), + (i.versions = {}), + (i.on = g), + (i.addListener = g), + (i.once = g), + (i.off = g), + (i.removeListener = g), + (i.removeAllListeners = g), + (i.emit = g), + (i.prependListener = g), + (i.prependOnceListener = g), + (i.listeners = function(t) { + return []; }), - n.d(e, 'voronoi', function() { - return rS; + (i.binding = function(t) { + throw new Error('process.binding is not supported'); }), - n.d(e, 'zoom', function() { - return mS; + (i.cwd = function() { + return '/'; }), - n.d(e, 'zoomTransform', function() { - return uS; + (i.chdir = function(t) { + throw new Error('process.chdir is not supported'); }), - n.d(e, 'zoomIdentity', function() { - return sS; + (i.umask = function() { + return 0; }); }, function(t, e, n) { - var r; - window, - (r = function(t, e) { - return (function(t) { - var e = {}; - function n(r) { - if (e[r]) return e[r].exports; - var i = (e[r] = { i: r, l: !1, exports: {} }); - return ( - t[r].call(i.exports, i, i.exports, n), - (i.l = !0), - i.exports - ); + (function(e) { + var n = 'object' == typeof e && e && e.Object === Object && e; + t.exports = n; + }.call(this, n(36))); + }, + function(t, e, n) { + var r = n(57), + i = n(16); + t.exports = function(t, e) { + return t && r(t, e, i); + }; + }, + function(t, e, n) { + var r = n(105)(); + t.exports = r; + }, + function(t, e, n) { + var r = n(106), + i = n(38), + o = n(3), + a = n(21), + s = n(39), + u = n(40), + l = Object.prototype.hasOwnProperty; + t.exports = function(t, e) { + var n = o(t), + c = !n && i(t), + f = !n && !c && a(t), + d = !n && !c && !f && u(t), + h = n || c || f || d, + p = h ? r(t.length, String) : [], + g = p.length; + for (var m in t) + (!e && !l.call(t, m)) || + (h && + ('length' == m || + (f && ('offset' == m || 'parent' == m)) || + (d && + ('buffer' == m || + 'byteLength' == m || + 'byteOffset' == m)) || + s(m, g))) || + p.push(m); + return p; + }; + }, + function(t, e) { + t.exports = function(t, e) { + return function(n) { + return t(e(n)); + }; + }; + }, + function(t, e, n) { + var r = n(22); + t.exports = function(t) { + return 'function' == typeof t ? t : r; + }; + }, + function(t, e, n) { + var r = n(10), + i = n(46), + o = n(6), + a = Function.prototype, + s = Object.prototype, + u = a.toString, + l = s.hasOwnProperty, + c = u.call(Object); + t.exports = function(t) { + if (!o(t) || '[object Object]' != r(t)) return !1; + var e = i(t); + if (null === e) return !0; + var n = l.call(e, 'constructor') && e.constructor; + return ( + 'function' == typeof n && n instanceof n && u.call(n) == c + ); + }; + }, + function(t, e) { + t.exports = function(t, e) { + for ( + var n = -1, r = null == t ? 0 : t.length, i = Array(r); + ++n < r; + + ) + i[n] = e(t[n], n, t); + return i; + }; + }, + function(t, e) { + var n = Function.prototype.toString; + t.exports = function(t) { + if (null != t) { + try { + return n.call(t); + } catch (t) {} + try { + return t + ''; + } catch (t) {} + } + return ''; + }; + }, + function(t, e, n) { + var r = n(142), + i = n(6); + t.exports = function t(e, n, o, a, s) { + return ( + e === n || + (null == e || null == n || (!i(e) && !i(n)) + ? e != e && n != n + : r(e, n, o, a, t, s)) + ); + }; + }, + function(t, e, n) { + var r = n(143), + i = n(146), + o = n(147); + t.exports = function(t, e, n, a, s, u) { + var l = 1 & n, + c = t.length, + f = e.length; + if (c != f && !(l && f > c)) return !1; + var d = u.get(t); + if (d && u.get(e)) return d == e; + var h = -1, + p = !0, + g = 2 & n ? new r() : void 0; + for (u.set(t, e), u.set(e, t); ++h < c; ) { + var m = t[h], + v = e[h]; + if (a) var y = l ? a(v, m, h, e, t, u) : a(m, v, h, t, e, u); + if (void 0 !== y) { + if (y) continue; + p = !1; + break; + } + if (g) { + if ( + !i(e, function(t, e) { + if (!o(g, e) && (m === t || s(m, t, n, a, u))) + return g.push(e); + }) + ) { + p = !1; + break; } - return ( - (n.m = t), - (n.c = e), - (n.d = function(t, e, r) { - n.o(t, e) || - Object.defineProperty(t, e, { - enumerable: !0, - get: r - }); - }), - (n.r = function(t) { - 'undefined' != typeof Symbol && - Symbol.toStringTag && - Object.defineProperty(t, Symbol.toStringTag, { - value: 'Module' - }), - Object.defineProperty(t, '__esModule', { value: !0 }); - }), - (n.t = function(t, e) { - if ((1 & e && (t = n(t)), 8 & e)) return t; - if (4 & e && 'object' == typeof t && t && t.__esModule) - return t; - var r = Object.create(null); - if ( - (n.r(r), - Object.defineProperty(r, 'default', { - enumerable: !0, - value: t - }), - 2 & e && 'string' != typeof t) - ) - for (var i in t) - n.d( - r, - i, - function(e) { - return t[e]; - }.bind(null, i) + } else if (m !== v && !s(m, v, n, a, u)) { + p = !1; + break; + } + } + return u.delete(t), u.delete(e), p; + }; + }, + function(t, e, n) { + var r = n(5).Uint8Array; + t.exports = r; + }, + function(t, e, n) { + var r = n(68), + i = n(49), + o = n(16); + t.exports = function(t) { + return r(t, o, i); + }; + }, + function(t, e, n) { + var r = n(69), + i = n(3); + t.exports = function(t, e, n) { + var o = e(t); + return i(t) ? o : r(o, n(t)); + }; + }, + function(t, e) { + t.exports = function(t, e) { + for (var n = -1, r = e.length, i = t.length; ++n < r; ) + t[i + n] = e[n]; + return t; + }; + }, + function(t, e) { + t.exports = function() { + return []; + }; + }, + function(t, e, n) { + var r = n(4); + t.exports = function(t) { + return t == t && !r(t); + }; + }, + function(t, e) { + t.exports = function(t, e) { + return function(n) { + return ( + null != n && n[t] === e && (void 0 !== e || t in Object(n)) + ); + }; + }; + }, + function(t, e, n) { + var r = n(74), + i = n(30); + t.exports = function(t, e) { + for (var n = 0, o = (e = r(e, t)).length; null != t && n < o; ) + t = t[i(e[n++])]; + return n && n == o ? t : void 0; + }; + }, + function(t, e, n) { + var r = n(3), + i = n(50), + o = n(160), + a = n(163); + t.exports = function(t, e) { + return r(t) ? t : i(t, e) ? [t] : o(a(t)); + }; + }, + function(t, e, n) { + var r = n(56), + i = n(172)(r); + t.exports = i; + }, + function(t, e) { + t.exports = function(t, e) { + for ( + var n = -1, r = null == t ? 0 : t.length; + ++n < r && !1 !== e(t[n], n, t); + + ); + return t; + }; + }, + function(t, e, n) { + var r = n(51), + i = n(17), + o = Object.prototype.hasOwnProperty; + t.exports = function(t, e, n) { + var a = t[e]; + (o.call(t, e) && i(a, n) && (void 0 !== n || e in t)) || + r(t, e, n); + }; + }, + function(t, e, n) { + var r = n(11), + i = (function() { + try { + var t = r(Object, 'defineProperty'); + return t({}, '', {}), t; + } catch (t) {} + })(); + t.exports = i; + }, + function(t, e, n) { + (function(t) { + var r = n(5), + i = e && !e.nodeType && e, + o = i && 'object' == typeof t && t && !t.nodeType && t, + a = o && o.exports === i ? r.Buffer : void 0, + s = a ? a.allocUnsafe : void 0; + t.exports = function(t, e) { + if (e) return t.slice(); + var n = t.length, + r = s ? s(n) : new t.constructor(n); + return t.copy(r), r; + }; + }.call(this, n(20)(t))); + }, + function(t, e) { + t.exports = function(t, e) { + var n = -1, + r = t.length; + for (e || (e = Array(r)); ++n < r; ) e[n] = t[n]; + return e; + }; + }, + function(t, e, n) { + var r = n(69), + i = n(46), + o = n(49), + a = n(70), + s = Object.getOwnPropertySymbols + ? function(t) { + for (var e = []; t; ) r(e, o(t)), (t = i(t)); + return e; + } + : a; + t.exports = s; + }, + function(t, e, n) { + var r = n(52); + t.exports = function(t, e) { + var n = e ? r(t.buffer) : t.buffer; + return new t.constructor(n, t.byteOffset, t.length); + }; + }, + function(t, e, n) { + var r = n(188), + i = n(46), + o = n(44); + t.exports = function(t) { + return 'function' != typeof t.constructor || o(t) + ? {} + : r(i(t)); + }; + }, + function(t, e, n) { + var r = n(51), + i = n(17); + t.exports = function(t, e, n) { + ((void 0 === n || i(t[e], n)) && (void 0 !== n || e in t)) || + r(t, e, n); + }; + }, + function(t, e) { + t.exports = function(t, e) { + if ('__proto__' != e) return t[e]; + }; + }, + function(t, e, n) { + var r = n(4), + i = n(219), + o = n(220), + a = Math.max, + s = Math.min; + t.exports = function(t, e, n) { + var u, + l, + c, + f, + d, + h, + p = 0, + g = !1, + m = !1, + v = !0; + if ('function' != typeof t) + throw new TypeError('Expected a function'); + function y(e) { + var n = u, + r = l; + return (u = l = void 0), (p = e), (f = t.apply(r, n)); + } + function b(t) { + var n = t - h; + return void 0 === h || n >= e || n < 0 || (m && t - p >= c); + } + function _() { + var t = i(); + if (b(t)) return x(t); + d = setTimeout( + _, + (function(t) { + var n = e - (t - h); + return m ? s(n, c - (t - p)) : n; + })(t) + ); + } + function x(t) { + return (d = void 0), v && u ? y(t) : ((u = l = void 0), f); + } + function w() { + var t = i(), + n = b(t); + if (((u = arguments), (l = this), (h = t), n)) { + if (void 0 === d) + return (function(t) { + return (p = t), (d = setTimeout(_, e)), g ? y(t) : f; + })(h); + if (m) return (d = setTimeout(_, e)), y(h); + } + return void 0 === d && (d = setTimeout(_, e)), f; + } + return ( + (e = o(e) || 0), + r(n) && + ((g = !!n.leading), + (c = (m = 'maxWait' in n) ? a(o(n.maxWait) || 0, e) : c), + (v = 'trailing' in n ? !!n.trailing : v)), + (w.cancel = function() { + void 0 !== d && clearTimeout(d), + (p = 0), + (u = h = l = d = void 0); + }), + (w.flush = function() { + return void 0 === d ? f : x(i()); + }), + w + ); + }; + }, + function(t, e, n) { + 'use strict'; + (function(t) { + var n, + r = + 'undefined' != typeof Symbol + ? Symbol('immer-nothing') + : (((n = {})['immer-nothing'] = !0), n), + i = + 'undefined' != typeof Symbol && Symbol.for + ? Symbol.for('immer-draftable') + : '__$immer_draftable', + o = + 'undefined' != typeof Symbol && Symbol.for + ? Symbol.for('immer-state') + : '__$immer_state'; + function a(t) { + return !!t && !!t[o]; + } + function s(t) { + return ( + !!t && + ((function(t) { + if (!t || 'object' != typeof t) return !1; + if (Array.isArray(t)) return !0; + var e = Object.getPrototypeOf(t); + return !e || e === Object.prototype; + })(t) || + !!t[i] || + !!t.constructor[i]) + ); + } + var u = + Object.assign || + function(t, e) { + for (var n in e) h(e, n) && (t[n] = e[n]); + return t; + }, + l = + 'undefined' != typeof Reflect && Reflect.ownKeys + ? Reflect.ownKeys + : void 0 !== Object.getOwnPropertySymbols + ? function(t) { + return Object.getOwnPropertyNames(t).concat( + Object.getOwnPropertySymbols(t) + ); + } + : Object.getOwnPropertyNames; + function c(t, e) { + if ((void 0 === e && (e = !1), Array.isArray(t))) + return t.slice(); + var n = Object.create(Object.getPrototypeOf(t)); + return ( + l(t).forEach(function(r) { + if (r !== o) { + var i = Object.getOwnPropertyDescriptor(t, r), + a = i.value; + if (i.get) { + if (!e) + throw new Error( + 'Immer drafts cannot have computed properties' ); - return r; - }), - (n.n = function(t) { - var e = - t && t.__esModule - ? function() { - return t.default; - } - : function() { - return t; - }; - return n.d(e, 'a', e), e; - }), - (n.o = function(t, e) { - return Object.prototype.hasOwnProperty.call(t, e); - }), - (n.p = ''), - n((n.s = 20)) + a = i.get.call(t); + } + i.enumerable + ? (n[r] = a) + : Object.defineProperty(n, r, { + value: a, + writable: !0, + configurable: !0 + }); + } + }), + n + ); + } + function f(t, e) { + if (Array.isArray(t)) + for (var n = 0; n < t.length; n++) e(n, t[n], t); + else + l(t).forEach(function(n) { + return e(n, t[n], t); + }); + } + function d(t, e) { + var n = Object.getOwnPropertyDescriptor(t, e); + return !!n && n.enumerable; + } + function h(t, e) { + return Object.prototype.hasOwnProperty.call(t, e); + } + function p(t, e) { + return t === e ? 0 !== t || 1 / t == 1 / e : t != t && e != e; + } + function g(t) { + if (!s(t)) return t; + if (Array.isArray(t)) return t.map(g); + var e = Object.create(Object.getPrototypeOf(t)); + for (var n in t) e[n] = g(t[n]); + return e; + } + function m(t) { + if (s(t) && !a(t) && !Object.isFrozen(t)) + if ((Object.freeze(t), Array.isArray(t))) t.forEach(m); + else for (var e in t) m(t[e]); + } + var v = function(t) { + (this.drafts = []), + (this.parent = t), + (this.canAutoFreeze = !0), + (this.patches = null); + }; + function y(t) { + t[o].revoke(); + } + (v.prototype.usePatches = function(t) { + t && + ((this.patches = []), + (this.inversePatches = []), + (this.patchListener = t)); + }), + (v.prototype.revoke = function() { + this.leave(), this.drafts.forEach(y), (this.drafts = null); + }), + (v.prototype.leave = function() { + this === v.current && (v.current = this.parent); + }), + (v.current = null), + (v.enter = function() { + return (this.current = new v(this.current)); + }); + var b = {}; + function _() { + this.revoked = !0; + } + function x(t) { + return t.copy || t.base; + } + function w(t, e) { + var n = t[o]; + if (n && !n.finalizing) { + n.finalizing = !0; + var r = t[e]; + return (n.finalizing = !1), r; + } + return t[e]; + } + function S(t) { + t.modified || ((t.modified = !0), t.parent && S(t.parent)); + } + function E(t) { + t.copy || (t.copy = k(t.base)); + } + function k(t) { + var e = t && t[o]; + if (e) { + e.finalizing = !0; + var n = c(e.draft, !0); + return (e.finalizing = !1), n; + } + return c(t); + } + function A(t) { + if (!0 === t.revoked) + throw new Error( + 'Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? ' + + JSON.stringify(x(t)) ); - })([ - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.each = function(t, e, n) { - var r; - if (!t) return 0; - if (((n = n || t), t instanceof Array)) { - for (r = 0; r < t.length; r++) - if (!1 === e.call(n, t[r], r, t)) return 0; - } else - for (r in t) - if ( - t.hasOwnProperty(r) && - !1 === e.call(n, t[r], r, t) - ) - return 0; - return 1; - }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t, e) { - var n = document.createElement('input'); - if ( - ((n.value = t), - document.body.appendChild(n), - n.select(), - document.execCommand('copy'), - document.body.removeChild(n), - e) - ) { - var r = document.createElement('div'); - (r.style.padding = '5px 10px'), - (r.style.backgroundColor = '#ffffff'), - (r.style.fontSize = '12px'), - (r.style.position = 'absolute'), - (r.style.top = e.pageY + 'px'), - (r.style.left = e.pageX + 10 + 'px'), - (r.style.zIndex = '999'), - (r.style.opacity = 1), - (r.style.transition = 'opacity 1s ease'), - (r.innerText = 'copied!'), - document.body.appendChild(r), - document.addEventListener('mousemove', function( - t - ) { - return (function(t, e) { - (e.style.opacity = 0), - (e.style.top = t.pageY + 'px'), - (e.style.left = t.pageX + 10 + 'px'); - })(t, r); - }), - setTimeout(function() { - (r.style.opacity = 1), - document.body.removeChild(r); - }, 1e3); - } - }); - }, - function(e, n) { - e.exports = t; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.prettyNumber = function(t) { - var e = (t = Number(t)).toPrecision(3), - n = '', - r = ['', 'k', 'M', 'B', 'T']; - return Number(e) == t && String(t).length <= 4 - ? String(t) - : Math.abs(t) >= 1e15 - ? e - : t >= 1 || t <= -1 - ? (t < 0 && ((t = -t), (n = '-')), - n + - (function t(e, n) { - var i = (e = String(e)).split('.'); - if (i.length > 1) { - e = i[0]; - var o = i[1]; - 2 == e.length && o.length > 0 - ? o.length > 0 - ? (e = e + '.' + o.charAt(0)) - : (e += '0') - : 1 == e.length && - o.length > 0 && - ((e = e + '.' + o.charAt(0)), - o.length > 1 - ? (e += o.charAt(1)) - : (e += '0')); - } - var a = e.length; - return ( - e.split('.').length > 1 && a--, - a <= 3 - ? String(e) + r[n] - : t(Number(e) / 1e3, n + 1) - ); - })(t, 0)) - : t.toPrecision(3); - }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.escapeHtml = function(t) { - var e, - n = '' + t, - i = r.exec(n); - if (!i) return n; - var o = '', - a = 0, - s = 0; - for (a = i.index; a < n.length; a++) { - switch (n.charCodeAt(a)) { - case 34: - e = '"'; - break; - case 38: - e = '&'; - break; - case 39: - e = '''; - break; - case 60: - e = '<'; - break; - case 62: - e = '>'; - break; - default: - continue; - } - s !== a && (o += n.substring(s, a)), - (s = a + 1), - (o += e); - } - return s !== a ? o + n.substring(s, a) : o; - }); - var r = /["'&<>]/; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.extend = function(t) { - for (var e = 1; e < arguments.length; e++) - for (var n in arguments[e]) t[n] = arguments[e][n]; - return t; - }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.textWrap = function(t, e) { - t.each(function() { - for ( - var t = r.select(this), - n = t - .text() - .split(/\s+/) - .reverse(), - i = void 0, - o = [], - a = 0, - s = t.attr('x'), - u = t.attr('y'), - l = t - .text(null) - .append('tspan') - .attr('x', s) - .attr('y', u) - .attr('dy', '0em'); - (i = n.pop()); - - ) - o.push(i), - l.text(o.join(' ')), - l.node().getComputedTextLength() > e && - (o.pop(), - l.text(o.join(' ')), - (o = [i]), - (l = t - .append('tspan') - .attr('x', s) - .attr('y', u) - .attr('dy', 1.1 * ++a + 0 + 'em') - .text(i))); - }); + } + function T(t) { + for (var e = t.length - 1; e >= 0; e--) { + var n = t[e][o]; + n.modified || + (Array.isArray(n.base) ? O(n) && S(n) : C(n) && S(n)); + } + } + function C(t) { + for ( + var e = t.base, + n = t.draft, + r = Object.keys(n), + i = r.length - 1; + i >= 0; + i-- + ) { + var a = r[i], + s = e[a]; + if (void 0 === s && !h(e, a)) return !0; + var u = n[a], + l = u && u[o]; + if (l ? l.base !== s : !p(u, s)) return !0; + } + return r.length !== Object.keys(e).length; + } + function O(t) { + var e = t.draft; + if (e.length !== t.base.length) return !0; + var n = Object.getOwnPropertyDescriptor(e, e.length - 1); + return !(!n || n.get); + } + var P = Object.freeze({ + willFinalize: function(t, e, n) { + t.drafts.forEach(function(t) { + t[o].finalizing = !0; + }), + n + ? a(e) && e[o].scope === t && T(t.drafts) + : (t.patches && + (function t(e) { + if (e && 'object' == typeof e) { + var n = e[o]; + if (n) { + var r = n.base, + i = n.draft, + a = n.assigned; + if (Array.isArray(e)) { + if (O(n)) { + if ( + (S(n), + (a.length = !0), + i.length < r.length) + ) + for ( + var s = i.length; + s < r.length; + s++ + ) + a[s] = !1; + else + for ( + var u = r.length; + u < i.length; + u++ + ) + a[u] = !0; + for (var l = 0; l < i.length; l++) + void 0 === a[l] && t(i[l]); + } + } else + Object.keys(i).forEach(function(e) { + void 0 !== r[e] || h(r, e) + ? a[e] || t(i[e]) + : ((a[e] = !0), S(n)); + }), + Object.keys(r).forEach(function(t) { + void 0 !== i[t] || + h(i, t) || + ((a[t] = !1), S(n)); + }); + } + } + })(t.drafts[0]), + T(t.drafts)); + }, + createProxy: function t(e, n) { + var r = Array.isArray(e), + i = k(e); + f(i, function(n) { + !(function(e, n, r) { + var i = b[n]; + i + ? (i.enumerable = r) + : (b[n] = i = { + configurable: !0, + enumerable: r, + get: function() { + return (function(e, n) { + A(e); + var r = w(x(e), n); + return e.finalizing + ? r + : r === w(e.base, n) && s(r) + ? (E(e), (e.copy[n] = t(r, e))) + : r; + })(this[o], n); + }, + set: function(t) { + !(function(t, e, n) { + if ( + (A(t), (t.assigned[e] = !0), !t.modified) + ) { + if (p(n, w(x(t), e))) return; + S(t), E(t); + } + t.copy[e] = n; + })(this[o], n, t); + } + }), + Object.defineProperty(e, n, i); + })(i, n, r || d(e, n)); + }); + var a = n ? n.scope : v.current; + return ( + (function(t, e, n) { + Object.defineProperty(t, e, { + value: n, + enumerable: !1, + writable: !0 }); - var r = (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && - (e[n] = t[n]); - return (e.default = t), e; - })(n(2)); - }, - function(t, e) { - var n; - n = (function() { - return this; - })(); - try { - n = n || new Function('return this')(); - } catch (t) { - 'object' == typeof window && (n = window); - } - t.exports = n; + })(i, o, { + scope: a, + modified: !1, + finalizing: !1, + finalized: !1, + assigned: {}, + parent: n, + base: e, + draft: i, + copy: null, + revoke: _, + revoked: !1 + }), + a.drafts.push(i), + i + ); + } + }); + function M(t, e) { + var n = e ? e.scope : v.current, + r = { + scope: n, + modified: !1, + finalized: !1, + assigned: {}, + parent: e, + base: t, + draft: null, + drafts: {}, + copy: null, + revoke: null }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.appendColumn = s), - (e.appendRow = u); - var r, - i = n(9), - o = (r = i) && r.__esModule ? r : { default: r }, - a = n(0); - function s(t, e) { - var n = this, - r = - (Array.prototype.slice.call(arguments, 2), - void 0 !== t ? t : null); - return ( - 'function' == typeof e - ? (n.matrix[0].push(r), - (0, a.each)(n.matrix, function(t, r) { - var i = void 0; - r > 0 && - (void 0 === (i = e.call(n, t, r)) && - (i = null), - n.matrix[r].push(i)); - })) - : (!e || e instanceof Array) && - ((e = e || []).length <= n.matrix.length - 1 - ? (e = e.concat( - (0, o.default)( - n.matrix.length - 1 - e.length - ) - )) - : (0, a.each)(e, function(t, r) { - n.matrix.length - 1 < e.length && - u.call(n, String(n.matrix.length)); - }), - n.matrix[0].push(r), - (0, a.each)(e, function(t, e) { - n.matrix[e + 1][n.matrix[0].length - 1] = t; - })), - n - ); - } - function u(t, e) { - var n = this, - r = - (Array.prototype.slice.call(arguments, 2), - void 0 !== t ? t : null), - i = []; - return ( - i.push(r), - 'function' == typeof e - ? ((0, a.each)(n.matrix[0], function(t, r) { - var o = void 0, - a = void 0; - r > 0 && - ((o = n.selectColumn(r)), - void 0 === (a = e.call(n, o, r)) && - (a = null), - i.push(a)); - }), - n.matrix.push(i)) - : (!e || e instanceof Array) && - ((e = e || []).length <= n.matrix[0].length - 1 - ? (e = e.concat( - (0, o.default)( - n.matrix[0].length - 1 - e.length - ) - )) - : (0, a.each)(e, function(t, r) { - n.matrix[0].length - 1 < e.length && - s.call(n, String(n.matrix[0].length)); - }), - n.matrix.push(i.concat(e))), - n - ); + i = Array.isArray(t) + ? Proxy.revocable([r], j) + : Proxy.revocable(r, L), + o = i.revoke, + a = i.proxy; + return (r.draft = a), (r.revoke = o), n.drafts.push(a), a; + } + var L = { + get: function(t, e) { + if (e === o) return t; + var n = t.drafts; + if (!t.modified && h(n, e)) return n[e]; + var r = D(t)[e]; + if (t.finalized || !s(r)) return r; + if (t.modified) { + if (r !== R(t.base, e)) return r; + n = t.copy; } + return (n[e] = M(r, t)); }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t) { - for (var e = [], n = 0; n < t; n++) e.push(null); - return e; - }); + has: function(t, e) { + return e in D(t); }, - function(t, n) { - t.exports = e; + ownKeys: function(t) { + return Reflect.ownKeys(D(t)); }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - }; - function i(t) { - return ( - null !== t && - 'function' == typeof t.getTime && - !isNaN(t.getTime()) - ); - } - function o(t) { - return /^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d+)?(([+-]\d\d:\d\d)|Z)?$/i.test( - t - ); + set: function(t, e, n) { + if (!t.modified) { + var r = R(t.base, e); + if ( + n + ? p(r, n) || n === t.drafts[e] + : p(r, n) && e in t.base + ) + return !0; + z(t); } - (e.testObject = i), - (e.testString = o), - (e.default = function(t) { - return 'object' === - (void 0 === t ? 'undefined' : r(t)) - ? i(t) - : 'string' == typeof t && o(t); - }); + return (t.assigned[e] = !0), (t.copy[e] = n), !0; }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Dataset = void 0); - var r = p(n(8)), - i = p(n(22)), - o = p(n(23)), - a = p(n(24)), - s = p(n(25)), - u = p(n(26)), - l = p(n(27)), - c = h(n(13)), - f = n(5), - d = h(n(28)); - function h(t) { - return t && t.__esModule ? t : { default: t }; - } - function p(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && - (e[n] = t[n]); - return (e.default = t), e; - } - var g = (e.Dataset = function t() { - var e = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : {}; - if (this instanceof t == 0) return new t(e); - (this.matrix = [['Index']]), - (this.meta = { type: void 0 }), - (this.config = e); - }); - (g.prototype.data = function(t) { - return arguments.length - ? ((this.matrix = t instanceof Array ? t : null), - this) - : this.matrix; - }), - (g.prototype.set = function(t, e) { - if (arguments.length < 2 || t.length < 2) - throw Error( - 'Incorrect arguments provided for #set method' - ); - var n = - 'number' == typeof t[0] - ? t[0] - : this.matrix[0].indexOf(t[0]), - i = - 'number' == typeof t[1] - ? t[1] - : s.selectColumn.call(this, 0).indexOf(t[1]), - o = s.selectColumn.call(this, t[0]), - a = s.selectRow.call(this, t[1]); - return ( - o.length < 1 && - (r.appendColumn.call(this, String(t[0])), - (n = this.matrix[0].length - 1)), - a.length < 1 && - (r.appendRow.call(this, String(t[1])), - (i = this.matrix.length - 1)), - (this.matrix[i][n] = e), - this - ); - }), - (g.prototype.type = function(t) { - return arguments.length - ? ((this.meta.type = t ? String(t) : void 0), this) - : this.meta.type; - }), - (0, f.extend)(g.prototype, r), - (0, f.extend)(g.prototype, i), - (0, f.extend)(g.prototype, o), - (0, f.extend)(g.prototype, a), - (0, f.extend)(g.prototype, s), - (0, f.extend)(g.prototype, u), - (0, f.extend)(g.prototype, l), - (0, f.extend)(g.prototype, c.default), - (g.parser = (0, d.default)(g)), - (e.default = g); + deleteProperty: function(t, e) { + return ( + void 0 !== R(t.base, e) || e in t.base + ? ((t.assigned[e] = !1), z(t)) + : t.assigned[e] && delete t.assigned[e], + t.copy && delete t.copy[e], + !0 + ); }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = n(0); - function i(t, e, n) { - var i = t.slice(e || 0, n ? n + 1 : t.length), - o = 0; - return ( - (0, r.each)(i, function(t, e) { - 'number' != typeof t || - isNaN(parseFloat(t)) || - (o += parseFloat(t)); - }), - o / i.length - ); - } - function o(t, e, n) { - var i = t.slice(e || 0, n ? n + 1 : t.length), - o = []; - return ( - (0, r.each)(i, function(t, e) { - 'number' != typeof t || - isNaN(parseFloat(t)) || - o.push(parseFloat(t)); - }), - Math.max.apply(Math, o) - ); - } - function a(t, e, n) { - var i = t.slice(e || 0, n ? n + 1 : t.length), - o = []; - return ( - (0, r.each)(i, function(t, e) { - 'number' != typeof t || - isNaN(parseFloat(t)) || - o.push(parseFloat(t)); - }), - Math.min.apply(Math, o) - ); - } - function s(t, e, n) { - var i = t.slice(e || 0, n ? n + 1 : t.length), - o = 0; - return ( - (0, r.each)(i, function(t, e) { - 'number' != typeof t || - isNaN(parseFloat(t)) || - (o += parseFloat(t)); - }), - o - ); - } - n(5); - var u = function(t) { - return i(t, 1); - }, - l = u, - c = function(t) { - return s(t, 1); - }, - f = c, - d = function(t) { - return o(t, 1); - }, - h = d, - p = function(t) { - return a(t, 1); - }, - g = p, - v = function(t) { - return t[0]; - }, - m = v; - e.default = { - average: i, - maximum: o, - minimum: a, - sum: s, - getColumnAverage: u, - getRowAverage: l, - getColumnSum: c, - getRowSum: f, - getColumnMaximum: d, - getRowMaximum: h, - getColumnMinimum: p, - getRowMinimum: g, - getColumnLabel: v, - getRowIndex: m - }; + getOwnPropertyDescriptor: function(t, e) { + var n = D(t), + r = Reflect.getOwnPropertyDescriptor(n, e); + return ( + r && + ((r.writable = !0), + (r.configurable = + !Array.isArray(n) || 'length' !== e)), + r + ); }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.stripHtmlTags = function(t) { - return 'string' != typeof t - ? t - : t.replace(/(<([^>]+)>)/gi, ''); - }); + defineProperty: function() { + throw new Error( + 'Object.defineProperty() cannot be used on an Immer draft' + ); }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - }; - e.extendDeep = function t(e) { - for (var n = 1; n < arguments.length; n++) - (0, i.each)(arguments[n], function(n, i) { - void 0 !== e[i] && - void 0 !== n && - 'object' === r(e[i]) && - 'object' === (void 0 === n ? 'undefined' : r(n)) && - null !== e[i] && - null !== n - ? t(e[i], n) - : (e[i] = n); - }); - return e; - }; - var i = n(0); + getPrototypeOf: function(t) { + return Object.getPrototypeOf(t.base); }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function() { - var t = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : {}, - e = t.element, - n = t.label, - r = void 0 === n ? 'Download' : n, - i = t.type, - s = void 0 === i ? 'json' : i, - u = t.data, - l = 'keen-dataviz-button', - c = [] - .concat(a(e.parentNode.children)) - .find(function(t) { - return t.className === l; - }); - if (!c) { - var f = document.createElement('button'); - (f.innerText = r), - (f.className = l), - f.addEventListener('click', function(t) { - return (0, - o.default)({ event: t, type: s, data: u }); - }), - e.parentNode.insertBefore(f, e.nextSibling); - } - }); - var r, - i = n(40), - o = (r = i) && r.__esModule ? r : { default: r }; - function a(t) { - if (Array.isArray(t)) { - for ( - var e = 0, n = Array(t.length); - e < t.length; - e++ - ) - n[e] = t[e]; - return n; - } - return Array.from(t); + setPrototypeOf: function() { + throw new Error( + 'Object.setPrototypeOf() cannot be used on an Immer draft' + ); + } + }, + j = {}; + function D(t) { + return t.copy || t.base; + } + function R(t, e) { + var n = t[o], + r = Reflect.getOwnPropertyDescriptor(n ? D(n) : t, e); + return r && r.value; + } + function z(t) { + t.modified || + ((t.modified = !0), + (t.copy = u(c(t.base), t.drafts)), + (t.drafts = null), + t.parent && z(t.parent)); + } + f(L, function(t, e) { + j[t] = function() { + return ( + (arguments[0] = arguments[0][0]), e.apply(this, arguments) + ); + }; + }), + (j.deleteProperty = function(t, e) { + if (isNaN(parseInt(e))) + throw new Error( + 'Immer only supports deleting array indices' + ); + return L.deleteProperty.call(this, t[0], e); + }), + (j.set = function(t, e, n) { + if ('length' !== e && isNaN(parseInt(e))) + throw new Error( + "Immer only supports setting array indices and the 'length' property" + ); + return L.set.call(this, t[0], e, n); + }); + var N = Object.freeze({ + willFinalize: function() {}, + createProxy: M + }), + I = function(t, e) { + for (var n = 0, r = e; n < r.length; n += 1) { + var i = r[n], + o = i.path, + a = i.op, + s = g(i.value); + if (!o.length) throw new Error('Illegal state'); + for (var u = t, l = 0; l < o.length - 1; l++) + if (!(u = u[o[l]]) || 'object' != typeof u) + throw new Error( + "Cannot apply patch, path doesn't resolve: " + + o.join('/') + ); + var c = o[o.length - 1]; + switch (a) { + case 'replace': + u[c] = s; + break; + case 'add': + Array.isArray(u) ? u.splice(c, 0, s) : (u[c] = s); + break; + case 'remove': + Array.isArray(u) ? u.splice(c, 1) : delete u[c]; + break; + default: + throw new Error('Unsupported patch operation: ' + a); } - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t) { - var e = t.node, - n = t.quality, - r = t.bgcolor; - if (n) { - if (n < 0 || n > 1) - throw Error( - 'Please provide image quality between 0 and 1' - ); - o.default - .toBlob(e, { quality: n, bgcolor: r }) - .then(function(t) { - (0, a.saveAs)(t, 'chart.jpeg'); - }); + } + return t; + }, + F = { + useProxies: + 'undefined' != typeof Proxy && + void 0 !== Proxy.revocable && + 'undefined' != typeof Reflect, + autoFreeze: + void 0 === t && 'verifyMinified' === function() {}.name, + onAssign: null, + onDelete: null, + onCopy: null + }, + V = function(t) { + u(this, F, t), + this.setUseProxies(this.useProxies), + (this.produce = this.produce.bind(this)); + }; + (V.prototype.produce = function(t, e, n) { + var i, + o = this; + if ('function' == typeof t && 'function' != typeof e) { + var a = e; + e = t; + var u = this; + return function(t) { + var n = this; + void 0 === t && (t = a); + for (var r = [], i = arguments.length - 1; i-- > 0; ) + r[i] = arguments[i + 1]; + return u.produce(t, function(t) { + return e.call.apply(e, [n, t].concat(r)); + }); + }; + } + if ('function' != typeof e) + throw new Error( + 'The first or second argument to `produce` must be a function' + ); + if (void 0 !== n && 'function' != typeof n) + throw new Error( + 'The third argument to `produce` must be a function or undefined' + ); + if (s(t)) { + var l = v.enter(), + c = this.createProxy(t), + f = !0; + try { + (i = e(c)), (f = !1); + } finally { + f ? l.revoke() : l.leave(); + } + return i instanceof Promise + ? i.then( + function(t) { + return l.usePatches(n), o.processResult(t, l); + }, + function(t) { + throw (l.revoke(), t); } - n || - o.default.toBlob(e).then(function(t) { - (0, a.saveAs)(t, 'chart.png'); - }); + ) + : (l.usePatches(n), this.processResult(i, l)); + } + if ((i = e(t)) !== r) + return void 0 === i && (i = t), this.maybeFreeze(i, !0), i; + }), + (V.prototype.produceWithPatches = function(t, e, n) { + var r, + i, + o = this; + if ('function' == typeof t) + return function(e) { + for (var n = [], r = arguments.length - 1; r-- > 0; ) + n[r] = arguments[r + 1]; + return o.produceWithPatches(e, function(e) { + return t.apply(void 0, [e].concat(n)); }); - var r, - i = n(41), - o = (r = i) && r.__esModule ? r : { default: r }, - a = n(42); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t) { - var e = t.type, - n = t.data, - r = e.toLowerCase(); - if (!['json', 'csv'].includes(e)) - throw new Error('This type is not supported'); - var i = '', - o = ''; - 'json' === r && - ((o = - 'data:text/json;charset=utf-8, ' + - encodeURIComponent(JSON.stringify(n))), - (i = r)), - 'csv' === r && - (o = (function(t) { - var e = 'data:text/csv;charset=utf-8,'; - return ( - t.forEach(function(n, r) { - n.forEach(function(t, r) { - (e += String(t).replace(/,/g, '')), - n.length > r + 1 && (e += ','); - }), - t.length > r + 1 && (e += '\n'); - }), - e - ); - })(n)); - var a = document.createElement('a'); - a.setAttribute('href', o), - a.setAttribute('download', 'chart.' + i), - document.body.appendChild(a), - a.click(), - document.body.removeChild(a); + }; + if (n) + throw new Error( + 'A patch listener cannot be passed to produceWithPatches' + ); + return [ + this.produce(t, e, function(t, e) { + (r = t), (i = e); + }), + r, + i + ]; + }), + (V.prototype.createDraft = function(t) { + if (!s(t)) + throw new Error( + 'First argument to `createDraft` must be a plain object, an array, or an immerable object' + ); + var e = v.enter(), + n = this.createProxy(t); + return (n[o].isManual = !0), e.leave(), n; + }), + (V.prototype.finishDraft = function(t, e) { + var n = t && t[o]; + if (!n || !n.isManual) + throw new Error( + 'First argument to `finishDraft` must be a draft returned by `createDraft`' + ); + if (n.finalized) + throw new Error('The given draft is already finalized'); + var r = n.scope; + return r.usePatches(e), this.processResult(void 0, r); + }), + (V.prototype.setAutoFreeze = function(t) { + this.autoFreeze = t; + }), + (V.prototype.setUseProxies = function(t) { + (this.useProxies = t), u(this, t ? N : P); + }), + (V.prototype.applyPatches = function(t, e) { + var n; + for (n = e.length - 1; n >= 0; n--) { + var r = e[n]; + if (0 === r.path.length && 'replace' === r.op) { + t = r.value; + break; + } + } + return a(t) + ? I(t, e) + : this.produce(t, function(t) { + return I(t, e.slice(n + 1)); }); - }, - function(t, e, n) { - (function(e) { - var n, r, i, o, a; - void 0 === e && (this.window || this.global), - (t.exports = - ((n = function(t, e) { - var n = document.createElement(t); - return e && n.classList.add(e), n; - }), - (r = function(t) { - return t && 'function' == typeof t; - }), - (i = function(t, e, n) { - var r; - return function() { - if (((n = n || this), !r)) - return ( - t.apply(n, arguments), - (r = !0), - setTimeout(function() { - r = !1; - }, e) - ); - }; - }), - ((a = (o = function(t, e) { - (this.plugins = ['ruler']), - 'string' == typeof t && - (t = document.querySelector(t)), - (this.input = t), - (this.config = Object.assign( - {}, - { - type: 'single', - tooltips: 'always', - updateThrottle: 30, - formatTooltip: function(t) { - return t; - }, - classes: { - input: 'rangeable-input', - container: 'rangeable-container', - vertical: 'rangeable-vertical', - progress: 'rangeable-progress', - handle: 'rangeable-handle', - track: 'rangeable-track', - multiple: 'rangeable-multiple', - disabled: 'rangeable-disabled', - tooltips: 'rangeable-tooltips', - tooltip: 'rangeable-tooltip', - visible: 'rangeable-tooltips--visible' - } - }, - e - )), - (this.mouseAxis = { - x: 'clientX', - y: 'clientY' - }), - (this.trackSize = { x: 'width', y: 'height' }), - (this.trackPos = { x: 'left', y: 'top' }), - (this.lastPos = 0), - (this.double = - 'double' === this.config.type || - Array.isArray(this.config.value)), - (this.touch = - 'ontouchstart' in window || - (window.DocumentTouch && - document instanceof DocumentTouch)), - (this.version = '0.1.6'), - this.init(), - this.onInit(); - }).prototype).init = function() { - if (!this.input.rangeable) { - var t, - e = { - min: 0, - max: 100, - step: 1, - value: this.input.value - }; - for (t in e) - this.input[t] || (this.input[t] = e[t]), - void 0 !== this.config[t] && - (this.input[t] = this.config[t]); - (this.axis = this.config.vertical ? 'y' : 'x'), - (this.input.rangeable = this), - this.double - ? ((this.input.values = this.config.value - ? this.config.value - : [this.input.min, this.input.max]), - (this.input.defaultValues = this.input.values.slice())) - : this.input.defaultValue || - (this.input.defaultValue = this.input.value), - this.render(), - (this.initialised = !0); - } - }), - (a.render = function() { - var t = this, - e = this.config, - r = e.classes, - i = n('div', r.container), - o = n('div', r.track), - a = n('div', r.progress), - s = n('div', r.handle), - u = n('div', r.tooltip); - if (((this.input.tabIndex = -1), this.double)) { - (s = [n('div', r.handle), n('div', r.handle)]), - (u = []); - for (var l = 0; 3 > l; l++) - u[l] = n('div', r.tooltip); - s.forEach(function(t, n) { - (t.index = n), - a.appendChild(t), - t.appendChild(u[n]), - (t.tabIndex = 1), - e.controls && - e.controls[n] && - e.controls[n].locked && - !0 === e.controls[n].locked && - (t.locked = !0); - }), - e.vertical && a.appendChild(s[0]), - a.appendChild(u[2]), - i.classList.add(r.multiple); - } else - a.appendChild(s), - s.appendChild(u), - (s.tabIndex = 1), - e.controls && - e.controls.locked && - !0 === e.controls.locked && - (s.locked = !0); - if ( - (i.appendChild(o), - e.vertical && i.classList.add(r.vertical), - e.size && - (i.style[this.trackSize[this.axis]] = isNaN( - e.size + }), + (V.prototype.processResult = function(t, e) { + var n = e.drafts[0], + i = void 0 !== t && t !== n; + if ((this.willFinalize(e, t, i), i)) { + if (n[o].modified) + throw (e.revoke(), + new Error( + 'An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.' + )); + s(t) && + ((t = this.finalize(t, null, e)), this.maybeFreeze(t)), + e.patches && + (e.patches.push({ + op: 'replace', + path: [], + value: t + }), + e.inversePatches.push({ + op: 'replace', + path: [], + value: n[o].base + })); + } else t = this.finalize(n, [], e); + return ( + e.revoke(), + e.patches && e.patchListener(e.patches, e.inversePatches), + t !== r ? t : void 0 + ); + }), + (V.prototype.finalize = function(t, e, n) { + var r = this, + i = t[o]; + if (!i) + return Object.isFrozen(t) + ? t + : this.finalizeTree(t, null, n); + if (i.scope !== n) return t; + if (!i.modified) + return this.maybeFreeze(i.base, !0), i.base; + if (!i.finalized) { + if ( + ((i.finalized = !0), + this.finalizeTree(i.draft, e, n), + this.onDelete) + ) + if (this.useProxies) { + var a = i.assigned; + for (var s in a) a[s] || this.onDelete(i, s); + } else { + var u = i.base, + l = i.copy; + f(u, function(t) { + h(l, t) || r.onDelete(i, t); + }); + } + this.onCopy && this.onCopy(i), + this.autoFreeze && + n.canAutoFreeze && + Object.freeze(i.copy), + e && + n.patches && + (function(t, e, n, r) { + Array.isArray(t.base) + ? (function(t, e, n, r) { + var i, + o, + a = t.base, + s = t.copy, + u = t.assigned; + s.length < a.length && + ((a = (i = [s, a])[0]), + (s = i[1]), + (n = (o = [r, n])[0]), + (r = o[1])); + for ( + var l = s.length - a.length, c = 0; + a[c] === s[c] && c < a.length; + ) - ? e.size - : e.size + 'px'), - e.tooltips && - (i.classList.add(r.tooltips), - 'string' == typeof e.tooltips && - 'always' === e.tooltips && - i.classList.add(r.visible)), - (this.nodes = { - container: i, - track: o, - progress: a, - handle: s, - tooltip: u - }), - this.double) - ) { - this.nodes.buffer = []; - var c = n('div', 'rangeable-buffers'); - this.input.values.forEach(function(r, i) { - var a = n('div', 'rangeable-buffer'); - c.appendChild(a), - t.nodes.buffer.push(a), - o.appendChild(c), - e.controls && - ((t.limits = [{}, {}]), - void 0 !== e.controls[i].min && - (t.limits[i].min = e.controls[i].min), - void 0 !== e.controls[i].max && - (t.limits[i].max = e.controls[i].max)); - }); - } else - (s = n('div', 'rangeable-buffer')), - o.appendChild(s), - (this.nodes.buffer = s), - o.appendChild(s), - e.controls && - ((this.limits = {}), - void 0 !== e.controls.min && - (this.limits.min = e.controls.min), - void 0 !== e.controls.max && - (this.limits.max = e.controls.max)); - this.setLimits(e.controls), - o.appendChild(a), - this.input.parentNode.insertBefore( - i, - this.input - ), - i.insertBefore(this.input, o), - this.input.classList.add(r.input), - this.bind(), - this.update(); - }), - (a.reset = function() { - this.double - ? this.input.defaultValues.forEach( - this.setValue, - this + ++c; + for ( + var f = a.length; + f > c && a[f - 1] === s[f + l - 1]; + ) - : this.setValue(this.input.defaultValue), - this.onEnd(); - }), - (a.setValueFromPosition = function(t) { - var e = this.getLimits(), - n = parseFloat(this.input.step), - r = this.touch - ? t.touches[0][this.mouseAxis[this.axis]] - : t[this.mouseAxis[this.axis]], - i = - r - - this.rects.container[ - this.trackPos[this.axis] - ], - o = this.rects.container[ - this.trackSize[this.axis] - ]; - return ( - ('mousedown' !== t.type || - !( - (!this.double && - this.nodes.handle.contains(t.target)) || - (this.double && - (this.nodes.handle[0].contains( - t.target - ) || - this.nodes.handle[1].contains( - t.target - ))) - )) && - ((t = - ((this.config.vertical - ? ((o - i) / o) * 100 - : (i / o) * 100) * - (e.max - e.min)) / - 100 + - e.min), - (t = Math.ceil(t / n) * n), - r >= this.lastPos && (t -= n), - parseFloat(t) !== parseFloat(this.startValue) && - ((n = !1), - this.double && (n = this.activeHandle.index), - (t = this.limit(t, n)), - void this.setValue(t, n))) - ); - }), - (a.start = function(t) { - return ( - t.preventDefault(), - (this.startValue = this.getValue()), - this.onStart(), - this.nodes.container.classList.add('dragging'), - this.recalculate(), - (this.activeHandle = this.getHandle(t)), - !!this.activeHandle && - (this.activeHandle.classList.add('active'), - this.setValueFromPosition(t), - void (this.touch - ? (document.addEventListener( - 'touchmove', - this.events.move, - !1 - ), - document.addEventListener( - 'touchend', - this.events.stop, - !1 - ), - document.addEventListener( - 'touchcancel', - this.events.stop, - !1 - )) - : (document.addEventListener( - 'mousemove', - this.events.move, - !1 + --f; + for (var d = c; d < f; ++d) + if (u[d] && s[d] !== a[d]) { + var h = e.concat([d]); + n.push({ + op: 'replace', + path: h, + value: s[d] + }), + r.push({ + op: 'replace', + path: h, + value: a[d] + }); + } + for ( + var p = n.length, g = f + l - 1; + g >= f; + --g + ) { + var m = e.concat([g]); + (n[p + g - f] = { + op: 'add', + path: m, + value: s[g] + }), + r.push({ op: 'remove', path: m }); + } + })(t, e, n, r) + : (function(t, e, n, r) { + var i = t.base, + o = t.copy; + f(t.assigned, function(t, a) { + var s = i[t], + u = o[t], + l = a + ? t in i + ? 'replace' + : 'add' + : 'remove'; + if (s !== u || 'replace' !== l) { + var c = e.concat(t); + n.push( + 'remove' === l + ? { op: l, path: c } + : { op: l, path: c, value: u } ), - document.addEventListener( - 'mouseup', - this.events.stop, - !1 - )))) - ); - }), - (a.move = function(t) { - this.setValueFromPosition(t), - (this.lastPos = this.touch - ? t.touches[0][this.mouseAxis[this.axis]] - : t[this.mouseAxis[this.axis]]); - }), - (a.stop = function() { - (this.stopValue = this.getValue()), - this.nodes.container.classList.remove( - 'dragging' - ), - this.onEnd(), - this.activeHandle.classList.remove('active'), - (this.activeHandle = !1), - this.touch - ? (document.removeEventListener( - 'touchmove', - this.events.move - ), - document.removeEventListener( - 'touchend', - this.events.stop - ), - document.removeEventListener( - 'touchcancel', - this.events.stop - )) - : (document.removeEventListener( - 'mousemove', - this.events.move - ), - document.removeEventListener( - 'mouseup', - this.events.stop - )), - this.startValue !== this.stopValue && - this.input.dispatchEvent(new Event('change')), - (this.startValue = null); - }), - (a.keydown = function(t) { - var e = this, - n = function(n) { - switch (t.key) { - case 'ArrowRight': - case 'ArrowUp': - e.stepUp(n); - break; - case 'ArrowLeft': - case 'ArrowDown': - e.stepDown(n); + r.push( + 'add' === l + ? { op: 'remove', path: c } + : 'remove' === l + ? { op: 'add', path: c, value: s } + : { + op: 'replace', + path: c, + value: s + } + ); + } + }); + })(t, e, n, r); + })(i, e, n.patches, n.inversePatches); + } + return i.copy; + }), + (V.prototype.finalizeTree = function(t, e, n) { + var r = this, + i = t[o]; + i && + (this.useProxies || (i.copy = c(i.draft, !0)), + (t = i.copy)); + var u = !!e && !!n.patches, + l = function(o, c, h) { + if (c === h) + throw Error('Immer forbids circular references'); + var g = !!i && h === t; + if (a(c)) { + var m = g && u && !i.assigned[o] ? e.concat(o) : null; + if ( + (a((c = r.finalize(c, m, n))) && + (n.canAutoFreeze = !1), + Array.isArray(h) || d(h, o) + ? (h[o] = c) + : Object.defineProperty(h, o, { value: c }), + g && c === i.base[o]) + ) + return; + } else { + if (g && p(c, i.base[o])) return; + s(c) && + !Object.isFrozen(c) && + (f(c, l), r.maybeFreeze(c)); + } + g && r.onAssign && r.onAssign(i, o, c); + }; + return f(t, l), t; + }), + (V.prototype.maybeFreeze = function(t, e) { + void 0 === e && (e = !1), + this.autoFreeze && !a(t) && (e ? m(t) : Object.freeze(t)); + }); + var B = new V(), + G = B.produce; + B.produceWithPatches.bind(B), + B.setAutoFreeze.bind(B), + B.setUseProxies.bind(B), + B.applyPatches.bind(B), + B.createDraft.bind(B), + B.finishDraft.bind(B), + (e.a = G); + }.call(this, n(54))); + }, + function(t, e, n) { + t.exports = n(95); + }, + function(t, e, n) { + 'use strict'; + const r = (t, e, n) => { + t.splice(n < 0 ? t.length + n : n, 0, t.splice(e, 1)[0]); + }, + i = (t, e, n) => ((t = t.slice()), r(t, e, n), t); + (t.exports = i), (t.exports.default = i), (t.exports.mutate = r); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = n(100); + Object.defineProperty(e, 'Alpha', { + enumerable: !0, + get: function() { + return f(r).default; + } + }); + var i = n(53); + Object.defineProperty(e, 'Checkboard', { + enumerable: !0, + get: function() { + return f(i).default; + } + }); + var o = n(199); + Object.defineProperty(e, 'EditableInput', { + enumerable: !0, + get: function() { + return f(o).default; + } + }); + var a = n(200); + Object.defineProperty(e, 'Hue', { + enumerable: !0, + get: function() { + return f(a).default; + } + }); + var s = n(202); + Object.defineProperty(e, 'Raised', { + enumerable: !0, + get: function() { + return f(s).default; + } + }); + var u = n(217); + Object.defineProperty(e, 'Saturation', { + enumerable: !0, + get: function() { + return f(u).default; + } + }); + var l = n(222); + Object.defineProperty(e, 'ColorWrap', { + enumerable: !0, + get: function() { + return f(l).default; + } + }); + var c = n(227); + function f(t) { + return t && t.__esModule ? t : { default: t }; + } + Object.defineProperty(e, 'Swatch', { + enumerable: !0, + get: function() { + return f(c).default; + } + }); + }, + function(t, e, n) { + var r; + !(function() { + function i(t, e, n) { + return t.call.apply(t.bind, arguments); + } + function o(t, e, n) { + if (!t) throw Error(); + if (2 < arguments.length) { + var r = Array.prototype.slice.call(arguments, 2); + return function() { + var n = Array.prototype.slice.call(arguments); + return Array.prototype.unshift.apply(n, r), t.apply(e, n); + }; + } + return function() { + return t.apply(e, arguments); + }; + } + function a(t, e, n) { + return (a = + Function.prototype.bind && + -1 != + Function.prototype.bind.toString().indexOf('native code') + ? i + : o).apply(null, arguments); + } + var s = + Date.now || + function() { + return +new Date(); + }; + function u(t, e) { + (this.a = t), (this.o = e || t), (this.c = this.o.document); + } + var l = !!window.FontFace; + function c(t, e, n, r) { + if (((e = t.c.createElement(e)), n)) + for (var i in n) + n.hasOwnProperty(i) && + ('style' == i + ? (e.style.cssText = n[i]) + : e.setAttribute(i, n[i])); + return r && e.appendChild(t.c.createTextNode(r)), e; + } + function f(t, e, n) { + (t = t.c.getElementsByTagName(e)[0]) || + (t = document.documentElement), + t.insertBefore(n, t.lastChild); + } + function d(t) { + t.parentNode && t.parentNode.removeChild(t); + } + function h(t, e, n) { + (e = e || []), (n = n || []); + for ( + var r = t.className.split(/\s+/), i = 0; + i < e.length; + i += 1 + ) { + for (var o = !1, a = 0; a < r.length; a += 1) + if (e[i] === r[a]) { + o = !0; + break; + } + o || r.push(e[i]); + } + for (e = [], i = 0; i < r.length; i += 1) { + for (o = !1, a = 0; a < n.length; a += 1) + if (r[i] === n[a]) { + o = !0; + break; + } + o || e.push(r[i]); + } + t.className = e + .join(' ') + .replace(/\s+/g, ' ') + .replace(/^\s+|\s+$/, ''); + } + function p(t, e) { + for ( + var n = t.className.split(/\s+/), r = 0, i = n.length; + r < i; + r++ + ) + if (n[r] == e) return !0; + return !1; + } + function g(t, e, n) { + function r() { + s && i && o && (s(a), (s = null)); + } + e = c(t, 'link', { + rel: 'stylesheet', + href: e, + media: 'all' + }); + var i = !1, + o = !0, + a = null, + s = n || null; + l + ? ((e.onload = function() { + (i = !0), r(); + }), + (e.onerror = function() { + (i = !0), (a = Error('Stylesheet failed to load')), r(); + })) + : setTimeout(function() { + (i = !0), r(); + }, 0), + f(t, 'head', e); + } + function m(t, e, n, r) { + var i = t.c.getElementsByTagName('head')[0]; + if (i) { + var o = c(t, 'script', { src: e }), + a = !1; + return ( + (o.onload = o.onreadystatechange = function() { + a || + (this.readyState && + 'loaded' != this.readyState && + 'complete' != this.readyState) || + ((a = !0), + n && n(null), + (o.onload = o.onreadystatechange = null), + 'HEAD' == o.parentNode.tagName && i.removeChild(o)); + }), + i.appendChild(o), + setTimeout(function() { + a || ((a = !0), n && n(Error('Script load timeout'))); + }, r || 5e3), + o + ); + } + return null; + } + function v() { + (this.a = 0), (this.c = null); + } + function y(t) { + return ( + t.a++, + function() { + t.a--, _(t); + } + ); + } + function b(t, e) { + (t.c = e), _(t); + } + function _(t) { + 0 == t.a && t.c && (t.c(), (t.c = null)); + } + function x(t) { + this.a = t || '-'; + } + function w(t, e) { + (this.c = t), (this.f = 4), (this.a = 'n'); + var n = (e || 'n4').match(/^([nio])([1-9])$/i); + n && ((this.a = n[1]), (this.f = parseInt(n[2], 10))); + } + function S(t) { + var e = []; + t = t.split(/,\s*/); + for (var n = 0; n < t.length; n++) { + var r = t[n].replace(/['"]/g, ''); + -1 != r.indexOf(' ') || /^\d/.test(r) + ? e.push("'" + r + "'") + : e.push(r); + } + return e.join(','); + } + function E(t) { + return t.a + t.f; + } + function k(t) { + var e = 'normal'; + return ( + 'o' === t.a + ? (e = 'oblique') + : 'i' === t.a && (e = 'italic'), + e + ); + } + function A(t) { + var e = 4, + n = 'n', + r = null; + return ( + t && + ((r = t.match(/(normal|oblique|italic)/i)) && + r[1] && + (n = r[1].substr(0, 1).toLowerCase()), + (r = t.match(/([1-9]00|normal|bold)/i)) && + r[1] && + (/bold/i.test(r[1]) + ? (e = 7) + : /[1-9]00/.test(r[1]) && + (e = parseInt(r[1].substr(0, 1), 10)))), + n + e + ); + } + function T(t, e) { + (this.c = t), + (this.f = t.o.document.documentElement), + (this.h = e), + (this.a = new x('-')), + (this.j = !1 !== e.events), + (this.g = !1 !== e.classes); + } + function C(t) { + if (t.g) { + var e = p(t.f, t.a.c('wf', 'active')), + n = [], + r = [t.a.c('wf', 'loading')]; + e || n.push(t.a.c('wf', 'inactive')), h(t.f, n, r); + } + O(t, 'inactive'); + } + function O(t, e, n) { + t.j && t.h[e] && (n ? t.h[e](n.c, E(n)) : t.h[e]()); + } + function P() { + this.c = {}; + } + function M(t, e) { + (this.c = t), + (this.f = e), + (this.a = c( + this.c, + 'span', + { 'aria-hidden': 'true' }, + this.f + )); + } + function L(t) { + f(t.c, 'body', t.a); + } + function j(t) { + return ( + 'display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:' + + S(t.c) + + ';font-style:' + + k(t) + + ';font-weight:' + + t.f + + '00;' + ); + } + function D(t, e, n, r, i, o) { + (this.g = t), + (this.j = e), + (this.a = r), + (this.c = n), + (this.f = i || 3e3), + (this.h = o || void 0); + } + function R(t, e, n, r, i, o, a) { + (this.v = t), + (this.B = e), + (this.c = n), + (this.a = r), + (this.s = a || 'BESbswy'), + (this.f = {}), + (this.w = i || 3e3), + (this.u = o || null), + (this.m = this.j = this.h = this.g = null), + (this.g = new M(this.c, this.s)), + (this.h = new M(this.c, this.s)), + (this.j = new M(this.c, this.s)), + (this.m = new M(this.c, this.s)), + (t = j((t = new w(this.a.c + ',serif', E(this.a))))), + (this.g.a.style.cssText = t), + (t = j((t = new w(this.a.c + ',sans-serif', E(this.a))))), + (this.h.a.style.cssText = t), + (t = j((t = new w('serif', E(this.a))))), + (this.j.a.style.cssText = t), + (t = j((t = new w('sans-serif', E(this.a))))), + (this.m.a.style.cssText = t), + L(this.g), + L(this.h), + L(this.j), + L(this.m); + } + (x.prototype.c = function(t) { + for (var e = [], n = 0; n < arguments.length; n++) + e.push(arguments[n].replace(/[\W_]+/g, '').toLowerCase()); + return e.join(this.a); + }), + (D.prototype.start = function() { + var t = this.c.o.document, + e = this, + n = s(), + r = new Promise(function(r, i) { + !(function o() { + s() - n >= e.f + ? i() + : t.fonts + .load( + (function(t) { + return ( + k(t) + ' ' + t.f + '00 300px ' + S(t.c) + ); + })(e.a), + e.h + ) + .then( + function(t) { + 1 <= t.length ? r() : setTimeout(o, 25); + }, + function() { + i(); } - }; - this.double - ? this.nodes.handle.forEach(function(t) { - t === document.activeElement && n(t.index); - }) - : this.nodes.handle === - document.activeElement && n(); - }), - (a.stepUp = function(t) { - var e = parseFloat(this.input.step), - n = this.getValue(); - this.double && void 0 !== t && (n = n[t]), - (e = this.limit(parseFloat(n) + e, t)), - this.setValue(e, t); - }), - (a.stepDown = function(t) { - var e = parseFloat(this.input.step), - n = this.getValue(); - this.double && void 0 !== t && (n = n[t]), - (e = this.limit(parseFloat(n) - e, t)), - this.setValue(e, t); - }), - (a.limit = function(t, e) { - var n = this.input, - r = this.getLimits(); - return ( - (t = parseFloat(t)), - this.double && void 0 !== e - ? (!e && t > n.values[1] - ? (t = n.values[1]) - : 0 < e && - t < n.values[0] && - (t = n.values[0]), - this.limits && - (e - ? t > this.limits[1].max - ? (t = this.limits[1].max) - : t < this.limits[1].min && - (t = this.limits[1].min) - : t > this.limits[0].max - ? (t = this.limits[0].max) - : t < this.limits[0].min && - (t = this.limits[0].min))) - : this.limits && - (t > this.limits.max - ? (t = this.limits.max) - : t < this.limits.min && - (t = this.limits.min)), - t > r.max - ? (t = r.max) - : t < r.min && (t = r.min), - (t = parseFloat(t)).toFixed(this.accuracy) - ); - }), - (a.recalculate = function() { - var t = []; - this.double - ? this.nodes.handle.forEach(function(e, n) { - t[n] = e.getBoundingClientRect(); - }) - : (t = this.nodes.handle.getBoundingClientRect()), - (this.rects = { - handle: t, - container: this.nodes.container.getBoundingClientRect() - }); - }), - (a.update = function() { - var t = this; - this.recalculate(), - (this.accuracy = 0), - this.input.step.includes('.') && - (this.accuracy = ( - this.input.step.split('.')[1] || [] - ).length); - var e = this.getValue(), - n = this.getLimits(), - r = this.rects.container[ - this.trackSize[this.axis] - ], - i = function(e, i, o) { - (e.style[ - t.config.vertical ? 'bottom' : 'left' - ] = i + 'px'), - (e.style[t.trackSize[t.axis]] = - (o / n.max) * r - i + 'px'); - }; - this.double - ? (this.limits && - this.limits.forEach(function(e, o) { - i( - t.nodes.buffer[o], - (e.min / n.max) * r, - e.max - ); - }), - this.input.values.forEach(function(e, n) { - t.setValue(t.limit(e, n), n); - })) - : (this.limits && - i( - this.nodes.buffer, - (this.limits.min / n.max) * r, - this.limits.max - ), - this.setValue(this.limit(e))); - }), - (a.getValue = function() { - return this.double - ? this.input.values - : this.input.value; - }), - (a.setValue = function(t, e) { - var n = this.nodes; - if (this.double && void 0 === e) return !1; - void 0 === t && (t = this.input.value), - (t = this.limit(t, e)); - var r = - this.initialised && - (t !== this.input.value || this.nativeEvent), - i = this.config.formatTooltip; - if (this.double) { - var o = this.input.values; - if (((o[e] = t), this.config.tooltips)) { - n.tooltip[e].textContent = i.call(this, t); - var a = n.tooltip[0].getBoundingClientRect(), - s = n.tooltip[1].getBoundingClientRect(); - (a = !( - a.right < s.left || - a.left > s.right || - a.bottom < s.top || - a.top > s.bottom - )), - n.container.classList.toggle( - 'combined-tooltip', - a - ), - a && - (n.tooltip[2].textContent = - o[0] === o[1] - ? i.call(this, o[0]) - : i.call(this, o[0]) + - ' - ' + - i.call(this, o[1])); - } - } else - (this.input.value = t), - (n.tooltip.textContent = i.call(this, t)); - this.setPosition(t, e), - r && - (this.onChange(), - this.nativeEvent || - this.input.dispatchEvent( - new Event('input') - ), - (this.nativeEvent = !1)); - }), - (a.native = function() { - (this.nativeEvent = !0), this.setValue(); - }), - (a.getLimits = function() { - return { - min: parseFloat(this.input.min), - max: parseFloat(this.input.max) - }; - }), - (a.setLimits = function(t) { - var e = this; - if (void 0 === t) return !1; - this.limits || (this.limits = t); - var n = function(t, e) { - void 0 !== e.min && (t.min = e.min), - void 0 !== e.max && (t.max = e.max); - }; - this.double - ? t.forEach(function(t, r) { - n(e.limits[r], t); - }) - : n(this.limits, t), - this.update(); - }), - (a.setPosition = function(t) { - if (this.double) { - t = this.getPosition(this.input.values[0]); - var e = this.getPosition(this.input.values[1]); - (this.nodes.progress.style[ - this.config.vertical ? 'bottom' : 'left' - ] = t + 'px'), - (t = e - t); - } else t = this.getPosition(); - this.nodes.progress.style[ - this.trackSize[this.axis] - ] = t + 'px'; - }), - (a.getPosition = function(t) { - void 0 === t && (t = this.input.value); - var e = this.getLimits(); - return ( - ((t - e.min) / (e.max - e.min)) * - this.rects.container[this.trackSize[this.axis]] - ); - }), - (a.getHandle = function(t) { - if (!this.double) - return ( - !this.nodes.handle.locked && this.nodes.handle - ); - var e = this.rects, - n = Math.abs( - t[this.mouseAxis[this.axis]] - - e.handle[0][this.trackPos[this.axis]] ); - return ( - (e = Math.abs( - t[this.mouseAxis[this.axis]] - - e.handle[1][this.trackPos[this.axis]] - )), - (t = t.target.closest( - '.' + this.config.classes.handle - )) || - (t = - n > e - ? this.nodes.handle[1] - : this.nodes.handle[0]), - !t.locked && t - ); - }), - (a.enable = function() { - this.input.disabled && - (this.nodes.container.addEventListener( - this.touch ? 'touchstart' : 'mousedown', - this.events.start, - !1 - ), - this.double - ? this.nodes.handle.forEach(function(t) { - return (t.tabIndex = 1); - }) - : (this.nodes.handle.tabIndex = 1), - this.nodes.container.classList.remove( - this.config.classes.disabled - ), - (this.input.disabled = !1)); - }), - (a.disable = function() { - this.input.disabled || - (this.nodes.container.removeEventListener( - this.touch ? 'touchstart' : 'mousedown', - this.events.start - ), - this.double - ? this.nodes.handle.forEach(function(t) { - return t.removeAttribute('tabindex'); - }) - : this.nodes.handle.removeAttribute( - 'tabindex' - ), - this.nodes.container.classList.add( - this.config.classes.disabled - ), - (this.input.disabled = !0)); - }), - (a.bind = function() { - var t = this; - (this.events = {}), - 'start move stop update reset native keydown' - .split(' ') - .forEach(function(e) { - t.events[e] = t[e].bind(t); - }), - (this.events.scroll = i( - this.events.update, - this.config.updateThrottle - )), - (this.events.resize = i( - this.events.update, - this.config.updateThrottle - )), - document.addEventListener( - 'scroll', - this.events.scroll, - !1 - ), - window.addEventListener( - 'resize', - this.events.resize, - !1 - ), - document.addEventListener( - 'keydown', - this.events.keydown, - !1 - ), - this.nodes.container.addEventListener( - this.touch ? 'touchstart' : 'mousedown', - this.events.start, - !1 - ), - this.input.addEventListener( - 'input', - this.events.native, - !1 - ), - this.input.form && - this.input.form.addEventListener( - 'reset', - this.events.reset, - !1 - ); - }), - (a.unbind = function() { - document.removeEventListener( - 'scroll', - this.events.scroll - ), - window.removeEventListener( - 'resize', - this.events.resize - ), - document.removeEventListener( - 'keydown', - this.events.keydown - ), - this.nodes.container.removeEventListener( - this.touch ? 'touchstart' : 'mousedown', - this.events.start - ), - this.input.removeEventListener( - 'input', - this.events.native - ), - this.input.form && - this.input.form.removeEventListener( - 'reset', - this.events.reset - ), - (this.events = null); - }), - (a.destroy = function() { - this.input.rangeable && - (this.unbind(), - this.input.classList.remove( - this.config.classes.input - ), - this.nodes.container.parentNode.replaceChild( - this.input, - this.nodes.container - ), - delete this.input.rangeable, - (this.initialised = !1)); - }), - (a.onInit = function() { - r(this.config.onInit) && - this.config.onInit.call(this, this.getValue()); - }), - (a.onStart = function() { - r(this.config.onStart) && - this.config.onStart.call(this, this.getValue()); - }), - (a.onChange = function() { - r(this.config.onChange) && - this.config.onChange.call( - this, - this.getValue() + })(); + }), + i = null, + o = new Promise(function(t, n) { + i = setTimeout(n, e.f); + }); + Promise.race([o, r]).then( + function() { + i && (clearTimeout(i), (i = null)), e.g(e.a); + }, + function() { + e.j(e.a); + } + ); + }); + var z = { D: 'serif', C: 'sans-serif' }, + N = null; + function I() { + if (null === N) { + var t = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec( + window.navigator.userAgent + ); + N = + !!t && + (536 > parseInt(t[1], 10) || + (536 === parseInt(t[1], 10) && + 11 >= parseInt(t[2], 10))); + } + return N; + } + function F(t, e, n) { + for (var r in z) + if ( + z.hasOwnProperty(r) && + e === t.f[z[r]] && + n === t.f[z[r]] + ) + return !0; + return !1; + } + function V(t, e) { + setTimeout( + a(function() { + d(this.g.a), + d(this.h.a), + d(this.j.a), + d(this.m.a), + e(this.a); + }, t), + 0 + ); + } + function B(t, e, n) { + (this.c = t), + (this.a = e), + (this.f = 0), + (this.m = this.j = !1), + (this.s = n); + } + R.prototype.start = function() { + (this.f.serif = this.j.a.offsetWidth), + (this.f['sans-serif'] = this.m.a.offsetWidth), + (this.A = s()), + (function t(e) { + var n, + r = e.g.a.offsetWidth, + i = e.h.a.offsetWidth; + (n = r === e.f.serif && i === e.f['sans-serif']) || + (n = I() && F(e, r, i)), + n + ? s() - e.A >= e.w + ? I() && + F(e, r, i) && + (null === e.u || e.u.hasOwnProperty(e.a.c)) + ? V(e, e.v) + : V(e, e.B) + : (function(e) { + setTimeout( + a(function() { + t(this); + }, e), + 50 ); - }), - (a.onEnd = function() { - r(this.config.onEnd) && - this.config.onEnd.call(this, this.getValue()); - }), - o)); - }.call(this, n(7))); - }, - function(t, e, n) { - 'use strict'; - (function(t) { - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Dataset = e.Dataviz = e.keenGlobals = e.extendKeenGlobalObject = void 0); - var r = n(21); - Object.defineProperty(e, 'Dataviz', { - enumerable: !0, - get: function() { - return r.Dataviz; - } - }), - Object.defineProperty(e, 'Dataset', { - enumerable: !0, - get: function() { - return r.Dataset; - } - }), - void 0 !== t || - ('undefined' != typeof self - ? self - : 'undefined' != typeof window && window), - (e.extendKeenGlobalObject = function(t) { - (t.KeenDataviz = r.Dataviz), - (t.KeenDataset = r.Dataset), - (t.Keen = t.Keen || {}), - (t.Keen.Dataset = r.Dataset), - (t.Keen.Dataviz = r.Dataviz); - }), - (e.keenGlobals = void 0), - 'undefined' != typeof webpackKeenGlobals && - (e.keenGlobals = webpackKeenGlobals), - (e.default = r.Dataviz); - }.call(this, n(7))); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Dataset = e.Dataviz = void 0); - var r = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - }, - i = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }, - o = n(12); - Object.defineProperty(e, 'Dataset', { - enumerable: !0, - get: function() { - return o.Dataset; + })(e) + : V(e, e.v); + })(this); + }; + var G = null; + function H(t) { + 0 == --t.f && + t.j && + (t.m + ? ((t = t.a).g && + h( + t.f, + [t.a.c('wf', 'active')], + [t.a.c('wf', 'loading'), t.a.c('wf', 'inactive')] + ), + O(t, 'active')) + : C(t.a)); + } + function U(t) { + (this.j = t), + (this.a = new P()), + (this.h = 0), + (this.f = this.g = !0); + } + function q(t, e, n, r, i) { + var o = 0 == --t.h; + (t.f || t.g) && + setTimeout(function() { + var t = i || null, + s = r || {}; + if (0 === n.length && o) C(e.a); + else { + (e.f += n.length), o && (e.j = o); + var u, + l = []; + for (u = 0; u < n.length; u++) { + var c = n[u], + f = s[c.c], + d = e.a, + p = c; + if ( + (d.g && + h(d.f, [ + d.a.c('wf', p.c, E(p).toString(), 'loading') + ]), + O(d, 'fontloading', p), + (d = null), + null === G) + ) + if (window.FontFace) { + p = /Gecko.*Firefox\/(\d+)/.exec( + window.navigator.userAgent + ); + var g = + /OS X.*Version\/10\..*Safari/.exec( + window.navigator.userAgent + ) && /Apple/.exec(window.navigator.vendor); + G = p ? 42 < parseInt(p[1], 10) : !g; + } else G = !1; + (d = G + ? new D(a(e.g, e), a(e.h, e), e.c, c, e.s, f) + : new R(a(e.g, e), a(e.h, e), e.c, c, e.s, t, f)), + l.push(d); } - }); - var a = (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && - (e[n] = t[n]); - return (e.default = t), e; - })(n(2)), - s = x(n(10)), - u = x(n(31)), - l = x(n(32)), - c = n(0), - f = x(n(11)), - d = n(14), - h = (n(4), x(n(33))), - p = n(15), - g = x(n(17)), - v = x(n(18)), - m = x(n(16)), - y = x(n(53)), - b = x(n(1)), - _ = x(n(54)); - function x(t) { - return t && t.__esModule ? t : { default: t }; + for (u = 0; u < l.length; u++) l[u].start(); } - var w = (e.Dataviz = function t() { - var e = this, - n = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : {}; - if (this instanceof t == 0) return new t(n); - (this.c3 = s.default), (this.d3 = a); - var r = { - showDeprecationWarnings: !0, - showLoadingSpinner: !1, - container: void 0, - containerElement: void 0, - title: void 0, - showTitle: !0, - subtitle: void 0, - notes: void 0, - theme: 'keen-dataviz', - colors: [ - '#00bbde', - '#fe6672', - '#eeb058', - '#8a8ad6', - '#ff855c', - '#00cfbb', - '#5a9eed', - '#73d483', - '#c879bb', - '#0099b6', - '#d74d58', - '#cb9141', - '#6b6bb6', - '#d86945', - '#00aa99', - '#4281c9', - '#57b566', - '#ac5c9e', - '#27cceb', - '#ff818b', - '#f6bf71', - '#9b9be1', - '#ff9b79', - '#26dfcd', - '#73aff4', - '#87e096', - '#d88bcb' - ], - colorMapping: {}, - ui: { executionMetadata: !0 }, - utils: { clickToCopyToClipboard: !0 }, - indexBy: 'timeframe.start', - labels: [], - labelMapping: {}, - labelMappingRegExp: void 0, - errorMapping: {}, - showErrorMessages: !0, - library: 'default', - sortGroups: void 0, - sortIntervals: void 0, - results: void 0, - type: void 0, - stacked: !1, - dateFormat: void 0, - legend: { - show: !0, - position: 'right', - alignment: 'top', - label: { textMaxLength: 12 }, - pagination: { offset: 0, limit: 5 }, - tooltip: { show: !0, pointer: !0 }, - sort: void 0 - }, - axis: {}, - color: {}, - size: {}, - padding: { top: 15 }, - point: { - focus: { expand: { enabled: !1 } }, - r: 2, - show: !0, - sensitivity: 300 - }, - tooltip: { horizontal: !0, format: {} }, - transition: {}, - data: { - order: null, - selection: { - enabled: !0, - draggable: !0, - multiple: !0 - }, - onselected: function(t, n) { - var r = e.view._artifacts.c3 - .selected() - .reduce(function(t, e) { - return t + e.value; - }, 0); - (0, b.default)(r); - } - }, - grid: { y: { show: !0 } }, - partialIntervalIndicator: { - show: void 0, - className: 'partial-interval-indicator' - }, - timezone: 'UTC', - table: { schema: 'static' }, - renderOnVisible: !1, - funnel: { - lines: !0, - resultValues: !0, - percents: { - show: !1, - countingMethod: 'absolute', - decimals: 0 - }, - marginBetweenElements: !1, - hover: !0, - effect3d: 'both-sides', - minimalSize: !1 - }, - react: !1, - range: !1, - sparkline: !1, - choropleth: { - map: 'world', - borders: { show: !0, size: 0.5, color: '#000' }, - showSlider: !1 - }, - heatmap: {} - }; - (this.config = i({}, (0, p.extendDeep)(r, n))), - n.palette && - (_.default[n.palette] || - console.log( - 'Colors pallete not found', - n.palette - ), - (this.config.colors = _.default[n.palette].colors)), - this.config.type && - (this.config.type = O(this.config.type)), - this.config.type && - this.config.type.includes('-range') && - ((this.config.range = !0), - (this.config.type = this.config.type.replace( - '-range', - '' - )), - (this.config.legend.show = !1), - (this.config.stacking = 'normal'), - (this.config.labels = ['Max', 'Min']), - (this.config.colors = [ - this.config.colors[0], - this.config.colors[0] - ])), - this.config.stacking && (this.config.stacked = !0), - this.config.sparkline && - ((this.config.legend.show = !1), - (this.config.axis = { - x: { show: !1 }, - y: { show: !1 } - }), - (this.config.grid = { - x: { show: !1 }, - y: { show: !1 } - })), - this.config.container && - this.el(this.config.container), - void 0 === n.legend || - n.legend || - (this.config.legend = i({}, n, { show: !1 })), - n.color && - n.color.pattern && - (this.config.colors = n.color.pattern), - this.config.legend && - this.config.legend.tooltip && - !1 === this.config.legend.tooltip.show && - void 0 === this.config.tooltip.show && - (this.config.tooltip = { show: !1 }), - (this.dataset = new o.Dataset(this.config)), - (this.view = { - _prepared: !1, - _rendered: !1, - _artifacts: {} - }), - t.visuals.push(this), - this.config.showLoadingSpinner && this.prepare(), - this.config.results && - this.render(this.config.results), - (this.config.firstVisibilityState = - document.visibilityState), - this.config.utils.clickToCopyToClipboard || - (this.config.data.onselected = function() {}), - n.data && - n.data.onselected && - (this.config.data.onselected = function(t, r) { - if ( - (n.data.onselected.bind(null, t, r)(), - e.config.utils.clickToCopyToClipboard) - ) { - var i = e.view._artifacts.c3 - .selected() - .reduce(function(t, e) { - return t + e.value; - }, 0); - (0, b.default)(i); + }, 0); + } + function W(t, e) { + (this.c = t), (this.a = e); + } + function X(t, e) { + (this.c = t), (this.a = e); + } + function Y(t, e) { + (this.c = t || $), + (this.a = []), + (this.f = []), + (this.g = e || ''); + } + (B.prototype.g = function(t) { + var e = this.a; + e.g && + h( + e.f, + [e.a.c('wf', t.c, E(t).toString(), 'active')], + [ + e.a.c('wf', t.c, E(t).toString(), 'loading'), + e.a.c('wf', t.c, E(t).toString(), 'inactive') + ] + ), + O(e, 'fontactive', t), + (this.m = !0), + H(this); + }), + (B.prototype.h = function(t) { + var e = this.a; + if (e.g) { + var n = p( + e.f, + e.a.c('wf', t.c, E(t).toString(), 'active') + ), + r = [], + i = [e.a.c('wf', t.c, E(t).toString(), 'loading')]; + n || + r.push(e.a.c('wf', t.c, E(t).toString(), 'inactive')), + h(e.f, r, i); + } + O(e, 'fontinactive', t), H(this); + }), + (U.prototype.load = function(t) { + (this.c = new u(this.j, t.context || this.j)), + (this.g = !1 !== t.events), + (this.f = !1 !== t.classes), + (function(t, e, n) { + var r = [], + i = n.timeout; + !(function(t) { + t.g && h(t.f, [t.a.c('wf', 'loading')]), + O(t, 'loading'); + })(e), + (r = (function(t, e, n) { + var r, + i = []; + for (r in e) + if (e.hasOwnProperty(r)) { + var o = t.c[r]; + o && i.push(o(e[r], n)); } - }); - }); - function S(t) { - 2 !== t.data()[0].length || - (0, f.default)(t.data()[1][0]) - ? t.dataset.updateRow( - 0, - function(e, n) { - return n > 0 && t.config.labels[n - 1] - ? (0, d.stripHtmlTags)( - String(t.config.labels[n - 1]) - ) - : (0, d.stripHtmlTags)(e); - }.bind(t) - ) - : t.dataset.updateColumn( - 0, - function(e, n) { - return t.config.labels[n - 1] - ? (0, d.stripHtmlTags)( - String(t.config.labels[n - 1]) - ) - : (0, d.stripHtmlTags)(e); - }.bind(t) - ); - } - function E(t) { - var e = t.datavizInstance, - n = t.value; - if (e.config.labelMappingRegExp) { - var r = n; - return ( - e.config.labelMappingRegExp.forEach(function(t) { - t.length > 1 && t[0].test(n) && (r = t[1]); - }), - (0, d.stripHtmlTags)(r) - ); + return i; + })(t.a, n, t.c)); + var o = new B(t.c, e, i); + for (t.h = r.length, e = 0, n = r.length; e < n; e++) + r[e].load(function(e, n, r) { + q(t, o, e, n, r); + }); + })(this, new T(this.c, t), t); + }), + (W.prototype.load = function(t) { + var e = this, + n = e.a.projectId, + r = e.a.version; + if (n) { + var i = e.c.o; + m( + this.c, + (e.a.api || 'https://fast.fonts.net/jsapi') + + '/' + + n + + '.js' + + (r ? '?v=' + r : ''), + function(r) { + r + ? t([]) + : ((i[ + '__MonotypeConfiguration__' + n + ] = function() { + return e.a; + }), + (function e() { + if (i['__mti_fntLst' + n]) { + var r, + o = i['__mti_fntLst' + n](), + a = []; + if (o) + for (var s = 0; s < o.length; s++) { + var u = o[s].fontfamily; + null != o[s].fontStyle && + null != o[s].fontWeight + ? ((r = + o[s].fontStyle + o[s].fontWeight), + a.push(new w(u, r))) + : a.push(new w(u)); + } + t(a); + } else + setTimeout(function() { + e(); + }, 50); + })()); } - return e.config.labelMapping[n] - ? (0, d.stripHtmlTags)( - String(e.config.labelMapping[n]) - ) - : (0, d.stripHtmlTags)(n); - } - function k(t) { - t.config.labelMappingDimension || - (2 !== t.data()[0].length || - (0, f.default)(t.data()[1][0]) - ? (t.config.labelMappingDimension = 'column') - : (t.config.labelMappingDimension = 'row')), - ('row' !== t.config.labelMappingDimension && - 'both' !== t.config.labelMappingDimension) || - t.dataset.updateColumn( - 0, - function(e) { - return E({ datavizInstance: t, value: e }); - }.bind(t) - ), - ('column' !== t.config.labelMappingDimension && - 'both' !== t.config.labelMappingDimension) || - t.dataset.updateRow( - 0, - function(e) { - return E({ datavizInstance: t, value: e }); - }.bind(t) - ); - } - function A(t) { - t.config.sortGroups && - t.data().length > 1 && - ((0, f.default)(t.data()[1][0]) - ? t.dataset.sortColumns( - t.config.sortGroups, - t.dataset.getColumnSum - ) - : t.dataset.sortRows( - t.config.sortGroups, - t.dataset.getRowSum - )); - } - function T(t) { - t.config.sortIntervals && - t.dataset.sortRows(t.config.sortIntervals); - } - function C(t, e) { - var n = '', - r = '', - i = ''; - ('top' !== e.legend.position && - 'bottom' !== e.legend.position) || - (r = 'c3-chart-100-percent'), - e.range && (i = 'keen-dataviz-range'); - var o = - '
', - a = 'horizontal', - s = 'center'; - ['left', 'center', 'right'].includes( - e.legend.alignment - ) && (s = e.legend.alignment), - ('left' !== e.legend.position && - 'right' !== e.legend.position) || - ((a = 'vertical'), - ['top', 'middle', 'bottom'].includes( - e.legend.alignment - ) && (s = e.legend.alignment)), - e.legend && - e.legend.show && - (o = - 'top' === e.legend.position || - 'left' === e.legend.position - ? '
' + - o - : o + - '
'), - e.react || (n += '
'), - e.title && - e.showTitle && - (n += - '
' + - e.title + - '
'), - e.subtitle && - (n += - '
' + - e.subtitle + - '
'), - (n += - '
' + - o + - '
'), - e.notes && - (n += - '
' + - e.notes + - '
'), - e.react || (n += '
'), - (t.innerHTML = n); + ).id = '__MonotypeAPIScript__' + n; + } else t([]); + }), + (X.prototype.load = function(t) { + var e, + n, + r = this.a.urls || [], + i = this.a.families || [], + o = this.a.testStrings || {}, + a = new v(); + for (e = 0, n = r.length; e < n; e++) g(this.c, r[e], y(a)); + var s = []; + for (e = 0, n = i.length; e < n; e++) + if ((r = i[e].split(':'))[1]) + for ( + var u = r[1].split(','), l = 0; + l < u.length; + l += 1 + ) + s.push(new w(r[0], u[l])); + else s.push(new w(r[0])); + b(a, function() { + t(s, o); + }); + }); + var $ = 'https://fonts.googleapis.com/css'; + function K(t) { + (this.f = t), (this.a = []), (this.c = {}); + } + var Q = { + latin: 'BESbswy', + 'latin-ext': 'çöüğş', + cyrillic: 'йяЖ', + greek: 'αβΣ', + khmer: 'កខគ', + Hanuman: 'កខគ' + }, + Z = { + thin: '1', + extralight: '2', + 'extra-light': '2', + ultralight: '2', + 'ultra-light': '2', + light: '3', + regular: '4', + book: '4', + medium: '5', + 'semi-bold': '6', + semibold: '6', + 'demi-bold': '6', + demibold: '6', + bold: '7', + 'extra-bold': '8', + extrabold: '8', + 'ultra-bold': '8', + ultrabold: '8', + black: '9', + heavy: '9', + l: '3', + r: '4', + b: '7' + }, + J = { i: 'i', italic: 'i', n: 'n', normal: 'n' }, + tt = /^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/; + function et(t, e) { + (this.c = t), (this.a = e); + } + var nt = { Arimo: !0, Cousine: !0, Tinos: !0 }; + function rt(t, e) { + (this.c = t), (this.a = e); + } + function it(t, e) { + (this.c = t), (this.f = e), (this.a = []); + } + (et.prototype.load = function(t) { + var e = new v(), + n = this.c, + r = new Y(this.a.api, this.a.text), + i = this.a.families; + !(function(t, e) { + for (var n = e.length, r = 0; r < n; r++) { + var i = e[r].split(':'); + 3 == i.length && t.f.push(i.pop()); + var o = ''; + 2 == i.length && '' != i[1] && (o = ':'), + t.a.push(i.join(o)); + } + })(r, i); + var o = new K(i); + !(function(t) { + for (var e = t.f.length, n = 0; n < e; n++) { + var r = t.f[n].split(':'), + i = r[0].replace(/\+/g, ' '), + o = ['n4']; + if (2 <= r.length) { + var a; + if (((a = []), (s = r[1]))) + for ( + var s, u = (s = s.split(',')).length, l = 0; + l < u; + l++ + ) { + var c; + if ((c = s[l]).match(/^[\w-]+$/)) + if (null == (f = tt.exec(c.toLowerCase()))) + c = ''; + else { + if ( + ((c = + null == (c = f[2]) || '' == c ? 'n' : J[c]), + null == (f = f[1]) || '' == f) + ) + f = '4'; + else + var f = + Z[f] || (isNaN(f) ? '4' : f.substr(0, 1)); + c = [c, f].join(''); + } + else c = ''; + c && a.push(c); + } + 0 < a.length && (o = a), + 3 == r.length && + ((a = []), + 0 < (r = (r = r[2]) ? r.split(',') : a).length && + (r = Q[r[0]]) && + (t.c[i] = r)); } - function O(t) { + for ( + t.c[i] || ((r = Q[i]) && (t.c[i] = r)), r = 0; + r < o.length; + r += 1 + ) + t.a.push(new w(i, o[r])); + } + })(o), + g( + n, + (function(t) { + if (0 == t.a.length) throw Error('No fonts to load!'); + if (-1 != t.c.indexOf('kit=')) return t.c; + for (var e = t.a.length, n = [], r = 0; r < e; r++) + n.push(t.a[r].replace(/ /g, '+')); return ( - { - areachart: 'area', - barchart: 'horizontal-bar', - columnchart: 'bar', - linechart: 'line', - piechart: 'pie' - }[t] || t + (e = t.c + '?family=' + n.join('%7C')), + 0 < t.f.length && (e += '&subset=' + t.f.join(',')), + 0 < t.g.length && + (e += '&text=' + encodeURIComponent(t.g)), + e ); + })(r), + y(e) + ), + b(e, function() { + t(o.a, o.c, nt); + }); + }), + (rt.prototype.load = function(t) { + var e = this.a.id, + n = this.c.o; + e + ? m( + this.c, + (this.a.api || 'https://use.typekit.net/') + + '/' + + e + + '.js', + function(e) { + if (e) t([]); + else if ( + n.Typekit && + n.Typekit.config && + n.Typekit.config.fn + ) { + e = n.Typekit.config.fn; + for (var r = [], i = 0; i < e.length; i += 2) + for ( + var o = e[i], a = e[i + 1], s = 0; + s < a.length; + s++ + ) + r.push(new w(o, a[s])); + try { + n.Typekit.load({ + events: !1, + classes: !1, + async: !0 + }); + } catch (t) {} + t(r); + } + }, + 2e3 + ) + : t([]); + }), + (it.prototype.load = function(t) { + var e = this.f.id, + n = this.c.o, + r = this; + e + ? (n.__webfontfontdeckmodule__ || + (n.__webfontfontdeckmodule__ = {}), + (n.__webfontfontdeckmodule__[e] = function(e, n) { + for (var i = 0, o = n.fonts.length; i < o; ++i) { + var a = n.fonts[i]; + r.a.push( + new w( + a.name, + A( + 'font-weight:' + + a.weight + + ';font-style:' + + a.style + ) + ) + ); + } + t(r.a); + }), + m( + this.c, + (this.f.api || 'https://f.fontdeck.com/s/css/js/') + + (function(t) { + return ( + t.o.location.hostname || t.a.location.hostname + ); + })(this.c) + + '/' + + e + + '.js', + function(e) { + e && t([]); + } + )) + : t([]); + }); + var ot = new U(window); + (ot.a.c.custom = function(t, e) { + return new X(e, t); + }), + (ot.a.c.fontdeck = function(t, e) { + return new it(e, t); + }), + (ot.a.c.monotype = function(t, e) { + return new W(e, t); + }), + (ot.a.c.typekit = function(t, e) { + return new rt(e, t); + }), + (ot.a.c.google = function(t, e) { + return new et(e, t); + }); + var at = { load: a(ot.load, ot) }; + void 0 === + (r = function() { + return at; + }.call(e, n, e, t)) || (t.exports = r); + })(); + }, + function(t, e) { + t.exports = function(t) { + var e = { + begin: /[A-Z\_\.\-]+\s*:/, + returnBegin: !0, + end: ';', + endsWithParent: !0, + contains: [ + { + className: 'attribute', + begin: /\S/, + end: ':', + excludeEnd: !0, + starts: { + endsWithParent: !0, + excludeEnd: !0, + contains: [ + { + begin: /[\w-]+\(/, + returnBegin: !0, + contains: [ + { className: 'built_in', begin: /[\w-]+/ }, + { + begin: /\(/, + end: /\)/, + contains: [ + t.APOS_STRING_MODE, + t.QUOTE_STRING_MODE + ] + } + ] + }, + t.CSS_NUMBER_MODE, + t.QUOTE_STRING_MODE, + t.APOS_STRING_MODE, + t.C_BLOCK_COMMENT_MODE, + { className: 'number', begin: '#[0-9A-Fa-f]+' }, + { className: 'meta', begin: '!important' } + ] } - function P(t) { - 'undefined' == typeof document && - 'undefined' != typeof window - ? (null == document.readyState && - document.addEventListener && - (document.addEventListener( - 'DOMContentLoaded', - function t() { - document.removeEventListener( - 'DOMContentLoaded', - t, - !1 - ), - (document.readyState = 'complete'); + } + ] + }; + return { + case_insensitive: !0, + illegal: /[=\/|'\$]/, + contains: [ + t.C_BLOCK_COMMENT_MODE, + { className: 'selector-id', begin: /#[A-Za-z0-9_-]+/ }, + { className: 'selector-class', begin: /\.[A-Za-z0-9_-]+/ }, + { + className: 'selector-attr', + begin: /\[/, + end: /\]/, + illegal: '$' + }, + { + className: 'selector-pseudo', + begin: /:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/ + }, + { + begin: '@(font-face|page)', + lexemes: '[a-z-]+', + keywords: 'font-face page' + }, + { + begin: '@', + end: '[{;]', + illegal: /:/, + contains: [ + { className: 'keyword', begin: /\w+/ }, + { + begin: /\s/, + endsWithParent: !0, + excludeEnd: !0, + relevance: 0, + contains: [ + t.APOS_STRING_MODE, + t.QUOTE_STRING_MODE, + t.CSS_NUMBER_MODE + ] + } + ] + }, + { + className: 'selector-tag', + begin: '[a-zA-Z-][a-zA-Z0-9_-]*', + relevance: 0 + }, + { + begin: '{', + end: '}', + illegal: /\S/, + contains: [t.C_BLOCK_COMMENT_MODE, e] + } + ] + }; + }; + }, + function(t, e) { + t.exports = function(t) { + var e = '[A-Za-z$_][0-9A-Za-z$_]*', + n = { + keyword: + 'in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as', + literal: 'true false null undefined NaN Infinity', + built_in: + 'eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise' + }, + r = { + className: 'number', + variants: [ + { begin: '\\b(0[bB][01]+)' }, + { begin: '\\b(0[oO][0-7]+)' }, + { begin: t.C_NUMBER_RE } + ], + relevance: 0 + }, + i = { + className: 'subst', + begin: '\\$\\{', + end: '\\}', + keywords: n, + contains: [] + }, + o = { + className: 'string', + begin: '`', + end: '`', + contains: [t.BACKSLASH_ESCAPE, i] + }; + i.contains = [ + t.APOS_STRING_MODE, + t.QUOTE_STRING_MODE, + o, + r, + t.REGEXP_MODE + ]; + var a = i.contains.concat([ + t.C_BLOCK_COMMENT_MODE, + t.C_LINE_COMMENT_MODE + ]); + return { + aliases: ['js', 'jsx'], + keywords: n, + contains: [ + { + className: 'meta', + relevance: 10, + begin: /^\s*['"]use (strict|asm)['"]/ + }, + { className: 'meta', begin: /^#!/, end: /$/ }, + t.APOS_STRING_MODE, + t.QUOTE_STRING_MODE, + o, + t.C_LINE_COMMENT_MODE, + t.C_BLOCK_COMMENT_MODE, + r, + { + begin: /[{,]\s*/, + relevance: 0, + contains: [ + { + begin: e + '\\s*:', + returnBegin: !0, + relevance: 0, + contains: [ + { className: 'attr', begin: e, relevance: 0 } + ] + } + ] + }, + { + begin: + '(' + + t.RE_STARTERS_RE + + '|\\b(case|return|throw)\\b)\\s*', + keywords: 'return throw case', + contains: [ + t.C_LINE_COMMENT_MODE, + t.C_BLOCK_COMMENT_MODE, + t.REGEXP_MODE, + { + className: 'function', + begin: '(\\(.*?\\)|' + e + ')\\s*=>', + returnBegin: !0, + end: '\\s*=>', + contains: [ + { + className: 'params', + variants: [ + { begin: e }, + { begin: /\(\s*\)/ }, + { + begin: /\(/, + end: /\)/, + excludeBegin: !0, + excludeEnd: !0, + keywords: n, + contains: a + } + ] + } + ] + }, + { className: '', begin: /\s/, end: /\s*/, skip: !0 }, + { + begin: //, + subLanguage: 'xml', + contains: [ + { begin: /<[A-Za-z0-9\\._:-]+\s*\/>/, skip: !0 }, + { + begin: /<[A-Za-z0-9\\._:-]+/, + end: /(\/[A-Za-z0-9\\._:-]+|[A-Za-z0-9\\._:-]+\/)>/, + skip: !0, + contains: [ + { + begin: /<[A-Za-z0-9\\._:-]+\s*\/>/, + skip: !0 }, - !1 - ), - (document.readyState = 'loading')), - (function t(e) { - /in/.test(document.readyState) - ? setTimeout(function() { - t(e); - }, 9) - : e(); - })(t)) - : t(); + 'self' + ] + } + ] + } + ], + relevance: 0 + }, + { + className: 'function', + beginKeywords: 'function', + end: /\{/, + excludeEnd: !0, + contains: [ + t.inherit(t.TITLE_MODE, { begin: e }), + { + className: 'params', + begin: /\(/, + end: /\)/, + excludeBegin: !0, + excludeEnd: !0, + contains: a + } + ], + illegal: /\[|%/ + }, + { begin: /\$[(.]/ }, + t.METHOD_GUARD, + { + className: 'class', + beginKeywords: 'class', + end: /[{;=]/, + excludeEnd: !0, + illegal: /[:"\[\]]/, + contains: [ + { beginKeywords: 'extends' }, + t.UNDERSCORE_TITLE_MODE + ] + }, + { + beginKeywords: 'constructor get set', + end: /\{/, + excludeEnd: !0 + } + ], + illegal: /#(?!!)/ + }; + }; + }, + function(t, e) { + t.exports = c; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.flush = function() { + var t = l.cssRules(); + return l.flush(), t; + }), + (e.default = void 0); + var r, + i = n(0); + function o(t) { + return (o = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(t) { + return typeof t; } - (w.libraries = { default: {} }), - 'undefined' != typeof window && - (w.libraries.default = (0, h.default)(w)), - (w.visuals = []), - (w.register = function(t, e) { - (w.libraries[t] = w.libraries[t] || {}), - (0, c.each)(e, function(e, n) { - w.libraries[t][n] = e; - }); - }), - (w.find = function(t) { - if (!arguments.length) return w.visuals; - var e = t.nodeName ? t : document.querySelector(t), - n = null; - return ( - (0, c.each)(w.visuals, function(t) { - if (e == t.config.container) return (n = t), !1; - }), - n - ); - }), - (w.prototype.attributes = function(t) { - if ( - (this.config.showDeprecationWarnings && - console.log( - '.attributes() is deprecated. Use: new KeenDataviz({ _your_value_here_ })' - ), - !arguments.length) - ) - return this.config; - var e = this.config; - return ( - (0, c.each)(t, function(t, n) { - 'chartType' === n && (n = 'type'), (e[n] = t); - }), - this - ); - }), - (w.prototype.call = function(t) { - return t.call(this), this; - }), - (w.prototype.chartOptions = function(t) { - return ( - this.config.showDeprecationWarnings && - console.log( - '.chartOptions() is deprecated. Use: new KeenDataviz({ _your_value_here_ })' - ), - arguments.length - ? ((this.config = (0, p.extendDeep)( - this.config, - t - )), - this) - : this.config - ); - }), - (w.prototype.colors = function(t) { - return ( - this.config.showDeprecationWarnings && - console.log( - '.colors() is deprecated. Use: new KeenDataviz({ colors: _your_value_here_ })' - ), - arguments.length - ? ((this.config.colors = - t instanceof Array ? t : []), - this) - : this.config.colors - ); - }), - (w.prototype.colorMapping = function(t) { - this.config.showDeprecationWarnings && - console.log( - '.colorMapping() is deprecated. Use: new KeenDataviz({ colorMapping: _your_value_here_ })' - ); - var e = this; - return arguments.length - ? (null === t - ? (this.config.colorMapping = {}) - : 'object' === - (void 0 === t ? 'undefined' : r(t)) && - (0, c.each)(t, function(t, n) { - e.config.colorMapping[n] = t || null; - }), - this) - : this.config.colorMapping; - }), - (w.prototype.data = l.default), - (w.prototype.dateFormat = function(t) { - return ( - this.config.showDeprecationWarnings && - console.log( - '.dateFormat() is deprecated. Use: new KeenDataviz({ dateFormat: _your_value_here_ })' - ), - arguments.length - ? ((this.config.dateFormat = - 'string' == typeof t || 'function' == typeof t - ? t - : void 0), - this) - : this.config.dateFormat - ); - }), - (w.prototype.destroy = function() { - var t = this.library(), - e = this.config.type, - n = this.el(); - return ( - w.libraries[t] && - w.libraries[t][e] && - w.libraries[t][e].destroy.call(this), - n && (n.innerHTML = ''), - (this.view._prepared = !1), - (this.view._rendered = !1), - (this.view._artifacts = {}), - this - ); - }), - (w.prototype.el = function(t) { - var e = this; - return arguments.length - ? (P(function() { - t && null !== t - ? t.nodeName - ? (e.config.containerElement = t) - : document.querySelector && - (e.config.containerElement = document.querySelector( - t - )) - : (e.config.containerElement = void 0); - }), - this) - : this.config.containerElement; - }), - (w.prototype.height = function(t) { - return ( - this.config.showDeprecationWarnings && - console.log( - '.height() is deprecated - use CSS classes' - ), - this - ); - }), - (w.prototype.indexBy = function(t) { - return ( - this.config.showDeprecationWarnings && - console.log( - '.indexBy() is deprecated. Use: new KeenDataviz({ indexBy: _your_value_here_ })' - ), - arguments.length - ? ((this.config.indexBy = t - ? String(t) - : 'timeframe.start'), - this) - : this.config.indexBy - ); - }), - (w.prototype.labels = function(t) { - return ( - this.config.showDeprecationWarnings && - console.log( - '.labels() is deprecated. Use: new KeenDataviz({ labels: _your_value_here_ })' - ), - arguments.length - ? ((this.config.labels = - t instanceof Array ? t : []), - S(this), - this) - : this.config.labels - ); - }), - (w.prototype.labelMapping = function(t) { - return ( - this.config.showDeprecationWarnings && - console.log( - '.labelMapping() is deprecated. Use: new KeenDataviz({ labelMapping: _your_value_here_ })' - ), - arguments.length - ? (null === t - ? (this.config.labelMapping = {}) - : 'object' === - (void 0 === t ? 'undefined' : r(t)) && - (0, c.each)( - t, - function(t, e) { - this.config.labelMapping[e] = t || null; - }.bind(this) - ), - k(this), - this) - : this.config.labelMapping + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t; + })(t); + } + function a(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + function s(t) { + return (s = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + })(t); + } + function u(t, e) { + return (u = + Object.setPrototypeOf || + function(t, e) { + return (t.__proto__ = e), t; + })(t, e); + } + var l = new ((r = n(96)) && r.__esModule + ? r + : { default: r } + ).default(), + c = (function(t) { + function e(t) { + var n; + return ( + (function(t, e) { + if (!(t instanceof e)) + throw new TypeError( + 'Cannot call a class as a function' ); - }), - (w.prototype.library = function(t) { - return arguments.length - ? ((this.config.library = t ? String(t) : null), - this) - : this.config.library; - }), - (w.prototype.message = function() { - if ( - (this.view._rendered && this.destroy(), this.el()) - ) { - this.el().innerHTML = ''; - var t = w.libraries.default.message; - t.render && t.render.apply(this, arguments); - } - return this; - }), - (w.prototype.notes = function(t) { + })(this, e), + ((n = (function(t, e) { + return !e || + ('object' !== o(e) && 'function' != typeof e) + ? (function(t) { + if (void 0 === t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return t; + })(t) + : e; + })(this, s(e).call(this, t))).prevProps = {}), + n + ); + } + var n, r, i; + return ( + (function(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { + value: t, + writable: !0, + configurable: !0 + } + })), + e && u(t, e); + })(e, t), + (n = e), + (i = [ + { + key: 'dynamic', + value: function(t) { + return t + .map(function(t) { + var e = t[0], + n = t[1]; + return l.computeId(e, n); + }) + .join(' '); + } + } + ]), + (r = [ + { + key: 'shouldComponentUpdate', + value: function(t) { return ( - this.config.showDeprecationWarnings && - console.log( - '.notes() is deprecated. Use: new KeenDataviz({ notes: _your_value_here_ })' - ), - arguments.length - ? ((this.config.notes = t ? String(t) : null), - this) - : this.config.notes + this.props.id !== t.id || + String(this.props.dynamic) !== String(t.dynamic) ); - }), - (w.prototype.prepare = function() { - var t = this; - if (!this.el()) - throw this.config.container + - ' not found. A DOM parent element is required to mount the chart.'; + } + }, + { + key: 'componentWillUnmount', + value: function() { + l.remove(this.props); + } + }, + { + key: 'render', + value: function() { return ( - P(function() { - if ((t.view._rendered && t.destroy(), t.el())) { - t.el().innerHTML = ''; - var e = w.libraries.default.spinner; - e.render && e.render.call(t), - (t.view._prepared = !0); - } - }), - this + this.shouldComponentUpdate(this.prevProps) && + (this.prevProps.id && l.remove(this.prevProps), + l.add(this.props), + (this.prevProps = this.props)), + null ); - }), - (w.prototype.render = function() { + } + } + ]) && a(n.prototype, r), + i && a(n, i), + e + ); + })(i.Component); + e.default = c; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = void 0); + var r = o(n(97)), + i = o(n(98)); + function o(t) { + return t && t.__esModule ? t : { default: t }; + } + function a(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + var s = function(t) { + return t.replace(/\/style/gi, '\\/style'); + }, + u = (function() { + function t() { + var e = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : {}, + n = e.styleSheet, + r = void 0 === n ? null : n, + o = e.optimizeForSpeed, + a = void 0 !== o && o, + s = e.isBrowser, + u = void 0 === s ? 'undefined' != typeof window : s; + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (this._sheet = + r || + new i.default({ + name: 'styled-jsx', + optimizeForSpeed: a + })), + this._sheet.inject(), + r && + 'boolean' == typeof a && + (this._sheet.setOptimizeForSpeed(a), + (this._optimizeForSpeed = this._sheet.isOptimizeForSpeed())), + (this._isBrowser = u), + (this._fromServer = void 0), + (this._indices = {}), + (this._instancesCounts = {}), + (this.computeId = this.createComputeId()), + (this.computeSelector = this.createComputeSelector()); + } + var e, n; + return ( + (e = t), + (n = [ + { + key: 'add', + value: function(t) { + var e = this; + void 0 === this._optimizeForSpeed && + ((this._optimizeForSpeed = Array.isArray( + t.children + )), + this._sheet.setOptimizeForSpeed( + this._optimizeForSpeed + ), + (this._optimizeForSpeed = this._sheet.isOptimizeForSpeed())), + this._isBrowser && + !this._fromServer && + ((this._fromServer = this.selectFromServer()), + (this._instancesCounts = Object.keys( + this._fromServer + ).reduce(function(t, e) { + return (t[e] = 0), t; + }, {}))); + var n = this.getIdAndRules(t), + r = n.styleId, + i = n.rules; + if (r in this._instancesCounts) + this._instancesCounts[r] += 1; + else { + var o = i + .map(function(t) { + return e._sheet.insertRule(t); + }) + .filter(function(t) { + return -1 !== t; + }); + (this._indices[r] = o), + (this._instancesCounts[r] = 1); + } + } + }, + { + key: 'remove', + value: function(t) { + var e = this, + n = this.getIdAndRules(t).styleId; + if ( + ((function(t, e) { + if (!t) + throw new Error( + 'StyleSheetRegistry: '.concat(e, '.') + ); + })( + n in this._instancesCounts, + 'styleId: `'.concat(n, '` not found') + ), + (this._instancesCounts[n] -= 1), + this._instancesCounts[n] < 1) + ) { + var r = this._fromServer && this._fromServer[n]; + r + ? (r.parentNode.removeChild(r), + delete this._fromServer[n]) + : (this._indices[n].forEach(function(t) { + return e._sheet.deleteRule(t); + }), + delete this._indices[n]), + delete this._instancesCounts[n]; + } + } + }, + { + key: 'update', + value: function(t, e) { + this.add(e), this.remove(t); + } + }, + { + key: 'flush', + value: function() { + this._sheet.flush(), + this._sheet.inject(), + (this._fromServer = void 0), + (this._indices = {}), + (this._instancesCounts = {}), + (this.computeId = this.createComputeId()), + (this.computeSelector = this.createComputeSelector()); + } + }, + { + key: 'cssRules', + value: function() { var t = this, - e = + e = this._fromServer + ? Object.keys(this._fromServer).map(function(e) { + return [e, t._fromServer[e]]; + }) + : [], + n = this._sheet.cssRules(); + return e.concat( + Object.keys(this._indices) + .map(function(e) { + return [ + e, + t._indices[e] + .map(function(t) { + return n[t].cssText; + }) + .join(t._optimizeForSpeed ? '' : '\n') + ]; + }) + .filter(function(t) { + return Boolean(t[1]); + }) + ); + } + }, + { + key: 'createComputeId', + value: function() { + var t = {}; + return function(e, n) { + if (!n) return 'jsx-'.concat(e); + var i = String(n), + o = e + i; + return ( + t[o] || + (t[o] = 'jsx-'.concat( + (0, r.default)(''.concat(e, '-').concat(i)) + )), + t[o] + ); + }; + } + }, + { + key: 'createComputeSelector', + value: function() { + var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] - : void 0, - n = this; - if (e) { - var r = e[0] || e; + : /__jsx-style-dynamic-selector/g, + e = {}; + return function(n, r) { + this._isBrowser || (r = s(r)); + var i = n + r; + return e[i] || (e[i] = r.replace(t, n)), e[i]; + }; + } + }, + { + key: 'getIdAndRules', + value: function(t) { + var e = this, + n = t.children, + r = t.dynamic, + i = t.id; + if (r) { + var o = this.computeId(i, r); + return { + styleId: o, + rules: Array.isArray(n) + ? n.map(function(t) { + return e.computeSelector(o, t); + }) + : [this.computeSelector(o, n)] + }; + } + return { + styleId: this.computeId(i), + rules: Array.isArray(n) ? n : [n] + }; + } + }, + { + key: 'selectFromServer', + value: function() { + return Array.prototype.slice + .call(document.querySelectorAll('[id^="__jsx-"]')) + .reduce(function(t, e) { + return (t[e.id.slice(2)] = e), t; + }, {}); + } + } + ]) && a(e.prototype, n), + t + ); + })(); + e.default = u; + }, + function(t, e, n) { + 'use strict'; + t.exports = function(t) { + for (var e = 5381, n = t.length; n; ) + e = (33 * e) ^ t.charCodeAt(--n); + return e >>> 0; + }; + }, + function(t, e, n) { + 'use strict'; + (function(t) { + function n(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = void 0); + var r = t.env && !0, + i = function(t) { + return ( + '[object String]' === Object.prototype.toString.call(t) + ); + }, + o = (function() { + function t() { + var e = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : {}, + n = e.name, + o = void 0 === n ? 'stylesheet' : n, + s = e.optimizeForSpeed, + u = void 0 === s ? r : s, + l = e.isBrowser, + c = void 0 === l ? 'undefined' != typeof window : l; + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + a(i(o), '`name` must be a string'), + (this._name = o), + (this._deletedRulePlaceholder = '#'.concat( + o, + '-deleted-rule____{}' + )), + a( + 'boolean' == typeof u, + '`optimizeForSpeed` must be a boolean' + ), + (this._optimizeForSpeed = u), + (this._isBrowser = c), + (this._serverSheet = void 0), + (this._tags = []), + (this._injected = !1), + (this._rulesCount = 0); + var f = + this._isBrowser && + document.querySelector('meta[property="csp-nonce"]'); + this._nonce = f ? f.getAttribute('content') : null; + } + var e, o; + return ( + (e = t), + (o = [ + { + key: 'setOptimizeForSpeed', + value: function(t) { + a( + 'boolean' == typeof t, + '`setOptimizeForSpeed` accepts a boolean' + ), + a( + 0 === this._rulesCount, + 'optimizeForSpeed cannot be when rules have already been inserted' + ), + this.flush(), + (this._optimizeForSpeed = t), + this.inject(); + } + }, + { + key: 'isOptimizeForSpeed', + value: function() { + return this._optimizeForSpeed; + } + }, + { + key: 'inject', + value: function() { + var t = this; if ( - (r.query && - r.query.interval && - r.query.timeframe && - 'string' == typeof r.query.timeframe && - r.query.timeframe.includes('this_') && - this.config.partialIntervalIndicator && - void 0 === - this.config.partialIntervalIndicator.show && - (this.config.partialIntervalIndicator.show = !0), - Array.isArray(e)) - ) { - var i = e.map(function(t) { - return t.query.timeframe; - }); + (a(!this._injected, 'sheet already injected'), + (this._injected = !0), + this._isBrowser && this._optimizeForSpeed) + ) return ( - i.forEach(function(t) { - if ( - i.find(function(e) { - return ( - JSON.stringify(e) !== JSON.stringify(t) - ); - }) - ) { - var e = - 'Timeframes of the queries should be the same'; - throw (console.error(e), e); - } - }), - n - .data(e[0]) - .call(function() { - var r = function(t) { - return ( - t.query.event_collection + - ' ' + - t.query.analysis_type - ); - }, - i = r(e[0]); - n.config.labelMapping[i] && - (i = n.config.labelMapping[i]), - t.dataset.deleteColumn(1); - var a = !0, - s = !1, - u = void 0; - try { - for ( - var l, c = e[Symbol.iterator](); - !(a = (l = c.next()).done); - a = !0 - ) { - var f = l.value; - i = r(f); - var d = o.Dataset.parser('interval')(f); - n.dataset.appendColumn( - i, - d.selectColumn(1).slice(1) - ); - } - } catch (t) { - (s = !0), (u = t); - } finally { - try { - !a && c.return && c.return(); - } finally { - if (s) throw u; - } - } - }) - .render() + (this._tags[0] = this.makeStyleTag(this._name)), + (this._optimizeForSpeed = + 'insertRule' in this.getSheet()), + void ( + this._optimizeForSpeed || + (r || + console.warn( + 'StyleSheet: optimizeForSpeed mode not supported falling back to standard mode.' + ), + this.flush(), + (this._injected = !0)) + ) + ); + this._serverSheet = { + cssRules: [], + insertRule: function(e, n) { + return ( + 'number' == typeof n + ? (t._serverSheet.cssRules[n] = { + cssText: e + }) + : t._serverSheet.cssRules.push({ + cssText: e + }), + n + ); + }, + deleteRule: function(e) { + t._serverSheet.cssRules[e] = null; + } + }; + } + }, + { + key: 'getSheetForTag', + value: function(t) { + if (t.sheet) return t.sheet; + for ( + var e = 0; + e < document.styleSheets.length; + e++ + ) + if (document.styleSheets[e].ownerNode === t) + return document.styleSheets[e]; + } + }, + { + key: 'getSheet', + value: function() { + return this.getSheetForTag( + this._tags[this._tags.length - 1] + ); + } + }, + { + key: 'insertRule', + value: function(t, e) { + if ( + (a(i(t), '`insertRule` accepts only strings'), + !this._isBrowser) + ) + return ( + 'number' != typeof e && + (e = this._serverSheet.cssRules.length), + this._serverSheet.insertRule(t, e), + this._rulesCount++ + ); + if (this._optimizeForSpeed) { + var n = this.getSheet(); + 'number' != typeof e && (e = n.cssRules.length); + try { + n.insertRule(t, e); + } catch (e) { + return ( + r || + console.warn( + 'StyleSheet: illegal rule: \n\n'.concat( + t, + '\n\nSee https://stackoverflow.com/q/20007992 for more info' + ) + ), + -1 + ); + } + } else { + var o = this._tags[e]; + this._tags.push( + this.makeStyleTag(this._name, t, o) ); } - return n.data(e).render(); - } - ((this.config.labelMapping && - Object.keys(this.config.labelMapping).length > 0) || - (this.config.labelMappingRegExp && - this.config.labelMappingRegExp.length > 0)) && - k(n), - this.config.labels && - Object.keys(this.config.labels).length > 0 && - S(n), - this.config.sortGroups && A(n), - this.config.sortIntervals && T(n); - var a = w.libraries.default.spinner, - s = this.config.library, - u = this.config.type, - l = this.el(); - if (!l || void 0 === l) { - var c = - this.config.container + - ' not found. A DOM parent element is required to mount the chart.'; - throw (console.error(c), c); + return this._rulesCount++; } - var f = n; - return ( - n.config.renderAsPromise && - (f = new Promise(function(e, r) { - var i = t.config.onrendered; - n.config.onrendered = function() { - i && i(), e(n); - }; - })), - P(function() { - var t = - n.execution_metadata && - n.config.ui && - n.config.ui.executionMetadata, - e = - n.config.ui && - n.config.ui.buttons && - n.config.ui.buttons.download && - n.config.ui.buttons.download.type; + }, + { + key: 'replaceRule', + value: function(t, e) { + if (this._optimizeForSpeed || !this._isBrowser) { + var n = this._isBrowser + ? this.getSheet() + : this._serverSheet; if ( - (n.view._prepared && - a.destroy && - a.destroy.apply(n, arguments), - (l.innerHTML = ''), - 'undefined' === w.libraries[s]) - ) { - var r = 'Incorrect library'; - throw (n.message(r), r); + (e.trim() || (e = this._deletedRulePlaceholder), + !n.cssRules[t]) + ) + return t; + n.deleteRule(t); + try { + n.insertRule(e, t); + } catch (i) { + r || + console.warn( + 'StyleSheet: illegal rule: \n\n'.concat( + e, + '\n\nSee https://stackoverflow.com/q/20007992 for more info' + ) + ), + n.insertRule(this._deletedRulePlaceholder, t); } - if (void 0 === w.libraries[s][u]) { - var i = 'Incorrect chart type', - o = this.config.errorMapping[i] || i; - throw (n.message(o), i); + } else { + var i = this._tags[t]; + a( + i, + 'old rule at index `'.concat(t, '` not found') + ), + (i.textContent = e); + } + return t; + } + }, + { + key: 'deleteRule', + value: function(t) { + if (this._isBrowser) + if (this._optimizeForSpeed) + this.replaceRule(t, ''); + else { + var e = this._tags[t]; + a( + e, + 'rule at index `'.concat(t, '` not found') + ), + e.parentNode.removeChild(e), + (this._tags[t] = null); } - C(l, n.config), - e && - (0, m.default)({ - element: l, - data: n.dataset.matrix, - type: n.config.ui.buttons.download.type, - label: n.config.ui.buttons.download.label + else this._serverSheet.deleteRule(t); + } + }, + { + key: 'flush', + value: function() { + (this._injected = !1), + (this._rulesCount = 0), + this._isBrowser + ? (this._tags.forEach(function(t) { + return t && t.parentNode.removeChild(t); }), - t && - (0, y.default)({ - element: l, - data: n.execution_metadata - }); - var c = n.config.renderOnVisible; - if ( - c && - 'undefined' != typeof IntersectionObserver - ) { - var f = function(t, e) { - t.forEach(function(t) { - t.isIntersecting && - (n.view._rendered || - (w.libraries[s][u].render.call(n), - (n.view._rendered = !0))); - }); - }, - d = new IntersectionObserver(f); - d.observe(l); - } else { - if ( - 'hidden' === n.config.firstVisibilityState && - 'undefined' != typeof document - ) { - var h = void 0, - p = void 0; - void 0 !== document.hidden - ? ((h = 'hidden'), (p = 'visibilitychange')) - : void 0 !== document.msHidden - ? ((h = 'msHidden'), - (p = 'msvisibilitychange')) - : void 0 !== document.webkitHidden && - ((h = 'webkitHidden'), - (p = 'webkitvisibilitychange')); - var g = function() { - document[h] || - n.view._artifacts.c3.load( - n.dataset.matrix - ); - }; - (void 0 === document.addEventListener && - void 0 === h) || - document.addEventListener(p, g, { - once: !0 - }); - } - w.libraries[s][u].render.call(n), - (n.view._rendered = !0); - } - }), - f - ); - }), - (w.prototype.sortGroups = function(t) { - return ( - this.config.showDeprecationWarnings && - console.log( - '.sortGroups() is deprecated. Use: new KeenDataviz({ sortGroups: _your_value_here_ })' - ), - arguments.length - ? ((this.config.sortGroups = t - ? String(t) - : null), - A(this), - this) - : this.config.sortGroups - ); - }), - (w.prototype.sortIntervals = function(t) { - return ( - this.config.showDeprecationWarnings && - console.log( - '.sortIntervals() is deprecated. Use: new KeenDataviz({ sortIntervals: _your_value_here_ })' - ), - arguments.length - ? ((this.config.sortIntervals = t - ? String(t) - : null), - T(this), - this) - : this.config.sortIntervals - ); - }), - (w.prototype.stacked = function(t) { - return ( - this.config.showDeprecationWarnings && - console.log( - '.stacked() is deprecated. Use: new KeenDataviz({ stacked: _your_value_here_ })' - ), - arguments.length - ? ((this.config.stacked = !!t), this) - : this.config.stacked - ); - }), - (w.prototype.theme = function(t) { - return ( - this.config.showDeprecationWarnings && - console.log( - '.theme() is deprecated. Use: new KeenDataviz({ theme: _your_value_here_ })' - ), - arguments.length - ? ((this.config.theme = t ? String(t) : null), - this) - : this.config.theme - ); - }), - (w.prototype.title = function(t) { - return ( - this.config.showDeprecationWarnings && - console.log( - '.title() is deprecated. Use: new KeenDataviz({ title: _your_value_here_ })' - ), - arguments.length - ? ((this.config.title = t ? String(t) : null), - this) - : this.config.title - ); - }), - (w.prototype.type = function(t) { - return ( - this.config.showDeprecationWarnings && - console.log( - '.type() is deprecated. Use: new KeenDataviz({ type: _your_value_here_ })' - ), - arguments.length - ? ((this.config.type = t ? O(t) : null), this) - : this.config.type - ); - }), - (w.prototype.update = function() { - var t = this.config.library, - e = this.config.type, - n = this.el(); - return ( - t && - e && - n && - w.libraries[t][e].update && - w.libraries[t][e].update.apply(this, arguments), - this - ); - }), - (w.prototype.width = function(t) { - return ( - this.config.showDeprecationWarnings && - console.log( - '.width() is deprecated - use CSS classes' - ), - this + (this._tags = [])) + : (this._serverSheet.cssRules = []); + } + }, + { + key: 'cssRules', + value: function() { + var t = this; + return this._isBrowser + ? this._tags.reduce(function(e, n) { + return ( + n + ? (e = e.concat( + t + .getSheetForTag(n) + .cssRules.map(function(e) { + return e.cssText === + t._deletedRulePlaceholder + ? null + : e; + }) + )) + : e.push(null), + e + ); + }, []) + : this._serverSheet.cssRules; + } + }, + { + key: 'makeStyleTag', + value: function(t, e, n) { + e && + a( + i(e), + 'makeStyleTag acceps only strings as second parameter' + ); + var r = document.createElement('style'); + this._nonce && r.setAttribute('nonce', this._nonce), + (r.type = 'text/css'), + r.setAttribute('data-'.concat(t), ''), + e && r.appendChild(document.createTextNode(e)); + var o = + document.head || + document.getElementsByTagName('head')[0]; + return ( + n ? o.insertBefore(r, n) : o.appendChild(r), r + ); + } + }, + { + key: 'length', + get: function() { + return this._rulesCount; + } + } + ]) && n(e.prototype, o), + t + ); + })(); + function a(t, e) { + if (!t) throw new Error('StyleSheet: '.concat(e, '.')); + } + e.default = o; + }.call(this, n(54))); + }, + function(t, e) { + t.exports = f; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.Alpha = void 0); + var r = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }, + i = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + o = n(0), + a = c(o), + s = c(n(9)), + u = (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && + (e[n] = t[n]); + return (e.default = t), e; + })(n(197)), + l = c(n(53)); + function c(t) { + return t && t.__esModule ? t : { default: t }; + } + function f(t, e) { + if (!t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !e || ('object' != typeof e && 'function' != typeof e) + ? t + : e; + } + var d = (e.Alpha = (function(t) { + function e() { + var t, n, r; + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + })(this, e); + for ( + var i = arguments.length, o = Array(i), a = 0; + a < i; + a++ + ) + o[a] = arguments[a]; + return ( + (n = r = f( + this, + (t = e.__proto__ || Object.getPrototypeOf(e)).call.apply( + t, + [this].concat(o) + ) + )), + (r.handleChange = function(t) { + var e = u.calculateChange( + t, + r.props.hsl, + r.props.direction, + r.props.a, + r.container + ); + e && + 'function' == typeof r.props.onChange && + r.props.onChange(e, t); + }), + (r.handleMouseDown = function(t) { + r.handleChange(t), + window.addEventListener('mousemove', r.handleChange), + window.addEventListener('mouseup', r.handleMouseUp); + }), + (r.handleMouseUp = function() { + r.unbindEventListeners(); + }), + (r.unbindEventListeners = function() { + window.removeEventListener('mousemove', r.handleChange), + window.removeEventListener('mouseup', r.handleMouseUp); + }), + f(r, n) + ); + } + return ( + (function(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof e + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { + value: t, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + e && + (Object.setPrototypeOf + ? Object.setPrototypeOf(t, e) + : (t.__proto__ = e)); + })(e, t), + i(e, [ + { + key: 'componentWillUnmount', + value: function() { + this.unbindEventListeners(); + } + }, + { + key: 'render', + value: function() { + var t = this, + e = this.props.rgb, + n = (0, s.default)( + { + default: { + alpha: { + absolute: '0px 0px 0px 0px', + borderRadius: this.props.radius + }, + checkboard: { + absolute: '0px 0px 0px 0px', + overflow: 'hidden', + borderRadius: this.props.radius + }, + gradient: { + absolute: '0px 0px 0px 0px', + background: + 'linear-gradient(to right, rgba(' + + e.r + + ',' + + e.g + + ',' + + e.b + + ', 0) 0%,\n rgba(' + + e.r + + ',' + + e.g + + ',' + + e.b + + ', 1) 100%)', + boxShadow: this.props.shadow, + borderRadius: this.props.radius + }, + container: { + position: 'relative', + height: '100%', + margin: '0 3px' + }, + pointer: { + position: 'absolute', + left: 100 * e.a + '%' + }, + slider: { + width: '4px', + borderRadius: '1px', + height: '8px', + boxShadow: '0 0 2px rgba(0, 0, 0, .6)', + background: '#fff', + marginTop: '1px', + transform: 'translateX(-2px)' + } + }, + vertical: { + gradient: { + background: + 'linear-gradient(to bottom, rgba(' + + e.r + + ',' + + e.g + + ',' + + e.b + + ', 0) 0%,\n rgba(' + + e.r + + ',' + + e.g + + ',' + + e.b + + ', 1) 100%)' + }, + pointer: { left: 0, top: 100 * e.a + '%' } + }, + overwrite: r({}, this.props.style) + }, + { + vertical: 'vertical' === this.props.direction, + overwrite: !0 + } ); + return a.default.createElement( + 'div', + { style: n.alpha }, + a.default.createElement( + 'div', + { style: n.checkboard }, + a.default.createElement(l.default, { + renderers: this.props.renderers + }) + ), + a.default.createElement('div', { style: n.gradient }), + a.default.createElement( + 'div', + { + style: n.container, + ref: function(e) { + return (t.container = e); + }, + onMouseDown: this.handleMouseDown, + onTouchMove: this.handleChange, + onTouchStart: this.handleChange + }, + a.default.createElement( + 'div', + { style: n.pointer }, + this.props.pointer + ? a.default.createElement( + this.props.pointer, + this.props + ) + : a.default.createElement('div', { + style: n.slider + }) + ) + ) + ); + } + } + ]), + e + ); + })(o.PureComponent || o.Component)); + e.default = d; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.flattenNames = void 0); + var r = s(n(102)), + i = s(n(37)), + o = s(n(61)), + a = s(n(112)); + function s(t) { + return t && t.__esModule ? t : { default: t }; + } + var u = (e.flattenNames = function t() { + var e = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : [], + n = []; + return ( + (0, a.default)(e, function(e) { + Array.isArray(e) + ? t(e).map(function(t) { + return n.push(t); + }) + : (0, o.default)(e) + ? (0, i.default)(e, function(t, e) { + !0 === t && n.push(e), n.push(e + '-' + t); + }) + : (0, r.default)(e) && n.push(e); + }), + n + ); + }); + e.default = u; + }, + function(t, e, n) { + var r = n(10), + i = n(3), + o = n(6); + t.exports = function(t) { + return ( + 'string' == typeof t || + (!i(t) && o(t) && '[object String]' == r(t)) + ); + }; + }, + function(t, e, n) { + var r = n(15), + i = Object.prototype, + o = i.hasOwnProperty, + a = i.toString, + s = r ? r.toStringTag : void 0; + t.exports = function(t) { + var e = o.call(t, s), + n = t[s]; + try { + t[s] = void 0; + var r = !0; + } catch (t) {} + var i = a.call(t); + return r && (e ? (t[s] = n) : delete t[s]), i; + }; + }, + function(t, e) { + var n = Object.prototype.toString; + t.exports = function(t) { + return n.call(t); + }; + }, + function(t, e) { + t.exports = function(t) { + return function(e, n, r) { + for ( + var i = -1, o = Object(e), a = r(e), s = a.length; + s--; + + ) { + var u = a[t ? s : ++i]; + if (!1 === n(o[u], u, o)) break; + } + return e; + }; + }; + }, + function(t, e) { + t.exports = function(t, e) { + for (var n = -1, r = Array(t); ++n < t; ) r[n] = e(n); + return r; + }; + }, + function(t, e, n) { + var r = n(10), + i = n(6); + t.exports = function(t) { + return i(t) && '[object Arguments]' == r(t); + }; + }, + function(t, e) { + t.exports = function() { + return !1; + }; + }, + function(t, e, n) { + var r = n(10), + i = n(41), + o = n(6), + a = {}; + (a['[object Float32Array]'] = a['[object Float64Array]'] = a[ + '[object Int8Array]' + ] = a['[object Int16Array]'] = a['[object Int32Array]'] = a[ + '[object Uint8Array]' + ] = a['[object Uint8ClampedArray]'] = a[ + '[object Uint16Array]' + ] = a['[object Uint32Array]'] = !0), + (a['[object Arguments]'] = a['[object Array]'] = a[ + '[object ArrayBuffer]' + ] = a['[object Boolean]'] = a['[object DataView]'] = a[ + '[object Date]' + ] = a['[object Error]'] = a['[object Function]'] = a[ + '[object Map]' + ] = a['[object Number]'] = a['[object Object]'] = a[ + '[object RegExp]' + ] = a['[object Set]'] = a['[object String]'] = a[ + '[object WeakMap]' + ] = !1), + (t.exports = function(t) { + return o(t) && i(t.length) && !!a[r(t)]; + }); + }, + function(t, e, n) { + var r = n(44), + i = n(111), + o = Object.prototype.hasOwnProperty; + t.exports = function(t) { + if (!r(t)) return i(t); + var e = []; + for (var n in Object(t)) + o.call(t, n) && 'constructor' != n && e.push(n); + return e; + }; + }, + function(t, e, n) { + var r = n(59)(Object.keys, Object); + t.exports = r; + }, + function(t, e, n) { + var r = n(62), + i = n(113), + o = n(171), + a = n(3); + t.exports = function(t, e) { + return (a(t) ? r : o)(t, i(e, 3)); + }; + }, + function(t, e, n) { + var r = n(114), + i = n(158), + o = n(22), + a = n(3), + s = n(168); + t.exports = function(t) { + return 'function' == typeof t + ? t + : null == t + ? o + : 'object' == typeof t + ? a(t) + ? i(t[0], t[1]) + : r(t) + : s(t); + }; + }, + function(t, e, n) { + var r = n(115), + i = n(157), + o = n(72); + t.exports = function(t) { + var e = i(t); + return 1 == e.length && e[0][2] + ? o(e[0][0], e[0][1]) + : function(n) { + return n === t || r(n, t, e); + }; + }; + }, + function(t, e, n) { + var r = n(23), + i = n(64); + t.exports = function(t, e, n, o) { + var a = n.length, + s = a, + u = !o; + if (null == t) return !s; + for (t = Object(t); a--; ) { + var l = n[a]; + if (u && l[2] ? l[1] !== t[l[0]] : !(l[0] in t)) return !1; + } + for (; ++a < s; ) { + var c = (l = n[a])[0], + f = t[c], + d = l[1]; + if (u && l[2]) { + if (void 0 === f && !(c in t)) return !1; + } else { + var h = new r(); + if (o) var p = o(f, d, c, t, e, h); + if (!(void 0 === p ? i(d, f, 3, o, h) : p)) return !1; + } + } + return !0; + }; + }, + function(t, e) { + t.exports = function() { + (this.__data__ = []), (this.size = 0); + }; + }, + function(t, e, n) { + var r = n(25), + i = Array.prototype.splice; + t.exports = function(t) { + var e = this.__data__, + n = r(e, t); + return !( + n < 0 || + (n == e.length - 1 ? e.pop() : i.call(e, n, 1), + --this.size, + 0) + ); + }; + }, + function(t, e, n) { + var r = n(25); + t.exports = function(t) { + var e = this.__data__, + n = r(e, t); + return n < 0 ? void 0 : e[n][1]; + }; + }, + function(t, e, n) { + var r = n(25); + t.exports = function(t) { + return r(this.__data__, t) > -1; + }; + }, + function(t, e, n) { + var r = n(25); + t.exports = function(t, e) { + var n = this.__data__, + i = r(n, t); + return ( + i < 0 ? (++this.size, n.push([t, e])) : (n[i][1] = e), this + ); + }; + }, + function(t, e, n) { + var r = n(24); + t.exports = function() { + (this.__data__ = new r()), (this.size = 0); + }; + }, + function(t, e) { + t.exports = function(t) { + var e = this.__data__, + n = e.delete(t); + return (this.size = e.size), n; + }; + }, + function(t, e) { + t.exports = function(t) { + return this.__data__.get(t); + }; + }, + function(t, e) { + t.exports = function(t) { + return this.__data__.has(t); + }; + }, + function(t, e, n) { + var r = n(24), + i = n(47), + o = n(48); + t.exports = function(t, e) { + var n = this.__data__; + if (n instanceof r) { + var a = n.__data__; + if (!i || a.length < 199) + return a.push([t, e]), (this.size = ++n.size), this; + n = this.__data__ = new o(a); + } + return n.set(t, e), (this.size = n.size), this; + }; + }, + function(t, e, n) { + var r = n(45), + i = n(127), + o = n(4), + a = n(63), + s = /^\[object .+?Constructor\]$/, + u = Function.prototype, + l = Object.prototype, + c = u.toString, + f = l.hasOwnProperty, + d = RegExp( + '^' + + c + .call(f) + .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') + .replace( + /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, + '$1.*?' + ) + + '$' + ); + t.exports = function(t) { + return !(!o(t) || i(t)) && (r(t) ? d : s).test(a(t)); + }; + }, + function(t, e, n) { + var r, + i = n(128), + o = (r = /[^.]+$/.exec((i && i.keys && i.keys.IE_PROTO) || '')) + ? 'Symbol(src)_1.' + r + : ''; + t.exports = function(t) { + return !!o && o in t; + }; + }, + function(t, e, n) { + var r = n(5)['__core-js_shared__']; + t.exports = r; + }, + function(t, e) { + t.exports = function(t, e) { + return null == t ? void 0 : t[e]; + }; + }, + function(t, e, n) { + var r = n(131), + i = n(24), + o = n(47); + t.exports = function() { + (this.size = 0), + (this.__data__ = { + hash: new r(), + map: new (o || i)(), + string: new r() + }); + }; + }, + function(t, e, n) { + var r = n(132), + i = n(133), + o = n(134), + a = n(135), + s = n(136); + function u(t) { + var e = -1, + n = null == t ? 0 : t.length; + for (this.clear(); ++e < n; ) { + var r = t[e]; + this.set(r[0], r[1]); + } + } + (u.prototype.clear = r), + (u.prototype.delete = i), + (u.prototype.get = o), + (u.prototype.has = a), + (u.prototype.set = s), + (t.exports = u); + }, + function(t, e, n) { + var r = n(26); + t.exports = function() { + (this.__data__ = r ? r(null) : {}), (this.size = 0); + }; + }, + function(t, e) { + t.exports = function(t) { + var e = this.has(t) && delete this.__data__[t]; + return (this.size -= e ? 1 : 0), e; + }; + }, + function(t, e, n) { + var r = n(26), + i = Object.prototype.hasOwnProperty; + t.exports = function(t) { + var e = this.__data__; + if (r) { + var n = e[t]; + return '__lodash_hash_undefined__' === n ? void 0 : n; + } + return i.call(e, t) ? e[t] : void 0; + }; + }, + function(t, e, n) { + var r = n(26), + i = Object.prototype.hasOwnProperty; + t.exports = function(t) { + var e = this.__data__; + return r ? void 0 !== e[t] : i.call(e, t); + }; + }, + function(t, e, n) { + var r = n(26); + t.exports = function(t, e) { + var n = this.__data__; + return ( + (this.size += this.has(t) ? 0 : 1), + (n[t] = r && void 0 === e ? '__lodash_hash_undefined__' : e), + this + ); + }; + }, + function(t, e, n) { + var r = n(27); + t.exports = function(t) { + var e = r(this, t).delete(t); + return (this.size -= e ? 1 : 0), e; + }; + }, + function(t, e) { + t.exports = function(t) { + var e = typeof t; + return 'string' == e || + 'number' == e || + 'symbol' == e || + 'boolean' == e + ? '__proto__' !== t + : null === t; + }; + }, + function(t, e, n) { + var r = n(27); + t.exports = function(t) { + return r(this, t).get(t); + }; + }, + function(t, e, n) { + var r = n(27); + t.exports = function(t) { + return r(this, t).has(t); + }; + }, + function(t, e, n) { + var r = n(27); + t.exports = function(t, e) { + var n = r(this, t), + i = n.size; + return n.set(t, e), (this.size += n.size == i ? 0 : 1), this; + }; + }, + function(t, e, n) { + var r = n(23), + i = n(65), + o = n(148), + a = n(151), + s = n(28), + u = n(3), + l = n(21), + c = n(40), + f = '[object Arguments]', + d = '[object Array]', + h = '[object Object]', + p = Object.prototype.hasOwnProperty; + t.exports = function(t, e, n, g, m, v) { + var y = u(t), + b = u(e), + _ = y ? d : s(t), + x = b ? d : s(e), + w = (_ = _ == f ? h : _) == h, + S = (x = x == f ? h : x) == h, + E = _ == x; + if (E && l(t)) { + if (!l(e)) return !1; + (y = !0), (w = !1); + } + if (E && !w) + return ( + v || (v = new r()), + y || c(t) ? i(t, e, n, g, m, v) : o(t, e, _, n, g, m, v) + ); + if (!(1 & n)) { + var k = w && p.call(t, '__wrapped__'), + A = S && p.call(e, '__wrapped__'); + if (k || A) { + var T = k ? t.value() : t, + C = A ? e.value() : e; + return v || (v = new r()), m(T, C, n, g, v); + } + } + return !!E && (v || (v = new r()), a(t, e, n, g, m, v)); + }; + }, + function(t, e, n) { + var r = n(48), + i = n(144), + o = n(145); + function a(t) { + var e = -1, + n = null == t ? 0 : t.length; + for (this.__data__ = new r(); ++e < n; ) this.add(t[e]); + } + (a.prototype.add = a.prototype.push = i), + (a.prototype.has = o), + (t.exports = a); + }, + function(t, e) { + t.exports = function(t) { + return this.__data__.set(t, '__lodash_hash_undefined__'), this; + }; + }, + function(t, e) { + t.exports = function(t) { + return this.__data__.has(t); + }; + }, + function(t, e) { + t.exports = function(t, e) { + for (var n = -1, r = null == t ? 0 : t.length; ++n < r; ) + if (e(t[n], n, t)) return !0; + return !1; + }; + }, + function(t, e) { + t.exports = function(t, e) { + return t.has(e); + }; + }, + function(t, e, n) { + var r = n(15), + i = n(66), + o = n(17), + a = n(65), + s = n(149), + u = n(150), + l = r ? r.prototype : void 0, + c = l ? l.valueOf : void 0; + t.exports = function(t, e, n, r, l, f, d) { + switch (n) { + case '[object DataView]': + if ( + t.byteLength != e.byteLength || + t.byteOffset != e.byteOffset + ) + return !1; + (t = t.buffer), (e = e.buffer); + case '[object ArrayBuffer]': + return !( + t.byteLength != e.byteLength || !f(new i(t), new i(e)) + ); + case '[object Boolean]': + case '[object Date]': + case '[object Number]': + return o(+t, +e); + case '[object Error]': + return t.name == e.name && t.message == e.message; + case '[object RegExp]': + case '[object String]': + return t == e + ''; + case '[object Map]': + var h = s; + case '[object Set]': + var p = 1 & r; + if ((h || (h = u), t.size != e.size && !p)) return !1; + var g = d.get(t); + if (g) return g == e; + (r |= 2), d.set(t, e); + var m = a(h(t), h(e), r, l, f, d); + return d.delete(t), m; + case '[object Symbol]': + if (c) return c.call(t) == c.call(e); + } + return !1; + }; + }, + function(t, e) { + t.exports = function(t) { + var e = -1, + n = Array(t.size); + return ( + t.forEach(function(t, r) { + n[++e] = [r, t]; + }), + n + ); + }; + }, + function(t, e) { + t.exports = function(t) { + var e = -1, + n = Array(t.size); + return ( + t.forEach(function(t) { + n[++e] = t; + }), + n + ); + }; + }, + function(t, e, n) { + var r = n(67), + i = Object.prototype.hasOwnProperty; + t.exports = function(t, e, n, o, a, s) { + var u = 1 & n, + l = r(t), + c = l.length; + if (c != r(e).length && !u) return !1; + for (var f = c; f--; ) { + var d = l[f]; + if (!(u ? d in e : i.call(e, d))) return !1; + } + var h = s.get(t); + if (h && s.get(e)) return h == e; + var p = !0; + s.set(t, e), s.set(e, t); + for (var g = u; ++f < c; ) { + var m = t[(d = l[f])], + v = e[d]; + if (o) var y = u ? o(v, m, d, e, t, s) : o(m, v, d, t, e, s); + if (!(void 0 === y ? m === v || a(m, v, n, o, s) : y)) { + p = !1; + break; + } + g || (g = 'constructor' == d); + } + if (p && !g) { + var b = t.constructor, + _ = e.constructor; + b != _ && + 'constructor' in t && + 'constructor' in e && + !( + 'function' == typeof b && + b instanceof b && + 'function' == typeof _ && + _ instanceof _ + ) && + (p = !1); + } + return s.delete(t), s.delete(e), p; + }; + }, + function(t, e) { + t.exports = function(t, e) { + for ( + var n = -1, r = null == t ? 0 : t.length, i = 0, o = []; + ++n < r; + + ) { + var a = t[n]; + e(a, n, t) && (o[i++] = a); + } + return o; + }; + }, + function(t, e, n) { + var r = n(11)(n(5), 'DataView'); + t.exports = r; + }, + function(t, e, n) { + var r = n(11)(n(5), 'Promise'); + t.exports = r; + }, + function(t, e, n) { + var r = n(11)(n(5), 'Set'); + t.exports = r; + }, + function(t, e, n) { + var r = n(11)(n(5), 'WeakMap'); + t.exports = r; + }, + function(t, e, n) { + var r = n(71), + i = n(16); + t.exports = function(t) { + for (var e = i(t), n = e.length; n--; ) { + var o = e[n], + a = t[o]; + e[n] = [o, a, r(a)]; + } + return e; + }; + }, + function(t, e, n) { + var r = n(64), + i = n(159), + o = n(165), + a = n(50), + s = n(71), + u = n(72), + l = n(30); + t.exports = function(t, e) { + return a(t) && s(e) + ? u(l(t), e) + : function(n) { + var a = i(n, t); + return void 0 === a && a === e ? o(n, t) : r(e, a, 3); + }; + }; + }, + function(t, e, n) { + var r = n(73); + t.exports = function(t, e, n) { + var i = null == t ? void 0 : r(t, e); + return void 0 === i ? n : i; + }; + }, + function(t, e, n) { + var r = n(161), + i = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, + o = /\\(\\)?/g, + a = r(function(t) { + var e = []; + return ( + 46 === t.charCodeAt(0) && e.push(''), + t.replace(i, function(t, n, r, i) { + e.push(r ? i.replace(o, '$1') : n || t); + }), + e + ); + }); + t.exports = a; + }, + function(t, e, n) { + var r = n(162); + t.exports = function(t) { + var e = r(t, function(t) { + return 500 === n.size && n.clear(), t; + }), + n = e.cache; + return e; + }; + }, + function(t, e, n) { + var r = n(48), + i = 'Expected a function'; + function o(t, e) { + if ( + 'function' != typeof t || + (null != e && 'function' != typeof e) + ) + throw new TypeError(i); + var n = function() { + var r = arguments, + i = e ? e.apply(this, r) : r[0], + o = n.cache; + if (o.has(i)) return o.get(i); + var a = t.apply(this, r); + return (n.cache = o.set(i, a) || o), a; + }; + return (n.cache = new (o.Cache || r)()), n; + } + (o.Cache = r), (t.exports = o); + }, + function(t, e, n) { + var r = n(164); + t.exports = function(t) { + return null == t ? '' : r(t); + }; + }, + function(t, e, n) { + var r = n(15), + i = n(62), + o = n(3), + a = n(29), + s = r ? r.prototype : void 0, + u = s ? s.toString : void 0; + t.exports = function t(e) { + if ('string' == typeof e) return e; + if (o(e)) return i(e, t) + ''; + if (a(e)) return u ? u.call(e) : ''; + var n = e + ''; + return '0' == n && 1 / e == -1 / 0 ? '-0' : n; + }; + }, + function(t, e, n) { + var r = n(166), + i = n(167); + t.exports = function(t, e) { + return null != t && i(t, e, r); + }; + }, + function(t, e) { + t.exports = function(t, e) { + return null != t && e in Object(t); + }; + }, + function(t, e, n) { + var r = n(74), + i = n(38), + o = n(3), + a = n(39), + s = n(41), + u = n(30); + t.exports = function(t, e, n) { + for (var l = -1, c = (e = r(e, t)).length, f = !1; ++l < c; ) { + var d = u(e[l]); + if (!(f = null != t && n(t, d))) break; + t = t[d]; + } + return f || ++l != c + ? f + : !!(c = null == t ? 0 : t.length) && + s(c) && + a(d, c) && + (o(t) || i(t)); + }; + }, + function(t, e, n) { + var r = n(169), + i = n(170), + o = n(50), + a = n(30); + t.exports = function(t) { + return o(t) ? r(a(t)) : i(t); + }; + }, + function(t, e) { + t.exports = function(t) { + return function(e) { + return null == e ? void 0 : e[t]; + }; + }; + }, + function(t, e, n) { + var r = n(73); + t.exports = function(t) { + return function(e) { + return r(e, t); + }; + }; + }, + function(t, e, n) { + var r = n(75), + i = n(12); + t.exports = function(t, e) { + var n = -1, + o = i(t) ? Array(t.length) : []; + return ( + r(t, function(t, r, i) { + o[++n] = e(t, r, i); + }), + o + ); + }; + }, + function(t, e, n) { + var r = n(12); + t.exports = function(t, e) { + return function(n, i) { + if (null == n) return n; + if (!r(n)) return t(n, i); + for ( + var o = n.length, a = e ? o : -1, s = Object(n); + (e ? a-- : ++a < o) && !1 !== i(s[a], a, s); + + ); + return n; + }; + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.mergeClasses = void 0); + var r = a(n(37)), + i = a(n(174)), + o = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }; + function a(t) { + return t && t.__esModule ? t : { default: t }; + } + var s = (e.mergeClasses = function(t) { + var e = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : [], + n = (t.default && (0, i.default)(t.default)) || {}; + return ( + e.map(function(e) { + var i = t[e]; + return ( + i && + (0, r.default)(i, function(t, e) { + n[e] || (n[e] = {}), (n[e] = o({}, n[e], i[e])); }), - (w.prototype.exportImage = function() { - var t = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : {}, - e = t.quality, - n = void 0 === e ? 0 : e, - r = t.bgcolor, - i = void 0 === r ? '#fff' : r; - (0, g.default)({ - node: this.config.containerElement, - quality: n, - bgcolor: i - }); - }), - (w.prototype.exportData = function() { - var t = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : 'json'; - (0, v.default)({ - data: this.dataset.matrix, - type: t + e + ); + }), + n + ); + }); + e.default = s; + }, + function(t, e, n) { + var r = n(175); + t.exports = function(t) { + return r(t, 5); + }; + }, + function(t, e, n) { + var r = n(23), + i = n(76), + o = n(77), + a = n(176), + s = n(177), + u = n(79), + l = n(80), + c = n(180), + f = n(181), + d = n(67), + h = n(182), + p = n(28), + g = n(183), + m = n(184), + v = n(83), + y = n(3), + b = n(21), + _ = n(189), + x = n(4), + w = n(191), + S = n(16), + E = '[object Arguments]', + k = '[object Function]', + A = '[object Object]', + T = {}; + (T[E] = T['[object Array]'] = T['[object ArrayBuffer]'] = T[ + '[object DataView]' + ] = T['[object Boolean]'] = T['[object Date]'] = T[ + '[object Float32Array]' + ] = T['[object Float64Array]'] = T['[object Int8Array]'] = T[ + '[object Int16Array]' + ] = T['[object Int32Array]'] = T['[object Map]'] = T[ + '[object Number]' + ] = T[A] = T['[object RegExp]'] = T['[object Set]'] = T[ + '[object String]' + ] = T['[object Symbol]'] = T['[object Uint8Array]'] = T[ + '[object Uint8ClampedArray]' + ] = T['[object Uint16Array]'] = T['[object Uint32Array]'] = !0), + (T['[object Error]'] = T[k] = T['[object WeakMap]'] = !1), + (t.exports = function t(e, n, C, O, P, M) { + var L, + j = 1 & n, + D = 2 & n, + R = 4 & n; + if ((C && (L = P ? C(e, O, P, M) : C(e)), void 0 !== L)) + return L; + if (!x(e)) return e; + var z = y(e); + if (z) { + if (((L = g(e)), !j)) return l(e, L); + } else { + var N = p(e), + I = N == k || '[object GeneratorFunction]' == N; + if (b(e)) return u(e, j); + if (N == A || N == E || (I && !P)) { + if (((L = D || I ? {} : v(e)), !j)) + return D ? f(e, s(L, e)) : c(e, a(L, e)); + } else { + if (!T[N]) return P ? e : {}; + L = m(e, N, j); + } + } + M || (M = new r()); + var F = M.get(e); + if (F) return F; + if ((M.set(e, L), w(e))) + return ( + e.forEach(function(r) { + L.add(t(r, n, C, r, e, M)); + }), + L + ); + if (_(e)) + return ( + e.forEach(function(r, i) { + L.set(i, t(r, n, C, i, e, M)); + }), + L + ); + var V = R ? (D ? h : d) : D ? keysIn : S, + B = z ? void 0 : V(e); + return ( + i(B || e, function(r, i) { + B && (r = e[(i = r)]), o(L, i, t(r, n, C, i, e, M)); + }), + L + ); + }); + }, + function(t, e, n) { + var r = n(18), + i = n(16); + t.exports = function(t, e) { + return t && r(e, i(e), t); + }; + }, + function(t, e, n) { + var r = n(18), + i = n(31); + t.exports = function(t, e) { + return t && r(e, i(e), t); + }; + }, + function(t, e, n) { + var r = n(4), + i = n(44), + o = n(179), + a = Object.prototype.hasOwnProperty; + t.exports = function(t) { + if (!r(t)) return o(t); + var e = i(t), + n = []; + for (var s in t) + ('constructor' != s || (!e && a.call(t, s))) && n.push(s); + return n; + }; + }, + function(t, e) { + t.exports = function(t) { + var e = []; + if (null != t) for (var n in Object(t)) e.push(n); + return e; + }; + }, + function(t, e, n) { + var r = n(18), + i = n(49); + t.exports = function(t, e) { + return r(t, i(t), e); + }; + }, + function(t, e, n) { + var r = n(18), + i = n(81); + t.exports = function(t, e) { + return r(t, i(t), e); + }; + }, + function(t, e, n) { + var r = n(68), + i = n(81), + o = n(31); + t.exports = function(t) { + return r(t, o, i); + }; + }, + function(t, e) { + var n = Object.prototype.hasOwnProperty; + t.exports = function(t) { + var e = t.length, + r = new t.constructor(e); + return ( + e && + 'string' == typeof t[0] && + n.call(t, 'index') && + ((r.index = t.index), (r.input = t.input)), + r + ); + }; + }, + function(t, e, n) { + var r = n(52), + i = n(185), + o = n(186), + a = n(187), + s = n(82); + t.exports = function(t, e, n) { + var u = t.constructor; + switch (e) { + case '[object ArrayBuffer]': + return r(t); + case '[object Boolean]': + case '[object Date]': + return new u(+t); + case '[object DataView]': + return i(t, 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 s(t, n); + case '[object Map]': + return new u(); + case '[object Number]': + case '[object String]': + return new u(t); + case '[object RegExp]': + return o(t); + case '[object Set]': + return new u(); + case '[object Symbol]': + return a(t); + } + }; + }, + function(t, e, n) { + var r = n(52); + t.exports = function(t, e) { + var n = e ? r(t.buffer) : t.buffer; + return new t.constructor(n, t.byteOffset, t.byteLength); + }; + }, + function(t, e) { + var n = /\w*$/; + t.exports = function(t) { + var e = new t.constructor(t.source, n.exec(t)); + return (e.lastIndex = t.lastIndex), e; + }; + }, + function(t, e, n) { + var r = n(15), + i = r ? r.prototype : void 0, + o = i ? i.valueOf : void 0; + t.exports = function(t) { + return o ? Object(o.call(t)) : {}; + }; + }, + function(t, e, n) { + var r = n(4), + i = Object.create, + o = (function() { + function t() {} + return function(e) { + if (!r(e)) return {}; + if (i) return i(e); + t.prototype = e; + var n = new t(); + return (t.prototype = void 0), n; + }; + })(); + t.exports = o; + }, + function(t, e, n) { + var r = n(190), + i = n(42), + o = n(43), + a = o && o.isMap, + s = a ? i(a) : r; + t.exports = s; + }, + function(t, e, n) { + var r = n(28), + i = n(6); + t.exports = function(t) { + return i(t) && '[object Map]' == r(t); + }; + }, + function(t, e, n) { + var r = n(192), + i = n(42), + o = n(43), + a = o && o.isSet, + s = a ? i(a) : r; + t.exports = s; + }, + function(t, e, n) { + var r = n(28), + i = n(6); + t.exports = function(t) { + return i(t) && '[object Set]' == r(t); + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.autoprefix = void 0); + var r, + i = (r = n(37)) && r.__esModule ? r : { default: r }, + o = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }, + a = { + borderRadius: function(t) { + return { + msBorderRadius: t, + MozBorderRadius: t, + OBorderRadius: t, + WebkitBorderRadius: t, + borderRadius: t + }; + }, + boxShadow: function(t) { + return { + msBoxShadow: t, + MozBoxShadow: t, + OBoxShadow: t, + WebkitBoxShadow: t, + boxShadow: t + }; + }, + userSelect: function(t) { + return { + WebkitTouchCallout: t, + KhtmlUserSelect: t, + MozUserSelect: t, + msUserSelect: t, + WebkitUserSelect: t, + userSelect: t + }; + }, + flex: function(t) { + return { + WebkitBoxFlex: t, + MozBoxFlex: t, + WebkitFlex: t, + msFlex: t, + flex: t + }; + }, + flexBasis: function(t) { + return { WebkitFlexBasis: t, flexBasis: t }; + }, + justifyContent: function(t) { + return { WebkitJustifyContent: t, justifyContent: t }; + }, + transition: function(t) { + return { + msTransition: t, + MozTransition: t, + OTransition: t, + WebkitTransition: t, + transition: t + }; + }, + transform: function(t) { + return { + msTransform: t, + MozTransform: t, + OTransform: t, + WebkitTransform: t, + transform: t + }; + }, + absolute: function(t) { + var e = t && t.split(' '); + return { + position: 'absolute', + top: e && e[0], + right: e && e[1], + bottom: e && e[2], + left: e && e[3] + }; + }, + extend: function(t, e) { + return e[t] || { extend: t }; + } + }, + s = (e.autoprefix = function(t) { + var e = {}; + return ( + (0, i.default)(t, function(t, n) { + var r = {}; + (0, i.default)(t, function(t, e) { + var n = a[e]; + n ? (r = o({}, r, n(t))) : (r[e] = t); + }), + (e[n] = r); + }), + e + ); + }); + e.default = s; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.hover = void 0); + var r, + i = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }, + o = (r = n(0)) && r.__esModule ? r : { default: r }; + function a(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + } + function s(t, e) { + if (!t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !e || ('object' != typeof e && 'function' != typeof e) + ? t + : e; + } + function u(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof e + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { + value: t, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + e && + (Object.setPrototypeOf + ? Object.setPrototypeOf(t, e) + : (t.__proto__ = e)); + } + var l = (e.hover = function(t) { + var e = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : 'span'; + return (function(n) { + function r() { + var n, u, l; + a(this, r); + for ( + var c = arguments.length, f = Array(c), d = 0; + d < c; + d++ + ) + f[d] = arguments[d]; + return ( + (u = l = s( + this, + (n = + r.__proto__ || Object.getPrototypeOf(r)).call.apply( + n, + [this].concat(f) + ) + )), + (l.state = { hover: !1 }), + (l.handleMouseOver = function() { + return l.setState({ hover: !0 }); + }), + (l.handleMouseOut = function() { + return l.setState({ hover: !1 }); + }), + (l.render = function() { + return o.default.createElement( + e, + { + onMouseOver: l.handleMouseOver, + onMouseOut: l.handleMouseOut + }, + o.default.createElement(t, i({}, l.props, l.state)) + ); + }), + s(l, u) + ); + } + return u(r, n), r; + })(o.default.Component); + }); + e.default = l; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.active = void 0); + var r, + i = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }, + o = (r = n(0)) && r.__esModule ? r : { default: r }; + function a(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + } + function s(t, e) { + if (!t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !e || ('object' != typeof e && 'function' != typeof e) + ? t + : e; + } + function u(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof e + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { + value: t, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + e && + (Object.setPrototypeOf + ? Object.setPrototypeOf(t, e) + : (t.__proto__ = e)); + } + var l = (e.active = function(t) { + var e = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : 'span'; + return (function(n) { + function r() { + var n, u, l; + a(this, r); + for ( + var c = arguments.length, f = Array(c), d = 0; + d < c; + d++ + ) + f[d] = arguments[d]; + return ( + (u = l = s( + this, + (n = + r.__proto__ || Object.getPrototypeOf(r)).call.apply( + n, + [this].concat(f) + ) + )), + (l.state = { active: !1 }), + (l.handleMouseDown = function() { + return l.setState({ active: !0 }); + }), + (l.handleMouseUp = function() { + return l.setState({ active: !1 }); + }), + (l.render = function() { + return o.default.createElement( + e, + { + onMouseDown: l.handleMouseDown, + onMouseUp: l.handleMouseUp + }, + o.default.createElement(t, i({}, l.props, l.state)) + ); + }), + s(l, u) + ); + } + return u(r, n), r; + })(o.default.Component); + }); + e.default = l; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t, e) { + var n = {}, + r = function(t) { + var e = + !(arguments.length > 1 && void 0 !== arguments[1]) || + arguments[1]; + n[t] = e; + }; + return ( + 0 === t && r('first-child'), + t === e - 1 && r('last-child'), + (0 === t || t % 2 == 0) && r('even'), + 1 === Math.abs(t % 2) && r('odd'), + r('nth-child', t), + n + ); + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.calculateChange = function(t, e, n, r, i) { + var o, + a, + s = i.clientWidth, + u = i.clientHeight, + l = + 'number' == typeof t.pageX ? t.pageX : t.touches[0].pageX, + c = + 'number' == typeof t.pageY ? t.pageY : t.touches[0].pageY, + f = + l - (i.getBoundingClientRect().left + window.pageXOffset), + d = + c - (i.getBoundingClientRect().top + window.pageYOffset); + if ('vertical' === n) { + if ( + ((o = + d < 0 + ? 0 + : d > u + ? 1 + : Math.round((100 * d) / u) / 100), + e.a !== o) + ) + return { h: e.h, s: e.s, l: e.l, a: o, source: 'rgb' }; + } else if ( + r !== + (a = + f < 0 ? 0 : f > s ? 1 : Math.round((100 * f) / s) / 100) + ) + return { h: e.h, s: e.s, l: e.l, a: a, source: 'rgb' }; + return null; + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = {}, + i = (e.render = function(t, e, n, r) { + if ('undefined' == typeof document && !r) return null; + var i = r ? new r() : document.createElement('canvas'); + (i.width = 2 * n), (i.height = 2 * n); + var o = i.getContext('2d'); + return o + ? ((o.fillStyle = t), + o.fillRect(0, 0, i.width, i.height), + (o.fillStyle = e), + o.fillRect(0, 0, n, n), + o.translate(n, n), + o.fillRect(0, 0, n, n), + i.toDataURL()) + : null; + }); + e.get = function(t, e, n, o) { + var a = t + '-' + e + '-' + n + (o ? '-server' : ''); + if (r[a]) return r[a]; + var s = i(t, e, n, o); + return (r[a] = s), s; + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.EditableInput = void 0); + var r = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + i = n(0), + o = s(i), + a = s(n(9)); + function s(t) { + return t && t.__esModule ? t : { default: t }; + } + var u = 38, + l = [u, 40], + c = function(t) { + return l.indexOf(t) > -1; + }, + f = function(t) { + return Number(String(t).replace(/%/g, '')); + }, + d = (e.EditableInput = (function(t) { + function e(t) { + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, e); + var n = (function(t, e) { + if (!t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !e || + ('object' != typeof e && 'function' != typeof e) + ? t + : e; + })( + this, + (e.__proto__ || Object.getPrototypeOf(e)).call(this) + ); + return ( + (n.handleBlur = function() { + n.state.blurValue && + n.setState({ + value: n.state.blurValue, + blurValue: null }); - }), - (w.prototype.chartType = w.prototype.type), - (w.prototype.error = w.prototype.message), - (w.prototype.parseRawData = w.prototype.data), - (w.prototype.parseRequest = function() { - return this; - }), - (w.prototype.initialize = function() { - return this; - }), - (w.version = u.default.version), - (e.default = w); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.deleteColumn = function(t) { - var e = this, - n = - 'number' == typeof t - ? t - : this.matrix[0].indexOf(t); - return ( - n > -1 && - (0, r.each)(e.matrix, function(t, r) { - e.matrix[r].splice(n, 1); - }), - e - ); - }), - (e.deleteRow = function(t) { - var e = - 'number' == typeof t - ? t - : this.selectColumn(0).indexOf(t); - return e > -1 && this.matrix.splice(e, 1), this; - }); - var r = n(0); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.filterColumns = function(t) { - var e = this, - n = []; - return ( - (0, r.each)(e.matrix, function(t, e) { - n.push([]); - }), - (0, r.each)(e.matrix[0], function(i, o) { - var a = e.selectColumn(o); - (0 == o || t.call(e, a, o)) && - (0, r.each)(a, function(t, e) { - n[e].push(t); - }); - }), - e.data(n), - e - ); - }), - (e.filterRows = function(t) { - var e = this, - n = []; - return ( - (0, r.each)(e.matrix, function(r, i) { - (0 == i || t.call(e, r, i)) && n.push(r); - }), - e.data(n), - e - ); - }); - var r = n(0); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.insertColumn = function(t, e, n) { - var r = this, - o = void 0 !== e ? e : null; - return ( - 'function' == typeof n - ? (r.matrix[0].splice(t, 0, o), - (0, i.each)(r.matrix, function(e, i) { - var o; - i > 0 && - (void 0 === (o = n.call(r, e, i)) && - (o = null), - r.matrix[i].splice(t, 0, o)); - })) - : (!n || n instanceof Array) && - ((n = n || []).length <= r.matrix.length - 1 - ? (n = n.concat( - (0, a.default)( - r.matrix.length - 1 - n.length - ) - )) - : (0, i.each)(n, function(t, e) { - r.matrix.length - 1 < n.length && - s.appendRow.call( - r, - String(r.matrix.length) - ); - }), - r.matrix[0].splice(t, 0, o), - (0, i.each)(n, function(e, n) { - r.matrix[n + 1].splice(t, 0, e); - })), - r - ); - }), - (e.insertRow = function(t, e, n) { - var r = this, - o = [], - u = void 0 !== e ? e : null; - return ( - o.push(u), - 'function' == typeof n - ? ((0, i.each)(r.matrix[0], function(t, e) { - var i = void 0, - a = void 0; - e > 0 && - ((i = r.selectColumn(e)), - void 0 === (a = n.call(r, i, e)) && - (a = null), - o.push(a)); - }), - r.matrix.splice(t, 0, o)) - : (!n || n instanceof Array) && - ((n = n || []).length <= r.matrix[0].length - 1 - ? (n = n.concat( - (0, a.default)( - r.matrix[0].length - 1 - n.length - ) - )) - : (0, i.each)(n, function(t, e) { - r.matrix[0].length - 1 < n.length && - s.appendColumn.call( - r, - String(r.matrix[0].length) - ); - }), - r.matrix.splice(t, 0, o.concat(n))), - r - ); - }); - var r, - i = n(0), - o = n(9), - a = (r = o) && r.__esModule ? r : { default: r }, - s = n(8); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.selectColumn = function(t) { - var e = [], - n = - 'number' == typeof t - ? t - : this.matrix[0].indexOf(t); - return ( - n > -1 && - void 0 !== this.matrix[0][n] && - (0, r.each)(this.matrix, function(t, r) { - e.push(t[n]); - }), - e - ); - }), - (e.selectRow = function(t) { - var e = [], - n = - 'number' == typeof t - ? t - : this.selectColumn(0).indexOf(t); - return ( - n > -1 && - void 0 !== this.matrix[n] && - (e = this.matrix[n]), - e - ); - }); - var r = n(0); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.sortColumns = function(t, e) { - var n = this, - r = this.matrix[0].slice(1), - o = [], - s = e || a.default.getColumnLabel; - return ( - (0, i.each)(r, function(t, e) { - o.push(n.selectColumn(e + 1).slice(0)); - }), - o.sort(function(e, r) { - var i = s.call(n, e) > s.call(n, r); - return i - ? 'asc' === t - ? 1 - : -1 - : i - ? 0 - : 'asc' === t - ? -1 - : 1; - }), - (0, i.each)(o, function(t, e) { - n.deleteColumn(e + 1).insertColumn( - e + 1, - t[0], - t.slice(1) - ); - }), - n - ); - }), - (e.sortRows = function(t, e) { - var n = this, - r = this.matrix.slice(0, 1), - i = this.matrix.slice(1), - o = e || a.default.getRowIndex; - return ( - i.sort(function(e, r) { - var i = o.call(n, e) > o.call(n, r); - return i - ? 'asc' === t - ? 1 - : -1 - : i - ? 0 - : 'asc' === t - ? -1 - : 1; - }), - n.data(r.concat(i)), - n - ); - }); - var r, - i = n(0), - o = n(13), - a = (r = o) && r.__esModule ? r : { default: r }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.updateColumn = function(t, e) { - var n = this, - r = - 'number' == typeof t - ? t - : this.matrix[0].indexOf(t); - return ( - r > -1 && - ('function' == typeof e - ? (0, i.each)(n.data(), function(t, i) { - var o; - i > 0 && - void 0 !== (o = e.call(n, t[r], i, t)) && - (n.matrix[i][r] = o); - }) - : (!e || e instanceof Array) && - ((e = e || []).length <= n.data().length - 1 - ? (e = e.concat( - (0, a.default)( - n.data().length - 1 - e.length - ) - )) - : (0, i.each)(e, function(t, r) { - n.matrix.length - 1 < e.length && - s.appendRow.call( - n, - String(n.matrix.length) - ); - }), - (0, i.each)(e, function(t, e) { - n.matrix[e + 1][r] = t; - }))), - n + }), + (n.handleChange = function(t) { + n.setUpdatedValue(t.target.value, t); + }), + (n.handleKeyDown = function(t) { + var e = f(t.target.value); + if (!isNaN(e) && c(t.keyCode)) { + var r = n.getArrowOffset(), + i = t.keyCode === u ? e + r : e - r; + n.setUpdatedValue(i, t); + } + }), + (n.handleDrag = function(t) { + if (n.props.dragLabel) { + var e = Math.round(n.props.value + t.movementX); + e >= 0 && + e <= n.props.dragMax && + n.props.onChange && + n.props.onChange(n.getValueObjectWithLabel(e), t); + } + }), + (n.handleMouseDown = function(t) { + n.props.dragLabel && + (t.preventDefault(), + n.handleDrag(t), + window.addEventListener('mousemove', n.handleDrag), + window.addEventListener('mouseup', n.handleMouseUp)); + }), + (n.handleMouseUp = function() { + n.unbindEventListeners(); + }), + (n.unbindEventListeners = function() { + window.removeEventListener('mousemove', n.handleDrag), + window.removeEventListener( + 'mouseup', + n.handleMouseUp ); - }), - (e.updateRow = function(t, e) { - var n = this, - r = - 'number' == typeof t - ? t - : this.selectColumn(0).indexOf(t); - return ( - r > -1 && - ('function' == typeof e - ? (0, i.each)(n.data()[r], function(t, i) { - var o = n.selectColumn(i), - a = e.call(n, t, i, o); - void 0 !== a && (n.matrix[r][i] = a); + }), + (n.state = { + value: String(t.value).toUpperCase(), + blurValue: String(t.value).toUpperCase() + }), + n + ); + } + return ( + (function(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof e + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { + value: t, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + e && + (Object.setPrototypeOf + ? Object.setPrototypeOf(t, e) + : (t.__proto__ = e)); + })(e, t), + r(e, [ + { + key: 'componentWillReceiveProps', + value: function(t) { + var e = this.input; + t.value !== this.state.value && + (e === document.activeElement + ? this.setState({ + blurValue: String(t.value).toUpperCase() + }) + : this.setState({ + value: String(t.value).toUpperCase(), + blurValue: + !this.state.blurValue && + String(t.value).toUpperCase() + })); + } + }, + { + key: 'componentWillUnmount', + value: function() { + this.unbindEventListeners(); + } + }, + { + key: 'getValueObjectWithLabel', + value: function(t) { + return (function(t, e, n) { + return ( + e in t + ? Object.defineProperty(t, e, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 }) - : (!e || e instanceof Array) && - ((e = e || []).length <= - n.matrix[0].length - 1 - ? (e = e.concat( - (0, a.default)( - n.matrix[0].length - 1 - e.length - ) - )) - : (0, i.each)(e, function(t, r) { - n.matrix[0].length - 1 < e.length && - s.appendColumn.call( - n, - String(n.matrix[0].length) - ); - }), - (0, i.each)(e, function(t, e) { - n.matrix[r][e + 1] = t; - }))), - n - ); - }); - var r, - i = n(0), - o = n(9), - a = (r = o) && r.__esModule ? r : { default: r }, - s = n(8); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t) { - return ( - (a = t), - function(t) { - var e = Array.prototype.slice.call(arguments, 1); - if (s[t]) return s[t].apply(this, e); - throw 'Requested parser does not exist'; - } - ); - }); - var r = n(0), - i = n(29), - o = n(30), - a = void 0, - s = { - metric: function() { - return function(t) { - return new a() - .set(['Value', 'Result'], t.result) - .type('metric'); - }; - }, - interval: function() { - var t = Array.prototype.slice.call(arguments); - return function(e) { - var n = new a().type('interval'); - return ( - (0, r.each)(e.result, function(e, r) { - var i = - t[0] && 'timeframe.end' === t[0] - ? e.timeframe.end - : e.timeframe.start; - n.set(['Result', i], e.value); - }), - n - ); - }; - }, - 'grouped-metric': function() { - return function(t) { - var e = new a().type('grouped-metric'); - return ( - (0, r.each)(t.result, function(t, n) { - var i; - (0, r.each)(t, function(t, e) { - 'result' !== e && (i = e); - }), - e.set(['Result', String(t[i])], t.result); - }), - e - ); - }; - }, - 'grouped-interval': function() { - var t = Array.prototype.slice.call(arguments); - return function(e) { - var n = new a().type('grouped-interval'); - return ( - (0, r.each)(e.result, function(e, i) { - var o = - t[0] && 'timeframe.end' === t[0] - ? e.timeframe.end - : e.timeframe.start; - e.value.length - ? (0, r.each)(e.value, function(t, e) { - var i; - (0, r.each)(t, function(t, e) { - 'result' !== e && (i = e); - }), - n.set([String(t[i]), o], t.result); - }) - : n.appendRow(o); - }), - n - ); - }; - }, - 'double-grouped-metric': function() { - var t = Array.prototype.slice.call(arguments); - if (!t[0]) - throw 'Requested parser requires a sequential list (array) of properties to target as a second argument'; - return function(e) { - var n = new a().type('double-grouped-metric'); - return ( - (0, r.each)(e.result, function(e, r) { - var i = e[t[0][0]] + ' ' + e[t[0][1]]; - n.set(['Result', i], e.result); - }), - n - ); - }; - }, - 'double-grouped-interval': function() { - var t = Array.prototype.slice.call(arguments); - if (!t[0]) - throw 'Requested parser requires a sequential list (array) of properties to target as a second argument'; - return function(e) { - var n = new a().type('double-grouped-interval'); - return ( - (0, r.each)(e.result, function(e, i) { - var o = - t[1] && 'timeframe.end' === t[1] - ? e.timeframe.end - : e.timeframe.start; - (0, r.each)(e.value, function(e, r) { - var i = e[t[0][0]] + ' ' + e[t[0][1]]; - n.set([i, o], e.result); - }); - }), - n - ); - }; - }, - funnel: function() { - return function(t) { - var e, n, i; - return ( - void 0 !== t.steps && - void 0 !== t.result && - t.result instanceof Array - ? ((e = t.result), (n = t.steps)) - : void 0 !== t.result.steps && - void 0 !== t.result.result && - t.result.result instanceof Array && - ((e = t.result.result), - (n = t.result.steps)), - (i = new a().type('funnel')).appendColumn( - 'Step Value' - ), - (0, r.each)(e, function(t, e) { - void 0 !== n && - n[e] && - i.appendRow(String(n[e].event_collection), [ - t - ]); - }), - i - ); - }; - }, - list: function() { - return function(t) { - var e = new a().type('list'); - return ( - (0, r.each)(t.result, function(t, n) { - e.set(['Result', String(n + 1)], t); - }), - e - ); - }; - }, - extraction: function() { - var t = this.config; - return function(e) { - var n = new a().type('extraction'), - r = Object.keys((0, i.flatten)(e.result[0])), - s = t && t.table; - if (s && 'dynamic' === s.schema) { - var u = e.result, - l = {}; - u.forEach(function(t) { - var e = Object.keys((0, i.flatten)(t)); - e && - e.length && - e.forEach(function(t) { - l[t] || (l[t] = !0); - }); - }), - (r = Object.keys(l)); - } - r.forEach(function(t) { - n.set([t, '0'], t); - }), - a && - t && - t.table && - t.table.columns && - (r = t.table.columns); - for (var c = 0; c < e.result.length; c++) { - for (var f = [c + 1], d = 0; d < r.length; d++) - f.push( - (0, o.valueAtDeepKey)(e.result[c], r[d]) - ); - n.matrix[String(c + 1)] = f; - } - return n.deleteColumn(0), n; - }; - }, - 'heatmap-axis': function() { - return function(t) { - var e = new a().type('heatmap'); - return ( - (0, r.each)(t.result, function(t, n) { - var r = Object.keys(t), - i = t[r[0]], - o = t[r[1]]; - e.appendRow([String(i), String(o), t.result]); - }), - e - ); - }; - } - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - }; - e.flatten = function t(e) { - var n = {}; - for (var i in e) - if (e.hasOwnProperty(i)) - if ('object' == r(e[i]) && null !== e[i]) { - var o = t(e[i]); - for (var a in o) - o.hasOwnProperty(a) && (n[i + '.' + a] = o[a]); - } else n[i] = e[i]; - return n; - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.valueAtDeepKey = function t(e, n, r) { - return 'string' == typeof n - ? t(e, n.split('.'), r) - : 1 == n.length && - void 0 !== r && - null !== e && - void 0 !== e[n[0]] - ? (e[n[0]] = r) - : 0 == n.length - ? e - : void 0 === n || - void 0 === e || - null === n || - null === e || - void 0 === e[n[0]] - ? null - : t(e[n[0]], n.slice(1), r); - }); - }, - function(t) { - t.exports = { - name: 'keen-dataviz', - description: 'Data Visualization SDK for Keen IO', - license: 'MIT', - version: '3.13.7', - main: 'dist/external_d3_c3/node/keen-dataviz.js', - browser: 'dist/external_d3_c3/keen-dataviz.js', - style: 'dist/keen-dataviz.css', - scripts: { - start: - 'concurrently --kill-others "NODE_ENV=development webpack-dev-server" "npm run postcss-watch"', - 'postcss-watch': - 'node_modules/postcss-cli/bin/postcss lib/style/keen-dataviz-c3.css -o test/demo/keen-dataviz.css --watch --config postcss.config.js', - build: - 'NODE_ENV=production webpack -p && npm run build:css && NODE_ENV=production OPTIMIZE_MINIMIZE=1 webpack -p && npm run build:css && npm run build:css:min && npm run build:external_d3_c3 && npm run build:external_d3_c3:css && npm run build:external_d3_c3:css:min && npm run build:node', - 'build:css': - 'node_modules/postcss-cli/bin/postcss lib/style/keen-dataviz-c3.css -o dist/keen-dataviz.css --config postcss.config.js', - 'build:css:min': - 'OPTIMIZE_MINIMIZE=1 node_modules/postcss-cli/bin/postcss lib/style/keen-dataviz-c3.css -o dist/keen-dataviz.min.css --config postcss.config.js', - 'build:external_d3_c3:css': - 'node_modules/postcss-cli/bin/postcss lib/style/keen-dataviz.css -o dist/external_d3_c3/keen-dataviz.css --config postcss.config.js', - 'build:external_d3_c3:css:min': - 'OPTIMIZE_MINIMIZE=1 node_modules/postcss-cli/bin/postcss lib/style/keen-dataviz.css -o dist/external_d3_c3/keen-dataviz.min.css --config postcss.config.js', - 'build:external_d3_c3': - 'NODE_ENV=production EXTERNAL_D3_C3=1 webpack -p && NODE_ENV=production EXTERNAL_D3_C3=1 OPTIMIZE_MINIMIZE=1 webpack -p', - 'build:node': - 'TARGET=node NODE_ENV=production EXTERNAL_D3_C3=1 webpack -p', - profile: 'webpack --profile --json > stats.json', - analyze: 'webpack-bundle-analyzer stats.json /dist', - version: 'npm run build && git add .', - postversion: - 'git push && git push --tags && npm publish', - test: 'NODE_ENV=test jest', - 'test:watch': 'NODE_ENV=test jest --watch' - }, - repository: { - type: 'git', - url: 'https://github.com/keen/keen-dataviz.js.git' - }, - bugs: 'https://github.com/keen/keen-dataviz.js/issues', - author: 'Keen.IO (https://keen.io/)', - contributors: [ - 'Dustin Larimer (https://github.com/dustinlarimer)', - 'Joanne Cheng (https://github.com/joannecheng)', - 'Eric Anderson (https://github.com/aroc)', - 'Joe Wegner (https://github.com/josephwegner)', - 'Sara Falkoff (https://github.com/adamkasprowicz)', - 'Dariusz Łacheta (https://github.com/dariuszlacheta)' - ], - homepage: 'https://keen.io/', - keywords: [ - 'd3', - 'c3', - 'Analytics', - 'Stats', - 'Statistics', - 'Visualization', - 'Visualizations', - 'Data Visualization', - 'Chart', - 'Charts', - 'Charting', - 'Svg', - 'Dataviz', - 'Plots', - 'Graphs', - 'Funnels' - ], - dependencies: { - c3: '^0.7.2', - d3: '^5.11.0', - 'dom-to-image': '^2.6.0', - 'file-saver': '^2.0.1', - 'promise-polyfill': '^8.0.0', - rangeable: '^0.1.6' - }, - devDependencies: { - autoprefixer: '^8.2.0', - 'babel-loader': '^7.1.4', - 'babel-plugin-transform-es2015-modules-commonjs': - '^6.26.2', - 'babel-plugin-transform-object-rest-spread': - '^6.26.0', - 'babel-preset-env': '^1.7.0', - concurrently: '^3.5.1', - cssnano: '^3.10.0', - eslint: '^4.19.1', - 'eslint-config-airbnb': '^16.1.0', - 'eslint-loader': '^2.0.0', - 'eslint-plugin-import': '^2.11.0', - 'eslint-plugin-jsx-a11y': '^6.0.3', - 'eslint-plugin-react': '^7.7.0', - 'html-loader': '^0.5.5', - 'html-webpack-plugin': '^3.2.0', - jest: '^22.4.3', - 'jest-environment-jsdom-c3': '^2.0.0', - nock: '^9.2.6', - postcss: '^6.0.21', - 'postcss-cli': '^5.0.0', - 'postcss-color-function': '^4.0.1', - 'postcss-css-variables': '^0.8.1', - 'postcss-cssnext': '^2.4.0', - 'postcss-import': '^8.0.2', - 'postcss-loader': '^2.1.3', - precss: '^3.1.2', - 'regenerator-runtime': '^0.11.1', - 'replace-in-file': '^3.4.0', - 'style-loader': '^0.20.3', - webpack: '^4.29.0', - 'webpack-bundle-analyzer': '^3.3.2', - 'webpack-cli': '^3.2.1', - 'webpack-dev-server': '^3.3.1', - 'xhr-mock': '^2.3.2' + : (t[e] = n), + t + ); + })({}, this.props.label, t); + } + }, + { + key: 'getArrowOffset', + value: function() { + return this.props.arrowOffset || 1; + } + }, + { + key: 'setUpdatedValue', + value: function(t, e) { + var n = + null !== this.props.label + ? this.getValueObjectWithLabel(t) + : t; + this.props.onChange && this.props.onChange(n, e); + var r, + i = (function(t) { + return String(t).indexOf('%') > -1; + })(e.target.value); + this.setState({ value: i ? ((r = t), r + '%') : t }); } - }; + }, + { + key: 'render', + value: function() { + var t = this, + e = (0, a.default)( + { + default: { wrap: { position: 'relative' } }, + 'user-override': { + wrap: + this.props.style && this.props.style.wrap + ? this.props.style.wrap + : {}, + input: + this.props.style && this.props.style.input + ? this.props.style.input + : {}, + label: + this.props.style && this.props.style.label + ? this.props.style.label + : {} + }, + 'dragLabel-true': { + label: { cursor: 'ew-resize' } + } + }, + { 'user-override': !0 }, + this.props + ); + return o.default.createElement( + 'div', + { style: e.wrap }, + o.default.createElement('input', { + style: e.input, + ref: function(e) { + return (t.input = e); + }, + value: this.state.value, + onKeyDown: this.handleKeyDown, + onChange: this.handleChange, + onBlur: this.handleBlur, + placeholder: this.props.placeholder, + spellCheck: 'false' + }), + this.props.label && !this.props.hideLabel + ? o.default.createElement( + 'span', + { + style: e.label, + onMouseDown: this.handleMouseDown + }, + this.props.label + ) + : null + ); + } + } + ]), + e + ); + })(i.PureComponent || i.Component)); + e.default = d; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.Hue = void 0); + var r = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + i = n(0), + o = u(i), + a = u(n(9)), + s = (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && + (e[n] = t[n]); + return (e.default = t), e; + })(n(201)); + function u(t) { + return t && t.__esModule ? t : { default: t }; + } + function l(t, e) { + if (!t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !e || ('object' != typeof e && 'function' != typeof e) + ? t + : e; + } + var c = (e.Hue = (function(t) { + function e() { + var t, n, r; + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + })(this, e); + for ( + var i = arguments.length, o = Array(i), a = 0; + a < i; + a++ + ) + o[a] = arguments[a]; + return ( + (n = r = l( + this, + (t = e.__proto__ || Object.getPrototypeOf(e)).call.apply( + t, + [this].concat(o) + ) + )), + (r.handleChange = function(t) { + var e = s.calculateChange( + t, + r.props.direction, + r.props.hsl, + r.container + ); + e && + 'function' == typeof r.props.onChange && + r.props.onChange(e, t); + }), + (r.handleMouseDown = function(t) { + r.handleChange(t), + window.addEventListener('mousemove', r.handleChange), + window.addEventListener('mouseup', r.handleMouseUp); + }), + (r.handleMouseUp = function() { + r.unbindEventListeners(); + }), + l(r, n) + ); + } + return ( + (function(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof e + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { + value: t, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + e && + (Object.setPrototypeOf + ? Object.setPrototypeOf(t, e) + : (t.__proto__ = e)); + })(e, t), + r(e, [ + { + key: 'componentWillUnmount', + value: function() { + this.unbindEventListeners(); + } }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t) { - return arguments.length - ? t instanceof o.default - ? ((this.dataset = t), this) - : u.call(this, t) - : this.dataset.data(); - }); - var r, - i = n(12), - o = (r = i) && r.__esModule ? r : { default: r }, - a = n(5), - s = n(14); - function u(t) { - var e, - n, - r, - i, - u, - l, - c, - f = []; - return ( - (n = this.config.indexBy), - (r = t.metadata || {}), - (u = void 0 !== t.query ? t.query : {}), - 'funnel' === - (u = (0, a.extend)( + { + key: 'unbindEventListeners', + value: function() { + window.removeEventListener( + 'mousemove', + this.handleChange + ), + window.removeEventListener( + 'mouseup', + this.handleMouseUp + ); + } + }, + { + key: 'render', + value: function() { + var t = this, + e = this.props.direction, + n = void 0 === e ? 'horizontal' : e, + r = (0, a.default)( { - analysis_type: null, - event_collection: null, - filters: [], - group_by: null, - interval: null, - timeframe: null, - timezone: null + default: { + hue: { + absolute: '0px 0px 0px 0px', + borderRadius: this.props.radius, + boxShadow: this.props.shadow + }, + container: { + padding: '0 2px', + position: 'relative', + height: '100%', + borderRadius: this.props.radius + }, + pointer: { + position: 'absolute', + left: (100 * this.props.hsl.h) / 360 + '%' + }, + slider: { + marginTop: '1px', + width: '4px', + borderRadius: '1px', + height: '8px', + boxShadow: '0 0 2px rgba(0, 0, 0, .6)', + background: '#fff', + transform: 'translateX(-2px)' + } + }, + vertical: { + pointer: { + left: '0px', + top: + (-100 * this.props.hsl.h) / 360 + 100 + '%' + } + } }, - u - )).analysis_type - ? (i = 'funnel') - : 'extraction' === u.analysis_type - ? (i = 'extraction') - : 'select_unique' === u.analysis_type - ? u.group_by || u.interval || (i = 'list') - : u.analysis_type && - (u.group_by || u.interval - ? u.group_by && !u.interval - ? u.group_by instanceof Array && - u.group_by.length > 1 - ? ((i = 'double-grouped-metric'), - f.push(u.group_by)) - : (i = 'grouped-metric') - : u.interval && !u.group_by - ? ((i = 'interval'), f.push(n)) - : u.group_by && - u.interval && - (u.group_by instanceof Array && - u.group_by.length > 1 - ? ((i = 'double-grouped-interval'), - f.push(u.group_by), - f.push(n)) - : ((i = 'grouped-interval'), f.push(n))) - : (i = 'metric')), - i || - ('number' == typeof t.result && (i = 'metric'), - t.result instanceof Array && - t.result.length > 0 && - (!t.result[0].timeframe || - ('number' != typeof t.result[0].value && - null != t.result[0].value) || - ((i = 'interval'), f.push(n)), - 'number' == typeof t.result[0].result && - (i = 'grouped-metric'), - 'heatmap' === this.config.type && - Object.keys( - 3 === t.result[0] && - 'number' == typeof t.result[0].result - ) && - (i = 'heatmap-axis'), - t.result[0].value instanceof Array && - ((i = 'grouped-interval'), f.push(n)), - 'number' == typeof t.result[0] && - void 0 !== t.steps && - ((i = 'funnel'), (u.steps = t.steps)), - ('string' != typeof t.result[0] && - 'number' != typeof t.result[0]) || - void 0 !== t.steps || - (i = 'list'), - i || (i = 'extraction')), - i || (i = 'extraction')), - void 0 === this.config.title && - ((l = r.display_name - ? r.display_name - : (function(t) { - var e, - n = t.analysis_type - ? t.analysis_type.replace('_', ' ') - : ''; - return ( - (e = n.replace(/\b./g, function(t) { - return t.toUpperCase(); - })), - t.event_collection && - (e += ' - ' + t.event_collection), - e - ); - })(u)), - (this.config.title = l)), - this.config.type || - ((c = - r.visualization && r.visualization.chart_type - ? r.visualization.chart_type - : (function(t) { - var e = void 0; - switch (t) { - case 'metric': - e = 'metric'; - break; - case 'interval': - e = 'area'; - break; - case 'grouped-metric': - case 'double-grouped-metric': - e = 'bar'; - break; - case 'grouped-interval': - case 'double-grouped-interval': - e = 'line'; - break; - case 'funnel': - e = 'horizontal-bar'; - break; - case 'list': - case 'extraction': - default: - e = 'table'; - } - return e; - })(i)), - (this.config.type = c)), - (e = o.default.parser.apply( - this, - [i].concat(f) - )((0, a.extend)(t, { query: u }))), - i.indexOf('interval') > -1 && - e.updateColumn(0, function(t, e) { - return new Date(t); - }), - e.updateRow(0, function(t, e) { - return (0, s.stripHtmlTags)(t); - }), - (this.dataset = e), - t.execution_metadata && - (this.execution_metadata = t.execution_metadata), - this + { vertical: 'vertical' === n } + ); + return o.default.createElement( + 'div', + { style: r.hue }, + o.default.createElement( + 'div', + { + className: 'hue-' + n, + style: r.container, + ref: function(e) { + return (t.container = e); + }, + onMouseDown: this.handleMouseDown, + onTouchMove: this.handleChange, + onTouchStart: this.handleChange + }, + o.default.createElement( + 'style', + null, + '\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n ' + ), + o.default.createElement( + 'div', + { style: r.pointer }, + this.props.pointer + ? o.default.createElement( + this.props.pointer, + this.props + ) + : o.default.createElement('div', { + style: r.slider + }) + ) + ) ); } - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); + } + ]), + e + ); + })(i.PureComponent || i.Component)); + e.default = c; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.calculateChange = function(t, e, n, r) { + var i = r.clientWidth, + o = r.clientHeight, + a = + 'number' == typeof t.pageX ? t.pageX : t.touches[0].pageX, + s = + 'number' == typeof t.pageY ? t.pageY : t.touches[0].pageY, + u = + a - (r.getBoundingClientRect().left + window.pageXOffset), + l = + s - (r.getBoundingClientRect().top + window.pageYOffset); + if ('vertical' === e) { + var c = void 0; + if ( + ((c = + l < 0 + ? 359 + : l > o + ? 0 + : (360 * ((-100 * l) / o + 100)) / 100), + n.h !== c) + ) + return { h: c, s: n.s, l: n.l, a: n.a, source: 'rgb' }; + } else { + var f = void 0; + if ( + ((f = + u < 0 + ? 0 + : u > i + ? 359 + : (((100 * u) / i) * 360) / 100), + n.h !== f) + ) + return { h: f, s: n.s, l: n.l, a: n.a, source: 'rgb' }; + } + return null; + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.Raised = void 0); + var r = s(n(0)), + i = s(n(1)), + o = s(n(9)), + a = s(n(203)); + function s(t) { + return t && t.__esModule ? t : { default: t }; + } + var u = (e.Raised = function(t) { + var e = t.zDepth, + n = t.radius, + i = t.background, + s = t.children, + u = t.styles, + l = void 0 === u ? {} : u, + c = (0, o.default)( + (0, a.default)( + { + default: { + wrap: { + position: 'relative', + display: 'inline-block' + }, + content: { position: 'relative' }, + bg: { + absolute: '0px 0px 0px 0px', + boxShadow: + '0 ' + e + 'px ' + 4 * e + 'px rgba(0,0,0,.24)', + borderRadius: n, + background: i + } + }, + 'zDepth-0': { bg: { boxShadow: 'none' } }, + 'zDepth-1': { + bg: { + boxShadow: + '0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)' } - return t; - }; - e.default = function(t) { - var e, - n = void 0; - return ( - (e = function() { - n && clearTimeout(n); - var e = t.visuals.length > 12 ? 1e3 : 250; - n = setTimeout(function() { - (0, o.each)(t.visuals, function(t) { - var e = t.view._artifacts.c3; - if (e) { - var n = e.element.previousSibling - ? e.element.previousSibling.offsetWidth - : 0, - r = e.element.nextSibling - ? e.element.nextSibling.offsetWidth - : 0, - i = - e.element.parentNode.parentNode - .offsetWidth - - n - - r; - e.resize({ width: i }); - } - }); - }, e); - }), - 'undefined' != typeof window && - ((window.onresize = window.resize = function() {}), - window.addEventListener - ? window.addEventListener('resize', e, !0) - : window.attachEvent && - window.attachEvent('onresize', e)), - (function() { - var t = { - message: h.default, - metric: p.default, - table: g.default, - spinner: v.default, - funnel: new m.default(), - 'funnel-3d': new y.default(), - 'horizontal-funnel': new b.default(), - 'horizontal-funnel-3d': new _.default(), - 'metric-combo': new x.default(), - heatmap: new w.default(), - choropleth: new S.default() - }, - e = function(t, e) { - return parseInt( - window - .getComputedStyle(t) - ['padding' + e].replace('px', '') - ); - }; - function n() { - var t = { - bindto: this.el().querySelector( - '.' + - this.config.theme + - '-rendering .c3-chart' - ), - color: { pattern: this.config.colors }, - data: { - colors: r({}, this.config.colorMapping), - columns: [], - type: this.config.type.replace( - 'horizontal-', - '' - ) - } - }, - n = this.el(), - i = n.offsetHeight; - if ( - ((i -= e(n, 'Top') + e(n, 'Bottom')), - this.config.showTitle) - ) { - var o = this.el().querySelector( - '.keen-dataviz-title' - ); - i -= o - ? o.offsetHeight - : parseInt( - window - .getComputedStyle(this.el(), null) - ['font-size'].replace('px', '') - ); - } - if (this.config.notes) { - var s = this.el().querySelector( - '.keen-dataviz-notes' - ); - i -= s - ? s.offsetHeight - : parseInt( - window - .getComputedStyle(this.el(), null) - ['font-size'].replace('px', '') - ); - } - var u = - this.el().querySelector('.c3-chart') - .offsetWidth - - (e(n, 'Left') + e(n, 'Right')); - u < 0 && (u = 0); - var l = { - size: { width: u, height: i > 0 ? i : void 0 } - }; - return (0, a.extendDeep)({}, l, this.config, t); - } - return ( - (0, o.each)( - [ - 'area', - 'area-spline', - 'area-step', - 'bar', - 'donut', - 'gauge', - 'line', - 'pie', - 'step', - 'spline', - 'horizontal-area', - 'horizontal-area-spline', - 'horizontal-area-step', - 'horizontal-bar', - 'horizontal-line', - 'horizontal-step', - 'horizontal-spline' - ], - function(a, h) { - t[a] = { - render: function() { - var t = this, - h = n.call(this), - p = (0, d.calculateSumForPercents)( - this.dataset.matrix - ); - if ( - ('percent' !== h.stacking || - ('bar' !== a && - 'horizontal-bar' !== a && - 'area' !== a && - 'area-step' !== a && - 'area-spline' !== a) || - (this.dataset.matrix, - (this.dataset.matrix = [ - this.dataset.matrix[0] - ].concat( - k( - (0, d.calculatePercents)( - this.dataset.matrix, - p - ) - ) - )), - h.sparkline || - (h.axis = { - y: { - padding: { top: 0 }, - tick: { - format: function(t) { - return t + '%'; - } - } - } - })), - h.range && - (this.dataset.matrix = [ - this.dataset.matrix[0] - ].concat( - k( - (0, f.default)( - this.dataset.matrix - ) - ) - )), - this.config.clearOnRender && - h.data.columns.length && - this.dataset && - this.dataset.meta) - ) { - var g = (this.dataset.meta || {}).type, - v = 0; - ['interval'].includes( - void 0 === g ? '' : g - ) && (v = 1), - h.data.columns.splice(v); - } - if ( - 1 !== this.data()[0].length && - 1 !== this.data().length - ) { - var m = !1; - if ( - ('gauge' === a - ? ((h.legend.show = !1), - (h.data.columns = [ - [ - this.config.title || - this.data()[1][0], - this.data()[1][1] - ] - ]), - (m = !0)) - : 'pie' === a || 'donut' === a - ? (h.data.columns = this.data().slice( - 1 - )) - : (a.indexOf('horizontal-') > -1 && - (h.axis.rotated = - a.indexOf('horizontal-') > - -1), - (0, s.default)(this.data()[1][0]) - ? ((h.axis.x = h.axis.x || {}), - (h.axis.x.type = - 'timeseries'), - (h.axis.x.tick = h.axis.x - .tick || { - format: - this.config.dateFormat || - (0, u.default)( - this.data()[1][0], - this.data()[2] - ? this.data()[2][0] - : this.data()[1][0] - ), - culling: { max: 5 } - }), - (h.data.columns[0] = []), - (0, o.each)( - this.dataset.selectColumn( - 0 - ), - function(t, e) { - e > 0 && - (t = new Date(t)), - (h.data.columns[0][ - e - ] = t); - } - ), - (h.data.columns[0][0] = 'x'), - (h.data.x = 'x'), - this.config.stacked && - this.data()[0].length > 2 && - (h.data.groups = [ - this.dataset - .selectRow(0) - .slice(1) - ])) - : ((h.axis.x = h.axis.x || {}), - (h.axis.x.type = 'category'), - (h.axis.x.categories = this.dataset - .selectColumn(0) - .slice(1)), - this.config.stacked && - this.data()[0].length > 2 && - (h.data.groups = [ - this.dataset - .selectRow(0) - .slice(1) - ])), - 2 === this.data()[0].length && - ((h.legend.show = !1), - (m = !0)), - (0, o.each)( - this.data()[0], - function(t, e) { - e > 0 && - h.data.columns.push( - this.dataset.selectColumn( - e - ) - ); - }.bind(this) - )), - m) - ) { - var y = this.el().querySelector( - '.keen-c3-legend' - ); - y && - (y.remove(), - (h.size.width = this.el().querySelector( - '.c3-chart' - ).offsetWidth)), - (h.legend.show = !1); - } - if ( - h.partialIntervalIndicator && - h.partialIntervalIndicator.show && - [ - 'area', - 'area-spline', - 'area-step', - 'line', - 'spline', - 'step' - ].indexOf(h.type) > -1 - ) { - var b = - h.data.columns && h.data.columns[0]; - if (b && b.length > 1) { - var _ = { - axis: 'x', - start: new Date(b[b.length - 2]), - class: - h.partialIntervalIndicator - .className - }; - h.regions = [].concat( - k(h.regions || []), - [_] - ); - } - } - if ( - ((h.tooltip && - !1 === h.tooltip.show) || - !( - !0 === h.legend.show || - (h.legend && - h.legend.tooltip && - h.legend.tooltip.show) - ) || - (h.tooltip = { - contents: c.default, - format: { - title: this.config.tooltip - .format.title, - value: function(e, n, r, i) { - var o = T.call(t, e, n, r, i); - return t.config.tooltip && - t.config.tooltip.format && - t.config.tooltip.format - .value - ? ((o = t.config.tooltip.format.value.call( - t, - o, - n, - r, - i - )), - 'percent' !== - h.stacking || - ('bar' !== a && - 'horizontal-bar' !== - a && - 'area' !== a && - 'area-step' !== a && - 'area-spline' !== - a) || - (o = parseFloat( - ( - (o / 100) * - p[i] - ).toFixed(2) - )), - h.range && - 'Max' === r && - (o += - t.dataset.matrix[ - i + 1 - ][2]), - o) - : 'percent' !== - h.stacking || - ('bar' !== a && - 'horizontal-bar' !== - a && - 'area' !== a && - 'area-step' !== a && - 'area-spline' !== a) - ? (h.range && - 'Max' === r && - (o += - t.dataset.matrix[ - i + 1 - ][2]), - o) - : ((o = ( - (o / 100) * - p[i] - ).toFixed(2)), - parseFloat(o)); - } - } - }), - !0 === h.legend.show) - ) { - var x = r({}, h); - (x.data.color = A.bind(this)), - (x.legend.hide = !0), - (this.view._artifacts.c3 = i.default.generate( - x - )), - l.default.call( - this, - r({}, h, { - onLegendRendered: function() { - var n = t - .el() - .querySelector( - '.keen-c3-legend' - ); - n && - ('top' === - h.legend.position || - 'bottom' === - h.legend.position - ? ((x.size.height -= - n.offsetHeight), - t.view._artifacts.c3.resize( - { - height: - x.size.height - } - )) - : (0 === x.size.width && - (x.size.width = - t.el().offsetWidth - - e(t.el(), 'Left') - - e(t.el(), 'Right')), - (x.size.width -= - n.offsetWidth), - t.view._artifacts.c3.resize( - { - width: x.size.width - } - ))); - }, - onPaginated: function() { - t.view._artifacts.c3.flush(); - } - }) - ); - } else - this.view._artifacts.c3 = i.default.generate( - h - ); - } else { - var w = 'No data to display', - S = this.config.errorMapping[w] || w; - this.config.showErrorMessages && - this.message(S); - } - }, - update: function() { - this.render(); - }, - destroy: function() { - this.view._artifacts.c3 && - (this.view._artifacts.c3.destroy(), - (this.view._artifacts.c3 = null)); - } - }; + }, + 'zDepth-2': { + bg: { + boxShadow: + '0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)' + } + }, + 'zDepth-3': { + bg: { + boxShadow: + '0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)' + } + }, + 'zDepth-4': { + bg: { + boxShadow: + '0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)' + } + }, + 'zDepth-5': { + bg: { + boxShadow: + '0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)' + } + }, + square: { bg: { borderRadius: '0' } }, + circle: { bg: { borderRadius: '50%' } } + }, + l + ), + { 'zDepth-1': 1 === e } + ); + return r.default.createElement( + 'div', + { style: c.wrap }, + r.default.createElement('div', { style: c.bg }), + r.default.createElement('div', { style: c.content }, s) + ); + }); + (u.propTypes = { + background: i.default.string, + zDepth: i.default.oneOf([0, 1, 2, 3, 4, 5]), + radius: i.default.number, + styles: i.default.object + }), + (u.defaultProps = { + background: '#fff', + zDepth: 1, + radius: 2, + styles: {} + }), + (e.default = u); + }, + function(t, e, n) { + var r = n(204), + i = n(208)(function(t, e, n) { + r(t, e, n); + }); + t.exports = i; + }, + function(t, e, n) { + var r = n(23), + i = n(84), + o = n(57), + a = n(205), + s = n(4), + u = n(31), + l = n(85); + t.exports = function t(e, n, c, f, d) { + e !== n && + o( + n, + function(o, u) { + if (s(o)) d || (d = new r()), a(e, n, u, c, t, f, d); + else { + var h = f ? f(l(e, u), o, u + '', e, n, d) : void 0; + void 0 === h && (h = o), i(e, u, h); + } + }, + u + ); + }; + }, + function(t, e, n) { + var r = n(84), + i = n(79), + o = n(82), + a = n(80), + s = n(83), + u = n(38), + l = n(3), + c = n(206), + f = n(21), + d = n(45), + h = n(4), + p = n(61), + g = n(40), + m = n(85), + v = n(207); + t.exports = function(t, e, n, y, b, _, x) { + var w = m(t, n), + S = m(e, n), + E = x.get(S); + if (E) r(t, n, E); + else { + var k = _ ? _(w, S, n + '', t, e, x) : void 0, + A = void 0 === k; + if (A) { + var T = l(S), + C = !T && f(S), + O = !T && !C && g(S); + (k = S), + T || C || O + ? l(w) + ? (k = w) + : c(w) + ? (k = a(w)) + : C + ? ((A = !1), (k = i(S, !0))) + : O + ? ((A = !1), (k = o(S, !0))) + : (k = []) + : p(S) || u(S) + ? ((k = w), + u(w) ? (k = v(w)) : (h(w) && !d(w)) || (k = s(S))) + : (A = !1); + } + A && (x.set(S, k), b(k, S, y, _, x), x.delete(S)), r(t, n, k); + } + }; + }, + function(t, e, n) { + var r = n(12), + i = n(6); + t.exports = function(t) { + return i(t) && r(t); + }; + }, + function(t, e, n) { + var r = n(18), + i = n(31); + t.exports = function(t) { + return r(t, i(t)); + }; + }, + function(t, e, n) { + var r = n(209), + i = n(216); + t.exports = function(t) { + return r(function(e, n) { + var r = -1, + o = n.length, + a = o > 1 ? n[o - 1] : void 0, + s = o > 2 ? n[2] : void 0; + for ( + a = + t.length > 3 && 'function' == typeof a + ? (o--, a) + : void 0, + s && + i(n[0], n[1], s) && + ((a = o < 3 ? void 0 : a), (o = 1)), + e = Object(e); + ++r < o; + + ) { + var u = n[r]; + u && t(e, u, r, a); + } + return e; + }); + }; + }, + function(t, e, n) { + var r = n(22), + i = n(210), + o = n(212); + t.exports = function(t, e) { + return o(i(t, e, r), t + ''); + }; + }, + function(t, e, n) { + var r = n(211), + i = Math.max; + t.exports = function(t, e, n) { + return ( + (e = i(void 0 === e ? t.length - 1 : e, 0)), + function() { + for ( + var o = arguments, + a = -1, + s = i(o.length - e, 0), + u = Array(s); + ++a < s; + + ) + u[a] = o[e + a]; + a = -1; + for (var l = Array(e + 1); ++a < e; ) l[a] = o[a]; + return (l[e] = n(u)), r(t, this, l); + } + ); + }; + }, + function(t, e) { + t.exports = function(t, e, n) { + switch (n.length) { + case 0: + return t.call(e); + case 1: + return t.call(e, n[0]); + case 2: + return t.call(e, n[0], n[1]); + case 3: + return t.call(e, n[0], n[1], n[2]); + } + return t.apply(e, n); + }; + }, + function(t, e, n) { + var r = n(213), + i = n(215)(r); + t.exports = i; + }, + function(t, e, n) { + var r = n(214), + i = n(78), + o = n(22), + a = i + ? function(t, e) { + return i(t, 'toString', { + configurable: !0, + enumerable: !1, + value: r(e), + writable: !0 + }); + } + : o; + t.exports = a; + }, + function(t, e) { + t.exports = function(t) { + return function() { + return t; + }; + }; + }, + function(t, e) { + var n = Date.now; + t.exports = function(t) { + var e = 0, + r = 0; + return function() { + var i = n(), + o = 16 - (i - r); + if (((r = i), o > 0)) { + if (++e >= 800) return arguments[0]; + } else e = 0; + return t.apply(void 0, arguments); + }; + }; + }, + function(t, e, n) { + var r = n(17), + i = n(12), + o = n(39), + a = n(4); + t.exports = function(t, e, n) { + if (!a(n)) return !1; + var s = typeof e; + return ( + !!('number' == s + ? i(n) && o(e, n.length) + : 'string' == s && e in n) && r(n[e], t) + ); + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.Saturation = void 0); + var r = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + i = n(0), + o = l(i), + a = l(n(9)), + s = l(n(218)), + u = (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && + (e[n] = t[n]); + return (e.default = t), e; + })(n(221)); + function l(t) { + return t && t.__esModule ? t : { default: t }; + } + var c = (e.Saturation = (function(t) { + function e(t) { + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + })(this, e); + var n = (function(t, e) { + if (!t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !e || + ('object' != typeof e && 'function' != typeof e) + ? t + : e; + })( + this, + (e.__proto__ || Object.getPrototypeOf(e)).call(this, t) + ); + return ( + (n.handleChange = function(t) { + 'function' == typeof n.props.onChange && + n.throttle( + n.props.onChange, + u.calculateChange(t, n.props.hsl, n.container), + t + ); + }), + (n.handleMouseDown = function(t) { + n.handleChange(t), + window.addEventListener('mousemove', n.handleChange), + window.addEventListener('mouseup', n.handleMouseUp); + }), + (n.handleMouseUp = function() { + n.unbindEventListeners(); + }), + (n.throttle = (0, s.default)(function(t, e, n) { + t(e, n); + }, 50)), + n + ); + } + return ( + (function(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof e + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { + value: t, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + e && + (Object.setPrototypeOf + ? Object.setPrototypeOf(t, e) + : (t.__proto__ = e)); + })(e, t), + r(e, [ + { + key: 'componentWillUnmount', + value: function() { + this.throttle.cancel(), this.unbindEventListeners(); + } + }, + { + key: 'unbindEventListeners', + value: function() { + window.removeEventListener( + 'mousemove', + this.handleChange + ), + window.removeEventListener( + 'mouseup', + this.handleMouseUp + ); + } + }, + { + key: 'render', + value: function() { + var t = this, + e = this.props.style || {}, + n = e.color, + r = e.white, + i = e.black, + s = e.pointer, + u = e.circle, + l = (0, a.default)( + { + default: { + color: { + absolute: '0px 0px 0px 0px', + background: + 'hsl(' + this.props.hsl.h + ',100%, 50%)', + borderRadius: this.props.radius + }, + white: { + absolute: '0px 0px 0px 0px', + borderRadius: this.props.radius + }, + black: { + absolute: '0px 0px 0px 0px', + boxShadow: this.props.shadow, + borderRadius: this.props.radius + }, + pointer: { + position: 'absolute', + top: -100 * this.props.hsv.v + 100 + '%', + left: 100 * this.props.hsv.s + '%', + cursor: 'default' + }, + circle: { + width: '4px', + height: '4px', + boxShadow: + '0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)', + borderRadius: '50%', + cursor: 'hand', + transform: 'translate(-2px, -2px)' } - ), - t - ); - })() + }, + custom: { + color: n, + white: r, + black: i, + pointer: s, + circle: u + } + }, + { custom: !!this.props.style } + ); + return o.default.createElement( + 'div', + { + style: l.color, + ref: function(e) { + return (t.container = e); + }, + onMouseDown: this.handleMouseDown, + onTouchMove: this.handleChange, + onTouchStart: this.handleChange + }, + o.default.createElement( + 'style', + null, + '\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n ' + ), + o.default.createElement( + 'div', + { style: l.white, className: 'saturation-white' }, + o.default.createElement('div', { + style: l.black, + className: 'saturation-black' + }), + o.default.createElement( + 'div', + { style: l.pointer }, + this.props.pointer + ? o.default.createElement( + this.props.pointer, + this.props + ) + : o.default.createElement('div', { + style: l.circle + }) + ) + ) + ); + } + } + ]), + e + ); + })(i.PureComponent || i.Component)); + e.default = c; + }, + function(t, e, n) { + var r = n(86), + i = n(4); + t.exports = function(t, e, n) { + var o = !0, + a = !0; + if ('function' != typeof t) + throw new TypeError('Expected a function'); + return ( + i(n) && + ((o = 'leading' in n ? !!n.leading : o), + (a = 'trailing' in n ? !!n.trailing : a)), + r(t, e, { leading: o, maxWait: e, trailing: a }) + ); + }; + }, + function(t, e, n) { + var r = n(5); + t.exports = function() { + return r.Date.now(); + }; + }, + function(t, e, n) { + var r = n(4), + i = n(29), + o = /^\s+|\s+$/g, + a = /^[-+]0x[0-9a-f]+$/i, + s = /^0b[01]+$/i, + u = /^0o[0-7]+$/i, + l = parseInt; + t.exports = function(t) { + if ('number' == typeof t) return t; + if (i(t)) return NaN; + if (r(t)) { + var e = 'function' == typeof t.valueOf ? t.valueOf() : t; + t = r(e) ? e + '' : e; + } + if ('string' != typeof t) return 0 === t ? t : +t; + t = t.replace(o, ''); + var n = s.test(t); + return n || u.test(t) + ? l(t.slice(2), n ? 2 : 8) + : a.test(t) + ? NaN + : +t; + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.calculateChange = function(t, e, n) { + var r = n.getBoundingClientRect(), + i = r.width, + o = r.height, + a = + 'number' == typeof t.pageX ? t.pageX : t.touches[0].pageX, + s = + 'number' == typeof t.pageY ? t.pageY : t.touches[0].pageY, + u = + a - (n.getBoundingClientRect().left + window.pageXOffset), + l = + s - (n.getBoundingClientRect().top + window.pageYOffset); + u < 0 + ? (u = 0) + : u > i + ? (u = i) + : l < 0 + ? (l = 0) + : l > o && (l = o); + var c = (100 * u) / i, + f = (-100 * l) / o + 100; + return { h: e.h, s: c, v: f, a: e.a, source: 'rgb' }; + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.ColorWrap = void 0); + var r = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }, + i = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + o = n(0), + a = l(o), + s = l(n(86)), + u = l(n(223)); + function l(t) { + return t && t.__esModule ? t : { default: t }; + } + var c = (e.ColorWrap = function(t) { + var e = (function(e) { + function n(t) { + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, n); + var e = (function(t, e) { + if (!t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !e || + ('object' != typeof e && 'function' != typeof e) + ? t + : e; + })( + this, + (n.__proto__ || Object.getPrototypeOf(n)).call(this) + ); + return ( + (e.handleChange = function(t, n) { + if (u.default.simpleCheckForValidColor(t)) { + var r = u.default.toState(t, t.h || e.state.oldHue); + e.setState(r), + e.props.onChangeComplete && + e.debounce(e.props.onChangeComplete, r, n), + e.props.onChange && e.props.onChange(r, n); + } + }), + (e.handleSwatchHover = function(t, n) { + if (u.default.simpleCheckForValidColor(t)) { + var r = u.default.toState(t, t.h || e.state.oldHue); + e.props.onSwatchHover && e.props.onSwatchHover(r, n); + } + }), + (e.state = r({}, u.default.toState(t.color, 0))), + (e.debounce = (0, s.default)(function(t, e, n) { + t(e, n); + }, 100)), + e + ); + } + return ( + (function(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof e + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { + value: t, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + e && + (Object.setPrototypeOf + ? Object.setPrototypeOf(t, e) + : (t.__proto__ = e)); + })(n, e), + i(n, [ + { + key: 'componentWillReceiveProps', + value: function(t) { + this.setState( + r({}, u.default.toState(t.color, this.state.oldHue)) + ); + } + }, + { + key: 'render', + value: function() { + var e = {}; + return ( + this.props.onSwatchHover && + (e.onSwatchHover = this.handleSwatchHover), + a.default.createElement( + t, + r( + {}, + this.props, + this.state, + { onChange: this.handleChange }, + e + ) + ) + ); + } + } + ]), + n + ); + })(o.PureComponent || o.Component); + return ( + (e.propTypes = r({}, t.propTypes)), + (e.defaultProps = r({}, t.defaultProps, { + color: { h: 250, s: 0.5, l: 0.2, a: 1 } + })), + e + ); + }); + e.default = c; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.red = e.getContrastingColor = e.isValidHex = e.toState = e.simpleCheckForValidColor = void 0); + var r = o(n(224)), + i = o(n(226)); + function o(t) { + return t && t.__esModule ? t : { default: t }; + } + e.simpleCheckForValidColor = function(t) { + var e = 0, + n = 0; + return ( + (0, r.default)( + ['r', 'g', 'b', 'a', 'h', 's', 'l', 'v'], + function(r) { + t[r] && + ((e += 1), + isNaN(t[r]) || (n += 1), + 's' === r || 'l' === r) && + /^\d+%$/.test(t[r]) && + (n += 1); + } + ), + e === n && t + ); + }; + var a = (e.toState = function(t, e) { + var n = t.hex ? (0, i.default)(t.hex) : (0, i.default)(t), + r = n.toHsl(), + o = n.toHsv(), + a = n.toRgb(), + s = n.toHex(); + return ( + 0 === r.s && ((r.h = e || 0), (o.h = e || 0)), + { + hsl: r, + hex: '000000' === s && 0 === a.a ? 'transparent' : '#' + s, + rgb: a, + hsv: o, + oldHue: t.h || e || r.h, + source: t.source + } + ); + }); + (e.isValidHex = function(t) { + var e = '#' === String(t).charAt(0) ? 1 : 0; + return ( + t.length !== 4 + e && + t.length < 7 + e && + (0, i.default)(t).isValid() + ); + }), + (e.getContrastingColor = function(t) { + if (!t) return '#fff'; + var e = a(t); + return 'transparent' === e.hex + ? 'rgba(0,0,0,0.4)' + : (299 * e.rgb.r + 587 * e.rgb.g + 114 * e.rgb.b) / 1e3 >= + 128 + ? '#000' + : '#fff'; + }), + (e.red = { + hsl: { a: 1, h: 0, l: 0.5, s: 1 }, + hex: '#ff0000', + rgb: { r: 255, g: 0, b: 0, a: 1 }, + hsv: { h: 0, s: 1, v: 1, a: 1 } + }), + (e.default = e); + }, + function(t, e, n) { + t.exports = n(225); + }, + function(t, e, n) { + var r = n(76), + i = n(75), + o = n(60), + a = n(3); + t.exports = function(t, e) { + return (a(t) ? r : i)(t, o(e)); + }; + }, + function(t, e, n) { + var r; + !(function(i) { + var o = /^\s+/, + a = /\s+$/, + s = 0, + u = i.round, + l = i.min, + c = i.max, + f = i.random; + function d(t, e) { + if (((e = e || {}), (t = t || '') instanceof d)) return t; + if (!(this instanceof d)) return new d(t, e); + var n = (function(t) { + var e, + n, + r, + s = { r: 0, g: 0, b: 0 }, + u = 1, + f = null, + d = null, + h = null, + p = !1, + g = !1; + return ( + 'string' == typeof t && + (t = (function(t) { + t = t + .replace(o, '') + .replace(a, '') + .toLowerCase(); + var e, + n = !1; + if (P[t]) (t = P[t]), (n = !0); + else if ('transparent' == t) + return { r: 0, g: 0, b: 0, a: 0, format: 'name' }; + return (e = H.rgb.exec(t)) + ? { r: e[1], g: e[2], b: e[3] } + : (e = H.rgba.exec(t)) + ? { r: e[1], g: e[2], b: e[3], a: e[4] } + : (e = H.hsl.exec(t)) + ? { h: e[1], s: e[2], l: e[3] } + : (e = H.hsla.exec(t)) + ? { h: e[1], s: e[2], l: e[3], a: e[4] } + : (e = H.hsv.exec(t)) + ? { h: e[1], s: e[2], v: e[3] } + : (e = H.hsva.exec(t)) + ? { h: e[1], s: e[2], v: e[3], a: e[4] } + : (e = H.hex8.exec(t)) + ? { + r: R(e[1]), + g: R(e[2]), + b: R(e[3]), + a: F(e[4]), + format: n ? 'name' : 'hex8' + } + : (e = H.hex6.exec(t)) + ? { + r: R(e[1]), + g: R(e[2]), + b: R(e[3]), + format: n ? 'name' : 'hex' + } + : (e = H.hex4.exec(t)) + ? { + r: R(e[1] + '' + e[1]), + g: R(e[2] + '' + e[2]), + b: R(e[3] + '' + e[3]), + a: F(e[4] + '' + e[4]), + format: n ? 'name' : 'hex8' + } + : !!(e = H.hex3.exec(t)) && { + r: R(e[1] + '' + e[1]), + g: R(e[2] + '' + e[2]), + b: R(e[3] + '' + e[3]), + format: n ? 'name' : 'hex' + }; + })(t)), + 'object' == typeof t && + (U(t.r) && U(t.g) && U(t.b) + ? ((e = t.r), + (n = t.g), + (r = t.b), + (s = { + r: 255 * j(e, 255), + g: 255 * j(n, 255), + b: 255 * j(r, 255) + }), + (p = !0), + (g = + '%' === String(t.r).substr(-1) ? 'prgb' : 'rgb')) + : U(t.h) && U(t.s) && U(t.v) + ? ((f = N(t.s)), + (d = N(t.v)), + (s = (function(t, e, n) { + (t = 6 * j(t, 360)), + (e = j(e, 100)), + (n = j(n, 100)); + var r = i.floor(t), + o = t - r, + a = n * (1 - e), + s = n * (1 - o * e), + u = n * (1 - (1 - o) * e), + l = r % 6; + return { + r: 255 * [n, s, a, a, u, n][l], + g: 255 * [u, n, n, s, a, a][l], + b: 255 * [a, a, u, n, n, s][l] + }; + })(t.h, f, d)), + (p = !0), + (g = 'hsv')) + : U(t.h) && + U(t.s) && + U(t.l) && + ((f = N(t.s)), + (h = N(t.l)), + (s = (function(t, e, n) { + var r, i, o; + function a(t, e, n) { + return ( + n < 0 && (n += 1), + n > 1 && (n -= 1), + n < 1 / 6 + ? t + 6 * (e - t) * n + : n < 0.5 + ? e + : n < 2 / 3 + ? t + (e - t) * (2 / 3 - n) * 6 + : t + ); + } + if ( + ((t = j(t, 360)), + (e = j(e, 100)), + (n = j(n, 100)), + 0 === e) + ) + r = i = o = n; + else { + var s = n < 0.5 ? n * (1 + e) : n + e - n * e, + u = 2 * n - s; + (r = a(u, s, t + 1 / 3)), + (i = a(u, s, t)), + (o = a(u, s, t - 1 / 3)); + } + return { r: 255 * r, g: 255 * i, b: 255 * o }; + })(t.h, f, h)), + (p = !0), + (g = 'hsl')), + t.hasOwnProperty('a') && (u = t.a)), + (u = L(u)), + { + ok: p, + format: t.format || g, + r: l(255, c(s.r, 0)), + g: l(255, c(s.g, 0)), + b: l(255, c(s.b, 0)), + a: u + } + ); + })(t); + (this._originalInput = t), + (this._r = n.r), + (this._g = n.g), + (this._b = n.b), + (this._a = n.a), + (this._roundA = u(100 * this._a) / 100), + (this._format = e.format || n.format), + (this._gradientType = e.gradientType), + this._r < 1 && (this._r = u(this._r)), + this._g < 1 && (this._g = u(this._g)), + this._b < 1 && (this._b = u(this._b)), + (this._ok = n.ok), + (this._tc_id = s++); + } + function h(t, e, n) { + (t = j(t, 255)), (e = j(e, 255)), (n = j(n, 255)); + var r, + i, + o = c(t, e, n), + a = l(t, e, n), + s = (o + a) / 2; + if (o == a) r = i = 0; + else { + var u = o - a; + switch ( + ((i = s > 0.5 ? u / (2 - o - a) : u / (o + a)), o) + ) { + case t: + r = (e - n) / u + (e < n ? 6 : 0); + break; + case e: + r = (n - t) / u + 2; + break; + case n: + r = (t - e) / u + 4; + } + r /= 6; + } + return { h: r, s: i, l: s }; + } + function p(t, e, n) { + (t = j(t, 255)), (e = j(e, 255)), (n = j(n, 255)); + var r, + i, + o = c(t, e, n), + a = l(t, e, n), + s = o, + u = o - a; + if (((i = 0 === o ? 0 : u / o), o == a)) r = 0; + else { + switch (o) { + case t: + r = (e - n) / u + (e < n ? 6 : 0); + break; + case e: + r = (n - t) / u + 2; + break; + case n: + r = (t - e) / u + 4; + } + r /= 6; + } + return { h: r, s: i, v: s }; + } + function g(t, e, n, r) { + var i = [ + z(u(t).toString(16)), + z(u(e).toString(16)), + z(u(n).toString(16)) + ]; + return r && + i[0].charAt(0) == i[0].charAt(1) && + i[1].charAt(0) == i[1].charAt(1) && + i[2].charAt(0) == i[2].charAt(1) + ? i[0].charAt(0) + i[1].charAt(0) + i[2].charAt(0) + : i.join(''); + } + function m(t, e, n, r) { + return [ + z(I(r)), + z(u(t).toString(16)), + z(u(e).toString(16)), + z(u(n).toString(16)) + ].join(''); + } + function v(t, e) { + e = 0 === e ? 0 : e || 10; + var n = d(t).toHsl(); + return (n.s -= e / 100), (n.s = D(n.s)), d(n); + } + function y(t, e) { + e = 0 === e ? 0 : e || 10; + var n = d(t).toHsl(); + return (n.s += e / 100), (n.s = D(n.s)), d(n); + } + function b(t) { + return d(t).desaturate(100); + } + function _(t, e) { + e = 0 === e ? 0 : e || 10; + var n = d(t).toHsl(); + return (n.l += e / 100), (n.l = D(n.l)), d(n); + } + function x(t, e) { + e = 0 === e ? 0 : e || 10; + var n = d(t).toRgb(); + return ( + (n.r = c(0, l(255, n.r - u((-e / 100) * 255)))), + (n.g = c(0, l(255, n.g - u((-e / 100) * 255)))), + (n.b = c(0, l(255, n.b - u((-e / 100) * 255)))), + d(n) + ); + } + function w(t, e) { + e = 0 === e ? 0 : e || 10; + var n = d(t).toHsl(); + return (n.l -= e / 100), (n.l = D(n.l)), d(n); + } + function S(t, e) { + var n = d(t).toHsl(), + r = (n.h + e) % 360; + return (n.h = r < 0 ? 360 + r : r), d(n); + } + function E(t) { + var e = d(t).toHsl(); + return (e.h = (e.h + 180) % 360), d(e); + } + function k(t) { + var e = d(t).toHsl(), + n = e.h; + return [ + d(t), + d({ h: (n + 120) % 360, s: e.s, l: e.l }), + d({ h: (n + 240) % 360, s: e.s, l: e.l }) + ]; + } + function A(t) { + var e = d(t).toHsl(), + n = e.h; + return [ + d(t), + d({ h: (n + 90) % 360, s: e.s, l: e.l }), + d({ h: (n + 180) % 360, s: e.s, l: e.l }), + d({ h: (n + 270) % 360, s: e.s, l: e.l }) + ]; + } + function T(t) { + var e = d(t).toHsl(), + n = e.h; + return [ + d(t), + d({ h: (n + 72) % 360, s: e.s, l: e.l }), + d({ h: (n + 216) % 360, s: e.s, l: e.l }) + ]; + } + function C(t, e, n) { + (e = e || 6), (n = n || 30); + var r = d(t).toHsl(), + i = 360 / n, + o = [d(t)]; + for (r.h = (r.h - ((i * e) >> 1) + 720) % 360; --e; ) + (r.h = (r.h + i) % 360), o.push(d(r)); + return o; + } + function O(t, e) { + e = e || 6; + for ( + var n = d(t).toHsv(), + r = n.h, + i = n.s, + o = n.v, + a = [], + s = 1 / e; + e--; + + ) + a.push(d({ h: r, s: i, v: o })), (o = (o + s) % 1); + return a; + } + (d.prototype = { + isDark: function() { + return this.getBrightness() < 128; + }, + isLight: function() { + return !this.isDark(); + }, + isValid: function() { + return this._ok; + }, + getOriginalInput: function() { + return this._originalInput; + }, + getFormat: function() { + return this._format; + }, + getAlpha: function() { + return this._a; + }, + getBrightness: function() { + var t = this.toRgb(); + return (299 * t.r + 587 * t.g + 114 * t.b) / 1e3; + }, + getLuminance: function() { + var t, + e, + n, + r = this.toRgb(); + return ( + (t = r.r / 255), + (e = r.g / 255), + (n = r.b / 255), + 0.2126 * + (t <= 0.03928 + ? t / 12.92 + : i.pow((t + 0.055) / 1.055, 2.4)) + + 0.7152 * + (e <= 0.03928 + ? e / 12.92 + : i.pow((e + 0.055) / 1.055, 2.4)) + + 0.0722 * + (n <= 0.03928 + ? n / 12.92 + : i.pow((n + 0.055) / 1.055, 2.4)) + ); + }, + setAlpha: function(t) { + return ( + (this._a = L(t)), + (this._roundA = u(100 * this._a) / 100), + this + ); + }, + toHsv: function() { + var t = p(this._r, this._g, this._b); + return { h: 360 * t.h, s: t.s, v: t.v, a: this._a }; + }, + toHsvString: function() { + var t = p(this._r, this._g, this._b), + e = u(360 * t.h), + n = u(100 * t.s), + r = u(100 * t.v); + return 1 == this._a + ? 'hsv(' + e + ', ' + n + '%, ' + r + '%)' + : 'hsva(' + + e + + ', ' + + n + + '%, ' + + r + + '%, ' + + this._roundA + + ')'; + }, + toHsl: function() { + var t = h(this._r, this._g, this._b); + return { h: 360 * t.h, s: t.s, l: t.l, a: this._a }; + }, + toHslString: function() { + var t = h(this._r, this._g, this._b), + e = u(360 * t.h), + n = u(100 * t.s), + r = u(100 * t.l); + return 1 == this._a + ? 'hsl(' + e + ', ' + n + '%, ' + r + '%)' + : 'hsla(' + + e + + ', ' + + n + + '%, ' + + r + + '%, ' + + this._roundA + + ')'; + }, + toHex: function(t) { + return g(this._r, this._g, this._b, t); + }, + toHexString: function(t) { + return '#' + this.toHex(t); + }, + toHex8: function(t) { + return (function(t, e, n, r, i) { + var o = [ + z(u(t).toString(16)), + z(u(e).toString(16)), + z(u(n).toString(16)), + z(I(r)) + ]; + return i && + o[0].charAt(0) == o[0].charAt(1) && + o[1].charAt(0) == o[1].charAt(1) && + o[2].charAt(0) == o[2].charAt(1) && + o[3].charAt(0) == o[3].charAt(1) + ? o[0].charAt(0) + + o[1].charAt(0) + + o[2].charAt(0) + + o[3].charAt(0) + : o.join(''); + })(this._r, this._g, this._b, this._a, t); + }, + toHex8String: function(t) { + return '#' + this.toHex8(t); + }, + toRgb: function() { + return { + r: u(this._r), + g: u(this._g), + b: u(this._b), + a: this._a + }; + }, + toRgbString: function() { + return 1 == this._a + ? 'rgb(' + + u(this._r) + + ', ' + + u(this._g) + + ', ' + + u(this._b) + + ')' + : 'rgba(' + + u(this._r) + + ', ' + + u(this._g) + + ', ' + + u(this._b) + + ', ' + + this._roundA + + ')'; + }, + toPercentageRgb: function() { + return { + r: u(100 * j(this._r, 255)) + '%', + g: u(100 * j(this._g, 255)) + '%', + b: u(100 * j(this._b, 255)) + '%', + a: this._a + }; + }, + toPercentageRgbString: function() { + return 1 == this._a + ? 'rgb(' + + u(100 * j(this._r, 255)) + + '%, ' + + u(100 * j(this._g, 255)) + + '%, ' + + u(100 * j(this._b, 255)) + + '%)' + : 'rgba(' + + u(100 * j(this._r, 255)) + + '%, ' + + u(100 * j(this._g, 255)) + + '%, ' + + u(100 * j(this._b, 255)) + + '%, ' + + this._roundA + + ')'; + }, + toName: function() { + return 0 === this._a + ? 'transparent' + : !(this._a < 1) && + (M[g(this._r, this._g, this._b, !0)] || !1); + }, + toFilter: function(t) { + var e = '#' + m(this._r, this._g, this._b, this._a), + n = e, + r = this._gradientType ? 'GradientType = 1, ' : ''; + if (t) { + var i = d(t); + n = '#' + m(i._r, i._g, i._b, i._a); + } + return ( + 'progid:DXImageTransform.Microsoft.gradient(' + + r + + 'startColorstr=' + + e + + ',endColorstr=' + + n + + ')' + ); + }, + toString: function(t) { + var e = !!t; + t = t || this._format; + var n = !1, + r = this._a < 1 && this._a >= 0; + return e || + !r || + ('hex' !== t && + 'hex6' !== t && + 'hex3' !== t && + 'hex4' !== t && + 'hex8' !== t && + 'name' !== t) + ? ('rgb' === t && (n = this.toRgbString()), + 'prgb' === t && (n = this.toPercentageRgbString()), + ('hex' !== t && 'hex6' !== t) || + (n = this.toHexString()), + 'hex3' === t && (n = this.toHexString(!0)), + 'hex4' === t && (n = this.toHex8String(!0)), + 'hex8' === t && (n = this.toHex8String()), + 'name' === t && (n = this.toName()), + 'hsl' === t && (n = this.toHslString()), + 'hsv' === t && (n = this.toHsvString()), + n || this.toHexString()) + : 'name' === t && 0 === this._a + ? this.toName() + : this.toRgbString(); + }, + clone: function() { + return d(this.toString()); + }, + _applyModification: function(t, e) { + var n = t.apply(null, [this].concat([].slice.call(e))); + return ( + (this._r = n._r), + (this._g = n._g), + (this._b = n._b), + this.setAlpha(n._a), + this + ); + }, + lighten: function() { + return this._applyModification(_, arguments); + }, + brighten: function() { + return this._applyModification(x, arguments); + }, + darken: function() { + return this._applyModification(w, arguments); + }, + desaturate: function() { + return this._applyModification(v, arguments); + }, + saturate: function() { + return this._applyModification(y, arguments); + }, + greyscale: function() { + return this._applyModification(b, arguments); + }, + spin: function() { + return this._applyModification(S, arguments); + }, + _applyCombination: function(t, e) { + return t.apply(null, [this].concat([].slice.call(e))); + }, + analogous: function() { + return this._applyCombination(C, arguments); + }, + complement: function() { + return this._applyCombination(E, arguments); + }, + monochromatic: function() { + return this._applyCombination(O, arguments); + }, + splitcomplement: function() { + return this._applyCombination(T, arguments); + }, + triad: function() { + return this._applyCombination(k, arguments); + }, + tetrad: function() { + return this._applyCombination(A, arguments); + } + }), + (d.fromRatio = function(t, e) { + if ('object' == typeof t) { + var n = {}; + for (var r in t) + t.hasOwnProperty(r) && + (n[r] = 'a' === r ? t[r] : N(t[r])); + t = n; + } + return d(t, e); + }), + (d.equals = function(t, e) { + return ( + !(!t || !e) && d(t).toRgbString() == d(e).toRgbString() + ); + }), + (d.random = function() { + return d.fromRatio({ r: f(), g: f(), b: f() }); + }), + (d.mix = function(t, e, n) { + n = 0 === n ? 0 : n || 50; + var r = d(t).toRgb(), + i = d(e).toRgb(), + o = n / 100; + return d({ + r: (i.r - r.r) * o + r.r, + g: (i.g - r.g) * o + r.g, + b: (i.b - r.b) * o + r.b, + a: (i.a - r.a) * o + r.a + }); + }), + (d.readability = function(t, e) { + var n = d(t), + r = d(e); + return ( + (i.max(n.getLuminance(), r.getLuminance()) + 0.05) / + (i.min(n.getLuminance(), r.getLuminance()) + 0.05) + ); + }), + (d.isReadable = function(t, e, n) { + var r, + i, + o = d.readability(t, e); + switch ( + ((i = !1), + (r = (function(t) { + var e, n; + return ( + 'AA' !== + (e = ( + (t = t || { level: 'AA', size: 'small' }).level || + 'AA' + ).toUpperCase()) && + 'AAA' !== e && + (e = 'AA'), + 'small' !== (n = (t.size || 'small').toLowerCase()) && + 'large' !== n && + (n = 'small'), + { level: e, size: n } ); - }; - var i = E(n(10)), - o = n(0), - a = (n(5), n(15)), - s = E(n(11)), - u = E(n(34)), - l = E(n(35)), - c = E(n(36)), - f = E(n(37)), - d = n(38), - h = E(n(39)), - p = E(n(43)), - g = E(n(44)), - v = E(n(45)), - m = E(n(46)), - y = E(n(47)), - b = E(n(48)), - _ = E(n(49)), - x = E(n(50)), - w = E(n(51)), - S = E(n(52)); - function E(t) { - return t && t.__esModule ? t : { default: t }; + })(n)).level + r.size) + ) { + case 'AAsmall': + case 'AAAlarge': + i = o >= 4.5; + break; + case 'AAlarge': + i = o >= 3; + break; + case 'AAAsmall': + i = o >= 7; + } + return i; + }), + (d.mostReadable = function(t, e, n) { + var r, + i, + o, + a, + s = null, + u = 0; + (i = (n = n || {}).includeFallbackColors), + (o = n.level), + (a = n.size); + for (var l = 0; l < e.length; l++) + (r = d.readability(t, e[l])) > u && + ((u = r), (s = d(e[l]))); + return d.isReadable(t, s, { level: o, size: a }) || !i + ? s + : ((n.includeFallbackColors = !1), + d.mostReadable(t, ['#fff', '#000'], n)); + }); + var P = (d.names = { + aliceblue: 'f0f8ff', + antiquewhite: 'faebd7', + aqua: '0ff', + aquamarine: '7fffd4', + azure: 'f0ffff', + beige: 'f5f5dc', + bisque: 'ffe4c4', + black: '000', + blanchedalmond: 'ffebcd', + blue: '00f', + blueviolet: '8a2be2', + brown: 'a52a2a', + burlywood: 'deb887', + burntsienna: 'ea7e5d', + cadetblue: '5f9ea0', + chartreuse: '7fff00', + chocolate: 'd2691e', + coral: 'ff7f50', + cornflowerblue: '6495ed', + cornsilk: 'fff8dc', + crimson: 'dc143c', + cyan: '0ff', + darkblue: '00008b', + darkcyan: '008b8b', + darkgoldenrod: 'b8860b', + darkgray: 'a9a9a9', + darkgreen: '006400', + darkgrey: 'a9a9a9', + darkkhaki: 'bdb76b', + darkmagenta: '8b008b', + darkolivegreen: '556b2f', + darkorange: 'ff8c00', + darkorchid: '9932cc', + darkred: '8b0000', + darksalmon: 'e9967a', + darkseagreen: '8fbc8f', + darkslateblue: '483d8b', + darkslategray: '2f4f4f', + darkslategrey: '2f4f4f', + darkturquoise: '00ced1', + darkviolet: '9400d3', + deeppink: 'ff1493', + deepskyblue: '00bfff', + dimgray: '696969', + dimgrey: '696969', + dodgerblue: '1e90ff', + firebrick: 'b22222', + floralwhite: 'fffaf0', + forestgreen: '228b22', + fuchsia: 'f0f', + gainsboro: 'dcdcdc', + ghostwhite: 'f8f8ff', + gold: 'ffd700', + goldenrod: 'daa520', + gray: '808080', + green: '008000', + greenyellow: 'adff2f', + grey: '808080', + honeydew: 'f0fff0', + hotpink: 'ff69b4', + indianred: 'cd5c5c', + indigo: '4b0082', + ivory: 'fffff0', + khaki: 'f0e68c', + lavender: 'e6e6fa', + lavenderblush: 'fff0f5', + lawngreen: '7cfc00', + lemonchiffon: 'fffacd', + lightblue: 'add8e6', + lightcoral: 'f08080', + lightcyan: 'e0ffff', + lightgoldenrodyellow: 'fafad2', + lightgray: 'd3d3d3', + lightgreen: '90ee90', + lightgrey: 'd3d3d3', + lightpink: 'ffb6c1', + lightsalmon: 'ffa07a', + lightseagreen: '20b2aa', + lightskyblue: '87cefa', + lightslategray: '789', + lightslategrey: '789', + lightsteelblue: 'b0c4de', + lightyellow: 'ffffe0', + lime: '0f0', + limegreen: '32cd32', + linen: 'faf0e6', + magenta: 'f0f', + maroon: '800000', + mediumaquamarine: '66cdaa', + mediumblue: '0000cd', + mediumorchid: 'ba55d3', + mediumpurple: '9370db', + mediumseagreen: '3cb371', + mediumslateblue: '7b68ee', + mediumspringgreen: '00fa9a', + mediumturquoise: '48d1cc', + mediumvioletred: 'c71585', + midnightblue: '191970', + mintcream: 'f5fffa', + mistyrose: 'ffe4e1', + moccasin: 'ffe4b5', + navajowhite: 'ffdead', + navy: '000080', + oldlace: 'fdf5e6', + olive: '808000', + olivedrab: '6b8e23', + orange: 'ffa500', + orangered: 'ff4500', + orchid: 'da70d6', + palegoldenrod: 'eee8aa', + palegreen: '98fb98', + paleturquoise: 'afeeee', + palevioletred: 'db7093', + papayawhip: 'ffefd5', + peachpuff: 'ffdab9', + peru: 'cd853f', + pink: 'ffc0cb', + plum: 'dda0dd', + powderblue: 'b0e0e6', + purple: '800080', + rebeccapurple: '663399', + red: 'f00', + rosybrown: 'bc8f8f', + royalblue: '4169e1', + saddlebrown: '8b4513', + salmon: 'fa8072', + sandybrown: 'f4a460', + seagreen: '2e8b57', + seashell: 'fff5ee', + sienna: 'a0522d', + silver: 'c0c0c0', + skyblue: '87ceeb', + slateblue: '6a5acd', + slategray: '708090', + slategrey: '708090', + snow: 'fffafa', + springgreen: '00ff7f', + steelblue: '4682b4', + tan: 'd2b48c', + teal: '008080', + thistle: 'd8bfd8', + tomato: 'ff6347', + turquoise: '40e0d0', + violet: 'ee82ee', + wheat: 'f5deb3', + white: 'fff', + whitesmoke: 'f5f5f5', + yellow: 'ff0', + yellowgreen: '9acd32' + }), + M = (d.hexNames = (function(t) { + var e = {}; + for (var n in t) t.hasOwnProperty(n) && (e[t[n]] = n); + return e; + })(P)); + function L(t) { + return ( + (t = parseFloat(t)), + (isNaN(t) || t < 0 || t > 1) && (t = 1), + t + ); + } + function j(t, e) { + (function(t) { + return ( + 'string' == typeof t && + -1 != t.indexOf('.') && + 1 === parseFloat(t) + ); + })(t) && (t = '100%'); + var n = (function(t) { + return 'string' == typeof t && -1 != t.indexOf('%'); + })(t); + return ( + (t = l(e, c(0, parseFloat(t)))), + n && (t = parseInt(t * e, 10) / 100), + i.abs(t - e) < 1e-6 ? 1 : (t % e) / parseFloat(e) + ); + } + function D(t) { + return l(1, c(0, t)); + } + function R(t) { + return parseInt(t, 16); + } + function z(t) { + return 1 == t.length ? '0' + t : '' + t; + } + function N(t) { + return t <= 1 && (t = 100 * t + '%'), t; + } + function I(t) { + return i.round(255 * parseFloat(t)).toString(16); + } + function F(t) { + return R(t) / 255; + } + var V, + B, + G, + H = + ((B = + '[\\s|\\(]+(' + + (V = '(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)') + + ')[,|\\s]+(' + + V + + ')[,|\\s]+(' + + V + + ')\\s*\\)?'), + (G = + '[\\s|\\(]+(' + + V + + ')[,|\\s]+(' + + V + + ')[,|\\s]+(' + + V + + ')[,|\\s]+(' + + V + + ')\\s*\\)?'), + { + CSS_UNIT: new RegExp(V), + rgb: new RegExp('rgb' + B), + rgba: new RegExp('rgba' + G), + hsl: new RegExp('hsl' + B), + hsla: new RegExp('hsla' + G), + hsv: new RegExp('hsv' + B), + hsva: new RegExp('hsva' + G), + hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, + hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ + }); + function U(t) { + return !!H.CSS_UNIT.exec(t); + } + t.exports + ? (t.exports = d) + : void 0 === + (r = function() { + return d; + }.call(e, n, e, t)) || (t.exports = r); + })(Math); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.Swatch = void 0); + var r = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }, + i = u(n(0)), + o = u(n(9)), + a = n(228), + s = u(n(53)); + function u(t) { + return t && t.__esModule ? t : { default: t }; + } + var l = (e.Swatch = function(t) { + var e = t.color, + n = t.style, + a = t.onClick, + u = void 0 === a ? function() {} : a, + l = t.onHover, + c = t.title, + f = void 0 === c ? e : c, + d = t.children, + h = t.focus, + p = t.focusStyle, + g = void 0 === p ? {} : p, + m = 'transparent' === e, + v = (0, o.default)({ + default: { + swatch: r( + { + background: e, + height: '100%', + width: '100%', + cursor: 'pointer', + position: 'relative', + outline: 'none' + }, + n, + h ? g : {} + ) + } + }), + y = {}; + return ( + l && + (y.onMouseOver = function(t) { + return l(e, t); + }), + i.default.createElement( + 'div', + r( + { + style: v.swatch, + onClick: function(t) { + return u(e, t); + }, + title: f, + tabIndex: 0, + onKeyDown: function(t) { + return 13 === t.keyCode && u(e, t); + } + }, + y + ), + d, + m && + i.default.createElement(s.default, { + borderRadius: v.swatch.borderRadius, + boxShadow: 'inset 0 0 0 1px rgba(0,0,0,0.1)' + }) + ) + ); + }); + e.default = (0, a.handleFocus)(l); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.handleFocus = void 0); + var r, + i = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }, + o = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + a = (r = n(0)) && r.__esModule ? r : { default: r }; + function s(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + } + function u(t, e) { + if (!t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !e || ('object' != typeof e && 'function' != typeof e) + ? t + : e; + } + function l(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof e + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { + value: t, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + e && + (Object.setPrototypeOf + ? Object.setPrototypeOf(t, e) + : (t.__proto__ = e)); + } + e.handleFocus = function(t) { + var e = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : 'span'; + return (function(n) { + function r() { + var t, e, n; + s(this, r); + for ( + var i = arguments.length, o = Array(i), a = 0; + a < i; + a++ + ) + o[a] = arguments[a]; + return ( + (e = n = u( + this, + (t = + r.__proto__ || Object.getPrototypeOf(r)).call.apply( + t, + [this].concat(o) + ) + )), + (n.state = { focus: !1 }), + (n.handleFocus = function() { + return n.setState({ focus: !0 }); + }), + (n.handleBlur = function() { + return n.setState({ focus: !1 }); + }), + u(n, e) + ); + } + return ( + l(r, n), + o(r, [ + { + key: 'render', + value: function() { + return a.default.createElement( + e, + { + onFocus: this.handleFocus, + onBlur: this.handleBlur + }, + a.default.createElement( + t, + i({}, this.props, this.state) + ) + ); + } + } + ]), + r + ); + })(a.default.Component); + }; + }, + function(t, e, n) { + var r = n(230); + 'string' == typeof r && (r = [[t.i, r, '']]), + n(33)(r, { hmr: !0, transform: void 0, insertInto: void 0 }), + r.locals && (t.exports = r.locals); + }, + function(t, e, n) { + (t.exports = n(32)(!1)).push([ + t.i, + '/**\n * GitHub Gist Theme\n * Author : Louis Barranqueiro - https://github.com/LouisBarranqueiro\n */\n\n.hljs {\n display: block;\n background: white;\n padding: 0.5em;\n color: #333333;\n overflow-x: auto;\n}\n\n.hljs-comment,\n.hljs-meta {\n color: #969896;\n}\n\n.hljs-string,\n.hljs-variable,\n.hljs-template-variable,\n.hljs-strong,\n.hljs-emphasis,\n.hljs-quote {\n color: #df5000;\n}\n\n.hljs-keyword,\n.hljs-selector-tag,\n.hljs-type {\n color: #a71d5d;\n}\n\n.hljs-literal,\n.hljs-symbol,\n.hljs-bullet,\n.hljs-attribute {\n color: #0086b3;\n}\n\n.hljs-section,\n.hljs-name {\n color: #63a35c;\n}\n\n.hljs-tag {\n color: #333333;\n}\n\n.hljs-title,\n.hljs-attr,\n.hljs-selector-id,\n.hljs-selector-class,\n.hljs-selector-attr,\n.hljs-selector-pseudo {\n color: #795da3;\n}\n\n.hljs-addition {\n color: #55a532;\n background-color: #eaffea;\n}\n\n.hljs-deletion {\n color: #bd2c00;\n background-color: #ffecec;\n}\n\n.hljs-link {\n text-decoration: underline;\n}\n', + '' + ]); + }, + function(t, e) { + t.exports = function(t) { + var e = 'undefined' != typeof window && window.location; + if (!e) throw new Error('fixUrls requires window.location'); + if (!t || 'string' != typeof t) return t; + var n = e.protocol + '//' + e.host, + r = n + e.pathname.replace(/\/[^\/]*$/, '/'); + return t.replace( + /url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, + function(t, e) { + var i, + o = e + .trim() + .replace(/^"(.*)"$/, function(t, e) { + return e; + }) + .replace(/^'(.*)'$/, function(t, e) { + return e; + }); + return /^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test( + o + ) + ? t + : ((i = + 0 === o.indexOf('//') + ? o + : 0 === o.indexOf('/') + ? n + o + : r + o.replace(/^\.\//, '')), + 'url('https://github.com/+%20JSON.stringify(i) + ')'); + } + ); + }; + }, + function(t, e, n) { + var r = n(233); + 'string' == typeof r && (r = [[t.i, r, '']]), + n(33)(r, { hmr: !0, transform: void 0, insertInto: void 0 }), + r.locals && (t.exports = r.locals); + }, + function(t, e, n) { + (t.exports = n(32)(!1)).push([ + t.i, + '.react-tabs {\n -webkit-tap-highlight-color: transparent;\n}\n\n.react-tabs__tab-list {\n border-bottom: 1px solid #aaa;\n margin: 0 0 10px;\n padding: 0;\n}\n\n.react-tabs__tab {\n display: inline-block;\n border: 1px solid transparent;\n border-bottom: none;\n bottom: -1px;\n position: relative;\n list-style: none;\n padding: 6px 12px;\n cursor: pointer;\n}\n\n.react-tabs__tab--selected {\n background: #fff;\n border-color: #aaa;\n color: black;\n border-radius: 5px 5px 0 0;\n}\n\n.react-tabs__tab--disabled {\n color: GrayText;\n cursor: default;\n}\n\n.react-tabs__tab:focus {\n -webkit-box-shadow: 0 0 5px hsl(208, 99%, 50%);\n box-shadow: 0 0 5px hsl(208, 99%, 50%);\n border-color: hsl(208, 99%, 50%);\n outline: none;\n}\n\n.react-tabs__tab:focus:after {\n content: "";\n position: absolute;\n height: 5px;\n left: -4px;\n right: -4px;\n bottom: -5px;\n background: #fff;\n}\n\n.react-tabs__tab-panel {\n display: none;\n}\n\n.react-tabs__tab-panel--selected {\n display: block;\n}\n', + '' + ]); + }, + function(t, e, n) { + var r = n(235); + 'string' == typeof r && (r = [[t.i, r, '']]), + n(33)(r, { hmr: !0, transform: void 0, insertInto: void 0 }), + r.locals && (t.exports = r.locals); + }, + function(t, e, n) { + (t.exports = n(32)(!1)).push([ + t.i, + "/*-- Chart --*/\n.c3 svg {\n font: 10px sans-serif;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n\n.c3 path, .c3 line {\n fill: none;\n stroke: #000;\n}\n\n.c3 text {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.c3-legend-item-tile,\n.c3-xgrid-focus,\n.c3-ygrid,\n.c3-event-rect,\n.c3-bars path {\n shape-rendering: crispEdges;\n}\n\n.c3-chart-arc path {\n stroke: #fff;\n}\n\n.c3-chart-arc rect {\n stroke: white;\n stroke-width: 1;\n}\n\n.c3-chart-arc text {\n fill: #fff;\n font-size: 13px;\n}\n\n/*-- Axis --*/\n/*-- Grid --*/\n.c3-grid line {\n stroke: #aaa;\n}\n\n.c3-grid text {\n fill: #aaa;\n}\n\n.c3-xgrid, .c3-ygrid {\n stroke-dasharray: 3 3;\n}\n\n/*-- Text on Chart --*/\n.c3-text.c3-empty {\n fill: #808080;\n font-size: 2em;\n}\n\n/*-- Line --*/\n.c3-line {\n stroke-width: 1px;\n}\n\n/*-- Point --*/\n.c3-circle._expanded_ {\n stroke-width: 1px;\n stroke: white;\n}\n\n.c3-selected-circle {\n fill: white;\n stroke-width: 2px;\n}\n\n/*-- Bar --*/\n.c3-bar {\n stroke-width: 0;\n}\n\n.c3-bar._expanded_ {\n fill-opacity: 1;\n fill-opacity: 0.75;\n}\n\n/*-- Focus --*/\n.c3-target.c3-focused {\n opacity: 1;\n}\n\n.c3-target.c3-focused path.c3-line, .c3-target.c3-focused path.c3-step {\n stroke-width: 2px;\n}\n\n.c3-target.c3-defocused {\n opacity: 0.3 !important;\n}\n\n/*-- Region --*/\n.c3-region {\n fill: steelblue;\n fill-opacity: 0.1;\n}\n\n/*-- Brush --*/\n.c3-brush .extent {\n fill-opacity: 0.1;\n}\n\n/*-- Select - Drag --*/\n/*-- Legend --*/\n.c3-legend-item {\n font-size: 12px;\n}\n\n.c3-legend-item-hidden {\n opacity: 0.15;\n}\n\n.c3-legend-background {\n opacity: 0.75;\n fill: white;\n stroke: lightgray;\n stroke-width: 1;\n}\n\n/*-- Title --*/\n.c3-title {\n font: 14px sans-serif;\n}\n\n/*-- Tooltip --*/\n.c3-tooltip-container {\n z-index: 10;\n}\n\n.c3-tooltip {\n border-collapse: collapse;\n border-spacing: 0;\n background-color: #fff;\n empty-cells: show;\n -webkit-box-shadow: 7px 7px 12px -9px #777777;\n box-shadow: 7px 7px 12px -9px #777777;\n opacity: 0.9;\n}\n\n.c3-tooltip tr {\n border: 1px solid #CCC;\n}\n\n.c3-tooltip th {\n background-color: #aaa;\n font-size: 14px;\n padding: 2px 5px;\n text-align: left;\n color: #FFF;\n}\n\n.c3-tooltip td {\n font-size: 13px;\n padding: 3px 6px;\n background-color: #fff;\n border-left: 1px dotted #999;\n}\n\n.c3-tooltip td > span {\n display: inline-block;\n width: 10px;\n height: 10px;\n margin-right: 6px;\n}\n\n.c3-tooltip .value {\n text-align: right;\n}\n\n/*-- Area --*/\n.c3-area {\n stroke-width: 0;\n opacity: 0.2;\n}\n\n/*-- Arc --*/\n.c3-chart-arcs-title {\n dominant-baseline: middle;\n font-size: 1.3em;\n}\n\n.c3-chart-arcs .c3-chart-arcs-background {\n fill: #e0e0e0;\n stroke: #FFF;\n}\n\n.c3-chart-arcs .c3-chart-arcs-gauge-unit {\n fill: #000;\n font-size: 16px;\n}\n\n.c3-chart-arcs .c3-chart-arcs-gauge-max {\n fill: #777;\n}\n\n.c3-chart-arcs .c3-chart-arcs-gauge-min {\n fill: #777;\n}\n\n.c3-chart-arc .c3-gauge-value {\n fill: #000;\n /* font-size: 28px !important;*/\n}\n\n.c3-chart-arc.c3-target g path {\n opacity: 1;\n}\n\n.c3-chart-arc.c3-target.c3-focused g path {\n opacity: 1;\n}\n\n/*-- Zoom --*/\n.c3-drag-zoom.enabled {\n pointer-events: all !important;\n visibility: visible;\n}\n\n.c3-drag-zoom.disabled {\n pointer-events: none !important;\n visibility: hidden;\n}\n\n.c3-drag-zoom .extent {\n fill-opacity: 0.1;\n}\n/*\r\n Rangeable\r\n Copyright (c) 2018 Karl Saunders\r\n Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)\r\n and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.\r\n\r\n Version: 0.1.6\r\n\r\n*/\n.rangeable-container.combined-tooltip.dragging .rangeable-progress>.rangeable-tooltip,.rangeable-container.combined-tooltip.rangeable-tooltips--visible .rangeable-progress>.rangeable-tooltip,.rangeable-container.dragging.rangeable-tooltips .rangeable-handle .rangeable-tooltip,.rangeable-container.rangeable-tooltips--visible.rangeable-tooltips .rangeable-handle .rangeable-tooltip,.rangeable-container.rangeable-vertical.combined-tooltip .rangeable-progress>.rangeable-tooltip::before{display:block}\n.rangeable-container{cursor:pointer;width:100%}\n.rangeable-container.rangeable-disabled{opacity:.6;cursor:not-allowed}\n.rangeable-container.rangeable-multiple.combined-tooltip .rangeable-handle .rangeable-tooltip,.rangeable-container.rangeable-vertical.combined-tooltip .rangeable-handle .rangeable-tooltip{opacity:0}\n.rangeable-container.focus .rangeable-handle{border:1px solid #74b9ff}\n.rangeable-container.rangeable-multiple .rangeable-handle:nth-child(1){left:0;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}\n.rangeable-container.rangeable-multiple .rangeable-handle:nth-child(2){right:0}\n.rangeable-container.rangeable-vertical{height:100%;width:auto}\n.rangeable-container.rangeable-vertical .rangeable-track{width:8px;height:100%}\n.rangeable-container.rangeable-vertical .rangeable-progress{width:8px;height:100%;top:auto;bottom:0;-webkit-transform-origin:0 100% 0;-ms-transform-origin:0 100% 0;transform-origin:0 100% 0}\n.rangeable-container.rangeable-vertical .rangeable-handle{right:auto;left:50%;top:0;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}\n.rangeable-container.rangeable-vertical .rangeable-tooltip{position:absolute;top:50%;left:calc(100% + 6px + 4px + 5px);right:auto;bottom:auto;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}\n.rangeable-container.rangeable-vertical .rangeable-tooltip::before{right:100%;left:auto;top:50%;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0);border-width:4px 4px 4px 0;border-color:transparent #3db13d transparent transparent}\n.rangeable-container.rangeable-vertical .rangeable-buffer{width:100%;height:0}\n.rangeable-container.rangeable-vertical.rangeable-multiple .rangeable-handle:nth-child(1){top:0;left:50%}\n.rangeable-container.rangeable-vertical.rangeable-multiple .rangeable-handle:nth-child(2){bottom:0;top:auto;-webkit-transform:translate3d(-50%,50%,0);transform:translate3d(-50%,50%,0)}\n.rangeable-input{position:absolute;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;margin:-1px;padding:0;border:0}\n.rangeable-input:focus+.rangeable-track .rangeable-handle::after{position:absolute;width:22px;height:22px;bottom:-6px;right:-6px;outline:#000 dotted 1px;content:\"\"}\n.rangeable-progress,.rangeable-track{height:8px;width:100%;border-radius:4px}\n.rangeable-track{background-color:#ccc;position:relative}\n.rangeable-progress{background-color:#3db13d;position:absolute;left:0;top:0;-webkit-transform-origin:0 0 0;-ms-transform-origin:0 0 0;transform-origin:0 0 0}\n.rangeable-progress>.rangeable-tooltip{display:none;z-index:11;top:auto;bottom:calc(100% + 7px + 9px);white-space:nowrap}\n.rangeable-handle{-webkit-box-sizing:border-box;box-sizing:border-box;width:22px;height:22px;border:6px solid #3db13d;border-radius:50%;background-color:#fff;position:absolute;top:50%;right:0;-webkit-transform:translate3d(50%,-50%,0);transform:translate3d(50%,-50%,0)}\n.rangeable-handle:focus{outline:0}\n.rangeable-handle:focus::after{position:absolute;width:22px;height:22px;bottom:-6px;right:-6px;outline:#000 dotted 1px;content:\"\"}\n.rangeable-handle.active{z-index:10}\n.rangeable-handle .rangeable-tooltip{display:none}\n.rangeable-tooltip{position:absolute;right:50%;bottom:calc(100% + 6px + 4px + 5px);-webkit-transform:translate3d(50%,0,0);transform:translate3d(50%,0,0);text-align:center;padding:2px 13px;background-color:#3db13d;border-radius:4px;font-weight:700;font-size:16px;color:#fff;font-family:Inconsolata,Consolas,Courier New,Lucida Console,sans-serif}\n.rangeable-tooltip::before{width:0;height:0;border-width:4px 4px 0;border-style:solid;border-color:#3db13d transparent transparent;position:absolute;left:50%;top:100%;-webkit-transform:translate3d(-50%,0,0);transform:translate3d(-50%,0,0);content:\"\"}\n.rangeable-buffers{position:absolute;left:0;top:0;height:100%;width:100%}\n.rangeable-buffer{position:absolute;background-color:rgba(0,0,0,.2);border-radius:4px;height:100%}\n/* WRAPPER */\n.keen-dataviz {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n font-family: 'Gotham Rounded SSm A', 'Gotham Rounded SSm B', 'Helvetica Neue', Helvetica, Arial, sans-serif;\n font-family: 'Gotham Rounded SSm A', 'Gotham Rounded SSm B', 'Helvetica Neue', Helvetica, Arial, sans-serif;\n height: 100%;\n}\n.keen-dataviz .partial-interval-indicator{\n fill: #bdbdbd;\n }\n.keen-dataviz .axis {\n shape-rendering: crispEdges\n }\n.keen-dataviz-title {\n color: #4D4D4D;\n color: #4D4D4D;\n padding-bottom: 0.8em;\n }\n.keen-dataviz-stage {\n display: block;\n }\n.keen-dataviz-notes {\n color: #808080;\n color: #808080;\n display: block;\n font-size: 0.8em;\n }\n.keen-dataviz-box {\n border-radius: 4px;\n text-align: center;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-flow: row;\n flex-flow: row;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-direction: column;\n flex-direction: column;\n padding: 1em 0;\n min-height: 4em;\n height: inherit;\n }\n.keen-dataviz-button {\n padding: 0.5rem 1rem;\n margin: 1rem 0;\n border-radius: 4px;\n background-color: #f9f9f9;\n border-color: #d6d6d6;\n cursor: pointer;\n -webkit-transition: background-color 300ms ease;\n -o-transition: background-color 300ms ease;\n transition: background-color 300ms ease\n }\n.keen-dataviz-button:hover {\n background-color: #E7E7E7;\n background-color: #E7E7E7;\n}\n.keen-dataviz .metric-comparison {\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n color: #1A1A1A;\n color: #1A1A1A;\n background: #f9f9f9;\n }\n/* METRIC */\n.keen-dataviz-metric {\n height: inherit;\n color: #FFFFFF;\n color: #FFFFFF;\n background: rgb(0, 187, 222);\n }\n.keen-dataviz-metric-value {\n font-size: 4.3em;\n font-weight: 700;\n width: 100%;\n }\n.keen-dataviz-metric-value-smaller {\n font-size: 3em;\n }\n.keen-dataviz-metric-title {\n font-size: 2em;\n font-weight: 200;\n width: 100%;\n }\n.keen-dataviz-metric-green {\n color: #73D483;\n color: #73D483;\n font-size: 2em;\n }\n.keen-dataviz-metric-red {\n color: #FE6672;\n color: #FE6672;\n font-size: 2em;\n }\n.keen-dataviz .arrow-green {\n width: 0;\n height: 0;\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n border-bottom: 8px solid #73D483;\n border-bottom: 8px solid #73D483;\n position: relative;\n top: 0.7em;\n left: -0.6em;\n }\n.keen-dataviz .arrow-red {\n width: 0;\n height: 0;\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n border-top: 8px solid #FE6672;\n border-top: 8px solid #FE6672;\n position: relative;\n top: 0.8em;\n left: -0.6em;\n }\n/* MESSAGE */\n.keen-dataviz-message {\n color: #808080;\n color: #808080;\n font-size: 1.5em;\n width:100%;\n }\n/* FUNNEL */\n.keen-dataviz .text-label {\n fill: #1A1A1A;\n fill: #1A1A1A;\n }\n.keen-dataviz .text-main {\n fill: #FFFFFF;\n fill: #FFFFFF;\n font-size: 1.5em;\n }\n.keen-dataviz .text-second {\n fill: #FFFFFF;\n fill: #FFFFFF;\n }\n.keen-dataviz .chart-lines {\n stroke: #E7E7E7;\n stroke: #E7E7E7;\n }\n/* METRIC COMBO */\n.keen-dataviz-metric-combo {\n width: 270px;\n height: 120px;\n position: relative;\n }\n.keen-dataviz-metric-combo .metric-combo-data {\n width: 100%;\n height: 100%;\n padding: 0.5rem;\n position: absolute;\n z-index: -1;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n }\n.keen-dataviz-metric-combo .c3-chart {\n height: 120px;\n }\n.keen-dataviz-metric-combo .c3-lines {\n display: none;\n }\n.keen-dataviz-metric-combo .keen-dataviz-title,\n .keen-dataviz-metric-combo .current-count {\n width: 100%;\n }\n.keen-dataviz-metric-combo .current-count {\n margin-top: auto;\n margin-bottom: auto;\n font-size: 2rem;\n text-align: center;\n }\n.keen-dataviz-metric-combo .percent-difference {\n position: absolute;\n top: 0.5rem;\n right: 0.5rem;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n font-size: 80%;\n }\n.keen-dataviz-metric-combo .arrow-green,\n .keen-dataviz-metric-combo .arrow-red {\n margin-right: 0.25rem;\n position: static;\n border-width: 5px;\n }\n/* TABLE */\n.keen-dataviz-table {\n border-bottom: 1px solid #E7E7E7;\n border-bottom: 1px solid #E7E7E7;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n overflow: scroll;\n position: relative;\n width: 100%;\n }\n.keen-dataviz-table table {\n background: #FFFFFF;\n background: #FFFFFF;\n border-collapse: collapse;\n margin: 0;\n position: relative;\n width: 100%;\n }\n.keen-dataviz-table table .table-pagination td {\n background-color: #FFFFFF;\n background-color: #FFFFFF;\n }\n.keen-dataviz-table table .table-pagination:hover td {\n background-color: #FFFFFF;\n background-color: #FFFFFF;\n }\n.keen-dataviz-table table .table-pagination a {\n border: 1px solid #E7E7E7;\n border: 1px solid #E7E7E7;\n padding: 0.5em;\n margin-right: 0.2em;\n cursor: pointer;\n }\n.keen-dataviz-table table .table-pagination .active{\n background: #4D4D4D;\n background: #4D4D4D;\n color: #FFFFFF;\n color: #FFFFFF;\n }\n.keen-dataviz-table table .table-pagination .arrow{\n font-weight:bold;\n }\n.keen-dataviz-table th{\n background: white;\n position: -webkit-sticky;\n position: sticky;\n top: 0;\n z-index: 10;\n cursor: pointer;\n }\n.keen-dataviz-table th,\n .keen-dataviz-table td {\n border-collapse: collapse;\n font-size: 1em;\n padding: 0.7em;\n text-align: left;\n white-space: nowrap;\n }\n.keen-dataviz-table th {\n border-bottom: 1px solid #E7E7E7;\n border-bottom: 1px solid #E7E7E7;\n color: #4D4D4D;\n color: #4D4D4D;\n }\n.keen-dataviz-table td {\n background-color: #FFFFFF;\n background-color: #FFFFFF;\n color: #4D4D4D;\n color: #4D4D4D;\n -webkit-transition: background-color 0.1s, color 0.05s;\n -o-transition: background-color 0.1s, color 0.05s;\n transition: background-color 0.1s, color 0.05s;\n }\n.keen-dataviz-table .table-data-row:nth-child(even) td{\n background-color: #F3F5F6;\n }\n.keen-dataviz-table .table-data-row:hover td{\n background-color: #E7E7E7;\n background-color: #E7E7E7;\n color: #4D4D4D;\n color: #4D4D4D;\n }\n.keen-dataviz-table .keen-dataviz-table-fixed-header {\n background: #FFFFFF;\n background: #FFFFFF;\n border-bottom: 1px solid rgba(0,0,0,.15);\n position: absolute;\n top: 0;\n -webkit-transition: top .1s;\n -o-transition: top .1s;\n transition: top .1s;\n }\n.keen-dataviz .keen-spinner-indicator {\n border-radius: 100%;\n border: 3px solid rgba(0, 0, 0, .1);\n border-top-color: rgba(0, 0, 0, .45);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n height: 3em;\n width: 3em;\n -webkit-animation:spin .7s linear infinite;\n animation:spin .7s linear infinite;\n -ms-animation: spin .7s linear infinite;\n -o-animation: spin .7s linear infinite;\n }\n.keen-dataviz-execution-meta {\n position: absolute;\n z-index: 999;\n padding: 0.5rem 1rem;\n margin: 0.75rem 0;\n display: inline-grid;\n grid-template-columns: repeat(2, -webkit-max-content);\n grid-template-columns: repeat(2, max-content);\n grid-gap: 0.5em 1em;\n text-transform: uppercase;\n font-size: 0.75rem;\n border: 1px solid #eee;\n background: #fff;\n }\n.keen-dataviz-execution-meta dt {\n font-weight: bold\n }\n.keen-dataviz-execution-meta dt:hover + dd {\n font-weight: bold;\n}\n.keen-dataviz-execution-meta dt, .keen-dataviz-execution-meta dd {\n margin: 0;\n cursor: pointer;\n }\n.keen-dataviz-execution-meta .copied:after {\n content: 'copied!';\n vertical-align: middle;\n display: inline-block;\n font-size: 10px;\n margin-left: 0.5em;\n position: absolute;\n text-transform: none;\n font-weight: normal;\n -webkit-animation: 1s ease 0s 1 both fadeOut;\n animation: 1s ease 0s 1 both fadeOut;\n}\n@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }\n@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }\n@-webkit-keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }\n@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }\n/* C3 CUSTOMIZATIONS */\n.keen-dataviz .c3-axis-y path {\n display: none;\n }\n.keen-dataviz .c3-axis-y .tick line{\n display: none;\n }\n.keen-dataviz .tick line, .keen-dataviz path.domain{\n stroke-opacity: 0.2;\n }\n.keen-dataviz .c3-ygrid{\n stroke-dasharray: none;\n stroke-opacity: 0.1;\n }\n.keen-dataviz .c3-ygrids :nth-child(even) {\n display: none;\n }\n.keen-dataviz .c3-tooltip {\n border: 1px solid rgba(0, 0, 0, 0.1);\n padding: 0.2em;\n border-radius: 0.2em;\n -webkit-box-shadow: none;\n box-shadow: none;\n border-collapse: separate;\n }\n.keen-dataviz .c3-tooltip th {\n text-align: center;\n }\n.keen-dataviz .c3-tooltip table, .keen-dataviz .c3-tooltip th, .keen-dataviz .c3-tooltip tr, .keen-dataviz .c3-tooltip td {\n border: none;\n background: none;\n font-size: 0.9em;\n }\n.keen-dataviz .c3-tooltip-container th {\n max-width: 50%;\n word-wrap: break-word;\n color: #1A1A1A;\n color: #1A1A1A;\n background: none;\n font-weight: normal;\n }\n.keen-dataviz .c3-tooltip-container td {\n max-width: 50%;\n word-wrap: break-word;\n }\n.keen-dataviz-rendering{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-flow: row;\n flex-flow: row;\n -ms-flex-pack: distribute;\n justify-content: space-around;\n }\n.keen-dataviz-rendering .c3-chart{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-item-align: center;\n align-self: center;\n -ms-flex-order: 1;\n order: 1;\n -ms-flex: 100%;\n flex: 100%;\n }\n.keen-dataviz-rendering .c3-chart-100-percent{\n width: 100%;\n -ms-flex-item-align: center;\n align-self: center;\n }\n.keen-dataviz-rendering-horizontal{\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n }\n/* CUSTOM LEGEND */\n.keen-c3-legend {\n display: -ms-flexbox;\n display: flex;\n position: relative;\n top: 0;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.keen-c3-legend-horizontal{\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-item-align: end;\n align-self: flex-end;\n display: -ms-flexbox;\n display: flex;\n flex-direction: row;\n -ms-flex-pack: center;\n justify-content: center;\n width: 100%;\n padding: 0.5em 0;\n }\n.keen-c3-legend-horizontal-pagination-left{\n -ms-flex-order: 0;\n order: 0;\n display: -ms-flexbox;\n display: flex;\n margin-right: 1.5em;\n }\n.keen-c3-legend-horizontal-items{\n -ms-flex-order: 1;\n order: 1;\n display: -ms-flexbox;\n display: flex;\n }\n.keen-c3-legend-horizontal-pagination-right{\n -ms-flex-order: 2;\n order: 2;\n display: -ms-flexbox;\n display: flex;\n margin-left: 1.5em;\n }\n.keen-c3-legend-top{\n -ms-flex-order: 0;\n order: 0;\n }\n.keen-c3-legend-bottom {\n -ms-flex-order: 2;\n order: 2;\n }\n.keen-c3-legend-bottom .keen-c3-legend-label-overlay{\n top: 0;\n margin-top: -2.7em;\n }\n.keen-c3-legend-bottom .keen-c3-legend-label-overlay .overlay-pointer {\n top: 2.4em;\n -webkit-transform: rotate(180deg);\n -ms-transform: rotate(180deg);\n transform: rotate(180deg);\n border-color: transparent transparent #f0f0f0 transparent;\n }\n.keen-c3-legend-vertical{\n -ms-flex-direction: column;\n flex-direction: column;\n }\n.keen-c3-legend-vertical .keen-c3-legend-pagination-icons\n {\n margin: 0.5em 0.1em;\n -ms-flex-order: 2;\n order: 2;\n }\n.keen-c3-legend-left{\n -ms-flex-order: 0;\n order: 0;\n }\n.keen-c3-legend-right{\n -ms-flex-order: 2;\n order: 2;\n }\n.keen-c3-legend-items{\n -ms-flex-order: 1;\n order: 1;\n }\n.keen-c3-legend-vertical-items{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n }\n.keen-c3-legend-vertical-items .legend-item{\n width: 8em;\n }\n.keen-c3-legend-horizontal-items{\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n }\n.keen-c3-legend-horizontal-items .legend-item{\n width: 6em;\n margin: 0 0.25em;\n }\n.keen-c3-legend .legend-item{\n display: -ms-flexbox;\n display: flex;\n cursor: pointer;\n padding: 0.2em;\n font-size: 0.8em;\n }\n.keen-c3-legend .legend-item > * {\n vertical-align: middle;\n }\n.keen-c3-legend .legend-item-color-sample{\n display: inline-block;\n width: 1em;\n height: 1em;\n margin-right: 0.5em;\n pointer-events: none;\n -ms-flex: none;\n flex: none;\n }\n.keen-c3-legend .legend-item-text{\n pointer-events: none;\n overflow: hidden;\n white-space: nowrap;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n text-align: left;\n }\n.keen-c3-legend-label-overlay .overlay-pointer {\n border-color: transparent transparent #FFFFFF transparent;\n border-color: transparent transparent #FFFFFF transparent;\n border-style: solid;\n border-width: 0 10px 10px 10px;\n height: 0;\n width: 0px;\n position: absolute;\n top: -10px;\n }\n.keen-c3-legend-position-left .overlay-pointer {\n left: 0px;\n }\n.keen-c3-legend-position-right .overlay-pointer {\n left: 0px;\n }\n.keen-c3-legend-pagination-vertical {\n margin-top: 0.5em;\n }\n.keen-c3-legend-pagination-icons {\n padding: 0.2em;\n }\n.keen-c3-legend-pagination-icons i {\n border-left: 1em solid transparent;\n border-right: 1em solid transparent;\n border-top: 1.5em solid #4D4D4D;\n border-top: 1.5em solid #4D4D4D;\n display: inline-block;\n padding: 0em;\n float: left;\n cursor: pointer;\n font-size: 0.5em;\n }\n.keen-c3-legend-pagination-icons .right {\n -ms-transform: rotate(-90deg);\n transform: rotate(-90deg);\n -webkit-transform: rotate(-90deg);\n }\n.keen-c3-legend-pagination-icons .left {\n -ms-transform: rotate(90deg);\n transform: rotate(90deg);\n -webkit-transform: rotate(90deg);\n }\n.keen-c3-legend-pagination-icons .up {\n -ms-transform: rotate(-180deg);\n transform: rotate(-180deg);\n -webkit-transform: rotate(-180deg);\n margin-top: 0.1em;\n }\n.keen-c3-legend-pagination-icons .down {\n margin-right: 1em;\n }\n.keen-c3-legend-label-overlay {\n font-size: 1em;\n background: rgba(255, 255, 255, 0.9);\n background: rgba(255, 255, 255, 0.9);\n -webkit-box-shadow: 0 1px 1px rgba(26, 26, 26, 0.09999999999999998);\n box-shadow: 0 1px 1px rgba(26, 26, 26, 0.09999999999999998);\n box-shadow: 0 1px 1px rgba(26, 26, 26, 0.09999999999999998);\n padding: 0.6em;\n margin-top: 1.5em;\n position: absolute;\n word-wrap: break-word;\n pointer-events: none;\n z-index: 222;\n }\n.keen-c3-legend-align-left {\n -ms-flex-pack: start;\n justify-content: flex-start;\n }\n.keen-c3-legend-align-left .keen-c3-legend-horizontal-items {\n -ms-flex-pack: start;\n justify-content: flex-start;\n margin-right: auto;\n }\n.keen-c3-legend-align-center {\n -ms-flex-pack: center;\n justify-content: center;\n }\n.keen-c3-legend-align-center .keen-c3-legend-horizontal-items {\n -ms-flex-pack: center;\n justify-content: center;\n margin-left: auto;\n margin-right: auto;\n }\n.keen-c3-legend-align-right {\n -ms-flex-pack: end;\n justify-content: flex-end;\n }\n.keen-c3-legend-align-right .keen-c3-legend-horizontal-items {\n -ms-flex-pack: end;\n justify-content: flex-end;\n margin-left: auto;\n }\n.keen-c3-legend-align-top {\n -ms-flex-pack: start;\n justify-content: flex-start;\n }\n.keen-c3-legend-align-middle {\n -ms-flex-pack: center;\n justify-content: center;\n }\n.keen-c3-legend-align-bottom {\n -ms-flex-pack: end;\n justify-content: flex-end;\n }\n.keen-dataviz-range .c3-area-Max {\n display: none;\n}\n.keen-dataviz-range .c3-bars-Max {\n display: none;\n}\n.keen-dataviz ~ .rangeable-container {\n margin: 2rem auto;\n width: 75%;\n}\n.keen-dataviz ~ .rangeable-container .rangeable-track,\n.keen-dataviz ~ .rangeable-container .rangeable-progress {\n height: 4px;\n}\n.keen-dataviz ~ .rangeable-container .rangeable-handle {\n width: 16px;\n height: 16px;\n border-width: 4px;\n}\n.keen-dataviz ~ .rangeable-container .rangeable-tooltip {\n border-radius: 0;\n font-weight: normal;\n padding: 3px 9px;\n}\n", + '' + ]); + }, + function(t, e, n) { + var r = n(237); + 'string' == typeof r && (r = [[t.i, r, '']]), + n(33)(r, { hmr: !0, transform: void 0, insertInto: void 0 }), + r.locals && (t.exports = r.locals); + }, + function(t, e, n) { + (e = t.exports = n(32)(!1)).push([ + t.i, + '@import url(https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap);', + '' + ]), + e.push([ + t.i, + "html {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n*,\n*:before,\n*:after {\n -webkit-box-sizing: inherit;\n box-sizing: inherit;\n}\n* {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.keen-theme-builder {\n padding: 15px;\n padding: 15px;\n display: grid;\n grid-gap: calc(2 * 15px);\n grid-gap: calc(2 * 15px);\n grid-template-columns: 100%;\n background-color: #F3F7F9;\n background-color: #F3F7F9;\n font-family: 'Montserrat', sans-serif;\n font-family: 'Montserrat', sans-serif;\n color: #000;\n color: #000;\n}\n@media (min-width: 960px) {\n .keen-theme-builder {\n grid-template-columns: 350px auto;\n }\n}\n.keen-theme-builder.no-mockup {\n grid-template-columns: 100%;\n}\n.keen-theme-builder__row {\n margin-bottom: 10px;\n margin-bottom: 10px;\n -ms-flex-align: end;\n align-items: end;\n -ms-flex-pack: center;\n justify-content: center;\n grid-column-gap: 10px;\n}\n.keen-theme-builder__row.two-elements {\n display: grid;\n grid-template-columns: 1fr 1fr;\n}\n.keen-theme-builder .builder__mockup {\n min-width: 0;\n }\n.keen-theme-builder .builder__config {\n background-color: #F3F7F9;\n background-color: #F3F7F9;\n }\n.keen-theme-builder .builder__editor {\n padding: 15px;\n padding: 15px;\n border: 1px solid #ccc;\n border: 1px solid #ccc;\n background-color: #fff;\n background-color: #fff;\n }\n.keen-theme-builder .builder__default-charts {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));\n grid-auto-rows: auto;\n grid-gap: 1rem;\n }\n.keen-theme-builder .builder__default-charts .keen-dataviz {\n height: 350px;\n min-width: 0;\n }\n.keen-theme-builder .section-title {\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n text-transform: uppercase;\n}\n.keen-theme-builder .control-title {\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n text-transform: uppercase;\n}\n.keen-theme-builder .section-title {\n font-weight: 700;\n}\n.keen-theme-builder .control-label {\n display: block;\n margin-bottom: 10px;\n margin-bottom: 10px;\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n}\n.keen-theme-builder .color-picker {\n position: relative;\n margin-bottom: 0.5rem;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.keen-theme-builder .color-picker__label {\n margin-bottom: 0.5rem;\n }\n.keen-theme-builder .color-picker__wrapper {\n padding: 0.5rem;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -ms-flex-align: center;\n align-items: center;\n border-radius: 3px;\n border: 1px solid #ccc;\n cursor: pointer;\n }\n.keen-theme-builder .color-picker__input {\n min-width: 0;\n border: none;\n outline: none;\n background: transparent;\n font-size: 1rem;\n line-height: 1;\n color: #aaa;\n cursor: pointer;\n }\n.keen-theme-builder .color-picker__trigger {\n width: 20px;\n height: 20px;\n margin-right: 1em;\n padding: 2px;\n border: 1px solid #ccc;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n -webkit-transition: all 300ms ease;\n -o-transition: all 300ms ease;\n transition: all 300ms ease\n }\n.keen-theme-builder .color-picker__trigger:hover {\n -webkit-transform: scale(1.15);\n -ms-transform: scale(1.15);\n transform: scale(1.15);\n}\n.keen-theme-builder .color-picker__popover {\n position: absolute;\n top: 0;\n left: 36px;\n z-index: 10;\n }\n.keen-theme-builder .color-picker__cover {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: -1;\n }\n.keen-theme-builder .btn {\n padding: 0.5rem 0.75rem;\n display: -ms-inline-flexbox;\n display: inline-flex;\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n color: #44B7DC;\n color: #44B7DC;\n background-color: #fff;\n background-color: #fff;\n border-radius: 4px;\n border-radius: 4px;\n border: 1px solid #ccc;\n border: 1px solid #ccc;\n cursor: pointer;\n -webkit-transition: background-color 250ms ease-in;\n -o-transition: background-color 250ms ease-in;\n transition: background-color 250ms ease-in;\n}\n.keen-theme-builder .btn:hover {\n background-color: #F3F7F9;\n background-color: #F3F7F9;\n}\n.keen-theme-builder .btn:focus {\n outline: none;\n}\n.keen-theme-builder .btn__small {\n font-size: 0.75rem;\n padding: 0.25rem 0.5rem;\n}\n.keen-theme-builder .keen-dataviz {\n min-height: 50vh;\n padding: 15px;\n padding: 15px;\n background-color: #fff;\n background-color: #fff;\n border: 1px solid #ccc;\n border: 1px solid #ccc;\n}\n.keen-theme-builder .keen-dataviz .c3-ygrid {\n stroke-opacity: 1;\n }\n.keen-theme-builder .keen-dataviz .c3-chart-lines .c3-circles {\n fill: currentColor;\n }\n.keen-theme-builder .keen-dataviz .keen-dataviz-metric {\n min-height: 50vh;\n }\n.keen-theme-builder .keen-dataviz > .keen-dataviz {\n background: transparent;\n border: none;\n padding: 0;\n height: 100%;\n font-size: 4.25rem;\n}\n.keen-theme-builder .disabled {\n pointer-events: none;\n opacity: 0.4;\n}\n.copy-to-clipboard {\n clip: rect(0 0 0 0);\n -webkit-clip-path: inset(100%);\n clip-path: inset(100%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n.keen-theme-builder .accordion__item__heading {\n padding: 10px 15px;\n margin-bottom: 5px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n font-size: 0.875rem;\n font-size: 0.875rem;\n font-weight: 400;\n line-height: 1;\n background-color: #fff;\n background-color: #fff;\n cursor: pointer;\n -webkit-box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.1);\n box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.1);\n -webkit-transition: background-color 250ms ease-in;\n -o-transition: background-color 250ms ease-in;\n transition: background-color 250ms ease-in\n }\n.keen-theme-builder .accordion__item__heading:hover {\n background-color: #D9EFFA;\n background-color: #D9EFFA;\n}\n.keen-theme-builder .accordion__item__heading .heading__icon {\n width: 1.125rem;\n margin-right: 0.875rem;\n fill-opacity: 0.35;\n -webkit-transition: -webkit-transform 0.15s ease-in-out;\n transition: -webkit-transform 0.15s ease-in-out;\n -o-transition: transform 0.15s ease-in-out;\n transition: transform 0.15s ease-in-out;\n transition: transform 0.15s ease-in-out, -webkit-transform 0.15s ease-in-out;\n}\n.keen-theme-builder .accordion__item__content {\n padding: 15px 15px 20px 15px;\n -webkit-animation: fadein 0.35s ease-in;\n animation: fadein 0.35s ease-in;\n }\n.keen-theme-builder .accordion__item.open .accordion__item__heading {\n background-color: #D9EFFA;\n background-color: #D9EFFA;\n font-weight: 700;\n}\n.keen-theme-builder .accordion__item.open .accordion__item__heading .heading__icon {\n -webkit-transform: rotate(90deg);\n -ms-transform: rotate(90deg);\n transform: rotate(90deg);\n }\n.keen-theme-builder .accordion__item__row {\n margin-bottom: 15px;\n margin-bottom: 15px;\n -ms-flex-align: end;\n align-items: end;\n -ms-flex-pack: center;\n justify-content: center;\n grid-column-gap: 10px;\n}\n.keen-theme-builder .accordion__item__row.three-elements {\n display: grid;\n grid-template-columns: 4fr 1fr 1fr;\n}\n.keen-theme-builder .accordion__item__row.two-elements {\n display: grid;\n grid-template-columns: 5fr 1fr;\n}\n@-webkit-keyframes fadein {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n@keyframes fadein {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n.keen-theme-builder .switcher {\n margin-bottom: 15px;\n margin-bottom: 15px;\n display: block;\n position: relative;\n overflow: hidden;\n }\n.keen-theme-builder .switcher__input:checked~.switcher__toggle {\n border-color: #3ED08E;\n background-color: #DCF9EB;\n}\n.keen-theme-builder .switcher__input:checked~.switcher__toggle .switcher__switch {\n right: 2px;\n background-color: #3ED08E;\n}\n.keen-theme-builder .switcher__input:checked~.switcher__value .on {\n display: block;\n}\n.keen-theme-builder .switcher__input:checked~.switcher__value .off {\n display: none;\n}\n.keen-theme-builder .switcher__toggle {\n position: relative;\n width: 34px;\n height: 18px;\n margin-right: 0.1875rem;\n margin-left: 0.625rem;\n border: 1px solid #ccc;\n border: 1px solid #ccc;\n background-color: #f5f5f5;\n border-radius: 9px;\n display: inline-block;\n }\n.keen-theme-builder .switcher__switch {\n position: absolute;\n top: 1px;\n bottom: 0;\n right: 17px;\n width: 14px;\n height: 14px;\n margin: 0;\n background: #ccc;\n background: #ccc;\n border-radius: 50%;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n -webkit-transition: right 0.15s ease-in-out, background-color 0.15s ease-in-out;\n -o-transition: right 0.15s ease-in-out, background-color 0.15s ease-in-out;\n transition: right 0.15s ease-in-out, background-color 0.15s ease-in-out;\n }\n.keen-theme-builder .switcher__title {\n font-weight: 800;\n }\n.keen-theme-builder .switcher__label {\n display: -ms-inline-flexbox;\n display: inline-flex;\n -ms-flex-align: center;\n align-items: center;\n cursor: pointer;\n }\n.keen-theme-builder .switcher__label .section-title {\n line-height: 1;\n }\n.keen-theme-builder .switcher__label .control-label {\n margin-bottom: 0;\n }\n.keen-theme-builder .switcher__input {\n position: absolute;\n left: -999px;\n }\n.keen-theme-builder .switcher__value {\n font-size: 0.75rem;\n color: #B3B5B6;\n }\n.keen-theme-builder .switcher__value .on {\n display: none;\n }\n.keen-theme-builder .switcher__value .off {\n display: block;\n }\n.keen-theme-builder .custom-color-picker {\n min-width: 0;\n position: relative;\n }\n.keen-theme-builder .custom-color-picker__title {\n margin-bottom: 10px;\n margin-bottom: 10px;\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n }\n.keen-theme-builder .custom-color-picker__wrapper {\n background-color: #fff;\n background-color: #fff;\n border: 1px solid #ccc;\n border: 1px solid #ccc;\n border-radius: 4px;\n border-radius: 4px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n height: 34px;\n height: 34px\n }\n.keen-theme-builder .custom-color-picker__wrapper:hover {\n border-color: #44B7DC;\n border-color: #44B7DC;\n}\n.keen-theme-builder .custom-color-picker__wrapper input {\n width: 100%;\n padding: 0.4375rem 0.75rem;\n background: transparent;\n border-radius: 0 4px 4px 0;\n border-radius: 0 4px 4px 0;\n font-family: 'Montserrat', sans-serif;\n font-family: 'Montserrat', sans-serif;\n font-size: 0.875rem;\n font-size: 0.875rem;\n}\n.keen-theme-builder .custom-color-picker__popover {\n position: absolute;\n top: 0;\n left: 50px;\n z-index: 10;\n padding: 10px;\n padding: 10px;\n background-color: #fff;\n background-color: #fff;\n border-radius: 4px;\n -webkit-box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 0px 1px, rgba(0, 0, 0, 0.15) 0px 8px 16px;\n box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 0px 1px, rgba(0, 0, 0, 0.15) 0px 8px 16px;\n }\n.keen-theme-builder .custom-color-picker__popover .sketch-picker {\n padding: 0 !important;\n -webkit-box-shadow: none !important;\n box-shadow: none !important;\n }\n.keen-theme-builder .custom-color-picker__popover .btn {\n margin-bottom: 10px;\n margin-bottom: 10px;\n }\n.keen-theme-builder .custom-color-picker__popover .btn-close {\n position: absolute;\n top: 0;\n right: 0;\n padding: 10px;\n padding: 10px;\n font-size: 1.25rem;\n font-weight: 700;\n line-height: 1;\n background: none;\n color: #ccc;\n color: #ccc;\n border: none;\n cursor: pointer \n }\n.keen-theme-builder .custom-color-picker__popover .btn-close:focus {\n outline: none;\n}\n.keen-theme-builder .custom-color-picker__cover {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: -1;\n }\n.keen-theme-builder .custom-color-picker__color {\n height: 32px;\n width: 32px;\n border-radius: 4px 0 0 4px;\n border-radius: 4px 0 0 4px;\n border-right: 1px solid #ccc;\n border-right: 1px solid #ccc;\n }\n.keen-theme-builder .custom-color-picker__swatch {\n cursor: pointer;\n }\n.keen-theme-builder .button-group {\n min-height: 34px;\n min-height: 34px;\n }\n.keen-theme-builder .button-group__title {\n margin-bottom: 10px;\n margin-bottom: 10px;\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n }\n.keen-theme-builder .button-group__wrapper {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-align: center;\n align-items: center;\n }\n.keen-theme-builder .button-group__label {\n margin: 0;\n padding: 0.5rem 0.75rem;\n min-width: 2.375rem;\n min-height: 34px;\n min-height: 34px;\n -ms-flex: 1;\n flex: 1;\n position: relative;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n text-align: center;\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n background-color: #fdfdfd;\n background-color: #fdfdfd;\n color: #000;\n color: #000;\n border-radius: 0;\n cursor: pointer;\n overflow: hidden;\n -webkit-box-shadow: 0 0 0 1px #ccc;\n box-shadow: 0 0 0 1px #ccc;\n box-shadow: 0 0 0 1px #ccc\n }\n.keen-theme-builder .button-group__label:hover {\n -webkit-box-shadow: 0 0 0 1px #44B7DC;\n box-shadow: 0 0 0 1px #44B7DC;\n box-shadow: 0 0 0 1px #44B7DC;\n z-index: 2;\n}\n.keen-theme-builder .button-group__label.active {\n background-color: #D9EFFA;\n background-color: #D9EFFA;\n color: #44B7DC;\n color: #44B7DC;\n -webkit-box-shadow: 0 0 0 1px #44B7DC;\n box-shadow: 0 0 0 1px #44B7DC;\n box-shadow: 0 0 0 1px #44B7DC;\n z-index: 2;\n}\n.keen-theme-builder .button-group__label:first-child {\n border-radius: 4px 0 0 4px;\n border-radius: 4px 0 0 4px;\n}\n.keen-theme-builder .button-group__label:last-child {\n border-radius: 0 4px 4px 0;\n border-radius: 0 4px 4px 0;\n}\n.keen-theme-builder .button-group__input {\n position: absolute;\n left: -999px;\n }\n.keen-theme-builder .custom-dropdown__control {\n padding-left: 0.75rem;\n padding-right: 0.5rem;\n min-height: 34px;\n min-height: 34px;\n min-width: 90px;\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n background-color: #fff;\n background-color: #fff;\n border: 1px solid #ccc;\n border: 1px solid #ccc;\n border-radius: 4px;\n border-radius: 4px;\n -webkit-box-shadow: none;\n box-shadow: none\n }\n.keen-theme-builder .custom-dropdown__control:hover {\n border-color: #44B7DC;\n border-color: #44B7DC;\n}\n.keen-theme-builder .custom-dropdown__menu {\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n z-index: 100;\n }\n.keen-theme-builder .custom-dropdown__option:hover {\n background-color: #D9EFFA;\n background-color: #D9EFFA;\n color: #000;\n color: #000;\n}\n.keen-theme-builder .custom-dropdown__option--is-selected {\n background-color: #44B7DC;\n background-color: #44B7DC;\n color: #fff;\n color: #fff;\n}\n.keen-theme-builder .custom-dropdown__option--is-selected:hover {\n background-color: #44B7DC;\n background-color: #44B7DC;\n color: #fff;\n color: #fff;\n}\n.keen-theme-builder .custom-dropdown__option--is-focused {\n background-color: #D9EFFA;\n background-color: #D9EFFA;\n color: #000;\n color: #000;\n}\n.keen-theme-builder .custom-dropdown__indicator {\n padding: 0;\n color: #ccc;\n color: #ccc;\n }\n.keen-theme-builder .custom-dropdown__indicator-separator {\n display: none;\n }\n.keen-theme-builder .custom-dropdown__value-container {\n padding: 0;\n }\n.keen-theme-builder .dropdown__label {\n display: block;\n margin-bottom: 10px;\n margin-bottom: 10px;\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n }\n.keen-theme-builder .form-input__label {\n display: inline-block;\n margin-bottom: 10px;\n margin-bottom: 10px;\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n }\n.keen-theme-builder .form-input__input {\n width: 100%;\n min-height: 34px;\n min-height: 34px;\n padding: 0.4375rem 0.75rem;\n display: block;\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n border-radius: 4px;\n border-radius: 4px;\n border: 1px solid #ccc;\n border: 1px solid #ccc\n }\n.keen-theme-builder .form-input__input:hover {\n border-color: #44B7DC;\n border-color: #44B7DC;\n}\n.keen-theme-builder .color-palette__list {\n margin: 15px 0;\n margin: 15px 0;\n padding: 0;\n /* min-height: 40px; */\n list-style: none;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -ms-flex-align: center;\n align-items: center;\n }\n.keen-theme-builder .color-palette__list .color-picker__popover {\n top: auto;\n bottom: 100%;\n left: 0;\n z-index: 10;\n }\n.keen-theme-builder .color-palette__button {\n padding: 0;\n width: 24px;\n height: 24px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n border: none;\n border-radius: 2px;\n background-color: rgba(0, 0, 0, 0.2);\n cursor: pointer;\n opacity: 0;\n -webkit-transition: background-color 250ms ease-in,\n opacity 250ms ease-in;\n -o-transition: background-color 250ms ease-in,\n opacity 250ms ease-in;\n transition: background-color 250ms ease-in,\n opacity 250ms ease-in\n }\n.keen-theme-builder .color-palette__button:hover {\n background-color: rgba(0, 0, 0, 0.6);\n}\n.keen-theme-builder .color-palette .btn-edit,\n .keen-theme-builder .color-palette .btn-remove {\n position: absolute;\n top: 5px;\n z-index: 1;\n }\n.keen-theme-builder .color-palette .btn-edit {\n left: 5px;\n }\n.keen-theme-builder .color-palette .btn-remove {\n right: 5px;\n }\n.keen-theme-builder .color-palette .btn-list {\n padding: 0.5rem 0.75rem;\n display: -ms-inline-flexbox;\n display: inline-flex;\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n color: #44B7DC;\n color: #44B7DC;\n background-color: #fff;\n background-color: #fff;\n border-radius: 4px;\n border-radius: 4px;\n border: 1px solid #ccc;\n border: 1px solid #ccc;\n -webkit-transition: background-color 250ms ease-in;\n -o-transition: background-color 250ms ease-in;\n transition: background-color 250ms ease-in\n }\n.keen-theme-builder .color-palette .btn-list:hover {\n background-color: #F3F7F9;\n background-color: #F3F7F9;\n}\n.keen-theme-builder .color-palette__item {\n position: relative;\n display: -ms-flexbox;\n display: flex\n }\n.keen-theme-builder .color-palette__item:hover .color-palette__button {\n opacity: 1 !important;\n}\n.keen-theme-builder .color-palette__trigger {\n cursor: -webkit-grab;\n cursor: grab;\n }\n.keen-theme-builder .react-tabs__tab {\n margin: 0;\n padding: 0.75rem;\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n text-align: center;\n -ms-flex: 1;\n flex: 1;\n border: none;\n border-radius: 0;\n background-color: #fff;\n background-color: #fff;\n -webkit-box-shadow: inset 0 -1px 0 #ccc;\n box-shadow: inset 0 -1px 0 #ccc;\n box-shadow: inset 0 -1px 0 #ccc\n }\n.keen-theme-builder .react-tabs__tab:focus {\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.keen-theme-builder .react-tabs__tab:focus:after {\n content: none;\n}\n.keen-theme-builder .react-tabs__tab-list {\n margin: 0;\n display: -ms-flexbox;\n display: flex;\n border-color: #d6d6d6;\n}\n.keen-theme-builder .react-tabs__tab-panel {\n padding: 15px;\n padding: 15px;\n border: none;\n}\n.keen-theme-builder .react-tabs__tab--selected {\n font-weight: 700;\n -webkit-box-shadow: inset 0 -3px 0 #44B7DC;\n box-shadow: inset 0 -3px 0 #44B7DC;\n box-shadow: inset 0 -3px 0 #44B7DC;\n}\n.keen-theme-builder .font-picker__title {\n margin-bottom: 10px;\n margin-bottom: 10px;\n font-size: 0.875rem;\n font-size: 0.875rem;\n line-height: 1.285;\n line-height: 1.285;\n }", + '' + ]); + }, + function(t, e, n) { + 'use strict'; + n.r(e); + var r = n(0), + i = n.n(r), + o = n(1), + a = n.n(o), + s = n(87), + u = n(7), + l = n.n(u), + c = n(13), + f = n.n(c), + d = n(8), + h = n(2), + p = n.n(h), + g = n(88), + m = n.n(g), + v = n(34), + y = n(89), + b = n.n(y), + _ = n(19), + x = { + autocollector: { + colors: [ + '#5E77FF', + '#9C60FE', + '#F162FE', + '#FD65B7', + '#FD6768', + '#FDB86A', + '#F2FC6C', + '#A5FC6E', + '#71FB85', + '#73FBD0', + '#76DDFA', + '#76f4fa', + '#bb76fa', + '#fa76bf' + ] + }, + modern: { + colors: [ + '#45B2E8', + '#D9540D', + '#2CAB72', + '#2C4BAB', + '#EDDD02', + '#E84545', + '#E845CE', + '#5FCEC9', + '#E89F45', + '#28E43F', + '#B765C0', + '#458AE8', + '#AB2C2C', + '#AB2C75', + '#27E5FF', + '#7168F2', + '#FF932B', + '#855D00', + '#ACE845', + '#1C91B4' + ] + }, + dracula: { + colors: [ + '#8be9fd', + '#50fa7b', + '#ffb86c', + '#ff79c6', + '#bd93f9', + '#ff5555', + '#f1fa8c' + ] + } + }; + function w() { + return (w = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }).apply(this, arguments); + } + var S = i.a.createElement('path', { + fill: 'currentColor', + d: + 'M333.49 238a122 122 0 0027-65.21C367.87 96.49 308 32 233.42 32H34a16 16 0 00-16 16v48a16 16 0 0016 16h31.87v288H34a16 16 0 00-16 16v48a16 16 0 0016 16h209.32c70.8 0 134.14-51.75 141-122.4 4.74-48.45-16.39-92.06-50.83-119.6zM145.66 112h87.76a48 48 0 010 96h-87.76zm87.76 288h-87.76V288h87.76a56 56 0 010 112z' + }); + function E() { + return (E = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }).apply(this, arguments); + } + var k = i.a.createElement('path', { + fill: 'currentColor', + d: + 'M320 48v32a16 16 0 01-16 16h-62.76l-80 320H208a16 16 0 0116 16v32a16 16 0 01-16 16H16a16 16 0 01-16-16v-32a16 16 0 0116-16h62.76l80-320H112a16 16 0 01-16-16V48a16 16 0 0116-16h192a16 16 0 0116 16z' + }); + function A() { + return (A = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }).apply(this, arguments); + } + var T = i.a.createElement('path', { + fill: 'currentColor', + d: + 'M12.83 352h262.34A12.82 12.82 0 00288 339.17v-38.34A12.82 12.82 0 00275.17 288H12.83A12.82 12.82 0 000 300.83v38.34A12.82 12.82 0 0012.83 352zm0-256h262.34A12.82 12.82 0 00288 83.17V44.83A12.82 12.82 0 00275.17 32H12.83A12.82 12.82 0 000 44.83v38.34A12.82 12.82 0 0012.83 96zM432 160H16a16 16 0 00-16 16v32a16 16 0 0016 16h416a16 16 0 0016-16v-32a16 16 0 00-16-16zm0 256H16a16 16 0 00-16 16v32a16 16 0 0016 16h416a16 16 0 0016-16v-32a16 16 0 00-16-16z' + }); + function C() { + return (C = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }).apply(this, arguments); + } + var O = i.a.createElement('path', { + fill: 'currentColor', + d: + 'M16 224h416a16 16 0 0016-16v-32a16 16 0 00-16-16H16a16 16 0 00-16 16v32a16 16 0 0016 16zm416 192H16a16 16 0 00-16 16v32a16 16 0 0016 16h416a16 16 0 0016-16v-32a16 16 0 00-16-16zm3.17-384H172.83A12.82 12.82 0 00160 44.83v38.34A12.82 12.82 0 00172.83 96h262.34A12.82 12.82 0 00448 83.17V44.83A12.82 12.82 0 00435.17 32zm0 256H172.83A12.82 12.82 0 00160 300.83v38.34A12.82 12.82 0 00172.83 352h262.34A12.82 12.82 0 00448 339.17v-38.34A12.82 12.82 0 00435.17 288z' + }); + function P() { + return (P = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }).apply(this, arguments); + } + var M = i.a.createElement('path', { + fill: 'currentColor', + d: + 'M432 160H16a16 16 0 00-16 16v32a16 16 0 0016 16h416a16 16 0 0016-16v-32a16 16 0 00-16-16zm0 256H16a16 16 0 00-16 16v32a16 16 0 0016 16h416a16 16 0 0016-16v-32a16 16 0 00-16-16zM108.1 96h231.81A12.09 12.09 0 00352 83.9V44.09A12.09 12.09 0 00339.91 32H108.1A12.09 12.09 0 0096 44.09V83.9A12.1 12.1 0 00108.1 96zm231.81 256A12.09 12.09 0 00352 339.9v-39.81A12.09 12.09 0 00339.91 288H108.1A12.09 12.09 0 0096 300.09v39.81a12.1 12.1 0 0012.1 12.1z' + }); + function L() { + return (L = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }).apply(this, arguments); + } + var j = i.a.createElement( + 'defs', + null, + i.a.createElement('path', { + id: 'vertical-align-bottom_svg__a', + d: + 'M24.184 24c.727 0 1.316.448 1.316 1s-.59 1-1.316 1H1.816C1.089 26 .5 25.552.5 25s.59-1 1.316-1h22.368zM13 4c.552 0 1 .61 1 1.364v11.325l3.306.001a.5.5 0 01.41.788l-.056.066-4.308 4.307a.5.5 0 01-.638.058l-.069-.058-4.308-4.307a.5.5 0 01.268-.847l.086-.007L12 16.689V5.364C12 4.61 12.448 4 13 4z' + }) + ), + D = i.a.createElement( + 'g', + { fill: 'none', fillRule: 'evenodd' }, + i.a.createElement( + 'mask', + { id: 'vertical-align-bottom_svg__b', fill: '#fff' }, + i.a.createElement('use', { + xlinkHref: '#vertical-align-bottom_svg__a' + }) + ), + i.a.createElement('use', { + fill: '#000', + fillRule: 'nonzero', + xlinkHref: '#vertical-align-bottom_svg__a' + }), + i.a.createElement( + 'g', + { + fill: '#000', + mask: 'url(#vertical-align-bottom_svg__b)' + }, + i.a.createElement('path', { + d: 'M-160-36.09h340v100h-340z' + }) + ) + ); + function R() { + return (R = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }).apply(this, arguments); + } + var z = i.a.createElement( + 'defs', + null, + i.a.createElement('path', { + id: 'vertical-align-middle_svg__a', + d: + 'M13.352 18.146l4.308 4.308a.5.5 0 01-.354.854L14 23.307V28.5a1 1 0 01-2 0v-5.193H8.691a.5.5 0 01-.354-.853l4.308-4.308a.5.5 0 01.707 0zM24.184 14c.727 0 1.316.448 1.316 1s-.59 1-1.316 1H1.816C1.089 16 .5 15.552.5 15s.59-1 1.316-1h22.368zM13 .5a1 1 0 011 1v5.19h3.306a.5.5 0 01.41.788l-.056.066-4.308 4.307a.5.5 0 01-.638.058l-.069-.058-4.308-4.307a.5.5 0 01.268-.847l.086-.007H12V1.5a1 1 0 011-1z' + }) + ), + N = i.a.createElement( + 'g', + { fill: 'none', fillRule: 'evenodd' }, + i.a.createElement( + 'mask', + { id: 'vertical-align-middle_svg__b', fill: '#fff' }, + i.a.createElement('use', { + xlinkHref: '#vertical-align-middle_svg__a' + }) + ), + i.a.createElement('use', { + fill: '#000', + fillRule: 'nonzero', + xlinkHref: '#vertical-align-middle_svg__a' + }), + i.a.createElement( + 'g', + { + fill: '#000', + mask: 'url(#vertical-align-middle_svg__b)' + }, + i.a.createElement('path', { + d: 'M-160-36.09h340v100h-340z' + }) + ) + ); + function I() { + return (I = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }).apply(this, arguments); + } + var F = i.a.createElement( + 'defs', + null, + i.a.createElement('path', { + id: 'vertical-align-top_svg__a', + d: + 'M13.352 8.146l4.308 4.308a.5.5 0 01-.354.854L14 13.307v11.33c0 .752-.448 1.363-1 1.363s-1-.61-1-1.364V13.307H8.691a.5.5 0 01-.354-.853l4.308-4.308a.5.5 0 01.707 0zM24.184 4c.727 0 1.316.448 1.316 1s-.59 1-1.316 1H1.816C1.089 6 .5 5.552.5 5s.59-1 1.316-1h22.368z' + }) + ), + V = i.a.createElement( + 'g', + { fill: 'none', fillRule: 'evenodd' }, + i.a.createElement( + 'mask', + { id: 'vertical-align-top_svg__b', fill: '#fff' }, + i.a.createElement('use', { + xlinkHref: '#vertical-align-top_svg__a' + }) + ), + i.a.createElement('use', { + fill: '#000', + fillRule: 'nonzero', + xlinkHref: '#vertical-align-top_svg__a' + }), + i.a.createElement( + 'g', + { fill: '#000', mask: 'url(#vertical-align-top_svg__b)' }, + i.a.createElement('path', { + d: 'M-160-36.09h340v100h-340z' + }) + ) + ); + function B(t, e, n) { + return ( + e in t + ? Object.defineProperty(t, e, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (t[e] = n), + t + ); + } + var G = { + metric: { + query: { + analysis_type: 'count', + event_collection: 'purchases', + filters: [], + group_by: null, + interval: null, + timeframe: { start: '2014-01-01', end: '2015-01-01' }, + timezone: 3600 + }, + result: 255 + }, + bar: { + query: { + analysis_type: 'count', + event_collection: 'mobile_purchases', + timeframe: { + start: '2019-03-20T00:00:00.000-00:00', + end: '2019-03-26T00:00:00.000-00:00' + }, + group_by: ['product.name'], + interval: 'daily', + timezone: 7200 + }, + result: [ + { + value: [ + { 'product.name': 'apps', result: 53 }, + { 'product.name': 'books', result: 47 }, + { 'product.name': 'games', result: 24 }, + { 'product.name': 'sounds', result: 76 } + ], + timeframe: { + start: '2019-03-20T00:00:00.000Z', + end: '2019-03-21T00:00:00.000Z' + } + }, + { + value: [ + { 'product.name': 'apps', result: 32 }, + { 'product.name': 'books', result: 24 }, + { 'product.name': 'games', result: 56 }, + { 'product.name': 'sounds', result: 32 } + ], + timeframe: { + start: '2019-03-21T00:00:00.000Z', + end: '2019-03-22T00:00:00.000Z' + } + }, + { + value: [ + { 'product.name': 'apps', result: 27 }, + { 'product.name': 'books', result: 32 }, + { 'product.name': 'games', result: 18 }, + { 'product.name': 'sounds', result: 33 } + ], + timeframe: { + start: '2019-03-22T00:00:00.000Z', + end: '2019-03-23T00:00:00.000Z' + } + }, + { + value: [ + { 'product.name': 'apps', result: 68 }, + { 'product.name': 'books', result: 56 }, + { 'product.name': 'games', result: 65 }, + { 'product.name': 'sounds', result: 59 } + ], + timeframe: { + start: '2019-03-23T00:00:00.000Z', + end: '2019-03-24T00:00:00.000Z' + } + }, + { + value: [ + { 'product.name': 'apps', result: 38 }, + { 'product.name': 'books', result: 48 }, + { 'product.name': 'games', result: 50 }, + { 'product.name': 'sounds', result: 26 } + ], + timeframe: { + start: '2019-03-24T00:00:00.000Z', + end: '2019-03-25T00:00:00.000Z' + } + }, + { + value: [ + { 'product.name': 'apps', result: 34 }, + { 'product.name': 'books', result: 15 }, + { 'product.name': 'games', result: 18 }, + { 'product.name': 'sounds', result: 14 } + ], + timeframe: { + start: '2019-03-25T00:00:00.000Z', + end: '2019-03-26T00:00:00.000Z' + } } - function k(t) { - if (Array.isArray(t)) { - for ( - var e = 0, n = Array(t.length); - e < t.length; - e++ - ) - n[e] = t[e]; - return n; + ] + }, + line: { + query: { + analysis_type: 'count', + event_collection: 'mobile_purchases', + timeframe: { + start: '2019-03-20T00:00:00.000-00:00', + end: '2019-03-26T00:00:00.000-00:00' + }, + group_by: ['product.name'], + interval: 'daily', + timezone: 7200 + }, + result: [ + { + value: [ + { 'product.name': 'apps', result: 53 }, + { 'product.name': 'books', result: 47 }, + { 'product.name': 'games', result: 24 }, + { 'product.name': 'sounds', result: 76 } + ], + timeframe: { + start: '2019-03-20T00:00:00.000Z', + end: '2019-03-21T00:00:00.000Z' + } + }, + { + value: [ + { 'product.name': 'apps', result: 32 }, + { 'product.name': 'books', result: 24 }, + { 'product.name': 'games', result: 56 }, + { 'product.name': 'sounds', result: 32 } + ], + timeframe: { + start: '2019-03-21T00:00:00.000Z', + end: '2019-03-22T00:00:00.000Z' + } + }, + { + value: [ + { 'product.name': 'apps', result: 27 }, + { 'product.name': 'books', result: 32 }, + { 'product.name': 'games', result: 18 }, + { 'product.name': 'sounds', result: 33 } + ], + timeframe: { + start: '2019-03-22T00:00:00.000Z', + end: '2019-03-23T00:00:00.000Z' + } + }, + { + value: [ + { 'product.name': 'apps', result: 68 }, + { 'product.name': 'books', result: 56 }, + { 'product.name': 'games', result: 65 }, + { 'product.name': 'sounds', result: 59 } + ], + timeframe: { + start: '2019-03-23T00:00:00.000Z', + end: '2019-03-24T00:00:00.000Z' + } + }, + { + value: [ + { 'product.name': 'apps', result: 38 }, + { 'product.name': 'books', result: 48 }, + { 'product.name': 'games', result: 50 }, + { 'product.name': 'sounds', result: 26 } + ], + timeframe: { + start: '2019-03-24T00:00:00.000Z', + end: '2019-03-25T00:00:00.000Z' + } + }, + { + value: [ + { 'product.name': 'apps', result: 34 }, + { 'product.name': 'books', result: 15 }, + { 'product.name': 'games', result: 18 }, + { 'product.name': 'sounds', result: 14 } + ], + timeframe: { + start: '2019-03-25T00:00:00.000Z', + end: '2019-03-26T00:00:00.000Z' } - return Array.from(t); } - function A(t, e) { - var n = this.config.type; - if (this.view._artifacts.pagination && 'gauge' !== n) { - var r = this.view._artifacts.pagination.labels; - return (e.id && r.indexOf(e.id) > -1) || - (e && !e.id && r.indexOf(e) > -1) - ? t - : 'donut' === n || 'pie' === n - ? 'rgba(0,0,0,.1)' - : 'rgba(0,0,0,.07)'; + ] + }, + spline: { + query: { + analysis_type: 'count', + event_collection: 'mobile_purchases', + timeframe: { + start: '2019-03-20T00:00:00.000-00:00', + end: '2019-03-26T00:00:00.000-00:00' + }, + group_by: ['product.name'], + interval: 'daily', + timezone: 7200 + }, + result: [ + { + value: [ + { 'product.name': 'apps', result: 53 }, + { 'product.name': 'books', result: 47 }, + { 'product.name': 'games', result: 24 }, + { 'product.name': 'sounds', result: 76 } + ], + timeframe: { + start: '2019-03-20T00:00:00.000Z', + end: '2019-03-21T00:00:00.000Z' + } + }, + { + value: [ + { 'product.name': 'apps', result: 32 }, + { 'product.name': 'books', result: 24 }, + { 'product.name': 'games', result: 56 }, + { 'product.name': 'sounds', result: 32 } + ], + timeframe: { + start: '2019-03-21T00:00:00.000Z', + end: '2019-03-22T00:00:00.000Z' + } + }, + { + value: [ + { 'product.name': 'apps', result: 27 }, + { 'product.name': 'books', result: 32 }, + { 'product.name': 'games', result: 18 }, + { 'product.name': 'sounds', result: 33 } + ], + timeframe: { + start: '2019-03-22T00:00:00.000Z', + end: '2019-03-23T00:00:00.000Z' + } + }, + { + value: [ + { 'product.name': 'apps', result: 68 }, + { 'product.name': 'books', result: 56 }, + { 'product.name': 'games', result: 65 }, + { 'product.name': 'sounds', result: 59 } + ], + timeframe: { + start: '2019-03-23T00:00:00.000Z', + end: '2019-03-24T00:00:00.000Z' + } + }, + { + value: [ + { 'product.name': 'apps', result: 38 }, + { 'product.name': 'books', result: 48 }, + { 'product.name': 'games', result: 50 }, + { 'product.name': 'sounds', result: 26 } + ], + timeframe: { + start: '2019-03-24T00:00:00.000Z', + end: '2019-03-25T00:00:00.000Z' + } + }, + { + value: [ + { 'product.name': 'apps', result: 34 }, + { 'product.name': 'books', result: 15 }, + { 'product.name': 'games', result: 18 }, + { 'product.name': 'sounds', result: 14 } + ], + timeframe: { + start: '2019-03-25T00:00:00.000Z', + end: '2019-03-26T00:00:00.000Z' } - return t; - } - function T(t, e, n, r) { - var i = this.config.type; - return this.view._artifacts.pagination && 'gauge' !== i - ? this.view._artifacts.pagination.labels.indexOf(n) > - -1 - ? t - : void 0 - : t; } + ] + }, + step: { + query: { + analysis_type: 'count', + event_collection: 'mobile_purchases', + timeframe: { + start: '2019-03-20T00:00:00.000-00:00', + end: '2019-03-26T00:00:00.000-00:00' + }, + group_by: ['product.name'], + interval: 'daily', + timezone: 7200 }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t, e) { - var n = Math.abs( - new Date(t).getTime() - new Date(e).getTime() - ), - r = [ - 'Jan', - 'Feb', - 'Mar', - 'Apr', - 'May', - 'June', - 'July', - 'Aug', - 'Sept', - 'Oct', - 'Nov', - 'Dec' - ]; - return n >= 24192e5 - ? function(t) { - var e = new Date(t); - return r[e.getMonth()] + ' ' + e.getFullYear(); - } - : n >= 864e5 - ? function(t) { - var e = new Date(t); - return r[e.getMonth()] + ' ' + e.getDate(); - } - : n >= 36e5 - ? '%I:%M %p' - : '%I:%M:%S %p'; - }); + result: [ + { + value: [ + { 'product.name': 'apps', result: 53 }, + { 'product.name': 'books', result: 47 }, + { 'product.name': 'games', result: 24 }, + { 'product.name': 'sounds', result: 76 } + ], + timeframe: { + start: '2019-03-20T00:00:00.000Z', + end: '2019-03-21T00:00:00.000Z' + } + }, + { + value: [ + { 'product.name': 'apps', result: 32 }, + { 'product.name': 'books', result: 24 }, + { 'product.name': 'games', result: 56 }, + { 'product.name': 'sounds', result: 32 } + ], + timeframe: { + start: '2019-03-21T00:00:00.000Z', + end: '2019-03-22T00:00:00.000Z' + } + }, + { + value: [ + { 'product.name': 'apps', result: 27 }, + { 'product.name': 'books', result: 32 }, + { 'product.name': 'games', result: 18 }, + { 'product.name': 'sounds', result: 33 } + ], + timeframe: { + start: '2019-03-22T00:00:00.000Z', + end: '2019-03-23T00:00:00.000Z' + } + }, + { + value: [ + { 'product.name': 'apps', result: 68 }, + { 'product.name': 'books', result: 56 }, + { 'product.name': 'games', result: 65 }, + { 'product.name': 'sounds', result: 59 } + ], + timeframe: { + start: '2019-03-23T00:00:00.000Z', + end: '2019-03-24T00:00:00.000Z' + } + }, + { + value: [ + { 'product.name': 'apps', result: 38 }, + { 'product.name': 'books', result: 48 }, + { 'product.name': 'games', result: 50 }, + { 'product.name': 'sounds', result: 26 } + ], + timeframe: { + start: '2019-03-24T00:00:00.000Z', + end: '2019-03-25T00:00:00.000Z' + } + }, + { + value: [ + { 'product.name': 'apps', result: 34 }, + { 'product.name': 'books', result: 15 }, + { 'product.name': 'games', result: 18 }, + { 'product.name': 'sounds', result: 14 } + ], + timeframe: { + start: '2019-03-25T00:00:00.000Z', + end: '2019-03-26T00:00:00.000Z' + } + } + ] + }, + area: { + query: { + analysis_type: 'count', + event_collection: 'mobile_purchases', + timeframe: { + start: '2019-03-20T00:00:00.000-00:00', + end: '2019-03-26T00:00:00.000-00:00' + }, + group_by: ['product.name'], + interval: 'daily', + timezone: 7200 }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }; - (e.default = function(t) { - var e = t.data.columns, - n = this, - i = this.view._artifacts.c3, - o = [], - s = this.el().querySelector( - '.' + n.config.theme + '-rendering' - ), - u = n.config.legend, - l = (this.view._artifacts.pagination = r( - { - hidden: [], - labels: [], - offset: 0, - limit: Math.round((s.offsetHeight - 78) / 20), - total: 0 - }, - u.pagination - )); - if (t.legend.sort) { - o = t.legend.sort(e); - var c = []; - 'x' === e[0][0] && c.push(e[0]), - o.forEach(function(e) { - var n = t.data.columns.find(function(t) { - return t[0] === e; - }); - c.push(n); - }), - (t.data.columns = c); - } else - for (var f = 0; f < e.length; f++) - 'x' === e[f][0] || - (0, a.default)(e[f][1]) || - o.push(e[f][0]); - var d = this.el().querySelector('.keen-c3-legend'), - h = 'vertical'; - ('top' !== u.position && 'bottom' !== u.position) || - (h = 'horizontal'); - var p = document.createElement('div'); - p.setAttribute( - 'class', - 'keen-c3-legend-pagination-icons keen-c3-legend-horizontal-pagination-left' - ), - 'horizontal' === h && d.append(p); - var g = document.createElement('div'); - g.setAttribute( - 'class', - 'keen-c3-legend-items keen-c3-legend-' + h + '-items' - ), - d.append(g); - var v = document.createElement('div'); - v.setAttribute( - 'class', - 'keen-c3-legend-pagination keen-c3-legend-pagination-icons' - ), - 'vertical' === h && d.append(v); - var m = document.createElement('div'); - function y() { - (l.labels = o.slice(l.offset, l.offset + l.limit)), - (l.total = o.length), - b.call(n, l.labels), - l.total > l.limit && _.call(n), - t.onPaginated && t.onPaginated(); + result: [ + { + value: [ + { 'product.name': 'apps', result: 53 }, + { 'product.name': 'books', result: 47 }, + { 'product.name': 'games', result: 24 }, + { 'product.name': 'sounds', result: 76 } + ], + timeframe: { + start: '2019-03-20T00:00:00.000Z', + end: '2019-03-21T00:00:00.000Z' } - function b() { - (g.innerHTML = ''), - l.labels.forEach(function(e) { - var n = u.label.textMaxLength - ? e.slice(0, u.label.textMaxLength - 1) - : e, - r = document.createElement('div'); - (r.innerHTML = - "" + - n + - ''), - (r.chartPartId = e), - r.setAttribute('class', 'legend-item'), - g.append(r); - var o = document.createElement('span'); - o.setAttribute( - 'class', - 'legend-item-color-sample' - ), - (o.style.backgroundColor = i.color( - r.chartPartId - )), - r.prepend(o); - var a = document.createElement('div'); - r.addEventListener('mouseover', function(e) { - i.focus(r.chartPartId), - u.tooltip.show && - r.chartPartId.length > - u.label.textMaxLength && - (a.setAttribute( - 'class', - 'keen-c3-legend-label-overlay keen-c3-legend-position-' + - u.position - ), - (a.innerHTML = - (t.legend.tooltip.pointer - ? "
" - : '') + r.chartPartId), - r.append(a)); - }), - r.addEventListener('mouseout', function(t) { - i.revert(), a.remove(); - }), - r.addEventListener('click', function(t) { - var e = 1, - n = l.hidden.indexOf(r.chartPartId); - n < 0 - ? (l.hidden.push(r.chartPartId), (e = 0.35)) - : (l.hidden.splice(n, 1), (e = 1)), - (r.style.opacity = e), - i.toggle(r.chartPartId); - }); - }), - t.onLegendRendered && - (t.onLegendRendered(), - (t.onLegendRendered = null)); + }, + { + value: [ + { 'product.name': 'apps', result: 32 }, + { 'product.name': 'books', result: 24 }, + { 'product.name': 'games', result: 56 }, + { 'product.name': 'sounds', result: 32 } + ], + timeframe: { + start: '2019-03-21T00:00:00.000Z', + end: '2019-03-22T00:00:00.000Z' } - function _() { - (v.innerHTML = ''), - (p.innerHTML = ''), - (m.innerHTML = ''); - var t = document.createElement('i'), - e = document.createElement('i'), - n = function(t) { - if ('forward' === t) { - var e = l.offset + l.limit; - return e < l.total - ? void (l.offset = e) - : void (l.offset = 0); - } - var n = l.offset - l.limit; - l.offset = - n >= 0 - ? n - : Math.floor(l.total / l.limit) * l.limit; - }; - e.addEventListener('click', function() { - n('forward'), y(), x(); - }), - t.addEventListener('click', function() { - n('backward'), y(), x(); - }), - 'left' === u.position || 'right' === u.position - ? (t.setAttribute('class', 'up'), - e.setAttribute('class', 'down'), - v.append(e), - v.append(t)) - : (t.setAttribute('class', 'left'), - e.setAttribute('class', 'right'), - p.append(t), - m.append(e)); + }, + { + value: [ + { 'product.name': 'apps', result: 27 }, + { 'product.name': 'books', result: 32 }, + { 'product.name': 'games', result: 18 }, + { 'product.name': 'sounds', result: 33 } + ], + timeframe: { + start: '2019-03-22T00:00:00.000Z', + end: '2019-03-23T00:00:00.000Z' } - function x() { - document.selection && document.selection.empty - ? document.selection.empty() - : window.getSelection && - window.getSelection().removeAllRanges(); + }, + { + value: [ + { 'product.name': 'apps', result: 68 }, + { 'product.name': 'books', result: 56 }, + { 'product.name': 'games', result: 65 }, + { 'product.name': 'sounds', result: 59 } + ], + timeframe: { + start: '2019-03-23T00:00:00.000Z', + end: '2019-03-24T00:00:00.000Z' } - m.setAttribute( - 'class', - 'keen-c3-legend-pagination-icons keen-c3-legend-horizontal-pagination-right' - ), - 'horizontal' === h && d.append(m), - y(); - }), - (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && - (e[n] = t[n]); - e.default = t; - })(n(2)); - var i, - o = n(11), - a = (i = o) && i.__esModule ? i : { default: i }; + }, + { + value: [ + { 'product.name': 'apps', result: 38 }, + { 'product.name': 'books', result: 48 }, + { 'product.name': 'games', result: 50 }, + { 'product.name': 'sounds', result: 26 } + ], + timeframe: { + start: '2019-03-24T00:00:00.000Z', + end: '2019-03-25T00:00:00.000Z' + } + }, + { + value: [ + { 'product.name': 'apps', result: 34 }, + { 'product.name': 'books', result: 15 }, + { 'product.name': 'games', result: 18 }, + { 'product.name': 'sounds', result: 14 } + ], + timeframe: { + start: '2019-03-25T00:00:00.000Z', + end: '2019-03-26T00:00:00.000Z' + } + } + ] + }, + pie: { + query: { + analysis_type: 'count', + event_collection: 'mobile_purchases', + timeframe: { + start: '2019-03-20T00:00:00.000-00:00', + end: '2019-03-26T00:00:00.000-00:00' + }, + group_by: ['product.name'], + timezone: 7200 }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t, e, n, i) { - for ( - var o = void 0, - a = void 0, - s = - this.config.tooltip_format_name || - function(t) { - return t; - }, - u = this.config.tooltip_format_title || e, - l = this.config.tooltip_format_value || n, - c = 0; - c < t.length; - c++ - ) - if (t[c] && (t[c].value || 0 === t[c].value)) { - o || - ((a = u ? u(t[c].x) : t[c].x), - (o = - "" + - (a || 0 === a - ? "' - : ''))); - var f = s(t[c].name), - d = l( - t[c].value, - t[c].ratio, - t[c].id, - t[c].index - ), - h = this.levelColor - ? this.levelColor(t[c].value) - : i(t[c].id); - d && - !isNaN(d) && - ((o += - ""), - -1 === - f.indexOf('__tooltip_ignore_name_field__') && - (o += - "'), - (o += - "'), - (o += '')); - } - return o + '
" + - (0, r.escapeHtml)(a) + - '
" + - (0, r.escapeHtml)(f) + - '" + - (0, r.escapeHtml)(d) + - '
'; - }); - var r = n(4); + result: [ + { 'product.name': 'apps', result: 252 }, + { 'product.name': 'books', result: 222 }, + { 'product.name': 'games', result: 231 }, + { 'product.name': 'sounds', result: 240 } + ] + }, + donut: { + query: { + analysis_type: 'count', + event_collection: 'mobile_purchases', + timeframe: { + start: '2019-03-20T00:00:00.000-00:00', + end: '2019-03-26T00:00:00.000-00:00' + }, + group_by: ['product.name'], + timezone: 7200 + }, + result: [ + { 'product.name': 'apps', result: 252 }, + { 'product.name': 'books', result: 222 }, + { 'product.name': 'games', result: 231 }, + { 'product.name': 'sounds', result: 240 } + ] + }, + gauge: { + query: { + analysis_type: 'count', + event_collection: 'mobile_purchases', + timeframe: { + start: '2019-03-21T00:00:00.000-00:00', + end: '2019-03-22T00:00:00.000-00:00' + }, + filters: [ + { + property_name: 'product.name', + operator: 'eq', + property_value: 'games' + } + ], + timezone: 7200 }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t) { - return t.slice(1).map(function(t) { - return t.map(function(e, n) { - return 'number' == typeof e && 1 === n - ? e - t[n + 1] - : e; - }); - }); - }); + result: 56 + }, + funnel: { + steps: [ + { + with_actors: !1, + actor_property: 'user.uuid', + filters: [], + timeframe: { + start: '2019-03-13T00:00:00+00:00', + end: '2019-08-14T00:00:00+00:00' + }, + timezone: null, + event_collection: 'pageviews', + optional: !1, + inverted: !1 + }, + { + with_actors: !1, + actor_property: 'user.uuid', + filters: [], + timeframe: { + start: '2019-03-13T00:00:00+00:00', + end: '2019-08-14T00:00:00+00:00' + }, + timezone: null, + event_collection: 'signups', + optional: !1, + inverted: !1 + }, + { + with_actors: !1, + actor_property: 'user.uuid', + filters: [], + timeframe: { + start: '2019-03-13T00:00:00+00:00', + end: '2019-08-14T00:00:00+00:00' + }, + timezone: null, + event_collection: 'purchases', + optional: !1, + inverted: !1 + } + ], + result: [1128, 317, 89] + }, + 'horizontal-funnel': { + steps: [ + { + with_actors: !1, + actor_property: 'user.uuid', + filters: [], + timeframe: { + start: '2019-03-13T00:00:00+00:00', + end: '2019-08-14T00:00:00+00:00' + }, + timezone: null, + event_collection: 'pageviews', + optional: !1, + inverted: !1 + }, + { + with_actors: !1, + actor_property: 'user.uuid', + filters: [], + timeframe: { + start: '2019-03-13T00:00:00+00:00', + end: '2019-08-14T00:00:00+00:00' + }, + timezone: null, + event_collection: 'signups', + optional: !1, + inverted: !1 + }, + { + with_actors: !1, + actor_property: 'user.uuid', + filters: [], + timeframe: { + start: '2019-03-13T00:00:00+00:00', + end: '2019-08-14T00:00:00+00:00' + }, + timezone: null, + event_collection: 'purchases', + optional: !1, + inverted: !1 + } + ], + result: [1128, 317, 89] + }, + 'funnel-3d': { + steps: [ + { + with_actors: !1, + actor_property: 'user.uuid', + filters: [], + timeframe: { + start: '2019-03-13T00:00:00+00:00', + end: '2019-08-14T00:00:00+00:00' + }, + timezone: null, + event_collection: 'pageviews', + optional: !1, + inverted: !1 + }, + { + with_actors: !1, + actor_property: 'user.uuid', + filters: [], + timeframe: { + start: '2019-03-13T00:00:00+00:00', + end: '2019-08-14T00:00:00+00:00' + }, + timezone: null, + event_collection: 'banner_visibility', + optional: !1, + inverted: !1 + }, + { + with_actors: !1, + actor_property: 'user.uuid', + filters: [], + timeframe: { + start: '2019-03-13T00:00:00+00:00', + end: '2019-08-14T00:00:00+00:00' + }, + timezone: null, + event_collection: 'banner_clicks', + optional: !1, + inverted: !1 + }, + { + with_actors: !1, + actor_property: 'user.uuid', + filters: [], + timeframe: { + start: '2019-03-13T00:00:00+00:00', + end: '2019-08-14T00:00:00+00:00' + }, + timezone: null, + event_collection: 'signups', + optional: !1, + inverted: !1 + } + ], + result: [1128, 848, 581, 317] + }, + 'horizontal-funnel-3d': { + steps: [ + { + with_actors: !1, + actor_property: 'user.uuid', + filters: [], + timeframe: { + start: '2019-03-13T00:00:00+00:00', + end: '2019-08-14T00:00:00+00:00' + }, + timezone: null, + event_collection: 'pageviews', + optional: !1, + inverted: !1 + }, + { + with_actors: !1, + actor_property: 'user.uuid', + filters: [], + timeframe: { + start: '2019-03-13T00:00:00+00:00', + end: '2019-08-14T00:00:00+00:00' + }, + timezone: null, + event_collection: 'banner_visibility', + optional: !1, + inverted: !1 + }, + { + with_actors: !1, + actor_property: 'user.uuid', + filters: [], + timeframe: { + start: '2019-03-13T00:00:00+00:00', + end: '2019-08-14T00:00:00+00:00' + }, + timezone: null, + event_collection: 'banner_clicks', + optional: !1, + inverted: !1 + }, + { + with_actors: !1, + actor_property: 'user.uuid', + filters: [], + timeframe: { + start: '2019-03-13T00:00:00+00:00', + end: '2019-08-14T00:00:00+00:00' + }, + timezone: null, + event_collection: 'signups', + optional: !1, + inverted: !1 + } + ], + result: [1128, 848, 581, 317] + }, + choropleth: { + query: { + analysis_type: 'count', + event_collection: 'homepage_views', + timeframe: { + start: '2019-04-13T00:00:00.000-00:00', + end: '2019-04-14T00:00:00.000-00:00' + }, + group_by: ['geo.country'], + timezone: 3600 }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.calculateSumForPercents = function(t) { - var e = []; - return ( - t.slice(1).forEach(function(t, n) { - t.forEach(function(t) { - if ('number' == typeof t) { - if (!e[n]) return (e[n] = t), e[n]; - e[n] += t; - } - return e[n]; - }); - }), - e - ); - }), - (e.calculatePercents = function(t, e) { - return t.slice(1).map(function(t, n) { - return t.map(function(t) { - return 'number' == typeof t - ? (t / e[n]) * 100 - : t; - }); - }); - }); + result: [ + { 'geo.country': 'Afghanistan', result: 49 }, + { 'geo.country': 'Albania', result: 61 }, + { 'geo.country': 'Algeria', result: 2 }, + { 'geo.country': 'Andorra', result: 1 }, + { 'geo.country': 'Angola', result: 15 }, + { 'geo.country': 'Antarctica', result: 23 }, + { 'geo.country': 'Argentina', result: 479 }, + { 'geo.country': 'Armenia', result: 73 }, + { 'geo.country': 'Australia', result: 339 }, + { 'geo.country': 'Austria', result: 10 }, + { 'geo.country': 'Azerbaijan', result: 71 }, + { 'geo.country': 'Bahamas', result: 59 }, + { 'geo.country': 'Bangladesh', result: 3 }, + { 'geo.country': 'Belarus', result: 9 }, + { 'geo.country': 'Belgium', result: 1 }, + { 'geo.country': 'Bolivia', result: 34 }, + { 'geo.country': 'Botswana', result: 7 }, + { 'geo.country': 'Brazil', result: 879 }, + { 'geo.country': 'Bulgaria', result: 3 }, + { 'geo.country': 'Cambodia', result: 52 }, + { 'geo.country': 'Cameroon', result: 3 }, + { 'geo.country': 'Canada', result: 192 }, + { 'geo.country': 'Chile', result: 37 }, + { 'geo.country': 'China', result: 587 }, + { 'geo.country': 'Colombia', result: 222 }, + { 'geo.country': 'Congo', result: 63 }, + { 'geo.country': 'Croatia', result: 4 }, + { 'geo.country': 'Denmark', result: 455 }, + { 'geo.country': 'Ecuador', result: 39 }, + { 'geo.country': 'Egypt', result: 133 }, + { 'geo.country': 'England', result: 297 }, + { 'geo.country': 'Estonia', result: 31 }, + { 'geo.country': 'Finland', result: 460 }, + { 'geo.country': 'France', result: 452 }, + { 'geo.country': 'Gambia', result: 7 }, + { 'geo.country': 'Germany', result: 155 }, + { 'geo.country': 'Ghana', result: 16 }, + { 'geo.country': 'Greece', result: 30 }, + { 'geo.country': 'Guatemala', result: 9 }, + { 'geo.country': 'Honduras', result: 9 }, + { 'geo.country': 'Hungary', result: 8 }, + { 'geo.country': 'Iceland', result: 18 }, + { 'geo.country': 'India', result: 478 }, + { 'geo.country': 'Indonesia', result: 17 }, + { 'geo.country': 'Iran', result: 40 }, + { 'geo.country': 'Iraq', result: 17 }, + { 'geo.country': 'Ireland', result: 46 }, + { 'geo.country': 'Israel', result: 28 }, + { 'geo.country': 'Italy', result: 25 }, + { 'geo.country': 'Jamaica', result: 21 }, + { 'geo.country': 'Japan', result: 97 }, + { 'geo.country': 'Liechtenstein', result: 22 }, + { 'geo.country': 'Madagascar', result: 9 }, + { 'geo.country': 'Malta', result: 1 }, + { 'geo.country': 'Mexico', result: 31 }, + { 'geo.country': 'Moldova', result: 39 }, + { 'geo.country': 'Mongolia', result: 54 }, + { 'geo.country': 'Netherlands', result: 28 }, + { 'geo.country': 'New Zealand', result: 16 }, + { 'geo.country': 'Norway', result: 22 }, + { 'geo.country': 'Pakistan', result: 45 }, + { 'geo.country': 'Paraguay', result: 59 }, + { 'geo.country': 'Poland', result: 667 }, + { 'geo.country': 'Portugal', result: 29 }, + { 'geo.country': 'Romania', result: 1 }, + { 'geo.country': 'Russia', result: 600 }, + { 'geo.country': 'Samoa', result: 62 }, + { 'geo.country': 'Scotland', result: 9 }, + { 'geo.country': 'Senegal', result: 15 }, + { 'geo.country': 'Serbia', result: 17 }, + { 'geo.country': 'Singapore', result: 9 }, + { 'geo.country': 'Slovakia', result: 27 }, + { 'geo.country': 'Slovenia', result: 1 }, + { 'geo.country': 'Somalia', result: 9 }, + { 'geo.country': 'South Korea', result: 61 }, + { 'geo.country': 'Spain', result: 60 }, + { 'geo.country': 'Sweden', result: 83 }, + { 'geo.country': 'Switzerland', result: 13 }, + { 'geo.country': 'Thailand', result: 9 }, + { 'geo.country': 'Ukraine', result: 13 }, + { 'geo.country': 'United States', result: 1299 }, + { 'geo.country': 'Uruguay', result: 12 }, + { 'geo.country': 'Venezuela', result: 63 }, + { 'geo.country': 'Vietnam', result: 30 }, + { 'geo.country': 'Wales', result: 91 } + ] + }, + 'choropleth-us': { + query: { + analysis_type: 'count', + event_collection: 'homepage_views', + timeframe: { + start: '2019-04-13T00:00:00.000-00:00', + end: '2019-04-14T00:00:00.000-00:00' + }, + group_by: ['geo.province'], + filters: [ + { + property_name: 'geo.country', + operator: 'eq', + property_value: 'United States' + } + ], + timezone: 3600 }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = n(4), - i = a(n(16)), - o = a(n(1)); - function a(t) { - return t && t.__esModule ? t : { default: t }; + result: [ + { result: 6, 'geo.province': 'Alabama' }, + { result: 17, 'geo.province': 'Alaska' }, + { result: 9, 'geo.province': 'American Samoa' }, + { result: 11, 'geo.province': 'Arizona' }, + { result: 14, 'geo.province': 'Arkansas' }, + { result: 21, 'geo.province': 'California' }, + { result: 11, 'geo.province': 'Connecticut' }, + { result: 53, 'geo.province': 'Delaware' }, + { result: 66, 'geo.province': 'Florida' }, + { result: 26, 'geo.province': 'Georgia' }, + { result: 51, 'geo.province': 'Hawaii' }, + { result: 46, 'geo.province': 'Idaho' }, + { result: 9, 'geo.province': 'Illinois' }, + { result: 77, 'geo.province': 'Indiana' }, + { result: 7, 'geo.province': 'Iowa' }, + { result: 11, 'geo.province': 'Kansas' }, + { result: 15, 'geo.province': 'Kentucky' }, + { result: 157, 'geo.province': 'Louisiana' }, + { result: 27, 'geo.province': 'Maine' }, + { result: 16, 'geo.province': 'Maryland' }, + { result: 19, 'geo.province': 'Massachusetts' }, + { result: 54, 'geo.province': 'Michigan' }, + { result: 21, 'geo.province': 'Minnesota' }, + { result: 8, 'geo.province': 'Mississippi' }, + { result: 51, 'geo.province': 'Missouri' }, + { result: 8, 'geo.province': 'Montana' }, + { result: 25, 'geo.province': 'Nebraska' }, + { result: 61, 'geo.province': 'Nevada' }, + { result: 27, 'geo.province': 'New Jersey' }, + { result: 39, 'geo.province': 'New Mexico' }, + { result: 47, 'geo.province': 'New York' }, + { result: 18, 'geo.province': 'North Carolina' }, + { result: 54, 'geo.province': 'Ohio' }, + { result: 6, 'geo.province': 'Oklahoma' }, + { result: 9, 'geo.province': 'Oregon' }, + { result: 51, 'geo.province': 'Pennsylvania' }, + { result: 50, 'geo.province': 'Tennessee' }, + { result: 2, 'geo.province': 'Texas' }, + { result: 23, 'geo.province': 'Utah' }, + { result: 5, 'geo.province': 'Vermont' }, + { result: 8, 'geo.province': 'Virginia' }, + { result: 15, 'geo.province': 'Washington' }, + { result: 39, 'geo.province': 'Wisconsin' }, + { result: 9, 'geo.province': 'Wyoming' } + ] + }, + table: { + query: { + analysis_type: 'extraction', + event_collection: 'user_action', + timeframe: { + start: '2014-02-02T00:00:00.000-00:00', + end: '2014-02-12T00:00:00.000-00:00' + }, + property_names: [ + 'user.name', + 'battery_level', + 'keen.timestamp' + ], + timezone: 3600 + }, + result: [ + { + battery_level: 0.18, + user: { name: 'Florence Clarke' }, + keen: { timestamp: '2014-02-07T20:29:30.915Z' } + }, + { + battery_level: 0.88, + user: { name: 'Nora Briggs' }, + keen: { timestamp: '2014-02-10T18:39:46.587Z' } + }, + { + battery_level: 0.67, + user: { name: 'Kyle Gonzales' }, + keen: { timestamp: '2014-02-10T10:49:19.067Z' } + }, + { + battery_level: 0.47, + user: { name: 'Mason Chapman' }, + keen: { timestamp: '2014-02-08T14:54:31.495Z' } + }, + { + battery_level: 0.73, + user: { name: 'Mollie Jordan' }, + keen: { timestamp: '2014-02-03T18:12:37.714Z' } + }, + { + battery_level: 0.78, + user: { name: 'Jane Moss' }, + keen: { timestamp: '2014-02-11T10:17:42.047Z' } + }, + { + battery_level: 0.83, + user: { name: 'Donald Boone' }, + keen: { timestamp: '2014-02-06T16:05:58.206Z' } + }, + { + battery_level: 0.25, + user: { name: 'Donald Boone' }, + keen: { timestamp: '2014-02-11T09:39:57.938Z' } + }, + { + battery_level: 0.78, + user: { name: 'Phoebe Mack' }, + keen: { timestamp: '2014-02-07T19:55:08.812Z' } + }, + { + battery_level: 0.3, + user: { name: 'Callie Hansen' }, + keen: { timestamp: '2014-02-09T18:28:00.925Z' } + }, + { + battery_level: 0.18, + user: { name: 'Steven McDonald' }, + keen: { timestamp: '2014-02-02T18:31:27.694Z' } + }, + { + battery_level: 0.35, + user: { name: 'Amanda Obrien' }, + keen: { timestamp: '2014-02-04T12:48:03.587Z' } + }, + { + battery_level: 0.5, + user: { name: 'Joe Chambers' }, + keen: { timestamp: '2014-02-06T12:24:13.906Z' } + }, + { + battery_level: 0.59, + user: { name: 'Fanny Bell' }, + keen: { timestamp: '2014-02-10T12:11:11.525Z' } + }, + { + battery_level: 0.58, + user: { name: 'Dominic Haynes' }, + keen: { timestamp: '2014-02-07T19:23:23.654Z' } + }, + { + battery_level: 0.28, + user: { name: 'Lucas Stone' }, + keen: { timestamp: '2014-02-07T18:49:22.586Z' } + } + ] + } + }, + H = { label: 'Default', value: '' }, + U = [ + { label: 'Auto', value: 'auto' }, + { label: '10', value: 10 }, + { label: '12', value: 12 }, + { label: '14', value: 14 }, + { label: '16', value: 16 }, + { label: '18', value: 18 }, + { label: '20', value: 20 }, + { label: '24', value: 24 }, + { label: '30', value: 30 }, + { label: '36', value: 36 }, + { label: '48', value: 48 }, + { label: '60', value: 60 }, + { label: '72', value: 72 } + ], + q = [ + { + label: i.a.createElement( + function(t) { + return i.a.createElement( + 'svg', + w( + { + 'aria-hidden': 'true', + 'data-prefix': 'fas', + 'data-icon': 'bold', + className: + 'bold-solid_svg__svg-inline--fa bold-solid_svg__fa-bold bold-solid_svg__fa-w-12', + viewBox: '0 0 384 512' + }, + t + ), + S + ); + }, + { width: '0.75rem' } + ), + value: 'bold' + }, + { + label: i.a.createElement( + function(t) { + return i.a.createElement( + 'svg', + E( + { + 'aria-hidden': 'true', + 'data-prefix': 'fas', + 'data-icon': 'italic', + className: + 'italic-solid_svg__svg-inline--fa italic-solid_svg__fa-italic italic-solid_svg__fa-w-10', + viewBox: '0 0 320 512' + }, + t + ), + k + ); + }, + { width: '0.625rem' } + ), + value: 'italic' + } + ], + W = [ + { + label: i.a.createElement( + function(t) { + return i.a.createElement( + 'svg', + A( + { + 'aria-hidden': 'true', + 'data-prefix': 'fas', + 'data-icon': 'align-left', + className: + 'align-left-solid_svg__svg-inline--fa align-left-solid_svg__fa-align-left align-left-solid_svg__fa-w-14', + viewBox: '0 0 448 512' + }, + t + ), + T + ); + }, + { width: '0.75rem' } + ), + value: 'left' + }, + { + label: i.a.createElement( + function(t) { + return i.a.createElement( + 'svg', + P( + { + 'aria-hidden': 'true', + 'data-prefix': 'fas', + 'data-icon': 'align-center', + className: + 'align-center-solid_svg__svg-inline--fa align-center-solid_svg__fa-align-center align-center-solid_svg__fa-w-14', + viewBox: '0 0 448 512' + }, + t + ), + M + ); + }, + { width: '0.75rem' } + ), + value: 'center' + }, + { + label: i.a.createElement( + function(t) { + return i.a.createElement( + 'svg', + C( + { + 'aria-hidden': 'true', + 'data-prefix': 'fas', + 'data-icon': 'align-right', + className: + 'align-right-solid_svg__svg-inline--fa align-right-solid_svg__fa-align-right align-right-solid_svg__fa-w-14', + viewBox: '0 0 448 512' + }, + t + ), + O + ); + }, + { width: '0.75rem' } + ), + value: 'right' + } + ], + X = [ + { + label: i.a.createElement( + function(t) { + return i.a.createElement( + 'svg', + I({ viewBox: '0 0 26 30' }, t), + F, + V + ); + }, + { width: '0.85em' } + ), + value: 'top' + }, + { + label: i.a.createElement( + function(t) { + return i.a.createElement( + 'svg', + R({ viewBox: '0 0 26 30' }, t), + z, + N + ); + }, + { width: '0.85em' } + ), + value: 'middle' + }, + { + label: i.a.createElement( + function(t) { + return i.a.createElement( + 'svg', + L({ viewBox: '0 0 26 30' }, t), + j, + D + ); + }, + { width: '0.85em' } + ), + value: 'bottom' + } + ], + Y = [ + { value: 'default', label: 'Default' }, + { value: 'metric', label: 'Metric' }, + { value: 'table', label: 'Table' }, + { value: 'bar', label: 'Bar' }, + { value: 'line', label: 'Line' }, + { value: 'spline', label: 'Spline' }, + { value: 'step', label: 'Step' }, + { value: 'area', label: 'Area' }, + { value: 'pie', label: 'Pie' }, + { value: 'donut', label: 'Donut' }, + { value: 'gauge', label: 'Gauge' }, + { value: 'funnel', label: 'Funnel' }, + { value: 'horizontal-funnel', label: 'Horizontal funnel' }, + { value: 'funnel-3d', label: 'Funnel 3d' }, + { + value: 'horizontal-funnel-3d', + label: 'Horizontal funnel 3d' + }, + { value: 'choropleth', label: 'Choropleth' } + ], + $ = (function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = null != arguments[e] ? arguments[e] : {}, + r = Object.keys(n); + 'function' == typeof Object.getOwnPropertySymbols && + (r = r.concat( + Object.getOwnPropertySymbols(n).filter(function(t) { + return Object.getOwnPropertyDescriptor( + n, + t + ).enumerable; + }) + )), + r.forEach(function(e) { + B(t, e, n[e]); + }); + } + return t; + })( + { + default: { + colors: [ + '#00bbde', + '#fe6672', + '#eeb058', + '#8a8ad6', + '#ff855c', + '#00cfbb', + '#5a9eed', + '#73d483', + '#c879bb', + '#0099b6', + '#d74d58', + '#cb9141', + '#6b6bb6', + '#d86945', + '#00aa99', + '#4281c9', + '#57b566', + '#ac5c9e', + '#27cceb', + '#ff818b', + '#f6bf71', + '#9b9be1', + '#ff9b79', + '#26dfcd', + '#73aff4', + '#87e096', + '#d88bcb' + ] + } + }, + x + ), + K = [{ value: 'default', label: 'Default' }]; + Object.keys(x).forEach(function(t) { + var e = { + value: t, + label: t.charAt(0).toUpperCase() + t.slice(1) + }; + K.push(e); + }); + var Q = { + title: '#222222', + subtitle: '#6f6f6f', + border: '#e8e8e8', + background: '#ffffff', + row: '#f3f5f6', + rowHover: '#e7e7ec' + }, + Z = [ + { label: 'Top', value: 'top' }, + { label: 'Right', value: 'right' }, + { label: 'Bottom', value: 'bottom' }, + { label: 'Left', value: 'left' } + ], + J = [ + { label: 'Top', value: 'top' }, + { label: 'Middle', value: 'middle' }, + { label: 'Bottom', value: 'bottom' } + ], + tt = [ + { label: 'Left', value: 'left' }, + { label: 'Center', value: 'center' }, + { label: 'Right', value: 'right' } + ], + et = [ + { label: 'Auto', value: '' }, + { label: '1', value: 1 }, + { label: '2', value: 2 }, + { label: '3', value: 3 }, + { label: '4', value: 4 }, + { label: '5', value: 5 }, + { label: '6', value: 6 }, + { label: '7', value: 7 }, + { label: '8', value: 8 }, + { label: '9', value: 9 }, + { label: '10', value: 10 } + ], + nt = [ + { label: '1px', value: 1 }, + { label: '2px', value: 2 }, + { label: '4px', value: 4 }, + { label: '8px', value: 8 } + ], + rt = [ + { label: 'Auto', value: 2.5 }, + { label: '1', value: 1 }, + { label: '2', value: 2 }, + { label: '3', value: 3 }, + { label: '4', value: 4 }, + { label: '5', value: 5 }, + { label: '6', value: 6 }, + { label: '7', value: 7 }, + { label: '8', value: 8 }, + { label: '9', value: 9 }, + { label: '10', value: 10 } + ], + it = [ + { label: 'None', value: '' }, + { label: 'Normal', value: 'normal' }, + { label: 'Percent', value: 'percent' } + ], + ot = [ + { label: 'World', value: 'world' }, + { label: 'United States', value: 'us' } + ], + at = [ + { label: 'Absolute', value: 'absolute' }, + { label: 'Relative', value: 'relative' } + ], + st = [ + { label: 'Both sides', value: 'both-sides' }, + { label: 'Left', value: 'left' }, + { label: 'Right', value: 'right' } + ], + ut = 60, + lt = 'transparent', + ct = { + appearance: !0, + title: !0, + axis: !0, + legend: !0, + gridline: !0, + series: !0, + tooltip: !0, + table: !0, + funnel: !0 + }, + ft = [ + 'funnel', + 'funnel-3d', + 'horizontal-funnel', + 'horizontal-funnel-3d' + ], + dt = { + chart: Y[0].value, + chartPalette: K[0].value, + colors: $[K[0].value].colors, + general_prefix: '', + general_suffix: '', + chart_slider_show: !1, + appearance_background: Q.background, + appearance_border: Q.border, + appearance_color: Q.background, + appearance_font_family: H.value, + appearance_font_size: U[11].value, + appearance_font_bold: !0, + appearance_font_italic: !1, + appearance_sparkline: !1, + title_show: !1, + title_text: '', + title_textAlign: tt[0].value, + title_color: Q.title, + title_font_family: H.value, + title_font_size: U[0].value, + title_font_bold: !1, + title_font_italic: !1, + subtitle_show: !1, + subtitle_text: '', + subtitle_textAlign: tt[0].value, + subtitle_color: Q.subtitle, + subtitle_font_family: H.value, + subtitle_font_size: U[0].value, + subtitle_font_bold: !1, + subtitle_font_italic: !1, + axis_vertical_title_show: !1, + axis_vertical_title_text: '', + axis_vertical_title_textAlign: J[1].value, + axis_vertical_title_color: Q.title, + axis_vertical_title_font_family: H.value, + axis_vertical_title_font_size: U[0].value, + axis_vertical_title_font_bold: !1, + axis_vertical_title_font_italic: !1, + axis_vertical_label_show: !1, + axis_vertical_label_color: Q.title, + axis_vertical_label_font_family: H.value, + axis_vertical_label_font_size: U[0].value, + axis_vertical_label_font_bold: !1, + axis_vertical_label_font_italic: !1, + axis_horizontal_title_show: !1, + axis_horizontal_title_text: '', + axis_horizontal_title_textAlign: tt[0].value, + axis_horizontal_title_color: Q.title, + axis_horizontal_title_font_family: H.value, + axis_horizontal_title_font_size: U[0].value, + axis_horizontal_title_font_bold: !1, + axis_horizontal_title_font_italic: !1, + axis_horizontal_label_show: !1, + axis_horizontal_label_color: Q.title, + axis_horizontal_label_font_family: H.value, + axis_horizontal_label_font_size: U[0].value, + axis_horizontal_label_font_bold: !1, + axis_horizontal_label_font_italic: !1, + legend_show: !1, + legend_color: Q.title, + legend_font_family: H.value, + legend_font_size: U[0].value, + legend_font_bold: !1, + legend_font_italic: !1, + legend_layout: Z[0].value, + legend_position_horizontal: tt[0].value, + legend_position_vertical: J[0].value, + grid_show: !1, + grid_lines_color: Q.border, + grid_lines_count: et[0].value, + subgrid_show: !1, + subgrid_lines_color: Q.border, + subgrid_lines_count: et[0].value, + series_label_show: !1, + series_label_color: Q.title, + series_label_font_family: H.value, + series_label_font_size: U[0].value, + series_label_font_bold: !1, + series_label_font_italic: !1, + series_label_textAlign: tt[1].value, + series_line: nt[0].value, + series_points_show: !1, + series_points_size: rt[0].value, + series_stacked: it[0].value, + tooltip_color: Q.title, + tooltip_font_family: H.value, + tooltip_font_size: U[0].value, + tooltip_font_bold: !1, + tooltip_font_italic: !1, + tooltip_background: Q.background, + tooltip_border: lt, + tooltip_simpleTooltip: !1, + table_pagination_show: !1, + table_pagination_limit: 1, + table_header_show: !1, + table_header_textAlign: tt[0].value, + table_header_color: Q.title, + table_header_font_family: H.value, + table_header_font_size: U[0].value, + table_header_font_bold: !1, + table_header_font_italic: !1, + table_body_show: !1, + table_body_textAlign: tt[0].value, + table_body_color: Q.title, + table_body_font_family: H.value, + table_body_font_size: U[0].value, + table_body_font_bold: !1, + table_body_font_italic: !1, + table_body_row_alternate_color: Q.row, + table_body_row_hover_background: Q.rowHover, + choropleth_map: ot[0].value, + choropleth_border_show: !1, + choropleth_border_size: nt[0].value, + choropleth_border_color: Q.border, + funnel_lines: !1, + funnel_results: !1, + funnel_percents_show: !1, + funnel_percents_count: at[0].value, + funnel_percents_decimals: 0, + funnel_hover: !1, + funnel_margin: !1, + funnel_minimal_size: 50, + funnel_effect3d: st[0].value, + funnel_label_textAlign: tt[1].value, + funnel_label_color: Q.title, + funnel_label_font_family: H.value, + funnel_label_font_size: U[0].value, + funnel_label_font_bold: !1, + funnel_label_font_italic: !1 + }; + function ht() { + return (ht = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }).apply(this, arguments); + } + var pt = i.a.createElement( + 'defs', + null, + i.a.createElement('path', { + d: + 'M6.838 2.185l3 3-6.515 6.516-2.675.295a.563.563 0 01-.621-.62l.297-2.678 6.514-6.513zm4.856-.446L10.285.329a1.126 1.126 0 00-1.592 0L7.368 1.656l3 3 1.326-1.325c.44-.44.44-1.152 0-1.591z', + id: 'edit_svg__a' + }) + ), + gt = i.a.createElement( + 'g', + { fill: 'none', fillRule: 'evenodd' }, + i.a.createElement( + 'mask', + { id: 'edit_svg__b', fill: '#fff' }, + i.a.createElement('use', { xlinkHref: '#edit_svg__a' }) + ), + i.a.createElement('use', { + fill: '#000', + fillRule: 'nonzero', + xlinkHref: '#edit_svg__a' + }), + i.a.createElement( + 'g', + { mask: 'url(#edit_svg__b)', fill: '#FDFDFD' }, + i.a.createElement('path', { d: 'M-64-14.436H72v40H-64z' }) + ) + ), + mt = function(t) { + return i.a.createElement( + 'svg', + ht({ width: 12, height: 12 }, t), + pt, + gt + ); + }; + function vt() { + return (vt = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }).apply(this, arguments); + } + var yt = i.a.createElement( + 'defs', + null, + i.a.createElement('path', { + d: + 'M.208.286l.038-.04A.84.84 0 011.393.208l.04.038L4.5 3.313 7.567.246A.84.84 0 018.714.208l.04.038a.84.84 0 01.038 1.147l-.038.04L5.687 4.5l3.067 3.067a.84.84 0 01.038 1.147l-.038.04a.84.84 0 01-1.147.038l-.04-.038L4.5 5.687 1.433 8.754a.84.84 0 01-1.147.038l-.04-.038a.84.84 0 01-.038-1.147l.038-.04L3.313 4.5.246 1.433A.84.84 0 01.208.286l.038-.04-.038.04z', + id: 'remove-x_svg__a' + }) + ), + bt = i.a.createElement( + 'g', + { + transform: 'translate(.5 .5)', + fill: 'none', + fillRule: 'evenodd' + }, + i.a.createElement( + 'mask', + { id: 'remove-x_svg__b', fill: '#fff' }, + i.a.createElement('use', { xlinkHref: '#remove-x_svg__a' }) + ), + i.a.createElement('use', { + fill: '#979797', + fillRule: 'nonzero', + xlinkHref: '#remove-x_svg__a' + }), + i.a.createElement( + 'g', + { mask: 'url(#remove-x_svg__b)', fill: '#FFF' }, + i.a.createElement('path', { d: 'M-48-10.827H54v30H-48z' }) + ) + ), + _t = function(t) { + return i.a.createElement( + 'svg', + vt({ width: 10, height: 10 }, t), + yt, + bt + ); + }; + function xt(t) { + return ( + (function(t) { + if (Array.isArray(t)) { + for ( + var e = 0, n = new Array(t.length); + e < t.length; + e++ + ) + n[e] = t[e]; + return n; + } + })(t) || + (function(t) { + if ( + Symbol.iterator in Object(t) || + '[object Arguments]' === Object.prototype.toString.call(t) + ) + return Array.from(t); + })(t) || + (function() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance' + ); + })() + ); + } + function wt(t, e) { + return ( + (function(t) { + if (Array.isArray(t)) return t; + })(t) || + (function(t, e) { + var n = [], + r = !0, + i = !1, + o = void 0; + try { + for ( + var a, s = t[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !e || n.length !== e); + r = !0 + ); + } catch (t) { + (i = !0), (o = t); + } finally { + try { + r || null == s.return || s.return(); + } finally { + if (i) throw o; } - e.default = { - render: function(t) { - var e = document.createElement('div'), - n = document.createElement('div'), - a = document.createElement('span'), - s = document.createElement('div'), - u = document.createElement('div'), - l = document.createElement('div'); - (e.className = - this.config.theme + ' keen-dataviz-box'), - (n.className = this.config.theme + '-message'), - (s.className = this.config.theme + '-title'), - (s.innerHTML = (0, r.escapeHtml)( - this.config.title || '' - )), - (u.className = this.config.theme + '-subtitle'), - (u.innerHTML = (0, r.escapeHtml)( - this.config.subtitle || '' - )), - (l.className = this.config.theme + '-notes'), - (l.innerHTML = (0, r.escapeHtml)( - this.config.notes || '' - )), - (a.innerHTML = (0, r.escapeHtml)(t) || ''), - n.appendChild(a), - this.config.title && - this.config.showTitle && - e.appendChild(s), - this.config.subtitle && e.appendChild(u), - e.appendChild(n), - this.config.notes && e.appendChild(l), - this.config.ui && - this.config.ui.buttons && - this.config.ui.buttons.download && - this.config.ui.buttons.download.type && - (0, i.default)({ - element: this.el(), - data: (0, r.escapeHtml)(t) || '', - type: this.config.ui.buttons.download.type, - label: this.config.ui.buttons.download.label - }), - this.config.utils && - this.config.utils.clickToCopyToClipboard && - (s.addEventListener('click', function(t) { - return (0, o.default)(t.target.innerText, t); - }), - l.addEventListener('click', function(t) { - return (0, o.default)(t.target.innerText, t); - }), - a.addEventListener('click', function(t) { - return (0, o.default)(t.target.innerText, t); - })), - (this.el().innerHTML = ''), - this.el().appendChild(e); + } + return n; + })(t, e) || + (function() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' + ); + })() + ); + } + var St = Object(v.sortableHandle)(function() { + return i.a.createElement('div', { + style: { + position: 'absolute', + top: 0, + bottom: 0, + left: 0, + right: 0 + } + }); + }), + Et = Object(v.sortableElement)(function(t) { + var e = t.value, + n = t.index, + o = t.removeItem, + a = t.changeColor, + s = t.shouldOpenPicker, + u = wt(Object(r.useState)(!1), 2), + l = u[0], + c = u[1], + f = function() { + return c(!0); + }; + return ( + Object(r.useEffect)(function() { + s && f(); + }, []), + i.a.createElement( + 'div', + { className: 'color-palette__item' }, + i.a.createElement( + 'button', + { + className: 'color-palette__button btn-remove', + type: 'button', + onClick: function() { + return o(n); + }, + style: { opacity: 0 } }, - update: function() { - this.render(); + i.a.createElement(_t, null) + ), + i.a.createElement( + 'button', + { + className: 'color-palette__button btn-edit', + type: 'button', + onClick: f, + style: { opacity: 0 } }, - destroy: function() {} - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function(t) { - var e = t.event, - n = t.type, - o = t.data; - e.preventDefault(); - var a = n.toLowerCase(); - if ( - !['json', 'csv', 'jpg', 'jpeg', 'png'].includes(n) - ) - throw new Error('This type is not supported'); - 'png' !== a - ? 'jpg' !== a && 'jpeg' !== a - ? ('json' === a && - (0, i.default)({ type: a, data: o }), - 'csv' === a && - (0, i.default)({ type: a, data: o })) - : (0, r.default)({ - node: e.currentTarget.previousElementSibling, - quality: 1, - bgcolor: '#fff' - }) - : (0, r.default)({ - node: e.currentTarget.previousElementSibling - }); - }); - var r = o(n(17)), - i = o(n(18)); - function o(t) { - return t && t.__esModule ? t : { default: t }; - } - }, - function(t, e, n) { - !(function(e) { - 'use strict'; - var n = (function() { - return { - escape: function(t) { - return t.replace( - /([.*+?^${}()|\[\]\/\\])/g, - '\\$1' - ); - }, - parseExtension: e, - mimeType: function(t) { - var n, - r = e(t).toLowerCase(); - return ( - ((n = 'application/font-woff'), - { - woff: n, - woff2: n, - ttf: 'application/font-truetype', - eot: 'application/vnd.ms-fontobject', - png: 'image/png', - jpg: 'image/jpeg', - jpeg: 'image/jpeg', - gif: 'image/gif', - tiff: 'image/tiff', - svg: 'image/svg+xml' - })[r] || '' - ); - }, - dataAsUrl: function(t, e) { - return 'data:' + e + ';base64,' + t; - }, - isDataUrl: function(t) { - return -1 !== t.search(/^(data:)/); - }, - canvasToBlob: function(t) { - return t.toBlob - ? new Promise(function(e) { - t.toBlob(e); - }) - : (function(t) { - return new Promise(function(e) { - for ( - var n = window.atob( - t.toDataURL().split(',')[1] - ), - r = n.length, - i = new Uint8Array(r), - o = 0; - o < r; - o++ - ) - i[o] = n.charCodeAt(o); - e(new Blob([i], { type: 'image/png' })); - }); - })(t); - }, - resolveUrl: function(t, e) { - var n = document.implementation.createHTMLDocument(), - r = n.createElement('base'); - n.head.appendChild(r); - var i = n.createElement('a'); - return ( - n.body.appendChild(i), - (r.href = e), - (i.href = t), - i.href - ); - }, - getAndEncode: function(t) { - return ( - s.impl.options.cacheBust && - (t += - (/\?/.test(t) ? '&' : '?') + - new Date().getTime()), - new Promise(function(e) { - var n, - r = new XMLHttpRequest(); - if ( - ((r.onreadystatechange = function() { - if (4 === r.readyState) - if (200 === r.status) { - var i = new FileReader(); - (i.onloadend = function() { - var t = i.result.split(/,/)[1]; - e(t); - }), - i.readAsDataURL(r.response); - } else - n - ? e(n) - : o( - 'cannot fetch resource: ' + - t + - ', status: ' + - r.status - ); - }), - (r.ontimeout = function() { - n - ? e(n) - : o( - 'timeout of 30000ms occured while fetching resource: ' + - t - ); - }), - (r.responseType = 'blob'), - (r.timeout = 3e4), - r.open('GET', t, !0), - r.send(), - s.impl.options.imagePlaceholder) - ) { - var i = s.impl.options.imagePlaceholder.split( - /,/ - ); - i && i[1] && (n = i[1]); - } - function o(t) { - console.error(t), e(''); - } - }) - ); - }, - uid: - ((t = 0), - function() { - return ( - 'u' + - ( - '0000' + - ( - (Math.random() * Math.pow(36, 4)) << - 0 - ).toString(36) - ).slice(-4) + - t++ - ); - }), - delay: function(t) { - return function(e) { - return new Promise(function(n) { - setTimeout(function() { - n(e); - }, t); - }); - }; - }, - asArray: function(t) { - for ( - var e = [], n = t.length, r = 0; - r < n; - r++ - ) - e.push(t[r]); - return e; - }, - escapeXhtml: function(t) { - return t - .replace(/#/g, '%23') - .replace(/\n/g, '%0A'); - }, - makeImage: function(t) { - return new Promise(function(e, n) { - var r = new Image(); - (r.onload = function() { - e(r); - }), - (r.onerror = n), - (r.src = t); - }); - }, - width: function(t) { - var e = n(t, 'border-left-width'), - r = n(t, 'border-right-width'); - return t.scrollWidth + e + r; - }, - height: function(t) { - var e = n(t, 'border-top-width'), - r = n(t, 'border-bottom-width'); - return t.scrollHeight + e + r; - } - }; - var t; - function e(t) { - var e = /\.([^\.\/]*?)$/g.exec(t); - return e ? e[1] : ''; - } - function n(t, e) { - var n = window - .getComputedStyle(t) - .getPropertyValue(e); - return parseFloat(n.replace('px', '')); - } - })(), - r = (function() { - var t = /url\(['"]?([^'"]+?)['"]?\)/g; - return { - inlineAll: function(t, n, o) { - return e(t) - ? Promise.resolve(t) - .then(r) - .then(function(e) { - var r = Promise.resolve(t); - return ( - e.forEach(function(t) { - r = r.then(function(e) { - return i(e, t, n, o); - }); - }), - r - ); - }) - : Promise.resolve(t); - }, - shouldProcess: e, - impl: { readUrls: r, inline: i } - }; - function e(e) { - return -1 !== e.search(t); - } - function r(e) { - for (var r, i = []; null !== (r = t.exec(e)); ) - i.push(r[1]); - return i.filter(function(t) { - return !n.isDataUrl(t); - }); - } - function i(t, e, r, i) { - return Promise.resolve(e) - .then(function(t) { - return r ? n.resolveUrl(t, r) : t; - }) - .then(i || n.getAndEncode) - .then(function(t) { - return n.dataAsUrl(t, n.mimeType(e)); - }) - .then(function(r) { - return t.replace( - (function(t) { - return new RegExp( - '(url\\([\'"]?)(' + - n.escape(t) + - ')([\'"]?\\))', - 'g' - ); - })(e), - '$1' + r + '$3' - ); - }); - } - })(), - i = (function() { - return { - resolveAll: function() { - return t(document) - .then(function(t) { - return Promise.all( - t.map(function(t) { - return t.resolve(); - }) - ); - }) - .then(function(t) { - return t.join('\n'); - }); - }, - impl: { readAll: t } - }; - function t() { - return Promise.resolve( - n.asArray(document.styleSheets) - ) - .then(function(t) { - var e = []; - return ( - t.forEach(function(t) { - try { - n.asArray(t.cssRules || []).forEach( - e.push.bind(e) - ); - } catch (e) { - console.log( - 'Error while reading CSS rules from ' + - t.href, - e.toString() - ); - } - }), - e - ); - }) - .then(function(t) { - return t - .filter(function(t) { - return t.type === CSSRule.FONT_FACE_RULE; - }) - .filter(function(t) { - return r.shouldProcess( - t.style.getPropertyValue('src') - ); - }); - }) - .then(function(e) { - return e.map(t); - }); - function t(t) { - return { - resolve: function() { - var e = (t.parentStyleSheet || {}).href; - return r.inlineAll(t.cssText, e); - }, - src: function() { - return t.style.getPropertyValue('src'); - } - }; + i.a.createElement(mt, null) + ), + i.a.createElement( + 'div', + { + className: 'color-palette__trigger', + style: { + backgroundColor: e, + width: '134px', + height: '34px', + padding: '5px', + border: '1px solid #ccc', + display: 'inline-flex', + alignItems: 'center', + justifyContent: 'center', + position: 'relative' + } + }, + i.a.createElement(St, null) + ), + l + ? i.a.createElement( + 'div', + { className: 'color-picker__popover' }, + i.a.createElement('div', { + className: 'color-picker__cover', + onClick: function() { + return c(!1); } - } - })(), - o = (function() { - return { - inlineAll: function e(i) { - return i instanceof Element - ? (function(t) { - var e = t.style.getPropertyValue( - 'background' - ); - return e - ? r - .inlineAll(e) - .then(function(e) { - t.style.setProperty( - 'background', - e, - t.style.getPropertyPriority( - 'background' - ) - ); - }) - .then(function() { - return t; - }) - : Promise.resolve(t); - })(i).then(function() { - return i instanceof HTMLImageElement - ? t(i).inline() - : Promise.all( - n - .asArray(i.childNodes) - .map(function(t) { - return e(t); - }) - ); - }) - : Promise.resolve(i); + }), + i.a.createElement(_.SketchPicker, { + className: 'color-picker__picker', + color: e, + onChangeComplete: function(t) { + return a(t.hex, n); }, - impl: { newImage: t } - }; - function t(t) { - return { - inline: function(e) { - return n.isDataUrl(t.src) - ? Promise.resolve() - : Promise.resolve(t.src) - .then(e || n.getAndEncode) - .then(function(e) { - return n.dataAsUrl( - e, - n.mimeType(t.src) - ); - }) - .then(function(e) { - return new Promise(function(n, r) { - (t.onload = n), - (t.onerror = r), - (t.src = e); - }); - }); - } - }; - } - })(), - a = { imagePlaceholder: void 0, cacheBust: !1 }, - s = { - toSvg: u, - toPng: function(t, e) { - return l(t, e || {}).then(function(t) { - return t.toDataURL(); - }); - }, - toJpeg: function(t, e) { - return l(t, (e = e || {})).then(function(t) { - return t.toDataURL( - 'image/jpeg', - e.quality || 1 - ); - }); + disableAlpha: !0 + }) + ) + : null + ) + ); + }), + kt = Object(v.sortableContainer)(function(t) { + var e = t.children; + return i.a.createElement( + 'div', + { className: 'color-palette__list' }, + e + ); + }), + At = function(t) { + var e = t.colors, + n = t.onChange, + o = wt(Object(r.useState)(xt(e)), 2), + a = o[0], + s = o[1], + u = wt(Object(r.useState)(!1), 2), + l = u[0], + c = u[1], + d = Object(r.useRef)(), + h = d.current; + Object(r.useEffect)( + function() { + (d.current = a), f()(h, e) || s(e), c(!1); + }, + [e] + ), + Object(r.useEffect)( + function() { + f()(a, e) || n(a), c(!1); + }, + [a] + ); + var p = function(t) { + var e = xt(a); + e.splice(t, 1), s(e); + }, + g = function(t, e) { + var n = xt(a); + (n[e] = t), s(n); + }; + return i.a.createElement( + 'div', + { className: 'color-palette' }, + i.a.createElement( + kt, + { + onSortEnd: function(t) { + var e = t.oldIndex, + n = t.newIndex, + r = b()(a, e, n); + s(r); + }, + useDragHandle: !0, + axis: 'xy', + helperClass: 'color-palette__item-drag' + }, + a.map(function(t, e) { + return i.a.createElement(Et, { + key: 'color-'.concat(e), + index: e, + value: t, + removeItem: p, + changeColor: g, + shouldOpenPicker: l + }); + }) + ), + i.a.createElement( + 'button', + { + className: 'btn-list btn', + type: 'button', + onClick: function() { + var t = [].concat(xt(a), ['#222222']); + s(t), c(!0); + } + }, + 'Add' + ) + ); + }, + Tt = At; + (At.propTypes = { colors: a.a.array, onChange: a.a.func }), + (At.defaultProps = { colors: [], onChange: function() {} }); + var Ct = function(t) { + var e = t.items, + n = t.singleChoice, + r = t.groupName, + o = t.activeItem, + a = t.title, + s = t.onChange, + u = e.map(function(t) { + return n + ? i.a.createElement( + 'label', + { + className: 'button-group__label '.concat( + t.value === o.value && 'active' + ), + key: t.value }, - toBlob: function(t, e) { - return l(t, e || {}).then(n.canvasToBlob); + t.label, + i.a.createElement('input', { + type: 'radio', + value: t.value, + checked: t.value === o.value, + name: r, + onChange: s, + className: 'button-group__input' + }) + ) + : i.a.createElement( + 'label', + { + className: 'button-group__label '.concat( + o[t.value] && 'active' + ), + key: t.value }, - toPixelData: function(t, e) { - return l(t, e || {}).then(function(e) { - return e - .getContext('2d') - .getImageData( - 0, - 0, - n.width(t), - n.height(t) - ).data; - }); + t.label, + i.a.createElement('input', { + type: 'checkbox', + value: t.value, + checked: o[t.value], + onChange: s, + className: 'button-group__input' + }) + ); + }), + l = i.a.createElement( + 'div', + { className: 'button-group__title' }, + a + ); + return i.a.createElement( + 'div', + { className: 'button-group' }, + a && l, + i.a.createElement( + 'div', + { className: 'button-group__wrapper' }, + u + ) + ); + }, + Ot = Ct; + (Ct.propTypes = { + items: a.a.arrayOf( + a.a.shape({ + label: a.a.oneOfType([a.a.string, a.a.object]), + value: a.a.string + }) + ).isRequired, + singleChoice: a.a.bool.isRequired, + groupName: a.a.string, + activeItem: a.a.shape({ + label: a.a.oneOfType([a.a.string, a.a.object]), + value: a.a.string + }).isRequired, + title: a.a.string, + onChange: a.a.func.isRequired + }), + (Ct.defaultProps = { + items: [], + singleChoice: !1, + activeItem: [], + onChange: function() {} + }); + var Pt = n(90); + function Mt(t, e) { + return ( + (function(t) { + if (Array.isArray(t)) return t; + })(t) || + (function(t, e) { + var n = [], + r = !0, + i = !1, + o = void 0; + try { + for ( + var a, s = t[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !e || n.length !== e); + r = !0 + ); + } catch (t) { + (i = !0), (o = t); + } finally { + try { + r || null == s.return || s.return(); + } finally { + if (i) throw o; + } + } + return n; + })(t, e) || + (function() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' + ); + })() + ); + } + var Lt = function(t) { + var e = t.title, + n = t.initialColor, + o = t.defaultColor, + a = t.onChange, + s = Mt(Object(r.useState)({ hex: '#222222' }), 2), + u = s[0], + l = s[1], + c = Mt(Object(r.useState)(!1), 2), + f = c[0], + d = c[1]; + Object(r.useEffect)(function() { + n ? l({ hex: n }) : o && l({ hex: o }); + }, []); + var h = { + input: { + border: 'none', + outline: 'none', + fontSize: '14px' + }, + label: { display: 'none' }, + color: { background: ''.concat(u.hex) } + }, + p = function() { + d(!1); + }, + g = function(t) { + t.hex ? (l(t), a(t, e)) : l({ hex: n }); + }; + return i.a.createElement( + 'div', + { className: 'custom-color-picker' }, + e && + i.a.createElement( + 'div', + { className: 'custom-color-picker__title' }, + e + ), + i.a.createElement( + 'div', + { className: 'custom-color-picker__wrapper' }, + i.a.createElement( + 'div', + { + className: 'custom-color-picker__swatch', + style: h.swatch, + onClick: function() { + d(!f); + } + }, + i.a.createElement('div', { + className: 'custom-color-picker__color', + style: h.color + }) + ), + i.a.createElement(Pt.EditableInput, { + style: h, + label: 'hex', + value: u.hex === lt ? 'AUTO' : u.hex, + onChange: g + }), + f + ? i.a.createElement( + 'div', + { + className: 'custom-color-picker__popover', + style: h.popover }, - impl: { - fontFaces: i, - images: o, - util: n, - inliner: r, - options: {} + i.a.createElement('div', { + className: 'custom-color-picker__cover', + style: h.cover, + onClick: p + }), + i.a.createElement( + 'button', + { + className: 'btn btn__small btn-reset', + onClick: function() { + g({ hex: o || lt }); + } + }, + 'Auto' + ), + i.a.createElement( + 'button', + { className: 'btn-close', onClick: p }, + '×' + ), + i.a.createElement(_.SketchPicker, { + color: u, + onChange: g, + disableAlpha: !0 + }) + ) + : null + ) + ); + }, + jt = Object(_.CustomPicker)(Lt); + (Lt.defaultProps = { title: '', onChange: function() {} }), + (Lt.propTypes = { + title: a.a.string, + initialColor: a.a.string, + onChange: a.a.func.isRequired + }); + var Dt = n(91), + Rt = n.n(Dt), + zt = function(t) { + var e, + n = t.family, + r = t.fonts, + o = t.title, + a = t.onChange; + n && + (Rt.a.load({ google: { families: [n] } }), + (e = { label: n, value: n })); + var s = [H]; + return ( + r && + r.length && + r.forEach(function(t) { + var e = { label: t.family, value: t.family }; + s.push(e); + }), + i.a.createElement( + 'div', + { className: 'font-picker' }, + i.a.createElement( + 'div', + { className: 'font-picker__title' }, + o + ), + i.a.createElement(p.a, { + defaultValue: e || s[0], + options: s, + onChange: a, + classNamePrefix: 'custom-dropdown' + }) + ) + ); + }, + Nt = zt; + function It(t, e, n) { + return ( + e in t + ? Object.defineProperty(t, e, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (t[e] = n), + t + ); + } + (zt.defaultProps = { + title: '', + fonts: [], + onChange: function() {} + }), + (zt.propTypes = { + title: a.a.string.isRequired, + family: a.a.string, + fonts: a.a.array, + onChange: a.a.func.isRequired + }); + var Ft = function(t) { + var e = t.isOpen, + n = t.label, + r = t.children, + o = t.onClick, + a = 'accordion__item'; + return ( + e && (a = ''.concat(a, ' open')), + i.a.createElement( + 'div', + { className: a }, + i.a.createElement( + 'div', + { + className: 'accordion__item__heading heading', + onClick: function() { + return o(n); + } + }, + i.a.createElement( + 'svg', + { + xmlns: 'http://www.w3.org/2000/svg', + 'aria-hidden': 'true', + viewBox: '0 0 20 20', + className: 'heading__icon' + }, + i.a.createElement('defs', null), + i.a.createElement('path', { + d: + 'M7 16c-.4-.4-.5-1 0-1.6l3.7-3.9L7 6.6c-.5-.5-.4-1.1 0-1.6.4-.4 1.2-.4 1.6 0 .4.4 4.5 4.7 4.5 4.7.2.2.3.5.3.8s-.1.6-.3.8c0 0-4.1 4.3-4.5 4.7s-1.2.4-1.6 0z' + }) + ), + n + ), + i.a.createElement( + 'div', + { className: 'accordion__item__content', hidden: !e }, + r + ) + ) + ); + }; + (Ft.propTypes = { + isOpen: a.a.bool, + label: a.a.string, + children: a.a.oneOfType([a.a.array, a.a.object]), + onClick: a.a.func + }), + (Ft.defaultProps = { + isOpen: !1, + label: '', + onClick: function() {}, + children: [] + }); + var Vt = function(t) { + var e = t.children, + n = t.allowMultipleOpen, + o = (function(t, e) { + return ( + (function(t) { + if (Array.isArray(t)) return t; + })(t) || + (function(t, e) { + var n = [], + r = !0, + i = !1, + o = void 0; + try { + for ( + var a, s = t[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !e || n.length !== e); + r = !0 + ); + } catch (t) { + (i = !0), (o = t); + } finally { + try { + r || null == s.return || s.return(); + } finally { + if (i) throw o; } - }; - function u(t, e) { - return ( - (function(t) { - void 0 === t.imagePlaceholder - ? (s.impl.options.imagePlaceholder = - a.imagePlaceholder) - : (s.impl.options.imagePlaceholder = - t.imagePlaceholder), - void 0 === t.cacheBust - ? (s.impl.options.cacheBust = a.cacheBust) - : (s.impl.options.cacheBust = t.cacheBust); - })((e = e || {})), - Promise.resolve(t) - .then(function(t) { - return (function t(e, r, i) { - return i || !r || r(e) - ? Promise.resolve(e) - .then(function(t) { - return t instanceof HTMLCanvasElement - ? n.makeImage(t.toDataURL()) - : t.cloneNode(!1); - }) - .then(function(t) { - return o(e, t, r); - }) - .then(function(t) { - return (function(t, e) { - return e instanceof Element - ? Promise.resolve() - .then(function() { - var r, i; - (r = window.getComputedStyle( - t - )), - (i = e.style), - r.cssText - ? (i.cssText = - r.cssText) - : (function(t, e) { - n.asArray( - t - ).forEach(function( - n - ) { - e.setProperty( - n, - t.getPropertyValue( - n - ), - t.getPropertyPriority( - n - ) - ); - }); - })(r, i); - }) - .then(function() { - [ - ':before', - ':after' - ].forEach(function(r) { - !(function(r) { - var i = window.getComputedStyle( - t, - r - ), - o = i.getPropertyValue( - 'content' - ); - if ( - '' !== o && - 'none' !== o - ) { - var a = n.uid(); - e.className = - e.className + - ' ' + - a; - var s = document.createElement( - 'style' - ); - s.appendChild( - (function(t, e, r) { - var i = - '.' + - t + - ':' + - e, - o = r.cssText - ? (function( - t - ) { - var e = t.getPropertyValue( - 'content' - ); - return ( - t.cssText + - ' content: ' + - e + - ';' - ); - })(r) - : (function( - t - ) { - return ( - n - .asArray( - t - ) - .map( - function( - e - ) { - return ( - e + - ': ' + - t.getPropertyValue( - e - ) + - (t.getPropertyPriority( - e - ) - ? ' !important' - : '') - ); - } - ) - .join( - '; ' - ) + - ';' - ); - })(r); - return document.createTextNode( - i + - '{' + - o + - '}' - ); - })(a, r, i) - ), - e.appendChild(s); - } - })(r); - }); - }) - .then(function() { - t instanceof - HTMLTextAreaElement && - (e.innerHTML = t.value), - t instanceof - HTMLInputElement && - e.setAttribute( - 'value', - t.value - ); - }) - .then(function() { - e instanceof SVGElement && - (e.setAttribute( - 'xmlns', - 'http://www.w3.org/2000/svg' - ), - e instanceof - SVGRectElement && - [ - 'width', - 'height' - ].forEach(function(t) { - var n = e.getAttribute( - t - ); - n && - e.style.setProperty( - t, - n - ); - })); - }) - .then(function() { - return e; - }) - : e; - })(e, t); - }) - : Promise.resolve(); - function o(e, r, i) { - var o = e.childNodes; - return 0 === o.length - ? Promise.resolve(r) - : a(r, n.asArray(o), i).then(function() { - return r; - }); - function a(e, n, r) { - var i = Promise.resolve(); - return ( - n.forEach(function(n) { - i = i - .then(function() { - return t(n, r); - }) - .then(function(t) { - t && e.appendChild(t); - }); - }), - i - ); - } - } - })(t, e.filter, !0); - }) - .then(c) - .then(f) - .then(function(t) { - return ( - e.bgcolor && - (t.style.backgroundColor = e.bgcolor), - e.width && (t.style.width = e.width + 'px'), - e.height && - (t.style.height = e.height + 'px'), - e.style && - Object.keys(e.style).forEach(function(n) { - t.style[n] = e.style[n]; - }), - t - ); - }) - .then(function(r) { - return (function(t, e, r) { - return Promise.resolve(t) - .then(function(t) { - return ( - t.setAttribute( - 'xmlns', - 'http://www.w3.org/1999/xhtml' - ), - new XMLSerializer().serializeToString(t) - ); - }) - .then(n.escapeXhtml) - .then(function(t) { - return ( - '' + - t + - '' - ); - }) - .then(function(t) { - return ( - '' + - t + - '' - ); - }) - .then(function(t) { - return ( - 'data:image/svg+xml;charset=utf-8,' + t - ); - }); - })( - r, - e.width || n.width(t), - e.height || n.height(t) - ); - }) + } + return n; + })(t, e) || + (function() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' + ); + })() + ); + })(Object(r.useState)({}), 2), + a = o[0], + s = o[1], + u = function(t) { + var e = !!a[t], + r = n + ? (function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = + null != arguments[e] ? arguments[e] : {}, + r = Object.keys(n); + 'function' == + typeof Object.getOwnPropertySymbols && + (r = r.concat( + Object.getOwnPropertySymbols(n).filter( + function(t) { + return Object.getOwnPropertyDescriptor( + n, + t + ).enumerable; + } + ) + )), + r.forEach(function(e) { + It(t, e, n[e]); + }); + } + return t; + })({}, a, It({}, t, !e)) + : It({}, t, !e); + s(r); + }; + return i.a.createElement( + 'div', + { className: 'accordion' }, + e.map(function(t) { + return ( + t && + i.a.createElement( + Ft, + { + key: t.props.label, + isOpen: !!a[t.props.label], + label: t.props.label, + onClick: u + }, + t.props.children + ) + ); + }) + ); + }, + Bt = Vt; + (Vt.defaultProps = { allowMultipleOpen: !1 }), + (Vt.propTypes = { + allowMultipleOpen: a.a.bool, + children: a.a.array.isRequired + }); + var Gt, + Ht = function(t) { + var e = t.text, + n = e.title, + r = void 0 === n ? '' : n, + o = e.on, + a = void 0 === o ? 'On' : o, + s = e.off, + u = void 0 === s ? 'Off' : s, + l = t.checked, + c = t.onChange, + f = + t.children || + i.a.createElement( + 'span', + { className: 'switcher__title' }, + r + ); + return i.a.createElement( + 'div', + { + className: 'switcher '.concat(t.className && t.className) + }, + i.a.createElement( + 'label', + { className: 'switcher__label' }, + f, + i.a.createElement('input', { + type: 'checkbox', + name: 'on-off-switch', + className: 'switcher__input', + checked: l, + onChange: c + }), + i.a.createElement( + 'div', + { + className: 'switcher__toggle', + 'aria-hidden': 'true' + }, + i.a.createElement('div', { + className: 'switcher__switch' + }) + ), + i.a.createElement( + 'div', + { className: 'switcher__value' }, + i.a.createElement( + 'span', + { className: 'switcher__value__label on' }, + a + ), + i.a.createElement( + 'span', + { className: 'switcher__value__label off' }, + u + ) + ) + ) + ); + }, + Ut = Ht; + function qt(t, e, n) { + return ( + e in t + ? Object.defineProperty(t, e, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (t[e] = n), + t + ); + } + function Wt() { + return (Wt = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }).apply(this, arguments); + } + (Ht.defaultProps = { text: {}, onChange: function() {} }), + (Ht.propTypes = { + text: a.a.shape({ + title: a.a.string, + on: a.a.string, + off: a.a.string + }), + checked: a.a.bool.isRequired, + onChange: a.a.func.isRequired + }); + var Xt = function(t) { + var e = t.name, + n = t.type, + o = t.placeholder, + a = t.onChange, + s = t.className, + u = t.value, + l = void 0 === u ? '' : u, + c = t.error, + f = (t.children, t.label), + d = (function(t, e) { + if (null == t) return {}; + var n, + r, + i = (function(t, e) { + if (null == t) return {}; + var n, + r, + i = {}, + o = Object.keys(t); + for (r = 0; r < o.length; r++) + (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); + return i; + })(t, e); + if (Object.getOwnPropertySymbols) { + var o = Object.getOwnPropertySymbols(t); + for (r = 0; r < o.length; r++) + (n = o[r]), + e.indexOf(n) >= 0 || + (Object.prototype.propertyIsEnumerable.call( + t, + n + ) && + (i[n] = t[n])); + } + return i; + })(t, [ + 'name', + 'type', + 'placeholder', + 'onChange', + 'className', + 'value', + 'error', + 'children', + 'label' + ]), + h = (function(t, e) { + return ( + (function(t) { + if (Array.isArray(t)) return t; + })(t) || + (function(t, e) { + var n = [], + r = !0, + i = !1, + o = void 0; + try { + for ( + var a, s = t[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !e || n.length !== e); + r = !0 + ); + } catch (t) { + (i = !0), (o = t); + } finally { + try { + r || null == s.return || s.return(); + } finally { + if (i) throw o; + } + } + return n; + })(t, e) || + (function() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' ); + })() + ); + })(Object(r.useState)(l), 2), + p = h[0], + g = h[1]; + Object(r.useEffect)( + function() { + var t = setTimeout(function() { + a(p); + }, 500); + return function() { + return clearTimeout(t); + }; + }, + [p] + ); + var m = s + ? 'form-input__input '.concat(s) + : 'form-input__input'; + return i.a.createElement( + 'div', + { className: 'form-input' }, + f && + i.a.createElement( + 'label', + { htmlFor: e, className: 'form-input__label' }, + f + ), + i.a.createElement( + 'input', + Wt( + { + name: e, + type: n, + placeholder: o, + onChange: function(t) { + t.persist(), g(t.target.value); + }, + value: p, + className: m, + style: c && { border: 'solid 1px red' } + }, + d + ) + ), + c && i.a.createElement('p', null, c) + ); + }, + Yt = Xt; + (Xt.defaultProps = { type: 'text', className: '' }), + (Xt.propTypes = + (qt( + (Gt = { + name: a.a.string.isRequired, + type: a.a.string, + label: a.a.string, + placeholder: a.a.string + }), + 'type', + a.a.oneOf(['text', 'number', 'password', 'email']) + ), + qt(Gt, 'className', a.a.string), + qt(Gt, 'value', a.a.any), + qt(Gt, 'onChange', a.a.func.isRequired), + Gt)); + var $t = n(35), + Kt = n.n($t), + Qt = n(92), + Zt = n.n(Qt), + Jt = n(93), + te = n.n(Jt), + ee = (n(229), n(94)); + function ne(t) { + return (ne = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(t) { + return typeof t; + } + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t; + })(t); + } + function re() { + var t = (function(t, e) { + return ( + e || (e = t.slice(0)), + Object.freeze( + Object.defineProperties(t, { + raw: { value: Object.freeze(e) } + }) + ) + ); + })([ + '\n ', + ' .keen-dataviz {\n ', + '\n ', + '\n }\n ', + ' .chart-title,\n ', + ' .chart-subtitle {\n ', + '\n }\n ', + ' .keen-dataviz,\n ', + ' .c3 svg {\n ', + '\n }\n ', + ' .keen-dataviz .keen-dataviz-title,\n ', + ' .keen-dataviz .keen-dataviz-metric-title,\n ', + ' .chart-title input {\n display: block;\n ', + '\n ', + '\n ', + '\n ', + '\n ', + '\n ', + '\n }\n ', + ' .keen-dataviz .keen-dataviz-subtitle,\n ', + ' .keen-dataviz .keen-dataviz-metric-subtitle,\n ', + ' .chart-subtitle input {\n width: 100%;\n display: block;\n ', + '\n ', + '\n ', + '\n ', + '\n ', + '\n ', + '\n }\n ', + ' .keen-dataviz .c3-axis.c3-axis-y .tick text {\n ', + '\n ', + '\n ', + '\n ', + '\n ', + '\n }\n ', + ' .keen-dataviz .c3-axis.c3-axis-x .tick text {\n ', + '\n ', + '\n ', + '\n ', + '\n ', + '\n }\n ', + ' .keen-dataviz .keen-c3-legend .legend-item-text {\n ', + '\n ', + '\n ', + '\n ', + '\n ', + '\n }\n ', + ' .keen-dataviz .c3-grid line,\n ', + ' .keen-dataviz .chart-lines {\n ', + '\n }\n ', + ' .keen-dataviz .c3-ygrid {\n ', + '\n }\n ', + ' .keen-dataviz .c3-axis .c3-axis-y-label {\n ', + '\n ', + '\n ', + '\n ', + '\n ', + '\n }\n ', + ' .keen-dataviz .c3-axis .c3-axis-x-label {\n ', + '\n ', + '\n ', + '\n ', + '\n ', + '\n }\n ', + ' .keen-dataviz .c3-chart-texts .c3-text {\n ', + '\n ', + '\n ', + '\n ', + '\n ', + '\n }\n ', + ' .keen-dataviz .c3-chart-lines .c3-shape.c3-line {\n ', + '\n }\n ', + ' .keen-dataviz .c3-tooltip {\n ', + '\n ', + '\n ', + '\n ', + '\n ', + '\n ', + '\n ', + '\n }\n ', + ' .keen-dataviz .keen-dataviz-metric-value {\n ', + '\n ', + '\n ', + '\n ', + '\n ', + '\n }\n ', + ' .keen-dataviz-table th {\n ', + '\n ', + '\n ', + '\n ', + '\n ', + '\n ', + '\n }\n ', + ' .keen-dataviz-table tr td,\n ', + ' .keen-dataviz-table .table-data-row {\n ', + '\n ', + '\n ', + '\n ', + '\n ', + '\n ', + '\n }\n ', + ' .keen-dataviz-table .table-data-row:nth-child(even) td {\n ', + '\n }\n ', + ' .keen-dataviz-table .table-data-row:hover td {\n ', + '\n color: inherit;\n }\n ', + ' .keen-dataviz-rendering .text-label {\n display: block;\n ', + '\n ', + '\n ', + '\n ', + '\n ', + '\n }\n ' + ]); + return ( + (re = function() { + return t; + }), + t + ); + } + function ie(t, e) { + if (null == t) return {}; + var n, + r, + i = (function(t, e) { + if (null == t) return {}; + var n, + r, + i = {}, + o = Object.keys(t); + for (r = 0; r < o.length; r++) + (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); + return i; + })(t, e); + if (Object.getOwnPropertySymbols) { + var o = Object.getOwnPropertySymbols(t); + for (r = 0; r < o.length; r++) + (n = o[r]), + e.indexOf(n) >= 0 || + (Object.prototype.propertyIsEnumerable.call(t, n) && + (i[n] = t[n])); + } + return i; + } + function oe(t) { + var e = (function(t, e) { + if ('object' !== ne(t) || null === t) return t; + var n = t[Symbol.toPrimitive]; + if (void 0 !== n) { + var r = n.call(t, e); + if ('object' !== ne(r)) return r; + throw new TypeError( + '@@toPrimitive must return a primitive value.' + ); + } + return String(t); + })(t, 'string'); + return 'symbol' === ne(e) ? e : String(e); + } + function ae(t) { + for (var e = 1; e < arguments.length; e++) { + var n = null != arguments[e] ? arguments[e] : {}, + r = Object.keys(n); + 'function' == typeof Object.getOwnPropertySymbols && + (r = r.concat( + Object.getOwnPropertySymbols(n).filter(function(t) { + return Object.getOwnPropertyDescriptor(n, t).enumerable; + }) + )), + r.forEach(function(e) { + se(t, e, n[e]); + }); + } + return t; + } + function se(t, e, n) { + return ( + e in t + ? Object.defineProperty(t, e, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (t[e] = n), + t + ); + } + function ue(t) { + return { + chartBackground: t.appearance_background + ? 'background-color: '.concat(t.appearance_background, ';') + : '', + chartBorder: t.appearance_border + ? 'border-color: '.concat(t.appearance_border, ';') + : '', + chartFont: t.appearance_font_family + ? 'font-family: "'.concat(t.appearance_font_family, '";') + : '', + chartFontSize: + 'auto' !== t.appearance_font_size + ? 'font-size: '.concat(t.appearance_font_size, 'px;') + : '', + chartFontBold: t.appearance_font_bold + ? 'font-weight: bold;' + : '', + chartFontItalic: t.appearance_font_italic + ? 'font-style: italic;' + : '', + chartColor: t.appearance_color + ? 'color: '.concat(t.appearance_color, ';') + : '', + titleTextAlign: 'text-align: '.concat(t.title_textAlign, ';'), + titleColor: t.title_color + ? 'color: '.concat(t.title_color, ';') + : '', + titleFontFamily: t.title_font_family + ? 'font-family: "'.concat(t.title_font_family, '";') + : '', + titleFontSize: + 'auto' !== t.title_font_size + ? 'font-size: '.concat(t.title_font_size, 'px;') + : '', + titleFontBold: t.title_font_bold ? 'font-weight: bold;' : '', + titleFontItalic: t.title_font_italic + ? 'font-style: italic;' + : '', + subtitleTextAlign: 'text-align: '.concat( + t.subtitle_textAlign, + ';' + ), + subtitleColor: t.subtitle_color + ? 'color: '.concat(t.subtitle_color, ';') + : '', + subtitleFontFamily: t.subtitle_font_family + ? 'font-family: "'.concat(t.subtitle_font_family, '";') + : '', + subtitleFontSize: + 'auto' !== t.subtitle_font_size + ? 'font-size: '.concat(t.subtitle_font_size, 'px;') + : '', + subtitleFontBold: t.subtitle_font_bold + ? 'font-weight: bold;' + : '', + subtitleFontItalic: t.subtitle_font_italic + ? 'font-style: italic;' + : '', + axisYTitleFont: t.axis_vertical_title_font_family + ? 'font-family: "'.concat( + t.axis_vertical_title_font_family, + '";' + ) + : '', + axisYTitleFontSize: + 'auto' !== t.axis_vertical_title_font_size + ? 'font-size: '.concat( + t.axis_vertical_title_font_size, + 'px;' + ) + : '', + axisYTitleFontBold: t.axis_vertical_title_font_bold + ? 'font-weight: bold;' + : '', + axisYTitleFontItalic: t.axis_vertical_title_font_italic + ? 'font-style: italic;' + : '', + axisYTitleColor: t.axis_vertical_title_color + ? 'fill: '.concat(t.axis_vertical_title_color, ';') + : '', + axisYLabelFont: t.axis_vertical_label_font_family + ? 'font-family: "'.concat( + t.axis_vertical_label_font_family, + '";' + ) + : '', + axisYLabelFontSize: + 'auto' !== t.axis_vertical_label_font_size + ? 'font-size: '.concat( + t.axis_vertical_label_font_size, + 'px;' + ) + : '', + axisYLabelFontBold: t.axis_vertical_label_font_bold + ? 'font-weight: bold;' + : '', + axisYLabelFontItalic: t.axis_vertical_label_font_italic + ? 'font-style: italic;' + : '', + axisYLabelColor: t.axis_vertical_label_color + ? 'fill: '.concat(t.axis_vertical_label_color, ';') + : 'fill: inherit;', + axisXTitleFont: t.axis_horizontal_title_font_family + ? 'font-family: "'.concat( + t.axis_horizontal_title_font_family, + '";' + ) + : '', + axisXTitleFontSize: + 'auto' !== t.axis_horizontal_title_font_size + ? 'font-size: '.concat( + t.axis_horizontal_title_font_size, + 'px;' + ) + : '', + axisXTitleFontBold: t.axis_horizontal_title_font_bold + ? 'font-weight: bold;' + : '', + axisXTitleFontItalic: t.axis_horizontal_title_font_italic + ? 'font-style: italic;' + : '', + axisXTitleColor: t.axis_horizontal_title_color + ? 'fill: '.concat(t.axis_horizontal_title_color, ';') + : '', + axisXLabelFont: t.axis_horizontal_label_font_family + ? 'font-family: "'.concat( + t.axis_horizontal_label_font_family, + '";' + ) + : '', + axisXLabelFontSize: + 'auto' !== t.axis_horizontal_label_font_size + ? 'font-size: '.concat( + t.axis_horizontal_label_font_size, + 'px;' + ) + : '', + axisXLabelFontBold: t.axis_horizontal_label_font_bold + ? 'font-weight: bold;' + : '', + axisXLabelFontItalic: t.axis_horizontal_label_font_italic + ? 'font-style: italic;' + : '', + axisXLabelColor: t.axis_horizontal_label_color + ? 'fill: '.concat(t.axis_horizontal_label_color, ';') + : '', + legendFont: t.legend_font_family + ? 'font-family: "'.concat(t.legend_font_family, '";') + : '', + legendFontSize: + 'auto' !== t.legend_font_size + ? 'font-size: '.concat(t.legend_font_size, 'px;') + : '', + legendFontBold: t.legend_font_bold + ? 'font-weight: bold;' + : '', + legendFontItalic: t.legend_font_italic + ? 'font-style: italic;' + : '', + legendColor: t.legend_color + ? 'color: '.concat(t.legend_color, ';') + : '', + gridLineShow: t.grid_show + ? 'stroke-opacity: 1;' + : 'stroke-opacity: 0;', + gridLineColor: t.grid_lines_color + ? 'stroke: '.concat(t.grid_lines_color) + : '', + subgridLineColor: t.subgrid_lines_color + ? 'stroke: '.concat(t.subgrid_lines_count) + : '', + seriesLabelFont: t.series_label_font_family + ? 'font-family: "'.concat(t.series_label_font_family, '";') + : '', + seriesLabelFontSize: + 'auto' !== t.series_label_font_size + ? 'font-size: '.concat(t.series_label_font_size, 'px;') + : '', + seriesLabelFontBold: t.series_label_font_bold + ? 'font-weight: bold;' + : '', + seriesLabelFontItalic: t.series_label_font_italic + ? 'font-style: italic;' + : '', + seriesLabelColor: t.series_label_color + ? 'fill: '.concat(t.series_label_color, ' !important;') + : '', + seriesLineThickness: 'stroke-width: '.concat( + t.series_line, + 'px;' + ), + tooltipFont: t.tooltip_font_family + ? 'font-family: "'.concat(t.tooltip_font_family, '";') + : '', + tooltipFontSize: + 'auto' !== t.tooltip_font_size + ? 'font-size: '.concat(t.tooltip_font_size, 'px;') + : '', + tooltipFontBold: t.tooltip_font_bold + ? 'font-weight: bold;' + : '', + tooltipFontItalic: t.tooltip_font_italic + ? 'font-style: italic;' + : '', + tooltipColor: t.tooltip_color + ? 'color: '.concat(t.tooltip_color, ';') + : '', + tooltipBackground: t.tooltip_background + ? 'background-color: '.concat(t.tooltip_background, ';') + : '', + tooltipBorder: + t.tooltip_border && t.tooltip_border !== lt + ? 'border-color: '.concat(t.tooltip_border, ';') + : '', + tableHeaderFont: t.table_header_font_family + ? 'font-family: "'.concat(t.table_header_font_family, '";') + : '', + tableHeaderFontSize: + 'auto' !== t.table_header_font_size + ? 'font-size: '.concat(t.table_header_font_size, 'px;') + : '', + tableHeaderFontBold: t.table_header_font_bold + ? 'font-weight: bold;' + : '', + tableHeaderFontItalic: t.table_header_font_italic + ? 'font-style: italic;' + : '', + tableHeaderTextAlign: 'text-align: '.concat( + t.table_header_textAlign, + ';' + ), + tableHeaderColor: t.table_header_color + ? 'color: '.concat(t.table_header_color, ';') + : '', + tableBodyFont: t.table_body_font_family + ? 'font-family: "'.concat(t.table_body_font_family, '";') + : '', + tableBodyFontSize: + 'auto' !== t.table_body_font_size + ? 'font-size: '.concat(t.table_body_font_size, 'px;') + : '', + tableBodyFontBold: t.table_body_font_bold + ? 'font-weight: bold;' + : '', + tableBodyFontItalic: t.table_body_font_italic + ? 'font-style: italic;' + : '', + tableBodyTextAlign: 'text-align: '.concat( + t.table_body_textAlign, + ';' + ), + tableBodyColor: t.table_body_color + ? 'color: '.concat(t.table_body_color, ';') + : '', + tableBodyRowAltBackground: t.table_body_row_alternate_color + ? 'background-color: '.concat( + t.table_body_row_alternate_color, + ';' + ) + : '', + tableBodyRowHoverBackground: t.table_body_row_hover_background + ? 'background-color: '.concat( + t.table_body_row_hover_background, + ';' + ) + : '', + funnelLabelColor: t.funnel_label_color + ? 'fill: '.concat(t.funnel_label_color, ';') + : '', + funnelLabelFontFamily: t.funnel_label_font_family + ? 'font-family: "'.concat(t.funnel_label_font_family, '";') + : '', + funnelLabelFontSize: + 'auto' !== t.funnel_label_font_size + ? 'font-size: '.concat(t.funnel_label_font_size, 'px;') + : '', + funnelLabelFontBold: t.funnel_label_font_bold + ? 'font-weight: bold;' + : '', + funnelLabelFontItalic: t.funnel_label_font_italic + ? 'font-style: italic;' + : '' + }; + } + function le(t) { + var e = {}, + n = J.map(function(t) { + return t.value; + }), + r = tt.map(function(t) { + return t.value; + }); + if ( + (t.axis_vertical_title_show && + t.axis_vertical_title_text && + l()(e, 'y.label.text', t.axis_vertical_title_text), + t.axis_horizontal_title_show && + t.axis_horizontal_title_text && + l()(e, 'x.label.text', t.axis_horizontal_title_text), + t.axis_vertical_title_textAlign) + ) { + var i = n.includes(t.axis_vertical_title_textAlign) + ? t.axis_vertical_title_textAlign + : n[1]; + l()(e, 'y.label.position', 'outer-'.concat(i)); + } + if (t.axis_horizontal_title_textAlign) { + var o = r.includes(t.axis_horizontal_title_textAlign) + ? t.axis_horizontal_title_textAlign + : r[0]; + l()(e, 'x.label.position', 'outer-'.concat(o)); + } + return ( + 'auto' !== t.axis_horizontal_font_size && + l()(e, 'x.height', ut), + 'auto' !== t.axis_vertical_font_size && + l()(e, 'y.height', ut), + e + ); + } + function ce() { + for ( + var t = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : {}, + e = arguments.length, + n = new Array(e > 1 ? e - 1 : 0), + r = 1; + r < e; + r++ + ) + n[r - 1] = arguments[r]; + if (Array.isArray(n)) { + var i = ae({}, t); + return ( + n.forEach(function(t) { + var e = i, + n = (e[t], ie(e, [t].map(oe))); + i = ae({}, n); + }), + i + ); + } + } + function fe(t) { + for ( + var e = arguments.length, + n = new Array(e > 1 ? e - 1 : 0), + r = 1; + r < e; + r++ + ) + n[r - 1] = arguments[r]; + if (Array.isArray(n)) { + if (n.length > 1) { + var i = ae({}, t); + return ( + n.forEach(function(t) { + i = ae({}, fe(i, t)); + }), + i + ); + } + switch (n[0]) { + case 'axis': + return ce( + t, + 'axis_vertical_title_show', + 'axis_vertical_title_text', + 'axis_vertical_title_textAlign', + 'axis_vertical_title_color', + 'axis_vertical_title_font_family', + 'axis_vertical_title_font_size', + 'axis_vertical_title_font_bold', + 'axis_vertical_title_font_italic', + 'axis_vertical_label_show', + 'axis_vertical_label_color', + 'axis_vertical_label_font_family', + 'axis_vertical_label_font_size', + 'axis_vertical_label_font_bold', + 'axis_vertical_label_font_italic', + 'axis_horizontal_title_show', + 'axis_horizontal_title_text', + 'axis_horizontal_title_textAlign', + 'axis_horizontal_title_color', + 'axis_horizontal_title_font_family', + 'axis_horizontal_title_font_size', + 'axis_horizontal_title_font_bold', + 'axis_horizontal_title_font_italic', + 'axis_horizontal_label_show', + 'axis_horizontal_label_color', + 'axis_horizontal_label_font_family', + 'axis_horizontal_label_font_size', + 'axis_horizontal_label_font_bold', + 'axis_horizontal_label_font_italic' + ); + case 'legend': + return ce( + t, + 'legend_show', + 'legend_color', + 'legend_font_family', + 'legend_font_size', + 'legend_font_bold', + 'legend_font_italic', + 'legend_layout', + 'legend_position_horizontal', + 'legend_position_vertical' + ); + case 'grid': + return ce( + t, + 'grid_show', + 'grid_lines_color', + 'grid_lines_count', + 'subgrid_show', + 'subgrid_lines_color', + 'subgrid_lines_count' + ); + case 'series': + return ce( + t, + 'series_label_show', + 'series_label_textAlign', + 'series_label_color', + 'series_label_font_family', + 'series_label_font_size', + 'series_label_font_bold', + 'series_label_font_italic', + 'series_label_textAlign', + 'series_line', + 'series_points_show', + 'series_points_size' + ); + case 'tooltip': + return ce( + t, + 'tooltip_color', + 'tooltip_font_family', + 'tooltip_font_size', + 'tooltip_font_bold', + 'tooltip_font_italic', + 'tooltip_background', + 'tooltip_border' + ); + case 'table': + return ce( + t, + 'table_pagination_show', + 'table_pagination_limit', + 'table_header_show', + 'table_header_textAlign', + 'table_header_color', + 'table_header_font_family', + 'table_header_font_size', + 'table_header_font_bold', + 'table_header_font_italic', + 'table_body_show', + 'table_body_textAlign', + 'table_body_color', + 'table_body_font_family', + 'table_body_font_size', + 'table_body_font_bold', + 'table_body_font_italic', + 'table_body_row_alternate_color', + 'table_body_row_hover_background' + ); + case 'funnel': + return ce( + t, + 'funnel_lines', + 'funnel_results', + 'funnel_percents_show', + 'funnel_percents_count', + 'funnel_percents_decimals', + 'funnel_hover', + 'funnel_margin', + 'funnel_minimal_size', + 'funnel_effect3d', + 'funnel_label_textAlign', + 'funnel_label_color', + 'funnel_label_font_family', + 'funnel_label_font_size', + 'funnel_label_font_bold', + 'funnel_label_font_italic' + ); + default: + return t; + } + } + } + function de(t, e) { + var n = ue(t), + r = e ? '#'.concat(e) : '.keen-theme-builder', + i = new RegExp(/(^[ \t]*\n)/, 'gm'); + return Object(ee.stripIndent)( + re(), + r, + n.chartBackground, + n.chartBorder, + r, + r, + n.chartBackground, + r, + r, + n.chartFont, + r, + r, + r, + n.titleColor, + n.titleTextAlign, + n.titleFontFamily, + n.titleFontSize, + n.titleFontBold, + n.titleFontItalic, + r, + r, + r, + n.subtitleColor, + n.subtitleTextAlign, + n.subtitleFontFamily, + n.subtitleFontSize, + n.subtitleFontBold, + n.subtitleFontItalic, + r, + n.axisYLabelColor, + n.axisYLabelFont, + n.axisYLabelFontSize, + n.axisYLabelFontBold, + n.axisYLabelFontItalic, + r, + n.axisXLabelColor, + n.axisXLabelFont, + n.axisXLabelFontSize, + n.axisXLabelFontBold, + n.axisXLabelFontItalic, + r, + n.legendFont, + n.legendFontSize, + n.legendFontBold, + n.legendFontItalic, + n.legendColor, + r, + r, + n.gridLineColor, + r, + n.gridLineShow, + r, + n.axisYTitleFont, + n.axisYTitleFontSize, + n.axisYTitleFontBold, + n.axisYTitleFontItalic, + n.axisYTitleColor, + r, + n.axisXTitleFont, + n.axisXTitleFontSize, + n.axisXTitleFontBold, + n.axisXTitleFontItalic, + n.axisXTitleColor, + r, + n.seriesLabelFont, + n.seriesLabelFontSize, + n.seriesLabelFontBold, + n.seriesLabelFontItalic, + n.seriesLabelColor, + r, + n.seriesLineThickness, + r, + n.tooltipFont, + n.tooltipFontSize, + n.tooltipFontBold, + n.tooltipFontItalic, + n.tooltipColor, + n.tooltipBackground, + n.tooltipBorder, + r, + n.chartFont, + n.chartFontSize, + n.chartFontBold, + n.chartFontItalic, + n.chartColor, + r, + n.tableHeaderFont, + n.tableHeaderFontSize, + n.tableHeaderFontBold, + n.tableHeaderFontItalic, + n.tableHeaderTextAlign, + n.tableHeaderColor, + r, + r, + n.tableBodyFont, + n.tableBodyFontSize, + n.tableBodyFontBold, + n.tableBodyFontItalic, + n.tableBodyTextAlign, + n.tableBodyColor, + r, + n.tableBodyRowAltBackground, + r, + n.tableBodyRowHoverBackground, + r, + n.funnelLabelColor, + n.funnelLabelFontFamily, + n.funnelLabelFontSize, + n.funnelLabelFontBold, + n.funnelLabelFontItalic + ).replace(i, ''); + } + function he(t, e) { + var n, + r = t.colors || [], + i = !(!t.title_show || !t.title_text) && t.title_text, + o = + t.subtitle_show && t.subtitle_text + ? t.subtitle_text + : void 0, + a = + 'top' === t.legend_layout || 'bottom' === t.legend_layout + ? t.legend_position_horizontal + : t.legend_position_vertical, + s = t.legend_show + ? { + show: t.legend_show, + position: t.legend_layout, + alignment: a + } + : { show: t.legend_show }, + u = le(t), + l = t.series_points_show + ? { show: t.series_points_show, r: t.series_points_size } + : { show: t.series_points_show }, + c = { labels: t.series_label_show }, + f = + ('default' !== t.chart && 'metric' !== t.chart) || + !t.general_prefix + ? void 0 + : t.general_prefix, + d = + ('default' !== t.chart && 'metric' !== t.chart) || + !t.general_suffix + ? void 0 + : t.general_suffix, + h = t.appearance_sparkline ? t.appearance_sparkline : void 0, + p = t.series_stacked ? t.series_stacked : void 0, + g = !!t.chart_slider_show, + m = + (t.tooltip_simpleTooltip, + ('default' !== t.chart && 'table' !== t.chart) || + !t.table_pagination_show + ? {} + : { + pagination: { + limit: parseInt(t.table_pagination_limit) + } + }), + v = + 'default' === t.chart || 'choropleth' === t.chart + ? { + map: t.choropleth_map, + borders: { + show: t.choropleth_border_show, + size: t.choropleth_border_show + ? t.choropleth_border_size + : void 0, + color: t.choropleth_border_show + ? t.choropleth_border_color + : void 0 + }, + showSlider: t.chart_slider_show } - function l(t, e) { - return u(t, e) - .then(n.makeImage) - .then(n.delay(100)) - .then(function(r) { - var i = (function(t) { - var r = document.createElement('canvas'); - if ( - ((r.width = e.width || n.width(t)), - (r.height = e.height || n.height(t)), - e.bgcolor) - ) { - var i = r.getContext('2d'); - (i.fillStyle = e.bgcolor), - i.fillRect(0, 0, r.width, r.height); - } - return r; - })(t); - return i.getContext('2d').drawImage(r, 0, 0), i; - }); + : {}, + y = + 'default' === t.chart || ft.includes(t.chart) + ? { + lines: t.funnel_lines, + resultValues: t.funnel_results, + percents: { + show: t.funnel_percents_show, + countingMethod: + t.funnel_percents_count || at[0].value, + decimals: t.funnel_percents_show + ? parseInt(t.funnel_percents_decimals) + : void 0 + }, + hover: t.funnel_hover, + marginBetweenSteps: t.funnel_margin, + minimalSize: t.funnel_minimal_size, + effect3d: t.funnel_effect3d + } + : {}; + ('default' !== t.chart && 'heatmap' !== t.chart) || + (n = { + showSlider: g, + simpleTooltip: t.tooltip_simpleTooltip + }); + var b = { + container: '#some_container', + type: t.chart, + title: i, + subtitle: o, + legend: s, + axis: u, + point: l, + data: c, + colors: r, + prefix: f, + suffix: d, + heatmap: n, + choropleth: v, + funnel: y, + sparkline: h, + stacked: p, + table: m + }, + _ = ie(b, ['container', 'type']); + return e + ? _ + : 'const chart = new KeenDataviz('.concat( + JSON.stringify(b, null, 2), + ')' + ); + } + Kt.a.registerLanguage('css', Zt.a), + Kt.a.registerLanguage('js', te.a), + (document.createElement('li').className = 'placeholder'); + var pe = function(t) { + var e = t.type, + n = t.data, + r = + ((function(t, e) { + if (null == t) return {}; + var n, + r, + i = (function(t, e) { + if (null == t) return {}; + var n, + r, + i = {}, + o = Object.keys(t); + for (r = 0; r < o.length; r++) + (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); + return i; + })(t, e); + if (Object.getOwnPropertySymbols) { + var o = Object.getOwnPropertySymbols(t); + for (r = 0; r < o.length; r++) + (n = o[r]), + e.indexOf(n) >= 0 || + (Object.prototype.propertyIsEnumerable.call( + t, + n + ) && + (i[n] = t[n])); + } + })(t, ['type', 'data']), + 'js' === e ? he(n) : de(n)); + return i.a.createElement( + i.a.Fragment, + null, + (function(t) { + return i.a.createElement( + 'button', + { + className: 'builder__btn-copy btn', + onClick: function(e) { + return (function(t, e) { + t.preventDefault(); + var n = document.createElement('textarea'); + (n.value = e), + (n.classList = 'copy-to-clipboard'), + document.body.appendChild(n), + n.select(), + document.execCommand('copy'), + document.body.removeChild(n); + })(e, t); + } + }, + 'Copy to Clipboard' + ); + })(r), + i.a.createElement(Kt.a, { + language: e, + value: r, + className: 'builder__editor' + }) + ); + }, + ge = pe; + (pe.defaultProps = { type: 'js', data: {} }), + (pe.propTypes = { + type: a.a.oneOf(['js', 'css']).isRequired, + data: a.a.object.isRequired + }); + var me = n(14), + ve = n.n(me); + function ye() { + return (ye = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }).apply(this, arguments); + } + var be = function(t) { + var e, + n = t.type, + r = t.colors, + o = void 0 === r ? [] : r, + a = t.legend, + s = void 0 === a ? {} : a, + u = t.axis, + l = void 0 === u ? {} : u, + c = t.title, + f = t.subtitle, + d = t.data, + h = t.point, + p = t.prefix, + g = t.suffix, + m = t.choropleth, + v = t.funnel, + y = t.slider, + b = t.simpleTooltip, + _ = t.sparkline, + x = t.stacked, + w = t.pagination, + S = + ((function(t, e) { + if (null == t) return {}; + var n, + r, + i = (function(t, e) { + if (null == t) return {}; + var n, + r, + i = {}, + o = Object.keys(t); + for (r = 0; r < o.length; r++) + (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); + return i; + })(t, e); + if (Object.getOwnPropertySymbols) { + var o = Object.getOwnPropertySymbols(t); + for (r = 0; r < o.length; r++) + (n = o[r]), + e.indexOf(n) >= 0 || + (Object.prototype.propertyIsEnumerable.call( + t, + n + ) && + (i[n] = t[n])); } - function c(t) { - return i.resolveAll().then(function(e) { - var n = document.createElement('style'); - return ( - t.appendChild(n), - n.appendChild(document.createTextNode(e)), - t + })(t, [ + 'type', + 'colors', + 'legend', + 'axis', + 'title', + 'subtitle', + 'data', + 'point', + 'prefix', + 'suffix', + 'choropleth', + 'funnel', + 'slider', + 'simpleTooltip', + 'sparkline', + 'stacked', + 'pagination' + ]), + function(t) { + var e = function() { + return d && d.labels + ? { label: { show: !0 } } + : { label: { show: !1 } }; + }; + return 'pie' === t + ? { pie: e() } + : 'donut' === t + ? { donut: e() } + : 'gauge' === t + ? { gauge: e() } + : void 0; + }), + E = {}; + return ( + 'heatmap' === n && + (e = { showSlider: y, simpleTooltip: b }), + 'table' === n && w && (E = { pagination: { limit: w } }), + 'default' === n + ? i.a.createElement( + 'div', + { className: 'builder__default-charts' }, + i.a.createElement(ve.a, { + type: 'bar', + title: c, + subtitle: f, + colors: o, + legend: s, + axis: l, + data: d, + point: h, + sparkline: _, + stacked: x, + results: G.bar + }), + i.a.createElement(ve.a, { + type: 'area', + title: c, + subtitle: f, + colors: o, + legend: s, + axis: l, + data: d, + point: h, + sparkline: _, + stacked: x, + results: G.area + }), + i.a.createElement(ve.a, { + type: 'funnel-3d', + title: c, + subtitle: f, + colors: o, + legend: s, + data: d, + point: h, + funnel: v, + results: G['funnel-3d'] + }), + i.a.createElement( + ve.a, + ye( + { + type: 'donut', + title: c, + subtitle: f, + colors: o, + legend: s, + data: d, + point: h, + sparkline: _, + results: G.donut + }, + S('donut') + ) + ) + ) + : i.a.createElement( + ve.a, + ye( + { + type: n, + title: c, + subtitle: f, + colors: o, + legend: s, + axis: l, + data: d, + point: h, + prefix: p, + suffix: g, + heatmap: e, + choropleth: m, + funnel: v, + sparkline: _, + stacked: x, + table: E, + results: + 'choropleth' === n && 'us' === m.map + ? G['choropleth-us'] + : G[n] + }, + S(n) + ) + ) + ); + }, + _e = be; + function xe(t) { + return (xe = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(t) { + return typeof t; + } + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t; + })(t); + } + function we(t) { + return ( + (function(t) { + if (Array.isArray(t)) { + for ( + var e = 0, n = new Array(t.length); + e < t.length; + e++ + ) + n[e] = t[e]; + return n; + } + })(t) || + (function(t) { + if ( + Symbol.iterator in Object(t) || + '[object Arguments]' === Object.prototype.toString.call(t) + ) + return Array.from(t); + })(t) || + (function() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance' + ); + })() + ); + } + function Se(t, e) { + if (null == t) return {}; + var n, + r, + i = (function(t, e) { + if (null == t) return {}; + var n, + r, + i = {}, + o = Object.keys(t); + for (r = 0; r < o.length; r++) + (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); + return i; + })(t, e); + if (Object.getOwnPropertySymbols) { + var o = Object.getOwnPropertySymbols(t); + for (r = 0; r < o.length; r++) + (n = o[r]), + e.indexOf(n) >= 0 || + (Object.prototype.propertyIsEnumerable.call(t, n) && + (i[n] = t[n])); + } + return i; + } + function Ee(t) { + for (var e = 1; e < arguments.length; e++) { + var n = null != arguments[e] ? arguments[e] : {}, + r = Object.keys(n); + 'function' == typeof Object.getOwnPropertySymbols && + (r = r.concat( + Object.getOwnPropertySymbols(n).filter(function(t) { + return Object.getOwnPropertyDescriptor(n, t).enumerable; + }) + )), + r.forEach(function(e) { + ke(t, e, n[e]); + }); + } + return t; + } + function ke(t, e, n) { + return ( + e in t + ? Object.defineProperty(t, e, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (t[e] = n), + t + ); + } + function Ae(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + function Te(t) { + return (Te = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + })(t); + } + function Ce(t, e) { + return (Ce = + Object.setPrototypeOf || + function(t, e) { + return (t.__proto__ = e), t; + })(t, e); + } + (be.propTypes = { + type: a.a.string.isRequired, + colors: a.a.array.isRequired + }), + n(232), + n(234), + n(236); + var Oe = (function(t) { + function e(t) { + var n; + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + })(this, e), + ((n = (function(t, e) { + return !e || + ('object' !== xe(e) && 'function' != typeof e) + ? (function(t) { + if (void 0 === t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return t; + })(t) + : e; + })( + this, + Te(e).call(this, t) + )).handleChartTypeChange = function(t) { + t.value && n.setState({ chart: t.value, isModified: !0 }); + }), + (n.handleChartPaletteChange = function(t) { + var e = t.value ? $[t.value].colors : []; + n.setState({ + chartPalette: t.value, + colors: e, + isModified: !0 + }); + }), + (n.handleColorsChange = function(t) { + n.setState({ colors: t, isModified: !0 }); + }), + (n.renderFontSize = function(t, e) { + var r = U.find(function(t) { + return t.value === n.state[''.concat(e, '_font_size')]; + }); + return i.a.createElement( + 'div', + { className: 'accordion__item__row two-elements' }, + i.a.createElement(Nt, { + key: ''.concat(e, '.font'), + title: t, + family: n.state[''.concat(e, '_font_family')], + fonts: n.state.fonts, + onChange: function(t) { + return n.handleTextStateUpdate( + ''.concat(e, '_font_family'), + t.value + ); + } + }), + i.a.createElement(p.a, { + defaultValue: r || U[0], + options: U, + onChange: function(t) { + return n.handleTextStateUpdate( + ''.concat(e, '_font_size'), + t.value + ); + }, + classNamePrefix: 'custom-dropdown' + }) + ); + }), + (n.renderFontStyle = function(t, e, r, o) { + var a = n.state[''.concat(e, '_textAlign')], + s = r + ? 'accordion__item__row three-elements' + : 'accordion__item__row two-elements'; + return i.a.createElement( + 'div', + { className: s }, + i.a.createElement(jt, { + key: e, + title: t, + initialColor: n.state[''.concat(e, '_color')], + defaultColor: o || Q.title, + onChange: function(t) { + return n.handleTextStateUpdate( + ''.concat(e, '_color'), + t.hex + ); + } + }), + i.a.createElement(Ot, { + items: q, + singleChoice: !1, + groupName: ''.concat(e, '_style'), + activeItem: { + bold: n.state[''.concat(e, '_font_bold')], + italic: n.state[''.concat(e, '_font_italic')] + }, + onChange: function(t) { + return n.handleTextStateUpdate( + ''.concat(e, '_font_').concat(t.target.value), + !n.state[ + ''.concat(e, '_font_').concat(t.target.value) + ] ); + } + }), + r && + i.a.createElement(p.a, { + defaultValue: + W.find(function(t) { + return t.value === a; + }) || W[0], + options: W, + onChange: function(t) { + return n.handleTextStateUpdate( + ''.concat(e, '_textAlign'), + t.value + ); + }, + classNamePrefix: 'custom-dropdown' + }) + ); + }); + var r = t.options.chart, + o = (function() { + switch ( + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : '' + ) { + case 'bar': + case 'horizontal-bar': + case 'area': + case 'line': + case 'spline': + case 'area-spline': + case 'step': + case 'area-step': + return ae({}, fe(dt, 'table', 'funnel')); + case 'table': + return ae( + {}, + fe( + dt, + 'axis', + 'legend', + 'grid', + 'series', + 'tooltip', + 'funnel' + ) + ); + case 'metric': + return ae( + {}, + fe( + dt, + 'axis', + 'legend', + 'grid', + 'series', + 'tooltip', + 'table', + 'funnel' + ) + ); + case 'pie': + case 'donut': + case 'gauge': + return ae( + {}, + fe(dt, 'axis', 'grid', 'table', 'funnel'), + { series_label_show: !0 } + ); + case 'gauge': + return ae( + {}, + fe(dt, 'axis', 'grid', 'legend', 'table', 'funnel') + ); + case 'heatmap': + case 'choropleth': + return ae( + {}, + fe( + dt, + 'axis', + 'series', + 'legend', + 'gridline', + 'table', + 'funnel' + ) + ); + case 'funnel': + case 'funnel-3d': + case 'horizontal-funnel': + case 'horizontal-funnel-3d': + return ae( + {}, + fe( + dt, + 'series', + 'legend', + 'grid', + 'tooltip', + 'table', + 'axis' + ) + ); + default: + return ae({}, dt); + } + })(void 0 === r ? '' : r); + return ( + (n.state = Ee({}, o, t.options, { isModified: !1 })), n + ); + } + var n, r; + return ( + (function(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { value: t, writable: !0, configurable: !0 } + })), + e && Ce(t, e); + })(e, t), + (n = e), + (r = [ + { + key: 'componentDidMount', + value: function() { + var t = this; + fetch( + '' + .concat( + 'https://www.googleapis.com/webfonts/v1/webfonts', + '/?key=' + ) + .concat('AIzaSyC529qus-Wu8LEftuMjSSBOt7mKu5lMm2E') + ) + .then(function(t) { + return t.json(); + }) + .then(function(e) { + return t.setState({ fonts: e.items }); + }) + .catch(function(t) { + return console.error(t); }); - } - function f(t) { - return o.inlineAll(t).then(function() { - return t; + } + }, + { + key: 'componentDidUpdate', + value: function(t, e) { + var n = this; + f()(t, this.props) || + this.setState(function(t) { + return Ee({}, t, n.props.options); }); - } - t.exports = s; - })(); + var r = this.state, + i = (r.fonts, r.isModified), + o = Se(r, ['fonts', 'isModified']), + a = + (e.fonts, + e.isModified, + Se(e, ['fonts', 'isModified'])), + s = this.props, + u = s.isDashboardBuilderActive, + l = (s.containerId, s.onChange), + c = u ? { theme: o, options: he(o, !0) } : o; + i && !f()(o, a) && l && this.props.onChange(c); + } }, - function(t, e, n) { - (function(n) { - var r, i, o; - (i = []), - void 0 === - (o = - 'function' == - typeof (r = function() { - 'use strict'; - function e(t, e, n) { - var r = new XMLHttpRequest(); - r.open('GET', t), - (r.responseType = 'blob'), - (r.onload = function() { - a(r.response, e, n); - }), - (r.onerror = function() { - console.error('could not download file'); - }), - r.send(); - } - function r(t) { - var e = new XMLHttpRequest(); - e.open('HEAD', t, !1); - try { - e.send(); - } catch (t) {} - return 200 <= e.status && 299 >= e.status; + { + key: 'handleStateChange', + value: function(t, e) { + var n = Object(s.a)(this.state, function(n) { + (n.isModified = !0), l()(n, t, e); + }); + this.setState(function() { + return n; + }); + } + }, + { + key: 'addItem', + value: function() { + this.setState(function(t) { + return { + colors: [].concat(we(t.colors), ['#222222']), + isModified: !0 + }; + }); + } + }, + { + key: 'removeItem', + value: function(t) { + this.setState(function(e) { + var n = we(e.colors); + return n.splice(t, 1), { colors: n, isModified: !0 }; + }); + } + }, + { + key: 'onColorChange', + value: function(t, e) { + this.setState(function(n) { + var r = we(n.colors); + return (r[e] = t), { colors: r, isModified: !0 }; + }); + } + }, + { + key: 'renderChartTypeItem', + value: function() { + var t = this, + e = Y.find(function(e) { + return e.value === t.state.chart; + }); + return i.a.createElement( + 'div', + { className: 'keen-theme-builder__row' }, + i.a.createElement( + 'label', + { className: 'control-label' }, + 'Available chart types' + ), + i.a.createElement(p.a, { + defaultValue: e || Y[0], + options: Y, + onChange: this.handleChartTypeChange, + className: 'chart-types', + classNamePrefix: 'custom-dropdown' + }) + ); + } + }, + { + key: 'handleTextStateUpdate', + value: function(t, e) { + this.setState(function(n) { + return Ee( + {}, + n, + ke({ isModified: !0 }, t, e !== lt ? e : '') + ); + }); + } + }, + { + key: 'renderTitleSection', + value: function() { + var t = this, + e = this.props.options.chart; + return i.a.createElement( + i.a.Fragment, + null, + 'default' !== e && + i.a.createElement( + 'div', + { className: 'accordion__item__row' }, + i.a.createElement(Yt, { + key: 'title', + type: 'text', + name: 'title', + value: this.state.title_text, + onChange: function(e) { + t.handleTextStateUpdate('title_text', e); } - function i(t) { - try { - t.dispatchEvent(new MouseEvent('click')); - } catch (n) { - var e = document.createEvent('MouseEvents'); - e.initMouseEvent( - 'click', - !0, - !0, - window, - 0, - 0, - 0, - 80, - 20, - !1, - !1, - !1, - !1, - 0, - null - ), - t.dispatchEvent(e); - } + }) + ), + this.renderFontSize('Title font', 'title'), + this.renderFontStyle('Title format', 'title', !0) + ); + } + }, + { + key: 'renderSubtitleSection', + value: function() { + var t = this, + e = this.props.options.chart; + return i.a.createElement( + i.a.Fragment, + null, + 'default' !== e && + i.a.createElement( + 'div', + { className: 'accordion__item__row' }, + i.a.createElement(Yt, { + key: 'subtitle', + type: 'text', + name: 'subtitle', + value: this.state.subtitle_text, + onChange: function(e) { + return t.handleTextStateUpdate( + 'subtitle_text', + e + ); + } + }) + ), + this.renderFontSize('Subtitle font', 'subtitle'), + this.renderFontStyle( + 'Subtitle format', + 'subtitle', + !0, + Q.subtitle + ) + ); + } + }, + { + key: 'renderVerticalAxisTitleSection', + value: function() { + var t = this; + return i.a.createElement( + i.a.Fragment, + null, + i.a.createElement( + 'div', + { className: 'accordion__item__row' }, + i.a.createElement(Yt, { + key: 'vertical-axis-title', + type: 'text', + name: 'vertical-axis-title', + value: this.state.axis_vertical_title_text, + onChange: function(e) { + return t.handleTextStateUpdate( + 'axis_vertical_title_text', + e + ); + } + }) + ), + this.renderFontSize( + 'Title font', + 'axis_vertical_title' + ), + i.a.createElement( + 'div', + { + className: 'accordion__item__row three-elements' + }, + i.a.createElement(jt, { + title: 'Title format', + initialColor: this.state + .axis_vertical_title_color, + defaultColor: Q.title, + onChange: function(e) { + return t.handleTextStateUpdate( + 'axis_vertical_title_color', + e.hex + ); + } + }), + i.a.createElement(Ot, { + items: q, + singleChoice: !1, + groupName: 'verticalAxisTitleStyle', + activeItem: { + bold: this.state.axis_vertical_title_font_bold, + italic: this.state + .axis_vertical_title_font_italic + }, + onChange: function(e) { + return t.handleTextStateUpdate( + 'axis_vertical_title_font_'.concat( + e.target.value + ), + !t.state[ + 'axis_vertical_title_font_'.concat( + e.target.value + ) + ] + ); + } + }), + i.a.createElement(p.a, { + defaultValue: X[1], + options: X, + onChange: function(e) { + return t.handleTextStateUpdate( + 'axis_vertical_title_textAlign', + e.value + ); + }, + classNamePrefix: 'custom-dropdown' + }) + ) + ); + } + }, + { + key: 'renderVerticalAxisLabelSection', + value: function() { + return i.a.createElement( + i.a.Fragment, + null, + this.renderFontSize( + 'Axis font', + 'axis_vertical_label' + ), + this.renderFontStyle( + 'Axis format', + 'axis_vertical_label', + !1 + ) + ); + } + }, + { + key: 'renderHorizontalAxisTitleSection', + value: function() { + var t = this; + return i.a.createElement( + i.a.Fragment, + null, + i.a.createElement( + 'div', + { className: 'accordion__item__row' }, + i.a.createElement(Yt, { + key: 'horizontal-axis-title', + type: 'text', + name: 'horizontal-axis-title', + value: this.state.axis_horizontal_title_text, + onChange: function(e) { + return t.handleTextStateUpdate( + 'axis_horizontal_title_text', + e + ); + } + }) + ), + this.renderFontSize( + 'Title font', + 'axis_horizontal_title' + ), + this.renderFontStyle( + 'Title format', + 'axis_horizontal_title', + !0 + ) + ); + } + }, + { + key: 'renderHorizontalAxisLabelSection', + value: function() { + return i.a.createElement( + i.a.Fragment, + null, + this.renderFontSize( + 'Axis font', + 'axis_horizontal_label' + ), + this.renderFontStyle( + 'Axis format', + 'axis_horizontal_label', + !1 + ) + ); + } + }, + { + key: 'renderLegendSection', + value: function() { + var t = this, + e = this.state.legend_layout; + return i.a.createElement( + i.a.Fragment, + null, + i.a.createElement( + 'div', + { className: 'accordion__item__row' }, + i.a.createElement(Ot, { + items: Z, + singleChoice: !0, + groupName: 'legendLayout', + title: 'Layout', + activeItem: Z.find(function(e) { + return e.value === t.state.legend_layout; + }), + onChange: function(e) { + return t.handleTextStateUpdate( + 'legend_layout', + e.target.value + ); + } + }) + ), + i.a.createElement( + 'div', + { className: 'accordion__item__row' }, + ('top' === e || 'bottom' === e) && + i.a.createElement(Ot, { + items: tt, + singleChoice: !0, + groupName: 'legendPositionHorizontal', + title: 'Alignment', + activeItem: tt.find(function(e) { + return ( + e.value === + t.state.legend_position_horizontal + ); + }), + onChange: function(e) { + return t.handleTextStateUpdate( + 'legend_position_horizontal', + e.target.value + ); + } + }), + ('left' === e || 'right' === e) && + i.a.createElement(Ot, { + items: J, + singleChoice: !0, + groupName: 'legendPositionVertical', + title: 'Alignment', + activeItem: J.find(function(e) { + return ( + e.value === t.state.legend_position_vertical + ); + }), + onChange: function(e) { + return t.handleTextStateUpdate( + 'legend_position_vertical', + e.target.value + ); } - var o = - 'object' == typeof window && - window.window === window - ? window - : 'object' == typeof self && - self.self === self - ? self - : 'object' == typeof n && n.global === n - ? n - : void 0, - a = - o.saveAs || - ('object' != typeof window || window !== o - ? function() {} - : 'download' in - HTMLAnchorElement.prototype - ? function(t, n, a) { - var s = o.URL || o.webkitURL, - u = document.createElement('a'); - (n = n || t.name || 'download'), - (u.download = n), - (u.rel = 'noopener'), - 'string' == typeof t - ? ((u.href = t), - u.origin === location.origin - ? i(u) - : r(u.href) - ? e(t, n, a) - : i(u, (u.target = '_blank'))) - : ((u.href = s.createObjectURL( - t - )), - setTimeout(function() { - s.revokeObjectURL(u.href); - }, 4e4), - setTimeout(function() { - i(u); - }, 0)); - } - : 'msSaveOrOpenBlob' in navigator - ? function(t, n, o) { - if ( - ((n = n || t.name || 'download'), - 'string' != typeof t) - ) - navigator.msSaveOrOpenBlob( - (function(t, e) { - return ( - void 0 === e - ? (e = { autoBom: !1 }) - : 'object' != typeof e && - (console.warn( - 'Deprecated: Expected third argument to be a object' - ), - (e = { autoBom: !e })), - e.autoBom && - /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test( - t.type - ) - ? new Blob(['\ufeff', t], { - type: t.type - }) - : t - ); - })(t, o), - n - ); - else if (r(t)) e(t, n, o); - else { - var a = document.createElement('a'); - (a.href = t), - (a.target = '_blank'), - setTimeout(function() { - i(a); - }); - } - } - : function(t, n, r, i) { - if ( - ((i = i || open('', '_blank')) && - (i.document.title = i.document.body.innerText = - 'downloading...'), - 'string' == typeof t) - ) - return e(t, n, r); - var a = - 'application/octet-stream' === - t.type, - s = - /constructor/i.test( - o.HTMLElement - ) || o.safari, - u = /CriOS\/[\d]+/.test( - navigator.userAgent - ); - if ( - (u || (a && s)) && - 'object' == typeof FileReader - ) { - var l = new FileReader(); - (l.onloadend = function() { - var t = l.result; - (t = u - ? t - : t.replace( - /^data:[^;]*;/, - 'data:attachment/file;' - )), - i - ? (i.location.href = t) - : (location = t), - (i = null); - }), - l.readAsDataURL(t); - } else { - var c = o.URL || o.webkitURL, - f = c.createObjectURL(t); - i - ? (i.location = f) - : (location.href = f), - (i = null), - setTimeout(function() { - c.revokeObjectURL(f); - }, 4e4); - } - }); - (o.saveAs = a.saveAs = a), (t.exports = a); }) - ? r.apply(e, i) - : r) || (t.exports = o); - }.call(this, n(7))); + ), + this.renderFontSize('Legend font', 'legend'), + this.renderFontStyle('Legend format', 'legend', !1) + ); + } }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r, - i = n(3), - o = n(4), - a = n(1), - s = (r = a) && r.__esModule ? r : { default: r }; - e.default = { - render: function() { - var t = this.config.colors[0], - e = this.config.theme, - n = this.config.title, - r = this.config.subtitle, - a = this.config, - u = '-', - l = '', - c = '', - f = '', - d = '', - h = void 0, - p = '', - g = '', - v = '', - m = '', - y = this.config, - b = y.results, - _ = y.previousResults, - x = y.isExtraction, - w = y.comparedProp; - if ( - (b && - _ && - ((p = _ ? ' metric-comparison' : ''), - (m = _ && n ? '-smaller' : ''), - (v = - (g = b.result - _.result) > 0 - ? '-green' - : '-red'), - (g = Math.abs(g)), - (t = '')), - this.data() && - this.data()[1] && - this.data()[1][1] && - 'number' == typeof this.data()[1][1] && - (u = this.data()[1][1]), - x && w) - ) { - var S = (function(t, e) { - var n = t.query, - r = t.result, - i = []; - if ('extraction' !== n.analysis_type) - throw new Error( - 'Analysis type is not an extraction!' + { + key: 'renderGridSection', + value: function() { + var t = this; + return i.a.createElement( + 'div', + { className: 'accordion__item__row two-elements' }, + i.a.createElement(jt, { + title: 'Lines color', + initialColor: this.state.grid_lines_color, + defaultColor: Q.border, + onChange: function(e) { + return t.handleTextStateUpdate( + 'grid_lines_color', + e.hex + ); + } + }), + i.a.createElement( + 'div', + { className: 'dropdown disabled' }, + i.a.createElement( + 'span', + { className: 'dropdown__label' }, + 'Count' + ), + i.a.createElement(p.a, { + defaultValue: et[0], + options: et, + onChange: function(e) { + return t.handleTextStateUpdate( + 'grid_count', + e.value ); - return ( - Array.isArray(r) && - r.forEach(function(t) { - var r = { query: n, result: t[e] }; - i.push(r); - }), - i + }, + classNamePrefix: 'custom-dropdown' + }) + ) + ); + } + }, + { + key: 'renderSubgridSection', + value: function() { + var t = this; + return i.a.createElement( + 'div', + { className: 'accordion__item__row two-elements' }, + i.a.createElement(jt, { + title: 'Lines color', + initialColor: this.state.subgrid_lines_color, + defaultColor: Q.border, + onChange: function(e) { + return t.handleTextStateUpdate( + 'subgrid_lines_color', + e.hex ); - })(b, w); - (u = S[0].result), - (p = (l = S[1].result) - ? ' metric-comparison' - : ''), - (m = l && n ? '-smaller' : ''), - (v = (g = u - l) > 0 ? '-green' : '-red'), - (g = Math.abs(g)), - (t = ''); - } - if ( - ((h = u), - (void 0 !== a.prettyNumber && - !0 !== a.prettyNumber) || - isNaN(parseInt(u)) || - ((h = (0, i.prettyNumber)(u)), - b && _ && (g = (0, i.prettyNumber)(g))), - a.prefix && - (f = - '' + - a.prefix + - ''), - a.suffix && - (d = - '' + - a.suffix + - ''), - (c += '
'), - (c += - '
'), - b && - _ && - (c += - '
' + - (0, o.escapeHtml)(g) + - '
'), - x && - w && - (u && l - ? ((c += - '
' + - (0, o.escapeHtml)(g) + - '
'), - (c += '' + l + '')) - : (c += '

No data to display

')), - (c += - '
' + - f + - (0, o.escapeHtml)(h) + - d + - '
'), - n && - (c += - '
' + - (0, o.escapeHtml)(n) + - '
'), - r && - (c += - '
' + - (0, o.escapeHtml)(r) + - '
'), - (c += '
'), - (c += '
'), - (this.el().innerHTML = c), - this.config.onrendered && this.config.onrendered(), - this.config.utils && - this.config.utils.clickToCopyToClipboard) - ) { - var E = '.' + e + '-metric-value' + m; - if ( - (document - .querySelector(E) - .addEventListener('click', function(t) { - return (0, s.default)(t.target.innerText, t); - }), - b && _) - ) { - var k = '.' + e + '-metric' + v; - document - .querySelector(k) - .addEventListener('click', function(t) { - return (0, s.default)(t.target.innerText, t); - }); } - } - }, - update: function() { - this.render(); - }, - destroy: function() {} - }; + }), + i.a.createElement( + 'div', + { className: 'dropdown' }, + i.a.createElement( + 'span', + { className: 'dropdown__label' }, + 'Count' + ), + i.a.createElement(p.a, { + defaultValue: et[0], + options: et, + onChange: function(e) { + return t.handleTextStateUpdate( + 'subgrid_count', + e.value + ); + }, + classNamePrefix: 'custom-dropdown' + }) + ) + ); + } }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r, - i = function(t, e) { - if (Array.isArray(t)) return t; - if (Symbol.iterator in Object(t)) - return (function(t, e) { - var n = [], - r = !0, - i = !1, - o = void 0; - try { - for ( - var a, s = t[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !e || n.length !== e); - r = !0 + { + key: 'renderSeriesLabelsSection', + value: function() { + return i.a.createElement( + i.a.Fragment, + null, + this.renderFontSize('Labels font', 'series_label'), + this.renderFontStyle( + 'Labels format', + 'series_label', + !1 + ) + ); + } + }, + { + key: 'renderSeriesSection', + value: function() { + var t = this, + e = nt.find(function(e) { + return e.value === t.state.series_line; + }); + return i.a.createElement( + i.a.Fragment, + null, + i.a.createElement( + 'div', + { className: 'accordion__item__row' }, + i.a.createElement( + 'span', + { className: 'control-label' }, + 'Line thickness' + ), + i.a.createElement(p.a, { + defaultValue: e || nt[0], + options: nt, + onChange: function(e) { + return t.handleTextStateUpdate( + 'series_line', + e.value + ); + }, + classNamePrefix: 'custom-dropdown' + }) + ) + ); + } + }, + { + key: 'renderSeriesPointsSection', + value: function() { + var t = this, + e = rt.find(function(e) { + return e.value === t.state.series_points_size; + }); + return i.a.createElement( + i.a.Fragment, + null, + i.a.createElement( + 'div', + { className: 'accordion__item__row' }, + i.a.createElement( + 'span', + { className: 'control-label' }, + 'Points size' + ), + i.a.createElement(p.a, { + defaultValue: e || rt[0], + options: rt, + onChange: function(e) { + return t.handleTextStateUpdate( + 'series_points_size', + e.value + ); + }, + classNamePrefix: 'custom-dropdown' + }) + ) + ); + } + }, + { + key: 'renderMetricOptions', + value: function() { + var t = this; + return i.a.createElement( + 'div', + { className: 'keen-theme-builder__row two-elements' }, + i.a.createElement(Yt, { + key: 'metric-prefix', + type: 'text', + label: 'Prefix', + name: 'metric-prefix', + value: this.state.general_prefix, + onChange: function(e) { + return t.handleTextStateUpdate( + 'general_prefix', + e + ); + } + }), + i.a.createElement(Yt, { + key: 'metric-suffix', + type: 'text', + label: 'Suffix', + name: 'metric-suffix', + value: this.state.general_suffix, + onChange: function(e) { + return t.handleTextStateUpdate( + 'general_suffix', + e + ); + } + }) + ); + } + }, + { + key: 'renderAppearanceFont', + value: function() { + var t = this; + return 'metric' === this.state.chart + ? i.a.createElement( + 'div', + { className: 'accordion__item__row' }, + this.renderFontSize('Chart font', 'appearance'), + this.renderFontStyle( + 'Chart format', + 'appearance', + !1 + ) + ) + : i.a.createElement( + 'div', + { className: 'accordion__item__row' }, + i.a.createElement(Nt, { + title: 'Font', + family: this.state.appearance_font_family, + fonts: this.state.fonts, + onChange: function(e) { + return t.handleStateChange( + 'appearance_font_family', + e.value + ); + } + }) + ); + } + }, + { + key: 'generateHoverColor', + value: function(t) { + if (!t.hsl) return Q.rowHover; + var e = t.hsl, + n = e.h, + r = e.s, + i = e.l, + o = e.a, + a = + i < 0.5 + ? { h: n, s: r, l: i + 0.2, a: o } + : { h: n, s: r, l: i - 0.2, a: o }; + return (function(t, e, n) { + var r = (1 - Math.abs(2 * n - 1)) * e, + i = r * (1 - Math.abs(((t / 60) % 2) - 1)), + o = n - r / 2, + a = 0, + s = 0, + u = 0; + return ( + 0 <= t && t < 60 + ? ((a = r), (s = i), (u = 0)) + : 60 <= t && t < 120 + ? ((a = i), (s = r), (u = 0)) + : 120 <= t && t < 180 + ? ((a = 0), (s = r), (u = i)) + : 180 <= t && t < 240 + ? ((a = 0), (s = i), (u = r)) + : 240 <= t && t < 300 + ? ((a = i), (s = 0), (u = r)) + : 300 <= t && + t < 360 && + ((a = r), (s = 0), (u = i)), + (a = Math.round(255 * (a + o)).toString(16)), + (s = Math.round(255 * (s + o)).toString(16)), + (u = Math.round(255 * (u + o)).toString(16)), + 1 == a.length && (a = '0' + a), + 1 == s.length && (s = '0' + s), + 1 == u.length && (u = '0' + u), + '#' + a + s + u + ); + })(a.h, a.s, a.l); + } + }, + { + key: 'renderChoroplethMapDropdown', + value: function() { + var t = this, + e = ot.find(function(e) { + return e.value === t.state.choropleth_map; + }); + return i.a.createElement( + 'div', + { className: 'keen-theme-builder__row' }, + i.a.createElement( + 'span', + { className: 'control-label' }, + 'Map' + ), + i.a.createElement(p.a, { + defaultValue: e || ot[0], + options: ot, + onChange: function(e) { + return t.handleTextStateUpdate( + 'choropleth_map', + e.value + ); + }, + classNamePrefix: 'custom-dropdown' + }) + ); + } + }, + { + key: 'renderMapBorderSettings', + value: function() { + var t = this, + e = nt.find(function(e) { + return e.value === t.state.choropleth_border_size; + }); + return i.a.createElement( + i.a.Fragment, + null, + i.a.createElement( + 'div', + { className: 'accordion__item__row' }, + i.a.createElement( + 'span', + { className: 'control-label' }, + 'Border size' + ), + i.a.createElement(p.a, { + defaultValue: e || nt[0], + options: nt, + onChange: function(e) { + return t.handleTextStateUpdate( + 'choropleth_border_size', + e.value + ); + }, + className: 'predefined-palette', + classNamePrefix: 'custom-dropdown' + }) + ), + i.a.createElement( + 'div', + { className: 'accordion__item__row' }, + i.a.createElement(jt, { + title: 'Chart border', + initialColor: this.state.choropleth_border_color, + defaultColor: Q.border, + onChange: function(e) { + return t.handleStateChange( + 'choropleth_border_color', + e.hex ); - } catch (t) { - (i = !0), (o = t); - } finally { - try { - !r && s.return && s.return(); - } finally { - if (i) throw o; - } - } - return n; - })(t, e); - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance' - ); - }, - o = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }, - a = n(4), - s = n(1), - u = (r = s) && r.__esModule ? r : { default: r }, - l = void 0; - function c(t, e) { - var n = '', - r = {}; - t.config.table && - t.config.table.pagination && - (r = t.config.table.pagination); - var s = o({}, { page: 1, limit: 0, arrows: !0 }, r); - l || (l = s.page); - var u = void 0, - c = 0; - if (0 === s.limit) u = e.slice(1); - else { - var f = s.limit * (l - 1) + 1, - d = f + s.limit; - (u = e.slice(f, d)), - (c = Math.ceil((e.length - 1) / s.limit)); - } - var h = t.config.table.columns - ? t.config.table.columns - : t.dataset.matrix[0], - p = {}, - g = t.config.table, - v = g.mapValues, - m = g.mapDates; - for (var y in v) p[h.indexOf(y)] = y; - var b = !0, - _ = !1, - x = void 0; - try { - for ( - var w, S = u[Symbol.iterator](); - !(b = (w = S.next()).done); - b = !0 - ) { - var E = w.value; - n += ''; - var k = !0, - A = !1, - T = void 0; - try { - for ( - var C, O = E.entries()[Symbol.iterator](); - !(k = (C = O.next()).done); - k = !0 - ) { - var P = C.value, - M = i(P, 2), - L = M[0], - D = M[1]; - m && D instanceof Date && (D = m(D)); - var j = (0, a.escapeHtml)(D); - p[L] - ? (n += '' + v[p[L]](j) + '') - : (n += '' + j + ''); - } - } catch (t) { - (A = !0), (T = t); - } finally { - try { - !k && O.return && O.return(); - } finally { - if (A) throw T; } - } - n += ''; - } - } catch (t) { - (_ = !0), (x = t); - } finally { - try { - !b && S.return && S.return(); - } finally { - if (_) throw x; - } - } - if (c > 1) { - n += - ''; - var R = 1, - N = 1 === l ? 1 : l - 1, - z = l === c ? c : l + 1; - for ( - s.arrows && - (n += - '«'); - R <= c; - + }) ) - (n += - '' + - R + - ''), - R++; - s.arrows && - (n += - '»'), - (n += ''); - } - return n; + ); } - e.default = { - render: function() { - var t = this, - e = this.dataset.matrix, - n = this.el(), - r = this.config.theme, - i = this, - o = ''; - if (1 === e.length && 0 === e[0].length) { - var s = 'No data to display', - f = this.config.errorMapping[s] || s; - this.config.showErrorMessages && this.message(f); - } else { - (o += '
'), - (o += ''), - (o += ''), - (o += ''), - (o += (function(t, e) { - var n = '', - r = -1, - i = t.config.table, - o = (i && i.columns) || e[0], - s = !0, - u = !1, - l = void 0; - try { - for ( - var c, f = o[Symbol.iterator](); - !(s = (c = f.next()).done); - s = !0 - ) { - var d = c.value, - h = (0, a.escapeHtml)(d); - n += - ''; - } - } catch (t) { - (u = !0), (l = t); - } finally { - try { - !s && f.return && f.return(); - } finally { - if (u) throw l; - } - } - return n; - })(i, e)), - (o += ''), - (o += ''), - (o += ''), - (o += c(i, e)), - (o += ''), - (o += '
' + - h + - '
'), - (o += '
'), - (n.querySelector( - '.' + r + '-rendering' - ).innerHTML = o), - n - .querySelectorAll('.' + r + '-rendering th') - .forEach(function(o) { - o.addEventListener('click', function(o) { - var a = - o.target.getAttribute('order') || 'asc', - s = o.target.getAttribute('fieldNumber'); - (a = 'asc' === a ? 'desc' : 'asc'), - o.target.setAttribute('order', a); - var u = t.dataset.matrix.shift(); - t.dataset.matrix.sort(function(t, e) { - var n = 'asc' === a ? 1 : -1; - if ('string' == typeof t[s]) { - var r = t[s].toUpperCase(), - i = e[s].toUpperCase(); - return r < i - ? -1 * n - : r > i - ? 1 * n - : 0; + }, + { + key: 'renderChoroplethSettings', + value: function() { + var t = this; + return i.a.createElement( + i.a.Fragment, + null, + i.a.createElement( + Ut, + { + checked: !!this.state.choropleth_border_show, + onChange: function() { + return t.handleStateChange( + 'choropleth_border_show', + !t.state.choropleth_border_show + ); + }, + text: { on: 'Show', off: 'Hide' } + }, + i.a.createElement( + 'span', + { className: 'control-label' }, + 'Map border' + ) + ), + this.state.choropleth_border_show && + this.renderMapBorderSettings() + ); + } + }, + { + key: 'renderFunnelPercentsSection', + value: function() { + var t = this, + e = at.find(function(e) { + return e.value === t.state.funnel_percents_count; + }); + return i.a.createElement( + i.a.Fragment, + null, + i.a.createElement( + 'div', + { className: 'accordion__item__row' }, + i.a.createElement( + 'span', + { className: 'control-label' }, + 'Counting method' + ), + i.a.createElement(p.a, { + defaultValue: e || at[0], + options: at, + onChange: function(e) { + return t.handleTextStateUpdate( + 'funnel_percents_count', + e.value + ); + }, + className: 'predefined-palette', + classNamePrefix: 'custom-dropdown' + }) + ), + i.a.createElement( + 'div', + { className: 'accordion__item__row' }, + i.a.createElement(Yt, { + key: 'funnel-percents-decimals', + type: 'text', + label: 'Decimals', + name: 'funnel-percents-decimals', + value: this.state.funnel_percents_decimals, + onChange: function(e) { + return t.handleTextStateUpdate( + 'funnel_percents_decimals', + e + ); + }, + maxLength: '2' + }) + ) + ); + } + }, + { + key: 'renderFunnel3dOptions', + value: function() { + var t = this, + e = st.find(function(e) { + return e.value === t.state.funnel_effect3d; + }); + return i.a.createElement( + 'div', + { className: 'accordion__item__row' }, + i.a.createElement( + 'span', + { className: 'control-label' }, + '3d effect' + ), + i.a.createElement(p.a, { + defaultValue: e || st[0], + options: st, + onChange: function(e) { + return t.handleTextStateUpdate( + 'funnel_effect3d', + e.value + ); + }, + className: 'predefined-palette', + classNamePrefix: 'custom-dropdown' + }) + ); + } + }, + { + key: 'renderConfigSection', + value: function() { + var t = this, + e = this.props, + n = e.isDashboardBuilderActive, + r = e.options.chart, + o = (function() { + switch ( + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : '' + ) { + case 'bar': + case 'horizontal-bar': + case 'area': + case 'line': + case 'spline': + case 'area-spline': + case 'step': + case 'area-step': + return ae({}, ct, { table: !1, funnel: !1 }); + case 'table': + return ae({}, ct, { + axis: !1, + legend: !1, + gridline: !1, + series: !1, + tooltip: !1, + funnel: !1 + }); + case 'metric': + return ae({}, ct, { + axis: !1, + legend: !1, + gridline: !1, + series: !1, + tooltip: !1, + table: !1, + funnel: !1 + }); + case 'pie': + case 'donut': + return ae({}, ct, { + axis: !1, + gridline: !1, + table: !1, + funnel: !1 + }); + case 'gauge': + return ae({}, ct, { + axis: !1, + gridline: !1, + legend: !1, + table: !1, + funnel: !1 + }); + case 'heatmap': + case 'choropleth': + return ae({}, ct, { + axis: !1, + series: !1, + legend: !1, + gridline: !1, + table: !1, + funnel: !1 + }); + case 'funnel': + case 'funnel-3d': + case 'horizontal-funnel': + case 'horizontal-funnel-3d': + return ae({}, ct, { + axis: !1, + series: !1, + legend: !1, + gridline: !1, + tooltip: !1, + table: !1 + }); + default: + return ct; + } + })(r), + a = K.find(function(e) { + return e.value === t.state.chartPalette; + }); + return i.a.createElement( + 'section', + { className: 'builder__config' }, + i.a.createElement( + 'h2', + { className: 'builder__header' }, + 'Chart style' + ), + !n && this.renderChartTypeItem(), + 'metric' === r && this.renderMetricOptions(), + 'choropleth' === r && + this.renderChoroplethMapDropdown(), + ('heatmap' === r || 'choropleth' === r) && + i.a.createElement( + Ut, + { + checked: !!this.state.chart_slider_show, + onChange: function() { + return t.handleStateChange( + 'chart_slider_show', + !t.state.chart_slider_show + ); + }, + text: { on: 'Show', off: 'Hide' } + }, + i.a.createElement( + 'span', + { className: 'control-label' }, + 'Slider' + ) + ), + i.a.createElement( + Bt, + null, + o.appearance && + i.a.createElement( + 'div', + { label: 'Appearance' }, + i.a.createElement( + Ut, + { + checked: !!this.state.appearance_sparkline, + onChange: function() { + return t.handleStateChange( + 'appearance_sparkline', + !t.state.appearance_sparkline + ); + } + }, + i.a.createElement( + 'span', + { className: 'control-label' }, + 'Sparkline' + ) + ), + i.a.createElement( + 'div', + { className: 'accordion__item__row' }, + i.a.createElement(jt, { + title: 'Chart background', + initialColor: this.state + .appearance_background, + defaultColor: Q.background, + onChange: function(e) { + return t.handleStateChange( + 'appearance_background', + e.hex + ); + } + }) + ), + i.a.createElement( + 'div', + { className: 'accordion__item__row' }, + i.a.createElement(jt, { + title: 'Chart border', + initialColor: this.state.appearance_border, + defaultColor: Q.border, + onChange: function(e) { + return t.handleStateChange( + 'appearance_border', + e.hex + ); + } + }) + ), + this.renderAppearanceFont(), + 'choropleth' === this.state.chart && + this.renderChoroplethSettings(), + i.a.createElement( + 'div', + { className: 'accordion__item__row' }, + i.a.createElement( + 'span', + { className: 'control-label' }, + 'Plot colors' + ), + i.a.createElement(p.a, { + defaultValue: a || K[0], + options: K, + onChange: this.handleChartPaletteChange, + className: 'predefined-palette', + classNamePrefix: 'custom-dropdown' + }) + ), + i.a.createElement(Tt, { + colors: this.state.colors, + onChange: this.handleColorsChange + }) + ), + o.title && + i.a.createElement( + 'div', + { label: 'Title & Subtitle' }, + i.a.createElement( + Ut, + { + checked: !!this.state.title_show, + onChange: function() { + return t.handleStateChange( + 'title_show', + !t.state.title_show + ); + }, + text: { on: 'Show', off: 'Hide' } + }, + i.a.createElement( + 'span', + { className: 'section-title' }, + 'Title' + ) + ), + this.state.title_show && + this.renderTitleSection(), + i.a.createElement( + Ut, + { + checked: !!this.state.subtitle_show, + onChange: function() { + return t.handleStateChange( + 'subtitle_show', + !t.state.subtitle_show + ); + }, + text: { on: 'Show', off: 'Hide' } + }, + i.a.createElement( + 'span', + { className: 'section-title' }, + 'Subtitle' + ) + ), + this.state.subtitle_show && + this.renderSubtitleSection() + ), + o.axis && + i.a.createElement( + 'div', + { label: 'Vertical axis' }, + 'default' !== r && + i.a.createElement( + Ut, + { + checked: !!this.state + .axis_vertical_title_show, + onChange: function() { + return t.handleStateChange( + 'axis_vertical_title_show', + !t.state.axis_vertical_title_show + ); } - return (t[s] - e[s]) * n; - }), - t.dataset.matrix.unshift(u), - (n.querySelector( - '.' + r + '-rendering tbody' - ).innerHTML = c(i, e)), - d(); - }); - }); - var d = function t() { - n.querySelectorAll('.btn').forEach(function(o) { - o.addEventListener( - 'click', - function(o) { - (l = parseInt( - o.target.getAttribute('data-page') - )), - (n.querySelector( - '.' + r + '-rendering tbody' - ).innerHTML = c(i, e)), - t(); + }, + i.a.createElement( + 'span', + { className: 'section-title' }, + 'Axis title' + ) + ), + 'default' !== r && + this.state.axis_vertical_title_show && + this.renderVerticalAxisTitleSection(), + i.a.createElement( + Ut, + { + checked: !!this.state + .axis_vertical_label_show, + onChange: function() { + return t.handleStateChange( + 'axis_vertical_label_show', + !t.state.axis_vertical_label_show + ); + } }, - !0 - ); - }); - }; - if ( - (d(i, n, r), - this.config.onrendered && - this.config.onrendered(), - this.config.utils && - this.config.utils.clickToCopyToClipboard) - ) { - var h = '.' + r + '-table-dataset'; - document - .querySelector(h) - .addEventListener('click', function(t) { - var e = t.target, - n = e.nodeName, - r = e.innerText; - 'TD' === n && (0, u.default)(r, t); - }); - } - } - }, - update: function() { - this.render(); - }, - destroy: function() {} - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = { - render: function() { - var t = ''; - (this.view._artifacts.spinner = {}), - (t += '
'), - (t += - '
'), - (t += - '
'), - (t += '
'), - (t += '
'), - (this.el().innerHTML = t); - }, - update: function() { - this.render(); - }, - destroy: function() { - if (this.view._artifacts.spinner) { - this.view._artifacts.spinner.interval && - clearInterval( - this.view._artifacts.spinner.interval + i.a.createElement( + 'span', + { className: 'section-title' }, + 'Axis labels' + ) ), - (this.view._artifacts.spinner.radius = 0); - try { - delete this.view._artifacts.spinner; - } catch (t) { - this.view._artifacts.spinner = void 0; - } - } - this.el().innerHTML = ''; - } - }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r, - i = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - o = (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && - (e[n] = t[n]); - return (e.default = t), e; - })(n(2)), - a = n(6), - s = n(3), - u = n(1), - l = (r = u) && r.__esModule ? r : { default: r }, - c = (function() { - function t() { - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, t); - } - return ( - i(t, [ - { - key: 'render', - value: function() { - var t = this.dataset.matrix, - e = this.config, - n = e.colors, - r = e.container, - i = e.labelMapping, - u = e.colorMapping, - c = e.utils, - f = this.config, - d = this.config.funnel, - h = d.percents, - p = h.show, - g = h.countingMethod, - v = h.decimals, - m = d.lines, - y = d.marginBetweenSteps, - b = d.resultValues, - _ = d.hover, - x = d.minimalSize, - w = 20, - S = 30, - E = 30, - k = 200, - A = 0; - y && (A = 5); - var T = o.select(r), - C = o - .select( - this.el().querySelector( - '.' + - this.config.theme + - '-rendering .c3-chart' - ) - ) - .append('svg'), - O = T.style('width').slice(0, -2) - S - k, - P = - T.style('height').slice(0, -2) - - w - - E - - 30, - M = P / (t.length - 1), - L = O, - D = (100).toFixed(v), - j = 0; - x && (j = (O - x) / (t.length - 2)); - var R = t.slice(1).map(function(e, n) { - var r = [ - { x: (O - L) / 2, y: M * n + A }, - { x: (O - L) / 2 + L, y: M * n + A } - ]; - 0 !== n && - ('relative' === g && - (x - ? (L -= j) - : (L = (L * e[1]) / t[n][1]), - (D = ((e[1] / t[n][1]) * 100).toFixed( - v - ))), - 'absolute' === g && - (x - ? (L -= j) - : (L = (O * e[1]) / t[1][1]), - (D = ((e[1] / t[1][1]) * 100).toFixed( - v - )))); - var o = e[0]; - if (Object.keys(i).length) - for (var a in i) i[a] === e[0] && (o = a); - var u = e[1]; - return ( - (void 0 !== f.prettyNumber && - !0 !== f.prettyNumber) || - isNaN(parseInt(e[1])) || - (u = (0, s.prettyNumber)(e[1])), - { - name: e[0], - label: o, - percent: D + '%', - result: u, - points: [].concat(r, [ - { - x: (O - L) / 2 + L, - y: M * (n + 1) - }, - { x: (O - L) / 2, y: M * (n + 1) } - ]) + this.state.axis_vertical_label_show && + this.renderVerticalAxisLabelSection() + ), + o.axis && + i.a.createElement( + 'div', + { label: 'Horizontal axis' }, + 'default' !== r && + i.a.createElement( + Ut, + { + checked: !!this.state + .axis_horizontal_title_show, + onChange: function() { + return t.handleStateChange( + 'axis_horizontal_title_show', + !t.state.axis_horizontal_title_show + ); + } + }, + i.a.createElement( + 'span', + { className: 'section-title' }, + 'Axis title' + ) + ), + 'default' !== r && + this.state.axis_horizontal_title_show && + this.renderHorizontalAxisTitleSection(), + i.a.createElement( + Ut, + { + checked: !!this.state + .axis_horizontal_label_show, + onChange: function() { + return t.handleStateChange( + 'axis_horizontal_label_show', + !t.state.axis_horizontal_label_show + ); + } + }, + i.a.createElement( + 'span', + { className: 'section-title' }, + 'Axis labels' + ) + ), + this.state.axis_horizontal_label_show && + this.renderHorizontalAxisLabelSection() + ), + o.legend && + i.a.createElement( + 'div', + { label: 'Legend' }, + i.a.createElement( + Ut, + { + checked: !!this.state.legend_show, + onChange: function() { + return t.handleStateChange( + 'legend_show', + !t.state.legend_show + ); + } + }, + i.a.createElement( + 'span', + { className: 'section-title' }, + 'Legend' + ) + ), + this.state.legend_show && + this.renderLegendSection() + ), + o.gridline && + i.a.createElement( + 'div', + { label: 'Gridline' }, + i.a.createElement( + Ut, + { + checked: !!this.state.grid_show, + onChange: function() { + return t.handleStateChange( + 'grid_show', + !t.state.grid_show + ); + } + }, + i.a.createElement( + 'span', + { className: 'section-title' }, + 'Gridline' + ) + ), + this.state.grid_show && + this.renderGridSection(), + i.a.createElement( + Ut, + { + className: 'disabled', + checked: !!this.state.subgrid_show, + onChange: function() { + return t.handleStateChange( + 'subgrid_show', + !t.state.subgrid_show + ); + } + }, + i.a.createElement( + 'span', + { className: 'section-title' }, + 'Subgrid' + ) + ), + this.state.subgrid_show && + this.renderSubgridSection() + ), + o.series && + i.a.createElement( + 'div', + { label: 'Series' }, + this.renderSeriesSection(), + i.a.createElement( + Ut, + { + checked: !!this.state.series_points_show, + onChange: function() { + return t.handleStateChange( + 'series_points_show', + !t.state.series_points_show + ); + }, + text: { on: 'Show', off: 'Hide' } + }, + i.a.createElement( + 'span', + { className: 'section-title' }, + 'Points' + ) + ), + this.state.series_points_show && + this.renderSeriesPointsSection(), + i.a.createElement( + Ut, + { + checked: !!this.state.series_label_show, + onChange: function() { + return t.handleStateChange( + 'series_label_show', + !t.state.series_label_show + ); + }, + text: { on: 'Show', off: 'Hide' } + }, + i.a.createElement( + 'span', + { className: 'section-title' }, + 'Data labels' + ) + ), + this.state.series_label_show && + this.renderSeriesLabelsSection(), + i.a.createElement(Ot, { + items: it, + singleChoice: !0, + groupName: 'stacked', + title: 'Stacked', + activeItem: it.find(function(e) { + return e.value === t.state.series_stacked; + }), + onChange: function(e) { + return t.handleTextStateUpdate( + 'series_stacked', + e.target.value + ); + } + }) + ), + o.tooltip && + i.a.createElement( + 'div', + { label: 'Tooltip' }, + this.renderFontSize('Tooltip font', 'tooltip'), + this.renderFontStyle( + 'Tooltip format', + 'tooltip', + !1 + ), + i.a.createElement( + 'div', + { className: 'accordion__item__row' }, + i.a.createElement(jt, { + key: 'tooltip_background', + title: 'Tooltip background', + initialColor: this.state.tooltip_background, + defaultColor: Q.background, + onChange: function(e) { + return t.handleTextStateUpdate( + 'tooltip_background', + e.hex + ); + } + }) + ), + i.a.createElement( + 'div', + { className: 'accordion__item__row' }, + i.a.createElement(jt, { + key: 'tooltip_border', + title: 'Tooltip border', + initialColor: this.state.tooltip_border, + onChange: function(e) { + return t.handleTextStateUpdate( + 'tooltip_border', + e.hex + ); + } + }) + ), + 'heatmap' === this.state.chart && + i.a.createElement( + Ut, + { + checked: !!this.state + .tooltip_simpleTooltip, + onChange: function() { + return t.handleStateChange( + 'tooltip_simpleTooltip', + !t.state.tooltip_simpleTooltip + ); } - ); - }); - if ( - (C.attr( - 'preserveAspectRatio', - 'xMidYMid slice' + }, + i.a.createElement( + 'span', + { className: 'control-label' }, + 'Simple tooltip' ) - .attr( - 'viewBox', - '0 0 ' + - (O + k + S) + - ' ' + - (P + w + E - 30) - ) - .attr('height', '100%') - .attr('width', '100%') - .append('g') - .attr( - 'transform', - 'translate(' + k + ',' + w + ')' - ) - .selectAll('polygon') - .data(R) - .enter() - .append('polygon') - .attr('points', function(t) { - return t.points - .map(function(t) { - return [t.x, t.y].join(','); - }) - .join(' '); - }) - .style('fill', function(t, e) { - return u[t.label] ? u[t.label] : n[e]; - }) - .attr('class', function(t) { - return t.label; - }) - .attr('cursor', 'pointer'), - m && - (C.selectAll('line') - .data(R) - .enter() - .append('line') - .attr('x1', 10) - .attr('y1', function(t) { - return t.points[0].y + w - A / 2; - }) - .attr('x2', function(t) { - return t.points[1].x + k; - }) - .attr('y2', function(t) { - return t.points[0].y + w - A / 2; - }) - .attr('class', 'chart-lines'), - C.append('line') - .attr('x1', 10) - .attr( - 'y1', - R[R.length - 1].points[2].y + - w + - A / 2 - ) - .attr( - 'x2', - R[R.length - 1].points[2].x + k - ) - .attr( - 'y2', - R[R.length - 1].points[2].y + - w + - A / 2 - ) - .attr('class', 'chart-lines')), - m && - C.selectAll('text.label') - .data(R) - .enter() - .append('text') - .style('text-anchor', 'start') - .attr('x', 20) - .attr('y', function(t) { - return ( - (t.points[2].y - t.points[1].y) / - 2 + - t.points[1].y + - w + - A + - 5 - ); - }) - .attr('class', function(t) { - return 'text-label ' + t.label; - }) - .text(function(t) { - return t.name; - }) - .call(a.textWrap, k) - .attr('cursor', 'pointer'), - m || - C.selectAll('text.label') - .data(R) - .enter() - .append('text') - .style('text-anchor', 'end') - .attr('x', function(t) { - return ( - t.points[0].x + - (t.points[3].x - t.points[0].x) / - 2 + - 0.9 * k - ); - }) - .attr('y', function(t) { - return ( - (t.points[2].y - t.points[1].y) / - 2 + - t.points[1].y + - w + - A + - 5 - ); - }) - .attr('class', function(t) { - return 'text-label ' + t.label; - }) - .text(function(t) { - return t.name; - }) - .call(a.textWrap, k) - .attr('cursor', 'pointer'), - p && - !b && - C.selectAll('text.label') - .data(R) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', O / 2 + k) - .attr('y', function(t) { - return ( - (t.points[2].y - t.points[1].y) / - 2 + - t.points[1].y + - w + - A + - 8 - ); - }) - .attr('class', function(t) { - return 'text-main ' + t.label; - }) - .text(function(t) { - return t.percent; - }) - .attr('cursor', 'pointer'), - b && - !p && - C.selectAll('text.label') - .data(R) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', O / 2 + k) - .attr('y', function(t) { - return ( - (t.points[2].y - t.points[1].y) / - 2 + - t.points[1].y + - w + - A + - 8 - ); - }) - .attr('class', function(t) { - return 'text-main ' + t.label; - }) - .text(function(t) { - return t.result; - }) - .attr('cursor', 'pointer'), - p && - b && - (C.selectAll('text.label') - .data(R) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', O / 2 + k) - .attr('y', function(t) { - return 0 === A - ? (t.points[2].y - t.points[1].y) / - 2 + - t.points[1].y + - w + - 16 - : (t.points[2].y - t.points[1].y) / - 2 + - t.points[1].y + - w + - A + - 12; - }) - .attr('class', function(t) { - return 'text-second ' + t.label; - }) - .text(function(t) { - return t.percent; - }) - .attr('cursor', 'pointer'), - C.selectAll('text.label') - .data(R) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', O / 2 + k) - .attr('y', function(t) { - return 0 === A - ? (t.points[2].y - t.points[1].y) / - 2 + - t.points[1].y + - w - : (t.points[2].y - t.points[1].y) / - 2 + - t.points[1].y + - w + - A - - 5; - }) - .attr('class', function(t) { - return 'text-main ' + t.label; - }) - .text(function(t) { - return t.result; - }) - .attr('cursor', 'pointer')), - _) - ) { - var N = function(t) { - I.style('opacity', 0.5), - F.style('opacity', 0.5); - var e = /[^ ]*$/.exec( - o.select(this).attr('class') - )[0]; - C.selectAll('.' + e).style( - 'opacity', - 1 + ) + ), + o.table && + i.a.createElement( + 'div', + { label: 'Table' }, + i.a.createElement( + Ut, + { + checked: !!this.state.table_pagination_show, + onChange: function() { + return t.handleStateChange( + 'table_pagination_show', + !t.state.table_pagination_show + ); + }, + text: { on: 'Show', off: 'Hide' } + }, + i.a.createElement( + 'span', + { className: 'section-title' }, + 'Pagination' + ) + ), + this.state.table_pagination_show && + i.a.createElement( + 'div', + { className: 'accordion__item__row' }, + i.a.createElement(Yt, { + key: 'table-pagination', + type: 'text', + label: 'Pagination limit', + name: 'table-pagination', + value: this.state.table_pagination_limit, + onChange: function(e) { + return t.handleTextStateUpdate( + 'table_pagination_limit', + e ); }, - z = function(t) { - I.style('opacity', 1), - F.style('opacity', 1); - }, - I = C.selectAll('polygon'); - I.on('mouseover', N).on('mouseout', z); - var F = C.selectAll('text'); - F.on('mouseover', N).on('mouseout', z); - } - c && - c.clickToCopyToClipboard && - C.selectAll('text').on('click', function( - t - ) { - var e = t.percent, - n = t.result; - b - ? (0, l.default)(n, o.event) - : p && (0, l.default)(e, o.event); - }); - } - }, - { - key: 'update', - value: function() { - this.destroy(), this.render(); - } - }, - { - key: 'destroy', - value: function() { - o.select( - this.el().querySelector( - '.' + - this.config.theme + - '-rendering .c3-chart' - ) - ).remove(); - } - } - ]), - t - ); - })(); - e.default = c; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r, - i = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - o = (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && - (e[n] = t[n]); - return (e.default = t), e; - })(n(2)), - a = n(6), - s = n(3), - u = n(1), - l = (r = u) && r.__esModule ? r : { default: r }, - c = (function() { - function t() { - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, t); - } - return ( - i(t, [ - { - key: 'render', - value: function() { - var t = this.dataset.matrix, - e = this.config, - n = e.colors, - r = e.container, - i = e.labelMapping, - u = e.colorMapping, - c = e.utils, - f = this.config, - d = this.config.funnel, - h = d.percents, - p = h.show, - g = h.countingMethod, - v = h.decimals, - m = d.lines, - y = d.resultValues, - b = d.effect3d, - _ = d.hover, - x = d.minimalSize, - w = 20, - S = 30, - E = 60, - k = 200, - A = o.select(r), - T = o - .select( - this.el().querySelector( - '.' + - this.config.theme + - '-rendering .c3-chart' - ) - ) - .append('svg'), - C = A.style('width').slice(0, -2) - S - k, - O = - A.style('height').slice(0, -2) - - w - - E - - 30, - P = O / (t.length - 1), - M = 0.3 * P, - L = 2.5 * M, - D = C, - j = (100).toFixed(v), - R = 0; - x && (R = (C - x) / (t.length - 2)); - var N = t.slice(1).map(function(e, n) { - var r = [ - { x: (C - D) / 2, y: P * n + M }, - { x: (C - D) / 2 + D, y: P * n + M } - ]; - 0 !== n && - ('relative' === g && - (x - ? (D -= R) - : (D = (D * e[1]) / t[n][1]), - (j = ((e[1] / t[n][1]) * 100).toFixed( - v - ))), - 'absolute' === g && - (x - ? (D -= R) - : (D = (C * e[1]) / t[1][1]), - (j = ((e[1] / t[1][1]) * 100).toFixed( - v - )))); - var o = e[0]; - if (Object.keys(i).length) - for (var a in i) - i[a] === e[0] && (o = a); - var u = e[1]; - return ( - (void 0 !== f.prettyNumber && - !0 !== f.prettyNumber) || - isNaN(parseInt(e[1])) || - (u = (0, s.prettyNumber)(e[1])), - { - name: e[0], - label: o, - percent: j + '%', - result: u, - points: [].concat(r, [ - { - x: (C - D) / 2 + D, - y: P * (n + 1) - }, - { x: (C - D) / 2, y: P * (n + 1) } - ]) - } + maxLength: '2' + }) + ), + i.a.createElement( + Ut, + { + checked: !!this.state.table_header_show, + onChange: function() { + return t.handleStateChange( + 'table_header_show', + !t.state.table_header_show ); - }), - z = N.map(function(t, e) { - return { - label: t.label, - points: [ - { - x: t.points[3].x, - y: t.points[3].y - }, - { - x: t.points[2].x, - y: t.points[2].y - }, - { - x: - 'left' === b - ? t.points[2].x - : t.points[2].x - L < C / 2 - ? C / 2 + 5 - : t.points[2].x - L, - y: - 'left' === b - ? t.points[2].y - : t.points[2].y + M / 1.5 - }, - { - x: - 'right' === b - ? t.points[3].x - : t.points[3].x + L > C / 2 - ? C / 2 - 5 - : t.points[3].x + L, - y: - 'right' === b - ? t.points[3].y - : t.points[3].y + M / 1.5 - } - ] - }; - }), - I = N.concat(z); - if ( - (T.attr( - 'preserveAspectRatio', - 'xMidYMid meet' + }, + text: { on: 'Show', off: 'Hide' } + }, + i.a.createElement( + 'span', + { className: 'section-title' }, + 'Table header' + ) + ), + this.state.table_header_show && + i.a.createElement( + i.a.Fragment, + null, + this.renderFontSize( + 'Header font', + 'table_header' + ), + this.renderFontStyle( + 'Header format', + 'table_header', + !0 ) - .attr( - 'viewBox', - '0 0 ' + - (C + k + S) + - ' ' + - (O + w + E - 30) - ) - .attr('height', '100%') - .attr('width', '100%') - .append('g') - .attr( - 'transform', - 'translate(' + k + ',' + w + ')' - ) - .selectAll('polygon') - .data(I) - .enter() - .append('polygon') - .attr('points', function(t) { - return t.points - .map(function(t) { - return [t.x, t.y].join(','); - }) - .join(' '); - }) - .style('fill', function(t, e) { - return e > N.length - 1 - ? u[t.label] - ? o.rgb(u[t.label]).darker(1.5) - : o.rgb(n[e - N.length]).darker(1.5) - : u[t.label] - ? u[t.label] - : n[e]; - }) - .attr('class', function(t) { - return t.label; - }) - .attr('cursor', 'pointer'), - m && - (T.selectAll('line') - .data(N) - .enter() - .append('line') - .attr('x1', 10) - .attr('y1', function(t) { - return t.points[0].y + w - M / 5; - }) - .attr('x2', function(t, e) { - return 0 === e - ? t.points[1].x + k - : t.points[1].x + k - L; - }) - .attr('y2', function(t) { - return t.points[0].y + w - M / 5; - }) - .attr('class', 'chart-lines'), - T.append('line') - .attr('x1', 10) - .attr( - 'y1', - N[N.length - 1].points[2].y + - w + - M - - M / 5 - ) - .attr( - 'x2', - N[N.length - 1].points[2].x + k - L - ) - .attr( - 'y2', - N[N.length - 1].points[2].y + - w + - M - - M / 5 - ) - .attr('class', 'chart-lines')), - m && - T.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'start') - .attr('x', 20) - .attr('y', function(t) { - return ( - (t.points[2].y - t.points[1].y) / - 2 + - t.points[1].y + - w + - 5 + - M / 4 - ); - }) - .attr('class', function(t) { - return 'text-label ' + t.label; - }) - .text(function(t) { - return t.name; - }) - .call(a.textWrap, k) - .attr('cursor', 'pointer'), - m || - T.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'end') - .attr('x', function(t) { - return ( - t.points[0].x + - (t.points[3].x - t.points[0].x) / - 2 + - 130 - ); - }) - .attr('y', function(t) { - return ( - (t.points[2].y - t.points[1].y) / - 2 + - t.points[1].y + - w + - 5 - ); - }) - .attr('class', function(t) { - return 'text-label ' + t.label; - }) - .text(function(t) { - return t.name; - }) - .call(a.textWrap, k) - .attr('cursor', 'pointer'), - p && - !y && - T.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', C / 2 + k) - .attr('y', function(t) { - return ( - (t.points[2].y - t.points[1].y) / - 2 + - t.points[1].y + - w + - 8 - ); - }) - .attr('class', function(t) { - return 'text-main ' + t.label; - }) - .text(function(t) { - return t.percent; - }) - .attr('cursor', 'pointer'), - y && - !p && - T.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', C / 2 + k) - .attr('y', function(t) { - return ( - (t.points[2].y - t.points[1].y) / - 2 + - t.points[1].y + - w + - 8 - ); - }) - .attr('class', function(t) { - return 'text-main ' + t.label; - }) - .text(function(t) { - return t.result; - }) - .attr('cursor', 'pointer'), - p && - y && - (T.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', C / 2 + k) - .attr('y', function(t) { - return ( - (t.points[2].y - t.points[1].y) / - 2 + - t.points[1].y + - w + - 18 + ), + i.a.createElement( + Ut, + { + checked: !!this.state.table_body_show, + onChange: function() { + return t.handleStateChange( + 'table_body_show', + !t.state.table_body_show + ); + }, + text: { on: 'Show', off: 'Hide' } + }, + i.a.createElement( + 'span', + { className: 'section-title' }, + 'Table body' + ) + ), + this.state.table_body_show && + i.a.createElement( + i.a.Fragment, + null, + this.renderFontSize( + 'Body font', + 'table_body' + ), + this.renderFontStyle( + 'Body format', + 'table_body', + !0 + ), + i.a.createElement( + 'div', + { className: 'accordion__item__row' }, + i.a.createElement(jt, { + title: 'Alternate row background', + initialColor: this.state + .table_body_row_alternate_color, + defaultColor: Q.row, + onChange: function(e) { + t.handleTextStateUpdate( + 'table_body_row_alternate_color', + e.hex ); - }) - .attr('class', function(t) { - return 'text-second ' + t.label; - }) - .text(function(t) { - return t.percent; - }) - .attr('cursor', 'pointer'), - T.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', C / 2 + k) - .attr('y', function(t) { - return ( - (t.points[2].y - t.points[1].y) / - 2 + - t.points[1].y + - w + - 3 + var n = t.generateHoverColor(e); + t.handleTextStateUpdate( + 'table_body_row_hover_background', + n ); - }) - .attr('class', function(t) { - return 'text-main ' + t.label; - }) - .text(function(t) { - return t.result; - }) - .attr('cursor', 'pointer')), - _) - ) { - var F = function(t) { - B.style('opacity', 0.5), - G.style('opacity', 0.5); - var e = /[^ ]*$/.exec( - o.select(this).attr('class') - )[0]; - T.selectAll('.' + e).style( - 'opacity', - 1 - ); - }, - V = function(t) { - B.style('opacity', 1), - G.style('opacity', 1); - }, - B = T.selectAll('polygon'); - B.on('mouseover', F).on('mouseout', V); - var G = T.selectAll('text'); - G.on('mouseover', F).on('mouseout', V); - } - c && - c.clickToCopyToClipboard && - T.selectAll('text').on('click', function( - t - ) { - var e = t.percent, - n = t.result; - y - ? (0, l.default)(n, o.event) - : p && (0, l.default)(e, o.event); - }); - } - }, - { - key: 'update', - value: function() { - this.destroy(), this.render(); - } - }, - { - key: 'destroy', - value: function() { - o.select( - this.el().querySelector( - '.' + - this.config.theme + - '-rendering .c3-chart' + } + }) ) - ).remove(); + ) + ), + o.funnel && + i.a.createElement( + 'div', + { label: 'Funnel' }, + this.renderFontSize( + 'Label font', + 'funnel_label' + ), + this.renderFontStyle( + 'Label format', + 'funnel_label', + !1 + ), + i.a.createElement( + Ut, + { + checked: !!this.state.funnel_lines, + onChange: function() { + return t.handleStateChange( + 'funnel_lines', + !t.state.funnel_lines + ); + }, + text: { on: 'Show', off: 'Hide' } + }, + i.a.createElement( + 'span', + { className: 'control-label' }, + 'Lines' + ) + ), + i.a.createElement( + Ut, + { + checked: !!this.state.funnel_results, + onChange: function() { + return t.handleStateChange( + 'funnel_results', + !t.state.funnel_results + ); + }, + text: { on: 'Show', off: 'Hide' } + }, + i.a.createElement( + 'span', + { className: 'control-label' }, + 'Results' + ) + ), + i.a.createElement( + Ut, + { + checked: !!this.state.funnel_percents_show, + onChange: function() { + return t.handleStateChange( + 'funnel_percents_show', + !t.state.funnel_percents_show + ); + }, + text: { on: 'Show', off: 'Hide' } + }, + i.a.createElement( + 'span', + { className: 'section-title' }, + 'Percents' + ) + ), + this.state.funnel_percents_show && + this.renderFunnelPercentsSection(), + i.a.createElement( + Ut, + { + checked: !!this.state.funnel_hover, + onChange: function() { + return t.handleStateChange( + 'funnel_hover', + !t.state.funnel_hover + ); + }, + text: { on: 'Show', off: 'Hide' } + }, + i.a.createElement( + 'span', + { className: 'control-label' }, + 'Hover' + ) + ), + i.a.createElement( + Ut, + { + checked: !!this.state.funnel_margin, + onChange: function() { + return t.handleStateChange( + 'funnel_margin', + !t.state.funnel_margin + ); + }, + text: { on: 'Show', off: 'Hide' } + }, + i.a.createElement( + 'span', + { className: 'control-label' }, + 'Margin between steps' + ) + ), + i.a.createElement( + 'div', + { className: 'accordion__item__row' }, + i.a.createElement(Yt, { + key: 'funnel-minimal-size', + type: 'number', + label: 'Minimal size', + name: 'funnel-minimal-size', + value: this.state.funnel_minimal_size, + onChange: function(e) { + return t.handleTextStateUpdate( + 'funnel_minimal_size', + e + ); + } + }) + ), + ('funnel-3d' === this.state.chart || + 'horizontal-funnel-3d' === + this.state.chart) && + this.renderFunnel3dOptions() + ) + ) + ); + } + }, + { + key: 'renderTabChart', + value: function() { + var t = ue(this.state), + e = + !( + !this.state.title_show || !this.state.title_text + ) && this.state.title_text, + n = + this.state.subtitle_show && this.state.subtitle_text + ? this.state.subtitle_text + : '', + r = + 'top' === this.state.legend_layout || + 'bottom' === this.state.legend_layout + ? this.state.legend_position_horizontal + : this.state.legend_position_vertical, + o = { + show: this.state.legend_show, + position: this.state.legend_layout, + alignment: r + }, + a = !!this.state.series_label_show && { labels: !0 }, + s = { + show: this.state.series_points_show, + r: this.state.series_points_size + }, + u = this.state.general_prefix + ? this.state.general_prefix + : void 0, + l = this.state.general_suffix + ? this.state.general_suffix + : void 0, + c = parseInt(this.state.table_pagination_limit), + f = + this.state.table_pagination_show && c ? c : void 0, + d = + 'default' === this.state.chart || + 'choropleth' === this.state.chart + ? { + map: this.state.choropleth_map, + borders: { + show: this.state.choropleth_border_show, + size: this.state.choropleth_border_size, + color: this.state.choropleth_border_color + }, + showSlider: this.state.chart_slider_show } - } - ]), - t + : void 0, + h = + 'default' === this.state.chart || + ft.includes(this.state.chart) + ? { + lines: this.state.funnel_lines, + resultValues: this.state.funnel_results, + percents: { + show: this.state.funnel_percents_show, + countingMethod: this.state + .funnel_percents_count, + decimals: this.state + .funnel_percents_decimals + }, + hover: this.state.funnel_hover, + marginBetweenSteps: this.state.funnel_margin, + minimalSize: this.state.funnel_minimal_size, + effect3d: this.state.funnel_effect3d + } + : void 0; + return i.a.createElement( + i.a.Fragment, + null, + i.a.createElement(_e, { + type: this.state.chart, + colors: this.state.colors, + legend: o, + title: e, + subtitle: n, + axis: le(this.state), + data: a, + point: s, + prefix: u, + suffix: l, + choropleth: d, + funnel: h, + simpleTooltip: this.state.tooltip_simpleTooltip, + sparkline: this.state.appearance_sparkline, + stacked: this.state.series_stacked, + pagination: f + }), + i.a.createElement( + m.a, + { + id: '2022330400', + dynamic: [ + t.chartBackground, + t.chartBorder, + t.chartFont, + t.titleColor, + t.titleTextAlign, + t.titleFontFamily, + t.titleFontSize, + t.titleFontBold, + t.titleFontItalic, + t.subtitleColor, + t.subtitleTextAlign, + t.subtitleFontFamily, + t.subtitleFontSize, + t.subtitleFontBold, + t.subtitleFontItalic, + t.axisYLabelColor, + t.axisYLabelFont, + t.axisYLabelFontSize, + t.axisYLabelFontBold, + t.axisYLabelFontItalic, + t.axisXLabelColor, + t.axisXLabelFont, + t.axisXLabelFontSize, + t.axisXLabelFontBold, + t.axisXLabelFontItalic, + t.legendFont, + t.legendFontSize, + t.legendFontBold, + t.legendFontItalic, + t.legendColor, + t.gridLineColor, + t.gridLineShow, + t.axisYTitleFont, + t.axisYTitleFontSize, + t.axisYTitleFontBold, + t.axisYTitleFontItalic, + t.axisYTitleColor, + t.axisXTitleFont, + t.axisXTitleFontSize, + t.axisXTitleFontBold, + t.axisXTitleFontItalic, + t.axisXTitleColor, + t.seriesLabelFont, + t.seriesLabelFontSize, + t.seriesLabelFontBold, + t.seriesLabelFontItalic, + t.seriesLabelColor, + t.seriesLineThickness, + t.tooltipFont, + t.tooltipFontSize, + t.tooltipFontBold, + t.tooltipFontItalic, + t.tooltipColor, + t.tooltipBackground, + t.tooltipBorder, + t.chartFont, + t.chartFontSize, + t.chartFontBold, + t.chartFontItalic, + t.chartColor, + t.tableHeaderFont, + t.tableHeaderFontSize, + t.tableHeaderFontBold, + t.tableHeaderFontItalic, + t.tableHeaderTextAlign, + t.tableHeaderColor, + t.tableBodyFont, + t.tableBodyFontSize, + t.tableBodyFontBold, + t.tableBodyFontItalic, + t.tableBodyTextAlign, + t.tableBodyColor, + t.tableBodyRowAltBackground, + t.tableBodyRowHoverBackground, + t.funnelLabelColor, + t.funnelLabelFontFamily, + t.funnelLabelFontSize, + t.funnelLabelFontBold, + t.funnelLabelFontItalic + ] + }, + [ + '.keen-theme-builder .keen-dataviz{' + .concat(t.chartBackground, ' ') + .concat(t.chartBorder, ';}'), + '.keen-dataviz,.c3 svg{'.concat( + t.chartFont, + ';}' + ), + '.keen-dataviz .keen-dataviz-title,.keen-theme-builder .keen-dataviz .keen-dataviz-metric-title{display:block;' + .concat(t.titleColor, ' ') + .concat(t.titleTextAlign, ' ') + .concat(t.titleFontFamily, ' ') + .concat(t.titleFontSize, ' ') + .concat(t.titleFontBold, ' ') + .concat(t.titleFontItalic, ';}'), + '.keen-dataviz .keen-dataviz-subtitle,.keen-theme-builder .keen-dataviz .keen-dataviz-metric-subtitle{width:100%;display:block;' + .concat(t.subtitleColor, ' ') + .concat(t.subtitleTextAlign, ' ') + .concat(t.subtitleFontFamily, ' ') + .concat(t.subtitleFontSize, ' ') + .concat(t.subtitleFontBold, ' ') + .concat(t.subtitleFontItalic, ';}'), + '.keen-dataviz .c3-axis.c3-axis-y .tick text{' + .concat(t.axisYLabelColor, ' ') + .concat(t.axisYLabelFont, ' ') + .concat(t.axisYLabelFontSize, ' ') + .concat(t.axisYLabelFontBold, ' ') + .concat(t.axisYLabelFontItalic, ';}'), + '.keen-dataviz .c3-axis.c3-axis-x .tick text{' + .concat(t.axisXLabelColor, ' ') + .concat(t.axisXLabelFont, ' ') + .concat(t.axisXLabelFontSize, ' ') + .concat(t.axisXLabelFontBold, ' ') + .concat(t.axisXLabelFontItalic, ';}'), + '.keen-dataviz .keen-c3-legend .legend-item-text{' + .concat(t.legendFont, ' ') + .concat(t.legendFontSize, ' ') + .concat(t.legendFontBold, ' ') + .concat(t.legendFontItalic, ' ') + .concat(t.legendColor, ';}'), + '.keen-dataviz .c3-grid line,.keen-dataviz .chart-lines{'.concat( + t.gridLineColor, + ';}' + ), + '.keen-theme-builder .keen-dataviz .c3-ygrid{'.concat( + t.gridLineShow, + ';}' + ), + '.keen-theme-builder .keen-dataviz .c3-axis .c3-axis-y-label{' + .concat(t.axisYTitleFont, ' ') + .concat(t.axisYTitleFontSize, ' ') + .concat(t.axisYTitleFontBold, ' ') + .concat(t.axisYTitleFontItalic, ' ') + .concat(t.axisYTitleColor, ';}'), + '.keen-theme-builder .keen-dataviz .c3-axis .c3-axis-x-label{' + .concat(t.axisXTitleFont, ' ') + .concat(t.axisXTitleFontSize, ' ') + .concat(t.axisXTitleFontBold, ' ') + .concat(t.axisXTitleFontItalic, ' ') + .concat(t.axisXTitleColor, ';}'), + '.keen-theme-builder .keen-dataviz .c3-chart-texts .c3-text,.keen-theme-builder .keen-dataviz .c3-chart-arcs .c3-chart-arc text,.keen-theme-builder .keen-dataviz .c3-chart-arcs-gauge-min,.keen-theme-builder .keen-dataviz .c3-chart-arcs-gauge-max{' + .concat(t.seriesLabelFont, ' ') + .concat(t.seriesLabelFontSize, ' ') + .concat(t.seriesLabelFontBold, ' ') + .concat(t.seriesLabelFontItalic, ' ') + .concat(t.seriesLabelColor, ';}'), + '.keen-theme-builder .keen-dataviz .c3-chart-lines .c3-shape.c3-line{'.concat( + t.seriesLineThickness, + ';}' + ), + '.keen-theme-builder .keen-dataviz .c3-tooltip{' + .concat(t.tooltipFont, ' ') + .concat(t.tooltipFontSize, ' ') + .concat(t.tooltipFontBold, ' ') + .concat(t.tooltipFontItalic, ' ') + .concat(t.tooltipColor, ' ') + .concat(t.tooltipBackground, ' ') + .concat(t.tooltipBorder, ';}'), + '.keen-theme-builder .keen-dataviz .keen-dataviz-metric-value{' + .concat(t.chartFont, ' ') + .concat(t.chartFontSize, ' ') + .concat(t.chartFontBold, ' ') + .concat(t.chartFontItalic, ' ') + .concat(t.chartColor, ';}'), + '.keen-theme-builder .keen-dataviz-table th{' + .concat(t.tableHeaderFont, ' ') + .concat(t.tableHeaderFontSize, ' ') + .concat(t.tableHeaderFontBold, ' ') + .concat(t.tableHeaderFontItalic, ' ') + .concat(t.tableHeaderTextAlign, ' ') + .concat(t.tableHeaderColor, ';}'), + '.keen-theme-builder .keen-dataviz-table tr td,.keen-theme-builder .keen-dataviz-table .table-data-row{' + .concat(t.tableBodyFont, ' ') + .concat(t.tableBodyFontSize, ' ') + .concat(t.tableBodyFontBold, ' ') + .concat(t.tableBodyFontItalic, ' ') + .concat(t.tableBodyTextAlign, ' ') + .concat(t.tableBodyColor, ';}'), + '.keen-theme-builder .keen-dataviz-table .table-data-row:nth-child(even) td{'.concat( + t.tableBodyRowAltBackground, + ';}' + ), + '.keen-theme-builder .keen-dataviz-table .table-data-row:hover td{'.concat( + t.tableBodyRowHoverBackground, + ' color:inherit;}' + ), + '.keen-theme-builder .keen-dataviz-rendering .text-label{display:block;' + .concat(t.funnelLabelColor, ' ') + .concat(t.funnelLabelFontFamily, ' ') + .concat(t.funnelLabelFontSize, ' ') + .concat(t.funnelLabelFontBold, ' ') + .concat(t.funnelLabelFontItalic, ';}') + ] + ) + ); + } + }, + { + key: 'renderMockUpSection', + value: function() { + return i.a.createElement( + 'div', + { className: 'builder__mockup' }, + i.a.createElement( + 'h2', + { className: 'builder__header' }, + 'Preview' + ), + !this.props.isDashboardBuilderActive && + i.a.createElement( + d.Tabs, + null, + i.a.createElement( + d.TabList, + null, + i.a.createElement(d.Tab, null, 'Chart'), + i.a.createElement(d.Tab, null, 'CSS'), + i.a.createElement(d.Tab, null, 'Javascript') + ), + i.a.createElement( + d.TabPanel, + null, + this.renderTabChart() + ), + i.a.createElement( + d.TabPanel, + null, + i.a.createElement(ge, { + data: this.state, + type: 'css' + }) + ), + i.a.createElement( + d.TabPanel, + null, + i.a.createElement(ge, { + data: this.state, + type: 'js' + }) + ) + ) + ); + } + }, + { + key: 'render', + value: function() { + var t = this.props.isDashboardBuilderActive + ? 'keen-theme-builder no-mockup' + : 'keen-theme-builder'; + return i.a.createElement( + 'div', + { className: t }, + this.renderConfigSection(), + !this.props.isDashboardBuilderActive && + this.renderMockUpSection() + ); + } + } + ]) && Ae(n.prototype, r), + e + ); + })(r.PureComponent); + (Oe.propTypes = { + options: a.a.object.isRequired, + isDashboardBuilderActive: a.a.bool, + onChange: a.a.func.isRequired + }), + (Oe.defaultProps = { + options: dt, + isDashboardBuilderActive: !1, + onChange: function() {} + }), + n.d(e, 'getStyles', function() { + return Pe; + }), + (e.default = Oe); + var Pe = function(t, e) { + return de(t, e); + }; + } + ]))); + }, + function(t, e, n) { + 'use strict'; + var r = s(n(258)), + i = s(n(263)), + o = s(n(118)), + a = s(n(115)); + function s(t) { + return t && t.__esModule ? t : { default: t }; + } + t.exports = { + Transition: a.default, + TransitionGroup: o.default, + ReplaceTransition: i.default, + CSSTransition: r.default + }; + }, + , + , + function(t, e, n) { + var r = n(30), + i = n(17), + o = '[object AsyncFunction]', + a = '[object Function]', + s = '[object GeneratorFunction]', + u = '[object Proxy]'; + t.exports = function(t) { + if (!i(t)) return !1; + var e = r(t); + return e == a || e == s || e == o || e == u; + }; + }, + function(t, e, n) { + var r = n(29)(n(22), 'Map'); + t.exports = r; + }, + function(t, e) { + var n = 9007199254740991; + t.exports = function(t) { + return 'number' == typeof t && t > -1 && t % 1 == 0 && t <= n; + }; + }, + function(t, e) { + t.exports = function(t) { + return function(e) { + return t(e); + }; + }; + }, + function(t, e, n) { + (function(t) { + var r = n(98), + i = e && !e.nodeType && e, + o = i && 'object' == typeof t && t && !t.nodeType && t, + a = o && o.exports === i && r.process, + s = (function() { + try { + var t = o && o.require && o.require('util').types; + return t || (a && a.binding && a.binding('util')); + } catch (t) {} + })(); + t.exports = s; + }.call(this, n(40)(t))); + }, + function(t, e, n) { + var r = n(218), + i = n(225), + o = n(227), + a = n(228), + s = n(229); + function u(t) { + var e = -1, + n = null == t ? 0 : t.length; + for (this.clear(); ++e < n; ) { + var r = t[e]; + this.set(r[0], r[1]); + } + } + (u.prototype.clear = r), + (u.prototype.delete = i), + (u.prototype.get = o), + (u.prototype.has = a), + (u.prototype.set = s), + (t.exports = u); + }, + function(t, e, n) { + var r = n(102); + t.exports = function(t, e, n) { + '__proto__' == e && r + ? r(t, e, { + configurable: !0, + enumerable: !0, + value: n, + writable: !0 + }) + : (t[e] = n); + }; + }, + function(t, e, n) { + var r = n(106); + t.exports = function(t) { + var e = new t.constructor(t.byteLength); + return new r(e).set(new r(t)), e; + }; + }, + function(t, e, n) { + var r = n(97)(Object.getPrototypeOf, Object); + t.exports = r; + }, + function(t, e) { + var n = 9007199254740991, + r = /^(?:0|[1-9]\d*)$/; + t.exports = function(t, e) { + var i = typeof t; + return ( + !!(e = null == e ? n : e) && + ('number' == i || ('symbol' != i && r.test(t))) && + t > -1 && + t % 1 == 0 && + t < e + ); + }; + }, + function(t, e, n) { + var r = n(265), + i = n(25); + t.exports = function t(e, n, o, a, s) { + return ( + e === n || + (null == e || null == n || (!i(e) && !i(n)) + ? e != e && n != n + : r(e, n, o, a, t, s)) + ); + }; + }, + function(t, e, n) { + var r = n(275), + i = n(123), + o = Object.prototype.propertyIsEnumerable, + a = Object.getOwnPropertySymbols, + s = a + ? function(t) { + return null == t + ? [] + : ((t = Object(t)), + r(a(t), function(e) { + return o.call(t, e); + })); + } + : i; + t.exports = s; + }, + function(t, e, n) { + (function(t, n) { + var r = 200, + i = '__lodash_hash_undefined__', + o = 1, + a = 2, + s = 9007199254740991, + u = '[object Arguments]', + l = '[object Array]', + c = '[object AsyncFunction]', + f = '[object Boolean]', + d = '[object Date]', + h = '[object Error]', + p = '[object Function]', + g = '[object GeneratorFunction]', + m = '[object Map]', + v = '[object Number]', + y = '[object Null]', + b = '[object Object]', + _ = '[object Proxy]', + x = '[object RegExp]', + w = '[object Set]', + S = '[object String]', + E = '[object Symbol]', + k = '[object Undefined]', + A = '[object ArrayBuffer]', + T = '[object DataView]', + C = /^\[object .+?Constructor\]$/, + O = /^(?:0|[1-9]\d*)$/, + P = {}; + (P['[object Float32Array]'] = P['[object Float64Array]'] = P[ + '[object Int8Array]' + ] = P['[object Int16Array]'] = P['[object Int32Array]'] = P[ + '[object Uint8Array]' + ] = P['[object Uint8ClampedArray]'] = P['[object Uint16Array]'] = P[ + '[object Uint32Array]' + ] = !0), + (P[u] = P[l] = P[A] = P[f] = P[T] = P[d] = P[h] = P[p] = P[m] = P[ + v + ] = P[b] = P[x] = P[w] = P[S] = P['[object WeakMap]'] = !1); + var M = 'object' == typeof t && t && t.Object === Object && t, + L = 'object' == typeof self && self && self.Object === Object && self, + j = M || L || Function('return this')(), + D = e && !e.nodeType && e, + R = D && 'object' == typeof n && n && !n.nodeType && n, + z = R && R.exports === D, + N = z && M.process, + I = (function() { + try { + return N && N.binding && N.binding('util'); + } catch (t) {} + })(), + F = I && I.isTypedArray; + function V(t, e) { + for (var n = -1, r = null == t ? 0 : t.length; ++n < r; ) + if (e(t[n], n, t)) return !0; + return !1; + } + function B(t) { + var e = -1, + n = Array(t.size); + return ( + t.forEach(function(t, r) { + n[++e] = [r, t]; + }), + n + ); + } + function G(t) { + var e = -1, + n = Array(t.size); + return ( + t.forEach(function(t) { + n[++e] = t; + }), + n + ); + } + var H, + U, + q, + W = Array.prototype, + X = Function.prototype, + Y = Object.prototype, + $ = j['__core-js_shared__'], + K = X.toString, + Q = Y.hasOwnProperty, + Z = (H = /[^.]+$/.exec(($ && $.keys && $.keys.IE_PROTO) || '')) + ? 'Symbol(src)_1.' + H + : '', + J = Y.toString, + tt = RegExp( + '^' + + K.call(Q) + .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') + .replace( + /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, + '$1.*?' + ) + + '$' + ), + et = z ? j.Buffer : void 0, + nt = j.Symbol, + rt = j.Uint8Array, + it = Y.propertyIsEnumerable, + ot = W.splice, + at = nt ? nt.toStringTag : void 0, + st = Object.getOwnPropertySymbols, + ut = et ? et.isBuffer : void 0, + lt = + ((U = Object.keys), + (q = Object), + function(t) { + return U(q(t)); + }), + ct = It(j, 'DataView'), + ft = It(j, 'Map'), + dt = It(j, 'Promise'), + ht = It(j, 'Set'), + pt = It(j, 'WeakMap'), + gt = It(Object, 'create'), + mt = Gt(ct), + vt = Gt(ft), + yt = Gt(dt), + bt = Gt(ht), + _t = Gt(pt), + xt = nt ? nt.prototype : void 0, + wt = xt ? xt.valueOf : void 0; + function St(t) { + var e = -1, + n = null == t ? 0 : t.length; + for (this.clear(); ++e < n; ) { + var r = t[e]; + this.set(r[0], r[1]); + } + } + function Et(t) { + var e = -1, + n = null == t ? 0 : t.length; + for (this.clear(); ++e < n; ) { + var r = t[e]; + this.set(r[0], r[1]); + } + } + function kt(t) { + var e = -1, + n = null == t ? 0 : t.length; + for (this.clear(); ++e < n; ) { + var r = t[e]; + this.set(r[0], r[1]); + } + } + function At(t) { + var e = -1, + n = null == t ? 0 : t.length; + for (this.__data__ = new kt(); ++e < n; ) this.add(t[e]); + } + function Tt(t) { + var e = (this.__data__ = new Et(t)); + this.size = e.size; + } + function Ct(t, e) { + var n = qt(t), + r = !n && Ut(t), + i = !n && !r && Wt(t), + o = !n && !r && !i && Qt(t), + a = n || r || i || o, + s = a + ? (function(t, e) { + for (var n = -1, r = Array(t); ++n < t; ) r[n] = e(n); + return r; + })(t.length, String) + : [], + u = s.length; + for (var l in t) + (!e && !Q.call(t, l)) || + (a && + ('length' == l || + (i && ('offset' == l || 'parent' == l)) || + (o && + ('buffer' == l || + 'byteLength' == l || + 'byteOffset' == l)) || + Bt(l, u))) || + s.push(l); + return s; + } + function Ot(t, e) { + for (var n = t.length; n--; ) if (Ht(t[n][0], e)) return n; + return -1; + } + function Pt(t) { + return null == t + ? void 0 === t + ? k + : y + : at && at in Object(t) + ? (function(t) { + var e = Q.call(t, at), + n = t[at]; + try { + t[at] = void 0; + var r = !0; + } catch (t) {} + var i = J.call(t); + r && (e ? (t[at] = n) : delete t[at]); + return i; + })(t) + : (function(t) { + return J.call(t); + })(t); + } + function Mt(t) { + return Kt(t) && Pt(t) == u; + } + function Lt(t, e, n, r, i) { + return ( + t === e || + (null == t || null == e || (!Kt(t) && !Kt(e)) + ? t != t && e != e + : (function(t, e, n, r, i, s) { + var c = qt(t), + p = qt(e), + g = c ? l : Vt(t), + y = p ? l : Vt(e), + _ = (g = g == u ? b : g) == b, + k = (y = y == u ? b : y) == b, + C = g == y; + if (C && Wt(t)) { + if (!Wt(e)) return !1; + (c = !0), (_ = !1); + } + if (C && !_) + return ( + s || (s = new Tt()), + c || Qt(t) + ? Rt(t, e, n, r, i, s) + : (function(t, e, n, r, i, s, u) { + switch (n) { + case T: + if ( + t.byteLength != e.byteLength || + t.byteOffset != e.byteOffset + ) + return !1; + (t = t.buffer), (e = e.buffer); + case A: + return !( + t.byteLength != e.byteLength || + !s(new rt(t), new rt(e)) + ); + case f: + case d: + case v: + return Ht(+t, +e); + case h: + return ( + t.name == e.name && t.message == e.message + ); + case x: + case S: + return t == e + ''; + case m: + var l = B; + case w: + var c = r & o; + if ((l || (l = G), t.size != e.size && !c)) + return !1; + var p = u.get(t); + if (p) return p == e; + (r |= a), u.set(t, e); + var g = Rt(l(t), l(e), r, i, s, u); + return u.delete(t), g; + case E: + if (wt) return wt.call(t) == wt.call(e); + } + return !1; + })(t, e, g, n, r, i, s) + ); + if (!(n & o)) { + var O = _ && Q.call(t, '__wrapped__'), + P = k && Q.call(e, '__wrapped__'); + if (O || P) { + var M = O ? t.value() : t, + L = P ? e.value() : e; + return s || (s = new Tt()), i(M, L, n, r, s); + } + } + if (!C) return !1; + return ( + s || (s = new Tt()), + (function(t, e, n, r, i, a) { + var s = n & o, + u = zt(t), + l = u.length, + c = zt(e).length; + if (l != c && !s) return !1; + var f = l; + for (; f--; ) { + var d = u[f]; + if (!(s ? d in e : Q.call(e, d))) return !1; + } + var h = a.get(t); + if (h && a.get(e)) return h == e; + var p = !0; + a.set(t, e), a.set(e, t); + var g = s; + for (; ++f < l; ) { + d = u[f]; + var m = t[d], + v = e[d]; + if (r) + var y = s ? r(v, m, d, e, t, a) : r(m, v, d, t, e, a); + if (!(void 0 === y ? m === v || i(m, v, n, r, a) : y)) { + p = !1; + break; + } + g || (g = 'constructor' == d); + } + if (p && !g) { + var b = t.constructor, + _ = e.constructor; + b != _ && + 'constructor' in t && + 'constructor' in e && + !( + 'function' == typeof b && + b instanceof b && + 'function' == typeof _ && + _ instanceof _ + ) && + (p = !1); + } + return a.delete(t), a.delete(e), p; + })(t, e, n, r, i, s) + ); + })(t, e, n, r, Lt, i)) + ); + } + function jt(t) { + return ( + !( + !$t(t) || + (function(t) { + return !!Z && Z in t; + })(t) + ) && (Xt(t) ? tt : C).test(Gt(t)) + ); + } + function Dt(t) { + if ( + !(function(t) { + var e = t && t.constructor, + n = ('function' == typeof e && e.prototype) || Y; + return t === n; + })(t) + ) + return lt(t); + var e = []; + for (var n in Object(t)) + Q.call(t, n) && 'constructor' != n && e.push(n); + return e; + } + function Rt(t, e, n, r, i, s) { + var u = n & o, + l = t.length, + c = e.length; + if (l != c && !(u && c > l)) return !1; + var f = s.get(t); + if (f && s.get(e)) return f == e; + var d = -1, + h = !0, + p = n & a ? new At() : void 0; + for (s.set(t, e), s.set(e, t); ++d < l; ) { + var g = t[d], + m = e[d]; + if (r) var v = u ? r(m, g, d, e, t, s) : r(g, m, d, t, e, s); + if (void 0 !== v) { + if (v) continue; + h = !1; + break; + } + if (p) { + if ( + !V(e, function(t, e) { + if (((o = e), !p.has(o) && (g === t || i(g, t, n, r, s)))) + return p.push(e); + var o; + }) + ) { + h = !1; + break; + } + } else if (g !== m && !i(g, m, n, r, s)) { + h = !1; + break; + } + } + return s.delete(t), s.delete(e), h; + } + function zt(t) { + return (function(t, e, n) { + var r = e(t); + return qt(t) + ? r + : (function(t, e) { + for (var n = -1, r = e.length, i = t.length; ++n < r; ) + t[i + n] = e[n]; + return t; + })(r, n(t)); + })(t, Zt, Ft); + } + function Nt(t, e) { + var n = t.__data__; + return (function(t) { + var e = typeof t; + return 'string' == e || + 'number' == e || + 'symbol' == e || + 'boolean' == e + ? '__proto__' !== t + : null === t; + })(e) + ? n['string' == typeof e ? 'string' : 'hash'] + : n.map; + } + function It(t, e) { + var n = (function(t, e) { + return null == t ? void 0 : t[e]; + })(t, e); + return jt(n) ? n : void 0; + } + (St.prototype.clear = function() { + (this.__data__ = gt ? gt(null) : {}), (this.size = 0); + }), + (St.prototype.delete = function(t) { + var e = this.has(t) && delete this.__data__[t]; + return (this.size -= e ? 1 : 0), e; + }), + (St.prototype.get = function(t) { + var e = this.__data__; + if (gt) { + var n = e[t]; + return n === i ? void 0 : n; + } + return Q.call(e, t) ? e[t] : void 0; + }), + (St.prototype.has = function(t) { + var e = this.__data__; + return gt ? void 0 !== e[t] : Q.call(e, t); + }), + (St.prototype.set = function(t, e) { + var n = this.__data__; + return ( + (this.size += this.has(t) ? 0 : 1), + (n[t] = gt && void 0 === e ? i : e), + this + ); + }), + (Et.prototype.clear = function() { + (this.__data__ = []), (this.size = 0); + }), + (Et.prototype.delete = function(t) { + var e = this.__data__, + n = Ot(e, t); + return ( + !(n < 0) && + (n == e.length - 1 ? e.pop() : ot.call(e, n, 1), --this.size, !0) + ); + }), + (Et.prototype.get = function(t) { + var e = this.__data__, + n = Ot(e, t); + return n < 0 ? void 0 : e[n][1]; + }), + (Et.prototype.has = function(t) { + return Ot(this.__data__, t) > -1; + }), + (Et.prototype.set = function(t, e) { + var n = this.__data__, + r = Ot(n, t); + return r < 0 ? (++this.size, n.push([t, e])) : (n[r][1] = e), this; + }), + (kt.prototype.clear = function() { + (this.size = 0), + (this.__data__ = { + hash: new St(), + map: new (ft || Et)(), + string: new St() + }); + }), + (kt.prototype.delete = function(t) { + var e = Nt(this, t).delete(t); + return (this.size -= e ? 1 : 0), e; + }), + (kt.prototype.get = function(t) { + return Nt(this, t).get(t); + }), + (kt.prototype.has = function(t) { + return Nt(this, t).has(t); + }), + (kt.prototype.set = function(t, e) { + var n = Nt(this, t), + r = n.size; + return n.set(t, e), (this.size += n.size == r ? 0 : 1), this; + }), + (At.prototype.add = At.prototype.push = function(t) { + return this.__data__.set(t, i), this; + }), + (At.prototype.has = function(t) { + return this.__data__.has(t); + }), + (Tt.prototype.clear = function() { + (this.__data__ = new Et()), (this.size = 0); + }), + (Tt.prototype.delete = function(t) { + var e = this.__data__, + n = e.delete(t); + return (this.size = e.size), n; + }), + (Tt.prototype.get = function(t) { + return this.__data__.get(t); + }), + (Tt.prototype.has = function(t) { + return this.__data__.has(t); + }), + (Tt.prototype.set = function(t, e) { + var n = this.__data__; + if (n instanceof Et) { + var i = n.__data__; + if (!ft || i.length < r - 1) + return i.push([t, e]), (this.size = ++n.size), this; + n = this.__data__ = new kt(i); + } + return n.set(t, e), (this.size = n.size), this; + }); + var Ft = st + ? function(t) { + return null == t + ? [] + : ((t = Object(t)), + (function(t, e) { + for ( + var n = -1, r = null == t ? 0 : t.length, i = 0, o = []; + ++n < r; + + ) { + var a = t[n]; + e(a, n, t) && (o[i++] = a); + } + return o; + })(st(t), function(e) { + return it.call(t, e); + })); + } + : function() { + return []; + }, + Vt = Pt; + function Bt(t, e) { + return ( + !!(e = null == e ? s : e) && + ('number' == typeof t || O.test(t)) && + t > -1 && + t % 1 == 0 && + t < e + ); + } + function Gt(t) { + if (null != t) { + try { + return K.call(t); + } catch (t) {} + try { + return t + ''; + } catch (t) {} + } + return ''; + } + function Ht(t, e) { + return t === e || (t != t && e != e); + } + ((ct && Vt(new ct(new ArrayBuffer(1))) != T) || + (ft && Vt(new ft()) != m) || + (dt && '[object Promise]' != Vt(dt.resolve())) || + (ht && Vt(new ht()) != w) || + (pt && '[object WeakMap]' != Vt(new pt()))) && + (Vt = function(t) { + var e = Pt(t), + n = e == b ? t.constructor : void 0, + r = n ? Gt(n) : ''; + if (r) + switch (r) { + case mt: + return T; + case vt: + return m; + case yt: + return '[object Promise]'; + case bt: + return w; + case _t: + return '[object WeakMap]'; + } + return e; + }); + var Ut = Mt( + (function() { + return arguments; + })() + ) + ? Mt + : function(t) { + return Kt(t) && Q.call(t, 'callee') && !it.call(t, 'callee'); + }, + qt = Array.isArray; + var Wt = + ut || + function() { + return !1; + }; + function Xt(t) { + if (!$t(t)) return !1; + var e = Pt(t); + return e == p || e == g || e == c || e == _; + } + function Yt(t) { + return 'number' == typeof t && t > -1 && t % 1 == 0 && t <= s; + } + function $t(t) { + var e = typeof t; + return null != t && ('object' == e || 'function' == e); + } + function Kt(t) { + return null != t && 'object' == typeof t; + } + var Qt = F + ? (function(t) { + return function(e) { + return t(e); + }; + })(F) + : function(t) { + return Kt(t) && Yt(t.length) && !!P[Pt(t)]; + }; + function Zt(t) { + return (function(t) { + return null != t && Yt(t.length) && !Xt(t); + })(t) + ? Ct(t) + : Dt(t); + } + n.exports = function(t, e) { + return Lt(t, e); + }; + }.call(this, n(13), n(40)(t))); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t, e) { + return t + .filter(function(t) { + return !(0, r.default)(t); + }) + .map(function(t, n) { + var r = void 0; + return 'function' != typeof e || (null !== (r = e(t, n)) && !r) + ? (0, i.default)(t, n, e) + : r; + }); + }); + var r = o(n(294)), + i = o(n(128)); + function o(t) { + return t && t.__esModule ? t : { default: t }; + } + }, + function(t, e, n) { + var r = n(142), + i = n(143); + t.exports = function(t, e) { + return t && r(t, i(e)); + }; + }, + function(t, e, n) { + var r = n(14), + i = n(60), + o = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, + a = /^\w*$/; + t.exports = function(t, e) { + if (r(t)) return !1; + var n = typeof t; + return ( + !( + 'number' != n && + 'symbol' != n && + 'boolean' != n && + null != t && + !i(t) + ) || + (a.test(t) || !o.test(t) || (null != e && t in Object(e))) + ); + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.Checkboard = void 0); + var r = a(n(0)), + i = a(n(3)), + o = (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]); + return (e.default = t), e; + })(n(384)); + function a(t) { + return t && t.__esModule ? t : { default: t }; + } + var s = (e.Checkboard = function(t) { + var e = t.white, + n = t.grey, + a = t.size, + s = t.renderers, + u = t.borderRadius, + l = t.boxShadow, + c = (0, i.default)({ + default: { + grid: { + borderRadius: u, + boxShadow: l, + absolute: '0px 0px 0px 0px', + background: 'url('https://github.com/+%20o.get(e,%20n,%20a,%20s.canvas) + ') center left' + } + } + }); + return r.default.createElement('div', { style: c.grid }); + }); + (s.defaultProps = { + size: 8, + white: 'transparent', + grey: 'rgba(0,0,0,.08)', + renderers: {} + }), + (e.default = s); + }, + function(t, e) { + t.exports = function(t) { + if (void 0 === t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return t; + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); + } + return t; + }, + i = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + o = n(0), + a = u(o), + s = u(n(1)); + function u(t) { + return t && t.__esModule ? t : { default: t }; + } + var l = { + position: 'absolute', + top: 0, + left: 0, + visibility: 'hidden', + height: 0, + overflow: 'scroll', + whiteSpace: 'pre' + }, + c = [ + 'extraWidth', + 'injectStyles', + 'inputClassName', + 'inputRef', + 'inputStyle', + 'minWidth', + 'onAutosize', + 'placeholderIsMinWidth' + ], + f = function(t, e) { + (e.style.fontSize = t.fontSize), + (e.style.fontFamily = t.fontFamily), + (e.style.fontWeight = t.fontWeight), + (e.style.fontStyle = t.fontStyle), + (e.style.letterSpacing = t.letterSpacing), + (e.style.textTransform = t.textTransform); + }, + d = + !('undefined' == typeof window || !window.navigator) && + /MSIE |Trident\/|Edge\//.test(window.navigator.userAgent), + h = function() { + return d + ? '_' + + Math.random() + .toString(36) + .substr(2, 12) + : void 0; + }, + p = (function(t) { + function e(t) { + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + })(this, e); + var n = (function(t, e) { + if (!t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !e || ('object' != typeof e && 'function' != typeof e) + ? t + : e; + })(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); + return ( + (n.inputRef = function(t) { + (n.input = t), + 'function' == typeof n.props.inputRef && n.props.inputRef(t); + }), + (n.placeHolderSizerRef = function(t) { + n.placeHolderSizer = t; + }), + (n.sizerRef = function(t) { + n.sizer = t; + }), + (n.state = { inputWidth: t.minWidth, inputId: t.id || h() }), + n + ); + } + return ( + (function(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof e + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { + value: t, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + e && + (Object.setPrototypeOf + ? Object.setPrototypeOf(t, e) + : (t.__proto__ = e)); + })(e, t), + i(e, [ + { + key: 'componentDidMount', + value: function() { + (this.mounted = !0), + this.copyInputStyles(), + this.updateInputWidth(); + } + }, + { + key: 'UNSAFE_componentWillReceiveProps', + value: function(t) { + var e = t.id; + e !== this.props.id && this.setState({ inputId: e || h() }); + } + }, + { + key: 'componentDidUpdate', + value: function(t, e) { + e.inputWidth !== this.state.inputWidth && + 'function' == typeof this.props.onAutosize && + this.props.onAutosize(this.state.inputWidth), + this.updateInputWidth(); + } + }, + { + key: 'componentWillUnmount', + value: function() { + this.mounted = !1; + } + }, + { + key: 'copyInputStyles', + value: function() { + if (this.mounted && window.getComputedStyle) { + var t = this.input && window.getComputedStyle(this.input); + t && + (f(t, this.sizer), + this.placeHolderSizer && f(t, this.placeHolderSizer)); + } + } + }, + { + key: 'updateInputWidth', + value: function() { + if ( + this.mounted && + this.sizer && + void 0 !== this.sizer.scrollWidth + ) { + var t = void 0; + (t = + this.props.placeholder && + (!this.props.value || + (this.props.value && this.props.placeholderIsMinWidth)) + ? Math.max( + this.sizer.scrollWidth, + this.placeHolderSizer.scrollWidth + ) + 2 + : this.sizer.scrollWidth + 2), + (t += + 'number' === this.props.type && + void 0 === this.props.extraWidth + ? 16 + : parseInt(this.props.extraWidth) || 0) < + this.props.minWidth && (t = this.props.minWidth), + t !== this.state.inputWidth && + this.setState({ inputWidth: t }); + } + } + }, + { + key: 'getInput', + value: function() { + return this.input; + } + }, + { + key: 'focus', + value: function() { + this.input.focus(); + } + }, + { + key: 'blur', + value: function() { + this.input.blur(); + } + }, + { + key: 'select', + value: function() { + this.input.select(); + } + }, + { + key: 'renderStyles', + value: function() { + var t = this.props.injectStyles; + return d && t + ? a.default.createElement('style', { + dangerouslySetInnerHTML: { + __html: + 'input#' + + this.state.inputId + + '::-ms-clear {display: none;}' + } + }) + : null; + } + }, + { + key: 'render', + value: function() { + var t = [ + this.props.defaultValue, + this.props.value, + '' + ].reduce(function(t, e) { + return null != t ? t : e; + }), + e = r({}, this.props.style); + e.display || (e.display = 'inline-block'); + var n = r( + { + boxSizing: 'content-box', + width: this.state.inputWidth + 'px' + }, + this.props.inputStyle + ), + i = (function(t, e) { + var n = {}; + for (var r in t) + e.indexOf(r) >= 0 || + (Object.prototype.hasOwnProperty.call(t, r) && + (n[r] = t[r])); + return n; + })(this.props, []); + return ( + (function(t) { + c.forEach(function(e) { + return delete t[e]; + }); + })(i), + (i.className = this.props.inputClassName), + (i.id = this.state.inputId), + (i.style = n), + a.default.createElement( + 'div', + { className: this.props.className, style: e }, + this.renderStyles(), + a.default.createElement( + 'input', + r({}, i, { ref: this.inputRef }) + ), + a.default.createElement( + 'div', + { ref: this.sizerRef, style: l }, + t + ), + this.props.placeholder + ? a.default.createElement( + 'div', + { ref: this.placeHolderSizerRef, style: l }, + this.props.placeholder + ) + : null + ) + ); + } + } + ]), + e + ); + })(o.Component); + (p.propTypes = { + className: s.default.string, + defaultValue: s.default.any, + extraWidth: s.default.oneOfType([s.default.number, s.default.string]), + id: s.default.string, + injectStyles: s.default.bool, + inputClassName: s.default.string, + inputRef: s.default.func, + inputStyle: s.default.object, + minWidth: s.default.oneOfType([s.default.number, s.default.string]), + onAutosize: s.default.func, + onChange: s.default.func, + placeholder: s.default.string, + placeholderIsMinWidth: s.default.bool, + style: s.default.object, + value: s.default.any + }), + (p.defaultProps = { minWidth: 1, injectStyles: !0 }), + (e.default = p); + }, + function(t, e, n) { + 'use strict'; + n.r(e); + var r = function(t, e) { + return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; + }, + i = function(t) { + var e; + return ( + 1 === t.length && + ((e = t), + (t = function(t, n) { + return r(e(t), n); + })), + { + left: function(e, n, r, i) { + for ( + null == r && (r = 0), null == i && (i = e.length); + r < i; + + ) { + var o = (r + i) >>> 1; + t(e[o], n) < 0 ? (r = o + 1) : (i = o); + } + return r; + }, + right: function(e, n, r, i) { + for ( + null == r && (r = 0), null == i && (i = e.length); + r < i; + + ) { + var o = (r + i) >>> 1; + t(e[o], n) > 0 ? (i = o) : (r = o + 1); + } + return r; + } + } + ); + }; + var o = i(r), + a = o.right, + s = o.left, + u = a, + l = function(t, e) { + null == e && (e = c); + for ( + var n = 0, r = t.length - 1, i = t[0], o = new Array(r < 0 ? 0 : r); + n < r; + + ) + o[n] = e(i, (i = t[++n])); + return o; + }; + function c(t, e) { + return [t, e]; + } + var f = function(t, e, n) { + var r, + i, + o, + a, + s = t.length, + u = e.length, + l = new Array(s * u); + for (null == n && (n = c), r = o = 0; r < s; ++r) + for (a = t[r], i = 0; i < u; ++i, ++o) l[o] = n(a, e[i]); + return l; + }, + d = function(t, e) { + return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN; + }, + h = function(t) { + return null === t ? NaN : +t; + }, + p = function(t, e) { + var n, + r, + i = t.length, + o = 0, + a = -1, + s = 0, + u = 0; + if (null == e) + for (; ++a < i; ) + isNaN((n = h(t[a]))) || (u += (r = n - s) * (n - (s += r / ++o))); + else + for (; ++a < i; ) + isNaN((n = h(e(t[a], a, t)))) || + (u += (r = n - s) * (n - (s += r / ++o))); + if (o > 1) return u / (o - 1); + }, + g = function(t, e) { + var n = p(t, e); + return n ? Math.sqrt(n) : n; + }, + m = function(t, e) { + var n, + r, + i, + o = t.length, + a = -1; + if (null == e) { + for (; ++a < o; ) + if (null != (n = t[a]) && n >= n) + for (r = i = n; ++a < o; ) + null != (n = t[a]) && (r > n && (r = n), i < n && (i = n)); + } else + for (; ++a < o; ) + if (null != (n = e(t[a], a, t)) && n >= n) + for (r = i = n; ++a < o; ) + null != (n = e(t[a], a, t)) && + (r > n && (r = n), i < n && (i = n)); + return [r, i]; + }, + v = Array.prototype, + y = v.slice, + b = v.map, + _ = function(t) { + return function() { + return t; + }; + }, + x = function(t) { + return t; + }, + w = function(t, e, n) { + (t = +t), + (e = +e), + (n = + (i = arguments.length) < 2 + ? ((e = t), (t = 0), 1) + : i < 3 + ? 1 + : +n); + for ( + var r = -1, + i = 0 | Math.max(0, Math.ceil((e - t) / n)), + o = new Array(i); + ++r < i; + + ) + o[r] = t + r * n; + return o; + }, + S = Math.sqrt(50), + E = Math.sqrt(10), + k = Math.sqrt(2), + A = function(t, e, n) { + var r, + i, + o, + a, + s = -1; + if (((n = +n), (t = +t) === (e = +e) && n > 0)) return [t]; + if ( + ((r = e < t) && ((i = t), (t = e), (e = i)), + 0 === (a = T(t, e, n)) || !isFinite(a)) + ) + return []; + if (a > 0) + for ( + t = Math.ceil(t / a), + e = Math.floor(e / a), + o = new Array((i = Math.ceil(e - t + 1))); + ++s < i; + + ) + o[s] = (t + s) * a; + else + for ( + t = Math.floor(t * a), + e = Math.ceil(e * a), + o = new Array((i = Math.ceil(t - e + 1))); + ++s < i; + + ) + o[s] = (t - s) / a; + return r && o.reverse(), o; + }; + function T(t, e, n) { + var r = (e - t) / Math.max(0, n), + i = Math.floor(Math.log(r) / Math.LN10), + o = r / Math.pow(10, i); + return i >= 0 + ? (o >= S ? 10 : o >= E ? 5 : o >= k ? 2 : 1) * Math.pow(10, i) + : -Math.pow(10, -i) / (o >= S ? 10 : o >= E ? 5 : o >= k ? 2 : 1); + } + function C(t, e, n) { + var r = Math.abs(e - t) / Math.max(0, n), + i = Math.pow(10, Math.floor(Math.log(r) / Math.LN10)), + o = r / i; + return ( + o >= S ? (i *= 10) : o >= E ? (i *= 5) : o >= k && (i *= 2), + e < t ? -i : i + ); + } + var O = function(t) { + return Math.ceil(Math.log(t.length) / Math.LN2) + 1; + }, + P = function() { + var t = x, + e = m, + n = O; + function r(r) { + var i, + o, + a = r.length, + s = new Array(a); + for (i = 0; i < a; ++i) s[i] = t(r[i], i, r); + var l = e(s), + c = l[0], + f = l[1], + d = n(s, c, f); + Array.isArray(d) || + ((d = C(c, f, d)), (d = w(Math.ceil(c / d) * d, f, d))); + for (var h = d.length; d[0] <= c; ) d.shift(), --h; + for (; d[h - 1] > f; ) d.pop(), --h; + var p, + g = new Array(h + 1); + for (i = 0; i <= h; ++i) + ((p = g[i] = []).x0 = i > 0 ? d[i - 1] : c), + (p.x1 = i < h ? d[i] : f); + for (i = 0; i < a; ++i) + c <= (o = s[i]) && o <= f && g[u(d, o, 0, h)].push(r[i]); + return g; + } + return ( + (r.value = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : _(e)), r) + : t; + }), + (r.domain = function(t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : _([t[0], t[1]])), r) + : e; + }), + (r.thresholds = function(t) { + return arguments.length + ? ((n = + 'function' == typeof t + ? t + : Array.isArray(t) + ? _(y.call(t)) + : _(t)), + r) + : n; + }), + r + ); + }, + M = function(t, e, n) { + if ((null == n && (n = h), (r = t.length))) { + if ((e = +e) <= 0 || r < 2) return +n(t[0], 0, t); + if (e >= 1) return +n(t[r - 1], r - 1, t); + var r, + i = (r - 1) * e, + o = Math.floor(i), + a = +n(t[o], o, t); + return a + (+n(t[o + 1], o + 1, t) - a) * (i - o); + } + }, + L = function(t, e, n) { + return ( + (t = b.call(t, h).sort(r)), + Math.ceil( + (n - e) / + (2 * (M(t, 0.75) - M(t, 0.25)) * Math.pow(t.length, -1 / 3)) + ) + ); + }, + j = function(t, e, n) { + return Math.ceil((n - e) / (3.5 * g(t) * Math.pow(t.length, -1 / 3))); + }, + D = function(t, e) { + var n, + r, + i = t.length, + o = -1; + if (null == e) { + for (; ++o < i; ) + if (null != (n = t[o]) && n >= n) + for (r = n; ++o < i; ) null != (n = t[o]) && n > r && (r = n); + } else + for (; ++o < i; ) + if (null != (n = e(t[o], o, t)) && n >= n) + for (r = n; ++o < i; ) + null != (n = e(t[o], o, t)) && n > r && (r = n); + return r; + }, + R = function(t, e) { + var n, + r = t.length, + i = r, + o = -1, + a = 0; + if (null == e) + for (; ++o < r; ) isNaN((n = h(t[o]))) ? --i : (a += n); + else for (; ++o < r; ) isNaN((n = h(e(t[o], o, t)))) ? --i : (a += n); + if (i) return a / i; + }, + z = function(t, e) { + var n, + i = t.length, + o = -1, + a = []; + if (null == e) for (; ++o < i; ) isNaN((n = h(t[o]))) || a.push(n); + else for (; ++o < i; ) isNaN((n = h(e(t[o], o, t)))) || a.push(n); + return M(a.sort(r), 0.5); + }, + N = function(t) { + for (var e, n, r, i = t.length, o = -1, a = 0; ++o < i; ) + a += t[o].length; + for (n = new Array(a); --i >= 0; ) + for (e = (r = t[i]).length; --e >= 0; ) n[--a] = r[e]; + return n; + }, + I = function(t, e) { + var n, + r, + i = t.length, + o = -1; + if (null == e) { + for (; ++o < i; ) + if (null != (n = t[o]) && n >= n) + for (r = n; ++o < i; ) null != (n = t[o]) && r > n && (r = n); + } else + for (; ++o < i; ) + if (null != (n = e(t[o], o, t)) && n >= n) + for (r = n; ++o < i; ) + null != (n = e(t[o], o, t)) && r > n && (r = n); + return r; + }, + F = function(t, e) { + for (var n = e.length, r = new Array(n); n--; ) r[n] = t[e[n]]; + return r; + }, + V = function(t, e) { + if ((n = t.length)) { + var n, + i, + o = 0, + a = 0, + s = t[a]; + for (null == e && (e = r); ++o < n; ) + (e((i = t[o]), s) < 0 || 0 !== e(s, s)) && ((s = i), (a = o)); + return 0 === e(s, s) ? a : void 0; + } + }, + B = function(t, e, n) { + for ( + var r, i, o = (null == n ? t.length : n) - (e = null == e ? 0 : +e); + o; + + ) + (i = (Math.random() * o--) | 0), + (r = t[o + e]), + (t[o + e] = t[i + e]), + (t[i + e] = r); + return t; + }, + G = function(t, e) { + var n, + r = t.length, + i = -1, + o = 0; + if (null == e) for (; ++i < r; ) (n = +t[i]) && (o += n); + else for (; ++i < r; ) (n = +e(t[i], i, t)) && (o += n); + return o; + }, + H = function(t) { + if (!(i = t.length)) return []; + for (var e = -1, n = I(t, U), r = new Array(n); ++e < n; ) + for (var i, o = -1, a = (r[e] = new Array(i)); ++o < i; ) + a[o] = t[o][e]; + return r; + }; + function U(t) { + return t.length; + } + var q = function() { + return H(arguments); + }, + W = Array.prototype.slice, + X = function(t) { + return t; + }, + Y = 1, + $ = 2, + K = 3, + Q = 4, + Z = 1e-6; + function J(t) { + return 'translate(' + (t + 0.5) + ',0)'; + } + function tt(t) { + return 'translate(0,' + (t + 0.5) + ')'; + } + function et(t) { + return function(e) { + return +t(e); + }; + } + function nt(t) { + var e = Math.max(0, t.bandwidth() - 1) / 2; + return ( + t.round() && (e = Math.round(e)), + function(n) { + return +t(n) + e; + } + ); + } + function rt() { + return !this.__axis; + } + function it(t, e) { + var n = [], + r = null, + i = null, + o = 6, + a = 6, + s = 3, + u = t === Y || t === Q ? -1 : 1, + l = t === Q || t === $ ? 'x' : 'y', + c = t === Y || t === K ? J : tt; + function f(f) { + var d = null == r ? (e.ticks ? e.ticks.apply(e, n) : e.domain()) : r, + h = null == i ? (e.tickFormat ? e.tickFormat.apply(e, n) : X) : i, + p = Math.max(o, 0) + s, + g = e.range(), + m = +g[0] + 0.5, + v = +g[g.length - 1] + 0.5, + y = (e.bandwidth ? nt : et)(e.copy()), + b = f.selection ? f.selection() : f, + _ = b.selectAll('.domain').data([null]), + x = b + .selectAll('.tick') + .data(d, e) + .order(), + w = x.exit(), + S = x + .enter() + .append('g') + .attr('class', 'tick'), + E = x.select('line'), + k = x.select('text'); + (_ = _.merge( + _.enter() + .insert('path', '.tick') + .attr('class', 'domain') + .attr('stroke', 'currentColor') + )), + (x = x.merge(S)), + (E = E.merge( + S.append('line') + .attr('stroke', 'currentColor') + .attr(l + '2', u * o) + )), + (k = k.merge( + S.append('text') + .attr('fill', 'currentColor') + .attr(l, u * p) + .attr('dy', t === Y ? '0em' : t === K ? '0.71em' : '0.32em') + )), + f !== b && + ((_ = _.transition(f)), + (x = x.transition(f)), + (E = E.transition(f)), + (k = k.transition(f)), + (w = w + .transition(f) + .attr('opacity', Z) + .attr('transform', function(t) { + return isFinite((t = y(t))) + ? c(t) + : this.getAttribute('transform'); + })), + S.attr('opacity', Z).attr('transform', function(t) { + var e = this.parentNode.__axis; + return c(e && isFinite((e = e(t))) ? e : y(t)); + })), + w.remove(), + _.attr( + 'd', + t === Q || t == $ + ? a + ? 'M' + u * a + ',' + m + 'H0.5V' + v + 'H' + u * a + : 'M0.5,' + m + 'V' + v + : a + ? 'M' + m + ',' + u * a + 'V0.5H' + v + 'V' + u * a + : 'M' + m + ',0.5H' + v + ), + x.attr('opacity', 1).attr('transform', function(t) { + return c(y(t)); + }), + E.attr(l + '2', u * o), + k.attr(l, u * p).text(h), + b + .filter(rt) + .attr('fill', 'none') + .attr('font-size', 10) + .attr('font-family', 'sans-serif') + .attr( + 'text-anchor', + t === $ ? 'start' : t === Q ? 'end' : 'middle' + ), + b.each(function() { + this.__axis = y; + }); + } + return ( + (f.scale = function(t) { + return arguments.length ? ((e = t), f) : e; + }), + (f.ticks = function() { + return (n = W.call(arguments)), f; + }), + (f.tickArguments = function(t) { + return arguments.length + ? ((n = null == t ? [] : W.call(t)), f) + : n.slice(); + }), + (f.tickValues = function(t) { + return arguments.length + ? ((r = null == t ? null : W.call(t)), f) + : r && r.slice(); + }), + (f.tickFormat = function(t) { + return arguments.length ? ((i = t), f) : i; + }), + (f.tickSize = function(t) { + return arguments.length ? ((o = a = +t), f) : o; + }), + (f.tickSizeInner = function(t) { + return arguments.length ? ((o = +t), f) : o; + }), + (f.tickSizeOuter = function(t) { + return arguments.length ? ((a = +t), f) : a; + }), + (f.tickPadding = function(t) { + return arguments.length ? ((s = +t), f) : s; + }), + f + ); + } + function ot(t) { + return it(Y, t); + } + function at(t) { + return it($, t); + } + function st(t) { + return it(K, t); + } + function ut(t) { + return it(Q, t); + } + var lt = { value: function() {} }; + function ct() { + for (var t, e = 0, n = arguments.length, r = {}; e < n; ++e) { + if (!(t = arguments[e] + '') || t in r || /[\s.]/.test(t)) + throw new Error('illegal type: ' + t); + r[t] = []; + } + return new ft(r); + } + function ft(t) { + this._ = t; + } + function dt(t, e) { + return t + .trim() + .split(/^|\s+/) + .map(function(t) { + var n = '', + r = t.indexOf('.'); + if ( + (r >= 0 && ((n = t.slice(r + 1)), (t = t.slice(0, r))), + t && !e.hasOwnProperty(t)) + ) + throw new Error('unknown type: ' + t); + return { type: t, name: n }; + }); + } + function ht(t, e) { + for (var n, r = 0, i = t.length; r < i; ++r) + if ((n = t[r]).name === e) return n.value; + } + function pt(t, e, n) { + for (var r = 0, i = t.length; r < i; ++r) + if (t[r].name === e) { + (t[r] = lt), (t = t.slice(0, r).concat(t.slice(r + 1))); + break; + } + return null != n && t.push({ name: e, value: n }), t; + } + ft.prototype = ct.prototype = { + constructor: ft, + on: function(t, e) { + var n, + r = this._, + i = dt(t + '', r), + o = -1, + a = i.length; + if (!(arguments.length < 2)) { + if (null != e && 'function' != typeof e) + throw new Error('invalid callback: ' + e); + for (; ++o < a; ) + if ((n = (t = i[o]).type)) r[n] = pt(r[n], t.name, e); + else if (null == e) for (n in r) r[n] = pt(r[n], t.name, null); + return this; + } + for (; ++o < a; ) + if ((n = (t = i[o]).type) && (n = ht(r[n], t.name))) return n; + }, + copy: function() { + var t = {}, + e = this._; + for (var n in e) t[n] = e[n].slice(); + return new ft(t); + }, + call: function(t, e) { + if ((n = arguments.length - 2) > 0) + for (var n, r, i = new Array(n), o = 0; o < n; ++o) + i[o] = arguments[o + 2]; + if (!this._.hasOwnProperty(t)) throw new Error('unknown type: ' + t); + for (o = 0, n = (r = this._[t]).length; o < n; ++o) + r[o].value.apply(e, i); + }, + apply: function(t, e, n) { + if (!this._.hasOwnProperty(t)) throw new Error('unknown type: ' + t); + for (var r = this._[t], i = 0, o = r.length; i < o; ++i) + r[i].value.apply(e, n); + } + }; + var gt = ct; + function mt() {} + var vt = function(t) { + return null == t + ? mt + : function() { + return this.querySelector(t); + }; + }; + function yt() { + return []; + } + var bt = function(t) { + return null == t + ? yt + : function() { + return this.querySelectorAll(t); + }; + }, + _t = function(t) { + return function() { + return this.matches(t); + }; + }, + xt = function(t) { + return new Array(t.length); + }; + function wt(t, e) { + (this.ownerDocument = t.ownerDocument), + (this.namespaceURI = t.namespaceURI), + (this._next = null), + (this._parent = t), + (this.__data__ = e); + } + wt.prototype = { + constructor: wt, + appendChild: function(t) { + return this._parent.insertBefore(t, this._next); + }, + insertBefore: function(t, e) { + return this._parent.insertBefore(t, e); + }, + querySelector: function(t) { + return this._parent.querySelector(t); + }, + querySelectorAll: function(t) { + return this._parent.querySelectorAll(t); + } + }; + var St = '$'; + function Et(t, e, n, r, i, o) { + for (var a, s = 0, u = e.length, l = o.length; s < l; ++s) + (a = e[s]) + ? ((a.__data__ = o[s]), (r[s] = a)) + : (n[s] = new wt(t, o[s])); + for (; s < u; ++s) (a = e[s]) && (i[s] = a); + } + function kt(t, e, n, r, i, o, a) { + var s, + u, + l, + c = {}, + f = e.length, + d = o.length, + h = new Array(f); + for (s = 0; s < f; ++s) + (u = e[s]) && + ((h[s] = l = St + a.call(u, u.__data__, s, e)), + l in c ? (i[s] = u) : (c[l] = u)); + for (s = 0; s < d; ++s) + (u = c[(l = St + a.call(t, o[s], s, o))]) + ? ((r[s] = u), (u.__data__ = o[s]), (c[l] = null)) + : (n[s] = new wt(t, o[s])); + for (s = 0; s < f; ++s) (u = e[s]) && c[h[s]] === u && (i[s] = u); + } + function At(t, e) { + return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; + } + var Tt = 'http://www.w3.org/1999/xhtml', + Ct = { + svg: 'http://www.w3.org/2000/svg', + xhtml: Tt, + xlink: 'http://www.w3.org/1999/xlink', + xml: 'http://www.w3.org/XML/1998/namespace', + xmlns: 'http://www.w3.org/2000/xmlns/' + }, + Ot = function(t) { + var e = (t += ''), + n = e.indexOf(':'); + return ( + n >= 0 && 'xmlns' !== (e = t.slice(0, n)) && (t = t.slice(n + 1)), + Ct.hasOwnProperty(e) ? { space: Ct[e], local: t } : t + ); + }; + function Pt(t) { + return function() { + this.removeAttribute(t); + }; + } + function Mt(t) { + return function() { + this.removeAttributeNS(t.space, t.local); + }; + } + function Lt(t, e) { + return function() { + this.setAttribute(t, e); + }; + } + function jt(t, e) { + return function() { + this.setAttributeNS(t.space, t.local, e); + }; + } + function Dt(t, e) { + return function() { + var n = e.apply(this, arguments); + null == n ? this.removeAttribute(t) : this.setAttribute(t, n); + }; + } + function Rt(t, e) { + return function() { + var n = e.apply(this, arguments); + null == n + ? this.removeAttributeNS(t.space, t.local) + : this.setAttributeNS(t.space, t.local, n); + }; + } + var zt = function(t) { + return ( + (t.ownerDocument && t.ownerDocument.defaultView) || + (t.document && t) || + t.defaultView + ); + }; + function Nt(t) { + return function() { + this.style.removeProperty(t); + }; + } + function It(t, e, n) { + return function() { + this.style.setProperty(t, e, n); + }; + } + function Ft(t, e, n) { + return function() { + var r = e.apply(this, arguments); + null == r + ? this.style.removeProperty(t) + : this.style.setProperty(t, r, n); + }; + } + function Vt(t, e) { + return ( + t.style.getPropertyValue(e) || + zt(t) + .getComputedStyle(t, null) + .getPropertyValue(e) + ); + } + function Bt(t) { + return function() { + delete this[t]; + }; + } + function Gt(t, e) { + return function() { + this[t] = e; + }; + } + function Ht(t, e) { + return function() { + var n = e.apply(this, arguments); + null == n ? delete this[t] : (this[t] = n); + }; + } + function Ut(t) { + return t.trim().split(/^|\s+/); + } + function qt(t) { + return t.classList || new Wt(t); + } + function Wt(t) { + (this._node = t), (this._names = Ut(t.getAttribute('class') || '')); + } + function Xt(t, e) { + for (var n = qt(t), r = -1, i = e.length; ++r < i; ) n.add(e[r]); + } + function Yt(t, e) { + for (var n = qt(t), r = -1, i = e.length; ++r < i; ) n.remove(e[r]); + } + function $t(t) { + return function() { + Xt(this, t); + }; + } + function Kt(t) { + return function() { + Yt(this, t); + }; + } + function Qt(t, e) { + return function() { + (e.apply(this, arguments) ? Xt : Yt)(this, t); + }; + } + Wt.prototype = { + add: function(t) { + this._names.indexOf(t) < 0 && + (this._names.push(t), + this._node.setAttribute('class', this._names.join(' '))); + }, + remove: function(t) { + var e = this._names.indexOf(t); + e >= 0 && + (this._names.splice(e, 1), + this._node.setAttribute('class', this._names.join(' '))); + }, + contains: function(t) { + return this._names.indexOf(t) >= 0; + } + }; + function Zt() { + this.textContent = ''; + } + function Jt(t) { + return function() { + this.textContent = t; + }; + } + function te(t) { + return function() { + var e = t.apply(this, arguments); + this.textContent = null == e ? '' : e; + }; + } + function ee() { + this.innerHTML = ''; + } + function ne(t) { + return function() { + this.innerHTML = t; + }; + } + function re(t) { + return function() { + var e = t.apply(this, arguments); + this.innerHTML = null == e ? '' : e; + }; + } + function ie() { + this.nextSibling && this.parentNode.appendChild(this); + } + function oe() { + this.previousSibling && + this.parentNode.insertBefore(this, this.parentNode.firstChild); + } + function ae(t) { + return function() { + var e = this.ownerDocument, + n = this.namespaceURI; + return n === Tt && e.documentElement.namespaceURI === Tt + ? e.createElement(t) + : e.createElementNS(n, t); + }; + } + function se(t) { + return function() { + return this.ownerDocument.createElementNS(t.space, t.local); + }; + } + var ue = function(t) { + var e = Ot(t); + return (e.local ? se : ae)(e); + }; + function le() { + return null; + } + function ce() { + var t = this.parentNode; + t && t.removeChild(this); + } + function fe() { + var t = this.cloneNode(!1), + e = this.parentNode; + return e ? e.insertBefore(t, this.nextSibling) : t; + } + function de() { + var t = this.cloneNode(!0), + e = this.parentNode; + return e ? e.insertBefore(t, this.nextSibling) : t; + } + var he = {}, + pe = null; + 'undefined' != typeof document && + ('onmouseenter' in document.documentElement || + (he = { mouseenter: 'mouseover', mouseleave: 'mouseout' })); + function ge(t, e, n) { + return ( + (t = me(t, e, n)), + function(e) { + var n = e.relatedTarget; + (n && (n === this || 8 & n.compareDocumentPosition(this))) || + t.call(this, e); + } + ); + } + function me(t, e, n) { + return function(r) { + var i = pe; + pe = r; + try { + t.call(this, this.__data__, e, n); + } finally { + pe = i; + } + }; + } + function ve(t) { + return t + .trim() + .split(/^|\s+/) + .map(function(t) { + var e = '', + n = t.indexOf('.'); + return ( + n >= 0 && ((e = t.slice(n + 1)), (t = t.slice(0, n))), + { type: t, name: e } + ); + }); + } + function ye(t) { + return function() { + var e = this.__on; + if (e) { + for (var n, r = 0, i = -1, o = e.length; r < o; ++r) + (n = e[r]), + (t.type && n.type !== t.type) || n.name !== t.name + ? (e[++i] = n) + : this.removeEventListener(n.type, n.listener, n.capture); + ++i ? (e.length = i) : delete this.__on; + } + }; + } + function be(t, e, n) { + var r = he.hasOwnProperty(t.type) ? ge : me; + return function(i, o, a) { + var s, + u = this.__on, + l = r(e, o, a); + if (u) + for (var c = 0, f = u.length; c < f; ++c) + if ((s = u[c]).type === t.type && s.name === t.name) + return ( + this.removeEventListener(s.type, s.listener, s.capture), + this.addEventListener( + s.type, + (s.listener = l), + (s.capture = n) + ), + void (s.value = e) + ); + this.addEventListener(t.type, l, n), + (s = { + type: t.type, + name: t.name, + value: e, + listener: l, + capture: n + }), + u ? u.push(s) : (this.__on = [s]); + }; + } + function _e(t, e, n, r) { + var i = pe; + (t.sourceEvent = pe), (pe = t); + try { + return e.apply(n, r); + } finally { + pe = i; + } + } + function xe(t, e, n) { + var r = zt(t), + i = r.CustomEvent; + 'function' == typeof i + ? (i = new i(e, n)) + : ((i = r.document.createEvent('Event')), + n + ? (i.initEvent(e, n.bubbles, n.cancelable), (i.detail = n.detail)) + : i.initEvent(e, !1, !1)), + t.dispatchEvent(i); + } + function we(t, e) { + return function() { + return xe(this, t, e); + }; + } + function Se(t, e) { + return function() { + return xe(this, t, e.apply(this, arguments)); + }; + } + var Ee = [null]; + function ke(t, e) { + (this._groups = t), (this._parents = e); + } + function Ae() { + return new ke([[document.documentElement]], Ee); + } + ke.prototype = Ae.prototype = { + constructor: ke, + select: function(t) { + 'function' != typeof t && (t = vt(t)); + for ( + var e = this._groups, n = e.length, r = new Array(n), i = 0; + i < n; + ++i + ) + for ( + var o, + a, + s = e[i], + u = s.length, + l = (r[i] = new Array(u)), + c = 0; + c < u; + ++c + ) + (o = s[c]) && + (a = t.call(o, o.__data__, c, s)) && + ('__data__' in o && (a.__data__ = o.__data__), (l[c] = a)); + return new ke(r, this._parents); + }, + selectAll: function(t) { + 'function' != typeof t && (t = bt(t)); + for ( + var e = this._groups, n = e.length, r = [], i = [], o = 0; + o < n; + ++o + ) + for (var a, s = e[o], u = s.length, l = 0; l < u; ++l) + (a = s[l]) && (r.push(t.call(a, a.__data__, l, s)), i.push(a)); + return new ke(r, i); + }, + filter: function(t) { + 'function' != typeof t && (t = _t(t)); + for ( + var e = this._groups, n = e.length, r = new Array(n), i = 0; + i < n; + ++i + ) + for ( + var o, a = e[i], s = a.length, u = (r[i] = []), l = 0; + l < s; + ++l + ) + (o = a[l]) && t.call(o, o.__data__, l, a) && u.push(o); + return new ke(r, this._parents); + }, + data: function(t, e) { + if (!t) + return ( + (p = new Array(this.size())), + (c = -1), + this.each(function(t) { + p[++c] = t; + }), + p + ); + var n, + r = e ? kt : Et, + i = this._parents, + o = this._groups; + 'function' != typeof t && + ((n = t), + (t = function() { + return n; + })); + for ( + var a = o.length, + s = new Array(a), + u = new Array(a), + l = new Array(a), + c = 0; + c < a; + ++c + ) { + var f = i[c], + d = o[c], + h = d.length, + p = t.call(f, f && f.__data__, c, i), + g = p.length, + m = (u[c] = new Array(g)), + v = (s[c] = new Array(g)); + r(f, d, m, v, (l[c] = new Array(h)), p, e); + for (var y, b, _ = 0, x = 0; _ < g; ++_) + if ((y = m[_])) { + for (_ >= x && (x = _ + 1); !(b = v[x]) && ++x < g; ); + y._next = b || null; + } + } + return ((s = new ke(s, i))._enter = u), (s._exit = l), s; + }, + enter: function() { + return new ke(this._enter || this._groups.map(xt), this._parents); + }, + exit: function() { + return new ke(this._exit || this._groups.map(xt), this._parents); + }, + join: function(t, e, n) { + var r = this.enter(), + i = this, + o = this.exit(); + return ( + (r = 'function' == typeof t ? t(r) : r.append(t + '')), + null != e && (i = e(i)), + null == n ? o.remove() : n(o), + r && i ? r.merge(i).order() : i + ); + }, + merge: function(t) { + for ( + var e = this._groups, + n = t._groups, + r = e.length, + i = n.length, + o = Math.min(r, i), + a = new Array(r), + s = 0; + s < o; + ++s + ) + for ( + var u, + l = e[s], + c = n[s], + f = l.length, + d = (a[s] = new Array(f)), + h = 0; + h < f; + ++h + ) + (u = l[h] || c[h]) && (d[h] = u); + for (; s < r; ++s) a[s] = e[s]; + return new ke(a, this._parents); + }, + order: function() { + for (var t = this._groups, e = -1, n = t.length; ++e < n; ) + for (var r, i = t[e], o = i.length - 1, a = i[o]; --o >= 0; ) + (r = i[o]) && + (a && + 4 ^ r.compareDocumentPosition(a) && + a.parentNode.insertBefore(r, a), + (a = r)); + return this; + }, + sort: function(t) { + function e(e, n) { + return e && n ? t(e.__data__, n.__data__) : !e - !n; + } + t || (t = At); + for ( + var n = this._groups, r = n.length, i = new Array(r), o = 0; + o < r; + ++o + ) { + for ( + var a, s = n[o], u = s.length, l = (i[o] = new Array(u)), c = 0; + c < u; + ++c + ) + (a = s[c]) && (l[c] = a); + l.sort(e); + } + return new ke(i, this._parents).order(); + }, + call: function() { + var t = arguments[0]; + return (arguments[0] = this), t.apply(null, arguments), this; + }, + nodes: function() { + var t = new Array(this.size()), + e = -1; + return ( + this.each(function() { + t[++e] = this; + }), + t + ); + }, + node: function() { + for (var t = this._groups, e = 0, n = t.length; e < n; ++e) + for (var r = t[e], i = 0, o = r.length; i < o; ++i) { + var a = r[i]; + if (a) return a; + } + return null; + }, + size: function() { + var t = 0; + return ( + this.each(function() { + ++t; + }), + t + ); + }, + empty: function() { + return !this.node(); + }, + each: function(t) { + for (var e = this._groups, n = 0, r = e.length; n < r; ++n) + for (var i, o = e[n], a = 0, s = o.length; a < s; ++a) + (i = o[a]) && t.call(i, i.__data__, a, o); + return this; + }, + attr: function(t, e) { + var n = Ot(t); + if (arguments.length < 2) { + var r = this.node(); + return n.local + ? r.getAttributeNS(n.space, n.local) + : r.getAttribute(n); + } + return this.each( + (null == e + ? n.local + ? Mt + : Pt + : 'function' == typeof e + ? n.local + ? Rt + : Dt + : n.local + ? jt + : Lt)(n, e) + ); + }, + style: function(t, e, n) { + return arguments.length > 1 + ? this.each( + (null == e ? Nt : 'function' == typeof e ? Ft : It)( + t, + e, + null == n ? '' : n + ) + ) + : Vt(this.node(), t); + }, + property: function(t, e) { + return arguments.length > 1 + ? this.each( + (null == e ? Bt : 'function' == typeof e ? Ht : Gt)(t, e) + ) + : this.node()[t]; + }, + classed: function(t, e) { + var n = Ut(t + ''); + if (arguments.length < 2) { + for (var r = qt(this.node()), i = -1, o = n.length; ++i < o; ) + if (!r.contains(n[i])) return !1; + return !0; + } + return this.each(('function' == typeof e ? Qt : e ? $t : Kt)(n, e)); + }, + text: function(t) { + return arguments.length + ? this.each(null == t ? Zt : ('function' == typeof t ? te : Jt)(t)) + : this.node().textContent; + }, + html: function(t) { + return arguments.length + ? this.each(null == t ? ee : ('function' == typeof t ? re : ne)(t)) + : this.node().innerHTML; + }, + raise: function() { + return this.each(ie); + }, + lower: function() { + return this.each(oe); + }, + append: function(t) { + var e = 'function' == typeof t ? t : ue(t); + return this.select(function() { + return this.appendChild(e.apply(this, arguments)); + }); + }, + insert: function(t, e) { + var n = 'function' == typeof t ? t : ue(t), + r = null == e ? le : 'function' == typeof e ? e : vt(e); + return this.select(function() { + return this.insertBefore( + n.apply(this, arguments), + r.apply(this, arguments) || null + ); + }); + }, + remove: function() { + return this.each(ce); + }, + clone: function(t) { + return this.select(t ? de : fe); + }, + datum: function(t) { + return arguments.length + ? this.property('__data__', t) + : this.node().__data__; + }, + on: function(t, e, n) { + var r, + i, + o = ve(t + ''), + a = o.length; + if (!(arguments.length < 2)) { + for (s = e ? be : ye, null == n && (n = !1), r = 0; r < a; ++r) + this.each(s(o[r], e, n)); + return this; + } + var s = this.node().__on; + if (s) + for (var u, l = 0, c = s.length; l < c; ++l) + for (r = 0, u = s[l]; r < a; ++r) + if ((i = o[r]).type === u.type && i.name === u.name) + return u.value; + }, + dispatch: function(t, e) { + return this.each(('function' == typeof e ? Se : we)(t, e)); + } + }; + var Te = Ae, + Ce = function(t) { + return 'string' == typeof t + ? new ke([[document.querySelector(t)]], [document.documentElement]) + : new ke([[t]], Ee); + }; + function Oe() { + pe.stopImmediatePropagation(); + } + var Pe = function() { + pe.preventDefault(), pe.stopImmediatePropagation(); + }, + Me = function(t) { + var e = t.document.documentElement, + n = Ce(t).on('dragstart.drag', Pe, !0); + 'onselectstart' in e + ? n.on('selectstart.drag', Pe, !0) + : ((e.__noselect = e.style.MozUserSelect), + (e.style.MozUserSelect = 'none')); + }; + function Le(t, e) { + var n = t.document.documentElement, + r = Ce(t).on('dragstart.drag', null); + e && + (r.on('click.drag', Pe, !0), + setTimeout(function() { + r.on('click.drag', null); + }, 0)), + 'onselectstart' in n + ? r.on('selectstart.drag', null) + : ((n.style.MozUserSelect = n.__noselect), delete n.__noselect); + } + var je = function(t, e, n) { + (t.prototype = e.prototype = n), (n.constructor = t); + }; + function De(t, e) { + var n = Object.create(t.prototype); + for (var r in e) n[r] = e[r]; + return n; + } + function Re() {} + var ze = '\\s*([+-]?\\d+)\\s*', + Ne = '\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*', + Ie = '\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*', + Fe = /^#([0-9a-f]{3,8})$/, + Ve = new RegExp('^rgb\\(' + [ze, ze, ze] + '\\)$'), + Be = new RegExp('^rgb\\(' + [Ie, Ie, Ie] + '\\)$'), + Ge = new RegExp('^rgba\\(' + [ze, ze, ze, Ne] + '\\)$'), + He = new RegExp('^rgba\\(' + [Ie, Ie, Ie, Ne] + '\\)$'), + Ue = new RegExp('^hsl\\(' + [Ne, Ie, Ie] + '\\)$'), + qe = new RegExp('^hsla\\(' + [Ne, Ie, Ie, Ne] + '\\)$'), + We = { + 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 Xe() { + return this.rgb().formatHex(); + } + function Ye() { + return this.rgb().formatRgb(); + } + function $e(t) { + var e, n; + return ( + (t = (t + '').trim().toLowerCase()), + (e = Fe.exec(t)) + ? ((n = e[1].length), + (e = parseInt(e[1], 16)), + 6 === n + ? Ke(e) + : 3 === n + ? new tn( + ((e >> 8) & 15) | ((e >> 4) & 240), + ((e >> 4) & 15) | (240 & e), + ((15 & e) << 4) | (15 & e), + 1 + ) + : 8 === n + ? new tn( + (e >> 24) & 255, + (e >> 16) & 255, + (e >> 8) & 255, + (255 & e) / 255 + ) + : 4 === n + ? new tn( + ((e >> 12) & 15) | ((e >> 8) & 240), + ((e >> 8) & 15) | ((e >> 4) & 240), + ((e >> 4) & 15) | (240 & e), + (((15 & e) << 4) | (15 & e)) / 255 + ) + : null) + : (e = Ve.exec(t)) + ? new tn(e[1], e[2], e[3], 1) + : (e = Be.exec(t)) + ? new tn( + (255 * e[1]) / 100, + (255 * e[2]) / 100, + (255 * e[3]) / 100, + 1 + ) + : (e = Ge.exec(t)) + ? Qe(e[1], e[2], e[3], e[4]) + : (e = He.exec(t)) + ? Qe( + (255 * e[1]) / 100, + (255 * e[2]) / 100, + (255 * e[3]) / 100, + e[4] + ) + : (e = Ue.exec(t)) + ? on(e[1], e[2] / 100, e[3] / 100, 1) + : (e = qe.exec(t)) + ? on(e[1], e[2] / 100, e[3] / 100, e[4]) + : We.hasOwnProperty(t) + ? Ke(We[t]) + : 'transparent' === t + ? new tn(NaN, NaN, NaN, 0) + : null + ); + } + function Ke(t) { + return new tn((t >> 16) & 255, (t >> 8) & 255, 255 & t, 1); + } + function Qe(t, e, n, r) { + return r <= 0 && (t = e = n = NaN), new tn(t, e, n, r); + } + function Ze(t) { + return ( + t instanceof Re || (t = $e(t)), + t ? new tn((t = t.rgb()).r, t.g, t.b, t.opacity) : new tn() + ); + } + function Je(t, e, n, r) { + return 1 === arguments.length + ? Ze(t) + : new tn(t, e, n, null == r ? 1 : r); + } + function tn(t, e, n, r) { + (this.r = +t), (this.g = +e), (this.b = +n), (this.opacity = +r); + } + function en() { + return '#' + rn(this.r) + rn(this.g) + rn(this.b); + } + function nn() { + var t = this.opacity; + return ( + (1 === (t = isNaN(t) ? 1 : Math.max(0, Math.min(1, t))) + ? '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 === t ? ')' : ', ' + t + ')') + ); + } + function rn(t) { + return ( + ((t = Math.max(0, Math.min(255, Math.round(t) || 0))) < 16 + ? '0' + : '') + t.toString(16) + ); + } + function on(t, e, n, r) { + return ( + r <= 0 + ? (t = e = n = NaN) + : n <= 0 || n >= 1 + ? (t = e = NaN) + : e <= 0 && (t = NaN), + new un(t, e, n, r) + ); + } + function an(t) { + if (t instanceof un) return new un(t.h, t.s, t.l, t.opacity); + if ((t instanceof Re || (t = $e(t)), !t)) return new un(); + if (t instanceof un) return t; + var e = (t = t.rgb()).r / 255, + n = t.g / 255, + r = t.b / 255, + i = Math.min(e, n, r), + o = Math.max(e, n, r), + a = NaN, + s = o - i, + u = (o + i) / 2; + return ( + s + ? ((a = + e === o + ? (n - r) / s + 6 * (n < r) + : n === o + ? (r - e) / s + 2 + : (e - n) / s + 4), + (s /= u < 0.5 ? o + i : 2 - o - i), + (a *= 60)) + : (s = u > 0 && u < 1 ? 0 : a), + new un(a, s, u, t.opacity) + ); + } + function sn(t, e, n, r) { + return 1 === arguments.length + ? an(t) + : new un(t, e, n, null == r ? 1 : r); + } + function un(t, e, n, r) { + (this.h = +t), (this.s = +e), (this.l = +n), (this.opacity = +r); + } + function ln(t, e, n) { + return ( + 255 * + (t < 60 + ? e + ((n - e) * t) / 60 + : t < 180 + ? n + : t < 240 + ? e + ((n - e) * (240 - t)) / 60 + : e) + ); + } + function cn(t, e, n, r, i) { + var o = t * t, + a = o * t; + return ( + ((1 - 3 * t + 3 * o - a) * e + + (4 - 6 * o + 3 * a) * n + + (1 + 3 * t + 3 * o - 3 * a) * r + + a * i) / + 6 + ); + } + je(Re, $e, { + copy: function(t) { + return Object.assign(new this.constructor(), this, t); + }, + displayable: function() { + return this.rgb().displayable(); + }, + hex: Xe, + formatHex: Xe, + formatHsl: function() { + return an(this).formatHsl(); + }, + formatRgb: Ye, + toString: Ye + }), + je( + tn, + Je, + De(Re, { + brighter: function(t) { + return ( + (t = null == t ? 1 / 0.7 : Math.pow(1 / 0.7, t)), + new tn(this.r * t, this.g * t, this.b * t, this.opacity) + ); + }, + darker: function(t) { + return ( + (t = null == t ? 0.7 : Math.pow(0.7, t)), + new tn(this.r * t, this.g * t, this.b * t, this.opacity) + ); + }, + rgb: function() { + return this; + }, + displayable: function() { + return ( + -0.5 <= this.r && + this.r < 255.5 && + -0.5 <= this.g && + this.g < 255.5 && + -0.5 <= this.b && + this.b < 255.5 && + 0 <= this.opacity && + this.opacity <= 1 + ); + }, + hex: en, + formatHex: en, + formatRgb: nn, + toString: nn + }) + ), + je( + un, + sn, + De(Re, { + brighter: function(t) { + return ( + (t = null == t ? 1 / 0.7 : Math.pow(1 / 0.7, t)), + new un(this.h, this.s, this.l * t, this.opacity) + ); + }, + darker: function(t) { + return ( + (t = null == t ? 0.7 : Math.pow(0.7, t)), + new un(this.h, this.s, this.l * t, this.opacity) + ); + }, + rgb: function() { + var t = (this.h % 360) + 360 * (this.h < 0), + e = isNaN(t) || isNaN(this.s) ? 0 : this.s, + n = this.l, + r = n + (n < 0.5 ? n : 1 - n) * e, + i = 2 * n - r; + return new tn( + ln(t >= 240 ? t - 240 : t + 120, i, r), + ln(t, i, r), + ln(t < 120 ? t + 240 : t - 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 t = this.opacity; + return ( + (1 === (t = isNaN(t) ? 1 : Math.max(0, Math.min(1, t))) + ? 'hsl(' + : 'hsla(') + + (this.h || 0) + + ', ' + + 100 * (this.s || 0) + + '%, ' + + 100 * (this.l || 0) + + '%' + + (1 === t ? ')' : ', ' + t + ')') + ); + } + }) + ); + var fn = function(t) { + var e = t.length - 1; + return function(n) { + var r = + n <= 0 + ? (n = 0) + : n >= 1 + ? ((n = 1), e - 1) + : Math.floor(n * e), + i = t[r], + o = t[r + 1], + a = r > 0 ? t[r - 1] : 2 * i - o, + s = r < e - 1 ? t[r + 2] : 2 * o - i; + return cn((n - r / e) * e, a, i, o, s); + }; + }, + dn = function(t) { + var e = t.length; + return function(n) { + var r = Math.floor(((n %= 1) < 0 ? ++n : n) * e), + i = t[(r + e - 1) % e], + o = t[r % e], + a = t[(r + 1) % e], + s = t[(r + 2) % e]; + return cn((n - r / e) * e, i, o, a, s); + }; + }, + hn = function(t) { + return function() { + return t; + }; + }; + function pn(t, e) { + return function(n) { + return t + n * e; + }; + } + function gn(t, e) { + var n = e - t; + return n + ? pn(t, n > 180 || n < -180 ? n - 360 * Math.round(n / 360) : n) + : hn(isNaN(t) ? e : t); + } + function mn(t) { + return 1 == (t = +t) + ? vn + : function(e, n) { + return n - e + ? (function(t, e, n) { + return ( + (t = Math.pow(t, n)), + (e = Math.pow(e, n) - t), + (n = 1 / n), + function(r) { + return Math.pow(t + r * e, n); + } + ); + })(e, n, t) + : hn(isNaN(e) ? n : e); + }; + } + function vn(t, e) { + var n = e - t; + return n ? pn(t, n) : hn(isNaN(t) ? e : t); + } + var yn = (function t(e) { + var n = mn(e); + function r(t, e) { + var r = n((t = Je(t)).r, (e = Je(e)).r), + i = n(t.g, e.g), + o = n(t.b, e.b), + a = vn(t.opacity, e.opacity); + return function(e) { + return ( + (t.r = r(e)), + (t.g = i(e)), + (t.b = o(e)), + (t.opacity = a(e)), + t + '' + ); + }; + } + return (r.gamma = t), r; + })(1); + function bn(t) { + return function(e) { + var n, + r, + i = e.length, + o = new Array(i), + a = new Array(i), + s = new Array(i); + for (n = 0; n < i; ++n) + (r = Je(e[n])), + (o[n] = r.r || 0), + (a[n] = r.g || 0), + (s[n] = r.b || 0); + return ( + (o = t(o)), + (a = t(a)), + (s = t(s)), + (r.opacity = 1), + function(t) { + return (r.r = o(t)), (r.g = a(t)), (r.b = s(t)), r + ''; + } + ); + }; + } + var _n = bn(fn), + xn = bn(dn), + wn = function(t, e) { + e || (e = []); + var n, + r = t ? Math.min(e.length, t.length) : 0, + i = e.slice(); + return function(o) { + for (n = 0; n < r; ++n) i[n] = t[n] * (1 - o) + e[n] * o; + return i; + }; + }; + function Sn(t) { + return ArrayBuffer.isView(t) && !(t instanceof DataView); + } + var En = function(t, e) { + return (Sn(e) ? wn : kn)(t, e); + }; + function kn(t, e) { + var n, + r = e ? e.length : 0, + i = t ? Math.min(r, t.length) : 0, + o = new Array(i), + a = new Array(r); + for (n = 0; n < i; ++n) o[n] = Dn(t[n], e[n]); + for (; n < r; ++n) a[n] = e[n]; + return function(t) { + for (n = 0; n < i; ++n) a[n] = o[n](t); + return a; + }; + } + var An = function(t, e) { + var n = new Date(); + return ( + (t = +t), + (e = +e), + function(r) { + return n.setTime(t * (1 - r) + e * r), n; + } + ); + }, + Tn = function(t, e) { + return ( + (t = +t), + (e = +e), + function(n) { + return t * (1 - n) + e * n; + } + ); + }, + Cn = function(t, e) { + var n, + r = {}, + i = {}; + for (n in ((null !== t && 'object' == typeof t) || (t = {}), + (null !== e && 'object' == typeof e) || (e = {}), + e)) + n in t ? (r[n] = Dn(t[n], e[n])) : (i[n] = e[n]); + return function(t) { + for (n in r) i[n] = r[n](t); + return i; + }; + }, + On = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, + Pn = new RegExp(On.source, 'g'); + var Mn, + Ln, + jn = function(t, e) { + var n, + r, + i, + o = (On.lastIndex = Pn.lastIndex = 0), + a = -1, + s = [], + u = []; + for (t += '', e += ''; (n = On.exec(t)) && (r = Pn.exec(e)); ) + (i = r.index) > o && + ((i = e.slice(o, i)), s[a] ? (s[a] += i) : (s[++a] = i)), + (n = n[0]) === (r = r[0]) + ? s[a] + ? (s[a] += r) + : (s[++a] = r) + : ((s[++a] = null), u.push({ i: a, x: Tn(n, r) })), + (o = Pn.lastIndex); + return ( + o < e.length && + ((i = e.slice(o)), s[a] ? (s[a] += i) : (s[++a] = i)), + s.length < 2 + ? u[0] + ? (function(t) { + return function(e) { + return t(e) + ''; + }; + })(u[0].x) + : (function(t) { + return function() { + return t; + }; + })(e) + : ((e = u.length), + function(t) { + for (var n, r = 0; r < e; ++r) s[(n = u[r]).i] = n.x(t); + return s.join(''); + }) + ); + }, + Dn = function(t, e) { + var n, + r = typeof e; + return null == e || 'boolean' === r + ? hn(e) + : ('number' === r + ? Tn + : 'string' === r + ? (n = $e(e)) + ? ((e = n), yn) + : jn + : e instanceof $e + ? yn + : e instanceof Date + ? An + : Sn(e) + ? wn + : Array.isArray(e) + ? kn + : ('function' != typeof e.valueOf && + 'function' != typeof e.toString) || + isNaN(e) + ? Cn + : Tn)(t, e); + }, + Rn = function() { + for (var t, e = pe; (t = e.sourceEvent); ) e = t; + return e; + }, + zn = function(t, e) { + var n = t.ownerSVGElement || t; + if (n.createSVGPoint) { + var r = n.createSVGPoint(); + return ( + (r.x = e.clientX), + (r.y = e.clientY), + [(r = r.matrixTransform(t.getScreenCTM().inverse())).x, r.y] + ); + } + var i = t.getBoundingClientRect(); + return [ + e.clientX - i.left - t.clientLeft, + e.clientY - i.top - t.clientTop + ]; + }, + Nn = function(t, e, n) { + arguments.length < 3 && ((n = e), (e = Rn().changedTouches)); + for (var r, i = 0, o = e ? e.length : 0; i < o; ++i) + if ((r = e[i]).identifier === n) return zn(t, r); + return null; + }, + In = function(t) { + var e = Rn(); + return e.changedTouches && (e = e.changedTouches[0]), zn(t, e); + }, + Fn = 0, + Vn = 0, + Bn = 0, + Gn = 1e3, + Hn = 0, + Un = 0, + qn = 0, + Wn = + 'object' == typeof performance && performance.now + ? performance + : Date, + Xn = + 'object' == typeof window && window.requestAnimationFrame + ? window.requestAnimationFrame.bind(window) + : function(t) { + setTimeout(t, 17); + }; + function Yn() { + return Un || (Xn($n), (Un = Wn.now() + qn)); + } + function $n() { + Un = 0; + } + function Kn() { + this._call = this._time = this._next = null; + } + function Qn(t, e, n) { + var r = new Kn(); + return r.restart(t, e, n), r; + } + function Zn() { + Yn(), ++Fn; + for (var t, e = Mn; e; ) + (t = Un - e._time) >= 0 && e._call.call(null, t), (e = e._next); + --Fn; + } + function Jn() { + (Un = (Hn = Wn.now()) + qn), (Fn = Vn = 0); + try { + Zn(); + } finally { + (Fn = 0), + (function() { + var t, + e, + n = Mn, + r = 1 / 0; + for (; n; ) + n._call + ? (r > n._time && (r = n._time), (t = n), (n = n._next)) + : ((e = n._next), + (n._next = null), + (n = t ? (t._next = e) : (Mn = e))); + (Ln = t), er(r); + })(), + (Un = 0); + } + } + function tr() { + var t = Wn.now(), + e = t - Hn; + e > Gn && ((qn -= e), (Hn = t)); + } + function er(t) { + Fn || + (Vn && (Vn = clearTimeout(Vn)), + t - Un > 24 + ? (t < 1 / 0 && (Vn = setTimeout(Jn, t - Wn.now() - qn)), + Bn && (Bn = clearInterval(Bn))) + : (Bn || ((Hn = Wn.now()), (Bn = setInterval(tr, Gn))), + (Fn = 1), + Xn(Jn))); + } + Kn.prototype = Qn.prototype = { + constructor: Kn, + restart: function(t, e, n) { + if ('function' != typeof t) + throw new TypeError('callback is not a function'); + (n = (null == n ? Yn() : +n) + (null == e ? 0 : +e)), + this._next || + Ln === this || + (Ln ? (Ln._next = this) : (Mn = this), (Ln = this)), + (this._call = t), + (this._time = n), + er(); + }, + stop: function() { + this._call && ((this._call = null), (this._time = 1 / 0), er()); + } + }; + var nr = function(t, e, n) { + var r = new Kn(); + return ( + (e = null == e ? 0 : +e), + r.restart( + function(n) { + r.stop(), t(n + e); + }, + e, + n + ), + r + ); + }, + rr = gt('start', 'end', 'cancel', 'interrupt'), + ir = [], + or = 0, + ar = 1, + sr = 2, + ur = 3, + lr = 4, + cr = 5, + fr = 6, + dr = function(t, e, n, r, i, o) { + var a = t.__transition; + if (a) { + if (n in a) return; + } else t.__transition = {}; + !(function(t, e, n) { + var r, + i = t.__transition; + function o(u) { + var l, c, f, d; + if (n.state !== ar) return s(); + for (l in i) + if ((d = i[l]).name === n.name) { + if (d.state === ur) return nr(o); + d.state === lr + ? ((d.state = fr), + d.timer.stop(), + d.on.call('interrupt', t, t.__data__, d.index, d.group), + delete i[l]) + : +l < e && + ((d.state = fr), + d.timer.stop(), + d.on.call('cancel', t, t.__data__, d.index, d.group), + delete i[l]); + } + if ( + (nr(function() { + n.state === ur && + ((n.state = lr), n.timer.restart(a, n.delay, n.time), a(u)); + }), + (n.state = sr), + n.on.call('start', t, t.__data__, n.index, n.group), + n.state === sr) + ) { + for ( + n.state = ur, + r = new Array((f = n.tween.length)), + l = 0, + c = -1; + l < f; + ++l + ) + (d = n.tween[l].value.call( + t, + t.__data__, + n.index, + n.group + )) && (r[++c] = d); + r.length = c + 1; + } + } + function a(e) { + for ( + var i = + e < n.duration + ? n.ease.call(null, e / n.duration) + : (n.timer.restart(s), (n.state = cr), 1), + o = -1, + a = r.length; + ++o < a; + + ) + r[o].call(t, i); + n.state === cr && + (n.on.call('end', t, t.__data__, n.index, n.group), s()); + } + function s() { + for (var r in ((n.state = fr), n.timer.stop(), delete i[e], i)) + return; + delete t.__transition; + } + (i[e] = n), + (n.timer = Qn( + function(t) { + (n.state = ar), + n.timer.restart(o, n.delay, n.time), + n.delay <= t && o(t - n.delay); + }, + 0, + n.time + )); + })(t, n, { + name: e, + index: r, + group: i, + on: rr, + tween: ir, + time: o.time, + delay: o.delay, + duration: o.duration, + ease: o.ease, + timer: null, + state: or + }); + }; + function hr(t, e) { + var n = gr(t, e); + if (n.state > or) throw new Error('too late; already scheduled'); + return n; + } + function pr(t, e) { + var n = gr(t, e); + if (n.state > ur) throw new Error('too late; already running'); + return n; + } + function gr(t, e) { + var n = t.__transition; + if (!n || !(n = n[e])) throw new Error('transition not found'); + return n; + } + var mr, + vr, + yr, + br, + _r = function(t, e) { + var n, + r, + i, + o = t.__transition, + a = !0; + if (o) { + for (i in ((e = null == e ? null : e + ''), o)) + (n = o[i]).name === e + ? ((r = n.state > sr && n.state < cr), + (n.state = fr), + n.timer.stop(), + n.on.call( + r ? 'interrupt' : 'cancel', + t, + t.__data__, + n.index, + n.group + ), + delete o[i]) + : (a = !1); + a && delete t.__transition; + } + }, + xr = 180 / Math.PI, + wr = { + translateX: 0, + translateY: 0, + rotate: 0, + skewX: 0, + scaleX: 1, + scaleY: 1 + }, + Sr = function(t, e, n, r, i, o) { + var a, s, u; + return ( + (a = Math.sqrt(t * t + e * e)) && ((t /= a), (e /= a)), + (u = t * n + e * r) && ((n -= t * u), (r -= e * u)), + (s = Math.sqrt(n * n + r * r)) && ((n /= s), (r /= s), (u /= s)), + t * r < e * n && ((t = -t), (e = -e), (u = -u), (a = -a)), + { + translateX: i, + translateY: o, + rotate: Math.atan2(e, t) * xr, + skewX: Math.atan(u) * xr, + scaleX: a, + scaleY: s + } + ); + }; + function Er(t, e, n, r) { + function i(t) { + return t.length ? t.pop() + ' ' : ''; + } + return function(o, a) { + var s = [], + u = []; + return ( + (o = t(o)), + (a = t(a)), + (function(t, r, i, o, a, s) { + if (t !== i || r !== o) { + var u = a.push('translate(', null, e, null, n); + s.push({ i: u - 4, x: Tn(t, i) }, { i: u - 2, x: Tn(r, o) }); + } else (i || o) && a.push('translate(' + i + e + o + n); + })(o.translateX, o.translateY, a.translateX, a.translateY, s, u), + (function(t, e, n, o) { + t !== e + ? (t - e > 180 ? (e += 360) : e - t > 180 && (t += 360), + o.push({ + i: n.push(i(n) + 'rotate(', null, r) - 2, + x: Tn(t, e) + })) + : e && n.push(i(n) + 'rotate(' + e + r); + })(o.rotate, a.rotate, s, u), + (function(t, e, n, o) { + t !== e + ? o.push({ + i: n.push(i(n) + 'skewX(', null, r) - 2, + x: Tn(t, e) + }) + : e && n.push(i(n) + 'skewX(' + e + r); + })(o.skewX, a.skewX, s, u), + (function(t, e, n, r, o, a) { + if (t !== n || e !== r) { + var s = o.push(i(o) + 'scale(', null, ',', null, ')'); + a.push({ i: s - 4, x: Tn(t, n) }, { i: s - 2, x: Tn(e, r) }); + } else + (1 === n && 1 === r) || + o.push(i(o) + 'scale(' + n + ',' + r + ')'); + })(o.scaleX, o.scaleY, a.scaleX, a.scaleY, s, u), + (o = a = null), + function(t) { + for (var e, n = -1, r = u.length; ++n < r; ) + s[(e = u[n]).i] = e.x(t); + return s.join(''); + } + ); + }; + } + var kr = Er( + function(t) { + return 'none' === t + ? wr + : (mr || + ((mr = document.createElement('DIV')), + (vr = document.documentElement), + (yr = document.defaultView)), + (mr.style.transform = t), + (t = yr + .getComputedStyle(vr.appendChild(mr), null) + .getPropertyValue('transform')), + vr.removeChild(mr), + (t = t.slice(7, -1).split(',')), + Sr(+t[0], +t[1], +t[2], +t[3], +t[4], +t[5])); + }, + 'px, ', + 'px)', + 'deg)' + ), + Ar = Er( + function(t) { + return null == t + ? wr + : (br || + (br = document.createElementNS( + 'http://www.w3.org/2000/svg', + 'g' + )), + br.setAttribute('transform', t), + (t = br.transform.baseVal.consolidate()) + ? ((t = t.matrix), Sr(t.a, t.b, t.c, t.d, t.e, t.f)) + : wr); + }, + ', ', + ')', + ')' + ); + function Tr(t, e) { + var n, r; + return function() { + var i = pr(this, t), + o = i.tween; + if (o !== n) + for (var a = 0, s = (r = n = o).length; a < s; ++a) + if (r[a].name === e) { + (r = r.slice()).splice(a, 1); + break; + } + i.tween = r; + }; + } + function Cr(t, e, n) { + var r, i; + if ('function' != typeof n) throw new Error(); + return function() { + var o = pr(this, t), + a = o.tween; + if (a !== r) { + i = (r = a).slice(); + for (var s = { name: e, value: n }, u = 0, l = i.length; u < l; ++u) + if (i[u].name === e) { + i[u] = s; + break; + } + u === l && i.push(s); + } + o.tween = i; + }; + } + function Or(t, e, n) { + var r = t._id; + return ( + t.each(function() { + var t = pr(this, r); + (t.value || (t.value = {}))[e] = n.apply(this, arguments); + }), + function(t) { + return gr(t, r).value[e]; + } + ); + } + var Pr = function(t, e) { + var n; + return ('number' == typeof e + ? Tn + : e instanceof $e + ? yn + : (n = $e(e)) + ? ((e = n), yn) + : jn)(t, e); + }; + function Mr(t) { + return function() { + this.removeAttribute(t); + }; + } + function Lr(t) { + return function() { + this.removeAttributeNS(t.space, t.local); + }; + } + function jr(t, e, n) { + var r, + i, + o = n + ''; + return function() { + var a = this.getAttribute(t); + return a === o ? null : a === r ? i : (i = e((r = a), n)); + }; + } + function Dr(t, e, n) { + var r, + i, + o = n + ''; + return function() { + var a = this.getAttributeNS(t.space, t.local); + return a === o ? null : a === r ? i : (i = e((r = a), n)); + }; + } + function Rr(t, e, n) { + var r, i, o; + return function() { + var a, + s, + u = n(this); + if (null != u) + return (a = this.getAttribute(t)) === (s = u + '') + ? null + : a === r && s === i + ? o + : ((i = s), (o = e((r = a), u))); + this.removeAttribute(t); + }; + } + function zr(t, e, n) { + var r, i, o; + return function() { + var a, + s, + u = n(this); + if (null != u) + return (a = this.getAttributeNS(t.space, t.local)) === (s = u + '') + ? null + : a === r && s === i + ? o + : ((i = s), (o = e((r = a), u))); + this.removeAttributeNS(t.space, t.local); + }; + } + function Nr(t, e) { + var n, r; + function i() { + var i = e.apply(this, arguments); + return ( + i !== r && + (n = + (r = i) && + (function(t, e) { + return function(n) { + this.setAttributeNS(t.space, t.local, e.call(this, n)); + }; + })(t, i)), + n + ); + } + return (i._value = e), i; + } + function Ir(t, e) { + var n, r; + function i() { + var i = e.apply(this, arguments); + return ( + i !== r && + (n = + (r = i) && + (function(t, e) { + return function(n) { + this.setAttribute(t, e.call(this, n)); + }; + })(t, i)), + n + ); + } + return (i._value = e), i; + } + function Fr(t, e) { + return function() { + hr(this, t).delay = +e.apply(this, arguments); + }; + } + function Vr(t, e) { + return ( + (e = +e), + function() { + hr(this, t).delay = e; + } + ); + } + function Br(t, e) { + return function() { + pr(this, t).duration = +e.apply(this, arguments); + }; + } + function Gr(t, e) { + return ( + (e = +e), + function() { + pr(this, t).duration = e; + } + ); + } + function Hr(t, e) { + if ('function' != typeof e) throw new Error(); + return function() { + pr(this, t).ease = e; + }; + } + function Ur(t, e, n) { + var r, + i, + o = (function(t) { + return (t + '') + .trim() + .split(/^|\s+/) + .every(function(t) { + var e = t.indexOf('.'); + return e >= 0 && (t = t.slice(0, e)), !t || 'start' === t; + }); + })(e) + ? hr + : pr; + return function() { + var a = o(this, t), + s = a.on; + s !== r && (i = (r = s).copy()).on(e, n), (a.on = i); + }; + } + var qr = Te.prototype.constructor; + function Wr(t) { + return function() { + this.style.removeProperty(t); + }; + } + function Xr(t, e, n) { + var r, i; + function o() { + var o = e.apply(this, arguments); + return ( + o !== i && + (r = + (i = o) && + (function(t, e, n) { + return function(r) { + this.style.setProperty(t, e.call(this, r), n); + }; + })(t, o, n)), + r + ); + } + return (o._value = e), o; + } + function Yr(t) { + var e, n; + function r() { + var r = t.apply(this, arguments); + return ( + r !== n && + (e = + (n = r) && + (function(t) { + return function(e) { + this.textContent = t.call(this, e); + }; + })(r)), + e + ); + } + return (r._value = t), r; + } + var $r = 0; + function Kr(t, e, n, r) { + (this._groups = t), + (this._parents = e), + (this._name = n), + (this._id = r); + } + function Qr(t) { + return Te().transition(t); + } + function Zr() { + return ++$r; + } + var Jr = Te.prototype; + function ti(t) { + return t * t * t; + } + function ei(t) { + return --t * t * t + 1; + } + function ni(t) { + return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2; + } + Kr.prototype = Qr.prototype = { + constructor: Kr, + select: function(t) { + var e = this._name, + n = this._id; + 'function' != typeof t && (t = vt(t)); + for ( + var r = this._groups, i = r.length, o = new Array(i), a = 0; + a < i; + ++a + ) + for ( + var s, + u, + l = r[a], + c = l.length, + f = (o[a] = new Array(c)), + d = 0; + d < c; + ++d + ) + (s = l[d]) && + (u = t.call(s, s.__data__, d, l)) && + ('__data__' in s && (u.__data__ = s.__data__), + (f[d] = u), + dr(f[d], e, n, d, f, gr(s, n))); + return new Kr(o, this._parents, e, n); + }, + selectAll: function(t) { + var e = this._name, + n = this._id; + 'function' != typeof t && (t = bt(t)); + for ( + var r = this._groups, i = r.length, o = [], a = [], s = 0; + s < i; + ++s + ) + for (var u, l = r[s], c = l.length, f = 0; f < c; ++f) + if ((u = l[f])) { + for ( + var d, + h = t.call(u, u.__data__, f, l), + p = gr(u, n), + g = 0, + m = h.length; + g < m; + ++g + ) + (d = h[g]) && dr(d, e, n, g, h, p); + o.push(h), a.push(u); + } + return new Kr(o, a, e, n); + }, + filter: function(t) { + 'function' != typeof t && (t = _t(t)); + for ( + var e = this._groups, n = e.length, r = new Array(n), i = 0; + i < n; + ++i + ) + for ( + var o, a = e[i], s = a.length, u = (r[i] = []), l = 0; + l < s; + ++l + ) + (o = a[l]) && t.call(o, o.__data__, l, a) && u.push(o); + return new Kr(r, this._parents, this._name, this._id); + }, + merge: function(t) { + if (t._id !== this._id) throw new Error(); + for ( + var e = this._groups, + n = t._groups, + r = e.length, + i = n.length, + o = Math.min(r, i), + a = new Array(r), + s = 0; + s < o; + ++s + ) + for ( + var u, + l = e[s], + c = n[s], + f = l.length, + d = (a[s] = new Array(f)), + h = 0; + h < f; + ++h + ) + (u = l[h] || c[h]) && (d[h] = u); + for (; s < r; ++s) a[s] = e[s]; + return new Kr(a, this._parents, this._name, this._id); + }, + selection: function() { + return new qr(this._groups, this._parents); + }, + transition: function() { + for ( + var t = this._name, + e = this._id, + n = Zr(), + r = this._groups, + i = r.length, + o = 0; + o < i; + ++o + ) + for (var a, s = r[o], u = s.length, l = 0; l < u; ++l) + if ((a = s[l])) { + var c = gr(a, e); + dr(a, t, n, l, s, { + time: c.time + c.delay + c.duration, + delay: 0, + duration: c.duration, + ease: c.ease + }); + } + return new Kr(r, this._parents, t, n); + }, + call: Jr.call, + nodes: Jr.nodes, + node: Jr.node, + size: Jr.size, + empty: Jr.empty, + each: Jr.each, + on: function(t, e) { + var n = this._id; + return arguments.length < 2 + ? gr(this.node(), n).on.on(t) + : this.each(Ur(n, t, e)); + }, + attr: function(t, e) { + var n = Ot(t), + r = 'transform' === n ? Ar : Pr; + return this.attrTween( + t, + 'function' == typeof e + ? (n.local ? zr : Rr)(n, r, Or(this, 'attr.' + t, e)) + : null == e + ? (n.local ? Lr : Mr)(n) + : (n.local ? Dr : jr)(n, r, e) + ); + }, + attrTween: function(t, e) { + var n = 'attr.' + t; + if (arguments.length < 2) return (n = this.tween(n)) && n._value; + if (null == e) return this.tween(n, null); + if ('function' != typeof e) throw new Error(); + var r = Ot(t); + return this.tween(n, (r.local ? Nr : Ir)(r, e)); + }, + style: function(t, e, n) { + var r = 'transform' == (t += '') ? kr : Pr; + return null == e + ? this.styleTween( + t, + (function(t, e) { + var n, r, i; + return function() { + var o = Vt(this, t), + a = (this.style.removeProperty(t), Vt(this, t)); + return o === a + ? null + : o === n && a === r + ? i + : (i = e((n = o), (r = a))); + }; + })(t, r) + ).on('end.style.' + t, Wr(t)) + : 'function' == typeof e + ? this.styleTween( + t, + (function(t, e, n) { + var r, i, o; + return function() { + var a = Vt(this, t), + s = n(this), + u = s + ''; + return ( + null == s && + (this.style.removeProperty(t), (u = s = Vt(this, t))), + a === u + ? null + : a === r && u === i + ? o + : ((i = u), (o = e((r = a), s))) + ); + }; + })(t, r, Or(this, 'style.' + t, e)) + ).each( + (function(t, e) { + var n, + r, + i, + o, + a = 'style.' + e, + s = 'end.' + a; + return function() { + var u = pr(this, t), + l = u.on, + c = null == u.value[a] ? o || (o = Wr(e)) : void 0; + (l === n && i === c) || (r = (n = l).copy()).on(s, (i = c)), + (u.on = r); + }; + })(this._id, t) + ) + : this.styleTween( + t, + (function(t, e, n) { + var r, + i, + o = n + ''; + return function() { + var a = Vt(this, t); + return a === o ? null : a === r ? i : (i = e((r = a), n)); + }; + })(t, r, e), + n + ).on('end.style.' + t, null); + }, + styleTween: function(t, e, n) { + var r = 'style.' + (t += ''); + if (arguments.length < 2) return (r = this.tween(r)) && r._value; + if (null == e) return this.tween(r, null); + if ('function' != typeof e) throw new Error(); + return this.tween(r, Xr(t, e, null == n ? '' : n)); + }, + text: function(t) { + return this.tween( + 'text', + 'function' == typeof t + ? (function(t) { + return function() { + var e = t(this); + this.textContent = null == e ? '' : e; + }; + })(Or(this, 'text', t)) + : (function(t) { + return function() { + this.textContent = t; + }; + })(null == t ? '' : t + '') + ); + }, + textTween: function(t) { + var e = 'text'; + if (arguments.length < 1) return (e = this.tween(e)) && e._value; + if (null == t) return this.tween(e, null); + if ('function' != typeof t) throw new Error(); + return this.tween(e, Yr(t)); + }, + remove: function() { + return this.on( + 'end.remove', + ((t = this._id), + function() { + var e = this.parentNode; + for (var n in this.__transition) if (+n !== t) return; + e && e.removeChild(this); + }) + ); + var t; + }, + tween: function(t, e) { + var n = this._id; + if (((t += ''), arguments.length < 2)) { + for ( + var r, i = gr(this.node(), n).tween, o = 0, a = i.length; + o < a; + ++o + ) + if ((r = i[o]).name === t) return r.value; + return null; + } + return this.each((null == e ? Tr : Cr)(n, t, e)); + }, + delay: function(t) { + var e = this._id; + return arguments.length + ? this.each(('function' == typeof t ? Fr : Vr)(e, t)) + : gr(this.node(), e).delay; + }, + duration: function(t) { + var e = this._id; + return arguments.length + ? this.each(('function' == typeof t ? Br : Gr)(e, t)) + : gr(this.node(), e).duration; + }, + ease: function(t) { + var e = this._id; + return arguments.length + ? this.each(Hr(e, t)) + : gr(this.node(), e).ease; + }, + end: function() { + var t, + e, + n = this, + r = n._id, + i = n.size(); + return new Promise(function(o, a) { + var s = { value: a }, + u = { + value: function() { + 0 == --i && o(); + } + }; + n.each(function() { + var n = pr(this, r), + i = n.on; + i !== t && + ((e = (t = i).copy())._.cancel.push(s), + e._.interrupt.push(s), + e._.end.push(u)), + (n.on = e); + }); + }); + } + }; + var ri = { time: null, delay: 0, duration: 250, ease: ni }; + function ii(t, e) { + for (var n; !(n = t.__transition) || !(n = n[e]); ) + if (!(t = t.parentNode)) return (ri.time = Yn()), ri; + return n; + } + (Te.prototype.interrupt = function(t) { + return this.each(function() { + _r(this, t); + }); + }), + (Te.prototype.transition = function(t) { + var e, n; + t instanceof Kr + ? ((e = t._id), (t = t._name)) + : ((e = Zr()), + ((n = ri).time = Yn()), + (t = null == t ? null : t + '')); + for (var r = this._groups, i = r.length, o = 0; o < i; ++o) + for (var a, s = r[o], u = s.length, l = 0; l < u; ++l) + (a = s[l]) && dr(a, t, e, l, s, n || ii(a, e)); + return new Kr(r, this._parents, t, e); + }); + var oi = [null], + ai = function(t, e) { + var n, + r, + i = t.__transition; + if (i) + for (r in ((e = null == e ? null : e + ''), i)) + if ((n = i[r]).state > ar && n.name === e) + return new Kr([[t]], oi, e, +r); + return null; + }, + si = function(t) { + return function() { + return t; + }; + }, + ui = function(t, e, n) { + (this.target = t), (this.type = e), (this.selection = n); + }; + function li() { + pe.stopImmediatePropagation(); + } + var ci = function() { + pe.preventDefault(), pe.stopImmediatePropagation(); + }, + fi = { name: 'drag' }, + di = { name: 'space' }, + hi = { name: 'handle' }, + pi = { name: 'center' }; + function gi(t) { + return [+t[0], +t[1]]; + } + function mi(t) { + return [gi(t[0]), gi(t[1])]; + } + var vi = { + name: 'x', + handles: ['w', 'e'].map(ki), + input: function(t, e) { + return null == t ? null : [[+t[0], e[0][1]], [+t[1], e[1][1]]]; + }, + output: function(t) { + return t && [t[0][0], t[1][0]]; + } + }, + yi = { + name: 'y', + handles: ['n', 's'].map(ki), + input: function(t, e) { + return null == t ? null : [[e[0][0], +t[0]], [e[1][0], +t[1]]]; + }, + output: function(t) { + return t && [t[0][1], t[1][1]]; + } + }, + bi = { + name: 'xy', + handles: ['n', 'w', 'e', 's', 'nw', 'ne', 'sw', 'se'].map(ki), + input: function(t) { + return null == t ? null : mi(t); + }, + output: function(t) { + return t; + } + }, + _i = { + overlay: 'crosshair', + selection: 'move', + n: 'ns-resize', + e: 'ew-resize', + s: 'ns-resize', + w: 'ew-resize', + nw: 'nwse-resize', + ne: 'nesw-resize', + se: 'nwse-resize', + sw: 'nesw-resize' + }, + xi = { e: 'w', w: 'e', nw: 'ne', ne: 'nw', se: 'sw', sw: 'se' }, + wi = { n: 's', s: 'n', nw: 'sw', ne: 'se', se: 'ne', sw: 'nw' }, + Si = { + overlay: 1, + selection: 1, + n: null, + e: 1, + s: null, + w: -1, + nw: -1, + ne: 1, + se: 1, + sw: -1 + }, + Ei = { + overlay: 1, + selection: 1, + n: -1, + e: null, + s: 1, + w: null, + nw: -1, + ne: -1, + se: 1, + sw: 1 + }; + function ki(t) { + return { type: t }; + } + function Ai() { + return !pe.ctrlKey && !pe.button; + } + function Ti() { + var t = this.ownerSVGElement || this; + return t.hasAttribute('viewBox') + ? [[(t = t.viewBox.baseVal).x, t.y], [t.x + t.width, t.y + t.height]] + : [[0, 0], [t.width.baseVal.value, t.height.baseVal.value]]; + } + function Ci() { + return navigator.maxTouchPoints || 'ontouchstart' in this; + } + function Oi(t) { + for (; !t.__brush; ) if (!(t = t.parentNode)) return; + return t.__brush; + } + function Pi(t) { + var e = t.__brush; + return e ? e.dim.output(e.selection) : null; + } + function Mi() { + return Di(vi); + } + function Li() { + return Di(yi); + } + var ji = function() { + return Di(bi); + }; + function Di(t) { + var e, + n = Ti, + r = Ai, + i = Ci, + o = !0, + a = gt('start', 'brush', 'end'), + s = 6; + function u(e) { + var n = e + .property('__brush', g) + .selectAll('.overlay') + .data([ki('overlay')]); + n + .enter() + .append('rect') + .attr('class', 'overlay') + .attr('pointer-events', 'all') + .attr('cursor', _i.overlay) + .merge(n) + .each(function() { + var t = Oi(this).extent; + Ce(this) + .attr('x', t[0][0]) + .attr('y', t[0][1]) + .attr('width', t[1][0] - t[0][0]) + .attr('height', t[1][1] - t[0][1]); + }), + e + .selectAll('.selection') + .data([ki('selection')]) + .enter() + .append('rect') + .attr('class', 'selection') + .attr('cursor', _i.selection) + .attr('fill', '#777') + .attr('fill-opacity', 0.3) + .attr('stroke', '#fff') + .attr('shape-rendering', 'crispEdges'); + var r = e.selectAll('.handle').data(t.handles, function(t) { + return t.type; + }); + r.exit().remove(), + r + .enter() + .append('rect') + .attr('class', function(t) { + return 'handle handle--' + t.type; + }) + .attr('cursor', function(t) { + return _i[t.type]; + }), + e + .each(l) + .attr('fill', 'none') + .attr('pointer-events', 'all') + .on('mousedown.brush', d) + .filter(i) + .on('touchstart.brush', d) + .on('touchmove.brush', h) + .on('touchend.brush touchcancel.brush', p) + .style('touch-action', 'none') + .style('-webkit-tap-highlight-color', 'rgba(0,0,0,0)'); + } + function l() { + var t = Ce(this), + e = Oi(this).selection; + e + ? (t + .selectAll('.selection') + .style('display', null) + .attr('x', e[0][0]) + .attr('y', e[0][1]) + .attr('width', e[1][0] - e[0][0]) + .attr('height', e[1][1] - e[0][1]), + t + .selectAll('.handle') + .style('display', null) + .attr('x', function(t) { + return 'e' === t.type[t.type.length - 1] + ? e[1][0] - s / 2 + : e[0][0] - s / 2; + }) + .attr('y', function(t) { + return 's' === t.type[0] ? e[1][1] - s / 2 : e[0][1] - s / 2; + }) + .attr('width', function(t) { + return 'n' === t.type || 's' === t.type + ? e[1][0] - e[0][0] + s + : s; + }) + .attr('height', function(t) { + return 'e' === t.type || 'w' === t.type + ? e[1][1] - e[0][1] + s + : s; + })) + : t + .selectAll('.selection,.handle') + .style('display', 'none') + .attr('x', null) + .attr('y', null) + .attr('width', null) + .attr('height', null); + } + function c(t, e, n) { + return (!n && t.__brush.emitter) || new f(t, e); + } + function f(t, e) { + (this.that = t), + (this.args = e), + (this.state = t.__brush), + (this.active = 0); + } + function d() { + if ((!e || pe.touches) && r.apply(this, arguments)) { + var n, + i, + a, + s, + u, + f, + d, + h, + p, + g, + m, + v, + y = this, + b = pe.target.__data__.type, + _ = + 'selection' === (o && pe.metaKey ? (b = 'overlay') : b) + ? fi + : o && pe.altKey + ? pi + : hi, + x = t === yi ? null : Si[b], + w = t === vi ? null : Ei[b], + S = Oi(y), + E = S.extent, + k = S.selection, + A = E[0][0], + T = E[0][1], + C = E[1][0], + O = E[1][1], + P = 0, + M = 0, + L = x && w && o && pe.shiftKey, + j = pe.touches + ? ((v = pe.changedTouches[0].identifier), + function(t) { + return Nn(t, pe.touches, v); + }) + : In, + D = j(y), + R = D, + z = c(y, arguments, !0).beforestart(); + 'overlay' === b + ? (k && (p = !0), + (S.selection = k = [ + [(n = t === yi ? A : D[0]), (a = t === vi ? T : D[1])], + [(u = t === yi ? C : n), (d = t === vi ? O : a)] + ])) + : ((n = k[0][0]), (a = k[0][1]), (u = k[1][0]), (d = k[1][1])), + (i = n), + (s = a), + (f = u), + (h = d); + var N = Ce(y).attr('pointer-events', 'none'), + I = N.selectAll('.overlay').attr('cursor', _i[b]); + if (pe.touches) (z.moved = V), (z.ended = G); + else { + var F = Ce(pe.view) + .on('mousemove.brush', V, !0) + .on('mouseup.brush', G, !0); + o && + F.on( + 'keydown.brush', + function() { + switch (pe.keyCode) { + case 16: + L = x && w; + break; + case 18: + _ === hi && + (x && ((u = f - P * x), (n = i + P * x)), + w && ((d = h - M * w), (a = s + M * w)), + (_ = pi), + B()); + break; + case 32: + (_ !== hi && _ !== pi) || + (x < 0 ? (u = f - P) : x > 0 && (n = i - P), + w < 0 ? (d = h - M) : w > 0 && (a = s - M), + (_ = di), + I.attr('cursor', _i.selection), + B()); + break; + default: + return; + } + ci(); + }, + !0 + ).on( + 'keyup.brush', + function() { + switch (pe.keyCode) { + case 16: + L && ((g = m = L = !1), B()); + break; + case 18: + _ === pi && + (x < 0 ? (u = f) : x > 0 && (n = i), + w < 0 ? (d = h) : w > 0 && (a = s), + (_ = hi), + B()); + break; + case 32: + _ === di && + (pe.altKey + ? (x && ((u = f - P * x), (n = i + P * x)), + w && ((d = h - M * w), (a = s + M * w)), + (_ = pi)) + : (x < 0 ? (u = f) : x > 0 && (n = i), + w < 0 ? (d = h) : w > 0 && (a = s), + (_ = hi)), + I.attr('cursor', _i[b]), + B()); + break; + default: + return; + } + ci(); + }, + !0 + ), + Me(pe.view); + } + li(), _r(y), l.call(y), z.start(); + } + function V() { + var t = j(y); + !L || + g || + m || + (Math.abs(t[0] - R[0]) > Math.abs(t[1] - R[1]) + ? (m = !0) + : (g = !0)), + (R = t), + (p = !0), + ci(), + B(); + } + function B() { + var t; + switch (((P = R[0] - D[0]), (M = R[1] - D[1]), _)) { + case di: + case fi: + x && + ((P = Math.max(A - n, Math.min(C - u, P))), + (i = n + P), + (f = u + P)), + w && + ((M = Math.max(T - a, Math.min(O - d, M))), + (s = a + M), + (h = d + M)); + break; + case hi: + x < 0 + ? ((P = Math.max(A - n, Math.min(C - n, P))), + (i = n + P), + (f = u)) + : x > 0 && + ((P = Math.max(A - u, Math.min(C - u, P))), + (i = n), + (f = u + P)), + w < 0 + ? ((M = Math.max(T - a, Math.min(O - a, M))), + (s = a + M), + (h = d)) + : w > 0 && + ((M = Math.max(T - d, Math.min(O - d, M))), + (s = a), + (h = d + M)); + break; + case pi: + x && + ((i = Math.max(A, Math.min(C, n - P * x))), + (f = Math.max(A, Math.min(C, u + P * x)))), + w && + ((s = Math.max(T, Math.min(O, a - M * w))), + (h = Math.max(T, Math.min(O, d + M * w)))); + } + f < i && + ((x *= -1), + (t = n), + (n = u), + (u = t), + (t = i), + (i = f), + (f = t), + b in xi && I.attr('cursor', _i[(b = xi[b])])), + h < s && + ((w *= -1), + (t = a), + (a = d), + (d = t), + (t = s), + (s = h), + (h = t), + b in wi && I.attr('cursor', _i[(b = wi[b])])), + S.selection && (k = S.selection), + g && ((i = k[0][0]), (f = k[1][0])), + m && ((s = k[0][1]), (h = k[1][1])), + (k[0][0] === i && + k[0][1] === s && + k[1][0] === f && + k[1][1] === h) || + ((S.selection = [[i, s], [f, h]]), l.call(y), z.brush()); + } + function G() { + if ((li(), pe.touches)) { + if (pe.touches.length) return; + e && clearTimeout(e), + (e = setTimeout(function() { + e = null; + }, 500)); + } else + Le(pe.view, p), + F.on( + 'keydown.brush keyup.brush mousemove.brush mouseup.brush', + null + ); + N.attr('pointer-events', 'all'), + I.attr('cursor', _i.overlay), + S.selection && (k = S.selection), + (function(t) { + return t[0][0] === t[1][0] || t[0][1] === t[1][1]; + })(k) && ((S.selection = null), l.call(y)), + z.end(); + } + } + function h() { + c(this, arguments).moved(); + } + function p() { + c(this, arguments).ended(); + } + function g() { + var e = this.__brush || { selection: null }; + return (e.extent = mi(n.apply(this, arguments))), (e.dim = t), e; + } + return ( + (u.move = function(e, n) { + e.selection + ? e + .on('start.brush', function() { + c(this, arguments) + .beforestart() + .start(); + }) + .on('interrupt.brush end.brush', function() { + c(this, arguments).end(); + }) + .tween('brush', function() { + var e = this, + r = e.__brush, + i = c(e, arguments), + o = r.selection, + a = t.input( + 'function' == typeof n ? n.apply(this, arguments) : n, + r.extent + ), + s = Dn(o, a); + function u(t) { + (r.selection = 1 === t && null === a ? null : s(t)), + l.call(e), + i.brush(); + } + return null !== o && null !== a ? u : u(1); + }) + : e.each(function() { + var e = this, + r = arguments, + i = e.__brush, + o = t.input( + 'function' == typeof n ? n.apply(e, r) : n, + i.extent + ), + a = c(e, r).beforestart(); + _r(e), + (i.selection = null === o ? null : o), + l.call(e), + a + .start() + .brush() + .end(); + }); + }), + (u.clear = function(t) { + u.move(t, null); + }), + (f.prototype = { + beforestart: function() { + return ( + 1 == ++this.active && + ((this.state.emitter = this), (this.starting = !0)), + this + ); + }, + start: function() { + return ( + this.starting + ? ((this.starting = !1), this.emit('start')) + : this.emit('brush'), + this + ); + }, + brush: function() { + return this.emit('brush'), this; + }, + end: function() { + return ( + 0 == --this.active && + (delete this.state.emitter, this.emit('end')), + this + ); + }, + emit: function(e) { + _e(new ui(u, e, t.output(this.state.selection)), a.apply, a, [ + e, + this.that, + this.args + ]); + } + }), + (u.extent = function(t) { + return arguments.length + ? ((n = 'function' == typeof t ? t : si(mi(t))), u) + : n; + }), + (u.filter = function(t) { + return arguments.length + ? ((r = 'function' == typeof t ? t : si(!!t)), u) + : r; + }), + (u.touchable = function(t) { + return arguments.length + ? ((i = 'function' == typeof t ? t : si(!!t)), u) + : i; + }), + (u.handleSize = function(t) { + return arguments.length ? ((s = +t), u) : s; + }), + (u.keyModifiers = function(t) { + return arguments.length ? ((o = !!t), u) : o; + }), + (u.on = function() { + var t = a.on.apply(a, arguments); + return t === a ? u : t; + }), + u + ); + } + var Ri = Math.cos, + zi = Math.sin, + Ni = Math.PI, + Ii = Ni / 2, + Fi = 2 * Ni, + Vi = Math.max; + function Bi(t) { + return function(e, n) { + return t( + e.source.value + e.target.value, + n.source.value + n.target.value + ); + }; + } + var Gi = function() { + var t = 0, + e = null, + n = null, + r = null; + function i(i) { + var o, + a, + s, + u, + l, + c, + f = i.length, + d = [], + h = w(f), + p = [], + g = [], + m = (g.groups = new Array(f)), + v = new Array(f * f); + for (o = 0, l = -1; ++l < f; ) { + for (a = 0, c = -1; ++c < f; ) a += i[l][c]; + d.push(a), p.push(w(f)), (o += a); + } + for ( + e && + h.sort(function(t, n) { + return e(d[t], d[n]); + }), + n && + p.forEach(function(t, e) { + t.sort(function(t, r) { + return n(i[e][t], i[e][r]); + }); + }), + u = (o = Vi(0, Fi - t * f) / o) ? t : Fi / f, + a = 0, + l = -1; + ++l < f; + + ) { + for (s = a, c = -1; ++c < f; ) { + var y = h[l], + b = p[y][c], + _ = i[y][b], + x = a, + S = (a += _ * o); + v[b * f + y] = { + index: y, + subindex: b, + startAngle: x, + endAngle: S, + value: _ + }; + } + (m[y] = { index: y, startAngle: s, endAngle: a, value: d[y] }), + (a += u); + } + for (l = -1; ++l < f; ) + for (c = l - 1; ++c < f; ) { + var E = v[c * f + l], + k = v[l * f + c]; + (E.value || k.value) && + g.push( + E.value < k.value + ? { source: k, target: E } + : { source: E, target: k } + ); + } + return r ? g.sort(r) : g; + } + return ( + (i.padAngle = function(e) { + return arguments.length ? ((t = Vi(0, e)), i) : t; + }), + (i.sortGroups = function(t) { + return arguments.length ? ((e = t), i) : e; + }), + (i.sortSubgroups = function(t) { + return arguments.length ? ((n = t), i) : n; + }), + (i.sortChords = function(t) { + return arguments.length + ? (null == t ? (r = null) : ((r = Bi(t))._ = t), i) + : r && r._; + }), + i + ); + }, + Hi = Array.prototype.slice, + Ui = function(t) { + return function() { + return t; + }; + }, + qi = Math.PI, + Wi = 2 * qi, + Xi = Wi - 1e-6; + function Yi() { + (this._x0 = this._y0 = this._x1 = this._y1 = null), (this._ = ''); + } + function $i() { + return new Yi(); + } + Yi.prototype = $i.prototype = { + constructor: Yi, + moveTo: function(t, e) { + this._ += + 'M' + (this._x0 = this._x1 = +t) + ',' + (this._y0 = this._y1 = +e); + }, + closePath: function() { + null !== this._x1 && + ((this._x1 = this._x0), (this._y1 = this._y0), (this._ += 'Z')); + }, + lineTo: function(t, e) { + this._ += 'L' + (this._x1 = +t) + ',' + (this._y1 = +e); + }, + quadraticCurveTo: function(t, e, n, r) { + this._ += + 'Q' + +t + ',' + +e + ',' + (this._x1 = +n) + ',' + (this._y1 = +r); + }, + bezierCurveTo: function(t, e, n, r, i, o) { + this._ += + 'C' + + +t + + ',' + + +e + + ',' + + +n + + ',' + + +r + + ',' + + (this._x1 = +i) + + ',' + + (this._y1 = +o); + }, + arcTo: function(t, e, n, r, i) { + (t = +t), (e = +e), (n = +n), (r = +r), (i = +i); + var o = this._x1, + a = this._y1, + s = n - t, + u = r - e, + l = o - t, + c = a - e, + f = l * l + c * c; + if (i < 0) throw new Error('negative radius: ' + i); + if (null === this._x1) + this._ += 'M' + (this._x1 = t) + ',' + (this._y1 = e); + else if (f > 1e-6) + if (Math.abs(c * s - u * l) > 1e-6 && i) { + var d = n - o, + h = r - a, + p = s * s + u * u, + g = d * d + h * h, + m = Math.sqrt(p), + v = Math.sqrt(f), + y = + i * Math.tan((qi - Math.acos((p + f - g) / (2 * m * v))) / 2), + b = y / v, + _ = y / m; + Math.abs(b - 1) > 1e-6 && + (this._ += 'L' + (t + b * l) + ',' + (e + b * c)), + (this._ += + 'A' + + i + + ',' + + i + + ',0,0,' + + +(c * d > l * h) + + ',' + + (this._x1 = t + _ * s) + + ',' + + (this._y1 = e + _ * u)); + } else this._ += 'L' + (this._x1 = t) + ',' + (this._y1 = e); + else; + }, + arc: function(t, e, n, r, i, o) { + (t = +t), (e = +e), (o = !!o); + var a = (n = +n) * Math.cos(r), + s = n * Math.sin(r), + u = t + a, + l = e + s, + c = 1 ^ o, + f = o ? r - i : i - r; + if (n < 0) throw new Error('negative radius: ' + n); + null === this._x1 + ? (this._ += 'M' + u + ',' + l) + : (Math.abs(this._x1 - u) > 1e-6 || + Math.abs(this._y1 - l) > 1e-6) && + (this._ += 'L' + u + ',' + l), + n && + (f < 0 && (f = (f % Wi) + Wi), + f > Xi + ? (this._ += + 'A' + + n + + ',' + + n + + ',0,1,' + + c + + ',' + + (t - a) + + ',' + + (e - s) + + 'A' + + n + + ',' + + n + + ',0,1,' + + c + + ',' + + (this._x1 = u) + + ',' + + (this._y1 = l)) + : f > 1e-6 && + (this._ += + 'A' + + n + + ',' + + n + + ',0,' + + +(f >= qi) + + ',' + + c + + ',' + + (this._x1 = t + n * Math.cos(i)) + + ',' + + (this._y1 = e + n * Math.sin(i)))); + }, + rect: function(t, e, n, r) { + this._ += + 'M' + + (this._x0 = this._x1 = +t) + + ',' + + (this._y0 = this._y1 = +e) + + 'h' + + +n + + 'v' + + +r + + 'h' + + -n + + 'Z'; + }, + toString: function() { + return this._; + } + }; + var Ki = $i; + function Qi(t) { + return t.source; + } + function Zi(t) { + return t.target; + } + function Ji(t) { + return t.radius; + } + function to(t) { + return t.startAngle; + } + function eo(t) { + return t.endAngle; + } + var no = function() { + var t = Qi, + e = Zi, + n = Ji, + r = to, + i = eo, + o = null; + function a() { + var a, + s = Hi.call(arguments), + u = t.apply(this, s), + l = e.apply(this, s), + c = +n.apply(this, ((s[0] = u), s)), + f = r.apply(this, s) - Ii, + d = i.apply(this, s) - Ii, + h = c * Ri(f), + p = c * zi(f), + g = +n.apply(this, ((s[0] = l), s)), + m = r.apply(this, s) - Ii, + v = i.apply(this, s) - Ii; + if ( + (o || (o = a = Ki()), + o.moveTo(h, p), + o.arc(0, 0, c, f, d), + (f === m && d === v) || + (o.quadraticCurveTo(0, 0, g * Ri(m), g * zi(m)), + o.arc(0, 0, g, m, v)), + o.quadraticCurveTo(0, 0, h, p), + o.closePath(), + a) + ) + return (o = null), a + '' || null; + } + return ( + (a.radius = function(t) { + return arguments.length + ? ((n = 'function' == typeof t ? t : Ui(+t)), a) + : n; + }), + (a.startAngle = function(t) { + return arguments.length + ? ((r = 'function' == typeof t ? t : Ui(+t)), a) + : r; + }), + (a.endAngle = function(t) { + return arguments.length + ? ((i = 'function' == typeof t ? t : Ui(+t)), a) + : i; + }), + (a.source = function(e) { + return arguments.length ? ((t = e), a) : t; + }), + (a.target = function(t) { + return arguments.length ? ((e = t), a) : e; + }), + (a.context = function(t) { + return arguments.length ? ((o = null == t ? null : t), a) : o; + }), + a + ); + }; + function ro() {} + function io(t, e) { + var n = new ro(); + if (t instanceof ro) + t.each(function(t, e) { + n.set(e, t); + }); + else if (Array.isArray(t)) { + var r, + i = -1, + o = t.length; + if (null == e) for (; ++i < o; ) n.set(i, t[i]); + else for (; ++i < o; ) n.set(e((r = t[i]), i, t), r); + } else if (t) for (var a in t) n.set(a, t[a]); + return n; + } + ro.prototype = io.prototype = { + constructor: ro, + has: function(t) { + return '$' + t in this; + }, + get: function(t) { + return this['$' + t]; + }, + set: function(t, e) { + return (this['$' + t] = e), this; + }, + remove: function(t) { + var e = '$' + t; + return e in this && delete this[e]; + }, + clear: function() { + for (var t in this) '$' === t[0] && delete this[t]; + }, + keys: function() { + var t = []; + for (var e in this) '$' === e[0] && t.push(e.slice(1)); + return t; + }, + values: function() { + var t = []; + for (var e in this) '$' === e[0] && t.push(this[e]); + return t; + }, + entries: function() { + var t = []; + for (var e in this) + '$' === e[0] && t.push({ key: e.slice(1), value: this[e] }); + return t; + }, + size: function() { + var t = 0; + for (var e in this) '$' === e[0] && ++t; + return t; + }, + empty: function() { + for (var t in this) if ('$' === t[0]) return !1; + return !0; + }, + each: function(t) { + for (var e in this) '$' === e[0] && t(this[e], e.slice(1), this); + } + }; + var oo = io, + ao = function() { + var t, + e, + n, + r = [], + i = []; + function o(n, i, a, s) { + if (i >= r.length) + return null != t && n.sort(t), null != e ? e(n) : n; + for ( + var u, l, c, f = -1, d = n.length, h = r[i++], p = oo(), g = a(); + ++f < d; + + ) + (c = p.get((u = h((l = n[f])) + ''))) ? c.push(l) : p.set(u, [l]); + return ( + p.each(function(t, e) { + s(g, e, o(t, i, a, s)); + }), + g + ); + } + return (n = { + object: function(t) { + return o(t, 0, so, uo); + }, + map: function(t) { + return o(t, 0, lo, co); + }, + entries: function(t) { + return (function t(n, o) { + if (++o > r.length) return n; + var a, + s = i[o - 1]; + return ( + null != e && o >= r.length + ? (a = n.entries()) + : ((a = []), + n.each(function(e, n) { + a.push({ key: n, values: t(e, o) }); + })), + null != s + ? a.sort(function(t, e) { + return s(t.key, e.key); + }) + : a + ); + })(o(t, 0, lo, co), 0); + }, + key: function(t) { + return r.push(t), n; + }, + sortKeys: function(t) { + return (i[r.length - 1] = t), n; + }, + sortValues: function(e) { + return (t = e), n; + }, + rollup: function(t) { + return (e = t), n; + } + }); + }; + function so() { + return {}; + } + function uo(t, e, n) { + t[e] = n; + } + function lo() { + return oo(); + } + function co(t, e, n) { + t.set(e, n); + } + function fo() {} + var ho = oo.prototype; + function po(t, e) { + var n = new fo(); + if (t instanceof fo) + t.each(function(t) { + n.add(t); + }); + else if (t) { + var r = -1, + i = t.length; + if (null == e) for (; ++r < i; ) n.add(t[r]); + else for (; ++r < i; ) n.add(e(t[r], r, t)); + } + return n; + } + fo.prototype = po.prototype = { + constructor: fo, + has: ho.has, + add: function(t) { + return (this['$' + (t += '')] = t), this; + }, + remove: ho.remove, + clear: ho.clear, + values: ho.keys, + size: ho.size, + empty: ho.empty, + each: ho.each + }; + var go = po, + mo = function(t) { + var e = []; + for (var n in t) e.push(n); + return e; + }, + vo = function(t) { + var e = []; + for (var n in t) e.push(t[n]); + return e; + }, + yo = function(t) { + var e = []; + for (var n in t) e.push({ key: n, value: t[n] }); + return e; + }, + bo = Math.PI / 180, + _o = 180 / Math.PI, + xo = 0.96422, + wo = 1, + So = 0.82521, + Eo = 4 / 29, + ko = 6 / 29, + Ao = 3 * ko * ko, + To = ko * ko * ko; + function Co(t) { + if (t instanceof Mo) return new Mo(t.l, t.a, t.b, t.opacity); + if (t instanceof Fo) return Vo(t); + t instanceof tn || (t = Ze(t)); + var e, + n, + r = Ro(t.r), + i = Ro(t.g), + o = Ro(t.b), + a = Lo((0.2225045 * r + 0.7168786 * i + 0.0606169 * o) / wo); + return ( + r === i && i === o + ? (e = n = a) + : ((e = Lo((0.4360747 * r + 0.3850649 * i + 0.1430804 * o) / xo)), + (n = Lo((0.0139322 * r + 0.0971045 * i + 0.7141733 * o) / So))), + new Mo(116 * a - 16, 500 * (e - a), 200 * (a - n), t.opacity) + ); + } + function Oo(t, e) { + return new Mo(t, 0, 0, null == e ? 1 : e); + } + function Po(t, e, n, r) { + return 1 === arguments.length + ? Co(t) + : new Mo(t, e, n, null == r ? 1 : r); + } + function Mo(t, e, n, r) { + (this.l = +t), (this.a = +e), (this.b = +n), (this.opacity = +r); + } + function Lo(t) { + return t > To ? Math.pow(t, 1 / 3) : t / Ao + Eo; + } + function jo(t) { + return t > ko ? t * t * t : Ao * (t - Eo); + } + function Do(t) { + return ( + 255 * + (t <= 0.0031308 ? 12.92 * t : 1.055 * Math.pow(t, 1 / 2.4) - 0.055) + ); + } + function Ro(t) { + return (t /= 255) <= 0.04045 + ? t / 12.92 + : Math.pow((t + 0.055) / 1.055, 2.4); + } + function zo(t) { + if (t instanceof Fo) return new Fo(t.h, t.c, t.l, t.opacity); + if ((t instanceof Mo || (t = Co(t)), 0 === t.a && 0 === t.b)) + return new Fo(NaN, 0 < t.l && t.l < 100 ? 0 : NaN, t.l, t.opacity); + var e = Math.atan2(t.b, t.a) * _o; + return new Fo( + e < 0 ? e + 360 : e, + Math.sqrt(t.a * t.a + t.b * t.b), + t.l, + t.opacity + ); + } + function No(t, e, n, r) { + return 1 === arguments.length + ? zo(t) + : new Fo(n, e, t, null == r ? 1 : r); + } + function Io(t, e, n, r) { + return 1 === arguments.length + ? zo(t) + : new Fo(t, e, n, null == r ? 1 : r); + } + function Fo(t, e, n, r) { + (this.h = +t), (this.c = +e), (this.l = +n), (this.opacity = +r); + } + function Vo(t) { + if (isNaN(t.h)) return new Mo(t.l, 0, 0, t.opacity); + var e = t.h * bo; + return new Mo(t.l, Math.cos(e) * t.c, Math.sin(e) * t.c, t.opacity); + } + je( + Mo, + Po, + De(Re, { + brighter: function(t) { + return new Mo( + this.l + 18 * (null == t ? 1 : t), + this.a, + this.b, + this.opacity + ); + }, + darker: function(t) { + return new Mo( + this.l - 18 * (null == t ? 1 : t), + this.a, + this.b, + this.opacity + ); + }, + rgb: function() { + var t = (this.l + 16) / 116, + e = isNaN(this.a) ? t : t + this.a / 500, + n = isNaN(this.b) ? t : t - this.b / 200; + return new tn( + Do( + 3.1338561 * (e = xo * jo(e)) - + 1.6168667 * (t = wo * jo(t)) - + 0.4906146 * (n = So * jo(n)) + ), + Do(-0.9787684 * e + 1.9161415 * t + 0.033454 * n), + Do(0.0719453 * e - 0.2289914 * t + 1.4052427 * n), + this.opacity + ); + } + }) + ), + je( + Fo, + Io, + De(Re, { + brighter: function(t) { + return new Fo( + this.h, + this.c, + this.l + 18 * (null == t ? 1 : t), + this.opacity + ); + }, + darker: function(t) { + return new Fo( + this.h, + this.c, + this.l - 18 * (null == t ? 1 : t), + this.opacity + ); + }, + rgb: function() { + return Vo(this).rgb(); + } + }) + ); + var Bo = -0.29227, + Go = -0.90649, + Ho = 1.97294, + Uo = Ho * Go, + qo = 1.78277 * Ho, + Wo = 1.78277 * Bo - -0.14861 * Go; + function Xo(t, e, n, r) { + return 1 === arguments.length + ? (function(t) { + if (t instanceof Yo) return new Yo(t.h, t.s, t.l, t.opacity); + t instanceof tn || (t = Ze(t)); + var e = t.r / 255, + n = t.g / 255, + r = t.b / 255, + i = (Wo * r + Uo * e - qo * n) / (Wo + Uo - qo), + o = r - i, + a = (Ho * (n - i) - Bo * o) / Go, + s = Math.sqrt(a * a + o * o) / (Ho * i * (1 - i)), + u = s ? Math.atan2(a, o) * _o - 120 : NaN; + return new Yo(u < 0 ? u + 360 : u, s, i, t.opacity); + })(t) + : new Yo(t, e, n, null == r ? 1 : r); + } + function Yo(t, e, n, r) { + (this.h = +t), (this.s = +e), (this.l = +n), (this.opacity = +r); + } + je( + Yo, + Xo, + De(Re, { + brighter: function(t) { + return ( + (t = null == t ? 1 / 0.7 : Math.pow(1 / 0.7, t)), + new Yo(this.h, this.s, this.l * t, this.opacity) + ); + }, + darker: function(t) { + return ( + (t = null == t ? 0.7 : Math.pow(0.7, t)), + new Yo(this.h, this.s, this.l * t, this.opacity) + ); + }, + rgb: function() { + var t = isNaN(this.h) ? 0 : (this.h + 120) * bo, + e = +this.l, + n = isNaN(this.s) ? 0 : this.s * e * (1 - e), + r = Math.cos(t), + i = Math.sin(t); + return new tn( + 255 * (e + n * (-0.14861 * r + 1.78277 * i)), + 255 * (e + n * (Bo * r + Go * i)), + 255 * (e + n * (Ho * r)), + this.opacity + ); + } + }) + ); + var $o = Array.prototype.slice, + Ko = function(t, e) { + return t - e; + }, + Qo = function(t) { + for ( + var e = 0, + n = t.length, + r = t[n - 1][1] * t[0][0] - t[n - 1][0] * t[0][1]; + ++e < n; + + ) + r += t[e - 1][1] * t[e][0] - t[e - 1][0] * t[e][1]; + return r; + }, + Zo = function(t) { + return function() { + return t; + }; + }, + Jo = function(t, e) { + for (var n, r = -1, i = e.length; ++r < i; ) + if ((n = ta(t, e[r]))) return n; + return 0; + }; + function ta(t, e) { + for ( + var n = e[0], r = e[1], i = -1, o = 0, a = t.length, s = a - 1; + o < a; + s = o++ + ) { + var u = t[o], + l = u[0], + c = u[1], + f = t[s], + d = f[0], + h = f[1]; + if (ea(u, f, e)) return 0; + c > r != h > r && n < ((d - l) * (r - c)) / (h - c) + l && (i = -i); + } + return i; + } + function ea(t, e, n) { + var r, i, o, a; + return ( + (function(t, e, n) { + return ( + (e[0] - t[0]) * (n[1] - t[1]) == (n[0] - t[0]) * (e[1] - t[1]) + ); + })(t, e, n) && + ((i = t[(r = +(t[0] === e[0]))]), + (o = n[r]), + (a = e[r]), + (i <= o && o <= a) || (a <= o && o <= i)) + ); + } + var na = function() {}, + ra = [ + [], + [[[1, 1.5], [0.5, 1]]], + [[[1.5, 1], [1, 1.5]]], + [[[1.5, 1], [0.5, 1]]], + [[[1, 0.5], [1.5, 1]]], + [[[1, 1.5], [0.5, 1]], [[1, 0.5], [1.5, 1]]], + [[[1, 0.5], [1, 1.5]]], + [[[1, 0.5], [0.5, 1]]], + [[[0.5, 1], [1, 0.5]]], + [[[1, 1.5], [1, 0.5]]], + [[[0.5, 1], [1, 0.5]], [[1.5, 1], [1, 1.5]]], + [[[1.5, 1], [1, 0.5]]], + [[[0.5, 1], [1.5, 1]]], + [[[1, 1.5], [1.5, 1]]], + [[[0.5, 1], [1, 1.5]]], + [] + ], + ia = function() { + var t = 1, + e = 1, + n = O, + r = s; + function i(t) { + var e = n(t); + if (Array.isArray(e)) e = e.slice().sort(Ko); + else { + var r = m(t), + i = r[0], + a = r[1]; + (e = C(i, a, e)), + (e = w(Math.floor(i / e) * e, Math.floor(a / e) * e, e)); + } + return e.map(function(e) { + return o(t, e); + }); + } + function o(n, i) { + var o = [], + s = []; + return ( + (function(n, r, i) { + var o, + s, + u, + l, + c, + f, + d = new Array(), + h = new Array(); + (o = s = -1), (l = n[0] >= r), ra[l << 1].forEach(p); + for (; ++o < t - 1; ) + (u = l), (l = n[o + 1] >= r), ra[u | (l << 1)].forEach(p); + ra[l << 0].forEach(p); + for (; ++s < e - 1; ) { + for ( + o = -1, + l = n[s * t + t] >= r, + c = n[s * t] >= r, + ra[(l << 1) | (c << 2)].forEach(p); + ++o < t - 1; + + ) + (u = l), + (l = n[s * t + t + o + 1] >= r), + (f = c), + (c = n[s * t + o + 1] >= r), + ra[u | (l << 1) | (c << 2) | (f << 3)].forEach(p); + ra[l | (c << 3)].forEach(p); + } + (o = -1), (c = n[s * t] >= r), ra[c << 2].forEach(p); + for (; ++o < t - 1; ) + (f = c), + (c = n[s * t + o + 1] >= r), + ra[(c << 2) | (f << 3)].forEach(p); + function p(t) { + var e, + n, + r = [t[0][0] + o, t[0][1] + s], + u = [t[1][0] + o, t[1][1] + s], + l = a(r), + c = a(u); + (e = h[l]) + ? (n = d[c]) + ? (delete h[e.end], + delete d[n.start], + e === n + ? (e.ring.push(u), i(e.ring)) + : (d[e.start] = h[n.end] = { + start: e.start, + end: n.end, + ring: e.ring.concat(n.ring) + })) + : (delete h[e.end], e.ring.push(u), (h[(e.end = c)] = e)) + : (e = d[c]) + ? (n = h[l]) + ? (delete d[e.start], + delete h[n.end], + e === n + ? (e.ring.push(u), i(e.ring)) + : (d[n.start] = h[e.end] = { + start: n.start, + end: e.end, + ring: n.ring.concat(e.ring) + })) + : (delete d[e.start], + e.ring.unshift(r), + (d[(e.start = l)] = e)) + : (d[l] = h[c] = { start: l, end: c, ring: [r, u] }); + } + ra[c << 3].forEach(p); + })(n, i, function(t) { + r(t, n, i), Qo(t) > 0 ? o.push([t]) : s.push(t); + }), + s.forEach(function(t) { + for (var e, n = 0, r = o.length; n < r; ++n) + if (-1 !== Jo((e = o[n])[0], t)) return void e.push(t); + }), + { type: 'MultiPolygon', value: i, coordinates: o } + ); + } + function a(e) { + return 2 * e[0] + e[1] * (t + 1) * 4; + } + function s(n, r, i) { + n.forEach(function(n) { + var o, + a = n[0], + s = n[1], + u = 0 | a, + l = 0 | s, + c = r[l * t + u]; + a > 0 && + a < t && + u === a && + ((o = r[l * t + u - 1]), (n[0] = a + (i - o) / (c - o) - 0.5)), + s > 0 && + s < e && + l === s && + ((o = r[(l - 1) * t + u]), + (n[1] = s + (i - o) / (c - o) - 0.5)); + }); + } + return ( + (i.contour = o), + (i.size = function(n) { + if (!arguments.length) return [t, e]; + var r = Math.ceil(n[0]), + o = Math.ceil(n[1]); + if (!(r > 0 && o > 0)) throw new Error('invalid size'); + return (t = r), (e = o), i; + }), + (i.thresholds = function(t) { + return arguments.length + ? ((n = + 'function' == typeof t + ? t + : Array.isArray(t) + ? Zo($o.call(t)) + : Zo(t)), + i) + : n; + }), + (i.smooth = function(t) { + return arguments.length ? ((r = t ? s : na), i) : r === s; + }), + i + ); + }; + function oa(t, e, n) { + for (var r = t.width, i = t.height, o = 1 + (n << 1), a = 0; a < i; ++a) + for (var s = 0, u = 0; s < r + n; ++s) + s < r && (u += t.data[s + a * r]), + s >= n && + (s >= o && (u -= t.data[s - o + a * r]), + (e.data[s - n + a * r] = + u / Math.min(s + 1, r - 1 + o - s, o))); + } + function aa(t, e, n) { + for (var r = t.width, i = t.height, o = 1 + (n << 1), a = 0; a < r; ++a) + for (var s = 0, u = 0; s < i + n; ++s) + s < i && (u += t.data[a + s * r]), + s >= n && + (s >= o && (u -= t.data[a + (s - o) * r]), + (e.data[a + (s - n) * r] = + u / Math.min(s + 1, i - 1 + o - s, o))); + } + function sa(t) { + return t[0]; + } + function ua(t) { + return t[1]; + } + function la() { + return 1; + } + var ca = function() { + var t = sa, + e = ua, + n = la, + r = 960, + i = 500, + o = 20, + a = 2, + s = 3 * o, + u = (r + 2 * s) >> a, + l = (i + 2 * s) >> a, + c = Zo(20); + function f(r) { + var i = new Float32Array(u * l), + f = new Float32Array(u * l); + r.forEach(function(r, o, c) { + var f = (+t(r, o, c) + s) >> a, + d = (+e(r, o, c) + s) >> a, + h = +n(r, o, c); + f >= 0 && f < u && d >= 0 && d < l && (i[f + d * u] += h); + }), + oa( + { width: u, height: l, data: i }, + { width: u, height: l, data: f }, + o >> a + ), + aa( + { width: u, height: l, data: f }, + { width: u, height: l, data: i }, + o >> a + ), + oa( + { width: u, height: l, data: i }, + { width: u, height: l, data: f }, + o >> a + ), + aa( + { width: u, height: l, data: f }, + { width: u, height: l, data: i }, + o >> a + ), + oa( + { width: u, height: l, data: i }, + { width: u, height: l, data: f }, + o >> a + ), + aa( + { width: u, height: l, data: f }, + { width: u, height: l, data: i }, + o >> a + ); + var h = c(i); + if (!Array.isArray(h)) { + var p = D(i); + (h = C(0, p, h)), (h = w(0, Math.floor(p / h) * h, h)).shift(); + } + return ia() + .thresholds(h) + .size([u, l])(i) + .map(d); + } + function d(t) { + return ( + (t.value *= Math.pow(2, -2 * a)), t.coordinates.forEach(h), t + ); + } + function h(t) { + t.forEach(p); + } + function p(t) { + t.forEach(g); + } + function g(t) { + (t[0] = t[0] * Math.pow(2, a) - s), + (t[1] = t[1] * Math.pow(2, a) - s); + } + function m() { + return (u = (r + 2 * (s = 3 * o)) >> a), (l = (i + 2 * s) >> a), f; + } + return ( + (f.x = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : Zo(+e)), f) + : t; + }), + (f.y = function(t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : Zo(+t)), f) + : e; + }), + (f.weight = function(t) { + return arguments.length + ? ((n = 'function' == typeof t ? t : Zo(+t)), f) + : n; + }), + (f.size = function(t) { + if (!arguments.length) return [r, i]; + var e = Math.ceil(t[0]), + n = Math.ceil(t[1]); + if (!(e >= 0 || e >= 0)) throw new Error('invalid size'); + return (r = e), (i = n), m(); + }), + (f.cellSize = function(t) { + if (!arguments.length) return 1 << a; + if (!((t = +t) >= 1)) throw new Error('invalid cell size'); + return (a = Math.floor(Math.log(t) / Math.LN2)), m(); + }), + (f.thresholds = function(t) { + return arguments.length + ? ((c = + 'function' == typeof t + ? t + : Array.isArray(t) + ? Zo($o.call(t)) + : Zo(t)), + f) + : c; + }), + (f.bandwidth = function(t) { + if (!arguments.length) return Math.sqrt(o * (o + 1)); + if (!((t = +t) >= 0)) throw new Error('invalid bandwidth'); + return (o = Math.round((Math.sqrt(4 * t * t + 1) - 1) / 2)), m(); + }), + f + ); + }, + fa = function(t) { + return function() { + return t; + }; + }; + function da(t, e, n, r, i, o, a, s, u, l) { + (this.target = t), + (this.type = e), + (this.subject = n), + (this.identifier = r), + (this.active = i), + (this.x = o), + (this.y = a), + (this.dx = s), + (this.dy = u), + (this._ = l); + } + function ha() { + return !pe.ctrlKey && !pe.button; + } + function pa() { + return this.parentNode; + } + function ga(t) { + return null == t ? { x: pe.x, y: pe.y } : t; + } + function ma() { + return navigator.maxTouchPoints || 'ontouchstart' in this; + } + da.prototype.on = function() { + var t = this._.on.apply(this._, arguments); + return t === this._ ? this : t; + }; + var va = function() { + var t, + e, + n, + r, + i = ha, + o = pa, + a = ga, + s = ma, + u = {}, + l = gt('start', 'drag', 'end'), + c = 0, + f = 0; + function d(t) { + t.on('mousedown.drag', h) + .filter(s) + .on('touchstart.drag', m) + .on('touchmove.drag', v) + .on('touchend.drag touchcancel.drag', y) + .style('touch-action', 'none') + .style('-webkit-tap-highlight-color', 'rgba(0,0,0,0)'); + } + function h() { + if (!r && i.apply(this, arguments)) { + var a = b('mouse', o.apply(this, arguments), In, this, arguments); + a && + (Ce(pe.view) + .on('mousemove.drag', p, !0) + .on('mouseup.drag', g, !0), + Me(pe.view), + Oe(), + (n = !1), + (t = pe.clientX), + (e = pe.clientY), + a('start')); + } + } + function p() { + if ((Pe(), !n)) { + var r = pe.clientX - t, + i = pe.clientY - e; + n = r * r + i * i > f; + } + u.mouse('drag'); + } + function g() { + Ce(pe.view).on('mousemove.drag mouseup.drag', null), + Le(pe.view, n), + Pe(), + u.mouse('end'); + } + function m() { + if (i.apply(this, arguments)) { + var t, + e, + n = pe.changedTouches, + r = o.apply(this, arguments), + a = n.length; + for (t = 0; t < a; ++t) + (e = b(n[t].identifier, r, Nn, this, arguments)) && + (Oe(), e('start')); + } + } + function v() { + var t, + e, + n = pe.changedTouches, + r = n.length; + for (t = 0; t < r; ++t) + (e = u[n[t].identifier]) && (Pe(), e('drag')); + } + function y() { + var t, + e, + n = pe.changedTouches, + i = n.length; + for ( + r && clearTimeout(r), + r = setTimeout(function() { + r = null; + }, 500), + t = 0; + t < i; + ++t + ) + (e = u[n[t].identifier]) && (Oe(), e('end')); + } + function b(t, e, n, r, i) { + var o, + s, + f, + h = n(e, t), + p = l.copy(); + if ( + _e( + new da(d, 'beforestart', o, t, c, h[0], h[1], 0, 0, p), + function() { + return ( + null != (pe.subject = o = a.apply(r, i)) && + ((s = o.x - h[0] || 0), (f = o.y - h[1] || 0), !0) + ); + } + ) + ) + return function a(l) { + var g, + m = h; + switch (l) { + case 'start': + (u[t] = a), (g = c++); + break; + case 'end': + delete u[t], --c; + case 'drag': + (h = n(e, t)), (g = c); + } + _e( + new da( + d, + l, + o, + t, + g, + h[0] + s, + h[1] + f, + h[0] - m[0], + h[1] - m[1], + p + ), + p.apply, + p, + [l, r, i] + ); + }; + } + return ( + (d.filter = function(t) { + return arguments.length + ? ((i = 'function' == typeof t ? t : fa(!!t)), d) + : i; + }), + (d.container = function(t) { + return arguments.length + ? ((o = 'function' == typeof t ? t : fa(t)), d) + : o; + }), + (d.subject = function(t) { + return arguments.length + ? ((a = 'function' == typeof t ? t : fa(t)), d) + : a; + }), + (d.touchable = function(t) { + return arguments.length + ? ((s = 'function' == typeof t ? t : fa(!!t)), d) + : s; + }), + (d.on = function() { + var t = l.on.apply(l, arguments); + return t === l ? d : t; + }), + (d.clickDistance = function(t) { + return arguments.length ? ((f = (t = +t) * t), d) : Math.sqrt(f); + }), + d + ); + }, + ya = {}, + ba = {}, + _a = 34, + xa = 10, + wa = 13; + function Sa(t) { + return new Function( + 'd', + 'return {' + + t + .map(function(t, e) { + return JSON.stringify(t) + ': d[' + e + '] || ""'; + }) + .join(',') + + '}' + ); + } + function Ea(t) { + var e = Object.create(null), + n = []; + return ( + t.forEach(function(t) { + for (var r in t) r in e || n.push((e[r] = r)); + }), + n + ); + } + function ka(t, e) { + var n = t + '', + r = n.length; + return r < e ? new Array(e - r + 1).join(0) + n : n; + } + function Aa(t) { + var e, + n = t.getUTCHours(), + r = t.getUTCMinutes(), + i = t.getUTCSeconds(), + o = t.getUTCMilliseconds(); + return isNaN(t) + ? 'Invalid Date' + : ((e = t.getUTCFullYear()) < 0 + ? '-' + ka(-e, 6) + : e > 9999 + ? '+' + ka(e, 6) + : ka(e, 4)) + + '-' + + ka(t.getUTCMonth() + 1, 2) + + '-' + + ka(t.getUTCDate(), 2) + + (o + ? 'T' + + ka(n, 2) + + ':' + + ka(r, 2) + + ':' + + ka(i, 2) + + '.' + + ka(o, 3) + + 'Z' + : i + ? 'T' + ka(n, 2) + ':' + ka(r, 2) + ':' + ka(i, 2) + 'Z' + : r || n + ? 'T' + ka(n, 2) + ':' + ka(r, 2) + 'Z' + : ''); + } + var Ta = function(t) { + var e = new RegExp('["' + t + '\n\r]'), + n = t.charCodeAt(0); + function r(t, e) { + var r, + i = [], + o = t.length, + a = 0, + s = 0, + u = o <= 0, + l = !1; + function c() { + if (u) return ba; + if (l) return (l = !1), ya; + var e, + r, + i = a; + if (t.charCodeAt(i) === _a) { + for ( + ; + (a++ < o && t.charCodeAt(a) !== _a) || + t.charCodeAt(++a) === _a; + + ); + return ( + (e = a) >= o + ? (u = !0) + : (r = t.charCodeAt(a++)) === xa + ? (l = !0) + : r === wa && ((l = !0), t.charCodeAt(a) === xa && ++a), + t.slice(i + 1, e - 1).replace(/""/g, '"') + ); + } + for (; a < o; ) { + if ((r = t.charCodeAt((e = a++))) === xa) l = !0; + else if (r === wa) (l = !0), t.charCodeAt(a) === xa && ++a; + else if (r !== n) continue; + return t.slice(i, e); + } + return (u = !0), t.slice(i, o); + } + for ( + t.charCodeAt(o - 1) === xa && --o, + t.charCodeAt(o - 1) === wa && --o; + (r = c()) !== ba; + + ) { + for (var f = []; r !== ya && r !== ba; ) f.push(r), (r = c()); + (e && null == (f = e(f, s++))) || i.push(f); + } + return i; + } + function i(e, n) { + return e.map(function(e) { + return n + .map(function(t) { + return a(e[t]); + }) + .join(t); + }); + } + function o(e) { + return e.map(a).join(t); + } + function a(t) { + return null == t + ? '' + : t instanceof Date + ? Aa(t) + : e.test((t += '')) + ? '"' + t.replace(/"/g, '""') + '"' + : t; + } + return { + parse: function(t, e) { + var n, + i, + o = r(t, function(t, r) { + if (n) return n(t, r - 1); + (i = t), + (n = e + ? (function(t, e) { + var n = Sa(t); + return function(r, i) { + return e(n(r), i, t); + }; + })(t, e) + : Sa(t)); + }); + return (o.columns = i || []), o; + }, + parseRows: r, + format: function(e, n) { + return ( + null == n && (n = Ea(e)), + [n.map(a).join(t)].concat(i(e, n)).join('\n') + ); + }, + formatBody: function(t, e) { + return null == e && (e = Ea(t)), i(t, e).join('\n'); + }, + formatRows: function(t) { + return t.map(o).join('\n'); + }, + formatRow: o, + formatValue: a + }; + }, + Ca = Ta(','), + Oa = Ca.parse, + Pa = Ca.parseRows, + Ma = Ca.format, + La = Ca.formatBody, + ja = Ca.formatRows, + Da = Ca.formatRow, + Ra = Ca.formatValue, + za = Ta('\t'), + Na = za.parse, + Ia = za.parseRows, + Fa = za.format, + Va = za.formatBody, + Ba = za.formatRows, + Ga = za.formatRow, + Ha = za.formatValue; + function Ua(t) { + for (var e in t) { + var n, + r, + i = t[e].trim(); + if (i) + if ('true' === i) i = !0; + else if ('false' === i) i = !1; + else if ('NaN' === i) i = NaN; + else if (isNaN((n = +i))) { + if ( + !(r = i.match( + /^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/ + )) + ) + continue; + qa && + r[4] && + !r[7] && + (i = i.replace(/-/g, '/').replace(/T/, ' ')), + (i = new Date(i)); + } else i = n; + else i = null; + t[e] = i; + } + return t; + } + var qa = + new Date('2019-01-01T00:00').getHours() || + new Date('2019-07-01T00:00').getHours(); + function Wa(t) { + return +t; + } + function Xa(t) { + return t * t; + } + function Ya(t) { + return t * (2 - t); + } + function $a(t) { + return ((t *= 2) <= 1 ? t * t : --t * (2 - t) + 1) / 2; + } + var Ka = (function t(e) { + function n(t) { + return Math.pow(t, e); + } + return (e = +e), (n.exponent = t), n; + })(3), + Qa = (function t(e) { + function n(t) { + return 1 - Math.pow(1 - t, e); + } + return (e = +e), (n.exponent = t), n; + })(3), + Za = (function t(e) { + function n(t) { + return ( + ((t *= 2) <= 1 ? Math.pow(t, e) : 2 - Math.pow(2 - t, e)) / 2 + ); + } + return (e = +e), (n.exponent = t), n; + })(3), + Ja = Math.PI, + ts = Ja / 2; + function es(t) { + return 1 - Math.cos(t * ts); + } + function ns(t) { + return Math.sin(t * ts); + } + function rs(t) { + return (1 - Math.cos(Ja * t)) / 2; + } + function is(t) { + return Math.pow(2, 10 * t - 10); + } + function os(t) { + return 1 - Math.pow(2, -10 * t); + } + function as(t) { + return ( + ((t *= 2) <= 1 + ? Math.pow(2, 10 * t - 10) + : 2 - Math.pow(2, 10 - 10 * t)) / 2 + ); + } + function ss(t) { + return 1 - Math.sqrt(1 - t * t); + } + function us(t) { + return Math.sqrt(1 - --t * t); + } + function ls(t) { + return ( + ((t *= 2) <= 1 + ? 1 - Math.sqrt(1 - t * t) + : Math.sqrt(1 - (t -= 2) * t) + 1) / 2 + ); + } + var cs = 4 / 11, + fs = 6 / 11, + ds = 8 / 11, + hs = 0.75, + ps = 9 / 11, + gs = 10 / 11, + ms = 0.9375, + vs = 21 / 22, + ys = 63 / 64, + bs = 1 / cs / cs; + function _s(t) { + return 1 - xs(1 - t); + } + function xs(t) { + return (t = +t) < cs + ? bs * t * t + : t < ds + ? bs * (t -= fs) * t + hs + : t < gs + ? bs * (t -= ps) * t + ms + : bs * (t -= vs) * t + ys; + } + function ws(t) { + return ((t *= 2) <= 1 ? 1 - xs(1 - t) : xs(t - 1) + 1) / 2; + } + var Ss = (function t(e) { + function n(t) { + return t * t * ((e + 1) * t - e); + } + return (e = +e), (n.overshoot = t), n; + })(1.70158), + Es = (function t(e) { + function n(t) { + return --t * t * ((e + 1) * t + e) + 1; + } + return (e = +e), (n.overshoot = t), n; + })(1.70158), + ks = (function t(e) { + function n(t) { + return ( + ((t *= 2) < 1 + ? t * t * ((e + 1) * t - e) + : (t -= 2) * t * ((e + 1) * t + e) + 2) / 2 + ); + } + return (e = +e), (n.overshoot = t), n; + })(1.70158), + As = 2 * Math.PI, + Ts = (function t(e, n) { + var r = Math.asin(1 / (e = Math.max(1, e))) * (n /= As); + function i(t) { + return e * Math.pow(2, 10 * --t) * Math.sin((r - t) / n); + } + return ( + (i.amplitude = function(e) { + return t(e, n * As); + }), + (i.period = function(n) { + return t(e, n); + }), + i + ); + })(1, 0.3), + Cs = (function t(e, n) { + var r = Math.asin(1 / (e = Math.max(1, e))) * (n /= As); + function i(t) { + return 1 - e * Math.pow(2, -10 * (t = +t)) * Math.sin((t + r) / n); + } + return ( + (i.amplitude = function(e) { + return t(e, n * As); + }), + (i.period = function(n) { + return t(e, n); + }), + i + ); + })(1, 0.3), + Os = (function t(e, n) { + var r = Math.asin(1 / (e = Math.max(1, e))) * (n /= As); + function i(t) { + return ( + ((t = 2 * t - 1) < 0 + ? e * Math.pow(2, 10 * t) * Math.sin((r - t) / n) + : 2 - e * Math.pow(2, -10 * t) * Math.sin((r + t) / n)) / 2 + ); + } + return ( + (i.amplitude = function(e) { + return t(e, n * As); + }), + (i.period = function(n) { + return t(e, n); + }), + i + ); + })(1, 0.3); + function Ps(t) { + if (!t.ok) throw new Error(t.status + ' ' + t.statusText); + return t.blob(); + } + var Ms = function(t, e) { + return fetch(t, e).then(Ps); + }; + function Ls(t) { + if (!t.ok) throw new Error(t.status + ' ' + t.statusText); + return t.arrayBuffer(); + } + var js = function(t, e) { + return fetch(t, e).then(Ls); + }; + function Ds(t) { + if (!t.ok) throw new Error(t.status + ' ' + t.statusText); + return t.text(); + } + var Rs = function(t, e) { + return fetch(t, e).then(Ds); + }; + function zs(t) { + return function(e, n, r) { + return ( + 2 === arguments.length && + 'function' == typeof n && + ((r = n), (n = void 0)), + Rs(e, n).then(function(e) { + return t(e, r); + }) + ); + }; + } + function Ns(t, e, n, r) { + 3 === arguments.length && + 'function' == typeof n && + ((r = n), (n = void 0)); + var i = Ta(t); + return Rs(e, n).then(function(t) { + return i.parse(t, r); + }); + } + var Is = zs(Oa), + Fs = zs(Na), + Vs = function(t, e) { + return new Promise(function(n, r) { + var i = new Image(); + for (var o in e) i[o] = e[o]; + (i.onerror = r), + (i.onload = function() { + n(i); + }), + (i.src = t); + }); + }; + function Bs(t) { + if (!t.ok) throw new Error(t.status + ' ' + t.statusText); + return t.json(); + } + var Gs = function(t, e) { + return fetch(t, e).then(Bs); + }; + function Hs(t) { + return function(e, n) { + return Rs(e, n).then(function(e) { + return new DOMParser().parseFromString(e, t); + }); + }; + } + var Us = Hs('application/xml'), + qs = Hs('text/html'), + Ws = Hs('image/svg+xml'), + Xs = function(t, e) { + var n; + function r() { + var r, + i, + o = n.length, + a = 0, + s = 0; + for (r = 0; r < o; ++r) (a += (i = n[r]).x), (s += i.y); + for (a = a / o - t, s = s / o - e, r = 0; r < o; ++r) + ((i = n[r]).x -= a), (i.y -= s); + } + return ( + null == t && (t = 0), + null == e && (e = 0), + (r.initialize = function(t) { + n = t; + }), + (r.x = function(e) { + return arguments.length ? ((t = +e), r) : t; + }), + (r.y = function(t) { + return arguments.length ? ((e = +t), r) : e; + }), + r + ); + }, + Ys = function(t) { + return function() { + return t; + }; + }, + $s = function() { + return 1e-6 * (Math.random() - 0.5); + }; + function Ks(t, e, n, r) { + if (isNaN(e) || isNaN(n)) return t; + var i, + o, + a, + s, + u, + l, + c, + f, + d, + h = t._root, + p = { data: r }, + g = t._x0, + m = t._y0, + v = t._x1, + y = t._y1; + if (!h) return (t._root = p), t; + for (; h.length; ) + if ( + ((l = e >= (o = (g + v) / 2)) ? (g = o) : (v = o), + (c = n >= (a = (m + y) / 2)) ? (m = a) : (y = a), + (i = h), + !(h = h[(f = (c << 1) | l)])) + ) + return (i[f] = p), t; + if ( + ((s = +t._x.call(null, h.data)), + (u = +t._y.call(null, h.data)), + e === s && n === u) + ) + return (p.next = h), i ? (i[f] = p) : (t._root = p), t; + do { + (i = i ? (i[f] = new Array(4)) : (t._root = new Array(4))), + (l = e >= (o = (g + v) / 2)) ? (g = o) : (v = o), + (c = n >= (a = (m + y) / 2)) ? (m = a) : (y = a); + } while ((f = (c << 1) | l) == (d = ((u >= a) << 1) | (s >= o))); + return (i[d] = h), (i[f] = p), t; + } + var Qs = function(t, e, n, r, i) { + (this.node = t), + (this.x0 = e), + (this.y0 = n), + (this.x1 = r), + (this.y1 = i); + }; + function Zs(t) { + return t[0]; + } + function Js(t) { + return t[1]; + } + function tu(t, e, n) { + var r = new eu( + null == e ? Zs : e, + null == n ? Js : n, + NaN, + NaN, + NaN, + NaN + ); + return null == t ? r : r.addAll(t); + } + function eu(t, e, n, r, i, o) { + (this._x = t), + (this._y = e), + (this._x0 = n), + (this._y0 = r), + (this._x1 = i), + (this._y1 = o), + (this._root = void 0); + } + function nu(t) { + for (var e = { data: t.data }, n = e; (t = t.next); ) + n = n.next = { data: t.data }; + return e; + } + var ru = (tu.prototype = eu.prototype); + function iu(t) { + return t.x + t.vx; + } + function ou(t) { + return t.y + t.vy; + } + (ru.copy = function() { + var t, + e, + n = new eu(this._x, this._y, this._x0, this._y0, this._x1, this._y1), + r = this._root; + if (!r) return n; + if (!r.length) return (n._root = nu(r)), n; + for ( + t = [{ source: r, target: (n._root = new Array(4)) }]; + (r = t.pop()); + + ) + for (var i = 0; i < 4; ++i) + (e = r.source[i]) && + (e.length + ? t.push({ source: e, target: (r.target[i] = new Array(4)) }) + : (r.target[i] = nu(e))); + return n; + }), + (ru.add = function(t) { + var e = +this._x.call(null, t), + n = +this._y.call(null, t); + return Ks(this.cover(e, n), e, n, t); + }), + (ru.addAll = function(t) { + var e, + n, + r, + i, + o = t.length, + a = new Array(o), + s = new Array(o), + u = 1 / 0, + l = 1 / 0, + c = -1 / 0, + f = -1 / 0; + for (n = 0; n < o; ++n) + isNaN((r = +this._x.call(null, (e = t[n])))) || + isNaN((i = +this._y.call(null, e))) || + ((a[n] = r), + (s[n] = i), + r < u && (u = r), + r > c && (c = r), + i < l && (l = i), + i > f && (f = i)); + if (u > c || l > f) return this; + for (this.cover(u, l).cover(c, f), n = 0; n < o; ++n) + Ks(this, a[n], s[n], t[n]); + return this; + }), + (ru.cover = function(t, e) { + if (isNaN((t = +t)) || isNaN((e = +e))) return this; + var n = this._x0, + r = this._y0, + i = this._x1, + o = this._y1; + if (isNaN(n)) + (i = (n = Math.floor(t)) + 1), (o = (r = Math.floor(e)) + 1); + else { + for ( + var a, s, u = i - n, l = this._root; + n > t || t >= i || r > e || e >= o; + + ) + switch ( + ((s = ((e < r) << 1) | (t < n)), + ((a = new Array(4))[s] = l), + (l = a), + (u *= 2), + s) + ) { + case 0: + (i = n + u), (o = r + u); + break; + case 1: + (n = i - u), (o = r + u); + break; + case 2: + (i = n + u), (r = o - u); + break; + case 3: + (n = i - u), (r = o - u); + } + this._root && this._root.length && (this._root = l); + } + return ( + (this._x0 = n), (this._y0 = r), (this._x1 = i), (this._y1 = o), this + ); + }), + (ru.data = function() { + var t = []; + return ( + this.visit(function(e) { + if (!e.length) + do { + t.push(e.data); + } while ((e = e.next)); + }), + t + ); + }), + (ru.extent = function(t) { + return arguments.length + ? this.cover(+t[0][0], +t[0][1]).cover(+t[1][0], +t[1][1]) + : isNaN(this._x0) + ? void 0 + : [[this._x0, this._y0], [this._x1, this._y1]]; + }), + (ru.find = function(t, e, n) { + var r, + i, + o, + a, + s, + u, + l, + c = this._x0, + f = this._y0, + d = this._x1, + h = this._y1, + p = [], + g = this._root; + for ( + g && p.push(new Qs(g, c, f, d, h)), + null == n + ? (n = 1 / 0) + : ((c = t - n), + (f = e - n), + (d = t + n), + (h = e + n), + (n *= n)); + (u = p.pop()); + + ) + if ( + !( + !(g = u.node) || + (i = u.x0) > d || + (o = u.y0) > h || + (a = u.x1) < c || + (s = u.y1) < f + ) + ) + if (g.length) { + var m = (i + a) / 2, + v = (o + s) / 2; + p.push( + new Qs(g[3], m, v, a, s), + new Qs(g[2], i, v, m, s), + new Qs(g[1], m, o, a, v), + new Qs(g[0], i, o, m, v) + ), + (l = ((e >= v) << 1) | (t >= m)) && + ((u = p[p.length - 1]), + (p[p.length - 1] = p[p.length - 1 - l]), + (p[p.length - 1 - l] = u)); + } else { + var y = t - +this._x.call(null, g.data), + b = e - +this._y.call(null, g.data), + _ = y * y + b * b; + if (_ < n) { + var x = Math.sqrt((n = _)); + (c = t - x), + (f = e - x), + (d = t + x), + (h = e + x), + (r = g.data); + } + } + return r; + }), + (ru.remove = function(t) { + if ( + isNaN((o = +this._x.call(null, t))) || + isNaN((a = +this._y.call(null, t))) + ) + return this; + var e, + n, + r, + i, + o, + a, + s, + u, + l, + c, + f, + d, + h = this._root, + p = this._x0, + g = this._y0, + m = this._x1, + v = this._y1; + if (!h) return this; + if (h.length) + for (;;) { + if ( + ((l = o >= (s = (p + m) / 2)) ? (p = s) : (m = s), + (c = a >= (u = (g + v) / 2)) ? (g = u) : (v = u), + (e = h), + !(h = h[(f = (c << 1) | l)])) + ) + return this; + if (!h.length) break; + (e[(f + 1) & 3] || e[(f + 2) & 3] || e[(f + 3) & 3]) && + ((n = e), (d = f)); + } + for (; h.data !== t; ) if (((r = h), !(h = h.next))) return this; + return ( + (i = h.next) && delete h.next, + r + ? (i ? (r.next = i) : delete r.next, this) + : e + ? (i ? (e[f] = i) : delete e[f], + (h = e[0] || e[1] || e[2] || e[3]) && + h === (e[3] || e[2] || e[1] || e[0]) && + !h.length && + (n ? (n[d] = h) : (this._root = h)), + this) + : ((this._root = i), this) + ); + }), + (ru.removeAll = function(t) { + for (var e = 0, n = t.length; e < n; ++e) this.remove(t[e]); + return this; + }), + (ru.root = function() { + return this._root; + }), + (ru.size = function() { + var t = 0; + return ( + this.visit(function(e) { + if (!e.length) + do { + ++t; + } while ((e = e.next)); + }), + t + ); + }), + (ru.visit = function(t) { + var e, + n, + r, + i, + o, + a, + s = [], + u = this._root; + for ( + u && s.push(new Qs(u, this._x0, this._y0, this._x1, this._y1)); + (e = s.pop()); + + ) + if ( + !t( + (u = e.node), + (r = e.x0), + (i = e.y0), + (o = e.x1), + (a = e.y1) + ) && + u.length + ) { + var l = (r + o) / 2, + c = (i + a) / 2; + (n = u[3]) && s.push(new Qs(n, l, c, o, a)), + (n = u[2]) && s.push(new Qs(n, r, c, l, a)), + (n = u[1]) && s.push(new Qs(n, l, i, o, c)), + (n = u[0]) && s.push(new Qs(n, r, i, l, c)); + } + return this; + }), + (ru.visitAfter = function(t) { + var e, + n = [], + r = []; + for ( + this._root && + n.push(new Qs(this._root, this._x0, this._y0, this._x1, this._y1)); + (e = n.pop()); + + ) { + var i = e.node; + if (i.length) { + var o, + a = e.x0, + s = e.y0, + u = e.x1, + l = e.y1, + c = (a + u) / 2, + f = (s + l) / 2; + (o = i[0]) && n.push(new Qs(o, a, s, c, f)), + (o = i[1]) && n.push(new Qs(o, c, s, u, f)), + (o = i[2]) && n.push(new Qs(o, a, f, c, l)), + (o = i[3]) && n.push(new Qs(o, c, f, u, l)); + } + r.push(e); + } + for (; (e = r.pop()); ) t(e.node, e.x0, e.y0, e.x1, e.y1); + return this; + }), + (ru.x = function(t) { + return arguments.length ? ((this._x = t), this) : this._x; + }), + (ru.y = function(t) { + return arguments.length ? ((this._y = t), this) : this._y; + }); + var au = function(t) { + var e, + n, + r = 1, + i = 1; + function o() { + for (var t, o, s, u, l, c, f, d = e.length, h = 0; h < i; ++h) + for (o = tu(e, iu, ou).visitAfter(a), t = 0; t < d; ++t) + (s = e[t]), + (c = n[s.index]), + (f = c * c), + (u = s.x + s.vx), + (l = s.y + s.vy), + o.visit(p); + function p(t, e, n, i, o) { + var a = t.data, + d = t.r, + h = c + d; + if (!a) return e > u + h || i < u - h || n > l + h || o < l - h; + if (a.index > s.index) { + var p = u - a.x - a.vx, + g = l - a.y - a.vy, + m = p * p + g * g; + m < h * h && + (0 === p && (m += (p = $s()) * p), + 0 === g && (m += (g = $s()) * g), + (m = ((h - (m = Math.sqrt(m))) / m) * r), + (s.vx += (p *= m) * (h = (d *= d) / (f + d))), + (s.vy += (g *= m) * h), + (a.vx -= p * (h = 1 - h)), + (a.vy -= g * h)); + } + } + } + function a(t) { + if (t.data) return (t.r = n[t.data.index]); + for (var e = (t.r = 0); e < 4; ++e) + t[e] && t[e].r > t.r && (t.r = t[e].r); + } + function s() { + if (e) { + var r, + i, + o = e.length; + for (n = new Array(o), r = 0; r < o; ++r) + (i = e[r]), (n[i.index] = +t(i, r, e)); + } + } + return ( + 'function' != typeof t && (t = Ys(null == t ? 1 : +t)), + (o.initialize = function(t) { + (e = t), s(); + }), + (o.iterations = function(t) { + return arguments.length ? ((i = +t), o) : i; + }), + (o.strength = function(t) { + return arguments.length ? ((r = +t), o) : r; + }), + (o.radius = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : Ys(+e)), s(), o) + : t; + }), + o + ); + }; + function su(t) { + return t.index; + } + function uu(t, e) { + var n = t.get(e); + if (!n) throw new Error('missing: ' + e); + return n; + } + var lu = function(t) { + var e, + n, + r, + i, + o, + a = su, + s = function(t) { + return 1 / Math.min(i[t.source.index], i[t.target.index]); + }, + u = Ys(30), + l = 1; + function c(r) { + for (var i = 0, a = t.length; i < l; ++i) + for (var s, u, c, f, d, h, p, g = 0; g < a; ++g) + (u = (s = t[g]).source), + (f = (c = s.target).x + c.vx - u.x - u.vx || $s()), + (d = c.y + c.vy - u.y - u.vy || $s()), + (f *= h = + (((h = Math.sqrt(f * f + d * d)) - n[g]) / h) * r * e[g]), + (d *= h), + (c.vx -= f * (p = o[g])), + (c.vy -= d * p), + (u.vx += f * (p = 1 - p)), + (u.vy += d * p); + } + function f() { + if (r) { + var s, + u, + l = r.length, + c = t.length, + f = oo(r, a); + for (s = 0, i = new Array(l); s < c; ++s) + ((u = t[s]).index = s), + 'object' != typeof u.source && (u.source = uu(f, u.source)), + 'object' != typeof u.target && (u.target = uu(f, u.target)), + (i[u.source.index] = (i[u.source.index] || 0) + 1), + (i[u.target.index] = (i[u.target.index] || 0) + 1); + for (s = 0, o = new Array(c); s < c; ++s) + (u = t[s]), + (o[s] = + i[u.source.index] / (i[u.source.index] + i[u.target.index])); + (e = new Array(c)), d(), (n = new Array(c)), h(); + } + } + function d() { + if (r) + for (var n = 0, i = t.length; n < i; ++n) e[n] = +s(t[n], n, t); + } + function h() { + if (r) + for (var e = 0, i = t.length; e < i; ++e) n[e] = +u(t[e], e, t); + } + return ( + null == t && (t = []), + (c.initialize = function(t) { + (r = t), f(); + }), + (c.links = function(e) { + return arguments.length ? ((t = e), f(), c) : t; + }), + (c.id = function(t) { + return arguments.length ? ((a = t), c) : a; + }), + (c.iterations = function(t) { + return arguments.length ? ((l = +t), c) : l; + }), + (c.strength = function(t) { + return arguments.length + ? ((s = 'function' == typeof t ? t : Ys(+t)), d(), c) + : s; + }), + (c.distance = function(t) { + return arguments.length + ? ((u = 'function' == typeof t ? t : Ys(+t)), h(), c) + : u; + }), + c + ); + }; + function cu(t) { + return t.x; + } + function fu(t) { + return t.y; + } + var du = 10, + hu = Math.PI * (3 - Math.sqrt(5)), + pu = function(t) { + var e, + n = 1, + r = 0.001, + i = 1 - Math.pow(r, 1 / 300), + o = 0, + a = 0.6, + s = oo(), + u = Qn(c), + l = gt('tick', 'end'); + function c() { + f(), l.call('tick', e), n < r && (u.stop(), l.call('end', e)); + } + function f(r) { + var u, + l, + c = t.length; + void 0 === r && (r = 1); + for (var f = 0; f < r; ++f) + for ( + n += (o - n) * i, + s.each(function(t) { + t(n); + }), + u = 0; + u < c; + ++u + ) + null == (l = t[u]).fx + ? (l.x += l.vx *= a) + : ((l.x = l.fx), (l.vx = 0)), + null == l.fy + ? (l.y += l.vy *= a) + : ((l.y = l.fy), (l.vy = 0)); + return e; + } + function d() { + for (var e, n = 0, r = t.length; n < r; ++n) { + if ( + (((e = t[n]).index = n), + null != e.fx && (e.x = e.fx), + null != e.fy && (e.y = e.fy), + isNaN(e.x) || isNaN(e.y)) + ) { + var i = du * Math.sqrt(n), + o = n * hu; + (e.x = i * Math.cos(o)), (e.y = i * Math.sin(o)); + } + (isNaN(e.vx) || isNaN(e.vy)) && (e.vx = e.vy = 0); + } + } + function h(e) { + return e.initialize && e.initialize(t), e; + } + return ( + null == t && (t = []), + d(), + (e = { + tick: f, + restart: function() { + return u.restart(c), e; + }, + stop: function() { + return u.stop(), e; + }, + nodes: function(n) { + return arguments.length ? ((t = n), d(), s.each(h), e) : t; + }, + alpha: function(t) { + return arguments.length ? ((n = +t), e) : n; + }, + alphaMin: function(t) { + return arguments.length ? ((r = +t), e) : r; + }, + alphaDecay: function(t) { + return arguments.length ? ((i = +t), e) : +i; + }, + alphaTarget: function(t) { + return arguments.length ? ((o = +t), e) : o; + }, + velocityDecay: function(t) { + return arguments.length ? ((a = 1 - t), e) : 1 - a; + }, + force: function(t, n) { + return arguments.length > 1 + ? (null == n ? s.remove(t) : s.set(t, h(n)), e) + : s.get(t); + }, + find: function(e, n, r) { + var i, + o, + a, + s, + u, + l = 0, + c = t.length; + for (null == r ? (r = 1 / 0) : (r *= r), l = 0; l < c; ++l) + (a = (i = e - (s = t[l]).x) * i + (o = n - s.y) * o) < r && + ((u = s), (r = a)); + return u; + }, + on: function(t, n) { + return arguments.length > 1 ? (l.on(t, n), e) : l.on(t); + } + }) + ); + }, + gu = function() { + var t, + e, + n, + r, + i = Ys(-30), + o = 1, + a = 1 / 0, + s = 0.81; + function u(r) { + var i, + o = t.length, + a = tu(t, cu, fu).visitAfter(c); + for (n = r, i = 0; i < o; ++i) (e = t[i]), a.visit(f); + } + function l() { + if (t) { + var e, + n, + o = t.length; + for (r = new Array(o), e = 0; e < o; ++e) + (n = t[e]), (r[n.index] = +i(n, e, t)); + } + } + function c(t) { + var e, + n, + i, + o, + a, + s = 0, + u = 0; + if (t.length) { + for (i = o = a = 0; a < 4; ++a) + (e = t[a]) && + (n = Math.abs(e.value)) && + ((s += e.value), (u += n), (i += n * e.x), (o += n * e.y)); + (t.x = i / u), (t.y = o / u); + } else { + ((e = t).x = e.data.x), (e.y = e.data.y); + do { + s += r[e.data.index]; + } while ((e = e.next)); + } + t.value = s; + } + function f(t, i, u, l) { + if (!t.value) return !0; + var c = t.x - e.x, + f = t.y - e.y, + d = l - i, + h = c * c + f * f; + if ((d * d) / s < h) + return ( + h < a && + (0 === c && (h += (c = $s()) * c), + 0 === f && (h += (f = $s()) * f), + h < o && (h = Math.sqrt(o * h)), + (e.vx += (c * t.value * n) / h), + (e.vy += (f * t.value * n) / h)), + !0 + ); + if (!(t.length || h >= a)) { + (t.data !== e || t.next) && + (0 === c && (h += (c = $s()) * c), + 0 === f && (h += (f = $s()) * f), + h < o && (h = Math.sqrt(o * h))); + do { + t.data !== e && + ((d = (r[t.data.index] * n) / h), + (e.vx += c * d), + (e.vy += f * d)); + } while ((t = t.next)); + } + } + return ( + (u.initialize = function(e) { + (t = e), l(); + }), + (u.strength = function(t) { + return arguments.length + ? ((i = 'function' == typeof t ? t : Ys(+t)), l(), u) + : i; + }), + (u.distanceMin = function(t) { + return arguments.length ? ((o = t * t), u) : Math.sqrt(o); + }), + (u.distanceMax = function(t) { + return arguments.length ? ((a = t * t), u) : Math.sqrt(a); + }), + (u.theta = function(t) { + return arguments.length ? ((s = t * t), u) : Math.sqrt(s); + }), + u + ); + }, + mu = function(t, e, n) { + var r, + i, + o, + a = Ys(0.1); + function s(t) { + for (var a = 0, s = r.length; a < s; ++a) { + var u = r[a], + l = u.x - e || 1e-6, + c = u.y - n || 1e-6, + f = Math.sqrt(l * l + c * c), + d = ((o[a] - f) * i[a] * t) / f; + (u.vx += l * d), (u.vy += c * d); + } + } + function u() { + if (r) { + var e, + n = r.length; + for (i = new Array(n), o = new Array(n), e = 0; e < n; ++e) + (o[e] = +t(r[e], e, r)), + (i[e] = isNaN(o[e]) ? 0 : +a(r[e], e, r)); + } + } + return ( + 'function' != typeof t && (t = Ys(+t)), + null == e && (e = 0), + null == n && (n = 0), + (s.initialize = function(t) { + (r = t), u(); + }), + (s.strength = function(t) { + return arguments.length + ? ((a = 'function' == typeof t ? t : Ys(+t)), u(), s) + : a; + }), + (s.radius = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : Ys(+e)), u(), s) + : t; + }), + (s.x = function(t) { + return arguments.length ? ((e = +t), s) : e; + }), + (s.y = function(t) { + return arguments.length ? ((n = +t), s) : n; + }), + s + ); + }, + vu = function(t) { + var e, + n, + r, + i = Ys(0.1); + function o(t) { + for (var i, o = 0, a = e.length; o < a; ++o) + (i = e[o]).vx += (r[o] - i.x) * n[o] * t; + } + function a() { + if (e) { + var o, + a = e.length; + for (n = new Array(a), r = new Array(a), o = 0; o < a; ++o) + n[o] = isNaN((r[o] = +t(e[o], o, e))) ? 0 : +i(e[o], o, e); + } + } + return ( + 'function' != typeof t && (t = Ys(null == t ? 0 : +t)), + (o.initialize = function(t) { + (e = t), a(); + }), + (o.strength = function(t) { + return arguments.length + ? ((i = 'function' == typeof t ? t : Ys(+t)), a(), o) + : i; + }), + (o.x = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : Ys(+e)), a(), o) + : t; + }), + o + ); + }, + yu = function(t) { + var e, + n, + r, + i = Ys(0.1); + function o(t) { + for (var i, o = 0, a = e.length; o < a; ++o) + (i = e[o]).vy += (r[o] - i.y) * n[o] * t; + } + function a() { + if (e) { + var o, + a = e.length; + for (n = new Array(a), r = new Array(a), o = 0; o < a; ++o) + n[o] = isNaN((r[o] = +t(e[o], o, e))) ? 0 : +i(e[o], o, e); + } + } + return ( + 'function' != typeof t && (t = Ys(null == t ? 0 : +t)), + (o.initialize = function(t) { + (e = t), a(); + }), + (o.strength = function(t) { + return arguments.length + ? ((i = 'function' == typeof t ? t : Ys(+t)), a(), o) + : i; + }), + (o.y = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : Ys(+e)), a(), o) + : t; + }), + o + ); + }, + bu = function(t, e) { + if ( + (n = (t = e ? t.toExponential(e - 1) : t.toExponential()).indexOf( + 'e' + )) < 0 + ) + return null; + var n, + r = t.slice(0, n); + return [r.length > 1 ? r[0] + r.slice(2) : r, +t.slice(n + 1)]; + }, + _u = function(t) { + return (t = bu(Math.abs(t))) ? t[1] : NaN; + }, + xu = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i; + function wu(t) { + if (!(e = xu.exec(t))) throw new Error('invalid format: ' + t); + var e; + return new Su({ + fill: e[1], + align: e[2], + sign: e[3], + symbol: e[4], + zero: e[5], + width: e[6], + comma: e[7], + precision: e[8] && e[8].slice(1), + trim: e[9], + type: e[10] + }); + } + function Su(t) { + (this.fill = void 0 === t.fill ? ' ' : t.fill + ''), + (this.align = void 0 === t.align ? '>' : t.align + ''), + (this.sign = void 0 === t.sign ? '-' : t.sign + ''), + (this.symbol = void 0 === t.symbol ? '' : t.symbol + ''), + (this.zero = !!t.zero), + (this.width = void 0 === t.width ? void 0 : +t.width), + (this.comma = !!t.comma), + (this.precision = void 0 === t.precision ? void 0 : +t.precision), + (this.trim = !!t.trim), + (this.type = void 0 === t.type ? '' : t.type + ''); + } + (wu.prototype = Su.prototype), + (Su.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 Eu, + ku, + Au, + Tu, + Cu = function(t) { + t: for (var e, n = t.length, r = 1, i = -1; r < n; ++r) + switch (t[r]) { + case '.': + i = e = r; + break; + case '0': + 0 === i && (i = r), (e = r); + break; + default: + if (!+t[r]) break t; + i > 0 && (i = 0); + } + return i > 0 ? t.slice(0, i) + t.slice(e + 1) : t; + }, + Ou = function(t, e) { + var n = bu(t, e); + if (!n) return t + ''; + 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'); + }, + Pu = { + '%': function(t, e) { + return (100 * t).toFixed(e); + }, + b: function(t) { + return Math.round(t).toString(2); + }, + c: function(t) { + return t + ''; + }, + d: function(t) { + return Math.round(t).toString(10); + }, + e: function(t, e) { + return t.toExponential(e); + }, + f: function(t, e) { + return t.toFixed(e); + }, + g: function(t, e) { + return t.toPrecision(e); + }, + o: function(t) { + return Math.round(t).toString(8); + }, + p: function(t, e) { + return Ou(100 * t, e); + }, + r: Ou, + s: function(t, e) { + var n = bu(t, e); + if (!n) return t + ''; + var r = n[0], + i = n[1], + o = + i - (Eu = 3 * Math.max(-8, Math.min(8, Math.floor(i / 3)))) + 1, + a = r.length; + return o === a + ? r + : o > a + ? r + new Array(o - a + 1).join('0') + : o > 0 + ? r.slice(0, o) + '.' + r.slice(o) + : '0.' + + new Array(1 - o).join('0') + + bu(t, Math.max(0, e + o - 1))[0]; + }, + X: function(t) { + return Math.round(t) + .toString(16) + .toUpperCase(); + }, + x: function(t) { + return Math.round(t).toString(16); + } + }, + Mu = function(t) { + return t; + }, + Lu = Array.prototype.map, + ju = [ + 'y', + 'z', + 'a', + 'f', + 'p', + 'n', + 'µ', + 'm', + '', + 'k', + 'M', + 'G', + 'T', + 'P', + 'E', + 'Z', + 'Y' + ], + Du = function(t) { + var e, + n, + r = + void 0 === t.grouping || void 0 === t.thousands + ? Mu + : ((e = Lu.call(t.grouping, Number)), + (n = t.thousands + ''), + function(t, r) { + for ( + var i = t.length, o = [], a = 0, s = e[0], u = 0; + i > 0 && + s > 0 && + (u + s + 1 > r && (s = Math.max(1, r - u)), + o.push(t.substring((i -= s), i + s)), + !((u += s + 1) > r)); + + ) + s = e[(a = (a + 1) % e.length)]; + return o.reverse().join(n); + }), + i = void 0 === t.currency ? '' : t.currency[0] + '', + o = void 0 === t.currency ? '' : t.currency[1] + '', + a = void 0 === t.decimal ? '.' : t.decimal + '', + s = + void 0 === t.numerals + ? Mu + : (function(t) { + return function(e) { + return e.replace(/[0-9]/g, function(e) { + return t[+e]; + }); + }; + })(Lu.call(t.numerals, String)), + u = void 0 === t.percent ? '%' : t.percent + '', + l = void 0 === t.minus ? '-' : t.minus + '', + c = void 0 === t.nan ? 'NaN' : t.nan + ''; + function f(t) { + var e = (t = wu(t)).fill, + n = t.align, + f = t.sign, + d = t.symbol, + h = t.zero, + p = t.width, + g = t.comma, + m = t.precision, + v = t.trim, + y = t.type; + 'n' === y + ? ((g = !0), (y = 'g')) + : Pu[y] || (void 0 === m && (m = 12), (v = !0), (y = 'g')), + (h || ('0' === e && '=' === n)) && + ((h = !0), (e = '0'), (n = '=')); + var b = + '$' === d + ? i + : '#' === d && /[boxX]/.test(y) + ? '0' + y.toLowerCase() + : '', + _ = '$' === d ? o : /[%p]/.test(y) ? u : '', + x = Pu[y], + w = /[defgprs%]/.test(y); + function S(t) { + var i, + o, + u, + d = b, + S = _; + if ('c' === y) (S = x(t) + S), (t = ''); + else { + var E = (t = +t) < 0; + if ( + ((t = isNaN(t) ? c : x(Math.abs(t), m)), + v && (t = Cu(t)), + E && 0 == +t && (E = !1), + (d = + (E + ? '(' === f + ? f + : l + : '-' === f || '(' === f + ? '' + : f) + d), + (S = + ('s' === y ? ju[8 + Eu / 3] : '') + + S + + (E && '(' === f ? ')' : '')), + w) + ) + for (i = -1, o = t.length; ++i < o; ) + if (48 > (u = t.charCodeAt(i)) || u > 57) { + (S = (46 === u ? a + t.slice(i + 1) : t.slice(i)) + S), + (t = t.slice(0, i)); + break; + } + } + g && !h && (t = r(t, 1 / 0)); + var k = d.length + t.length + S.length, + A = k < p ? new Array(p - k + 1).join(e) : ''; + switch ( + (g && + h && + ((t = r(A + t, A.length ? p - S.length : 1 / 0)), (A = '')), + n) + ) { + case '<': + t = d + t + S + A; + break; + case '=': + t = d + A + t + S; + break; + case '^': + t = A.slice(0, (k = A.length >> 1)) + d + t + S + A.slice(k); + break; + default: + t = A + d + t + S; + } + return s(t); + } + return ( + (m = + void 0 === m + ? 6 + : /[gprs]/.test(y) + ? Math.max(1, Math.min(21, m)) + : Math.max(0, Math.min(20, m))), + (S.toString = function() { + return t + ''; + }), + S + ); + } + return { + format: f, + formatPrefix: function(t, e) { + var n = f((((t = wu(t)).type = 'f'), t)), + r = 3 * Math.max(-8, Math.min(8, Math.floor(_u(e) / 3))), + i = Math.pow(10, -r), + o = ju[8 + r / 3]; + return function(t) { + return n(i * t) + o; + }; + } + }; + }; + function Ru(t) { + return (ku = Du(t)), (Au = ku.format), (Tu = ku.formatPrefix), ku; + } + Ru({ + decimal: '.', + thousands: ',', + grouping: [3], + currency: ['$', ''], + minus: '-' + }); + var zu = function(t) { + return Math.max(0, -_u(Math.abs(t))); + }, + Nu = function(t, e) { + return Math.max( + 0, + 3 * Math.max(-8, Math.min(8, Math.floor(_u(e) / 3))) - + _u(Math.abs(t)) + ); + }, + Iu = function(t, e) { + return ( + (t = Math.abs(t)), + (e = Math.abs(e) - t), + Math.max(0, _u(e) - _u(t)) + 1 + ); + }, + Fu = function() { + return new Vu(); + }; + function Vu() { + this.reset(); + } + Vu.prototype = { + constructor: Vu, + reset: function() { + this.s = this.t = 0; + }, + add: function(t) { + Gu(Bu, t, this.t), + Gu(this, Bu.s, this.s), + this.s ? (this.t += Bu.t) : (this.s = Bu.t); + }, + valueOf: function() { + return this.s; + } + }; + var Bu = new Vu(); + function Gu(t, e, n) { + var r = (t.s = e + n), + i = r - e, + o = r - i; + t.t = e - o + (n - i); + } + var Hu = 1e-6, + Uu = 1e-12, + qu = Math.PI, + Wu = qu / 2, + Xu = qu / 4, + Yu = 2 * qu, + $u = 180 / qu, + Ku = qu / 180, + Qu = Math.abs, + Zu = Math.atan, + Ju = Math.atan2, + tl = Math.cos, + el = Math.ceil, + nl = Math.exp, + rl = (Math.floor, Math.log), + il = Math.pow, + ol = Math.sin, + al = + Math.sign || + function(t) { + return t > 0 ? 1 : t < 0 ? -1 : 0; + }, + sl = Math.sqrt, + ul = Math.tan; + function ll(t) { + return t > 1 ? 0 : t < -1 ? qu : Math.acos(t); + } + function cl(t) { + return t > 1 ? Wu : t < -1 ? -Wu : Math.asin(t); + } + function fl(t) { + return (t = ol(t / 2)) * t; + } + function dl() {} + function hl(t, e) { + t && gl.hasOwnProperty(t.type) && gl[t.type](t, e); + } + var pl = { + Feature: function(t, e) { + hl(t.geometry, e); + }, + FeatureCollection: function(t, e) { + for (var n = t.features, r = -1, i = n.length; ++r < i; ) + hl(n[r].geometry, e); + } + }, + gl = { + Sphere: function(t, e) { + e.sphere(); + }, + Point: function(t, e) { + (t = t.coordinates), e.point(t[0], t[1], t[2]); + }, + MultiPoint: function(t, e) { + for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) + (t = n[r]), e.point(t[0], t[1], t[2]); + }, + LineString: function(t, e) { + ml(t.coordinates, e, 0); + }, + MultiLineString: function(t, e) { + for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) + ml(n[r], e, 0); + }, + Polygon: function(t, e) { + vl(t.coordinates, e); + }, + MultiPolygon: function(t, e) { + for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) + vl(n[r], e); + }, + GeometryCollection: function(t, e) { + for (var n = t.geometries, r = -1, i = n.length; ++r < i; ) + hl(n[r], e); + } + }; + function ml(t, e, n) { + var r, + i = -1, + o = t.length - n; + for (e.lineStart(); ++i < o; ) (r = t[i]), e.point(r[0], r[1], r[2]); + e.lineEnd(); + } + function vl(t, e) { + var n = -1, + r = t.length; + for (e.polygonStart(); ++n < r; ) ml(t[n], e, 1); + e.polygonEnd(); + } + var yl, + bl, + _l, + xl, + wl, + Sl = function(t, e) { + t && pl.hasOwnProperty(t.type) ? pl[t.type](t, e) : hl(t, e); + }, + El = Fu(), + kl = Fu(), + Al = { + point: dl, + lineStart: dl, + lineEnd: dl, + polygonStart: function() { + El.reset(), (Al.lineStart = Tl), (Al.lineEnd = Cl); + }, + polygonEnd: function() { + var t = +El; + kl.add(t < 0 ? Yu + t : t), + (this.lineStart = this.lineEnd = this.point = dl); + }, + sphere: function() { + kl.add(Yu); + } + }; + function Tl() { + Al.point = Ol; + } + function Cl() { + Pl(yl, bl); + } + function Ol(t, e) { + (Al.point = Pl), + (yl = t), + (bl = e), + (_l = t *= Ku), + (xl = tl((e = (e *= Ku) / 2 + Xu))), + (wl = ol(e)); + } + function Pl(t, e) { + var n = (t *= Ku) - _l, + r = n >= 0 ? 1 : -1, + i = r * n, + o = tl((e = (e *= Ku) / 2 + Xu)), + a = ol(e), + s = wl * a, + u = xl * o + s * tl(i), + l = s * r * ol(i); + El.add(Ju(l, u)), (_l = t), (xl = o), (wl = a); + } + var Ml = function(t) { + return kl.reset(), Sl(t, Al), 2 * kl; + }; + function Ll(t) { + return [Ju(t[1], t[0]), cl(t[2])]; + } + function jl(t) { + var e = t[0], + n = t[1], + r = tl(n); + return [r * tl(e), r * ol(e), ol(n)]; + } + function Dl(t, e) { + return t[0] * e[0] + t[1] * e[1] + t[2] * e[2]; + } + function Rl(t, e) { + return [ + t[1] * e[2] - t[2] * e[1], + t[2] * e[0] - t[0] * e[2], + t[0] * e[1] - t[1] * e[0] + ]; + } + function zl(t, e) { + (t[0] += e[0]), (t[1] += e[1]), (t[2] += e[2]); + } + function Nl(t, e) { + return [t[0] * e, t[1] * e, t[2] * e]; + } + function Il(t) { + var e = sl(t[0] * t[0] + t[1] * t[1] + t[2] * t[2]); + (t[0] /= e), (t[1] /= e), (t[2] /= e); + } + var Fl, + Vl, + Bl, + Gl, + Hl, + Ul, + ql, + Wl, + Xl, + Yl, + $l = Fu(), + Kl = { + point: Ql, + lineStart: Jl, + lineEnd: tc, + polygonStart: function() { + (Kl.point = ec), + (Kl.lineStart = nc), + (Kl.lineEnd = rc), + $l.reset(), + Al.polygonStart(); + }, + polygonEnd: function() { + Al.polygonEnd(), + (Kl.point = Ql), + (Kl.lineStart = Jl), + (Kl.lineEnd = tc), + El < 0 + ? ((Fl = -(Bl = 180)), (Vl = -(Gl = 90))) + : $l > Hu + ? (Gl = 90) + : $l < -Hu && (Vl = -90), + (Yl[0] = Fl), + (Yl[1] = Bl); + }, + sphere: function() { + (Fl = -(Bl = 180)), (Vl = -(Gl = 90)); + } + }; + function Ql(t, e) { + Xl.push((Yl = [(Fl = t), (Bl = t)])), + e < Vl && (Vl = e), + e > Gl && (Gl = e); + } + function Zl(t, e) { + var n = jl([t * Ku, e * Ku]); + if (Wl) { + var r = Rl(Wl, n), + i = Rl([r[1], -r[0], 0], r); + Il(i), (i = Ll(i)); + var o, + a = t - Hl, + s = a > 0 ? 1 : -1, + u = i[0] * $u * s, + l = Qu(a) > 180; + l ^ (s * Hl < u && u < s * t) + ? (o = i[1] * $u) > Gl && (Gl = o) + : l ^ (s * Hl < (u = ((u + 360) % 360) - 180) && u < s * t) + ? (o = -i[1] * $u) < Vl && (Vl = o) + : (e < Vl && (Vl = e), e > Gl && (Gl = e)), + l + ? t < Hl + ? ic(Fl, t) > ic(Fl, Bl) && (Bl = t) + : ic(t, Bl) > ic(Fl, Bl) && (Fl = t) + : Bl >= Fl + ? (t < Fl && (Fl = t), t > Bl && (Bl = t)) + : t > Hl + ? ic(Fl, t) > ic(Fl, Bl) && (Bl = t) + : ic(t, Bl) > ic(Fl, Bl) && (Fl = t); + } else Xl.push((Yl = [(Fl = t), (Bl = t)])); + e < Vl && (Vl = e), e > Gl && (Gl = e), (Wl = n), (Hl = t); + } + function Jl() { + Kl.point = Zl; + } + function tc() { + (Yl[0] = Fl), (Yl[1] = Bl), (Kl.point = Ql), (Wl = null); + } + function ec(t, e) { + if (Wl) { + var n = t - Hl; + $l.add(Qu(n) > 180 ? n + (n > 0 ? 360 : -360) : n); + } else (Ul = t), (ql = e); + Al.point(t, e), Zl(t, e); + } + function nc() { + Al.lineStart(); + } + function rc() { + ec(Ul, ql), + Al.lineEnd(), + Qu($l) > Hu && (Fl = -(Bl = 180)), + (Yl[0] = Fl), + (Yl[1] = Bl), + (Wl = null); + } + function ic(t, e) { + return (e -= t) < 0 ? e + 360 : e; + } + function oc(t, e) { + return t[0] - e[0]; + } + function ac(t, e) { + return t[0] <= t[1] ? t[0] <= e && e <= t[1] : e < t[0] || t[1] < e; + } + var sc, + uc, + lc, + cc, + fc, + dc, + hc, + pc, + gc, + mc, + vc, + yc, + bc, + _c, + xc, + wc, + Sc = function(t) { + var e, n, r, i, o, a, s; + if ( + ((Gl = Bl = -(Fl = Vl = 1 / 0)), + (Xl = []), + Sl(t, Kl), + (n = Xl.length)) + ) { + for (Xl.sort(oc), e = 1, o = [(r = Xl[0])]; e < n; ++e) + ac(r, (i = Xl[e])[0]) || ac(r, i[1]) + ? (ic(r[0], i[1]) > ic(r[0], r[1]) && (r[1] = i[1]), + ic(i[0], r[1]) > ic(r[0], r[1]) && (r[0] = i[0])) + : o.push((r = i)); + for ( + a = -1 / 0, e = 0, r = o[(n = o.length - 1)]; + e <= n; + r = i, ++e + ) + (i = o[e]), + (s = ic(r[1], i[0])) > a && ((a = s), (Fl = i[0]), (Bl = r[1])); + } + return ( + (Xl = Yl = null), + Fl === 1 / 0 || Vl === 1 / 0 + ? [[NaN, NaN], [NaN, NaN]] + : [[Fl, Vl], [Bl, Gl]] + ); + }, + Ec = { + sphere: dl, + point: kc, + lineStart: Tc, + lineEnd: Pc, + polygonStart: function() { + (Ec.lineStart = Mc), (Ec.lineEnd = Lc); + }, + polygonEnd: function() { + (Ec.lineStart = Tc), (Ec.lineEnd = Pc); + } + }; + function kc(t, e) { + t *= Ku; + var n = tl((e *= Ku)); + Ac(n * tl(t), n * ol(t), ol(e)); + } + function Ac(t, e, n) { + (lc += (t - lc) / ++sc), (cc += (e - cc) / sc), (fc += (n - fc) / sc); + } + function Tc() { + Ec.point = Cc; + } + function Cc(t, e) { + t *= Ku; + var n = tl((e *= Ku)); + (_c = n * tl(t)), + (xc = n * ol(t)), + (wc = ol(e)), + (Ec.point = Oc), + Ac(_c, xc, wc); + } + function Oc(t, e) { + t *= Ku; + var n = tl((e *= Ku)), + r = n * tl(t), + i = n * ol(t), + o = ol(e), + a = Ju( + sl( + (a = xc * o - wc * i) * a + + (a = wc * r - _c * o) * a + + (a = _c * i - xc * r) * a + ), + _c * r + xc * i + wc * o + ); + (uc += a), + (dc += a * (_c + (_c = r))), + (hc += a * (xc + (xc = i))), + (pc += a * (wc + (wc = o))), + Ac(_c, xc, wc); + } + function Pc() { + Ec.point = kc; + } + function Mc() { + Ec.point = jc; + } + function Lc() { + Dc(yc, bc), (Ec.point = kc); + } + function jc(t, e) { + (yc = t), (bc = e), (t *= Ku), (e *= Ku), (Ec.point = Dc); + var n = tl(e); + (_c = n * tl(t)), (xc = n * ol(t)), (wc = ol(e)), Ac(_c, xc, wc); + } + function Dc(t, e) { + t *= Ku; + var n = tl((e *= Ku)), + r = n * tl(t), + i = n * ol(t), + o = ol(e), + a = xc * o - wc * i, + s = wc * r - _c * o, + u = _c * i - xc * r, + l = sl(a * a + s * s + u * u), + c = cl(l), + f = l && -c / l; + (gc += f * a), + (mc += f * s), + (vc += f * u), + (uc += c), + (dc += c * (_c + (_c = r))), + (hc += c * (xc + (xc = i))), + (pc += c * (wc + (wc = o))), + Ac(_c, xc, wc); + } + var Rc = function(t) { + (sc = uc = lc = cc = fc = dc = hc = pc = gc = mc = vc = 0), Sl(t, Ec); + var e = gc, + n = mc, + r = vc, + i = e * e + n * n + r * r; + return i < Uu && + ((e = dc), + (n = hc), + (r = pc), + uc < Hu && ((e = lc), (n = cc), (r = fc)), + (i = e * e + n * n + r * r) < Uu) + ? [NaN, NaN] + : [Ju(n, e) * $u, cl(r / sl(i)) * $u]; + }, + zc = function(t) { + return function() { + return t; + }; + }, + Nc = function(t, e) { + function n(n, r) { + return (n = t(n, r)), e(n[0], n[1]); + } + return ( + t.invert && + e.invert && + (n.invert = function(n, r) { + return (n = e.invert(n, r)) && t.invert(n[0], n[1]); + }), + n + ); + }; + function Ic(t, e) { + return [Qu(t) > qu ? t + Math.round(-t / Yu) * Yu : t, e]; + } + function Fc(t, e, n) { + return (t %= Yu) + ? e || n + ? Nc(Bc(t), Gc(e, n)) + : Bc(t) + : e || n + ? Gc(e, n) + : Ic; + } + function Vc(t) { + return function(e, n) { + return [(e += t) > qu ? e - Yu : e < -qu ? e + Yu : e, n]; + }; + } + function Bc(t) { + var e = Vc(t); + return (e.invert = Vc(-t)), e; + } + function Gc(t, e) { + var n = tl(t), + r = ol(t), + i = tl(e), + o = ol(e); + function a(t, e) { + var a = tl(e), + s = tl(t) * a, + u = ol(t) * a, + l = ol(e), + c = l * n + s * r; + return [Ju(u * i - c * o, s * n - l * r), cl(c * i + u * o)]; + } + return ( + (a.invert = function(t, e) { + var a = tl(e), + s = tl(t) * a, + u = ol(t) * a, + l = ol(e), + c = l * i - u * o; + return [Ju(u * i + l * o, s * n + c * r), cl(c * n - s * r)]; + }), + a + ); + } + Ic.invert = Ic; + var Hc = function(t) { + function e(e) { + return ((e = t(e[0] * Ku, e[1] * Ku))[0] *= $u), (e[1] *= $u), e; + } + return ( + (t = Fc(t[0] * Ku, t[1] * Ku, t.length > 2 ? t[2] * Ku : 0)), + (e.invert = function(e) { + return ( + ((e = t.invert(e[0] * Ku, e[1] * Ku))[0] *= $u), (e[1] *= $u), e + ); + }), + e + ); + }; + function Uc(t, e, n, r, i, o) { + if (n) { + var a = tl(e), + s = ol(e), + u = r * n; + null == i + ? ((i = e + r * Yu), (o = e - u / 2)) + : ((i = qc(a, i)), + (o = qc(a, o)), + (r > 0 ? i < o : i > o) && (i += r * Yu)); + for (var l, c = i; r > 0 ? c > o : c < o; c -= u) + (l = Ll([a, -s * tl(c), -s * ol(c)])), t.point(l[0], l[1]); + } + } + function qc(t, e) { + ((e = jl(e))[0] -= t), Il(e); + var n = ll(-e[1]); + return ((-e[2] < 0 ? -n : n) + Yu - Hu) % Yu; + } + var Wc = function() { + var t, + e, + n = zc([0, 0]), + r = zc(90), + i = zc(6), + o = { + point: function(n, r) { + t.push((n = e(n, r))), (n[0] *= $u), (n[1] *= $u); + } + }; + function a() { + var a = n.apply(this, arguments), + s = r.apply(this, arguments) * Ku, + u = i.apply(this, arguments) * Ku; + return ( + (t = []), + (e = Fc(-a[0] * Ku, -a[1] * Ku, 0).invert), + Uc(o, s, u, 1), + (a = { type: 'Polygon', coordinates: [t] }), + (t = e = null), + a + ); + } + return ( + (a.center = function(t) { + return arguments.length + ? ((n = 'function' == typeof t ? t : zc([+t[0], +t[1]])), a) + : n; + }), + (a.radius = function(t) { + return arguments.length + ? ((r = 'function' == typeof t ? t : zc(+t)), a) + : r; + }), + (a.precision = function(t) { + return arguments.length + ? ((i = 'function' == typeof t ? t : zc(+t)), a) + : i; + }), + a + ); + }, + Xc = function() { + var t, + e = []; + return { + point: function(e, n) { + t.push([e, n]); + }, + lineStart: function() { + e.push((t = [])); + }, + lineEnd: dl, + rejoin: function() { + e.length > 1 && e.push(e.pop().concat(e.shift())); + }, + result: function() { + var n = e; + return (e = []), (t = null), n; + } + }; + }, + Yc = function(t, e) { + return Qu(t[0] - e[0]) < Hu && Qu(t[1] - e[1]) < Hu; + }; + function $c(t, e, n, r) { + (this.x = t), + (this.z = e), + (this.o = n), + (this.e = r), + (this.v = !1), + (this.n = this.p = null); + } + var Kc = function(t, e, n, r, i) { + var o, + a, + s = [], + u = []; + if ( + (t.forEach(function(t) { + if (!((e = t.length - 1) <= 0)) { + var e, + n, + r = t[0], + a = t[e]; + if (Yc(r, a)) { + for (i.lineStart(), o = 0; o < e; ++o) + i.point((r = t[o])[0], r[1]); + i.lineEnd(); + } else + s.push((n = new $c(r, t, null, !0))), + u.push((n.o = new $c(r, null, n, !1))), + s.push((n = new $c(a, t, null, !1))), + u.push((n.o = new $c(a, null, n, !0))); + } + }), + s.length) + ) { + for (u.sort(e), Qc(s), Qc(u), o = 0, a = u.length; o < a; ++o) + u[o].e = n = !n; + for (var l, c, f = s[0]; ; ) { + for (var d = f, h = !0; d.v; ) if ((d = d.n) === f) return; + (l = d.z), i.lineStart(); + do { + if (((d.v = d.o.v = !0), d.e)) { + if (h) + for (o = 0, a = l.length; o < a; ++o) + i.point((c = l[o])[0], c[1]); + else r(d.x, d.n.x, 1, i); + d = d.n; + } else { + if (h) + for (l = d.p.z, o = l.length - 1; o >= 0; --o) + i.point((c = l[o])[0], c[1]); + else r(d.x, d.p.x, -1, i); + d = d.p; + } + (l = (d = d.o).z), (h = !h); + } while (!d.v); + i.lineEnd(); + } + } + }; + function Qc(t) { + if ((e = t.length)) { + for (var e, n, r = 0, i = t[0]; ++r < e; ) + (i.n = n = t[r]), (n.p = i), (i = n); + (i.n = n = t[0]), (n.p = i); + } + } + var Zc = Fu(); + function Jc(t) { + return Qu(t[0]) <= qu ? t[0] : al(t[0]) * (((Qu(t[0]) + qu) % Yu) - qu); + } + var tf = function(t, e) { + var n = Jc(e), + r = e[1], + i = ol(r), + o = [ol(n), -tl(n), 0], + a = 0, + s = 0; + Zc.reset(), 1 === i ? (r = Wu + Hu) : -1 === i && (r = -Wu - Hu); + for (var u = 0, l = t.length; u < l; ++u) + if ((f = (c = t[u]).length)) + for ( + var c, + f, + d = c[f - 1], + h = Jc(d), + p = d[1] / 2 + Xu, + g = ol(p), + m = tl(p), + v = 0; + v < f; + ++v, h = b, g = x, m = w, d = y + ) { + var y = c[v], + b = Jc(y), + _ = y[1] / 2 + Xu, + x = ol(_), + w = tl(_), + S = b - h, + E = S >= 0 ? 1 : -1, + k = E * S, + A = k > qu, + T = g * x; + if ( + (Zc.add(Ju(T * E * ol(k), m * w + T * tl(k))), + (a += A ? S + E * Yu : S), + A ^ (h >= n) ^ (b >= n)) + ) { + var C = Rl(jl(d), jl(y)); + Il(C); + var O = Rl(o, C); + Il(O); + var P = (A ^ (S >= 0) ? -1 : 1) * cl(O[2]); + (r > P || (r === P && (C[0] || C[1]))) && + (s += A ^ (S >= 0) ? 1 : -1); + } + } + return (a < -Hu || (a < Hu && Zc < -Hu)) ^ (1 & s); + }, + ef = function(t, e, n, r) { + return function(i) { + var o, + a, + s, + u = e(i), + l = Xc(), + c = e(l), + f = !1, + d = { + point: h, + lineStart: g, + lineEnd: m, + polygonStart: function() { + (d.point = v), + (d.lineStart = y), + (d.lineEnd = b), + (a = []), + (o = []); + }, + polygonEnd: function() { + (d.point = h), (d.lineStart = g), (d.lineEnd = m), (a = N(a)); + var t = tf(o, r); + a.length + ? (f || (i.polygonStart(), (f = !0)), Kc(a, rf, t, n, i)) + : t && + (f || (i.polygonStart(), (f = !0)), + i.lineStart(), + n(null, null, 1, i), + i.lineEnd()), + f && (i.polygonEnd(), (f = !1)), + (a = o = null); + }, + sphere: function() { + i.polygonStart(), + i.lineStart(), + n(null, null, 1, i), + i.lineEnd(), + i.polygonEnd(); + } + }; + function h(e, n) { + t(e, n) && i.point(e, n); + } + function p(t, e) { + u.point(t, e); + } + function g() { + (d.point = p), u.lineStart(); + } + function m() { + (d.point = h), u.lineEnd(); + } + function v(t, e) { + s.push([t, e]), c.point(t, e); + } + function y() { + c.lineStart(), (s = []); + } + function b() { + v(s[0][0], s[0][1]), c.lineEnd(); + var t, + e, + n, + r, + u = c.clean(), + d = l.result(), + h = d.length; + if ((s.pop(), o.push(s), (s = null), h)) + if (1 & u) { + if ((e = (n = d[0]).length - 1) > 0) { + for ( + f || (i.polygonStart(), (f = !0)), i.lineStart(), t = 0; + t < e; + ++t + ) + i.point((r = n[t])[0], r[1]); + i.lineEnd(); + } + } else + h > 1 && 2 & u && d.push(d.pop().concat(d.shift())), + a.push(d.filter(nf)); + } + return d; + }; + }; + function nf(t) { + return t.length > 1; + } + function rf(t, e) { + return ( + ((t = t.x)[0] < 0 ? t[1] - Wu - Hu : Wu - t[1]) - + ((e = e.x)[0] < 0 ? e[1] - Wu - Hu : Wu - e[1]) + ); + } + var of = ef( + function() { + return !0; + }, + function(t) { + var e, + n = NaN, + r = NaN, + i = NaN; + return { + lineStart: function() { + t.lineStart(), (e = 1); + }, + point: function(o, a) { + var s = o > 0 ? qu : -qu, + u = Qu(o - n); + Qu(u - qu) < Hu + ? (t.point(n, (r = (r + a) / 2 > 0 ? Wu : -Wu)), + t.point(i, r), + t.lineEnd(), + t.lineStart(), + t.point(s, r), + t.point(o, r), + (e = 0)) + : i !== s && + u >= qu && + (Qu(n - i) < Hu && (n -= i * Hu), + Qu(o - s) < Hu && (o -= s * Hu), + (r = (function(t, e, n, r) { + var i, + o, + a = ol(t - n); + return Qu(a) > Hu + ? Zu( + (ol(e) * (o = tl(r)) * ol(n) - + ol(r) * (i = tl(e)) * ol(t)) / + (i * o * a) + ) + : (e + r) / 2; + })(n, r, o, a)), + t.point(i, r), + t.lineEnd(), + t.lineStart(), + t.point(s, r), + (e = 0)), + t.point((n = o), (r = a)), + (i = s); + }, + lineEnd: function() { + t.lineEnd(), (n = r = NaN); + }, + clean: function() { + return 2 - e; + } + }; + }, + function(t, e, n, r) { + var i; + if (null == t) + (i = n * Wu), + r.point(-qu, i), + r.point(0, i), + r.point(qu, i), + r.point(qu, 0), + r.point(qu, -i), + r.point(0, -i), + r.point(-qu, -i), + r.point(-qu, 0), + r.point(-qu, i); + else if (Qu(t[0] - e[0]) > Hu) { + var o = t[0] < e[0] ? qu : -qu; + (i = (n * o) / 2), r.point(-o, i), r.point(0, i), r.point(o, i); + } else r.point(e[0], e[1]); + }, + [-qu, -Wu] + ); + var af = function(t) { + var e = tl(t), + n = 6 * Ku, + r = e > 0, + i = Qu(e) > Hu; + function o(t, n) { + return tl(t) * tl(n) > e; + } + function a(t, n, r) { + var i = [1, 0, 0], + o = Rl(jl(t), jl(n)), + a = Dl(o, o), + s = o[0], + u = a - s * s; + if (!u) return !r && t; + var l = (e * a) / u, + c = (-e * s) / u, + f = Rl(i, o), + d = Nl(i, l); + zl(d, Nl(o, c)); + var h = f, + p = Dl(d, h), + g = Dl(h, h), + m = p * p - g * (Dl(d, d) - 1); + if (!(m < 0)) { + var v = sl(m), + y = Nl(h, (-p - v) / g); + if ((zl(y, d), (y = Ll(y)), !r)) return y; + var b, + _ = t[0], + x = n[0], + w = t[1], + S = n[1]; + x < _ && ((b = _), (_ = x), (x = b)); + var E = x - _, + k = Qu(E - qu) < Hu; + if ( + (!k && S < w && ((b = w), (w = S), (S = b)), + k || E < Hu + ? k + ? (w + S > 0) ^ (y[1] < (Qu(y[0] - _) < Hu ? w : S)) + : w <= y[1] && y[1] <= S + : (E > qu) ^ (_ <= y[0] && y[0] <= x)) + ) { + var A = Nl(h, (-p + v) / g); + return zl(A, d), [y, Ll(A)]; + } + } + } + function s(e, n) { + var i = r ? t : qu - t, + o = 0; + return ( + e < -i ? (o |= 1) : e > i && (o |= 2), + n < -i ? (o |= 4) : n > i && (o |= 8), + o + ); + } + return ef( + o, + function(t) { + var e, n, u, l, c; + return { + lineStart: function() { + (l = u = !1), (c = 1); + }, + point: function(f, d) { + var h, + p = [f, d], + g = o(f, d), + m = r + ? g + ? 0 + : s(f, d) + : g + ? s(f + (f < 0 ? qu : -qu), d) + : 0; + if ( + (!e && (l = u = g) && t.lineStart(), + g !== u && + (!(h = a(e, p)) || Yc(e, h) || Yc(p, h)) && + ((p[0] += Hu), (p[1] += Hu), (g = o(p[0], p[1]))), + g !== u) + ) + (c = 0), + g + ? (t.lineStart(), (h = a(p, e)), t.point(h[0], h[1])) + : ((h = a(e, p)), t.point(h[0], h[1]), t.lineEnd()), + (e = h); + else if (i && e && r ^ g) { + var v; + m & n || + !(v = a(p, e, !0)) || + ((c = 0), + r + ? (t.lineStart(), + t.point(v[0][0], v[0][1]), + t.point(v[1][0], v[1][1]), + t.lineEnd()) + : (t.point(v[1][0], v[1][1]), + t.lineEnd(), + t.lineStart(), + t.point(v[0][0], v[0][1]))); + } + !g || (e && Yc(e, p)) || t.point(p[0], p[1]), + (e = p), + (u = g), + (n = m); + }, + lineEnd: function() { + u && t.lineEnd(), (e = null); + }, + clean: function() { + return c | ((l && u) << 1); + } + }; + }, + function(e, r, i, o) { + Uc(o, t, n, i, e, r); + }, + r ? [0, -t] : [-qu, t - qu] + ); + }, + sf = function(t, e, n, r, i, o) { + var a, + s = t[0], + u = t[1], + l = 0, + c = 1, + f = e[0] - s, + d = e[1] - u; + if (((a = n - s), f || !(a > 0))) { + if (((a /= f), f < 0)) { + if (a < l) return; + a < c && (c = a); + } else if (f > 0) { + if (a > c) return; + a > l && (l = a); + } + if (((a = i - s), f || !(a < 0))) { + if (((a /= f), f < 0)) { + if (a > c) return; + a > l && (l = a); + } else if (f > 0) { + if (a < l) return; + a < c && (c = a); + } + if (((a = r - u), d || !(a > 0))) { + if (((a /= d), d < 0)) { + if (a < l) return; + a < c && (c = a); + } else if (d > 0) { + if (a > c) return; + a > l && (l = a); + } + if (((a = o - u), d || !(a < 0))) { + if (((a /= d), d < 0)) { + if (a > c) return; + a > l && (l = a); + } else if (d > 0) { + if (a < l) return; + a < c && (c = a); + } + return ( + l > 0 && ((t[0] = s + l * f), (t[1] = u + l * d)), + c < 1 && ((e[0] = s + c * f), (e[1] = u + c * d)), + !0 + ); + } + } + } + } + }, + uf = 1e9, + lf = -uf; + function cf(t, e, n, r) { + function i(i, o) { + return t <= i && i <= n && e <= o && o <= r; + } + function o(i, o, s, l) { + var c = 0, + f = 0; + if ( + null == i || + (c = a(i, s)) !== (f = a(o, s)) || + (u(i, o) < 0) ^ (s > 0) + ) + do { + l.point(0 === c || 3 === c ? t : n, c > 1 ? r : e); + } while ((c = (c + s + 4) % 4) !== f); + else l.point(o[0], o[1]); + } + function a(r, i) { + return Qu(r[0] - t) < Hu + ? i > 0 + ? 0 + : 3 + : Qu(r[0] - n) < Hu + ? i > 0 + ? 2 + : 1 + : Qu(r[1] - e) < Hu + ? i > 0 + ? 1 + : 0 + : i > 0 + ? 3 + : 2; + } + function s(t, e) { + return u(t.x, e.x); + } + function u(t, e) { + var n = a(t, 1), + r = a(e, 1); + return n !== r + ? n - r + : 0 === n + ? e[1] - t[1] + : 1 === n + ? t[0] - e[0] + : 2 === n + ? t[1] - e[1] + : e[0] - t[0]; + } + return function(a) { + var u, + l, + c, + f, + d, + h, + p, + g, + m, + v, + y, + b = a, + _ = Xc(), + x = { + point: w, + lineStart: function() { + (x.point = S), l && l.push((c = [])); + (v = !0), (m = !1), (p = g = NaN); + }, + lineEnd: function() { + u && (S(f, d), h && m && _.rejoin(), u.push(_.result())); + (x.point = w), m && b.lineEnd(); + }, + polygonStart: function() { + (b = _), (u = []), (l = []), (y = !0); + }, + polygonEnd: function() { + var e = (function() { + for (var e = 0, n = 0, i = l.length; n < i; ++n) + for ( + var o, + a, + s = l[n], + u = 1, + c = s.length, + f = s[0], + d = f[0], + h = f[1]; + u < c; + ++u + ) + (o = d), + (a = h), + (f = s[u]), + (d = f[0]), + (h = f[1]), + a <= r + ? h > r && + (d - o) * (r - a) > (h - a) * (t - o) && + ++e + : h <= r && + (d - o) * (r - a) < (h - a) * (t - o) && + --e; + return e; + })(), + n = y && e, + i = (u = N(u)).length; + (n || i) && + (a.polygonStart(), + n && (a.lineStart(), o(null, null, 1, a), a.lineEnd()), + i && Kc(u, s, e, o, a), + a.polygonEnd()); + (b = a), (u = l = c = null); + } + }; + function w(t, e) { + i(t, e) && b.point(t, e); + } + function S(o, a) { + var s = i(o, a); + if ((l && c.push([o, a]), v)) + (f = o), + (d = a), + (h = s), + (v = !1), + s && (b.lineStart(), b.point(o, a)); + else if (s && m) b.point(o, a); + else { + var u = [ + (p = Math.max(lf, Math.min(uf, p))), + (g = Math.max(lf, Math.min(uf, g))) + ], + _ = [ + (o = Math.max(lf, Math.min(uf, o))), + (a = Math.max(lf, Math.min(uf, a))) + ]; + sf(u, _, t, e, n, r) + ? (m || (b.lineStart(), b.point(u[0], u[1])), + b.point(_[0], _[1]), + s || b.lineEnd(), + (y = !1)) + : s && (b.lineStart(), b.point(o, a), (y = !1)); + } + (p = o), (g = a), (m = s); + } + return x; + }; + } + var ff, + df, + hf, + pf = function() { + var t, + e, + n, + r = 0, + i = 0, + o = 960, + a = 500; + return (n = { + stream: function(n) { + return t && e === n ? t : (t = cf(r, i, o, a)((e = n))); + }, + extent: function(s) { + return arguments.length + ? ((r = +s[0][0]), + (i = +s[0][1]), + (o = +s[1][0]), + (a = +s[1][1]), + (t = e = null), + n) + : [[r, i], [o, a]]; + } + }); + }, + gf = Fu(), + mf = { + sphere: dl, + point: dl, + lineStart: function() { + (mf.point = yf), (mf.lineEnd = vf); + }, + lineEnd: dl, + polygonStart: dl, + polygonEnd: dl + }; + function vf() { + mf.point = mf.lineEnd = dl; + } + function yf(t, e) { + (ff = t *= Ku), (df = ol((e *= Ku))), (hf = tl(e)), (mf.point = bf); + } + function bf(t, e) { + t *= Ku; + var n = ol((e *= Ku)), + r = tl(e), + i = Qu(t - ff), + o = tl(i), + a = r * ol(i), + s = hf * n - df * r * o, + u = df * n + hf * r * o; + gf.add(Ju(sl(a * a + s * s), u)), (ff = t), (df = n), (hf = r); + } + var _f = function(t) { + return gf.reset(), Sl(t, mf), +gf; + }, + xf = [null, null], + wf = { type: 'LineString', coordinates: xf }, + Sf = function(t, e) { + return (xf[0] = t), (xf[1] = e), _f(wf); + }, + Ef = { + Feature: function(t, e) { + return Af(t.geometry, e); + }, + FeatureCollection: function(t, e) { + for (var n = t.features, r = -1, i = n.length; ++r < i; ) + if (Af(n[r].geometry, e)) return !0; + return !1; + } + }, + kf = { + Sphere: function() { + return !0; + }, + Point: function(t, e) { + return Tf(t.coordinates, e); + }, + MultiPoint: function(t, e) { + for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) + if (Tf(n[r], e)) return !0; + return !1; + }, + LineString: function(t, e) { + return Cf(t.coordinates, e); + }, + MultiLineString: function(t, e) { + for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) + if (Cf(n[r], e)) return !0; + return !1; + }, + Polygon: function(t, e) { + return Of(t.coordinates, e); + }, + MultiPolygon: function(t, e) { + for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) + if (Of(n[r], e)) return !0; + return !1; + }, + GeometryCollection: function(t, e) { + for (var n = t.geometries, r = -1, i = n.length; ++r < i; ) + if (Af(n[r], e)) return !0; + return !1; + } + }; + function Af(t, e) { + return !(!t || !kf.hasOwnProperty(t.type)) && kf[t.type](t, e); + } + function Tf(t, e) { + return 0 === Sf(t, e); + } + function Cf(t, e) { + for (var n, r, i, o = 0, a = t.length; o < a; o++) { + if (0 === (r = Sf(t[o], e))) return !0; + if ( + o > 0 && + (i = Sf(t[o], t[o - 1])) > 0 && + n <= i && + r <= i && + (n + r - i) * (1 - Math.pow((n - r) / i, 2)) < Uu * i + ) + return !0; + n = r; + } + return !1; + } + function Of(t, e) { + return !!tf(t.map(Pf), Mf(e)); + } + function Pf(t) { + return (t = t.map(Mf)).pop(), t; + } + function Mf(t) { + return [t[0] * Ku, t[1] * Ku]; + } + var Lf = function(t, e) { + return (t && Ef.hasOwnProperty(t.type) ? Ef[t.type] : Af)(t, e); + }; + function jf(t, e, n) { + var r = w(t, e - Hu, n).concat(e); + return function(t) { + return r.map(function(e) { + return [t, e]; + }); + }; + } + function Df(t, e, n) { + var r = w(t, e - Hu, n).concat(e); + return function(t) { + return r.map(function(e) { + return [e, t]; + }); + }; + } + function Rf() { + var t, + e, + n, + r, + i, + o, + a, + s, + u, + l, + c, + f, + d = 10, + h = d, + p = 90, + g = 360, + m = 2.5; + function v() { + return { type: 'MultiLineString', coordinates: y() }; + } + function y() { + return w(el(r / p) * p, n, p) + .map(c) + .concat(w(el(s / g) * g, a, g).map(f)) + .concat( + w(el(e / d) * d, t, d) + .filter(function(t) { + return Qu(t % p) > Hu; + }) + .map(u) + ) + .concat( + w(el(o / h) * h, i, h) + .filter(function(t) { + return Qu(t % g) > Hu; + }) + .map(l) + ); + } + return ( + (v.lines = function() { + return y().map(function(t) { + return { type: 'LineString', coordinates: t }; + }); + }), + (v.outline = function() { + return { + type: 'Polygon', + coordinates: [ + c(r).concat( + f(a).slice(1), + c(n) + .reverse() + .slice(1), + f(s) + .reverse() + .slice(1) + ) + ] + }; + }), + (v.extent = function(t) { + return arguments.length + ? v.extentMajor(t).extentMinor(t) + : v.extentMinor(); + }), + (v.extentMajor = function(t) { + return arguments.length + ? ((r = +t[0][0]), + (n = +t[1][0]), + (s = +t[0][1]), + (a = +t[1][1]), + r > n && ((t = r), (r = n), (n = t)), + s > a && ((t = s), (s = a), (a = t)), + v.precision(m)) + : [[r, s], [n, a]]; + }), + (v.extentMinor = function(n) { + return arguments.length + ? ((e = +n[0][0]), + (t = +n[1][0]), + (o = +n[0][1]), + (i = +n[1][1]), + e > t && ((n = e), (e = t), (t = n)), + o > i && ((n = o), (o = i), (i = n)), + v.precision(m)) + : [[e, o], [t, i]]; + }), + (v.step = function(t) { + return arguments.length + ? v.stepMajor(t).stepMinor(t) + : v.stepMinor(); + }), + (v.stepMajor = function(t) { + return arguments.length ? ((p = +t[0]), (g = +t[1]), v) : [p, g]; + }), + (v.stepMinor = function(t) { + return arguments.length ? ((d = +t[0]), (h = +t[1]), v) : [d, h]; + }), + (v.precision = function(d) { + return arguments.length + ? ((m = +d), + (u = jf(o, i, 90)), + (l = Df(e, t, m)), + (c = jf(s, a, 90)), + (f = Df(r, n, m)), + v) + : m; + }), + v + .extentMajor([[-180, -90 + Hu], [180, 90 - Hu]]) + .extentMinor([[-180, -80 - Hu], [180, 80 + Hu]]) + ); + } + function zf() { + return Rf()(); + } + var Nf, + If, + Ff, + Vf, + Bf = function(t, e) { + var n = t[0] * Ku, + r = t[1] * Ku, + i = e[0] * Ku, + o = e[1] * Ku, + a = tl(r), + s = ol(r), + u = tl(o), + l = ol(o), + c = a * tl(n), + f = a * ol(n), + d = u * tl(i), + h = u * ol(i), + p = 2 * cl(sl(fl(o - r) + a * u * fl(i - n))), + g = ol(p), + m = p + ? function(t) { + var e = ol((t *= p)) / g, + n = ol(p - t) / g, + r = n * c + e * d, + i = n * f + e * h, + o = n * s + e * l; + return [Ju(i, r) * $u, Ju(o, sl(r * r + i * i)) * $u]; + } + : function() { + return [n * $u, r * $u]; + }; + return (m.distance = p), m; + }, + Gf = function(t) { + return t; + }, + Hf = Fu(), + Uf = Fu(), + qf = { + point: dl, + lineStart: dl, + lineEnd: dl, + polygonStart: function() { + (qf.lineStart = Wf), (qf.lineEnd = $f); + }, + polygonEnd: function() { + (qf.lineStart = qf.lineEnd = qf.point = dl), + Hf.add(Qu(Uf)), + Uf.reset(); + }, + result: function() { + var t = Hf / 2; + return Hf.reset(), t; + } + }; + function Wf() { + qf.point = Xf; + } + function Xf(t, e) { + (qf.point = Yf), (Nf = Ff = t), (If = Vf = e); + } + function Yf(t, e) { + Uf.add(Vf * t - Ff * e), (Ff = t), (Vf = e); + } + function $f() { + Yf(Nf, If); + } + var Kf = qf, + Qf = 1 / 0, + Zf = Qf, + Jf = -Qf, + td = Jf; + var ed, + nd, + rd, + id, + od = { + point: function(t, e) { + t < Qf && (Qf = t); + t > Jf && (Jf = t); + e < Zf && (Zf = e); + e > td && (td = e); + }, + lineStart: dl, + lineEnd: dl, + polygonStart: dl, + polygonEnd: dl, + result: function() { + var t = [[Qf, Zf], [Jf, td]]; + return (Jf = td = -(Zf = Qf = 1 / 0)), t; + } + }, + ad = 0, + sd = 0, + ud = 0, + ld = 0, + cd = 0, + fd = 0, + dd = 0, + hd = 0, + pd = 0, + gd = { + point: md, + lineStart: vd, + lineEnd: _d, + polygonStart: function() { + (gd.lineStart = xd), (gd.lineEnd = wd); + }, + polygonEnd: function() { + (gd.point = md), (gd.lineStart = vd), (gd.lineEnd = _d); + }, + result: function() { + var t = pd + ? [dd / pd, hd / pd] + : fd + ? [ld / fd, cd / fd] + : ud + ? [ad / ud, sd / ud] + : [NaN, NaN]; + return (ad = sd = ud = ld = cd = fd = dd = hd = pd = 0), t; + } + }; + function md(t, e) { + (ad += t), (sd += e), ++ud; + } + function vd() { + gd.point = yd; + } + function yd(t, e) { + (gd.point = bd), md((rd = t), (id = e)); + } + function bd(t, e) { + var n = t - rd, + r = e - id, + i = sl(n * n + r * r); + (ld += (i * (rd + t)) / 2), + (cd += (i * (id + e)) / 2), + (fd += i), + md((rd = t), (id = e)); + } + function _d() { + gd.point = md; + } + function xd() { + gd.point = Sd; + } + function wd() { + Ed(ed, nd); + } + function Sd(t, e) { + (gd.point = Ed), md((ed = rd = t), (nd = id = e)); + } + function Ed(t, e) { + var n = t - rd, + r = e - id, + i = sl(n * n + r * r); + (ld += (i * (rd + t)) / 2), + (cd += (i * (id + e)) / 2), + (fd += i), + (dd += (i = id * t - rd * e) * (rd + t)), + (hd += i * (id + e)), + (pd += 3 * i), + md((rd = t), (id = e)); + } + var kd = gd; + function Ad(t) { + this._context = t; + } + Ad.prototype = { + _radius: 4.5, + pointRadius: function(t) { + return (this._radius = t), this; + }, + polygonStart: function() { + this._line = 0; + }, + polygonEnd: function() { + this._line = NaN; + }, + lineStart: function() { + this._point = 0; + }, + lineEnd: function() { + 0 === this._line && this._context.closePath(), (this._point = NaN); + }, + point: function(t, e) { + switch (this._point) { + case 0: + this._context.moveTo(t, e), (this._point = 1); + break; + case 1: + this._context.lineTo(t, e); + break; + default: + this._context.moveTo(t + this._radius, e), + this._context.arc(t, e, this._radius, 0, Yu); + } + }, + result: dl + }; + var Td, + Cd, + Od, + Pd, + Md, + Ld = Fu(), + jd = { + point: dl, + lineStart: function() { + jd.point = Dd; + }, + lineEnd: function() { + Td && Rd(Cd, Od), (jd.point = dl); + }, + polygonStart: function() { + Td = !0; + }, + polygonEnd: function() { + Td = null; + }, + result: function() { + var t = +Ld; + return Ld.reset(), t; + } + }; + function Dd(t, e) { + (jd.point = Rd), (Cd = Pd = t), (Od = Md = e); + } + function Rd(t, e) { + (Pd -= t), (Md -= e), Ld.add(sl(Pd * Pd + Md * Md)), (Pd = t), (Md = e); + } + var zd = jd; + function Nd() { + this._string = []; + } + function Id(t) { + return ( + 'm0,' + + t + + 'a' + + t + + ',' + + t + + ' 0 1,1 0,' + + -2 * t + + 'a' + + t + + ',' + + t + + ' 0 1,1 0,' + + 2 * t + + 'z' + ); + } + Nd.prototype = { + _radius: 4.5, + _circle: Id(4.5), + pointRadius: function(t) { + return ( + (t = +t) !== this._radius && + ((this._radius = t), (this._circle = null)), + this + ); + }, + polygonStart: function() { + this._line = 0; + }, + polygonEnd: function() { + this._line = NaN; + }, + lineStart: function() { + this._point = 0; + }, + lineEnd: function() { + 0 === this._line && this._string.push('Z'), (this._point = NaN); + }, + point: function(t, e) { + switch (this._point) { + case 0: + this._string.push('M', t, ',', e), (this._point = 1); + break; + case 1: + this._string.push('L', t, ',', e); + break; + default: + null == this._circle && (this._circle = Id(this._radius)), + this._string.push('M', t, ',', e, this._circle); + } + }, + result: function() { + if (this._string.length) { + var t = this._string.join(''); + return (this._string = []), t; + } + return null; + } + }; + var Fd = function(t, e) { + var n, + r, + i = 4.5; + function o(t) { + return ( + t && + ('function' == typeof i && + r.pointRadius(+i.apply(this, arguments)), + Sl(t, n(r))), + r.result() + ); + } + return ( + (o.area = function(t) { + return Sl(t, n(Kf)), Kf.result(); + }), + (o.measure = function(t) { + return Sl(t, n(zd)), zd.result(); + }), + (o.bounds = function(t) { + return Sl(t, n(od)), od.result(); + }), + (o.centroid = function(t) { + return Sl(t, n(kd)), kd.result(); + }), + (o.projection = function(e) { + return arguments.length + ? ((n = null == e ? ((t = null), Gf) : (t = e).stream), o) + : t; + }), + (o.context = function(t) { + return arguments.length + ? ((r = null == t ? ((e = null), new Nd()) : new Ad((e = t))), + 'function' != typeof i && r.pointRadius(i), + o) + : e; + }), + (o.pointRadius = function(t) { + return arguments.length + ? ((i = 'function' == typeof t ? t : (r.pointRadius(+t), +t)), + o) + : i; + }), + o.projection(t).context(e) + ); + }, + Vd = function(t) { + return { stream: Bd(t) }; + }; + function Bd(t) { + return function(e) { + var n = new Gd(); + for (var r in t) n[r] = t[r]; + return (n.stream = e), n; + }; + } + function Gd() {} + function Hd(t, e, n) { + var r = t.clipExtent && t.clipExtent(); + return ( + t.scale(150).translate([0, 0]), + null != r && t.clipExtent(null), + Sl(n, t.stream(od)), + e(od.result()), + null != r && t.clipExtent(r), + t + ); + } + function Ud(t, e, n) { + return Hd( + t, + function(n) { + var r = e[1][0] - e[0][0], + i = e[1][1] - e[0][1], + o = Math.min(r / (n[1][0] - n[0][0]), i / (n[1][1] - n[0][1])), + a = +e[0][0] + (r - o * (n[1][0] + n[0][0])) / 2, + s = +e[0][1] + (i - o * (n[1][1] + n[0][1])) / 2; + t.scale(150 * o).translate([a, s]); + }, + n + ); + } + function qd(t, e, n) { + return Ud(t, [[0, 0], e], n); + } + function Wd(t, e, n) { + return Hd( + t, + function(n) { + var r = +e, + i = r / (n[1][0] - n[0][0]), + o = (r - i * (n[1][0] + n[0][0])) / 2, + a = -i * n[0][1]; + t.scale(150 * i).translate([o, a]); + }, + n + ); + } + function Xd(t, e, n) { + return Hd( + t, + function(n) { + var r = +e, + i = r / (n[1][1] - n[0][1]), + o = -i * n[0][0], + a = (r - i * (n[1][1] + n[0][1])) / 2; + t.scale(150 * i).translate([o, a]); + }, + n + ); + } + Gd.prototype = { + constructor: Gd, + point: function(t, e) { + this.stream.point(t, e); + }, + sphere: function() { + this.stream.sphere(); + }, + lineStart: function() { + this.stream.lineStart(); + }, + lineEnd: function() { + this.stream.lineEnd(); + }, + polygonStart: function() { + this.stream.polygonStart(); + }, + polygonEnd: function() { + this.stream.polygonEnd(); + } + }; + var Yd = 16, + $d = tl(30 * Ku), + Kd = function(t, e) { + return +e + ? (function(t, e) { + function n(r, i, o, a, s, u, l, c, f, d, h, p, g, m) { + var v = l - r, + y = c - i, + b = v * v + y * y; + if (b > 4 * e && g--) { + var _ = a + d, + x = s + h, + w = u + p, + S = sl(_ * _ + x * x + w * w), + E = cl((w /= S)), + k = + Qu(Qu(w) - 1) < Hu || Qu(o - f) < Hu + ? (o + f) / 2 + : Ju(x, _), + A = t(k, E), + T = A[0], + C = A[1], + O = T - r, + P = C - i, + M = y * O - v * P; + ((M * M) / b > e || + Qu((v * O + y * P) / b - 0.5) > 0.3 || + a * d + s * h + u * p < $d) && + (n( + r, + i, + o, + a, + s, + u, + T, + C, + k, + (_ /= S), + (x /= S), + w, + g, + m + ), + m.point(T, C), + n(T, C, k, _, x, w, l, c, f, d, h, p, g, m)); + } + } + return function(e) { + var r, + i, + o, + a, + s, + u, + l, + c, + f, + d, + h, + p, + g = { + point: m, + lineStart: v, + lineEnd: b, + polygonStart: function() { + e.polygonStart(), (g.lineStart = _); + }, + polygonEnd: function() { + e.polygonEnd(), (g.lineStart = v); + } + }; + function m(n, r) { + (n = t(n, r)), e.point(n[0], n[1]); + } + function v() { + (c = NaN), (g.point = y), e.lineStart(); + } + function y(r, i) { + var o = jl([r, i]), + a = t(r, i); + n( + c, + f, + l, + d, + h, + p, + (c = a[0]), + (f = a[1]), + (l = r), + (d = o[0]), + (h = o[1]), + (p = o[2]), + Yd, + e + ), + e.point(c, f); + } + function b() { + (g.point = m), e.lineEnd(); + } + function _() { + v(), (g.point = x), (g.lineEnd = w); + } + function x(t, e) { + y((r = t), e), + (i = c), + (o = f), + (a = d), + (s = h), + (u = p), + (g.point = y); + } + function w() { + n(c, f, l, d, h, p, i, o, r, a, s, u, Yd, e), + (g.lineEnd = b), + b(); + } + return g; + }; + })(t, e) + : (function(t) { + return Bd({ + point: function(e, n) { + (e = t(e, n)), this.stream.point(e[0], e[1]); + } + }); + })(t); + }; + var Qd = Bd({ + point: function(t, e) { + this.stream.point(t * Ku, e * Ku); + } + }); + function Zd(t, e, n) { + function r(r, i) { + return [e + t * r, n - t * i]; + } + return ( + (r.invert = function(r, i) { + return [(r - e) / t, (n - i) / t]; + }), + r + ); + } + function Jd(t, e, n, r) { + var i = tl(r), + o = ol(r), + a = i * t, + s = o * t, + u = i / t, + l = o / t, + c = (o * n - i * e) / t, + f = (o * e + i * n) / t; + function d(t, r) { + return [a * t - s * r + e, n - s * t - a * r]; + } + return ( + (d.invert = function(t, e) { + return [u * t - l * e + c, f - l * t - u * e]; + }), + d + ); + } + function th(t) { + return eh(function() { + return t; + })(); + } + function eh(t) { + var e, + n, + r, + i, + o, + a, + s, + u, + l, + c, + f = 150, + d = 480, + h = 250, + p = 0, + g = 0, + m = 0, + v = 0, + y = 0, + b = 0, + _ = null, + x = of, + w = null, + S = Gf, + E = 0.5; + function k(t) { + return u(t[0] * Ku, t[1] * Ku); + } + function A(t) { + return (t = u.invert(t[0], t[1])) && [t[0] * $u, t[1] * $u]; + } + function T() { + var t = Jd(f, 0, 0, b).apply(null, e(p, g)), + r = (b ? Jd : Zd)(f, d - t[0], h - t[1], b); + return ( + (n = Fc(m, v, y)), + (s = Nc(e, r)), + (u = Nc(n, s)), + (a = Kd(s, E)), + C() + ); + } + function C() { + return (l = c = null), k; + } + return ( + (k.stream = function(t) { + return l && c === t + ? l + : (l = Qd( + (function(t) { + return Bd({ + point: function(e, n) { + var r = t(e, n); + return this.stream.point(r[0], r[1]); + } + }); + })(n)(x(a(S((c = t))))) + )); + }), + (k.preclip = function(t) { + return arguments.length ? ((x = t), (_ = void 0), C()) : x; + }), + (k.postclip = function(t) { + return arguments.length + ? ((S = t), (w = r = i = o = null), C()) + : S; + }), + (k.clipAngle = function(t) { + return arguments.length + ? ((x = +t ? af((_ = t * Ku)) : ((_ = null), of)), C()) + : _ * $u; + }), + (k.clipExtent = function(t) { + return arguments.length + ? ((S = + null == t + ? ((w = r = i = o = null), Gf) + : cf( + (w = +t[0][0]), + (r = +t[0][1]), + (i = +t[1][0]), + (o = +t[1][1]) + )), + C()) + : null == w + ? null + : [[w, r], [i, o]]; + }), + (k.scale = function(t) { + return arguments.length ? ((f = +t), T()) : f; + }), + (k.translate = function(t) { + return arguments.length ? ((d = +t[0]), (h = +t[1]), T()) : [d, h]; + }), + (k.center = function(t) { + return arguments.length + ? ((p = (t[0] % 360) * Ku), (g = (t[1] % 360) * Ku), T()) + : [p * $u, g * $u]; + }), + (k.rotate = function(t) { + return arguments.length + ? ((m = (t[0] % 360) * Ku), + (v = (t[1] % 360) * Ku), + (y = t.length > 2 ? (t[2] % 360) * Ku : 0), + T()) + : [m * $u, v * $u, y * $u]; + }), + (k.angle = function(t) { + return arguments.length ? ((b = (t % 360) * Ku), T()) : b * $u; + }), + (k.precision = function(t) { + return arguments.length ? ((a = Kd(s, (E = t * t))), C()) : sl(E); + }), + (k.fitExtent = function(t, e) { + return Ud(k, t, e); + }), + (k.fitSize = function(t, e) { + return qd(k, t, e); + }), + (k.fitWidth = function(t, e) { + return Wd(k, t, e); + }), + (k.fitHeight = function(t, e) { + return Xd(k, t, e); + }), + function() { + return ( + (e = t.apply(this, arguments)), (k.invert = e.invert && A), T() + ); + } + ); + } + function nh(t) { + var e = 0, + n = qu / 3, + r = eh(t), + i = r(e, n); + return ( + (i.parallels = function(t) { + return arguments.length + ? r((e = t[0] * Ku), (n = t[1] * Ku)) + : [e * $u, n * $u]; + }), + i + ); + } + function rh(t, e) { + var n = ol(t), + r = (n + ol(e)) / 2; + if (Qu(r) < Hu) + return (function(t) { + var e = tl(t); + function n(t, n) { + return [t * e, ol(n) / e]; + } + return ( + (n.invert = function(t, n) { + return [t / e, cl(n * e)]; + }), + n + ); + })(t); + var i = 1 + n * (2 * r - n), + o = sl(i) / r; + function a(t, e) { + var n = sl(i - 2 * r * ol(e)) / r; + return [n * ol((t *= r)), o - n * tl(t)]; + } + return ( + (a.invert = function(t, e) { + var n = o - e; + return [ + (Ju(t, Qu(n)) / r) * al(n), + cl((i - (t * t + n * n) * r * r) / (2 * r)) + ]; + }), + a + ); + } + var ih = function() { + return nh(rh) + .scale(155.424) + .center([0, 33.6442]); + }, + oh = function() { + return ih() + .parallels([29.5, 45.5]) + .scale(1070) + .translate([480, 250]) + .rotate([96, 0]) + .center([-0.6, 38.7]); + }; + var ah = function() { + var t, + e, + n, + r, + i, + o, + a = oh(), + s = ih() + .rotate([154, 0]) + .center([-2, 58.5]) + .parallels([55, 65]), + u = ih() + .rotate([157, 0]) + .center([-3, 19.9]) + .parallels([8, 18]), + l = { + point: function(t, e) { + o = [t, e]; + } + }; + function c(t) { + var e = t[0], + a = t[1]; + return ( + (o = null), + n.point(e, a), + o || (r.point(e, a), o) || (i.point(e, a), o) + ); + } + function f() { + return (t = e = null), c; + } + return ( + (c.invert = function(t) { + var e = a.scale(), + n = a.translate(), + r = (t[0] - n[0]) / e, + i = (t[1] - n[1]) / e; + return (i >= 0.12 && i < 0.234 && r >= -0.425 && r < -0.214 + ? s + : i >= 0.166 && i < 0.234 && r >= -0.214 && r < -0.115 + ? u + : a + ).invert(t); + }), + (c.stream = function(n) { + return t && e === n + ? t + : ((r = [a.stream((e = n)), s.stream(n), u.stream(n)]), + (i = r.length), + (t = { + point: function(t, e) { + for (var n = -1; ++n < i; ) r[n].point(t, e); + }, + sphere: function() { + for (var t = -1; ++t < i; ) r[t].sphere(); + }, + lineStart: function() { + for (var t = -1; ++t < i; ) r[t].lineStart(); + }, + lineEnd: function() { + for (var t = -1; ++t < i; ) r[t].lineEnd(); + }, + polygonStart: function() { + for (var t = -1; ++t < i; ) r[t].polygonStart(); + }, + polygonEnd: function() { + for (var t = -1; ++t < i; ) r[t].polygonEnd(); + } + })); + var r, i; + }), + (c.precision = function(t) { + return arguments.length + ? (a.precision(t), s.precision(t), u.precision(t), f()) + : a.precision(); + }), + (c.scale = function(t) { + return arguments.length + ? (a.scale(t), + s.scale(0.35 * t), + u.scale(t), + c.translate(a.translate())) + : a.scale(); + }), + (c.translate = function(t) { + if (!arguments.length) return a.translate(); + var e = a.scale(), + o = +t[0], + c = +t[1]; + return ( + (n = a + .translate(t) + .clipExtent([ + [o - 0.455 * e, c - 0.238 * e], + [o + 0.455 * e, c + 0.238 * e] + ]) + .stream(l)), + (r = s + .translate([o - 0.307 * e, c + 0.201 * e]) + .clipExtent([ + [o - 0.425 * e + Hu, c + 0.12 * e + Hu], + [o - 0.214 * e - Hu, c + 0.234 * e - Hu] + ]) + .stream(l)), + (i = u + .translate([o - 0.205 * e, c + 0.212 * e]) + .clipExtent([ + [o - 0.214 * e + Hu, c + 0.166 * e + Hu], + [o - 0.115 * e - Hu, c + 0.234 * e - Hu] + ]) + .stream(l)), + f() + ); + }), + (c.fitExtent = function(t, e) { + return Ud(c, t, e); + }), + (c.fitSize = function(t, e) { + return qd(c, t, e); + }), + (c.fitWidth = function(t, e) { + return Wd(c, t, e); + }), + (c.fitHeight = function(t, e) { + return Xd(c, t, e); + }), + c.scale(1070) + ); + }; + function sh(t) { + return function(e, n) { + var r = tl(e), + i = tl(n), + o = t(r * i); + return [o * i * ol(e), o * ol(n)]; + }; + } + function uh(t) { + return function(e, n) { + var r = sl(e * e + n * n), + i = t(r), + o = ol(i), + a = tl(i); + return [Ju(e * o, r * a), cl(r && (n * o) / r)]; + }; + } + var lh = sh(function(t) { + return sl(2 / (1 + t)); + }); + lh.invert = uh(function(t) { + return 2 * cl(t / 2); + }); + var ch = function() { + return th(lh) + .scale(124.75) + .clipAngle(179.999); + }, + fh = sh(function(t) { + return (t = ll(t)) && t / ol(t); + }); + fh.invert = uh(function(t) { + return t; + }); + var dh = function() { + return th(fh) + .scale(79.4188) + .clipAngle(179.999); + }; + function hh(t, e) { + return [t, rl(ul((Wu + e) / 2))]; + } + hh.invert = function(t, e) { + return [t, 2 * Zu(nl(e)) - Wu]; + }; + var ph = function() { + return gh(hh).scale(961 / Yu); + }; + function gh(t) { + var e, + n, + r, + i = th(t), + o = i.center, + a = i.scale, + s = i.translate, + u = i.clipExtent, + l = null; + function c() { + var o = qu * a(), + s = i(Hc(i.rotate()).invert([0, 0])); + return u( + null == l + ? [[s[0] - o, s[1] - o], [s[0] + o, s[1] + o]] + : t === hh + ? [[Math.max(s[0] - o, l), e], [Math.min(s[0] + o, n), r]] + : [[l, Math.max(s[1] - o, e)], [n, Math.min(s[1] + o, r)]] + ); + } + return ( + (i.scale = function(t) { + return arguments.length ? (a(t), c()) : a(); + }), + (i.translate = function(t) { + return arguments.length ? (s(t), c()) : s(); + }), + (i.center = function(t) { + return arguments.length ? (o(t), c()) : o(); + }), + (i.clipExtent = function(t) { + return arguments.length + ? (null == t + ? (l = e = n = r = null) + : ((l = +t[0][0]), + (e = +t[0][1]), + (n = +t[1][0]), + (r = +t[1][1])), + c()) + : null == l + ? null + : [[l, e], [n, r]]; + }), + c() + ); + } + function mh(t) { + return ul((Wu + t) / 2); + } + function vh(t, e) { + var n = tl(t), + r = t === e ? ol(t) : rl(n / tl(e)) / rl(mh(e) / mh(t)), + i = (n * il(mh(t), r)) / r; + if (!r) return hh; + function o(t, e) { + i > 0 ? e < -Wu + Hu && (e = -Wu + Hu) : e > Wu - Hu && (e = Wu - Hu); + var n = i / il(mh(e), r); + return [n * ol(r * t), i - n * tl(r * t)]; + } + return ( + (o.invert = function(t, e) { + var n = i - e, + o = al(r) * sl(t * t + n * n); + return [(Ju(t, Qu(n)) / r) * al(n), 2 * Zu(il(i / o, 1 / r)) - Wu]; + }), + o + ); + } + var yh = function() { + return nh(vh) + .scale(109.5) + .parallels([30, 30]); + }; + function bh(t, e) { + return [t, e]; + } + bh.invert = bh; + var _h = function() { + return th(bh).scale(152.63); + }; + function xh(t, e) { + var n = tl(t), + r = t === e ? ol(t) : (n - tl(e)) / (e - t), + i = n / r + t; + if (Qu(r) < Hu) return bh; + function o(t, e) { + var n = i - e, + o = r * t; + return [n * ol(o), i - n * tl(o)]; + } + return ( + (o.invert = function(t, e) { + var n = i - e; + return [(Ju(t, Qu(n)) / r) * al(n), i - al(r) * sl(t * t + n * n)]; + }), + o + ); + } + var wh = function() { + return nh(xh) + .scale(131.154) + .center([0, 13.9389]); + }, + Sh = 1.340264, + Eh = -0.081106, + kh = 893e-6, + Ah = 0.003796, + Th = sl(3) / 2; + function Ch(t, e) { + var n = cl(Th * ol(e)), + r = n * n, + i = r * r * r; + return [ + (t * tl(n)) / (Th * (Sh + 3 * Eh * r + i * (7 * kh + 9 * Ah * r))), + n * (Sh + Eh * r + i * (kh + Ah * r)) + ]; + } + Ch.invert = function(t, e) { + for ( + var n, r = e, i = r * r, o = i * i * i, a = 0; + a < 12 && + ((o = + (i = + (r -= n = + (r * (Sh + Eh * i + o * (kh + Ah * i)) - e) / + (Sh + 3 * Eh * i + o * (7 * kh + 9 * Ah * i))) * r) * + i * + i), + !(Qu(n) < Uu)); + ++a + ); + return [ + (Th * t * (Sh + 3 * Eh * i + o * (7 * kh + 9 * Ah * i))) / tl(r), + cl(ol(r) / Th) + ]; + }; + var Oh = function() { + return th(Ch).scale(177.158); + }; + function Ph(t, e) { + var n = tl(e), + r = tl(t) * n; + return [(n * ol(t)) / r, ol(e) / r]; + } + Ph.invert = uh(Zu); + var Mh = function() { + return th(Ph) + .scale(144.049) + .clipAngle(60); + }; + function Lh(t, e, n, r) { + return 1 === t && 1 === e && 0 === n && 0 === r + ? Gf + : Bd({ + point: function(i, o) { + this.stream.point(i * t + n, o * e + r); + } + }); + } + var jh = function() { + var t, + e, + n, + r, + i, + o, + a = 1, + s = 0, + u = 0, + l = 1, + c = 1, + f = Gf, + d = null, + h = Gf; + function p() { + return (r = i = null), o; + } + return (o = { + stream: function(t) { + return r && i === t ? r : (r = f(h((i = t)))); + }, + postclip: function(r) { + return arguments.length + ? ((h = r), (d = t = e = n = null), p()) + : h; + }, + clipExtent: function(r) { + return arguments.length + ? ((h = + null == r + ? ((d = t = e = n = null), Gf) + : cf( + (d = +r[0][0]), + (t = +r[0][1]), + (e = +r[1][0]), + (n = +r[1][1]) + )), + p()) + : null == d + ? null + : [[d, t], [e, n]]; + }, + scale: function(t) { + return arguments.length + ? ((f = Lh((a = +t) * l, a * c, s, u)), p()) + : a; + }, + translate: function(t) { + return arguments.length + ? ((f = Lh(a * l, a * c, (s = +t[0]), (u = +t[1]))), p()) + : [s, u]; + }, + reflectX: function(t) { + return arguments.length + ? ((f = Lh(a * (l = t ? -1 : 1), a * c, s, u)), p()) + : l < 0; + }, + reflectY: function(t) { + return arguments.length + ? ((f = Lh(a * l, a * (c = t ? -1 : 1), s, u)), p()) + : c < 0; + }, + fitExtent: function(t, e) { + return Ud(o, t, e); + }, + fitSize: function(t, e) { + return qd(o, t, e); + }, + fitWidth: function(t, e) { + return Wd(o, t, e); + }, + fitHeight: function(t, e) { + return Xd(o, t, e); + } + }); + }; + function Dh(t, e) { + var n = e * e, + r = n * n; + return [ + t * + (0.8707 - + 0.131979 * n + + r * (r * (0.003971 * n - 0.001529 * r) - 0.013791)), + e * + (1.007226 + + n * (0.015085 + r * (0.028874 * n - 0.044475 - 0.005916 * r))) + ]; + } + Dh.invert = function(t, e) { + var n, + r = e, + i = 25; + do { + var o = r * r, + a = o * o; + r -= n = + (r * + (1.007226 + + o * (0.015085 + a * (0.028874 * o - 0.044475 - 0.005916 * a))) - + e) / + (1.007226 + + o * + (0.045255 + a * (0.259866 * o - 0.311325 - 0.005916 * 11 * a))); + } while (Qu(n) > Hu && --i > 0); + return [ + t / + (0.8707 + + (o = r * r) * + (o * (o * o * o * (0.003971 - 0.001529 * o) - 0.013791) - + 0.131979)), + r + ]; + }; + var Rh = function() { + return th(Dh).scale(175.295); + }; + function zh(t, e) { + return [tl(e) * ol(t), ol(e)]; + } + zh.invert = uh(cl); + var Nh = function() { + return th(zh) + .scale(249.5) + .clipAngle(90 + Hu); + }; + function Ih(t, e) { + var n = tl(e), + r = 1 + tl(t) * n; + return [(n * ol(t)) / r, ol(e) / r]; + } + Ih.invert = uh(function(t) { + return 2 * Zu(t); + }); + var Fh = function() { + return th(Ih) + .scale(250) + .clipAngle(142); + }; + function Vh(t, e) { + return [rl(ul((Wu + e) / 2)), -t]; + } + Vh.invert = function(t, e) { + return [-e, 2 * Zu(nl(t)) - Wu]; + }; + var Bh = function() { + var t = gh(Vh), + e = t.center, + n = t.rotate; + return ( + (t.center = function(t) { + return arguments.length ? e([-t[1], t[0]]) : [(t = e())[1], -t[0]]; + }), + (t.rotate = function(t) { + return arguments.length + ? n([t[0], t[1], t.length > 2 ? t[2] + 90 : 90]) + : [(t = n())[0], t[1], t[2] - 90]; + }), + n([0, 0, 90]).scale(159.155) + ); + }; + function Gh(t, e) { + return t.parent === e.parent ? 1 : 2; + } + function Hh(t, e) { + return t + e.x; + } + function Uh(t, e) { + return Math.max(t, e.y); + } + var qh = function() { + var t = Gh, + e = 1, + n = 1, + r = !1; + function i(i) { + var o, + a = 0; + i.eachAfter(function(e) { + var n = e.children; + n + ? ((e.x = (function(t) { + return t.reduce(Hh, 0) / t.length; + })(n)), + (e.y = (function(t) { + return 1 + t.reduce(Uh, 0); + })(n))) + : ((e.x = o ? (a += t(e, o)) : 0), (e.y = 0), (o = e)); + }); + var s = (function(t) { + for (var e; (e = t.children); ) t = e[0]; + return t; + })(i), + u = (function(t) { + for (var e; (e = t.children); ) t = e[e.length - 1]; + return t; + })(i), + l = s.x - t(s, u) / 2, + c = u.x + t(u, s) / 2; + return i.eachAfter( + r + ? function(t) { + (t.x = (t.x - i.x) * e), (t.y = (i.y - t.y) * n); + } + : function(t) { + (t.x = ((t.x - l) / (c - l)) * e), + (t.y = (1 - (i.y ? t.y / i.y : 1)) * n); + } + ); + } + return ( + (i.separation = function(e) { + return arguments.length ? ((t = e), i) : t; + }), + (i.size = function(t) { + return arguments.length + ? ((r = !1), (e = +t[0]), (n = +t[1]), i) + : r + ? null + : [e, n]; + }), + (i.nodeSize = function(t) { + return arguments.length + ? ((r = !0), (e = +t[0]), (n = +t[1]), i) + : r + ? [e, n] + : null; + }), + i + ); + }; + function Wh(t) { + var e = 0, + n = t.children, + r = n && n.length; + if (r) for (; --r >= 0; ) e += n[r].value; + else e = 1; + t.value = e; + } + function Xh(t, e) { + var n, + r, + i, + o, + a, + s = new Qh(t), + u = +t.value && (s.value = t.value), + l = [s]; + for (null == e && (e = Yh); (n = l.pop()); ) + if ( + (u && (n.value = +n.data.value), (i = e(n.data)) && (a = i.length)) + ) + for (n.children = new Array(a), o = a - 1; o >= 0; --o) + l.push((r = n.children[o] = new Qh(i[o]))), + (r.parent = n), + (r.depth = n.depth + 1); + return s.eachBefore(Kh); + } + function Yh(t) { + return t.children; + } + function $h(t) { + t.data = t.data.data; + } + function Kh(t) { + var e = 0; + do { + t.height = e; + } while ((t = t.parent) && t.height < ++e); + } + function Qh(t) { + (this.data = t), (this.depth = this.height = 0), (this.parent = null); + } + Qh.prototype = Xh.prototype = { + constructor: Qh, + count: function() { + return this.eachAfter(Wh); + }, + each: function(t) { + var e, + n, + r, + i, + o = this, + a = [o]; + do { + for (e = a.reverse(), a = []; (o = e.pop()); ) + if ((t(o), (n = o.children))) + for (r = 0, i = n.length; r < i; ++r) a.push(n[r]); + } while (a.length); + return this; + }, + eachAfter: function(t) { + for (var e, n, r, i = this, o = [i], a = []; (i = o.pop()); ) + if ((a.push(i), (e = i.children))) + for (n = 0, r = e.length; n < r; ++n) o.push(e[n]); + for (; (i = a.pop()); ) t(i); + return this; + }, + eachBefore: function(t) { + for (var e, n, r = this, i = [r]; (r = i.pop()); ) + if ((t(r), (e = r.children))) + for (n = e.length - 1; n >= 0; --n) i.push(e[n]); + return this; + }, + sum: function(t) { + return this.eachAfter(function(e) { + for ( + var n = +t(e.data) || 0, r = e.children, i = r && r.length; + --i >= 0; + + ) + n += r[i].value; + e.value = n; + }); + }, + sort: function(t) { + return this.eachBefore(function(e) { + e.children && e.children.sort(t); + }); + }, + path: function(t) { + for ( + var e = this, + n = (function(t, e) { + if (t === e) return t; + var n = t.ancestors(), + r = e.ancestors(), + i = null; + (t = n.pop()), (e = r.pop()); + for (; t === e; ) (i = t), (t = n.pop()), (e = r.pop()); + return i; + })(e, t), + r = [e]; + e !== n; + + ) + (e = e.parent), r.push(e); + for (var i = r.length; t !== n; ) r.splice(i, 0, t), (t = t.parent); + return r; + }, + ancestors: function() { + for (var t = this, e = [t]; (t = t.parent); ) e.push(t); + return e; + }, + descendants: function() { + var t = []; + return ( + this.each(function(e) { + t.push(e); + }), + t + ); + }, + leaves: function() { + var t = []; + return ( + this.eachBefore(function(e) { + e.children || t.push(e); + }), + t + ); + }, + links: function() { + var t = this, + e = []; + return ( + t.each(function(n) { + n !== t && e.push({ source: n.parent, target: n }); + }), + e + ); + }, + copy: function() { + return Xh(this).eachBefore($h); + } + }; + var Zh = Array.prototype.slice; + var Jh = function(t) { + for ( + var e, + n, + r = 0, + i = (t = (function(t) { + for (var e, n, r = t.length; r; ) + (n = (Math.random() * r--) | 0), + (e = t[r]), + (t[r] = t[n]), + (t[n] = e); + return t; + })(Zh.call(t))).length, + o = []; + r < i; + + ) + (e = t[r]), n && np(n, e) ? ++r : ((n = ip((o = tp(o, e)))), (r = 0)); + return n; + }; + function tp(t, e) { + var n, r; + if (rp(e, t)) return [e]; + for (n = 0; n < t.length; ++n) + if (ep(e, t[n]) && rp(op(t[n], e), t)) return [t[n], e]; + for (n = 0; n < t.length - 1; ++n) + for (r = n + 1; r < t.length; ++r) + if ( + ep(op(t[n], t[r]), e) && + ep(op(t[n], e), t[r]) && + ep(op(t[r], e), t[n]) && + rp(ap(t[n], t[r], e), t) + ) + return [t[n], t[r], e]; + throw new Error(); + } + function ep(t, e) { + var n = t.r - e.r, + r = e.x - t.x, + i = e.y - t.y; + return n < 0 || n * n < r * r + i * i; + } + function np(t, e) { + var n = t.r - e.r + 1e-6, + r = e.x - t.x, + i = e.y - t.y; + return n > 0 && n * n > r * r + i * i; + } + function rp(t, e) { + for (var n = 0; n < e.length; ++n) if (!np(t, e[n])) return !1; + return !0; + } + function ip(t) { + switch (t.length) { + case 1: + return { x: (e = t[0]).x, y: e.y, r: e.r }; + case 2: + return op(t[0], t[1]); + case 3: + return ap(t[0], t[1], t[2]); + } + var e; + } + function op(t, e) { + var n = t.x, + r = t.y, + i = t.r, + o = e.x, + a = e.y, + s = e.r, + u = o - n, + l = a - r, + c = s - i, + f = Math.sqrt(u * u + l * l); + return { + x: (n + o + (u / f) * c) / 2, + y: (r + a + (l / f) * c) / 2, + r: (f + i + s) / 2 + }; + } + function ap(t, e, n) { + var r = t.x, + i = t.y, + o = t.r, + a = e.x, + s = e.y, + u = e.r, + l = n.x, + c = n.y, + f = n.r, + d = r - a, + h = r - l, + p = i - s, + g = i - c, + m = u - o, + v = f - o, + y = r * r + i * i - o * o, + b = y - a * a - s * s + u * u, + _ = y - l * l - c * c + f * f, + x = h * p - d * g, + w = (p * _ - g * b) / (2 * x) - r, + S = (g * m - p * v) / x, + E = (h * b - d * _) / (2 * x) - i, + k = (d * v - h * m) / x, + A = S * S + k * k - 1, + T = 2 * (o + w * S + E * k), + C = w * w + E * E - o * o, + O = -(A ? (T + Math.sqrt(T * T - 4 * A * C)) / (2 * A) : C / T); + return { x: r + w + S * O, y: i + E + k * O, r: O }; + } + function sp(t, e, n) { + var r, + i, + o, + a, + s = t.x - e.x, + u = t.y - e.y, + l = s * s + u * u; + l + ? ((i = e.r + n.r), + (i *= i), + (a = t.r + n.r), + i > (a *= a) + ? ((r = (l + a - i) / (2 * l)), + (o = Math.sqrt(Math.max(0, a / l - r * r))), + (n.x = t.x - r * s - o * u), + (n.y = t.y - r * u + o * s)) + : ((r = (l + i - a) / (2 * l)), + (o = Math.sqrt(Math.max(0, i / l - r * r))), + (n.x = e.x + r * s - o * u), + (n.y = e.y + r * u + o * s))) + : ((n.x = e.x + n.r), (n.y = e.y)); + } + function up(t, e) { + var n = t.r + e.r - 1e-6, + r = e.x - t.x, + i = e.y - t.y; + return n > 0 && n * n > r * r + i * i; + } + function lp(t) { + var e = t._, + n = t.next._, + r = e.r + n.r, + i = (e.x * n.r + n.x * e.r) / r, + o = (e.y * n.r + n.y * e.r) / r; + return i * i + o * o; + } + function cp(t) { + (this._ = t), (this.next = null), (this.previous = null); + } + function fp(t) { + if (!(i = t.length)) return 0; + var e, n, r, i, o, a, s, u, l, c, f; + if ((((e = t[0]).x = 0), (e.y = 0), !(i > 1))) return e.r; + if (((n = t[1]), (e.x = -n.r), (n.x = e.r), (n.y = 0), !(i > 2))) + return e.r + n.r; + sp(n, e, (r = t[2])), + (e = new cp(e)), + (n = new cp(n)), + (r = new cp(r)), + (e.next = r.previous = n), + (n.next = e.previous = r), + (r.next = n.previous = e); + t: for (s = 3; s < i; ++s) { + sp(e._, n._, (r = t[s])), + (r = new cp(r)), + (u = n.next), + (l = e.previous), + (c = n._.r), + (f = e._.r); + do { + if (c <= f) { + if (up(u._, r._)) { + (n = u), (e.next = n), (n.previous = e), --s; + continue t; + } + (c += u._.r), (u = u.next); + } else { + if (up(l._, r._)) { + ((e = l).next = n), (n.previous = e), --s; + continue t; + } + (f += l._.r), (l = l.previous); + } + } while (u !== l.next); + for ( + r.previous = e, r.next = n, e.next = n.previous = n = r, o = lp(e); + (r = r.next) !== n; + + ) + (a = lp(r)) < o && ((e = r), (o = a)); + n = e.next; + } + for (e = [n._], r = n; (r = r.next) !== n; ) e.push(r._); + for (r = Jh(e), s = 0; s < i; ++s) ((e = t[s]).x -= r.x), (e.y -= r.y); + return r.r; + } + var dp = function(t) { + return fp(t), t; + }; + function hp(t) { + return null == t ? null : pp(t); + } + function pp(t) { + if ('function' != typeof t) throw new Error(); + return t; + } + function gp() { + return 0; + } + var mp = function(t) { + return function() { + return t; + }; + }; + function vp(t) { + return Math.sqrt(t.value); + } + var yp = function() { + var t = null, + e = 1, + n = 1, + r = gp; + function i(i) { + return ( + (i.x = e / 2), + (i.y = n / 2), + t + ? i + .eachBefore(bp(t)) + .eachAfter(_p(r, 0.5)) + .eachBefore(xp(1)) + : i + .eachBefore(bp(vp)) + .eachAfter(_p(gp, 1)) + .eachAfter(_p(r, i.r / Math.min(e, n))) + .eachBefore(xp(Math.min(e, n) / (2 * i.r))), + i + ); + } + return ( + (i.radius = function(e) { + return arguments.length ? ((t = hp(e)), i) : t; + }), + (i.size = function(t) { + return arguments.length ? ((e = +t[0]), (n = +t[1]), i) : [e, n]; + }), + (i.padding = function(t) { + return arguments.length + ? ((r = 'function' == typeof t ? t : mp(+t)), i) + : r; + }), + i + ); + }; + function bp(t) { + return function(e) { + e.children || (e.r = Math.max(0, +t(e) || 0)); + }; + } + function _p(t, e) { + return function(n) { + if ((r = n.children)) { + var r, + i, + o, + a = r.length, + s = t(n) * e || 0; + if (s) for (i = 0; i < a; ++i) r[i].r += s; + if (((o = fp(r)), s)) for (i = 0; i < a; ++i) r[i].r -= s; + n.r = o + s; + } + }; + } + function xp(t) { + return function(e) { + var n = e.parent; + (e.r *= t), n && ((e.x = n.x + t * e.x), (e.y = n.y + t * e.y)); + }; + } + var wp = function(t) { + (t.x0 = Math.round(t.x0)), + (t.y0 = Math.round(t.y0)), + (t.x1 = Math.round(t.x1)), + (t.y1 = Math.round(t.y1)); + }, + Sp = function(t, e, n, r, i) { + for ( + var o, + a = t.children, + s = -1, + u = a.length, + l = t.value && (r - e) / t.value; + ++s < u; + + ) + ((o = a[s]).y0 = n), + (o.y1 = i), + (o.x0 = e), + (o.x1 = e += o.value * l); + }, + Ep = function() { + var t = 1, + e = 1, + n = 0, + r = !1; + function i(i) { + var o = i.height + 1; + return ( + (i.x0 = i.y0 = n), + (i.x1 = t), + (i.y1 = e / o), + i.eachBefore( + (function(t, e) { + return function(r) { + r.children && + Sp( + r, + r.x0, + (t * (r.depth + 1)) / e, + r.x1, + (t * (r.depth + 2)) / e + ); + var i = r.x0, + o = r.y0, + a = r.x1 - n, + s = r.y1 - n; + a < i && (i = a = (i + a) / 2), + s < o && (o = s = (o + s) / 2), + (r.x0 = i), + (r.y0 = o), + (r.x1 = a), + (r.y1 = s); + }; + })(e, o) + ), + r && i.eachBefore(wp), + i + ); + } + return ( + (i.round = function(t) { + return arguments.length ? ((r = !!t), i) : r; + }), + (i.size = function(n) { + return arguments.length ? ((t = +n[0]), (e = +n[1]), i) : [t, e]; + }), + (i.padding = function(t) { + return arguments.length ? ((n = +t), i) : n; + }), + i + ); + }, + kp = '$', + Ap = { depth: -1 }, + Tp = {}; + function Cp(t) { + return t.id; + } + function Op(t) { + return t.parentId; + } + var Pp = function() { + var t = Cp, + e = Op; + function n(n) { + var r, + i, + o, + a, + s, + u, + l, + c = n.length, + f = new Array(c), + d = {}; + for (i = 0; i < c; ++i) + (r = n[i]), + (s = f[i] = new Qh(r)), + null != (u = t(r, i, n)) && + (u += '') && + (d[(l = kp + (s.id = u))] = l in d ? Tp : s); + for (i = 0; i < c; ++i) + if (((s = f[i]), null != (u = e(n[i], i, n)) && (u += ''))) { + if (!(a = d[kp + u])) throw new Error('missing: ' + u); + if (a === Tp) throw new Error('ambiguous: ' + u); + a.children ? a.children.push(s) : (a.children = [s]), + (s.parent = a); + } else { + if (o) throw new Error('multiple roots'); + o = s; + } + if (!o) throw new Error('no root'); + if ( + ((o.parent = Ap), + o + .eachBefore(function(t) { + (t.depth = t.parent.depth + 1), --c; + }) + .eachBefore(Kh), + (o.parent = null), + c > 0) + ) + throw new Error('cycle'); + return o; + } + return ( + (n.id = function(e) { + return arguments.length ? ((t = pp(e)), n) : t; + }), + (n.parentId = function(t) { + return arguments.length ? ((e = pp(t)), n) : e; + }), + n + ); + }; + function Mp(t, e) { + return t.parent === e.parent ? 1 : 2; + } + function Lp(t) { + var e = t.children; + return e ? e[0] : t.t; + } + function jp(t) { + var e = t.children; + return e ? e[e.length - 1] : t.t; + } + function Dp(t, e, n) { + var r = n / (e.i - t.i); + (e.c -= r), (e.s += n), (t.c += r), (e.z += n), (e.m += n); + } + function Rp(t, e, n) { + return t.a.parent === e.parent ? t.a : n; + } + function zp(t, e) { + (this._ = t), + (this.parent = null), + (this.children = null), + (this.A = null), + (this.a = this), + (this.z = 0), + (this.m = 0), + (this.c = 0), + (this.s = 0), + (this.t = null), + (this.i = e); + } + zp.prototype = Object.create(Qh.prototype); + var Np = function() { + var t = Mp, + e = 1, + n = 1, + r = null; + function i(i) { + var u = (function(t) { + for ( + var e, n, r, i, o, a = new zp(t, 0), s = [a]; + (e = s.pop()); + + ) + if ((r = e._.children)) + for ( + e.children = new Array((o = r.length)), i = o - 1; + i >= 0; + --i + ) + s.push((n = e.children[i] = new zp(r[i], i))), + (n.parent = e); + return ((a.parent = new zp(null, 0)).children = [a]), a; + })(i); + if ((u.eachAfter(o), (u.parent.m = -u.z), u.eachBefore(a), r)) + i.eachBefore(s); + else { + var l = i, + c = i, + f = i; + i.eachBefore(function(t) { + t.x < l.x && (l = t), + t.x > c.x && (c = t), + t.depth > f.depth && (f = t); + }); + var d = l === c ? 1 : t(l, c) / 2, + h = d - l.x, + p = e / (c.x + d + h), + g = n / (f.depth || 1); + i.eachBefore(function(t) { + (t.x = (t.x + h) * p), (t.y = t.depth * g); + }); + } + return i; + } + function o(e) { + var n = e.children, + r = e.parent.children, + i = e.i ? r[e.i - 1] : null; + if (n) { + !(function(t) { + for ( + var e, n = 0, r = 0, i = t.children, o = i.length; + --o >= 0; + + ) + ((e = i[o]).z += n), (e.m += n), (n += e.s + (r += e.c)); + })(e); + var o = (n[0].z + n[n.length - 1].z) / 2; + i ? ((e.z = i.z + t(e._, i._)), (e.m = e.z - o)) : (e.z = o); + } else i && (e.z = i.z + t(e._, i._)); + e.parent.A = (function(e, n, r) { + if (n) { + for ( + var i, + o = e, + a = e, + s = n, + u = o.parent.children[0], + l = o.m, + c = a.m, + f = s.m, + d = u.m; + (s = jp(s)), (o = Lp(o)), s && o; + + ) + (u = Lp(u)), + ((a = jp(a)).a = e), + (i = s.z + f - o.z - l + t(s._, o._)) > 0 && + (Dp(Rp(s, e, r), e, i), (l += i), (c += i)), + (f += s.m), + (l += o.m), + (d += u.m), + (c += a.m); + s && !jp(a) && ((a.t = s), (a.m += f - c)), + o && !Lp(u) && ((u.t = o), (u.m += l - d), (r = e)); + } + return r; + })(e, i, e.parent.A || r[0]); + } + function a(t) { + (t._.x = t.z + t.parent.m), (t.m += t.parent.m); + } + function s(t) { + (t.x *= e), (t.y = t.depth * n); + } + return ( + (i.separation = function(e) { + return arguments.length ? ((t = e), i) : t; + }), + (i.size = function(t) { + return arguments.length + ? ((r = !1), (e = +t[0]), (n = +t[1]), i) + : r + ? null + : [e, n]; + }), + (i.nodeSize = function(t) { + return arguments.length + ? ((r = !0), (e = +t[0]), (n = +t[1]), i) + : r + ? [e, n] + : null; + }), + i + ); + }, + Ip = function(t, e, n, r, i) { + for ( + var o, + a = t.children, + s = -1, + u = a.length, + l = t.value && (i - n) / t.value; + ++s < u; + + ) + ((o = a[s]).x0 = e), + (o.x1 = r), + (o.y0 = n), + (o.y1 = n += o.value * l); + }, + Fp = (1 + Math.sqrt(5)) / 2; + function Vp(t, e, n, r, i, o) { + for ( + var a, + s, + u, + l, + c, + f, + d, + h, + p, + g, + m, + v = [], + y = e.children, + b = 0, + _ = 0, + x = y.length, + w = e.value; + b < x; + + ) { + (u = i - n), (l = o - r); + do { + c = y[_++].value; + } while (!c && _ < x); + for ( + f = d = c, + m = c * c * (g = Math.max(l / u, u / l) / (w * t)), + p = Math.max(d / m, m / f); + _ < x; + ++_ + ) { + if ( + ((c += s = y[_].value), + s < f && (f = s), + s > d && (d = s), + (m = c * c * g), + (h = Math.max(d / m, m / f)) > p) + ) { + c -= s; + break; + } + p = h; + } + v.push((a = { value: c, dice: u < l, children: y.slice(b, _) })), + a.dice + ? Sp(a, n, r, i, w ? (r += (l * c) / w) : o) + : Ip(a, n, r, w ? (n += (u * c) / w) : i, o), + (w -= c), + (b = _); + } + return v; + } + var Bp = (function t(e) { + function n(t, n, r, i, o) { + Vp(e, t, n, r, i, o); + } + return ( + (n.ratio = function(e) { + return t((e = +e) > 1 ? e : 1); + }), + n + ); + })(Fp), + Gp = function() { + var t = Bp, + e = !1, + n = 1, + r = 1, + i = [0], + o = gp, + a = gp, + s = gp, + u = gp, + l = gp; + function c(t) { + return ( + (t.x0 = t.y0 = 0), + (t.x1 = n), + (t.y1 = r), + t.eachBefore(f), + (i = [0]), + e && t.eachBefore(wp), + t + ); + } + function f(e) { + var n = i[e.depth], + r = e.x0 + n, + c = e.y0 + n, + f = e.x1 - n, + d = e.y1 - n; + f < r && (r = f = (r + f) / 2), + d < c && (c = d = (c + d) / 2), + (e.x0 = r), + (e.y0 = c), + (e.x1 = f), + (e.y1 = d), + e.children && + ((n = i[e.depth + 1] = o(e) / 2), + (r += l(e) - n), + (c += a(e) - n), + (f -= s(e) - n) < r && (r = f = (r + f) / 2), + (d -= u(e) - n) < c && (c = d = (c + d) / 2), + t(e, r, c, f, d)); + } + return ( + (c.round = function(t) { + return arguments.length ? ((e = !!t), c) : e; + }), + (c.size = function(t) { + return arguments.length ? ((n = +t[0]), (r = +t[1]), c) : [n, r]; + }), + (c.tile = function(e) { + return arguments.length ? ((t = pp(e)), c) : t; + }), + (c.padding = function(t) { + return arguments.length + ? c.paddingInner(t).paddingOuter(t) + : c.paddingInner(); + }), + (c.paddingInner = function(t) { + return arguments.length + ? ((o = 'function' == typeof t ? t : mp(+t)), c) + : o; + }), + (c.paddingOuter = function(t) { + return arguments.length + ? c + .paddingTop(t) + .paddingRight(t) + .paddingBottom(t) + .paddingLeft(t) + : c.paddingTop(); + }), + (c.paddingTop = function(t) { + return arguments.length + ? ((a = 'function' == typeof t ? t : mp(+t)), c) + : a; + }), + (c.paddingRight = function(t) { + return arguments.length + ? ((s = 'function' == typeof t ? t : mp(+t)), c) + : s; + }), + (c.paddingBottom = function(t) { + return arguments.length + ? ((u = 'function' == typeof t ? t : mp(+t)), c) + : u; + }), + (c.paddingLeft = function(t) { + return arguments.length + ? ((l = 'function' == typeof t ? t : mp(+t)), c) + : l; + }), + c + ); + }, + Hp = function(t, e, n, r, i) { + var o, + a, + s = t.children, + u = s.length, + l = new Array(u + 1); + for (l[0] = a = o = 0; o < u; ++o) l[o + 1] = a += s[o].value; + !(function t(e, n, r, i, o, a, u) { + if (e >= n - 1) { + var c = s[e]; + return (c.x0 = i), (c.y0 = o), (c.x1 = a), void (c.y1 = u); + } + var f = l[e], + d = r / 2 + f, + h = e + 1, + p = n - 1; + for (; h < p; ) { + var g = (h + p) >>> 1; + l[g] < d ? (h = g + 1) : (p = g); + } + d - l[h - 1] < l[h] - d && e + 1 < h && --h; + var m = l[h] - f, + v = r - m; + if (a - i > u - o) { + var y = (i * v + a * m) / r; + t(e, h, m, i, o, y, u), t(h, n, v, y, o, a, u); + } else { + var b = (o * v + u * m) / r; + t(e, h, m, i, o, a, b), t(h, n, v, i, b, a, u); + } + })(0, u, t.value, e, n, r, i); + }, + Up = function(t, e, n, r, i) { + (1 & t.depth ? Ip : Sp)(t, e, n, r, i); + }, + qp = (function t(e) { + function n(t, n, r, i, o) { + if ((a = t._squarify) && a.ratio === e) + for ( + var a, s, u, l, c, f = -1, d = a.length, h = t.value; + ++f < d; + + ) { + for ( + u = (s = a[f]).children, l = s.value = 0, c = u.length; + l < c; + ++l + ) + s.value += u[l].value; + s.dice + ? Sp(s, n, r, i, (r += ((o - r) * s.value) / h)) + : Ip(s, n, r, (n += ((i - n) * s.value) / h), o), + (h -= s.value); + } + else (t._squarify = a = Vp(e, t, n, r, i, o)), (a.ratio = e); + } + return ( + (n.ratio = function(e) { + return t((e = +e) > 1 ? e : 1); + }), + n + ); + })(Fp), + Wp = function(t) { + var e = t.length; + return function(n) { + return t[Math.max(0, Math.min(e - 1, Math.floor(n * e)))]; + }; + }, + Xp = function(t, e) { + var n = gn(+t, +e); + return function(t) { + var e = n(t); + return e - 360 * Math.floor(e / 360); + }; + }, + Yp = function(t, e) { + return ( + (t = +t), + (e = +e), + function(n) { + return Math.round(t * (1 - n) + e * n); + } + ); + }, + $p = Math.SQRT2; + function Kp(t) { + return ((t = Math.exp(t)) + 1 / t) / 2; + } + var Qp = function(t, e) { + var n, + r, + i = t[0], + o = t[1], + a = t[2], + s = e[0], + u = e[1], + l = e[2], + c = s - i, + f = u - o, + d = c * c + f * f; + if (d < 1e-12) + (r = Math.log(l / a) / $p), + (n = function(t) { + return [i + t * c, o + t * f, a * Math.exp($p * t * r)]; + }); + else { + var h = Math.sqrt(d), + p = (l * l - a * a + 4 * d) / (2 * a * 2 * h), + g = (l * l - a * a - 4 * d) / (2 * l * 2 * h), + m = Math.log(Math.sqrt(p * p + 1) - p), + v = Math.log(Math.sqrt(g * g + 1) - g); + (r = (v - m) / $p), + (n = function(t) { + var e, + n = t * r, + s = Kp(m), + u = + (a / (2 * h)) * + (s * + ((e = $p * n + m), ((e = Math.exp(2 * e)) - 1) / (e + 1)) - + (function(t) { + return ((t = Math.exp(t)) - 1 / t) / 2; + })(m)); + return [i + u * c, o + u * f, (a * s) / Kp($p * n + m)]; + }); + } + return (n.duration = 1e3 * r), n; + }; + function Zp(t) { + return function(e, n) { + var r = t((e = sn(e)).h, (n = sn(n)).h), + i = vn(e.s, n.s), + o = vn(e.l, n.l), + a = vn(e.opacity, n.opacity); + return function(t) { + return ( + (e.h = r(t)), + (e.s = i(t)), + (e.l = o(t)), + (e.opacity = a(t)), + e + '' + ); + }; + }; + } + var Jp = Zp(gn), + tg = Zp(vn); + function eg(t, e) { + var n = vn((t = Po(t)).l, (e = Po(e)).l), + r = vn(t.a, e.a), + i = vn(t.b, e.b), + o = vn(t.opacity, e.opacity); + return function(e) { + return ( + (t.l = n(e)), (t.a = r(e)), (t.b = i(e)), (t.opacity = o(e)), t + '' + ); + }; + } + function ng(t) { + return function(e, n) { + var r = t((e = Io(e)).h, (n = Io(n)).h), + i = vn(e.c, n.c), + o = vn(e.l, n.l), + a = vn(e.opacity, n.opacity); + return function(t) { + return ( + (e.h = r(t)), + (e.c = i(t)), + (e.l = o(t)), + (e.opacity = a(t)), + e + '' + ); + }; + }; + } + var rg = ng(gn), + ig = ng(vn); + function og(t) { + return (function e(n) { + function r(e, r) { + var i = t((e = Xo(e)).h, (r = Xo(r)).h), + o = vn(e.s, r.s), + a = vn(e.l, r.l), + s = vn(e.opacity, r.opacity); + return function(t) { + return ( + (e.h = i(t)), + (e.s = o(t)), + (e.l = a(Math.pow(t, n))), + (e.opacity = s(t)), + e + '' + ); + }; + } + return (n = +n), (r.gamma = e), r; + })(1); + } + var ag = og(gn), + sg = og(vn); + function ug(t, e) { + for ( + var n = 0, r = e.length - 1, i = e[0], o = new Array(r < 0 ? 0 : r); + n < r; + + ) + o[n] = t(i, (i = e[++n])); + return function(t) { + var e = Math.max(0, Math.min(r - 1, Math.floor((t *= r)))); + return o[e](t - e); + }; + } + var lg = function(t, e) { + for (var n = new Array(e), r = 0; r < e; ++r) n[r] = t(r / (e - 1)); + return n; + }, + cg = function(t) { + for (var e, n = -1, r = t.length, i = t[r - 1], o = 0; ++n < r; ) + (e = i), (i = t[n]), (o += e[1] * i[0] - e[0] * i[1]); + return o / 2; + }, + fg = function(t) { + for ( + var e, n, r = -1, i = t.length, o = 0, a = 0, s = t[i - 1], u = 0; + ++r < i; + + ) + (e = s), + (s = t[r]), + (u += n = e[0] * s[1] - s[0] * e[1]), + (o += (e[0] + s[0]) * n), + (a += (e[1] + s[1]) * n); + return [o / (u *= 3), a / u]; + }, + dg = function(t, e, n) { + return (e[0] - t[0]) * (n[1] - t[1]) - (e[1] - t[1]) * (n[0] - t[0]); + }; + function hg(t, e) { + return t[0] - e[0] || t[1] - e[1]; + } + function pg(t) { + for (var e = t.length, n = [0, 1], r = 2, i = 2; i < e; ++i) { + for (; r > 1 && dg(t[n[r - 2]], t[n[r - 1]], t[i]) <= 0; ) --r; + n[r++] = i; + } + return n.slice(0, r); + } + var gg = function(t) { + if ((n = t.length) < 3) return null; + var e, + n, + r = new Array(n), + i = new Array(n); + for (e = 0; e < n; ++e) r[e] = [+t[e][0], +t[e][1], e]; + for (r.sort(hg), e = 0; e < n; ++e) i[e] = [r[e][0], -r[e][1]]; + var o = pg(r), + a = pg(i), + s = a[0] === o[0], + u = a[a.length - 1] === o[o.length - 1], + l = []; + for (e = o.length - 1; e >= 0; --e) l.push(t[r[o[e]][2]]); + for (e = +s; e < a.length - u; ++e) l.push(t[r[a[e]][2]]); + return l; + }, + mg = function(t, e) { + for ( + var n, + r, + i = t.length, + o = t[i - 1], + a = e[0], + s = e[1], + u = o[0], + l = o[1], + c = !1, + f = 0; + f < i; + ++f + ) + (n = (o = t[f])[0]), + (r = o[1]) > s != l > s && + a < ((u - n) * (s - r)) / (l - r) + n && + (c = !c), + (u = n), + (l = r); + return c; + }, + vg = function(t) { + for ( + var e, + n, + r = -1, + i = t.length, + o = t[i - 1], + a = o[0], + s = o[1], + u = 0; + ++r < i; + + ) + (e = a), + (n = s), + (e -= a = (o = t[r])[0]), + (n -= s = o[1]), + (u += Math.sqrt(e * e + n * n)); + return u; + }, + yg = function() { + return Math.random(); + }, + bg = (function t(e) { + function n(t, n) { + return ( + (t = null == t ? 0 : +t), + (n = null == n ? 1 : +n), + 1 === arguments.length ? ((n = t), (t = 0)) : (n -= t), + function() { + return e() * n + t; + } + ); + } + return (n.source = t), n; + })(yg), + _g = (function t(e) { + function n(t, n) { + var r, i; + return ( + (t = null == t ? 0 : +t), + (n = null == n ? 1 : +n), + function() { + var o; + if (null != r) (o = r), (r = null); + else + do { + (r = 2 * e() - 1), (o = 2 * e() - 1), (i = r * r + o * o); + } while (!i || i > 1); + return t + n * o * Math.sqrt((-2 * Math.log(i)) / i); + } + ); + } + return (n.source = t), n; + })(yg), + xg = (function t(e) { + function n() { + var t = _g.source(e).apply(this, arguments); + return function() { + return Math.exp(t()); + }; + } + return (n.source = t), n; + })(yg), + wg = (function t(e) { + function n(t) { + return function() { + for (var n = 0, r = 0; r < t; ++r) n += e(); + return n; + }; + } + return (n.source = t), n; + })(yg), + Sg = (function t(e) { + function n(t) { + var n = wg.source(e)(t); + return function() { + return n() / t; + }; + } + return (n.source = t), n; + })(yg), + Eg = (function t(e) { + function n(t) { + return function() { + return -Math.log(1 - e()) / t; + }; + } + return (n.source = t), n; + })(yg); + function kg(t, e) { + switch (arguments.length) { + case 0: + break; + case 1: + this.range(t); + break; + default: + this.range(e).domain(t); + } + return this; + } + function Ag(t, e) { + switch (arguments.length) { + case 0: + break; + case 1: + this.interpolator(t); + break; + default: + this.interpolator(e).domain(t); + } + return this; + } + var Tg = Array.prototype, + Cg = Tg.map, + Og = Tg.slice, + Pg = { name: 'implicit' }; + function Mg() { + var t = oo(), + e = [], + n = [], + r = Pg; + function i(i) { + var o = i + '', + a = t.get(o); + if (!a) { + if (r !== Pg) return r; + t.set(o, (a = e.push(i))); + } + return n[(a - 1) % n.length]; + } + return ( + (i.domain = function(n) { + if (!arguments.length) return e.slice(); + (e = []), (t = oo()); + for (var r, o, a = -1, s = n.length; ++a < s; ) + t.has((o = (r = n[a]) + '')) || t.set(o, e.push(r)); + return i; + }), + (i.range = function(t) { + return arguments.length ? ((n = Og.call(t)), i) : n.slice(); + }), + (i.unknown = function(t) { + return arguments.length ? ((r = t), i) : r; + }), + (i.copy = function() { + return Mg(e, n).unknown(r); + }), + kg.apply(i, arguments), + i + ); + } + function Lg() { + var t, + e, + n = Mg().unknown(void 0), + r = n.domain, + i = n.range, + o = [0, 1], + a = !1, + s = 0, + u = 0, + l = 0.5; + function c() { + var n = r().length, + c = o[1] < o[0], + f = o[c - 0], + d = o[1 - c]; + (t = (d - f) / Math.max(1, n - s + 2 * u)), + a && (t = Math.floor(t)), + (f += (d - f - t * (n - s)) * l), + (e = t * (1 - s)), + a && ((f = Math.round(f)), (e = Math.round(e))); + var h = w(n).map(function(e) { + return f + t * e; + }); + return i(c ? h.reverse() : h); + } + return ( + delete n.unknown, + (n.domain = function(t) { + return arguments.length ? (r(t), c()) : r(); + }), + (n.range = function(t) { + return arguments.length ? ((o = [+t[0], +t[1]]), c()) : o.slice(); + }), + (n.rangeRound = function(t) { + return (o = [+t[0], +t[1]]), (a = !0), c(); + }), + (n.bandwidth = function() { + return e; + }), + (n.step = function() { + return t; + }), + (n.round = function(t) { + return arguments.length ? ((a = !!t), c()) : a; + }), + (n.padding = function(t) { + return arguments.length ? ((s = Math.min(1, (u = +t))), c()) : s; + }), + (n.paddingInner = function(t) { + return arguments.length ? ((s = Math.min(1, t)), c()) : s; + }), + (n.paddingOuter = function(t) { + return arguments.length ? ((u = +t), c()) : u; + }), + (n.align = function(t) { + return arguments.length + ? ((l = Math.max(0, Math.min(1, t))), c()) + : l; + }), + (n.copy = function() { + return Lg(r(), o) + .round(a) + .paddingInner(s) + .paddingOuter(u) + .align(l); + }), + kg.apply(c(), arguments) + ); + } + function jg() { + return (function t(e) { + var n = e.copy; + return ( + (e.padding = e.paddingOuter), + delete e.paddingInner, + delete e.paddingOuter, + (e.copy = function() { + return t(n()); + }), + e + ); + })(Lg.apply(null, arguments).paddingInner(1)); + } + var Dg = function(t) { + return function() { + return t; + }; + }, + Rg = function(t) { + return +t; + }, + zg = [0, 1]; + function Ng(t) { + return t; + } + function Ig(t, e) { + return (e -= t = +t) + ? function(n) { + return (n - t) / e; + } + : Dg(isNaN(e) ? NaN : 0.5); + } + function Fg(t) { + var e, + n = t[0], + r = t[t.length - 1]; + return ( + n > r && ((e = n), (n = r), (r = e)), + function(t) { + return Math.max(n, Math.min(r, t)); + } + ); + } + function Vg(t, e, n) { + var r = t[0], + i = t[1], + o = e[0], + a = e[1]; + return ( + i < r + ? ((r = Ig(i, r)), (o = n(a, o))) + : ((r = Ig(r, i)), (o = n(o, a))), + function(t) { + return o(r(t)); + } + ); + } + function Bg(t, e, n) { + var r = Math.min(t.length, e.length) - 1, + i = new Array(r), + o = new Array(r), + a = -1; + for ( + t[r] < t[0] && ((t = t.slice().reverse()), (e = e.slice().reverse())); + ++a < r; + + ) + (i[a] = Ig(t[a], t[a + 1])), (o[a] = n(e[a], e[a + 1])); + return function(e) { + var n = u(t, e, 1, r) - 1; + return o[n](i[n](e)); + }; + } + function Gg(t, e) { + return e + .domain(t.domain()) + .range(t.range()) + .interpolate(t.interpolate()) + .clamp(t.clamp()) + .unknown(t.unknown()); + } + function Hg() { + var t, + e, + n, + r, + i, + o, + a = zg, + s = zg, + u = Dn, + l = Ng; + function c() { + return ( + (r = Math.min(a.length, s.length) > 2 ? Bg : Vg), (i = o = null), f + ); + } + function f(e) { + return isNaN((e = +e)) ? n : (i || (i = r(a.map(t), s, u)))(t(l(e))); + } + return ( + (f.invert = function(n) { + return l(e((o || (o = r(s, a.map(t), Tn)))(n))); + }), + (f.domain = function(t) { + return arguments.length + ? ((a = Cg.call(t, Rg)), l === Ng || (l = Fg(a)), c()) + : a.slice(); + }), + (f.range = function(t) { + return arguments.length ? ((s = Og.call(t)), c()) : s.slice(); + }), + (f.rangeRound = function(t) { + return (s = Og.call(t)), (u = Yp), c(); + }), + (f.clamp = function(t) { + return arguments.length ? ((l = t ? Fg(a) : Ng), f) : l !== Ng; + }), + (f.interpolate = function(t) { + return arguments.length ? ((u = t), c()) : u; + }), + (f.unknown = function(t) { + return arguments.length ? ((n = t), f) : n; + }), + function(n, r) { + return (t = n), (e = r), c(); + } + ); + } + function Ug(t, e) { + return Hg()(t, e); + } + var qg = function(t, e, n, r) { + var i, + o = C(t, e, n); + switch ((r = wu(null == r ? ',f' : r)).type) { + case 's': + var a = Math.max(Math.abs(t), Math.abs(e)); + return ( + null != r.precision || isNaN((i = Nu(o, a))) || (r.precision = i), + Tu(r, a) + ); + case '': + case 'e': + case 'g': + case 'p': + case 'r': + null != r.precision || + isNaN((i = Iu(o, Math.max(Math.abs(t), Math.abs(e))))) || + (r.precision = i - ('e' === r.type)); + break; + case 'f': + case '%': + null != r.precision || + isNaN((i = zu(o))) || + (r.precision = i - 2 * ('%' === r.type)); + } + return Au(r); + }; + function Wg(t) { + var e = t.domain; + return ( + (t.ticks = function(t) { + var n = e(); + return A(n[0], n[n.length - 1], null == t ? 10 : t); + }), + (t.tickFormat = function(t, n) { + var r = e(); + return qg(r[0], r[r.length - 1], null == t ? 10 : t, n); + }), + (t.nice = function(n) { + null == n && (n = 10); + var r, + i = e(), + o = 0, + a = i.length - 1, + s = i[o], + u = i[a]; + return ( + u < s && ((r = s), (s = u), (u = r), (r = o), (o = a), (a = r)), + (r = T(s, u, n)) > 0 + ? (r = T( + (s = Math.floor(s / r) * r), + (u = Math.ceil(u / r) * r), + n + )) + : r < 0 && + (r = T( + (s = Math.ceil(s * r) / r), + (u = Math.floor(u * r) / r), + n + )), + r > 0 + ? ((i[o] = Math.floor(s / r) * r), + (i[a] = Math.ceil(u / r) * r), + e(i)) + : r < 0 && + ((i[o] = Math.ceil(s * r) / r), + (i[a] = Math.floor(u * r) / r), + e(i)), + t + ); + }), + t + ); + } + function Xg() { + var t = Ug(Ng, Ng); + return ( + (t.copy = function() { + return Gg(t, Xg()); + }), + kg.apply(t, arguments), + Wg(t) + ); + } + function Yg(t) { + var e; + function n(t) { + return isNaN((t = +t)) ? e : t; + } + return ( + (n.invert = n), + (n.domain = n.range = function(e) { + return arguments.length ? ((t = Cg.call(e, Rg)), n) : t.slice(); + }), + (n.unknown = function(t) { + return arguments.length ? ((e = t), n) : e; + }), + (n.copy = function() { + return Yg(t).unknown(e); + }), + (t = arguments.length ? Cg.call(t, Rg) : [0, 1]), + Wg(n) + ); + } + var $g = function(t, e) { + var n, + r = 0, + i = (t = t.slice()).length - 1, + o = t[r], + a = t[i]; + return ( + a < o && ((n = r), (r = i), (i = n), (n = o), (o = a), (a = n)), + (t[r] = e.floor(o)), + (t[i] = e.ceil(a)), + t + ); + }; + function Kg(t) { + return Math.log(t); + } + function Qg(t) { + return Math.exp(t); + } + function Zg(t) { + return -Math.log(-t); + } + function Jg(t) { + return -Math.exp(-t); + } + function tm(t) { + return isFinite(t) ? +('1e' + t) : t < 0 ? 0 : t; + } + function em(t) { + return function(e) { + return -t(-e); + }; + } + function nm(t) { + var e, + n, + r = t(Kg, Qg), + i = r.domain, + o = 10; + function a() { + return ( + (e = (function(t) { + return t === Math.E + ? Math.log + : (10 === t && Math.log10) || + (2 === t && Math.log2) || + ((t = Math.log(t)), + function(e) { + return Math.log(e) / t; + }); + })(o)), + (n = (function(t) { + return 10 === t + ? tm + : t === Math.E + ? Math.exp + : function(e) { + return Math.pow(t, e); + }; + })(o)), + i()[0] < 0 ? ((e = em(e)), (n = em(n)), t(Zg, Jg)) : t(Kg, Qg), + r + ); + } + return ( + (r.base = function(t) { + return arguments.length ? ((o = +t), a()) : o; + }), + (r.domain = function(t) { + return arguments.length ? (i(t), a()) : i(); + }), + (r.ticks = function(t) { + var r, + a = i(), + s = a[0], + u = a[a.length - 1]; + (r = u < s) && ((d = s), (s = u), (u = d)); + var l, + c, + f, + d = e(s), + h = e(u), + p = null == t ? 10 : +t, + g = []; + if (!(o % 1) && h - d < p) { + if (((d = Math.round(d) - 1), (h = Math.round(h) + 1), s > 0)) { + for (; d < h; ++d) + for (c = 1, l = n(d); c < o; ++c) + if (!((f = l * c) < s)) { + if (f > u) break; + g.push(f); + } + } else + for (; d < h; ++d) + for (c = o - 1, l = n(d); c >= 1; --c) + if (!((f = l * c) < s)) { + if (f > u) break; + g.push(f); + } + } else g = A(d, h, Math.min(h - d, p)).map(n); + return r ? g.reverse() : g; + }), + (r.tickFormat = function(t, i) { + if ( + (null == i && (i = 10 === o ? '.0e' : ','), + 'function' != typeof i && (i = Au(i)), + t === 1 / 0) + ) + return i; + null == t && (t = 10); + var a = Math.max(1, (o * t) / r.ticks().length); + return function(t) { + var r = t / n(Math.round(e(t))); + return r * o < o - 0.5 && (r *= o), r <= a ? i(t) : ''; + }; + }), + (r.nice = function() { + return i( + $g(i(), { + floor: function(t) { + return n(Math.floor(e(t))); + }, + ceil: function(t) { + return n(Math.ceil(e(t))); + } + }) + ); + }), + r + ); + } + function rm() { + var t = nm(Hg()).domain([1, 10]); + return ( + (t.copy = function() { + return Gg(t, rm()).base(t.base()); + }), + kg.apply(t, arguments), + t + ); + } + function im(t) { + return function(e) { + return Math.sign(e) * Math.log1p(Math.abs(e / t)); + }; + } + function om(t) { + return function(e) { + return Math.sign(e) * Math.expm1(Math.abs(e)) * t; + }; + } + function am(t) { + var e = 1, + n = t(im(e), om(e)); + return ( + (n.constant = function(n) { + return arguments.length ? t(im((e = +n)), om(e)) : e; + }), + Wg(n) + ); + } + function sm() { + var t = am(Hg()); + return ( + (t.copy = function() { + return Gg(t, sm()).constant(t.constant()); + }), + kg.apply(t, arguments) + ); + } + function um(t) { + return function(e) { + return e < 0 ? -Math.pow(-e, t) : Math.pow(e, t); + }; + } + function lm(t) { + return t < 0 ? -Math.sqrt(-t) : Math.sqrt(t); + } + function cm(t) { + return t < 0 ? -t * t : t * t; + } + function fm(t) { + var e = t(Ng, Ng), + n = 1; + function r() { + return 1 === n + ? t(Ng, Ng) + : 0.5 === n + ? t(lm, cm) + : t(um(n), um(1 / n)); + } + return ( + (e.exponent = function(t) { + return arguments.length ? ((n = +t), r()) : n; + }), + Wg(e) + ); + } + function dm() { + var t = fm(Hg()); + return ( + (t.copy = function() { + return Gg(t, dm()).exponent(t.exponent()); + }), + kg.apply(t, arguments), + t + ); + } + function hm() { + return dm.apply(null, arguments).exponent(0.5); + } + function pm() { + var t, + e = [], + n = [], + i = []; + function o() { + var t = 0, + r = Math.max(1, n.length); + for (i = new Array(r - 1); ++t < r; ) i[t - 1] = M(e, t / r); + return a; + } + function a(e) { + return isNaN((e = +e)) ? t : n[u(i, e)]; + } + return ( + (a.invertExtent = function(t) { + var r = n.indexOf(t); + return r < 0 + ? [NaN, NaN] + : [ + r > 0 ? i[r - 1] : e[0], + r < i.length ? i[r] : e[e.length - 1] + ]; + }), + (a.domain = function(t) { + if (!arguments.length) return e.slice(); + e = []; + for (var n, i = 0, a = t.length; i < a; ++i) + null == (n = t[i]) || isNaN((n = +n)) || e.push(n); + return e.sort(r), o(); + }), + (a.range = function(t) { + return arguments.length ? ((n = Og.call(t)), o()) : n.slice(); + }), + (a.unknown = function(e) { + return arguments.length ? ((t = e), a) : t; + }), + (a.quantiles = function() { + return i.slice(); + }), + (a.copy = function() { + return pm() + .domain(e) + .range(n) + .unknown(t); + }), + kg.apply(a, arguments) + ); + } + function gm() { + var t, + e = 0, + n = 1, + r = 1, + i = [0.5], + o = [0, 1]; + function a(e) { + return e <= e ? o[u(i, e, 0, r)] : t; + } + function s() { + var t = -1; + for (i = new Array(r); ++t < r; ) + i[t] = ((t + 1) * n - (t - r) * e) / (r + 1); + return a; + } + return ( + (a.domain = function(t) { + return arguments.length ? ((e = +t[0]), (n = +t[1]), s()) : [e, n]; + }), + (a.range = function(t) { + return arguments.length + ? ((r = (o = Og.call(t)).length - 1), s()) + : o.slice(); + }), + (a.invertExtent = function(t) { + var a = o.indexOf(t); + return a < 0 + ? [NaN, NaN] + : a < 1 + ? [e, i[0]] + : a >= r + ? [i[r - 1], n] + : [i[a - 1], i[a]]; + }), + (a.unknown = function(e) { + return arguments.length ? ((t = e), a) : a; + }), + (a.thresholds = function() { + return i.slice(); + }), + (a.copy = function() { + return gm() + .domain([e, n]) + .range(o) + .unknown(t); + }), + kg.apply(Wg(a), arguments) + ); + } + function mm() { + var t, + e = [0.5], + n = [0, 1], + r = 1; + function i(i) { + return i <= i ? n[u(e, i, 0, r)] : t; + } + return ( + (i.domain = function(t) { + return arguments.length + ? ((e = Og.call(t)), (r = Math.min(e.length, n.length - 1)), i) + : e.slice(); + }), + (i.range = function(t) { + return arguments.length + ? ((n = Og.call(t)), (r = Math.min(e.length, n.length - 1)), i) + : n.slice(); + }), + (i.invertExtent = function(t) { + var r = n.indexOf(t); + return [e[r - 1], e[r]]; + }), + (i.unknown = function(e) { + return arguments.length ? ((t = e), i) : t; + }), + (i.copy = function() { + return mm() + .domain(e) + .range(n) + .unknown(t); + }), + kg.apply(i, arguments) + ); + } + var vm = new Date(), + ym = new Date(); + function bm(t, e, n, r) { + function i(e) { + return t((e = 0 === arguments.length ? new Date() : new Date(+e))), e; + } + return ( + (i.floor = function(e) { + return t((e = new Date(+e))), e; + }), + (i.ceil = function(n) { + return t((n = new Date(n - 1))), e(n, 1), t(n), n; + }), + (i.round = function(t) { + var e = i(t), + n = i.ceil(t); + return t - e < n - t ? e : n; + }), + (i.offset = function(t, n) { + return e((t = new Date(+t)), null == n ? 1 : Math.floor(n)), t; + }), + (i.range = function(n, r, o) { + var a, + s = []; + if ( + ((n = i.ceil(n)), + (o = null == o ? 1 : Math.floor(o)), + !(n < r && o > 0)) + ) + return s; + do { + s.push((a = new Date(+n))), e(n, o), t(n); + } while (a < n && n < r); + return s; + }), + (i.filter = function(n) { + return bm( + function(e) { + if (e >= e) for (; t(e), !n(e); ) e.setTime(e - 1); + }, + function(t, r) { + if (t >= t) + if (r < 0) for (; ++r <= 0; ) for (; e(t, -1), !n(t); ); + else for (; --r >= 0; ) for (; e(t, 1), !n(t); ); + } + ); + }), + n && + ((i.count = function(e, r) { + return ( + vm.setTime(+e), + ym.setTime(+r), + t(vm), + t(ym), + Math.floor(n(vm, ym)) + ); + }), + (i.every = function(t) { + return ( + (t = Math.floor(t)), + isFinite(t) && t > 0 + ? t > 1 + ? i.filter( + r + ? function(e) { + return r(e) % t == 0; + } + : function(e) { + return i.count(0, e) % t == 0; + } + ) + : i + : null + ); + })), + i + ); + } + var _m = bm( + function(t) { + t.setMonth(0, 1), t.setHours(0, 0, 0, 0); + }, + function(t, e) { + t.setFullYear(t.getFullYear() + e); + }, + function(t, e) { + return e.getFullYear() - t.getFullYear(); + }, + function(t) { + return t.getFullYear(); + } + ); + _m.every = function(t) { + return isFinite((t = Math.floor(t))) && t > 0 + ? bm( + function(e) { + e.setFullYear(Math.floor(e.getFullYear() / t) * t), + e.setMonth(0, 1), + e.setHours(0, 0, 0, 0); + }, + function(e, n) { + e.setFullYear(e.getFullYear() + n * t); + } + ) + : null; + }; + var xm = _m, + wm = _m.range, + Sm = bm( + function(t) { + t.setDate(1), t.setHours(0, 0, 0, 0); + }, + function(t, e) { + t.setMonth(t.getMonth() + e); + }, + function(t, e) { + return ( + e.getMonth() - + t.getMonth() + + 12 * (e.getFullYear() - t.getFullYear()) + ); + }, + function(t) { + return t.getMonth(); + } + ), + Em = Sm, + km = Sm.range, + Am = 6e4, + Tm = 6048e5; + function Cm(t) { + return bm( + function(e) { + e.setDate(e.getDate() - ((e.getDay() + 7 - t) % 7)), + e.setHours(0, 0, 0, 0); + }, + function(t, e) { + t.setDate(t.getDate() + 7 * e); + }, + function(t, e) { + return ( + (e - t - (e.getTimezoneOffset() - t.getTimezoneOffset()) * Am) / + Tm + ); + } + ); + } + var Om = Cm(0), + Pm = Cm(1), + Mm = Cm(2), + Lm = Cm(3), + jm = Cm(4), + Dm = Cm(5), + Rm = Cm(6), + zm = Om.range, + Nm = Pm.range, + Im = Mm.range, + Fm = Lm.range, + Vm = jm.range, + Bm = Dm.range, + Gm = Rm.range, + Hm = bm( + function(t) { + t.setHours(0, 0, 0, 0); + }, + function(t, e) { + t.setDate(t.getDate() + e); + }, + function(t, e) { + return ( + (e - t - (e.getTimezoneOffset() - t.getTimezoneOffset()) * Am) / + 864e5 + ); + }, + function(t) { + return t.getDate() - 1; + } + ), + Um = Hm, + qm = Hm.range, + Wm = bm( + function(t) { + t.setTime( + t - + t.getMilliseconds() - + 1e3 * t.getSeconds() - + t.getMinutes() * Am + ); + }, + function(t, e) { + t.setTime(+t + 36e5 * e); + }, + function(t, e) { + return (e - t) / 36e5; + }, + function(t) { + return t.getHours(); + } + ), + Xm = Wm, + Ym = Wm.range, + $m = bm( + function(t) { + t.setTime(t - t.getMilliseconds() - 1e3 * t.getSeconds()); + }, + function(t, e) { + t.setTime(+t + e * Am); + }, + function(t, e) { + return (e - t) / Am; + }, + function(t) { + return t.getMinutes(); + } + ), + Km = $m, + Qm = $m.range, + Zm = bm( + function(t) { + t.setTime(t - t.getMilliseconds()); + }, + function(t, e) { + t.setTime(+t + 1e3 * e); + }, + function(t, e) { + return (e - t) / 1e3; + }, + function(t) { + return t.getUTCSeconds(); + } + ), + Jm = Zm, + tv = Zm.range, + ev = bm( + function() {}, + function(t, e) { + t.setTime(+t + e); + }, + function(t, e) { + return e - t; + } + ); + ev.every = function(t) { + return ( + (t = Math.floor(t)), + isFinite(t) && t > 0 + ? t > 1 + ? bm( + function(e) { + e.setTime(Math.floor(e / t) * t); + }, + function(e, n) { + e.setTime(+e + n * t); + }, + function(e, n) { + return (n - e) / t; + } + ) + : ev + : null + ); + }; + var nv = ev, + rv = ev.range; + function iv(t) { + return bm( + function(e) { + e.setUTCDate(e.getUTCDate() - ((e.getUTCDay() + 7 - t) % 7)), + e.setUTCHours(0, 0, 0, 0); + }, + function(t, e) { + t.setUTCDate(t.getUTCDate() + 7 * e); + }, + function(t, e) { + return (e - t) / Tm; + } + ); + } + var ov = iv(0), + av = iv(1), + sv = iv(2), + uv = iv(3), + lv = iv(4), + cv = iv(5), + fv = iv(6), + dv = ov.range, + hv = av.range, + pv = sv.range, + gv = uv.range, + mv = lv.range, + vv = cv.range, + yv = fv.range, + bv = bm( + function(t) { + t.setUTCHours(0, 0, 0, 0); + }, + function(t, e) { + t.setUTCDate(t.getUTCDate() + e); + }, + function(t, e) { + return (e - t) / 864e5; + }, + function(t) { + return t.getUTCDate() - 1; + } + ), + _v = bv, + xv = bv.range, + wv = bm( + function(t) { + t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0); + }, + function(t, e) { + t.setUTCFullYear(t.getUTCFullYear() + e); + }, + function(t, e) { + return e.getUTCFullYear() - t.getUTCFullYear(); + }, + function(t) { + return t.getUTCFullYear(); + } + ); + wv.every = function(t) { + return isFinite((t = Math.floor(t))) && t > 0 + ? bm( + function(e) { + e.setUTCFullYear(Math.floor(e.getUTCFullYear() / t) * t), + e.setUTCMonth(0, 1), + e.setUTCHours(0, 0, 0, 0); + }, + function(e, n) { + e.setUTCFullYear(e.getUTCFullYear() + n * t); + } + ) + : null; + }; + var Sv = wv, + Ev = wv.range; + function kv(t) { + if (0 <= t.y && t.y < 100) { + var e = new Date(-1, t.m, t.d, t.H, t.M, t.S, t.L); + return e.setFullYear(t.y), e; + } + return new Date(t.y, t.m, t.d, t.H, t.M, t.S, t.L); + } + function Av(t) { + if (0 <= t.y && t.y < 100) { + var e = new Date(Date.UTC(-1, t.m, t.d, t.H, t.M, t.S, t.L)); + return e.setUTCFullYear(t.y), e; + } + return new Date(Date.UTC(t.y, t.m, t.d, t.H, t.M, t.S, t.L)); + } + function Tv(t, e, n) { + return { y: t, m: e, d: n, H: 0, M: 0, S: 0, L: 0 }; + } + function Cv(t) { + var e = t.dateTime, + n = t.date, + r = t.time, + i = t.periods, + o = t.days, + a = t.shortDays, + s = t.months, + u = t.shortMonths, + l = Vv(i), + c = Bv(i), + f = Vv(o), + d = Bv(o), + h = Vv(a), + p = Bv(a), + g = Vv(s), + m = Bv(s), + v = Vv(u), + y = Bv(u), + b = { + a: function(t) { + return a[t.getDay()]; + }, + A: function(t) { + return o[t.getDay()]; + }, + b: function(t) { + return u[t.getMonth()]; + }, + B: function(t) { + return s[t.getMonth()]; + }, + c: null, + d: uy, + e: uy, + f: hy, + H: ly, + I: cy, + j: fy, + L: dy, + m: py, + M: gy, + p: function(t) { + return i[+(t.getHours() >= 12)]; + }, + q: function(t) { + return 1 + ~~(t.getMonth() / 3); + }, + Q: Hy, + s: Uy, + S: my, + u: vy, + U: yy, + V: by, + w: _y, + W: xy, + x: null, + X: null, + y: wy, + Y: Sy, + Z: Ey, + '%': Gy + }, + _ = { + a: function(t) { + return a[t.getUTCDay()]; + }, + A: function(t) { + return o[t.getUTCDay()]; + }, + b: function(t) { + return u[t.getUTCMonth()]; + }, + B: function(t) { + return s[t.getUTCMonth()]; + }, + c: null, + d: ky, + e: ky, + f: Py, + H: Ay, + I: Ty, + j: Cy, + L: Oy, + m: My, + M: Ly, + p: function(t) { + return i[+(t.getUTCHours() >= 12)]; + }, + q: function(t) { + return 1 + ~~(t.getUTCMonth() / 3); + }, + Q: Hy, + s: Uy, + S: jy, + u: Dy, + U: Ry, + V: zy, + w: Ny, + W: Iy, + x: null, + X: null, + y: Fy, + Y: Vy, + Z: By, + '%': Gy + }, + x = { + a: function(t, e, n) { + var r = h.exec(e.slice(n)); + return r ? ((t.w = p[r[0].toLowerCase()]), n + r[0].length) : -1; + }, + A: function(t, e, n) { + var r = f.exec(e.slice(n)); + return r ? ((t.w = d[r[0].toLowerCase()]), n + r[0].length) : -1; + }, + b: function(t, e, n) { + var r = v.exec(e.slice(n)); + return r ? ((t.m = y[r[0].toLowerCase()]), n + r[0].length) : -1; + }, + B: function(t, e, n) { + var r = g.exec(e.slice(n)); + return r ? ((t.m = m[r[0].toLowerCase()]), n + r[0].length) : -1; + }, + c: function(t, n, r) { + return E(t, e, n, r); + }, + d: Zv, + e: Zv, + f: iy, + H: ty, + I: ty, + j: Jv, + L: ry, + m: Qv, + M: ey, + p: function(t, e, n) { + var r = l.exec(e.slice(n)); + return r ? ((t.p = c[r[0].toLowerCase()]), n + r[0].length) : -1; + }, + q: Kv, + Q: ay, + s: sy, + S: ny, + u: Hv, + U: Uv, + V: qv, + w: Gv, + W: Wv, + x: function(t, e, r) { + return E(t, n, e, r); + }, + X: function(t, e, n) { + return E(t, r, e, n); + }, + y: Yv, + Y: Xv, + Z: $v, + '%': oy + }; + function w(t, e) { + return function(n) { + var r, + i, + o, + a = [], + s = -1, + u = 0, + l = t.length; + for (n instanceof Date || (n = new Date(+n)); ++s < l; ) + 37 === t.charCodeAt(s) && + (a.push(t.slice(u, s)), + null != (i = Dv[(r = t.charAt(++s))]) + ? (r = t.charAt(++s)) + : (i = 'e' === r ? ' ' : '0'), + (o = e[r]) && (r = o(n, i)), + a.push(r), + (u = s + 1)); + return a.push(t.slice(u, s)), a.join(''); + }; + } + function S(t, e) { + return function(n) { + var r, + i, + o = Tv(1900, void 0, 1); + if (E(o, t, (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 ( + (!e || '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 = Av(Tv(o.y, 0, 1))).getUTCDay()), + (r = i > 4 || 0 === i ? av.ceil(r) : av(r)), + (r = _v.offset(r, 7 * (o.V - 1))), + (o.y = r.getUTCFullYear()), + (o.m = r.getUTCMonth()), + (o.d = r.getUTCDate() + ((o.w + 6) % 7))) + : ((i = (r = kv(Tv(o.y, 0, 1))).getDay()), + (r = i > 4 || 0 === i ? Pm.ceil(r) : Pm(r)), + (r = Um.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 + ? Av(Tv(o.y, 0, 1)).getUTCDay() + : kv(Tv(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), Av(o)) + : kv(o); + }; + } + function E(t, e, n, r) { + for (var i, o, a = 0, s = e.length, u = n.length; a < s; ) { + if (r >= u) return -1; + if (37 === (i = e.charCodeAt(a++))) { + if ( + ((i = e.charAt(a++)), + !(o = x[i in Dv ? e.charAt(a++) : i]) || (r = o(t, n, r)) < 0) + ) + return -1; + } else if (i != n.charCodeAt(r++)) return -1; + } + return r; + } + return ( + (b.x = w(n, b)), + (b.X = w(r, b)), + (b.c = w(e, b)), + (_.x = w(n, _)), + (_.X = w(r, _)), + (_.c = w(e, _)), + { + format: function(t) { + var e = w((t += ''), b); + return ( + (e.toString = function() { + return t; + }), + e + ); + }, + parse: function(t) { + var e = S((t += ''), !1); + return ( + (e.toString = function() { + return t; + }), + e + ); + }, + utcFormat: function(t) { + var e = w((t += ''), _); + return ( + (e.toString = function() { + return t; + }), + e + ); + }, + utcParse: function(t) { + var e = S((t += ''), !0); + return ( + (e.toString = function() { + return t; + }), + e + ); + } + } + ); + } + var Ov, + Pv, + Mv, + Lv, + jv, + Dv = { '-': '', _: ' ', 0: '0' }, + Rv = /^\s*\d+/, + zv = /^%/, + Nv = /[\\^$*+?|[\]().{}]/g; + function Iv(t, e, n) { + var r = t < 0 ? '-' : '', + i = (r ? -t : t) + '', + o = i.length; + return r + (o < n ? new Array(n - o + 1).join(e) + i : i); + } + function Fv(t) { + return t.replace(Nv, '\\$&'); + } + function Vv(t) { + return new RegExp('^(?:' + t.map(Fv).join('|') + ')', 'i'); + } + function Bv(t) { + for (var e = {}, n = -1, r = t.length; ++n < r; ) + e[t[n].toLowerCase()] = n; + return e; + } + function Gv(t, e, n) { + var r = Rv.exec(e.slice(n, n + 1)); + return r ? ((t.w = +r[0]), n + r[0].length) : -1; + } + function Hv(t, e, n) { + var r = Rv.exec(e.slice(n, n + 1)); + return r ? ((t.u = +r[0]), n + r[0].length) : -1; + } + function Uv(t, e, n) { + var r = Rv.exec(e.slice(n, n + 2)); + return r ? ((t.U = +r[0]), n + r[0].length) : -1; + } + function qv(t, e, n) { + var r = Rv.exec(e.slice(n, n + 2)); + return r ? ((t.V = +r[0]), n + r[0].length) : -1; + } + function Wv(t, e, n) { + var r = Rv.exec(e.slice(n, n + 2)); + return r ? ((t.W = +r[0]), n + r[0].length) : -1; + } + function Xv(t, e, n) { + var r = Rv.exec(e.slice(n, n + 4)); + return r ? ((t.y = +r[0]), n + r[0].length) : -1; + } + function Yv(t, e, n) { + var r = Rv.exec(e.slice(n, n + 2)); + return r + ? ((t.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3)), n + r[0].length) + : -1; + } + function $v(t, e, n) { + var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n, n + 6)); + return r + ? ((t.Z = r[1] ? 0 : -(r[2] + (r[3] || '00'))), n + r[0].length) + : -1; + } + function Kv(t, e, n) { + var r = Rv.exec(e.slice(n, n + 1)); + return r ? ((t.q = 3 * r[0] - 3), n + r[0].length) : -1; + } + function Qv(t, e, n) { + var r = Rv.exec(e.slice(n, n + 2)); + return r ? ((t.m = r[0] - 1), n + r[0].length) : -1; + } + function Zv(t, e, n) { + var r = Rv.exec(e.slice(n, n + 2)); + return r ? ((t.d = +r[0]), n + r[0].length) : -1; + } + function Jv(t, e, n) { + var r = Rv.exec(e.slice(n, n + 3)); + return r ? ((t.m = 0), (t.d = +r[0]), n + r[0].length) : -1; + } + function ty(t, e, n) { + var r = Rv.exec(e.slice(n, n + 2)); + return r ? ((t.H = +r[0]), n + r[0].length) : -1; + } + function ey(t, e, n) { + var r = Rv.exec(e.slice(n, n + 2)); + return r ? ((t.M = +r[0]), n + r[0].length) : -1; + } + function ny(t, e, n) { + var r = Rv.exec(e.slice(n, n + 2)); + return r ? ((t.S = +r[0]), n + r[0].length) : -1; + } + function ry(t, e, n) { + var r = Rv.exec(e.slice(n, n + 3)); + return r ? ((t.L = +r[0]), n + r[0].length) : -1; + } + function iy(t, e, n) { + var r = Rv.exec(e.slice(n, n + 6)); + return r ? ((t.L = Math.floor(r[0] / 1e3)), n + r[0].length) : -1; + } + function oy(t, e, n) { + var r = zv.exec(e.slice(n, n + 1)); + return r ? n + r[0].length : -1; + } + function ay(t, e, n) { + var r = Rv.exec(e.slice(n)); + return r ? ((t.Q = +r[0]), n + r[0].length) : -1; + } + function sy(t, e, n) { + var r = Rv.exec(e.slice(n)); + return r ? ((t.s = +r[0]), n + r[0].length) : -1; + } + function uy(t, e) { + return Iv(t.getDate(), e, 2); + } + function ly(t, e) { + return Iv(t.getHours(), e, 2); + } + function cy(t, e) { + return Iv(t.getHours() % 12 || 12, e, 2); + } + function fy(t, e) { + return Iv(1 + Um.count(xm(t), t), e, 3); + } + function dy(t, e) { + return Iv(t.getMilliseconds(), e, 3); + } + function hy(t, e) { + return dy(t, e) + '000'; + } + function py(t, e) { + return Iv(t.getMonth() + 1, e, 2); + } + function gy(t, e) { + return Iv(t.getMinutes(), e, 2); + } + function my(t, e) { + return Iv(t.getSeconds(), e, 2); + } + function vy(t) { + var e = t.getDay(); + return 0 === e ? 7 : e; + } + function yy(t, e) { + return Iv(Om.count(xm(t) - 1, t), e, 2); + } + function by(t, e) { + var n = t.getDay(); + return ( + (t = n >= 4 || 0 === n ? jm(t) : jm.ceil(t)), + Iv(jm.count(xm(t), t) + (4 === xm(t).getDay()), e, 2) + ); + } + function _y(t) { + return t.getDay(); + } + function xy(t, e) { + return Iv(Pm.count(xm(t) - 1, t), e, 2); + } + function wy(t, e) { + return Iv(t.getFullYear() % 100, e, 2); + } + function Sy(t, e) { + return Iv(t.getFullYear() % 1e4, e, 4); + } + function Ey(t) { + var e = t.getTimezoneOffset(); + return ( + (e > 0 ? '-' : ((e *= -1), '+')) + + Iv((e / 60) | 0, '0', 2) + + Iv(e % 60, '0', 2) + ); + } + function ky(t, e) { + return Iv(t.getUTCDate(), e, 2); + } + function Ay(t, e) { + return Iv(t.getUTCHours(), e, 2); + } + function Ty(t, e) { + return Iv(t.getUTCHours() % 12 || 12, e, 2); + } + function Cy(t, e) { + return Iv(1 + _v.count(Sv(t), t), e, 3); + } + function Oy(t, e) { + return Iv(t.getUTCMilliseconds(), e, 3); + } + function Py(t, e) { + return Oy(t, e) + '000'; + } + function My(t, e) { + return Iv(t.getUTCMonth() + 1, e, 2); + } + function Ly(t, e) { + return Iv(t.getUTCMinutes(), e, 2); + } + function jy(t, e) { + return Iv(t.getUTCSeconds(), e, 2); + } + function Dy(t) { + var e = t.getUTCDay(); + return 0 === e ? 7 : e; + } + function Ry(t, e) { + return Iv(ov.count(Sv(t) - 1, t), e, 2); + } + function zy(t, e) { + var n = t.getUTCDay(); + return ( + (t = n >= 4 || 0 === n ? lv(t) : lv.ceil(t)), + Iv(lv.count(Sv(t), t) + (4 === Sv(t).getUTCDay()), e, 2) + ); + } + function Ny(t) { + return t.getUTCDay(); + } + function Iy(t, e) { + return Iv(av.count(Sv(t) - 1, t), e, 2); + } + function Fy(t, e) { + return Iv(t.getUTCFullYear() % 100, e, 2); + } + function Vy(t, e) { + return Iv(t.getUTCFullYear() % 1e4, e, 4); + } + function By() { + return '+0000'; + } + function Gy() { + return '%'; + } + function Hy(t) { + return +t; + } + function Uy(t) { + return Math.floor(+t / 1e3); + } + function qy(t) { + return ( + (Ov = Cv(t)), + (Pv = Ov.format), + (Mv = Ov.parse), + (Lv = Ov.utcFormat), + (jv = Ov.utcParse), + Ov + ); + } + qy({ + dateTime: '%x, %X', + date: '%-m/%-d/%Y', + time: '%-I:%M:%S %p', + periods: ['AM', 'PM'], + days: [ + 'Sunday', + 'Monday', + 'Tuesday', + 'Wednesday', + 'Thursday', + 'Friday', + 'Saturday' + ], + shortDays: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], + months: [ + 'January', + 'February', + 'March', + 'April', + 'May', + 'June', + 'July', + 'August', + 'September', + 'October', + 'November', + 'December' + ], + shortMonths: [ + 'Jan', + 'Feb', + 'Mar', + 'Apr', + 'May', + 'Jun', + 'Jul', + 'Aug', + 'Sep', + 'Oct', + 'Nov', + 'Dec' + ] + }); + var Wy = 1e3, + Xy = 60 * Wy, + Yy = 60 * Xy, + $y = 24 * Yy, + Ky = 7 * $y, + Qy = 30 * $y, + Zy = 365 * $y; + function Jy(t) { + return new Date(t); + } + function tb(t) { + return t instanceof Date ? +t : +new Date(+t); + } + function eb(t, e, n, r, o, a, s, u, l) { + var c = Ug(Ng, Ng), + f = c.invert, + d = c.domain, + h = l('.%L'), + p = l(':%S'), + g = l('%I:%M'), + m = l('%I %p'), + v = l('%a %d'), + y = l('%b %d'), + b = l('%B'), + _ = l('%Y'), + x = [ + [s, 1, Wy], + [s, 5, 5 * Wy], + [s, 15, 15 * Wy], + [s, 30, 30 * Wy], + [a, 1, Xy], + [a, 5, 5 * Xy], + [a, 15, 15 * Xy], + [a, 30, 30 * Xy], + [o, 1, Yy], + [o, 3, 3 * Yy], + [o, 6, 6 * Yy], + [o, 12, 12 * Yy], + [r, 1, $y], + [r, 2, 2 * $y], + [n, 1, Ky], + [e, 1, Qy], + [e, 3, 3 * Qy], + [t, 1, Zy] + ]; + function w(i) { + return (s(i) < i + ? h + : a(i) < i + ? p + : o(i) < i + ? g + : r(i) < i + ? m + : e(i) < i + ? n(i) < i + ? v + : y + : t(i) < i + ? b + : _)(i); + } + function S(e, n, r, o) { + if ((null == e && (e = 10), 'number' == typeof e)) { + var a = Math.abs(r - n) / e, + s = i(function(t) { + return t[2]; + }).right(x, a); + s === x.length + ? ((o = C(n / Zy, r / Zy, e)), (e = t)) + : s + ? ((o = (s = x[a / x[s - 1][2] < x[s][2] / a ? s - 1 : s])[1]), + (e = s[0])) + : ((o = Math.max(C(n, r, e), 1)), (e = u)); + } + return null == o ? e : e.every(o); + } + return ( + (c.invert = function(t) { + return new Date(f(t)); + }), + (c.domain = function(t) { + return arguments.length ? d(Cg.call(t, tb)) : d().map(Jy); + }), + (c.ticks = function(t, e) { + var n, + r = d(), + i = r[0], + o = r[r.length - 1], + a = o < i; + return ( + a && ((n = i), (i = o), (o = n)), + (n = (n = S(t, i, o, e)) ? n.range(i, o + 1) : []), + a ? n.reverse() : n + ); + }), + (c.tickFormat = function(t, e) { + return null == e ? w : l(e); + }), + (c.nice = function(t, e) { + var n = d(); + return (t = S(t, n[0], n[n.length - 1], e)) ? d($g(n, t)) : c; + }), + (c.copy = function() { + return Gg(c, eb(t, e, n, r, o, a, s, u, l)); + }), + c + ); + } + var nb = function() { + return kg.apply( + eb(xm, Em, Om, Um, Xm, Km, Jm, nv, Pv).domain([ + new Date(2e3, 0, 1), + new Date(2e3, 0, 2) + ]), + arguments + ); + }, + rb = bm( + function(t) { + t.setUTCDate(1), t.setUTCHours(0, 0, 0, 0); + }, + function(t, e) { + t.setUTCMonth(t.getUTCMonth() + e); + }, + function(t, e) { + return ( + e.getUTCMonth() - + t.getUTCMonth() + + 12 * (e.getUTCFullYear() - t.getUTCFullYear()) + ); + }, + function(t) { + return t.getUTCMonth(); + } + ), + ib = rb, + ob = rb.range, + ab = bm( + function(t) { + t.setUTCMinutes(0, 0, 0); + }, + function(t, e) { + t.setTime(+t + 36e5 * e); + }, + function(t, e) { + return (e - t) / 36e5; + }, + function(t) { + return t.getUTCHours(); + } + ), + sb = ab, + ub = ab.range, + lb = bm( + function(t) { + t.setUTCSeconds(0, 0); + }, + function(t, e) { + t.setTime(+t + e * Am); + }, + function(t, e) { + return (e - t) / Am; + }, + function(t) { + return t.getUTCMinutes(); + } + ), + cb = lb, + fb = lb.range, + db = function() { + return kg.apply( + eb(Sv, ib, ov, _v, sb, cb, Jm, nv, Lv).domain([ + Date.UTC(2e3, 0, 1), + Date.UTC(2e3, 0, 2) + ]), + arguments + ); + }; + function hb() { + var t, + e, + n, + r, + i, + o = 0, + a = 1, + s = Ng, + u = !1; + function l(e) { + return isNaN((e = +e)) + ? i + : s( + 0 === n + ? 0.5 + : ((e = (r(e) - t) * n), u ? Math.max(0, Math.min(1, e)) : e) + ); + } + return ( + (l.domain = function(i) { + return arguments.length + ? ((t = r((o = +i[0]))), + (e = r((a = +i[1]))), + (n = t === e ? 0 : 1 / (e - t)), + l) + : [o, a]; + }), + (l.clamp = function(t) { + return arguments.length ? ((u = !!t), l) : u; + }), + (l.interpolator = function(t) { + return arguments.length ? ((s = t), l) : s; + }), + (l.unknown = function(t) { + return arguments.length ? ((i = t), l) : i; + }), + function(i) { + return ( + (r = i), + (t = i(o)), + (e = i(a)), + (n = t === e ? 0 : 1 / (e - t)), + l + ); + } + ); + } + function pb(t, e) { + return e + .domain(t.domain()) + .interpolator(t.interpolator()) + .clamp(t.clamp()) + .unknown(t.unknown()); + } + function gb() { + var t = Wg(hb()(Ng)); + return ( + (t.copy = function() { + return pb(t, gb()); + }), + Ag.apply(t, arguments) + ); + } + function mb() { + var t = nm(hb()).domain([1, 10]); + return ( + (t.copy = function() { + return pb(t, mb()).base(t.base()); + }), + Ag.apply(t, arguments) + ); + } + function vb() { + var t = am(hb()); + return ( + (t.copy = function() { + return pb(t, vb()).constant(t.constant()); + }), + Ag.apply(t, arguments) + ); + } + function yb() { + var t = fm(hb()); + return ( + (t.copy = function() { + return pb(t, yb()).exponent(t.exponent()); + }), + Ag.apply(t, arguments) + ); + } + function bb() { + return yb.apply(null, arguments).exponent(0.5); + } + function _b() { + var t = [], + e = Ng; + function n(n) { + if (!isNaN((n = +n))) return e((u(t, n) - 1) / (t.length - 1)); + } + return ( + (n.domain = function(e) { + if (!arguments.length) return t.slice(); + t = []; + for (var i, o = 0, a = e.length; o < a; ++o) + null == (i = e[o]) || isNaN((i = +i)) || t.push(i); + return t.sort(r), n; + }), + (n.interpolator = function(t) { + return arguments.length ? ((e = t), n) : e; + }), + (n.copy = function() { + return _b(e).domain(t); + }), + Ag.apply(n, arguments) + ); + } + function xb() { + var t, + e, + n, + r, + i, + o, + a, + s = 0, + u = 0.5, + l = 1, + c = Ng, + f = !1; + function d(t) { + return isNaN((t = +t)) + ? a + : ((t = 0.5 + ((t = +o(t)) - e) * (t < e ? r : i)), + c(f ? Math.max(0, Math.min(1, t)) : t)); + } + return ( + (d.domain = function(a) { + return arguments.length + ? ((t = o((s = +a[0]))), + (e = o((u = +a[1]))), + (n = o((l = +a[2]))), + (r = t === e ? 0 : 0.5 / (e - t)), + (i = e === n ? 0 : 0.5 / (n - e)), + d) + : [s, u, l]; + }), + (d.clamp = function(t) { + return arguments.length ? ((f = !!t), d) : f; + }), + (d.interpolator = function(t) { + return arguments.length ? ((c = t), d) : c; + }), + (d.unknown = function(t) { + return arguments.length ? ((a = t), d) : a; + }), + function(a) { + return ( + (o = a), + (t = a(s)), + (e = a(u)), + (n = a(l)), + (r = t === e ? 0 : 0.5 / (e - t)), + (i = e === n ? 0 : 0.5 / (n - e)), + d + ); + } + ); + } + function wb() { + var t = Wg(xb()(Ng)); + return ( + (t.copy = function() { + return pb(t, wb()); + }), + Ag.apply(t, arguments) + ); + } + function Sb() { + var t = nm(xb()).domain([0.1, 1, 10]); + return ( + (t.copy = function() { + return pb(t, Sb()).base(t.base()); + }), + Ag.apply(t, arguments) + ); + } + function Eb() { + var t = am(xb()); + return ( + (t.copy = function() { + return pb(t, Eb()).constant(t.constant()); + }), + Ag.apply(t, arguments) + ); + } + function kb() { + var t = fm(xb()); + return ( + (t.copy = function() { + return pb(t, kb()).exponent(t.exponent()); + }), + Ag.apply(t, arguments) + ); + } + function Ab() { + return kb.apply(null, arguments).exponent(0.5); + } + var Tb = function(t) { + for (var e = (t.length / 6) | 0, n = new Array(e), r = 0; r < e; ) + n[r] = '#' + t.slice(6 * r, 6 * ++r); + return n; + }, + Cb = Tb('1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf'), + Ob = Tb('7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666'), + Pb = Tb('1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666'), + Mb = Tb( + 'a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928' + ), + Lb = Tb('fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2'), + jb = Tb('b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc'), + Db = Tb('e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999'), + Rb = Tb('66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3'), + zb = Tb( + '8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f' + ), + Nb = Tb('4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab'), + Ib = function(t) { + return _n(t[t.length - 1]); + }, + Fb = new Array(3) + .concat( + 'd8b365f5f5f55ab4ac', + 'a6611adfc27d80cdc1018571', + 'a6611adfc27df5f5f580cdc1018571', + '8c510ad8b365f6e8c3c7eae55ab4ac01665e', + '8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e', + '8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e', + '8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e', + '5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30', + '5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30' + ) + .map(Tb), + Vb = Ib(Fb), + Bb = new Array(3) + .concat( + 'af8dc3f7f7f77fbf7b', + '7b3294c2a5cfa6dba0008837', + '7b3294c2a5cff7f7f7a6dba0008837', + '762a83af8dc3e7d4e8d9f0d37fbf7b1b7837', + '762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837', + '762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837', + '762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837', + '40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b', + '40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b' + ) + .map(Tb), + Gb = Ib(Bb), + Hb = new Array(3) + .concat( + 'e9a3c9f7f7f7a1d76a', + 'd01c8bf1b6dab8e1864dac26', + 'd01c8bf1b6daf7f7f7b8e1864dac26', + 'c51b7de9a3c9fde0efe6f5d0a1d76a4d9221', + 'c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221', + 'c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221', + 'c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221', + '8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419', + '8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419' + ) + .map(Tb), + Ub = Ib(Hb), + qb = new Array(3) + .concat( + '998ec3f7f7f7f1a340', + '5e3c99b2abd2fdb863e66101', + '5e3c99b2abd2f7f7f7fdb863e66101', + '542788998ec3d8daebfee0b6f1a340b35806', + '542788998ec3d8daebf7f7f7fee0b6f1a340b35806', + '5427888073acb2abd2d8daebfee0b6fdb863e08214b35806', + '5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806', + '2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08', + '2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08' + ) + .map(Tb), + Wb = Ib(qb), + Xb = new Array(3) + .concat( + 'ef8a62f7f7f767a9cf', + 'ca0020f4a58292c5de0571b0', + 'ca0020f4a582f7f7f792c5de0571b0', + 'b2182bef8a62fddbc7d1e5f067a9cf2166ac', + 'b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac', + 'b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac', + 'b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac', + '67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061', + '67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061' + ) + .map(Tb), + Yb = Ib(Xb), + $b = new Array(3) + .concat( + 'ef8a62ffffff999999', + 'ca0020f4a582bababa404040', + 'ca0020f4a582ffffffbababa404040', + 'b2182bef8a62fddbc7e0e0e09999994d4d4d', + 'b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d', + 'b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d', + 'b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d', + '67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a', + '67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a' + ) + .map(Tb), + Kb = Ib($b), + Qb = new Array(3) + .concat( + 'fc8d59ffffbf91bfdb', + 'd7191cfdae61abd9e92c7bb6', + 'd7191cfdae61ffffbfabd9e92c7bb6', + 'd73027fc8d59fee090e0f3f891bfdb4575b4', + 'd73027fc8d59fee090ffffbfe0f3f891bfdb4575b4', + 'd73027f46d43fdae61fee090e0f3f8abd9e974add14575b4', + 'd73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4', + 'a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695', + 'a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695' + ) + .map(Tb), + Zb = Ib(Qb), + Jb = new Array(3) + .concat( + 'fc8d59ffffbf91cf60', + 'd7191cfdae61a6d96a1a9641', + 'd7191cfdae61ffffbfa6d96a1a9641', + 'd73027fc8d59fee08bd9ef8b91cf601a9850', + 'd73027fc8d59fee08bffffbfd9ef8b91cf601a9850', + 'd73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850', + 'd73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850', + 'a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837', + 'a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837' + ) + .map(Tb), + t_ = Ib(Jb), + e_ = new Array(3) + .concat( + 'fc8d59ffffbf99d594', + 'd7191cfdae61abdda42b83ba', + 'd7191cfdae61ffffbfabdda42b83ba', + 'd53e4ffc8d59fee08be6f59899d5943288bd', + 'd53e4ffc8d59fee08bffffbfe6f59899d5943288bd', + 'd53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd', + 'd53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd', + '9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2', + '9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2' + ) + .map(Tb), + n_ = Ib(e_), + r_ = new Array(3) + .concat( + 'e5f5f999d8c92ca25f', + 'edf8fbb2e2e266c2a4238b45', + 'edf8fbb2e2e266c2a42ca25f006d2c', + 'edf8fbccece699d8c966c2a42ca25f006d2c', + 'edf8fbccece699d8c966c2a441ae76238b45005824', + 'f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824', + 'f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b' + ) + .map(Tb), + i_ = Ib(r_), + o_ = new Array(3) + .concat( + 'e0ecf49ebcda8856a7', + 'edf8fbb3cde38c96c688419d', + 'edf8fbb3cde38c96c68856a7810f7c', + 'edf8fbbfd3e69ebcda8c96c68856a7810f7c', + 'edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b', + 'f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b', + 'f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b' + ) + .map(Tb), + a_ = Ib(o_), + s_ = new Array(3) + .concat( + 'e0f3dba8ddb543a2ca', + 'f0f9e8bae4bc7bccc42b8cbe', + 'f0f9e8bae4bc7bccc443a2ca0868ac', + 'f0f9e8ccebc5a8ddb57bccc443a2ca0868ac', + 'f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e', + 'f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e', + 'f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081' + ) + .map(Tb), + u_ = Ib(s_), + l_ = new Array(3) + .concat( + 'fee8c8fdbb84e34a33', + 'fef0d9fdcc8afc8d59d7301f', + 'fef0d9fdcc8afc8d59e34a33b30000', + 'fef0d9fdd49efdbb84fc8d59e34a33b30000', + 'fef0d9fdd49efdbb84fc8d59ef6548d7301f990000', + 'fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000', + 'fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000' + ) + .map(Tb), + c_ = Ib(l_), + f_ = new Array(3) + .concat( + 'ece2f0a6bddb1c9099', + 'f6eff7bdc9e167a9cf02818a', + 'f6eff7bdc9e167a9cf1c9099016c59', + 'f6eff7d0d1e6a6bddb67a9cf1c9099016c59', + 'f6eff7d0d1e6a6bddb67a9cf3690c002818a016450', + 'fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450', + 'fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636' + ) + .map(Tb), + d_ = Ib(f_), + h_ = new Array(3) + .concat( + 'ece7f2a6bddb2b8cbe', + 'f1eef6bdc9e174a9cf0570b0', + 'f1eef6bdc9e174a9cf2b8cbe045a8d', + 'f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d', + 'f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b', + 'fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b', + 'fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858' + ) + .map(Tb), + p_ = Ib(h_), + g_ = new Array(3) + .concat( + 'e7e1efc994c7dd1c77', + 'f1eef6d7b5d8df65b0ce1256', + 'f1eef6d7b5d8df65b0dd1c77980043', + 'f1eef6d4b9dac994c7df65b0dd1c77980043', + 'f1eef6d4b9dac994c7df65b0e7298ace125691003f', + 'f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f', + 'f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f' + ) + .map(Tb), + m_ = Ib(g_), + v_ = new Array(3) + .concat( + 'fde0ddfa9fb5c51b8a', + 'feebe2fbb4b9f768a1ae017e', + 'feebe2fbb4b9f768a1c51b8a7a0177', + 'feebe2fcc5c0fa9fb5f768a1c51b8a7a0177', + 'feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177', + 'fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177', + 'fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a' + ) + .map(Tb), + y_ = Ib(v_), + b_ = new Array(3) + .concat( + 'edf8b17fcdbb2c7fb8', + 'ffffcca1dab441b6c4225ea8', + 'ffffcca1dab441b6c42c7fb8253494', + 'ffffccc7e9b47fcdbb41b6c42c7fb8253494', + 'ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84', + 'ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84', + 'ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58' + ) + .map(Tb), + __ = Ib(b_), + x_ = new Array(3) + .concat( + 'f7fcb9addd8e31a354', + 'ffffccc2e69978c679238443', + 'ffffccc2e69978c67931a354006837', + 'ffffccd9f0a3addd8e78c67931a354006837', + 'ffffccd9f0a3addd8e78c67941ab5d238443005a32', + 'ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32', + 'ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529' + ) + .map(Tb), + w_ = Ib(x_), + S_ = new Array(3) + .concat( + 'fff7bcfec44fd95f0e', + 'ffffd4fed98efe9929cc4c02', + 'ffffd4fed98efe9929d95f0e993404', + 'ffffd4fee391fec44ffe9929d95f0e993404', + 'ffffd4fee391fec44ffe9929ec7014cc4c028c2d04', + 'ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04', + 'ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506' + ) + .map(Tb), + E_ = Ib(S_), + k_ = new Array(3) + .concat( + 'ffeda0feb24cf03b20', + 'ffffb2fecc5cfd8d3ce31a1c', + 'ffffb2fecc5cfd8d3cf03b20bd0026', + 'ffffb2fed976feb24cfd8d3cf03b20bd0026', + 'ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026', + 'ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026', + 'ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026' + ) + .map(Tb), + A_ = Ib(k_), + T_ = new Array(3) + .concat( + 'deebf79ecae13182bd', + 'eff3ffbdd7e76baed62171b5', + 'eff3ffbdd7e76baed63182bd08519c', + 'eff3ffc6dbef9ecae16baed63182bd08519c', + 'eff3ffc6dbef9ecae16baed64292c62171b5084594', + 'f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594', + 'f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b' + ) + .map(Tb), + C_ = Ib(T_), + O_ = new Array(3) + .concat( + 'e5f5e0a1d99b31a354', + 'edf8e9bae4b374c476238b45', + 'edf8e9bae4b374c47631a354006d2c', + 'edf8e9c7e9c0a1d99b74c47631a354006d2c', + 'edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32', + 'f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32', + 'f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b' + ) + .map(Tb), + P_ = Ib(O_), + M_ = new Array(3) + .concat( + 'f0f0f0bdbdbd636363', + 'f7f7f7cccccc969696525252', + 'f7f7f7cccccc969696636363252525', + 'f7f7f7d9d9d9bdbdbd969696636363252525', + 'f7f7f7d9d9d9bdbdbd969696737373525252252525', + 'fffffff0f0f0d9d9d9bdbdbd969696737373525252252525', + 'fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000' + ) + .map(Tb), + L_ = Ib(M_), + j_ = new Array(3) + .concat( + 'efedf5bcbddc756bb1', + 'f2f0f7cbc9e29e9ac86a51a3', + 'f2f0f7cbc9e29e9ac8756bb154278f', + 'f2f0f7dadaebbcbddc9e9ac8756bb154278f', + 'f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486', + 'fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486', + 'fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d' + ) + .map(Tb), + D_ = Ib(j_), + R_ = new Array(3) + .concat( + 'fee0d2fc9272de2d26', + 'fee5d9fcae91fb6a4acb181d', + 'fee5d9fcae91fb6a4ade2d26a50f15', + 'fee5d9fcbba1fc9272fb6a4ade2d26a50f15', + 'fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d', + 'fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d', + 'fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d' + ) + .map(Tb), + z_ = Ib(R_), + N_ = new Array(3) + .concat( + 'fee6cefdae6be6550d', + 'feeddefdbe85fd8d3cd94701', + 'feeddefdbe85fd8d3ce6550da63603', + 'feeddefdd0a2fdae6bfd8d3ce6550da63603', + 'feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04', + 'fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04', + 'fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704' + ) + .map(Tb), + I_ = Ib(N_), + F_ = function(t) { + return ( + (t = Math.max(0, Math.min(1, t))), + 'rgb(' + + Math.max( + 0, + Math.min( + 255, + Math.round( + -4.54 - + t * + (35.34 - + t * + (2381.73 - + t * (6402.7 - t * (7024.72 - 2710.57 * t)))) + ) + ) + ) + + ', ' + + Math.max( + 0, + Math.min( + 255, + Math.round( + 32.49 + + t * + (170.73 + + t * (52.82 - t * (131.46 - t * (176.58 - 67.37 * t)))) + ) + ) + ) + + ', ' + + Math.max( + 0, + Math.min( + 255, + Math.round( + 81.24 + + t * + (442.36 - + t * + (2482.43 - + t * (6167.24 - t * (6614.94 - 2475.67 * t)))) + ) + ) + ) + + ')' + ); + }, + V_ = sg(Xo(300, 0.5, 0), Xo(-240, 0.5, 1)), + B_ = sg(Xo(-100, 0.75, 0.35), Xo(80, 1.5, 0.8)), + G_ = sg(Xo(260, 0.75, 0.35), Xo(80, 1.5, 0.8)), + H_ = Xo(), + U_ = function(t) { + (t < 0 || t > 1) && (t -= Math.floor(t)); + var e = Math.abs(t - 0.5); + return ( + (H_.h = 360 * t - 100), + (H_.s = 1.5 - 1.5 * e), + (H_.l = 0.8 - 0.9 * e), + H_ + '' + ); + }, + q_ = Je(), + W_ = Math.PI / 3, + X_ = (2 * Math.PI) / 3, + Y_ = function(t) { + var e; + return ( + (t = (0.5 - t) * Math.PI), + (q_.r = 255 * (e = Math.sin(t)) * e), + (q_.g = 255 * (e = Math.sin(t + W_)) * e), + (q_.b = 255 * (e = Math.sin(t + X_)) * e), + q_ + '' + ); + }, + $_ = function(t) { + return ( + (t = Math.max(0, Math.min(1, t))), + 'rgb(' + + Math.max( + 0, + Math.min( + 255, + Math.round( + 34.61 + + t * + (1172.33 - + t * + (10793.56 - + t * (33300.12 - t * (38394.49 - 14825.05 * t)))) + ) + ) + ) + + ', ' + + Math.max( + 0, + Math.min( + 255, + Math.round( + 23.31 + + t * + (557.33 + + t * + (1225.33 - + t * (3574.96 - t * (1073.77 + 707.56 * t)))) + ) + ) + ) + + ', ' + + Math.max( + 0, + Math.min( + 255, + Math.round( + 27.2 + + t * + (3211.1 - + t * + (15327.97 - + t * (27814 - t * (22569.18 - 6838.66 * t)))) + ) + ) + ) + + ')' + ); + }; + function K_(t) { + var e = t.length; + return function(n) { + return t[Math.max(0, Math.min(e - 1, Math.floor(n * e)))]; + }; + } + var Q_ = K_( + Tb( + '44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725' + ) + ), + Z_ = K_( + Tb( + '00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf' + ) + ), + J_ = K_( + Tb( + '00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4' + ) + ), + tx = K_( + Tb( + '0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921' + ) + ), + ex = function(t) { + return Ce(ue(t).call(document.documentElement)); + }, + nx = 0; + function rx() { + return new ix(); + } + function ix() { + this._ = '@' + (++nx).toString(36); + } + ix.prototype = rx.prototype = { + constructor: ix, + get: function(t) { + for (var e = this._; !(e in t); ) if (!(t = t.parentNode)) return; + return t[e]; + }, + set: function(t, e) { + return (t[this._] = e); + }, + remove: function(t) { + return this._ in t && delete t[this._]; + }, + toString: function() { + return this._; + } + }; + var ox = function(t) { + return 'string' == typeof t + ? new ke([document.querySelectorAll(t)], [document.documentElement]) + : new ke([null == t ? [] : t], Ee); + }, + ax = function(t, e) { + null == e && (e = Rn().touches); + for (var n = 0, r = e ? e.length : 0, i = new Array(r); n < r; ++n) + i[n] = zn(t, e[n]); + return i; + }, + sx = function(t) { + return function() { + return t; + }; + }, + ux = Math.abs, + lx = Math.atan2, + cx = Math.cos, + fx = Math.max, + dx = Math.min, + hx = Math.sin, + px = Math.sqrt, + gx = 1e-12, + mx = Math.PI, + vx = mx / 2, + yx = 2 * mx; + function bx(t) { + return t >= 1 ? vx : t <= -1 ? -vx : Math.asin(t); + } + function _x(t) { + return t.innerRadius; + } + function xx(t) { + return t.outerRadius; + } + function wx(t) { + return t.startAngle; + } + function Sx(t) { + return t.endAngle; + } + function Ex(t) { + return t && t.padAngle; + } + function kx(t, e, n, r, i, o, a) { + var s = t - n, + u = e - r, + l = (a ? o : -o) / px(s * s + u * u), + c = l * u, + f = -l * s, + d = t + c, + h = e + f, + p = n + c, + g = r + f, + m = (d + p) / 2, + v = (h + g) / 2, + y = p - d, + b = g - h, + _ = y * y + b * b, + x = i - o, + w = d * g - p * h, + S = (b < 0 ? -1 : 1) * px(fx(0, x * x * _ - w * w)), + E = (w * b - y * S) / _, + k = (-w * y - b * S) / _, + A = (w * b + y * S) / _, + T = (-w * y + b * S) / _, + C = E - m, + O = k - v, + P = A - m, + M = T - v; + return ( + C * C + O * O > P * P + M * M && ((E = A), (k = T)), + { + cx: E, + cy: k, + x01: -c, + y01: -f, + x11: E * (i / x - 1), + y11: k * (i / x - 1) + } + ); + } + var Ax = function() { + var t = _x, + e = xx, + n = sx(0), + r = null, + i = wx, + o = Sx, + a = Ex, + s = null; + function u() { + var u, + l, + c, + f = +t.apply(this, arguments), + d = +e.apply(this, arguments), + h = i.apply(this, arguments) - vx, + p = o.apply(this, arguments) - vx, + g = ux(p - h), + m = p > h; + if ( + (s || (s = u = Ki()), d < f && ((l = d), (d = f), (f = l)), d > gx) + ) + if (g > yx - gx) + s.moveTo(d * cx(h), d * hx(h)), + s.arc(0, 0, d, h, p, !m), + f > gx && + (s.moveTo(f * cx(p), f * hx(p)), s.arc(0, 0, f, p, h, m)); + else { + var v, + y, + b = h, + _ = p, + x = h, + w = p, + S = g, + E = g, + k = a.apply(this, arguments) / 2, + A = + k > gx && (r ? +r.apply(this, arguments) : px(f * f + d * d)), + T = dx(ux(d - f) / 2, +n.apply(this, arguments)), + C = T, + O = T; + if (A > gx) { + var P = bx((A / f) * hx(k)), + M = bx((A / d) * hx(k)); + (S -= 2 * P) > gx + ? ((x += P *= m ? 1 : -1), (w -= P)) + : ((S = 0), (x = w = (h + p) / 2)), + (E -= 2 * M) > gx + ? ((b += M *= m ? 1 : -1), (_ -= M)) + : ((E = 0), (b = _ = (h + p) / 2)); + } + var L = d * cx(b), + j = d * hx(b), + D = f * cx(w), + R = f * hx(w); + if (T > gx) { + var z, + N = d * cx(_), + I = d * hx(_), + F = f * cx(x), + V = f * hx(x); + if ( + g < mx && + (z = (function(t, e, n, r, i, o, a, s) { + var u = n - t, + l = r - e, + c = a - i, + f = s - o, + d = f * u - c * l; + if (!(d * d < gx)) + return [ + t + (d = (c * (e - o) - f * (t - i)) / d) * u, + e + d * l + ]; + })(L, j, F, V, N, I, D, R)) + ) { + var B = L - z[0], + G = j - z[1], + H = N - z[0], + U = I - z[1], + q = + 1 / + hx( + ((c = + (B * H + G * U) / + (px(B * B + G * G) * px(H * H + U * U))) > 1 + ? 0 + : c < -1 + ? mx + : Math.acos(c)) / 2 + ), + W = px(z[0] * z[0] + z[1] * z[1]); + (C = dx(T, (f - W) / (q - 1))), + (O = dx(T, (d - W) / (q + 1))); + } + } + E > gx + ? O > gx + ? ((v = kx(F, V, L, j, d, O, m)), + (y = kx(N, I, D, R, d, O, m)), + s.moveTo(v.cx + v.x01, v.cy + v.y01), + O < T + ? s.arc( + v.cx, + v.cy, + O, + lx(v.y01, v.x01), + lx(y.y01, y.x01), + !m + ) + : (s.arc( + v.cx, + v.cy, + O, + lx(v.y01, v.x01), + lx(v.y11, v.x11), + !m + ), + s.arc( + 0, + 0, + d, + lx(v.cy + v.y11, v.cx + v.x11), + lx(y.cy + y.y11, y.cx + y.x11), + !m + ), + s.arc( + y.cx, + y.cy, + O, + lx(y.y11, y.x11), + lx(y.y01, y.x01), + !m + ))) + : (s.moveTo(L, j), s.arc(0, 0, d, b, _, !m)) + : s.moveTo(L, j), + f > gx && S > gx + ? C > gx + ? ((v = kx(D, R, N, I, f, -C, m)), + (y = kx(L, j, F, V, f, -C, m)), + s.lineTo(v.cx + v.x01, v.cy + v.y01), + C < T + ? s.arc( + v.cx, + v.cy, + C, + lx(v.y01, v.x01), + lx(y.y01, y.x01), + !m + ) + : (s.arc( + v.cx, + v.cy, + C, + lx(v.y01, v.x01), + lx(v.y11, v.x11), + !m + ), + s.arc( + 0, + 0, + f, + lx(v.cy + v.y11, v.cx + v.x11), + lx(y.cy + y.y11, y.cx + y.x11), + m + ), + s.arc( + y.cx, + y.cy, + C, + lx(y.y11, y.x11), + lx(y.y01, y.x01), + !m + ))) + : s.arc(0, 0, f, w, x, m) + : s.lineTo(D, R); + } + else s.moveTo(0, 0); + if ((s.closePath(), u)) return (s = null), u + '' || null; + } + return ( + (u.centroid = function() { + var n = (+t.apply(this, arguments) + +e.apply(this, arguments)) / 2, + r = + (+i.apply(this, arguments) + +o.apply(this, arguments)) / 2 - + mx / 2; + return [cx(r) * n, hx(r) * n]; + }), + (u.innerRadius = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : sx(+e)), u) + : t; + }), + (u.outerRadius = function(t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : sx(+t)), u) + : e; + }), + (u.cornerRadius = function(t) { + return arguments.length + ? ((n = 'function' == typeof t ? t : sx(+t)), u) + : n; + }), + (u.padRadius = function(t) { + return arguments.length + ? ((r = null == t ? null : 'function' == typeof t ? t : sx(+t)), + u) + : r; + }), + (u.startAngle = function(t) { + return arguments.length + ? ((i = 'function' == typeof t ? t : sx(+t)), u) + : i; + }), + (u.endAngle = function(t) { + return arguments.length + ? ((o = 'function' == typeof t ? t : sx(+t)), u) + : o; + }), + (u.padAngle = function(t) { + return arguments.length + ? ((a = 'function' == typeof t ? t : sx(+t)), u) + : a; + }), + (u.context = function(t) { + return arguments.length ? ((s = null == t ? null : t), u) : s; + }), + u + ); + }; + function Tx(t) { + this._context = t; + } + Tx.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(t, e) { + switch (((t = +t), (e = +e), this._point)) { + case 0: + (this._point = 1), + this._line + ? this._context.lineTo(t, e) + : this._context.moveTo(t, e); + break; + case 1: + this._point = 2; + default: + this._context.lineTo(t, e); + } + } + }; + var Cx = function(t) { + return new Tx(t); + }; + function Ox(t) { + return t[0]; + } + function Px(t) { + return t[1]; + } + var Mx = function() { + var t = Ox, + e = Px, + n = sx(!0), + r = null, + i = Cx, + o = null; + function a(a) { + var s, + u, + l, + c = a.length, + f = !1; + for (null == r && (o = i((l = Ki()))), s = 0; s <= c; ++s) + !(s < c && n((u = a[s]), s, a)) === f && + ((f = !f) ? o.lineStart() : o.lineEnd()), + f && o.point(+t(u, s, a), +e(u, s, a)); + if (l) return (o = null), l + '' || null; + } + return ( + (a.x = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : sx(+e)), a) + : t; + }), + (a.y = function(t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : sx(+t)), a) + : e; + }), + (a.defined = function(t) { + return arguments.length + ? ((n = 'function' == typeof t ? t : sx(!!t)), a) + : n; + }), + (a.curve = function(t) { + return arguments.length + ? ((i = t), null != r && (o = i(r)), a) + : i; + }), + (a.context = function(t) { + return arguments.length + ? (null == t ? (r = o = null) : (o = i((r = t))), a) + : r; + }), + a + ); + }, + Lx = function() { + var t = Ox, + e = null, + n = sx(0), + r = Px, + i = sx(!0), + o = null, + a = Cx, + s = null; + function u(u) { + var l, + c, + f, + d, + h, + p = u.length, + g = !1, + m = new Array(p), + v = new Array(p); + for (null == o && (s = a((h = Ki()))), l = 0; l <= p; ++l) { + if (!(l < p && i((d = u[l]), l, u)) === g) + if ((g = !g)) (c = l), s.areaStart(), s.lineStart(); + else { + for (s.lineEnd(), s.lineStart(), f = l - 1; f >= c; --f) + s.point(m[f], v[f]); + s.lineEnd(), s.areaEnd(); + } + g && + ((m[l] = +t(d, l, u)), + (v[l] = +n(d, l, u)), + s.point(e ? +e(d, l, u) : m[l], r ? +r(d, l, u) : v[l])); + } + if (h) return (s = null), h + '' || null; + } + function l() { + return Mx() + .defined(i) + .curve(a) + .context(o); + } + return ( + (u.x = function(n) { + return arguments.length + ? ((t = 'function' == typeof n ? n : sx(+n)), (e = null), u) + : t; + }), + (u.x0 = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : sx(+e)), u) + : t; + }), + (u.x1 = function(t) { + return arguments.length + ? ((e = null == t ? null : 'function' == typeof t ? t : sx(+t)), + u) + : e; + }), + (u.y = function(t) { + return arguments.length + ? ((n = 'function' == typeof t ? t : sx(+t)), (r = null), u) + : n; + }), + (u.y0 = function(t) { + return arguments.length + ? ((n = 'function' == typeof t ? t : sx(+t)), u) + : n; + }), + (u.y1 = function(t) { + return arguments.length + ? ((r = null == t ? null : 'function' == typeof t ? t : sx(+t)), + u) + : r; + }), + (u.lineX0 = u.lineY0 = function() { + return l() + .x(t) + .y(n); + }), + (u.lineY1 = function() { + return l() + .x(t) + .y(r); + }), + (u.lineX1 = function() { + return l() + .x(e) + .y(n); + }), + (u.defined = function(t) { + return arguments.length + ? ((i = 'function' == typeof t ? t : sx(!!t)), u) + : i; + }), + (u.curve = function(t) { + return arguments.length + ? ((a = t), null != o && (s = a(o)), u) + : a; + }), + (u.context = function(t) { + return arguments.length + ? (null == t ? (o = s = null) : (s = a((o = t))), u) + : o; + }), + u + ); + }, + jx = function(t, e) { + return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN; + }, + Dx = function(t) { + return t; + }, + Rx = function() { + var t = Dx, + e = jx, + n = null, + r = sx(0), + i = sx(yx), + o = sx(0); + function a(a) { + var s, + u, + l, + c, + f, + d = a.length, + h = 0, + p = new Array(d), + g = new Array(d), + m = +r.apply(this, arguments), + v = Math.min(yx, Math.max(-yx, i.apply(this, arguments) - m)), + y = Math.min(Math.abs(v) / d, o.apply(this, arguments)), + b = y * (v < 0 ? -1 : 1); + for (s = 0; s < d; ++s) + (f = g[(p[s] = s)] = +t(a[s], s, a)) > 0 && (h += f); + for ( + null != e + ? p.sort(function(t, n) { + return e(g[t], g[n]); + }) + : null != n && + p.sort(function(t, e) { + return n(a[t], a[e]); + }), + s = 0, + l = h ? (v - d * b) / h : 0; + s < d; + ++s, m = c + ) + (u = p[s]), + (c = m + ((f = g[u]) > 0 ? f * l : 0) + b), + (g[u] = { + data: a[u], + index: s, + value: f, + startAngle: m, + endAngle: c, + padAngle: y + }); + return g; + } + return ( + (a.value = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : sx(+e)), a) + : t; + }), + (a.sortValues = function(t) { + return arguments.length ? ((e = t), (n = null), a) : e; + }), + (a.sort = function(t) { + return arguments.length ? ((n = t), (e = null), a) : n; + }), + (a.startAngle = function(t) { + return arguments.length + ? ((r = 'function' == typeof t ? t : sx(+t)), a) + : r; + }), + (a.endAngle = function(t) { + return arguments.length + ? ((i = 'function' == typeof t ? t : sx(+t)), a) + : i; + }), + (a.padAngle = function(t) { + return arguments.length + ? ((o = 'function' == typeof t ? t : sx(+t)), a) + : o; + }), + a + ); + }, + zx = Ix(Cx); + function Nx(t) { + this._curve = t; + } + function Ix(t) { + function e(e) { + return new Nx(t(e)); + } + return (e._curve = t), e; + } + function Fx(t) { + var e = t.curve; + return ( + (t.angle = t.x), + delete t.x, + (t.radius = t.y), + delete t.y, + (t.curve = function(t) { + return arguments.length ? e(Ix(t)) : e()._curve; + }), + t + ); + } + Nx.prototype = { + areaStart: function() { + this._curve.areaStart(); + }, + areaEnd: function() { + this._curve.areaEnd(); + }, + lineStart: function() { + this._curve.lineStart(); + }, + lineEnd: function() { + this._curve.lineEnd(); + }, + point: function(t, e) { + this._curve.point(e * Math.sin(t), e * -Math.cos(t)); + } + }; + var Vx = function() { + return Fx(Mx().curve(zx)); + }, + Bx = function() { + var t = Lx().curve(zx), + e = t.curve, + n = t.lineX0, + r = t.lineX1, + i = t.lineY0, + o = t.lineY1; + return ( + (t.angle = t.x), + delete t.x, + (t.startAngle = t.x0), + delete t.x0, + (t.endAngle = t.x1), + delete t.x1, + (t.radius = t.y), + delete t.y, + (t.innerRadius = t.y0), + delete t.y0, + (t.outerRadius = t.y1), + delete t.y1, + (t.lineStartAngle = function() { + return Fx(n()); + }), + delete t.lineX0, + (t.lineEndAngle = function() { + return Fx(r()); + }), + delete t.lineX1, + (t.lineInnerRadius = function() { + return Fx(i()); + }), + delete t.lineY0, + (t.lineOuterRadius = function() { + return Fx(o()); + }), + delete t.lineY1, + (t.curve = function(t) { + return arguments.length ? e(Ix(t)) : e()._curve; + }), + t + ); + }, + Gx = function(t, e) { + return [(e = +e) * Math.cos((t -= Math.PI / 2)), e * Math.sin(t)]; + }, + Hx = Array.prototype.slice; + function Ux(t) { + return t.source; + } + function qx(t) { + return t.target; + } + function Wx(t) { + var e = Ux, + n = qx, + r = Ox, + i = Px, + o = null; + function a() { + var a, + s = Hx.call(arguments), + u = e.apply(this, s), + l = n.apply(this, s); + if ( + (o || (o = a = Ki()), + t( + o, + +r.apply(this, ((s[0] = u), s)), + +i.apply(this, s), + +r.apply(this, ((s[0] = l), s)), + +i.apply(this, s) + ), + a) + ) + return (o = null), a + '' || null; + } + return ( + (a.source = function(t) { + return arguments.length ? ((e = t), a) : e; + }), + (a.target = function(t) { + return arguments.length ? ((n = t), a) : n; + }), + (a.x = function(t) { + return arguments.length + ? ((r = 'function' == typeof t ? t : sx(+t)), a) + : r; + }), + (a.y = function(t) { + return arguments.length + ? ((i = 'function' == typeof t ? t : sx(+t)), a) + : i; + }), + (a.context = function(t) { + return arguments.length ? ((o = null == t ? null : t), a) : o; + }), + a + ); + } + function Xx(t, e, n, r, i) { + t.moveTo(e, n), t.bezierCurveTo((e = (e + r) / 2), n, e, i, r, i); + } + function Yx(t, e, n, r, i) { + t.moveTo(e, n), t.bezierCurveTo(e, (n = (n + i) / 2), r, n, r, i); + } + function $x(t, e, n, r, i) { + var o = Gx(e, n), + a = Gx(e, (n = (n + i) / 2)), + s = Gx(r, n), + u = Gx(r, i); + t.moveTo(o[0], o[1]), + t.bezierCurveTo(a[0], a[1], s[0], s[1], u[0], u[1]); + } + function Kx() { + return Wx(Xx); + } + function Qx() { + return Wx(Yx); + } + function Zx() { + var t = Wx($x); + return (t.angle = t.x), delete t.x, (t.radius = t.y), delete t.y, t; + } + var Jx = { + draw: function(t, e) { + var n = Math.sqrt(e / mx); + t.moveTo(n, 0), t.arc(0, 0, n, 0, yx); + } + }, + tw = { + draw: function(t, e) { + var n = Math.sqrt(e / 5) / 2; + t.moveTo(-3 * n, -n), + t.lineTo(-n, -n), + t.lineTo(-n, -3 * n), + t.lineTo(n, -3 * n), + t.lineTo(n, -n), + t.lineTo(3 * n, -n), + t.lineTo(3 * n, n), + t.lineTo(n, n), + t.lineTo(n, 3 * n), + t.lineTo(-n, 3 * n), + t.lineTo(-n, n), + t.lineTo(-3 * n, n), + t.closePath(); + } + }, + ew = Math.sqrt(1 / 3), + nw = 2 * ew, + rw = { + draw: function(t, e) { + var n = Math.sqrt(e / nw), + r = n * ew; + t.moveTo(0, -n), + t.lineTo(r, 0), + t.lineTo(0, n), + t.lineTo(-r, 0), + t.closePath(); + } + }, + iw = Math.sin(mx / 10) / Math.sin((7 * mx) / 10), + ow = Math.sin(yx / 10) * iw, + aw = -Math.cos(yx / 10) * iw, + sw = { + draw: function(t, e) { + var n = Math.sqrt(0.8908130915292852 * e), + r = ow * n, + i = aw * n; + t.moveTo(0, -n), t.lineTo(r, i); + for (var o = 1; o < 5; ++o) { + var a = (yx * o) / 5, + s = Math.cos(a), + u = Math.sin(a); + t.lineTo(u * n, -s * n), t.lineTo(s * r - u * i, u * r + s * i); + } + t.closePath(); + } + }, + uw = { + draw: function(t, e) { + var n = Math.sqrt(e), + r = -n / 2; + t.rect(r, r, n, n); + } + }, + lw = Math.sqrt(3), + cw = { + draw: function(t, e) { + var n = -Math.sqrt(e / (3 * lw)); + t.moveTo(0, 2 * n), + t.lineTo(-lw * n, -n), + t.lineTo(lw * n, -n), + t.closePath(); + } + }, + fw = Math.sqrt(3) / 2, + dw = 1 / Math.sqrt(12), + hw = 3 * (dw / 2 + 1), + pw = { + draw: function(t, e) { + var n = Math.sqrt(e / hw), + r = n / 2, + i = n * dw, + o = r, + a = n * dw + n, + s = -o, + u = a; + t.moveTo(r, i), + t.lineTo(o, a), + t.lineTo(s, u), + t.lineTo(-0.5 * r - fw * i, fw * r + -0.5 * i), + t.lineTo(-0.5 * o - fw * a, fw * o + -0.5 * a), + t.lineTo(-0.5 * s - fw * u, fw * s + -0.5 * u), + t.lineTo(-0.5 * r + fw * i, -0.5 * i - fw * r), + t.lineTo(-0.5 * o + fw * a, -0.5 * a - fw * o), + t.lineTo(-0.5 * s + fw * u, -0.5 * u - fw * s), + t.closePath(); + } + }, + gw = [Jx, tw, rw, uw, sw, cw, pw], + mw = function() { + var t = sx(Jx), + e = sx(64), + n = null; + function r() { + var r; + if ( + (n || (n = r = Ki()), + t.apply(this, arguments).draw(n, +e.apply(this, arguments)), + r) + ) + return (n = null), r + '' || null; + } + return ( + (r.type = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : sx(e)), r) + : t; + }), + (r.size = function(t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : sx(+t)), r) + : e; + }), + (r.context = function(t) { + return arguments.length ? ((n = null == t ? null : t), r) : n; + }), + r + ); + }, + vw = function() {}; + function yw(t, e, n) { + t._context.bezierCurveTo( + (2 * t._x0 + t._x1) / 3, + (2 * t._y0 + t._y1) / 3, + (t._x0 + 2 * t._x1) / 3, + (t._y0 + 2 * t._y1) / 3, + (t._x0 + 4 * t._x1 + e) / 6, + (t._y0 + 4 * t._y1 + n) / 6 + ); + } + function bw(t) { + this._context = t; + } + bw.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: + yw(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(t, e) { + switch (((t = +t), (e = +e), this._point)) { + case 0: + (this._point = 1), + this._line + ? this._context.lineTo(t, e) + : this._context.moveTo(t, e); + 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: + yw(this, t, e); + } + (this._x0 = this._x1), + (this._x1 = t), + (this._y0 = this._y1), + (this._y1 = e); + } + }; + var _w = function(t) { + return new bw(t); + }; + function xw(t) { + this._context = t; + } + xw.prototype = { + areaStart: vw, + areaEnd: vw, + 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(t, e) { + switch (((t = +t), (e = +e), this._point)) { + case 0: + (this._point = 1), (this._x2 = t), (this._y2 = e); + break; + case 1: + (this._point = 2), (this._x3 = t), (this._y3 = e); + break; + case 2: + (this._point = 3), + (this._x4 = t), + (this._y4 = e), + this._context.moveTo( + (this._x0 + 4 * this._x1 + t) / 6, + (this._y0 + 4 * this._y1 + e) / 6 + ); + break; + default: + yw(this, t, e); + } + (this._x0 = this._x1), + (this._x1 = t), + (this._y0 = this._y1), + (this._y1 = e); + } + }; + var ww = function(t) { + return new xw(t); + }; + function Sw(t) { + this._context = t; + } + Sw.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(t, e) { + switch (((t = +t), (e = +e), 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 + t) / 6, + r = (this._y0 + 4 * this._y1 + e) / 6; + this._line + ? this._context.lineTo(n, r) + : this._context.moveTo(n, r); + break; + case 3: + this._point = 4; + default: + yw(this, t, e); + } + (this._x0 = this._x1), + (this._x1 = t), + (this._y0 = this._y1), + (this._y1 = e); + } + }; + var Ew = function(t) { + return new Sw(t); + }; + function kw(t, e) { + (this._basis = new bw(t)), (this._beta = e); + } + kw.prototype = { + lineStart: function() { + (this._x = []), (this._y = []), this._basis.lineStart(); + }, + lineEnd: function() { + var t = this._x, + e = this._y, + n = t.length - 1; + if (n > 0) + for ( + var r, i = t[0], o = e[0], a = t[n] - i, s = e[n] - o, u = -1; + ++u <= n; + + ) + (r = u / n), + this._basis.point( + this._beta * t[u] + (1 - this._beta) * (i + r * a), + this._beta * e[u] + (1 - this._beta) * (o + r * s) + ); + (this._x = this._y = null), this._basis.lineEnd(); + }, + point: function(t, e) { + this._x.push(+t), this._y.push(+e); + } + }; + var Aw = (function t(e) { + function n(t) { + return 1 === e ? new bw(t) : new kw(t, e); + } + return ( + (n.beta = function(e) { + return t(+e); + }), + n + ); + })(0.85); + function Tw(t, e, n) { + t._context.bezierCurveTo( + t._x1 + t._k * (t._x2 - t._x0), + t._y1 + t._k * (t._y2 - t._y0), + t._x2 + t._k * (t._x1 - e), + t._y2 + t._k * (t._y1 - n), + t._x2, + t._y2 + ); + } + function Cw(t, e) { + (this._context = t), (this._k = (1 - e) / 6); + } + Cw.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: + Tw(this, this._x1, this._y1); + } + (this._line || (0 !== this._line && 1 === this._point)) && + this._context.closePath(), + (this._line = 1 - this._line); + }, + point: function(t, e) { + switch (((t = +t), (e = +e), this._point)) { + case 0: + (this._point = 1), + this._line + ? this._context.lineTo(t, e) + : this._context.moveTo(t, e); + break; + case 1: + (this._point = 2), (this._x1 = t), (this._y1 = e); + break; + case 2: + this._point = 3; + default: + Tw(this, t, e); + } + (this._x0 = this._x1), + (this._x1 = this._x2), + (this._x2 = t), + (this._y0 = this._y1), + (this._y1 = this._y2), + (this._y2 = e); + } + }; + var Ow = (function t(e) { + function n(t) { + return new Cw(t, e); + } + return ( + (n.tension = function(e) { + return t(+e); + }), + n + ); + })(0); + function Pw(t, e) { + (this._context = t), (this._k = (1 - e) / 6); + } + Pw.prototype = { + areaStart: vw, + areaEnd: vw, + 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(t, e) { + switch (((t = +t), (e = +e), this._point)) { + case 0: + (this._point = 1), (this._x3 = t), (this._y3 = e); + break; + case 1: + (this._point = 2), + this._context.moveTo((this._x4 = t), (this._y4 = e)); + break; + case 2: + (this._point = 3), (this._x5 = t), (this._y5 = e); + break; + default: + Tw(this, t, e); + } + (this._x0 = this._x1), + (this._x1 = this._x2), + (this._x2 = t), + (this._y0 = this._y1), + (this._y1 = this._y2), + (this._y2 = e); + } + }; + var Mw = (function t(e) { + function n(t) { + return new Pw(t, e); + } + return ( + (n.tension = function(e) { + return t(+e); + }), + n + ); + })(0); + function Lw(t, e) { + (this._context = t), (this._k = (1 - e) / 6); + } + Lw.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(t, e) { + switch (((t = +t), (e = +e), 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: + Tw(this, t, e); + } + (this._x0 = this._x1), + (this._x1 = this._x2), + (this._x2 = t), + (this._y0 = this._y1), + (this._y1 = this._y2), + (this._y2 = e); + } + }; + var jw = (function t(e) { + function n(t) { + return new Lw(t, e); + } + return ( + (n.tension = function(e) { + return t(+e); + }), + n + ); + })(0); + function Dw(t, e, n) { + var r = t._x1, + i = t._y1, + o = t._x2, + a = t._y2; + if (t._l01_a > gx) { + var s = 2 * t._l01_2a + 3 * t._l01_a * t._l12_a + t._l12_2a, + u = 3 * t._l01_a * (t._l01_a + t._l12_a); + (r = (r * s - t._x0 * t._l12_2a + t._x2 * t._l01_2a) / u), + (i = (i * s - t._y0 * t._l12_2a + t._y2 * t._l01_2a) / u); + } + if (t._l23_a > gx) { + var l = 2 * t._l23_2a + 3 * t._l23_a * t._l12_a + t._l12_2a, + c = 3 * t._l23_a * (t._l23_a + t._l12_a); + (o = (o * l + t._x1 * t._l23_2a - e * t._l12_2a) / c), + (a = (a * l + t._y1 * t._l23_2a - n * t._l12_2a) / c); + } + t._context.bezierCurveTo(r, i, o, a, t._x2, t._y2); + } + function Rw(t, e) { + (this._context = t), (this._alpha = e); + } + Rw.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(t, e) { + if (((t = +t), (e = +e), this._point)) { + var n = this._x2 - t, + r = this._y2 - e; + 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(t, e) + : this._context.moveTo(t, e); + break; + case 1: + this._point = 2; + break; + case 2: + this._point = 3; + default: + Dw(this, t, e); + } + (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 = t), + (this._y0 = this._y1), + (this._y1 = this._y2), + (this._y2 = e); + } + }; + var zw = (function t(e) { + function n(t) { + return e ? new Rw(t, e) : new Cw(t, 0); + } + return ( + (n.alpha = function(e) { + return t(+e); + }), + n + ); + })(0.5); + function Nw(t, e) { + (this._context = t), (this._alpha = e); + } + Nw.prototype = { + areaStart: vw, + areaEnd: vw, + 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(t, e) { + if (((t = +t), (e = +e), this._point)) { + var n = this._x2 - t, + r = this._y2 - e; + 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 = t), (this._y3 = e); + break; + case 1: + (this._point = 2), + this._context.moveTo((this._x4 = t), (this._y4 = e)); + break; + case 2: + (this._point = 3), (this._x5 = t), (this._y5 = e); + break; + default: + Dw(this, t, e); + } + (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 = t), + (this._y0 = this._y1), + (this._y1 = this._y2), + (this._y2 = e); + } + }; + var Iw = (function t(e) { + function n(t) { + return e ? new Nw(t, e) : new Pw(t, 0); + } + return ( + (n.alpha = function(e) { + return t(+e); + }), + n + ); + })(0.5); + function Fw(t, e) { + (this._context = t), (this._alpha = e); + } + Fw.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(t, e) { + if (((t = +t), (e = +e), this._point)) { + var n = this._x2 - t, + r = this._y2 - e; + 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: + Dw(this, t, e); + } + (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 = t), + (this._y0 = this._y1), + (this._y1 = this._y2), + (this._y2 = e); + } + }; + var Vw = (function t(e) { + function n(t) { + return e ? new Fw(t, e) : new Lw(t, 0); + } + return ( + (n.alpha = function(e) { + return t(+e); + }), + n + ); + })(0.5); + function Bw(t) { + this._context = t; + } + Bw.prototype = { + areaStart: vw, + areaEnd: vw, + lineStart: function() { + this._point = 0; + }, + lineEnd: function() { + this._point && this._context.closePath(); + }, + point: function(t, e) { + (t = +t), + (e = +e), + this._point + ? this._context.lineTo(t, e) + : ((this._point = 1), this._context.moveTo(t, e)); + } + }; + var Gw = function(t) { + return new Bw(t); + }; + function Hw(t) { + return t < 0 ? -1 : 1; + } + function Uw(t, e, n) { + var r = t._x1 - t._x0, + i = e - t._x1, + o = (t._y1 - t._y0) / (r || (i < 0 && -0)), + a = (n - t._y1) / (i || (r < 0 && -0)), + s = (o * i + a * r) / (r + i); + return ( + (Hw(o) + Hw(a)) * + Math.min(Math.abs(o), Math.abs(a), 0.5 * Math.abs(s)) || 0 + ); + } + function qw(t, e) { + var n = t._x1 - t._x0; + return n ? ((3 * (t._y1 - t._y0)) / n - e) / 2 : e; + } + function Ww(t, e, n) { + var r = t._x0, + i = t._y0, + o = t._x1, + a = t._y1, + s = (o - r) / 3; + t._context.bezierCurveTo(r + s, i + s * e, o - s, a - s * n, o, a); + } + function Xw(t) { + this._context = t; + } + function Yw(t) { + this._context = new $w(t); + } + function $w(t) { + this._context = t; + } + function Kw(t) { + return new Xw(t); + } + function Qw(t) { + return new Yw(t); + } + function Zw(t) { + this._context = t; + } + function Jw(t) { + var e, + n, + r = t.length - 1, + i = new Array(r), + o = new Array(r), + a = new Array(r); + for (i[0] = 0, o[0] = 2, a[0] = t[0] + 2 * t[1], e = 1; e < r - 1; ++e) + (i[e] = 1), (o[e] = 4), (a[e] = 4 * t[e] + 2 * t[e + 1]); + for ( + i[r - 1] = 2, o[r - 1] = 7, a[r - 1] = 8 * t[r - 1] + t[r], e = 1; + e < r; + ++e + ) + (n = i[e] / o[e - 1]), (o[e] -= n), (a[e] -= n * a[e - 1]); + for (i[r - 1] = a[r - 1] / o[r - 1], e = r - 2; e >= 0; --e) + i[e] = (a[e] - i[e + 1]) / o[e]; + for (o[r - 1] = (t[r] + i[r - 1]) / 2, e = 0; e < r - 1; ++e) + o[e] = 2 * t[e + 1] - i[e + 1]; + return [i, o]; + } + (Xw.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: + Ww(this, this._t0, qw(this, this._t0)); + } + (this._line || (0 !== this._line && 1 === this._point)) && + this._context.closePath(), + (this._line = 1 - this._line); + }, + point: function(t, e) { + var n = NaN; + if (((e = +e), (t = +t) !== this._x1 || e !== this._y1)) { + switch (this._point) { + case 0: + (this._point = 1), + this._line + ? this._context.lineTo(t, e) + : this._context.moveTo(t, e); + break; + case 1: + this._point = 2; + break; + case 2: + (this._point = 3), Ww(this, qw(this, (n = Uw(this, t, e))), n); + break; + default: + Ww(this, this._t0, (n = Uw(this, t, e))); + } + (this._x0 = this._x1), + (this._x1 = t), + (this._y0 = this._y1), + (this._y1 = e), + (this._t0 = n); + } + } + }), + ((Yw.prototype = Object.create(Xw.prototype)).point = function(t, e) { + Xw.prototype.point.call(this, e, t); + }), + ($w.prototype = { + moveTo: function(t, e) { + this._context.moveTo(e, t); + }, + closePath: function() { + this._context.closePath(); + }, + lineTo: function(t, e) { + this._context.lineTo(e, t); + }, + bezierCurveTo: function(t, e, n, r, i, o) { + this._context.bezierCurveTo(e, t, r, n, o, i); + } + }), + (Zw.prototype = { + areaStart: function() { + this._line = 0; + }, + areaEnd: function() { + this._line = NaN; + }, + lineStart: function() { + (this._x = []), (this._y = []); + }, + lineEnd: function() { + var t = this._x, + e = this._y, + n = t.length; + if (n) + if ( + (this._line + ? this._context.lineTo(t[0], e[0]) + : this._context.moveTo(t[0], e[0]), + 2 === n) + ) + this._context.lineTo(t[1], e[1]); + else + for (var r = Jw(t), i = Jw(e), o = 0, a = 1; a < n; ++o, ++a) + this._context.bezierCurveTo( + r[0][o], + i[0][o], + r[1][o], + i[1][o], + t[a], + e[a] + ); + (this._line || (0 !== this._line && 1 === n)) && + this._context.closePath(), + (this._line = 1 - this._line), + (this._x = this._y = null); + }, + point: function(t, e) { + this._x.push(+t), this._y.push(+e); + } + }); + var tS = function(t) { + return new Zw(t); + }; + function eS(t, e) { + (this._context = t), (this._t = e); + } + eS.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(t, e) { + switch (((t = +t), (e = +e), this._point)) { + case 0: + (this._point = 1), + this._line + ? this._context.lineTo(t, e) + : this._context.moveTo(t, e); + break; + case 1: + this._point = 2; + default: + if (this._t <= 0) + this._context.lineTo(this._x, e), this._context.lineTo(t, e); + else { + var n = this._x * (1 - this._t) + t * this._t; + this._context.lineTo(n, this._y), this._context.lineTo(n, e); + } + } + (this._x = t), (this._y = e); + } + }; + var nS = function(t) { + return new eS(t, 0.5); + }; + function rS(t) { + return new eS(t, 0); + } + function iS(t) { + return new eS(t, 1); + } + var oS = function(t, e) { + if ((i = t.length) > 1) + for (var n, r, i, o = 1, a = t[e[0]], s = a.length; o < i; ++o) + for (r = a, a = t[e[o]], n = 0; n < s; ++n) + a[n][1] += a[n][0] = isNaN(r[n][1]) ? r[n][0] : r[n][1]; + }, + aS = function(t) { + for (var e = t.length, n = new Array(e); --e >= 0; ) n[e] = e; + return n; + }; + function sS(t, e) { + return t[e]; + } + var uS = function() { + var t = sx([]), + e = aS, + n = oS, + r = sS; + function i(i) { + var o, + a, + s = t.apply(this, arguments), + u = i.length, + l = s.length, + c = new Array(l); + for (o = 0; o < l; ++o) { + for ( + var f, d = s[o], h = (c[o] = new Array(u)), p = 0; + p < u; + ++p + ) + (h[p] = f = [0, +r(i[p], d, p, i)]), (f.data = i[p]); + h.key = d; + } + for (o = 0, a = e(c); o < l; ++o) c[a[o]].index = o; + return n(c, a), c; + } + return ( + (i.keys = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : sx(Hx.call(e))), i) + : t; + }), + (i.value = function(t) { + return arguments.length + ? ((r = 'function' == typeof t ? t : sx(+t)), i) + : r; + }), + (i.order = function(t) { + return arguments.length + ? ((e = + null == t + ? aS + : 'function' == typeof t + ? t + : sx(Hx.call(t))), + i) + : e; + }), + (i.offset = function(t) { + return arguments.length ? ((n = null == t ? oS : t), i) : n; + }), + i + ); + }, + lS = function(t, e) { + if ((r = t.length) > 0) { + for (var n, r, i, o = 0, a = t[0].length; o < a; ++o) { + for (i = n = 0; n < r; ++n) i += t[n][o][1] || 0; + if (i) for (n = 0; n < r; ++n) t[n][o][1] /= i; + } + oS(t, e); + } + }, + cS = function(t, e) { + if ((s = t.length) > 0) + for (var n, r, i, o, a, s, u = 0, l = t[e[0]].length; u < l; ++u) + for (o = a = 0, n = 0; n < s; ++n) + (i = (r = t[e[n]][u])[1] - r[0]) > 0 + ? ((r[0] = o), (r[1] = o += i)) + : i < 0 + ? ((r[1] = a), (r[0] = a += i)) + : ((r[0] = 0), (r[1] = i)); + }, + fS = function(t, e) { + if ((n = t.length) > 0) { + for (var n, r = 0, i = t[e[0]], o = i.length; r < o; ++r) { + for (var a = 0, s = 0; a < n; ++a) s += t[a][r][1] || 0; + i[r][1] += i[r][0] = -s / 2; + } + oS(t, e); + } + }, + dS = function(t, e) { + if ((i = t.length) > 0 && (r = (n = t[e[0]]).length) > 0) { + for (var n, r, i, o = 0, a = 1; a < r; ++a) { + for (var s = 0, u = 0, l = 0; s < i; ++s) { + for ( + var c = t[e[s]], + f = c[a][1] || 0, + d = (f - (c[a - 1][1] || 0)) / 2, + h = 0; + h < s; + ++h + ) { + var p = t[e[h]]; + d += (p[a][1] || 0) - (p[a - 1][1] || 0); + } + (u += f), (l += d * f); + } + (n[a - 1][1] += n[a - 1][0] = o), u && (o -= l / u); + } + (n[a - 1][1] += n[a - 1][0] = o), oS(t, e); + } + }, + hS = function(t) { + var e = t.map(pS); + return aS(t).sort(function(t, n) { + return e[t] - e[n]; + }); + }; + function pS(t) { + for (var e, n = -1, r = 0, i = t.length, o = -1 / 0; ++n < i; ) + (e = +t[n][1]) > o && ((o = e), (r = n)); + return r; + } + var gS = function(t) { + var e = t.map(mS); + return aS(t).sort(function(t, n) { + return e[t] - e[n]; + }); + }; + function mS(t) { + for (var e, n = 0, r = -1, i = t.length; ++r < i; ) + (e = +t[r][1]) && (n += e); + return n; + } + var vS = function(t) { + return gS(t).reverse(); + }, + yS = function(t) { + var e, + n, + r = t.length, + i = t.map(mS), + o = hS(t), + a = 0, + s = 0, + u = [], + l = []; + for (e = 0; e < r; ++e) + (n = o[e]), + a < s ? ((a += i[n]), u.push(n)) : ((s += i[n]), l.push(n)); + return l.reverse().concat(u); + }, + bS = function(t) { + return aS(t).reverse(); + }; + var _S = Date.prototype.toISOString + ? function(t) { + return t.toISOString(); + } + : Lv('%Y-%m-%dT%H:%M:%S.%LZ'); + var xS = +new Date('2000-01-01T00:00:00.000Z') + ? function(t) { + var e = new Date(t); + return isNaN(e) ? null : e; + } + : jv('%Y-%m-%dT%H:%M:%S.%LZ'), + wS = function(t, e, n) { + var r = new Kn(), + i = e; + return null == e + ? (r.restart(t, e, n), r) + : ((e = +e), + (n = null == n ? Yn() : +n), + r.restart( + function o(a) { + (a += i), r.restart(o, (i += e), n), t(a); + }, + e, + n + ), + r); + }, + SS = function(t) { + return function() { + return t; + }; + }; + function ES(t) { + return t[0]; + } + function kS(t) { + return t[1]; + } + function AS() { + this._ = null; + } + function TS(t) { + t.U = t.C = t.L = t.R = t.P = t.N = null; + } + function CS(t, e) { + var n = e, + r = e.R, + i = n.U; + i ? (i.L === n ? (i.L = r) : (i.R = r)) : (t._ = r), + (r.U = i), + (n.U = r), + (n.R = r.L), + n.R && (n.R.U = n), + (r.L = n); + } + function OS(t, e) { + var n = e, + r = e.L, + i = n.U; + i ? (i.L === n ? (i.L = r) : (i.R = r)) : (t._ = r), + (r.U = i), + (n.U = r), + (n.L = r.R), + n.L && (n.L.U = n), + (r.R = n); + } + function PS(t) { + for (; t.L; ) t = t.L; + return t; + } + AS.prototype = { + constructor: AS, + insert: function(t, e) { + var n, r, i; + if (t) { + if (((e.P = t), (e.N = t.N), t.N && (t.N.P = e), (t.N = e), t.R)) { + for (t = t.R; t.L; ) t = t.L; + t.L = e; + } else t.R = e; + n = t; + } else + this._ + ? ((t = PS(this._)), + (e.P = null), + (e.N = t), + (t.P = t.L = e), + (n = t)) + : ((e.P = e.N = null), (this._ = e), (n = null)); + for (e.L = e.R = null, e.U = n, e.C = !0, t = e; n && n.C; ) + n === (r = n.U).L + ? (i = r.R) && i.C + ? ((n.C = i.C = !1), (r.C = !0), (t = r)) + : (t === n.R && (CS(this, n), (n = (t = n).U)), + (n.C = !1), + (r.C = !0), + OS(this, r)) + : (i = r.L) && i.C + ? ((n.C = i.C = !1), (r.C = !0), (t = r)) + : (t === n.L && (OS(this, n), (n = (t = n).U)), + (n.C = !1), + (r.C = !0), + CS(this, r)), + (n = t.U); + this._.C = !1; + }, + remove: function(t) { + t.N && (t.N.P = t.P), t.P && (t.P.N = t.N), (t.N = t.P = null); + var e, + n, + r, + i = t.U, + o = t.L, + a = t.R; + if ( + ((n = o ? (a ? PS(a) : o) : a), + i ? (i.L === t ? (i.L = n) : (i.R = n)) : (this._ = n), + o && a + ? ((r = n.C), + (n.C = t.C), + (n.L = o), + (o.U = n), + n !== a + ? ((i = n.U), + (n.U = t.U), + (t = n.R), + (i.L = t), + (n.R = a), + (a.U = n)) + : ((n.U = i), (i = n), (t = n.R))) + : ((r = t.C), (t = n)), + t && (t.U = i), + !r) + ) + if (t && t.C) t.C = !1; + else { + do { + if (t === this._) break; + if (t === i.L) { + if ( + ((e = i.R).C && + ((e.C = !1), (i.C = !0), CS(this, i), (e = i.R)), + (e.L && e.L.C) || (e.R && e.R.C)) + ) { + (e.R && e.R.C) || + ((e.L.C = !1), (e.C = !0), OS(this, e), (e = i.R)), + (e.C = i.C), + (i.C = e.R.C = !1), + CS(this, i), + (t = this._); + break; + } + } else if ( + ((e = i.L).C && + ((e.C = !1), (i.C = !0), OS(this, i), (e = i.L)), + (e.L && e.L.C) || (e.R && e.R.C)) + ) { + (e.L && e.L.C) || + ((e.R.C = !1), (e.C = !0), CS(this, e), (e = i.L)), + (e.C = i.C), + (i.C = e.L.C = !1), + OS(this, i), + (t = this._); + break; + } + (e.C = !0), (t = i), (i = i.U); + } while (!t.C); + t && (t.C = !1); + } + } + }; + var MS = AS; + function LS(t, e, n, r) { + var i = [null, null], + o = nE.push(i) - 1; + return ( + (i.left = t), + (i.right = e), + n && DS(i, t, e, n), + r && DS(i, e, t, r), + tE[t.index].halfedges.push(o), + tE[e.index].halfedges.push(o), + i + ); + } + function jS(t, e, n) { + var r = [e, n]; + return (r.left = t), r; + } + function DS(t, e, n, r) { + t[0] || t[1] + ? t.left === n + ? (t[1] = r) + : (t[0] = r) + : ((t[0] = r), (t.left = e), (t.right = n)); + } + function RS(t, e, n, r, i) { + var o, + a = t[0], + s = t[1], + u = a[0], + l = a[1], + c = 0, + f = 1, + d = s[0] - u, + h = s[1] - l; + if (((o = e - u), d || !(o > 0))) { + if (((o /= d), d < 0)) { + if (o < c) return; + o < f && (f = o); + } else if (d > 0) { + if (o > f) return; + o > c && (c = o); + } + if (((o = r - u), d || !(o < 0))) { + if (((o /= d), d < 0)) { + if (o > f) return; + o > c && (c = o); + } else if (d > 0) { + if (o < c) return; + o < f && (f = o); + } + if (((o = n - l), h || !(o > 0))) { + if (((o /= h), h < 0)) { + if (o < c) return; + o < f && (f = o); + } else if (h > 0) { + if (o > f) return; + o > c && (c = o); + } + if (((o = i - l), h || !(o < 0))) { + if (((o /= h), h < 0)) { + if (o > f) return; + o > c && (c = o); + } else if (h > 0) { + if (o < c) return; + o < f && (f = o); + } + return ( + !(c > 0 || f < 1) || + (c > 0 && (t[0] = [u + c * d, l + c * h]), + f < 1 && (t[1] = [u + f * d, l + f * h]), + !0) + ); + } + } + } + } + } + function zS(t, e, n, r, i) { + var o = t[1]; + if (o) return !0; + var a, + s, + u = t[0], + l = t.left, + c = t.right, + f = l[0], + d = l[1], + h = c[0], + p = c[1], + g = (f + h) / 2, + m = (d + p) / 2; + if (p === d) { + if (g < e || g >= r) return; + if (f > h) { + if (u) { + if (u[1] >= i) return; + } else u = [g, n]; + o = [g, i]; + } else { + if (u) { + if (u[1] < n) return; + } else u = [g, i]; + o = [g, n]; + } + } else if (((s = m - (a = (f - h) / (p - d)) * g), a < -1 || a > 1)) + if (f > h) { + if (u) { + if (u[1] >= i) return; + } else u = [(n - s) / a, n]; + o = [(i - s) / a, i]; + } else { + if (u) { + if (u[1] < n) return; + } else u = [(i - s) / a, i]; + o = [(n - s) / a, n]; + } + else if (d < p) { + if (u) { + if (u[0] >= r) return; + } else u = [e, a * e + s]; + o = [r, a * r + s]; + } else { + if (u) { + if (u[0] < e) return; + } else u = [r, a * r + s]; + o = [e, a * e + s]; + } + return (t[0] = u), (t[1] = o), !0; + } + function NS(t, e) { + var n = t.site, + r = e.left, + i = e.right; + return ( + n === i && ((i = r), (r = n)), + i + ? Math.atan2(i[1] - r[1], i[0] - r[0]) + : (n === r ? ((r = e[1]), (i = e[0])) : ((r = e[0]), (i = e[1])), + Math.atan2(r[0] - i[0], i[1] - r[1])) + ); + } + function IS(t, e) { + return e[+(e.left !== t.site)]; + } + function FS(t, e) { + return e[+(e.left === t.site)]; + } + var VS, + BS = []; + function GS() { + TS(this), (this.x = this.y = this.arc = this.site = this.cy = null); + } + function HS(t) { + var e = t.P, + n = t.N; + if (e && n) { + var r = e.site, + i = t.site, + o = n.site; + if (r !== o) { + var a = i[0], + s = i[1], + u = r[0] - a, + l = r[1] - s, + c = o[0] - a, + f = o[1] - s, + d = 2 * (u * f - l * c); + if (!(d >= -iE)) { + var h = u * u + l * l, + p = c * c + f * f, + g = (f * h - l * p) / d, + m = (u * p - c * h) / d, + v = BS.pop() || new GS(); + (v.arc = t), + (v.site = i), + (v.x = g + a), + (v.y = (v.cy = m + s) + Math.sqrt(g * g + m * m)), + (t.circle = v); + for (var y = null, b = eE._; b; ) + if (v.y < b.y || (v.y === b.y && v.x <= b.x)) { + if (!b.L) { + y = b.P; + break; + } + b = b.L; + } else { + if (!b.R) { + y = b; + break; + } + b = b.R; + } + eE.insert(y, v), y || (VS = v); + } + } + } + } + function US(t) { + var e = t.circle; + e && + (e.P || (VS = e.N), + eE.remove(e), + BS.push(e), + TS(e), + (t.circle = null)); + } + var qS = []; + function WS() { + TS(this), (this.edge = this.site = this.circle = null); + } + function XS(t) { + var e = qS.pop() || new WS(); + return (e.site = t), e; + } + function YS(t) { + US(t), JS.remove(t), qS.push(t), TS(t); + } + function $S(t) { + var e = t.circle, + n = e.x, + r = e.cy, + i = [n, r], + o = t.P, + a = t.N, + s = [t]; + YS(t); + for ( + var u = o; + u.circle && + Math.abs(n - u.circle.x) < rE && + Math.abs(r - u.circle.cy) < rE; + + ) + (o = u.P), s.unshift(u), YS(u), (u = o); + s.unshift(u), US(u); + for ( + var l = a; + l.circle && + Math.abs(n - l.circle.x) < rE && + Math.abs(r - l.circle.cy) < rE; + + ) + (a = l.N), s.push(l), YS(l), (l = a); + s.push(l), US(l); + var c, + f = s.length; + for (c = 1; c < f; ++c) + (l = s[c]), (u = s[c - 1]), DS(l.edge, u.site, l.site, i); + (u = s[0]), + ((l = s[f - 1]).edge = LS(u.site, l.site, null, i)), + HS(u), + HS(l); + } + function KS(t) { + for (var e, n, r, i, o = t[0], a = t[1], s = JS._; s; ) + if ((r = QS(s, a) - o) > rE) s = s.L; + else { + if (!((i = o - ZS(s, a)) > rE)) { + r > -rE + ? ((e = s.P), (n = s)) + : i > -rE + ? ((e = s), (n = s.N)) + : (e = n = s); + break; + } + if (!s.R) { + e = s; + break; + } + s = s.R; + } + !(function(t) { + tE[t.index] = { site: t, halfedges: [] }; + })(t); + var u = XS(t); + if ((JS.insert(e, u), e || n)) { + if (e === n) + return ( + US(e), + (n = XS(e.site)), + JS.insert(u, n), + (u.edge = n.edge = LS(e.site, u.site)), + HS(e), + void HS(n) + ); + if (n) { + US(e), US(n); + var l = e.site, + c = l[0], + f = l[1], + d = t[0] - c, + h = t[1] - f, + p = n.site, + g = p[0] - c, + m = p[1] - f, + v = 2 * (d * m - h * g), + y = d * d + h * h, + b = g * g + m * m, + _ = [(m * y - h * b) / v + c, (d * b - g * y) / v + f]; + DS(n.edge, l, p, _), + (u.edge = LS(l, t, null, _)), + (n.edge = LS(t, p, null, _)), + HS(e), + HS(n); + } else u.edge = LS(e.site, u.site); + } + } + function QS(t, e) { + var n = t.site, + r = n[0], + i = n[1], + o = i - e; + if (!o) return r; + var a = t.P; + if (!a) return -1 / 0; + var s = (n = a.site)[0], + u = n[1], + l = u - e; + if (!l) return s; + var c = s - r, + f = 1 / o - 1 / l, + d = c / l; + return f + ? (-d + + Math.sqrt( + d * d - 2 * f * ((c * c) / (-2 * l) - u + l / 2 + i - o / 2) + )) / + f + + r + : (r + s) / 2; + } + function ZS(t, e) { + var n = t.N; + if (n) return QS(n, e); + var r = t.site; + return r[1] === e ? r[0] : 1 / 0; + } + var JS, + tE, + eE, + nE, + rE = 1e-6, + iE = 1e-12; + function oE(t, e) { + return e[1] - t[1] || e[0] - t[0]; + } + function aE(t, e) { + var n, + r, + i, + o = t.sort(oE).pop(); + for ( + nE = [], tE = new Array(t.length), JS = new MS(), eE = new MS(); + ; + + ) + if ( + ((i = VS), o && (!i || o[1] < i.y || (o[1] === i.y && o[0] < i.x))) + ) + (o[0] === n && o[1] === r) || (KS(o), (n = o[0]), (r = o[1])), + (o = t.pop()); + else { + if (!i) break; + $S(i.arc); + } + if ( + ((function() { + for (var t, e, n, r, i = 0, o = tE.length; i < o; ++i) + if ((t = tE[i]) && (r = (e = t.halfedges).length)) { + var a = new Array(r), + s = new Array(r); + for (n = 0; n < r; ++n) (a[n] = n), (s[n] = NS(t, nE[e[n]])); + for ( + a.sort(function(t, e) { + return s[e] - s[t]; + }), + n = 0; + n < r; + ++n + ) + s[n] = e[a[n]]; + for (n = 0; n < r; ++n) e[n] = s[n]; + } + })(), + e) + ) { + var a = +e[0][0], + s = +e[0][1], + u = +e[1][0], + l = +e[1][1]; + !(function(t, e, n, r) { + for (var i, o = nE.length; o--; ) + (zS((i = nE[o]), t, e, n, r) && + RS(i, t, e, n, r) && + (Math.abs(i[0][0] - i[1][0]) > rE || + Math.abs(i[0][1] - i[1][1]) > rE)) || + delete nE[o]; + })(a, s, u, l), + (function(t, e, n, r) { + var i, + o, + a, + s, + u, + l, + c, + f, + d, + h, + p, + g, + m = tE.length, + v = !0; + for (i = 0; i < m; ++i) + if ((o = tE[i])) { + for (a = o.site, s = (u = o.halfedges).length; s--; ) + nE[u[s]] || u.splice(s, 1); + for (s = 0, l = u.length; s < l; ) + (p = (h = FS(o, nE[u[s]]))[0]), + (g = h[1]), + (f = (c = IS(o, nE[u[++s % l]]))[0]), + (d = c[1]), + (Math.abs(p - f) > rE || Math.abs(g - d) > rE) && + (u.splice( + s, + 0, + nE.push( + jS( + a, + h, + Math.abs(p - t) < rE && r - g > rE + ? [t, Math.abs(f - t) < rE ? d : r] + : Math.abs(g - r) < rE && n - p > rE + ? [Math.abs(d - r) < rE ? f : n, r] + : Math.abs(p - n) < rE && g - e > rE + ? [n, Math.abs(f - n) < rE ? d : e] + : Math.abs(g - e) < rE && p - t > rE + ? [Math.abs(d - e) < rE ? f : t, e] + : null + ) + ) - 1 + ), + ++l); + l && (v = !1); + } + if (v) { + var y, + b, + _, + x = 1 / 0; + for (i = 0, v = null; i < m; ++i) + (o = tE[i]) && + (_ = (y = (a = o.site)[0] - t) * y + (b = a[1] - e) * b) < + x && + ((x = _), (v = o)); + if (v) { + var w = [t, e], + S = [t, r], + E = [n, r], + k = [n, e]; + v.halfedges.push( + nE.push(jS((a = v.site), w, S)) - 1, + nE.push(jS(a, S, E)) - 1, + nE.push(jS(a, E, k)) - 1, + nE.push(jS(a, k, w)) - 1 + ); + } + } + for (i = 0; i < m; ++i) + (o = tE[i]) && (o.halfedges.length || delete tE[i]); + })(a, s, u, l); + } + (this.edges = nE), (this.cells = tE), (JS = eE = nE = tE = null); + } + aE.prototype = { + constructor: aE, + polygons: function() { + var t = this.edges; + return this.cells.map(function(e) { + var n = e.halfedges.map(function(n) { + return IS(e, t[n]); + }); + return (n.data = e.site.data), n; + }); + }, + triangles: function() { + var t = [], + e = this.edges; + return ( + this.cells.forEach(function(n, r) { + if ((o = (i = n.halfedges).length)) + for ( + var i, + o, + a, + s, + u, + l, + c = n.site, + f = -1, + d = e[i[o - 1]], + h = d.left === c ? d.right : d.left; + ++f < o; + + ) + (a = h), + (h = (d = e[i[f]]).left === c ? d.right : d.left), + a && + h && + r < a.index && + r < h.index && + ((u = a), + (l = h), + ((s = c)[0] - l[0]) * (u[1] - s[1]) - + (s[0] - u[0]) * (l[1] - s[1]) < + 0) && + t.push([c.data, a.data, h.data]); + }), + t + ); + }, + links: function() { + return this.edges + .filter(function(t) { + return t.right; + }) + .map(function(t) { + return { source: t.left.data, target: t.right.data }; + }); + }, + find: function(t, e, n) { + for ( + var r, i, o = this, a = o._found || 0, s = o.cells.length; + !(i = o.cells[a]); + + ) + if (++a >= s) return null; + var u = t - i.site[0], + l = e - i.site[1], + c = u * u + l * l; + do { + (i = o.cells[(r = a)]), + (a = null), + i.halfedges.forEach(function(n) { + var r = o.edges[n], + s = r.left; + if ((s !== i.site && s) || (s = r.right)) { + var u = t - s[0], + l = e - s[1], + f = u * u + l * l; + f < c && ((c = f), (a = s.index)); + } + }); + } while (null !== a); + return (o._found = r), null == n || c <= n * n ? i.site : null; + } + }; + var sE = function() { + var t = ES, + e = kS, + n = null; + function r(r) { + return new aE( + r.map(function(n, i) { + var o = [ + Math.round(t(n, i, r) / rE) * rE, + Math.round(e(n, i, r) / rE) * rE + ]; + return (o.index = i), (o.data = n), o; + }), + n + ); + } + return ( + (r.polygons = function(t) { + return r(t).polygons(); + }), + (r.links = function(t) { + return r(t).links(); + }), + (r.triangles = function(t) { + return r(t).triangles(); + }), + (r.x = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : SS(+e)), r) + : t; + }), + (r.y = function(t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : SS(+t)), r) + : e; + }), + (r.extent = function(t) { + return arguments.length + ? ((n = + null == t + ? null + : [[+t[0][0], +t[0][1]], [+t[1][0], +t[1][1]]]), + r) + : n && [[n[0][0], n[0][1]], [n[1][0], n[1][1]]]; + }), + (r.size = function(t) { + return arguments.length + ? ((n = null == t ? null : [[0, 0], [+t[0], +t[1]]]), r) + : n && [n[1][0] - n[0][0], n[1][1] - n[0][1]]; + }), + r + ); + }, + uE = function(t) { + return function() { + return t; + }; + }; + function lE(t, e, n) { + (this.target = t), (this.type = e), (this.transform = n); + } + function cE(t, e, n) { + (this.k = t), (this.x = e), (this.y = n); + } + cE.prototype = { + constructor: cE, + scale: function(t) { + return 1 === t ? this : new cE(this.k * t, this.x, this.y); + }, + translate: function(t, e) { + return (0 === t) & (0 === e) + ? this + : new cE(this.k, this.x + this.k * t, this.y + this.k * e); + }, + apply: function(t) { + return [t[0] * this.k + this.x, t[1] * this.k + this.y]; + }, + applyX: function(t) { + return t * this.k + this.x; + }, + applyY: function(t) { + return t * this.k + this.y; + }, + invert: function(t) { + return [(t[0] - this.x) / this.k, (t[1] - this.y) / this.k]; + }, + invertX: function(t) { + return (t - this.x) / this.k; + }, + invertY: function(t) { + return (t - this.y) / this.k; + }, + rescaleX: function(t) { + return t.copy().domain( + t + .range() + .map(this.invertX, this) + .map(t.invert, t) + ); + }, + rescaleY: function(t) { + return t.copy().domain( + t + .range() + .map(this.invertY, this) + .map(t.invert, t) + ); + }, + toString: function() { + return ( + 'translate(' + this.x + ',' + this.y + ') scale(' + this.k + ')' + ); + } + }; + var fE = new cE(1, 0, 0); + function dE(t) { + for (; !t.__zoom; ) if (!(t = t.parentNode)) return fE; + return t.__zoom; + } + function hE() { + pe.stopImmediatePropagation(); + } + dE.prototype = cE.prototype; + var pE = function() { + pe.preventDefault(), pe.stopImmediatePropagation(); + }; + function gE() { + return !pe.ctrlKey && !pe.button; + } + function mE() { + var t = this; + return t instanceof SVGElement + ? (t = t.ownerSVGElement || t).hasAttribute('viewBox') + ? [ + [(t = t.viewBox.baseVal).x, t.y], + [t.x + t.width, t.y + t.height] + ] + : [[0, 0], [t.width.baseVal.value, t.height.baseVal.value]] + : [[0, 0], [t.clientWidth, t.clientHeight]]; + } + function vE() { + return this.__zoom || fE; + } + function yE() { + return ( + -pe.deltaY * (1 === pe.deltaMode ? 0.05 : pe.deltaMode ? 1 : 0.002) + ); + } + function bE() { + return navigator.maxTouchPoints || 'ontouchstart' in this; + } + function _E(t, e, n) { + var r = t.invertX(e[0][0]) - n[0][0], + i = t.invertX(e[1][0]) - n[1][0], + o = t.invertY(e[0][1]) - n[0][1], + a = t.invertY(e[1][1]) - n[1][1]; + return t.translate( + i > r ? (r + i) / 2 : Math.min(0, r) || Math.max(0, i), + a > o ? (o + a) / 2 : Math.min(0, o) || Math.max(0, a) + ); + } + var xE = function() { + var t, + e, + n = gE, + r = mE, + i = _E, + o = yE, + a = bE, + s = [0, 1 / 0], + u = [[-1 / 0, -1 / 0], [1 / 0, 1 / 0]], + l = 250, + c = Qp, + f = gt('start', 'zoom', 'end'), + d = 500, + h = 150, + p = 0; + function g(t) { + t.property('__zoom', vE) + .on('wheel.zoom', w) + .on('mousedown.zoom', S) + .on('dblclick.zoom', E) + .filter(a) + .on('touchstart.zoom', k) + .on('touchmove.zoom', A) + .on('touchend.zoom touchcancel.zoom', T) + .style('touch-action', 'none') + .style('-webkit-tap-highlight-color', 'rgba(0,0,0,0)'); + } + function m(t, e) { + return (e = Math.max(s[0], Math.min(s[1], e))) === t.k + ? t + : new cE(e, t.x, t.y); + } + function v(t, e, n) { + var r = e[0] - n[0] * t.k, + i = e[1] - n[1] * t.k; + return r === t.x && i === t.y ? t : new cE(t.k, r, i); + } + function y(t) { + return [(+t[0][0] + +t[1][0]) / 2, (+t[0][1] + +t[1][1]) / 2]; + } + function b(t, e, n) { + t.on('start.zoom', function() { + _(this, arguments).start(); + }) + .on('interrupt.zoom end.zoom', function() { + _(this, arguments).end(); + }) + .tween('zoom', function() { + var t = this, + i = arguments, + o = _(t, i), + a = r.apply(t, i), + s = + null == n ? y(a) : 'function' == typeof n ? n.apply(t, i) : n, + u = Math.max(a[1][0] - a[0][0], a[1][1] - a[0][1]), + l = t.__zoom, + f = 'function' == typeof e ? e.apply(t, i) : e, + d = c(l.invert(s).concat(u / l.k), f.invert(s).concat(u / f.k)); + return function(t) { + if (1 === t) t = f; + else { + var e = d(t), + n = u / e[2]; + t = new cE(n, s[0] - e[0] * n, s[1] - e[1] * n); + } + o.zoom(null, t); + }; + }); + } + function _(t, e, n) { + return (!n && t.__zooming) || new x(t, e); + } + function x(t, e) { + (this.that = t), + (this.args = e), + (this.active = 0), + (this.extent = r.apply(t, e)), + (this.taps = 0); + } + function w() { + if (n.apply(this, arguments)) { + var t = _(this, arguments), + e = this.__zoom, + r = Math.max( + s[0], + Math.min(s[1], e.k * Math.pow(2, o.apply(this, arguments))) + ), + a = In(this); + if (t.wheel) + (t.mouse[0][0] === a[0] && t.mouse[0][1] === a[1]) || + (t.mouse[1] = e.invert((t.mouse[0] = a))), + clearTimeout(t.wheel); + else { + if (e.k === r) return; + (t.mouse = [a, e.invert(a)]), _r(this), t.start(); + } + pE(), + (t.wheel = setTimeout(function() { + (t.wheel = null), t.end(); + }, h)), + t.zoom( + 'mouse', + i(v(m(e, r), t.mouse[0], t.mouse[1]), t.extent, u) + ); + } + } + function S() { + if (!e && n.apply(this, arguments)) { + var t = _(this, arguments, !0), + r = Ce(pe.view) + .on( + 'mousemove.zoom', + function() { + if ((pE(), !t.moved)) { + var e = pe.clientX - a, + n = pe.clientY - s; + t.moved = e * e + n * n > p; + } + t.zoom( + 'mouse', + i( + v(t.that.__zoom, (t.mouse[0] = In(t.that)), t.mouse[1]), + t.extent, + u + ) + ); + }, + !0 + ) + .on( + 'mouseup.zoom', + function() { + r.on('mousemove.zoom mouseup.zoom', null), + Le(pe.view, t.moved), + pE(), + t.end(); + }, + !0 + ), + o = In(this), + a = pe.clientX, + s = pe.clientY; + Me(pe.view), + hE(), + (t.mouse = [o, this.__zoom.invert(o)]), + _r(this), + t.start(); + } + } + function E() { + if (n.apply(this, arguments)) { + var t = this.__zoom, + e = In(this), + o = t.invert(e), + a = t.k * (pe.shiftKey ? 0.5 : 2), + s = i(v(m(t, a), e, o), r.apply(this, arguments), u); + pE(), + l > 0 + ? Ce(this) + .transition() + .duration(l) + .call(b, s, e) + : Ce(this).call(g.transform, s); + } + } + function k() { + if (n.apply(this, arguments)) { + var e, + r, + i, + o, + a = pe.touches, + s = a.length, + u = _(this, arguments, pe.changedTouches.length === s); + for (hE(), r = 0; r < s; ++r) + (i = a[r]), + (o = [ + (o = Nn(this, a, i.identifier)), + this.__zoom.invert(o), + i.identifier + ]), + u.touch0 + ? u.touch1 || + u.touch0[2] === o[2] || + ((u.touch1 = o), (u.taps = 0)) + : ((u.touch0 = o), (e = !0), (u.taps = 1 + !!t)); + t && (t = clearTimeout(t)), + e && + (u.taps < 2 && + (t = setTimeout(function() { + t = null; + }, d)), + _r(this), + u.start()); + } + } + function A() { + if (this.__zooming) { + var e, + n, + r, + o, + a = _(this, arguments), + s = pe.changedTouches, + l = s.length; + for ( + pE(), t && (t = clearTimeout(t)), a.taps = 0, e = 0; + e < l; + ++e + ) + (n = s[e]), + (r = Nn(this, s, n.identifier)), + a.touch0 && a.touch0[2] === n.identifier + ? (a.touch0[0] = r) + : a.touch1 && + a.touch1[2] === n.identifier && + (a.touch1[0] = r); + if (((n = a.that.__zoom), a.touch1)) { + var c = a.touch0[0], + f = a.touch0[1], + d = a.touch1[0], + h = a.touch1[1], + p = (p = d[0] - c[0]) * p + (p = d[1] - c[1]) * p, + g = (g = h[0] - f[0]) * g + (g = h[1] - f[1]) * g; + (n = m(n, Math.sqrt(p / g))), + (r = [(c[0] + d[0]) / 2, (c[1] + d[1]) / 2]), + (o = [(f[0] + h[0]) / 2, (f[1] + h[1]) / 2]); + } else { + if (!a.touch0) return; + (r = a.touch0[0]), (o = a.touch0[1]); + } + a.zoom('touch', i(v(n, r, o), a.extent, u)); + } + } + function T() { + if (this.__zooming) { + var t, + n, + r = _(this, arguments), + i = pe.changedTouches, + o = i.length; + for ( + hE(), + e && clearTimeout(e), + e = setTimeout(function() { + e = null; + }, d), + t = 0; + t < o; + ++t + ) + (n = i[t]), + r.touch0 && r.touch0[2] === n.identifier + ? delete r.touch0 + : r.touch1 && r.touch1[2] === n.identifier && delete r.touch1; + if ( + (r.touch1 && + !r.touch0 && + ((r.touch0 = r.touch1), delete r.touch1), + r.touch0) + ) + r.touch0[1] = this.__zoom.invert(r.touch0[0]); + else if ((r.end(), 2 === r.taps)) { + var a = Ce(this).on('dblclick.zoom'); + a && a.apply(this, arguments); + } + } + } + return ( + (g.transform = function(t, e, n) { + var r = t.selection ? t.selection() : t; + r.property('__zoom', vE), + t !== r + ? b(t, e, n) + : r.interrupt().each(function() { + _(this, arguments) + .start() + .zoom( + null, + 'function' == typeof e ? e.apply(this, arguments) : e + ) + .end(); + }); + }), + (g.scaleBy = function(t, e, n) { + g.scaleTo( + t, + function() { + var t = this.__zoom.k, + n = 'function' == typeof e ? e.apply(this, arguments) : e; + return t * n; + }, + n + ); + }), + (g.scaleTo = function(t, e, n) { + g.transform( + t, + function() { + var t = r.apply(this, arguments), + o = this.__zoom, + a = + null == n + ? y(t) + : 'function' == typeof n + ? n.apply(this, arguments) + : n, + s = o.invert(a), + l = 'function' == typeof e ? e.apply(this, arguments) : e; + return i(v(m(o, l), a, s), t, u); + }, + n + ); + }), + (g.translateBy = function(t, e, n) { + g.transform(t, function() { + return i( + this.__zoom.translate( + 'function' == typeof e ? e.apply(this, arguments) : e, + 'function' == typeof n ? n.apply(this, arguments) : n + ), + r.apply(this, arguments), + u + ); + }); + }), + (g.translateTo = function(t, e, n, o) { + g.transform( + t, + function() { + var t = r.apply(this, arguments), + a = this.__zoom, + s = + null == o + ? y(t) + : 'function' == typeof o + ? o.apply(this, arguments) + : o; + return i( + fE + .translate(s[0], s[1]) + .scale(a.k) + .translate( + 'function' == typeof e ? -e.apply(this, arguments) : -e, + 'function' == typeof n ? -n.apply(this, arguments) : -n + ), + t, + u + ); + }, + o + ); + }), + (x.prototype = { + start: function() { + return ( + 1 == ++this.active && + ((this.that.__zooming = this), this.emit('start')), + this + ); + }, + zoom: function(t, e) { + return ( + this.mouse && + 'mouse' !== t && + (this.mouse[1] = e.invert(this.mouse[0])), + this.touch0 && + 'touch' !== t && + (this.touch0[1] = e.invert(this.touch0[0])), + this.touch1 && + 'touch' !== t && + (this.touch1[1] = e.invert(this.touch1[0])), + (this.that.__zoom = e), + this.emit('zoom'), + this + ); + }, + end: function() { + return ( + 0 == --this.active && + (delete this.that.__zooming, this.emit('end')), + this + ); + }, + emit: function(t) { + _e(new lE(g, t, this.that.__zoom), f.apply, f, [ + t, + this.that, + this.args + ]); + } + }), + (g.wheelDelta = function(t) { + return arguments.length + ? ((o = 'function' == typeof t ? t : uE(+t)), g) + : o; + }), + (g.filter = function(t) { + return arguments.length + ? ((n = 'function' == typeof t ? t : uE(!!t)), g) + : n; + }), + (g.touchable = function(t) { + return arguments.length + ? ((a = 'function' == typeof t ? t : uE(!!t)), g) + : a; + }), + (g.extent = function(t) { + return arguments.length + ? ((r = + 'function' == typeof t + ? t + : uE([[+t[0][0], +t[0][1]], [+t[1][0], +t[1][1]]])), + g) + : r; + }), + (g.scaleExtent = function(t) { + return arguments.length + ? ((s[0] = +t[0]), (s[1] = +t[1]), g) + : [s[0], s[1]]; + }), + (g.translateExtent = function(t) { + return arguments.length + ? ((u[0][0] = +t[0][0]), + (u[1][0] = +t[1][0]), + (u[0][1] = +t[0][1]), + (u[1][1] = +t[1][1]), + g) + : [[u[0][0], u[0][1]], [u[1][0], u[1][1]]]; + }), + (g.constrain = function(t) { + return arguments.length ? ((i = t), g) : i; + }), + (g.duration = function(t) { + return arguments.length ? ((l = +t), g) : l; + }), + (g.interpolate = function(t) { + return arguments.length ? ((c = t), g) : c; + }), + (g.on = function() { + var t = f.on.apply(f, arguments); + return t === f ? g : t; + }), + (g.clickDistance = function(t) { + return arguments.length ? ((p = (t = +t) * t), g) : Math.sqrt(p); + }), + g + ); + }; + n.d(e, 'version', function() { + return '5.15.0'; + }), + n.d(e, 'bisect', function() { + return u; + }), + n.d(e, 'bisectRight', function() { + return a; + }), + n.d(e, 'bisectLeft', function() { + return s; + }), + n.d(e, 'ascending', function() { + return r; + }), + n.d(e, 'bisector', function() { + return i; + }), + n.d(e, 'cross', function() { + return f; + }), + n.d(e, 'descending', function() { + return d; + }), + n.d(e, 'deviation', function() { + return g; + }), + n.d(e, 'extent', function() { + return m; + }), + n.d(e, 'histogram', function() { + return P; + }), + n.d(e, 'thresholdFreedmanDiaconis', function() { + return L; + }), + n.d(e, 'thresholdScott', function() { + return j; + }), + n.d(e, 'thresholdSturges', function() { + return O; + }), + n.d(e, 'max', function() { + return D; + }), + n.d(e, 'mean', function() { + return R; + }), + n.d(e, 'median', function() { + return z; + }), + n.d(e, 'merge', function() { + return N; + }), + n.d(e, 'min', function() { + return I; + }), + n.d(e, 'pairs', function() { + return l; + }), + n.d(e, 'permute', function() { + return F; + }), + n.d(e, 'quantile', function() { + return M; + }), + n.d(e, 'range', function() { + return w; + }), + n.d(e, 'scan', function() { + return V; + }), + n.d(e, 'shuffle', function() { + return B; + }), + n.d(e, 'sum', function() { + return G; + }), + n.d(e, 'ticks', function() { + return A; + }), + n.d(e, 'tickIncrement', function() { + return T; + }), + n.d(e, 'tickStep', function() { + return C; + }), + n.d(e, 'transpose', function() { + return H; + }), + n.d(e, 'variance', function() { + return p; + }), + n.d(e, 'zip', function() { + return q; + }), + n.d(e, 'axisTop', function() { + return ot; + }), + n.d(e, 'axisRight', function() { + return at; + }), + n.d(e, 'axisBottom', function() { + return st; + }), + n.d(e, 'axisLeft', function() { + return ut; + }), + n.d(e, 'brush', function() { + return ji; + }), + n.d(e, 'brushX', function() { + return Mi; + }), + n.d(e, 'brushY', function() { + return Li; + }), + n.d(e, 'brushSelection', function() { + return Pi; + }), + n.d(e, 'chord', function() { + return Gi; + }), + n.d(e, 'ribbon', function() { + return no; + }), + n.d(e, 'nest', function() { + return ao; + }), + n.d(e, 'set', function() { + return go; + }), + n.d(e, 'map', function() { + return oo; + }), + n.d(e, 'keys', function() { + return mo; + }), + n.d(e, 'values', function() { + return vo; + }), + n.d(e, 'entries', function() { + return yo; + }), + n.d(e, 'color', function() { + return $e; + }), + n.d(e, 'rgb', function() { + return Je; + }), + n.d(e, 'hsl', function() { + return sn; + }), + n.d(e, 'lab', function() { + return Po; + }), + n.d(e, 'hcl', function() { + return Io; + }), + n.d(e, 'lch', function() { + return No; + }), + n.d(e, 'gray', function() { + return Oo; + }), + n.d(e, 'cubehelix', function() { + return Xo; + }), + n.d(e, 'contours', function() { + return ia; + }), + n.d(e, 'contourDensity', function() { + return ca; + }), + n.d(e, 'dispatch', function() { + return gt; + }), + n.d(e, 'drag', function() { + return va; + }), + n.d(e, 'dragDisable', function() { + return Me; + }), + n.d(e, 'dragEnable', function() { + return Le; + }), + n.d(e, 'dsvFormat', function() { + return Ta; + }), + n.d(e, 'csvParse', function() { + return Oa; + }), + n.d(e, 'csvParseRows', function() { + return Pa; + }), + n.d(e, 'csvFormat', function() { + return Ma; + }), + n.d(e, 'csvFormatBody', function() { + return La; + }), + n.d(e, 'csvFormatRows', function() { + return ja; + }), + n.d(e, 'csvFormatRow', function() { + return Da; + }), + n.d(e, 'csvFormatValue', function() { + return Ra; + }), + n.d(e, 'tsvParse', function() { + return Na; + }), + n.d(e, 'tsvParseRows', function() { + return Ia; + }), + n.d(e, 'tsvFormat', function() { + return Fa; + }), + n.d(e, 'tsvFormatBody', function() { + return Va; + }), + n.d(e, 'tsvFormatRows', function() { + return Ba; + }), + n.d(e, 'tsvFormatRow', function() { + return Ga; + }), + n.d(e, 'tsvFormatValue', function() { + return Ha; + }), + n.d(e, 'autoType', function() { + return Ua; + }), + n.d(e, 'easeLinear', function() { + return Wa; + }), + n.d(e, 'easeQuad', function() { + return $a; + }), + n.d(e, 'easeQuadIn', function() { + return Xa; + }), + n.d(e, 'easeQuadOut', function() { + return Ya; + }), + n.d(e, 'easeQuadInOut', function() { + return $a; + }), + n.d(e, 'easeCubic', function() { + return ni; + }), + n.d(e, 'easeCubicIn', function() { + return ti; + }), + n.d(e, 'easeCubicOut', function() { + return ei; + }), + n.d(e, 'easeCubicInOut', function() { + return ni; + }), + n.d(e, 'easePoly', function() { + return Za; + }), + n.d(e, 'easePolyIn', function() { + return Ka; + }), + n.d(e, 'easePolyOut', function() { + return Qa; + }), + n.d(e, 'easePolyInOut', function() { + return Za; + }), + n.d(e, 'easeSin', function() { + return rs; + }), + n.d(e, 'easeSinIn', function() { + return es; + }), + n.d(e, 'easeSinOut', function() { + return ns; + }), + n.d(e, 'easeSinInOut', function() { + return rs; + }), + n.d(e, 'easeExp', function() { + return as; + }), + n.d(e, 'easeExpIn', function() { + return is; + }), + n.d(e, 'easeExpOut', function() { + return os; + }), + n.d(e, 'easeExpInOut', function() { + return as; + }), + n.d(e, 'easeCircle', function() { + return ls; + }), + n.d(e, 'easeCircleIn', function() { + return ss; + }), + n.d(e, 'easeCircleOut', function() { + return us; + }), + n.d(e, 'easeCircleInOut', function() { + return ls; + }), + n.d(e, 'easeBounce', function() { + return xs; + }), + n.d(e, 'easeBounceIn', function() { + return _s; + }), + n.d(e, 'easeBounceOut', function() { + return xs; + }), + n.d(e, 'easeBounceInOut', function() { + return ws; + }), + n.d(e, 'easeBack', function() { + return ks; + }), + n.d(e, 'easeBackIn', function() { + return Ss; + }), + n.d(e, 'easeBackOut', function() { + return Es; + }), + n.d(e, 'easeBackInOut', function() { + return ks; + }), + n.d(e, 'easeElastic', function() { + return Cs; + }), + n.d(e, 'easeElasticIn', function() { + return Ts; + }), + n.d(e, 'easeElasticOut', function() { + return Cs; + }), + n.d(e, 'easeElasticInOut', function() { + return Os; + }), + n.d(e, 'blob', function() { + return Ms; + }), + n.d(e, 'buffer', function() { + return js; + }), + n.d(e, 'dsv', function() { + return Ns; + }), + n.d(e, 'csv', function() { + return Is; + }), + n.d(e, 'tsv', function() { + return Fs; + }), + n.d(e, 'image', function() { + return Vs; + }), + n.d(e, 'json', function() { + return Gs; + }), + n.d(e, 'text', function() { + return Rs; + }), + n.d(e, 'xml', function() { + return Us; + }), + n.d(e, 'html', function() { + return qs; + }), + n.d(e, 'svg', function() { + return Ws; + }), + n.d(e, 'forceCenter', function() { + return Xs; + }), + n.d(e, 'forceCollide', function() { + return au; + }), + n.d(e, 'forceLink', function() { + return lu; + }), + n.d(e, 'forceManyBody', function() { + return gu; + }), + n.d(e, 'forceRadial', function() { + return mu; + }), + n.d(e, 'forceSimulation', function() { + return pu; + }), + n.d(e, 'forceX', function() { + return vu; + }), + n.d(e, 'forceY', function() { + return yu; + }), + n.d(e, 'formatDefaultLocale', function() { + return Ru; + }), + n.d(e, 'format', function() { + return Au; + }), + n.d(e, 'formatPrefix', function() { + return Tu; + }), + n.d(e, 'formatLocale', function() { + return Du; + }), + n.d(e, 'formatSpecifier', function() { + return wu; + }), + n.d(e, 'FormatSpecifier', function() { + return Su; + }), + n.d(e, 'precisionFixed', function() { + return zu; + }), + n.d(e, 'precisionPrefix', function() { + return Nu; + }), + n.d(e, 'precisionRound', function() { + return Iu; + }), + n.d(e, 'geoArea', function() { + return Ml; + }), + n.d(e, 'geoBounds', function() { + return Sc; + }), + n.d(e, 'geoCentroid', function() { + return Rc; + }), + n.d(e, 'geoCircle', function() { + return Wc; + }), + n.d(e, 'geoClipAntimeridian', function() { + return of; + }), + n.d(e, 'geoClipCircle', function() { + return af; + }), + n.d(e, 'geoClipExtent', function() { + return pf; + }), + n.d(e, 'geoClipRectangle', function() { + return cf; + }), + n.d(e, 'geoContains', function() { + return Lf; + }), + n.d(e, 'geoDistance', function() { + return Sf; + }), + n.d(e, 'geoGraticule', function() { + return Rf; + }), + n.d(e, 'geoGraticule10', function() { + return zf; + }), + n.d(e, 'geoInterpolate', function() { + return Bf; + }), + n.d(e, 'geoLength', function() { + return _f; + }), + n.d(e, 'geoPath', function() { + return Fd; + }), + n.d(e, 'geoAlbers', function() { + return oh; + }), + n.d(e, 'geoAlbersUsa', function() { + return ah; + }), + n.d(e, 'geoAzimuthalEqualArea', function() { + return ch; + }), + n.d(e, 'geoAzimuthalEqualAreaRaw', function() { + return lh; + }), + n.d(e, 'geoAzimuthalEquidistant', function() { + return dh; + }), + n.d(e, 'geoAzimuthalEquidistantRaw', function() { + return fh; + }), + n.d(e, 'geoConicConformal', function() { + return yh; + }), + n.d(e, 'geoConicConformalRaw', function() { + return vh; + }), + n.d(e, 'geoConicEqualArea', function() { + return ih; + }), + n.d(e, 'geoConicEqualAreaRaw', function() { + return rh; + }), + n.d(e, 'geoConicEquidistant', function() { + return wh; + }), + n.d(e, 'geoConicEquidistantRaw', function() { + return xh; + }), + n.d(e, 'geoEqualEarth', function() { + return Oh; + }), + n.d(e, 'geoEqualEarthRaw', function() { + return Ch; + }), + n.d(e, 'geoEquirectangular', function() { + return _h; + }), + n.d(e, 'geoEquirectangularRaw', function() { + return bh; + }), + n.d(e, 'geoGnomonic', function() { + return Mh; + }), + n.d(e, 'geoGnomonicRaw', function() { + return Ph; + }), + n.d(e, 'geoIdentity', function() { + return jh; + }), + n.d(e, 'geoProjection', function() { + return th; + }), + n.d(e, 'geoProjectionMutator', function() { + return eh; + }), + n.d(e, 'geoMercator', function() { + return ph; + }), + n.d(e, 'geoMercatorRaw', function() { + return hh; + }), + n.d(e, 'geoNaturalEarth1', function() { + return Rh; + }), + n.d(e, 'geoNaturalEarth1Raw', function() { + return Dh; + }), + n.d(e, 'geoOrthographic', function() { + return Nh; + }), + n.d(e, 'geoOrthographicRaw', function() { + return zh; + }), + n.d(e, 'geoStereographic', function() { + return Fh; + }), + n.d(e, 'geoStereographicRaw', function() { + return Ih; + }), + n.d(e, 'geoTransverseMercator', function() { + return Bh; + }), + n.d(e, 'geoTransverseMercatorRaw', function() { + return Vh; + }), + n.d(e, 'geoRotation', function() { + return Hc; + }), + n.d(e, 'geoStream', function() { + return Sl; + }), + n.d(e, 'geoTransform', function() { + return Vd; + }), + n.d(e, 'cluster', function() { + return qh; + }), + n.d(e, 'hierarchy', function() { + return Xh; + }), + n.d(e, 'pack', function() { + return yp; + }), + n.d(e, 'packSiblings', function() { + return dp; + }), + n.d(e, 'packEnclose', function() { + return Jh; + }), + n.d(e, 'partition', function() { + return Ep; + }), + n.d(e, 'stratify', function() { + return Pp; + }), + n.d(e, 'tree', function() { + return Np; + }), + n.d(e, 'treemap', function() { + return Gp; + }), + n.d(e, 'treemapBinary', function() { + return Hp; + }), + n.d(e, 'treemapDice', function() { + return Sp; + }), + n.d(e, 'treemapSlice', function() { + return Ip; + }), + n.d(e, 'treemapSliceDice', function() { + return Up; + }), + n.d(e, 'treemapSquarify', function() { + return Bp; + }), + n.d(e, 'treemapResquarify', function() { + return qp; + }), + n.d(e, 'interpolate', function() { + return Dn; + }), + n.d(e, 'interpolateArray', function() { + return En; + }), + n.d(e, 'interpolateBasis', function() { + return fn; + }), + n.d(e, 'interpolateBasisClosed', function() { + return dn; + }), + n.d(e, 'interpolateDate', function() { + return An; + }), + n.d(e, 'interpolateDiscrete', function() { + return Wp; + }), + n.d(e, 'interpolateHue', function() { + return Xp; + }), + n.d(e, 'interpolateNumber', function() { + return Tn; + }), + n.d(e, 'interpolateNumberArray', function() { + return wn; + }), + n.d(e, 'interpolateObject', function() { + return Cn; + }), + n.d(e, 'interpolateRound', function() { + return Yp; + }), + n.d(e, 'interpolateString', function() { + return jn; + }), + n.d(e, 'interpolateTransformCss', function() { + return kr; + }), + n.d(e, 'interpolateTransformSvg', function() { + return Ar; + }), + n.d(e, 'interpolateZoom', function() { + return Qp; + }), + n.d(e, 'interpolateRgb', function() { + return yn; + }), + n.d(e, 'interpolateRgbBasis', function() { + return _n; + }), + n.d(e, 'interpolateRgbBasisClosed', function() { + return xn; + }), + n.d(e, 'interpolateHsl', function() { + return Jp; + }), + n.d(e, 'interpolateHslLong', function() { + return tg; + }), + n.d(e, 'interpolateLab', function() { + return eg; + }), + n.d(e, 'interpolateHcl', function() { + return rg; + }), + n.d(e, 'interpolateHclLong', function() { + return ig; + }), + n.d(e, 'interpolateCubehelix', function() { + return ag; + }), + n.d(e, 'interpolateCubehelixLong', function() { + return sg; + }), + n.d(e, 'piecewise', function() { + return ug; + }), + n.d(e, 'quantize', function() { + return lg; + }), + n.d(e, 'path', function() { + return Ki; + }), + n.d(e, 'polygonArea', function() { + return cg; + }), + n.d(e, 'polygonCentroid', function() { + return fg; + }), + n.d(e, 'polygonHull', function() { + return gg; + }), + n.d(e, 'polygonContains', function() { + return mg; + }), + n.d(e, 'polygonLength', function() { + return vg; + }), + n.d(e, 'quadtree', function() { + return tu; + }), + n.d(e, 'randomUniform', function() { + return bg; + }), + n.d(e, 'randomNormal', function() { + return _g; + }), + n.d(e, 'randomLogNormal', function() { + return xg; + }), + n.d(e, 'randomBates', function() { + return Sg; + }), + n.d(e, 'randomIrwinHall', function() { + return wg; + }), + n.d(e, 'randomExponential', function() { + return Eg; + }), + n.d(e, 'scaleBand', function() { + return Lg; + }), + n.d(e, 'scalePoint', function() { + return jg; + }), + n.d(e, 'scaleIdentity', function() { + return Yg; + }), + n.d(e, 'scaleLinear', function() { + return Xg; + }), + n.d(e, 'scaleLog', function() { + return rm; + }), + n.d(e, 'scaleSymlog', function() { + return sm; + }), + n.d(e, 'scaleOrdinal', function() { + return Mg; + }), + n.d(e, 'scaleImplicit', function() { + return Pg; + }), + n.d(e, 'scalePow', function() { + return dm; + }), + n.d(e, 'scaleSqrt', function() { + return hm; + }), + n.d(e, 'scaleQuantile', function() { + return pm; + }), + n.d(e, 'scaleQuantize', function() { + return gm; + }), + n.d(e, 'scaleThreshold', function() { + return mm; + }), + n.d(e, 'scaleTime', function() { + return nb; + }), + n.d(e, 'scaleUtc', function() { + return db; + }), + n.d(e, 'scaleSequential', function() { + return gb; + }), + n.d(e, 'scaleSequentialLog', function() { + return mb; + }), + n.d(e, 'scaleSequentialPow', function() { + return yb; + }), + n.d(e, 'scaleSequentialSqrt', function() { + return bb; + }), + n.d(e, 'scaleSequentialSymlog', function() { + return vb; + }), + n.d(e, 'scaleSequentialQuantile', function() { + return _b; + }), + n.d(e, 'scaleDiverging', function() { + return wb; + }), + n.d(e, 'scaleDivergingLog', function() { + return Sb; + }), + n.d(e, 'scaleDivergingPow', function() { + return kb; + }), + n.d(e, 'scaleDivergingSqrt', function() { + return Ab; + }), + n.d(e, 'scaleDivergingSymlog', function() { + return Eb; + }), + n.d(e, 'tickFormat', function() { + return qg; + }), + n.d(e, 'schemeCategory10', function() { + return Cb; + }), + n.d(e, 'schemeAccent', function() { + return Ob; + }), + n.d(e, 'schemeDark2', function() { + return Pb; + }), + n.d(e, 'schemePaired', function() { + return Mb; + }), + n.d(e, 'schemePastel1', function() { + return Lb; + }), + n.d(e, 'schemePastel2', function() { + return jb; + }), + n.d(e, 'schemeSet1', function() { + return Db; + }), + n.d(e, 'schemeSet2', function() { + return Rb; + }), + n.d(e, 'schemeSet3', function() { + return zb; + }), + n.d(e, 'schemeTableau10', function() { + return Nb; + }), + n.d(e, 'interpolateBrBG', function() { + return Vb; + }), + n.d(e, 'schemeBrBG', function() { + return Fb; + }), + n.d(e, 'interpolatePRGn', function() { + return Gb; + }), + n.d(e, 'schemePRGn', function() { + return Bb; + }), + n.d(e, 'interpolatePiYG', function() { + return Ub; + }), + n.d(e, 'schemePiYG', function() { + return Hb; + }), + n.d(e, 'interpolatePuOr', function() { + return Wb; + }), + n.d(e, 'schemePuOr', function() { + return qb; + }), + n.d(e, 'interpolateRdBu', function() { + return Yb; + }), + n.d(e, 'schemeRdBu', function() { + return Xb; + }), + n.d(e, 'interpolateRdGy', function() { + return Kb; + }), + n.d(e, 'schemeRdGy', function() { + return $b; + }), + n.d(e, 'interpolateRdYlBu', function() { + return Zb; + }), + n.d(e, 'schemeRdYlBu', function() { + return Qb; + }), + n.d(e, 'interpolateRdYlGn', function() { + return t_; + }), + n.d(e, 'schemeRdYlGn', function() { + return Jb; + }), + n.d(e, 'interpolateSpectral', function() { + return n_; + }), + n.d(e, 'schemeSpectral', function() { + return e_; + }), + n.d(e, 'interpolateBuGn', function() { + return i_; + }), + n.d(e, 'schemeBuGn', function() { + return r_; + }), + n.d(e, 'interpolateBuPu', function() { + return a_; + }), + n.d(e, 'schemeBuPu', function() { + return o_; + }), + n.d(e, 'interpolateGnBu', function() { + return u_; + }), + n.d(e, 'schemeGnBu', function() { + return s_; + }), + n.d(e, 'interpolateOrRd', function() { + return c_; + }), + n.d(e, 'schemeOrRd', function() { + return l_; + }), + n.d(e, 'interpolatePuBuGn', function() { + return d_; + }), + n.d(e, 'schemePuBuGn', function() { + return f_; + }), + n.d(e, 'interpolatePuBu', function() { + return p_; + }), + n.d(e, 'schemePuBu', function() { + return h_; + }), + n.d(e, 'interpolatePuRd', function() { + return m_; + }), + n.d(e, 'schemePuRd', function() { + return g_; + }), + n.d(e, 'interpolateRdPu', function() { + return y_; + }), + n.d(e, 'schemeRdPu', function() { + return v_; + }), + n.d(e, 'interpolateYlGnBu', function() { + return __; + }), + n.d(e, 'schemeYlGnBu', function() { + return b_; + }), + n.d(e, 'interpolateYlGn', function() { + return w_; + }), + n.d(e, 'schemeYlGn', function() { + return x_; + }), + n.d(e, 'interpolateYlOrBr', function() { + return E_; + }), + n.d(e, 'schemeYlOrBr', function() { + return S_; + }), + n.d(e, 'interpolateYlOrRd', function() { + return A_; + }), + n.d(e, 'schemeYlOrRd', function() { + return k_; + }), + n.d(e, 'interpolateBlues', function() { + return C_; + }), + n.d(e, 'schemeBlues', function() { + return T_; + }), + n.d(e, 'interpolateGreens', function() { + return P_; + }), + n.d(e, 'schemeGreens', function() { + return O_; + }), + n.d(e, 'interpolateGreys', function() { + return L_; + }), + n.d(e, 'schemeGreys', function() { + return M_; + }), + n.d(e, 'interpolatePurples', function() { + return D_; + }), + n.d(e, 'schemePurples', function() { + return j_; + }), + n.d(e, 'interpolateReds', function() { + return z_; + }), + n.d(e, 'schemeReds', function() { + return R_; + }), + n.d(e, 'interpolateOranges', function() { + return I_; + }), + n.d(e, 'schemeOranges', function() { + return N_; + }), + n.d(e, 'interpolateCividis', function() { + return F_; + }), + n.d(e, 'interpolateCubehelixDefault', function() { + return V_; + }), + n.d(e, 'interpolateRainbow', function() { + return U_; + }), + n.d(e, 'interpolateWarm', function() { + return B_; + }), + n.d(e, 'interpolateCool', function() { + return G_; + }), + n.d(e, 'interpolateSinebow', function() { + return Y_; + }), + n.d(e, 'interpolateTurbo', function() { + return $_; + }), + n.d(e, 'interpolateViridis', function() { + return Q_; + }), + n.d(e, 'interpolateMagma', function() { + return Z_; + }), + n.d(e, 'interpolateInferno', function() { + return J_; + }), + n.d(e, 'interpolatePlasma', function() { + return tx; + }), + n.d(e, 'create', function() { + return ex; + }), + n.d(e, 'creator', function() { + return ue; + }), + n.d(e, 'local', function() { + return rx; + }), + n.d(e, 'matcher', function() { + return _t; + }), + n.d(e, 'mouse', function() { + return In; + }), + n.d(e, 'namespace', function() { + return Ot; + }), + n.d(e, 'namespaces', function() { + return Ct; + }), + n.d(e, 'clientPoint', function() { + return zn; + }), + n.d(e, 'select', function() { + return Ce; + }), + n.d(e, 'selectAll', function() { + return ox; + }), + n.d(e, 'selection', function() { + return Te; + }), + n.d(e, 'selector', function() { + return vt; + }), + n.d(e, 'selectorAll', function() { + return bt; + }), + n.d(e, 'style', function() { + return Vt; + }), + n.d(e, 'touch', function() { + return Nn; + }), + n.d(e, 'touches', function() { + return ax; + }), + n.d(e, 'window', function() { + return zt; + }), + n.d(e, 'event', function() { + return pe; + }), + n.d(e, 'customEvent', function() { + return _e; + }), + n.d(e, 'arc', function() { + return Ax; + }), + n.d(e, 'area', function() { + return Lx; + }), + n.d(e, 'line', function() { + return Mx; + }), + n.d(e, 'pie', function() { + return Rx; + }), + n.d(e, 'areaRadial', function() { + return Bx; + }), + n.d(e, 'radialArea', function() { + return Bx; + }), + n.d(e, 'lineRadial', function() { + return Vx; + }), + n.d(e, 'radialLine', function() { + return Vx; + }), + n.d(e, 'pointRadial', function() { + return Gx; + }), + n.d(e, 'linkHorizontal', function() { + return Kx; + }), + n.d(e, 'linkVertical', function() { + return Qx; + }), + n.d(e, 'linkRadial', function() { + return Zx; + }), + n.d(e, 'symbol', function() { + return mw; + }), + n.d(e, 'symbols', function() { + return gw; + }), + n.d(e, 'symbolCircle', function() { + return Jx; + }), + n.d(e, 'symbolCross', function() { + return tw; + }), + n.d(e, 'symbolDiamond', function() { + return rw; + }), + n.d(e, 'symbolSquare', function() { + return uw; + }), + n.d(e, 'symbolStar', function() { + return sw; + }), + n.d(e, 'symbolTriangle', function() { + return cw; + }), + n.d(e, 'symbolWye', function() { + return pw; + }), + n.d(e, 'curveBasisClosed', function() { + return ww; + }), + n.d(e, 'curveBasisOpen', function() { + return Ew; + }), + n.d(e, 'curveBasis', function() { + return _w; + }), + n.d(e, 'curveBundle', function() { + return Aw; + }), + n.d(e, 'curveCardinalClosed', function() { + return Mw; + }), + n.d(e, 'curveCardinalOpen', function() { + return jw; + }), + n.d(e, 'curveCardinal', function() { + return Ow; + }), + n.d(e, 'curveCatmullRomClosed', function() { + return Iw; + }), + n.d(e, 'curveCatmullRomOpen', function() { + return Vw; + }), + n.d(e, 'curveCatmullRom', function() { + return zw; + }), + n.d(e, 'curveLinearClosed', function() { + return Gw; + }), + n.d(e, 'curveLinear', function() { + return Cx; + }), + n.d(e, 'curveMonotoneX', function() { + return Kw; + }), + n.d(e, 'curveMonotoneY', function() { + return Qw; + }), + n.d(e, 'curveNatural', function() { + return tS; + }), + n.d(e, 'curveStep', function() { + return nS; + }), + n.d(e, 'curveStepAfter', function() { + return iS; + }), + n.d(e, 'curveStepBefore', function() { + return rS; + }), + n.d(e, 'stack', function() { + return uS; + }), + n.d(e, 'stackOffsetExpand', function() { + return lS; + }), + n.d(e, 'stackOffsetDiverging', function() { + return cS; + }), + n.d(e, 'stackOffsetNone', function() { + return oS; + }), + n.d(e, 'stackOffsetSilhouette', function() { + return fS; + }), + n.d(e, 'stackOffsetWiggle', function() { + return dS; + }), + n.d(e, 'stackOrderAppearance', function() { + return hS; + }), + n.d(e, 'stackOrderAscending', function() { + return gS; + }), + n.d(e, 'stackOrderDescending', function() { + return vS; + }), + n.d(e, 'stackOrderInsideOut', function() { + return yS; + }), + n.d(e, 'stackOrderNone', function() { + return aS; + }), + n.d(e, 'stackOrderReverse', function() { + return bS; + }), + n.d(e, 'timeInterval', function() { + return bm; + }), + n.d(e, 'timeMillisecond', function() { + return nv; + }), + n.d(e, 'timeMilliseconds', function() { + return rv; + }), + n.d(e, 'utcMillisecond', function() { + return nv; + }), + n.d(e, 'utcMilliseconds', function() { + return rv; + }), + n.d(e, 'timeSecond', function() { + return Jm; + }), + n.d(e, 'timeSeconds', function() { + return tv; + }), + n.d(e, 'utcSecond', function() { + return Jm; + }), + n.d(e, 'utcSeconds', function() { + return tv; + }), + n.d(e, 'timeMinute', function() { + return Km; + }), + n.d(e, 'timeMinutes', function() { + return Qm; + }), + n.d(e, 'timeHour', function() { + return Xm; + }), + n.d(e, 'timeHours', function() { + return Ym; + }), + n.d(e, 'timeDay', function() { + return Um; + }), + n.d(e, 'timeDays', function() { + return qm; + }), + n.d(e, 'timeWeek', function() { + return Om; + }), + n.d(e, 'timeWeeks', function() { + return zm; + }), + n.d(e, 'timeSunday', function() { + return Om; + }), + n.d(e, 'timeSundays', function() { + return zm; + }), + n.d(e, 'timeMonday', function() { + return Pm; + }), + n.d(e, 'timeMondays', function() { + return Nm; + }), + n.d(e, 'timeTuesday', function() { + return Mm; + }), + n.d(e, 'timeTuesdays', function() { + return Im; + }), + n.d(e, 'timeWednesday', function() { + return Lm; + }), + n.d(e, 'timeWednesdays', function() { + return Fm; + }), + n.d(e, 'timeThursday', function() { + return jm; + }), + n.d(e, 'timeThursdays', function() { + return Vm; + }), + n.d(e, 'timeFriday', function() { + return Dm; + }), + n.d(e, 'timeFridays', function() { + return Bm; + }), + n.d(e, 'timeSaturday', function() { + return Rm; + }), + n.d(e, 'timeSaturdays', function() { + return Gm; + }), + n.d(e, 'timeMonth', function() { + return Em; + }), + n.d(e, 'timeMonths', function() { + return km; + }), + n.d(e, 'timeYear', function() { + return xm; + }), + n.d(e, 'timeYears', function() { + return wm; + }), + n.d(e, 'utcMinute', function() { + return cb; + }), + n.d(e, 'utcMinutes', function() { + return fb; + }), + n.d(e, 'utcHour', function() { + return sb; + }), + n.d(e, 'utcHours', function() { + return ub; + }), + n.d(e, 'utcDay', function() { + return _v; + }), + n.d(e, 'utcDays', function() { + return xv; + }), + n.d(e, 'utcWeek', function() { + return ov; + }), + n.d(e, 'utcWeeks', function() { + return dv; + }), + n.d(e, 'utcSunday', function() { + return ov; + }), + n.d(e, 'utcSundays', function() { + return dv; + }), + n.d(e, 'utcMonday', function() { + return av; + }), + n.d(e, 'utcMondays', function() { + return hv; + }), + n.d(e, 'utcTuesday', function() { + return sv; + }), + n.d(e, 'utcTuesdays', function() { + return pv; + }), + n.d(e, 'utcWednesday', function() { + return uv; + }), + n.d(e, 'utcWednesdays', function() { + return gv; + }), + n.d(e, 'utcThursday', function() { + return lv; + }), + n.d(e, 'utcThursdays', function() { + return mv; + }), + n.d(e, 'utcFriday', function() { + return cv; + }), + n.d(e, 'utcFridays', function() { + return vv; + }), + n.d(e, 'utcSaturday', function() { + return fv; + }), + n.d(e, 'utcSaturdays', function() { + return yv; + }), + n.d(e, 'utcMonth', function() { + return ib; + }), + n.d(e, 'utcMonths', function() { + return ob; + }), + n.d(e, 'utcYear', function() { + return Sv; + }), + n.d(e, 'utcYears', function() { + return Ev; + }), + n.d(e, 'timeFormatDefaultLocale', function() { + return qy; + }), + n.d(e, 'timeFormat', function() { + return Pv; + }), + n.d(e, 'timeParse', function() { + return Mv; + }), + n.d(e, 'utcFormat', function() { + return Lv; + }), + n.d(e, 'utcParse', function() { + return jv; + }), + n.d(e, 'timeFormatLocale', function() { + return Cv; + }), + n.d(e, 'isoFormat', function() { + return _S; + }), + n.d(e, 'isoParse', function() { + return xS; + }), + n.d(e, 'now', function() { + return Yn; + }), + n.d(e, 'timer', function() { + return Qn; + }), + n.d(e, 'timerFlush', function() { + return Zn; + }), + n.d(e, 'timeout', function() { + return nr; + }), + n.d(e, 'interval', function() { + return wS; + }), + n.d(e, 'transition', function() { + return Qr; + }), + n.d(e, 'active', function() { + return ai; + }), + n.d(e, 'interrupt', function() { + return _r; + }), + n.d(e, 'voronoi', function() { + return sE; + }), + n.d(e, 'zoom', function() { + return xE; + }), + n.d(e, 'zoomTransform', function() { + return dE; + }), + n.d(e, 'zoomIdentity', function() { + return fE; + }); + }, + function(t, e, n) { + 'use strict'; + (function(t, r) { + var i, + o = n(155); + i = + 'undefined' != typeof self + ? self + : 'undefined' != typeof window + ? window + : void 0 !== t + ? t + : r; + var a = Object(o.a)(i); + e.a = a; + }.call(this, n(13), n(178)(t))); + }, + function(t, e, n) { + var r = n(256); + (t.exports = h), + (t.exports.parse = o), + (t.exports.compile = function(t, e) { + return s(o(t, e)); + }), + (t.exports.tokensToFunction = s), + (t.exports.tokensToRegExp = d); + var i = new RegExp( + [ + '(\\\\.)', + '([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))' + ].join('|'), + 'g' + ); + function o(t, e) { + for ( + var n, r = [], o = 0, a = 0, s = '', c = (e && e.delimiter) || '/'; + null != (n = i.exec(t)); + + ) { + var f = n[0], + d = n[1], + h = n.index; + if (((s += t.slice(a, h)), (a = h + f.length), d)) s += d[1]; + else { + var p = t[a], + g = n[2], + m = n[3], + v = n[4], + y = n[5], + b = n[6], + _ = n[7]; + s && (r.push(s), (s = '')); + var x = null != g && null != p && p !== g, + w = '+' === b || '*' === b, + S = '?' === b || '*' === b, + E = n[2] || c, + k = v || y; + r.push({ + name: m || o++, + prefix: g || '', + delimiter: E, + optional: S, + repeat: w, + partial: x, + asterisk: !!_, + pattern: k ? l(k) : _ ? '.*' : '[^' + u(E) + ']+?' + }); + } + } + return a < t.length && (s += t.substr(a)), s && r.push(s), r; + } + function a(t) { + return encodeURI(t).replace(/[\/?#]/g, function(t) { + return ( + '%' + + t + .charCodeAt(0) + .toString(16) + .toUpperCase() + ); + }); + } + function s(t) { + for (var e = new Array(t.length), n = 0; n < t.length; n++) + 'object' == typeof t[n] && + (e[n] = new RegExp('^(?:' + t[n].pattern + ')$')); + return function(n, i) { + for ( + var o = '', + s = n || {}, + u = (i || {}).pretty ? a : encodeURIComponent, + l = 0; + l < t.length; + l++ + ) { + var c = t[l]; + if ('string' != typeof c) { + var f, + d = s[c.name]; + if (null == d) { + if (c.optional) { + c.partial && (o += c.prefix); + continue; + } + throw new TypeError('Expected "' + c.name + '" to be defined'); + } + if (r(d)) { + if (!c.repeat) + throw new TypeError( + 'Expected "' + + c.name + + '" to not repeat, but received `' + + JSON.stringify(d) + + '`' + ); + if (0 === d.length) { + if (c.optional) continue; + throw new TypeError( + 'Expected "' + c.name + '" to not be empty' + ); + } + for (var h = 0; h < d.length; h++) { + if (((f = u(d[h])), !e[l].test(f))) + throw new TypeError( + 'Expected all "' + + c.name + + '" to match "' + + c.pattern + + '", but received `' + + JSON.stringify(f) + + '`' + ); + o += (0 === h ? c.prefix : c.delimiter) + f; + } + } else { + if ( + ((f = c.asterisk + ? encodeURI(d).replace(/[?#]/g, function(t) { + return ( + '%' + + t + .charCodeAt(0) + .toString(16) + .toUpperCase() + ); + }) + : u(d)), + !e[l].test(f)) + ) + throw new TypeError( + 'Expected "' + + c.name + + '" to match "' + + c.pattern + + '", but received "' + + f + + '"' + ); + o += c.prefix + f; + } + } else o += c; + } + return o; + }; + } + function u(t) { + return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1'); + } + function l(t) { + return t.replace(/([=!:$\/()])/g, '\\$1'); + } + function c(t, e) { + return (t.keys = e), t; + } + function f(t) { + return t.sensitive ? '' : 'i'; + } + function d(t, e, n) { + r(e) || ((n = e || n), (e = [])); + for ( + var i = (n = n || {}).strict, o = !1 !== n.end, a = '', s = 0; + s < t.length; + s++ + ) { + var l = t[s]; + if ('string' == typeof l) a += u(l); + else { + var d = u(l.prefix), + h = '(?:' + l.pattern + ')'; + e.push(l), + l.repeat && (h += '(?:' + d + h + ')*'), + (a += h = l.optional + ? l.partial + ? d + '(' + h + ')?' + : '(?:' + d + '(' + h + '))?' + : d + '(' + h + ')'); + } + } + var p = u(n.delimiter || '/'), + g = a.slice(-p.length) === p; + return ( + i || (a = (g ? a.slice(0, -p.length) : a) + '(?:' + p + '(?=$))?'), + (a += o ? '$' : i && g ? '' : '(?=' + p + '|$)'), + c(new RegExp('^' + a, f(n)), e) + ); + } + function h(t, e, n) { + return ( + r(e) || ((n = e || n), (e = [])), + (n = n || {}), + t instanceof RegExp + ? (function(t, e) { + var n = t.source.match(/\((?!\?)/g); + if (n) + for (var r = 0; r < n.length; r++) + e.push({ + name: r, + prefix: null, + delimiter: null, + optional: !1, + repeat: !1, + partial: !1, + asterisk: !1, + pattern: null + }); + return c(t, e); + })(t, e) + : r(t) + ? (function(t, e, n) { + for (var r = [], i = 0; i < t.length; i++) + r.push(h(t[i], e, n).source); + return c(new RegExp('(?:' + r.join('|') + ')', f(n)), e); + })(t, e, n) + : (function(t, e, n) { + return d(o(t, n), e, n); + })(t, e, n) + ); + } + }, + function(t, e, n) { + t.exports = n(276); + }, + function(t, e, n) { + (function(e) { + var n = (function(t) { + var e = /\blang(?:uage)?-([\w-]+)\b/i, + n = 0, + r = { + manual: t.Prism && t.Prism.manual, + disableWorkerMessageHandler: + t.Prism && t.Prism.disableWorkerMessageHandler, + util: { + encode: function(t) { + return t instanceof i + ? new i(t.type, r.util.encode(t.content), t.alias) + : Array.isArray(t) + ? t.map(r.util.encode) + : t + .replace(/&/g, '&') + .replace(/ t.length) return; + if (!(x instanceof i)) { + if (g && b != e.length - 1) { + if (((d.lastIndex = _), !(T = d.exec(t)))) break; + for ( + var w = T.index + (p ? T[1].length : 0), + S = T.index + T[0].length, + E = b, + k = _, + A = e.length; + E < A && + (k < S || (!e[E].type && !e[E - 1].greedy)); + ++E + ) + w >= (k += e[E].length) && (++b, (_ = k)); + if (e[b] instanceof i) continue; + (C = E - b), (x = t.slice(_, k)), (T.index -= _); + } else { + d.lastIndex = 0; + var T = d.exec(x), + C = 1; + } + if (T) { + p && (m = T[1] ? T[1].length : 0); + S = (w = T.index + m) + (T = T[0].slice(m)).length; + var O = x.slice(0, w), + P = x.slice(S), + M = [b, C]; + O && (++b, (_ += O.length), M.push(O)); + var L = new i(l, h ? r.tokenize(T, h) : T, v, T, g); + if ( + (M.push(L), + P && M.push(P), + Array.prototype.splice.apply(e, M), + 1 != C && r.matchGrammar(t, e, n, b, _, !0, l), + s) + ) + break; + } else if (s) break; + } + } + } + } + }, + tokenize: function(t, e) { + var n = [t], + i = e.rest; + if (i) { + for (var o in i) e[o] = i[o]; + delete e.rest; + } + return r.matchGrammar(t, n, e, 0, 0, !1), n; + }, + hooks: { + all: {}, + add: function(t, e) { + var n = r.hooks.all; + (n[t] = n[t] || []), n[t].push(e); + }, + run: function(t, e) { + var n = r.hooks.all[t]; + if (n && n.length) for (var i, o = 0; (i = n[o++]); ) i(e); + } + }, + Token: i + }; + function i(t, e, n, r, i) { + (this.type = t), + (this.content = e), + (this.alias = n), + (this.length = 0 | (r || '').length), + (this.greedy = !!i); + } + if ( + ((t.Prism = r), + (i.stringify = function(t, e) { + if ('string' == typeof t) return t; + if (Array.isArray(t)) + return t + .map(function(t) { + return i.stringify(t, e); + }) + .join(''); + var n = { + type: t.type, + content: i.stringify(t.content, e), + tag: 'span', + classes: ['token', t.type], + attributes: {}, + language: e + }; + if (t.alias) { + var o = Array.isArray(t.alias) ? t.alias : [t.alias]; + Array.prototype.push.apply(n.classes, o); + } + r.hooks.run('wrap', n); + var a = Object.keys(n.attributes) + .map(function(t) { + return ( + t + + '="' + + (n.attributes[t] || '').replace(/"/g, '"') + + '"' + ); + }) + .join(' '); + return ( + '<' + + n.tag + + ' class="' + + n.classes.join(' ') + + '"' + + (a ? ' ' + a : '') + + '>' + + n.content + + '' + ); + }), + !t.document) + ) + return t.addEventListener + ? (r.disableWorkerMessageHandler || + t.addEventListener( + 'message', + function(e) { + var n = JSON.parse(e.data), + i = n.language, + o = n.code, + a = n.immediateClose; + t.postMessage(r.highlight(o, r.languages[i], i)), + a && t.close(); + }, + !1 + ), + r) + : r; + var o = + document.currentScript || + [].slice.call(document.getElementsByTagName('script')).pop(); + return ( + o && + ((r.filename = o.src), + r.manual || + o.hasAttribute('data-manual') || + ('loading' !== document.readyState + ? window.requestAnimationFrame + ? window.requestAnimationFrame(r.highlightAll) + : window.setTimeout(r.highlightAll, 16) + : document.addEventListener( + 'DOMContentLoaded', + r.highlightAll + ))), + r + ); + })( + 'undefined' != typeof window + ? window + : 'undefined' != typeof WorkerGlobalScope && + self instanceof WorkerGlobalScope + ? self + : {} + ); + t.exports && (t.exports = n), void 0 !== e && (e.Prism = n); + }.call(this, n(13))); + }, + function(t, e, n) { + (t.exports = n(124).default), + (t.exports.utils = n(44)), + (t.exports.Responsive = n(292).default), + (t.exports.Responsive.utils = n(127)), + (t.exports.WidthProvider = n(293).default); + }, + , + function(t, e, n) { + 'use strict'; + /* +object-assign +(c) Sindre Sorhus +@license MIT +*/ var r = + Object.getOwnPropertySymbols, + i = Object.prototype.hasOwnProperty, + o = Object.prototype.propertyIsEnumerable; + function a(t) { + if (null == t) + throw new TypeError( + 'Object.assign cannot be called with null or undefined' + ); + return Object(t); + } + t.exports = (function() { + try { + if (!Object.assign) return !1; + var t = new String('abc'); + if (((t[5] = 'de'), '5' === Object.getOwnPropertyNames(t)[0])) + return !1; + for (var e = {}, n = 0; n < 10; n++) + e['_' + String.fromCharCode(n)] = n; + if ( + '0123456789' !== + Object.getOwnPropertyNames(e) + .map(function(t) { + return e[t]; + }) + .join('') + ) + return !1; + var r = {}; + return ( + 'abcdefghijklmnopqrst'.split('').forEach(function(t) { + r[t] = t; + }), + 'abcdefghijklmnopqrst' === + Object.keys(Object.assign({}, r)).join('') + ); + } catch (t) { + return !1; + } + })() + ? Object.assign + : function(t, e) { + for (var n, s, u = a(t), l = 1; l < arguments.length; l++) { + for (var c in (n = Object(arguments[l]))) + i.call(n, c) && (u[c] = n[c]); + if (r) { + s = r(n); + for (var f = 0; f < s.length; f++) + o.call(n, s[f]) && (u[s[f]] = n[s[f]]); + } + } + return u; + }; + }, + function(t, e, n) { + var r = n(49), + i = n(179), + o = Object.prototype.hasOwnProperty; + t.exports = function(t) { + if (!r(t)) return i(t); + var e = []; + for (var n in Object(t)) + o.call(t, n) && 'constructor' != n && e.push(n); + return e; + }; + }, + function(t, e) { + t.exports = function(t, e) { + return function(n) { + return t(e(n)); + }; + }; + }, + function(t, e, n) { + (function(e) { + var n = 'object' == typeof e && e && e.Object === Object && e; + t.exports = n; + }.call(this, n(13))); + }, + function(t, e) { + var n = Function.prototype.toString; + t.exports = function(t) { + if (null != t) { + try { + return n.call(t); + } catch (t) {} + try { + return t + ''; + } catch (t) {} + } + return ''; + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = { + GLOBAL: { + HIDE: '__react_tooltip_hide_event', + REBUILD: '__react_tooltip_rebuild_event', + SHOW: '__react_tooltip_show_event' + } + }); + }, + function(t, e, n) { + var r = n(75), + i = n(41); + t.exports = function(t, e, n) { + ((void 0 === n || i(t[e], n)) && (void 0 !== n || e in t)) || + r(t, e, n); + }; + }, + function(t, e, n) { + var r = n(29), + i = (function() { + try { + var t = r(Object, 'defineProperty'); + return t({}, '', {}), t; + } catch (t) {} + })(); + t.exports = i; + }, + function(t, e, n) { + var r = n(230)(); + t.exports = r; + }, + function(t, e, n) { + (function(t) { + var r = n(22), + i = e && !e.nodeType && e, + o = i && 'object' == typeof t && t && !t.nodeType && t, + a = o && o.exports === i ? r.Buffer : void 0, + s = a ? a.allocUnsafe : void 0; + t.exports = function(t, e) { + if (e) return t.slice(); + var n = t.length, + r = s ? s(n) : new t.constructor(n); + return t.copy(r), r; + }; + }.call(this, n(40)(t))); + }, + function(t, e, n) { + var r = n(76); + t.exports = function(t, e) { + var n = e ? r(t.buffer) : t.buffer; + return new t.constructor(n, t.byteOffset, t.length); + }; + }, + function(t, e, n) { + var r = n(22).Uint8Array; + t.exports = r; + }, + function(t, e) { + t.exports = function(t, e) { + var n = -1, + r = t.length; + for (e || (e = Array(r)); ++n < r; ) e[n] = t[n]; + return e; + }; + }, + function(t, e, n) { + var r = n(232), + i = n(77), + o = n(49); + t.exports = function(t) { + return 'function' != typeof t.constructor || o(t) ? {} : r(i(t)); + }; + }, + function(t, e, n) { + var r = n(30), + i = n(77), + o = n(25), + a = '[object Object]', + s = Function.prototype, + u = Object.prototype, + l = s.toString, + c = u.hasOwnProperty, + f = l.call(Object); + t.exports = function(t) { + if (!o(t) || r(t) != a) return !1; + var e = i(t); + if (null === e) return !0; + var n = c.call(e, 'constructor') && e.constructor; + return 'function' == typeof n && n instanceof n && l.call(n) == f; + }; + }, + function(t, e) { + t.exports = function(t, e) { + if ( + ('constructor' !== e || 'function' != typeof t[e]) && + '__proto__' != e + ) + return t[e]; + }; + }, + function(t, e, n) { + var r = n(75), + i = n(41), + o = Object.prototype.hasOwnProperty; + t.exports = function(t, e, n) { + var a = t[e]; + (o.call(t, e) && i(a, n) && (void 0 !== n || e in t)) || r(t, e, n); + }; + }, + function(t, e, n) { + var r = n(235), + i = n(50), + o = n(14), + a = n(39), + s = n(78), + u = n(51), + l = Object.prototype.hasOwnProperty; + t.exports = function(t, e) { + var n = o(t), + c = !n && i(t), + f = !n && !c && a(t), + d = !n && !c && !f && u(t), + h = n || c || f || d, + p = h ? r(t.length, String) : [], + g = p.length; + for (var m in t) + (!e && !l.call(t, m)) || + (h && + ('length' == m || + (f && ('offset' == m || 'parent' == m)) || + (d && + ('buffer' == m || 'byteLength' == m || 'byteOffset' == m)) || + s(m, g))) || + p.push(m); + return p; + }; + }, + function(t, e) { + for (var n = [], r = 0; r < 256; ++r) + n[r] = (r + 256).toString(16).substr(1); + t.exports = function(t, e) { + var r = e || 0, + i = n; + return [ + i[t[r++]], + i[t[r++]], + i[t[r++]], + i[t[r++]], + '-', + i[t[r++]], + i[t[r++]], + '-', + i[t[r++]], + i[t[r++]], + '-', + i[t[r++]], + i[t[r++]], + '-', + i[t[r++]], + i[t[r++]], + i[t[r++]], + i[t[r++]], + i[t[r++]], + i[t[r++]] + ].join(''); + }; + }, + function(t, e) { + var n, + r, + i = (t.exports = {}); + function o() { + throw new Error('setTimeout has not been defined'); + } + function a() { + throw new Error('clearTimeout has not been defined'); + } + function s(t) { + if (n === setTimeout) return setTimeout(t, 0); + if ((n === o || !n) && setTimeout) + return (n = setTimeout), setTimeout(t, 0); + try { + return n(t, 0); + } catch (e) { + try { + return n.call(null, t, 0); + } catch (e) { + return n.call(this, t, 0); + } + } + } + !(function() { + try { + n = 'function' == typeof setTimeout ? setTimeout : o; + } catch (t) { + n = o; + } + try { + r = 'function' == typeof clearTimeout ? clearTimeout : a; + } catch (t) { + r = a; + } + })(); + var u, + l = [], + c = !1, + f = -1; + function d() { + c && + u && + ((c = !1), u.length ? (l = u.concat(l)) : (f = -1), l.length && h()); + } + function h() { + if (!c) { + var t = s(d); + c = !0; + for (var e = l.length; e; ) { + for (u = l, l = []; ++f < e; ) u && u[f].run(); + (f = -1), (e = l.length); + } + (u = null), + (c = !1), + (function(t) { + if (r === clearTimeout) return clearTimeout(t); + if ((r === a || !r) && clearTimeout) + return (r = clearTimeout), clearTimeout(t); + try { + r(t); + } catch (e) { + try { + return r.call(null, t); + } catch (e) { + return r.call(this, t); + } + } + })(t); + } + } + function p(t, e) { + (this.fun = t), (this.array = e); + } + function g() {} + (i.nextTick = function(t) { + var e = new Array(arguments.length - 1); + if (arguments.length > 1) + for (var n = 1; n < arguments.length; n++) e[n - 1] = arguments[n]; + l.push(new p(t, e)), 1 !== l.length || c || s(h); + }), + (p.prototype.run = function() { + this.fun.apply(null, this.array); + }), + (i.title = 'browser'), + (i.browser = !0), + (i.env = {}), + (i.argv = []), + (i.version = ''), + (i.versions = {}), + (i.on = g), + (i.addListener = g), + (i.once = g), + (i.off = g), + (i.removeListener = g), + (i.removeAllListeners = g), + (i.emit = g), + (i.prependListener = g), + (i.prependOnceListener = g), + (i.listeners = function(t) { + return []; + }), + (i.binding = function(t) { + throw new Error('process.binding is not supported'); + }), + (i.cwd = function() { + return '/'; + }), + (i.chdir = function(t) { + throw new Error('process.chdir is not supported'); + }), + (i.umask = function() { + return 0; + }); + }, + function(t, e, n) { + 'use strict'; + (e.__esModule = !0), + (e.default = e.EXITING = e.ENTERED = e.ENTERING = e.EXITED = e.UNMOUNTED = void 0); + var r = (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + if (Object.prototype.hasOwnProperty.call(t, n)) { + var r = + Object.defineProperty && Object.getOwnPropertyDescriptor + ? Object.getOwnPropertyDescriptor(t, n) + : {}; + r.get || r.set ? Object.defineProperty(e, n, r) : (e[n] = t[n]); + } + return (e.default = t), e; + })(n(1)), + i = s(n(0)), + o = s(n(7)), + a = n(116); + n(117); + function s(t) { + return t && t.__esModule ? t : { default: t }; + } + var u = 'unmounted'; + e.UNMOUNTED = u; + var l = 'exited'; + e.EXITED = l; + var c = 'entering'; + e.ENTERING = c; + var f = 'entered'; + e.ENTERED = f; + e.EXITING = 'exiting'; + var d = (function(t) { + var e, n; + function r(e, n) { + var r; + r = t.call(this, e, n) || this; + var i, + o = n.transitionGroup, + a = o && !o.isMounting ? e.enter : e.appear; + return ( + (r.appearStatus = null), + e.in + ? a + ? ((i = l), (r.appearStatus = c)) + : (i = f) + : (i = e.unmountOnExit || e.mountOnEnter ? u : l), + (r.state = { status: i }), + (r.nextCallback = null), + r + ); + } + (n = t), + ((e = r).prototype = Object.create(n.prototype)), + (e.prototype.constructor = e), + (e.__proto__ = n); + var a = r.prototype; + return ( + (a.getChildContext = function() { + return { transitionGroup: null }; + }), + (r.getDerivedStateFromProps = function(t, e) { + return t.in && e.status === u ? { status: l } : null; + }), + (a.componentDidMount = function() { + this.updateStatus(!0, this.appearStatus); + }), + (a.componentDidUpdate = function(t) { + var e = null; + if (t !== this.props) { + var n = this.state.status; + this.props.in + ? n !== c && n !== f && (e = c) + : (n !== c && n !== f) || (e = 'exiting'); + } + this.updateStatus(!1, e); + }), + (a.componentWillUnmount = function() { + this.cancelNextCallback(); + }), + (a.getTimeouts = function() { + var t, + e, + n, + r = this.props.timeout; + return ( + (t = e = n = r), + null != r && + 'number' != typeof r && + ((t = r.exit), + (e = r.enter), + (n = void 0 !== r.appear ? r.appear : e)), + { exit: t, enter: e, appear: n } + ); + }), + (a.updateStatus = function(t, e) { + if ((void 0 === t && (t = !1), null !== e)) { + this.cancelNextCallback(); + var n = o.default.findDOMNode(this); + e === c ? this.performEnter(n, t) : this.performExit(n); + } else + this.props.unmountOnExit && + this.state.status === l && + this.setState({ status: u }); + }), + (a.performEnter = function(t, e) { + var n = this, + r = this.props.enter, + i = this.context.transitionGroup + ? this.context.transitionGroup.isMounting + : e, + o = this.getTimeouts(), + a = i ? o.appear : o.enter; + e || r + ? (this.props.onEnter(t, i), + this.safeSetState({ status: c }, function() { + n.props.onEntering(t, i), + n.onTransitionEnd(t, a, function() { + n.safeSetState({ status: f }, function() { + n.props.onEntered(t, i); + }); + }); + })) + : this.safeSetState({ status: f }, function() { + n.props.onEntered(t); + }); + }), + (a.performExit = function(t) { + var e = this, + n = this.props.exit, + r = this.getTimeouts(); + n + ? (this.props.onExit(t), + this.safeSetState({ status: 'exiting' }, function() { + e.props.onExiting(t), + e.onTransitionEnd(t, r.exit, function() { + e.safeSetState({ status: l }, function() { + e.props.onExited(t); + }); + }); + })) + : this.safeSetState({ status: l }, function() { + e.props.onExited(t); + }); + }), + (a.cancelNextCallback = function() { + null !== this.nextCallback && + (this.nextCallback.cancel(), (this.nextCallback = null)); + }), + (a.safeSetState = function(t, e) { + (e = this.setNextCallback(e)), this.setState(t, e); + }), + (a.setNextCallback = function(t) { + var e = this, + n = !0; + return ( + (this.nextCallback = function(r) { + n && ((n = !1), (e.nextCallback = null), t(r)); + }), + (this.nextCallback.cancel = function() { + n = !1; + }), + this.nextCallback + ); + }), + (a.onTransitionEnd = function(t, e, n) { + this.setNextCallback(n); + var r = null == e && !this.props.addEndListener; + t && !r + ? (this.props.addEndListener && + this.props.addEndListener(t, this.nextCallback), + null != e && setTimeout(this.nextCallback, e)) + : setTimeout(this.nextCallback, 0); + }), + (a.render = function() { + var t = this.state.status; + if (t === u) return null; + var e = this.props, + n = e.children, + r = (function(t, e) { + if (null == t) return {}; + var n, + r, + i = {}, + o = Object.keys(t); + for (r = 0; r < o.length; r++) + (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); + return i; + })(e, ['children']); + if ( + (delete r.in, + delete r.mountOnEnter, + delete r.unmountOnExit, + delete r.appear, + delete r.enter, + delete r.exit, + delete r.timeout, + delete r.addEndListener, + delete r.onEnter, + delete r.onEntering, + delete r.onEntered, + delete r.onExit, + delete r.onExiting, + delete r.onExited, + 'function' == typeof n) + ) + return n(t, r); + var o = i.default.Children.only(n); + return i.default.cloneElement(o, r); + }), + r + ); + })(i.default.Component); + function h() {} + (d.contextTypes = { transitionGroup: r.object }), + (d.childContextTypes = { transitionGroup: function() {} }), + (d.propTypes = {}), + (d.defaultProps = { + in: !1, + mountOnEnter: !1, + unmountOnExit: !1, + appear: !1, + enter: !0, + exit: !0, + onEnter: h, + onEntering: h, + onEntered: h, + onExit: h, + onExiting: h, + onExited: h + }), + (d.UNMOUNTED = 0), + (d.EXITED = 1), + (d.ENTERING = 2), + (d.ENTERED = 3), + (d.EXITING = 4); + var p = (0, a.polyfill)(d); + e.default = p; + }, + function(t, e, n) { + 'use strict'; + function r() { + var t = this.constructor.getDerivedStateFromProps( + this.props, + this.state + ); + null != t && this.setState(t); + } + function i(t) { + this.setState( + function(e) { + var n = this.constructor.getDerivedStateFromProps(t, e); + return null != n ? n : null; + }.bind(this) + ); + } + function o(t, e) { + try { + var n = this.props, + r = this.state; + (this.props = t), + (this.state = e), + (this.__reactInternalSnapshotFlag = !0), + (this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(n, r)); + } finally { + (this.props = n), (this.state = r); + } + } + function a(t) { + var e = t.prototype; + if (!e || !e.isReactComponent) + throw new Error('Can only polyfill class components'); + if ( + 'function' != typeof t.getDerivedStateFromProps && + 'function' != typeof e.getSnapshotBeforeUpdate + ) + return t; + var n = null, + a = null, + s = null; + if ( + ('function' == typeof e.componentWillMount + ? (n = 'componentWillMount') + : 'function' == typeof e.UNSAFE_componentWillMount && + (n = 'UNSAFE_componentWillMount'), + 'function' == typeof e.componentWillReceiveProps + ? (a = 'componentWillReceiveProps') + : 'function' == typeof e.UNSAFE_componentWillReceiveProps && + (a = 'UNSAFE_componentWillReceiveProps'), + 'function' == typeof e.componentWillUpdate + ? (s = 'componentWillUpdate') + : 'function' == typeof e.UNSAFE_componentWillUpdate && + (s = 'UNSAFE_componentWillUpdate'), + null !== n || null !== a || null !== s) + ) { + var u = t.displayName || t.name, + l = + 'function' == typeof t.getDerivedStateFromProps + ? 'getDerivedStateFromProps()' + : 'getSnapshotBeforeUpdate()'; + throw Error( + 'Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' + + u + + ' uses ' + + l + + ' but also contains the following legacy lifecycles:' + + (null !== n ? '\n ' + n : '') + + (null !== a ? '\n ' + a : '') + + (null !== s ? '\n ' + s : '') + + '\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks' + ); + } + if ( + ('function' == typeof t.getDerivedStateFromProps && + ((e.componentWillMount = r), (e.componentWillReceiveProps = i)), + 'function' == typeof e.getSnapshotBeforeUpdate) + ) { + if ('function' != typeof e.componentDidUpdate) + throw new Error( + 'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype' + ); + e.componentWillUpdate = o; + var c = e.componentDidUpdate; + e.componentDidUpdate = function(t, e, n) { + var r = this.__reactInternalSnapshotFlag + ? this.__reactInternalSnapshot + : n; + c.call(this, t, e, r); + }; + } + return t; + } + n.r(e), + n.d(e, 'polyfill', function() { + return a; + }), + (r.__suppressDeprecationWarning = !0), + (i.__suppressDeprecationWarning = !0), + (o.__suppressDeprecationWarning = !0); + }, + function(t, e, n) { + 'use strict'; + (e.__esModule = !0), (e.classNamesShape = e.timeoutsShape = void 0); + var r; + (r = n(1)) && r.__esModule; + e.timeoutsShape = null; + e.classNamesShape = null; + }, + function(t, e, n) { + 'use strict'; + (e.__esModule = !0), (e.default = void 0); + var r = s(n(1)), + i = s(n(0)), + o = n(116), + a = n(264); + function s(t) { + return t && t.__esModule ? t : { default: t }; + } + function u() { + return (u = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); + } + return t; + }).apply(this, arguments); + } + function l(t) { + if (void 0 === t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return t; + } + var c = + Object.values || + function(t) { + return Object.keys(t).map(function(e) { + return t[e]; + }); + }, + f = (function(t) { + var e, n; + function r(e, n) { + var r, + i = (r = t.call(this, e, n) || this).handleExited.bind(l(l(r))); + return (r.state = { handleExited: i, firstRender: !0 }), r; + } + (n = t), + ((e = r).prototype = Object.create(n.prototype)), + (e.prototype.constructor = e), + (e.__proto__ = n); + var o = r.prototype; + return ( + (o.getChildContext = function() { + return { transitionGroup: { isMounting: !this.appeared } }; + }), + (o.componentDidMount = function() { + (this.appeared = !0), (this.mounted = !0); + }), + (o.componentWillUnmount = function() { + this.mounted = !1; + }), + (r.getDerivedStateFromProps = function(t, e) { + var n = e.children, + r = e.handleExited; + return { + children: e.firstRender + ? (0, a.getInitialChildMapping)(t, r) + : (0, a.getNextChildMapping)(t, n, r), + firstRender: !1 + }; + }), + (o.handleExited = function(t, e) { + var n = (0, a.getChildMapping)(this.props.children); + t.key in n || + (t.props.onExited && t.props.onExited(e), + this.mounted && + this.setState(function(e) { + var n = u({}, e.children); + return delete n[t.key], { children: n }; + })); + }), + (o.render = function() { + var t = this.props, + e = t.component, + n = t.childFactory, + r = (function(t, e) { + if (null == t) return {}; + var n, + r, + i = {}, + o = Object.keys(t); + for (r = 0; r < o.length; r++) + (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); + return i; + })(t, ['component', 'childFactory']), + o = c(this.state.children).map(n); + return ( + delete r.appear, + delete r.enter, + delete r.exit, + null === e ? o : i.default.createElement(e, r, o) + ); + }), + r + ); + })(i.default.Component); + (f.childContextTypes = { transitionGroup: r.default.object.isRequired }), + (f.propTypes = {}), + (f.defaultProps = { + component: 'div', + childFactory: function(t) { + return t; + } + }); + var d = (0, o.polyfill)(f); + (e.default = d), (t.exports = e.default); + }, + function(t, e, n) { + var r = n(266), + i = n(269), + o = n(270), + a = 1, + s = 2; + t.exports = function(t, e, n, u, l, c) { + var f = n & a, + d = t.length, + h = e.length; + if (d != h && !(f && h > d)) return !1; + var p = c.get(t); + if (p && c.get(e)) return p == e; + var g = -1, + m = !0, + v = n & s ? new r() : void 0; + for (c.set(t, e), c.set(e, t); ++g < d; ) { + var y = t[g], + b = e[g]; + if (u) var _ = f ? u(b, y, g, e, t, c) : u(y, b, g, t, e, c); + if (void 0 !== _) { + if (_) continue; + m = !1; + break; + } + if (v) { + if ( + !i(e, function(t, e) { + if (!o(v, e) && (y === t || l(y, t, n, u, c))) return v.push(e); + }) + ) { + m = !1; + break; + } + } else if (y !== b && !l(y, b, n, u, c)) { + m = !1; + break; + } + } + return c.delete(t), c.delete(e), m; + }; + }, + function(t, e, n) { + var r = n(121), + i = n(80), + o = n(43); + t.exports = function(t) { + return r(t, o, i); + }; + }, + function(t, e, n) { + var r = n(122), + i = n(14); + t.exports = function(t, e, n) { + var o = e(t); + return i(t) ? o : r(o, n(t)); + }; + }, + function(t, e) { + t.exports = function(t, e) { + for (var n = -1, r = e.length, i = t.length; ++n < r; ) t[i + n] = e[n]; + return t; + }; + }, + function(t, e) { + t.exports = function() { + return []; + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = void 0); + var r = l(n(0)), + i = l(n(1)), + o = l(n(81)), + a = l(n(24)), + s = n(44), + u = l(n(288)); + function l(t) { + return t && t.__esModule ? t : { default: t }; + } + function c(t) { + return (c = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function(t) { + return typeof t; + } + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t; + })(t); + } + function f(t, e) { + var n = Object.keys(t); + if (Object.getOwnPropertySymbols) { + var r = Object.getOwnPropertySymbols(t); + e && + (r = r.filter(function(e) { + return Object.getOwnPropertyDescriptor(t, e).enumerable; + })), + n.push.apply(n, r); + } + return n; + } + function d(t) { + for (var e = 1; e < arguments.length; e++) { + var n = null != arguments[e] ? arguments[e] : {}; + e % 2 + ? f(n, !0).forEach(function(e) { + y(t, e, n[e]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) + : f(n).forEach(function(e) { + Object.defineProperty( + t, + e, + Object.getOwnPropertyDescriptor(n, e) + ); + }); + } + return t; + } + function h(t) { + return ( + (function(t) { + if (Array.isArray(t)) { + for (var e = 0, n = new Array(t.length); e < t.length; e++) + n[e] = t[e]; + return n; + } + })(t) || + (function(t) { + if ( + Symbol.iterator in Object(t) || + '[object Arguments]' === Object.prototype.toString.call(t) + ) + return Array.from(t); + })(t) || + (function() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance' + ); + })() + ); + } + function p(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + function g(t) { + return (g = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + })(t); + } + function m(t) { + if (void 0 === t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return t; + } + function v(t, e) { + return (v = + Object.setPrototypeOf || + function(t, e) { + return (t.__proto__ = e), t; + })(t, e); + } + function y(t, e, n) { + return ( + e in t + ? Object.defineProperty(t, e, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (t[e] = n), + t + ); + } + var b = function(t) { + var e = t || {}, + n = e.verticalCompact, + r = e.compactType; + return !1 === n ? null : r; + }, + _ = 'react-grid-layout', + x = !1; + try { + x = navigator.userAgent.toLowerCase().includes('firefox'); + } catch (t) {} + var w = (function(t) { + function e(t, n) { + var i; + return ( + (function(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + })(this, e), + (i = (function(t, e) { + return !e || ('object' !== c(e) && 'function' != typeof e) + ? m(t) + : e; + })(this, g(e).call(this, t, n))), + y(m(i), 'state', { + activeDrag: null, + layout: (0, s.synchronizeLayoutWithChildren)( + i.props.layout, + i.props.children, + i.props.cols, + b(i.props) + ), + mounted: !1, + oldDragItem: null, + oldLayout: null, + oldResizeItem: null, + droppingDOMNode: null, + children: [] + }), + y(m(i), 'dragEnterCounter', 0), + y(m(i), 'onDragOver', function(t) { + if (x && !t.nativeEvent.target.className.includes(_)) return !1; + var e = i.props.droppingItem, + n = i.state.layout, + o = t.nativeEvent, + a = o.layerX, + s = o.layerY, + u = { x: a, y: s, e: t }; + if (i.state.droppingDOMNode) { + if (i.state.droppingPosition) { + (i.state.droppingPosition.x != a || + i.state.droppingPosition.y != s) && + i.setState({ droppingPosition: u }); + } + } else i.setState({ droppingDOMNode: r.default.createElement('div', { key: e.i }), droppingPosition: u, layout: [].concat(h(n), [d({}, e, { x: 0, y: 0, static: !1, isDraggable: !0 })]) }); + t.stopPropagation(), t.preventDefault(); + }), + y(m(i), 'removeDroppingPlaceholder', function() { + var t = i.props, + e = t.droppingItem, + n = t.cols, + r = i.state.layout, + o = (0, s.compact)( + r.filter(function(t) { + return t.i !== e.i; + }), + b(i.props), + n + ); + i.setState({ + layout: o, + droppingDOMNode: null, + activeDrag: null, + droppingPosition: void 0 + }); + }), + y(m(i), 'onDragLeave', function() { + i.dragEnterCounter--, + 0 === i.dragEnterCounter && i.removeDroppingPlaceholder(); + }), + y(m(i), 'onDragEnter', function() { + i.dragEnterCounter++; + }), + y(m(i), 'onDrop', function() { + var t = i.props.droppingItem, + e = + i.state.layout.find(function(e) { + return e.i === t.i; + }) || {}, + n = e.x, + r = e.y, + o = e.w, + a = e.h; + (i.dragEnterCounter = 0), + i.removeDroppingPlaceholder(), + i.props.onDrop({ x: n, y: r, w: o, h: a }); + }), + (0, s.autoBindHandlers)(m(i), [ + 'onDragStart', + 'onDrag', + 'onDragStop', + 'onResizeStart', + 'onResize', + 'onResizeStop' + ]), + i + ); + } + var n, i, l; + return ( + (function(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { value: t, writable: !0, configurable: !0 } + })), + e && v(t, e); + })(e, t), + (n = e), + (l = [ + { + key: 'getDerivedStateFromProps', + value: function(t, e) { + var n; + return e.activeDrag + ? null + : ((0, o.default)(t.layout, e.propsLayout) && + t.compactType === e.compactType + ? (0, s.childrenEqual)(t.children, e.children) || + (n = e.layout) + : (n = t.layout), + n + ? { + layout: (0, s.synchronizeLayoutWithChildren)( + n, + t.children, + t.cols, + b(t) + ), + compactType: t.compactType, + children: t.children, + propsLayout: t.layout + } + : null); + } + } + ]), + (i = [ + { + key: 'componentDidMount', + value: function() { + this.setState({ mounted: !0 }), + this.onLayoutMaybeChanged( + this.state.layout, + this.props.layout + ); + } + }, + { + key: 'componentDidUpdate', + value: function(t, e) { + if (!this.state.activeDrag) { + var n = this.state.layout, + r = e.layout; + this.onLayoutMaybeChanged(n, r); + } + } + }, + { + key: 'containerHeight', + value: function() { + if (this.props.autoSize) { + var t = (0, s.bottom)(this.state.layout), + e = this.props.containerPadding + ? this.props.containerPadding[1] + : this.props.margin[1]; + return ( + t * this.props.rowHeight + + (t - 1) * this.props.margin[1] + + 2 * e + + 'px' + ); + } + } + }, + { + key: 'onDragStart', + value: function(t, e, n, r) { + var i = r.e, + o = r.node, + a = this.state.layout, + u = (0, s.getLayoutItem)(a, t); + if (u) + return ( + this.setState({ + oldDragItem: (0, s.cloneLayoutItem)(u), + oldLayout: this.state.layout + }), + this.props.onDragStart(a, u, u, null, i, o) + ); + } + }, + { + key: 'onDrag', + value: function(t, e, n, r) { + var i = r.e, + o = r.node, + a = this.state.oldDragItem, + u = this.state.layout, + l = this.props.cols, + c = (0, s.getLayoutItem)(u, t); + if (c) { + var f = { + w: c.w, + h: c.h, + x: c.x, + y: c.y, + placeholder: !0, + i: t + }; + (u = (0, s.moveElement)( + u, + c, + e, + n, + !0, + this.props.preventCollision, + b(this.props), + l + )), + this.props.onDrag(u, a, c, f, i, o), + this.setState({ + layout: (0, s.compact)(u, b(this.props), l), + activeDrag: f + }); + } + } + }, + { + key: 'onDragStop', + value: function(t, e, n, r) { + var i = r.e, + o = r.node, + a = this.state.oldDragItem, + u = this.state.layout, + l = this.props, + c = l.cols, + f = l.preventCollision, + d = (0, s.getLayoutItem)(u, t); + if (d) { + (u = (0, s.moveElement)(u, d, e, n, !0, f, b(this.props), c)), + this.state.activeDrag && + this.props.onDragStop(u, a, d, null, i, o); + var h = (0, s.compact)(u, b(this.props), c), + p = this.state.oldLayout; + this.setState({ + activeDrag: null, + layout: h, + oldDragItem: null, + oldLayout: null + }), + this.onLayoutMaybeChanged(h, p); + } + } + }, + { + key: 'onLayoutMaybeChanged', + value: function(t, e) { + e || (e = this.state.layout), + (0, o.default)(e, t) || this.props.onLayoutChange(t); + } + }, + { + key: 'onResizeStart', + value: function(t, e, n, r) { + var i = r.e, + o = r.node, + a = this.state.layout, + u = (0, s.getLayoutItem)(a, t); + u && + (this.setState({ + oldResizeItem: (0, s.cloneLayoutItem)(u), + oldLayout: this.state.layout + }), + this.props.onResizeStart(a, u, u, null, i, o)); + } + }, + { + key: 'onResize', + value: function(t, e, n, r) { + var i = r.e, + o = r.node, + a = this.state, + u = a.layout, + l = a.oldResizeItem, + c = this.props, + f = c.cols, + h = c.preventCollision, + p = (0, s.getLayoutItem)(u, t); + if (p) { + var g; + if (h) { + var m = (0, s.getAllCollisions)( + u, + d({}, p, { w: e, h: n }) + ).filter(function(t) { + return t.i !== p.i; + }); + if ((g = m.length > 0)) { + var v = 1 / 0, + y = 1 / 0; + m.forEach(function(t) { + t.x > p.x && (v = Math.min(v, t.x)), + t.y > p.y && (y = Math.min(y, t.y)); + }), + Number.isFinite(v) && (p.w = v - p.x), + Number.isFinite(y) && (p.h = y - p.y); + } + } + g || ((p.w = e), (p.h = n)); + var _ = { w: p.w, h: p.h, x: p.x, y: p.y, static: !0, i: t }; + this.props.onResize(u, l, p, _, i, o), + this.setState({ + layout: (0, s.compact)(u, b(this.props), f), + activeDrag: _ + }); + } + } + }, + { + key: 'onResizeStop', + value: function(t, e, n, r) { + var i = r.e, + o = r.node, + a = this.state, + u = a.layout, + l = a.oldResizeItem, + c = this.props.cols, + f = (0, s.getLayoutItem)(u, t); + this.props.onResizeStop(u, l, f, null, i, o); + var d = (0, s.compact)(u, b(this.props), c), + h = this.state.oldLayout; + this.setState({ + activeDrag: null, + layout: d, + oldResizeItem: null, + oldLayout: null + }), + this.onLayoutMaybeChanged(d, h); + } + }, + { + key: 'placeholder', + value: function() { + var t = this.state.activeDrag; + if (!t) return null; + var e = this.props, + n = e.width, + i = e.cols, + o = e.margin, + a = e.containerPadding, + s = e.rowHeight, + l = e.maxRows, + c = e.useCSSTransforms, + f = e.transformScale; + return r.default.createElement( + u.default, + { + w: t.w, + h: t.h, + x: t.x, + y: t.y, + i: t.i, + className: 'react-grid-placeholder', + containerWidth: n, + cols: i, + margin: o, + containerPadding: a || o, + maxRows: l, + rowHeight: s, + isDraggable: !1, + isResizable: !1, + useCSSTransforms: c, + transformScale: f + }, + r.default.createElement('div', null) + ); + } + }, + { + key: 'processGridItem', + value: function(t, e) { + if (t && t.key) { + var n = (0, s.getLayoutItem)( + this.state.layout, + String(t.key) + ); + if (!n) return null; + var i = this.props, + o = i.width, + a = i.cols, + l = i.margin, + c = i.containerPadding, + f = i.rowHeight, + d = i.maxRows, + h = i.isDraggable, + p = i.isResizable, + g = i.useCSSTransforms, + m = i.transformScale, + v = i.draggableCancel, + y = i.draggableHandle, + b = this.state, + _ = b.mounted, + x = b.droppingPosition, + w = Boolean( + !n.static && h && (n.isDraggable || null == n.isDraggable) + ), + S = Boolean( + !n.static && p && (n.isResizable || null == n.isResizable) + ); + return r.default.createElement( + u.default, + { + containerWidth: o, + cols: a, + margin: l, + containerPadding: c || l, + maxRows: d, + rowHeight: f, + cancel: v, + handle: y, + onDragStop: this.onDragStop, + onDragStart: this.onDragStart, + onDrag: this.onDrag, + onResizeStart: this.onResizeStart, + onResize: this.onResize, + onResizeStop: this.onResizeStop, + isDraggable: w, + isResizable: S, + useCSSTransforms: g && _, + usePercentages: !_, + transformScale: m, + w: n.w, + h: n.h, + x: n.x, + y: n.y, + i: n.i, + minH: n.minH, + minW: n.minW, + maxH: n.maxH, + maxW: n.maxW, + static: n.static, + droppingPosition: e ? x : void 0 + }, + t + ); + } + } + }, + { + key: 'render', + value: function() { + var t = this, + e = this.props, + n = e.className, + i = e.style, + o = e.isDroppable, + u = (0, a.default)(_, n), + l = d({ height: this.containerHeight() }, i); + return r.default.createElement( + 'div', + { + className: u, + style: l, + onDrop: o ? this.onDrop : s.noop, + onDragLeave: o ? this.onDragLeave : s.noop, + onDragEnter: o ? this.onDragEnter : s.noop, + onDragOver: o ? this.onDragOver : s.noop + }, + r.default.Children.map(this.props.children, function(e) { + return t.processGridItem(e); + }), + o && + this.state.droppingDOMNode && + this.processGridItem(this.state.droppingDOMNode, !0), + this.placeholder() + ); + } + } + ]) && p(n.prototype, i), + l && p(n, l), + e + ); + })(r.default.Component); + (e.default = w), + y(w, 'displayName', 'ReactGridLayout'), + y(w, 'propTypes', { + className: i.default.string, + style: i.default.object, + width: i.default.number, + autoSize: i.default.bool, + cols: i.default.number, + draggableCancel: i.default.string, + draggableHandle: i.default.string, + verticalCompact: function(t) { + t.verticalCompact, 0; + }, + compactType: i.default.oneOf(['vertical', 'horizontal']), + layout: function(t) { + var e = t.layout; + void 0 !== e && (0, s.validateLayout)(e, 'layout'); + }, + margin: i.default.arrayOf(i.default.number), + containerPadding: i.default.arrayOf(i.default.number), + rowHeight: i.default.number, + maxRows: i.default.number, + isDraggable: i.default.bool, + isResizable: i.default.bool, + preventCollision: i.default.bool, + useCSSTransforms: i.default.bool, + transformScale: i.default.number, + isDroppable: i.default.bool, + onLayoutChange: i.default.func, + onDragStart: i.default.func, + onDrag: i.default.func, + onDragStop: i.default.func, + onResizeStart: i.default.func, + onResize: i.default.func, + onResizeStop: i.default.func, + onDrop: i.default.func, + droppingItem: i.default.shape({ + i: i.default.string.isRequired, + w: i.default.number.isRequired, + h: i.default.number.isRequired + }), + children: function(t, e) { + var n = t[e], + i = {}; + r.default.Children.forEach(n, function(t) { + if (i[t.key]) + throw new Error( + 'Duplicate child key "' + + t.key + + '" found! This will cause problems in ReactGridLayout.' + ); + i[t.key] = !0; + }); + } + }), + y(w, 'defaultProps', { + autoSize: !0, + cols: 12, + className: '', + style: {}, + draggableHandle: '', + draggableCancel: '', + containerPadding: null, + rowHeight: 150, + maxRows: 1 / 0, + layout: [], + margin: [10, 10], + isDraggable: !0, + isResizable: !0, + isDroppable: !1, + useCSSTransforms: !0, + transformScale: 1, + verticalCompact: !0, + compactType: 'vertical', + preventCollision: !1, + droppingItem: { i: '__dropping-elem__', h: 1, w: 1 }, + onLayoutChange: s.noop, + onDragStart: s.noop, + onDrag: s.noop, + onDragStop: s.noop, + onResizeStart: s.noop, + onResize: s.noop, + onResizeStop: s.noop, + onDrop: s.noop + }); + }, + function(t, e, n) { + var r, i; + window, + (t.exports = + ((r = n(0)), + (i = n(7)), + (function(t) { + var e = {}; + function n(r) { + if (e[r]) return e[r].exports; + var i = (e[r] = { i: r, l: !1, exports: {} }); + return ( + t[r].call(i.exports, i, i.exports, n), (i.l = !0), i.exports + ); + } + return ( + (n.m = t), + (n.c = e), + (n.d = function(t, e, r) { + n.o(t, e) || + Object.defineProperty(t, e, { enumerable: !0, get: r }); + }), + (n.r = function(t) { + 'undefined' != typeof Symbol && + Symbol.toStringTag && + Object.defineProperty(t, Symbol.toStringTag, { + value: 'Module' + }), + Object.defineProperty(t, '__esModule', { value: !0 }); + }), + (n.t = function(t, e) { + if ((1 & e && (t = n(t)), 8 & e)) return t; + if (4 & e && 'object' == typeof t && t && t.__esModule) + return t; + var r = Object.create(null); + if ( + (n.r(r), + Object.defineProperty(r, 'default', { + enumerable: !0, + value: t + }), + 2 & e && 'string' != typeof t) + ) + for (var i in t) + n.d( + r, + i, + function(e) { + return t[e]; + }.bind(null, i) + ); + return r; + }), + (n.n = function(t) { + var e = + t && t.__esModule + ? function() { + return t.default; + } + : function() { + return t; + }; + return n.d(e, 'a', e), e; + }), + (n.o = function(t, e) { + return Object.prototype.hasOwnProperty.call(t, e); + }), + (n.p = ''), + n((n.s = 4)) + ); + })([ + function(t, e, n) { + t.exports = n(5)(); + }, + function(t, e) { + t.exports = r; + }, + function(t, e) { + t.exports = i; + }, + function(t, e, n) { + var r; + /*! + Copyright (c) 2017 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/ !(function() { + 'use strict'; + var n = {}.hasOwnProperty; + function i() { + for (var t = [], e = 0; e < arguments.length; e++) { + var r = arguments[e]; + if (r) { + var o = typeof r; + if ('string' === o || 'number' === o) t.push(r); + else if (Array.isArray(r) && r.length) { + var a = i.apply(null, r); + a && t.push(a); + } else if ('object' === o) + for (var s in r) n.call(r, s) && r[s] && t.push(s); + } + } + return t.join(' '); + } + t.exports + ? ((i.default = i), (t.exports = i)) + : void 0 === + (r = function() { + return i; + }.apply(e, [])) || (t.exports = r); + })(); + }, + function(t, e, n) { + var r = n(7), + i = r.default, + o = r.DraggableCore; + (t.exports = i), + (t.exports.default = i), + (t.exports.DraggableCore = o); + }, + function(t, e, n) { + 'use strict'; + var r = n(6); + function i() {} + function o() {} + (o.resetWarningCache = i), + (t.exports = function() { + function t(t, e, n, i, o, a) { + if (a !== r) { + var s = 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 ((s.name = 'Invariant Violation'), s); + } + } + function e() { + return t; + } + t.isRequired = t; + var n = { + array: t, + bool: t, + func: t, + number: t, + object: t, + string: t, + symbol: t, + any: t, + arrayOf: e, + element: t, + elementType: t, + instanceOf: e, + node: t, + objectOf: e, + oneOf: e, + oneOfType: e, + shape: e, + exact: e, + checkPropTypes: o, + resetWarningCache: i + }; + return (n.PropTypes = n), n; + }); + }, + function(t, e, n) { + 'use strict'; + t.exports = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + }, + function(t, e, n) { + 'use strict'; + n.r(e); + var r = n(1), + i = n.n(r), + o = n(0), + a = n.n(o), + s = n(2), + u = n.n(s), + l = n(3), + c = n.n(l); + function f(t, e) { + for (var n = 0, r = t.length; n < r; n++) + if (e.apply(e, [t[n], n, t])) return t[n]; + } + function d(t) { + return ( + 'function' == typeof t || + '[object Function]' === Object.prototype.toString.call(t) + ); + } + function h(t) { + return 'number' == typeof t && !isNaN(t); + } + function p(t) { + return parseInt(t, 10); + } + function g(t, e, n) { + if (t[e]) + return new Error( + 'Invalid prop ' + .concat(e, ' passed to ') + .concat(n, ' - do not set this, set it on the child.') + ); + } + var m = ['Moz', 'Webkit', 'O', 'ms']; + function v(t, e) { + return e + ? ''.concat(e).concat( + (function(t) { + for (var e = '', n = !0, r = 0; r < t.length; r++) + n + ? ((e += t[r].toUpperCase()), (n = !1)) + : '-' === t[r] + ? (n = !0) + : (e += t[r]); + return e; + })(t) + ) + : t; + } + var y = (function() { + var t = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : 'transform'; + if ('undefined' == typeof window || void 0 === window.document) + return ''; + var e = window.document.documentElement.style; + if (t in e) return ''; + for (var n = 0; n < m.length; n++) + if (v(t, m[n]) in e) return m[n]; + return ''; + })(); + function b(t, e) { + var n = Object.keys(t); + if (Object.getOwnPropertySymbols) { + var r = Object.getOwnPropertySymbols(t); + e && + (r = r.filter(function(e) { + return Object.getOwnPropertyDescriptor(t, e).enumerable; + })), + n.push.apply(n, r); + } + return n; + } + function _(t, e, n) { + return ( + e in t + ? Object.defineProperty(t, e, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (t[e] = n), + t + ); + } + var x = ''; + function w(t, e) { + return ( + x || + (x = f( + [ + 'matches', + 'webkitMatchesSelector', + 'mozMatchesSelector', + 'msMatchesSelector', + 'oMatchesSelector' + ], + function(e) { + return d(t[e]); + } + )), + !!d(t[x]) && t[x](e) + ); + } + function S(t, e, n) { + var r = t; + do { + if (w(r, e)) return !0; + if (r === n) return !1; + r = r.parentNode; + } while (r); + return !1; + } + function E(t, e, n) { + t && + (t.attachEvent + ? t.attachEvent('on' + e, n) + : t.addEventListener + ? t.addEventListener(e, n, !0) + : (t['on' + e] = n)); + } + function k(t, e, n) { + t && + (t.detachEvent + ? t.detachEvent('on' + e, n) + : t.removeEventListener + ? t.removeEventListener(e, n, !0) + : (t['on' + e] = null)); + } + function A(t) { + var e = t.clientHeight, + n = t.ownerDocument.defaultView.getComputedStyle(t); + return (e += p(n.borderTopWidth)) + p(n.borderBottomWidth); + } + function T(t) { + var e = t.clientWidth, + n = t.ownerDocument.defaultView.getComputedStyle(t); + return (e += p(n.borderLeftWidth)) + p(n.borderRightWidth); + } + function C(t) { + var e = t.clientHeight, + n = t.ownerDocument.defaultView.getComputedStyle(t); + return (e -= p(n.paddingTop)) - p(n.paddingBottom); + } + function O(t) { + var e = t.clientWidth, + n = t.ownerDocument.defaultView.getComputedStyle(t); + return (e -= p(n.paddingLeft)) - p(n.paddingRight); + } + function P(t, e, n) { + var r = t.x, + i = t.y, + o = 'translate(' + .concat(r) + .concat(n, ',') + .concat(i) + .concat(n, ')'); + if (e) { + var a = ''.concat('string' == typeof e.x ? e.x : e.x + n), + s = ''.concat('string' == typeof e.y ? e.y : e.y + n); + o = 'translate('.concat(a, ', ').concat(s, ')') + o; + } + return o; + } + function M(t) { + try { + t && + t.body && + ((e = t.body), + (n = 'react-draggable-transparent-selection'), + e.classList + ? e.classList.remove(n) + : (e.className = e.className.replace( + new RegExp('(?:^|\\s)'.concat(n, '(?!\\S)'), 'g'), + '' + ))), + t.selection + ? t.selection.empty() + : window.getSelection().removeAllRanges(); + } catch (t) {} + var e, n; + } + function L() { + return (function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = null != arguments[e] ? arguments[e] : {}; + e % 2 + ? b(n, !0).forEach(function(e) { + _(t, e, n[e]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties( + t, + Object.getOwnPropertyDescriptors(n) + ) + : b(n).forEach(function(e) { + Object.defineProperty( + t, + e, + Object.getOwnPropertyDescriptor(n, e) ); - })(); - e.default = c; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r, - i = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - o = (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && - (e[n] = t[n]); - return (e.default = t), e; - })(n(2)), - a = n(6), - s = n(3), - u = n(1), - l = (r = u) && r.__esModule ? r : { default: r }, - c = (function() { - function t() { - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, t); - } - return ( - i(t, [ - { - key: 'render', - value: function() { - var t = this.dataset.matrix, - e = this.config, - n = e.colors, - r = e.container, - i = e.labelMapping, - u = e.colorMapping, - c = e.utils, - f = this.config, - d = this.config.funnel, - h = d.percents, - p = h.show, - g = h.countingMethod, - v = h.decimals, - m = d.lines, - y = d.marginBetweenSteps, - b = d.resultValues, - _ = d.hover, - x = d.minimalSize, - w = 20, - S = 30, - E = 100, - k = 10, - A = 0; - y && (A = 5); - var T = o.select(r), - C = o - .select( - this.el().querySelector( - '.' + - this.config.theme + - '-rendering .c3-chart' - ) - ) - .append('svg'), - O = T.style('width').slice(0, -2) - S - k, - P = - T.style('height').slice(0, -2) - - w - - E - - 30, - M = O / (t.length - 1), - L = P, - D = (100).toFixed(v), - j = 0; - x && (j = (P - x) / (t.length - 2)); - var R = t.slice(1).map(function(e, n) { - var r = [ - { x: M * n + A, y: (P - L) / 2 }, - { x: M * n + A, y: (P - L) / 2 + L } - ]; - 0 !== n && - ('relative' === g && - (x - ? (L -= j) - : (L = (L * e[1]) / t[n][1]), - (D = ((e[1] / t[n][1]) * 100).toFixed( - v - ))), - 'absolute' === g && - (x - ? (L -= j) - : (L = (P * e[1]) / t[1][1]), - (D = ((e[1] / t[1][1]) * 100).toFixed( - v - )))); - var o = e[0]; - if (Object.keys(i).length) - for (var a in i) i[a] === e[0] && (o = a); - var u = e[1]; - return ( - (void 0 !== f.prettyNumber && - !0 !== f.prettyNumber) || - isNaN(parseInt(e[1])) || - (u = (0, s.prettyNumber)(e[1])), - { - name: e[0], - label: o, - percent: D + '%', - result: u, - points: [].concat(r, [ - { - x: M * (n + 1), - y: (P - L) / 2 + L - }, - { x: M * (n + 1), y: (P - L) / 2 } - ]) - } - ); - }); - if ( - (C.attr( - 'preserveAspectRatio', - 'xMidYMid meet' - ) - .attr( - 'viewBox', - '0 0 ' + - (O + k + S) + - ' ' + - (P + w + E - 30) - ) - .attr('height', '100%') - .attr('width', '100%') - .append('g') - .attr( - 'transform', - 'translate(' + k + ',' + w + ')' - ) - .selectAll('polygon') - .data(R) - .enter() - .append('polygon') - .attr('points', function(t) { - return t.points - .map(function(t) { - return [t.x, t.y].join(','); - }) - .join(' '); - }) - .style('fill', function(t, e) { - return u[t.label] ? u[t.label] : n[e]; - }) - .attr('class', function(t) { - return t.label; - }) - .attr('cursor', 'pointer'), - m && - (C.selectAll('line') - .data(R) - .enter() - .append('line') - .attr('x1', function(t) { - return t.points[0].x + k - A / 2; - }) - .attr('y1', P + E) - .attr('x2', function(t) { - return t.points[0].x + k - A / 2; - }) - .attr('y2', function(t) { - return t.points[0].y + w; - }) - .attr('class', 'chart-lines'), - C.append('line') - .attr('x1', O + k - A / 2) - .attr('y1', P + E) - .attr( - 'x2', - R[R.length - 1].points[3].x + - k + - A / 2 - ) - .attr( - 'y2', - R[R.length - 1].points[3].y + w - ) - .attr('class', 'chart-lines')), - m && - C.selectAll('text.label') - .data(R) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(t) { - return t.points[1].x + M / 2 + k; - }) - .attr('y', P + 0.5 * E + w) - .attr('class', function(t) { - return 'text-label ' + t.label; - }) - .text(function(t) { - return t.name; - }) - .call(a.textWrap, M) - .attr('cursor', 'pointer'), - m || - C.selectAll('text.label') - .data(R) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(t) { - return t.points[1].x + M / 2 + k; - }) - .attr('y', function(t) { - return t.points[2].y + - (t.points[3].y - t.points[0].y) / - 2 + - M / 4 > - P + E - 40 + w - ? P + E - 40 + w - : t.points[2].y + - (t.points[3].y - - t.points[0].y) / - 2 + - M / 4 + - w; - }) - .attr('class', function(t) { - return 'text-label ' + t.label; - }) - .text(function(t) { - return t.name; - }) - .call(a.textWrap, M) - .attr('cursor', 'pointer'), - p && - !b && - C.selectAll('text.label') - .data(R) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(t) { - return t.points[1].x + M / 2 + k; - }) - .attr('y', P / 2 + w + 10) - .attr('class', function(t) { - return 'text-main ' + t.label; - }) - .text(function(t) { - return t.percent; - }) - .attr('cursor', 'pointer'), - b && - !p && - C.selectAll('text.label') - .data(R) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(t) { - return t.points[1].x + M / 2 + k; - }) - .attr('y', P / 2 + w + 10) - .attr('class', function(t) { - return 'text-main ' + t.label; - }) - .text(function(t) { - return t.result; - }) - .attr('cursor', 'pointer'), - p && - b && - (C.selectAll('text.label') - .data(R) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(t) { - return t.points[1].x + M / 2 + k; - }) - .attr('y', P / 2 + w + 16) - .attr('class', function(t) { - return 'text-second ' + t.label; - }) - .text(function(t) { - return t.percent; - }) - .attr('cursor', 'pointer'), - C.selectAll('text.label') - .data(R) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(t) { - return t.points[1].x + M / 2 + k; - }) - .attr('y', P / 2 + w - 3) - .attr('class', function(t) { - return 'text-main ' + t.label; - }) - .text(function(t) { - return t.result; - }) - .attr('cursor', 'pointer')), - _) - ) { - var N = function(t) { - I.style('opacity', 0.5), - F.style('opacity', 0.5); - var e = /[^ ]*$/.exec( - o.select(this).attr('class') - )[0]; - C.selectAll('.' + e).style( - 'opacity', - 1 - ); - }, - z = function(t) { - I.style('opacity', 1), - F.style('opacity', 1); - }, - I = C.selectAll('polygon'); - I.on('mouseover', N).on('mouseout', z); - var F = C.selectAll('text'); - F.on('mouseover', N).on('mouseout', z); - } - c && - c.clickToCopyToClipboard && - C.selectAll('text').on('click', function( - t - ) { - var e = t.percent, - n = t.result; - b - ? (0, l.default)(n, o.event) - : p && (0, l.default)(e, o.event); - }); - } - }, - { - key: 'update', - value: function() { - this.destroy(), this.render(); - } - }, - { - key: 'destroy', - value: function() { - o.select( - this.el().querySelector( - '.' + - this.config.theme + - '-rendering .c3-chart' - ) - ).remove(); - } - } - ]), - t + }); + } + return t; + })( + { touchAction: 'none' }, + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : {} + ); + } + function j(t) { + return 'both' === t.props.axis || 'x' === t.props.axis; + } + function D(t) { + return 'both' === t.props.axis || 'y' === t.props.axis; + } + function R(t, e, n) { + var r = + 'number' == typeof e + ? (function(t, e) { + return ( + (t.targetTouches && + f(t.targetTouches, function(t) { + return e === t.identifier; + })) || + (t.changedTouches && + f(t.changedTouches, function(t) { + return e === t.identifier; + })) + ); + })(t, e) + : null; + if ('number' == typeof e && !r) return null; + var i = I(n); + return (function(t, e) { + var n = + e === e.ownerDocument.body + ? { left: 0, top: 0 } + : e.getBoundingClientRect(); + return { + x: t.clientX + e.scrollLeft - n.left, + y: t.clientY + e.scrollTop - n.top + }; + })( + r || t, + n.props.offsetParent || i.offsetParent || i.ownerDocument.body + ); + } + function z(t, e, n) { + var r = t.state, + i = !h(r.lastX), + o = I(t); + return i + ? { + node: o, + deltaX: 0, + deltaY: 0, + lastX: e, + lastY: n, + x: e, + y: n + } + : { + node: o, + deltaX: e - r.lastX, + deltaY: n - r.lastY, + lastX: r.lastX, + lastY: r.lastY, + x: e, + y: n + }; + } + function N(t, e) { + var n = t.props.scale; + return { + node: e.node, + x: t.state.x + e.deltaX / n, + y: t.state.y + e.deltaY / n, + deltaX: e.deltaX / n, + deltaY: e.deltaY / n, + lastX: t.state.x, + lastY: t.state.y + }; + } + function I(t) { + var e = u.a.findDOMNode(t); + if (!e) + throw new Error(': Unmounted during event!'); + return e; + } + function F(t) { + return (F = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(t) { + return typeof t; + } + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t; + })(t); + } + function V(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + function B(t) { + return (B = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + })(t); + } + function G(t) { + if (void 0 === t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return t; + } + function H(t, e) { + return (H = + Object.setPrototypeOf || + function(t, e) { + return (t.__proto__ = e), t; + })(t, e); + } + function U(t, e, n) { + return ( + e in t + ? Object.defineProperty(t, e, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (t[e] = n), + t + ); + } + var q = { + touch: { + start: 'touchstart', + move: 'touchmove', + stop: 'touchend' + }, + mouse: { + start: 'mousedown', + move: 'mousemove', + stop: 'mouseup' + } + }, + W = q.mouse, + X = (function(t) { + function e() { + var t, n, r; + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, e); + for ( + var i = arguments.length, o = new Array(i), a = 0; + a < i; + a++ + ) + o[a] = arguments[a]; + return ( + (r = (t = B(e)).call.apply(t, [this].concat(o))), + (n = + !r || ('object' !== F(r) && 'function' != typeof r) + ? G(this) + : r), + U(G(n), 'state', { + dragging: !1, + lastX: NaN, + lastY: NaN, + touchIdentifier: null + }), + U(G(n), 'handleDragStart', function(t) { + if ( + (n.props.onMouseDown(t), + !n.props.allowAnyClick && + 'number' == typeof t.button && + 0 !== t.button) + ) + return !1; + var e = u.a.findDOMNode(G(n)); + if (!e || !e.ownerDocument || !e.ownerDocument.body) + throw new Error( + ' not mounted on DragStart!' ); - })(); - e.default = c; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r, - i = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } + var r = e.ownerDocument; + if ( + !( + n.props.disabled || + !(t.target instanceof r.defaultView.Node) || + (n.props.handle && + !S(t.target, n.props.handle, e)) || + (n.props.cancel && S(t.target, n.props.cancel, e)) + ) + ) { + var i = (function(t) { + return t.targetTouches && t.targetTouches[0] + ? t.targetTouches[0].identifier + : t.changedTouches && t.changedTouches[0] + ? t.changedTouches[0].identifier + : void 0; + })(t); + n.setState({ touchIdentifier: i }); + var o = R(t, i, G(n)); + if (null != o) { + var a = o.x, + s = o.y, + l = z(G(n), a, s); + n.props.onStart, + !1 !== n.props.onStart(t, l) && + (n.props.enableUserSelectHack && + (function(t) { + if (t) { + var e, + n, + r = t.getElementById( + 'react-draggable-style-el' + ); + r || + (((r = t.createElement('style')).type = + 'text/css'), + (r.id = 'react-draggable-style-el'), + (r.innerHTML = + '.react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n'), + (r.innerHTML += + '.react-draggable-transparent-selection *::selection {all: inherit;}\n'), + t + .getElementsByTagName('head')[0] + .appendChild(r)), + t.body && + ((n = + 'react-draggable-transparent-selection'), + (e = t.body).classList + ? e.classList.add(n) + : e.className.match( + new RegExp( + '(?:^|\\s)'.concat( + n, + '(?!\\S)' + ) + ) + ) || + (e.className += ' '.concat(n))); + } + })(r), + n.setState({ + dragging: !0, + lastX: a, + lastY: s + }), + E(r, W.move, n.handleDrag), + E(r, W.stop, n.handleDragStop)); } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - o = (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && - (e[n] = t[n]); - return (e.default = t), e; - })(n(2)), - a = n(6), - s = n(3), - u = n(1), - l = (r = u) && r.__esModule ? r : { default: r }, - c = (function() { - function t() { - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError( - 'Cannot call a class as a function' + } + }), + U(G(n), 'handleDrag', function(t) { + 'touchmove' === t.type && t.preventDefault(); + var e = R(t, n.state.touchIdentifier, G(n)); + if (null != e) { + var r, + i, + o, + a = e.x, + s = e.y; + if (Array.isArray(n.props.grid)) { + var u = a - n.state.lastX, + l = s - n.state.lastY, + c = (function(t, e) { + return ( + (function(t) { + if (Array.isArray(t)) return t; + })(t) || + (function(t, e) { + var n = [], + r = !0, + i = !1, + o = void 0; + try { + for ( + var a, s = t[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !e || n.length !== e); + r = !0 + ); + } catch (t) { + (i = !0), (o = t); + } finally { + try { + r || null == s.return || s.return(); + } finally { + if (i) throw o; + } + } + return n; + })(t, e) || + (function() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' + ); + })() ); - })(this, t); + })( + ((r = n.props.grid), + (i = u), + (o = l), + [ + Math.round(i / r[0]) * r[0], + Math.round(o / r[1]) * r[1] + ]), + 2 + ); + if (((u = c[0]), (l = c[1]), !u && !l)) return; + (a = n.state.lastX + u), (s = n.state.lastY + l); } - return ( - i(t, [ - { - key: 'render', - value: function() { - var t = this.dataset.matrix, - e = this.config, - n = e.colors, - r = e.container, - i = e.labelMapping, - u = e.colorMapping, - c = e.utils, - f = this.config, - d = this.config.funnel, - h = d.percents, - p = h.show, - g = h.countingMethod, - v = h.decimals, - m = d.lines, - y = d.resultValues, - b = d.effect3d, - _ = d.hover, - x = d.minimalSize, - w = 20, - S = 30, - E = 100, - k = 10, - A = o.select(r), - T = o - .select( - this.el().querySelector( - '.' + - this.config.theme + - '-rendering .c3-chart' - ) - ) - .append('svg'), - C = A.style('width').slice(0, -2) - S - k, - O = - A.style('height').slice(0, -2) - - w - - E - - 30, - P = C / (t.length - 1), - M = 0.3 * P, - L = M / 1.5, - D = O, - j = (100).toFixed(v), - R = 0; - x && (R = (O - x) / (t.length - 2)); - var N = t.slice(1).map(function(e, n) { - var r = [ - { x: P * n + M, y: (O - D) / 2 }, - { x: P * n + M, y: (O - D) / 2 + D } - ]; - 0 !== n && - ('relative' === g && - (x - ? (D -= R) - : (D = (D * e[1]) / t[n][1]), - (j = ((e[1] / t[n][1]) * 100).toFixed( - v - ))), - 'absolute' === g && - (x - ? (D -= R) - : (D = (O * e[1]) / t[1][1]), - (j = ((e[1] / t[1][1]) * 100).toFixed( - v - )))); - var o = e[0]; - if (Object.keys(i).length) - for (var a in i) - i[a] === e[0] && (o = a); - var u = e[1]; - return ( - (void 0 !== f.prettyNumber && - !0 !== f.prettyNumber) || - isNaN(parseInt(e[1])) || - (u = (0, s.prettyNumber)(e[1])), - { - name: e[0], - label: o, - percent: j + '%', - result: u, - points: [].concat(r, [ - { - x: P * (n + 1), - y: (O - D) / 2 + D - }, - { x: P * (n + 1), y: (O - D) / 2 } - ]) - } - ); - }), - z = N.map(function(t, e) { - return { - label: t.label, - points: [ - { - x: t.points[0].x, - y: t.points[0].y - }, - { - x: t.points[1].x, - y: t.points[1].y - }, - { - x: - 'top' === b - ? t.points[1].x - : t.points[1].x - L, - y: - 'top' === b - ? t.points[1].y - : t.points[1].y - M < O / 2 - ? O / 2 + 5 - : t.points[1].y - M - }, - { - x: - 'bottom' === b - ? t.points[0].x - : t.points[0].x - L, - y: - 'bottom' === b - ? t.points[0].y - : t.points[0].y + M > O / 2 - ? O / 2 - 5 - : t.points[0].y + M - } - ] - }; - }), - I = N.concat(z); - if ( - (T.attr( - 'preserveAspectRatio', - 'xMidYMid meet' - ) - .attr( - 'viewBox', - '0 0 ' + - (C + k + S) + - ' ' + - (O + w + E - 30) - ) - .attr('height', '100%') - .attr('width', '100%') - .append('g') - .attr( - 'transform', - 'translate(' + k + ',' + w + ')' - ) - .selectAll('polygon') - .data(I) - .enter() - .append('polygon') - .attr('points', function(t) { - return t.points - .map(function(t) { - return [t.x, t.y].join(','); - }) - .join(' '); - }) - .style('fill', function(t, e) { - return e > N.length - 1 - ? u[t.label] - ? o.rgb(u[t.label]).darker(1.5) - : o.rgb(n[e - N.length]).darker(1.5) - : u[t.label] - ? u[t.label] - : n[e]; - }) - .attr('class', function(t) { - return t.label; - }) - .attr('cursor', 'pointer'), - m && - (T.selectAll('line') - .data(N) - .enter() - .append('line') - .attr('x1', function(t) { - return t.points[0].x + k - 0.8 * M; - }) - .attr('y1', O + E) - .attr('x2', function(t) { - return t.points[0].x + k - 0.8 * M; - }) - .attr('y2', function(t) { - return t.points[0].y + w; - }) - .attr('class', 'chart-lines'), - T.append('line') - .attr('x1', C + k + M / 4) - .attr('y1', O + E) - .attr( - 'x2', - N[N.length - 1].points[3].x + - k + - M / 4 - ) - .attr( - 'y2', - N[N.length - 1].points[3].y + w - ) - .attr('class', 'chart-lines')), - m && - T.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(t) { - return t.points[0].x + k + 0.25 * P; - }) - .attr('y', O + 0.4 * E + w) - .attr('class', function(t) { - return 'text-label ' + t.label; - }) - .text(function(t) { - return t.name; - }) - .call(a.textWrap, P) - .attr('cursor', 'pointer'), - m || - T.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(t) { - return t.points[0].x + k + 0.25 * P; - }) - .attr('y', function(t) { - return t.points[2].y + P / 4 > - O + E - 40 - ? O + E - 40 + w - : t.points[2].y + P / 4 < - t.points[1].y - ? t.points[1].y + 20 + w - : t.points[2].y + P / 4 + 10 + w; - }) - .attr('class', function(t) { - return 'text-label ' + t.label; - }) - .text(function(t) { - return t.name; - }) - .call(a.textWrap, P) - .attr('cursor', 'pointer'), - p && - !y && - T.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(t) { - return t.points[1].x + P / 2.8 + k; - }) - .attr('y', O / 2 + w + 10) - .attr('class', function(t) { - return 'text-main ' + t.label; - }) - .text(function(t) { - return t.percent; - }) - .attr('cursor', 'pointer'), - y && - !p && - T.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(t) { - return t.points[1].x + P / 2.8 + k; - }) - .attr('y', O / 2 + w + 10) - .attr('class', function(t) { - return 'text-main ' + t.label; - }) - .text(function(t) { - return t.result; - }) - .attr('cursor', 'pointer'), - p && - y && - (T.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(t) { - return t.points[1].x + P / 2.8 + k; - }) - .attr('y', O / 2 + w + 16) - .attr('class', function(t) { - return 'text-second ' + t.label; - }) - .text(function(t) { - return t.percent; - }) - .attr('cursor', 'pointer'), - T.selectAll('text.label') - .data(N) - .enter() - .append('text') - .style('text-anchor', 'middle') - .attr('x', function(t) { - return t.points[1].x + P / 2.8 + k; - }) - .attr('y', O / 2 + w - 3) - .attr('class', function(t) { - return 'text-main ' + t.label; - }) - .text(function(t) { - return t.result; - }) - .attr('cursor', 'pointer')), - _) - ) { - var F = function(t) { - B.style('opacity', 0.5), - G.style('opacity', 0.5); - var e = /[^ ]*$/.exec( - o.select(this).attr('class') - )[0]; - T.selectAll('.' + e).style( - 'opacity', - 1 - ); - }, - V = function(t) { - B.style('opacity', 1), - G.style('opacity', 1); - }, - B = T.selectAll('polygon'); - B.on('mouseover', F).on('mouseout', V); - var G = T.selectAll('text'); - G.on('mouseover', F).on('mouseout', V); + var f = z(G(n), a, s); + if (!1 !== n.props.onDrag(t, f)) + n.setState({ lastX: a, lastY: s }); + else + try { + n.handleDragStop(new MouseEvent('mouseup')); + } catch (t) { + var d = document.createEvent('MouseEvents'); + d.initMouseEvent( + 'mouseup', + !0, + !0, + window, + 0, + 0, + 0, + 0, + 0, + !1, + !1, + !1, + !1, + 0, + null + ), + n.handleDragStop(d); + } + } + }), + U(G(n), 'handleDragStop', function(t) { + if (n.state.dragging) { + var e = R(t, n.state.touchIdentifier, G(n)); + if (null != e) { + var r = e.x, + i = e.y, + o = z(G(n), r, i), + a = u.a.findDOMNode(G(n)); + a && + n.props.enableUserSelectHack && + M(a.ownerDocument), + n.setState({ + dragging: !1, + lastX: NaN, + lastY: NaN + }), + n.props.onStop(t, o), + a && + (k(a.ownerDocument, W.move, n.handleDrag), + k(a.ownerDocument, W.stop, n.handleDragStop)); + } + } + }), + U(G(n), 'onMouseDown', function(t) { + return (W = q.mouse), n.handleDragStart(t); + }), + U(G(n), 'onMouseUp', function(t) { + return (W = q.mouse), n.handleDragStop(t); + }), + U(G(n), 'onTouchStart', function(t) { + return (W = q.touch), n.handleDragStart(t); + }), + U(G(n), 'onTouchEnd', function(t) { + return (W = q.touch), n.handleDragStop(t); + }), + n + ); + } + var n, r; + return ( + (function(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { + value: t, + writable: !0, + configurable: !0 + } + })), + e && H(t, e); + })(e, i.a.Component), + (n = e), + (r = [ + { + key: 'componentWillUnmount', + value: function() { + var t = u.a.findDOMNode(this); + if (t) { + var e = t.ownerDocument; + k(e, q.mouse.move, this.handleDrag), + k(e, q.touch.move, this.handleDrag), + k(e, q.mouse.stop, this.handleDragStop), + k(e, q.touch.stop, this.handleDragStop), + this.props.enableUserSelectHack && M(e); + } + } + }, + { + key: 'render', + value: function() { + return i.a.cloneElement( + i.a.Children.only(this.props.children), + { + style: L(this.props.children.props.style), + onMouseDown: this.onMouseDown, + onTouchStart: this.onTouchStart, + onMouseUp: this.onMouseUp, + onTouchEnd: this.onTouchEnd + } + ); + } + } + ]) && V(n.prototype, r), + e + ); + })(); + function Y(t) { + return (Y = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(t) { + return typeof t; + } + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t; + })(t); + } + function $() { + return ($ = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }).apply(this, arguments); + } + function K(t, e) { + var n = Object.keys(t); + if (Object.getOwnPropertySymbols) { + var r = Object.getOwnPropertySymbols(t); + e && + (r = r.filter(function(e) { + return Object.getOwnPropertyDescriptor(t, e).enumerable; + })), + n.push.apply(n, r); + } + return n; + } + function Q(t) { + for (var e = 1; e < arguments.length; e++) { + var n = null != arguments[e] ? arguments[e] : {}; + e % 2 + ? K(n, !0).forEach(function(e) { + rt(t, e, n[e]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties( + t, + Object.getOwnPropertyDescriptors(n) + ) + : K(n).forEach(function(e) { + Object.defineProperty( + t, + e, + Object.getOwnPropertyDescriptor(n, e) + ); + }); + } + return t; + } + function Z(t) { + return (Z = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + })(t); + } + function J(t) { + if (void 0 === t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return t; + } + function tt(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + function et(t, e, n) { + return e && tt(t.prototype, e), n && tt(t, n), t; + } + function nt(t, e) { + return (nt = + Object.setPrototypeOf || + function(t, e) { + return (t.__proto__ = e), t; + })(t, e); + } + function rt(t, e, n) { + return ( + e in t + ? Object.defineProperty(t, e, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (t[e] = n), + t + ); + } + U(X, 'displayName', 'DraggableCore'), + U(X, 'propTypes', { + allowAnyClick: a.a.bool, + disabled: a.a.bool, + enableUserSelectHack: a.a.bool, + offsetParent: function(t, e) { + if (t[e] && 1 !== t[e].nodeType) + throw new Error( + "Draggable's offsetParent must be a DOM Node." + ); + }, + grid: a.a.arrayOf(a.a.number), + handle: a.a.string, + cancel: a.a.string, + onStart: a.a.func, + onDrag: a.a.func, + onStop: a.a.func, + onMouseDown: a.a.func, + className: g, + style: g, + transform: g + }), + U(X, 'defaultProps', { + allowAnyClick: !1, + cancel: null, + disabled: !1, + enableUserSelectHack: !0, + offsetParent: null, + handle: null, + grid: null, + transform: null, + onStart: function() {}, + onDrag: function() {}, + onStop: function() {}, + onMouseDown: function() {} + }), + n.d(e, 'default', function() { + return it; + }), + n.d(e, 'DraggableCore', function() { + return X; + }); + var it = (function(t) { + function e(t) { + var n, r; + return ( + (function(t, e) { + if (!(t instanceof e)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, e), + (r = Z(e).call(this, t)), + (n = + !r || ('object' !== Y(r) && 'function' != typeof r) + ? J(this) + : r), + rt(J(n), 'onDragStart', function(t, e) { + if (!1 === n.props.onStart(t, N(J(n), e))) return !1; + n.setState({ dragging: !0, dragged: !0 }); + }), + rt(J(n), 'onDrag', function(t, e) { + if (!n.state.dragging) return !1; + var r = N(J(n), e), + i = { x: r.x, y: r.y }; + if (n.props.bounds) { + var o = i.x, + a = i.y; + (i.x += n.state.slackX), (i.y += n.state.slackY); + var s = (function(t, e) { + return ( + (function(t) { + if (Array.isArray(t)) return t; + })(t) || + (function(t, e) { + var n = [], + r = !0, + i = !1, + o = void 0; + try { + for ( + var a, s = t[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !e || n.length !== e); + r = !0 + ); + } catch (t) { + (i = !0), (o = t); + } finally { + try { + r || null == s.return || s.return(); + } finally { + if (i) throw o; } - c && - c.clickToCopyToClipboard && - T.selectAll('text').on('click', function( - t - ) { - var e = t.percent, - n = t.result; - y - ? (0, l.default)(n, o.event) - : p && (0, l.default)(e, o.event); - }); - } - }, - { - key: 'update', - value: function() { - this.destroy(), this.render(); - } - }, - { - key: 'destroy', - value: function() { - o.select( - this.el().querySelector( - '.' + - this.config.theme + - '-rendering .c3-chart' - ) - ).remove(); } + return n; + })(t, e) || + (function() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' + ); + })() + ); + })( + (function(t, e, n) { + if (!t.props.bounds) return [e, n]; + var r = t.props.bounds; + r = + 'string' == typeof r + ? r + : (function(t) { + return { + left: t.left, + top: t.top, + right: t.right, + bottom: t.bottom + }; + })(r); + var i = I(t); + if ('string' == typeof r) { + var o, + a = i.ownerDocument, + s = a.defaultView; + if ( + !( + (o = + 'parent' === r + ? i.parentNode + : a.querySelector(r)) instanceof + s.HTMLElement + ) + ) + throw new Error( + 'Bounds selector "' + + r + + '" could not find an element.' + ); + var u = s.getComputedStyle(i), + l = s.getComputedStyle(o); + r = { + left: + -i.offsetLeft + + p(l.paddingLeft) + + p(u.marginLeft), + top: + -i.offsetTop + + p(l.paddingTop) + + p(u.marginTop), + right: + O(o) - + T(i) - + i.offsetLeft + + p(l.paddingRight) - + p(u.marginRight), + bottom: + C(o) - + A(i) - + i.offsetTop + + p(l.paddingBottom) - + p(u.marginBottom) + }; } - ]), - t - ); - })(); - e.default = c; + return ( + h(r.right) && (e = Math.min(e, r.right)), + h(r.bottom) && (n = Math.min(n, r.bottom)), + h(r.left) && (e = Math.max(e, r.left)), + h(r.top) && (n = Math.max(n, r.top)), + [e, n] + ); + })(J(n), i.x, i.y), + 2 + ), + u = s[0], + l = s[1]; + (i.x = u), + (i.y = l), + (i.slackX = n.state.slackX + (o - i.x)), + (i.slackY = n.state.slackY + (a - i.y)), + (r.x = i.x), + (r.y = i.y), + (r.deltaX = i.x - n.state.x), + (r.deltaY = i.y - n.state.y); + } + if (!1 === n.props.onDrag(t, r)) return !1; + n.setState(i); + }), + rt(J(n), 'onDragStop', function(t, e) { + if (!n.state.dragging) return !1; + if (!1 === n.props.onStop(t, N(J(n), e))) return !1; + var r = { dragging: !1, slackX: 0, slackY: 0 }; + if (Boolean(n.props.position)) { + var i = n.props.position, + o = i.x, + a = i.y; + (r.x = o), (r.y = a); + } + n.setState(r); + }), + (n.state = { + dragging: !1, + dragged: !1, + x: t.position ? t.position.x : t.defaultPosition.x, + y: t.position ? t.position.y : t.defaultPosition.y, + prevPropsPosition: Q({}, t.position), + slackX: 0, + slackY: 0, + isElementSVG: !1 + }), + !t.position || + t.onDrag || + t.onStop || + console.warn( + 'A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.' + ), + n + ); + } + return ( + (function(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { value: t, writable: !0, configurable: !0 } + })), + e && nt(t, e); + })(e, i.a.Component), + et(e, null, [ + { + key: 'getDerivedStateFromProps', + value: function(t, e) { + var n = t.position, + r = e.prevPropsPosition; + return !n || (r && n.x === r.x && n.y === r.y) + ? null + : { x: n.x, y: n.y, prevPropsPosition: Q({}, n) }; + } + } + ]), + et(e, [ + { + key: 'componentDidMount', + value: function() { + void 0 !== window.SVGElement && + u.a.findDOMNode(this) instanceof window.SVGElement && + this.setState({ isElementSVG: !0 }); + } }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; + { + key: 'componentWillUnmount', + value: function() { + this.setState({ dragging: !1 }); + } + }, + { + key: 'render', + value: function() { + var t, + e = this.props, + n = (e.axis, e.bounds, e.children), + r = e.defaultPosition, + o = e.defaultClassName, + a = e.defaultClassNameDragging, + s = e.defaultClassNameDragged, + u = e.position, + l = e.positionOffset, + f = + (e.scale, + (function(t, e) { + if (null == t) return {}; + var n, + r, + i = (function(t, e) { + if (null == t) return {}; + var n, + r, + i = {}, + o = Object.keys(t); + for (r = 0; r < o.length; r++) + (n = o[r]), + e.indexOf(n) >= 0 || (i[n] = t[n]); + return i; + })(t, e); + if (Object.getOwnPropertySymbols) { + var o = Object.getOwnPropertySymbols(t); + for (r = 0; r < o.length; r++) + (n = o[r]), + e.indexOf(n) >= 0 || + (Object.prototype.propertyIsEnumerable.call( + t, + n + ) && + (i[n] = t[n])); + } + return i; + })(e, [ + 'axis', + 'bounds', + 'children', + 'defaultPosition', + 'defaultClassName', + 'defaultClassNameDragging', + 'defaultClassNameDragged', + 'position', + 'positionOffset', + 'scale' + ])), + d = {}, + h = null, + p = !Boolean(u) || this.state.dragging, + g = u || r, + m = { + x: j(this) && p ? this.state.x : g.x, + y: D(this) && p ? this.state.y : g.y }; - })(), - i = u(n(10)), - o = n(0), - a = n(3), - s = u(n(1)); - function u(t) { - return t && t.__esModule ? t : { default: t }; + this.state.isElementSVG + ? (h = (function(t, e) { + return P(t, e, ''); + })(m, l)) + : (d = (function(t, e) { + var n = P(t, e, 'px'); + return _({}, v('transform', y), n); + })(m, l)); + var b = c()( + n.props.className || '', + o, + (rt((t = {}), a, this.state.dragging), + rt(t, s, this.state.dragged), + t) + ); + return i.a.createElement( + X, + $({}, f, { + onStart: this.onDragStart, + onDrag: this.onDrag, + onStop: this.onDragStop + }), + i.a.cloneElement(i.a.Children.only(n), { + className: b, + style: Q({}, n.props.style, {}, d), + transform: h + }) + ); + } + } + ]), + e + ); + })(); + rt(it, 'displayName', 'Draggable'), + rt( + it, + 'propTypes', + Q({}, X.propTypes, { + axis: a.a.oneOf(['both', 'x', 'y', 'none']), + bounds: a.a.oneOfType([ + a.a.shape({ + left: a.a.number, + right: a.a.number, + top: a.a.number, + bottom: a.a.number + }), + a.a.string, + a.a.oneOf([!1]) + ]), + defaultClassName: a.a.string, + defaultClassNameDragging: a.a.string, + defaultClassNameDragged: a.a.string, + defaultPosition: a.a.shape({ + x: a.a.number, + y: a.a.number + }), + positionOffset: a.a.shape({ + x: a.a.oneOfType([a.a.number, a.a.string]), + y: a.a.oneOfType([a.a.number, a.a.string]) + }), + position: a.a.shape({ x: a.a.number, y: a.a.number }), + className: g, + style: g, + transform: g + }) + ), + rt( + it, + 'defaultProps', + Q({}, X.defaultProps, { + axis: 'both', + bounds: !1, + defaultClassName: 'react-draggable', + defaultClassNameDragging: 'react-draggable-dragging', + defaultClassNameDragged: 'react-draggable-dragged', + defaultPosition: { x: 0, y: 0 }, + position: null, + scale: 1 + }) + ); + } + ]))); + }, + function(t, e, n) { + 'use strict'; + (e.__esModule = !0), (e.default = void 0); + var r = s(n(0)), + i = s(n(1)), + o = n(125), + a = n(290); + function s(t) { + return t && t.__esModule ? t : { default: t }; + } + function u() { + return (u = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); + } + return t; + }).apply(this, arguments); + } + function l(t, e) { + var n = Object.keys(t); + if (Object.getOwnPropertySymbols) { + var r = Object.getOwnPropertySymbols(t); + e && + (r = r.filter(function(e) { + return Object.getOwnPropertyDescriptor(t, e).enumerable; + })), + n.push.apply(n, r); + } + return n; + } + function c(t, e, n) { + return ( + e in t + ? Object.defineProperty(t, e, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (t[e] = n), + t + ); + } + var f = (function(t) { + var e, n; + function i() { + for (var e, n = arguments.length, r = new Array(n), i = 0; i < n; i++) + r[i] = arguments[i]; + return ( + c( + (function(t) { + if (void 0 === t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return t; + })((e = t.call.apply(t, [this].concat(r)) || this)), + 'state', + { slackW: 0, slackH: 0 } + ), + e + ); + } + (n = t), + ((e = i).prototype = Object.create(n.prototype)), + (e.prototype.constructor = e), + (e.__proto__ = n); + var s = i.prototype; + return ( + (s.lockAspectRatio = function(t, e, n) { + return [(t = (e = t / n) * n), e]; + }), + (s.runConstraints = function(t, e) { + var n = [this.props.minConstraints, this.props.maxConstraints], + r = n[0], + i = n[1]; + if (!r && !i) return [t, e]; + if (this.props.lockAspectRatio) + if (e === this.props.height) { + var o = this.props.width / this.props.height; + t = (e = t / o) * o; + } else { + var a = this.props.height / this.props.width; + e = (t = e / a) * a; + } + var s = t, + u = e, + l = this.state, + c = l.slackW, + f = l.slackH; + return ( + (t += c), + (e += f), + r && ((t = Math.max(r[0], t)), (e = Math.max(r[1], e))), + i && ((t = Math.min(i[0], t)), (e = Math.min(i[1], e))), + (f += u - e), + ((c += s - t) === this.state.slackW && f === this.state.slackH) || + this.setState({ slackW: c, slackH: f }), + [t, e] + ); + }), + (s.resizeHandler = function(t, e) { + var n = this; + return function(r, i) { + var o = i.node, + a = i.deltaX, + s = i.deltaY, + u = + ('both' === n.props.axis || 'x' === n.props.axis) && + -1 === ['n', 's'].indexOf(e), + l = + ('both' === n.props.axis || 'y' === n.props.axis) && + -1 === ['e', 'w'].indexOf(e); + u && 'w' === e[e.length - 1] && (a = -a), + l && 'n' === e[0] && (s = -s); + var c = n.props.width + (u ? a : 0), + f = n.props.height + (l ? s : 0), + d = c !== n.props.width, + h = f !== n.props.height; + if ('onResize' !== t || d || h) { + var p = n.runConstraints(c, f); + (c = p[0]), (f = p[1]); + var g = {}; + if ('onResizeStart' === t); + else if ('onResizeStop' === t) g.slackW = g.slackH = 0; + else if (c === n.props.width && f === n.props.height) return; + 'function' == typeof n.props[t] + ? ('function' == typeof r.persist && r.persist(), + n.setState(g, function() { + return n.props[t](r, { + node: o, + size: { width: c, height: f }, + handle: e + }); + })) + : n.setState(g); + } + }; + }), + (s.renderResizeHandle = function(t) { + var e = this.props.handle; + return e + ? 'function' == typeof e + ? e(t) + : e + : r.default.createElement('span', { + className: + 'react-resizable-handle react-resizable-handle-' + t + }); + }), + (s.render = function() { + var t = this, + e = this.props, + n = e.children, + i = e.draggableOpts, + s = + (e.width, + e.height, + e.handleSize, + e.lockAspectRatio, + e.axis, + e.minConstraints, + e.maxConstraints, + e.onResize, + e.onResizeStop, + e.onResizeStart, + e.resizeHandles), + f = (function(t, e) { + if (null == t) return {}; + var n, + r, + i = {}, + o = Object.keys(t); + for (r = 0; r < o.length; r++) + (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); + return i; + })(e, [ + 'children', + 'draggableOpts', + 'width', + 'height', + 'handleSize', + 'lockAspectRatio', + 'axis', + 'minConstraints', + 'maxConstraints', + 'onResize', + 'onResizeStop', + 'onResizeStart', + 'resizeHandles' + ]), + d = f.className + ? f.className + ' react-resizable' + : 'react-resizable'; + return (0, a.cloneElement)( + n, + (function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = null != arguments[e] ? arguments[e] : {}; + e % 2 + ? l(n, !0).forEach(function(e) { + c(t, e, n[e]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties( + t, + Object.getOwnPropertyDescriptors(n) + ) + : l(n).forEach(function(e) { + Object.defineProperty( + t, + e, + Object.getOwnPropertyDescriptor(n, e) + ); + }); + } + return t; + })({}, f, { + className: d, + children: [ + n.props.children, + s.map(function(e) { + return r.default.createElement( + o.DraggableCore, + u({}, i, { + key: 'resizableHandle-' + e, + onStop: t.resizeHandler('onResizeStop', e), + onStart: t.resizeHandler('onResizeStart', e), + onDrag: t.resizeHandler('onResize', e) + }), + t.renderResizeHandle(e) + ); + }) + ] + }) + ); + }), + i + ); + })(r.default.Component); + (e.default = f), + c(f, 'propTypes', { + children: i.default.element.isRequired, + width: i.default.number.isRequired, + height: i.default.number.isRequired, + handle: i.default.element, + handleSize: i.default.array, + resizeHandles: i.default.arrayOf( + i.default.oneOf(['s', 'w', 'e', 'n', 'sw', 'nw', 'se', 'ne']) + ), + lockAspectRatio: i.default.bool, + axis: i.default.oneOf(['both', 'x', 'y', 'none']), + minConstraints: i.default.arrayOf(i.default.number), + maxConstraints: i.default.arrayOf(i.default.number), + onResizeStop: i.default.func, + onResizeStart: i.default.func, + onResize: i.default.func, + draggableOpts: i.default.object + }), + c(f, 'defaultProps', { + handleSize: [20, 20], + lockAspectRatio: !1, + axis: 'both', + minConstraints: [20, 20], + maxConstraints: [1 / 0, 1 / 0], + resizeHandles: ['se'] + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.getBreakpointFromWidth = function(t, e) { + for (var n = i(t), r = n[0], o = 1, a = n.length; o < a; o++) { + var s = n[o]; + e > t[s] && (r = s); + } + return r; + }), + (e.getColsFromBreakpoint = function(t, e) { + if (!e[t]) + throw new Error( + 'ResponsiveReactGridLayout: `cols` entry for breakpoint ' + + t + + ' is missing!' + ); + return e[t]; + }), + (e.findOrGenerateResponsiveLayout = function(t, e, n, o, a, s) { + if (t[n]) return (0, r.cloneLayout)(t[n]); + for ( + var u = t[o], + l = i(e), + c = l.slice(l.indexOf(n)), + f = 0, + d = c.length; + f < d; + f++ + ) { + var h = c[f]; + if (t[h]) { + u = t[h]; + break; + } + } + return ( + (u = (0, r.cloneLayout)(u || [])), + (0, r.compact)((0, r.correctBounds)(u, { cols: a }), s, a) + ); + }), + (e.sortBreakpoints = i); + var r = n(44); + function i(t) { + return Object.keys(t).sort(function(e, n) { + return t[e] - t[n]; + }); + } + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t, e, n) { + return o.default[t.type](t, e, n); + }); + var r, + i = n(295), + o = (r = i) && r.__esModule ? r : { default: r }; + }, + function(t, e, n) { + var r = n(130), + i = { + input: !0, + option: !0, + optgroup: !0, + select: !0, + button: !0, + datalist: !0, + textarea: !0 + }, + o = { + tr: { tr: !0, th: !0, td: !0 }, + th: { th: !0 }, + td: { thead: !0, th: !0, td: !0 }, + body: { head: !0, link: !0, script: !0 }, + li: { li: !0 }, + p: { p: !0 }, + h1: { p: !0 }, + h2: { p: !0 }, + h3: { p: !0 }, + h4: { p: !0 }, + h5: { p: !0 }, + h6: { p: !0 }, + select: i, + input: i, + output: i, + button: i, + datalist: i, + textarea: i, + option: { option: !0 }, + optgroup: { optgroup: !0 } + }, + a = { + __proto__: null, + area: !0, + base: !0, + basefont: !0, + br: !0, + col: !0, + command: !0, + embed: !0, + frame: !0, + hr: !0, + img: !0, + input: !0, + isindex: !0, + keygen: !0, + link: !0, + meta: !0, + param: !0, + source: !0, + track: !0, + wbr: !0 + }, + s = { __proto__: null, math: !0, svg: !0 }, + u = { + __proto__: null, + mi: !0, + mo: !0, + mn: !0, + ms: !0, + mtext: !0, + 'annotation-xml': !0, + foreignObject: !0, + desc: !0, + title: !0 + }, + l = /\s|\//; + function c(t, e) { + (this._options = e || {}), + (this._cbs = t || {}), + (this._tagname = ''), + (this._attribname = ''), + (this._attribvalue = ''), + (this._attribs = null), + (this._stack = []), + (this._foreignContext = []), + (this.startIndex = 0), + (this.endIndex = null), + (this._lowerCaseTagNames = + 'lowerCaseTags' in this._options + ? !!this._options.lowerCaseTags + : !this._options.xmlMode), + (this._lowerCaseAttributeNames = + 'lowerCaseAttributeNames' in this._options + ? !!this._options.lowerCaseAttributeNames + : !this._options.xmlMode), + this._options.Tokenizer && (r = this._options.Tokenizer), + (this._tokenizer = new r(this._options, this)), + this._cbs.onparserinit && this._cbs.onparserinit(this); + } + n(59)(c, n(301).EventEmitter), + (c.prototype._updatePosition = function(t) { + null === this.endIndex + ? this._tokenizer._sectionStart <= t + ? (this.startIndex = 0) + : (this.startIndex = this._tokenizer._sectionStart - t) + : (this.startIndex = this.endIndex + 1), + (this.endIndex = this._tokenizer.getAbsoluteIndex()); + }), + (c.prototype.ontext = function(t) { + this._updatePosition(1), + this.endIndex--, + this._cbs.ontext && this._cbs.ontext(t); + }), + (c.prototype.onopentagname = function(t) { + if ( + (this._lowerCaseTagNames && (t = t.toLowerCase()), + (this._tagname = t), + !this._options.xmlMode && t in o) + ) + for ( + var e; + (e = this._stack[this._stack.length - 1]) in o[t]; + this.onclosetag(e) + ); + (!this._options.xmlMode && t in a) || + (this._stack.push(t), + t in s + ? this._foreignContext.push(!0) + : t in u && this._foreignContext.push(!1)), + this._cbs.onopentagname && this._cbs.onopentagname(t), + this._cbs.onopentag && (this._attribs = {}); + }), + (c.prototype.onopentagend = function() { + this._updatePosition(1), + this._attribs && + (this._cbs.onopentag && + this._cbs.onopentag(this._tagname, this._attribs), + (this._attribs = null)), + !this._options.xmlMode && + this._cbs.onclosetag && + this._tagname in a && + this._cbs.onclosetag(this._tagname), + (this._tagname = ''); + }), + (c.prototype.onclosetag = function(t) { + if ( + (this._updatePosition(1), + this._lowerCaseTagNames && (t = t.toLowerCase()), + (t in s || t in u) && this._foreignContext.pop(), + !this._stack.length || (t in a && !this._options.xmlMode)) + ) + this._options.xmlMode || + ('br' !== t && 'p' !== t) || + (this.onopentagname(t), this._closeCurrentTag()); + else { + var e = this._stack.lastIndexOf(t); + if (-1 !== e) + if (this._cbs.onclosetag) + for (e = this._stack.length - e; e--; ) + this._cbs.onclosetag(this._stack.pop()); + else this._stack.length = e; + else + 'p' !== t || + this._options.xmlMode || + (this.onopentagname(t), this._closeCurrentTag()); + } + }), + (c.prototype.onselfclosingtag = function() { + this._options.xmlMode || + this._options.recognizeSelfClosing || + this._foreignContext[this._foreignContext.length - 1] + ? this._closeCurrentTag() + : this.onopentagend(); + }), + (c.prototype._closeCurrentTag = function() { + var t = this._tagname; + this.onopentagend(), + this._stack[this._stack.length - 1] === t && + (this._cbs.onclosetag && this._cbs.onclosetag(t), + this._stack.pop()); + }), + (c.prototype.onattribname = function(t) { + this._lowerCaseAttributeNames && (t = t.toLowerCase()), + (this._attribname = t); + }), + (c.prototype.onattribdata = function(t) { + this._attribvalue += t; + }), + (c.prototype.onattribend = function() { + this._cbs.onattribute && + this._cbs.onattribute(this._attribname, this._attribvalue), + this._attribs && + !Object.prototype.hasOwnProperty.call( + this._attribs, + this._attribname + ) && + (this._attribs[this._attribname] = this._attribvalue), + (this._attribname = ''), + (this._attribvalue = ''); + }), + (c.prototype._getInstructionName = function(t) { + var e = t.search(l), + n = e < 0 ? t : t.substr(0, e); + return this._lowerCaseTagNames && (n = n.toLowerCase()), n; + }), + (c.prototype.ondeclaration = function(t) { + if (this._cbs.onprocessinginstruction) { + var e = this._getInstructionName(t); + this._cbs.onprocessinginstruction('!' + e, '!' + t); + } + }), + (c.prototype.onprocessinginstruction = function(t) { + if (this._cbs.onprocessinginstruction) { + var e = this._getInstructionName(t); + this._cbs.onprocessinginstruction('?' + e, '?' + t); + } + }), + (c.prototype.oncomment = function(t) { + this._updatePosition(4), + this._cbs.oncomment && this._cbs.oncomment(t), + this._cbs.oncommentend && this._cbs.oncommentend(); + }), + (c.prototype.oncdata = function(t) { + this._updatePosition(1), + this._options.xmlMode || this._options.recognizeCDATA + ? (this._cbs.oncdatastart && this._cbs.oncdatastart(), + this._cbs.ontext && this._cbs.ontext(t), + this._cbs.oncdataend && this._cbs.oncdataend()) + : this.oncomment('[CDATA[' + t + ']]'); + }), + (c.prototype.onerror = function(t) { + this._cbs.onerror && this._cbs.onerror(t); + }), + (c.prototype.onend = function() { + if (this._cbs.onclosetag) + for ( + var t = this._stack.length; + t > 0; + this._cbs.onclosetag(this._stack[--t]) + ); + this._cbs.onend && this._cbs.onend(); + }), + (c.prototype.reset = function() { + this._cbs.onreset && this._cbs.onreset(), + this._tokenizer.reset(), + (this._tagname = ''), + (this._attribname = ''), + (this._attribs = null), + (this._stack = []), + this._cbs.onparserinit && this._cbs.onparserinit(this); + }), + (c.prototype.parseComplete = function(t) { + this.reset(), this.end(t); + }), + (c.prototype.write = function(t) { + this._tokenizer.write(t); + }), + (c.prototype.end = function(t) { + this._tokenizer.end(t); + }), + (c.prototype.pause = function() { + this._tokenizer.pause(); + }), + (c.prototype.resume = function() { + this._tokenizer.resume(); + }), + (c.prototype.parseChunk = c.prototype.write), + (c.prototype.done = c.prototype.end), + (t.exports = c); + }, + function(t, e, n) { + t.exports = mt; + var r = n(296), + i = n(298), + o = n(299), + a = n(300), + s = 0, + u = s++, + l = s++, + c = s++, + f = s++, + d = s++, + h = s++, + p = s++, + g = s++, + m = s++, + v = s++, + y = s++, + b = s++, + _ = s++, + x = s++, + w = s++, + S = s++, + E = s++, + k = s++, + A = s++, + T = s++, + C = s++, + O = s++, + P = s++, + M = s++, + L = s++, + j = s++, + D = s++, + R = s++, + z = s++, + N = s++, + I = s++, + F = s++, + V = s++, + B = s++, + G = s++, + H = s++, + U = s++, + q = s++, + W = s++, + X = s++, + Y = s++, + $ = s++, + K = s++, + Q = s++, + Z = s++, + J = s++, + tt = s++, + et = s++, + nt = s++, + rt = s++, + it = s++, + ot = s++, + at = s++, + st = s++, + ut = s++, + lt = 0, + ct = lt++, + ft = lt++, + dt = lt++; + function ht(t) { + return ( + ' ' === t || '\n' === t || '\t' === t || '\f' === t || '\r' === t + ); + } + function pt(t, e, n) { + var r = t.toLowerCase(); + return t === r + ? function(t) { + t === r ? (this._state = e) : ((this._state = n), this._index--); + } + : function(i) { + i === r || i === t + ? (this._state = e) + : ((this._state = n), this._index--); + }; + } + function gt(t, e) { + var n = t.toLowerCase(); + return function(r) { + r === n || r === t + ? (this._state = e) + : ((this._state = c), this._index--); + }; + } + function mt(t, e) { + (this._state = u), + (this._buffer = ''), + (this._sectionStart = 0), + (this._index = 0), + (this._bufferOffset = 0), + (this._baseState = u), + (this._special = ct), + (this._cbs = e), + (this._running = !0), + (this._ended = !1), + (this._xmlMode = !(!t || !t.xmlMode)), + (this._decodeEntities = !(!t || !t.decodeEntities)); + } + (mt.prototype._stateText = function(t) { + '<' === t + ? (this._index > this._sectionStart && + this._cbs.ontext(this._getSection()), + (this._state = l), + (this._sectionStart = this._index)) + : this._decodeEntities && + this._special === ct && + '&' === t && + (this._index > this._sectionStart && + this._cbs.ontext(this._getSection()), + (this._baseState = u), + (this._state = it), + (this._sectionStart = this._index)); + }), + (mt.prototype._stateBeforeTagName = function(t) { + '/' === t + ? (this._state = d) + : '<' === t + ? (this._cbs.ontext(this._getSection()), + (this._sectionStart = this._index)) + : '>' === t || this._special !== ct || ht(t) + ? (this._state = u) + : '!' === t + ? ((this._state = w), (this._sectionStart = this._index + 1)) + : '?' === t + ? ((this._state = E), (this._sectionStart = this._index + 1)) + : ((this._state = + this._xmlMode || ('s' !== t && 'S' !== t) ? c : I), + (this._sectionStart = this._index)); + }), + (mt.prototype._stateInTagName = function(t) { + ('/' === t || '>' === t || ht(t)) && + (this._emitToken('onopentagname'), + (this._state = g), + this._index--); + }), + (mt.prototype._stateBeforeCloseingTagName = function(t) { + ht(t) || + ('>' === t + ? (this._state = u) + : this._special !== ct + ? 's' === t || 'S' === t + ? (this._state = F) + : ((this._state = u), this._index--) + : ((this._state = h), (this._sectionStart = this._index))); + }), + (mt.prototype._stateInCloseingTagName = function(t) { + ('>' === t || ht(t)) && + (this._emitToken('onclosetag'), (this._state = p), this._index--); + }), + (mt.prototype._stateAfterCloseingTagName = function(t) { + '>' === t && + ((this._state = u), (this._sectionStart = this._index + 1)); + }), + (mt.prototype._stateBeforeAttributeName = function(t) { + '>' === t + ? (this._cbs.onopentagend(), + (this._state = u), + (this._sectionStart = this._index + 1)) + : '/' === t + ? (this._state = f) + : ht(t) || ((this._state = m), (this._sectionStart = this._index)); + }), + (mt.prototype._stateInSelfClosingTag = function(t) { + '>' === t + ? (this._cbs.onselfclosingtag(), + (this._state = u), + (this._sectionStart = this._index + 1)) + : ht(t) || ((this._state = g), this._index--); + }), + (mt.prototype._stateInAttributeName = function(t) { + ('=' === t || '/' === t || '>' === t || ht(t)) && + (this._cbs.onattribname(this._getSection()), + (this._sectionStart = -1), + (this._state = v), + this._index--); + }), + (mt.prototype._stateAfterAttributeName = function(t) { + '=' === t + ? (this._state = y) + : '/' === t || '>' === t + ? (this._cbs.onattribend(), (this._state = g), this._index--) + : ht(t) || + (this._cbs.onattribend(), + (this._state = m), + (this._sectionStart = this._index)); + }), + (mt.prototype._stateBeforeAttributeValue = function(t) { + '"' === t + ? ((this._state = b), (this._sectionStart = this._index + 1)) + : "'" === t + ? ((this._state = _), (this._sectionStart = this._index + 1)) + : ht(t) || + ((this._state = x), + (this._sectionStart = this._index), + this._index--); + }), + (mt.prototype._stateInAttributeValueDoubleQuotes = function(t) { + '"' === t + ? (this._emitToken('onattribdata'), + this._cbs.onattribend(), + (this._state = g)) + : this._decodeEntities && + '&' === t && + (this._emitToken('onattribdata'), + (this._baseState = this._state), + (this._state = it), + (this._sectionStart = this._index)); + }), + (mt.prototype._stateInAttributeValueSingleQuotes = function(t) { + "'" === t + ? (this._emitToken('onattribdata'), + this._cbs.onattribend(), + (this._state = g)) + : this._decodeEntities && + '&' === t && + (this._emitToken('onattribdata'), + (this._baseState = this._state), + (this._state = it), + (this._sectionStart = this._index)); + }), + (mt.prototype._stateInAttributeValueNoQuotes = function(t) { + ht(t) || '>' === t + ? (this._emitToken('onattribdata'), + this._cbs.onattribend(), + (this._state = g), + this._index--) + : this._decodeEntities && + '&' === t && + (this._emitToken('onattribdata'), + (this._baseState = this._state), + (this._state = it), + (this._sectionStart = this._index)); + }), + (mt.prototype._stateBeforeDeclaration = function(t) { + this._state = '[' === t ? O : '-' === t ? k : S; + }), + (mt.prototype._stateInDeclaration = function(t) { + '>' === t && + (this._cbs.ondeclaration(this._getSection()), + (this._state = u), + (this._sectionStart = this._index + 1)); + }), + (mt.prototype._stateInProcessingInstruction = function(t) { + '>' === t && + (this._cbs.onprocessinginstruction(this._getSection()), + (this._state = u), + (this._sectionStart = this._index + 1)); + }), + (mt.prototype._stateBeforeComment = function(t) { + '-' === t + ? ((this._state = A), (this._sectionStart = this._index + 1)) + : (this._state = S); + }), + (mt.prototype._stateInComment = function(t) { + '-' === t && (this._state = T); + }), + (mt.prototype._stateAfterComment1 = function(t) { + this._state = '-' === t ? C : A; + }), + (mt.prototype._stateAfterComment2 = function(t) { + '>' === t + ? (this._cbs.oncomment( + this._buffer.substring(this._sectionStart, this._index - 2) + ), + (this._state = u), + (this._sectionStart = this._index + 1)) + : '-' !== t && (this._state = A); + }), + (mt.prototype._stateBeforeCdata1 = pt('C', P, S)), + (mt.prototype._stateBeforeCdata2 = pt('D', M, S)), + (mt.prototype._stateBeforeCdata3 = pt('A', L, S)), + (mt.prototype._stateBeforeCdata4 = pt('T', j, S)), + (mt.prototype._stateBeforeCdata5 = pt('A', D, S)), + (mt.prototype._stateBeforeCdata6 = function(t) { + '[' === t + ? ((this._state = R), (this._sectionStart = this._index + 1)) + : ((this._state = S), this._index--); + }), + (mt.prototype._stateInCdata = function(t) { + ']' === t && (this._state = z); + }), + (mt.prototype._stateAfterCdata1 = function(t) { + this._state = ']' === t ? N : R; + }), + (mt.prototype._stateAfterCdata2 = function(t) { + '>' === t + ? (this._cbs.oncdata( + this._buffer.substring(this._sectionStart, this._index - 2) + ), + (this._state = u), + (this._sectionStart = this._index + 1)) + : ']' !== t && (this._state = R); + }), + (mt.prototype._stateBeforeSpecial = function(t) { + 'c' === t || 'C' === t + ? (this._state = V) + : 't' === t || 'T' === t + ? (this._state = K) + : ((this._state = c), this._index--); + }), + (mt.prototype._stateBeforeSpecialEnd = function(t) { + this._special !== ft || ('c' !== t && 'C' !== t) + ? this._special !== dt || ('t' !== t && 'T' !== t) + ? (this._state = u) + : (this._state = tt) + : (this._state = q); + }), + (mt.prototype._stateBeforeScript1 = gt('R', B)), + (mt.prototype._stateBeforeScript2 = gt('I', G)), + (mt.prototype._stateBeforeScript3 = gt('P', H)), + (mt.prototype._stateBeforeScript4 = gt('T', U)), + (mt.prototype._stateBeforeScript5 = function(t) { + ('/' === t || '>' === t || ht(t)) && (this._special = ft), + (this._state = c), + this._index--; + }), + (mt.prototype._stateAfterScript1 = pt('R', W, u)), + (mt.prototype._stateAfterScript2 = pt('I', X, u)), + (mt.prototype._stateAfterScript3 = pt('P', Y, u)), + (mt.prototype._stateAfterScript4 = pt('T', $, u)), + (mt.prototype._stateAfterScript5 = function(t) { + '>' === t || ht(t) + ? ((this._special = ct), + (this._state = h), + (this._sectionStart = this._index - 6), + this._index--) + : (this._state = u); + }), + (mt.prototype._stateBeforeStyle1 = gt('Y', Q)), + (mt.prototype._stateBeforeStyle2 = gt('L', Z)), + (mt.prototype._stateBeforeStyle3 = gt('E', J)), + (mt.prototype._stateBeforeStyle4 = function(t) { + ('/' === t || '>' === t || ht(t)) && (this._special = dt), + (this._state = c), + this._index--; + }), + (mt.prototype._stateAfterStyle1 = pt('Y', et, u)), + (mt.prototype._stateAfterStyle2 = pt('L', nt, u)), + (mt.prototype._stateAfterStyle3 = pt('E', rt, u)), + (mt.prototype._stateAfterStyle4 = function(t) { + '>' === t || ht(t) + ? ((this._special = ct), + (this._state = h), + (this._sectionStart = this._index - 5), + this._index--) + : (this._state = u); + }), + (mt.prototype._stateBeforeEntity = pt('#', ot, at)), + (mt.prototype._stateBeforeNumericEntity = pt('X', ut, st)), + (mt.prototype._parseNamedEntityStrict = function() { + if (this._sectionStart + 1 < this._index) { + var t = this._buffer.substring(this._sectionStart + 1, this._index), + e = this._xmlMode ? a : i; + e.hasOwnProperty(t) && + (this._emitPartial(e[t]), (this._sectionStart = this._index + 1)); + } + }), + (mt.prototype._parseLegacyEntity = function() { + var t = this._sectionStart + 1, + e = this._index - t; + for (e > 6 && (e = 6); e >= 2; ) { + var n = this._buffer.substr(t, e); + if (o.hasOwnProperty(n)) + return ( + this._emitPartial(o[n]), void (this._sectionStart += e + 1) + ); + e--; + } + }), + (mt.prototype._stateInNamedEntity = function(t) { + ';' === t + ? (this._parseNamedEntityStrict(), + this._sectionStart + 1 < this._index && + !this._xmlMode && + this._parseLegacyEntity(), + (this._state = this._baseState)) + : (t < 'a' || t > 'z') && + (t < 'A' || t > 'Z') && + (t < '0' || t > '9') && + (this._xmlMode || + this._sectionStart + 1 === this._index || + (this._baseState !== u + ? '=' !== t && this._parseNamedEntityStrict() + : this._parseLegacyEntity()), + (this._state = this._baseState), + this._index--); + }), + (mt.prototype._decodeNumericEntity = function(t, e) { + var n = this._sectionStart + t; + if (n !== this._index) { + var i = this._buffer.substring(n, this._index), + o = parseInt(i, e); + this._emitPartial(r(o)), (this._sectionStart = this._index); + } else this._sectionStart--; + this._state = this._baseState; + }), + (mt.prototype._stateInNumericEntity = function(t) { + ';' === t + ? (this._decodeNumericEntity(2, 10), this._sectionStart++) + : (t < '0' || t > '9') && + (this._xmlMode + ? (this._state = this._baseState) + : this._decodeNumericEntity(2, 10), + this._index--); + }), + (mt.prototype._stateInHexEntity = function(t) { + ';' === t + ? (this._decodeNumericEntity(3, 16), this._sectionStart++) + : (t < 'a' || t > 'f') && + (t < 'A' || t > 'F') && + (t < '0' || t > '9') && + (this._xmlMode + ? (this._state = this._baseState) + : this._decodeNumericEntity(3, 16), + this._index--); + }), + (mt.prototype._cleanup = function() { + this._sectionStart < 0 + ? ((this._buffer = ''), + (this._bufferOffset += this._index), + (this._index = 0)) + : this._running && + (this._state === u + ? (this._sectionStart !== this._index && + this._cbs.ontext(this._buffer.substr(this._sectionStart)), + (this._buffer = ''), + (this._bufferOffset += this._index), + (this._index = 0)) + : this._sectionStart === this._index + ? ((this._buffer = ''), + (this._bufferOffset += this._index), + (this._index = 0)) + : ((this._buffer = this._buffer.substr(this._sectionStart)), + (this._index -= this._sectionStart), + (this._bufferOffset += this._sectionStart)), + (this._sectionStart = 0)); + }), + (mt.prototype.write = function(t) { + this._ended && this._cbs.onerror(Error('.write() after done!')), + (this._buffer += t), + this._parse(); + }), + (mt.prototype._parse = function() { + for (; this._index < this._buffer.length && this._running; ) { + var t = this._buffer.charAt(this._index); + this._state === u + ? this._stateText(t) + : this._state === l + ? this._stateBeforeTagName(t) + : this._state === c + ? this._stateInTagName(t) + : this._state === d + ? this._stateBeforeCloseingTagName(t) + : this._state === h + ? this._stateInCloseingTagName(t) + : this._state === p + ? this._stateAfterCloseingTagName(t) + : this._state === f + ? this._stateInSelfClosingTag(t) + : this._state === g + ? this._stateBeforeAttributeName(t) + : this._state === m + ? this._stateInAttributeName(t) + : this._state === v + ? this._stateAfterAttributeName(t) + : this._state === y + ? this._stateBeforeAttributeValue(t) + : this._state === b + ? this._stateInAttributeValueDoubleQuotes(t) + : this._state === _ + ? this._stateInAttributeValueSingleQuotes(t) + : this._state === x + ? this._stateInAttributeValueNoQuotes(t) + : this._state === w + ? this._stateBeforeDeclaration(t) + : this._state === S + ? this._stateInDeclaration(t) + : this._state === E + ? this._stateInProcessingInstruction(t) + : this._state === k + ? this._stateBeforeComment(t) + : this._state === A + ? this._stateInComment(t) + : this._state === T + ? this._stateAfterComment1(t) + : this._state === C + ? this._stateAfterComment2(t) + : this._state === O + ? this._stateBeforeCdata1(t) + : this._state === P + ? this._stateBeforeCdata2(t) + : this._state === M + ? this._stateBeforeCdata3(t) + : this._state === L + ? this._stateBeforeCdata4(t) + : this._state === j + ? this._stateBeforeCdata5(t) + : this._state === D + ? this._stateBeforeCdata6(t) + : this._state === R + ? this._stateInCdata(t) + : this._state === z + ? this._stateAfterCdata1(t) + : this._state === N + ? this._stateAfterCdata2(t) + : this._state === I + ? this._stateBeforeSpecial(t) + : this._state === F + ? this._stateBeforeSpecialEnd(t) + : this._state === V + ? this._stateBeforeScript1(t) + : this._state === B + ? this._stateBeforeScript2(t) + : this._state === G + ? this._stateBeforeScript3(t) + : this._state === H + ? this._stateBeforeScript4(t) + : this._state === U + ? this._stateBeforeScript5(t) + : this._state === q + ? this._stateAfterScript1(t) + : this._state === W + ? this._stateAfterScript2(t) + : this._state === X + ? this._stateAfterScript3(t) + : this._state === Y + ? this._stateAfterScript4(t) + : this._state === $ + ? this._stateAfterScript5(t) + : this._state === K + ? this._stateBeforeStyle1(t) + : this._state === Q + ? this._stateBeforeStyle2(t) + : this._state === Z + ? this._stateBeforeStyle3(t) + : this._state === J + ? this._stateBeforeStyle4(t) + : this._state === tt + ? this._stateAfterStyle1(t) + : this._state === et + ? this._stateAfterStyle2(t) + : this._state === nt + ? this._stateAfterStyle3(t) + : this._state === rt + ? this._stateAfterStyle4(t) + : this._state === it + ? this._stateBeforeEntity(t) + : this._state === ot + ? this._stateBeforeNumericEntity(t) + : this._state === at + ? this._stateInNamedEntity(t) + : this._state === st + ? this._stateInNumericEntity(t) + : this._state === ut + ? this._stateInHexEntity(t) + : this._cbs.onerror(Error('unknown _state'), this._state), + this._index++; + } + this._cleanup(); + }), + (mt.prototype.pause = function() { + this._running = !1; + }), + (mt.prototype.resume = function() { + (this._running = !0), + this._index < this._buffer.length && this._parse(), + this._ended && this._finish(); + }), + (mt.prototype.end = function(t) { + this._ended && this._cbs.onerror(Error('.end() after done!')), + t && this.write(t), + (this._ended = !0), + this._running && this._finish(); + }), + (mt.prototype._finish = function() { + this._sectionStart < this._index && this._handleTrailingData(), + this._cbs.onend(); + }), + (mt.prototype._handleTrailingData = function() { + var t = this._buffer.substr(this._sectionStart); + this._state === R || this._state === z || this._state === N + ? this._cbs.oncdata(t) + : this._state === A || this._state === T || this._state === C + ? this._cbs.oncomment(t) + : this._state !== at || this._xmlMode + ? this._state !== st || this._xmlMode + ? this._state !== ut || this._xmlMode + ? this._state !== c && + this._state !== g && + this._state !== y && + this._state !== v && + this._state !== m && + this._state !== _ && + this._state !== b && + this._state !== x && + this._state !== h && + this._cbs.ontext(t) + : (this._decodeNumericEntity(3, 16), + this._sectionStart < this._index && + ((this._state = this._baseState), + this._handleTrailingData())) + : (this._decodeNumericEntity(2, 10), + this._sectionStart < this._index && + ((this._state = this._baseState), this._handleTrailingData())) + : (this._parseLegacyEntity(), + this._sectionStart < this._index && + ((this._state = this._baseState), this._handleTrailingData())); + }), + (mt.prototype.reset = function() { + mt.call( + this, + { xmlMode: this._xmlMode, decodeEntities: this._decodeEntities }, + this._cbs + ); + }), + (mt.prototype.getAbsoluteIndex = function() { + return this._bufferOffset + this._index; + }), + (mt.prototype._getSection = function() { + return this._buffer.substring(this._sectionStart, this._index); + }), + (mt.prototype._emitToken = function(t) { + this._cbs[t](this._getSection()), (this._sectionStart = -1); + }), + (mt.prototype._emitPartial = function(t) { + this._baseState !== u + ? this._cbs.onattribdata(t) + : this._cbs.ontext(t); + }); + }, + function(t, e, n) { + var r = n(45), + i = /\s+/g, + o = n(132), + a = n(302); + function s(t, e, n) { + 'object' == typeof t + ? ((n = e), (e = t), (t = null)) + : 'function' == typeof e && ((n = e), (e = u)), + (this._callback = t), + (this._options = e || u), + (this._elementCB = n), + (this.dom = []), + (this._done = !1), + (this._tagStack = []), + (this._parser = this._parser || null); + } + var u = { + normalizeWhitespace: !1, + withStartIndices: !1, + withEndIndices: !1 + }; + (s.prototype.onparserinit = function(t) { + this._parser = t; + }), + (s.prototype.onreset = function() { + s.call(this, this._callback, this._options, this._elementCB); + }), + (s.prototype.onend = function() { + this._done || + ((this._done = !0), + (this._parser = null), + this._handleCallback(null)); + }), + (s.prototype._handleCallback = s.prototype.onerror = function(t) { + if ('function' == typeof this._callback) this._callback(t, this.dom); + else if (t) throw t; + }), + (s.prototype.onclosetag = function() { + var t = this._tagStack.pop(); + this._options.withEndIndices && + t && + (t.endIndex = this._parser.endIndex), + this._elementCB && this._elementCB(t); + }), + (s.prototype._createDomElement = function(t) { + if (!this._options.withDomLvl1) return t; + var e; + for (var n in ((e = + 'tag' === t.type ? Object.create(a) : Object.create(o)), + t)) + t.hasOwnProperty(n) && (e[n] = t[n]); + return e; + }), + (s.prototype._addDomElement = function(t) { + var e = this._tagStack[this._tagStack.length - 1], + n = e ? e.children : this.dom, + r = n[n.length - 1]; + (t.next = null), + this._options.withStartIndices && + (t.startIndex = this._parser.startIndex), + this._options.withEndIndices && + (t.endIndex = this._parser.endIndex), + r ? ((t.prev = r), (r.next = t)) : (t.prev = null), + n.push(t), + (t.parent = e || null); + }), + (s.prototype.onopentag = function(t, e) { + var n = { + type: 'script' === t ? r.Script : 'style' === t ? r.Style : r.Tag, + name: t, + attribs: e, + children: [] + }, + i = this._createDomElement(n); + this._addDomElement(i), this._tagStack.push(i); + }), + (s.prototype.ontext = function(t) { + var e, + n = + this._options.normalizeWhitespace || + this._options.ignoreWhitespace; + if ( + !this._tagStack.length && + this.dom.length && + (e = this.dom[this.dom.length - 1]).type === r.Text + ) + n ? (e.data = (e.data + t).replace(i, ' ')) : (e.data += t); + else if ( + this._tagStack.length && + (e = this._tagStack[this._tagStack.length - 1]) && + (e = e.children[e.children.length - 1]) && + e.type === r.Text + ) + n ? (e.data = (e.data + t).replace(i, ' ')) : (e.data += t); + else { + n && (t = t.replace(i, ' ')); + var o = this._createDomElement({ data: t, type: r.Text }); + this._addDomElement(o); + } + }), + (s.prototype.oncomment = function(t) { + var e = this._tagStack[this._tagStack.length - 1]; + if (e && e.type === r.Comment) e.data += t; + else { + var n = { data: t, type: r.Comment }, + i = this._createDomElement(n); + this._addDomElement(i), this._tagStack.push(i); + } + }), + (s.prototype.oncdatastart = function() { + var t = { children: [{ data: '', type: r.Text }], type: r.CDATA }, + e = this._createDomElement(t); + this._addDomElement(e), this._tagStack.push(e); + }), + (s.prototype.oncommentend = s.prototype.oncdataend = function() { + this._tagStack.pop(); + }), + (s.prototype.onprocessinginstruction = function(t, e) { + var n = this._createDomElement({ + name: t, + data: e, + type: r.Directive + }); + this._addDomElement(n); + }), + (t.exports = s); + }, + function(t, e) { + var n = (t.exports = { + get firstChild() { + var t = this.children; + return (t && t[0]) || null; + }, + get lastChild() { + var t = this.children; + return (t && t[t.length - 1]) || null; + }, + get nodeType() { + return i[this.type] || i.element; + } + }), + r = { + tagName: 'name', + childNodes: 'children', + parentNode: 'parent', + previousSibling: 'prev', + nextSibling: 'next', + nodeValue: 'data' + }, + i = { element: 1, text: 3, cdata: 4, comment: 8 }; + Object.keys(r).forEach(function(t) { + var e = r[t]; + Object.defineProperty(n, t, { + get: function() { + return this[e] || null; + }, + set: function(t) { + return (this[e] = t), t; + } + }); + }); + }, + function(t, e, n) { + var r = t.exports; + [n(304), n(312), n(313), n(314), n(315), n(316)].forEach(function(t) { + Object.keys(t).forEach(function(e) { + r[e] = t[e].bind(r); + }); + }); + }, + function(t, e, n) { + 'use strict'; + var r = + (this && this.__importDefault) || + function(t) { + return t && t.__esModule ? t : { default: t }; + }; + Object.defineProperty(e, '__esModule', { value: !0 }); + var i = r(n(135)), + o = r(n(308)), + a = r(n(136)), + s = r(n(309)); + function u(t) { + var e = Object.keys(t).join('|'), + n = c(t), + r = new RegExp( + '&(?:' + (e += '|#[xX][\\da-fA-F]+|#\\d+') + ');', + 'g' + ); + return function(t) { + return String(t).replace(r, n); + }; + } + (e.decodeXML = u(a.default)), (e.decodeHTMLStrict = u(i.default)); + var l = function(t, e) { + return t < e ? 1 : -1; + }; + function c(t) { + return function(e) { + return '#' === e.charAt(1) + ? 'X' === e.charAt(2) || 'x' === e.charAt(2) + ? s.default(parseInt(e.substr(3), 16)) + : s.default(parseInt(e.substr(2), 10)) + : t[e.slice(1, -1)]; + }; + } + e.decodeHTML = (function() { + for ( + var t = Object.keys(o.default).sort(l), + e = Object.keys(i.default).sort(l), + n = 0, + r = 0; + n < e.length; + n++ + ) + t[r] === e[n] ? ((e[n] += ';?'), r++) : (e[n] += ';'); + var a = new RegExp( + '&(?:' + e.join('|') + '|#[xX][\\da-fA-F]+;?|#\\d+;?)', + 'g' + ), + s = c(i.default); + function u(t) { + return ';' !== t.substr(-1) && (t += ';'), s(t); + } + return function(t) { + return String(t).replace(a, u); + }; + })(); + }, + function(t) { + t.exports = JSON.parse( + '{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}' + ); + }, + function(t) { + t.exports = JSON.parse( + '{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}' + ); + }, + function(t, e, n) { + 'use strict'; + var r = + (this && this.__importDefault) || + function(t) { + return t && t.__esModule ? t : { default: t }; + }; + Object.defineProperty(e, '__esModule', { value: !0 }); + var i = u(r(n(136)).default), + o = l(i); + e.encodeXML = p(i, o); + var a = u(r(n(135)).default), + s = l(a); + function u(t) { + return Object.keys(t) + .sort() + .reduce(function(e, n) { + return (e[t[n]] = '&' + n + ';'), e; + }, {}); + } + function l(t) { + var e = [], + n = []; + return ( + Object.keys(t).forEach(function(t) { + return 1 === t.length ? e.push('\\' + t) : n.push(t); + }), + n.unshift('[' + e.join('') + ']'), + new RegExp(n.join('|'), 'g') + ); + } + e.encodeHTML = p(a, s); + var c = /[^\0-\x7F]/g, + f = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g; + function d(t) { + return ( + '&#x' + + t + .charCodeAt(0) + .toString(16) + .toUpperCase() + + ';' + ); + } + function h(t, e) { + return ( + '&#x' + + (1024 * (t.charCodeAt(0) - 55296) + t.charCodeAt(1) - 56320 + 65536) + .toString(16) + .toUpperCase() + + ';' + ); + } + function p(t, e) { + return function(n) { + return n + .replace(e, function(e) { + return t[e]; + }) + .replace(f, h) + .replace(c, d); + }; + } + var g = l(i); + e.escape = function(t) { + return t + .replace(g, d) + .replace(f, h) + .replace(c, d); + }; + }, + function(t, e, n) { + t.exports = s; + var r = n(129), + i = n(318).Writable, + o = n(319).StringDecoder, + a = n(139).Buffer; + function s(t, e) { + var n = (this._parser = new r(t, e)), + a = (this._decoder = new o()); + i.call(this, { decodeStrings: !1 }), + this.once('finish', function() { + n.end(a.end()); + }); + } + n(59)(s, i), + (s.prototype._write = function(t, e, n) { + t instanceof a && (t = this._decoder.write(t)), + this._parser.write(t), + n(); + }); + }, + function(t, e, n) { + 'use strict'; + (function(t) { + /*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ + var r = n(321), + i = n(322), + o = n(323); + function a() { + return u.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823; + } + function s(t, e) { + if (a() < e) throw new RangeError('Invalid typed array length'); + return ( + u.TYPED_ARRAY_SUPPORT + ? ((t = new Uint8Array(e)).__proto__ = u.prototype) + : (null === t && (t = new u(e)), (t.length = e)), + t + ); + } + function u(t, e, n) { + if (!(u.TYPED_ARRAY_SUPPORT || this instanceof u)) + return new u(t, e, n); + if ('number' == typeof t) { + if ('string' == typeof e) + throw new Error( + 'If encoding is specified then the first argument must be a string' + ); + return f(this, t); + } + return l(this, t, e, n); + } + function l(t, e, n, r) { + if ('number' == typeof e) + throw new TypeError('"value" argument must not be a number'); + return 'undefined' != typeof ArrayBuffer && e instanceof ArrayBuffer + ? (function(t, e, n, r) { + if ((e.byteLength, n < 0 || e.byteLength < n)) + throw new RangeError("'offset' is out of bounds"); + if (e.byteLength < n + (r || 0)) + throw new RangeError("'length' is out of bounds"); + e = + void 0 === n && void 0 === r + ? new Uint8Array(e) + : void 0 === r + ? new Uint8Array(e, n) + : new Uint8Array(e, n, r); + u.TYPED_ARRAY_SUPPORT + ? ((t = e).__proto__ = u.prototype) + : (t = d(t, e)); + return t; + })(t, e, n, r) + : 'string' == typeof e + ? (function(t, e, n) { + ('string' == typeof n && '' !== n) || (n = 'utf8'); + if (!u.isEncoding(n)) + throw new TypeError( + '"encoding" must be a valid string encoding' + ); + var r = 0 | p(e, n), + i = (t = s(t, r)).write(e, n); + i !== r && (t = t.slice(0, i)); + return t; + })(t, e, n) + : (function(t, e) { + if (u.isBuffer(e)) { + var n = 0 | h(e.length); + return 0 === (t = s(t, n)).length + ? t + : (e.copy(t, 0, 0, n), t); + } + if (e) { + if ( + ('undefined' != typeof ArrayBuffer && + e.buffer instanceof ArrayBuffer) || + 'length' in e + ) + return 'number' != typeof e.length || (r = e.length) != r + ? s(t, 0) + : d(t, e); + if ('Buffer' === e.type && o(e.data)) return d(t, e.data); + } + var r; + throw new TypeError( + 'First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.' + ); + })(t, e); + } + function c(t) { + if ('number' != typeof t) + throw new TypeError('"size" argument must be a number'); + if (t < 0) + throw new RangeError('"size" argument must not be negative'); + } + function f(t, e) { + if ((c(e), (t = s(t, e < 0 ? 0 : 0 | h(e))), !u.TYPED_ARRAY_SUPPORT)) + for (var n = 0; n < e; ++n) t[n] = 0; + return t; + } + function d(t, e) { + var n = e.length < 0 ? 0 : 0 | h(e.length); + t = s(t, n); + for (var r = 0; r < n; r += 1) t[r] = 255 & e[r]; + return t; + } + function h(t) { + if (t >= a()) + throw new RangeError( + 'Attempt to allocate Buffer larger than maximum size: 0x' + + a().toString(16) + + ' bytes' + ); + return 0 | t; + } + function p(t, e) { + if (u.isBuffer(t)) return t.length; + if ( + 'undefined' != typeof ArrayBuffer && + 'function' == typeof ArrayBuffer.isView && + (ArrayBuffer.isView(t) || t instanceof ArrayBuffer) + ) + return t.byteLength; + 'string' != typeof t && (t = '' + t); + var n = t.length; + if (0 === n) return 0; + for (var r = !1; ; ) + switch (e) { + case 'ascii': + case 'latin1': + case 'binary': + return n; + case 'utf8': + case 'utf-8': + case void 0: + return B(t).length; + case 'ucs2': + case 'ucs-2': + case 'utf16le': + case 'utf-16le': + return 2 * n; + case 'hex': + return n >>> 1; + case 'base64': + return G(t).length; + default: + if (r) return B(t).length; + (e = ('' + e).toLowerCase()), (r = !0); + } + } + function g(t, e, n) { + var r = !1; + if (((void 0 === e || e < 0) && (e = 0), e > this.length)) return ''; + if (((void 0 === n || n > this.length) && (n = this.length), n <= 0)) + return ''; + if ((n >>>= 0) <= (e >>>= 0)) return ''; + for (t || (t = 'utf8'); ; ) + switch (t) { + case 'hex': + return P(this, e, n); + case 'utf8': + case 'utf-8': + return A(this, e, n); + case 'ascii': + return C(this, e, n); + case 'latin1': + case 'binary': + return O(this, e, n); + case 'base64': + return k(this, e, n); + case 'ucs2': + case 'ucs-2': + case 'utf16le': + case 'utf-16le': + return M(this, e, n); + default: + if (r) throw new TypeError('Unknown encoding: ' + t); + (t = (t + '').toLowerCase()), (r = !0); + } + } + function m(t, e, n) { + var r = t[e]; + (t[e] = t[n]), (t[n] = r); + } + function v(t, e, n, r, i) { + if (0 === t.length) return -1; + if ( + ('string' == typeof n + ? ((r = n), (n = 0)) + : n > 2147483647 + ? (n = 2147483647) + : n < -2147483648 && (n = -2147483648), + (n = +n), + isNaN(n) && (n = i ? 0 : t.length - 1), + n < 0 && (n = t.length + n), + n >= t.length) + ) { + if (i) return -1; + n = t.length - 1; + } else if (n < 0) { + if (!i) return -1; + n = 0; + } + if (('string' == typeof e && (e = u.from(e, r)), u.isBuffer(e))) + return 0 === e.length ? -1 : y(t, e, n, r, i); + if ('number' == typeof e) + return ( + (e &= 255), + u.TYPED_ARRAY_SUPPORT && + 'function' == typeof Uint8Array.prototype.indexOf + ? i + ? Uint8Array.prototype.indexOf.call(t, e, n) + : Uint8Array.prototype.lastIndexOf.call(t, e, n) + : y(t, [e], n, r, i) + ); + throw new TypeError('val must be string, number or Buffer'); + } + function y(t, e, n, r, i) { + var o, + a = 1, + s = t.length, + u = e.length; + if ( + void 0 !== r && + ('ucs2' === (r = String(r).toLowerCase()) || + 'ucs-2' === r || + 'utf16le' === r || + 'utf-16le' === r) + ) { + if (t.length < 2 || e.length < 2) return -1; + (a = 2), (s /= 2), (u /= 2), (n /= 2); + } + function l(t, e) { + return 1 === a ? t[e] : t.readUInt16BE(e * a); + } + if (i) { + var c = -1; + for (o = n; o < s; o++) + if (l(t, o) === l(e, -1 === c ? 0 : o - c)) { + if ((-1 === c && (c = o), o - c + 1 === u)) return c * a; + } else -1 !== c && (o -= o - c), (c = -1); + } else + for (n + u > s && (n = s - u), o = n; o >= 0; o--) { + for (var f = !0, d = 0; d < u; d++) + if (l(t, o + d) !== l(e, d)) { + f = !1; + break; + } + if (f) return o; + } + return -1; + } + function b(t, e, n, r) { + n = Number(n) || 0; + var i = t.length - n; + r ? (r = Number(r)) > i && (r = i) : (r = i); + var o = e.length; + if (o % 2 != 0) throw new TypeError('Invalid hex string'); + r > o / 2 && (r = o / 2); + for (var a = 0; a < r; ++a) { + var s = parseInt(e.substr(2 * a, 2), 16); + if (isNaN(s)) return a; + t[n + a] = s; + } + return a; + } + function _(t, e, n, r) { + return H(B(e, t.length - n), t, n, r); + } + function x(t, e, n, r) { + return H( + (function(t) { + for (var e = [], n = 0; n < t.length; ++n) + e.push(255 & t.charCodeAt(n)); + return e; + })(e), + t, + n, + r + ); + } + function w(t, e, n, r) { + return x(t, e, n, r); + } + function S(t, e, n, r) { + return H(G(e), t, n, r); + } + function E(t, e, n, r) { + return H( + (function(t, e) { + for ( + var n, r, i, o = [], a = 0; + a < t.length && !((e -= 2) < 0); + ++a + ) + (n = t.charCodeAt(a)), + (r = n >> 8), + (i = n % 256), + o.push(i), + o.push(r); + return o; + })(e, t.length - n), + t, + n, + r + ); + } + function k(t, e, n) { + return 0 === e && n === t.length + ? r.fromByteArray(t) + : r.fromByteArray(t.slice(e, n)); + } + function A(t, e, n) { + n = Math.min(t.length, n); + for (var r = [], i = e; i < n; ) { + var o, + a, + s, + u, + l = t[i], + c = null, + f = l > 239 ? 4 : l > 223 ? 3 : l > 191 ? 2 : 1; + if (i + f <= n) + switch (f) { + case 1: + l < 128 && (c = l); + break; + case 2: + 128 == (192 & (o = t[i + 1])) && + (u = ((31 & l) << 6) | (63 & o)) > 127 && + (c = u); + break; + case 3: + (o = t[i + 1]), + (a = t[i + 2]), + 128 == (192 & o) && + 128 == (192 & a) && + (u = ((15 & l) << 12) | ((63 & o) << 6) | (63 & a)) > + 2047 && + (u < 55296 || u > 57343) && + (c = u); + break; + case 4: + (o = t[i + 1]), + (a = t[i + 2]), + (s = t[i + 3]), + 128 == (192 & o) && + 128 == (192 & a) && + 128 == (192 & s) && + (u = + ((15 & l) << 18) | + ((63 & o) << 12) | + ((63 & a) << 6) | + (63 & s)) > 65535 && + u < 1114112 && + (c = u); + } + null === c + ? ((c = 65533), (f = 1)) + : c > 65535 && + ((c -= 65536), + r.push(((c >>> 10) & 1023) | 55296), + (c = 56320 | (1023 & c))), + r.push(c), + (i += f); + } + return (function(t) { + var e = t.length; + if (e <= T) return String.fromCharCode.apply(String, t); + var n = '', + r = 0; + for (; r < e; ) + n += String.fromCharCode.apply(String, t.slice(r, (r += T))); + return n; + })(r); + } + (e.Buffer = u), + (e.SlowBuffer = function(t) { + +t != t && (t = 0); + return u.alloc(+t); + }), + (e.INSPECT_MAX_BYTES = 50), + (u.TYPED_ARRAY_SUPPORT = + void 0 !== t.TYPED_ARRAY_SUPPORT + ? t.TYPED_ARRAY_SUPPORT + : (function() { + try { + var t = new Uint8Array(1); + return ( + (t.__proto__ = { + __proto__: Uint8Array.prototype, + foo: function() { + return 42; + } + }), + 42 === t.foo() && + 'function' == typeof t.subarray && + 0 === t.subarray(1, 1).byteLength + ); + } catch (t) { + return !1; + } + })()), + (e.kMaxLength = a()), + (u.poolSize = 8192), + (u._augment = function(t) { + return (t.__proto__ = u.prototype), t; + }), + (u.from = function(t, e, n) { + return l(null, t, e, n); + }), + u.TYPED_ARRAY_SUPPORT && + ((u.prototype.__proto__ = Uint8Array.prototype), + (u.__proto__ = Uint8Array), + 'undefined' != typeof Symbol && + Symbol.species && + u[Symbol.species] === u && + Object.defineProperty(u, Symbol.species, { + value: null, + configurable: !0 + })), + (u.alloc = function(t, e, n) { + return (function(t, e, n, r) { + return ( + c(e), + e <= 0 + ? s(t, e) + : void 0 !== n + ? 'string' == typeof r + ? s(t, e).fill(n, r) + : s(t, e).fill(n) + : s(t, e) + ); + })(null, t, e, n); + }), + (u.allocUnsafe = function(t) { + return f(null, t); + }), + (u.allocUnsafeSlow = function(t) { + return f(null, t); + }), + (u.isBuffer = function(t) { + return !(null == t || !t._isBuffer); + }), + (u.compare = function(t, e) { + if (!u.isBuffer(t) || !u.isBuffer(e)) + throw new TypeError('Arguments must be Buffers'); + if (t === e) return 0; + for ( + var n = t.length, r = e.length, i = 0, o = Math.min(n, r); + i < o; + ++i + ) + if (t[i] !== e[i]) { + (n = t[i]), (r = e[i]); + break; + } + return n < r ? -1 : r < n ? 1 : 0; + }), + (u.isEncoding = function(t) { + switch (String(t).toLowerCase()) { + case 'hex': + case 'utf8': + case 'utf-8': + case 'ascii': + case 'latin1': + case 'binary': + case 'base64': + case 'ucs2': + case 'ucs-2': + case 'utf16le': + case 'utf-16le': + return !0; + default: + return !1; + } + }), + (u.concat = function(t, e) { + if (!o(t)) + throw new TypeError( + '"list" argument must be an Array of Buffers' + ); + if (0 === t.length) return u.alloc(0); + var n; + if (void 0 === e) + for (e = 0, n = 0; n < t.length; ++n) e += t[n].length; + var r = u.allocUnsafe(e), + i = 0; + for (n = 0; n < t.length; ++n) { + var a = t[n]; + if (!u.isBuffer(a)) + throw new TypeError( + '"list" argument must be an Array of Buffers' + ); + a.copy(r, i), (i += a.length); + } + return r; + }), + (u.byteLength = p), + (u.prototype._isBuffer = !0), + (u.prototype.swap16 = function() { + var t = this.length; + if (t % 2 != 0) + throw new RangeError('Buffer size must be a multiple of 16-bits'); + for (var e = 0; e < t; e += 2) m(this, e, e + 1); + return this; + }), + (u.prototype.swap32 = function() { + var t = this.length; + if (t % 4 != 0) + throw new RangeError('Buffer size must be a multiple of 32-bits'); + for (var e = 0; e < t; e += 4) + m(this, e, e + 3), m(this, e + 1, e + 2); + return this; + }), + (u.prototype.swap64 = function() { + var t = this.length; + if (t % 8 != 0) + throw new RangeError('Buffer size must be a multiple of 64-bits'); + for (var e = 0; e < t; e += 8) + m(this, e, e + 7), + m(this, e + 1, e + 6), + m(this, e + 2, e + 5), + m(this, e + 3, e + 4); + return this; + }), + (u.prototype.toString = function() { + var t = 0 | this.length; + return 0 === t + ? '' + : 0 === arguments.length + ? A(this, 0, t) + : g.apply(this, arguments); + }), + (u.prototype.equals = function(t) { + if (!u.isBuffer(t)) + throw new TypeError('Argument must be a Buffer'); + return this === t || 0 === u.compare(this, t); + }), + (u.prototype.inspect = function() { + var t = '', + n = e.INSPECT_MAX_BYTES; + return ( + this.length > 0 && + ((t = this.toString('hex', 0, n) + .match(/.{2}/g) + .join(' ')), + this.length > n && (t += ' ... ')), + '' + ); + }), + (u.prototype.compare = function(t, e, n, r, i) { + if (!u.isBuffer(t)) + throw new TypeError('Argument must be a Buffer'); + if ( + (void 0 === e && (e = 0), + void 0 === n && (n = t ? t.length : 0), + void 0 === r && (r = 0), + void 0 === i && (i = this.length), + e < 0 || n > t.length || r < 0 || i > this.length) + ) + throw new RangeError('out of range index'); + if (r >= i && e >= n) return 0; + if (r >= i) return -1; + if (e >= n) return 1; + if (this === t) return 0; + for ( + var o = (i >>>= 0) - (r >>>= 0), + a = (n >>>= 0) - (e >>>= 0), + s = Math.min(o, a), + l = this.slice(r, i), + c = t.slice(e, n), + f = 0; + f < s; + ++f + ) + if (l[f] !== c[f]) { + (o = l[f]), (a = c[f]); + break; + } + return o < a ? -1 : a < o ? 1 : 0; + }), + (u.prototype.includes = function(t, e, n) { + return -1 !== this.indexOf(t, e, n); + }), + (u.prototype.indexOf = function(t, e, n) { + return v(this, t, e, n, !0); + }), + (u.prototype.lastIndexOf = function(t, e, n) { + return v(this, t, e, n, !1); + }), + (u.prototype.write = function(t, e, n, r) { + if (void 0 === e) (r = 'utf8'), (n = this.length), (e = 0); + else if (void 0 === n && 'string' == typeof e) + (r = e), (n = this.length), (e = 0); + else { + if (!isFinite(e)) + throw new Error( + 'Buffer.write(string, encoding, offset[, length]) is no longer supported' + ); + (e |= 0), + isFinite(n) + ? ((n |= 0), void 0 === r && (r = 'utf8')) + : ((r = n), (n = void 0)); + } + var i = this.length - e; + if ( + ((void 0 === n || n > i) && (n = i), + (t.length > 0 && (n < 0 || e < 0)) || e > this.length) + ) + throw new RangeError('Attempt to write outside buffer bounds'); + r || (r = 'utf8'); + for (var o = !1; ; ) + switch (r) { + case 'hex': + return b(this, t, e, n); + case 'utf8': + case 'utf-8': + return _(this, t, e, n); + case 'ascii': + return x(this, t, e, n); + case 'latin1': + case 'binary': + return w(this, t, e, n); + case 'base64': + return S(this, t, e, n); + case 'ucs2': + case 'ucs-2': + case 'utf16le': + case 'utf-16le': + return E(this, t, e, n); + default: + if (o) throw new TypeError('Unknown encoding: ' + r); + (r = ('' + r).toLowerCase()), (o = !0); + } + }), + (u.prototype.toJSON = function() { + return { + type: 'Buffer', + data: Array.prototype.slice.call(this._arr || this, 0) + }; + }); + var T = 4096; + function C(t, e, n) { + var r = ''; + n = Math.min(t.length, n); + for (var i = e; i < n; ++i) r += String.fromCharCode(127 & t[i]); + return r; + } + function O(t, e, n) { + var r = ''; + n = Math.min(t.length, n); + for (var i = e; i < n; ++i) r += String.fromCharCode(t[i]); + return r; + } + function P(t, e, n) { + var r = t.length; + (!e || e < 0) && (e = 0), (!n || n < 0 || n > r) && (n = r); + for (var i = '', o = e; o < n; ++o) i += V(t[o]); + return i; + } + function M(t, e, n) { + for (var r = t.slice(e, n), i = '', o = 0; o < r.length; o += 2) + i += String.fromCharCode(r[o] + 256 * r[o + 1]); + return i; + } + function L(t, e, n) { + if (t % 1 != 0 || t < 0) throw new RangeError('offset is not uint'); + if (t + e > n) + throw new RangeError('Trying to access beyond buffer length'); + } + function j(t, e, n, r, i, o) { + if (!u.isBuffer(t)) + throw new TypeError('"buffer" argument must be a Buffer instance'); + if (e > i || e < o) + throw new RangeError('"value" argument is out of bounds'); + if (n + r > t.length) throw new RangeError('Index out of range'); + } + function D(t, e, n, r) { + e < 0 && (e = 65535 + e + 1); + for (var i = 0, o = Math.min(t.length - n, 2); i < o; ++i) + t[n + i] = + (e & (255 << (8 * (r ? i : 1 - i)))) >>> (8 * (r ? i : 1 - i)); + } + function R(t, e, n, r) { + e < 0 && (e = 4294967295 + e + 1); + for (var i = 0, o = Math.min(t.length - n, 4); i < o; ++i) + t[n + i] = (e >>> (8 * (r ? i : 3 - i))) & 255; + } + function z(t, e, n, r, i, o) { + if (n + r > t.length) throw new RangeError('Index out of range'); + if (n < 0) throw new RangeError('Index out of range'); + } + function N(t, e, n, r, o) { + return o || z(t, 0, n, 4), i.write(t, e, n, r, 23, 4), n + 4; + } + function I(t, e, n, r, o) { + return o || z(t, 0, n, 8), i.write(t, e, n, r, 52, 8), n + 8; + } + (u.prototype.slice = function(t, e) { + var n, + r = this.length; + if ( + ((t = ~~t) < 0 ? (t += r) < 0 && (t = 0) : t > r && (t = r), + (e = void 0 === e ? r : ~~e) < 0 + ? (e += r) < 0 && (e = 0) + : e > r && (e = r), + e < t && (e = t), + u.TYPED_ARRAY_SUPPORT) + ) + (n = this.subarray(t, e)).__proto__ = u.prototype; + else { + var i = e - t; + n = new u(i, void 0); + for (var o = 0; o < i; ++o) n[o] = this[o + t]; + } + return n; + }), + (u.prototype.readUIntLE = function(t, e, n) { + (t |= 0), (e |= 0), n || L(t, e, this.length); + for (var r = this[t], i = 1, o = 0; ++o < e && (i *= 256); ) + r += this[t + o] * i; + return r; + }), + (u.prototype.readUIntBE = function(t, e, n) { + (t |= 0), (e |= 0), n || L(t, e, this.length); + for (var r = this[t + --e], i = 1; e > 0 && (i *= 256); ) + r += this[t + --e] * i; + return r; + }), + (u.prototype.readUInt8 = function(t, e) { + return e || L(t, 1, this.length), this[t]; + }), + (u.prototype.readUInt16LE = function(t, e) { + return e || L(t, 2, this.length), this[t] | (this[t + 1] << 8); + }), + (u.prototype.readUInt16BE = function(t, e) { + return e || L(t, 2, this.length), (this[t] << 8) | this[t + 1]; + }), + (u.prototype.readUInt32LE = function(t, e) { + return ( + e || L(t, 4, this.length), + (this[t] | (this[t + 1] << 8) | (this[t + 2] << 16)) + + 16777216 * this[t + 3] + ); + }), + (u.prototype.readUInt32BE = function(t, e) { + return ( + e || L(t, 4, this.length), + 16777216 * this[t] + + ((this[t + 1] << 16) | (this[t + 2] << 8) | this[t + 3]) + ); + }), + (u.prototype.readIntLE = function(t, e, n) { + (t |= 0), (e |= 0), n || L(t, e, this.length); + for (var r = this[t], i = 1, o = 0; ++o < e && (i *= 256); ) + r += this[t + o] * i; + return r >= (i *= 128) && (r -= Math.pow(2, 8 * e)), r; + }), + (u.prototype.readIntBE = function(t, e, n) { + (t |= 0), (e |= 0), n || L(t, e, this.length); + for (var r = e, i = 1, o = this[t + --r]; r > 0 && (i *= 256); ) + o += this[t + --r] * i; + return o >= (i *= 128) && (o -= Math.pow(2, 8 * e)), o; + }), + (u.prototype.readInt8 = function(t, e) { + return ( + e || L(t, 1, this.length), + 128 & this[t] ? -1 * (255 - this[t] + 1) : this[t] + ); + }), + (u.prototype.readInt16LE = function(t, e) { + e || L(t, 2, this.length); + var n = this[t] | (this[t + 1] << 8); + return 32768 & n ? 4294901760 | n : n; + }), + (u.prototype.readInt16BE = function(t, e) { + e || L(t, 2, this.length); + var n = this[t + 1] | (this[t] << 8); + return 32768 & n ? 4294901760 | n : n; + }), + (u.prototype.readInt32LE = function(t, e) { + return ( + e || L(t, 4, this.length), + this[t] | + (this[t + 1] << 8) | + (this[t + 2] << 16) | + (this[t + 3] << 24) + ); + }), + (u.prototype.readInt32BE = function(t, e) { + return ( + e || L(t, 4, this.length), + (this[t] << 24) | + (this[t + 1] << 16) | + (this[t + 2] << 8) | + this[t + 3] + ); + }), + (u.prototype.readFloatLE = function(t, e) { + return e || L(t, 4, this.length), i.read(this, t, !0, 23, 4); + }), + (u.prototype.readFloatBE = function(t, e) { + return e || L(t, 4, this.length), i.read(this, t, !1, 23, 4); + }), + (u.prototype.readDoubleLE = function(t, e) { + return e || L(t, 8, this.length), i.read(this, t, !0, 52, 8); + }), + (u.prototype.readDoubleBE = function(t, e) { + return e || L(t, 8, this.length), i.read(this, t, !1, 52, 8); + }), + (u.prototype.writeUIntLE = function(t, e, n, r) { + ((t = +t), (e |= 0), (n |= 0), r) || + j(this, t, e, n, Math.pow(2, 8 * n) - 1, 0); + var i = 1, + o = 0; + for (this[e] = 255 & t; ++o < n && (i *= 256); ) + this[e + o] = (t / i) & 255; + return e + n; + }), + (u.prototype.writeUIntBE = function(t, e, n, r) { + ((t = +t), (e |= 0), (n |= 0), r) || + j(this, t, e, n, Math.pow(2, 8 * n) - 1, 0); + var i = n - 1, + o = 1; + for (this[e + i] = 255 & t; --i >= 0 && (o *= 256); ) + this[e + i] = (t / o) & 255; + return e + n; + }), + (u.prototype.writeUInt8 = function(t, e, n) { + return ( + (t = +t), + (e |= 0), + n || j(this, t, e, 1, 255, 0), + u.TYPED_ARRAY_SUPPORT || (t = Math.floor(t)), + (this[e] = 255 & t), + e + 1 + ); + }), + (u.prototype.writeUInt16LE = function(t, e, n) { + return ( + (t = +t), + (e |= 0), + n || j(this, t, e, 2, 65535, 0), + u.TYPED_ARRAY_SUPPORT + ? ((this[e] = 255 & t), (this[e + 1] = t >>> 8)) + : D(this, t, e, !0), + e + 2 + ); + }), + (u.prototype.writeUInt16BE = function(t, e, n) { + return ( + (t = +t), + (e |= 0), + n || j(this, t, e, 2, 65535, 0), + u.TYPED_ARRAY_SUPPORT + ? ((this[e] = t >>> 8), (this[e + 1] = 255 & t)) + : D(this, t, e, !1), + e + 2 + ); + }), + (u.prototype.writeUInt32LE = function(t, e, n) { + return ( + (t = +t), + (e |= 0), + n || j(this, t, e, 4, 4294967295, 0), + u.TYPED_ARRAY_SUPPORT + ? ((this[e + 3] = t >>> 24), + (this[e + 2] = t >>> 16), + (this[e + 1] = t >>> 8), + (this[e] = 255 & t)) + : R(this, t, e, !0), + e + 4 + ); + }), + (u.prototype.writeUInt32BE = function(t, e, n) { + return ( + (t = +t), + (e |= 0), + n || j(this, t, e, 4, 4294967295, 0), + u.TYPED_ARRAY_SUPPORT + ? ((this[e] = t >>> 24), + (this[e + 1] = t >>> 16), + (this[e + 2] = t >>> 8), + (this[e + 3] = 255 & t)) + : R(this, t, e, !1), + e + 4 + ); + }), + (u.prototype.writeIntLE = function(t, e, n, r) { + if (((t = +t), (e |= 0), !r)) { + var i = Math.pow(2, 8 * n - 1); + j(this, t, e, n, i - 1, -i); + } + var o = 0, + a = 1, + s = 0; + for (this[e] = 255 & t; ++o < n && (a *= 256); ) + t < 0 && 0 === s && 0 !== this[e + o - 1] && (s = 1), + (this[e + o] = (((t / a) >> 0) - s) & 255); + return e + n; + }), + (u.prototype.writeIntBE = function(t, e, n, r) { + if (((t = +t), (e |= 0), !r)) { + var i = Math.pow(2, 8 * n - 1); + j(this, t, e, n, i - 1, -i); + } + var o = n - 1, + a = 1, + s = 0; + for (this[e + o] = 255 & t; --o >= 0 && (a *= 256); ) + t < 0 && 0 === s && 0 !== this[e + o + 1] && (s = 1), + (this[e + o] = (((t / a) >> 0) - s) & 255); + return e + n; + }), + (u.prototype.writeInt8 = function(t, e, n) { + return ( + (t = +t), + (e |= 0), + n || j(this, t, e, 1, 127, -128), + u.TYPED_ARRAY_SUPPORT || (t = Math.floor(t)), + t < 0 && (t = 255 + t + 1), + (this[e] = 255 & t), + e + 1 + ); + }), + (u.prototype.writeInt16LE = function(t, e, n) { + return ( + (t = +t), + (e |= 0), + n || j(this, t, e, 2, 32767, -32768), + u.TYPED_ARRAY_SUPPORT + ? ((this[e] = 255 & t), (this[e + 1] = t >>> 8)) + : D(this, t, e, !0), + e + 2 + ); + }), + (u.prototype.writeInt16BE = function(t, e, n) { + return ( + (t = +t), + (e |= 0), + n || j(this, t, e, 2, 32767, -32768), + u.TYPED_ARRAY_SUPPORT + ? ((this[e] = t >>> 8), (this[e + 1] = 255 & t)) + : D(this, t, e, !1), + e + 2 + ); + }), + (u.prototype.writeInt32LE = function(t, e, n) { + return ( + (t = +t), + (e |= 0), + n || j(this, t, e, 4, 2147483647, -2147483648), + u.TYPED_ARRAY_SUPPORT + ? ((this[e] = 255 & t), + (this[e + 1] = t >>> 8), + (this[e + 2] = t >>> 16), + (this[e + 3] = t >>> 24)) + : R(this, t, e, !0), + e + 4 + ); + }), + (u.prototype.writeInt32BE = function(t, e, n) { + return ( + (t = +t), + (e |= 0), + n || j(this, t, e, 4, 2147483647, -2147483648), + t < 0 && (t = 4294967295 + t + 1), + u.TYPED_ARRAY_SUPPORT + ? ((this[e] = t >>> 24), + (this[e + 1] = t >>> 16), + (this[e + 2] = t >>> 8), + (this[e + 3] = 255 & t)) + : R(this, t, e, !1), + e + 4 + ); + }), + (u.prototype.writeFloatLE = function(t, e, n) { + return N(this, t, e, !0, n); + }), + (u.prototype.writeFloatBE = function(t, e, n) { + return N(this, t, e, !1, n); + }), + (u.prototype.writeDoubleLE = function(t, e, n) { + return I(this, t, e, !0, n); + }), + (u.prototype.writeDoubleBE = function(t, e, n) { + return I(this, t, e, !1, n); + }), + (u.prototype.copy = function(t, e, n, r) { + if ( + (n || (n = 0), + r || 0 === r || (r = this.length), + e >= t.length && (e = t.length), + e || (e = 0), + r > 0 && r < n && (r = n), + r === n) + ) + return 0; + if (0 === t.length || 0 === this.length) return 0; + if (e < 0) throw new RangeError('targetStart out of bounds'); + if (n < 0 || n >= this.length) + throw new RangeError('sourceStart out of bounds'); + if (r < 0) throw new RangeError('sourceEnd out of bounds'); + r > this.length && (r = this.length), + t.length - e < r - n && (r = t.length - e + n); + var i, + o = r - n; + if (this === t && n < e && e < r) + for (i = o - 1; i >= 0; --i) t[i + e] = this[i + n]; + else if (o < 1e3 || !u.TYPED_ARRAY_SUPPORT) + for (i = 0; i < o; ++i) t[i + e] = this[i + n]; + else Uint8Array.prototype.set.call(t, this.subarray(n, n + o), e); + return o; + }), + (u.prototype.fill = function(t, e, n, r) { + if ('string' == typeof t) { + if ( + ('string' == typeof e + ? ((r = e), (e = 0), (n = this.length)) + : 'string' == typeof n && ((r = n), (n = this.length)), + 1 === t.length) + ) { + var i = t.charCodeAt(0); + i < 256 && (t = i); + } + if (void 0 !== r && 'string' != typeof r) + throw new TypeError('encoding must be a string'); + if ('string' == typeof r && !u.isEncoding(r)) + throw new TypeError('Unknown encoding: ' + r); + } else 'number' == typeof t && (t &= 255); + if (e < 0 || this.length < e || this.length < n) + throw new RangeError('Out of range index'); + if (n <= e) return this; + var o; + if ( + ((e >>>= 0), + (n = void 0 === n ? this.length : n >>> 0), + t || (t = 0), + 'number' == typeof t) + ) + for (o = e; o < n; ++o) this[o] = t; + else { + var a = u.isBuffer(t) ? t : B(new u(t, r).toString()), + s = a.length; + for (o = 0; o < n - e; ++o) this[o + e] = a[o % s]; + } + return this; + }); + var F = /[^+\/0-9A-Za-z-_]/g; + function V(t) { + return t < 16 ? '0' + t.toString(16) : t.toString(16); + } + function B(t, e) { + var n; + e = e || 1 / 0; + for (var r = t.length, i = null, o = [], a = 0; a < r; ++a) { + if ((n = t.charCodeAt(a)) > 55295 && n < 57344) { + if (!i) { + if (n > 56319) { + (e -= 3) > -1 && o.push(239, 191, 189); + continue; + } + if (a + 1 === r) { + (e -= 3) > -1 && o.push(239, 191, 189); + continue; + } + i = n; + continue; + } + if (n < 56320) { + (e -= 3) > -1 && o.push(239, 191, 189), (i = n); + continue; + } + n = 65536 + (((i - 55296) << 10) | (n - 56320)); + } else i && (e -= 3) > -1 && o.push(239, 191, 189); + if (((i = null), n < 128)) { + if ((e -= 1) < 0) break; + o.push(n); + } else if (n < 2048) { + if ((e -= 2) < 0) break; + o.push((n >> 6) | 192, (63 & n) | 128); + } else if (n < 65536) { + if ((e -= 3) < 0) break; + o.push((n >> 12) | 224, ((n >> 6) & 63) | 128, (63 & n) | 128); + } else { + if (!(n < 1114112)) throw new Error('Invalid code point'); + if ((e -= 4) < 0) break; + o.push( + (n >> 18) | 240, + ((n >> 12) & 63) | 128, + ((n >> 6) & 63) | 128, + (63 & n) | 128 + ); + } + } + return o; + } + function G(t) { + return r.toByteArray( + (function(t) { + if ( + (t = (function(t) { + return t.trim ? t.trim() : t.replace(/^\s+|\s+$/g, ''); + })(t).replace(F, '')).length < 2 + ) + return ''; + for (; t.length % 4 != 0; ) t += '='; + return t; + })(t) + ); + } + function H(t, e, n, r) { + for (var i = 0; i < r && !(i + n >= e.length || i >= t.length); ++i) + e[i + n] = t[i]; + return i; + } + }.call(this, n(13))); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); + } + return t; + }; + e.default = function(t, e) { + var n = r({}, (0, i.default)(t), { key: e }); + 'string' == typeof n.style || n.style instanceof String + ? (n.style = (0, o.default)(n.style)) + : delete n.style; + return n; + }; + var i = a(n(328)), + o = a(n(331)); + function a(t) { + return t && t.__esModule ? t : { default: t }; + } + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t) { + i.hasOwnProperty(t) || (i[t] = r.test(t)); + return i[t]; + }); + var r = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, + i = {}; + }, + function(t, e, n) { + var r = n(103), + i = n(43); + t.exports = function(t, e) { + return t && r(t, e, i); + }; + }, + function(t, e, n) { + var r = n(58); + t.exports = function(t) { + return 'function' == typeof t ? t : r; + }; + }, + function(t, e) { + t.exports = function(t, e) { + for (var n = -1, r = null == t ? 0 : t.length, i = Array(r); ++n < r; ) + i[n] = e(t[n], n, t); + return i; + }; + }, + function(t, e, n) { + var r = n(17); + t.exports = function(t) { + return t == t && !r(t); + }; + }, + function(t, e) { + t.exports = function(t, e) { + return function(n) { + return null != n && (n[t] === e && (void 0 !== e || t in Object(n))); + }; + }; + }, + function(t, e, n) { + var r = n(148), + i = n(61); + t.exports = function(t, e) { + for (var n = 0, o = (e = r(e, t)).length; null != t && n < o; ) + t = t[i(e[n++])]; + return n && n == o ? t : void 0; + }; + }, + function(t, e, n) { + var r = n(14), + i = n(84), + o = n(348), + a = n(351); + t.exports = function(t, e) { + return r(t) ? t : i(t, e) ? [t] : o(a(t)); + }; + }, + function(t, e, n) { + var r = n(142), + i = n(360)(r); + t.exports = i; + }, + function(t, e) { + t.exports = function(t, e) { + for ( + var n = -1, r = null == t ? 0 : t.length; + ++n < r && !1 !== e(t[n], n, t); + + ); + return t; + }; + }, + function(t, e, n) { + var r = n(122), + i = n(77), + o = n(80), + a = n(123), + s = Object.getOwnPropertySymbols + ? function(t) { + for (var e = []; t; ) r(e, o(t)), (t = i(t)); + return e; + } + : a; + t.exports = s; + }, + function(t, e, n) { + var r = n(17), + i = n(391), + o = n(392), + a = 'Expected a function', + s = Math.max, + u = Math.min; + t.exports = function(t, e, n) { + var l, + c, + f, + d, + h, + p, + g = 0, + m = !1, + v = !1, + y = !0; + if ('function' != typeof t) throw new TypeError(a); + function b(e) { + var n = l, + r = c; + return (l = c = void 0), (g = e), (d = t.apply(r, n)); + } + function _(t) { + var n = t - p; + return void 0 === p || n >= e || n < 0 || (v && t - g >= f); + } + function x() { + var t = i(); + if (_(t)) return w(t); + h = setTimeout( + x, + (function(t) { + var n = e - (t - p); + return v ? u(n, f - (t - g)) : n; + })(t) + ); + } + function w(t) { + return (h = void 0), y && l ? b(t) : ((l = c = void 0), d); + } + function S() { + var t = i(), + n = _(t); + if (((l = arguments), (c = this), (p = t), n)) { + if (void 0 === h) + return (function(t) { + return (g = t), (h = setTimeout(x, e)), m ? b(t) : d; + })(p); + if (v) return clearTimeout(h), (h = setTimeout(x, e)), b(p); + } + return void 0 === h && (h = setTimeout(x, e)), d; + } + return ( + (e = o(e) || 0), + r(n) && + ((m = !!n.leading), + (f = (v = 'maxWait' in n) ? s(o(n.maxWait) || 0, e) : f), + (y = 'trailing' in n ? !!n.trailing : y)), + (S.cancel = function() { + void 0 !== h && clearTimeout(h), (g = 0), (l = p = c = h = void 0); + }), + (S.flush = function() { + return void 0 === h ? d : w(i()); + }), + S + ); + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.ColorWrap = void 0); + var r = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); + } + return t; + }, + i = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + o = n(0), + a = l(o), + s = l(n(152)), + u = l(n(23)); + function l(t) { + return t && t.__esModule ? t : { default: t }; + } + var c = (e.ColorWrap = function(t) { + var e = (function(e) { + function n(t) { + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + })(this, n); + var e = (function(t, e) { + if (!t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !e || ('object' != typeof e && 'function' != typeof e) + ? t + : e; + })(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this)); + return ( + (e.handleChange = function(t, n) { + if (u.default.simpleCheckForValidColor(t)) { + var r = u.default.toState(t, t.h || e.state.oldHue); + e.setState(r), + e.props.onChangeComplete && + e.debounce(e.props.onChangeComplete, r, n), + e.props.onChange && e.props.onChange(r, n); + } + }), + (e.handleSwatchHover = function(t, n) { + if (u.default.simpleCheckForValidColor(t)) { + var r = u.default.toState(t, t.h || e.state.oldHue); + e.props.onSwatchHover && e.props.onSwatchHover(r, n); + } + }), + (e.state = r({}, u.default.toState(t.color, 0))), + (e.debounce = (0, s.default)(function(t, e, n) { + t(e, n); + }, 100)), + e + ); + } + return ( + (function(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof e + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { + value: t, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + e && + (Object.setPrototypeOf + ? Object.setPrototypeOf(t, e) + : (t.__proto__ = e)); + })(n, e), + i( + n, + [ + { + key: 'render', + value: function() { + var e = {}; + return ( + this.props.onSwatchHover && + (e.onSwatchHover = this.handleSwatchHover), + a.default.createElement( + t, + r( + {}, + this.props, + this.state, + { onChange: this.handleChange }, + e + ) + ) + ); + } + } + ], + [ + { + key: 'getDerivedStateFromProps', + value: function(t, e) { + return r({}, u.default.toState(t.color, e.oldHue)); + } + } + ] + ), + n + ); + })(o.PureComponent || o.Component); + return ( + (e.propTypes = r({}, t.propTypes)), + (e.defaultProps = r({}, t.defaultProps, { + color: { h: 250, s: 0.5, l: 0.2, a: 1 } + })), + e + ); + }); + e.default = c; + }, + function(t, e, n) { + 'use strict'; + n.r(e), + n.d(e, 'red', function() { + return r; + }), + n.d(e, 'pink', function() { + return i; + }), + n.d(e, 'purple', function() { + return o; + }), + n.d(e, 'deepPurple', function() { + return a; + }), + n.d(e, 'indigo', function() { + return s; + }), + n.d(e, 'blue', function() { + return u; + }), + n.d(e, 'lightBlue', function() { + return l; + }), + n.d(e, 'cyan', function() { + return c; + }), + n.d(e, 'teal', function() { + return f; + }), + n.d(e, 'green', function() { + return d; + }), + n.d(e, 'lightGreen', function() { + return h; + }), + n.d(e, 'lime', function() { + return p; + }), + n.d(e, 'yellow', function() { + return g; + }), + n.d(e, 'amber', function() { + return m; + }), + n.d(e, 'orange', function() { + return v; + }), + n.d(e, 'deepOrange', function() { + return y; + }), + n.d(e, 'brown', function() { + return b; + }), + n.d(e, 'grey', function() { + return _; + }), + n.d(e, 'blueGrey', function() { + return x; + }), + n.d(e, 'darkText', function() { + return w; + }), + n.d(e, 'lightText', function() { + return S; + }), + n.d(e, 'darkIcons', function() { + return E; + }), + n.d(e, 'lightIcons', function() { + return k; + }), + n.d(e, 'white', function() { + return A; + }), + n.d(e, 'black', function() { + return T; + }); + var r = { + 50: '#ffebee', + 100: '#ffcdd2', + 200: '#ef9a9a', + 300: '#e57373', + 400: '#ef5350', + 500: '#f44336', + 600: '#e53935', + 700: '#d32f2f', + 800: '#c62828', + 900: '#b71c1c', + a100: '#ff8a80', + a200: '#ff5252', + a400: '#ff1744', + a700: '#d50000' + }, + i = { + 50: '#fce4ec', + 100: '#f8bbd0', + 200: '#f48fb1', + 300: '#f06292', + 400: '#ec407a', + 500: '#e91e63', + 600: '#d81b60', + 700: '#c2185b', + 800: '#ad1457', + 900: '#880e4f', + a100: '#ff80ab', + a200: '#ff4081', + a400: '#f50057', + a700: '#c51162' + }, + o = { + 50: '#f3e5f5', + 100: '#e1bee7', + 200: '#ce93d8', + 300: '#ba68c8', + 400: '#ab47bc', + 500: '#9c27b0', + 600: '#8e24aa', + 700: '#7b1fa2', + 800: '#6a1b9a', + 900: '#4a148c', + a100: '#ea80fc', + a200: '#e040fb', + a400: '#d500f9', + a700: '#aa00ff' + }, + a = { + 50: '#ede7f6', + 100: '#d1c4e9', + 200: '#b39ddb', + 300: '#9575cd', + 400: '#7e57c2', + 500: '#673ab7', + 600: '#5e35b1', + 700: '#512da8', + 800: '#4527a0', + 900: '#311b92', + a100: '#b388ff', + a200: '#7c4dff', + a400: '#651fff', + a700: '#6200ea' + }, + s = { + 50: '#e8eaf6', + 100: '#c5cae9', + 200: '#9fa8da', + 300: '#7986cb', + 400: '#5c6bc0', + 500: '#3f51b5', + 600: '#3949ab', + 700: '#303f9f', + 800: '#283593', + 900: '#1a237e', + a100: '#8c9eff', + a200: '#536dfe', + a400: '#3d5afe', + a700: '#304ffe' + }, + u = { + 50: '#e3f2fd', + 100: '#bbdefb', + 200: '#90caf9', + 300: '#64b5f6', + 400: '#42a5f5', + 500: '#2196f3', + 600: '#1e88e5', + 700: '#1976d2', + 800: '#1565c0', + 900: '#0d47a1', + a100: '#82b1ff', + a200: '#448aff', + a400: '#2979ff', + a700: '#2962ff' + }, + l = { + 50: '#e1f5fe', + 100: '#b3e5fc', + 200: '#81d4fa', + 300: '#4fc3f7', + 400: '#29b6f6', + 500: '#03a9f4', + 600: '#039be5', + 700: '#0288d1', + 800: '#0277bd', + 900: '#01579b', + a100: '#80d8ff', + a200: '#40c4ff', + a400: '#00b0ff', + a700: '#0091ea' + }, + c = { + 50: '#e0f7fa', + 100: '#b2ebf2', + 200: '#80deea', + 300: '#4dd0e1', + 400: '#26c6da', + 500: '#00bcd4', + 600: '#00acc1', + 700: '#0097a7', + 800: '#00838f', + 900: '#006064', + a100: '#84ffff', + a200: '#18ffff', + a400: '#00e5ff', + a700: '#00b8d4' + }, + f = { + 50: '#e0f2f1', + 100: '#b2dfdb', + 200: '#80cbc4', + 300: '#4db6ac', + 400: '#26a69a', + 500: '#009688', + 600: '#00897b', + 700: '#00796b', + 800: '#00695c', + 900: '#004d40', + a100: '#a7ffeb', + a200: '#64ffda', + a400: '#1de9b6', + a700: '#00bfa5' + }, + d = { + 50: '#e8f5e9', + 100: '#c8e6c9', + 200: '#a5d6a7', + 300: '#81c784', + 400: '#66bb6a', + 500: '#4caf50', + 600: '#43a047', + 700: '#388e3c', + 800: '#2e7d32', + 900: '#1b5e20', + a100: '#b9f6ca', + a200: '#69f0ae', + a400: '#00e676', + a700: '#00c853' + }, + h = { + 50: '#f1f8e9', + 100: '#dcedc8', + 200: '#c5e1a5', + 300: '#aed581', + 400: '#9ccc65', + 500: '#8bc34a', + 600: '#7cb342', + 700: '#689f38', + 800: '#558b2f', + 900: '#33691e', + a100: '#ccff90', + a200: '#b2ff59', + a400: '#76ff03', + a700: '#64dd17' + }, + p = { + 50: '#f9fbe7', + 100: '#f0f4c3', + 200: '#e6ee9c', + 300: '#dce775', + 400: '#d4e157', + 500: '#cddc39', + 600: '#c0ca33', + 700: '#afb42b', + 800: '#9e9d24', + 900: '#827717', + a100: '#f4ff81', + a200: '#eeff41', + a400: '#c6ff00', + a700: '#aeea00' + }, + g = { + 50: '#fffde7', + 100: '#fff9c4', + 200: '#fff59d', + 300: '#fff176', + 400: '#ffee58', + 500: '#ffeb3b', + 600: '#fdd835', + 700: '#fbc02d', + 800: '#f9a825', + 900: '#f57f17', + a100: '#ffff8d', + a200: '#ffff00', + a400: '#ffea00', + a700: '#ffd600' + }, + m = { + 50: '#fff8e1', + 100: '#ffecb3', + 200: '#ffe082', + 300: '#ffd54f', + 400: '#ffca28', + 500: '#ffc107', + 600: '#ffb300', + 700: '#ffa000', + 800: '#ff8f00', + 900: '#ff6f00', + a100: '#ffe57f', + a200: '#ffd740', + a400: '#ffc400', + a700: '#ffab00' + }, + v = { + 50: '#fff3e0', + 100: '#ffe0b2', + 200: '#ffcc80', + 300: '#ffb74d', + 400: '#ffa726', + 500: '#ff9800', + 600: '#fb8c00', + 700: '#f57c00', + 800: '#ef6c00', + 900: '#e65100', + a100: '#ffd180', + a200: '#ffab40', + a400: '#ff9100', + a700: '#ff6d00' + }, + y = { + 50: '#fbe9e7', + 100: '#ffccbc', + 200: '#ffab91', + 300: '#ff8a65', + 400: '#ff7043', + 500: '#ff5722', + 600: '#f4511e', + 700: '#e64a19', + 800: '#d84315', + 900: '#bf360c', + a100: '#ff9e80', + a200: '#ff6e40', + a400: '#ff3d00', + a700: '#dd2c00' + }, + b = { + 50: '#efebe9', + 100: '#d7ccc8', + 200: '#bcaaa4', + 300: '#a1887f', + 400: '#8d6e63', + 500: '#795548', + 600: '#6d4c41', + 700: '#5d4037', + 800: '#4e342e', + 900: '#3e2723' + }, + _ = { + 50: '#fafafa', + 100: '#f5f5f5', + 200: '#eeeeee', + 300: '#e0e0e0', + 400: '#bdbdbd', + 500: '#9e9e9e', + 600: '#757575', + 700: '#616161', + 800: '#424242', + 900: '#212121' + }, + x = { + 50: '#eceff1', + 100: '#cfd8dc', + 200: '#b0bec5', + 300: '#90a4ae', + 400: '#78909c', + 500: '#607d8b', + 600: '#546e7a', + 700: '#455a64', + 800: '#37474f', + 900: '#263238' + }, + w = { + primary: 'rgba(0, 0, 0, 0.87)', + secondary: 'rgba(0, 0, 0, 0.54)', + disabled: 'rgba(0, 0, 0, 0.38)', + dividers: 'rgba(0, 0, 0, 0.12)' + }, + S = { + primary: 'rgba(255, 255, 255, 1)', + secondary: 'rgba(255, 255, 255, 0.7)', + disabled: 'rgba(255, 255, 255, 0.5)', + dividers: 'rgba(255, 255, 255, 0.12)' + }, + E = { active: 'rgba(0, 0, 0, 0.54)', inactive: 'rgba(0, 0, 0, 0.38)' }, + k = { + active: 'rgba(255, 255, 255, 1)', + inactive: 'rgba(255, 255, 255, 0.5)' + }, + A = '#ffffff', + T = '#000000'; + e.default = { + red: r, + pink: i, + purple: o, + deepPurple: a, + indigo: s, + blue: u, + lightBlue: l, + cyan: c, + teal: f, + green: d, + lightGreen: h, + lime: p, + yellow: g, + amber: m, + orange: v, + deepOrange: y, + brown: b, + grey: _, + blueGrey: x, + darkText: w, + lightText: S, + darkIcons: E, + lightIcons: k, + white: A, + black: T + }; + }, + function(t, e, n) { + 'use strict'; + function r(t) { + var e, + n = t.Symbol; + return ( + 'function' == typeof n + ? n.observable + ? (e = n.observable) + : ((e = n('observable')), (n.observable = e)) + : (e = '@@observable'), + e + ); + } + n.d(e, 'a', function() { + return r; + }); + }, + function(t, e, n) { + var r; + window, + (r = function() { + return (function(t) { + var e = {}; + function n(r) { + if (e[r]) return e[r].exports; + var i = (e[r] = { i: r, l: !1, exports: {} }); + return ( + t[r].call(i.exports, i, i.exports, n), (i.l = !0), i.exports + ); + } + return ( + (n.m = t), + (n.c = e), + (n.d = function(t, e, r) { + n.o(t, e) || + Object.defineProperty(t, e, { + configurable: !1, + enumerable: !0, + get: r + }); + }), + (n.r = function(t) { + Object.defineProperty(t, '__esModule', { value: !0 }); + }), + (n.n = function(t) { + var e = + t && t.__esModule + ? function() { + return t.default; } - var l = (function() { - function t() { - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, t); + : function() { + return t; + }; + return n.d(e, 'a', e), e; + }), + (n.o = function(t, e) { + return Object.prototype.hasOwnProperty.call(t, e); + }), + (n.p = ''), + n((n.s = 24)) + ); + })([ + function(t, e) { + t.exports = function(t, e, n) { + var r; + if (!t) return 0; + if (((n = n || t), t instanceof Array)) { + for (r = 0; r < t.length; r++) + if (!1 === e.call(n, t[r], r, t)) return 0; + } else + for (r in t) + if (t.hasOwnProperty(r) && !1 === e.call(n, t[r], r, t)) + return 0; + return 1; + }; + }, + function(t, e) { + var n; + n = (function() { + return this; + })(); + try { + n = n || Function('return this')() || (0, eval)('this'); + } catch (t) { + 'object' == typeof window && (n = window); + } + t.exports = n; + }, + function(t, e) { + t.exports = function(t) { + for (var e = 1; e < arguments.length; e++) + for (var n in arguments[e]) t[n] = arguments[e][n]; + return t; + }; + }, + function(t, e, n) { + 'use strict'; + n.r(e), + function(t) { + var e = n(9), + r = n(4), + i = (function() { + if ('undefined' != typeof self) return self; + if ('undefined' != typeof window) return window; + if (void 0 !== t) return t; + throw new Error('unable to locate global object'); + })(); + i.Promise + ? i.Promise.prototype.finally || + (i.Promise.prototype.finally = r.a) + : (i.Promise = e.a); + }.call(this, n(1)); + }, + function(t, e, n) { + 'use strict'; + e.a = function(t) { + var e = this.constructor; + return this.then( + function(n) { + return e.resolve(t()).then(function() { + return n; + }); + }, + function(n) { + return e.resolve(t()).then(function() { + return e.reject(n); + }); + } + ); + }; + }, + function(t, e) { + !(function(t) { + 'use strict'; + if (!t.fetch) { + var e = { + searchParams: 'URLSearchParams' in t, + iterable: 'Symbol' in t && 'iterator' in Symbol, + blob: + 'FileReader' in t && + 'Blob' in t && + (function() { + try { + return new Blob(), !0; + } catch (t) { + return !1; } - return ( - r(t, [ - { - key: 'render', - value: function() { - var t = this, - e = this.config, - n = e.container, - r = e.metricResults, - u = e.title, - l = e.showTitle, - c = e.subtitle, - f = e.tooltip, - d = e.utils, - h = []; - (h[0] = []), - (0, o.each)( - this.dataset.selectColumn(0), - function(t, e) { - var n = void 0; - e > 0 && (n = new Date(t)), (h[0][e] = n); - } - ), - (h[0][0] = 'x'), - (0, o.each)(this.data()[0], function(e, n) { - n > 0 && h.push(t.dataset.selectColumn(n)); - }); - var p = - (r && r.previous && r.previous.result) || 0, - g = - ((r && r.current && r.current.result) || - 0) - p, - v = - 0 === p - ? '-' - : (0, a.prettyNumber)( - Math.round((g / p) * 100) - ), - m = 'keen-dataviz-metric-green', - y = 'arrow-green'; - v < 0 && - ((m = 'keen-dataviz-metric-red'), - (y = 'arrow-red')); - var b = - l && u - ? '
' + - u + - '
' - : '', - _ = c - ? '
' + - c + - '
' - : '', - x = document.querySelector(n); - x.innerHTML = - '\n
\n
\n
\n ' + - b + - '\n ' + - _ + - '\n
' + - v + - ' %
\n
' + - (0, a.prettyNumber)(g) + - '
\n
\n
\n
\n
\n
\n
'; - var w = x.querySelector('.c3-chart'); - if ( - (i.default.generate({ - bindto: w, - color: { pattern: ['#c3c4cc'] }, - title: u, - legend: { show: !1 }, - data: { - x: 'x', - columns: h, - type: 'area-spline', - selection: { - draggable: !1, - enabled: !0, - multiple: !0 - } - }, - point: { - r: 0, - focus: { expand: { r: 5, enabled: !0 } }, - select: { r: 5, enabled: !0 } - }, - axis: { y: { show: !1 }, x: { show: !1 } }, - grid: { x: { show: !1 }, y: { show: !1 } }, - padding: { - left: 0, - right: 0, - top: 0, - bottom: -4 - }, - tooltip: f - }), - d && d.clickToCopyToClipboard) - ) { - var S = document.querySelector( - '.current-count' - ).innerText; - document - .querySelector('.keen-dataviz-metric-combo') - .addEventListener('click', function(t) { - return (0, s.default)(S, t); - }); - } - } - }, - { - key: 'update', - value: function() { - this.destroy(), this.render(); - } - }, - { - key: 'destroy', - value: function() { - var t = this.config.container; - document - .querySelector(t) - .querySelector('.c3-chart') - .remove(); - } - } - ]), - t - ); - })(); - e.default = l; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = function(t, e) { - if (Array.isArray(t)) return t; - if (Symbol.iterator in Object(t)) - return (function(t, e) { - var n = [], - r = !0, - i = !1, - o = void 0; - try { - for ( - var a, s = t[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !e || n.length !== e); - r = !0 - ); - } catch (t) { - (i = !0), (o = t); - } finally { - try { - !r && s.return && s.return(); - } finally { - if (i) throw o; - } - } - return n; - })(t, e); - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance' + })(), + formData: 'FormData' in t, + arrayBuffer: 'ArrayBuffer' in t + }; + if (e.arrayBuffer) + var n = [ + '[object Int8Array]', + '[object Uint8Array]', + '[object Uint8ClampedArray]', + '[object Int16Array]', + '[object Uint16Array]', + '[object Int32Array]', + '[object Uint32Array]', + '[object Float32Array]', + '[object Float64Array]' + ], + r = function(t) { + return t && DataView.prototype.isPrototypeOf(t); + }, + i = + ArrayBuffer.isView || + function(t) { + return ( + t && + n.indexOf(Object.prototype.toString.call(t)) > -1 ); - }, - i = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - o = (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && - (e[n] = t[n]); - return (e.default = t), e; - })(n(2)), - a = u(n(19)), - s = u(n(1)); - function u(t) { - return t && t.__esModule ? t : { default: t }; - } - function l(t) { - if (Array.isArray(t)) { - for ( - var e = 0, n = Array(t.length); - e < t.length; - e++ + }; + (c.prototype.append = function(t, e) { + (t = s(t)), (e = u(e)); + var n = this.map[t]; + this.map[t] = n ? n + ',' + e : e; + }), + (c.prototype.delete = function(t) { + delete this.map[s(t)]; + }), + (c.prototype.get = function(t) { + return (t = s(t)), this.has(t) ? this.map[t] : null; + }), + (c.prototype.has = function(t) { + return this.map.hasOwnProperty(s(t)); + }), + (c.prototype.set = function(t, e) { + this.map[s(t)] = u(e); + }), + (c.prototype.forEach = function(t, e) { + for (var n in this.map) + this.map.hasOwnProperty(n) && + t.call(e, this.map[n], n, this); + }), + (c.prototype.keys = function() { + var t = []; + return ( + this.forEach(function(e, n) { + t.push(n); + }), + l(t) + ); + }), + (c.prototype.values = function() { + var t = []; + return ( + this.forEach(function(e) { + t.push(e); + }), + l(t) + ); + }), + (c.prototype.entries = function() { + var t = []; + return ( + this.forEach(function(e, n) { + t.push([n, e]); + }), + l(t) + ); + }), + e.iterable && + (c.prototype[Symbol.iterator] = c.prototype.entries); + var o = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']; + (m.prototype.clone = function() { + return new m(this, { body: this._bodyInit }); + }), + g.call(m.prototype), + g.call(y.prototype), + (y.prototype.clone = function() { + return new y(this._bodyInit, { + status: this.status, + statusText: this.statusText, + headers: new c(this.headers), + url: this.url + }); + }), + (y.error = function() { + var t = new y(null, { status: 0, statusText: '' }); + return (t.type = 'error'), t; + }); + var a = [301, 302, 303, 307, 308]; + (y.redirect = function(t, e) { + if (-1 === a.indexOf(e)) + throw new RangeError('Invalid status code'); + return new y(null, { status: e, headers: { location: t } }); + }), + (t.Headers = c), + (t.Request = m), + (t.Response = y), + (t.fetch = function(t, n) { + return new Promise(function(r, i) { + var o = new m(t, n), + a = new XMLHttpRequest(); + (a.onload = function() { + var t, + e, + n = { + status: a.status, + statusText: a.statusText, + headers: + ((t = a.getAllResponseHeaders() || ''), + (e = new c()), + t + .replace(/\r?\n[\t ]+/g, ' ') + .split(/\r?\n/) + .forEach(function(t) { + var n = t.split(':'), + r = n.shift().trim(); + if (r) { + var i = n.join(':').trim(); + e.append(r, i); + } + }), + e) + }; + n.url = + 'responseURL' in a + ? a.responseURL + : n.headers.get('X-Request-URL'); + var i = 'response' in a ? a.response : a.responseText; + r(new y(i, n)); + }), + (a.onerror = function() { + i(new TypeError('Network request failed')); + }), + (a.ontimeout = function() { + i(new TypeError('Network request failed')); + }), + a.open(o.method, o.url, !0), + 'include' === o.credentials + ? (a.withCredentials = !0) + : 'omit' === o.credentials && + (a.withCredentials = !1), + 'responseType' in a && + e.blob && + (a.responseType = 'blob'), + o.headers.forEach(function(t, e) { + a.setRequestHeader(e, t); + }), + a.send(void 0 === o._bodyInit ? null : o._bodyInit); + }); + }), + (t.fetch.polyfill = !0); + } + function s(t) { + if ( + ('string' != typeof t && (t = String(t)), + /[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t)) + ) + throw new TypeError( + 'Invalid character in header field name' + ); + return t.toLowerCase(); + } + function u(t) { + return 'string' != typeof t && (t = String(t)), t; + } + function l(t) { + var n = { + next: function() { + var e = t.shift(); + return { done: void 0 === e, value: e }; + } + }; + return ( + e.iterable && + (n[Symbol.iterator] = function() { + return n; + }), + n + ); + } + function c(t) { + (this.map = {}), + t instanceof c + ? t.forEach(function(t, e) { + this.append(e, t); + }, this) + : Array.isArray(t) + ? t.forEach(function(t) { + this.append(t[0], t[1]); + }, this) + : t && + Object.getOwnPropertyNames(t).forEach(function(e) { + this.append(e, t[e]); + }, this); + } + function f(t) { + if (t.bodyUsed) + return Promise.reject(new TypeError('Already read')); + t.bodyUsed = !0; + } + function d(t) { + return new Promise(function(e, n) { + (t.onload = function() { + e(t.result); + }), + (t.onerror = function() { + n(t.error); + }); + }); + } + function h(t) { + var e = new FileReader(), + n = d(e); + return e.readAsArrayBuffer(t), n; + } + function p(t) { + if (t.slice) return t.slice(0); + var e = new Uint8Array(t.byteLength); + return e.set(new Uint8Array(t)), e.buffer; + } + function g() { + return ( + (this.bodyUsed = !1), + (this._initBody = function(t) { + if (((this._bodyInit = t), t)) + if ('string' == typeof t) this._bodyText = t; + else if (e.blob && Blob.prototype.isPrototypeOf(t)) + this._bodyBlob = t; + else if ( + e.formData && + FormData.prototype.isPrototypeOf(t) + ) + this._bodyFormData = t; + else if ( + e.searchParams && + URLSearchParams.prototype.isPrototypeOf(t) + ) + this._bodyText = t.toString(); + else if (e.arrayBuffer && e.blob && r(t)) + (this._bodyArrayBuffer = p(t.buffer)), + (this._bodyInit = new Blob([ + this._bodyArrayBuffer + ])); + else { + if ( + !e.arrayBuffer || + (!ArrayBuffer.prototype.isPrototypeOf(t) && !i(t)) ) - n[e] = t[e]; - return n; - } - return Array.from(t); - } - var c = (function() { - function t() { - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, t); + throw new Error('unsupported BodyInit type'); + this._bodyArrayBuffer = p(t); } + else this._bodyText = ''; + this.headers.get('content-type') || + ('string' == typeof t + ? this.headers.set( + 'content-type', + 'text/plain;charset=UTF-8' + ) + : this._bodyBlob && this._bodyBlob.type + ? this.headers.set( + 'content-type', + this._bodyBlob.type + ) + : e.searchParams && + URLSearchParams.prototype.isPrototypeOf(t) && + this.headers.set( + 'content-type', + 'application/x-www-form-urlencoded;charset=UTF-8' + )); + }), + e.blob && + ((this.blob = function() { + var t = f(this); + if (t) return t; + if (this._bodyBlob) + return Promise.resolve(this._bodyBlob); + if (this._bodyArrayBuffer) + return Promise.resolve( + new Blob([this._bodyArrayBuffer]) + ); + if (this._bodyFormData) + throw new Error( + 'could not read FormData body as blob' + ); + return Promise.resolve(new Blob([this._bodyText])); + }), + (this.arrayBuffer = function() { + return this._bodyArrayBuffer + ? f(this) || Promise.resolve(this._bodyArrayBuffer) + : this.blob().then(h); + })), + (this.text = function() { + var t, + e, + n, + r = f(this); + if (r) return r; + if (this._bodyBlob) return ( - i(t, [ - { - key: 'render', - value: function() { - var t, - e, - n, - i = this.config, - u = i.colors, - c = i.container, - f = i.heatmap, - d = f.showSlider, - h = f.simpleTooltip, - p = this.dataset, - g = p.matrix, - v = p.meta, - m = 10, - y = 10, - b = 50, - _ = 50, - x = o.select(c), - w = parseInt(x.style('width'), 10) || 600, - S = parseInt(x.style('height'), 10) || 600, - E = this.el().querySelector('.c3-chart'), - k = w - y - _, - A = S - m - b, - T = new Set(), - C = new Set(), - O = - ((t = o.timeFormat('%B %d')), - (e = o.timeFormat('%H:%M')), - (n = []), - g.forEach(function(r) { - if ('heatmap' === v.type) { - if ('number' == typeof r[0][2]) { - var i = { - x: r[0][0], - y: r[0][1], - value: r[0][2] - }; - n.push(i); - } - } else { - var o = Date.parse(r[0]); - if (!isNaN(o)) { - var a = { - x: t(new Date(r[0])), - y: e(new Date(r[0])), - value: r[1] - }; - n.push(a); - } - } - }), - n); - O.forEach(function(t) { - T.add(t.x), C.add(t.y); - }); - var P = O[0].value, - M = O.reduce(function(t, e) { - return e.value < t ? e.value : t; - }, P), - L = O.reduce(function(t, e) { - return e.value > t ? e.value : t; - }, P), - D = function() { - var t = u[0], - e = o.rgb('#00BBDE'); - return o.color(t) && (e = o.rgb(t)), e; - }, - j = o - .scaleLinear() - .domain([ - 0, - o.max(O, function(t) { - return t.value; - }) - ]) - .range([0, 1]), - R = function(t) { - var e = j(t), - n = D(), - r = (function(t) { - var e = - arguments.length > 1 && - void 0 !== arguments[1] - ? arguments[1] - : [255, 255, 255], - n = t[3]; - return [ - Math.floor( - (1 - n) * e[0] + n * t[0] + 0.5 - ), - Math.floor( - (1 - n) * e[1] + n * t[1] + 0.5 - ), - Math.floor( - (1 - n) * e[2] + n * t[2] + 0.5 - ) - ]; - })([n.r, n.g, n.b, e]); - return ( - 'rgb(' + - r[0] + - ', ' + - r[1] + - ', ' + - r[2] + - ')' - ); - }, - N = o - .select(E) - .append('svg') - .attr( - 'preserveAspectRatio', - 'xMidYMid slice' - ) - .attr('viewBox', '0 0 ' + w + ' ' + S) - .attr('height', '100%') - .attr('width', '100%') - .append('g') - .attr( - 'transform', - 'translate(' + _ + ',' + m + ')' - ); - if (d) { - o - .select(c) - .append('input') - .attr('type', 'range') - .attr('class', 'keen-dataviz-slider'), - new a.default('.keen-dataviz-slider', { - multiple: !0, - min: M, - max: L, - value: [M, L], - onChange: function(t) { - return (function(t) { - var e = N.selectAll('rect'), - n = r(t, 2), - i = n[0], - a = n[1]; - e.each(function(t, e, n) { - o.select(n[e]).style( - 'visibility', - function() { - return t.value > a || - t.value < i - ? 'hidden' - : 'visible'; - } - ); - }); - })(t); - } - }); - var z = c.className - ? '.' + c.className.replace(/\s/g, '.') - : c, - I = - '\n ' + - z + - ' .rangeable-progress,\n ' + - z + - ' .rangeable-tooltip,\n ' + - z + - ' .active {\n background-color: ' + - D() + - ';\n }\n ' + - z + - ' .rangeable-tooltip::before {\n border-color: ' + - D() + - ' transparent transparent;\n }\n ' + - z + - ' .rangeable-handle {\n border-color: ' + - D() + - ';\n }\n ', - F = document.createElement('style'); - F.innerHTML = I; - var V = document.querySelector('script'); - V.parentNode.insertBefore(F, V); - } - var B = function(t, e) { - return Math.floor(e / t) + 1; - }, - G = o - .scaleBand() - .range([0, k]) - .domain([].concat(l(T))) - .padding(0.02); - N.append('g') - .style('font-size', 12) - .attr('transform', 'translate(0, ' + A + ')') - .call(o.axisBottom(G).tickSize(0)) - .selectAll('text') - .attr('dy', '1em') - .filter(function(t, e) { - return e % B(5, T.size); - }) - .style('display', 'none'); - var H = o - .scaleBand() - .range([A, 0]) - .domain([].concat(l(C)).sort()) - .padding(0.02); - N.append('g') - .style('font-size', 12) - .call(o.axisLeft(H).tickSize(0)) - .selectAll('text') - .filter(function(t, e) { - return e % B(10, C.size); - }) - .style('display', 'none'); - var U = o - .select(c) - .append('div') - .attr('class', 'keen-dataviz-tooltip') - .style('opacity', 0) - .style('background-color', 'white') - .style( - 'border', - '2px solid ' + D().toString() - ) - .style('font-size', '14px') - .style('padding', '2px 8px') - .style( - 'box-shadow', - '2px 2px 4px rgba(0,0,0,0.25' - ) - .style('display', 'none') - .style('position', 'fixed'); - N.selectAll() - .data(O, function(t) { - return t.x + ':' + t.y; - }) - .enter() - .append('rect') - .attr('x', function(t) { - return G(t.x); - }) - .attr('y', function(t) { - return H(t.y); - }) - .attr('width', G.bandwidth()) - .attr('height', H.bandwidth()) - .style('fill', function(t) { - return R(t.value); - }) - .style('cursor', 'pointer') - .on('mouseover', function() { - o - .select(o.event.target) - .raise() - .style( - 'transition', - 'transform 150ms ease-out' - ) - .style('outline', '1px solid ' + D()) - .style( - 'transform', - 'translate(0px, -4px)' - ), - U.style('opacity', 1).style( - 'display', - 'block' - ); - }) - .on('mousemove', function(t) { - var e = - '\n \n value:\n ' + - t.value + - '\n '; - h || - (e = - '\n \n xAxis:\n ' + - t.x + - '\n \n \n yAxis:\n ' + - t.y + - '\n \n ' + - e + - '\n '), - U.html( - '\n \n ' + - e + - '\n
\n ' - ) - .style( - 'left', - o.event.clientX + 10 + 'px' - ) - .style( - 'top', - o.event.clientY + 10 + 'px' - ); - }) - .on('mouseleave', function() { - o - .select(o.event.target) - .style('outline', 'none') - .style('transform', 'none'), - U.style('opacity', 0).style( - 'display', - 'none' - ); - }) - .on('click', function(t) { - return (0, s.default)(t.value); - }); - } - }, - { - key: 'update', - value: function() { - this.destroy(), this.render(); - } - }, - { - key: 'destroy', - value: function() { - this.el() - .querySelector('.c3-chart') - .remove(); - } - } - ]), - t + (t = this._bodyBlob), + (e = new FileReader()), + (n = d(e)), + e.readAsText(t), + n ); - })(); - e.default = c; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = function(t, e) { - if (Array.isArray(t)) return t; - if (Symbol.iterator in Object(t)) - return (function(t, e) { - var n = [], - r = !0, - i = !1, - o = void 0; - try { - for ( - var a, s = t[Symbol.iterator](); - !(r = (a = s.next()).done) && - (n.push(a.value), !e || n.length !== e); - r = !0 - ); - } catch (t) { - (i = !0), (o = t); - } finally { - try { - !r && s.return && s.return(); - } finally { - if (i) throw o; - } - } - return n; - })(t, e); - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance' + if (this._bodyArrayBuffer) + return Promise.resolve( + (function(t) { + for ( + var e = new Uint8Array(t), + n = new Array(e.length), + r = 0; + r < e.length; + r++ + ) + n[r] = String.fromCharCode(e[r]); + return n.join(''); + })(this._bodyArrayBuffer) + ); + if (this._bodyFormData) + throw new Error('could not read FormData body as text'); + return Promise.resolve(this._bodyText); + }), + e.formData && + (this.formData = function() { + return this.text().then(v); + }), + (this.json = function() { + return this.text().then(JSON.parse); + }), + this + ); + } + function m(t, e) { + var n, + r, + i = (e = e || {}).body; + if (t instanceof m) { + if (t.bodyUsed) throw new TypeError('Already read'); + (this.url = t.url), + (this.credentials = t.credentials), + e.headers || (this.headers = new c(t.headers)), + (this.method = t.method), + (this.mode = t.mode), + i || + null == t._bodyInit || + ((i = t._bodyInit), (t.bodyUsed = !0)); + } else this.url = String(t); + if ( + ((this.credentials = + e.credentials || this.credentials || 'omit'), + (!e.headers && this.headers) || + (this.headers = new c(e.headers)), + (this.method = + ((n = e.method || this.method || 'GET'), + (r = n.toUpperCase()), + o.indexOf(r) > -1 ? r : n)), + (this.mode = e.mode || this.mode || null), + (this.referrer = null), + ('GET' === this.method || 'HEAD' === this.method) && i) + ) + throw new TypeError( + 'Body not allowed for GET or HEAD requests' + ); + this._initBody(i); + } + function v(t) { + var e = new FormData(); + return ( + t + .trim() + .split('&') + .forEach(function(t) { + if (t) { + var n = t.split('='), + r = n.shift().replace(/\+/g, ' '), + i = n.join('=').replace(/\+/g, ' '); + e.append( + decodeURIComponent(r), + decodeURIComponent(i) ); - }, - i = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && - (t[r] = n[r]); - } - return t; - }, - o = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - a = (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && - (e[n] = t[n]); - return (e.default = t), e; - })(n(2)), - s = c(n(19)), - u = n(3), - l = c(n(1)); - function c(t) { - return t && t.__esModule ? t : { default: t }; - } - var f = (function() { - function t() { - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, t); } - return ( - o(t, [ - { - key: 'render', - value: function() { - var t = this.dataset.matrix, - e = this.config, - n = e.colors, - o = e.container, - c = e.utils, - f = e.title, - d = e.choropleth, - h = d.map, - p = d.borders, - g = p.show, - v = p.size, - m = p.color, - y = d.showSlider, - b = this.config, - _ = a.select(o), - x = a.select( - this.el().querySelector( - '.' + - this.config.theme + - '-rendering .c3-chart' - ) - ), - w = Number(_.style('width').slice(0, -2)), - S = Number(_.style('height').slice(0, -2)), - E = 0; - f && (E += 31), y && (E += 20); - var k = x - .append('svg') - .attr('width', w) - .attr('height', S - E), - A = t.slice(1).map(function(t) { - return t[1]; - }), - T = a.min(A), - C = a.max(A); - T === C && (T = 0); - var O = a.hsl(n[0]).brighter(1); - O.l = 0.95; - var P = n[0], - M = a - .scaleLinear() - .domain([ - void 0 === T ? 0 : T, - void 0 === C ? 0 : C - ]) - .range([O, P]); - a.json( - 'https://cdn.jsdelivr.net/npm/keen-dataviz-maps@1.0.0/maps/' + - h + - '.json' - ).then(function(e) { - var f = a - .zoom() - .scaleExtent([1, 5]) - .translateExtent([ - [0, 0], - [w, S - 50] - ]) - .on('zoom', function() { - k.selectAll('.' + P).attr( - 'transform', - a.event.transform - ); - }), - d = void 0; - switch (h) { - case 'world': - d = a - .geoMercator() - .fitSize([w, S - 50], e); - break; - case 'us': - d = a - .geoAlbersUsa() - .scale(w) - .fitSize([w, S - 50], e); - break; - default: - d = a - .geoMercator() - .scale(w) - .fitSize([w, S - 50], e); - } - var p = a.geoPath().projection(d), - _ = e.features.map(function(e) { - var n = t.filter(function(t) { - return t[0] === e.properties.name; - }); - return n[0] - ? i({}, e, { - properties: i({}, e.properties, { - result: n[0][1] - }) - }) - : i({}, e, { - properties: i({}, e.properties, { - result: 0 - }) - }); - }); - if (y) { - x - .style('display', 'flex') - .style('flex-direction', 'column') - .style('justify-content', 'center'), - x - .append('div') - .style('width', '95%') - .style('margin', 'auto') - .append('input') - .attr('id', 'rangeSlider'), - new s.default('#rangeSlider', { - type: 'double', - tooltips: !0, - min: 0, - max: C, - onChange: function(t) { - return (function(t) { - var e = k.selectAll('.' + P), - n = r(t, 2), - i = n[0], - o = n[1]; - e.each(function(t, e, n) { - a.select(n[e]).style( - 'visibility', - function() { - return t.properties.result > - o || t.properties.result < i - ? 'hidden' - : 'visible'; - } - ); - }); - })(t); - } - }); - var E = o.className - ? '.' + o.className.replace(/\s/g, '.') - : o, - A = - '\n ' + - E + - ' .rangeable-progress,\n ' + - E + - ' .rangeable-tooltip,\n ' + - E + - ' .active {\n background-color: ' + - n[0] + - ';\n }\n ' + - E + - ' .rangeable-tooltip::before {\n border-color: ' + - n[0] + - ' transparent transparent;\n }\n ' + - E + - ' .rangeable-handle {\n border-color: ' + - n[0] + - ';\n }\n ', - T = document.createElement('style'); - T.innerHTML = A; - var O = document.querySelector('script'); - O.parentNode.insertBefore(T, O); - } - var P = 'world' === h ? 'country' : 'state'; - k - .selectAll('path') - .data(_) - .enter() - .append('path') - .attr('d', p) - .attr('class', P) - .attr('id', function(t) { - return ( - '' + - t.properties.name - .split(' ') - .join('-') - .split('.') - .join('') - ); - }) - .style('fill', function(t) { - return M(t.properties.result); - }) - .attr('cursor', 'pointer') - .on('mouseover', function(t) { - k - .select( - '#' + - t.properties.name - .split(' ') - .join('-') - .split('.') - .join('') - ) - .style('fill', function(t) { - return M(1.2 * C); - }) - .style('stroke-width', 1.5 * v), - L.style('opacity', 1).style( - 'display', - 'block' - ); - }) - .on('mousemove', function(t) { - var e = t.properties.result; - (void 0 !== b.prettyNumber && - !0 !== b.prettyNumber) || - isNaN(parseInt(t.properties.result)) || - (e = (0, u.prettyNumber)( - t.properties.result + }), + e + ); + } + function y(t, e) { + e || (e = {}), + (this.type = 'default'), + (this.status = void 0 === e.status ? 200 : e.status), + (this.ok = this.status >= 200 && this.status < 300), + (this.statusText = 'statusText' in e ? e.statusText : 'OK'), + (this.headers = new c(e.headers)), + (this.url = e.url || ''), + this._initBody(t); + } + })('undefined' != typeof self ? self : this); + }, + function(t) { + t.exports = { + name: 'keen-analysis', + version: '3.4.5', + description: 'A JavaScript client for Keen.IO', + main: 'dist/node/keen-analysis.js', + browser: 'dist/keen-analysis.js', + scripts: { + start: 'NODE_ENV=development webpack-dev-server', + test: 'NODE_ENV=test jest && npm run test:node', + 'test:node': 'NODE_ENV=test TEST_ENV=node jest', + 'test:watch': 'NODE_ENV=test jest --watch', + 'test:node:watch': 'NODE_ENV=test TEST_ENV=node jest --watch', + build: + 'NODE_ENV=production webpack -p && NODE_ENV=production OPTIMIZE_MINIMIZE=1 webpack -p && npm run build:node && npm run build:modules && npm run build:modules:node', + 'build:node': 'TARGET=node NODE_ENV=production webpack -p', + 'build:modules': + 'NODE_ENV=production webpack -p --config webpack.modules.config.js', + 'build:modules:node': + 'NODE_ENV=production TARGET=node webpack -p --config webpack.modules.config.js', + profile: 'webpack --profile --json > stats.json', + analyze: 'webpack-bundle-analyzer stats.json /dist', + preversion: 'npm run build:node && npm run test', + version: 'npm run build && git add .', + postversion: 'git push && git push --tags && npm publish', + demo: 'npm run build:node && node ./test/demo/index.node.js' + }, + repository: { + type: 'git', + url: 'git+https://github.com/keen/keen-analysis.js.git' + }, + author: 'Keen IO ', + homepage: 'https://keen.io/', + contributors: [ + 'Dustin Larimer (https://github.com/dustinlarimer)', + 'Adam Kasprowicz (https://github.com/adamkasprowicz)', + 'Dariusz Łacheta (https://github.com/dariuszlacheta)' + ], + keywords: [ + 'Analytics', + 'Analysis', + 'Conversion', + 'Query', + 'Stats', + 'Client', + 'Min', + 'Max', + 'Count', + 'Percentile', + 'Average', + 'Median', + 'Keen', + 'Keen Query' + ], + license: 'MIT', + bugs: { + url: 'https://github.com/keen/keen-analysis.js/issues' + }, + dependencies: { + crossfilter2: '^1.4.6', + csvtojson: '^2.0.8', + handlebars: '^4.1.2', + 'js-yaml': '^3.13.1', + 'keen-core': '^0.2.0', + moment: '^2.22.2', + 'promise-polyfill': '^8.0.0', + 'whatwg-fetch': '^2.0.4' + }, + devDependencies: { + 'abortcontroller-polyfill': '^1.1.9', + 'babel-loader': '^7.1.4', + 'babel-plugin-transform-es2015-modules-commonjs': '^6.26.2', + 'babel-plugin-transform-object-rest-spread': '^6.26.0', + 'babel-preset-env': '^1.7.0', + del: '^2.1.0', + eslint: '^4.19.1', + 'eslint-config-airbnb': '^16.1.0', + 'eslint-loader': '^2.0.0', + 'eslint-plugin-import': '^2.11.0', + 'eslint-plugin-jsx-a11y': '^6.0.3', + 'fake-indexeddb': '^2.0.4', + 'html-loader': '^0.5.5', + 'html-webpack-plugin': '^3.2.0', + jest: '^22.4.3', + 'jest-fetch-mock': '^1.6.5', + merge: '^1.2.1', + nock: '^9.2.6', + 'regenerator-runtime': '^0.11.1', + requirejs: '^2.1.22', + through2: '^2.0.0', + 'url-parse': '^1.4.3', + webpack: '^4.5.0', + 'webpack-bundle-analyzer': '^3.3.2', + 'webpack-cli': '^2.0.13', + 'webpack-dev-server': '^3.1.14', + 'xhr-mock': '^2.3.2' + } + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(t) { + return typeof t; + } + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t; + }; + e.mapKeysToUnderscore = function t(e) { + var n = ['cache']; + if (!e || 'object' !== (void 0 === e ? 'undefined' : r(e))) + return e; + var i = Object.keys(e) || [], + o = {}; + return ( + i.forEach(function(i) { + var a = e[i]; + return n.includes(i) + ? (o[i] = a) + : (i.match(new RegExp('[A-Z]')) && + (i = i.replace(/[A-Z]/g, function(t) { + return '_' + t.toLowerCase(); + })), + Array.isArray(a) + ? (o[i] = a.map(function(e) { + return t(e); + })) + : 'object' === (void 0 === a ? 'undefined' : r(a)) + ? (o[i] = t(a)) + : void (o[i] = a)); + }), + o + ); + }; + }, + function(t, e, n) { + var r = n(0); + n(2), + (t.exports = function(t) { + var e = []; + return ( + r(t, function(t, n) { + 'string' != typeof t && (t = JSON.stringify(t)), + e.push(n + '=' + encodeURIComponent(t)); + }), + e.join('&') + ); + }); + }, + function(t, e, n) { + 'use strict'; + (function(t) { + var r = n(4), + i = setTimeout; + function o() {} + function a(t) { + if (!(this instanceof a)) + throw new TypeError('Promises must be constructed via new'); + if ('function' != typeof t) + throw new TypeError('not a function'); + (this._state = 0), + (this._handled = !1), + (this._value = void 0), + (this._deferreds = []), + d(t, this); + } + function s(t, e) { + for (; 3 === t._state; ) t = t._value; + 0 !== t._state + ? ((t._handled = !0), + a._immediateFn(function() { + var n = 1 === t._state ? e.onFulfilled : e.onRejected; + if (null !== n) { + var r; + try { + r = n(t._value); + } catch (t) { + return void l(e.promise, t); + } + u(e.promise, r); + } else (1 === t._state ? u : l)(e.promise, t._value); + })) + : t._deferreds.push(e); + } + function u(t, e) { + try { + if (e === t) + throw new TypeError( + 'A promise cannot be resolved with itself.' + ); + if (e && ('object' == typeof e || 'function' == typeof e)) { + var n = e.then; + if (e instanceof a) + return (t._state = 3), (t._value = e), void c(t); + if ('function' == typeof n) + return void d( + ((r = n), + (i = e), + function() { + r.apply(i, arguments); + }), + t + ); + } + (t._state = 1), (t._value = e), c(t); + } catch (e) { + l(t, e); + } + var r, i; + } + function l(t, e) { + (t._state = 2), (t._value = e), c(t); + } + function c(t) { + 2 === t._state && + 0 === t._deferreds.length && + a._immediateFn(function() { + t._handled || a._unhandledRejectionFn(t._value); + }); + for (var e = 0, n = t._deferreds.length; e < n; e++) + s(t, t._deferreds[e]); + t._deferreds = null; + } + function f(t, e, n) { + (this.onFulfilled = 'function' == typeof t ? t : null), + (this.onRejected = 'function' == typeof e ? e : null), + (this.promise = n); + } + function d(t, e) { + var n = !1; + try { + t( + function(t) { + n || ((n = !0), u(e, t)); + }, + function(t) { + n || ((n = !0), l(e, t)); + } + ); + } catch (t) { + if (n) return; + (n = !0), l(e, t); + } + } + (a.prototype.catch = function(t) { + return this.then(null, t); + }), + (a.prototype.then = function(t, e) { + var n = new this.constructor(o); + return s(this, new f(t, e, n)), n; + }), + (a.prototype.finally = r.a), + (a.all = function(t) { + return new a(function(e, n) { + if (!t || void 0 === t.length) + throw new TypeError('Promise.all accepts an array'); + var r = Array.prototype.slice.call(t); + if (0 === r.length) return e([]); + var i = r.length; + function o(t, a) { + try { + if ( + a && + ('object' == typeof a || 'function' == typeof a) + ) { + var s = a.then; + if ('function' == typeof s) + return void s.call( + a, + function(e) { + o(t, e); + }, + n + ); + } + (r[t] = a), 0 == --i && e(r); + } catch (t) { + n(t); + } + } + for (var a = 0; a < r.length; a++) o(a, r[a]); + }); + }), + (a.resolve = function(t) { + return t && 'object' == typeof t && t.constructor === a + ? t + : new a(function(e) { + e(t); + }); + }), + (a.reject = function(t) { + return new a(function(e, n) { + n(t); + }); + }), + (a.race = function(t) { + return new a(function(e, n) { + for (var r = 0, i = t.length; r < i; r++) t[r].then(e, n); + }); + }), + (a._immediateFn = + ('function' == typeof t && + function(e) { + t(e); + }) || + function(t) { + i(t, 0); + }), + (a._unhandledRejectionFn = function(t) { + 'undefined' != typeof console && + console && + console.warn('Possible Unhandled Promise Rejection:', t); + }), + (e.a = a); + }.call(this, n(21).setImmediate)); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = (e.MD5 = function(t) { + return (function(t) { + for ( + var e, n = '0123456789ABCDEF', r = '', i = 0; + i < t.length; + i++ + ) + (e = t.charCodeAt(i)), + (r += n.charAt((e >>> 4) & 15) + n.charAt(15 & e)); + return r; + })( + (function(t) { + for (var e = '', n = 0; n < 32 * t.length; n += 8) + e += String.fromCharCode((t[n >> 5] >>> n % 32) & 255); + return e; + })( + (function(t, e) { + (t[e >> 5] |= 128 << e % 32), + (t[14 + (((e + 64) >>> 9) << 4)] = e); + for ( + var n = 1732584193, + r = -271733879, + i = -1732584194, + c = 271733878, + f = 0; + f < t.length; + f += 16 + ) { + var d = n, + h = r, + p = i, + g = c; + (r = u( + (r = u( + (r = u( + (r = u( + (r = s( + (r = s( + (r = s( + (r = s( + (r = a( + (r = a( + (r = a( + (r = a( + (r = o( + (r = o( + (r = o( + (r = o( + r, + (i = o( + i, + (c = o( + c, + (n = o( + n, + r, + i, + c, + t[f + 0], + 7, + -680876936 + )), + r, + i, + t[f + 1], + 12, + -389564586 + )), + n, + r, + t[f + 2], + 17, + 606105819 + )), + c, + n, + t[f + 3], + 22, + -1044525330 + )), + (i = o( + i, + (c = o( + c, + (n = o( + n, + r, + i, + c, + t[f + 4], + 7, + -176418897 + )), + r, + i, + t[f + 5], + 12, + 1200080426 + )), + n, + r, + t[f + 6], + 17, + -1473231341 + )), + c, + n, + t[f + 7], + 22, + -45705983 + )), + (i = o( + i, + (c = o( + c, + (n = o( + n, + r, + i, + c, + t[f + 8], + 7, + 1770035416 + )), + r, + i, + t[f + 9], + 12, + -1958414417 + )), + n, + r, + t[f + 10], + 17, + -42063 + )), + c, + n, + t[f + 11], + 22, + -1990404162 + )), + (i = o( + i, + (c = o( + c, + (n = o( + n, + r, + i, + c, + t[f + 12], + 7, + 1804603682 + )), + r, + i, + t[f + 13], + 12, + -40341101 + )), + n, + r, + t[f + 14], + 17, + -1502002290 + )), + c, + n, + t[f + 15], + 22, + 1236535329 + )), + (i = a( + i, + (c = a( + c, + (n = a( + n, + r, + i, + c, + t[f + 1], + 5, + -165796510 + )), + r, + i, + t[f + 6], + 9, + -1069501632 + )), + n, + r, + t[f + 11], + 14, + 643717713 + )), + c, + n, + t[f + 0], + 20, + -373897302 + )), + (i = a( + i, + (c = a( + c, + (n = a( + n, + r, + i, + c, + t[f + 5], + 5, + -701558691 + )), + r, + i, + t[f + 10], + 9, + 38016083 + )), + n, + r, + t[f + 15], + 14, + -660478335 + )), + c, + n, + t[f + 4], + 20, + -405537848 + )), + (i = a( + i, + (c = a( + c, + (n = a( + n, + r, + i, + c, + t[f + 9], + 5, + 568446438 + )), + r, + i, + t[f + 14], + 9, + -1019803690 + )), + n, + r, + t[f + 3], + 14, + -187363961 + )), + c, + n, + t[f + 8], + 20, + 1163531501 + )), + (i = a( + i, + (c = a( + c, + (n = a( + n, + r, + i, + c, + t[f + 13], + 5, + -1444681467 + )), + r, + i, + t[f + 2], + 9, + -51403784 + )), + n, + r, + t[f + 7], + 14, + 1735328473 + )), + c, + n, + t[f + 12], + 20, + -1926607734 + )), + (i = s( + i, + (c = s( + c, + (n = s( + n, + r, + i, + c, + t[f + 5], + 4, + -378558 + )), + r, + i, + t[f + 8], + 11, + -2022574463 + )), + n, + r, + t[f + 11], + 16, + 1839030562 + )), + c, + n, + t[f + 14], + 23, + -35309556 + )), + (i = s( + i, + (c = s( + c, + (n = s( + n, + r, + i, + c, + t[f + 1], + 4, + -1530992060 + )), + r, + i, + t[f + 4], + 11, + 1272893353 + )), + n, + r, + t[f + 7], + 16, + -155497632 + )), + c, + n, + t[f + 10], + 23, + -1094730640 + )), + (i = s( + i, + (c = s( + c, + (n = s( + n, + r, + i, + c, + t[f + 13], + 4, + 681279174 )), - L.html( - '\n \n \n \n \n \n \n \n
' + - t.properties.name + - '
' + - e + - '
\n ' - ) - .style( - 'left', - a.event.clientX + 10 + 'px' - ) - .style( - 'top', - a.event.clientY + 10 + 'px' - ); - }) - .on('mouseout', function(t) { - k - .select( - '#' + - t.properties.name - .split(' ') - .join('-') - .split('.') - .join('') - ) - .style('fill', function(t) { - return M(t.properties.result); - }) - .style('stroke-width', v), - L.style('opacity', 0).style( - 'display', - 'none' - ); - }), - g && - k - .selectAll('.' + P) - .style('stroke', m) - .style('stroke-width', v); - var L = a - .select('.c3-chart') - .append('div') - .style('opacity', 0) - .attr('class', 'c3-tooltip-container') - .style('display', 'none') - .style('position', 'fixed'); - c && - c.clickToCopyToClipboard && - k - .selectAll('.' + P) - .on('click', function(t) { - var e = t.properties.result; - (0, l.default)(e, a.event); - }), - k.call(f), - k.call(f).on('mousedown.zoom', null); - }); - } - }, - { - key: 'update', - value: function() { - this.destroy(), this.render(); - } - }, - { - key: 'destroy', - value: function() { - a.select( - this.el().querySelector( - '.' + - this.config.theme + - '-rendering .c3-chart' - ) - ).remove(); - } - } - ]), - t - ); - })(); - e.default = f; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = function() { - var t = - arguments.length > 0 && void 0 !== arguments[0] - ? arguments[0] - : {}, - e = t.element, - n = t.data, - r = document.createElement('dl'); - (r.classList = 'keen-dataviz-execution-meta'), - Object.keys(n).length - ? Object.keys(n).forEach(function(t) { - var e = document.createElement('dt'); - (e.innerText = t.replace(/_/g, ' ')), - e.addEventListener('click', function(t) { - return s(t); - }); - var i = document.createElement('dd'); - (i.innerText = n[t]), - i.addEventListener('click', function(t) { - return s(t); - }), - r.append(e), - r.append(i); - }) - : (r.innerText = - 'No execution metadata available'), - e.append(r); - }); - var r, - i = n(1), - o = (r = i) && r.__esModule ? r : { default: r }; - function a(t) { - var e = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : 'copied', - n = - arguments.length > 2 && void 0 !== arguments[2] - ? arguments[2] - : 1e3; - setTimeout(function() { - t.classList.remove(e); - }, n); - } - function s(t) { - var e = t.target, - n = t.target.nodeName, - r = void 0; - 'DD' === n && - ((r = e.innerText), - e.classList.contains('copied') || - (e.classList.add('copied'), a(e))), - 'DT' === n && - ((r = e.nextSibling.innerText), - e.nextSibling.classList.contains('copied') || - (e.nextSibling.classList.add('copied'), - a(e.nextSibling))), - (0, o.default)(r); - } - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = a(n(55)), - i = a(n(56)), - o = a(n(57)); - function a(t) { - return t && t.__esModule ? t : { default: t }; - } - e.default = { - autocollector: r.default, - modern: i.default, - dracula: o.default - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = { - colors: [ - '#5E77FF', - '#9C60FE', - '#F162FE', - '#FD65B7', - '#FD6768', - '#FDB86A', - '#F2FC6C', - '#A5FC6E', - '#71FB85', - '#73FBD0', - '#76DDFA', - '#76f4fa', - '#bb76fa', - '#fa76bf' - ] - }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = { - colors: [ - '#45B2E8', - '#D9540D', - '#2CAB72', - '#2C4BAB', - '#EDDD02', - '#E84545', - '#E845CE', - '#5FCEC9', - '#E89F45', - '#28E43F', - '#B765C0', - '#458AE8', - '#AB2C2C', - '#AB2C75', - '#27E5FF', - '#7168F2', - '#FF932B', - '#855D00', - '#ACE845', - '#1C91B4' - ] - }); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.default = { - colors: [ - '#8be9fd', - '#50fa7b', - '#ffb86c', - '#ff79c6', - '#bd93f9', - '#ff5555', - '#f1fa8c' - ] - }); - } - ]); - }), - (t.exports = r(n(2), n(9))); - }, - function(t, e, n) { - 'use strict'; - n.r(e), - n.d(e, 'default', function() { - return g; - }); - var r = n(1), - i = n.n(r), - o = n(0), - a = n.n(o), - s = n(3), - u = n.n(s); - function l(t) { - return (l = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - })(t); - } - function c(t, e, n) { - return ( - e in t - ? Object.defineProperty(t, e, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (t[e] = n), - t - ); - } - function f(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - function d(t, e) { - return !e || ('object' !== l(e) && 'function' != typeof e) - ? (function(t) { - if (void 0 === t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return t; - })(t) - : e; - } - function h(t) { - return (h = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(t) { - return t.__proto__ || Object.getPrototypeOf(t); - })(t); - } - function p(t, e) { - return (p = - Object.setPrototypeOf || - function(t, e) { - return (t.__proto__ = e), t; - })(t, e); - } - var g = (function(t) { - function e(t) { - var n; - return ( - (function(t, e) { - if (!(t instanceof e)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, e), - ((n = d(this, h(e).call(this, t))).handleRef = function(t) { - t && ((n.el = t), n.createKeenDataviz()); - }), - n - ); - } - var n, r, o; - return ( - (function(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { value: t, writable: !0, configurable: !0 } - })), - e && p(t, e); - })(e, t), - (n = e), - (r = [ - { - key: 'componentDidUpdate', - value: function() { - this.keenDataviz.destroy(), this.createKeenDataviz(); - } - }, - { - key: 'componentWillUnmount', - value: function() { - this.keenDataviz.destroy(); - } - }, - { - key: 'createKeenDataviz', - value: function() { - this.keenDataviz = new u.a( - (function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = null != arguments[e] ? arguments[e] : {}, - r = Object.keys(n); - 'function' == - typeof Object.getOwnPropertySymbols && - (r = r.concat( - Object.getOwnPropertySymbols(n).filter( - function(t) { - return Object.getOwnPropertyDescriptor( + r, + i, + t[f + 0], + 11, + -358537222 + )), + n, + r, + t[f + 3], + 16, + -722521979 + )), + c, + n, + t[f + 6], + 23, + 76029189 + )), + (i = s( + i, + (c = s( + c, + (n = s( n, - t - ).enumerable; - } - ) + r, + i, + c, + t[f + 9], + 4, + -640364487 + )), + r, + i, + t[f + 12], + 11, + -421815835 + )), + n, + r, + t[f + 15], + 16, + 530742520 + )), + c, + n, + t[f + 2], + 23, + -995338651 )), - r.forEach(function(e) { - c(t, e, n[e]); - }); - } - return t; - })({ container: this.el, react: !0 }, this.props) - ); - } - }, - { - key: 'render', - value: function() { - return i.a.createElement('div', { - className: this.props.theme, - ref: this.handleRef - }); + (i = u( + i, + (c = u( + c, + (n = u( + n, + r, + i, + c, + t[f + 0], + 6, + -198630844 + )), + r, + i, + t[f + 7], + 10, + 1126891415 + )), + n, + r, + t[f + 14], + 15, + -1416354905 + )), + c, + n, + t[f + 5], + 21, + -57434055 + )), + (i = u( + i, + (c = u( + c, + (n = u(n, r, i, c, t[f + 12], 6, 1700485571)), + r, + i, + t[f + 3], + 10, + -1894986606 + )), + n, + r, + t[f + 10], + 15, + -1051523 + )), + c, + n, + t[f + 1], + 21, + -2054922799 + )), + (i = u( + i, + (c = u( + c, + (n = u(n, r, i, c, t[f + 8], 6, 1873313359)), + r, + i, + t[f + 15], + 10, + -30611744 + )), + n, + r, + t[f + 6], + 15, + -1560198380 + )), + c, + n, + t[f + 13], + 21, + 1309151649 + )), + (i = u( + i, + (c = u( + c, + (n = u(n, r, i, c, t[f + 4], 6, -145523070)), + r, + i, + t[f + 11], + 10, + -1120210379 + )), + n, + r, + t[f + 2], + 15, + 718787259 + )), + c, + n, + t[f + 9], + 21, + -343485551 + )), + (n = l(n, d)), + (r = l(r, h)), + (i = l(i, p)), + (c = l(c, g)); } - } - ]) && f(n.prototype, r), - o && f(n, o), - e - ); - })(r.Component); - (g.propTypes = { - type: a.a.string, - showDeprecationWarnings: a.a.bool, - showLoadingSpinner: a.a.bool, - theme: a.a.string, - dateFormat: a.a.string, - title: a.a.oneOfType([a.a.string, a.a.bool, a.a.number]), - legend: a.a.shape({ - show: a.a.bool, - position: a.a.string, - label: a.a.shape({ textMaxLength: a.a.number }), - pagination: a.a.shape({ - offset: a.a.number, - limit: a.a.number - }), - tooltip: a.a.shape({ show: a.a.bool, pointer: a.a.bool }), - sort: a.a.string - }), - colors: a.a.arrayOf(a.a.string), - colorMapping: a.a.objectOf(a.a.string), - labelMapping: a.a.objectOf(a.a.string), - labelMappingRegExp: a.a.arrayOf(a.a.arrayOf(a.a.string)), - labelMappingDimension: a.a.string, - errorMapping: a.a.objectOf(a.a.string), - showErrorMessages: a.a.bool, - labels: a.a.arrayOf(a.a.string), - sortGroups: a.a.string, - sortIntervals: a.a.string, - stacking: a.a.string, - table: a.a.shape({ - columns: a.a.arrayOf(a.a.string), - pagination: a.a.shape({ limit: a.a.number }), - mapValues: a.a.func - }), - renderOnVisible: a.a.bool, - results: a.a.any, - previousResults: a.a.shape({ result: a.a.number }), - funnel: a.a.shape({ - lines: a.a.bool, - resultValues: a.a.bool, - percents: a.a.shape({ - show: a.a.bool, - countingMethod: a.a.string, - decimals: a.a.number - }), - hover: a.a.bool, - marginBetweenSteps: a.a.bool, - effect3d: a.a.string - }), - stacked: a.a.bool, - indexBy: a.a.string, - library: a.a.string, - timezone: a.a.string, - padding: a.a.shape({ - top: a.a.number, - right: a.a.number, - bottom: a.a.number, - left: a.a.number - }), - tooltip: a.a.shape({ - show: a.a.bool, - grouped: a.a.bool, - format: a.a.shape({ - title: a.a.func, - name: a.a.func, - value: a.a.func - }), - position: a.a.func, - contenss: a.a.func - }), - partialIntervalIndicator: a.a.shape({ - show: a.a.bool, - className: a.a.string - }), - showTitle: a.a.bool, - notes: a.a.string, - axis: a.a.any, - color: a.a.any, - point: a.a.any, - transition: a.a.any, - data: a.a.any, - grid: a.a.any - }), - (g.defaultProps = { theme: 'keen-dataviz' }); - }, - function(t, e, n) { - 'use strict'; - /** @license React v16.8.5 - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ var r = n(6), - i = 'function' == typeof Symbol && Symbol.for, - o = i ? Symbol.for('react.element') : 60103, - a = i ? Symbol.for('react.portal') : 60106, - s = i ? Symbol.for('react.fragment') : 60107, - u = i ? Symbol.for('react.strict_mode') : 60108, - l = i ? Symbol.for('react.profiler') : 60114, - c = i ? Symbol.for('react.provider') : 60109, - f = i ? Symbol.for('react.context') : 60110, - d = i ? Symbol.for('react.concurrent_mode') : 60111, - h = i ? Symbol.for('react.forward_ref') : 60112, - p = i ? Symbol.for('react.suspense') : 60113, - g = i ? Symbol.for('react.memo') : 60115, - v = i ? Symbol.for('react.lazy') : 60116, - m = 'function' == typeof Symbol && Symbol.iterator; - function y(t, e, n, r, i, o, a, s) { - if (!t) { - if (((t = void 0), void 0 === e)) - t = Error( - 'Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.' - ); - else { - var u = [n, r, i, o, a, s], - l = 0; - (t = Error( - e.replace(/%s/g, function() { - return u[l++]; - }) - )).name = 'Invariant Violation'; - } - throw ((t.framesToPop = 1), t); - } - } - function b(t) { - for ( - var e = arguments.length - 1, - n = - 'https://reactjs.org/docs/error-decoder.html?invariant=' + - t, - r = 0; - r < e; - r++ - ) - n += '&args[]=' + encodeURIComponent(arguments[r + 1]); - y( - !1, - 'Minified React error #' + - t + - '; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ', + return Array(n, r, i, c); + })( + (function(t) { + for ( + var e = Array(t.length >> 2), n = 0; + n < e.length; + n++ + ) + e[n] = 0; + for (n = 0; n < 8 * t.length; n += 8) + e[n >> 5] |= (255 & t.charCodeAt(n / 8)) << n % 32; + return e; + })(t), + 8 * t.length + ) + ) + ).toLowerCase(); + }); + function i(t, e, n, r, i, o) { + return l( + (function(t, e) { + return (t << e) | (t >>> (32 - e)); + })(l(l(e, t), l(r, o)), i), n ); } - var _ = { - isMounted: function() { - return !1; - }, - enqueueForceUpdate: function() {}, - enqueueReplaceState: function() {}, - enqueueSetState: function() {} - }, - x = {}; - function w(t, e, n) { - (this.props = t), - (this.context = e), - (this.refs = x), - (this.updater = n || _); - } - function S() {} - function E(t, e, n) { - (this.props = t), - (this.context = e), - (this.refs = x), - (this.updater = n || _); - } - (w.prototype.isReactComponent = {}), - (w.prototype.setState = function(t, e) { - 'object' != typeof t && - 'function' != typeof t && - null != t && - b('85'), - this.updater.enqueueSetState(this, t, e, 'setState'); - }), - (w.prototype.forceUpdate = function(t) { - this.updater.enqueueForceUpdate(this, t, 'forceUpdate'); - }), - (S.prototype = w.prototype); - var k = (E.prototype = new S()); - (k.constructor = E), - r(k, w.prototype), - (k.isPureReactComponent = !0); - var A = { current: null }, - T = { current: null }, - C = Object.prototype.hasOwnProperty, - O = { key: !0, ref: !0, __self: !0, __source: !0 }; - function P(t, e, n) { - var r = void 0, - i = {}, - a = null, - s = null; - if (null != e) - for (r in (void 0 !== e.ref && (s = e.ref), - void 0 !== e.key && (a = '' + e.key), - e)) - C.call(e, r) && !O.hasOwnProperty(r) && (i[r] = e[r]); - var u = arguments.length - 2; - if (1 === u) i.children = n; - else if (1 < u) { - for (var l = Array(u), c = 0; c < u; c++) - l[c] = arguments[c + 2]; - i.children = l; - } - if (t && t.defaultProps) - for (r in (u = t.defaultProps)) - void 0 === i[r] && (i[r] = u[r]); - return { - $$typeof: o, - type: t, - key: a, - ref: s, - props: i, - _owner: T.current - }; - } - function M(t) { - return 'object' == typeof t && null !== t && t.$$typeof === o; - } - var L = /\/+/g, - D = []; - function j(t, e, n, r) { - if (D.length) { - var i = D.pop(); - return ( - (i.result = t), - (i.keyPrefix = e), - (i.func = n), - (i.context = r), - (i.count = 0), - i - ); - } - return { - result: t, - keyPrefix: e, - func: n, - context: r, - count: 0 - }; - } - function R(t) { - (t.result = null), - (t.keyPrefix = null), - (t.func = null), - (t.context = null), - (t.count = 0), - 10 > D.length && D.push(t); - } - function N(t, e, n) { - return null == t - ? 0 - : (function t(e, n, r, i) { - var s = typeof e; - ('undefined' !== s && 'boolean' !== s) || (e = null); - var u = !1; - if (null === e) u = !0; - else - switch (s) { - case 'string': - case 'number': - u = !0; - break; - case 'object': - switch (e.$$typeof) { - case o: - case a: - u = !0; - } - } - if (u) return r(i, e, '' === n ? '.' + z(e, 0) : n), 1; - if ( - ((u = 0), - (n = '' === n ? '.' : n + ':'), - Array.isArray(e)) - ) - for (var l = 0; l < e.length; l++) { - var c = n + z((s = e[l]), l); - u += t(s, c, r, i); - } - else if ( - 'function' == - typeof (c = - null === e || 'object' != typeof e - ? null - : 'function' == - typeof (c = (m && e[m]) || e['@@iterator']) - ? c - : null) - ) - for (e = c.call(e), l = 0; !(s = e.next()).done; ) - u += t((s = s.value), (c = n + z(s, l++)), r, i); - else - 'object' === s && - b( - '31', - '[object Object]' == (r = '' + e) - ? 'object with keys {' + - Object.keys(e).join(', ') + - '}' - : r, - '' - ); - return u; - })(t, '', e, n); - } - function z(t, e) { - return 'object' == typeof t && null !== t && null != t.key - ? (function(t) { - var e = { '=': '=0', ':': '=2' }; - return ( - '$' + - ('' + t).replace(/[=:]/g, function(t) { - return e[t]; - }) - ); - })(t.key) - : e.toString(36); + function o(t, e, n, r, o, a, s) { + return i((e & n) | (~e & r), t, e, o, a, s); } - function I(t, e) { - t.func.call(t.context, e, t.count++); + function a(t, e, n, r, o, a, s) { + return i((e & r) | (n & ~r), t, e, o, a, s); } - function F(t, e, n) { - var r = t.result, - i = t.keyPrefix; - (t = t.func.call(t.context, e, t.count++)), - Array.isArray(t) - ? V(t, r, n, function(t) { - return t; - }) - : null != t && - (M(t) && - (t = (function(t, e) { - return { - $$typeof: o, - type: t.type, - key: e, - ref: t.ref, - props: t.props, - _owner: t._owner - }; - })( - t, - i + - (!t.key || (e && e.key === t.key) - ? '' - : ('' + t.key).replace(L, '$&/') + '/') + - n - )), - r.push(t)); + function s(t, e, n, r, o, a, s) { + return i(e ^ n ^ r, t, e, o, a, s); } - function V(t, e, n, r, i) { - var o = ''; - null != n && (o = ('' + n).replace(L, '$&/') + '/'), - N(t, F, (e = j(e, o, r, i))), - R(e); + function u(t, e, n, r, o, a, s) { + return i(n ^ (e | ~r), t, e, o, a, s); } - function B() { - var t = A.current; - return null === t && b('321'), t; + function l(t, e) { + var n = (65535 & t) + (65535 & e); + return ( + (((t >> 16) + (e >> 16) + (n >> 16)) << 16) | (65535 & n) + ); } - var G = { - Children: { - map: function(t, e, n) { - if (null == t) return t; - var r = []; - return V(t, r, null, e, n), r; - }, - forEach: function(t, e, n) { - if (null == t) return t; - N(t, I, (e = j(null, null, e, n))), R(e); - }, - count: function(t) { - return N( - t, - function() { - return null; - }, - null - ); - }, - toArray: function(t) { - var e = []; - return ( - V(t, e, null, function(t) { - return t; - }), - e - ); - }, - only: function(t) { - return M(t) || b('143'), t; - } - }, - createRef: function() { - return { current: null }; - }, - Component: w, - PureComponent: E, - createContext: function(t, e) { - return ( - void 0 === e && (e = null), - ((t = { - $$typeof: f, - _calculateChangedBits: e, - _currentValue: t, - _currentValue2: t, - _threadCount: 0, - Provider: null, - Consumer: null - }).Provider = { $$typeof: c, _context: t }), - (t.Consumer = t) - ); - }, - forwardRef: function(t) { - return { $$typeof: h, render: t }; - }, - lazy: function(t) { - return { - $$typeof: v, - _ctor: t, - _status: -1, - _result: null - }; - }, - memo: function(t, e) { - return { - $$typeof: g, - type: t, - compare: void 0 === e ? null : e - }; - }, - useCallback: function(t, e) { - return B().useCallback(t, e); - }, - useContext: function(t, e) { - return B().useContext(t, e); - }, - useEffect: function(t, e) { - return B().useEffect(t, e); - }, - useImperativeHandle: function(t, e, n) { - return B().useImperativeHandle(t, e, n); - }, - useDebugValue: function() {}, - useLayoutEffect: function(t, e) { - return B().useLayoutEffect(t, e); - }, - useMemo: function(t, e) { - return B().useMemo(t, e); - }, - useReducer: function(t, e, n) { - return B().useReducer(t, e, n); - }, - useRef: function(t) { - return B().useRef(t); - }, - useState: function(t) { - return B().useState(t); - }, - Fragment: s, - StrictMode: u, - Suspense: p, - createElement: P, - cloneElement: function(t, e, n) { - null == t && b('267', t); - var i = void 0, - a = r({}, t.props), - s = t.key, - u = t.ref, - l = t._owner; - if (null != e) { - void 0 !== e.ref && ((u = e.ref), (l = T.current)), - void 0 !== e.key && (s = '' + e.key); - var c = void 0; - for (i in (t.type && - t.type.defaultProps && - (c = t.type.defaultProps), - e)) - C.call(e, i) && - !O.hasOwnProperty(i) && - (a[i] = - void 0 === e[i] && void 0 !== c ? c[i] : e[i]); - } - if (1 == (i = arguments.length - 2)) a.children = n; - else if (1 < i) { - c = Array(i); - for (var f = 0; f < i; f++) c[f] = arguments[f + 2]; - a.children = c; - } - return { - $$typeof: o, - type: t.type, - key: s, - ref: u, - props: a, - _owner: l - }; - }, - createFactory: function(t) { - var e = P.bind(null, t); - return (e.type = t), e; - }, - isValidElement: M, - version: '16.8.5', - unstable_ConcurrentMode: d, - unstable_Profiler: l, - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { - ReactCurrentDispatcher: A, - ReactCurrentOwner: T, - assign: r + e.default = r; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.getFromCache = e.saveToCache = void 0); + var r = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); } - }, - H = { default: G }, - U = (H && G) || H; - t.exports = U.default || U; + return t; + }; + n(3), n(5); + var i, + o = n(10), + a = (i = o) && i.__esModule ? i : { default: i }, + s = 'indexedDB' in self, + u = !0; + s || (u = !1); + var l = void 0, + c = { + dbName: 'keenAnalysisIndexedDB', + dbCollectionName: 'requests', + dbCollectionKey: 'url', + maxAge: 6e4 + }; + function f() { + var t = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : {}; + return l + ? Promise.resolve() + : u + ? ((c = r({}, c, t)), + new Promise(function(t, e) { + var n = self.indexedDB.open(c.dbName); + (n.onerror = function(e) { + (u = !1), t(); + }), + (n.onupgradeneeded = function(t) { + var e = t.target.result.createObjectStore( + c.dbCollectionName, + { keyPath: c.dbCollectionKey } + ); + e.createIndex(c.dbCollectionKey, c.dbCollectionKey, { + unique: !0 + }), + e.createIndex('expiryTime', 'expiryTime', { + unique: !1 + }); + }), + (n.onsuccess = function(e) { + ((l = e.target.result).onerror = function(t) { + u = !1; + }), + t(l); + }); + })) + : Promise.resolve(); + } + var d = function(t, e) { + return (0, a.default)(t + '&body=' + JSON.stringify(e.body)); + }; + (e.saveToCache = function(t, e, n) { + return f().then(function() { + var r = l + .transaction(c.dbCollectionName, 'readwrite') + .objectStore(c.dbCollectionName) + .add({ + url: d(t, e), + expiryTime: Date.now() + c.maxAge, + responseJson: n + }); + (r.onsuccess = function(t) {}), + (r.onerror = function(t) { + u = !1; + }); + }); + }), + (e.getFromCache = function t(e, n) { + var r = + arguments.length > 2 && void 0 !== arguments[2] + ? arguments[2] + : {}; + return f(r.cache).then(function() { + return new Promise(function(i, o) { + if (!u) return i(null); + var a = l + .transaction(c.dbCollectionName, 'readwrite') + .objectStore(c.dbCollectionName) + .index('expiryTime'), + s = IDBKeyRange.upperBound(Date.now(), !0); + a.openCursor(s).onsuccess = function(t) { + var e = t.target.result; + e && + (l + .transaction(c.dbCollectionName, 'readwrite') + .objectStore(c.dbCollectionName) + .delete(t.target.result.value[c.dbCollectionKey]), + e.continue()); + }; + var f = l + .transaction(c.dbCollectionName, 'readwrite') + .objectStore(c.dbCollectionName) + .index(c.dbCollectionKey) + .get(d(e, n)); + (f.onsuccess = function(o) { + if ( + !o.target.result || + o.target.result.expiryTime < Date.now() + ) { + if ( + o.target.result && + o.target.result.expiryTime < Date.now() + ) { + var a = l + .transaction(c.dbCollectionName, 'readwrite') + .objectStore(c.dbCollectionName) + .delete(o.target.result[c.dbCollectionKey]); + return ( + (a.onsuccess = function(o) { + i(t(e, n, r)); + }), + (a.onerror = function(o) { + (u = !1), i(t(e, n, r)); + }), + i(null) + ); + } + return i(null); + } + return i(o.target.result.responseJson); + }), + (f.onerror = function(o) { + (u = !1), i(t(e, n, r)); + }); + }); + }); + }); }, function(t, e, n) { 'use strict'; - /* -object-assign -(c) Sindre Sorhus -@license MIT -*/ var r = - Object.getOwnPropertySymbols, - i = Object.prototype.hasOwnProperty, - o = Object.prototype.propertyIsEnumerable; - function a(t) { - if (null == t) - throw new TypeError( - 'Object.assign cannot be called with null or undefined' - ); - return Object(t); + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.DEL = e.PUT = e.POST = e.GET = void 0); + var r = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }; + n(3), n(5); + var i = s(n(0)), + o = s(n(8)), + a = n(11); + function s(t) { + return t && t.__esModule ? t : { default: t }; } - t.exports = (function() { - try { - if (!Object.assign) return !1; - var t = new String('abc'); - if (((t[5] = 'de'), '5' === Object.getOwnPropertyNames(t)[0])) - return !1; - for (var e = {}, n = 0; n < 10; n++) - e['_' + String.fromCharCode(n)] = n; + var u = function t(e, n) { + var s = + arguments.length > 2 && void 0 !== arguments[2] + ? arguments[2] + : {}, + u = {}, + l = n.url; + ('GET' !== e && 'DELETE' !== e) || + (-1 === l.indexOf('?') ? (l += '?') : (l += '&'), + n.api_key && (l += 'api_key=' + n.api_key + '&'), + n.params && (l += (0, o.default)(n.params))), + (0, i.default)(n.headers, function(t, e) { + 'string' == typeof t && (u[e] = t); + }); + var c = { + method: e, + body: + 'GET' !== e && n.params + ? JSON.stringify(n.params) + : void 0, + mode: 'cors', + headers: u + }; if ( - '0123456789' !== - Object.getOwnPropertyNames(e) - .map(function(t) { - return e[t]; - }) - .join('') + n.cache && + 'DELETE' !== e && + 'PUT' !== e && + !s.notFoundInCache ) - return !1; - var r = {}; + return (0, a.getFromCache)(l, c, n).then(function(i) { + if (i) return s.resolve(i); + t(e, n, r({}, s, { notFoundInCache: !0 })); + }); + var f = void 0; + fetch(l, r({}, c, { signal: s.signal })) + .catch(function(t) { + s.reject(t); + }) + .then(function(t) { + if (t) + return (f = t), t.ok && 'DELETE' === e ? {} : t.json(); + }) + .then(function(t) { + if (t) { + if (t.error_code || !f.ok) + return s.reject({ + ok: !1, + error_code: t.error_code, + body: t.message, + status: f.status, + statusText: f.statusText + }); + n.cache && + 'DELETE' !== e && + 'PUT' !== e && + (0, a.saveToCache)(l, c, t), + s.resolve(t); + } + }); + }, + l = function() { + var t = window || void 0; + if ( + t.XMLHttpRequest && + (!t.ActiveXObject || + (t.location && + t.location.protocol && + 'file:' !== t.location.protocol)) + ) + return new XMLHttpRequest(); + try { + return new ActiveXObject('Microsoft.XMLHTTP'); + } catch (t) {} + try { + return new ActiveXObject('Msxml2.XMLHTTP.6.0'); + } catch (t) {} + try { + return new ActiveXObject('Msxml2.XMLHTTP.3.0'); + } catch (t) {} + try { + return new ActiveXObject('Msxml2.XMLHTTP'); + } catch (t) {} + return !1; + }, + c = function(t, e) { + var n = + arguments.length > 2 && void 0 !== arguments[2] + ? arguments[2] + : {}, + r = l(), + a = n.callback, + s = e.url; return ( - 'abcdefghijklmnopqrst'.split('').forEach(function(t) { - r[t] = t; + (r.onreadystatechange = function() { + var t = void 0; + if (4 == r.readyState) + if (r.status >= 200 && r.status < 300) + if (204 === r.status) a && a(null, r); + else + try { + (t = JSON.parse(r.responseText)), + a && t && a(null, t); + } catch (t) { + a && a(r, null); + } + else + try { + (t = JSON.parse(r.responseText)), + a && t && a(t, null); + } catch (t) { + a && a(r, null); + } }), - 'abcdefghijklmnopqrst' === - Object.keys(Object.assign({}, r)).join('') + 'GET' !== t + ? (r.open(t, s, !0), + (0, i.default)(e.headers, function(t, e) { + 'string' == typeof t && r.setRequestHeader(e, t); + }), + e.params ? r.send(JSON.stringify(e.params)) : r.send()) + : ((s += '?'), + e.api_key && (s += 'api_key=' + e.api_key + '&'), + e.params && (s += (0, o.default)(e.params)), + r.open(t, s, !0), + (0, i.default)(e.headers, function(t, e) { + 'string' == typeof t && r.setRequestHeader(e, t); + }), + r.send()), + r ); - } catch (t) { - return !1; - } - })() - ? Object.assign - : function(t, e) { - for (var n, s, u = a(t), l = 1; l < arguments.length; l++) { - for (var c in (n = Object(arguments[l]))) - i.call(n, c) && (u[c] = n[c]); - if (r) { - s = r(n); - for (var f = 0; f < s.length; f++) - o.call(n, s[f]) && (u[s[f]] = n[s[f]]); + }; + (e.GET = function(t, e) { + return 'undefined' != typeof fetch + ? u('GET', t, e) + : l() + ? c('GET', t, e) + : (function(t) { + var e = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : {}, + n = t.url, + r = e.callback, + i = new Date().getTime(), + a = document.createElement('script'), + s = document.getElementsByTagName('head')[0], + u = 'keenJSONPCallback', + l = !1; + for (u += i; u in window; ) u += 'a'; + (window[u] = function(t) { + !0 !== l && c(null, t); + }), + t.params && (n += (0, o.default)(t.params)), + (a.onreadystatechange = function() { + !1 === l && + 'loaded' === this.readyState && + c('An error occurred', null); + }), + (a.onerror = function() { + !1 === l && c('An error occurred', null); + }), + (a.src = n + '&jsonp=' + u), + s.appendChild(a); + var c = function(t, e) { + (l = !0), + r && + 'function' == typeof r && + (r(t, e), (r = void 0)), + (window[u] = void 0); + try { + delete window[u]; + } catch (t) {} + s.removeChild(a); + }; + })(t, e); + }), + (e.POST = function(t, e) { + return 'undefined' != typeof fetch + ? u('POST', t, e) + : l() + ? c('POST', t, e) + : void e.reject('XHR POST not supported'); + }), + (e.PUT = function(t, e) { + return 'undefined' != typeof fetch + ? u('PUT', t, e) + : l() + ? c('PUT', t, e) + : void e.reject('XHR PUT not supported'); + }), + (e.DEL = function(t, e) { + return 'undefined' != typeof fetch + ? u('DELETE', t, e) + : l() + ? c('DELETE', t, e) + : void e.reject('XHR DELETE not supported'); + }); + }, + function(t, e, n) { + (function(t) { + !(function() { + 'use strict'; + var e = function(t, e) { + if (!(t instanceof e)) + throw new TypeError( + 'Cannot call a class as a function' + ); + }, + n = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } } - } - return u; - }; + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + r = function(t, e) { + if (!t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !e || + ('object' != typeof e && 'function' != typeof e) + ? t + : e; + }, + i = (function(t) { + function i() { + e(this, i); + var t = r( + this, + (i.__proto__ || Object.getPrototypeOf(i)).call(this) + ); + return (t.aborted = !1), (t.onabort = null), t; + } + return ( + (function(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof e + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { + value: t, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + e && + (Object.setPrototypeOf + ? Object.setPrototypeOf(t, e) + : (t.__proto__ = e)); + })(i, t), + n(i, [ + { + key: 'toString', + value: function() { + return '[object AbortSignal]'; + } + }, + { + key: 'dispatchEvent', + value: function(t) { + 'abort' === t.type && + ((this.aborted = !0), + 'function' == typeof this.onabort && + this.onabort.call(this, t)), + (function t(e, n, r) { + null === e && (e = Function.prototype); + var i = Object.getOwnPropertyDescriptor(e, n); + if (void 0 === i) { + var o = Object.getPrototypeOf(e); + return null === o ? void 0 : t(o, n, r); + } + if ('value' in i) return i.value; + var a = i.get; + return void 0 !== a ? a.call(r) : void 0; + })( + i.prototype.__proto__ || + Object.getPrototypeOf(i.prototype), + 'dispatchEvent', + this + ).call(this, t); + } + } + ]), + i + ); + })( + (function() { + function t() { + e(this, t), (this.listeners = {}); + } + return ( + n(t, [ + { + key: 'addEventListener', + value: function(t, e) { + t in this.listeners || (this.listeners[t] = []), + this.listeners[t].push(e); + } + }, + { + key: 'removeEventListener', + value: function(t, e) { + if (t in this.listeners) + for ( + var n = this.listeners[t], + r = 0, + i = n.length; + r < i; + r++ + ) + if (n[r] === e) return void n.splice(r, 1); + } + }, + { + key: 'dispatchEvent', + value: function(t) { + var e = this; + if (t.type in this.listeners) { + for ( + var n = function(n) { + setTimeout(function() { + return n.call(e, t); + }); + }, + r = this.listeners[t.type], + i = 0, + o = r.length; + i < o; + i++ + ) + n(r[i]); + return !t.defaultPrevented; + } + } + } + ]), + t + ); + })() + ), + o = (function() { + function t() { + e(this, t), (this.signal = new i()); + } + return ( + n(t, [ + { + key: 'abort', + value: function() { + var t = void 0; + try { + t = new Event('abort'); + } catch (e) { + 'undefined' != typeof document + ? (t = document.createEvent( + 'Event' + )).initEvent('abort', !1, !1) + : (t = { + type: 'abort', + bubbles: !1, + cancelable: !1 + }); + } + this.signal.dispatchEvent(t); + } + }, + { + key: 'toString', + value: function() { + return '[object AbortController]'; + } + } + ]), + t + ); + })(); + 'undefined' != typeof Symbol && + Symbol.toStringTag && + ((o.prototype[Symbol.toStringTag] = 'AbortController'), + (i.prototype[Symbol.toStringTag] = 'AbortSignal')), + (function(t) { + if (!t.AbortController) + if ( + ((t.AbortController = o), + (t.AbortSignal = i), + t.fetch) + ) { + var e = (function(t) { + 'function' == typeof t && (t = { fetch: t }); + var e = t, + n = e.fetch, + r = e.Request, + i = void 0 === r ? n.Request : r, + a = e.AbortController, + s = i; + if (s) { + var u = new (void 0 === a ? o : a)().signal; + if (new s('/', { signal: u }).signal) + return { fetch: n, Request: s }; + (s = function(t, e) { + var n = new i(t, e); + return ( + e && e.signal && (n.signal = e.signal), n + ); + }).prototype = i.prototype; + } + var l = n; + return { + fetch: function(t, e) { + var n = + s && s.prototype.isPrototypeOf(t) + ? t.signal + : e + ? e.signal + : void 0; + if (n) { + var r = void 0; + try { + r = new DOMException( + 'Aborted', + 'AbortError' + ); + } catch (t) { + (r = new Error('Aborted')).name = + 'AbortError'; + } + if (n.aborted) return Promise.reject(r); + var i = new Promise(function(t, e) { + n.addEventListener( + 'abort', + function() { + return e(r); + }, + { once: !0 } + ); + }); + return Promise.race([i, l(t, e)]); + } + return l(t, e); + }, + Request: s + }; + })(t), + n = e.fetch, + r = e.Request; + (t.fetch = n), (t.Request = r); + } else + console.warn( + 'fetch() is not available, cannot install abortcontroller-polyfill' + ); + })('undefined' != typeof self ? self : t); + })(); + }.call(this, n(1))); }, function(t, e, n) { 'use strict'; - var r = n(8); - function i() {} - function o() {} - (o.resetWarningCache = i), - (t.exports = function() { - function t(t, e, n, i, o, a) { - if (a !== r) { - var s = 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 ((s.name = 'Invariant Violation'), s); + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(t) { + return typeof t; + } + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t; + }, + i = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); } - } - function e() { return t; - } - t.isRequired = t; - var n = { - array: t, - bool: t, - func: t, - number: t, - object: t, - string: t, - symbol: t, - any: t, - arrayOf: e, - element: t, - elementType: t, - instanceOf: e, - node: t, - objectOf: e, - oneOf: e, - oneOfType: e, - shape: e, - exact: e, - checkPropTypes: o, - resetWarningCache: i }; - return (n.PropTypes = n), n; - }); - }, - function(t, e, n) { - 'use strict'; - t.exports = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; - }, - function(t, e, n) { - /* @license C3.js v0.7.11 | (c) C3 Team and other contributors | http://c3js.org/ */ - t.exports = (function() { - 'use strict'; - function t(e) { - return (t = - 'function' == typeof Symbol && - 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - })(e); - } - function e(t) { - return ( - (function(t) { - if (Array.isArray(t)) { - for ( - var e = 0, n = new Array(t.length); - e < t.length; - e++ - ) - n[e] = t[e]; - return n; - } - })(t) || - (function(t) { - if ( - Symbol.iterator in Object(t) || - '[object Arguments]' === - Object.prototype.toString.call(t) - ) - return Array.from(t); - })(t) || - (function() { - throw new TypeError( - 'Invalid attempt to spread non-iterable instance' + e.default = c; + var o = l(n(0)), + a = l(n(2)); + n(13), n(3); + var s = n(7), + u = n(6); + function l(t) { + return t && t.__esModule ? t : { default: t }; + } + function c(t, e) { + return ( + (this.httpHandlers = e), + function(e) { + var n = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : {}; + if ('string' == typeof e) + return ( + (this.config = i( + { + api_key: void 0, + method: t, + params: {}, + url: e, + headers: { + Authorization: '', + 'Content-type': 'application/json', + 'keen-sdk': 'javascript-' + u.version + } + }, + n + )), + this ); - })() - ); - } - function r(t) { - var e = this; - (e.d3 = window.d3 ? window.d3 : n(2)), - (e.api = t), - (e.config = e.getDefaultConfig()), - (e.data = {}), - (e.cache = {}), - (e.axes = {}); - } - function i(t) { - (this.internal = new r(this)), - this.internal.loadConfig(t), - this.internal.beforeInit(t), - this.internal.init(), - this.internal.afterInit(t), - (function t(e, n, r) { - Object.keys(e).forEach(function(i) { - (n[i] = e[i].bind(r)), - Object.keys(e[i]).length > 0 && t(e[i], n[i], r); - }); - })(i.prototype, this, this); - } - var o = function(t) { - return Math.ceil(t) + 0.5; - }, - a = function(t) { - return 10 * Math.ceil(t / 10); - }, - s = function(t) { - return t[1] - t[0]; - }, - u = function(t, e, n) { - return d(t[e]) ? t[e] : n; - }, - l = function(t) { - var e = c(t), - n = [t.pathSegList.getItem(0), t.pathSegList.getItem(1)]; - return { - x: n[0].x, - y: Math.min(n[0].y, n[1].y), - width: e.width, - height: e.height - }; - }, - c = function(t) { - try { - return t.getBBox(); - } catch (t) { - return { x: 0, y: 0, width: 0, height: 0 }; - } - }, - f = function(t) { - return Array.isArray(t); - }, - d = function(t) { - return void 0 !== t; - }, - h = function(e) { - return ( - null == e || - (v(e) && 0 === e.length) || - ('object' === t(e) && 0 === Object.keys(e).length) - ); - }, - p = function(t) { - return 'function' == typeof t; - }, - g = function(t) { - return 'number' == typeof t; - }, - v = function(t) { - return 'string' == typeof t; - }, - m = function(t) { - return void 0 === t; - }, - y = function(t) { - return t || 0 === t; - }, - b = function(t) { - return !h(t); - }, - _ = function(t) { - return 'string' == typeof t - ? t.replace(//g, '>') - : t; - }; - function x(t, e) { - (this.component = t), - (this.params = e || {}), - (this.d3 = t.d3), - (this.scale = this.d3.scaleLinear()), - this.range, - (this.orient = 'bottom'), - (this.innerTickSize = 6), - (this.outerTickSize = this.params.withOuterTick ? 6 : 0), - (this.tickPadding = 3), - (this.tickValues = null), - this.tickFormat, - this.tickArguments, - (this.tickOffset = 0), - (this.tickCulling = !0), - this.tickCentered, - this.tickTextCharSize, - (this.tickTextRotate = this.params.tickTextRotate), - this.tickLength, - (this.axis = this.generateAxis()); - } - (x.prototype.axisX = function(t, e, n) { - t.attr('transform', function(t) { - return 'translate(' + Math.ceil(e(t) + n) + ', 0)'; - }); - }), - (x.prototype.axisY = function(t, e) { - t.attr('transform', function(t) { - return 'translate(0,' + Math.ceil(e(t)) + ')'; - }); - }), - (x.prototype.scaleExtent = function(t) { - var e = t[0], - n = t[t.length - 1]; - return e < n ? [e, n] : [n, e]; - }), - (x.prototype.generateTicks = function(t) { - var e, - n, - r = []; - if (t.ticks) return t.ticks.apply(t, this.tickArguments); - for (n = t.domain(), e = Math.ceil(n[0]); e < n[1]; e++) - r.push(e); - return ( - r.length > 0 && - r[0] > 0 && - r.unshift(r[0] - (r[1] - r[0])), - r - ); - }), - (x.prototype.copyScale = function() { - var t, - e = this.scale.copy(); - return ( - this.params.isCategory && - ((t = this.scale.domain()), e.domain([t[0], t[1] - 1])), - e - ); - }), - (x.prototype.textFormatted = function(t) { - var e = this.tickFormat ? this.tickFormat(t) : t; - return void 0 !== e ? e : ''; - }), - (x.prototype.updateRange = function() { - return ( - (this.range = this.scale.rangeExtent - ? this.scale.rangeExtent() - : this.scaleExtent(this.scale.range())), - this.range - ); - }), - (x.prototype.updateTickTextCharSize = function(t) { - var e = this; - if (e.tickTextCharSize) return e.tickTextCharSize; - var n = { h: 11.5, w: 5.5 }; - return ( - t - .select('text') - .text(function(t) { - return e.textFormatted(t); - }) - .each(function(t) { - var r = c(this), - i = e.textFormatted(t), - o = r.height, - a = i ? r.width / i.length : void 0; - o && a && ((n.h = o), (n.w = a)); - }) - .text(''), - (e.tickTextCharSize = n), - n - ); - }), - (x.prototype.isVertical = function() { - return 'left' === this.orient || 'right' === this.orient; - }), - (x.prototype.tspanData = function(t, e, n) { - var r = this.params.tickMultiline - ? this.splitTickText(t, n) - : [].concat(this.textFormatted(t)); - return ( - this.params.tickMultiline && - this.params.tickMultilineMax > 0 && - (r = this.ellipsify(r, this.params.tickMultilineMax)), - r.map(function(t) { - return { index: e, splitted: t, length: r.length }; - }) - ); - }), - (x.prototype.splitTickText = function(t, e) { - var n, - r, - i, - o = this, - a = o.textFormatted(t), - s = o.params.tickWidth; - return '[object Array]' === - Object.prototype.toString.call(a) - ? a - : ((!s || s <= 0) && - (s = o.isVertical() - ? 95 - : o.params.isCategory - ? Math.ceil(e(1) - e(0)) - 12 - : 110), - (function t(e, a) { - r = void 0; - for (var u = 1; u < a.length; u++) - if ( - (' ' === a.charAt(u) && (r = u), - (n = a.substr(0, u + 1)), - (i = o.tickTextCharSize.w * n.length), - s < i) - ) - return t( - e.concat(a.substr(0, r || u)), - a.slice(r ? r + 1 : u) - ); - return e.concat(a); - })([], a + '')); - }), - (x.prototype.ellipsify = function(t, e) { - if (t.length <= e) return t; - for (var n = t.slice(0, e), r = 3, i = e - 1; i >= 0; i--) { - var o = n[i].length; - if ( - ((n[i] = n[i].substr(0, o - r).padEnd(o, '.')), - (r -= o) <= 0) - ) - break; - } - return n; - }), - (x.prototype.updateTickLength = function() { - this.tickLength = - Math.max(this.innerTickSize, 0) + this.tickPadding; - }), - (x.prototype.lineY2 = function(t) { - var e = - this.scale(t) + (this.tickCentered ? 0 : this.tickOffset); - return this.range[0] < e && e < this.range[1] - ? this.innerTickSize - : 0; - }), - (x.prototype.textY = function() { - var t = this.tickTextRotate; - return t - ? 11.5 - (t / 15) * 2.5 * (t > 0 ? 1 : -1) - : this.tickLength; - }), - (x.prototype.textTransform = function() { - var t = this.tickTextRotate; - return t ? 'rotate(' + t + ')' : ''; - }), - (x.prototype.textTextAnchor = function() { - var t = this.tickTextRotate; - return t ? (t > 0 ? 'start' : 'end') : 'middle'; - }), - (x.prototype.tspanDx = function() { - var t = this.tickTextRotate; - return t ? 8 * Math.sin(Math.PI * (t / 180)) : 0; - }), - (x.prototype.tspanDy = function(t, e) { - var n = this.tickTextCharSize.h; + if ( + (e && + e.params && + (e.params = (0, s.mapKeysToUnderscore)(e.params)), + 'DELETE' === t) + ) { + var r = e.url, + o = r, + a = '', + l = ['filters', 'timeframe', 'timezone']; + return ( + l.forEach(function(t) { + if (e[t]) { + var n = e[t]; + try { + n = JSON.parse(decodeURIComponent(e[t])); + } catch (r) { + n = e[t]; + } + Array.isArray(n) + ? (n = (0, s.mapKeysToUnderscore)({ vals: n }) + .vals) + : 'string' != typeof n && + (n = (0, s.mapKeysToUnderscore)(n)), + (a += + t + + '=' + + encodeURIComponent(JSON.stringify(n)) + + '&'); + } + }), + -1 === o.indexOf('?') && (o += '?'), + (o += a), + (this.config = i( + { + api_key: void 0, + params: {}, + method: t, + headers: { + Authorization: e.api_key || e.apiKey, + 'Content-type': 'application/json', + 'keen-sdk': 'javascript-' + u.version + } + }, + e, + n, + { url: o } + )), + this.send() + ); + } return ( - 0 === e && - (n = this.isVertical() - ? -( - (t.length - 1) * (this.tickTextCharSize.h / 2) - - 3 - ) - : '.71em'), - n + (this.config = i( + { + api_key: void 0, + params: {}, + method: t, + headers: { + Authorization: e.api_key || e.apiKey, + 'Content-type': 'application/json', + 'keen-sdk': 'javascript-' + u.version + } + }, + e, + n + )), + this.send() ); - }), - (x.prototype.generateAxis = function() { - var t = this, - e = t.d3, - n = t.params; - function r(i, o) { - var a; + }.bind(this) + ); + } + (c.prototype.auth = function(t) { + return ( + 'string' == typeof t && + ((this.config.api_key = 'string' == typeof t ? t : void 0), + this.headers({ Authorization: t })), + this + ); + }), + (c.prototype.headers = function(t) { + return ( + 'object' === (void 0 === t ? 'undefined' : r(t)) && + (0, o.default)( + t, + function(t, e) { + this.config.headers[e] = t; + }.bind(this) + ), + this + ); + }), + (c.prototype.timeout = function(t) { + return ( + (this.config.timeout = 'number' == typeof t ? t : 3e5), this + ); + }), + (c.prototype.send = function(t) { + var e = this; + if ( + this.config && + !this.config.api_key && + !this.config.apiKey + ) + throw new Error('Please provide a valid API key'); + t && + (this.config.params = + t && 'object' === (void 0 === t ? 'undefined' : r(t)) + ? (0, s.mapKeysToUnderscore)(t) + : {}); + var n = this.config.method; + 'DELETE' === n && (n = 'DEL'); + var i = this.httpHandlers[n], + o = (0, a.default)({}, this.config); + 'DELETE' !== this.config.method && + void 0 === o.params.analysis_type && + o.url.indexOf('/queries/') > -1 && + o.url.indexOf('/saved/') < 0 && + (o.params.analysis_type = o.url.split('/queries/').pop()); + var u = void 0; + 'undefined' != typeof AbortController && + (u = new AbortController()); + var l = void 0, + c = new Promise(function(t, e) { + var n = {}; return ( - i.each(function() { - var i, - s, - u, - l = (r.g = e.select(this)), - c = this.__chart__ || t.scale, - f = (this.__chart__ = t.copyScale()), - d = t.tickValues - ? t.tickValues - : t.generateTicks(f), - h = l.selectAll('.tick').data(d, f), - p = h - .enter() - .insert('g', '.domain') - .attr('class', 'tick') - .style('opacity', 1e-6), - g = h.exit().remove(), - v = h.merge(p); - n.isCategory - ? ((t.tickOffset = Math.ceil((f(1) - f(0)) / 2)), - (s = t.tickCentered ? 0 : t.tickOffset), - (u = t.tickCentered ? t.tickOffset : 0)) - : (t.tickOffset = s = 0), - t.updateRange(), - t.updateTickLength(), - t.updateTickTextCharSize(l.select('.tick')); - var m = v.select('line').merge(p.append('line')), - y = v.select('text').merge(p.append('text')), - b = v - .selectAll('text') - .selectAll('tspan') - .data(function(e, n) { - return t.tspanData(e, n, f); - }), - _ = b - .enter() - .append('tspan') - .merge(b) - .text(function(t) { - return t.splitted; - }); - b.exit().remove(); - var x = l.selectAll('.domain').data([0]), - w = x - .enter() - .append('path') - .merge(x) - .attr('class', 'domain'); - switch (t.orient) { - case 'bottom': - (i = t.axisX), - m - .attr('x1', s) - .attr('x2', s) - .attr('y2', function(e, n) { - return t.lineY2(e, n); - }), - y - .attr('x', 0) - .attr('y', function(e, n) { - return t.textY(e, n); - }) - .attr('transform', function(e, n) { - return t.textTransform(e, n); - }) - .style('text-anchor', function(e, n) { - return t.textTextAnchor(e, n); - }), - _.attr('x', 0) - .attr('dy', function(e, n) { - return t.tspanDy(e, n); - }) - .attr('dx', function(e, n) { - return t.tspanDx(e, n); - }), - w.attr( - 'd', - 'M' + - t.range[0] + - ',' + - t.outerTickSize + - 'V0H' + - t.range[1] + - 'V' + - t.outerTickSize - ); - break; - case 'top': - (i = t.axisX), - m - .attr('x1', s) - .attr('x2', s) - .attr('y2', function(e, n) { - return -1 * t.lineY2(e, n); - }), - y - .attr('x', 0) - .attr('y', function(e, r) { - return ( - -1 * t.textY(e, r) - - (n.isCategory ? 2 : t.tickLength - 2) - ); - }) - .attr('transform', function(e, n) { - return t.textTransform(e, n); - }) - .style('text-anchor', function(e, n) { - return t.textTextAnchor(e, n); - }), - _.attr('x', 0) - .attr('dy', function(e, n) { - return t.tspanDy(e, n); - }) - .attr('dx', function(e, n) { - return t.tspanDx(e, n); + u && (n.signal = u.signal), + (n.resolve = t), + (n.reject = e), + (l = i(o, n)) + ); + }).then(function(t) { + if ( + (Array.isArray(t.result) + ? e.config.params.interval + ? e.config.params.group_by + ? t.result.forEach(function(t) { + t.value.forEach(function(t) { + isNaN(Number(t.result)) || + (t.result = Number(t.result)); + }); + }) + : t.result.forEach(function(t) { + isNaN(Number(t.value)) || + (t.value = Number(t.value)); + }) + : t.result.forEach(function(t) { + isNaN(Number(t.result)) || + (t.result = Number(t.result)); + }) + : isNaN(Number(t.result)) || + (t.result = Number(t.result)), + e.config.resultParsers) + ) + if (Array.isArray(t.result)) + e.config.params.interval + ? e.config.params.group_by + ? t.result.forEach(function(t) { + t.value.forEach(function(t) { + var n = void 0; + e.config.resultParsers.forEach(function(e) { + n = e(n || t.result); + }), + (t.result = n); + }); + }) + : t.result.forEach(function(t) { + var n = void 0; + e.config.resultParsers.forEach(function(e) { + n = e(n || t.value); }), - w.attr( - 'd', - 'M' + - t.range[0] + - ',' + - -t.outerTickSize + - 'V0H' + - t.range[1] + - 'V' + - -t.outerTickSize - ); - break; - case 'left': - (i = t.axisY), - m - .attr('x2', -t.innerTickSize) - .attr('y1', u) - .attr('y2', u), - y - .attr('x', -t.tickLength) - .attr('y', t.tickOffset) - .style('text-anchor', 'end'), - _.attr('x', -t.tickLength).attr('dy', function( - e, - n - ) { - return t.tspanDy(e, n); - }), - w.attr( - 'd', - 'M' + - -t.outerTickSize + - ',' + - t.range[0] + - 'H0V' + - t.range[1] + - 'H' + - -t.outerTickSize - ); - break; - case 'right': - (i = t.axisY), - m - .attr('x2', t.innerTickSize) - .attr('y1', u) - .attr('y2', u), - y - .attr('x', t.tickLength) - .attr('y', t.tickOffset) - .style('text-anchor', 'start'), - _.attr('x', t.tickLength).attr('dy', function( - e, - n - ) { - return t.tspanDy(e, n); + (t.value = n); + }) + : t.result.forEach(function(t) { + var n = void 0; + e.config.resultParsers.forEach(function(e) { + n = e(n || t.result); }), - w.attr( - 'd', - 'M' + - t.outerTickSize + - ',' + - t.range[0] + - 'H0V' + - t.range[1] + - 'H' + - t.outerTickSize - ); - } - if (f.rangeBand) { - var S = f, - E = S.rangeBand() / 2; - c = f = function(t) { - return S(t) + E; - }; - } else c.rangeBand ? (c = f) : g.call(i, f, t.tickOffset); - p.call(i, c, t.tickOffset), - (a = (o ? v.transition(o) : v) - .style('opacity', 1) - .call(i, f, t.tickOffset)); + (t.result = n); + }); + else if ('object' === r(t.result)) + Object.keys(t.result).forEach(function(n) { + var r = void 0; + e.config.resultParsers.forEach(function(e) { + r = e(r || t.result[n]); + }), + (t.result[n] = r); + }); + else { + var n = void 0; + e.config.resultParsers.forEach(function(e) { + n = e(n || t.result); + }), + (t.result = n); + } + return o.params && + void 0 !== o.params.event_collection && + void 0 === t.query + ? (0, a.default)({ query: o.params }, t) + : t; + }); + return ( + (c.abort = function() { + if (u) return u.abort(); + l.emit('abort'); + }), + c + ); + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(t) { + return typeof t; + } + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t; + }; + e.validateAuthCredentials = function(t) { + if ('object' === (void 0 === t ? 'undefined' : r(t))) { + if (!t.projectId) + throw new Error('Please provide valid project ID'); + if (!t.masterKey && !t.readKey) + throw new Error('Please provide valid API key'); + return !0; + } + }; + }, + function(t, e, n) { + function r(t) { + if (t) + return (function(t) { + for (var e in r.prototype) t[e] = r.prototype[e]; + return t; + })(t); + } + (t.exports = r), + (r.prototype.on = r.prototype.addEventListener = function( + t, + e + ) { + return ( + (this._callbacks = this._callbacks || {}), + (this._callbacks['$' + t] = + this._callbacks['$' + t] || []).push(e), + this + ); + }), + (r.prototype.once = function(t, e) { + function n() { + this.off(t, n), e.apply(this, arguments); + } + return (n.fn = e), this.on(t, n), this; + }), + (r.prototype.off = r.prototype.removeListener = r.prototype.removeAllListeners = r.prototype.removeEventListener = function( + t, + e + ) { + if ( + ((this._callbacks = this._callbacks || {}), + 0 == arguments.length) + ) + return (this._callbacks = {}), this; + var n, + r = this._callbacks['$' + t]; + if (!r) return this; + if (1 == arguments.length) + return delete this._callbacks['$' + t], this; + for (var i = 0; i < r.length; i++) + if ((n = r[i]) === e || n.fn === e) { + r.splice(i, 1); + break; + } + return this; + }), + (r.prototype.emit = function(t) { + this._callbacks = this._callbacks || {}; + var e = [].slice.call(arguments, 1), + n = this._callbacks['$' + t]; + if (n) + for (var r = 0, i = (n = n.slice(0)).length; r < i; ++r) + n[r].apply(this, e); + return this; + }), + (r.prototype.listeners = function(t) { + return ( + (this._callbacks = this._callbacks || {}), + this._callbacks['$' + t] || [] + ); + }), + (r.prototype.hasListeners = function(t) { + return !!this.listeners(t).length; + }); + }, + function(t, e) { + t.exports = function(t) { + for ( + var e, + n = {}, + r = /\+/g, + i = /([^&=]+)=?([^&]*)/g, + o = function(t) { + return decodeURIComponent(t.replace(r, ' ')); + }, + a = t.split('?')[1]; + (e = i.exec(a)); + + ) + n[o(e[1])] = o(e[2]); + return n; + }; + }, + function(t, e, n) { + (function(e) { + (function(e) { + var r, + i = e.Keen || void 0, + o = n(0), + a = n(2), + s = n(17), + u = n(8), + l = n(16); + function c(t) { + if (this instanceof c == 0) return new c(t); + this.configure(t), + c.debug && this.on('error', c.log), + this.emit('ready'), + c.emit('client', this); + } + function f(t) { + return void 0 !== t; + } + i && void 0 === i.resources && (c.legacyVersion = i), + l(c), + l(c.prototype), + a(c, { + debug: !1, + enabled: !0, + loaded: !1, + version: '__VERSION__' + }), + (c.helpers = c.helpers || {}), + (c.resources = c.resources || {}), + a(c.resources, { + base: '{protocol}://{host}', + version: '{protocol}://{host}/3.0', + projects: '{protocol}://{host}/3.0/projects', + projectId: '{protocol}://{host}/3.0/projects/{projectId}', + events: + '{protocol}://{host}/3.0/projects/{projectId}/events', + queries: + '{protocol}://{host}/3.0/projects/{projectId}/queries', + datasets: + '{protocol}://{host}/3.0/projects/{projectId}/datasets' + }), + (c.utils = c.utils || {}), + a(c.utils, { + each: o, + extend: a, + parseParams: s, + serialize: u + }), + (c.extendLibrary = function(t, e) { + var n = i || e; + return ( + f(n) && + f(n.resources) && + (o(n, function(e, n) { + 'object' == typeof e + ? ((t[n] = t[n] || {}), a(t[n], e)) + : (t[n] = t[n] || e); + }), + a(t.prototype, n.prototype)), + t + ); + }), + (c.log = function(t) { + c.debug && + 'object' == typeof console && + console.log('[Keen]', t); + }), + (c.noConflict = function() { + return ( + void 0 !== e.Keen && (e.Keen = c.legacyVersion || i), c + ); + }), + (c.ready = function(t) { + c.loaded ? t() : c.once('ready', t); + }), + (c.prototype.configure = function(t) { + var e = t || {}; + return ( + (this.config = this.config || { + projectId: void 0, + writeKey: void 0, + host: 'api.keen.io', + protocol: 'https', + requestType: 'jsonp', + resources: a({}, c.resources) + }), + 'undefined' != typeof window && + window.navigator && + window.navigator.userAgent && + window.navigator.userAgent.indexOf('MSIE') > -1 && + (e.protocol = document.location.protocol.replace( + ':', + '' + )), + e.host && e.host.replace(/.*?:\/\//g, ''), + a(this.config, e), + this + ); + }), + (c.prototype.masterKey = function(t) { + return arguments.length + ? ((this.config.masterKey = t ? String(t) : null), this) + : this.config.masterKey; + }), + (c.prototype.projectId = function(t) { + return arguments.length + ? ((this.config.projectId = t ? String(t) : null), this) + : this.config.projectId; + }), + (c.prototype.resources = function(t) { + if (!arguments.length) return this.config.resources; + var e = this; + return ( + 'object' == typeof t && + o(t, function(t, n) { + e.config.resources[n] = t || null; + }), + e + ); + }), + (c.prototype.url = function(t) { + var e, + n = Array.prototype.slice.call(arguments, 1), + r = this.config.resources.base || '{protocol}://{host}'; + return ( + (e = + t && 'string' == typeof t + ? this.config.resources[t] + ? this.config.resources[t] + : r + t + : r), + o(this.config, function(t, n) { + 'object' != typeof t && + (e = e.replace('{' + n + '}', t)); }), - a + o(n, function(t, n) { + 'string' == typeof t + ? (e += '/' + t) + : 'object' == typeof t && + ((e += '?'), + o(t, function(t, n) { + e += n + '=' + t + '&'; + }), + (e = e.slice(0, -1))); + }), + e ); - } - return ( - (r.scale = function(e) { - return arguments.length ? ((t.scale = e), r) : t.scale; - }), - (r.orient = function(e) { - return arguments.length - ? ((t.orient = - e in { top: 1, right: 1, bottom: 1, left: 1 } - ? e + '' - : 'bottom'), - r) - : t.orient; - }), - (r.tickFormat = function(e) { - return arguments.length - ? ((t.tickFormat = e), r) - : t.tickFormat; - }), - (r.tickCentered = function(e) { - return arguments.length - ? ((t.tickCentered = e), r) - : t.tickCentered; - }), - (r.tickOffset = function() { - return t.tickOffset; - }), - (r.tickInterval = function() { - var e; - return (e = n.isCategory - ? 2 * t.tickOffset - : (r.g - .select('path.domain') - .node() - .getTotalLength() - - 2 * t.outerTickSize) / - r.g.selectAll('line').size()) == - 1 / 0 - ? 0 - : e; - }), - (r.ticks = function() { - return arguments.length - ? ((t.tickArguments = arguments), r) - : t.tickArguments; - }), - (r.tickCulling = function(e) { - return arguments.length - ? ((t.tickCulling = e), r) - : t.tickCulling; - }), - (r.tickValues = function(e) { - if ('function' == typeof e) - t.tickValues = function() { - return e(t.scale.domain()); - }; - else { - if (!arguments.length) return t.tickValues; - t.tickValues = e; + }), + (r = function() { + (c.loaded = !0), c.emit('ready'); + }), + c.loaded || 'undefined' == typeof document + ? r() + : (null == document.readyState && + document.addEventListener && + (document.addEventListener( + 'DOMContentLoaded', + function t() { + document.removeEventListener( + 'DOMContentLoaded', + t, + !1 + ), + (document.readyState = 'complete'); + }, + !1 + ), + (document.readyState = 'loading')), + (function t(e) { + /in/.test(document.readyState) + ? setTimeout(function() { + t(e); + }, 9) + : e(); + })(r)), + (t.exports = c); + }.call( + this, + 'undefined' != typeof window + ? window + : void 0 !== e + ? e + : 'undefined' != typeof self + ? self + : {} + )); + }.call(this, n(1))); + }, + function(t, e) { + var n, + r, + i = (t.exports = {}); + function o() { + throw new Error('setTimeout has not been defined'); + } + function a() { + throw new Error('clearTimeout has not been defined'); + } + function s(t) { + if (n === setTimeout) return setTimeout(t, 0); + if ((n === o || !n) && setTimeout) + return (n = setTimeout), setTimeout(t, 0); + try { + return n(t, 0); + } catch (e) { + try { + return n.call(null, t, 0); + } catch (e) { + return n.call(this, t, 0); + } + } + } + !(function() { + try { + n = 'function' == typeof setTimeout ? setTimeout : o; + } catch (t) { + n = o; + } + try { + r = 'function' == typeof clearTimeout ? clearTimeout : a; + } catch (t) { + r = a; + } + })(); + var u, + l = [], + c = !1, + f = -1; + function d() { + c && + u && + ((c = !1), + u.length ? (l = u.concat(l)) : (f = -1), + l.length && h()); + } + function h() { + if (!c) { + var t = s(d); + c = !0; + for (var e = l.length; e; ) { + for (u = l, l = []; ++f < e; ) u && u[f].run(); + (f = -1), (e = l.length); + } + (u = null), + (c = !1), + (function(t) { + if (r === clearTimeout) return clearTimeout(t); + if ((r === a || !r) && clearTimeout) + return (r = clearTimeout), clearTimeout(t); + try { + r(t); + } catch (e) { + try { + return r.call(null, t); + } catch (e) { + return r.call(this, t); } - return r; + } + })(t); + } + } + function p(t, e) { + (this.fun = t), (this.array = e); + } + function g() {} + (i.nextTick = function(t) { + var e = new Array(arguments.length - 1); + if (arguments.length > 1) + for (var n = 1; n < arguments.length; n++) + e[n - 1] = arguments[n]; + l.push(new p(t, e)), 1 !== l.length || c || s(h); + }), + (p.prototype.run = function() { + this.fun.apply(null, this.array); + }), + (i.title = 'browser'), + (i.browser = !0), + (i.env = {}), + (i.argv = []), + (i.version = ''), + (i.versions = {}), + (i.on = g), + (i.addListener = g), + (i.once = g), + (i.off = g), + (i.removeListener = g), + (i.removeAllListeners = g), + (i.emit = g), + (i.prependListener = g), + (i.prependOnceListener = g), + (i.listeners = function(t) { + return []; + }), + (i.binding = function(t) { + throw new Error('process.binding is not supported'); + }), + (i.cwd = function() { + return '/'; + }), + (i.chdir = function(t) { + throw new Error('process.chdir is not supported'); + }), + (i.umask = function() { + return 0; + }); + }, + function(t, e, n) { + (function(t, e) { + !(function(t, n) { + 'use strict'; + if (!t.setImmediate) { + var r, + i, + o, + a, + s, + u = 1, + l = {}, + c = !1, + f = t.document, + d = Object.getPrototypeOf && Object.getPrototypeOf(t); + (d = d && d.setTimeout ? d : t), + '[object process]' === {}.toString.call(t.process) + ? (r = function(t) { + e.nextTick(function() { + p(t); + }); + }) + : (function() { + if (t.postMessage && !t.importScripts) { + var e = !0, + n = t.onmessage; + return ( + (t.onmessage = function() { + e = !1; + }), + t.postMessage('', '*'), + (t.onmessage = n), + e + ); + } + })() + ? ((a = 'setImmediate$' + Math.random() + '$'), + (s = function(e) { + e.source === t && + 'string' == typeof e.data && + 0 === e.data.indexOf(a) && + p(+e.data.slice(a.length)); + }), + t.addEventListener + ? t.addEventListener('message', s, !1) + : t.attachEvent('onmessage', s), + (r = function(e) { + t.postMessage(a + e, '*'); + })) + : t.MessageChannel + ? (((o = new MessageChannel()).port1.onmessage = function( + t + ) { + p(t.data); + }), + (r = function(t) { + o.port2.postMessage(t); + })) + : f && 'onreadystatechange' in f.createElement('script') + ? ((i = f.documentElement), + (r = function(t) { + var e = f.createElement('script'); + (e.onreadystatechange = function() { + p(t), + (e.onreadystatechange = null), + i.removeChild(e), + (e = null); + }), + i.appendChild(e); + })) + : (r = function(t) { + setTimeout(p, 0, t); + }), + (d.setImmediate = function(t) { + 'function' != typeof t && (t = new Function('' + t)); + for ( + var e = new Array(arguments.length - 1), n = 0; + n < e.length; + n++ + ) + e[n] = arguments[n + 1]; + var i = { callback: t, args: e }; + return (l[u] = i), r(u), u++; }), - r - ); - }); - var w = { - target: 'c3-target', - chart: 'c3-chart', - chartLine: 'c3-chart-line', - chartLines: 'c3-chart-lines', - chartBar: 'c3-chart-bar', - chartBars: 'c3-chart-bars', - chartText: 'c3-chart-text', - chartTexts: 'c3-chart-texts', - chartArc: 'c3-chart-arc', - chartArcs: 'c3-chart-arcs', - chartArcsTitle: 'c3-chart-arcs-title', - chartArcsBackground: 'c3-chart-arcs-background', - chartArcsGaugeUnit: 'c3-chart-arcs-gauge-unit', - chartArcsGaugeMax: 'c3-chart-arcs-gauge-max', - chartArcsGaugeMin: 'c3-chart-arcs-gauge-min', - selectedCircle: 'c3-selected-circle', - selectedCircles: 'c3-selected-circles', - eventRect: 'c3-event-rect', - eventRects: 'c3-event-rects', - eventRectsSingle: 'c3-event-rects-single', - eventRectsMultiple: 'c3-event-rects-multiple', - zoomRect: 'c3-zoom-rect', - brush: 'c3-brush', - dragZoom: 'c3-drag-zoom', - focused: 'c3-focused', - defocused: 'c3-defocused', - region: 'c3-region', - regions: 'c3-regions', - title: 'c3-title', - tooltipContainer: 'c3-tooltip-container', - tooltip: 'c3-tooltip', - tooltipName: 'c3-tooltip-name', - shape: 'c3-shape', - shapes: 'c3-shapes', - line: 'c3-line', - lines: 'c3-lines', - bar: 'c3-bar', - bars: 'c3-bars', - circle: 'c3-circle', - circles: 'c3-circles', - arc: 'c3-arc', - arcLabelLine: 'c3-arc-label-line', - arcs: 'c3-arcs', - area: 'c3-area', - areas: 'c3-areas', - empty: 'c3-empty', - text: 'c3-text', - texts: 'c3-texts', - gaugeValue: 'c3-gauge-value', - grid: 'c3-grid', - gridLines: 'c3-grid-lines', - xgrid: 'c3-xgrid', - xgrids: 'c3-xgrids', - xgridLine: 'c3-xgrid-line', - xgridLines: 'c3-xgrid-lines', - xgridFocus: 'c3-xgrid-focus', - ygrid: 'c3-ygrid', - ygrids: 'c3-ygrids', - ygridLine: 'c3-ygrid-line', - ygridLines: 'c3-ygrid-lines', - colorScale: 'c3-colorscale', - stanfordElements: 'c3-stanford-elements', - stanfordLine: 'c3-stanford-line', - stanfordLines: 'c3-stanford-lines', - stanfordRegion: 'c3-stanford-region', - stanfordRegions: 'c3-stanford-regions', - stanfordText: 'c3-stanford-text', - stanfordTexts: 'c3-stanford-texts', - axis: 'c3-axis', - axisX: 'c3-axis-x', - axisXLabel: 'c3-axis-x-label', - axisY: 'c3-axis-y', - axisYLabel: 'c3-axis-y-label', - axisY2: 'c3-axis-y2', - axisY2Label: 'c3-axis-y2-label', - legendBackground: 'c3-legend-background', - legendItem: 'c3-legend-item', - legendItemEvent: 'c3-legend-item-event', - legendItemTile: 'c3-legend-item-tile', - legendItemHidden: 'c3-legend-item-hidden', - legendItemFocused: 'c3-legend-item-focused', - dragarea: 'c3-dragarea', - EXPANDED: '_expanded_', - SELECTED: '_selected_', - INCLUDED: '_included_' - }, - S = function t(e) { - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, t), - (this.owner = e), - (this.d3 = e.d3), - (this.internal = x); - }; - (S.prototype.init = function() { - var t = this.owner, - e = t.config, - n = t.main; - (t.axes.x = n - .append('g') - .attr('class', w.axis + ' ' + w.axisX) - .attr('clip-path', e.axis_x_inner ? '' : t.clipPathForXAxis) - .attr('transform', t.getTranslate('x')) - .style('visibility', e.axis_x_show ? 'visible' : 'hidden')), - t.axes.x - .append('text') - .attr('class', w.axisXLabel) - .attr('transform', e.axis_rotated ? 'rotate(-90)' : '') - .style( - 'text-anchor', - this.textAnchorForXAxisLabel.bind(this) - ), - (t.axes.y = n - .append('g') - .attr('class', w.axis + ' ' + w.axisY) - .attr( - 'clip-path', - e.axis_y_inner ? '' : t.clipPathForYAxis - ) - .attr('transform', t.getTranslate('y')) - .style( - 'visibility', - e.axis_y_show ? 'visible' : 'hidden' - )), - t.axes.y - .append('text') - .attr('class', w.axisYLabel) - .attr('transform', e.axis_rotated ? '' : 'rotate(-90)') - .style( - 'text-anchor', - this.textAnchorForYAxisLabel.bind(this) - ), - (t.axes.y2 = n - .append('g') - .attr('class', w.axis + ' ' + w.axisY2) - .attr('transform', t.getTranslate('y2')) - .style( - 'visibility', - e.axis_y2_show ? 'visible' : 'hidden' - )), - t.axes.y2 - .append('text') - .attr('class', w.axisY2Label) - .attr('transform', e.axis_rotated ? '' : 'rotate(-90)') - .style( - 'text-anchor', - this.textAnchorForY2AxisLabel.bind(this) - ); + (d.clearImmediate = h); + } + function h(t) { + delete l[t]; + } + function p(t) { + if (c) setTimeout(p, 0, t); + else { + var e = l[t]; + if (e) { + c = !0; + try { + !(function(t) { + var e = t.callback, + r = t.args; + switch (r.length) { + case 0: + e(); + break; + case 1: + e(r[0]); + break; + case 2: + e(r[0], r[1]); + break; + case 3: + e(r[0], r[1], r[2]); + break; + default: + e.apply(n, r); + } + })(e); + } finally { + h(t), (c = !1); + } + } + } + } + })( + 'undefined' == typeof self ? (void 0 === t ? this : t) : self + ); + }.call(this, n(1), n(19))); + }, + function(t, e, n) { + (function(t) { + var r = + (void 0 !== t && t) || + ('undefined' != typeof self && self) || + window, + i = Function.prototype.apply; + function o(t, e) { + (this._id = t), (this._clearFn = e); + } + (e.setTimeout = function() { + return new o(i.call(setTimeout, r, arguments), clearTimeout); }), - (S.prototype.getXAxis = function(t, e, n, r, i, o, a) { - var s = this.owner, - u = s.config, - l = { - isCategory: s.isCategorized(), - withOuterTick: i, - tickMultiline: u.axis_x_tick_multiline, - tickMultilineMax: u.axis_x_tick_multiline - ? Number(u.axis_x_tick_multilineMax) - : 0, - tickWidth: u.axis_x_tick_width, - tickTextRotate: a ? 0 : u.axis_x_tick_rotate, - withoutTransition: o - }, - c = new this.internal(this, l).axis.scale(t).orient(e); - return ( - s.isTimeSeries() && - r && - 'function' != typeof r && - (r = r.map(function(t) { - return s.parseDate(t); - })), - c.tickFormat(n).tickValues(r), - s.isCategorized() && - (c.tickCentered(u.axis_x_tick_centered), - h(u.axis_x_tick_culling) && - (u.axis_x_tick_culling = !1)), - c - ); - }), - (S.prototype.updateXAxisTickValues = function(t, e) { - var n, - r = this.owner, - i = r.config; - return ( - (i.axis_x_tick_fit || i.axis_x_tick_count) && - (n = this.generateTickValues( - r.mapTargetsToUniqueXs(t), - i.axis_x_tick_count, - r.isTimeSeries() - )), - e - ? e.tickValues(n) - : (r.xAxis.tickValues(n), r.subXAxis.tickValues(n)), - n - ); - }), - (S.prototype.getYAxis = function(t, e, n, r, i, o, a) { - var s = this.owner, - u = s.config, - l = u['axis_'.concat(t, '_tick_format')]; - !l && - s.isAxisNormalized(t) && - (l = function(t) { - return ''.concat(t, '%'); - }); - var c = new this.internal(this, { - withOuterTick: i, - withoutTransition: o, - tickTextRotate: a ? 0 : u.axis_y_tick_rotate - }).axis - .scale(e) - .orient(n); - return ( - l && c.tickFormat(l), - s.isTimeSeriesY() - ? c.ticks( - u.axis_y_tick_time_type, - u.axis_y_tick_time_interval - ) - : c.tickValues(r), - c + (e.setInterval = function() { + return new o( + i.call(setInterval, r, arguments), + clearInterval ); }), - (S.prototype.getId = function(t) { - var e = this.owner.config; - return t in e.data_axes ? e.data_axes[t] : 'y'; - }), - (S.prototype.getXAxisTickFormat = function() { - var t = this.owner, - e = t.config, - n = t.isTimeSeries() - ? t.defaultAxisTimeFormat - : t.isCategorized() - ? t.categoryName - : function(t) { - return t; - }; - return ( - e.axis_x_tick_format && - (p(e.axis_x_tick_format) - ? (n = e.axis_x_tick_format) - : t.isTimeSeries() && - (n = function(n) { - return n - ? t.axisTimeFormat(e.axis_x_tick_format)(n) - : ''; - })), - p(n) - ? function(e) { - return n.call(t, e); - } - : n - ); + (e.clearTimeout = e.clearInterval = function(t) { + t && t.close(); }), - (S.prototype.getTickValues = function(t, e) { - return t || (e ? e.tickValues() : void 0); + (o.prototype.unref = o.prototype.ref = function() {}), + (o.prototype.close = function() { + this._clearFn.call(r, this._id); }), - (S.prototype.getXAxisTickValues = function() { - return this.getTickValues( - this.owner.config.axis_x_tick_values, - this.owner.xAxis - ); + (e.enroll = function(t, e) { + clearTimeout(t._idleTimeoutId), (t._idleTimeout = e); }), - (S.prototype.getYAxisTickValues = function() { - return this.getTickValues( - this.owner.config.axis_y_tick_values, - this.owner.yAxis - ); + (e.unenroll = function(t) { + clearTimeout(t._idleTimeoutId), (t._idleTimeout = -1); }), - (S.prototype.getY2AxisTickValues = function() { - return this.getTickValues( - this.owner.config.axis_y2_tick_values, - this.owner.y2Axis - ); + (e._unrefActive = e.active = function(t) { + clearTimeout(t._idleTimeoutId); + var e = t._idleTimeout; + e >= 0 && + (t._idleTimeoutId = setTimeout(function() { + t._onTimeout && t._onTimeout(); + }, e)); }), - (S.prototype.getLabelOptionByAxisId = function(t) { - var e, - n = this.owner.config; + n(20), + (e.setImmediate = + ('undefined' != typeof self && self.setImmediate) || + (void 0 !== t && t.setImmediate) || + (this && this.setImmediate)), + (e.clearImmediate = + ('undefined' != typeof self && self.clearImmediate) || + (void 0 !== t && t.clearImmediate) || + (this && this.clearImmediate)); + }.call(this, n(1))); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.KeenAnalysis = void 0); + var r = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }, + i = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(t) { + return typeof t; + } + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t; + }; + n(3); + var o = f(n(18)), + a = f(n(0)), + s = f(n(2)), + u = n(15), + l = n(7), + c = f(n(6)); + function f(t) { + return t && t.__esModule ? t : { default: t }; + } + function d(t, e) { + var n = {}; + for (var r in t) + e.indexOf(r) >= 0 || + (Object.prototype.hasOwnProperty.call(t, r) && + (n[r] = t[r])); + return n; + } + function h(t) { + var e = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : {}, + n = + arguments.length > 2 && void 0 !== arguments[2] + ? arguments[2] + : {}; + (this.analysis = t), + (this.params = {}), + this.set(e), + (this.options = r({}, n)); + } + (o.default.prototype.readKey = function(t) { + return arguments.length + ? ((this.config.readKey = t ? String(t) : null), this) + : this.config.readKey; + }), + (o.default.prototype.query = function(t) { + var e = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : void 0, + n = + arguments.length > 2 && void 0 !== arguments[2] + ? arguments[2] + : {}; + (0, u.validateAuthCredentials)(this.config); + var o = { + a: (0, l.mapKeysToUnderscore)(t), + b: (0, l.mapKeysToUnderscore)(e) + }, + a = o.a, + c = o.b; + if ('object' === (void 0 === t ? 'undefined' : i(t)) && !e) { + var f = o.a, + h = f.analysis_type, + p = f.cache, + g = d(f, ['analysis_type', 'cache']); + (a = h), (c = g); + var m = this.config.cache; + void 0 !== p && (m = p), (n.cache = m); + } + if ( + ((n.resultParsers = this.config.resultParsers), + void 0 === n.cache && + this.config.cache && + (n.cache = r({}, this.config.cache)), + 'object' === (void 0 === c ? 'undefined' : i(c)) && + (this.config.includeMetadata || + this.config.include_metadata) && + (c.includeMetadata = !0), + a && c && 'string' == typeof c) + ) return ( - 'y' === t - ? (e = n.axis_y_label) - : 'y2' === t - ? (e = n.axis_y2_label) - : 'x' === t && (e = n.axis_x_label), - e - ); - }), - (S.prototype.getLabelText = function(t) { - var e = this.getLabelOptionByAxisId(t); - return v(e) ? e : e ? e.text : null; - }), - (S.prototype.setLabelText = function(t, e) { - var n = this.owner.config, - r = this.getLabelOptionByAxisId(t); - v(r) - ? 'y' === t - ? (n.axis_y_label = e) - : 'y2' === t - ? (n.axis_y2_label = e) - : 'x' === t && (n.axis_x_label = e) - : r && (r.text = e); - }), - (S.prototype.getLabelPosition = function(e, n) { - var r = this.getLabelOptionByAxisId(e), - i = r && 'object' === t(r) && r.position ? r.position : n; - return { - isInner: i.indexOf('inner') >= 0, - isOuter: i.indexOf('outer') >= 0, - isLeft: i.indexOf('left') >= 0, - isCenter: i.indexOf('center') >= 0, - isRight: i.indexOf('right') >= 0, - isTop: i.indexOf('top') >= 0, - isMiddle: i.indexOf('middle') >= 0, - isBottom: i.indexOf('bottom') >= 0 - }; - }), - (S.prototype.getXAxisLabelPosition = function() { - return this.getLabelPosition( - 'x', - this.owner.config.axis_rotated - ? 'inner-top' - : 'inner-right' - ); - }), - (S.prototype.getYAxisLabelPosition = function() { - return this.getLabelPosition( - 'y', - this.owner.config.axis_rotated - ? 'inner-right' - : 'inner-top' - ); - }), - (S.prototype.getY2AxisLabelPosition = function() { - return this.getLabelPosition( - 'y2', - this.owner.config.axis_rotated - ? 'inner-right' - : 'inner-top' - ); - }), - (S.prototype.getLabelPositionById = function(t) { - return 'y2' === t - ? this.getY2AxisLabelPosition() - : 'y' === t - ? this.getYAxisLabelPosition() - : this.getXAxisLabelPosition(); - }), - (S.prototype.textForXAxisLabel = function() { - return this.getLabelText('x'); - }), - (S.prototype.textForYAxisLabel = function() { - return this.getLabelText('y'); - }), - (S.prototype.textForY2AxisLabel = function() { - return this.getLabelText('y2'); - }), - (S.prototype.xForAxisLabel = function(t, e) { - var n = this.owner; - return t - ? e.isLeft - ? 0 - : e.isCenter - ? n.width / 2 - : n.width - : e.isBottom - ? -n.height - : e.isMiddle - ? -n.height / 2 - : 0; - }), - (S.prototype.dxForAxisLabel = function(t, e) { - return t - ? e.isLeft - ? '0.5em' - : e.isRight - ? '-0.5em' - : '0' - : e.isTop - ? '-0.5em' - : e.isBottom - ? '0.5em' - : '0'; - }), - (S.prototype.textAnchorForAxisLabel = function(t, e) { - return t - ? e.isLeft - ? 'start' - : e.isCenter - ? 'middle' - : 'end' - : e.isBottom - ? 'start' - : e.isMiddle - ? 'middle' - : 'end'; - }), - (S.prototype.xForXAxisLabel = function() { - return this.xForAxisLabel( - !this.owner.config.axis_rotated, - this.getXAxisLabelPosition() - ); - }), - (S.prototype.xForYAxisLabel = function() { - return this.xForAxisLabel( - this.owner.config.axis_rotated, - this.getYAxisLabelPosition() - ); - }), - (S.prototype.xForY2AxisLabel = function() { - return this.xForAxisLabel( - this.owner.config.axis_rotated, - this.getY2AxisLabelPosition() - ); - }), - (S.prototype.dxForXAxisLabel = function() { - return this.dxForAxisLabel( - !this.owner.config.axis_rotated, - this.getXAxisLabelPosition() - ); - }), - (S.prototype.dxForYAxisLabel = function() { - return this.dxForAxisLabel( - this.owner.config.axis_rotated, - this.getYAxisLabelPosition() - ); - }), - (S.prototype.dxForY2AxisLabel = function() { - return this.dxForAxisLabel( - this.owner.config.axis_rotated, - this.getY2AxisLabelPosition() - ); - }), - (S.prototype.dyForXAxisLabel = function() { - var t = this.owner, - e = t.config, - n = this.getXAxisLabelPosition(); - return e.axis_rotated - ? n.isInner - ? '1.2em' - : -25 - - (t.config.axis_x_inner - ? 0 - : this.getMaxTickWidth('x')) - : n.isInner - ? '-0.5em' - : t.getHorizontalAxisHeight('x') - 10; - }), - (S.prototype.dyForYAxisLabel = function() { - var t = this.owner, - e = this.getYAxisLabelPosition(); - return t.config.axis_rotated - ? e.isInner - ? '-0.5em' - : '3em' - : e.isInner - ? '1.2em' - : -10 - - (t.config.axis_y_inner - ? 0 - : this.getMaxTickWidth('y') + 10); - }), - (S.prototype.dyForY2AxisLabel = function() { - var t = this.owner, - e = this.getY2AxisLabelPosition(); - return t.config.axis_rotated - ? e.isInner - ? '1.2em' - : '-2.2em' - : e.isInner - ? '-0.5em' - : 15 + - (t.config.axis_y2_inner - ? 0 - : this.getMaxTickWidth('y2') + 15); - }), - (S.prototype.textAnchorForXAxisLabel = function() { - var t = this.owner; - return this.textAnchorForAxisLabel( - !t.config.axis_rotated, - this.getXAxisLabelPosition() + c.indexOf('/result') < 0 && (c += '/result'), + this.get( + { + url: this.url('https://github.com/queries',%20a,%20c), + api_key: this.config.readKey || this.config.masterKey + }, + n + ) ); - }), - (S.prototype.textAnchorForYAxisLabel = function() { - var t = this.owner; - return this.textAnchorForAxisLabel( - t.config.axis_rotated, - this.getYAxisLabelPosition() + if (c && c.saved_query_name) { + var v = + c.saved_query_name.indexOf('/result') > -1 + ? c.saved_query_name + : c.saved_query_name + '/result'; + return this.get( + { + url: this.url('https://github.com/queries',%20'saved',%20v), + api_key: this.config.readKey || this.config.masterKey + }, + n ); - }), - (S.prototype.textAnchorForY2AxisLabel = function() { - var t = this.owner; - return this.textAnchorForAxisLabel( - t.config.axis_rotated, - this.getY2AxisLabelPosition() + } + if ( + 'dataset' === a && + 'object' === (void 0 === c ? 'undefined' : i(c)) + ) + return this.get( + { + url: this.url('https://github.com/datasets',%20c.name,%20'results'), + api_key: this.config.readKey || this.config.masterKey, + params: c + }, + n ); - }), - (S.prototype.getMaxTickWidth = function(t, e) { - var n, - r, - i, - o, - a = this.owner, - s = 0; - return ( - (e && a.currentMaxTickWidths[t]) || - (a.svg && - ((n = a.filterTargetsToShow(a.data.targets)), - 'y' === t - ? ((r = a.y.copy().domain(a.getYDomain(n, 'y'))), - (i = this.getYAxis( - t, - r, - a.yOrient, - a.yAxisTickValues, - !1, - !0, - !0 - ))) - : 'y2' === t - ? ((r = a.y2.copy().domain(a.getYDomain(n, 'y2'))), - (i = this.getYAxis( - t, - r, - a.y2Orient, - a.y2AxisTickValues, - !1, - !0, - !0 - ))) - : ((r = a.x.copy().domain(a.getXDomain(n))), - (i = this.getXAxis( - r, - a.xOrient, - a.xAxisTickFormat, - a.xAxisTickValues, - !1, - !0, - !0 - )), - this.updateXAxisTickValues(n, i)), - (o = a.d3 - .select('body') - .append('div') - .classed('c3', !0)) - .append('svg') - .style('visibility', 'hidden') - .style('position', 'fixed') - .style('top', 0) - .style('left', 0) - .append('g') - .call(i) - .each(function() { - a.d3 - .select(this) - .selectAll('text') - .each(function() { - var t = c(this); - s < t.width && (s = t.width); - }), - o.remove(); - })), - (a.currentMaxTickWidths[t] = - s <= 0 ? a.currentMaxTickWidths[t] : s)), - a.currentMaxTickWidths[t] + if (c && c.dataset_name) + return this.get( + { + url: this.url('https://github.com/datasets',%20c.dataset_name,%20'results'), + api_key: this.config.readKey || this.config.masterKey, + params: c + }, + n ); - }), - (S.prototype.updateLabels = function(t) { - var e = this.owner, - n = e.main.select('.' + w.axisX + ' .' + w.axisXLabel), - r = e.main.select('.' + w.axisY + ' .' + w.axisYLabel), - i = e.main.select('.' + w.axisY2 + ' .' + w.axisY2Label); - (t ? n.transition() : n) - .attr('x', this.xForXAxisLabel.bind(this)) - .attr('dx', this.dxForXAxisLabel.bind(this)) - .attr('dy', this.dyForXAxisLabel.bind(this)) - .text(this.textForXAxisLabel.bind(this)), - (t ? r.transition() : r) - .attr('x', this.xForYAxisLabel.bind(this)) - .attr('dx', this.dxForYAxisLabel.bind(this)) - .attr('dy', this.dyForYAxisLabel.bind(this)) - .text(this.textForYAxisLabel.bind(this)), - (t ? i.transition() : i) - .attr('x', this.xForY2AxisLabel.bind(this)) - .attr('dx', this.dxForY2AxisLabel.bind(this)) - .attr('dy', this.dyForY2AxisLabel.bind(this)) - .text(this.textForY2AxisLabel.bind(this)); - }), - (S.prototype.getPadding = function(t, e, n, r) { - var i = 'number' == typeof t ? t : t[e]; - return y(i) - ? 'ratio' === t.unit - ? t[e] * r - : this.convertPixelsToAxisPadding(i, r) - : n; - }), - (S.prototype.convertPixelsToAxisPadding = function(t, e) { - var n = this.owner; + if ( + a && + c && + 'object' === (void 0 === c ? 'undefined' : i(c)) + ) { + var y = (0, s.default)({ analysis_type: a }, c); return ( - e * (t / (n.config.axis_rotated ? n.width : n.height)) + y.timezone || + (y.timezone = -60 * new Date().getTimezoneOffset()), + this.post( + { + url: this.url('https://github.com/queries',%20a), + api_key: this.config.readKey || this.config.masterKey, + params: y + }, + n + ) ); - }), - (S.prototype.generateTickValues = function(t, e, n) { - var r, - i, - o, - a, - s, - u, - l, - c = t; - if (e) - if (1 === (r = p(e) ? e() : e)) c = [t[0]]; - else if (2 === r) c = [t[0], t[t.length - 1]]; - else if (r > 2) { - for ( - a = r - 2, - i = t[0], - s = ((o = t[t.length - 1]) - i) / (a + 1), - c = [i], - u = 0; - u < a; - u++ - ) - (l = +i + s * (u + 1)), c.push(n ? new Date(l) : l); - c.push(o); - } - return ( - n || - (c = c.sort(function(t, e) { - return t - e; + } + return a && 'string' == typeof a && !c + ? Promise.reject({ + error_code: 'SDKError', + message: '.query() called with incorrect arguments' + }) + : void 0; + }), + (o.default.Query = h), + (o.default.prototype.run = function(t, e) { + var n = this, + r = e, + i = void 0, + u = t instanceof Array ? t : [t], + l = []; + return ( + (0, a.default)(u, function(t, e) { + var r = void 0; + (r = + 'string' == typeof t + ? n.query('saved', t + '/result') + : t instanceof o.default.Query + ? n.query( + t.analysis, + (0, s.default)( + { analysis_type: t.analysis }, + t.params + ), + t.options + ) + : t), + l.push(r); + }), + (i = l.length > 1 ? Promise.all(l) : l[0]), + r && + (i.then(function(t) { + r(null, t); + }), + i.catch(function(t) { + r(t, null); + })), + i + ); + }), + (h.prototype.set = function(t) { + var e = this; + return ( + (0, a.default)(t, function(t, n) { + var r = n, + o = t; + n.match(new RegExp('[A-Z]')) && + (r = n.replace(/([A-Z])/g, function(t) { + return '_' + t.toLowerCase(); })), - c - ); - }), - (S.prototype.generateTransitions = function(t) { - var e = this.owner.axes; - return { - axisX: t ? e.x.transition().duration(t) : e.x, - axisY: t ? e.y.transition().duration(t) : e.y, - axisY2: t ? e.y2.transition().duration(t) : e.y2, - axisSubX: t ? e.subx.transition().duration(t) : e.subx - }; - }), - (S.prototype.redraw = function(t, e) { - var n = this.owner, - r = t ? n.d3.transition().duration(t) : null; - n.axes.x.style('opacity', e ? 0 : 1).call(n.xAxis, r), - n.axes.y.style('opacity', e ? 0 : 1).call(n.yAxis, r), - n.axes.y2.style('opacity', e ? 0 : 1).call(n.y2Axis, r), - n.axes.subx - .style('opacity', e ? 0 : 1) - .call(n.subXAxis, r); - }); - var E = { - version: '0.7.11', - chart: { - fn: i.prototype, - internal: { - fn: r.prototype, - axis: { fn: S.prototype, internal: { fn: x.prototype } } - } - }, - generate: function(t) { - return new i(t); + (e.params[r] = o), + o instanceof Array && + (0, a.default)(o, function(t, n) { + t instanceof Array == 0 && + 'object' === + (void 0 === t ? 'undefined' : i(t)) && + (0, a.default)(t, function(t, i) { + if (i.match(new RegExp('[A-Z]'))) { + var o = i.replace(/([A-Z])/g, function(t) { + return '_' + t.toLowerCase(); + }); + delete e.params[r][n][i], + (e.params[r][n][o] = t); + } + }); + }); + }), + e + ); + }), + (h.prototype.get = function(t) { + var e = t; + if ( + (e.match(new RegExp('[A-Z]')) && + (e = e.replace(/([A-Z])/g, function(t) { + return '_' + t.toLowerCase(); + })), + this.params) + ) + return this.params[e] || null; + }), + (h.prototype.addFilter = function(t, e, n) { + return ( + (this.params.filters = this.params.filters || []), + this.params.filters.push({ + property_name: t, + operator: e, + property_value: n + }), + this + ); + }), + (o.default.version = c.default.version); + var p = (e.KeenAnalysis = o.default); + e.default = p; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.KeenAnalysis = e.Keen = e.keenGlobals = void 0), + a(n(2)); + var r = a(n(22)), + i = a(n(14)), + o = (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && + (e[n] = t[n]); + return (e.default = t), e; + })(n(12)); + function a(t) { + return t && t.__esModule ? t : { default: t }; + } + (r.default.prototype.get = new i.default('GET', o)), + (r.default.prototype.post = new i.default('POST', o)), + (r.default.prototype.put = new i.default('PUT', o)), + (r.default.prototype.del = new i.default('DELETE', o)), + (e.keenGlobals = void 0), + 'undefined' != typeof webpackKeenGlobals && + (e.keenGlobals = webpackKeenGlobals); + var s = (e.Keen = r.default.extendLibrary(r.default)); + (e.KeenAnalysis = s), (e.default = s); + }, + function(t, e, n) { + t.exports = n(23); + } + ]); + }), + (t.exports = r()); + }, + function(t, e, n) { + 'use strict'; + var r = + (this && this.__importDefault) || + function(t) { + return t && t.__esModule ? t : { default: t }; + }; + Object.defineProperty(e, '__esModule', { value: !0 }); + const i = r(n(247)), + o = r(n(249)); + e.uuid = function() { + return i.default(); + }; + const a = { + v4: /^(?:[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12})|(?:0{8}-0{4}-0{4}-0{4}-0{12})$/u, + v5: /^(?:[a-f0-9]{8}-[a-f0-9]{4}-5[a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12})|(?:0{8}-0{4}-0{4}-0{4}-0{12})$/u + }; + e.regex = a; + e.isUuid = function(t) { + return a.v4.test(t) || a.v5.test(t); + }; + e.empty = function() { + return '00000000-0000-0000-0000-000000000000'; + }; + e.fromString = function(t) { + return o.default(t, 'bb5d0ffa-9a4c-4d7c-8fc2-0a7d2220ba45'); + }; + }, + function(t, e, n) { + 'use strict'; + (function(e) { + var n = '__global_unique_id__'; + t.exports = function() { + return (e[n] = (e[n] || 0) + 1); + }; + }.call(this, n(13))); + }, + function(t, e, n) { + t.exports = (function() { + 'use strict'; + return function(t) { + function e(e) { + if (e) + try { + t(e + '}'); + } catch (t) {} + } + return function(n, r, i, o, a, s, u, l, c, f) { + switch (n) { + case 1: + if (0 === c && 64 === r.charCodeAt(0)) return t(r + ';'), ''; + break; + case 2: + if (0 === l) return r + '/*|*/'; + break; + case 3: + switch (l) { + case 102: + case 112: + return t(i[0] + r), ''; + default: + return r + (0 === f ? '/*|*/' : ''); + } + case -2: + r.split('/*|*/}').forEach(e); + } + }; + }; + })(); + }, + function(t, e, n) { + (function(e) { + for ( + var r = n(257), + i = 'undefined' == typeof window ? e : window, + o = ['moz', 'webkit'], + a = 'AnimationFrame', + s = i['request' + a], + u = i['cancel' + a] || i['cancelRequest' + a], + l = 0; + !s && l < o.length; + l++ + ) + (s = i[o[l] + 'Request' + a]), + (u = i[o[l] + 'Cancel' + a] || i[o[l] + 'CancelRequest' + a]); + if (!s || !u) { + var c = 0, + f = 0, + d = []; + (s = function(t) { + if (0 === d.length) { + var e = r(), + n = Math.max(0, 1e3 / 60 - (e - c)); + (c = n + e), + setTimeout(function() { + var t = d.slice(0); + d.length = 0; + for (var e = 0; e < t.length; e++) + if (!t[e].cancelled) + try { + t[e].callback(c); + } catch (t) { + setTimeout(function() { + throw t; + }, 0); + } + }, Math.round(n)); + } + return d.push({ handle: ++f, callback: t, cancelled: !1 }), f; + }), + (u = function(t) { + for (var e = 0; e < d.length; e++) + d[e].handle === t && (d[e].cancelled = !0); + }); + } + (t.exports = function(t) { + return s.call(i, t); + }), + (t.exports.cancel = function() { + u.apply(i, arguments); + }), + (t.exports.polyfill = function(t) { + t || (t = i), + (t.requestAnimationFrame = s), + (t.cancelAnimationFrame = u); + }); + }.call(this, n(13))); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); + } + return t; + }, + i = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + o = n(0), + a = u(o), + s = u(n(1)); + function u(t) { + return t && t.__esModule ? t : { default: t }; + } + var l = { + position: 'absolute', + top: 0, + left: 0, + visibility: 'hidden', + height: 0, + overflow: 'scroll', + whiteSpace: 'pre' + }, + c = [ + 'extraWidth', + 'injectStyles', + 'inputClassName', + 'inputRef', + 'inputStyle', + 'minWidth', + 'onAutosize', + 'placeholderIsMinWidth' + ], + f = function(t, e) { + (e.style.fontSize = t.fontSize), + (e.style.fontFamily = t.fontFamily), + (e.style.fontWeight = t.fontWeight), + (e.style.fontStyle = t.fontStyle), + (e.style.letterSpacing = t.letterSpacing), + (e.style.textTransform = t.textTransform); + }, + d = + !('undefined' == typeof window || !window.navigator) && + /MSIE |Trident\/|Edge\//.test(window.navigator.userAgent), + h = function() { + return d + ? '_' + + Math.random() + .toString(36) + .substr(2, 12) + : void 0; + }, + p = (function(t) { + function e(t) { + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + })(this, e); + var n = (function(t, e) { + if (!t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !e || ('object' != typeof e && 'function' != typeof e) + ? t + : e; + })(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); + return ( + (n.inputRef = function(t) { + (n.input = t), + 'function' == typeof n.props.inputRef && n.props.inputRef(t); + }), + (n.placeHolderSizerRef = function(t) { + n.placeHolderSizer = t; + }), + (n.sizerRef = function(t) { + n.sizer = t; + }), + (n.state = { inputWidth: t.minWidth, inputId: t.id || h() }), + n + ); + } + return ( + (function(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof e + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { + value: t, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + e && + (Object.setPrototypeOf + ? Object.setPrototypeOf(t, e) + : (t.__proto__ = e)); + })(e, t), + i(e, [ + { + key: 'componentDidMount', + value: function() { + (this.mounted = !0), + this.copyInputStyles(), + this.updateInputWidth(); + } + }, + { + key: 'componentWillReceiveProps', + value: function(t) { + var e = t.id; + e !== this.props.id && this.setState({ inputId: e || h() }); + } + }, + { + key: 'componentDidUpdate', + value: function(t, e) { + e.inputWidth !== this.state.inputWidth && + 'function' == typeof this.props.onAutosize && + this.props.onAutosize(this.state.inputWidth), + this.updateInputWidth(); + } + }, + { + key: 'componentWillUnmount', + value: function() { + this.mounted = !1; + } + }, + { + key: 'copyInputStyles', + value: function() { + if (this.mounted && window.getComputedStyle) { + var t = this.input && window.getComputedStyle(this.input); + t && + (f(t, this.sizer), + this.placeHolderSizer && f(t, this.placeHolderSizer)); } - }; - function k(t, e, n) { - var r = [0.01, 10]; - function i(t) { - return n(e(t)); + } + }, + { + key: 'updateInputWidth', + value: function() { + if ( + this.mounted && + this.sizer && + void 0 !== this.sizer.scrollWidth + ) { + var t = void 0; + (t = + this.props.placeholder && + (!this.props.value || + (this.props.value && this.props.placeholderIsMinWidth)) + ? Math.max( + this.sizer.scrollWidth, + this.placeHolderSizer.scrollWidth + ) + 2 + : this.sizer.scrollWidth + 2), + (t += + 'number' === this.props.type && + void 0 === this.props.extraWidth + ? 16 + : parseInt(this.props.extraWidth) || 0) < + this.props.minWidth && (t = this.props.minWidth), + t !== this.state.inputWidth && + this.setState({ inputWidth: t }); } - return ( - e || (e = t.scaleLinear()).range(r), - n || ((n = t.scaleLog()).domain(r), n.nice()), - (i.domain = function(t) { - return arguments.length ? (e.domain(t), i) : e.domain(); - }), - (i.range = function(t) { - return arguments.length ? (n.range(t), i) : n.range(); - }), - (i.ticks = function(t) { - return (function(t, e, n) { - var r, i, o, a; - if (arguments.length < 3) n = 10; - else if (0 === n) return []; - (a = (e - t) / (i = n - 1)), - (o = t), - ((r = new Array(n))[0] = Math.pow(10, o)); - for (var s = 1; s < i; s++) - (o += a), (r[s] = Math.pow(10, o)); - return (r[i] = Math.pow(10, e)), r; - })(-2, 1, t || 10).map(function(t) { - return e.invert(t); - }); - }), - (i.copy = function() { - return k(t, e.copy(), n.copy()); - }), - i - ); } - function A(t) { - return ( - t / - Math.pow( - 10, - Math.ceil(Math.log(t) / Math.LN10 - 1e-12) - ) == - 1 - ); + }, + { + key: 'getInput', + value: function() { + return this.input; } - (r.prototype.beforeInit = function() {}), - (r.prototype.afterInit = function() {}), - (r.prototype.init = function() { - var t = this, - e = t.config; - if ((t.initParams(), e.data_url)) - t.convertUrlToData( - e.data_url, - e.data_mimeType, - e.data_headers, - e.data_keys, - t.initWithData - ); - else if (e.data_json) - t.initWithData( - t.convertJsonToData(e.data_json, e.data_keys) - ); - else if (e.data_rows) - t.initWithData(t.convertRowsToData(e.data_rows)); - else { - if (!e.data_columns) - throw Error( - 'url or json or rows or columns is required.' - ); - t.initWithData(t.convertColumnsToData(e.data_columns)); - } - }), - (r.prototype.initParams = function() { - var t = this, - e = t.d3, - n = t.config; - (t.clipId = 'c3-' + +new Date() + '-clip'), - (t.clipIdForXAxis = t.clipId + '-xaxis'), - (t.clipIdForYAxis = t.clipId + '-yaxis'), - (t.clipIdForGrid = t.clipId + '-grid'), - (t.clipIdForSubchart = t.clipId + '-subchart'), - (t.clipPath = t.getClipPath(t.clipId)), - (t.clipPathForXAxis = t.getClipPath(t.clipIdForXAxis)), - (t.clipPathForYAxis = t.getClipPath(t.clipIdForYAxis)), - (t.clipPathForGrid = t.getClipPath(t.clipIdForGrid)), - (t.clipPathForSubchart = t.getClipPath( - t.clipIdForSubchart - )), - (t.dragStart = null), - (t.dragging = !1), - (t.flowing = !1), - (t.cancelClick = !1), - (t.mouseover = void 0), - (t.transiting = !1), - (t.color = t.generateColor()), - (t.levelColor = t.generateLevelColor()), - (t.dataTimeParse = (n.data_xLocaltime - ? e.timeParse - : e.utcParse)(t.config.data_xFormat)), - (t.axisTimeFormat = n.axis_x_localtime - ? e.timeFormat - : e.utcFormat), - (t.defaultAxisTimeFormat = function(t) { - return t.getMilliseconds() - ? e.timeFormat('.%L')(t) - : t.getSeconds() - ? e.timeFormat(':%S')(t) - : t.getMinutes() - ? e.timeFormat('%I:%M')(t) - : t.getHours() - ? e.timeFormat('%I %p')(t) - : (t.getDay() && 1 !== t.getDate()) || - 1 !== t.getDate() || - t.getMonth() - ? e.timeFormat('%-m/%-d')(t) - : e.timeFormat('%Y/%-m/%-d')(t); - }), - (t.hiddenTargetIds = []), - (t.hiddenLegendIds = []), - (t.focusedTargetIds = []), - (t.defocusedTargetIds = []), - (t.xOrient = n.axis_rotated - ? n.axis_x_inner - ? 'right' - : 'left' - : n.axis_x_inner - ? 'top' - : 'bottom'), - (t.yOrient = n.axis_rotated - ? n.axis_y_inner - ? 'top' - : 'bottom' - : n.axis_y_inner - ? 'right' - : 'left'), - (t.y2Orient = n.axis_rotated - ? n.axis_y2_inner - ? 'bottom' - : 'top' - : n.axis_y2_inner - ? 'left' - : 'right'), - (t.subXOrient = n.axis_rotated ? 'left' : 'bottom'), - (t.isLegendRight = 'right' === n.legend_position), - (t.isLegendInset = 'inset' === n.legend_position), - (t.isLegendTop = - 'top-left' === n.legend_inset_anchor || - 'top-right' === n.legend_inset_anchor), - (t.isLegendLeft = - 'top-left' === n.legend_inset_anchor || - 'bottom-left' === n.legend_inset_anchor), - (t.legendStep = 0), - (t.legendItemWidth = 0), - (t.legendItemHeight = 0), - (t.currentMaxTickWidths = { x: 0, y: 0, y2: 0 }), - (t.rotated_padding_left = 30), - (t.rotated_padding_right = - n.axis_rotated && !n.axis_x_show ? 0 : 30), - (t.rotated_padding_top = 5), - (t.withoutFadeIn = {}), - (t.intervalForObserveInserted = void 0), - (t.axes.subx = e.selectAll([])); - }), - (r.prototype.initChartElements = function() { - this.initBar && this.initBar(), - this.initLine && this.initLine(), - this.initArc && this.initArc(), - this.initGauge && this.initGauge(), - this.initText && this.initText(); - }), - (r.prototype.initWithData = function(t) { - var e, - n, - r = this, - i = r.d3, - o = r.config, - a = !0; - (r.axis = new S(r)), - o.bindto - ? 'function' == typeof o.bindto.node - ? (r.selectChart = o.bindto) - : (r.selectChart = i.select(o.bindto)) - : (r.selectChart = i.selectAll([])), - r.selectChart.empty() && - ((r.selectChart = i - .select(document.createElement('div')) - .style('opacity', 0)), - r.observeInserted(r.selectChart), - (a = !1)), - r.selectChart.html('').classed('c3', !0), - (r.data.xs = {}), - (r.data.targets = r.convertDataToTargets(t)), - o.data_filter && - (r.data.targets = r.data.targets.filter(o.data_filter)), - o.data_hide && - r.addHiddenTargetIds( - !0 === o.data_hide - ? r.mapToIds(r.data.targets) - : o.data_hide - ), - o.legend_hide && - r.addHiddenLegendIds( - !0 === o.legend_hide - ? r.mapToIds(r.data.targets) - : o.legend_hide - ), - r.isStanfordGraphType() && r.initStanfordData(), - r.updateSizes(), - r.updateScales(), - r.x.domain(i.extent(r.getXDomain(r.data.targets))), - r.y.domain(r.getYDomain(r.data.targets, 'y')), - r.y2.domain(r.getYDomain(r.data.targets, 'y2')), - r.subX.domain(r.x.domain()), - r.subY.domain(r.y.domain()), - r.subY2.domain(r.y2.domain()), - (r.orgXDomain = r.x.domain()), - (r.svg = r.selectChart - .append('svg') - .style('overflow', 'hidden') - .on('mouseenter', function() { - return o.onmouseover.call(r); - }) - .on('mouseleave', function() { - return o.onmouseout.call(r); - })), - r.config.svg_classname && - r.svg.attr('class', r.config.svg_classname), - (e = r.svg.append('defs')), - (r.clipChart = r.appendClip(e, r.clipId)), - (r.clipXAxis = r.appendClip(e, r.clipIdForXAxis)), - (r.clipYAxis = r.appendClip(e, r.clipIdForYAxis)), - (r.clipGrid = r.appendClip(e, r.clipIdForGrid)), - (r.clipSubchart = r.appendClip(e, r.clipIdForSubchart)), - r.updateSvgSize(), - (n = r.main = r.svg - .append('g') - .attr('transform', r.getTranslate('main'))), - r.initPie && r.initPie(), - r.initDragZoom && r.initDragZoom(), - r.initSubchart && r.initSubchart(), - r.initTooltip && r.initTooltip(), - r.initLegend && r.initLegend(), - r.initTitle && r.initTitle(), - r.initZoom && r.initZoom(), - r.isStanfordGraphType() && r.drawColorScale(), - r.initSubchartBrush && r.initSubchartBrush(), - n - .append('text') - .attr('class', w.text + ' ' + w.empty) - .attr('text-anchor', 'middle') - .attr('dominant-baseline', 'middle'), - r.initRegion(), - r.initGrid(), - n - .append('g') - .attr('clip-path', r.clipPath) - .attr('class', w.chart), - o.grid_lines_front && r.initGridLines(), - r.initStanfordElements(), - r.initEventRect(), - r.initChartElements(), - r.axis.init(), - r.updateTargets(r.data.targets), - o.axis_x_selection && - r.brush.selectionAsValue(r.getDefaultSelection()), - a && - (r.updateDimension(), - r.config.oninit.call(r), - r.redraw({ - withTransition: !1, - withTransform: !0, - withUpdateXDomain: !0, - withUpdateOrgXDomain: !0, - withTransitionForAxis: !1 - })), - r.bindResize(), - r.bindWindowFocus(), - (r.api.element = r.selectChart.node()); - }), - (r.prototype.smoothLines = function(t, e) { - var n = this; - 'grid' === e && - t.each(function() { - var t = n.d3.select(this), - e = t.attr('x1'), - r = t.attr('x2'), - i = t.attr('y1'), - o = t.attr('y2'); - t.attr({ - x1: Math.ceil(e), - x2: Math.ceil(r), - y1: Math.ceil(i), - y2: Math.ceil(o) - }); - }); - }), - (r.prototype.updateSizes = function() { - var t = this, - e = t.config, - n = t.legend ? t.getLegendHeight() : 0, - r = t.legend ? t.getLegendWidth() : 0, - i = t.isLegendRight || t.isLegendInset ? 0 : n, - o = t.hasArcType(), - a = - e.axis_rotated || o - ? 0 - : t.getHorizontalAxisHeight('x'), - s = - e.subchart_show && !o ? e.subchart_size_height + a : 0; - (t.currentWidth = t.getCurrentWidth()), - (t.currentHeight = t.getCurrentHeight()), - (t.margin = e.axis_rotated - ? { - top: - t.getHorizontalAxisHeight('y2') + - t.getCurrentPaddingTop(), - right: o ? 0 : t.getCurrentPaddingRight(), - bottom: - t.getHorizontalAxisHeight('y') + - i + - t.getCurrentPaddingBottom(), - left: s + (o ? 0 : t.getCurrentPaddingLeft()) - } - : { - top: 4 + t.getCurrentPaddingTop(), - right: o ? 0 : t.getCurrentPaddingRight(), - bottom: a + s + i + t.getCurrentPaddingBottom(), - left: o ? 0 : t.getCurrentPaddingLeft() - }), - (t.margin2 = e.axis_rotated - ? { - top: t.margin.top, - right: NaN, - bottom: 20 + i, - left: t.rotated_padding_left - } - : { - top: t.currentHeight - s - i, - right: NaN, - bottom: a + i, - left: t.margin.left - }), - (t.margin3 = { top: 0, right: NaN, bottom: 0, left: 0 }), - t.updateSizeForLegend && t.updateSizeForLegend(n, r), - (t.width = - t.currentWidth - t.margin.left - t.margin.right), - (t.height = - t.currentHeight - t.margin.top - t.margin.bottom), - t.width < 0 && (t.width = 0), - t.height < 0 && (t.height = 0), - (t.width2 = e.axis_rotated - ? t.margin.left - - t.rotated_padding_left - - t.rotated_padding_right - : t.width), - (t.height2 = e.axis_rotated - ? t.height - : t.currentHeight - t.margin2.top - t.margin2.bottom), - t.width2 < 0 && (t.width2 = 0), - t.height2 < 0 && (t.height2 = 0), - (t.arcWidth = t.width - (t.isLegendRight ? r + 10 : 0)), - (t.arcHeight = t.height - (t.isLegendRight ? 0 : 10)), - t.hasType('gauge') && - !e.gauge_fullCircle && - (t.arcHeight += t.height - t.getGaugeLabelHeight()), - t.updateRadius && t.updateRadius(), - t.isLegendRight && - o && - (t.margin3.left = - t.arcWidth / 2 + 1.1 * t.radiusExpanded); - }), - (r.prototype.updateTargets = function(t) { - var e = this; - e.updateTargetsForText(t), - e.updateTargetsForBar(t), - e.updateTargetsForLine(t), - e.hasArcType() && - e.updateTargetsForArc && - e.updateTargetsForArc(t), - e.updateTargetsForSubchart && - e.updateTargetsForSubchart(t), - e.showTargets(); - }), - (r.prototype.showTargets = function() { - var t = this; - t.svg - .selectAll('.' + w.target) - .filter(function(e) { - return t.isTargetToShow(e.id); + }, + { + key: 'focus', + value: function() { + this.input.focus(); + } + }, + { + key: 'blur', + value: function() { + this.input.blur(); + } + }, + { + key: 'select', + value: function() { + this.input.select(); + } + }, + { + key: 'renderStyles', + value: function() { + var t = this.props.injectStyles; + return d && t + ? a.default.createElement('style', { + dangerouslySetInnerHTML: { + __html: + 'input#' + + this.state.inputId + + '::-ms-clear {display: none;}' + } }) - .transition() - .duration(t.config.transition_duration) - .style('opacity', 1); - }), - (r.prototype.redraw = function(t, e) { - var n, - r, - i, - o, - a, - s, - l, - c, - f, - d, - h, - p, - g, - v, - m, - y, - b, - _, - x, - S, - E, - k, - A, - T, - C, - O, - P, - M, - L, - D, - j, - R = this, - N = R.main, - z = R.d3, - I = R.config, - F = R.getShapeIndices(R.isAreaType), - V = R.getShapeIndices(R.isBarType), - B = R.getShapeIndices(R.isLineType), - G = R.hasArcType(), - H = R.filterTargetsToShow(R.data.targets), - U = R.xv.bind(R); - if ( - ((n = u((t = t || {}), 'withY', !0)), - (r = u(t, 'withSubchart', !0)), - (i = u(t, 'withTransition', !0)), - (s = u(t, 'withTransform', !1)), - (l = u(t, 'withUpdateXDomain', !1)), - (c = u(t, 'withUpdateOrgXDomain', !1)), - (f = u(t, 'withTrimXDomain', !0)), - (g = u(t, 'withUpdateXAxis', l)), - (d = u(t, 'withLegend', !1)), - (h = u(t, 'withEventRect', !0)), - (p = u(t, 'withDimension', !0)), - (o = u(t, 'withTransitionForExit', i)), - (a = u(t, 'withTransitionForAxis', i)), - (x = i ? I.transition_duration : 0), - (S = o ? x : 0), - (E = a ? x : 0), - (e = e || R.axis.generateTransitions(E)), - d && I.legend_show - ? R.updateLegend(R.mapToIds(R.data.targets), t, e) - : p && R.updateDimension(!0), - R.isCategorized() && - 0 === H.length && - R.x.domain([0, R.axes.x.selectAll('.tick').size()]), - H.length - ? (R.updateXDomain(H, l, c, f), - I.axis_x_tick_values || - (O = R.axis.updateXAxisTickValues(H))) - : (R.xAxis.tickValues([]), R.subXAxis.tickValues([])), - I.zoom_rescale && !t.flow && (L = R.x.orgDomain()), - R.y.domain(R.getYDomain(H, 'y', L)), - R.y2.domain(R.getYDomain(H, 'y2', L)), - !I.axis_y_tick_values && - I.axis_y_tick_count && - R.yAxis.tickValues( - R.axis.generateTickValues( - R.y.domain(), - I.axis_y_tick_count - ) - ), - !I.axis_y2_tick_values && - I.axis_y2_tick_count && - R.y2Axis.tickValues( - R.axis.generateTickValues( - R.y2.domain(), - I.axis_y2_tick_count + : null; + } + }, + { + key: 'render', + value: function() { + var t = [ + this.props.defaultValue, + this.props.value, + '' + ].reduce(function(t, e) { + return null != t ? t : e; + }), + e = r({}, this.props.style); + e.display || (e.display = 'inline-block'); + var n = r( + { + boxSizing: 'content-box', + width: this.state.inputWidth + 'px' + }, + this.props.inputStyle + ), + i = (function(t, e) { + var n = {}; + for (var r in t) + e.indexOf(r) >= 0 || + (Object.prototype.hasOwnProperty.call(t, r) && + (n[r] = t[r])); + return n; + })(this.props, []); + return ( + (function(t) { + c.forEach(function(e) { + return delete t[e]; + }); + })(i), + (i.className = this.props.inputClassName), + (i.id = this.state.inputId), + (i.style = n), + a.default.createElement( + 'div', + { className: this.props.className, style: e }, + this.renderStyles(), + a.default.createElement( + 'input', + r({}, i, { ref: this.inputRef }) + ), + a.default.createElement( + 'div', + { ref: this.sizerRef, style: l }, + t + ), + this.props.placeholder + ? a.default.createElement( + 'div', + { ref: this.placeHolderSizerRef, style: l }, + this.props.placeholder ) - ), - R.axis.redraw(E, G), - R.axis.updateLabels(i), - (l || g) && H.length) + : null ) - if (I.axis_x_tick_culling && O) { - for (P = 1; P < O.length; P++) - if (O.length / P < I.axis_x_tick_culling_max) { - M = P; - break; - } - R.svg - .selectAll('.' + w.axisX + ' .tick text') - .each(function(t) { - var e = O.indexOf(t); - e >= 0 && - z - .select(this) - .style('display', e % M ? 'none' : 'block'); - }); - } else - R.svg - .selectAll('.' + w.axisX + ' .tick text') - .style('display', 'block'); - (v = R.generateDrawArea - ? R.generateDrawArea(F, !1) - : void 0), - (m = R.generateDrawBar ? R.generateDrawBar(V) : void 0), - (y = R.generateDrawLine - ? R.generateDrawLine(B, !1) - : void 0), - (b = R.generateXYForText(F, V, B, !0)), - (_ = R.generateXYForText(F, V, B, !1)), - R.updateCircleY(), - (D = (R.config.axis_rotated ? R.circleY : R.circleX).bind( - R - )), - (j = (R.config.axis_rotated ? R.circleX : R.circleY).bind( - R - )), - n && - (R.subY.domain(R.getYDomain(H, 'y')), - R.subY2.domain(R.getYDomain(H, 'y2'))), - R.updateXgridFocus(), - N.select('text.' + w.text + '.' + w.empty) - .attr('x', R.width / 2) - .attr('y', R.height / 2) - .text(I.data_empty_label_text) - .transition() - .style('opacity', H.length ? 0 : 1), - h && R.redrawEventRect(), - R.updateGrid(x), - R.updateStanfordElements(x), - R.updateRegion(x), - R.updateBar(S), - R.updateLine(S), - R.updateArea(S), - R.updateCircle(D, j), - R.hasDataLabel() && R.updateText(b, _, S), - R.redrawTitle && R.redrawTitle(), - R.redrawArc && R.redrawArc(x, S, s), - R.redrawSubchart && R.redrawSubchart(r, e, x, S, F, V, B), - R.isStanfordGraphType() && R.drawColorScale(), - N.selectAll('.' + w.selectedCircles) - .filter(R.isBarType.bind(R)) - .selectAll('circle') - .remove(), - t.flow && - (T = R.generateFlow({ - targets: H, - flow: t.flow, - duration: t.flow.duration, - drawBar: m, - drawLine: y, - drawArea: v, - cx: D, - cy: j, - xv: U, - xForText: b, - yForText: _ - })), - x && R.isTabVisible() - ? ((C = z.transition().duration(x)), - (k = []), - [ - R.redrawBar(m, !0, C), - R.redrawLine(y, !0, C), - R.redrawArea(v, !0, C), - R.redrawCircle(D, j, !0, C), - R.redrawText(b, _, t.flow, !0, C), - R.redrawRegion(!0, C), - R.redrawGrid(!0, C) - ].forEach(function(t) { - t.forEach(function(t) { - k.push(t); - }); - }), - (A = R.generateWait()), - k.forEach(function(t) { - A.add(t); - }), - A(function() { - T && T(), I.onrendered && I.onrendered.call(R); - })) - : (R.redrawBar(m), - R.redrawLine(y), - R.redrawArea(v), - R.redrawCircle(D, j), - R.redrawText(b, _, t.flow), - R.redrawRegion(), - R.redrawGrid(), - T && T(), - I.onrendered && I.onrendered.call(R)), - R.mapToIds(R.data.targets).forEach(function(t) { - R.withoutFadeIn[t] = !0; + ); + } + } + ]), + e + ); + })(o.Component); + (p.propTypes = { + className: s.default.string, + defaultValue: s.default.any, + extraWidth: s.default.oneOfType([s.default.number, s.default.string]), + id: s.default.string, + injectStyles: s.default.bool, + inputClassName: s.default.string, + inputRef: s.default.func, + inputStyle: s.default.object, + minWidth: s.default.oneOfType([s.default.number, s.default.string]), + onAutosize: s.default.func, + onChange: s.default.func, + placeholder: s.default.string, + placeholderIsMinWidth: s.default.bool, + style: s.default.object, + value: s.default.any + }), + (p.defaultProps = { minWidth: 1, injectStyles: !0 }), + (e.default = p); + }, + function(t, e, n) { + !(function(e) { + 'use strict'; + var n = (function() { + return { + escape: function(t) { + return t.replace(/([.*+?^${}()|\[\]\/\\])/g, '\\$1'); + }, + parseExtension: e, + mimeType: function(t) { + var n = e(t).toLowerCase(); + return ( + ((r = 'application/font-woff'), + { + woff: r, + woff2: r, + ttf: 'application/font-truetype', + eot: 'application/vnd.ms-fontobject', + png: 'image/png', + jpg: 'image/jpeg', + jpeg: 'image/jpeg', + gif: 'image/gif', + tiff: 'image/tiff', + svg: 'image/svg+xml' + })[n] || '' + ); + var r; + }, + dataAsUrl: function(t, e) { + return 'data:' + e + ';base64,' + t; + }, + isDataUrl: function(t) { + return -1 !== t.search(/^(data:)/); + }, + canvasToBlob: function(t) { + return t.toBlob + ? new Promise(function(e) { + t.toBlob(e); + }) + : (function(t) { + return new Promise(function(e) { + for ( + var n = window.atob(t.toDataURL().split(',')[1]), + r = n.length, + i = new Uint8Array(r), + o = 0; + o < r; + o++ + ) + i[o] = n.charCodeAt(o); + e(new Blob([i], { type: 'image/png' })); }); + })(t); + }, + resolveUrl: function(t, e) { + var n = document.implementation.createHTMLDocument(), + r = n.createElement('base'); + n.head.appendChild(r); + var i = n.createElement('a'); + return ( + n.body.appendChild(i), (r.href = e), (i.href = t), i.href + ); + }, + getAndEncode: function(t) { + var e = 3e4; + s.impl.options.cacheBust && + (t += (/\?/.test(t) ? '&' : '?') + new Date().getTime()); + return new Promise(function(n) { + var r, + i = new XMLHttpRequest(); + if ( + ((i.onreadystatechange = function() { + if (4 !== i.readyState) return; + if (200 !== i.status) + return void (r + ? n(r) + : a( + 'cannot fetch resource: ' + + t + + ', status: ' + + i.status + )); + var e = new FileReader(); + (e.onloadend = function() { + var t = e.result.split(/,/)[1]; + n(t); + }), + e.readAsDataURL(i.response); + }), + (i.ontimeout = function() { + r + ? n(r) + : a( + 'timeout of ' + + e + + 'ms occured while fetching resource: ' + + t + ); + }), + (i.responseType = 'blob'), + (i.timeout = e), + i.open('GET', t, !0), + i.send(), + s.impl.options.imagePlaceholder) + ) { + var o = s.impl.options.imagePlaceholder.split(/,/); + o && o[1] && (r = o[1]); + } + function a(t) { + console.error(t), n(''); + } + }); + }, + uid: + ((t = 0), + function() { + return ( + 'u' + + ( + '0000' + + ((Math.random() * Math.pow(36, 4)) << 0).toString(36) + ).slice(-4) + + t++ + ); + }), + delay: function(t) { + return function(e) { + return new Promise(function(n) { + setTimeout(function() { + n(e); + }, t); + }); + }; + }, + asArray: function(t) { + for (var e = [], n = t.length, r = 0; r < n; r++) e.push(t[r]); + return e; + }, + escapeXhtml: function(t) { + return t.replace(/#/g, '%23').replace(/\n/g, '%0A'); + }, + makeImage: function(t) { + return new Promise(function(e, n) { + var r = new Image(); + (r.onload = function() { + e(r); }), - (r.prototype.updateAndRedraw = function(t) { - var e, - n = this, - r = n.config; - ((t = t || {}).withTransition = u(t, 'withTransition', !0)), - (t.withTransform = u(t, 'withTransform', !1)), - (t.withLegend = u(t, 'withLegend', !1)), - (t.withUpdateXDomain = u(t, 'withUpdateXDomain', !0)), - (t.withUpdateOrgXDomain = u( - t, - 'withUpdateOrgXDomain', - !0 - )), - (t.withTransitionForExit = !1), - (t.withTransitionForTransform = u( - t, - 'withTransitionForTransform', - t.withTransition - )), - n.updateSizes(), - (t.withLegend && r.legend_show) || - ((e = n.axis.generateTransitions( - t.withTransitionForAxis ? r.transition_duration : 0 - )), - n.updateScales(), - n.updateSvgSize(), - n.transformAll(t.withTransitionForTransform, e)), - n.redraw(t, e); - }), - (r.prototype.redrawWithoutRescale = function() { - this.redraw({ - withY: !1, - withSubchart: !1, - withEventRect: !1, - withTransitionForAxis: !1 - }); - }), - (r.prototype.isTimeSeries = function() { - return 'timeseries' === this.config.axis_x_type; - }), - (r.prototype.isCategorized = function() { - return this.config.axis_x_type.indexOf('categor') >= 0; - }), - (r.prototype.isCustomX = function() { - var t = this.config; - return !this.isTimeSeries() && (t.data_x || b(t.data_xs)); - }), - (r.prototype.isTimeSeriesY = function() { - return 'timeseries' === this.config.axis_y_type; - }), - (r.prototype.getTranslate = function(t) { - var e, - n, - r = this, - i = r.config; - return ( - 'main' === t - ? ((e = o(r.margin.left)), (n = o(r.margin.top))) - : 'context' === t - ? ((e = o(r.margin2.left)), (n = o(r.margin2.top))) - : 'legend' === t - ? ((e = r.margin3.left), (n = r.margin3.top)) - : 'x' === t - ? ((e = 0), (n = i.axis_rotated ? 0 : r.height)) - : 'y' === t - ? ((e = 0), (n = i.axis_rotated ? r.height : 0)) - : 'y2' === t - ? ((e = i.axis_rotated ? 0 : r.width), - (n = i.axis_rotated ? 1 : 0)) - : 'subx' === t - ? ((e = 0), (n = i.axis_rotated ? 0 : r.height2)) - : 'arc' === t && - ((e = r.arcWidth / 2), - (n = r.arcHeight / 2 - (r.hasType('gauge') ? 6 : 0))), - 'translate(' + e + ',' + n + ')' - ); - }), - (r.prototype.initialOpacity = function(t) { - return null !== t.value && this.withoutFadeIn[t.id] ? 1 : 0; - }), - (r.prototype.initialOpacityForCircle = function(t) { - return null !== t.value && this.withoutFadeIn[t.id] - ? this.opacityForCircle(t) - : 0; - }), - (r.prototype.opacityForCircle = function(t) { - var e = - (p(this.config.point_show) - ? this.config.point_show(t) - : this.config.point_show) || this.isStanfordType(t) - ? 1 - : 0; - return y(t.value) ? (this.isScatterType(t) ? 0.5 : e) : 0; - }), - (r.prototype.opacityForText = function() { - return this.hasDataLabel() ? 1 : 0; - }), - (r.prototype.xx = function(t) { - return t ? this.x(t.x) : null; - }), - (r.prototype.xvCustom = function(t, e) { - var n = this, - r = e ? t[e] : t.value; - return ( - n.isTimeSeries() - ? (r = n.parseDate(t.value)) - : n.isCategorized() && - 'string' == typeof t.value && - (r = n.config.axis_x_categories.indexOf(t.value)), - Math.ceil(n.x(r)) - ); - }), - (r.prototype.yvCustom = function(t, e) { - var n = t.axis && 'y2' === t.axis ? this.y2 : this.y, - r = e ? t[e] : t.value; - return Math.ceil(n(r)); - }), - (r.prototype.xv = function(t) { - var e = this, - n = t.value; - return ( - e.isTimeSeries() - ? (n = e.parseDate(t.value)) - : e.isCategorized() && - 'string' == typeof t.value && - (n = e.config.axis_x_categories.indexOf(t.value)), - Math.ceil(e.x(n)) + (r.onerror = n), + (r.src = t); + }); + }, + width: function(t) { + var e = n(t, 'border-left-width'), + r = n(t, 'border-right-width'); + return t.scrollWidth + e + r; + }, + height: function(t) { + var e = n(t, 'border-top-width'), + r = n(t, 'border-bottom-width'); + return t.scrollHeight + e + r; + } + }; + var t; + function e(t) { + var e = /\.([^\.\/]*?)$/g.exec(t); + return e ? e[1] : ''; + } + function n(t, e) { + var n = window.getComputedStyle(t).getPropertyValue(e); + return parseFloat(n.replace('px', '')); + } + })(), + r = (function() { + var t = /url\(['"]?([^'"]+?)['"]?\)/g; + return { + inlineAll: function(t, n, o) { + return (function() { + return !e(t); + })() + ? Promise.resolve(t) + : Promise.resolve(t) + .then(r) + .then(function(e) { + var r = Promise.resolve(t); + return ( + e.forEach(function(t) { + r = r.then(function(e) { + return i(e, t, n, o); + }); + }), + r + ); + }); + }, + shouldProcess: e, + impl: { readUrls: r, inline: i } + }; + function e(e) { + return -1 !== e.search(t); + } + function r(e) { + for (var r, i = []; null !== (r = t.exec(e)); ) i.push(r[1]); + return i.filter(function(t) { + return !n.isDataUrl(t); + }); + } + function i(t, e, r, i) { + return Promise.resolve(e) + .then(function(t) { + return r ? n.resolveUrl(t, r) : t; + }) + .then(i || n.getAndEncode) + .then(function(t) { + return n.dataAsUrl(t, n.mimeType(e)); + }) + .then(function(r) { + return t.replace( + (function(t) { + return new RegExp( + '(url\\([\'"]?)(' + n.escape(t) + ')([\'"]?\\))', + 'g' + ); + })(e), + '$1' + r + '$3' + ); + }); + } + })(), + i = (function() { + return { + resolveAll: function() { + return t(document) + .then(function(t) { + return Promise.all( + t.map(function(t) { + return t.resolve(); + }) ); + }) + .then(function(t) { + return t.join('\n'); + }); + }, + impl: { readAll: t } + }; + function t() { + return Promise.resolve(n.asArray(document.styleSheets)) + .then(function(t) { + var e = []; + return ( + t.forEach(function(t) { + try { + n.asArray(t.cssRules || []).forEach(e.push.bind(e)); + } catch (e) { + console.log( + 'Error while reading CSS rules from ' + t.href, + e.toString() + ); + } + }), + e + ); + }) + .then(function(t) { + return t + .filter(function(t) { + return t.type === CSSRule.FONT_FACE_RULE; + }) + .filter(function(t) { + return r.shouldProcess(t.style.getPropertyValue('src')); + }); + }) + .then(function(e) { + return e.map(t); + }); + function t(t) { + return { + resolve: function() { + var e = (t.parentStyleSheet || {}).href; + return r.inlineAll(t.cssText, e); + }, + src: function() { + return t.style.getPropertyValue('src'); + } + }; + } + } + })(), + o = (function() { + return { + inlineAll: function e(i) { + if (!(i instanceof Element)) return Promise.resolve(i); + return (function(t) { + var e = t.style.getPropertyValue('background'); + return e + ? r + .inlineAll(e) + .then(function(e) { + t.style.setProperty( + 'background', + e, + t.style.getPropertyPriority('background') + ); + }) + .then(function() { + return t; + }) + : Promise.resolve(t); + })(i).then(function() { + return i instanceof HTMLImageElement + ? t(i).inline() + : Promise.all( + n.asArray(i.childNodes).map(function(t) { + return e(t); + }) + ); + }); + }, + impl: { newImage: t } + }; + function t(t) { + return { + inline: function(e) { + return n.isDataUrl(t.src) + ? Promise.resolve() + : Promise.resolve(t.src) + .then(e || n.getAndEncode) + .then(function(e) { + return n.dataAsUrl(e, n.mimeType(t.src)); + }) + .then(function(e) { + return new Promise(function(n, r) { + (t.onload = n), (t.onerror = r), (t.src = e); + }); + }); + } + }; + } + })(), + a = { imagePlaceholder: void 0, cacheBust: !1 }, + s = { + toSvg: u, + toPng: function(t, e) { + return l(t, e || {}).then(function(t) { + return t.toDataURL(); + }); + }, + toJpeg: function(t, e) { + return l(t, (e = e || {})).then(function(t) { + return t.toDataURL('image/jpeg', e.quality || 1); + }); + }, + toBlob: function(t, e) { + return l(t, e || {}).then(n.canvasToBlob); + }, + toPixelData: function(t, e) { + return l(t, e || {}).then(function(e) { + return e + .getContext('2d') + .getImageData(0, 0, n.width(t), n.height(t)).data; + }); + }, + impl: { fontFaces: i, images: o, util: n, inliner: r, options: {} } + }; + function u(t, e) { + return ( + (function(t) { + void 0 === t.imagePlaceholder + ? (s.impl.options.imagePlaceholder = a.imagePlaceholder) + : (s.impl.options.imagePlaceholder = t.imagePlaceholder); + void 0 === t.cacheBust + ? (s.impl.options.cacheBust = a.cacheBust) + : (s.impl.options.cacheBust = t.cacheBust); + })((e = e || {})), + Promise.resolve(t) + .then(function(t) { + return (function t(e, r, i) { + if (!i && r && !r(e)) return Promise.resolve(); + return Promise.resolve(e) + .then(function(t) { + return t instanceof HTMLCanvasElement + ? n.makeImage(t.toDataURL()) + : t.cloneNode(!1); + }) + .then(function(i) { + return (function(e, r, i) { + var o = e.childNodes; + return 0 === o.length + ? Promise.resolve(r) + : (function(e, n, r) { + var i = Promise.resolve(); + return ( + n.forEach(function(n) { + i = i + .then(function() { + return t(n, r); + }) + .then(function(t) { + t && e.appendChild(t); + }); + }), + i + ); + })(r, n.asArray(o), i).then(function() { + return r; + }); + })(e, i, r); + }) + .then(function(t) { + return (function(t, e) { + return e instanceof Element + ? Promise.resolve() + .then(function() { + (r = window.getComputedStyle(t)), + (i = e.style), + r.cssText + ? (i.cssText = r.cssText) + : (function(t, e) { + n.asArray(t).forEach(function(n) { + e.setProperty( + n, + t.getPropertyValue(n), + t.getPropertyPriority(n) + ); + }); + })(r, i); + var r, i; + }) + .then(function() { + [':before', ':after'].forEach(function(r) { + !(function(r) { + var i = window.getComputedStyle(t, r), + o = i.getPropertyValue('content'); + if ('' !== o && 'none' !== o) { + var a = n.uid(); + e.className = e.className + ' ' + a; + var s = document.createElement('style'); + s.appendChild( + (function(t, e, r) { + var i = '.' + t + ':' + e, + o = r.cssText + ? (function(t) { + var e = t.getPropertyValue( + 'content' + ); + return ( + t.cssText + + ' content: ' + + e + + ';' + ); + })(r) + : (function(t) { + return ( + n + .asArray(t) + .map(function(e) { + return ( + e + + ': ' + + t.getPropertyValue( + e + ) + + (t.getPropertyPriority( + e + ) + ? ' !important' + : '') + ); + }) + .join('; ') + ';' + ); + })(r); + return document.createTextNode( + i + '{' + o + '}' + ); + })(a, r, i) + ), + e.appendChild(s); + } + })(r); + }); + }) + .then(function() { + t instanceof HTMLTextAreaElement && + (e.innerHTML = t.value); + t instanceof HTMLInputElement && + e.setAttribute('value', t.value); + }) + .then(function() { + if (!(e instanceof SVGElement)) return; + if ( + (e.setAttribute( + 'xmlns', + 'http://www.w3.org/2000/svg' + ), + !(e instanceof SVGRectElement)) + ) + return; + ['width', 'height'].forEach(function(t) { + var n = e.getAttribute(t); + n && e.style.setProperty(t, n); + }); + }) + .then(function() { + return e; + }) + : e; + })(e, t); + }); + })(t, e.filter, !0); + }) + .then(c) + .then(f) + .then(function(t) { + e.bgcolor && (t.style.backgroundColor = e.bgcolor); + e.width && (t.style.width = e.width + 'px'); + e.height && (t.style.height = e.height + 'px'); + e.style && + Object.keys(e.style).forEach(function(n) { + t.style[n] = e.style[n]; + }); + return t; + }) + .then(function(r) { + return (function(t, e, r) { + return Promise.resolve(t) + .then(function(t) { + return ( + t.setAttribute('xmlns', 'http://www.w3.org/1999/xhtml'), + new XMLSerializer().serializeToString(t) + ); + }) + .then(n.escapeXhtml) + .then(function(t) { + return ( + '' + + t + + '' + ); + }) + .then(function(t) { + return ( + '' + + t + + '' + ); + }) + .then(function(t) { + return 'data:image/svg+xml;charset=utf-8,' + t; + }); + })(r, e.width || n.width(t), e.height || n.height(t)); + }) + ); + } + function l(t, e) { + return u(t, e) + .then(n.makeImage) + .then(n.delay(100)) + .then(function(r) { + var i = (function(t) { + var r = document.createElement('canvas'); + if ( + ((r.width = e.width || n.width(t)), + (r.height = e.height || n.height(t)), + e.bgcolor) + ) { + var i = r.getContext('2d'); + (i.fillStyle = e.bgcolor), + i.fillRect(0, 0, r.width, r.height); + } + return r; + })(t); + return i.getContext('2d').drawImage(r, 0, 0), i; + }); + } + function c(t) { + return i.resolveAll().then(function(e) { + var n = document.createElement('style'); + return ( + t.appendChild(n), n.appendChild(document.createTextNode(e)), t + ); + }); + } + function f(t) { + return o.inlineAll(t).then(function() { + return t; + }); + } + t.exports = s; + })(); + }, + function(t, e, n) { + (function(n) { + var r, i, o; + (i = []), + void 0 === + (o = + 'function' == + typeof (r = function() { + 'use strict'; + function e(t, e, n) { + var r = new XMLHttpRequest(); + r.open('GET', t), + (r.responseType = 'blob'), + (r.onload = function() { + a(r.response, e, n); + }), + (r.onerror = function() { + console.error('could not download file'); + }), + r.send(); + } + function r(t) { + var e = new XMLHttpRequest(); + e.open('HEAD', t, !1); + try { + e.send(); + } catch (t) {} + return 200 <= e.status && 299 >= e.status; + } + function i(t) { + try { + t.dispatchEvent(new MouseEvent('click')); + } catch (n) { + var e = document.createEvent('MouseEvents'); + e.initMouseEvent( + 'click', + !0, + !0, + window, + 0, + 0, + 0, + 80, + 20, + !1, + !1, + !1, + !1, + 0, + null + ), + t.dispatchEvent(e); + } + } + var o = + 'object' == typeof window && window.window === window + ? window + : 'object' == typeof self && self.self === self + ? self + : 'object' == typeof n && n.global === n + ? n + : void 0, + a = + o.saveAs || + ('object' != typeof window || window !== o + ? function() {} + : 'download' in HTMLAnchorElement.prototype + ? function(t, n, a) { + var s = o.URL || o.webkitURL, + u = document.createElement('a'); + (n = n || t.name || 'download'), + (u.download = n), + (u.rel = 'noopener'), + 'string' == typeof t + ? ((u.href = t), + u.origin === location.origin + ? i(u) + : r(u.href) + ? e(t, n, a) + : i(u, (u.target = '_blank'))) + : ((u.href = s.createObjectURL(t)), + setTimeout(function() { + s.revokeObjectURL(u.href); + }, 4e4), + setTimeout(function() { + i(u); + }, 0)); + } + : 'msSaveOrOpenBlob' in navigator + ? function(t, n, o) { + if ( + ((n = n || t.name || 'download'), + 'string' != typeof t) + ) + navigator.msSaveOrOpenBlob( + (function(t, e) { + return ( + void 0 === e + ? (e = { autoBom: !1 }) + : 'object' != typeof e && + (console.warn( + 'Deprecated: Expected third argument to be a object' + ), + (e = { autoBom: !e })), + e.autoBom && + /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test( + t.type + ) + ? new Blob(['\ufeff', t], { type: t.type }) + : t + ); + })(t, o), + n + ); + else if (r(t)) e(t, n, o); + else { + var a = document.createElement('a'); + (a.href = t), + (a.target = '_blank'), + setTimeout(function() { + i(a); + }); + } + } + : function(t, n, r, i) { + if ( + ((i = i || open('', '_blank')) && + (i.document.title = i.document.body.innerText = + 'downloading...'), + 'string' == typeof t) + ) + return e(t, n, r); + var a = 'application/octet-stream' === t.type, + s = /constructor/i.test(o.HTMLElement) || o.safari, + u = /CriOS\/[\d]+/.test(navigator.userAgent); + if ( + (u || (a && s)) && + 'object' == typeof FileReader + ) { + var l = new FileReader(); + (l.onloadend = function() { + var t = l.result; + (t = u + ? t + : t.replace( + /^data:[^;]*;/, + 'data:attachment/file;' + )), + i ? (i.location.href = t) : (location = t), + (i = null); + }), + l.readAsDataURL(t); + } else { + var c = o.URL || o.webkitURL, + f = c.createObjectURL(t); + i ? (i.location = f) : (location.href = f), + (i = null), + setTimeout(function() { + c.revokeObjectURL(f); + }, 4e4); + } + }); + (o.saveAs = a.saveAs = a), (t.exports = a); + }) + ? r.apply(e, i) + : r) || (t.exports = o); + }.call(this, n(13))); + }, + function(t, e) { + function n(t, e, n, r, i, o, a) { + try { + var s = t[o](a), + u = s.value; + } catch (t) { + return void n(t); + } + s.done ? e(u) : Promise.resolve(u).then(r, i); + } + t.exports = function(t) { + return function() { + var e = this, + r = arguments; + return new Promise(function(i, o) { + var a = t.apply(e, r); + function s(t) { + n(a, i, o, s, u, 'next', t); + } + function u(t) { + n(a, i, o, s, u, 'throw', t); + } + s(void 0); + }); + }; + }; + }, + function(t, e, n) { + var r = n(287); + t.exports = function(t, e) { + if (null == t) return {}; + var n, + i, + o = r(t, e); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(t); + for (i = 0; i < a.length; i++) + (n = a[i]), + e.indexOf(n) >= 0 || + (Object.prototype.propertyIsEnumerable.call(t, n) && + (o[n] = t[n])); + } + return o; + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.htmlparser2 = e.convertNodeToElement = e.processNodes = void 0); + var r = n(82); + Object.defineProperty(e, 'processNodes', { + enumerable: !0, + get: function() { + return s(r).default; + } + }); + var i = n(128); + Object.defineProperty(e, 'convertNodeToElement', { + enumerable: !0, + get: function() { + return s(i).default; + } + }); + var o = n(36); + Object.defineProperty(e, 'htmlparser2', { + enumerable: !0, + get: function() { + return s(o).default; + } + }); + var a = s(n(335)); + function s(t) { + return t && t.__esModule ? t : { default: t }; + } + e.default = a.default; + }, + function(t, e, n) { + var r; + window, + (r = function(t, e) { + return (function(t) { + var e = {}; + function n(r) { + if (e[r]) return e[r].exports; + var i = (e[r] = { i: r, l: !1, exports: {} }); + return ( + t[r].call(i.exports, i, i.exports, n), (i.l = !0), i.exports + ); + } + return ( + (n.m = t), + (n.c = e), + (n.d = function(t, e, r) { + n.o(t, e) || + Object.defineProperty(t, e, { enumerable: !0, get: r }); + }), + (n.r = function(t) { + 'undefined' != typeof Symbol && + Symbol.toStringTag && + Object.defineProperty(t, Symbol.toStringTag, { + value: 'Module' }), - (r.prototype.yv = function(t) { - var e = t.axis && 'y2' === t.axis ? this.y2 : this.y; - return Math.ceil(e(t.value)); - }), - (r.prototype.subxx = function(t) { - return t ? this.subX(t.x) : null; + Object.defineProperty(t, '__esModule', { value: !0 }); + }), + (n.t = function(t, e) { + if ((1 & e && (t = n(t)), 8 & e)) return t; + if (4 & e && 'object' == typeof t && t && t.__esModule) + return t; + var r = Object.create(null); + if ( + (n.r(r), + Object.defineProperty(r, 'default', { + enumerable: !0, + value: t }), - (r.prototype.transformMain = function(t, e) { - var n, + 2 & e && 'string' != typeof t) + ) + for (var i in t) + n.d( r, i, - o = this; - e && e.axisX - ? (n = e.axisX) - : ((n = o.main.select('.' + w.axisX)), - t && (n = n.transition())), - e && e.axisY - ? (r = e.axisY) - : ((r = o.main.select('.' + w.axisY)), - t && (r = r.transition())), - e && e.axisY2 - ? (i = e.axisY2) - : ((i = o.main.select('.' + w.axisY2)), - t && (i = i.transition())), - (t ? o.main.transition() : o.main).attr( - 'transform', - o.getTranslate('main') - ), - n.attr('transform', o.getTranslate('x')), - r.attr('transform', o.getTranslate('y')), - i.attr('transform', o.getTranslate('y2')), - o.main - .select('.' + w.chartArcs) - .attr('transform', o.getTranslate('arc')); - }), - (r.prototype.transformAll = function(t, e) { - var n = this; - n.transformMain(t, e), - n.config.subchart_show && n.transformContext(t, e), - n.legend && n.transformLegend(t); - }), - (r.prototype.updateSvgSize = function() { - var t = this, - e = t.svg.select('.c3-brush .overlay'); - t.svg - .attr('width', t.currentWidth) - .attr('height', t.currentHeight), - t.svg - .selectAll(['#' + t.clipId, '#' + t.clipIdForGrid]) - .select('rect') - .attr('width', t.width) - .attr('height', t.height), - t.svg - .select('#' + t.clipIdForXAxis) - .select('rect') - .attr('x', t.getXAxisClipX.bind(t)) - .attr('y', t.getXAxisClipY.bind(t)) - .attr('width', t.getXAxisClipWidth.bind(t)) - .attr('height', t.getXAxisClipHeight.bind(t)), - t.svg - .select('#' + t.clipIdForYAxis) - .select('rect') - .attr('x', t.getYAxisClipX.bind(t)) - .attr('y', t.getYAxisClipY.bind(t)) - .attr('width', t.getYAxisClipWidth.bind(t)) - .attr('height', t.getYAxisClipHeight.bind(t)), - t.svg - .select('#' + t.clipIdForSubchart) - .select('rect') - .attr('width', t.width) - .attr('height', e.size() ? e.attr('height') : 0), - t.selectChart.style('max-height', t.currentHeight + 'px'); - }), - (r.prototype.updateDimension = function(t) { - var e = this; - t || - (e.config.axis_rotated - ? (e.axes.x.call(e.xAxis), e.axes.subx.call(e.subXAxis)) - : (e.axes.y.call(e.yAxis), e.axes.y2.call(e.y2Axis))), - e.updateSizes(), - e.updateScales(), - e.updateSvgSize(), - e.transformAll(!1); - }), - (r.prototype.observeInserted = function(t) { - var e, - n = this; - 'undefined' != typeof MutationObserver - ? (e = new MutationObserver(function(r) { - r.forEach(function(r) { - 'childList' === r.type && - r.previousSibling && - (e.disconnect(), - (n.intervalForObserveInserted = window.setInterval( - function() { - t.node().parentNode && - (window.clearInterval( - n.intervalForObserveInserted - ), - n.updateDimension(), - n.brush && n.brush.update(), - n.config.oninit.call(n), - n.redraw({ - withTransform: !0, - withUpdateXDomain: !0, - withUpdateOrgXDomain: !0, - withTransition: !1, - withTransitionForTransform: !1, - withLegend: !0 - }), - t.transition().style('opacity', 1)); - }, - 10 - ))); - }); - })).observe(t.node(), { - attributes: !0, - childList: !0, - characterData: !0 - }) - : window.console.error('MutationObserver not defined.'); - }), - (r.prototype.bindResize = function() { - var t = this, - e = t.config; - if ( - ((t.resizeFunction = t.generateResize()), - t.resizeFunction.add(function() { - e.onresize.call(t); - }), - e.resize_auto && - t.resizeFunction.add(function() { - void 0 !== t.resizeTimeout && - window.clearTimeout(t.resizeTimeout), - (t.resizeTimeout = window.setTimeout(function() { - delete t.resizeTimeout, - t.updateAndRedraw({ - withUpdateXDomain: !1, - withUpdateOrgXDomain: !1, - withTransition: !1, - withTransitionForTransform: !1, - withLegend: !0 - }), - t.brush && t.brush.update(); - }, 100)); - }), - t.resizeFunction.add(function() { - e.onresized.call(t); + function(e) { + return t[e]; + }.bind(null, i) + ); + return r; + }), + (n.n = function(t) { + var e = + t && t.__esModule + ? function() { + return t.default; + } + : function() { + return t; + }; + return n.d(e, 'a', e), e; + }), + (n.o = function(t, e) { + return Object.prototype.hasOwnProperty.call(t, e); + }), + (n.p = ''), + n((n.s = 20)) + ); + })([ + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.each = function(t, e, n) { + var r; + if (!t) return 0; + if (((n = n || t), t instanceof Array)) { + for (r = 0; r < t.length; r++) + if (!1 === e.call(n, t[r], r, t)) return 0; + } else + for (r in t) + if (t.hasOwnProperty(r) && !1 === e.call(n, t[r], r, t)) + return 0; + return 1; + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t, e) { + var n = document.createElement('input'); + if ( + ((n.value = t), + document.body.appendChild(n), + n.select(), + document.execCommand('copy'), + document.body.removeChild(n), + e) + ) { + var r = document.createElement('div'); + (r.style.padding = '5px 10px'), + (r.style.backgroundColor = '#ffffff'), + (r.style.fontSize = '12px'), + (r.style.position = 'absolute'), + (r.style.top = e.pageY + 'px'), + (r.style.left = e.pageX + 10 + 'px'), + (r.style.zIndex = '999'), + (r.style.opacity = 1), + (r.style.transition = 'opacity 1s ease'), + (r.innerText = 'copied!'), + document.body.appendChild(r), + document.addEventListener('mousemove', function(t) { + return (function(t, e) { + (e.style.opacity = 0), + (e.style.top = t.pageY + 'px'), + (e.style.left = t.pageX + 10 + 'px'); + })(t, r); }), - (t.resizeIfElementDisplayed = function() { - null != t.api && - t.api.element.offsetParent && - t.resizeFunction(); + setTimeout(function() { + (r.style.opacity = 1), document.body.removeChild(r); + }, 1e3); + } + }); + }, + function(e, n) { + e.exports = t; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.prettyNumber = function(t) { + var e = (t = Number(t)).toPrecision(3), + n = '', + r = ['', 'k', 'M', 'B', 'T']; + return Number(e) == t && String(t).length <= 4 + ? String(t) + : Math.abs(t) >= 1e15 + ? e + : t >= 1 || t <= -1 + ? (t < 0 && ((t = -t), (n = '-')), + n + + (function t(e, n) { + var i = (e = String(e)).split('.'); + if (i.length > 1) { + e = i[0]; + var o = i[1]; + 2 == e.length && o.length > 0 + ? o.length > 0 + ? (e = e + '.' + o.charAt(0)) + : (e += '0') + : 1 == e.length && + o.length > 0 && + ((e = e + '.' + o.charAt(0)), + o.length > 1 ? (e += o.charAt(1)) : (e += '0')); + } + var a = e.length; + return ( + e.split('.').length > 1 && a--, + a <= 3 + ? String(e) + r[n] + : t(Number(e) / 1e3, n + 1) + ); + })(t, 0)) + : t.toPrecision(3); + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.escapeHtml = function(t) { + var e, + n = '' + t, + i = r.exec(n); + if (!i) return n; + var o = '', + a = 0, + s = 0; + for (a = i.index; a < n.length; a++) { + switch (n.charCodeAt(a)) { + case 34: + e = '"'; + break; + case 38: + e = '&'; + break; + case 39: + e = '''; + break; + case 60: + e = '<'; + break; + case 62: + e = '>'; + break; + default: + continue; + } + s !== a && (o += n.substring(s, a)), (s = a + 1), (o += e); + } + return s !== a ? o + n.substring(s, a) : o; + }); + var r = /["'&<>]/; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.extend = function(t) { + for (var e = 1; e < arguments.length; e++) + for (var n in arguments[e]) t[n] = arguments[e][n]; + return t; + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.textWrap = function(t, e) { + t.each(function() { + for ( + var t = r.select(this), + n = t + .text() + .split(/\s+/) + .reverse(), + i = void 0, + o = [], + a = 0, + s = t.attr('x'), + u = t.attr('y'), + l = t + .text(null) + .append('tspan') + .attr('x', s) + .attr('y', u) + .attr('dy', '0em'); + (i = n.pop()); + + ) + o.push(i), + l.text(o.join(' ')), + l.node().getComputedTextLength() > e && + (o.pop(), + l.text(o.join(' ')), + (o = [i]), + (l = t + .append('tspan') + .attr('x', s) + .attr('y', u) + .attr('dy', 1.1 * ++a + 0 + 'em') + .text(i))); + }); + }); + var r = (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]); + return (e.default = t), e; + })(n(2)); + }, + function(t, e) { + var n; + n = (function() { + return this; + })(); + try { + n = n || new Function('return this')(); + } catch (t) { + 'object' == typeof window && (n = window); + } + t.exports = n; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.appendColumn = s), + (e.appendRow = u); + var r, + i = n(9), + o = (r = i) && r.__esModule ? r : { default: r }, + a = n(0); + function s(t, e) { + var n = this, + r = + (Array.prototype.slice.call(arguments, 2), + void 0 !== t ? t : null); + return ( + 'function' == typeof e + ? (n.matrix[0].push(r), + (0, a.each)(n.matrix, function(t, r) { + var i = void 0; + r > 0 && + (void 0 === (i = e.call(n, t, r)) && (i = null), + n.matrix[r].push(i)); + })) + : (!e || e instanceof Array) && + ((e = e || []).length <= n.matrix.length - 1 + ? (e = e.concat( + (0, o.default)(n.matrix.length - 1 - e.length) + )) + : (0, a.each)(e, function(t, r) { + n.matrix.length - 1 < e.length && + u.call(n, String(n.matrix.length)); + }), + n.matrix[0].push(r), + (0, a.each)(e, function(t, e) { + n.matrix[e + 1][n.matrix[0].length - 1] = t; + })), + n + ); + } + function u(t, e) { + var n = this, + r = + (Array.prototype.slice.call(arguments, 2), + void 0 !== t ? t : null), + i = []; + return ( + i.push(r), + 'function' == typeof e + ? ((0, a.each)(n.matrix[0], function(t, r) { + var o = void 0, + a = void 0; + r > 0 && + ((o = n.selectColumn(r)), + void 0 === (a = e.call(n, o, r)) && (a = null), + i.push(a)); }), - window.attachEvent) - ) - window.attachEvent( - 'onresize', - t.resizeIfElementDisplayed - ); - else if (window.addEventListener) - window.addEventListener( - 'resize', - t.resizeIfElementDisplayed, - !1 - ); - else { - var n = window.onresize; - n - ? (n.add && n.remove) || - (n = t.generateResize()).add(window.onresize) - : (n = t.generateResize()), - n.add(t.resizeFunction), - (window.onresize = function() { - t.api.element.offsetParent && n(); - }); + n.matrix.push(i)) + : (!e || e instanceof Array) && + ((e = e || []).length <= n.matrix[0].length - 1 + ? (e = e.concat( + (0, o.default)(n.matrix[0].length - 1 - e.length) + )) + : (0, a.each)(e, function(t, r) { + n.matrix[0].length - 1 < e.length && + s.call(n, String(n.matrix[0].length)); + }), + n.matrix.push(i.concat(e))), + n + ); + } + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t) { + for (var e = [], n = 0; n < t; n++) e.push(null); + return e; + }); + }, + function(t, n) { + t.exports = e; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(t) { + return typeof t; } + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t; + }; + function i(t) { + return ( + null !== t && + 'function' == typeof t.getTime && + !isNaN(t.getTime()) + ); + } + function o(t) { + return /^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d+)?(([+-]\d\d:\d\d)|Z)?$/i.test( + t + ); + } + (e.testObject = i), + (e.testString = o), + (e.default = function(t) { + return 'object' === (void 0 === t ? 'undefined' : r(t)) + ? i(t) + : 'string' == typeof t && o(t); + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.Dataset = void 0); + var r = p(n(8)), + i = p(n(22)), + o = p(n(23)), + a = p(n(24)), + s = p(n(25)), + u = p(n(26)), + l = p(n(27)), + c = h(n(13)), + f = n(5), + d = h(n(28)); + function h(t) { + return t && t.__esModule ? t : { default: t }; + } + function p(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]); + return (e.default = t), e; + } + var g = (e.Dataset = function t() { + var e = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : {}; + if (this instanceof t == 0) return new t(e); + (this.matrix = [['Index']]), + (this.meta = { type: void 0 }), + (this.config = e); + }); + (g.prototype.data = function(t) { + return arguments.length + ? ((this.matrix = t instanceof Array ? t : null), this) + : this.matrix; + }), + (g.prototype.set = function(t, e) { + if (arguments.length < 2 || t.length < 2) + throw Error('Incorrect arguments provided for #set method'); + var n = + 'number' == typeof t[0] + ? t[0] + : this.matrix[0].indexOf(t[0]), + i = + 'number' == typeof t[1] + ? t[1] + : s.selectColumn.call(this, 0).indexOf(t[1]), + o = s.selectColumn.call(this, t[0]), + a = s.selectRow.call(this, t[1]); + return ( + o.length < 1 && + (r.appendColumn.call(this, String(t[0])), + (n = this.matrix[0].length - 1)), + a.length < 1 && + (r.appendRow.call(this, String(t[1])), + (i = this.matrix.length - 1)), + (this.matrix[i][n] = e), + this + ); + }), + (g.prototype.type = function(t) { + return arguments.length + ? ((this.meta.type = t ? String(t) : void 0), this) + : this.meta.type; + }), + (0, f.extend)(g.prototype, r), + (0, f.extend)(g.prototype, i), + (0, f.extend)(g.prototype, o), + (0, f.extend)(g.prototype, a), + (0, f.extend)(g.prototype, s), + (0, f.extend)(g.prototype, u), + (0, f.extend)(g.prototype, l), + (0, f.extend)(g.prototype, c.default), + (g.parser = (0, d.default)(g)), + (e.default = g); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = n(0); + function i(t, e, n) { + var i = t.slice(e || 0, n ? n + 1 : t.length), + o = 0; + return ( + (0, r.each)(i, function(t, e) { + 'number' != typeof t || + isNaN(parseFloat(t)) || + (o += parseFloat(t)); }), - (r.prototype.bindWindowFocus = function() { - var t = this; - this.windowFocusHandler || - ((this.windowFocusHandler = function() { - t.redraw(); - }), - window.addEventListener( - 'focus', - this.windowFocusHandler - )); - }), - (r.prototype.unbindWindowFocus = function() { - window.removeEventListener( - 'focus', - this.windowFocusHandler - ), - delete this.windowFocusHandler; + o / i.length + ); + } + function o(t, e, n) { + var i = t.slice(e || 0, n ? n + 1 : t.length), + o = []; + return ( + (0, r.each)(i, function(t, e) { + 'number' != typeof t || + isNaN(parseFloat(t)) || + o.push(parseFloat(t)); }), - (r.prototype.generateResize = function() { - var t = []; - function e() { - t.forEach(function(t) { - t(); - }); - } - return ( - (e.add = function(e) { - t.push(e); - }), - (e.remove = function(e) { - for (var n = 0; n < t.length; n++) - if (t[n] === e) { - t.splice(n, 1); - break; - } - }), - e - ); + Math.max.apply(Math, o) + ); + } + function a(t, e, n) { + var i = t.slice(e || 0, n ? n + 1 : t.length), + o = []; + return ( + (0, r.each)(i, function(t, e) { + 'number' != typeof t || + isNaN(parseFloat(t)) || + o.push(parseFloat(t)); }), - (r.prototype.endall = function(t, e) { - var n = 0; - t.each(function() { - ++n; - }).on('end', function() { - --n || e.apply(this, arguments); - }); + Math.min.apply(Math, o) + ); + } + function s(t, e, n) { + var i = t.slice(e || 0, n ? n + 1 : t.length), + o = 0; + return ( + (0, r.each)(i, function(t, e) { + 'number' != typeof t || + isNaN(parseFloat(t)) || + (o += parseFloat(t)); }), - (r.prototype.generateWait = function() { - var t = this, - e = [], - n = function(n) { - var r = setInterval(function() { - if (t.isTabVisible()) { - var i = 0; - e.forEach(function(t) { - if (t.empty()) i += 1; - else - try { - t.transition(); - } catch (t) { - i += 1; - } - }), - i === e.length && (clearInterval(r), n && n()); + o + ); + } + n(5); + var u = function(t) { + return i(t, 1); + }, + l = u, + c = function(t) { + return s(t, 1); + }, + f = c, + d = function(t) { + return o(t, 1); + }, + h = d, + p = function(t) { + return a(t, 1); + }, + g = p, + m = function(t) { + return t[0]; + }, + v = m; + e.default = { + average: i, + maximum: o, + minimum: a, + sum: s, + getColumnAverage: u, + getRowAverage: l, + getColumnSum: c, + getRowSum: f, + getColumnMaximum: d, + getRowMaximum: h, + getColumnMinimum: p, + getRowMinimum: g, + getColumnLabel: m, + getRowIndex: v + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.stripHtmlTags = function(t) { + return 'string' != typeof t + ? t + : t.replace(/(<([^>]+)>)/gi, ''); + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(t) { + return typeof t; + } + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t; + }; + e.extendDeep = function t(e) { + for (var n = 1; n < arguments.length; n++) + (0, i.each)(arguments[n], function(n, i) { + void 0 !== e[i] && + void 0 !== n && + 'object' === r(e[i]) && + 'object' === (void 0 === n ? 'undefined' : r(n)) && + null !== e[i] && + null !== n + ? t(e[i], n) + : (e[i] = n); + }); + return e; + }; + var i = n(0); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function() { + var t = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : {}, + e = t.element, + n = t.label, + r = void 0 === n ? 'Download' : n, + i = t.type, + a = void 0 === i ? 'json' : i, + s = t.data; + if ( + ![] + .concat( + (function(t) { + if (Array.isArray(t)) { + for ( + var e = 0, n = Array(t.length); + e < t.length; + e++ + ) + n[e] = t[e]; + return n; } - }, 50); - }; - return ( - (n.add = function(t) { - e.push(t); + return Array.from(t); + })(e.parentNode.children) + ) + .find(function(t) { + return 'keen-dataviz-button' === t.className; + }) + ) { + var u = document.createElement('button'); + (u.innerText = r), + (u.className = 'keen-dataviz-button'), + u.addEventListener('click', function(t) { + return (0, o.default)({ event: t, type: a, data: s }); }), - n - ); - }), - (r.prototype.parseDate = function(e) { - var n; - return ( - e instanceof Date - ? (n = e) - : 'string' == typeof e - ? (n = this.dataTimeParse(e)) - : 'object' === t(e) - ? (n = new Date(+e)) - : 'number' != typeof e || - isNaN(e) || - (n = new Date(+e)), - (n && !isNaN(+n)) || - window.console.error( - "Failed to parse x '" + e + "' to Date object" - ), - n - ); - }), - (r.prototype.isTabVisible = function() { - return !document.hidden; - }), - (r.prototype.getPathBox = l), - (r.prototype.CLASS = w), - 'SVGPathSeg' in window || - ((window.SVGPathSeg = function(t, e, n) { - (this.pathSegType = t), - (this.pathSegTypeAsLetter = e), - (this._owningPathSegList = n); - }), - (window.SVGPathSeg.prototype.classname = 'SVGPathSeg'), - (window.SVGPathSeg.PATHSEG_UNKNOWN = 0), - (window.SVGPathSeg.PATHSEG_CLOSEPATH = 1), - (window.SVGPathSeg.PATHSEG_MOVETO_ABS = 2), - (window.SVGPathSeg.PATHSEG_MOVETO_REL = 3), - (window.SVGPathSeg.PATHSEG_LINETO_ABS = 4), - (window.SVGPathSeg.PATHSEG_LINETO_REL = 5), - (window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS = 6), - (window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL = 7), - (window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS = 8), - (window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL = 9), - (window.SVGPathSeg.PATHSEG_ARC_ABS = 10), - (window.SVGPathSeg.PATHSEG_ARC_REL = 11), - (window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS = 12), - (window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL = 13), - (window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS = 14), - (window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL = 15), - (window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16), - (window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17), - (window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18), - (window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19), - (window.SVGPathSeg.prototype._segmentChanged = function() { - this._owningPathSegList && - this._owningPathSegList.segmentChanged(this); - }), - (window.SVGPathSegClosePath = function(t) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_CLOSEPATH, - 'z', - t + e.parentNode.insertBefore(u, e.nextSibling); + } + }); + var r, + i = n(40), + o = (r = i) && r.__esModule ? r : { default: r }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t) { + var e = t.node, + n = t.quality, + r = t.bgcolor; + if (n) { + if (n < 0 || n > 1) + throw Error( + 'Please provide image quality between 0 and 1' ); + o.default + .toBlob(e, { quality: n, bgcolor: r }) + .then(function(t) { + (0, a.saveAs)(t, 'chart.jpeg'); + }); + } + n || + o.default.toBlob(e).then(function(t) { + (0, a.saveAs)(t, 'chart.png'); + }); + }); + var r, + i = n(41), + o = (r = i) && r.__esModule ? r : { default: r }, + a = n(42); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t) { + var e = t.type, + n = t.data, + r = e.toLowerCase(); + if (!['json', 'csv'].includes(e)) + throw new Error('This type is not supported'); + var i = '', + o = ''; + 'json' === r && + ((o = + 'data:text/json;charset=utf-8, ' + + encodeURIComponent(JSON.stringify(n))), + (i = r)), + 'csv' === r && + (o = (function(t) { + var e = 'data:text/csv;charset=utf-8,'; + return ( + t.forEach(function(n, r) { + n.forEach(function(t, r) { + (e += String(t).replace(/,/g, '')), + n.length > r + 1 && (e += ','); + }), + t.length > r + 1 && (e += '\n'); + }), + e + ); + })(n)); + var a = document.createElement('a'); + a.setAttribute('href', o), + a.setAttribute('download', 'chart.' + i), + document.body.appendChild(a), + a.click(), + document.body.removeChild(a); + }); + }, + function(t, e, n) { + (function(e) { + var n, r, i, o, a; + void 0 === e && (this.window || this.global), + (t.exports = + ((n = function(t, e) { + var n = document.createElement(t); + return e && n.classList.add(e), n; }), - (window.SVGPathSegClosePath.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegClosePath.prototype.toString = function() { - return '[object SVGPathSegClosePath]'; + (r = function(t) { + return t && 'function' == typeof t; }), - (window.SVGPathSegClosePath.prototype._asPathString = function() { - return this.pathSegTypeAsLetter; + (i = function(t, e, n) { + var r; + return function() { + if (((n = n || this), !r)) + return ( + t.apply(n, arguments), + (r = !0), + setTimeout(function() { + r = !1; + }, e) + ); + }; }), - (window.SVGPathSegClosePath.prototype.clone = function() { - return new window.SVGPathSegClosePath(void 0); + ((a = (o = function(t, e) { + (this.plugins = ['ruler']), + 'string' == typeof t && (t = document.querySelector(t)), + (this.input = t), + (this.config = Object.assign( + {}, + { + type: 'single', + tooltips: 'always', + updateThrottle: 30, + formatTooltip: function(t) { + return t; + }, + classes: { + input: 'rangeable-input', + container: 'rangeable-container', + vertical: 'rangeable-vertical', + progress: 'rangeable-progress', + handle: 'rangeable-handle', + track: 'rangeable-track', + multiple: 'rangeable-multiple', + disabled: 'rangeable-disabled', + tooltips: 'rangeable-tooltips', + tooltip: 'rangeable-tooltip', + visible: 'rangeable-tooltips--visible' + } + }, + e + )), + (this.mouseAxis = { x: 'clientX', y: 'clientY' }), + (this.trackSize = { x: 'width', y: 'height' }), + (this.trackPos = { x: 'left', y: 'top' }), + (this.lastPos = 0), + (this.double = + 'double' === this.config.type || + Array.isArray(this.config.value)), + (this.touch = + 'ontouchstart' in window || + (window.DocumentTouch && + document instanceof DocumentTouch)), + (this.version = '0.1.6'), + this.init(), + this.onInit(); + }).prototype).init = function() { + if (!this.input.rangeable) { + var t, + e = { + min: 0, + max: 100, + step: 1, + value: this.input.value + }; + for (t in e) + this.input[t] || (this.input[t] = e[t]), + void 0 !== this.config[t] && + (this.input[t] = this.config[t]); + (this.axis = this.config.vertical ? 'y' : 'x'), + (this.input.rangeable = this), + this.double + ? ((this.input.values = this.config.value + ? this.config.value + : [this.input.min, this.input.max]), + (this.input.defaultValues = this.input.values.slice())) + : this.input.defaultValue || + (this.input.defaultValue = this.input.value), + this.render(), + (this.initialised = !0); + } }), - (window.SVGPathSegMovetoAbs = function(t, e, n) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_MOVETO_ABS, - 'M', - t - ), - (this._x = e), - (this._y = n); + (a.render = function() { + var t = this, + e = this.config, + r = e.classes, + i = n('div', r.container), + o = n('div', r.track), + a = n('div', r.progress), + s = n('div', r.handle), + u = n('div', r.tooltip); + if (((this.input.tabIndex = -1), this.double)) { + (s = [n('div', r.handle), n('div', r.handle)]), + (u = []); + for (var l = 0; 3 > l; l++) u[l] = n('div', r.tooltip); + s.forEach(function(t, n) { + (t.index = n), + a.appendChild(t), + t.appendChild(u[n]), + (t.tabIndex = 1), + e.controls && + e.controls[n] && + e.controls[n].locked && + !0 === e.controls[n].locked && + (t.locked = !0); + }), + e.vertical && a.appendChild(s[0]), + a.appendChild(u[2]), + i.classList.add(r.multiple); + } else + a.appendChild(s), + s.appendChild(u), + (s.tabIndex = 1), + e.controls && + e.controls.locked && + !0 === e.controls.locked && + (s.locked = !0); + if ( + (i.appendChild(o), + e.vertical && i.classList.add(r.vertical), + e.size && + (i.style[this.trackSize[this.axis]] = isNaN(e.size) + ? e.size + : e.size + 'px'), + e.tooltips && + (i.classList.add(r.tooltips), + 'string' == typeof e.tooltips && + 'always' === e.tooltips && + i.classList.add(r.visible)), + (this.nodes = { + container: i, + track: o, + progress: a, + handle: s, + tooltip: u + }), + this.double) + ) { + this.nodes.buffer = []; + var c = n('div', 'rangeable-buffers'); + this.input.values.forEach(function(r, i) { + var a = n('div', 'rangeable-buffer'); + c.appendChild(a), + t.nodes.buffer.push(a), + o.appendChild(c), + e.controls && + ((t.limits = [{}, {}]), + void 0 !== e.controls[i].min && + (t.limits[i].min = e.controls[i].min), + void 0 !== e.controls[i].max && + (t.limits[i].max = e.controls[i].max)); + }); + } else + (s = n('div', 'rangeable-buffer')), + o.appendChild(s), + (this.nodes.buffer = s), + o.appendChild(s), + e.controls && + ((this.limits = {}), + void 0 !== e.controls.min && + (this.limits.min = e.controls.min), + void 0 !== e.controls.max && + (this.limits.max = e.controls.max)); + this.setLimits(e.controls), + o.appendChild(a), + this.input.parentNode.insertBefore(i, this.input), + i.insertBefore(this.input, o), + this.input.classList.add(r.input), + this.bind(), + this.update(); }), - (window.SVGPathSegMovetoAbs.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegMovetoAbs.prototype.toString = function() { - return '[object SVGPathSegMovetoAbs]'; + (a.reset = function() { + this.double + ? this.input.defaultValues.forEach(this.setValue, this) + : this.setValue(this.input.defaultValue), + this.onEnd(); }), - (window.SVGPathSegMovetoAbs.prototype._asPathString = function() { + (a.setValueFromPosition = function(t) { + var e = this.getLimits(), + n = parseFloat(this.input.step), + r = this.touch + ? t.touches[0][this.mouseAxis[this.axis]] + : t[this.mouseAxis[this.axis]], + i = r - this.rects.container[this.trackPos[this.axis]], + o = this.rects.container[this.trackSize[this.axis]]; return ( - this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y - ); - }), - (window.SVGPathSegMovetoAbs.prototype.clone = function() { - return new window.SVGPathSegMovetoAbs( - void 0, - this._x, - this._y + ('mousedown' !== t.type || + !( + (!this.double && + this.nodes.handle.contains(t.target)) || + (this.double && + (this.nodes.handle[0].contains(t.target) || + this.nodes.handle[1].contains(t.target))) + )) && + ((t = + ((this.config.vertical + ? ((o - i) / o) * 100 + : (i / o) * 100) * + (e.max - e.min)) / + 100 + + e.min), + (t = Math.ceil(t / n) * n), + r >= this.lastPos && (t -= n), + parseFloat(t) !== parseFloat(this.startValue) && + ((n = !1), + this.double && (n = this.activeHandle.index), + (t = this.limit(t, n)), + void this.setValue(t, n))) ); }), - Object.defineProperty( - window.SVGPathSegMovetoAbs.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegMovetoAbs.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegMovetoRel = function(t, e, n) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_MOVETO_REL, - 'm', - t - ), - (this._x = e), - (this._y = n); - }), - (window.SVGPathSegMovetoRel.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegMovetoRel.prototype.toString = function() { - return '[object SVGPathSegMovetoRel]'; - }), - (window.SVGPathSegMovetoRel.prototype._asPathString = function() { + (a.start = function(t) { return ( - this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y - ); - }), - (window.SVGPathSegMovetoRel.prototype.clone = function() { - return new window.SVGPathSegMovetoRel( - void 0, - this._x, - this._y + t.preventDefault(), + (this.startValue = this.getValue()), + this.onStart(), + this.nodes.container.classList.add('dragging'), + this.recalculate(), + (this.activeHandle = this.getHandle(t)), + !!this.activeHandle && + (this.activeHandle.classList.add('active'), + this.setValueFromPosition(t), + void (this.touch + ? (document.addEventListener( + 'touchmove', + this.events.move, + !1 + ), + document.addEventListener( + 'touchend', + this.events.stop, + !1 + ), + document.addEventListener( + 'touchcancel', + this.events.stop, + !1 + )) + : (document.addEventListener( + 'mousemove', + this.events.move, + !1 + ), + document.addEventListener( + 'mouseup', + this.events.stop, + !1 + )))) ); }), - Object.defineProperty( - window.SVGPathSegMovetoRel.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegMovetoRel.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegLinetoAbs = function(t, e, n) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_LINETO_ABS, - 'L', - t - ), - (this._x = e), - (this._y = n); - }), - (window.SVGPathSegLinetoAbs.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegLinetoAbs.prototype.toString = function() { - return '[object SVGPathSegLinetoAbs]'; - }), - (window.SVGPathSegLinetoAbs.prototype._asPathString = function() { - return ( - this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y - ); + (a.move = function(t) { + this.setValueFromPosition(t), + (this.lastPos = this.touch + ? t.touches[0][this.mouseAxis[this.axis]] + : t[this.mouseAxis[this.axis]]); }), - (window.SVGPathSegLinetoAbs.prototype.clone = function() { - return new window.SVGPathSegLinetoAbs( - void 0, - this._x, - this._y - ); + (a.stop = function() { + (this.stopValue = this.getValue()), + this.nodes.container.classList.remove('dragging'), + this.onEnd(), + this.activeHandle.classList.remove('active'), + (this.activeHandle = !1), + this.touch + ? (document.removeEventListener( + 'touchmove', + this.events.move + ), + document.removeEventListener( + 'touchend', + this.events.stop + ), + document.removeEventListener( + 'touchcancel', + this.events.stop + )) + : (document.removeEventListener( + 'mousemove', + this.events.move + ), + document.removeEventListener( + 'mouseup', + this.events.stop + )), + this.startValue !== this.stopValue && + this.input.dispatchEvent(new Event('change')), + (this.startValue = null); }), - Object.defineProperty( - window.SVGPathSegLinetoAbs.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegLinetoAbs.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegLinetoRel = function(t, e, n) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_LINETO_REL, - 'l', - t - ), - (this._x = e), - (this._y = n); + (a.keydown = function(t) { + var e = this, + n = function(n) { + switch (t.key) { + case 'ArrowRight': + case 'ArrowUp': + e.stepUp(n); + break; + case 'ArrowLeft': + case 'ArrowDown': + e.stepDown(n); + } + }; + this.double + ? this.nodes.handle.forEach(function(t) { + t === document.activeElement && n(t.index); + }) + : this.nodes.handle === document.activeElement && n(); }), - (window.SVGPathSegLinetoRel.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegLinetoRel.prototype.toString = function() { - return '[object SVGPathSegLinetoRel]'; + (a.stepUp = function(t) { + var e = parseFloat(this.input.step), + n = this.getValue(); + this.double && void 0 !== t && (n = n[t]), + (e = this.limit(parseFloat(n) + e, t)), + this.setValue(e, t); }), - (window.SVGPathSegLinetoRel.prototype._asPathString = function() { + (a.stepDown = function(t) { + var e = parseFloat(this.input.step), + n = this.getValue(); + this.double && void 0 !== t && (n = n[t]), + (e = this.limit(parseFloat(n) - e, t)), + this.setValue(e, t); + }), + (a.limit = function(t, e) { + var n = this.input, + r = this.getLimits(); return ( - this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y + (t = parseFloat(t)), + this.double && void 0 !== e + ? (!e && t > n.values[1] + ? (t = n.values[1]) + : 0 < e && t < n.values[0] && (t = n.values[0]), + this.limits && + (e + ? t > this.limits[1].max + ? (t = this.limits[1].max) + : t < this.limits[1].min && + (t = this.limits[1].min) + : t > this.limits[0].max + ? (t = this.limits[0].max) + : t < this.limits[0].min && + (t = this.limits[0].min))) + : this.limits && + (t > this.limits.max + ? (t = this.limits.max) + : t < this.limits.min && (t = this.limits.min)), + t > r.max ? (t = r.max) : t < r.min && (t = r.min), + (t = parseFloat(t)).toFixed(this.accuracy) ); }), - (window.SVGPathSegLinetoRel.prototype.clone = function() { - return new window.SVGPathSegLinetoRel( - void 0, - this._x, - this._y - ); + (a.recalculate = function() { + var t = []; + this.double + ? this.nodes.handle.forEach(function(e, n) { + t[n] = e.getBoundingClientRect(); + }) + : (t = this.nodes.handle.getBoundingClientRect()), + (this.rects = { + handle: t, + container: this.nodes.container.getBoundingClientRect() + }); }), - Object.defineProperty( - window.SVGPathSegLinetoRel.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegLinetoRel.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegCurvetoCubicAbs = function( - t, - e, - n, - r, - i, - o, - a - ) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS, - 'C', - t - ), - (this._x = e), - (this._y = n), - (this._x1 = r), - (this._y1 = i), - (this._x2 = o), - (this._y2 = a); + (a.update = function() { + var t = this; + this.recalculate(), + (this.accuracy = 0), + this.input.step.includes('.') && + (this.accuracy = ( + this.input.step.split('.')[1] || [] + ).length); + var e = this.getValue(), + n = this.getLimits(), + r = this.rects.container[this.trackSize[this.axis]], + i = function(e, i, o) { + (e.style[t.config.vertical ? 'bottom' : 'left'] = + i + 'px'), + (e.style[t.trackSize[t.axis]] = + (o / n.max) * r - i + 'px'); + }; + this.double + ? (this.limits && + this.limits.forEach(function(e, o) { + i(t.nodes.buffer[o], (e.min / n.max) * r, e.max); + }), + this.input.values.forEach(function(e, n) { + t.setValue(t.limit(e, n), n); + })) + : (this.limits && + i( + this.nodes.buffer, + (this.limits.min / n.max) * r, + this.limits.max + ), + this.setValue(this.limit(e))); }), - (window.SVGPathSegCurvetoCubicAbs.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegCurvetoCubicAbs.prototype.toString = function() { - return '[object SVGPathSegCurvetoCubicAbs]'; + (a.getValue = function() { + return this.double ? this.input.values : this.input.value; }), - (window.SVGPathSegCurvetoCubicAbs.prototype._asPathString = function() { - return ( - this.pathSegTypeAsLetter + - ' ' + - this._x1 + - ' ' + - this._y1 + - ' ' + - this._x2 + - ' ' + - this._y2 + - ' ' + - this._x + - ' ' + - this._y - ); + (a.setValue = function(t, e) { + var n = this.nodes; + if (this.double && void 0 === e) return !1; + void 0 === t && (t = this.input.value), + (t = this.limit(t, e)); + var r = + this.initialised && + (t !== this.input.value || this.nativeEvent), + i = this.config.formatTooltip; + if (this.double) { + var o = this.input.values; + if (((o[e] = t), this.config.tooltips)) { + n.tooltip[e].textContent = i.call(this, t); + var a = n.tooltip[0].getBoundingClientRect(), + s = n.tooltip[1].getBoundingClientRect(); + (a = !( + a.right < s.left || + a.left > s.right || + a.bottom < s.top || + a.top > s.bottom + )), + n.container.classList.toggle('combined-tooltip', a), + a && + (n.tooltip[2].textContent = + o[0] === o[1] + ? i.call(this, o[0]) + : i.call(this, o[0]) + + ' - ' + + i.call(this, o[1])); + } + } else + (this.input.value = t), + (n.tooltip.textContent = i.call(this, t)); + this.setPosition(t, e), + r && + (this.onChange(), + this.nativeEvent || + this.input.dispatchEvent(new Event('input')), + (this.nativeEvent = !1)); }), - (window.SVGPathSegCurvetoCubicAbs.prototype.clone = function() { - return new window.SVGPathSegCurvetoCubicAbs( - void 0, - this._x, - this._y, - this._x1, - this._y1, - this._x2, - this._y2 - ); + (a.native = function() { + (this.nativeEvent = !0), this.setValue(); }), - Object.defineProperty( - window.SVGPathSegCurvetoCubicAbs.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicAbs.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicAbs.prototype, - 'x1', - { - get: function() { - return this._x1; - }, - set: function(t) { - (this._x1 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicAbs.prototype, - 'y1', - { - get: function() { - return this._y1; - }, - set: function(t) { - (this._y1 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicAbs.prototype, - 'x2', - { - get: function() { - return this._x2; - }, - set: function(t) { - (this._x2 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicAbs.prototype, - 'y2', - { - get: function() { - return this._y2; - }, - set: function(t) { - (this._y2 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegCurvetoCubicRel = function( - t, - e, - n, - r, - i, - o, - a - ) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL, - 'c', - t - ), - (this._x = e), - (this._y = n), - (this._x1 = r), - (this._y1 = i), - (this._x2 = o), - (this._y2 = a); + (a.getLimits = function() { + return { + min: parseFloat(this.input.min), + max: parseFloat(this.input.max) + }; }), - (window.SVGPathSegCurvetoCubicRel.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegCurvetoCubicRel.prototype.toString = function() { - return '[object SVGPathSegCurvetoCubicRel]'; + (a.setLimits = function(t) { + var e = this; + if (void 0 === t) return !1; + this.limits || (this.limits = t); + var n = function(t, e) { + void 0 !== e.min && (t.min = e.min), + void 0 !== e.max && (t.max = e.max); + }; + this.double + ? t.forEach(function(t, r) { + n(e.limits[r], t); + }) + : n(this.limits, t), + this.update(); }), - (window.SVGPathSegCurvetoCubicRel.prototype._asPathString = function() { - return ( - this.pathSegTypeAsLetter + - ' ' + - this._x1 + - ' ' + - this._y1 + - ' ' + - this._x2 + - ' ' + - this._y2 + - ' ' + - this._x + - ' ' + - this._y - ); + (a.setPosition = function(t) { + if (this.double) { + t = this.getPosition(this.input.values[0]); + var e = this.getPosition(this.input.values[1]); + (this.nodes.progress.style[ + this.config.vertical ? 'bottom' : 'left' + ] = t + 'px'), + (t = e - t); + } else t = this.getPosition(); + this.nodes.progress.style[this.trackSize[this.axis]] = + t + 'px'; }), - (window.SVGPathSegCurvetoCubicRel.prototype.clone = function() { - return new window.SVGPathSegCurvetoCubicRel( - void 0, - this._x, - this._y, - this._x1, - this._y1, - this._x2, - this._y2 + (a.getPosition = function(t) { + void 0 === t && (t = this.input.value); + var e = this.getLimits(); + return ( + ((t - e.min) / (e.max - e.min)) * + this.rects.container[this.trackSize[this.axis]] ); }), - Object.defineProperty( - window.SVGPathSegCurvetoCubicRel.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicRel.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicRel.prototype, - 'x1', - { - get: function() { - return this._x1; - }, - set: function(t) { - (this._x1 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicRel.prototype, - 'y1', - { - get: function() { - return this._y1; - }, - set: function(t) { - (this._y1 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicRel.prototype, - 'x2', - { - get: function() { - return this._x2; - }, - set: function(t) { - (this._x2 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicRel.prototype, - 'y2', - { - get: function() { - return this._y2; - }, - set: function(t) { - (this._y2 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegCurvetoQuadraticAbs = function( - t, - e, - n, - r, - i - ) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS, - 'Q', - t - ), - (this._x = e), - (this._y = n), - (this._x1 = r), - (this._y1 = i); + (a.getHandle = function(t) { + if (!this.double) + return !this.nodes.handle.locked && this.nodes.handle; + var e = this.rects, + n = Math.abs( + t[this.mouseAxis[this.axis]] - + e.handle[0][this.trackPos[this.axis]] + ); + return ( + (e = Math.abs( + t[this.mouseAxis[this.axis]] - + e.handle[1][this.trackPos[this.axis]] + )), + (t = t.target.closest( + '.' + this.config.classes.handle + )) || + (t = + n > e + ? this.nodes.handle[1] + : this.nodes.handle[0]), + !t.locked && t + ); }), - (window.SVGPathSegCurvetoQuadraticAbs.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegCurvetoQuadraticAbs.prototype.toString = function() { - return '[object SVGPathSegCurvetoQuadraticAbs]'; + (a.enable = function() { + this.input.disabled && + (this.nodes.container.addEventListener( + this.touch ? 'touchstart' : 'mousedown', + this.events.start, + !1 + ), + this.double + ? this.nodes.handle.forEach(function(t) { + return (t.tabIndex = 1); + }) + : (this.nodes.handle.tabIndex = 1), + this.nodes.container.classList.remove( + this.config.classes.disabled + ), + (this.input.disabled = !1)); }), - (window.SVGPathSegCurvetoQuadraticAbs.prototype._asPathString = function() { - return ( - this.pathSegTypeAsLetter + - ' ' + - this._x1 + - ' ' + - this._y1 + - ' ' + - this._x + - ' ' + - this._y - ); + (a.disable = function() { + this.input.disabled || + (this.nodes.container.removeEventListener( + this.touch ? 'touchstart' : 'mousedown', + this.events.start + ), + this.double + ? this.nodes.handle.forEach(function(t) { + return t.removeAttribute('tabindex'); + }) + : this.nodes.handle.removeAttribute('tabindex'), + this.nodes.container.classList.add( + this.config.classes.disabled + ), + (this.input.disabled = !0)); }), - (window.SVGPathSegCurvetoQuadraticAbs.prototype.clone = function() { - return new window.SVGPathSegCurvetoQuadraticAbs( - void 0, - this._x, - this._y, - this._x1, - this._y1 - ); + (a.bind = function() { + var t = this; + (this.events = {}), + 'start move stop update reset native keydown' + .split(' ') + .forEach(function(e) { + t.events[e] = t[e].bind(t); + }), + (this.events.scroll = i( + this.events.update, + this.config.updateThrottle + )), + (this.events.resize = i( + this.events.update, + this.config.updateThrottle + )), + document.addEventListener( + 'scroll', + this.events.scroll, + !1 + ), + window.addEventListener( + 'resize', + this.events.resize, + !1 + ), + document.addEventListener( + 'keydown', + this.events.keydown, + !1 + ), + this.nodes.container.addEventListener( + this.touch ? 'touchstart' : 'mousedown', + this.events.start, + !1 + ), + this.input.addEventListener( + 'input', + this.events.native, + !1 + ), + this.input.form && + this.input.form.addEventListener( + 'reset', + this.events.reset, + !1 + ); }), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticAbs.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticAbs.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticAbs.prototype, - 'x1', - { - get: function() { - return this._x1; - }, - set: function(t) { - (this._x1 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticAbs.prototype, - 'y1', - { - get: function() { - return this._y1; - }, - set: function(t) { - (this._y1 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegCurvetoQuadraticRel = function( - t, - e, - n, - r, - i - ) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL, - 'q', - t + (a.unbind = function() { + document.removeEventListener( + 'scroll', + this.events.scroll ), - (this._x = e), - (this._y = n), - (this._x1 = r), - (this._y1 = i); + window.removeEventListener( + 'resize', + this.events.resize + ), + document.removeEventListener( + 'keydown', + this.events.keydown + ), + this.nodes.container.removeEventListener( + this.touch ? 'touchstart' : 'mousedown', + this.events.start + ), + this.input.removeEventListener( + 'input', + this.events.native + ), + this.input.form && + this.input.form.removeEventListener( + 'reset', + this.events.reset + ), + (this.events = null); }), - (window.SVGPathSegCurvetoQuadraticRel.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegCurvetoQuadraticRel.prototype.toString = function() { - return '[object SVGPathSegCurvetoQuadraticRel]'; + (a.destroy = function() { + this.input.rangeable && + (this.unbind(), + this.input.classList.remove(this.config.classes.input), + this.nodes.container.parentNode.replaceChild( + this.input, + this.nodes.container + ), + delete this.input.rangeable, + (this.initialised = !1)); }), - (window.SVGPathSegCurvetoQuadraticRel.prototype._asPathString = function() { - return ( - this.pathSegTypeAsLetter + - ' ' + - this._x1 + - ' ' + - this._y1 + - ' ' + - this._x + - ' ' + - this._y - ); + (a.onInit = function() { + r(this.config.onInit) && + this.config.onInit.call(this, this.getValue()); }), - (window.SVGPathSegCurvetoQuadraticRel.prototype.clone = function() { - return new window.SVGPathSegCurvetoQuadraticRel( - void 0, - this._x, - this._y, - this._x1, - this._y1 - ); + (a.onStart = function() { + r(this.config.onStart) && + this.config.onStart.call(this, this.getValue()); }), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticRel.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticRel.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 + (a.onChange = function() { + r(this.config.onChange) && + this.config.onChange.call(this, this.getValue()); + }), + (a.onEnd = function() { + r(this.config.onEnd) && + this.config.onEnd.call(this, this.getValue()); + }), + o)); + }.call(this, n(7))); + }, + function(t, e, n) { + 'use strict'; + (function(t) { + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.Dataset = e.Dataviz = e.keenGlobals = e.extendKeenGlobalObject = void 0); + var r = n(21); + Object.defineProperty(e, 'Dataviz', { + enumerable: !0, + get: function() { + return r.Dataviz; + } + }), + Object.defineProperty(e, 'Dataset', { + enumerable: !0, + get: function() { + return r.Dataset; + } + }), + void 0 !== t || + ('undefined' != typeof self + ? self + : 'undefined' != typeof window && window), + (e.extendKeenGlobalObject = function(t) { + (t.KeenDataviz = r.Dataviz), + (t.KeenDataset = r.Dataset), + (t.Keen = t.Keen || {}), + (t.Keen.Dataset = r.Dataset), + (t.Keen.Dataviz = r.Dataviz); + }), + (e.keenGlobals = void 0), + 'undefined' != typeof webpackKeenGlobals && + (e.keenGlobals = webpackKeenGlobals), + (e.default = r.Dataviz); + }.call(this, n(7))); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.Dataset = e.Dataviz = void 0); + var r = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(t) { + return typeof t; } - ), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticRel.prototype, - 'x1', - { - get: function() { - return this._x1; - }, - set: function(t) { - (this._x1 = t), this._segmentChanged(); - }, - enumerable: !0 + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t; + }, + i = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }, + o = n(12); + Object.defineProperty(e, 'Dataset', { + enumerable: !0, + get: function() { + return o.Dataset; + } + }); + var a = (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && + (e[n] = t[n]); + return (e.default = t), e; + })(n(2)), + s = x(n(10)), + u = x(n(31)), + l = x(n(32)), + c = n(0), + f = x(n(11)), + d = n(14), + h = (n(4), x(n(33))), + p = n(15), + g = x(n(17)), + m = x(n(18)), + v = x(n(16)), + y = x(n(53)), + b = x(n(1)), + _ = x(n(54)); + function x(t) { + return t && t.__esModule ? t : { default: t }; + } + var w = (e.Dataviz = function t() { + var e = this, + n = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : {}; + if (this instanceof t == 0) return new t(n); + (this.c3 = s.default), (this.d3 = a); + var r = { + showDeprecationWarnings: !0, + showLoadingSpinner: !1, + container: void 0, + containerElement: void 0, + title: void 0, + showTitle: !0, + subtitle: void 0, + notes: void 0, + theme: 'keen-dataviz', + colors: [ + '#00bbde', + '#fe6672', + '#eeb058', + '#8a8ad6', + '#ff855c', + '#00cfbb', + '#5a9eed', + '#73d483', + '#c879bb', + '#0099b6', + '#d74d58', + '#cb9141', + '#6b6bb6', + '#d86945', + '#00aa99', + '#4281c9', + '#57b566', + '#ac5c9e', + '#27cceb', + '#ff818b', + '#f6bf71', + '#9b9be1', + '#ff9b79', + '#26dfcd', + '#73aff4', + '#87e096', + '#d88bcb' + ], + colorMapping: {}, + ui: { executionMetadata: !0 }, + utils: { clickToCopyToClipboard: !0 }, + indexBy: 'timeframe.start', + labels: [], + labelMapping: {}, + labelMappingRegExp: void 0, + errorMapping: {}, + showErrorMessages: !0, + library: 'default', + sortGroups: void 0, + sortIntervals: void 0, + results: void 0, + type: void 0, + stacked: !1, + dateFormat: void 0, + legend: { + show: !0, + position: 'right', + alignment: 'top', + label: { textMaxLength: 12 }, + pagination: { offset: 0, limit: 5 }, + tooltip: { show: !0, pointer: !0 }, + sort: void 0 + }, + axis: {}, + color: {}, + size: {}, + padding: { top: 15 }, + point: { + focus: { expand: { enabled: !1 } }, + r: 2, + show: !0, + sensitivity: 300 + }, + tooltip: { horizontal: !0, format: {} }, + transition: {}, + data: { + order: null, + selection: { enabled: !0, draggable: !0, multiple: !0 }, + onselected: function(t, n) { + var r = e.view._artifacts.c3 + .selected() + .reduce(function(t, e) { + return t + e.value; + }, 0); + (0, b.default)(r); + } + }, + grid: { y: { show: !0 } }, + partialIntervalIndicator: { + show: void 0, + className: 'partial-interval-indicator' + }, + timezone: 'UTC', + table: { schema: 'static' }, + renderOnVisible: !1, + funnel: { + lines: !0, + resultValues: !0, + percents: { + show: !1, + countingMethod: 'absolute', + decimals: 0 + }, + marginBetweenElements: !1, + hover: !0, + effect3d: 'both-sides', + minimalSize: !1 + }, + react: !1, + range: !1, + sparkline: !1, + choropleth: { + map: 'world', + borders: { show: !0, size: 0.5, color: '#000' }, + showSlider: !1 + }, + heatmap: {} + }; + (this.config = i({}, (0, p.extendDeep)(r, n))), + n.palette && + (_.default[n.palette] || + console.log('Colors pallete not found', n.palette), + (this.config.colors = _.default[n.palette].colors)), + this.config.type && (this.config.type = O(this.config.type)), + this.config.type && + this.config.type.includes('-range') && + ((this.config.range = !0), + (this.config.type = this.config.type.replace('-range', '')), + (this.config.legend.show = !1), + (this.config.stacking = 'normal'), + (this.config.labels = ['Max', 'Min']), + (this.config.colors = [ + this.config.colors[0], + this.config.colors[0] + ])), + this.config.stacking && (this.config.stacked = !0), + this.config.sparkline && + ((this.config.legend.show = !1), + (this.config.axis = { x: { show: !1 }, y: { show: !1 } }), + (this.config.grid = { x: { show: !1 }, y: { show: !1 } })), + this.config.container && this.el(this.config.container), + void 0 === n.legend || + n.legend || + (this.config.legend = i({}, n, { show: !1 })), + n.color && + n.color.pattern && + (this.config.colors = n.color.pattern), + this.config.legend && + this.config.legend.tooltip && + !1 === this.config.legend.tooltip.show && + void 0 === this.config.tooltip.show && + (this.config.tooltip = { show: !1 }), + (this.dataset = new o.Dataset(this.config)), + (this.view = { + _prepared: !1, + _rendered: !1, + _artifacts: {} + }), + t.visuals.push(this), + this.config.showLoadingSpinner && this.prepare(), + this.config.results && this.render(this.config.results), + (this.config.firstVisibilityState = document.visibilityState), + this.config.utils.clickToCopyToClipboard || + (this.config.data.onselected = function() {}), + n.data && + n.data.onselected && + (this.config.data.onselected = function(t, r) { + if ( + (n.data.onselected.bind(null, t, r)(), + e.config.utils.clickToCopyToClipboard) + ) { + var i = e.view._artifacts.c3 + .selected() + .reduce(function(t, e) { + return t + e.value; + }, 0); + (0, b.default)(i); } + }); + }); + function S(t) { + 2 !== t.data()[0].length || (0, f.default)(t.data()[1][0]) + ? t.dataset.updateRow( + 0, + function(e, n) { + return n > 0 && t.config.labels[n - 1] + ? (0, d.stripHtmlTags)(String(t.config.labels[n - 1])) + : (0, d.stripHtmlTags)(e); + }.bind(t) + ) + : t.dataset.updateColumn( + 0, + function(e, n) { + return t.config.labels[n - 1] + ? (0, d.stripHtmlTags)(String(t.config.labels[n - 1])) + : (0, d.stripHtmlTags)(e); + }.bind(t) + ); + } + function E(t) { + var e = t.datavizInstance, + n = t.value; + if (e.config.labelMappingRegExp) { + var r = n; + return ( + e.config.labelMappingRegExp.forEach(function(t) { + t.length > 1 && t[0].test(n) && (r = t[1]); + }), + (0, d.stripHtmlTags)(r) + ); + } + return e.config.labelMapping[n] + ? (0, d.stripHtmlTags)(String(e.config.labelMapping[n])) + : (0, d.stripHtmlTags)(n); + } + function k(t) { + t.config.labelMappingDimension || + (2 !== t.data()[0].length || (0, f.default)(t.data()[1][0]) + ? (t.config.labelMappingDimension = 'column') + : (t.config.labelMappingDimension = 'row')), + ('row' !== t.config.labelMappingDimension && + 'both' !== t.config.labelMappingDimension) || + t.dataset.updateColumn( + 0, + function(e) { + return E({ datavizInstance: t, value: e }); + }.bind(t) ), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticRel.prototype, - 'y1', - { - get: function() { - return this._y1; - }, - set: function(t) { - (this._y1 = t), this._segmentChanged(); + ('column' !== t.config.labelMappingDimension && + 'both' !== t.config.labelMappingDimension) || + t.dataset.updateRow( + 0, + function(e) { + return E({ datavizInstance: t, value: e }); + }.bind(t) + ); + } + function A(t) { + t.config.sortGroups && + t.data().length > 1 && + ((0, f.default)(t.data()[1][0]) + ? t.dataset.sortColumns( + t.config.sortGroups, + t.dataset.getColumnSum + ) + : t.dataset.sortRows( + t.config.sortGroups, + t.dataset.getRowSum + )); + } + function T(t) { + t.config.sortIntervals && + t.dataset.sortRows(t.config.sortIntervals); + } + function C(t, e) { + var n = '', + r = '', + i = ''; + ('top' !== e.legend.position && + 'bottom' !== e.legend.position) || + (r = 'c3-chart-100-percent'), + e.range && (i = 'keen-dataviz-range'); + var o = '
', + a = 'horizontal', + s = 'center'; + ['left', 'center', 'right'].includes(e.legend.alignment) && + (s = e.legend.alignment), + ('left' !== e.legend.position && + 'right' !== e.legend.position) || + ((a = 'vertical'), + ['top', 'middle', 'bottom'].includes(e.legend.alignment) && + (s = e.legend.alignment)), + e.legend && + e.legend.show && + (o = + 'top' === e.legend.position || + 'left' === e.legend.position + ? '
' + + o + : o + + '
'), + e.react || (n += '
'), + e.title && + e.showTitle && + (n += + '
' + + e.title + + '
'), + e.subtitle && + (n += + '
' + + e.subtitle + + '
'), + (n += + '
' + + o + + '
'), + e.notes && + (n += + '
' + + e.notes + + '
'), + e.react || (n += '
'), + (t.innerHTML = n); + } + function O(t) { + return ( + { + areachart: 'area', + barchart: 'horizontal-bar', + columnchart: 'bar', + linechart: 'line', + piechart: 'pie' + }[t] || t + ); + } + function P(t) { + 'undefined' == typeof document && 'undefined' != typeof window + ? (null == document.readyState && + document.addEventListener && + (document.addEventListener( + 'DOMContentLoaded', + function t() { + document.removeEventListener( + 'DOMContentLoaded', + t, + !1 + ), + (document.readyState = 'complete'); }, - enumerable: !0 - } - ), - (window.SVGPathSegArcAbs = function( - t, - e, - n, - r, - i, - o, - a, - s - ) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_ARC_ABS, - 'A', - t + !1 ), - (this._x = e), - (this._y = n), - (this._r1 = r), - (this._r2 = i), - (this._angle = o), - (this._largeArcFlag = a), - (this._sweepFlag = s); - }), - (window.SVGPathSegArcAbs.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegArcAbs.prototype.toString = function() { - return '[object SVGPathSegArcAbs]'; - }), - (window.SVGPathSegArcAbs.prototype._asPathString = function() { - return ( - this.pathSegTypeAsLetter + - ' ' + - this._r1 + - ' ' + - this._r2 + - ' ' + - this._angle + - ' ' + - (this._largeArcFlag ? '1' : '0') + - ' ' + - (this._sweepFlag ? '1' : '0') + - ' ' + - this._x + - ' ' + - this._y - ); + (document.readyState = 'loading')), + (function t(e) { + /in/.test(document.readyState) + ? setTimeout(function() { + t(e); + }, 9) + : e(); + })(t)) + : t(); + } + (w.libraries = { default: {} }), + 'undefined' != typeof window && + (w.libraries.default = (0, h.default)(w)), + (w.visuals = []), + (w.register = function(t, e) { + (w.libraries[t] = w.libraries[t] || {}), + (0, c.each)(e, function(e, n) { + w.libraries[t][n] = e; + }); + }), + (w.find = function(t) { + if (!arguments.length) return w.visuals; + var e = t.nodeName ? t : document.querySelector(t), + n = null; + return ( + (0, c.each)(w.visuals, function(t) { + if (e == t.config.container) return (n = t), !1; }), - (window.SVGPathSegArcAbs.prototype.clone = function() { - return new window.SVGPathSegArcAbs( - void 0, - this._x, - this._y, - this._r1, - this._r2, - this._angle, - this._largeArcFlag, - this._sweepFlag - ); + n + ); + }), + (w.prototype.attributes = function(t) { + if ( + (this.config.showDeprecationWarnings && + console.log( + '.attributes() is deprecated. Use: new KeenDataviz({ _your_value_here_ })' + ), + !arguments.length) + ) + return this.config; + var e = this.config; + return ( + (0, c.each)(t, function(t, n) { + 'chartType' === n && (n = 'type'), (e[n] = t); }), - Object.defineProperty( - window.SVGPathSegArcAbs.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegArcAbs.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegArcAbs.prototype, - 'r1', - { - get: function() { - return this._r1; - }, - set: function(t) { - (this._r1 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegArcAbs.prototype, - 'r2', - { - get: function() { - return this._r2; - }, - set: function(t) { - (this._r2 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegArcAbs.prototype, - 'angle', - { - get: function() { - return this._angle; - }, - set: function(t) { - (this._angle = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegArcAbs.prototype, - 'largeArcFlag', - { - get: function() { - return this._largeArcFlag; - }, - set: function(t) { - (this._largeArcFlag = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegArcAbs.prototype, - 'sweepFlag', - { - get: function() { - return this._sweepFlag; - }, - set: function(t) { - (this._sweepFlag = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegArcRel = function( - t, - e, - n, - r, - i, - o, - a, - s - ) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_ARC_REL, - 'a', - t + this + ); + }), + (w.prototype.call = function(t) { + return t.call(this), this; + }), + (w.prototype.chartOptions = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log( + '.chartOptions() is deprecated. Use: new KeenDataviz({ _your_value_here_ })' + ), + arguments.length + ? ((this.config = (0, p.extendDeep)(this.config, t)), + this) + : this.config + ); + }), + (w.prototype.colors = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log( + '.colors() is deprecated. Use: new KeenDataviz({ colors: _your_value_here_ })' + ), + arguments.length + ? ((this.config.colors = t instanceof Array ? t : []), + this) + : this.config.colors + ); + }), + (w.prototype.colorMapping = function(t) { + this.config.showDeprecationWarnings && + console.log( + '.colorMapping() is deprecated. Use: new KeenDataviz({ colorMapping: _your_value_here_ })' + ); + var e = this; + return arguments.length + ? (null === t + ? (this.config.colorMapping = {}) + : 'object' === (void 0 === t ? 'undefined' : r(t)) && + (0, c.each)(t, function(t, n) { + e.config.colorMapping[n] = t || null; + }), + this) + : this.config.colorMapping; + }), + (w.prototype.data = l.default), + (w.prototype.dateFormat = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log( + '.dateFormat() is deprecated. Use: new KeenDataviz({ dateFormat: _your_value_here_ })' + ), + arguments.length + ? ((this.config.dateFormat = + 'string' == typeof t || 'function' == typeof t + ? t + : void 0), + this) + : this.config.dateFormat + ); + }), + (w.prototype.destroy = function() { + var t = this.library(), + e = this.config.type, + n = this.el(); + return ( + w.libraries[t] && + w.libraries[t][e] && + w.libraries[t][e].destroy.call(this), + n && (n.innerHTML = ''), + (this.view._prepared = !1), + (this.view._rendered = !1), + (this.view._artifacts = {}), + this + ); + }), + (w.prototype.el = function(t) { + var e = this; + return arguments.length + ? (P(function() { + t && null !== t + ? t.nodeName + ? (e.config.containerElement = t) + : document.querySelector && + (e.config.containerElement = document.querySelector( + t + )) + : (e.config.containerElement = void 0); + }), + this) + : this.config.containerElement; + }), + (w.prototype.height = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log('.height() is deprecated - use CSS classes'), + this + ); + }), + (w.prototype.indexBy = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log( + '.indexBy() is deprecated. Use: new KeenDataviz({ indexBy: _your_value_here_ })' ), - (this._x = e), - (this._y = n), - (this._r1 = r), - (this._r2 = i), - (this._angle = o), - (this._largeArcFlag = a), - (this._sweepFlag = s); - }), - (window.SVGPathSegArcRel.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegArcRel.prototype.toString = function() { - return '[object SVGPathSegArcRel]'; + arguments.length + ? ((this.config.indexBy = t + ? String(t) + : 'timeframe.start'), + this) + : this.config.indexBy + ); + }), + (w.prototype.labels = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log( + '.labels() is deprecated. Use: new KeenDataviz({ labels: _your_value_here_ })' + ), + arguments.length + ? ((this.config.labels = t instanceof Array ? t : []), + S(this), + this) + : this.config.labels + ); + }), + (w.prototype.labelMapping = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log( + '.labelMapping() is deprecated. Use: new KeenDataviz({ labelMapping: _your_value_here_ })' + ), + arguments.length + ? (null === t + ? (this.config.labelMapping = {}) + : 'object' === (void 0 === t ? 'undefined' : r(t)) && + (0, c.each)( + t, + function(t, e) { + this.config.labelMapping[e] = t || null; + }.bind(this) + ), + k(this), + this) + : this.config.labelMapping + ); + }), + (w.prototype.library = function(t) { + return arguments.length + ? ((this.config.library = t ? String(t) : null), this) + : this.config.library; + }), + (w.prototype.message = function() { + if ((this.view._rendered && this.destroy(), this.el())) { + this.el().innerHTML = ''; + var t = w.libraries.default.message; + t.render && t.render.apply(this, arguments); + } + return this; + }), + (w.prototype.notes = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log( + '.notes() is deprecated. Use: new KeenDataviz({ notes: _your_value_here_ })' + ), + arguments.length + ? ((this.config.notes = t ? String(t) : null), this) + : this.config.notes + ); + }), + (w.prototype.prepare = function() { + var t = this; + if (!this.el()) + throw this.config.container + + ' not found. A DOM parent element is required to mount the chart.'; + return ( + P(function() { + if ((t.view._rendered && t.destroy(), t.el())) { + t.el().innerHTML = ''; + var e = w.libraries.default.spinner; + e.render && e.render.call(t), (t.view._prepared = !0); + } }), - (window.SVGPathSegArcRel.prototype._asPathString = function() { + this + ); + }), + (w.prototype.render = function() { + var t = this, + e = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : void 0, + n = this; + if (e) { + var r = e[0] || e; + if ( + (r.query && + r.query.interval && + r.query.timeframe && + 'string' == typeof r.query.timeframe && + r.query.timeframe.includes('this_') && + this.config.partialIntervalIndicator && + void 0 === this.config.partialIntervalIndicator.show && + (this.config.partialIntervalIndicator.show = !0), + Array.isArray(e)) + ) { + var i = e.map(function(t) { + return t.query.timeframe; + }); return ( - this.pathSegTypeAsLetter + - ' ' + - this._r1 + - ' ' + - this._r2 + - ' ' + - this._angle + - ' ' + - (this._largeArcFlag ? '1' : '0') + - ' ' + - (this._sweepFlag ? '1' : '0') + - ' ' + - this._x + - ' ' + - this._y - ); - }), - (window.SVGPathSegArcRel.prototype.clone = function() { - return new window.SVGPathSegArcRel( - void 0, - this._x, - this._y, - this._r1, - this._r2, - this._angle, - this._largeArcFlag, - this._sweepFlag + i.forEach(function(t) { + if ( + i.find(function(e) { + return JSON.stringify(e) !== JSON.stringify(t); + }) + ) { + var e = + 'Timeframes of the queries should be the same'; + throw (console.error(e), e); + } + }), + n + .data(e[0]) + .call(function() { + var r = function(t) { + return ( + t.query.event_collection + + ' ' + + t.query.analysis_type + ); + }, + i = r(e[0]); + n.config.labelMapping[i] && + (i = n.config.labelMapping[i]), + t.dataset.deleteColumn(1); + var a = !0, + s = !1, + u = void 0; + try { + for ( + var l, c = e[Symbol.iterator](); + !(a = (l = c.next()).done); + a = !0 + ) { + var f = l.value; + i = r(f); + var d = o.Dataset.parser('interval')(f); + n.dataset.appendColumn( + i, + d.selectColumn(1).slice(1) + ); + } + } catch (t) { + (s = !0), (u = t); + } finally { + try { + !a && c.return && c.return(); + } finally { + if (s) throw u; + } + } + }) + .render() ); - }), - Object.defineProperty( - window.SVGPathSegArcRel.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegArcRel.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegArcRel.prototype, - 'r1', - { - get: function() { - return this._r1; - }, - set: function(t) { - (this._r1 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegArcRel.prototype, - 'r2', - { - get: function() { - return this._r2; - }, - set: function(t) { - (this._r2 = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegArcRel.prototype, - 'angle', - { - get: function() { - return this._angle; - }, - set: function(t) { - (this._angle = t), this._segmentChanged(); - }, - enumerable: !0 + } + return n.data(e).render(); + } + ((this.config.labelMapping && + Object.keys(this.config.labelMapping).length > 0) || + (this.config.labelMappingRegExp && + this.config.labelMappingRegExp.length > 0)) && + k(n), + this.config.labels && + Object.keys(this.config.labels).length > 0 && + S(n), + this.config.sortGroups && A(n), + this.config.sortIntervals && T(n); + var a = w.libraries.default.spinner, + s = this.config.library, + u = this.config.type, + l = this.el(); + if (!l || void 0 === l) { + var c = + this.config.container + + ' not found. A DOM parent element is required to mount the chart.'; + throw (console.error(c), c); + } + var f = n; + return ( + n.config.renderAsPromise && + (f = new Promise(function(e, r) { + var i = t.config.onrendered; + n.config.onrendered = function() { + i && i(), e(n); + }; + })), + P(function() { + var t = + n.execution_metadata && + n.config.ui && + n.config.ui.executionMetadata, + e = + n.config.ui && + n.config.ui.buttons && + n.config.ui.buttons.download && + n.config.ui.buttons.download.type; + if ( + (n.view._prepared && + a.destroy && + a.destroy.apply(n, arguments), + (l.innerHTML = ''), + 'undefined' === w.libraries[s]) + ) { + var r = 'Incorrect library'; + throw (n.message(r), r); } - ), - Object.defineProperty( - window.SVGPathSegArcRel.prototype, - 'largeArcFlag', - { - get: function() { - return this._largeArcFlag; - }, - set: function(t) { - (this._largeArcFlag = t), this._segmentChanged(); - }, - enumerable: !0 + if (void 0 === w.libraries[s][u]) { + var i = 'Incorrect chart type', + o = this.config.errorMapping[i] || i; + throw (n.message(o), i); } - ), - Object.defineProperty( - window.SVGPathSegArcRel.prototype, - 'sweepFlag', - { - get: function() { - return this._sweepFlag; - }, - set: function(t) { - (this._sweepFlag = t), this._segmentChanged(); - }, - enumerable: !0 + C(l, n.config), + e && + (0, v.default)({ + element: l, + data: n.dataset.matrix, + type: n.config.ui.buttons.download.type, + label: n.config.ui.buttons.download.label + }), + t && + (0, y.default)({ + element: l, + data: n.execution_metadata + }); + var c = n.config.renderOnVisible; + if (c && 'undefined' != typeof IntersectionObserver) { + var f = function(t, e) { + t.forEach(function(t) { + t.isIntersecting && + (n.view._rendered || + (w.libraries[s][u].render.call(n), + (n.view._rendered = !0))); + }); + }, + d = new IntersectionObserver(f); + d.observe(l); + } else { + if ( + 'hidden' === n.config.firstVisibilityState && + 'undefined' != typeof document + ) { + var h = void 0, + p = void 0; + void 0 !== document.hidden + ? ((h = 'hidden'), (p = 'visibilitychange')) + : void 0 !== document.msHidden + ? ((h = 'msHidden'), (p = 'msvisibilitychange')) + : void 0 !== document.webkitHidden && + ((h = 'webkitHidden'), + (p = 'webkitvisibilitychange')); + var g = function() { + document[h] || + n.view._artifacts.c3.load(n.dataset.matrix); + }; + (void 0 === document.addEventListener && + void 0 === h) || + document.addEventListener(p, g, { once: !0 }); + } + w.libraries[s][u].render.call(n), + (n.view._rendered = !0); } - ), - (window.SVGPathSegLinetoHorizontalAbs = function(t, e) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS, - 'H', - t - ), - (this._x = e); - }), - (window.SVGPathSegLinetoHorizontalAbs.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegLinetoHorizontalAbs.prototype.toString = function() { - return '[object SVGPathSegLinetoHorizontalAbs]'; - }), - (window.SVGPathSegLinetoHorizontalAbs.prototype._asPathString = function() { - return this.pathSegTypeAsLetter + ' ' + this._x; - }), - (window.SVGPathSegLinetoHorizontalAbs.prototype.clone = function() { - return new window.SVGPathSegLinetoHorizontalAbs( - void 0, - this._x - ); }), - Object.defineProperty( - window.SVGPathSegLinetoHorizontalAbs.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegLinetoHorizontalRel = function(t, e) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL, - 'h', - t + f + ); + }), + (w.prototype.sortGroups = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log( + '.sortGroups() is deprecated. Use: new KeenDataviz({ sortGroups: _your_value_here_ })' + ), + arguments.length + ? ((this.config.sortGroups = t ? String(t) : null), + A(this), + this) + : this.config.sortGroups + ); + }), + (w.prototype.sortIntervals = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log( + '.sortIntervals() is deprecated. Use: new KeenDataviz({ sortIntervals: _your_value_here_ })' + ), + arguments.length + ? ((this.config.sortIntervals = t ? String(t) : null), + T(this), + this) + : this.config.sortIntervals + ); + }), + (w.prototype.stacked = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log( + '.stacked() is deprecated. Use: new KeenDataviz({ stacked: _your_value_here_ })' + ), + arguments.length + ? ((this.config.stacked = !!t), this) + : this.config.stacked + ); + }), + (w.prototype.theme = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log( + '.theme() is deprecated. Use: new KeenDataviz({ theme: _your_value_here_ })' ), - (this._x = e); - }), - (window.SVGPathSegLinetoHorizontalRel.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegLinetoHorizontalRel.prototype.toString = function() { - return '[object SVGPathSegLinetoHorizontalRel]'; - }), - (window.SVGPathSegLinetoHorizontalRel.prototype._asPathString = function() { - return this.pathSegTypeAsLetter + ' ' + this._x; - }), - (window.SVGPathSegLinetoHorizontalRel.prototype.clone = function() { - return new window.SVGPathSegLinetoHorizontalRel( - void 0, - this._x - ); - }), - Object.defineProperty( - window.SVGPathSegLinetoHorizontalRel.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegLinetoVerticalAbs = function(t, e) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS, - 'V', - t + arguments.length + ? ((this.config.theme = t ? String(t) : null), this) + : this.config.theme + ); + }), + (w.prototype.title = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log( + '.title() is deprecated. Use: new KeenDataviz({ title: _your_value_here_ })' ), - (this._y = e); + arguments.length + ? ((this.config.title = t ? String(t) : null), this) + : this.config.title + ); + }), + (w.prototype.type = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log( + '.type() is deprecated. Use: new KeenDataviz({ type: _your_value_here_ })' + ), + arguments.length + ? ((this.config.type = t ? O(t) : null), this) + : this.config.type + ); + }), + (w.prototype.update = function() { + var t = this.config.library, + e = this.config.type, + n = this.el(); + return ( + t && + e && + n && + w.libraries[t][e].update && + w.libraries[t][e].update.apply(this, arguments), + this + ); + }), + (w.prototype.width = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log('.width() is deprecated - use CSS classes'), + this + ); + }), + (w.prototype.exportImage = function() { + var t = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : {}, + e = t.quality, + n = void 0 === e ? 0 : e, + r = t.bgcolor, + i = void 0 === r ? '#fff' : r; + (0, g.default)({ + node: this.config.containerElement, + quality: n, + bgcolor: i + }); + }), + (w.prototype.exportData = function() { + var t = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : 'json'; + (0, m.default)({ data: this.dataset.matrix, type: t }); + }), + (w.prototype.chartType = w.prototype.type), + (w.prototype.error = w.prototype.message), + (w.prototype.parseRawData = w.prototype.data), + (w.prototype.parseRequest = function() { + return this; + }), + (w.prototype.initialize = function() { + return this; + }), + (w.version = u.default.version), + (e.default = w); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.deleteColumn = function(t) { + var e = this, + n = 'number' == typeof t ? t : this.matrix[0].indexOf(t); + return ( + n > -1 && + (0, r.each)(e.matrix, function(t, r) { + e.matrix[r].splice(n, 1); + }), + e + ); + }), + (e.deleteRow = function(t) { + var e = + 'number' == typeof t ? t : this.selectColumn(0).indexOf(t); + return e > -1 && this.matrix.splice(e, 1), this; + }); + var r = n(0); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.filterColumns = function(t) { + var e = this, + n = []; + return ( + (0, r.each)(e.matrix, function(t, e) { + n.push([]); }), - (window.SVGPathSegLinetoVerticalAbs.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegLinetoVerticalAbs.prototype.toString = function() { - return '[object SVGPathSegLinetoVerticalAbs]'; + (0, r.each)(e.matrix[0], function(i, o) { + var a = e.selectColumn(o); + (0 == o || t.call(e, a, o)) && + (0, r.each)(a, function(t, e) { + n[e].push(t); + }); }), - (window.SVGPathSegLinetoVerticalAbs.prototype._asPathString = function() { - return this.pathSegTypeAsLetter + ' ' + this._y; + e.data(n), + e + ); + }), + (e.filterRows = function(t) { + var e = this, + n = []; + return ( + (0, r.each)(e.matrix, function(r, i) { + (0 == i || t.call(e, r, i)) && n.push(r); }), - (window.SVGPathSegLinetoVerticalAbs.prototype.clone = function() { - return new window.SVGPathSegLinetoVerticalAbs( - void 0, - this._y - ); + e.data(n), + e + ); + }); + var r = n(0); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.insertColumn = function(t, e, n) { + var r = this, + o = void 0 !== e ? e : null; + return ( + 'function' == typeof n + ? (r.matrix[0].splice(t, 0, o), + (0, i.each)(r.matrix, function(e, i) { + var o; + i > 0 && + (void 0 === (o = n.call(r, e, i)) && (o = null), + r.matrix[i].splice(t, 0, o)); + })) + : (!n || n instanceof Array) && + ((n = n || []).length <= r.matrix.length - 1 + ? (n = n.concat( + (0, a.default)(r.matrix.length - 1 - n.length) + )) + : (0, i.each)(n, function(t, e) { + r.matrix.length - 1 < n.length && + s.appendRow.call(r, String(r.matrix.length)); + }), + r.matrix[0].splice(t, 0, o), + (0, i.each)(n, function(e, n) { + r.matrix[n + 1].splice(t, 0, e); + })), + r + ); + }), + (e.insertRow = function(t, e, n) { + var r = this, + o = [], + u = void 0 !== e ? e : null; + return ( + o.push(u), + 'function' == typeof n + ? ((0, i.each)(r.matrix[0], function(t, e) { + var i = void 0, + a = void 0; + e > 0 && + ((i = r.selectColumn(e)), + void 0 === (a = n.call(r, i, e)) && (a = null), + o.push(a)); + }), + r.matrix.splice(t, 0, o)) + : (!n || n instanceof Array) && + ((n = n || []).length <= r.matrix[0].length - 1 + ? (n = n.concat( + (0, a.default)(r.matrix[0].length - 1 - n.length) + )) + : (0, i.each)(n, function(t, e) { + r.matrix[0].length - 1 < n.length && + s.appendColumn.call( + r, + String(r.matrix[0].length) + ); + }), + r.matrix.splice(t, 0, o.concat(n))), + r + ); + }); + var r, + i = n(0), + o = n(9), + a = (r = o) && r.__esModule ? r : { default: r }, + s = n(8); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.selectColumn = function(t) { + var e = [], + n = 'number' == typeof t ? t : this.matrix[0].indexOf(t); + return ( + n > -1 && + void 0 !== this.matrix[0][n] && + (0, r.each)(this.matrix, function(t, r) { + e.push(t[n]); + }), + e + ); + }), + (e.selectRow = function(t) { + var e = [], + n = + 'number' == typeof t + ? t + : this.selectColumn(0).indexOf(t); + return ( + n > -1 && void 0 !== this.matrix[n] && (e = this.matrix[n]), + e + ); + }); + var r = n(0); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.sortColumns = function(t, e) { + var n = this, + r = this.matrix[0].slice(1), + o = [], + s = e || a.default.getColumnLabel; + return ( + (0, i.each)(r, function(t, e) { + o.push(n.selectColumn(e + 1).slice(0)); }), - Object.defineProperty( - window.SVGPathSegLinetoVerticalAbs.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegLinetoVerticalRel = function(t, e) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL, - 'v', - t - ), - (this._y = e); + o.sort(function(e, r) { + var i = s.call(n, e) > s.call(n, r); + return i + ? 'asc' === t + ? 1 + : -1 + : i + ? 0 + : 'asc' === t + ? -1 + : 1; }), - (window.SVGPathSegLinetoVerticalRel.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegLinetoVerticalRel.prototype.toString = function() { - return '[object SVGPathSegLinetoVerticalRel]'; + (0, i.each)(o, function(t, e) { + n.deleteColumn(e + 1).insertColumn( + e + 1, + t[0], + t.slice(1) + ); }), - (window.SVGPathSegLinetoVerticalRel.prototype._asPathString = function() { - return this.pathSegTypeAsLetter + ' ' + this._y; + n + ); + }), + (e.sortRows = function(t, e) { + var n = this, + r = this.matrix.slice(0, 1), + i = this.matrix.slice(1), + o = e || a.default.getRowIndex; + return ( + i.sort(function(e, r) { + var i = o.call(n, e) > o.call(n, r); + return i + ? 'asc' === t + ? 1 + : -1 + : i + ? 0 + : 'asc' === t + ? -1 + : 1; }), - (window.SVGPathSegLinetoVerticalRel.prototype.clone = function() { - return new window.SVGPathSegLinetoVerticalRel( - void 0, - this._y + n.data(r.concat(i)), + n + ); + }); + var r, + i = n(0), + o = n(13), + a = (r = o) && r.__esModule ? r : { default: r }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.updateColumn = function(t, e) { + var n = this, + r = 'number' == typeof t ? t : this.matrix[0].indexOf(t); + return ( + r > -1 && + ('function' == typeof e + ? (0, i.each)(n.data(), function(t, i) { + var o; + i > 0 && + void 0 !== (o = e.call(n, t[r], i, t)) && + (n.matrix[i][r] = o); + }) + : (!e || e instanceof Array) && + ((e = e || []).length <= n.data().length - 1 + ? (e = e.concat( + (0, a.default)(n.data().length - 1 - e.length) + )) + : (0, i.each)(e, function(t, r) { + n.matrix.length - 1 < e.length && + s.appendRow.call(n, String(n.matrix.length)); + }), + (0, i.each)(e, function(t, e) { + n.matrix[e + 1][r] = t; + }))), + n + ); + }), + (e.updateRow = function(t, e) { + var n = this, + r = + 'number' == typeof t + ? t + : this.selectColumn(0).indexOf(t); + return ( + r > -1 && + ('function' == typeof e + ? (0, i.each)(n.data()[r], function(t, i) { + var o = n.selectColumn(i), + a = e.call(n, t, i, o); + void 0 !== a && (n.matrix[r][i] = a); + }) + : (!e || e instanceof Array) && + ((e = e || []).length <= n.matrix[0].length - 1 + ? (e = e.concat( + (0, a.default)( + n.matrix[0].length - 1 - e.length + ) + )) + : (0, i.each)(e, function(t, r) { + n.matrix[0].length - 1 < e.length && + s.appendColumn.call( + n, + String(n.matrix[0].length) + ); + }), + (0, i.each)(e, function(t, e) { + n.matrix[r][e + 1] = t; + }))), + n + ); + }); + var r, + i = n(0), + o = n(9), + a = (r = o) && r.__esModule ? r : { default: r }, + s = n(8); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t) { + return ( + (a = t), + function(t) { + var e = Array.prototype.slice.call(arguments, 1); + if (s[t]) return s[t].apply(this, e); + throw 'Requested parser does not exist'; + } + ); + }); + var r = n(0), + i = n(29), + o = n(30), + a = void 0, + s = { + metric: function() { + return function(t) { + return new a() + .set(['Value', 'Result'], t.result) + .type('metric'); + }; + }, + interval: function() { + var t = Array.prototype.slice.call(arguments); + return function(e) { + var n = new a().type('interval'); + return ( + (0, r.each)(e.result, function(e, r) { + var i = + t[0] && 'timeframe.end' === t[0] + ? e.timeframe.end + : e.timeframe.start; + n.set(['Result', i], e.value); + }), + n + ); + }; + }, + 'grouped-metric': function() { + return function(t) { + var e = new a().type('grouped-metric'); + return ( + (0, r.each)(t.result, function(t, n) { + var i; + (0, r.each)(t, function(t, e) { + 'result' !== e && (i = e); + }), + e.set(['Result', String(t[i])], t.result); + }), + e + ); + }; + }, + 'grouped-interval': function() { + var t = Array.prototype.slice.call(arguments); + return function(e) { + var n = new a().type('grouped-interval'); + return ( + (0, r.each)(e.result, function(e, i) { + var o = + t[0] && 'timeframe.end' === t[0] + ? e.timeframe.end + : e.timeframe.start; + e.value.length + ? (0, r.each)(e.value, function(t, e) { + var i; + (0, r.each)(t, function(t, e) { + 'result' !== e && (i = e); + }), + n.set([String(t[i]), o], t.result); + }) + : n.appendRow(o); + }), + n ); - }), - Object.defineProperty( - window.SVGPathSegLinetoVerticalRel.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - (window.SVGPathSegCurvetoCubicSmoothAbs = function( - t, - e, - n, - r, - i - ) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS, - 'S', - t - ), - (this._x = e), - (this._y = n), - (this._x2 = r), - (this._y2 = i); - }), - (window.SVGPathSegCurvetoCubicSmoothAbs.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegCurvetoCubicSmoothAbs.prototype.toString = function() { - return '[object SVGPathSegCurvetoCubicSmoothAbs]'; - }), - (window.SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString = function() { + }; + }, + 'double-grouped-metric': function() { + var t = Array.prototype.slice.call(arguments); + if (!t[0]) + throw 'Requested parser requires a sequential list (array) of properties to target as a second argument'; + return function(e) { + var n = new a().type('double-grouped-metric'); return ( - this.pathSegTypeAsLetter + - ' ' + - this._x2 + - ' ' + - this._y2 + - ' ' + - this._x + - ' ' + - this._y + (0, r.each)(e.result, function(e, r) { + var i = e[t[0][0]] + ' ' + e[t[0][1]]; + n.set(['Result', i], e.result); + }), + n ); - }), - (window.SVGPathSegCurvetoCubicSmoothAbs.prototype.clone = function() { - return new window.SVGPathSegCurvetoCubicSmoothAbs( - void 0, - this._x, - this._y, - this._x2, - this._y2 + }; + }, + 'double-grouped-interval': function() { + var t = Array.prototype.slice.call(arguments); + if (!t[0]) + throw 'Requested parser requires a sequential list (array) of properties to target as a second argument'; + return function(e) { + var n = new a().type('double-grouped-interval'); + return ( + (0, r.each)(e.result, function(e, i) { + var o = + t[1] && 'timeframe.end' === t[1] + ? e.timeframe.end + : e.timeframe.start; + (0, r.each)(e.value, function(e, r) { + var i = e[t[0][0]] + ' ' + e[t[0][1]]; + n.set([i, o], e.result); + }); + }), + n ); - }), - Object.defineProperty( - window.SVGPathSegCurvetoCubicSmoothAbs.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicSmoothAbs.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicSmoothAbs.prototype, - 'x2', - { - get: function() { - return this._x2; - }, - set: function(t) { - (this._x2 = t), this._segmentChanged(); - }, - enumerable: !0 + }; + }, + funnel: function() { + return function(t) { + var e, n, i; + return ( + void 0 !== t.steps && + void 0 !== t.result && + t.result instanceof Array + ? ((e = t.result), (n = t.steps)) + : void 0 !== t.result.steps && + void 0 !== t.result.result && + t.result.result instanceof Array && + ((e = t.result.result), (n = t.result.steps)), + (i = new a().type('funnel')).appendColumn('Step Value'), + (0, r.each)(e, function(t, e) { + void 0 !== n && + n[e] && + i.appendRow(String(n[e].event_collection), [t]); + }), + i + ); + }; + }, + list: function() { + return function(t) { + var e = new a().type('list'); + return ( + (0, r.each)(t.result, function(t, n) { + e.set(['Result', String(n + 1)], t); + }), + e + ); + }; + }, + extraction: function() { + var t = this.config; + return function(e) { + var n = new a().type('extraction'), + r = Object.keys((0, i.flatten)(e.result[0])), + s = t && t.table; + if (s && 'dynamic' === s.schema) { + var u = e.result, + l = {}; + u.forEach(function(t) { + var e = Object.keys((0, i.flatten)(t)); + e && + e.length && + e.forEach(function(t) { + l[t] || (l[t] = !0); + }); + }), + (r = Object.keys(l)); } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicSmoothAbs.prototype, - 'y2', - { - get: function() { - return this._y2; - }, - set: function(t) { - (this._y2 = t), this._segmentChanged(); - }, - enumerable: !0 + r.forEach(function(t) { + n.set([t, '0'], t); + }), + a && + t && + t.table && + t.table.columns && + (r = t.table.columns); + for (var c = 0; c < e.result.length; c++) { + for (var f = [c + 1], d = 0; d < r.length; d++) + f.push((0, o.valueAtDeepKey)(e.result[c], r[d])); + n.matrix[String(c + 1)] = f; } - ), - (window.SVGPathSegCurvetoCubicSmoothRel = function( - t, - e, - n, - r, - i - ) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL, - 's', - t - ), - (this._x = e), - (this._y = n), - (this._x2 = r), - (this._y2 = i); - }), - (window.SVGPathSegCurvetoCubicSmoothRel.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegCurvetoCubicSmoothRel.prototype.toString = function() { - return '[object SVGPathSegCurvetoCubicSmoothRel]'; - }), - (window.SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString = function() { + return n.deleteColumn(0), n; + }; + }, + 'heatmap-axis': function() { + return function(t) { + var e = new a().type('heatmap'); return ( - this.pathSegTypeAsLetter + - ' ' + - this._x2 + - ' ' + - this._y2 + - ' ' + - this._x + - ' ' + - this._y - ); - }), - (window.SVGPathSegCurvetoCubicSmoothRel.prototype.clone = function() { - return new window.SVGPathSegCurvetoCubicSmoothRel( - void 0, - this._x, - this._y, - this._x2, - this._y2 + (0, r.each)(t.result, function(t, n) { + var r = Object.keys(t), + i = t[r[0]], + o = t[r[1]]; + e.appendRow([String(i), String(o), t.result]); + }), + e ); + }; + } + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(t) { + return typeof t; + } + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t; + }; + e.flatten = function t(e) { + var n = {}; + for (var i in e) + if (e.hasOwnProperty(i)) + if ('object' == r(e[i]) && null !== e[i]) { + var o = t(e[i]); + for (var a in o) + o.hasOwnProperty(a) && (n[i + '.' + a] = o[a]); + } else n[i] = e[i]; + return n; + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.valueAtDeepKey = function t(e, n, r) { + return 'string' == typeof n + ? t(e, n.split('.'), r) + : 1 == n.length && + void 0 !== r && + null !== e && + void 0 !== e[n[0]] + ? (e[n[0]] = r) + : 0 == n.length + ? e + : void 0 === n || + void 0 === e || + null === n || + null === e || + void 0 === e[n[0]] + ? null + : t(e[n[0]], n.slice(1), r); + }); + }, + function(t) { + t.exports = { + name: 'keen-dataviz', + description: 'Data Visualization SDK for Keen IO', + license: 'MIT', + version: '3.13.8', + main: 'dist/external_d3_c3/node/keen-dataviz.js', + browser: 'dist/external_d3_c3/keen-dataviz.js', + style: 'dist/keen-dataviz.css', + scripts: { + start: + 'concurrently --kill-others "NODE_ENV=development webpack-dev-server" "npm run postcss-watch"', + 'postcss-watch': + 'node_modules/postcss-cli/bin/postcss lib/style/keen-dataviz-c3.css -o test/demo/keen-dataviz.css --watch --config postcss.config.js', + build: + 'NODE_ENV=production webpack -p && npm run build:css && NODE_ENV=production OPTIMIZE_MINIMIZE=1 webpack -p && npm run build:css && npm run build:css:min && npm run build:external_d3_c3 && npm run build:external_d3_c3:css && npm run build:external_d3_c3:css:min && npm run build:node', + 'build:css': + 'node_modules/postcss-cli/bin/postcss lib/style/keen-dataviz-c3.css -o dist/keen-dataviz.css --config postcss.config.js', + 'build:css:min': + 'OPTIMIZE_MINIMIZE=1 node_modules/postcss-cli/bin/postcss lib/style/keen-dataviz-c3.css -o dist/keen-dataviz.min.css --config postcss.config.js', + 'build:external_d3_c3:css': + 'node_modules/postcss-cli/bin/postcss lib/style/keen-dataviz.css -o dist/external_d3_c3/keen-dataviz.css --config postcss.config.js', + 'build:external_d3_c3:css:min': + 'OPTIMIZE_MINIMIZE=1 node_modules/postcss-cli/bin/postcss lib/style/keen-dataviz.css -o dist/external_d3_c3/keen-dataviz.min.css --config postcss.config.js', + 'build:external_d3_c3': + 'NODE_ENV=production EXTERNAL_D3_C3=1 webpack -p && NODE_ENV=production EXTERNAL_D3_C3=1 OPTIMIZE_MINIMIZE=1 webpack -p', + 'build:node': + 'TARGET=node NODE_ENV=production EXTERNAL_D3_C3=1 webpack -p', + profile: 'webpack --profile --json > stats.json', + analyze: 'webpack-bundle-analyzer stats.json /dist', + version: 'npm run build && git add .', + postversion: 'git push && git push --tags && npm publish', + test: 'NODE_ENV=test jest', + 'test:watch': 'NODE_ENV=test jest --watch' + }, + repository: { + type: 'git', + url: 'https://github.com/keen/keen-dataviz.js.git' + }, + bugs: 'https://github.com/keen/keen-dataviz.js/issues', + author: 'Keen.IO (https://keen.io/)', + contributors: [ + 'Dustin Larimer (https://github.com/dustinlarimer)', + 'Joanne Cheng (https://github.com/joannecheng)', + 'Eric Anderson (https://github.com/aroc)', + 'Joe Wegner (https://github.com/josephwegner)', + 'Sara Falkoff (https://github.com/adamkasprowicz)', + 'Dariusz Łacheta (https://github.com/dariuszlacheta)' + ], + homepage: 'https://keen.io/', + keywords: [ + 'd3', + 'c3', + 'Analytics', + 'Stats', + 'Statistics', + 'Visualization', + 'Visualizations', + 'Data Visualization', + 'Chart', + 'Charts', + 'Charting', + 'Svg', + 'Dataviz', + 'Plots', + 'Graphs', + 'Funnels' + ], + dependencies: { + c3: '^0.7.2', + d3: '^5.11.0', + 'dom-to-image': '^2.6.0', + 'file-saver': '^2.0.1', + 'promise-polyfill': '^8.0.0', + rangeable: '^0.1.6' + }, + devDependencies: { + autoprefixer: '^8.2.0', + 'babel-loader': '^7.1.4', + 'babel-plugin-transform-es2015-modules-commonjs': '^6.26.2', + 'babel-plugin-transform-object-rest-spread': '^6.26.0', + 'babel-preset-env': '^1.7.0', + concurrently: '^3.5.1', + cssnano: '^3.10.0', + eslint: '^4.19.1', + 'eslint-config-airbnb': '^16.1.0', + 'eslint-loader': '^2.0.0', + 'eslint-plugin-import': '^2.11.0', + 'eslint-plugin-jsx-a11y': '^6.0.3', + 'eslint-plugin-react': '^7.7.0', + 'html-loader': '^0.5.5', + 'html-webpack-plugin': '^3.2.0', + jest: '^22.4.3', + 'jest-environment-jsdom-c3': '^2.0.0', + nock: '^9.2.6', + postcss: '^6.0.21', + 'postcss-cli': '^5.0.0', + 'postcss-color-function': '^4.0.1', + 'postcss-css-variables': '^0.8.1', + 'postcss-cssnext': '^2.4.0', + 'postcss-import': '^8.0.2', + 'postcss-loader': '^2.1.3', + precss: '^3.1.2', + 'regenerator-runtime': '^0.11.1', + 'replace-in-file': '^3.4.0', + 'style-loader': '^0.20.3', + webpack: '^4.29.0', + 'webpack-bundle-analyzer': '^3.3.2', + 'webpack-cli': '^3.2.1', + 'webpack-dev-server': '^3.3.1', + 'xhr-mock': '^2.3.2' + } + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t) { + return arguments.length + ? t instanceof o.default + ? ((this.dataset = t), this) + : u.call(this, t) + : this.dataset.data(); + }); + var r, + i = n(12), + o = (r = i) && r.__esModule ? r : { default: r }, + a = n(5), + s = n(14); + function u(t) { + var e, + n, + r, + i, + u, + l, + c, + f = []; + return ( + (n = this.config.indexBy), + (r = t.metadata || {}), + (u = void 0 !== t.query ? t.query : {}), + 'funnel' === + (u = (0, a.extend)( + { + analysis_type: null, + event_collection: null, + filters: [], + group_by: null, + interval: null, + timeframe: null, + timezone: null + }, + u + )).analysis_type + ? (i = 'funnel') + : 'extraction' === u.analysis_type + ? (i = 'extraction') + : 'select_unique' === u.analysis_type + ? u.group_by || u.interval || (i = 'list') + : u.analysis_type && + (u.group_by || u.interval + ? u.group_by && !u.interval + ? u.group_by instanceof Array && u.group_by.length > 1 + ? ((i = 'double-grouped-metric'), + f.push(u.group_by)) + : (i = 'grouped-metric') + : u.interval && !u.group_by + ? ((i = 'interval'), f.push(n)) + : u.group_by && + u.interval && + (u.group_by instanceof Array && + u.group_by.length > 1 + ? ((i = 'double-grouped-interval'), + f.push(u.group_by), + f.push(n)) + : ((i = 'grouped-interval'), f.push(n))) + : (i = 'metric')), + i || + ('number' == typeof t.result && (i = 'metric'), + t.result instanceof Array && + t.result.length > 0 && + (!t.result[0].timeframe || + ('number' != typeof t.result[0].value && + null != t.result[0].value) || + ((i = 'interval'), f.push(n)), + 'number' == typeof t.result[0].result && + (i = 'grouped-metric'), + 'heatmap' === this.config.type && + Object.keys( + 3 === t.result[0] && + 'number' == typeof t.result[0].result + ) && + (i = 'heatmap-axis'), + t.result[0].value instanceof Array && + ((i = 'grouped-interval'), f.push(n)), + 'number' == typeof t.result[0] && + void 0 !== t.steps && + ((i = 'funnel'), (u.steps = t.steps)), + ('string' != typeof t.result[0] && + 'number' != typeof t.result[0]) || + void 0 !== t.steps || + (i = 'list'), + i || (i = 'extraction')), + i || (i = 'extraction')), + void 0 === this.config.title && + ((l = r.display_name + ? r.display_name + : (function(t) { + var e, + n = t.analysis_type + ? t.analysis_type.replace('_', ' ') + : ''; + return ( + (e = n.replace(/\b./g, function(t) { + return t.toUpperCase(); + })), + t.event_collection && + (e += ' - ' + t.event_collection), + e + ); + })(u)), + (this.config.title = l)), + this.config.type || + ((c = + r.visualization && r.visualization.chart_type + ? r.visualization.chart_type + : (function(t) { + var e = void 0; + switch (t) { + case 'metric': + e = 'metric'; + break; + case 'interval': + e = 'area'; + break; + case 'grouped-metric': + case 'double-grouped-metric': + e = 'bar'; + break; + case 'grouped-interval': + case 'double-grouped-interval': + e = 'line'; + break; + case 'funnel': + e = 'horizontal-bar'; + break; + case 'list': + case 'extraction': + default: + e = 'table'; + } + return e; + })(i)), + (this.config.type = c)), + (e = o.default.parser.apply(this, [i].concat(f))( + (0, a.extend)(t, { query: u }) + )), + i.indexOf('interval') > -1 && + e.updateColumn(0, function(t, e) { + return new Date(t); }), - Object.defineProperty( - window.SVGPathSegCurvetoCubicSmoothRel.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicSmoothRel.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); + e.updateRow(0, function(t, e) { + return (0, s.stripHtmlTags)(t); + }), + (this.dataset = e), + t.execution_metadata && + (this.execution_metadata = t.execution_metadata), + this + ); + } + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }; + e.default = function(t) { + var e, + n = void 0; + return ( + (e = function() { + n && clearTimeout(n); + var e = t.visuals.length > 12 ? 1e3 : 250; + n = setTimeout(function() { + (0, o.each)(t.visuals, function(t) { + var e = t.view._artifacts.c3; + if (e) { + var n = e.element.parentNode.parentNode.offsetWidth, + r = n; + if ( + t.config.legend && + t.config.legend.show && + ('left' === t.config.legend.position || + 'right' === t.config.legend.position) + ) { + var i = e.element.nextSibling + ? e.element.nextSibling.offsetWidth + : 0; + r = + n - + (e.element.previousSibling + ? e.element.previousSibling.offsetWidth + : 0) - + i; + } + e.resize({ width: r }); + } + }); + }, e); + }), + 'undefined' != typeof window && + ((window.onresize = window.resize = function() {}), + window.addEventListener + ? window.addEventListener('resize', e, !0) + : window.attachEvent && + window.attachEvent('onresize', e)), + (function() { + var t = { + message: h.default, + metric: p.default, + table: g.default, + spinner: m.default, + funnel: new v.default(), + 'funnel-3d': new y.default(), + 'horizontal-funnel': new b.default(), + 'horizontal-funnel-3d': new _.default(), + 'metric-combo': new x.default(), + heatmap: new w.default(), + choropleth: new S.default() + }, + e = function(t, e) { + return parseInt( + window + .getComputedStyle(t) + ['padding' + e].replace('px', '') + ); + }; + function n() { + var t = { + bindto: this.el().querySelector( + '.' + this.config.theme + '-rendering .c3-chart' + ), + color: { pattern: this.config.colors }, + data: { + colors: r({}, this.config.colorMapping), + columns: [], + type: this.config.type.replace('horizontal-', '') + } }, - enumerable: !0 + n = this.el(), + i = n.offsetHeight; + if ( + ((i -= e(n, 'Top') + e(n, 'Bottom')), + this.config.showTitle) + ) { + var o = this.el().querySelector('.keen-dataviz-title'); + i -= o + ? o.offsetHeight + : parseInt( + window + .getComputedStyle(this.el(), null) + ['font-size'].replace('px', '') + ); } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicSmoothRel.prototype, - 'x2', - { - get: function() { - return this._x2; - }, - set: function(t) { - (this._x2 = t), this._segmentChanged(); - }, - enumerable: !0 + if (this.config.subtitle) { + var s = this.el().querySelector( + '.keen-dataviz-subtitle' + ); + i -= s + ? s.offsetHeight + : parseInt( + window + .getComputedStyle(this.el(), null) + ['font-size'].replace('px', '') + ); } - ), - Object.defineProperty( - window.SVGPathSegCurvetoCubicSmoothRel.prototype, - 'y2', - { - get: function() { - return this._y2; - }, - set: function(t) { - (this._y2 = t), this._segmentChanged(); - }, - enumerable: !0 + if (this.config.notes) { + var u = this.el().querySelector('.keen-dataviz-notes'); + i -= u + ? u.offsetHeight + : parseInt( + window + .getComputedStyle(this.el(), null) + ['font-size'].replace('px', '') + ); } - ), - (window.SVGPathSegCurvetoQuadraticSmoothAbs = function( - t, - e, - n - ) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS, - 'T', - t + var l = + this.el().querySelector('.c3-chart').offsetWidth - + (e(n, 'Left') + e(n, 'Right')); + l < 0 && (l = 0); + var c = { + size: { width: l, height: i > 0 ? i : void 0 } + }; + return (0, a.extendDeep)({}, c, this.config, t); + } + return ( + (0, o.each)( + [ + 'area', + 'area-spline', + 'area-step', + 'bar', + 'donut', + 'gauge', + 'line', + 'pie', + 'step', + 'spline', + 'horizontal-area', + 'horizontal-area-spline', + 'horizontal-area-step', + 'horizontal-bar', + 'horizontal-line', + 'horizontal-step', + 'horizontal-spline' + ], + function(a, h) { + t[a] = { + render: function() { + var t = this, + h = n.call(this), + p = (0, d.calculateSumForPercents)( + this.dataset.matrix + ); + if ( + ('percent' !== h.stacking || + ('bar' !== a && + 'horizontal-bar' !== a && + 'area' !== a && + 'area-step' !== a && + 'area-spline' !== a) || + (this.dataset.matrix, + (this.dataset.matrix = [ + this.dataset.matrix[0] + ].concat( + k( + (0, d.calculatePercents)( + this.dataset.matrix, + p + ) + ) + )), + h.sparkline || + (h.axis = { + y: { + padding: { top: 0 }, + tick: { + format: function(t) { + return t + '%'; + } + } + } + })), + h.range && + (this.dataset.matrix = [ + this.dataset.matrix[0] + ].concat( + k((0, f.default)(this.dataset.matrix)) + )), + this.config.clearOnRender && + h.data.columns.length && + this.dataset && + this.dataset.meta) + ) { + var g = (this.dataset.meta || {}).type, + m = 0; + ['interval'].includes(void 0 === g ? '' : g) && + (m = 1), + h.data.columns.splice(m); + } + if ( + 1 !== this.data()[0].length && + 1 !== this.data().length + ) { + var v = !1; + if ( + ('gauge' === a + ? ((h.legend.show = !1), + (h.data.columns = [ + [ + this.config.title || + this.data()[1][0], + this.data()[1][1] + ] + ]), + (v = !0)) + : 'pie' === a || 'donut' === a + ? (h.data.columns = this.data().slice(1)) + : (a.indexOf('horizontal-') > -1 && + (h.axis.rotated = + a.indexOf('horizontal-') > -1), + (0, s.default)(this.data()[1][0]) + ? ((h.axis.x = h.axis.x || {}), + (h.axis.x.type = 'timeseries'), + (h.axis.x.tick = h.axis.x.tick || { + format: + this.config.dateFormat || + (0, u.default)( + this.data()[1][0], + this.data()[2] + ? this.data()[2][0] + : this.data()[1][0] + ), + culling: { max: 5 } + }), + (h.data.columns[0] = []), + (0, o.each)( + this.dataset.selectColumn(0), + function(t, e) { + e > 0 && (t = new Date(t)), + (h.data.columns[0][e] = t); + } + ), + (h.data.columns[0][0] = 'x'), + (h.data.x = 'x'), + this.config.stacked && + this.data()[0].length > 2 && + (h.data.groups = [ + this.dataset.selectRow(0).slice(1) + ])) + : ((h.axis.x = h.axis.x || {}), + (h.axis.x.type = 'category'), + (h.axis.x.categories = this.dataset + .selectColumn(0) + .slice(1)), + this.config.stacked && + this.data()[0].length > 2 && + (h.data.groups = [ + this.dataset.selectRow(0).slice(1) + ])), + 2 === this.data()[0].length && + ((h.legend.show = !1), (v = !0)), + (0, o.each)( + this.data()[0], + function(t, e) { + e > 0 && + h.data.columns.push( + this.dataset.selectColumn(e) + ); + }.bind(this) + )), + v) + ) { + var y = this.el().querySelector( + '.keen-c3-legend' + ); + y && + (y.remove(), + (h.size.width = this.el().querySelector( + '.c3-chart' + ).offsetWidth)), + (h.legend.show = !1); + } + if ( + h.partialIntervalIndicator && + h.partialIntervalIndicator.show && + [ + 'area', + 'area-spline', + 'area-step', + 'line', + 'spline', + 'step' + ].indexOf(h.type) > -1 + ) { + var b = h.data.columns && h.data.columns[0]; + if (b && b.length > 1) { + var _ = { + axis: 'x', + start: new Date(b[b.length - 2]), + class: + h.partialIntervalIndicator.className + }; + h.regions = [].concat(k(h.regions || []), [ + _ + ]); + } + } + if ( + ((h.tooltip && !1 === h.tooltip.show) || + !( + !0 === h.legend.show || + (h.legend && + h.legend.tooltip && + h.legend.tooltip.show) + ) || + (h.tooltip = { + contents: c.default, + format: { + title: this.config.tooltip.format.title, + value: function(e, n, r, i) { + var o = T.call(t, e, n, r, i); + return t.config.tooltip && + t.config.tooltip.format && + t.config.tooltip.format.value + ? ((o = t.config.tooltip.format.value.call( + t, + o, + n, + r, + i + )), + 'percent' !== h.stacking || + ('bar' !== a && + 'horizontal-bar' !== a && + 'area' !== a && + 'area-step' !== a && + 'area-spline' !== a) || + (o = parseFloat( + ((o / 100) * p[i]).toFixed(2) + )), + h.range && + 'Max' === r && + (o += + t.dataset.matrix[i + 1][2]), + o) + : 'percent' !== h.stacking || + ('bar' !== a && + 'horizontal-bar' !== a && + 'area' !== a && + 'area-step' !== a && + 'area-spline' !== a) + ? (h.range && + 'Max' === r && + (o += + t.dataset.matrix[i + 1][2]), + o) + : ((o = ((o / 100) * p[i]).toFixed( + 2 + )), + parseFloat(o)); + } + } + }), + !0 === h.legend.show) + ) { + var x = r({}, h); + (x.data.color = A.bind(this)), + (x.legend.hide = !0), + (this.view._artifacts.c3 = i.default.generate( + x + )), + l.default.call( + this, + r({}, h, { + onLegendRendered: function() { + var n = t + .el() + .querySelector('.keen-c3-legend'); + n && + ('top' === h.legend.position || + 'bottom' === h.legend.position + ? ((x.size.height -= + n.offsetHeight), + t.view._artifacts.c3.resize({ + height: x.size.height + })) + : (0 === x.size.width && + (x.size.width = + t.el().offsetWidth - + e(t.el(), 'Left') - + e(t.el(), 'Right')), + (x.size.width -= n.offsetWidth), + t.view._artifacts.c3.resize({ + width: x.size.width + }))); + }, + onPaginated: function() { + t.view._artifacts.c3.flush(); + } + }) + ); + } else + this.view._artifacts.c3 = i.default.generate( + h + ); + } else { + var w = 'No data to display', + S = this.config.errorMapping[w] || w; + this.config.showErrorMessages && + this.message(S); + } + }, + update: function() { + this.render(); + }, + destroy: function() { + this.view._artifacts.c3 && + (this.view._artifacts.c3.destroy(), + (this.view._artifacts.c3 = null)); + } + }; + } ), - (this._x = e), - (this._y = n); - }), - (window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString = function() { - return '[object SVGPathSegCurvetoQuadraticSmoothAbs]'; - }), - (window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString = function() { - return ( - this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y - ); - }), - (window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone = function() { - return new window.SVGPathSegCurvetoQuadraticSmoothAbs( - void 0, - this._x, - this._y - ); - }), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 - } + t + ); + })() + ); + }; + var i = E(n(10)), + o = n(0), + a = (n(5), n(15)), + s = E(n(11)), + u = E(n(34)), + l = E(n(35)), + c = E(n(36)), + f = E(n(37)), + d = n(38), + h = E(n(39)), + p = E(n(43)), + g = E(n(44)), + m = E(n(45)), + v = E(n(46)), + y = E(n(47)), + b = E(n(48)), + _ = E(n(49)), + x = E(n(50)), + w = E(n(51)), + S = E(n(52)); + function E(t) { + return t && t.__esModule ? t : { default: t }; + } + function k(t) { + if (Array.isArray(t)) { + for (var e = 0, n = Array(t.length); e < t.length; e++) + n[e] = t[e]; + return n; + } + return Array.from(t); + } + function A(t, e) { + var n = this.config.type; + if (this.view._artifacts.pagination && 'gauge' !== n) { + var r = this.view._artifacts.pagination.labels; + return (e.id && r.indexOf(e.id) > -1) || + (e && !e.id && r.indexOf(e) > -1) + ? t + : 'donut' === n || 'pie' === n + ? 'rgba(0,0,0,.1)' + : 'rgba(0,0,0,.07)'; + } + return t; + } + function T(t, e, n, r) { + var i = this.config.type; + return this.view._artifacts.pagination && 'gauge' !== i + ? this.view._artifacts.pagination.labels.indexOf(n) > -1 + ? t + : void 0 + : t; + } + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t, e) { + var n = Math.abs( + new Date(t).getTime() - new Date(e).getTime() ), - (window.SVGPathSegCurvetoQuadraticSmoothRel = function( - t, - e, - n - ) { - window.SVGPathSeg.call( - this, - window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL, - 't', - t - ), - (this._x = e), - (this._y = n); - }), - (window.SVGPathSegCurvetoQuadraticSmoothRel.prototype = Object.create( - window.SVGPathSeg.prototype - )), - (window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString = function() { - return '[object SVGPathSegCurvetoQuadraticSmoothRel]'; - }), - (window.SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString = function() { - return ( - this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y - ); - }), - (window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone = function() { - return new window.SVGPathSegCurvetoQuadraticSmoothRel( - void 0, - this._x, - this._y - ); - }), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticSmoothRel.prototype, - 'x', - { - get: function() { - return this._x; - }, - set: function(t) { - (this._x = t), this._segmentChanged(); - }, - enumerable: !0 + r = [ + 'Jan', + 'Feb', + 'Mar', + 'Apr', + 'May', + 'June', + 'July', + 'Aug', + 'Sept', + 'Oct', + 'Nov', + 'Dec' + ]; + return n >= 24192e5 + ? function(t) { + var e = new Date(t); + return r[e.getMonth()] + ' ' + e.getFullYear(); } - ), - Object.defineProperty( - window.SVGPathSegCurvetoQuadraticSmoothRel.prototype, - 'y', - { - get: function() { - return this._y; - }, - set: function(t) { - (this._y = t), this._segmentChanged(); - }, - enumerable: !0 + : n >= 864e5 + ? function(t) { + var e = new Date(t); + return r[e.getMonth()] + ' ' + e.getDate(); } - ), - (window.SVGPathElement.prototype.createSVGPathSegClosePath = function() { - return new window.SVGPathSegClosePath(void 0); - }), - (window.SVGPathElement.prototype.createSVGPathSegMovetoAbs = function( - t, - e - ) { - return new window.SVGPathSegMovetoAbs(void 0, t, e); - }), - (window.SVGPathElement.prototype.createSVGPathSegMovetoRel = function( - t, - e - ) { - return new window.SVGPathSegMovetoRel(void 0, t, e); - }), - (window.SVGPathElement.prototype.createSVGPathSegLinetoAbs = function( - t, - e - ) { - return new window.SVGPathSegLinetoAbs(void 0, t, e); - }), - (window.SVGPathElement.prototype.createSVGPathSegLinetoRel = function( - t, - e - ) { - return new window.SVGPathSegLinetoRel(void 0, t, e); - }), - (window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs = function( - t, - e, - n, - r, - i, - o - ) { - return new window.SVGPathSegCurvetoCubicAbs( - void 0, - t, - e, - n, - r, - i, - o - ); - }), - (window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel = function( - t, - e, - n, - r, - i, - o - ) { - return new window.SVGPathSegCurvetoCubicRel( - void 0, - t, - e, - n, - r, - i, - o - ); - }), - (window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs = function( - t, - e, - n, - r - ) { - return new window.SVGPathSegCurvetoQuadraticAbs( - void 0, - t, - e, - n, - r - ); - }), - (window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel = function( - t, - e, - n, - r - ) { - return new window.SVGPathSegCurvetoQuadraticRel( - void 0, - t, - e, - n, - r - ); - }), - (window.SVGPathElement.prototype.createSVGPathSegArcAbs = function( - t, - e, - n, - r, - i, - o, - a - ) { - return new window.SVGPathSegArcAbs( - void 0, - t, - e, - n, - r, - i, - o, - a - ); - }), - (window.SVGPathElement.prototype.createSVGPathSegArcRel = function( - t, - e, - n, - r, - i, - o, - a - ) { - return new window.SVGPathSegArcRel( - void 0, - t, - e, - n, - r, - i, - o, - a - ); + : n >= 36e5 + ? '%I:%M %p' + : '%I:%M:%S %p'; + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }; + (e.default = function(t) { + var e = t.data.columns, + n = this, + i = this.view._artifacts.c3, + o = [], + s = this.el().querySelector( + '.' + n.config.theme + '-rendering' + ), + u = n.config.legend, + l = (this.view._artifacts.pagination = r( + { + hidden: [], + labels: [], + offset: 0, + limit: Math.round((s.offsetHeight - 78) / 20), + total: 0 + }, + u.pagination + )); + if (t.legend.sort) { + o = t.legend.sort(e); + var c = []; + 'x' === e[0][0] && c.push(e[0]), + o.forEach(function(e) { + var n = t.data.columns.find(function(t) { + return t[0] === e; + }); + c.push(n); }), - (window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs = function( - t - ) { - return new window.SVGPathSegLinetoHorizontalAbs( - void 0, - t - ); + (t.data.columns = c); + } else + for (var f = 0; f < e.length; f++) + 'x' === e[f][0] || + (0, a.default)(e[f][1]) || + o.push(e[f][0]); + var d = this.el().querySelector('.keen-c3-legend'), + h = 'vertical'; + ('top' !== u.position && 'bottom' !== u.position) || + (h = 'horizontal'); + var p = document.createElement('div'); + p.setAttribute( + 'class', + 'keen-c3-legend-pagination-icons keen-c3-legend-horizontal-pagination-left' + ), + 'horizontal' === h && d.append(p); + var g = document.createElement('div'); + g.setAttribute( + 'class', + 'keen-c3-legend-items keen-c3-legend-' + h + '-items' + ), + d.append(g); + var m = document.createElement('div'); + m.setAttribute( + 'class', + 'keen-c3-legend-pagination keen-c3-legend-pagination-icons' + ), + 'vertical' === h && d.append(m); + var v = document.createElement('div'); + function y() { + (l.labels = o.slice(l.offset, l.offset + l.limit)), + (l.total = o.length), + b.call(n, l.labels), + l.total > l.limit && _.call(n), + t.onPaginated && t.onPaginated(); + } + function b() { + (g.innerHTML = ''), + l.labels.forEach(function(e) { + var n = u.label.textMaxLength + ? e.slice(0, u.label.textMaxLength - 1) + : e, + r = document.createElement('div'); + (r.innerHTML = + "" + n + ''), + (r.chartPartId = e), + r.setAttribute('class', 'legend-item'), + g.append(r); + var o = document.createElement('span'); + o.setAttribute('class', 'legend-item-color-sample'), + (o.style.backgroundColor = i.color(r.chartPartId)), + r.prepend(o); + var a = document.createElement('div'); + r.addEventListener('mouseover', function(e) { + i.focus(r.chartPartId), + u.tooltip.show && + r.chartPartId.length > u.label.textMaxLength && + (a.setAttribute( + 'class', + 'keen-c3-legend-label-overlay keen-c3-legend-position-' + + u.position + ), + (a.innerHTML = + (t.legend.tooltip.pointer + ? "
" + : '') + r.chartPartId), + r.append(a)); + }), + r.addEventListener('mouseout', function(t) { + i.revert(), a.remove(); + }), + r.addEventListener('click', function(t) { + var e = 1, + n = l.hidden.indexOf(r.chartPartId); + n < 0 + ? (l.hidden.push(r.chartPartId), (e = 0.35)) + : (l.hidden.splice(n, 1), (e = 1)), + (r.style.opacity = e), + i.toggle(r.chartPartId); + }); }), - (window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel = function( - t - ) { - return new window.SVGPathSegLinetoHorizontalRel( - void 0, - t - ); + t.onLegendRendered && + (t.onLegendRendered(), (t.onLegendRendered = null)); + } + function _() { + (m.innerHTML = ''), (p.innerHTML = ''), (v.innerHTML = ''); + var t = document.createElement('i'), + e = document.createElement('i'), + n = function(t) { + if ('forward' === t) { + var e = l.offset + l.limit; + return e < l.total + ? void (l.offset = e) + : void (l.offset = 0); + } + var n = l.offset - l.limit; + l.offset = + n >= 0 ? n : Math.floor(l.total / l.limit) * l.limit; + }; + e.addEventListener('click', function() { + n('forward'), y(), x(); + }), + t.addEventListener('click', function() { + n('backward'), y(), x(); }), - (window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs = function( - t - ) { - return new window.SVGPathSegLinetoVerticalAbs(void 0, t); + 'left' === u.position || 'right' === u.position + ? (t.setAttribute('class', 'up'), + e.setAttribute('class', 'down'), + m.append(e), + m.append(t)) + : (t.setAttribute('class', 'left'), + e.setAttribute('class', 'right'), + p.append(t), + v.append(e)); + } + function x() { + document.selection && document.selection.empty + ? document.selection.empty() + : window.getSelection && + window.getSelection().removeAllRanges(); + } + v.setAttribute( + 'class', + 'keen-c3-legend-pagination-icons keen-c3-legend-horizontal-pagination-right' + ), + 'horizontal' === h && d.append(v), + y(); + }), + (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && + (e[n] = t[n]); + e.default = t; + })(n(2)); + var i, + o = n(11), + a = (i = o) && i.__esModule ? i : { default: i }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t, e, n, i) { + for ( + var o = void 0, + a = void 0, + s = + this.config.tooltip_format_name || + function(t) { + return t; + }, + u = this.config.tooltip_format_title || e, + l = this.config.tooltip_format_value || n, + c = 0; + c < t.length; + c++ + ) + if (t[c] && (t[c].value || 0 === t[c].value)) { + o || + ((a = u ? u(t[c].x) : t[c].x), + (o = + "" + + (a || 0 === a + ? "' + : ''))); + var f = s(t[c].name), + d = l(t[c].value, t[c].ratio, t[c].id, t[c].index), + h = this.levelColor + ? this.levelColor(t[c].value) + : i(t[c].id); + d && + !isNaN(d) && + ((o += + ""), + -1 === f.indexOf('__tooltip_ignore_name_field__') && + (o += + "'), + (o += + "'), + (o += '')); + } + return o + '
" + + (0, r.escapeHtml)(a) + + '
" + + (0, r.escapeHtml)(f) + + '" + + (0, r.escapeHtml)(d) + + '
'; + }); + var r = n(4); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t) { + return t.slice(1).map(function(t) { + return t.map(function(e, n) { + return 'number' == typeof e && 1 === n ? e - t[n + 1] : e; + }); + }); + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.calculateSumForPercents = function(t) { + var e = []; + return ( + t.slice(1).forEach(function(t, n) { + t.forEach(function(t) { + if ('number' == typeof t) { + if (!e[n]) return (e[n] = t), e[n]; + e[n] += t; + } + return e[n]; + }); }), - (window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel = function( + e + ); + }), + (e.calculatePercents = function(t, e) { + return t.slice(1).map(function(t, n) { + return t.map(function(t) { + return 'number' == typeof t ? (t / e[n]) * 100 : t; + }); + }); + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = n(4), + i = a(n(16)), + o = a(n(1)); + function a(t) { + return t && t.__esModule ? t : { default: t }; + } + e.default = { + render: function(t) { + var e = document.createElement('div'), + n = document.createElement('div'), + a = document.createElement('span'), + s = document.createElement('div'), + u = document.createElement('div'), + l = document.createElement('div'); + (e.className = this.config.theme + ' keen-dataviz-box'), + (n.className = this.config.theme + '-message'), + (s.className = this.config.theme + '-title'), + (s.innerHTML = (0, r.escapeHtml)(this.config.title || '')), + (u.className = this.config.theme + '-subtitle'), + (u.innerHTML = (0, r.escapeHtml)( + this.config.subtitle || '' + )), + (l.className = this.config.theme + '-notes'), + (l.innerHTML = (0, r.escapeHtml)(this.config.notes || '')), + (a.innerHTML = (0, r.escapeHtml)(t) || ''), + n.appendChild(a), + this.config.title && + this.config.showTitle && + e.appendChild(s), + this.config.subtitle && e.appendChild(u), + e.appendChild(n), + this.config.notes && e.appendChild(l), + this.config.ui && + this.config.ui.buttons && + this.config.ui.buttons.download && + this.config.ui.buttons.download.type && + (0, i.default)({ + element: this.el(), + data: (0, r.escapeHtml)(t) || '', + type: this.config.ui.buttons.download.type, + label: this.config.ui.buttons.download.label + }), + this.config.utils && + this.config.utils.clickToCopyToClipboard && + (s.addEventListener('click', function(t) { + return (0, o.default)(t.target.innerText, t); + }), + l.addEventListener('click', function(t) { + return (0, o.default)(t.target.innerText, t); + }), + a.addEventListener('click', function(t) { + return (0, o.default)(t.target.innerText, t); + })), + (this.el().innerHTML = ''), + this.el().appendChild(e); + }, + update: function() { + this.render(); + }, + destroy: function() {} + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t) { + var e = t.event, + n = t.type, + o = t.data; + e.preventDefault(); + var a = n.toLowerCase(); + if (!['json', 'csv', 'jpg', 'jpeg', 'png'].includes(n)) + throw new Error('This type is not supported'); + 'png' !== a + ? 'jpg' !== a && 'jpeg' !== a + ? ('json' === a && (0, i.default)({ type: a, data: o }), + 'csv' === a && (0, i.default)({ type: a, data: o })) + : (0, r.default)({ + node: e.currentTarget.previousElementSibling, + quality: 1, + bgcolor: '#fff' + }) + : (0, r.default)({ + node: e.currentTarget.previousElementSibling + }); + }); + var r = o(n(17)), + i = o(n(18)); + function o(t) { + return t && t.__esModule ? t : { default: t }; + } + }, + function(t, e, n) { + !(function(e) { + 'use strict'; + var n = (function() { + return { + escape: function(t) { + return t.replace(/([.*+?^${}()|\[\]\/\\])/g, '\\$1'); + }, + parseExtension: e, + mimeType: function(t) { + var n, + r = e(t).toLowerCase(); + return ( + ((n = 'application/font-woff'), + { + woff: n, + woff2: n, + ttf: 'application/font-truetype', + eot: 'application/vnd.ms-fontobject', + png: 'image/png', + jpg: 'image/jpeg', + jpeg: 'image/jpeg', + gif: 'image/gif', + tiff: 'image/tiff', + svg: 'image/svg+xml' + })[r] || '' + ); + }, + dataAsUrl: function(t, e) { + return 'data:' + e + ';base64,' + t; + }, + isDataUrl: function(t) { + return -1 !== t.search(/^(data:)/); + }, + canvasToBlob: function(t) { + return t.toBlob + ? new Promise(function(e) { + t.toBlob(e); + }) + : (function(t) { + return new Promise(function(e) { + for ( + var n = window.atob( + t.toDataURL().split(',')[1] + ), + r = n.length, + i = new Uint8Array(r), + o = 0; + o < r; + o++ + ) + i[o] = n.charCodeAt(o); + e(new Blob([i], { type: 'image/png' })); + }); + })(t); + }, + resolveUrl: function(t, e) { + var n = document.implementation.createHTMLDocument(), + r = n.createElement('base'); + n.head.appendChild(r); + var i = n.createElement('a'); + return ( + n.body.appendChild(i), + (r.href = e), + (i.href = t), + i.href + ); + }, + getAndEncode: function(t) { + var e = 3e4; + return ( + s.impl.options.cacheBust && + (t += + (/\?/.test(t) ? '&' : '?') + + new Date().getTime()), + new Promise(function(n) { + var r, + i = new XMLHttpRequest(); + if ( + ((i.onreadystatechange = function() { + if (4 === i.readyState) + if (200 === i.status) { + var e = new FileReader(); + (e.onloadend = function() { + var t = e.result.split(/,/)[1]; + n(t); + }), + e.readAsDataURL(i.response); + } else + r + ? n(r) + : a( + 'cannot fetch resource: ' + + t + + ', status: ' + + i.status + ); + }), + (i.ontimeout = function() { + r + ? n(r) + : a( + 'timeout of ' + + e + + 'ms occured while fetching resource: ' + + t + ); + }), + (i.responseType = 'blob'), + (i.timeout = e), + i.open('GET', t, !0), + i.send(), + s.impl.options.imagePlaceholder) + ) { + var o = s.impl.options.imagePlaceholder.split( + /,/ + ); + o && o[1] && (r = o[1]); + } + function a(t) { + console.error(t), n(''); + } + }) + ); + }, + uid: + ((t = 0), + function() { + return ( + 'u' + + ( + '0000' + + ((Math.random() * Math.pow(36, 4)) << 0).toString( + 36 + ) + ).slice(-4) + + t++ + ); + }), + delay: function(t) { + return function(e) { + return new Promise(function(n) { + setTimeout(function() { + n(e); + }, t); + }); + }; + }, + asArray: function(t) { + for (var e = [], n = t.length, r = 0; r < n; r++) + e.push(t[r]); + return e; + }, + escapeXhtml: function(t) { + return t.replace(/#/g, '%23').replace(/\n/g, '%0A'); + }, + makeImage: function(t) { + return new Promise(function(e, n) { + var r = new Image(); + (r.onload = function() { + e(r); + }), + (r.onerror = n), + (r.src = t); + }); + }, + width: function(t) { + var e = n(t, 'border-left-width'), + r = n(t, 'border-right-width'); + return t.scrollWidth + e + r; + }, + height: function(t) { + var e = n(t, 'border-top-width'), + r = n(t, 'border-bottom-width'); + return t.scrollHeight + e + r; + } + }; + var t; + function e(t) { + var e = /\.([^\.\/]*?)$/g.exec(t); + return e ? e[1] : ''; + } + function n(t, e) { + var n = window.getComputedStyle(t).getPropertyValue(e); + return parseFloat(n.replace('px', '')); + } + })(), + r = (function() { + var t = /url\(['"]?([^'"]+?)['"]?\)/g; + return { + inlineAll: function(t, n, o) { + return e(t) + ? Promise.resolve(t) + .then(r) + .then(function(e) { + var r = Promise.resolve(t); + return ( + e.forEach(function(t) { + r = r.then(function(e) { + return i(e, t, n, o); + }); + }), + r + ); + }) + : Promise.resolve(t); + }, + shouldProcess: e, + impl: { readUrls: r, inline: i } + }; + function e(e) { + return -1 !== e.search(t); + } + function r(e) { + for (var r, i = []; null !== (r = t.exec(e)); ) + i.push(r[1]); + return i.filter(function(t) { + return !n.isDataUrl(t); + }); + } + function i(t, e, r, i) { + return Promise.resolve(e) + .then(function(t) { + return r ? n.resolveUrl(t, r) : t; + }) + .then(i || n.getAndEncode) + .then(function(t) { + return n.dataAsUrl(t, n.mimeType(e)); + }) + .then(function(r) { + return t.replace( + (function(t) { + return new RegExp( + '(url\\([\'"]?)(' + + n.escape(t) + + ')([\'"]?\\))', + 'g' + ); + })(e), + '$1' + r + '$3' + ); + }); + } + })(), + i = (function() { + return { + resolveAll: function() { + return t(document) + .then(function(t) { + return Promise.all( + t.map(function(t) { + return t.resolve(); + }) + ); + }) + .then(function(t) { + return t.join('\n'); + }); + }, + impl: { readAll: t } + }; + function t() { + return Promise.resolve(n.asArray(document.styleSheets)) + .then(function(t) { + var e = []; + return ( + t.forEach(function(t) { + try { + n.asArray(t.cssRules || []).forEach( + e.push.bind(e) + ); + } catch (e) { + console.log( + 'Error while reading CSS rules from ' + + t.href, + e.toString() + ); + } + }), + e + ); + }) + .then(function(t) { + return t + .filter(function(t) { + return t.type === CSSRule.FONT_FACE_RULE; + }) + .filter(function(t) { + return r.shouldProcess( + t.style.getPropertyValue('src') + ); + }); + }) + .then(function(e) { + return e.map(t); + }); + function t(t) { + return { + resolve: function() { + var e = (t.parentStyleSheet || {}).href; + return r.inlineAll(t.cssText, e); + }, + src: function() { + return t.style.getPropertyValue('src'); + } + }; + } + } + })(), + o = (function() { + return { + inlineAll: function e(i) { + return i instanceof Element + ? (function(t) { + var e = t.style.getPropertyValue('background'); + return e + ? r + .inlineAll(e) + .then(function(e) { + t.style.setProperty( + 'background', + e, + t.style.getPropertyPriority( + 'background' + ) + ); + }) + .then(function() { + return t; + }) + : Promise.resolve(t); + })(i).then(function() { + return i instanceof HTMLImageElement + ? t(i).inline() + : Promise.all( + n.asArray(i.childNodes).map(function(t) { + return e(t); + }) + ); + }) + : Promise.resolve(i); + }, + impl: { newImage: t } + }; + function t(t) { + return { + inline: function(e) { + return n.isDataUrl(t.src) + ? Promise.resolve() + : Promise.resolve(t.src) + .then(e || n.getAndEncode) + .then(function(e) { + return n.dataAsUrl(e, n.mimeType(t.src)); + }) + .then(function(e) { + return new Promise(function(n, r) { + (t.onload = n), + (t.onerror = r), + (t.src = e); + }); + }); + } + }; + } + })(), + a = { imagePlaceholder: void 0, cacheBust: !1 }, + s = { + toSvg: u, + toPng: function(t, e) { + return l(t, e || {}).then(function(t) { + return t.toDataURL(); + }); + }, + toJpeg: function(t, e) { + return l(t, (e = e || {})).then(function(t) { + return t.toDataURL('image/jpeg', e.quality || 1); + }); + }, + toBlob: function(t, e) { + return l(t, e || {}).then(n.canvasToBlob); + }, + toPixelData: function(t, e) { + return l(t, e || {}).then(function(e) { + return e + .getContext('2d') + .getImageData(0, 0, n.width(t), n.height(t)).data; + }); + }, + impl: { + fontFaces: i, + images: o, + util: n, + inliner: r, + options: {} + } + }; + function u(t, e) { + return ( + (function(t) { + void 0 === t.imagePlaceholder + ? (s.impl.options.imagePlaceholder = a.imagePlaceholder) + : (s.impl.options.imagePlaceholder = + t.imagePlaceholder), + void 0 === t.cacheBust + ? (s.impl.options.cacheBust = a.cacheBust) + : (s.impl.options.cacheBust = t.cacheBust); + })((e = e || {})), + Promise.resolve(t) + .then(function(t) { + return (function t(e, r, i) { + return i || !r || r(e) + ? Promise.resolve(e) + .then(function(t) { + return t instanceof HTMLCanvasElement + ? n.makeImage(t.toDataURL()) + : t.cloneNode(!1); + }) + .then(function(i) { + return (function(e, r, i) { + var o = e.childNodes; + return 0 === o.length + ? Promise.resolve(r) + : (function(e, n, r) { + var i = Promise.resolve(); + return ( + n.forEach(function(n) { + i = i + .then(function() { + return t(n, r); + }) + .then(function(t) { + t && e.appendChild(t); + }); + }), + i + ); + })(r, n.asArray(o), i).then(function() { + return r; + }); + })(e, i, r); + }) + .then(function(t) { + return (function(t, e) { + return e instanceof Element + ? Promise.resolve() + .then(function() { + var r, i; + (r = window.getComputedStyle(t)), + (i = e.style), + r.cssText + ? (i.cssText = r.cssText) + : (function(t, e) { + n.asArray(t).forEach( + function(n) { + e.setProperty( + n, + t.getPropertyValue(n), + t.getPropertyPriority( + n + ) + ); + } + ); + })(r, i); + }) + .then(function() { + [':before', ':after'].forEach( + function(r) { + !(function(r) { + var i = window.getComputedStyle( + t, + r + ), + o = i.getPropertyValue( + 'content' + ); + if ( + '' !== o && + 'none' !== o + ) { + var a = n.uid(); + e.className = + e.className + ' ' + a; + var s = document.createElement( + 'style' + ); + s.appendChild( + (function(t, e, r) { + var i = + '.' + t + ':' + e, + o = r.cssText + ? (function(t) { + var e = t.getPropertyValue( + 'content' + ); + return ( + t.cssText + + ' content: ' + + e + + ';' + ); + })(r) + : (function(t) { + return ( + n + .asArray(t) + .map( + function( + e + ) { + return ( + e + + ': ' + + t.getPropertyValue( + e + ) + + (t.getPropertyPriority( + e + ) + ? ' !important' + : '') + ); + } + ) + .join( + '; ' + ) + ';' + ); + })(r); + return document.createTextNode( + i + '{' + o + '}' + ); + })(a, r, i) + ), + e.appendChild(s); + } + })(r); + } + ); + }) + .then(function() { + t instanceof HTMLTextAreaElement && + (e.innerHTML = t.value), + t instanceof HTMLInputElement && + e.setAttribute( + 'value', + t.value + ); + }) + .then(function() { + e instanceof SVGElement && + (e.setAttribute( + 'xmlns', + 'http://www.w3.org/2000/svg' + ), + e instanceof SVGRectElement && + ['width', 'height'].forEach( + function(t) { + var n = e.getAttribute(t); + n && + e.style.setProperty(t, n); + } + )); + }) + .then(function() { + return e; + }) + : e; + })(e, t); + }) + : Promise.resolve(); + })(t, e.filter, !0); + }) + .then(c) + .then(f) + .then(function(t) { + return ( + e.bgcolor && (t.style.backgroundColor = e.bgcolor), + e.width && (t.style.width = e.width + 'px'), + e.height && (t.style.height = e.height + 'px'), + e.style && + Object.keys(e.style).forEach(function(n) { + t.style[n] = e.style[n]; + }), + t + ); + }) + .then(function(r) { + return (function(t, e, r) { + return Promise.resolve(t) + .then(function(t) { + return ( + t.setAttribute( + 'xmlns', + 'http://www.w3.org/1999/xhtml' + ), + new XMLSerializer().serializeToString(t) + ); + }) + .then(n.escapeXhtml) + .then(function(t) { + return ( + '' + + t + + '' + ); + }) + .then(function(t) { + return ( + '' + + t + + '' + ); + }) + .then(function(t) { + return 'data:image/svg+xml;charset=utf-8,' + t; + }); + })(r, e.width || n.width(t), e.height || n.height(t)); + }) + ); + } + function l(t, e) { + return u(t, e) + .then(n.makeImage) + .then(n.delay(100)) + .then(function(r) { + var i = (function(t) { + var r = document.createElement('canvas'); + if ( + ((r.width = e.width || n.width(t)), + (r.height = e.height || n.height(t)), + e.bgcolor) + ) { + var i = r.getContext('2d'); + (i.fillStyle = e.bgcolor), + i.fillRect(0, 0, r.width, r.height); + } + return r; + })(t); + return i.getContext('2d').drawImage(r, 0, 0), i; + }); + } + function c(t) { + return i.resolveAll().then(function(e) { + var n = document.createElement('style'); + return ( + t.appendChild(n), + n.appendChild(document.createTextNode(e)), t - ) { - return new window.SVGPathSegLinetoVerticalRel(void 0, t); - }), - (window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs = function( - t, - e, - n, - r - ) { - return new window.SVGPathSegCurvetoCubicSmoothAbs( - void 0, - t, - e, - n, - r - ); - }), - (window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel = function( - t, - e, - n, - r - ) { - return new window.SVGPathSegCurvetoCubicSmoothRel( - void 0, - t, - e, - n, - r - ); - }), - (window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs = function( - t, - e - ) { - return new window.SVGPathSegCurvetoQuadraticSmoothAbs( - void 0, - t, - e - ); - }), - (window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel = function( - t, - e - ) { - return new window.SVGPathSegCurvetoQuadraticSmoothRel( - void 0, - t, - e + ); + }); + } + function f(t) { + return o.inlineAll(t).then(function() { + return t; + }); + } + t.exports = s; + })(); + }, + function(t, e, n) { + (function(n) { + var r, i, o; + (i = []), + void 0 === + (o = + 'function' == + typeof (r = function() { + 'use strict'; + function e(t, e, n) { + var r = new XMLHttpRequest(); + r.open('GET', t), + (r.responseType = 'blob'), + (r.onload = function() { + a(r.response, e, n); + }), + (r.onerror = function() { + console.error('could not download file'); + }), + r.send(); + } + function r(t) { + var e = new XMLHttpRequest(); + e.open('HEAD', t, !1); + try { + e.send(); + } catch (t) {} + return 200 <= e.status && 299 >= e.status; + } + function i(t) { + try { + t.dispatchEvent(new MouseEvent('click')); + } catch (n) { + var e = document.createEvent('MouseEvents'); + e.initMouseEvent( + 'click', + !0, + !0, + window, + 0, + 0, + 0, + 80, + 20, + !1, + !1, + !1, + !1, + 0, + null + ), + t.dispatchEvent(e); + } + } + var o = + 'object' == typeof window && + window.window === window + ? window + : 'object' == typeof self && self.self === self + ? self + : 'object' == typeof n && n.global === n + ? n + : void 0, + a = + o.saveAs || + ('object' != typeof window || window !== o + ? function() {} + : 'download' in HTMLAnchorElement.prototype + ? function(t, n, a) { + var s = o.URL || o.webkitURL, + u = document.createElement('a'); + (n = n || t.name || 'download'), + (u.download = n), + (u.rel = 'noopener'), + 'string' == typeof t + ? ((u.href = t), + u.origin === location.origin + ? i(u) + : r(u.href) + ? e(t, n, a) + : i(u, (u.target = '_blank'))) + : ((u.href = s.createObjectURL(t)), + setTimeout(function() { + s.revokeObjectURL(u.href); + }, 4e4), + setTimeout(function() { + i(u); + }, 0)); + } + : 'msSaveOrOpenBlob' in navigator + ? function(t, n, o) { + if ( + ((n = n || t.name || 'download'), + 'string' != typeof t) + ) + navigator.msSaveOrOpenBlob( + (function(t, e) { + return ( + void 0 === e + ? (e = { autoBom: !1 }) + : 'object' != typeof e && + (console.warn( + 'Deprecated: Expected third argument to be a object' + ), + (e = { autoBom: !e })), + e.autoBom && + /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test( + t.type + ) + ? new Blob(['\ufeff', t], { + type: t.type + }) + : t + ); + })(t, o), + n + ); + else if (r(t)) e(t, n, o); + else { + var a = document.createElement('a'); + (a.href = t), + (a.target = '_blank'), + setTimeout(function() { + i(a); + }); + } + } + : function(t, n, r, i) { + if ( + ((i = i || open('', '_blank')) && + (i.document.title = i.document.body.innerText = + 'downloading...'), + 'string' == typeof t) + ) + return e(t, n, r); + var a = 'application/octet-stream' === t.type, + s = + /constructor/i.test(o.HTMLElement) || + o.safari, + u = /CriOS\/[\d]+/.test( + navigator.userAgent + ); + if ( + (u || (a && s)) && + 'object' == typeof FileReader + ) { + var l = new FileReader(); + (l.onloadend = function() { + var t = l.result; + (t = u + ? t + : t.replace( + /^data:[^;]*;/, + 'data:attachment/file;' + )), + i + ? (i.location.href = t) + : (location = t), + (i = null); + }), + l.readAsDataURL(t); + } else { + var c = o.URL || o.webkitURL, + f = c.createObjectURL(t); + i ? (i.location = f) : (location.href = f), + (i = null), + setTimeout(function() { + c.revokeObjectURL(f); + }, 4e4); + } + }); + (o.saveAs = a.saveAs = a), (t.exports = a); + }) + ? r.apply(e, i) + : r) || (t.exports = o); + }.call(this, n(7))); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r, + i = n(3), + o = n(4), + a = n(1), + s = (r = a) && r.__esModule ? r : { default: r }; + e.default = { + render: function() { + var t = this.config.colors[0], + e = this.config.theme, + n = this.config.title, + r = this.config.subtitle, + a = this.config, + u = '-', + l = '', + c = '', + f = '', + d = '', + h = void 0, + p = '', + g = '', + m = '', + v = '', + y = this.config, + b = y.results, + _ = y.previousResults, + x = y.isExtraction, + w = y.comparedProp; + if ( + (b && + _ && + ((p = _ ? ' metric-comparison' : ''), + (v = _ && n ? '-smaller' : ''), + (m = (g = b.result - _.result) > 0 ? '-green' : '-red'), + (g = Math.abs(g)), + (t = '')), + this.data() && + this.data()[1] && + this.data()[1][1] && + 'number' == typeof this.data()[1][1] && + (u = this.data()[1][1]), + x && w) + ) { + var S = (function(t, e) { + var n = t.query, + r = t.result, + i = []; + if ('extraction' !== n.analysis_type) + throw new Error('Analysis type is not an extraction!'); + return ( + Array.isArray(r) && + r.forEach(function(t) { + var r = { query: n, result: t[e] }; + i.push(r); + }), + i ); - }), - 'getPathSegAtLength' in window.SVGPathElement.prototype || - (window.SVGPathElement.prototype.getPathSegAtLength = function( - t - ) { - if (void 0 === t || !isFinite(t)) - throw 'Invalid arguments.'; - var e = document.createElementNS( - 'http://www.w3.org/2000/svg', - 'path' - ); - e.setAttribute('d', this.getAttribute('d')); - var n = e.pathSegList.numberOfItems - 1; - if (n <= 0) return 0; - do { - if ( - (e.pathSegList.removeItem(n), - t > e.getTotalLength()) - ) - break; - n--; - } while (n > 0); - return n; - })), - 'SVGPathSegList' in window || - ((window.SVGPathSegList = function(t) { - (this._pathElement = t), - (this._list = this._parsePath( - this._pathElement.getAttribute('d') - )), - (this._mutationObserverConfig = { - attributes: !0, - attributeFilter: ['d'] + })(b, w); + (u = S[0].result), + (p = (l = S[1].result) ? ' metric-comparison' : ''), + (v = l && n ? '-smaller' : ''), + (m = (g = u - l) > 0 ? '-green' : '-red'), + (g = Math.abs(g)), + (t = ''); + } + if ( + ((h = u), + (void 0 !== a.prettyNumber && !0 !== a.prettyNumber) || + isNaN(parseInt(u)) || + ((h = (0, i.prettyNumber)(u)), + b && _ && (g = (0, i.prettyNumber)(g))), + a.prefix && + (f = + '' + + a.prefix + + ''), + a.suffix && + (d = + '' + + a.suffix + + ''), + (c += '
'), + (c += + '
'), + b && + _ && + (c += + '
' + + (0, o.escapeHtml)(g) + + '
'), + x && + w && + (u && l + ? ((c += + '
' + + (0, o.escapeHtml)(g) + + '
'), + (c += '' + l + '')) + : (c += '

No data to display

')), + (c += + '
' + + f + + (0, o.escapeHtml)(h) + + d + + '
'), + n && + (c += + '
' + + (0, o.escapeHtml)(n) + + '
'), + r && + (c += + '
' + + (0, o.escapeHtml)(r) + + '
'), + (c += '
'), + (c += '
'), + (this.el().innerHTML = c), + this.config.onrendered && this.config.onrendered(), + this.config.utils && + this.config.utils.clickToCopyToClipboard) + ) { + var E = '.' + e + '-metric-value' + v; + if ( + (document + .querySelector(E) + .addEventListener('click', function(t) { + return (0, s.default)(t.target.innerText, t); }), - (this._pathElementMutationObserver = new MutationObserver( - this._updateListFromPathMutations.bind(this) - )), - this._pathElementMutationObserver.observe( - this._pathElement, - this._mutationObserverConfig + b && _) + ) { + var k = '.' + e + '-metric' + m; + document + .querySelector(k) + .addEventListener('click', function(t) { + return (0, s.default)(t.target.innerText, t); + }); + } + } + }, + update: function() { + this.render(); + }, + destroy: function() {} + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r, + i = function(t, e) { + if (Array.isArray(t)) return t; + if (Symbol.iterator in Object(t)) + return (function(t, e) { + var n = [], + r = !0, + i = !1, + o = void 0; + try { + for ( + var a, s = t[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !e || n.length !== e); + r = !0 ); - }), - (window.SVGPathSegList.prototype.classname = - 'SVGPathSegList'), - Object.defineProperty( - window.SVGPathSegList.prototype, - 'numberOfItems', - { - get: function() { - return ( - this._checkPathSynchronizedToList(), - this._list.length - ); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathElement.prototype, - 'pathSegList', - { - get: function() { - return ( - this._pathSegList || - (this._pathSegList = new window.SVGPathSegList( - this - )), - this._pathSegList - ); - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathElement.prototype, - 'normalizedPathSegList', - { - get: function() { - return this.pathSegList; - }, - enumerable: !0 - } - ), - Object.defineProperty( - window.SVGPathElement.prototype, - 'animatedPathSegList', - { - get: function() { - return this.pathSegList; - }, - enumerable: !0 + } catch (t) { + (i = !0), (o = t); + } finally { + try { + !r && s.return && s.return(); + } finally { + if (i) throw o; + } } - ), - Object.defineProperty( - window.SVGPathElement.prototype, - 'animatedNormalizedPathSegList', - { - get: function() { - return this.pathSegList; - }, - enumerable: !0 + return n; + })(t, e); + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' + ); + }, + o = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }, + a = n(4), + s = n(1), + u = (r = s) && r.__esModule ? r : { default: r }, + l = void 0; + function c(t, e) { + var n = '', + r = {}; + t.config.table && + t.config.table.pagination && + (r = t.config.table.pagination); + var s = o({}, { page: 1, limit: 0, arrows: !0 }, r); + l || (l = s.page); + var u = void 0, + c = 0; + if (0 === s.limit) u = e.slice(1); + else { + var f = s.limit * (l - 1) + 1, + d = f + s.limit; + (u = e.slice(f, d)), + (c = Math.ceil((e.length - 1) / s.limit)); + } + var h = t.config.table.columns + ? t.config.table.columns + : t.dataset.matrix[0], + p = {}, + g = t.config.table, + m = g.mapValues, + v = g.mapDates; + for (var y in m) p[h.indexOf(y)] = y; + var b = !0, + _ = !1, + x = void 0; + try { + for ( + var w, S = u[Symbol.iterator](); + !(b = (w = S.next()).done); + b = !0 + ) { + var E = w.value; + n += ''; + var k = !0, + A = !1, + T = void 0; + try { + for ( + var C, O = E.entries()[Symbol.iterator](); + !(k = (C = O.next()).done); + k = !0 + ) { + var P = C.value, + M = i(P, 2), + L = M[0], + j = M[1]; + v && j instanceof Date && (j = v(j)); + var D = (0, a.escapeHtml)(j); + p[L] + ? (n += '' + m[p[L]](D) + '') + : (n += '' + D + ''); } - ), - (window.SVGPathSegList.prototype._checkPathSynchronizedToList = function() { - this._updateListFromPathMutations( - this._pathElementMutationObserver.takeRecords() - ); - }), - (window.SVGPathSegList.prototype._updateListFromPathMutations = function( - t - ) { - if (this._pathElement) { - var e = !1; - t.forEach(function(t) { - 'd' == t.attributeName && (e = !0); - }), - e && - (this._list = this._parsePath( - this._pathElement.getAttribute('d') - )); + } catch (t) { + (A = !0), (T = t); + } finally { + try { + !k && O.return && O.return(); + } finally { + if (A) throw T; } - }), - (window.SVGPathSegList.prototype._writeListToPath = function() { - this._pathElementMutationObserver.disconnect(), - this._pathElement.setAttribute( - 'd', - window.SVGPathSegList._pathSegArrayAsString( - this._list - ) - ), - this._pathElementMutationObserver.observe( - this._pathElement, - this._mutationObserverConfig + } + n += ''; + } + } catch (t) { + (_ = !0), (x = t); + } finally { + try { + !b && S.return && S.return(); + } finally { + if (_) throw x; + } + } + if (c > 1) { + n += ''; + var R = 1, + z = 1 === l ? 1 : l - 1, + N = l === c ? c : l + 1; + for ( + s.arrows && + (n += + '«'); + R <= c; + + ) + (n += + '' + + R + + ''), + R++; + s.arrows && + (n += + '»'), + (n += ''); + } + return n; + } + e.default = { + render: function() { + var t = this, + e = this.dataset.matrix, + n = this.el(), + r = this.config.theme, + i = this, + o = ''; + if (1 === e.length && 0 === e[0].length) { + var s = 'No data to display', + f = this.config.errorMapping[s] || s; + this.config.showErrorMessages && this.message(f); + } else { + (o += '
'), + (o += ''), + (o += ''), + (o += ''), + (o += (function(t, e) { + var n = '', + r = -1, + i = t.config.table, + o = (i && i.columns) || e[0], + s = !0, + u = !1, + l = void 0; + try { + for ( + var c, f = o[Symbol.iterator](); + !(s = (c = f.next()).done); + s = !0 + ) { + var d = c.value, + h = (0, a.escapeHtml)(d); + n += + ''; + } + } catch (t) { + (u = !0), (l = t); + } finally { + try { + !s && f.return && f.return(); + } finally { + if (u) throw l; + } + } + return n; + })(i, e)), + (o += ''), + (o += ''), + (o += ''), + (o += c(i, e)), + (o += ''), + (o += '
' + + h + + '
'), + (o += '
'), + (n.querySelector('.' + r + '-rendering').innerHTML = o), + n + .querySelectorAll('.' + r + '-rendering th') + .forEach(function(o) { + o.addEventListener('click', function(o) { + var a = o.target.getAttribute('order') || 'asc', + s = o.target.getAttribute('fieldNumber'); + (a = 'asc' === a ? 'desc' : 'asc'), + o.target.setAttribute('order', a); + var u = t.dataset.matrix.shift(); + t.dataset.matrix.sort(function(t, e) { + var n = 'asc' === a ? 1 : -1; + if ('string' == typeof t[s]) { + var r = t[s].toUpperCase(), + i = e[s].toUpperCase(); + return r < i ? -1 * n : r > i ? 1 * n : 0; + } + return (t[s] - e[s]) * n; + }), + t.dataset.matrix.unshift(u), + (n.querySelector( + '.' + r + '-rendering tbody' + ).innerHTML = c(i, e)), + d(); + }); + }); + var d = function t() { + n.querySelectorAll('.btn').forEach(function(o) { + o.addEventListener( + 'click', + function(o) { + (l = parseInt(o.target.getAttribute('data-page'))), + (n.querySelector( + '.' + r + '-rendering tbody' + ).innerHTML = c(i, e)), + t(); + }, + !0 ); - }), - (window.SVGPathSegList.prototype.segmentChanged = function( - t - ) { - this._writeListToPath(); - }), - (window.SVGPathSegList.prototype.clear = function() { - this._checkPathSynchronizedToList(), - this._list.forEach(function(t) { - t._owningPathSegList = null; - }), - (this._list = []), - this._writeListToPath(); - }), - (window.SVGPathSegList.prototype.initialize = function(t) { - return ( - this._checkPathSynchronizedToList(), - (this._list = [t]), - (t._owningPathSegList = this), - this._writeListToPath(), - t - ); - }), - (window.SVGPathSegList.prototype._checkValidIndex = function( - t - ) { - if (isNaN(t) || t < 0 || t >= this.numberOfItems) - throw 'INDEX_SIZE_ERR'; - }), - (window.SVGPathSegList.prototype.getItem = function(t) { - return ( - this._checkPathSynchronizedToList(), - this._checkValidIndex(t), - this._list[t] - ); - }), - (window.SVGPathSegList.prototype.insertItemBefore = function( - t, - e - ) { - return ( - this._checkPathSynchronizedToList(), - e > this.numberOfItems && (e = this.numberOfItems), - t._owningPathSegList && (t = t.clone()), - this._list.splice(e, 0, t), - (t._owningPathSegList = this), - this._writeListToPath(), - t - ); - }), - (window.SVGPathSegList.prototype.replaceItem = function( - t, - e + }); + }; + if ( + (d(i, n, r), + this.config.onrendered && this.config.onrendered(), + this.config.utils && + this.config.utils.clickToCopyToClipboard) ) { - return ( - this._checkPathSynchronizedToList(), - t._owningPathSegList && (t = t.clone()), - this._checkValidIndex(e), - (this._list[e] = t), - (t._owningPathSegList = this), - this._writeListToPath(), - t - ); - }), - (window.SVGPathSegList.prototype.removeItem = function(t) { - this._checkPathSynchronizedToList(), - this._checkValidIndex(t); - var e = this._list[t]; - return ( - this._list.splice(t, 1), this._writeListToPath(), e - ); - }), - (window.SVGPathSegList.prototype.appendItem = function(t) { - return ( - this._checkPathSynchronizedToList(), - t._owningPathSegList && (t = t.clone()), - this._list.push(t), - (t._owningPathSegList = this), - this._writeListToPath(), - t - ); - }), - (window.SVGPathSegList._pathSegArrayAsString = function(t) { - var e = '', - n = !0; - return ( - t.forEach(function(t) { - n - ? ((n = !1), (e += t._asPathString())) - : (e += ' ' + t._asPathString()); - }), - e - ); - }), - (window.SVGPathSegList.prototype._parsePath = function(t) { - if (!t || 0 == t.length) return []; - var e = this, - n = function() { - this.pathSegList = []; - }; - n.prototype.appendSegment = function(t) { - this.pathSegList.push(t); - }; - var r = function(t) { - (this._string = t), - (this._currentIndex = 0), - (this._endIndex = this._string.length), - (this._previousCommand = - window.SVGPathSeg.PATHSEG_UNKNOWN), - this._skipOptionalSpaces(); - }; - (r.prototype._isCurrentSpace = function() { - var t = this._string[this._currentIndex]; - return ( - t <= ' ' && - (' ' == t || - '\n' == t || - '\t' == t || - '\r' == t || - '\f' == t) + var h = '.' + r + '-table-dataset'; + document + .querySelector(h) + .addEventListener('click', function(t) { + var e = t.target, + n = e.nodeName, + r = e.innerText; + 'TD' === n && (0, u.default)(r, t); + }); + } + } + }, + update: function() { + this.render(); + }, + destroy: function() {} + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = { + render: function() { + var t = ''; + (this.view._artifacts.spinner = {}), + (t += '
'), + (t += + '
'), + (t += '
'), + (t += '
'), + (t += '
'), + (this.el().innerHTML = t); + }, + update: function() { + this.render(); + }, + destroy: function() { + if (this.view._artifacts.spinner) { + this.view._artifacts.spinner.interval && + clearInterval(this.view._artifacts.spinner.interval), + (this.view._artifacts.spinner.radius = 0); + try { + delete this.view._artifacts.spinner; + } catch (t) { + this.view._artifacts.spinner = void 0; + } + } + this.el().innerHTML = ''; + } + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r, + i = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + o = (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && + (e[n] = t[n]); + return (e.default = t), e; + })(n(2)), + a = n(6), + s = n(3), + u = n(1), + l = (r = u) && r.__esModule ? r : { default: r }, + c = (function() { + function t() { + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError( + 'Cannot call a class as a function' ); - }), - (r.prototype._skipOptionalSpaces = function() { - for ( - ; - this._currentIndex < this._endIndex && - this._isCurrentSpace(); - - ) - this._currentIndex++; - return this._currentIndex < this._endIndex; - }), - (r.prototype._skipOptionalSpacesOrDelimiter = function() { - return ( - !( - this._currentIndex < this._endIndex && - !this._isCurrentSpace() && - ',' != this._string.charAt(this._currentIndex) - ) && - (this._skipOptionalSpaces() && - this._currentIndex < this._endIndex && - ',' == this._string.charAt(this._currentIndex) && - (this._currentIndex++, - this._skipOptionalSpaces()), - this._currentIndex < this._endIndex) - ); - }), - (r.prototype.hasMoreData = function() { - return this._currentIndex < this._endIndex; - }), - (r.prototype.peekSegmentType = function() { - var t = this._string[this._currentIndex]; - return this._pathSegTypeFromChar(t); - }), - (r.prototype._pathSegTypeFromChar = function(t) { - switch (t) { - case 'Z': - case 'z': - return window.SVGPathSeg.PATHSEG_CLOSEPATH; - case 'M': - return window.SVGPathSeg.PATHSEG_MOVETO_ABS; - case 'm': - return window.SVGPathSeg.PATHSEG_MOVETO_REL; - case 'L': - return window.SVGPathSeg.PATHSEG_LINETO_ABS; - case 'l': - return window.SVGPathSeg.PATHSEG_LINETO_REL; - case 'C': - return window.SVGPathSeg - .PATHSEG_CURVETO_CUBIC_ABS; - case 'c': - return window.SVGPathSeg - .PATHSEG_CURVETO_CUBIC_REL; - case 'Q': - return window.SVGPathSeg - .PATHSEG_CURVETO_QUADRATIC_ABS; - case 'q': - return window.SVGPathSeg - .PATHSEG_CURVETO_QUADRATIC_REL; - case 'A': - return window.SVGPathSeg.PATHSEG_ARC_ABS; - case 'a': - return window.SVGPathSeg.PATHSEG_ARC_REL; - case 'H': - return window.SVGPathSeg - .PATHSEG_LINETO_HORIZONTAL_ABS; - case 'h': - return window.SVGPathSeg - .PATHSEG_LINETO_HORIZONTAL_REL; - case 'V': - return window.SVGPathSeg - .PATHSEG_LINETO_VERTICAL_ABS; - case 'v': - return window.SVGPathSeg - .PATHSEG_LINETO_VERTICAL_REL; - case 'S': - return window.SVGPathSeg - .PATHSEG_CURVETO_CUBIC_SMOOTH_ABS; - case 's': - return window.SVGPathSeg - .PATHSEG_CURVETO_CUBIC_SMOOTH_REL; - case 'T': - return window.SVGPathSeg - .PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS; - case 't': - return window.SVGPathSeg - .PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL; - default: - return window.SVGPathSeg.PATHSEG_UNKNOWN; + })(this, t); + } + return ( + i(t, [ + { + key: 'render', + value: function() { + var t = this.dataset.matrix, + e = this.config, + n = e.colors, + r = e.container, + i = e.labelMapping, + u = e.colorMapping, + c = e.utils, + f = this.config, + d = this.config.funnel, + h = d.percents, + p = h.show, + g = h.countingMethod, + m = h.decimals, + v = d.lines, + y = d.marginBetweenSteps, + b = d.resultValues, + _ = d.hover, + x = d.minimalSize, + w = 20, + S = 30, + E = 30, + k = 200, + A = 0; + y && (A = 5); + var T = o.select(r), + C = o + .select( + this.el().querySelector( + '.' + + this.config.theme + + '-rendering .c3-chart' + ) + ) + .append('svg'), + O = T.style('width').slice(0, -2) - S - k, + P = T.style('height').slice(0, -2) - w - E - 30, + M = P / (t.length - 1), + L = O, + j = (100).toFixed(m), + D = 0; + x && (D = (O - x) / (t.length - 2)); + var R = t.slice(1).map(function(e, n) { + var r = [ + { x: (O - L) / 2, y: M * n + A }, + { x: (O - L) / 2 + L, y: M * n + A } + ]; + 0 !== n && + ('relative' === g && + (x ? (L -= D) : (L = (L * e[1]) / t[n][1]), + (j = ((e[1] / t[n][1]) * 100).toFixed(m))), + 'absolute' === g && + (x ? (L -= D) : (L = (O * e[1]) / t[1][1]), + (j = ((e[1] / t[1][1]) * 100).toFixed(m)))); + var o = e[0]; + if (Object.keys(i).length) + for (var a in i) i[a] === e[0] && (o = a); + var u = e[1]; + return ( + (void 0 !== f.prettyNumber && + !0 !== f.prettyNumber) || + isNaN(parseInt(e[1])) || + (u = (0, s.prettyNumber)(e[1])), + { + name: e[0], + label: o, + percent: j + '%', + result: u, + points: [].concat(r, [ + { x: (O - L) / 2 + L, y: M * (n + 1) }, + { x: (O - L) / 2, y: M * (n + 1) } + ]) + } + ); + }); + if ( + (C.attr('preserveAspectRatio', 'xMidYMid slice') + .attr( + 'viewBox', + '0 0 ' + (O + k + S) + ' ' + (P + w + E - 30) + ) + .attr('height', '100%') + .attr('width', '100%') + .append('g') + .attr( + 'transform', + 'translate(' + k + ',' + w + ')' + ) + .selectAll('polygon') + .data(R) + .enter() + .append('polygon') + .attr('points', function(t) { + return t.points + .map(function(t) { + return [t.x, t.y].join(','); + }) + .join(' '); + }) + .style('fill', function(t, e) { + return u[t.label] ? u[t.label] : n[e]; + }) + .attr('class', function(t) { + return t.label; + }) + .attr('cursor', 'pointer'), + v && + (C.selectAll('line') + .data(R) + .enter() + .append('line') + .attr('x1', 10) + .attr('y1', function(t) { + return t.points[0].y + w - A / 2; + }) + .attr('x2', function(t) { + return t.points[1].x + k; + }) + .attr('y2', function(t) { + return t.points[0].y + w - A / 2; + }) + .attr('class', 'chart-lines'), + C.append('line') + .attr('x1', 10) + .attr( + 'y1', + R[R.length - 1].points[2].y + w + A / 2 + ) + .attr('x2', R[R.length - 1].points[2].x + k) + .attr( + 'y2', + R[R.length - 1].points[2].y + w + A / 2 + ) + .attr('class', 'chart-lines')), + v && + C.selectAll('text.label') + .data(R) + .enter() + .append('text') + .style('text-anchor', 'start') + .attr('x', 20) + .attr('y', function(t) { + return ( + (t.points[2].y - t.points[1].y) / 2 + + t.points[1].y + + w + + A + + 5 + ); + }) + .attr('class', function(t) { + return 'text-label ' + t.label; + }) + .text(function(t) { + return t.name; + }) + .call(a.textWrap, k) + .attr('cursor', 'pointer'), + v || + C.selectAll('text.label') + .data(R) + .enter() + .append('text') + .style('text-anchor', 'end') + .attr('x', function(t) { + return ( + t.points[0].x + + (t.points[3].x - t.points[0].x) / 2 + + 0.9 * k + ); + }) + .attr('y', function(t) { + return ( + (t.points[2].y - t.points[1].y) / 2 + + t.points[1].y + + w + + A + + 5 + ); + }) + .attr('class', function(t) { + return 'text-label ' + t.label; + }) + .text(function(t) { + return t.name; + }) + .call(a.textWrap, k) + .attr('cursor', 'pointer'), + p && + !b && + C.selectAll('text.label') + .data(R) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', O / 2 + k) + .attr('y', function(t) { + return ( + (t.points[2].y - t.points[1].y) / 2 + + t.points[1].y + + w + + A + + 8 + ); + }) + .attr('class', function(t) { + return 'text-main ' + t.label; + }) + .text(function(t) { + return t.percent; + }) + .attr('cursor', 'pointer'), + b && + !p && + C.selectAll('text.label') + .data(R) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', O / 2 + k) + .attr('y', function(t) { + return ( + (t.points[2].y - t.points[1].y) / 2 + + t.points[1].y + + w + + A + + 8 + ); + }) + .attr('class', function(t) { + return 'text-main ' + t.label; + }) + .text(function(t) { + return t.result; + }) + .attr('cursor', 'pointer'), + p && + b && + (C.selectAll('text.label') + .data(R) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', O / 2 + k) + .attr('y', function(t) { + return 0 === A + ? (t.points[2].y - t.points[1].y) / 2 + + t.points[1].y + + w + + 16 + : (t.points[2].y - t.points[1].y) / 2 + + t.points[1].y + + w + + A + + 12; + }) + .attr('class', function(t) { + return 'text-second ' + t.label; + }) + .text(function(t) { + return t.percent; + }) + .attr('cursor', 'pointer'), + C.selectAll('text.label') + .data(R) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', O / 2 + k) + .attr('y', function(t) { + return 0 === A + ? (t.points[2].y - t.points[1].y) / 2 + + t.points[1].y + + w + : (t.points[2].y - t.points[1].y) / 2 + + t.points[1].y + + w + + A - + 5; + }) + .attr('class', function(t) { + return 'text-main ' + t.label; + }) + .text(function(t) { + return t.result; + }) + .attr('cursor', 'pointer')), + _) + ) { + var z = function(t) { + I.style('opacity', 0.5), + F.style('opacity', 0.5); + var e = /[^ ]*$/.exec( + o.select(this).attr('class') + )[0]; + C.selectAll('.' + e).style('opacity', 1); + }, + N = function(t) { + I.style('opacity', 1), F.style('opacity', 1); + }, + I = C.selectAll('polygon'); + I.on('mouseover', z).on('mouseout', N); + var F = C.selectAll('text'); + F.on('mouseover', z).on('mouseout', N); } - }), - (r.prototype._nextCommandHelper = function(t, e) { - return ('+' == t || - '-' == t || - '.' == t || - (t >= '0' && t <= '9')) && - e != window.SVGPathSeg.PATHSEG_CLOSEPATH - ? e == window.SVGPathSeg.PATHSEG_MOVETO_ABS - ? window.SVGPathSeg.PATHSEG_LINETO_ABS - : e == window.SVGPathSeg.PATHSEG_MOVETO_REL - ? window.SVGPathSeg.PATHSEG_LINETO_REL - : e - : window.SVGPathSeg.PATHSEG_UNKNOWN; - }), - (r.prototype.initialCommandIsMoveTo = function() { - if (!this.hasMoreData()) return !0; - var t = this.peekSegmentType(); - return ( - t == window.SVGPathSeg.PATHSEG_MOVETO_ABS || - t == window.SVGPathSeg.PATHSEG_MOVETO_REL - ); - }), - (r.prototype._parseNumber = function() { - var t = 0, - e = 0, - n = 1, - r = 0, - i = 1, - o = 1, - a = this._currentIndex; + c && + c.clickToCopyToClipboard && + C.selectAll('text').on('click', function(t) { + var e = t.percent, + n = t.result; + b + ? (0, l.default)(n, o.event) + : p && (0, l.default)(e, o.event); + }); + } + }, + { + key: 'update', + value: function() { + this.destroy(), this.render(); + } + }, + { + key: 'destroy', + value: function() { + o.select( + this.el().querySelector( + '.' + this.config.theme + '-rendering .c3-chart' + ) + ).remove(); + } + } + ]), + t + ); + })(); + e.default = c; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r, + i = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + o = (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && + (e[n] = t[n]); + return (e.default = t), e; + })(n(2)), + a = n(6), + s = n(3), + u = n(1), + l = (r = u) && r.__esModule ? r : { default: r }, + c = (function() { + function t() { + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t); + } + return ( + i(t, [ + { + key: 'render', + value: function() { + var t = this.dataset.matrix, + e = this.config, + n = e.colors, + r = e.container, + i = e.labelMapping, + u = e.colorMapping, + c = e.utils, + f = this.config, + d = this.config.funnel, + h = d.percents, + p = h.show, + g = h.countingMethod, + m = h.decimals, + v = d.lines, + y = d.resultValues, + b = d.effect3d, + _ = d.hover, + x = d.minimalSize, + w = 20, + S = 30, + E = 60, + k = 200, + A = o.select(r), + T = o + .select( + this.el().querySelector( + '.' + + this.config.theme + + '-rendering .c3-chart' + ) + ) + .append('svg'), + C = A.style('width').slice(0, -2) - S - k, + O = A.style('height').slice(0, -2) - w - E - 30, + P = O / (t.length - 1), + M = 0.3 * P, + L = 2.5 * M, + j = C, + D = (100).toFixed(m), + R = 0; + x && (R = (C - x) / (t.length - 2)); + var z = t.slice(1).map(function(e, n) { + var r = [ + { x: (C - j) / 2, y: P * n + M }, + { x: (C - j) / 2 + j, y: P * n + M } + ]; + 0 !== n && + ('relative' === g && + (x ? (j -= R) : (j = (j * e[1]) / t[n][1]), + (D = ((e[1] / t[n][1]) * 100).toFixed(m))), + 'absolute' === g && + (x ? (j -= R) : (j = (C * e[1]) / t[1][1]), + (D = ((e[1] / t[1][1]) * 100).toFixed(m)))); + var o = e[0]; + if (Object.keys(i).length) + for (var a in i) i[a] === e[0] && (o = a); + var u = e[1]; + return ( + (void 0 !== f.prettyNumber && + !0 !== f.prettyNumber) || + isNaN(parseInt(e[1])) || + (u = (0, s.prettyNumber)(e[1])), + { + name: e[0], + label: o, + percent: D + '%', + result: u, + points: [].concat(r, [ + { x: (C - j) / 2 + j, y: P * (n + 1) }, + { x: (C - j) / 2, y: P * (n + 1) } + ]) + } + ); + }), + N = z.map(function(t, e) { + return { + label: t.label, + points: [ + { x: t.points[3].x, y: t.points[3].y }, + { x: t.points[2].x, y: t.points[2].y }, + { + x: + 'left' === b + ? t.points[2].x + : t.points[2].x - L < C / 2 + ? C / 2 + 5 + : t.points[2].x - L, + y: + 'left' === b + ? t.points[2].y + : t.points[2].y + M / 1.5 + }, + { + x: + 'right' === b + ? t.points[3].x + : t.points[3].x + L > C / 2 + ? C / 2 - 5 + : t.points[3].x + L, + y: + 'right' === b + ? t.points[3].y + : t.points[3].y + M / 1.5 + } + ] + }; + }), + I = z.concat(N); if ( - (this._skipOptionalSpaces(), - this._currentIndex < this._endIndex && - '+' == this._string.charAt(this._currentIndex) - ? this._currentIndex++ - : this._currentIndex < this._endIndex && - '-' == - this._string.charAt(this._currentIndex) && - (this._currentIndex++, (i = -1)), - !( - this._currentIndex == this._endIndex || - ((this._string.charAt(this._currentIndex) < '0' || - this._string.charAt(this._currentIndex) > - '9') && - '.' != this._string.charAt(this._currentIndex)) - )) + (T.attr('preserveAspectRatio', 'xMidYMid meet') + .attr( + 'viewBox', + '0 0 ' + (C + k + S) + ' ' + (O + w + E - 30) + ) + .attr('height', '100%') + .attr('width', '100%') + .append('g') + .attr( + 'transform', + 'translate(' + k + ',' + w + ')' + ) + .selectAll('polygon') + .data(I) + .enter() + .append('polygon') + .attr('points', function(t) { + return t.points + .map(function(t) { + return [t.x, t.y].join(','); + }) + .join(' '); + }) + .style('fill', function(t, e) { + return e > z.length - 1 + ? u[t.label] + ? o.rgb(u[t.label]).darker(1.5) + : o.rgb(n[e - z.length]).darker(1.5) + : u[t.label] + ? u[t.label] + : n[e]; + }) + .attr('class', function(t) { + return t.label; + }) + .attr('cursor', 'pointer'), + v && + (T.selectAll('line') + .data(z) + .enter() + .append('line') + .attr('x1', 10) + .attr('y1', function(t) { + return t.points[0].y + w - M / 5; + }) + .attr('x2', function(t, e) { + return 0 === e + ? t.points[1].x + k + : t.points[1].x + k - L; + }) + .attr('y2', function(t) { + return t.points[0].y + w - M / 5; + }) + .attr('class', 'chart-lines'), + T.append('line') + .attr('x1', 10) + .attr( + 'y1', + z[z.length - 1].points[2].y + w + M - M / 5 + ) + .attr('x2', z[z.length - 1].points[2].x + k - L) + .attr( + 'y2', + z[z.length - 1].points[2].y + w + M - M / 5 + ) + .attr('class', 'chart-lines')), + v && + T.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'start') + .attr('x', 20) + .attr('y', function(t) { + return ( + (t.points[2].y - t.points[1].y) / 2 + + t.points[1].y + + w + + 5 + + M / 4 + ); + }) + .attr('class', function(t) { + return 'text-label ' + t.label; + }) + .text(function(t) { + return t.name; + }) + .call(a.textWrap, k) + .attr('cursor', 'pointer'), + v || + T.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'end') + .attr('x', function(t) { + return ( + t.points[0].x + + (t.points[3].x - t.points[0].x) / 2 + + 130 + ); + }) + .attr('y', function(t) { + return ( + (t.points[2].y - t.points[1].y) / 2 + + t.points[1].y + + w + + 5 + ); + }) + .attr('class', function(t) { + return 'text-label ' + t.label; + }) + .text(function(t) { + return t.name; + }) + .call(a.textWrap, k) + .attr('cursor', 'pointer'), + p && + !y && + T.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', C / 2 + k) + .attr('y', function(t) { + return ( + (t.points[2].y - t.points[1].y) / 2 + + t.points[1].y + + w + + 8 + ); + }) + .attr('class', function(t) { + return 'text-main ' + t.label; + }) + .text(function(t) { + return t.percent; + }) + .attr('cursor', 'pointer'), + y && + !p && + T.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', C / 2 + k) + .attr('y', function(t) { + return ( + (t.points[2].y - t.points[1].y) / 2 + + t.points[1].y + + w + + 8 + ); + }) + .attr('class', function(t) { + return 'text-main ' + t.label; + }) + .text(function(t) { + return t.result; + }) + .attr('cursor', 'pointer'), + p && + y && + (T.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', C / 2 + k) + .attr('y', function(t) { + return ( + (t.points[2].y - t.points[1].y) / 2 + + t.points[1].y + + w + + 18 + ); + }) + .attr('class', function(t) { + return 'text-second ' + t.label; + }) + .text(function(t) { + return t.percent; + }) + .attr('cursor', 'pointer'), + T.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', C / 2 + k) + .attr('y', function(t) { + return ( + (t.points[2].y - t.points[1].y) / 2 + + t.points[1].y + + w + + 3 + ); + }) + .attr('class', function(t) { + return 'text-main ' + t.label; + }) + .text(function(t) { + return t.result; + }) + .attr('cursor', 'pointer')), + _) ) { - for ( - var s = this._currentIndex; - this._currentIndex < this._endIndex && - this._string.charAt(this._currentIndex) >= '0' && - this._string.charAt(this._currentIndex) <= '9'; - + var F = function(t) { + B.style('opacity', 0.5), + G.style('opacity', 0.5); + var e = /[^ ]*$/.exec( + o.select(this).attr('class') + )[0]; + T.selectAll('.' + e).style('opacity', 1); + }, + V = function(t) { + B.style('opacity', 1), G.style('opacity', 1); + }, + B = T.selectAll('polygon'); + B.on('mouseover', F).on('mouseout', V); + var G = T.selectAll('text'); + G.on('mouseover', F).on('mouseout', V); + } + c && + c.clickToCopyToClipboard && + T.selectAll('text').on('click', function(t) { + var e = t.percent, + n = t.result; + y + ? (0, l.default)(n, o.event) + : p && (0, l.default)(e, o.event); + }); + } + }, + { + key: 'update', + value: function() { + this.destroy(), this.render(); + } + }, + { + key: 'destroy', + value: function() { + o.select( + this.el().querySelector( + '.' + this.config.theme + '-rendering .c3-chart' ) - this._currentIndex++; - if (this._currentIndex != s) - for ( - var u = this._currentIndex - 1, l = 1; - u >= s; - - ) - (e += l * (this._string.charAt(u--) - '0')), - (l *= 10); - if ( - this._currentIndex < this._endIndex && - '.' == this._string.charAt(this._currentIndex) - ) { - if ( - (this._currentIndex++, - this._currentIndex >= this._endIndex || - this._string.charAt(this._currentIndex) < - '0' || - this._string.charAt(this._currentIndex) > '9') + ).remove(); + } + } + ]), + t + ); + })(); + e.default = c; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r, + i = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + o = (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && + (e[n] = t[n]); + return (e.default = t), e; + })(n(2)), + a = n(6), + s = n(3), + u = n(1), + l = (r = u) && r.__esModule ? r : { default: r }, + c = (function() { + function t() { + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t); + } + return ( + i(t, [ + { + key: 'render', + value: function() { + var t = this.dataset.matrix, + e = this.config, + n = e.colors, + r = e.container, + i = e.labelMapping, + u = e.colorMapping, + c = e.utils, + f = this.config, + d = this.config.funnel, + h = d.percents, + p = h.show, + g = h.countingMethod, + m = h.decimals, + v = d.lines, + y = d.marginBetweenSteps, + b = d.resultValues, + _ = d.hover, + x = d.minimalSize, + w = 20, + S = 30, + E = 100, + k = 10, + A = 0; + y && (A = 5); + var T = o.select(r), + C = o + .select( + this.el().querySelector( + '.' + + this.config.theme + + '-rendering .c3-chart' + ) ) - return; - for ( - ; - this._currentIndex < this._endIndex && - this._string.charAt(this._currentIndex) >= - '0' && - this._string.charAt(this._currentIndex) <= '9'; - + .append('svg'), + O = T.style('width').slice(0, -2) - S - k, + P = T.style('height').slice(0, -2) - w - E - 30, + M = O / (t.length - 1), + L = P, + j = (100).toFixed(m), + D = 0; + x && (D = (P - x) / (t.length - 2)); + var R = t.slice(1).map(function(e, n) { + var r = [ + { x: M * n + A, y: (P - L) / 2 }, + { x: M * n + A, y: (P - L) / 2 + L } + ]; + 0 !== n && + ('relative' === g && + (x ? (L -= D) : (L = (L * e[1]) / t[n][1]), + (j = ((e[1] / t[n][1]) * 100).toFixed(m))), + 'absolute' === g && + (x ? (L -= D) : (L = (P * e[1]) / t[1][1]), + (j = ((e[1] / t[1][1]) * 100).toFixed(m)))); + var o = e[0]; + if (Object.keys(i).length) + for (var a in i) i[a] === e[0] && (o = a); + var u = e[1]; + return ( + (void 0 !== f.prettyNumber && + !0 !== f.prettyNumber) || + isNaN(parseInt(e[1])) || + (u = (0, s.prettyNumber)(e[1])), + { + name: e[0], + label: o, + percent: j + '%', + result: u, + points: [].concat(r, [ + { x: M * (n + 1), y: (P - L) / 2 + L }, + { x: M * (n + 1), y: (P - L) / 2 } + ]) + } + ); + }); + if ( + (C.attr('preserveAspectRatio', 'xMidYMid meet') + .attr( + 'viewBox', + '0 0 ' + (O + k + S) + ' ' + (P + w + E - 30) ) - (n *= 10), - (r += - (this._string.charAt(this._currentIndex) - - '0') / - n), - (this._currentIndex += 1); - } - if ( - this._currentIndex != a && - this._currentIndex + 1 < this._endIndex && - ('e' == this._string.charAt(this._currentIndex) || - 'E' == - this._string.charAt(this._currentIndex)) && - 'x' != - this._string.charAt(this._currentIndex + 1) && - 'm' != this._string.charAt(this._currentIndex + 1) - ) { - if ( - (this._currentIndex++, - '+' == this._string.charAt(this._currentIndex) - ? this._currentIndex++ - : '-' == - this._string.charAt(this._currentIndex) && - (this._currentIndex++, (o = -1)), - this._currentIndex >= this._endIndex || - this._string.charAt(this._currentIndex) < - '0' || - this._string.charAt(this._currentIndex) > '9') + .attr('height', '100%') + .attr('width', '100%') + .append('g') + .attr( + 'transform', + 'translate(' + k + ',' + w + ')' ) - return; - for ( - ; - this._currentIndex < this._endIndex && - this._string.charAt(this._currentIndex) >= - '0' && - this._string.charAt(this._currentIndex) <= '9'; - + .selectAll('polygon') + .data(R) + .enter() + .append('polygon') + .attr('points', function(t) { + return t.points + .map(function(t) { + return [t.x, t.y].join(','); + }) + .join(' '); + }) + .style('fill', function(t, e) { + return u[t.label] ? u[t.label] : n[e]; + }) + .attr('class', function(t) { + return t.label; + }) + .attr('cursor', 'pointer'), + v && + (C.selectAll('line') + .data(R) + .enter() + .append('line') + .attr('x1', function(t) { + return t.points[0].x + k - A / 2; + }) + .attr('y1', P + E) + .attr('x2', function(t) { + return t.points[0].x + k - A / 2; + }) + .attr('y2', function(t) { + return t.points[0].y + w; + }) + .attr('class', 'chart-lines'), + C.append('line') + .attr('x1', O + k - A / 2) + .attr('y1', P + E) + .attr( + 'x2', + R[R.length - 1].points[3].x + k + A / 2 + ) + .attr('y2', R[R.length - 1].points[3].y + w) + .attr('class', 'chart-lines')), + v && + C.selectAll('text.label') + .data(R) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(t) { + return t.points[1].x + M / 2 + k; + }) + .attr('y', P + 0.5 * E + w) + .attr('class', function(t) { + return 'text-label ' + t.label; + }) + .text(function(t) { + return t.name; + }) + .call(a.textWrap, M) + .attr('cursor', 'pointer'), + v || + C.selectAll('text.label') + .data(R) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(t) { + return t.points[1].x + M / 2 + k; + }) + .attr('y', function(t) { + return t.points[2].y + + (t.points[3].y - t.points[0].y) / 2 + + M / 4 > + P + E - 40 + w + ? P + E - 40 + w + : t.points[2].y + + (t.points[3].y - t.points[0].y) / 2 + + M / 4 + + w; + }) + .attr('class', function(t) { + return 'text-label ' + t.label; + }) + .text(function(t) { + return t.name; + }) + .call(a.textWrap, M) + .attr('cursor', 'pointer'), + p && + !b && + C.selectAll('text.label') + .data(R) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(t) { + return t.points[1].x + M / 2 + k; + }) + .attr('y', P / 2 + w + 10) + .attr('class', function(t) { + return 'text-main ' + t.label; + }) + .text(function(t) { + return t.percent; + }) + .attr('cursor', 'pointer'), + b && + !p && + C.selectAll('text.label') + .data(R) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(t) { + return t.points[1].x + M / 2 + k; + }) + .attr('y', P / 2 + w + 10) + .attr('class', function(t) { + return 'text-main ' + t.label; + }) + .text(function(t) { + return t.result; + }) + .attr('cursor', 'pointer'), + p && + b && + (C.selectAll('text.label') + .data(R) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(t) { + return t.points[1].x + M / 2 + k; + }) + .attr('y', P / 2 + w + 16) + .attr('class', function(t) { + return 'text-second ' + t.label; + }) + .text(function(t) { + return t.percent; + }) + .attr('cursor', 'pointer'), + C.selectAll('text.label') + .data(R) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(t) { + return t.points[1].x + M / 2 + k; + }) + .attr('y', P / 2 + w - 3) + .attr('class', function(t) { + return 'text-main ' + t.label; + }) + .text(function(t) { + return t.result; + }) + .attr('cursor', 'pointer')), + _) + ) { + var z = function(t) { + I.style('opacity', 0.5), + F.style('opacity', 0.5); + var e = /[^ ]*$/.exec( + o.select(this).attr('class') + )[0]; + C.selectAll('.' + e).style('opacity', 1); + }, + N = function(t) { + I.style('opacity', 1), F.style('opacity', 1); + }, + I = C.selectAll('polygon'); + I.on('mouseover', z).on('mouseout', N); + var F = C.selectAll('text'); + F.on('mouseover', z).on('mouseout', N); + } + c && + c.clickToCopyToClipboard && + C.selectAll('text').on('click', function(t) { + var e = t.percent, + n = t.result; + b + ? (0, l.default)(n, o.event) + : p && (0, l.default)(e, o.event); + }); + } + }, + { + key: 'update', + value: function() { + this.destroy(), this.render(); + } + }, + { + key: 'destroy', + value: function() { + o.select( + this.el().querySelector( + '.' + this.config.theme + '-rendering .c3-chart' + ) + ).remove(); + } + } + ]), + t + ); + })(); + e.default = c; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r, + i = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + o = (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && + (e[n] = t[n]); + return (e.default = t), e; + })(n(2)), + a = n(6), + s = n(3), + u = n(1), + l = (r = u) && r.__esModule ? r : { default: r }, + c = (function() { + function t() { + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t); + } + return ( + i(t, [ + { + key: 'render', + value: function() { + var t = this.dataset.matrix, + e = this.config, + n = e.colors, + r = e.container, + i = e.labelMapping, + u = e.colorMapping, + c = e.utils, + f = this.config, + d = this.config.funnel, + h = d.percents, + p = h.show, + g = h.countingMethod, + m = h.decimals, + v = d.lines, + y = d.resultValues, + b = d.effect3d, + _ = d.hover, + x = d.minimalSize, + w = 20, + S = 30, + E = 100, + k = 10, + A = o.select(r), + T = o + .select( + this.el().querySelector( + '.' + + this.config.theme + + '-rendering .c3-chart' + ) ) - (t *= 10), - (t += - this._string.charAt(this._currentIndex) - - '0'), - this._currentIndex++; - } - var c = e + r; - if ( - ((c *= i), - t && (c *= Math.pow(10, o * t)), - a != this._currentIndex) - ) - return this._skipOptionalSpacesOrDelimiter(), c; - } - }), - (r.prototype._parseArcFlag = function() { - if (!(this._currentIndex >= this._endIndex)) { - var t = !1, - e = this._string.charAt(this._currentIndex++); - if ('0' == e) t = !1; - else { - if ('1' != e) return; - t = !0; - } - return this._skipOptionalSpacesOrDelimiter(), t; - } - }), - (r.prototype.parseSegment = function() { - var t = this._string[this._currentIndex], - n = this._pathSegTypeFromChar(t); - if (n == window.SVGPathSeg.PATHSEG_UNKNOWN) { - if ( - this._previousCommand == - window.SVGPathSeg.PATHSEG_UNKNOWN - ) - return null; - if ( - (n = this._nextCommandHelper( - t, - this._previousCommand - )) == window.SVGPathSeg.PATHSEG_UNKNOWN - ) - return null; - } else this._currentIndex++; - switch (((this._previousCommand = n), n)) { - case window.SVGPathSeg.PATHSEG_MOVETO_REL: - return new window.SVGPathSegMovetoRel( - e, - this._parseNumber(), - this._parseNumber() - ); - case window.SVGPathSeg.PATHSEG_MOVETO_ABS: - return new window.SVGPathSegMovetoAbs( - e, - this._parseNumber(), - this._parseNumber() - ); - case window.SVGPathSeg.PATHSEG_LINETO_REL: - return new window.SVGPathSegLinetoRel( - e, - this._parseNumber(), - this._parseNumber() - ); - case window.SVGPathSeg.PATHSEG_LINETO_ABS: - return new window.SVGPathSegLinetoAbs( - e, - this._parseNumber(), - this._parseNumber() - ); - case window.SVGPathSeg - .PATHSEG_LINETO_HORIZONTAL_REL: - return new window.SVGPathSegLinetoHorizontalRel( - e, - this._parseNumber() - ); - case window.SVGPathSeg - .PATHSEG_LINETO_HORIZONTAL_ABS: - return new window.SVGPathSegLinetoHorizontalAbs( - e, - this._parseNumber() - ); - case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL: - return new window.SVGPathSegLinetoVerticalRel( - e, - this._parseNumber() - ); - case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS: - return new window.SVGPathSegLinetoVerticalAbs( - e, - this._parseNumber() - ); - case window.SVGPathSeg.PATHSEG_CLOSEPATH: + .append('svg'), + C = A.style('width').slice(0, -2) - S - k, + O = A.style('height').slice(0, -2) - w - E - 30, + P = C / (t.length - 1), + M = 0.3 * P, + L = M / 1.5, + j = O, + D = (100).toFixed(m), + R = 0; + x && (R = (O - x) / (t.length - 2)); + var z = t.slice(1).map(function(e, n) { + var r = [ + { x: P * n + M, y: (O - j) / 2 }, + { x: P * n + M, y: (O - j) / 2 + j } + ]; + 0 !== n && + ('relative' === g && + (x ? (j -= R) : (j = (j * e[1]) / t[n][1]), + (D = ((e[1] / t[n][1]) * 100).toFixed(m))), + 'absolute' === g && + (x ? (j -= R) : (j = (O * e[1]) / t[1][1]), + (D = ((e[1] / t[1][1]) * 100).toFixed(m)))); + var o = e[0]; + if (Object.keys(i).length) + for (var a in i) i[a] === e[0] && (o = a); + var u = e[1]; return ( - this._skipOptionalSpaces(), - new window.SVGPathSegClosePath(e) + (void 0 !== f.prettyNumber && + !0 !== f.prettyNumber) || + isNaN(parseInt(e[1])) || + (u = (0, s.prettyNumber)(e[1])), + { + name: e[0], + label: o, + percent: D + '%', + result: u, + points: [].concat(r, [ + { x: P * (n + 1), y: (O - j) / 2 + j }, + { x: P * (n + 1), y: (O - j) / 2 } + ]) + } ); - case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL: - var r = { - x1: this._parseNumber(), - y1: this._parseNumber(), - x2: this._parseNumber(), - y2: this._parseNumber(), - x: this._parseNumber(), - y: this._parseNumber() + }), + N = z.map(function(t, e) { + return { + label: t.label, + points: [ + { x: t.points[0].x, y: t.points[0].y }, + { x: t.points[1].x, y: t.points[1].y }, + { + x: + 'top' === b + ? t.points[1].x + : t.points[1].x - L, + y: + 'top' === b + ? t.points[1].y + : t.points[1].y - M < O / 2 + ? O / 2 + 5 + : t.points[1].y - M + }, + { + x: + 'bottom' === b + ? t.points[0].x + : t.points[0].x - L, + y: + 'bottom' === b + ? t.points[0].y + : t.points[0].y + M > O / 2 + ? O / 2 - 5 + : t.points[0].y + M + } + ] }; - return new window.SVGPathSegCurvetoCubicRel( - e, - r.x, - r.y, - r.x1, - r.y1, - r.x2, - r.y2 - ); - case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS: - return ( - (r = { - x1: this._parseNumber(), - y1: this._parseNumber(), - x2: this._parseNumber(), - y2: this._parseNumber(), - x: this._parseNumber(), - y: this._parseNumber() - }), - new window.SVGPathSegCurvetoCubicAbs( - e, - r.x, - r.y, - r.x1, - r.y1, - r.x2, - r.y2 - ) - ); - case window.SVGPathSeg - .PATHSEG_CURVETO_CUBIC_SMOOTH_REL: - return ( - (r = { - x2: this._parseNumber(), - y2: this._parseNumber(), - x: this._parseNumber(), - y: this._parseNumber() - }), - new window.SVGPathSegCurvetoCubicSmoothRel( - e, - r.x, - r.y, - r.x2, - r.y2 - ) - ); - case window.SVGPathSeg - .PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: - return ( - (r = { - x2: this._parseNumber(), - y2: this._parseNumber(), - x: this._parseNumber(), - y: this._parseNumber() - }), - new window.SVGPathSegCurvetoCubicSmoothAbs( - e, - r.x, - r.y, - r.x2, - r.y2 - ) - ); - case window.SVGPathSeg - .PATHSEG_CURVETO_QUADRATIC_REL: - return ( - (r = { - x1: this._parseNumber(), - y1: this._parseNumber(), - x: this._parseNumber(), - y: this._parseNumber() - }), - new window.SVGPathSegCurvetoQuadraticRel( - e, - r.x, - r.y, - r.x1, - r.y1 - ) - ); - case window.SVGPathSeg - .PATHSEG_CURVETO_QUADRATIC_ABS: - return ( - (r = { - x1: this._parseNumber(), - y1: this._parseNumber(), - x: this._parseNumber(), - y: this._parseNumber() - }), - new window.SVGPathSegCurvetoQuadraticAbs( - e, - r.x, - r.y, - r.x1, - r.y1 - ) - ); - case window.SVGPathSeg - .PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: - return new window.SVGPathSegCurvetoQuadraticSmoothRel( - e, - this._parseNumber(), - this._parseNumber() - ); - case window.SVGPathSeg - .PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: - return new window.SVGPathSegCurvetoQuadraticSmoothAbs( - e, - this._parseNumber(), - this._parseNumber() - ); - case window.SVGPathSeg.PATHSEG_ARC_REL: - return ( - (r = { - x1: this._parseNumber(), - y1: this._parseNumber(), - arcAngle: this._parseNumber(), - arcLarge: this._parseArcFlag(), - arcSweep: this._parseArcFlag(), - x: this._parseNumber(), - y: this._parseNumber() - }), - new window.SVGPathSegArcRel( - e, - r.x, - r.y, - r.x1, - r.y1, - r.arcAngle, - r.arcLarge, - r.arcSweep - ) - ); - case window.SVGPathSeg.PATHSEG_ARC_ABS: - return ( - (r = { - x1: this._parseNumber(), - y1: this._parseNumber(), - arcAngle: this._parseNumber(), - arcLarge: this._parseArcFlag(), - arcSweep: this._parseArcFlag(), - x: this._parseNumber(), - y: this._parseNumber() - }), - new window.SVGPathSegArcAbs( - e, - r.x, - r.y, - r.x1, - r.y1, - r.arcAngle, - r.arcLarge, - r.arcSweep + }), + I = z.concat(N); + if ( + (T.attr('preserveAspectRatio', 'xMidYMid meet') + .attr( + 'viewBox', + '0 0 ' + (C + k + S) + ' ' + (O + w + E - 30) + ) + .attr('height', '100%') + .attr('width', '100%') + .append('g') + .attr( + 'transform', + 'translate(' + k + ',' + w + ')' + ) + .selectAll('polygon') + .data(I) + .enter() + .append('polygon') + .attr('points', function(t) { + return t.points + .map(function(t) { + return [t.x, t.y].join(','); + }) + .join(' '); + }) + .style('fill', function(t, e) { + return e > z.length - 1 + ? u[t.label] + ? o.rgb(u[t.label]).darker(1.5) + : o.rgb(n[e - z.length]).darker(1.5) + : u[t.label] + ? u[t.label] + : n[e]; + }) + .attr('class', function(t) { + return t.label; + }) + .attr('cursor', 'pointer'), + v && + (T.selectAll('line') + .data(z) + .enter() + .append('line') + .attr('x1', function(t) { + return t.points[0].x + k - 0.8 * M; + }) + .attr('y1', O + E) + .attr('x2', function(t) { + return t.points[0].x + k - 0.8 * M; + }) + .attr('y2', function(t) { + return t.points[0].y + w; + }) + .attr('class', 'chart-lines'), + T.append('line') + .attr('x1', C + k + M / 4) + .attr('y1', O + E) + .attr( + 'x2', + z[z.length - 1].points[3].x + k + M / 4 ) - ); - default: - throw 'Unknown path seg type.'; + .attr('y2', z[z.length - 1].points[3].y + w) + .attr('class', 'chart-lines')), + v && + T.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(t) { + return t.points[0].x + k + 0.25 * P; + }) + .attr('y', O + 0.4 * E + w) + .attr('class', function(t) { + return 'text-label ' + t.label; + }) + .text(function(t) { + return t.name; + }) + .call(a.textWrap, P) + .attr('cursor', 'pointer'), + v || + T.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(t) { + return t.points[0].x + k + 0.25 * P; + }) + .attr('y', function(t) { + return t.points[2].y + P / 4 > O + E - 40 + ? O + E - 40 + w + : t.points[2].y + P / 4 < t.points[1].y + ? t.points[1].y + 20 + w + : t.points[2].y + P / 4 + 10 + w; + }) + .attr('class', function(t) { + return 'text-label ' + t.label; + }) + .text(function(t) { + return t.name; + }) + .call(a.textWrap, P) + .attr('cursor', 'pointer'), + p && + !y && + T.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(t) { + return t.points[1].x + P / 2.8 + k; + }) + .attr('y', O / 2 + w + 10) + .attr('class', function(t) { + return 'text-main ' + t.label; + }) + .text(function(t) { + return t.percent; + }) + .attr('cursor', 'pointer'), + y && + !p && + T.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(t) { + return t.points[1].x + P / 2.8 + k; + }) + .attr('y', O / 2 + w + 10) + .attr('class', function(t) { + return 'text-main ' + t.label; + }) + .text(function(t) { + return t.result; + }) + .attr('cursor', 'pointer'), + p && + y && + (T.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(t) { + return t.points[1].x + P / 2.8 + k; + }) + .attr('y', O / 2 + w + 16) + .attr('class', function(t) { + return 'text-second ' + t.label; + }) + .text(function(t) { + return t.percent; + }) + .attr('cursor', 'pointer'), + T.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(t) { + return t.points[1].x + P / 2.8 + k; + }) + .attr('y', O / 2 + w - 3) + .attr('class', function(t) { + return 'text-main ' + t.label; + }) + .text(function(t) { + return t.result; + }) + .attr('cursor', 'pointer')), + _) + ) { + var F = function(t) { + B.style('opacity', 0.5), + G.style('opacity', 0.5); + var e = /[^ ]*$/.exec( + o.select(this).attr('class') + )[0]; + T.selectAll('.' + e).style('opacity', 1); + }, + V = function(t) { + B.style('opacity', 1), G.style('opacity', 1); + }, + B = T.selectAll('polygon'); + B.on('mouseover', F).on('mouseout', V); + var G = T.selectAll('text'); + G.on('mouseover', F).on('mouseout', V); } + c && + c.clickToCopyToClipboard && + T.selectAll('text').on('click', function(t) { + var e = t.percent, + n = t.result; + y + ? (0, l.default)(n, o.event) + : p && (0, l.default)(e, o.event); + }); + } + }, + { + key: 'update', + value: function() { + this.destroy(), this.render(); + } + }, + { + key: 'destroy', + value: function() { + o.select( + this.el().querySelector( + '.' + this.config.theme + '-rendering .c3-chart' + ) + ).remove(); + } + } + ]), + t + ); + })(); + e.default = c; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + i = u(n(10)), + o = n(0), + a = n(3), + s = u(n(1)); + function u(t) { + return t && t.__esModule ? t : { default: t }; + } + var l = (function() { + function t() { + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + })(this, t); + } + return ( + r(t, [ + { + key: 'render', + value: function() { + var t = this, + e = this.config, + n = e.container, + r = e.metricResults, + u = e.title, + l = e.showTitle, + c = e.subtitle, + f = e.tooltip, + d = e.utils, + h = []; + (h[0] = []), + (0, o.each)(this.dataset.selectColumn(0), function( + t, + e + ) { + var n = void 0; + e > 0 && (n = new Date(t)), (h[0][e] = n); + }), + (h[0][0] = 'x'), + (0, o.each)(this.data()[0], function(e, n) { + n > 0 && h.push(t.dataset.selectColumn(n)); + }); + var p = (r && r.previous && r.previous.result) || 0, + g = ((r && r.current && r.current.result) || 0) - p, + m = + 0 === p + ? '-' + : (0, a.prettyNumber)(Math.round((g / p) * 100)), + v = 'keen-dataviz-metric-green', + y = 'arrow-green'; + m < 0 && + ((v = 'keen-dataviz-metric-red'), (y = 'arrow-red')); + var b = + l && u + ? '
' + + u + + '
' + : '', + _ = c + ? '
' + + c + + '
' + : '', + x = document.querySelector(n); + x.innerHTML = + '\n
\n
\n
\n ' + + b + + '\n ' + + _ + + '\n
' + + m + + ' %
\n
' + + (0, a.prettyNumber)(g) + + '
\n
\n
\n
\n
\n
\n
'; + var w = x.querySelector('.c3-chart'); + if ( + (i.default.generate({ + bindto: w, + color: { pattern: ['#c3c4cc'] }, + title: u, + legend: { show: !1 }, + data: { + x: 'x', + columns: h, + type: 'area-spline', + selection: { + draggable: !1, + enabled: !0, + multiple: !0 + } + }, + point: { + r: 0, + focus: { expand: { r: 5, enabled: !0 } }, + select: { r: 5, enabled: !0 } + }, + axis: { y: { show: !1 }, x: { show: !1 } }, + grid: { x: { show: !1 }, y: { show: !1 } }, + padding: { left: 0, right: 0, top: 0, bottom: -4 }, + tooltip: f + }), + d && d.clickToCopyToClipboard) + ) { + var S = document.querySelector('.current-count') + .innerText; + document + .querySelector('.keen-dataviz-metric-combo') + .addEventListener('click', function(t) { + return (0, s.default)(S, t); + }); + } + } + }, + { + key: 'update', + value: function() { + this.destroy(), this.render(); + } + }, + { + key: 'destroy', + value: function() { + var t = this.config.container; + document + .querySelector(t) + .querySelector('.c3-chart') + .remove(); + } + } + ]), + t + ); + })(); + e.default = l; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = function(t, e) { + if (Array.isArray(t)) return t; + if (Symbol.iterator in Object(t)) + return (function(t, e) { + var n = [], + r = !0, + i = !1, + o = void 0; + try { + for ( + var a, s = t[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !e || n.length !== e); + r = !0 + ); + } catch (t) { + (i = !0), (o = t); + } finally { + try { + !r && s.return && s.return(); + } finally { + if (i) throw o; + } + } + return n; + })(t, e); + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' + ); + }, + i = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + o = (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && + (e[n] = t[n]); + return (e.default = t), e; + })(n(2)), + a = u(n(19)), + s = u(n(1)); + function u(t) { + return t && t.__esModule ? t : { default: t }; + } + function l(t) { + if (Array.isArray(t)) { + for (var e = 0, n = Array(t.length); e < t.length; e++) + n[e] = t[e]; + return n; + } + return Array.from(t); + } + var c = (function() { + function t() { + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + })(this, t); + } + return ( + i(t, [ + { + key: 'render', + value: function() { + var t, + e, + n, + i = this.config, + u = i.colors, + c = i.container, + f = i.heatmap, + d = f.showSlider, + h = f.simpleTooltip, + p = this.dataset, + g = p.matrix, + m = p.meta, + v = 10, + y = 10, + b = 50, + _ = 50, + x = o.select(c), + w = parseInt(x.style('width'), 10) || 600, + S = parseInt(x.style('height'), 10) || 600, + E = this.el().querySelector('.c3-chart'), + k = w - y - _, + A = S - v - b, + T = new Set(), + C = new Set(), + O = + ((t = o.timeFormat('%B %d')), + (e = o.timeFormat('%H:%M')), + (n = []), + g.forEach(function(r) { + if ('heatmap' === m.type) { + if ('number' == typeof r[0][2]) { + var i = { + x: r[0][0], + y: r[0][1], + value: r[0][2] + }; + n.push(i); + } + } else { + var o = Date.parse(r[0]); + if (!isNaN(o)) { + var a = { + x: t(new Date(r[0])), + y: e(new Date(r[0])), + value: r[1] + }; + n.push(a); + } + } + }), + n); + O.forEach(function(t) { + T.add(t.x), C.add(t.y); }); - var i = new n(), - o = new r(t); - if (!o.initialCommandIsMoveTo()) return []; - for (; o.hasMoreData(); ) { - var a = o.parseSegment(); - if (!a) return []; - i.appendSegment(a); + var P = O[0].value, + M = O.reduce(function(t, e) { + return e.value < t ? e.value : t; + }, P), + L = O.reduce(function(t, e) { + return e.value > t ? e.value : t; + }, P), + j = function() { + var t = u[0], + e = o.rgb('#00BBDE'); + return o.color(t) && (e = o.rgb(t)), e; + }, + D = o + .scaleLinear() + .domain([ + 0, + o.max(O, function(t) { + return t.value; + }) + ]) + .range([0, 1]), + R = function(t) { + var e = D(t), + n = j(), + r = (function(t) { + var e = + arguments.length > 1 && + void 0 !== arguments[1] + ? arguments[1] + : [255, 255, 255], + n = t[3]; + return [ + Math.floor((1 - n) * e[0] + n * t[0] + 0.5), + Math.floor((1 - n) * e[1] + n * t[1] + 0.5), + Math.floor((1 - n) * e[2] + n * t[2] + 0.5) + ]; + })([n.r, n.g, n.b, e]); + return ( + 'rgb(' + r[0] + ', ' + r[1] + ', ' + r[2] + ')' + ); + }, + z = o + .select(E) + .append('svg') + .attr('preserveAspectRatio', 'xMidYMid slice') + .attr('viewBox', '0 0 ' + w + ' ' + S) + .attr('height', '100%') + .attr('width', '100%') + .append('g') + .attr( + 'transform', + 'translate(' + _ + ',' + v + ')' + ); + if (d) { + o + .select(c) + .append('input') + .attr('type', 'range') + .attr('class', 'keen-dataviz-slider'), + new a.default('.keen-dataviz-slider', { + multiple: !0, + min: M, + max: L, + value: [M, L], + onChange: function(t) { + return (function(t) { + var e = z.selectAll('rect'), + n = r(t, 2), + i = n[0], + a = n[1]; + e.each(function(t, e, n) { + o.select(n[e]).style( + 'visibility', + function() { + return t.value > a || t.value < i + ? 'hidden' + : 'visible'; + } + ); + }); + })(t); + } + }); + var N = c.className + ? '.' + c.className.replace(/\s/g, '.') + : c, + I = + '\n ' + + N + + ' .rangeable-progress,\n ' + + N + + ' .rangeable-tooltip,\n ' + + N + + ' .active {\n background-color: ' + + j() + + ';\n }\n ' + + N + + ' .rangeable-tooltip::before {\n border-color: ' + + j() + + ' transparent transparent;\n }\n ' + + N + + ' .rangeable-handle {\n border-color: ' + + j() + + ';\n }\n ', + F = document.createElement('style'); + F.innerHTML = I; + var V = document.querySelector('script'); + V.parentNode.insertBefore(F, V); + } + var B = function(t, e) { + return Math.floor(e / t) + 1; + }, + G = o + .scaleBand() + .range([0, k]) + .domain([].concat(l(T))) + .padding(0.02); + z.append('g') + .style('font-size', 12) + .attr('transform', 'translate(0, ' + A + ')') + .call(o.axisBottom(G).tickSize(0)) + .selectAll('text') + .attr('dy', '1em') + .filter(function(t, e) { + return e % B(5, T.size); + }) + .style('display', 'none'); + var H = o + .scaleBand() + .range([A, 0]) + .domain([].concat(l(C)).sort()) + .padding(0.02); + z.append('g') + .style('font-size', 12) + .call(o.axisLeft(H).tickSize(0)) + .selectAll('text') + .filter(function(t, e) { + return e % B(10, C.size); + }) + .style('display', 'none'); + var U = o + .select(c) + .append('div') + .attr('class', 'keen-dataviz-tooltip') + .style('opacity', 0) + .style('background-color', 'white') + .style('border', '2px solid ' + j().toString()) + .style('font-size', '14px') + .style('padding', '2px 8px') + .style('box-shadow', '2px 2px 4px rgba(0,0,0,0.25') + .style('display', 'none') + .style('position', 'fixed'); + z.selectAll() + .data(O, function(t) { + return t.x + ':' + t.y; + }) + .enter() + .append('rect') + .attr('x', function(t) { + return G(t.x); + }) + .attr('y', function(t) { + return H(t.y); + }) + .attr('width', G.bandwidth()) + .attr('height', H.bandwidth()) + .style('fill', function(t) { + return R(t.value); + }) + .style('cursor', 'pointer') + .on('mouseover', function() { + o + .select(o.event.target) + .raise() + .style('transition', 'transform 150ms ease-out') + .style('outline', '1px solid ' + j()) + .style('transform', 'translate(0px, -4px)'), + U.style('opacity', 1).style('display', 'block'); + }) + .on('mousemove', function(t) { + var e = + '\n \n value:\n ' + + t.value + + '\n '; + h || + (e = + '\n \n xAxis:\n ' + + t.x + + '\n \n \n yAxis:\n ' + + t.y + + '\n \n ' + + e + + '\n '), + U.html( + '\n \n ' + + e + + '\n
\n ' + ) + .style('left', o.event.clientX + 10 + 'px') + .style('top', o.event.clientY + 10 + 'px'); + }) + .on('mouseleave', function() { + o + .select(o.event.target) + .style('outline', 'none') + .style('transform', 'none'), + U.style('opacity', 0).style('display', 'none'); + }) + .on('click', function(t) { + return (0, s.default)(t.value); + }); } - return i.pathSegList; - })), - String.prototype.padEnd || - (String.prototype.padEnd = function(t, e) { - return ( - (t >>= 0), - (e = String(void 0 !== e ? e : ' ')), - this.length > t - ? String(this) - : ((t -= this.length) > e.length && - (e += e.repeat(t / e.length)), - String(this) + e.slice(0, t)) - ); - }), - 'function' != typeof Object.assign && - Object.defineProperty(Object, 'assign', { - value: function(t, e) { - if (null == t) - throw new TypeError( - 'Cannot convert undefined or null to object' - ); + }, + { + key: 'update', + value: function() { + this.destroy(), this.render(); + } + }, + { + key: 'destroy', + value: function() { + this.el() + .querySelector('.c3-chart') + .remove(); + } + } + ]), + t + ); + })(); + e.default = c; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = function(t, e) { + if (Array.isArray(t)) return t; + if (Symbol.iterator in Object(t)) + return (function(t, e) { + var n = [], + r = !0, + i = !1, + o = void 0; + try { for ( - var n = Object(t), r = 1; - r < arguments.length; - r++ - ) { - var i = arguments[r]; - if (null != i) - for (var o in i) - Object.prototype.hasOwnProperty.call(i, o) && - (n[o] = i[o]); + var a, s = t[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !e || n.length !== e); + r = !0 + ); + } catch (t) { + (i = !0), (o = t); + } finally { + try { + !r && s.return && s.return(); + } finally { + if (i) throw o; } - return n; - }, - writable: !0, - configurable: !0 - }), - (i.prototype.axis = function() {}), - (i.prototype.axis.labels = function(t) { - var e = this.internal; - arguments.length && - (Object.keys(t).forEach(function(n) { - e.axis.setLabelText(n, t[n]); - }), - e.axis.updateLabels()); - }), - (i.prototype.axis.max = function(e) { - var n = this.internal, - r = n.config; - if (!arguments.length) - return { - x: r.axis_x_max, - y: r.axis_y_max, - y2: r.axis_y2_max - }; - 'object' === t(e) - ? (y(e.x) && (r.axis_x_max = e.x), - y(e.y) && (r.axis_y_max = e.y), - y(e.y2) && (r.axis_y2_max = e.y2)) - : (r.axis_y_max = r.axis_y2_max = e), - n.redraw({ - withUpdateOrgXDomain: !0, - withUpdateXDomain: !0 - }); - }), - (i.prototype.axis.min = function(e) { - var n = this.internal, - r = n.config; - if (!arguments.length) - return { - x: r.axis_x_min, - y: r.axis_y_min, - y2: r.axis_y2_min - }; - 'object' === t(e) - ? (y(e.x) && (r.axis_x_min = e.x), - y(e.y) && (r.axis_y_min = e.y), - y(e.y2) && (r.axis_y2_min = e.y2)) - : (r.axis_y_min = r.axis_y2_min = e), - n.redraw({ - withUpdateOrgXDomain: !0, - withUpdateXDomain: !0 - }); - }), - (i.prototype.axis.range = function(t) { - if (!arguments.length) - return { max: this.axis.max(), min: this.axis.min() }; - d(t.max) && this.axis.max(t.max), - d(t.min) && this.axis.min(t.min); - }), - (i.prototype.axis.types = function(t) { - var e = this.internal; - if (void 0 === t) - return { - y: e.config.axis_y_type, - y2: e.config.axis_y2_type - }; - d(t.y) && (e.config.axis_y_type = t.y), - d(t.y2) && (e.config.axis_y2_type = t.y2), - e.updateScales(), - e.redraw(); - }), - (i.prototype.category = function(t, e) { - var n = this.internal, - r = n.config; - return ( - arguments.length > 1 && - ((r.axis_x_categories[t] = e), n.redraw()), - r.axis_x_categories[t] - ); - }), - (i.prototype.categories = function(t) { - var e = this.internal, - n = e.config; - return arguments.length - ? ((n.axis_x_categories = t), - e.redraw(), - n.axis_x_categories) - : n.axis_x_categories; - }), - (i.prototype.resize = function(t) { - var e = this.internal.config; - (e.size_width = t ? t.width : null), - (e.size_height = t ? t.height : null), - this.flush(); - }), - (i.prototype.flush = function() { - this.internal.updateAndRedraw({ - withLegend: !0, - withTransition: !1, - withTransitionForTransform: !1 - }); - }), - (i.prototype.destroy = function() { - var t = this.internal; - if ( - (window.clearInterval(t.intervalForObserveInserted), - void 0 !== t.resizeTimeout && - window.clearTimeout(t.resizeTimeout), - window.detachEvent) - ) - window.detachEvent( - 'onresize', - t.resizeIfElementDisplayed - ); - else if (window.removeEventListener) - window.removeEventListener( - 'resize', - t.resizeIfElementDisplayed - ); - else { - var e = window.onresize; - e && e.add && e.remove && e.remove(t.resizeFunction); - } - return ( - t.resizeFunction.remove(), - t.unbindWindowFocus(), - t.selectChart.classed('c3', !1).html(''), - Object.keys(t).forEach(function(e) { - t[e] = null; - }), - null - ); - }), - (i.prototype.color = function(t) { - return this.internal.color(t); - }), - (i.prototype.data = function(t) { - var e = this.internal.data.targets; - return void 0 === t - ? e - : e.filter(function(e) { - return [].concat(t).indexOf(e.id) >= 0; - }); - }), - (i.prototype.data.shown = function(t) { - return this.internal.filterTargetsToShow(this.data(t)); - }), - (i.prototype.data.values = function(t) { - var e = - !(arguments.length > 1 && void 0 !== arguments[1]) || - arguments[1], - n = null; - if (t) { - var r = this.data(t); - r && - f(r) && - (n = r.reduce(function(t, n) { - var r = n.values.map(function(t) { - return t.value; - }); - return e ? (t = t.concat(r)) : t.push(r), t; - }, [])); + } + return n; + })(t, e); + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' + ); + }, + i = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); } - return n; - }), - (i.prototype.data.names = function(t) { - return ( - this.internal.clearLegendItemTextBoxCache(), - this.internal.updateDataAttributes('names', t) - ); - }), - (i.prototype.data.colors = function(t) { - return this.internal.updateDataAttributes('colors', t); - }), - (i.prototype.data.axes = function(t) { - return this.internal.updateDataAttributes('axes', t); - }), - (i.prototype.data.stackNormalized = function(t) { - if (void 0 === t) return this.internal.isStackNormalized(); - (this.internal.config.data_stack_normalize = !!t), - this.internal.redraw(); - }), - (i.prototype.donut = function() {}), - (i.prototype.donut.padAngle = function(t) { - if (void 0 === t) - return this.internal.config.donut_padAngle; - (this.internal.config.donut_padAngle = t), this.flush(); - }), - (i.prototype.flow = function(t) { - var e, - n, - r, - i, - o, - a, - s, - u = this.internal, - l = [], - c = u.getMaxDataCount(), - f = 0, - h = 0; - if (t.json) n = u.convertJsonToData(t.json, t.keys); - else if (t.rows) n = u.convertRowsToData(t.rows); - else { - if (!t.columns) return; - n = u.convertColumnsToData(t.columns); + return t; + }, + o = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); } - (e = u.convertDataToTargets(n, !0)), - u.data.targets.forEach(function(t) { - var n, - r, - i = !1; - for (n = 0; n < e.length; n++) - if (t.id === e[n].id) { - for ( - i = !0, - t.values[t.values.length - 1] && - (h = t.values[t.values.length - 1].index + 1), - f = e[n].values.length, - r = 0; - r < f; - r++ + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + a = (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && + (e[n] = t[n]); + return (e.default = t), e; + })(n(2)), + s = c(n(19)), + u = n(3), + l = c(n(1)); + function c(t) { + return t && t.__esModule ? t : { default: t }; + } + var f = (function() { + function t() { + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + })(this, t); + } + return ( + o(t, [ + { + key: 'render', + value: function() { + var t = this.dataset.matrix, + e = this.config, + n = e.colors, + o = e.container, + c = e.utils, + f = e.title, + d = e.choropleth, + h = d.map, + p = d.borders, + g = p.show, + m = p.size, + v = p.color, + y = d.showSlider, + b = this.config, + _ = a.select(o), + x = a.select( + this.el().querySelector( + '.' + this.config.theme + '-rendering .c3-chart' ) - (e[n].values[r].index = h + r), - u.isTimeSeries() || (e[n].values[r].x = h + r); - (t.values = t.values.concat(e[n].values)), - e.splice(n, 1); - break; + ), + w = Number(_.style('width').slice(0, -2)), + S = Number(_.style('height').slice(0, -2)), + E = 0; + f && (E += 31), y && (E += 20); + var k = x + .append('svg') + .attr('width', w) + .attr('height', S - E), + A = t.slice(1).map(function(t) { + return t[1]; + }), + T = a.min(A), + C = a.max(A); + T === C && (T = 0); + var O = a.hsl(n[0]).brighter(1); + O.l = 0.95; + var P = n[0], + M = a + .scaleLinear() + .domain([ + void 0 === T ? 0 : T, + void 0 === C ? 0 : C + ]) + .range([O, P]); + a.json( + 'https://cdn.jsdelivr.net/npm/keen-dataviz-maps@1.0.0/maps/' + + h + + '.json' + ).then(function(e) { + var f = a + .zoom() + .scaleExtent([1, 5]) + .translateExtent([[0, 0], [w, S - 50]]) + .on('zoom', function() { + k.selectAll('.' + P).attr( + 'transform', + a.event.transform + ); + }), + d = void 0; + switch (h) { + case 'world': + d = a.geoMercator().fitSize([w, S - 50], e); + break; + case 'us': + d = a + .geoAlbersUsa() + .scale(w) + .fitSize([w, S - 50], e); + break; + default: + d = a + .geoMercator() + .scale(w) + .fitSize([w, S - 50], e); } - i || l.push(t.id); - }), - u.data.targets.forEach(function(t) { - var e, n; - for (e = 0; e < l.length; e++) - if (t.id === l[e]) - for ( - h = t.values[t.values.length - 1].index + 1, - n = 0; - n < f; - n++ - ) - t.values.push({ - id: t.id, - index: h + n, - x: u.isTimeSeries() - ? u.getOtherTargetX(h + n) - : h + n, - value: null + var p = a.geoPath().projection(d), + _ = e.features.map(function(e) { + var n = t.filter(function(t) { + return t[0] === e.properties.name; }); - }), - u.data.targets.length && - e.forEach(function(t) { - var e, - n = []; - for ( - e = u.data.targets[0].values[0].index; - e < h; - e++ + return n[0] + ? i({}, e, { + properties: i({}, e.properties, { + result: n[0][1] + }) + }) + : i({}, e, { + properties: i({}, e.properties, { + result: 0 + }) + }); + }); + if (y) { + x + .style('display', 'flex') + .style('flex-direction', 'column') + .style('justify-content', 'center'), + x + .append('div') + .style('width', '95%') + .style('margin', 'auto') + .append('input') + .attr('id', 'rangeSlider'), + new s.default('#rangeSlider', { + type: 'double', + tooltips: !0, + min: 0, + max: C, + onChange: function(t) { + return (function(t) { + var e = k.selectAll('.' + P), + n = r(t, 2), + i = n[0], + o = n[1]; + e.each(function(t, e, n) { + a.select(n[e]).style( + 'visibility', + function() { + return t.properties.result > o || + t.properties.result < i + ? 'hidden' + : 'visible'; + } + ); + }); + })(t); + } + }); + var E = o.className + ? '.' + o.className.replace(/\s/g, '.') + : o, + A = + '\n ' + + E + + ' .rangeable-progress,\n ' + + E + + ' .rangeable-tooltip,\n ' + + E + + ' .active {\n background-color: ' + + n[0] + + ';\n }\n ' + + E + + ' .rangeable-tooltip::before {\n border-color: ' + + n[0] + + ' transparent transparent;\n }\n ' + + E + + ' .rangeable-handle {\n border-color: ' + + n[0] + + ';\n }\n ', + T = document.createElement('style'); + T.innerHTML = A; + var O = document.querySelector('script'); + O.parentNode.insertBefore(T, O); + } + var P = 'world' === h ? 'country' : 'state'; + k + .selectAll('path') + .data(_) + .enter() + .append('path') + .attr('d', p) + .attr('class', P) + .attr('id', function(t) { + return ( + '' + + t.properties.name + .split(' ') + .join('-') + .split('.') + .join('') + ); + }) + .style('fill', function(t) { + return M(t.properties.result); + }) + .attr('cursor', 'pointer') + .on('mouseover', function(t) { + k + .select( + '#' + + t.properties.name + .split(' ') + .join('-') + .split('.') + .join('') + ) + .style('fill', function(t) { + return M(1.2 * C); + }) + .style('stroke-width', 1.5 * m), + L.style('opacity', 1).style('display', 'block'); + }) + .on('mousemove', function(t) { + var e = t.properties.result; + (void 0 !== b.prettyNumber && + !0 !== b.prettyNumber) || + isNaN(parseInt(t.properties.result)) || + (e = (0, u.prettyNumber)(t.properties.result)), + L.html( + '\n \n \n \n \n \n \n \n
' + + t.properties.name + + '
' + + e + + '
\n ' + ) + .style('left', a.event.clientX + 10 + 'px') + .style('top', a.event.clientY + 10 + 'px'); + }) + .on('mouseout', function(t) { + k + .select( + '#' + + t.properties.name + .split(' ') + .join('-') + .split('.') + .join('') + ) + .style('fill', function(t) { + return M(t.properties.result); + }) + .style('stroke-width', m), + L.style('opacity', 0).style('display', 'none'); + }), + g && + k + .selectAll('.' + P) + .style('stroke', v) + .style('stroke-width', m); + var L = a + .select('.c3-chart') + .append('div') + .style('opacity', 0) + .attr('class', 'c3-tooltip-container') + .style('display', 'none') + .style('position', 'fixed'); + c && + c.clickToCopyToClipboard && + k.selectAll('.' + P).on('click', function(t) { + var e = t.properties.result; + (0, l.default)(e, a.event); + }), + k.call(f), + k.call(f).on('mousedown.zoom', null); + }); + } + }, + { + key: 'update', + value: function() { + this.destroy(), this.render(); + } + }, + { + key: 'destroy', + value: function() { + a.select( + this.el().querySelector( + '.' + this.config.theme + '-rendering .c3-chart' ) - n.push({ - id: t.id, - index: e, - x: u.isTimeSeries() ? u.getOtherTargetX(e) : e, - value: null + ).remove(); + } + } + ]), + t + ); + })(); + e.default = f; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function() { + var t = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : {}, + e = t.element, + n = t.data, + r = document.createElement('dl'); + (r.classList = 'keen-dataviz-execution-meta'), + Object.keys(n).length + ? Object.keys(n).forEach(function(t) { + var e = document.createElement('dt'); + (e.innerText = t.replace(/_/g, ' ')), + e.addEventListener('click', function(t) { + return s(t); }); - t.values.forEach(function(t) { - (t.index += h), u.isTimeSeries() || (t.x += h); - }), - (t.values = n.concat(t.values)); - }), - (u.data.targets = u.data.targets.concat(e)), - u.getMaxDataCount(), - (o = (i = u.data.targets[0]).values[0]), - d(t.to) - ? ((f = 0), - (s = u.isTimeSeries() ? u.parseDate(t.to) : t.to), - i.values.forEach(function(t) { - t.x < s && f++; - })) - : d(t.length) && (f = t.length), - c - ? 1 === c && - u.isTimeSeries() && - ((a = (i.values[i.values.length - 1].x - o.x) / 2), - (r = [new Date(+o.x - a), new Date(+o.x + a)]), - u.updateXDomain(null, !0, !0, !1, r)) - : ((a = u.isTimeSeries() - ? i.values.length > 1 - ? i.values[i.values.length - 1].x - o.x - : o.x - u.getXDomain(u.data.targets)[0] - : 1), - (r = [o.x - a, o.x]), - u.updateXDomain(null, !0, !0, !1, r)), - u.updateTargets(u.data.targets), - u.redraw({ - flow: { - index: o.index, - length: f, - duration: y(t.duration) - ? t.duration - : u.config.transition_duration, - done: t.done, - orgDataCount: c - }, - withLegend: !0, - withTransition: c > 1, - withTrimXDomain: !1, - withUpdateXAxis: !0 - }); - }), - (r.prototype.generateFlow = function(t) { - var e = this, - n = e.config, - r = e.d3; - return function() { - var i, - o, - a, + var i = document.createElement('dd'); + (i.innerText = n[t]), + i.addEventListener('click', function(t) { + return s(t); + }), + r.append(e), + r.append(i); + }) + : (r.innerText = 'No execution metadata available'), + e.append(r); + }); + var r, + i = n(1), + o = (r = i) && r.__esModule ? r : { default: r }; + function a(t) { + var e = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : 'copied', + n = + arguments.length > 2 && void 0 !== arguments[2] + ? arguments[2] + : 1e3; + setTimeout(function() { + t.classList.remove(e); + }, n); + } + function s(t) { + var e = t.target, + n = t.target.nodeName, + r = void 0; + 'DD' === n && + ((r = e.innerText), + e.classList.contains('copied') || + (e.classList.add('copied'), a(e))), + 'DT' === n && + ((r = e.nextSibling.innerText), + e.nextSibling.classList.contains('copied') || + (e.nextSibling.classList.add('copied'), + a(e.nextSibling))), + (0, o.default)(r); + } + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = a(n(55)), + i = a(n(56)), + o = a(n(57)); + function a(t) { + return t && t.__esModule ? t : { default: t }; + } + e.default = { + autocollector: r.default, + modern: i.default, + dracula: o.default + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = { + colors: [ + '#5E77FF', + '#9C60FE', + '#F162FE', + '#FD65B7', + '#FD6768', + '#FDB86A', + '#F2FC6C', + '#A5FC6E', + '#71FB85', + '#73FBD0', + '#76DDFA', + '#76f4fa', + '#bb76fa', + '#fa76bf' + ] + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = { + colors: [ + '#45B2E8', + '#D9540D', + '#2CAB72', + '#2C4BAB', + '#EDDD02', + '#E84545', + '#E845CE', + '#5FCEC9', + '#E89F45', + '#28E43F', + '#B765C0', + '#458AE8', + '#AB2C2C', + '#AB2C75', + '#27E5FF', + '#7168F2', + '#FF932B', + '#855D00', + '#ACE845', + '#1C91B4' + ] + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = { + colors: [ + '#8be9fd', + '#50fa7b', + '#ffb86c', + '#ff79c6', + '#bd93f9', + '#ff5555', + '#f1fa8c' + ] + }); + } + ]); + }), + (t.exports = r(n(88), n(336))); + }, + function(t, e, n) { + var r = n(450); + t.exports = { + locale: r.locale, + long: r.long, + short: r.short, + narrow: r.narrow, + 'short-time': n(455), + 'short-convenient': n(456), + 'long-time': n(457), + 'long-convenient': n(458), + tiny: n(459), + quantify: r.quantify + }; + }, + function(t, e, n) { + 'use strict'; + var r = function(t) { + var e = {}; + return function(n) { + return void 0 === e[n] && (e[n] = t(n)), e[n]; + }; + }, + i = { + animationIterationCount: 1, + borderImageOutset: 1, + borderImageSlice: 1, + borderImageWidth: 1, + boxFlex: 1, + boxFlexGroup: 1, + boxOrdinalGroup: 1, + columnCount: 1, + columns: 1, + flex: 1, + flexGrow: 1, + flexPositive: 1, + flexShrink: 1, + flexNegative: 1, + flexOrder: 1, + gridRow: 1, + gridRowEnd: 1, + gridRowSpan: 1, + gridRowStart: 1, + gridColumn: 1, + gridColumnEnd: 1, + gridColumnSpan: 1, + gridColumnStart: 1, + fontWeight: 1, + lineHeight: 1, + opacity: 1, + order: 1, + orphans: 1, + tabSize: 1, + widows: 1, + zIndex: 1, + zoom: 1, + WebkitLineClamp: 1, + fillOpacity: 1, + floodOpacity: 1, + stopOpacity: 1, + strokeDasharray: 1, + strokeDashoffset: 1, + strokeMiterlimit: 1, + strokeOpacity: 1, + strokeWidth: 1 + }; + var o = function(t) { + for (var e, n = t.length, r = n ^ n, i = 0; n >= 4; ) + (e = + 1540483477 * + (65535 & + (e = + (255 & t.charCodeAt(i)) | + ((255 & t.charCodeAt(++i)) << 8) | + ((255 & t.charCodeAt(++i)) << 16) | + ((255 & t.charCodeAt(++i)) << 24))) + + (((1540483477 * (e >>> 16)) & 65535) << 16)), + (r = + (1540483477 * (65535 & r) + + (((1540483477 * (r >>> 16)) & 65535) << 16)) ^ + (e = + 1540483477 * (65535 & (e ^= e >>> 24)) + + (((1540483477 * (e >>> 16)) & 65535) << 16))), + (n -= 4), + ++i; + switch (n) { + case 3: + r ^= (255 & t.charCodeAt(i + 2)) << 16; + case 2: + r ^= (255 & t.charCodeAt(i + 1)) << 8; + case 1: + r = + 1540483477 * (65535 & (r ^= 255 & t.charCodeAt(i))) + + (((1540483477 * (r >>> 16)) & 65535) << 16); + } + return ( + (r = + 1540483477 * (65535 & (r ^= r >>> 13)) + + (((1540483477 * (r >>> 16)) & 65535) << 16)), + ((r ^= r >>> 15) >>> 0).toString(36) + ); + }; + var a = function(t) { + function e(t, e, r) { + var i = e.trim().split(p); + e = i; + var o = i.length, + a = t.length; + switch (a) { + case 0: + case 1: + var s = 0; + for (t = 0 === a ? '' : t[0] + ' '; s < o; ++s) + e[s] = n(t, e[s], r).trim(); + break; + default: + var u = (s = 0); + for (e = []; s < o; ++s) + for (var l = 0; l < a; ++l) + e[u++] = n(t[l] + ' ', i[s], r).trim(); + } + return e; + } + function n(t, e, n) { + var r = e.charCodeAt(0); + switch ((33 > r && (r = (e = e.trim()).charCodeAt(0)), r)) { + case 38: + return e.replace(g, '$1' + t.trim()); + case 58: + return t.trim() + e.replace(g, '$1' + t.trim()); + default: + if (0 < 1 * n && 0 < e.indexOf('\f')) + return e.replace( + g, + (58 === t.charCodeAt(0) ? '' : '$1') + t.trim() + ); + } + return t + e; + } + function r(t, e, n, o) { + var a = t + ';', + s = 2 * e + 3 * n + 4 * o; + if (944 === s) { + t = a.indexOf(':', 9) + 1; + var u = a.substring(t, a.length - 1).trim(); + return ( + (u = a.substring(0, t).trim() + u + ';'), + 1 === O || (2 === O && i(u, 1)) ? '-webkit-' + u + u : u + ); + } + if (0 === O || (2 === O && !i(a, 1))) return a; + switch (s) { + case 1015: + return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a; + case 951: + return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a; + case 963: + return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a; + case 1009: + if (100 !== a.charCodeAt(4)) break; + case 969: + case 942: + return '-webkit-' + a + a; + case 978: + return '-webkit-' + a + '-moz-' + a + a; + case 1019: + case 983: + return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a; + case 883: + if (45 === a.charCodeAt(8)) return '-webkit-' + a + a; + if (0 < a.indexOf('image-set(', 11)) + return a.replace(k, '$1-webkit-$2') + a; + break; + case 932: + if (45 === a.charCodeAt(4)) + switch (a.charCodeAt(5)) { + case 103: + return ( + '-webkit-box-' + + a.replace('-grow', '') + + '-webkit-' + + a + + '-ms-' + + a.replace('grow', 'positive') + + a + ); + case 115: + return ( + '-webkit-' + + a + + '-ms-' + + a.replace('shrink', 'negative') + + a + ); + case 98: + return ( + '-webkit-' + + a + + '-ms-' + + a.replace('basis', 'preferred-size') + + a + ); + } + return '-webkit-' + a + '-ms-' + a + a; + case 964: + return '-webkit-' + a + '-ms-flex-' + a + a; + case 1023: + if (99 !== a.charCodeAt(8)) break; + return ( + '-webkit-box-pack' + + (u = a + .substring(a.indexOf(':', 15)) + .replace('flex-', '') + .replace('space-between', 'justify')) + + '-webkit-' + + a + + '-ms-flex-pack' + + u + + a + ); + case 1005: + return d.test(a) + ? a.replace(f, ':-webkit-') + a.replace(f, ':-moz-') + a + : a; + case 1e3: + switch ( + ((e = (u = a.substring(13).trim()).indexOf('-') + 1), + u.charCodeAt(0) + u.charCodeAt(e)) + ) { + case 226: + u = a.replace(b, 'tb'); + break; + case 232: + u = a.replace(b, 'tb-rl'); + break; + case 220: + u = a.replace(b, 'lr'); + break; + default: + return a; + } + return '-webkit-' + a + '-ms-' + u + a; + case 1017: + if (-1 === a.indexOf('sticky', 9)) break; + case 975: + switch ( + ((e = (a = t).length - 10), + (s = + (u = (33 === a.charCodeAt(e) ? a.substring(0, e) : a) + .substring(t.indexOf(':', 7) + 1) + .trim()).charCodeAt(0) + + (0 | u.charCodeAt(7)))) + ) { + case 203: + if (111 > u.charCodeAt(8)) break; + case 115: + a = a.replace(u, '-webkit-' + u) + ';' + a; + break; + case 207: + case 102: + a = + a.replace( u, - l, - c, - f, - d, - h, - p, - g, - v = t.targets, - m = t.flow, - y = t.drawBar, - b = t.drawLine, - _ = t.drawArea, - x = t.cx, - S = t.cy, - E = t.xv, - k = t.xForText, - A = t.yForText, - T = t.duration, - C = m.index, - O = m.length, - P = e.getValueOnIndex(e.data.targets[0].values, C), - M = e.getValueOnIndex(e.data.targets[0].values, C + O), - L = e.x.domain(), - D = m.duration || T, - j = m.done || function() {}, - R = e.generateWait(); - (e.flowing = !0), - e.data.targets.forEach(function(t) { - t.values.splice(0, O); - }), - (a = e.updateXDomain(v, !0, !0)), - e.updateXGrid && e.updateXGrid(!0), - (u = e.xgrid || r.selectAll([])), - (l = e.xgridLines || r.selectAll([])), - (c = e.mainRegion || r.selectAll([])), - (f = e.mainText || r.selectAll([])), - (d = e.mainBar || r.selectAll([])), - (h = e.mainLine || r.selectAll([])), - (p = e.mainArea || r.selectAll([])), - (g = e.mainCircle || r.selectAll([])), - m.orgDataCount - ? (i = - 1 === m.orgDataCount || - (P && P.x) === (M && M.x) || - e.isTimeSeries() - ? e.x(L[0]) - e.x(a[0]) - : e.x(P.x) - e.x(M.x)) - : 1 !== e.data.targets[0].values.length - ? (i = e.x(L[0]) - e.x(a[0])) - : e.isTimeSeries() - ? ((P = e.getValueOnIndex( - e.data.targets[0].values, - 0 - )), - (M = e.getValueOnIndex( - e.data.targets[0].values, - e.data.targets[0].values.length - 1 - )), - (i = e.x(P.x) - e.x(M.x))) - : (i = s(a) / 2), - (o = - 'translate(' + - i + - ',0) scale(' + - s(L) / s(a) + - ',1)'), - e.hideXGridFocus(); - var N = r - .transition() - .ease(r.easeLinear) - .duration(D); - R.add(e.xAxis(e.axes.x, N)), - R.add(d.transition(N).attr('transform', o)), - R.add(h.transition(N).attr('transform', o)), - R.add(p.transition(N).attr('transform', o)), - R.add(g.transition(N).attr('transform', o)), - R.add(f.transition(N).attr('transform', o)), - R.add( - c - .filter(e.isRegionOnX) - .transition(N) - .attr('transform', o) - ), - R.add(u.transition(N).attr('transform', o)), - R.add(l.transition(N).attr('transform', o)), - R(function() { - var t, - r = [], - i = []; - if (O) { - for (t = 0; t < O; t++) - r.push('.' + w.shape + '-' + (C + t)), - i.push('.' + w.text + '-' + (C + t)); - e.svg - .selectAll('.' + w.shapes) - .selectAll(r) - .remove(), - e.svg - .selectAll('.' + w.texts) - .selectAll(i) - .remove(), - e.svg.select('.' + w.xgrid).remove(); - } - u - .attr('transform', null) - .attr('x1', e.xgridAttr.x1) - .attr('x2', e.xgridAttr.x2) - .attr('y1', e.xgridAttr.y1) - .attr('y2', e.xgridAttr.y2) - .style('opacity', e.xgridAttr.opacity), - l.attr('transform', null), - l - .select('line') - .attr('x1', n.axis_rotated ? 0 : E) - .attr('x2', n.axis_rotated ? e.width : E), - l - .select('text') - .attr('x', n.axis_rotated ? e.width : 0) - .attr('y', E), - d.attr('transform', null).attr('d', y), - h.attr('transform', null).attr('d', b), - p.attr('transform', null).attr('d', _), - g - .attr('transform', null) - .attr('cx', x) - .attr('cy', S), - f - .attr('transform', null) - .attr('x', k) - .attr('y', A) - .style('fill-opacity', e.opacityForText.bind(e)), - c.attr('transform', null), - c - .filter(e.isRegionOnX) - .attr('x', e.regionX.bind(e)) - .attr('width', e.regionWidth.bind(e)), - j(), - (e.flowing = !1); - }); - }; - }), - (i.prototype.focus = function(t) { - var e, - n = this.internal; - (t = n.mapToTargetIds(t)), - (e = n.svg.selectAll( - n.selectorTargets(t.filter(n.isTargetToShow, n)) - )), - this.revert(), - this.defocus(), - e.classed(w.focused, !0).classed(w.defocused, !1), - n.hasArcType() && n.expandArc(t), - n.toggleFocusLegend(t, !0), - (n.focusedTargetIds = t), - (n.defocusedTargetIds = n.defocusedTargetIds.filter( - function(e) { - return t.indexOf(e) < 0; - } - )); - }), - (i.prototype.defocus = function(t) { - var e = this.internal; - (t = e.mapToTargetIds(t)), - e.svg - .selectAll( - e.selectorTargets(t.filter(e.isTargetToShow, e)) - ) - .classed(w.focused, !1) - .classed(w.defocused, !0), - e.hasArcType() && e.unexpandArc(t), - e.toggleFocusLegend(t, !1), - (e.focusedTargetIds = e.focusedTargetIds.filter(function( - e + '-webkit-' + (102 < s ? 'inline-' : '') + 'box' + ) + + ';' + + a.replace(u, '-webkit-' + u) + + ';' + + a.replace(u, '-ms-' + u + 'box') + + ';' + + a; + } + return a + ';'; + case 938: + if (45 === a.charCodeAt(5)) + switch (a.charCodeAt(6)) { + case 105: + return ( + (u = a.replace('-items', '')), + '-webkit-' + + a + + '-webkit-box-' + + u + + '-ms-flex-' + + u + + a + ); + case 115: + return ( + '-webkit-' + a + '-ms-flex-item-' + a.replace(w, '') + a + ); + default: + return ( + '-webkit-' + + a + + '-ms-flex-line-pack' + + a.replace('align-content', '').replace(w, '') + + a + ); + } + break; + case 973: + case 989: + if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break; + case 931: + case 953: + if (!0 === E.test(t)) + return 115 === + (u = t.substring(t.indexOf(':') + 1)).charCodeAt(0) + ? r( + t.replace('stretch', 'fill-available'), + e, + n, + o + ).replace(':fill-available', ':stretch') + : a.replace(u, '-webkit-' + u) + + a.replace(u, '-moz-' + u.replace('fill-', '')) + + a; + break; + case 962: + if ( + ((a = + '-webkit-' + + a + + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + + a), + 211 === n + o && + 105 === a.charCodeAt(13) && + 0 < a.indexOf('transform', 10)) + ) + return ( + a + .substring(0, a.indexOf(';', 27) + 1) + .replace(h, '$1-webkit-$2') + a + ); + } + return a; + } + function i(t, e) { + var n = t.indexOf(1 === e ? ':' : '{'), + r = t.substring(0, 3 !== e ? n : 10); + return ( + (n = t.substring(n + 1, t.length - 1)), + j(2 !== e ? r : r.replace(S, '$1'), n, e) + ); + } + function o(t, e) { + var n = r(e, e.charCodeAt(0), e.charCodeAt(1), e.charCodeAt(2)); + return n !== e + ';' + ? n.replace(x, ' or ($1)').substring(4) + : '(' + e + ')'; + } + function a(t, e, n, r, i, o, a, s, l, c) { + for (var f, d = 0, h = e; d < L; ++d) + switch ((f = M[d].call(u, t, h, n, r, i, o, a, s, l, c))) { + case void 0: + case !1: + case !0: + case null: + break; + default: + h = f; + } + if (h !== e) return h; + } + function s(t) { + return ( + void 0 !== (t = t.prefix) && + ((j = null), + t + ? 'function' != typeof t + ? (O = 1) + : ((O = 2), (j = t)) + : (O = 0)), + s + ); + } + function u(t, n) { + var s = t; + if ((33 > s.charCodeAt(0) && (s = s.trim()), (s = [s]), 0 < L)) { + var u = a(-1, n, s, s, T, A, 0, 0, 0, 0); + void 0 !== u && 'string' == typeof u && (n = u); + } + var f = (function t(n, s, u, f, d) { + for ( + var h, + p, + g, + b, + x, + w = 0, + S = 0, + E = 0, + k = 0, + M = 0, + j = 0, + R = (g = h = 0), + z = 0, + N = 0, + I = 0, + F = 0, + V = u.length, + B = V - 1, + G = '', + H = '', + U = '', + q = ''; + z < V; + + ) { + if ( + ((p = u.charCodeAt(z)), + z === B && + 0 !== S + k + E + w && + (0 !== S && (p = 47 === S ? 10 : 47), + (k = E = w = 0), + V++, + B++), + 0 === S + k + E + w) + ) { + if ( + z === B && + (0 < N && (G = G.replace(c, '')), 0 < G.trim().length) + ) { + switch (p) { + case 32: + case 9: + case 59: + case 13: + case 10: + break; + default: + G += u.charAt(z); + } + p = 59; + } + switch (p) { + case 123: + for ( + h = (G = G.trim()).charCodeAt(0), g = 1, F = ++z; + z < V; + ) { - return t.indexOf(e) < 0; - })), - (e.defocusedTargetIds = t); - }), - (i.prototype.revert = function(t) { - var e = this.internal; - (t = e.mapToTargetIds(t)), - e.svg - .selectAll(e.selectorTargets(t)) - .classed(w.focused, !1) - .classed(w.defocused, !1), - e.hasArcType() && e.unexpandArc(t), - e.config.legend_show && - (e.showLegend(t.filter(e.isLegendToShow.bind(e))), - e.legend - .selectAll(e.selectorLegends(t)) - .filter(function() { - return e.d3 - .select(this) - .classed(w.legendItemFocused); - }) - .classed(w.legendItemFocused, !1)), - (e.focusedTargetIds = []), - (e.defocusedTargetIds = []); - }), - (i.prototype.xgrids = function(t) { - var e = this.internal, - n = e.config; - return t - ? ((n.grid_x_lines = t), - e.redrawWithoutRescale(), - n.grid_x_lines) - : n.grid_x_lines; - }), - (i.prototype.xgrids.add = function(t) { - var e = this.internal; - return this.xgrids(e.config.grid_x_lines.concat(t || [])); - }), - (i.prototype.xgrids.remove = function(t) { - this.internal.removeGridLines(t, !0); - }), - (i.prototype.ygrids = function(t) { - var e = this.internal, - n = e.config; - return t - ? ((n.grid_y_lines = t), - e.redrawWithoutRescale(), - n.grid_y_lines) - : n.grid_y_lines; - }), - (i.prototype.ygrids.add = function(t) { - var e = this.internal; - return this.ygrids(e.config.grid_y_lines.concat(t || [])); - }), - (i.prototype.ygrids.remove = function(t) { - this.internal.removeGridLines(t, !1); - }), - (i.prototype.groups = function(t) { - var e = this.internal, - n = e.config; - return ( - m(t) || ((n.data_groups = t), e.redraw()), n.data_groups - ); - }), - (i.prototype.legend = function() {}), - (i.prototype.legend.show = function(t) { - var e = this.internal; - e.showLegend(e.mapToTargetIds(t)), - e.updateAndRedraw({ withLegend: !0 }); - }), - (i.prototype.legend.hide = function(t) { - var e = this.internal; - e.hideLegend(e.mapToTargetIds(t)), - e.updateAndRedraw({ withLegend: !1 }); - }), - (i.prototype.load = function(t) { - var e = this.internal, - n = e.config; - t.xs && e.addXs(t.xs), - 'names' in t && - i.prototype.data.names.bind(this)(t.names), - 'classes' in t && - Object.keys(t.classes).forEach(function(e) { - n.data_classes[e] = t.classes[e]; - }), - 'categories' in t && - e.isCategorized() && - (n.axis_x_categories = t.categories), - 'axes' in t && - Object.keys(t.axes).forEach(function(e) { - n.data_axes[e] = t.axes[e]; - }), - 'colors' in t && - Object.keys(t.colors).forEach(function(e) { - n.data_colors[e] = t.colors[e]; - }), - 'cacheIds' in t && e.hasCaches(t.cacheIds) - ? e.load(e.getCaches(t.cacheIds), t.done) - : t.unload - ? e.unload( - e.mapToTargetIds(!0 === t.unload ? null : t.unload), - function() { - e.loadFromArgs(t); + switch ((p = u.charCodeAt(z))) { + case 123: + g++; + break; + case 125: + g--; + break; + case 47: + switch ((p = u.charCodeAt(z + 1))) { + case 42: + case 47: + t: { + for (R = z + 1; R < B; ++R) + switch (u.charCodeAt(R)) { + case 47: + if ( + 42 === p && + 42 === u.charCodeAt(R - 1) && + z + 2 !== R + ) { + z = R + 1; + break t; + } + break; + case 10: + if (47 === p) { + z = R + 1; + break t; + } + } + z = R; + } } + break; + case 91: + p++; + case 40: + p++; + case 34: + case 39: + for (; z++ < B && u.charCodeAt(z) !== p; ); + } + if (0 === g) break; + z++; + } + switch ( + ((g = u.substring(F, z)), + 0 === h && + (h = (G = G.replace(l, '').trim()).charCodeAt(0)), + h) + ) { + case 64: + switch ( + (0 < N && (G = G.replace(c, '')), + (p = G.charCodeAt(1))) + ) { + case 100: + case 109: + case 115: + case 45: + N = s; + break; + default: + N = P; + } + if ( + ((F = (g = t(s, N, g, p, d + 1)).length), + 0 < L && + ((x = a( + 3, + g, + (N = e(P, G, I)), + s, + T, + A, + F, + p, + d, + f + )), + (G = N.join('')), + void 0 !== x && + 0 === (F = (g = x.trim()).length) && + ((p = 0), (g = ''))), + 0 < F) ) - : e.loadFromArgs(t); - }), - (i.prototype.unload = function(t) { - var e = this.internal; - (t = t || {}) instanceof Array - ? (t = { ids: t }) - : 'string' == typeof t && (t = { ids: [t] }), - e.unload(e.mapToTargetIds(t.ids), function() { - e.redraw({ - withUpdateOrgXDomain: !0, - withUpdateXDomain: !0, - withLegend: !0 - }), - t.done && t.done(); - }); - }), - (i.prototype.pie = function() {}), - (i.prototype.pie.padAngle = function(t) { - if (void 0 === t) return this.internal.config.pie_padAngle; - (this.internal.config.pie_padAngle = t), this.flush(); - }), - (i.prototype.regions = function(t) { - var e = this.internal, - n = e.config; - return t - ? ((n.regions = t), e.redrawWithoutRescale(), n.regions) - : n.regions; - }), - (i.prototype.regions.add = function(t) { - var e = this.internal, - n = e.config; - return t - ? ((n.regions = n.regions.concat(t)), - e.redrawWithoutRescale(), - n.regions) - : n.regions; - }), - (i.prototype.regions.remove = function(t) { - var e, - n, - r, - i = this.internal, - o = i.config; - return ( - (e = u((t = t || {}), 'duration', o.transition_duration)), - (n = u(t, 'classes', [w.region])), - (r = i.main.select('.' + w.regions).selectAll( - n.map(function(t) { - return '.' + t; - }) - )), - (e ? r.transition().duration(e) : r) - .style('opacity', 0) - .remove(), - (o.regions = o.regions.filter(function(t) { - var e = !1; - return ( - !t.class || - (t.class.split(' ').forEach(function(t) { - n.indexOf(t) >= 0 && (e = !0); - }), - !e) - ); - })), - o.regions - ); - }), - (i.prototype.selected = function(t) { - var e = this.internal, - n = e.d3; - return e.main - .selectAll('.' + w.shapes + e.getTargetSelectorSuffix(t)) - .selectAll('.' + w.shape) - .filter(function() { - return n.select(this).classed(w.SELECTED); + switch (p) { + case 115: + G = G.replace(_, o); + case 100: + case 109: + case 45: + g = G + '{' + g + '}'; + break; + case 107: + (g = + (G = G.replace(m, '$1 $2')) + '{' + g + '}'), + (g = + 1 === O || (2 === O && i('@' + g, 3)) + ? '@-webkit-' + g + '@' + g + : '@' + g); + break; + default: + (g = G + g), 112 === f && ((H += g), (g = '')); + } + else g = ''; + break; + default: + g = t(s, e(s, G, I), g, f, d + 1); + } + (U += g), + (g = I = N = R = h = 0), + (G = ''), + (p = u.charCodeAt(++z)); + break; + case 125: + case 59: + if ( + 1 < + (F = (G = (0 < N ? G.replace(c, '') : G).trim()).length) + ) + switch ( + (0 === R && + ((h = G.charCodeAt(0)), + 45 === h || (96 < h && 123 > h)) && + (F = (G = G.replace(' ', ':')).length), + 0 < L && + void 0 !== + (x = a(1, G, s, n, T, A, H.length, f, d, f)) && + 0 === (F = (G = x.trim()).length) && + (G = '\0\0'), + (h = G.charCodeAt(0)), + (p = G.charCodeAt(1)), + h) + ) { + case 0: + break; + case 64: + if (105 === p || 99 === p) { + q += G + u.charAt(z); + break; + } + default: + 58 !== G.charCodeAt(F - 1) && + (H += r(G, h, p, G.charCodeAt(2))); + } + (I = N = R = h = 0), (G = ''), (p = u.charCodeAt(++z)); + } + } + switch (p) { + case 13: + case 10: + 47 === S + ? (S = 0) + : 0 === 1 + h && + 107 !== f && + 0 < G.length && + ((N = 1), (G += '\0')), + 0 < L * D && a(0, G, s, n, T, A, H.length, f, d, f), + (A = 1), + T++; + break; + case 59: + case 125: + if (0 === S + k + E + w) { + A++; + break; + } + default: + switch ((A++, (b = u.charAt(z)), p)) { + case 9: + case 32: + if (0 === k + w + S) + switch (M) { + case 44: + case 58: + case 9: + case 32: + b = ''; + break; + default: + 32 !== p && (b = ' '); + } + break; + case 0: + b = '\\0'; + break; + case 12: + b = '\\f'; + break; + case 11: + b = '\\v'; + break; + case 38: + 0 === k + S + w && ((N = I = 1), (b = '\f' + b)); + break; + case 108: + if (0 === k + S + w + C && 0 < R) + switch (z - R) { + case 2: + 112 === M && + 58 === u.charCodeAt(z - 3) && + (C = M); + case 8: + 111 === j && (C = j); + } + break; + case 58: + 0 === k + S + w && (R = z); + break; + case 44: + 0 === S + E + k + w && ((N = 1), (b += '\r')); + break; + case 34: + case 39: + 0 === S && (k = k === p ? 0 : 0 === k ? p : k); + break; + case 91: + 0 === k + S + E && w++; + break; + case 93: + 0 === k + S + E && w--; + break; + case 41: + 0 === k + S + w && E--; + break; + case 40: + if (0 === k + S + w) { + if (0 === h) + switch (2 * M + 3 * j) { + case 533: + break; + default: + h = 1; + } + E++; + } + break; + case 64: + 0 === S + E + k + w + R + g && (g = 1); + break; + case 42: + case 47: + if (!(0 < k + w + E)) + switch (S) { + case 0: + switch (2 * p + 3 * u.charCodeAt(z + 1)) { + case 235: + S = 47; + break; + case 220: + (F = z), (S = 42); + } + break; + case 42: + 47 === p && + 42 === M && + F + 2 !== z && + (33 === u.charCodeAt(F + 2) && + (H += u.substring(F, z + 1)), + (b = ''), + (S = 0)); + } + } + 0 === S && (G += b); + } + (j = M), (M = p), z++; + } + if (0 < (F = H.length)) { + if ( + ((N = s), + 0 < L && + (void 0 !== (x = a(2, H, N, n, T, A, F, f, d, f)) && + 0 === (H = x).length)) + ) + return q + H + U; + if (((H = N.join(',') + '{' + H + '}'), 0 != O * C)) { + switch ((2 !== O || i(H, 2) || (C = 0), C)) { + case 111: + H = H.replace(y, ':-moz-$1') + H; + break; + case 112: + H = + H.replace(v, '::-webkit-input-$1') + + H.replace(v, '::-moz-$1') + + H.replace(v, ':-ms-input-$1') + + H; + } + C = 0; + } + } + return q + H + U; + })(P, s, n, 0, 0); + return ( + 0 < L && + (void 0 !== (u = a(-2, f, s, s, T, A, f.length, 0, 0, 0)) && + (f = u)), + '', + (C = 0), + (A = T = 1), + f + ); + } + var l = /^\0+/g, + c = /[\0\r\f]/g, + f = /: */g, + d = /zoo|gra/, + h = /([,: ])(transform)/g, + p = /,\r+?/g, + g = /([\t\r\n ])*\f?&/g, + m = /@(k\w+)\s*(\S*)\s*/, + v = /::(place)/g, + y = /:(read-only)/g, + b = /[svh]\w+-[tblr]{2}/, + _ = /\(\s*(.*)\s*\)/g, + x = /([\s\S]*?);/g, + w = /-self|flex-/g, + S = /[^]*?(:[rp][el]a[\w-]+)[^]*/, + E = /stretch|:\s*\w+\-(?:conte|avail)/, + k = /([^-])(image-set\()/, + A = 1, + T = 1, + C = 0, + O = 1, + P = [], + M = [], + L = 0, + j = null, + D = 0; + return ( + (u.use = function t(e) { + switch (e) { + case void 0: + case null: + L = M.length = 0; + break; + default: + switch (e.constructor) { + case Array: + for (var n = 0, r = e.length; n < r; ++n) t(e[n]); + break; + case Function: + M[L++] = e; + break; + case Boolean: + D = 0 | !!e; + } + } + return t; + }), + (u.set = s), + void 0 !== t && s(t), + u + ); + }, + s = n(159), + u = n.n(s), + l = /[A-Z]|^ms/g, + c = r(function(t) { + return t.replace(l, '-$&').toLowerCase(); + }), + f = function(t, e) { + return null == e || 'boolean' == typeof e + ? '' + : 1 === i[t] || 45 === t.charCodeAt(1) || isNaN(e) || 0 === e + ? e + : e + 'px'; + }, + d = function t(e) { + for (var n = e.length, r = 0, i = ''; r < n; r++) { + var o = e[r]; + if (null != o) { + var a = void 0; + switch (typeof o) { + case 'boolean': + break; + case 'function': + 0, (a = t([o()])); + break; + case 'object': + if (Array.isArray(o)) a = t(o); + else + for (var s in ((a = ''), o)) + o[s] && s && (a && (a += ' '), (a += s)); + break; + default: + a = o; + } + a && (i && (i += ' '), (i += a)); + } + } + return i; + }, + h = 'undefined' != typeof document; + function p(t) { + var e = document.createElement('style'); + return ( + e.setAttribute('data-emotion', t.key || ''), + void 0 !== t.nonce && e.setAttribute('nonce', t.nonce), + e.appendChild(document.createTextNode('')), + (void 0 !== t.container ? t.container : document.head).appendChild(e), + e + ); + } + var g = (function() { + function t(t) { + (this.isSpeedy = !0), + (this.tags = []), + (this.ctr = 0), + (this.opts = t); + } + var e = t.prototype; + return ( + (e.inject = function() { + if (this.injected) throw new Error('already injected!'); + (this.tags[0] = p(this.opts)), (this.injected = !0); + }), + (e.speedy = function(t) { + if (0 !== this.ctr) throw new Error('cannot change speedy now'); + this.isSpeedy = !!t; + }), + (e.insert = function(t, e) { + if (this.isSpeedy) { + var n = (function(t) { + if (t.sheet) return t.sheet; + for (var e = 0; e < document.styleSheets.length; e++) + if (document.styleSheets[e].ownerNode === t) + return document.styleSheets[e]; + })(this.tags[this.tags.length - 1]); + try { + n.insertRule(t, n.cssRules.length); + } catch (t) { + 0; + } + } else { + var r = p(this.opts); + this.tags.push(r), + r.appendChild(document.createTextNode(t + (e || ''))); + } + this.ctr++, this.ctr % 65e3 == 0 && this.tags.push(p(this.opts)); + }), + (e.flush = function() { + this.tags.forEach(function(t) { + return t.parentNode.removeChild(t); + }), + (this.tags = []), + (this.ctr = 0), + (this.injected = !1); + }), + t + ); + })(); + e.a = function(t, e) { + if (void 0 !== t.__SECRET_EMOTION__) return t.__SECRET_EMOTION__; + void 0 === e && (e = {}); + var n, + r, + i = e.key || 'css', + s = u()(function(t) { + (n += t), h && p.insert(t, v); + }); + void 0 !== e.prefix && (r = { prefix: e.prefix }); + var l = { registered: {}, inserted: {}, nonce: e.nonce, key: i }, + p = new g(e); + h && p.inject(); + var m = new a(r); + m.use(e.stylisPlugins)(s); + var v = ''; + function y(t, e) { + if (null == t) return ''; + switch (typeof t) { + case 'boolean': + return ''; + case 'function': + if (void 0 !== t.__emotion_styles) { + var n = t.toString(); + return n; + } + return y.call( + this, + void 0 === this ? t() : t(this.mergedProps, this.context), + e + ); + case 'object': + return w.call(this, t); + default: + var r = l.registered[t]; + return !1 === e && void 0 !== r ? r : t; + } + } + var b, + _, + x = new WeakMap(); + function w(t) { + if (x.has(t)) return x.get(t); + var e = ''; + return ( + Array.isArray(t) + ? t.forEach(function(t) { + e += y.call(this, t, !1); + }, this) + : Object.keys(t).forEach(function(n) { + 'object' != typeof t[n] + ? void 0 !== l.registered[t[n]] + ? (e += n + '{' + l.registered[t[n]] + '}') + : (e += c(n) + ':' + f(n, t[n]) + ';') + : Array.isArray(t[n]) && + 'string' == typeof t[n][0] && + void 0 === l.registered[t[n][0]] + ? t[n].forEach(function(t) { + e += c(n) + ':' + f(n, t) + ';'; }) - .nodes() - .map(function(t) { - var e = t.__data__; - return e.data ? e.data : e; - }); - }), - (i.prototype.select = function(t, e, n) { - var r = this.internal, - i = r.d3, - o = r.config; - o.data_selection_enabled && - r.main - .selectAll('.' + w.shapes) - .selectAll('.' + w.shape) - .each(function(a, s) { - var u = i.select(this), - l = a.data ? a.data.id : a.id, - c = r.getToggle(this, a).bind(r), - f = - o.data_selection_grouped || - !t || - t.indexOf(l) >= 0, - h = !e || e.indexOf(s) >= 0, - p = u.classed(w.SELECTED); - u.classed(w.line) || - u.classed(w.area) || - (f && h - ? o.data_selection_isselectable(a) && - !p && - c(!0, u.classed(w.SELECTED, !0), a, s) - : d(n) && - n && - p && - c(!1, u.classed(w.SELECTED, !1), a, s)); - }); - }), - (i.prototype.unselect = function(t, e) { - var n = this.internal, - r = n.d3, - i = n.config; - i.data_selection_enabled && - n.main - .selectAll('.' + w.shapes) - .selectAll('.' + w.shape) - .each(function(o, a) { - var s = r.select(this), - u = o.data ? o.data.id : o.id, - l = n.getToggle(this, o).bind(n), - c = - i.data_selection_grouped || - !t || - t.indexOf(u) >= 0, - f = !e || e.indexOf(a) >= 0, - d = s.classed(w.SELECTED); - s.classed(w.line) || - s.classed(w.area) || - (c && - f && - i.data_selection_isselectable(o) && - d && - l(!1, s.classed(w.SELECTED, !1), o, a)); - }); - }), - (i.prototype.show = function(t, e) { - var n, - r = this.internal; - (t = r.mapToTargetIds(t)), - (e = e || {}), - r.removeHiddenTargetIds(t), - (n = r.svg.selectAll(r.selectorTargets(t))) - .transition() - .style('display', 'initial', 'important') - .style('opacity', 1, 'important') - .call(r.endall, function() { - n.style('opacity', null).style('opacity', 1); - }), - e.withLegend && r.showLegend(t), - r.redraw({ - withUpdateOrgXDomain: !0, - withUpdateXDomain: !0, - withLegend: !0 - }); - }), - (i.prototype.hide = function(t, e) { - var n, - r = this.internal; - (t = r.mapToTargetIds(t)), - (e = e || {}), - r.addHiddenTargetIds(t), - (n = r.svg.selectAll(r.selectorTargets(t))) - .transition() - .style('opacity', 0, 'important') - .call(r.endall, function() { - n.style('opacity', null).style('opacity', 0), - n.style('display', 'none'); - }), - e.withLegend && r.hideLegend(t), - r.redraw({ - withUpdateOrgXDomain: !0, - withUpdateXDomain: !0, - withLegend: !0 - }); - }), - (i.prototype.toggle = function(t, e) { - var n = this, - r = this.internal; - r.mapToTargetIds(t).forEach(function(t) { - r.isTargetToShow(t) ? n.hide(t, e) : n.show(t, e); - }); - }), - (i.prototype.tooltip = function() {}), - (i.prototype.tooltip.show = function(t) { - var e, - n, - r = this.internal, - i = {}; - t.mouse - ? (i = t.mouse) - : (t.data - ? (n = t.data) - : void 0 !== t.x && - ((e = t.id - ? r.data.targets.filter(function(e) { - return e.id === t.id; - }) - : r.data.targets), - (n = r.filterByX(e, t.x).slice(0, 1)[0])), - (i = n ? r.getMousePosition(n) : null)), - r.dispatchEvent('mousemove', i), - r.config.tooltip_onshow.call(r, n); - }), - (i.prototype.tooltip.hide = function() { - this.internal.dispatchEvent('mouseout', 0), - this.internal.config.tooltip_onhide.call(this); - }), - (i.prototype.transform = function(t, e) { - var n = this.internal, - r = - ['pie', 'donut'].indexOf(t) >= 0 - ? { withTransform: !0 } - : null; - n.transformTo(e, t, r); - }), - (r.prototype.transformTo = function(t, e, n) { - var r = this, - i = !r.hasArcType(), - o = n || { withTransitionForAxis: i }; - (o.withTransitionForTransform = !1), - (r.transiting = !1), - r.setTargetType(t, e), - r.updateTargets(r.data.targets), - r.updateAndRedraw(o); - }), - (i.prototype.x = function(t) { - var e = this.internal; - return ( - arguments.length && - (e.updateTargetX(e.data.targets, t), - e.redraw({ - withUpdateOrgXDomain: !0, - withUpdateXDomain: !0 - })), - e.data.xs - ); - }), - (i.prototype.xs = function(t) { - var e = this.internal; + : (e += n + '{' + y.call(this, t[n], !1) + '}'); + }, this), + x.set(t, e), + e + ); + } + var S = /label:\s*([^\s;\n{]+)\s*;/g, + E = function(t, e) { + return o(t + e) + e; + }, + k = function(t) { + var e = !0, + n = '', + r = ''; + null == t || void 0 === t.raw + ? ((e = !1), (n += y.call(this, t, !1))) + : (n += t[0]); + for ( + var i = arguments.length, o = new Array(i > 1 ? i - 1 : 0), a = 1; + a < i; + a++ + ) + o[a - 1] = arguments[a]; + return ( + o.forEach(function(r, i) { + (n += y.call(this, r, 46 === n.charCodeAt(n.length - 1))), + !0 === e && void 0 !== t[i + 1] && (n += t[i + 1]); + }, this), + (_ = n), + (n = n.replace(S, function(t, e) { + return (r += '-' + e), ''; + })), + (b = E(n, r)), + n + ); + }; + function A(t, e) { + void 0 === l.inserted[b] && ((n = ''), m(t, e), (l.inserted[b] = n)); + } + var T = function() { + var t = k.apply(this, arguments), + e = i + '-' + b; + return ( + void 0 === l.registered[e] && (l.registered[e] = _), + A('.' + e, t), + e + ); + }; + function C(t, e) { + var n = ''; + return ( + e.split(' ').forEach(function(e) { + void 0 !== l.registered[e] ? t.push(e) : (n += e + ' '); + }), + n + ); + } + function O(t, e) { + var n = [], + r = C(n, t); + return n.length < 2 ? t : r + T(n, e); + } + function P(t) { + l.inserted[t] = !0; + } + if (h) { + var M = document.querySelectorAll('[data-emotion-' + i + ']'); + Array.prototype.forEach.call(M, function(t) { + p.tags[0].parentNode.insertBefore(t, p.tags[0]), + t + .getAttribute('data-emotion-' + i) + .split(' ') + .forEach(P); + }); + } + var L = { + flush: function() { + h && (p.flush(), p.inject()), + (l.inserted = {}), + (l.registered = {}); + }, + hydrate: function(t) { + t.forEach(P); + }, + cx: function() { + for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++) + e[n] = arguments[n]; + return O(d(e)); + }, + merge: O, + getRegisteredStyles: C, + injectGlobal: function() { + var t = k.apply(this, arguments); + A('', t); + }, + keyframes: function() { + var t = k.apply(this, arguments), + e = 'animation-' + b; + return A('', '@keyframes ' + e + '{' + t + '}'), e; + }, + css: T, + sheet: p, + caches: l + }; + return (t.__SECRET_EMOTION__ = L), L; + }; + }, + , + function(t, e, n) { + 'use strict'; + /** @license React v16.9.0 + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ var r = n(95), + i = 'function' == typeof Symbol && Symbol.for, + o = i ? Symbol.for('react.element') : 60103, + a = i ? Symbol.for('react.portal') : 60106, + s = i ? Symbol.for('react.fragment') : 60107, + u = i ? Symbol.for('react.strict_mode') : 60108, + l = i ? Symbol.for('react.profiler') : 60114, + c = i ? Symbol.for('react.provider') : 60109, + f = i ? Symbol.for('react.context') : 60110, + d = i ? Symbol.for('react.forward_ref') : 60112, + h = i ? Symbol.for('react.suspense') : 60113, + p = i ? Symbol.for('react.suspense_list') : 60120, + g = i ? Symbol.for('react.memo') : 60115, + m = i ? Symbol.for('react.lazy') : 60116; + i && Symbol.for('react.fundamental'), i && Symbol.for('react.responder'); + var v = 'function' == typeof Symbol && Symbol.iterator; + function y(t) { + for ( + var e = t.message, + n = 'https://reactjs.org/docs/error-decoder.html?invariant=' + e, + r = 1; + r < arguments.length; + r++ + ) + n += '&args[]=' + encodeURIComponent(arguments[r]); + return ( + (t.message = + 'Minified React error #' + + e + + '; visit ' + + n + + ' for the full message or use the non-minified dev environment for full errors and additional helpful warnings. '), + t + ); + } + var b = { + isMounted: function() { + return !1; + }, + enqueueForceUpdate: function() {}, + enqueueReplaceState: function() {}, + enqueueSetState: function() {} + }, + _ = {}; + function x(t, e, n) { + (this.props = t), + (this.context = e), + (this.refs = _), + (this.updater = n || b); + } + function w() {} + function S(t, e, n) { + (this.props = t), + (this.context = e), + (this.refs = _), + (this.updater = n || b); + } + (x.prototype.isReactComponent = {}), + (x.prototype.setState = function(t, e) { + if ('object' != typeof t && 'function' != typeof t && null != t) + throw y(Error(85)); + this.updater.enqueueSetState(this, t, e, 'setState'); + }), + (x.prototype.forceUpdate = function(t) { + this.updater.enqueueForceUpdate(this, t, 'forceUpdate'); + }), + (w.prototype = x.prototype); + var E = (S.prototype = new w()); + (E.constructor = S), r(E, x.prototype), (E.isPureReactComponent = !0); + var k = { current: null }, + A = { suspense: null }, + T = { current: null }, + C = Object.prototype.hasOwnProperty, + O = { key: !0, ref: !0, __self: !0, __source: !0 }; + function P(t, e, n) { + var r = void 0, + i = {}, + a = null, + s = null; + if (null != e) + for (r in (void 0 !== e.ref && (s = e.ref), + void 0 !== e.key && (a = '' + e.key), + e)) + C.call(e, r) && !O.hasOwnProperty(r) && (i[r] = e[r]); + var u = arguments.length - 2; + if (1 === u) i.children = n; + else if (1 < u) { + for (var l = Array(u), c = 0; c < u; c++) l[c] = arguments[c + 2]; + i.children = l; + } + if (t && t.defaultProps) + for (r in (u = t.defaultProps)) void 0 === i[r] && (i[r] = u[r]); + return { + $$typeof: o, + type: t, + key: a, + ref: s, + props: i, + _owner: T.current + }; + } + function M(t) { + return 'object' == typeof t && null !== t && t.$$typeof === o; + } + var L = /\/+/g, + j = []; + function D(t, e, n, r) { + if (j.length) { + var i = j.pop(); + return ( + (i.result = t), + (i.keyPrefix = e), + (i.func = n), + (i.context = r), + (i.count = 0), + i + ); + } + return { result: t, keyPrefix: e, func: n, context: r, count: 0 }; + } + function R(t) { + (t.result = null), + (t.keyPrefix = null), + (t.func = null), + (t.context = null), + (t.count = 0), + 10 > j.length && j.push(t); + } + function z(t, e, n) { + return null == t + ? 0 + : (function t(e, n, r, i) { + var s = typeof e; + ('undefined' !== s && 'boolean' !== s) || (e = null); + var u = !1; + if (null === e) u = !0; + else + switch (s) { + case 'string': + case 'number': + u = !0; + break; + case 'object': + switch (e.$$typeof) { + case o: + case a: + u = !0; + } + } + if (u) return r(i, e, '' === n ? '.' + N(e, 0) : n), 1; + if (((u = 0), (n = '' === n ? '.' : n + ':'), Array.isArray(e))) + for (var l = 0; l < e.length; l++) { + var c = n + N((s = e[l]), l); + u += t(s, c, r, i); + } + else if ( + (null === e || 'object' != typeof e + ? (c = null) + : (c = + 'function' == typeof (c = (v && e[v]) || e['@@iterator']) + ? c + : null), + 'function' == typeof c) + ) + for (e = c.call(e), l = 0; !(s = e.next()).done; ) + u += t((s = s.value), (c = n + N(s, l++)), r, i); + else if ('object' === s) + throw ((r = '' + e), + y( + Error(31), + '[object Object]' === r + ? 'object with keys {' + Object.keys(e).join(', ') + '}' + : r, + '' + )); + return u; + })(t, '', e, n); + } + function N(t, e) { + return 'object' == typeof t && null !== t && null != t.key + ? (function(t) { + var e = { '=': '=0', ':': '=2' }; + return ( + '$' + + ('' + t).replace(/[=:]/g, function(t) { + return e[t]; + }) + ); + })(t.key) + : e.toString(36); + } + function I(t, e) { + t.func.call(t.context, e, t.count++); + } + function F(t, e, n) { + var r = t.result, + i = t.keyPrefix; + (t = t.func.call(t.context, e, t.count++)), + Array.isArray(t) + ? V(t, r, n, function(t) { + return t; + }) + : null != t && + (M(t) && + (t = (function(t, e) { + return { + $$typeof: o, + type: t.type, + key: e, + ref: t.ref, + props: t.props, + _owner: t._owner + }; + })( + t, + i + + (!t.key || (e && e.key === t.key) + ? '' + : ('' + t.key).replace(L, '$&/') + '/') + + n + )), + r.push(t)); + } + function V(t, e, n, r, i) { + var o = ''; + null != n && (o = ('' + n).replace(L, '$&/') + '/'), + z(t, F, (e = D(e, o, r, i))), + R(e); + } + function B() { + var t = k.current; + if (null === t) throw y(Error(321)); + return t; + } + var G = { + Children: { + map: function(t, e, n) { + if (null == t) return t; + var r = []; + return V(t, r, null, e, n), r; + }, + forEach: function(t, e, n) { + if (null == t) return t; + z(t, I, (e = D(null, null, e, n))), R(e); + }, + count: function(t) { + return z( + t, + function() { + return null; + }, + null + ); + }, + toArray: function(t) { + var e = []; + return ( + V(t, e, null, function(t) { + return t; + }), + e + ); + }, + only: function(t) { + if (!M(t)) throw y(Error(143)); + return t; + } + }, + createRef: function() { + return { current: null }; + }, + Component: x, + PureComponent: S, + createContext: function(t, e) { + return ( + void 0 === e && (e = null), + ((t = { + $$typeof: f, + _calculateChangedBits: e, + _currentValue: t, + _currentValue2: t, + _threadCount: 0, + Provider: null, + Consumer: null + }).Provider = { $$typeof: c, _context: t }), + (t.Consumer = t) + ); + }, + forwardRef: function(t) { + return { $$typeof: d, render: t }; + }, + lazy: function(t) { + return { $$typeof: m, _ctor: t, _status: -1, _result: null }; + }, + memo: function(t, e) { + return { $$typeof: g, type: t, compare: void 0 === e ? null : e }; + }, + useCallback: function(t, e) { + return B().useCallback(t, e); + }, + useContext: function(t, e) { + return B().useContext(t, e); + }, + useEffect: function(t, e) { + return B().useEffect(t, e); + }, + useImperativeHandle: function(t, e, n) { + return B().useImperativeHandle(t, e, n); + }, + useDebugValue: function() {}, + useLayoutEffect: function(t, e) { + return B().useLayoutEffect(t, e); + }, + useMemo: function(t, e) { + return B().useMemo(t, e); + }, + useReducer: function(t, e, n) { + return B().useReducer(t, e, n); + }, + useRef: function(t) { + return B().useRef(t); + }, + useState: function(t) { + return B().useState(t); + }, + Fragment: s, + Profiler: l, + StrictMode: u, + Suspense: h, + unstable_SuspenseList: p, + createElement: P, + cloneElement: function(t, e, n) { + if (null == t) throw y(Error(267), t); + var i = void 0, + a = r({}, t.props), + s = t.key, + u = t.ref, + l = t._owner; + if (null != e) { + void 0 !== e.ref && ((u = e.ref), (l = T.current)), + void 0 !== e.key && (s = '' + e.key); + var c = void 0; + for (i in (t.type && + t.type.defaultProps && + (c = t.type.defaultProps), + e)) + C.call(e, i) && + !O.hasOwnProperty(i) && + (a[i] = void 0 === e[i] && void 0 !== c ? c[i] : e[i]); + } + if (1 === (i = arguments.length - 2)) a.children = n; + else if (1 < i) { + c = Array(i); + for (var f = 0; f < i; f++) c[f] = arguments[f + 2]; + a.children = c; + } + return { + $$typeof: o, + type: t.type, + key: s, + ref: u, + props: a, + _owner: l + }; + }, + createFactory: function(t) { + var e = P.bind(null, t); + return (e.type = t), e; + }, + isValidElement: M, + version: '16.9.0', + unstable_withSuspenseConfig: function(t, e) { + var n = A.suspense; + A.suspense = void 0 === e ? null : e; + try { + t(); + } finally { + A.suspense = n; + } + }, + __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { + ReactCurrentDispatcher: k, + ReactCurrentBatchConfig: A, + ReactCurrentOwner: T, + IsSomeRendererActing: { current: !1 }, + assign: r + } + }, + H = { default: G }, + U = (H && G) || H; + t.exports = U.default || U; + }, + function(t, e, n) { + 'use strict'; + /** @license React v16.9.0 + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ var r = n(0), + i = n(95), + o = n(173); + function a(t) { + for ( + var e = t.message, + n = 'https://reactjs.org/docs/error-decoder.html?invariant=' + e, + r = 1; + r < arguments.length; + r++ + ) + n += '&args[]=' + encodeURIComponent(arguments[r]); + return ( + (t.message = + 'Minified React error #' + + e + + '; visit ' + + n + + ' for the full message or use the non-minified dev environment for full errors and additional helpful warnings. '), + t + ); + } + if (!r) throw a(Error(227)); + var s = null, + u = {}; + function l() { + if (s) + for (var t in u) { + var e = u[t], + n = s.indexOf(t); + if (!(-1 < n)) throw a(Error(96), t); + if (!f[n]) { + if (!e.extractEvents) throw a(Error(97), t); + for (var r in ((f[n] = e), (n = e.eventTypes))) { + var i = void 0, + o = n[r], + l = e, + h = r; + if (d.hasOwnProperty(h)) throw a(Error(99), h); + d[h] = o; + var p = o.phasedRegistrationNames; + if (p) { + for (i in p) p.hasOwnProperty(i) && c(p[i], l, h); + i = !0; + } else + o.registrationName + ? (c(o.registrationName, l, h), (i = !0)) + : (i = !1); + if (!i) throw a(Error(98), r, t); + } + } + } + } + function c(t, e, n) { + if (h[t]) throw a(Error(100), t); + (h[t] = e), (p[t] = e.eventTypes[n].dependencies); + } + var f = [], + d = {}, + h = {}, + p = {}; + function g(t, e, n, r, i, o, a, s, u) { + var l = Array.prototype.slice.call(arguments, 3); + try { + e.apply(n, l); + } catch (t) { + this.onError(t); + } + } + var m = !1, + v = null, + y = !1, + b = null, + _ = { + onError: function(t) { + (m = !0), (v = t); + } + }; + function x(t, e, n, r, i, o, a, s, u) { + (m = !1), (v = null), g.apply(_, arguments); + } + var w = null, + S = null, + E = null; + function k(t, e, n) { + var r = t.type || 'unknown-event'; + (t.currentTarget = E(n)), + (function(t, e, n, r, i, o, s, u, l) { + if ((x.apply(this, arguments), m)) { + if (!m) throw a(Error(198)); + var c = v; + (m = !1), (v = null), y || ((y = !0), (b = c)); + } + })(r, e, void 0, t), + (t.currentTarget = null); + } + function A(t, e) { + if (null == e) throw a(Error(30)); + return null == t + ? e + : Array.isArray(t) + ? Array.isArray(e) + ? (t.push.apply(t, e), t) + : (t.push(e), t) + : Array.isArray(e) + ? [t].concat(e) + : [t, e]; + } + function T(t, e, n) { + Array.isArray(t) ? t.forEach(e, n) : t && e.call(n, t); + } + var C = null; + function O(t) { + if (t) { + var e = t._dispatchListeners, + n = t._dispatchInstances; + if (Array.isArray(e)) + for (var r = 0; r < e.length && !t.isPropagationStopped(); r++) + k(t, e[r], n[r]); + else e && k(t, e, n); + (t._dispatchListeners = null), + (t._dispatchInstances = null), + t.isPersistent() || t.constructor.release(t); + } + } + function P(t) { + if ((null !== t && (C = A(C, t)), (t = C), (C = null), t)) { + if ((T(t, O), C)) throw a(Error(95)); + if (y) throw ((t = b), (y = !1), (b = null), t); + } + } + var M = { + injectEventPluginOrder: function(t) { + if (s) throw a(Error(101)); + (s = Array.prototype.slice.call(t)), l(); + }, + injectEventPluginsByName: function(t) { + var e, + n = !1; + for (e in t) + if (t.hasOwnProperty(e)) { + var r = t[e]; + if (!u.hasOwnProperty(e) || u[e] !== r) { + if (u[e]) throw a(Error(102), e); + (u[e] = r), (n = !0); + } + } + n && l(); + } + }; + function L(t, e) { + var n = t.stateNode; + if (!n) return null; + var r = w(n); + if (!r) return null; + n = r[e]; + t: switch (e) { + case 'onClick': + case 'onClickCapture': + case 'onDoubleClick': + case 'onDoubleClickCapture': + case 'onMouseDown': + case 'onMouseDownCapture': + case 'onMouseMove': + case 'onMouseMoveCapture': + case 'onMouseUp': + case 'onMouseUpCapture': + (r = !r.disabled) || + (r = !( + 'button' === (t = t.type) || + 'input' === t || + 'select' === t || + 'textarea' === t + )), + (t = !r); + break t; + default: + t = !1; + } + if (t) return null; + if (n && 'function' != typeof n) throw a(Error(231), e, typeof n); + return n; + } + var j = Math.random() + .toString(36) + .slice(2), + D = '__reactInternalInstance$' + j, + R = '__reactEventHandlers$' + j; + function z(t) { + if (t[D]) return t[D]; + for (; !t[D]; ) { + if (!t.parentNode) return null; + t = t.parentNode; + } + return 5 === (t = t[D]).tag || 6 === t.tag ? t : null; + } + function N(t) { + return !(t = t[D]) || (5 !== t.tag && 6 !== t.tag) ? null : t; + } + function I(t) { + if (5 === t.tag || 6 === t.tag) return t.stateNode; + throw a(Error(33)); + } + function F(t) { + return t[R] || null; + } + function V(t) { + do { + t = t.return; + } while (t && 5 !== t.tag); + return t || null; + } + function B(t, e, n) { + (e = L(t, n.dispatchConfig.phasedRegistrationNames[e])) && + ((n._dispatchListeners = A(n._dispatchListeners, e)), + (n._dispatchInstances = A(n._dispatchInstances, t))); + } + function G(t) { + if (t && t.dispatchConfig.phasedRegistrationNames) { + for (var e = t._targetInst, n = []; e; ) n.push(e), (e = V(e)); + for (e = n.length; 0 < e--; ) B(n[e], 'captured', t); + for (e = 0; e < n.length; e++) B(n[e], 'bubbled', t); + } + } + function H(t, e, n) { + t && + n && + n.dispatchConfig.registrationName && + (e = L(t, n.dispatchConfig.registrationName)) && + ((n._dispatchListeners = A(n._dispatchListeners, e)), + (n._dispatchInstances = A(n._dispatchInstances, t))); + } + function U(t) { + t && t.dispatchConfig.registrationName && H(t._targetInst, null, t); + } + function q(t) { + T(t, G); + } + var W = !( + 'undefined' == typeof window || + void 0 === window.document || + void 0 === window.document.createElement + ); + function X(t, e) { + var n = {}; + return ( + (n[t.toLowerCase()] = e.toLowerCase()), + (n['Webkit' + t] = 'webkit' + e), + (n['Moz' + t] = 'moz' + e), + n + ); + } + var Y = { + animationend: X('Animation', 'AnimationEnd'), + animationiteration: X('Animation', 'AnimationIteration'), + animationstart: X('Animation', 'AnimationStart'), + transitionend: X('Transition', 'TransitionEnd') + }, + $ = {}, + K = {}; + function Q(t) { + if ($[t]) return $[t]; + if (!Y[t]) return t; + var e, + n = Y[t]; + for (e in n) if (n.hasOwnProperty(e) && e in K) return ($[t] = n[e]); + return t; + } + W && + ((K = document.createElement('div').style), + 'AnimationEvent' in window || + (delete Y.animationend.animation, + delete Y.animationiteration.animation, + delete Y.animationstart.animation), + 'TransitionEvent' in window || delete Y.transitionend.transition); + var Z = Q('animationend'), + J = Q('animationiteration'), + tt = Q('animationstart'), + et = Q('transitionend'), + nt = 'abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting'.split( + ' ' + ), + rt = null, + it = null, + ot = null; + function at() { + if (ot) return ot; + var t, + e, + n = it, + r = n.length, + i = 'value' in rt ? rt.value : rt.textContent, + o = i.length; + for (t = 0; t < r && n[t] === i[t]; t++); + var a = r - t; + for (e = 1; e <= a && n[r - e] === i[o - e]; e++); + return (ot = i.slice(t, 1 < e ? 1 - e : void 0)); + } + function st() { + return !0; + } + function ut() { + return !1; + } + function lt(t, e, n, r) { + for (var i in ((this.dispatchConfig = t), + (this._targetInst = e), + (this.nativeEvent = n), + (t = this.constructor.Interface))) + t.hasOwnProperty(i) && + ((e = t[i]) + ? (this[i] = e(n)) + : 'target' === i + ? (this.target = r) + : (this[i] = n[i])); + return ( + (this.isDefaultPrevented = (null != n.defaultPrevented + ? n.defaultPrevented + : !1 === n.returnValue) + ? st + : ut), + (this.isPropagationStopped = ut), + this + ); + } + function ct(t, e, n, r) { + if (this.eventPool.length) { + var i = this.eventPool.pop(); + return this.call(i, t, e, n, r), i; + } + return new this(t, e, n, r); + } + function ft(t) { + if (!(t instanceof this)) throw a(Error(279)); + t.destructor(), 10 > this.eventPool.length && this.eventPool.push(t); + } + function dt(t) { + (t.eventPool = []), (t.getPooled = ct), (t.release = ft); + } + i(lt.prototype, { + preventDefault: function() { + this.defaultPrevented = !0; + var t = this.nativeEvent; + t && + (t.preventDefault + ? t.preventDefault() + : 'unknown' != typeof t.returnValue && (t.returnValue = !1), + (this.isDefaultPrevented = st)); + }, + stopPropagation: function() { + var t = this.nativeEvent; + t && + (t.stopPropagation + ? t.stopPropagation() + : 'unknown' != typeof t.cancelBubble && (t.cancelBubble = !0), + (this.isPropagationStopped = st)); + }, + persist: function() { + this.isPersistent = st; + }, + isPersistent: ut, + destructor: function() { + var t, + e = this.constructor.Interface; + for (t in e) this[t] = null; + (this.nativeEvent = this._targetInst = this.dispatchConfig = null), + (this.isPropagationStopped = this.isDefaultPrevented = ut), + (this._dispatchInstances = this._dispatchListeners = null); + } + }), + (lt.Interface = { + type: null, + target: null, + currentTarget: function() { + return null; + }, + eventPhase: null, + bubbles: null, + cancelable: null, + timeStamp: function(t) { + return t.timeStamp || Date.now(); + }, + defaultPrevented: null, + isTrusted: null + }), + (lt.extend = function(t) { + function e() {} + function n() { + return r.apply(this, arguments); + } + var r = this; + e.prototype = r.prototype; + var o = new e(); + return ( + i(o, n.prototype), + (n.prototype = o), + (n.prototype.constructor = n), + (n.Interface = i({}, r.Interface, t)), + (n.extend = r.extend), + dt(n), + n + ); + }), + dt(lt); + var ht = lt.extend({ data: null }), + pt = lt.extend({ data: null }), + gt = [9, 13, 27, 32], + mt = W && 'CompositionEvent' in window, + vt = null; + W && 'documentMode' in document && (vt = document.documentMode); + var yt = W && 'TextEvent' in window && !vt, + bt = W && (!mt || (vt && 8 < vt && 11 >= vt)), + _t = String.fromCharCode(32), + xt = { + beforeInput: { + phasedRegistrationNames: { + bubbled: 'onBeforeInput', + captured: 'onBeforeInputCapture' + }, + dependencies: ['compositionend', 'keypress', 'textInput', 'paste'] + }, + compositionEnd: { + phasedRegistrationNames: { + bubbled: 'onCompositionEnd', + captured: 'onCompositionEndCapture' + }, + dependencies: 'blur compositionend keydown keypress keyup mousedown'.split( + ' ' + ) + }, + compositionStart: { + phasedRegistrationNames: { + bubbled: 'onCompositionStart', + captured: 'onCompositionStartCapture' + }, + dependencies: 'blur compositionstart keydown keypress keyup mousedown'.split( + ' ' + ) + }, + compositionUpdate: { + phasedRegistrationNames: { + bubbled: 'onCompositionUpdate', + captured: 'onCompositionUpdateCapture' + }, + dependencies: 'blur compositionupdate keydown keypress keyup mousedown'.split( + ' ' + ) + } + }, + wt = !1; + function St(t, e) { + switch (t) { + case 'keyup': + return -1 !== gt.indexOf(e.keyCode); + case 'keydown': + return 229 !== e.keyCode; + case 'keypress': + case 'mousedown': + case 'blur': + return !0; + default: + return !1; + } + } + function Et(t) { + return 'object' == typeof (t = t.detail) && 'data' in t ? t.data : null; + } + var kt = !1; + var At = { + eventTypes: xt, + extractEvents: function(t, e, n, r) { + var i = void 0, + o = void 0; + if (mt) + t: { + switch (t) { + case 'compositionstart': + i = xt.compositionStart; + break t; + case 'compositionend': + i = xt.compositionEnd; + break t; + case 'compositionupdate': + i = xt.compositionUpdate; + break t; + } + i = void 0; + } + else + kt + ? St(t, n) && (i = xt.compositionEnd) + : 'keydown' === t && + 229 === n.keyCode && + (i = xt.compositionStart); + return ( + i + ? (bt && + 'ko' !== n.locale && + (kt || i !== xt.compositionStart + ? i === xt.compositionEnd && kt && (o = at()) + : ((it = 'value' in (rt = r) ? rt.value : rt.textContent), + (kt = !0))), + (i = ht.getPooled(i, e, n, r)), + o ? (i.data = o) : null !== (o = Et(n)) && (i.data = o), + q(i), + (o = i)) + : (o = null), + (t = yt + ? (function(t, e) { + switch (t) { + case 'compositionend': + return Et(e); + case 'keypress': + return 32 !== e.which ? null : ((wt = !0), _t); + case 'textInput': + return (t = e.data) === _t && wt ? null : t; + default: + return null; + } + })(t, n) + : (function(t, e) { + if (kt) + return 'compositionend' === t || (!mt && St(t, e)) + ? ((t = at()), (ot = it = rt = null), (kt = !1), t) + : null; + switch (t) { + case 'paste': + return null; + case 'keypress': + if ( + !(e.ctrlKey || e.altKey || e.metaKey) || + (e.ctrlKey && e.altKey) + ) { + if (e.char && 1 < e.char.length) return e.char; + if (e.which) return String.fromCharCode(e.which); + } + return null; + case 'compositionend': + return bt && 'ko' !== e.locale ? null : e.data; + default: + return null; + } + })(t, n)) + ? (((e = pt.getPooled(xt.beforeInput, e, n, r)).data = t), q(e)) + : (e = null), + null === o ? e : null === e ? o : [o, e] + ); + } + }, + Tt = null, + Ct = null, + Ot = null; + function Pt(t) { + if ((t = S(t))) { + if ('function' != typeof Tt) throw a(Error(280)); + var e = w(t.stateNode); + Tt(t.stateNode, t.type, e); + } + } + function Mt(t) { + Ct ? (Ot ? Ot.push(t) : (Ot = [t])) : (Ct = t); + } + function Lt() { + if (Ct) { + var t = Ct, + e = Ot; + if (((Ot = Ct = null), Pt(t), e)) + for (t = 0; t < e.length; t++) Pt(e[t]); + } + } + function jt(t, e) { + return t(e); + } + function Dt(t, e, n, r) { + return t(e, n, r); + } + function Rt() {} + var zt = jt, + Nt = !1; + function It() { + (null === Ct && null === Ot) || (Rt(), Lt()); + } + var Ft = { + color: !0, + date: !0, + datetime: !0, + 'datetime-local': !0, + email: !0, + month: !0, + number: !0, + password: !0, + range: !0, + search: !0, + tel: !0, + text: !0, + time: !0, + url: !0, + week: !0 + }; + function Vt(t) { + var e = t && t.nodeName && t.nodeName.toLowerCase(); + return 'input' === e ? !!Ft[t.type] : 'textarea' === e; + } + function Bt(t) { + return ( + (t = t.target || t.srcElement || window).correspondingUseElement && + (t = t.correspondingUseElement), + 3 === t.nodeType ? t.parentNode : t + ); + } + function Gt(t) { + if (!W) return !1; + var e = (t = 'on' + t) in document; + return ( + e || + ((e = document.createElement('div')).setAttribute(t, 'return;'), + (e = 'function' == typeof e[t])), + e + ); + } + function Ht(t) { + var e = t.type; + return ( + (t = t.nodeName) && + 'input' === t.toLowerCase() && + ('checkbox' === e || 'radio' === e) + ); + } + function Ut(t) { + t._valueTracker || + (t._valueTracker = (function(t) { + var e = Ht(t) ? 'checked' : 'value', + n = Object.getOwnPropertyDescriptor(t.constructor.prototype, e), + r = '' + t[e]; + if ( + !t.hasOwnProperty(e) && + void 0 !== n && + 'function' == typeof n.get && + 'function' == typeof n.set + ) { + var i = n.get, + o = n.set; + return ( + Object.defineProperty(t, e, { + configurable: !0, + get: function() { + return i.call(this); + }, + set: function(t) { + (r = '' + t), o.call(this, t); + } + }), + Object.defineProperty(t, e, { enumerable: n.enumerable }), + { + getValue: function() { + return r; + }, + setValue: function(t) { + r = '' + t; + }, + stopTracking: function() { + (t._valueTracker = null), delete t[e]; + } + } + ); + } + })(t)); + } + function qt(t) { + if (!t) return !1; + var e = t._valueTracker; + if (!e) return !0; + var n = e.getValue(), + r = ''; + return ( + t && (r = Ht(t) ? (t.checked ? 'true' : 'false') : t.value), + (t = r) !== n && (e.setValue(t), !0) + ); + } + var Wt = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + Wt.hasOwnProperty('ReactCurrentDispatcher') || + (Wt.ReactCurrentDispatcher = { current: null }), + Wt.hasOwnProperty('ReactCurrentBatchConfig') || + (Wt.ReactCurrentBatchConfig = { suspense: null }); + var Xt = /^(.*)[\\\/]/, + Yt = 'function' == typeof Symbol && Symbol.for, + $t = Yt ? Symbol.for('react.element') : 60103, + Kt = Yt ? Symbol.for('react.portal') : 60106, + Qt = Yt ? Symbol.for('react.fragment') : 60107, + Zt = Yt ? Symbol.for('react.strict_mode') : 60108, + Jt = Yt ? Symbol.for('react.profiler') : 60114, + te = Yt ? Symbol.for('react.provider') : 60109, + ee = Yt ? Symbol.for('react.context') : 60110, + ne = Yt ? Symbol.for('react.concurrent_mode') : 60111, + re = Yt ? Symbol.for('react.forward_ref') : 60112, + ie = Yt ? Symbol.for('react.suspense') : 60113, + oe = Yt ? Symbol.for('react.suspense_list') : 60120, + ae = Yt ? Symbol.for('react.memo') : 60115, + se = Yt ? Symbol.for('react.lazy') : 60116; + Yt && Symbol.for('react.fundamental'), + Yt && Symbol.for('react.responder'); + var ue = 'function' == typeof Symbol && Symbol.iterator; + function le(t) { + return null === t || 'object' != typeof t + ? null + : 'function' == typeof (t = (ue && t[ue]) || t['@@iterator']) + ? t + : null; + } + function ce(t) { + if (null == t) return null; + if ('function' == typeof t) return t.displayName || t.name || null; + if ('string' == typeof t) return t; + switch (t) { + case Qt: + return 'Fragment'; + case Kt: + return 'Portal'; + case Jt: + return 'Profiler'; + case Zt: + return 'StrictMode'; + case ie: + return 'Suspense'; + case oe: + return 'SuspenseList'; + } + if ('object' == typeof t) + switch (t.$$typeof) { + case ee: + return 'Context.Consumer'; + case te: + return 'Context.Provider'; + case re: + var e = t.render; + return ( + (e = e.displayName || e.name || ''), + t.displayName || + ('' !== e ? 'ForwardRef(' + e + ')' : 'ForwardRef') + ); + case ae: + return ce(t.type); + case se: + if ((t = 1 === t._status ? t._result : null)) return ce(t); + } + return null; + } + function fe(t) { + var e = ''; + do { + t: switch (t.tag) { + case 3: + case 4: + case 6: + case 7: + case 10: + case 9: + var n = ''; + break t; + default: + var r = t._debugOwner, + i = t._debugSource, + o = ce(t.type); + (n = null), + r && (n = ce(r.type)), + (r = o), + (o = ''), + i + ? (o = + ' (at ' + + i.fileName.replace(Xt, '') + + ':' + + i.lineNumber + + ')') + : n && (o = ' (created by ' + n + ')'), + (n = '\n in ' + (r || 'Unknown') + o); + } + (e += n), (t = t.return); + } while (t); + return e; + } + var de = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, + he = Object.prototype.hasOwnProperty, + pe = {}, + ge = {}; + function me(t, e, n, r, i, o) { + (this.acceptsBooleans = 2 === e || 3 === e || 4 === e), + (this.attributeName = r), + (this.attributeNamespace = i), + (this.mustUseProperty = n), + (this.propertyName = t), + (this.type = e), + (this.sanitizeURL = o); + } + var ve = {}; + 'children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style' + .split(' ') + .forEach(function(t) { + ve[t] = new me(t, 0, !1, t, null, !1); + }), + [ + ['acceptCharset', 'accept-charset'], + ['className', 'class'], + ['htmlFor', 'for'], + ['httpEquiv', 'http-equiv'] + ].forEach(function(t) { + var e = t[0]; + ve[e] = new me(e, 1, !1, t[1], null, !1); + }), + ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach( + function(t) { + ve[t] = new me(t, 2, !1, t.toLowerCase(), null, !1); + } + ), + [ + 'autoReverse', + 'externalResourcesRequired', + 'focusable', + 'preserveAlpha' + ].forEach(function(t) { + ve[t] = new me(t, 2, !1, t, null, !1); + }), + 'allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope' + .split(' ') + .forEach(function(t) { + ve[t] = new me(t, 3, !1, t.toLowerCase(), null, !1); + }), + ['checked', 'multiple', 'muted', 'selected'].forEach(function(t) { + ve[t] = new me(t, 3, !0, t, null, !1); + }), + ['capture', 'download'].forEach(function(t) { + ve[t] = new me(t, 4, !1, t, null, !1); + }), + ['cols', 'rows', 'size', 'span'].forEach(function(t) { + ve[t] = new me(t, 6, !1, t, null, !1); + }), + ['rowSpan', 'start'].forEach(function(t) { + ve[t] = new me(t, 5, !1, t.toLowerCase(), null, !1); + }); + var ye = /[\-:]([a-z])/g; + function be(t) { + return t[1].toUpperCase(); + } + function _e(t, e, n, r) { + var i = ve.hasOwnProperty(e) ? ve[e] : null; + (null !== i + ? 0 === i.type + : !r && + (2 < e.length && + ('o' === e[0] || 'O' === e[0]) && + ('n' === e[1] || 'N' === e[1]))) || + ((function(t, e, n, r) { + if ( + null == e || + (function(t, e, n, r) { + if (null !== n && 0 === n.type) return !1; + switch (typeof e) { + case 'function': + case 'symbol': + return !0; + case 'boolean': return ( - arguments.length && - (e.updateTargetXs(e.data.targets, t), - e.redraw({ - withUpdateOrgXDomain: !0, - withUpdateXDomain: !0 - })), - e.data.xs + !r && + (null !== n + ? !n.acceptsBooleans + : 'data-' !== (t = t.toLowerCase().slice(0, 5)) && + 'aria-' !== t) ); - }), - (i.prototype.zoom = function(t) { - var e = this.internal; - return t - ? (e.isTimeSeries() && - (t = t.map(function(t) { - return e.parseDate(t); - })), - e.config.subchart_show - ? e.brush.selectionAsValue(t, !0) - : (e.updateXDomain(null, !0, !1, !1, t), - e.redraw({ - withY: e.config.zoom_rescale, - withSubchart: !1 - })), - e.config.zoom_onzoom.call(this, e.x.orgDomain()), - t) - : e.x.domain(); - }), - (i.prototype.zoom.enable = function(t) { - var e = this.internal; - (e.config.zoom_enabled = t), e.updateAndRedraw(); - }), - (i.prototype.unzoom = function() { - var t = this.internal; - t.config.subchart_show - ? t.brush.clear() - : (t.updateXDomain(null, !0, !1, !1, t.subX.domain()), - t.redraw({ - withY: t.config.zoom_rescale, - withSubchart: !1 - })); - }), - (i.prototype.zoom.max = function(t) { - var e = this.internal, - n = e.config, - r = e.d3; - if (0 !== t && !t) return n.zoom_x_max; - n.zoom_x_max = r.max([e.orgXDomain[1], t]); - }), - (i.prototype.zoom.min = function(t) { - var e = this.internal, - n = e.config, - r = e.d3; - if (0 !== t && !t) return n.zoom_x_min; - n.zoom_x_min = r.min([e.orgXDomain[0], t]); - }), - (i.prototype.zoom.range = function(t) { - if (!arguments.length) - return { max: this.domain.max(), min: this.domain.min() }; - d(t.max) && this.domain.max(t.max), - d(t.min) && this.domain.min(t.min); - }), - (r.prototype.initPie = function() { - var t = this, - e = t.d3; - t.pie = e - .pie() - .padAngle(this.getPadAngle.bind(this)) - .value(function(t) { - return t.values.reduce(function(t, e) { - return t + e.value; - }, 0); - }); - var n = t.getOrderFunction(); - if (n && (t.isOrderAsc() || t.isOrderDesc())) { - var r = n; - n = function(t, e) { - return -1 * r(t, e); - }; + default: + return !1; + } + })(t, e, n, r) + ) + return !0; + if (r) return !1; + if (null !== n) + switch (n.type) { + case 3: + return !e; + case 4: + return !1 === e; + case 5: + return isNaN(e); + case 6: + return isNaN(e) || 1 > e; + } + return !1; + })(e, n, i, r) && (n = null), + r || null === i + ? (function(t) { + return ( + !!he.call(ge, t) || + (!he.call(pe, t) && + (de.test(t) ? (ge[t] = !0) : ((pe[t] = !0), !1))) + ); + })(e) && + (null === n ? t.removeAttribute(e) : t.setAttribute(e, '' + n)) + : i.mustUseProperty + ? (t[i.propertyName] = null === n ? 3 !== i.type && '' : n) + : ((e = i.attributeName), + (r = i.attributeNamespace), + null === n + ? t.removeAttribute(e) + : ((n = + 3 === (i = i.type) || (4 === i && !0 === n) ? '' : '' + n), + r ? t.setAttributeNS(r, e, n) : t.setAttribute(e, n)))); + } + function xe(t) { + switch (typeof t) { + case 'boolean': + case 'number': + case 'object': + case 'string': + case 'undefined': + return t; + default: + return ''; + } + } + function we(t, e) { + var n = e.checked; + return i({}, e, { + defaultChecked: void 0, + defaultValue: void 0, + value: void 0, + checked: null != n ? n : t._wrapperState.initialChecked + }); + } + function Se(t, e) { + var n = null == e.defaultValue ? '' : e.defaultValue, + r = null != e.checked ? e.checked : e.defaultChecked; + (n = xe(null != e.value ? e.value : n)), + (t._wrapperState = { + initialChecked: r, + initialValue: n, + controlled: + 'checkbox' === e.type || 'radio' === e.type + ? null != e.checked + : null != e.value + }); + } + function Ee(t, e) { + null != (e = e.checked) && _e(t, 'checked', e, !1); + } + function ke(t, e) { + Ee(t, e); + var n = xe(e.value), + r = e.type; + if (null != n) + 'number' === r + ? ((0 === n && '' === t.value) || t.value != n) && + (t.value = '' + n) + : t.value !== '' + n && (t.value = '' + n); + else if ('submit' === r || 'reset' === r) + return void t.removeAttribute('value'); + e.hasOwnProperty('value') + ? Te(t, e.type, n) + : e.hasOwnProperty('defaultValue') && + Te(t, e.type, xe(e.defaultValue)), + null == e.checked && + null != e.defaultChecked && + (t.defaultChecked = !!e.defaultChecked); + } + function Ae(t, e, n) { + if (e.hasOwnProperty('value') || e.hasOwnProperty('defaultValue')) { + var r = e.type; + if ( + !( + ('submit' !== r && 'reset' !== r) || + (void 0 !== e.value && null !== e.value) + ) + ) + return; + (e = '' + t._wrapperState.initialValue), + n || e === t.value || (t.value = e), + (t.defaultValue = e); + } + '' !== (n = t.name) && (t.name = ''), + (t.defaultChecked = !t.defaultChecked), + (t.defaultChecked = !!t._wrapperState.initialChecked), + '' !== n && (t.name = n); + } + function Te(t, e, n) { + ('number' === e && t.ownerDocument.activeElement === t) || + (null == n + ? (t.defaultValue = '' + t._wrapperState.initialValue) + : t.defaultValue !== '' + n && (t.defaultValue = '' + n)); + } + 'accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height' + .split(' ') + .forEach(function(t) { + var e = t.replace(ye, be); + ve[e] = new me(e, 1, !1, t, null, !1); + }), + 'xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type' + .split(' ') + .forEach(function(t) { + var e = t.replace(ye, be); + ve[e] = new me(e, 1, !1, t, 'http://www.w3.org/1999/xlink', !1); + }), + ['xml:base', 'xml:lang', 'xml:space'].forEach(function(t) { + var e = t.replace(ye, be); + ve[e] = new me( + e, + 1, + !1, + t, + 'http://www.w3.org/XML/1998/namespace', + !1 + ); + }), + ['tabIndex', 'crossOrigin'].forEach(function(t) { + ve[t] = new me(t, 1, !1, t.toLowerCase(), null, !1); + }), + (ve.xlinkHref = new me( + 'xlinkHref', + 1, + !1, + 'xlink:href', + 'http://www.w3.org/1999/xlink', + !0 + )), + ['src', 'href', 'action', 'formAction'].forEach(function(t) { + ve[t] = new me(t, 1, !1, t.toLowerCase(), null, !0); + }); + var Ce = { + change: { + phasedRegistrationNames: { + bubbled: 'onChange', + captured: 'onChangeCapture' + }, + dependencies: 'blur change click focus input keydown keyup selectionchange'.split( + ' ' + ) + } + }; + function Oe(t, e, n) { + return ( + ((t = lt.getPooled(Ce.change, t, e, n)).type = 'change'), + Mt(n), + q(t), + t + ); + } + var Pe = null, + Me = null; + function Le(t) { + P(t); + } + function je(t) { + if (qt(I(t))) return t; + } + function De(t, e) { + if ('change' === t) return e; + } + var Re = !1; + function ze() { + Pe && (Pe.detachEvent('onpropertychange', Ne), (Me = Pe = null)); + } + function Ne(t) { + if ('value' === t.propertyName && je(Me)) + if (((t = Oe(Me, t, Bt(t))), Nt)) P(t); + else { + Nt = !0; + try { + jt(Le, t); + } finally { + (Nt = !1), It(); + } + } + } + function Ie(t, e, n) { + 'focus' === t + ? (ze(), (Me = n), (Pe = e).attachEvent('onpropertychange', Ne)) + : 'blur' === t && ze(); + } + function Fe(t) { + if ('selectionchange' === t || 'keyup' === t || 'keydown' === t) + return je(Me); + } + function Ve(t, e) { + if ('click' === t) return je(e); + } + function Be(t, e) { + if ('input' === t || 'change' === t) return je(e); + } + W && + (Re = + Gt('input') && (!document.documentMode || 9 < document.documentMode)); + var Ge = { + eventTypes: Ce, + _isInputEventSupported: Re, + extractEvents: function(t, e, n, r) { + var i = e ? I(e) : window, + o = void 0, + a = void 0, + s = i.nodeName && i.nodeName.toLowerCase(); + if ( + ('select' === s || ('input' === s && 'file' === i.type) + ? (o = De) + : Vt(i) + ? Re + ? (o = Be) + : ((o = Fe), (a = Ie)) + : (s = i.nodeName) && + 'input' === s.toLowerCase() && + ('checkbox' === i.type || 'radio' === i.type) && + (o = Ve), + o && (o = o(t, e))) + ) + return Oe(o, n, r); + a && a(t, i, e), + 'blur' === t && + (t = i._wrapperState) && + t.controlled && + 'number' === i.type && + Te(i, 'number', i.value); + } + }, + He = lt.extend({ view: null, detail: null }), + Ue = { + Alt: 'altKey', + Control: 'ctrlKey', + Meta: 'metaKey', + Shift: 'shiftKey' + }; + function qe(t) { + var e = this.nativeEvent; + return e.getModifierState + ? e.getModifierState(t) + : !!(t = Ue[t]) && !!e[t]; + } + function We() { + return qe; + } + var Xe = 0, + Ye = 0, + $e = !1, + Ke = !1, + Qe = He.extend({ + screenX: null, + screenY: null, + clientX: null, + clientY: null, + pageX: null, + pageY: null, + ctrlKey: null, + shiftKey: null, + altKey: null, + metaKey: null, + getModifierState: We, + button: null, + buttons: null, + relatedTarget: function(t) { + return ( + t.relatedTarget || + (t.fromElement === t.srcElement ? t.toElement : t.fromElement) + ); + }, + movementX: function(t) { + if ('movementX' in t) return t.movementX; + var e = Xe; + return ( + (Xe = t.screenX), + $e ? ('mousemove' === t.type ? t.screenX - e : 0) : (($e = !0), 0) + ); + }, + movementY: function(t) { + if ('movementY' in t) return t.movementY; + var e = Ye; + return ( + (Ye = t.screenY), + Ke ? ('mousemove' === t.type ? t.screenY - e : 0) : ((Ke = !0), 0) + ); + } + }), + Ze = Qe.extend({ + pointerId: null, + width: null, + height: null, + pressure: null, + tangentialPressure: null, + tiltX: null, + tiltY: null, + twist: null, + pointerType: null, + isPrimary: null + }), + Je = { + mouseEnter: { + registrationName: 'onMouseEnter', + dependencies: ['mouseout', 'mouseover'] + }, + mouseLeave: { + registrationName: 'onMouseLeave', + dependencies: ['mouseout', 'mouseover'] + }, + pointerEnter: { + registrationName: 'onPointerEnter', + dependencies: ['pointerout', 'pointerover'] + }, + pointerLeave: { + registrationName: 'onPointerLeave', + dependencies: ['pointerout', 'pointerover'] + } + }, + tn = { + eventTypes: Je, + extractEvents: function(t, e, n, r) { + var i = 'mouseover' === t || 'pointerover' === t, + o = 'mouseout' === t || 'pointerout' === t; + if ((i && (n.relatedTarget || n.fromElement)) || (!o && !i)) + return null; + if ( + ((i = + r.window === r + ? r + : (i = r.ownerDocument) + ? i.defaultView || i.parentWindow + : window), + o + ? ((o = e), + (e = (e = n.relatedTarget || n.toElement) ? z(e) : null)) + : (o = null), + o === e) + ) + return null; + var a = void 0, + s = void 0, + u = void 0, + l = void 0; + 'mouseout' === t || 'mouseover' === t + ? ((a = Qe), + (s = Je.mouseLeave), + (u = Je.mouseEnter), + (l = 'mouse')) + : ('pointerout' !== t && 'pointerover' !== t) || + ((a = Ze), + (s = Je.pointerLeave), + (u = Je.pointerEnter), + (l = 'pointer')); + var c = null == o ? i : I(o); + if ( + ((i = null == e ? i : I(e)), + ((t = a.getPooled(s, o, n, r)).type = l + 'leave'), + (t.target = c), + (t.relatedTarget = i), + ((n = a.getPooled(u, e, n, r)).type = l + 'enter'), + (n.target = i), + (n.relatedTarget = c), + (r = e), + o && r) + ) + t: { + for (i = r, l = 0, a = e = o; a; a = V(a)) l++; + for (a = 0, u = i; u; u = V(u)) a++; + for (; 0 < l - a; ) (e = V(e)), l--; + for (; 0 < a - l; ) (i = V(i)), a--; + for (; l--; ) { + if (e === i || e === i.alternate) break t; + (e = V(e)), (i = V(i)); + } + e = null; + } + else e = null; + for ( + i = e, e = []; + o && o !== i && (null === (l = o.alternate) || l !== i); + + ) + e.push(o), (o = V(o)); + for ( + o = []; + r && r !== i && (null === (l = r.alternate) || l !== i); + + ) + o.push(r), (r = V(r)); + for (r = 0; r < e.length; r++) H(e[r], 'bubbled', t); + for (r = o.length; 0 < r--; ) H(o[r], 'captured', n); + return [t, n]; + } + }; + function en(t, e) { + return (t === e && (0 !== t || 1 / t == 1 / e)) || (t != t && e != e); + } + var nn = Object.prototype.hasOwnProperty; + function rn(t, e) { + if (en(t, e)) return !0; + if ( + 'object' != typeof t || + null === t || + 'object' != typeof e || + null === e + ) + return !1; + var n = Object.keys(t), + r = Object.keys(e); + if (n.length !== r.length) return !1; + for (r = 0; r < n.length; r++) + if (!nn.call(e, n[r]) || !en(t[n[r]], e[n[r]])) return !1; + return !0; + } + function on(t, e) { + return { responder: t, props: e }; + } + function an(t) { + var e = t; + if (t.alternate) for (; e.return; ) e = e.return; + else { + if (0 != (2 & e.effectTag)) return 1; + for (; e.return; ) if (0 != (2 & (e = e.return).effectTag)) return 1; + } + return 3 === e.tag ? 2 : 3; + } + function sn(t) { + if (2 !== an(t)) throw a(Error(188)); + } + function un(t) { + if ( + !(t = (function(t) { + var e = t.alternate; + if (!e) { + if (3 === (e = an(t))) throw a(Error(188)); + return 1 === e ? null : t; + } + for (var n = t, r = e; ; ) { + var i = n.return; + if (null === i) break; + var o = i.alternate; + if (null === o) { + if (null !== (r = i.return)) { + n = r; + continue; + } + break; + } + if (i.child === o.child) { + for (o = i.child; o; ) { + if (o === n) return sn(i), t; + if (o === r) return sn(i), e; + o = o.sibling; + } + throw a(Error(188)); + } + if (n.return !== r.return) (n = i), (r = o); + else { + for (var s = !1, u = i.child; u; ) { + if (u === n) { + (s = !0), (n = i), (r = o); + break; + } + if (u === r) { + (s = !0), (r = i), (n = o); + break; + } + u = u.sibling; + } + if (!s) { + for (u = o.child; u; ) { + if (u === n) { + (s = !0), (n = o), (r = i); + break; + } + if (u === r) { + (s = !0), (r = o), (n = i); + break; + } + u = u.sibling; + } + if (!s) throw a(Error(189)); + } + } + if (n.alternate !== r) throw a(Error(190)); + } + if (3 !== n.tag) throw a(Error(188)); + return n.stateNode.current === n ? t : e; + })(t)) + ) + return null; + for (var e = t; ; ) { + if (5 === e.tag || 6 === e.tag) return e; + if (e.child) (e.child.return = e), (e = e.child); + else { + if (e === t) break; + for (; !e.sibling; ) { + if (!e.return || e.return === t) return null; + e = e.return; + } + (e.sibling.return = e.return), (e = e.sibling); + } + } + return null; + } + new Map(), new Map(), new Set(), new Map(); + var ln = lt.extend({ + animationName: null, + elapsedTime: null, + pseudoElement: null + }), + cn = lt.extend({ + clipboardData: function(t) { + return 'clipboardData' in t + ? t.clipboardData + : window.clipboardData; + } + }), + fn = He.extend({ relatedTarget: null }); + function dn(t) { + var e = t.keyCode; + return ( + 'charCode' in t + ? 0 === (t = t.charCode) && 13 === e && (t = 13) + : (t = e), + 10 === t && (t = 13), + 32 <= t || 13 === t ? t : 0 + ); + } + for ( + var hn = { + Esc: 'Escape', + Spacebar: ' ', + Left: 'ArrowLeft', + Up: 'ArrowUp', + Right: 'ArrowRight', + Down: 'ArrowDown', + Del: 'Delete', + Win: 'OS', + Menu: 'ContextMenu', + Apps: 'ContextMenu', + Scroll: 'ScrollLock', + MozPrintableKey: 'Unidentified' + }, + pn = { + 8: 'Backspace', + 9: 'Tab', + 12: 'Clear', + 13: 'Enter', + 16: 'Shift', + 17: 'Control', + 18: 'Alt', + 19: 'Pause', + 20: 'CapsLock', + 27: 'Escape', + 32: ' ', + 33: 'PageUp', + 34: 'PageDown', + 35: 'End', + 36: 'Home', + 37: 'ArrowLeft', + 38: 'ArrowUp', + 39: 'ArrowRight', + 40: 'ArrowDown', + 45: 'Insert', + 46: 'Delete', + 112: 'F1', + 113: 'F2', + 114: 'F3', + 115: 'F4', + 116: 'F5', + 117: 'F6', + 118: 'F7', + 119: 'F8', + 120: 'F9', + 121: 'F10', + 122: 'F11', + 123: 'F12', + 144: 'NumLock', + 145: 'ScrollLock', + 224: 'Meta' + }, + gn = He.extend({ + key: function(t) { + if (t.key) { + var e = hn[t.key] || t.key; + if ('Unidentified' !== e) return e; + } + return 'keypress' === t.type + ? 13 === (t = dn(t)) + ? 'Enter' + : String.fromCharCode(t) + : 'keydown' === t.type || 'keyup' === t.type + ? pn[t.keyCode] || 'Unidentified' + : ''; + }, + location: null, + ctrlKey: null, + shiftKey: null, + altKey: null, + metaKey: null, + repeat: null, + locale: null, + getModifierState: We, + charCode: function(t) { + return 'keypress' === t.type ? dn(t) : 0; + }, + keyCode: function(t) { + return 'keydown' === t.type || 'keyup' === t.type ? t.keyCode : 0; + }, + which: function(t) { + return 'keypress' === t.type + ? dn(t) + : 'keydown' === t.type || 'keyup' === t.type + ? t.keyCode + : 0; + } + }), + mn = Qe.extend({ dataTransfer: null }), + vn = He.extend({ + touches: null, + targetTouches: null, + changedTouches: null, + altKey: null, + metaKey: null, + ctrlKey: null, + shiftKey: null, + getModifierState: We + }), + yn = lt.extend({ + propertyName: null, + elapsedTime: null, + pseudoElement: null + }), + bn = Qe.extend({ + deltaX: function(t) { + return ('deltaX' in t) + ? t.deltaX + : ('wheelDeltaX' in t) + ? -t.wheelDeltaX + : 0; + }, + deltaY: function(t) { + return ('deltaY' in t) + ? t.deltaY + : ('wheelDeltaY' in t) + ? -t.wheelDeltaY + : ('wheelDelta' in t) + ? -t.wheelDelta + : 0; + }, + deltaZ: null, + deltaMode: null + }), + _n = [ + ['blur', 'blur', 0], + ['cancel', 'cancel', 0], + ['click', 'click', 0], + ['close', 'close', 0], + ['contextmenu', 'contextMenu', 0], + ['copy', 'copy', 0], + ['cut', 'cut', 0], + ['auxclick', 'auxClick', 0], + ['dblclick', 'doubleClick', 0], + ['dragend', 'dragEnd', 0], + ['dragstart', 'dragStart', 0], + ['drop', 'drop', 0], + ['focus', 'focus', 0], + ['input', 'input', 0], + ['invalid', 'invalid', 0], + ['keydown', 'keyDown', 0], + ['keypress', 'keyPress', 0], + ['keyup', 'keyUp', 0], + ['mousedown', 'mouseDown', 0], + ['mouseup', 'mouseUp', 0], + ['paste', 'paste', 0], + ['pause', 'pause', 0], + ['play', 'play', 0], + ['pointercancel', 'pointerCancel', 0], + ['pointerdown', 'pointerDown', 0], + ['pointerup', 'pointerUp', 0], + ['ratechange', 'rateChange', 0], + ['reset', 'reset', 0], + ['seeked', 'seeked', 0], + ['submit', 'submit', 0], + ['touchcancel', 'touchCancel', 0], + ['touchend', 'touchEnd', 0], + ['touchstart', 'touchStart', 0], + ['volumechange', 'volumeChange', 0], + ['drag', 'drag', 1], + ['dragenter', 'dragEnter', 1], + ['dragexit', 'dragExit', 1], + ['dragleave', 'dragLeave', 1], + ['dragover', 'dragOver', 1], + ['mousemove', 'mouseMove', 1], + ['mouseout', 'mouseOut', 1], + ['mouseover', 'mouseOver', 1], + ['pointermove', 'pointerMove', 1], + ['pointerout', 'pointerOut', 1], + ['pointerover', 'pointerOver', 1], + ['scroll', 'scroll', 1], + ['toggle', 'toggle', 1], + ['touchmove', 'touchMove', 1], + ['wheel', 'wheel', 1], + ['abort', 'abort', 2], + [Z, 'animationEnd', 2], + [J, 'animationIteration', 2], + [tt, 'animationStart', 2], + ['canplay', 'canPlay', 2], + ['canplaythrough', 'canPlayThrough', 2], + ['durationchange', 'durationChange', 2], + ['emptied', 'emptied', 2], + ['encrypted', 'encrypted', 2], + ['ended', 'ended', 2], + ['error', 'error', 2], + ['gotpointercapture', 'gotPointerCapture', 2], + ['load', 'load', 2], + ['loadeddata', 'loadedData', 2], + ['loadedmetadata', 'loadedMetadata', 2], + ['loadstart', 'loadStart', 2], + ['lostpointercapture', 'lostPointerCapture', 2], + ['playing', 'playing', 2], + ['progress', 'progress', 2], + ['seeking', 'seeking', 2], + ['stalled', 'stalled', 2], + ['suspend', 'suspend', 2], + ['timeupdate', 'timeUpdate', 2], + [et, 'transitionEnd', 2], + ['waiting', 'waiting', 2] + ], + xn = {}, + wn = {}, + Sn = 0; + Sn < _n.length; + Sn++ + ) { + var En = _n[Sn], + kn = En[0], + An = En[1], + Tn = En[2], + Cn = 'on' + (An[0].toUpperCase() + An.slice(1)), + On = { + phasedRegistrationNames: { bubbled: Cn, captured: Cn + 'Capture' }, + dependencies: [kn], + eventPriority: Tn + }; + (xn[An] = On), (wn[kn] = On); + } + var Pn = { + eventTypes: xn, + getEventPriority: function(t) { + return void 0 !== (t = wn[t]) ? t.eventPriority : 2; + }, + extractEvents: function(t, e, n, r) { + var i = wn[t]; + if (!i) return null; + switch (t) { + case 'keypress': + if (0 === dn(n)) return null; + case 'keydown': + case 'keyup': + t = gn; + break; + case 'blur': + case 'focus': + t = fn; + break; + case 'click': + if (2 === n.button) return null; + case 'auxclick': + case 'dblclick': + case 'mousedown': + case 'mousemove': + case 'mouseup': + case 'mouseout': + case 'mouseover': + case 'contextmenu': + t = Qe; + break; + case 'drag': + case 'dragend': + case 'dragenter': + case 'dragexit': + case 'dragleave': + case 'dragover': + case 'dragstart': + case 'drop': + t = mn; + break; + case 'touchcancel': + case 'touchend': + case 'touchmove': + case 'touchstart': + t = vn; + break; + case Z: + case J: + case tt: + t = ln; + break; + case et: + t = yn; + break; + case 'scroll': + t = He; + break; + case 'wheel': + t = bn; + break; + case 'copy': + case 'cut': + case 'paste': + t = cn; + break; + case 'gotpointercapture': + case 'lostpointercapture': + case 'pointercancel': + case 'pointerdown': + case 'pointermove': + case 'pointerout': + case 'pointerover': + case 'pointerup': + t = Ze; + break; + default: + t = lt; + } + return q((e = t.getPooled(i, e, n, r))), e; + } + }, + Mn = Pn.getEventPriority, + Ln = []; + function jn(t) { + var e = t.targetInst, + n = e; + do { + if (!n) { + t.ancestors.push(n); + break; + } + var r; + for (r = n; r.return; ) r = r.return; + if (!(r = 3 !== r.tag ? null : r.stateNode.containerInfo)) break; + t.ancestors.push(n), (n = z(r)); + } while (n); + for (n = 0; n < t.ancestors.length; n++) { + e = t.ancestors[n]; + var i = Bt(t.nativeEvent); + r = t.topLevelType; + for (var o = t.nativeEvent, a = null, s = 0; s < f.length; s++) { + var u = f[s]; + u && (u = u.extractEvents(r, e, o, i)) && (a = A(a, u)); + } + P(a); + } + } + var Dn = !0; + function Rn(t, e) { + zn(e, t, !1); + } + function zn(t, e, n) { + switch (Mn(e)) { + case 0: + var r = Nn.bind(null, e, 1); + break; + case 1: + r = In.bind(null, e, 1); + break; + default: + r = Fn.bind(null, e, 1); + } + n ? t.addEventListener(e, r, !0) : t.addEventListener(e, r, !1); + } + function Nn(t, e, n) { + Nt || Rt(); + var r = Fn, + i = Nt; + Nt = !0; + try { + Dt(r, t, e, n); + } finally { + (Nt = i) || It(); + } + } + function In(t, e, n) { + Fn(t, e, n); + } + function Fn(t, e, n) { + if (Dn) { + if ( + (null === (e = z((e = Bt(n)))) || + 'number' != typeof e.tag || + 2 === an(e) || + (e = null), + Ln.length) + ) { + var r = Ln.pop(); + (r.topLevelType = t), + (r.nativeEvent = n), + (r.targetInst = e), + (t = r); + } else + t = { + topLevelType: t, + nativeEvent: n, + targetInst: e, + ancestors: [] + }; + try { + if (((n = t), Nt)) jn(n); + else { + Nt = !0; + try { + zt(jn, n, void 0); + } finally { + (Nt = !1), It(); + } + } + } finally { + (t.topLevelType = null), + (t.nativeEvent = null), + (t.targetInst = null), + (t.ancestors.length = 0), + 10 > Ln.length && Ln.push(t); + } + } + } + var Vn = new ('function' == typeof WeakMap ? WeakMap : Map)(); + function Bn(t) { + var e = Vn.get(t); + return void 0 === e && ((e = new Set()), Vn.set(t, e)), e; + } + function Gn(t) { + if ( + void 0 === + (t = t || ('undefined' != typeof document ? document : void 0)) + ) + return null; + try { + return t.activeElement || t.body; + } catch (e) { + return t.body; + } + } + function Hn(t) { + for (; t && t.firstChild; ) t = t.firstChild; + return t; + } + function Un(t, e) { + var n, + r = Hn(t); + for (t = 0; r; ) { + if (3 === r.nodeType) { + if (((n = t + r.textContent.length), t <= e && n >= e)) + return { node: r, offset: e - t }; + t = n; + } + t: { + for (; r; ) { + if (r.nextSibling) { + r = r.nextSibling; + break t; + } + r = r.parentNode; + } + r = void 0; + } + r = Hn(r); + } + } + function qn() { + for (var t = window, e = Gn(); e instanceof t.HTMLIFrameElement; ) { + try { + var n = 'string' == typeof e.contentWindow.location.href; + } catch (t) { + n = !1; + } + if (!n) break; + e = Gn((t = e.contentWindow).document); + } + return e; + } + function Wn(t) { + var e = t && t.nodeName && t.nodeName.toLowerCase(); + return ( + e && + (('input' === e && + ('text' === t.type || + 'search' === t.type || + 'tel' === t.type || + 'url' === t.type || + 'password' === t.type)) || + 'textarea' === e || + 'true' === t.contentEditable) + ); + } + var Xn = W && 'documentMode' in document && 11 >= document.documentMode, + Yn = { + select: { + phasedRegistrationNames: { + bubbled: 'onSelect', + captured: 'onSelectCapture' + }, + dependencies: 'blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange'.split( + ' ' + ) + } + }, + $n = null, + Kn = null, + Qn = null, + Zn = !1; + function Jn(t, e) { + var n = + e.window === e ? e.document : 9 === e.nodeType ? e : e.ownerDocument; + return Zn || null == $n || $n !== Gn(n) + ? null + : ('selectionStart' in (n = $n) && Wn(n) + ? (n = { start: n.selectionStart, end: n.selectionEnd }) + : (n = { + anchorNode: (n = ( + (n.ownerDocument && n.ownerDocument.defaultView) || + window + ).getSelection()).anchorNode, + anchorOffset: n.anchorOffset, + focusNode: n.focusNode, + focusOffset: n.focusOffset + }), + Qn && rn(Qn, n) + ? null + : ((Qn = n), + ((t = lt.getPooled(Yn.select, Kn, t, e)).type = 'select'), + (t.target = $n), + q(t), + t)); + } + var tr = { + eventTypes: Yn, + extractEvents: function(t, e, n, r) { + var i, + o = + r.window === r + ? r.document + : 9 === r.nodeType + ? r + : r.ownerDocument; + if (!(i = !o)) { + t: { + (o = Bn(o)), (i = p.onSelect); + for (var a = 0; a < i.length; a++) + if (!o.has(i[a])) { + o = !1; + break t; + } + o = !0; + } + i = !o; + } + if (i) return null; + switch (((o = e ? I(e) : window), t)) { + case 'focus': + (Vt(o) || 'true' === o.contentEditable) && + (($n = o), (Kn = e), (Qn = null)); + break; + case 'blur': + Qn = Kn = $n = null; + break; + case 'mousedown': + Zn = !0; + break; + case 'contextmenu': + case 'mouseup': + case 'dragend': + return (Zn = !1), Jn(n, r); + case 'selectionchange': + if (Xn) break; + case 'keydown': + case 'keyup': + return Jn(n, r); + } + return null; + } + }; + function er(t, e) { + return ( + (t = i({ children: void 0 }, e)), + (e = (function(t) { + var e = ''; + return ( + r.Children.forEach(t, function(t) { + null != t && (e += t); + }), + e + ); + })(e.children)) && (t.children = e), + t + ); + } + function nr(t, e, n, r) { + if (((t = t.options), e)) { + e = {}; + for (var i = 0; i < n.length; i++) e['$' + n[i]] = !0; + for (n = 0; n < t.length; n++) + (i = e.hasOwnProperty('$' + t[n].value)), + t[n].selected !== i && (t[n].selected = i), + i && r && (t[n].defaultSelected = !0); + } else { + for (n = '' + xe(n), e = null, i = 0; i < t.length; i++) { + if (t[i].value === n) + return ( + (t[i].selected = !0), void (r && (t[i].defaultSelected = !0)) + ); + null !== e || t[i].disabled || (e = t[i]); + } + null !== e && (e.selected = !0); + } + } + function rr(t, e) { + if (null != e.dangerouslySetInnerHTML) throw a(Error(91)); + return i({}, e, { + value: void 0, + defaultValue: void 0, + children: '' + t._wrapperState.initialValue + }); + } + function ir(t, e) { + var n = e.value; + if (null == n) { + if (((n = e.defaultValue), null != (e = e.children))) { + if (null != n) throw a(Error(92)); + if (Array.isArray(e)) { + if (!(1 >= e.length)) throw a(Error(93)); + e = e[0]; + } + n = e; + } + null == n && (n = ''); + } + t._wrapperState = { initialValue: xe(n) }; + } + function or(t, e) { + var n = xe(e.value), + r = xe(e.defaultValue); + null != n && + ((n = '' + n) !== t.value && (t.value = n), + null == e.defaultValue && + t.defaultValue !== n && + (t.defaultValue = n)), + null != r && (t.defaultValue = '' + r); + } + function ar(t) { + var e = t.textContent; + e === t._wrapperState.initialValue && (t.value = e); + } + M.injectEventPluginOrder( + 'ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin'.split( + ' ' + ) + ), + (w = F), + (S = N), + (E = I), + M.injectEventPluginsByName({ + SimpleEventPlugin: Pn, + EnterLeaveEventPlugin: tn, + ChangeEventPlugin: Ge, + SelectEventPlugin: tr, + BeforeInputEventPlugin: At + }); + var sr = { + html: 'http://www.w3.org/1999/xhtml', + mathml: 'http://www.w3.org/1998/Math/MathML', + svg: 'http://www.w3.org/2000/svg' + }; + function ur(t) { + switch (t) { + case 'svg': + return 'http://www.w3.org/2000/svg'; + case 'math': + return 'http://www.w3.org/1998/Math/MathML'; + default: + return 'http://www.w3.org/1999/xhtml'; + } + } + function lr(t, e) { + return null == t || 'http://www.w3.org/1999/xhtml' === t + ? ur(e) + : 'http://www.w3.org/2000/svg' === t && 'foreignObject' === e + ? 'http://www.w3.org/1999/xhtml' + : t; + } + var cr = void 0, + fr = (function(t) { + return 'undefined' != typeof MSApp && MSApp.execUnsafeLocalFunction + ? function(e, n, r, i) { + MSApp.execUnsafeLocalFunction(function() { + return t(e, n); + }); + } + : t; + })(function(t, e) { + if (t.namespaceURI !== sr.svg || 'innerHTML' in t) t.innerHTML = e; + else { + for ( + (cr = cr || document.createElement('div')).innerHTML = + '' + e + '', + e = cr.firstChild; + t.firstChild; + + ) + t.removeChild(t.firstChild); + for (; e.firstChild; ) t.appendChild(e.firstChild); + } + }); + function dr(t, e) { + if (e) { + var n = t.firstChild; + if (n && n === t.lastChild && 3 === n.nodeType) + return void (n.nodeValue = e); + } + t.textContent = e; + } + var hr = { + 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, + gridArea: !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 + }, + pr = ['Webkit', 'ms', 'Moz', 'O']; + function gr(t, e, n) { + return null == e || 'boolean' == typeof e || '' === e + ? '' + : n || + 'number' != typeof e || + 0 === e || + (hr.hasOwnProperty(t) && hr[t]) + ? ('' + e).trim() + : e + 'px'; + } + function mr(t, e) { + for (var n in ((t = t.style), e)) + if (e.hasOwnProperty(n)) { + var r = 0 === n.indexOf('--'), + i = gr(n, e[n], r); + 'float' === n && (n = 'cssFloat'), + r ? t.setProperty(n, i) : (t[n] = i); + } + } + Object.keys(hr).forEach(function(t) { + pr.forEach(function(e) { + (e = e + t.charAt(0).toUpperCase() + t.substring(1)), (hr[e] = hr[t]); + }); + }); + var vr = i( + { menuitem: !0 }, + { + area: !0, + base: !0, + br: !0, + col: !0, + embed: !0, + hr: !0, + img: !0, + input: !0, + keygen: !0, + link: !0, + meta: !0, + param: !0, + source: !0, + track: !0, + wbr: !0 + } + ); + function yr(t, e) { + if (e) { + if ( + vr[t] && + (null != e.children || null != e.dangerouslySetInnerHTML) + ) + throw a(Error(137), t, ''); + if (null != e.dangerouslySetInnerHTML) { + if (null != e.children) throw a(Error(60)); + if ( + !( + 'object' == typeof e.dangerouslySetInnerHTML && + '__html' in e.dangerouslySetInnerHTML + ) + ) + throw a(Error(61)); + } + if (null != e.style && 'object' != typeof e.style) + throw a(Error(62), ''); + } + } + function br(t, e) { + if (-1 === t.indexOf('-')) return 'string' == typeof e.is; + switch (t) { + case 'annotation-xml': + case 'color-profile': + case 'font-face': + case 'font-face-src': + case 'font-face-uri': + case 'font-face-format': + case 'font-face-name': + case 'missing-glyph': + return !1; + default: + return !0; + } + } + function _r(t, e) { + var n = Bn( + (t = 9 === t.nodeType || 11 === t.nodeType ? t : t.ownerDocument) + ); + e = p[e]; + for (var r = 0; r < e.length; r++) { + var i = e[r]; + if (!n.has(i)) { + switch (i) { + case 'scroll': + zn(t, 'scroll', !0); + break; + case 'focus': + case 'blur': + zn(t, 'focus', !0), + zn(t, 'blur', !0), + n.add('blur'), + n.add('focus'); + break; + case 'cancel': + case 'close': + Gt(i) && zn(t, i, !0); + break; + case 'invalid': + case 'submit': + case 'reset': + break; + default: + -1 === nt.indexOf(i) && Rn(i, t); + } + n.add(i); + } + } + } + function xr() {} + var wr = null, + Sr = null; + function Er(t, e) { + switch (t) { + case 'button': + case 'input': + case 'select': + case 'textarea': + return !!e.autoFocus; + } + return !1; + } + function kr(t, e) { + return ( + 'textarea' === t || + 'option' === t || + 'noscript' === t || + 'string' == typeof e.children || + 'number' == typeof e.children || + ('object' == typeof e.dangerouslySetInnerHTML && + null !== e.dangerouslySetInnerHTML && + null != e.dangerouslySetInnerHTML.__html) + ); + } + var Ar = 'function' == typeof setTimeout ? setTimeout : void 0, + Tr = 'function' == typeof clearTimeout ? clearTimeout : void 0; + function Cr(t) { + for (; null != t; t = t.nextSibling) { + var e = t.nodeType; + if (1 === e || 3 === e) break; + } + return t; + } + new Set(); + var Or = [], + Pr = -1; + function Mr(t) { + 0 > Pr || ((t.current = Or[Pr]), (Or[Pr] = null), Pr--); + } + function Lr(t, e) { + (Or[++Pr] = t.current), (t.current = e); + } + var jr = {}, + Dr = { current: jr }, + Rr = { current: !1 }, + zr = jr; + function Nr(t, e) { + var n = t.type.contextTypes; + if (!n) return jr; + var r = t.stateNode; + if (r && r.__reactInternalMemoizedUnmaskedChildContext === e) + return r.__reactInternalMemoizedMaskedChildContext; + var i, + o = {}; + for (i in n) o[i] = e[i]; + return ( + r && + (((t = + t.stateNode).__reactInternalMemoizedUnmaskedChildContext = e), + (t.__reactInternalMemoizedMaskedChildContext = o)), + o + ); + } + function Ir(t) { + return null != (t = t.childContextTypes); + } + function Fr(t) { + Mr(Rr), Mr(Dr); + } + function Vr(t) { + Mr(Rr), Mr(Dr); + } + function Br(t, e, n) { + if (Dr.current !== jr) throw a(Error(168)); + Lr(Dr, e), Lr(Rr, n); + } + function Gr(t, e, n) { + var r = t.stateNode; + if (((t = e.childContextTypes), 'function' != typeof r.getChildContext)) + return n; + for (var o in (r = r.getChildContext())) + if (!(o in t)) throw a(Error(108), ce(e) || 'Unknown', o); + return i({}, n, r); + } + function Hr(t) { + var e = t.stateNode; + return ( + (e = (e && e.__reactInternalMemoizedMergedChildContext) || jr), + (zr = Dr.current), + Lr(Dr, e), + Lr(Rr, Rr.current), + !0 + ); + } + function Ur(t, e, n) { + var r = t.stateNode; + if (!r) throw a(Error(169)); + n + ? ((e = Gr(t, e, zr)), + (r.__reactInternalMemoizedMergedChildContext = e), + Mr(Rr), + Mr(Dr), + Lr(Dr, e)) + : Mr(Rr), + Lr(Rr, n); + } + var qr = o.unstable_runWithPriority, + Wr = o.unstable_scheduleCallback, + Xr = o.unstable_cancelCallback, + Yr = o.unstable_shouldYield, + $r = o.unstable_requestPaint, + Kr = o.unstable_now, + Qr = o.unstable_getCurrentPriorityLevel, + Zr = o.unstable_ImmediatePriority, + Jr = o.unstable_UserBlockingPriority, + ti = o.unstable_NormalPriority, + ei = o.unstable_LowPriority, + ni = o.unstable_IdlePriority, + ri = {}, + ii = void 0 !== $r ? $r : function() {}, + oi = null, + ai = null, + si = !1, + ui = Kr(), + li = + 1e4 > ui + ? Kr + : function() { + return Kr() - ui; + }; + function ci() { + switch (Qr()) { + case Zr: + return 99; + case Jr: + return 98; + case ti: + return 97; + case ei: + return 96; + case ni: + return 95; + default: + throw a(Error(332)); + } + } + function fi(t) { + switch (t) { + case 99: + return Zr; + case 98: + return Jr; + case 97: + return ti; + case 96: + return ei; + case 95: + return ni; + default: + throw a(Error(332)); + } + } + function di(t, e) { + return (t = fi(t)), qr(t, e); + } + function hi(t, e, n) { + return (t = fi(t)), Wr(t, e, n); + } + function pi(t) { + return null === oi ? ((oi = [t]), (ai = Wr(Zr, mi))) : oi.push(t), ri; + } + function gi() { + null !== ai && Xr(ai), mi(); + } + function mi() { + if (!si && null !== oi) { + si = !0; + var t = 0; + try { + var e = oi; + di(99, function() { + for (; t < e.length; t++) { + var n = e[t]; + do { + n = n(!0); + } while (null !== n); + } + }), + (oi = null); + } catch (e) { + throw (null !== oi && (oi = oi.slice(t + 1)), Wr(Zr, gi), e); + } finally { + si = !1; + } + } + } + function vi(t, e) { + return 1073741823 === e + ? 99 + : 1 === e + ? 95 + : 0 >= (t = 10 * (1073741821 - e) - 10 * (1073741821 - t)) + ? 99 + : 250 >= t + ? 98 + : 5250 >= t + ? 97 + : 95; + } + function yi(t, e) { + if (t && t.defaultProps) + for (var n in ((e = i({}, e)), (t = t.defaultProps))) + void 0 === e[n] && (e[n] = t[n]); + return e; + } + var bi = { current: null }, + _i = null, + xi = null, + wi = null; + function Si() { + wi = xi = _i = null; + } + function Ei(t, e) { + var n = t.type._context; + Lr(bi, n._currentValue), (n._currentValue = e); + } + function ki(t) { + var e = bi.current; + Mr(bi), (t.type._context._currentValue = e); + } + function Ai(t, e) { + for (; null !== t; ) { + var n = t.alternate; + if (t.childExpirationTime < e) + (t.childExpirationTime = e), + null !== n && + n.childExpirationTime < e && + (n.childExpirationTime = e); + else { + if (!(null !== n && n.childExpirationTime < e)) break; + n.childExpirationTime = e; + } + t = t.return; + } + } + function Ti(t, e) { + (_i = t), + (wi = xi = null), + null !== (t = t.dependencies) && + null !== t.firstContext && + (t.expirationTime >= e && (fa = !0), (t.firstContext = null)); + } + function Ci(t, e) { + if (wi !== t && !1 !== e && 0 !== e) + if ( + (('number' == typeof e && 1073741823 !== e) || + ((wi = t), (e = 1073741823)), + (e = { context: t, observedBits: e, next: null }), + null === xi) + ) { + if (null === _i) throw a(Error(308)); + (xi = e), + (_i.dependencies = { + expirationTime: 0, + firstContext: e, + responders: null + }); + } else xi = xi.next = e; + return t._currentValue; + } + var Oi = !1; + function Pi(t) { + return { + baseState: t, + firstUpdate: null, + lastUpdate: null, + firstCapturedUpdate: null, + lastCapturedUpdate: null, + firstEffect: null, + lastEffect: null, + firstCapturedEffect: null, + lastCapturedEffect: null + }; + } + function Mi(t) { + return { + baseState: t.baseState, + firstUpdate: t.firstUpdate, + lastUpdate: t.lastUpdate, + firstCapturedUpdate: null, + lastCapturedUpdate: null, + firstEffect: null, + lastEffect: null, + firstCapturedEffect: null, + lastCapturedEffect: null + }; + } + function Li(t, e) { + return { + expirationTime: t, + suspenseConfig: e, + tag: 0, + payload: null, + callback: null, + next: null, + nextEffect: null + }; + } + function ji(t, e) { + null === t.lastUpdate + ? (t.firstUpdate = t.lastUpdate = e) + : ((t.lastUpdate.next = e), (t.lastUpdate = e)); + } + function Di(t, e) { + var n = t.alternate; + if (null === n) { + var r = t.updateQueue, + i = null; + null === r && (r = t.updateQueue = Pi(t.memoizedState)); + } else + (r = t.updateQueue), + (i = n.updateQueue), + null === r + ? null === i + ? ((r = t.updateQueue = Pi(t.memoizedState)), + (i = n.updateQueue = Pi(n.memoizedState))) + : (r = t.updateQueue = Mi(i)) + : null === i && (i = n.updateQueue = Mi(r)); + null === i || r === i + ? ji(r, e) + : null === r.lastUpdate || null === i.lastUpdate + ? (ji(r, e), ji(i, e)) + : (ji(r, e), (i.lastUpdate = e)); + } + function Ri(t, e) { + var n = t.updateQueue; + null === + (n = null === n ? (t.updateQueue = Pi(t.memoizedState)) : zi(t, n)) + .lastCapturedUpdate + ? (n.firstCapturedUpdate = n.lastCapturedUpdate = e) + : ((n.lastCapturedUpdate.next = e), (n.lastCapturedUpdate = e)); + } + function zi(t, e) { + var n = t.alternate; + return ( + null !== n && e === n.updateQueue && (e = t.updateQueue = Mi(e)), e + ); + } + function Ni(t, e, n, r, o, a) { + switch (n.tag) { + case 1: + return 'function' == typeof (t = n.payload) ? t.call(a, r, o) : t; + case 3: + t.effectTag = (-2049 & t.effectTag) | 64; + case 0: + if ( + null == + (o = 'function' == typeof (t = n.payload) ? t.call(a, r, o) : t) + ) + break; + return i({}, r, o); + case 2: + Oi = !0; + } + return r; + } + function Ii(t, e, n, r, i) { + Oi = !1; + for ( + var o = (e = zi(t, e)).baseState, + a = null, + s = 0, + u = e.firstUpdate, + l = o; + null !== u; + + ) { + var c = u.expirationTime; + c < i + ? (null === a && ((a = u), (o = l)), s < c && (s = c)) + : (Gs(c, u.suspenseConfig), + (l = Ni(t, 0, u, l, n, r)), + null !== u.callback && + ((t.effectTag |= 32), + (u.nextEffect = null), + null === e.lastEffect + ? (e.firstEffect = e.lastEffect = u) + : ((e.lastEffect.nextEffect = u), (e.lastEffect = u)))), + (u = u.next); + } + for (c = null, u = e.firstCapturedUpdate; null !== u; ) { + var f = u.expirationTime; + f < i + ? (null === c && ((c = u), null === a && (o = l)), s < f && (s = f)) + : ((l = Ni(t, 0, u, l, n, r)), + null !== u.callback && + ((t.effectTag |= 32), + (u.nextEffect = null), + null === e.lastCapturedEffect + ? (e.firstCapturedEffect = e.lastCapturedEffect = u) + : ((e.lastCapturedEffect.nextEffect = u), + (e.lastCapturedEffect = u)))), + (u = u.next); + } + null === a && (e.lastUpdate = null), + null === c ? (e.lastCapturedUpdate = null) : (t.effectTag |= 32), + null === a && null === c && (o = l), + (e.baseState = o), + (e.firstUpdate = a), + (e.firstCapturedUpdate = c), + (t.expirationTime = s), + (t.memoizedState = l); + } + function Fi(t, e, n) { + null !== e.firstCapturedUpdate && + (null !== e.lastUpdate && + ((e.lastUpdate.next = e.firstCapturedUpdate), + (e.lastUpdate = e.lastCapturedUpdate)), + (e.firstCapturedUpdate = e.lastCapturedUpdate = null)), + Vi(e.firstEffect, n), + (e.firstEffect = e.lastEffect = null), + Vi(e.firstCapturedEffect, n), + (e.firstCapturedEffect = e.lastCapturedEffect = null); + } + function Vi(t, e) { + for (; null !== t; ) { + var n = t.callback; + if (null !== n) { + t.callback = null; + var r = e; + if ('function' != typeof n) throw a(Error(191), n); + n.call(r); + } + t = t.nextEffect; + } + } + var Bi = Wt.ReactCurrentBatchConfig, + Gi = new r.Component().refs; + function Hi(t, e, n, r) { + (n = null == (n = n(r, (e = t.memoizedState))) ? e : i({}, e, n)), + (t.memoizedState = n), + null !== (r = t.updateQueue) && + 0 === t.expirationTime && + (r.baseState = n); + } + var Ui = { + isMounted: function(t) { + return !!(t = t._reactInternalFiber) && 2 === an(t); + }, + enqueueSetState: function(t, e, n) { + t = t._reactInternalFiber; + var r = Os(), + i = Bi.suspense; + ((i = Li((r = Ps(r, t, i)), i)).payload = e), + null != n && (i.callback = n), + Di(t, i), + Ls(t, r); + }, + enqueueReplaceState: function(t, e, n) { + t = t._reactInternalFiber; + var r = Os(), + i = Bi.suspense; + ((i = Li((r = Ps(r, t, i)), i)).tag = 1), + (i.payload = e), + null != n && (i.callback = n), + Di(t, i), + Ls(t, r); + }, + enqueueForceUpdate: function(t, e) { + t = t._reactInternalFiber; + var n = Os(), + r = Bi.suspense; + ((r = Li((n = Ps(n, t, r)), r)).tag = 2), + null != e && (r.callback = e), + Di(t, r), + Ls(t, n); + } + }; + function qi(t, e, n, r, i, o, a) { + return 'function' == typeof (t = t.stateNode).shouldComponentUpdate + ? t.shouldComponentUpdate(r, o, a) + : !e.prototype || + !e.prototype.isPureReactComponent || + (!rn(n, r) || !rn(i, o)); + } + function Wi(t, e, n) { + var r = !1, + i = jr, + o = e.contextType; + return ( + 'object' == typeof o && null !== o + ? (o = Ci(o)) + : ((i = Ir(e) ? zr : Dr.current), + (o = (r = null != (r = e.contextTypes)) ? Nr(t, i) : jr)), + (e = new e(n, o)), + (t.memoizedState = + null !== e.state && void 0 !== e.state ? e.state : null), + (e.updater = Ui), + (t.stateNode = e), + (e._reactInternalFiber = t), + r && + (((t = + t.stateNode).__reactInternalMemoizedUnmaskedChildContext = i), + (t.__reactInternalMemoizedMaskedChildContext = o)), + e + ); + } + function Xi(t, e, n, r) { + (t = e.state), + 'function' == typeof e.componentWillReceiveProps && + e.componentWillReceiveProps(n, r), + 'function' == typeof e.UNSAFE_componentWillReceiveProps && + e.UNSAFE_componentWillReceiveProps(n, r), + e.state !== t && Ui.enqueueReplaceState(e, e.state, null); + } + function Yi(t, e, n, r) { + var i = t.stateNode; + (i.props = n), (i.state = t.memoizedState), (i.refs = Gi); + var o = e.contextType; + 'object' == typeof o && null !== o + ? (i.context = Ci(o)) + : ((o = Ir(e) ? zr : Dr.current), (i.context = Nr(t, o))), + null !== (o = t.updateQueue) && + (Ii(t, o, n, i, r), (i.state = t.memoizedState)), + 'function' == typeof (o = e.getDerivedStateFromProps) && + (Hi(t, e, o, n), (i.state = t.memoizedState)), + 'function' == typeof e.getDerivedStateFromProps || + 'function' == typeof i.getSnapshotBeforeUpdate || + ('function' != typeof i.UNSAFE_componentWillMount && + 'function' != typeof i.componentWillMount) || + ((e = i.state), + 'function' == typeof i.componentWillMount && i.componentWillMount(), + 'function' == typeof i.UNSAFE_componentWillMount && + i.UNSAFE_componentWillMount(), + e !== i.state && Ui.enqueueReplaceState(i, i.state, null), + null !== (o = t.updateQueue) && + (Ii(t, o, n, i, r), (i.state = t.memoizedState))), + 'function' == typeof i.componentDidMount && (t.effectTag |= 4); + } + var $i = Array.isArray; + function Ki(t, e, n) { + if ( + null !== (t = n.ref) && + 'function' != typeof t && + 'object' != typeof t + ) { + if (n._owner) { + n = n._owner; + var r = void 0; + if (n) { + if (1 !== n.tag) throw a(Error(309)); + r = n.stateNode; + } + if (!r) throw a(Error(147), t); + var i = '' + t; + return null !== e && + null !== e.ref && + 'function' == typeof e.ref && + e.ref._stringRef === i + ? e.ref + : (((e = function(t) { + var e = r.refs; + e === Gi && (e = r.refs = {}), + null === t ? delete e[i] : (e[i] = t); + })._stringRef = i), + e); + } + if ('string' != typeof t) throw a(Error(284)); + if (!n._owner) throw a(Error(290), t); + } + return t; + } + function Qi(t, e) { + if ('textarea' !== t.type) + throw a( + Error(31), + '[object Object]' === Object.prototype.toString.call(e) + ? 'object with keys {' + Object.keys(e).join(', ') + '}' + : e, + '' + ); + } + function Zi(t) { + function e(e, n) { + if (t) { + var r = e.lastEffect; + null !== r + ? ((r.nextEffect = n), (e.lastEffect = n)) + : (e.firstEffect = e.lastEffect = n), + (n.nextEffect = null), + (n.effectTag = 8); + } + } + function n(n, r) { + if (!t) return null; + for (; null !== r; ) e(n, r), (r = r.sibling); + return null; + } + function r(t, e) { + for (t = new Map(); null !== e; ) + null !== e.key ? t.set(e.key, e) : t.set(e.index, e), + (e = e.sibling); + return t; + } + function i(t, e, n) { + return ((t = ou(t, e)).index = 0), (t.sibling = null), t; + } + function o(e, n, r) { + return ( + (e.index = r), + t + ? null !== (r = e.alternate) + ? (r = r.index) < n + ? ((e.effectTag = 2), n) + : r + : ((e.effectTag = 2), n) + : n + ); + } + function s(e) { + return t && null === e.alternate && (e.effectTag = 2), e; + } + function u(t, e, n, r) { + return null === e || 6 !== e.tag + ? (((e = uu(n, t.mode, r)).return = t), e) + : (((e = i(e, n)).return = t), e); + } + function l(t, e, n, r) { + return null !== e && e.elementType === n.type + ? (((r = i(e, n.props)).ref = Ki(t, e, n)), (r.return = t), r) + : (((r = au(n.type, n.key, n.props, null, t.mode, r)).ref = Ki( + t, + e, + n + )), + (r.return = t), + r); + } + function c(t, e, n, r) { + return null === e || + 4 !== e.tag || + e.stateNode.containerInfo !== n.containerInfo || + e.stateNode.implementation !== n.implementation + ? (((e = lu(n, t.mode, r)).return = t), e) + : (((e = i(e, n.children || [])).return = t), e); + } + function f(t, e, n, r, o) { + return null === e || 7 !== e.tag + ? (((e = su(n, t.mode, r, o)).return = t), e) + : (((e = i(e, n)).return = t), e); + } + function d(t, e, n) { + if ('string' == typeof e || 'number' == typeof e) + return ((e = uu('' + e, t.mode, n)).return = t), e; + if ('object' == typeof e && null !== e) { + switch (e.$$typeof) { + case $t: + return ( + ((n = au(e.type, e.key, e.props, null, t.mode, n)).ref = Ki( + t, + null, + e + )), + (n.return = t), + n + ); + case Kt: + return ((e = lu(e, t.mode, n)).return = t), e; + } + if ($i(e) || le(e)) + return ((e = su(e, t.mode, n, null)).return = t), e; + Qi(t, e); + } + return null; + } + function h(t, e, n, r) { + var i = null !== e ? e.key : null; + if ('string' == typeof n || 'number' == typeof n) + return null !== i ? null : u(t, e, '' + n, r); + if ('object' == typeof n && null !== n) { + switch (n.$$typeof) { + case $t: + return n.key === i + ? n.type === Qt + ? f(t, e, n.props.children, r, i) + : l(t, e, n, r) + : null; + case Kt: + return n.key === i ? c(t, e, n, r) : null; + } + if ($i(n) || le(n)) return null !== i ? null : f(t, e, n, r, null); + Qi(t, n); + } + return null; + } + function p(t, e, n, r, i) { + if ('string' == typeof r || 'number' == typeof r) + return u(e, (t = t.get(n) || null), '' + r, i); + if ('object' == typeof r && null !== r) { + switch (r.$$typeof) { + case $t: + return ( + (t = t.get(null === r.key ? n : r.key) || null), + r.type === Qt + ? f(e, t, r.props.children, i, r.key) + : l(e, t, r, i) + ); + case Kt: + return c( + e, + (t = t.get(null === r.key ? n : r.key) || null), + r, + i + ); + } + if ($i(r) || le(r)) return f(e, (t = t.get(n) || null), r, i, null); + Qi(e, r); + } + return null; + } + function g(i, a, s, u) { + for ( + var l = null, c = null, f = a, g = (a = 0), m = null; + null !== f && g < s.length; + g++ + ) { + f.index > g ? ((m = f), (f = null)) : (m = f.sibling); + var v = h(i, f, s[g], u); + if (null === v) { + null === f && (f = m); + break; + } + t && f && null === v.alternate && e(i, f), + (a = o(v, a, g)), + null === c ? (l = v) : (c.sibling = v), + (c = v), + (f = m); + } + if (g === s.length) return n(i, f), l; + if (null === f) { + for (; g < s.length; g++) + null !== (f = d(i, s[g], u)) && + ((a = o(f, a, g)), + null === c ? (l = f) : (c.sibling = f), + (c = f)); + return l; + } + for (f = r(i, f); g < s.length; g++) + null !== (m = p(f, i, g, s[g], u)) && + (t && + null !== m.alternate && + f.delete(null === m.key ? g : m.key), + (a = o(m, a, g)), + null === c ? (l = m) : (c.sibling = m), + (c = m)); + return ( + t && + f.forEach(function(t) { + return e(i, t); + }), + l + ); + } + function m(i, s, u, l) { + var c = le(u); + if ('function' != typeof c) throw a(Error(150)); + if (null == (u = c.call(u))) throw a(Error(151)); + for ( + var f = (c = null), g = s, m = (s = 0), v = null, y = u.next(); + null !== g && !y.done; + m++, y = u.next() + ) { + g.index > m ? ((v = g), (g = null)) : (v = g.sibling); + var b = h(i, g, y.value, l); + if (null === b) { + null === g && (g = v); + break; + } + t && g && null === b.alternate && e(i, g), + (s = o(b, s, m)), + null === f ? (c = b) : (f.sibling = b), + (f = b), + (g = v); + } + if (y.done) return n(i, g), c; + if (null === g) { + for (; !y.done; m++, y = u.next()) + null !== (y = d(i, y.value, l)) && + ((s = o(y, s, m)), + null === f ? (c = y) : (f.sibling = y), + (f = y)); + return c; + } + for (g = r(i, g); !y.done; m++, y = u.next()) + null !== (y = p(g, i, m, y.value, l)) && + (t && + null !== y.alternate && + g.delete(null === y.key ? m : y.key), + (s = o(y, s, m)), + null === f ? (c = y) : (f.sibling = y), + (f = y)); + return ( + t && + g.forEach(function(t) { + return e(i, t); + }), + c + ); + } + return function(t, r, o, u) { + var l = + 'object' == typeof o && + null !== o && + o.type === Qt && + null === o.key; + l && (o = o.props.children); + var c = 'object' == typeof o && null !== o; + if (c) + switch (o.$$typeof) { + case $t: + t: { + for (c = o.key, l = r; null !== l; ) { + if (l.key === c) { + if ( + 7 === l.tag ? o.type === Qt : l.elementType === o.type + ) { + n(t, l.sibling), + ((r = i( + l, + o.type === Qt ? o.props.children : o.props + )).ref = Ki(t, l, o)), + (r.return = t), + (t = r); + break t; + } + n(t, l); + break; + } + e(t, l), (l = l.sibling); + } + o.type === Qt + ? (((r = su( + o.props.children, + t.mode, + u, + o.key + )).return = t), + (t = r)) + : (((u = au( + o.type, + o.key, + o.props, + null, + t.mode, + u + )).ref = Ki(t, r, o)), + (u.return = t), + (t = u)); + } + return s(t); + case Kt: + t: { + for (l = o.key; null !== r; ) { + if (r.key === l) { + if ( + 4 === r.tag && + r.stateNode.containerInfo === o.containerInfo && + r.stateNode.implementation === o.implementation + ) { + n(t, r.sibling), + ((r = i(r, o.children || [])).return = t), + (t = r); + break t; + } + n(t, r); + break; + } + e(t, r), (r = r.sibling); + } + ((r = lu(o, t.mode, u)).return = t), (t = r); + } + return s(t); + } + if ('string' == typeof o || 'number' == typeof o) + return ( + (o = '' + o), + null !== r && 6 === r.tag + ? (n(t, r.sibling), ((r = i(r, o)).return = t), (t = r)) + : (n(t, r), ((r = uu(o, t.mode, u)).return = t), (t = r)), + s(t) + ); + if ($i(o)) return g(t, r, o, u); + if (le(o)) return m(t, r, o, u); + if ((c && Qi(t, o), void 0 === o && !l)) + switch (t.tag) { + case 1: + case 0: + throw ((t = t.type), + a(Error(152), t.displayName || t.name || 'Component')); + } + return n(t, r); + }; + } + var Ji = Zi(!0), + to = Zi(!1), + eo = {}, + no = { current: eo }, + ro = { current: eo }, + io = { current: eo }; + function oo(t) { + if (t === eo) throw a(Error(174)); + return t; + } + function ao(t, e) { + Lr(io, e), Lr(ro, t), Lr(no, eo); + var n = e.nodeType; + switch (n) { + case 9: + case 11: + e = (e = e.documentElement) ? e.namespaceURI : lr(null, ''); + break; + default: + e = lr( + (e = (n = 8 === n ? e.parentNode : e).namespaceURI || null), + (n = n.tagName) + ); + } + Mr(no), Lr(no, e); + } + function so(t) { + Mr(no), Mr(ro), Mr(io); + } + function uo(t) { + oo(io.current); + var e = oo(no.current), + n = lr(e, t.type); + e !== n && (Lr(ro, t), Lr(no, n)); + } + function lo(t) { + ro.current === t && (Mr(no), Mr(ro)); + } + var co = 1, + fo = 1, + ho = 2, + po = { current: 0 }; + function go(t) { + for (var e = t; null !== e; ) { + if (13 === e.tag) { + if (null !== e.memoizedState) return e; + } else if (19 === e.tag && void 0 !== e.memoizedProps.revealOrder) { + if (0 != (64 & e.effectTag)) return e; + } else if (null !== e.child) { + (e.child.return = e), (e = e.child); + continue; + } + if (e === t) break; + for (; null === e.sibling; ) { + if (null === e.return || e.return === t) return null; + e = e.return; + } + (e.sibling.return = e.return), (e = e.sibling); + } + return null; + } + var mo = 0, + vo = 2, + yo = 4, + bo = 8, + _o = 16, + xo = 32, + wo = 64, + So = 128, + Eo = Wt.ReactCurrentDispatcher, + ko = 0, + Ao = null, + To = null, + Co = null, + Oo = null, + Po = null, + Mo = null, + Lo = 0, + jo = null, + Do = 0, + Ro = !1, + zo = null, + No = 0; + function Io() { + throw a(Error(321)); + } + function Fo(t, e) { + if (null === e) return !1; + for (var n = 0; n < e.length && n < t.length; n++) + if (!en(t[n], e[n])) return !1; + return !0; + } + function Vo(t, e, n, r, i, o) { + if ( + ((ko = o), + (Ao = e), + (Co = null !== t ? t.memoizedState : null), + (Eo.current = null === Co ? Jo : ta), + (e = n(r, i)), + Ro) + ) { + do { + (Ro = !1), + (No += 1), + (Co = null !== t ? t.memoizedState : null), + (Mo = Oo), + (jo = Po = To = null), + (Eo.current = ta), + (e = n(r, i)); + } while (Ro); + (zo = null), (No = 0); + } + if ( + ((Eo.current = Zo), + ((t = Ao).memoizedState = Oo), + (t.expirationTime = Lo), + (t.updateQueue = jo), + (t.effectTag |= Do), + (t = null !== To && null !== To.next), + (ko = 0), + (Mo = Po = Oo = Co = To = Ao = null), + (Lo = 0), + (jo = null), + (Do = 0), + t) + ) + throw a(Error(300)); + return e; + } + function Bo() { + (Eo.current = Zo), + (ko = 0), + (Mo = Po = Oo = Co = To = Ao = null), + (Lo = 0), + (jo = null), + (Do = 0), + (Ro = !1), + (zo = null), + (No = 0); + } + function Go() { + var t = { + memoizedState: null, + baseState: null, + queue: null, + baseUpdate: null, + next: null + }; + return null === Po ? (Oo = Po = t) : (Po = Po.next = t), Po; + } + function Ho() { + if (null !== Mo) + (Mo = (Po = Mo).next), (Co = null !== (To = Co) ? To.next : null); + else { + if (null === Co) throw a(Error(310)); + var t = { + memoizedState: (To = Co).memoizedState, + baseState: To.baseState, + queue: To.queue, + baseUpdate: To.baseUpdate, + next: null + }; + (Po = null === Po ? (Oo = t) : (Po.next = t)), (Co = To.next); + } + return Po; + } + function Uo(t, e) { + return 'function' == typeof e ? e(t) : e; + } + function qo(t) { + var e = Ho(), + n = e.queue; + if (null === n) throw a(Error(311)); + if (((n.lastRenderedReducer = t), 0 < No)) { + var r = n.dispatch; + if (null !== zo) { + var i = zo.get(n); + if (void 0 !== i) { + zo.delete(n); + var o = e.memoizedState; + do { + (o = t(o, i.action)), (i = i.next); + } while (null !== i); + return ( + en(o, e.memoizedState) || (fa = !0), + (e.memoizedState = o), + e.baseUpdate === n.last && (e.baseState = o), + (n.lastRenderedState = o), + [o, r] + ); + } + } + return [e.memoizedState, r]; + } + r = n.last; + var s = e.baseUpdate; + if ( + ((o = e.baseState), + null !== s + ? (null !== r && (r.next = null), (r = s.next)) + : (r = null !== r ? r.next : null), + null !== r) + ) { + var u = (i = null), + l = r, + c = !1; + do { + var f = l.expirationTime; + f < ko + ? (c || ((c = !0), (u = s), (i = o)), f > Lo && (Lo = f)) + : (Gs(f, l.suspenseConfig), + (o = l.eagerReducer === t ? l.eagerState : t(o, l.action))), + (s = l), + (l = l.next); + } while (null !== l && l !== r); + c || ((u = s), (i = o)), + en(o, e.memoizedState) || (fa = !0), + (e.memoizedState = o), + (e.baseUpdate = u), + (e.baseState = i), + (n.lastRenderedState = o); + } + return [e.memoizedState, n.dispatch]; + } + function Wo(t, e, n, r) { + return ( + (t = { tag: t, create: e, destroy: n, deps: r, next: null }), + null === jo + ? ((jo = { lastEffect: null }).lastEffect = t.next = t) + : null === (e = jo.lastEffect) + ? (jo.lastEffect = t.next = t) + : ((n = e.next), (e.next = t), (t.next = n), (jo.lastEffect = t)), + t + ); + } + function Xo(t, e, n, r) { + var i = Go(); + (Do |= t), + (i.memoizedState = Wo(e, n, void 0, void 0 === r ? null : r)); + } + function Yo(t, e, n, r) { + var i = Ho(); + r = void 0 === r ? null : r; + var o = void 0; + if (null !== To) { + var a = To.memoizedState; + if (((o = a.destroy), null !== r && Fo(r, a.deps))) + return void Wo(mo, n, o, r); + } + (Do |= t), (i.memoizedState = Wo(e, n, o, r)); + } + function $o(t, e) { + return 'function' == typeof e + ? ((t = t()), + e(t), + function() { + e(null); + }) + : null != e + ? ((t = t()), + (e.current = t), + function() { + e.current = null; + }) + : void 0; + } + function Ko() {} + function Qo(t, e, n) { + if (!(25 > No)) throw a(Error(301)); + var r = t.alternate; + if (t === Ao || (null !== r && r === Ao)) + if ( + ((Ro = !0), + (t = { + expirationTime: ko, + suspenseConfig: null, + action: n, + eagerReducer: null, + eagerState: null, + next: null + }), + null === zo && (zo = new Map()), + void 0 === (n = zo.get(e))) + ) + zo.set(e, t); + else { + for (e = n; null !== e.next; ) e = e.next; + e.next = t; + } + else { + var i = Os(), + o = Bi.suspense; + o = { + expirationTime: (i = Ps(i, t, o)), + suspenseConfig: o, + action: n, + eagerReducer: null, + eagerState: null, + next: null + }; + var s = e.last; + if (null === s) o.next = o; + else { + var u = s.next; + null !== u && (o.next = u), (s.next = o); + } + if ( + ((e.last = o), + 0 === t.expirationTime && + (null === r || 0 === r.expirationTime) && + null !== (r = e.lastRenderedReducer)) + ) + try { + var l = e.lastRenderedState, + c = r(l, n); + if (((o.eagerReducer = r), (o.eagerState = c), en(c, l))) return; + } catch (t) {} + Ls(t, i); + } + } + var Zo = { + readContext: Ci, + useCallback: Io, + useContext: Io, + useEffect: Io, + useImperativeHandle: Io, + useLayoutEffect: Io, + useMemo: Io, + useReducer: Io, + useRef: Io, + useState: Io, + useDebugValue: Io, + useResponder: Io + }, + Jo = { + readContext: Ci, + useCallback: function(t, e) { + return (Go().memoizedState = [t, void 0 === e ? null : e]), t; + }, + useContext: Ci, + useEffect: function(t, e) { + return Xo(516, So | wo, t, e); + }, + useImperativeHandle: function(t, e, n) { + return ( + (n = null != n ? n.concat([t]) : null), + Xo(4, yo | xo, $o.bind(null, e, t), n) + ); + }, + useLayoutEffect: function(t, e) { + return Xo(4, yo | xo, t, e); + }, + useMemo: function(t, e) { + var n = Go(); + return ( + (e = void 0 === e ? null : e), + (t = t()), + (n.memoizedState = [t, e]), + t + ); + }, + useReducer: function(t, e, n) { + var r = Go(); + return ( + (e = void 0 !== n ? n(e) : e), + (r.memoizedState = r.baseState = e), + (t = (t = r.queue = { + last: null, + dispatch: null, + lastRenderedReducer: t, + lastRenderedState: e + }).dispatch = Qo.bind(null, Ao, t)), + [r.memoizedState, t] + ); + }, + useRef: function(t) { + return (t = { current: t }), (Go().memoizedState = t); + }, + useState: function(t) { + var e = Go(); + return ( + 'function' == typeof t && (t = t()), + (e.memoizedState = e.baseState = t), + (t = (t = e.queue = { + last: null, + dispatch: null, + lastRenderedReducer: Uo, + lastRenderedState: t + }).dispatch = Qo.bind(null, Ao, t)), + [e.memoizedState, t] + ); + }, + useDebugValue: Ko, + useResponder: on + }, + ta = { + readContext: Ci, + useCallback: function(t, e) { + var n = Ho(); + e = void 0 === e ? null : e; + var r = n.memoizedState; + return null !== r && null !== e && Fo(e, r[1]) + ? r[0] + : ((n.memoizedState = [t, e]), t); + }, + useContext: Ci, + useEffect: function(t, e) { + return Yo(516, So | wo, t, e); + }, + useImperativeHandle: function(t, e, n) { + return ( + (n = null != n ? n.concat([t]) : null), + Yo(4, yo | xo, $o.bind(null, e, t), n) + ); + }, + useLayoutEffect: function(t, e) { + return Yo(4, yo | xo, t, e); + }, + useMemo: function(t, e) { + var n = Ho(); + e = void 0 === e ? null : e; + var r = n.memoizedState; + return null !== r && null !== e && Fo(e, r[1]) + ? r[0] + : ((t = t()), (n.memoizedState = [t, e]), t); + }, + useReducer: qo, + useRef: function() { + return Ho().memoizedState; + }, + useState: function(t) { + return qo(Uo); + }, + useDebugValue: Ko, + useResponder: on + }, + ea = null, + na = null, + ra = !1; + function ia(t, e) { + var n = ru(5, null, null, 0); + (n.elementType = 'DELETED'), + (n.type = 'DELETED'), + (n.stateNode = e), + (n.return = t), + (n.effectTag = 8), + null !== t.lastEffect + ? ((t.lastEffect.nextEffect = n), (t.lastEffect = n)) + : (t.firstEffect = t.lastEffect = n); + } + function oa(t, e) { + switch (t.tag) { + case 5: + var n = t.type; + return ( + null !== + (e = + 1 !== e.nodeType || + n.toLowerCase() !== e.nodeName.toLowerCase() + ? null + : e) && ((t.stateNode = e), !0) + ); + case 6: + return ( + null !== + (e = '' === t.pendingProps || 3 !== e.nodeType ? null : e) && + ((t.stateNode = e), !0) + ); + case 13: + default: + return !1; + } + } + function aa(t) { + if (ra) { + var e = na; + if (e) { + var n = e; + if (!oa(t, e)) { + if (!(e = Cr(n.nextSibling)) || !oa(t, e)) + return (t.effectTag |= 2), (ra = !1), void (ea = t); + ia(ea, n); + } + (ea = t), (na = Cr(e.firstChild)); + } else (t.effectTag |= 2), (ra = !1), (ea = t); + } + } + function sa(t) { + for ( + t = t.return; + null !== t && 5 !== t.tag && 3 !== t.tag && 18 !== t.tag; + + ) + t = t.return; + ea = t; + } + function ua(t) { + if (t !== ea) return !1; + if (!ra) return sa(t), (ra = !0), !1; + var e = t.type; + if ( + 5 !== t.tag || + ('head' !== e && 'body' !== e && !kr(e, t.memoizedProps)) + ) + for (e = na; e; ) ia(t, e), (e = Cr(e.nextSibling)); + return sa(t), (na = ea ? Cr(t.stateNode.nextSibling) : null), !0; + } + function la() { + (na = ea = null), (ra = !1); + } + var ca = Wt.ReactCurrentOwner, + fa = !1; + function da(t, e, n, r) { + e.child = null === t ? to(e, null, n, r) : Ji(e, t.child, n, r); + } + function ha(t, e, n, r, i) { + n = n.render; + var o = e.ref; + return ( + Ti(e, i), + (r = Vo(t, e, n, r, o, i)), + null === t || fa + ? ((e.effectTag |= 1), da(t, e, r, i), e.child) + : ((e.updateQueue = t.updateQueue), + (e.effectTag &= -517), + t.expirationTime <= i && (t.expirationTime = 0), + ka(t, e, i)) + ); + } + function pa(t, e, n, r, i, o) { + if (null === t) { + var a = n.type; + return 'function' != typeof a || + iu(a) || + void 0 !== a.defaultProps || + null !== n.compare || + void 0 !== n.defaultProps + ? (((t = au(n.type, null, r, null, e.mode, o)).ref = e.ref), + (t.return = e), + (e.child = t)) + : ((e.tag = 15), (e.type = a), ga(t, e, a, r, i, o)); + } + return ( + (a = t.child), + i < o && + ((i = a.memoizedProps), + (n = null !== (n = n.compare) ? n : rn)(i, r) && t.ref === e.ref) + ? ka(t, e, o) + : ((e.effectTag |= 1), + ((t = ou(a, r)).ref = e.ref), + (t.return = e), + (e.child = t)) + ); + } + function ga(t, e, n, r, i, o) { + return null !== t && + rn(t.memoizedProps, r) && + t.ref === e.ref && + ((fa = !1), i < o) + ? ka(t, e, o) + : va(t, e, n, r, o); + } + function ma(t, e) { + var n = e.ref; + ((null === t && null !== n) || (null !== t && t.ref !== n)) && + (e.effectTag |= 128); + } + function va(t, e, n, r, i) { + var o = Ir(n) ? zr : Dr.current; + return ( + (o = Nr(e, o)), + Ti(e, i), + (n = Vo(t, e, n, r, o, i)), + null === t || fa + ? ((e.effectTag |= 1), da(t, e, n, i), e.child) + : ((e.updateQueue = t.updateQueue), + (e.effectTag &= -517), + t.expirationTime <= i && (t.expirationTime = 0), + ka(t, e, i)) + ); + } + function ya(t, e, n, r, i) { + if (Ir(n)) { + var o = !0; + Hr(e); + } else o = !1; + if ((Ti(e, i), null === e.stateNode)) + null !== t && + ((t.alternate = null), (e.alternate = null), (e.effectTag |= 2)), + Wi(e, n, r), + Yi(e, n, r, i), + (r = !0); + else if (null === t) { + var a = e.stateNode, + s = e.memoizedProps; + a.props = s; + var u = a.context, + l = n.contextType; + 'object' == typeof l && null !== l + ? (l = Ci(l)) + : (l = Nr(e, (l = Ir(n) ? zr : Dr.current))); + var c = n.getDerivedStateFromProps, + f = + 'function' == typeof c || + 'function' == typeof a.getSnapshotBeforeUpdate; + f || + ('function' != typeof a.UNSAFE_componentWillReceiveProps && + 'function' != typeof a.componentWillReceiveProps) || + ((s !== r || u !== l) && Xi(e, a, r, l)), + (Oi = !1); + var d = e.memoizedState; + u = a.state = d; + var h = e.updateQueue; + null !== h && (Ii(e, h, r, a, i), (u = e.memoizedState)), + s !== r || d !== u || Rr.current || Oi + ? ('function' == typeof c && + (Hi(e, n, c, r), (u = e.memoizedState)), + (s = Oi || qi(e, n, s, r, d, u, l)) + ? (f || + ('function' != typeof a.UNSAFE_componentWillMount && + 'function' != typeof a.componentWillMount) || + ('function' == typeof a.componentWillMount && + a.componentWillMount(), + 'function' == typeof a.UNSAFE_componentWillMount && + a.UNSAFE_componentWillMount()), + 'function' == typeof a.componentDidMount && + (e.effectTag |= 4)) + : ('function' == typeof a.componentDidMount && + (e.effectTag |= 4), + (e.memoizedProps = r), + (e.memoizedState = u)), + (a.props = r), + (a.state = u), + (a.context = l), + (r = s)) + : ('function' == typeof a.componentDidMount && (e.effectTag |= 4), + (r = !1)); + } else + (a = e.stateNode), + (s = e.memoizedProps), + (a.props = e.type === e.elementType ? s : yi(e.type, s)), + (u = a.context), + 'object' == typeof (l = n.contextType) && null !== l + ? (l = Ci(l)) + : (l = Nr(e, (l = Ir(n) ? zr : Dr.current))), + (f = + 'function' == typeof (c = n.getDerivedStateFromProps) || + 'function' == typeof a.getSnapshotBeforeUpdate) || + ('function' != typeof a.UNSAFE_componentWillReceiveProps && + 'function' != typeof a.componentWillReceiveProps) || + ((s !== r || u !== l) && Xi(e, a, r, l)), + (Oi = !1), + (u = e.memoizedState), + (d = a.state = u), + null !== (h = e.updateQueue) && + (Ii(e, h, r, a, i), (d = e.memoizedState)), + s !== r || u !== d || Rr.current || Oi + ? ('function' == typeof c && + (Hi(e, n, c, r), (d = e.memoizedState)), + (c = Oi || qi(e, n, s, r, u, d, l)) + ? (f || + ('function' != typeof a.UNSAFE_componentWillUpdate && + 'function' != typeof a.componentWillUpdate) || + ('function' == typeof a.componentWillUpdate && + a.componentWillUpdate(r, d, l), + 'function' == typeof a.UNSAFE_componentWillUpdate && + a.UNSAFE_componentWillUpdate(r, d, l)), + 'function' == typeof a.componentDidUpdate && + (e.effectTag |= 4), + 'function' == typeof a.getSnapshotBeforeUpdate && + (e.effectTag |= 256)) + : ('function' != typeof a.componentDidUpdate || + (s === t.memoizedProps && u === t.memoizedState) || + (e.effectTag |= 4), + 'function' != typeof a.getSnapshotBeforeUpdate || + (s === t.memoizedProps && u === t.memoizedState) || + (e.effectTag |= 256), + (e.memoizedProps = r), + (e.memoizedState = d)), + (a.props = r), + (a.state = d), + (a.context = l), + (r = c)) + : ('function' != typeof a.componentDidUpdate || + (s === t.memoizedProps && u === t.memoizedState) || + (e.effectTag |= 4), + 'function' != typeof a.getSnapshotBeforeUpdate || + (s === t.memoizedProps && u === t.memoizedState) || + (e.effectTag |= 256), + (r = !1)); + return ba(t, e, n, r, o, i); + } + function ba(t, e, n, r, i, o) { + ma(t, e); + var a = 0 != (64 & e.effectTag); + if (!r && !a) return i && Ur(e, n, !1), ka(t, e, o); + (r = e.stateNode), (ca.current = e); + var s = + a && 'function' != typeof n.getDerivedStateFromError + ? null + : r.render(); + return ( + (e.effectTag |= 1), + null !== t && a + ? ((e.child = Ji(e, t.child, null, o)), + (e.child = Ji(e, null, s, o))) + : da(t, e, s, o), + (e.memoizedState = r.state), + i && Ur(e, n, !0), + e.child + ); + } + function _a(t) { + var e = t.stateNode; + e.pendingContext + ? Br(0, e.pendingContext, e.pendingContext !== e.context) + : e.context && Br(0, e.context, !1), + ao(t, e.containerInfo); + } + var xa = {}; + function wa(t, e, n) { + var r, + i = e.mode, + o = e.pendingProps, + a = po.current, + s = null, + u = !1; + if ( + ((r = 0 != (64 & e.effectTag)) || + (r = 0 != (a & ho) && (null === t || null !== t.memoizedState)), + r + ? ((s = xa), (u = !0), (e.effectTag &= -65)) + : (null !== t && null === t.memoizedState) || + void 0 === o.fallback || + !0 === o.unstable_avoidThisFallback || + (a |= fo), + Lr(po, (a &= co)), + null === t) + ) + if (u) { + if ( + ((o = o.fallback), + ((t = su(null, i, 0, null)).return = e), + 0 == (2 & e.mode)) + ) + for ( + u = null !== e.memoizedState ? e.child.child : e.child, + t.child = u; + null !== u; + + ) + (u.return = t), (u = u.sibling); + ((n = su(o, i, n, null)).return = e), (t.sibling = n), (i = t); + } else i = n = to(e, null, o.children, n); + else { + if (null !== t.memoizedState) + if (((i = (a = t.child).sibling), u)) { + if ( + ((o = o.fallback), + ((n = ou(a, a.pendingProps)).return = e), + 0 == (2 & e.mode) && + (u = null !== e.memoizedState ? e.child.child : e.child) !== + a.child) + ) + for (n.child = u; null !== u; ) (u.return = n), (u = u.sibling); + ((o = ou(i, o, i.expirationTime)).return = e), + (n.sibling = o), + (i = n), + (n.childExpirationTime = 0), + (n = o); + } else i = n = Ji(e, a.child, o.children, n); + else if (((a = t.child), u)) { + if ( + ((u = o.fallback), + ((o = su(null, i, 0, null)).return = e), + (o.child = a), + null !== a && (a.return = o), + 0 == (2 & e.mode)) + ) + for ( + a = null !== e.memoizedState ? e.child.child : e.child, + o.child = a; + null !== a; + + ) + (a.return = o), (a = a.sibling); + ((n = su(u, i, n, null)).return = e), + (o.sibling = n), + (n.effectTag |= 2), + (i = o), + (o.childExpirationTime = 0); + } else n = i = Ji(e, a, o.children, n); + e.stateNode = t.stateNode; + } + return (e.memoizedState = s), (e.child = i), n; + } + function Sa(t, e, n, r, i) { + var o = t.memoizedState; + null === o + ? (t.memoizedState = { + isBackwards: e, + rendering: null, + last: r, + tail: n, + tailExpiration: 0, + tailMode: i + }) + : ((o.isBackwards = e), + (o.rendering = null), + (o.last = r), + (o.tail = n), + (o.tailExpiration = 0), + (o.tailMode = i)); + } + function Ea(t, e, n) { + var r = e.pendingProps, + i = r.revealOrder, + o = r.tail; + if ((da(t, e, r.children, n), 0 != ((r = po.current) & ho))) + (r = (r & co) | ho), (e.effectTag |= 64); + else { + if (null !== t && 0 != (64 & t.effectTag)) + t: for (t = e.child; null !== t; ) { + if (13 === t.tag) { + if (null !== t.memoizedState) { + t.expirationTime < n && (t.expirationTime = n); + var a = t.alternate; + null !== a && a.expirationTime < n && (a.expirationTime = n), + Ai(t.return, n); + } + } else if (null !== t.child) { + (t.child.return = t), (t = t.child); + continue; + } + if (t === e) break t; + for (; null === t.sibling; ) { + if (null === t.return || t.return === e) break t; + t = t.return; + } + (t.sibling.return = t.return), (t = t.sibling); + } + r &= co; + } + if ((Lr(po, r), 0 == (2 & e.mode))) e.memoizedState = null; + else + switch (i) { + case 'forwards': + for (n = e.child, i = null; null !== n; ) + null !== (r = n.alternate) && null === go(r) && (i = n), + (n = n.sibling); + null === (n = i) + ? ((i = e.child), (e.child = null)) + : ((i = n.sibling), (n.sibling = null)), + Sa(e, !1, i, n, o); + break; + case 'backwards': + for (n = null, i = e.child, e.child = null; null !== i; ) { + if (null !== (r = i.alternate) && null === go(r)) { + e.child = i; + break; + } + (r = i.sibling), (i.sibling = n), (n = i), (i = r); + } + Sa(e, !0, n, null, o); + break; + case 'together': + Sa(e, !1, null, null, void 0); + break; + default: + e.memoizedState = null; + } + return e.child; + } + function ka(t, e, n) { + if ( + (null !== t && (e.dependencies = t.dependencies), + e.childExpirationTime < n) + ) + return null; + if (null !== t && e.child !== t.child) throw a(Error(153)); + if (null !== e.child) { + for ( + n = ou((t = e.child), t.pendingProps, t.expirationTime), + e.child = n, + n.return = e; + null !== t.sibling; + + ) + (t = t.sibling), + ((n = n.sibling = ou( + t, + t.pendingProps, + t.expirationTime + )).return = e); + n.sibling = null; + } + return e.child; + } + function Aa(t) { + t.effectTag |= 4; + } + var Ta = void 0, + Ca = void 0, + Oa = void 0, + Pa = void 0; + function Ma(t, e) { + switch (t.tailMode) { + case 'hidden': + e = t.tail; + for (var n = null; null !== e; ) + null !== e.alternate && (n = e), (e = e.sibling); + null === n ? (t.tail = null) : (n.sibling = null); + break; + case 'collapsed': + n = t.tail; + for (var r = null; null !== n; ) + null !== n.alternate && (r = n), (n = n.sibling); + null === r + ? e || null === t.tail + ? (t.tail = null) + : (t.tail.sibling = null) + : (r.sibling = null); + } + } + function La(t) { + switch (t.tag) { + case 1: + Ir(t.type) && Fr(); + var e = t.effectTag; + return 2048 & e ? ((t.effectTag = (-2049 & e) | 64), t) : null; + case 3: + if ((so(), Vr(), 0 != (64 & (e = t.effectTag)))) + throw a(Error(285)); + return (t.effectTag = (-2049 & e) | 64), t; + case 5: + return lo(t), null; + case 13: + return ( + Mr(po), + 2048 & (e = t.effectTag) + ? ((t.effectTag = (-2049 & e) | 64), t) + : null + ); + case 18: + return null; + case 19: + return Mr(po), null; + case 4: + return so(), null; + case 10: + return ki(t), null; + default: + return null; + } + } + function ja(t, e) { + return { value: t, source: e, stack: fe(e) }; + } + (Ta = function(t, e) { + for (var n = e.child; null !== n; ) { + if (5 === n.tag || 6 === n.tag) t.appendChild(n.stateNode); + else if (20 === n.tag) t.appendChild(n.stateNode.instance); + else if (4 !== n.tag && null !== n.child) { + (n.child.return = n), (n = n.child); + continue; + } + if (n === e) break; + for (; null === n.sibling; ) { + if (null === n.return || n.return === e) return; + n = n.return; + } + (n.sibling.return = n.return), (n = n.sibling); + } + }), + (Ca = function() {}), + (Oa = function(t, e, n, r, o) { + var a = t.memoizedProps; + if (a !== r) { + var s = e.stateNode; + switch ((oo(no.current), (t = null), n)) { + case 'input': + (a = we(s, a)), (r = we(s, r)), (t = []); + break; + case 'option': + (a = er(s, a)), (r = er(s, r)), (t = []); + break; + case 'select': + (a = i({}, a, { value: void 0 })), + (r = i({}, r, { value: void 0 })), + (t = []); + break; + case 'textarea': + (a = rr(s, a)), (r = rr(s, r)), (t = []); + break; + default: + 'function' != typeof a.onClick && + 'function' == typeof r.onClick && + (s.onclick = xr); + } + yr(n, r), (s = n = void 0); + var u = null; + for (n in a) + if (!r.hasOwnProperty(n) && a.hasOwnProperty(n) && null != a[n]) + if ('style' === n) { + var l = a[n]; + for (s in l) + l.hasOwnProperty(s) && (u || (u = {}), (u[s] = '')); + } else + 'dangerouslySetInnerHTML' !== n && + 'children' !== n && + 'suppressContentEditableWarning' !== n && + 'suppressHydrationWarning' !== n && + 'autoFocus' !== n && + (h.hasOwnProperty(n) + ? t || (t = []) + : (t = t || []).push(n, null)); + for (n in r) { + var c = r[n]; + if ( + ((l = null != a ? a[n] : void 0), + r.hasOwnProperty(n) && c !== l && (null != c || null != l)) + ) + if ('style' === n) + if (l) { + for (s in l) + !l.hasOwnProperty(s) || + (c && c.hasOwnProperty(s)) || + (u || (u = {}), (u[s] = '')); + for (s in c) + c.hasOwnProperty(s) && + l[s] !== c[s] && + (u || (u = {}), (u[s] = c[s])); + } else u || (t || (t = []), t.push(n, u)), (u = c); + else + 'dangerouslySetInnerHTML' === n + ? ((c = c ? c.__html : void 0), + (l = l ? l.__html : void 0), + null != c && l !== c && (t = t || []).push(n, '' + c)) + : 'children' === n + ? l === c || + ('string' != typeof c && 'number' != typeof c) || + (t = t || []).push(n, '' + c) + : 'suppressContentEditableWarning' !== n && + 'suppressHydrationWarning' !== n && + (h.hasOwnProperty(n) + ? (null != c && _r(o, n), t || l === c || (t = [])) + : (t = t || []).push(n, c)); + } + u && (t = t || []).push('style', u), + (o = t), + (e.updateQueue = o) && Aa(e); + } + }), + (Pa = function(t, e, n, r) { + n !== r && Aa(e); + }); + var Da = 'function' == typeof WeakSet ? WeakSet : Set; + function Ra(t, e) { + var n = e.source, + r = e.stack; + null === r && null !== n && (r = fe(n)), + null !== n && ce(n.type), + (e = e.value), + null !== t && 1 === t.tag && ce(t.type); + try { + console.error(e); + } catch (t) { + setTimeout(function() { + throw t; + }); + } + } + function za(t) { + var e = t.ref; + if (null !== e) + if ('function' == typeof e) + try { + e(null); + } catch (e) { + Ks(t, e); + } + else e.current = null; + } + function Na(t, e, n) { + if (null !== (n = null !== (n = n.updateQueue) ? n.lastEffect : null)) { + var r = (n = n.next); + do { + if ((r.tag & t) !== mo) { + var i = r.destroy; + (r.destroy = void 0), void 0 !== i && i(); + } + (r.tag & e) !== mo && ((i = r.create), (r.destroy = i())), + (r = r.next); + } while (r !== n); + } + } + function Ia(t, e) { + switch (('function' == typeof eu && eu(t), t.tag)) { + case 0: + case 11: + case 14: + case 15: + var n = t.updateQueue; + if (null !== n && null !== (n = n.lastEffect)) { + var r = n.next; + di(97 < e ? 97 : e, function() { + var e = r; + do { + var n = e.destroy; + if (void 0 !== n) { + var i = t; + try { + n(); + } catch (t) { + Ks(i, t); + } + } + e = e.next; + } while (e !== r); + }); + } + break; + case 1: + za(t), + 'function' == typeof (e = t.stateNode).componentWillUnmount && + (function(t, e) { + try { + (e.props = t.memoizedProps), + (e.state = t.memoizedState), + e.componentWillUnmount(); + } catch (e) { + Ks(t, e); + } + })(t, e); + break; + case 5: + za(t); + break; + case 4: + Ga(t, e); + } + } + function Fa(t, e) { + for (var n = t; ; ) + if ((Ia(n, e), null !== n.child && 4 !== n.tag)) + (n.child.return = n), (n = n.child); + else { + if (n === t) break; + for (; null === n.sibling; ) { + if (null === n.return || n.return === t) return; + n = n.return; + } + (n.sibling.return = n.return), (n = n.sibling); + } + } + function Va(t) { + return 5 === t.tag || 3 === t.tag || 4 === t.tag; + } + function Ba(t) { + t: { + for (var e = t.return; null !== e; ) { + if (Va(e)) { + var n = e; + break t; + } + e = e.return; + } + throw a(Error(160)); + } + switch (((e = n.stateNode), n.tag)) { + case 5: + var r = !1; + break; + case 3: + case 4: + (e = e.containerInfo), (r = !0); + break; + default: + throw a(Error(161)); + } + 16 & n.effectTag && (dr(e, ''), (n.effectTag &= -17)); + t: e: for (n = t; ; ) { + for (; null === n.sibling; ) { + if (null === n.return || Va(n.return)) { + n = null; + break t; + } + n = n.return; + } + for ( + n.sibling.return = n.return, n = n.sibling; + 5 !== n.tag && 6 !== n.tag && 18 !== n.tag; + + ) { + if (2 & n.effectTag) continue e; + if (null === n.child || 4 === n.tag) continue e; + (n.child.return = n), (n = n.child); + } + if (!(2 & n.effectTag)) { + n = n.stateNode; + break t; + } + } + for (var i = t; ; ) { + var o = 5 === i.tag || 6 === i.tag; + if (o || 20 === i.tag) { + var s = o ? i.stateNode : i.stateNode.instance; + if (n) + if (r) { + var u = s; + (s = n), + 8 === (o = e).nodeType + ? o.parentNode.insertBefore(u, s) + : o.insertBefore(u, s); + } else e.insertBefore(s, n); + else + r + ? (8 === (u = e).nodeType + ? (o = u.parentNode).insertBefore(s, u) + : (o = u).appendChild(s), + null != (u = u._reactRootContainer) || + null !== o.onclick || + (o.onclick = xr)) + : e.appendChild(s); + } else if (4 !== i.tag && null !== i.child) { + (i.child.return = i), (i = i.child); + continue; + } + if (i === t) break; + for (; null === i.sibling; ) { + if (null === i.return || i.return === t) return; + i = i.return; + } + (i.sibling.return = i.return), (i = i.sibling); + } + } + function Ga(t, e) { + for (var n = t, r = !1, i = void 0, o = void 0; ; ) { + if (!r) { + r = n.return; + t: for (;;) { + if (null === r) throw a(Error(160)); + switch (((i = r.stateNode), r.tag)) { + case 5: + o = !1; + break t; + case 3: + case 4: + (i = i.containerInfo), (o = !0); + break t; + } + r = r.return; + } + r = !0; + } + if (5 === n.tag || 6 === n.tag) + if ((Fa(n, e), o)) { + var s = i, + u = n.stateNode; + 8 === s.nodeType ? s.parentNode.removeChild(u) : s.removeChild(u); + } else i.removeChild(n.stateNode); + else if (20 === n.tag) + (u = n.stateNode.instance), + Fa(n, e), + o + ? 8 === (s = i).nodeType + ? s.parentNode.removeChild(u) + : s.removeChild(u) + : i.removeChild(u); + else if (4 === n.tag) { + if (null !== n.child) { + (i = n.stateNode.containerInfo), + (o = !0), + (n.child.return = n), + (n = n.child); + continue; + } + } else if ((Ia(n, e), null !== n.child)) { + (n.child.return = n), (n = n.child); + continue; + } + if (n === t) break; + for (; null === n.sibling; ) { + if (null === n.return || n.return === t) return; + 4 === (n = n.return).tag && (r = !1); + } + (n.sibling.return = n.return), (n = n.sibling); + } + } + function Ha(t, e) { + switch (e.tag) { + case 0: + case 11: + case 14: + case 15: + Na(yo, bo, e); + break; + case 1: + break; + case 5: + var n = e.stateNode; + if (null != n) { + var r = e.memoizedProps, + i = null !== t ? t.memoizedProps : r; + t = e.type; + var o = e.updateQueue; + if (((e.updateQueue = null), null !== o)) { + for ( + n[R] = r, + 'input' === t && + 'radio' === r.type && + null != r.name && + Ee(n, r), + br(t, i), + e = br(t, r), + i = 0; + i < o.length; + i += 2 + ) { + var s = o[i], + u = o[i + 1]; + 'style' === s + ? mr(n, u) + : 'dangerouslySetInnerHTML' === s + ? fr(n, u) + : 'children' === s + ? dr(n, u) + : _e(n, s, u, e); + } + switch (t) { + case 'input': + ke(n, r); + break; + case 'textarea': + or(n, r); + break; + case 'select': + (e = n._wrapperState.wasMultiple), + (n._wrapperState.wasMultiple = !!r.multiple), + null != (t = r.value) + ? nr(n, !!r.multiple, t, !1) + : e !== !!r.multiple && + (null != r.defaultValue + ? nr(n, !!r.multiple, r.defaultValue, !0) + : nr(n, !!r.multiple, r.multiple ? [] : '', !1)); + } + } + } + break; + case 6: + if (null === e.stateNode) throw a(Error(162)); + e.stateNode.nodeValue = e.memoizedProps; + break; + case 3: + case 12: + break; + case 13: + if ( + ((n = e), + null === e.memoizedState + ? (r = !1) + : ((r = !0), (n = e.child), (gs = li())), + null !== n) + ) + t: for (t = n; ; ) { + if (5 === t.tag) + (o = t.stateNode), + r + ? 'function' == typeof (o = o.style).setProperty + ? o.setProperty('display', 'none', 'important') + : (o.display = 'none') + : ((o = t.stateNode), + (i = + null != (i = t.memoizedProps.style) && + i.hasOwnProperty('display') + ? i.display + : null), + (o.style.display = gr('display', i))); + else if (6 === t.tag) + t.stateNode.nodeValue = r ? '' : t.memoizedProps; + else { + if (13 === t.tag && null !== t.memoizedState) { + ((o = t.child.sibling).return = t), (t = o); + continue; + } + if (null !== t.child) { + (t.child.return = t), (t = t.child); + continue; + } + } + if (t === n) break t; + for (; null === t.sibling; ) { + if (null === t.return || t.return === n) break t; + t = t.return; + } + (t.sibling.return = t.return), (t = t.sibling); + } + Ua(e); + break; + case 19: + Ua(e); + break; + case 17: + case 20: + break; + default: + throw a(Error(163)); + } + } + function Ua(t) { + var e = t.updateQueue; + if (null !== e) { + t.updateQueue = null; + var n = t.stateNode; + null === n && (n = t.stateNode = new Da()), + e.forEach(function(e) { + var r = Zs.bind(null, t, e); + n.has(e) || (n.add(e), e.then(r, r)); + }); + } + } + var qa = 'function' == typeof WeakMap ? WeakMap : Map; + function Wa(t, e, n) { + ((n = Li(n, null)).tag = 3), (n.payload = { element: null }); + var r = e.value; + return ( + (n.callback = function() { + ys || ((ys = !0), (bs = r)), Ra(t, e); + }), + n + ); + } + function Xa(t, e, n) { + (n = Li(n, null)).tag = 3; + var r = t.type.getDerivedStateFromError; + if ('function' == typeof r) { + var i = e.value; + n.payload = function() { + return Ra(t, e), r(i); + }; + } + var o = t.stateNode; + return ( + null !== o && + 'function' == typeof o.componentDidCatch && + (n.callback = function() { + 'function' != typeof r && + (null === _s ? (_s = new Set([this])) : _s.add(this), Ra(t, e)); + var n = e.stack; + this.componentDidCatch(e.value, { + componentStack: null !== n ? n : '' + }); + }), + n + ); + } + var Ya = Math.ceil, + $a = Wt.ReactCurrentDispatcher, + Ka = Wt.ReactCurrentOwner, + Qa = 0, + Za = 8, + Ja = 16, + ts = 32, + es = 0, + ns = 1, + rs = 2, + is = 3, + os = 4, + as = Qa, + ss = null, + us = null, + ls = 0, + cs = es, + fs = 1073741823, + ds = 1073741823, + hs = null, + ps = !1, + gs = 0, + ms = 500, + vs = null, + ys = !1, + bs = null, + _s = null, + xs = !1, + ws = null, + Ss = 90, + Es = 0, + ks = null, + As = 0, + Ts = null, + Cs = 0; + function Os() { + return (as & (Ja | ts)) !== Qa + ? 1073741821 - ((li() / 10) | 0) + : 0 !== Cs + ? Cs + : (Cs = 1073741821 - ((li() / 10) | 0)); + } + function Ps(t, e, n) { + if (0 == (2 & (e = e.mode))) return 1073741823; + var r = ci(); + if (0 == (4 & e)) return 99 === r ? 1073741823 : 1073741822; + if ((as & Ja) !== Qa) return ls; + if (null !== n) + t = + 1073741821 - + 25 * + (1 + + (((1073741821 - t + (0 | n.timeoutMs || 5e3) / 10) / 25) | 0)); + else + switch (r) { + case 99: + t = 1073741823; + break; + case 98: + t = 1073741821 - 10 * (1 + (((1073741821 - t + 15) / 10) | 0)); + break; + case 97: + case 96: + t = 1073741821 - 25 * (1 + (((1073741821 - t + 500) / 25) | 0)); + break; + case 95: + t = 1; + break; + default: + throw a(Error(326)); + } + return null !== ss && t === ls && --t, t; + } + var Ms = 0; + function Ls(t, e) { + if (50 < As) throw ((As = 0), (Ts = null), a(Error(185))); + if (null !== (t = js(t, e))) { + t.pingTime = 0; + var n = ci(); + if (1073741823 === e) + if ((as & Za) !== Qa && (as & (Ja | ts)) === Qa) + for (var r = Bs(t, 1073741823, !0); null !== r; ) r = r(!0); + else Ds(t, 99, 1073741823), as === Qa && gi(); + else Ds(t, n, e); + (4 & as) === Qa || + (98 !== n && 99 !== n) || + (null === ks + ? (ks = new Map([[t, e]])) + : (void 0 === (n = ks.get(t)) || n > e) && ks.set(t, e)); + } + } + function js(t, e) { + t.expirationTime < e && (t.expirationTime = e); + var n = t.alternate; + null !== n && n.expirationTime < e && (n.expirationTime = e); + var r = t.return, + i = null; + if (null === r && 3 === t.tag) i = t.stateNode; + else + for (; null !== r; ) { + if ( + ((n = r.alternate), + r.childExpirationTime < e && (r.childExpirationTime = e), + null !== n && + n.childExpirationTime < e && + (n.childExpirationTime = e), + null === r.return && 3 === r.tag) + ) { + i = r.stateNode; + break; + } + r = r.return; + } + return ( + null !== i && + (e > i.firstPendingTime && (i.firstPendingTime = e), + 0 === (t = i.lastPendingTime) || e < t) && + (i.lastPendingTime = e), + i + ); + } + function Ds(t, e, n) { + if (t.callbackExpirationTime < n) { + var r = t.callbackNode; + null !== r && r !== ri && Xr(r), + (t.callbackExpirationTime = n), + 1073741823 === n + ? (t.callbackNode = pi(Rs.bind(null, t, Bs.bind(null, t, n)))) + : ((r = null), + 1 !== n && (r = { timeout: 10 * (1073741821 - n) - li() }), + (t.callbackNode = hi( + e, + Rs.bind(null, t, Bs.bind(null, t, n)), + r + ))); + } + } + function Rs(t, e, n) { + var r = t.callbackNode, + i = null; + try { + return null !== (i = e(n)) ? Rs.bind(null, t, i) : null; + } finally { + null === i && + r === t.callbackNode && + ((t.callbackNode = null), (t.callbackExpirationTime = 0)); + } + } + function zs() { + (as & (1 | Ja | ts)) === Qa && + ((function() { + if (null !== ks) { + var t = ks; + (ks = null), + t.forEach(function(t, e) { + pi(Bs.bind(null, e, t)); + }), + gi(); + } + })(), + Xs()); + } + function Ns(t, e) { + var n = as; + as |= 1; + try { + return t(e); + } finally { + (as = n) === Qa && gi(); + } + } + function Is(t, e, n, r) { + var i = as; + as |= 4; + try { + return di(98, t.bind(null, e, n, r)); + } finally { + (as = i) === Qa && gi(); + } + } + function Fs(t, e) { + var n = as; + (as &= -2), (as |= Za); + try { + return t(e); + } finally { + (as = n) === Qa && gi(); + } + } + function Vs(t, e) { + (t.finishedWork = null), (t.finishedExpirationTime = 0); + var n = t.timeoutHandle; + if ((-1 !== n && ((t.timeoutHandle = -1), Tr(n)), null !== us)) + for (n = us.return; null !== n; ) { + var r = n; + switch (r.tag) { + case 1: + var i = r.type.childContextTypes; + null != i && Fr(); + break; + case 3: + so(), Vr(); + break; + case 5: + lo(r); + break; + case 4: + so(); + break; + case 13: + case 19: + Mr(po); + break; + case 10: + ki(r); + } + n = n.return; + } + (ss = t), + (us = ou(t.current, null)), + (ls = e), + (cs = es), + (ds = fs = 1073741823), + (hs = null), + (ps = !1); + } + function Bs(t, e, n) { + if ((as & (Ja | ts)) !== Qa) throw a(Error(327)); + if (t.firstPendingTime < e) return null; + if (n && t.finishedExpirationTime === e) return qs.bind(null, t); + if ((Xs(), t !== ss || e !== ls)) Vs(t, e); + else if (cs === is) + if (ps) Vs(t, e); + else { + var r = t.lastPendingTime; + if (r < e) return Bs.bind(null, t, r); + } + if (null !== us) { + (r = as), (as |= Ja); + var i = $a.current; + if ((null === i && (i = Zo), ($a.current = Zo), n)) { + if (1073741823 !== e) { + var o = Os(); + if (o < e) + return (as = r), Si(), ($a.current = i), Bs.bind(null, t, o); + } + } else Cs = 0; + for (;;) + try { + if (n) for (; null !== us; ) us = Hs(us); + else for (; null !== us && !Yr(); ) us = Hs(us); + break; + } catch (n) { + if ((Si(), Bo(), null === (o = us) || null === o.return)) + throw (Vs(t, e), (as = r), n); + t: { + var s = t, + u = o.return, + l = o, + c = n, + f = ls; + if ( + ((l.effectTag |= 1024), + (l.firstEffect = l.lastEffect = null), + null !== c && + 'object' == typeof c && + 'function' == typeof c.then) + ) { + var d = c, + h = 0 != (po.current & fo); + c = u; + do { + var p; + if ( + ((p = 13 === c.tag) && + (null !== c.memoizedState + ? (p = !1) + : (p = + void 0 !== (p = c.memoizedProps).fallback && + (!0 !== p.unstable_avoidThisFallback || !h))), + p) + ) { + if ( + (null === (u = c.updateQueue) + ? ((u = new Set()).add(d), (c.updateQueue = u)) + : u.add(d), + 0 == (2 & c.mode)) + ) { + (c.effectTag |= 64), + (l.effectTag &= -1957), + 1 === l.tag && + (null === l.alternate + ? (l.tag = 17) + : (((f = Li(1073741823, null)).tag = 2), + Di(l, f))), + (l.expirationTime = 1073741823); + break t; + } + (l = s), + (s = f), + null === (h = l.pingCache) + ? ((h = l.pingCache = new qa()), + (u = new Set()), + h.set(d, u)) + : void 0 === (u = h.get(d)) && + ((u = new Set()), h.set(d, u)), + u.has(s) || + (u.add(s), + (l = Qs.bind(null, l, d, s)), + d.then(l, l)), + (c.effectTag |= 2048), + (c.expirationTime = f); + break t; } - t.pie.sort(n || null); - }), - (r.prototype.updateRadius = function() { - var t = this, - e = t.config, - n = e.gauge_width || e.donut_width, - r = - t.filterTargetsToShow(t.data.targets).length * - t.config.gauge_arcs_minWidth; - (t.radiusExpanded = - (Math.min(t.arcWidth, t.arcHeight) / 2) * - (t.hasType('gauge') ? 0.85 : 1)), - (t.radius = 0.95 * t.radiusExpanded), - (t.innerRadiusRatio = n - ? (t.radius - n) / t.radius - : 0.6), - (t.innerRadius = - t.hasType('donut') || t.hasType('gauge') - ? t.radius * t.innerRadiusRatio - : 0), - (t.gaugeArcWidth = - n || - (r <= t.radius - t.innerRadius - ? t.radius - t.innerRadius - : r <= t.radius - ? r - : t.radius)); - }), - (r.prototype.getPadAngle = function() { - return this.hasType('pie') - ? this.config.pie_padAngle || 0 - : (this.hasType('donut') && this.config.donut_padAngle) || - 0; - }), - (r.prototype.updateArc = function() { - var t = this; - (t.svgArc = t.getSvgArc()), - (t.svgArcExpanded = t.getSvgArcExpanded()), - (t.svgArcExpandedSub = t.getSvgArcExpanded(0.98)); - }), - (r.prototype.updateAngle = function(t) { - var e, - n, - r, - i, - o = this, - a = o.config, - s = !1, - u = 0; - return a - ? (o - .pie(o.filterTargetsToShow(o.data.targets)) - .forEach(function(e) { - s || - e.data.id !== t.data.id || - ((s = !0), ((t = e).index = u)), - u++; - }), - isNaN(t.startAngle) && (t.startAngle = 0), - isNaN(t.endAngle) && (t.endAngle = t.startAngle), - o.isGaugeType(t.data) && - ((e = a.gauge_min), - (n = a.gauge_max), - (r = - (Math.PI * (a.gauge_fullCircle ? 2 : 1)) / (n - e)), - (i = - t.value < e - ? 0 - : t.value < n - ? t.value - e - : n - e), - (t.startAngle = a.gauge_startingAngle), - (t.endAngle = t.startAngle + r * i)), - s ? t : null) - : null; - }), - (r.prototype.getSvgArc = function() { - var t = this, - e = t.hasType('gauge'), - n = - t.gaugeArcWidth / - t.filterTargetsToShow(t.data.targets).length, - r = t.d3 - .arc() - .outerRadius(function(r) { - return e ? t.radius - n * r.index : t.radius; - }) - .innerRadius(function(r) { - return e - ? t.radius - n * (r.index + 1) - : t.innerRadius; - }), - i = function(e, n) { - var i; - return n - ? r(e) - : (i = t.updateAngle(e)) - ? r(i) - : 'M 0 0'; - }; - return (i.centroid = r.centroid), i; - }), - (r.prototype.getSvgArcExpanded = function(t) { - t = t || 1; - var e = this, - n = e.hasType('gauge'), - r = - e.gaugeArcWidth / - e.filterTargetsToShow(e.data.targets).length, - i = Math.min( - e.radiusExpanded * t - e.radius, - 0.8 * r - 100 * (1 - t) - ), - o = e.d3 - .arc() - .outerRadius(function(o) { - return n - ? e.radius - r * o.index + i - : e.radiusExpanded * t; - }) - .innerRadius(function(t) { - return n - ? e.radius - r * (t.index + 1) - : e.innerRadius; - }); - return function(t) { - var n = e.updateAngle(t); - return n ? o(n) : 'M 0 0'; - }; - }), - (r.prototype.getArc = function(t, e, n) { - return n || this.isArcType(t.data) - ? this.svgArc(t, e) - : 'M 0 0'; - }), - (r.prototype.transformForArcLabel = function(t) { - var e, - n, - r, - i, - o, - a = this, - s = a.config, - u = a.updateAngle(t), - l = '', - c = a.hasType('gauge'); - if (u && !c) - (e = this.svgArc.centroid(u)), - (n = isNaN(e[0]) ? 0 : e[0]), - (r = isNaN(e[1]) ? 0 : e[1]), - (i = Math.sqrt(n * n + r * r)), - (l = - 'translate(' + - n * - (o = - a.hasType('donut') && s.donut_label_ratio - ? p(s.donut_label_ratio) - ? s.donut_label_ratio(t, a.radius, i) - : s.donut_label_ratio - : a.hasType('pie') && s.pie_label_ratio - ? p(s.pie_label_ratio) - ? s.pie_label_ratio(t, a.radius, i) - : s.pie_label_ratio - : a.radius && i - ? ((36 / a.radius > 0.375 - ? 1.175 - 36 / a.radius - : 0.8) * - a.radius) / - i - : 0) + - ',' + - r * o + - ')'); + c = c.return; + } while (null !== c); + c = Error( + (ce(l.type) || 'A React component') + + ' suspended while rendering, but no fallback UI was specified.\n\nAdd a component higher in the tree to provide a loading indicator or placeholder to display.' + + fe(l) + ); + } + cs !== os && (cs = ns), (c = ja(c, l)), (l = u); + do { + switch (l.tag) { + case 3: + (l.effectTag |= 2048), + (l.expirationTime = f), + Ri(l, (f = Wa(l, c, f))); + break t; + case 1: + if ( + ((d = c), + (s = l.type), + (u = l.stateNode), + 0 == (64 & l.effectTag) && + ('function' == typeof s.getDerivedStateFromError || + (null !== u && + 'function' == typeof u.componentDidCatch && + (null === _s || !_s.has(u))))) + ) { + (l.effectTag |= 2048), + (l.expirationTime = f), + Ri(l, (f = Xa(l, d, f))); + break t; + } + } + l = l.return; + } while (null !== l); + } + us = Us(o); + } + if (((as = r), Si(), ($a.current = i), null !== us)) + return Bs.bind(null, t, e); + } + if ( + ((t.finishedWork = t.current.alternate), + (t.finishedExpirationTime = e), + (function(t, e) { + var n = t.firstBatch; + return ( + !!(null !== n && n._defer && n._expirationTime >= e) && + (hi(97, function() { + return n._onComplete(), null; + }), + !0) + ); + })(t, e)) + ) + return null; + switch (((ss = null), cs)) { + case es: + throw a(Error(328)); + case ns: + return (r = t.lastPendingTime) < e + ? Bs.bind(null, t, r) + : n + ? qs.bind(null, t) + : (Vs(t, e), pi(Bs.bind(null, t, e)), null); + case rs: + return 1073741823 === fs && !n && 10 < (n = gs + ms - li()) + ? ps + ? (Vs(t, e), Bs.bind(null, t, e)) + : (r = t.lastPendingTime) < e + ? Bs.bind(null, t, r) + : ((t.timeoutHandle = Ar(qs.bind(null, t), n)), null) + : qs.bind(null, t); + case is: + if (!n) { + if (ps) return Vs(t, e), Bs.bind(null, t, e); + if ((n = t.lastPendingTime) < e) return Bs.bind(null, t, n); + if ( + (1073741823 !== ds + ? (n = 10 * (1073741821 - ds) - li()) + : 1073741823 === fs + ? (n = 0) + : ((n = 10 * (1073741821 - fs) - 5e3), + 0 > (n = (r = li()) - n) && (n = 0), + (e = 10 * (1073741821 - e) - r) < + (n = + (120 > n + ? 120 + : 480 > n + ? 480 + : 1080 > n + ? 1080 + : 1920 > n + ? 1920 + : 3e3 > n + ? 3e3 + : 4320 > n + ? 4320 + : 1960 * Ya(n / 1960)) - n) && (n = e)), + 10 < n) + ) + return (t.timeoutHandle = Ar(qs.bind(null, t), n)), null; + } + return qs.bind(null, t); + case os: + return !n && + 1073741823 !== fs && + null !== hs && + ((r = fs), + 0 >= (e = 0 | (i = hs).busyMinDurationMs) + ? (e = 0) + : ((n = 0 | i.busyDelayMs), + (e = + (r = + li() - + (10 * (1073741821 - r) - (0 | i.timeoutMs || 5e3))) <= n + ? 0 + : n + e - r)), + 10 < e) + ? ((t.timeoutHandle = Ar(qs.bind(null, t), e)), null) + : qs.bind(null, t); + default: + throw a(Error(329)); + } + } + function Gs(t, e) { + t < fs && 1 < t && (fs = t), + null !== e && t < ds && 1 < t && ((ds = t), (hs = e)); + } + function Hs(t) { + var e = Js(t.alternate, t, ls); + return ( + (t.memoizedProps = t.pendingProps), + null === e && (e = Us(t)), + (Ka.current = null), + e + ); + } + function Us(t) { + us = t; + do { + var e = us.alternate; + if (((t = us.return), 0 == (1024 & us.effectTag))) { + t: { + var n = e, + r = ls, + o = (e = us).pendingProps; + switch (e.tag) { + case 2: + case 16: + break; + case 15: + case 0: + break; + case 1: + Ir(e.type) && Fr(); + break; + case 3: + so(), + Vr(), + (r = e.stateNode).pendingContext && + ((r.context = r.pendingContext), + (r.pendingContext = null)), + (null !== n && null !== n.child) || + (ua(e), (e.effectTag &= -3)), + Ca(e); + break; + case 5: + lo(e), (r = oo(io.current)); + var s = e.type; + if (null !== n && null != e.stateNode) + Oa(n, e, s, o, r), n.ref !== e.ref && (e.effectTag |= 128); + else if (o) { + var u = oo(no.current); + if (ua(e)) { + (o = void 0), (s = (n = e).stateNode); + var l = n.type, + c = n.memoizedProps; + switch (((s[D] = n), (s[R] = c), l)) { + case 'iframe': + case 'object': + case 'embed': + Rn('load', s); + break; + case 'video': + case 'audio': + for (var f = 0; f < nt.length; f++) Rn(nt[f], s); + break; + case 'source': + Rn('error', s); + break; + case 'img': + case 'image': + case 'link': + Rn('error', s), Rn('load', s); + break; + case 'form': + Rn('reset', s), Rn('submit', s); + break; + case 'details': + Rn('toggle', s); + break; + case 'input': + Se(s, c), Rn('invalid', s), _r(r, 'onChange'); + break; + case 'select': + (s._wrapperState = { wasMultiple: !!c.multiple }), + Rn('invalid', s), + _r(r, 'onChange'); + break; + case 'textarea': + ir(s, c), Rn('invalid', s), _r(r, 'onChange'); + } + for (o in (yr(l, c), (f = null), c)) + c.hasOwnProperty(o) && + ((u = c[o]), + 'children' === o + ? 'string' == typeof u + ? s.textContent !== u && (f = ['children', u]) + : 'number' == typeof u && + s.textContent !== '' + u && + (f = ['children', '' + u]) + : h.hasOwnProperty(o) && null != u && _r(r, o)); + switch (l) { + case 'input': + Ut(s), Ae(s, c, !0); + break; + case 'textarea': + Ut(s), ar(s); + break; + case 'select': + case 'option': + break; + default: + 'function' == typeof c.onClick && (s.onclick = xr); + } + (r = f), (n.updateQueue = r), null !== r && Aa(e); + } else { + (c = s), + (n = o), + (l = e), + (f = 9 === r.nodeType ? r : r.ownerDocument), + u === sr.html && (u = ur(c)), + u === sr.html + ? 'script' === c + ? (((c = f.createElement('div')).innerHTML = + ''), + (f = c.removeChild(c.firstChild))) + : 'string' == typeof n.is + ? (f = f.createElement(c, { is: n.is })) + : ((f = f.createElement(c)), + 'select' === c && + ((c = f), + n.multiple + ? (c.multiple = !0) + : n.size && (c.size = n.size))) + : (f = f.createElementNS(u, c)), + ((c = f)[D] = l), + (c[R] = n), + Ta((n = c), e, !1, !1), + (l = n); + var d = r, + p = br(s, o); + switch (s) { + case 'iframe': + case 'object': + case 'embed': + Rn('load', l), (r = o); + break; + case 'video': + case 'audio': + for (r = 0; r < nt.length; r++) Rn(nt[r], l); + r = o; + break; + case 'source': + Rn('error', l), (r = o); + break; + case 'img': + case 'image': + case 'link': + Rn('error', l), Rn('load', l), (r = o); + break; + case 'form': + Rn('reset', l), Rn('submit', l), (r = o); + break; + case 'details': + Rn('toggle', l), (r = o); + break; + case 'input': + Se(l, o), + (r = we(l, o)), + Rn('invalid', l), + _r(d, 'onChange'); + break; + case 'option': + r = er(l, o); + break; + case 'select': + (l._wrapperState = { wasMultiple: !!o.multiple }), + (r = i({}, o, { value: void 0 })), + Rn('invalid', l), + _r(d, 'onChange'); + break; + case 'textarea': + ir(l, o), + (r = rr(l, o)), + Rn('invalid', l), + _r(d, 'onChange'); + break; + default: + r = o; + } + yr(s, r), (c = void 0), (f = s), (u = l); + var g = r; + for (c in g) + if (g.hasOwnProperty(c)) { + var m = g[c]; + 'style' === c + ? mr(u, m) + : 'dangerouslySetInnerHTML' === c + ? null != (m = m ? m.__html : void 0) && fr(u, m) + : 'children' === c + ? 'string' == typeof m + ? ('textarea' !== f || '' !== m) && dr(u, m) + : 'number' == typeof m && dr(u, '' + m) + : 'suppressContentEditableWarning' !== c && + 'suppressHydrationWarning' !== c && + 'autoFocus' !== c && + (h.hasOwnProperty(c) + ? null != m && _r(d, c) + : null != m && _e(u, c, m, p)); + } + switch (s) { + case 'input': + Ut(l), Ae(l, o, !1); + break; + case 'textarea': + Ut(l), ar(l); + break; + case 'option': + null != o.value && + l.setAttribute('value', '' + xe(o.value)); + break; + case 'select': + (r = l), + (l = o), + (r.multiple = !!l.multiple), + null != (c = l.value) + ? nr(r, !!l.multiple, c, !1) + : null != l.defaultValue && + nr(r, !!l.multiple, l.defaultValue, !0); + break; + default: + 'function' == typeof r.onClick && (l.onclick = xr); + } + Er(s, o) && Aa(e), (e.stateNode = n); + } + null !== e.ref && (e.effectTag |= 128); + } else if (null === e.stateNode) throw a(Error(166)); + break; + case 6: + if (n && null != e.stateNode) Pa(n, e, n.memoizedProps, o); + else { + if ('string' != typeof o && null === e.stateNode) + throw a(Error(166)); + (n = oo(io.current)), + oo(no.current), + ua(e) + ? ((r = e.stateNode), + (n = e.memoizedProps), + (r[D] = e), + r.nodeValue !== n && Aa(e)) + : ((r = e), + ((n = (9 === n.nodeType + ? n + : n.ownerDocument + ).createTextNode(o))[D] = e), + (r.stateNode = n)); + } + break; + case 11: + break; + case 13: + if ( + (Mr(po), (o = e.memoizedState), 0 != (64 & e.effectTag)) + ) { + e.expirationTime = r; + break t; + } + (r = null !== o), + (o = !1), + null === n + ? ua(e) + : ((o = null !== (s = n.memoizedState)), + r || + null === s || + (null !== (s = n.child.sibling) && + (null !== (l = e.firstEffect) + ? ((e.firstEffect = s), (s.nextEffect = l)) + : ((e.firstEffect = e.lastEffect = s), + (s.nextEffect = null)), + (s.effectTag = 8)))), + r && + !o && + 0 != (2 & e.mode) && + ((null === n && + !0 !== e.memoizedProps.unstable_avoidThisFallback) || + 0 != (po.current & fo) + ? cs === es && (cs = rs) + : (cs !== es && cs !== rs) || (cs = is)), + (r || o) && (e.effectTag |= 4); + break; + case 7: + case 8: + case 12: + break; + case 4: + so(), Ca(e); + break; + case 10: + ki(e); + break; + case 9: + case 14: + break; + case 17: + Ir(e.type) && Fr(); + break; + case 18: + break; + case 19: + if ((Mr(po), null === (o = e.memoizedState))) break; + if ( + ((s = 0 != (64 & e.effectTag)), null === (l = o.rendering)) + ) { + if (s) Ma(o, !1); else if ( - u && - c && - a.filterTargetsToShow(a.data.targets).length > 1 - ) { - var f = Math.sin(u.endAngle - Math.PI / 2); - l = - 'translate(' + - (n = - Math.cos(u.endAngle - Math.PI / 2) * - (a.radiusExpanded + 25)) + - ',' + - (r = - f * (a.radiusExpanded + 15 - Math.abs(10 * f)) + 3) + - ')'; + cs !== es || + (null !== n && 0 != (64 & n.effectTag)) + ) + for (n = e.child; null !== n; ) { + if (null !== (l = go(n))) { + for ( + e.effectTag |= 64, + Ma(o, !1), + null !== (n = l.updateQueue) && + ((e.updateQueue = n), (e.effectTag |= 4)), + e.firstEffect = e.lastEffect = null, + n = e.child; + null !== n; + + ) + (s = r), + ((o = n).effectTag &= 2), + (o.nextEffect = null), + (o.firstEffect = null), + (o.lastEffect = null), + null === (l = o.alternate) + ? ((o.childExpirationTime = 0), + (o.expirationTime = s), + (o.child = null), + (o.memoizedProps = null), + (o.memoizedState = null), + (o.updateQueue = null), + (o.dependencies = null)) + : ((o.childExpirationTime = + l.childExpirationTime), + (o.expirationTime = l.expirationTime), + (o.child = l.child), + (o.memoizedProps = l.memoizedProps), + (o.memoizedState = l.memoizedState), + (o.updateQueue = l.updateQueue), + (s = l.dependencies), + (o.dependencies = + null === s + ? null + : { + expirationTime: s.expirationTime, + firstContext: s.firstContext, + responders: s.responders + })), + (n = n.sibling); + Lr(po, (po.current & co) | ho), (e = e.child); + break t; + } + n = n.sibling; + } + } else { + if (!s) + if (null !== (n = go(l))) { + if ( + ((e.effectTag |= 64), + (s = !0), + Ma(o, !0), + null === o.tail && 'hidden' === o.tailMode) + ) { + null !== (r = n.updateQueue) && + ((e.updateQueue = r), (e.effectTag |= 4)), + null !== (e = e.lastEffect = o.lastEffect) && + (e.nextEffect = null); + break; + } + } else + li() > o.tailExpiration && + 1 < r && + ((e.effectTag |= 64), + (s = !0), + Ma(o, !1), + (e.expirationTime = e.childExpirationTime = r - 1)); + o.isBackwards + ? ((l.sibling = e.child), (e.child = l)) + : (null !== (r = o.last) + ? (r.sibling = l) + : (e.child = l), + (o.last = l)); + } + if (null !== o.tail) { + 0 === o.tailExpiration && (o.tailExpiration = li() + 500), + (r = o.tail), + (o.rendering = r), + (o.tail = r.sibling), + (o.lastEffect = e.lastEffect), + (r.sibling = null), + (n = po.current), + Lr(po, (n = s ? (n & co) | ho : n & co)), + (e = r); + break t; + } + break; + case 20: + break; + default: + throw a(Error(156)); + } + e = null; + } + if (((r = us), 1 === ls || 1 !== r.childExpirationTime)) { + for (n = 0, o = r.child; null !== o; ) + (s = o.expirationTime) > n && (n = s), + (l = o.childExpirationTime) > n && (n = l), + (o = o.sibling); + r.childExpirationTime = n; + } + if (null !== e) return e; + null !== t && + 0 == (1024 & t.effectTag) && + (null === t.firstEffect && (t.firstEffect = us.firstEffect), + null !== us.lastEffect && + (null !== t.lastEffect && + (t.lastEffect.nextEffect = us.firstEffect), + (t.lastEffect = us.lastEffect)), + 1 < us.effectTag && + (null !== t.lastEffect + ? (t.lastEffect.nextEffect = us) + : (t.firstEffect = us), + (t.lastEffect = us))); + } else { + if (null !== (e = La(us))) return (e.effectTag &= 1023), e; + null !== t && + ((t.firstEffect = t.lastEffect = null), (t.effectTag |= 1024)); + } + if (null !== (e = us.sibling)) return e; + us = t; + } while (null !== us); + return cs === es && (cs = os), null; + } + function qs(t) { + var e = ci(); + return ( + di(99, Ws.bind(null, t, e)), + null !== ws && + hi(97, function() { + return Xs(), null; + }), + null + ); + } + function Ws(t, e) { + if ((Xs(), (as & (Ja | ts)) !== Qa)) throw a(Error(327)); + var n = t.finishedWork, + r = t.finishedExpirationTime; + if (null === n) return null; + if ( + ((t.finishedWork = null), + (t.finishedExpirationTime = 0), + n === t.current) + ) + throw a(Error(177)); + (t.callbackNode = null), (t.callbackExpirationTime = 0); + var i = n.expirationTime, + o = n.childExpirationTime; + if ( + ((i = o > i ? o : i), + (t.firstPendingTime = i), + i < t.lastPendingTime && (t.lastPendingTime = i), + t === ss && ((us = ss = null), (ls = 0)), + 1 < n.effectTag + ? null !== n.lastEffect + ? ((n.lastEffect.nextEffect = n), (i = n.firstEffect)) + : (i = n) + : (i = n.firstEffect), + null !== i) + ) { + (o = as), (as |= ts), (Ka.current = null), (wr = Dn); + var s = qn(); + if (Wn(s)) { + if ('selectionStart' in s) + var u = { start: s.selectionStart, end: s.selectionEnd }; + else + t: { + var l = + (u = ((u = s.ownerDocument) && u.defaultView) || window) + .getSelection && u.getSelection(); + if (l && 0 !== l.rangeCount) { + u = l.anchorNode; + var c = l.anchorOffset, + f = l.focusNode; + l = l.focusOffset; + try { + u.nodeType, f.nodeType; + } catch (t) { + u = null; + break t; + } + var d = 0, + h = -1, + p = -1, + g = 0, + m = 0, + v = s, + y = null; + e: for (;;) { + for ( + var b; + v !== u || (0 !== c && 3 !== v.nodeType) || (h = d + c), + v !== f || (0 !== l && 3 !== v.nodeType) || (p = d + l), + 3 === v.nodeType && (d += v.nodeValue.length), + null !== (b = v.firstChild); + + ) + (y = v), (v = b); + for (;;) { + if (v === s) break e; + if ( + (y === u && ++g === c && (h = d), + y === f && ++m === l && (p = d), + null !== (b = v.nextSibling)) + ) + break; + y = (v = y).parentNode; } - return l; - }), - (r.prototype.getArcRatio = function(t) { - return this.getRatio('arc', t); - }), - (r.prototype.convertToArcData = function(t) { - return this.addName({ - id: t.data.id, - value: t.value, - ratio: this.getRatio('arc', t), - index: t.index - }); - }), - (r.prototype.textForArcLabel = function(t) { - var e, - n, - r, - i, - o, - a = this; - return a.shouldShowArcLabel() - ? ((n = (e = a.updateAngle(t)) ? e.value : null), - (r = a.getRatio('arc', e)), - (i = t.data.id), - a.hasType('gauge') || a.meetsArcLabelThreshold(r) - ? (o = a.getArcLabelFormat()) - ? o(n, r, i) - : a.defaultArcValueFormat(n, r) - : '') - : ''; - }), - (r.prototype.textForGaugeMinMax = function(t, e) { - var n = this.getGaugeLabelExtents(); - return n ? n(t, e) : t; - }), - (r.prototype.expandArc = function(t) { - var e, - n = this; - n.transiting - ? (e = window.setInterval(function() { - n.transiting || - (window.clearInterval(e), - n.legend - .selectAll('.c3-legend-item-focused') - .size() > 0 && n.expandArc(t)); - }, 10)) - : ((t = n.mapToTargetIds(t)), - n.svg - .selectAll(n.selectorTargets(t, '.' + w.chartArc)) - .each(function(t) { - n.shouldExpand(t.data.id) && - n.d3 - .select(this) - .selectAll('path') - .transition() - .duration(n.expandDuration(t.data.id)) - .attr('d', n.svgArcExpanded) - .transition() - .duration(2 * n.expandDuration(t.data.id)) - .attr('d', n.svgArcExpandedSub) - .each(function(t) { - n.isDonutType(t.data); - }); - })); - }), - (r.prototype.unexpandArc = function(t) { - var e = this; - e.transiting || - ((t = e.mapToTargetIds(t)), - e.svg - .selectAll(e.selectorTargets(t, '.' + w.chartArc)) - .selectAll('path') - .transition() - .duration(function(t) { - return e.expandDuration(t.data.id); - }) - .attr('d', e.svgArc), - e.svg.selectAll('.' + w.arc)); - }), - (r.prototype.expandDuration = function(t) { - var e = this.config; - return this.isDonutType(t) - ? e.donut_expand_duration - : this.isGaugeType(t) - ? e.gauge_expand_duration - : this.isPieType(t) - ? e.pie_expand_duration - : 50; - }), - (r.prototype.shouldExpand = function(t) { - var e = this.config; - return ( - (this.isDonutType(t) && e.donut_expand) || - (this.isGaugeType(t) && e.gauge_expand) || - (this.isPieType(t) && e.pie_expand) - ); - }), - (r.prototype.shouldShowArcLabel = function() { - var t = this.config, - e = !0; - return ( - this.hasType('donut') - ? (e = t.donut_label_show) - : this.hasType('pie') && (e = t.pie_label_show), - e - ); - }), - (r.prototype.meetsArcLabelThreshold = function(t) { - var e = this.config; - return ( - t >= - (this.hasType('donut') - ? e.donut_label_threshold - : e.pie_label_threshold) - ); - }), - (r.prototype.getArcLabelFormat = function() { - var t = this.config, - e = t.pie_label_format; - return ( - this.hasType('gauge') - ? (e = t.gauge_label_format) - : this.hasType('donut') && (e = t.donut_label_format), - e - ); - }), - (r.prototype.getGaugeLabelExtents = function() { - return this.config.gauge_label_extents; - }), - (r.prototype.getArcTitle = function() { - return this.hasType('donut') ? this.config.donut_title : ''; - }), - (r.prototype.updateTargetsForArc = function(t) { - var e, - n = this, - r = n.main, - i = n.classChartArc.bind(n), - o = n.classArcs.bind(n), - a = n.classFocus.bind(n); - (e = r - .select('.' + w.chartArcs) - .selectAll('.' + w.chartArc) - .data(n.pie(t)) - .attr('class', function(t) { - return i(t) + a(t.data); - }) - .enter() - .append('g') - .attr('class', i)) - .append('g') - .attr('class', o), - e - .append('text') - .attr('dy', n.hasType('gauge') ? '-.1em' : '.35em') - .style('opacity', 0) - .style('text-anchor', 'middle') - .style('pointer-events', 'none'); - }), - (r.prototype.initArc = function() { - var t = this; - (t.arcs = t.main - .select('.' + w.chart) - .append('g') - .attr('class', w.chartArcs) - .attr('transform', t.getTranslate('arc'))), - t.arcs - .append('text') - .attr('class', w.chartArcsTitle) - .style('text-anchor', 'middle') - .text(t.getArcTitle()); + v = b; + } + u = -1 === h || -1 === p ? null : { start: h, end: p }; + } else u = null; + } + u = u || { start: 0, end: 0 }; + } else u = null; + (Sr = { focusedElem: s, selectionRange: u }), (Dn = !1), (vs = i); + do { + try { + for (; null !== vs; ) { + if (0 != (256 & vs.effectTag)) { + var _ = vs.alternate; + switch ((s = vs).tag) { + case 0: + case 11: + case 15: + Na(vo, mo, s); + break; + case 1: + if (256 & s.effectTag && null !== _) { + var x = _.memoizedProps, + w = _.memoizedState, + S = s.stateNode, + E = S.getSnapshotBeforeUpdate( + s.elementType === s.type ? x : yi(s.type, x), + w + ); + S.__reactInternalSnapshotBeforeUpdate = E; + } + break; + case 3: + case 5: + case 6: + case 4: + case 17: + break; + default: + throw a(Error(163)); + } + } + vs = vs.nextEffect; + } + } catch (t) { + if (null === vs) throw a(Error(330)); + Ks(vs, t), (vs = vs.nextEffect); + } + } while (null !== vs); + vs = i; + do { + try { + for (_ = e; null !== vs; ) { + var k = vs.effectTag; + if ((16 & k && dr(vs.stateNode, ''), 128 & k)) { + var A = vs.alternate; + if (null !== A) { + var T = A.ref; + null !== T && + ('function' == typeof T ? T(null) : (T.current = null)); + } + } + switch (14 & k) { + case 2: + Ba(vs), (vs.effectTag &= -3); + break; + case 6: + Ba(vs), (vs.effectTag &= -3), Ha(vs.alternate, vs); + break; + case 4: + Ha(vs.alternate, vs); + break; + case 8: + Ga((x = vs), _), + (x.return = null), + (x.child = null), + (x.memoizedState = null), + (x.updateQueue = null), + (x.dependencies = null); + var C = x.alternate; + null !== C && + ((C.return = null), + (C.child = null), + (C.memoizedState = null), + (C.updateQueue = null), + (C.dependencies = null)); + } + vs = vs.nextEffect; + } + } catch (t) { + if (null === vs) throw a(Error(330)); + Ks(vs, t), (vs = vs.nextEffect); + } + } while (null !== vs); + if ( + ((T = Sr), + (A = qn()), + (k = T.focusedElem), + (_ = T.selectionRange), + A !== k && + k && + k.ownerDocument && + (function t(e, n) { + return ( + !(!e || !n) && + (e === n || + ((!e || 3 !== e.nodeType) && + (n && 3 === n.nodeType + ? t(e, n.parentNode) + : 'contains' in e + ? e.contains(n) + : !!e.compareDocumentPosition && + !!(16 & e.compareDocumentPosition(n))))) + ); + })(k.ownerDocument.documentElement, k)) + ) { + null !== _ && + Wn(k) && + ((A = _.start), + void 0 === (T = _.end) && (T = A), + 'selectionStart' in k + ? ((k.selectionStart = A), + (k.selectionEnd = Math.min(T, k.value.length))) + : (T = + ((A = k.ownerDocument || document) && A.defaultView) || + window).getSelection && + ((T = T.getSelection()), + (x = k.textContent.length), + (C = Math.min(_.start, x)), + (_ = void 0 === _.end ? C : Math.min(_.end, x)), + !T.extend && C > _ && ((x = _), (_ = C), (C = x)), + (x = Un(k, C)), + (w = Un(k, _)), + x && + w && + (1 !== T.rangeCount || + T.anchorNode !== x.node || + T.anchorOffset !== x.offset || + T.focusNode !== w.node || + T.focusOffset !== w.offset) && + ((A = A.createRange()).setStart(x.node, x.offset), + T.removeAllRanges(), + C > _ + ? (T.addRange(A), T.extend(w.node, w.offset)) + : (A.setEnd(w.node, w.offset), T.addRange(A))))), + (A = []); + for (T = k; (T = T.parentNode); ) + 1 === T.nodeType && + A.push({ element: T, left: T.scrollLeft, top: T.scrollTop }); + for ( + 'function' == typeof k.focus && k.focus(), k = 0; + k < A.length; + k++ + ) + ((T = A[k]).element.scrollLeft = T.left), + (T.element.scrollTop = T.top); + } + (Sr = null), (Dn = !!wr), (wr = null), (t.current = n), (vs = i); + do { + try { + for (k = r; null !== vs; ) { + var O = vs.effectTag; + if (36 & O) { + var P = vs.alternate; + switch (((T = k), (A = vs).tag)) { + case 0: + case 11: + case 15: + Na(_o, xo, A); + break; + case 1: + var M = A.stateNode; + if (4 & A.effectTag) + if (null === P) M.componentDidMount(); + else { + var L = + A.elementType === A.type + ? P.memoizedProps + : yi(A.type, P.memoizedProps); + M.componentDidUpdate( + L, + P.memoizedState, + M.__reactInternalSnapshotBeforeUpdate + ); + } + var j = A.updateQueue; + null !== j && Fi(0, j, M); + break; + case 3: + var D = A.updateQueue; + if (null !== D) { + if (((C = null), null !== A.child)) + switch (A.child.tag) { + case 5: + C = A.child.stateNode; + break; + case 1: + C = A.child.stateNode; + } + Fi(0, D, C); + } + break; + case 5: + var R = A.stateNode; + null === P && + 4 & A.effectTag && + ((T = R), Er(A.type, A.memoizedProps) && T.focus()); + break; + case 6: + case 4: + case 12: + break; + case 13: + case 19: + case 17: + case 20: + break; + default: + throw a(Error(163)); + } + } + if (128 & O) { + var z = vs.ref; + if (null !== z) { + var N = vs.stateNode; + switch (vs.tag) { + case 5: + var I = N; + break; + default: + I = N; + } + 'function' == typeof z ? z(I) : (z.current = I); + } + } + 512 & O && (xs = !0), (vs = vs.nextEffect); + } + } catch (t) { + if (null === vs) throw a(Error(330)); + Ks(vs, t), (vs = vs.nextEffect); + } + } while (null !== vs); + (vs = null), ii(), (as = o); + } else t.current = n; + if (xs) (xs = !1), (ws = t), (Es = r), (Ss = e); + else + for (vs = i; null !== vs; ) + (e = vs.nextEffect), (vs.nextEffect = null), (vs = e); + if ( + (0 !== (e = t.firstPendingTime) + ? Ds(t, (O = vi((O = Os()), e)), e) + : (_s = null), + 'function' == typeof tu && tu(n.stateNode, r), + 1073741823 === e + ? t === Ts + ? As++ + : ((As = 0), (Ts = t)) + : (As = 0), + ys) + ) + throw ((ys = !1), (t = bs), (bs = null), t); + return (as & Za) !== Qa ? null : (gi(), null); + } + function Xs() { + if (null === ws) return !1; + var t = ws, + e = Es, + n = Ss; + return ( + (ws = null), + (Es = 0), + (Ss = 90), + di(97 < n ? 97 : n, Ys.bind(null, t, e)) + ); + } + function Ys(t) { + if ((as & (Ja | ts)) !== Qa) throw a(Error(331)); + var e = as; + for (as |= ts, t = t.current.firstEffect; null !== t; ) { + try { + var n = t; + if (0 != (512 & n.effectTag)) + switch (n.tag) { + case 0: + case 11: + case 15: + Na(So, mo, n), Na(mo, wo, n); + } + } catch (e) { + if (null === t) throw a(Error(330)); + Ks(t, e); + } + (n = t.nextEffect), (t.nextEffect = null), (t = n); + } + return (as = e), gi(), !0; + } + function $s(t, e, n) { + Di(t, (e = Wa(t, (e = ja(n, e)), 1073741823))), + null !== (t = js(t, 1073741823)) && Ds(t, 99, 1073741823); + } + function Ks(t, e) { + if (3 === t.tag) $s(t, t, e); + else + for (var n = t.return; null !== n; ) { + if (3 === n.tag) { + $s(n, t, e); + break; + } + if (1 === n.tag) { + var r = n.stateNode; + if ( + 'function' == typeof n.type.getDerivedStateFromError || + ('function' == typeof r.componentDidCatch && + (null === _s || !_s.has(r))) + ) { + Di(n, (t = Xa(n, (t = ja(e, t)), 1073741823))), + null !== (n = js(n, 1073741823)) && Ds(n, 99, 1073741823); + break; + } + } + n = n.return; + } + } + function Qs(t, e, n) { + var r = t.pingCache; + null !== r && r.delete(e), + ss === t && ls === n + ? cs === is || (cs === rs && 1073741823 === fs && li() - gs < ms) + ? Vs(t, ls) + : (ps = !0) + : t.lastPendingTime < n || + ((0 !== (e = t.pingTime) && e < n) || + ((t.pingTime = n), + t.finishedExpirationTime === n && + ((t.finishedExpirationTime = 0), (t.finishedWork = null)), + Ds(t, (e = vi((e = Os()), n)), n))); + } + function Zs(t, e) { + var n = t.stateNode; + null !== n && n.delete(e), + (n = vi((n = Os()), (e = Ps(n, t, null)))), + null !== (t = js(t, e)) && Ds(t, n, e); + } + var Js = void 0; + Js = function(t, e, n) { + var r = e.expirationTime; + if (null !== t) { + var i = e.pendingProps; + if (t.memoizedProps !== i || Rr.current) fa = !0; + else if (r < n) { + switch (((fa = !1), e.tag)) { + case 3: + _a(e), la(); + break; + case 5: + if ((uo(e), 4 & e.mode && 1 !== n && i.hidden)) + return (e.expirationTime = e.childExpirationTime = 1), null; + break; + case 1: + Ir(e.type) && Hr(e); + break; + case 4: + ao(e, e.stateNode.containerInfo); + break; + case 10: + Ei(e, e.memoizedProps.value); + break; + case 13: + if (null !== e.memoizedState) + return 0 !== (r = e.child.childExpirationTime) && r >= n + ? wa(t, e, n) + : (Lr(po, po.current & co), + null !== (e = ka(t, e, n)) ? e.sibling : null); + Lr(po, po.current & co); + break; + case 19: + if ( + ((r = e.childExpirationTime >= n), 0 != (64 & t.effectTag)) + ) { + if (r) return Ea(t, e, n); + e.effectTag |= 64; + } + if ( + (null !== (i = e.memoizedState) && + ((i.rendering = null), (i.tail = null)), + Lr(po, po.current), + !r) + ) + return null; + } + return ka(t, e, n); + } + } else fa = !1; + switch (((e.expirationTime = 0), e.tag)) { + case 2: + if ( + ((r = e.type), + null !== t && + ((t.alternate = null), + (e.alternate = null), + (e.effectTag |= 2)), + (t = e.pendingProps), + (i = Nr(e, Dr.current)), + Ti(e, n), + (i = Vo(null, e, r, t, i, n)), + (e.effectTag |= 1), + 'object' == typeof i && + null !== i && + 'function' == typeof i.render && + void 0 === i.$$typeof) + ) { + if (((e.tag = 1), Bo(), Ir(r))) { + var o = !0; + Hr(e); + } else o = !1; + e.memoizedState = + null !== i.state && void 0 !== i.state ? i.state : null; + var s = r.getDerivedStateFromProps; + 'function' == typeof s && Hi(e, r, s, t), + (i.updater = Ui), + (e.stateNode = i), + (i._reactInternalFiber = e), + Yi(e, r, t, n), + (e = ba(null, e, r, !0, o, n)); + } else (e.tag = 0), da(null, e, i, n), (e = e.child); + return e; + case 16: + switch ( + ((i = e.elementType), + null !== t && + ((t.alternate = null), + (e.alternate = null), + (e.effectTag |= 2)), + (t = e.pendingProps), + (i = (function(t) { + var e = t._result; + switch (t._status) { + case 1: + return e; + case 2: + case 0: + throw e; + default: + switch ( + ((t._status = 0), + (e = (e = t._ctor)()).then( + function(e) { + 0 === t._status && + ((e = e.default), (t._status = 1), (t._result = e)); + }, + function(e) { + 0 === t._status && ((t._status = 2), (t._result = e)); + } + ), + t._status) + ) { + case 1: + return t._result; + case 2: + throw t._result; + } + throw ((t._result = e), e); + } + })(i)), + (e.type = i), + (o = e.tag = (function(t) { + if ('function' == typeof t) return iu(t) ? 1 : 0; + if (null != t) { + if ((t = t.$$typeof) === re) return 11; + if (t === ae) return 14; + } + return 2; + })(i)), + (t = yi(i, t)), + o) + ) { + case 0: + e = va(null, e, i, t, n); + break; + case 1: + e = ya(null, e, i, t, n); + break; + case 11: + e = ha(null, e, i, t, n); + break; + case 14: + e = pa(null, e, i, yi(i.type, t), r, n); + break; + default: + throw a(Error(306), i, ''); + } + return e; + case 0: + return ( + (r = e.type), + (i = e.pendingProps), + va(t, e, r, (i = e.elementType === r ? i : yi(r, i)), n) + ); + case 1: + return ( + (r = e.type), + (i = e.pendingProps), + ya(t, e, r, (i = e.elementType === r ? i : yi(r, i)), n) + ); + case 3: + if ((_a(e), null === (r = e.updateQueue))) throw a(Error(282)); + return ( + (i = null !== (i = e.memoizedState) ? i.element : null), + Ii(e, r, e.pendingProps, null, n), + (r = e.memoizedState.element) === i + ? (la(), (e = ka(t, e, n))) + : ((i = e.stateNode), + (i = (null === t || null === t.child) && i.hydrate) && + ((na = Cr(e.stateNode.containerInfo.firstChild)), + (ea = e), + (i = ra = !0)), + i + ? ((e.effectTag |= 2), (e.child = to(e, null, r, n))) + : (da(t, e, r, n), la()), + (e = e.child)), + e + ); + case 5: + return ( + uo(e), + null === t && aa(e), + (r = e.type), + (i = e.pendingProps), + (o = null !== t ? t.memoizedProps : null), + (s = i.children), + kr(r, i) + ? (s = null) + : null !== o && kr(r, o) && (e.effectTag |= 16), + ma(t, e), + 4 & e.mode && 1 !== n && i.hidden + ? ((e.expirationTime = e.childExpirationTime = 1), (e = null)) + : (da(t, e, s, n), (e = e.child)), + e + ); + case 6: + return null === t && aa(e), null; + case 13: + return wa(t, e, n); + case 4: + return ( + ao(e, e.stateNode.containerInfo), + (r = e.pendingProps), + null === t ? (e.child = Ji(e, null, r, n)) : da(t, e, r, n), + e.child + ); + case 11: + return ( + (r = e.type), + (i = e.pendingProps), + ha(t, e, r, (i = e.elementType === r ? i : yi(r, i)), n) + ); + case 7: + return da(t, e, e.pendingProps, n), e.child; + case 8: + case 12: + return da(t, e, e.pendingProps.children, n), e.child; + case 10: + t: { + if ( + ((r = e.type._context), + (i = e.pendingProps), + (s = e.memoizedProps), + Ei(e, (o = i.value)), + null !== s) + ) { + var u = s.value; + if ( + 0 === + (o = en(u, o) + ? 0 + : 0 | + ('function' == typeof r._calculateChangedBits + ? r._calculateChangedBits(u, o) + : 1073741823)) + ) { + if (s.children === i.children && !Rr.current) { + e = ka(t, e, n); + break t; + } + } else + for (null !== (u = e.child) && (u.return = e); null !== u; ) { + var l = u.dependencies; + if (null !== l) { + s = u.child; + for (var c = l.firstContext; null !== c; ) { + if (c.context === r && 0 != (c.observedBits & o)) { + 1 === u.tag && + (((c = Li(n, null)).tag = 2), Di(u, c)), + u.expirationTime < n && (u.expirationTime = n), + null !== (c = u.alternate) && + c.expirationTime < n && + (c.expirationTime = n), + Ai(u.return, n), + l.expirationTime < n && (l.expirationTime = n); + break; + } + c = c.next; + } + } else + s = 10 === u.tag && u.type === e.type ? null : u.child; + if (null !== s) s.return = u; + else + for (s = u; null !== s; ) { + if (s === e) { + s = null; + break; + } + if (null !== (u = s.sibling)) { + (u.return = s.return), (s = u); + break; + } + s = s.return; + } + u = s; + } + } + da(t, e, i.children, n), (e = e.child); + } + return e; + case 9: + return ( + (i = e.type), + (r = (o = e.pendingProps).children), + Ti(e, n), + (r = r((i = Ci(i, o.unstable_observedBits)))), + (e.effectTag |= 1), + da(t, e, r, n), + e.child + ); + case 14: + return ( + (o = yi((i = e.type), e.pendingProps)), + pa(t, e, i, (o = yi(i.type, o)), r, n) + ); + case 15: + return ga(t, e, e.type, e.pendingProps, r, n); + case 17: + return ( + (r = e.type), + (i = e.pendingProps), + (i = e.elementType === r ? i : yi(r, i)), + null !== t && + ((t.alternate = null), + (e.alternate = null), + (e.effectTag |= 2)), + (e.tag = 1), + Ir(r) ? ((t = !0), Hr(e)) : (t = !1), + Ti(e, n), + Wi(e, r, i), + Yi(e, r, i, n), + ba(null, e, r, !0, t, n) + ); + case 19: + return Ea(t, e, n); + } + throw a(Error(156)); + }; + var tu = null, + eu = null; + function nu(t, e, n, r) { + (this.tag = t), + (this.key = n), + (this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null), + (this.index = 0), + (this.ref = null), + (this.pendingProps = e), + (this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null), + (this.mode = r), + (this.effectTag = 0), + (this.lastEffect = this.firstEffect = this.nextEffect = null), + (this.childExpirationTime = this.expirationTime = 0), + (this.alternate = null); + } + function ru(t, e, n, r) { + return new nu(t, e, n, r); + } + function iu(t) { + return !(!(t = t.prototype) || !t.isReactComponent); + } + function ou(t, e) { + var n = t.alternate; + return ( + null === n + ? (((n = ru(t.tag, e, t.key, t.mode)).elementType = t.elementType), + (n.type = t.type), + (n.stateNode = t.stateNode), + (n.alternate = t), + (t.alternate = n)) + : ((n.pendingProps = e), + (n.effectTag = 0), + (n.nextEffect = null), + (n.firstEffect = null), + (n.lastEffect = null)), + (n.childExpirationTime = t.childExpirationTime), + (n.expirationTime = t.expirationTime), + (n.child = t.child), + (n.memoizedProps = t.memoizedProps), + (n.memoizedState = t.memoizedState), + (n.updateQueue = t.updateQueue), + (e = t.dependencies), + (n.dependencies = + null === e + ? null + : { + expirationTime: e.expirationTime, + firstContext: e.firstContext, + responders: e.responders + }), + (n.sibling = t.sibling), + (n.index = t.index), + (n.ref = t.ref), + n + ); + } + function au(t, e, n, r, i, o) { + var s = 2; + if (((r = t), 'function' == typeof t)) iu(t) && (s = 1); + else if ('string' == typeof t) s = 5; + else + t: switch (t) { + case Qt: + return su(n.children, i, o, e); + case ne: + (s = 8), (i |= 7); + break; + case Zt: + (s = 8), (i |= 1); + break; + case Jt: + return ( + ((t = ru(12, n, e, 8 | i)).elementType = Jt), + (t.type = Jt), + (t.expirationTime = o), + t + ); + case ie: + return ( + ((t = ru(13, n, e, i)).type = ie), + (t.elementType = ie), + (t.expirationTime = o), + t + ); + case oe: + return ( + ((t = ru(19, n, e, i)).elementType = oe), + (t.expirationTime = o), + t + ); + default: + if ('object' == typeof t && null !== t) + switch (t.$$typeof) { + case te: + s = 10; + break t; + case ee: + s = 9; + break t; + case re: + s = 11; + break t; + case ae: + s = 14; + break t; + case se: + (s = 16), (r = null); + break t; + } + throw a(Error(130), null == t ? t : typeof t, ''); + } + return ( + ((e = ru(s, n, e, i)).elementType = t), + (e.type = r), + (e.expirationTime = o), + e + ); + } + function su(t, e, n, r) { + return ((t = ru(7, t, r, e)).expirationTime = n), t; + } + function uu(t, e, n) { + return ((t = ru(6, t, null, e)).expirationTime = n), t; + } + function lu(t, e, n) { + return ( + ((e = ru( + 4, + null !== t.children ? t.children : [], + t.key, + e + )).expirationTime = n), + (e.stateNode = { + containerInfo: t.containerInfo, + pendingChildren: null, + implementation: t.implementation + }), + e + ); + } + function cu(t, e, n) { + (this.tag = e), + (this.current = null), + (this.containerInfo = t), + (this.pingCache = this.pendingChildren = null), + (this.finishedExpirationTime = 0), + (this.finishedWork = null), + (this.timeoutHandle = -1), + (this.pendingContext = this.context = null), + (this.hydrate = n), + (this.callbackNode = this.firstBatch = null), + (this.pingTime = this.lastPendingTime = this.firstPendingTime = this.callbackExpirationTime = 0); + } + function fu(t, e, n) { + return ( + (t = new cu(t, e, n)), + (e = ru(3, null, null, 2 === e ? 7 : 1 === e ? 3 : 0)), + (t.current = e), + (e.stateNode = t) + ); + } + function du(t, e, n, r, i, o) { + var s = e.current; + t: if (n) { + e: { + if (2 !== an((n = n._reactInternalFiber)) || 1 !== n.tag) + throw a(Error(170)); + var u = n; + do { + switch (u.tag) { + case 3: + u = u.stateNode.context; + break e; + case 1: + if (Ir(u.type)) { + u = u.stateNode.__reactInternalMemoizedMergedChildContext; + break e; + } + } + u = u.return; + } while (null !== u); + throw a(Error(171)); + } + if (1 === n.tag) { + var l = n.type; + if (Ir(l)) { + n = Gr(n, l, u); + break t; + } + } + n = u; + } else n = jr; + return ( + null === e.context ? (e.context = n) : (e.pendingContext = n), + (e = o), + ((i = Li(r, i)).payload = { element: t }), + null !== (e = void 0 === e ? null : e) && (i.callback = e), + Di(s, i), + Ls(s, r), + r + ); + } + function hu(t, e, n, r) { + var i = e.current, + o = Os(), + a = Bi.suspense; + return du(t, e, n, (i = Ps(o, i, a)), a, r); + } + function pu(t) { + if (!(t = t.current).child) return null; + switch (t.child.tag) { + case 5: + default: + return t.child.stateNode; + } + } + function gu(t) { + var e = 1073741821 - 25 * (1 + (((1073741821 - Os() + 500) / 25) | 0)); + e <= Ms && --e, + (this._expirationTime = Ms = e), + (this._root = t), + (this._callbacks = this._next = null), + (this._hasChildren = this._didComplete = !1), + (this._children = null), + (this._defer = !0); + } + function mu() { + (this._callbacks = null), + (this._didCommit = !1), + (this._onCommit = this._onCommit.bind(this)); + } + function vu(t, e, n) { + this._internalRoot = fu(t, e, n); + } + function yu(t, e) { + this._internalRoot = fu(t, 2, e); + } + function bu(t) { + return !( + !t || + (1 !== t.nodeType && + 9 !== t.nodeType && + 11 !== t.nodeType && + (8 !== t.nodeType || + ' react-mount-point-unstable ' !== t.nodeValue)) + ); + } + function _u(t, e, n, r, i) { + var o = n._reactRootContainer, + a = void 0; + if (o) { + if (((a = o._internalRoot), 'function' == typeof i)) { + var s = i; + i = function() { + var t = pu(a); + s.call(t); + }; + } + hu(e, a, t, i); + } else { + if ( + ((o = n._reactRootContainer = (function(t, e) { + if ( + (e || + (e = !( + !(e = t + ? 9 === t.nodeType + ? t.documentElement + : t.firstChild + : null) || + 1 !== e.nodeType || + !e.hasAttribute('data-reactroot') + )), + !e) + ) + for (var n; (n = t.lastChild); ) t.removeChild(n); + return new vu(t, 0, e); + })(n, r)), + (a = o._internalRoot), + 'function' == typeof i) + ) { + var u = i; + i = function() { + var t = pu(a); + u.call(t); + }; + } + Fs(function() { + hu(e, a, t, i); + }); + } + return pu(a); + } + function xu(t, e) { + var n = + 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null; + if (!bu(e)) throw a(Error(200)); + return (function(t, e, n) { + var r = + 3 < arguments.length && void 0 !== arguments[3] + ? arguments[3] + : null; + return { + $$typeof: Kt, + key: null == r ? null : '' + r, + children: t, + containerInfo: e, + implementation: n + }; + })(t, e, null, n); + } + (Tt = function(t, e, n) { + switch (e) { + case 'input': + if ((ke(t, n), (e = n.name), 'radio' === n.type && null != e)) { + for (n = t; n.parentNode; ) n = n.parentNode; + for ( + n = n.querySelectorAll( + 'input[name=' + JSON.stringify('' + e) + '][type="radio"]' + ), + e = 0; + e < n.length; + e++ + ) { + var r = n[e]; + if (r !== t && r.form === t.form) { + var i = F(r); + if (!i) throw a(Error(90)); + qt(r), ke(r, i); + } + } + } + break; + case 'textarea': + or(t, n); + break; + case 'select': + null != (e = n.value) && nr(t, !!n.multiple, e, !1); + } + }), + (gu.prototype.render = function(t) { + if (!this._defer) throw a(Error(250)); + (this._hasChildren = !0), (this._children = t); + var e = this._root._internalRoot, + n = this._expirationTime, + r = new mu(); + return du(t, e, null, n, null, r._onCommit), r; + }), + (gu.prototype.then = function(t) { + if (this._didComplete) t(); + else { + var e = this._callbacks; + null === e && (e = this._callbacks = []), e.push(t); + } + }), + (gu.prototype.commit = function() { + var t = this._root._internalRoot, + e = t.firstBatch; + if (!this._defer || null === e) throw a(Error(251)); + if (this._hasChildren) { + var n = this._expirationTime; + if (e !== this) { + this._hasChildren && + ((n = this._expirationTime = e._expirationTime), + this.render(this._children)); + for (var r = null, i = e; i !== this; ) (r = i), (i = i._next); + if (null === r) throw a(Error(251)); + (r._next = i._next), (this._next = e), (t.firstBatch = this); + } + if (((this._defer = !1), (e = n), (as & (Ja | ts)) !== Qa)) + throw a(Error(253)); + pi(Bs.bind(null, t, e)), + gi(), + (e = this._next), + (this._next = null), + null !== (e = t.firstBatch = e) && + e._hasChildren && + e.render(e._children); + } else (this._next = null), (this._defer = !1); + }), + (gu.prototype._onComplete = function() { + if (!this._didComplete) { + this._didComplete = !0; + var t = this._callbacks; + if (null !== t) for (var e = 0; e < t.length; e++) (0, t[e])(); + } + }), + (mu.prototype.then = function(t) { + if (this._didCommit) t(); + else { + var e = this._callbacks; + null === e && (e = this._callbacks = []), e.push(t); + } + }), + (mu.prototype._onCommit = function() { + if (!this._didCommit) { + this._didCommit = !0; + var t = this._callbacks; + if (null !== t) + for (var e = 0; e < t.length; e++) { + var n = t[e]; + if ('function' != typeof n) throw a(Error(191), n); + n(); + } + } + }), + (yu.prototype.render = vu.prototype.render = function(t, e) { + var n = this._internalRoot, + r = new mu(); + return ( + null !== (e = void 0 === e ? null : e) && r.then(e), + hu(t, n, null, r._onCommit), + r + ); + }), + (yu.prototype.unmount = vu.prototype.unmount = function(t) { + var e = this._internalRoot, + n = new mu(); + return ( + null !== (t = void 0 === t ? null : t) && n.then(t), + hu(null, e, null, n._onCommit), + n + ); + }), + (yu.prototype.createBatch = function() { + var t = new gu(this), + e = t._expirationTime, + n = this._internalRoot, + r = n.firstBatch; + if (null === r) (n.firstBatch = t), (t._next = null); + else { + for (n = null; null !== r && r._expirationTime >= e; ) + (n = r), (r = r._next); + (t._next = r), null !== n && (n._next = t); + } + return t; + }), + (jt = Ns), + (Dt = Is), + (Rt = zs), + (zt = function(t, e) { + var n = as; + as |= 2; + try { + return t(e); + } finally { + (as = n) === Qa && gi(); + } + }); + var wu, + Su, + Eu = { + createPortal: xu, + findDOMNode: function(t) { + if (null == t) t = null; + else if (1 !== t.nodeType) { + var e = t._reactInternalFiber; + if (void 0 === e) { + if ('function' == typeof t.render) throw a(Error(188)); + throw a(Error(268), Object.keys(t)); + } + t = null === (t = un(e)) ? null : t.stateNode; + } + return t; + }, + hydrate: function(t, e, n) { + if (!bu(e)) throw a(Error(200)); + return _u(null, t, e, !0, n); + }, + render: function(t, e, n) { + if (!bu(e)) throw a(Error(200)); + return _u(null, t, e, !1, n); + }, + unstable_renderSubtreeIntoContainer: function(t, e, n, r) { + if (!bu(n)) throw a(Error(200)); + if (null == t || void 0 === t._reactInternalFiber) + throw a(Error(38)); + return _u(t, e, n, !1, r); + }, + unmountComponentAtNode: function(t) { + if (!bu(t)) throw a(Error(40)); + return ( + !!t._reactRootContainer && + (Fs(function() { + _u(null, null, t, !1, function() { + t._reactRootContainer = null; + }); + }), + !0) + ); + }, + unstable_createPortal: function() { + return xu.apply(void 0, arguments); + }, + unstable_batchedUpdates: Ns, + unstable_interactiveUpdates: function(t, e, n, r) { + return zs(), Is(t, e, n, r); + }, + unstable_discreteUpdates: Is, + unstable_flushDiscreteUpdates: zs, + flushSync: function(t, e) { + if ((as & (Ja | ts)) !== Qa) throw a(Error(187)); + var n = as; + as |= 1; + try { + return di(99, t.bind(null, e)); + } finally { + (as = n), gi(); + } + }, + unstable_createRoot: function(t, e) { + if (!bu(t)) throw a(Error(299), 'unstable_createRoot'); + return new yu(t, null != e && !0 === e.hydrate); + }, + unstable_createSyncRoot: function(t, e) { + if (!bu(t)) throw a(Error(299), 'unstable_createRoot'); + return new vu(t, 1, null != e && !0 === e.hydrate); + }, + unstable_flushControlled: function(t) { + var e = as; + as |= 1; + try { + di(99, t); + } finally { + (as = e) === Qa && gi(); + } + }, + __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { + Events: [ + N, + I, + F, + M.injectEventPluginsByName, + d, + q, + function(t) { + T(t, U); + }, + Mt, + Lt, + Fn, + P, + Xs, + { current: !1 } + ] + } + }; + (Su = (wu = { + findFiberByHostInstance: z, + bundleType: 0, + version: '16.9.0', + rendererPackageName: 'react-dom' + }).findFiberByHostInstance), + (function(t) { + if ('undefined' == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; + var e = __REACT_DEVTOOLS_GLOBAL_HOOK__; + if (e.isDisabled || !e.supportsFiber) return !0; + try { + var n = e.inject(t); + (tu = function(t) { + try { + e.onCommitFiberRoot( + n, + t, + void 0, + 64 == (64 & t.current.effectTag) + ); + } catch (t) {} + }), + (eu = function(t) { + try { + e.onCommitFiberUnmount(n, t); + } catch (t) {} + }); + } catch (t) {} + })( + i({}, wu, { + overrideHookState: null, + overrideProps: null, + setSuspenseHandler: null, + scheduleUpdate: null, + currentDispatcherRef: Wt.ReactCurrentDispatcher, + findHostInstanceByFiber: function(t) { + return null === (t = un(t)) ? null : t.stateNode; + }, + findFiberByHostInstance: function(t) { + return Su ? Su(t) : null; + }, + findHostInstancesForRefresh: null, + scheduleRefresh: null, + scheduleRoot: null, + setRefreshHandler: null, + getCurrentFiber: null + }) + ); + var ku = { default: Eu }, + Au = (ku && Eu) || ku; + t.exports = Au.default || Au; + }, + function(t, e, n) { + 'use strict'; + t.exports = n(174); + }, + function(t, e, n) { + 'use strict'; + /** @license React v0.15.0 + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ Object.defineProperty(e, '__esModule', { value: !0 }); + var r = void 0, + i = void 0, + o = void 0, + a = void 0, + s = void 0; + if ( + ((e.unstable_now = void 0), + (e.unstable_forceFrameRate = void 0), + 'undefined' == typeof window || 'function' != typeof MessageChannel) + ) { + var u = null, + l = null, + c = function() { + if (null !== u) + try { + var t = e.unstable_now(); + u(!0, t), (u = null); + } catch (t) { + throw (setTimeout(c, 0), t); + } + }; + (e.unstable_now = function() { + return Date.now(); + }), + (r = function(t) { + null !== u ? setTimeout(r, 0, t) : ((u = t), setTimeout(c, 0)); + }), + (i = function(t, e) { + l = setTimeout(t, e); + }), + (o = function() { + clearTimeout(l); + }), + (a = function() { + return !1; + }), + (s = e.unstable_forceFrameRate = function() {}); + } else { + var f = window.performance, + d = window.Date, + h = window.setTimeout, + p = window.clearTimeout, + g = window.requestAnimationFrame, + m = window.cancelAnimationFrame; + 'undefined' != typeof console && + ('function' != typeof g && + console.error( + "This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills" + ), + 'function' != typeof m && + console.error( + "This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills" + )), + (e.unstable_now = + 'object' == typeof f && 'function' == typeof f.now + ? function() { + return f.now(); + } + : function() { + return d.now(); + }); + var v = !1, + y = null, + b = -1, + _ = -1, + x = 33.33, + w = -1, + S = -1, + E = 0, + k = !1; + (a = function() { + return e.unstable_now() >= E; + }), + (s = function() {}), + (e.unstable_forceFrameRate = function(t) { + 0 > t || 125 < t + ? console.error( + 'forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported' + ) + : 0 < t + ? ((x = Math.floor(1e3 / t)), (k = !0)) + : ((x = 33.33), (k = !1)); + }); + var A = function() { + if (null !== y) { + var t = e.unstable_now(), + n = 0 < E - t; + try { + y(n, t) || (y = null); + } catch (t) { + throw (C.postMessage(null), t); + } + } + }, + T = new MessageChannel(), + C = T.port2; + T.port1.onmessage = A; + var O = function(t) { + if (null === y) (S = w = -1), (v = !1); + else { + (v = !0), + g(function(t) { + p(b), O(t); + }); + var n = function() { + (E = e.unstable_now() + x / 2), A(), (b = h(n, 3 * x)); + }; + if (((b = h(n, 3 * x)), -1 !== w && 0.1 < t - w)) { + var r = t - w; + !k && + -1 !== S && + r < x && + S < x && + (8.33 > (x = r < S ? S : r) && (x = 8.33)), + (S = r); + } + (w = t), (E = t + x), C.postMessage(null); + } + }; + (r = function(t) { + (y = t), + v || + ((v = !0), + g(function(t) { + O(t); + })); + }), + (i = function(t, n) { + _ = h(function() { + t(e.unstable_now()); + }, n); + }), + (o = function() { + p(_), (_ = -1); + }); + } + var P = null, + M = null, + L = null, + j = 3, + D = !1, + R = !1, + z = !1; + function N(t, e) { + var n = t.next; + if (n === t) P = null; + else { + t === P && (P = n); + var r = t.previous; + (r.next = n), (n.previous = r); + } + (t.next = t.previous = null), (n = t.callback), (r = j); + var i = L; + (j = t.priorityLevel), (L = t); + try { + var o = t.expirationTime <= e; + switch (j) { + case 1: + var a = n(o); + break; + case 2: + case 3: + case 4: + a = n(o); + break; + case 5: + a = n(o); + } + } catch (t) { + throw t; + } finally { + (j = r), (L = i); + } + if ('function' == typeof a) + if (((e = t.expirationTime), (t.callback = a), null === P)) + P = t.next = t.previous = t; + else { + (a = null), (o = P); + do { + if (e <= o.expirationTime) { + a = o; + break; + } + o = o.next; + } while (o !== P); + null === a ? (a = P) : a === P && (P = t), + ((e = a.previous).next = a.previous = t), + (t.next = a), + (t.previous = e); + } + } + function I(t) { + if (null !== M && M.startTime <= t) + do { + var e = M, + n = e.next; + if (e === n) M = null; + else { + M = n; + var r = e.previous; + (r.next = n), (n.previous = r); + } + (e.next = e.previous = null), G(e, e.expirationTime); + } while (null !== M && M.startTime <= t); + } + function F(t) { + (z = !1), + I(t), + R || + (null !== P + ? ((R = !0), r(V)) + : null !== M && i(F, M.startTime - t)); + } + function V(t, n) { + (R = !1), z && ((z = !1), o()), I(n), (D = !0); + try { + if (t) { + if (null !== P) + do { + N(P, n), I((n = e.unstable_now())); + } while (null !== P && !a()); + } else + for (; null !== P && P.expirationTime <= n; ) + N(P, n), I((n = e.unstable_now())); + return null !== P || (null !== M && i(F, M.startTime - n), !1); + } finally { + D = !1; + } + } + function B(t) { + switch (t) { + case 1: + return -1; + case 2: + return 250; + case 5: + return 1073741823; + case 4: + return 1e4; + default: + return 5e3; + } + } + function G(t, e) { + if (null === P) P = t.next = t.previous = t; + else { + var n = null, + r = P; + do { + if (e < r.expirationTime) { + n = r; + break; + } + r = r.next; + } while (r !== P); + null === n ? (n = P) : n === P && (P = t), + ((e = n.previous).next = n.previous = t), + (t.next = n), + (t.previous = e); + } + } + var H = s; + (e.unstable_ImmediatePriority = 1), + (e.unstable_UserBlockingPriority = 2), + (e.unstable_NormalPriority = 3), + (e.unstable_IdlePriority = 5), + (e.unstable_LowPriority = 4), + (e.unstable_runWithPriority = function(t, e) { + switch (t) { + case 1: + case 2: + case 3: + case 4: + case 5: + break; + default: + t = 3; + } + var n = j; + j = t; + try { + return e(); + } finally { + j = n; + } + }), + (e.unstable_next = function(t) { + switch (j) { + case 1: + case 2: + case 3: + var e = 3; + break; + default: + e = j; + } + var n = j; + j = e; + try { + return t(); + } finally { + j = n; + } + }), + (e.unstable_scheduleCallback = function(t, n, a) { + var s = e.unstable_now(); + if ('object' == typeof a && null !== a) { + var u = a.delay; + (u = 'number' == typeof u && 0 < u ? s + u : s), + (a = 'number' == typeof a.timeout ? a.timeout : B(t)); + } else (a = B(t)), (u = s); + if ( + ((t = { + callback: n, + priorityLevel: t, + startTime: u, + expirationTime: (a = u + a), + next: null, + previous: null + }), + u > s) + ) { + if (((a = u), null === M)) M = t.next = t.previous = t; + else { + n = null; + var l = M; + do { + if (a < l.startTime) { + n = l; + break; + } + l = l.next; + } while (l !== M); + null === n ? (n = M) : n === M && (M = t), + ((a = n.previous).next = n.previous = t), + (t.next = n), + (t.previous = a); + } + null === P && M === t && (z ? o() : (z = !0), i(F, u - s)); + } else G(t, a), R || D || ((R = !0), r(V)); + return t; + }), + (e.unstable_cancelCallback = function(t) { + var e = t.next; + if (null !== e) { + if (t === e) t === P ? (P = null) : t === M && (M = null); + else { + t === P ? (P = e) : t === M && (M = e); + var n = t.previous; + (n.next = e), (e.previous = n); + } + t.next = t.previous = null; + } + }), + (e.unstable_wrapCallback = function(t) { + var e = j; + return function() { + var n = j; + j = e; + try { + return t.apply(this, arguments); + } finally { + j = n; + } + }; + }), + (e.unstable_getCurrentPriorityLevel = function() { + return j; + }), + (e.unstable_shouldYield = function() { + var t = e.unstable_now(); + return ( + I(t), + (null !== L && + null !== P && + P.startTime <= t && + P.expirationTime < L.expirationTime) || + a() + ); + }), + (e.unstable_requestPaint = H), + (e.unstable_continueExecution = function() { + R || D || ((R = !0), r(V)); + }), + (e.unstable_pauseExecution = function() {}), + (e.unstable_getFirstCallbackNode = function() { + return P; + }); + }, + function(t, e, n) { + 'use strict'; + var r = n(176); + function i() {} + function o() {} + (o.resetWarningCache = i), + (t.exports = function() { + function t(t, e, n, i, o, a) { + if (a !== r) { + var s = 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 ((s.name = 'Invariant Violation'), s); + } + } + function e() { + return t; + } + t.isRequired = t; + var n = { + array: t, + bool: t, + func: t, + number: t, + object: t, + string: t, + symbol: t, + any: t, + arrayOf: e, + element: t, + elementType: t, + instanceOf: e, + node: t, + objectOf: e, + oneOf: e, + oneOfType: e, + shape: e, + exact: e, + checkPropTypes: o, + resetWarningCache: i + }; + return (n.PropTypes = n), n; + }); + }, + function(t, e, n) { + 'use strict'; + t.exports = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + }, + function(t, e, n) { + 'use strict'; + /** @license React v16.9.0 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ Object.defineProperty(e, '__esModule', { value: !0 }); + var r = 'function' == typeof Symbol && Symbol.for, + i = r ? Symbol.for('react.element') : 60103, + o = r ? Symbol.for('react.portal') : 60106, + a = r ? Symbol.for('react.fragment') : 60107, + s = r ? Symbol.for('react.strict_mode') : 60108, + u = r ? Symbol.for('react.profiler') : 60114, + l = r ? Symbol.for('react.provider') : 60109, + c = r ? Symbol.for('react.context') : 60110, + f = r ? Symbol.for('react.async_mode') : 60111, + d = r ? Symbol.for('react.concurrent_mode') : 60111, + h = r ? Symbol.for('react.forward_ref') : 60112, + p = r ? Symbol.for('react.suspense') : 60113, + g = r ? Symbol.for('react.suspense_list') : 60120, + m = r ? Symbol.for('react.memo') : 60115, + v = r ? Symbol.for('react.lazy') : 60116, + y = r ? Symbol.for('react.fundamental') : 60117, + b = r ? Symbol.for('react.responder') : 60118; + function _(t) { + if ('object' == typeof t && null !== t) { + var e = t.$$typeof; + switch (e) { + case i: + switch ((t = t.type)) { + case f: + case d: + case a: + case u: + case s: + case p: + return t; + default: + switch ((t = t && t.$$typeof)) { + case c: + case h: + case l: + return t; + default: + return e; + } + } + case v: + case m: + case o: + return e; + } + } + } + function x(t) { + return _(t) === d; + } + (e.typeOf = _), + (e.AsyncMode = f), + (e.ConcurrentMode = d), + (e.ContextConsumer = c), + (e.ContextProvider = l), + (e.Element = i), + (e.ForwardRef = h), + (e.Fragment = a), + (e.Lazy = v), + (e.Memo = m), + (e.Portal = o), + (e.Profiler = u), + (e.StrictMode = s), + (e.Suspense = p), + (e.isValidElementType = function(t) { + return ( + 'string' == typeof t || + 'function' == typeof t || + t === a || + t === d || + t === u || + t === s || + t === p || + t === g || + ('object' == typeof t && + null !== t && + (t.$$typeof === v || + t.$$typeof === m || + t.$$typeof === l || + t.$$typeof === c || + t.$$typeof === h || + t.$$typeof === y || + t.$$typeof === b)) + ); + }), + (e.isAsyncMode = function(t) { + return x(t) || _(t) === f; + }), + (e.isConcurrentMode = x), + (e.isContextConsumer = function(t) { + return _(t) === c; + }), + (e.isContextProvider = function(t) { + return _(t) === l; + }), + (e.isElement = function(t) { + return 'object' == typeof t && null !== t && t.$$typeof === i; + }), + (e.isForwardRef = function(t) { + return _(t) === h; + }), + (e.isFragment = function(t) { + return _(t) === a; + }), + (e.isLazy = function(t) { + return _(t) === v; + }), + (e.isMemo = function(t) { + return _(t) === m; + }), + (e.isPortal = function(t) { + return _(t) === o; + }), + (e.isProfiler = function(t) { + return _(t) === u; + }), + (e.isStrictMode = function(t) { + return _(t) === s; + }), + (e.isSuspense = function(t) { + return _(t) === p; + }); + }, + function(t, e) { + t.exports = function(t) { + if (!t.webpackPolyfill) { + var e = Object.create(t); + e.children || (e.children = []), + Object.defineProperty(e, 'loaded', { + enumerable: !0, + get: function() { + return e.l; + } + }), + Object.defineProperty(e, 'id', { + enumerable: !0, + get: function() { + return e.i; + } + }), + Object.defineProperty(e, 'exports', { enumerable: !0 }), + (e.webpackPolyfill = 1); + } + return e; + }; + }, + function(t, e, n) { + var r = n(97)(Object.keys, Object); + t.exports = r; + }, + function(t, e, n) { + var r = n(29)(n(22), 'DataView'); + t.exports = r; + }, + function(t, e, n) { + var r = n(69), + i = n(184), + o = n(17), + a = n(99), + s = /^\[object .+?Constructor\]$/, + u = Function.prototype, + l = Object.prototype, + c = u.toString, + f = l.hasOwnProperty, + d = RegExp( + '^' + + c + .call(f) + .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') + .replace( + /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, + '$1.*?' + ) + + '$' + ); + t.exports = function(t) { + return !(!o(t) || i(t)) && (r(t) ? d : s).test(a(t)); + }; + }, + function(t, e, n) { + var r = n(38), + i = Object.prototype, + o = i.hasOwnProperty, + a = i.toString, + s = r ? r.toStringTag : void 0; + t.exports = function(t) { + var e = o.call(t, s), + n = t[s]; + try { + t[s] = void 0; + var r = !0; + } catch (t) {} + var i = a.call(t); + return r && (e ? (t[s] = n) : delete t[s]), i; + }; + }, + function(t, e) { + var n = Object.prototype.toString; + t.exports = function(t) { + return n.call(t); + }; + }, + function(t, e, n) { + var r, + i = n(185), + o = (r = /[^.]+$/.exec((i && i.keys && i.keys.IE_PROTO) || '')) + ? 'Symbol(src)_1.' + r + : ''; + t.exports = function(t) { + return !!o && o in t; + }; + }, + function(t, e, n) { + var r = n(22)['__core-js_shared__']; + t.exports = r; + }, + function(t, e) { + t.exports = function(t, e) { + return null == t ? void 0 : t[e]; + }; + }, + function(t, e, n) { + var r = n(29)(n(22), 'Promise'); + t.exports = r; + }, + function(t, e, n) { + var r = n(29)(n(22), 'Set'); + t.exports = r; + }, + function(t, e, n) { + var r = n(29)(n(22), 'WeakMap'); + t.exports = r; + }, + function(t, e, n) { + var r = n(30), + i = n(25), + o = '[object Arguments]'; + t.exports = function(t) { + return i(t) && r(t) == o; + }; + }, + function(t, e) { + t.exports = function() { + return !1; + }; + }, + function(t, e, n) { + var r = n(30), + i = n(71), + o = n(25), + a = {}; + (a['[object Float32Array]'] = a['[object Float64Array]'] = a[ + '[object Int8Array]' + ] = a['[object Int16Array]'] = a['[object Int32Array]'] = a[ + '[object Uint8Array]' + ] = a['[object Uint8ClampedArray]'] = a['[object Uint16Array]'] = a[ + '[object Uint32Array]' + ] = !0), + (a['[object Arguments]'] = a['[object Array]'] = a[ + '[object ArrayBuffer]' + ] = a['[object Boolean]'] = a['[object DataView]'] = a[ + '[object Date]' + ] = a['[object Error]'] = a['[object Function]'] = a[ + '[object Map]' + ] = a['[object Number]'] = a['[object Object]'] = a[ + '[object RegExp]' + ] = a['[object Set]'] = a['[object String]'] = a[ + '[object WeakMap]' + ] = !1), + (t.exports = function(t) { + return o(t) && i(t.length) && !!a[r(t)]; + }); + }, + function(t, e) { + t.exports = function(t) { + if (Array.isArray(t)) { + for (var e = 0, n = new Array(t.length); e < t.length; e++) + n[e] = t[e]; + return n; + } + }; + }, + function(t, e) { + t.exports = function(t) { + if ( + Symbol.iterator in Object(t) || + '[object Arguments]' === Object.prototype.toString.call(t) + ) + return Array.from(t); + }; + }, + function(t, e) { + t.exports = function() { + throw new TypeError('Invalid attempt to spread non-iterable instance'); + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t) { + (t.hide = function(t) { + a(o.default.GLOBAL.HIDE, { target: t }); + }), + (t.rebuild = function() { + a(o.default.GLOBAL.REBUILD); + }), + (t.show = function(t) { + a(o.default.GLOBAL.SHOW, { target: t }); + }), + (t.prototype.globalRebuild = function() { + this.mount && (this.unbindListener(), this.bindListener()); + }), + (t.prototype.globalShow = function(t) { + if (this.mount) { + var e = { currentTarget: t.detail.target }; + this.showTooltip(e, !0); + } + }), + (t.prototype.globalHide = function(t) { + if (this.mount) { + var e = !!(t && t.detail && t.detail.target); + this.hideTooltip({ currentTarget: e && t.detail.target }, e); + } + }); + }); + var r, + i = n(100), + o = (r = i) && r.__esModule ? r : { default: r }; + var a = function(t, e) { + var n = void 0; + 'function' == typeof window.CustomEvent + ? (n = new window.CustomEvent(t, { detail: e })) + : ((n = document.createEvent('Event')).initEvent(t, !1, !0), + (n.detail = e)), + window.dispatchEvent(n); + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t) { + (t.prototype.bindWindowEvents = function(t) { + window.removeEventListener(o.default.GLOBAL.HIDE, this.globalHide), + window.addEventListener( + o.default.GLOBAL.HIDE, + this.globalHide, + !1 + ), + window.removeEventListener( + o.default.GLOBAL.REBUILD, + this.globalRebuild + ), + window.addEventListener( + o.default.GLOBAL.REBUILD, + this.globalRebuild, + !1 + ), + window.removeEventListener( + o.default.GLOBAL.SHOW, + this.globalShow + ), + window.addEventListener( + o.default.GLOBAL.SHOW, + this.globalShow, + !1 + ), + t && + (window.removeEventListener('resize', this.onWindowResize), + window.addEventListener('resize', this.onWindowResize, !1)); + }), + (t.prototype.unbindWindowEvents = function() { + window.removeEventListener( + o.default.GLOBAL.HIDE, + this.globalHide + ), + window.removeEventListener( + o.default.GLOBAL.REBUILD, + this.globalRebuild + ), + window.removeEventListener( + o.default.GLOBAL.SHOW, + this.globalShow + ), + window.removeEventListener('resize', this.onWindowResize); + }), + (t.prototype.onWindowResize = function() { + this.mount && this.hideTooltip(); + }); + }); + var r, + i = n(100), + o = (r = i) && r.__esModule ? r : { default: r }; + }, + function(t, e, n) { + 'use strict'; + function r(t, e, n) { + return ( + e in t + ? Object.defineProperty(t, e, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (t[e] = n), + t + ); + } + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t) { + (t.prototype.isCustomEvent = function(t) { + return this.state.event || !!t.getAttribute('data-event'); + }), + (t.prototype.customBindListener = function(t) { + var e = this, + n = this.state, + r = n.event, + o = n.eventOff, + s = t.getAttribute('data-event') || r, + u = t.getAttribute('data-event-off') || o; + s.split(' ').forEach(function(n) { + t.removeEventListener(n, a.get(t, n)); + var r = i.bind(e, u); + a.set(t, n, r), t.addEventListener(n, r, !1); + }), + u && + u.split(' ').forEach(function(n) { + t.removeEventListener(n, e.hideTooltip), + t.addEventListener(n, e.hideTooltip, !1); + }); + }), + (t.prototype.customUnbindListener = function(t) { + var e = this.state, + n = e.event, + r = e.eventOff, + i = n || t.getAttribute('data-event'), + o = r || t.getAttribute('data-event-off'); + t.removeEventListener(i, a.get(t, n)), + o && t.removeEventListener(o, this.hideTooltip); + }); + }); + var i = function(t, e) { + var n = this.state.show, + r = this.props.id, + i = e.currentTarget.getAttribute('data-iscapture'), + a = (i && 'true' === i) || this.props.isCapture, + s = e.currentTarget.getAttribute('currentItem'); + a || e.stopPropagation(), + n && 'true' === s + ? t || this.hideTooltip(e) + : (e.currentTarget.setAttribute('currentItem', 'true'), + o(e.currentTarget, this.getTargetArray(r)), + this.showTooltip(e)); + }, + o = function(t, e) { + for (var n = 0; n < e.length; n++) + t !== e[n] + ? e[n].setAttribute('currentItem', 'false') + : e[n].setAttribute('currentItem', 'true'); + }, + a = { + id: '9b69f92e-d3fe-498b-b1b4-c5e63a51b0cf', + set: function(t, e, n) { + this.id in t + ? (t[this.id][e] = n) + : Object.defineProperty(t, this.id, { + configurable: !0, + value: r({}, e, n) + }); + }, + get: function(t, e) { + var n = t[this.id]; + if (void 0 !== n) return n[e]; + } + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t) { + t.prototype.isCapture = function(t) { + return ( + (t && 'true' === t.getAttribute('data-iscapture')) || + this.props.isCapture || + !1 + ); + }; + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t) { + t.prototype.getEffect = function(t) { + return ( + t.getAttribute('data-effect') || this.props.effect || 'float' + ); + }; + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t) { + (t.prototype.bindRemovalTracker = function() { + var t = this, + e = r(); + if (null != e) { + var n = new e(function(e) { + for (var n = 0; n < e.length; n++) + for (var r = e[n], i = 0; i < r.removedNodes.length; i++) { + if (r.removedNodes[i] === t.state.currentTarget) + return void t.hideTooltip(); + } + }); + n.observe(window.document, { childList: !0, subtree: !0 }), + (this.removalTracker = n); + } + }), + (t.prototype.unbindRemovalTracker = function() { + this.removalTracker && + (this.removalTracker.disconnect(), + (this.removalTracker = null)); + }); + }); + var r = function() { + return ( + window.MutationObserver || + window.WebKitMutationObserver || + window.MozMutationObserver + ); + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t, e, n, u, l, c, f) { + for ( + var d = r(n), + h = d.width, + p = d.height, + g = r(e), + m = g.width, + v = g.height, + y = i(t, e, c), + b = y.mouseX, + _ = y.mouseY, + x = o(c, m, v, h, p), + w = a(f), + S = w.extraOffset_X, + E = w.extraOffset_Y, + k = window.innerWidth, + A = window.innerHeight, + T = s(n), + C = T.parentTop, + O = T.parentLeft, + P = function(t) { + var e = x[t].l; + return b + e + S; + }, + M = function(t) { + var e = x[t].t; + return _ + e + E; + }, + L = function(t) { + return ( + (function(t) { + var e = x[t].r; + return b + e + S; + })(t) > k + ); + }, + j = function(t) { + return ( + (function(t) { + var e = x[t].b; + return _ + e + E; + })(t) > A + ); + }, + D = function(t) { + return ( + (function(t) { + return P(t) < 0; + })(t) || + L(t) || + (function(t) { + return M(t) < 0; + })(t) || + j(t) + ); + }, + R = function(t) { + return !D(t); + }, + z = ['top', 'bottom', 'left', 'right'], + N = [], + I = 0; + I < 4; + I++ + ) { + var F = z[I]; + R(F) && N.push(F); + } + var V = !1, + B = void 0; + return ( + R(l) && l !== u + ? ((V = !0), (B = l)) + : N.length > 0 && D(l) && D(u) && ((V = !0), (B = N[0])), + V + ? { isNewState: !0, newState: { place: B } } + : { + isNewState: !1, + position: { + left: parseInt(P(u) - O, 10), + top: parseInt(M(u) - C, 10) + } + } + ); + }); + var r = function(t) { + var e = t.getBoundingClientRect(), + n = e.height, + r = e.width; + return { height: parseInt(n, 10), width: parseInt(r, 10) }; + }, + i = function(t, e, n) { + var i = e.getBoundingClientRect(), + o = i.top, + a = i.left, + s = r(e), + u = s.width, + l = s.height; + return 'float' === n + ? { mouseX: t.clientX, mouseY: t.clientY } + : { mouseX: a + u / 2, mouseY: o + l / 2 }; + }, + o = function(t, e, n, r, i) { + var o = void 0, + a = void 0, + s = void 0, + u = void 0; + return ( + 'float' === t + ? ((o = { l: -r / 2, r: r / 2, t: -(i + 3 + 2), b: -3 }), + (s = { l: -r / 2, r: r / 2, t: 15, b: i + 3 + 2 + 12 }), + (u = { l: -(r + 3 + 2), r: -3, t: -i / 2, b: i / 2 }), + (a = { l: 3, r: r + 3 + 2, t: -i / 2, b: i / 2 })) + : 'solid' === t && + ((o = { l: -r / 2, r: r / 2, t: -(n / 2 + i + 2), b: -n / 2 }), + (s = { l: -r / 2, r: r / 2, t: n / 2, b: n / 2 + i + 2 }), + (u = { l: -(r + e / 2 + 2), r: -e / 2, t: -i / 2, b: i / 2 }), + (a = { l: e / 2, r: r + e / 2 + 2, t: -i / 2, b: i / 2 })), + { top: o, bottom: s, left: u, right: a } + ); + }, + a = function(t) { + var e = 0, + n = 0; + for (var r in ('[object String]' === + Object.prototype.toString.apply(t) && + (t = JSON.parse(t.toString().replace(/\'/g, '"'))), + t)) + 'top' === r + ? (n -= parseInt(t[r], 10)) + : 'bottom' === r + ? (n += parseInt(t[r], 10)) + : 'left' === r + ? (e -= parseInt(t[r], 10)) + : 'right' === r && (e += parseInt(t[r], 10)); + return { extraOffset_X: e, extraOffset_Y: n }; + }, + s = function(t) { + for ( + var e = t; + e && + 'none' === window.getComputedStyle(e).getPropertyValue('transform'); + + ) + e = e.parentElement; + return { + parentTop: (e && e.getBoundingClientRect().top) || 0, + parentLeft: (e && e.getBoundingClientRect().left) || 0 + }; + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t, e, n, r) { + if (e) return e; + if (null != n) return n; + if (null === n) return null; + var i = //; + return r && 'false' !== r && i.test(t) + ? t.split(i).map(function(t, e) { + return o.default.createElement( + 'span', + { key: e, className: 'multi-line' }, + t + ); + }) + : t; + }); + var r, + i = n(0), + o = (r = i) && r.__esModule ? r : { default: r }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.parseAria = function(t) { + var e = {}; + return ( + Object.keys(t) + .filter(function(t) { + return /(^aria-\w+$|^role$)/.test(t); + }) + .forEach(function(n) { + e[n] = t[n]; + }), + e + ); + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t) { + var e = t.length; + return t.hasOwnProperty + ? Array.prototype.slice.call(t) + : new Array(e).fill().map(function(e) { + return t[e]; + }); + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = + '.__react_component_tooltip{border-radius:3px;display:inline-block;font-size:13px;left:-999em;opacity:0;padding:8px 21px;position:fixed;pointer-events:none;transition:opacity 0.3s ease-out;top:-999em;visibility:hidden;z-index:999}.__react_component_tooltip.allow_hover,.__react_component_tooltip.allow_click{pointer-events:auto}.__react_component_tooltip:before,.__react_component_tooltip:after{content:"";width:0;height:0;position:absolute}.__react_component_tooltip.show{opacity:0.9;margin-top:0px;margin-left:0px;visibility:visible}.__react_component_tooltip.type-dark{color:#fff;background-color:#222}.__react_component_tooltip.type-dark.place-top:after{border-top-color:#222;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-dark.place-bottom:after{border-bottom-color:#222;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-dark.place-left:after{border-left-color:#222;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-dark.place-right:after{border-right-color:#222;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-dark.border{border:1px solid #fff}.__react_component_tooltip.type-dark.border.place-top:before{border-top:8px solid #fff}.__react_component_tooltip.type-dark.border.place-bottom:before{border-bottom:8px solid #fff}.__react_component_tooltip.type-dark.border.place-left:before{border-left:8px solid #fff}.__react_component_tooltip.type-dark.border.place-right:before{border-right:8px solid #fff}.__react_component_tooltip.type-success{color:#fff;background-color:#8DC572}.__react_component_tooltip.type-success.place-top:after{border-top-color:#8DC572;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-success.place-bottom:after{border-bottom-color:#8DC572;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-success.place-left:after{border-left-color:#8DC572;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-success.place-right:after{border-right-color:#8DC572;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-success.border{border:1px solid #fff}.__react_component_tooltip.type-success.border.place-top:before{border-top:8px solid #fff}.__react_component_tooltip.type-success.border.place-bottom:before{border-bottom:8px solid #fff}.__react_component_tooltip.type-success.border.place-left:before{border-left:8px solid #fff}.__react_component_tooltip.type-success.border.place-right:before{border-right:8px solid #fff}.__react_component_tooltip.type-warning{color:#fff;background-color:#F0AD4E}.__react_component_tooltip.type-warning.place-top:after{border-top-color:#F0AD4E;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-warning.place-bottom:after{border-bottom-color:#F0AD4E;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-warning.place-left:after{border-left-color:#F0AD4E;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-warning.place-right:after{border-right-color:#F0AD4E;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-warning.border{border:1px solid #fff}.__react_component_tooltip.type-warning.border.place-top:before{border-top:8px solid #fff}.__react_component_tooltip.type-warning.border.place-bottom:before{border-bottom:8px solid #fff}.__react_component_tooltip.type-warning.border.place-left:before{border-left:8px solid #fff}.__react_component_tooltip.type-warning.border.place-right:before{border-right:8px solid #fff}.__react_component_tooltip.type-error{color:#fff;background-color:#BE6464}.__react_component_tooltip.type-error.place-top:after{border-top-color:#BE6464;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-error.place-bottom:after{border-bottom-color:#BE6464;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-error.place-left:after{border-left-color:#BE6464;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-error.place-right:after{border-right-color:#BE6464;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-error.border{border:1px solid #fff}.__react_component_tooltip.type-error.border.place-top:before{border-top:8px solid #fff}.__react_component_tooltip.type-error.border.place-bottom:before{border-bottom:8px solid #fff}.__react_component_tooltip.type-error.border.place-left:before{border-left:8px solid #fff}.__react_component_tooltip.type-error.border.place-right:before{border-right:8px solid #fff}.__react_component_tooltip.type-info{color:#fff;background-color:#337AB7}.__react_component_tooltip.type-info.place-top:after{border-top-color:#337AB7;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-info.place-bottom:after{border-bottom-color:#337AB7;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-info.place-left:after{border-left-color:#337AB7;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-info.place-right:after{border-right-color:#337AB7;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-info.border{border:1px solid #fff}.__react_component_tooltip.type-info.border.place-top:before{border-top:8px solid #fff}.__react_component_tooltip.type-info.border.place-bottom:before{border-bottom:8px solid #fff}.__react_component_tooltip.type-info.border.place-left:before{border-left:8px solid #fff}.__react_component_tooltip.type-info.border.place-right:before{border-right:8px solid #fff}.__react_component_tooltip.type-light{color:#222;background-color:#fff}.__react_component_tooltip.type-light.place-top:after{border-top-color:#fff;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-light.place-bottom:after{border-bottom-color:#fff;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-light.place-left:after{border-left-color:#fff;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-light.place-right:after{border-right-color:#fff;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-light.border{border:1px solid #222}.__react_component_tooltip.type-light.border.place-top:before{border-top:8px solid #222}.__react_component_tooltip.type-light.border.place-bottom:before{border-bottom:8px solid #222}.__react_component_tooltip.type-light.border.place-left:before{border-left:8px solid #222}.__react_component_tooltip.type-light.border.place-right:before{border-right:8px solid #222}.__react_component_tooltip.place-top{margin-top:-10px}.__react_component_tooltip.place-top:before{border-left:10px solid transparent;border-right:10px solid transparent;bottom:-8px;left:50%;margin-left:-10px}.__react_component_tooltip.place-top:after{border-left:8px solid transparent;border-right:8px solid transparent;bottom:-6px;left:50%;margin-left:-8px}.__react_component_tooltip.place-bottom{margin-top:10px}.__react_component_tooltip.place-bottom:before{border-left:10px solid transparent;border-right:10px solid transparent;top:-8px;left:50%;margin-left:-10px}.__react_component_tooltip.place-bottom:after{border-left:8px solid transparent;border-right:8px solid transparent;top:-6px;left:50%;margin-left:-8px}.__react_component_tooltip.place-left{margin-left:-10px}.__react_component_tooltip.place-left:before{border-top:6px solid transparent;border-bottom:6px solid transparent;right:-8px;top:50%;margin-top:-5px}.__react_component_tooltip.place-left:after{border-top:5px solid transparent;border-bottom:5px solid transparent;right:-6px;top:50%;margin-top:-4px}.__react_component_tooltip.place-right{margin-left:10px}.__react_component_tooltip.place-right:before{border-top:6px solid transparent;border-bottom:6px solid transparent;left:-8px;top:50%;margin-top:-5px}.__react_component_tooltip.place-right:after{border-top:5px solid transparent;border-bottom:5px solid transparent;left:-6px;top:50%;margin-top:-4px}.__react_component_tooltip .multi-line{display:block;padding:2px 0px;text-align:center}'); + }, + function(t, e, n) { + var r = n(52), + i = n(101), + o = n(103), + a = n(231), + s = n(17), + u = n(57), + l = n(110); + t.exports = function t(e, n, c, f, d) { + e !== n && + o( + n, + function(o, u) { + if ((d || (d = new r()), s(o))) a(e, n, u, c, t, f, d); + else { + var h = f ? f(l(e, u), o, u + '', e, n, d) : void 0; + void 0 === h && (h = o), i(e, u, h); + } + }, + u + ); + }; + }, + function(t, e) { + t.exports = function() { + (this.__data__ = []), (this.size = 0); + }; + }, + function(t, e, n) { + var r = n(54), + i = Array.prototype.splice; + t.exports = function(t) { + var e = this.__data__, + n = r(e, t); + return ( + !(n < 0) && + (n == e.length - 1 ? e.pop() : i.call(e, n, 1), --this.size, !0) + ); + }; + }, + function(t, e, n) { + var r = n(54); + t.exports = function(t) { + var e = this.__data__, + n = r(e, t); + return n < 0 ? void 0 : e[n][1]; + }; + }, + function(t, e, n) { + var r = n(54); + t.exports = function(t) { + return r(this.__data__, t) > -1; + }; + }, + function(t, e, n) { + var r = n(54); + t.exports = function(t, e) { + var n = this.__data__, + i = r(n, t); + return i < 0 ? (++this.size, n.push([t, e])) : (n[i][1] = e), this; + }; + }, + function(t, e, n) { + var r = n(53); + t.exports = function() { + (this.__data__ = new r()), (this.size = 0); + }; + }, + function(t, e) { + t.exports = function(t) { + var e = this.__data__, + n = e.delete(t); + return (this.size = e.size), n; + }; + }, + function(t, e) { + t.exports = function(t) { + return this.__data__.get(t); + }; + }, + function(t, e) { + t.exports = function(t) { + return this.__data__.has(t); + }; + }, + function(t, e, n) { + var r = n(53), + i = n(70), + o = n(74), + a = 200; + t.exports = function(t, e) { + var n = this.__data__; + if (n instanceof r) { + var s = n.__data__; + if (!i || s.length < a - 1) + return s.push([t, e]), (this.size = ++n.size), this; + n = this.__data__ = new o(s); + } + return n.set(t, e), (this.size = n.size), this; + }; + }, + function(t, e, n) { + var r = n(219), + i = n(53), + o = n(70); + t.exports = function() { + (this.size = 0), + (this.__data__ = { + hash: new r(), + map: new (o || i)(), + string: new r() + }); + }; + }, + function(t, e, n) { + var r = n(220), + i = n(221), + o = n(222), + a = n(223), + s = n(224); + function u(t) { + var e = -1, + n = null == t ? 0 : t.length; + for (this.clear(); ++e < n; ) { + var r = t[e]; + this.set(r[0], r[1]); + } + } + (u.prototype.clear = r), + (u.prototype.delete = i), + (u.prototype.get = o), + (u.prototype.has = a), + (u.prototype.set = s), + (t.exports = u); + }, + function(t, e, n) { + var r = n(55); + t.exports = function() { + (this.__data__ = r ? r(null) : {}), (this.size = 0); + }; + }, + function(t, e) { + t.exports = function(t) { + var e = this.has(t) && delete this.__data__[t]; + return (this.size -= e ? 1 : 0), e; + }; + }, + function(t, e, n) { + var r = n(55), + i = '__lodash_hash_undefined__', + o = Object.prototype.hasOwnProperty; + t.exports = function(t) { + var e = this.__data__; + if (r) { + var n = e[t]; + return n === i ? void 0 : n; + } + return o.call(e, t) ? e[t] : void 0; + }; + }, + function(t, e, n) { + var r = n(55), + i = Object.prototype.hasOwnProperty; + t.exports = function(t) { + var e = this.__data__; + return r ? void 0 !== e[t] : i.call(e, t); + }; + }, + function(t, e, n) { + var r = n(55), + i = '__lodash_hash_undefined__'; + t.exports = function(t, e) { + var n = this.__data__; + return ( + (this.size += this.has(t) ? 0 : 1), + (n[t] = r && void 0 === e ? i : e), + this + ); + }; + }, + function(t, e, n) { + var r = n(56); + t.exports = function(t) { + var e = r(this, t).delete(t); + return (this.size -= e ? 1 : 0), e; + }; + }, + function(t, e) { + t.exports = function(t) { + var e = typeof t; + return 'string' == e || 'number' == e || 'symbol' == e || 'boolean' == e + ? '__proto__' !== t + : null === t; + }; + }, + function(t, e, n) { + var r = n(56); + t.exports = function(t) { + return r(this, t).get(t); + }; + }, + function(t, e, n) { + var r = n(56); + t.exports = function(t) { + return r(this, t).has(t); + }; + }, + function(t, e, n) { + var r = n(56); + t.exports = function(t, e) { + var n = r(this, t), + i = n.size; + return n.set(t, e), (this.size += n.size == i ? 0 : 1), this; + }; + }, + function(t, e) { + t.exports = function(t) { + return function(e, n, r) { + for (var i = -1, o = Object(e), a = r(e), s = a.length; s--; ) { + var u = a[t ? s : ++i]; + if (!1 === n(o[u], u, o)) break; + } + return e; + }; + }; + }, + function(t, e, n) { + var r = n(101), + i = n(104), + o = n(105), + a = n(107), + s = n(108), + u = n(50), + l = n(14), + c = n(233), + f = n(39), + d = n(69), + h = n(17), + p = n(109), + g = n(51), + m = n(110), + v = n(234); + t.exports = function(t, e, n, y, b, _, x) { + var w = m(t, n), + S = m(e, n), + E = x.get(S); + if (E) r(t, n, E); + else { + var k = _ ? _(w, S, n + '', t, e, x) : void 0, + A = void 0 === k; + if (A) { + var T = l(S), + C = !T && f(S), + O = !T && !C && g(S); + (k = S), + T || C || O + ? l(w) + ? (k = w) + : c(w) + ? (k = a(w)) + : C + ? ((A = !1), (k = i(S, !0))) + : O + ? ((A = !1), (k = o(S, !0))) + : (k = []) + : p(S) || u(S) + ? ((k = w), u(w) ? (k = v(w)) : (h(w) && !d(w)) || (k = s(S))) + : (A = !1); + } + A && (x.set(S, k), b(k, S, y, _, x), x.delete(S)), r(t, n, k); + } + }; + }, + function(t, e, n) { + var r = n(17), + i = Object.create, + o = (function() { + function t() {} + return function(e) { + if (!r(e)) return {}; + if (i) return i(e); + t.prototype = e; + var n = new t(); + return (t.prototype = void 0), n; + }; + })(); + t.exports = o; + }, + function(t, e, n) { + var r = n(31), + i = n(25); + t.exports = function(t) { + return i(t) && r(t); + }; + }, + function(t, e, n) { + var r = n(42), + i = n(57); + t.exports = function(t) { + return r(t, i(t)); + }; + }, + function(t, e) { + t.exports = function(t, e) { + for (var n = -1, r = Array(t); ++n < t; ) r[n] = e(n); + return r; + }; + }, + function(t, e, n) { + var r = n(17), + i = n(49), + o = n(237), + a = Object.prototype.hasOwnProperty; + t.exports = function(t) { + if (!r(t)) return o(t); + var e = i(t), + n = []; + for (var s in t) + ('constructor' != s || (!e && a.call(t, s))) && n.push(s); + return n; + }; + }, + function(t, e) { + t.exports = function(t) { + var e = []; + if (null != t) for (var n in Object(t)) e.push(n); + return e; + }; + }, + function(t, e, n) { + var r = n(239), + i = n(246); + t.exports = function(t) { + return r(function(e, n) { + var r = -1, + o = n.length, + a = o > 1 ? n[o - 1] : void 0, + s = o > 2 ? n[2] : void 0; + for ( + a = t.length > 3 && 'function' == typeof a ? (o--, a) : void 0, + s && i(n[0], n[1], s) && ((a = o < 3 ? void 0 : a), (o = 1)), + e = Object(e); + ++r < o; + + ) { + var u = n[r]; + u && t(e, u, r, a); + } + return e; + }); + }; + }, + function(t, e, n) { + var r = n(58), + i = n(240), + o = n(242); + t.exports = function(t, e) { + return o(i(t, e, r), t + ''); + }; + }, + function(t, e, n) { + var r = n(241), + i = Math.max; + t.exports = function(t, e, n) { + return ( + (e = i(void 0 === e ? t.length - 1 : e, 0)), + function() { + for ( + var o = arguments, a = -1, s = i(o.length - e, 0), u = Array(s); + ++a < s; + + ) + u[a] = o[e + a]; + a = -1; + for (var l = Array(e + 1); ++a < e; ) l[a] = o[a]; + return (l[e] = n(u)), r(t, this, l); + } + ); + }; + }, + function(t, e) { + t.exports = function(t, e, n) { + switch (n.length) { + case 0: + return t.call(e); + case 1: + return t.call(e, n[0]); + case 2: + return t.call(e, n[0], n[1]); + case 3: + return t.call(e, n[0], n[1], n[2]); + } + return t.apply(e, n); + }; + }, + function(t, e, n) { + var r = n(243), + i = n(245)(r); + t.exports = i; + }, + function(t, e, n) { + var r = n(244), + i = n(102), + o = n(58), + a = i + ? function(t, e) { + return i(t, 'toString', { + configurable: !0, + enumerable: !1, + value: r(e), + writable: !0 + }); + } + : o; + t.exports = a; + }, + function(t, e) { + t.exports = function(t) { + return function() { + return t; + }; + }; + }, + function(t, e) { + var n = 800, + r = 16, + i = Date.now; + t.exports = function(t) { + var e = 0, + o = 0; + return function() { + var a = i(), + s = r - (a - o); + if (((o = a), s > 0)) { + if (++e >= n) return arguments[0]; + } else e = 0; + return t.apply(void 0, arguments); + }; + }; + }, + function(t, e, n) { + var r = n(41), + i = n(31), + o = n(78), + a = n(17); + t.exports = function(t, e, n) { + if (!a(n)) return !1; + var s = typeof e; + return ( + !!('number' == s + ? i(n) && o(e, n.length) + : 'string' == s && e in n) && r(n[e], t) + ); + }; + }, + function(t, e, n) { + var r = n(248), + i = n(113); + t.exports = function(t, e, n) { + var o = (e && n) || 0; + 'string' == typeof t && + ((e = 'binary' === t ? new Array(16) : null), (t = null)); + var a = (t = t || {}).random || (t.rng || r)(); + if (((a[6] = (15 & a[6]) | 64), (a[8] = (63 & a[8]) | 128), e)) + for (var s = 0; s < 16; ++s) e[o + s] = a[s]; + return e || i(a); + }; + }, + function(t, e) { + var n = + ('undefined' != typeof crypto && + crypto.getRandomValues && + crypto.getRandomValues.bind(crypto)) || + ('undefined' != typeof msCrypto && + 'function' == typeof window.msCrypto.getRandomValues && + msCrypto.getRandomValues.bind(msCrypto)); + if (n) { + var r = new Uint8Array(16); + t.exports = function() { + return n(r), r; + }; + } else { + var i = new Array(16); + t.exports = function() { + for (var t, e = 0; e < 16; e++) + 0 == (3 & e) && (t = 4294967296 * Math.random()), + (i[e] = (t >>> ((3 & e) << 3)) & 255); + return i; + }; + } + }, + function(t, e, n) { + var r = n(250), + i = n(251); + t.exports = r('v5', 80, i); + }, + function(t, e, n) { + var r = n(113); + t.exports = function(t, e, n) { + var i = function(t, i, o, a) { + var s = (o && a) || 0; + if ( + ('string' == typeof t && + (t = (function(t) { + t = unescape(encodeURIComponent(t)); + for (var e = new Array(t.length), n = 0; n < t.length; n++) + e[n] = t.charCodeAt(n); + return e; + })(t)), + 'string' == typeof i && + (i = (function(t) { + var e = []; + return ( + t.replace(/[a-fA-F0-9]{2}/g, function(t) { + e.push(parseInt(t, 16)); }), - (r.prototype.redrawArc = function(t, e, n) { - var r, - i, - o, - a, - s = this, - u = s.d3, - l = s.config, - c = s.main, - f = s.hasType('gauge'); - if ( - ((i = (r = c - .selectAll('.' + w.arcs) - .selectAll('.' + w.arc) - .data(s.arcData.bind(s))) - .enter() - .append('path') - .attr('class', s.classArc.bind(s)) - .style('fill', function(t) { - return s.color(t.data); - }) - .style('cursor', function(t) { - return l.interaction_enabled && - l.data_selection_isselectable(t) - ? 'pointer' - : null; - }) - .each(function(t) { - s.isGaugeType(t.data) && - (t.startAngle = t.endAngle = l.gauge_startingAngle), - (this._current = t); - }) - .merge(r)), - f && - ((a = (o = c - .selectAll('.' + w.arcs) - .selectAll('.' + w.arcLabelLine) - .data(s.arcData.bind(s))) - .enter() - .append('rect') - .attr('class', function(t) { - return ( - w.arcLabelLine + - ' ' + - w.target + - ' ' + - w.target + - '-' + - t.data.id - ); - }) - .merge(o)), - 1 === s.filterTargetsToShow(s.data.targets).length - ? a.style('display', 'none') - : a - .style('fill', function(t) { - return s.levelColor - ? s.levelColor(t.data.values[0].value) - : s.color(t.data); - }) - .style( - 'display', - l.gauge_labelLine_show ? '' : 'none' - ) - .each(function(t) { - var e = 0, - n = 0, - r = 0, - i = ''; - if (s.hiddenTargetIds.indexOf(t.data.id) < 0) { - var o = s.updateAngle(t), - a = - (s.gaugeArcWidth / - s.filterTargetsToShow(s.data.targets) - .length) * - (o.index + 1), - l = o.endAngle - Math.PI / 2, - c = s.radius - a, - f = l - (0 === c ? 0 : 1 / c); - (e = s.radiusExpanded - s.radius + a), - (n = Math.cos(f) * c), - (r = Math.sin(f) * c), - (i = - 'rotate(' + - (180 * l) / Math.PI + - ', ' + - n + - ', ' + - r + - ')'); - } - u.select(this) - .attr('x', n) - .attr('y', r) - .attr('width', e) - .attr('height', 2) - .attr('transform', i) - .style( - 'stroke-dasharray', - '0, ' + (e + 2) + ', 0' - ); - })), - i - .attr('transform', function(t) { - return !s.isGaugeType(t.data) && n ? 'scale(0)' : ''; - }) - .on( - 'mouseover', - l.interaction_enabled - ? function(t) { - var e, n; - s.transiting || - ((e = s.updateAngle(t)) && - ((n = s.convertToArcData(e)), - s.expandArc(e.data.id), - s.api.focus(e.data.id), - s.toggleFocusLegend(e.data.id, !0), - s.config.data_onmouseover(n, this))); - } - : null - ) - .on( - 'mousemove', - l.interaction_enabled - ? function(t) { - var e, - n = s.updateAngle(t); - n && - ((e = [s.convertToArcData(n)]), - s.showTooltip(e, this)); - } - : null - ) - .on( - 'mouseout', - l.interaction_enabled - ? function(t) { - var e, n; - s.transiting || - ((e = s.updateAngle(t)) && - ((n = s.convertToArcData(e)), - s.unexpandArc(e.data.id), - s.api.revert(), - s.revertLegend(), - s.hideTooltip(), - s.config.data_onmouseout(n, this))); - } - : null - ) - .on( - 'click', - l.interaction_enabled - ? function(t, e) { - var n, - r = s.updateAngle(t); - r && - ((n = s.convertToArcData(r)), - s.toggleShape && s.toggleShape(this, n, e), - s.config.data_onclick.call(s.api, n, this)); - } - : null - ) - .each(function() { - s.transiting = !0; - }) - .transition() - .duration(t) - .attrTween('d', function(t) { - var e, - n = s.updateAngle(t); - return n - ? (isNaN(this._current.startAngle) && - (this._current.startAngle = 0), - isNaN(this._current.endAngle) && - (this._current.endAngle = this._current.startAngle), - (e = u.interpolate(this._current, n)), - (this._current = e(0)), - function(n) { - if (null === s.config) return 'M 0 0'; - var r = e(n); - return (r.data = t.data), s.getArc(r, !0); - }) - : function() { - return 'M 0 0'; - }; - }) - .attr('transform', n ? 'scale(1)' : '') - .style('fill', function(t) { - return s.levelColor - ? s.levelColor(t.data.values[0].value) - : s.color(t.data.id); - }) - .call(s.endall, function() { - s.transiting = !1; - }), - r - .exit() - .transition() - .duration(e) - .style('opacity', 0) - .remove(), - c - .selectAll('.' + w.chartArc) - .select('text') - .style('opacity', 0) - .attr('class', function(t) { - return s.isGaugeType(t.data) ? w.gaugeValue : ''; - }) - .text(s.textForArcLabel.bind(s)) - .attr('transform', s.transformForArcLabel.bind(s)) - .style('font-size', function(t) { - return s.isGaugeType(t.data) && - 1 === s.filterTargetsToShow(s.data.targets).length - ? Math.round(s.radius / 5) + 'px' - : ''; - }) - .transition() - .duration(t) - .style('opacity', function(t) { - return s.isTargetToShow(t.data.id) && - s.isArcType(t.data) - ? 1 - : 0; - }), - c - .select('.' + w.chartArcsTitle) - .style('opacity', s.hasType('donut') || f ? 1 : 0), - f) - ) { - var d = 0, - h = s.arcs - .select('g.' + w.chartArcsBackground) - .selectAll('path.' + w.chartArcsBackground) - .data(s.data.targets); - h - .enter() - .append('path') - .attr('class', function(t, e) { - return ( - w.chartArcsBackground + - ' ' + - w.chartArcsBackground + - '-' + - e - ); - }) - .merge(h) - .attr('d', function(t) { - if (s.hiddenTargetIds.indexOf(t.id) >= 0) - return 'M 0 0'; - var e = { - data: [{ value: l.gauge_max }], - startAngle: l.gauge_startingAngle, - endAngle: - -1 * - l.gauge_startingAngle * - (l.gauge_fullCircle ? Math.PI : 1), - index: d++ - }; - return s.getArc(e, !0, !0); + e + ); + })(i)), + !Array.isArray(t)) + ) + throw TypeError('value must be an array of bytes'); + if (!Array.isArray(i) || 16 !== i.length) + throw TypeError( + 'namespace must be uuid string or an Array of 16 byte values' + ); + var u = n(i.concat(t)); + if (((u[6] = (15 & u[6]) | e), (u[8] = (63 & u[8]) | 128), o)) + for (var l = 0; l < 16; ++l) o[s + l] = u[l]; + return o || r(u); + }; + try { + i.name = t; + } catch (t) {} + return ( + (i.DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'), + (i.URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'), + i + ); + }; + }, + function(t, e, n) { + 'use strict'; + function r(t, e, n, r) { + switch (t) { + case 0: + return (e & n) ^ (~e & r); + case 1: + return e ^ n ^ r; + case 2: + return (e & n) ^ (e & r) ^ (n & r); + case 3: + return e ^ n ^ r; + } + } + function i(t, e) { + return (t << e) | (t >>> (32 - e)); + } + t.exports = function(t) { + var e = [1518500249, 1859775393, 2400959708, 3395469782], + n = [1732584193, 4023233417, 2562383102, 271733878, 3285377520]; + if ('string' == typeof t) { + var o = unescape(encodeURIComponent(t)); + t = new Array(o.length); + for (var a = 0; a < o.length; a++) t[a] = o.charCodeAt(a); + } + t.push(128); + var s = t.length / 4 + 2, + u = Math.ceil(s / 16), + l = new Array(u); + for (a = 0; a < u; a++) { + l[a] = new Array(16); + for (var c = 0; c < 16; c++) + l[a][c] = + (t[64 * a + 4 * c] << 24) | + (t[64 * a + 4 * c + 1] << 16) | + (t[64 * a + 4 * c + 2] << 8) | + t[64 * a + 4 * c + 3]; + } + for ( + l[u - 1][14] = (8 * (t.length - 1)) / Math.pow(2, 32), + l[u - 1][14] = Math.floor(l[u - 1][14]), + l[u - 1][15] = (8 * (t.length - 1)) & 4294967295, + a = 0; + a < u; + a++ + ) { + for (var f = new Array(80), d = 0; d < 16; d++) f[d] = l[a][d]; + for (d = 16; d < 80; d++) + f[d] = i(f[d - 3] ^ f[d - 8] ^ f[d - 14] ^ f[d - 16], 1); + var h = n[0], + p = n[1], + g = n[2], + m = n[3], + v = n[4]; + for (d = 0; d < 80; d++) { + var y = Math.floor(d / 20), + b = (i(h, 5) + r(y, p, g, m) + v + e[y] + f[d]) >>> 0; + (v = m), (m = g), (g = i(p, 30) >>> 0), (p = h), (h = b); + } + (n[0] = (n[0] + h) >>> 0), + (n[1] = (n[1] + p) >>> 0), + (n[2] = (n[2] + g) >>> 0), + (n[3] = (n[3] + m) >>> 0), + (n[4] = (n[4] + v) >>> 0); + } + return [ + (n[0] >> 24) & 255, + (n[0] >> 16) & 255, + (n[0] >> 8) & 255, + 255 & n[0], + (n[1] >> 24) & 255, + (n[1] >> 16) & 255, + (n[1] >> 8) & 255, + 255 & n[1], + (n[2] >> 24) & 255, + (n[2] >> 16) & 255, + (n[2] >> 8) & 255, + 255 & n[2], + (n[3] >> 24) & 255, + (n[3] >> 16) & 255, + (n[3] >> 8) & 255, + 255 & n[3], + (n[4] >> 24) & 255, + (n[4] >> 16) & 255, + (n[4] >> 8) & 255, + 255 & n[4] + ]; + }; + }, + function(t, e, n) { + (function(t) { + var r = + (void 0 !== t && t) || + ('undefined' != typeof self && self) || + window, + i = Function.prototype.apply; + function o(t, e) { + (this._id = t), (this._clearFn = e); + } + (e.setTimeout = function() { + return new o(i.call(setTimeout, r, arguments), clearTimeout); + }), + (e.setInterval = function() { + return new o(i.call(setInterval, r, arguments), clearInterval); + }), + (e.clearTimeout = e.clearInterval = function(t) { + t && t.close(); + }), + (o.prototype.unref = o.prototype.ref = function() {}), + (o.prototype.close = function() { + this._clearFn.call(r, this._id); + }), + (e.enroll = function(t, e) { + clearTimeout(t._idleTimeoutId), (t._idleTimeout = e); + }), + (e.unenroll = function(t) { + clearTimeout(t._idleTimeoutId), (t._idleTimeout = -1); + }), + (e._unrefActive = e.active = function(t) { + clearTimeout(t._idleTimeoutId); + var e = t._idleTimeout; + e >= 0 && + (t._idleTimeoutId = setTimeout(function() { + t._onTimeout && t._onTimeout(); + }, e)); + }), + n(253), + (e.setImmediate = + ('undefined' != typeof self && self.setImmediate) || + (void 0 !== t && t.setImmediate) || + (this && this.setImmediate)), + (e.clearImmediate = + ('undefined' != typeof self && self.clearImmediate) || + (void 0 !== t && t.clearImmediate) || + (this && this.clearImmediate)); + }.call(this, n(13))); + }, + function(t, e, n) { + (function(t, e) { + !(function(t, n) { + 'use strict'; + if (!t.setImmediate) { + var r, + i, + o, + a, + s, + u = 1, + l = {}, + c = !1, + f = t.document, + d = Object.getPrototypeOf && Object.getPrototypeOf(t); + (d = d && d.setTimeout ? d : t), + '[object process]' === {}.toString.call(t.process) + ? (r = function(t) { + e.nextTick(function() { + p(t); + }); + }) + : !(function() { + if (t.postMessage && !t.importScripts) { + var e = !0, + n = t.onmessage; + return ( + (t.onmessage = function() { + e = !1; }), - h.exit().remove(), - s.arcs - .select('.' + w.chartArcsGaugeUnit) - .attr('dy', '.75em') - .text(l.gauge_label_show ? l.gauge_units : ''), - s.arcs - .select('.' + w.chartArcsGaugeMin) - .attr( - 'dx', - -1 * - (s.innerRadius + - (s.radius - s.innerRadius) / - (l.gauge_fullCircle ? 1 : 2)) + - 'px' - ) - .attr('dy', '1.2em') - .text( - l.gauge_label_show - ? s.textForGaugeMinMax(l.gauge_min, !1) - : '' - ), - s.arcs - .select('.' + w.chartArcsGaugeMax) - .attr( - 'dx', - s.innerRadius + - (s.radius - s.innerRadius) / - (l.gauge_fullCircle ? 1 : 2) + - 'px' - ) - .attr('dy', '1.2em') - .text( - l.gauge_label_show - ? s.textForGaugeMinMax(l.gauge_max, !0) - : '' - ); + t.postMessage('', '*'), + (t.onmessage = n), + e + ); } + })() + ? t.MessageChannel + ? (((o = new MessageChannel()).port1.onmessage = function(t) { + p(t.data); + }), + (r = function(t) { + o.port2.postMessage(t); + })) + : f && 'onreadystatechange' in f.createElement('script') + ? ((i = f.documentElement), + (r = function(t) { + var e = f.createElement('script'); + (e.onreadystatechange = function() { + p(t), + (e.onreadystatechange = null), + i.removeChild(e), + (e = null); + }), + i.appendChild(e); + })) + : (r = function(t) { + setTimeout(p, 0, t); + }) + : ((a = 'setImmediate$' + Math.random() + '$'), + (s = function(e) { + e.source === t && + 'string' == typeof e.data && + 0 === e.data.indexOf(a) && + p(+e.data.slice(a.length)); }), - (r.prototype.initGauge = function() { - var t = this.arcs; - this.hasType('gauge') && - (t.append('g').attr('class', w.chartArcsBackground), - t - .append('text') - .attr('class', w.chartArcsGaugeUnit) - .style('text-anchor', 'middle') - .style('pointer-events', 'none'), - t - .append('text') - .attr('class', w.chartArcsGaugeMin) - .style('text-anchor', 'middle') - .style('pointer-events', 'none'), - t - .append('text') - .attr('class', w.chartArcsGaugeMax) - .style('text-anchor', 'middle') - .style('pointer-events', 'none')); - }), - (r.prototype.getGaugeLabelHeight = function() { - return this.config.gauge_label_show ? 20 : 0; - }), - (r.prototype.addToCache = function(t, e) { - this.cache['$'.concat(t)] = e; - }), - (r.prototype.getFromCache = function(t) { - return this.cache['$'.concat(t)]; - }), - (r.prototype.resetCache = function() { - var t = this; - Object.keys(this.cache) - .filter(function(t) { - return /^\$/.test(t); - }) - .forEach(function(e) { - delete t.cache[e]; - }); - }), - (r.prototype.hasCaches = function(t) { - for (var e = 0; e < t.length; e++) - if (!(t[e] in this.cache)) return !1; - return !0; - }), - (r.prototype.addCache = function(t, e) { - this.cache[t] = this.cloneTarget(e); - }), - (r.prototype.getCaches = function(t) { - var e, - n = []; - for (e = 0; e < t.length; e++) - t[e] in this.cache && - n.push(this.cloneTarget(this.cache[t[e]])); - return n; - }), - (r.prototype.categoryName = function(t) { - var e = this.config; - return t < e.axis_x_categories.length - ? e.axis_x_categories[t] - : t; - }), - (r.prototype.generateTargetClass = function(t) { - return t || 0 === t ? ('-' + t).replace(/\s/g, '-') : ''; - }), - (r.prototype.generateClass = function(t, e) { - return ' ' + t + ' ' + t + this.generateTargetClass(e); - }), - (r.prototype.classText = function(t) { - return this.generateClass(w.text, t.index); - }), - (r.prototype.classTexts = function(t) { - return this.generateClass(w.texts, t.id); - }), - (r.prototype.classShape = function(t) { - return this.generateClass(w.shape, t.index); - }), - (r.prototype.classShapes = function(t) { - return this.generateClass(w.shapes, t.id); - }), - (r.prototype.classLine = function(t) { - return ( - this.classShape(t) + this.generateClass(w.line, t.id) - ); - }), - (r.prototype.classLines = function(t) { - return ( - this.classShapes(t) + this.generateClass(w.lines, t.id) - ); - }), - (r.prototype.classCircle = function(t) { - return ( - this.classShape(t) + this.generateClass(w.circle, t.index) - ); - }), - (r.prototype.classCircles = function(t) { - return ( - this.classShapes(t) + this.generateClass(w.circles, t.id) - ); - }), - (r.prototype.classBar = function(t) { - return ( - this.classShape(t) + this.generateClass(w.bar, t.index) - ); - }), - (r.prototype.classBars = function(t) { - return ( - this.classShapes(t) + this.generateClass(w.bars, t.id) - ); - }), - (r.prototype.classArc = function(t) { - return ( - this.classShape(t.data) + - this.generateClass(w.arc, t.data.id) - ); - }), - (r.prototype.classArcs = function(t) { - return ( - this.classShapes(t.data) + - this.generateClass(w.arcs, t.data.id) - ); - }), - (r.prototype.classArea = function(t) { - return ( - this.classShape(t) + this.generateClass(w.area, t.id) - ); - }), - (r.prototype.classAreas = function(t) { - return ( - this.classShapes(t) + this.generateClass(w.areas, t.id) - ); - }), - (r.prototype.classRegion = function(t, e) { - return ( - this.generateClass(w.region, e) + - ' ' + - ('class' in t ? t.class : '') - ); - }), - (r.prototype.classEvent = function(t) { - return this.generateClass(w.eventRect, t.index); - }), - (r.prototype.classTarget = function(t) { - var e = this.config.data_classes[t], - n = ''; - return ( - e && (n = ' ' + w.target + '-' + e), - this.generateClass(w.target, t) + n - ); - }), - (r.prototype.classFocus = function(t) { - return this.classFocused(t) + this.classDefocused(t); - }), - (r.prototype.classFocused = function(t) { - return ( - ' ' + - (this.focusedTargetIds.indexOf(t.id) >= 0 - ? w.focused - : '') - ); - }), - (r.prototype.classDefocused = function(t) { - return ( - ' ' + - (this.defocusedTargetIds.indexOf(t.id) >= 0 - ? w.defocused - : '') - ); - }), - (r.prototype.classChartText = function(t) { - return w.chartText + this.classTarget(t.id); - }), - (r.prototype.classChartLine = function(t) { - return w.chartLine + this.classTarget(t.id); - }), - (r.prototype.classChartBar = function(t) { - return w.chartBar + this.classTarget(t.id); - }), - (r.prototype.classChartArc = function(t) { - return w.chartArc + this.classTarget(t.data.id); - }), - (r.prototype.getTargetSelectorSuffix = function(t) { - var e = this.generateTargetClass(t); - return window.CSS && window.CSS.escape - ? window.CSS.escape(e) - : e.replace( - /([?!@#$%^&*()=+,.<>'":;\[\]\/|~`{}\\])/g, - '\\$1' - ); - }), - (r.prototype.selectorTarget = function(t, e) { - return ( - (e || '') + - '.' + - w.target + - this.getTargetSelectorSuffix(t) - ); - }), - (r.prototype.selectorTargets = function(t, e) { - var n = this; - return (t = t || []).length - ? t.map(function(t) { - return n.selectorTarget(t, e); - }) - : null; - }), - (r.prototype.selectorLegend = function(t) { - return '.' + w.legendItem + this.getTargetSelectorSuffix(t); - }), - (r.prototype.selectorLegends = function(t) { - var e = this; - return t && t.length - ? t.map(function(t) { - return e.selectorLegend(t); - }) - : null; - }), - (r.prototype.getClipPath = function(t) { - return ( - 'url(' + - (window.navigator.appVersion - .toLowerCase() - .indexOf('msie 9.') >= 0 - ? '' - : document.URL.split('#')[0]) + - '#' + - t + - ')' - ); - }), - (r.prototype.appendClip = function(t, e) { - return t - .append('clipPath') - .attr('id', e) - .append('rect'); - }), - (r.prototype.getAxisClipX = function(t) { - var e = Math.max(30, this.margin.left); - return t ? -(1 + e) : -(e - 1); - }), - (r.prototype.getAxisClipY = function(t) { - return t ? -20 : -this.margin.top; - }), - (r.prototype.getXAxisClipX = function() { - return this.getAxisClipX(!this.config.axis_rotated); - }), - (r.prototype.getXAxisClipY = function() { - return this.getAxisClipY(!this.config.axis_rotated); - }), - (r.prototype.getYAxisClipX = function() { - return this.config.axis_y_inner - ? -1 - : this.getAxisClipX(this.config.axis_rotated); - }), - (r.prototype.getYAxisClipY = function() { - return this.getAxisClipY(this.config.axis_rotated); - }), - (r.prototype.getAxisClipWidth = function(t) { - var e = Math.max(30, this.margin.left), - n = Math.max(30, this.margin.right); - return t ? this.width + 2 + e + n : this.margin.left + 20; - }), - (r.prototype.getAxisClipHeight = function(t) { - return ( - (t ? this.margin.bottom : this.margin.top + this.height) + - 20 - ); - }), - (r.prototype.getXAxisClipWidth = function() { - return this.getAxisClipWidth(!this.config.axis_rotated); - }), - (r.prototype.getXAxisClipHeight = function() { - return this.getAxisClipHeight(!this.config.axis_rotated); - }), - (r.prototype.getYAxisClipWidth = function() { - return ( - this.getAxisClipWidth(this.config.axis_rotated) + - (this.config.axis_y_inner ? 20 : 0) - ); - }), - (r.prototype.getYAxisClipHeight = function() { - return this.getAxisClipHeight(this.config.axis_rotated); + t.addEventListener + ? t.addEventListener('message', s, !1) + : t.attachEvent('onmessage', s), + (r = function(e) { + t.postMessage(a + e, '*'); + })), + (d.setImmediate = function(t) { + 'function' != typeof t && (t = new Function('' + t)); + for ( + var e = new Array(arguments.length - 1), n = 0; + n < e.length; + n++ + ) + e[n] = arguments[n + 1]; + var i = { callback: t, args: e }; + return (l[u] = i), r(u), u++; + }), + (d.clearImmediate = h); + } + function h(t) { + delete l[t]; + } + function p(t) { + if (c) setTimeout(p, 0, t); + else { + var e = l[t]; + if (e) { + c = !0; + try { + !(function(t) { + var e = t.callback, + r = t.args; + switch (r.length) { + case 0: + e(); + break; + case 1: + e(r[0]); + break; + case 2: + e(r[0], r[1]); + break; + case 3: + e(r[0], r[1], r[2]); + break; + default: + e.apply(n, r); + } + })(e); + } finally { + h(t), (c = !1); + } + } + } + } + })('undefined' == typeof self ? (void 0 === t ? this : t) : self); + }.call(this, n(13), n(114))); + }, + function(t, e) { + function n(t) { + return (n = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function(t) { + return typeof t; + } + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t; + })(t); + } + function r(e) { + return ( + 'function' == typeof Symbol && 'symbol' === n(Symbol.iterator) + ? (t.exports = r = function(t) { + return n(t); + }) + : (t.exports = r = function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : n(t); + }), + r(e) + ); + } + t.exports = r; + }, + function(t, e) { + function n(e, r) { + return ( + (t.exports = n = + Object.setPrototypeOf || + function(t, e) { + return (t.__proto__ = e), t; + }), + n(e, r) + ); + } + t.exports = n; + }, + function(t, e) { + t.exports = + Array.isArray || + function(t) { + return '[object Array]' == Object.prototype.toString.call(t); + }; + }, + function(t, e, n) { + (function(e) { + (function() { + var n, r, i, o, a, s; + 'undefined' != typeof performance && + null !== performance && + performance.now + ? (t.exports = function() { + return performance.now(); + }) + : null != e && e.hrtime + ? ((t.exports = function() { + return (n() - a) / 1e6; + }), + (r = e.hrtime), + (o = (n = function() { + var t; + return 1e9 * (t = r())[0] + t[1]; + })()), + (s = 1e9 * e.uptime()), + (a = o - s)) + : Date.now + ? ((t.exports = function() { + return Date.now() - i; + }), + (i = Date.now())) + : ((t.exports = function() { + return new Date().getTime() - i; + }), + (i = new Date().getTime())); + }.call(this)); + }.call(this, n(114))); + }, + function(t, e, n) { + 'use strict'; + (e.__esModule = !0), (e.default = void 0); + !(function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + if (Object.prototype.hasOwnProperty.call(t, n)) { + var r = + Object.defineProperty && Object.getOwnPropertyDescriptor + ? Object.getOwnPropertyDescriptor(t, n) + : {}; + r.get || r.set ? Object.defineProperty(e, n, r) : (e[n] = t[n]); + } + e.default = t; + })(n(1)); + var r = s(n(259)), + i = s(n(262)), + o = s(n(0)), + a = s(n(115)); + n(117); + function s(t) { + return t && t.__esModule ? t : { default: t }; + } + function u() { + return (u = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); + } + return t; + }).apply(this, arguments); + } + var l = function(t, e) { + return ( + t && + e && + e.split(' ').forEach(function(e) { + return (0, r.default)(t, e); + }) + ); + }, + c = function(t, e) { + return ( + t && + e && + e.split(' ').forEach(function(e) { + return (0, i.default)(t, e); + }) + ); + }, + f = (function(t) { + var e, n; + function r() { + for ( + var e, n = arguments.length, r = new Array(n), i = 0; + i < n; + i++ + ) + r[i] = arguments[i]; + return ( + ((e = + t.call.apply(t, [this].concat(r)) || this).onEnter = function( + t, + n + ) { + var r = e.getClassNames(n ? 'appear' : 'enter').className; + e.removeClasses(t, 'exit'), + l(t, r), + e.props.onEnter && e.props.onEnter(t, n); + }), + (e.onEntering = function(t, n) { + var r = e.getClassNames(n ? 'appear' : 'enter').activeClassName; + e.reflowAndAddClass(t, r), + e.props.onEntering && e.props.onEntering(t, n); + }), + (e.onEntered = function(t, n) { + var r = e.getClassNames('appear').doneClassName, + i = e.getClassNames('enter').doneClassName, + o = n ? r + ' ' + i : i; + e.removeClasses(t, n ? 'appear' : 'enter'), + l(t, o), + e.props.onEntered && e.props.onEntered(t, n); + }), + (e.onExit = function(t) { + var n = e.getClassNames('exit').className; + e.removeClasses(t, 'appear'), + e.removeClasses(t, 'enter'), + l(t, n), + e.props.onExit && e.props.onExit(t); + }), + (e.onExiting = function(t) { + var n = e.getClassNames('exit').activeClassName; + e.reflowAndAddClass(t, n), + e.props.onExiting && e.props.onExiting(t); + }), + (e.onExited = function(t) { + var n = e.getClassNames('exit').doneClassName; + e.removeClasses(t, 'exit'), + l(t, n), + e.props.onExited && e.props.onExited(t); + }), + (e.getClassNames = function(t) { + var n = e.props.classNames, + r = 'string' == typeof n, + i = r ? (r && n ? n + '-' : '') + t : n[t]; + return { + className: i, + activeClassName: r ? i + '-active' : n[t + 'Active'], + doneClassName: r ? i + '-done' : n[t + 'Done'] + }; + }), + e + ); + } + (n = t), + ((e = r).prototype = Object.create(n.prototype)), + (e.prototype.constructor = e), + (e.__proto__ = n); + var i = r.prototype; + return ( + (i.removeClasses = function(t, e) { + var n = this.getClassNames(e), + r = n.className, + i = n.activeClassName, + o = n.doneClassName; + r && c(t, r), i && c(t, i), o && c(t, o); + }), + (i.reflowAndAddClass = function(t, e) { + e && (t && t.scrollTop, l(t, e)); + }), + (i.render = function() { + var t = u({}, this.props); + return ( + delete t.classNames, + o.default.createElement( + a.default, + u({}, t, { + onEnter: this.onEnter, + onEntered: this.onEntered, + onEntering: this.onEntering, + onExit: this.onExit, + onExiting: this.onExiting, + onExited: this.onExited + }) + ) + ); + }), + r + ); + })(o.default.Component); + (f.defaultProps = { classNames: '' }), (f.propTypes = {}); + var d = f; + (e.default = d), (t.exports = e.default); + }, + function(t, e, n) { + 'use strict'; + var r = n(260); + (e.__esModule = !0), + (e.default = function(t, e) { + t.classList + ? t.classList.add(e) + : (0, i.default)(t, e) || + ('string' == typeof t.className + ? (t.className = t.className + ' ' + e) + : t.setAttribute( + 'class', + ((t.className && t.className.baseVal) || '') + ' ' + e + )); + }); + var i = r(n(261)); + t.exports = e.default; + }, + function(t, e) { + t.exports = function(t) { + return t && t.__esModule ? t : { default: t }; + }; + }, + function(t, e, n) { + 'use strict'; + (e.__esModule = !0), + (e.default = function(t, e) { + return t.classList + ? !!e && t.classList.contains(e) + : -1 !== + (' ' + (t.className.baseVal || t.className) + ' ').indexOf( + ' ' + e + ' ' + ); + }), + (t.exports = e.default); + }, + function(t, e, n) { + 'use strict'; + function r(t, e) { + return t + .replace(new RegExp('(^|\\s)' + e + '(?:\\s|$)', 'g'), '$1') + .replace(/\s+/g, ' ') + .replace(/^\s*|\s*$/g, ''); + } + t.exports = function(t, e) { + t.classList + ? t.classList.remove(e) + : 'string' == typeof t.className + ? (t.className = r(t.className, e)) + : t.setAttribute( + 'class', + r((t.className && t.className.baseVal) || '', e) + ); + }; + }, + function(t, e, n) { + 'use strict'; + (e.__esModule = !0), (e.default = void 0); + a(n(1)); + var r = a(n(0)), + i = n(7), + o = a(n(118)); + function a(t) { + return t && t.__esModule ? t : { default: t }; + } + var s = (function(t) { + var e, n; + function a() { + for (var e, n = arguments.length, r = new Array(n), i = 0; i < n; i++) + r[i] = arguments[i]; + return ( + ((e = + t.call.apply(t, [this].concat(r)) || + this).handleEnter = function() { + for ( + var t = arguments.length, n = new Array(t), r = 0; + r < t; + r++ + ) + n[r] = arguments[r]; + return e.handleLifecycle('onEnter', 0, n); + }), + (e.handleEntering = function() { + for ( + var t = arguments.length, n = new Array(t), r = 0; + r < t; + r++ + ) + n[r] = arguments[r]; + return e.handleLifecycle('onEntering', 0, n); + }), + (e.handleEntered = function() { + for ( + var t = arguments.length, n = new Array(t), r = 0; + r < t; + r++ + ) + n[r] = arguments[r]; + return e.handleLifecycle('onEntered', 0, n); + }), + (e.handleExit = function() { + for ( + var t = arguments.length, n = new Array(t), r = 0; + r < t; + r++ + ) + n[r] = arguments[r]; + return e.handleLifecycle('onExit', 1, n); + }), + (e.handleExiting = function() { + for ( + var t = arguments.length, n = new Array(t), r = 0; + r < t; + r++ + ) + n[r] = arguments[r]; + return e.handleLifecycle('onExiting', 1, n); + }), + (e.handleExited = function() { + for ( + var t = arguments.length, n = new Array(t), r = 0; + r < t; + r++ + ) + n[r] = arguments[r]; + return e.handleLifecycle('onExited', 1, n); + }), + e + ); + } + (n = t), + ((e = a).prototype = Object.create(n.prototype)), + (e.prototype.constructor = e), + (e.__proto__ = n); + var s = a.prototype; + return ( + (s.handleLifecycle = function(t, e, n) { + var o, + a = this.props.children, + s = r.default.Children.toArray(a)[e]; + s.props[t] && (o = s.props)[t].apply(o, n), + this.props[t] && this.props[t]((0, i.findDOMNode)(this)); + }), + (s.render = function() { + var t = this.props, + e = t.children, + n = t.in, + i = (function(t, e) { + if (null == t) return {}; + var n, + r, + i = {}, + o = Object.keys(t); + for (r = 0; r < o.length; r++) + (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); + return i; + })(t, ['children', 'in']), + a = r.default.Children.toArray(e), + s = a[0], + u = a[1]; + return ( + delete i.onEnter, + delete i.onEntering, + delete i.onEntered, + delete i.onExit, + delete i.onExiting, + delete i.onExited, + r.default.createElement( + o.default, + i, + n + ? r.default.cloneElement(s, { + key: 'first', + onEnter: this.handleEnter, + onEntering: this.handleEntering, + onEntered: this.handleEntered + }) + : r.default.cloneElement(u, { + key: 'second', + onEnter: this.handleExit, + onEntering: this.handleExiting, + onEntered: this.handleExited + }) + ) + ); + }), + a + ); + })(r.default.Component); + s.propTypes = {}; + var u = s; + (e.default = u), (t.exports = e.default); + }, + function(t, e, n) { + 'use strict'; + (e.__esModule = !0), + (e.getChildMapping = i), + (e.mergeChildMappings = o), + (e.getInitialChildMapping = function(t, e) { + return i(t.children, function(n) { + return (0, + r.cloneElement)(n, { onExited: e.bind(null, n), in: !0, appear: a(n, 'appear', t), enter: a(n, 'enter', t), exit: a(n, 'exit', t) }); + }); + }), + (e.getNextChildMapping = function(t, e, n) { + var s = i(t.children), + u = o(e, s); + return ( + Object.keys(u).forEach(function(i) { + var o = u[i]; + if ((0, r.isValidElement)(o)) { + var l = i in e, + c = i in s, + f = e[i], + d = (0, r.isValidElement)(f) && !f.props.in; + !c || (l && !d) + ? c || !l || d + ? c && + l && + (0, r.isValidElement)(f) && + (u[i] = (0, r.cloneElement)(o, { + onExited: n.bind(null, o), + in: f.props.in, + exit: a(o, 'exit', t), + enter: a(o, 'enter', t) + })) + : (u[i] = (0, r.cloneElement)(o, { in: !1 })) + : (u[i] = (0, r.cloneElement)(o, { + onExited: n.bind(null, o), + in: !0, + exit: a(o, 'exit', t), + enter: a(o, 'enter', t) + })); + } + }), + u + ); + }); + var r = n(0); + function i(t, e) { + var n = Object.create(null); + return ( + t && + r.Children.map(t, function(t) { + return t; + }).forEach(function(t) { + n[t.key] = (function(t) { + return e && (0, r.isValidElement)(t) ? e(t) : t; + })(t); + }), + n + ); + } + function o(t, e) { + function n(n) { + return n in e ? e[n] : t[n]; + } + (t = t || {}), (e = e || {}); + var r, + i = Object.create(null), + o = []; + for (var a in t) + a in e ? o.length && ((i[a] = o), (o = [])) : o.push(a); + var s = {}; + for (var u in e) { + if (i[u]) + for (r = 0; r < i[u].length; r++) { + var l = i[u][r]; + s[i[u][r]] = n(l); + } + s[u] = n(u); + } + for (r = 0; r < o.length; r++) s[o[r]] = n(o[r]); + return s; + } + function a(t, e, n) { + return null != n[e] ? n[e] : t.props[e]; + } + }, + function(t, e, n) { + var r = n(52), + i = n(119), + o = n(271), + a = n(274), + s = n(37), + u = n(14), + l = n(39), + c = n(51), + f = 1, + d = '[object Arguments]', + h = '[object Array]', + p = '[object Object]', + g = Object.prototype.hasOwnProperty; + t.exports = function(t, e, n, m, v, y) { + var b = u(t), + _ = u(e), + x = b ? h : s(t), + w = _ ? h : s(e), + S = (x = x == d ? p : x) == p, + E = (w = w == d ? p : w) == p, + k = x == w; + if (k && l(t)) { + if (!l(e)) return !1; + (b = !0), (S = !1); + } + if (k && !S) + return ( + y || (y = new r()), + b || c(t) ? i(t, e, n, m, v, y) : o(t, e, x, n, m, v, y) + ); + if (!(n & f)) { + var A = S && g.call(t, '__wrapped__'), + T = E && g.call(e, '__wrapped__'); + if (A || T) { + var C = A ? t.value() : t, + O = T ? e.value() : e; + return y || (y = new r()), v(C, O, n, m, y); + } + } + return !!k && (y || (y = new r()), a(t, e, n, m, v, y)); + }; + }, + function(t, e, n) { + var r = n(74), + i = n(267), + o = n(268); + function a(t) { + var e = -1, + n = null == t ? 0 : t.length; + for (this.__data__ = new r(); ++e < n; ) this.add(t[e]); + } + (a.prototype.add = a.prototype.push = i), + (a.prototype.has = o), + (t.exports = a); + }, + function(t, e) { + var n = '__lodash_hash_undefined__'; + t.exports = function(t) { + return this.__data__.set(t, n), this; + }; + }, + function(t, e) { + t.exports = function(t) { + return this.__data__.has(t); + }; + }, + function(t, e) { + t.exports = function(t, e) { + for (var n = -1, r = null == t ? 0 : t.length; ++n < r; ) + if (e(t[n], n, t)) return !0; + return !1; + }; + }, + function(t, e) { + t.exports = function(t, e) { + return t.has(e); + }; + }, + function(t, e, n) { + var r = n(38), + i = n(106), + o = n(41), + a = n(119), + s = n(272), + u = n(273), + l = 1, + c = 2, + f = '[object Boolean]', + d = '[object Date]', + h = '[object Error]', + p = '[object Map]', + g = '[object Number]', + m = '[object RegExp]', + v = '[object Set]', + y = '[object String]', + b = '[object Symbol]', + _ = '[object ArrayBuffer]', + x = '[object DataView]', + w = r ? r.prototype : void 0, + S = w ? w.valueOf : void 0; + t.exports = function(t, e, n, r, w, E, k) { + switch (n) { + case x: + if (t.byteLength != e.byteLength || t.byteOffset != e.byteOffset) + return !1; + (t = t.buffer), (e = e.buffer); + case _: + return !(t.byteLength != e.byteLength || !E(new i(t), new i(e))); + case f: + case d: + case g: + return o(+t, +e); + case h: + return t.name == e.name && t.message == e.message; + case m: + case y: + return t == e + ''; + case p: + var A = s; + case v: + var T = r & l; + if ((A || (A = u), t.size != e.size && !T)) return !1; + var C = k.get(t); + if (C) return C == e; + (r |= c), k.set(t, e); + var O = a(A(t), A(e), r, w, E, k); + return k.delete(t), O; + case b: + if (S) return S.call(t) == S.call(e); + } + return !1; + }; + }, + function(t, e) { + t.exports = function(t) { + var e = -1, + n = Array(t.size); + return ( + t.forEach(function(t, r) { + n[++e] = [r, t]; + }), + n + ); + }; + }, + function(t, e) { + t.exports = function(t) { + var e = -1, + n = Array(t.size); + return ( + t.forEach(function(t) { + n[++e] = t; + }), + n + ); + }; + }, + function(t, e, n) { + var r = n(120), + i = 1, + o = Object.prototype.hasOwnProperty; + t.exports = function(t, e, n, a, s, u) { + var l = n & i, + c = r(t), + f = c.length; + if (f != r(e).length && !l) return !1; + for (var d = f; d--; ) { + var h = c[d]; + if (!(l ? h in e : o.call(e, h))) return !1; + } + var p = u.get(t); + if (p && u.get(e)) return p == e; + var g = !0; + u.set(t, e), u.set(e, t); + for (var m = l; ++d < f; ) { + var v = t[(h = c[d])], + y = e[h]; + if (a) var b = l ? a(y, v, h, e, t, u) : a(v, y, h, t, e, u); + if (!(void 0 === b ? v === y || s(v, y, n, a, u) : b)) { + g = !1; + break; + } + m || (m = 'constructor' == h); + } + if (g && !m) { + var _ = t.constructor, + x = e.constructor; + _ != x && + 'constructor' in t && + 'constructor' in e && + !( + 'function' == typeof _ && + _ instanceof _ && + 'function' == typeof x && + x instanceof x + ) && + (g = !1); + } + return u.delete(t), u.delete(e), g; + }; + }, + function(t, e) { + t.exports = function(t, e) { + for ( + var n = -1, r = null == t ? 0 : t.length, i = 0, o = []; + ++n < r; + + ) { + var a = t[n]; + e(a, n, t) && (o[i++] = a); + } + return o; + }; + }, + function(t, e, n) { + var r = (function(t) { + 'use strict'; + var e, + n = Object.prototype, + r = n.hasOwnProperty, + i = 'function' == typeof Symbol ? Symbol : {}, + o = i.iterator || '@@iterator', + a = i.asyncIterator || '@@asyncIterator', + s = i.toStringTag || '@@toStringTag'; + function u(t, e, n, r) { + var i = e && e.prototype instanceof g ? e : g, + o = Object.create(i.prototype), + a = new T(r || []); + return ( + (o._invoke = (function(t, e, n) { + var r = c; + return function(i, o) { + if (r === d) throw new Error('Generator is already running'); + if (r === h) { + if ('throw' === i) throw o; + return O(); + } + for (n.method = i, n.arg = o; ; ) { + var a = n.delegate; + if (a) { + var s = E(a, n); + if (s) { + if (s === p) continue; + return s; + } + } + if ('next' === n.method) n.sent = n._sent = n.arg; + else if ('throw' === n.method) { + if (r === c) throw ((r = h), n.arg); + n.dispatchException(n.arg); + } else 'return' === n.method && n.abrupt('return', n.arg); + r = d; + var u = l(t, e, n); + if ('normal' === u.type) { + if (((r = n.done ? h : f), u.arg === p)) continue; + return { value: u.arg, done: n.done }; + } + 'throw' === u.type && + ((r = h), (n.method = 'throw'), (n.arg = u.arg)); + } + }; + })(t, n, a)), + o + ); + } + function l(t, e, n) { + try { + return { type: 'normal', arg: t.call(e, n) }; + } catch (t) { + return { type: 'throw', arg: t }; + } + } + t.wrap = u; + var c = 'suspendedStart', + f = 'suspendedYield', + d = 'executing', + h = 'completed', + p = {}; + function g() {} + function m() {} + function v() {} + var y = {}; + y[o] = function() { + return this; + }; + var b = Object.getPrototypeOf, + _ = b && b(b(C([]))); + _ && _ !== n && r.call(_, o) && (y = _); + var x = (v.prototype = g.prototype = Object.create(y)); + function w(t) { + ['next', 'throw', 'return'].forEach(function(e) { + t[e] = function(t) { + return this._invoke(e, t); + }; + }); + } + function S(t) { + var e; + this._invoke = function(n, i) { + function o() { + return new Promise(function(e, o) { + !(function e(n, i, o, a) { + var s = l(t[n], t, i); + if ('throw' !== s.type) { + var u = s.arg, + c = u.value; + return c && 'object' == typeof c && r.call(c, '__await') + ? Promise.resolve(c.__await).then( + function(t) { + e('next', t, o, a); + }, + function(t) { + e('throw', t, o, a); + } + ) + : Promise.resolve(c).then( + function(t) { + (u.value = t), o(u); + }, + function(t) { + return e('throw', t, o, a); + } + ); + } + a(s.arg); + })(n, i, e, o); + }); + } + return (e = e ? e.then(o, o) : o()); + }; + } + function E(t, n) { + var r = t.iterator[n.method]; + if (r === e) { + if (((n.delegate = null), 'throw' === n.method)) { + if ( + t.iterator.return && + ((n.method = 'return'), + (n.arg = e), + E(t, n), + 'throw' === n.method) + ) + return p; + (n.method = 'throw'), + (n.arg = new TypeError( + "The iterator does not provide a 'throw' method" + )); + } + return p; + } + var i = l(r, t.iterator, n.arg); + if ('throw' === i.type) + return ( + (n.method = 'throw'), (n.arg = i.arg), (n.delegate = null), p + ); + var o = i.arg; + return o + ? o.done + ? ((n[t.resultName] = o.value), + (n.next = t.nextLoc), + 'return' !== n.method && ((n.method = 'next'), (n.arg = e)), + (n.delegate = null), + p) + : o + : ((n.method = 'throw'), + (n.arg = new TypeError('iterator result is not an object')), + (n.delegate = null), + p); + } + function k(t) { + var e = { tryLoc: t[0] }; + 1 in t && (e.catchLoc = t[1]), + 2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])), + this.tryEntries.push(e); + } + function A(t) { + var e = t.completion || {}; + (e.type = 'normal'), delete e.arg, (t.completion = e); + } + function T(t) { + (this.tryEntries = [{ tryLoc: 'root' }]), + t.forEach(k, this), + this.reset(!0); + } + function C(t) { + if (t) { + var n = t[o]; + if (n) return n.call(t); + if ('function' == typeof t.next) return t; + if (!isNaN(t.length)) { + var i = -1, + a = function n() { + for (; ++i < t.length; ) + if (r.call(t, i)) return (n.value = t[i]), (n.done = !1), n; + return (n.value = e), (n.done = !0), n; + }; + return (a.next = a); + } + } + return { next: O }; + } + function O() { + return { value: e, done: !0 }; + } + return ( + (m.prototype = x.constructor = v), + (v.constructor = m), + (v[s] = m.displayName = 'GeneratorFunction'), + (t.isGeneratorFunction = function(t) { + var e = 'function' == typeof t && t.constructor; + return ( + !!e && + (e === m || 'GeneratorFunction' === (e.displayName || e.name)) + ); + }), + (t.mark = function(t) { + return ( + Object.setPrototypeOf + ? Object.setPrototypeOf(t, v) + : ((t.__proto__ = v), s in t || (t[s] = 'GeneratorFunction')), + (t.prototype = Object.create(x)), + t + ); + }), + (t.awrap = function(t) { + return { __await: t }; + }), + w(S.prototype), + (S.prototype[a] = function() { + return this; + }), + (t.AsyncIterator = S), + (t.async = function(e, n, r, i) { + var o = new S(u(e, n, r, i)); + return t.isGeneratorFunction(n) + ? o + : o.next().then(function(t) { + return t.done ? t.value : o.next(); + }); + }), + w(x), + (x[s] = 'Generator'), + (x[o] = function() { + return this; + }), + (x.toString = function() { + return '[object Generator]'; + }), + (t.keys = function(t) { + var e = []; + for (var n in t) e.push(n); + return ( + e.reverse(), + function n() { + for (; e.length; ) { + var r = e.pop(); + if (r in t) return (n.value = r), (n.done = !1), n; + } + return (n.done = !0), n; + } + ); + }), + (t.values = C), + (T.prototype = { + constructor: T, + reset: function(t) { + if ( + ((this.prev = 0), + (this.next = 0), + (this.sent = this._sent = e), + (this.done = !1), + (this.delegate = null), + (this.method = 'next'), + (this.arg = e), + this.tryEntries.forEach(A), + !t) + ) + for (var n in this) + 't' === n.charAt(0) && + r.call(this, n) && + !isNaN(+n.slice(1)) && + (this[n] = e); + }, + stop: function() { + this.done = !0; + var t = this.tryEntries[0].completion; + if ('throw' === t.type) throw t.arg; + return this.rval; + }, + dispatchException: function(t) { + if (this.done) throw t; + var n = this; + function i(r, i) { + return ( + (s.type = 'throw'), + (s.arg = t), + (n.next = r), + i && ((n.method = 'next'), (n.arg = e)), + !!i + ); + } + for (var o = this.tryEntries.length - 1; o >= 0; --o) { + var a = this.tryEntries[o], + s = a.completion; + if ('root' === a.tryLoc) return i('end'); + if (a.tryLoc <= this.prev) { + var u = r.call(a, 'catchLoc'), + l = r.call(a, 'finallyLoc'); + if (u && l) { + if (this.prev < a.catchLoc) return i(a.catchLoc, !0); + if (this.prev < a.finallyLoc) return i(a.finallyLoc); + } else if (u) { + if (this.prev < a.catchLoc) return i(a.catchLoc, !0); + } else { + if (!l) + throw new Error('try statement without catch or finally'); + if (this.prev < a.finallyLoc) return i(a.finallyLoc); + } + } + } + }, + abrupt: function(t, e) { + for (var n = this.tryEntries.length - 1; n >= 0; --n) { + var i = this.tryEntries[n]; + if ( + i.tryLoc <= this.prev && + r.call(i, 'finallyLoc') && + this.prev < i.finallyLoc + ) { + var o = i; + break; + } + } + o && + ('break' === t || 'continue' === t) && + o.tryLoc <= e && + e <= o.finallyLoc && + (o = null); + var a = o ? o.completion : {}; + return ( + (a.type = t), + (a.arg = e), + o + ? ((this.method = 'next'), (this.next = o.finallyLoc), p) + : this.complete(a) + ); + }, + complete: function(t, e) { + if ('throw' === t.type) throw t.arg; + return ( + 'break' === t.type || 'continue' === t.type + ? (this.next = t.arg) + : 'return' === t.type + ? ((this.rval = this.arg = t.arg), + (this.method = 'return'), + (this.next = 'end')) + : 'normal' === t.type && e && (this.next = e), + p + ); + }, + finish: function(t) { + for (var e = this.tryEntries.length - 1; e >= 0; --e) { + var n = this.tryEntries[e]; + if (n.finallyLoc === t) + return this.complete(n.completion, n.afterLoc), A(n), p; + } + }, + catch: function(t) { + for (var e = this.tryEntries.length - 1; e >= 0; --e) { + var n = this.tryEntries[e]; + if (n.tryLoc === t) { + var r = n.completion; + if ('throw' === r.type) { + var i = r.arg; + A(n); + } + return i; + } + } + throw new Error('illegal catch attempt'); + }, + delegateYield: function(t, n, r) { + return ( + (this.delegate = { iterator: C(t), resultName: n, nextLoc: r }), + 'next' === this.method && (this.arg = e), + p + ); + } + }), + t + ); + })(t.exports); + try { + regeneratorRuntime = r; + } catch (t) { + Function('r', 'regeneratorRuntime = r')(r); + } + }, + function(t, e) { + Prism.languages.clike = { + comment: [ + { pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, lookbehind: !0 }, + { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 } + ], + string: { + pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, + greedy: !0 + }, + 'class-name': { + pattern: /((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i, + lookbehind: !0, + inside: { punctuation: /[.\\]/ } + }, + keyword: /\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/, + boolean: /\b(?:true|false)\b/, + function: /\w+(?=\()/, + number: /\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i, + operator: /--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/, + punctuation: /[{}[\];(),.:]/ + }; + }, + function(t, e) { + (Prism.languages.markup = { + comment: //, + prolog: /<\?[\s\S]+?\?>/, + doctype: //i, + cdata: //i, + tag: { + pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s\/>])))+)?\s*\/?>/i, + greedy: !0, + inside: { + tag: { + pattern: /^<\/?[^\s>\/]+/i, + inside: { punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/ } + }, + 'attr-value': { + pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/i, + inside: { + punctuation: [ + /^=/, + { pattern: /^(\s*)["']|["']$/, lookbehind: !0 } + ] + } + }, + punctuation: /\/?>/, + 'attr-name': { + pattern: /[^\s>\/]+/, + inside: { namespace: /^[^\s>\/:]+:/ } + } + } + }, + entity: /&#?[\da-z]{1,8};/i + }), + (Prism.languages.markup.tag.inside['attr-value'].inside.entity = + Prism.languages.markup.entity), + Prism.hooks.add('wrap', function(t) { + 'entity' === t.type && + (t.attributes.title = t.content.replace(/&/, '&')); + }), + Object.defineProperty(Prism.languages.markup.tag, 'addInlined', { + value: function(t, e) { + var n = {}; + (n['language-' + e] = { + pattern: /(^$)/i, + lookbehind: !0, + inside: Prism.languages[e] + }), + (n.cdata = /^$/i); + var r = { + 'included-cdata': { + pattern: //i, + inside: n + } + }; + r['language-' + e] = { + pattern: /[\s\S]+/, + inside: Prism.languages[e] + }; + var i = {}; + (i[t] = { + pattern: RegExp( + /(<__[\s\S]*?>)(?:\s*|[\s\S])*?(?=<\/__>)/.source.replace( + /__/g, + t + ), + 'i' + ), + lookbehind: !0, + greedy: !0, + inside: r + }), + Prism.languages.insertBefore('markup', 'cdata', i); + } + }), + (Prism.languages.xml = Prism.languages.extend('markup', {})), + (Prism.languages.html = Prism.languages.markup), + (Prism.languages.mathml = Prism.languages.markup), + (Prism.languages.svg = Prism.languages.markup); + }, + function(t, e) { + (Prism.languages.javascript = Prism.languages.extend('clike', { + 'class-name': [ + Prism.languages.clike['class-name'], + { + pattern: /(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/, + lookbehind: !0 + } + ], + keyword: [ + { pattern: /((?:^|})\s*)(?:catch|finally)\b/, lookbehind: !0 }, + { + pattern: /(^|[^.])\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/, + lookbehind: !0 + } + ], + number: /\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/, + function: /#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/, + operator: /-[-=]?|\+[+=]?|!=?=?|<>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/ + })), + (Prism.languages.javascript[ + 'class-name' + ][0].pattern = /(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/), + Prism.languages.insertBefore('javascript', 'keyword', { + regex: { + pattern: /((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^\/\\\[\r\n])+\/[gimyus]{0,6}(?=\s*($|[\r\n,.;})\]]))/, + lookbehind: !0, + greedy: !0 + }, + 'function-variable': { + pattern: /#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/, + alias: 'function' + }, + parameter: [ + { + pattern: /(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/, + lookbehind: !0, + inside: Prism.languages.javascript + }, + { + pattern: /[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i, + inside: Prism.languages.javascript + }, + { + pattern: /(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/, + lookbehind: !0, + inside: Prism.languages.javascript + }, + { + pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/, + lookbehind: !0, + inside: Prism.languages.javascript + } + ], + constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/ + }), + Prism.languages.insertBefore('javascript', 'string', { + 'template-string': { + pattern: /`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/, + greedy: !0, + inside: { + 'template-punctuation': { pattern: /^`|`$/, alias: 'string' }, + interpolation: { + pattern: /((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/, + lookbehind: !0, + inside: { + 'interpolation-punctuation': { + pattern: /^\${|}$/, + alias: 'punctuation' + }, + rest: Prism.languages.javascript + } + }, + string: /[\s\S]+/ + } + } + }), + Prism.languages.markup && + Prism.languages.markup.tag.addInlined('script', 'javascript'), + (Prism.languages.js = Prism.languages.javascript); + }, + function(t, e) { + !(function(t) { + var e = /("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/; + (t.languages.css = { + comment: /\/\*[\s\S]*?\*\//, + atrule: { + pattern: /@[\w-]+[\s\S]*?(?:;|(?=\s*\{))/, + inside: { rule: /@[\w-]+/ } + }, + url: { + pattern: RegExp('url\\((?:' + e.source + '|[^\n\r()]*)\\)', 'i'), + inside: { function: /^url/i, punctuation: /^\(|\)$/ } + }, + selector: RegExp( + '[^{}\\s](?:[^{};"\']|' + e.source + ')*?(?=\\s*\\{)' + ), + string: { pattern: e, greedy: !0 }, + property: /[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i, + important: /!important\b/i, + function: /[-a-z0-9]+(?=\()/i, + punctuation: /[(){};:,]/ + }), + (t.languages.css.atrule.inside.rest = t.languages.css); + var n = t.languages.markup; + n && + (n.tag.addInlined('style', 'css'), + t.languages.insertBefore( + 'inside', + 'attr-value', + { + 'style-attr': { + pattern: /\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i, + inside: { + 'attr-name': { pattern: /^\s*style/i, inside: n.tag.inside }, + punctuation: /^\s*=\s*['"]|['"]\s*$/, + 'attr-value': { pattern: /.+/i, inside: t.languages.css } + }, + alias: 'language-css' + } + }, + n.tag + )); + })(Prism); + }, + function(t, e, n) { + var r = n(282); + 'string' == typeof r && (r = [[t.i, r, '']]); + var i = { hmr: !0, transform: void 0, insertInto: void 0 }; + n(35)(r, i); + r.locals && (t.exports = r.locals); + }, + function(t, e, n) { + (t.exports = n(34)(!1)).push([ + t.i, + 'pre[class*=language-].line-numbers{position:relative;padding-left:3.8em;counter-reset:a}pre[class*=language-].line-numbers>code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows>span{pointer-events:none;display:block;counter-increment:a}.line-numbers-rows>span:before{content:counter(a);color:#999;display:block;padding-right:.8em;text-align:right}', + '' + ]); + }, + function(t, e) { + t.exports = function(t) { + var e = 'undefined' != typeof window && window.location; + if (!e) throw new Error('fixUrls requires window.location'); + if (!t || 'string' != typeof t) return t; + var n = e.protocol + '//' + e.host, + r = n + e.pathname.replace(/\/[^\/]*$/, '/'); + return t.replace( + /url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, + function(t, e) { + var i, + o = e + .trim() + .replace(/^"(.*)"$/, function(t, e) { + return e; + }) + .replace(/^'(.*)'$/, function(t, e) { + return e; + }); + return /^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o) + ? t + : ((i = + 0 === o.indexOf('//') + ? o + : 0 === o.indexOf('/') + ? n + o + : r + o.replace(/^\.\//, '')), + 'url('https://github.com/+%20JSON.stringify(i) + ')'); + } + ); + }; + }, + function(t, e) { + !(function() { + if ('undefined' != typeof self && self.Prism && self.document) { + var t = /\n(?!$)/g, + e = function(e) { + var r = n(e)['white-space']; + if ('pre-wrap' === r || 'pre-line' === r) { + var i = e.querySelector('code'), + o = e.querySelector('.line-numbers-rows'), + a = e.querySelector('.line-numbers-sizer'), + s = i.textContent.split(t); + a || + (((a = document.createElement('span')).className = + 'line-numbers-sizer'), + i.appendChild(a)), + (a.style.display = 'block'), + s.forEach(function(t, e) { + a.textContent = t || '\n'; + var n = a.getBoundingClientRect().height; + o.children[e].style.height = n + 'px'; }), - (r.prototype.generateColor = function() { - var t = this.config, - e = this.d3, - n = t.data_colors, - r = b(t.color_pattern) - ? t.color_pattern - : e.schemeCategory10, - i = t.data_color, - o = []; - return function(t) { - var e, - a = t.id || (t.data && t.data.id) || t; - return ( - n[a] instanceof Function - ? (e = n[a](t)) - : n[a] - ? (e = n[a]) - : (o.indexOf(a) < 0 && o.push(a), - (e = r[o.indexOf(a) % r.length]), - (n[a] = e)), - i instanceof Function ? i(e, t) : e + (a.textContent = ''), + (a.style.display = 'none'); + } + }, + n = function(t) { + return t + ? window.getComputedStyle + ? getComputedStyle(t) + : t.currentStyle || null + : null; + }; + window.addEventListener('resize', function() { + Array.prototype.forEach.call( + document.querySelectorAll('pre.line-numbers'), + e + ); + }), + Prism.hooks.add('complete', function(n) { + if (n.code) { + var r = n.element, + i = r.parentNode; + if ( + i && + /pre/i.test(i.nodeName) && + !r.querySelector('.line-numbers-rows') + ) { + for ( + var o = !1, a = /(?:^|\s)line-numbers(?:\s|$)/, s = r; + s; + s = s.parentNode + ) + if (a.test(s.className)) { + o = !0; + break; + } + if (o) { + (r.className = r.className.replace(a, ' ')), + a.test(i.className) || (i.className += ' line-numbers'); + var u, + l = n.code.match(t), + c = l ? l.length + 1 : 1, + f = new Array(c + 1).join(''); + (u = document.createElement('span')).setAttribute( + 'aria-hidden', + 'true' + ), + (u.className = 'line-numbers-rows'), + (u.innerHTML = f), + i.hasAttribute('data-start') && + (i.style.counterReset = + 'linenumber ' + + (parseInt(i.getAttribute('data-start'), 10) - 1)), + n.element.appendChild(u), + e(i), + Prism.hooks.run('line-numbers', n); + } + } + } + }), + Prism.hooks.add('line-numbers', function(t) { + (t.plugins = t.plugins || {}), (t.plugins.lineNumbers = !0); + }), + (Prism.plugins.lineNumbers = { + getLine: function(t, e) { + if ( + 'PRE' === t.tagName && + t.classList.contains('line-numbers') + ) { + var n = t.querySelector('.line-numbers-rows'), + r = parseInt(t.getAttribute('data-start'), 10) || 1, + i = r + (n.children.length - 1); + e < r && (e = r), e > i && (e = i); + var o = e - r; + return n.children[o]; + } + } + }); + } + })(); + }, + function(t, e, n) { + var r = n(286); + 'string' == typeof r && (r = [[t.i, r, '']]); + var i = { hmr: !0, transform: void 0, insertInto: void 0 }; + n(35)(r, i); + r.locals && (t.exports = r.locals); + }, + function(t, e, n) { + (t.exports = n(34)(!1)).push([ + t.i, + 'code[class*=language-],pre[class*=language-]{color:#000;background:none;text-shadow:0 1px #fff;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-]::-moz-selection,code[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-]::selection,code[class*=language-] ::selection,pre[class*=language-]::selection,pre[class*=language-] ::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#999}.namespace{opacity:.7}.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color:#905}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#690}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.class-name,.token.function{color:#dd4a68}.token.important,.token.regex,.token.variable{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}', + '' + ]); + }, + function(t, e) { + t.exports = function(t, e) { + if (null == t) return {}; + var n, + r, + i = {}, + o = Object.keys(t); + for (r = 0; r < o.length; r++) + (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); + return i; + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = void 0); + var r = c(n(0)), + i = c(n(7)), + o = c(n(1)), + a = n(125), + s = n(289), + u = n(44), + l = c(n(24)); + function c(t) { + return t && t.__esModule ? t : { default: t }; + } + function f(t) { + return (f = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function(t) { + return typeof t; + } + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t; + })(t); + } + function d(t, e) { + var n = Object.keys(t); + if (Object.getOwnPropertySymbols) { + var r = Object.getOwnPropertySymbols(t); + e && + (r = r.filter(function(e) { + return Object.getOwnPropertyDescriptor(t, e).enumerable; + })), + n.push.apply(n, r); + } + return n; + } + function h(t) { + for (var e = 1; e < arguments.length; e++) { + var n = null != arguments[e] ? arguments[e] : {}; + e % 2 + ? d(n, !0).forEach(function(e) { + y(t, e, n[e]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) + : d(n).forEach(function(e) { + Object.defineProperty( + t, + e, + Object.getOwnPropertyDescriptor(n, e) + ); + }); + } + return t; + } + function p(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + function g(t) { + return (g = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + })(t); + } + function m(t) { + if (void 0 === t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return t; + } + function v(t, e) { + return (v = + Object.setPrototypeOf || + function(t, e) { + return (t.__proto__ = e), t; + })(t, e); + } + function y(t, e, n) { + return ( + e in t + ? Object.defineProperty(t, e, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (t[e] = n), + t + ); + } + var b = (function(t) { + function e() { + var t, n; + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + })(this, e); + for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) + i[o] = arguments[o]; + return ( + (n = (function(t, e) { + return !e || ('object' !== f(e) && 'function' != typeof e) + ? m(t) + : e; + })(this, (t = g(e)).call.apply(t, [this].concat(i)))), + y(m(n), 'state', { resizing: null, dragging: null, className: '' }), + y(m(n), 'currentNode', void 0), + y(m(n), 'onDragStart', function(t, e) { + var r = e.node; + if (n.props.onDragStart) { + var i = { top: 0, left: 0 }, + o = r.offsetParent; + if (o) { + var a = o.getBoundingClientRect(), + s = r.getBoundingClientRect(), + u = s.left / n.props.transformScale, + l = a.left / n.props.transformScale, + c = s.top / n.props.transformScale, + f = a.top / n.props.transformScale; + (i.left = u - l + o.scrollLeft), + (i.top = c - f + o.scrollTop), + n.setState({ dragging: i }); + var d = n.calcXY(i.top, i.left), + h = d.x, + p = d.y; + return ( + n.props.onDragStart && + n.props.onDragStart.call(m(n), n.props.i, h, p, { + e: t, + node: r, + newPosition: i + }) + ); + } + } + }), + y(m(n), 'onDrag', function(t, e) { + var r = e.node, + i = e.deltaX, + o = e.deltaY; + if (n.props.onDrag) { + var a = { top: 0, left: 0 }; + if (!n.state.dragging) + throw new Error('onDrag called before onDragStart.'); + (a.left = n.state.dragging.left + i), + (a.top = n.state.dragging.top + o), + n.setState({ dragging: a }); + var s = n.calcXY(a.top, a.left), + u = s.x, + l = s.y; + return ( + n.props.onDrag && + n.props.onDrag.call(m(n), n.props.i, u, l, { + e: t, + node: r, + newPosition: a + }) + ); + } + }), + y(m(n), 'onDragStop', function(t, e) { + var r = e.node; + if (n.props.onDragStop) { + var i = { top: 0, left: 0 }; + if (!n.state.dragging) + throw new Error('onDragEnd called before onDragStart.'); + (i.left = n.state.dragging.left), + (i.top = n.state.dragging.top), + n.setState({ dragging: null }); + var o = n.calcXY(i.top, i.left), + a = o.x, + s = o.y; + return ( + n.props.onDragStop && + n.props.onDragStop.call(m(n), n.props.i, a, s, { + e: t, + node: r, + newPosition: i + }) + ); + } + }), + y(m(n), 'onResizeStop', function(t, e) { + n.onResizeHandler(t, e, 'onResizeStop'); + }), + y(m(n), 'onResizeStart', function(t, e) { + n.onResizeHandler(t, e, 'onResizeStart'); + }), + y(m(n), 'onResize', function(t, e) { + n.onResizeHandler(t, e, 'onResize'); + }), + n + ); + } + var n, o, c; + return ( + (function(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { value: t, writable: !0, configurable: !0 } + })), + e && v(t, e); + })(e, t), + (n = e), + (o = [ + { + key: 'componentDidUpdate', + value: function(t) { + this.props.droppingPosition && + t.droppingPosition && + this.moveDroppingItem(t); + } + }, + { + key: 'moveDroppingItem', + value: function(t) { + var e = this.props.droppingPosition, + n = this.state.dragging; + if (e && t.droppingPosition) { + this.currentNode || + (this.currentNode = i.default.findDOMNode(this)); + var r = + (n && e.x !== t.droppingPosition.x) || + e.y !== t.droppingPosition.y; + if (n) { + if (r) { + var o = e.x - n.left, + a = e.y - n.top; + this.onDrag(e.e, { + node: this.currentNode, + deltaX: o, + deltaY: a + }); + } + } else + this.onDragStart(e.e, { + node: this.currentNode, + deltaX: e.x, + deltaY: e.y + }); + } + } + }, + { + key: 'calcColWidth', + value: function() { + var t = this.props, + e = t.margin, + n = t.containerPadding, + r = t.containerWidth, + i = t.cols; + return (r - e[0] * (i - 1) - 2 * n[0]) / i; + } + }, + { + key: 'calcPosition', + value: function(t, e, n, r, i) { + var o = this.props, + a = o.margin, + s = o.containerPadding, + u = o.rowHeight, + l = this.calcColWidth(), + c = {}; + return ( + i && i.resizing + ? ((c.width = Math.round(i.resizing.width)), + (c.height = Math.round(i.resizing.height))) + : ((c.width = + n === 1 / 0 + ? n + : Math.round(l * n + Math.max(0, n - 1) * a[0])), + (c.height = + r === 1 / 0 + ? r + : Math.round(u * r + Math.max(0, r - 1) * a[1]))), + i && i.dragging + ? ((c.top = Math.round(i.dragging.top)), + (c.left = Math.round(i.dragging.left))) + : ((c.top = Math.round((u + a[1]) * e + s[1])), + (c.left = Math.round((l + a[0]) * t + s[0]))), + c + ); + } + }, + { + key: 'calcXY', + value: function(t, e) { + var n = this.props, + r = n.margin, + i = n.cols, + o = n.rowHeight, + a = n.w, + s = n.h, + u = n.maxRows, + l = this.calcColWidth(), + c = Math.round((e - r[0]) / (l + r[0])), + f = Math.round((t - r[1]) / (o + r[1])); + return { + x: (c = Math.max(Math.min(c, i - a), 0)), + y: (f = Math.max(Math.min(f, u - s), 0)) + }; + } + }, + { + key: 'calcWH', + value: function(t) { + var e = t.height, + n = t.width, + r = this.props, + i = r.margin, + o = r.maxRows, + a = r.cols, + s = r.rowHeight, + u = r.x, + l = r.y, + c = this.calcColWidth(), + f = Math.round((n + i[0]) / (c + i[0])), + d = Math.round((e + i[1]) / (s + i[1])); + return { + w: (f = Math.max(Math.min(f, a - u), 0)), + h: (d = Math.max(Math.min(d, o - l), 0)) + }; + } + }, + { + key: 'createStyle', + value: function(t) { + var e, + n = this.props, + r = n.usePercentages, + i = n.containerWidth; + return ( + n.useCSSTransforms + ? (e = (0, u.setTransform)(t)) + : ((e = (0, u.setTopLeft)(t)), + r && + ((e.left = (0, u.perc)(t.left / i)), + (e.width = (0, u.perc)(t.width / i)))), + e + ); + } + }, + { + key: 'mixinDraggable', + value: function(t) { + return r.default.createElement( + a.DraggableCore, + { + onStart: this.onDragStart, + onDrag: this.onDrag, + onStop: this.onDragStop, + handle: this.props.handle, + cancel: + '.react-resizable-handle' + + (this.props.cancel ? ',' + this.props.cancel : ''), + scale: this.props.transformScale + }, + t + ); + } + }, + { + key: 'mixinResizable', + value: function(t, e) { + var n = this.props, + i = n.cols, + o = n.x, + a = n.minW, + u = n.minH, + l = n.maxW, + c = n.maxH, + f = this.calcPosition(0, 0, i - o, 0).width, + d = this.calcPosition(0, 0, a, u), + h = this.calcPosition(0, 0, l, c), + p = [d.width, d.height], + g = [Math.min(h.width, f), Math.min(h.height, 1 / 0)]; + return r.default.createElement( + s.Resizable, + { + width: e.width, + height: e.height, + minConstraints: p, + maxConstraints: g, + onResizeStop: this.onResizeStop, + onResizeStart: this.onResizeStart, + onResize: this.onResize + }, + t + ); + } + }, + { + key: 'onResizeHandler', + value: function(t, e, n) { + var r = e.node, + i = e.size, + o = this.props[n]; + if (o) { + var a = this.props, + s = a.cols, + u = a.x, + l = a.i, + c = a.maxW, + f = a.minW, + d = a.maxH, + h = a.minH, + p = this.calcWH(i), + g = p.w, + m = p.h; + (g = Math.min(g, s - u)), + (g = Math.max(g, 1)), + (g = Math.max(Math.min(g, c), f)), + (m = Math.max(Math.min(m, d), h)), + this.setState({ + resizing: 'onResizeStop' === n ? null : i + }), + o.call(this, l, g, m, { e: t, node: r, size: i }); + } + } + }, + { + key: 'render', + value: function() { + var t = this.props, + e = t.x, + n = t.y, + i = t.w, + o = t.h, + a = t.isDraggable, + s = t.isResizable, + u = t.droppingPosition, + c = t.useCSSTransforms, + f = this.calcPosition(e, n, i, o, this.state), + d = r.default.Children.only(this.props.children), + p = r.default.cloneElement(d, { + className: (0, l.default)( + 'react-grid-item', + d.props.className, + this.props.className, + { + static: this.props.static, + resizing: Boolean(this.state.resizing), + 'react-draggable': a, + 'react-draggable-dragging': Boolean( + this.state.dragging + ), + dropping: Boolean(u), + cssTransforms: c + } + ), + style: h( + {}, + this.props.style, + {}, + d.props.style, + {}, + this.createStyle(f) + ) + }); + return ( + s && (p = this.mixinResizable(p, f)), + a && (p = this.mixinDraggable(p)), + p + ); + } + } + ]) && p(n.prototype, o), + c && p(n, c), + e + ); + })(r.default.Component); + (e.default = b), + y(b, 'propTypes', { + children: o.default.element, + cols: o.default.number.isRequired, + containerWidth: o.default.number.isRequired, + rowHeight: o.default.number.isRequired, + margin: o.default.array.isRequired, + maxRows: o.default.number.isRequired, + containerPadding: o.default.array.isRequired, + x: o.default.number.isRequired, + y: o.default.number.isRequired, + w: o.default.number.isRequired, + h: o.default.number.isRequired, + minW: function(t, e) { + var n = t[e]; + return 'number' != typeof n + ? new Error('minWidth not Number') + : n > t.w || n > t.maxW + ? new Error('minWidth larger than item width/maxWidth') + : void 0; + }, + maxW: function(t, e) { + var n = t[e]; + return 'number' != typeof n + ? new Error('maxWidth not Number') + : n < t.w || n < t.minW + ? new Error('maxWidth smaller than item width/minWidth') + : void 0; + }, + minH: function(t, e) { + var n = t[e]; + return 'number' != typeof n + ? new Error('minHeight not Number') + : n > t.h || n > t.maxH + ? new Error('minHeight larger than item height/maxHeight') + : void 0; + }, + maxH: function(t, e) { + var n = t[e]; + return 'number' != typeof n + ? new Error('maxHeight not Number') + : n < t.h || n < t.minH + ? new Error('maxHeight smaller than item height/minHeight') + : void 0; + }, + i: o.default.string.isRequired, + onDragStop: o.default.func, + onDragStart: o.default.func, + onDrag: o.default.func, + onResizeStop: o.default.func, + onResizeStart: o.default.func, + onResize: o.default.func, + isDraggable: o.default.bool.isRequired, + isResizable: o.default.bool.isRequired, + static: o.default.bool, + useCSSTransforms: o.default.bool.isRequired, + transformScale: o.default.number, + className: o.default.string, + handle: o.default.string, + cancel: o.default.string, + droppingPosition: o.default.shape({ + e: o.default.object.isRequired, + x: o.default.number.isRequired, + y: o.default.number.isRequired + }) + }), + y(b, 'defaultProps', { + className: '', + cancel: '', + handle: '', + minH: 1, + minW: 1, + maxH: 1 / 0, + maxW: 1 / 0, + transformScale: 1 + }); + }, + function(t, e, n) { + 'use strict'; + (t.exports = function() { + throw new Error( + "Don't instantiate Resizable directly! Use require('react-resizable').Resizable" + ); + }), + (t.exports.Resizable = n(126).default), + (t.exports.ResizableBox = n(291).default); + }, + function(t, e, n) { + 'use strict'; + (e.__esModule = !0), + (e.cloneElement = function(t, e) { + e.style && + t.props.style && + (e.style = (function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = null != arguments[e] ? arguments[e] : {}; + e % 2 + ? o(n, !0).forEach(function(e) { + a(t, e, n[e]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties( + t, + Object.getOwnPropertyDescriptors(n) + ) + : o(n).forEach(function(e) { + Object.defineProperty( + t, + e, + Object.getOwnPropertyDescriptor(n, e) ); - }; - }), - (r.prototype.generateLevelColor = function() { - var t = this.config, - e = t.color_pattern, - n = t.color_threshold, - r = 'value' === n.unit, - i = n.values && n.values.length ? n.values : [], - o = n.max || 100; - return b(n) && b(e) - ? function(t) { - var n, - a = e[e.length - 1]; - for (n = 0; n < i.length; n++) - if ((r ? t : (100 * t) / o) < i[n]) { - a = e[n]; - break; - } - return a; - } - : null; - }), - (r.prototype.getDefaultConfig = function() { - var t = { - bindto: '#chart', - svg_classname: void 0, - size_width: void 0, - size_height: void 0, - padding_left: void 0, - padding_right: void 0, - padding_top: void 0, - padding_bottom: void 0, - resize_auto: !0, - zoom_enabled: !1, - zoom_initialRange: void 0, - zoom_type: 'scroll', - zoom_disableDefaultBehavior: !1, - zoom_privileged: !1, - zoom_rescale: !1, - zoom_onzoom: function() {}, - zoom_onzoomstart: function() {}, - zoom_onzoomend: function() {}, - zoom_x_min: void 0, - zoom_x_max: void 0, - interaction_brighten: !0, - interaction_enabled: !0, - onmouseover: function() {}, - onmouseout: function() {}, - onresize: function() {}, - onresized: function() {}, - oninit: function() {}, - onrendered: function() {}, - transition_duration: 350, - data_epochs: 'epochs', - data_x: void 0, - data_xs: {}, - data_xFormat: '%Y-%m-%d', - data_xLocaltime: !0, - data_xSort: !0, - data_idConverter: function(t) { - return t; - }, - data_names: {}, - data_classes: {}, - data_groups: [], - data_axes: {}, - data_type: void 0, - data_types: {}, - data_labels: {}, - data_order: 'desc', - data_regions: {}, - data_color: void 0, - data_colors: {}, - data_hide: !1, - data_filter: void 0, - data_selection_enabled: !1, - data_selection_grouped: !1, - data_selection_isselectable: function() { - return !0; - }, - data_selection_multiple: !0, - data_selection_draggable: !1, - data_stack_normalize: !1, - data_onclick: function() {}, - data_onmouseover: function() {}, - data_onmouseout: function() {}, - data_onselected: function() {}, - data_onunselected: function() {}, - data_url: void 0, - data_headers: void 0, - data_json: void 0, - data_rows: void 0, - data_columns: void 0, - data_mimeType: void 0, - data_keys: void 0, - data_empty_label_text: '', - subchart_show: !1, - subchart_size_height: 60, - subchart_axis_x_show: !0, - subchart_onbrush: function() {}, - color_pattern: [], - color_threshold: {}, - legend_show: !0, - legend_hide: !1, - legend_position: 'bottom', - legend_inset_anchor: 'top-left', - legend_inset_x: 10, - legend_inset_y: 0, - legend_inset_step: void 0, - legend_item_onclick: void 0, - legend_item_onmouseover: void 0, - legend_item_onmouseout: void 0, - legend_equally: !1, - legend_padding: 0, - legend_item_tile_width: 10, - legend_item_tile_height: 10, - axis_rotated: !1, - axis_x_show: !0, - axis_x_type: 'indexed', - axis_x_localtime: !0, - axis_x_categories: [], - axis_x_tick_centered: !1, - axis_x_tick_format: void 0, - axis_x_tick_culling: {}, - axis_x_tick_culling_max: 10, - axis_x_tick_count: void 0, - axis_x_tick_fit: !0, - axis_x_tick_values: null, - axis_x_tick_rotate: 0, - axis_x_tick_outer: !0, - axis_x_tick_multiline: !0, - axis_x_tick_multilineMax: 0, - axis_x_tick_width: null, - axis_x_max: void 0, - axis_x_min: void 0, - axis_x_padding: {}, - axis_x_height: void 0, - axis_x_selection: void 0, - axis_x_label: {}, - axis_x_inner: void 0, - axis_y_show: !0, - axis_y_type: 'linear', - axis_y_max: void 0, - axis_y_min: void 0, - axis_y_inverted: !1, - axis_y_center: void 0, - axis_y_inner: void 0, - axis_y_label: {}, - axis_y_tick_format: void 0, - axis_y_tick_outer: !0, - axis_y_tick_values: null, - axis_y_tick_rotate: 0, - axis_y_tick_count: void 0, - axis_y_tick_time_type: void 0, - axis_y_tick_time_interval: void 0, - axis_y_padding: {}, - axis_y_default: void 0, - axis_y2_show: !1, - axis_y2_type: 'linear', - axis_y2_max: void 0, - axis_y2_min: void 0, - axis_y2_inverted: !1, - axis_y2_center: void 0, - axis_y2_inner: void 0, - axis_y2_label: {}, - axis_y2_tick_format: void 0, - axis_y2_tick_outer: !0, - axis_y2_tick_values: null, - axis_y2_tick_count: void 0, - axis_y2_padding: {}, - axis_y2_default: void 0, - grid_x_show: !1, - grid_x_type: 'tick', - grid_x_lines: [], - grid_y_show: !1, - grid_y_lines: [], - grid_y_ticks: 10, - grid_focus_show: !0, - grid_lines_front: !0, - point_show: !0, - point_r: 2.5, - point_sensitivity: 10, - point_focus_expand_enabled: !0, - point_focus_expand_r: void 0, - point_select_r: void 0, - line_connectNull: !1, - line_step_type: 'step', - bar_width: void 0, - bar_width_ratio: 0.6, - bar_width_max: void 0, - bar_zerobased: !0, - bar_space: 0, - area_zerobased: !0, - area_above: !1, - pie_label_show: !0, - pie_label_format: void 0, - pie_label_threshold: 0.05, - pie_label_ratio: void 0, - pie_expand: {}, - pie_expand_duration: 50, - pie_padAngle: 0, - gauge_fullCircle: !1, - gauge_label_show: !0, - gauge_labelLine_show: !0, - gauge_label_format: void 0, - gauge_min: 0, - gauge_max: 100, - gauge_startingAngle: (-1 * Math.PI) / 2, - gauge_label_extents: void 0, - gauge_units: void 0, - gauge_width: void 0, - gauge_arcs_minWidth: 5, - gauge_expand: {}, - gauge_expand_duration: 50, - donut_label_show: !0, - donut_label_format: void 0, - donut_label_threshold: 0.05, - donut_label_ratio: void 0, - donut_width: void 0, - donut_title: '', - donut_expand: {}, - donut_expand_duration: 50, - donut_padAngle: 0, - spline_interpolation_type: 'cardinal', - stanford_lines: [], - stanford_regions: [], - stanford_texts: [], - stanford_scaleMin: void 0, - stanford_scaleMax: void 0, - stanford_scaleWidth: void 0, - stanford_scaleFormat: void 0, - stanford_scaleValues: void 0, - stanford_colors: void 0, - stanford_padding: { - top: 0, - right: 0, - bottom: 0, - left: 0 - }, - regions: [], - tooltip_show: !0, - tooltip_grouped: !0, - tooltip_order: void 0, - tooltip_format_title: void 0, - tooltip_format_name: void 0, - tooltip_format_value: void 0, - tooltip_horizontal: void 0, - tooltip_position: void 0, - tooltip_contents: function(t, e, n, r) { - return this.getTooltipContent - ? this.getTooltipContent(t, e, n, r) - : ''; - }, - tooltip_init_show: !1, - tooltip_init_x: 0, - tooltip_init_position: { top: '0px', left: '50px' }, - tooltip_onshow: function() {}, - tooltip_onhide: function() {}, - title_text: void 0, - title_padding: { top: 0, right: 0, bottom: 0, left: 0 }, - title_position: 'top-center' - }; - return ( - Object.keys(this.additionalConfig).forEach(function(e) { - t[e] = this.additionalConfig[e]; - }, this), - t - ); - }), - (r.prototype.additionalConfig = {}), - (r.prototype.loadConfig = function(e) { - var n, - r, - i, - o = this.config; - Object.keys(o).forEach(function(a) { - (n = e), - (r = a.split('_')), - (i = (function e() { - var i = r.shift(); - return i && n && 'object' === t(n) && i in n - ? ((n = n[i]), e()) - : i - ? void 0 - : n; - })()), - d(i) && (o[a] = i); }); - }), - (r.prototype.convertUrlToData = function(t, e, n, r, i) { - var o, - a, - s = this, - u = e || 'csv'; - 'json' === u - ? ((o = s.d3.json), (a = s.convertJsonToData)) - : 'tsv' === u - ? ((o = s.d3.tsv), (a = s.convertXsvToData)) - : ((o = s.d3.csv), (a = s.convertXsvToData)), - o(t, n) - .then(function(t) { - i.call(s, a.call(s, t, r)); + } + return t; + })({}, t.props.style, {}, e.style)); + e.className && + t.props.className && + (e.className = t.props.className + ' ' + e.className); + return i.default.cloneElement(t, e); + }); + var r, + i = (r = n(0)) && r.__esModule ? r : { default: r }; + function o(t, e) { + var n = Object.keys(t); + if (Object.getOwnPropertySymbols) { + var r = Object.getOwnPropertySymbols(t); + e && + (r = r.filter(function(e) { + return Object.getOwnPropertyDescriptor(t, e).enumerable; + })), + n.push.apply(n, r); + } + return n; + } + function a(t, e, n) { + return ( + e in t + ? Object.defineProperty(t, e, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (t[e] = n), + t + ); + } + }, + function(t, e, n) { + 'use strict'; + (e.__esModule = !0), (e.default = void 0); + var r = a(n(0)), + i = a(n(1)), + o = a(n(126)); + function a(t) { + return t && t.__esModule ? t : { default: t }; + } + function s() { + return (s = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); + } + return t; + }).apply(this, arguments); + } + function u(t) { + if (void 0 === t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return t; + } + function l(t, e, n) { + return ( + e in t + ? Object.defineProperty(t, e, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (t[e] = n), + t + ); + } + var c = (function(t) { + var e, n; + function i() { + for (var e, n = arguments.length, r = new Array(n), i = 0; i < n; i++) + r[i] = arguments[i]; + return ( + l(u((e = t.call.apply(t, [this].concat(r)) || this)), 'state', { + width: e.props.width, + height: e.props.height, + propsWidth: e.props.width, + propsHeight: e.props.height + }), + l(u(e), 'onResize', function(t, n) { + var r = n.size; + r.width, r.height; + e.props.onResize + ? (t.persist && t.persist(), + e.setState(r, function() { + return e.props.onResize && e.props.onResize(t, n); + })) + : e.setState(r); + }), + e + ); + } + return ( + (n = t), + ((e = i).prototype = Object.create(n.prototype)), + (e.prototype.constructor = e), + (e.__proto__ = n), + (i.getDerivedStateFromProps = function(t, e) { + if (e.propsWidth !== t.width || e.propsHeight !== t.height) + return { + width: t.width, + height: t.height, + propsWidth: t.width, + propsHeight: t.height + }; + }), + (i.prototype.render = function() { + var t = this.props, + e = t.handle, + n = t.handleSize, + i = (t.onResize, t.onResizeStart), + a = t.onResizeStop, + u = t.draggableOpts, + l = t.minConstraints, + c = t.maxConstraints, + f = t.lockAspectRatio, + d = t.axis, + h = (t.width, t.height, t.resizeHandles), + p = (function(t, e) { + if (null == t) return {}; + var n, + r, + i = {}, + o = Object.keys(t); + for (r = 0; r < o.length; r++) + (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); + return i; + })(t, [ + 'handle', + 'handleSize', + 'onResize', + 'onResizeStart', + 'onResizeStop', + 'draggableOpts', + 'minConstraints', + 'maxConstraints', + 'lockAspectRatio', + 'axis', + 'width', + 'height', + 'resizeHandles' + ]); + return r.default.createElement( + o.default, + { + handle: e, + handleSize: n, + width: this.state.width, + height: this.state.height, + onResizeStart: i, + onResize: this.onResize, + onResizeStop: a, + draggableOpts: u, + minConstraints: l, + maxConstraints: c, + lockAspectRatio: f, + axis: d, + resizeHandles: h + }, + r.default.createElement( + 'div', + s( + { + style: { + width: this.state.width + 'px', + height: this.state.height + 'px' + } + }, + p + ) + ) + ); + }), + i + ); + })(r.default.Component); + (e.default = c), + l(c, 'propTypes', { + height: i.default.number, + width: i.default.number + }), + l(c, 'defaultProps', { handleSize: [20, 20] }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = void 0); + var r = l(n(0)), + i = l(n(1)), + o = l(n(81)), + a = n(44), + s = n(127), + u = l(n(124)); + function l(t) { + return t && t.__esModule ? t : { default: t }; + } + function c(t) { + return (c = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function(t) { + return typeof t; + } + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t; + })(t); + } + function f() { + return (f = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); + } + return t; + }).apply(this, arguments); + } + function d(t, e) { + if (null == t) return {}; + var n, + r, + i = (function(t, e) { + if (null == t) return {}; + var n, + r, + i = {}, + o = Object.keys(t); + for (r = 0; r < o.length; r++) + (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); + return i; + })(t, e); + if (Object.getOwnPropertySymbols) { + var o = Object.getOwnPropertySymbols(t); + for (r = 0; r < o.length; r++) + (n = o[r]), + e.indexOf(n) >= 0 || + (Object.prototype.propertyIsEnumerable.call(t, n) && + (i[n] = t[n])); + } + return i; + } + function h(t, e) { + var n = Object.keys(t); + if (Object.getOwnPropertySymbols) { + var r = Object.getOwnPropertySymbols(t); + e && + (r = r.filter(function(e) { + return Object.getOwnPropertyDescriptor(t, e).enumerable; + })), + n.push.apply(n, r); + } + return n; + } + function p(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + function g(t) { + return (g = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + })(t); + } + function m(t) { + if (void 0 === t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return t; + } + function v(t, e) { + return (v = + Object.setPrototypeOf || + function(t, e) { + return (t.__proto__ = e), t; + })(t, e); + } + function y(t, e, n) { + return ( + e in t + ? Object.defineProperty(t, e, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (t[e] = n), + t + ); + } + var b = function(t) { + return Object.prototype.toString.call(t); + }; + function _(t, e) { + return Array.isArray(t) ? t : t[e]; + } + var x = (function(t) { + function e() { + var t, n; + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + })(this, e); + for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) + i[o] = arguments[o]; + return ( + (n = (function(t, e) { + return !e || ('object' !== c(e) && 'function' != typeof e) + ? m(t) + : e; + })(this, (t = g(e)).call.apply(t, [this].concat(i)))), + y(m(n), 'state', n.generateInitialState()), + y(m(n), 'onLayoutChange', function(t) { + n.props.onLayoutChange( + t, + (function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = null != arguments[e] ? arguments[e] : {}; + e % 2 + ? h(n, !0).forEach(function(e) { + y(t, e, n[e]); }) - .catch(function(t) { - throw t; + : Object.getOwnPropertyDescriptors + ? Object.defineProperties( + t, + Object.getOwnPropertyDescriptors(n) + ) + : h(n).forEach(function(e) { + Object.defineProperty( + t, + e, + Object.getOwnPropertyDescriptor(n, e) + ); }); + } + return t; + })({}, n.props.layouts, y({}, n.state.breakpoint, t)) + ); + }), + n + ); + } + var n, i, l; + return ( + (function(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { value: t, writable: !0, configurable: !0 } + })), + e && v(t, e); + })(e, t), + (n = e), + (l = [ + { + key: 'getDerivedStateFromProps', + value: function(t, e) { + if (!(0, o.default)(t.layouts, e.layouts)) { + var n = e.breakpoint, + r = e.cols; + return { + layout: (0, s.findOrGenerateResponsiveLayout)( + t.layouts, + t.breakpoints, + n, + n, + r, + t.compactType + ), + layouts: t.layouts + }; + } + return null; + } + } + ]), + (i = [ + { + key: 'generateInitialState', + value: function() { + var t = this.props, + e = t.width, + n = t.breakpoints, + r = t.layouts, + i = t.cols, + o = (0, s.getBreakpointFromWidth)(n, e), + a = (0, s.getColsFromBreakpoint)(o, i), + u = + !1 === this.props.verticalCompact + ? null + : this.props.compactType; + return { + layout: (0, s.findOrGenerateResponsiveLayout)( + r, + n, + o, + o, + a, + u + ), + breakpoint: o, + cols: a + }; + } + }, + { + key: 'componentDidUpdate', + value: function(t) { + (this.props.width == t.width && + this.props.breakpoint === t.breakpoint && + (0, o.default)(this.props.breakpoints, t.breakpoints) && + (0, o.default)(this.props.cols, t.cols)) || + this.onWidthChange(this.props); + } + }, + { + key: 'onWidthChange', + value: function(t) { + var e = t.breakpoints, + n = t.cols, + r = t.layouts, + i = t.compactType, + o = + t.breakpoint || + (0, s.getBreakpointFromWidth)(t.breakpoints, t.width), + u = this.state.breakpoint, + l = (0, s.getColsFromBreakpoint)(o, n); + if ( + u !== o || + this.props.breakpoints !== e || + this.props.cols !== n + ) { + u in r || (r[u] = (0, a.cloneLayout)(this.state.layout)); + var c = (0, s.findOrGenerateResponsiveLayout)( + r, + e, + o, + u, + l, + i + ); + (c = (0, a.synchronizeLayoutWithChildren)( + c, + t.children, + l, + i + )), + (r[o] = c), + this.props.onLayoutChange(c, r), + this.props.onBreakpointChange(o, l), + this.setState({ breakpoint: o, layout: c, cols: l }); + } + var f = _(t.margin, o), + d = _(t.containerPadding, o); + this.props.onWidthChange(t.width, f, l, d); + } + }, + { + key: 'render', + value: function() { + var t = this.props, + e = + (t.breakpoint, t.breakpoints, t.cols, t.layouts, t.margin), + n = t.containerPadding, + i = + (t.onBreakpointChange, + t.onLayoutChange, + t.onWidthChange, + d(t, [ + 'breakpoint', + 'breakpoints', + 'cols', + 'layouts', + 'margin', + 'containerPadding', + 'onBreakpointChange', + 'onLayoutChange', + 'onWidthChange' + ])); + return r.default.createElement( + u.default, + f({}, i, { + margin: _(e, this.state.breakpoint), + containerPadding: _(n, this.state.breakpoint), + onLayoutChange: this.onLayoutChange, + layout: this.state.layout, + cols: this.state.cols + }) + ); + } + } + ]) && p(n.prototype, i), + l && p(n, l), + e + ); + })(r.default.Component); + (e.default = x), + y(x, 'propTypes', { + breakpoint: i.default.string, + breakpoints: i.default.object, + cols: i.default.object, + margin: i.default.oneOfType([i.default.array, i.default.object]), + containerPadding: i.default.oneOfType([ + i.default.array, + i.default.object + ]), + layouts: function(t, e) { + if ('[object Object]' !== b(t[e])) + throw new Error( + 'Layout property must be an object. Received: ' + b(t[e]) + ); + Object.keys(t[e]).forEach(function(e) { + if (!(e in t.breakpoints)) + throw new Error( + 'Each key in layouts must align with a key in breakpoints.' + ); + (0, a.validateLayout)(t.layouts[e], 'layouts.' + e); + }); + }, + width: i.default.number.isRequired, + onBreakpointChange: i.default.func, + onLayoutChange: i.default.func, + onWidthChange: i.default.func + }), + y(x, 'defaultProps', { + breakpoints: { lg: 1200, md: 996, sm: 768, xs: 480, xxs: 0 }, + cols: { lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 }, + layouts: {}, + margin: [10, 10], + containerPadding: { + lg: null, + md: null, + sm: null, + xs: null, + xxs: null + }, + onBreakpointChange: a.noop, + onLayoutChange: a.noop, + onWidthChange: a.noop + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t) { + var e, n; + return ( + (n = e = (function(e) { + function n() { + var t, e; + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + })(this, n); + for ( + var r = arguments.length, i = new Array(r), a = 0; + a < r; + a++ + ) + i[a] = arguments[a]; + return ( + (e = (function(t, e) { + if (e && ('object' === s(e) || 'function' == typeof e)) + return e; + return f(t); + })(this, (t = c(n)).call.apply(t, [this].concat(i)))), + h(f(e), 'state', { width: 1280 }), + h(f(e), 'mounted', !1), + h(f(e), 'onWindowResize', function() { + if (e.mounted) { + var t = o.default.findDOMNode(f(e)); + t instanceof HTMLElement && + e.setState({ width: t.offsetWidth }); + } }), - (r.prototype.convertXsvToData = function(t) { - var e = t.columns; - return 0 === t.length - ? { - keys: e, - rows: [ - e.reduce(function(t, e) { - return Object.assign( - t, - (function(t, e, n) { - return ( - e in t - ? Object.defineProperty(t, e, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (t[e] = n), - t - ); - })({}, e, null) - ); - }, {}) - ] - } - : { keys: e, rows: [].concat(t) }; - }), - (r.prototype.convertJsonToData = function(t, e) { - var n, - r, - i = this, - o = []; - return ( - e - ? (e.x - ? ((n = e.value.concat(e.x)), - (i.config.data_x = e.x)) - : (n = e.value), - o.push(n), - t.forEach(function(t) { - var e = []; - n.forEach(function(n) { - var r = i.findValueInJson(t, n); - m(r) && (r = null), e.push(r); - }), - o.push(e); - }), - (r = i.convertRowsToData(o))) - : (Object.keys(t).forEach(function(e) { - o.push([e].concat(t[e])); - }), - (r = i.convertColumnsToData(o))), - r + e + ); + } + return ( + (function(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function' ); - }), - (r.prototype.findValueInJson = function(t, e) { - for ( - var n = (e = (e = e.replace(/\[(\w+)\]/g, '.$1')).replace( - /^\./, - '' - )).split('.'), - r = 0; - r < n.length; - ++r - ) { - var i = n[r]; - if (!(i in t)) return; - t = t[i]; + (t.prototype = Object.create(e && e.prototype, { + constructor: { value: t, writable: !0, configurable: !0 } + })), + e && d(t, e); + })(n, e), + (function(t, e, n) { + e && l(t.prototype, e); + n && l(t, n); + })(n, [ + { + key: 'componentDidMount', + value: function() { + (this.mounted = !0), + window.addEventListener('resize', this.onWindowResize), + this.onWindowResize(); + } + }, + { + key: 'componentWillUnmount', + value: function() { + (this.mounted = !1), + window.removeEventListener( + 'resize', + this.onWindowResize + ); + } + }, + { + key: 'render', + value: function() { + var e = this.props, + n = e.measureBeforeMount, + i = (function(t, e) { + if (null == t) return {}; + var n, + r, + i = (function(t, e) { + if (null == t) return {}; + var n, + r, + i = {}, + o = Object.keys(t); + for (r = 0; r < o.length; r++) + (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); + return i; + })(t, e); + if (Object.getOwnPropertySymbols) { + var o = Object.getOwnPropertySymbols(t); + for (r = 0; r < o.length; r++) + (n = o[r]), + e.indexOf(n) >= 0 || + (Object.prototype.propertyIsEnumerable.call( + t, + n + ) && + (i[n] = t[n])); + } + return i; + })(e, ['measureBeforeMount']); + return n && !this.mounted + ? r.default.createElement('div', { + className: this.props.className, + style: this.props.style + }) + : r.default.createElement(t, u({}, i, this.state)); } + } + ]), + n + ); + })(r.default.Component)), + h(e, 'defaultProps', { measureBeforeMount: !1 }), + h(e, 'propTypes', { measureBeforeMount: i.default.bool }), + n + ); + }); + var r = a(n(0)), + i = a(n(1)), + o = a(n(7)); + function a(t) { + return t && t.__esModule ? t : { default: t }; + } + function s(t) { + return (s = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function(t) { + return typeof t; + } + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t; + })(t); + } + function u() { + return (u = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); + } + return t; + }).apply(this, arguments); + } + function l(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + function c(t) { + return (c = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + })(t); + } + function f(t) { + if (void 0 === t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return t; + } + function d(t, e) { + return (d = + Object.setPrototypeOf || + function(t, e) { + return (t.__proto__ = e), t; + })(t, e); + } + function h(t, e, n) { + return ( + e in t + ? Object.defineProperty(t, e, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (t[e] = n), + t + ); + } + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t) { + return ( + 'text' === t.type && /\r?\n/.test(t.data) && '' === t.data.trim() + ); + }); + }, + function(t, e, n) { + 'use strict'; + var r; + Object.defineProperty(e, '__esModule', { value: !0 }); + var i = n(36), + o = l(n(326)), + a = l(n(327)), + s = l(n(333)), + u = l(n(334)); + function l(t) { + return t && t.__esModule ? t : { default: t }; + } + function c(t, e, n) { + return ( + e in t + ? Object.defineProperty(t, e, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (t[e] = n), + t + ); + } + e.default = + (c((r = {}), i.ElementType.Text, o.default), + c(r, i.ElementType.Tag, a.default), + c(r, i.ElementType.Style, s.default), + c(r, i.ElementType.Directive, u.default), + c(r, i.ElementType.Comment, u.default), + c(r, i.ElementType.Script, u.default), + c(r, i.ElementType.CDATA, u.default), + c(r, i.ElementType.Doctype, u.default), + r); + }, + function(t, e, n) { + var r = n(297); + t.exports = function(t) { + if ((t >= 55296 && t <= 57343) || t > 1114111) return '�'; + t in r && (t = r[t]); + var e = ''; + t > 65535 && + ((t -= 65536), + (e += String.fromCharCode(((t >>> 10) & 1023) | 55296)), + (t = 56320 | (1023 & t))); + return (e += String.fromCharCode(t)); + }; + }, + function(t) { + t.exports = JSON.parse( + '{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}' + ); + }, + function(t) { + t.exports = JSON.parse( + '{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}' + ); + }, + function(t) { + t.exports = JSON.parse( + '{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}' + ); + }, + function(t) { + t.exports = JSON.parse( + '{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}' + ); + }, + function(t, e, n) { + 'use strict'; + var r, + i = 'object' == typeof Reflect ? Reflect : null, + o = + i && 'function' == typeof i.apply + ? i.apply + : function(t, e, n) { + return Function.prototype.apply.call(t, e, n); + }; + r = + i && 'function' == typeof i.ownKeys + ? i.ownKeys + : Object.getOwnPropertySymbols + ? function(t) { + return Object.getOwnPropertyNames(t).concat( + Object.getOwnPropertySymbols(t) + ); + } + : function(t) { + return Object.getOwnPropertyNames(t); + }; + var a = + Number.isNaN || + function(t) { + return t != t; + }; + function s() { + s.init.call(this); + } + (t.exports = s), + (s.EventEmitter = s), + (s.prototype._events = void 0), + (s.prototype._eventsCount = 0), + (s.prototype._maxListeners = void 0); + var u = 10; + function l(t) { + return void 0 === t._maxListeners + ? s.defaultMaxListeners + : t._maxListeners; + } + function c(t, e, n, r) { + var i, o, a, s; + if ('function' != typeof n) + throw new TypeError( + 'The "listener" argument must be of type Function. Received type ' + + typeof n + ); + if ( + (void 0 === (o = t._events) + ? ((o = t._events = Object.create(null)), (t._eventsCount = 0)) + : (void 0 !== o.newListener && + (t.emit('newListener', e, n.listener ? n.listener : n), + (o = t._events)), + (a = o[e])), + void 0 === a) + ) + (a = o[e] = n), ++t._eventsCount; + else if ( + ('function' == typeof a + ? (a = o[e] = r ? [n, a] : [a, n]) + : r + ? a.unshift(n) + : a.push(n), + (i = l(t)) > 0 && a.length > i && !a.warned) + ) { + a.warned = !0; + var u = new Error( + 'Possible EventEmitter memory leak detected. ' + + a.length + + ' ' + + String(e) + + ' listeners added. Use emitter.setMaxListeners() to increase limit' + ); + (u.name = 'MaxListenersExceededWarning'), + (u.emitter = t), + (u.type = e), + (u.count = a.length), + (s = u), + console && console.warn && console.warn(s); + } + return t; + } + function f() { + for (var t = [], e = 0; e < arguments.length; e++) t.push(arguments[e]); + this.fired || + (this.target.removeListener(this.type, this.wrapFn), + (this.fired = !0), + o(this.listener, this.target, t)); + } + function d(t, e, n) { + var r = { fired: !1, wrapFn: void 0, target: t, type: e, listener: n }, + i = f.bind(r); + return (i.listener = n), (r.wrapFn = i), i; + } + function h(t, e, n) { + var r = t._events; + if (void 0 === r) return []; + var i = r[e]; + return void 0 === i + ? [] + : 'function' == typeof i + ? n + ? [i.listener || i] + : [i] + : n + ? (function(t) { + for (var e = new Array(t.length), n = 0; n < e.length; ++n) + e[n] = t[n].listener || t[n]; + return e; + })(i) + : g(i, i.length); + } + function p(t) { + var e = this._events; + if (void 0 !== e) { + var n = e[t]; + if ('function' == typeof n) return 1; + if (void 0 !== n) return n.length; + } + return 0; + } + function g(t, e) { + for (var n = new Array(e), r = 0; r < e; ++r) n[r] = t[r]; + return n; + } + Object.defineProperty(s, 'defaultMaxListeners', { + enumerable: !0, + get: function() { + return u; + }, + set: function(t) { + if ('number' != typeof t || t < 0 || a(t)) + throw new RangeError( + 'The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + + t + + '.' + ); + u = t; + } + }), + (s.init = function() { + (void 0 !== this._events && + this._events !== Object.getPrototypeOf(this)._events) || + ((this._events = Object.create(null)), (this._eventsCount = 0)), + (this._maxListeners = this._maxListeners || void 0); + }), + (s.prototype.setMaxListeners = function(t) { + if ('number' != typeof t || t < 0 || a(t)) + throw new RangeError( + 'The value of "n" is out of range. It must be a non-negative number. Received ' + + t + + '.' + ); + return (this._maxListeners = t), this; + }), + (s.prototype.getMaxListeners = function() { + return l(this); + }), + (s.prototype.emit = function(t) { + for (var e = [], n = 1; n < arguments.length; n++) + e.push(arguments[n]); + var r = 'error' === t, + i = this._events; + if (void 0 !== i) r = r && void 0 === i.error; + else if (!r) return !1; + if (r) { + var a; + if ((e.length > 0 && (a = e[0]), a instanceof Error)) throw a; + var s = new Error( + 'Unhandled error.' + (a ? ' (' + a.message + ')' : '') + ); + throw ((s.context = a), s); + } + var u = i[t]; + if (void 0 === u) return !1; + if ('function' == typeof u) o(u, this, e); + else { + var l = u.length, + c = g(u, l); + for (n = 0; n < l; ++n) o(c[n], this, e); + } + return !0; + }), + (s.prototype.addListener = function(t, e) { + return c(this, t, e, !1); + }), + (s.prototype.on = s.prototype.addListener), + (s.prototype.prependListener = function(t, e) { + return c(this, t, e, !0); + }), + (s.prototype.once = function(t, e) { + if ('function' != typeof e) + throw new TypeError( + 'The "listener" argument must be of type Function. Received type ' + + typeof e + ); + return this.on(t, d(this, t, e)), this; + }), + (s.prototype.prependOnceListener = function(t, e) { + if ('function' != typeof e) + throw new TypeError( + 'The "listener" argument must be of type Function. Received type ' + + typeof e + ); + return this.prependListener(t, d(this, t, e)), this; + }), + (s.prototype.removeListener = function(t, e) { + var n, r, i, o, a; + if ('function' != typeof e) + throw new TypeError( + 'The "listener" argument must be of type Function. Received type ' + + typeof e + ); + if (void 0 === (r = this._events)) return this; + if (void 0 === (n = r[t])) return this; + if (n === e || n.listener === e) + 0 == --this._eventsCount + ? (this._events = Object.create(null)) + : (delete r[t], + r.removeListener && + this.emit('removeListener', t, n.listener || e)); + else if ('function' != typeof n) { + for (i = -1, o = n.length - 1; o >= 0; o--) + if (n[o] === e || n[o].listener === e) { + (a = n[o].listener), (i = o); + break; + } + if (i < 0) return this; + 0 === i + ? n.shift() + : (function(t, e) { + for (; e + 1 < t.length; e++) t[e] = t[e + 1]; + t.pop(); + })(n, i), + 1 === n.length && (r[t] = n[0]), + void 0 !== r.removeListener && + this.emit('removeListener', t, a || e); + } + return this; + }), + (s.prototype.off = s.prototype.removeListener), + (s.prototype.removeAllListeners = function(t) { + var e, n, r; + if (void 0 === (n = this._events)) return this; + if (void 0 === n.removeListener) + return ( + 0 === arguments.length + ? ((this._events = Object.create(null)), + (this._eventsCount = 0)) + : void 0 !== n[t] && + (0 == --this._eventsCount + ? (this._events = Object.create(null)) + : delete n[t]), + this + ); + if (0 === arguments.length) { + var i, + o = Object.keys(n); + for (r = 0; r < o.length; ++r) + 'removeListener' !== (i = o[r]) && this.removeAllListeners(i); + return ( + this.removeAllListeners('removeListener'), + (this._events = Object.create(null)), + (this._eventsCount = 0), + this + ); + } + if ('function' == typeof (e = n[t])) this.removeListener(t, e); + else if (void 0 !== e) + for (r = e.length - 1; r >= 0; r--) this.removeListener(t, e[r]); + return this; + }), + (s.prototype.listeners = function(t) { + return h(this, t, !0); + }), + (s.prototype.rawListeners = function(t) { + return h(this, t, !1); + }), + (s.listenerCount = function(t, e) { + return 'function' == typeof t.listenerCount + ? t.listenerCount(e) + : p.call(t, e); + }), + (s.prototype.listenerCount = p), + (s.prototype.eventNames = function() { + return this._eventsCount > 0 ? r(this._events) : []; + }); + }, + function(t, e, n) { + var r = n(132), + i = (t.exports = Object.create(r)), + o = { tagName: 'name' }; + Object.keys(o).forEach(function(t) { + var e = o[t]; + Object.defineProperty(i, t, { + get: function() { + return this[e] || null; + }, + set: function(t) { + return (this[e] = t), t; + } + }); + }); + }, + function(t, e, n) { + var r = n(131), + i = n(133); + function o(t, e) { + this.init(t, e); + } + function a(t, e) { + return i.getElementsByTagName(t, e, !0); + } + function s(t, e) { + return i.getElementsByTagName(t, e, !0, 1)[0]; + } + function u(t, e, n) { + return i.getText(i.getElementsByTagName(t, e, n, 1)).trim(); + } + function l(t, e, n, r, i) { + var o = u(n, r, i); + o && (t[e] = o); + } + n(59)(o, r), (o.prototype.init = r); + var c = function(t) { + return 'rss' === t || 'feed' === t || 'rdf:RDF' === t; + }; + (o.prototype.onend = function() { + var t, + e, + n = {}, + i = s(c, this.dom); + i && + ('feed' === i.name + ? ((e = i.children), + (n.type = 'atom'), + l(n, 'id', 'id', e), + l(n, 'title', 'title', e), + (t = s('link', e)) && + (t = t.attribs) && + (t = t.href) && + (n.link = t), + l(n, 'description', 'subtitle', e), + (t = u('updated', e)) && (n.updated = new Date(t)), + l(n, 'author', 'email', e, !0), + (n.items = a('entry', e).map(function(t) { + var e, + n = {}; + return ( + l(n, 'id', 'id', (t = t.children)), + l(n, 'title', 'title', t), + (e = s('link', t)) && + (e = e.attribs) && + (e = e.href) && + (n.link = e), + (e = u('summary', t) || u('content', t)) && + (n.description = e), + (e = u('updated', t)) && (n.pubDate = new Date(e)), + n + ); + }))) + : ((e = s('channel', i.children).children), + (n.type = i.name.substr(0, 3)), + (n.id = ''), + l(n, 'title', 'title', e), + l(n, 'link', 'link', e), + l(n, 'description', 'description', e), + (t = u('lastBuildDate', e)) && (n.updated = new Date(t)), + l(n, 'author', 'managingEditor', e, !0), + (n.items = a('item', i.children).map(function(t) { + var e, + n = {}; + return ( + l(n, 'id', 'guid', (t = t.children)), + l(n, 'title', 'title', t), + l(n, 'link', 'link', t), + l(n, 'description', 'description', t), + (e = u('pubDate', t)) && (n.pubDate = new Date(e)), + n + ); + })))), + (this.dom = n), + r.prototype._handleCallback.call( + this, + i ? null : Error("couldn't find root of feed") + ); + }), + (t.exports = o); + }, + function(t, e, n) { + var r = n(45), + i = n(305), + o = r.isTag; + t.exports = { + getInnerHTML: function(t, e) { + return t.children + ? t.children + .map(function(t) { + return i(t, e); + }) + .join('') + : ''; + }, + getOuterHTML: i, + getText: function t(e) { + if (Array.isArray(e)) return e.map(t).join(''); + if (o(e)) return 'br' === e.name ? '\n' : t(e.children); + if (e.type === r.CDATA) return t(e.children); + if (e.type === r.Text) return e.data; + return ''; + } + }; + }, + function(t, e, n) { + var r = n(306), + i = n(307), + o = n(311); + (o.elementNames.__proto__ = null), (o.attributeNames.__proto__ = null); + var a = { + __proto__: null, + style: !0, + script: !0, + xmp: !0, + iframe: !0, + noembed: !0, + noframes: !0, + plaintext: !0, + noscript: !0 + }; + var s = { + __proto__: null, + area: !0, + base: !0, + basefont: !0, + br: !0, + col: !0, + command: !0, + embed: !0, + frame: !0, + hr: !0, + img: !0, + input: !0, + isindex: !0, + keygen: !0, + link: !0, + meta: !0, + param: !0, + source: !0, + track: !0, + wbr: !0 + }, + u = (t.exports = function(t, e) { + Array.isArray(t) || t.cheerio || (t = [t]), (e = e || {}); + for (var n = '', i = 0; i < t.length; i++) { + var o = t[i]; + 'root' === o.type + ? (n += u(o.children, e)) + : r.isTag(o) + ? (n += c(o, e)) + : o.type === r.Directive + ? (n += f(o)) + : o.type === r.Comment + ? (n += p(o)) + : o.type === r.CDATA + ? (n += h(o)) + : (n += d(o, e)); + } + return n; + }); + const l = [ + 'mi', + 'mo', + 'mn', + 'ms', + 'mtext', + 'annotation-xml', + 'foreignObject', + 'desc', + 'title' + ]; + function c(t, e) { + 'foreign' === e.xmlMode && + ((t.name = o.elementNames[t.name] || t.name), + t.parent && + l.indexOf(t.parent.name) >= 0 && + (e = Object.assign({}, e, { xmlMode: !1 }))), + !e.xmlMode && + ['svg', 'math'].indexOf(t.name) >= 0 && + (e = Object.assign({}, e, { xmlMode: 'foreign' })); + var n = '<' + t.name, + r = (function(t, e) { + if (t) { + var n, + r = ''; + for (var a in t) + (n = t[a]), + r && (r += ' '), + 'foreign' === e.xmlMode && (a = o.attributeNames[a] || a), + (r += a), + ((null !== n && '' !== n) || e.xmlMode) && + (r += + '="' + + (e.decodeEntities + ? i.encodeXML(n) + : n.replace(/\"/g, '"')) + + '"'); + return r; + } + })(t.attribs, e); + return ( + r && (n += ' ' + r), + !e.xmlMode || (t.children && 0 !== t.children.length) + ? ((n += '>'), + t.children && (n += u(t.children, e)), + (s[t.name] && !e.xmlMode) || (n += '')) + : (n += '/>'), + n + ); + } + function f(t) { + return '<' + t.data + '>'; + } + function d(t, e) { + var n = t.data || ''; + return ( + !e.decodeEntities || + (t.parent && t.parent.name in a) || + (n = i.encodeXML(n)), + n + ); + } + function h(t) { + return ''; + } + function p(t) { + return '\x3c!--' + t.data + '--\x3e'; + } + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.isTag = function(t) { + return 'tag' === t.type || 'script' === t.type || 'style' === t.type; + }), + (e.Text = 'text'), + (e.Directive = 'directive'), + (e.Comment = 'comment'), + (e.Script = 'script'), + (e.Style = 'style'), + (e.Tag = 'tag'), + (e.CDATA = 'cdata'), + (e.Doctype = 'doctype'); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = n(134), + i = n(137); + (e.decode = function(t, e) { + return (!e || e <= 0 ? r.decodeXML : r.decodeHTML)(t); + }), + (e.decodeStrict = function(t, e) { + return (!e || e <= 0 ? r.decodeXML : r.decodeHTMLStrict)(t); + }), + (e.encode = function(t, e) { + return (!e || e <= 0 ? i.encodeXML : i.encodeHTML)(t); + }); + var o = n(137); + (e.encodeXML = o.encodeXML), + (e.encodeHTML = o.encodeHTML), + (e.escape = o.escape), + (e.encodeHTML4 = o.encodeHTML), + (e.encodeHTML5 = o.encodeHTML); + var a = n(134); + (e.decodeXML = a.decodeXML), + (e.decodeHTML = a.decodeHTML), + (e.decodeHTMLStrict = a.decodeHTMLStrict), + (e.decodeHTML4 = a.decodeHTML), + (e.decodeHTML5 = a.decodeHTML), + (e.decodeHTML4Strict = a.decodeHTMLStrict), + (e.decodeHTML5Strict = a.decodeHTMLStrict), + (e.decodeXMLStrict = a.decodeXML); + }, + function(t) { + t.exports = JSON.parse( + '{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}' + ); + }, + function(t, e, n) { + 'use strict'; + var r = + (this && this.__importDefault) || + function(t) { + return t && t.__esModule ? t : { default: t }; + }; + Object.defineProperty(e, '__esModule', { value: !0 }); + var i = r(n(310)); + e.default = function(t) { + if ((t >= 55296 && t <= 57343) || t > 1114111) return '�'; + t in i.default && (t = i.default[t]); + var e = ''; + return ( + t > 65535 && + ((t -= 65536), + (e += String.fromCharCode(((t >>> 10) & 1023) | 55296)), + (t = 56320 | (1023 & t))), + (e += String.fromCharCode(t)) + ); + }; + }, + function(t) { + t.exports = JSON.parse( + '{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}' + ); + }, + function(t) { + t.exports = JSON.parse( + '{"elementNames":{"altglyph":"altGlyph","altglyphdef":"altGlyphDef","altglyphitem":"altGlyphItem","animatecolor":"animateColor","animatemotion":"animateMotion","animatetransform":"animateTransform","clippath":"clipPath","feblend":"feBlend","fecolormatrix":"feColorMatrix","fecomponenttransfer":"feComponentTransfer","fecomposite":"feComposite","feconvolvematrix":"feConvolveMatrix","fediffuselighting":"feDiffuseLighting","fedisplacementmap":"feDisplacementMap","fedistantlight":"feDistantLight","fedropshadow":"feDropShadow","feflood":"feFlood","fefunca":"feFuncA","fefuncb":"feFuncB","fefuncg":"feFuncG","fefuncr":"feFuncR","fegaussianblur":"feGaussianBlur","feimage":"feImage","femerge":"feMerge","femergenode":"feMergeNode","femorphology":"feMorphology","feoffset":"feOffset","fepointlight":"fePointLight","fespecularlighting":"feSpecularLighting","fespotlight":"feSpotLight","fetile":"feTile","feturbulence":"feTurbulence","foreignobject":"foreignObject","glyphref":"glyphRef","lineargradient":"linearGradient","radialgradient":"radialGradient","textpath":"textPath"},"attributeNames":{"definitionurl":"definitionURL","attributename":"attributeName","attributetype":"attributeType","basefrequency":"baseFrequency","baseprofile":"baseProfile","calcmode":"calcMode","clippathunits":"clipPathUnits","diffuseconstant":"diffuseConstant","edgemode":"edgeMode","filterunits":"filterUnits","glyphref":"glyphRef","gradienttransform":"gradientTransform","gradientunits":"gradientUnits","kernelmatrix":"kernelMatrix","kernelunitlength":"kernelUnitLength","keypoints":"keyPoints","keysplines":"keySplines","keytimes":"keyTimes","lengthadjust":"lengthAdjust","limitingconeangle":"limitingConeAngle","markerheight":"markerHeight","markerunits":"markerUnits","markerwidth":"markerWidth","maskcontentunits":"maskContentUnits","maskunits":"maskUnits","numoctaves":"numOctaves","pathlength":"pathLength","patterncontentunits":"patternContentUnits","patterntransform":"patternTransform","patternunits":"patternUnits","pointsatx":"pointsAtX","pointsaty":"pointsAtY","pointsatz":"pointsAtZ","preservealpha":"preserveAlpha","preserveaspectratio":"preserveAspectRatio","primitiveunits":"primitiveUnits","refx":"refX","refy":"refY","repeatcount":"repeatCount","repeatdur":"repeatDur","requiredextensions":"requiredExtensions","requiredfeatures":"requiredFeatures","specularconstant":"specularConstant","specularexponent":"specularExponent","spreadmethod":"spreadMethod","startoffset":"startOffset","stddeviation":"stdDeviation","stitchtiles":"stitchTiles","surfacescale":"surfaceScale","systemlanguage":"systemLanguage","tablevalues":"tableValues","targetx":"targetX","targety":"targetY","textlength":"textLength","viewbox":"viewBox","viewtarget":"viewTarget","xchannelselector":"xChannelSelector","ychannelselector":"yChannelSelector","zoomandpan":"zoomAndPan"}}' + ); + }, + function(t, e) { + var n = (e.getChildren = function(t) { + return t.children; + }), + r = (e.getParent = function(t) { + return t.parent; + }); + (e.getSiblings = function(t) { + var e = r(t); + return e ? n(e) : [t]; + }), + (e.getAttributeValue = function(t, e) { + return t.attribs && t.attribs[e]; + }), + (e.hasAttrib = function(t, e) { + return !!t.attribs && hasOwnProperty.call(t.attribs, e); + }), + (e.getName = function(t) { + return t.name; + }); + }, + function(t, e) { + (e.removeElement = function(t) { + if ( + (t.prev && (t.prev.next = t.next), + t.next && (t.next.prev = t.prev), + t.parent) + ) { + var e = t.parent.children; + e.splice(e.lastIndexOf(t), 1); + } + }), + (e.replaceElement = function(t, e) { + var n = (e.prev = t.prev); + n && (n.next = e); + var r = (e.next = t.next); + r && (r.prev = e); + var i = (e.parent = t.parent); + if (i) { + var o = i.children; + o[o.lastIndexOf(t)] = e; + } + }), + (e.appendChild = function(t, e) { + if (((e.parent = t), 1 !== t.children.push(e))) { + var n = t.children[t.children.length - 2]; + (n.next = e), (e.prev = n), (e.next = null); + } + }), + (e.append = function(t, e) { + var n = t.parent, + r = t.next; + if (((e.next = r), (e.prev = t), (t.next = e), (e.parent = n), r)) { + if (((r.prev = e), n)) { + var i = n.children; + i.splice(i.lastIndexOf(r), 0, e); + } + } else n && n.children.push(e); + }), + (e.prepend = function(t, e) { + var n = t.parent; + if (n) { + var r = n.children; + r.splice(r.lastIndexOf(t), 0, e); + } + t.prev && (t.prev.next = e), + (e.parent = n), + (e.prev = t.prev), + (e.next = t), + (t.prev = e); + }); + }, + function(t, e, n) { + var r = n(45).isTag; + function i(t, e, n, r) { + for ( + var o, a = [], s = 0, u = e.length; + s < u && + !(t(e[s]) && (a.push(e[s]), --r <= 0)) && + ((o = e[s].children), + !( + n && + o && + o.length > 0 && + ((o = i(t, o, n, r)), (a = a.concat(o)), (r -= o.length) <= 0) + )); + s++ + ); + return a; + } + t.exports = { + filter: function(t, e, n, r) { + Array.isArray(e) || (e = [e]); + ('number' == typeof r && isFinite(r)) || (r = 1 / 0); + return i(t, e, !1 !== n, r); + }, + find: i, + findOneChild: function(t, e) { + for (var n = 0, r = e.length; n < r; n++) if (t(e[n])) return e[n]; + return null; + }, + findOne: function t(e, n) { + var i = null; + for (var o = 0, a = n.length; o < a && !i; o++) + r(n[o]) && + (e(n[o]) + ? (i = n[o]) + : n[o].children.length > 0 && (i = t(e, n[o].children))); + return i; + }, + existsOne: function t(e, n) { + for (var i = 0, o = n.length; i < o; i++) + if ( + r(n[i]) && + (e(n[i]) || (n[i].children.length > 0 && t(e, n[i].children))) + ) + return !0; + return !1; + }, + findAll: function(t, e) { + var n = [], + i = e.slice(); + for (; i.length; ) { + var o = i.shift(); + r(o) && + (o.children && + o.children.length > 0 && + i.unshift.apply(i, o.children), + t(o) && n.push(o)); + } + return n; + } + }; + }, + function(t, e, n) { + var r = n(45), + i = (e.isTag = r.isTag); + e.testElement = function(t, e) { + for (var n in t) + if (t.hasOwnProperty(n)) { + if ('tag_name' === n) { + if (!i(e) || !t.tag_name(e.name)) return !1; + } else if ('tag_type' === n) { + if (!t.tag_type(e.type)) return !1; + } else if ('tag_contains' === n) { + if (i(e) || !t.tag_contains(e.data)) return !1; + } else if (!e.attribs || !t[n](e.attribs[n])) return !1; + } else; + return !0; + }; + var o = { + tag_name: function(t) { + return 'function' == typeof t + ? function(e) { + return i(e) && t(e.name); + } + : '*' === t + ? i + : function(e) { + return i(e) && e.name === t; + }; + }, + tag_type: function(t) { + return 'function' == typeof t + ? function(e) { + return t(e.type); + } + : function(e) { + return e.type === t; + }; + }, + tag_contains: function(t) { + return 'function' == typeof t + ? function(e) { + return !i(e) && t(e.data); + } + : function(e) { + return !i(e) && e.data === t; + }; + } + }; + function a(t, e) { + return 'function' == typeof e + ? function(n) { + return n.attribs && e(n.attribs[t]); + } + : function(n) { + return n.attribs && n.attribs[t] === e; + }; + } + function s(t, e) { + return function(n) { + return t(n) || e(n); + }; + } + (e.getElements = function(t, e, n, r) { + var i = Object.keys(t).map(function(e) { + var n = t[e]; + return e in o ? o[e](n) : a(e, n); + }); + return 0 === i.length ? [] : this.filter(i.reduce(s), e, n, r); + }), + (e.getElementById = function(t, e, n) { + return ( + Array.isArray(e) || (e = [e]), this.findOne(a('id', t), e, !1 !== n) + ); + }), + (e.getElementsByTagName = function(t, e, n, r) { + return this.filter(o.tag_name(t), e, n, r); + }), + (e.getElementsByTagType = function(t, e, n, r) { + return this.filter(o.tag_type(t), e, n, r); + }); + }, + function(t, e) { + e.removeSubsets = function(t) { + for (var e, n, r, i = t.length; --i > -1; ) { + for (e = n = t[i], t[i] = null, r = !0; n; ) { + if (t.indexOf(n) > -1) { + (r = !1), t.splice(i, 1); + break; + } + n = n.parent; + } + r && (t[i] = e); + } + return t; + }; + var n = 1, + r = 2, + i = 4, + o = 8, + a = 16, + s = (e.compareDocumentPosition = function(t, e) { + var s, + u, + l, + c, + f, + d, + h = [], + p = []; + if (t === e) return 0; + for (s = t; s; ) h.unshift(s), (s = s.parent); + for (s = e; s; ) p.unshift(s), (s = s.parent); + for (d = 0; h[d] === p[d]; ) d++; + return 0 === d + ? n + : ((l = (u = h[d - 1]).children), + (c = h[d]), + (f = p[d]), + l.indexOf(c) > l.indexOf(f) + ? u === e + ? i | a + : i + : u === t + ? r | o + : r); + }); + e.uniqueSort = function(t) { + var e, + n, + o = t.length; + for (t = t.slice(); --o > -1; ) + (e = t[o]), (n = t.indexOf(e)) > -1 && n < o && t.splice(o, 1); + return ( + t.sort(function(t, e) { + var n = s(t, e); + return n & r ? -1 : n & i ? 1 : 0; + }), + t + ); + }; + }, + function(t, e, n) { + t.exports = i; + var r = n(138); + function i(t) { + r.call(this, new o(this), t); + } + function o(t) { + this.scope = t; + } + n(59)(i, r), (i.prototype.readable = !0); + var a = n(36).EVENTS; + Object.keys(a).forEach(function(t) { + if (0 === a[t]) + o.prototype['on' + t] = function() { + this.scope.emit(t); + }; + else if (1 === a[t]) + o.prototype['on' + t] = function(e) { + this.scope.emit(t, e); + }; + else { + if (2 !== a[t]) throw Error('wrong number of arguments!'); + o.prototype['on' + t] = function(e, n) { + this.scope.emit(t, e, n); + }; + } + }); + }, + function(t, e) {}, + function(t, e, n) { + 'use strict'; + var r = n(320).Buffer, + i = + r.isEncoding || + function(t) { + switch ((t = '' + t) && t.toLowerCase()) { + case 'hex': + case 'utf8': + case 'utf-8': + case 'ascii': + case 'binary': + case 'base64': + case 'ucs2': + case 'ucs-2': + case 'utf16le': + case 'utf-16le': + case 'raw': + return !0; + default: + return !1; + } + }; + function o(t) { + var e; + switch ( + ((this.encoding = (function(t) { + var e = (function(t) { + if (!t) return 'utf8'; + for (var e; ; ) + switch (t) { + case 'utf8': + case 'utf-8': + return 'utf8'; + case 'ucs2': + case 'ucs-2': + case 'utf16le': + case 'utf-16le': + return 'utf16le'; + case 'latin1': + case 'binary': + return 'latin1'; + case 'base64': + case 'ascii': + case 'hex': return t; - }), - (r.prototype.convertRowsToData = function(t) { - for (var e = [], n = t[0], r = 1; r < t.length; r++) { - for (var i = {}, o = 0; o < t[r].length; o++) { - if (m(t[r][o])) - throw new Error( - 'Source data is missing a component at (' + - r + - ',' + - o + - ')!' - ); - i[n[o]] = t[r][o]; - } - e.push(i); - } - return { keys: n, rows: e }; - }), - (r.prototype.convertColumnsToData = function(t) { - for (var e = [], n = [], r = 0; r < t.length; r++) { - for (var i = t[r][0], o = 1; o < t[r].length; o++) { - if ((m(e[o - 1]) && (e[o - 1] = {}), m(t[r][o]))) - throw new Error( - 'Source data is missing a component at (' + - r + - ',' + - o + - ')!' + default: + if (e) return; + (t = ('' + t).toLowerCase()), (e = !0); + } + })(t); + if ('string' != typeof e && (r.isEncoding === i || !i(t))) + throw new Error('Unknown encoding: ' + t); + return e || t; + })(t)), + this.encoding) + ) { + case 'utf16le': + (this.text = u), (this.end = l), (e = 4); + break; + case 'utf8': + (this.fillLast = s), (e = 4); + break; + case 'base64': + (this.text = c), (this.end = f), (e = 3); + break; + default: + return (this.write = d), void (this.end = h); + } + (this.lastNeed = 0), + (this.lastTotal = 0), + (this.lastChar = r.allocUnsafe(e)); + } + function a(t) { + return t <= 127 + ? 0 + : t >> 5 == 6 + ? 2 + : t >> 4 == 14 + ? 3 + : t >> 3 == 30 + ? 4 + : t >> 6 == 2 + ? -1 + : -2; + } + function s(t) { + var e = this.lastTotal - this.lastNeed, + n = (function(t, e, n) { + if (128 != (192 & e[0])) return (t.lastNeed = 0), '�'; + if (t.lastNeed > 1 && e.length > 1) { + if (128 != (192 & e[1])) return (t.lastNeed = 1), '�'; + if (t.lastNeed > 2 && e.length > 2 && 128 != (192 & e[2])) + return (t.lastNeed = 2), '�'; + } + })(this, t); + return void 0 !== n + ? n + : this.lastNeed <= t.length + ? (t.copy(this.lastChar, e, 0, this.lastNeed), + this.lastChar.toString(this.encoding, 0, this.lastTotal)) + : (t.copy(this.lastChar, e, 0, t.length), + void (this.lastNeed -= t.length)); + } + function u(t, e) { + if ((t.length - e) % 2 == 0) { + var n = t.toString('utf16le', e); + if (n) { + var r = n.charCodeAt(n.length - 1); + if (r >= 55296 && r <= 56319) + return ( + (this.lastNeed = 2), + (this.lastTotal = 4), + (this.lastChar[0] = t[t.length - 2]), + (this.lastChar[1] = t[t.length - 1]), + n.slice(0, -1) + ); + } + return n; + } + return ( + (this.lastNeed = 1), + (this.lastTotal = 2), + (this.lastChar[0] = t[t.length - 1]), + t.toString('utf16le', e, t.length - 1) + ); + } + function l(t) { + var e = t && t.length ? this.write(t) : ''; + if (this.lastNeed) { + var n = this.lastTotal - this.lastNeed; + return e + this.lastChar.toString('utf16le', 0, n); + } + return e; + } + function c(t, e) { + var n = (t.length - e) % 3; + return 0 === n + ? t.toString('base64', e) + : ((this.lastNeed = 3 - n), + (this.lastTotal = 3), + 1 === n + ? (this.lastChar[0] = t[t.length - 1]) + : ((this.lastChar[0] = t[t.length - 2]), + (this.lastChar[1] = t[t.length - 1])), + t.toString('base64', e, t.length - n)); + } + function f(t) { + var e = t && t.length ? this.write(t) : ''; + return this.lastNeed + ? e + this.lastChar.toString('base64', 0, 3 - this.lastNeed) + : e; + } + function d(t) { + return t.toString(this.encoding); + } + function h(t) { + return t && t.length ? this.write(t) : ''; + } + (e.StringDecoder = o), + (o.prototype.write = function(t) { + if (0 === t.length) return ''; + var e, n; + if (this.lastNeed) { + if (void 0 === (e = this.fillLast(t))) return ''; + (n = this.lastNeed), (this.lastNeed = 0); + } else n = 0; + return n < t.length + ? e + ? e + this.text(t, n) + : this.text(t, n) + : e || ''; + }), + (o.prototype.end = function(t) { + var e = t && t.length ? this.write(t) : ''; + return this.lastNeed ? e + '�' : e; + }), + (o.prototype.text = function(t, e) { + var n = (function(t, e, n) { + var r = e.length - 1; + if (r < n) return 0; + var i = a(e[r]); + if (i >= 0) return i > 0 && (t.lastNeed = i - 1), i; + if (--r < n || -2 === i) return 0; + if ((i = a(e[r])) >= 0) return i > 0 && (t.lastNeed = i - 2), i; + if (--r < n || -2 === i) return 0; + if ((i = a(e[r])) >= 0) + return i > 0 && (2 === i ? (i = 0) : (t.lastNeed = i - 3)), i; + return 0; + })(this, t, e); + if (!this.lastNeed) return t.toString('utf8', e); + this.lastTotal = n; + var r = t.length - (n - this.lastNeed); + return t.copy(this.lastChar, 0, r), t.toString('utf8', e, r); + }), + (o.prototype.fillLast = function(t) { + if (this.lastNeed <= t.length) + return ( + t.copy( + this.lastChar, + this.lastTotal - this.lastNeed, + 0, + this.lastNeed + ), + this.lastChar.toString(this.encoding, 0, this.lastTotal) + ); + t.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, t.length), + (this.lastNeed -= t.length); + }); + }, + function(t, e, n) { + var r = n(139), + i = r.Buffer; + function o(t, e) { + for (var n in t) e[n] = t[n]; + } + function a(t, e, n) { + return i(t, e, n); + } + i.from && i.alloc && i.allocUnsafe && i.allocUnsafeSlow + ? (t.exports = r) + : (o(r, e), (e.Buffer = a)), + (a.prototype = Object.create(i.prototype)), + o(i, a), + (a.from = function(t, e, n) { + if ('number' == typeof t) + throw new TypeError('Argument must not be a number'); + return i(t, e, n); + }), + (a.alloc = function(t, e, n) { + if ('number' != typeof t) + throw new TypeError('Argument must be a number'); + var r = i(t); + return ( + void 0 !== e + ? 'string' == typeof n + ? r.fill(e, n) + : r.fill(e) + : r.fill(0), + r + ); + }), + (a.allocUnsafe = function(t) { + if ('number' != typeof t) + throw new TypeError('Argument must be a number'); + return i(t); + }), + (a.allocUnsafeSlow = function(t) { + if ('number' != typeof t) + throw new TypeError('Argument must be a number'); + return r.SlowBuffer(t); + }); + }, + function(t, e, n) { + 'use strict'; + (e.byteLength = function(t) { + var e = l(t), + n = e[0], + r = e[1]; + return (3 * (n + r)) / 4 - r; + }), + (e.toByteArray = function(t) { + var e, + n, + r = l(t), + a = r[0], + s = r[1], + u = new o( + (function(t, e, n) { + return (3 * (e + n)) / 4 - n; + })(0, a, s) + ), + c = 0, + f = s > 0 ? a - 4 : a; + for (n = 0; n < f; n += 4) + (e = + (i[t.charCodeAt(n)] << 18) | + (i[t.charCodeAt(n + 1)] << 12) | + (i[t.charCodeAt(n + 2)] << 6) | + i[t.charCodeAt(n + 3)]), + (u[c++] = (e >> 16) & 255), + (u[c++] = (e >> 8) & 255), + (u[c++] = 255 & e); + 2 === s && + ((e = (i[t.charCodeAt(n)] << 2) | (i[t.charCodeAt(n + 1)] >> 4)), + (u[c++] = 255 & e)); + 1 === s && + ((e = + (i[t.charCodeAt(n)] << 10) | + (i[t.charCodeAt(n + 1)] << 4) | + (i[t.charCodeAt(n + 2)] >> 2)), + (u[c++] = (e >> 8) & 255), + (u[c++] = 255 & e)); + return u; + }), + (e.fromByteArray = function(t) { + for ( + var e, n = t.length, i = n % 3, o = [], a = 0, s = n - i; + a < s; + a += 16383 + ) + o.push(c(t, a, a + 16383 > s ? s : a + 16383)); + 1 === i + ? ((e = t[n - 1]), o.push(r[e >> 2] + r[(e << 4) & 63] + '==')) + : 2 === i && + ((e = (t[n - 2] << 8) + t[n - 1]), + o.push(r[e >> 10] + r[(e >> 4) & 63] + r[(e << 2) & 63] + '=')); + return o.join(''); + }); + for ( + var r = [], + i = [], + o = 'undefined' != typeof Uint8Array ? Uint8Array : Array, + a = + 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/', + s = 0, + u = a.length; + s < u; + ++s + ) + (r[s] = a[s]), (i[a.charCodeAt(s)] = s); + function l(t) { + var e = t.length; + if (e % 4 > 0) + throw new Error('Invalid string. Length must be a multiple of 4'); + var n = t.indexOf('='); + return -1 === n && (n = e), [n, n === e ? 0 : 4 - (n % 4)]; + } + function c(t, e, n) { + for (var i, o, a = [], s = e; s < n; s += 3) + (i = + ((t[s] << 16) & 16711680) + + ((t[s + 1] << 8) & 65280) + + (255 & t[s + 2])), + a.push( + r[((o = i) >> 18) & 63] + + r[(o >> 12) & 63] + + r[(o >> 6) & 63] + + r[63 & o] + ); + return a.join(''); + } + (i['-'.charCodeAt(0)] = 62), (i['_'.charCodeAt(0)] = 63); + }, + function(t, e) { + (e.read = function(t, e, n, r, i) { + var o, + a, + s = 8 * i - r - 1, + u = (1 << s) - 1, + l = u >> 1, + c = -7, + f = n ? i - 1 : 0, + d = n ? -1 : 1, + h = t[e + f]; + for ( + f += d, o = h & ((1 << -c) - 1), h >>= -c, c += s; + c > 0; + o = 256 * o + t[e + f], f += d, c -= 8 + ); + for ( + a = o & ((1 << -c) - 1), o >>= -c, c += r; + c > 0; + a = 256 * a + t[e + f], f += d, c -= 8 + ); + if (0 === o) o = 1 - l; + else { + if (o === u) return a ? NaN : (1 / 0) * (h ? -1 : 1); + (a += Math.pow(2, r)), (o -= l); + } + return (h ? -1 : 1) * a * Math.pow(2, o - r); + }), + (e.write = function(t, e, n, r, i, o) { + var a, + s, + u, + l = 8 * o - i - 1, + c = (1 << l) - 1, + f = c >> 1, + d = 23 === i ? Math.pow(2, -24) - Math.pow(2, -77) : 0, + h = r ? 0 : o - 1, + p = r ? 1 : -1, + g = e < 0 || (0 === e && 1 / e < 0) ? 1 : 0; + for ( + e = Math.abs(e), + isNaN(e) || e === 1 / 0 + ? ((s = isNaN(e) ? 1 : 0), (a = c)) + : ((a = Math.floor(Math.log(e) / Math.LN2)), + e * (u = Math.pow(2, -a)) < 1 && (a--, (u *= 2)), + (e += a + f >= 1 ? d / u : d * Math.pow(2, 1 - f)) * u >= 2 && + (a++, (u /= 2)), + a + f >= c + ? ((s = 0), (a = c)) + : a + f >= 1 + ? ((s = (e * u - 1) * Math.pow(2, i)), (a += f)) + : ((s = e * Math.pow(2, f - 1) * Math.pow(2, i)), (a = 0))); + i >= 8; + t[n + h] = 255 & s, h += p, s /= 256, i -= 8 + ); + for ( + a = (a << i) | s, l += i; + l > 0; + t[n + h] = 255 & a, h += p, a /= 256, l -= 8 + ); + t[n + h - p] |= 128 * g; + }); + }, + function(t, e) { + var n = {}.toString; + t.exports = + Array.isArray || + function(t) { + return '[object Array]' == n.call(t); + }; + }, + function(t, e, n) { + function r(t) { + this._cbs = t || {}; + } + t.exports = r; + var i = n(36).EVENTS; + Object.keys(i).forEach(function(t) { + if (0 === i[t]) + (t = 'on' + t), + (r.prototype[t] = function() { + this._cbs[t] && this._cbs[t](); + }); + else if (1 === i[t]) + (t = 'on' + t), + (r.prototype[t] = function(e) { + this._cbs[t] && this._cbs[t](e); + }); + else { + if (2 !== i[t]) throw Error('wrong number of arguments'); + (t = 'on' + t), + (r.prototype[t] = function(e, n) { + this._cbs[t] && this._cbs[t](e, n); + }); + } + }); + }, + function(t, e, n) { + function r(t) { + (this._cbs = t || {}), (this.events = []); + } + t.exports = r; + var i = n(36).EVENTS; + Object.keys(i).forEach(function(t) { + if (0 === i[t]) + (t = 'on' + t), + (r.prototype[t] = function() { + this.events.push([t]), this._cbs[t] && this._cbs[t](); + }); + else if (1 === i[t]) + (t = 'on' + t), + (r.prototype[t] = function(e) { + this.events.push([t, e]), this._cbs[t] && this._cbs[t](e); + }); + else { + if (2 !== i[t]) throw Error('wrong number of arguments'); + (t = 'on' + t), + (r.prototype[t] = function(e, n) { + this.events.push([t, e, n]), this._cbs[t] && this._cbs[t](e, n); + }); + } + }), + (r.prototype.onreset = function() { + (this.events = []), this._cbs.onreset && this._cbs.onreset(); + }), + (r.prototype.restart = function() { + this._cbs.onreset && this._cbs.onreset(); + for (var t = 0, e = this.events.length; t < e; t++) + if (this._cbs[this.events[t][0]]) { + var n = this.events[t].length; + 1 === n + ? this._cbs[this.events[t][0]]() + : 2 === n + ? this._cbs[this.events[t][0]](this.events[t][1]) + : this._cbs[this.events[t][0]]( + this.events[t][1], + this.events[t][2] + ); + } + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t) { + return t.data; + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t, e, n) { + var u = t.name; + if (!(0, s.default)(u)) return null; + var l = (0, o.default)(t.attribs, e), + c = null; + -1 === a.default.indexOf(u) && (c = (0, i.default)(t.children, n)); + return r.default.createElement(u, l, c); + }); + var r = u(n(0)), + i = u(n(82)), + o = u(n(140)), + a = u(n(332)), + s = u(n(141)); + function u(t) { + return t && t.__esModule ? t : { default: t }; + } + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t) { + return Object.keys(t) + .filter(function(t) { + return (0, o.default)(t); + }) + .reduce(function(e, n) { + var r = n.toLowerCase(), + o = i.default[r] || r; + return (e[o] = s(o, t[n])), e; + }, {}); + }); + var r = a(n(329)), + i = a(n(330)), + o = a(n(141)); + function a(t) { + return t && t.__esModule ? t : { default: t }; + } + var s = function(t, e) { + return ( + r.default + .map(function(t) { + return t.toLowerCase(); + }) + .indexOf(t.toLowerCase()) >= 0 && (e = t), + e + ); + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = [ + 'allowfullScreen', + 'async', + 'autoplay', + 'capture', + 'checked', + 'controls', + 'default', + 'defer', + 'disabled', + 'formnovalidate', + 'hidden', + 'loop', + 'multiple', + 'muted', + 'novalidate', + 'open', + 'playsinline', + 'readonly', + 'required', + 'reversed', + 'scoped', + 'seamless', + 'selected', + 'itemscope' + ]); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = { + accept: 'accept', + 'accept-charset': 'acceptCharset', + accesskey: 'accessKey', + action: 'action', + allowfullscreen: 'allowFullScreen', + allowtransparency: 'allowTransparency', + alt: 'alt', + as: 'as', + async: 'async', + autocomplete: 'autoComplete', + autoplay: 'autoPlay', + capture: 'capture', + cellpadding: 'cellPadding', + cellspacing: 'cellSpacing', + charset: 'charSet', + challenge: 'challenge', + checked: 'checked', + cite: 'cite', + classid: 'classID', + class: 'className', + cols: 'cols', + colspan: 'colSpan', + content: 'content', + contenteditable: 'contentEditable', + contextmenu: 'contextMenu', + controls: 'controls', + controlsList: 'controlsList', + coords: 'coords', + crossorigin: 'crossOrigin', + data: 'data', + datetime: 'dateTime', + default: 'default', + defer: 'defer', + dir: 'dir', + disabled: 'disabled', + download: 'download', + draggable: 'draggable', + enctype: 'encType', + form: 'form', + formaction: 'formAction', + formenctype: 'formEncType', + formmethod: 'formMethod', + formnovalidate: 'formNoValidate', + formtarget: 'formTarget', + frameborder: 'frameBorder', + headers: 'headers', + height: 'height', + hidden: 'hidden', + high: 'high', + href: 'href', + hreflang: 'hrefLang', + for: 'htmlFor', + 'http-equiv': 'httpEquiv', + icon: 'icon', + id: 'id', + inputmode: 'inputMode', + integrity: 'integrity', + is: 'is', + keyparams: 'keyParams', + keytype: 'keyType', + kind: 'kind', + label: 'label', + lang: 'lang', + list: 'list', + loop: 'loop', + low: 'low', + manifest: 'manifest', + marginheight: 'marginHeight', + marginwidth: 'marginWidth', + max: 'max', + maxlength: 'maxLength', + media: 'media', + mediagroup: 'mediaGroup', + method: 'method', + min: 'min', + minlength: 'minLength', + multiple: 'multiple', + muted: 'muted', + name: 'name', + nonce: 'nonce', + novalidate: 'noValidate', + open: 'open', + optimum: 'optimum', + pattern: 'pattern', + placeholder: 'placeholder', + playsinline: 'playsInline', + poster: 'poster', + preload: 'preload', + profile: 'profile', + radiogroup: 'radioGroup', + readonly: 'readOnly', + referrerpolicy: 'referrerPolicy', + rel: 'rel', + required: 'required', + reversed: 'reversed', + role: 'role', + rows: 'rows', + rowspan: 'rowSpan', + sandbox: 'sandbox', + scope: 'scope', + scoped: 'scoped', + scrolling: 'scrolling', + seamless: 'seamless', + selected: 'selected', + shape: 'shape', + size: 'size', + sizes: 'sizes', + slot: 'slot', + span: 'span', + spellcheck: 'spellCheck', + src: 'src', + srcdoc: 'srcDoc', + srclang: 'srcLang', + srcset: 'srcSet', + start: 'start', + step: 'step', + style: 'style', + summary: 'summary', + tabindex: 'tabIndex', + target: 'target', + title: 'title', + type: 'type', + usemap: 'useMap', + value: 'value', + width: 'width', + wmode: 'wmode', + wrap: 'wrap', + about: 'about', + datatype: 'datatype', + inlist: 'inlist', + prefix: 'prefix', + property: 'property', + resource: 'resource', + typeof: 'typeof', + vocab: 'vocab', + autocapitalize: 'autoCapitalize', + autocorrect: 'autoCorrect', + autosave: 'autoSave', + color: 'color', + itemprop: 'itemProp', + itemscope: 'itemScope', + itemtype: 'itemType', + itemid: 'itemID', + itemref: 'itemRef', + results: 'results', + security: 'security', + unselectable: 'unselectable' + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = function(t, e) { + if (Array.isArray(t)) return t; + if (Symbol.iterator in Object(t)) + return (function(t, e) { + var n = [], + r = !0, + i = !1, + o = void 0; + try { + for ( + var a, s = t[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !e || n.length !== e); + r = !0 + ); + } catch (t) { + (i = !0), (o = t); + } finally { + try { + !r && s.return && s.return(); + } finally { + if (i) throw o; + } + } + return n; + })(t, e); + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' + ); + }; + e.default = function() { + var t = + arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : ''; + if ('' === t) return {}; + return t.split(';').reduce(function(t, e) { + var n = e + .split(/^([^:]+):/) + .filter(function(t, e) { + return e > 0; + }) + .map(function(t) { + return t.trim().toLowerCase(); + }), + i = r(n, 2), + o = i[0], + a = i[1]; + return void 0 === a + ? t + : ((t[ + (o = o.replace(/^-ms-/, 'ms-').replace(/-(.)/g, function(t, e) { + return e.toUpperCase(); + })) + ] = a), + t); + }, {}); + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = [ + 'area', + 'base', + 'br', + 'col', + 'command', + 'embed', + 'hr', + 'img', + 'input', + 'keygen', + 'link', + 'meta', + 'param', + 'source', + 'track', + 'wbr' + ]); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t, e) { + var n = void 0; + t.children.length > 0 && (n = t.children[0].data); + var o = (0, i.default)(t.attribs, e); + return r.default.createElement('style', o, n); + }); + var r = o(n(0)), + i = o(n(140)); + function o(t) { + return t && t.__esModule ? t : { default: t }; + } + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function() { + return null; + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t) { + var e = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : {}, + n = e.decodeEntities, + o = void 0 === n || n, + a = e.transform, + s = e.preprocessNodes, + u = (void 0 === s + ? function(t) { + return t; + } + : s)(r.default.parseDOM(t, { decodeEntities: o })); + return (0, i.default)(u, a); + }); + var r = o(n(36)), + i = o(n(82)); + function o(t) { + return t && t.__esModule ? t : { default: t }; + } + }, + function(t, e, n) { + 'use strict'; + n.r(e); + var r = n(88); + /* @license C3.js v0.7.12 | (c) C3 Team and other contributors | http://c3js.org/ */ function i( + t + ) { + var e = this; + (e.d3 = r), + (e.api = t), + (e.config = e.getDefaultConfig()), + (e.data = {}), + (e.cache = {}), + (e.axes = {}); + } + function o(t) { + (this.internal = new i(this)), + this.internal.loadConfig(t), + this.internal.beforeInit(t), + this.internal.init(), + this.internal.afterInit(t), + (function t(e, n, r) { + Object.keys(e).forEach(function(i) { + (n[i] = e[i].bind(r)), + Object.keys(e[i]).length > 0 && t(e[i], n[i], r); + }); + })(o.prototype, this, this); + } + var a = function(t) { + return Math.ceil(t) + 0.5; + }, + s = function(t) { + return 10 * Math.ceil(t / 10); + }, + u = function(t) { + return t[1] - t[0]; + }, + l = function(t, e, n) { + return h(t[e]) ? t[e] : n; + }, + c = function(t) { + var e = f(t), + n = [t.pathSegList.getItem(0), t.pathSegList.getItem(1)]; + return { + x: n[0].x, + y: Math.min(n[0].y, n[1].y), + width: e.width, + height: e.height + }; + }, + f = function(t) { + try { + return t.getBBox(); + } catch (t) { + return { x: 0, y: 0, width: 0, height: 0 }; + } + }, + d = function(t) { + return Array.isArray(t); + }, + h = function(t) { + return void 0 !== t; + }, + p = function(t) { + return ( + null == t || + (v(t) && 0 === t.length) || + ('object' == typeof t && 0 === Object.keys(t).length) + ); + }, + g = function(t) { + return 'function' == typeof t; + }, + m = function(t) { + return 'number' == typeof t; + }, + v = function(t) { + return 'string' == typeof t; + }, + y = function(t) { + return void 0 === t; + }, + b = function(t) { + return t || 0 === t; + }, + _ = function(t) { + return !p(t); + }, + x = function(t) { + return 'string' == typeof t + ? t.replace(//g, '>') + : t; + }; + function w(t, e) { + (this.component = t), + (this.params = e || {}), + (this.d3 = t.d3), + (this.scale = this.d3.scaleLinear()), + this.range, + (this.orient = 'bottom'), + (this.innerTickSize = 6), + (this.outerTickSize = this.params.withOuterTick ? 6 : 0), + (this.tickPadding = 3), + (this.tickValues = null), + this.tickFormat, + this.tickArguments, + (this.tickOffset = 0), + (this.tickCulling = !0), + this.tickCentered, + this.tickTextCharSize, + (this.tickTextRotate = this.params.tickTextRotate), + this.tickLength, + (this.axis = this.generateAxis()); + } + (w.prototype.axisX = function(t, e, n) { + t.attr('transform', function(t) { + return 'translate(' + Math.ceil(e(t) + n) + ', 0)'; + }); + }), + (w.prototype.axisY = function(t, e) { + t.attr('transform', function(t) { + return 'translate(0,' + Math.ceil(e(t)) + ')'; + }); + }), + (w.prototype.scaleExtent = function(t) { + var e = t[0], + n = t[t.length - 1]; + return e < n ? [e, n] : [n, e]; + }), + (w.prototype.generateTicks = function(t) { + var e, + n, + r = []; + if (t.ticks) return t.ticks.apply(t, this.tickArguments); + for (n = t.domain(), e = Math.ceil(n[0]); e < n[1]; e++) r.push(e); + return r.length > 0 && r[0] > 0 && r.unshift(r[0] - (r[1] - r[0])), r; + }), + (w.prototype.copyScale = function() { + var t, + e = this.scale.copy(); + return ( + this.params.isCategory && + ((t = this.scale.domain()), e.domain([t[0], t[1] - 1])), + e + ); + }), + (w.prototype.textFormatted = function(t) { + var e = this.tickFormat ? this.tickFormat(t) : t; + return void 0 !== e ? e : ''; + }), + (w.prototype.updateRange = function() { + return ( + (this.range = this.scale.rangeExtent + ? this.scale.rangeExtent() + : this.scaleExtent(this.scale.range())), + this.range + ); + }), + (w.prototype.updateTickTextCharSize = function(t) { + var e = this; + if (e.tickTextCharSize) return e.tickTextCharSize; + var n = { h: 11.5, w: 5.5 }; + return ( + t + .select('text') + .text(function(t) { + return e.textFormatted(t); + }) + .each(function(t) { + var r = f(this), + i = e.textFormatted(t), + o = r.height, + a = i ? r.width / i.length : void 0; + o && a && ((n.h = o), (n.w = a)); + }) + .text(''), + (e.tickTextCharSize = n), + n + ); + }), + (w.prototype.isVertical = function() { + return 'left' === this.orient || 'right' === this.orient; + }), + (w.prototype.tspanData = function(t, e, n) { + var r = this.params.tickMultiline + ? this.splitTickText(t, n) + : [].concat(this.textFormatted(t)); + return ( + this.params.tickMultiline && + this.params.tickMultilineMax > 0 && + (r = this.ellipsify(r, this.params.tickMultilineMax)), + r.map(function(t) { + return { index: e, splitted: t, length: r.length }; + }) + ); + }), + (w.prototype.splitTickText = function(t, e) { + var n, + r, + i, + o = this, + a = o.textFormatted(t), + s = o.params.tickWidth; + if ('[object Array]' === Object.prototype.toString.call(a)) return a; + return ( + (!s || s <= 0) && + (s = o.isVertical() + ? 95 + : o.params.isCategory + ? Math.ceil(e(1) - e(0)) - 12 + : 110), + (function t(e, a) { + r = void 0; + for (var u = 1; u < a.length; u++) + if ( + (' ' === a.charAt(u) && (r = u), + (n = a.substr(0, u + 1)), + (i = o.tickTextCharSize.w * n.length), + s < i) + ) + return t( + e.concat(a.substr(0, r || u)), + a.slice(r ? r + 1 : u) + ); + return e.concat(a); + })([], a + '') + ); + }), + (w.prototype.ellipsify = function(t, e) { + if (t.length <= e) return t; + for (var n = t.slice(0, e), r = 3, i = e - 1; i >= 0; i--) { + var o = n[i].length; + if (((n[i] = n[i].substr(0, o - r).padEnd(o, '.')), (r -= o) <= 0)) + break; + } + return n; + }), + (w.prototype.updateTickLength = function() { + this.tickLength = Math.max(this.innerTickSize, 0) + this.tickPadding; + }), + (w.prototype.lineY2 = function(t) { + var e = this.scale(t) + (this.tickCentered ? 0 : this.tickOffset); + return this.range[0] < e && e < this.range[1] + ? this.innerTickSize + : 0; + }), + (w.prototype.textY = function() { + var t = this.tickTextRotate; + return t ? 11.5 - (t / 15) * 2.5 * (t > 0 ? 1 : -1) : this.tickLength; + }), + (w.prototype.textTransform = function() { + var t = this.tickTextRotate; + return t ? 'rotate(' + t + ')' : ''; + }), + (w.prototype.textTextAnchor = function() { + var t = this.tickTextRotate; + return t ? (t > 0 ? 'start' : 'end') : 'middle'; + }), + (w.prototype.tspanDx = function() { + var t = this.tickTextRotate; + return t ? 8 * Math.sin(Math.PI * (t / 180)) : 0; + }), + (w.prototype.tspanDy = function(t, e) { + var n = this.tickTextCharSize.h; + return ( + 0 === e && + (n = this.isVertical() + ? -((t.length - 1) * (this.tickTextCharSize.h / 2) - 3) + : '.71em'), + n + ); + }), + (w.prototype.generateAxis = function() { + var t = this, + e = t.d3, + n = t.params; + function r(i, o) { + var a; + return ( + i.each(function() { + var i, + s, + u, + l = (r.g = e.select(this)), + c = this.__chart__ || t.scale, + f = (this.__chart__ = t.copyScale()), + d = t.tickValues ? t.tickValues : t.generateTicks(f), + h = l.selectAll('.tick').data(d, f), + p = h + .enter() + .insert('g', '.domain') + .attr('class', 'tick') + .style('opacity', 1e-6), + g = h.exit().remove(), + m = h.merge(p); + n.isCategory + ? ((t.tickOffset = Math.ceil((f(1) - f(0)) / 2)), + (s = t.tickCentered ? 0 : t.tickOffset), + (u = t.tickCentered ? t.tickOffset : 0)) + : (t.tickOffset = s = 0), + t.updateRange(), + t.updateTickLength(), + t.updateTickTextCharSize(l.select('.tick')); + var v = m.select('line').merge(p.append('line')), + y = m.select('text').merge(p.append('text')), + b = m + .selectAll('text') + .selectAll('tspan') + .data(function(e, n) { + return t.tspanData(e, n, f); + }), + _ = b + .enter() + .append('tspan') + .merge(b) + .text(function(t) { + return t.splitted; + }); + b.exit().remove(); + var x = l.selectAll('.domain').data([0]), + w = x + .enter() + .append('path') + .merge(x) + .attr('class', 'domain'); + switch (t.orient) { + case 'bottom': + (i = t.axisX), + v + .attr('x1', s) + .attr('x2', s) + .attr('y2', function(e, n) { + return t.lineY2(e, n); + }), + y + .attr('x', 0) + .attr('y', function(e, n) { + return t.textY(e, n); + }) + .attr('transform', function(e, n) { + return t.textTransform(e, n); + }) + .style('text-anchor', function(e, n) { + return t.textTextAnchor(e, n); + }), + _.attr('x', 0) + .attr('dy', function(e, n) { + return t.tspanDy(e, n); + }) + .attr('dx', function(e, n) { + return t.tspanDx(e, n); + }), + w.attr( + 'd', + 'M' + + t.range[0] + + ',' + + t.outerTickSize + + 'V0H' + + t.range[1] + + 'V' + + t.outerTickSize + ); + break; + case 'top': + (i = t.axisX), + v + .attr('x1', s) + .attr('x2', s) + .attr('y2', function(e, n) { + return -1 * t.lineY2(e, n); + }), + y + .attr('x', 0) + .attr('y', function(e, r) { + return ( + -1 * t.textY(e, r) - + (n.isCategory ? 2 : t.tickLength - 2) ); - e[o - 1][i] = t[r][o]; - } - n.push(i); - } - return { keys: n, rows: e }; - }), - (r.prototype.convertDataToTargets = function(t, e) { - var n, - r, - i, - o, - a, - s = this, - u = s.config; - if ( - (f(t) - ? (o = Object.keys(t[0])) - : ((o = t.keys), (t = t.rows)), - (i = o.filter(s.isX, s)), - s.isStanfordGraphType()) - ) { - if ( - ((a = o.filter(s.isEpochs, s)), - (r = o.filter(s.isNotXAndNotEpochs, s)), - 1 !== i.length || 1 !== a.length || 1 !== r.length) - ) - throw new Error( - "You must define the 'x' key name and the 'epochs' for Stanford Diagrams" - ); - } else r = o.filter(s.isNotX, s); - return ( - r.forEach(function(n) { - var r = s.getXKey(n); - s.isCustomX() || s.isTimeSeries() - ? i.indexOf(r) >= 0 - ? (s.data.xs[n] = (e && s.data.xs[n] - ? s.data.xs[n] - : [] - ).concat( - t - .map(function(t) { - return t[r]; - }) - .filter(y) - .map(function(t, e) { - return s.generateTargetX(t, n, e); - }) - )) - : u.data_x - ? (s.data.xs[n] = s.getOtherTargetXs()) - : b(u.data_xs) && - (s.data.xs[n] = s.getXValuesOfXKey( - r, - s.data.targets - )) - : (s.data.xs[n] = t.map(function(t, e) { - return e; - })); + }) + .attr('transform', function(e, n) { + return t.textTransform(e, n); + }) + .style('text-anchor', function(e, n) { + return t.textTextAnchor(e, n); + }), + _.attr('x', 0) + .attr('dy', function(e, n) { + return t.tspanDy(e, n); + }) + .attr('dx', function(e, n) { + return t.tspanDx(e, n); + }), + w.attr( + 'd', + 'M' + + t.range[0] + + ',' + + -t.outerTickSize + + 'V0H' + + t.range[1] + + 'V' + + -t.outerTickSize + ); + break; + case 'left': + (i = t.axisY), + v + .attr('x2', -t.innerTickSize) + .attr('y1', u) + .attr('y2', u), + y + .attr('x', -t.tickLength) + .attr('y', t.tickOffset) + .style('text-anchor', 'end'), + _.attr('x', -t.tickLength).attr('dy', function(e, n) { + return t.tspanDy(e, n); }), - r.forEach(function(t) { - if (!s.data.xs[t]) - throw new Error( - 'x is not defined for id = "' + t + '".' - ); + w.attr( + 'd', + 'M' + + -t.outerTickSize + + ',' + + t.range[0] + + 'H0V' + + t.range[1] + + 'H' + + -t.outerTickSize + ); + break; + case 'right': + (i = t.axisY), + v + .attr('x2', t.innerTickSize) + .attr('y1', u) + .attr('y2', u), + y + .attr('x', t.tickLength) + .attr('y', t.tickOffset) + .style('text-anchor', 'start'), + _.attr('x', t.tickLength).attr('dy', function(e, n) { + return t.tspanDy(e, n); }), - (n = r.map(function(e, n) { - var r = u.data_idConverter(e); - return { - id: r, - id_org: e, - values: t - .map(function(t, i) { - var o, - l, - c = t[s.getXKey(e)], - f = null === t[e] || isNaN(t[e]) ? null : +t[e]; - return ( - s.isCustomX() && s.isCategorized() && !m(c) - ? (0 === n && - 0 === i && - (u.axis_x_categories = []), - -1 === - (o = u.axis_x_categories.indexOf(c)) && - ((o = u.axis_x_categories.length), - u.axis_x_categories.push(c))) - : (o = s.generateTargetX(c, e, i)), - (m(t[e]) || s.data.xs[e].length <= i) && - (o = void 0), - (l = { x: o, value: f, id: r }), - s.isStanfordGraphType() && (l.epochs = t[a]), - l - ); - }) - .filter(function(t) { - return d(t.x); - }) - }; - })).forEach(function(t) { - var e; - u.data_xSort && - (t.values = t.values.sort(function(t, e) { - return ( - (t.x || 0 === t.x ? t.x : 1 / 0) - - (e.x || 0 === e.x ? e.x : 1 / 0) - ); - })), - (e = 0), - t.values.forEach(function(t) { - t.index = e++; - }), - s.data.xs[t.id].sort(function(t, e) { - return t - e; - }); + w.attr( + 'd', + 'M' + + t.outerTickSize + + ',' + + t.range[0] + + 'H0V' + + t.range[1] + + 'H' + + t.outerTickSize + ); + } + if (f.rangeBand) { + var S = f, + E = S.rangeBand() / 2; + c = f = function(t) { + return S(t) + E; + }; + } else c.rangeBand ? (c = f) : g.call(i, f, t.tickOffset); + p.call(i, c, t.tickOffset), + (a = (o ? m.transition(o) : m) + .style('opacity', 1) + .call(i, f, t.tickOffset)); + }), + a + ); + } + return ( + (r.scale = function(e) { + return arguments.length ? ((t.scale = e), r) : t.scale; + }), + (r.orient = function(e) { + return arguments.length + ? ((t.orient = + e in { top: 1, right: 1, bottom: 1, left: 1 } + ? e + '' + : 'bottom'), + r) + : t.orient; + }), + (r.tickFormat = function(e) { + return arguments.length ? ((t.tickFormat = e), r) : t.tickFormat; + }), + (r.tickCentered = function(e) { + return arguments.length + ? ((t.tickCentered = e), r) + : t.tickCentered; + }), + (r.tickOffset = function() { + return t.tickOffset; + }), + (r.tickInterval = function() { + var e; + return (e = n.isCategory + ? 2 * t.tickOffset + : (r.g + .select('path.domain') + .node() + .getTotalLength() - + 2 * t.outerTickSize) / + r.g.selectAll('line').size()) === + 1 / 0 + ? 0 + : e; + }), + (r.ticks = function() { + return arguments.length + ? ((t.tickArguments = arguments), r) + : t.tickArguments; + }), + (r.tickCulling = function(e) { + return arguments.length + ? ((t.tickCulling = e), r) + : t.tickCulling; + }), + (r.tickValues = function(e) { + if ('function' == typeof e) + t.tickValues = function() { + return e(t.scale.domain()); + }; + else { + if (!arguments.length) return t.tickValues; + t.tickValues = e; + } + return r; + }), + r + ); + }); + var S = { + target: 'c3-target', + chart: 'c3-chart', + chartLine: 'c3-chart-line', + chartLines: 'c3-chart-lines', + chartBar: 'c3-chart-bar', + chartBars: 'c3-chart-bars', + chartText: 'c3-chart-text', + chartTexts: 'c3-chart-texts', + chartArc: 'c3-chart-arc', + chartArcs: 'c3-chart-arcs', + chartArcsTitle: 'c3-chart-arcs-title', + chartArcsBackground: 'c3-chart-arcs-background', + chartArcsGaugeUnit: 'c3-chart-arcs-gauge-unit', + chartArcsGaugeMax: 'c3-chart-arcs-gauge-max', + chartArcsGaugeMin: 'c3-chart-arcs-gauge-min', + selectedCircle: 'c3-selected-circle', + selectedCircles: 'c3-selected-circles', + eventRect: 'c3-event-rect', + eventRects: 'c3-event-rects', + eventRectsSingle: 'c3-event-rects-single', + eventRectsMultiple: 'c3-event-rects-multiple', + zoomRect: 'c3-zoom-rect', + brush: 'c3-brush', + dragZoom: 'c3-drag-zoom', + focused: 'c3-focused', + defocused: 'c3-defocused', + region: 'c3-region', + regions: 'c3-regions', + title: 'c3-title', + tooltipContainer: 'c3-tooltip-container', + tooltip: 'c3-tooltip', + tooltipName: 'c3-tooltip-name', + shape: 'c3-shape', + shapes: 'c3-shapes', + line: 'c3-line', + lines: 'c3-lines', + bar: 'c3-bar', + bars: 'c3-bars', + circle: 'c3-circle', + circles: 'c3-circles', + arc: 'c3-arc', + arcLabelLine: 'c3-arc-label-line', + arcs: 'c3-arcs', + area: 'c3-area', + areas: 'c3-areas', + empty: 'c3-empty', + text: 'c3-text', + texts: 'c3-texts', + gaugeValue: 'c3-gauge-value', + grid: 'c3-grid', + gridLines: 'c3-grid-lines', + xgrid: 'c3-xgrid', + xgrids: 'c3-xgrids', + xgridLine: 'c3-xgrid-line', + xgridLines: 'c3-xgrid-lines', + xgridFocus: 'c3-xgrid-focus', + ygrid: 'c3-ygrid', + ygrids: 'c3-ygrids', + ygridLine: 'c3-ygrid-line', + ygridLines: 'c3-ygrid-lines', + colorScale: 'c3-colorscale', + stanfordElements: 'c3-stanford-elements', + stanfordLine: 'c3-stanford-line', + stanfordLines: 'c3-stanford-lines', + stanfordRegion: 'c3-stanford-region', + stanfordRegions: 'c3-stanford-regions', + stanfordText: 'c3-stanford-text', + stanfordTexts: 'c3-stanford-texts', + axis: 'c3-axis', + axisX: 'c3-axis-x', + axisXLabel: 'c3-axis-x-label', + axisY: 'c3-axis-y', + axisYLabel: 'c3-axis-y-label', + axisY2: 'c3-axis-y2', + axisY2Label: 'c3-axis-y2-label', + legendBackground: 'c3-legend-background', + legendItem: 'c3-legend-item', + legendItemEvent: 'c3-legend-item-event', + legendItemTile: 'c3-legend-item-tile', + legendItemHidden: 'c3-legend-item-hidden', + legendItemFocused: 'c3-legend-item-focused', + dragarea: 'c3-dragarea', + EXPANDED: '_expanded_', + SELECTED: '_selected_', + INCLUDED: '_included_' + }; + class E { + constructor(t) { + (this.owner = t), (this.d3 = t.d3), (this.internal = w); + } + } + (E.prototype.init = function() { + var t = this.owner, + e = t.config, + n = t.main; + (t.axes.x = n + .append('g') + .attr('class', S.axis + ' ' + S.axisX) + .attr('clip-path', e.axis_x_inner ? '' : t.clipPathForXAxis) + .attr('transform', t.getTranslate('x')) + .style('visibility', e.axis_x_show ? 'visible' : 'hidden')), + t.axes.x + .append('text') + .attr('class', S.axisXLabel) + .attr('transform', e.axis_rotated ? 'rotate(-90)' : '') + .style('text-anchor', this.textAnchorForXAxisLabel.bind(this)), + (t.axes.y = n + .append('g') + .attr('class', S.axis + ' ' + S.axisY) + .attr('clip-path', e.axis_y_inner ? '' : t.clipPathForYAxis) + .attr('transform', t.getTranslate('y')) + .style('visibility', e.axis_y_show ? 'visible' : 'hidden')), + t.axes.y + .append('text') + .attr('class', S.axisYLabel) + .attr('transform', e.axis_rotated ? '' : 'rotate(-90)') + .style('text-anchor', this.textAnchorForYAxisLabel.bind(this)), + (t.axes.y2 = n + .append('g') + .attr('class', S.axis + ' ' + S.axisY2) + .attr('transform', t.getTranslate('y2')) + .style('visibility', e.axis_y2_show ? 'visible' : 'hidden')), + t.axes.y2 + .append('text') + .attr('class', S.axisY2Label) + .attr('transform', e.axis_rotated ? '' : 'rotate(-90)') + .style('text-anchor', this.textAnchorForY2AxisLabel.bind(this)); + }), + (E.prototype.getXAxis = function(t, e, n, r, i, o, a) { + var s = this.owner, + u = s.config, + l = { + isCategory: s.isCategorized(), + withOuterTick: i, + tickMultiline: u.axis_x_tick_multiline, + tickMultilineMax: u.axis_x_tick_multiline + ? Number(u.axis_x_tick_multilineMax) + : 0, + tickWidth: u.axis_x_tick_width, + tickTextRotate: a ? 0 : u.axis_x_tick_rotate, + withoutTransition: o + }, + c = new this.internal(this, l).axis.scale(t).orient(e); + return ( + s.isTimeSeries() && + r && + 'function' != typeof r && + (r = r.map(function(t) { + return s.parseDate(t); + })), + c.tickFormat(n).tickValues(r), + s.isCategorized() && + (c.tickCentered(u.axis_x_tick_centered), + p(u.axis_x_tick_culling) && (u.axis_x_tick_culling = !1)), + c + ); + }), + (E.prototype.updateXAxisTickValues = function(t, e) { + var n, + r = this.owner, + i = r.config; + return ( + (i.axis_x_tick_fit || i.axis_x_tick_count) && + (n = this.generateTickValues( + r.mapTargetsToUniqueXs(t), + i.axis_x_tick_count, + r.isTimeSeries() + )), + e + ? e.tickValues(n) + : (r.xAxis.tickValues(n), r.subXAxis.tickValues(n)), + n + ); + }), + (E.prototype.getYAxis = function(t, e, n, r, i, o, a) { + const s = this.owner, + u = s.config; + let l = u[`axis_${t}_tick_format`]; + !l && s.isAxisNormalized(t) && (l = t => `${t}%`); + const c = new this.internal(this, { + withOuterTick: i, + withoutTransition: o, + tickTextRotate: a ? 0 : u.axis_y_tick_rotate + }).axis + .scale(e) + .orient(n); + return ( + l && c.tickFormat(l), + s.isTimeSeriesY() + ? c.ticks(u.axis_y_tick_time_type, u.axis_y_tick_time_interval) + : c.tickValues(r), + c + ); + }), + (E.prototype.getId = function(t) { + var e = this.owner.config; + return t in e.data_axes ? e.data_axes[t] : 'y'; + }), + (E.prototype.getXAxisTickFormat = function() { + var t = this.owner, + e = t.config; + let n = t.isTimeSeries() + ? t.defaultAxisTimeFormat + : t.isCategorized() + ? t.categoryName + : function(t) { + return t; + }; + return ( + e.axis_x_tick_format && + (g(e.axis_x_tick_format) + ? (n = e.axis_x_tick_format) + : t.isTimeSeries() && + (n = function(n) { + return n ? t.axisTimeFormat(e.axis_x_tick_format)(n) : ''; + })), + g(n) + ? function(e) { + return n.call(t, e); + } + : n + ); + }), + (E.prototype.getTickValues = function(t, e) { + return t || (e ? e.tickValues() : void 0); + }), + (E.prototype.getXAxisTickValues = function() { + return this.getTickValues( + this.owner.config.axis_x_tick_values, + this.owner.xAxis + ); + }), + (E.prototype.getYAxisTickValues = function() { + return this.getTickValues( + this.owner.config.axis_y_tick_values, + this.owner.yAxis + ); + }), + (E.prototype.getY2AxisTickValues = function() { + return this.getTickValues( + this.owner.config.axis_y2_tick_values, + this.owner.y2Axis + ); + }), + (E.prototype.getLabelOptionByAxisId = function(t) { + var e, + n = this.owner.config; + return ( + 'y' === t + ? (e = n.axis_y_label) + : 'y2' === t + ? (e = n.axis_y2_label) + : 'x' === t && (e = n.axis_x_label), + e + ); + }), + (E.prototype.getLabelText = function(t) { + var e = this.getLabelOptionByAxisId(t); + return v(e) ? e : e ? e.text : null; + }), + (E.prototype.setLabelText = function(t, e) { + var n = this.owner.config, + r = this.getLabelOptionByAxisId(t); + v(r) + ? 'y' === t + ? (n.axis_y_label = e) + : 'y2' === t + ? (n.axis_y2_label = e) + : 'x' === t && (n.axis_x_label = e) + : r && (r.text = e); + }), + (E.prototype.getLabelPosition = function(t, e) { + var n = this.getLabelOptionByAxisId(t), + r = n && 'object' == typeof n && n.position ? n.position : e; + return { + isInner: r.indexOf('inner') >= 0, + isOuter: r.indexOf('outer') >= 0, + isLeft: r.indexOf('left') >= 0, + isCenter: r.indexOf('center') >= 0, + isRight: r.indexOf('right') >= 0, + isTop: r.indexOf('top') >= 0, + isMiddle: r.indexOf('middle') >= 0, + isBottom: r.indexOf('bottom') >= 0 + }; + }), + (E.prototype.getXAxisLabelPosition = function() { + return this.getLabelPosition( + 'x', + this.owner.config.axis_rotated ? 'inner-top' : 'inner-right' + ); + }), + (E.prototype.getYAxisLabelPosition = function() { + return this.getLabelPosition( + 'y', + this.owner.config.axis_rotated ? 'inner-right' : 'inner-top' + ); + }), + (E.prototype.getY2AxisLabelPosition = function() { + return this.getLabelPosition( + 'y2', + this.owner.config.axis_rotated ? 'inner-right' : 'inner-top' + ); + }), + (E.prototype.getLabelPositionById = function(t) { + return 'y2' === t + ? this.getY2AxisLabelPosition() + : 'y' === t + ? this.getYAxisLabelPosition() + : this.getXAxisLabelPosition(); + }), + (E.prototype.textForXAxisLabel = function() { + return this.getLabelText('x'); + }), + (E.prototype.textForYAxisLabel = function() { + return this.getLabelText('y'); + }), + (E.prototype.textForY2AxisLabel = function() { + return this.getLabelText('y2'); + }), + (E.prototype.xForAxisLabel = function(t, e) { + var n = this.owner; + return t + ? e.isLeft + ? 0 + : e.isCenter + ? n.width / 2 + : n.width + : e.isBottom + ? -n.height + : e.isMiddle + ? -n.height / 2 + : 0; + }), + (E.prototype.dxForAxisLabel = function(t, e) { + return t + ? e.isLeft + ? '0.5em' + : e.isRight + ? '-0.5em' + : '0' + : e.isTop + ? '-0.5em' + : e.isBottom + ? '0.5em' + : '0'; + }), + (E.prototype.textAnchorForAxisLabel = function(t, e) { + return t + ? e.isLeft + ? 'start' + : e.isCenter + ? 'middle' + : 'end' + : e.isBottom + ? 'start' + : e.isMiddle + ? 'middle' + : 'end'; + }), + (E.prototype.xForXAxisLabel = function() { + return this.xForAxisLabel( + !this.owner.config.axis_rotated, + this.getXAxisLabelPosition() + ); + }), + (E.prototype.xForYAxisLabel = function() { + return this.xForAxisLabel( + this.owner.config.axis_rotated, + this.getYAxisLabelPosition() + ); + }), + (E.prototype.xForY2AxisLabel = function() { + return this.xForAxisLabel( + this.owner.config.axis_rotated, + this.getY2AxisLabelPosition() + ); + }), + (E.prototype.dxForXAxisLabel = function() { + return this.dxForAxisLabel( + !this.owner.config.axis_rotated, + this.getXAxisLabelPosition() + ); + }), + (E.prototype.dxForYAxisLabel = function() { + return this.dxForAxisLabel( + this.owner.config.axis_rotated, + this.getYAxisLabelPosition() + ); + }), + (E.prototype.dxForY2AxisLabel = function() { + return this.dxForAxisLabel( + this.owner.config.axis_rotated, + this.getY2AxisLabelPosition() + ); + }), + (E.prototype.dyForXAxisLabel = function() { + var t = this.owner, + e = t.config, + n = this.getXAxisLabelPosition(); + return e.axis_rotated + ? n.isInner + ? '1.2em' + : -25 - (t.config.axis_x_inner ? 0 : this.getMaxTickWidth('x')) + : n.isInner + ? '-0.5em' + : t.getHorizontalAxisHeight('x') - 10; + }), + (E.prototype.dyForYAxisLabel = function() { + var t = this.owner, + e = this.getYAxisLabelPosition(); + return t.config.axis_rotated + ? e.isInner + ? '-0.5em' + : '3em' + : e.isInner + ? '1.2em' + : -10 - + (t.config.axis_y_inner ? 0 : this.getMaxTickWidth('y') + 10); + }), + (E.prototype.dyForY2AxisLabel = function() { + var t = this.owner, + e = this.getY2AxisLabelPosition(); + return t.config.axis_rotated + ? e.isInner + ? '1.2em' + : '-2.2em' + : e.isInner + ? '-0.5em' + : 15 + + (t.config.axis_y2_inner ? 0 : this.getMaxTickWidth('y2') + 15); + }), + (E.prototype.textAnchorForXAxisLabel = function() { + var t = this.owner; + return this.textAnchorForAxisLabel( + !t.config.axis_rotated, + this.getXAxisLabelPosition() + ); + }), + (E.prototype.textAnchorForYAxisLabel = function() { + var t = this.owner; + return this.textAnchorForAxisLabel( + t.config.axis_rotated, + this.getYAxisLabelPosition() + ); + }), + (E.prototype.textAnchorForY2AxisLabel = function() { + var t = this.owner; + return this.textAnchorForAxisLabel( + t.config.axis_rotated, + this.getY2AxisLabelPosition() + ); + }), + (E.prototype.getMaxTickWidth = function(t, e) { + var n, + r, + i, + o, + a = this.owner, + s = 0; + return e && a.currentMaxTickWidths[t] + ? a.currentMaxTickWidths[t] + : (a.svg && + ((n = a.filterTargetsToShow(a.data.targets)), + 'y' === t + ? ((r = a.y.copy().domain(a.getYDomain(n, 'y'))), + (i = this.getYAxis( + t, + r, + a.yOrient, + a.yAxisTickValues, + !1, + !0, + !0 + ))) + : 'y2' === t + ? ((r = a.y2.copy().domain(a.getYDomain(n, 'y2'))), + (i = this.getYAxis( + t, + r, + a.y2Orient, + a.y2AxisTickValues, + !1, + !0, + !0 + ))) + : ((r = a.x.copy().domain(a.getXDomain(n))), + (i = this.getXAxis( + r, + a.xOrient, + a.xAxisTickFormat, + a.xAxisTickValues, + !1, + !0, + !0 + )), + this.updateXAxisTickValues(n, i)), + (o = a.d3 + .select('body') + .append('div') + .classed('c3', !0)) + .append('svg') + .style('visibility', 'hidden') + .style('position', 'fixed') + .style('top', 0) + .style('left', 0) + .append('g') + .call(i) + .each(function() { + a.d3 + .select(this) + .selectAll('text') + .each(function() { + var t = f(this); + s < t.width && (s = t.width); }), - (s.hasNegativeValue = s.hasNegativeValueInTargets(n)), - (s.hasPositiveValue = s.hasPositiveValueInTargets(n)), - u.data_type && - s.setTargetType( - s.mapToIds(n).filter(function(t) { - return !(t in u.data_types); + o.remove(); + })), + (a.currentMaxTickWidths[t] = + s <= 0 ? a.currentMaxTickWidths[t] : s), + a.currentMaxTickWidths[t]); + }), + (E.prototype.updateLabels = function(t) { + var e = this.owner, + n = e.main.select('.' + S.axisX + ' .' + S.axisXLabel), + r = e.main.select('.' + S.axisY + ' .' + S.axisYLabel), + i = e.main.select('.' + S.axisY2 + ' .' + S.axisY2Label); + (t ? n.transition() : n) + .attr('x', this.xForXAxisLabel.bind(this)) + .attr('dx', this.dxForXAxisLabel.bind(this)) + .attr('dy', this.dyForXAxisLabel.bind(this)) + .text(this.textForXAxisLabel.bind(this)), + (t ? r.transition() : r) + .attr('x', this.xForYAxisLabel.bind(this)) + .attr('dx', this.dxForYAxisLabel.bind(this)) + .attr('dy', this.dyForYAxisLabel.bind(this)) + .text(this.textForYAxisLabel.bind(this)), + (t ? i.transition() : i) + .attr('x', this.xForY2AxisLabel.bind(this)) + .attr('dx', this.dxForY2AxisLabel.bind(this)) + .attr('dy', this.dyForY2AxisLabel.bind(this)) + .text(this.textForY2AxisLabel.bind(this)); + }), + (E.prototype.getPadding = function(t, e, n, r) { + var i = 'number' == typeof t ? t : t[e]; + return b(i) + ? 'ratio' === t.unit + ? t[e] * r + : this.convertPixelsToAxisPadding(i, r) + : n; + }), + (E.prototype.convertPixelsToAxisPadding = function(t, e) { + var n = this.owner; + return e * (t / (n.config.axis_rotated ? n.width : n.height)); + }), + (E.prototype.generateTickValues = function(t, e, n) { + var r, + i, + o, + a, + s, + u, + l, + c = t; + if (e) + if (1 === (r = g(e) ? e() : e)) c = [t[0]]; + else if (2 === r) c = [t[0], t[t.length - 1]]; + else if (r > 2) { + for ( + a = r - 2, + i = t[0], + s = ((o = t[t.length - 1]) - i) / (a + 1), + c = [i], + u = 0; + u < a; + u++ + ) + (l = +i + s * (u + 1)), c.push(n ? new Date(l) : l); + c.push(o); + } + return ( + n || + (c = c.sort(function(t, e) { + return t - e; + })), + c + ); + }), + (E.prototype.generateTransitions = function(t) { + var e = this.owner.axes; + return { + axisX: t ? e.x.transition().duration(t) : e.x, + axisY: t ? e.y.transition().duration(t) : e.y, + axisY2: t ? e.y2.transition().duration(t) : e.y2, + axisSubX: t ? e.subx.transition().duration(t) : e.subx + }; + }), + (E.prototype.redraw = function(t, e) { + var n = this.owner, + r = t ? n.d3.transition().duration(t) : null; + n.axes.x.style('opacity', e ? 0 : 1).call(n.xAxis, r), + n.axes.y.style('opacity', e ? 0 : 1).call(n.yAxis, r), + n.axes.y2.style('opacity', e ? 0 : 1).call(n.y2Axis, r), + n.axes.subx.style('opacity', e ? 0 : 1).call(n.subXAxis, r); + }); + var k = { + version: '0.7.12', + chart: { + fn: o.prototype, + internal: { + fn: i.prototype, + axis: { fn: E.prototype, internal: { fn: w.prototype } } + } + }, + generate: function(t) { + return new o(t); + } + }; + function A(t, e, n) { + var r = [0.01, 10]; + function i(t) { + return n(e(t)); + } + return ( + e || (e = t.scaleLinear()).range(r), + n || ((n = t.scaleLog()).domain(r), n.nice()), + (i.domain = function(t) { + return arguments.length ? (e.domain(t), i) : e.domain(); + }), + (i.range = function(t) { + return arguments.length ? (n.range(t), i) : n.range(); + }), + (i.ticks = function(t) { + return (function(t, e, n) { + var r, i, o, a; + if (arguments.length < 3) n = 10; + else if (0 === n) return []; + (a = (e - t) / (i = n - 1)), + (o = t), + ((r = new Array(n))[0] = Math.pow(10, o)); + for (var s = 1; s < i; s++) (o += a), (r[s] = Math.pow(10, o)); + return (r[i] = Math.pow(10, e)), r; + })(-2, 1, t || 10).map(function(t) { + return e.invert(t); + }); + }), + (i.copy = function() { + return A(t, e.copy(), n.copy()); + }), + i + ); + } + function T(t) { + return ( + t / Math.pow(10, Math.ceil(Math.log(t) / Math.LN10 - 1e-12)) == 1 + ); + } + (i.prototype.beforeInit = function() {}), + (i.prototype.afterInit = function() {}), + (i.prototype.init = function() { + var t = this, + e = t.config; + if ((t.initParams(), e.data_url)) + t.convertUrlToData( + e.data_url, + e.data_mimeType, + e.data_headers, + e.data_keys, + t.initWithData + ); + else if (e.data_json) + t.initWithData(t.convertJsonToData(e.data_json, e.data_keys)); + else if (e.data_rows) + t.initWithData(t.convertRowsToData(e.data_rows)); + else { + if (!e.data_columns) + throw Error('url or json or rows or columns is required.'); + t.initWithData(t.convertColumnsToData(e.data_columns)); + } + }), + (i.prototype.initParams = function() { + var t = this, + e = t.d3, + n = t.config; + (t.clipId = 'c3-' + +new Date() + '-clip'), + (t.clipIdForXAxis = t.clipId + '-xaxis'), + (t.clipIdForYAxis = t.clipId + '-yaxis'), + (t.clipIdForGrid = t.clipId + '-grid'), + (t.clipIdForSubchart = t.clipId + '-subchart'), + (t.clipPath = t.getClipPath(t.clipId)), + (t.clipPathForXAxis = t.getClipPath(t.clipIdForXAxis)), + (t.clipPathForYAxis = t.getClipPath(t.clipIdForYAxis)), + (t.clipPathForGrid = t.getClipPath(t.clipIdForGrid)), + (t.clipPathForSubchart = t.getClipPath(t.clipIdForSubchart)), + (t.dragStart = null), + (t.dragging = !1), + (t.flowing = !1), + (t.cancelClick = !1), + (t.mouseover = void 0), + (t.transiting = !1), + (t.color = t.generateColor()), + (t.levelColor = t.generateLevelColor()), + (t.dataTimeParse = (n.data_xLocaltime ? e.timeParse : e.utcParse)( + t.config.data_xFormat + )), + (t.axisTimeFormat = n.axis_x_localtime + ? e.timeFormat + : e.utcFormat), + (t.defaultAxisTimeFormat = function(t) { + return t.getMilliseconds() + ? e.timeFormat('.%L')(t) + : t.getSeconds() + ? e.timeFormat(':%S')(t) + : t.getMinutes() + ? e.timeFormat('%I:%M')(t) + : t.getHours() + ? e.timeFormat('%I %p')(t) + : t.getDay() && 1 !== t.getDate() + ? e.timeFormat('%-m/%-d')(t) + : 1 !== t.getDate() + ? e.timeFormat('%-m/%-d')(t) + : t.getMonth() + ? e.timeFormat('%-m/%-d')(t) + : e.timeFormat('%Y/%-m/%-d')(t); + }), + (t.hiddenTargetIds = []), + (t.hiddenLegendIds = []), + (t.focusedTargetIds = []), + (t.defocusedTargetIds = []), + (t.xOrient = n.axis_rotated + ? n.axis_x_inner + ? 'right' + : 'left' + : n.axis_x_inner + ? 'top' + : 'bottom'), + (t.yOrient = n.axis_rotated + ? n.axis_y_inner + ? 'top' + : 'bottom' + : n.axis_y_inner + ? 'right' + : 'left'), + (t.y2Orient = n.axis_rotated + ? n.axis_y2_inner + ? 'bottom' + : 'top' + : n.axis_y2_inner + ? 'left' + : 'right'), + (t.subXOrient = n.axis_rotated ? 'left' : 'bottom'), + (t.isLegendRight = 'right' === n.legend_position), + (t.isLegendInset = 'inset' === n.legend_position), + (t.isLegendTop = + 'top-left' === n.legend_inset_anchor || + 'top-right' === n.legend_inset_anchor), + (t.isLegendLeft = + 'top-left' === n.legend_inset_anchor || + 'bottom-left' === n.legend_inset_anchor), + (t.legendStep = 0), + (t.legendItemWidth = 0), + (t.legendItemHeight = 0), + (t.currentMaxTickWidths = { x: 0, y: 0, y2: 0 }), + (t.rotated_padding_left = 30), + (t.rotated_padding_right = + n.axis_rotated && !n.axis_x_show ? 0 : 30), + (t.rotated_padding_top = 5), + (t.withoutFadeIn = {}), + (t.intervalForObserveInserted = void 0), + (t.axes.subx = e.selectAll([])); + }), + (i.prototype.initChartElements = function() { + this.initBar && this.initBar(), + this.initLine && this.initLine(), + this.initArc && this.initArc(), + this.initGauge && this.initGauge(), + this.initText && this.initText(); + }), + (i.prototype.initWithData = function(t) { + var e, + n, + r = this, + i = r.d3, + o = r.config, + a = !0; + (r.axis = new E(r)), + o.bindto + ? 'function' == typeof o.bindto.node + ? (r.selectChart = o.bindto) + : (r.selectChart = i.select(o.bindto)) + : (r.selectChart = i.selectAll([])), + r.selectChart.empty() && + ((r.selectChart = i + .select(document.createElement('div')) + .style('opacity', 0)), + r.observeInserted(r.selectChart), + (a = !1)), + r.selectChart.html('').classed('c3', !0), + (r.data.xs = {}), + (r.data.targets = r.convertDataToTargets(t)), + o.data_filter && + (r.data.targets = r.data.targets.filter(o.data_filter)), + o.data_hide && + r.addHiddenTargetIds( + !0 === o.data_hide ? r.mapToIds(r.data.targets) : o.data_hide + ), + o.legend_hide && + r.addHiddenLegendIds( + !0 === o.legend_hide + ? r.mapToIds(r.data.targets) + : o.legend_hide + ), + r.isStanfordGraphType() && r.initStanfordData(), + r.updateSizes(), + r.updateScales(), + r.x.domain(i.extent(r.getXDomain(r.data.targets))), + r.y.domain(r.getYDomain(r.data.targets, 'y')), + r.y2.domain(r.getYDomain(r.data.targets, 'y2')), + r.subX.domain(r.x.domain()), + r.subY.domain(r.y.domain()), + r.subY2.domain(r.y2.domain()), + (r.orgXDomain = r.x.domain()), + (r.svg = r.selectChart + .append('svg') + .style('overflow', 'hidden') + .on('mouseenter', function() { + return o.onmouseover.call(r); + }) + .on('mouseleave', function() { + return o.onmouseout.call(r); + })), + r.config.svg_classname && + r.svg.attr('class', r.config.svg_classname), + (e = r.svg.append('defs')), + (r.clipChart = r.appendClip(e, r.clipId)), + (r.clipXAxis = r.appendClip(e, r.clipIdForXAxis)), + (r.clipYAxis = r.appendClip(e, r.clipIdForYAxis)), + (r.clipGrid = r.appendClip(e, r.clipIdForGrid)), + (r.clipSubchart = r.appendClip(e, r.clipIdForSubchart)), + r.updateSvgSize(), + (n = r.main = r.svg + .append('g') + .attr('transform', r.getTranslate('main'))), + r.initPie && r.initPie(), + r.initDragZoom && r.initDragZoom(), + o.subchart_show && r.initSubchart && r.initSubchart(), + r.initTooltip && r.initTooltip(), + r.initLegend && r.initLegend(), + r.initTitle && r.initTitle(), + r.initZoom && r.initZoom(), + r.isStanfordGraphType() && r.drawColorScale(), + o.subchart_show && r.initSubchartBrush && r.initSubchartBrush(), + n + .append('text') + .attr('class', S.text + ' ' + S.empty) + .attr('text-anchor', 'middle') + .attr('dominant-baseline', 'middle'), + r.initRegion(), + r.initGrid(), + n + .append('g') + .attr('clip-path', r.clipPath) + .attr('class', S.chart), + o.grid_lines_front && r.initGridLines(), + r.initStanfordElements(), + r.initEventRect(), + r.initChartElements(), + r.axis.init(), + r.updateTargets(r.data.targets), + o.axis_x_selection && + r.brush.selectionAsValue(r.getDefaultSelection()), + a && + (r.updateDimension(), + r.config.oninit.call(r), + r.redraw({ + withTransition: !1, + withTransform: !0, + withUpdateXDomain: !0, + withUpdateOrgXDomain: !0, + withTransitionForAxis: !1 + })), + r.bindResize(), + r.bindWindowFocus(), + (r.api.element = r.selectChart.node()); + }), + (i.prototype.smoothLines = function(t, e) { + var n = this; + 'grid' === e && + t.each(function() { + var t = n.d3.select(this), + e = t.attr('x1'), + r = t.attr('x2'), + i = t.attr('y1'), + o = t.attr('y2'); + t.attr({ + x1: Math.ceil(e), + x2: Math.ceil(r), + y1: Math.ceil(i), + y2: Math.ceil(o) + }); + }); + }), + (i.prototype.updateSizes = function() { + var t = this, + e = t.config, + n = t.legend ? t.getLegendHeight() : 0, + r = t.legend ? t.getLegendWidth() : 0, + i = t.isLegendRight || t.isLegendInset ? 0 : n, + o = t.hasArcType(), + a = e.axis_rotated || o ? 0 : t.getHorizontalAxisHeight('x'), + s = e.subchart_show && !o ? e.subchart_size_height + a : 0; + (t.currentWidth = t.getCurrentWidth()), + (t.currentHeight = t.getCurrentHeight()), + (t.margin = e.axis_rotated + ? { + top: + t.getHorizontalAxisHeight('y2') + t.getCurrentPaddingTop(), + right: o ? 0 : t.getCurrentPaddingRight(), + bottom: + t.getHorizontalAxisHeight('y') + + i + + t.getCurrentPaddingBottom(), + left: s + (o ? 0 : t.getCurrentPaddingLeft()) + } + : { + top: 4 + t.getCurrentPaddingTop(), + right: o ? 0 : t.getCurrentPaddingRight(), + bottom: a + s + i + t.getCurrentPaddingBottom(), + left: o ? 0 : t.getCurrentPaddingLeft() + }), + (t.margin2 = e.axis_rotated + ? { + top: t.margin.top, + right: NaN, + bottom: 20 + i, + left: t.rotated_padding_left + } + : { + top: t.currentHeight - s - i, + right: NaN, + bottom: a + i, + left: t.margin.left + }), + (t.margin3 = { top: 0, right: NaN, bottom: 0, left: 0 }), + t.updateSizeForLegend && t.updateSizeForLegend(n, r), + (t.width = t.currentWidth - t.margin.left - t.margin.right), + (t.height = t.currentHeight - t.margin.top - t.margin.bottom), + t.width < 0 && (t.width = 0), + t.height < 0 && (t.height = 0), + (t.width2 = e.axis_rotated + ? t.margin.left - t.rotated_padding_left - t.rotated_padding_right + : t.width), + (t.height2 = e.axis_rotated + ? t.height + : t.currentHeight - t.margin2.top - t.margin2.bottom), + t.width2 < 0 && (t.width2 = 0), + t.height2 < 0 && (t.height2 = 0), + (t.arcWidth = t.width - (t.isLegendRight ? r + 10 : 0)), + (t.arcHeight = t.height - (t.isLegendRight ? 0 : 10)), + t.hasType('gauge') && + !e.gauge_fullCircle && + (t.arcHeight += t.height - t.getGaugeLabelHeight()), + t.updateRadius && t.updateRadius(), + t.isLegendRight && + o && + (t.margin3.left = t.arcWidth / 2 + 1.1 * t.radiusExpanded); + }), + (i.prototype.updateTargets = function(t) { + var e = this, + n = e.config; + e.updateTargetsForText(t), + e.updateTargetsForBar(t), + e.updateTargetsForLine(t), + e.hasArcType() && e.updateTargetsForArc && e.updateTargetsForArc(t), + n.subchart_show && + e.updateTargetsForSubchart && + e.updateTargetsForSubchart(t), + e.showTargets(); + }), + (i.prototype.showTargets = function() { + var t = this; + t.svg + .selectAll('.' + S.target) + .filter(function(e) { + return t.isTargetToShow(e.id); + }) + .transition() + .duration(t.config.transition_duration) + .style('opacity', 1); + }), + (i.prototype.redraw = function(t, e) { + var n, + r, + i, + o, + a, + s, + u, + c, + f, + d, + h, + p, + g, + m, + v, + y, + b, + _, + x, + w, + E, + k, + A, + T, + C, + O, + P, + M, + L, + j, + D, + R = this, + z = R.main, + N = R.d3, + I = R.config, + F = R.getShapeIndices(R.isAreaType), + V = R.getShapeIndices(R.isBarType), + B = R.getShapeIndices(R.isLineType), + G = R.hasArcType(), + H = R.filterTargetsToShow(R.data.targets), + U = R.xv.bind(R); + if ( + ((n = l((t = t || {}), 'withY', !0)), + (r = l(t, 'withSubchart', !0)), + (i = l(t, 'withTransition', !0)), + (s = l(t, 'withTransform', !1)), + (u = l(t, 'withUpdateXDomain', !1)), + (c = l(t, 'withUpdateOrgXDomain', !1)), + (f = l(t, 'withTrimXDomain', !0)), + (g = l(t, 'withUpdateXAxis', u)), + (d = l(t, 'withLegend', !1)), + (h = l(t, 'withEventRect', !0)), + (p = l(t, 'withDimension', !0)), + (o = l(t, 'withTransitionForExit', i)), + (a = l(t, 'withTransitionForAxis', i)), + (x = i ? I.transition_duration : 0), + (w = o ? x : 0), + (E = a ? x : 0), + (e = e || R.axis.generateTransitions(E)), + d && I.legend_show + ? R.updateLegend(R.mapToIds(R.data.targets), t, e) + : p && R.updateDimension(!0), + R.isCategorized() && + 0 === H.length && + R.x.domain([0, R.axes.x.selectAll('.tick').size()]), + H.length + ? (R.updateXDomain(H, u, c, f), + I.axis_x_tick_values || (O = R.axis.updateXAxisTickValues(H))) + : (R.xAxis.tickValues([]), R.subXAxis.tickValues([])), + I.zoom_rescale && !t.flow && (L = R.x.orgDomain()), + R.y.domain(R.getYDomain(H, 'y', L)), + R.y2.domain(R.getYDomain(H, 'y2', L)), + !I.axis_y_tick_values && + I.axis_y_tick_count && + R.yAxis.tickValues( + R.axis.generateTickValues(R.y.domain(), I.axis_y_tick_count) + ), + !I.axis_y2_tick_values && + I.axis_y2_tick_count && + R.y2Axis.tickValues( + R.axis.generateTickValues(R.y2.domain(), I.axis_y2_tick_count) + ), + R.axis.redraw(E, G), + R.axis.updateLabels(i), + (u || g) && H.length) + ) + if (I.axis_x_tick_culling && O) { + for (P = 1; P < O.length; P++) + if (O.length / P < I.axis_x_tick_culling_max) { + M = P; + break; + } + R.svg.selectAll('.' + S.axisX + ' .tick text').each(function(t) { + var e = O.indexOf(t); + e >= 0 && + N.select(this).style('display', e % M ? 'none' : 'block'); + }); + } else + R.svg + .selectAll('.' + S.axisX + ' .tick text') + .style('display', 'block'); + (m = R.generateDrawArea ? R.generateDrawArea(F, !1) : void 0), + (v = R.generateDrawBar ? R.generateDrawBar(V) : void 0), + (y = R.generateDrawLine ? R.generateDrawLine(B, !1) : void 0), + (b = R.generateXYForText(F, V, B, !0)), + (_ = R.generateXYForText(F, V, B, !1)), + R.updateCircleY(), + (j = (R.config.axis_rotated ? R.circleY : R.circleX).bind(R)), + (D = (R.config.axis_rotated ? R.circleX : R.circleY).bind(R)), + n && + (R.subY.domain(R.getYDomain(H, 'y')), + R.subY2.domain(R.getYDomain(H, 'y2'))), + R.updateXgridFocus(), + z + .select('text.' + S.text + '.' + S.empty) + .attr('x', R.width / 2) + .attr('y', R.height / 2) + .text(I.data_empty_label_text) + .transition() + .style('opacity', H.length ? 0 : 1), + h && R.redrawEventRect(), + R.updateGrid(x), + R.updateStanfordElements(x), + R.updateRegion(x), + R.updateBar(w), + R.updateLine(w), + R.updateArea(w), + R.updateCircle(j, D), + R.hasDataLabel() && R.updateText(b, _, w), + R.redrawTitle && R.redrawTitle(), + R.redrawArc && R.redrawArc(x, w, s), + I.subchart_show && + R.redrawSubchart && + R.redrawSubchart(r, e, x, w, F, V, B), + R.isStanfordGraphType() && R.drawColorScale(), + z + .selectAll('.' + S.selectedCircles) + .filter(R.isBarType.bind(R)) + .selectAll('circle') + .remove(), + t.flow && + (T = R.generateFlow({ + targets: H, + flow: t.flow, + duration: t.flow.duration, + drawBar: v, + drawLine: y, + drawArea: m, + cx: j, + cy: D, + xv: U, + xForText: b, + yForText: _ + })), + x && R.isTabVisible() + ? ((C = N.transition().duration(x)), + (k = []), + [ + R.redrawBar(v, !0, C), + R.redrawLine(y, !0, C), + R.redrawArea(m, !0, C), + R.redrawCircle(j, D, !0, C), + R.redrawText(b, _, t.flow, !0, C), + R.redrawRegion(!0, C), + R.redrawGrid(!0, C) + ].forEach(function(t) { + t.forEach(function(t) { + k.push(t); + }); + }), + (A = R.generateWait()), + k.forEach(function(t) { + A.add(t); + }), + A(function() { + T && T(), I.onrendered && I.onrendered.call(R); + })) + : (R.redrawBar(v), + R.redrawLine(y), + R.redrawArea(m), + R.redrawCircle(j, D), + R.redrawText(b, _, t.flow), + R.redrawRegion(), + R.redrawGrid(), + T && T(), + I.onrendered && I.onrendered.call(R)), + R.mapToIds(R.data.targets).forEach(function(t) { + R.withoutFadeIn[t] = !0; + }); + }), + (i.prototype.updateAndRedraw = function(t) { + var e, + n = this, + r = n.config; + ((t = t || {}).withTransition = l(t, 'withTransition', !0)), + (t.withTransform = l(t, 'withTransform', !1)), + (t.withLegend = l(t, 'withLegend', !1)), + (t.withUpdateXDomain = l(t, 'withUpdateXDomain', !0)), + (t.withUpdateOrgXDomain = l(t, 'withUpdateOrgXDomain', !0)), + (t.withTransitionForExit = !1), + (t.withTransitionForTransform = l( + t, + 'withTransitionForTransform', + t.withTransition + )), + n.updateSizes(), + (t.withLegend && r.legend_show) || + ((e = n.axis.generateTransitions( + t.withTransitionForAxis ? r.transition_duration : 0 + )), + n.updateScales(), + n.updateSvgSize(), + n.transformAll(t.withTransitionForTransform, e)), + n.redraw(t, e); + }), + (i.prototype.redrawWithoutRescale = function() { + this.redraw({ + withY: !1, + withSubchart: !1, + withEventRect: !1, + withTransitionForAxis: !1 + }); + }), + (i.prototype.isTimeSeries = function() { + return 'timeseries' === this.config.axis_x_type; + }), + (i.prototype.isCategorized = function() { + return this.config.axis_x_type.indexOf('categor') >= 0; + }), + (i.prototype.isCustomX = function() { + var t = this.config; + return !this.isTimeSeries() && (t.data_x || _(t.data_xs)); + }), + (i.prototype.isTimeSeriesY = function() { + return 'timeseries' === this.config.axis_y_type; + }), + (i.prototype.getTranslate = function(t) { + var e, + n, + r = this, + i = r.config; + return ( + 'main' === t + ? ((e = a(r.margin.left)), (n = a(r.margin.top))) + : 'context' === t + ? ((e = a(r.margin2.left)), (n = a(r.margin2.top))) + : 'legend' === t + ? ((e = r.margin3.left), (n = r.margin3.top)) + : 'x' === t + ? ((e = 0), (n = i.axis_rotated ? 0 : r.height)) + : 'y' === t + ? ((e = 0), (n = i.axis_rotated ? r.height : 0)) + : 'y2' === t + ? ((e = i.axis_rotated ? 0 : r.width), + (n = i.axis_rotated ? 1 : 0)) + : 'subx' === t + ? ((e = 0), (n = i.axis_rotated ? 0 : r.height2)) + : 'arc' === t && + ((e = r.arcWidth / 2), + (n = r.arcHeight / 2 - (r.hasType('gauge') ? 6 : 0))), + 'translate(' + e + ',' + n + ')' + ); + }), + (i.prototype.initialOpacity = function(t) { + return null !== t.value && this.withoutFadeIn[t.id] ? 1 : 0; + }), + (i.prototype.initialOpacityForCircle = function(t) { + return null !== t.value && this.withoutFadeIn[t.id] + ? this.opacityForCircle(t) + : 0; + }), + (i.prototype.opacityForCircle = function(t) { + var e = + (g(this.config.point_show) + ? this.config.point_show(t) + : this.config.point_show) || this.isStanfordType(t) + ? 1 + : 0; + return b(t.value) ? (this.isScatterType(t) ? 0.5 : e) : 0; + }), + (i.prototype.opacityForText = function() { + return this.hasDataLabel() ? 1 : 0; + }), + (i.prototype.xx = function(t) { + return t ? this.x(t.x) : null; + }), + (i.prototype.xvCustom = function(t, e) { + var n = this, + r = e ? t[e] : t.value; + return ( + n.isTimeSeries() + ? (r = n.parseDate(t.value)) + : n.isCategorized() && + 'string' == typeof t.value && + (r = n.config.axis_x_categories.indexOf(t.value)), + Math.ceil(n.x(r)) + ); + }), + (i.prototype.yvCustom = function(t, e) { + var n = t.axis && 'y2' === t.axis ? this.y2 : this.y, + r = e ? t[e] : t.value; + return Math.ceil(n(r)); + }), + (i.prototype.xv = function(t) { + var e = this, + n = t.value; + return ( + e.isTimeSeries() + ? (n = e.parseDate(t.value)) + : e.isCategorized() && + 'string' == typeof t.value && + (n = e.config.axis_x_categories.indexOf(t.value)), + Math.ceil(e.x(n)) + ); + }), + (i.prototype.yv = function(t) { + var e = t.axis && 'y2' === t.axis ? this.y2 : this.y; + return Math.ceil(e(t.value)); + }), + (i.prototype.subxx = function(t) { + return t ? this.subX(t.x) : null; + }), + (i.prototype.transformMain = function(t, e) { + var n, + r, + i, + o = this; + e && e.axisX + ? (n = e.axisX) + : ((n = o.main.select('.' + S.axisX)), t && (n = n.transition())), + e && e.axisY + ? (r = e.axisY) + : ((r = o.main.select('.' + S.axisY)), t && (r = r.transition())), + e && e.axisY2 + ? (i = e.axisY2) + : ((i = o.main.select('.' + S.axisY2)), + t && (i = i.transition())), + (t ? o.main.transition() : o.main).attr( + 'transform', + o.getTranslate('main') + ), + n.attr('transform', o.getTranslate('x')), + r.attr('transform', o.getTranslate('y')), + i.attr('transform', o.getTranslate('y2')), + o.main + .select('.' + S.chartArcs) + .attr('transform', o.getTranslate('arc')); + }), + (i.prototype.transformAll = function(t, e) { + var n = this; + n.transformMain(t, e), + n.config.subchart_show && n.transformContext(t, e), + n.legend && n.transformLegend(t); + }), + (i.prototype.updateSvgSize = function() { + var t = this, + e = t.svg.select(`.${S.brush} .overlay`); + t.svg.attr('width', t.currentWidth).attr('height', t.currentHeight), + t.svg + .selectAll(['#' + t.clipId, '#' + t.clipIdForGrid]) + .select('rect') + .attr('width', t.width) + .attr('height', t.height), + t.svg + .select('#' + t.clipIdForXAxis) + .select('rect') + .attr('x', t.getXAxisClipX.bind(t)) + .attr('y', t.getXAxisClipY.bind(t)) + .attr('width', t.getXAxisClipWidth.bind(t)) + .attr('height', t.getXAxisClipHeight.bind(t)), + t.svg + .select('#' + t.clipIdForYAxis) + .select('rect') + .attr('x', t.getYAxisClipX.bind(t)) + .attr('y', t.getYAxisClipY.bind(t)) + .attr('width', t.getYAxisClipWidth.bind(t)) + .attr('height', t.getYAxisClipHeight.bind(t)), + t.svg + .select('#' + t.clipIdForSubchart) + .select('rect') + .attr('width', t.width) + .attr('height', (e.size() && e.attr('height')) || 0), + t.selectChart.style('max-height', t.currentHeight + 'px'); + }), + (i.prototype.updateDimension = function(t) { + var e = this; + t || + (e.config.axis_rotated + ? (e.axes.x.call(e.xAxis), e.axes.subx.call(e.subXAxis)) + : (e.axes.y.call(e.yAxis), e.axes.y2.call(e.y2Axis))), + e.updateSizes(), + e.updateScales(), + e.updateSvgSize(), + e.transformAll(!1); + }), + (i.prototype.observeInserted = function(t) { + var e, + n = this; + 'undefined' != typeof MutationObserver + ? (e = new MutationObserver(function(r) { + r.forEach(function(r) { + 'childList' === r.type && + r.previousSibling && + (e.disconnect(), + (n.intervalForObserveInserted = window.setInterval( + function() { + t.node().parentNode && + (window.clearInterval(n.intervalForObserveInserted), + n.updateDimension(), + n.brush && n.brush.update(), + n.config.oninit.call(n), + n.redraw({ + withTransform: !0, + withUpdateXDomain: !0, + withUpdateOrgXDomain: !0, + withTransition: !1, + withTransitionForTransform: !1, + withLegend: !0 }), - u.data_type - ), - n.forEach(function(t) { - s.addCache(t.id_org, t); - }), - n - ); - }), - (r.prototype.isEpochs = function(t) { - var e = this.config; - return e.data_epochs && t === e.data_epochs; - }), - (r.prototype.isX = function(t) { - var e = this.config; - return ( - (e.data_x && t === e.data_x) || - (b(e.data_xs) && - (function(t, e) { - var n = !1; - return ( - Object.keys(t).forEach(function(r) { - t[r] === e && (n = !0); - }), - n - ); - })(e.data_xs, t)) - ); - }), - (r.prototype.isNotX = function(t) { - return !this.isX(t); - }), - (r.prototype.isNotXAndNotEpochs = function(t) { - return !this.isX(t) && !this.isEpochs(t); - }), - (r.prototype.isStackNormalized = function() { - return ( - this.config.data_stack_normalize && - this.config.data_groups.length > 0 - ); - }), - (r.prototype.isAxisNormalized = function(t) { - var e = this; - return ( - !!e.isStackNormalized() && - e.data.targets - .filter(function(n) { - return e.axis.getId(n.id) === t; - }) - .some(function(t) { - return e.isTargetNormalized(t.id); - }) - ); - }), - (r.prototype.isTargetNormalized = function(t) { - return ( - this.isStackNormalized() && - this.config.data_groups.some(function(e) { - return e.includes(t); - }) - ); - }), - (r.prototype.getXKey = function(t) { - var e = this.config; - return e.data_x - ? e.data_x - : b(e.data_xs) - ? e.data_xs[t] - : null; - }), - (r.prototype.getTotalPerIndex = function(t) { - var e = this; - if (!e.isStackNormalized()) return null; - var n = e.getFromCache('getTotalPerIndex'); - if (void 0 !== n) return n[t]; - var r = { y: [], y2: [] }; - return ( - e.data.targets - .filter(function(t) { - return e.isTargetNormalized(t.id); - }) - .filter(function(t) { - return e.isTargetToShow(t.id); - }) - .forEach(function(t) { - var n = r[e.axis.getId(t.id)]; - t.values.forEach(function(t, e) { - n[e] || (n[e] = 0), - (n[e] += g(t.value) ? t.value : 0); - }); - }), - e.addToCache('getTotalPerIndex', r), - r[t] - ); - }), - (r.prototype.getTotalDataSum = function() { - var t = this, - n = t.getFromCache('getTotalDataSum'); - if (void 0 !== n) return n; - var r, - i, - o = ((r = t.data.targets - .filter(function(e) { - return t.isTargetToShow(e.id); - }) - .map(function(t) { - return t.values; - })), - Array.isArray(r) ? (i = []).concat.apply(i, e(r)) : []) - .map(function(t) { - return t.value; - }) - .reduce(function(t, e) { - return t + e; - }, 0); - return t.addToCache('getTotalDataSum', o), o; - }), - (r.prototype.getXValuesOfXKey = function(t, e) { - var n, - r = this; - return ( - (e && b(e) ? r.mapToIds(e) : []).forEach(function(e) { - r.getXKey(e) === t && (n = r.data.xs[e]); - }), - n - ); - }), - (r.prototype.getXValue = function(t, e) { - return t in this.data.xs && - this.data.xs[t] && - y(this.data.xs[t][e]) - ? this.data.xs[t][e] - : e; - }), - (r.prototype.getOtherTargetXs = function() { - var t = Object.keys(this.data.xs); - return t.length ? this.data.xs[t[0]] : null; - }), - (r.prototype.getOtherTargetX = function(t) { - var e = this.getOtherTargetXs(); - return e && t < e.length ? e[t] : null; - }), - (r.prototype.addXs = function(t) { - var e = this; - Object.keys(t).forEach(function(n) { - e.config.data_xs[n] = t[n]; - }); - }), - (r.prototype.addName = function(t) { - var e; - return ( - t && - ((e = this.config.data_names[t.id]), - (t.name = void 0 !== e ? e : t.id)), - t - ); - }), - (r.prototype.getValueOnIndex = function(t, e) { - var n = t.filter(function(t) { - return t.index === e; - }); - return n.length ? n[0] : null; - }), - (r.prototype.updateTargetX = function(t, e) { - var n = this; - t.forEach(function(t) { - t.values.forEach(function(r, i) { - r.x = n.generateTargetX(e[i], t.id, i); + t.transition().style('opacity', 1)); + }, + 10 + ))); + }); + })).observe(t.node(), { + attributes: !0, + childList: !0, + characterData: !0 + }) + : window.console.error('MutationObserver not defined.'); + }), + (i.prototype.bindResize = function() { + var t = this, + e = t.config; + if ( + ((t.resizeFunction = t.generateResize()), + t.resizeFunction.add(function() { + e.onresize.call(t); + }), + e.resize_auto && + t.resizeFunction.add(function() { + void 0 !== t.resizeTimeout && + window.clearTimeout(t.resizeTimeout), + (t.resizeTimeout = window.setTimeout(function() { + delete t.resizeTimeout, + t.updateAndRedraw({ + withUpdateXDomain: !1, + withUpdateOrgXDomain: !1, + withTransition: !1, + withTransitionForTransform: !1, + withLegend: !0 }), - (n.data.xs[t.id] = e); - }); - }), - (r.prototype.updateTargetXs = function(t, e) { - var n = this; - t.forEach(function(t) { - e[t.id] && n.updateTargetX([t], e[t.id]); - }); - }), - (r.prototype.generateTargetX = function(t, e, n) { - var r = this; - return r.isTimeSeries() - ? t - ? r.parseDate(t) - : r.parseDate(r.getXValue(e, n)) - : r.isCustomX() && !r.isCategorized() - ? y(t) - ? +t - : r.getXValue(e, n) - : n; - }), - (r.prototype.cloneTarget = function(t) { - return { - id: t.id, - id_org: t.id_org, - values: t.values.map(function(t) { - return { x: t.x, value: t.value, id: t.id }; - }) - }; - }), - (r.prototype.getMaxDataCount = function() { - return this.d3.max(this.data.targets, function(t) { - return t.values.length; - }); - }), - (r.prototype.mapToIds = function(t) { - return t.map(function(t) { - return t.id; - }); - }), - (r.prototype.mapToTargetIds = function(t) { - return t ? [].concat(t) : this.mapToIds(this.data.targets); - }), - (r.prototype.hasTarget = function(t, e) { - var n, - r = this.mapToIds(t); - for (n = 0; n < r.length; n++) if (r[n] === e) return !0; - return !1; - }), - (r.prototype.isTargetToShow = function(t) { - return this.hiddenTargetIds.indexOf(t) < 0; - }), - (r.prototype.isLegendToShow = function(t) { - return this.hiddenLegendIds.indexOf(t) < 0; - }), - (r.prototype.getTargetsToShow = function() { - return this.filterTargetsToShow(this.data.targets); - }), - (r.prototype.filterTargetsToShow = function(t) { - var e = this; - return t.filter(function(t) { - return e.isTargetToShow(t.id); - }); - }), - (r.prototype.mapTargetsToUniqueXs = function(t) { - var e = this.d3 - .set( - this.d3.merge( - t.map(function(t) { - return t.values.map(function(t) { - return +t.x; - }); - }) - ) - ) - .values(); - return (e = this.isTimeSeries() - ? e.map(function(t) { - return new Date(+t); - }) - : e.map(function(t) { - return +t; - })).sort(function(t, e) { - return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; - }); - }), - (r.prototype.addHiddenTargetIds = function(t) { - t = t instanceof Array ? t : new Array(t); - for (var e = 0; e < t.length; e++) - this.hiddenTargetIds.indexOf(t[e]) < 0 && - (this.hiddenTargetIds = this.hiddenTargetIds.concat( - t[e] - )); - this.resetCache(); - }), - (r.prototype.removeHiddenTargetIds = function(t) { - (this.hiddenTargetIds = this.hiddenTargetIds.filter( - function(e) { - return t.indexOf(e) < 0; + t.brush && t.brush.update(); + }, 100)); + }), + t.resizeFunction.add(function() { + e.onresized.call(t); + }), + (t.resizeIfElementDisplayed = function() { + null != t.api && t.api.element.offsetParent && t.resizeFunction(); + }), + window.attachEvent) + ) + window.attachEvent('onresize', t.resizeIfElementDisplayed); + else if (window.addEventListener) + window.addEventListener('resize', t.resizeIfElementDisplayed, !1); + else { + var n = window.onresize; + n + ? (n.add && n.remove) || + (n = t.generateResize()).add(window.onresize) + : (n = t.generateResize()), + n.add(t.resizeFunction), + (window.onresize = function() { + t.api.element.offsetParent && n(); + }); + } + }), + (i.prototype.bindWindowFocus = function() { + this.windowFocusHandler || + ((this.windowFocusHandler = () => { + this.redraw(); + }), + window.addEventListener('focus', this.windowFocusHandler)); + }), + (i.prototype.unbindWindowFocus = function() { + window.removeEventListener('focus', this.windowFocusHandler), + delete this.windowFocusHandler; + }), + (i.prototype.generateResize = function() { + var t = []; + function e() { + t.forEach(function(t) { + t(); + }); + } + return ( + (e.add = function(e) { + t.push(e); + }), + (e.remove = function(e) { + for (var n = 0; n < t.length; n++) + if (t[n] === e) { + t.splice(n, 1); + break; + } + }), + e + ); + }), + (i.prototype.endall = function(t, e) { + var n = 0; + t.each(function() { + ++n; + }).on('end', function() { + --n || e.apply(this, arguments); + }); + }), + (i.prototype.generateWait = function() { + var t = this, + e = [], + n = function(n) { + var r = setInterval(function() { + if (t.isTabVisible()) { + var i = 0; + e.forEach(function(t) { + if (t.empty()) i += 1; + else + try { + t.transition(); + } catch (t) { + i += 1; } - )), - this.resetCache(); - }), - (r.prototype.addHiddenLegendIds = function(t) { - t = t instanceof Array ? t : new Array(t); - for (var e = 0; e < t.length; e++) - this.hiddenLegendIds.indexOf(t[e]) < 0 && - (this.hiddenLegendIds = this.hiddenLegendIds.concat( - t[e] - )); - }), - (r.prototype.removeHiddenLegendIds = function(t) { - this.hiddenLegendIds = this.hiddenLegendIds.filter(function( - e - ) { - return t.indexOf(e) < 0; - }); }), - (r.prototype.getValuesAsIdKeyed = function(t) { - var e = {}; - return ( - t.forEach(function(t) { - (e[t.id] = []), - t.values.forEach(function(n) { - e[t.id].push(n.value); - }); - }), - e + i === e.length && (clearInterval(r), n && n()); + } + }, 50); + }; + return ( + (n.add = function(t) { + e.push(t); + }), + n + ); + }), + (i.prototype.parseDate = function(t) { + var e; + return ( + t instanceof Date + ? (e = t) + : 'string' == typeof t + ? (e = this.dataTimeParse(t)) + : 'object' == typeof t + ? (e = new Date(+t)) + : 'number' != typeof t || isNaN(t) || (e = new Date(+t)), + (e && !isNaN(+e)) || + window.console.error( + "Failed to parse x '" + t + "' to Date object" + ), + e + ); + }), + (i.prototype.isTabVisible = function() { + return !document.hidden; + }), + (i.prototype.getPathBox = c), + (i.prototype.CLASS = S), + 'SVGPathSeg' in window || + ((window.SVGPathSeg = function(t, e, n) { + (this.pathSegType = t), + (this.pathSegTypeAsLetter = e), + (this._owningPathSegList = n); + }), + (window.SVGPathSeg.prototype.classname = 'SVGPathSeg'), + (window.SVGPathSeg.PATHSEG_UNKNOWN = 0), + (window.SVGPathSeg.PATHSEG_CLOSEPATH = 1), + (window.SVGPathSeg.PATHSEG_MOVETO_ABS = 2), + (window.SVGPathSeg.PATHSEG_MOVETO_REL = 3), + (window.SVGPathSeg.PATHSEG_LINETO_ABS = 4), + (window.SVGPathSeg.PATHSEG_LINETO_REL = 5), + (window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS = 6), + (window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL = 7), + (window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS = 8), + (window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL = 9), + (window.SVGPathSeg.PATHSEG_ARC_ABS = 10), + (window.SVGPathSeg.PATHSEG_ARC_REL = 11), + (window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS = 12), + (window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL = 13), + (window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS = 14), + (window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL = 15), + (window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16), + (window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17), + (window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18), + (window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19), + (window.SVGPathSeg.prototype._segmentChanged = function() { + this._owningPathSegList && + this._owningPathSegList.segmentChanged(this); + }), + (window.SVGPathSegClosePath = function(t) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_CLOSEPATH, + 'z', + t + ); + }), + (window.SVGPathSegClosePath.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegClosePath.prototype.toString = function() { + return '[object SVGPathSegClosePath]'; + }), + (window.SVGPathSegClosePath.prototype._asPathString = function() { + return this.pathSegTypeAsLetter; + }), + (window.SVGPathSegClosePath.prototype.clone = function() { + return new window.SVGPathSegClosePath(void 0); + }), + (window.SVGPathSegMovetoAbs = function(t, e, n) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_MOVETO_ABS, + 'M', + t + ), + (this._x = e), + (this._y = n); + }), + (window.SVGPathSegMovetoAbs.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegMovetoAbs.prototype.toString = function() { + return '[object SVGPathSegMovetoAbs]'; + }), + (window.SVGPathSegMovetoAbs.prototype._asPathString = function() { + return this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y; + }), + (window.SVGPathSegMovetoAbs.prototype.clone = function() { + return new window.SVGPathSegMovetoAbs(void 0, this._x, this._y); + }), + Object.defineProperty(window.SVGPathSegMovetoAbs.prototype, 'x', { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + }), + Object.defineProperty(window.SVGPathSegMovetoAbs.prototype, 'y', { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + }), + (window.SVGPathSegMovetoRel = function(t, e, n) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_MOVETO_REL, + 'm', + t + ), + (this._x = e), + (this._y = n); + }), + (window.SVGPathSegMovetoRel.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegMovetoRel.prototype.toString = function() { + return '[object SVGPathSegMovetoRel]'; + }), + (window.SVGPathSegMovetoRel.prototype._asPathString = function() { + return this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y; + }), + (window.SVGPathSegMovetoRel.prototype.clone = function() { + return new window.SVGPathSegMovetoRel(void 0, this._x, this._y); + }), + Object.defineProperty(window.SVGPathSegMovetoRel.prototype, 'x', { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + }), + Object.defineProperty(window.SVGPathSegMovetoRel.prototype, 'y', { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + }), + (window.SVGPathSegLinetoAbs = function(t, e, n) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_LINETO_ABS, + 'L', + t + ), + (this._x = e), + (this._y = n); + }), + (window.SVGPathSegLinetoAbs.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegLinetoAbs.prototype.toString = function() { + return '[object SVGPathSegLinetoAbs]'; + }), + (window.SVGPathSegLinetoAbs.prototype._asPathString = function() { + return this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y; + }), + (window.SVGPathSegLinetoAbs.prototype.clone = function() { + return new window.SVGPathSegLinetoAbs(void 0, this._x, this._y); + }), + Object.defineProperty(window.SVGPathSegLinetoAbs.prototype, 'x', { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + }), + Object.defineProperty(window.SVGPathSegLinetoAbs.prototype, 'y', { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + }), + (window.SVGPathSegLinetoRel = function(t, e, n) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_LINETO_REL, + 'l', + t + ), + (this._x = e), + (this._y = n); + }), + (window.SVGPathSegLinetoRel.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegLinetoRel.prototype.toString = function() { + return '[object SVGPathSegLinetoRel]'; + }), + (window.SVGPathSegLinetoRel.prototype._asPathString = function() { + return this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y; + }), + (window.SVGPathSegLinetoRel.prototype.clone = function() { + return new window.SVGPathSegLinetoRel(void 0, this._x, this._y); + }), + Object.defineProperty(window.SVGPathSegLinetoRel.prototype, 'x', { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + }), + Object.defineProperty(window.SVGPathSegLinetoRel.prototype, 'y', { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + }), + (window.SVGPathSegCurvetoCubicAbs = function(t, e, n, r, i, o, a) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS, + 'C', + t + ), + (this._x = e), + (this._y = n), + (this._x1 = r), + (this._y1 = i), + (this._x2 = o), + (this._y2 = a); + }), + (window.SVGPathSegCurvetoCubicAbs.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegCurvetoCubicAbs.prototype.toString = function() { + return '[object SVGPathSegCurvetoCubicAbs]'; + }), + (window.SVGPathSegCurvetoCubicAbs.prototype._asPathString = function() { + return ( + this.pathSegTypeAsLetter + + ' ' + + this._x1 + + ' ' + + this._y1 + + ' ' + + this._x2 + + ' ' + + this._y2 + + ' ' + + this._x + + ' ' + + this._y + ); + }), + (window.SVGPathSegCurvetoCubicAbs.prototype.clone = function() { + return new window.SVGPathSegCurvetoCubicAbs( + void 0, + this._x, + this._y, + this._x1, + this._y1, + this._x2, + this._y2 + ); + }), + Object.defineProperty( + window.SVGPathSegCurvetoCubicAbs.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicAbs.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicAbs.prototype, + 'x1', + { + get: function() { + return this._x1; + }, + set: function(t) { + (this._x1 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicAbs.prototype, + 'y1', + { + get: function() { + return this._y1; + }, + set: function(t) { + (this._y1 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicAbs.prototype, + 'x2', + { + get: function() { + return this._x2; + }, + set: function(t) { + (this._x2 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicAbs.prototype, + 'y2', + { + get: function() { + return this._y2; + }, + set: function(t) { + (this._y2 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegCurvetoCubicRel = function(t, e, n, r, i, o, a) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL, + 'c', + t + ), + (this._x = e), + (this._y = n), + (this._x1 = r), + (this._y1 = i), + (this._x2 = o), + (this._y2 = a); + }), + (window.SVGPathSegCurvetoCubicRel.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegCurvetoCubicRel.prototype.toString = function() { + return '[object SVGPathSegCurvetoCubicRel]'; + }), + (window.SVGPathSegCurvetoCubicRel.prototype._asPathString = function() { + return ( + this.pathSegTypeAsLetter + + ' ' + + this._x1 + + ' ' + + this._y1 + + ' ' + + this._x2 + + ' ' + + this._y2 + + ' ' + + this._x + + ' ' + + this._y + ); + }), + (window.SVGPathSegCurvetoCubicRel.prototype.clone = function() { + return new window.SVGPathSegCurvetoCubicRel( + void 0, + this._x, + this._y, + this._x1, + this._y1, + this._x2, + this._y2 + ); + }), + Object.defineProperty( + window.SVGPathSegCurvetoCubicRel.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicRel.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicRel.prototype, + 'x1', + { + get: function() { + return this._x1; + }, + set: function(t) { + (this._x1 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicRel.prototype, + 'y1', + { + get: function() { + return this._y1; + }, + set: function(t) { + (this._y1 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicRel.prototype, + 'x2', + { + get: function() { + return this._x2; + }, + set: function(t) { + (this._x2 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicRel.prototype, + 'y2', + { + get: function() { + return this._y2; + }, + set: function(t) { + (this._y2 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegCurvetoQuadraticAbs = function(t, e, n, r, i) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS, + 'Q', + t + ), + (this._x = e), + (this._y = n), + (this._x1 = r), + (this._y1 = i); + }), + (window.SVGPathSegCurvetoQuadraticAbs.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegCurvetoQuadraticAbs.prototype.toString = function() { + return '[object SVGPathSegCurvetoQuadraticAbs]'; + }), + (window.SVGPathSegCurvetoQuadraticAbs.prototype._asPathString = function() { + return ( + this.pathSegTypeAsLetter + + ' ' + + this._x1 + + ' ' + + this._y1 + + ' ' + + this._x + + ' ' + + this._y + ); + }), + (window.SVGPathSegCurvetoQuadraticAbs.prototype.clone = function() { + return new window.SVGPathSegCurvetoQuadraticAbs( + void 0, + this._x, + this._y, + this._x1, + this._y1 + ); + }), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticAbs.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticAbs.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticAbs.prototype, + 'x1', + { + get: function() { + return this._x1; + }, + set: function(t) { + (this._x1 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticAbs.prototype, + 'y1', + { + get: function() { + return this._y1; + }, + set: function(t) { + (this._y1 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegCurvetoQuadraticRel = function(t, e, n, r, i) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL, + 'q', + t + ), + (this._x = e), + (this._y = n), + (this._x1 = r), + (this._y1 = i); + }), + (window.SVGPathSegCurvetoQuadraticRel.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegCurvetoQuadraticRel.prototype.toString = function() { + return '[object SVGPathSegCurvetoQuadraticRel]'; + }), + (window.SVGPathSegCurvetoQuadraticRel.prototype._asPathString = function() { + return ( + this.pathSegTypeAsLetter + + ' ' + + this._x1 + + ' ' + + this._y1 + + ' ' + + this._x + + ' ' + + this._y + ); + }), + (window.SVGPathSegCurvetoQuadraticRel.prototype.clone = function() { + return new window.SVGPathSegCurvetoQuadraticRel( + void 0, + this._x, + this._y, + this._x1, + this._y1 + ); + }), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticRel.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticRel.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticRel.prototype, + 'x1', + { + get: function() { + return this._x1; + }, + set: function(t) { + (this._x1 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticRel.prototype, + 'y1', + { + get: function() { + return this._y1; + }, + set: function(t) { + (this._y1 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegArcAbs = function(t, e, n, r, i, o, a, s) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_ARC_ABS, + 'A', + t + ), + (this._x = e), + (this._y = n), + (this._r1 = r), + (this._r2 = i), + (this._angle = o), + (this._largeArcFlag = a), + (this._sweepFlag = s); + }), + (window.SVGPathSegArcAbs.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegArcAbs.prototype.toString = function() { + return '[object SVGPathSegArcAbs]'; + }), + (window.SVGPathSegArcAbs.prototype._asPathString = function() { + return ( + this.pathSegTypeAsLetter + + ' ' + + this._r1 + + ' ' + + this._r2 + + ' ' + + this._angle + + ' ' + + (this._largeArcFlag ? '1' : '0') + + ' ' + + (this._sweepFlag ? '1' : '0') + + ' ' + + this._x + + ' ' + + this._y + ); + }), + (window.SVGPathSegArcAbs.prototype.clone = function() { + return new window.SVGPathSegArcAbs( + void 0, + this._x, + this._y, + this._r1, + this._r2, + this._angle, + this._largeArcFlag, + this._sweepFlag + ); + }), + Object.defineProperty(window.SVGPathSegArcAbs.prototype, 'x', { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + }), + Object.defineProperty(window.SVGPathSegArcAbs.prototype, 'y', { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + }), + Object.defineProperty(window.SVGPathSegArcAbs.prototype, 'r1', { + get: function() { + return this._r1; + }, + set: function(t) { + (this._r1 = t), this._segmentChanged(); + }, + enumerable: !0 + }), + Object.defineProperty(window.SVGPathSegArcAbs.prototype, 'r2', { + get: function() { + return this._r2; + }, + set: function(t) { + (this._r2 = t), this._segmentChanged(); + }, + enumerable: !0 + }), + Object.defineProperty(window.SVGPathSegArcAbs.prototype, 'angle', { + get: function() { + return this._angle; + }, + set: function(t) { + (this._angle = t), this._segmentChanged(); + }, + enumerable: !0 + }), + Object.defineProperty( + window.SVGPathSegArcAbs.prototype, + 'largeArcFlag', + { + get: function() { + return this._largeArcFlag; + }, + set: function(t) { + (this._largeArcFlag = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegArcAbs.prototype, + 'sweepFlag', + { + get: function() { + return this._sweepFlag; + }, + set: function(t) { + (this._sweepFlag = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegArcRel = function(t, e, n, r, i, o, a, s) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_ARC_REL, + 'a', + t + ), + (this._x = e), + (this._y = n), + (this._r1 = r), + (this._r2 = i), + (this._angle = o), + (this._largeArcFlag = a), + (this._sweepFlag = s); + }), + (window.SVGPathSegArcRel.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegArcRel.prototype.toString = function() { + return '[object SVGPathSegArcRel]'; + }), + (window.SVGPathSegArcRel.prototype._asPathString = function() { + return ( + this.pathSegTypeAsLetter + + ' ' + + this._r1 + + ' ' + + this._r2 + + ' ' + + this._angle + + ' ' + + (this._largeArcFlag ? '1' : '0') + + ' ' + + (this._sweepFlag ? '1' : '0') + + ' ' + + this._x + + ' ' + + this._y + ); + }), + (window.SVGPathSegArcRel.prototype.clone = function() { + return new window.SVGPathSegArcRel( + void 0, + this._x, + this._y, + this._r1, + this._r2, + this._angle, + this._largeArcFlag, + this._sweepFlag + ); + }), + Object.defineProperty(window.SVGPathSegArcRel.prototype, 'x', { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + }), + Object.defineProperty(window.SVGPathSegArcRel.prototype, 'y', { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + }), + Object.defineProperty(window.SVGPathSegArcRel.prototype, 'r1', { + get: function() { + return this._r1; + }, + set: function(t) { + (this._r1 = t), this._segmentChanged(); + }, + enumerable: !0 + }), + Object.defineProperty(window.SVGPathSegArcRel.prototype, 'r2', { + get: function() { + return this._r2; + }, + set: function(t) { + (this._r2 = t), this._segmentChanged(); + }, + enumerable: !0 + }), + Object.defineProperty(window.SVGPathSegArcRel.prototype, 'angle', { + get: function() { + return this._angle; + }, + set: function(t) { + (this._angle = t), this._segmentChanged(); + }, + enumerable: !0 + }), + Object.defineProperty( + window.SVGPathSegArcRel.prototype, + 'largeArcFlag', + { + get: function() { + return this._largeArcFlag; + }, + set: function(t) { + (this._largeArcFlag = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegArcRel.prototype, + 'sweepFlag', + { + get: function() { + return this._sweepFlag; + }, + set: function(t) { + (this._sweepFlag = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegLinetoHorizontalAbs = function(t, e) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS, + 'H', + t + ), + (this._x = e); + }), + (window.SVGPathSegLinetoHorizontalAbs.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegLinetoHorizontalAbs.prototype.toString = function() { + return '[object SVGPathSegLinetoHorizontalAbs]'; + }), + (window.SVGPathSegLinetoHorizontalAbs.prototype._asPathString = function() { + return this.pathSegTypeAsLetter + ' ' + this._x; + }), + (window.SVGPathSegLinetoHorizontalAbs.prototype.clone = function() { + return new window.SVGPathSegLinetoHorizontalAbs(void 0, this._x); + }), + Object.defineProperty( + window.SVGPathSegLinetoHorizontalAbs.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegLinetoHorizontalRel = function(t, e) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL, + 'h', + t + ), + (this._x = e); + }), + (window.SVGPathSegLinetoHorizontalRel.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegLinetoHorizontalRel.prototype.toString = function() { + return '[object SVGPathSegLinetoHorizontalRel]'; + }), + (window.SVGPathSegLinetoHorizontalRel.prototype._asPathString = function() { + return this.pathSegTypeAsLetter + ' ' + this._x; + }), + (window.SVGPathSegLinetoHorizontalRel.prototype.clone = function() { + return new window.SVGPathSegLinetoHorizontalRel(void 0, this._x); + }), + Object.defineProperty( + window.SVGPathSegLinetoHorizontalRel.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegLinetoVerticalAbs = function(t, e) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS, + 'V', + t + ), + (this._y = e); + }), + (window.SVGPathSegLinetoVerticalAbs.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegLinetoVerticalAbs.prototype.toString = function() { + return '[object SVGPathSegLinetoVerticalAbs]'; + }), + (window.SVGPathSegLinetoVerticalAbs.prototype._asPathString = function() { + return this.pathSegTypeAsLetter + ' ' + this._y; + }), + (window.SVGPathSegLinetoVerticalAbs.prototype.clone = function() { + return new window.SVGPathSegLinetoVerticalAbs(void 0, this._y); + }), + Object.defineProperty( + window.SVGPathSegLinetoVerticalAbs.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegLinetoVerticalRel = function(t, e) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL, + 'v', + t + ), + (this._y = e); + }), + (window.SVGPathSegLinetoVerticalRel.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegLinetoVerticalRel.prototype.toString = function() { + return '[object SVGPathSegLinetoVerticalRel]'; + }), + (window.SVGPathSegLinetoVerticalRel.prototype._asPathString = function() { + return this.pathSegTypeAsLetter + ' ' + this._y; + }), + (window.SVGPathSegLinetoVerticalRel.prototype.clone = function() { + return new window.SVGPathSegLinetoVerticalRel(void 0, this._y); + }), + Object.defineProperty( + window.SVGPathSegLinetoVerticalRel.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegCurvetoCubicSmoothAbs = function(t, e, n, r, i) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS, + 'S', + t + ), + (this._x = e), + (this._y = n), + (this._x2 = r), + (this._y2 = i); + }), + (window.SVGPathSegCurvetoCubicSmoothAbs.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegCurvetoCubicSmoothAbs.prototype.toString = function() { + return '[object SVGPathSegCurvetoCubicSmoothAbs]'; + }), + (window.SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString = function() { + return ( + this.pathSegTypeAsLetter + + ' ' + + this._x2 + + ' ' + + this._y2 + + ' ' + + this._x + + ' ' + + this._y + ); + }), + (window.SVGPathSegCurvetoCubicSmoothAbs.prototype.clone = function() { + return new window.SVGPathSegCurvetoCubicSmoothAbs( + void 0, + this._x, + this._y, + this._x2, + this._y2 + ); + }), + Object.defineProperty( + window.SVGPathSegCurvetoCubicSmoothAbs.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicSmoothAbs.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicSmoothAbs.prototype, + 'x2', + { + get: function() { + return this._x2; + }, + set: function(t) { + (this._x2 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicSmoothAbs.prototype, + 'y2', + { + get: function() { + return this._y2; + }, + set: function(t) { + (this._y2 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegCurvetoCubicSmoothRel = function(t, e, n, r, i) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL, + 's', + t + ), + (this._x = e), + (this._y = n), + (this._x2 = r), + (this._y2 = i); + }), + (window.SVGPathSegCurvetoCubicSmoothRel.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegCurvetoCubicSmoothRel.prototype.toString = function() { + return '[object SVGPathSegCurvetoCubicSmoothRel]'; + }), + (window.SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString = function() { + return ( + this.pathSegTypeAsLetter + + ' ' + + this._x2 + + ' ' + + this._y2 + + ' ' + + this._x + + ' ' + + this._y + ); + }), + (window.SVGPathSegCurvetoCubicSmoothRel.prototype.clone = function() { + return new window.SVGPathSegCurvetoCubicSmoothRel( + void 0, + this._x, + this._y, + this._x2, + this._y2 + ); + }), + Object.defineProperty( + window.SVGPathSegCurvetoCubicSmoothRel.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicSmoothRel.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicSmoothRel.prototype, + 'x2', + { + get: function() { + return this._x2; + }, + set: function(t) { + (this._x2 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicSmoothRel.prototype, + 'y2', + { + get: function() { + return this._y2; + }, + set: function(t) { + (this._y2 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegCurvetoQuadraticSmoothAbs = function(t, e, n) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS, + 'T', + t + ), + (this._x = e), + (this._y = n); + }), + (window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString = function() { + return '[object SVGPathSegCurvetoQuadraticSmoothAbs]'; + }), + (window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString = function() { + return this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y; + }), + (window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone = function() { + return new window.SVGPathSegCurvetoQuadraticSmoothAbs( + void 0, + this._x, + this._y + ); + }), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegCurvetoQuadraticSmoothRel = function(t, e, n) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL, + 't', + t + ), + (this._x = e), + (this._y = n); + }), + (window.SVGPathSegCurvetoQuadraticSmoothRel.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString = function() { + return '[object SVGPathSegCurvetoQuadraticSmoothRel]'; + }), + (window.SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString = function() { + return this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y; + }), + (window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone = function() { + return new window.SVGPathSegCurvetoQuadraticSmoothRel( + void 0, + this._x, + this._y + ); + }), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticSmoothRel.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticSmoothRel.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathElement.prototype.createSVGPathSegClosePath = function() { + return new window.SVGPathSegClosePath(void 0); + }), + (window.SVGPathElement.prototype.createSVGPathSegMovetoAbs = function( + t, + e + ) { + return new window.SVGPathSegMovetoAbs(void 0, t, e); + }), + (window.SVGPathElement.prototype.createSVGPathSegMovetoRel = function( + t, + e + ) { + return new window.SVGPathSegMovetoRel(void 0, t, e); + }), + (window.SVGPathElement.prototype.createSVGPathSegLinetoAbs = function( + t, + e + ) { + return new window.SVGPathSegLinetoAbs(void 0, t, e); + }), + (window.SVGPathElement.prototype.createSVGPathSegLinetoRel = function( + t, + e + ) { + return new window.SVGPathSegLinetoRel(void 0, t, e); + }), + (window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs = function( + t, + e, + n, + r, + i, + o + ) { + return new window.SVGPathSegCurvetoCubicAbs( + void 0, + t, + e, + n, + r, + i, + o + ); + }), + (window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel = function( + t, + e, + n, + r, + i, + o + ) { + return new window.SVGPathSegCurvetoCubicRel( + void 0, + t, + e, + n, + r, + i, + o + ); + }), + (window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs = function( + t, + e, + n, + r + ) { + return new window.SVGPathSegCurvetoQuadraticAbs(void 0, t, e, n, r); + }), + (window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel = function( + t, + e, + n, + r + ) { + return new window.SVGPathSegCurvetoQuadraticRel(void 0, t, e, n, r); + }), + (window.SVGPathElement.prototype.createSVGPathSegArcAbs = function( + t, + e, + n, + r, + i, + o, + a + ) { + return new window.SVGPathSegArcAbs(void 0, t, e, n, r, i, o, a); + }), + (window.SVGPathElement.prototype.createSVGPathSegArcRel = function( + t, + e, + n, + r, + i, + o, + a + ) { + return new window.SVGPathSegArcRel(void 0, t, e, n, r, i, o, a); + }), + (window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs = function( + t + ) { + return new window.SVGPathSegLinetoHorizontalAbs(void 0, t); + }), + (window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel = function( + t + ) { + return new window.SVGPathSegLinetoHorizontalRel(void 0, t); + }), + (window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs = function( + t + ) { + return new window.SVGPathSegLinetoVerticalAbs(void 0, t); + }), + (window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel = function( + t + ) { + return new window.SVGPathSegLinetoVerticalRel(void 0, t); + }), + (window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs = function( + t, + e, + n, + r + ) { + return new window.SVGPathSegCurvetoCubicSmoothAbs( + void 0, + t, + e, + n, + r + ); + }), + (window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel = function( + t, + e, + n, + r + ) { + return new window.SVGPathSegCurvetoCubicSmoothRel( + void 0, + t, + e, + n, + r + ); + }), + (window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs = function( + t, + e + ) { + return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0, t, e); + }), + (window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel = function( + t, + e + ) { + return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0, t, e); + }), + 'getPathSegAtLength' in window.SVGPathElement.prototype || + (window.SVGPathElement.prototype.getPathSegAtLength = function(t) { + if (void 0 === t || !isFinite(t)) throw 'Invalid arguments.'; + var e = document.createElementNS( + 'http://www.w3.org/2000/svg', + 'path' + ); + e.setAttribute('d', this.getAttribute('d')); + var n = e.pathSegList.numberOfItems - 1; + if (n <= 0) return 0; + do { + if ((e.pathSegList.removeItem(n), t > e.getTotalLength())) + break; + n--; + } while (n > 0); + return n; + })), + 'SVGPathSegList' in window || + ((window.SVGPathSegList = function(t) { + (this._pathElement = t), + (this._list = this._parsePath( + this._pathElement.getAttribute('d') + )), + (this._mutationObserverConfig = { + attributes: !0, + attributeFilter: ['d'] + }), + (this._pathElementMutationObserver = new MutationObserver( + this._updateListFromPathMutations.bind(this) + )), + this._pathElementMutationObserver.observe( + this._pathElement, + this._mutationObserverConfig + ); + }), + (window.SVGPathSegList.prototype.classname = 'SVGPathSegList'), + Object.defineProperty( + window.SVGPathSegList.prototype, + 'numberOfItems', + { + get: function() { + return this._checkPathSynchronizedToList(), this._list.length; + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathElement.prototype, + 'pathSegList', + { + get: function() { + return ( + this._pathSegList || + (this._pathSegList = new window.SVGPathSegList(this)), + this._pathSegList + ); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathElement.prototype, + 'normalizedPathSegList', + { + get: function() { + return this.pathSegList; + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathElement.prototype, + 'animatedPathSegList', + { + get: function() { + return this.pathSegList; + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathElement.prototype, + 'animatedNormalizedPathSegList', + { + get: function() { + return this.pathSegList; + }, + enumerable: !0 + } + ), + (window.SVGPathSegList.prototype._checkPathSynchronizedToList = function() { + this._updateListFromPathMutations( + this._pathElementMutationObserver.takeRecords() + ); + }), + (window.SVGPathSegList.prototype._updateListFromPathMutations = function( + t + ) { + if (this._pathElement) { + var e = !1; + t.forEach(function(t) { + 'd' == t.attributeName && (e = !0); + }), + e && + (this._list = this._parsePath( + this._pathElement.getAttribute('d') + )); + } + }), + (window.SVGPathSegList.prototype._writeListToPath = function() { + this._pathElementMutationObserver.disconnect(), + this._pathElement.setAttribute( + 'd', + window.SVGPathSegList._pathSegArrayAsString(this._list) + ), + this._pathElementMutationObserver.observe( + this._pathElement, + this._mutationObserverConfig + ); + }), + (window.SVGPathSegList.prototype.segmentChanged = function(t) { + this._writeListToPath(); + }), + (window.SVGPathSegList.prototype.clear = function() { + this._checkPathSynchronizedToList(), + this._list.forEach(function(t) { + t._owningPathSegList = null; + }), + (this._list = []), + this._writeListToPath(); + }), + (window.SVGPathSegList.prototype.initialize = function(t) { + return ( + this._checkPathSynchronizedToList(), + (this._list = [t]), + (t._owningPathSegList = this), + this._writeListToPath(), + t + ); + }), + (window.SVGPathSegList.prototype._checkValidIndex = function(t) { + if (isNaN(t) || t < 0 || t >= this.numberOfItems) + throw 'INDEX_SIZE_ERR'; + }), + (window.SVGPathSegList.prototype.getItem = function(t) { + return ( + this._checkPathSynchronizedToList(), + this._checkValidIndex(t), + this._list[t] + ); + }), + (window.SVGPathSegList.prototype.insertItemBefore = function(t, e) { + return ( + this._checkPathSynchronizedToList(), + e > this.numberOfItems && (e = this.numberOfItems), + t._owningPathSegList && (t = t.clone()), + this._list.splice(e, 0, t), + (t._owningPathSegList = this), + this._writeListToPath(), + t + ); + }), + (window.SVGPathSegList.prototype.replaceItem = function(t, e) { + return ( + this._checkPathSynchronizedToList(), + t._owningPathSegList && (t = t.clone()), + this._checkValidIndex(e), + (this._list[e] = t), + (t._owningPathSegList = this), + this._writeListToPath(), + t + ); + }), + (window.SVGPathSegList.prototype.removeItem = function(t) { + this._checkPathSynchronizedToList(), this._checkValidIndex(t); + var e = this._list[t]; + return this._list.splice(t, 1), this._writeListToPath(), e; + }), + (window.SVGPathSegList.prototype.appendItem = function(t) { + return ( + this._checkPathSynchronizedToList(), + t._owningPathSegList && (t = t.clone()), + this._list.push(t), + (t._owningPathSegList = this), + this._writeListToPath(), + t + ); + }), + (window.SVGPathSegList._pathSegArrayAsString = function(t) { + var e = '', + n = !0; + return ( + t.forEach(function(t) { + n + ? ((n = !1), (e += t._asPathString())) + : (e += ' ' + t._asPathString()); + }), + e + ); + }), + (window.SVGPathSegList.prototype._parsePath = function(t) { + if (!t || 0 == t.length) return []; + var e = this, + n = function() { + this.pathSegList = []; + }; + n.prototype.appendSegment = function(t) { + this.pathSegList.push(t); + }; + var r = function(t) { + (this._string = t), + (this._currentIndex = 0), + (this._endIndex = this._string.length), + (this._previousCommand = window.SVGPathSeg.PATHSEG_UNKNOWN), + this._skipOptionalSpaces(); + }; + (r.prototype._isCurrentSpace = function() { + var t = this._string[this._currentIndex]; + return ( + t <= ' ' && + (' ' == t || '\n' == t || '\t' == t || '\r' == t || '\f' == t) + ); + }), + (r.prototype._skipOptionalSpaces = function() { + for ( + ; + this._currentIndex < this._endIndex && this._isCurrentSpace(); + + ) + this._currentIndex++; + return this._currentIndex < this._endIndex; + }), + (r.prototype._skipOptionalSpacesOrDelimiter = function() { + return ( + !( + this._currentIndex < this._endIndex && + !this._isCurrentSpace() && + ',' != this._string.charAt(this._currentIndex) + ) && + (this._skipOptionalSpaces() && + this._currentIndex < this._endIndex && + ',' == this._string.charAt(this._currentIndex) && + (this._currentIndex++, this._skipOptionalSpaces()), + this._currentIndex < this._endIndex) + ); + }), + (r.prototype.hasMoreData = function() { + return this._currentIndex < this._endIndex; + }), + (r.prototype.peekSegmentType = function() { + var t = this._string[this._currentIndex]; + return this._pathSegTypeFromChar(t); + }), + (r.prototype._pathSegTypeFromChar = function(t) { + switch (t) { + case 'Z': + case 'z': + return window.SVGPathSeg.PATHSEG_CLOSEPATH; + case 'M': + return window.SVGPathSeg.PATHSEG_MOVETO_ABS; + case 'm': + return window.SVGPathSeg.PATHSEG_MOVETO_REL; + case 'L': + return window.SVGPathSeg.PATHSEG_LINETO_ABS; + case 'l': + return window.SVGPathSeg.PATHSEG_LINETO_REL; + case 'C': + return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS; + case 'c': + return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL; + case 'Q': + return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS; + case 'q': + return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL; + case 'A': + return window.SVGPathSeg.PATHSEG_ARC_ABS; + case 'a': + return window.SVGPathSeg.PATHSEG_ARC_REL; + case 'H': + return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS; + case 'h': + return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL; + case 'V': + return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS; + case 'v': + return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL; + case 'S': + return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS; + case 's': + return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL; + case 'T': + return window.SVGPathSeg + .PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS; + case 't': + return window.SVGPathSeg + .PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL; + default: + return window.SVGPathSeg.PATHSEG_UNKNOWN; + } + }), + (r.prototype._nextCommandHelper = function(t, e) { + return ('+' == t || + '-' == t || + '.' == t || + (t >= '0' && t <= '9')) && + e != window.SVGPathSeg.PATHSEG_CLOSEPATH + ? e == window.SVGPathSeg.PATHSEG_MOVETO_ABS + ? window.SVGPathSeg.PATHSEG_LINETO_ABS + : e == window.SVGPathSeg.PATHSEG_MOVETO_REL + ? window.SVGPathSeg.PATHSEG_LINETO_REL + : e + : window.SVGPathSeg.PATHSEG_UNKNOWN; + }), + (r.prototype.initialCommandIsMoveTo = function() { + if (!this.hasMoreData()) return !0; + var t = this.peekSegmentType(); + return ( + t == window.SVGPathSeg.PATHSEG_MOVETO_ABS || + t == window.SVGPathSeg.PATHSEG_MOVETO_REL + ); + }), + (r.prototype._parseNumber = function() { + var t = 0, + e = 0, + n = 1, + r = 0, + i = 1, + o = 1, + a = this._currentIndex; + if ( + (this._skipOptionalSpaces(), + this._currentIndex < this._endIndex && + '+' == this._string.charAt(this._currentIndex) + ? this._currentIndex++ + : this._currentIndex < this._endIndex && + '-' == this._string.charAt(this._currentIndex) && + (this._currentIndex++, (i = -1)), + !( + this._currentIndex == this._endIndex || + ((this._string.charAt(this._currentIndex) < '0' || + this._string.charAt(this._currentIndex) > '9') && + '.' != this._string.charAt(this._currentIndex)) + )) + ) { + for ( + var s = this._currentIndex; + this._currentIndex < this._endIndex && + this._string.charAt(this._currentIndex) >= '0' && + this._string.charAt(this._currentIndex) <= '9'; + + ) + this._currentIndex++; + if (this._currentIndex != s) + for (var u = this._currentIndex - 1, l = 1; u >= s; ) + (e += l * (this._string.charAt(u--) - '0')), (l *= 10); + if ( + this._currentIndex < this._endIndex && + '.' == this._string.charAt(this._currentIndex) + ) { + if ( + (this._currentIndex++, + this._currentIndex >= this._endIndex || + this._string.charAt(this._currentIndex) < '0' || + this._string.charAt(this._currentIndex) > '9') + ) + return; + for ( + ; + this._currentIndex < this._endIndex && + this._string.charAt(this._currentIndex) >= '0' && + this._string.charAt(this._currentIndex) <= '9'; + + ) + (n *= 10), + (r += + (this._string.charAt(this._currentIndex) - '0') / n), + (this._currentIndex += 1); + } + if ( + this._currentIndex != a && + this._currentIndex + 1 < this._endIndex && + ('e' == this._string.charAt(this._currentIndex) || + 'E' == this._string.charAt(this._currentIndex)) && + 'x' != this._string.charAt(this._currentIndex + 1) && + 'm' != this._string.charAt(this._currentIndex + 1) + ) { + if ( + (this._currentIndex++, + '+' == this._string.charAt(this._currentIndex) + ? this._currentIndex++ + : '-' == this._string.charAt(this._currentIndex) && + (this._currentIndex++, (o = -1)), + this._currentIndex >= this._endIndex || + this._string.charAt(this._currentIndex) < '0' || + this._string.charAt(this._currentIndex) > '9') + ) + return; + for ( + ; + this._currentIndex < this._endIndex && + this._string.charAt(this._currentIndex) >= '0' && + this._string.charAt(this._currentIndex) <= '9'; + + ) + (t *= 10), + (t += this._string.charAt(this._currentIndex) - '0'), + this._currentIndex++; + } + var c = e + r; + if ( + ((c *= i), + t && (c *= Math.pow(10, o * t)), + a != this._currentIndex) + ) + return this._skipOptionalSpacesOrDelimiter(), c; + } + }), + (r.prototype._parseArcFlag = function() { + if (!(this._currentIndex >= this._endIndex)) { + var t = !1, + e = this._string.charAt(this._currentIndex++); + if ('0' == e) t = !1; + else { + if ('1' != e) return; + t = !0; + } + return this._skipOptionalSpacesOrDelimiter(), t; + } + }), + (r.prototype.parseSegment = function() { + var t = this._string[this._currentIndex], + n = this._pathSegTypeFromChar(t); + if (n == window.SVGPathSeg.PATHSEG_UNKNOWN) { + if ( + this._previousCommand == window.SVGPathSeg.PATHSEG_UNKNOWN + ) + return null; + if ( + (n = this._nextCommandHelper(t, this._previousCommand)) == + window.SVGPathSeg.PATHSEG_UNKNOWN + ) + return null; + } else this._currentIndex++; + switch (((this._previousCommand = n), n)) { + case window.SVGPathSeg.PATHSEG_MOVETO_REL: + return new window.SVGPathSegMovetoRel( + e, + this._parseNumber(), + this._parseNumber() ); - }), - (r.prototype.checkValueInTargets = function(t, e) { - var n, - r, - i, - o = Object.keys(t); - for (n = 0; n < o.length; n++) - for (i = t[o[n]].values, r = 0; r < i.length; r++) - if (e(i[r].value)) return !0; - return !1; - }), - (r.prototype.hasNegativeValueInTargets = function(t) { - return this.checkValueInTargets(t, function(t) { - return t < 0; - }); - }), - (r.prototype.hasPositiveValueInTargets = function(t) { - return this.checkValueInTargets(t, function(t) { - return t > 0; - }); - }), - (r.prototype.isOrderDesc = function() { - var t = this.config; - return ( - 'string' == typeof t.data_order && - 'desc' === t.data_order.toLowerCase() + case window.SVGPathSeg.PATHSEG_MOVETO_ABS: + return new window.SVGPathSegMovetoAbs( + e, + this._parseNumber(), + this._parseNumber() ); - }), - (r.prototype.isOrderAsc = function() { - var t = this.config; - return ( - 'string' == typeof t.data_order && - 'asc' === t.data_order.toLowerCase() + case window.SVGPathSeg.PATHSEG_LINETO_REL: + return new window.SVGPathSegLinetoRel( + e, + this._parseNumber(), + this._parseNumber() ); - }), - (r.prototype.getOrderFunction = function() { - var t = this.config, - e = this.isOrderAsc(), - n = this.isOrderDesc(); - if (e || n) { - var r = function(t, e) { - return t + Math.abs(e.value); - }; - return function(t, n) { - var i = t.values.reduce(r, 0), - o = n.values.reduce(r, 0); - return e ? o - i : i - o; - }; - } - if (p(t.data_order)) return t.data_order; - if (f(t.data_order)) { - var i = t.data_order; - return function(t, e) { - return i.indexOf(t.id) - i.indexOf(e.id); - }; - } - }), - (r.prototype.orderTargets = function(t) { - var e = this.getOrderFunction(); - return e && t.sort(e), t; - }), - (r.prototype.filterByIndex = function(t, e) { - return this.d3.merge( - t.map(function(t) { - return t.values.filter(function(t) { - return t.index === e; - }); - }) + case window.SVGPathSeg.PATHSEG_LINETO_ABS: + return new window.SVGPathSegLinetoAbs( + e, + this._parseNumber(), + this._parseNumber() ); - }), - (r.prototype.filterByX = function(t, e) { - return this.d3 - .merge( - t.map(function(t) { - return t.values; - }) - ) - .filter(function(t) { - return t.x - e == 0; - }); - }), - (r.prototype.filterRemoveNull = function(t) { - return t.filter(function(t) { - return y(t.value); - }); - }), - (r.prototype.filterByXDomain = function(t, e) { - return t.map(function(t) { - return { - id: t.id, - id_org: t.id_org, - values: t.values.filter(function(t) { - return e[0] <= t.x && t.x <= e[1]; - }) - }; - }); - }), - (r.prototype.hasDataLabel = function() { - var e = this.config; - return ( - !('boolean' != typeof e.data_labels || !e.data_labels) || - !('object' !== t(e.data_labels) || !b(e.data_labels)) + case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL: + return new window.SVGPathSegLinetoHorizontalRel( + e, + this._parseNumber() ); - }), - (r.prototype.getDataLabelLength = function(t, e, n) { - var r = this, - i = [0, 0]; - return ( - r.selectChart - .select('svg') - .selectAll('.dummy') - .data([t, e]) - .enter() - .append('text') - .text(function(t) { - return r.dataLabelFormat(t.id)(t); - }) - .each(function(t, e) { - i[e] = 1.3 * c(this)[n]; - }) - .remove(), - i + case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS: + return new window.SVGPathSegLinetoHorizontalAbs( + e, + this._parseNumber() ); - }), - (r.prototype.isNoneArc = function(t) { - return this.hasTarget(this.data.targets, t.id); - }), - (r.prototype.isArc = function(t) { - return ( - 'data' in t && - this.hasTarget(this.data.targets, t.data.id) + case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL: + return new window.SVGPathSegLinetoVerticalRel( + e, + this._parseNumber() ); - }), - (r.prototype.findClosestFromTargets = function(t, e) { - var n = this, - r = t - .map(function(t) { - return n.findClosest( - t.values, - e, - n.config.tooltip_horizontal - ? n.horizontalDistance.bind(n) - : n.dist.bind(n), - n.config.point_sensitivity - ); - }) - .filter(function(t) { - return t; - }); - return 0 === r.length - ? void 0 - : 1 === r.length - ? r[0] - : n.findClosest(r, e, n.dist.bind(n)); - }), - (r.prototype.findClosestFromTargetsByX = function(t, e) { - var n, r; - return ( - t.forEach(function(t) { - t.values.forEach(function(t) { - var i = Math.abs(e - t.x); - (void 0 === r || i < r) && ((n = t), (r = i)); - }); - }), - n + case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS: + return new window.SVGPathSegLinetoVerticalAbs( + e, + this._parseNumber() ); - }), - (r.prototype.findClosest = function(t, e, n) { - var r, - i = - arguments.length > 3 && void 0 !== arguments[3] - ? arguments[3] - : 1 / 0, - o = this; - return ( - t - .filter(function(t) { - return t && o.isBarType(t.id); - }) - .forEach(function(t) { - if (!r) { - var n = o.main - .select( - '.' + - w.bars + - o.getTargetSelectorSuffix(t.id) + - ' .' + - w.bar + - '-' + - t.index - ) - .node(); - o.isWithinBar(e, n) && (r = t); - } - }), - t - .filter(function(t) { - return t && !o.isBarType(t.id); - }) - .forEach(function(t) { - var o = n(t, e); - o < i && ((i = o), (r = t)); - }), - r + case window.SVGPathSeg.PATHSEG_CLOSEPATH: + return ( + this._skipOptionalSpaces(), + new window.SVGPathSegClosePath(e) ); - }), - (r.prototype.dist = function(t, e) { - var n = this.config, - r = n.axis_rotated ? 1 : 0, - i = n.axis_rotated ? 0 : 1, - o = this.circleY(t, t.index), - a = this.x(t.x); - return Math.sqrt( - Math.pow(a - e[r], 2) + Math.pow(o - e[i], 2) + case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL: + var r = { + x1: this._parseNumber(), + y1: this._parseNumber(), + x2: this._parseNumber(), + y2: this._parseNumber(), + x: this._parseNumber(), + y: this._parseNumber() + }; + return new window.SVGPathSegCurvetoCubicRel( + e, + r.x, + r.y, + r.x1, + r.y1, + r.x2, + r.y2 ); - }), - (r.prototype.horizontalDistance = function(t, e) { - var n = this.config.axis_rotated ? 1 : 0, - r = this.x(t.x); - return Math.abs(r - e[n]); - }), - (r.prototype.convertValuesToStep = function(t) { - var e, - n = [].concat(t); - if (!this.isCategorized()) return t; - for (e = t.length + 1; 0 < e; e--) n[e] = n[e - 1]; + case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS: return ( - (n[0] = { - x: n[0].x - 1, - value: n[0].value, - id: n[0].id + (r = { + x1: this._parseNumber(), + y1: this._parseNumber(), + x2: this._parseNumber(), + y2: this._parseNumber(), + x: this._parseNumber(), + y: this._parseNumber() }), - (n[t.length + 1] = { - x: n[t.length].x + 1, - value: n[t.length].value, - id: n[t.length].id + new window.SVGPathSegCurvetoCubicAbs( + e, + r.x, + r.y, + r.x1, + r.y1, + r.x2, + r.y2 + ) + ); + case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL: + return ( + (r = { + x2: this._parseNumber(), + y2: this._parseNumber(), + x: this._parseNumber(), + y: this._parseNumber() }), - n + new window.SVGPathSegCurvetoCubicSmoothRel( + e, + r.x, + r.y, + r.x2, + r.y2 + ) ); - }), - (r.prototype.getRatio = function(t, e) { - var n = - arguments.length > 2 && - void 0 !== arguments[2] && - arguments[2], - r = this, - i = r.api, - o = 0; - if (e && i.data.shown.call(i).length) - if (((o = e.ratio || e.value), 'arc' === t)) - if (r.hasType('gauge')) - o = - (e.endAngle - e.startAngle) / - (Math.PI * (r.config.gauge_fullCircle ? 2 : 1)); - else { - var a = r.getTotalDataSum(); - o = e.value / a; - } - else if ('index' === t) { - var s = r.getTotalPerIndex(r.axis.getId(e.id)); - (e.ratio = - g(e.value) && s && s[e.index] > 0 - ? e.value / s[e.index] - : 0), - (o = e.ratio); - } - return n && o ? 100 * o : o; - }), - (r.prototype.updateDataAttributes = function(t, e) { - var n = this.config['data_' + t]; + case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: return ( - void 0 === e || - (Object.keys(e).forEach(function(t) { - n[t] = e[t]; - }), - this.redraw({ withLegend: !0 })), - n + (r = { + x2: this._parseNumber(), + y2: this._parseNumber(), + x: this._parseNumber(), + y: this._parseNumber() + }), + new window.SVGPathSegCurvetoCubicSmoothAbs( + e, + r.x, + r.y, + r.x2, + r.y2 + ) ); - }), - (r.prototype.load = function(t, e) { - var n = this; - t && - (e.filter && (t = t.filter(e.filter)), - (e.type || e.types) && - t.forEach(function(t) { - var r = - e.types && e.types[t.id] ? e.types[t.id] : e.type; - n.setTargetType(t.id, r); - }), - n.data.targets.forEach(function(e) { - for (var n = 0; n < t.length; n++) - if (e.id === t[n].id) { - (e.values = t[n].values), t.splice(n, 1); - break; - } + case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL: + return ( + (r = { + x1: this._parseNumber(), + y1: this._parseNumber(), + x: this._parseNumber(), + y: this._parseNumber() }), - (n.data.targets = n.data.targets.concat(t))), - n.updateTargets(n.data.targets), - n.redraw({ - withUpdateOrgXDomain: !0, - withUpdateXDomain: !0, - withLegend: !0 + new window.SVGPathSegCurvetoQuadraticRel( + e, + r.x, + r.y, + r.x1, + r.y1 + ) + ); + case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS: + return ( + (r = { + x1: this._parseNumber(), + y1: this._parseNumber(), + x: this._parseNumber(), + y: this._parseNumber() }), - e.done && e.done(); - }), - (r.prototype.loadFromArgs = function(t) { - var e = this; - e.resetCache(), - t.data - ? e.load(e.convertDataToTargets(t.data), t) - : t.url - ? e.convertUrlToData( - t.url, - t.mimeType, - t.headers, - t.keys, - function(n) { - e.load(e.convertDataToTargets(n), t); - } - ) - : t.json - ? e.load( - e.convertDataToTargets( - e.convertJsonToData(t.json, t.keys) - ), - t - ) - : t.rows - ? e.load( - e.convertDataToTargets(e.convertRowsToData(t.rows)), - t - ) - : t.columns - ? e.load( - e.convertDataToTargets( - e.convertColumnsToData(t.columns) - ), - t - ) - : e.load(null, t); - }), - (r.prototype.unload = function(t, e) { - var n = this; - n.resetCache(), - e || (e = function() {}), - (t = t.filter(function(t) { - return n.hasTarget(n.data.targets, t); - })) && 0 !== t.length - ? (n.svg - .selectAll( - t.map(function(t) { - return n.selectorTarget(t); - }) - ) - .transition() - .style('opacity', 0) - .remove() - .call(n.endall, e), - t.forEach(function(t) { - (n.withoutFadeIn[t] = !1), - n.legend && - n.legend - .selectAll( - '.' + - w.legendItem + - n.getTargetSelectorSuffix(t) - ) - .remove(), - (n.data.targets = n.data.targets.filter(function( - e - ) { - return e.id !== t; - })); - })) - : e(); - }), - (r.prototype.getYDomainMin = function(t) { - var e, - n, - r, - i, - o, - a, - s = this, - u = s.config, - l = s.mapToIds(t), - c = s.getValuesAsIdKeyed(t); - if (u.data_groups.length > 0) - for ( - a = s.hasNegativeValueInTargets(t), e = 0; - e < u.data_groups.length; - e++ + new window.SVGPathSegCurvetoQuadraticAbs( + e, + r.x, + r.y, + r.x1, + r.y1 ) - if ( - 0 !== - (i = u.data_groups[e].filter(function(t) { - return l.indexOf(t) >= 0; - })).length - ) - for ( - r = i[0], - a && - c[r] && - c[r].forEach(function(t, e) { - c[r][e] = t < 0 ? t : 0; - }), - n = 1; - n < i.length; - n++ - ) - (o = i[n]), - c[o] && - c[o].forEach(function(t, e) { - s.axis.getId(o) !== s.axis.getId(r) || - !c[r] || - (a && +t > 0) || - (c[r][e] += +t); - }); - return s.d3.min( - Object.keys(c).map(function(t) { - return s.d3.min(c[t]); - }) ); - }), - (r.prototype.getYDomainMax = function(t) { - var e, - n, - r, - i, - o, - a, - s = this, - u = s.config, - l = s.mapToIds(t), - c = s.getValuesAsIdKeyed(t); - if (u.data_groups.length > 0) - for ( - a = s.hasPositiveValueInTargets(t), e = 0; - e < u.data_groups.length; - e++ + case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: + return new window.SVGPathSegCurvetoQuadraticSmoothRel( + e, + this._parseNumber(), + this._parseNumber() + ); + case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: + return new window.SVGPathSegCurvetoQuadraticSmoothAbs( + e, + this._parseNumber(), + this._parseNumber() + ); + case window.SVGPathSeg.PATHSEG_ARC_REL: + return ( + (r = { + x1: this._parseNumber(), + y1: this._parseNumber(), + arcAngle: this._parseNumber(), + arcLarge: this._parseArcFlag(), + arcSweep: this._parseArcFlag(), + x: this._parseNumber(), + y: this._parseNumber() + }), + new window.SVGPathSegArcRel( + e, + r.x, + r.y, + r.x1, + r.y1, + r.arcAngle, + r.arcLarge, + r.arcSweep ) - if ( - 0 !== - (i = u.data_groups[e].filter(function(t) { - return l.indexOf(t) >= 0; - })).length - ) - for ( - r = i[0], - a && - c[r] && - c[r].forEach(function(t, e) { - c[r][e] = t > 0 ? t : 0; - }), - n = 1; - n < i.length; - n++ - ) - (o = i[n]), - c[o] && - c[o].forEach(function(t, e) { - s.axis.getId(o) !== s.axis.getId(r) || - !c[r] || - (a && +t < 0) || - (c[r][e] += +t); - }); - return s.d3.max( - Object.keys(c).map(function(t) { - return s.d3.max(c[t]); + ); + case window.SVGPathSeg.PATHSEG_ARC_ABS: + return ( + (r = { + x1: this._parseNumber(), + y1: this._parseNumber(), + arcAngle: this._parseNumber(), + arcLarge: this._parseArcFlag(), + arcSweep: this._parseArcFlag(), + x: this._parseNumber(), + y: this._parseNumber() + }), + new window.SVGPathSegArcAbs( + e, + r.x, + r.y, + r.x1, + r.y1, + r.arcAngle, + r.arcLarge, + r.arcSweep + ) + ); + default: + throw 'Unknown path seg type.'; + } + }); + var i = new n(), + o = new r(t); + if (!o.initialCommandIsMoveTo()) return []; + for (; o.hasMoreData(); ) { + var a = o.parseSegment(); + if (!a) return []; + i.appendSegment(a); + } + return i.pathSegList; + })), + String.prototype.padEnd || + (String.prototype.padEnd = function(t, e) { + return ( + (t >>= 0), + (e = String(void 0 !== e ? e : ' ')), + this.length > t + ? String(this) + : ((t -= this.length) > e.length && + (e += e.repeat(t / e.length)), + String(this) + e.slice(0, t)) + ); + }), + 'function' != typeof Object.assign && + Object.defineProperty(Object, 'assign', { + value: function(t, e) { + if (null == t) + throw new TypeError( + 'Cannot convert undefined or null to object' + ); + for (var n = Object(t), r = 1; r < arguments.length; r++) { + var i = arguments[r]; + if (null != i) + for (var o in i) + Object.prototype.hasOwnProperty.call(i, o) && (n[o] = i[o]); + } + return n; + }, + writable: !0, + configurable: !0 + }), + (o.prototype.axis = function() {}), + (o.prototype.axis.labels = function(t) { + var e = this.internal; + arguments.length && + (Object.keys(t).forEach(function(n) { + e.axis.setLabelText(n, t[n]); + }), + e.axis.updateLabels()); + }), + (o.prototype.axis.max = function(t) { + var e = this.internal, + n = e.config; + if (!arguments.length) + return { x: n.axis_x_max, y: n.axis_y_max, y2: n.axis_y2_max }; + 'object' == typeof t + ? (b(t.x) && (n.axis_x_max = t.x), + b(t.y) && (n.axis_y_max = t.y), + b(t.y2) && (n.axis_y2_max = t.y2)) + : (n.axis_y_max = n.axis_y2_max = t), + e.redraw({ withUpdateOrgXDomain: !0, withUpdateXDomain: !0 }); + }), + (o.prototype.axis.min = function(t) { + var e = this.internal, + n = e.config; + if (!arguments.length) + return { x: n.axis_x_min, y: n.axis_y_min, y2: n.axis_y2_min }; + 'object' == typeof t + ? (b(t.x) && (n.axis_x_min = t.x), + b(t.y) && (n.axis_y_min = t.y), + b(t.y2) && (n.axis_y2_min = t.y2)) + : (n.axis_y_min = n.axis_y2_min = t), + e.redraw({ withUpdateOrgXDomain: !0, withUpdateXDomain: !0 }); + }), + (o.prototype.axis.range = function(t) { + if (!arguments.length) + return { max: this.axis.max(), min: this.axis.min() }; + h(t.max) && this.axis.max(t.max), h(t.min) && this.axis.min(t.min); + }), + (o.prototype.axis.types = function(t) { + const e = this.internal; + if (void 0 === t) + return { y: e.config.axis_y_type, y2: e.config.axis_y2_type }; + h(t.y) && (e.config.axis_y_type = t.y), + h(t.y2) && (e.config.axis_y2_type = t.y2), + e.updateScales(), + e.redraw(); + }), + (o.prototype.category = function(t, e) { + var n = this.internal, + r = n.config; + return ( + arguments.length > 1 && ((r.axis_x_categories[t] = e), n.redraw()), + r.axis_x_categories[t] + ); + }), + (o.prototype.categories = function(t) { + var e = this.internal, + n = e.config; + return arguments.length + ? ((n.axis_x_categories = t), e.redraw(), n.axis_x_categories) + : n.axis_x_categories; + }), + (o.prototype.resize = function(t) { + var e = this.internal.config; + (e.size_width = t ? t.width : null), + (e.size_height = t ? t.height : null), + this.flush(); + }), + (o.prototype.flush = function() { + this.internal.updateAndRedraw({ + withLegend: !0, + withTransition: !1, + withTransitionForTransform: !1 + }); + }), + (o.prototype.destroy = function() { + var t = this.internal; + if ( + (window.clearInterval(t.intervalForObserveInserted), + void 0 !== t.resizeTimeout && window.clearTimeout(t.resizeTimeout), + window.detachEvent) + ) + window.detachEvent('onresize', t.resizeIfElementDisplayed); + else if (window.removeEventListener) + window.removeEventListener('resize', t.resizeIfElementDisplayed); + else { + var e = window.onresize; + e && e.add && e.remove && e.remove(t.resizeFunction); + } + return ( + t.resizeFunction.remove(), + t.unbindWindowFocus(), + t.selectChart.classed('c3', !1).html(''), + Object.keys(t).forEach(function(e) { + t[e] = null; + }), + null + ); + }), + (o.prototype.color = function(t) { + return this.internal.color(t); + }), + (o.prototype.data = function(t) { + var e = this.internal.data.targets; + return void 0 === t + ? e + : e.filter(function(e) { + return [].concat(t).indexOf(e.id) >= 0; + }); + }), + (o.prototype.data.shown = function(t) { + return this.internal.filterTargetsToShow(this.data(t)); + }), + (o.prototype.data.values = function(t, e = !0) { + let n = null; + if (t) { + const r = this.data(t); + r && + d(r) && + (n = r.reduce((t, n) => { + const r = n.values.map(t => t.value); + return e ? (t = t.concat(r)) : t.push(r), t; + }, [])); + } + return n; + }), + (o.prototype.data.names = function(t) { + return ( + this.internal.clearLegendItemTextBoxCache(), + this.internal.updateDataAttributes('names', t) + ); + }), + (o.prototype.data.colors = function(t) { + return this.internal.updateDataAttributes('colors', t); + }), + (o.prototype.data.axes = function(t) { + return this.internal.updateDataAttributes('axes', t); + }), + (o.prototype.data.stackNormalized = function(t) { + if (void 0 === t) return this.internal.isStackNormalized(); + (this.internal.config.data_stack_normalize = !!t), + this.internal.redraw(); + }), + (o.prototype.donut = function() {}), + (o.prototype.donut.padAngle = function(t) { + if (void 0 === t) return this.internal.config.donut_padAngle; + (this.internal.config.donut_padAngle = t), this.flush(); + }), + (o.prototype.flow = function(t) { + var e, + n, + r, + i, + o, + a, + s, + u = this.internal, + l = [], + c = u.getMaxDataCount(), + f = 0, + d = 0; + if (t.json) n = u.convertJsonToData(t.json, t.keys); + else if (t.rows) n = u.convertRowsToData(t.rows); + else { + if (!t.columns) return; + n = u.convertColumnsToData(t.columns); + } + (e = u.convertDataToTargets(n, !0)), + u.data.targets.forEach(function(t) { + var n, + r, + i = !1; + for (n = 0; n < e.length; n++) + if (t.id === e[n].id) { + for ( + i = !0, + t.values[t.values.length - 1] && + (d = t.values[t.values.length - 1].index + 1), + f = e[n].values.length, + r = 0; + r < f; + r++ + ) + (e[n].values[r].index = d + r), + u.isTimeSeries() || (e[n].values[r].x = d + r); + (t.values = t.values.concat(e[n].values)), e.splice(n, 1); + break; + } + i || l.push(t.id); + }), + u.data.targets.forEach(function(t) { + var e, n; + for (e = 0; e < l.length; e++) + if (t.id === l[e]) + for ( + d = t.values[t.values.length - 1].index + 1, n = 0; + n < f; + n++ + ) + t.values.push({ + id: t.id, + index: d + n, + x: u.isTimeSeries() ? u.getOtherTargetX(d + n) : d + n, + value: null + }); + }), + u.data.targets.length && + e.forEach(function(t) { + var e, + n = []; + for (e = u.data.targets[0].values[0].index; e < d; e++) + n.push({ + id: t.id, + index: e, + x: u.isTimeSeries() ? u.getOtherTargetX(e) : e, + value: null + }); + t.values.forEach(function(t) { + (t.index += d), u.isTimeSeries() || (t.x += d); + }), + (t.values = n.concat(t.values)); + }), + (u.data.targets = u.data.targets.concat(e)), + u.getMaxDataCount(), + (o = (i = u.data.targets[0]).values[0]), + h(t.to) + ? ((f = 0), + (s = u.isTimeSeries() ? u.parseDate(t.to) : t.to), + i.values.forEach(function(t) { + t.x < s && f++; + })) + : h(t.length) && (f = t.length), + c + ? 1 === c && + u.isTimeSeries() && + ((a = (i.values[i.values.length - 1].x - o.x) / 2), + (r = [new Date(+o.x - a), new Date(+o.x + a)]), + u.updateXDomain(null, !0, !0, !1, r)) + : ((a = u.isTimeSeries() + ? i.values.length > 1 + ? i.values[i.values.length - 1].x - o.x + : o.x - u.getXDomain(u.data.targets)[0] + : 1), + (r = [o.x - a, o.x]), + u.updateXDomain(null, !0, !0, !1, r)), + u.updateTargets(u.data.targets), + u.redraw({ + flow: { + index: o.index, + length: f, + duration: b(t.duration) + ? t.duration + : u.config.transition_duration, + done: t.done, + orgDataCount: c + }, + withLegend: !0, + withTransition: c > 1, + withTrimXDomain: !1, + withUpdateXAxis: !0 + }); + }), + (i.prototype.generateFlow = function(t) { + var e = this, + n = e.config, + r = e.d3; + return function() { + var i, + o, + a, + s, + l, + c, + f, + d, + h, + p, + g, + m = t.targets, + v = t.flow, + y = t.drawBar, + b = t.drawLine, + _ = t.drawArea, + x = t.cx, + w = t.cy, + E = t.xv, + k = t.xForText, + A = t.yForText, + T = t.duration, + C = v.index, + O = v.length, + P = e.getValueOnIndex(e.data.targets[0].values, C), + M = e.getValueOnIndex(e.data.targets[0].values, C + O), + L = e.x.domain(), + j = v.duration || T, + D = v.done || function() {}, + R = e.generateWait(); + (e.flowing = !0), + e.data.targets.forEach(function(t) { + t.values.splice(0, O); + }), + (a = e.updateXDomain(m, !0, !0)), + e.updateXGrid && e.updateXGrid(!0), + (s = e.xgrid || r.selectAll([])), + (l = e.xgridLines || r.selectAll([])), + (c = e.mainRegion || r.selectAll([])), + (f = e.mainText || r.selectAll([])), + (d = e.mainBar || r.selectAll([])), + (h = e.mainLine || r.selectAll([])), + (p = e.mainArea || r.selectAll([])), + (g = e.mainCircle || r.selectAll([])), + v.orgDataCount + ? (i = + 1 === v.orgDataCount || (P && P.x) === (M && M.x) + ? e.x(L[0]) - e.x(a[0]) + : e.isTimeSeries() + ? e.x(L[0]) - e.x(a[0]) + : e.x(P.x) - e.x(M.x)) + : 1 !== e.data.targets[0].values.length + ? (i = e.x(L[0]) - e.x(a[0])) + : e.isTimeSeries() + ? ((P = e.getValueOnIndex(e.data.targets[0].values, 0)), + (M = e.getValueOnIndex( + e.data.targets[0].values, + e.data.targets[0].values.length - 1 + )), + (i = e.x(P.x) - e.x(M.x))) + : (i = u(a) / 2), + (o = 'translate(' + i + ',0) scale(' + u(L) / u(a) + ',1)'), + e.hideXGridFocus(); + var z = r + .transition() + .ease(r.easeLinear) + .duration(j); + R.add(e.xAxis(e.axes.x, z)), + R.add(d.transition(z).attr('transform', o)), + R.add(h.transition(z).attr('transform', o)), + R.add(p.transition(z).attr('transform', o)), + R.add(g.transition(z).attr('transform', o)), + R.add(f.transition(z).attr('transform', o)), + R.add( + c + .filter(e.isRegionOnX) + .transition(z) + .attr('transform', o) + ), + R.add(s.transition(z).attr('transform', o)), + R.add(l.transition(z).attr('transform', o)), + R(function() { + var t, + r = [], + i = []; + if (O) { + for (t = 0; t < O; t++) + r.push('.' + S.shape + '-' + (C + t)), + i.push('.' + S.text + '-' + (C + t)); + e.svg + .selectAll('.' + S.shapes) + .selectAll(r) + .remove(), + e.svg + .selectAll('.' + S.texts) + .selectAll(i) + .remove(), + e.svg.select('.' + S.xgrid).remove(); + } + s + .attr('transform', null) + .attr('x1', e.xgridAttr.x1) + .attr('x2', e.xgridAttr.x2) + .attr('y1', e.xgridAttr.y1) + .attr('y2', e.xgridAttr.y2) + .style('opacity', e.xgridAttr.opacity), + l.attr('transform', null), + l + .select('line') + .attr('x1', n.axis_rotated ? 0 : E) + .attr('x2', n.axis_rotated ? e.width : E), + l + .select('text') + .attr('x', n.axis_rotated ? e.width : 0) + .attr('y', E), + d.attr('transform', null).attr('d', y), + h.attr('transform', null).attr('d', b), + p.attr('transform', null).attr('d', _), + g + .attr('transform', null) + .attr('cx', x) + .attr('cy', w), + f + .attr('transform', null) + .attr('x', k) + .attr('y', A) + .style('fill-opacity', e.opacityForText.bind(e)), + c.attr('transform', null), + c + .filter(e.isRegionOnX) + .attr('x', e.regionX.bind(e)) + .attr('width', e.regionWidth.bind(e)), + D(), + (e.flowing = !1); + }); + }; + }), + (o.prototype.focus = function(t) { + var e, + n = this.internal; + (t = n.mapToTargetIds(t)), + (e = n.svg.selectAll( + n.selectorTargets(t.filter(n.isTargetToShow, n)) + )), + this.revert(), + this.defocus(), + e.classed(S.focused, !0).classed(S.defocused, !1), + n.hasArcType() && n.expandArc(t), + n.toggleFocusLegend(t, !0), + (n.focusedTargetIds = t), + (n.defocusedTargetIds = n.defocusedTargetIds.filter(function(e) { + return t.indexOf(e) < 0; + })); + }), + (o.prototype.defocus = function(t) { + var e = this.internal; + (t = e.mapToTargetIds(t)), + e.svg + .selectAll(e.selectorTargets(t.filter(e.isTargetToShow, e))) + .classed(S.focused, !1) + .classed(S.defocused, !0), + e.hasArcType() && e.unexpandArc(t), + e.toggleFocusLegend(t, !1), + (e.focusedTargetIds = e.focusedTargetIds.filter(function(e) { + return t.indexOf(e) < 0; + })), + (e.defocusedTargetIds = t); + }), + (o.prototype.revert = function(t) { + var e = this.internal; + (t = e.mapToTargetIds(t)), + e.svg + .selectAll(e.selectorTargets(t)) + .classed(S.focused, !1) + .classed(S.defocused, !1), + e.hasArcType() && e.unexpandArc(t), + e.config.legend_show && + (e.showLegend(t.filter(e.isLegendToShow.bind(e))), + e.legend + .selectAll(e.selectorLegends(t)) + .filter(function() { + return e.d3.select(this).classed(S.legendItemFocused); + }) + .classed(S.legendItemFocused, !1)), + (e.focusedTargetIds = []), + (e.defocusedTargetIds = []); + }), + (o.prototype.xgrids = function(t) { + var e = this.internal, + n = e.config; + return t + ? ((n.grid_x_lines = t), e.redrawWithoutRescale(), n.grid_x_lines) + : n.grid_x_lines; + }), + (o.prototype.xgrids.add = function(t) { + var e = this.internal; + return this.xgrids(e.config.grid_x_lines.concat(t || [])); + }), + (o.prototype.xgrids.remove = function(t) { + this.internal.removeGridLines(t, !0); + }), + (o.prototype.ygrids = function(t) { + var e = this.internal, + n = e.config; + return t + ? ((n.grid_y_lines = t), e.redrawWithoutRescale(), n.grid_y_lines) + : n.grid_y_lines; + }), + (o.prototype.ygrids.add = function(t) { + var e = this.internal; + return this.ygrids(e.config.grid_y_lines.concat(t || [])); + }), + (o.prototype.ygrids.remove = function(t) { + this.internal.removeGridLines(t, !1); + }), + (o.prototype.groups = function(t) { + var e = this.internal, + n = e.config; + return y(t) + ? n.data_groups + : ((n.data_groups = t), e.redraw(), n.data_groups); + }), + (o.prototype.legend = function() {}), + (o.prototype.legend.show = function(t) { + var e = this.internal; + e.showLegend(e.mapToTargetIds(t)), + e.updateAndRedraw({ withLegend: !0 }); + }), + (o.prototype.legend.hide = function(t) { + var e = this.internal; + e.hideLegend(e.mapToTargetIds(t)), + e.updateAndRedraw({ withLegend: !1 }); + }), + (o.prototype.load = function(t) { + var e = this.internal, + n = e.config; + t.xs && e.addXs(t.xs), + 'names' in t && o.prototype.data.names.bind(this)(t.names), + 'classes' in t && + Object.keys(t.classes).forEach(function(e) { + n.data_classes[e] = t.classes[e]; + }), + 'categories' in t && + e.isCategorized() && + (n.axis_x_categories = t.categories), + 'axes' in t && + Object.keys(t.axes).forEach(function(e) { + n.data_axes[e] = t.axes[e]; + }), + 'colors' in t && + Object.keys(t.colors).forEach(function(e) { + n.data_colors[e] = t.colors[e]; + }), + 'cacheIds' in t && e.hasCaches(t.cacheIds) + ? e.load(e.getCaches(t.cacheIds), t.done) + : t.unload + ? e.unload( + e.mapToTargetIds(!0 === t.unload ? null : t.unload), + function() { + e.loadFromArgs(t); + } + ) + : e.loadFromArgs(t); + }), + (o.prototype.unload = function(t) { + var e = this.internal; + (t = t || {}) instanceof Array + ? (t = { ids: t }) + : 'string' == typeof t && (t = { ids: [t] }), + e.unload(e.mapToTargetIds(t.ids), function() { + e.redraw({ + withUpdateOrgXDomain: !0, + withUpdateXDomain: !0, + withLegend: !0 + }), + t.done && t.done(); + }); + }), + (o.prototype.pie = function() {}), + (o.prototype.pie.padAngle = function(t) { + if (void 0 === t) return this.internal.config.pie_padAngle; + (this.internal.config.pie_padAngle = t), this.flush(); + }), + (o.prototype.regions = function(t) { + var e = this.internal, + n = e.config; + return t + ? ((n.regions = t), e.redrawWithoutRescale(), n.regions) + : n.regions; + }), + (o.prototype.regions.add = function(t) { + var e = this.internal, + n = e.config; + return t + ? ((n.regions = n.regions.concat(t)), + e.redrawWithoutRescale(), + n.regions) + : n.regions; + }), + (o.prototype.regions.remove = function(t) { + var e, + n, + r, + i = this.internal, + o = i.config; + return ( + (e = l((t = t || {}), 'duration', o.transition_duration)), + (n = l(t, 'classes', [S.region])), + (r = i.main.select('.' + S.regions).selectAll( + n.map(function(t) { + return '.' + t; + }) + )), + (e ? r.transition().duration(e) : r).style('opacity', 0).remove(), + (o.regions = o.regions.filter(function(t) { + var e = !1; + return ( + !t.class || + (t.class.split(' ').forEach(function(t) { + n.indexOf(t) >= 0 && (e = !0); + }), + !e) + ); + })), + o.regions + ); + }), + (o.prototype.selected = function(t) { + var e = this.internal, + n = e.d3; + return e.main + .selectAll('.' + S.shapes + e.getTargetSelectorSuffix(t)) + .selectAll('.' + S.shape) + .filter(function() { + return n.select(this).classed(S.SELECTED); + }) + .nodes() + .map(function(t) { + var e = t.__data__; + return e.data ? e.data : e; + }); + }), + (o.prototype.select = function(t, e, n) { + var r = this.internal, + i = r.d3, + o = r.config; + o.data_selection_enabled && + r.main + .selectAll('.' + S.shapes) + .selectAll('.' + S.shape) + .each(function(a, s) { + var u = i.select(this), + l = a.data ? a.data.id : a.id, + c = r.getToggle(this, a).bind(r), + f = o.data_selection_grouped || !t || t.indexOf(l) >= 0, + d = !e || e.indexOf(s) >= 0, + p = u.classed(S.SELECTED); + u.classed(S.line) || + u.classed(S.area) || + (f && d + ? o.data_selection_isselectable(a) && + !p && + c(!0, u.classed(S.SELECTED, !0), a, s) + : h(n) && n && p && c(!1, u.classed(S.SELECTED, !1), a, s)); + }); + }), + (o.prototype.unselect = function(t, e) { + var n = this.internal, + r = n.d3, + i = n.config; + i.data_selection_enabled && + n.main + .selectAll('.' + S.shapes) + .selectAll('.' + S.shape) + .each(function(o, a) { + var s = r.select(this), + u = o.data ? o.data.id : o.id, + l = n.getToggle(this, o).bind(n), + c = i.data_selection_grouped || !t || t.indexOf(u) >= 0, + f = !e || e.indexOf(a) >= 0, + d = s.classed(S.SELECTED); + s.classed(S.line) || + s.classed(S.area) || + (c && + f && + i.data_selection_isselectable(o) && + d && + l(!1, s.classed(S.SELECTED, !1), o, a)); + }); + }), + (o.prototype.show = function(t, e) { + var n, + r = this.internal; + (t = r.mapToTargetIds(t)), + (e = e || {}), + r.removeHiddenTargetIds(t), + (n = r.svg.selectAll(r.selectorTargets(t))) + .transition() + .style('display', 'initial', 'important') + .style('opacity', 1, 'important') + .call(r.endall, function() { + n.style('opacity', null).style('opacity', 1); + }), + e.withLegend && r.showLegend(t), + r.redraw({ + withUpdateOrgXDomain: !0, + withUpdateXDomain: !0, + withLegend: !0 + }); + }), + (o.prototype.hide = function(t, e) { + var n, + r = this.internal; + (t = r.mapToTargetIds(t)), + (e = e || {}), + r.addHiddenTargetIds(t), + (n = r.svg.selectAll(r.selectorTargets(t))) + .transition() + .style('opacity', 0, 'important') + .call(r.endall, function() { + n.style('opacity', null).style('opacity', 0), + n.style('display', 'none'); + }), + e.withLegend && r.hideLegend(t), + r.redraw({ + withUpdateOrgXDomain: !0, + withUpdateXDomain: !0, + withLegend: !0 + }); + }), + (o.prototype.toggle = function(t, e) { + var n = this, + r = this.internal; + r.mapToTargetIds(t).forEach(function(t) { + r.isTargetToShow(t) ? n.hide(t, e) : n.show(t, e); + }); + }), + (o.prototype.subchart = function() {}), + (o.prototype.subchart.isShown = function() { + return this.internal.config.subchart_show; + }), + (o.prototype.subchart.show = function() { + const t = this.internal; + t.config.subchart_show || + ((t.config.subchart_show = !0), + t.initSubchart(), + t.updateDimension(), + t.initSubchartBrush(), + t.updateTargetsForSubchart(t.getTargets()), + t.mapToIds(t.data.targets).forEach(function(e) { + t.withoutFadeIn[e] = !1; + }), + t.updateAndRedraw(), + t.showTargets()); + }), + (o.prototype.subchart.hide = function() { + const t = this.internal; + t.config.subchart_show && + ((t.config.subchart_show = !1), t.removeSubchart(), t.redraw()); + }), + (o.prototype.tooltip = function() {}), + (o.prototype.tooltip.show = function(t) { + var e, + n, + r = this.internal, + i = {}; + t.mouse + ? (i = t.mouse) + : (t.data + ? (n = t.data) + : void 0 !== t.x && + ((e = t.id + ? r.data.targets.filter(function(e) { + return e.id === t.id; }) - ); - }), - (r.prototype.getYDomain = function(t, e, n) { - var r = this, - i = r.config; - if (r.isAxisNormalized(e)) return [0, 100]; - var o, - a, - u, - l, - c, - f, - d, - h, - p, - g, - v = t.filter(function(t) { - return r.axis.getId(t.id) === e; - }), - m = n ? r.filterByXDomain(v, n) : v, - _ = 'y2' === e ? i.axis_y2_min : i.axis_y_min, - x = 'y2' === e ? i.axis_y2_max : i.axis_y_max, - w = r.getYDomainMin(m), - S = r.getYDomainMax(m), - E = 'y2' === e ? i.axis_y2_center : i.axis_y_center, - k = - (r.hasType('bar', m) && i.bar_zerobased) || - (r.hasType('area', m) && i.area_zerobased), - A = 'y2' === e ? i.axis_y2_inverted : i.axis_y_inverted, - T = r.hasDataLabel() && i.axis_rotated, - C = r.hasDataLabel() && !i.axis_rotated; - if ( - ((w = y(_) ? _ : y(x) ? (w < x ? w : x - 10) : w), - (S = y(x) ? x : y(_) ? (_ < S ? S : _ + 10) : S), - 0 === m.length) - ) - return 'y2' === e ? r.y2.domain() : r.y.domain(); - if ( - (isNaN(w) && (w = 0), - isNaN(S) && (S = w), - w === S && (w < 0 ? (S = 0) : (w = 0)), - (p = w >= 0 && S >= 0), - (g = w <= 0 && S <= 0), - ((y(_) && p) || (y(x) && g)) && (k = !1), - k && (p && (w = 0), g && (S = 0)), - (u = l = 0.1 * (a = Math.abs(S - w))), - void 0 !== E && - ((S = E + (c = Math.max(Math.abs(w), Math.abs(S)))), - (w = E - c)), - T) - ) - (f = r.getDataLabelLength(w, S, 'width')), - (d = s(r.y.range())), - (u += - a * - ((h = [f[0] / d, f[1] / d])[1] / (1 - h[0] - h[1]))), - (l += a * (h[0] / (1 - h[0] - h[1]))); - else if (C) { - f = r.getDataLabelLength(w, S, 'height'); - var O = r.getY( - i['axis_'.concat(e, '_type')], - [0, i.axis_rotated ? r.width : r.height], - [0, a] - ); - (u += O(f[1])), (l += O(f[0])); + : r.data.targets), + (n = r.filterByX(e, t.x).slice(0, 1)[0])), + (i = n ? r.getMousePosition(n) : null)), + r.dispatchEvent('mousemove', i), + r.config.tooltip_onshow.call(r, n); + }), + (o.prototype.tooltip.hide = function() { + this.internal.dispatchEvent('mouseout', 0), + this.internal.config.tooltip_onhide.call(this); + }), + (o.prototype.transform = function(t, e) { + var n = this.internal, + r = ['pie', 'donut'].indexOf(t) >= 0 ? { withTransform: !0 } : null; + n.transformTo(e, t, r); + }), + (i.prototype.transformTo = function(t, e, n) { + var r = this, + i = !r.hasArcType(), + o = n || { withTransitionForAxis: i }; + (o.withTransitionForTransform = !1), + (r.transiting = !1), + r.setTargetType(t, e), + r.updateTargets(r.data.targets), + r.updateAndRedraw(o); + }), + (o.prototype.x = function(t) { + var e = this.internal; + return ( + arguments.length && + (e.updateTargetX(e.data.targets, t), + e.redraw({ withUpdateOrgXDomain: !0, withUpdateXDomain: !0 })), + e.data.xs + ); + }), + (o.prototype.xs = function(t) { + var e = this.internal; + return ( + arguments.length && + (e.updateTargetXs(e.data.targets, t), + e.redraw({ withUpdateOrgXDomain: !0, withUpdateXDomain: !0 })), + e.data.xs + ); + }), + (o.prototype.zoom = function(t) { + var e = this.internal; + return t + ? (e.isTimeSeries() && + (t = t.map(function(t) { + return e.parseDate(t); + })), + e.config.subchart_show + ? e.brush.selectionAsValue(t, !0) + : (e.updateXDomain(null, !0, !1, !1, t), + e.redraw({ withY: e.config.zoom_rescale, withSubchart: !1 })), + e.config.zoom_onzoom.call(this, e.x.orgDomain()), + t) + : e.x.domain(); + }), + (o.prototype.zoom.enable = function(t) { + var e = this.internal; + (e.config.zoom_enabled = t), e.updateAndRedraw(); + }), + (o.prototype.unzoom = function() { + var t = this.internal; + t.config.subchart_show + ? t.brush.clear() + : (t.updateXDomain(null, !0, !1, !1, t.subX.domain()), + t.redraw({ withY: t.config.zoom_rescale, withSubchart: !1 })); + }), + (o.prototype.zoom.max = function(t) { + var e = this.internal, + n = e.config, + r = e.d3; + if (0 !== t && !t) return n.zoom_x_max; + n.zoom_x_max = r.max([e.orgXDomain[1], t]); + }), + (o.prototype.zoom.min = function(t) { + var e = this.internal, + n = e.config, + r = e.d3; + if (0 !== t && !t) return n.zoom_x_min; + n.zoom_x_min = r.min([e.orgXDomain[0], t]); + }), + (o.prototype.zoom.range = function(t) { + if (!arguments.length) + return { max: this.domain.max(), min: this.domain.min() }; + h(t.max) && this.domain.max(t.max), + h(t.min) && this.domain.min(t.min); + }), + (i.prototype.initPie = function() { + var t = this, + e = t.d3; + t.pie = e + .pie() + .padAngle(this.getPadAngle.bind(this)) + .value(function(t) { + return t.values.reduce(function(t, e) { + return t + e.value; + }, 0); + }); + let n = t.getOrderFunction(); + if (n && (t.isOrderAsc() || t.isOrderDesc())) { + let t = n; + n = (e, n) => -1 * t(e, n); + } + t.pie.sort(n || null); + }), + (i.prototype.updateRadius = function() { + var t = this, + e = t.config, + n = e.gauge_width || e.donut_width, + r = + t.filterTargetsToShow(t.data.targets).length * + t.config.gauge_arcs_minWidth; + (t.radiusExpanded = + (Math.min(t.arcWidth, t.arcHeight) / 2) * + (t.hasType('gauge') ? 0.85 : 1)), + (t.radius = 0.95 * t.radiusExpanded), + (t.innerRadiusRatio = n ? (t.radius - n) / t.radius : 0.6), + (t.innerRadius = + t.hasType('donut') || t.hasType('gauge') + ? t.radius * t.innerRadiusRatio + : 0), + (t.gaugeArcWidth = + n || + (r <= t.radius - t.innerRadius + ? t.radius - t.innerRadius + : r <= t.radius + ? r + : t.radius)); + }), + (i.prototype.getPadAngle = function() { + return this.hasType('pie') + ? this.config.pie_padAngle || 0 + : (this.hasType('donut') && this.config.donut_padAngle) || 0; + }), + (i.prototype.updateArc = function() { + var t = this; + (t.svgArc = t.getSvgArc()), + (t.svgArcExpanded = t.getSvgArcExpanded()), + (t.svgArcExpandedSub = t.getSvgArcExpanded(0.98)); + }), + (i.prototype.updateAngle = function(t) { + var e, + n, + r, + i, + o = this, + a = o.config, + s = !1, + u = 0; + return a + ? (o + .pie(o.filterTargetsToShow(o.data.targets)) + .forEach(function(e) { + s || + e.data.id !== t.data.id || + ((s = !0), ((t = e).index = u)), + u++; + }), + isNaN(t.startAngle) && (t.startAngle = 0), + isNaN(t.endAngle) && (t.endAngle = t.startAngle), + o.isGaugeType(t.data) && + ((e = a.gauge_min), + (n = a.gauge_max), + (r = (Math.PI * (a.gauge_fullCircle ? 2 : 1)) / (n - e)), + (i = t.value < e ? 0 : t.value < n ? t.value - e : n - e), + (t.startAngle = a.gauge_startingAngle), + (t.endAngle = t.startAngle + r * i)), + s ? t : null) + : null; + }), + (i.prototype.getSvgArc = function() { + var t = this, + e = t.hasType('gauge'), + n = t.gaugeArcWidth / t.filterTargetsToShow(t.data.targets).length, + r = t.d3 + .arc() + .outerRadius(function(r) { + return e ? t.radius - n * r.index : t.radius; + }) + .innerRadius(function(r) { + return e ? t.radius - n * (r.index + 1) : t.innerRadius; + }), + i = function(e, n) { + var i; + return n ? r(e) : (i = t.updateAngle(e)) ? r(i) : 'M 0 0'; + }; + return (i.centroid = r.centroid), i; + }), + (i.prototype.getSvgArcExpanded = function(t) { + t = t || 1; + var e = this, + n = e.hasType('gauge'), + r = e.gaugeArcWidth / e.filterTargetsToShow(e.data.targets).length, + i = Math.min( + e.radiusExpanded * t - e.radius, + 0.8 * r - 100 * (1 - t) + ), + o = e.d3 + .arc() + .outerRadius(function(o) { + return n ? e.radius - r * o.index + i : e.radiusExpanded * t; + }) + .innerRadius(function(t) { + return n ? e.radius - r * (t.index + 1) : e.innerRadius; + }); + return function(t) { + var n = e.updateAngle(t); + return n ? o(n) : 'M 0 0'; + }; + }), + (i.prototype.getArc = function(t, e, n) { + return n || this.isArcType(t.data) ? this.svgArc(t, e) : 'M 0 0'; + }), + (i.prototype.transformForArcLabel = function(t) { + var e, + n, + r, + i, + o, + a = this, + s = a.config, + u = a.updateAngle(t), + l = '', + c = a.hasType('gauge'); + if (u && !c) + (e = this.svgArc.centroid(u)), + (n = isNaN(e[0]) ? 0 : e[0]), + (r = isNaN(e[1]) ? 0 : e[1]), + (i = Math.sqrt(n * n + r * r)), + (l = + 'translate(' + + n * + (o = + a.hasType('donut') && s.donut_label_ratio + ? g(s.donut_label_ratio) + ? s.donut_label_ratio(t, a.radius, i) + : s.donut_label_ratio + : a.hasType('pie') && s.pie_label_ratio + ? g(s.pie_label_ratio) + ? s.pie_label_ratio(t, a.radius, i) + : s.pie_label_ratio + : a.radius && i + ? ((36 / a.radius > 0.375 ? 1.175 - 36 / a.radius : 0.8) * + a.radius) / + i + : 0) + + ',' + + r * o + + ')'); + else if (u && c && a.filterTargetsToShow(a.data.targets).length > 1) { + var f = Math.sin(u.endAngle - Math.PI / 2); + l = + 'translate(' + + (n = + Math.cos(u.endAngle - Math.PI / 2) * (a.radiusExpanded + 25)) + + ',' + + (r = f * (a.radiusExpanded + 15 - Math.abs(10 * f)) + 3) + + ')'; + } + return l; + }), + (i.prototype.getArcRatio = function(t) { + return this.getRatio('arc', t); + }), + (i.prototype.convertToArcData = function(t) { + return this.addName({ + id: t.data.id, + value: t.value, + ratio: this.getRatio('arc', t), + index: t.index + }); + }), + (i.prototype.textForArcLabel = function(t) { + var e, + n, + r, + i, + o, + a = this; + return a.shouldShowArcLabel() + ? ((n = (e = a.updateAngle(t)) ? e.value : null), + (r = a.getRatio('arc', e)), + (i = t.data.id), + a.hasType('gauge') || a.meetsArcLabelThreshold(r) + ? (o = a.getArcLabelFormat()) + ? o(n, r, i) + : a.defaultArcValueFormat(n, r) + : '') + : ''; + }), + (i.prototype.textForGaugeMinMax = function(t, e) { + var n = this.getGaugeLabelExtents(); + return n ? n(t, e) : t; + }), + (i.prototype.expandArc = function(t) { + var e, + n = this; + n.transiting + ? (e = window.setInterval(function() { + n.transiting || + (window.clearInterval(e), + n.legend.selectAll('.c3-legend-item-focused').size() > 0 && + n.expandArc(t)); + }, 10)) + : ((t = n.mapToTargetIds(t)), + n.svg + .selectAll(n.selectorTargets(t, '.' + S.chartArc)) + .each(function(t) { + n.shouldExpand(t.data.id) && + n.d3 + .select(this) + .selectAll('path') + .transition() + .duration(n.expandDuration(t.data.id)) + .attr('d', n.svgArcExpanded) + .transition() + .duration(2 * n.expandDuration(t.data.id)) + .attr('d', n.svgArcExpandedSub) + .each(function(t) { + n.isDonutType(t.data); + }); + })); + }), + (i.prototype.unexpandArc = function(t) { + var e = this; + e.transiting || + ((t = e.mapToTargetIds(t)), + e.svg + .selectAll(e.selectorTargets(t, '.' + S.chartArc)) + .selectAll('path') + .transition() + .duration(function(t) { + return e.expandDuration(t.data.id); + }) + .attr('d', e.svgArc), + e.svg.selectAll('.' + S.arc)); + }), + (i.prototype.expandDuration = function(t) { + var e = this.config; + return this.isDonutType(t) + ? e.donut_expand_duration + : this.isGaugeType(t) + ? e.gauge_expand_duration + : this.isPieType(t) + ? e.pie_expand_duration + : 50; + }), + (i.prototype.shouldExpand = function(t) { + var e = this.config; + return ( + (this.isDonutType(t) && e.donut_expand) || + (this.isGaugeType(t) && e.gauge_expand) || + (this.isPieType(t) && e.pie_expand) + ); + }), + (i.prototype.shouldShowArcLabel = function() { + var t = this.config, + e = !0; + return ( + this.hasType('donut') + ? (e = t.donut_label_show) + : this.hasType('pie') && (e = t.pie_label_show), + e + ); + }), + (i.prototype.meetsArcLabelThreshold = function(t) { + var e = this.config; + return ( + t >= + (this.hasType('donut') + ? e.donut_label_threshold + : e.pie_label_threshold) + ); + }), + (i.prototype.getArcLabelFormat = function() { + var t = this.config, + e = t.pie_label_format; + return ( + this.hasType('gauge') + ? (e = t.gauge_label_format) + : this.hasType('donut') && (e = t.donut_label_format), + e + ); + }), + (i.prototype.getGaugeLabelExtents = function() { + return this.config.gauge_label_extents; + }), + (i.prototype.getArcTitle = function() { + return this.hasType('donut') ? this.config.donut_title : ''; + }), + (i.prototype.updateTargetsForArc = function(t) { + var e, + n = this, + r = n.main, + i = n.classChartArc.bind(n), + o = n.classArcs.bind(n), + a = n.classFocus.bind(n); + (e = r + .select('.' + S.chartArcs) + .selectAll('.' + S.chartArc) + .data(n.pie(t)) + .attr('class', function(t) { + return i(t) + a(t.data); + }) + .enter() + .append('g') + .attr('class', i)) + .append('g') + .attr('class', o), + e + .append('text') + .attr('dy', n.hasType('gauge') ? '-.1em' : '.35em') + .style('opacity', 0) + .style('text-anchor', 'middle') + .style('pointer-events', 'none'); + }), + (i.prototype.initArc = function() { + var t = this; + (t.arcs = t.main + .select('.' + S.chart) + .append('g') + .attr('class', S.chartArcs) + .attr('transform', t.getTranslate('arc'))), + t.arcs + .append('text') + .attr('class', S.chartArcsTitle) + .style('text-anchor', 'middle') + .text(t.getArcTitle()); + }), + (i.prototype.redrawArc = function(t, e, n) { + var r, + i, + o, + a, + s = this, + u = s.d3, + l = s.config, + c = s.main, + f = s.hasType('gauge'); + if ( + ((i = (r = c + .selectAll('.' + S.arcs) + .selectAll('.' + S.arc) + .data(s.arcData.bind(s))) + .enter() + .append('path') + .attr('class', s.classArc.bind(s)) + .style('fill', function(t) { + return s.color(t.data); + }) + .style('cursor', function(t) { + return l.interaction_enabled && l.data_selection_isselectable(t) + ? 'pointer' + : null; + }) + .each(function(t) { + s.isGaugeType(t.data) && + (t.startAngle = t.endAngle = l.gauge_startingAngle), + (this._current = t); + }) + .merge(r)), + f && + ((a = (o = c + .selectAll('.' + S.arcs) + .selectAll('.' + S.arcLabelLine) + .data(s.arcData.bind(s))) + .enter() + .append('rect') + .attr('class', function(t) { + return ( + S.arcLabelLine + + ' ' + + S.target + + ' ' + + S.target + + '-' + + t.data.id + ); + }) + .merge(o)), + 1 === s.filterTargetsToShow(s.data.targets).length + ? a.style('display', 'none') + : a + .style('fill', function(t) { + return s.levelColor + ? s.levelColor(t.data.values[0].value) + : s.color(t.data); + }) + .style('display', l.gauge_labelLine_show ? '' : 'none') + .each(function(t) { + var e = 0, + n = 0, + r = 0, + i = ''; + if (s.hiddenTargetIds.indexOf(t.data.id) < 0) { + var o = s.updateAngle(t), + a = + (s.gaugeArcWidth / + s.filterTargetsToShow(s.data.targets).length) * + (o.index + 1), + l = o.endAngle - Math.PI / 2, + c = s.radius - a, + f = l - (0 === c ? 0 : 1 / c); + (e = s.radiusExpanded - s.radius + a), + (n = Math.cos(f) * c), + (r = Math.sin(f) * c), + (i = + 'rotate(' + + (180 * l) / Math.PI + + ', ' + + n + + ', ' + + r + + ')'); + } + u.select(this) + .attr('x', n) + .attr('y', r) + .attr('width', e) + .attr('height', 2) + .attr('transform', i) + .style('stroke-dasharray', '0, ' + (e + 2) + ', 0'); + })), + i + .attr('transform', function(t) { + return !s.isGaugeType(t.data) && n ? 'scale(0)' : ''; + }) + .on( + 'mouseover', + l.interaction_enabled + ? function(t) { + var e, n; + s.transiting || + ((e = s.updateAngle(t)) && + ((n = s.convertToArcData(e)), + s.expandArc(e.data.id), + s.api.focus(e.data.id), + s.toggleFocusLegend(e.data.id, !0), + s.config.data_onmouseover(n, this))); } - return ( - 'y' === e && - b(i.axis_y_padding) && - ((u = r.axis.getPadding(i.axis_y_padding, 'top', u, a)), - (l = r.axis.getPadding( - i.axis_y_padding, - 'bottom', - l, - a - ))), - 'y2' === e && - b(i.axis_y2_padding) && - ((u = r.axis.getPadding( - i.axis_y2_padding, - 'top', - u, - a - )), - (l = r.axis.getPadding( - i.axis_y2_padding, - 'bottom', - l, - a - ))), - k && (p && (l = w), g && (u = -S)), - (o = [w - l, S + u]), - A ? o.reverse() : o - ); - }), - (r.prototype.getXDomainMin = function(t) { - var e = this, - n = e.config; - return d(n.axis_x_min) - ? e.isTimeSeries() - ? this.parseDate(n.axis_x_min) - : n.axis_x_min - : e.d3.min(t, function(t) { - return e.d3.min(t.values, function(t) { - return t.x; - }); - }); - }), - (r.prototype.getXDomainMax = function(t) { - var e = this, - n = e.config; - return d(n.axis_x_max) - ? e.isTimeSeries() - ? this.parseDate(n.axis_x_max) - : n.axis_x_max - : e.d3.max(t, function(t) { - return e.d3.max(t.values, function(t) { - return t.x; - }); - }); + : null + ) + .on( + 'mousemove', + l.interaction_enabled + ? function(t) { + var e, + n = s.updateAngle(t); + n && + ((e = [s.convertToArcData(n)]), s.showTooltip(e, this)); + } + : null + ) + .on( + 'mouseout', + l.interaction_enabled + ? function(t) { + var e, n; + s.transiting || + ((e = s.updateAngle(t)) && + ((n = s.convertToArcData(e)), + s.unexpandArc(e.data.id), + s.api.revert(), + s.revertLegend(), + s.hideTooltip(), + s.config.data_onmouseout(n, this))); + } + : null + ) + .on( + 'click', + l.interaction_enabled + ? function(t, e) { + var n, + r = s.updateAngle(t); + r && + ((n = s.convertToArcData(r)), + s.toggleShape && s.toggleShape(this, n, e), + s.config.data_onclick.call(s.api, n, this)); + } + : null + ) + .each(function() { + s.transiting = !0; + }) + .transition() + .duration(t) + .attrTween('d', function(t) { + var e, + n = s.updateAngle(t); + return n + ? (isNaN(this._current.startAngle) && + (this._current.startAngle = 0), + isNaN(this._current.endAngle) && + (this._current.endAngle = this._current.startAngle), + (e = u.interpolate(this._current, n)), + (this._current = e(0)), + function(n) { + if (null === s.config) return 'M 0 0'; + var r = e(n); + return (r.data = t.data), s.getArc(r, !0); + }) + : function() { + return 'M 0 0'; + }; + }) + .attr('transform', n ? 'scale(1)' : '') + .style('fill', function(t) { + return s.levelColor + ? s.levelColor(t.data.values[0].value) + : s.color(t.data.id); + }) + .call(s.endall, function() { + s.transiting = !1; + }), + r + .exit() + .transition() + .duration(e) + .style('opacity', 0) + .remove(), + c + .selectAll('.' + S.chartArc) + .select('text') + .style('opacity', 0) + .attr('class', function(t) { + return s.isGaugeType(t.data) ? S.gaugeValue : ''; + }) + .text(s.textForArcLabel.bind(s)) + .attr('transform', s.transformForArcLabel.bind(s)) + .style('font-size', function(t) { + return s.isGaugeType(t.data) && + 1 === s.filterTargetsToShow(s.data.targets).length + ? Math.round(s.radius / 5) + 'px' + : ''; + }) + .transition() + .duration(t) + .style('opacity', function(t) { + return s.isTargetToShow(t.data.id) && s.isArcType(t.data) + ? 1 + : 0; + }), + c + .select('.' + S.chartArcsTitle) + .style('opacity', s.hasType('donut') || f ? 1 : 0), + f) + ) { + let t = 0; + const e = s.arcs + .select('g.' + S.chartArcsBackground) + .selectAll('path.' + S.chartArcsBackground) + .data(s.data.targets); + e + .enter() + .append('path') + .attr( + 'class', + (t, e) => + S.chartArcsBackground + ' ' + S.chartArcsBackground + '-' + e + ) + .merge(e) + .attr('d', e => { + if (s.hiddenTargetIds.indexOf(e.id) >= 0) return 'M 0 0'; + var n = { + data: [{ value: l.gauge_max }], + startAngle: l.gauge_startingAngle, + endAngle: + -1 * + l.gauge_startingAngle * + (l.gauge_fullCircle ? Math.PI : 1), + index: t++ + }; + return s.getArc(n, !0, !0); + }), + e.exit().remove(), + s.arcs + .select('.' + S.chartArcsGaugeUnit) + .attr('dy', '.75em') + .text(l.gauge_label_show ? l.gauge_units : ''), + s.arcs + .select('.' + S.chartArcsGaugeMin) + .attr( + 'dx', + -1 * + (s.innerRadius + + (s.radius - s.innerRadius) / + (l.gauge_fullCircle ? 1 : 2)) + + 'px' + ) + .attr('dy', '1.2em') + .text( + l.gauge_label_show + ? s.textForGaugeMinMax(l.gauge_min, !1) + : '' + ), + s.arcs + .select('.' + S.chartArcsGaugeMax) + .attr( + 'dx', + s.innerRadius + + (s.radius - s.innerRadius) / (l.gauge_fullCircle ? 1 : 2) + + 'px' + ) + .attr('dy', '1.2em') + .text( + l.gauge_label_show + ? s.textForGaugeMinMax(l.gauge_max, !0) + : '' + ); + } + }), + (i.prototype.initGauge = function() { + var t = this.arcs; + this.hasType('gauge') && + (t.append('g').attr('class', S.chartArcsBackground), + t + .append('text') + .attr('class', S.chartArcsGaugeUnit) + .style('text-anchor', 'middle') + .style('pointer-events', 'none'), + t + .append('text') + .attr('class', S.chartArcsGaugeMin) + .style('text-anchor', 'middle') + .style('pointer-events', 'none'), + t + .append('text') + .attr('class', S.chartArcsGaugeMax) + .style('text-anchor', 'middle') + .style('pointer-events', 'none')); + }), + (i.prototype.getGaugeLabelHeight = function() { + return this.config.gauge_label_show ? 20 : 0; + }), + (i.prototype.addToCache = function(t, e) { + this.cache[`$${t}`] = e; + }), + (i.prototype.getFromCache = function(t) { + return this.cache[`$${t}`]; + }), + (i.prototype.resetCache = function() { + Object.keys(this.cache) + .filter(t => /^\$/.test(t)) + .forEach(t => { + delete this.cache[t]; + }); + }), + (i.prototype.hasCaches = function(t) { + for (var e = 0; e < t.length; e++) + if (!(t[e] in this.cache)) return !1; + return !0; + }), + (i.prototype.addCache = function(t, e) { + this.cache[t] = this.cloneTarget(e); + }), + (i.prototype.getCaches = function(t) { + var e, + n = []; + for (e = 0; e < t.length; e++) + t[e] in this.cache && n.push(this.cloneTarget(this.cache[t[e]])); + return n; + }), + (i.prototype.categoryName = function(t) { + var e = this.config; + return t < e.axis_x_categories.length ? e.axis_x_categories[t] : t; + }), + (i.prototype.generateTargetClass = function(t) { + return t || 0 === t ? ('-' + t).replace(/\s/g, '-') : ''; + }), + (i.prototype.generateClass = function(t, e) { + return ' ' + t + ' ' + t + this.generateTargetClass(e); + }), + (i.prototype.classText = function(t) { + return this.generateClass(S.text, t.index); + }), + (i.prototype.classTexts = function(t) { + return this.generateClass(S.texts, t.id); + }), + (i.prototype.classShape = function(t) { + return this.generateClass(S.shape, t.index); + }), + (i.prototype.classShapes = function(t) { + return this.generateClass(S.shapes, t.id); + }), + (i.prototype.classLine = function(t) { + return this.classShape(t) + this.generateClass(S.line, t.id); + }), + (i.prototype.classLines = function(t) { + return this.classShapes(t) + this.generateClass(S.lines, t.id); + }), + (i.prototype.classCircle = function(t) { + return this.classShape(t) + this.generateClass(S.circle, t.index); + }), + (i.prototype.classCircles = function(t) { + return this.classShapes(t) + this.generateClass(S.circles, t.id); + }), + (i.prototype.classBar = function(t) { + return this.classShape(t) + this.generateClass(S.bar, t.index); + }), + (i.prototype.classBars = function(t) { + return this.classShapes(t) + this.generateClass(S.bars, t.id); + }), + (i.prototype.classArc = function(t) { + return this.classShape(t.data) + this.generateClass(S.arc, t.data.id); + }), + (i.prototype.classArcs = function(t) { + return ( + this.classShapes(t.data) + this.generateClass(S.arcs, t.data.id) + ); + }), + (i.prototype.classArea = function(t) { + return this.classShape(t) + this.generateClass(S.area, t.id); + }), + (i.prototype.classAreas = function(t) { + return this.classShapes(t) + this.generateClass(S.areas, t.id); + }), + (i.prototype.classRegion = function(t, e) { + return ( + this.generateClass(S.region, e) + + ' ' + + ('class' in t ? t.class : '') + ); + }), + (i.prototype.classEvent = function(t) { + return this.generateClass(S.eventRect, t.index); + }), + (i.prototype.classTarget = function(t) { + var e = this.config.data_classes[t], + n = ''; + return ( + e && (n = ' ' + S.target + '-' + e), + this.generateClass(S.target, t) + n + ); + }), + (i.prototype.classFocus = function(t) { + return this.classFocused(t) + this.classDefocused(t); + }), + (i.prototype.classFocused = function(t) { + return ( + ' ' + (this.focusedTargetIds.indexOf(t.id) >= 0 ? S.focused : '') + ); + }), + (i.prototype.classDefocused = function(t) { + return ( + ' ' + + (this.defocusedTargetIds.indexOf(t.id) >= 0 ? S.defocused : '') + ); + }), + (i.prototype.classChartText = function(t) { + return S.chartText + this.classTarget(t.id); + }), + (i.prototype.classChartLine = function(t) { + return S.chartLine + this.classTarget(t.id); + }), + (i.prototype.classChartBar = function(t) { + return S.chartBar + this.classTarget(t.id); + }), + (i.prototype.classChartArc = function(t) { + return S.chartArc + this.classTarget(t.data.id); + }), + (i.prototype.getTargetSelectorSuffix = function(t) { + const e = this.generateTargetClass(t); + return window.CSS && window.CSS.escape + ? window.CSS.escape(e) + : e.replace(/([?!@#$%^&*()=+,.<>'":;\[\]\/|~`{}\\])/g, '\\$1'); + }), + (i.prototype.selectorTarget = function(t, e) { + return (e || '') + '.' + S.target + this.getTargetSelectorSuffix(t); + }), + (i.prototype.selectorTargets = function(t, e) { + var n = this; + return (t = t || []).length + ? t.map(function(t) { + return n.selectorTarget(t, e); + }) + : null; + }), + (i.prototype.selectorLegend = function(t) { + return '.' + S.legendItem + this.getTargetSelectorSuffix(t); + }), + (i.prototype.selectorLegends = function(t) { + var e = this; + return t && t.length + ? t.map(function(t) { + return e.selectorLegend(t); + }) + : null; + }), + (i.prototype.getClipPath = function(t) { + return ( + 'url(' + + (window.navigator.appVersion.toLowerCase().indexOf('msie 9.') >= 0 + ? '' + : document.URL.split('#')[0]) + + '#' + + t + + ')' + ); + }), + (i.prototype.appendClip = function(t, e) { + return t + .append('clipPath') + .attr('id', e) + .append('rect'); + }), + (i.prototype.getAxisClipX = function(t) { + var e = Math.max(30, this.margin.left); + return t ? -(1 + e) : -(e - 1); + }), + (i.prototype.getAxisClipY = function(t) { + return t ? -20 : -this.margin.top; + }), + (i.prototype.getXAxisClipX = function() { + return this.getAxisClipX(!this.config.axis_rotated); + }), + (i.prototype.getXAxisClipY = function() { + return this.getAxisClipY(!this.config.axis_rotated); + }), + (i.prototype.getYAxisClipX = function() { + return this.config.axis_y_inner + ? -1 + : this.getAxisClipX(this.config.axis_rotated); + }), + (i.prototype.getYAxisClipY = function() { + return this.getAxisClipY(this.config.axis_rotated); + }), + (i.prototype.getAxisClipWidth = function(t) { + var e = Math.max(30, this.margin.left), + n = Math.max(30, this.margin.right); + return t ? this.width + 2 + e + n : this.margin.left + 20; + }), + (i.prototype.getAxisClipHeight = function(t) { + return (t ? this.margin.bottom : this.margin.top + this.height) + 20; + }), + (i.prototype.getXAxisClipWidth = function() { + return this.getAxisClipWidth(!this.config.axis_rotated); + }), + (i.prototype.getXAxisClipHeight = function() { + return this.getAxisClipHeight(!this.config.axis_rotated); + }), + (i.prototype.getYAxisClipWidth = function() { + return ( + this.getAxisClipWidth(this.config.axis_rotated) + + (this.config.axis_y_inner ? 20 : 0) + ); + }), + (i.prototype.getYAxisClipHeight = function() { + return this.getAxisClipHeight(this.config.axis_rotated); + }), + (i.prototype.generateColor = function() { + var t = this.config, + e = this.d3, + n = t.data_colors, + r = _(t.color_pattern) ? t.color_pattern : e.schemeCategory10, + i = t.data_color, + o = []; + return function(t) { + var e, + a = t.id || (t.data && t.data.id) || t; + return ( + n[a] instanceof Function + ? (e = n[a](t)) + : n[a] + ? (e = n[a]) + : (o.indexOf(a) < 0 && o.push(a), + (e = r[o.indexOf(a) % r.length]), + (n[a] = e)), + i instanceof Function ? i(e, t) : e + ); + }; + }), + (i.prototype.generateLevelColor = function() { + var t = this.config, + e = t.color_pattern, + n = t.color_threshold, + r = 'value' === n.unit, + i = n.values && n.values.length ? n.values : [], + o = n.max || 100; + return _(n) && _(e) + ? function(t) { + var n, + a = e[e.length - 1]; + for (n = 0; n < i.length; n++) + if ((r ? t : (100 * t) / o) < i[n]) { + a = e[n]; + break; + } + return a; + } + : null; + }), + (i.prototype.getDefaultConfig = function() { + var t = { + bindto: '#chart', + svg_classname: void 0, + size_width: void 0, + size_height: void 0, + padding_left: void 0, + padding_right: void 0, + padding_top: void 0, + padding_bottom: void 0, + resize_auto: !0, + zoom_enabled: !1, + zoom_initialRange: void 0, + zoom_type: 'scroll', + zoom_disableDefaultBehavior: !1, + zoom_privileged: !1, + zoom_rescale: !1, + zoom_onzoom: function() {}, + zoom_onzoomstart: function() {}, + zoom_onzoomend: function() {}, + zoom_x_min: void 0, + zoom_x_max: void 0, + interaction_brighten: !0, + interaction_enabled: !0, + onmouseover: function() {}, + onmouseout: function() {}, + onresize: function() {}, + onresized: function() {}, + oninit: function() {}, + onrendered: function() {}, + transition_duration: 350, + data_epochs: 'epochs', + data_x: void 0, + data_xs: {}, + data_xFormat: '%Y-%m-%d', + data_xLocaltime: !0, + data_xSort: !0, + data_idConverter: function(t) { + return t; + }, + data_names: {}, + data_classes: {}, + data_groups: [], + data_axes: {}, + data_type: void 0, + data_types: {}, + data_labels: {}, + data_order: 'desc', + data_regions: {}, + data_color: void 0, + data_colors: {}, + data_hide: !1, + data_filter: void 0, + data_selection_enabled: !1, + data_selection_grouped: !1, + data_selection_isselectable: function() { + return !0; + }, + data_selection_multiple: !0, + data_selection_draggable: !1, + data_stack_normalize: !1, + data_onclick: function() {}, + data_onmouseover: function() {}, + data_onmouseout: function() {}, + data_onselected: function() {}, + data_onunselected: function() {}, + data_url: void 0, + data_headers: void 0, + data_json: void 0, + data_rows: void 0, + data_columns: void 0, + data_mimeType: void 0, + data_keys: void 0, + data_empty_label_text: '', + subchart_show: !1, + subchart_size_height: 60, + subchart_axis_x_show: !0, + subchart_onbrush: function() {}, + color_pattern: [], + color_threshold: {}, + legend_show: !0, + legend_hide: !1, + legend_position: 'bottom', + legend_inset_anchor: 'top-left', + legend_inset_x: 10, + legend_inset_y: 0, + legend_inset_step: void 0, + legend_item_onclick: void 0, + legend_item_onmouseover: void 0, + legend_item_onmouseout: void 0, + legend_equally: !1, + legend_padding: 0, + legend_item_tile_width: 10, + legend_item_tile_height: 10, + axis_rotated: !1, + axis_x_show: !0, + axis_x_type: 'indexed', + axis_x_localtime: !0, + axis_x_categories: [], + axis_x_tick_centered: !1, + axis_x_tick_format: void 0, + axis_x_tick_culling: {}, + axis_x_tick_culling_max: 10, + axis_x_tick_count: void 0, + axis_x_tick_fit: !0, + axis_x_tick_values: null, + axis_x_tick_rotate: 0, + axis_x_tick_outer: !0, + axis_x_tick_multiline: !0, + axis_x_tick_multilineMax: 0, + axis_x_tick_width: null, + axis_x_max: void 0, + axis_x_min: void 0, + axis_x_padding: {}, + axis_x_height: void 0, + axis_x_selection: void 0, + axis_x_label: {}, + axis_x_inner: void 0, + axis_y_show: !0, + axis_y_type: 'linear', + axis_y_max: void 0, + axis_y_min: void 0, + axis_y_inverted: !1, + axis_y_center: void 0, + axis_y_inner: void 0, + axis_y_label: {}, + axis_y_tick_format: void 0, + axis_y_tick_outer: !0, + axis_y_tick_values: null, + axis_y_tick_rotate: 0, + axis_y_tick_count: void 0, + axis_y_tick_time_type: void 0, + axis_y_tick_time_interval: void 0, + axis_y_padding: {}, + axis_y_default: void 0, + axis_y2_show: !1, + axis_y2_type: 'linear', + axis_y2_max: void 0, + axis_y2_min: void 0, + axis_y2_inverted: !1, + axis_y2_center: void 0, + axis_y2_inner: void 0, + axis_y2_label: {}, + axis_y2_tick_format: void 0, + axis_y2_tick_outer: !0, + axis_y2_tick_values: null, + axis_y2_tick_count: void 0, + axis_y2_padding: {}, + axis_y2_default: void 0, + grid_x_show: !1, + grid_x_type: 'tick', + grid_x_lines: [], + grid_y_show: !1, + grid_y_lines: [], + grid_y_ticks: 10, + grid_focus_show: !0, + grid_lines_front: !0, + point_show: !0, + point_r: 2.5, + point_sensitivity: 10, + point_focus_expand_enabled: !0, + point_focus_expand_r: void 0, + point_select_r: void 0, + line_connectNull: !1, + line_step_type: 'step', + bar_width: void 0, + bar_width_ratio: 0.6, + bar_width_max: void 0, + bar_zerobased: !0, + bar_space: 0, + area_zerobased: !0, + area_above: !1, + pie_label_show: !0, + pie_label_format: void 0, + pie_label_threshold: 0.05, + pie_label_ratio: void 0, + pie_expand: {}, + pie_expand_duration: 50, + pie_padAngle: 0, + gauge_fullCircle: !1, + gauge_label_show: !0, + gauge_labelLine_show: !0, + gauge_label_format: void 0, + gauge_min: 0, + gauge_max: 100, + gauge_startingAngle: (-1 * Math.PI) / 2, + gauge_label_extents: void 0, + gauge_units: void 0, + gauge_width: void 0, + gauge_arcs_minWidth: 5, + gauge_expand: {}, + gauge_expand_duration: 50, + donut_label_show: !0, + donut_label_format: void 0, + donut_label_threshold: 0.05, + donut_label_ratio: void 0, + donut_width: void 0, + donut_title: '', + donut_expand: {}, + donut_expand_duration: 50, + donut_padAngle: 0, + spline_interpolation_type: 'cardinal', + stanford_lines: [], + stanford_regions: [], + stanford_texts: [], + stanford_scaleMin: void 0, + stanford_scaleMax: void 0, + stanford_scaleWidth: void 0, + stanford_scaleFormat: void 0, + stanford_scaleValues: void 0, + stanford_colors: void 0, + stanford_padding: { top: 0, right: 0, bottom: 0, left: 0 }, + regions: [], + tooltip_show: !0, + tooltip_grouped: !0, + tooltip_order: void 0, + tooltip_format_title: void 0, + tooltip_format_name: void 0, + tooltip_format_value: void 0, + tooltip_horizontal: void 0, + tooltip_position: void 0, + tooltip_contents: function(t, e, n, r) { + return this.getTooltipContent + ? this.getTooltipContent(t, e, n, r) + : ''; + }, + tooltip_init_show: !1, + tooltip_init_x: 0, + tooltip_init_position: { top: '0px', left: '50px' }, + tooltip_onshow: function() {}, + tooltip_onhide: function() {}, + title_text: void 0, + title_padding: { top: 0, right: 0, bottom: 0, left: 0 }, + title_position: 'top-center' + }; + return ( + Object.keys(this.additionalConfig).forEach(function(e) { + t[e] = this.additionalConfig[e]; + }, this), + t + ); + }), + (i.prototype.additionalConfig = {}), + (i.prototype.loadConfig = function(t) { + var e, + n, + r, + i = this.config; + Object.keys(i).forEach(function(o) { + (e = t), + (n = o.split('_')), + (r = (function t() { + var r = n.shift(); + return r && e && 'object' == typeof e && r in e + ? ((e = e[r]), t()) + : r + ? void 0 + : e; + })()), + h(r) && (i[o] = r); + }); + }), + (i.prototype.convertUrlToData = function(t, e, n, r, i) { + var o, + a, + s = this, + u = e || 'csv'; + 'json' === u + ? ((o = s.d3.json), (a = s.convertJsonToData)) + : 'tsv' === u + ? ((o = s.d3.tsv), (a = s.convertXsvToData)) + : ((o = s.d3.csv), (a = s.convertXsvToData)), + o(t, n) + .then(function(t) { + i.call(s, a.call(s, t, r)); + }) + .catch(function(t) { + throw t; + }); + }), + (i.prototype.convertXsvToData = function(t) { + var e = t.columns; + return 0 === t.length + ? { + keys: e, + rows: [e.reduce((t, e) => Object.assign(t, { [e]: null }), {})] + } + : { keys: e, rows: [].concat(t) }; + }), + (i.prototype.convertJsonToData = function(t, e) { + var n, + r, + i = this, + o = []; + return ( + e + ? (e.x + ? ((n = e.value.concat(e.x)), (i.config.data_x = e.x)) + : (n = e.value), + o.push(n), + t.forEach(function(t) { + var e = []; + n.forEach(function(n) { + var r = i.findValueInJson(t, n); + y(r) && (r = null), e.push(r); }), - (r.prototype.getXDomainPadding = function(e) { - var n, - r, - i, - o, - a = this.config, - s = e[1] - e[0]; + o.push(e); + }), + (r = i.convertRowsToData(o))) + : (Object.keys(t).forEach(function(e) { + o.push([e].concat(t[e])); + }), + (r = i.convertColumnsToData(o))), + r + ); + }), + (i.prototype.findValueInJson = function(t, e) { + for ( + var n = (e = (e = e.replace(/\[(\w+)\]/g, '.$1')).replace( + /^\./, + '' + )).split('.'), + r = 0; + r < n.length; + ++r + ) { + var i = n[r]; + if (!(i in t)) return; + t = t[i]; + } + return t; + }), + (i.prototype.convertRowsToData = t => { + const e = [], + n = t[0]; + for (let r = 1; r < t.length; r++) { + const i = {}; + for (let e = 0; e < t[r].length; e++) { + if (y(t[r][e])) + throw new Error( + 'Source data is missing a component at (' + r + ',' + e + ')!' + ); + i[n[e]] = t[r][e]; + } + e.push(i); + } + return { keys: n, rows: e }; + }), + (i.prototype.convertColumnsToData = t => { + const e = [], + n = []; + for (let r = 0; r < t.length; r++) { + const i = t[r][0]; + for (let n = 1; n < t[r].length; n++) { + if ((y(e[n - 1]) && (e[n - 1] = {}), y(t[r][n]))) + throw new Error( + 'Source data is missing a component at (' + r + ',' + n + ')!' + ); + e[n - 1][i] = t[r][n]; + } + n.push(i); + } + return { keys: n, rows: e }; + }), + (i.prototype.convertDataToTargets = function(t, e) { + var n, + r, + i, + o, + a, + s = this, + u = s.config; + if ( + (d(t) ? (o = Object.keys(t[0])) : ((o = t.keys), (t = t.rows)), + (i = o.filter(s.isX, s)), + s.isStanfordGraphType()) + ) { + if ( + ((a = o.filter(s.isEpochs, s)), + (r = o.filter(s.isNotXAndNotEpochs, s)), + 1 !== i.length || 1 !== a.length || 1 !== r.length) + ) + throw new Error( + "You must define the 'x' key name and the 'epochs' for Stanford Diagrams" + ); + } else r = o.filter(s.isNotX, s); + return ( + r.forEach(function(n) { + var r = s.getXKey(n); + s.isCustomX() || s.isTimeSeries() + ? i.indexOf(r) >= 0 + ? (s.data.xs[n] = (e && s.data.xs[n] + ? s.data.xs[n] + : [] + ).concat( + t + .map(function(t) { + return t[r]; + }) + .filter(b) + .map(function(t, e) { + return s.generateTargetX(t, n, e); + }) + )) + : u.data_x + ? (s.data.xs[n] = s.getOtherTargetXs()) + : _(u.data_xs) && + (s.data.xs[n] = s.getXValuesOfXKey(r, s.data.targets)) + : (s.data.xs[n] = t.map(function(t, e) { + return e; + })); + }), + r.forEach(function(t) { + if (!s.data.xs[t]) + throw new Error('x is not defined for id = "' + t + '".'); + }), + (n = r.map(function(e, n) { + var r = u.data_idConverter(e); + return { + id: r, + id_org: e, + values: t + .map(function(t, i) { + var o, + l, + c = t[s.getXKey(e)], + f = null === t[e] || isNaN(t[e]) ? null : +t[e]; return ( - (r = this.isCategorized() - ? 0 - : this.hasType('bar') - ? (n = this.getMaxDataCount()) > 1 - ? s / (n - 1) / 2 - : 0.5 - : 0.01 * s), - 'object' === t(a.axis_x_padding) && b(a.axis_x_padding) - ? ((i = y(a.axis_x_padding.left) - ? a.axis_x_padding.left - : r), - (o = y(a.axis_x_padding.right) - ? a.axis_x_padding.right - : r)) - : (i = o = - 'number' == typeof a.axis_x_padding - ? a.axis_x_padding - : r), - { left: i, right: o } + s.isCustomX() && s.isCategorized() && !y(c) + ? (0 === n && 0 === i && (u.axis_x_categories = []), + -1 === (o = u.axis_x_categories.indexOf(c)) && + ((o = u.axis_x_categories.length), + u.axis_x_categories.push(c))) + : (o = s.generateTargetX(c, e, i)), + (y(t[e]) || s.data.xs[e].length <= i) && (o = void 0), + (l = { x: o, value: f, id: r }), + s.isStanfordGraphType() && (l.epochs = t[a]), + l ); + }) + .filter(function(t) { + return h(t.x); + }) + }; + })).forEach(function(t) { + var e; + u.data_xSort && + (t.values = t.values.sort(function(t, e) { + return ( + (t.x || 0 === t.x ? t.x : 1 / 0) - + (e.x || 0 === e.x ? e.x : 1 / 0) + ); + })), + (e = 0), + t.values.forEach(function(t) { + t.index = e++; + }), + s.data.xs[t.id].sort(function(t, e) { + return t - e; + }); + }), + (s.hasNegativeValue = s.hasNegativeValueInTargets(n)), + (s.hasPositiveValue = s.hasPositiveValueInTargets(n)), + u.data_type && + s.setTargetType( + s.mapToIds(n).filter(function(t) { + return !(t in u.data_types); + }), + u.data_type + ), + n.forEach(function(t) { + s.addCache(t.id_org, t); + }), + n + ); + }), + (i.prototype.isEpochs = function(t) { + var e = this.config; + return e.data_epochs && t === e.data_epochs; + }), + (i.prototype.isX = function(t) { + var e = this.config; + return ( + (e.data_x && t === e.data_x) || + (_(e.data_xs) && + (function(t, e) { + var n = !1; + return ( + Object.keys(t).forEach(function(r) { + t[r] === e && (n = !0); }), - (r.prototype.getXDomain = function(t) { - var e = this, - n = [e.getXDomainMin(t), e.getXDomainMax(t)], - r = n[0], - i = n[1], - o = e.getXDomainPadding(n), - a = 0, - s = 0; - return ( - r - i != 0 || - e.isCategorized() || - (e.isTimeSeries() - ? ((r = new Date(0.5 * r.getTime())), - (i = new Date(1.5 * i.getTime()))) - : ((r = 0 === r ? 1 : 0.5 * r), - (i = 0 === i ? -1 : 1.5 * i))), - (r || 0 === r) && - (a = e.isTimeSeries() - ? new Date(r.getTime() - o.left) - : r - o.left), - (i || 0 === i) && - (s = e.isTimeSeries() - ? new Date(i.getTime() + o.right) - : i + o.right), - [a, s] - ); + n + ); + })(e.data_xs, t)) + ); + }), + (i.prototype.isNotX = function(t) { + return !this.isX(t); + }), + (i.prototype.isNotXAndNotEpochs = function(t) { + return !this.isX(t) && !this.isEpochs(t); + }), + (i.prototype.isStackNormalized = function() { + return ( + this.config.data_stack_normalize && + this.config.data_groups.length > 0 + ); + }), + (i.prototype.isAxisNormalized = function(t) { + const e = this; + return ( + !!e.isStackNormalized() && + e.data.targets + .filter(n => e.axis.getId(n.id) === t) + .some(t => e.isTargetNormalized(t.id)) + ); + }), + (i.prototype.isTargetNormalized = function(t) { + return ( + this.isStackNormalized() && + this.config.data_groups.some(e => e.includes(t)) + ); + }), + (i.prototype.getXKey = function(t) { + var e = this.config; + return e.data_x ? e.data_x : _(e.data_xs) ? e.data_xs[t] : null; + }), + (i.prototype.getTotalPerIndex = function(t) { + const e = this; + if (!e.isStackNormalized()) return null; + const n = e.getFromCache('getTotalPerIndex'); + if (void 0 !== n) return n[t]; + const r = { y: [], y2: [] }; + return ( + e.data.targets + .filter(t => e.isTargetNormalized(t.id)) + .filter(t => e.isTargetToShow(t.id)) + .forEach(t => { + const n = r[e.axis.getId(t.id)]; + t.values.forEach((t, e) => { + n[e] || (n[e] = 0), (n[e] += m(t.value) ? t.value : 0); + }); + }), + e.addToCache('getTotalPerIndex', r), + r[t] + ); + }), + (i.prototype.getTotalDataSum = function() { + const t = this, + e = t.getFromCache('getTotalDataSum'); + if (void 0 !== e) return e; + const n = ((r = t.data.targets + .filter(e => t.isTargetToShow(e.id)) + .map(t => t.values)), + Array.isArray(r) ? [].concat(...r) : []) + .map(t => t.value) + .reduce((t, e) => t + e, 0); + var r; + return t.addToCache('getTotalDataSum', n), n; + }), + (i.prototype.getXValuesOfXKey = function(t, e) { + var n, + r = this; + return ( + (e && _(e) ? r.mapToIds(e) : []).forEach(function(e) { + r.getXKey(e) === t && (n = r.data.xs[e]); + }), + n + ); + }), + (i.prototype.getXValue = function(t, e) { + return t in this.data.xs && this.data.xs[t] && b(this.data.xs[t][e]) + ? this.data.xs[t][e] + : e; + }), + (i.prototype.getOtherTargetXs = function() { + var t = Object.keys(this.data.xs); + return t.length ? this.data.xs[t[0]] : null; + }), + (i.prototype.getOtherTargetX = function(t) { + var e = this.getOtherTargetXs(); + return e && t < e.length ? e[t] : null; + }), + (i.prototype.addXs = function(t) { + var e = this; + Object.keys(t).forEach(function(n) { + e.config.data_xs[n] = t[n]; + }); + }), + (i.prototype.addName = function(t) { + var e; + return ( + t && + ((e = this.config.data_names[t.id]), + (t.name = void 0 !== e ? e : t.id)), + t + ); + }), + (i.prototype.getValueOnIndex = function(t, e) { + var n = t.filter(function(t) { + return t.index === e; + }); + return n.length ? n[0] : null; + }), + (i.prototype.updateTargetX = function(t, e) { + var n = this; + t.forEach(function(t) { + t.values.forEach(function(r, i) { + r.x = n.generateTargetX(e[i], t.id, i); + }), + (n.data.xs[t.id] = e); + }); + }), + (i.prototype.updateTargetXs = function(t, e) { + var n = this; + t.forEach(function(t) { + e[t.id] && n.updateTargetX([t], e[t.id]); + }); + }), + (i.prototype.generateTargetX = function(t, e, n) { + var r = this; + return r.isTimeSeries() + ? t + ? r.parseDate(t) + : r.parseDate(r.getXValue(e, n)) + : r.isCustomX() && !r.isCategorized() + ? b(t) + ? +t + : r.getXValue(e, n) + : n; + }), + (i.prototype.cloneTarget = function(t) { + return { + id: t.id, + id_org: t.id_org, + values: t.values.map(function(t) { + return { x: t.x, value: t.value, id: t.id }; + }) + }; + }), + (i.prototype.getMaxDataCount = function() { + return this.d3.max(this.data.targets, function(t) { + return t.values.length; + }); + }), + (i.prototype.mapToIds = function(t) { + return t.map(function(t) { + return t.id; + }); + }), + (i.prototype.mapToTargetIds = function(t) { + return t ? [].concat(t) : this.mapToIds(this.data.targets); + }), + (i.prototype.hasTarget = function(t, e) { + var n, + r = this.mapToIds(t); + for (n = 0; n < r.length; n++) if (r[n] === e) return !0; + return !1; + }), + (i.prototype.isTargetToShow = function(t) { + return this.hiddenTargetIds.indexOf(t) < 0; + }), + (i.prototype.isLegendToShow = function(t) { + return this.hiddenLegendIds.indexOf(t) < 0; + }), + (i.prototype.getTargetsToShow = function() { + return this.filterTargetsToShow(this.data.targets); + }), + (i.prototype.filterTargetsToShow = function(t) { + var e = this; + return t.filter(function(t) { + return e.isTargetToShow(t.id); + }); + }), + (i.prototype.getTargets = function() { + return this.data.targets; + }), + (i.prototype.mapTargetsToUniqueXs = function(t) { + var e = this.d3 + .set( + this.d3.merge( + t.map(function(t) { + return t.values.map(function(t) { + return +t.x; + }); + }) + ) + ) + .values(); + return (e = this.isTimeSeries() + ? e.map(function(t) { + return new Date(+t); + }) + : e.map(function(t) { + return +t; + })).sort(function(t, e) { + return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; + }); + }), + (i.prototype.addHiddenTargetIds = function(t) { + t = t instanceof Array ? t : new Array(t); + for (var e = 0; e < t.length; e++) + this.hiddenTargetIds.indexOf(t[e]) < 0 && + (this.hiddenTargetIds = this.hiddenTargetIds.concat(t[e])); + this.resetCache(); + }), + (i.prototype.removeHiddenTargetIds = function(t) { + (this.hiddenTargetIds = this.hiddenTargetIds.filter(function(e) { + return t.indexOf(e) < 0; + })), + this.resetCache(); + }), + (i.prototype.addHiddenLegendIds = function(t) { + t = t instanceof Array ? t : new Array(t); + for (var e = 0; e < t.length; e++) + this.hiddenLegendIds.indexOf(t[e]) < 0 && + (this.hiddenLegendIds = this.hiddenLegendIds.concat(t[e])); + }), + (i.prototype.removeHiddenLegendIds = function(t) { + this.hiddenLegendIds = this.hiddenLegendIds.filter(function(e) { + return t.indexOf(e) < 0; + }); + }), + (i.prototype.getValuesAsIdKeyed = function(t) { + var e = {}; + return ( + t.forEach(function(t) { + (e[t.id] = []), + t.values.forEach(function(n) { + e[t.id].push(n.value); + }); + }), + e + ); + }), + (i.prototype.checkValueInTargets = function(t, e) { + var n, + r, + i, + o = Object.keys(t); + for (n = 0; n < o.length; n++) + for (i = t[o[n]].values, r = 0; r < i.length; r++) + if (e(i[r].value)) return !0; + return !1; + }), + (i.prototype.hasNegativeValueInTargets = function(t) { + return this.checkValueInTargets(t, function(t) { + return t < 0; + }); + }), + (i.prototype.hasPositiveValueInTargets = function(t) { + return this.checkValueInTargets(t, function(t) { + return t > 0; + }); + }), + (i.prototype.isOrderDesc = function() { + var t = this.config; + return ( + 'string' == typeof t.data_order && + 'desc' === t.data_order.toLowerCase() + ); + }), + (i.prototype.isOrderAsc = function() { + var t = this.config; + return ( + 'string' == typeof t.data_order && + 'asc' === t.data_order.toLowerCase() + ); + }), + (i.prototype.getOrderFunction = function() { + var t = this.config, + e = this.isOrderAsc(), + n = this.isOrderDesc(); + if (e || n) { + var r = function(t, e) { + return t + Math.abs(e.value); + }; + return function(t, n) { + var i = t.values.reduce(r, 0), + o = n.values.reduce(r, 0); + return e ? o - i : i - o; + }; + } + if (g(t.data_order)) return t.data_order; + if (d(t.data_order)) { + var i = t.data_order; + return function(t, e) { + return i.indexOf(t.id) - i.indexOf(e.id); + }; + } + }), + (i.prototype.orderTargets = function(t) { + var e = this.getOrderFunction(); + return e && t.sort(e), t; + }), + (i.prototype.filterByIndex = function(t, e) { + return this.d3.merge(t.map(t => t.values.filter(t => t.index === e))); + }), + (i.prototype.filterByX = function(t, e) { + return this.d3 + .merge( + t.map(function(t) { + return t.values; + }) + ) + .filter(function(t) { + return t.x - e == 0; + }); + }), + (i.prototype.filterRemoveNull = function(t) { + return t.filter(function(t) { + return b(t.value); + }); + }), + (i.prototype.filterByXDomain = function(t, e) { + return t.map(function(t) { + return { + id: t.id, + id_org: t.id_org, + values: t.values.filter(function(t) { + return e[0] <= t.x && t.x <= e[1]; + }) + }; + }); + }), + (i.prototype.hasDataLabel = function() { + var t = this.config; + return ( + !('boolean' != typeof t.data_labels || !t.data_labels) || + !('object' != typeof t.data_labels || !_(t.data_labels)) + ); + }), + (i.prototype.getDataLabelLength = function(t, e, n) { + var r = this, + i = [0, 0]; + return ( + r.selectChart + .select('svg') + .selectAll('.dummy') + .data([t, e]) + .enter() + .append('text') + .text(function(t) { + return r.dataLabelFormat(t.id)(t); + }) + .each(function(t, e) { + i[e] = 1.3 * f(this)[n]; + }) + .remove(), + i + ); + }), + (i.prototype.isNoneArc = function(t) { + return this.hasTarget(this.data.targets, t.id); + }), + (i.prototype.isArc = function(t) { + return 'data' in t && this.hasTarget(this.data.targets, t.data.id); + }), + (i.prototype.findClosestFromTargets = function(t, e) { + const n = this, + r = t + .map(t => + n.findClosest( + t.values, + e, + n.config.tooltip_horizontal + ? n.horizontalDistance.bind(n) + : n.dist.bind(n), + n.config.point_sensitivity + ) + ) + .filter(t => t); + return 0 === r.length + ? void 0 + : 1 === r.length + ? r[0] + : n.findClosest(r, e, n.dist.bind(n)); + }), + (i.prototype.findClosestFromTargetsByX = function(t, e) { + let n, r; + return ( + t.forEach(t => { + t.values.forEach(t => { + let i = Math.abs(e - t.x); + (void 0 === r || i < r) && ((n = t), (r = i)); + }); + }), + n + ); + }), + (i.prototype.findClosest = function(t, e, n, r = 1 / 0) { + const i = this; + let o; + return ( + t + .filter(t => t && i.isBarType(t.id)) + .forEach(function(t) { + if (!o) { + const n = i.main + .select( + '.' + + S.bars + + i.getTargetSelectorSuffix(t.id) + + ' .' + + S.bar + + '-' + + t.index + ) + .node(); + i.isWithinBar(e, n) && (o = t); + } + }), + t + .filter(t => t && !i.isBarType(t.id)) + .forEach(t => { + let i = n(t, e); + i < r && ((r = i), (o = t)); + }), + o + ); + }), + (i.prototype.dist = function(t, e) { + var n = this.config, + r = n.axis_rotated ? 1 : 0, + i = n.axis_rotated ? 0 : 1, + o = this.circleY(t, t.index), + a = this.x(t.x); + return Math.sqrt(Math.pow(a - e[r], 2) + Math.pow(o - e[i], 2)); + }), + (i.prototype.horizontalDistance = function(t, e) { + var n = this.config.axis_rotated ? 1 : 0, + r = this.x(t.x); + return Math.abs(r - e[n]); + }), + (i.prototype.convertValuesToStep = function(t) { + var e, + n = [].concat(t); + if (!this.isCategorized()) return t; + for (e = t.length + 1; 0 < e; e--) n[e] = n[e - 1]; + return ( + (n[0] = { x: n[0].x - 1, value: n[0].value, id: n[0].id }), + (n[t.length + 1] = { + x: n[t.length].x + 1, + value: n[t.length].value, + id: n[t.length].id + }), + n + ); + }), + (i.prototype.getRatio = function(t, e, n = !1) { + const r = this, + i = r.api; + let o = 0; + if (e && i.data.shown.call(i).length) + if (((o = e.ratio || e.value), 'arc' === t)) + if (r.hasType('gauge')) + o = + (e.endAngle - e.startAngle) / + (Math.PI * (r.config.gauge_fullCircle ? 2 : 1)); + else { + const t = r.getTotalDataSum(); + o = e.value / t; + } + else if ('index' === t) { + const t = r.getTotalPerIndex(r.axis.getId(e.id)); + (e.ratio = + m(e.value) && t && t[e.index] > 0 ? e.value / t[e.index] : 0), + (o = e.ratio); + } + return n && o ? 100 * o : o; + }), + (i.prototype.updateDataAttributes = function(t, e) { + var n = this.config['data_' + t]; + return void 0 === e + ? n + : (Object.keys(e).forEach(function(t) { + n[t] = e[t]; + }), + this.redraw({ withLegend: !0 }), + n); + }), + (i.prototype.load = function(t, e) { + var n = this; + t && + (e.filter && (t = t.filter(e.filter)), + (e.type || e.types) && + t.forEach(function(t) { + var r = e.types && e.types[t.id] ? e.types[t.id] : e.type; + n.setTargetType(t.id, r); + }), + n.data.targets.forEach(function(e) { + for (var n = 0; n < t.length; n++) + if (e.id === t[n].id) { + (e.values = t[n].values), t.splice(n, 1); + break; + } + }), + (n.data.targets = n.data.targets.concat(t))), + n.updateTargets(n.data.targets), + n.redraw({ + withUpdateOrgXDomain: !0, + withUpdateXDomain: !0, + withLegend: !0 + }), + e.done && e.done(); + }), + (i.prototype.loadFromArgs = function(t) { + var e = this; + e.resetCache(), + t.data + ? e.load(e.convertDataToTargets(t.data), t) + : t.url + ? e.convertUrlToData( + t.url, + t.mimeType, + t.headers, + t.keys, + function(n) { + e.load(e.convertDataToTargets(n), t); + } + ) + : t.json + ? e.load( + e.convertDataToTargets(e.convertJsonToData(t.json, t.keys)), + t + ) + : t.rows + ? e.load(e.convertDataToTargets(e.convertRowsToData(t.rows)), t) + : t.columns + ? e.load( + e.convertDataToTargets(e.convertColumnsToData(t.columns)), + t + ) + : e.load(null, t); + }), + (i.prototype.unload = function(t, e) { + var n = this; + n.resetCache(), + e || (e = function() {}), + (t = t.filter(function(t) { + return n.hasTarget(n.data.targets, t); + })) && 0 !== t.length + ? (n.svg + .selectAll( + t.map(function(t) { + return n.selectorTarget(t); + }) + ) + .transition() + .style('opacity', 0) + .remove() + .call(n.endall, e), + t.forEach(function(t) { + (n.withoutFadeIn[t] = !1), + n.legend && + n.legend + .selectAll( + '.' + S.legendItem + n.getTargetSelectorSuffix(t) + ) + .remove(), + (n.data.targets = n.data.targets.filter(function(e) { + return e.id !== t; + })); + })) + : e(); + }), + (i.prototype.getYDomainMin = function(t) { + var e, + n, + r, + i, + o, + a, + s = this, + u = s.config, + l = s.mapToIds(t), + c = s.getValuesAsIdKeyed(t); + if (u.data_groups.length > 0) + for ( + a = s.hasNegativeValueInTargets(t), e = 0; + e < u.data_groups.length; + e++ + ) + if ( + 0 !== + (i = u.data_groups[e].filter(function(t) { + return l.indexOf(t) >= 0; + })).length + ) + for ( + r = i[0], + a && + c[r] && + c[r].forEach(function(t, e) { + c[r][e] = t < 0 ? t : 0; + }), + n = 1; + n < i.length; + n++ + ) + (o = i[n]), + c[o] && + c[o].forEach(function(t, e) { + s.axis.getId(o) !== s.axis.getId(r) || + !c[r] || + (a && +t > 0) || + (c[r][e] += +t); + }); + return s.d3.min( + Object.keys(c).map(function(t) { + return s.d3.min(c[t]); + }) + ); + }), + (i.prototype.getYDomainMax = function(t) { + var e, + n, + r, + i, + o, + a, + s = this, + u = s.config, + l = s.mapToIds(t), + c = s.getValuesAsIdKeyed(t); + if (u.data_groups.length > 0) + for ( + a = s.hasPositiveValueInTargets(t), e = 0; + e < u.data_groups.length; + e++ + ) + if ( + 0 !== + (i = u.data_groups[e].filter(function(t) { + return l.indexOf(t) >= 0; + })).length + ) + for ( + r = i[0], + a && + c[r] && + c[r].forEach(function(t, e) { + c[r][e] = t > 0 ? t : 0; + }), + n = 1; + n < i.length; + n++ + ) + (o = i[n]), + c[o] && + c[o].forEach(function(t, e) { + s.axis.getId(o) !== s.axis.getId(r) || + !c[r] || + (a && +t < 0) || + (c[r][e] += +t); + }); + return s.d3.max( + Object.keys(c).map(function(t) { + return s.d3.max(c[t]); + }) + ); + }), + (i.prototype.getYDomain = function(t, e, n) { + var r = this, + i = r.config; + if (r.isAxisNormalized(e)) return [0, 100]; + var o, + a, + s, + l, + c, + f, + d, + h, + p, + g, + m = t.filter(function(t) { + return r.axis.getId(t.id) === e; + }), + v = n ? r.filterByXDomain(m, n) : m, + y = 'y2' === e ? i.axis_y2_min : i.axis_y_min, + x = 'y2' === e ? i.axis_y2_max : i.axis_y_max, + w = r.getYDomainMin(v), + S = r.getYDomainMax(v), + E = 'y2' === e ? i.axis_y2_center : i.axis_y_center, + k = + (r.hasType('bar', v) && i.bar_zerobased) || + (r.hasType('area', v) && i.area_zerobased), + A = 'y2' === e ? i.axis_y2_inverted : i.axis_y_inverted, + T = r.hasDataLabel() && i.axis_rotated, + C = r.hasDataLabel() && !i.axis_rotated; + if ( + ((w = b(y) ? y : b(x) ? (w < x ? w : x - 10) : w), + (S = b(x) ? x : b(y) ? (y < S ? S : y + 10) : S), + 0 === v.length) + ) + return 'y2' === e ? r.y2.domain() : r.y.domain(); + if ( + (isNaN(w) && (w = 0), + isNaN(S) && (S = w), + w === S && (w < 0 ? (S = 0) : (w = 0)), + (p = w >= 0 && S >= 0), + (g = w <= 0 && S <= 0), + ((b(y) && p) || (b(x) && g)) && (k = !1), + k && (p && (w = 0), g && (S = 0)), + (s = l = 0.1 * (a = Math.abs(S - w))), + void 0 !== E && + ((S = E + (c = Math.max(Math.abs(w), Math.abs(S)))), (w = E - c)), + T) + ) + (f = r.getDataLabelLength(w, S, 'width')), + (d = u(r.y.range())), + (s += a * ((h = [f[0] / d, f[1] / d])[1] / (1 - h[0] - h[1]))), + (l += a * (h[0] / (1 - h[0] - h[1]))); + else if (C) { + f = r.getDataLabelLength(w, S, 'height'); + const t = r.getY( + i[`axis_${e}_type`], + [0, i.axis_rotated ? r.width : r.height], + [0, a] + ); + (s += t(f[1])), (l += t(f[0])); + } + return ( + 'y' === e && + _(i.axis_y_padding) && + ((s = r.axis.getPadding(i.axis_y_padding, 'top', s, a)), + (l = r.axis.getPadding(i.axis_y_padding, 'bottom', l, a))), + 'y2' === e && + _(i.axis_y2_padding) && + ((s = r.axis.getPadding(i.axis_y2_padding, 'top', s, a)), + (l = r.axis.getPadding(i.axis_y2_padding, 'bottom', l, a))), + k && (p && (l = w), g && (s = -S)), + (o = [w - l, S + s]), + A ? o.reverse() : o + ); + }), + (i.prototype.getXDomainMin = function(t) { + var e = this, + n = e.config; + return h(n.axis_x_min) + ? e.isTimeSeries() + ? this.parseDate(n.axis_x_min) + : n.axis_x_min + : e.d3.min(t, function(t) { + return e.d3.min(t.values, function(t) { + return t.x; + }); + }); + }), + (i.prototype.getXDomainMax = function(t) { + var e = this, + n = e.config; + return h(n.axis_x_max) + ? e.isTimeSeries() + ? this.parseDate(n.axis_x_max) + : n.axis_x_max + : e.d3.max(t, function(t) { + return e.d3.max(t.values, function(t) { + return t.x; + }); + }); + }), + (i.prototype.getXDomainPadding = function(t) { + var e, + n, + r, + i, + o = this.config, + a = t[1] - t[0]; + return ( + (n = this.isCategorized() + ? 0 + : this.hasType('bar') + ? (e = this.getMaxDataCount()) > 1 + ? a / (e - 1) / 2 + : 0.5 + : 0.01 * a), + 'object' == typeof o.axis_x_padding && _(o.axis_x_padding) + ? ((r = b(o.axis_x_padding.left) ? o.axis_x_padding.left : n), + (i = b(o.axis_x_padding.right) ? o.axis_x_padding.right : n)) + : (r = i = + 'number' == typeof o.axis_x_padding ? o.axis_x_padding : n), + { left: r, right: i } + ); + }), + (i.prototype.getXDomain = function(t) { + var e = this, + n = [e.getXDomainMin(t), e.getXDomainMax(t)], + r = n[0], + i = n[1], + o = e.getXDomainPadding(n), + a = 0, + s = 0; + return ( + r - i != 0 || + e.isCategorized() || + (e.isTimeSeries() + ? ((r = new Date(0.5 * r.getTime())), + (i = new Date(1.5 * i.getTime()))) + : ((r = 0 === r ? 1 : 0.5 * r), (i = 0 === i ? -1 : 1.5 * i))), + (r || 0 === r) && + (a = e.isTimeSeries() + ? new Date(r.getTime() - o.left) + : r - o.left), + (i || 0 === i) && + (s = e.isTimeSeries() + ? new Date(i.getTime() + o.right) + : i + o.right), + [a, s] + ); + }), + (i.prototype.updateXDomain = function(t, e, n, r, i) { + var o = this, + a = o.config; + return ( + n && + (o.x.domain(i || o.d3.extent(o.getXDomain(t))), + (o.orgXDomain = o.x.domain()), + a.zoom_enabled && o.zoom.update(), + o.subX.domain(o.x.domain()), + o.brush && o.brush.updateScale(o.subX)), + e && + o.x.domain( + i || + (!o.brush || o.brush.empty() + ? o.orgXDomain + : o.brush.selectionAsValue()) + ), + r && o.x.domain(o.trimXDomain(o.x.orgDomain())), + o.x.domain() + ); + }), + (i.prototype.trimXDomain = function(t) { + var e = this.getZoomDomain(), + n = e[0], + r = e[1]; + return ( + t[0] <= n && ((t[1] = +t[1] + (n - t[0])), (t[0] = n)), + r <= t[1] && ((t[0] = +t[0] - (t[1] - r)), (t[1] = r)), + t + ); + }), + (i.prototype.drag = function(t) { + var e, + n, + r, + i, + o, + a, + s, + u, + l = this, + f = l.config, + d = l.main, + h = l.d3; + l.hasArcType() || + (f.data_selection_enabled && + f.data_selection_multiple && + ((e = l.dragStart[0]), + (n = l.dragStart[1]), + (r = t[0]), + (i = t[1]), + (o = Math.min(e, r)), + (a = Math.max(e, r)), + (s = f.data_selection_grouped ? l.margin.top : Math.min(n, i)), + (u = f.data_selection_grouped ? l.height : Math.max(n, i)), + d + .select('.' + S.dragarea) + .attr('x', o) + .attr('y', s) + .attr('width', a - o) + .attr('height', u - s), + d + .selectAll('.' + S.shapes) + .selectAll('.' + S.shape) + .filter(function(t) { + return f.data_selection_isselectable(t); + }) + .each(function(t, e) { + var n, + r, + i, + f, + d, + p, + g = h.select(this), + m = g.classed(S.SELECTED), + v = g.classed(S.INCLUDED), + y = !1; + if (g.classed(S.circle)) + (n = 1 * g.attr('cx')), + (r = 1 * g.attr('cy')), + (d = l.togglePoint), + (y = o < n && n < a && s < r && r < u); + else { + if (!g.classed(S.bar)) return; + (n = (p = c(this)).x), + (r = p.y), + (i = p.width), + (f = p.height), + (d = l.togglePath), + (y = !(a < n || n + i < o || u < r || r + f < s)); + } + y ^ v && + (g.classed(S.INCLUDED, !v), + g.classed(S.SELECTED, !m), + d.call(l, !m, g, t, e)); + }))); + }), + (i.prototype.dragstart = function(t) { + var e = this, + n = e.config; + e.hasArcType() || + (n.data_selection_enabled && + ((e.dragStart = t), + e.main + .select('.' + S.chart) + .append('rect') + .attr('class', S.dragarea) + .style('opacity', 0.1), + (e.dragging = !0))); + }), + (i.prototype.dragend = function() { + var t = this, + e = t.config; + t.hasArcType() || + (e.data_selection_enabled && + (t.main + .select('.' + S.dragarea) + .transition() + .duration(100) + .style('opacity', 0) + .remove(), + t.main.selectAll('.' + S.shape).classed(S.INCLUDED, !1), + (t.dragging = !1))); + }), + (i.prototype.getYFormat = function(t) { + var e = this, + n = t && !e.hasType('gauge') ? e.defaultArcValueFormat : e.yFormat, + r = t && !e.hasType('gauge') ? e.defaultArcValueFormat : e.y2Format; + return function(t, i, o) { + return ('y2' === e.axis.getId(o) ? r : n).call(e, t, i); + }; + }), + (i.prototype.yFormat = function(t) { + var e = this.config; + return (e.axis_y_tick_format + ? e.axis_y_tick_format + : this.defaultValueFormat)(t); + }), + (i.prototype.y2Format = function(t) { + var e = this.config; + return (e.axis_y2_tick_format + ? e.axis_y2_tick_format + : this.defaultValueFormat)(t); + }), + (i.prototype.defaultValueFormat = function(t) { + return b(t) ? +t : ''; + }), + (i.prototype.defaultArcValueFormat = function(t, e) { + return (100 * e).toFixed(1) + '%'; + }), + (i.prototype.dataLabelFormat = function(t) { + var e = this.config.data_labels, + n = function(t) { + return b(t) ? +t : ''; + }; + return 'function' == typeof e.format + ? e.format + : 'object' == typeof e.format + ? e.format[t] + ? !0 === e.format[t] + ? n + : e.format[t] + : function() { + return ''; + } + : n; + }), + (i.prototype.initGrid = function() { + var t = this, + e = t.config, + n = t.d3; + (t.grid = t.main + .append('g') + .attr('clip-path', t.clipPathForGrid) + .attr('class', S.grid)), + e.grid_x_show && t.grid.append('g').attr('class', S.xgrids), + e.grid_y_show && t.grid.append('g').attr('class', S.ygrids), + e.grid_focus_show && + t.grid + .append('g') + .attr('class', S.xgridFocus) + .append('line') + .attr('class', S.xgridFocus), + (t.xgrid = n.selectAll([])), + e.grid_lines_front || t.initGridLines(); + }), + (i.prototype.initGridLines = function() { + var t = this, + e = t.d3; + (t.gridLines = t.main + .append('g') + .attr('clip-path', t.clipPathForGrid) + .attr('class', S.grid + ' ' + S.gridLines)), + t.gridLines.append('g').attr('class', S.xgridLines), + t.gridLines.append('g').attr('class', S.ygridLines), + (t.xgridLines = e.selectAll([])); + }), + (i.prototype.updateXGrid = function(t) { + var e = this, + n = e.config, + r = e.d3, + i = e.generateGridData(n.grid_x_type, e.x), + o = e.isCategorized() ? e.xAxis.tickOffset() : 0; + (e.xgridAttr = n.axis_rotated + ? { + x1: 0, + x2: e.width, + y1: function(t) { + return e.x(t) - o; + }, + y2: function(t) { + return e.x(t) - o; + } + } + : { + x1: function(t) { + return e.x(t) + o; + }, + x2: function(t) { + return e.x(t) + o; + }, + y1: 0, + y2: e.height + }), + (e.xgridAttr.opacity = function() { + return +r.select(this).attr(n.axis_rotated ? 'y1' : 'x1') === + (n.axis_rotated ? e.height : 0) + ? 0 + : 1; + }); + var a = e.main + .select('.' + S.xgrids) + .selectAll('.' + S.xgrid) + .data(i), + s = a + .enter() + .append('line') + .attr('class', S.xgrid) + .attr('x1', e.xgridAttr.x1) + .attr('x2', e.xgridAttr.x2) + .attr('y1', e.xgridAttr.y1) + .attr('y2', e.xgridAttr.y2) + .style('opacity', 0); + (e.xgrid = s.merge(a)), + t || + e.xgrid + .attr('x1', e.xgridAttr.x1) + .attr('x2', e.xgridAttr.x2) + .attr('y1', e.xgridAttr.y1) + .attr('y2', e.xgridAttr.y2) + .style('opacity', e.xgridAttr.opacity), + a.exit().remove(); + }), + (i.prototype.updateYGrid = function() { + var t = this, + e = t.config, + n = t.yAxis.tickValues() || t.y.ticks(e.grid_y_ticks), + r = t.main + .select('.' + S.ygrids) + .selectAll('.' + S.ygrid) + .data(n), + i = r + .enter() + .append('line') + .attr('class', S.ygrid); + (t.ygrid = i.merge(r)), + t.ygrid + .attr('x1', e.axis_rotated ? t.y : 0) + .attr('x2', e.axis_rotated ? t.y : t.width) + .attr('y1', e.axis_rotated ? 0 : t.y) + .attr('y2', e.axis_rotated ? t.height : t.y), + r.exit().remove(), + t.smoothLines(t.ygrid, 'grid'); + }), + (i.prototype.gridTextAnchor = function(t) { + return t.position ? t.position : 'end'; + }), + (i.prototype.gridTextDx = function(t) { + return 'start' === t.position ? 4 : 'middle' === t.position ? 0 : -4; + }), + (i.prototype.xGridTextX = function(t) { + return 'start' === t.position + ? -this.height + : 'middle' === t.position + ? -this.height / 2 + : 0; + }), + (i.prototype.yGridTextX = function(t) { + return 'start' === t.position + ? 0 + : 'middle' === t.position + ? this.width / 2 + : this.width; + }), + (i.prototype.updateGrid = function(t) { + var e, + n, + r, + i, + o = this, + a = o.main, + s = o.config, + u = o.xv.bind(o), + l = o.yv.bind(o), + c = o.xGridTextX.bind(o), + f = o.yGridTextX.bind(o); + o.grid.style('visibility', o.hasArcType() ? 'hidden' : 'visible'), + a.select('line.' + S.xgridFocus).style('visibility', 'hidden'), + s.grid_x_show && o.updateXGrid(), + (n = (e = a + .select('.' + S.xgridLines) + .selectAll('.' + S.xgridLine) + .data(s.grid_x_lines)) + .enter() + .append('g') + .attr('class', function(t) { + return S.xgridLine + (t.class ? ' ' + t.class : ''); + })) + .append('line') + .attr('x1', s.axis_rotated ? 0 : u) + .attr('x2', s.axis_rotated ? o.width : u) + .attr('y1', s.axis_rotated ? u : 0) + .attr('y2', s.axis_rotated ? u : o.height) + .style('opacity', 0), + n + .append('text') + .attr('text-anchor', o.gridTextAnchor) + .attr('transform', s.axis_rotated ? '' : 'rotate(-90)') + .attr('x', s.axis_rotated ? f : c) + .attr('y', u) + .attr('dx', o.gridTextDx) + .attr('dy', -5) + .style('opacity', 0), + (o.xgridLines = n.merge(e)), + e + .exit() + .transition() + .duration(t) + .style('opacity', 0) + .remove(), + s.grid_y_show && o.updateYGrid(), + (i = (r = a + .select('.' + S.ygridLines) + .selectAll('.' + S.ygridLine) + .data(s.grid_y_lines)) + .enter() + .append('g') + .attr('class', function(t) { + return S.ygridLine + (t.class ? ' ' + t.class : ''); + })) + .append('line') + .attr('x1', s.axis_rotated ? l : 0) + .attr('x2', s.axis_rotated ? l : o.width) + .attr('y1', s.axis_rotated ? 0 : l) + .attr('y2', s.axis_rotated ? o.height : l) + .style('opacity', 0), + i + .append('text') + .attr('text-anchor', o.gridTextAnchor) + .attr('transform', s.axis_rotated ? 'rotate(-90)' : '') + .attr('x', s.axis_rotated ? c : f) + .attr('y', l) + .attr('dx', o.gridTextDx) + .attr('dy', -5) + .style('opacity', 0), + (o.ygridLines = i.merge(r)), + o.ygridLines + .select('line') + .transition() + .duration(t) + .attr('x1', s.axis_rotated ? l : 0) + .attr('x2', s.axis_rotated ? l : o.width) + .attr('y1', s.axis_rotated ? 0 : l) + .attr('y2', s.axis_rotated ? o.height : l) + .style('opacity', 1), + o.ygridLines + .select('text') + .transition() + .duration(t) + .attr( + 'x', + s.axis_rotated ? o.xGridTextX.bind(o) : o.yGridTextX.bind(o) + ) + .attr('y', l) + .text(function(t) { + return t.text; + }) + .style('opacity', 1), + r + .exit() + .transition() + .duration(t) + .style('opacity', 0) + .remove(); + }), + (i.prototype.redrawGrid = function(t, e) { + var n = this, + r = n.config, + i = n.xv.bind(n), + o = n.xgridLines.select('line'), + a = n.xgridLines.select('text'); + return [ + (t ? o.transition(e) : o) + .attr('x1', r.axis_rotated ? 0 : i) + .attr('x2', r.axis_rotated ? n.width : i) + .attr('y1', r.axis_rotated ? i : 0) + .attr('y2', r.axis_rotated ? i : n.height) + .style('opacity', 1), + (t ? a.transition(e) : a) + .attr( + 'x', + r.axis_rotated ? n.yGridTextX.bind(n) : n.xGridTextX.bind(n) + ) + .attr('y', i) + .text(function(t) { + return t.text; + }) + .style('opacity', 1) + ]; + }), + (i.prototype.showXGridFocus = function(t) { + var e = this, + n = e.config, + r = t.filter(function(t) { + return t && b(t.value); + }), + i = e.main.selectAll('line.' + S.xgridFocus), + o = e.xx.bind(e); + n.tooltip_show && + (e.hasType('stanford') || + e.hasArcType() || + (i + .style('visibility', 'visible') + .data([r[0]]) + .attr(n.axis_rotated ? 'y1' : 'x1', o) + .attr(n.axis_rotated ? 'y2' : 'x2', o), + e.smoothLines(i, 'grid'))); + }), + (i.prototype.hideXGridFocus = function() { + this.main + .select('line.' + S.xgridFocus) + .style('visibility', 'hidden'); + }), + (i.prototype.updateXgridFocus = function() { + var t = this.config; + this.main + .select('line.' + S.xgridFocus) + .attr('x1', t.axis_rotated ? 0 : -10) + .attr('x2', t.axis_rotated ? this.width : -10) + .attr('y1', t.axis_rotated ? -10 : 0) + .attr('y2', t.axis_rotated ? -10 : this.height); + }), + (i.prototype.generateGridData = function(t, e) { + var n, + r, + i, + o, + a = [], + s = this.main + .select('.' + S.axisX) + .selectAll('.tick') + .size(); + if ('year' === t) + for ( + r = (n = this.getXDomain())[0].getFullYear(), + i = n[1].getFullYear(), + o = r; + o <= i; + o++ + ) + a.push(new Date(o + '-01-01 00:00:00')); + else + (a = e.ticks(10)).length > s && + (a = a.filter(function(t) { + return ('' + t).indexOf('.') < 0; + })); + return a; + }), + (i.prototype.getGridFilterToRemove = function(t) { + return t + ? function(e) { + var n = !1; + return ( + [].concat(t).forEach(function(t) { + (('value' in t && e.value === t.value) || + ('class' in t && e.class === t.class)) && + (n = !0); }), - (r.prototype.updateXDomain = function(t, e, n, r, i) { - var o = this, - a = o.config; - return ( + n + ); + } + : function() { + return !0; + }; + }), + (i.prototype.removeGridLines = function(t, e) { + var n = this.config, + r = this.getGridFilterToRemove(t), + i = function(t) { + return !r(t); + }, + o = e ? S.xgridLines : S.ygridLines, + a = e ? S.xgridLine : S.ygridLine; + this.main + .select('.' + o) + .selectAll('.' + a) + .filter(r) + .transition() + .duration(n.transition_duration) + .style('opacity', 0) + .remove(), + e + ? (n.grid_x_lines = n.grid_x_lines.filter(i)) + : (n.grid_y_lines = n.grid_y_lines.filter(i)); + }), + (i.prototype.initEventRect = function() { + var t = this, + e = t.config; + t.main + .select('.' + S.chart) + .append('g') + .attr('class', S.eventRects) + .style('fill-opacity', 0), + (t.eventRect = t.main + .select('.' + S.eventRects) + .append('rect') + .attr('class', S.eventRect)), + e.zoom_enabled && + t.zoom && + (t.eventRect.call(t.zoom).on('dblclick.zoom', null), + e.zoom_initialRange && + t.eventRect + .transition() + .duration(0) + .call( + t.zoom.transform, + t.zoomTransform(e.zoom_initialRange) + )); + }), + (i.prototype.redrawEventRect = function() { + const t = this, + e = t.d3, + n = t.config; + function r() { + t.svg.select('.' + S.eventRect).style('cursor', null), + t.hideXGridFocus(), + t.hideTooltip(), + t.unexpandCircles(), + t.unexpandBars(); + } + const i = (e, r) => + r && (t.isBarType(r.id) || t.dist(r, e) < n.point_sensitivity), + o = e => (e ? t.addName(Object.assign({}, e)) : null); + t.main + .select('.' + S.eventRects) + .style( + 'cursor', + n.zoom_enabled + ? n.axis_rotated + ? 'ns-resize' + : 'ew-resize' + : null + ), + t.eventRect + .attr('x', 0) + .attr('y', 0) + .attr('width', t.width) + .attr('height', t.height) + .on( + 'mouseout', + n.interaction_enabled + ? function() { n && - (o.x.domain(i || o.d3.extent(o.getXDomain(t))), - (o.orgXDomain = o.x.domain()), - a.zoom_enabled && o.zoom.update(), - o.subX.domain(o.x.domain()), - o.brush && o.brush.updateScale(o.subX)), - e && - o.x.domain( - i || - (!o.brush || o.brush.empty() - ? o.orgXDomain - : o.brush.selectionAsValue()) - ), - r && o.x.domain(o.trimXDomain(o.x.orgDomain())), - o.x.domain() + (t.hasArcType() || + (t.mouseover && + (n.data_onmouseout.call(t.api, t.mouseover), + (t.mouseover = void 0)), + r())); + } + : null + ) + .on( + 'mousemove', + n.interaction_enabled + ? function() { + if (t.dragging) return; + const a = t.getTargetsToShow(); + if (t.hasArcType(a)) return; + const s = e.mouse(this), + u = o(t.findClosestFromTargets(a, s)), + l = i(s, u); + let c; + if ( + (!t.mouseover || + (u && + u.id === t.mouseover.id && + u.index === t.mouseover.index) || + (n.data_onmouseout.call(t.api, t.mouseover), + (t.mouseover = void 0)), + u && + !t.mouseover && + (n.data_onmouseover.call(t.api, u), + (t.mouseover = u)), + t.svg + .select('.' + S.eventRect) + .style('cursor', l ? 'pointer' : null), + !n.tooltip_grouped || t.hasType('stanford', a)) + ) + u && (c = [u]); + else { + let e; + if (u) e = u; + else { + const r = n.axis_rotated ? s[1] : s[0]; + e = t.findClosestFromTargetsByX(a, t.x.invert(r)); + } + e && (c = t.filterByX(a, e.x)); + } + if (!c || 0 === c.length) return r(); + (c = c.map(o)), + t.showTooltip(c, this), + n.point_focus_expand_enabled && + (t.unexpandCircles(), + c.forEach(function(e) { + t.expandCircles(e.index, e.id, !1); + })), + t.unexpandBars(), + c.forEach(function(e) { + t.expandBars(e.index, e.id, !1); + }), + t.showXGridFocus(c); + } + : null + ) + .on( + 'click', + n.interaction_enabled + ? function() { + const r = t.getTargetsToShow(); + if (t.hasArcType(r)) return; + const a = e.mouse(this), + s = o(t.findClosestFromTargets(r, a)); + if (!i(a, s)) return; + let u; + if ( + ((u = + !n.data_selection_grouped || t.isStanfordType(s) + ? [s] + : t.filterByX(r, s.x)).forEach(function(e) { + t.main + .selectAll( + '.' + S.shapes + t.getTargetSelectorSuffix(e.id) + ) + .selectAll('.' + S.shape + '-' + e.index) + .each(function() { + (n.data_selection_grouped || + t.isWithinShape(this, e)) && + t.toggleShape(this, e, e.index); + }); + }), + s) + ) { + const e = t.main + .selectAll( + '.' + S.shapes + t.getTargetSelectorSuffix(s.id) + ) + .select('.' + S.shape + '-' + s.index); + n.data_onclick.call(t.api, s, e.node()); + } + } + : null + ) + .call( + n.interaction_enabled && n.data_selection_draggable && t.drag + ? e + .drag() + .on('drag', function() { + t.drag(e.mouse(this)); + }) + .on('start', function() { + t.dragstart(e.mouse(this)); + }) + .on('end', function() { + t.dragend(); + }) + : function() {} + ); + }), + (i.prototype.getMousePosition = function(t) { + return [this.x(t.x), this.getYScale(t.id)(t.value)]; + }), + (i.prototype.dispatchEvent = function(t, e) { + var n = '.' + S.eventRect, + r = this.main.select(n).node(), + i = r.getBoundingClientRect(), + o = i.left + (e ? e[0] : 0), + a = i.top + (e ? e[1] : 0), + s = document.createEvent('MouseEvents'); + s.initMouseEvent( + t, + !0, + !0, + window, + 0, + o, + a, + o, + a, + !1, + !1, + !1, + !1, + 0, + null + ), + r.dispatchEvent(s); + }), + (i.prototype.initLegend = function() { + var t = this; + if ( + ((t.legendItemTextBox = {}), + (t.legendHasRendered = !1), + (t.legend = t.svg + .append('g') + .attr('transform', t.getTranslate('legend'))), + !t.config.legend_show) + ) + return ( + t.legend.style('visibility', 'hidden'), + void (t.hiddenLegendIds = t.mapToIds(t.data.targets)) + ); + t.updateLegendWithDefaults(); + }), + (i.prototype.updateLegendWithDefaults = function() { + this.updateLegend(this.mapToIds(this.data.targets), { + withTransform: !1, + withTransitionForTransform: !1, + withTransition: !1 + }); + }), + (i.prototype.updateSizeForLegend = function(t, e) { + var n = this, + r = n.config, + i = { + top: n.isLegendTop + ? n.getCurrentPaddingTop() + r.legend_inset_y + 5.5 + : n.currentHeight - + t - + n.getCurrentPaddingBottom() - + r.legend_inset_y, + left: n.isLegendLeft + ? n.getCurrentPaddingLeft() + r.legend_inset_x + 0.5 + : n.currentWidth - + e - + n.getCurrentPaddingRight() - + r.legend_inset_x + + 0.5 + }; + n.margin3 = { + top: n.isLegendRight + ? 0 + : n.isLegendInset + ? i.top + : n.currentHeight - t, + right: NaN, + bottom: 0, + left: n.isLegendRight + ? n.currentWidth - e + : n.isLegendInset + ? i.left + : 0 + }; + }), + (i.prototype.transformLegend = function(t) { + (t ? this.legend.transition() : this.legend).attr( + 'transform', + this.getTranslate('legend') + ); + }), + (i.prototype.updateLegendStep = function(t) { + this.legendStep = t; + }), + (i.prototype.updateLegendItemWidth = function(t) { + this.legendItemWidth = t; + }), + (i.prototype.updateLegendItemHeight = function(t) { + this.legendItemHeight = t; + }), + (i.prototype.getLegendWidth = function() { + var t = this; + return t.config.legend_show + ? t.isLegendRight || t.isLegendInset + ? t.legendItemWidth * (t.legendStep + 1) + : t.currentWidth + : 0; + }), + (i.prototype.getLegendHeight = function() { + var t = this, + e = 0; + return ( + t.config.legend_show && + (e = t.isLegendRight + ? t.currentHeight + : Math.max(20, t.legendItemHeight) * (t.legendStep + 1)), + e + ); + }), + (i.prototype.opacityForLegend = function(t) { + return t.classed(S.legendItemHidden) ? null : 1; + }), + (i.prototype.opacityForUnfocusedLegend = function(t) { + return t.classed(S.legendItemHidden) ? null : 0.3; + }), + (i.prototype.toggleFocusLegend = function(t, e) { + var n = this; + (t = n.mapToTargetIds(t)), + n.legend + .selectAll('.' + S.legendItem) + .filter(function(e) { + return t.indexOf(e) >= 0; + }) + .classed(S.legendItemFocused, e) + .transition() + .duration(100) + .style('opacity', function() { + return (e + ? n.opacityForLegend + : n.opacityForUnfocusedLegend + ).call(n, n.d3.select(this)); + }); + }), + (i.prototype.revertLegend = function() { + var t = this, + e = t.d3; + t.legend + .selectAll('.' + S.legendItem) + .classed(S.legendItemFocused, !1) + .transition() + .duration(100) + .style('opacity', function() { + return t.opacityForLegend(e.select(this)); + }); + }), + (i.prototype.showLegend = function(t) { + var e = this, + n = e.config; + n.legend_show || + ((n.legend_show = !0), + e.legend.style('visibility', 'visible'), + e.legendHasRendered || e.updateLegendWithDefaults()), + e.removeHiddenLegendIds(t), + e.legend + .selectAll(e.selectorLegends(t)) + .style('visibility', 'visible') + .transition() + .style('opacity', function() { + return e.opacityForLegend(e.d3.select(this)); + }); + }), + (i.prototype.hideLegend = function(t) { + var e = this, + n = e.config; + n.legend_show && + p(t) && + ((n.legend_show = !1), e.legend.style('visibility', 'hidden')), + e.addHiddenLegendIds(t), + e.legend + .selectAll(e.selectorLegends(t)) + .style('opacity', 0) + .style('visibility', 'hidden'); + }), + (i.prototype.clearLegendItemTextBoxCache = function() { + this.legendItemTextBox = {}; + }), + (i.prototype.updateLegend = function(t, e, n) { + var r, + i, + o, + a, + s, + u, + c, + f, + d, + p, + g, + m, + v, + y, + b, + _, + x = this, + w = x.config, + E = 4, + k = 10, + A = 0, + T = 0, + C = 10, + O = w.legend_item_tile_width + 5, + P = 0, + M = {}, + L = {}, + j = {}, + D = [0], + R = {}, + z = 0; + function N(e, n, r) { + var i, + o, + a = 0 === r, + s = r === t.length - 1, + u = (function(t, e) { + return ( + x.legendItemTextBox[e] || + (x.legendItemTextBox[e] = x.getTextRect( + t.textContent, + S.legendItem, + t + )), + x.legendItemTextBox[e] + ); + })(e, n), + l = + u.width + + O + + (!s || x.isLegendRight || x.isLegendInset ? k : 0) + + w.legend_padding, + c = u.height + E, + f = x.isLegendRight || x.isLegendInset ? c : l, + d = + x.isLegendRight || x.isLegendInset + ? x.getLegendHeight() + : x.getLegendWidth(); + function h(t, e) { + e || + ((i = (d - P - f) / 2) < C && + ((i = (d - f) / 2), (P = 0), z++)), + (R[t] = z), + (D[z] = x.isLegendInset ? 10 : i), + (M[t] = P), + (P += f); + } + a && ((P = 0), (z = 0), (A = 0), (T = 0)), + !w.legend_show || x.isLegendToShow(n) + ? ((L[n] = l), + (j[n] = c), + (!A || l >= A) && (A = l), + (!T || c >= T) && (T = c), + (o = x.isLegendRight || x.isLegendInset ? T : A), + w.legend_equally + ? (Object.keys(L).forEach(function(t) { + L[t] = A; + }), + Object.keys(j).forEach(function(t) { + j[t] = T; + }), + (i = (d - o * t.length) / 2) < C + ? ((P = 0), + (z = 0), + t.forEach(function(t) { + h(t); + })) + : h(n, !0)) + : h(n)) + : (L[n] = j[n] = R[n] = M[n] = 0); + } + (t = t.filter(function(t) { + return !h(w.data_names[t]) || null !== w.data_names[t]; + })), + (g = l((e = e || {}), 'withTransition', !0)), + (m = l(e, 'withTransitionForTransform', !0)), + x.isLegendInset && + ((z = w.legend_inset_step ? w.legend_inset_step : t.length), + x.updateLegendStep(z)), + x.isLegendRight + ? ((r = function(t) { + return A * R[t]; + }), + (a = function(t) { + return D[R[t]] + M[t]; + })) + : x.isLegendInset + ? ((r = function(t) { + return A * R[t] + 10; + }), + (a = function(t) { + return D[R[t]] + M[t]; + })) + : ((r = function(t) { + return D[R[t]] + M[t]; + }), + (a = function(t) { + return T * R[t]; + })), + (i = function(t, e) { + return r(t, e) + 4 + w.legend_item_tile_width; + }), + (s = function(t, e) { + return a(t, e) + 9; + }), + (o = function(t, e) { + return r(t, e); + }), + (u = function(t, e) { + return a(t, e) - 5; + }), + (c = function(t, e) { + return r(t, e) - 2; + }), + (f = function(t, e) { + return r(t, e) - 2 + w.legend_item_tile_width; + }), + (d = function(t, e) { + return a(t, e) + 4; + }), + (p = x.legend + .selectAll('.' + S.legendItem) + .data(t) + .enter() + .append('g') + .attr('class', function(t) { + return x.generateClass(S.legendItem, t); + }) + .style('visibility', function(t) { + return x.isLegendToShow(t) ? 'visible' : 'hidden'; + }) + .style('cursor', 'pointer') + .on('click', function(t) { + w.legend_item_onclick + ? w.legend_item_onclick.call(x, t) + : x.d3.event.altKey + ? (x.api.hide(), x.api.show(t)) + : (x.api.toggle(t), + x.isTargetToShow(t) ? x.api.focus(t) : x.api.revert()); + }) + .on('mouseover', function(t) { + w.legend_item_onmouseover + ? w.legend_item_onmouseover.call(x, t) + : (x.d3.select(this).classed(S.legendItemFocused, !0), + !x.transiting && x.isTargetToShow(t) && x.api.focus(t)); + }) + .on('mouseout', function(t) { + w.legend_item_onmouseout + ? w.legend_item_onmouseout.call(x, t) + : (x.d3.select(this).classed(S.legendItemFocused, !1), + x.api.revert()); + })) + .append('text') + .text(function(t) { + return h(w.data_names[t]) ? w.data_names[t] : t; + }) + .each(function(t, e) { + N(this, t, e); + }) + .style('pointer-events', 'none') + .attr('x', x.isLegendRight || x.isLegendInset ? i : -200) + .attr('y', x.isLegendRight || x.isLegendInset ? -200 : s), + p + .append('rect') + .attr('class', S.legendItemEvent) + .style('fill-opacity', 0) + .attr('x', x.isLegendRight || x.isLegendInset ? o : -200) + .attr('y', x.isLegendRight || x.isLegendInset ? -200 : u), + p + .append('line') + .attr('class', S.legendItemTile) + .style('stroke', x.color) + .style('pointer-events', 'none') + .attr('x1', x.isLegendRight || x.isLegendInset ? c : -200) + .attr('y1', x.isLegendRight || x.isLegendInset ? -200 : d) + .attr('x2', x.isLegendRight || x.isLegendInset ? f : -200) + .attr('y2', x.isLegendRight || x.isLegendInset ? -200 : d) + .attr('stroke-width', w.legend_item_tile_height), + (_ = x.legend.select('.' + S.legendBackground + ' rect')), + x.isLegendInset && + A > 0 && + 0 === _.size() && + (_ = x.legend + .insert('g', '.' + S.legendItem) + .attr('class', S.legendBackground) + .append('rect')), + (v = x.legend + .selectAll('text') + .data(t) + .text(function(t) { + return h(w.data_names[t]) ? w.data_names[t] : t; + }) + .each(function(t, e) { + N(this, t, e); + })), + (g ? v.transition() : v).attr('x', i).attr('y', s), + (y = x.legend.selectAll('rect.' + S.legendItemEvent).data(t)), + (g ? y.transition() : y) + .attr('width', function(t) { + return L[t]; + }) + .attr('height', function(t) { + return j[t]; + }) + .attr('x', o) + .attr('y', u), + (b = x.legend.selectAll('line.' + S.legendItemTile).data(t)), + (g ? b.transition() : b) + .style( + 'stroke', + x.levelColor + ? function(t) { + return x.levelColor(x.cache[t].values[0].value); + } + : x.color + ) + .attr('x1', c) + .attr('y1', d) + .attr('x2', f) + .attr('y2', d), + _ && + (g ? _.transition() : _) + .attr('height', x.getLegendHeight() - 12) + .attr('width', A * (z + 1) + 10), + x.legend + .selectAll('.' + S.legendItem) + .classed(S.legendItemHidden, function(t) { + return !x.isTargetToShow(t); + }), + x.updateLegendItemWidth(A), + x.updateLegendItemHeight(T), + x.updateLegendStep(z), + x.updateSizes(), + x.updateScales(), + x.updateSvgSize(), + x.transformAll(m, n), + (x.legendHasRendered = !0); + }), + (i.prototype.initRegion = function() { + this.region = this.main + .append('g') + .attr('clip-path', this.clipPath) + .attr('class', S.regions); + }), + (i.prototype.updateRegion = function(t) { + var e = this, + n = e.config; + e.region.style('visibility', e.hasArcType() ? 'hidden' : 'visible'); + var r = e.main + .select('.' + S.regions) + .selectAll('.' + S.region) + .data(n.regions), + i = r.enter().append('g'); + i + .append('rect') + .attr('x', e.regionX.bind(e)) + .attr('y', e.regionY.bind(e)) + .attr('width', e.regionWidth.bind(e)) + .attr('height', e.regionHeight.bind(e)) + .style('fill-opacity', function(t) { + return b(t.opacity) ? t.opacity : 0.1; + }), + i.append('text').text(e.labelRegion.bind(e)), + (e.mainRegion = i.merge(r).attr('class', e.classRegion.bind(e))), + r + .exit() + .transition() + .duration(t) + .style('opacity', 0) + .remove(); + }), + (i.prototype.redrawRegion = function(t, e) { + var n = this, + r = n.mainRegion, + i = n.mainRegion.selectAll('text'); + return [ + (t ? r.transition(e) : r) + .attr('x', n.regionX.bind(n)) + .attr('y', n.regionY.bind(n)) + .attr('width', n.regionWidth.bind(n)) + .attr('height', n.regionHeight.bind(n)) + .style('fill-opacity', function(t) { + return b(t.opacity) ? t.opacity : 0.1; + }), + (t ? i.transition(e) : i) + .attr('x', n.labelOffsetX.bind(n)) + .attr('y', n.labelOffsetY.bind(n)) + .attr('transform', n.labelTransform.bind(n)) + .attr('style', 'text-anchor: left;') + ]; + }), + (i.prototype.regionX = function(t) { + var e = this, + n = e.config, + r = 'y' === t.axis ? e.y : e.y2; + return 'y' === t.axis || 'y2' === t.axis + ? n.axis_rotated && 'start' in t + ? r(t.start) + : 0 + : n.axis_rotated + ? 0 + : 'start' in t + ? e.x(e.isTimeSeries() ? e.parseDate(t.start) : t.start) + : 0; + }), + (i.prototype.regionY = function(t) { + var e = this, + n = e.config, + r = 'y' === t.axis ? e.y : e.y2; + return 'y' === t.axis || 'y2' === t.axis + ? n.axis_rotated + ? 0 + : 'end' in t + ? r(t.end) + : 0 + : n.axis_rotated && 'start' in t + ? e.x(e.isTimeSeries() ? e.parseDate(t.start) : t.start) + : 0; + }), + (i.prototype.regionWidth = function(t) { + var e, + n = this, + r = n.config, + i = n.regionX(t), + o = 'y' === t.axis ? n.y : n.y2; + return (e = + 'y' === t.axis || 'y2' === t.axis + ? r.axis_rotated && 'end' in t + ? o(t.end) + : n.width + : r.axis_rotated + ? n.width + : 'end' in t + ? n.x(n.isTimeSeries() ? n.parseDate(t.end) : t.end) + : n.width) < i + ? 0 + : e - i; + }), + (i.prototype.regionHeight = function(t) { + var e, + n = this, + r = n.config, + i = this.regionY(t), + o = 'y' === t.axis ? n.y : n.y2; + return (e = + 'y' === t.axis || 'y2' === t.axis + ? r.axis_rotated + ? n.height + : 'start' in t + ? o(t.start) + : n.height + : r.axis_rotated && 'end' in t + ? n.x(n.isTimeSeries() ? n.parseDate(t.end) : t.end) + : n.height) < i + ? 0 + : e - i; + }), + (i.prototype.isRegionOnX = function(t) { + return !t.axis || 'x' === t.axis; + }), + (i.prototype.labelRegion = function(t) { + return 'label' in t ? t.label : ''; + }), + (i.prototype.labelTransform = function(t) { + return 'vertical' in t && t.vertical ? 'rotate(90)' : ''; + }), + (i.prototype.labelOffsetX = function(t) { + var e = 'paddingX' in t ? t.paddingX : 3, + n = 'paddingY' in t ? t.paddingY : 3; + return 'vertical' in t && t.vertical + ? this.regionY(t) + n + : this.regionX(t) + e; + }), + (i.prototype.labelOffsetY = function(t) { + var e = 'paddingX' in t ? t.paddingX : 3, + n = 'paddingY' in t ? t.paddingY : 3; + return 'vertical' in t && t.vertical + ? -(this.regionX(t) + e) + : this.regionY(t) + 10 + n; + }), + (i.prototype.getScale = function(t, e, n) { + return (n ? this.d3.scaleTime() : this.d3.scaleLinear()).range([ + t, + e + ]); + }), + (i.prototype.getX = function(t, e, n, r) { + var i, + o = this.getScale(t, e, this.isTimeSeries()), + a = n ? o.domain(n) : o; + for (i in (this.isCategorized() + ? ((r = + r || + function() { + return 0; + }), + (o = function(t, e) { + var n = a(t) + r(t); + return e ? n : Math.ceil(n); + })) + : (o = function(t, e) { + var n = a(t); + return e ? n : Math.ceil(n); + }), + a)) + o[i] = a[i]; + return ( + (o.orgDomain = function() { + return a.domain(); + }), + this.isCategorized() && + (o.domain = function(t) { + return arguments.length + ? (a.domain(t), o) + : [(t = this.orgDomain())[0], t[1] + 1]; + }), + o + ); + }), + (i.prototype.getY = function(t, e, n) { + let r; + if ('timeseries' === t || 'time' === t) r = this.d3.scaleTime(); + else if ('log' === t) r = A(this.d3); + else { + if ('linear' !== t && void 0 !== t) + throw new Error(`Invalid Y axis type: "${t}"`); + r = this.d3.scaleLinear(); + } + return e && r.domain(e), n && r.range(n), r; + }), + (i.prototype.getYScale = function(t) { + return 'y2' === this.axis.getId(t) ? this.y2 : this.y; + }), + (i.prototype.getSubYScale = function(t) { + return 'y2' === this.axis.getId(t) ? this.subY2 : this.subY; + }), + (i.prototype.updateScales = function() { + var t = this, + e = t.config, + n = !t.x; + (t.xMin = e.axis_rotated ? 1 : 0), + (t.xMax = e.axis_rotated ? t.height : t.width), + (t.yMin = e.axis_rotated ? 0 : t.height), + (t.yMax = e.axis_rotated ? t.width : 1), + (t.subXMin = t.xMin), + (t.subXMax = t.xMax), + (t.subYMin = e.axis_rotated ? 0 : t.height2), + (t.subYMax = e.axis_rotated ? t.width2 : 1), + (t.x = t.getX( + t.xMin, + t.xMax, + n ? void 0 : t.x.orgDomain(), + function() { + return t.xAxis.tickOffset(); + } + )), + (t.y = t.getY(e.axis_y_type, n ? e.axis_y_default : t.y.domain(), [ + t.yMin, + t.yMax + ])), + (t.y2 = t.getY( + e.axis_y2_type, + n ? e.axis_y2_default : t.y2.domain(), + [t.yMin, t.yMax] + )), + (t.subX = t.getX(t.xMin, t.xMax, t.orgXDomain, function(e) { + return e % 1 ? 0 : t.subXAxis.tickOffset(); + })), + (t.subY = t.getY( + e.axis_y_type, + n ? e.axis_y_default : t.subY.domain(), + [t.subYMin, t.subYMax] + )), + (t.subY2 = t.getY( + e.axis_y2_type, + n ? e.axis_y2_default : t.subY2.domain(), + [t.subYMin, t.subYMax] + )), + (t.xAxisTickFormat = t.axis.getXAxisTickFormat()), + (t.xAxisTickValues = t.axis.getXAxisTickValues()), + (t.yAxisTickValues = t.axis.getYAxisTickValues()), + (t.y2AxisTickValues = t.axis.getY2AxisTickValues()), + (t.xAxis = t.axis.getXAxis( + t.x, + t.xOrient, + t.xAxisTickFormat, + t.xAxisTickValues, + e.axis_x_tick_outer + )), + (t.subXAxis = t.axis.getXAxis( + t.subX, + t.subXOrient, + t.xAxisTickFormat, + t.xAxisTickValues, + e.axis_x_tick_outer + )), + (t.yAxis = t.axis.getYAxis( + 'y', + t.y, + t.yOrient, + t.yAxisTickValues, + e.axis_y_tick_outer + )), + (t.y2Axis = t.axis.getYAxis( + 'y2', + t.y2, + t.y2Orient, + t.y2AxisTickValues, + e.axis_y2_tick_outer + )), + n || (t.brush && t.brush.updateScale(t.subX)), + t.updateArc && t.updateArc(); + }), + (i.prototype.selectPoint = function(t, e, n) { + var r = this, + i = r.config, + o = (i.axis_rotated ? r.circleY : r.circleX).bind(r), + a = (i.axis_rotated ? r.circleX : r.circleY).bind(r), + s = r.pointSelectR.bind(r); + i.data_onselected.call(r.api, e, t.node()), + r.main + .select('.' + S.selectedCircles + r.getTargetSelectorSuffix(e.id)) + .selectAll('.' + S.selectedCircle + '-' + n) + .data([e]) + .enter() + .append('circle') + .attr('class', function() { + return r.generateClass(S.selectedCircle, n); + }) + .attr('cx', o) + .attr('cy', a) + .attr('stroke', function() { + return r.color(e); + }) + .attr('r', function(t) { + return 1.4 * r.pointSelectR(t); + }) + .transition() + .duration(100) + .attr('r', s); + }), + (i.prototype.unselectPoint = function(t, e, n) { + this.config.data_onunselected.call(this.api, e, t.node()), + this.main + .select( + '.' + S.selectedCircles + this.getTargetSelectorSuffix(e.id) + ) + .selectAll('.' + S.selectedCircle + '-' + n) + .transition() + .duration(100) + .attr('r', 0) + .remove(); + }), + (i.prototype.togglePoint = function(t, e, n, r) { + t ? this.selectPoint(e, n, r) : this.unselectPoint(e, n, r); + }), + (i.prototype.selectPath = function(t, e) { + var n = this; + n.config.data_onselected.call(n, e, t.node()), + n.config.interaction_brighten && + t + .transition() + .duration(100) + .style('fill', function() { + return n.d3.rgb(n.color(e)).brighter(0.75); + }); + }), + (i.prototype.unselectPath = function(t, e) { + var n = this; + n.config.data_onunselected.call(n, e, t.node()), + n.config.interaction_brighten && + t + .transition() + .duration(100) + .style('fill', function() { + return n.color(e); + }); + }), + (i.prototype.togglePath = function(t, e, n, r) { + t ? this.selectPath(e, n, r) : this.unselectPath(e, n, r); + }), + (i.prototype.getToggle = function(t, e) { + var n; + return ( + 'circle' === t.nodeName + ? (n = this.isStepType(e) ? function() {} : this.togglePoint) + : 'path' === t.nodeName && (n = this.togglePath), + n + ); + }), + (i.prototype.toggleShape = function(t, e, n) { + var r = this, + i = r.d3, + o = r.config, + a = i.select(t), + s = a.classed(S.SELECTED), + u = r.getToggle(t, e).bind(r); + o.data_selection_enabled && + o.data_selection_isselectable(e) && + (o.data_selection_multiple || + r.main + .selectAll( + '.' + + S.shapes + + (o.data_selection_grouped + ? r.getTargetSelectorSuffix(e.id) + : '') + ) + .selectAll('.' + S.shape) + .each(function(t, e) { + var n = i.select(this); + n.classed(S.SELECTED) && + u(!1, n.classed(S.SELECTED, !1), t, e); + }), + a.classed(S.SELECTED, !s), + u(!s, a, e, n)); + }), + (i.prototype.initBar = function() { + this.main + .select('.' + S.chart) + .append('g') + .attr('class', S.chartBars); + }), + (i.prototype.updateTargetsForBar = function(t) { + var e = this, + n = e.config, + r = e.classChartBar.bind(e), + i = e.classBars.bind(e), + o = e.classFocus.bind(e); + e.main + .select('.' + S.chartBars) + .selectAll('.' + S.chartBar) + .data(t) + .attr('class', function(t) { + return r(t) + o(t); + }) + .enter() + .append('g') + .attr('class', r) + .style('pointer-events', 'none') + .append('g') + .attr('class', i) + .style('cursor', function(t) { + return n.data_selection_isselectable(t) ? 'pointer' : null; + }); + }), + (i.prototype.updateBar = function(t) { + var e = this, + n = e.barData.bind(e), + r = e.classBar.bind(e), + i = e.initialOpacity.bind(e), + o = function(t) { + return e.color(t.id); + }, + a = e.main + .selectAll('.' + S.bars) + .selectAll('.' + S.bar) + .data(n), + s = a + .enter() + .append('path') + .attr('class', r) + .style('stroke', o) + .style('fill', o); + (e.mainBar = s.merge(a).style('opacity', i)), + a + .exit() + .transition() + .duration(t) + .style('opacity', 0); + }), + (i.prototype.redrawBar = function(t, e, n) { + const r = this; + return [ + (e ? this.mainBar.transition(n) : this.mainBar) + .attr('d', t) + .style('stroke', this.color) + .style('fill', this.color) + .style('opacity', t => (r.isTargetToShow(t.id) ? 1 : 0)) + ]; + }), + (i.prototype.getBarW = function(t, e) { + var n = this.config, + r = + 'number' == typeof n.bar_width + ? n.bar_width + : e + ? (t.tickInterval() * n.bar_width_ratio) / e + : 0; + return n.bar_width_max && r > n.bar_width_max ? n.bar_width_max : r; + }), + (i.prototype.getBars = function(t, e) { + return (e + ? this.main.selectAll( + '.' + S.bars + this.getTargetSelectorSuffix(e) + ) + : this.main + ).selectAll('.' + S.bar + (b(t) ? '-' + t : '')); + }), + (i.prototype.expandBars = function(t, e, n) { + n && this.unexpandBars(), this.getBars(t, e).classed(S.EXPANDED, !0); + }), + (i.prototype.unexpandBars = function(t) { + this.getBars(t).classed(S.EXPANDED, !1); + }), + (i.prototype.generateDrawBar = function(t, e) { + var n = this.config, + r = this.generateGetBarPoints(t, e); + return function(t, e) { + var i = r(t, e), + o = n.axis_rotated ? 1 : 0, + a = n.axis_rotated ? 0 : 1; + return ( + 'M ' + + i[0][o] + + ',' + + i[0][a] + + ' L' + + i[1][o] + + ',' + + i[1][a] + + ' L' + + i[2][o] + + ',' + + i[2][a] + + ' L' + + i[3][o] + + ',' + + i[3][a] + + ' z' + ); + }; + }), + (i.prototype.generateGetBarPoints = function(t, e) { + var n = this, + r = e ? n.subXAxis : n.xAxis, + i = t.__max__ + 1, + o = n.getBarW(r, i), + a = n.getShapeX(o, i, t, !!e), + s = n.getShapeY(!!e), + u = n.getShapeOffset(n.isBarType, t, !!e), + l = o * (n.config.bar_space / 2), + c = e ? n.getSubYScale : n.getYScale; + return function(t, e) { + var r = c.call(n, t.id)(0), + i = u(t, e) || r, + f = a(t), + d = s(t); + return ( + n.config.axis_rotated && + ((0 < t.value && d < r) || (t.value < 0 && r < d)) && + (d = r), + [ + [f + l, i], + [f + l, (d -= r - i)], + [f + o - l, d], + [f + o - l, i] + ] + ); + }; + }), + (i.prototype.isWithinBar = function(t, e) { + return (function(t, e, n = 0) { + const r = e.x - n, + i = e.x + e.width + n, + o = e.y + e.height + n, + a = e.y - n; + return r < t[0] && t[0] < i && a < t[1] && t[1] < o; + })(t, f(e), 2); + }), + (i.prototype.getShapeIndices = function(t) { + var e, + n, + r = this.config, + i = {}, + o = 0; + return ( + this.filterTargetsToShow(this.data.targets.filter(t, this)).forEach( + function(t) { + for (e = 0; e < r.data_groups.length; e++) + if (!(r.data_groups[e].indexOf(t.id) < 0)) + for (n = 0; n < r.data_groups[e].length; n++) + if (r.data_groups[e][n] in i) { + i[t.id] = i[r.data_groups[e][n]]; + break; + } + y(i[t.id]) && (i[t.id] = o++); + } + ), + (i.__max__ = o - 1), + i + ); + }), + (i.prototype.getShapeX = function(t, e, n, r) { + var i = r ? this.subX : this.x; + return function(r) { + var o = r.id in n ? n[r.id] : 0; + return r.x || 0 === r.x ? i(r.x) - t * (e / 2 - o) : 0; + }; + }), + (i.prototype.getShapeY = function(t) { + const e = this; + return function(n) { + return (t ? e.getSubYScale(n.id) : e.getYScale(n.id))( + e.isTargetNormalized(n.id) ? e.getRatio('index', n, !0) : n.value + ); + }; + }), + (i.prototype.getShapeOffset = function(t, e, n) { + var r = this, + i = r.orderTargets( + r.filterTargetsToShow(r.data.targets.filter(t, r)) + ), + o = i.map(function(t) { + return t.id; + }); + return function(t, a) { + var s = n ? r.getSubYScale(t.id) : r.getYScale(t.id), + u = s(0), + l = u; + return ( + i.forEach(function(n) { + const i = r.isStepType(t) + ? r.convertValuesToStep(n.values) + : n.values, + c = r.isTargetNormalized(t.id), + f = i.map(t => (c ? r.getRatio('index', t, !0) : t.value)); + n.id !== t.id && + e[n.id] === e[t.id] && + o.indexOf(n.id) < o.indexOf(t.id) && + ((y(i[a]) || +i[a].x != +t.x) && + ((a = -1), + i.forEach(function(e, n) { + (e.x.constructor === Date ? +e.x : e.x) === + (t.x.constructor === Date ? +t.x : t.x) && (a = n); + })), + a in i && i[a].value * t.value >= 0 && (l += s(f[a]) - u)); + }), + l + ); + }; + }), + (i.prototype.isWithinShape = function(t, e) { + var n, + r = this, + i = r.d3.select(t); + return ( + r.isTargetToShow(e.id) + ? 'circle' === t.nodeName + ? (n = r.isStepType(e) + ? r.isWithinStep(t, r.getYScale(e.id)(e.value)) + : r.isWithinCircle(t, 1.5 * r.pointSelectR(e))) + : 'path' === t.nodeName && + (n = !i.classed(S.bar) || r.isWithinBar(r.d3.mouse(t), t)) + : (n = !1), + n + ); + }), + (i.prototype.getInterpolate = function(t) { + var e = this, + n = e.d3, + r = { + linear: n.curveLinear, + 'linear-closed': n.curveLinearClosed, + basis: n.curveBasis, + 'basis-open': n.curveBasisOpen, + 'basis-closed': n.curveBasisClosed, + bundle: n.curveBundle, + cardinal: n.curveCardinal, + 'cardinal-open': n.curveCardinalOpen, + 'cardinal-closed': n.curveCardinalClosed, + monotone: n.curveMonotoneX, + step: n.curveStep, + 'step-before': n.curveStepBefore, + 'step-after': n.curveStepAfter + }; + return e.isSplineType(t) + ? r[e.config.spline_interpolation_type] || r.cardinal + : e.isStepType(t) + ? r[e.config.line_step_type] + : r.linear; + }), + (i.prototype.initLine = function() { + this.main + .select('.' + S.chart) + .append('g') + .attr('class', S.chartLines); + }), + (i.prototype.updateTargetsForLine = function(t) { + var e, + n = this, + r = n.config, + i = n.classChartLine.bind(n), + o = n.classLines.bind(n), + a = n.classAreas.bind(n), + s = n.classCircles.bind(n), + u = n.classFocus.bind(n); + (e = n.main + .select('.' + S.chartLines) + .selectAll('.' + S.chartLine) + .data(t) + .attr('class', function(t) { + return i(t) + u(t); + }) + .enter() + .append('g') + .attr('class', i) + .style('opacity', 0) + .style('pointer-events', 'none')) + .append('g') + .attr('class', o), + e.append('g').attr('class', a), + e.append('g').attr('class', function(t) { + return n.generateClass(S.selectedCircles, t.id); + }), + e + .append('g') + .attr('class', s) + .style('cursor', function(t) { + return r.data_selection_isselectable(t) ? 'pointer' : null; + }), + t.forEach(function(t) { + n.main + .selectAll( + '.' + S.selectedCircles + n.getTargetSelectorSuffix(t.id) + ) + .selectAll('.' + S.selectedCircle) + .each(function(e) { + e.value = t.values[e.index].value; + }); + }); + }), + (i.prototype.updateLine = function(t) { + var e = this, + n = e.main + .selectAll('.' + S.lines) + .selectAll('.' + S.line) + .data(e.lineData.bind(e)), + r = n + .enter() + .append('path') + .attr('class', e.classLine.bind(e)) + .style('stroke', e.color); + (e.mainLine = r + .merge(n) + .style('opacity', e.initialOpacity.bind(e)) + .style('shape-rendering', function(t) { + return e.isStepType(t) ? 'crispEdges' : ''; + }) + .attr('transform', null)), + n + .exit() + .transition() + .duration(t) + .style('opacity', 0); + }), + (i.prototype.redrawLine = function(t, e, n) { + return [ + (e ? this.mainLine.transition(n) : this.mainLine) + .attr('d', t) + .style('stroke', this.color) + .style('opacity', 1) + ]; + }), + (i.prototype.generateDrawLine = function(t, e) { + var n = this, + r = n.config, + i = n.d3.line(), + o = n.generateGetLinePoints(t, e), + a = e ? n.getSubYScale : n.getYScale, + s = function(t) { + return (e ? n.subxx : n.xx).call(n, t); + }, + u = function(t, e) { + return r.data_groups.length > 0 + ? o(t, e)[0][1] + : a.call(n, t.id)(t.value); + }; + return ( + (i = r.axis_rotated ? i.x(u).y(s) : i.x(s).y(u)), + r.line_connectNull || + (i = i.defined(function(t) { + return null != t.value; + })), + function(t) { + var o, + s = r.line_connectNull + ? n.filterRemoveNull(t.values) + : t.values, + u = e ? n.subX : n.x, + l = a.call(n, t.id), + c = 0, + f = 0; + return ( + n.isLineType(t) + ? r.data_regions[t.id] + ? (o = n.lineWithRegions(s, u, l, r.data_regions[t.id])) + : (n.isStepType(t) && (s = n.convertValuesToStep(s)), + (o = i.curve(n.getInterpolate(t))(s))) + : (s[0] && ((c = u(s[0].x)), (f = l(s[0].value))), + (o = r.axis_rotated + ? 'M ' + f + ' ' + c + : 'M ' + c + ' ' + f)), + o || 'M 0 0' + ); + } + ); + }), + (i.prototype.generateGetLinePoints = function(t, e) { + var n = this, + r = n.config, + i = t.__max__ + 1, + o = n.getShapeX(0, i, t, !!e), + a = n.getShapeY(!!e), + s = n.getShapeOffset(n.isLineType, t, !!e), + u = e ? n.getSubYScale : n.getYScale; + return function(t, e) { + var i = u.call(n, t.id)(0), + l = s(t, e) || i, + c = o(t), + f = a(t); + return ( + r.axis_rotated && + ((0 < t.value && f < i) || (t.value < 0 && i < f)) && + (f = i), + [ + [c, f - (i - l)], + [c, f - (i - l)], + [c, f - (i - l)], + [c, f - (i - l)] + ] + ); + }; + }), + (i.prototype.lineWithRegions = function(t, e, n, r) { + var i, + o, + a, + s, + u, + l, + c, + f, + d, + p, + g, + m = this, + v = m.config, + b = 'M', + _ = m.isCategorized() ? 0.5 : 0, + x = []; + function w(t, e) { + var n; + for (n = 0; n < e.length; n++) + if (e[n].start < t && t <= e[n].end) return !0; + return !1; + } + if (h(r)) + for (i = 0; i < r.length; i++) + (x[i] = {}), + y(r[i].start) + ? (x[i].start = t[0].x) + : (x[i].start = m.isTimeSeries() + ? m.parseDate(r[i].start) + : r[i].start), + y(r[i].end) + ? (x[i].end = t[t.length - 1].x) + : (x[i].end = m.isTimeSeries() + ? m.parseDate(r[i].end) + : r[i].end); + function S(t) { + return ( + 'M' + t[0][0] + ' ' + t[0][1] + ' ' + t[1][0] + ' ' + t[1][1] + ); + } + for ( + p = v.axis_rotated + ? function(t) { + return n(t.value); + } + : function(t) { + return e(t.x); + }, + g = v.axis_rotated + ? function(t) { + return e(t.x); + } + : function(t) { + return n(t.value); + }, + a = m.isTimeSeries() + ? function(t, r, i, o) { + var a = t.x.getTime(), + s = r.x - t.x, + l = new Date(a + s * i), + c = new Date(a + s * (i + o)); + return S( + v.axis_rotated + ? [[n(u(i)), e(l)], [n(u(i + o)), e(c)]] + : [[e(l), n(u(i))], [e(c), n(u(i + o))]] ); - }), - (r.prototype.trimXDomain = function(t) { - var e = this.getZoomDomain(), - n = e[0], - r = e[1]; - return ( - t[0] <= n && ((t[1] = +t[1] + (n - t[0])), (t[0] = n)), - r <= t[1] && ((t[0] = +t[0] - (t[1] - r)), (t[1] = r)), - t + } + : function(t, r, i, o) { + return S( + v.axis_rotated + ? [ + [n(u(i), !0), e(s(i))], + [n(u(i + o), !0), e(s(i + o))] + ] + : [ + [e(s(i), !0), n(u(i))], + [e(s(i + o), !0), n(u(i + o))] + ] ); + }, + i = 0; + i < t.length; + i++ + ) { + if (y(x) || !w(t[i].x, x)) b += ' ' + p(t[i]) + ' ' + g(t[i]); + else + for ( + s = m.getScale(t[i - 1].x + _, t[i].x + _, m.isTimeSeries()), + u = m.getScale(t[i - 1].value, t[i].value), + l = e(t[i].x) - e(t[i - 1].x), + c = n(t[i].value) - n(t[i - 1].value), + d = 2 * (f = 2 / Math.sqrt(Math.pow(l, 2) + Math.pow(c, 2))), + o = f; + o <= 1; + o += d + ) + b += a(t[i - 1], t[i], o, f); + t[i].x; + } + return b; + }), + (i.prototype.updateArea = function(t) { + var e = this, + n = e.d3, + r = e.main + .selectAll('.' + S.areas) + .selectAll('.' + S.area) + .data(e.lineData.bind(e)), + i = r + .enter() + .append('path') + .attr('class', e.classArea.bind(e)) + .style('fill', e.color) + .style('opacity', function() { + return (e.orgAreaOpacity = +n.select(this).style('opacity')), 0; + }); + (e.mainArea = i.merge(r).style('opacity', e.orgAreaOpacity)), + r + .exit() + .transition() + .duration(t) + .style('opacity', 0); + }), + (i.prototype.redrawArea = function(t, e, n) { + return [ + (e ? this.mainArea.transition(n) : this.mainArea) + .attr('d', t) + .style('fill', this.color) + .style('opacity', this.orgAreaOpacity) + ]; + }), + (i.prototype.generateDrawArea = function(t, e) { + var n = this, + r = n.config, + i = n.d3.area(), + o = n.generateGetAreaPoints(t, e), + a = e ? n.getSubYScale : n.getYScale, + s = function(t) { + return (e ? n.subxx : n.xx).call(n, t); + }, + u = function(t, e) { + return r.data_groups.length > 0 + ? o(t, e)[0][1] + : a.call(n, t.id)(n.getAreaBaseValue(t.id)); + }, + l = function(t, e) { + return r.data_groups.length > 0 + ? o(t, e)[1][1] + : a.call(n, t.id)(t.value); + }; + return ( + (i = r.axis_rotated + ? i + .x0(u) + .x1(l) + .y(s) + : i + .x(s) + .y0(r.area_above ? 0 : u) + .y1(l)), + r.line_connectNull || + (i = i.defined(function(t) { + return null !== t.value; + })), + function(t) { + var e, + o = r.line_connectNull + ? n.filterRemoveNull(t.values) + : t.values, + a = 0, + s = 0; + return ( + n.isAreaType(t) + ? (n.isStepType(t) && (o = n.convertValuesToStep(o)), + (e = i.curve(n.getInterpolate(t))(o))) + : (o[0] && + ((a = n.x(o[0].x)), (s = n.getYScale(t.id)(o[0].value))), + (e = r.axis_rotated + ? 'M ' + s + ' ' + a + : 'M ' + a + ' ' + s)), + e || 'M 0 0' + ); + } + ); + }), + (i.prototype.getAreaBaseValue = function() { + return 0; + }), + (i.prototype.generateGetAreaPoints = function(t, e) { + var n = this, + r = n.config, + i = t.__max__ + 1, + o = n.getShapeX(0, i, t, !!e), + a = n.getShapeY(!!e), + s = n.getShapeOffset(n.isAreaType, t, !!e), + u = e ? n.getSubYScale : n.getYScale; + return function(t, e) { + var i = u.call(n, t.id)(0), + l = s(t, e) || i, + c = o(t), + f = a(t); + return ( + r.axis_rotated && + ((0 < t.value && f < i) || (t.value < 0 && i < f)) && + (f = i), + [[c, l], [c, f - (i - l)], [c, f - (i - l)], [c, l]] + ); + }; + }), + (i.prototype.updateCircle = function(t, e) { + var n = this, + r = n.main + .selectAll('.' + S.circles) + .selectAll('.' + S.circle) + .data(n.lineOrScatterOrStanfordData.bind(n)), + i = r + .enter() + .append('circle') + .attr( + 'shape-rendering', + n.isStanfordGraphType() ? 'crispEdges' : '' + ) + .attr('class', n.classCircle.bind(n)) + .attr('cx', t) + .attr('cy', e) + .attr('r', n.pointR.bind(n)) + .style( + 'color', + n.isStanfordGraphType() + ? n.getStanfordPointColor.bind(n) + : n.color + ); + (n.mainCircle = i + .merge(r) + .style( + 'opacity', + n.isStanfordGraphType() ? 1 : n.initialOpacityForCircle.bind(n) + )), + r.exit().style('opacity', 0); + }), + (i.prototype.redrawCircle = function(t, e, n, r) { + var i = this, + o = i.main.selectAll('.' + S.selectedCircle); + return [ + (n ? i.mainCircle.transition(r) : i.mainCircle) + .style('opacity', this.opacityForCircle.bind(i)) + .style( + 'color', + i.isStanfordGraphType() + ? i.getStanfordPointColor.bind(i) + : i.color + ) + .attr('cx', t) + .attr('cy', e), + (n ? o.transition(r) : o).attr('cx', t).attr('cy', e) + ]; + }), + (i.prototype.circleX = function(t) { + return t.x || 0 === t.x ? this.x(t.x) : null; + }), + (i.prototype.updateCircleY = function() { + var t, + e, + n = this; + n.config.data_groups.length > 0 + ? ((t = n.getShapeIndices(n.isLineType)), + (e = n.generateGetLinePoints(t)), + (n.circleY = function(t, n) { + return e(t, n)[0][1]; + })) + : (n.circleY = function(t) { + return n.getYScale(t.id)(t.value); + }); + }), + (i.prototype.getCircles = function(t, e) { + return (e + ? this.main.selectAll( + '.' + S.circles + this.getTargetSelectorSuffix(e) + ) + : this.main + ).selectAll('.' + S.circle + (b(t) ? '-' + t : '')); + }), + (i.prototype.expandCircles = function(t, e, n) { + var r = this.pointExpandedR.bind(this); + n && this.unexpandCircles(), + this.getCircles(t, e) + .classed(S.EXPANDED, !0) + .attr('r', r); + }), + (i.prototype.unexpandCircles = function(t) { + var e = this, + n = e.pointR.bind(e); + e.getCircles(t) + .filter(function() { + return e.d3.select(this).classed(S.EXPANDED); + }) + .classed(S.EXPANDED, !1) + .attr('r', n); + }), + (i.prototype.pointR = function(t) { + var e = this.config; + return this.isStepType(t) + ? 0 + : g(e.point_r) + ? e.point_r(t) + : e.point_r; + }), + (i.prototype.pointExpandedR = function(t) { + var e = this.config; + return e.point_focus_expand_enabled + ? g(e.point_focus_expand_r) + ? e.point_focus_expand_r(t) + : e.point_focus_expand_r + ? e.point_focus_expand_r + : 1.75 * this.pointR(t) + : this.pointR(t); + }), + (i.prototype.pointSelectR = function(t) { + var e = this.config; + return g(e.point_select_r) + ? e.point_select_r(t) + : e.point_select_r + ? e.point_select_r + : 4 * this.pointR(t); + }), + (i.prototype.isWithinCircle = function(t, e) { + var n = this.d3, + r = n.mouse(t), + i = n.select(t), + o = +i.attr('cx'), + a = +i.attr('cy'); + return Math.sqrt(Math.pow(o - r[0], 2) + Math.pow(a - r[1], 2)) < e; + }), + (i.prototype.isWithinStep = function(t, e) { + return Math.abs(e - this.d3.mouse(t)[1]) < 30; + }), + (i.prototype.getCurrentWidth = function() { + var t = this.config; + return t.size_width ? t.size_width : this.getParentWidth(); + }), + (i.prototype.getCurrentHeight = function() { + var t = this.config, + e = t.size_height ? t.size_height : this.getParentHeight(); + return e > 0 + ? e + : 320 / (this.hasType('gauge') && !t.gauge_fullCircle ? 2 : 1); + }), + (i.prototype.getCurrentPaddingTop = function() { + var t = this.config, + e = b(t.padding_top) ? t.padding_top : 0; + return ( + this.title && this.title.node() && (e += this.getTitlePadding()), e + ); + }), + (i.prototype.getCurrentPaddingBottom = function() { + var t = this.config; + return b(t.padding_bottom) ? t.padding_bottom : 0; + }), + (i.prototype.getCurrentPaddingLeft = function(t) { + var e = this.config; + return b(e.padding_left) + ? e.padding_left + : e.axis_rotated + ? !e.axis_x_show || e.axis_x_inner + ? 1 + : Math.max(s(this.getAxisWidthByAxisId('x', t)), 40) + : !e.axis_y_show || e.axis_y_inner + ? this.axis.getYAxisLabelPosition().isOuter + ? 30 + : 1 + : s(this.getAxisWidthByAxisId('y', t)); + }), + (i.prototype.getCurrentPaddingRight = function() { + var t = this, + e = t.config, + n = 0, + r = t.isLegendRight ? t.getLegendWidth() + 20 : 0; + return ( + (n = b(e.padding_right) + ? e.padding_right + 1 + : e.axis_rotated + ? 10 + r + : !e.axis_y2_show || e.axis_y2_inner + ? 2 + r + (t.axis.getY2AxisLabelPosition().isOuter ? 20 : 0) + : s(t.getAxisWidthByAxisId('y2')) + r), + t.colorScale && + t.colorScale.node() && + (n += t.getColorScalePadding()), + n + ); + }), + (i.prototype.getParentRectValue = function(t) { + for ( + var e, n = this.selectChart.node(); + n && 'BODY' !== n.tagName; + + ) { + try { + e = n.getBoundingClientRect()[t]; + } catch (r) { + 'width' === t && (e = n.offsetWidth); + } + if (e) break; + n = n.parentNode; + } + return e; + }), + (i.prototype.getParentWidth = function() { + return this.getParentRectValue('width'); + }), + (i.prototype.getParentHeight = function() { + var t = this.selectChart.style('height'); + return t.indexOf('px') > 0 ? +t.replace('px', '') : 0; + }), + (i.prototype.getSvgLeft = function(t) { + var e = this, + n = e.config, + r = n.axis_rotated || (!n.axis_rotated && !n.axis_y_inner), + i = n.axis_rotated ? S.axisX : S.axisY, + o = e.main.select('.' + i).node(), + a = o && r ? o.getBoundingClientRect() : { right: 0 }, + s = e.selectChart.node().getBoundingClientRect(), + u = e.hasArcType(), + l = a.right - s.left - (u ? 0 : e.getCurrentPaddingLeft(t)); + return l > 0 ? l : 0; + }), + (i.prototype.getAxisWidthByAxisId = function(t, e) { + var n = this.axis.getLabelPositionById(t); + return this.axis.getMaxTickWidth(t, e) + (n.isInner ? 20 : 40); + }), + (i.prototype.getHorizontalAxisHeight = function(t) { + var e = this, + n = e.config, + r = 30; + return 'x' !== t || n.axis_x_show + ? 'x' === t && n.axis_x_height + ? n.axis_x_height + : 'y' !== t || n.axis_y_show + ? 'y2' !== t || n.axis_y2_show + ? ('x' === t && + !n.axis_rotated && + n.axis_x_tick_rotate && + (r = + 30 + + e.axis.getMaxTickWidth(t) * + Math.cos( + (Math.PI * (90 - Math.abs(n.axis_x_tick_rotate))) / + 180 + )), + 'y' === t && + n.axis_rotated && + n.axis_y_tick_rotate && + (r = + 30 + + e.axis.getMaxTickWidth(t) * + Math.cos( + (Math.PI * (90 - Math.abs(n.axis_y_tick_rotate))) / + 180 + )), + r + + (e.axis.getLabelPositionById(t).isInner ? 0 : 10) + + ('y2' === t ? -10 : 0)) + : e.rotated_padding_top + : !n.legend_show || e.isLegendRight || e.isLegendInset + ? 1 + : 10 + : 8; + }), + (i.prototype.initBrush = function(t) { + var e = this, + n = e.d3; + return ( + (e.brush = (e.config.axis_rotated ? n.brushY() : n.brushX()) + .on('brush', function() { + var t = n.event.sourceEvent; + (t && 'zoom' === t.type) || e.redrawForBrush(); + }) + .on('end', function() { + var t = n.event.sourceEvent; + (t && 'zoom' === t.type) || + (e.brush.empty() && t && 'end' !== t.type && e.brush.clear()); + })), + (e.brush.updateExtent = function() { + var t, + n = this.scale.range(); + return ( + (t = e.config.axis_rotated + ? [[0, n[0]], [e.width2, n[1]]] + : [[n[0], 0], [n[1], e.height2]]), + this.extent(t), + this + ); + }), + (e.brush.updateScale = function(t) { + return (this.scale = t), this; + }), + (e.brush.update = function(t) { + this.updateScale(t || e.subX).updateExtent(), + e.context.select('.' + S.brush).call(this); + }), + (e.brush.clear = function() { + e.context.select('.' + S.brush).call(e.brush.move, null); + }), + (e.brush.selection = function() { + return n.brushSelection(e.context.select('.' + S.brush).node()); + }), + (e.brush.selectionAsValue = function(t, n) { + var r, i; + return t + ? (e.context && + ((r = [this.scale(t[0]), this.scale(t[1])]), + (i = e.context.select('.' + S.brush)), + n && (i = i.transition()), + e.brush.move(i, r)), + []) + : ((r = e.brush.selection() || [0, 0]), + [this.scale.invert(r[0]), this.scale.invert(r[1])]); + }), + (e.brush.empty = function() { + var t = e.brush.selection(); + return !t || t[0] === t[1]; + }), + e.brush.updateScale(t) + ); + }), + (i.prototype.initSubchart = function() { + var t = this, + e = t.config, + n = (t.context = t.svg + .append('g') + .attr('transform', t.getTranslate('context'))); + n.style('visibility', 'visible'), + n + .append('g') + .attr('clip-path', t.clipPathForSubchart) + .attr('class', S.chart), + n + .select('.' + S.chart) + .append('g') + .attr('class', S.chartBars), + n + .select('.' + S.chart) + .append('g') + .attr('class', S.chartLines), + n + .append('g') + .attr('clip-path', t.clipPath) + .attr('class', S.brush), + (t.axes.subx = n + .append('g') + .attr('class', S.axisX) + .attr('transform', t.getTranslate('subx')) + .attr('clip-path', e.axis_rotated ? '' : t.clipPathForXAxis)); + }), + (i.prototype.initSubchartBrush = function() { + this.initBrush(this.subX).updateExtent(), + this.context.select('.' + S.brush).call(this.brush); + }), + (i.prototype.updateTargetsForSubchart = function(t) { + var e, + n, + r, + i, + o = this, + a = o.context, + s = o.config, + u = o.classChartBar.bind(o), + l = o.classBars.bind(o), + c = o.classChartLine.bind(o), + f = o.classLines.bind(o), + d = o.classAreas.bind(o); + (r = (i = a + .select('.' + S.chartBars) + .selectAll('.' + S.chartBar) + .data(t)) + .enter() + .append('g') + .style('opacity', 0)) + .merge(i) + .attr('class', u), + r.append('g').attr('class', l), + (e = (n = a + .select('.' + S.chartLines) + .selectAll('.' + S.chartLine) + .data(t)) + .enter() + .append('g') + .style('opacity', 0)) + .merge(n) + .attr('class', c), + e.append('g').attr('class', f), + e.append('g').attr('class', d), + a + .selectAll('.' + S.brush + ' rect') + .attr( + s.axis_rotated ? 'width' : 'height', + s.axis_rotated ? o.width2 : o.height2 + ); + }), + (i.prototype.updateBarForSubchart = function(t) { + var e = this, + n = e.context + .selectAll('.' + S.bars) + .selectAll('.' + S.bar) + .data(e.barData.bind(e)), + r = n + .enter() + .append('path') + .attr('class', e.classBar.bind(e)) + .style('stroke', 'none') + .style('fill', e.color); + n + .exit() + .transition() + .duration(t) + .style('opacity', 0) + .remove(), + (e.contextBar = r + .merge(n) + .style('opacity', e.initialOpacity.bind(e))); + }), + (i.prototype.redrawBarForSubchart = function(t, e, n) { + (e + ? this.contextBar.transition(Math.random().toString()).duration(n) + : this.contextBar + ) + .attr('d', t) + .style('opacity', 1); + }), + (i.prototype.updateLineForSubchart = function(t) { + var e = this, + n = e.context + .selectAll('.' + S.lines) + .selectAll('.' + S.line) + .data(e.lineData.bind(e)), + r = n + .enter() + .append('path') + .attr('class', e.classLine.bind(e)) + .style('stroke', e.color); + n + .exit() + .transition() + .duration(t) + .style('opacity', 0) + .remove(), + (e.contextLine = r + .merge(n) + .style('opacity', e.initialOpacity.bind(e))); + }), + (i.prototype.redrawLineForSubchart = function(t, e, n) { + (e + ? this.contextLine.transition(Math.random().toString()).duration(n) + : this.contextLine + ) + .attr('d', t) + .style('opacity', 1); + }), + (i.prototype.updateAreaForSubchart = function(t) { + var e = this, + n = e.d3, + r = e.context + .selectAll('.' + S.areas) + .selectAll('.' + S.area) + .data(e.lineData.bind(e)), + i = r + .enter() + .append('path') + .attr('class', e.classArea.bind(e)) + .style('fill', e.color) + .style('opacity', function() { + return (e.orgAreaOpacity = +n.select(this).style('opacity')), 0; + }); + r + .exit() + .transition() + .duration(t) + .style('opacity', 0) + .remove(), + (e.contextArea = i.merge(r).style('opacity', 0)); + }), + (i.prototype.redrawAreaForSubchart = function(t, e, n) { + (e + ? this.contextArea.transition(Math.random().toString()).duration(n) + : this.contextArea + ) + .attr('d', t) + .style('fill', this.color) + .style('opacity', this.orgAreaOpacity); + }), + (i.prototype.redrawSubchart = function(t, e, n, r, i, o, a) { + var s, + u, + l, + c = this, + f = c.d3; + f.event && + 'zoom' === f.event.type && + c.brush.selectionAsValue(c.x.orgDomain()), + t && + (c.brush.empty() || c.brush.selectionAsValue(c.x.orgDomain()), + (s = c.generateDrawArea(i, !0)), + (u = c.generateDrawBar(o, !0)), + (l = c.generateDrawLine(a, !0)), + c.updateBarForSubchart(n), + c.updateLineForSubchart(n), + c.updateAreaForSubchart(n), + c.redrawBarForSubchart(u, n, n), + c.redrawLineForSubchart(l, n, n), + c.redrawAreaForSubchart(s, n, n)); + }), + (i.prototype.redrawForBrush = function() { + var t, + e = this, + n = e.x, + r = e.d3; + e.redraw({ + withTransition: !1, + withY: e.config.zoom_rescale, + withSubchart: !1, + withUpdateXDomain: !0, + withEventRect: !1, + withDimension: !1 + }), + (t = r.event.selection || e.brush.scale.range()), + e.main + .select('.' + S.eventRect) + .call( + e.zoom.transform, + r.zoomIdentity + .scale(e.width / (t[1] - t[0])) + .translate(-t[0], 0) + ), + e.config.subchart_onbrush.call(e.api, n.orgDomain()); + }), + (i.prototype.transformContext = function(t, e) { + var n; + e && e.axisSubX + ? (n = e.axisSubX) + : ((n = this.context.select('.' + S.axisX)), + t && (n = n.transition())), + this.context.attr('transform', this.getTranslate('context')), + n.attr('transform', this.getTranslate('subx')); + }), + (i.prototype.getDefaultSelection = function() { + var t = this, + e = t.config, + n = g(e.axis_x_selection) + ? e.axis_x_selection(t.getXDomain(t.data.targets)) + : e.axis_x_selection; + return ( + t.isTimeSeries() && (n = [t.parseDate(n[0]), t.parseDate(n[1])]), n + ); + }), + (i.prototype.removeSubchart = function() { + (this.brush = null), this.context.remove(), (this.context = null); + }), + (i.prototype.initText = function() { + this.main + .select('.' + S.chart) + .append('g') + .attr('class', S.chartTexts), + (this.mainText = this.d3.selectAll([])); + }), + (i.prototype.updateTargetsForText = function(t) { + var e = this, + n = e.classChartText.bind(e), + r = e.classTexts.bind(e), + i = e.classFocus.bind(e), + o = e.main + .select('.' + S.chartTexts) + .selectAll('.' + S.chartText) + .data(t), + a = o + .enter() + .append('g') + .attr('class', n) + .style('opacity', 0) + .style('pointer-events', 'none'); + a.append('g').attr('class', r), + a.merge(o).attr('class', function(t) { + return n(t) + i(t); + }); + }), + (i.prototype.updateText = function(t, e, n) { + var r = this, + i = r.config, + o = r.barOrLineData.bind(r), + a = r.classText.bind(r), + s = r.main + .selectAll('.' + S.texts) + .selectAll('.' + S.text) + .data(o), + u = s + .enter() + .append('text') + .attr('class', a) + .attr('text-anchor', function(t) { + return i.axis_rotated + ? t.value < 0 + ? 'end' + : 'start' + : 'middle'; + }) + .style('stroke', 'none') + .attr('x', t) + .attr('y', e) + .style('fill', function(t) { + return r.color(t); + }) + .style('fill-opacity', 0); + (r.mainText = u.merge(s).text(function(t, e, n) { + return r.dataLabelFormat(t.id)(t.value, t.id, e, n); + })), + s + .exit() + .transition() + .duration(n) + .style('fill-opacity', 0) + .remove(); + }), + (i.prototype.redrawText = function(t, e, n, r, i) { + return [ + (r ? this.mainText.transition(i) : this.mainText) + .attr('x', t) + .attr('y', e) + .style('fill', this.color) + .style('fill-opacity', n ? 0 : this.opacityForText.bind(this)) + ]; + }), + (i.prototype.getTextRect = function(t, e, n) { + var r, + i = this.d3 + .select('body') + .append('div') + .classed('c3', !0), + o = i + .append('svg') + .style('visibility', 'hidden') + .style('position', 'fixed') + .style('top', 0) + .style('left', 0), + a = this.d3.select(n).style('font'); + return ( + o + .selectAll('.dummy') + .data([t]) + .enter() + .append('text') + .classed(e || '', !0) + .style('font', a) + .text(t) + .each(function() { + r = f(this); + }), + i.remove(), + r + ); + }), + (i.prototype.generateXYForText = function(t, e, n, r) { + var i = this, + o = i.generateGetAreaPoints(t, !1), + a = i.generateGetBarPoints(e, !1), + s = i.generateGetLinePoints(n, !1), + u = r ? i.getXForText : i.getYForText; + return function(t, e) { + var n = i.isAreaType(t) ? o : i.isBarType(t) ? a : s; + return u.call(i, n(t, e), t, this); + }; + }), + (i.prototype.getXForText = function(t, e, n) { + var r, + i, + o = this, + a = f(n); + return ( + o.config.axis_rotated + ? ((i = o.isBarType(e) ? 4 : 6), + (r = t[2][1] + i * (e.value < 0 ? -1 : 1))) + : (r = o.hasType('bar') ? (t[2][0] + t[0][0]) / 2 : t[0][0]), + null === e.value && + (r > o.width ? (r = o.width - a.width) : r < 0 && (r = 4)), + r + ); + }), + (i.prototype.getYForText = function(t, e, n) { + var r, + i = this, + o = f(n); + return ( + i.config.axis_rotated + ? (r = (t[0][0] + t[2][0] + 0.6 * o.height) / 2) + : ((r = t[2][1]), + e.value < 0 || (0 === e.value && !i.hasPositiveValue) + ? ((r += o.height), + i.isBarType(e) && i.isSafari() + ? (r -= 3) + : !i.isBarType(e) && i.isChrome() && (r += 3)) + : (r += i.isBarType(e) ? -3 : -6)), + null !== e.value || + i.config.axis_rotated || + (r < o.height + ? (r = o.height) + : r > this.height && (r = this.height - 4)), + r + ); + }), + (i.prototype.initTitle = function() { + this.title = this.svg + .append('text') + .text(this.config.title_text) + .attr('class', this.CLASS.title); + }), + (i.prototype.redrawTitle = function() { + var t = this; + t.title.attr('x', t.xForTitle.bind(t)).attr('y', t.yForTitle.bind(t)); + }), + (i.prototype.xForTitle = function() { + var t = this, + e = t.config, + n = e.title_position || 'left'; + return n.indexOf('right') >= 0 + ? t.currentWidth - + t.getTextRect( + t.title.node().textContent, + t.CLASS.title, + t.title.node() + ).width - + e.title_padding.right + : n.indexOf('center') >= 0 + ? Math.max( + (t.currentWidth - + t.getTextRect( + t.title.node().textContent, + t.CLASS.title, + t.title.node() + ).width) / + 2, + 0 + ) + : e.title_padding.left; + }), + (i.prototype.yForTitle = function() { + var t = this; + return ( + t.config.title_padding.top + + t.getTextRect( + t.title.node().textContent, + t.CLASS.title, + t.title.node() + ).height + ); + }), + (i.prototype.getTitlePadding = function() { + return this.yForTitle() + this.config.title_padding.bottom; + }), + (i.prototype.drawColorScale = function() { + var t, + e, + n, + r, + i, + o, + a, + s = this, + u = s.d3, + l = s.config, + c = s.data.targets[0]; + if ( + ((t = isNaN(l.stanford_scaleWidth) ? 20 : l.stanford_scaleWidth), + 5, + t < 0) + ) + throw Error( + "Colorscale's barheight and barwidth must be greater than 0." + ); + (a = s.height - l.stanford_padding.bottom - l.stanford_padding.top), + (n = u.range(l.stanford_padding.bottom, a, 5)), + (o = u.scaleSequential(c.colors).domain([n[n.length - 1], n[0]])), + s.colorScale && s.colorScale.remove(), + (s.colorScale = s.svg + .append('g') + .attr('width', 50) + .attr('height', a) + .attr('class', S.colorScale)), + s.colorScale + .append('g') + .attr('transform', `translate(0, ${l.stanford_padding.top})`) + .selectAll('bars') + .data(n) + .enter() + .append('rect') + .attr('y', (t, e) => 5 * e) + .attr('x', 0) + .attr('width', t) + .attr('height', 5) + .attr('fill', function(t) { + return o(t); + }), + (i = u + .scaleLog() + .domain([c.minEpochs, c.maxEpochs]) + .range([ + n[0] + l.stanford_padding.top + n[n.length - 1] + 5 - 1, + n[0] + l.stanford_padding.top + ])), + (r = u.axisRight(i)), + 'pow10' === l.stanford_scaleFormat + ? r.tickValues([1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7]) + : g(l.stanford_scaleFormat) + ? r.tickFormat(l.stanford_scaleFormat) + : r.tickFormat(u.format('d')), + g(l.stanford_scaleValues) && + r.tickValues(l.stanford_scaleValues(c.minEpochs, c.maxEpochs)), + (e = s.colorScale + .append('g') + .attr('class', 'legend axis') + .attr('transform', `translate(${t},0)`) + .call(r)), + 'pow10' === l.stanford_scaleFormat && + e + .selectAll('.tick text') + .text(null) + .filter(T) + .text(10) + .append('tspan') + .attr('dy', '-.7em') + .text(function(t) { + return Math.round(Math.log(t) / Math.LN10); + }), + s.colorScale.attr( + 'transform', + `translate(${s.currentWidth - s.xForColorScale()}, 0)` + ); + }), + (i.prototype.xForColorScale = function() { + return ( + this.config.stanford_padding.right + f(this.colorScale.node()).width + ); + }), + (i.prototype.getColorScalePadding = function() { + return this.xForColorScale() + this.config.stanford_padding.left + 20; + }), + (i.prototype.isStanfordGraphType = function() { + return 'stanford' === this.config.data_type; + }), + (i.prototype.initStanfordData = function() { + var t, + e, + n, + r = this.d3, + i = this.config, + o = this.data.targets[0]; + if ( + (o.values.sort(P), + (t = o.values.map(t => t.epochs)), + (n = isNaN(i.stanford_scaleMin) ? r.min(t) : i.stanford_scaleMin) > + (e = isNaN(i.stanford_scaleMax) ? r.max(t) : i.stanford_scaleMax)) + ) + throw Error('Number of minEpochs has to be smaller than maxEpochs'); + (o.colors = g(i.stanford_colors) + ? i.stanford_colors + : r.interpolateHslLong(r.hsl(250, 1, 0.5), r.hsl(0, 1, 0.5))), + (o.colorscale = r.scaleSequentialLog(o.colors).domain([n, e])), + (o.minEpochs = n), + (o.maxEpochs = e); + }), + (i.prototype.getStanfordPointColor = function(t) { + return this.data.targets[0].colorscale(t.epochs); + }), + (i.prototype.getCentroid = function(t) { + var e, + n, + r, + i, + o, + a = C(t), + s = 0, + u = 0; + for (e = 0, n = t.length - 1; e < t.length; n = e, e += 1) + (i = t[e]), + (o = t[n]), + (r = i.x * o.y - o.x * i.y), + (s += (i.x + o.x) * r), + (u += (i.y + o.y) * r); + return { x: s / (r = 6 * a), y: u / r }; + }), + (i.prototype.getStanfordTooltipTitle = function(t) { + var e = this.axis.getLabelText('x'), + n = this.axis.getLabelText('y'); + return `\n ${e ? x(e) : 'x'}${ + t.x + }\n ${n ? x(n) : 'y'}${ + t.value + }\n `; + }), + (i.prototype.countEpochsInRegion = function(t) { + var e, + n, + r = this.data.targets[0]; + return ( + (e = r.values.reduce((t, e) => t + Number(e.epochs), 0)), + { + value: (n = r.values.reduce( + (e, n) => (O(n, t) ? e + Number(n.epochs) : e), + 0 + )), + percentage: 0 !== n ? ((n / e) * 100).toFixed(1) : 0 + } + ); + }); + var C = function(t) { + var e, + n, + r, + i, + o = 0; + for (e = 0, n = t.length - 1; e < t.length; n = e, e += 1) + (r = t[e]), (i = t[n]), (o += r.x * i.y), (o -= r.y * i.x); + return (o /= 2); + }, + O = function(t, e) { + let n, + r, + i, + o, + a, + s = t.x, + u = t.value, + l = !1; + for (let t = 0, c = e.length - 1; t < e.length; c = t++) + (n = e[t].x), + (r = e[t].y), + (o = e[c].x), + (a = + r > u != (i = e[c].y) > u && + s < ((o - n) * (u - r)) / (i - r) + n) && (l = !l); + return l; + }, + P = function(t, e) { + return t.epochs < e.epochs ? -1 : t.epochs > e.epochs ? 1 : 0; + }; + (i.prototype.initStanfordElements = function() { + var t = this; + (t.stanfordElements = t.main + .select('.' + S.chart) + .append('g') + .attr('class', S.stanfordElements)), + t.stanfordElements.append('g').attr('class', S.stanfordLines), + t.stanfordElements.append('g').attr('class', S.stanfordTexts), + t.stanfordElements.append('g').attr('class', S.stanfordRegions); + }), + (i.prototype.updateStanfordElements = function(t) { + var e, + n, + r, + i, + o, + a, + s = this, + u = s.main, + l = s.config, + c = s.xvCustom.bind(s), + f = s.yvCustom.bind(s), + d = s.countEpochsInRegion.bind(s); + (n = (e = u + .select('.' + S.stanfordLines) + .style('shape-rendering', 'geometricprecision') + .selectAll('.' + S.stanfordLine) + .data(l.stanford_lines)) + .enter() + .append('g') + .attr('class', function(t) { + return S.stanfordLine + (t.class ? ' ' + t.class : ''); + })) + .append('line') + .attr('x1', t => + l.axis_rotated ? f(t, 'value_y1') : c(t, 'value_x1') + ) + .attr('x2', t => + l.axis_rotated ? f(t, 'value_y2') : c(t, 'value_x2') + ) + .attr('y1', t => + l.axis_rotated ? c(t, 'value_x1') : f(t, 'value_y1') + ) + .attr('y2', t => + l.axis_rotated ? c(t, 'value_x2') : f(t, 'value_y2') + ) + .style('opacity', 0), + (s.stanfordLines = n.merge(e)), + s.stanfordLines + .select('line') + .transition() + .duration(t) + .attr('x1', t => + l.axis_rotated ? f(t, 'value_y1') : c(t, 'value_x1') + ) + .attr('x2', t => + l.axis_rotated ? f(t, 'value_y2') : c(t, 'value_x2') + ) + .attr('y1', t => + l.axis_rotated ? c(t, 'value_x1') : f(t, 'value_y1') + ) + .attr('y2', t => + l.axis_rotated ? c(t, 'value_x2') : f(t, 'value_y2') + ) + .style('opacity', 1), + e + .exit() + .transition() + .duration(t) + .style('opacity', 0) + .remove(), + (a = (o = u + .select('.' + S.stanfordTexts) + .selectAll('.' + S.stanfordText) + .data(l.stanford_texts)) + .enter() + .append('g') + .attr('class', function(t) { + return S.stanfordText + (t.class ? ' ' + t.class : ''); + })) + .append('text') + .attr('x', t => (l.axis_rotated ? f(t, 'y') : c(t, 'x'))) + .attr('y', t => (l.axis_rotated ? c(t, 'x') : f(t, 'y'))) + .style('opacity', 0), + (s.stanfordTexts = a.merge(o)), + s.stanfordTexts + .select('text') + .transition() + .duration(t) + .attr('x', t => (l.axis_rotated ? f(t, 'y') : c(t, 'x'))) + .attr('y', t => (l.axis_rotated ? c(t, 'x') : f(t, 'y'))) + .text(function(t) { + return t.content; + }) + .style('opacity', 1), + o + .exit() + .transition() + .duration(t) + .style('opacity', 0) + .remove(), + (i = (r = u + .select('.' + S.stanfordRegions) + .selectAll('.' + S.stanfordRegion) + .data(l.stanford_regions)) + .enter() + .append('g') + .attr('class', function(t) { + return S.stanfordRegion + (t.class ? ' ' + t.class : ''); + })) + .append('polygon') + .attr('points', t => + t.points + .map(t => + [ + l.axis_rotated ? f(t, 'y') : c(t, 'x'), + l.axis_rotated ? c(t, 'x') : f(t, 'y') + ].join(',') + ) + .join(' ') + ) + .style('opacity', 0), + i + .append('text') + .attr('x', t => s.getCentroid(t.points).x) + .attr('y', t => s.getCentroid(t.points).y) + .style('opacity', 0), + (s.stanfordRegions = i.merge(r)), + s.stanfordRegions + .select('polygon') + .transition() + .duration(t) + .attr('points', t => + t.points + .map(t => + [ + l.axis_rotated ? f(t, 'y') : c(t, 'x'), + l.axis_rotated ? c(t, 'x') : f(t, 'y') + ].join(',') + ) + .join(' ') + ) + .style('opacity', t => (t.opacity ? t.opacity : 0.2)), + s.stanfordRegions + .select('text') + .transition() + .duration(t) + .attr('x', t => + l.axis_rotated + ? f(s.getCentroid(t.points), 'y') + : c(s.getCentroid(t.points), 'x') + ) + .attr('y', t => + l.axis_rotated + ? c(s.getCentroid(t.points), 'x') + : f(s.getCentroid(t.points), 'y') + ) + .text(function(t) { + var e, n, r; + return t.text + ? (s.isStanfordGraphType() && + ((e = (r = d(t.points)).value), (n = r.percentage)), + t.text(e, n)) + : ''; + }) + .attr('text-anchor', 'middle') + .attr('dominant-baseline', 'middle') + .style('opacity', 1), + r + .exit() + .transition() + .duration(t) + .style('opacity', 0) + .remove(); + }), + (i.prototype.initTooltip = function() { + var t, + e = this, + n = e.config; + if ( + ((e.tooltip = e.selectChart + .style('position', 'relative') + .append('div') + .attr('class', S.tooltipContainer) + .style('position', 'absolute') + .style('pointer-events', 'none') + .style('display', 'none')), + n.tooltip_init_show) + ) { + if (e.isTimeSeries() && v(n.tooltip_init_x)) { + for ( + n.tooltip_init_x = e.parseDate(n.tooltip_init_x), t = 0; + t < e.data.targets[0].values.length && + e.data.targets[0].values[t].x - n.tooltip_init_x != 0; + t++ + ); + n.tooltip_init_x = t; + } + e.tooltip.html( + n.tooltip_contents.call( + e, + e.data.targets.map(function(t) { + return e.addName(t.values[n.tooltip_init_x]); + }), + e.axis.getXAxisTickFormat(), + e.getYFormat(e.hasArcType()), + e.color + ) + ), + e.tooltip + .style('top', n.tooltip_init_position.top) + .style('left', n.tooltip_init_position.left) + .style('display', 'block'); + } + }), + (i.prototype.getTooltipSortFunction = function() { + var t = this, + e = t.config; + if (0 !== e.data_groups.length && void 0 === e.tooltip_order) { + var n = t.orderTargets(t.data.targets).map(function(t) { + return t.id; + }); + return ( + (t.isOrderAsc() || t.isOrderDesc()) && (n = n.reverse()), + function(t, e) { + return n.indexOf(t.id) - n.indexOf(e.id); + } + ); + } + var r = e.tooltip_order; + void 0 === r && (r = e.data_order); + var i = function(t) { + return t ? t.value : null; + }; + if (v(r) && 'asc' === r.toLowerCase()) + return function(t, e) { + return i(t) - i(e); + }; + if (v(r) && 'desc' === r.toLowerCase()) + return function(t, e) { + return i(e) - i(t); + }; + if (g(r)) { + var o = r; + return ( + void 0 === e.tooltip_order && + (o = function(t, e) { + return r( + t ? { id: t.id, values: [t] } : null, + e ? { id: e.id, values: [e] } : null + ); + }), + o + ); + } + return d(r) + ? function(t, e) { + return r.indexOf(t.id) - r.indexOf(e.id); + } + : void 0; + }), + (i.prototype.getTooltipContent = function(t, e, n, r) { + var i, + o, + a, + s, + u, + l, + c = this, + f = c.config, + d = f.tooltip_format_title || e, + h = + f.tooltip_format_name || + function(t) { + return t; + }, + p = f.tooltip_format_value; + p || + (p = c.isTargetNormalized(t.id) + ? (t, e) => `${(100 * e).toFixed(2)}%` + : n); + var g = this.getTooltipSortFunction(); + for (g && t.sort(g), o = 0; o < t.length; o++) + if (t[o] && (t[o].value || 0 === t[o].value)) { + if (c.isStanfordGraphType()) + i || + ((a = c.getStanfordTooltipTitle(t[o])), + (i = "" + a)), + (l = c.getStanfordPointColor(t[o])), + (u = x(f.data_epochs)), + (s = t[o].epochs); + else if ( + (i || + ((a = x(d ? d(t[o].x, t[o].index) : t[o].x)), + (i = + "
" + + (a || 0 === a + ? "' + : ''))), + void 0 !== + (s = x(p(t[o].value, t[o].ratio, t[o].id, t[o].index, t)))) + ) { + if (null === t[o].name) continue; + (u = x(h(t[o].name, t[o].ratio, t[o].id, t[o].index))), + (l = c.levelColor ? c.levelColor(t[o].value) : r(t[o].id)); + } + void 0 !== s && + ((i += + ""), + (i += + "'), + (i += "'), + (i += '')); + } + return i + '
" + a + '
" + + u + + '" + s + '
'; + }), + (i.prototype.tooltipPosition = function(t, e, n, r) { + var i, + o, + a, + s, + u, + l = this, + c = l.config, + f = l.d3, + d = l.hasArcType(), + h = f.mouse(r); + return ( + d + ? ((o = + (l.width - (l.isLegendRight ? l.getLegendWidth() : 0)) / 2 + + h[0]), + (s = + (l.hasType('gauge') ? l.height : l.height / 2) + h[1] + 20)) + : ((i = l.getSvgLeft(!0)), + c.axis_rotated + ? ((a = (o = i + h[0] + 100) + e), + (u = l.currentWidth - l.getCurrentPaddingRight()), + (s = l.x(t[0].x) + 20)) + : ((a = + (o = i + l.getCurrentPaddingLeft(!0) + l.x(t[0].x) + 20) + + e), + (u = i + l.currentWidth - l.getCurrentPaddingRight()), + (s = h[1] + 15)), + a > u && (o -= a - u + 20), + s + n > l.currentHeight && (s -= n + 30)), + s < 0 && (s = 0), + { top: s, left: o } + ); + }), + (i.prototype.showTooltip = function(t, e) { + var n, + r, + o, + a = this, + s = a.config, + u = a.hasArcType(), + l = t.filter(function(t) { + return t && b(t.value); + }), + c = s.tooltip_position || i.prototype.tooltipPosition; + 0 !== l.length && + s.tooltip_show && + (a.tooltip + .html( + s.tooltip_contents.call( + a, + t, + a.axis.getXAxisTickFormat(), + a.getYFormat(u), + a.color + ) + ) + .style('display', 'block'), + (n = a.tooltip.property('offsetWidth')), + (r = a.tooltip.property('offsetHeight')), + (o = c.call(this, l, n, r, e)), + a.tooltip.style('top', o.top + 'px').style('left', o.left + 'px')); + }), + (i.prototype.hideTooltip = function() { + this.tooltip.style('display', 'none'); + }), + (i.prototype.setTargetType = function(t, e) { + var n = this, + r = n.config; + n.mapToTargetIds(t).forEach(function(t) { + (n.withoutFadeIn[t] = e === r.data_types[t]), (r.data_types[t] = e); + }), + t || (r.data_type = e); + }), + (i.prototype.hasType = function(t, e) { + var n = this.config.data_types, + r = !1; + return ( + (e = e || this.data.targets) && e.length + ? e.forEach(function(e) { + var i = n[e.id]; + ((i && i.indexOf(t) >= 0) || (!i && 'line' === t)) && + (r = !0); + }) + : Object.keys(n).length + ? Object.keys(n).forEach(function(e) { + n[e] === t && (r = !0); + }) + : (r = this.config.data_type === t), + r + ); + }), + (i.prototype.hasArcType = function(t) { + return ( + this.hasType('pie', t) || + this.hasType('donut', t) || + this.hasType('gauge', t) + ); + }), + (i.prototype.isLineType = function(t) { + var e = this.config, + n = v(t) ? t : t.id; + return ( + !e.data_types[n] || + [ + 'line', + 'spline', + 'area', + 'area-spline', + 'step', + 'area-step' + ].indexOf(e.data_types[n]) >= 0 + ); + }), + (i.prototype.isStepType = function(t) { + var e = v(t) ? t : t.id; + return ['step', 'area-step'].indexOf(this.config.data_types[e]) >= 0; + }), + (i.prototype.isSplineType = function(t) { + var e = v(t) ? t : t.id; + return ( + ['spline', 'area-spline'].indexOf(this.config.data_types[e]) >= 0 + ); + }), + (i.prototype.isAreaType = function(t) { + var e = v(t) ? t : t.id; + return ( + ['area', 'area-spline', 'area-step'].indexOf( + this.config.data_types[e] + ) >= 0 + ); + }), + (i.prototype.isBarType = function(t) { + var e = v(t) ? t : t.id; + return 'bar' === this.config.data_types[e]; + }), + (i.prototype.isScatterType = function(t) { + var e = v(t) ? t : t.id; + return 'scatter' === this.config.data_types[e]; + }), + (i.prototype.isStanfordType = function(t) { + var e = v(t) ? t : t.id; + return 'stanford' === this.config.data_types[e]; + }), + (i.prototype.isPieType = function(t) { + var e = v(t) ? t : t.id; + return 'pie' === this.config.data_types[e]; + }), + (i.prototype.isGaugeType = function(t) { + var e = v(t) ? t : t.id; + return 'gauge' === this.config.data_types[e]; + }), + (i.prototype.isDonutType = function(t) { + var e = v(t) ? t : t.id; + return 'donut' === this.config.data_types[e]; + }), + (i.prototype.isArcType = function(t) { + return ( + this.isPieType(t) || this.isDonutType(t) || this.isGaugeType(t) + ); + }), + (i.prototype.lineData = function(t) { + return this.isLineType(t) ? [t] : []; + }), + (i.prototype.arcData = function(t) { + return this.isArcType(t.data) ? [t] : []; + }), + (i.prototype.barData = function(t) { + return this.isBarType(t) ? t.values : []; + }), + (i.prototype.lineOrScatterOrStanfordData = function(t) { + return this.isLineType(t) || + this.isScatterType(t) || + this.isStanfordType(t) + ? t.values + : []; + }), + (i.prototype.barOrLineData = function(t) { + return this.isBarType(t) || this.isLineType(t) ? t.values : []; + }), + (i.prototype.isSafari = function() { + var t = window.navigator.userAgent; + return t.indexOf('Safari') >= 0 && t.indexOf('Chrome') < 0; + }), + (i.prototype.isChrome = function() { + return window.navigator.userAgent.indexOf('Chrome') >= 0; + }), + (i.prototype.initZoom = function() { + var t, + e = this, + n = e.d3, + r = e.config; + return ( + (e.zoom = n + .zoom() + .on('start', function() { + if ('scroll' === r.zoom_type) { + var i = n.event.sourceEvent; + (i && 'brush' === i.type) || + ((t = i), r.zoom_onzoomstart.call(e.api, i)); + } + }) + .on('zoom', function() { + if ('scroll' === r.zoom_type) { + var t = n.event.sourceEvent; + (t && 'brush' === t.type) || + (e.redrawForZoom(), + r.zoom_onzoom.call(e.api, e.x.orgDomain())); + } + }) + .on('end', function() { + if ('scroll' === r.zoom_type) { + var i = n.event.sourceEvent; + (i && 'brush' === i.type) || + (i && t.clientX === i.clientX && t.clientY === i.clientY) || + r.zoom_onzoomend.call(e.api, e.x.orgDomain()); + } + })), + (e.zoom.updateDomain = function() { + return ( + n.event && + n.event.transform && + e.x.domain(n.event.transform.rescaleX(e.subX).domain()), + this + ); + }), + (e.zoom.updateExtent = function() { + return ( + this.scaleExtent([1, 1 / 0]) + .translateExtent([[0, 0], [e.width, e.height]]) + .extent([[0, 0], [e.width, e.height]]), + this + ); + }), + (e.zoom.update = function() { + return this.updateExtent().updateDomain(); + }), + e.zoom.updateExtent() + ); + }), + (i.prototype.zoomTransform = function(t) { + var e = [this.x(t[0]), this.x(t[1])]; + return this.d3.zoomIdentity + .scale(this.width / (e[1] - e[0])) + .translate(-e[0], 0); + }), + (i.prototype.initDragZoom = function() { + const t = this, + e = t.d3, + n = t.config, + r = (t.context = t.svg), + i = t.margin.left + 20.5, + o = t.margin.top + 0.5; + if ('drag' !== n.zoom_type || !n.zoom_enabled) return; + const a = e => e && e.map(e => t.x.invert(e)), + s = (t.dragZoomBrush = e + .brushX() + .on('start', () => { + t.api.unzoom(), + t.svg.select('.' + S.dragZoom).classed('disabled', !1), + n.zoom_onzoomstart.call(t.api, e.event.sourceEvent); + }) + .on('brush', () => { + n.zoom_onzoom.call(t.api, a(e.event.selection)); + }) + .on('end', () => { + if (null == e.event.selection) return; + const r = a(e.event.selection); + n.zoom_disableDefaultBehavior || t.api.zoom(r), + t.svg.select('.' + S.dragZoom).classed('disabled', !0), + n.zoom_onzoomend.call(t.api, r); + })); + r.append('g') + .classed(S.dragZoom, !0) + .attr('clip-path', t.clipPath) + .attr('transform', 'translate(' + i + ',' + o + ')') + .call(s); + }), + (i.prototype.getZoomDomain = function() { + var t = this.config, + e = this.d3; + return [ + e.min([this.orgXDomain[0], t.zoom_x_min]), + e.max([this.orgXDomain[1], t.zoom_x_max]) + ]; + }), + (i.prototype.redrawForZoom = function() { + var t = this, + e = t.d3, + n = t.config, + r = t.zoom, + i = t.x; + n.zoom_enabled && + 0 !== t.filterTargetsToShow(t.data.targets).length && + (r.update(), + n.zoom_disableDefaultBehavior || + (t.isCategorized() && + i.orgDomain()[0] === t.orgXDomain[0] && + i.domain([t.orgXDomain[0] - 1e-10, i.orgDomain()[1]]), + t.redraw({ + withTransition: !1, + withY: n.zoom_rescale, + withSubchart: !1, + withEventRect: !1, + withDimension: !1 + }), + e.event.sourceEvent && + 'mousemove' === e.event.sourceEvent.type && + (t.cancelClick = !0))); + }), + (e.default = k); + }, + function(t, e, n) { + var r; + window, + (r = function() { + return (function(t) { + var e = {}; + function n(r) { + if (e[r]) return e[r].exports; + var i = (e[r] = { i: r, l: !1, exports: {} }); + return ( + t[r].call(i.exports, i, i.exports, n), (i.l = !0), i.exports + ); + } + return ( + (n.m = t), + (n.c = e), + (n.d = function(t, e, r) { + n.o(t, e) || + Object.defineProperty(t, e, { enumerable: !0, get: r }); + }), + (n.r = function(t) { + 'undefined' != typeof Symbol && + Symbol.toStringTag && + Object.defineProperty(t, Symbol.toStringTag, { + value: 'Module' }), - (r.prototype.drag = function(t) { - var e, - n, - r, - i, - o, - a, - s, - u, - c = this, - f = c.config, - d = c.main, - h = c.d3; - c.hasArcType() || - (f.data_selection_enabled && - f.data_selection_multiple && - ((e = c.dragStart[0]), - (n = c.dragStart[1]), - (r = t[0]), - (i = t[1]), - (o = Math.min(e, r)), - (a = Math.max(e, r)), - (s = f.data_selection_grouped - ? c.margin.top - : Math.min(n, i)), - (u = f.data_selection_grouped - ? c.height - : Math.max(n, i)), - d - .select('.' + w.dragarea) - .attr('x', o) - .attr('y', s) - .attr('width', a - o) - .attr('height', u - s), - d - .selectAll('.' + w.shapes) - .selectAll('.' + w.shape) - .filter(function(t) { - return f.data_selection_isselectable(t); - }) - .each(function(t, e) { - var n, - r, - i, - f, - d, - p, - g = h.select(this), - v = g.classed(w.SELECTED), - m = g.classed(w.INCLUDED), - y = !1; - if (g.classed(w.circle)) - (n = 1 * g.attr('cx')), - (r = 1 * g.attr('cy')), - (d = c.togglePoint), - (y = o < n && n < a && s < r && r < u); - else { - if (!g.classed(w.bar)) return; - (n = (p = l(this)).x), - (r = p.y), - (i = p.width), - (f = p.height), - (d = c.togglePath), - (y = !( - a < n || - n + i < o || - u < r || - r + f < s - )); - } - y ^ m && - (g.classed(w.INCLUDED, !m), - g.classed(w.SELECTED, !v), - d.call(c, !v, g, t, e)); - }))); - }), - (r.prototype.dragstart = function(t) { - var e = this, - n = e.config; - e.hasArcType() || - (n.data_selection_enabled && - ((e.dragStart = t), - e.main - .select('.' + w.chart) - .append('rect') - .attr('class', w.dragarea) - .style('opacity', 0.1), - (e.dragging = !0))); - }), - (r.prototype.dragend = function() { - var t = this, - e = t.config; - t.hasArcType() || - (e.data_selection_enabled && - (t.main - .select('.' + w.dragarea) - .transition() - .duration(100) - .style('opacity', 0) - .remove(), - t.main.selectAll('.' + w.shape).classed(w.INCLUDED, !1), - (t.dragging = !1))); - }), - (r.prototype.getYFormat = function(t) { - var e = this, - n = - t && !e.hasType('gauge') - ? e.defaultArcValueFormat - : e.yFormat, - r = - t && !e.hasType('gauge') - ? e.defaultArcValueFormat - : e.y2Format; - return function(t, i, o) { - return ('y2' === e.axis.getId(o) ? r : n).call(e, t, i); - }; - }), - (r.prototype.yFormat = function(t) { - var e = this.config; - return (e.axis_y_tick_format - ? e.axis_y_tick_format - : this.defaultValueFormat)(t); - }), - (r.prototype.y2Format = function(t) { - var e = this.config; - return (e.axis_y2_tick_format - ? e.axis_y2_tick_format - : this.defaultValueFormat)(t); - }), - (r.prototype.defaultValueFormat = function(t) { - return y(t) ? +t : ''; - }), - (r.prototype.defaultArcValueFormat = function(t, e) { - return (100 * e).toFixed(1) + '%'; - }), - (r.prototype.dataLabelFormat = function(e) { - var n = this.config.data_labels, - r = function(t) { - return y(t) ? +t : ''; - }; - return 'function' == typeof n.format - ? n.format - : 'object' === t(n.format) - ? n.format[e] - ? !0 === n.format[e] - ? r - : n.format[e] - : function() { - return ''; - } - : r; - }), - (r.prototype.initGrid = function() { - var t = this, - e = t.config, - n = t.d3; - (t.grid = t.main - .append('g') - .attr('clip-path', t.clipPathForGrid) - .attr('class', w.grid)), - e.grid_x_show && - t.grid.append('g').attr('class', w.xgrids), - e.grid_y_show && - t.grid.append('g').attr('class', w.ygrids), - e.grid_focus_show && - t.grid - .append('g') - .attr('class', w.xgridFocus) - .append('line') - .attr('class', w.xgridFocus), - (t.xgrid = n.selectAll([])), - e.grid_lines_front || t.initGridLines(); - }), - (r.prototype.initGridLines = function() { - var t = this, - e = t.d3; - (t.gridLines = t.main - .append('g') - .attr('clip-path', t.clipPathForGrid) - .attr('class', w.grid + ' ' + w.gridLines)), - t.gridLines.append('g').attr('class', w.xgridLines), - t.gridLines.append('g').attr('class', w.ygridLines), - (t.xgridLines = e.selectAll([])); - }), - (r.prototype.updateXGrid = function(t) { - var e = this, - n = e.config, - r = e.d3, - i = e.generateGridData(n.grid_x_type, e.x), - o = e.isCategorized() ? e.xAxis.tickOffset() : 0; - (e.xgridAttr = n.axis_rotated - ? { - x1: 0, - x2: e.width, - y1: function(t) { - return e.x(t) - o; - }, - y2: function(t) { - return e.x(t) - o; - } - } - : { - x1: function(t) { - return e.x(t) + o; - }, - x2: function(t) { - return e.x(t) + o; - }, - y1: 0, - y2: e.height - }), - (e.xgridAttr.opacity = function() { - return +r - .select(this) - .attr(n.axis_rotated ? 'y1' : 'x1') === - (n.axis_rotated ? e.height : 0) - ? 0 - : 1; - }); - var a = e.main - .select('.' + w.xgrids) - .selectAll('.' + w.xgrid) - .data(i), - s = a - .enter() - .append('line') - .attr('class', w.xgrid) - .attr('x1', e.xgridAttr.x1) - .attr('x2', e.xgridAttr.x2) - .attr('y1', e.xgridAttr.y1) - .attr('y2', e.xgridAttr.y2) - .style('opacity', 0); - (e.xgrid = s.merge(a)), - t || - e.xgrid - .attr('x1', e.xgridAttr.x1) - .attr('x2', e.xgridAttr.x2) - .attr('y1', e.xgridAttr.y1) - .attr('y2', e.xgridAttr.y2) - .style('opacity', e.xgridAttr.opacity), - a.exit().remove(); - }), - (r.prototype.updateYGrid = function() { - var t = this, - e = t.config, - n = t.yAxis.tickValues() || t.y.ticks(e.grid_y_ticks), - r = t.main - .select('.' + w.ygrids) - .selectAll('.' + w.ygrid) - .data(n), - i = r - .enter() - .append('line') - .attr('class', w.ygrid); - (t.ygrid = i.merge(r)), - t.ygrid - .attr('x1', e.axis_rotated ? t.y : 0) - .attr('x2', e.axis_rotated ? t.y : t.width) - .attr('y1', e.axis_rotated ? 0 : t.y) - .attr('y2', e.axis_rotated ? t.height : t.y), - r.exit().remove(), - t.smoothLines(t.ygrid, 'grid'); - }), - (r.prototype.gridTextAnchor = function(t) { - return t.position ? t.position : 'end'; - }), - (r.prototype.gridTextDx = function(t) { - return 'start' === t.position - ? 4 - : 'middle' === t.position - ? 0 - : -4; - }), - (r.prototype.xGridTextX = function(t) { - return 'start' === t.position - ? -this.height - : 'middle' === t.position - ? -this.height / 2 - : 0; - }), - (r.prototype.yGridTextX = function(t) { - return 'start' === t.position - ? 0 - : 'middle' === t.position - ? this.width / 2 - : this.width; - }), - (r.prototype.updateGrid = function(t) { - var e, - n, - r, - i, - o = this, - a = o.main, - s = o.config, - u = o.xv.bind(o), - l = o.yv.bind(o), - c = o.xGridTextX.bind(o), - f = o.yGridTextX.bind(o); - o.grid.style( - 'visibility', - o.hasArcType() ? 'hidden' : 'visible' - ), - a - .select('line.' + w.xgridFocus) - .style('visibility', 'hidden'), - s.grid_x_show && o.updateXGrid(), - (n = (e = a - .select('.' + w.xgridLines) - .selectAll('.' + w.xgridLine) - .data(s.grid_x_lines)) - .enter() - .append('g') - .attr('class', function(t) { - return w.xgridLine + (t.class ? ' ' + t.class : ''); - })) - .append('line') - .attr('x1', s.axis_rotated ? 0 : u) - .attr('x2', s.axis_rotated ? o.width : u) - .attr('y1', s.axis_rotated ? u : 0) - .attr('y2', s.axis_rotated ? u : o.height) - .style('opacity', 0), - n - .append('text') - .attr('text-anchor', o.gridTextAnchor) - .attr('transform', s.axis_rotated ? '' : 'rotate(-90)') - .attr('x', s.axis_rotated ? f : c) - .attr('y', u) - .attr('dx', o.gridTextDx) - .attr('dy', -5) - .style('opacity', 0), - (o.xgridLines = n.merge(e)), - e - .exit() - .transition() - .duration(t) - .style('opacity', 0) - .remove(), - s.grid_y_show && o.updateYGrid(), - (i = (r = a - .select('.' + w.ygridLines) - .selectAll('.' + w.ygridLine) - .data(s.grid_y_lines)) - .enter() - .append('g') - .attr('class', function(t) { - return w.ygridLine + (t.class ? ' ' + t.class : ''); - })) - .append('line') - .attr('x1', s.axis_rotated ? l : 0) - .attr('x2', s.axis_rotated ? l : o.width) - .attr('y1', s.axis_rotated ? 0 : l) - .attr('y2', s.axis_rotated ? o.height : l) - .style('opacity', 0), - i - .append('text') - .attr('text-anchor', o.gridTextAnchor) - .attr('transform', s.axis_rotated ? 'rotate(-90)' : '') - .attr('x', s.axis_rotated ? c : f) - .attr('y', l) - .attr('dx', o.gridTextDx) - .attr('dy', -5) - .style('opacity', 0), - (o.ygridLines = i.merge(r)), - o.ygridLines - .select('line') - .transition() - .duration(t) - .attr('x1', s.axis_rotated ? l : 0) - .attr('x2', s.axis_rotated ? l : o.width) - .attr('y1', s.axis_rotated ? 0 : l) - .attr('y2', s.axis_rotated ? o.height : l) - .style('opacity', 1), - o.ygridLines - .select('text') - .transition() - .duration(t) - .attr( - 'x', - s.axis_rotated - ? o.xGridTextX.bind(o) - : o.yGridTextX.bind(o) - ) - .attr('y', l) - .text(function(t) { - return t.text; - }) - .style('opacity', 1), - r - .exit() - .transition() - .duration(t) - .style('opacity', 0) - .remove(); - }), - (r.prototype.redrawGrid = function(t, e) { - var n = this, - r = n.config, - i = n.xv.bind(n), - o = n.xgridLines.select('line'), - a = n.xgridLines.select('text'); - return [ - (t ? o.transition(e) : o) - .attr('x1', r.axis_rotated ? 0 : i) - .attr('x2', r.axis_rotated ? n.width : i) - .attr('y1', r.axis_rotated ? i : 0) - .attr('y2', r.axis_rotated ? i : n.height) - .style('opacity', 1), - (t ? a.transition(e) : a) - .attr( - 'x', - r.axis_rotated - ? n.yGridTextX.bind(n) - : n.xGridTextX.bind(n) - ) - .attr('y', i) - .text(function(t) { - return t.text; - }) - .style('opacity', 1) - ]; - }), - (r.prototype.showXGridFocus = function(t) { - var e = this, - n = e.config, - r = t.filter(function(t) { - return t && y(t.value); - }), - i = e.main.selectAll('line.' + w.xgridFocus), - o = e.xx.bind(e); - n.tooltip_show && - (e.hasType('stanford') || - e.hasArcType() || - (i - .style('visibility', 'visible') - .data([r[0]]) - .attr(n.axis_rotated ? 'y1' : 'x1', o) - .attr(n.axis_rotated ? 'y2' : 'x2', o), - e.smoothLines(i, 'grid'))); - }), - (r.prototype.hideXGridFocus = function() { - this.main - .select('line.' + w.xgridFocus) - .style('visibility', 'hidden'); - }), - (r.prototype.updateXgridFocus = function() { - var t = this.config; - this.main - .select('line.' + w.xgridFocus) - .attr('x1', t.axis_rotated ? 0 : -10) - .attr('x2', t.axis_rotated ? this.width : -10) - .attr('y1', t.axis_rotated ? -10 : 0) - .attr('y2', t.axis_rotated ? -10 : this.height); + Object.defineProperty(t, '__esModule', { value: !0 }); + }), + (n.t = function(t, e) { + if ((1 & e && (t = n(t)), 8 & e)) return t; + if (4 & e && 'object' == typeof t && t && t.__esModule) + return t; + var r = Object.create(null); + if ( + (n.r(r), + Object.defineProperty(r, 'default', { + enumerable: !0, + value: t }), - (r.prototype.generateGridData = function(t, e) { - var n, + 2 & e && 'string' != typeof t) + ) + for (var i in t) + n.d( r, i, - o, - a = [], - s = this.main - .select('.' + w.axisX) - .selectAll('.tick') - .size(); - if ('year' === t) - for ( - r = (n = this.getXDomain())[0].getFullYear(), - i = n[1].getFullYear(), - o = r; - o <= i; - o++ - ) - a.push(new Date(o + '-01-01 00:00:00')); - else - (a = e.ticks(10)).length > s && - (a = a.filter(function(t) { - return ('' + t).indexOf('.') < 0; - })); - return a; - }), - (r.prototype.getGridFilterToRemove = function(t) { - return t - ? function(e) { - var n = !1; - return ( - [].concat(t).forEach(function(t) { - (('value' in t && e.value === t.value) || - ('class' in t && e.class === t.class)) && - (n = !0); - }), - n - ); + function(e) { + return t[e]; + }.bind(null, i) + ); + return r; + }), + (n.n = function(t) { + var e = + t && t.__esModule + ? function() { + return t.default; + } + : function() { + return t; + }; + return n.d(e, 'a', e), e; + }), + (n.o = function(t, e) { + return Object.prototype.hasOwnProperty.call(t, e); + }), + (n.p = ''), + n((n.s = 4)) + ); + })([ + function(t, e, n) { + t.exports = n(7)(); + }, + function(t, e, n) { + 'use strict'; + t.exports = n(5); + }, + function(t, e, n) { + 'use strict'; + n.r(e); + var r = function(t, e) { + return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; + }, + i = function(t) { + var e; + return ( + 1 === t.length && + ((e = t), + (t = function(t, n) { + return r(e(t), n); + })), + { + left: function(e, n, r, i) { + for ( + null == r && (r = 0), null == i && (i = e.length); + r < i; + + ) { + var o = (r + i) >>> 1; + t(e[o], n) < 0 ? (r = o + 1) : (i = o); } - : function() { - return !0; - }; - }), - (r.prototype.removeGridLines = function(t, e) { - var n = this.config, - r = this.getGridFilterToRemove(t), - i = function(t) { - return !r(t); + return r; }, - o = e ? w.xgridLines : w.ygridLines, - a = e ? w.xgridLine : w.ygridLine; - this.main - .select('.' + o) - .selectAll('.' + a) - .filter(r) - .transition() - .duration(n.transition_duration) - .style('opacity', 0) - .remove(), - e - ? (n.grid_x_lines = n.grid_x_lines.filter(i)) - : (n.grid_y_lines = n.grid_y_lines.filter(i)); - }), - (r.prototype.initEventRect = function() { - var t = this, - e = t.config; - t.main - .select('.' + w.chart) + right: function(e, n, r, i) { + for ( + null == r && (r = 0), null == i && (i = e.length); + r < i; + + ) { + var o = (r + i) >>> 1; + t(e[o], n) > 0 ? (i = o) : (r = o + 1); + } + return r; + } + } + ); + }, + o = i(r), + a = o.right, + s = o.left, + u = a, + l = function(t, e) { + null == e && (e = c); + for ( + var n = 0, + r = t.length - 1, + i = t[0], + o = new Array(r < 0 ? 0 : r); + n < r; + + ) + o[n] = e(i, (i = t[++n])); + return o; + }; + function c(t, e) { + return [t, e]; + } + var f = function(t, e, n) { + var r, + i, + o, + a, + s = t.length, + u = e.length, + l = new Array(s * u); + for (null == n && (n = c), r = o = 0; r < s; ++r) + for (a = t[r], i = 0; i < u; ++i, ++o) l[o] = n(a, e[i]); + return l; + }, + d = function(t, e) { + return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN; + }, + h = function(t) { + return null === t ? NaN : +t; + }, + p = function(t, e) { + var n, + r, + i = t.length, + o = 0, + a = -1, + s = 0, + u = 0; + if (null == e) + for (; ++a < i; ) + isNaN((n = h(t[a]))) || + (u += (r = n - s) * (n - (s += r / ++o))); + else + for (; ++a < i; ) + isNaN((n = h(e(t[a], a, t)))) || + (u += (r = n - s) * (n - (s += r / ++o))); + if (o > 1) return u / (o - 1); + }, + g = function(t, e) { + var n = p(t, e); + return n ? Math.sqrt(n) : n; + }, + m = function(t, e) { + var n, + r, + i, + o = t.length, + a = -1; + if (null == e) { + for (; ++a < o; ) + if (null != (n = t[a]) && n >= n) + for (r = i = n; ++a < o; ) + null != (n = t[a]) && + (r > n && (r = n), i < n && (i = n)); + } else + for (; ++a < o; ) + if (null != (n = e(t[a], a, t)) && n >= n) + for (r = i = n; ++a < o; ) + null != (n = e(t[a], a, t)) && + (r > n && (r = n), i < n && (i = n)); + return [r, i]; + }, + v = Array.prototype, + y = v.slice, + b = v.map, + _ = function(t) { + return function() { + return t; + }; + }, + x = function(t) { + return t; + }, + w = function(t, e, n) { + (t = +t), + (e = +e), + (n = + (i = arguments.length) < 2 + ? ((e = t), (t = 0), 1) + : i < 3 + ? 1 + : +n); + for ( + var r = -1, + i = 0 | Math.max(0, Math.ceil((e - t) / n)), + o = new Array(i); + ++r < i; + + ) + o[r] = t + r * n; + return o; + }, + S = Math.sqrt(50), + E = Math.sqrt(10), + k = Math.sqrt(2), + A = function(t, e, n) { + var r, + i, + o, + a, + s = -1; + if (((n = +n), (t = +t) == (e = +e) && n > 0)) return [t]; + if ( + ((r = e < t) && ((i = t), (t = e), (e = i)), + 0 === (a = T(t, e, n)) || !isFinite(a)) + ) + return []; + if (a > 0) + for ( + t = Math.ceil(t / a), + e = Math.floor(e / a), + o = new Array((i = Math.ceil(e - t + 1))); + ++s < i; + + ) + o[s] = (t + s) * a; + else + for ( + t = Math.floor(t * a), + e = Math.ceil(e * a), + o = new Array((i = Math.ceil(t - e + 1))); + ++s < i; + + ) + o[s] = (t - s) / a; + return r && o.reverse(), o; + }; + function T(t, e, n) { + var r = (e - t) / Math.max(0, n), + i = Math.floor(Math.log(r) / Math.LN10), + o = r / Math.pow(10, i); + return i >= 0 + ? (o >= S ? 10 : o >= E ? 5 : o >= k ? 2 : 1) * + Math.pow(10, i) + : -Math.pow(10, -i) / + (o >= S ? 10 : o >= E ? 5 : o >= k ? 2 : 1); + } + function C(t, e, n) { + var r = Math.abs(e - t) / Math.max(0, n), + i = Math.pow(10, Math.floor(Math.log(r) / Math.LN10)), + o = r / i; + return ( + o >= S ? (i *= 10) : o >= E ? (i *= 5) : o >= k && (i *= 2), + e < t ? -i : i + ); + } + var O = function(t) { + return Math.ceil(Math.log(t.length) / Math.LN2) + 1; + }, + P = function() { + var t = x, + e = m, + n = O; + function r(r) { + var i, + o, + a = r.length, + s = new Array(a); + for (i = 0; i < a; ++i) s[i] = t(r[i], i, r); + var l = e(s), + c = l[0], + f = l[1], + d = n(s, c, f); + Array.isArray(d) || + ((d = C(c, f, d)), (d = w(Math.ceil(c / d) * d, f, d))); + for (var h = d.length; d[0] <= c; ) d.shift(), --h; + for (; d[h - 1] > f; ) d.pop(), --h; + var p, + g = new Array(h + 1); + for (i = 0; i <= h; ++i) + ((p = g[i] = []).x0 = i > 0 ? d[i - 1] : c), + (p.x1 = i < h ? d[i] : f); + for (i = 0; i < a; ++i) + c <= (o = s[i]) && o <= f && g[u(d, o, 0, h)].push(r[i]); + return g; + } + return ( + (r.value = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : _(e)), r) + : t; + }), + (r.domain = function(t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : _([t[0], t[1]])), + r) + : e; + }), + (r.thresholds = function(t) { + return arguments.length + ? ((n = + 'function' == typeof t + ? t + : Array.isArray(t) + ? _(y.call(t)) + : _(t)), + r) + : n; + }), + r + ); + }, + M = function(t, e, n) { + if ((null == n && (n = h), (r = t.length))) { + if ((e = +e) <= 0 || r < 2) return +n(t[0], 0, t); + if (e >= 1) return +n(t[r - 1], r - 1, t); + var r, + i = (r - 1) * e, + o = Math.floor(i), + a = +n(t[o], o, t); + return a + (+n(t[o + 1], o + 1, t) - a) * (i - o); + } + }, + L = function(t, e, n) { + return ( + (t = b.call(t, h).sort(r)), + Math.ceil( + (n - e) / + (2 * + (M(t, 0.75) - M(t, 0.25)) * + Math.pow(t.length, -1 / 3)) + ) + ); + }, + j = function(t, e, n) { + return Math.ceil( + (n - e) / (3.5 * g(t) * Math.pow(t.length, -1 / 3)) + ); + }, + D = function(t, e) { + var n, + r, + i = t.length, + o = -1; + if (null == e) { + for (; ++o < i; ) + if (null != (n = t[o]) && n >= n) + for (r = n; ++o < i; ) + null != (n = t[o]) && n > r && (r = n); + } else + for (; ++o < i; ) + if (null != (n = e(t[o], o, t)) && n >= n) + for (r = n; ++o < i; ) + null != (n = e(t[o], o, t)) && n > r && (r = n); + return r; + }, + R = function(t, e) { + var n, + r = t.length, + i = r, + o = -1, + a = 0; + if (null == e) + for (; ++o < r; ) isNaN((n = h(t[o]))) ? --i : (a += n); + else + for (; ++o < r; ) + isNaN((n = h(e(t[o], o, t)))) ? --i : (a += n); + if (i) return a / i; + }, + z = function(t, e) { + var n, + i = t.length, + o = -1, + a = []; + if (null == e) + for (; ++o < i; ) isNaN((n = h(t[o]))) || a.push(n); + else + for (; ++o < i; ) + isNaN((n = h(e(t[o], o, t)))) || a.push(n); + return M(a.sort(r), 0.5); + }, + N = function(t) { + for (var e, n, r, i = t.length, o = -1, a = 0; ++o < i; ) + a += t[o].length; + for (n = new Array(a); --i >= 0; ) + for (e = (r = t[i]).length; --e >= 0; ) n[--a] = r[e]; + return n; + }, + I = function(t, e) { + var n, + r, + i = t.length, + o = -1; + if (null == e) { + for (; ++o < i; ) + if (null != (n = t[o]) && n >= n) + for (r = n; ++o < i; ) + null != (n = t[o]) && r > n && (r = n); + } else + for (; ++o < i; ) + if (null != (n = e(t[o], o, t)) && n >= n) + for (r = n; ++o < i; ) + null != (n = e(t[o], o, t)) && r > n && (r = n); + return r; + }, + F = function(t, e) { + for (var n = e.length, r = new Array(n); n--; ) + r[n] = t[e[n]]; + return r; + }, + V = function(t, e) { + if ((n = t.length)) { + var n, + i, + o = 0, + a = 0, + s = t[a]; + for (null == e && (e = r); ++o < n; ) + (e((i = t[o]), s) < 0 || 0 !== e(s, s)) && + ((s = i), (a = o)); + return 0 === e(s, s) ? a : void 0; + } + }, + B = function(t, e, n) { + for ( + var r, + i, + o = (null == n ? t.length : n) - (e = null == e ? 0 : +e); + o; + + ) + (i = (Math.random() * o--) | 0), + (r = t[o + e]), + (t[o + e] = t[i + e]), + (t[i + e] = r); + return t; + }, + G = function(t, e) { + var n, + r = t.length, + i = -1, + o = 0; + if (null == e) for (; ++i < r; ) (n = +t[i]) && (o += n); + else for (; ++i < r; ) (n = +e(t[i], i, t)) && (o += n); + return o; + }, + H = function(t) { + if (!(i = t.length)) return []; + for (var e = -1, n = I(t, U), r = new Array(n); ++e < n; ) + for (var i, o = -1, a = (r[e] = new Array(i)); ++o < i; ) + a[o] = t[o][e]; + return r; + }; + function U(t) { + return t.length; + } + var q = function() { + return H(arguments); + }, + W = Array.prototype.slice, + X = function(t) { + return t; + }, + Y = 1, + $ = 2, + K = 3, + Q = 4, + Z = 1e-6; + function J(t) { + return 'translate(' + (t + 0.5) + ',0)'; + } + function tt(t) { + return 'translate(0,' + (t + 0.5) + ')'; + } + function et(t) { + return function(e) { + return +t(e); + }; + } + function nt(t) { + var e = Math.max(0, t.bandwidth() - 1) / 2; + return ( + t.round() && (e = Math.round(e)), + function(n) { + return +t(n) + e; + } + ); + } + function rt() { + return !this.__axis; + } + function it(t, e) { + var n = [], + r = null, + i = null, + o = 6, + a = 6, + s = 3, + u = t === Y || t === Q ? -1 : 1, + l = t === Q || t === $ ? 'x' : 'y', + c = t === Y || t === K ? J : tt; + function f(f) { + var d = + null == r + ? e.ticks + ? e.ticks.apply(e, n) + : e.domain() + : r, + h = + null == i + ? e.tickFormat + ? e.tickFormat.apply(e, n) + : X + : i, + p = Math.max(o, 0) + s, + g = e.range(), + m = +g[0] + 0.5, + v = +g[g.length - 1] + 0.5, + y = (e.bandwidth ? nt : et)(e.copy()), + b = f.selection ? f.selection() : f, + _ = b.selectAll('.domain').data([null]), + x = b + .selectAll('.tick') + .data(d, e) + .order(), + w = x.exit(), + S = x + .enter() .append('g') - .attr('class', w.eventRects) - .style('fill-opacity', 0), - (t.eventRect = t.main - .select('.' + w.eventRects) - .append('rect') - .attr('class', w.eventRect)), - e.zoom_enabled && - t.zoom && - (t.eventRect.call(t.zoom).on('dblclick.zoom', null), - e.zoom_initialRange && - t.eventRect - .transition() - .duration(0) - .call( - t.zoom.transform, - t.zoomTransform(e.zoom_initialRange) - )); - }), - (r.prototype.redrawEventRect = function() { - var t = this, - e = t.d3, - n = t.config; - function r() { - t.svg.select('.' + w.eventRect).style('cursor', null), - t.hideXGridFocus(), - t.hideTooltip(), - t.unexpandCircles(), - t.unexpandBars(); - } - var i = function(e, r) { - return ( - r && - (t.isBarType(r.id) || - t.dist(r, e) < n.point_sensitivity) - ); - }, - o = function(e) { - return e ? t.addName(Object.assign({}, e)) : null; - }; - t.main - .select('.' + w.eventRects) - .style( - 'cursor', - n.zoom_enabled - ? n.axis_rotated - ? 'ns-resize' - : 'ew-resize' - : null - ), - t.eventRect - .attr('x', 0) - .attr('y', 0) - .attr('width', t.width) - .attr('height', t.height) - .on( - 'mouseout', - n.interaction_enabled - ? function() { - n && - (t.hasArcType() || - (t.mouseover && - (n.data_onmouseout.call( - t.api, - t.mouseover - ), - (t.mouseover = void 0)), - r())); - } - : null - ) - .on( - 'mousemove', - n.interaction_enabled - ? function() { - if (!t.dragging) { - var a = t.getTargetsToShow(); - if (!t.hasArcType(a)) { - var s, - u = e.mouse(this), - l = o(t.findClosestFromTargets(a, u)), - c = i(u, l); - if ( - (!t.mouseover || - (l && - l.id === t.mouseover.id && - l.index === t.mouseover.index) || - (n.data_onmouseout.call( - t.api, - t.mouseover - ), - (t.mouseover = void 0)), - l && - !t.mouseover && - (n.data_onmouseover.call(t.api, l), - (t.mouseover = l)), - t.svg - .select('.' + w.eventRect) - .style('cursor', c ? 'pointer' : null), - !n.tooltip_grouped || - t.hasType('stanford', a)) - ) - l && (s = [l]); - else { - var f; - if (l) f = l; - else { - var d = n.axis_rotated ? u[1] : u[0]; - f = t.findClosestFromTargetsByX( - a, - t.x.invert(d) - ); - } - f && (s = t.filterByX(a, f.x)); - } - if (!s || 0 === s.length) return r(); - (s = s.map(o)), - t.showTooltip(s, this), - n.point_focus_expand_enabled && - (t.unexpandCircles(), - s.forEach(function(e) { - t.expandCircles(e.index, e.id, !1); - })), - t.unexpandBars(), - s.forEach(function(e) { - t.expandBars(e.index, e.id, !1); - }), - t.showXGridFocus(s); - } - } - } - : null - ) - .on( - 'click', - n.interaction_enabled - ? function() { - var r = t.getTargetsToShow(); - if (!t.hasArcType(r)) { - var a = e.mouse(this), - s = o(t.findClosestFromTargets(r, a)); - if ( - i(a, s) && - ((!n.data_selection_grouped || - t.isStanfordType(s) - ? [s] - : t.filterByX(r, s.x) - ).forEach(function(e) { - t.main - .selectAll( - '.' + - w.shapes + - t.getTargetSelectorSuffix(e.id) - ) - .selectAll( - '.' + w.shape + '-' + e.index - ) - .each(function() { - (n.data_selection_grouped || - t.isWithinShape(this, e)) && - t.toggleShape(this, e, e.index); - }); - }), - s) - ) { - var u = t.main - .selectAll( - '.' + - w.shapes + - t.getTargetSelectorSuffix(s.id) - ) - .select('.' + w.shape + '-' + s.index); - n.data_onclick.call(t.api, s, u.node()); - } - } - } - : null + .attr('class', 'tick'), + E = x.select('line'), + k = x.select('text'); + (_ = _.merge( + _.enter() + .insert('path', '.tick') + .attr('class', 'domain') + .attr('stroke', 'currentColor') + )), + (x = x.merge(S)), + (E = E.merge( + S.append('line') + .attr('stroke', 'currentColor') + .attr(l + '2', u * o) + )), + (k = k.merge( + S.append('text') + .attr('fill', 'currentColor') + .attr(l, u * p) + .attr( + 'dy', + t === Y ? '0em' : t === K ? '0.71em' : '0.32em' ) - .call( - n.interaction_enabled && - n.data_selection_draggable && - t.drag - ? e - .drag() - .on('drag', function() { - t.drag(e.mouse(this)); - }) - .on('start', function() { - t.dragstart(e.mouse(this)); - }) - .on('end', function() { - t.dragend(); - }) - : function() {} - ); - }), - (r.prototype.getMousePosition = function(t) { - return [this.x(t.x), this.getYScale(t.id)(t.value)]; - }), - (r.prototype.dispatchEvent = function(t, e) { - var n = '.' + w.eventRect, - r = this.main.select(n).node(), - i = r.getBoundingClientRect(), - o = i.left + (e ? e[0] : 0), - a = i.top + (e ? e[1] : 0), - s = document.createEvent('MouseEvents'); - s.initMouseEvent( - t, - !0, - !0, - window, - 0, - o, - a, - o, - a, - !1, - !1, - !1, - !1, - 0, - null + )), + f !== b && + ((_ = _.transition(f)), + (x = x.transition(f)), + (E = E.transition(f)), + (k = k.transition(f)), + (w = w + .transition(f) + .attr('opacity', Z) + .attr('transform', function(t) { + return isFinite((t = y(t))) + ? c(t) + : this.getAttribute('transform'); + })), + S.attr('opacity', Z).attr('transform', function(t) { + var e = this.parentNode.__axis; + return c(e && isFinite((e = e(t))) ? e : y(t)); + })), + w.remove(), + _.attr( + 'd', + t === Q || t == $ + ? a + ? 'M' + u * a + ',' + m + 'H0.5V' + v + 'H' + u * a + : 'M0.5,' + m + 'V' + v + : a + ? 'M' + m + ',' + u * a + 'V0.5H' + v + 'V' + u * a + : 'M' + m + ',0.5H' + v ), - r.dispatchEvent(s); + x.attr('opacity', 1).attr('transform', function(t) { + return c(y(t)); + }), + E.attr(l + '2', u * o), + k.attr(l, u * p).text(h), + b + .filter(rt) + .attr('fill', 'none') + .attr('font-size', 10) + .attr('font-family', 'sans-serif') + .attr( + 'text-anchor', + t === $ ? 'start' : t === Q ? 'end' : 'middle' + ), + b.each(function() { + this.__axis = y; + }); + } + return ( + (f.scale = function(t) { + return arguments.length ? ((e = t), f) : e; }), - (r.prototype.initLegend = function() { - var t = this; - if ( - ((t.legendItemTextBox = {}), - (t.legendHasRendered = !1), - (t.legend = t.svg - .append('g') - .attr('transform', t.getTranslate('legend'))), - !t.config.legend_show) - ) - return ( - t.legend.style('visibility', 'hidden'), - void (t.hiddenLegendIds = t.mapToIds(t.data.targets)) - ); - t.updateLegendWithDefaults(); + (f.ticks = function() { + return (n = W.call(arguments)), f; }), - (r.prototype.updateLegendWithDefaults = function() { - this.updateLegend(this.mapToIds(this.data.targets), { - withTransform: !1, - withTransitionForTransform: !1, - withTransition: !1 - }); + (f.tickArguments = function(t) { + return arguments.length + ? ((n = null == t ? [] : W.call(t)), f) + : n.slice(); }), - (r.prototype.updateSizeForLegend = function(t, e) { - var n = this, - r = n.config, - i = { - top: n.isLegendTop - ? n.getCurrentPaddingTop() + r.legend_inset_y + 5.5 - : n.currentHeight - - t - - n.getCurrentPaddingBottom() - - r.legend_inset_y, - left: n.isLegendLeft - ? n.getCurrentPaddingLeft() + r.legend_inset_x + 0.5 - : n.currentWidth - - e - - n.getCurrentPaddingRight() - - r.legend_inset_x + - 0.5 - }; - n.margin3 = { - top: n.isLegendRight - ? 0 - : n.isLegendInset - ? i.top - : n.currentHeight - t, - right: NaN, - bottom: 0, - left: n.isLegendRight - ? n.currentWidth - e - : n.isLegendInset - ? i.left - : 0 - }; + (f.tickValues = function(t) { + return arguments.length + ? ((r = null == t ? null : W.call(t)), f) + : r && r.slice(); }), - (r.prototype.transformLegend = function(t) { - (t ? this.legend.transition() : this.legend).attr( - 'transform', - this.getTranslate('legend') - ); + (f.tickFormat = function(t) { + return arguments.length ? ((i = t), f) : i; }), - (r.prototype.updateLegendStep = function(t) { - this.legendStep = t; + (f.tickSize = function(t) { + return arguments.length ? ((o = a = +t), f) : o; }), - (r.prototype.updateLegendItemWidth = function(t) { - this.legendItemWidth = t; + (f.tickSizeInner = function(t) { + return arguments.length ? ((o = +t), f) : o; }), - (r.prototype.updateLegendItemHeight = function(t) { - this.legendItemHeight = t; + (f.tickSizeOuter = function(t) { + return arguments.length ? ((a = +t), f) : a; }), - (r.prototype.getLegendWidth = function() { - var t = this; - return t.config.legend_show - ? t.isLegendRight || t.isLegendInset - ? t.legendItemWidth * (t.legendStep + 1) - : t.currentWidth - : 0; + (f.tickPadding = function(t) { + return arguments.length ? ((s = +t), f) : s; }), - (r.prototype.getLegendHeight = function() { - var t = this, - e = 0; + f + ); + } + function ot(t) { + return it(Y, t); + } + function at(t) { + return it($, t); + } + function st(t) { + return it(K, t); + } + function ut(t) { + return it(Q, t); + } + var lt = { value: function() {} }; + function ct() { + for (var t, e = 0, n = arguments.length, r = {}; e < n; ++e) { + if (!(t = arguments[e] + '') || t in r) + throw new Error('illegal type: ' + t); + r[t] = []; + } + return new ft(r); + } + function ft(t) { + this._ = t; + } + function dt(t, e) { + return t + .trim() + .split(/^|\s+/) + .map(function(t) { + var n = '', + r = t.indexOf('.'); + if ( + (r >= 0 && ((n = t.slice(r + 1)), (t = t.slice(0, r))), + t && !e.hasOwnProperty(t)) + ) + throw new Error('unknown type: ' + t); + return { type: t, name: n }; + }); + } + function ht(t, e) { + for (var n, r = 0, i = t.length; r < i; ++r) + if ((n = t[r]).name === e) return n.value; + } + function pt(t, e, n) { + for (var r = 0, i = t.length; r < i; ++r) + if (t[r].name === e) { + (t[r] = lt), (t = t.slice(0, r).concat(t.slice(r + 1))); + break; + } + return null != n && t.push({ name: e, value: n }), t; + } + ft.prototype = ct.prototype = { + constructor: ft, + on: function(t, e) { + var n, + r = this._, + i = dt(t + '', r), + o = -1, + a = i.length; + if (!(arguments.length < 2)) { + if (null != e && 'function' != typeof e) + throw new Error('invalid callback: ' + e); + for (; ++o < a; ) + if ((n = (t = i[o]).type)) r[n] = pt(r[n], t.name, e); + else if (null == e) + for (n in r) r[n] = pt(r[n], t.name, null); + return this; + } + for (; ++o < a; ) + if ((n = (t = i[o]).type) && (n = ht(r[n], t.name))) + return n; + }, + copy: function() { + var t = {}, + e = this._; + for (var n in e) t[n] = e[n].slice(); + return new ft(t); + }, + call: function(t, e) { + if ((n = arguments.length - 2) > 0) + for (var n, r, i = new Array(n), o = 0; o < n; ++o) + i[o] = arguments[o + 2]; + if (!this._.hasOwnProperty(t)) + throw new Error('unknown type: ' + t); + for (o = 0, n = (r = this._[t]).length; o < n; ++o) + r[o].value.apply(e, i); + }, + apply: function(t, e, n) { + if (!this._.hasOwnProperty(t)) + throw new Error('unknown type: ' + t); + for (var r = this._[t], i = 0, o = r.length; i < o; ++i) + r[i].value.apply(e, n); + } + }; + var gt = ct, + mt = 'http://www.w3.org/1999/xhtml', + vt = { + svg: 'http://www.w3.org/2000/svg', + xhtml: mt, + xlink: 'http://www.w3.org/1999/xlink', + xml: 'http://www.w3.org/XML/1998/namespace', + xmlns: 'http://www.w3.org/2000/xmlns/' + }, + yt = function(t) { + var e = (t += ''), + n = e.indexOf(':'); + return ( + n >= 0 && + 'xmlns' !== (e = t.slice(0, n)) && + (t = t.slice(n + 1)), + vt.hasOwnProperty(e) ? { space: vt[e], local: t } : t + ); + }; + function bt(t) { + return function() { + var e = this.ownerDocument, + n = this.namespaceURI; + return n === mt && e.documentElement.namespaceURI === mt + ? e.createElement(t) + : e.createElementNS(n, t); + }; + } + function _t(t) { + return function() { + return this.ownerDocument.createElementNS(t.space, t.local); + }; + } + var xt = function(t) { + var e = yt(t); + return (e.local ? _t : bt)(e); + }; + function wt() {} + var St = function(t) { + return null == t + ? wt + : function() { + return this.querySelector(t); + }; + }; + function Et() { + return []; + } + var kt = function(t) { + return null == t + ? Et + : function() { + return this.querySelectorAll(t); + }; + }, + At = function(t) { + return function() { + return this.matches(t); + }; + }, + Tt = function(t) { + return new Array(t.length); + }; + function Ct(t, e) { + (this.ownerDocument = t.ownerDocument), + (this.namespaceURI = t.namespaceURI), + (this._next = null), + (this._parent = t), + (this.__data__ = e); + } + Ct.prototype = { + constructor: Ct, + appendChild: function(t) { + return this._parent.insertBefore(t, this._next); + }, + insertBefore: function(t, e) { + return this._parent.insertBefore(t, e); + }, + querySelector: function(t) { + return this._parent.querySelector(t); + }, + querySelectorAll: function(t) { + return this._parent.querySelectorAll(t); + } + }; + var Ot = '$'; + function Pt(t, e, n, r, i, o) { + for (var a, s = 0, u = e.length, l = o.length; s < l; ++s) + (a = e[s]) + ? ((a.__data__ = o[s]), (r[s] = a)) + : (n[s] = new Ct(t, o[s])); + for (; s < u; ++s) (a = e[s]) && (i[s] = a); + } + function Mt(t, e, n, r, i, o, a) { + var s, + u, + l, + c = {}, + f = e.length, + d = o.length, + h = new Array(f); + for (s = 0; s < f; ++s) + (u = e[s]) && + ((h[s] = l = Ot + a.call(u, u.__data__, s, e)), + l in c ? (i[s] = u) : (c[l] = u)); + for (s = 0; s < d; ++s) + (u = c[(l = Ot + a.call(t, o[s], s, o))]) + ? ((r[s] = u), (u.__data__ = o[s]), (c[l] = null)) + : (n[s] = new Ct(t, o[s])); + for (s = 0; s < f; ++s) + (u = e[s]) && c[h[s]] === u && (i[s] = u); + } + function Lt(t, e) { + return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; + } + function jt(t) { + return function() { + this.removeAttribute(t); + }; + } + function Dt(t) { + return function() { + this.removeAttributeNS(t.space, t.local); + }; + } + function Rt(t, e) { + return function() { + this.setAttribute(t, e); + }; + } + function zt(t, e) { + return function() { + this.setAttributeNS(t.space, t.local, e); + }; + } + function Nt(t, e) { + return function() { + var n = e.apply(this, arguments); + null == n ? this.removeAttribute(t) : this.setAttribute(t, n); + }; + } + function It(t, e) { + return function() { + var n = e.apply(this, arguments); + null == n + ? this.removeAttributeNS(t.space, t.local) + : this.setAttributeNS(t.space, t.local, n); + }; + } + var Ft = function(t) { + return ( + (t.ownerDocument && t.ownerDocument.defaultView) || + (t.document && t) || + t.defaultView + ); + }; + function Vt(t) { + return function() { + this.style.removeProperty(t); + }; + } + function Bt(t, e, n) { + return function() { + this.style.setProperty(t, e, n); + }; + } + function Gt(t, e, n) { + return function() { + var r = e.apply(this, arguments); + null == r + ? this.style.removeProperty(t) + : this.style.setProperty(t, r, n); + }; + } + function Ht(t, e) { + return ( + t.style.getPropertyValue(e) || + Ft(t) + .getComputedStyle(t, null) + .getPropertyValue(e) + ); + } + function Ut(t) { + return function() { + delete this[t]; + }; + } + function qt(t, e) { + return function() { + this[t] = e; + }; + } + function Wt(t, e) { + return function() { + var n = e.apply(this, arguments); + null == n ? delete this[t] : (this[t] = n); + }; + } + function Xt(t) { + return t.trim().split(/^|\s+/); + } + function Yt(t) { + return t.classList || new $t(t); + } + function $t(t) { + (this._node = t), + (this._names = Xt(t.getAttribute('class') || '')); + } + function Kt(t, e) { + for (var n = Yt(t), r = -1, i = e.length; ++r < i; ) + n.add(e[r]); + } + function Qt(t, e) { + for (var n = Yt(t), r = -1, i = e.length; ++r < i; ) + n.remove(e[r]); + } + function Zt(t) { + return function() { + Kt(this, t); + }; + } + function Jt(t) { + return function() { + Qt(this, t); + }; + } + function te(t, e) { + return function() { + (e.apply(this, arguments) ? Kt : Qt)(this, t); + }; + } + function ee() { + this.textContent = ''; + } + function ne(t) { + return function() { + this.textContent = t; + }; + } + function re(t) { + return function() { + var e = t.apply(this, arguments); + this.textContent = null == e ? '' : e; + }; + } + function ie() { + this.innerHTML = ''; + } + function oe(t) { + return function() { + this.innerHTML = t; + }; + } + function ae(t) { + return function() { + var e = t.apply(this, arguments); + this.innerHTML = null == e ? '' : e; + }; + } + function se() { + this.nextSibling && this.parentNode.appendChild(this); + } + function ue() { + this.previousSibling && + this.parentNode.insertBefore( + this, + this.parentNode.firstChild + ); + } + function le() { + return null; + } + function ce() { + var t = this.parentNode; + t && t.removeChild(this); + } + function fe() { + return this.parentNode.insertBefore( + this.cloneNode(!1), + this.nextSibling + ); + } + function de() { + return this.parentNode.insertBefore( + this.cloneNode(!0), + this.nextSibling + ); + } + $t.prototype = { + add: function(t) { + this._names.indexOf(t) < 0 && + (this._names.push(t), + this._node.setAttribute('class', this._names.join(' '))); + }, + remove: function(t) { + var e = this._names.indexOf(t); + e >= 0 && + (this._names.splice(e, 1), + this._node.setAttribute('class', this._names.join(' '))); + }, + contains: function(t) { + return this._names.indexOf(t) >= 0; + } + }; + var he = {}, + pe = null; + function ge(t, e, n) { + return ( + (t = me(t, e, n)), + function(e) { + var n = e.relatedTarget; + (n && + (n === this || 8 & n.compareDocumentPosition(this))) || + t.call(this, e); + } + ); + } + function me(t, e, n) { + return function(r) { + var i = pe; + pe = r; + try { + t.call(this, this.__data__, e, n); + } finally { + pe = i; + } + }; + } + function ve(t) { + return t + .trim() + .split(/^|\s+/) + .map(function(t) { + var e = '', + n = t.indexOf('.'); return ( - t.config.legend_show && - (e = t.isLegendRight - ? t.currentHeight - : Math.max(20, t.legendItemHeight) * - (t.legendStep + 1)), - e + n >= 0 && ((e = t.slice(n + 1)), (t = t.slice(0, n))), + { type: t, name: e } ); - }), - (r.prototype.opacityForLegend = function(t) { - return t.classed(w.legendItemHidden) ? null : 1; - }), - (r.prototype.opacityForUnfocusedLegend = function(t) { - return t.classed(w.legendItemHidden) ? null : 0.3; - }), - (r.prototype.toggleFocusLegend = function(t, e) { - var n = this; - (t = n.mapToTargetIds(t)), - n.legend - .selectAll('.' + w.legendItem) - .filter(function(e) { - return t.indexOf(e) >= 0; - }) - .classed(w.legendItemFocused, e) - .transition() - .duration(100) - .style('opacity', function() { - return (e - ? n.opacityForLegend - : n.opacityForUnfocusedLegend - ).call(n, n.d3.select(this)); - }); - }), - (r.prototype.revertLegend = function() { - var t = this, - e = t.d3; - t.legend - .selectAll('.' + w.legendItem) - .classed(w.legendItemFocused, !1) - .transition() - .duration(100) - .style('opacity', function() { - return t.opacityForLegend(e.select(this)); - }); - }), - (r.prototype.showLegend = function(t) { - var e = this, - n = e.config; - n.legend_show || - ((n.legend_show = !0), - e.legend.style('visibility', 'visible'), - e.legendHasRendered || e.updateLegendWithDefaults()), - e.removeHiddenLegendIds(t), - e.legend - .selectAll(e.selectorLegends(t)) - .style('visibility', 'visible') - .transition() - .style('opacity', function() { - return e.opacityForLegend(e.d3.select(this)); - }); - }), - (r.prototype.hideLegend = function(t) { - var e = this, - n = e.config; - n.legend_show && - h(t) && - ((n.legend_show = !1), - e.legend.style('visibility', 'hidden')), - e.addHiddenLegendIds(t), - e.legend - .selectAll(e.selectorLegends(t)) - .style('opacity', 0) - .style('visibility', 'hidden'); - }), - (r.prototype.clearLegendItemTextBoxCache = function() { - this.legendItemTextBox = {}; - }), - (r.prototype.updateLegend = function(t, e, n) { - var r, - i, - o, - a, - s, - l, - c, - f, - h, - p, - g, - v, - m, - y, - b, - _, - x = this, - S = x.config, - E = 0, - k = 0, - A = S.legend_item_tile_width + 5, - T = 0, - C = {}, - O = {}, - P = {}, - M = [0], - L = {}, - D = 0; - function j(e, n, r) { - var i, - o, - a = 0 === r, - s = r === t.length - 1, - u = (function(t, e) { - return ( - x.legendItemTextBox[e] || - (x.legendItemTextBox[e] = x.getTextRect( - t.textContent, - w.legendItem, - t - )), - x.legendItemTextBox[e] - ); - })(e, n), - l = - u.width + - A + - (!s || x.isLegendRight || x.isLegendInset ? 10 : 0) + - S.legend_padding, - c = u.height + 4, - f = x.isLegendRight || x.isLegendInset ? c : l, - d = - x.isLegendRight || x.isLegendInset - ? x.getLegendHeight() - : x.getLegendWidth(); - function h(t, e) { - e || - ((i = (d - T - f) / 2) < 10 && - ((i = (d - f) / 2), (T = 0), D++)), - (L[t] = D), - (M[D] = x.isLegendInset ? 10 : i), - (C[t] = T), - (T += f); - } - a && ((T = 0), (D = 0), (E = 0), (k = 0)), - !S.legend_show || x.isLegendToShow(n) - ? ((O[n] = l), - (P[n] = c), - (!E || l >= E) && (E = l), - (!k || c >= k) && (k = c), - (o = x.isLegendRight || x.isLegendInset ? k : E), - S.legend_equally - ? (Object.keys(O).forEach(function(t) { - O[t] = E; - }), - Object.keys(P).forEach(function(t) { - P[t] = k; - }), - (i = (d - o * t.length) / 2) < 10 - ? ((T = 0), - (D = 0), - t.forEach(function(t) { - h(t); - })) - : h(n, !0)) - : h(n)) - : (O[n] = P[n] = L[n] = C[n] = 0); - } - (t = t.filter(function(t) { - return !d(S.data_names[t]) || null !== S.data_names[t]; - })), - (g = u((e = e || {}), 'withTransition', !0)), - (v = u(e, 'withTransitionForTransform', !0)), - x.isLegendInset && - ((D = S.legend_inset_step - ? S.legend_inset_step - : t.length), - x.updateLegendStep(D)), - x.isLegendRight - ? ((r = function(t) { - return E * L[t]; - }), - (a = function(t) { - return M[L[t]] + C[t]; - })) - : x.isLegendInset - ? ((r = function(t) { - return E * L[t] + 10; - }), - (a = function(t) { - return M[L[t]] + C[t]; - })) - : ((r = function(t) { - return M[L[t]] + C[t]; - }), - (a = function(t) { - return k * L[t]; - })), - (i = function(t, e) { - return r(t, e) + 4 + S.legend_item_tile_width; - }), - (s = function(t, e) { - return a(t, e) + 9; - }), - (o = function(t, e) { - return r(t, e); - }), - (l = function(t, e) { - return a(t, e) - 5; - }), - (c = function(t, e) { - return r(t, e) - 2; - }), - (f = function(t, e) { - return r(t, e) - 2 + S.legend_item_tile_width; - }), - (h = function(t, e) { - return a(t, e) + 4; + }); + } + function ye(t) { + return function() { + var e = this.__on; + if (e) { + for (var n, r = 0, i = -1, o = e.length; r < o; ++r) + (n = e[r]), + (t.type && n.type !== t.type) || n.name !== t.name + ? (e[++i] = n) + : this.removeEventListener( + n.type, + n.listener, + n.capture + ); + ++i ? (e.length = i) : delete this.__on; + } + }; + } + function be(t, e, n) { + var r = he.hasOwnProperty(t.type) ? ge : me; + return function(i, o, a) { + var s, + u = this.__on, + l = r(e, o, a); + if (u) + for (var c = 0, f = u.length; c < f; ++c) + if ((s = u[c]).type === t.type && s.name === t.name) + return ( + this.removeEventListener( + s.type, + s.listener, + s.capture + ), + this.addEventListener( + s.type, + (s.listener = l), + (s.capture = n) + ), + void (s.value = e) + ); + this.addEventListener(t.type, l, n), + (s = { + type: t.type, + name: t.name, + value: e, + listener: l, + capture: n + }), + u ? u.push(s) : (this.__on = [s]); + }; + } + function _e(t, e, n, r) { + var i = pe; + (t.sourceEvent = pe), (pe = t); + try { + return e.apply(n, r); + } finally { + pe = i; + } + } + function xe(t, e, n) { + var r = Ft(t), + i = r.CustomEvent; + 'function' == typeof i + ? (i = new i(e, n)) + : ((i = r.document.createEvent('Event')), + n + ? (i.initEvent(e, n.bubbles, n.cancelable), + (i.detail = n.detail)) + : i.initEvent(e, !1, !1)), + t.dispatchEvent(i); + } + function we(t, e) { + return function() { + return xe(this, t, e); + }; + } + function Se(t, e) { + return function() { + return xe(this, t, e.apply(this, arguments)); + }; + } + 'undefined' != typeof document && + ('onmouseenter' in document.documentElement || + (he = { mouseenter: 'mouseover', mouseleave: 'mouseout' })); + var Ee = [null]; + function ke(t, e) { + (this._groups = t), (this._parents = e); + } + function Ae() { + return new ke([[document.documentElement]], Ee); + } + ke.prototype = Ae.prototype = { + constructor: ke, + select: function(t) { + 'function' != typeof t && (t = St(t)); + for ( + var e = this._groups, n = e.length, r = new Array(n), i = 0; + i < n; + ++i + ) + for ( + var o, + a, + s = e[i], + u = s.length, + l = (r[i] = new Array(u)), + c = 0; + c < u; + ++c + ) + (o = s[c]) && + (a = t.call(o, o.__data__, c, s)) && + ('__data__' in o && (a.__data__ = o.__data__), + (l[c] = a)); + return new ke(r, this._parents); + }, + selectAll: function(t) { + 'function' != typeof t && (t = kt(t)); + for ( + var e = this._groups, n = e.length, r = [], i = [], o = 0; + o < n; + ++o + ) + for (var a, s = e[o], u = s.length, l = 0; l < u; ++l) + (a = s[l]) && + (r.push(t.call(a, a.__data__, l, s)), i.push(a)); + return new ke(r, i); + }, + filter: function(t) { + 'function' != typeof t && (t = At(t)); + for ( + var e = this._groups, n = e.length, r = new Array(n), i = 0; + i < n; + ++i + ) + for ( + var o, a = e[i], s = a.length, u = (r[i] = []), l = 0; + l < s; + ++l + ) + (o = a[l]) && t.call(o, o.__data__, l, a) && u.push(o); + return new ke(r, this._parents); + }, + data: function(t, e) { + if (!t) + return ( + (p = new Array(this.size())), + (c = -1), + this.each(function(t) { + p[++c] = t; }), - (p = x.legend - .selectAll('.' + w.legendItem) - .data(t) - .enter() - .append('g') - .attr('class', function(t) { - return x.generateClass(w.legendItem, t); - }) - .style('visibility', function(t) { - return x.isLegendToShow(t) ? 'visible' : 'hidden'; - }) - .style('cursor', 'pointer') - .on('click', function(t) { - S.legend_item_onclick - ? S.legend_item_onclick.call(x, t) - : x.d3.event.altKey - ? (x.api.hide(), x.api.show(t)) - : (x.api.toggle(t), - x.isTargetToShow(t) - ? x.api.focus(t) - : x.api.revert()); - }) - .on('mouseover', function(t) { - S.legend_item_onmouseover - ? S.legend_item_onmouseover.call(x, t) - : (x.d3 - .select(this) - .classed(w.legendItemFocused, !0), - !x.transiting && - x.isTargetToShow(t) && - x.api.focus(t)); - }) - .on('mouseout', function(t) { - S.legend_item_onmouseout - ? S.legend_item_onmouseout.call(x, t) - : (x.d3 - .select(this) - .classed(w.legendItemFocused, !1), - x.api.revert()); - })) - .append('text') - .text(function(t) { - return d(S.data_names[t]) ? S.data_names[t] : t; - }) - .each(function(t, e) { - j(this, t, e); - }) - .style('pointer-events', 'none') - .attr( - 'x', - x.isLegendRight || x.isLegendInset ? i : -200 - ) - .attr( - 'y', - x.isLegendRight || x.isLegendInset ? -200 : s - ), - p - .append('rect') - .attr('class', w.legendItemEvent) - .style('fill-opacity', 0) - .attr( - 'x', - x.isLegendRight || x.isLegendInset ? o : -200 - ) - .attr( - 'y', - x.isLegendRight || x.isLegendInset ? -200 : l - ), p - .append('line') - .attr('class', w.legendItemTile) - .style('stroke', x.color) - .style('pointer-events', 'none') - .attr( - 'x1', - x.isLegendRight || x.isLegendInset ? c : -200 - ) - .attr( - 'y1', - x.isLegendRight || x.isLegendInset ? -200 : h - ) - .attr( - 'x2', - x.isLegendRight || x.isLegendInset ? f : -200 - ) - .attr( - 'y2', - x.isLegendRight || x.isLegendInset ? -200 : h - ) - .attr('stroke-width', S.legend_item_tile_height), - (_ = x.legend.select('.' + w.legendBackground + ' rect')), - x.isLegendInset && - E > 0 && - 0 === _.size() && - (_ = x.legend - .insert('g', '.' + w.legendItem) - .attr('class', w.legendBackground) - .append('rect')), - (m = x.legend - .selectAll('text') - .data(t) - .text(function(t) { - return d(S.data_names[t]) ? S.data_names[t] : t; - }) - .each(function(t, e) { - j(this, t, e); - })), - (g ? m.transition() : m).attr('x', i).attr('y', s), - (y = x.legend - .selectAll('rect.' + w.legendItemEvent) - .data(t)), - (g ? y.transition() : y) - .attr('width', function(t) { - return O[t]; - }) - .attr('height', function(t) { - return P[t]; - }) - .attr('x', o) - .attr('y', l), - (b = x.legend - .selectAll('line.' + w.legendItemTile) - .data(t)), - (g ? b.transition() : b) - .style( - 'stroke', - x.levelColor - ? function(t) { - return x.levelColor(x.cache[t].values[0].value); - } - : x.color - ) - .attr('x1', c) - .attr('y1', h) - .attr('x2', f) - .attr('y2', h), - _ && - (g ? _.transition() : _) - .attr('height', x.getLegendHeight() - 12) - .attr('width', E * (D + 1) + 10), - x.legend - .selectAll('.' + w.legendItem) - .classed(w.legendItemHidden, function(t) { - return !x.isTargetToShow(t); - }), - x.updateLegendItemWidth(E), - x.updateLegendItemHeight(k), - x.updateLegendStep(D), - x.updateSizes(), - x.updateScales(), - x.updateSvgSize(), - x.transformAll(v, n), - (x.legendHasRendered = !0); - }), - (r.prototype.initRegion = function() { - this.region = this.main - .append('g') - .attr('clip-path', this.clipPath) - .attr('class', w.regions); - }), - (r.prototype.updateRegion = function(t) { - var e = this, - n = e.config; - e.region.style( - 'visibility', - e.hasArcType() ? 'hidden' : 'visible' ); - var r = e.main - .select('.' + w.regions) - .selectAll('.' + w.region) - .data(n.regions), - i = r.enter().append('g'); - i - .append('rect') - .attr('x', e.regionX.bind(e)) - .attr('y', e.regionY.bind(e)) - .attr('width', e.regionWidth.bind(e)) - .attr('height', e.regionHeight.bind(e)) - .style('fill-opacity', function(t) { - return y(t.opacity) ? t.opacity : 0.1; - }), - i.append('text').text(e.labelRegion.bind(e)), - (e.mainRegion = i - .merge(r) - .attr('class', e.classRegion.bind(e))), - r - .exit() - .transition() - .duration(t) - .style('opacity', 0) - .remove(); - }), - (r.prototype.redrawRegion = function(t, e) { - var n = this, - r = n.mainRegion, - i = n.mainRegion.selectAll('text'); - return [ - (t ? r.transition(e) : r) - .attr('x', n.regionX.bind(n)) - .attr('y', n.regionY.bind(n)) - .attr('width', n.regionWidth.bind(n)) - .attr('height', n.regionHeight.bind(n)) - .style('fill-opacity', function(t) { - return y(t.opacity) ? t.opacity : 0.1; - }), - (t ? i.transition(e) : i) - .attr('x', n.labelOffsetX.bind(n)) - .attr('y', n.labelOffsetY.bind(n)) - .attr('transform', n.labelTransform.bind(n)) - .attr('style', 'text-anchor: left;') - ]; - }), - (r.prototype.regionX = function(t) { - var e = this, - n = e.config, - r = 'y' === t.axis ? e.y : e.y2; - return 'y' === t.axis || 'y2' === t.axis - ? n.axis_rotated && 'start' in t - ? r(t.start) - : 0 - : n.axis_rotated - ? 0 - : 'start' in t - ? e.x(e.isTimeSeries() ? e.parseDate(t.start) : t.start) - : 0; - }), - (r.prototype.regionY = function(t) { - var e = this, - n = e.config, - r = 'y' === t.axis ? e.y : e.y2; - return 'y' === t.axis || 'y2' === t.axis - ? n.axis_rotated - ? 0 - : 'end' in t - ? r(t.end) - : 0 - : n.axis_rotated && 'start' in t - ? e.x(e.isTimeSeries() ? e.parseDate(t.start) : t.start) - : 0; - }), - (r.prototype.regionWidth = function(t) { - var e, - n = this, - r = n.config, - i = n.regionX(t), - o = 'y' === t.axis ? n.y : n.y2; - return (e = - 'y' === t.axis || 'y2' === t.axis - ? r.axis_rotated && 'end' in t - ? o(t.end) - : n.width - : r.axis_rotated - ? n.width - : 'end' in t - ? n.x(n.isTimeSeries() ? n.parseDate(t.end) : t.end) - : n.width) < i - ? 0 - : e - i; - }), - (r.prototype.regionHeight = function(t) { - var e, - n = this, - r = n.config, - i = this.regionY(t), - o = 'y' === t.axis ? n.y : n.y2; - return (e = - 'y' === t.axis || 'y2' === t.axis - ? r.axis_rotated - ? n.height - : 'start' in t - ? o(t.start) - : n.height - : r.axis_rotated && 'end' in t - ? n.x(n.isTimeSeries() ? n.parseDate(t.end) : t.end) - : n.height) < i - ? 0 - : e - i; - }), - (r.prototype.isRegionOnX = function(t) { - return !t.axis || 'x' === t.axis; - }), - (r.prototype.labelRegion = function(t) { - return 'label' in t ? t.label : ''; - }), - (r.prototype.labelTransform = function(t) { - return 'vertical' in t && t.vertical ? 'rotate(90)' : ''; - }), - (r.prototype.labelOffsetX = function(t) { - var e = 'paddingX' in t ? t.paddingX : 3, - n = 'paddingY' in t ? t.paddingY : 3; - return 'vertical' in t && t.vertical - ? this.regionY(t) + n - : this.regionX(t) + e; - }), - (r.prototype.labelOffsetY = function(t) { - var e = 'paddingX' in t ? t.paddingX : 3, - n = 'paddingY' in t ? t.paddingY : 3; - return 'vertical' in t && t.vertical - ? -(this.regionX(t) + e) - : this.regionY(t) + 10 + n; - }), - (r.prototype.getScale = function(t, e, n) { - return (n - ? this.d3.scaleTime() - : this.d3.scaleLinear() - ).range([t, e]); - }), - (r.prototype.getX = function(t, e, n, r) { - var i, - o = this.getScale(t, e, this.isTimeSeries()), - a = n ? o.domain(n) : o; - for (i in (this.isCategorized() - ? ((r = - r || - function() { - return 0; - }), - (o = function(t, e) { - var n = a(t) + r(t); - return e ? n : Math.ceil(n); - })) - : (o = function(t, e) { - var n = a(t); - return e ? n : Math.ceil(n); - }), - a)) - o[i] = a[i]; + var n, + r = e ? Mt : Pt, + i = this._parents, + o = this._groups; + 'function' != typeof t && + ((n = t), + (t = function() { + return n; + })); + for ( + var a = o.length, + s = new Array(a), + u = new Array(a), + l = new Array(a), + c = 0; + c < a; + ++c + ) { + var f = i[c], + d = o[c], + h = d.length, + p = t.call(f, f && f.__data__, c, i), + g = p.length, + m = (u[c] = new Array(g)), + v = (s[c] = new Array(g)); + r(f, d, m, v, (l[c] = new Array(h)), p, e); + for (var y, b, _ = 0, x = 0; _ < g; ++_) + if ((y = m[_])) { + for (_ >= x && (x = _ + 1); !(b = v[x]) && ++x < g; ); + y._next = b || null; + } + } + return ((s = new ke(s, i))._enter = u), (s._exit = l), s; + }, + enter: function() { + return new ke( + this._enter || this._groups.map(Tt), + this._parents + ); + }, + exit: function() { + return new ke( + this._exit || this._groups.map(Tt), + this._parents + ); + }, + join: function(t, e, n) { + var r = this.enter(), + i = this, + o = this.exit(); + return ( + (r = 'function' == typeof t ? t(r) : r.append(t + '')), + null != e && (i = e(i)), + null == n ? o.remove() : n(o), + r && i ? r.merge(i).order() : i + ); + }, + merge: function(t) { + for ( + var e = this._groups, + n = t._groups, + r = e.length, + i = n.length, + o = Math.min(r, i), + a = new Array(r), + s = 0; + s < o; + ++s + ) + for ( + var u, + l = e[s], + c = n[s], + f = l.length, + d = (a[s] = new Array(f)), + h = 0; + h < f; + ++h + ) + (u = l[h] || c[h]) && (d[h] = u); + for (; s < r; ++s) a[s] = e[s]; + return new ke(a, this._parents); + }, + order: function() { + for (var t = this._groups, e = -1, n = t.length; ++e < n; ) + for ( + var r, i = t[e], o = i.length - 1, a = i[o]; + --o >= 0; + + ) + (r = i[o]) && + (a && + 4 ^ r.compareDocumentPosition(a) && + a.parentNode.insertBefore(r, a), + (a = r)); + return this; + }, + sort: function(t) { + function e(e, n) { + return e && n ? t(e.__data__, n.__data__) : !e - !n; + } + t || (t = Lt); + for ( + var n = this._groups, r = n.length, i = new Array(r), o = 0; + o < r; + ++o + ) { + for ( + var a, + s = n[o], + u = s.length, + l = (i[o] = new Array(u)), + c = 0; + c < u; + ++c + ) + (a = s[c]) && (l[c] = a); + l.sort(e); + } + return new ke(i, this._parents).order(); + }, + call: function() { + var t = arguments[0]; + return (arguments[0] = this), t.apply(null, arguments), this; + }, + nodes: function() { + var t = new Array(this.size()), + e = -1; + return ( + this.each(function() { + t[++e] = this; + }), + t + ); + }, + node: function() { + for (var t = this._groups, e = 0, n = t.length; e < n; ++e) + for (var r = t[e], i = 0, o = r.length; i < o; ++i) { + var a = r[i]; + if (a) return a; + } + return null; + }, + size: function() { + var t = 0; + return ( + this.each(function() { + ++t; + }), + t + ); + }, + empty: function() { + return !this.node(); + }, + each: function(t) { + for (var e = this._groups, n = 0, r = e.length; n < r; ++n) + for (var i, o = e[n], a = 0, s = o.length; a < s; ++a) + (i = o[a]) && t.call(i, i.__data__, a, o); + return this; + }, + attr: function(t, e) { + var n = yt(t); + if (arguments.length < 2) { + var r = this.node(); + return n.local + ? r.getAttributeNS(n.space, n.local) + : r.getAttribute(n); + } + return this.each( + (null == e + ? n.local + ? Dt + : jt + : 'function' == typeof e + ? n.local + ? It + : Nt + : n.local + ? zt + : Rt)(n, e) + ); + }, + style: function(t, e, n) { + return arguments.length > 1 + ? this.each( + (null == e ? Vt : 'function' == typeof e ? Gt : Bt)( + t, + e, + null == n ? '' : n + ) + ) + : Ht(this.node(), t); + }, + property: function(t, e) { + return arguments.length > 1 + ? this.each( + (null == e ? Ut : 'function' == typeof e ? Wt : qt)( + t, + e + ) + ) + : this.node()[t]; + }, + classed: function(t, e) { + var n = Xt(t + ''); + if (arguments.length < 2) { + for ( + var r = Yt(this.node()), i = -1, o = n.length; + ++i < o; + + ) + if (!r.contains(n[i])) return !1; + return !0; + } + return this.each( + ('function' == typeof e ? te : e ? Zt : Jt)(n, e) + ); + }, + text: function(t) { + return arguments.length + ? this.each( + null == t ? ee : ('function' == typeof t ? re : ne)(t) + ) + : this.node().textContent; + }, + html: function(t) { + return arguments.length + ? this.each( + null == t ? ie : ('function' == typeof t ? ae : oe)(t) + ) + : this.node().innerHTML; + }, + raise: function() { + return this.each(se); + }, + lower: function() { + return this.each(ue); + }, + append: function(t) { + var e = 'function' == typeof t ? t : xt(t); + return this.select(function() { + return this.appendChild(e.apply(this, arguments)); + }); + }, + insert: function(t, e) { + var n = 'function' == typeof t ? t : xt(t), + r = null == e ? le : 'function' == typeof e ? e : St(e); + return this.select(function() { + return this.insertBefore( + n.apply(this, arguments), + r.apply(this, arguments) || null + ); + }); + }, + remove: function() { + return this.each(ce); + }, + clone: function(t) { + return this.select(t ? de : fe); + }, + datum: function(t) { + return arguments.length + ? this.property('__data__', t) + : this.node().__data__; + }, + on: function(t, e, n) { + var r, + i, + o = ve(t + ''), + a = o.length; + if (!(arguments.length < 2)) { + for ( + s = e ? be : ye, null == n && (n = !1), r = 0; + r < a; + ++r + ) + this.each(s(o[r], e, n)); + return this; + } + var s = this.node().__on; + if (s) + for (var u, l = 0, c = s.length; l < c; ++l) + for (r = 0, u = s[l]; r < a; ++r) + if ((i = o[r]).type === u.type && i.name === u.name) + return u.value; + }, + dispatch: function(t, e) { + return this.each(('function' == typeof e ? Se : we)(t, e)); + } + }; + var Te = Ae, + Ce = function(t) { + return 'string' == typeof t + ? new ke( + [[document.querySelector(t)]], + [document.documentElement] + ) + : new ke([[t]], Ee); + }, + Oe = function(t) { + return Ce(xt(t).call(document.documentElement)); + }, + Pe = 0; + function Me() { + return new Le(); + } + function Le() { + this._ = '@' + (++Pe).toString(36); + } + Le.prototype = Me.prototype = { + constructor: Le, + get: function(t) { + for (var e = this._; !(e in t); ) + if (!(t = t.parentNode)) return; + return t[e]; + }, + set: function(t, e) { + return (t[this._] = e); + }, + remove: function(t) { + return this._ in t && delete t[this._]; + }, + toString: function() { + return this._; + } + }; + var je = function() { + for (var t, e = pe; (t = e.sourceEvent); ) e = t; + return e; + }, + De = function(t, e) { + var n = t.ownerSVGElement || t; + if (n.createSVGPoint) { + var r = n.createSVGPoint(); return ( - (o.orgDomain = function() { - return a.domain(); - }), - this.isCategorized() && - (o.domain = function(t) { - return arguments.length - ? (a.domain(t), o) - : [(t = this.orgDomain())[0], t[1] + 1]; - }), - o + (r.x = e.clientX), + (r.y = e.clientY), + [ + (r = r.matrixTransform(t.getScreenCTM().inverse())).x, + r.y + ] ); - }), - (r.prototype.getY = function(t, e, n) { - var r; - if ('timeseries' === t || 'time' === t) - r = this.d3.scaleTime(); - else if ('log' === t) r = k(this.d3); - else { - if ('linear' !== t && void 0 !== t) - throw new Error( - 'Invalid Y axis type: "'.concat(t, '"') - ); - r = this.d3.scaleLinear(); + } + var i = t.getBoundingClientRect(); + return [ + e.clientX - i.left - t.clientLeft, + e.clientY - i.top - t.clientTop + ]; + }, + Re = function(t) { + var e = je(); + return ( + e.changedTouches && (e = e.changedTouches[0]), De(t, e) + ); + }, + ze = function(t) { + return 'string' == typeof t + ? new ke( + [document.querySelectorAll(t)], + [document.documentElement] + ) + : new ke([null == t ? [] : t], Ee); + }, + Ne = function(t, e, n) { + arguments.length < 3 && ((n = e), (e = je().changedTouches)); + for (var r, i = 0, o = e ? e.length : 0; i < o; ++i) + if ((r = e[i]).identifier === n) return De(t, r); + return null; + }, + Ie = function(t, e) { + null == e && (e = je().touches); + for ( + var n = 0, r = e ? e.length : 0, i = new Array(r); + n < r; + ++n + ) + i[n] = De(t, e[n]); + return i; + }; + function Fe() { + pe.stopImmediatePropagation(); + } + var Ve = function() { + pe.preventDefault(), pe.stopImmediatePropagation(); + }, + Be = function(t) { + var e = t.document.documentElement, + n = Ce(t).on('dragstart.drag', Ve, !0); + 'onselectstart' in e + ? n.on('selectstart.drag', Ve, !0) + : ((e.__noselect = e.style.MozUserSelect), + (e.style.MozUserSelect = 'none')); + }; + function Ge(t, e) { + var n = t.document.documentElement, + r = Ce(t).on('dragstart.drag', null); + e && + (r.on('click.drag', Ve, !0), + setTimeout(function() { + r.on('click.drag', null); + }, 0)), + 'onselectstart' in n + ? r.on('selectstart.drag', null) + : ((n.style.MozUserSelect = n.__noselect), + delete n.__noselect); + } + var He = function(t) { + return function() { + return t; + }; + }; + function Ue(t, e, n, r, i, o, a, s, u, l) { + (this.target = t), + (this.type = e), + (this.subject = n), + (this.identifier = r), + (this.active = i), + (this.x = o), + (this.y = a), + (this.dx = s), + (this.dy = u), + (this._ = l); + } + function qe() { + return !pe.ctrlKey && !pe.button; + } + function We() { + return this.parentNode; + } + function Xe(t) { + return null == t ? { x: pe.x, y: pe.y } : t; + } + function Ye() { + return navigator.maxTouchPoints || 'ontouchstart' in this; + } + Ue.prototype.on = function() { + var t = this._.on.apply(this._, arguments); + return t === this._ ? this : t; + }; + var $e = function() { + var t, + e, + n, + r, + i = qe, + o = We, + a = Xe, + s = Ye, + u = {}, + l = gt('start', 'drag', 'end'), + c = 0, + f = 0; + function d(t) { + t.on('mousedown.drag', h) + .filter(s) + .on('touchstart.drag', m) + .on('touchmove.drag', v) + .on('touchend.drag touchcancel.drag', y) + .style('touch-action', 'none') + .style('-webkit-tap-highlight-color', 'rgba(0,0,0,0)'); + } + function h() { + if (!r && i.apply(this, arguments)) { + var a = b( + 'mouse', + o.apply(this, arguments), + Re, + this, + arguments + ); + a && + (Ce(pe.view) + .on('mousemove.drag', p, !0) + .on('mouseup.drag', g, !0), + Be(pe.view), + Fe(), + (n = !1), + (t = pe.clientX), + (e = pe.clientY), + a('start')); } - return e && r.domain(e), n && r.range(n), r; - }), - (r.prototype.getYScale = function(t) { - return 'y2' === this.axis.getId(t) ? this.y2 : this.y; - }), - (r.prototype.getSubYScale = function(t) { - return 'y2' === this.axis.getId(t) ? this.subY2 : this.subY; - }), - (r.prototype.updateScales = function() { - var t = this, - e = t.config, - n = !t.x; - (t.xMin = e.axis_rotated ? 1 : 0), - (t.xMax = e.axis_rotated ? t.height : t.width), - (t.yMin = e.axis_rotated ? 0 : t.height), - (t.yMax = e.axis_rotated ? t.width : 1), - (t.subXMin = t.xMin), - (t.subXMax = t.xMax), - (t.subYMin = e.axis_rotated ? 0 : t.height2), - (t.subYMax = e.axis_rotated ? t.width2 : 1), - (t.x = t.getX( - t.xMin, - t.xMax, - n ? void 0 : t.x.orgDomain(), + } + function p() { + if ((Ve(), !n)) { + var r = pe.clientX - t, + i = pe.clientY - e; + n = r * r + i * i > f; + } + u.mouse('drag'); + } + function g() { + Ce(pe.view).on('mousemove.drag mouseup.drag', null), + Ge(pe.view, n), + Ve(), + u.mouse('end'); + } + function m() { + if (i.apply(this, arguments)) { + var t, + e, + n = pe.changedTouches, + r = o.apply(this, arguments), + a = n.length; + for (t = 0; t < a; ++t) + (e = b(n[t].identifier, r, Ne, this, arguments)) && + (Fe(), e('start')); + } + } + function v() { + var t, + e, + n = pe.changedTouches, + r = n.length; + for (t = 0; t < r; ++t) + (e = u[n[t].identifier]) && (Ve(), e('drag')); + } + function y() { + var t, + e, + n = pe.changedTouches, + i = n.length; + for ( + r && clearTimeout(r), + r = setTimeout(function() { + r = null; + }, 500), + t = 0; + t < i; + ++t + ) + (e = u[n[t].identifier]) && (Fe(), e('end')); + } + function b(t, e, n, r, i) { + var o, + s, + f, + h = n(e, t), + p = l.copy(); + if ( + _e( + new Ue(d, 'beforestart', o, t, c, h[0], h[1], 0, 0, p), function() { - return t.xAxis.tickOffset(); + return ( + null != (pe.subject = o = a.apply(r, i)) && + ((s = o.x - h[0] || 0), (f = o.y - h[1] || 0), !0) + ); } - )), - (t.y = t.getY( - e.axis_y_type, - n ? e.axis_y_default : t.y.domain(), - [t.yMin, t.yMax] - )), - (t.y2 = t.getY( - e.axis_y2_type, - n ? e.axis_y2_default : t.y2.domain(), - [t.yMin, t.yMax] - )), - (t.subX = t.getX(t.xMin, t.xMax, t.orgXDomain, function( - e - ) { - return e % 1 ? 0 : t.subXAxis.tickOffset(); - })), - (t.subY = t.getY( - e.axis_y_type, - n ? e.axis_y_default : t.subY.domain(), - [t.subYMin, t.subYMax] - )), - (t.subY2 = t.getY( - e.axis_y2_type, - n ? e.axis_y2_default : t.subY2.domain(), - [t.subYMin, t.subYMax] - )), - (t.xAxisTickFormat = t.axis.getXAxisTickFormat()), - (t.xAxisTickValues = t.axis.getXAxisTickValues()), - (t.yAxisTickValues = t.axis.getYAxisTickValues()), - (t.y2AxisTickValues = t.axis.getY2AxisTickValues()), - (t.xAxis = t.axis.getXAxis( - t.x, - t.xOrient, - t.xAxisTickFormat, - t.xAxisTickValues, - e.axis_x_tick_outer - )), - (t.subXAxis = t.axis.getXAxis( - t.subX, - t.subXOrient, - t.xAxisTickFormat, - t.xAxisTickValues, - e.axis_x_tick_outer - )), - (t.yAxis = t.axis.getYAxis( - 'y', - t.y, - t.yOrient, - t.yAxisTickValues, - e.axis_y_tick_outer - )), - (t.y2Axis = t.axis.getYAxis( - 'y2', - t.y2, - t.y2Orient, - t.y2AxisTickValues, - e.axis_y2_tick_outer - )), - n || (t.brush && t.brush.updateScale(t.subX)), - t.updateArc && t.updateArc(); - }), - (r.prototype.selectPoint = function(t, e, n) { - var r = this, - i = r.config, - o = (i.axis_rotated ? r.circleY : r.circleX).bind(r), - a = (i.axis_rotated ? r.circleX : r.circleY).bind(r), - s = r.pointSelectR.bind(r); - i.data_onselected.call(r.api, e, t.node()), - r.main - .select( - '.' + - w.selectedCircles + - r.getTargetSelectorSuffix(e.id) - ) - .selectAll('.' + w.selectedCircle + '-' + n) - .data([e]) - .enter() - .append('circle') - .attr('class', function() { - return r.generateClass(w.selectedCircle, n); - }) - .attr('cx', o) - .attr('cy', a) - .attr('stroke', function() { - return r.color(e); - }) - .attr('r', function(t) { - return 1.4 * r.pointSelectR(t); - }) - .transition() - .duration(100) - .attr('r', s); - }), - (r.prototype.unselectPoint = function(t, e, n) { - this.config.data_onunselected.call(this.api, e, t.node()), - this.main - .select( - '.' + - w.selectedCircles + - this.getTargetSelectorSuffix(e.id) - ) - .selectAll('.' + w.selectedCircle + '-' + n) - .transition() - .duration(100) - .attr('r', 0) - .remove(); - }), - (r.prototype.togglePoint = function(t, e, n, r) { - t ? this.selectPoint(e, n, r) : this.unselectPoint(e, n, r); - }), - (r.prototype.selectPath = function(t, e) { - var n = this; - n.config.data_onselected.call(n, e, t.node()), - n.config.interaction_brighten && - t - .transition() - .duration(100) - .style('fill', function() { - return n.d3.rgb(n.color(e)).brighter(0.75); - }); - }), - (r.prototype.unselectPath = function(t, e) { - var n = this; - n.config.data_onunselected.call(n, e, t.node()), - n.config.interaction_brighten && - t - .transition() - .duration(100) - .style('fill', function() { - return n.color(e); - }); - }), - (r.prototype.togglePath = function(t, e, n, r) { - t ? this.selectPath(e, n, r) : this.unselectPath(e, n, r); - }), - (r.prototype.getToggle = function(t, e) { - var n; - return ( - 'circle' === t.nodeName - ? (n = this.isStepType(e) - ? function() {} - : this.togglePoint) - : 'path' === t.nodeName && (n = this.togglePath), - n - ); - }), - (r.prototype.toggleShape = function(t, e, n) { - var r = this, - i = r.d3, - o = r.config, - a = i.select(t), - s = a.classed(w.SELECTED), - u = r.getToggle(t, e).bind(r); - o.data_selection_enabled && - o.data_selection_isselectable(e) && - (o.data_selection_multiple || - r.main - .selectAll( - '.' + - w.shapes + - (o.data_selection_grouped - ? r.getTargetSelectorSuffix(e.id) - : '') + ) + ) + return function a(l) { + var g, + m = h; + switch (l) { + case 'start': + (u[t] = a), (g = c++); + break; + case 'end': + delete u[t], --c; + case 'drag': + (h = n(e, t)), (g = c); + } + _e( + new Ue( + d, + l, + o, + t, + g, + h[0] + s, + h[1] + f, + h[0] - m[0], + h[1] - m[1], + p + ), + p.apply, + p, + [l, r, i] + ); + }; + } + return ( + (d.filter = function(t) { + return arguments.length + ? ((i = 'function' == typeof t ? t : He(!!t)), d) + : i; + }), + (d.container = function(t) { + return arguments.length + ? ((o = 'function' == typeof t ? t : He(t)), d) + : o; + }), + (d.subject = function(t) { + return arguments.length + ? ((a = 'function' == typeof t ? t : He(t)), d) + : a; + }), + (d.touchable = function(t) { + return arguments.length + ? ((s = 'function' == typeof t ? t : He(!!t)), d) + : s; + }), + (d.on = function() { + var t = l.on.apply(l, arguments); + return t === l ? d : t; + }), + (d.clickDistance = function(t) { + return arguments.length + ? ((f = (t = +t) * t), d) + : Math.sqrt(f); + }), + d + ); + }, + Ke = function(t, e, n) { + (t.prototype = e.prototype = n), (n.constructor = t); + }; + function Qe(t, e) { + var n = Object.create(t.prototype); + for (var r in e) n[r] = e[r]; + return n; + } + function Ze() {} + var Je = '\\s*([+-]?\\d+)\\s*', + tn = '\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*', + en = '\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*', + nn = /^#([0-9a-f]{3,8})$/, + rn = new RegExp('^rgb\\(' + [Je, Je, Je] + '\\)$'), + on = new RegExp('^rgb\\(' + [en, en, en] + '\\)$'), + an = new RegExp('^rgba\\(' + [Je, Je, Je, tn] + '\\)$'), + sn = new RegExp('^rgba\\(' + [en, en, en, tn] + '\\)$'), + un = new RegExp('^hsl\\(' + [tn, en, en] + '\\)$'), + ln = new RegExp('^hsla\\(' + [tn, en, en, tn] + '\\)$'), + cn = { + 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 fn() { + return this.rgb().formatHex(); + } + function dn() { + return this.rgb().formatRgb(); + } + function hn(t) { + var e, n; + return ( + (t = (t + '').trim().toLowerCase()), + (e = nn.exec(t)) + ? ((n = e[1].length), + (e = parseInt(e[1], 16)), + 6 === n + ? pn(e) + : 3 === n + ? new yn( + ((e >> 8) & 15) | ((e >> 4) & 240), + ((e >> 4) & 15) | (240 & e), + ((15 & e) << 4) | (15 & e), + 1 ) - .selectAll('.' + w.shape) - .each(function(t, e) { - var n = i.select(this); - n.classed(w.SELECTED) && - u(!1, n.classed(w.SELECTED, !1), t, e); - }), - a.classed(w.SELECTED, !s), - u(!s, a, e, n)); - }), - (r.prototype.initBar = function() { - this.main - .select('.' + w.chart) - .append('g') - .attr('class', w.chartBars); - }), - (r.prototype.updateTargetsForBar = function(t) { - var e = this, - n = e.config, - r = e.classChartBar.bind(e), - i = e.classBars.bind(e), - o = e.classFocus.bind(e); - e.main - .select('.' + w.chartBars) - .selectAll('.' + w.chartBar) - .data(t) - .attr('class', function(t) { - return r(t) + o(t); - }) - .enter() - .append('g') - .attr('class', r) - .style('pointer-events', 'none') - .append('g') - .attr('class', i) - .style('cursor', function(t) { - return n.data_selection_isselectable(t) - ? 'pointer' - : null; - }); - }), - (r.prototype.updateBar = function(t) { - var e = this, - n = e.barData.bind(e), - r = e.classBar.bind(e), - i = e.initialOpacity.bind(e), - o = function(t) { - return e.color(t.id); - }, - a = e.main - .selectAll('.' + w.bars) - .selectAll('.' + w.bar) - .data(n), - s = a - .enter() - .append('path') - .attr('class', r) - .style('stroke', o) - .style('fill', o); - (e.mainBar = s.merge(a).style('opacity', i)), - a - .exit() - .transition() - .duration(t) - .style('opacity', 0); - }), - (r.prototype.redrawBar = function(t, e, n) { - var r = this; - return [ - (e ? this.mainBar.transition(n) : this.mainBar) - .attr('d', t) - .style('stroke', this.color) - .style('fill', this.color) - .style('opacity', function(t) { - return r.isTargetToShow(t.id) ? 1 : 0; - }) - ]; - }), - (r.prototype.getBarW = function(t, e) { - var n = this.config, - r = - 'number' == typeof n.bar_width - ? n.bar_width - : e - ? (t.tickInterval() * n.bar_width_ratio) / e - : 0; - return n.bar_width_max && r > n.bar_width_max - ? n.bar_width_max - : r; - }), - (r.prototype.getBars = function(t, e) { - return (e - ? this.main.selectAll( - '.' + w.bars + this.getTargetSelectorSuffix(e) - ) - : this.main - ).selectAll('.' + w.bar + (y(t) ? '-' + t : '')); - }), - (r.prototype.expandBars = function(t, e, n) { - n && this.unexpandBars(), - this.getBars(t, e).classed(w.EXPANDED, !0); - }), - (r.prototype.unexpandBars = function(t) { - this.getBars(t).classed(w.EXPANDED, !1); - }), - (r.prototype.generateDrawBar = function(t, e) { - var n = this.config, - r = this.generateGetBarPoints(t, e); - return function(t, e) { - var i = r(t, e), - o = n.axis_rotated ? 1 : 0, - a = n.axis_rotated ? 0 : 1; + : 8 === n + ? new yn( + (e >> 24) & 255, + (e >> 16) & 255, + (e >> 8) & 255, + (255 & e) / 255 + ) + : 4 === n + ? new yn( + ((e >> 12) & 15) | ((e >> 8) & 240), + ((e >> 8) & 15) | ((e >> 4) & 240), + ((e >> 4) & 15) | (240 & e), + (((15 & e) << 4) | (15 & e)) / 255 + ) + : null) + : (e = rn.exec(t)) + ? new yn(e[1], e[2], e[3], 1) + : (e = on.exec(t)) + ? new yn( + (255 * e[1]) / 100, + (255 * e[2]) / 100, + (255 * e[3]) / 100, + 1 + ) + : (e = an.exec(t)) + ? gn(e[1], e[2], e[3], e[4]) + : (e = sn.exec(t)) + ? gn( + (255 * e[1]) / 100, + (255 * e[2]) / 100, + (255 * e[3]) / 100, + e[4] + ) + : (e = un.exec(t)) + ? wn(e[1], e[2] / 100, e[3] / 100, 1) + : (e = ln.exec(t)) + ? wn(e[1], e[2] / 100, e[3] / 100, e[4]) + : cn.hasOwnProperty(t) + ? pn(cn[t]) + : 'transparent' === t + ? new yn(NaN, NaN, NaN, 0) + : null + ); + } + function pn(t) { + return new yn((t >> 16) & 255, (t >> 8) & 255, 255 & t, 1); + } + function gn(t, e, n, r) { + return r <= 0 && (t = e = n = NaN), new yn(t, e, n, r); + } + function mn(t) { + return ( + t instanceof Ze || (t = hn(t)), + t ? new yn((t = t.rgb()).r, t.g, t.b, t.opacity) : new yn() + ); + } + function vn(t, e, n, r) { + return 1 === arguments.length + ? mn(t) + : new yn(t, e, n, null == r ? 1 : r); + } + function yn(t, e, n, r) { + (this.r = +t), + (this.g = +e), + (this.b = +n), + (this.opacity = +r); + } + function bn() { + return '#' + xn(this.r) + xn(this.g) + xn(this.b); + } + function _n() { + var t = this.opacity; + return ( + (1 === (t = isNaN(t) ? 1 : Math.max(0, Math.min(1, t))) + ? '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 === t ? ')' : ', ' + t + ')') + ); + } + function xn(t) { + return ( + ((t = Math.max(0, Math.min(255, Math.round(t) || 0))) < 16 + ? '0' + : '') + t.toString(16) + ); + } + function wn(t, e, n, r) { + return ( + r <= 0 + ? (t = e = n = NaN) + : n <= 0 || n >= 1 + ? (t = e = NaN) + : e <= 0 && (t = NaN), + new kn(t, e, n, r) + ); + } + function Sn(t) { + if (t instanceof kn) return new kn(t.h, t.s, t.l, t.opacity); + if ((t instanceof Ze || (t = hn(t)), !t)) return new kn(); + if (t instanceof kn) return t; + var e = (t = t.rgb()).r / 255, + n = t.g / 255, + r = t.b / 255, + i = Math.min(e, n, r), + o = Math.max(e, n, r), + a = NaN, + s = o - i, + u = (o + i) / 2; + return ( + s + ? ((a = + e === o + ? (n - r) / s + 6 * (n < r) + : n === o + ? (r - e) / s + 2 + : (e - n) / s + 4), + (s /= u < 0.5 ? o + i : 2 - o - i), + (a *= 60)) + : (s = u > 0 && u < 1 ? 0 : a), + new kn(a, s, u, t.opacity) + ); + } + function En(t, e, n, r) { + return 1 === arguments.length + ? Sn(t) + : new kn(t, e, n, null == r ? 1 : r); + } + function kn(t, e, n, r) { + (this.h = +t), + (this.s = +e), + (this.l = +n), + (this.opacity = +r); + } + function An(t, e, n) { + return ( + 255 * + (t < 60 + ? e + ((n - e) * t) / 60 + : t < 180 + ? n + : t < 240 + ? e + ((n - e) * (240 - t)) / 60 + : e) + ); + } + function Tn(t, e, n, r, i) { + var o = t * t, + a = o * t; + return ( + ((1 - 3 * t + 3 * o - a) * e + + (4 - 6 * o + 3 * a) * n + + (1 + 3 * t + 3 * o - 3 * a) * r + + a * i) / + 6 + ); + } + Ke(Ze, hn, { + copy: function(t) { + return Object.assign(new this.constructor(), this, t); + }, + displayable: function() { + return this.rgb().displayable(); + }, + hex: fn, + formatHex: fn, + formatHsl: function() { + return Sn(this).formatHsl(); + }, + formatRgb: dn, + toString: dn + }), + Ke( + yn, + vn, + Qe(Ze, { + brighter: function(t) { return ( - 'M ' + - i[0][o] + - ',' + - i[0][a] + - ' L' + - i[1][o] + - ',' + - i[1][a] + - ' L' + - i[2][o] + - ',' + - i[2][a] + - ' L' + - i[3][o] + - ',' + - i[3][a] + - ' z' + (t = null == t ? 1 / 0.7 : Math.pow(1 / 0.7, t)), + new yn(this.r * t, this.g * t, this.b * t, this.opacity) ); - }; - }), - (r.prototype.generateGetBarPoints = function(t, e) { - var n = this, - r = e ? n.subXAxis : n.xAxis, - i = t.__max__ + 1, - o = n.getBarW(r, i), - a = n.getShapeX(o, i, t, !!e), - s = n.getShapeY(!!e), - u = n.getShapeOffset(n.isBarType, t, !!e), - l = o * (n.config.bar_space / 2), - c = e ? n.getSubYScale : n.getYScale; - return function(t, e) { - var r = c.call(n, t.id)(0), - i = u(t, e) || r, - f = a(t), - d = s(t); + }, + darker: function(t) { + return ( + (t = null == t ? 0.7 : Math.pow(0.7, t)), + new yn(this.r * t, this.g * t, this.b * t, this.opacity) + ); + }, + rgb: function() { + return this; + }, + displayable: function() { + return ( + -0.5 <= this.r && + this.r < 255.5 && + -0.5 <= this.g && + this.g < 255.5 && + -0.5 <= this.b && + this.b < 255.5 && + 0 <= this.opacity && + this.opacity <= 1 + ); + }, + hex: bn, + formatHex: bn, + formatRgb: _n, + toString: _n + }) + ), + Ke( + kn, + En, + Qe(Ze, { + brighter: function(t) { + return ( + (t = null == t ? 1 / 0.7 : Math.pow(1 / 0.7, t)), + new kn(this.h, this.s, this.l * t, this.opacity) + ); + }, + darker: function(t) { + return ( + (t = null == t ? 0.7 : Math.pow(0.7, t)), + new kn(this.h, this.s, this.l * t, this.opacity) + ); + }, + rgb: function() { + var t = (this.h % 360) + 360 * (this.h < 0), + e = isNaN(t) || isNaN(this.s) ? 0 : this.s, + n = this.l, + r = n + (n < 0.5 ? n : 1 - n) * e, + i = 2 * n - r; + return new yn( + An(t >= 240 ? t - 240 : t + 120, i, r), + An(t, i, r), + An(t < 120 ? t + 240 : t - 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 t = this.opacity; return ( - n.config.axis_rotated && - ((0 < t.value && d < r) || (t.value < 0 && r < d)) && - (d = r), - [ - [f + l, i], - [f + l, (d -= r - i)], - [f + o - l, d], - [f + o - l, i] - ] + (1 === (t = isNaN(t) ? 1 : Math.max(0, Math.min(1, t))) + ? 'hsl(' + : 'hsla(') + + (this.h || 0) + + ', ' + + 100 * (this.s || 0) + + '%, ' + + 100 * (this.l || 0) + + '%' + + (1 === t ? ')' : ', ' + t + ')') ); + } + }) + ); + var Cn = function(t) { + var e = t.length - 1; + return function(n) { + var r = + n <= 0 + ? (n = 0) + : n >= 1 + ? ((n = 1), e - 1) + : Math.floor(n * e), + i = t[r], + o = t[r + 1], + a = r > 0 ? t[r - 1] : 2 * i - o, + s = r < e - 1 ? t[r + 2] : 2 * o - i; + return Tn((n - r / e) * e, a, i, o, s); + }; + }, + On = function(t) { + var e = t.length; + return function(n) { + var r = Math.floor(((n %= 1) < 0 ? ++n : n) * e), + i = t[(r + e - 1) % e], + o = t[r % e], + a = t[(r + 1) % e], + s = t[(r + 2) % e]; + return Tn((n - r / e) * e, i, o, a, s); + }; + }, + Pn = function(t) { + return function() { + return t; + }; + }; + function Mn(t, e) { + return function(n) { + return t + n * e; + }; + } + function Ln(t, e) { + var n = e - t; + return n + ? Mn( + t, + n > 180 || n < -180 ? n - 360 * Math.round(n / 360) : n + ) + : Pn(isNaN(t) ? e : t); + } + function jn(t) { + return 1 == (t = +t) + ? Dn + : function(e, n) { + return n - e + ? (function(t, e, n) { + return ( + (t = Math.pow(t, n)), + (e = Math.pow(e, n) - t), + (n = 1 / n), + function(r) { + return Math.pow(t + r * e, n); + } + ); + })(e, n, t) + : Pn(isNaN(e) ? n : e); }; - }), - (r.prototype.isWithinBar = function(t, e) { - return (function(t, e) { - var n = - arguments.length > 2 && void 0 !== arguments[2] - ? arguments[2] - : 0, - r = e.x - n, - i = e.x + e.width + n, - o = e.y + e.height + n, - a = e.y - n; - return r < t[0] && t[0] < i && a < t[1] && t[1] < o; - })(t, c(e), 2); - }), - (r.prototype.getShapeIndices = function(t) { - var e, - n, - r = this.config, - i = {}, - o = 0; + } + function Dn(t, e) { + var n = e - t; + return n ? Mn(t, n) : Pn(isNaN(t) ? e : t); + } + var Rn = (function t(e) { + var n = jn(e); + function r(t, e) { + var r = n((t = vn(t)).r, (e = vn(e)).r), + i = n(t.g, e.g), + o = n(t.b, e.b), + a = Dn(t.opacity, e.opacity); + return function(e) { return ( - this.filterTargetsToShow( - this.data.targets.filter(t, this) - ).forEach(function(t) { - for (e = 0; e < r.data_groups.length; e++) - if (!(r.data_groups[e].indexOf(t.id) < 0)) - for (n = 0; n < r.data_groups[e].length; n++) - if (r.data_groups[e][n] in i) { - i[t.id] = i[r.data_groups[e][n]]; - break; - } - m(i[t.id]) && (i[t.id] = o++); - }), - (i.__max__ = o - 1), - i + (t.r = r(e)), + (t.g = i(e)), + (t.b = o(e)), + (t.opacity = a(e)), + t + '' ); - }), - (r.prototype.getShapeX = function(t, e, n, r) { - var i = r ? this.subX : this.x; - return function(r) { - var o = r.id in n ? n[r.id] : 0; - return r.x || 0 === r.x ? i(r.x) - t * (e / 2 - o) : 0; - }; - }), - (r.prototype.getShapeY = function(t) { - var e = this; - return function(n) { - return (t ? e.getSubYScale(n.id) : e.getYScale(n.id))( - e.isTargetNormalized(n.id) - ? e.getRatio('index', n, !0) - : n.value - ); - }; - }), - (r.prototype.getShapeOffset = function(t, e, n) { - var r = this, - i = r.orderTargets( - r.filterTargetsToShow(r.data.targets.filter(t, r)) + }; + } + return (r.gamma = t), r; + })(1); + function zn(t) { + return function(e) { + var n, + r, + i = e.length, + o = new Array(i), + a = new Array(i), + s = new Array(i); + for (n = 0; n < i; ++n) + (r = vn(e[n])), + (o[n] = r.r || 0), + (a[n] = r.g || 0), + (s[n] = r.b || 0); + return ( + (o = t(o)), + (a = t(a)), + (s = t(s)), + (r.opacity = 1), + function(t) { + return (r.r = o(t)), (r.g = a(t)), (r.b = s(t)), r + ''; + } + ); + }; + } + var Nn, + In, + Fn, + Vn, + Bn = zn(Cn), + Gn = zn(On), + Hn = function(t, e) { + var n, + r = e ? e.length : 0, + i = t ? Math.min(r, t.length) : 0, + o = new Array(i), + a = new Array(r); + for (n = 0; n < i; ++n) o[n] = Kn(t[n], e[n]); + for (; n < r; ++n) a[n] = e[n]; + return function(t) { + for (n = 0; n < i; ++n) a[n] = o[n](t); + return a; + }; + }, + Un = function(t, e) { + var n = new Date(); + return ( + (e -= t = +t), + function(r) { + return n.setTime(t + e * r), n; + } + ); + }, + qn = function(t, e) { + return ( + (e -= t = +t), + function(n) { + return t + e * n; + } + ); + }, + Wn = function(t, e) { + var n, + r = {}, + i = {}; + for (n in ((null !== t && 'object' == typeof t) || (t = {}), + (null !== e && 'object' == typeof e) || (e = {}), + e)) + n in t ? (r[n] = Kn(t[n], e[n])) : (i[n] = e[n]); + return function(t) { + for (n in r) i[n] = r[n](t); + return i; + }; + }, + Xn = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, + Yn = new RegExp(Xn.source, 'g'), + $n = function(t, e) { + var n, + r, + i, + o = (Xn.lastIndex = Yn.lastIndex = 0), + a = -1, + s = [], + u = []; + for (t += '', e += ''; (n = Xn.exec(t)) && (r = Yn.exec(e)); ) + (i = r.index) > o && + ((i = e.slice(o, i)), s[a] ? (s[a] += i) : (s[++a] = i)), + (n = n[0]) === (r = r[0]) + ? s[a] + ? (s[a] += r) + : (s[++a] = r) + : ((s[++a] = null), u.push({ i: a, x: qn(n, r) })), + (o = Yn.lastIndex); + return ( + o < e.length && + ((i = e.slice(o)), s[a] ? (s[a] += i) : (s[++a] = i)), + s.length < 2 + ? u[0] + ? (function(t) { + return function(e) { + return t(e) + ''; + }; + })(u[0].x) + : (function(t) { + return function() { + return t; + }; + })(e) + : ((e = u.length), + function(t) { + for (var n, r = 0; r < e; ++r) + s[(n = u[r]).i] = n.x(t); + return s.join(''); + }) + ); + }, + Kn = function(t, e) { + var n, + r = typeof e; + return null == e || 'boolean' === r + ? Pn(e) + : ('number' === r + ? qn + : 'string' === r + ? (n = hn(e)) + ? ((e = n), Rn) + : $n + : e instanceof hn + ? Rn + : e instanceof Date + ? Un + : Array.isArray(e) + ? Hn + : ('function' != typeof e.valueOf && + 'function' != typeof e.toString) || + isNaN(e) + ? Wn + : qn)(t, e); + }, + Qn = function(t) { + var e = t.length; + return function(n) { + return t[Math.max(0, Math.min(e - 1, Math.floor(n * e)))]; + }; + }, + Zn = function(t, e) { + var n = Ln(+t, +e); + return function(t) { + var e = n(t); + return e - 360 * Math.floor(e / 360); + }; + }, + Jn = function(t, e) { + return ( + (e -= t = +t), + function(n) { + return Math.round(t + e * n); + } + ); + }, + tr = 180 / Math.PI, + er = { + translateX: 0, + translateY: 0, + rotate: 0, + skewX: 0, + scaleX: 1, + scaleY: 1 + }, + nr = function(t, e, n, r, i, o) { + var a, s, u; + return ( + (a = Math.sqrt(t * t + e * e)) && ((t /= a), (e /= a)), + (u = t * n + e * r) && ((n -= t * u), (r -= e * u)), + (s = Math.sqrt(n * n + r * r)) && + ((n /= s), (r /= s), (u /= s)), + t * r < e * n && ((t = -t), (e = -e), (u = -u), (a = -a)), + { + translateX: i, + translateY: o, + rotate: Math.atan2(e, t) * tr, + skewX: Math.atan(u) * tr, + scaleX: a, + scaleY: s + } + ); + }; + function rr(t, e, n, r) { + function i(t) { + return t.length ? t.pop() + ' ' : ''; + } + return function(o, a) { + var s = [], + u = []; + return ( + (o = t(o)), + (a = t(a)), + (function(t, r, i, o, a, s) { + if (t !== i || r !== o) { + var u = a.push('translate(', null, e, null, n); + s.push( + { i: u - 4, x: qn(t, i) }, + { i: u - 2, x: qn(r, o) } + ); + } else (i || o) && a.push('translate(' + i + e + o + n); + })( + o.translateX, + o.translateY, + a.translateX, + a.translateY, + s, + u + ), + (function(t, e, n, o) { + t !== e + ? (t - e > 180 ? (e += 360) : e - t > 180 && (t += 360), + o.push({ + i: n.push(i(n) + 'rotate(', null, r) - 2, + x: qn(t, e) + })) + : e && n.push(i(n) + 'rotate(' + e + r); + })(o.rotate, a.rotate, s, u), + (function(t, e, n, o) { + t !== e + ? o.push({ + i: n.push(i(n) + 'skewX(', null, r) - 2, + x: qn(t, e) + }) + : e && n.push(i(n) + 'skewX(' + e + r); + })(o.skewX, a.skewX, s, u), + (function(t, e, n, r, o, a) { + if (t !== n || e !== r) { + var s = o.push(i(o) + 'scale(', null, ',', null, ')'); + a.push( + { i: s - 4, x: qn(t, n) }, + { i: s - 2, x: qn(e, r) } + ); + } else + (1 === n && 1 === r) || + o.push(i(o) + 'scale(' + n + ',' + r + ')'); + })(o.scaleX, o.scaleY, a.scaleX, a.scaleY, s, u), + (o = a = null), + function(t) { + for (var e, n = -1, r = u.length; ++n < r; ) + s[(e = u[n]).i] = e.x(t); + return s.join(''); + } + ); + }; + } + var ir = rr( + function(t) { + return 'none' === t + ? er + : (Nn || + ((Nn = document.createElement('DIV')), + (In = document.documentElement), + (Fn = document.defaultView)), + (Nn.style.transform = t), + (t = Fn.getComputedStyle( + In.appendChild(Nn), + null + ).getPropertyValue('transform')), + In.removeChild(Nn), + (t = t.slice(7, -1).split(',')), + nr(+t[0], +t[1], +t[2], +t[3], +t[4], +t[5])); + }, + 'px, ', + 'px)', + 'deg)' + ), + or = rr( + function(t) { + return null == t + ? er + : (Vn || + (Vn = document.createElementNS( + 'http://www.w3.org/2000/svg', + 'g' + )), + Vn.setAttribute('transform', t), + (t = Vn.transform.baseVal.consolidate()) + ? ((t = t.matrix), nr(t.a, t.b, t.c, t.d, t.e, t.f)) + : er); + }, + ', ', + ')', + ')' + ), + ar = Math.SQRT2; + function sr(t) { + return ((t = Math.exp(t)) + 1 / t) / 2; + } + var ur = function(t, e) { + var n, + r, + i = t[0], + o = t[1], + a = t[2], + s = e[0], + u = e[1], + l = e[2], + c = s - i, + f = u - o, + d = c * c + f * f; + if (d < 1e-12) + (r = Math.log(l / a) / ar), + (n = function(t) { + return [i + t * c, o + t * f, a * Math.exp(ar * t * r)]; + }); + else { + var h = Math.sqrt(d), + p = (l * l - a * a + 4 * d) / (2 * a * 2 * h), + g = (l * l - a * a - 4 * d) / (2 * l * 2 * h), + m = Math.log(Math.sqrt(p * p + 1) - p), + v = Math.log(Math.sqrt(g * g + 1) - g); + (r = (v - m) / ar), + (n = function(t) { + var e, + n = t * r, + s = sr(m), + u = + (a / (2 * h)) * + (s * + ((e = ar * n + m), + ((e = Math.exp(2 * e)) - 1) / (e + 1)) - + (function(t) { + return ((t = Math.exp(t)) - 1 / t) / 2; + })(m)); + return [i + u * c, o + u * f, (a * s) / sr(ar * n + m)]; + }); + } + return (n.duration = 1e3 * r), n; + }; + function lr(t) { + return function(e, n) { + var r = t((e = En(e)).h, (n = En(n)).h), + i = Dn(e.s, n.s), + o = Dn(e.l, n.l), + a = Dn(e.opacity, n.opacity); + return function(t) { + return ( + (e.h = r(t)), + (e.s = i(t)), + (e.l = o(t)), + (e.opacity = a(t)), + e + '' + ); + }; + }; + } + var cr = lr(Ln), + fr = lr(Dn), + dr = Math.PI / 180, + hr = 180 / Math.PI, + pr = 0.96422, + gr = 1, + mr = 0.82521, + vr = 4 / 29, + yr = 6 / 29, + br = 3 * yr * yr, + _r = yr * yr * yr; + function xr(t) { + if (t instanceof Er) return new Er(t.l, t.a, t.b, t.opacity); + if (t instanceof Lr) return jr(t); + t instanceof yn || (t = mn(t)); + var e, + n, + r = Cr(t.r), + i = Cr(t.g), + o = Cr(t.b), + a = kr((0.2225045 * r + 0.7168786 * i + 0.0606169 * o) / gr); + return ( + r === i && i === o + ? (e = n = a) + : ((e = kr( + (0.4360747 * r + 0.3850649 * i + 0.1430804 * o) / pr + )), + (n = kr( + (0.0139322 * r + 0.0971045 * i + 0.7141733 * o) / mr + ))), + new Er(116 * a - 16, 500 * (e - a), 200 * (a - n), t.opacity) + ); + } + function wr(t, e) { + return new Er(t, 0, 0, null == e ? 1 : e); + } + function Sr(t, e, n, r) { + return 1 === arguments.length + ? xr(t) + : new Er(t, e, n, null == r ? 1 : r); + } + function Er(t, e, n, r) { + (this.l = +t), + (this.a = +e), + (this.b = +n), + (this.opacity = +r); + } + function kr(t) { + return t > _r ? Math.pow(t, 1 / 3) : t / br + vr; + } + function Ar(t) { + return t > yr ? t * t * t : br * (t - vr); + } + function Tr(t) { + return ( + 255 * + (t <= 0.0031308 + ? 12.92 * t + : 1.055 * Math.pow(t, 1 / 2.4) - 0.055) + ); + } + function Cr(t) { + return (t /= 255) <= 0.04045 + ? t / 12.92 + : Math.pow((t + 0.055) / 1.055, 2.4); + } + function Or(t) { + if (t instanceof Lr) return new Lr(t.h, t.c, t.l, t.opacity); + if ((t instanceof Er || (t = xr(t)), 0 === t.a && 0 === t.b)) + return new Lr( + NaN, + 0 < t.l && t.l < 100 ? 0 : NaN, + t.l, + t.opacity + ); + var e = Math.atan2(t.b, t.a) * hr; + return new Lr( + e < 0 ? e + 360 : e, + Math.sqrt(t.a * t.a + t.b * t.b), + t.l, + t.opacity + ); + } + function Pr(t, e, n, r) { + return 1 === arguments.length + ? Or(t) + : new Lr(n, e, t, null == r ? 1 : r); + } + function Mr(t, e, n, r) { + return 1 === arguments.length + ? Or(t) + : new Lr(t, e, n, null == r ? 1 : r); + } + function Lr(t, e, n, r) { + (this.h = +t), + (this.c = +e), + (this.l = +n), + (this.opacity = +r); + } + function jr(t) { + if (isNaN(t.h)) return new Er(t.l, 0, 0, t.opacity); + var e = t.h * dr; + return new Er( + t.l, + Math.cos(e) * t.c, + Math.sin(e) * t.c, + t.opacity + ); + } + function Dr(t, e) { + var n = Dn((t = Sr(t)).l, (e = Sr(e)).l), + r = Dn(t.a, e.a), + i = Dn(t.b, e.b), + o = Dn(t.opacity, e.opacity); + return function(e) { + return ( + (t.l = n(e)), + (t.a = r(e)), + (t.b = i(e)), + (t.opacity = o(e)), + t + '' + ); + }; + } + function Rr(t) { + return function(e, n) { + var r = t((e = Mr(e)).h, (n = Mr(n)).h), + i = Dn(e.c, n.c), + o = Dn(e.l, n.l), + a = Dn(e.opacity, n.opacity); + return function(t) { + return ( + (e.h = r(t)), + (e.c = i(t)), + (e.l = o(t)), + (e.opacity = a(t)), + e + '' + ); + }; + }; + } + Ke( + Er, + Sr, + Qe(Ze, { + brighter: function(t) { + return new Er( + this.l + 18 * (null == t ? 1 : t), + this.a, + this.b, + this.opacity + ); + }, + darker: function(t) { + return new Er( + this.l - 18 * (null == t ? 1 : t), + this.a, + this.b, + this.opacity + ); + }, + rgb: function() { + var t = (this.l + 16) / 116, + e = isNaN(this.a) ? t : t + this.a / 500, + n = isNaN(this.b) ? t : t - this.b / 200; + return new yn( + Tr( + 3.1338561 * (e = pr * Ar(e)) - + 1.6168667 * (t = gr * Ar(t)) - + 0.4906146 * (n = mr * Ar(n)) ), - o = i.map(function(t) { - return t.id; - }); - return function(t, a) { - var s = n ? r.getSubYScale(t.id) : r.getYScale(t.id), - u = s(0), - l = u; + Tr(-0.9787684 * e + 1.9161415 * t + 0.033454 * n), + Tr(0.0719453 * e - 0.2289914 * t + 1.4052427 * n), + this.opacity + ); + } + }) + ), + Ke( + Lr, + Mr, + Qe(Ze, { + brighter: function(t) { + return new Lr( + this.h, + this.c, + this.l + 18 * (null == t ? 1 : t), + this.opacity + ); + }, + darker: function(t) { + return new Lr( + this.h, + this.c, + this.l - 18 * (null == t ? 1 : t), + this.opacity + ); + }, + rgb: function() { + return jr(this).rgb(); + } + }) + ); + var zr = Rr(Ln), + Nr = Rr(Dn), + Ir = -0.29227, + Fr = -0.90649, + Vr = 1.97294, + Br = Vr * Fr, + Gr = 1.78277 * Vr, + Hr = 1.78277 * Ir - -0.14861 * Fr; + function Ur(t, e, n, r) { + return 1 === arguments.length + ? (function(t) { + if (t instanceof qr) + return new qr(t.h, t.s, t.l, t.opacity); + t instanceof yn || (t = mn(t)); + var e = t.r / 255, + n = t.g / 255, + r = t.b / 255, + i = (Hr * r + Br * e - Gr * n) / (Hr + Br - Gr), + o = r - i, + a = (Vr * (n - i) - Ir * o) / Fr, + s = Math.sqrt(a * a + o * o) / (Vr * i * (1 - i)), + u = s ? Math.atan2(a, o) * hr - 120 : NaN; + return new qr(u < 0 ? u + 360 : u, s, i, t.opacity); + })(t) + : new qr(t, e, n, null == r ? 1 : r); + } + function qr(t, e, n, r) { + (this.h = +t), + (this.s = +e), + (this.l = +n), + (this.opacity = +r); + } + function Wr(t) { + return (function e(n) { + function r(e, r) { + var i = t((e = Ur(e)).h, (r = Ur(r)).h), + o = Dn(e.s, r.s), + a = Dn(e.l, r.l), + s = Dn(e.opacity, r.opacity); + return function(t) { return ( - i.forEach(function(n) { - var i = r.isStepType(t) - ? r.convertValuesToStep(n.values) - : n.values, - c = r.isTargetNormalized(t.id), - f = i.map(function(t) { - return c ? r.getRatio('index', t, !0) : t.value; - }); - n.id !== t.id && - e[n.id] === e[t.id] && - o.indexOf(n.id) < o.indexOf(t.id) && - ((m(i[a]) || +i[a].x != +t.x) && - ((a = -1), - i.forEach(function(e, n) { - (e.x.constructor === Date ? +e.x : e.x) === - (t.x.constructor === Date ? +t.x : t.x) && - (a = n); - })), - a in i && - i[a].value * t.value >= 0 && - (l += s(f[a]) - u)); - }), - l + (e.h = i(t)), + (e.s = o(t)), + (e.l = a(Math.pow(t, n))), + (e.opacity = s(t)), + e + '' ); }; - }), - (r.prototype.isWithinShape = function(t, e) { - var n, - r = this, - i = r.d3.select(t); + } + return (n = +n), (r.gamma = e), r; + })(1); + } + Ke( + qr, + Ur, + Qe(Ze, { + brighter: function(t) { return ( - r.isTargetToShow(e.id) - ? 'circle' === t.nodeName - ? (n = r.isStepType(e) - ? r.isWithinStep(t, r.getYScale(e.id)(e.value)) - : r.isWithinCircle(t, 1.5 * r.pointSelectR(e))) - : 'path' === t.nodeName && - (n = - !i.classed(w.bar) || - r.isWithinBar(r.d3.mouse(t), t)) - : (n = !1), - n + (t = null == t ? 1 / 0.7 : Math.pow(1 / 0.7, t)), + new qr(this.h, this.s, this.l * t, this.opacity) ); - }), - (r.prototype.getInterpolate = function(t) { - var e = this, - n = e.d3, - r = { - linear: n.curveLinear, - 'linear-closed': n.curveLinearClosed, - basis: n.curveBasis, - 'basis-open': n.curveBasisOpen, - 'basis-closed': n.curveBasisClosed, - bundle: n.curveBundle, - cardinal: n.curveCardinal, - 'cardinal-open': n.curveCardinalOpen, - 'cardinal-closed': n.curveCardinalClosed, - monotone: n.curveMonotoneX, - step: n.curveStep, - 'step-before': n.curveStepBefore, - 'step-after': n.curveStepAfter - }; - return e.isSplineType(t) - ? r[e.config.spline_interpolation_type] || r.cardinal - : e.isStepType(t) - ? r[e.config.line_step_type] - : r.linear; - }), - (r.prototype.initLine = function() { - this.main - .select('.' + w.chart) - .append('g') - .attr('class', w.chartLines); - }), - (r.prototype.updateTargetsForLine = function(t) { - var e, - n = this, - r = n.config, - i = n.classChartLine.bind(n), - o = n.classLines.bind(n), - a = n.classAreas.bind(n), - s = n.classCircles.bind(n), - u = n.classFocus.bind(n); - (e = n.main - .select('.' + w.chartLines) - .selectAll('.' + w.chartLine) - .data(t) - .attr('class', function(t) { - return i(t) + u(t); - }) - .enter() - .append('g') - .attr('class', i) - .style('opacity', 0) - .style('pointer-events', 'none')) - .append('g') - .attr('class', o), - e.append('g').attr('class', a), - e.append('g').attr('class', function(t) { - return n.generateClass(w.selectedCircles, t.id); - }), - e - .append('g') - .attr('class', s) - .style('cursor', function(t) { - return r.data_selection_isselectable(t) - ? 'pointer' - : null; - }), - t.forEach(function(t) { - n.main - .selectAll( - '.' + - w.selectedCircles + - n.getTargetSelectorSuffix(t.id) - ) - .selectAll('.' + w.selectedCircle) - .each(function(e) { - e.value = t.values[e.index].value; - }); - }); - }), - (r.prototype.updateLine = function(t) { - var e = this, - n = e.main - .selectAll('.' + w.lines) - .selectAll('.' + w.line) - .data(e.lineData.bind(e)), - r = n - .enter() - .append('path') - .attr('class', e.classLine.bind(e)) - .style('stroke', e.color); - (e.mainLine = r - .merge(n) - .style('opacity', e.initialOpacity.bind(e)) - .style('shape-rendering', function(t) { - return e.isStepType(t) ? 'crispEdges' : ''; - }) - .attr('transform', null)), - n - .exit() - .transition() - .duration(t) - .style('opacity', 0); - }), - (r.prototype.redrawLine = function(t, e, n) { - return [ - (e ? this.mainLine.transition(n) : this.mainLine) - .attr('d', t) - .style('stroke', this.color) - .style('opacity', 1) - ]; - }), - (r.prototype.generateDrawLine = function(t, e) { - var n = this, - r = n.config, - i = n.d3.line(), - o = n.generateGetLinePoints(t, e), - a = e ? n.getSubYScale : n.getYScale, - s = function(t) { - return (e ? n.subxx : n.xx).call(n, t); - }, - u = function(t, e) { - return r.data_groups.length > 0 - ? o(t, e)[0][1] - : a.call(n, t.id)(t.value); - }; + }, + darker: function(t) { return ( - (i = r.axis_rotated ? i.x(u).y(s) : i.x(s).y(u)), - r.line_connectNull || - (i = i.defined(function(t) { - return null != t.value; - })), - function(t) { - var o, - s = r.line_connectNull - ? n.filterRemoveNull(t.values) - : t.values, - u = e ? n.subX : n.x, - l = a.call(n, t.id), - c = 0, - f = 0; - return ( - n.isLineType(t) - ? r.data_regions[t.id] - ? (o = n.lineWithRegions( - s, - u, - l, - r.data_regions[t.id] - )) - : (n.isStepType(t) && - (s = n.convertValuesToStep(s)), - (o = i.curve(n.getInterpolate(t))(s))) - : (s[0] && ((c = u(s[0].x)), (f = l(s[0].value))), - (o = r.axis_rotated - ? 'M ' + f + ' ' + c - : 'M ' + c + ' ' + f)), - o || 'M 0 0' - ); - } + (t = null == t ? 0.7 : Math.pow(0.7, t)), + new qr(this.h, this.s, this.l * t, this.opacity) ); - }), - (r.prototype.generateGetLinePoints = function(t, e) { - var n = this, - r = n.config, - i = t.__max__ + 1, - o = n.getShapeX(0, i, t, !!e), - a = n.getShapeY(!!e), - s = n.getShapeOffset(n.isLineType, t, !!e), - u = e ? n.getSubYScale : n.getYScale; - return function(t, e) { - var i = u.call(n, t.id)(0), - l = s(t, e) || i, - c = o(t), - f = a(t); - return ( - r.axis_rotated && - ((0 < t.value && f < i) || (t.value < 0 && i < f)) && - (f = i), - [ - [c, f - (i - l)], - [c, f - (i - l)], - [c, f - (i - l)], - [c, f - (i - l)] - ] - ); - }; - }), - (r.prototype.lineWithRegions = function(t, e, n, r) { - var i, - o, - a, - s, - u, - l, - c, - f, - h, - p, - g, - v = this, - y = v.config, - b = 'M', - _ = v.isCategorized() ? 0.5 : 0, - x = []; - function w(t, e) { - var n; - for (n = 0; n < e.length; n++) - if (e[n].start < t && t <= e[n].end) return !0; - return !1; - } - if (d(r)) - for (i = 0; i < r.length; i++) - (x[i] = {}), - m(r[i].start) - ? (x[i].start = t[0].x) - : (x[i].start = v.isTimeSeries() - ? v.parseDate(r[i].start) - : r[i].start), - m(r[i].end) - ? (x[i].end = t[t.length - 1].x) - : (x[i].end = v.isTimeSeries() - ? v.parseDate(r[i].end) - : r[i].end); - function S(t) { - return ( - 'M' + - t[0][0] + - ' ' + - t[0][1] + - ' ' + - t[1][0] + - ' ' + - t[1][1] - ); - } - for ( - p = y.axis_rotated - ? function(t) { - return n(t.value); - } - : function(t) { - return e(t.x); - }, - g = y.axis_rotated - ? function(t) { - return e(t.x); - } - : function(t) { - return n(t.value); - }, - a = v.isTimeSeries() - ? function(t, r, i, o) { - var a = t.x.getTime(), - s = r.x - t.x, - l = new Date(a + s * i), - c = new Date(a + s * (i + o)); - return S( - y.axis_rotated - ? [ - [n(u(i)), e(l)], - [n(u(i + o)), e(c)] - ] - : [ - [e(l), n(u(i))], - [e(c), n(u(i + o))] - ] - ); - } - : function(t, r, i, o) { - return S( - y.axis_rotated - ? [ - [n(u(i), !0), e(s(i))], - [n(u(i + o), !0), e(s(i + o))] - ] - : [ - [e(s(i), !0), n(u(i))], - [e(s(i + o), !0), n(u(i + o))] - ] - ); - }, - i = 0; - i < t.length; - i++ - ) { - if (m(x) || !w(t[i].x, x)) - b += ' ' + p(t[i]) + ' ' + g(t[i]); - else - for ( - s = v.getScale( - t[i - 1].x + _, - t[i].x + _, - v.isTimeSeries() - ), - u = v.getScale(t[i - 1].value, t[i].value), - l = e(t[i].x) - e(t[i - 1].x), - c = n(t[i].value) - n(t[i - 1].value), - h = - 2 * - (f = - 2 / Math.sqrt(Math.pow(l, 2) + Math.pow(c, 2))), - o = f; - o <= 1; - o += h + }, + rgb: function() { + var t = isNaN(this.h) ? 0 : (this.h + 120) * dr, + e = +this.l, + n = isNaN(this.s) ? 0 : this.s * e * (1 - e), + r = Math.cos(t), + i = Math.sin(t); + return new yn( + 255 * (e + n * (-0.14861 * r + 1.78277 * i)), + 255 * (e + n * (Ir * r + Fr * i)), + 255 * (e + n * (Vr * r)), + this.opacity + ); + } + }) + ); + var Xr = Wr(Ln), + Yr = Wr(Dn); + function $r(t, e) { + for ( + var n = 0, + r = e.length - 1, + i = e[0], + o = new Array(r < 0 ? 0 : r); + n < r; + + ) + o[n] = t(i, (i = e[++n])); + return function(t) { + var e = Math.max(0, Math.min(r - 1, Math.floor((t *= r)))); + return o[e](t - e); + }; + } + var Kr, + Qr, + Zr = function(t, e) { + for (var n = new Array(e), r = 0; r < e; ++r) + n[r] = t(r / (e - 1)); + return n; + }, + Jr = 0, + ti = 0, + ei = 0, + ni = 1e3, + ri = 0, + ii = 0, + oi = 0, + ai = + 'object' == typeof performance && performance.now + ? performance + : Date, + si = + 'object' == typeof window && window.requestAnimationFrame + ? window.requestAnimationFrame.bind(window) + : function(t) { + setTimeout(t, 17); + }; + function ui() { + return ii || (si(li), (ii = ai.now() + oi)); + } + function li() { + ii = 0; + } + function ci() { + this._call = this._time = this._next = null; + } + function fi(t, e, n) { + var r = new ci(); + return r.restart(t, e, n), r; + } + function di() { + ui(), ++Jr; + for (var t, e = Kr; e; ) + (t = ii - e._time) >= 0 && e._call.call(null, t), + (e = e._next); + --Jr; + } + function hi() { + (ii = (ri = ai.now()) + oi), (Jr = ti = 0); + try { + di(); + } finally { + (Jr = 0), + (function() { + for (var t, e, n = Kr, r = 1 / 0; n; ) + n._call + ? (r > n._time && (r = n._time), + (t = n), + (n = n._next)) + : ((e = n._next), + (n._next = null), + (n = t ? (t._next = e) : (Kr = e))); + (Qr = t), gi(r); + })(), + (ii = 0); + } + } + function pi() { + var t = ai.now(), + e = t - ri; + e > ni && ((oi -= e), (ri = t)); + } + function gi(t) { + Jr || + (ti && (ti = clearTimeout(ti)), + t - ii > 24 + ? (t < 1 / 0 && (ti = setTimeout(hi, t - ai.now() - oi)), + ei && (ei = clearInterval(ei))) + : (ei || ((ri = ai.now()), (ei = setInterval(pi, ni))), + (Jr = 1), + si(hi))); + } + ci.prototype = fi.prototype = { + constructor: ci, + restart: function(t, e, n) { + if ('function' != typeof t) + throw new TypeError('callback is not a function'); + (n = (null == n ? ui() : +n) + (null == e ? 0 : +e)), + this._next || + Qr === this || + (Qr ? (Qr._next = this) : (Kr = this), (Qr = this)), + (this._call = t), + (this._time = n), + gi(); + }, + stop: function() { + this._call && + ((this._call = null), (this._time = 1 / 0), gi()); + } + }; + var mi = function(t, e, n) { + var r = new ci(); + return ( + (e = null == e ? 0 : +e), + r.restart( + function(n) { + r.stop(), t(n + e); + }, + e, + n + ), + r + ); + }, + vi = function(t, e, n) { + var r = new ci(), + i = e; + return null == e + ? (r.restart(t, e, n), r) + : ((e = +e), + (n = null == n ? ui() : +n), + r.restart( + function o(a) { + (a += i), r.restart(o, (i += e), n), t(a); + }, + e, + n + ), + r); + }, + yi = gt('start', 'end', 'cancel', 'interrupt'), + bi = [], + _i = 0, + xi = 1, + wi = 2, + Si = 3, + Ei = 4, + ki = 5, + Ai = 6, + Ti = function(t, e, n, r, i, o) { + var a = t.__transition; + if (a) { + if (n in a) return; + } else t.__transition = {}; + !(function(t, e, n) { + var r, + i = t.__transition; + function o(u) { + var l, c, f, d; + if (n.state !== xi) return s(); + for (l in i) + if ((d = i[l]).name === n.name) { + if (d.state === Si) return mi(o); + d.state === Ei + ? ((d.state = Ai), + d.timer.stop(), + d.on.call( + 'interrupt', + t, + t.__data__, + d.index, + d.group + ), + delete i[l]) + : +l < e && + ((d.state = Ai), + d.timer.stop(), + d.on.call( + 'cancel', + t, + t.__data__, + d.index, + d.group + ), + delete i[l]); + } + if ( + (mi(function() { + n.state === Si && + ((n.state = Ei), + n.timer.restart(a, n.delay, n.time), + a(u)); + }), + (n.state = wi), + n.on.call('start', t, t.__data__, n.index, n.group), + n.state === wi) + ) { + for ( + n.state = Si, + r = new Array((f = n.tween.length)), + l = 0, + c = -1; + l < f; + ++l ) - b += a(t[i - 1], t[i], o, f); - t[i].x; + (d = n.tween[l].value.call( + t, + t.__data__, + n.index, + n.group + )) && (r[++c] = d); + r.length = c + 1; + } } - return b; - }), - (r.prototype.updateArea = function(t) { - var e = this, - n = e.d3, - r = e.main - .selectAll('.' + w.areas) - .selectAll('.' + w.area) - .data(e.lineData.bind(e)), - i = r - .enter() - .append('path') - .attr('class', e.classArea.bind(e)) - .style('fill', e.color) - .style('opacity', function() { - return ( - (e.orgAreaOpacity = +n - .select(this) - .style('opacity')), - 0 - ); - }); - (e.mainArea = i - .merge(r) - .style('opacity', e.orgAreaOpacity)), - r - .exit() - .transition() - .duration(t) - .style('opacity', 0); - }), - (r.prototype.redrawArea = function(t, e, n) { - return [ - (e ? this.mainArea.transition(n) : this.mainArea) - .attr('d', t) - .style('fill', this.color) - .style('opacity', this.orgAreaOpacity) - ]; - }), - (r.prototype.generateDrawArea = function(t, e) { - var n = this, - r = n.config, - i = n.d3.area(), - o = n.generateGetAreaPoints(t, e), - a = e ? n.getSubYScale : n.getYScale, - s = function(t) { - return (e ? n.subxx : n.xx).call(n, t); - }, - u = function(t, e) { - return r.data_groups.length > 0 - ? o(t, e)[0][1] - : a.call(n, t.id)(n.getAreaBaseValue(t.id)); - }, - l = function(t, e) { - return r.data_groups.length > 0 - ? o(t, e)[1][1] - : a.call(n, t.id)(t.value); - }; - return ( - (i = r.axis_rotated - ? i - .x0(u) - .x1(l) - .y(s) - : i - .x(s) - .y0(r.area_above ? 0 : u) - .y1(l)), - r.line_connectNull || - (i = i.defined(function(t) { - return null !== t.value; - })), - function(t) { - var e, - o = r.line_connectNull - ? n.filterRemoveNull(t.values) - : t.values, - a = 0, - s = 0; - return ( - n.isAreaType(t) - ? (n.isStepType(t) && - (o = n.convertValuesToStep(o)), - (e = i.curve(n.getInterpolate(t))(o))) - : (o[0] && - ((a = n.x(o[0].x)), - (s = n.getYScale(t.id)(o[0].value))), - (e = r.axis_rotated - ? 'M ' + s + ' ' + a - : 'M ' + a + ' ' + s)), - e || 'M 0 0' - ); + function a(e) { + for ( + var i = + e < n.duration + ? n.ease.call(null, e / n.duration) + : (n.timer.restart(s), (n.state = ki), 1), + o = -1, + a = r.length; + ++o < a; + + ) + r[o].call(t, i); + n.state === ki && + (n.on.call('end', t, t.__data__, n.index, n.group), + s()); + } + function s() { + for (var r in ((n.state = Ai), + n.timer.stop(), + delete i[e], + i)) + return; + delete t.__transition; + } + (i[e] = n), + (n.timer = fi( + function(t) { + (n.state = xi), + n.timer.restart(o, n.delay, n.time), + n.delay <= t && o(t - n.delay); + }, + 0, + n.time + )); + })(t, n, { + name: e, + index: r, + group: i, + on: yi, + tween: bi, + time: o.time, + delay: o.delay, + duration: o.duration, + ease: o.ease, + timer: null, + state: _i + }); + }; + function Ci(t, e) { + var n = Pi(t, e); + if (n.state > _i) + throw new Error('too late; already scheduled'); + return n; + } + function Oi(t, e) { + var n = Pi(t, e); + if (n.state > Si) throw new Error('too late; already running'); + return n; + } + function Pi(t, e) { + var n = t.__transition; + if (!n || !(n = n[e])) throw new Error('transition not found'); + return n; + } + var Mi = function(t, e) { + var n, + r, + i, + o = t.__transition, + a = !0; + if (o) { + for (i in ((e = null == e ? null : e + ''), o)) + (n = o[i]).name === e + ? ((r = n.state > wi && n.state < ki), + (n.state = Ai), + n.timer.stop(), + n.on.call( + r ? 'interrupt' : 'cancel', + t, + t.__data__, + n.index, + n.group + ), + delete o[i]) + : (a = !1); + a && delete t.__transition; + } + }; + function Li(t, e) { + var n, r; + return function() { + var i = Oi(this, t), + o = i.tween; + if (o !== n) + for (var a = 0, s = (r = n = o).length; a < s; ++a) + if (r[a].name === e) { + (r = r.slice()).splice(a, 1); + break; } - ); - }), - (r.prototype.getAreaBaseValue = function() { - return 0; - }), - (r.prototype.generateGetAreaPoints = function(t, e) { - var n = this, - r = n.config, - i = t.__max__ + 1, - o = n.getShapeX(0, i, t, !!e), - a = n.getShapeY(!!e), - s = n.getShapeOffset(n.isAreaType, t, !!e), - u = e ? n.getSubYScale : n.getYScale; - return function(t, e) { - var i = u.call(n, t.id)(0), - l = s(t, e) || i, - c = o(t), - f = a(t); - return ( - r.axis_rotated && - ((0 < t.value && f < i) || (t.value < 0 && i < f)) && - (f = i), - [ - [c, l], - [c, f - (i - l)], - [c, f - (i - l)], - [c, l] - ] - ); - }; + i.tween = r; + }; + } + function ji(t, e, n) { + var r, i; + if ('function' != typeof n) throw new Error(); + return function() { + var o = Oi(this, t), + a = o.tween; + if (a !== r) { + i = (r = a).slice(); + for ( + var s = { name: e, value: n }, u = 0, l = i.length; + u < l; + ++u + ) + if (i[u].name === e) { + i[u] = s; + break; + } + u === l && i.push(s); + } + o.tween = i; + }; + } + function Di(t, e, n) { + var r = t._id; + return ( + t.each(function() { + var t = Oi(this, r); + (t.value || (t.value = {}))[e] = n.apply(this, arguments); }), - (r.prototype.updateCircle = function(t, e) { - var n = this, - r = n.main - .selectAll('.' + w.circles) - .selectAll('.' + w.circle) - .data(n.lineOrScatterOrStanfordData.bind(n)), - i = r - .enter() - .append('circle') - .attr( - 'shape-rendering', - n.isStanfordGraphType() ? 'crispEdges' : '' - ) - .attr('class', n.classCircle.bind(n)) - .attr('cx', t) - .attr('cy', e) - .attr('r', n.pointR.bind(n)) - .style( - 'color', - n.isStanfordGraphType() - ? n.getStanfordPointColor.bind(n) - : n.color + function(t) { + return Pi(t, r).value[e]; + } + ); + } + var Ri = function(t, e) { + var n; + return ('number' == typeof e + ? qn + : e instanceof hn + ? Rn + : (n = hn(e)) + ? ((e = n), Rn) + : $n)(t, e); + }; + function zi(t) { + return function() { + this.removeAttribute(t); + }; + } + function Ni(t) { + return function() { + this.removeAttributeNS(t.space, t.local); + }; + } + function Ii(t, e, n) { + var r, + i, + o = n + ''; + return function() { + var a = this.getAttribute(t); + return a === o ? null : a === r ? i : (i = e((r = a), n)); + }; + } + function Fi(t, e, n) { + var r, + i, + o = n + ''; + return function() { + var a = this.getAttributeNS(t.space, t.local); + return a === o ? null : a === r ? i : (i = e((r = a), n)); + }; + } + function Vi(t, e, n) { + var r, i, o; + return function() { + var a, + s, + u = n(this); + if (null != u) + return (a = this.getAttribute(t)) === (s = u + '') + ? null + : a === r && s === i + ? o + : ((i = s), (o = e((r = a), u))); + this.removeAttribute(t); + }; + } + function Bi(t, e, n) { + var r, i, o; + return function() { + var a, + s, + u = n(this); + if (null != u) + return (a = this.getAttributeNS(t.space, t.local)) === + (s = u + '') + ? null + : a === r && s === i + ? o + : ((i = s), (o = e((r = a), u))); + this.removeAttributeNS(t.space, t.local); + }; + } + function Gi(t, e) { + var n, r; + function i() { + var i = e.apply(this, arguments); + return ( + i !== r && + (n = + (r = i) && + (function(t, e) { + return function(n) { + this.setAttributeNS(t.space, t.local, e(n)); + }; + })(t, i)), + n + ); + } + return (i._value = e), i; + } + function Hi(t, e) { + var n, r; + function i() { + var i = e.apply(this, arguments); + return ( + i !== r && + (n = + (r = i) && + (function(t, e) { + return function(n) { + this.setAttribute(t, e(n)); + }; + })(t, i)), + n + ); + } + return (i._value = e), i; + } + function Ui(t, e) { + return function() { + Ci(this, t).delay = +e.apply(this, arguments); + }; + } + function qi(t, e) { + return ( + (e = +e), + function() { + Ci(this, t).delay = e; + } + ); + } + function Wi(t, e) { + return function() { + Oi(this, t).duration = +e.apply(this, arguments); + }; + } + function Xi(t, e) { + return ( + (e = +e), + function() { + Oi(this, t).duration = e; + } + ); + } + function Yi(t, e) { + if ('function' != typeof e) throw new Error(); + return function() { + Oi(this, t).ease = e; + }; + } + function $i(t, e, n) { + var r, + i, + o = (function(t) { + return (t + '') + .trim() + .split(/^|\s+/) + .every(function(t) { + var e = t.indexOf('.'); + return ( + e >= 0 && (t = t.slice(0, e)), !t || 'start' === t ); - (n.mainCircle = i - .merge(r) - .style( - 'opacity', - n.isStanfordGraphType() - ? 1 - : n.initialOpacityForCircle.bind(n) - )), - r.exit().style('opacity', 0); - }), - (r.prototype.redrawCircle = function(t, e, n, r) { - var i = this, - o = i.main.selectAll('.' + w.selectedCircle); - return [ - (n ? i.mainCircle.transition(r) : i.mainCircle) - .style('opacity', this.opacityForCircle.bind(i)) - .style( - 'color', - i.isStanfordGraphType() - ? i.getStanfordPointColor.bind(i) - : i.color - ) - .attr('cx', t) - .attr('cy', e), - (n ? o.transition(r) : o).attr('cx', t).attr('cy', e) - ]; - }), - (r.prototype.circleX = function(t) { - return t.x || 0 === t.x ? this.x(t.x) : null; - }), - (r.prototype.updateCircleY = function() { - var t, - e, - n = this; - n.config.data_groups.length > 0 - ? ((t = n.getShapeIndices(n.isLineType)), - (e = n.generateGetLinePoints(t)), - (n.circleY = function(t, n) { - return e(t, n)[0][1]; - })) - : (n.circleY = function(t) { - return n.getYScale(t.id)(t.value); - }); - }), - (r.prototype.getCircles = function(t, e) { - return (e - ? this.main.selectAll( - '.' + w.circles + this.getTargetSelectorSuffix(e) + }); + })(e) + ? Ci + : Oi; + return function() { + var a = o(this, t), + s = a.on; + s !== r && (i = (r = s).copy()).on(e, n), (a.on = i); + }; + } + var Ki = Te.prototype.constructor; + function Qi(t) { + return function() { + this.style.removeProperty(t); + }; + } + function Zi(t, e, n) { + var r, i; + function o() { + var o = e.apply(this, arguments); + return ( + o !== i && + (r = + (i = o) && + (function(t, e, n) { + return function(r) { + this.style.setProperty(t, e(r), n); + }; + })(t, o, n)), + r + ); + } + return (o._value = e), o; + } + var Ji = 0; + function to(t, e, n, r) { + (this._groups = t), + (this._parents = e), + (this._name = n), + (this._id = r); + } + function eo(t) { + return Te().transition(t); + } + function no() { + return ++Ji; + } + var ro = Te.prototype; + function io(t) { + return +t; + } + function oo(t) { + return t * t; + } + function ao(t) { + return t * (2 - t); + } + function so(t) { + return ((t *= 2) <= 1 ? t * t : --t * (2 - t) + 1) / 2; + } + function uo(t) { + return t * t * t; + } + function lo(t) { + return --t * t * t + 1; + } + function co(t) { + return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2; + } + to.prototype = eo.prototype = { + constructor: to, + select: function(t) { + var e = this._name, + n = this._id; + 'function' != typeof t && (t = St(t)); + for ( + var r = this._groups, i = r.length, o = new Array(i), a = 0; + a < i; + ++a + ) + for ( + var s, + u, + l = r[a], + c = l.length, + f = (o[a] = new Array(c)), + d = 0; + d < c; + ++d + ) + (s = l[d]) && + (u = t.call(s, s.__data__, d, l)) && + ('__data__' in s && (u.__data__ = s.__data__), + (f[d] = u), + Ti(f[d], e, n, d, f, Pi(s, n))); + return new to(o, this._parents, e, n); + }, + selectAll: function(t) { + var e = this._name, + n = this._id; + 'function' != typeof t && (t = kt(t)); + for ( + var r = this._groups, i = r.length, o = [], a = [], s = 0; + s < i; + ++s + ) + for (var u, l = r[s], c = l.length, f = 0; f < c; ++f) + if ((u = l[f])) { + for ( + var d, + h = t.call(u, u.__data__, f, l), + p = Pi(u, n), + g = 0, + m = h.length; + g < m; + ++g ) - : this.main - ).selectAll('.' + w.circle + (y(t) ? '-' + t : '')); - }), - (r.prototype.expandCircles = function(t, e, n) { - var r = this.pointExpandedR.bind(this); - n && this.unexpandCircles(), - this.getCircles(t, e) - .classed(w.EXPANDED, !0) - .attr('r', r); - }), - (r.prototype.unexpandCircles = function(t) { - var e = this, - n = e.pointR.bind(e); - e.getCircles(t) - .filter(function() { - return e.d3.select(this).classed(w.EXPANDED); - }) - .classed(w.EXPANDED, !1) - .attr('r', n); - }), - (r.prototype.pointR = function(t) { - var e = this.config; - return this.isStepType(t) - ? 0 - : p(e.point_r) - ? e.point_r(t) - : e.point_r; - }), - (r.prototype.pointExpandedR = function(t) { - var e = this.config; - return e.point_focus_expand_enabled - ? p(e.point_focus_expand_r) - ? e.point_focus_expand_r(t) - : e.point_focus_expand_r - ? e.point_focus_expand_r - : 1.75 * this.pointR(t) - : this.pointR(t); - }), - (r.prototype.pointSelectR = function(t) { - var e = this.config; - return p(e.point_select_r) - ? e.point_select_r(t) - : e.point_select_r - ? e.point_select_r - : 4 * this.pointR(t); - }), - (r.prototype.isWithinCircle = function(t, e) { - var n = this.d3, - r = n.mouse(t), - i = n.select(t), - o = +i.attr('cx'), - a = +i.attr('cy'); - return ( - Math.sqrt(Math.pow(o - r[0], 2) + Math.pow(a - r[1], 2)) < - e - ); - }), - (r.prototype.isWithinStep = function(t, e) { - return Math.abs(e - this.d3.mouse(t)[1]) < 30; - }), - (r.prototype.getCurrentWidth = function() { - var t = this.config; - return t.size_width ? t.size_width : this.getParentWidth(); - }), - (r.prototype.getCurrentHeight = function() { - var t = this.config, - e = t.size_height - ? t.size_height - : this.getParentHeight(); - return e > 0 - ? e - : 320 / - (this.hasType('gauge') && !t.gauge_fullCircle - ? 2 - : 1); - }), - (r.prototype.getCurrentPaddingTop = function() { - var t = this.config, - e = y(t.padding_top) ? t.padding_top : 0; - return ( - this.title && - this.title.node() && - (e += this.getTitlePadding()), - e - ); - }), - (r.prototype.getCurrentPaddingBottom = function() { - var t = this.config; - return y(t.padding_bottom) ? t.padding_bottom : 0; - }), - (r.prototype.getCurrentPaddingLeft = function(t) { - var e = this.config; - return y(e.padding_left) - ? e.padding_left - : e.axis_rotated - ? !e.axis_x_show || e.axis_x_inner - ? 1 - : Math.max(a(this.getAxisWidthByAxisId('x', t)), 40) - : !e.axis_y_show || e.axis_y_inner - ? this.axis.getYAxisLabelPosition().isOuter - ? 30 - : 1 - : a(this.getAxisWidthByAxisId('y', t)); - }), - (r.prototype.getCurrentPaddingRight = function() { - var t = this, - e = t.config, - n = 0, - r = t.isLegendRight ? t.getLegendWidth() + 20 : 0; - return ( - (n = y(e.padding_right) - ? e.padding_right + 1 - : e.axis_rotated - ? 10 + r - : !e.axis_y2_show || e.axis_y2_inner - ? 2 + - r + - (t.axis.getY2AxisLabelPosition().isOuter ? 20 : 0) - : a(t.getAxisWidthByAxisId('y2')) + r), - t.colorScale && - t.colorScale.node() && - (n += t.getColorScalePadding()), - n - ); - }), - (r.prototype.getParentRectValue = function(t) { + (d = h[g]) && Ti(d, e, n, g, h, p); + o.push(h), a.push(u); + } + return new to(o, a, e, n); + }, + filter: function(t) { + 'function' != typeof t && (t = At(t)); + for ( + var e = this._groups, n = e.length, r = new Array(n), i = 0; + i < n; + ++i + ) for ( - var e, n = this.selectChart.node(); - n && 'BODY' !== n.tagName; - - ) { - try { - e = n.getBoundingClientRect()[t]; - } catch (r) { - 'width' === t && (e = n.offsetWidth); + var o, a = e[i], s = a.length, u = (r[i] = []), l = 0; + l < s; + ++l + ) + (o = a[l]) && t.call(o, o.__data__, l, a) && u.push(o); + return new to(r, this._parents, this._name, this._id); + }, + merge: function(t) { + if (t._id !== this._id) throw new Error(); + for ( + var e = this._groups, + n = t._groups, + r = e.length, + i = n.length, + o = Math.min(r, i), + a = new Array(r), + s = 0; + s < o; + ++s + ) + for ( + var u, + l = e[s], + c = n[s], + f = l.length, + d = (a[s] = new Array(f)), + h = 0; + h < f; + ++h + ) + (u = l[h] || c[h]) && (d[h] = u); + for (; s < r; ++s) a[s] = e[s]; + return new to(a, this._parents, this._name, this._id); + }, + selection: function() { + return new Ki(this._groups, this._parents); + }, + transition: function() { + for ( + var t = this._name, + e = this._id, + n = no(), + r = this._groups, + i = r.length, + o = 0; + o < i; + ++o + ) + for (var a, s = r[o], u = s.length, l = 0; l < u; ++l) + if ((a = s[l])) { + var c = Pi(a, e); + Ti(a, t, n, l, s, { + time: c.time + c.delay + c.duration, + delay: 0, + duration: c.duration, + ease: c.ease + }); } - if (e) break; - n = n.parentNode; - } - return e; - }), - (r.prototype.getParentWidth = function() { - return this.getParentRectValue('width'); - }), - (r.prototype.getParentHeight = function() { - var t = this.selectChart.style('height'); - return t.indexOf('px') > 0 ? +t.replace('px', '') : 0; - }), - (r.prototype.getSvgLeft = function(t) { - var e = this, - n = e.config, - r = - n.axis_rotated || (!n.axis_rotated && !n.axis_y_inner), - i = n.axis_rotated ? w.axisX : w.axisY, - o = e.main.select('.' + i).node(), - a = o && r ? o.getBoundingClientRect() : { right: 0 }, - s = e.selectChart.node().getBoundingClientRect(), - u = e.hasArcType(), - l = - a.right - s.left - (u ? 0 : e.getCurrentPaddingLeft(t)); - return l > 0 ? l : 0; - }), - (r.prototype.getAxisWidthByAxisId = function(t, e) { - var n = this.axis.getLabelPositionById(t); + return new to(r, this._parents, t, n); + }, + call: ro.call, + nodes: ro.nodes, + node: ro.node, + size: ro.size, + empty: ro.empty, + each: ro.each, + on: function(t, e) { + var n = this._id; + return arguments.length < 2 + ? Pi(this.node(), n).on.on(t) + : this.each($i(n, t, e)); + }, + attr: function(t, e) { + var n = yt(t), + r = 'transform' === n ? or : Ri; + return this.attrTween( + t, + 'function' == typeof e + ? (n.local ? Bi : Vi)(n, r, Di(this, 'attr.' + t, e)) + : null == e + ? (n.local ? Ni : zi)(n) + : (n.local ? Fi : Ii)(n, r, e) + ); + }, + attrTween: function(t, e) { + var n = 'attr.' + t; + if (arguments.length < 2) + return (n = this.tween(n)) && n._value; + if (null == e) return this.tween(n, null); + if ('function' != typeof e) throw new Error(); + var r = yt(t); + return this.tween(n, (r.local ? Gi : Hi)(r, e)); + }, + style: function(t, e, n) { + var r = 'transform' == (t += '') ? ir : Ri; + return null == e + ? this.styleTween( + t, + (function(t, e) { + var n, r, i; + return function() { + var o = Ht(this, t), + a = (this.style.removeProperty(t), Ht(this, t)); + return o === a + ? null + : o === n && a === r + ? i + : (i = e((n = o), (r = a))); + }; + })(t, r) + ).on('end.style.' + t, Qi(t)) + : 'function' == typeof e + ? this.styleTween( + t, + (function(t, e, n) { + var r, i, o; + return function() { + var a = Ht(this, t), + s = n(this), + u = s + ''; + return ( + null == s && + (this.style.removeProperty(t), + (u = s = Ht(this, t))), + a === u + ? null + : a === r && u === i + ? o + : ((i = u), (o = e((r = a), s))) + ); + }; + })(t, r, Di(this, 'style.' + t, e)) + ).each( + (function(t, e) { + var n, + r, + i, + o, + a = 'style.' + e, + s = 'end.' + a; + return function() { + var u = Oi(this, t), + l = u.on, + c = + null == u.value[a] ? o || (o = Qi(e)) : void 0; + (l === n && i === c) || + (r = (n = l).copy()).on(s, (i = c)), + (u.on = r); + }; + })(this._id, t) + ) + : this.styleTween( + t, + (function(t, e, n) { + var r, + i, + o = n + ''; + return function() { + var a = Ht(this, t); + return a === o + ? null + : a === r + ? i + : (i = e((r = a), n)); + }; + })(t, r, e), + n + ).on('end.style.' + t, null); + }, + styleTween: function(t, e, n) { + var r = 'style.' + (t += ''); + if (arguments.length < 2) + return (r = this.tween(r)) && r._value; + if (null == e) return this.tween(r, null); + if ('function' != typeof e) throw new Error(); + return this.tween(r, Zi(t, e, null == n ? '' : n)); + }, + text: function(t) { + return this.tween( + 'text', + 'function' == typeof t + ? (function(t) { + return function() { + var e = t(this); + this.textContent = null == e ? '' : e; + }; + })(Di(this, 'text', t)) + : (function(t) { + return function() { + this.textContent = t; + }; + })(null == t ? '' : t + '') + ); + }, + remove: function() { + return this.on( + 'end.remove', + ((t = this._id), + function() { + var e = this.parentNode; + for (var n in this.__transition) if (+n !== t) return; + e && e.removeChild(this); + }) + ); + var t; + }, + tween: function(t, e) { + var n = this._id; + if (((t += ''), arguments.length < 2)) { + for ( + var r, i = Pi(this.node(), n).tween, o = 0, a = i.length; + o < a; + ++o + ) + if ((r = i[o]).name === t) return r.value; + return null; + } + return this.each((null == e ? Li : ji)(n, t, e)); + }, + delay: function(t) { + var e = this._id; + return arguments.length + ? this.each(('function' == typeof t ? Ui : qi)(e, t)) + : Pi(this.node(), e).delay; + }, + duration: function(t) { + var e = this._id; + return arguments.length + ? this.each(('function' == typeof t ? Wi : Xi)(e, t)) + : Pi(this.node(), e).duration; + }, + ease: function(t) { + var e = this._id; + return arguments.length + ? this.each(Yi(e, t)) + : Pi(this.node(), e).ease; + }, + end: function() { + var t, + e, + n = this, + r = n._id, + i = n.size(); + return new Promise(function(o, a) { + var s = { value: a }, + u = { + value: function() { + 0 == --i && o(); + } + }; + n.each(function() { + var n = Oi(this, r), + i = n.on; + i !== t && + ((e = (t = i).copy())._.cancel.push(s), + e._.interrupt.push(s), + e._.end.push(u)), + (n.on = e); + }); + }); + } + }; + var fo = (function t(e) { + function n(t) { + return Math.pow(t, e); + } + return (e = +e), (n.exponent = t), n; + })(3), + ho = (function t(e) { + function n(t) { + return 1 - Math.pow(1 - t, e); + } + return (e = +e), (n.exponent = t), n; + })(3), + po = (function t(e) { + function n(t) { return ( - this.axis.getMaxTickWidth(t, e) + (n.isInner ? 20 : 40) + ((t *= 2) <= 1 + ? Math.pow(t, e) + : 2 - Math.pow(2 - t, e)) / 2 ); - }), - (r.prototype.getHorizontalAxisHeight = function(t) { - var e = this, - n = e.config, - r = 30; - return 'x' !== t || n.axis_x_show - ? 'x' === t && n.axis_x_height - ? n.axis_x_height - : 'y' !== t || n.axis_y_show - ? 'y2' !== t || n.axis_y2_show - ? ('x' === t && - !n.axis_rotated && - n.axis_x_tick_rotate && - (r = - 30 + - e.axis.getMaxTickWidth(t) * - Math.cos( - (Math.PI * - (90 - Math.abs(n.axis_x_tick_rotate))) / - 180 - )), - 'y' === t && - n.axis_rotated && - n.axis_y_tick_rotate && - (r = - 30 + - e.axis.getMaxTickWidth(t) * - Math.cos( - (Math.PI * - (90 - Math.abs(n.axis_y_tick_rotate))) / - 180 - )), - r + - (e.axis.getLabelPositionById(t).isInner - ? 0 - : 10) + - ('y2' === t ? -10 : 0)) - : e.rotated_padding_top - : !n.legend_show || e.isLegendRight || e.isLegendInset - ? 1 - : 10 - : 8; - }), - (r.prototype.initBrush = function(t) { - var e = this, - n = e.d3; + } + return (e = +e), (n.exponent = t), n; + })(3), + go = Math.PI, + mo = go / 2; + function vo(t) { + return 1 - Math.cos(t * mo); + } + function yo(t) { + return Math.sin(t * mo); + } + function bo(t) { + return (1 - Math.cos(go * t)) / 2; + } + function _o(t) { + return Math.pow(2, 10 * t - 10); + } + function xo(t) { + return 1 - Math.pow(2, -10 * t); + } + function wo(t) { + return ( + ((t *= 2) <= 1 + ? Math.pow(2, 10 * t - 10) + : 2 - Math.pow(2, 10 - 10 * t)) / 2 + ); + } + function So(t) { + return 1 - Math.sqrt(1 - t * t); + } + function Eo(t) { + return Math.sqrt(1 - --t * t); + } + function ko(t) { + return ( + ((t *= 2) <= 1 + ? 1 - Math.sqrt(1 - t * t) + : Math.sqrt(1 - (t -= 2) * t) + 1) / 2 + ); + } + var Ao = 4 / 11, + To = 6 / 11, + Co = 8 / 11, + Oo = 0.75, + Po = 9 / 11, + Mo = 10 / 11, + Lo = 0.9375, + jo = 21 / 22, + Do = 63 / 64, + Ro = 1 / Ao / Ao; + function zo(t) { + return 1 - No(1 - t); + } + function No(t) { + return (t = +t) < Ao + ? Ro * t * t + : t < Co + ? Ro * (t -= To) * t + Oo + : t < Mo + ? Ro * (t -= Po) * t + Lo + : Ro * (t -= jo) * t + Do; + } + function Io(t) { + return ((t *= 2) <= 1 ? 1 - No(1 - t) : No(t - 1) + 1) / 2; + } + var Fo = (function t(e) { + function n(t) { + return t * t * ((e + 1) * t - e); + } + return (e = +e), (n.overshoot = t), n; + })(1.70158), + Vo = (function t(e) { + function n(t) { + return --t * t * ((e + 1) * t + e) + 1; + } + return (e = +e), (n.overshoot = t), n; + })(1.70158), + Bo = (function t(e) { + function n(t) { + return ( + ((t *= 2) < 1 + ? t * t * ((e + 1) * t - e) + : (t -= 2) * t * ((e + 1) * t + e) + 2) / 2 + ); + } + return (e = +e), (n.overshoot = t), n; + })(1.70158), + Go = 2 * Math.PI, + Ho = (function t(e, n) { + var r = Math.asin(1 / (e = Math.max(1, e))) * (n /= Go); + function i(t) { + return e * Math.pow(2, 10 * --t) * Math.sin((r - t) / n); + } + return ( + (i.amplitude = function(e) { + return t(e, n * Go); + }), + (i.period = function(n) { + return t(e, n); + }), + i + ); + })(1, 0.3), + Uo = (function t(e, n) { + var r = Math.asin(1 / (e = Math.max(1, e))) * (n /= Go); + function i(t) { return ( - (e.brush = (e.config.axis_rotated - ? n.brushY() - : n.brushX() - ) - .on('brush', function() { - var t = n.event.sourceEvent; - (t && 'zoom' === t.type) || e.redrawForBrush(); - }) - .on('end', function() { - var t = n.event.sourceEvent; - (t && 'zoom' === t.type) || - (e.brush.empty() && - t && - 'end' !== t.type && - e.brush.clear()); - })), - (e.brush.updateExtent = function() { - var t, - n = this.scale.range(); - return ( - (t = e.config.axis_rotated - ? [ - [0, n[0]], - [e.width2, n[1]] - ] - : [ - [n[0], 0], - [n[1], e.height2] - ]), - this.extent(t), - this - ); - }), - (e.brush.updateScale = function(t) { - return (this.scale = t), this; - }), - (e.brush.update = function(t) { - this.updateScale(t || e.subX).updateExtent(), - e.context.select('.' + w.brush).call(this); - }), - (e.brush.clear = function() { - e.context - .select('.' + w.brush) - .call(e.brush.move, null); - }), - (e.brush.selection = function() { - return n.brushSelection( - e.context.select('.' + w.brush).node() - ); - }), - (e.brush.selectionAsValue = function(t, n) { - var r, i; - return t - ? (e.context && - ((r = [this.scale(t[0]), this.scale(t[1])]), - (i = e.context.select('.' + w.brush)), - n && (i = i.transition()), - e.brush.move(i, r)), - []) - : ((r = e.brush.selection() || [0, 0]), - [this.scale.invert(r[0]), this.scale.invert(r[1])]); - }), - (e.brush.empty = function() { - var t = e.brush.selection(); - return !t || t[0] === t[1]; - }), - e.brush.updateScale(t) + 1 - + e * Math.pow(2, -10 * (t = +t)) * Math.sin((t + r) / n) ); - }), - (r.prototype.initSubchart = function() { - var t = this, - e = t.config, - n = (t.context = t.svg - .append('g') - .attr('transform', t.getTranslate('context'))), - r = e.subchart_show ? 'visible' : 'hidden'; - n.style('visibility', r), - n - .append('g') - .attr('clip-path', t.clipPathForSubchart) - .attr('class', w.chart), - n - .select('.' + w.chart) - .append('g') - .attr('class', w.chartBars), - n - .select('.' + w.chart) - .append('g') - .attr('class', w.chartLines), - n - .append('g') - .attr('clip-path', t.clipPath) - .attr('class', w.brush), - (t.axes.subx = n - .append('g') - .attr('class', w.axisX) - .attr('transform', t.getTranslate('subx')) - .attr( - 'clip-path', - e.axis_rotated ? '' : t.clipPathForXAxis - )); - }), - (r.prototype.initSubchartBrush = function() { - this.initBrush(this.subX).updateExtent(), - this.context.select('.' + w.brush).call(this.brush); - }), - (r.prototype.updateTargetsForSubchart = function(t) { - var e, - n, - r, + } + return ( + (i.amplitude = function(e) { + return t(e, n * Go); + }), + (i.period = function(n) { + return t(e, n); + }), + i + ); + })(1, 0.3), + qo = (function t(e, n) { + var r = Math.asin(1 / (e = Math.max(1, e))) * (n /= Go); + function i(t) { + return ( + ((t = 2 * t - 1) < 0 + ? e * Math.pow(2, 10 * t) * Math.sin((r - t) / n) + : 2 - + e * Math.pow(2, -10 * t) * Math.sin((r + t) / n)) / 2 + ); + } + return ( + (i.amplitude = function(e) { + return t(e, n * Go); + }), + (i.period = function(n) { + return t(e, n); + }), + i + ); + })(1, 0.3), + Wo = { time: null, delay: 0, duration: 250, ease: co }; + function Xo(t, e) { + for (var n; !(n = t.__transition) || !(n = n[e]); ) + if (!(t = t.parentNode)) return (Wo.time = ui()), Wo; + return n; + } + (Te.prototype.interrupt = function(t) { + return this.each(function() { + Mi(this, t); + }); + }), + (Te.prototype.transition = function(t) { + var e, n; + t instanceof to + ? ((e = t._id), (t = t._name)) + : ((e = no()), + ((n = Wo).time = ui()), + (t = null == t ? null : t + '')); + for (var r = this._groups, i = r.length, o = 0; o < i; ++o) + for (var a, s = r[o], u = s.length, l = 0; l < u; ++l) + (a = s[l]) && Ti(a, t, e, l, s, n || Xo(a, e)); + return new to(r, this._parents, t, e); + }); + var Yo = [null], + $o = function(t, e) { + var n, + r, + i = t.__transition; + if (i) + for (r in ((e = null == e ? null : e + ''), i)) + if ((n = i[r]).state > xi && n.name === e) + return new to([[t]], Yo, e, +r); + return null; + }, + Ko = function(t) { + return function() { + return t; + }; + }, + Qo = function(t, e, n) { + (this.target = t), (this.type = e), (this.selection = n); + }; + function Zo() { + pe.stopImmediatePropagation(); + } + var Jo = function() { + pe.preventDefault(), pe.stopImmediatePropagation(); + }, + ta = { name: 'drag' }, + ea = { name: 'space' }, + na = { name: 'handle' }, + ra = { name: 'center' }; + function ia(t) { + return [+t[0], +t[1]]; + } + function oa(t) { + return [ia(t[0]), ia(t[1])]; + } + var aa = { + name: 'x', + handles: ['w', 'e'].map(pa), + input: function(t, e) { + return null == t + ? null + : [[+t[0], e[0][1]], [+t[1], e[1][1]]]; + }, + output: function(t) { + return t && [t[0][0], t[1][0]]; + } + }, + sa = { + name: 'y', + handles: ['n', 's'].map(pa), + input: function(t, e) { + return null == t + ? null + : [[e[0][0], +t[0]], [e[1][0], +t[1]]]; + }, + output: function(t) { + return t && [t[0][1], t[1][1]]; + } + }, + ua = { + name: 'xy', + handles: ['n', 'w', 'e', 's', 'nw', 'ne', 'sw', 'se'].map(pa), + input: function(t) { + return null == t ? null : oa(t); + }, + output: function(t) { + return t; + } + }, + la = { + overlay: 'crosshair', + selection: 'move', + n: 'ns-resize', + e: 'ew-resize', + s: 'ns-resize', + w: 'ew-resize', + nw: 'nwse-resize', + ne: 'nesw-resize', + se: 'nwse-resize', + sw: 'nesw-resize' + }, + ca = { e: 'w', w: 'e', nw: 'ne', ne: 'nw', se: 'sw', sw: 'se' }, + fa = { n: 's', s: 'n', nw: 'sw', ne: 'se', se: 'ne', sw: 'nw' }, + da = { + overlay: 1, + selection: 1, + n: null, + e: 1, + s: null, + w: -1, + nw: -1, + ne: 1, + se: 1, + sw: -1 + }, + ha = { + overlay: 1, + selection: 1, + n: -1, + e: null, + s: 1, + w: null, + nw: -1, + ne: -1, + se: 1, + sw: 1 + }; + function pa(t) { + return { type: t }; + } + function ga() { + return !pe.ctrlKey && !pe.button; + } + function ma() { + var t = this.ownerSVGElement || this; + return t.hasAttribute('viewBox') + ? [ + [(t = t.viewBox.baseVal).x, t.y], + [t.x + t.width, t.y + t.height] + ] + : [[0, 0], [t.width.baseVal.value, t.height.baseVal.value]]; + } + function va() { + return navigator.maxTouchPoints || 'ontouchstart' in this; + } + function ya(t) { + for (; !t.__brush; ) if (!(t = t.parentNode)) return; + return t.__brush; + } + function ba(t) { + var e = t.__brush; + return e ? e.dim.output(e.selection) : null; + } + function _a() { + return Sa(aa); + } + function xa() { + return Sa(sa); + } + var wa = function() { + return Sa(ua); + }; + function Sa(t) { + var e, + n = ma, + r = ga, + i = va, + o = !0, + a = gt(u, 'start', 'brush', 'end'), + s = 6; + function u(e) { + var n = e + .property('__brush', g) + .selectAll('.overlay') + .data([pa('overlay')]); + n + .enter() + .append('rect') + .attr('class', 'overlay') + .attr('pointer-events', 'all') + .attr('cursor', la.overlay) + .merge(n) + .each(function() { + var t = ya(this).extent; + Ce(this) + .attr('x', t[0][0]) + .attr('y', t[0][1]) + .attr('width', t[1][0] - t[0][0]) + .attr('height', t[1][1] - t[0][1]); + }), + e + .selectAll('.selection') + .data([pa('selection')]) + .enter() + .append('rect') + .attr('class', 'selection') + .attr('cursor', la.selection) + .attr('fill', '#777') + .attr('fill-opacity', 0.3) + .attr('stroke', '#fff') + .attr('shape-rendering', 'crispEdges'); + var r = e.selectAll('.handle').data(t.handles, function(t) { + return t.type; + }); + r.exit().remove(), + r + .enter() + .append('rect') + .attr('class', function(t) { + return 'handle handle--' + t.type; + }) + .attr('cursor', function(t) { + return la[t.type]; + }), + e + .each(l) + .attr('fill', 'none') + .attr('pointer-events', 'all') + .on('mousedown.brush', d) + .filter(i) + .on('touchstart.brush', d) + .on('touchmove.brush', h) + .on('touchend.brush touchcancel.brush', p) + .style('touch-action', 'none') + .style('-webkit-tap-highlight-color', 'rgba(0,0,0,0)'); + } + function l() { + var t = Ce(this), + e = ya(this).selection; + e + ? (t + .selectAll('.selection') + .style('display', null) + .attr('x', e[0][0]) + .attr('y', e[0][1]) + .attr('width', e[1][0] - e[0][0]) + .attr('height', e[1][1] - e[0][1]), + t + .selectAll('.handle') + .style('display', null) + .attr('x', function(t) { + return 'e' === t.type[t.type.length - 1] + ? e[1][0] - s / 2 + : e[0][0] - s / 2; + }) + .attr('y', function(t) { + return 's' === t.type[0] + ? e[1][1] - s / 2 + : e[0][1] - s / 2; + }) + .attr('width', function(t) { + return 'n' === t.type || 's' === t.type + ? e[1][0] - e[0][0] + s + : s; + }) + .attr('height', function(t) { + return 'e' === t.type || 'w' === t.type + ? e[1][1] - e[0][1] + s + : s; + })) + : t + .selectAll('.selection,.handle') + .style('display', 'none') + .attr('x', null) + .attr('y', null) + .attr('width', null) + .attr('height', null); + } + function c(t, e, n) { + return (!n && t.__brush.emitter) || new f(t, e); + } + function f(t, e) { + (this.that = t), + (this.args = e), + (this.state = t.__brush), + (this.active = 0); + } + function d() { + if ((!e || pe.touches) && r.apply(this, arguments)) { + var n, i, - o = this, - a = o.context, - s = o.config, - u = o.classChartBar.bind(o), - l = o.classBars.bind(o), - c = o.classChartLine.bind(o), - f = o.classLines.bind(o), - d = o.classAreas.bind(o); - s.subchart_show && - ((r = (i = a - .select('.' + w.chartBars) - .selectAll('.' + w.chartBar) - .data(t)) - .enter() - .append('g') - .style('opacity', 0)) - .merge(i) - .attr('class', u), - r.append('g').attr('class', l), - (e = (n = a - .select('.' + w.chartLines) - .selectAll('.' + w.chartLine) - .data(t)) - .enter() - .append('g') - .style('opacity', 0)) - .merge(n) - .attr('class', c), - e.append('g').attr('class', f), - e.append('g').attr('class', d), - a - .selectAll('.' + w.brush + ' rect') - .attr( - s.axis_rotated ? 'width' : 'height', - s.axis_rotated ? o.width2 : o.height2 - )); + a, + s, + u, + f, + d, + h, + p, + g, + m, + v, + y = this, + b = pe.target.__data__.type, + _ = + 'selection' === (o && pe.metaKey ? (b = 'overlay') : b) + ? ta + : o && pe.altKey + ? ra + : na, + x = t === sa ? null : da[b], + w = t === aa ? null : ha[b], + S = ya(y), + E = S.extent, + k = S.selection, + A = E[0][0], + T = E[0][1], + C = E[1][0], + O = E[1][1], + P = 0, + M = 0, + L = x && w && o && pe.shiftKey, + j = pe.touches + ? ((v = pe.changedTouches[0].identifier), + function(t) { + return Ne(t, pe.touches, v); + }) + : Re, + D = j(y), + R = D, + z = c(y, arguments, !0).beforestart(); + 'overlay' === b + ? (k && (p = !0), + (S.selection = k = [ + [ + (n = t === sa ? A : D[0]), + (a = t === aa ? T : D[1]) + ], + [(u = t === sa ? C : n), (d = t === aa ? O : a)] + ])) + : ((n = k[0][0]), + (a = k[0][1]), + (u = k[1][0]), + (d = k[1][1])), + (i = n), + (s = a), + (f = u), + (h = d); + var N = Ce(y).attr('pointer-events', 'none'), + I = N.selectAll('.overlay').attr('cursor', la[b]); + if (pe.touches) (z.moved = V), (z.ended = G); + else { + var F = Ce(pe.view) + .on('mousemove.brush', V, !0) + .on('mouseup.brush', G, !0); + o && + F.on( + 'keydown.brush', + function() { + switch (pe.keyCode) { + case 16: + L = x && w; + break; + case 18: + _ === na && + (x && ((u = f - P * x), (n = i + P * x)), + w && ((d = h - M * w), (a = s + M * w)), + (_ = ra), + B()); + break; + case 32: + (_ !== na && _ !== ra) || + (x < 0 ? (u = f - P) : x > 0 && (n = i - P), + w < 0 ? (d = h - M) : w > 0 && (a = s - M), + (_ = ea), + I.attr('cursor', la.selection), + B()); + break; + default: + return; + } + Jo(); + }, + !0 + ).on( + 'keyup.brush', + function() { + switch (pe.keyCode) { + case 16: + L && ((g = m = L = !1), B()); + break; + case 18: + _ === ra && + (x < 0 ? (u = f) : x > 0 && (n = i), + w < 0 ? (d = h) : w > 0 && (a = s), + (_ = na), + B()); + break; + case 32: + _ === ea && + (pe.altKey + ? (x && ((u = f - P * x), (n = i + P * x)), + w && ((d = h - M * w), (a = s + M * w)), + (_ = ra)) + : (x < 0 ? (u = f) : x > 0 && (n = i), + w < 0 ? (d = h) : w > 0 && (a = s), + (_ = na)), + I.attr('cursor', la[b]), + B()); + break; + default: + return; + } + Jo(); + }, + !0 + ), + Be(pe.view); + } + Zo(), Mi(y), l.call(y), z.start(); + } + function V() { + var t = j(y); + !L || + g || + m || + (Math.abs(t[0] - R[0]) > Math.abs(t[1] - R[1]) + ? (m = !0) + : (g = !0)), + (R = t), + (p = !0), + Jo(), + B(); + } + function B() { + var t; + switch (((P = R[0] - D[0]), (M = R[1] - D[1]), _)) { + case ea: + case ta: + x && + ((P = Math.max(A - n, Math.min(C - u, P))), + (i = n + P), + (f = u + P)), + w && + ((M = Math.max(T - a, Math.min(O - d, M))), + (s = a + M), + (h = d + M)); + break; + case na: + x < 0 + ? ((P = Math.max(A - n, Math.min(C - n, P))), + (i = n + P), + (f = u)) + : x > 0 && + ((P = Math.max(A - u, Math.min(C - u, P))), + (i = n), + (f = u + P)), + w < 0 + ? ((M = Math.max(T - a, Math.min(O - a, M))), + (s = a + M), + (h = d)) + : w > 0 && + ((M = Math.max(T - d, Math.min(O - d, M))), + (s = a), + (h = d + M)); + break; + case ra: + x && + ((i = Math.max(A, Math.min(C, n - P * x))), + (f = Math.max(A, Math.min(C, u + P * x)))), + w && + ((s = Math.max(T, Math.min(O, a - M * w))), + (h = Math.max(T, Math.min(O, d + M * w)))); + } + f < i && + ((x *= -1), + (t = n), + (n = u), + (u = t), + (t = i), + (i = f), + (f = t), + b in ca && I.attr('cursor', la[(b = ca[b])])), + h < s && + ((w *= -1), + (t = a), + (a = d), + (d = t), + (t = s), + (s = h), + (h = t), + b in fa && I.attr('cursor', la[(b = fa[b])])), + S.selection && (k = S.selection), + g && ((i = k[0][0]), (f = k[1][0])), + m && ((s = k[0][1]), (h = k[1][1])), + (k[0][0] === i && + k[0][1] === s && + k[1][0] === f && + k[1][1] === h) || + ((S.selection = [[i, s], [f, h]]), + l.call(y), + z.brush()); + } + function G() { + if ((Zo(), pe.touches)) { + if (pe.touches.length) return; + e && clearTimeout(e), + (e = setTimeout(function() { + e = null; + }, 500)); + } else + Ge(pe.view, p), + F.on( + 'keydown.brush keyup.brush mousemove.brush mouseup.brush', + null + ); + N.attr('pointer-events', 'all'), + I.attr('cursor', la.overlay), + S.selection && (k = S.selection), + (function(t) { + return t[0][0] === t[1][0] || t[0][1] === t[1][1]; + })(k) && ((S.selection = null), l.call(y)), + z.end(); + } + } + function h() { + c(this, arguments).moved(); + } + function p() { + c(this, arguments).ended(); + } + function g() { + var e = this.__brush || { selection: null }; + return ( + (e.extent = oa(n.apply(this, arguments))), (e.dim = t), e + ); + } + return ( + (u.move = function(e, n) { + e.selection + ? e + .on('start.brush', function() { + c(this, arguments) + .beforestart() + .start(); + }) + .on('interrupt.brush end.brush', function() { + c(this, arguments).end(); + }) + .tween('brush', function() { + var e = this, + r = e.__brush, + i = c(e, arguments), + o = r.selection, + a = t.input( + 'function' == typeof n + ? n.apply(this, arguments) + : n, + r.extent + ), + s = Kn(o, a); + function u(t) { + (r.selection = + 1 === t && null === a ? null : s(t)), + l.call(e), + i.brush(); + } + return null !== o && null !== a ? u : u(1); + }) + : e.each(function() { + var e = this, + r = arguments, + i = e.__brush, + o = t.input( + 'function' == typeof n ? n.apply(e, r) : n, + i.extent + ), + a = c(e, r).beforestart(); + Mi(e), + (i.selection = null === o ? null : o), + l.call(e), + a + .start() + .brush() + .end(); + }); }), - (r.prototype.updateBarForSubchart = function(t) { - var e = this, - n = e.context - .selectAll('.' + w.bars) - .selectAll('.' + w.bar) - .data(e.barData.bind(e)), - r = n - .enter() - .append('path') - .attr('class', e.classBar.bind(e)) - .style('stroke', 'none') - .style('fill', e.color); - n - .exit() - .transition() - .duration(t) - .style('opacity', 0) - .remove(), - (e.contextBar = r - .merge(n) - .style('opacity', e.initialOpacity.bind(e))); + (u.clear = function(t) { + u.move(t, null); }), - (r.prototype.redrawBarForSubchart = function(t, e, n) { - (e - ? this.contextBar - .transition(Math.random().toString()) - .duration(n) - : this.contextBar - ) - .attr('d', t) - .style('opacity', 1); + (f.prototype = { + beforestart: function() { + return ( + 1 == ++this.active && + ((this.state.emitter = this), (this.starting = !0)), + this + ); + }, + start: function() { + return ( + this.starting + ? ((this.starting = !1), this.emit('start')) + : this.emit('brush'), + this + ); + }, + brush: function() { + return this.emit('brush'), this; + }, + end: function() { + return ( + 0 == --this.active && + (delete this.state.emitter, this.emit('end')), + this + ); + }, + emit: function(e) { + _e( + new Qo(u, e, t.output(this.state.selection)), + a.apply, + a, + [e, this.that, this.args] + ); + } }), - (r.prototype.updateLineForSubchart = function(t) { - var e = this, - n = e.context - .selectAll('.' + w.lines) - .selectAll('.' + w.line) - .data(e.lineData.bind(e)), - r = n - .enter() - .append('path') - .attr('class', e.classLine.bind(e)) - .style('stroke', e.color); - n - .exit() - .transition() - .duration(t) - .style('opacity', 0) - .remove(), - (e.contextLine = r - .merge(n) - .style('opacity', e.initialOpacity.bind(e))); + (u.extent = function(t) { + return arguments.length + ? ((n = 'function' == typeof t ? t : Ko(oa(t))), u) + : n; }), - (r.prototype.redrawLineForSubchart = function(t, e, n) { - (e - ? this.contextLine - .transition(Math.random().toString()) - .duration(n) - : this.contextLine - ) - .attr('d', t) - .style('opacity', 1); + (u.filter = function(t) { + return arguments.length + ? ((r = 'function' == typeof t ? t : Ko(!!t)), u) + : r; }), - (r.prototype.updateAreaForSubchart = function(t) { - var e = this, - n = e.d3, - r = e.context - .selectAll('.' + w.areas) - .selectAll('.' + w.area) - .data(e.lineData.bind(e)), - i = r - .enter() - .append('path') - .attr('class', e.classArea.bind(e)) - .style('fill', e.color) - .style('opacity', function() { - return ( - (e.orgAreaOpacity = +n - .select(this) - .style('opacity')), - 0 - ); - }); - r - .exit() - .transition() - .duration(t) - .style('opacity', 0) - .remove(), - (e.contextArea = i.merge(r).style('opacity', 0)); + (u.handleSize = function(t) { + return arguments.length ? ((s = +t), u) : s; }), - (r.prototype.redrawAreaForSubchart = function(t, e, n) { - (e - ? this.contextArea - .transition(Math.random().toString()) - .duration(n) - : this.contextArea - ) - .attr('d', t) - .style('fill', this.color) - .style('opacity', this.orgAreaOpacity); + (u.keyModifiers = function(t) { + return arguments.length ? ((o = !!t), u) : o; }), - (r.prototype.redrawSubchart = function(t, e, n, r, i, o, a) { - var s, + (u.on = function() { + var t = a.on.apply(a, arguments); + return t === a ? u : t; + }), + u + ); + } + var Ea = Math.cos, + ka = Math.sin, + Aa = Math.PI, + Ta = Aa / 2, + Ca = 2 * Aa, + Oa = Math.max; + function Pa(t) { + return function(e, n) { + return t( + e.source.value + e.target.value, + n.source.value + n.target.value + ); + }; + } + var Ma = function() { + var t = 0, + e = null, + n = null, + r = null; + function i(i) { + var o, + a, + s, u, l, - c = this, - f = c.d3, - d = c.config; - c.context.style( - 'visibility', - d.subchart_show ? 'visible' : 'hidden' - ), - d.subchart_show && - (f.event && - 'zoom' === f.event.type && - c.brush.selectionAsValue(c.x.orgDomain()), - t && - (c.brush.empty() || - c.brush.selectionAsValue(c.x.orgDomain()), - (s = c.generateDrawArea(i, !0)), - (u = c.generateDrawBar(o, !0)), - (l = c.generateDrawLine(a, !0)), - c.updateBarForSubchart(n), - c.updateLineForSubchart(n), - c.updateAreaForSubchart(n), - c.redrawBarForSubchart(u, n, n), - c.redrawLineForSubchart(l, n, n), - c.redrawAreaForSubchart(s, n, n))); - }), - (r.prototype.redrawForBrush = function() { - var t, - e = this, - n = e.x, - r = e.d3; - e.redraw({ - withTransition: !1, - withY: e.config.zoom_rescale, - withSubchart: !1, - withUpdateXDomain: !0, - withEventRect: !1, - withDimension: !1 + c, + f = i.length, + d = [], + h = w(f), + p = [], + g = [], + m = (g.groups = new Array(f)), + v = new Array(f * f); + for (o = 0, l = -1; ++l < f; ) { + for (a = 0, c = -1; ++c < f; ) a += i[l][c]; + d.push(a), p.push(w(f)), (o += a); + } + for ( + e && + h.sort(function(t, n) { + return e(d[t], d[n]); + }), + n && + p.forEach(function(t, e) { + t.sort(function(t, r) { + return n(i[e][t], i[e][r]); + }); + }), + u = (o = Oa(0, Ca - t * f) / o) ? t : Ca / f, + a = 0, + l = -1; + ++l < f; + + ) { + for (s = a, c = -1; ++c < f; ) { + var y = h[l], + b = p[y][c], + _ = i[y][b], + x = a, + S = (a += _ * o); + v[b * f + y] = { + index: y, + subindex: b, + startAngle: x, + endAngle: S, + value: _ + }; + } + (m[y] = { + index: y, + startAngle: s, + endAngle: a, + value: d[y] + }), + (a += u); + } + for (l = -1; ++l < f; ) + for (c = l - 1; ++c < f; ) { + var E = v[c * f + l], + k = v[l * f + c]; + (E.value || k.value) && + g.push( + E.value < k.value + ? { source: k, target: E } + : { source: E, target: k } + ); + } + return r ? g.sort(r) : g; + } + return ( + (i.padAngle = function(e) { + return arguments.length ? ((t = Oa(0, e)), i) : t; }), - (t = r.event.selection || e.brush.scale.range()), - e.main - .select('.' + w.eventRect) - .call( - e.zoom.transform, - r.zoomIdentity - .scale(e.width / (t[1] - t[0])) - .translate(-t[0], 0) - ), - e.config.subchart_onbrush.call(e.api, n.orgDomain()); - }), - (r.prototype.transformContext = function(t, e) { - var n; - e && e.axisSubX - ? (n = e.axisSubX) - : ((n = this.context.select('.' + w.axisX)), - t && (n = n.transition())), - this.context.attr( - 'transform', - this.getTranslate('context') - ), - n.attr('transform', this.getTranslate('subx')); - }), - (r.prototype.getDefaultSelection = function() { - var t = this, - e = t.config, - n = p(e.axis_x_selection) - ? e.axis_x_selection(t.getXDomain(t.data.targets)) - : e.axis_x_selection; - return ( - t.isTimeSeries() && - (n = [t.parseDate(n[0]), t.parseDate(n[1])]), - n - ); + (i.sortGroups = function(t) { + return arguments.length ? ((e = t), i) : e; + }), + (i.sortSubgroups = function(t) { + return arguments.length ? ((n = t), i) : n; + }), + (i.sortChords = function(t) { + return arguments.length + ? (null == t ? (r = null) : ((r = Pa(t))._ = t), i) + : r && r._; + }), + i + ); + }, + La = Array.prototype.slice, + ja = function(t) { + return function() { + return t; + }; + }, + Da = Math.PI, + Ra = 2 * Da, + za = Ra - 1e-6; + function Na() { + (this._x0 = this._y0 = this._x1 = this._y1 = null), + (this._ = ''); + } + function Ia() { + return new Na(); + } + Na.prototype = Ia.prototype = { + constructor: Na, + moveTo: function(t, e) { + this._ += + 'M' + + (this._x0 = this._x1 = +t) + + ',' + + (this._y0 = this._y1 = +e); + }, + closePath: function() { + null !== this._x1 && + ((this._x1 = this._x0), + (this._y1 = this._y0), + (this._ += 'Z')); + }, + lineTo: function(t, e) { + this._ += 'L' + (this._x1 = +t) + ',' + (this._y1 = +e); + }, + quadraticCurveTo: function(t, e, n, r) { + this._ += + 'Q' + + +t + + ',' + + +e + + ',' + + (this._x1 = +n) + + ',' + + (this._y1 = +r); + }, + bezierCurveTo: function(t, e, n, r, i, o) { + this._ += + 'C' + + +t + + ',' + + +e + + ',' + + +n + + ',' + + +r + + ',' + + (this._x1 = +i) + + ',' + + (this._y1 = +o); + }, + arcTo: function(t, e, n, r, i) { + (t = +t), (e = +e), (n = +n), (r = +r), (i = +i); + var o = this._x1, + a = this._y1, + s = n - t, + u = r - e, + l = o - t, + c = a - e, + f = l * l + c * c; + if (i < 0) throw new Error('negative radius: ' + i); + if (null === this._x1) + this._ += 'M' + (this._x1 = t) + ',' + (this._y1 = e); + else if (f > 1e-6) + if (Math.abs(c * s - u * l) > 1e-6 && i) { + var d = n - o, + h = r - a, + p = s * s + u * u, + g = d * d + h * h, + m = Math.sqrt(p), + v = Math.sqrt(f), + y = + i * + Math.tan( + (Da - Math.acos((p + f - g) / (2 * m * v))) / 2 + ), + b = y / v, + _ = y / m; + Math.abs(b - 1) > 1e-6 && + (this._ += 'L' + (t + b * l) + ',' + (e + b * c)), + (this._ += + 'A' + + i + + ',' + + i + + ',0,0,' + + +(c * d > l * h) + + ',' + + (this._x1 = t + _ * s) + + ',' + + (this._y1 = e + _ * u)); + } else + this._ += 'L' + (this._x1 = t) + ',' + (this._y1 = e); + }, + arc: function(t, e, n, r, i, o) { + (t = +t), (e = +e), (o = !!o); + var a = (n = +n) * Math.cos(r), + s = n * Math.sin(r), + u = t + a, + l = e + s, + c = 1 ^ o, + f = o ? r - i : i - r; + if (n < 0) throw new Error('negative radius: ' + n); + null === this._x1 + ? (this._ += 'M' + u + ',' + l) + : (Math.abs(this._x1 - u) > 1e-6 || + Math.abs(this._y1 - l) > 1e-6) && + (this._ += 'L' + u + ',' + l), + n && + (f < 0 && (f = (f % Ra) + Ra), + f > za + ? (this._ += + 'A' + + n + + ',' + + n + + ',0,1,' + + c + + ',' + + (t - a) + + ',' + + (e - s) + + 'A' + + n + + ',' + + n + + ',0,1,' + + c + + ',' + + (this._x1 = u) + + ',' + + (this._y1 = l)) + : f > 1e-6 && + (this._ += + 'A' + + n + + ',' + + n + + ',0,' + + +(f >= Da) + + ',' + + c + + ',' + + (this._x1 = t + n * Math.cos(i)) + + ',' + + (this._y1 = e + n * Math.sin(i)))); + }, + rect: function(t, e, n, r) { + this._ += + 'M' + + (this._x0 = this._x1 = +t) + + ',' + + (this._y0 = this._y1 = +e) + + 'h' + + +n + + 'v' + + +r + + 'h' + + -n + + 'Z'; + }, + toString: function() { + return this._; + } + }; + var Fa = Ia; + function Va(t) { + return t.source; + } + function Ba(t) { + return t.target; + } + function Ga(t) { + return t.radius; + } + function Ha(t) { + return t.startAngle; + } + function Ua(t) { + return t.endAngle; + } + var qa = function() { + var t = Va, + e = Ba, + n = Ga, + r = Ha, + i = Ua, + o = null; + function a() { + var a, + s = La.call(arguments), + u = t.apply(this, s), + l = e.apply(this, s), + c = +n.apply(this, ((s[0] = u), s)), + f = r.apply(this, s) - Ta, + d = i.apply(this, s) - Ta, + h = c * Ea(f), + p = c * ka(f), + g = +n.apply(this, ((s[0] = l), s)), + m = r.apply(this, s) - Ta, + v = i.apply(this, s) - Ta; + if ( + (o || (o = a = Fa()), + o.moveTo(h, p), + o.arc(0, 0, c, f, d), + (f === m && d === v) || + (o.quadraticCurveTo(0, 0, g * Ea(m), g * ka(m)), + o.arc(0, 0, g, m, v)), + o.quadraticCurveTo(0, 0, h, p), + o.closePath(), + a) + ) + return (o = null), a + '' || null; + } + return ( + (a.radius = function(t) { + return arguments.length + ? ((n = 'function' == typeof t ? t : ja(+t)), a) + : n; }), - (r.prototype.initText = function() { - this.main - .select('.' + w.chart) - .append('g') - .attr('class', w.chartTexts), - (this.mainText = this.d3.selectAll([])); + (a.startAngle = function(t) { + return arguments.length + ? ((r = 'function' == typeof t ? t : ja(+t)), a) + : r; }), - (r.prototype.updateTargetsForText = function(t) { - var e = this, - n = e.classChartText.bind(e), - r = e.classTexts.bind(e), - i = e.classFocus.bind(e), - o = e.main - .select('.' + w.chartTexts) - .selectAll('.' + w.chartText) - .data(t), - a = o - .enter() - .append('g') - .attr('class', n) - .style('opacity', 0) - .style('pointer-events', 'none'); - a.append('g').attr('class', r), - a.merge(o).attr('class', function(t) { - return n(t) + i(t); - }); + (a.endAngle = function(t) { + return arguments.length + ? ((i = 'function' == typeof t ? t : ja(+t)), a) + : i; }), - (r.prototype.updateText = function(t, e, n) { - var r = this, - i = r.config, - o = r.barOrLineData.bind(r), - a = r.classText.bind(r), - s = r.main - .selectAll('.' + w.texts) - .selectAll('.' + w.text) - .data(o), - u = s - .enter() - .append('text') - .attr('class', a) - .attr('text-anchor', function(t) { - return i.axis_rotated - ? t.value < 0 - ? 'end' - : 'start' - : 'middle'; - }) - .style('stroke', 'none') - .attr('x', t) - .attr('y', e) - .style('fill', function(t) { - return r.color(t); - }) - .style('fill-opacity', 0); - (r.mainText = u.merge(s).text(function(t, e, n) { - return r.dataLabelFormat(t.id)(t.value, t.id, e, n); - })), - s - .exit() - .transition() - .duration(n) - .style('fill-opacity', 0) - .remove(); + (a.source = function(e) { + return arguments.length ? ((t = e), a) : t; }), - (r.prototype.redrawText = function(t, e, n, r, i) { - return [ - (r ? this.mainText.transition(i) : this.mainText) - .attr('x', t) - .attr('y', e) - .style('fill', this.color) - .style( - 'fill-opacity', - n ? 0 : this.opacityForText.bind(this) - ) - ]; + (a.target = function(t) { + return arguments.length ? ((e = t), a) : e; }), - (r.prototype.getTextRect = function(t, e, n) { - var r, - i = this.d3 - .select('body') - .append('div') - .classed('c3', !0), - o = i - .append('svg') - .style('visibility', 'hidden') - .style('position', 'fixed') - .style('top', 0) - .style('left', 0), - a = this.d3.select(n).style('font'); + (a.context = function(t) { + return arguments.length + ? ((o = null == t ? null : t), a) + : o; + }), + a + ); + }; + function Wa() {} + function Xa(t, e) { + var n = new Wa(); + if (t instanceof Wa) + t.each(function(t, e) { + n.set(e, t); + }); + else if (Array.isArray(t)) { + var r, + i = -1, + o = t.length; + if (null == e) for (; ++i < o; ) n.set(i, t[i]); + else for (; ++i < o; ) n.set(e((r = t[i]), i, t), r); + } else if (t) for (var a in t) n.set(a, t[a]); + return n; + } + Wa.prototype = Xa.prototype = { + constructor: Wa, + has: function(t) { + return '$' + t in this; + }, + get: function(t) { + return this['$' + t]; + }, + set: function(t, e) { + return (this['$' + t] = e), this; + }, + remove: function(t) { + var e = '$' + t; + return e in this && delete this[e]; + }, + clear: function() { + for (var t in this) '$' === t[0] && delete this[t]; + }, + keys: function() { + var t = []; + for (var e in this) '$' === e[0] && t.push(e.slice(1)); + return t; + }, + values: function() { + var t = []; + for (var e in this) '$' === e[0] && t.push(this[e]); + return t; + }, + entries: function() { + var t = []; + for (var e in this) + '$' === e[0] && t.push({ key: e.slice(1), value: this[e] }); + return t; + }, + size: function() { + var t = 0; + for (var e in this) '$' === e[0] && ++t; + return t; + }, + empty: function() { + for (var t in this) if ('$' === t[0]) return !1; + return !0; + }, + each: function(t) { + for (var e in this) + '$' === e[0] && t(this[e], e.slice(1), this); + } + }; + var Ya = Xa, + $a = function() { + var t, + e, + n, + r = [], + i = []; + function o(n, i, a, s) { + if (i >= r.length) + return null != t && n.sort(t), null != e ? e(n) : n; + for ( + var u, + l, + c, + f = -1, + d = n.length, + h = r[i++], + p = Ya(), + g = a(); + ++f < d; + + ) + (c = p.get((u = h((l = n[f])) + ''))) + ? c.push(l) + : p.set(u, [l]); + return ( + p.each(function(t, e) { + s(g, e, o(t, i, a, s)); + }), + g + ); + } + return (n = { + object: function(t) { + return o(t, 0, Ka, Qa); + }, + map: function(t) { + return o(t, 0, Za, Ja); + }, + entries: function(t) { + return (function t(n, o) { + if (++o > r.length) return n; + var a, + s = i[o - 1]; + return ( + null != e && o >= r.length + ? (a = n.entries()) + : ((a = []), + n.each(function(e, n) { + a.push({ key: n, values: t(e, o) }); + })), + null != s + ? a.sort(function(t, e) { + return s(t.key, e.key); + }) + : a + ); + })(o(t, 0, Za, Ja), 0); + }, + key: function(t) { + return r.push(t), n; + }, + sortKeys: function(t) { + return (i[r.length - 1] = t), n; + }, + sortValues: function(e) { + return (t = e), n; + }, + rollup: function(t) { + return (e = t), n; + } + }); + }; + function Ka() { + return {}; + } + function Qa(t, e, n) { + t[e] = n; + } + function Za() { + return Ya(); + } + function Ja(t, e, n) { + t.set(e, n); + } + function ts() {} + var es = Ya.prototype; + function ns(t, e) { + var n = new ts(); + if (t instanceof ts) + t.each(function(t) { + n.add(t); + }); + else if (t) { + var r = -1, + i = t.length; + if (null == e) for (; ++r < i; ) n.add(t[r]); + else for (; ++r < i; ) n.add(e(t[r], r, t)); + } + return n; + } + ts.prototype = ns.prototype = { + constructor: ts, + has: es.has, + add: function(t) { + return (this['$' + (t += '')] = t), this; + }, + remove: es.remove, + clear: es.clear, + values: es.keys, + size: es.size, + empty: es.empty, + each: es.each + }; + var rs = ns, + is = function(t) { + var e = []; + for (var n in t) e.push(n); + return e; + }, + os = function(t) { + var e = []; + for (var n in t) e.push(t[n]); + return e; + }, + as = function(t) { + var e = []; + for (var n in t) e.push({ key: n, value: t[n] }); + return e; + }, + ss = Array.prototype.slice, + us = function(t, e) { + return t - e; + }, + ls = function(t) { + for ( + var e = 0, + n = t.length, + r = t[n - 1][1] * t[0][0] - t[n - 1][0] * t[0][1]; + ++e < n; + + ) + r += t[e - 1][1] * t[e][0] - t[e - 1][0] * t[e][1]; + return r; + }, + cs = function(t) { + return function() { + return t; + }; + }, + fs = function(t, e) { + for (var n, r = -1, i = e.length; ++r < i; ) + if ((n = ds(t, e[r]))) return n; + return 0; + }; + function ds(t, e) { + for ( + var n = e[0], + r = e[1], + i = -1, + o = 0, + a = t.length, + s = a - 1; + o < a; + s = o++ + ) { + var u = t[o], + l = u[0], + c = u[1], + f = t[s], + d = f[0], + h = f[1]; + if (hs(u, f, e)) return 0; + c > r != h > r && + n < ((d - l) * (r - c)) / (h - c) + l && + (i = -i); + } + return i; + } + function hs(t, e, n) { + var r, i, o, a; + return ( + (function(t, e, n) { + return ( + (e[0] - t[0]) * (n[1] - t[1]) == + (n[0] - t[0]) * (e[1] - t[1]) + ); + })(t, e, n) && + ((i = t[(r = +(t[0] === e[0]))]), + (o = n[r]), + (a = e[r]), + (i <= o && o <= a) || (a <= o && o <= i)) + ); + } + var ps = function() {}, + gs = [ + [], + [[[1, 1.5], [0.5, 1]]], + [[[1.5, 1], [1, 1.5]]], + [[[1.5, 1], [0.5, 1]]], + [[[1, 0.5], [1.5, 1]]], + [[[1, 1.5], [0.5, 1]], [[1, 0.5], [1.5, 1]]], + [[[1, 0.5], [1, 1.5]]], + [[[1, 0.5], [0.5, 1]]], + [[[0.5, 1], [1, 0.5]]], + [[[1, 1.5], [1, 0.5]]], + [[[0.5, 1], [1, 0.5]], [[1.5, 1], [1, 1.5]]], + [[[1.5, 1], [1, 0.5]]], + [[[0.5, 1], [1.5, 1]]], + [[[1, 1.5], [1.5, 1]]], + [[[0.5, 1], [1, 1.5]]], + [] + ], + ms = function() { + var t = 1, + e = 1, + n = O, + r = s; + function i(t) { + var e = n(t); + if (Array.isArray(e)) e = e.slice().sort(us); + else { + var r = m(t), + i = r[0], + a = r[1]; + (e = C(i, a, e)), + (e = w( + Math.floor(i / e) * e, + Math.floor(a / e) * e, + e + )); + } + return e.map(function(e) { + return o(t, e); + }); + } + function o(n, i) { + var o = [], + s = []; + return ( + (function(n, r, i) { + var o, + s, + u, + l, + c, + f, + d = new Array(), + h = new Array(); + for ( + o = s = -1, l = n[0] >= r, gs[l << 1].forEach(p); + ++o < t - 1; + + ) + (u = l), + (l = n[o + 1] >= r), + gs[u | (l << 1)].forEach(p); + for (gs[l << 0].forEach(p); ++s < e - 1; ) { + for ( + o = -1, + l = n[s * t + t] >= r, + c = n[s * t] >= r, + gs[(l << 1) | (c << 2)].forEach(p); + ++o < t - 1; + + ) + (u = l), + (l = n[s * t + t + o + 1] >= r), + (f = c), + (c = n[s * t + o + 1] >= r), + gs[u | (l << 1) | (c << 2) | (f << 3)].forEach(p); + gs[l | (c << 3)].forEach(p); + } + for ( + o = -1, c = n[s * t] >= r, gs[c << 2].forEach(p); + ++o < t - 1; + + ) + (f = c), + (c = n[s * t + o + 1] >= r), + gs[(c << 2) | (f << 3)].forEach(p); + function p(t) { + var e, + n, + r = [t[0][0] + o, t[0][1] + s], + u = [t[1][0] + o, t[1][1] + s], + l = a(r), + c = a(u); + (e = h[l]) + ? (n = d[c]) + ? (delete h[e.end], + delete d[n.start], + e === n + ? (e.ring.push(u), i(e.ring)) + : (d[e.start] = h[n.end] = { + start: e.start, + end: n.end, + ring: e.ring.concat(n.ring) + })) + : (delete h[e.end], + e.ring.push(u), + (h[(e.end = c)] = e)) + : (e = d[c]) + ? (n = h[l]) + ? (delete d[e.start], + delete h[n.end], + e === n + ? (e.ring.push(u), i(e.ring)) + : (d[n.start] = h[e.end] = { + start: n.start, + end: e.end, + ring: n.ring.concat(e.ring) + })) + : (delete d[e.start], + e.ring.unshift(r), + (d[(e.start = l)] = e)) + : (d[l] = h[c] = { + start: l, + end: c, + ring: [r, u] + }); + } + gs[c << 3].forEach(p); + })(n, i, function(t) { + r(t, n, i), ls(t) > 0 ? o.push([t]) : s.push(t); + }), + s.forEach(function(t) { + for (var e, n = 0, r = o.length; n < r; ++n) + if (-1 !== fs((e = o[n])[0], t)) + return void e.push(t); + }), + { type: 'MultiPolygon', value: i, coordinates: o } + ); + } + function a(e) { + return 2 * e[0] + e[1] * (t + 1) * 4; + } + function s(n, r, i) { + n.forEach(function(n) { + var o, + a = n[0], + s = n[1], + u = 0 | a, + l = 0 | s, + c = r[l * t + u]; + a > 0 && + a < t && + u === a && + ((o = r[l * t + u - 1]), + (n[0] = a + (i - o) / (c - o) - 0.5)), + s > 0 && + s < e && + l === s && + ((o = r[(l - 1) * t + u]), + (n[1] = s + (i - o) / (c - o) - 0.5)); + }); + } + return ( + (i.contour = o), + (i.size = function(n) { + if (!arguments.length) return [t, e]; + var r = Math.ceil(n[0]), + o = Math.ceil(n[1]); + if (!(r > 0 && o > 0)) throw new Error('invalid size'); + return (t = r), (e = o), i; + }), + (i.thresholds = function(t) { + return arguments.length + ? ((n = + 'function' == typeof t + ? t + : Array.isArray(t) + ? cs(ss.call(t)) + : cs(t)), + i) + : n; + }), + (i.smooth = function(t) { + return arguments.length ? ((r = t ? s : ps), i) : r === s; + }), + i + ); + }; + function vs(t, e, n) { + for ( + var r = t.width, i = t.height, o = 1 + (n << 1), a = 0; + a < i; + ++a + ) + for (var s = 0, u = 0; s < r + n; ++s) + s < r && (u += t.data[s + a * r]), + s >= n && + (s >= o && (u -= t.data[s - o + a * r]), + (e.data[s - n + a * r] = + u / Math.min(s + 1, r - 1 + o - s, o))); + } + function ys(t, e, n) { + for ( + var r = t.width, i = t.height, o = 1 + (n << 1), a = 0; + a < r; + ++a + ) + for (var s = 0, u = 0; s < i + n; ++s) + s < i && (u += t.data[a + s * r]), + s >= n && + (s >= o && (u -= t.data[a + (s - o) * r]), + (e.data[a + (s - n) * r] = + u / Math.min(s + 1, i - 1 + o - s, o))); + } + function bs(t) { + return t[0]; + } + function _s(t) { + return t[1]; + } + function xs() { + return 1; + } + var ws = function() { + var t = bs, + e = _s, + n = xs, + r = 960, + i = 500, + o = 20, + a = 2, + s = 3 * o, + u = (r + 2 * s) >> a, + l = (i + 2 * s) >> a, + c = cs(20); + function f(r) { + var i = new Float32Array(u * l), + f = new Float32Array(u * l); + r.forEach(function(r, o, c) { + var f = (+t(r, o, c) + s) >> a, + d = (+e(r, o, c) + s) >> a, + h = +n(r, o, c); + f >= 0 && f < u && d >= 0 && d < l && (i[f + d * u] += h); + }), + vs( + { width: u, height: l, data: i }, + { width: u, height: l, data: f }, + o >> a + ), + ys( + { width: u, height: l, data: f }, + { width: u, height: l, data: i }, + o >> a + ), + vs( + { width: u, height: l, data: i }, + { width: u, height: l, data: f }, + o >> a + ), + ys( + { width: u, height: l, data: f }, + { width: u, height: l, data: i }, + o >> a + ), + vs( + { width: u, height: l, data: i }, + { width: u, height: l, data: f }, + o >> a + ), + ys( + { width: u, height: l, data: f }, + { width: u, height: l, data: i }, + o >> a + ); + var h = c(i); + if (!Array.isArray(h)) { + var p = D(i); + (h = C(0, p, h)), + (h = w(0, Math.floor(p / h) * h, h)).shift(); + } + return ms() + .thresholds(h) + .size([u, l])(i) + .map(d); + } + function d(t) { return ( - o - .selectAll('.dummy') - .data([t]) - .enter() - .append('text') - .classed(e || '', !0) - .style('font', a) - .text(t) - .each(function() { - r = c(this); - }), - i.remove(), - r + (t.value *= Math.pow(2, -2 * a)), + t.coordinates.forEach(h), + t ); - }), - (r.prototype.generateXYForText = function(t, e, n, r) { - var i = this, - o = i.generateGetAreaPoints(t, !1), - a = i.generateGetBarPoints(e, !1), - s = i.generateGetLinePoints(n, !1), - u = r ? i.getXForText : i.getYForText; - return function(t, e) { - var n = i.isAreaType(t) ? o : i.isBarType(t) ? a : s; - return u.call(i, n(t, e), t, this); - }; - }), - (r.prototype.getXForText = function(t, e, n) { - var r, - i, - o = this, - a = c(n); + } + function h(t) { + t.forEach(p); + } + function p(t) { + t.forEach(g); + } + function g(t) { + (t[0] = t[0] * Math.pow(2, a) - s), + (t[1] = t[1] * Math.pow(2, a) - s); + } + function m() { return ( - o.config.axis_rotated - ? ((i = o.isBarType(e) ? 4 : 6), - (r = t[2][1] + i * (e.value < 0 ? -1 : 1))) - : (r = o.hasType('bar') - ? (t[2][0] + t[0][0]) / 2 - : t[0][0]), - null === e.value && - (r > o.width - ? (r = o.width - a.width) - : r < 0 && (r = 4)), - r + (u = (r + 2 * (s = 3 * o)) >> a), + (l = (i + 2 * s) >> a), + f ); + } + return ( + (f.x = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : cs(+e)), f) + : t; + }), + (f.y = function(t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : cs(+t)), f) + : e; + }), + (f.weight = function(t) { + return arguments.length + ? ((n = 'function' == typeof t ? t : cs(+t)), f) + : n; + }), + (f.size = function(t) { + if (!arguments.length) return [r, i]; + var e = Math.ceil(t[0]), + n = Math.ceil(t[1]); + if (!(e >= 0 || e >= 0)) throw new Error('invalid size'); + return (r = e), (i = n), m(); + }), + (f.cellSize = function(t) { + if (!arguments.length) return 1 << a; + if (!((t = +t) >= 1)) + throw new Error('invalid cell size'); + return (a = Math.floor(Math.log(t) / Math.LN2)), m(); + }), + (f.thresholds = function(t) { + return arguments.length + ? ((c = + 'function' == typeof t + ? t + : Array.isArray(t) + ? cs(ss.call(t)) + : cs(t)), + f) + : c; + }), + (f.bandwidth = function(t) { + if (!arguments.length) return Math.sqrt(o * (o + 1)); + if (!((t = +t) >= 0)) + throw new Error('invalid bandwidth'); + return ( + (o = Math.round((Math.sqrt(4 * t * t + 1) - 1) / 2)), + m() + ); + }), + f + ); + }, + Ss = {}, + Es = {}, + ks = 34, + As = 10, + Ts = 13; + function Cs(t) { + return new Function( + 'd', + 'return {' + + t + .map(function(t, e) { + return JSON.stringify(t) + ': d[' + e + ']'; + }) + .join(',') + + '}' + ); + } + function Os(t) { + var e = Object.create(null), + n = []; + return ( + t.forEach(function(t) { + for (var r in t) r in e || n.push((e[r] = r)); }), - (r.prototype.getYForText = function(t, e, n) { + n + ); + } + function Ps(t, e) { + var n = t + '', + r = n.length; + return r < e ? new Array(e - r + 1).join(0) + n : n; + } + function Ms(t) { + var e, + n = t.getUTCHours(), + r = t.getUTCMinutes(), + i = t.getUTCSeconds(), + o = t.getUTCMilliseconds(); + return isNaN(t) + ? 'Invalid Date' + : ((e = t.getUTCFullYear()) < 0 + ? '-' + Ps(-e, 6) + : e > 9999 + ? '+' + Ps(e, 6) + : Ps(e, 4)) + + '-' + + Ps(t.getUTCMonth() + 1, 2) + + '-' + + Ps(t.getUTCDate(), 2) + + (o + ? 'T' + + Ps(n, 2) + + ':' + + Ps(r, 2) + + ':' + + Ps(i, 2) + + '.' + + Ps(o, 3) + + 'Z' + : i + ? 'T' + Ps(n, 2) + ':' + Ps(r, 2) + ':' + Ps(i, 2) + 'Z' + : r || n + ? 'T' + Ps(n, 2) + ':' + Ps(r, 2) + 'Z' + : ''); + } + var Ls = function(t) { + var e = new RegExp('["' + t + '\n\r]'), + n = t.charCodeAt(0); + function r(t, e) { var r, - i = this, - o = c(n); - return ( - i.config.axis_rotated - ? (r = (t[0][0] + t[2][0] + 0.6 * o.height) / 2) - : ((r = t[2][1]), - e.value < 0 || (0 === e.value && !i.hasPositiveValue) - ? ((r += o.height), - i.isBarType(e) && i.isSafari() - ? (r -= 3) - : !i.isBarType(e) && i.isChrome() && (r += 3)) - : (r += i.isBarType(e) ? -3 : -6)), - null !== e.value || - i.config.axis_rotated || - (r < o.height - ? (r = o.height) - : r > this.height && (r = this.height - 4)), - r - ); - }), - (r.prototype.initTitle = function() { - this.title = this.svg - .append('text') - .text(this.config.title_text) - .attr('class', this.CLASS.title); - }), - (r.prototype.redrawTitle = function() { - var t = this; - t.title - .attr('x', t.xForTitle.bind(t)) - .attr('y', t.yForTitle.bind(t)); - }), - (r.prototype.xForTitle = function() { - var t = this, - e = t.config, - n = e.title_position || 'left'; - return n.indexOf('right') >= 0 - ? t.currentWidth - - t.getTextRect( - t.title.node().textContent, - t.CLASS.title, - t.title.node() - ).width - - e.title_padding.right - : n.indexOf('center') >= 0 - ? Math.max( - (t.currentWidth - - t.getTextRect( - t.title.node().textContent, - t.CLASS.title, - t.title.node() - ).width) / - 2, - 0 + i = [], + o = t.length, + a = 0, + s = 0, + u = o <= 0, + l = !1; + function c() { + if (u) return Es; + if (l) return (l = !1), Ss; + var e, + r, + i = a; + if (t.charCodeAt(i) === ks) { + for ( + ; + (a++ < o && t.charCodeAt(a) !== ks) || + t.charCodeAt(++a) === ks; + + ); + return ( + (e = a) >= o + ? (u = !0) + : (r = t.charCodeAt(a++)) === As + ? (l = !0) + : r === Ts && + ((l = !0), t.charCodeAt(a) === As && ++a), + t.slice(i + 1, e - 1).replace(/""/g, '"') + ); + } + for (; a < o; ) { + if ((r = t.charCodeAt((e = a++))) === As) l = !0; + else if (r === Ts) + (l = !0), t.charCodeAt(a) === As && ++a; + else if (r !== n) continue; + return t.slice(i, e); + } + return (u = !0), t.slice(i, o); + } + for ( + t.charCodeAt(o - 1) === As && --o, + t.charCodeAt(o - 1) === Ts && --o; + (r = c()) !== Es; + + ) { + for (var f = []; r !== Ss && r !== Es; ) + f.push(r), (r = c()); + (e && null == (f = e(f, s++))) || i.push(f); + } + return i; + } + function i(e, n) { + return e.map(function(e) { + return n + .map(function(t) { + return a(e[t]); + }) + .join(t); + }); + } + function o(e) { + return e.map(a).join(t); + } + function a(t) { + return null == t + ? '' + : t instanceof Date + ? Ms(t) + : e.test((t += '')) + ? '"' + t.replace(/"/g, '""') + '"' + : t; + } + return { + parse: function(t, e) { + var n, + i, + o = r(t, function(t, r) { + if (n) return n(t, r - 1); + (i = t), + (n = e + ? (function(t, e) { + var n = Cs(t); + return function(r, i) { + return e(n(r), i, t); + }; + })(t, e) + : Cs(t)); + }); + return (o.columns = i || []), o; + }, + parseRows: r, + format: function(e, n) { + return ( + null == n && (n = Os(e)), + [n.map(a).join(t)].concat(i(e, n)).join('\n') + ); + }, + formatBody: function(t, e) { + return null == e && (e = Os(t)), i(t, e).join('\n'); + }, + formatRows: function(t) { + return t.map(o).join('\n'); + } + }; + }, + js = Ls(','), + Ds = js.parse, + Rs = js.parseRows, + zs = js.format, + Ns = js.formatBody, + Is = js.formatRows, + Fs = Ls('\t'), + Vs = Fs.parse, + Bs = Fs.parseRows, + Gs = Fs.format, + Hs = Fs.formatBody, + Us = Fs.formatRows; + function qs(t) { + for (var e in t) { + var n, + r = t[e].trim(); + if (r) + if ('true' === r) r = !0; + else if ('false' === r) r = !1; + else if ('NaN' === r) r = NaN; + else if (isNaN((n = +r))) { + if ( + !/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/.test( + r ) - : e.title_padding.left; - }), - (r.prototype.yForTitle = function() { - var t = this; - return ( - t.config.title_padding.top + - t.getTextRect( - t.title.node().textContent, - t.CLASS.title, - t.title.node() - ).height - ); - }), - (r.prototype.getTitlePadding = function() { - return this.yForTitle() + this.config.title_padding.bottom; - }), - (r.prototype.drawColorScale = function() { - var t, - e, - n, - r, + ) + continue; + r = new Date(r); + } else r = n; + else r = null; + t[e] = r; + } + return t; + } + function Ws(t) { + if (!t.ok) throw new Error(t.status + ' ' + t.statusText); + return t.blob(); + } + var Xs = function(t, e) { + return fetch(t, e).then(Ws); + }; + function Ys(t) { + if (!t.ok) throw new Error(t.status + ' ' + t.statusText); + return t.arrayBuffer(); + } + var $s = function(t, e) { + return fetch(t, e).then(Ys); + }; + function Ks(t) { + if (!t.ok) throw new Error(t.status + ' ' + t.statusText); + return t.text(); + } + var Qs = function(t, e) { + return fetch(t, e).then(Ks); + }; + function Zs(t) { + return function(e, n, r) { + return ( + 2 === arguments.length && + 'function' == typeof n && + ((r = n), (n = void 0)), + Qs(e, n).then(function(e) { + return t(e, r); + }) + ); + }; + } + function Js(t, e, n, r) { + 3 === arguments.length && + 'function' == typeof n && + ((r = n), (n = void 0)); + var i = Ls(t); + return Qs(e, n).then(function(t) { + return i.parse(t, r); + }); + } + var tu = Zs(Ds), + eu = Zs(Vs), + nu = function(t, e) { + return new Promise(function(n, r) { + var i = new Image(); + for (var o in e) i[o] = e[o]; + (i.onerror = r), + (i.onload = function() { + n(i); + }), + (i.src = t); + }); + }; + function ru(t) { + if (!t.ok) throw new Error(t.status + ' ' + t.statusText); + return t.json(); + } + var iu = function(t, e) { + return fetch(t, e).then(ru); + }; + function ou(t) { + return function(e, n) { + return Qs(e, n).then(function(e) { + return new DOMParser().parseFromString(e, t); + }); + }; + } + var au = ou('application/xml'), + su = ou('text/html'), + uu = ou('image/svg+xml'), + lu = function(t, e) { + var n; + function r() { + var r, i, - o, - a, - s = this, - u = s.d3, - l = s.config, - c = s.data.targets[0]; + o = n.length, + a = 0, + s = 0; + for (r = 0; r < o; ++r) (a += (i = n[r]).x), (s += i.y); + for (a = a / o - t, s = s / o - e, r = 0; r < o; ++r) + ((i = n[r]).x -= a), (i.y -= s); + } + return ( + null == t && (t = 0), + null == e && (e = 0), + (r.initialize = function(t) { + n = t; + }), + (r.x = function(e) { + return arguments.length ? ((t = +e), r) : t; + }), + (r.y = function(t) { + return arguments.length ? ((e = +t), r) : e; + }), + r + ); + }, + cu = function(t) { + return function() { + return t; + }; + }, + fu = function() { + return 1e-6 * (Math.random() - 0.5); + }; + function du(t, e, n, r) { + if (isNaN(e) || isNaN(n)) return t; + var i, + o, + a, + s, + u, + l, + c, + f, + d, + h = t._root, + p = { data: r }, + g = t._x0, + m = t._y0, + v = t._x1, + y = t._y1; + if (!h) return (t._root = p), t; + for (; h.length; ) + if ( + ((l = e >= (o = (g + v) / 2)) ? (g = o) : (v = o), + (c = n >= (a = (m + y) / 2)) ? (m = a) : (y = a), + (i = h), + !(h = h[(f = (c << 1) | l)])) + ) + return (i[f] = p), t; + if ( + ((s = +t._x.call(null, h.data)), + (u = +t._y.call(null, h.data)), + e === s && n === u) + ) + return (p.next = h), i ? (i[f] = p) : (t._root = p), t; + do { + (i = i ? (i[f] = new Array(4)) : (t._root = new Array(4))), + (l = e >= (o = (g + v) / 2)) ? (g = o) : (v = o), + (c = n >= (a = (m + y) / 2)) ? (m = a) : (y = a); + } while ( + (f = (c << 1) | l) == (d = ((u >= a) << 1) | (s >= o)) + ); + return (i[d] = h), (i[f] = p), t; + } + var hu = function(t, e, n, r, i) { + (this.node = t), + (this.x0 = e), + (this.y0 = n), + (this.x1 = r), + (this.y1 = i); + }; + function pu(t) { + return t[0]; + } + function gu(t) { + return t[1]; + } + function mu(t, e, n) { + var r = new vu( + null == e ? pu : e, + null == n ? gu : n, + NaN, + NaN, + NaN, + NaN + ); + return null == t ? r : r.addAll(t); + } + function vu(t, e, n, r, i, o) { + (this._x = t), + (this._y = e), + (this._x0 = n), + (this._y0 = r), + (this._x1 = i), + (this._y1 = o), + (this._root = void 0); + } + function yu(t) { + for (var e = { data: t.data }, n = e; (t = t.next); ) + n = n.next = { data: t.data }; + return e; + } + var bu = (mu.prototype = vu.prototype); + function _u(t) { + return t.x + t.vx; + } + function xu(t) { + return t.y + t.vy; + } + (bu.copy = function() { + var t, + e, + n = new vu( + this._x, + this._y, + this._x0, + this._y0, + this._x1, + this._y1 + ), + r = this._root; + if (!r) return n; + if (!r.length) return (n._root = yu(r)), n; + for ( + t = [{ source: r, target: (n._root = new Array(4)) }]; + (r = t.pop()); + + ) + for (var i = 0; i < 4; ++i) + (e = r.source[i]) && + (e.length + ? t.push({ + source: e, + target: (r.target[i] = new Array(4)) + }) + : (r.target[i] = yu(e))); + return n; + }), + (bu.add = function(t) { + var e = +this._x.call(null, t), + n = +this._y.call(null, t); + return du(this.cover(e, n), e, n, t); + }), + (bu.addAll = function(t) { + var e, + n, + r, + i, + o = t.length, + a = new Array(o), + s = new Array(o), + u = 1 / 0, + l = 1 / 0, + c = -1 / 0, + f = -1 / 0; + for (n = 0; n < o; ++n) + isNaN((r = +this._x.call(null, (e = t[n])))) || + isNaN((i = +this._y.call(null, e))) || + ((a[n] = r), + (s[n] = i), + r < u && (u = r), + r > c && (c = r), + i < l && (l = i), + i > f && (f = i)); + if (u > c || l > f) return this; + for (this.cover(u, l).cover(c, f), n = 0; n < o; ++n) + du(this, a[n], s[n], t[n]); + return this; + }), + (bu.cover = function(t, e) { + if (isNaN((t = +t)) || isNaN((e = +e))) return this; + var n = this._x0, + r = this._y0, + i = this._x1, + o = this._y1; + if (isNaN(n)) + (i = (n = Math.floor(t)) + 1), + (o = (r = Math.floor(e)) + 1); + else { + for ( + var a, s, u = i - n, l = this._root; + n > t || t >= i || r > e || e >= o; + + ) + switch ( + ((s = ((e < r) << 1) | (t < n)), + ((a = new Array(4))[s] = l), + (l = a), + (u *= 2), + s) + ) { + case 0: + (i = n + u), (o = r + u); + break; + case 1: + (n = i - u), (o = r + u); + break; + case 2: + (i = n + u), (r = o - u); + break; + case 3: + (n = i - u), (r = o - u); + } + this._root && this._root.length && (this._root = l); + } + return ( + (this._x0 = n), + (this._y0 = r), + (this._x1 = i), + (this._y1 = o), + this + ); + }), + (bu.data = function() { + var t = []; + return ( + this.visit(function(e) { + if (!e.length) + do { + t.push(e.data); + } while ((e = e.next)); + }), + t + ); + }), + (bu.extent = function(t) { + return arguments.length + ? this.cover(+t[0][0], +t[0][1]).cover(+t[1][0], +t[1][1]) + : isNaN(this._x0) + ? void 0 + : [[this._x0, this._y0], [this._x1, this._y1]]; + }), + (bu.find = function(t, e, n) { + var r, + i, + o, + a, + s, + u, + l, + c = this._x0, + f = this._y0, + d = this._x1, + h = this._y1, + p = [], + g = this._root; + for ( + g && p.push(new hu(g, c, f, d, h)), + null == n + ? (n = 1 / 0) + : ((c = t - n), + (f = e - n), + (d = t + n), + (h = e + n), + (n *= n)); + (u = p.pop()); + + ) if ( - (t = isNaN(l.stanford_scaleWidth) - ? 20 - : l.stanford_scaleWidth) < 0 + !( + !(g = u.node) || + (i = u.x0) > d || + (o = u.y0) > h || + (a = u.x1) < c || + (s = u.y1) < f + ) ) - throw Error( - "Colorscale's barheight and barwidth must be greater than 0." - ); - (a = - s.height - - l.stanford_padding.bottom - - l.stanford_padding.top), - (n = u.range(l.stanford_padding.bottom, a, 5)), - (o = u - .scaleSequential(c.colors) - .domain([n[n.length - 1], n[0]])), - s.colorScale && s.colorScale.remove(), - (s.colorScale = s.svg - .append('g') - .attr('width', 50) - .attr('height', a) - .attr('class', w.colorScale)), - s.colorScale - .append('g') - .attr( - 'transform', - 'translate(0, '.concat(l.stanford_padding.top, ')') - ) - .selectAll('bars') - .data(n) - .enter() - .append('rect') - .attr('y', function(t, e) { - return 5 * e; - }) - .attr('x', 0) - .attr('width', t) - .attr('height', 5) - .attr('fill', function(t) { - return o(t); - }), - (i = u - .scaleLog() - .domain([c.minEpochs, c.maxEpochs]) - .range([ - n[0] + - l.stanford_padding.top + - n[n.length - 1] + - 5 - - 1, - n[0] + l.stanford_padding.top - ])), - (r = u.axisRight(i)), - 'pow10' === l.stanford_scaleFormat - ? r.tickValues([1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7]) - : p(l.stanford_scaleFormat) - ? r.tickFormat(l.stanford_scaleFormat) - : r.tickFormat(u.format('d')), - p(l.stanford_scaleValues) && - r.tickValues( - l.stanford_scaleValues(c.minEpochs, c.maxEpochs) + if (g.length) { + var m = (i + a) / 2, + v = (o + s) / 2; + p.push( + new hu(g[3], m, v, a, s), + new hu(g[2], i, v, m, s), + new hu(g[1], m, o, a, v), + new hu(g[0], i, o, m, v) ), - (e = s.colorScale - .append('g') - .attr('class', 'legend axis') - .attr('transform', 'translate('.concat(t, ',0)')) - .call(r)), - 'pow10' === l.stanford_scaleFormat && - e - .selectAll('.tick text') - .text(null) - .filter(A) - .text(10) - .append('tspan') - .attr('dy', '-.7em') - .text(function(t) { - return Math.round(Math.log(t) / Math.LN10); - }), - s.colorScale.attr( - 'transform', - 'translate('.concat( - s.currentWidth - s.xForColorScale(), - ', 0)' - ) - ); - }), - (r.prototype.xForColorScale = function() { - return ( - this.config.stanford_padding.right + - c(this.colorScale.node()).width + (l = ((e >= v) << 1) | (t >= m)) && + ((u = p[p.length - 1]), + (p[p.length - 1] = p[p.length - 1 - l]), + (p[p.length - 1 - l] = u)); + } else { + var y = t - +this._x.call(null, g.data), + b = e - +this._y.call(null, g.data), + _ = y * y + b * b; + if (_ < n) { + var x = Math.sqrt((n = _)); + (c = t - x), + (f = e - x), + (d = t + x), + (h = e + x), + (r = g.data); + } + } + return r; + }), + (bu.remove = function(t) { + if ( + isNaN((o = +this._x.call(null, t))) || + isNaN((a = +this._y.call(null, t))) + ) + return this; + var e, + n, + r, + i, + o, + a, + s, + u, + l, + c, + f, + d, + h = this._root, + p = this._x0, + g = this._y0, + m = this._x1, + v = this._y1; + if (!h) return this; + if (h.length) + for (;;) { + if ( + ((l = o >= (s = (p + m) / 2)) ? (p = s) : (m = s), + (c = a >= (u = (g + v) / 2)) ? (g = u) : (v = u), + (e = h), + !(h = h[(f = (c << 1) | l)])) + ) + return this; + if (!h.length) break; + (e[(f + 1) & 3] || e[(f + 2) & 3] || e[(f + 3) & 3]) && + ((n = e), (d = f)); + } + for (; h.data !== t; ) + if (((r = h), !(h = h.next))) return this; + return ( + (i = h.next) && delete h.next, + r + ? (i ? (r.next = i) : delete r.next, this) + : e + ? (i ? (e[f] = i) : delete e[f], + (h = e[0] || e[1] || e[2] || e[3]) && + h === (e[3] || e[2] || e[1] || e[0]) && + !h.length && + (n ? (n[d] = h) : (this._root = h)), + this) + : ((this._root = i), this) + ); + }), + (bu.removeAll = function(t) { + for (var e = 0, n = t.length; e < n; ++e) this.remove(t[e]); + return this; + }), + (bu.root = function() { + return this._root; + }), + (bu.size = function() { + var t = 0; + return ( + this.visit(function(e) { + if (!e.length) + do { + ++t; + } while ((e = e.next)); + }), + t + ); + }), + (bu.visit = function(t) { + var e, + n, + r, + i, + o, + a, + s = [], + u = this._root; + for ( + u && + s.push(new hu(u, this._x0, this._y0, this._x1, this._y1)); + (e = s.pop()); + + ) + if ( + !t( + (u = e.node), + (r = e.x0), + (i = e.y0), + (o = e.x1), + (a = e.y1) + ) && + u.length + ) { + var l = (r + o) / 2, + c = (i + a) / 2; + (n = u[3]) && s.push(new hu(n, l, c, o, a)), + (n = u[2]) && s.push(new hu(n, r, c, l, a)), + (n = u[1]) && s.push(new hu(n, l, i, o, c)), + (n = u[0]) && s.push(new hu(n, r, i, l, c)); + } + return this; + }), + (bu.visitAfter = function(t) { + var e, + n = [], + r = []; + for ( + this._root && + n.push( + new hu(this._root, this._x0, this._y0, this._x1, this._y1) ); + (e = n.pop()); + + ) { + var i = e.node; + if (i.length) { + var o, + a = e.x0, + s = e.y0, + u = e.x1, + l = e.y1, + c = (a + u) / 2, + f = (s + l) / 2; + (o = i[0]) && n.push(new hu(o, a, s, c, f)), + (o = i[1]) && n.push(new hu(o, c, s, u, f)), + (o = i[2]) && n.push(new hu(o, a, f, c, l)), + (o = i[3]) && n.push(new hu(o, c, f, u, l)); + } + r.push(e); + } + for (; (e = r.pop()); ) t(e.node, e.x0, e.y0, e.x1, e.y1); + return this; + }), + (bu.x = function(t) { + return arguments.length ? ((this._x = t), this) : this._x; + }), + (bu.y = function(t) { + return arguments.length ? ((this._y = t), this) : this._y; + }); + var wu = function(t) { + var e, + n, + r = 1, + i = 1; + function o() { + for (var t, o, s, u, l, c, f, d = e.length, h = 0; h < i; ++h) + for (o = mu(e, _u, xu).visitAfter(a), t = 0; t < d; ++t) + (s = e[t]), + (c = n[s.index]), + (f = c * c), + (u = s.x + s.vx), + (l = s.y + s.vy), + o.visit(p); + function p(t, e, n, i, o) { + var a = t.data, + d = t.r, + h = c + d; + if (!a) + return e > u + h || i < u - h || n > l + h || o < l - h; + if (a.index > s.index) { + var p = u - a.x - a.vx, + g = l - a.y - a.vy, + m = p * p + g * g; + m < h * h && + (0 === p && (m += (p = fu()) * p), + 0 === g && (m += (g = fu()) * g), + (m = ((h - (m = Math.sqrt(m))) / m) * r), + (s.vx += (p *= m) * (h = (d *= d) / (f + d))), + (s.vy += (g *= m) * h), + (a.vx -= p * (h = 1 - h)), + (a.vy -= g * h)); + } + } + } + function a(t) { + if (t.data) return (t.r = n[t.data.index]); + for (var e = (t.r = 0); e < 4; ++e) + t[e] && t[e].r > t.r && (t.r = t[e].r); + } + function s() { + if (e) { + var r, + i, + o = e.length; + for (n = new Array(o), r = 0; r < o; ++r) + (i = e[r]), (n[i.index] = +t(i, r, e)); + } + } + return ( + 'function' != typeof t && (t = cu(null == t ? 1 : +t)), + (o.initialize = function(t) { + (e = t), s(); }), - (r.prototype.getColorScalePadding = function() { - return ( - this.xForColorScale() + - this.config.stanford_padding.left + - 20 - ); + (o.iterations = function(t) { + return arguments.length ? ((i = +t), o) : i; }), - (r.prototype.isStanfordGraphType = function() { - return 'stanford' === this.config.data_type; + (o.strength = function(t) { + return arguments.length ? ((r = +t), o) : r; }), - (r.prototype.initStanfordData = function() { - var t, - e, - n, - r = this.d3, - i = this.config, - o = this.data.targets[0]; - if ( - (o.values.sort(O), - (t = o.values.map(function(t) { - return t.epochs; - })), - (n = isNaN(i.stanford_scaleMin) - ? r.min(t) - : i.stanford_scaleMin) > - (e = isNaN(i.stanford_scaleMax) - ? r.max(t) - : i.stanford_scaleMax)) - ) - throw Error( - 'Number of minEpochs has to be smaller than maxEpochs' - ); - (o.colors = p(i.stanford_colors) - ? i.stanford_colors - : r.interpolateHslLong( - r.hsl(250, 1, 0.5), - r.hsl(0, 1, 0.5) - )), - (o.colorscale = r - .scaleSequentialLog(o.colors) - .domain([n, e])), - (o.minEpochs = n), - (o.maxEpochs = e); + (o.radius = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : cu(+e)), s(), o) + : t; + }), + o + ); + }; + function Su(t) { + return t.index; + } + function Eu(t, e) { + var n = t.get(e); + if (!n) throw new Error('missing: ' + e); + return n; + } + var ku = function(t) { + var e, + n, + r, + i, + o, + a = Su, + s = function(t) { + return 1 / Math.min(i[t.source.index], i[t.target.index]); + }, + u = cu(30), + l = 1; + function c(r) { + for (var i = 0, a = t.length; i < l; ++i) + for (var s, u, c, f, d, h, p, g = 0; g < a; ++g) + (u = (s = t[g]).source), + (f = (c = s.target).x + c.vx - u.x - u.vx || fu()), + (d = c.y + c.vy - u.y - u.vy || fu()), + (f *= h = + (((h = Math.sqrt(f * f + d * d)) - n[g]) / h) * + r * + e[g]), + (d *= h), + (c.vx -= f * (p = o[g])), + (c.vy -= d * p), + (u.vx += f * (p = 1 - p)), + (u.vy += d * p); + } + function f() { + if (r) { + var s, + u, + l = r.length, + c = t.length, + f = Ya(r, a); + for (s = 0, i = new Array(l); s < c; ++s) + ((u = t[s]).index = s), + 'object' != typeof u.source && + (u.source = Eu(f, u.source)), + 'object' != typeof u.target && + (u.target = Eu(f, u.target)), + (i[u.source.index] = (i[u.source.index] || 0) + 1), + (i[u.target.index] = (i[u.target.index] || 0) + 1); + for (s = 0, o = new Array(c); s < c; ++s) + (u = t[s]), + (o[s] = + i[u.source.index] / + (i[u.source.index] + i[u.target.index])); + (e = new Array(c)), d(), (n = new Array(c)), h(); + } + } + function d() { + if (r) + for (var n = 0, i = t.length; n < i; ++n) + e[n] = +s(t[n], n, t); + } + function h() { + if (r) + for (var e = 0, i = t.length; e < i; ++e) + n[e] = +u(t[e], e, t); + } + return ( + null == t && (t = []), + (c.initialize = function(t) { + (r = t), f(); }), - (r.prototype.getStanfordPointColor = function(t) { - return this.data.targets[0].colorscale(t.epochs); + (c.links = function(e) { + return arguments.length ? ((t = e), f(), c) : t; }), - (r.prototype.getCentroid = function(t) { - var e, - n, - r, - i, - o, - a = T(t), - s = 0, - u = 0; - for (e = 0, n = t.length - 1; e < t.length; n = e, e += 1) - (i = t[e]), - (o = t[n]), - (r = i.x * o.y - o.x * i.y), - (s += (i.x + o.x) * r), - (u += (i.y + o.y) * r); - return { x: s / (r = 6 * a), y: u / r }; + (c.id = function(t) { + return arguments.length ? ((a = t), c) : a; }), - (r.prototype.getStanfordTooltipTitle = function(t) { - var e = this.axis.getLabelText('x'), - n = this.axis.getLabelText('y'); - return '\n ' - .concat(e ? _(e) : 'x', "") - .concat(t.x, '\n ') - .concat(n ? _(n) : 'y', "") - .concat(t.value, '\n '); + (c.iterations = function(t) { + return arguments.length ? ((l = +t), c) : l; }), - (r.prototype.countEpochsInRegion = function(t) { - var e, - n, - r = this.data.targets[0]; - return ( - (e = r.values.reduce(function(t, e) { - return t + Number(e.epochs); - }, 0)), - { - value: (n = r.values.reduce(function(e, n) { - return C(n, t) ? e + Number(n.epochs) : e; - }, 0)), - percentage: 0 !== n ? ((n / e) * 100).toFixed(1) : 0 - } - ); - }); - var T = function(t) { - var e, - n, - r, - i, - o = 0; - for (e = 0, n = t.length - 1; e < t.length; n = e, e += 1) - (r = t[e]), - (i = t[n]), - (o += r.x * i.y), - (o -= r.y * i.x); - return (o /= 2); - }, - C = function(t, e) { - for ( - var n, - r, - i, - o, - a = t.x, - s = t.value, - u = !1, - l = 0, - c = e.length - 1; - l < e.length; - c = l++ - ) - (n = e[l].x), - (r = e[l].y), - (o = e[c].x), - r > s != (i = e[c].y) > s && - a < ((o - n) * (s - r)) / (i - r) + n && - (u = !u); - return u; - }, - O = function(t, e) { - return t.epochs < e.epochs - ? -1 - : t.epochs > e.epochs - ? 1 - : 0; - }; - return ( - (r.prototype.initStanfordElements = function() { - var t = this; - (t.stanfordElements = t.main - .select('.' + w.chart) - .append('g') - .attr('class', w.stanfordElements)), - t.stanfordElements - .append('g') - .attr('class', w.stanfordLines), - t.stanfordElements - .append('g') - .attr('class', w.stanfordTexts), - t.stanfordElements - .append('g') - .attr('class', w.stanfordRegions); + (c.strength = function(t) { + return arguments.length + ? ((s = 'function' == typeof t ? t : cu(+t)), d(), c) + : s; }), - (r.prototype.updateStanfordElements = function(t) { + (c.distance = function(t) { + return arguments.length + ? ((u = 'function' == typeof t ? t : cu(+t)), h(), c) + : u; + }), + c + ); + }; + function Au(t) { + return t.x; + } + function Tu(t) { + return t.y; + } + var Cu = 10, + Ou = Math.PI * (3 - Math.sqrt(5)), + Pu = function(t) { + var e, + n = 1, + r = 0.001, + i = 1 - Math.pow(r, 1 / 300), + o = 0, + a = 0.6, + s = Ya(), + u = fi(c), + l = gt('tick', 'end'); + function c() { + f(), + l.call('tick', e), + n < r && (u.stop(), l.call('end', e)); + } + function f(r) { + var u, + l, + c = t.length; + void 0 === r && (r = 1); + for (var f = 0; f < r; ++f) + for ( + n += (o - n) * i, + s.each(function(t) { + t(n); + }), + u = 0; + u < c; + ++u + ) + null == (l = t[u]).fx + ? (l.x += l.vx *= a) + : ((l.x = l.fx), (l.vx = 0)), + null == l.fy + ? (l.y += l.vy *= a) + : ((l.y = l.fy), (l.vy = 0)); + return e; + } + function d() { + for (var e, n = 0, r = t.length; n < r; ++n) { + if ( + (((e = t[n]).index = n), + null != e.fx && (e.x = e.fx), + null != e.fy && (e.y = e.fy), + isNaN(e.x) || isNaN(e.y)) + ) { + var i = Cu * Math.sqrt(n), + o = n * Ou; + (e.x = i * Math.cos(o)), (e.y = i * Math.sin(o)); + } + (isNaN(e.vx) || isNaN(e.vy)) && (e.vx = e.vy = 0); + } + } + function h(e) { + return e.initialize && e.initialize(t), e; + } + return ( + null == t && (t = []), + d(), + (e = { + tick: f, + restart: function() { + return u.restart(c), e; + }, + stop: function() { + return u.stop(), e; + }, + nodes: function(n) { + return arguments.length + ? ((t = n), d(), s.each(h), e) + : t; + }, + alpha: function(t) { + return arguments.length ? ((n = +t), e) : n; + }, + alphaMin: function(t) { + return arguments.length ? ((r = +t), e) : r; + }, + alphaDecay: function(t) { + return arguments.length ? ((i = +t), e) : +i; + }, + alphaTarget: function(t) { + return arguments.length ? ((o = +t), e) : o; + }, + velocityDecay: function(t) { + return arguments.length ? ((a = 1 - t), e) : 1 - a; + }, + force: function(t, n) { + return arguments.length > 1 + ? (null == n ? s.remove(t) : s.set(t, h(n)), e) + : s.get(t); + }, + find: function(e, n, r) { + var i, + o, + a, + s, + u, + l = 0, + c = t.length; + for ( + null == r ? (r = 1 / 0) : (r *= r), l = 0; + l < c; + ++l + ) + (a = (i = e - (s = t[l]).x) * i + (o = n - s.y) * o) < + r && ((u = s), (r = a)); + return u; + }, + on: function(t, n) { + return arguments.length > 1 ? (l.on(t, n), e) : l.on(t); + } + }) + ); + }, + Mu = function() { + var t, + e, + n, + r, + i = cu(-30), + o = 1, + a = 1 / 0, + s = 0.81; + function u(r) { + var i, + o = t.length, + a = mu(t, Au, Tu).visitAfter(c); + for (n = r, i = 0; i < o; ++i) (e = t[i]), a.visit(f); + } + function l() { + if (t) { + var e, + n, + o = t.length; + for (r = new Array(o), e = 0; e < o; ++e) + (n = t[e]), (r[n.index] = +i(n, e, t)); + } + } + function c(t) { var e, n, - r, i, o, a, - s = this, - u = s.main, - l = s.config, - c = s.xvCustom.bind(s), - f = s.yvCustom.bind(s), - d = s.countEpochsInRegion.bind(s); - (n = (e = u - .select('.' + w.stanfordLines) - .style('shape-rendering', 'geometricprecision') - .selectAll('.' + w.stanfordLine) - .data(l.stanford_lines)) - .enter() - .append('g') - .attr('class', function(t) { - return w.stanfordLine + (t.class ? ' ' + t.class : ''); - })) - .append('line') - .attr('x1', function(t) { - return l.axis_rotated - ? f(t, 'value_y1') - : c(t, 'value_x1'); - }) - .attr('x2', function(t) { - return l.axis_rotated - ? f(t, 'value_y2') - : c(t, 'value_x2'); - }) - .attr('y1', function(t) { - return l.axis_rotated - ? c(t, 'value_x1') - : f(t, 'value_y1'); - }) - .attr('y2', function(t) { - return l.axis_rotated - ? c(t, 'value_x2') - : f(t, 'value_y2'); - }) - .style('opacity', 0), - (s.stanfordLines = n.merge(e)), - s.stanfordLines - .select('line') - .transition() - .duration(t) - .attr('x1', function(t) { - return l.axis_rotated - ? f(t, 'value_y1') - : c(t, 'value_x1'); - }) - .attr('x2', function(t) { - return l.axis_rotated - ? f(t, 'value_y2') - : c(t, 'value_x2'); - }) - .attr('y1', function(t) { - return l.axis_rotated - ? c(t, 'value_x1') - : f(t, 'value_y1'); - }) - .attr('y2', function(t) { - return l.axis_rotated - ? c(t, 'value_x2') - : f(t, 'value_y2'); - }) - .style('opacity', 1), - e - .exit() - .transition() - .duration(t) - .style('opacity', 0) - .remove(), - (a = (o = u - .select('.' + w.stanfordTexts) - .selectAll('.' + w.stanfordText) - .data(l.stanford_texts)) - .enter() - .append('g') - .attr('class', function(t) { - return ( - w.stanfordText + (t.class ? ' ' + t.class : '') - ); - })) - .append('text') - .attr('x', function(t) { - return l.axis_rotated ? f(t, 'y') : c(t, 'x'); - }) - .attr('y', function(t) { - return l.axis_rotated ? c(t, 'x') : f(t, 'y'); - }) - .style('opacity', 0), - (s.stanfordTexts = a.merge(o)), - s.stanfordTexts - .select('text') - .transition() - .duration(t) - .attr('x', function(t) { - return l.axis_rotated ? f(t, 'y') : c(t, 'x'); - }) - .attr('y', function(t) { - return l.axis_rotated ? c(t, 'x') : f(t, 'y'); - }) - .text(function(t) { - return t.content; - }) - .style('opacity', 1), - o - .exit() - .transition() - .duration(t) - .style('opacity', 0) - .remove(), - (i = (r = u - .select('.' + w.stanfordRegions) - .selectAll('.' + w.stanfordRegion) - .data(l.stanford_regions)) - .enter() - .append('g') - .attr('class', function(t) { - return ( - w.stanfordRegion + (t.class ? ' ' + t.class : '') - ); - })) - .append('polygon') - .attr('points', function(t) { - return t.points - .map(function(t) { - return [ - l.axis_rotated ? f(t, 'y') : c(t, 'x'), - l.axis_rotated ? c(t, 'x') : f(t, 'y') - ].join(','); - }) - .join(' '); - }) - .style('opacity', 0), - i - .append('text') - .attr('x', function(t) { - return s.getCentroid(t.points).x; - }) - .attr('y', function(t) { - return s.getCentroid(t.points).y; - }) - .style('opacity', 0), - (s.stanfordRegions = i.merge(r)), - s.stanfordRegions - .select('polygon') - .transition() - .duration(t) - .attr('points', function(t) { - return t.points - .map(function(t) { - return [ - l.axis_rotated ? f(t, 'y') : c(t, 'x'), - l.axis_rotated ? c(t, 'x') : f(t, 'y') - ].join(','); - }) - .join(' '); - }) - .style('opacity', function(t) { - return t.opacity ? t.opacity : 0.2; - }), - s.stanfordRegions - .select('text') - .transition() - .duration(t) - .attr('x', function(t) { - return l.axis_rotated - ? f(s.getCentroid(t.points), 'y') - : c(s.getCentroid(t.points), 'x'); - }) - .attr('y', function(t) { - return l.axis_rotated - ? c(s.getCentroid(t.points), 'x') - : f(s.getCentroid(t.points), 'y'); - }) - .text(function(t) { - var e, n, r; - return t.text - ? (s.isStanfordGraphType() && - ((e = (r = d(t.points)).value), - (n = r.percentage)), - t.text(e, n)) - : ''; - }) - .attr('text-anchor', 'middle') - .attr('dominant-baseline', 'middle') - .style('opacity', 1), - r - .exit() - .transition() - .duration(t) - .style('opacity', 0) - .remove(); - }), - (r.prototype.initTooltip = function() { - var t, - e = this, - n = e.config; - if ( - ((e.tooltip = e.selectChart - .style('position', 'relative') - .append('div') - .attr('class', w.tooltipContainer) - .style('position', 'absolute') - .style('pointer-events', 'none') - .style('display', 'none')), - n.tooltip_init_show) - ) { - if (e.isTimeSeries() && v(n.tooltip_init_x)) { - for ( - n.tooltip_init_x = e.parseDate(n.tooltip_init_x), - t = 0; - t < e.data.targets[0].values.length && - e.data.targets[0].values[t].x - n.tooltip_init_x != 0; - t++ - ); - n.tooltip_init_x = t; - } - e.tooltip.html( - n.tooltip_contents.call( - e, - e.data.targets.map(function(t) { - return e.addName(t.values[n.tooltip_init_x]); - }), - e.axis.getXAxisTickFormat(), - e.getYFormat(e.hasArcType()), - e.color - ) - ), - e.tooltip - .style('top', n.tooltip_init_position.top) - .style('left', n.tooltip_init_position.left) - .style('display', 'block'); + s = 0, + u = 0; + if (t.length) { + for (i = o = a = 0; a < 4; ++a) + (e = t[a]) && + (n = Math.abs(e.value)) && + ((s += e.value), + (u += n), + (i += n * e.x), + (o += n * e.y)); + (t.x = i / u), (t.y = o / u); + } else { + ((e = t).x = e.data.x), (e.y = e.data.y); + do { + s += r[e.data.index]; + } while ((e = e.next)); } - }), - (r.prototype.getTooltipSortFunction = function() { - var t = this, - e = t.config; - if ( - 0 !== e.data_groups.length && - void 0 === e.tooltip_order - ) { - var n = t.orderTargets(t.data.targets).map(function(t) { - return t.id; - }); + t.value = s; + } + function f(t, i, u, l) { + if (!t.value) return !0; + var c = t.x - e.x, + f = t.y - e.y, + d = l - i, + h = c * c + f * f; + if ((d * d) / s < h) return ( - (t.isOrderAsc() || t.isOrderDesc()) && - (n = n.reverse()), - function(t, e) { - return n.indexOf(t.id) - n.indexOf(e.id); - } + h < a && + (0 === c && (h += (c = fu()) * c), + 0 === f && (h += (f = fu()) * f), + h < o && (h = Math.sqrt(o * h)), + (e.vx += (c * t.value * n) / h), + (e.vy += (f * t.value * n) / h)), + !0 ); + if (!(t.length || h >= a)) { + (t.data !== e || t.next) && + (0 === c && (h += (c = fu()) * c), + 0 === f && (h += (f = fu()) * f), + h < o && (h = Math.sqrt(o * h))); + do { + t.data !== e && + ((d = (r[t.data.index] * n) / h), + (e.vx += c * d), + (e.vy += f * d)); + } while ((t = t.next)); } - var r = e.tooltip_order; - void 0 === r && (r = e.data_order); - var i = function(t) { - return t ? t.value : null; - }; - if (v(r) && 'asc' === r.toLowerCase()) - return function(t, e) { - return i(t) - i(e); - }; - if (v(r) && 'desc' === r.toLowerCase()) - return function(t, e) { - return i(e) - i(t); - }; - if (p(r)) { - var o = r; - return ( - void 0 === e.tooltip_order && - (o = function(t, e) { - return r( - t ? { id: t.id, values: [t] } : null, - e ? { id: e.id, values: [e] } : null - ); - }), - o - ); + } + return ( + (u.initialize = function(e) { + (t = e), l(); + }), + (u.strength = function(t) { + return arguments.length + ? ((i = 'function' == typeof t ? t : cu(+t)), l(), u) + : i; + }), + (u.distanceMin = function(t) { + return arguments.length ? ((o = t * t), u) : Math.sqrt(o); + }), + (u.distanceMax = function(t) { + return arguments.length ? ((a = t * t), u) : Math.sqrt(a); + }), + (u.theta = function(t) { + return arguments.length ? ((s = t * t), u) : Math.sqrt(s); + }), + u + ); + }, + Lu = function(t, e, n) { + var r, + i, + o, + a = cu(0.1); + function s(t) { + for (var a = 0, s = r.length; a < s; ++a) { + var u = r[a], + l = u.x - e || 1e-6, + c = u.y - n || 1e-6, + f = Math.sqrt(l * l + c * c), + d = ((o[a] - f) * i[a] * t) / f; + (u.vx += l * d), (u.vy += c * d); } - return f(r) - ? function(t, e) { - return r.indexOf(t.id) - r.indexOf(e.id); - } - : void 0; - }), - (r.prototype.getTooltipContent = function(t, e, n, r) { - var i, - o, - a, - s, - u, - l, - c = this, - f = c.config, - d = f.tooltip_format_title || e, - h = - f.tooltip_format_name || - function(t) { - return t; - }, - p = f.tooltip_format_value; - p || - (p = c.isTargetNormalized(t.id) - ? function(t, e) { - return ''.concat((100 * e).toFixed(2), '%'); - } - : n); - var g = this.getTooltipSortFunction(); - for (g && t.sort(g), o = 0; o < t.length; o++) - if (t[o] && (t[o].value || 0 === t[o].value)) { - if (c.isStanfordGraphType()) - i || - ((a = c.getStanfordTooltipTitle(t[o])), - (i = - "" + a)), - (l = c.getStanfordPointColor(t[o])), - (u = _(f.data_epochs)), - (s = t[o].epochs); - else if ( - (i || - ((a = _(d ? d(t[o].x, t[o].index) : t[o].x)), - (i = - "
" + - (a || 0 === a - ? "' - : ''))), - void 0 !== - (s = _( - p(t[o].value, t[o].ratio, t[o].id, t[o].index, t) - ))) - ) { - if (null === t[o].name) continue; - (u = _( - h(t[o].name, t[o].ratio, t[o].id, t[o].index) - )), - (l = c.levelColor - ? c.levelColor(t[o].value) - : r(t[o].id)); + } + function u() { + if (r) { + var e, + n = r.length; + for ( + i = new Array(n), o = new Array(n), e = 0; + e < n; + ++e + ) + (o[e] = +t(r[e], e, r)), + (i[e] = isNaN(o[e]) ? 0 : +a(r[e], e, r)); + } + } + return ( + 'function' != typeof t && (t = cu(+t)), + null == e && (e = 0), + null == n && (n = 0), + (s.initialize = function(t) { + (r = t), u(); + }), + (s.strength = function(t) { + return arguments.length + ? ((a = 'function' == typeof t ? t : cu(+t)), u(), s) + : a; + }), + (s.radius = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : cu(+e)), u(), s) + : t; + }), + (s.x = function(t) { + return arguments.length ? ((e = +t), s) : e; + }), + (s.y = function(t) { + return arguments.length ? ((n = +t), s) : n; + }), + s + ); + }, + ju = function(t) { + var e, + n, + r, + i = cu(0.1); + function o(t) { + for (var i, o = 0, a = e.length; o < a; ++o) + (i = e[o]).vx += (r[o] - i.x) * n[o] * t; + } + function a() { + if (e) { + var o, + a = e.length; + for ( + n = new Array(a), r = new Array(a), o = 0; + o < a; + ++o + ) + n[o] = isNaN((r[o] = +t(e[o], o, e))) + ? 0 + : +i(e[o], o, e); + } + } + return ( + 'function' != typeof t && (t = cu(null == t ? 0 : +t)), + (o.initialize = function(t) { + (e = t), a(); + }), + (o.strength = function(t) { + return arguments.length + ? ((i = 'function' == typeof t ? t : cu(+t)), a(), o) + : i; + }), + (o.x = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : cu(+e)), a(), o) + : t; + }), + o + ); + }, + Du = function(t) { + var e, + n, + r, + i = cu(0.1); + function o(t) { + for (var i, o = 0, a = e.length; o < a; ++o) + (i = e[o]).vy += (r[o] - i.y) * n[o] * t; + } + function a() { + if (e) { + var o, + a = e.length; + for ( + n = new Array(a), r = new Array(a), o = 0; + o < a; + ++o + ) + n[o] = isNaN((r[o] = +t(e[o], o, e))) + ? 0 + : +i(e[o], o, e); + } + } + return ( + 'function' != typeof t && (t = cu(null == t ? 0 : +t)), + (o.initialize = function(t) { + (e = t), a(); + }), + (o.strength = function(t) { + return arguments.length + ? ((i = 'function' == typeof t ? t : cu(+t)), a(), o) + : i; + }), + (o.y = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : cu(+e)), a(), o) + : t; + }), + o + ); + }, + Ru = function(t, e) { + if ( + (n = (t = e + ? t.toExponential(e - 1) + : t.toExponential()).indexOf('e')) < 0 + ) + return null; + var n, + r = t.slice(0, n); + return [ + r.length > 1 ? r[0] + r.slice(2) : r, + +t.slice(n + 1) + ]; + }, + zu = function(t) { + return (t = Ru(Math.abs(t))) ? t[1] : NaN; + }, + Nu = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i; + function Iu(t) { + if (!(e = Nu.exec(t))) throw new Error('invalid format: ' + t); + var e; + return new Fu({ + fill: e[1], + align: e[2], + sign: e[3], + symbol: e[4], + zero: e[5], + width: e[6], + comma: e[7], + precision: e[8] && e[8].slice(1), + trim: e[9], + type: e[10] + }); + } + function Fu(t) { + (this.fill = void 0 === t.fill ? ' ' : t.fill + ''), + (this.align = void 0 === t.align ? '>' : t.align + ''), + (this.sign = void 0 === t.sign ? '-' : t.sign + ''), + (this.symbol = void 0 === t.symbol ? '' : t.symbol + ''), + (this.zero = !!t.zero), + (this.width = void 0 === t.width ? void 0 : +t.width), + (this.comma = !!t.comma), + (this.precision = + void 0 === t.precision ? void 0 : +t.precision), + (this.trim = !!t.trim), + (this.type = void 0 === t.type ? '' : t.type + ''); + } + (Iu.prototype = Fu.prototype), + (Fu.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 Vu, + Bu, + Gu, + Hu, + Uu = function(t) { + t: for (var e, n = t.length, r = 1, i = -1; r < n; ++r) + switch (t[r]) { + case '.': + i = e = r; + break; + case '0': + 0 === i && (i = r), (e = r); + break; + default: + if (i > 0) { + if (!+t[r]) break t; + i = 0; } - void 0 !== s && - ((i += - ""), - (i += - "'), - (i += "'), - (i += '')); - } - return i + '
" + a + '
" + - u + - '" + s + '
'; - }), - (r.prototype.tooltipPosition = function(t, e, n, r) { - var i, - o, - a, - s, - u, - l = this, - c = l.config, - f = l.d3, - d = l.hasArcType(), - h = f.mouse(r); - return ( - d - ? ((o = - (l.width - - (l.isLegendRight ? l.getLegendWidth() : 0)) / - 2 + - h[0]), - (s = - (l.hasType('gauge') ? l.height : l.height / 2) + - h[1] + - 20)) - : ((i = l.getSvgLeft(!0)), - c.axis_rotated - ? ((a = (o = i + h[0] + 100) + e), - (u = l.currentWidth - l.getCurrentPaddingRight()), - (s = l.x(t[0].x) + 20)) - : ((a = - (o = - i + - l.getCurrentPaddingLeft(!0) + - l.x(t[0].x) + - 20) + e), - (u = - i + - l.currentWidth - - l.getCurrentPaddingRight()), - (s = h[1] + 15)), - a > u && (o -= a - u + 20), - s + n > l.currentHeight && (s -= n + 30)), - s < 0 && (s = 0), - { top: s, left: o } - ); - }), - (r.prototype.showTooltip = function(t, e) { - var n, - i, - o, - a = this, - s = a.config, - u = a.hasArcType(), - l = t.filter(function(t) { - return t && y(t.value); - }), - c = s.tooltip_position || r.prototype.tooltipPosition; - 0 !== l.length && - s.tooltip_show && - (a.tooltip - .html( - s.tooltip_contents.call( - a, - t, - a.axis.getXAxisTickFormat(), - a.getYFormat(u), - a.color - ) + } + return i > 0 ? t.slice(0, i) + t.slice(e + 1) : t; + }, + qu = function(t, e) { + var n = Ru(t, e); + if (!n) return t + ''; + 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'); + }, + Wu = { + '%': function(t, e) { + return (100 * t).toFixed(e); + }, + b: function(t) { + return Math.round(t).toString(2); + }, + c: function(t) { + return t + ''; + }, + d: function(t) { + return Math.round(t).toString(10); + }, + e: function(t, e) { + return t.toExponential(e); + }, + f: function(t, e) { + return t.toFixed(e); + }, + g: function(t, e) { + return t.toPrecision(e); + }, + o: function(t) { + return Math.round(t).toString(8); + }, + p: function(t, e) { + return qu(100 * t, e); + }, + r: qu, + s: function(t, e) { + var n = Ru(t, e); + if (!n) return t + ''; + var r = n[0], + i = n[1], + o = + i - + (Vu = + 3 * Math.max(-8, Math.min(8, Math.floor(i / 3)))) + + 1, + a = r.length; + return o === a + ? r + : o > a + ? r + new Array(o - a + 1).join('0') + : o > 0 + ? r.slice(0, o) + '.' + r.slice(o) + : '0.' + + new Array(1 - o).join('0') + + Ru(t, Math.max(0, e + o - 1))[0]; + }, + X: function(t) { + return Math.round(t) + .toString(16) + .toUpperCase(); + }, + x: function(t) { + return Math.round(t).toString(16); + } + }, + Xu = function(t) { + return t; + }, + Yu = Array.prototype.map, + $u = [ + 'y', + 'z', + 'a', + 'f', + 'p', + 'n', + 'µ', + 'm', + '', + 'k', + 'M', + 'G', + 'T', + 'P', + 'E', + 'Z', + 'Y' + ], + Ku = function(t) { + var e, + n, + r = + void 0 === t.grouping || void 0 === t.thousands + ? Xu + : ((e = Yu.call(t.grouping, Number)), + (n = t.thousands + ''), + function(t, r) { + for ( + var i = t.length, o = [], a = 0, s = e[0], u = 0; + i > 0 && + s > 0 && + (u + s + 1 > r && (s = Math.max(1, r - u)), + o.push(t.substring((i -= s), i + s)), + !((u += s + 1) > r)); + + ) + s = e[(a = (a + 1) % e.length)]; + return o.reverse().join(n); + }), + i = void 0 === t.currency ? '' : t.currency[0] + '', + o = void 0 === t.currency ? '' : t.currency[1] + '', + a = void 0 === t.decimal ? '.' : t.decimal + '', + s = + void 0 === t.numerals + ? Xu + : (function(t) { + return function(e) { + return e.replace(/[0-9]/g, function(e) { + return t[+e]; + }); + }; + })(Yu.call(t.numerals, String)), + u = void 0 === t.percent ? '%' : t.percent + '', + l = void 0 === t.minus ? '-' : t.minus + '', + c = void 0 === t.nan ? 'NaN' : t.nan + ''; + function f(t) { + var e = (t = Iu(t)).fill, + n = t.align, + f = t.sign, + d = t.symbol, + h = t.zero, + p = t.width, + g = t.comma, + m = t.precision, + v = t.trim, + y = t.type; + 'n' === y + ? ((g = !0), (y = 'g')) + : Wu[y] || + (void 0 === m && (m = 12), (v = !0), (y = 'g')), + (h || ('0' === e && '=' === n)) && + ((h = !0), (e = '0'), (n = '=')); + var b = + '$' === d + ? i + : '#' === d && /[boxX]/.test(y) + ? '0' + y.toLowerCase() + : '', + _ = '$' === d ? o : /[%p]/.test(y) ? u : '', + x = Wu[y], + w = /[defgprs%]/.test(y); + function S(t) { + var i, + o, + u, + d = b, + S = _; + if ('c' === y) (S = x(t) + S), (t = ''); + else { + var E = (t = +t) < 0; + if ( + ((t = isNaN(t) ? c : x(Math.abs(t), m)), + v && (t = Uu(t)), + E && 0 == +t && (E = !1), + (d = + (E + ? '(' === f + ? f + : l + : '-' === f || '(' === f + ? '' + : f) + d), + (S = + ('s' === y ? $u[8 + Vu / 3] : '') + + S + + (E && '(' === f ? ')' : '')), + w) ) - .style('display', 'block'), - (n = a.tooltip.property('offsetWidth')), - (i = a.tooltip.property('offsetHeight')), - (o = c.call(this, l, n, i, e)), - a.tooltip - .style('top', o.top + 'px') - .style('left', o.left + 'px')); - }), - (r.prototype.hideTooltip = function() { - this.tooltip.style('display', 'none'); - }), - (r.prototype.setTargetType = function(t, e) { - var n = this, - r = n.config; - n.mapToTargetIds(t).forEach(function(t) { - (n.withoutFadeIn[t] = e === r.data_types[t]), - (r.data_types[t] = e); - }), - t || (r.data_type = e); - }), - (r.prototype.hasType = function(t, e) { - var n = this.config.data_types, - r = !1; - return ( - (e = e || this.data.targets) && e.length - ? e.forEach(function(e) { - var i = n[e.id]; - ((i && i.indexOf(t) >= 0) || - (!i && 'line' === t)) && - (r = !0); - }) - : Object.keys(n).length - ? Object.keys(n).forEach(function(e) { - n[e] === t && (r = !0); - }) - : (r = this.config.data_type === t), - r - ); - }), - (r.prototype.hasArcType = function(t) { - return ( - this.hasType('pie', t) || - this.hasType('donut', t) || - this.hasType('gauge', t) - ); - }), - (r.prototype.isLineType = function(t) { - var e = this.config, - n = v(t) ? t : t.id; - return ( - !e.data_types[n] || - [ - 'line', - 'spline', - 'area', - 'area-spline', - 'step', - 'area-step' - ].indexOf(e.data_types[n]) >= 0 - ); - }), - (r.prototype.isStepType = function(t) { - var e = v(t) ? t : t.id; - return ( - ['step', 'area-step'].indexOf( - this.config.data_types[e] - ) >= 0 - ); - }), - (r.prototype.isSplineType = function(t) { - var e = v(t) ? t : t.id; - return ( - ['spline', 'area-spline'].indexOf( - this.config.data_types[e] - ) >= 0 - ); - }), - (r.prototype.isAreaType = function(t) { - var e = v(t) ? t : t.id; - return ( - ['area', 'area-spline', 'area-step'].indexOf( - this.config.data_types[e] - ) >= 0 - ); - }), - (r.prototype.isBarType = function(t) { - var e = v(t) ? t : t.id; - return 'bar' === this.config.data_types[e]; - }), - (r.prototype.isScatterType = function(t) { - var e = v(t) ? t : t.id; - return 'scatter' === this.config.data_types[e]; - }), - (r.prototype.isStanfordType = function(t) { - var e = v(t) ? t : t.id; - return 'stanford' === this.config.data_types[e]; - }), - (r.prototype.isPieType = function(t) { - var e = v(t) ? t : t.id; - return 'pie' === this.config.data_types[e]; - }), - (r.prototype.isGaugeType = function(t) { - var e = v(t) ? t : t.id; - return 'gauge' === this.config.data_types[e]; - }), - (r.prototype.isDonutType = function(t) { - var e = v(t) ? t : t.id; - return 'donut' === this.config.data_types[e]; - }), - (r.prototype.isArcType = function(t) { - return ( - this.isPieType(t) || - this.isDonutType(t) || - this.isGaugeType(t) - ); - }), - (r.prototype.lineData = function(t) { - return this.isLineType(t) ? [t] : []; - }), - (r.prototype.arcData = function(t) { - return this.isArcType(t.data) ? [t] : []; - }), - (r.prototype.barData = function(t) { - return this.isBarType(t) ? t.values : []; - }), - (r.prototype.lineOrScatterOrStanfordData = function(t) { - return this.isLineType(t) || - this.isScatterType(t) || - this.isStanfordType(t) - ? t.values - : []; - }), - (r.prototype.barOrLineData = function(t) { - return this.isBarType(t) || this.isLineType(t) - ? t.values - : []; - }), - (r.prototype.isSafari = function() { - var t = window.navigator.userAgent; - return t.indexOf('Safari') >= 0 && t.indexOf('Chrome') < 0; - }), - (r.prototype.isChrome = function() { - return window.navigator.userAgent.indexOf('Chrome') >= 0; - }), - (r.prototype.initZoom = function() { - var t, - e = this, - n = e.d3, - r = e.config; + for (i = -1, o = t.length; ++i < o; ) + if (48 > (u = t.charCodeAt(i)) || u > 57) { + (S = + (46 === u ? a + t.slice(i + 1) : t.slice(i)) + + S), + (t = t.slice(0, i)); + break; + } + } + g && !h && (t = r(t, 1 / 0)); + var k = d.length + t.length + S.length, + A = k < p ? new Array(p - k + 1).join(e) : ''; + switch ( + (g && + h && + ((t = r(A + t, A.length ? p - S.length : 1 / 0)), + (A = '')), + n) + ) { + case '<': + t = d + t + S + A; + break; + case '=': + t = d + A + t + S; + break; + case '^': + t = + A.slice(0, (k = A.length >> 1)) + + d + + t + + S + + A.slice(k); + break; + default: + t = A + d + t + S; + } + return s(t); + } return ( - (e.zoom = n - .zoom() - .on('start', function() { - if ('scroll' === r.zoom_type) { - var i = n.event.sourceEvent; - (i && 'brush' === i.type) || - ((t = i), r.zoom_onzoomstart.call(e.api, i)); - } - }) - .on('zoom', function() { - if ('scroll' === r.zoom_type) { - var t = n.event.sourceEvent; - (t && 'brush' === t.type) || - (e.redrawForZoom(), - r.zoom_onzoom.call(e.api, e.x.orgDomain())); - } - }) - .on('end', function() { - if ('scroll' === r.zoom_type) { - var i = n.event.sourceEvent; - (i && 'brush' === i.type) || - (i && - t.clientX === i.clientX && - t.clientY === i.clientY) || - r.zoom_onzoomend.call(e.api, e.x.orgDomain()); - } - })), - (e.zoom.updateDomain = function() { - return ( - n.event && - n.event.transform && - e.x.domain( - n.event.transform.rescaleX(e.subX).domain() - ), - this - ); - }), - (e.zoom.updateExtent = function() { - return ( - this.scaleExtent([1, 1 / 0]) - .translateExtent([ - [0, 0], - [e.width, e.height] - ]) - .extent([ - [0, 0], - [e.width, e.height] - ]), - this - ); - }), - (e.zoom.update = function() { - return this.updateExtent().updateDomain(); + (m = + void 0 === m + ? 6 + : /[gprs]/.test(y) + ? Math.max(1, Math.min(21, m)) + : Math.max(0, Math.min(20, m))), + (S.toString = function() { + return t + ''; }), - e.zoom.updateExtent() + S ); - }), - (r.prototype.zoomTransform = function(t) { - var e = [this.x(t[0]), this.x(t[1])]; - return this.d3.zoomIdentity - .scale(this.width / (e[1] - e[0])) - .translate(-e[0], 0); - }), - (r.prototype.initDragZoom = function() { - var t = this, - e = t.d3, - n = t.config, - r = (t.context = t.svg), - i = t.margin.left + 20.5, - o = t.margin.top + 0.5; - if ('drag' === n.zoom_type && n.zoom_enabled) { - var a = function(e) { - return ( - e && - e.map(function(e) { - return t.x.invert(e); - }) - ); - }, - s = (t.dragZoomBrush = e - .brushX() - .on('start', function() { - t.api.unzoom(), - t.svg - .select('.' + w.dragZoom) - .classed('disabled', !1), - n.zoom_onzoomstart.call( - t.api, - e.event.sourceEvent - ); - }) - .on('brush', function() { - n.zoom_onzoom.call(t.api, a(e.event.selection)); - }) - .on('end', function() { - if (null != e.event.selection) { - var r = a(e.event.selection); - n.zoom_disableDefaultBehavior || t.api.zoom(r), - t.svg - .select('.' + w.dragZoom) - .classed('disabled', !0), - n.zoom_onzoomend.call(t.api, r); - } - })); - r.append('g') - .classed(w.dragZoom, !0) - .attr('clip-path', t.clipPath) - .attr('transform', 'translate(' + i + ',' + o + ')') - .call(s); + } + return { + format: f, + formatPrefix: function(t, e) { + var n = f((((t = Iu(t)).type = 'f'), t)), + r = + 3 * Math.max(-8, Math.min(8, Math.floor(zu(e) / 3))), + i = Math.pow(10, -r), + o = $u[8 + r / 3]; + return function(t) { + return n(i * t) + o; + }; } - }), - (r.prototype.getZoomDomain = function() { - var t = this.config, - e = this.d3; + }; + }; + function Qu(t) { + return ( + (Bu = Ku(t)), (Gu = Bu.format), (Hu = Bu.formatPrefix), Bu + ); + } + Qu({ + decimal: '.', + thousands: ',', + grouping: [3], + currency: ['$', ''], + minus: '-' + }); + var Zu = function(t) { + return Math.max(0, -zu(Math.abs(t))); + }, + Ju = function(t, e) { + return Math.max( + 0, + 3 * Math.max(-8, Math.min(8, Math.floor(zu(e) / 3))) - + zu(Math.abs(t)) + ); + }, + tl = function(t, e) { + return ( + (t = Math.abs(t)), + (e = Math.abs(e) - t), + Math.max(0, zu(e) - zu(t)) + 1 + ); + }, + el = function() { + return new nl(); + }; + function nl() { + this.reset(); + } + nl.prototype = { + constructor: nl, + reset: function() { + this.s = this.t = 0; + }, + add: function(t) { + il(rl, t, this.t), + il(this, rl.s, this.s), + this.s ? (this.t += rl.t) : (this.s = rl.t); + }, + valueOf: function() { + return this.s; + } + }; + var rl = new nl(); + function il(t, e, n) { + var r = (t.s = e + n), + i = r - e, + o = r - i; + t.t = e - o + (n - i); + } + var ol = 1e-6, + al = 1e-12, + sl = Math.PI, + ul = sl / 2, + ll = sl / 4, + cl = 2 * sl, + fl = 180 / sl, + dl = sl / 180, + hl = Math.abs, + pl = Math.atan, + gl = Math.atan2, + ml = Math.cos, + vl = Math.ceil, + yl = Math.exp, + bl = (Math.floor, Math.log), + _l = Math.pow, + xl = Math.sin, + wl = + Math.sign || + function(t) { + return t > 0 ? 1 : t < 0 ? -1 : 0; + }, + Sl = Math.sqrt, + El = Math.tan; + function kl(t) { + return t > 1 ? 0 : t < -1 ? sl : Math.acos(t); + } + function Al(t) { + return t > 1 ? ul : t < -1 ? -ul : Math.asin(t); + } + function Tl(t) { + return (t = xl(t / 2)) * t; + } + function Cl() {} + function Ol(t, e) { + t && Ml.hasOwnProperty(t.type) && Ml[t.type](t, e); + } + var Pl = { + Feature: function(t, e) { + Ol(t.geometry, e); + }, + FeatureCollection: function(t, e) { + for (var n = t.features, r = -1, i = n.length; ++r < i; ) + Ol(n[r].geometry, e); + } + }, + Ml = { + Sphere: function(t, e) { + e.sphere(); + }, + Point: function(t, e) { + (t = t.coordinates), e.point(t[0], t[1], t[2]); + }, + MultiPoint: function(t, e) { + for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) + (t = n[r]), e.point(t[0], t[1], t[2]); + }, + LineString: function(t, e) { + Ll(t.coordinates, e, 0); + }, + MultiLineString: function(t, e) { + for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) + Ll(n[r], e, 0); + }, + Polygon: function(t, e) { + jl(t.coordinates, e); + }, + MultiPolygon: function(t, e) { + for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) + jl(n[r], e); + }, + GeometryCollection: function(t, e) { + for (var n = t.geometries, r = -1, i = n.length; ++r < i; ) + Ol(n[r], e); + } + }; + function Ll(t, e, n) { + var r, + i = -1, + o = t.length - n; + for (e.lineStart(); ++i < o; ) + (r = t[i]), e.point(r[0], r[1], r[2]); + e.lineEnd(); + } + function jl(t, e) { + var n = -1, + r = t.length; + for (e.polygonStart(); ++n < r; ) Ll(t[n], e, 1); + e.polygonEnd(); + } + var Dl, + Rl, + zl, + Nl, + Il, + Fl = function(t, e) { + t && Pl.hasOwnProperty(t.type) ? Pl[t.type](t, e) : Ol(t, e); + }, + Vl = el(), + Bl = el(), + Gl = { + point: Cl, + lineStart: Cl, + lineEnd: Cl, + polygonStart: function() { + Vl.reset(), (Gl.lineStart = Hl), (Gl.lineEnd = Ul); + }, + polygonEnd: function() { + var t = +Vl; + Bl.add(t < 0 ? cl + t : t), + (this.lineStart = this.lineEnd = this.point = Cl); + }, + sphere: function() { + Bl.add(cl); + } + }; + function Hl() { + Gl.point = ql; + } + function Ul() { + Wl(Dl, Rl); + } + function ql(t, e) { + (Gl.point = Wl), + (Dl = t), + (Rl = e), + (zl = t *= dl), + (Nl = ml((e = (e *= dl) / 2 + ll))), + (Il = xl(e)); + } + function Wl(t, e) { + var n = (t *= dl) - zl, + r = n >= 0 ? 1 : -1, + i = r * n, + o = ml((e = (e *= dl) / 2 + ll)), + a = xl(e), + s = Il * a, + u = Nl * o + s * ml(i), + l = s * r * xl(i); + Vl.add(gl(l, u)), (zl = t), (Nl = o), (Il = a); + } + var Xl = function(t) { + return Bl.reset(), Fl(t, Gl), 2 * Bl; + }; + function Yl(t) { + return [gl(t[1], t[0]), Al(t[2])]; + } + function $l(t) { + var e = t[0], + n = t[1], + r = ml(n); + return [r * ml(e), r * xl(e), xl(n)]; + } + function Kl(t, e) { + return t[0] * e[0] + t[1] * e[1] + t[2] * e[2]; + } + function Ql(t, e) { + return [ + t[1] * e[2] - t[2] * e[1], + t[2] * e[0] - t[0] * e[2], + t[0] * e[1] - t[1] * e[0] + ]; + } + function Zl(t, e) { + (t[0] += e[0]), (t[1] += e[1]), (t[2] += e[2]); + } + function Jl(t, e) { + return [t[0] * e, t[1] * e, t[2] * e]; + } + function tc(t) { + var e = Sl(t[0] * t[0] + t[1] * t[1] + t[2] * t[2]); + (t[0] /= e), (t[1] /= e), (t[2] /= e); + } + var ec, + nc, + rc, + ic, + oc, + ac, + sc, + uc, + lc, + cc, + fc = el(), + dc = { + point: hc, + lineStart: gc, + lineEnd: mc, + polygonStart: function() { + (dc.point = vc), + (dc.lineStart = yc), + (dc.lineEnd = bc), + fc.reset(), + Gl.polygonStart(); + }, + polygonEnd: function() { + Gl.polygonEnd(), + (dc.point = hc), + (dc.lineStart = gc), + (dc.lineEnd = mc), + Vl < 0 + ? ((ec = -(rc = 180)), (nc = -(ic = 90))) + : fc > ol + ? (ic = 90) + : fc < -ol && (nc = -90), + (cc[0] = ec), + (cc[1] = rc); + }, + sphere: function() { + (ec = -(rc = 180)), (nc = -(ic = 90)); + } + }; + function hc(t, e) { + lc.push((cc = [(ec = t), (rc = t)])), + e < nc && (nc = e), + e > ic && (ic = e); + } + function pc(t, e) { + var n = $l([t * dl, e * dl]); + if (uc) { + var r = Ql(uc, n), + i = Ql([r[1], -r[0], 0], r); + tc(i), (i = Yl(i)); + var o, + a = t - oc, + s = a > 0 ? 1 : -1, + u = i[0] * fl * s, + l = hl(a) > 180; + l ^ (s * oc < u && u < s * t) + ? (o = i[1] * fl) > ic && (ic = o) + : l ^ (s * oc < (u = ((u + 360) % 360) - 180) && u < s * t) + ? (o = -i[1] * fl) < nc && (nc = o) + : (e < nc && (nc = e), e > ic && (ic = e)), + l + ? t < oc + ? _c(ec, t) > _c(ec, rc) && (rc = t) + : _c(t, rc) > _c(ec, rc) && (ec = t) + : rc >= ec + ? (t < ec && (ec = t), t > rc && (rc = t)) + : t > oc + ? _c(ec, t) > _c(ec, rc) && (rc = t) + : _c(t, rc) > _c(ec, rc) && (ec = t); + } else lc.push((cc = [(ec = t), (rc = t)])); + e < nc && (nc = e), e > ic && (ic = e), (uc = n), (oc = t); + } + function gc() { + dc.point = pc; + } + function mc() { + (cc[0] = ec), (cc[1] = rc), (dc.point = hc), (uc = null); + } + function vc(t, e) { + if (uc) { + var n = t - oc; + fc.add(hl(n) > 180 ? n + (n > 0 ? 360 : -360) : n); + } else (ac = t), (sc = e); + Gl.point(t, e), pc(t, e); + } + function yc() { + Gl.lineStart(); + } + function bc() { + vc(ac, sc), + Gl.lineEnd(), + hl(fc) > ol && (ec = -(rc = 180)), + (cc[0] = ec), + (cc[1] = rc), + (uc = null); + } + function _c(t, e) { + return (e -= t) < 0 ? e + 360 : e; + } + function xc(t, e) { + return t[0] - e[0]; + } + function wc(t, e) { + return t[0] <= t[1] + ? t[0] <= e && e <= t[1] + : e < t[0] || t[1] < e; + } + var Sc, + Ec, + kc, + Ac, + Tc, + Cc, + Oc, + Pc, + Mc, + Lc, + jc, + Dc, + Rc, + zc, + Nc, + Ic, + Fc = function(t) { + var e, n, r, i, o, a, s; + if ( + ((ic = rc = -(ec = nc = 1 / 0)), + (lc = []), + Fl(t, dc), + (n = lc.length)) + ) { + for (lc.sort(xc), e = 1, o = [(r = lc[0])]; e < n; ++e) + wc(r, (i = lc[e])[0]) || wc(r, i[1]) + ? (_c(r[0], i[1]) > _c(r[0], r[1]) && (r[1] = i[1]), + _c(i[0], r[1]) > _c(r[0], r[1]) && (r[0] = i[0])) + : o.push((r = i)); + for ( + a = -1 / 0, e = 0, r = o[(n = o.length - 1)]; + e <= n; + r = i, ++e + ) + (i = o[e]), + (s = _c(r[1], i[0])) > a && + ((a = s), (ec = i[0]), (rc = r[1])); + } + return ( + (lc = cc = null), + ec === 1 / 0 || nc === 1 / 0 + ? [[NaN, NaN], [NaN, NaN]] + : [[ec, nc], [rc, ic]] + ); + }, + Vc = { + sphere: Cl, + point: Bc, + lineStart: Hc, + lineEnd: Wc, + polygonStart: function() { + (Vc.lineStart = Xc), (Vc.lineEnd = Yc); + }, + polygonEnd: function() { + (Vc.lineStart = Hc), (Vc.lineEnd = Wc); + } + }; + function Bc(t, e) { + t *= dl; + var n = ml((e *= dl)); + Gc(n * ml(t), n * xl(t), xl(e)); + } + function Gc(t, e, n) { + (kc += (t - kc) / ++Sc), + (Ac += (e - Ac) / Sc), + (Tc += (n - Tc) / Sc); + } + function Hc() { + Vc.point = Uc; + } + function Uc(t, e) { + t *= dl; + var n = ml((e *= dl)); + (zc = n * ml(t)), + (Nc = n * xl(t)), + (Ic = xl(e)), + (Vc.point = qc), + Gc(zc, Nc, Ic); + } + function qc(t, e) { + t *= dl; + var n = ml((e *= dl)), + r = n * ml(t), + i = n * xl(t), + o = xl(e), + a = gl( + Sl( + (a = Nc * o - Ic * i) * a + + (a = Ic * r - zc * o) * a + + (a = zc * i - Nc * r) * a + ), + zc * r + Nc * i + Ic * o + ); + (Ec += a), + (Cc += a * (zc + (zc = r))), + (Oc += a * (Nc + (Nc = i))), + (Pc += a * (Ic + (Ic = o))), + Gc(zc, Nc, Ic); + } + function Wc() { + Vc.point = Bc; + } + function Xc() { + Vc.point = $c; + } + function Yc() { + Kc(Dc, Rc), (Vc.point = Bc); + } + function $c(t, e) { + (Dc = t), (Rc = e), (t *= dl), (e *= dl), (Vc.point = Kc); + var n = ml(e); + (zc = n * ml(t)), + (Nc = n * xl(t)), + (Ic = xl(e)), + Gc(zc, Nc, Ic); + } + function Kc(t, e) { + t *= dl; + var n = ml((e *= dl)), + r = n * ml(t), + i = n * xl(t), + o = xl(e), + a = Nc * o - Ic * i, + s = Ic * r - zc * o, + u = zc * i - Nc * r, + l = Sl(a * a + s * s + u * u), + c = Al(l), + f = l && -c / l; + (Mc += f * a), + (Lc += f * s), + (jc += f * u), + (Ec += c), + (Cc += c * (zc + (zc = r))), + (Oc += c * (Nc + (Nc = i))), + (Pc += c * (Ic + (Ic = o))), + Gc(zc, Nc, Ic); + } + var Qc = function(t) { + (Sc = Ec = kc = Ac = Tc = Cc = Oc = Pc = Mc = Lc = jc = 0), + Fl(t, Vc); + var e = Mc, + n = Lc, + r = jc, + i = e * e + n * n + r * r; + return i < al && + ((e = Cc), + (n = Oc), + (r = Pc), + Ec < ol && ((e = kc), (n = Ac), (r = Tc)), + (i = e * e + n * n + r * r) < al) + ? [NaN, NaN] + : [gl(n, e) * fl, Al(r / Sl(i)) * fl]; + }, + Zc = function(t) { + return function() { + return t; + }; + }, + Jc = function(t, e) { + function n(n, r) { + return (n = t(n, r)), e(n[0], n[1]); + } + return ( + t.invert && + e.invert && + (n.invert = function(n, r) { + return (n = e.invert(n, r)) && t.invert(n[0], n[1]); + }), + n + ); + }; + function tf(t, e) { + return [hl(t) > sl ? t + Math.round(-t / cl) * cl : t, e]; + } + function ef(t, e, n) { + return (t %= cl) + ? e || n + ? Jc(rf(t), of(e, n)) + : rf(t) + : e || n + ? of(e, n) + : tf; + } + function nf(t) { + return function(e, n) { + return [(e += t) > sl ? e - cl : e < -sl ? e + cl : e, n]; + }; + } + function rf(t) { + var e = nf(t); + return (e.invert = nf(-t)), e; + } + function of(t, e) { + var n = ml(t), + r = xl(t), + i = ml(e), + o = xl(e); + function a(t, e) { + var a = ml(e), + s = ml(t) * a, + u = xl(t) * a, + l = xl(e), + c = l * n + s * r; + return [gl(u * i - c * o, s * n - l * r), Al(c * i + u * o)]; + } + return ( + (a.invert = function(t, e) { + var a = ml(e), + s = ml(t) * a, + u = xl(t) * a, + l = xl(e), + c = l * i - u * o; return [ - e.min([this.orgXDomain[0], t.zoom_x_min]), - e.max([this.orgXDomain[1], t.zoom_x_max]) + gl(u * i + l * o, s * n + c * r), + Al(c * n - s * r) ]; }), - (r.prototype.redrawForZoom = function() { - var t = this, - e = t.d3, - n = t.config, - r = t.zoom, - i = t.x; - n.zoom_enabled && - 0 !== t.filterTargetsToShow(t.data.targets).length && - (r.update(), - n.zoom_disableDefaultBehavior || - (t.isCategorized() && - i.orgDomain()[0] === t.orgXDomain[0] && - i.domain([t.orgXDomain[0] - 1e-10, i.orgDomain()[1]]), - t.redraw({ - withTransition: !1, - withY: n.zoom_rescale, - withSubchart: !1, - withEventRect: !1, - withDimension: !1 - }), - e.event.sourceEvent && - 'mousemove' === e.event.sourceEvent.type && - (t.cancelClick = !0))); - }), - E + a ); - })(); - } - ]); - }), - (t.exports = r()); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.CustomPicker = e.TwitterPicker = e.SwatchesPicker = e.SliderPicker = e.SketchPicker = e.PhotoshopPicker = e.MaterialPicker = e.HuePicker = e.GithubPicker = e.CompactPicker = e.ChromePicker = e.default = e.CirclePicker = e.BlockPicker = e.AlphaPicker = void 0); - var r = n(317); - Object.defineProperty(e, 'AlphaPicker', { - enumerable: !0, - get: function() { - return y(r).default; - } - }); - var i = n(378); - Object.defineProperty(e, 'BlockPicker', { - enumerable: !0, - get: function() { - return y(i).default; - } - }); - var o = n(380); - Object.defineProperty(e, 'CirclePicker', { - enumerable: !0, - get: function() { - return y(o).default; - } - }); - var a = n(382); - Object.defineProperty(e, 'ChromePicker', { - enumerable: !0, - get: function() { - return y(a).default; - } - }); - var s = n(387); - Object.defineProperty(e, 'CompactPicker', { - enumerable: !0, - get: function() { - return y(s).default; - } - }); - var u = n(390); - Object.defineProperty(e, 'GithubPicker', { - enumerable: !0, - get: function() { - return y(u).default; - } - }); - var l = n(392); - Object.defineProperty(e, 'HuePicker', { - enumerable: !0, - get: function() { - return y(l).default; - } - }); - var c = n(394); - Object.defineProperty(e, 'MaterialPicker', { - enumerable: !0, - get: function() { - return y(c).default; - } - }); - var f = n(395); - Object.defineProperty(e, 'PhotoshopPicker', { - enumerable: !0, - get: function() { - return y(f).default; - } - }); - var d = n(401); - Object.defineProperty(e, 'SketchPicker', { - enumerable: !0, - get: function() { - return y(d).default; - } - }); - var h = n(404); - Object.defineProperty(e, 'SliderPicker', { - enumerable: !0, - get: function() { - return y(h).default; - } - }); - var p = n(408); - Object.defineProperty(e, 'SwatchesPicker', { - enumerable: !0, - get: function() { - return y(p).default; - } - }); - var g = n(412); - Object.defineProperty(e, 'TwitterPicker', { - enumerable: !0, - get: function() { - return y(g).default; - } - }); - var v = n(146); - Object.defineProperty(e, 'CustomPicker', { - enumerable: !0, - get: function() { - return y(v).default; - } - }); - var m = y(a); - function y(t) { - return t && t.__esModule ? t : { default: t }; - } - e.default = m.default; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.AlphaPicker = void 0); - var r = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }, - i = u(n(0)), - o = u(n(2)), - a = n(4), - s = u(n(377)); - function u(t) { - return t && t.__esModule ? t : { default: t }; - } - var l = (e.AlphaPicker = function(t) { - var e = t.rgb, - n = t.hsl, - s = t.width, - u = t.height, - l = t.onChange, - c = t.direction, - f = t.style, - d = t.renderers, - h = t.pointer, - p = t.className, - g = void 0 === p ? '' : p, - v = (0, o.default)({ - default: { - picker: { position: 'relative', width: s, height: u }, - alpha: { radius: '2px', style: f } - } - }); - return i.default.createElement( - 'div', - { style: v.picker, className: 'alpha-picker ' + g }, - i.default.createElement( - a.Alpha, - r({}, v.alpha, { - rgb: e, - hsl: n, - pointer: h, - renderers: d, - onChange: l, - direction: c - }) - ) - ); - }); - (l.defaultProps = { - width: '316px', - height: '16px', - direction: 'horizontal', - pointer: s.default - }), - (e.default = (0, a.ColorWrap)(l)); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.flattenNames = void 0); - var r = s(n(319)), - i = s(n(79)), - o = s(n(103)), - a = s(n(23)); - function s(t) { - return t && t.__esModule ? t : { default: t }; - } - var u = (e.flattenNames = function t() { - var e = - arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [], - n = []; - return ( - (0, a.default)(e, function(e) { - Array.isArray(e) - ? t(e).map(function(t) { - return n.push(t); - }) - : (0, o.default)(e) - ? (0, i.default)(e, function(t, e) { - !0 === t && n.push(e), n.push(e + '-' + t); - }) - : (0, r.default)(e) && n.push(e); - }), - n - ); - }); - e.default = u; - }, - function(t, e, n) { - var r = n(26), - i = n(10), - o = n(20); - t.exports = function(t) { - return ( - 'string' == typeof t || (!i(t) && o(t) && '[object String]' == r(t)) - ); - }; - }, - function(t, e, n) { - var r = n(321), - i = n(324), - o = n(54), - a = n(10), - s = n(334); - t.exports = function(t) { - return 'function' == typeof t - ? t - : null == t - ? o - : 'object' == typeof t - ? a(t) - ? i(t[0], t[1]) - : r(t) - : s(t); - }; - }, - function(t, e, n) { - var r = n(322), - i = n(323), - o = n(139); - t.exports = function(t) { - var e = i(t); - return 1 == e.length && e[0][2] - ? o(e[0][0], e[0][1]) - : function(n) { - return n === t || r(n, t, e); - }; - }; - }, - function(t, e, n) { - var r = n(48), - i = n(75); - t.exports = function(t, e, n, o) { - var a = n.length, - s = a, - u = !o; - if (null == t) return !s; - for (t = Object(t); a--; ) { - var l = n[a]; - if (u && l[2] ? l[1] !== t[l[0]] : !(l[0] in t)) return !1; - } - for (; ++a < s; ) { - var c = (l = n[a])[0], - f = t[c], - d = l[1]; - if (u && l[2]) { - if (void 0 === f && !(c in t)) return !1; - } else { - var h = new r(); - if (o) var p = o(f, d, c, t, e, h); - if (!(void 0 === p ? i(d, f, 3, o, h) : p)) return !1; - } - } - return !0; - }; - }, - function(t, e, n) { - var r = n(138), - i = n(38); - t.exports = function(t) { - for (var e = i(t), n = e.length; n--; ) { - var o = e[n], - a = t[o]; - e[n] = [o, a, r(a)]; - } - return e; - }; - }, - function(t, e, n) { - var r = n(75), - i = n(325), - o = n(331), - a = n(80), - s = n(138), - u = n(139), - l = n(57); - t.exports = function(t, e) { - return a(t) && s(e) - ? u(l(t), e) - : function(n) { - var a = i(n, t); - return void 0 === a && a === e ? o(n, t) : r(e, a, 3); - }; - }; - }, - function(t, e, n) { - var r = n(140); - t.exports = function(t, e, n) { - var i = null == t ? void 0 : r(t, e); - return void 0 === i ? n : i; - }; - }, - function(t, e, n) { - var r = n(327), - i = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, - o = /\\(\\)?/g, - a = r(function(t) { - var e = []; - return ( - 46 === t.charCodeAt(0) && e.push(''), - t.replace(i, function(t, n, r, i) { - e.push(r ? i.replace(o, '$1') : n || t); - }), - e - ); - }); - t.exports = a; - }, - function(t, e, n) { - var r = n(328); - t.exports = function(t) { - var e = r(t, function(t) { - return 500 === n.size && n.clear(), t; - }), - n = e.cache; - return e; - }; - }, - function(t, e, n) { - var r = n(70); - function i(t, e) { - if ('function' != typeof t || (null != e && 'function' != typeof e)) - throw new TypeError('Expected a function'); - var n = function() { - var r = arguments, - i = e ? e.apply(this, r) : r[0], - o = n.cache; - if (o.has(i)) return o.get(i); - var a = t.apply(this, r); - return (n.cache = o.set(i, a) || o), a; - }; - return (n.cache = new (i.Cache || r)()), n; - } - (i.Cache = r), (t.exports = i); - }, - function(t, e, n) { - var r = n(330); - t.exports = function(t) { - return null == t ? '' : r(t); - }; - }, - function(t, e, n) { - var r = n(33), - i = n(137), - o = n(10), - a = n(56), - s = r ? r.prototype : void 0, - u = s ? s.toString : void 0; - t.exports = function t(e) { - if ('string' == typeof e) return e; - if (o(e)) return i(e, t) + ''; - if (a(e)) return u ? u.call(e) : ''; - var n = e + ''; - return '0' == n && 1 / e == -1 / 0 ? '-0' : n; - }; - }, - function(t, e, n) { - var r = n(332), - i = n(333); - t.exports = function(t, e) { - return null != t && i(t, e, r); - }; - }, - function(t, e) { - t.exports = function(t, e) { - return null != t && e in Object(t); - }; - }, - function(t, e, n) { - var r = n(141), - i = n(46), - o = n(10), - a = n(74), - s = n(67), - u = n(57); - t.exports = function(t, e, n) { - for (var l = -1, c = (e = r(e, t)).length, f = !1; ++l < c; ) { - var d = u(e[l]); - if (!(f = null != t && n(t, d))) break; - t = t[d]; - } - return f || ++l != c - ? f - : !!(c = null == t ? 0 : t.length) && - s(c) && - a(d, c) && - (o(t) || i(t)); - }; - }, - function(t, e, n) { - var r = n(335), - i = n(336), - o = n(80), - a = n(57); - t.exports = function(t) { - return o(t) ? r(a(t)) : i(t); - }; - }, - function(t, e) { - t.exports = function(t) { - return function(e) { - return null == e ? void 0 : e[t]; - }; - }; - }, - function(t, e, n) { - var r = n(140); - t.exports = function(t) { - return function(e) { - return r(e, t); - }; - }; - }, - function(t, e, n) { - var r = n(142), - i = n(27); - t.exports = function(t, e) { - var n = -1, - o = i(t) ? Array(t.length) : []; - return ( - r(t, function(t, r, i) { - o[++n] = e(t, r, i); - }), - o - ); - }; - }, - function(t, e, n) { - var r = n(27); - t.exports = function(t, e) { - return function(n, i) { - if (null == n) return n; - if (!r(n)) return t(n, i); - for ( - var o = n.length, a = e ? o : -1, s = Object(n); - (e ? a-- : ++a < o) && !1 !== i(s[a], a, s); - - ); - return n; - }; - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.mergeClasses = void 0); - var r = a(n(79)), - i = a(n(340)), - o = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }; - function a(t) { - return t && t.__esModule ? t : { default: t }; - } - var s = (e.mergeClasses = function(t) { - var e = - arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [], - n = (t.default && (0, i.default)(t.default)) || {}; - return ( - e.map(function(e) { - var i = t[e]; - return ( - i && - (0, r.default)(i, function(t, e) { - n[e] || (n[e] = {}), (n[e] = o({}, n[e], i[e])); - }), - e - ); - }), - n - ); - }); - e.default = s; - }, - function(t, e, n) { - var r = n(341); - t.exports = function(t) { - return r(t, 5); - }; - }, - function(t, e, n) { - var r = n(48), - i = n(143), - o = n(105), - a = n(342), - s = n(343), - u = n(98), - l = n(101), - c = n(344), - f = n(345), - d = n(113), - h = n(346), - p = n(32), - g = n(347), - v = n(348), - m = n(102), - y = n(10), - b = n(34), - _ = n(352), - x = n(14), - w = n(354), - S = n(38), - E = {}; - (E['[object Arguments]'] = E['[object Array]'] = E[ - '[object ArrayBuffer]' - ] = E['[object DataView]'] = E['[object Boolean]'] = E[ - '[object Date]' - ] = E['[object Float32Array]'] = E['[object Float64Array]'] = E[ - '[object Int8Array]' - ] = E['[object Int16Array]'] = E['[object Int32Array]'] = E[ - '[object Map]' - ] = E['[object Number]'] = E['[object Object]'] = E[ - '[object RegExp]' - ] = E['[object Set]'] = E['[object String]'] = E['[object Symbol]'] = E[ - '[object Uint8Array]' - ] = E['[object Uint8ClampedArray]'] = E['[object Uint16Array]'] = E[ - '[object Uint32Array]' - ] = !0), - (E['[object Error]'] = E['[object Function]'] = E[ - '[object WeakMap]' - ] = !1), - (t.exports = function t(e, n, k, A, T, C) { - var O, - P = 1 & n, - M = 2 & n, - L = 4 & n; - if ((k && (O = T ? k(e, A, T, C) : k(e)), void 0 !== O)) return O; - if (!x(e)) return e; - var D = y(e); - if (D) { - if (((O = g(e)), !P)) return l(e, O); - } else { - var j = p(e), - R = '[object Function]' == j || '[object GeneratorFunction]' == j; - if (b(e)) return u(e, P); - if ( - '[object Object]' == j || - '[object Arguments]' == j || - (R && !T) - ) { - if (((O = M || R ? {} : m(e)), !P)) - return M ? f(e, s(O, e)) : c(e, a(O, e)); - } else { - if (!E[j]) return T ? e : {}; - O = v(e, j, P); - } - } - C || (C = new r()); - var N = C.get(e); - if (N) return N; - C.set(e, O), - w(e) - ? e.forEach(function(r) { - O.add(t(r, n, k, r, e, C)); - }) - : _(e) && - e.forEach(function(r, i) { - O.set(i, t(r, n, k, i, e, C)); + } + tf.invert = tf; + var af = function(t) { + function e(e) { + return ( + ((e = t(e[0] * dl, e[1] * dl))[0] *= fl), (e[1] *= fl), e + ); + } + return ( + (t = ef(t[0] * dl, t[1] * dl, t.length > 2 ? t[2] * dl : 0)), + (e.invert = function(e) { + return ( + ((e = t.invert(e[0] * dl, e[1] * dl))[0] *= fl), + (e[1] *= fl), + e + ); + }), + e + ); + }; + function sf(t, e, n, r, i, o) { + if (n) { + var a = ml(e), + s = xl(e), + u = r * n; + null == i + ? ((i = e + r * cl), (o = e - u / 2)) + : ((i = uf(a, i)), + (o = uf(a, o)), + (r > 0 ? i < o : i > o) && (i += r * cl)); + for (var l, c = i; r > 0 ? c > o : c < o; c -= u) + (l = Yl([a, -s * ml(c), -s * xl(c)])), t.point(l[0], l[1]); + } + } + function uf(t, e) { + ((e = $l(e))[0] -= t), tc(e); + var n = kl(-e[1]); + return ((-e[2] < 0 ? -n : n) + cl - ol) % cl; + } + var lf = function() { + var t, + e, + n = Zc([0, 0]), + r = Zc(90), + i = Zc(6), + o = { + point: function(n, r) { + t.push((n = e(n, r))), (n[0] *= fl), (n[1] *= fl); + } + }; + function a() { + var a = n.apply(this, arguments), + s = r.apply(this, arguments) * dl, + u = i.apply(this, arguments) * dl; + return ( + (t = []), + (e = ef(-a[0] * dl, -a[1] * dl, 0).invert), + sf(o, s, u, 1), + (a = { type: 'Polygon', coordinates: [t] }), + (t = e = null), + a + ); + } + return ( + (a.center = function(t) { + return arguments.length + ? ((n = + 'function' == typeof t ? t : Zc([+t[0], +t[1]])), + a) + : n; + }), + (a.radius = function(t) { + return arguments.length + ? ((r = 'function' == typeof t ? t : Zc(+t)), a) + : r; + }), + (a.precision = function(t) { + return arguments.length + ? ((i = 'function' == typeof t ? t : Zc(+t)), a) + : i; + }), + a + ); + }, + cf = function() { + var t, + e = []; + return { + point: function(e, n) { + t.push([e, n]); + }, + lineStart: function() { + e.push((t = [])); + }, + lineEnd: Cl, + rejoin: function() { + e.length > 1 && e.push(e.pop().concat(e.shift())); + }, + result: function() { + var n = e; + return (e = []), (t = null), n; + } + }; + }, + ff = function(t, e) { + return hl(t[0] - e[0]) < ol && hl(t[1] - e[1]) < ol; + }; + function df(t, e, n, r) { + (this.x = t), + (this.z = e), + (this.o = n), + (this.e = r), + (this.v = !1), + (this.n = this.p = null); + } + var hf = function(t, e, n, r, i) { + var o, + a, + s = [], + u = []; + if ( + (t.forEach(function(t) { + if (!((e = t.length - 1) <= 0)) { + var e, + n, + r = t[0], + a = t[e]; + if (ff(r, a)) { + for (i.lineStart(), o = 0; o < e; ++o) + i.point((r = t[o])[0], r[1]); + i.lineEnd(); + } else + s.push((n = new df(r, t, null, !0))), + u.push((n.o = new df(r, null, n, !1))), + s.push((n = new df(a, t, null, !1))), + u.push((n.o = new df(a, null, n, !0))); + } + }), + s.length) + ) { + for (u.sort(e), pf(s), pf(u), o = 0, a = u.length; o < a; ++o) + u[o].e = n = !n; + for (var l, c, f = s[0]; ; ) { + for (var d = f, h = !0; d.v; ) if ((d = d.n) === f) return; + (l = d.z), i.lineStart(); + do { + if (((d.v = d.o.v = !0), d.e)) { + if (h) + for (o = 0, a = l.length; o < a; ++o) + i.point((c = l[o])[0], c[1]); + else r(d.x, d.n.x, 1, i); + d = d.n; + } else { + if (h) + for (l = d.p.z, o = l.length - 1; o >= 0; --o) + i.point((c = l[o])[0], c[1]); + else r(d.x, d.p.x, -1, i); + d = d.p; + } + (l = (d = d.o).z), (h = !h); + } while (!d.v); + i.lineEnd(); + } + } + }; + function pf(t) { + if ((e = t.length)) { + for (var e, n, r = 0, i = t[0]; ++r < e; ) + (i.n = n = t[r]), (n.p = i), (i = n); + (i.n = n = t[0]), (n.p = i); + } + } + var gf = el(); + function mf(t) { + return hl(t[0]) <= sl + ? t[0] + : wl(t[0]) * (((hl(t[0]) + sl) % cl) - sl); + } + var vf = function(t, e) { + var n = mf(e), + r = e[1], + i = xl(r), + o = [xl(n), -ml(n), 0], + a = 0, + s = 0; + gf.reset(), + 1 === i ? (r = ul + ol) : -1 === i && (r = -ul - ol); + for (var u = 0, l = t.length; u < l; ++u) + if ((f = (c = t[u]).length)) + for ( + var c, + f, + d = c[f - 1], + h = mf(d), + p = d[1] / 2 + ll, + g = xl(p), + m = ml(p), + v = 0; + v < f; + ++v, h = b, g = x, m = w, d = y + ) { + var y = c[v], + b = mf(y), + _ = y[1] / 2 + ll, + x = xl(_), + w = ml(_), + S = b - h, + E = S >= 0 ? 1 : -1, + k = E * S, + A = k > sl, + T = g * x; + if ( + (gf.add(gl(T * E * xl(k), m * w + T * ml(k))), + (a += A ? S + E * cl : S), + A ^ (h >= n) ^ (b >= n)) + ) { + var C = Ql($l(d), $l(y)); + tc(C); + var O = Ql(o, C); + tc(O); + var P = (A ^ (S >= 0) ? -1 : 1) * Al(O[2]); + (r > P || (r === P && (C[0] || C[1]))) && + (s += A ^ (S >= 0) ? 1 : -1); + } + } + return (a < -ol || (a < ol && gf < -ol)) ^ (1 & s); + }, + yf = function(t, e, n, r) { + return function(i) { + var o, + a, + s, + u = e(i), + l = cf(), + c = e(l), + f = !1, + d = { + point: h, + lineStart: g, + lineEnd: m, + polygonStart: function() { + (d.point = v), + (d.lineStart = y), + (d.lineEnd = b), + (a = []), + (o = []); + }, + polygonEnd: function() { + (d.point = h), + (d.lineStart = g), + (d.lineEnd = m), + (a = N(a)); + var t = vf(o, r); + a.length + ? (f || (i.polygonStart(), (f = !0)), + hf(a, _f, t, n, i)) + : t && + (f || (i.polygonStart(), (f = !0)), + i.lineStart(), + n(null, null, 1, i), + i.lineEnd()), + f && (i.polygonEnd(), (f = !1)), + (a = o = null); + }, + sphere: function() { + i.polygonStart(), + i.lineStart(), + n(null, null, 1, i), + i.lineEnd(), + i.polygonEnd(); + } + }; + function h(e, n) { + t(e, n) && i.point(e, n); + } + function p(t, e) { + u.point(t, e); + } + function g() { + (d.point = p), u.lineStart(); + } + function m() { + (d.point = h), u.lineEnd(); + } + function v(t, e) { + s.push([t, e]), c.point(t, e); + } + function y() { + c.lineStart(), (s = []); + } + function b() { + v(s[0][0], s[0][1]), c.lineEnd(); + var t, + e, + n, + r, + u = c.clean(), + d = l.result(), + h = d.length; + if ((s.pop(), o.push(s), (s = null), h)) + if (1 & u) { + if ((e = (n = d[0]).length - 1) > 0) { + for ( + f || (i.polygonStart(), (f = !0)), + i.lineStart(), + t = 0; + t < e; + ++t + ) + i.point((r = n[t])[0], r[1]); + i.lineEnd(); + } + } else + h > 1 && 2 & u && d.push(d.pop().concat(d.shift())), + a.push(d.filter(bf)); + } + return d; + }; + }; + function bf(t) { + return t.length > 1; + } + function _f(t, e) { + return ( + ((t = t.x)[0] < 0 ? t[1] - ul - ol : ul - t[1]) - + ((e = e.x)[0] < 0 ? e[1] - ul - ol : ul - e[1]) + ); + } + var xf = yf( + function() { + return !0; + }, + function(t) { + var e, + n = NaN, + r = NaN, + i = NaN; + return { + lineStart: function() { + t.lineStart(), (e = 1); + }, + point: function(o, a) { + var s = o > 0 ? sl : -sl, + u = hl(o - n); + hl(u - sl) < ol + ? (t.point(n, (r = (r + a) / 2 > 0 ? ul : -ul)), + t.point(i, r), + t.lineEnd(), + t.lineStart(), + t.point(s, r), + t.point(o, r), + (e = 0)) + : i !== s && + u >= sl && + (hl(n - i) < ol && (n -= i * ol), + hl(o - s) < ol && (o -= s * ol), + (r = (function(t, e, n, r) { + var i, + o, + a = xl(t - n); + return hl(a) > ol + ? pl( + (xl(e) * (o = ml(r)) * xl(n) - + xl(r) * (i = ml(e)) * xl(t)) / + (i * o * a) + ) + : (e + r) / 2; + })(n, r, o, a)), + t.point(i, r), + t.lineEnd(), + t.lineStart(), + t.point(s, r), + (e = 0)), + t.point((n = o), (r = a)), + (i = s); + }, + lineEnd: function() { + t.lineEnd(), (n = r = NaN); + }, + clean: function() { + return 2 - e; + } + }; + }, + function(t, e, n, r) { + var i; + if (null == t) + (i = n * ul), + r.point(-sl, i), + r.point(0, i), + r.point(sl, i), + r.point(sl, 0), + r.point(sl, -i), + r.point(0, -i), + r.point(-sl, -i), + r.point(-sl, 0), + r.point(-sl, i); + else if (hl(t[0] - e[0]) > ol) { + var o = t[0] < e[0] ? sl : -sl; + (i = (n * o) / 2), + r.point(-o, i), + r.point(0, i), + r.point(o, i); + } else r.point(e[0], e[1]); + }, + [-sl, -ul] + ), + wf = function(t) { + var e = ml(t), + n = 6 * dl, + r = e > 0, + i = hl(e) > ol; + function o(t, n) { + return ml(t) * ml(n) > e; + } + function a(t, n, r) { + var i = [1, 0, 0], + o = Ql($l(t), $l(n)), + a = Kl(o, o), + s = o[0], + u = a - s * s; + if (!u) return !r && t; + var l = (e * a) / u, + c = (-e * s) / u, + f = Ql(i, o), + d = Jl(i, l); + Zl(d, Jl(o, c)); + var h = f, + p = Kl(d, h), + g = Kl(h, h), + m = p * p - g * (Kl(d, d) - 1); + if (!(m < 0)) { + var v = Sl(m), + y = Jl(h, (-p - v) / g); + if ((Zl(y, d), (y = Yl(y)), !r)) return y; + var b, + _ = t[0], + x = n[0], + w = t[1], + S = n[1]; + x < _ && ((b = _), (_ = x), (x = b)); + var E = x - _, + k = hl(E - sl) < ol; + if ( + (!k && S < w && ((b = w), (w = S), (S = b)), + k || E < ol + ? k + ? (w + S > 0) ^ (y[1] < (hl(y[0] - _) < ol ? w : S)) + : w <= y[1] && y[1] <= S + : (E > sl) ^ (_ <= y[0] && y[0] <= x)) + ) { + var A = Jl(h, (-p + v) / g); + return Zl(A, d), [y, Yl(A)]; + } + } + } + function s(e, n) { + var i = r ? t : sl - t, + o = 0; + return ( + e < -i ? (o |= 1) : e > i && (o |= 2), + n < -i ? (o |= 4) : n > i && (o |= 8), + o + ); + } + return yf( + o, + function(t) { + var e, n, u, l, c; + return { + lineStart: function() { + (l = u = !1), (c = 1); + }, + point: function(f, d) { + var h, + p = [f, d], + g = o(f, d), + m = r + ? g + ? 0 + : s(f, d) + : g + ? s(f + (f < 0 ? sl : -sl), d) + : 0; + if ( + (!e && (l = u = g) && t.lineStart(), + g !== u && + (!(h = a(e, p)) || ff(e, h) || ff(p, h)) && + ((p[0] += ol), (p[1] += ol), (g = o(p[0], p[1]))), + g !== u) + ) + (c = 0), + g + ? (t.lineStart(), + (h = a(p, e)), + t.point(h[0], h[1])) + : ((h = a(e, p)), + t.point(h[0], h[1]), + t.lineEnd()), + (e = h); + else if (i && e && r ^ g) { + var v; + m & n || + !(v = a(p, e, !0)) || + ((c = 0), + r + ? (t.lineStart(), + t.point(v[0][0], v[0][1]), + t.point(v[1][0], v[1][1]), + t.lineEnd()) + : (t.point(v[1][0], v[1][1]), + t.lineEnd(), + t.lineStart(), + t.point(v[0][0], v[0][1]))); + } + !g || (e && ff(e, p)) || t.point(p[0], p[1]), + (e = p), + (u = g), + (n = m); + }, + lineEnd: function() { + u && t.lineEnd(), (e = null); + }, + clean: function() { + return c | ((l && u) << 1); + } + }; + }, + function(e, r, i, o) { + sf(o, t, n, i, e, r); + }, + r ? [0, -t] : [-sl, t - sl] + ); + }, + Sf = function(t, e, n, r, i, o) { + var a, + s = t[0], + u = t[1], + l = 0, + c = 1, + f = e[0] - s, + d = e[1] - u; + if (((a = n - s), f || !(a > 0))) { + if (((a /= f), f < 0)) { + if (a < l) return; + a < c && (c = a); + } else if (f > 0) { + if (a > c) return; + a > l && (l = a); + } + if (((a = i - s), f || !(a < 0))) { + if (((a /= f), f < 0)) { + if (a > c) return; + a > l && (l = a); + } else if (f > 0) { + if (a < l) return; + a < c && (c = a); + } + if (((a = r - u), d || !(a > 0))) { + if (((a /= d), d < 0)) { + if (a < l) return; + a < c && (c = a); + } else if (d > 0) { + if (a > c) return; + a > l && (l = a); + } + if (((a = o - u), d || !(a < 0))) { + if (((a /= d), d < 0)) { + if (a > c) return; + a > l && (l = a); + } else if (d > 0) { + if (a < l) return; + a < c && (c = a); + } + return ( + l > 0 && ((t[0] = s + l * f), (t[1] = u + l * d)), + c < 1 && ((e[0] = s + c * f), (e[1] = u + c * d)), + !0 + ); + } + } + } + } + }, + Ef = 1e9, + kf = -Ef; + function Af(t, e, n, r) { + function i(i, o) { + return t <= i && i <= n && e <= o && o <= r; + } + function o(i, o, s, l) { + var c = 0, + f = 0; + if ( + null == i || + (c = a(i, s)) !== (f = a(o, s)) || + (u(i, o) < 0) ^ (s > 0) + ) + do { + l.point(0 === c || 3 === c ? t : n, c > 1 ? r : e); + } while ((c = (c + s + 4) % 4) !== f); + else l.point(o[0], o[1]); + } + function a(r, i) { + return hl(r[0] - t) < ol + ? i > 0 + ? 0 + : 3 + : hl(r[0] - n) < ol + ? i > 0 + ? 2 + : 1 + : hl(r[1] - e) < ol + ? i > 0 + ? 1 + : 0 + : i > 0 + ? 3 + : 2; + } + function s(t, e) { + return u(t.x, e.x); + } + function u(t, e) { + var n = a(t, 1), + r = a(e, 1); + return n !== r + ? n - r + : 0 === n + ? e[1] - t[1] + : 1 === n + ? t[0] - e[0] + : 2 === n + ? t[1] - e[1] + : e[0] - t[0]; + } + return function(a) { + var u, + l, + c, + f, + d, + h, + p, + g, + m, + v, + y, + b = a, + _ = cf(), + x = { + point: w, + lineStart: function() { + (x.point = S), + l && l.push((c = [])), + (v = !0), + (m = !1), + (p = g = NaN); + }, + lineEnd: function() { + u && + (S(f, d), h && m && _.rejoin(), u.push(_.result())), + (x.point = w), + m && b.lineEnd(); + }, + polygonStart: function() { + (b = _), (u = []), (l = []), (y = !0); + }, + polygonEnd: function() { + var e = (function() { + for (var e = 0, n = 0, i = l.length; n < i; ++n) + for ( + var o, + a, + s = l[n], + u = 1, + c = s.length, + f = s[0], + d = f[0], + h = f[1]; + u < c; + ++u + ) + (o = d), + (a = h), + (f = s[u]), + (d = f[0]), + (h = f[1]), + a <= r + ? h > r && + (d - o) * (r - a) > (h - a) * (t - o) && + ++e + : h <= r && + (d - o) * (r - a) < (h - a) * (t - o) && + --e; + return e; + })(), + n = y && e, + i = (u = N(u)).length; + (n || i) && + (a.polygonStart(), + n && + (a.lineStart(), o(null, null, 1, a), a.lineEnd()), + i && hf(u, s, e, o, a), + a.polygonEnd()), + (b = a), + (u = l = c = null); + } + }; + function w(t, e) { + i(t, e) && b.point(t, e); + } + function S(o, a) { + var s = i(o, a); + if ((l && c.push([o, a]), v)) + (f = o), + (d = a), + (h = s), + (v = !1), + s && (b.lineStart(), b.point(o, a)); + else if (s && m) b.point(o, a); + else { + var u = [ + (p = Math.max(kf, Math.min(Ef, p))), + (g = Math.max(kf, Math.min(Ef, g))) + ], + _ = [ + (o = Math.max(kf, Math.min(Ef, o))), + (a = Math.max(kf, Math.min(Ef, a))) + ]; + Sf(u, _, t, e, n, r) + ? (m || (b.lineStart(), b.point(u[0], u[1])), + b.point(_[0], _[1]), + s || b.lineEnd(), + (y = !1)) + : s && (b.lineStart(), b.point(o, a), (y = !1)); + } + (p = o), (g = a), (m = s); + } + return x; + }; + } + var Tf, + Cf, + Of, + Pf = function() { + var t, + e, + n, + r = 0, + i = 0, + o = 960, + a = 500; + return (n = { + stream: function(n) { + return t && e === n ? t : (t = Af(r, i, o, a)((e = n))); + }, + extent: function(s) { + return arguments.length + ? ((r = +s[0][0]), + (i = +s[0][1]), + (o = +s[1][0]), + (a = +s[1][1]), + (t = e = null), + n) + : [[r, i], [o, a]]; + } + }); + }, + Mf = el(), + Lf = { + sphere: Cl, + point: Cl, + lineStart: function() { + (Lf.point = Df), (Lf.lineEnd = jf); + }, + lineEnd: Cl, + polygonStart: Cl, + polygonEnd: Cl + }; + function jf() { + Lf.point = Lf.lineEnd = Cl; + } + function Df(t, e) { + (Tf = t *= dl), + (Cf = xl((e *= dl))), + (Of = ml(e)), + (Lf.point = Rf); + } + function Rf(t, e) { + t *= dl; + var n = xl((e *= dl)), + r = ml(e), + i = hl(t - Tf), + o = ml(i), + a = r * xl(i), + s = Of * n - Cf * r * o, + u = Cf * n + Of * r * o; + Mf.add(gl(Sl(a * a + s * s), u)), (Tf = t), (Cf = n), (Of = r); + } + var zf = function(t) { + return Mf.reset(), Fl(t, Lf), +Mf; + }, + Nf = [null, null], + If = { type: 'LineString', coordinates: Nf }, + Ff = function(t, e) { + return (Nf[0] = t), (Nf[1] = e), zf(If); + }, + Vf = { + Feature: function(t, e) { + return Gf(t.geometry, e); + }, + FeatureCollection: function(t, e) { + for (var n = t.features, r = -1, i = n.length; ++r < i; ) + if (Gf(n[r].geometry, e)) return !0; + return !1; + } + }, + Bf = { + Sphere: function() { + return !0; + }, + Point: function(t, e) { + return Hf(t.coordinates, e); + }, + MultiPoint: function(t, e) { + for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) + if (Hf(n[r], e)) return !0; + return !1; + }, + LineString: function(t, e) { + return Uf(t.coordinates, e); + }, + MultiLineString: function(t, e) { + for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) + if (Uf(n[r], e)) return !0; + return !1; + }, + Polygon: function(t, e) { + return qf(t.coordinates, e); + }, + MultiPolygon: function(t, e) { + for (var n = t.coordinates, r = -1, i = n.length; ++r < i; ) + if (qf(n[r], e)) return !0; + return !1; + }, + GeometryCollection: function(t, e) { + for (var n = t.geometries, r = -1, i = n.length; ++r < i; ) + if (Gf(n[r], e)) return !0; + return !1; + } + }; + function Gf(t, e) { + return !(!t || !Bf.hasOwnProperty(t.type)) && Bf[t.type](t, e); + } + function Hf(t, e) { + return 0 === Ff(t, e); + } + function Uf(t, e) { + for (var n, r, i, o = 0, a = t.length; o < a; o++) { + if (0 === (r = Ff(t[o], e))) return !0; + if ( + o > 0 && + (i = Ff(t[o], t[o - 1])) > 0 && + n <= i && + r <= i && + (n + r - i) * (1 - Math.pow((n - r) / i, 2)) < al * i + ) + return !0; + n = r; + } + return !1; + } + function qf(t, e) { + return !!vf(t.map(Wf), Xf(e)); + } + function Wf(t) { + return (t = t.map(Xf)).pop(), t; + } + function Xf(t) { + return [t[0] * dl, t[1] * dl]; + } + var Yf = function(t, e) { + return (t && Vf.hasOwnProperty(t.type) ? Vf[t.type] : Gf)(t, e); + }; + function $f(t, e, n) { + var r = w(t, e - ol, n).concat(e); + return function(t) { + return r.map(function(e) { + return [t, e]; + }); + }; + } + function Kf(t, e, n) { + var r = w(t, e - ol, n).concat(e); + return function(t) { + return r.map(function(e) { + return [e, t]; + }); + }; + } + function Qf() { + var t, + e, + n, + r, + i, + o, + a, + s, + u, + l, + c, + f, + d = 10, + h = d, + p = 90, + g = 360, + m = 2.5; + function v() { + return { type: 'MultiLineString', coordinates: y() }; + } + function y() { + return w(vl(r / p) * p, n, p) + .map(c) + .concat(w(vl(s / g) * g, a, g).map(f)) + .concat( + w(vl(e / d) * d, t, d) + .filter(function(t) { + return hl(t % p) > ol; + }) + .map(u) + ) + .concat( + w(vl(o / h) * h, i, h) + .filter(function(t) { + return hl(t % g) > ol; + }) + .map(l) + ); + } + return ( + (v.lines = function() { + return y().map(function(t) { + return { type: 'LineString', coordinates: t }; + }); + }), + (v.outline = function() { + return { + type: 'Polygon', + coordinates: [ + c(r).concat( + f(a).slice(1), + c(n) + .reverse() + .slice(1), + f(s) + .reverse() + .slice(1) + ) + ] + }; + }), + (v.extent = function(t) { + return arguments.length + ? v.extentMajor(t).extentMinor(t) + : v.extentMinor(); + }), + (v.extentMajor = function(t) { + return arguments.length + ? ((r = +t[0][0]), + (n = +t[1][0]), + (s = +t[0][1]), + (a = +t[1][1]), + r > n && ((t = r), (r = n), (n = t)), + s > a && ((t = s), (s = a), (a = t)), + v.precision(m)) + : [[r, s], [n, a]]; + }), + (v.extentMinor = function(n) { + return arguments.length + ? ((e = +n[0][0]), + (t = +n[1][0]), + (o = +n[0][1]), + (i = +n[1][1]), + e > t && ((n = e), (e = t), (t = n)), + o > i && ((n = o), (o = i), (i = n)), + v.precision(m)) + : [[e, o], [t, i]]; + }), + (v.step = function(t) { + return arguments.length + ? v.stepMajor(t).stepMinor(t) + : v.stepMinor(); + }), + (v.stepMajor = function(t) { + return arguments.length + ? ((p = +t[0]), (g = +t[1]), v) + : [p, g]; + }), + (v.stepMinor = function(t) { + return arguments.length + ? ((d = +t[0]), (h = +t[1]), v) + : [d, h]; + }), + (v.precision = function(d) { + return arguments.length + ? ((m = +d), + (u = $f(o, i, 90)), + (l = Kf(e, t, m)), + (c = $f(s, a, 90)), + (f = Kf(r, n, m)), + v) + : m; + }), + v + .extentMajor([[-180, -90 + ol], [180, 90 - ol]]) + .extentMinor([[-180, -80 - ol], [180, 80 + ol]]) + ); + } + function Zf() { + return Qf()(); + } + var Jf, + td, + ed, + nd, + rd = function(t, e) { + var n = t[0] * dl, + r = t[1] * dl, + i = e[0] * dl, + o = e[1] * dl, + a = ml(r), + s = xl(r), + u = ml(o), + l = xl(o), + c = a * ml(n), + f = a * xl(n), + d = u * ml(i), + h = u * xl(i), + p = 2 * Al(Sl(Tl(o - r) + a * u * Tl(i - n))), + g = xl(p), + m = p + ? function(t) { + var e = xl((t *= p)) / g, + n = xl(p - t) / g, + r = n * c + e * d, + i = n * f + e * h, + o = n * s + e * l; + return [gl(i, r) * fl, gl(o, Sl(r * r + i * i)) * fl]; + } + : function() { + return [n * fl, r * fl]; + }; + return (m.distance = p), m; + }, + id = function(t) { + return t; + }, + od = el(), + ad = el(), + sd = { + point: Cl, + lineStart: Cl, + lineEnd: Cl, + polygonStart: function() { + (sd.lineStart = ud), (sd.lineEnd = fd); + }, + polygonEnd: function() { + (sd.lineStart = sd.lineEnd = sd.point = Cl), + od.add(hl(ad)), + ad.reset(); + }, + result: function() { + var t = od / 2; + return od.reset(), t; + } + }; + function ud() { + sd.point = ld; + } + function ld(t, e) { + (sd.point = cd), (Jf = ed = t), (td = nd = e); + } + function cd(t, e) { + ad.add(nd * t - ed * e), (ed = t), (nd = e); + } + function fd() { + cd(Jf, td); + } + var dd, + hd, + pd, + gd, + md = sd, + vd = 1 / 0, + yd = vd, + bd = -vd, + _d = bd, + xd = { + point: function(t, e) { + t < vd && (vd = t), + t > bd && (bd = t), + e < yd && (yd = e), + e > _d && (_d = e); + }, + lineStart: Cl, + lineEnd: Cl, + polygonStart: Cl, + polygonEnd: Cl, + result: function() { + var t = [[vd, yd], [bd, _d]]; + return (bd = _d = -(yd = vd = 1 / 0)), t; + } + }, + wd = 0, + Sd = 0, + Ed = 0, + kd = 0, + Ad = 0, + Td = 0, + Cd = 0, + Od = 0, + Pd = 0, + Md = { + point: Ld, + lineStart: jd, + lineEnd: zd, + polygonStart: function() { + (Md.lineStart = Nd), (Md.lineEnd = Id); + }, + polygonEnd: function() { + (Md.point = Ld), (Md.lineStart = jd), (Md.lineEnd = zd); + }, + result: function() { + var t = Pd + ? [Cd / Pd, Od / Pd] + : Td + ? [kd / Td, Ad / Td] + : Ed + ? [wd / Ed, Sd / Ed] + : [NaN, NaN]; + return (wd = Sd = Ed = kd = Ad = Td = Cd = Od = Pd = 0), t; + } + }; + function Ld(t, e) { + (wd += t), (Sd += e), ++Ed; + } + function jd() { + Md.point = Dd; + } + function Dd(t, e) { + (Md.point = Rd), Ld((pd = t), (gd = e)); + } + function Rd(t, e) { + var n = t - pd, + r = e - gd, + i = Sl(n * n + r * r); + (kd += (i * (pd + t)) / 2), + (Ad += (i * (gd + e)) / 2), + (Td += i), + Ld((pd = t), (gd = e)); + } + function zd() { + Md.point = Ld; + } + function Nd() { + Md.point = Fd; + } + function Id() { + Vd(dd, hd); + } + function Fd(t, e) { + (Md.point = Vd), Ld((dd = pd = t), (hd = gd = e)); + } + function Vd(t, e) { + var n = t - pd, + r = e - gd, + i = Sl(n * n + r * r); + (kd += (i * (pd + t)) / 2), + (Ad += (i * (gd + e)) / 2), + (Td += i), + (Cd += (i = gd * t - pd * e) * (pd + t)), + (Od += i * (gd + e)), + (Pd += 3 * i), + Ld((pd = t), (gd = e)); + } + var Bd = Md; + function Gd(t) { + this._context = t; + } + Gd.prototype = { + _radius: 4.5, + pointRadius: function(t) { + return (this._radius = t), this; + }, + polygonStart: function() { + this._line = 0; + }, + polygonEnd: function() { + this._line = NaN; + }, + lineStart: function() { + this._point = 0; + }, + lineEnd: function() { + 0 === this._line && this._context.closePath(), + (this._point = NaN); + }, + point: function(t, e) { + switch (this._point) { + case 0: + this._context.moveTo(t, e), (this._point = 1); + break; + case 1: + this._context.lineTo(t, e); + break; + default: + this._context.moveTo(t + this._radius, e), + this._context.arc(t, e, this._radius, 0, cl); + } + }, + result: Cl + }; + var Hd, + Ud, + qd, + Wd, + Xd, + Yd = el(), + $d = { + point: Cl, + lineStart: function() { + $d.point = Kd; + }, + lineEnd: function() { + Hd && Qd(Ud, qd), ($d.point = Cl); + }, + polygonStart: function() { + Hd = !0; + }, + polygonEnd: function() { + Hd = null; + }, + result: function() { + var t = +Yd; + return Yd.reset(), t; + } + }; + function Kd(t, e) { + ($d.point = Qd), (Ud = Wd = t), (qd = Xd = e); + } + function Qd(t, e) { + (Wd -= t), + (Xd -= e), + Yd.add(Sl(Wd * Wd + Xd * Xd)), + (Wd = t), + (Xd = e); + } + var Zd = $d; + function Jd() { + this._string = []; + } + function th(t) { + return ( + 'm0,' + + t + + 'a' + + t + + ',' + + t + + ' 0 1,1 0,' + + -2 * t + + 'a' + + t + + ',' + + t + + ' 0 1,1 0,' + + 2 * t + + 'z' + ); + } + Jd.prototype = { + _radius: 4.5, + _circle: th(4.5), + pointRadius: function(t) { + return ( + (t = +t) !== this._radius && + ((this._radius = t), (this._circle = null)), + this + ); + }, + polygonStart: function() { + this._line = 0; + }, + polygonEnd: function() { + this._line = NaN; + }, + lineStart: function() { + this._point = 0; + }, + lineEnd: function() { + 0 === this._line && this._string.push('Z'), + (this._point = NaN); + }, + point: function(t, e) { + switch (this._point) { + case 0: + this._string.push('M', t, ',', e), (this._point = 1); + break; + case 1: + this._string.push('L', t, ',', e); + break; + default: + null == this._circle && (this._circle = th(this._radius)), + this._string.push('M', t, ',', e, this._circle); + } + }, + result: function() { + if (this._string.length) { + var t = this._string.join(''); + return (this._string = []), t; + } + return null; + } + }; + var eh = function(t, e) { + var n, + r, + i = 4.5; + function o(t) { + return ( + t && + ('function' == typeof i && + r.pointRadius(+i.apply(this, arguments)), + Fl(t, n(r))), + r.result() + ); + } + return ( + (o.area = function(t) { + return Fl(t, n(md)), md.result(); + }), + (o.measure = function(t) { + return Fl(t, n(Zd)), Zd.result(); + }), + (o.bounds = function(t) { + return Fl(t, n(xd)), xd.result(); + }), + (o.centroid = function(t) { + return Fl(t, n(Bd)), Bd.result(); + }), + (o.projection = function(e) { + return arguments.length + ? ((n = null == e ? ((t = null), id) : (t = e).stream), + o) + : t; + }), + (o.context = function(t) { + return arguments.length + ? ((r = + null == t + ? ((e = null), new Jd()) + : new Gd((e = t))), + 'function' != typeof i && r.pointRadius(i), + o) + : e; + }), + (o.pointRadius = function(t) { + return arguments.length + ? ((i = + 'function' == typeof t + ? t + : (r.pointRadius(+t), +t)), + o) + : i; + }), + o.projection(t).context(e) + ); + }, + nh = function(t) { + return { stream: rh(t) }; + }; + function rh(t) { + return function(e) { + var n = new ih(); + for (var r in t) n[r] = t[r]; + return (n.stream = e), n; + }; + } + function ih() {} + function oh(t, e, n) { + var r = t.clipExtent && t.clipExtent(); + return ( + t.scale(150).translate([0, 0]), + null != r && t.clipExtent(null), + Fl(n, t.stream(xd)), + e(xd.result()), + null != r && t.clipExtent(r), + t + ); + } + function ah(t, e, n) { + return oh( + t, + function(n) { + var r = e[1][0] - e[0][0], + i = e[1][1] - e[0][1], + o = Math.min( + r / (n[1][0] - n[0][0]), + i / (n[1][1] - n[0][1]) + ), + a = +e[0][0] + (r - o * (n[1][0] + n[0][0])) / 2, + s = +e[0][1] + (i - o * (n[1][1] + n[0][1])) / 2; + t.scale(150 * o).translate([a, s]); + }, + n + ); + } + function sh(t, e, n) { + return ah(t, [[0, 0], e], n); + } + function uh(t, e, n) { + return oh( + t, + function(n) { + var r = +e, + i = r / (n[1][0] - n[0][0]), + o = (r - i * (n[1][0] + n[0][0])) / 2, + a = -i * n[0][1]; + t.scale(150 * i).translate([o, a]); + }, + n + ); + } + function lh(t, e, n) { + return oh( + t, + function(n) { + var r = +e, + i = r / (n[1][1] - n[0][1]), + o = -i * n[0][0], + a = (r - i * (n[1][1] + n[0][1])) / 2; + t.scale(150 * i).translate([o, a]); + }, + n + ); + } + ih.prototype = { + constructor: ih, + point: function(t, e) { + this.stream.point(t, e); + }, + sphere: function() { + this.stream.sphere(); + }, + lineStart: function() { + this.stream.lineStart(); + }, + lineEnd: function() { + this.stream.lineEnd(); + }, + polygonStart: function() { + this.stream.polygonStart(); + }, + polygonEnd: function() { + this.stream.polygonEnd(); + } + }; + var ch = 16, + fh = ml(30 * dl), + dh = function(t, e) { + return +e + ? (function(t, e) { + function n(r, i, o, a, s, u, l, c, f, d, h, p, g, m) { + var v = l - r, + y = c - i, + b = v * v + y * y; + if (b > 4 * e && g--) { + var _ = a + d, + x = s + h, + w = u + p, + S = Sl(_ * _ + x * x + w * w), + E = Al((w /= S)), + k = + hl(hl(w) - 1) < ol || hl(o - f) < ol + ? (o + f) / 2 + : gl(x, _), + A = t(k, E), + T = A[0], + C = A[1], + O = T - r, + P = C - i, + M = y * O - v * P; + ((M * M) / b > e || + hl((v * O + y * P) / b - 0.5) > 0.3 || + a * d + s * h + u * p < fh) && + (n( + r, + i, + o, + a, + s, + u, + T, + C, + k, + (_ /= S), + (x /= S), + w, + g, + m + ), + m.point(T, C), + n(T, C, k, _, x, w, l, c, f, d, h, p, g, m)); + } + } + return function(e) { + var r, + i, + o, + a, + s, + u, + l, + c, + f, + d, + h, + p, + g = { + point: m, + lineStart: v, + lineEnd: b, + polygonStart: function() { + e.polygonStart(), (g.lineStart = _); + }, + polygonEnd: function() { + e.polygonEnd(), (g.lineStart = v); + } + }; + function m(n, r) { + (n = t(n, r)), e.point(n[0], n[1]); + } + function v() { + (c = NaN), (g.point = y), e.lineStart(); + } + function y(r, i) { + var o = $l([r, i]), + a = t(r, i); + n( + c, + f, + l, + d, + h, + p, + (c = a[0]), + (f = a[1]), + (l = r), + (d = o[0]), + (h = o[1]), + (p = o[2]), + ch, + e + ), + e.point(c, f); + } + function b() { + (g.point = m), e.lineEnd(); + } + function _() { + v(), (g.point = x), (g.lineEnd = w); + } + function x(t, e) { + y((r = t), e), + (i = c), + (o = f), + (a = d), + (s = h), + (u = p), + (g.point = y); + } + function w() { + n(c, f, l, d, h, p, i, o, r, a, s, u, ch, e), + (g.lineEnd = b), + b(); + } + return g; + }; + })(t, e) + : (function(t) { + return rh({ + point: function(e, n) { + (e = t(e, n)), this.stream.point(e[0], e[1]); + } + }); + })(t); + }, + hh = rh({ + point: function(t, e) { + this.stream.point(t * dl, e * dl); + } }); - var z = L ? (M ? h : d) : M ? keysIn : S, - I = D ? void 0 : z(e); - return ( - i(I || e, function(r, i) { - I && (r = e[(i = r)]), o(O, i, t(r, n, k, i, e, C)); - }), - O - ); - }); - }, - function(t, e, n) { - var r = n(37), - i = n(38); - t.exports = function(t, e) { - return t && r(e, i(e), t); - }; - }, - function(t, e, n) { - var r = n(37), - i = n(53); - t.exports = function(t, e) { - return t && r(e, i(e), t); - }; - }, - function(t, e, n) { - var r = n(37), - i = n(76); - t.exports = function(t, e) { - return r(t, i(t), e); - }; - }, - function(t, e, n) { - var r = n(37), - i = n(144); - t.exports = function(t, e) { - return r(t, i(t), e); - }; - }, - function(t, e, n) { - var r = n(114), - i = n(144), - o = n(53); - t.exports = function(t) { - return r(t, o, i); - }; - }, - function(t, e) { - var n = Object.prototype.hasOwnProperty; - t.exports = function(t) { - var e = t.length, - r = new t.constructor(e); - return ( - e && - 'string' == typeof t[0] && - n.call(t, 'index') && - ((r.index = t.index), (r.input = t.input)), - r - ); - }; - }, - function(t, e, n) { - var r = n(72), - i = n(349), - o = n(350), - a = n(351), - s = n(99); - t.exports = function(t, e, n) { - var u = t.constructor; - switch (e) { - case '[object ArrayBuffer]': - return r(t); - case '[object Boolean]': - case '[object Date]': - return new u(+t); - case '[object DataView]': - return i(t, 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 s(t, n); - case '[object Map]': - return new u(); - case '[object Number]': - case '[object String]': - return new u(t); - case '[object RegExp]': - return o(t); - case '[object Set]': - return new u(); - case '[object Symbol]': - return a(t); - } - }; - }, - function(t, e, n) { - var r = n(72); - t.exports = function(t, e) { - var n = e ? r(t.buffer) : t.buffer; - return new t.constructor(n, t.byteOffset, t.byteLength); - }; - }, - function(t, e) { - var n = /\w*$/; - t.exports = function(t) { - var e = new t.constructor(t.source, n.exec(t)); - return (e.lastIndex = t.lastIndex), e; - }; - }, - function(t, e, n) { - var r = n(33), - i = r ? r.prototype : void 0, - o = i ? i.valueOf : void 0; - t.exports = function(t) { - return o ? Object(o.call(t)) : {}; - }; - }, - function(t, e, n) { - var r = n(353), - i = n(68), - o = n(69), - a = o && o.isMap, - s = a ? i(a) : r; - t.exports = s; - }, - function(t, e, n) { - var r = n(32), - i = n(20); - t.exports = function(t) { - return i(t) && '[object Map]' == r(t); - }; - }, - function(t, e, n) { - var r = n(355), - i = n(68), - o = n(69), - a = o && o.isSet, - s = a ? i(a) : r; - t.exports = s; - }, - function(t, e, n) { - var r = n(32), - i = n(20); - t.exports = function(t) { - return i(t) && '[object Set]' == r(t); - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.autoprefix = void 0); - var r, - i = n(79), - o = (r = i) && r.__esModule ? r : { default: r }, - a = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }; - var s = { - borderRadius: function(t) { - return { - msBorderRadius: t, - MozBorderRadius: t, - OBorderRadius: t, - WebkitBorderRadius: t, - borderRadius: t - }; - }, - boxShadow: function(t) { - return { - msBoxShadow: t, - MozBoxShadow: t, - OBoxShadow: t, - WebkitBoxShadow: t, - boxShadow: t - }; - }, - userSelect: function(t) { - return { - WebkitTouchCallout: t, - KhtmlUserSelect: t, - MozUserSelect: t, - msUserSelect: t, - WebkitUserSelect: t, - userSelect: t - }; - }, - flex: function(t) { - return { - WebkitBoxFlex: t, - MozBoxFlex: t, - WebkitFlex: t, - msFlex: t, - flex: t - }; - }, - flexBasis: function(t) { - return { WebkitFlexBasis: t, flexBasis: t }; - }, - justifyContent: function(t) { - return { WebkitJustifyContent: t, justifyContent: t }; - }, - transition: function(t) { - return { - msTransition: t, - MozTransition: t, - OTransition: t, - WebkitTransition: t, - transition: t - }; - }, - transform: function(t) { - return { - msTransform: t, - MozTransform: t, - OTransform: t, - WebkitTransform: t, - transform: t - }; - }, - absolute: function(t) { - var e = t && t.split(' '); - return { - position: 'absolute', - top: e && e[0], - right: e && e[1], - bottom: e && e[2], - left: e && e[3] - }; - }, - extend: function(t, e) { - var n = e[t]; - return n || { extend: t }; - } - }, - u = (e.autoprefix = function(t) { - var e = {}; - return ( - (0, o.default)(t, function(t, n) { - var r = {}; - (0, o.default)(t, function(t, e) { - var n = s[e]; - n ? (r = a({}, r, n(t))) : (r[e] = t); - }), - (e[n] = r); - }), - e - ); - }); - e.default = u; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), (e.hover = void 0); - var r, - i = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }, - o = n(0), - a = (r = o) && r.__esModule ? r : { default: r }; - function s(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - } - function u(t, e) { - if (!t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !e || ('object' != typeof e && 'function' != typeof e) ? t : e; - } - function l(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof e - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { - value: t, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - e && - (Object.setPrototypeOf - ? Object.setPrototypeOf(t, e) - : (t.__proto__ = e)); - } - var c = (e.hover = function(t) { - var e = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : 'span'; - return (function(n) { - function r() { - var n, o, l; - s(this, r); - for (var c = arguments.length, f = Array(c), d = 0; d < c; d++) - f[d] = arguments[d]; - return ( - (o = l = u( - this, - (n = r.__proto__ || Object.getPrototypeOf(r)).call.apply( + function ph(t, e, n) { + function r(r, i) { + return [e + t * r, n - t * i]; + } + return ( + (r.invert = function(r, i) { + return [(r - e) / t, (n - i) / t]; + }), + r + ); + } + function gh(t, e, n, r) { + var i = ml(r), + o = xl(r), + a = i * t, + s = o * t, + u = i / t, + l = o / t, + c = (o * n - i * e) / t, + f = (o * e + i * n) / t; + function d(t, r) { + return [a * t - s * r + e, n - s * t - a * r]; + } + return ( + (d.invert = function(t, e) { + return [u * t - l * e + c, f - l * t - u * e]; + }), + d + ); + } + function mh(t) { + return vh(function() { + return t; + })(); + } + function vh(t) { + var e, + n, + r, + i, + o, + a, + s, + u, + l, + c, + f = 150, + d = 480, + h = 250, + p = 0, + g = 0, + m = 0, + v = 0, + y = 0, + b = 0, + _ = null, + x = xf, + w = null, + S = id, + E = 0.5; + function k(t) { + return u(t[0] * dl, t[1] * dl); + } + function A(t) { + return (t = u.invert(t[0], t[1])) && [t[0] * fl, t[1] * fl]; + } + function T() { + var t = gh(f, 0, 0, b).apply(null, e(p, g)), + r = (b ? gh : ph)(f, d - t[0], h - t[1], b); + return ( + (n = ef(m, v, y)), + (s = Jc(e, r)), + (u = Jc(n, s)), + (a = dh(s, E)), + C() + ); + } + function C() { + return (l = c = null), k; + } + return ( + (k.stream = function(t) { + return l && c === t + ? l + : (l = hh( + (function(t) { + return rh({ + point: function(e, n) { + var r = t(e, n); + return this.stream.point(r[0], r[1]); + } + }); + })(n)(x(a(S((c = t))))) + )); + }), + (k.preclip = function(t) { + return arguments.length ? ((x = t), (_ = void 0), C()) : x; + }), + (k.postclip = function(t) { + return arguments.length + ? ((S = t), (w = r = i = o = null), C()) + : S; + }), + (k.clipAngle = function(t) { + return arguments.length + ? ((x = +t ? wf((_ = t * dl)) : ((_ = null), xf)), C()) + : _ * fl; + }), + (k.clipExtent = function(t) { + return arguments.length + ? ((S = + null == t + ? ((w = r = i = o = null), id) + : Af( + (w = +t[0][0]), + (r = +t[0][1]), + (i = +t[1][0]), + (o = +t[1][1]) + )), + C()) + : null == w + ? null + : [[w, r], [i, o]]; + }), + (k.scale = function(t) { + return arguments.length ? ((f = +t), T()) : f; + }), + (k.translate = function(t) { + return arguments.length + ? ((d = +t[0]), (h = +t[1]), T()) + : [d, h]; + }), + (k.center = function(t) { + return arguments.length + ? ((p = (t[0] % 360) * dl), (g = (t[1] % 360) * dl), T()) + : [p * fl, g * fl]; + }), + (k.rotate = function(t) { + return arguments.length + ? ((m = (t[0] % 360) * dl), + (v = (t[1] % 360) * dl), + (y = t.length > 2 ? (t[2] % 360) * dl : 0), + T()) + : [m * fl, v * fl, y * fl]; + }), + (k.angle = function(t) { + return arguments.length + ? ((b = (t % 360) * dl), T()) + : b * fl; + }), + (k.precision = function(t) { + return arguments.length + ? ((a = dh(s, (E = t * t))), C()) + : Sl(E); + }), + (k.fitExtent = function(t, e) { + return ah(k, t, e); + }), + (k.fitSize = function(t, e) { + return sh(k, t, e); + }), + (k.fitWidth = function(t, e) { + return uh(k, t, e); + }), + (k.fitHeight = function(t, e) { + return lh(k, t, e); + }), + function() { + return ( + (e = t.apply(this, arguments)), + (k.invert = e.invert && A), + T() + ); + } + ); + } + function yh(t) { + var e = 0, + n = sl / 3, + r = vh(t), + i = r(e, n); + return ( + (i.parallels = function(t) { + return arguments.length + ? r((e = t[0] * dl), (n = t[1] * dl)) + : [e * fl, n * fl]; + }), + i + ); + } + function bh(t, e) { + var n = xl(t), + r = (n + xl(e)) / 2; + if (hl(r) < ol) + return (function(t) { + var e = ml(t); + function n(t, n) { + return [t * e, xl(n) / e]; + } + return ( + (n.invert = function(t, n) { + return [t / e, Al(n * e)]; + }), + n + ); + })(t); + var i = 1 + n * (2 * r - n), + o = Sl(i) / r; + function a(t, e) { + var n = Sl(i - 2 * r * xl(e)) / r; + return [n * xl((t *= r)), o - n * ml(t)]; + } + return ( + (a.invert = function(t, e) { + var n = o - e; + return [ + (gl(t, hl(n)) / r) * wl(n), + Al((i - (t * t + n * n) * r * r) / (2 * r)) + ]; + }), + a + ); + } + var _h = function() { + return yh(bh) + .scale(155.424) + .center([0, 33.6442]); + }, + xh = function() { + return _h() + .parallels([29.5, 45.5]) + .scale(1070) + .translate([480, 250]) + .rotate([96, 0]) + .center([-0.6, 38.7]); + }, + wh = function() { + var t, + e, + n, + r, + i, + o, + a = xh(), + s = _h() + .rotate([154, 0]) + .center([-2, 58.5]) + .parallels([55, 65]), + u = _h() + .rotate([157, 0]) + .center([-3, 19.9]) + .parallels([8, 18]), + l = { + point: function(t, e) { + o = [t, e]; + } + }; + function c(t) { + var e = t[0], + a = t[1]; + return ( + (o = null), + n.point(e, a), + o || (r.point(e, a), o) || (i.point(e, a), o) + ); + } + function f() { + return (t = e = null), c; + } + return ( + (c.invert = function(t) { + var e = a.scale(), + n = a.translate(), + r = (t[0] - n[0]) / e, + i = (t[1] - n[1]) / e; + return (i >= 0.12 && + i < 0.234 && + r >= -0.425 && + r < -0.214 + ? s + : i >= 0.166 && i < 0.234 && r >= -0.214 && r < -0.115 + ? u + : a + ).invert(t); + }), + (c.stream = function(n) { + return t && e === n + ? t + : ((r = [a.stream((e = n)), s.stream(n), u.stream(n)]), + (i = r.length), + (t = { + point: function(t, e) { + for (var n = -1; ++n < i; ) r[n].point(t, e); + }, + sphere: function() { + for (var t = -1; ++t < i; ) r[t].sphere(); + }, + lineStart: function() { + for (var t = -1; ++t < i; ) r[t].lineStart(); + }, + lineEnd: function() { + for (var t = -1; ++t < i; ) r[t].lineEnd(); + }, + polygonStart: function() { + for (var t = -1; ++t < i; ) r[t].polygonStart(); + }, + polygonEnd: function() { + for (var t = -1; ++t < i; ) r[t].polygonEnd(); + } + })); + var r, i; + }), + (c.precision = function(t) { + return arguments.length + ? (a.precision(t), s.precision(t), u.precision(t), f()) + : a.precision(); + }), + (c.scale = function(t) { + return arguments.length + ? (a.scale(t), + s.scale(0.35 * t), + u.scale(t), + c.translate(a.translate())) + : a.scale(); + }), + (c.translate = function(t) { + if (!arguments.length) return a.translate(); + var e = a.scale(), + o = +t[0], + c = +t[1]; + return ( + (n = a + .translate(t) + .clipExtent([ + [o - 0.455 * e, c - 0.238 * e], + [o + 0.455 * e, c + 0.238 * e] + ]) + .stream(l)), + (r = s + .translate([o - 0.307 * e, c + 0.201 * e]) + .clipExtent([ + [o - 0.425 * e + ol, c + 0.12 * e + ol], + [o - 0.214 * e - ol, c + 0.234 * e - ol] + ]) + .stream(l)), + (i = u + .translate([o - 0.205 * e, c + 0.212 * e]) + .clipExtent([ + [o - 0.214 * e + ol, c + 0.166 * e + ol], + [o - 0.115 * e - ol, c + 0.234 * e - ol] + ]) + .stream(l)), + f() + ); + }), + (c.fitExtent = function(t, e) { + return ah(c, t, e); + }), + (c.fitSize = function(t, e) { + return sh(c, t, e); + }), + (c.fitWidth = function(t, e) { + return uh(c, t, e); + }), + (c.fitHeight = function(t, e) { + return lh(c, t, e); + }), + c.scale(1070) + ); + }; + function Sh(t) { + return function(e, n) { + var r = ml(e), + i = ml(n), + o = t(r * i); + return [o * i * xl(e), o * xl(n)]; + }; + } + function Eh(t) { + return function(e, n) { + var r = Sl(e * e + n * n), + i = t(r), + o = xl(i), + a = ml(i); + return [gl(e * o, r * a), Al(r && (n * o) / r)]; + }; + } + var kh = Sh(function(t) { + return Sl(2 / (1 + t)); + }); + kh.invert = Eh(function(t) { + return 2 * Al(t / 2); + }); + var Ah = function() { + return mh(kh) + .scale(124.75) + .clipAngle(179.999); + }, + Th = Sh(function(t) { + return (t = kl(t)) && t / xl(t); + }); + Th.invert = Eh(function(t) { + return t; + }); + var Ch = function() { + return mh(Th) + .scale(79.4188) + .clipAngle(179.999); + }; + function Oh(t, e) { + return [t, bl(El((ul + e) / 2))]; + } + Oh.invert = function(t, e) { + return [t, 2 * pl(yl(e)) - ul]; + }; + var Ph = function() { + return Mh(Oh).scale(961 / cl); + }; + function Mh(t) { + var e, n, - [this].concat(f) + r, + i = mh(t), + o = i.center, + a = i.scale, + s = i.translate, + u = i.clipExtent, + l = null; + function c() { + var o = sl * a(), + s = i(af(i.rotate()).invert([0, 0])); + return u( + null == l + ? [[s[0] - o, s[1] - o], [s[0] + o, s[1] + o]] + : t === Oh + ? [[Math.max(s[0] - o, l), e], [Math.min(s[0] + o, n), r]] + : [[l, Math.max(s[1] - o, e)], [n, Math.min(s[1] + o, r)]] + ); + } + return ( + (i.scale = function(t) { + return arguments.length ? (a(t), c()) : a(); + }), + (i.translate = function(t) { + return arguments.length ? (s(t), c()) : s(); + }), + (i.center = function(t) { + return arguments.length ? (o(t), c()) : o(); + }), + (i.clipExtent = function(t) { + return arguments.length + ? (null == t + ? (l = e = n = r = null) + : ((l = +t[0][0]), + (e = +t[0][1]), + (n = +t[1][0]), + (r = +t[1][1])), + c()) + : null == l + ? null + : [[l, e], [n, r]]; + }), + c() + ); + } + function Lh(t) { + return El((ul + t) / 2); + } + function jh(t, e) { + var n = ml(t), + r = t === e ? xl(t) : bl(n / ml(e)) / bl(Lh(e) / Lh(t)), + i = (n * _l(Lh(t), r)) / r; + if (!r) return Oh; + function o(t, e) { + i > 0 + ? e < -ul + ol && (e = -ul + ol) + : e > ul - ol && (e = ul - ol); + var n = i / _l(Lh(e), r); + return [n * xl(r * t), i - n * ml(r * t)]; + } + return ( + (o.invert = function(t, e) { + var n = i - e, + o = wl(r) * Sl(t * t + n * n); + return [ + (gl(t, hl(n)) / r) * wl(n), + 2 * pl(_l(i / o, 1 / r)) - ul + ]; + }), + o + ); + } + var Dh = function() { + return yh(jh) + .scale(109.5) + .parallels([30, 30]); + }; + function Rh(t, e) { + return [t, e]; + } + Rh.invert = Rh; + var zh = function() { + return mh(Rh).scale(152.63); + }; + function Nh(t, e) { + var n = ml(t), + r = t === e ? xl(t) : (n - ml(e)) / (e - t), + i = n / r + t; + if (hl(r) < ol) return Rh; + function o(t, e) { + var n = i - e, + o = r * t; + return [n * xl(o), i - n * ml(o)]; + } + return ( + (o.invert = function(t, e) { + var n = i - e; + return [ + (gl(t, hl(n)) / r) * wl(n), + i - wl(r) * Sl(t * t + n * n) + ]; + }), + o + ); + } + var Ih = function() { + return yh(Nh) + .scale(131.154) + .center([0, 13.9389]); + }, + Fh = 1.340264, + Vh = -0.081106, + Bh = 893e-6, + Gh = 0.003796, + Hh = Sl(3) / 2; + function Uh(t, e) { + var n = Al(Hh * xl(e)), + r = n * n, + i = r * r * r; + return [ + (t * ml(n)) / + (Hh * (Fh + 3 * Vh * r + i * (7 * Bh + 9 * Gh * r))), + n * (Fh + Vh * r + i * (Bh + Gh * r)) + ]; + } + Uh.invert = function(t, e) { + for ( + var n, r = e, i = r * r, o = i * i * i, a = 0; + a < 12 && + ((o = + (i = + (r -= n = + (r * (Fh + Vh * i + o * (Bh + Gh * i)) - e) / + (Fh + 3 * Vh * i + o * (7 * Bh + 9 * Gh * i))) * r) * + i * + i), + !(hl(n) < al)); + ++a + ); + return [ + (Hh * t * (Fh + 3 * Vh * i + o * (7 * Bh + 9 * Gh * i))) / + ml(r), + Al(xl(r) / Hh) + ]; + }; + var qh = function() { + return mh(Uh).scale(177.158); + }; + function Wh(t, e) { + var n = ml(e), + r = ml(t) * n; + return [(n * xl(t)) / r, xl(e) / r]; + } + Wh.invert = Eh(pl); + var Xh = function() { + return mh(Wh) + .scale(144.049) + .clipAngle(60); + }; + function Yh(t, e, n, r) { + return 1 === t && 1 === e && 0 === n && 0 === r + ? id + : rh({ + point: function(i, o) { + this.stream.point(i * t + n, o * e + r); + } + }); + } + var $h = function() { + var t, + e, + n, + r, + i, + o, + a = 1, + s = 0, + u = 0, + l = 1, + c = 1, + f = id, + d = null, + h = id; + function p() { + return (r = i = null), o; + } + return (o = { + stream: function(t) { + return r && i === t ? r : (r = f(h((i = t)))); + }, + postclip: function(r) { + return arguments.length + ? ((h = r), (d = t = e = n = null), p()) + : h; + }, + clipExtent: function(r) { + return arguments.length + ? ((h = + null == r + ? ((d = t = e = n = null), id) + : Af( + (d = +r[0][0]), + (t = +r[0][1]), + (e = +r[1][0]), + (n = +r[1][1]) + )), + p()) + : null == d + ? null + : [[d, t], [e, n]]; + }, + scale: function(t) { + return arguments.length + ? ((f = Yh((a = +t) * l, a * c, s, u)), p()) + : a; + }, + translate: function(t) { + return arguments.length + ? ((f = Yh(a * l, a * c, (s = +t[0]), (u = +t[1]))), p()) + : [s, u]; + }, + reflectX: function(t) { + return arguments.length + ? ((f = Yh(a * (l = t ? -1 : 1), a * c, s, u)), p()) + : l < 0; + }, + reflectY: function(t) { + return arguments.length + ? ((f = Yh(a * l, a * (c = t ? -1 : 1), s, u)), p()) + : c < 0; + }, + fitExtent: function(t, e) { + return ah(o, t, e); + }, + fitSize: function(t, e) { + return sh(o, t, e); + }, + fitWidth: function(t, e) { + return uh(o, t, e); + }, + fitHeight: function(t, e) { + return lh(o, t, e); + } + }); + }; + function Kh(t, e) { + var n = e * e, + r = n * n; + return [ + t * + (0.8707 - + 0.131979 * n + + r * (r * (0.003971 * n - 0.001529 * r) - 0.013791)), + e * + (1.007226 + + n * + (0.015085 + + r * (0.028874 * n - 0.044475 - 0.005916 * r))) + ]; + } + Kh.invert = function(t, e) { + var n, + r = e, + i = 25; + do { + var o = r * r, + a = o * o; + r -= n = + (r * + (1.007226 + + o * + (0.015085 + + a * (0.028874 * o - 0.044475 - 0.005916 * a))) - + e) / + (1.007226 + + o * + (0.045255 + + a * (0.259866 * o - 0.311325 - 0.005916 * 11 * a))); + } while (hl(n) > ol && --i > 0); + return [ + t / + (0.8707 + + (o = r * r) * + (o * + (o * o * o * (0.003971 - 0.001529 * o) - 0.013791) - + 0.131979)), + r + ]; + }; + var Qh = function() { + return mh(Kh).scale(175.295); + }; + function Zh(t, e) { + return [ml(e) * xl(t), xl(e)]; + } + Zh.invert = Eh(Al); + var Jh = function() { + return mh(Zh) + .scale(249.5) + .clipAngle(90 + ol); + }; + function tp(t, e) { + var n = ml(e), + r = 1 + ml(t) * n; + return [(n * xl(t)) / r, xl(e) / r]; + } + tp.invert = Eh(function(t) { + return 2 * pl(t); + }); + var ep = function() { + return mh(tp) + .scale(250) + .clipAngle(142); + }; + function np(t, e) { + return [bl(El((ul + e) / 2)), -t]; + } + np.invert = function(t, e) { + return [-e, 2 * pl(yl(t)) - ul]; + }; + var rp = function() { + var t = Mh(np), + e = t.center, + n = t.rotate; + return ( + (t.center = function(t) { + return arguments.length + ? e([-t[1], t[0]]) + : [(t = e())[1], -t[0]]; + }), + (t.rotate = function(t) { + return arguments.length + ? n([t[0], t[1], t.length > 2 ? t[2] + 90 : 90]) + : [(t = n())[0], t[1], t[2] - 90]; + }), + n([0, 0, 90]).scale(159.155) + ); + }; + function ip(t, e) { + return t.parent === e.parent ? 1 : 2; + } + function op(t, e) { + return t + e.x; + } + function ap(t, e) { + return Math.max(t, e.y); + } + var sp = function() { + var t = ip, + e = 1, + n = 1, + r = !1; + function i(i) { + var o, + a = 0; + i.eachAfter(function(e) { + var n = e.children; + n + ? ((e.x = (function(t) { + return t.reduce(op, 0) / t.length; + })(n)), + (e.y = (function(t) { + return 1 + t.reduce(ap, 0); + })(n))) + : ((e.x = o ? (a += t(e, o)) : 0), (e.y = 0), (o = e)); + }); + var s = (function(t) { + for (var e; (e = t.children); ) t = e[0]; + return t; + })(i), + u = (function(t) { + for (var e; (e = t.children); ) t = e[e.length - 1]; + return t; + })(i), + l = s.x - t(s, u) / 2, + c = u.x + t(u, s) / 2; + return i.eachAfter( + r + ? function(t) { + (t.x = (t.x - i.x) * e), (t.y = (i.y - t.y) * n); + } + : function(t) { + (t.x = ((t.x - l) / (c - l)) * e), + (t.y = (1 - (i.y ? t.y / i.y : 1)) * n); + } + ); + } + return ( + (i.separation = function(e) { + return arguments.length ? ((t = e), i) : t; + }), + (i.size = function(t) { + return arguments.length + ? ((r = !1), (e = +t[0]), (n = +t[1]), i) + : r + ? null + : [e, n]; + }), + (i.nodeSize = function(t) { + return arguments.length + ? ((r = !0), (e = +t[0]), (n = +t[1]), i) + : r + ? [e, n] + : null; + }), + i + ); + }; + function up(t) { + var e = 0, + n = t.children, + r = n && n.length; + if (r) for (; --r >= 0; ) e += n[r].value; + else e = 1; + t.value = e; + } + function lp(t, e) { + var n, + r, + i, + o, + a, + s = new hp(t), + u = +t.value && (s.value = t.value), + l = [s]; + for (null == e && (e = cp); (n = l.pop()); ) + if ( + (u && (n.value = +n.data.value), + (i = e(n.data)) && (a = i.length)) + ) + for (n.children = new Array(a), o = a - 1; o >= 0; --o) + l.push((r = n.children[o] = new hp(i[o]))), + (r.parent = n), + (r.depth = n.depth + 1); + return s.eachBefore(dp); + } + function cp(t) { + return t.children; + } + function fp(t) { + t.data = t.data.data; + } + function dp(t) { + var e = 0; + do { + t.height = e; + } while ((t = t.parent) && t.height < ++e); + } + function hp(t) { + (this.data = t), + (this.depth = this.height = 0), + (this.parent = null); + } + hp.prototype = lp.prototype = { + constructor: hp, + count: function() { + return this.eachAfter(up); + }, + each: function(t) { + var e, + n, + r, + i, + o = this, + a = [o]; + do { + for (e = a.reverse(), a = []; (o = e.pop()); ) + if ((t(o), (n = o.children))) + for (r = 0, i = n.length; r < i; ++r) a.push(n[r]); + } while (a.length); + return this; + }, + eachAfter: function(t) { + for (var e, n, r, i = this, o = [i], a = []; (i = o.pop()); ) + if ((a.push(i), (e = i.children))) + for (n = 0, r = e.length; n < r; ++n) o.push(e[n]); + for (; (i = a.pop()); ) t(i); + return this; + }, + eachBefore: function(t) { + for (var e, n, r = this, i = [r]; (r = i.pop()); ) + if ((t(r), (e = r.children))) + for (n = e.length - 1; n >= 0; --n) i.push(e[n]); + return this; + }, + sum: function(t) { + return this.eachAfter(function(e) { + for ( + var n = +t(e.data) || 0, + r = e.children, + i = r && r.length; + --i >= 0; + + ) + n += r[i].value; + e.value = n; + }); + }, + sort: function(t) { + return this.eachBefore(function(e) { + e.children && e.children.sort(t); + }); + }, + path: function(t) { + for ( + var e = this, + n = (function(t, e) { + if (t === e) return t; + var n = t.ancestors(), + r = e.ancestors(), + i = null; + for (t = n.pop(), e = r.pop(); t === e; ) + (i = t), (t = n.pop()), (e = r.pop()); + return i; + })(e, t), + r = [e]; + e !== n; + + ) + (e = e.parent), r.push(e); + for (var i = r.length; t !== n; ) + r.splice(i, 0, t), (t = t.parent); + return r; + }, + ancestors: function() { + for (var t = this, e = [t]; (t = t.parent); ) e.push(t); + return e; + }, + descendants: function() { + var t = []; + return ( + this.each(function(e) { + t.push(e); + }), + t + ); + }, + leaves: function() { + var t = []; + return ( + this.eachBefore(function(e) { + e.children || t.push(e); + }), + t + ); + }, + links: function() { + var t = this, + e = []; + return ( + t.each(function(n) { + n !== t && e.push({ source: n.parent, target: n }); + }), + e + ); + }, + copy: function() { + return lp(this).eachBefore(fp); + } + }; + var pp = Array.prototype.slice, + gp = function(t) { + for ( + var e, + n, + r = 0, + i = (t = (function(t) { + for (var e, n, r = t.length; r; ) + (n = (Math.random() * r--) | 0), + (e = t[r]), + (t[r] = t[n]), + (t[n] = e); + return t; + })(pp.call(t))).length, + o = []; + r < i; + + ) + (e = t[r]), + n && yp(n, e) ? ++r : ((n = _p((o = mp(o, e)))), (r = 0)); + return n; + }; + function mp(t, e) { + var n, r; + if (bp(e, t)) return [e]; + for (n = 0; n < t.length; ++n) + if (vp(e, t[n]) && bp(xp(t[n], e), t)) return [t[n], e]; + for (n = 0; n < t.length - 1; ++n) + for (r = n + 1; r < t.length; ++r) + if ( + vp(xp(t[n], t[r]), e) && + vp(xp(t[n], e), t[r]) && + vp(xp(t[r], e), t[n]) && + bp(wp(t[n], t[r], e), t) + ) + return [t[n], t[r], e]; + throw new Error(); + } + function vp(t, e) { + var n = t.r - e.r, + r = e.x - t.x, + i = e.y - t.y; + return n < 0 || n * n < r * r + i * i; + } + function yp(t, e) { + var n = t.r - e.r + 1e-6, + r = e.x - t.x, + i = e.y - t.y; + return n > 0 && n * n > r * r + i * i; + } + function bp(t, e) { + for (var n = 0; n < e.length; ++n) if (!yp(t, e[n])) return !1; + return !0; + } + function _p(t) { + switch (t.length) { + case 1: + return { x: (e = t[0]).x, y: e.y, r: e.r }; + case 2: + return xp(t[0], t[1]); + case 3: + return wp(t[0], t[1], t[2]); + } + var e; + } + function xp(t, e) { + var n = t.x, + r = t.y, + i = t.r, + o = e.x, + a = e.y, + s = e.r, + u = o - n, + l = a - r, + c = s - i, + f = Math.sqrt(u * u + l * l); + return { + x: (n + o + (u / f) * c) / 2, + y: (r + a + (l / f) * c) / 2, + r: (f + i + s) / 2 + }; + } + function wp(t, e, n) { + var r = t.x, + i = t.y, + o = t.r, + a = e.x, + s = e.y, + u = e.r, + l = n.x, + c = n.y, + f = n.r, + d = r - a, + h = r - l, + p = i - s, + g = i - c, + m = u - o, + v = f - o, + y = r * r + i * i - o * o, + b = y - a * a - s * s + u * u, + _ = y - l * l - c * c + f * f, + x = h * p - d * g, + w = (p * _ - g * b) / (2 * x) - r, + S = (g * m - p * v) / x, + E = (h * b - d * _) / (2 * x) - i, + k = (d * v - h * m) / x, + A = S * S + k * k - 1, + T = 2 * (o + w * S + E * k), + C = w * w + E * E - o * o, + O = -(A + ? (T + Math.sqrt(T * T - 4 * A * C)) / (2 * A) + : C / T); + return { x: r + w + S * O, y: i + E + k * O, r: O }; + } + function Sp(t, e, n) { + var r, + i, + o, + a, + s = t.x - e.x, + u = t.y - e.y, + l = s * s + u * u; + l + ? ((i = e.r + n.r), + (i *= i), + (a = t.r + n.r), + i > (a *= a) + ? ((r = (l + a - i) / (2 * l)), + (o = Math.sqrt(Math.max(0, a / l - r * r))), + (n.x = t.x - r * s - o * u), + (n.y = t.y - r * u + o * s)) + : ((r = (l + i - a) / (2 * l)), + (o = Math.sqrt(Math.max(0, i / l - r * r))), + (n.x = e.x + r * s - o * u), + (n.y = e.y + r * u + o * s))) + : ((n.x = e.x + n.r), (n.y = e.y)); + } + function Ep(t, e) { + var n = t.r + e.r - 1e-6, + r = e.x - t.x, + i = e.y - t.y; + return n > 0 && n * n > r * r + i * i; + } + function kp(t) { + var e = t._, + n = t.next._, + r = e.r + n.r, + i = (e.x * n.r + n.x * e.r) / r, + o = (e.y * n.r + n.y * e.r) / r; + return i * i + o * o; + } + function Ap(t) { + (this._ = t), (this.next = null), (this.previous = null); + } + function Tp(t) { + if (!(i = t.length)) return 0; + var e, n, r, i, o, a, s, u, l, c, f; + if ((((e = t[0]).x = 0), (e.y = 0), !(i > 1))) return e.r; + if ( + ((n = t[1]), (e.x = -n.r), (n.x = e.r), (n.y = 0), !(i > 2)) ) - )), - (l.state = { hover: !1 }), - (l.handleMouseOver = function() { - return l.setState({ hover: !0 }); - }), - (l.handleMouseOut = function() { - return l.setState({ hover: !1 }); - }), - (l.render = function() { - return a.default.createElement( - e, - { - onMouseOver: l.handleMouseOver, - onMouseOut: l.handleMouseOut - }, - a.default.createElement(t, i({}, l.props, l.state)) + return e.r + n.r; + Sp(n, e, (r = t[2])), + (e = new Ap(e)), + (n = new Ap(n)), + (r = new Ap(r)), + (e.next = r.previous = n), + (n.next = e.previous = r), + (r.next = n.previous = e); + t: for (s = 3; s < i; ++s) { + Sp(e._, n._, (r = t[s])), + (r = new Ap(r)), + (u = n.next), + (l = e.previous), + (c = n._.r), + (f = e._.r); + do { + if (c <= f) { + if (Ep(u._, r._)) { + (n = u), (e.next = n), (n.previous = e), --s; + continue t; + } + (c += u._.r), (u = u.next); + } else { + if (Ep(l._, r._)) { + ((e = l).next = n), (n.previous = e), --s; + continue t; + } + (f += l._.r), (l = l.previous); + } + } while (u !== l.next); + for ( + r.previous = e, + r.next = n, + e.next = n.previous = n = r, + o = kp(e); + (r = r.next) !== n; + + ) + (a = kp(r)) < o && ((e = r), (o = a)); + n = e.next; + } + for (e = [n._], r = n; (r = r.next) !== n; ) e.push(r._); + for (r = gp(e), s = 0; s < i; ++s) + ((e = t[s]).x -= r.x), (e.y -= r.y); + return r.r; + } + var Cp = function(t) { + return Tp(t), t; + }; + function Op(t) { + return null == t ? null : Pp(t); + } + function Pp(t) { + if ('function' != typeof t) throw new Error(); + return t; + } + function Mp() { + return 0; + } + var Lp = function(t) { + return function() { + return t; + }; + }; + function jp(t) { + return Math.sqrt(t.value); + } + var Dp = function() { + var t = null, + e = 1, + n = 1, + r = Mp; + function i(i) { + return ( + (i.x = e / 2), + (i.y = n / 2), + t + ? i + .eachBefore(Rp(t)) + .eachAfter(zp(r, 0.5)) + .eachBefore(Np(1)) + : i + .eachBefore(Rp(jp)) + .eachAfter(zp(Mp, 1)) + .eachAfter(zp(r, i.r / Math.min(e, n))) + .eachBefore(Np(Math.min(e, n) / (2 * i.r))), + i + ); + } + return ( + (i.radius = function(e) { + return arguments.length ? ((t = Op(e)), i) : t; + }), + (i.size = function(t) { + return arguments.length + ? ((e = +t[0]), (n = +t[1]), i) + : [e, n]; + }), + (i.padding = function(t) { + return arguments.length + ? ((r = 'function' == typeof t ? t : Lp(+t)), i) + : r; + }), + i ); - }), - u(l, o) - ); - } - return l(r, n), r; - })(a.default.Component); - }); - e.default = c; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.active = void 0); - var r, - i = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }, - o = n(0), - a = (r = o) && r.__esModule ? r : { default: r }; - function s(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - } - function u(t, e) { - if (!t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !e || ('object' != typeof e && 'function' != typeof e) ? t : e; - } - function l(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof e - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { - value: t, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - e && - (Object.setPrototypeOf - ? Object.setPrototypeOf(t, e) - : (t.__proto__ = e)); - } - var c = (e.active = function(t) { - var e = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : 'span'; - return (function(n) { - function r() { - var n, o, l; - s(this, r); - for (var c = arguments.length, f = Array(c), d = 0; d < c; d++) - f[d] = arguments[d]; - return ( - (o = l = u( - this, - (n = r.__proto__ || Object.getPrototypeOf(r)).call.apply( - n, - [this].concat(f) - ) - )), - (l.state = { active: !1 }), - (l.handleMouseDown = function() { - return l.setState({ active: !0 }); - }), - (l.handleMouseUp = function() { - return l.setState({ active: !1 }); - }), - (l.render = function() { - return a.default.createElement( + }; + function Rp(t) { + return function(e) { + e.children || (e.r = Math.max(0, +t(e) || 0)); + }; + } + function zp(t, e) { + return function(n) { + if ((r = n.children)) { + var r, + i, + o, + a = r.length, + s = t(n) * e || 0; + if (s) for (i = 0; i < a; ++i) r[i].r += s; + if (((o = Tp(r)), s)) for (i = 0; i < a; ++i) r[i].r -= s; + n.r = o + s; + } + }; + } + function Np(t) { + return function(e) { + var n = e.parent; + (e.r *= t), + n && ((e.x = n.x + t * e.x), (e.y = n.y + t * e.y)); + }; + } + var Ip = function(t) { + (t.x0 = Math.round(t.x0)), + (t.y0 = Math.round(t.y0)), + (t.x1 = Math.round(t.x1)), + (t.y1 = Math.round(t.y1)); + }, + Fp = function(t, e, n, r, i) { + for ( + var o, + a = t.children, + s = -1, + u = a.length, + l = t.value && (r - e) / t.value; + ++s < u; + + ) + ((o = a[s]).y0 = n), + (o.y1 = i), + (o.x0 = e), + (o.x1 = e += o.value * l); + }, + Vp = function() { + var t = 1, + e = 1, + n = 0, + r = !1; + function i(i) { + var o = i.height + 1; + return ( + (i.x0 = i.y0 = n), + (i.x1 = t), + (i.y1 = e / o), + i.eachBefore( + (function(t, e) { + return function(r) { + r.children && + Fp( + r, + r.x0, + (t * (r.depth + 1)) / e, + r.x1, + (t * (r.depth + 2)) / e + ); + var i = r.x0, + o = r.y0, + a = r.x1 - n, + s = r.y1 - n; + a < i && (i = a = (i + a) / 2), + s < o && (o = s = (o + s) / 2), + (r.x0 = i), + (r.y0 = o), + (r.x1 = a), + (r.y1 = s); + }; + })(e, o) + ), + r && i.eachBefore(Ip), + i + ); + } + return ( + (i.round = function(t) { + return arguments.length ? ((r = !!t), i) : r; + }), + (i.size = function(n) { + return arguments.length + ? ((t = +n[0]), (e = +n[1]), i) + : [t, e]; + }), + (i.padding = function(t) { + return arguments.length ? ((n = +t), i) : n; + }), + i + ); + }, + Bp = '$', + Gp = { depth: -1 }, + Hp = {}; + function Up(t) { + return t.id; + } + function qp(t) { + return t.parentId; + } + var Wp = function() { + var t = Up, + e = qp; + function n(n) { + var r, + i, + o, + a, + s, + u, + l, + c = n.length, + f = new Array(c), + d = {}; + for (i = 0; i < c; ++i) + (r = n[i]), + (s = f[i] = new hp(r)), + null != (u = t(r, i, n)) && + (u += '') && + (d[(l = Bp + (s.id = u))] = l in d ? Hp : s); + for (i = 0; i < c; ++i) + if ( + ((s = f[i]), null != (u = e(n[i], i, n)) && (u += '')) + ) { + if (!(a = d[Bp + u])) throw new Error('missing: ' + u); + if (a === Hp) throw new Error('ambiguous: ' + u); + a.children ? a.children.push(s) : (a.children = [s]), + (s.parent = a); + } else { + if (o) throw new Error('multiple roots'); + o = s; + } + if (!o) throw new Error('no root'); + if ( + ((o.parent = Gp), + o + .eachBefore(function(t) { + (t.depth = t.parent.depth + 1), --c; + }) + .eachBefore(dp), + (o.parent = null), + c > 0) + ) + throw new Error('cycle'); + return o; + } + return ( + (n.id = function(e) { + return arguments.length ? ((t = Pp(e)), n) : t; + }), + (n.parentId = function(t) { + return arguments.length ? ((e = Pp(t)), n) : e; + }), + n + ); + }; + function Xp(t, e) { + return t.parent === e.parent ? 1 : 2; + } + function Yp(t) { + var e = t.children; + return e ? e[0] : t.t; + } + function $p(t) { + var e = t.children; + return e ? e[e.length - 1] : t.t; + } + function Kp(t, e, n) { + var r = n / (e.i - t.i); + (e.c -= r), (e.s += n), (t.c += r), (e.z += n), (e.m += n); + } + function Qp(t, e, n) { + return t.a.parent === e.parent ? t.a : n; + } + function Zp(t, e) { + (this._ = t), + (this.parent = null), + (this.children = null), + (this.A = null), + (this.a = this), + (this.z = 0), + (this.m = 0), + (this.c = 0), + (this.s = 0), + (this.t = null), + (this.i = e); + } + Zp.prototype = Object.create(hp.prototype); + var Jp = function() { + var t = Xp, + e = 1, + n = 1, + r = null; + function i(i) { + var u = (function(t) { + for ( + var e, n, r, i, o, a = new Zp(t, 0), s = [a]; + (e = s.pop()); + + ) + if ((r = e._.children)) + for ( + e.children = new Array((o = r.length)), i = o - 1; + i >= 0; + --i + ) + s.push((n = e.children[i] = new Zp(r[i], i))), + (n.parent = e); + return ((a.parent = new Zp(null, 0)).children = [a]), a; + })(i); + if ( + (u.eachAfter(o), (u.parent.m = -u.z), u.eachBefore(a), r) + ) + i.eachBefore(s); + else { + var l = i, + c = i, + f = i; + i.eachBefore(function(t) { + t.x < l.x && (l = t), + t.x > c.x && (c = t), + t.depth > f.depth && (f = t); + }); + var d = l === c ? 1 : t(l, c) / 2, + h = d - l.x, + p = e / (c.x + d + h), + g = n / (f.depth || 1); + i.eachBefore(function(t) { + (t.x = (t.x + h) * p), (t.y = t.depth * g); + }); + } + return i; + } + function o(e) { + var n = e.children, + r = e.parent.children, + i = e.i ? r[e.i - 1] : null; + if (n) { + !(function(t) { + for ( + var e, n = 0, r = 0, i = t.children, o = i.length; + --o >= 0; + + ) + ((e = i[o]).z += n), + (e.m += n), + (n += e.s + (r += e.c)); + })(e); + var o = (n[0].z + n[n.length - 1].z) / 2; + i + ? ((e.z = i.z + t(e._, i._)), (e.m = e.z - o)) + : (e.z = o); + } else i && (e.z = i.z + t(e._, i._)); + e.parent.A = (function(e, n, r) { + if (n) { + for ( + var i, + o = e, + a = e, + s = n, + u = o.parent.children[0], + l = o.m, + c = a.m, + f = s.m, + d = u.m; + (s = $p(s)), (o = Yp(o)), s && o; + + ) + (u = Yp(u)), + ((a = $p(a)).a = e), + (i = s.z + f - o.z - l + t(s._, o._)) > 0 && + (Kp(Qp(s, e, r), e, i), (l += i), (c += i)), + (f += s.m), + (l += o.m), + (d += u.m), + (c += a.m); + s && !$p(a) && ((a.t = s), (a.m += f - c)), + o && !Yp(u) && ((u.t = o), (u.m += l - d), (r = e)); + } + return r; + })(e, i, e.parent.A || r[0]); + } + function a(t) { + (t._.x = t.z + t.parent.m), (t.m += t.parent.m); + } + function s(t) { + (t.x *= e), (t.y = t.depth * n); + } + return ( + (i.separation = function(e) { + return arguments.length ? ((t = e), i) : t; + }), + (i.size = function(t) { + return arguments.length + ? ((r = !1), (e = +t[0]), (n = +t[1]), i) + : r + ? null + : [e, n]; + }), + (i.nodeSize = function(t) { + return arguments.length + ? ((r = !0), (e = +t[0]), (n = +t[1]), i) + : r + ? [e, n] + : null; + }), + i + ); + }, + tg = function(t, e, n, r, i) { + for ( + var o, + a = t.children, + s = -1, + u = a.length, + l = t.value && (i - n) / t.value; + ++s < u; + + ) + ((o = a[s]).x0 = e), + (o.x1 = r), + (o.y0 = n), + (o.y1 = n += o.value * l); + }, + eg = (1 + Math.sqrt(5)) / 2; + function ng(t, e, n, r, i, o) { + for ( + var a, + s, + u, + l, + c, + f, + d, + h, + p, + g, + m, + v = [], + y = e.children, + b = 0, + _ = 0, + x = y.length, + w = e.value; + b < x; + + ) { + (u = i - n), (l = o - r); + do { + c = y[_++].value; + } while (!c && _ < x); + for ( + f = d = c, + m = c * c * (g = Math.max(l / u, u / l) / (w * t)), + p = Math.max(d / m, m / f); + _ < x; + ++_ + ) { + if ( + ((c += s = y[_].value), + s < f && (f = s), + s > d && (d = s), + (m = c * c * g), + (h = Math.max(d / m, m / f)) > p) + ) { + c -= s; + break; + } + p = h; + } + v.push( + (a = { value: c, dice: u < l, children: y.slice(b, _) }) + ), + a.dice + ? Fp(a, n, r, i, w ? (r += (l * c) / w) : o) + : tg(a, n, r, w ? (n += (u * c) / w) : i, o), + (w -= c), + (b = _); + } + return v; + } + var rg = (function t(e) { + function n(t, n, r, i, o) { + ng(e, t, n, r, i, o); + } + return ( + (n.ratio = function(e) { + return t((e = +e) > 1 ? e : 1); + }), + n + ); + })(eg), + ig = function() { + var t = rg, + e = !1, + n = 1, + r = 1, + i = [0], + o = Mp, + a = Mp, + s = Mp, + u = Mp, + l = Mp; + function c(t) { + return ( + (t.x0 = t.y0 = 0), + (t.x1 = n), + (t.y1 = r), + t.eachBefore(f), + (i = [0]), + e && t.eachBefore(Ip), + t + ); + } + function f(e) { + var n = i[e.depth], + r = e.x0 + n, + c = e.y0 + n, + f = e.x1 - n, + d = e.y1 - n; + f < r && (r = f = (r + f) / 2), + d < c && (c = d = (c + d) / 2), + (e.x0 = r), + (e.y0 = c), + (e.x1 = f), + (e.y1 = d), + e.children && + ((n = i[e.depth + 1] = o(e) / 2), + (r += l(e) - n), + (c += a(e) - n), + (f -= s(e) - n) < r && (r = f = (r + f) / 2), + (d -= u(e) - n) < c && (c = d = (c + d) / 2), + t(e, r, c, f, d)); + } + return ( + (c.round = function(t) { + return arguments.length ? ((e = !!t), c) : e; + }), + (c.size = function(t) { + return arguments.length + ? ((n = +t[0]), (r = +t[1]), c) + : [n, r]; + }), + (c.tile = function(e) { + return arguments.length ? ((t = Pp(e)), c) : t; + }), + (c.padding = function(t) { + return arguments.length + ? c.paddingInner(t).paddingOuter(t) + : c.paddingInner(); + }), + (c.paddingInner = function(t) { + return arguments.length + ? ((o = 'function' == typeof t ? t : Lp(+t)), c) + : o; + }), + (c.paddingOuter = function(t) { + return arguments.length + ? c + .paddingTop(t) + .paddingRight(t) + .paddingBottom(t) + .paddingLeft(t) + : c.paddingTop(); + }), + (c.paddingTop = function(t) { + return arguments.length + ? ((a = 'function' == typeof t ? t : Lp(+t)), c) + : a; + }), + (c.paddingRight = function(t) { + return arguments.length + ? ((s = 'function' == typeof t ? t : Lp(+t)), c) + : s; + }), + (c.paddingBottom = function(t) { + return arguments.length + ? ((u = 'function' == typeof t ? t : Lp(+t)), c) + : u; + }), + (c.paddingLeft = function(t) { + return arguments.length + ? ((l = 'function' == typeof t ? t : Lp(+t)), c) + : l; + }), + c + ); + }, + og = function(t, e, n, r, i) { + var o, + a, + s = t.children, + u = s.length, + l = new Array(u + 1); + for (l[0] = a = o = 0; o < u; ++o) l[o + 1] = a += s[o].value; + !(function t(e, n, r, i, o, a, u) { + if (e >= n - 1) { + var c = s[e]; + return ( + (c.x0 = i), (c.y0 = o), (c.x1 = a), void (c.y1 = u) + ); + } + for ( + var f = l[e], d = r / 2 + f, h = e + 1, p = n - 1; + h < p; + + ) { + var g = (h + p) >>> 1; + l[g] < d ? (h = g + 1) : (p = g); + } + d - l[h - 1] < l[h] - d && e + 1 < h && --h; + var m = l[h] - f, + v = r - m; + if (a - i > u - o) { + var y = (i * v + a * m) / r; + t(e, h, m, i, o, y, u), t(h, n, v, y, o, a, u); + } else { + var b = (o * v + u * m) / r; + t(e, h, m, i, o, a, b), t(h, n, v, i, b, a, u); + } + })(0, u, t.value, e, n, r, i); + }, + ag = function(t, e, n, r, i) { + (1 & t.depth ? tg : Fp)(t, e, n, r, i); + }, + sg = (function t(e) { + function n(t, n, r, i, o) { + if ((a = t._squarify) && a.ratio === e) + for ( + var a, s, u, l, c, f = -1, d = a.length, h = t.value; + ++f < d; + + ) { + for ( + u = (s = a[f]).children, + l = s.value = 0, + c = u.length; + l < c; + ++l + ) + s.value += u[l].value; + s.dice + ? Fp(s, n, r, i, (r += ((o - r) * s.value) / h)) + : tg(s, n, r, (n += ((i - n) * s.value) / h), o), + (h -= s.value); + } + else + (t._squarify = a = ng(e, t, n, r, i, o)), (a.ratio = e); + } + return ( + (n.ratio = function(e) { + return t((e = +e) > 1 ? e : 1); + }), + n + ); + })(eg), + ug = function(t) { + for ( + var e, n = -1, r = t.length, i = t[r - 1], o = 0; + ++n < r; + + ) + (e = i), (i = t[n]), (o += e[1] * i[0] - e[0] * i[1]); + return o / 2; + }, + lg = function(t) { + for ( + var e, + n, + r = -1, + i = t.length, + o = 0, + a = 0, + s = t[i - 1], + u = 0; + ++r < i; + + ) + (e = s), + (s = t[r]), + (u += n = e[0] * s[1] - s[0] * e[1]), + (o += (e[0] + s[0]) * n), + (a += (e[1] + s[1]) * n); + return [o / (u *= 3), a / u]; + }, + cg = function(t, e, n) { + return ( + (e[0] - t[0]) * (n[1] - t[1]) - + (e[1] - t[1]) * (n[0] - t[0]) + ); + }; + function fg(t, e) { + return t[0] - e[0] || t[1] - e[1]; + } + function dg(t) { + for (var e = t.length, n = [0, 1], r = 2, i = 2; i < e; ++i) { + for (; r > 1 && cg(t[n[r - 2]], t[n[r - 1]], t[i]) <= 0; ) + --r; + n[r++] = i; + } + return n.slice(0, r); + } + var hg = function(t) { + if ((n = t.length) < 3) return null; + var e, + n, + r = new Array(n), + i = new Array(n); + for (e = 0; e < n; ++e) r[e] = [+t[e][0], +t[e][1], e]; + for (r.sort(fg), e = 0; e < n; ++e) + i[e] = [r[e][0], -r[e][1]]; + var o = dg(r), + a = dg(i), + s = a[0] === o[0], + u = a[a.length - 1] === o[o.length - 1], + l = []; + for (e = o.length - 1; e >= 0; --e) l.push(t[r[o[e]][2]]); + for (e = +s; e < a.length - u; ++e) l.push(t[r[a[e]][2]]); + return l; + }, + pg = function(t, e) { + for ( + var n, + r, + i = t.length, + o = t[i - 1], + a = e[0], + s = e[1], + u = o[0], + l = o[1], + c = !1, + f = 0; + f < i; + ++f + ) + (n = (o = t[f])[0]), + (r = o[1]) > s != l > s && + a < ((u - n) * (s - r)) / (l - r) + n && + (c = !c), + (u = n), + (l = r); + return c; + }, + gg = function(t) { + for ( + var e, + n, + r = -1, + i = t.length, + o = t[i - 1], + a = o[0], + s = o[1], + u = 0; + ++r < i; + + ) + (e = a), + (n = s), + (e -= a = (o = t[r])[0]), + (n -= s = o[1]), + (u += Math.sqrt(e * e + n * n)); + return u; + }, + mg = function() { + return Math.random(); + }, + vg = (function t(e) { + function n(t, n) { + return ( + (t = null == t ? 0 : +t), + (n = null == n ? 1 : +n), + 1 === arguments.length ? ((n = t), (t = 0)) : (n -= t), + function() { + return e() * n + t; + } + ); + } + return (n.source = t), n; + })(mg), + yg = (function t(e) { + function n(t, n) { + var r, i; + return ( + (t = null == t ? 0 : +t), + (n = null == n ? 1 : +n), + function() { + var o; + if (null != r) (o = r), (r = null); + else + do { + (r = 2 * e() - 1), + (o = 2 * e() - 1), + (i = r * r + o * o); + } while (!i || i > 1); + return t + n * o * Math.sqrt((-2 * Math.log(i)) / i); + } + ); + } + return (n.source = t), n; + })(mg), + bg = (function t(e) { + function n() { + var t = yg.source(e).apply(this, arguments); + return function() { + return Math.exp(t()); + }; + } + return (n.source = t), n; + })(mg), + _g = (function t(e) { + function n(t) { + return function() { + for (var n = 0, r = 0; r < t; ++r) n += e(); + return n; + }; + } + return (n.source = t), n; + })(mg), + xg = (function t(e) { + function n(t) { + var n = _g.source(e)(t); + return function() { + return n() / t; + }; + } + return (n.source = t), n; + })(mg), + wg = (function t(e) { + function n(t) { + return function() { + return -Math.log(1 - e()) / t; + }; + } + return (n.source = t), n; + })(mg); + function Sg(t, e) { + switch (arguments.length) { + case 0: + break; + case 1: + this.range(t); + break; + default: + this.range(e).domain(t); + } + return this; + } + function Eg(t, e) { + switch (arguments.length) { + case 0: + break; + case 1: + this.interpolator(t); + break; + default: + this.interpolator(e).domain(t); + } + return this; + } + var kg = Array.prototype, + Ag = kg.map, + Tg = kg.slice, + Cg = { name: 'implicit' }; + function Og() { + var t = Ya(), + e = [], + n = [], + r = Cg; + function i(i) { + var o = i + '', + a = t.get(o); + if (!a) { + if (r !== Cg) return r; + t.set(o, (a = e.push(i))); + } + return n[(a - 1) % n.length]; + } + return ( + (i.domain = function(n) { + if (!arguments.length) return e.slice(); + (e = []), (t = Ya()); + for (var r, o, a = -1, s = n.length; ++a < s; ) + t.has((o = (r = n[a]) + '')) || t.set(o, e.push(r)); + return i; + }), + (i.range = function(t) { + return arguments.length ? ((n = Tg.call(t)), i) : n.slice(); + }), + (i.unknown = function(t) { + return arguments.length ? ((r = t), i) : r; + }), + (i.copy = function() { + return Og(e, n).unknown(r); + }), + Sg.apply(i, arguments), + i + ); + } + function Pg() { + var t, e, - { - onMouseDown: l.handleMouseDown, - onMouseUp: l.handleMouseUp - }, - a.default.createElement(t, i({}, l.props, l.state)) + n = Og().unknown(void 0), + r = n.domain, + i = n.range, + o = [0, 1], + a = !1, + s = 0, + u = 0, + l = 0.5; + function c() { + var n = r().length, + c = o[1] < o[0], + f = o[c - 0], + d = o[1 - c]; + (t = (d - f) / Math.max(1, n - s + 2 * u)), + a && (t = Math.floor(t)), + (f += (d - f - t * (n - s)) * l), + (e = t * (1 - s)), + a && ((f = Math.round(f)), (e = Math.round(e))); + var h = w(n).map(function(e) { + return f + t * e; + }); + return i(c ? h.reverse() : h); + } + return ( + delete n.unknown, + (n.domain = function(t) { + return arguments.length ? (r(t), c()) : r(); + }), + (n.range = function(t) { + return arguments.length + ? ((o = [+t[0], +t[1]]), c()) + : o.slice(); + }), + (n.rangeRound = function(t) { + return (o = [+t[0], +t[1]]), (a = !0), c(); + }), + (n.bandwidth = function() { + return e; + }), + (n.step = function() { + return t; + }), + (n.round = function(t) { + return arguments.length ? ((a = !!t), c()) : a; + }), + (n.padding = function(t) { + return arguments.length + ? ((s = Math.min(1, (u = +t))), c()) + : s; + }), + (n.paddingInner = function(t) { + return arguments.length ? ((s = Math.min(1, t)), c()) : s; + }), + (n.paddingOuter = function(t) { + return arguments.length ? ((u = +t), c()) : u; + }), + (n.align = function(t) { + return arguments.length + ? ((l = Math.max(0, Math.min(1, t))), c()) + : l; + }), + (n.copy = function() { + return Pg(r(), o) + .round(a) + .paddingInner(s) + .paddingOuter(u) + .align(l); + }), + Sg.apply(c(), arguments) ); - }), - u(l, o) - ); - } - return l(r, n), r; - })(a.default.Component); - }); - e.default = c; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - e.default = function(t, e) { - var n = {}, - r = function(t) { - var e = - !(arguments.length > 1 && void 0 !== arguments[1]) || - arguments[1]; - n[t] = e; - }; - return ( - 0 === t && r('first-child'), - t === e - 1 && r('last-child'), - (0 === t || t % 2 == 0) && r('even'), - 1 === Math.abs(t % 2) && r('odd'), - r('nth-child', t), - n - ); - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), (e.Alpha = void 0); - var r = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }, - i = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - o = n(0), - a = c(o), - s = c(n(2)), - u = (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]); - return (e.default = t), e; - })(n(361)), - l = c(n(81)); - function c(t) { - return t && t.__esModule ? t : { default: t }; - } - function f(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - } - function d(t, e) { - if (!t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !e || ('object' != typeof e && 'function' != typeof e) ? t : e; - } - var h = (e.Alpha = (function(t) { - function e() { - var t, n, r; - f(this, e); - for (var i = arguments.length, o = Array(i), a = 0; a < i; a++) - o[a] = arguments[a]; - return ( - (n = r = d( - this, - (t = e.__proto__ || Object.getPrototypeOf(e)).call.apply( - t, - [this].concat(o) - ) - )), - (r.handleChange = function(t) { - var e = u.calculateChange( - t, - r.props.hsl, - r.props.direction, - r.props.a, - r.container - ); - e && - 'function' == typeof r.props.onChange && - r.props.onChange(e, t); - }), - (r.handleMouseDown = function(t) { - r.handleChange(t), - window.addEventListener('mousemove', r.handleChange), - window.addEventListener('mouseup', r.handleMouseUp); - }), - (r.handleMouseUp = function() { - r.unbindEventListeners(); - }), - (r.unbindEventListeners = function() { - window.removeEventListener('mousemove', r.handleChange), - window.removeEventListener('mouseup', r.handleMouseUp); - }), - d(r, n) - ); - } - return ( - (function(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof e - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { - value: t, - enumerable: !1, - writable: !0, - configurable: !0 } - })), - e && - (Object.setPrototypeOf - ? Object.setPrototypeOf(t, e) - : (t.__proto__ = e)); - })(e, t), - i(e, [ - { - key: 'componentWillUnmount', - value: function() { - this.unbindEventListeners(); + function Mg() { + return (function t(e) { + var n = e.copy; + return ( + (e.padding = e.paddingOuter), + delete e.paddingInner, + delete e.paddingOuter, + (e.copy = function() { + return t(n()); + }), + e + ); + })(Pg.apply(null, arguments).paddingInner(1)); } - }, - { - key: 'render', - value: function() { - var t = this, - e = this.props.rgb, - n = (0, s.default)( - { - default: { - alpha: { - absolute: '0px 0px 0px 0px', - borderRadius: this.props.radius - }, - checkboard: { - absolute: '0px 0px 0px 0px', - overflow: 'hidden', - borderRadius: this.props.radius - }, - gradient: { - absolute: '0px 0px 0px 0px', - background: - 'linear-gradient(to right, rgba(' + - e.r + - ',' + - e.g + - ',' + - e.b + - ', 0) 0%,\n rgba(' + - e.r + - ',' + - e.g + - ',' + - e.b + - ', 1) 100%)', - boxShadow: this.props.shadow, - borderRadius: this.props.radius - }, - container: { - position: 'relative', - height: '100%', - margin: '0 3px' - }, - pointer: { - position: 'absolute', - left: 100 * e.a + '%' - }, - slider: { - width: '4px', - borderRadius: '1px', - height: '8px', - boxShadow: '0 0 2px rgba(0, 0, 0, .6)', - background: '#fff', - marginTop: '1px', - transform: 'translateX(-2px)' - } - }, - vertical: { - gradient: { - background: - 'linear-gradient(to bottom, rgba(' + - e.r + - ',' + - e.g + - ',' + - e.b + - ', 0) 0%,\n rgba(' + - e.r + - ',' + - e.g + - ',' + - e.b + - ', 1) 100%)' - }, - pointer: { left: 0, top: 100 * e.a + '%' } - }, - overwrite: r({}, this.props.style) - }, - { - vertical: 'vertical' === this.props.direction, - overwrite: !0 + var Lg = function(t) { + return function() { + return t; + }; + }, + jg = function(t) { + return +t; + }, + Dg = [0, 1]; + function Rg(t) { + return t; + } + function zg(t, e) { + return (e -= t = +t) + ? function(n) { + return (n - t) / e; } + : Lg(isNaN(e) ? NaN : 0.5); + } + function Ng(t) { + var e, + n = t[0], + r = t[t.length - 1]; + return ( + n > r && ((e = n), (n = r), (r = e)), + function(t) { + return Math.max(n, Math.min(r, t)); + } + ); + } + function Ig(t, e, n) { + var r = t[0], + i = t[1], + o = e[0], + a = e[1]; + return ( + i < r + ? ((r = zg(i, r)), (o = n(a, o))) + : ((r = zg(r, i)), (o = n(o, a))), + function(t) { + return o(r(t)); + } + ); + } + function Fg(t, e, n) { + var r = Math.min(t.length, e.length) - 1, + i = new Array(r), + o = new Array(r), + a = -1; + for ( + t[r] < t[0] && + ((t = t.slice().reverse()), (e = e.slice().reverse())); + ++a < r; + + ) + (i[a] = zg(t[a], t[a + 1])), (o[a] = n(e[a], e[a + 1])); + return function(e) { + var n = u(t, e, 1, r) - 1; + return o[n](i[n](e)); + }; + } + function Vg(t, e) { + return e + .domain(t.domain()) + .range(t.range()) + .interpolate(t.interpolate()) + .clamp(t.clamp()) + .unknown(t.unknown()); + } + function Bg() { + var t, + e, + n, + r, + i, + o, + a = Dg, + s = Dg, + u = Kn, + l = Rg; + function c() { + return ( + (r = Math.min(a.length, s.length) > 2 ? Fg : Ig), + (i = o = null), + f ); - return a.default.createElement( - 'div', - { style: n.alpha }, - a.default.createElement( - 'div', - { style: n.checkboard }, - a.default.createElement(l.default, { - renderers: this.props.renderers - }) - ), - a.default.createElement('div', { style: n.gradient }), - a.default.createElement( - 'div', - { - style: n.container, - ref: function(e) { - return (t.container = e); - }, - onMouseDown: this.handleMouseDown, - onTouchMove: this.handleChange, - onTouchStart: this.handleChange - }, - a.default.createElement( - 'div', - { style: n.pointer }, - this.props.pointer - ? a.default.createElement( - this.props.pointer, - this.props - ) - : a.default.createElement('div', { style: n.slider }) - ) - ) + } + function f(e) { + return isNaN((e = +e)) + ? n + : (i || (i = r(a.map(t), s, u)))(t(l(e))); + } + return ( + (f.invert = function(n) { + return l(e((o || (o = r(s, a.map(t), qn)))(n))); + }), + (f.domain = function(t) { + return arguments.length + ? ((a = Ag.call(t, jg)), l === Rg || (l = Ng(a)), c()) + : a.slice(); + }), + (f.range = function(t) { + return arguments.length + ? ((s = Tg.call(t)), c()) + : s.slice(); + }), + (f.rangeRound = function(t) { + return (s = Tg.call(t)), (u = Jn), c(); + }), + (f.clamp = function(t) { + return arguments.length + ? ((l = t ? Ng(a) : Rg), f) + : l !== Rg; + }), + (f.interpolate = function(t) { + return arguments.length ? ((u = t), c()) : u; + }), + (f.unknown = function(t) { + return arguments.length ? ((n = t), f) : n; + }), + function(n, r) { + return (t = n), (e = r), c(); + } + ); + } + function Gg(t, e) { + return Bg()(t, e); + } + var Hg = function(t, e, n, r) { + var i, + o = C(t, e, n); + switch ((r = Iu(null == r ? ',f' : r)).type) { + case 's': + var a = Math.max(Math.abs(t), Math.abs(e)); + return ( + null != r.precision || + isNaN((i = Ju(o, a))) || + (r.precision = i), + Hu(r, a) + ); + case '': + case 'e': + case 'g': + case 'p': + case 'r': + null != r.precision || + isNaN((i = tl(o, Math.max(Math.abs(t), Math.abs(e))))) || + (r.precision = i - ('e' === r.type)); + break; + case 'f': + case '%': + null != r.precision || + isNaN((i = Zu(o))) || + (r.precision = i - 2 * ('%' === r.type)); + } + return Gu(r); + }; + function Ug(t) { + var e = t.domain; + return ( + (t.ticks = function(t) { + var n = e(); + return A(n[0], n[n.length - 1], null == t ? 10 : t); + }), + (t.tickFormat = function(t, n) { + var r = e(); + return Hg(r[0], r[r.length - 1], null == t ? 10 : t, n); + }), + (t.nice = function(n) { + null == n && (n = 10); + var r, + i = e(), + o = 0, + a = i.length - 1, + s = i[o], + u = i[a]; + return ( + u < s && + ((r = s), (s = u), (u = r), (r = o), (o = a), (a = r)), + (r = T(s, u, n)) > 0 + ? (r = T( + (s = Math.floor(s / r) * r), + (u = Math.ceil(u / r) * r), + n + )) + : r < 0 && + (r = T( + (s = Math.ceil(s * r) / r), + (u = Math.floor(u * r) / r), + n + )), + r > 0 + ? ((i[o] = Math.floor(s / r) * r), + (i[a] = Math.ceil(u / r) * r), + e(i)) + : r < 0 && + ((i[o] = Math.ceil(s * r) / r), + (i[a] = Math.floor(u * r) / r), + e(i)), + t + ); + }), + t + ); + } + function qg() { + var t = Gg(Rg, Rg); + return ( + (t.copy = function() { + return Vg(t, qg()); + }), + Sg.apply(t, arguments), + Ug(t) ); } - } - ]), - e - ); - })(o.PureComponent || o.Component)); - e.default = h; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - e.calculateChange = function(t, e, n, r, i) { - var o = i.clientWidth, - a = i.clientHeight, - s = 'number' == typeof t.pageX ? t.pageX : t.touches[0].pageX, - u = 'number' == typeof t.pageY ? t.pageY : t.touches[0].pageY, - l = s - (i.getBoundingClientRect().left + window.pageXOffset), - c = u - (i.getBoundingClientRect().top + window.pageYOffset); - if ('vertical' === n) { - var f = void 0; - if ( - ((f = c < 0 ? 0 : c > a ? 1 : Math.round((100 * c) / a) / 100), - e.a !== f) - ) - return { h: e.h, s: e.s, l: e.l, a: f, source: 'rgb' }; - } else { - var d = void 0; - if ( - r !== (d = l < 0 ? 0 : l > o ? 1 : Math.round((100 * l) / o) / 100) - ) - return { h: e.h, s: e.s, l: e.l, a: d, source: 'rgb' }; - } - return null; - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r = {}, - i = (e.render = function(t, e, n, r) { - if ('undefined' == typeof document && !r) return null; - var i = r ? new r() : document.createElement('canvas'); - (i.width = 2 * n), (i.height = 2 * n); - var o = i.getContext('2d'); - return o - ? ((o.fillStyle = t), - o.fillRect(0, 0, i.width, i.height), - (o.fillStyle = e), - o.fillRect(0, 0, n, n), - o.translate(n, n), - o.fillRect(0, 0, n, n), - i.toDataURL()) - : null; - }); - e.get = function(t, e, n, o) { - var a = t + '-' + e + '-' + n + (o ? '-server' : ''); - if (r[a]) return r[a]; - var s = i(t, e, n, o); - return (r[a] = s), s; - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.EditableInput = void 0); - var r = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - i = n(0), - o = s(i), - a = s(n(2)); - function s(t) { - return t && t.__esModule ? t : { default: t }; - } - var u = [38, 40], - l = (e.EditableInput = (function(t) { - function e(t) { - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - })(this, e); - var n = (function(t, e) { - if (!t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" + function Wg(t) { + var e; + function n(t) { + return isNaN((t = +t)) ? e : t; + } + return ( + (n.invert = n), + (n.domain = n.range = function(e) { + return arguments.length + ? ((t = Ag.call(e, jg)), n) + : t.slice(); + }), + (n.unknown = function(t) { + return arguments.length ? ((e = t), n) : e; + }), + (n.copy = function() { + return Wg(t).unknown(e); + }), + (t = arguments.length ? Ag.call(t, jg) : [0, 1]), + Ug(n) ); - return !e || ('object' != typeof e && 'function' != typeof e) - ? t - : e; - })(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this)); - return ( - (n.handleBlur = function() { - n.state.blurValue && - n.setState({ value: n.state.blurValue, blurValue: null }); - }), - (n.handleChange = function(t) { - n.setUpdatedValue(t.target.value, t); - }), - (n.handleKeyDown = function(t) { + } + var Xg = function(t, e) { + var n, + r = 0, + i = (t = t.slice()).length - 1, + o = t[r], + a = t[i]; + return ( + a < o && + ((n = r), (r = i), (i = n), (n = o), (o = a), (a = n)), + (t[r] = e.floor(o)), + (t[i] = e.ceil(a)), + t + ); + }; + function Yg(t) { + return Math.log(t); + } + function $g(t) { + return Math.exp(t); + } + function Kg(t) { + return -Math.log(-t); + } + function Qg(t) { + return -Math.exp(-t); + } + function Zg(t) { + return isFinite(t) ? +('1e' + t) : t < 0 ? 0 : t; + } + function Jg(t) { + return function(e) { + return -t(-e); + }; + } + function tm(t) { var e, - r = (function(t) { - return Number(String(t).replace(/%/g, '')); - })(t.target.value); - if (!isNaN(r) && ((e = t.keyCode), u.indexOf(e) > -1)) { - var i = n.getArrowOffset(), - o = 38 === t.keyCode ? r + i : r - i; - n.setUpdatedValue(o, t); + n, + r = t(Yg, $g), + i = r.domain, + o = 10; + function a() { + return ( + (e = (function(t) { + return t === Math.E + ? Math.log + : (10 === t && Math.log10) || + (2 === t && Math.log2) || + ((t = Math.log(t)), + function(e) { + return Math.log(e) / t; + }); + })(o)), + (n = (function(t) { + return 10 === t + ? Zg + : t === Math.E + ? Math.exp + : function(e) { + return Math.pow(t, e); + }; + })(o)), + i()[0] < 0 + ? ((e = Jg(e)), (n = Jg(n)), t(Kg, Qg)) + : t(Yg, $g), + r + ); } - }), - (n.handleDrag = function(t) { - if (n.props.dragLabel) { - var e = Math.round(n.props.value + t.movementX); - e >= 0 && - e <= n.props.dragMax && - n.props.onChange && - n.props.onChange(n.getValueObjectWithLabel(e), t); + return ( + (r.base = function(t) { + return arguments.length ? ((o = +t), a()) : o; + }), + (r.domain = function(t) { + return arguments.length ? (i(t), a()) : i(); + }), + (r.ticks = function(t) { + var r, + a = i(), + s = a[0], + u = a[a.length - 1]; + (r = u < s) && ((d = s), (s = u), (u = d)); + var l, + c, + f, + d = e(s), + h = e(u), + p = null == t ? 10 : +t, + g = []; + if (!(o % 1) && h - d < p) { + if ( + ((d = Math.round(d) - 1), + (h = Math.round(h) + 1), + s > 0) + ) { + for (; d < h; ++d) + for (c = 1, l = n(d); c < o; ++c) + if (!((f = l * c) < s)) { + if (f > u) break; + g.push(f); + } + } else + for (; d < h; ++d) + for (c = o - 1, l = n(d); c >= 1; --c) + if (!((f = l * c) < s)) { + if (f > u) break; + g.push(f); + } + } else g = A(d, h, Math.min(h - d, p)).map(n); + return r ? g.reverse() : g; + }), + (r.tickFormat = function(t, i) { + if ( + (null == i && (i = 10 === o ? '.0e' : ','), + 'function' != typeof i && (i = Gu(i)), + t === 1 / 0) + ) + return i; + null == t && (t = 10); + var a = Math.max(1, (o * t) / r.ticks().length); + return function(t) { + var r = t / n(Math.round(e(t))); + return r * o < o - 0.5 && (r *= o), r <= a ? i(t) : ''; + }; + }), + (r.nice = function() { + return i( + Xg(i(), { + floor: function(t) { + return n(Math.floor(e(t))); + }, + ceil: function(t) { + return n(Math.ceil(e(t))); + } + }) + ); + }), + r + ); + } + function em() { + var t = tm(Bg()).domain([1, 10]); + return ( + (t.copy = function() { + return Vg(t, em()).base(t.base()); + }), + Sg.apply(t, arguments), + t + ); + } + function nm(t) { + return function(e) { + return Math.sign(e) * Math.log1p(Math.abs(e / t)); + }; + } + function rm(t) { + return function(e) { + return Math.sign(e) * Math.expm1(Math.abs(e)) * t; + }; + } + function im(t) { + var e = 1, + n = t(nm(e), rm(e)); + return ( + (n.constant = function(n) { + return arguments.length ? t(nm((e = +n)), rm(e)) : e; + }), + Ug(n) + ); + } + function om() { + var t = im(Bg()); + return ( + (t.copy = function() { + return Vg(t, om()).constant(t.constant()); + }), + Sg.apply(t, arguments) + ); + } + function am(t) { + return function(e) { + return e < 0 ? -Math.pow(-e, t) : Math.pow(e, t); + }; + } + function sm(t) { + return t < 0 ? -Math.sqrt(-t) : Math.sqrt(t); + } + function um(t) { + return t < 0 ? -t * t : t * t; + } + function lm(t) { + var e = t(Rg, Rg), + n = 1; + function r() { + return 1 === n + ? t(Rg, Rg) + : 0.5 === n + ? t(sm, um) + : t(am(n), am(1 / n)); } - }), - (n.handleMouseDown = function(t) { - n.props.dragLabel && - (t.preventDefault(), - n.handleDrag(t), - window.addEventListener('mousemove', n.handleDrag), - window.addEventListener('mouseup', n.handleMouseUp)); - }), - (n.handleMouseUp = function() { - n.unbindEventListeners(); - }), - (n.unbindEventListeners = function() { - window.removeEventListener('mousemove', n.handleDrag), - window.removeEventListener('mouseup', n.handleMouseUp); - }), - (n.state = { - value: String(t.value).toUpperCase(), - blurValue: String(t.value).toUpperCase() - }), - n - ); - } - return ( - (function(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof e + return ( + (e.exponent = function(t) { + return arguments.length ? ((n = +t), r()) : n; + }), + Ug(e) ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { - value: t, - enumerable: !1, - writable: !0, - configurable: !0 + } + function cm() { + var t = lm(Bg()); + return ( + (t.copy = function() { + return Vg(t, cm()).exponent(t.exponent()); + }), + Sg.apply(t, arguments), + t + ); + } + function fm() { + return cm.apply(null, arguments).exponent(0.5); + } + function dm() { + var t, + e = [], + n = [], + i = []; + function o() { + var t = 0, + r = Math.max(1, n.length); + for (i = new Array(r - 1); ++t < r; ) i[t - 1] = M(e, t / r); + return a; } - })), - e && - (Object.setPrototypeOf - ? Object.setPrototypeOf(t, e) - : (t.__proto__ = e)); - })(e, t), - r(e, [ - { - key: 'componentDidUpdate', - value: function(t, e) { - this.props.value === this.state.value || - (t.value === this.props.value && - e.value === this.state.value) || - (this.input === document.activeElement - ? this.setState({ - blurValue: String(this.props.value).toUpperCase() - }) - : this.setState({ - value: String(this.props.value).toUpperCase(), - blurValue: - !this.state.blurValue && - String(this.props.value).toUpperCase() - })); + function a(e) { + return isNaN((e = +e)) ? t : n[u(i, e)]; } - }, - { - key: 'componentWillUnmount', - value: function() { - this.unbindEventListeners(); + return ( + (a.invertExtent = function(t) { + var r = n.indexOf(t); + return r < 0 + ? [NaN, NaN] + : [ + r > 0 ? i[r - 1] : e[0], + r < i.length ? i[r] : e[e.length - 1] + ]; + }), + (a.domain = function(t) { + if (!arguments.length) return e.slice(); + e = []; + for (var n, i = 0, a = t.length; i < a; ++i) + null == (n = t[i]) || isNaN((n = +n)) || e.push(n); + return e.sort(r), o(); + }), + (a.range = function(t) { + return arguments.length + ? ((n = Tg.call(t)), o()) + : n.slice(); + }), + (a.unknown = function(e) { + return arguments.length ? ((t = e), a) : t; + }), + (a.quantiles = function() { + return i.slice(); + }), + (a.copy = function() { + return dm() + .domain(e) + .range(n) + .unknown(t); + }), + Sg.apply(a, arguments) + ); + } + function hm() { + var t, + e = 0, + n = 1, + r = 1, + i = [0.5], + o = [0, 1]; + function a(e) { + return e <= e ? o[u(i, e, 0, r)] : t; } - }, - { - key: 'getValueObjectWithLabel', - value: function(t) { - return (function(t, e, n) { - return ( - e in t - ? Object.defineProperty(t, e, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (t[e] = n), - t - ); - })({}, this.props.label, t); + function s() { + var t = -1; + for (i = new Array(r); ++t < r; ) + i[t] = ((t + 1) * n - (t - r) * e) / (r + 1); + return a; } - }, - { - key: 'getArrowOffset', - value: function() { - return this.props.arrowOffset || 1; + return ( + (a.domain = function(t) { + return arguments.length + ? ((e = +t[0]), (n = +t[1]), s()) + : [e, n]; + }), + (a.range = function(t) { + return arguments.length + ? ((r = (o = Tg.call(t)).length - 1), s()) + : o.slice(); + }), + (a.invertExtent = function(t) { + var a = o.indexOf(t); + return a < 0 + ? [NaN, NaN] + : a < 1 + ? [e, i[0]] + : a >= r + ? [i[r - 1], n] + : [i[a - 1], i[a]]; + }), + (a.unknown = function(e) { + return arguments.length ? ((t = e), a) : a; + }), + (a.thresholds = function() { + return i.slice(); + }), + (a.copy = function() { + return hm() + .domain([e, n]) + .range(o) + .unknown(t); + }), + Sg.apply(Ug(a), arguments) + ); + } + function pm() { + var t, + e = [0.5], + n = [0, 1], + r = 1; + function i(i) { + return i <= i ? n[u(e, i, 0, r)] : t; } - }, - { - key: 'setUpdatedValue', - value: function(t, e) { - var n = this.props.label - ? this.getValueObjectWithLabel(t) - : t; - this.props.onChange && this.props.onChange(n, e); - var r, - i = (function(t) { - return String(t).indexOf('%') > -1; - })(e.target.value); - this.setState({ value: i ? ((r = t), r + '%') : t }); + return ( + (i.domain = function(t) { + return arguments.length + ? ((e = Tg.call(t)), + (r = Math.min(e.length, n.length - 1)), + i) + : e.slice(); + }), + (i.range = function(t) { + return arguments.length + ? ((n = Tg.call(t)), + (r = Math.min(e.length, n.length - 1)), + i) + : n.slice(); + }), + (i.invertExtent = function(t) { + var r = n.indexOf(t); + return [e[r - 1], e[r]]; + }), + (i.unknown = function(e) { + return arguments.length ? ((t = e), i) : t; + }), + (i.copy = function() { + return pm() + .domain(e) + .range(n) + .unknown(t); + }), + Sg.apply(i, arguments) + ); + } + var gm = new Date(), + mm = new Date(); + function vm(t, e, n, r) { + function i(e) { + return ( + t((e = 0 === arguments.length ? new Date() : new Date(+e))), + e + ); } - }, - { - key: 'render', - value: function() { - var t = this, - e = (0, a.default)( - { - default: { wrap: { position: 'relative' } }, - 'user-override': { - wrap: - this.props.style && this.props.style.wrap - ? this.props.style.wrap - : {}, - input: - this.props.style && this.props.style.input - ? this.props.style.input - : {}, - label: - this.props.style && this.props.style.label - ? this.props.style.label - : {} - }, - 'dragLabel-true': { label: { cursor: 'ew-resize' } } - }, - { 'user-override': !0 }, - this.props + return ( + (i.floor = function(e) { + return t((e = new Date(+e))), e; + }), + (i.ceil = function(n) { + return t((n = new Date(n - 1))), e(n, 1), t(n), n; + }), + (i.round = function(t) { + var e = i(t), + n = i.ceil(t); + return t - e < n - t ? e : n; + }), + (i.offset = function(t, n) { + return ( + e((t = new Date(+t)), null == n ? 1 : Math.floor(n)), t ); - return o.default.createElement( - 'div', - { style: e.wrap }, - o.default.createElement('input', { - style: e.input, - ref: function(e) { - return (t.input = e); + }), + (i.range = function(n, r, o) { + var a, + s = []; + if ( + ((n = i.ceil(n)), + (o = null == o ? 1 : Math.floor(o)), + !(n < r && o > 0)) + ) + return s; + do { + s.push((a = new Date(+n))), e(n, o), t(n); + } while (a < n && n < r); + return s; + }), + (i.filter = function(n) { + return vm( + function(e) { + if (e >= e) for (; t(e), !n(e); ) e.setTime(e - 1); }, - value: this.state.value, - onKeyDown: this.handleKeyDown, - onChange: this.handleChange, - onBlur: this.handleBlur, - placeholder: this.props.placeholder, - spellCheck: 'false' + function(t, r) { + if (t >= t) + if (r < 0) + for (; ++r <= 0; ) for (; e(t, -1), !n(t); ); + else for (; --r >= 0; ) for (; e(t, 1), !n(t); ); + } + ); + }), + n && + ((i.count = function(e, r) { + return ( + gm.setTime(+e), + mm.setTime(+r), + t(gm), + t(mm), + Math.floor(n(gm, mm)) + ); }), - this.props.label && !this.props.hideLabel - ? o.default.createElement( - 'span', - { style: e.label, onMouseDown: this.handleMouseDown }, - this.props.label - ) - : null - ); - } + (i.every = function(t) { + return ( + (t = Math.floor(t)), + isFinite(t) && t > 0 + ? t > 1 + ? i.filter( + r + ? function(e) { + return r(e) % t == 0; + } + : function(e) { + return i.count(0, e) % t == 0; + } + ) + : i + : null + ); + })), + i + ); } - ]), - e - ); - })(i.PureComponent || i.Component)); - e.default = l; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), (e.Hue = void 0); - var r = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - i = n(0), - o = u(i), - a = u(n(2)), - s = (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]); - return (e.default = t), e; - })(n(365)); - function u(t) { - return t && t.__esModule ? t : { default: t }; - } - function l(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - } - function c(t, e) { - if (!t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !e || ('object' != typeof e && 'function' != typeof e) ? t : e; - } - var f = (e.Hue = (function(t) { - function e() { - var t, n, r; - l(this, e); - for (var i = arguments.length, o = Array(i), a = 0; a < i; a++) - o[a] = arguments[a]; - return ( - (n = r = c( - this, - (t = e.__proto__ || Object.getPrototypeOf(e)).call.apply( - t, - [this].concat(o) - ) - )), - (r.handleChange = function(t) { - var e = s.calculateChange( - t, - r.props.direction, - r.props.hsl, - r.container - ); - e && - 'function' == typeof r.props.onChange && - r.props.onChange(e, t); - }), - (r.handleMouseDown = function(t) { - r.handleChange(t), - window.addEventListener('mousemove', r.handleChange), - window.addEventListener('mouseup', r.handleMouseUp); - }), - (r.handleMouseUp = function() { - r.unbindEventListeners(); - }), - c(r, n) - ); - } - return ( - (function(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof e + var ym = vm( + function(t) { + t.setMonth(0, 1), t.setHours(0, 0, 0, 0); + }, + function(t, e) { + t.setFullYear(t.getFullYear() + e); + }, + function(t, e) { + return e.getFullYear() - t.getFullYear(); + }, + function(t) { + return t.getFullYear(); + } ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { - value: t, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - e && - (Object.setPrototypeOf - ? Object.setPrototypeOf(t, e) - : (t.__proto__ = e)); - })(e, t), - r(e, [ - { - key: 'componentWillUnmount', - value: function() { - this.unbindEventListeners(); - } - }, - { - key: 'unbindEventListeners', - value: function() { - window.removeEventListener('mousemove', this.handleChange), - window.removeEventListener('mouseup', this.handleMouseUp); - } - }, - { - key: 'render', - value: function() { - var t = this, - e = this.props.direction, - n = void 0 === e ? 'horizontal' : e, - r = (0, a.default)( - { - default: { - hue: { - absolute: '0px 0px 0px 0px', - borderRadius: this.props.radius, - boxShadow: this.props.shadow - }, - container: { - padding: '0 2px', - position: 'relative', - height: '100%', - borderRadius: this.props.radius - }, - pointer: { - position: 'absolute', - left: (100 * this.props.hsl.h) / 360 + '%' - }, - slider: { - marginTop: '1px', - width: '4px', - borderRadius: '1px', - height: '8px', - boxShadow: '0 0 2px rgba(0, 0, 0, .6)', - background: '#fff', - transform: 'translateX(-2px)' - } + ym.every = function(t) { + return isFinite((t = Math.floor(t))) && t > 0 + ? vm( + function(e) { + e.setFullYear(Math.floor(e.getFullYear() / t) * t), + e.setMonth(0, 1), + e.setHours(0, 0, 0, 0); }, - vertical: { - pointer: { - left: '0px', - top: (-100 * this.props.hsl.h) / 360 + 100 + '%' - } + function(e, n) { + e.setFullYear(e.getFullYear() + n * t); } - }, - { vertical: 'vertical' === n } - ); - return o.default.createElement( - 'div', - { style: r.hue }, - o.default.createElement( - 'div', - { - className: 'hue-' + n, - style: r.container, - ref: function(e) { - return (t.container = e); - }, - onMouseDown: this.handleMouseDown, - onTouchMove: this.handleChange, - onTouchStart: this.handleChange - }, - o.default.createElement( - 'style', - null, - '\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n ' - ), - o.default.createElement( - 'div', - { style: r.pointer }, - this.props.pointer - ? o.default.createElement( - this.props.pointer, - this.props - ) - : o.default.createElement('div', { style: r.slider }) ) - ) + : null; + }; + var bm = ym, + _m = ym.range, + xm = vm( + function(t) { + t.setDate(1), t.setHours(0, 0, 0, 0); + }, + function(t, e) { + t.setMonth(t.getMonth() + e); + }, + function(t, e) { + return ( + e.getMonth() - + t.getMonth() + + 12 * (e.getFullYear() - t.getFullYear()) + ); + }, + function(t) { + return t.getMonth(); + } + ), + wm = xm, + Sm = xm.range, + Em = 6e4, + km = 6048e5; + function Am(t) { + return vm( + function(e) { + e.setDate(e.getDate() - ((e.getDay() + 7 - t) % 7)), + e.setHours(0, 0, 0, 0); + }, + function(t, e) { + t.setDate(t.getDate() + 7 * e); + }, + function(t, e) { + return ( + (e - + t - + (e.getTimezoneOffset() - t.getTimezoneOffset()) * Em) / + km + ); + } ); } - } - ]), - e - ); - })(i.PureComponent || i.Component)); - e.default = f; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - e.calculateChange = function(t, e, n, r) { - var i = r.clientWidth, - o = r.clientHeight, - a = 'number' == typeof t.pageX ? t.pageX : t.touches[0].pageX, - s = 'number' == typeof t.pageY ? t.pageY : t.touches[0].pageY, - u = a - (r.getBoundingClientRect().left + window.pageXOffset), - l = s - (r.getBoundingClientRect().top + window.pageYOffset); - if ('vertical' === e) { - var c = void 0; - if (l < 0) c = 359; - else if (l > o) c = 0; - else { - c = (360 * ((-100 * l) / o + 100)) / 100; - } - if (n.h !== c) return { h: c, s: n.s, l: n.l, a: n.a, source: 'rgb' }; - } else { - var f = void 0; - if (u < 0) f = 0; - else if (u > i) f = 359; - else { - f = (360 * ((100 * u) / i)) / 100; - } - if (n.h !== f) return { h: f, s: n.s, l: n.l, a: n.a, source: 'rgb' }; - } - return null; - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Raised = void 0); - var r = s(n(0)), - i = s(n(1)), - o = s(n(2)), - a = s(n(8)); - function s(t) { - return t && t.__esModule ? t : { default: t }; - } - var u = (e.Raised = function(t) { - var e = t.zDepth, - n = t.radius, - i = t.background, - s = t.children, - u = t.styles, - l = void 0 === u ? {} : u, - c = (0, o.default)( - (0, a.default)( - { - default: { - wrap: { position: 'relative', display: 'inline-block' }, - content: { position: 'relative' }, - bg: { - absolute: '0px 0px 0px 0px', - boxShadow: '0 ' + e + 'px ' + 4 * e + 'px rgba(0,0,0,.24)', - borderRadius: n, - background: i + var Tm = Am(0), + Cm = Am(1), + Om = Am(2), + Pm = Am(3), + Mm = Am(4), + Lm = Am(5), + jm = Am(6), + Dm = Tm.range, + Rm = Cm.range, + zm = Om.range, + Nm = Pm.range, + Im = Mm.range, + Fm = Lm.range, + Vm = jm.range, + Bm = vm( + function(t) { + t.setHours(0, 0, 0, 0); + }, + function(t, e) { + t.setDate(t.getDate() + e); + }, + function(t, e) { + return ( + (e - + t - + (e.getTimezoneOffset() - t.getTimezoneOffset()) * Em) / + 864e5 + ); + }, + function(t) { + return t.getDate() - 1; } - }, - 'zDepth-0': { bg: { boxShadow: 'none' } }, - 'zDepth-1': { - bg: { - boxShadow: - '0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)' + ), + Gm = Bm, + Hm = Bm.range, + Um = vm( + function(t) { + t.setTime( + t - + t.getMilliseconds() - + 1e3 * t.getSeconds() - + t.getMinutes() * Em + ); + }, + function(t, e) { + t.setTime(+t + 36e5 * e); + }, + function(t, e) { + return (e - t) / 36e5; + }, + function(t) { + return t.getHours(); } - }, - 'zDepth-2': { - bg: { - boxShadow: - '0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)' + ), + qm = Um, + Wm = Um.range, + Xm = vm( + function(t) { + t.setTime(t - t.getMilliseconds() - 1e3 * t.getSeconds()); + }, + function(t, e) { + t.setTime(+t + e * Em); + }, + function(t, e) { + return (e - t) / Em; + }, + function(t) { + return t.getMinutes(); } - }, - 'zDepth-3': { - bg: { - boxShadow: - '0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)' + ), + Ym = Xm, + $m = Xm.range, + Km = vm( + function(t) { + t.setTime(t - t.getMilliseconds()); + }, + function(t, e) { + t.setTime(+t + 1e3 * e); + }, + function(t, e) { + return (e - t) / 1e3; + }, + function(t) { + return t.getUTCSeconds(); + } + ), + Qm = Km, + Zm = Km.range, + Jm = vm( + function() {}, + function(t, e) { + t.setTime(+t + e); + }, + function(t, e) { + return e - t; + } + ); + Jm.every = function(t) { + return ( + (t = Math.floor(t)), + isFinite(t) && t > 0 + ? t > 1 + ? vm( + function(e) { + e.setTime(Math.floor(e / t) * t); + }, + function(e, n) { + e.setTime(+e + n * t); + }, + function(e, n) { + return (n - e) / t; + } + ) + : Jm + : null + ); + }; + var tv = Jm, + ev = Jm.range; + function nv(t) { + return vm( + function(e) { + e.setUTCDate( + e.getUTCDate() - ((e.getUTCDay() + 7 - t) % 7) + ), + e.setUTCHours(0, 0, 0, 0); + }, + function(t, e) { + t.setUTCDate(t.getUTCDate() + 7 * e); + }, + function(t, e) { + return (e - t) / km; } - }, - 'zDepth-4': { - bg: { - boxShadow: - '0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)' + ); + } + var rv = nv(0), + iv = nv(1), + ov = nv(2), + av = nv(3), + sv = nv(4), + uv = nv(5), + lv = nv(6), + cv = rv.range, + fv = iv.range, + dv = ov.range, + hv = av.range, + pv = sv.range, + gv = uv.range, + mv = lv.range, + vv = vm( + function(t) { + t.setUTCHours(0, 0, 0, 0); + }, + function(t, e) { + t.setUTCDate(t.getUTCDate() + e); + }, + function(t, e) { + return (e - t) / 864e5; + }, + function(t) { + return t.getUTCDate() - 1; } - }, - 'zDepth-5': { - bg: { - boxShadow: - '0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)' + ), + yv = vv, + bv = vv.range, + _v = vm( + function(t) { + t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0); + }, + function(t, e) { + t.setUTCFullYear(t.getUTCFullYear() + e); + }, + function(t, e) { + return e.getUTCFullYear() - t.getUTCFullYear(); + }, + function(t) { + return t.getUTCFullYear(); } - }, - square: { bg: { borderRadius: '0' } }, - circle: { bg: { borderRadius: '50%' } } - }, - l - ), - { 'zDepth-1': 1 === e } - ); - return r.default.createElement( - 'div', - { style: c.wrap }, - r.default.createElement('div', { style: c.bg }), - r.default.createElement('div', { style: c.content }, s) - ); - }); - (u.propTypes = { - background: i.default.string, - zDepth: i.default.oneOf([0, 1, 2, 3, 4, 5]), - radius: i.default.number, - styles: i.default.object - }), - (u.defaultProps = { - background: '#fff', - zDepth: 1, - radius: 2, - styles: {} - }), - (e.default = u); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Saturation = void 0); - var r = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - i = n(0), - o = l(i), - a = l(n(2)), - s = l(n(368)), - u = (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]); - return (e.default = t), e; - })(n(371)); - function l(t) { - return t && t.__esModule ? t : { default: t }; - } - var c = (e.Saturation = (function(t) { - function e(t) { - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - })(this, e); - var n = (function(t, e) { - if (!t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !e || ('object' != typeof e && 'function' != typeof e) - ? t - : e; - })(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); - return ( - (n.handleChange = function(t) { - 'function' == typeof n.props.onChange && - n.throttle( - n.props.onChange, - u.calculateChange(t, n.props.hsl, n.container), - t ); - }), - (n.handleMouseDown = function(t) { - n.handleChange(t), - window.addEventListener('mousemove', n.handleChange), - window.addEventListener('mouseup', n.handleMouseUp); - }), - (n.handleMouseUp = function() { - n.unbindEventListeners(); - }), - (n.throttle = (0, s.default)(function(t, e, n) { - t(e, n); - }, 50)), - n - ); - } - return ( - (function(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof e - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { - value: t, - enumerable: !1, - writable: !0, - configurable: !0 + _v.every = function(t) { + return isFinite((t = Math.floor(t))) && t > 0 + ? vm( + function(e) { + e.setUTCFullYear( + Math.floor(e.getUTCFullYear() / t) * t + ), + e.setUTCMonth(0, 1), + e.setUTCHours(0, 0, 0, 0); + }, + function(e, n) { + e.setUTCFullYear(e.getUTCFullYear() + n * t); + } + ) + : null; + }; + var xv = _v, + wv = _v.range; + function Sv(t) { + if (0 <= t.y && t.y < 100) { + var e = new Date(-1, t.m, t.d, t.H, t.M, t.S, t.L); + return e.setFullYear(t.y), e; + } + return new Date(t.y, t.m, t.d, t.H, t.M, t.S, t.L); } - })), - e && - (Object.setPrototypeOf - ? Object.setPrototypeOf(t, e) - : (t.__proto__ = e)); - })(e, t), - r(e, [ - { - key: 'componentWillUnmount', - value: function() { - this.throttle.cancel(), this.unbindEventListeners(); + function Ev(t) { + if (0 <= t.y && t.y < 100) { + var e = new Date(Date.UTC(-1, t.m, t.d, t.H, t.M, t.S, t.L)); + return e.setUTCFullYear(t.y), e; + } + return new Date(Date.UTC(t.y, t.m, t.d, t.H, t.M, t.S, t.L)); } - }, - { - key: 'unbindEventListeners', - value: function() { - window.removeEventListener('mousemove', this.handleChange), - window.removeEventListener('mouseup', this.handleMouseUp); + function kv(t, e, n) { + return { y: t, m: e, d: n, H: 0, M: 0, S: 0, L: 0 }; } - }, - { - key: 'render', - value: function() { - var t = this, - e = this.props.style || {}, - n = e.color, - r = e.white, - i = e.black, - s = e.pointer, - u = e.circle, - l = (0, a.default)( - { - default: { - color: { - absolute: '0px 0px 0px 0px', - background: 'hsl(' + this.props.hsl.h + ',100%, 50%)', - borderRadius: this.props.radius - }, - white: { - absolute: '0px 0px 0px 0px', - borderRadius: this.props.radius - }, - black: { - absolute: '0px 0px 0px 0px', - boxShadow: this.props.shadow, - borderRadius: this.props.radius - }, - pointer: { - position: 'absolute', - top: -100 * this.props.hsv.v + 100 + '%', - left: 100 * this.props.hsv.s + '%', - cursor: 'default' - }, - circle: { - width: '4px', - height: '4px', - boxShadow: - '0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)', - borderRadius: '50%', - cursor: 'hand', - transform: 'translate(-2px, -2px)' - } - }, - custom: { - color: n, - white: r, - black: i, - pointer: s, - circle: u - } + function Av(t) { + var e = t.dateTime, + n = t.date, + r = t.time, + i = t.periods, + o = t.days, + a = t.shortDays, + s = t.months, + u = t.shortMonths, + l = Iv(i), + c = Fv(i), + f = Iv(o), + d = Fv(o), + h = Iv(a), + p = Fv(a), + g = Iv(s), + m = Fv(s), + v = Iv(u), + y = Fv(u), + b = { + a: function(t) { + return a[t.getDay()]; }, - { custom: !!this.props.style } - ); - return o.default.createElement( - 'div', - { - style: l.color, - ref: function(e) { - return (t.container = e); + A: function(t) { + return o[t.getDay()]; }, - onMouseDown: this.handleMouseDown, - onTouchMove: this.handleChange, - onTouchStart: this.handleChange + b: function(t) { + return u[t.getMonth()]; + }, + B: function(t) { + return s[t.getMonth()]; + }, + c: null, + d: ay, + e: ay, + f: fy, + H: sy, + I: uy, + j: ly, + L: cy, + m: dy, + M: hy, + p: function(t) { + return i[+(t.getHours() >= 12)]; + }, + q: function(t) { + return 1 + ~~(t.getMonth() / 3); + }, + Q: By, + s: Gy, + S: py, + u: gy, + U: my, + V: vy, + w: yy, + W: by, + x: null, + X: null, + y: _y, + Y: xy, + Z: wy, + '%': Vy }, - o.default.createElement( - 'style', - null, - '\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n ' - ), - o.default.createElement( - 'div', - { style: l.white, className: 'saturation-white' }, - o.default.createElement('div', { - style: l.black, - className: 'saturation-black' - }), - o.default.createElement( - 'div', - { style: l.pointer }, - this.props.pointer - ? o.default.createElement( - this.props.pointer, - this.props - ) - : o.default.createElement('div', { style: l.circle }) - ) - ) - ); - } - } - ]), - e - ); - })(i.PureComponent || i.Component)); - e.default = c; - }, - function(t, e, n) { - var r = n(145), - i = n(14); - t.exports = function(t, e, n) { - var o = !0, - a = !0; - if ('function' != typeof t) throw new TypeError('Expected a function'); - return ( - i(n) && - ((o = 'leading' in n ? !!n.leading : o), - (a = 'trailing' in n ? !!n.trailing : a)), - r(t, e, { leading: o, maxWait: e, trailing: a }) - ); - }; - }, - function(t, e, n) { - var r = n(18); - t.exports = function() { - return r.Date.now(); - }; - }, - function(t, e, n) { - var r = n(14), - i = n(56), - o = /^\s+|\s+$/g, - a = /^[-+]0x[0-9a-f]+$/i, - s = /^0b[01]+$/i, - u = /^0o[0-7]+$/i, - l = parseInt; - t.exports = function(t) { - if ('number' == typeof t) return t; - if (i(t)) return NaN; - if (r(t)) { - var e = 'function' == typeof t.valueOf ? t.valueOf() : t; - t = r(e) ? e + '' : e; - } - if ('string' != typeof t) return 0 === t ? t : +t; - t = t.replace(o, ''); - var n = s.test(t); - return n || u.test(t) ? l(t.slice(2), n ? 2 : 8) : a.test(t) ? NaN : +t; - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - e.calculateChange = function(t, e, n) { - var r = n.getBoundingClientRect(), - i = r.width, - o = r.height, - a = 'number' == typeof t.pageX ? t.pageX : t.touches[0].pageX, - s = 'number' == typeof t.pageY ? t.pageY : t.touches[0].pageY, - u = a - (n.getBoundingClientRect().left + window.pageXOffset), - l = s - (n.getBoundingClientRect().top + window.pageYOffset); - u < 0 ? (u = 0) : u > i && (u = i), l < 0 ? (l = 0) : l > o && (l = o); - var c = u / i, - f = 1 - l / o; - return { h: e.h, s: c, v: f, a: e.a, source: 'rgb' }; - }; - }, - function(t, e, n) { - t.exports = n(373); - }, - function(t, e, n) { - var r = n(143), - i = n(142), - o = n(136), - a = n(10); - t.exports = function(t, e) { - return (a(t) ? r : i)(t, o(e)); - }; - }, - function(t, e, n) { - var r; - !(function(i) { - var o = /^\s+/, - a = /\s+$/, - s = 0, - u = i.round, - l = i.min, - c = i.max, - f = i.random; - function d(t, e) { - if (((e = e || {}), (t = t || '') instanceof d)) return t; - if (!(this instanceof d)) return new d(t, e); - var n = (function(t) { - var e = { r: 0, g: 0, b: 0 }, - n = 1, - r = null, - s = null, - u = null, - f = !1, - d = !1; - 'string' == typeof t && - (t = (function(t) { - t = t - .replace(o, '') - .replace(a, '') - .toLowerCase(); - var e, - n = !1; - if (P[t]) (t = P[t]), (n = !0); - else if ('transparent' == t) - return { r: 0, g: 0, b: 0, a: 0, format: 'name' }; - if ((e = H.rgb.exec(t))) return { r: e[1], g: e[2], b: e[3] }; - if ((e = H.rgba.exec(t))) - return { r: e[1], g: e[2], b: e[3], a: e[4] }; - if ((e = H.hsl.exec(t))) return { h: e[1], s: e[2], l: e[3] }; - if ((e = H.hsla.exec(t))) - return { h: e[1], s: e[2], l: e[3], a: e[4] }; - if ((e = H.hsv.exec(t))) return { h: e[1], s: e[2], v: e[3] }; - if ((e = H.hsva.exec(t))) - return { h: e[1], s: e[2], v: e[3], a: e[4] }; - if ((e = H.hex8.exec(t))) - return { - r: R(e[1]), - g: R(e[2]), - b: R(e[3]), - a: F(e[4]), - format: n ? 'name' : 'hex8' - }; - if ((e = H.hex6.exec(t))) - return { - r: R(e[1]), - g: R(e[2]), - b: R(e[3]), - format: n ? 'name' : 'hex' + _ = { + a: function(t) { + return a[t.getUTCDay()]; + }, + A: function(t) { + return o[t.getUTCDay()]; + }, + b: function(t) { + return u[t.getUTCMonth()]; + }, + B: function(t) { + return s[t.getUTCMonth()]; + }, + c: null, + d: Sy, + e: Sy, + f: Cy, + H: Ey, + I: ky, + j: Ay, + L: Ty, + m: Oy, + M: Py, + p: function(t) { + return i[+(t.getUTCHours() >= 12)]; + }, + q: function(t) { + return 1 + ~~(t.getUTCMonth() / 3); + }, + Q: By, + s: Gy, + S: My, + u: Ly, + U: jy, + V: Dy, + w: Ry, + W: zy, + x: null, + X: null, + y: Ny, + Y: Iy, + Z: Fy, + '%': Vy + }, + x = { + a: function(t, e, n) { + var r = h.exec(e.slice(n)); + return r + ? ((t.w = p[r[0].toLowerCase()]), n + r[0].length) + : -1; + }, + A: function(t, e, n) { + var r = f.exec(e.slice(n)); + return r + ? ((t.w = d[r[0].toLowerCase()]), n + r[0].length) + : -1; + }, + b: function(t, e, n) { + var r = v.exec(e.slice(n)); + return r + ? ((t.m = y[r[0].toLowerCase()]), n + r[0].length) + : -1; + }, + B: function(t, e, n) { + var r = g.exec(e.slice(n)); + return r + ? ((t.m = m[r[0].toLowerCase()]), n + r[0].length) + : -1; + }, + c: function(t, n, r) { + return E(t, e, n, r); + }, + d: Kv, + e: Kv, + f: ny, + H: Zv, + I: Zv, + j: Qv, + L: ey, + m: $v, + M: Jv, + p: function(t, e, n) { + var r = l.exec(e.slice(n)); + return r + ? ((t.p = c[r[0].toLowerCase()]), n + r[0].length) + : -1; + }, + q: Yv, + Q: iy, + s: oy, + S: ty, + u: Bv, + U: Gv, + V: Hv, + w: Vv, + W: Uv, + x: function(t, e, r) { + return E(t, n, e, r); + }, + X: function(t, e, n) { + return E(t, r, e, n); + }, + y: Wv, + Y: qv, + Z: Xv, + '%': ry }; - if ((e = H.hex4.exec(t))) - return { - r: R(e[1] + '' + e[1]), - g: R(e[2] + '' + e[2]), - b: R(e[3] + '' + e[3]), - a: F(e[4] + '' + e[4]), - format: n ? 'name' : 'hex8' + function w(t, e) { + return function(n) { + var r, + i, + o, + a = [], + s = -1, + u = 0, + l = t.length; + for (n instanceof Date || (n = new Date(+n)); ++s < l; ) + 37 === t.charCodeAt(s) && + (a.push(t.slice(u, s)), + null != (i = Lv[(r = t.charAt(++s))]) + ? (r = t.charAt(++s)) + : (i = 'e' === r ? ' ' : '0'), + (o = e[r]) && (r = o(n, i)), + a.push(r), + (u = s + 1)); + return a.push(t.slice(u, s)), a.join(''); }; - if ((e = H.hex3.exec(t))) - return { - r: R(e[1] + '' + e[1]), - g: R(e[2] + '' + e[2]), - b: R(e[3] + '' + e[3]), - format: n ? 'name' : 'hex' + } + function S(t, e) { + return function(n) { + var r, + i, + o = kv(1900, void 0, 1); + if (E(o, t, (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 ( + (!e || '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 = Ev(kv(o.y, 0, 1))).getUTCDay()), + (r = i > 4 || 0 === i ? iv.ceil(r) : iv(r)), + (r = yv.offset(r, 7 * (o.V - 1))), + (o.y = r.getUTCFullYear()), + (o.m = r.getUTCMonth()), + (o.d = r.getUTCDate() + ((o.w + 6) % 7))) + : ((i = (r = Sv(kv(o.y, 0, 1))).getDay()), + (r = i > 4 || 0 === i ? Cm.ceil(r) : Cm(r)), + (r = Gm.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 + ? Ev(kv(o.y, 0, 1)).getUTCDay() + : Sv(kv(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), Ev(o)) + : Sv(o); }; - return !1; - })(t)); - 'object' == typeof t && - (U(t.r) && U(t.g) && U(t.b) - ? ((h = t.r), - (p = t.g), - (g = t.b), - (e = { - r: 255 * D(h, 255), - g: 255 * D(p, 255), - b: 255 * D(g, 255) - }), - (f = !0), - (d = '%' === String(t.r).substr(-1) ? 'prgb' : 'rgb')) - : U(t.h) && U(t.s) && U(t.v) - ? ((r = z(t.s)), - (s = z(t.v)), - (e = (function(t, e, n) { - (t = 6 * D(t, 360)), (e = D(e, 100)), (n = D(n, 100)); - var r = i.floor(t), - o = t - r, - a = n * (1 - e), - s = n * (1 - o * e), - u = n * (1 - (1 - o) * e), - l = r % 6; - return { - r: 255 * [n, s, a, a, u, n][l], - g: 255 * [u, n, n, s, a, a][l], - b: 255 * [a, a, u, n, n, s][l] - }; - })(t.h, r, s)), - (f = !0), - (d = 'hsv')) - : U(t.h) && - U(t.s) && - U(t.l) && - ((r = z(t.s)), - (u = z(t.l)), - (e = (function(t, e, n) { - var r, i, o; - function a(t, e, n) { + } + function E(t, e, n, r) { + for (var i, o, a = 0, s = e.length, u = n.length; a < s; ) { + if (r >= u) return -1; + if (37 === (i = e.charCodeAt(a++))) { + if ( + ((i = e.charAt(a++)), + !(o = x[i in Lv ? e.charAt(a++) : i]) || + (r = o(t, n, r)) < 0) + ) + return -1; + } else if (i != n.charCodeAt(r++)) return -1; + } + return r; + } + return ( + (b.x = w(n, b)), + (b.X = w(r, b)), + (b.c = w(e, b)), + (_.x = w(n, _)), + (_.X = w(r, _)), + (_.c = w(e, _)), + { + format: function(t) { + var e = w((t += ''), b); return ( - n < 0 && (n += 1), - n > 1 && (n -= 1), - n < 1 / 6 - ? t + 6 * (e - t) * n - : n < 0.5 - ? e - : n < 2 / 3 - ? t + (e - t) * (2 / 3 - n) * 6 - : t + (e.toString = function() { + return t; + }), + e + ); + }, + parse: function(t) { + var e = S((t += ''), !1); + return ( + (e.toString = function() { + return t; + }), + e + ); + }, + utcFormat: function(t) { + var e = w((t += ''), _); + return ( + (e.toString = function() { + return t; + }), + e + ); + }, + utcParse: function(t) { + var e = S((t += ''), !0); + return ( + (e.toString = function() { + return t; + }), + e ); } - if ( - ((t = D(t, 360)), - (e = D(e, 100)), - (n = D(n, 100)), - 0 === e) - ) - r = i = o = n; - else { - var s = n < 0.5 ? n * (1 + e) : n + e - n * e, - u = 2 * n - s; - (r = a(u, s, t + 1 / 3)), - (i = a(u, s, t)), - (o = a(u, s, t - 1 / 3)); - } - return { r: 255 * r, g: 255 * i, b: 255 * o }; - })(t.h, r, u)), - (f = !0), - (d = 'hsl')), - t.hasOwnProperty('a') && (n = t.a)); - var h, p, g; - return ( - (n = L(n)), - { - ok: f, - format: t.format || d, - r: l(255, c(e.r, 0)), - g: l(255, c(e.g, 0)), - b: l(255, c(e.b, 0)), - a: n + } + ); } - ); - })(t); - (this._originalInput = t), - (this._r = n.r), - (this._g = n.g), - (this._b = n.b), - (this._a = n.a), - (this._roundA = u(100 * this._a) / 100), - (this._format = e.format || n.format), - (this._gradientType = e.gradientType), - this._r < 1 && (this._r = u(this._r)), - this._g < 1 && (this._g = u(this._g)), - this._b < 1 && (this._b = u(this._b)), - (this._ok = n.ok), - (this._tc_id = s++); - } - function h(t, e, n) { - (t = D(t, 255)), (e = D(e, 255)), (n = D(n, 255)); - var r, - i, - o = c(t, e, n), - a = l(t, e, n), - s = (o + a) / 2; - if (o == a) r = i = 0; - else { - var u = o - a; - switch (((i = s > 0.5 ? u / (2 - o - a) : u / (o + a)), o)) { - case t: - r = (e - n) / u + (e < n ? 6 : 0); - break; - case e: - r = (n - t) / u + 2; - break; - case n: - r = (t - e) / u + 4; - } - r /= 6; - } - return { h: r, s: i, l: s }; - } - function p(t, e, n) { - (t = D(t, 255)), (e = D(e, 255)), (n = D(n, 255)); - var r, - i, - o = c(t, e, n), - a = l(t, e, n), - s = o, - u = o - a; - if (((i = 0 === o ? 0 : u / o), o == a)) r = 0; - else { - switch (o) { - case t: - r = (e - n) / u + (e < n ? 6 : 0); - break; - case e: - r = (n - t) / u + 2; - break; - case n: - r = (t - e) / u + 4; - } - r /= 6; - } - return { h: r, s: i, v: s }; - } - function g(t, e, n, r) { - var i = [ - N(u(t).toString(16)), - N(u(e).toString(16)), - N(u(n).toString(16)) - ]; - return r && - i[0].charAt(0) == i[0].charAt(1) && - i[1].charAt(0) == i[1].charAt(1) && - i[2].charAt(0) == i[2].charAt(1) - ? i[0].charAt(0) + i[1].charAt(0) + i[2].charAt(0) - : i.join(''); - } - function v(t, e, n, r) { - return [ - N(I(r)), - N(u(t).toString(16)), - N(u(e).toString(16)), - N(u(n).toString(16)) - ].join(''); - } - function m(t, e) { - e = 0 === e ? 0 : e || 10; - var n = d(t).toHsl(); - return (n.s -= e / 100), (n.s = j(n.s)), d(n); - } - function y(t, e) { - e = 0 === e ? 0 : e || 10; - var n = d(t).toHsl(); - return (n.s += e / 100), (n.s = j(n.s)), d(n); - } - function b(t) { - return d(t).desaturate(100); - } - function _(t, e) { - e = 0 === e ? 0 : e || 10; - var n = d(t).toHsl(); - return (n.l += e / 100), (n.l = j(n.l)), d(n); - } - function x(t, e) { - e = 0 === e ? 0 : e || 10; - var n = d(t).toRgb(); - return ( - (n.r = c(0, l(255, n.r - u((-e / 100) * 255)))), - (n.g = c(0, l(255, n.g - u((-e / 100) * 255)))), - (n.b = c(0, l(255, n.b - u((-e / 100) * 255)))), - d(n) - ); - } - function w(t, e) { - e = 0 === e ? 0 : e || 10; - var n = d(t).toHsl(); - return (n.l -= e / 100), (n.l = j(n.l)), d(n); - } - function S(t, e) { - var n = d(t).toHsl(), - r = (n.h + e) % 360; - return (n.h = r < 0 ? 360 + r : r), d(n); - } - function E(t) { - var e = d(t).toHsl(); - return (e.h = (e.h + 180) % 360), d(e); - } - function k(t) { - var e = d(t).toHsl(), - n = e.h; - return [ - d(t), - d({ h: (n + 120) % 360, s: e.s, l: e.l }), - d({ h: (n + 240) % 360, s: e.s, l: e.l }) - ]; - } - function A(t) { - var e = d(t).toHsl(), - n = e.h; - return [ - d(t), - d({ h: (n + 90) % 360, s: e.s, l: e.l }), - d({ h: (n + 180) % 360, s: e.s, l: e.l }), - d({ h: (n + 270) % 360, s: e.s, l: e.l }) - ]; - } - function T(t) { - var e = d(t).toHsl(), - n = e.h; - return [ - d(t), - d({ h: (n + 72) % 360, s: e.s, l: e.l }), - d({ h: (n + 216) % 360, s: e.s, l: e.l }) - ]; - } - function C(t, e, n) { - (e = e || 6), (n = n || 30); - var r = d(t).toHsl(), - i = 360 / n, - o = [d(t)]; - for (r.h = (r.h - ((i * e) >> 1) + 720) % 360; --e; ) - (r.h = (r.h + i) % 360), o.push(d(r)); - return o; - } - function O(t, e) { - e = e || 6; - for ( - var n = d(t).toHsv(), r = n.h, i = n.s, o = n.v, a = [], s = 1 / e; - e--; - - ) - a.push(d({ h: r, s: i, v: o })), (o = (o + s) % 1); - return a; - } - (d.prototype = { - isDark: function() { - return this.getBrightness() < 128; - }, - isLight: function() { - return !this.isDark(); - }, - isValid: function() { - return this._ok; - }, - getOriginalInput: function() { - return this._originalInput; - }, - getFormat: function() { - return this._format; - }, - getAlpha: function() { - return this._a; - }, - getBrightness: function() { - var t = this.toRgb(); - return (299 * t.r + 587 * t.g + 114 * t.b) / 1e3; - }, - getLuminance: function() { - var t, - e, - n, - r = this.toRgb(); - return ( - (t = r.r / 255), - (e = r.g / 255), - (n = r.b / 255), - 0.2126 * - (t <= 0.03928 ? t / 12.92 : i.pow((t + 0.055) / 1.055, 2.4)) + - 0.7152 * - (e <= 0.03928 ? e / 12.92 : i.pow((e + 0.055) / 1.055, 2.4)) + - 0.0722 * - (n <= 0.03928 ? n / 12.92 : i.pow((n + 0.055) / 1.055, 2.4)) - ); - }, - setAlpha: function(t) { - return ( - (this._a = L(t)), (this._roundA = u(100 * this._a) / 100), this - ); - }, - toHsv: function() { - var t = p(this._r, this._g, this._b); - return { h: 360 * t.h, s: t.s, v: t.v, a: this._a }; - }, - toHsvString: function() { - var t = p(this._r, this._g, this._b), - e = u(360 * t.h), - n = u(100 * t.s), - r = u(100 * t.v); - return 1 == this._a - ? 'hsv(' + e + ', ' + n + '%, ' + r + '%)' - : 'hsva(' + e + ', ' + n + '%, ' + r + '%, ' + this._roundA + ')'; - }, - toHsl: function() { - var t = h(this._r, this._g, this._b); - return { h: 360 * t.h, s: t.s, l: t.l, a: this._a }; - }, - toHslString: function() { - var t = h(this._r, this._g, this._b), - e = u(360 * t.h), - n = u(100 * t.s), - r = u(100 * t.l); - return 1 == this._a - ? 'hsl(' + e + ', ' + n + '%, ' + r + '%)' - : 'hsla(' + e + ', ' + n + '%, ' + r + '%, ' + this._roundA + ')'; - }, - toHex: function(t) { - return g(this._r, this._g, this._b, t); - }, - toHexString: function(t) { - return '#' + this.toHex(t); - }, - toHex8: function(t) { - return (function(t, e, n, r, i) { - var o = [ - N(u(t).toString(16)), - N(u(e).toString(16)), - N(u(n).toString(16)), - N(I(r)) - ]; - if ( - i && - o[0].charAt(0) == o[0].charAt(1) && - o[1].charAt(0) == o[1].charAt(1) && - o[2].charAt(0) == o[2].charAt(1) && - o[3].charAt(0) == o[3].charAt(1) - ) + var Tv, + Cv, + Ov, + Pv, + Mv, + Lv = { '-': '', _: ' ', 0: '0' }, + jv = /^\s*\d+/, + Dv = /^%/, + Rv = /[\\^$*+?|[\]().{}]/g; + function zv(t, e, n) { + var r = t < 0 ? '-' : '', + i = (r ? -t : t) + '', + o = i.length; + return r + (o < n ? new Array(n - o + 1).join(e) + i : i); + } + function Nv(t) { + return t.replace(Rv, '\\$&'); + } + function Iv(t) { + return new RegExp('^(?:' + t.map(Nv).join('|') + ')', 'i'); + } + function Fv(t) { + for (var e = {}, n = -1, r = t.length; ++n < r; ) + e[t[n].toLowerCase()] = n; + return e; + } + function Vv(t, e, n) { + var r = jv.exec(e.slice(n, n + 1)); + return r ? ((t.w = +r[0]), n + r[0].length) : -1; + } + function Bv(t, e, n) { + var r = jv.exec(e.slice(n, n + 1)); + return r ? ((t.u = +r[0]), n + r[0].length) : -1; + } + function Gv(t, e, n) { + var r = jv.exec(e.slice(n, n + 2)); + return r ? ((t.U = +r[0]), n + r[0].length) : -1; + } + function Hv(t, e, n) { + var r = jv.exec(e.slice(n, n + 2)); + return r ? ((t.V = +r[0]), n + r[0].length) : -1; + } + function Uv(t, e, n) { + var r = jv.exec(e.slice(n, n + 2)); + return r ? ((t.W = +r[0]), n + r[0].length) : -1; + } + function qv(t, e, n) { + var r = jv.exec(e.slice(n, n + 4)); + return r ? ((t.y = +r[0]), n + r[0].length) : -1; + } + function Wv(t, e, n) { + var r = jv.exec(e.slice(n, n + 2)); + return r + ? ((t.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3)), n + r[0].length) + : -1; + } + function Xv(t, e, n) { + var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n, n + 6)); + return r + ? ((t.Z = r[1] ? 0 : -(r[2] + (r[3] || '00'))), + n + r[0].length) + : -1; + } + function Yv(t, e, n) { + var r = jv.exec(e.slice(n, n + 1)); + return r ? ((t.q = 3 * r[0] - 3), n + r[0].length) : -1; + } + function $v(t, e, n) { + var r = jv.exec(e.slice(n, n + 2)); + return r ? ((t.m = r[0] - 1), n + r[0].length) : -1; + } + function Kv(t, e, n) { + var r = jv.exec(e.slice(n, n + 2)); + return r ? ((t.d = +r[0]), n + r[0].length) : -1; + } + function Qv(t, e, n) { + var r = jv.exec(e.slice(n, n + 3)); + return r ? ((t.m = 0), (t.d = +r[0]), n + r[0].length) : -1; + } + function Zv(t, e, n) { + var r = jv.exec(e.slice(n, n + 2)); + return r ? ((t.H = +r[0]), n + r[0].length) : -1; + } + function Jv(t, e, n) { + var r = jv.exec(e.slice(n, n + 2)); + return r ? ((t.M = +r[0]), n + r[0].length) : -1; + } + function ty(t, e, n) { + var r = jv.exec(e.slice(n, n + 2)); + return r ? ((t.S = +r[0]), n + r[0].length) : -1; + } + function ey(t, e, n) { + var r = jv.exec(e.slice(n, n + 3)); + return r ? ((t.L = +r[0]), n + r[0].length) : -1; + } + function ny(t, e, n) { + var r = jv.exec(e.slice(n, n + 6)); + return r + ? ((t.L = Math.floor(r[0] / 1e3)), n + r[0].length) + : -1; + } + function ry(t, e, n) { + var r = Dv.exec(e.slice(n, n + 1)); + return r ? n + r[0].length : -1; + } + function iy(t, e, n) { + var r = jv.exec(e.slice(n)); + return r ? ((t.Q = +r[0]), n + r[0].length) : -1; + } + function oy(t, e, n) { + var r = jv.exec(e.slice(n)); + return r ? ((t.s = +r[0]), n + r[0].length) : -1; + } + function ay(t, e) { + return zv(t.getDate(), e, 2); + } + function sy(t, e) { + return zv(t.getHours(), e, 2); + } + function uy(t, e) { + return zv(t.getHours() % 12 || 12, e, 2); + } + function ly(t, e) { + return zv(1 + Gm.count(bm(t), t), e, 3); + } + function cy(t, e) { + return zv(t.getMilliseconds(), e, 3); + } + function fy(t, e) { + return cy(t, e) + '000'; + } + function dy(t, e) { + return zv(t.getMonth() + 1, e, 2); + } + function hy(t, e) { + return zv(t.getMinutes(), e, 2); + } + function py(t, e) { + return zv(t.getSeconds(), e, 2); + } + function gy(t) { + var e = t.getDay(); + return 0 === e ? 7 : e; + } + function my(t, e) { + return zv(Tm.count(bm(t) - 1, t), e, 2); + } + function vy(t, e) { + var n = t.getDay(); return ( - o[0].charAt(0) + - o[1].charAt(0) + - o[2].charAt(0) + - o[3].charAt(0) + (t = n >= 4 || 0 === n ? Mm(t) : Mm.ceil(t)), + zv(Mm.count(bm(t), t) + (4 === bm(t).getDay()), e, 2) + ); + } + function yy(t) { + return t.getDay(); + } + function by(t, e) { + return zv(Cm.count(bm(t) - 1, t), e, 2); + } + function _y(t, e) { + return zv(t.getFullYear() % 100, e, 2); + } + function xy(t, e) { + return zv(t.getFullYear() % 1e4, e, 4); + } + function wy(t) { + var e = t.getTimezoneOffset(); + return ( + (e > 0 ? '-' : ((e *= -1), '+')) + + zv((e / 60) | 0, '0', 2) + + zv(e % 60, '0', 2) ); - return o.join(''); - })(this._r, this._g, this._b, this._a, t); - }, - toHex8String: function(t) { - return '#' + this.toHex8(t); - }, - toRgb: function() { - return { r: u(this._r), g: u(this._g), b: u(this._b), a: this._a }; - }, - toRgbString: function() { - return 1 == this._a - ? 'rgb(' + - u(this._r) + - ', ' + - u(this._g) + - ', ' + - u(this._b) + - ')' - : 'rgba(' + - u(this._r) + - ', ' + - u(this._g) + - ', ' + - u(this._b) + - ', ' + - this._roundA + - ')'; - }, - toPercentageRgb: function() { - return { - r: u(100 * D(this._r, 255)) + '%', - g: u(100 * D(this._g, 255)) + '%', - b: u(100 * D(this._b, 255)) + '%', - a: this._a - }; - }, - toPercentageRgbString: function() { - return 1 == this._a - ? 'rgb(' + - u(100 * D(this._r, 255)) + - '%, ' + - u(100 * D(this._g, 255)) + - '%, ' + - u(100 * D(this._b, 255)) + - '%)' - : 'rgba(' + - u(100 * D(this._r, 255)) + - '%, ' + - u(100 * D(this._g, 255)) + - '%, ' + - u(100 * D(this._b, 255)) + - '%, ' + - this._roundA + - ')'; - }, - toName: function() { - return 0 === this._a - ? 'transparent' - : !(this._a < 1) && (M[g(this._r, this._g, this._b, !0)] || !1); - }, - toFilter: function(t) { - var e = '#' + v(this._r, this._g, this._b, this._a), - n = e, - r = this._gradientType ? 'GradientType = 1, ' : ''; - if (t) { - var i = d(t); - n = '#' + v(i._r, i._g, i._b, i._a); - } - return ( - 'progid:DXImageTransform.Microsoft.gradient(' + - r + - 'startColorstr=' + - e + - ',endColorstr=' + - n + - ')' - ); - }, - toString: function(t) { - var e = !!t; - t = t || this._format; - var n = !1, - r = this._a < 1 && this._a >= 0; - return e || - !r || - ('hex' !== t && - 'hex6' !== t && - 'hex3' !== t && - 'hex4' !== t && - 'hex8' !== t && - 'name' !== t) - ? ('rgb' === t && (n = this.toRgbString()), - 'prgb' === t && (n = this.toPercentageRgbString()), - ('hex' !== t && 'hex6' !== t) || (n = this.toHexString()), - 'hex3' === t && (n = this.toHexString(!0)), - 'hex4' === t && (n = this.toHex8String(!0)), - 'hex8' === t && (n = this.toHex8String()), - 'name' === t && (n = this.toName()), - 'hsl' === t && (n = this.toHslString()), - 'hsv' === t && (n = this.toHsvString()), - n || this.toHexString()) - : 'name' === t && 0 === this._a - ? this.toName() - : this.toRgbString(); - }, - clone: function() { - return d(this.toString()); - }, - _applyModification: function(t, e) { - var n = t.apply(null, [this].concat([].slice.call(e))); - return ( - (this._r = n._r), - (this._g = n._g), - (this._b = n._b), - this.setAlpha(n._a), - this - ); - }, - lighten: function() { - return this._applyModification(_, arguments); - }, - brighten: function() { - return this._applyModification(x, arguments); - }, - darken: function() { - return this._applyModification(w, arguments); - }, - desaturate: function() { - return this._applyModification(m, arguments); - }, - saturate: function() { - return this._applyModification(y, arguments); - }, - greyscale: function() { - return this._applyModification(b, arguments); - }, - spin: function() { - return this._applyModification(S, arguments); - }, - _applyCombination: function(t, e) { - return t.apply(null, [this].concat([].slice.call(e))); - }, - analogous: function() { - return this._applyCombination(C, arguments); - }, - complement: function() { - return this._applyCombination(E, arguments); - }, - monochromatic: function() { - return this._applyCombination(O, arguments); - }, - splitcomplement: function() { - return this._applyCombination(T, arguments); - }, - triad: function() { - return this._applyCombination(k, arguments); - }, - tetrad: function() { - return this._applyCombination(A, arguments); - } - }), - (d.fromRatio = function(t, e) { - if ('object' == typeof t) { - var n = {}; - for (var r in t) - t.hasOwnProperty(r) && (n[r] = 'a' === r ? t[r] : z(t[r])); - t = n; - } - return d(t, e); - }), - (d.equals = function(t, e) { - return !(!t || !e) && d(t).toRgbString() == d(e).toRgbString(); - }), - (d.random = function() { - return d.fromRatio({ r: f(), g: f(), b: f() }); - }), - (d.mix = function(t, e, n) { - n = 0 === n ? 0 : n || 50; - var r = d(t).toRgb(), - i = d(e).toRgb(), - o = n / 100; - return d({ - r: (i.r - r.r) * o + r.r, - g: (i.g - r.g) * o + r.g, - b: (i.b - r.b) * o + r.b, - a: (i.a - r.a) * o + r.a - }); - }), - (d.readability = function(t, e) { - var n = d(t), - r = d(e); - return ( - (i.max(n.getLuminance(), r.getLuminance()) + 0.05) / - (i.min(n.getLuminance(), r.getLuminance()) + 0.05) - ); - }), - (d.isReadable = function(t, e, n) { - var r, - i, - o = d.readability(t, e); - switch ( - ((i = !1), - (r = (function(t) { - var e, n; - (e = ( - (t = t || { level: 'AA', size: 'small' }).level || 'AA' - ).toUpperCase()), - (n = (t.size || 'small').toLowerCase()), - 'AA' !== e && 'AAA' !== e && (e = 'AA'); - 'small' !== n && 'large' !== n && (n = 'small'); - return { level: e, size: n }; - })(n)).level + r.size) - ) { - case 'AAsmall': - case 'AAAlarge': - i = o >= 4.5; - break; - case 'AAlarge': - i = o >= 3; - break; - case 'AAAsmall': - i = o >= 7; - } - return i; - }), - (d.mostReadable = function(t, e, n) { - var r, - i, - o, - a, - s = null, - u = 0; - (i = (n = n || {}).includeFallbackColors), - (o = n.level), - (a = n.size); - for (var l = 0; l < e.length; l++) - (r = d.readability(t, e[l])) > u && ((u = r), (s = d(e[l]))); - return d.isReadable(t, s, { level: o, size: a }) || !i - ? s - : ((n.includeFallbackColors = !1), - d.mostReadable(t, ['#fff', '#000'], n)); - }); - var P = (d.names = { - aliceblue: 'f0f8ff', - antiquewhite: 'faebd7', - aqua: '0ff', - aquamarine: '7fffd4', - azure: 'f0ffff', - beige: 'f5f5dc', - bisque: 'ffe4c4', - black: '000', - blanchedalmond: 'ffebcd', - blue: '00f', - blueviolet: '8a2be2', - brown: 'a52a2a', - burlywood: 'deb887', - burntsienna: 'ea7e5d', - cadetblue: '5f9ea0', - chartreuse: '7fff00', - chocolate: 'd2691e', - coral: 'ff7f50', - cornflowerblue: '6495ed', - cornsilk: 'fff8dc', - crimson: 'dc143c', - cyan: '0ff', - darkblue: '00008b', - darkcyan: '008b8b', - darkgoldenrod: 'b8860b', - darkgray: 'a9a9a9', - darkgreen: '006400', - darkgrey: 'a9a9a9', - darkkhaki: 'bdb76b', - darkmagenta: '8b008b', - darkolivegreen: '556b2f', - darkorange: 'ff8c00', - darkorchid: '9932cc', - darkred: '8b0000', - darksalmon: 'e9967a', - darkseagreen: '8fbc8f', - darkslateblue: '483d8b', - darkslategray: '2f4f4f', - darkslategrey: '2f4f4f', - darkturquoise: '00ced1', - darkviolet: '9400d3', - deeppink: 'ff1493', - deepskyblue: '00bfff', - dimgray: '696969', - dimgrey: '696969', - dodgerblue: '1e90ff', - firebrick: 'b22222', - floralwhite: 'fffaf0', - forestgreen: '228b22', - fuchsia: 'f0f', - gainsboro: 'dcdcdc', - ghostwhite: 'f8f8ff', - gold: 'ffd700', - goldenrod: 'daa520', - gray: '808080', - green: '008000', - greenyellow: 'adff2f', - grey: '808080', - honeydew: 'f0fff0', - hotpink: 'ff69b4', - indianred: 'cd5c5c', - indigo: '4b0082', - ivory: 'fffff0', - khaki: 'f0e68c', - lavender: 'e6e6fa', - lavenderblush: 'fff0f5', - lawngreen: '7cfc00', - lemonchiffon: 'fffacd', - lightblue: 'add8e6', - lightcoral: 'f08080', - lightcyan: 'e0ffff', - lightgoldenrodyellow: 'fafad2', - lightgray: 'd3d3d3', - lightgreen: '90ee90', - lightgrey: 'd3d3d3', - lightpink: 'ffb6c1', - lightsalmon: 'ffa07a', - lightseagreen: '20b2aa', - lightskyblue: '87cefa', - lightslategray: '789', - lightslategrey: '789', - lightsteelblue: 'b0c4de', - lightyellow: 'ffffe0', - lime: '0f0', - limegreen: '32cd32', - linen: 'faf0e6', - magenta: 'f0f', - maroon: '800000', - mediumaquamarine: '66cdaa', - mediumblue: '0000cd', - mediumorchid: 'ba55d3', - mediumpurple: '9370db', - mediumseagreen: '3cb371', - mediumslateblue: '7b68ee', - mediumspringgreen: '00fa9a', - mediumturquoise: '48d1cc', - mediumvioletred: 'c71585', - midnightblue: '191970', - mintcream: 'f5fffa', - mistyrose: 'ffe4e1', - moccasin: 'ffe4b5', - navajowhite: 'ffdead', - navy: '000080', - oldlace: 'fdf5e6', - olive: '808000', - olivedrab: '6b8e23', - orange: 'ffa500', - orangered: 'ff4500', - orchid: 'da70d6', - palegoldenrod: 'eee8aa', - palegreen: '98fb98', - paleturquoise: 'afeeee', - palevioletred: 'db7093', - papayawhip: 'ffefd5', - peachpuff: 'ffdab9', - peru: 'cd853f', - pink: 'ffc0cb', - plum: 'dda0dd', - powderblue: 'b0e0e6', - purple: '800080', - rebeccapurple: '663399', - red: 'f00', - rosybrown: 'bc8f8f', - royalblue: '4169e1', - saddlebrown: '8b4513', - salmon: 'fa8072', - sandybrown: 'f4a460', - seagreen: '2e8b57', - seashell: 'fff5ee', - sienna: 'a0522d', - silver: 'c0c0c0', - skyblue: '87ceeb', - slateblue: '6a5acd', - slategray: '708090', - slategrey: '708090', - snow: 'fffafa', - springgreen: '00ff7f', - steelblue: '4682b4', - tan: 'd2b48c', - teal: '008080', - thistle: 'd8bfd8', - tomato: 'ff6347', - turquoise: '40e0d0', - violet: 'ee82ee', - wheat: 'f5deb3', - white: 'fff', - whitesmoke: 'f5f5f5', - yellow: 'ff0', - yellowgreen: '9acd32' - }), - M = (d.hexNames = (function(t) { - var e = {}; - for (var n in t) t.hasOwnProperty(n) && (e[t[n]] = n); - return e; - })(P)); - function L(t) { - return ( - (t = parseFloat(t)), (isNaN(t) || t < 0 || t > 1) && (t = 1), t - ); - } - function D(t, e) { - (function(t) { - return ( - 'string' == typeof t && - -1 != t.indexOf('.') && - 1 === parseFloat(t) - ); - })(t) && (t = '100%'); - var n = (function(t) { - return 'string' == typeof t && -1 != t.indexOf('%'); - })(t); - return ( - (t = l(e, c(0, parseFloat(t)))), - n && (t = parseInt(t * e, 10) / 100), - i.abs(t - e) < 1e-6 ? 1 : (t % e) / parseFloat(e) - ); - } - function j(t) { - return l(1, c(0, t)); - } - function R(t) { - return parseInt(t, 16); - } - function N(t) { - return 1 == t.length ? '0' + t : '' + t; - } - function z(t) { - return t <= 1 && (t = 100 * t + '%'), t; - } - function I(t) { - return i.round(255 * parseFloat(t)).toString(16); - } - function F(t) { - return R(t) / 255; - } - var V, - B, - G, - H = - ((B = - '[\\s|\\(]+(' + - (V = '(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)') + - ')[,|\\s]+(' + - V + - ')[,|\\s]+(' + - V + - ')\\s*\\)?'), - (G = - '[\\s|\\(]+(' + - V + - ')[,|\\s]+(' + - V + - ')[,|\\s]+(' + - V + - ')[,|\\s]+(' + - V + - ')\\s*\\)?'), - { - CSS_UNIT: new RegExp(V), - rgb: new RegExp('rgb' + B), - rgba: new RegExp('rgba' + G), - hsl: new RegExp('hsl' + B), - hsla: new RegExp('hsla' + G), - hsv: new RegExp('hsv' + B), - hsva: new RegExp('hsva' + G), - hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, - hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, - hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, - hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ - }); - function U(t) { - return !!H.CSS_UNIT.exec(t); - } - t.exports - ? (t.exports = d) - : void 0 === - (r = function() { - return d; - }.call(e, n, e, t)) || (t.exports = r); - })(Math); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Swatch = void 0); - var r = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }, - i = u(n(0)), - o = u(n(2)), - a = n(376), - s = u(n(81)); - function u(t) { - return t && t.__esModule ? t : { default: t }; - } - var l = (e.Swatch = function(t) { - var e = t.color, - n = t.style, - a = t.onClick, - u = void 0 === a ? function() {} : a, - l = t.onHover, - c = t.title, - f = void 0 === c ? e : c, - d = t.children, - h = t.focus, - p = t.focusStyle, - g = void 0 === p ? {} : p, - v = 'transparent' === e, - m = (0, o.default)({ - default: { - swatch: r( - { - background: e, - height: '100%', - width: '100%', - cursor: 'pointer', - position: 'relative', - outline: 'none' + } + function Sy(t, e) { + return zv(t.getUTCDate(), e, 2); + } + function Ey(t, e) { + return zv(t.getUTCHours(), e, 2); + } + function ky(t, e) { + return zv(t.getUTCHours() % 12 || 12, e, 2); + } + function Ay(t, e) { + return zv(1 + yv.count(xv(t), t), e, 3); + } + function Ty(t, e) { + return zv(t.getUTCMilliseconds(), e, 3); + } + function Cy(t, e) { + return Ty(t, e) + '000'; + } + function Oy(t, e) { + return zv(t.getUTCMonth() + 1, e, 2); + } + function Py(t, e) { + return zv(t.getUTCMinutes(), e, 2); + } + function My(t, e) { + return zv(t.getUTCSeconds(), e, 2); + } + function Ly(t) { + var e = t.getUTCDay(); + return 0 === e ? 7 : e; + } + function jy(t, e) { + return zv(rv.count(xv(t) - 1, t), e, 2); + } + function Dy(t, e) { + var n = t.getUTCDay(); + return ( + (t = n >= 4 || 0 === n ? sv(t) : sv.ceil(t)), + zv(sv.count(xv(t), t) + (4 === xv(t).getUTCDay()), e, 2) + ); + } + function Ry(t) { + return t.getUTCDay(); + } + function zy(t, e) { + return zv(iv.count(xv(t) - 1, t), e, 2); + } + function Ny(t, e) { + return zv(t.getUTCFullYear() % 100, e, 2); + } + function Iy(t, e) { + return zv(t.getUTCFullYear() % 1e4, e, 4); + } + function Fy() { + return '+0000'; + } + function Vy() { + return '%'; + } + function By(t) { + return +t; + } + function Gy(t) { + return Math.floor(+t / 1e3); + } + function Hy(t) { + return ( + (Tv = Av(t)), + (Cv = Tv.format), + (Ov = Tv.parse), + (Pv = Tv.utcFormat), + (Mv = Tv.utcParse), + Tv + ); + } + Hy({ + dateTime: '%x, %X', + date: '%-m/%-d/%Y', + time: '%-I:%M:%S %p', + periods: ['AM', 'PM'], + days: [ + 'Sunday', + 'Monday', + 'Tuesday', + 'Wednesday', + 'Thursday', + 'Friday', + 'Saturday' + ], + shortDays: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], + months: [ + 'January', + 'February', + 'March', + 'April', + 'May', + 'June', + 'July', + 'August', + 'September', + 'October', + 'November', + 'December' + ], + shortMonths: [ + 'Jan', + 'Feb', + 'Mar', + 'Apr', + 'May', + 'Jun', + 'Jul', + 'Aug', + 'Sep', + 'Oct', + 'Nov', + 'Dec' + ] + }); + var Uy = 1e3, + qy = 60 * Uy, + Wy = 60 * qy, + Xy = 24 * Wy, + Yy = 7 * Xy, + $y = 30 * Xy, + Ky = 365 * Xy; + function Qy(t) { + return new Date(t); + } + function Zy(t) { + return t instanceof Date ? +t : +new Date(+t); + } + function Jy(t, e, n, r, o, a, s, u, l) { + var c = Gg(Rg, Rg), + f = c.invert, + d = c.domain, + h = l('.%L'), + p = l(':%S'), + g = l('%I:%M'), + m = l('%I %p'), + v = l('%a %d'), + y = l('%b %d'), + b = l('%B'), + _ = l('%Y'), + x = [ + [s, 1, Uy], + [s, 5, 5 * Uy], + [s, 15, 15 * Uy], + [s, 30, 30 * Uy], + [a, 1, qy], + [a, 5, 5 * qy], + [a, 15, 15 * qy], + [a, 30, 30 * qy], + [o, 1, Wy], + [o, 3, 3 * Wy], + [o, 6, 6 * Wy], + [o, 12, 12 * Wy], + [r, 1, Xy], + [r, 2, 2 * Xy], + [n, 1, Yy], + [e, 1, $y], + [e, 3, 3 * $y], + [t, 1, Ky] + ]; + function w(i) { + return (s(i) < i + ? h + : a(i) < i + ? p + : o(i) < i + ? g + : r(i) < i + ? m + : e(i) < i + ? n(i) < i + ? v + : y + : t(i) < i + ? b + : _)(i); + } + function S(e, n, r, o) { + if ((null == e && (e = 10), 'number' == typeof e)) { + var a = Math.abs(r - n) / e, + s = i(function(t) { + return t[2]; + }).right(x, a); + s === x.length + ? ((o = C(n / Ky, r / Ky, e)), (e = t)) + : s + ? ((o = (s = + x[a / x[s - 1][2] < x[s][2] / a ? s - 1 : s])[1]), + (e = s[0])) + : ((o = Math.max(C(n, r, e), 1)), (e = u)); + } + return null == o ? e : e.every(o); + } + return ( + (c.invert = function(t) { + return new Date(f(t)); + }), + (c.domain = function(t) { + return arguments.length ? d(Ag.call(t, Zy)) : d().map(Qy); + }), + (c.ticks = function(t, e) { + var n, + r = d(), + i = r[0], + o = r[r.length - 1], + a = o < i; + return ( + a && ((n = i), (i = o), (o = n)), + (n = (n = S(t, i, o, e)) ? n.range(i, o + 1) : []), + a ? n.reverse() : n + ); + }), + (c.tickFormat = function(t, e) { + return null == e ? w : l(e); + }), + (c.nice = function(t, e) { + var n = d(); + return (t = S(t, n[0], n[n.length - 1], e)) + ? d(Xg(n, t)) + : c; + }), + (c.copy = function() { + return Vg(c, Jy(t, e, n, r, o, a, s, u, l)); + }), + c + ); + } + var tb = function() { + return Sg.apply( + Jy(bm, wm, Tm, Gm, qm, Ym, Qm, tv, Cv).domain([ + new Date(2e3, 0, 1), + new Date(2e3, 0, 2) + ]), + arguments + ); + }, + eb = vm( + function(t) { + t.setUTCDate(1), t.setUTCHours(0, 0, 0, 0); + }, + function(t, e) { + t.setUTCMonth(t.getUTCMonth() + e); + }, + function(t, e) { + return ( + e.getUTCMonth() - + t.getUTCMonth() + + 12 * (e.getUTCFullYear() - t.getUTCFullYear()) + ); + }, + function(t) { + return t.getUTCMonth(); + } + ), + nb = eb, + rb = eb.range, + ib = vm( + function(t) { + t.setUTCMinutes(0, 0, 0); + }, + function(t, e) { + t.setTime(+t + 36e5 * e); + }, + function(t, e) { + return (e - t) / 36e5; + }, + function(t) { + return t.getUTCHours(); + } + ), + ob = ib, + ab = ib.range, + sb = vm( + function(t) { + t.setUTCSeconds(0, 0); + }, + function(t, e) { + t.setTime(+t + e * Em); + }, + function(t, e) { + return (e - t) / Em; + }, + function(t) { + return t.getUTCMinutes(); + } + ), + ub = sb, + lb = sb.range, + cb = function() { + return Sg.apply( + Jy(xv, nb, rv, yv, ob, ub, Qm, tv, Pv).domain([ + Date.UTC(2e3, 0, 1), + Date.UTC(2e3, 0, 2) + ]), + arguments + ); + }; + function fb() { + var t, + e, + n, + r, + i, + o = 0, + a = 1, + s = Rg, + u = !1; + function l(e) { + return isNaN((e = +e)) + ? i + : s( + 0 === n + ? 0.5 + : ((e = (r(e) - t) * n), + u ? Math.max(0, Math.min(1, e)) : e) + ); + } + return ( + (l.domain = function(i) { + return arguments.length + ? ((t = r((o = +i[0]))), + (e = r((a = +i[1]))), + (n = t === e ? 0 : 1 / (e - t)), + l) + : [o, a]; + }), + (l.clamp = function(t) { + return arguments.length ? ((u = !!t), l) : u; + }), + (l.interpolator = function(t) { + return arguments.length ? ((s = t), l) : s; + }), + (l.unknown = function(t) { + return arguments.length ? ((i = t), l) : i; + }), + function(i) { + return ( + (r = i), + (t = i(o)), + (e = i(a)), + (n = t === e ? 0 : 1 / (e - t)), + l + ); + } + ); + } + function db(t, e) { + return e + .domain(t.domain()) + .interpolator(t.interpolator()) + .clamp(t.clamp()) + .unknown(t.unknown()); + } + function hb() { + var t = Ug(fb()(Rg)); + return ( + (t.copy = function() { + return db(t, hb()); + }), + Eg.apply(t, arguments) + ); + } + function pb() { + var t = tm(fb()).domain([1, 10]); + return ( + (t.copy = function() { + return db(t, pb()).base(t.base()); + }), + Eg.apply(t, arguments) + ); + } + function gb() { + var t = im(fb()); + return ( + (t.copy = function() { + return db(t, gb()).constant(t.constant()); + }), + Eg.apply(t, arguments) + ); + } + function mb() { + var t = lm(fb()); + return ( + (t.copy = function() { + return db(t, mb()).exponent(t.exponent()); + }), + Eg.apply(t, arguments) + ); + } + function vb() { + return mb.apply(null, arguments).exponent(0.5); + } + function yb() { + var t = [], + e = Rg; + function n(n) { + if (!isNaN((n = +n))) + return e((u(t, n) - 1) / (t.length - 1)); + } + return ( + (n.domain = function(e) { + if (!arguments.length) return t.slice(); + t = []; + for (var i, o = 0, a = e.length; o < a; ++o) + null == (i = e[o]) || isNaN((i = +i)) || t.push(i); + return t.sort(r), n; + }), + (n.interpolator = function(t) { + return arguments.length ? ((e = t), n) : e; + }), + (n.copy = function() { + return yb(e).domain(t); + }), + Eg.apply(n, arguments) + ); + } + function bb() { + var t, + e, + n, + r, + i, + o, + a, + s = 0, + u = 0.5, + l = 1, + c = Rg, + f = !1; + function d(t) { + return isNaN((t = +t)) + ? a + : ((t = 0.5 + ((t = +o(t)) - e) * (t < e ? r : i)), + c(f ? Math.max(0, Math.min(1, t)) : t)); + } + return ( + (d.domain = function(a) { + return arguments.length + ? ((t = o((s = +a[0]))), + (e = o((u = +a[1]))), + (n = o((l = +a[2]))), + (r = t === e ? 0 : 0.5 / (e - t)), + (i = e === n ? 0 : 0.5 / (n - e)), + d) + : [s, u, l]; + }), + (d.clamp = function(t) { + return arguments.length ? ((f = !!t), d) : f; + }), + (d.interpolator = function(t) { + return arguments.length ? ((c = t), d) : c; + }), + (d.unknown = function(t) { + return arguments.length ? ((a = t), d) : a; + }), + function(a) { + return ( + (o = a), + (t = a(s)), + (e = a(u)), + (n = a(l)), + (r = t === e ? 0 : 0.5 / (e - t)), + (i = e === n ? 0 : 0.5 / (n - e)), + d + ); + } + ); + } + function _b() { + var t = Ug(bb()(Rg)); + return ( + (t.copy = function() { + return db(t, _b()); + }), + Eg.apply(t, arguments) + ); + } + function xb() { + var t = tm(bb()).domain([0.1, 1, 10]); + return ( + (t.copy = function() { + return db(t, xb()).base(t.base()); + }), + Eg.apply(t, arguments) + ); + } + function wb() { + var t = im(bb()); + return ( + (t.copy = function() { + return db(t, wb()).constant(t.constant()); + }), + Eg.apply(t, arguments) + ); + } + function Sb() { + var t = lm(bb()); + return ( + (t.copy = function() { + return db(t, Sb()).exponent(t.exponent()); + }), + Eg.apply(t, arguments) + ); + } + function Eb() { + return Sb.apply(null, arguments).exponent(0.5); + } + var kb = function(t) { + for ( + var e = (t.length / 6) | 0, n = new Array(e), r = 0; + r < e; + + ) + n[r] = '#' + t.slice(6 * r, 6 * ++r); + return n; + }, + Ab = kb( + '1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf' + ), + Tb = kb('7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666'), + Cb = kb('1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666'), + Ob = kb( + 'a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928' + ), + Pb = kb( + 'fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2' + ), + Mb = kb('b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc'), + Lb = kb( + 'e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999' + ), + jb = kb('66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3'), + Db = kb( + '8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f' + ), + Rb = kb( + '4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab' + ), + zb = function(t) { + return Bn(t[t.length - 1]); + }, + Nb = new Array(3) + .concat( + 'd8b365f5f5f55ab4ac', + 'a6611adfc27d80cdc1018571', + 'a6611adfc27df5f5f580cdc1018571', + '8c510ad8b365f6e8c3c7eae55ab4ac01665e', + '8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e', + '8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e', + '8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e', + '5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30', + '5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30' + ) + .map(kb), + Ib = zb(Nb), + Fb = new Array(3) + .concat( + 'af8dc3f7f7f77fbf7b', + '7b3294c2a5cfa6dba0008837', + '7b3294c2a5cff7f7f7a6dba0008837', + '762a83af8dc3e7d4e8d9f0d37fbf7b1b7837', + '762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837', + '762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837', + '762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837', + '40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b', + '40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b' + ) + .map(kb), + Vb = zb(Fb), + Bb = new Array(3) + .concat( + 'e9a3c9f7f7f7a1d76a', + 'd01c8bf1b6dab8e1864dac26', + 'd01c8bf1b6daf7f7f7b8e1864dac26', + 'c51b7de9a3c9fde0efe6f5d0a1d76a4d9221', + 'c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221', + 'c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221', + 'c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221', + '8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419', + '8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419' + ) + .map(kb), + Gb = zb(Bb), + Hb = new Array(3) + .concat( + '998ec3f7f7f7f1a340', + '5e3c99b2abd2fdb863e66101', + '5e3c99b2abd2f7f7f7fdb863e66101', + '542788998ec3d8daebfee0b6f1a340b35806', + '542788998ec3d8daebf7f7f7fee0b6f1a340b35806', + '5427888073acb2abd2d8daebfee0b6fdb863e08214b35806', + '5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806', + '2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08', + '2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08' + ) + .map(kb), + Ub = zb(Hb), + qb = new Array(3) + .concat( + 'ef8a62f7f7f767a9cf', + 'ca0020f4a58292c5de0571b0', + 'ca0020f4a582f7f7f792c5de0571b0', + 'b2182bef8a62fddbc7d1e5f067a9cf2166ac', + 'b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac', + 'b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac', + 'b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac', + '67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061', + '67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061' + ) + .map(kb), + Wb = zb(qb), + Xb = new Array(3) + .concat( + 'ef8a62ffffff999999', + 'ca0020f4a582bababa404040', + 'ca0020f4a582ffffffbababa404040', + 'b2182bef8a62fddbc7e0e0e09999994d4d4d', + 'b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d', + 'b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d', + 'b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d', + '67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a', + '67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a' + ) + .map(kb), + Yb = zb(Xb), + $b = new Array(3) + .concat( + 'fc8d59ffffbf91bfdb', + 'd7191cfdae61abd9e92c7bb6', + 'd7191cfdae61ffffbfabd9e92c7bb6', + 'd73027fc8d59fee090e0f3f891bfdb4575b4', + 'd73027fc8d59fee090ffffbfe0f3f891bfdb4575b4', + 'd73027f46d43fdae61fee090e0f3f8abd9e974add14575b4', + 'd73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4', + 'a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695', + 'a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695' + ) + .map(kb), + Kb = zb($b), + Qb = new Array(3) + .concat( + 'fc8d59ffffbf91cf60', + 'd7191cfdae61a6d96a1a9641', + 'd7191cfdae61ffffbfa6d96a1a9641', + 'd73027fc8d59fee08bd9ef8b91cf601a9850', + 'd73027fc8d59fee08bffffbfd9ef8b91cf601a9850', + 'd73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850', + 'd73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850', + 'a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837', + 'a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837' + ) + .map(kb), + Zb = zb(Qb), + Jb = new Array(3) + .concat( + 'fc8d59ffffbf99d594', + 'd7191cfdae61abdda42b83ba', + 'd7191cfdae61ffffbfabdda42b83ba', + 'd53e4ffc8d59fee08be6f59899d5943288bd', + 'd53e4ffc8d59fee08bffffbfe6f59899d5943288bd', + 'd53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd', + 'd53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd', + '9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2', + '9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2' + ) + .map(kb), + t_ = zb(Jb), + e_ = new Array(3) + .concat( + 'e5f5f999d8c92ca25f', + 'edf8fbb2e2e266c2a4238b45', + 'edf8fbb2e2e266c2a42ca25f006d2c', + 'edf8fbccece699d8c966c2a42ca25f006d2c', + 'edf8fbccece699d8c966c2a441ae76238b45005824', + 'f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824', + 'f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b' + ) + .map(kb), + n_ = zb(e_), + r_ = new Array(3) + .concat( + 'e0ecf49ebcda8856a7', + 'edf8fbb3cde38c96c688419d', + 'edf8fbb3cde38c96c68856a7810f7c', + 'edf8fbbfd3e69ebcda8c96c68856a7810f7c', + 'edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b', + 'f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b', + 'f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b' + ) + .map(kb), + i_ = zb(r_), + o_ = new Array(3) + .concat( + 'e0f3dba8ddb543a2ca', + 'f0f9e8bae4bc7bccc42b8cbe', + 'f0f9e8bae4bc7bccc443a2ca0868ac', + 'f0f9e8ccebc5a8ddb57bccc443a2ca0868ac', + 'f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e', + 'f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e', + 'f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081' + ) + .map(kb), + a_ = zb(o_), + s_ = new Array(3) + .concat( + 'fee8c8fdbb84e34a33', + 'fef0d9fdcc8afc8d59d7301f', + 'fef0d9fdcc8afc8d59e34a33b30000', + 'fef0d9fdd49efdbb84fc8d59e34a33b30000', + 'fef0d9fdd49efdbb84fc8d59ef6548d7301f990000', + 'fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000', + 'fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000' + ) + .map(kb), + u_ = zb(s_), + l_ = new Array(3) + .concat( + 'ece2f0a6bddb1c9099', + 'f6eff7bdc9e167a9cf02818a', + 'f6eff7bdc9e167a9cf1c9099016c59', + 'f6eff7d0d1e6a6bddb67a9cf1c9099016c59', + 'f6eff7d0d1e6a6bddb67a9cf3690c002818a016450', + 'fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450', + 'fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636' + ) + .map(kb), + c_ = zb(l_), + f_ = new Array(3) + .concat( + 'ece7f2a6bddb2b8cbe', + 'f1eef6bdc9e174a9cf0570b0', + 'f1eef6bdc9e174a9cf2b8cbe045a8d', + 'f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d', + 'f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b', + 'fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b', + 'fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858' + ) + .map(kb), + d_ = zb(f_), + h_ = new Array(3) + .concat( + 'e7e1efc994c7dd1c77', + 'f1eef6d7b5d8df65b0ce1256', + 'f1eef6d7b5d8df65b0dd1c77980043', + 'f1eef6d4b9dac994c7df65b0dd1c77980043', + 'f1eef6d4b9dac994c7df65b0e7298ace125691003f', + 'f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f', + 'f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f' + ) + .map(kb), + p_ = zb(h_), + g_ = new Array(3) + .concat( + 'fde0ddfa9fb5c51b8a', + 'feebe2fbb4b9f768a1ae017e', + 'feebe2fbb4b9f768a1c51b8a7a0177', + 'feebe2fcc5c0fa9fb5f768a1c51b8a7a0177', + 'feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177', + 'fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177', + 'fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a' + ) + .map(kb), + m_ = zb(g_), + v_ = new Array(3) + .concat( + 'edf8b17fcdbb2c7fb8', + 'ffffcca1dab441b6c4225ea8', + 'ffffcca1dab441b6c42c7fb8253494', + 'ffffccc7e9b47fcdbb41b6c42c7fb8253494', + 'ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84', + 'ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84', + 'ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58' + ) + .map(kb), + y_ = zb(v_), + b_ = new Array(3) + .concat( + 'f7fcb9addd8e31a354', + 'ffffccc2e69978c679238443', + 'ffffccc2e69978c67931a354006837', + 'ffffccd9f0a3addd8e78c67931a354006837', + 'ffffccd9f0a3addd8e78c67941ab5d238443005a32', + 'ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32', + 'ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529' + ) + .map(kb), + __ = zb(b_), + x_ = new Array(3) + .concat( + 'fff7bcfec44fd95f0e', + 'ffffd4fed98efe9929cc4c02', + 'ffffd4fed98efe9929d95f0e993404', + 'ffffd4fee391fec44ffe9929d95f0e993404', + 'ffffd4fee391fec44ffe9929ec7014cc4c028c2d04', + 'ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04', + 'ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506' + ) + .map(kb), + w_ = zb(x_), + S_ = new Array(3) + .concat( + 'ffeda0feb24cf03b20', + 'ffffb2fecc5cfd8d3ce31a1c', + 'ffffb2fecc5cfd8d3cf03b20bd0026', + 'ffffb2fed976feb24cfd8d3cf03b20bd0026', + 'ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026', + 'ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026', + 'ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026' + ) + .map(kb), + E_ = zb(S_), + k_ = new Array(3) + .concat( + 'deebf79ecae13182bd', + 'eff3ffbdd7e76baed62171b5', + 'eff3ffbdd7e76baed63182bd08519c', + 'eff3ffc6dbef9ecae16baed63182bd08519c', + 'eff3ffc6dbef9ecae16baed64292c62171b5084594', + 'f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594', + 'f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b' + ) + .map(kb), + A_ = zb(k_), + T_ = new Array(3) + .concat( + 'e5f5e0a1d99b31a354', + 'edf8e9bae4b374c476238b45', + 'edf8e9bae4b374c47631a354006d2c', + 'edf8e9c7e9c0a1d99b74c47631a354006d2c', + 'edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32', + 'f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32', + 'f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b' + ) + .map(kb), + C_ = zb(T_), + O_ = new Array(3) + .concat( + 'f0f0f0bdbdbd636363', + 'f7f7f7cccccc969696525252', + 'f7f7f7cccccc969696636363252525', + 'f7f7f7d9d9d9bdbdbd969696636363252525', + 'f7f7f7d9d9d9bdbdbd969696737373525252252525', + 'fffffff0f0f0d9d9d9bdbdbd969696737373525252252525', + 'fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000' + ) + .map(kb), + P_ = zb(O_), + M_ = new Array(3) + .concat( + 'efedf5bcbddc756bb1', + 'f2f0f7cbc9e29e9ac86a51a3', + 'f2f0f7cbc9e29e9ac8756bb154278f', + 'f2f0f7dadaebbcbddc9e9ac8756bb154278f', + 'f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486', + 'fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486', + 'fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d' + ) + .map(kb), + L_ = zb(M_), + j_ = new Array(3) + .concat( + 'fee0d2fc9272de2d26', + 'fee5d9fcae91fb6a4acb181d', + 'fee5d9fcae91fb6a4ade2d26a50f15', + 'fee5d9fcbba1fc9272fb6a4ade2d26a50f15', + 'fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d', + 'fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d', + 'fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d' + ) + .map(kb), + D_ = zb(j_), + R_ = new Array(3) + .concat( + 'fee6cefdae6be6550d', + 'feeddefdbe85fd8d3cd94701', + 'feeddefdbe85fd8d3ce6550da63603', + 'feeddefdd0a2fdae6bfd8d3ce6550da63603', + 'feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04', + 'fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04', + 'fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704' + ) + .map(kb), + z_ = zb(R_), + N_ = function(t) { + return ( + (t = Math.max(0, Math.min(1, t))), + 'rgb(' + + Math.max( + 0, + Math.min( + 255, + Math.round( + -4.54 - + t * + (35.34 - + t * + (2381.73 - + t * + (6402.7 - t * (7024.72 - 2710.57 * t)))) + ) + ) + ) + + ', ' + + Math.max( + 0, + Math.min( + 255, + Math.round( + 32.49 + + t * + (170.73 + + t * + (52.82 - + t * (131.46 - t * (176.58 - 67.37 * t)))) + ) + ) + ) + + ', ' + + Math.max( + 0, + Math.min( + 255, + Math.round( + 81.24 + + t * + (442.36 - + t * + (2482.43 - + t * + (6167.24 - + t * (6614.94 - 2475.67 * t)))) + ) + ) + ) + + ')' + ); + }, + I_ = Yr(Ur(300, 0.5, 0), Ur(-240, 0.5, 1)), + F_ = Yr(Ur(-100, 0.75, 0.35), Ur(80, 1.5, 0.8)), + V_ = Yr(Ur(260, 0.75, 0.35), Ur(80, 1.5, 0.8)), + B_ = Ur(), + G_ = function(t) { + (t < 0 || t > 1) && (t -= Math.floor(t)); + var e = Math.abs(t - 0.5); + return ( + (B_.h = 360 * t - 100), + (B_.s = 1.5 - 1.5 * e), + (B_.l = 0.8 - 0.9 * e), + B_ + '' + ); + }, + H_ = vn(), + U_ = Math.PI / 3, + q_ = (2 * Math.PI) / 3, + W_ = function(t) { + var e; + return ( + (t = (0.5 - t) * Math.PI), + (H_.r = 255 * (e = Math.sin(t)) * e), + (H_.g = 255 * (e = Math.sin(t + U_)) * e), + (H_.b = 255 * (e = Math.sin(t + q_)) * e), + H_ + '' + ); + }, + X_ = function(t) { + return ( + (t = Math.max(0, Math.min(1, t))), + 'rgb(' + + Math.max( + 0, + Math.min( + 255, + Math.round( + 34.61 + + t * + (1172.33 - + t * + (10793.56 - + t * + (33300.12 - + t * (38394.49 - 14825.05 * t)))) + ) + ) + ) + + ', ' + + Math.max( + 0, + Math.min( + 255, + Math.round( + 23.31 + + t * + (557.33 + + t * + (1225.33 - + t * + (3574.96 - t * (1073.77 + 707.56 * t)))) + ) + ) + ) + + ', ' + + Math.max( + 0, + Math.min( + 255, + Math.round( + 27.2 + + t * + (3211.1 - + t * + (15327.97 - + t * + (27814 - t * (22569.18 - 6838.66 * t)))) + ) + ) + ) + + ')' + ); + }; + function Y_(t) { + var e = t.length; + return function(n) { + return t[Math.max(0, Math.min(e - 1, Math.floor(n * e)))]; + }; + } + var $_ = Y_( + kb( + '44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725' + ) + ), + K_ = Y_( + kb( + '00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf' + ) + ), + Q_ = Y_( + kb( + '00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4' + ) + ), + Z_ = Y_( + kb( + '0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921' + ) + ), + J_ = function(t) { + return function() { + return t; + }; + }, + tx = Math.abs, + ex = Math.atan2, + nx = Math.cos, + rx = Math.max, + ix = Math.min, + ox = Math.sin, + ax = Math.sqrt, + sx = 1e-12, + ux = Math.PI, + lx = ux / 2, + cx = 2 * ux; + function fx(t) { + return t >= 1 ? lx : t <= -1 ? -lx : Math.asin(t); + } + function dx(t) { + return t.innerRadius; + } + function hx(t) { + return t.outerRadius; + } + function px(t) { + return t.startAngle; + } + function gx(t) { + return t.endAngle; + } + function mx(t) { + return t && t.padAngle; + } + function vx(t, e, n, r, i, o, a) { + var s = t - n, + u = e - r, + l = (a ? o : -o) / ax(s * s + u * u), + c = l * u, + f = -l * s, + d = t + c, + h = e + f, + p = n + c, + g = r + f, + m = (d + p) / 2, + v = (h + g) / 2, + y = p - d, + b = g - h, + _ = y * y + b * b, + x = i - o, + w = d * g - p * h, + S = (b < 0 ? -1 : 1) * ax(rx(0, x * x * _ - w * w)), + E = (w * b - y * S) / _, + k = (-w * y - b * S) / _, + A = (w * b + y * S) / _, + T = (-w * y + b * S) / _, + C = E - m, + O = k - v, + P = A - m, + M = T - v; + return ( + C * C + O * O > P * P + M * M && ((E = A), (k = T)), + { + cx: E, + cy: k, + x01: -c, + y01: -f, + x11: E * (i / x - 1), + y11: k * (i / x - 1) + } + ); + } + var yx = function() { + var t = dx, + e = hx, + n = J_(0), + r = null, + i = px, + o = gx, + a = mx, + s = null; + function u() { + var u, + l, + c, + f = +t.apply(this, arguments), + d = +e.apply(this, arguments), + h = i.apply(this, arguments) - lx, + p = o.apply(this, arguments) - lx, + g = tx(p - h), + m = p > h; + if ( + (s || (s = u = Fa()), + d < f && ((l = d), (d = f), (f = l)), + d > sx) + ) + if (g > cx - sx) + s.moveTo(d * nx(h), d * ox(h)), + s.arc(0, 0, d, h, p, !m), + f > sx && + (s.moveTo(f * nx(p), f * ox(p)), + s.arc(0, 0, f, p, h, m)); + else { + var v, + y, + b = h, + _ = p, + x = h, + w = p, + S = g, + E = g, + k = a.apply(this, arguments) / 2, + A = + k > sx && + (r ? +r.apply(this, arguments) : ax(f * f + d * d)), + T = ix(tx(d - f) / 2, +n.apply(this, arguments)), + C = T, + O = T; + if (A > sx) { + var P = fx((A / f) * ox(k)), + M = fx((A / d) * ox(k)); + (S -= 2 * P) > sx + ? ((x += P *= m ? 1 : -1), (w -= P)) + : ((S = 0), (x = w = (h + p) / 2)), + (E -= 2 * M) > sx + ? ((b += M *= m ? 1 : -1), (_ -= M)) + : ((E = 0), (b = _ = (h + p) / 2)); + } + var L = d * nx(b), + j = d * ox(b), + D = f * nx(w), + R = f * ox(w); + if (T > sx) { + var z, + N = d * nx(_), + I = d * ox(_), + F = f * nx(x), + V = f * ox(x); + if ( + g < ux && + (z = (function(t, e, n, r, i, o, a, s) { + var u = n - t, + l = r - e, + c = a - i, + f = s - o, + d = f * u - c * l; + if (!(d * d < sx)) + return [ + t + (d = (c * (e - o) - f * (t - i)) / d) * u, + e + d * l + ]; + })(L, j, F, V, N, I, D, R)) + ) { + var B = L - z[0], + G = j - z[1], + H = N - z[0], + U = I - z[1], + q = + 1 / + ox( + ((c = + (B * H + G * U) / + (ax(B * B + G * G) * ax(H * H + U * U))) > 1 + ? 0 + : c < -1 + ? ux + : Math.acos(c)) / 2 + ), + W = ax(z[0] * z[0] + z[1] * z[1]); + (C = ix(T, (f - W) / (q - 1))), + (O = ix(T, (d - W) / (q + 1))); + } + } + E > sx + ? O > sx + ? ((v = vx(F, V, L, j, d, O, m)), + (y = vx(N, I, D, R, d, O, m)), + s.moveTo(v.cx + v.x01, v.cy + v.y01), + O < T + ? s.arc( + v.cx, + v.cy, + O, + ex(v.y01, v.x01), + ex(y.y01, y.x01), + !m + ) + : (s.arc( + v.cx, + v.cy, + O, + ex(v.y01, v.x01), + ex(v.y11, v.x11), + !m + ), + s.arc( + 0, + 0, + d, + ex(v.cy + v.y11, v.cx + v.x11), + ex(y.cy + y.y11, y.cx + y.x11), + !m + ), + s.arc( + y.cx, + y.cy, + O, + ex(y.y11, y.x11), + ex(y.y01, y.x01), + !m + ))) + : (s.moveTo(L, j), s.arc(0, 0, d, b, _, !m)) + : s.moveTo(L, j), + f > sx && S > sx + ? C > sx + ? ((v = vx(D, R, N, I, f, -C, m)), + (y = vx(L, j, F, V, f, -C, m)), + s.lineTo(v.cx + v.x01, v.cy + v.y01), + C < T + ? s.arc( + v.cx, + v.cy, + C, + ex(v.y01, v.x01), + ex(y.y01, y.x01), + !m + ) + : (s.arc( + v.cx, + v.cy, + C, + ex(v.y01, v.x01), + ex(v.y11, v.x11), + !m + ), + s.arc( + 0, + 0, + f, + ex(v.cy + v.y11, v.cx + v.x11), + ex(y.cy + y.y11, y.cx + y.x11), + m + ), + s.arc( + y.cx, + y.cy, + C, + ex(y.y11, y.x11), + ex(y.y01, y.x01), + !m + ))) + : s.arc(0, 0, f, w, x, m) + : s.lineTo(D, R); + } + else s.moveTo(0, 0); + if ((s.closePath(), u)) return (s = null), u + '' || null; + } + return ( + (u.centroid = function() { + var n = + (+t.apply(this, arguments) + + +e.apply(this, arguments)) / + 2, + r = + (+i.apply(this, arguments) + + +o.apply(this, arguments)) / + 2 - + ux / 2; + return [nx(r) * n, ox(r) * n]; + }), + (u.innerRadius = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : J_(+e)), u) + : t; + }), + (u.outerRadius = function(t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : J_(+t)), u) + : e; + }), + (u.cornerRadius = function(t) { + return arguments.length + ? ((n = 'function' == typeof t ? t : J_(+t)), u) + : n; + }), + (u.padRadius = function(t) { + return arguments.length + ? ((r = + null == t + ? null + : 'function' == typeof t + ? t + : J_(+t)), + u) + : r; + }), + (u.startAngle = function(t) { + return arguments.length + ? ((i = 'function' == typeof t ? t : J_(+t)), u) + : i; + }), + (u.endAngle = function(t) { + return arguments.length + ? ((o = 'function' == typeof t ? t : J_(+t)), u) + : o; + }), + (u.padAngle = function(t) { + return arguments.length + ? ((a = 'function' == typeof t ? t : J_(+t)), u) + : a; + }), + (u.context = function(t) { + return arguments.length + ? ((s = null == t ? null : t), u) + : s; + }), + u + ); + }; + function bx(t) { + this._context = t; + } + bx.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(t, e) { + switch (((t = +t), (e = +e), this._point)) { + case 0: + (this._point = 1), + this._line + ? this._context.lineTo(t, e) + : this._context.moveTo(t, e); + break; + case 1: + this._point = 2; + default: + this._context.lineTo(t, e); + } + } + }; + var _x = function(t) { + return new bx(t); + }; + function xx(t) { + return t[0]; + } + function wx(t) { + return t[1]; + } + var Sx = function() { + var t = xx, + e = wx, + n = J_(!0), + r = null, + i = _x, + o = null; + function a(a) { + var s, + u, + l, + c = a.length, + f = !1; + for (null == r && (o = i((l = Fa()))), s = 0; s <= c; ++s) + !(s < c && n((u = a[s]), s, a)) === f && + ((f = !f) ? o.lineStart() : o.lineEnd()), + f && o.point(+t(u, s, a), +e(u, s, a)); + if (l) return (o = null), l + '' || null; + } + return ( + (a.x = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : J_(+e)), a) + : t; + }), + (a.y = function(t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : J_(+t)), a) + : e; + }), + (a.defined = function(t) { + return arguments.length + ? ((n = 'function' == typeof t ? t : J_(!!t)), a) + : n; + }), + (a.curve = function(t) { + return arguments.length + ? ((i = t), null != r && (o = i(r)), a) + : i; + }), + (a.context = function(t) { + return arguments.length + ? (null == t ? (r = o = null) : (o = i((r = t))), a) + : r; + }), + a + ); + }, + Ex = function() { + var t = xx, + e = null, + n = J_(0), + r = wx, + i = J_(!0), + o = null, + a = _x, + s = null; + function u(u) { + var l, + c, + f, + d, + h, + p = u.length, + g = !1, + m = new Array(p), + v = new Array(p); + for (null == o && (s = a((h = Fa()))), l = 0; l <= p; ++l) { + if (!(l < p && i((d = u[l]), l, u)) === g) + if ((g = !g)) (c = l), s.areaStart(), s.lineStart(); + else { + for ( + s.lineEnd(), s.lineStart(), f = l - 1; + f >= c; + --f + ) + s.point(m[f], v[f]); + s.lineEnd(), s.areaEnd(); + } + g && + ((m[l] = +t(d, l, u)), + (v[l] = +n(d, l, u)), + s.point( + e ? +e(d, l, u) : m[l], + r ? +r(d, l, u) : v[l] + )); + } + if (h) return (s = null), h + '' || null; + } + function l() { + return Sx() + .defined(i) + .curve(a) + .context(o); + } + return ( + (u.x = function(n) { + return arguments.length + ? ((t = 'function' == typeof n ? n : J_(+n)), + (e = null), + u) + : t; + }), + (u.x0 = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : J_(+e)), u) + : t; + }), + (u.x1 = function(t) { + return arguments.length + ? ((e = + null == t + ? null + : 'function' == typeof t + ? t + : J_(+t)), + u) + : e; + }), + (u.y = function(t) { + return arguments.length + ? ((n = 'function' == typeof t ? t : J_(+t)), + (r = null), + u) + : n; + }), + (u.y0 = function(t) { + return arguments.length + ? ((n = 'function' == typeof t ? t : J_(+t)), u) + : n; + }), + (u.y1 = function(t) { + return arguments.length + ? ((r = + null == t + ? null + : 'function' == typeof t + ? t + : J_(+t)), + u) + : r; + }), + (u.lineX0 = u.lineY0 = function() { + return l() + .x(t) + .y(n); + }), + (u.lineY1 = function() { + return l() + .x(t) + .y(r); + }), + (u.lineX1 = function() { + return l() + .x(e) + .y(n); + }), + (u.defined = function(t) { + return arguments.length + ? ((i = 'function' == typeof t ? t : J_(!!t)), u) + : i; + }), + (u.curve = function(t) { + return arguments.length + ? ((a = t), null != o && (s = a(o)), u) + : a; + }), + (u.context = function(t) { + return arguments.length + ? (null == t ? (o = s = null) : (s = a((o = t))), u) + : o; + }), + u + ); }, - n, - h ? g : {} - ) - } - }), - y = {}; - return ( - l && - (y.onMouseOver = function(t) { - return l(e, t); - }), - i.default.createElement( - 'div', - r( - { - style: m.swatch, - onClick: function(t) { - return u(e, t); + kx = function(t, e) { + return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN; }, - title: f, - tabIndex: 0, - onKeyDown: function(t) { - return 13 === t.keyCode && u(e, t); + Ax = function(t) { + return t; + }, + Tx = function() { + var t = Ax, + e = kx, + n = null, + r = J_(0), + i = J_(cx), + o = J_(0); + function a(a) { + var s, + u, + l, + c, + f, + d = a.length, + h = 0, + p = new Array(d), + g = new Array(d), + m = +r.apply(this, arguments), + v = Math.min( + cx, + Math.max(-cx, i.apply(this, arguments) - m) + ), + y = Math.min(Math.abs(v) / d, o.apply(this, arguments)), + b = y * (v < 0 ? -1 : 1); + for (s = 0; s < d; ++s) + (f = g[(p[s] = s)] = +t(a[s], s, a)) > 0 && (h += f); + for ( + null != e + ? p.sort(function(t, n) { + return e(g[t], g[n]); + }) + : null != n && + p.sort(function(t, e) { + return n(a[t], a[e]); + }), + s = 0, + l = h ? (v - d * b) / h : 0; + s < d; + ++s, m = c + ) + (u = p[s]), + (c = m + ((f = g[u]) > 0 ? f * l : 0) + b), + (g[u] = { + data: a[u], + index: s, + value: f, + startAngle: m, + endAngle: c, + padAngle: y + }); + return g; + } + return ( + (a.value = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : J_(+e)), a) + : t; + }), + (a.sortValues = function(t) { + return arguments.length ? ((e = t), (n = null), a) : e; + }), + (a.sort = function(t) { + return arguments.length ? ((n = t), (e = null), a) : n; + }), + (a.startAngle = function(t) { + return arguments.length + ? ((r = 'function' == typeof t ? t : J_(+t)), a) + : r; + }), + (a.endAngle = function(t) { + return arguments.length + ? ((i = 'function' == typeof t ? t : J_(+t)), a) + : i; + }), + (a.padAngle = function(t) { + return arguments.length + ? ((o = 'function' == typeof t ? t : J_(+t)), a) + : o; + }), + a + ); + }, + Cx = Px(_x); + function Ox(t) { + this._curve = t; + } + function Px(t) { + function e(e) { + return new Ox(t(e)); } - }, - y - ), - d, - v && - i.default.createElement(s.default, { - borderRadius: m.swatch.borderRadius, - boxShadow: 'inset 0 0 0 1px rgba(0,0,0,0.1)' - }) - ) - ); - }); - e.default = (0, a.handleFocus)(l); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.handleFocus = void 0); - var r, - i = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }, - o = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - a = n(0), - s = (r = a) && r.__esModule ? r : { default: r }; - function u(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - } - function l(t, e) { - if (!t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !e || ('object' != typeof e && 'function' != typeof e) ? t : e; - } - function c(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof e - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { - value: t, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - e && - (Object.setPrototypeOf - ? Object.setPrototypeOf(t, e) - : (t.__proto__ = e)); - } - e.handleFocus = function(t) { - var e = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : 'span'; - return (function(n) { - function r() { - var t, e, n; - u(this, r); - for (var i = arguments.length, o = Array(i), a = 0; a < i; a++) - o[a] = arguments[a]; - return ( - (e = n = l( - this, - (t = r.__proto__ || Object.getPrototypeOf(r)).call.apply( - t, - [this].concat(o) - ) - )), - (n.state = { focus: !1 }), - (n.handleFocus = function() { - return n.setState({ focus: !0 }); - }), - (n.handleBlur = function() { - return n.setState({ focus: !1 }); - }), - l(n, e) - ); - } - return ( - c(r, n), - o(r, [ - { - key: 'render', - value: function() { - return s.default.createElement( - e, - { onFocus: this.handleFocus, onBlur: this.handleBlur }, - s.default.createElement(t, i({}, this.props, this.state)) + return (e._curve = t), e; + } + function Mx(t) { + var e = t.curve; + return ( + (t.angle = t.x), + delete t.x, + (t.radius = t.y), + delete t.y, + (t.curve = function(t) { + return arguments.length ? e(Px(t)) : e()._curve; + }), + t + ); + } + Ox.prototype = { + areaStart: function() { + this._curve.areaStart(); + }, + areaEnd: function() { + this._curve.areaEnd(); + }, + lineStart: function() { + this._curve.lineStart(); + }, + lineEnd: function() { + this._curve.lineEnd(); + }, + point: function(t, e) { + this._curve.point(e * Math.sin(t), e * -Math.cos(t)); + } + }; + var Lx = function() { + return Mx(Sx().curve(Cx)); + }, + jx = function() { + var t = Ex().curve(Cx), + e = t.curve, + n = t.lineX0, + r = t.lineX1, + i = t.lineY0, + o = t.lineY1; + return ( + (t.angle = t.x), + delete t.x, + (t.startAngle = t.x0), + delete t.x0, + (t.endAngle = t.x1), + delete t.x1, + (t.radius = t.y), + delete t.y, + (t.innerRadius = t.y0), + delete t.y0, + (t.outerRadius = t.y1), + delete t.y1, + (t.lineStartAngle = function() { + return Mx(n()); + }), + delete t.lineX0, + (t.lineEndAngle = function() { + return Mx(r()); + }), + delete t.lineX1, + (t.lineInnerRadius = function() { + return Mx(i()); + }), + delete t.lineY0, + (t.lineOuterRadius = function() { + return Mx(o()); + }), + delete t.lineY1, + (t.curve = function(t) { + return arguments.length ? e(Px(t)) : e()._curve; + }), + t + ); + }, + Dx = function(t, e) { + return [ + (e = +e) * Math.cos((t -= Math.PI / 2)), + e * Math.sin(t) + ]; + }, + Rx = Array.prototype.slice; + function zx(t) { + return t.source; + } + function Nx(t) { + return t.target; + } + function Ix(t) { + var e = zx, + n = Nx, + r = xx, + i = wx, + o = null; + function a() { + var a, + s = Rx.call(arguments), + u = e.apply(this, s), + l = n.apply(this, s); + if ( + (o || (o = a = Fa()), + t( + o, + +r.apply(this, ((s[0] = u), s)), + +i.apply(this, s), + +r.apply(this, ((s[0] = l), s)), + +i.apply(this, s) + ), + a) + ) + return (o = null), a + '' || null; + } + return ( + (a.source = function(t) { + return arguments.length ? ((e = t), a) : e; + }), + (a.target = function(t) { + return arguments.length ? ((n = t), a) : n; + }), + (a.x = function(t) { + return arguments.length + ? ((r = 'function' == typeof t ? t : J_(+t)), a) + : r; + }), + (a.y = function(t) { + return arguments.length + ? ((i = 'function' == typeof t ? t : J_(+t)), a) + : i; + }), + (a.context = function(t) { + return arguments.length + ? ((o = null == t ? null : t), a) + : o; + }), + a + ); + } + function Fx(t, e, n, r, i) { + t.moveTo(e, n), + t.bezierCurveTo((e = (e + r) / 2), n, e, i, r, i); + } + function Vx(t, e, n, r, i) { + t.moveTo(e, n), + t.bezierCurveTo(e, (n = (n + i) / 2), r, n, r, i); + } + function Bx(t, e, n, r, i) { + var o = Dx(e, n), + a = Dx(e, (n = (n + i) / 2)), + s = Dx(r, n), + u = Dx(r, i); + t.moveTo(o[0], o[1]), + t.bezierCurveTo(a[0], a[1], s[0], s[1], u[0], u[1]); + } + function Gx() { + return Ix(Fx); + } + function Hx() { + return Ix(Vx); + } + function Ux() { + var t = Ix(Bx); + return ( + (t.angle = t.x), delete t.x, (t.radius = t.y), delete t.y, t + ); + } + var qx = { + draw: function(t, e) { + var n = Math.sqrt(e / ux); + t.moveTo(n, 0), t.arc(0, 0, n, 0, cx); + } + }, + Wx = { + draw: function(t, e) { + var n = Math.sqrt(e / 5) / 2; + t.moveTo(-3 * n, -n), + t.lineTo(-n, -n), + t.lineTo(-n, -3 * n), + t.lineTo(n, -3 * n), + t.lineTo(n, -n), + t.lineTo(3 * n, -n), + t.lineTo(3 * n, n), + t.lineTo(n, n), + t.lineTo(n, 3 * n), + t.lineTo(-n, 3 * n), + t.lineTo(-n, n), + t.lineTo(-3 * n, n), + t.closePath(); + } + }, + Xx = Math.sqrt(1 / 3), + Yx = 2 * Xx, + $x = { + draw: function(t, e) { + var n = Math.sqrt(e / Yx), + r = n * Xx; + t.moveTo(0, -n), + t.lineTo(r, 0), + t.lineTo(0, n), + t.lineTo(-r, 0), + t.closePath(); + } + }, + Kx = Math.sin(ux / 10) / Math.sin((7 * ux) / 10), + Qx = Math.sin(cx / 10) * Kx, + Zx = -Math.cos(cx / 10) * Kx, + Jx = { + draw: function(t, e) { + var n = Math.sqrt(0.8908130915292852 * e), + r = Qx * n, + i = Zx * n; + t.moveTo(0, -n), t.lineTo(r, i); + for (var o = 1; o < 5; ++o) { + var a = (cx * o) / 5, + s = Math.cos(a), + u = Math.sin(a); + t.lineTo(u * n, -s * n), + t.lineTo(s * r - u * i, u * r + s * i); + } + t.closePath(); + } + }, + tw = { + draw: function(t, e) { + var n = Math.sqrt(e), + r = -n / 2; + t.rect(r, r, n, n); + } + }, + ew = Math.sqrt(3), + nw = { + draw: function(t, e) { + var n = -Math.sqrt(e / (3 * ew)); + t.moveTo(0, 2 * n), + t.lineTo(-ew * n, -n), + t.lineTo(ew * n, -n), + t.closePath(); + } + }, + rw = Math.sqrt(3) / 2, + iw = 1 / Math.sqrt(12), + ow = 3 * (iw / 2 + 1), + aw = { + draw: function(t, e) { + var n = Math.sqrt(e / ow), + r = n / 2, + i = n * iw, + o = r, + a = n * iw + n, + s = -o, + u = a; + t.moveTo(r, i), + t.lineTo(o, a), + t.lineTo(s, u), + t.lineTo(-0.5 * r - rw * i, rw * r + -0.5 * i), + t.lineTo(-0.5 * o - rw * a, rw * o + -0.5 * a), + t.lineTo(-0.5 * s - rw * u, rw * s + -0.5 * u), + t.lineTo(-0.5 * r + rw * i, -0.5 * i - rw * r), + t.lineTo(-0.5 * o + rw * a, -0.5 * a - rw * o), + t.lineTo(-0.5 * s + rw * u, -0.5 * u - rw * s), + t.closePath(); + } + }, + sw = [qx, Wx, $x, tw, Jx, nw, aw], + uw = function() { + var t = J_(qx), + e = J_(64), + n = null; + function r() { + var r; + if ( + (n || (n = r = Fa()), + t + .apply(this, arguments) + .draw(n, +e.apply(this, arguments)), + r) + ) + return (n = null), r + '' || null; + } + return ( + (r.type = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : J_(e)), r) + : t; + }), + (r.size = function(t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : J_(+t)), r) + : e; + }), + (r.context = function(t) { + return arguments.length + ? ((n = null == t ? null : t), r) + : n; + }), + r ); - } + }, + lw = function() {}; + function cw(t, e, n) { + t._context.bezierCurveTo( + (2 * t._x0 + t._x1) / 3, + (2 * t._y0 + t._y1) / 3, + (t._x0 + 2 * t._x1) / 3, + (t._y0 + 2 * t._y1) / 3, + (t._x0 + 4 * t._x1 + e) / 6, + (t._y0 + 4 * t._y1 + n) / 6 + ); } - ]), - r - ); - })(s.default.Component); - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.AlphaPointer = void 0); - var r = o(n(0)), - i = o(n(2)); - function o(t) { - return t && t.__esModule ? t : { default: t }; - } - var a = (e.AlphaPointer = function(t) { - var e = t.direction, - n = (0, i.default)( - { - default: { - picker: { - width: '18px', - height: '18px', - borderRadius: '50%', - transform: 'translate(-9px, -1px)', - backgroundColor: 'rgb(248, 248, 248)', - boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)' - } - }, - vertical: { picker: { transform: 'translate(-3px, -9px)' } } - }, - { vertical: 'vertical' === e } - ); - return r.default.createElement('div', { style: n.picker }); - }); - e.default = a; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), (e.Block = void 0); - var r = c(n(0)), - i = c(n(1)), - o = c(n(2)), - a = c(n(8)), - s = c(n(19)), - u = n(4), - l = c(n(379)); - function c(t) { - return t && t.__esModule ? t : { default: t }; - } - var f = (e.Block = function(t) { - var e = t.onChange, - n = t.onSwatchHover, - i = t.hex, - c = t.colors, - f = t.width, - d = t.triangle, - h = t.styles, - p = void 0 === h ? {} : h, - g = t.className, - v = void 0 === g ? '' : g, - m = 'transparent' === i, - y = function(t, n) { - s.default.isValidHex(t) && e({ hex: t, source: 'hex' }, n); - }, - b = (0, o.default)( - (0, a.default)( - { - default: { - card: { - width: f, - background: '#fff', - boxShadow: '0 1px rgba(0,0,0,.1)', - borderRadius: '6px', - position: 'relative' - }, - head: { - height: '110px', - background: i, - borderRadius: '6px 6px 0 0', - display: 'flex', - alignItems: 'center', - justifyContent: 'center', - position: 'relative' - }, - body: { padding: '10px' }, - label: { - fontSize: '18px', - color: s.default.getContrastingColor(i), - position: 'relative' - }, - triangle: { - width: '0px', - height: '0px', - borderStyle: 'solid', - borderWidth: '0 10px 10px 10px', - borderColor: - 'transparent transparent ' + i + ' transparent', - position: 'absolute', - top: '-10px', - left: '50%', - marginLeft: '-10px' - }, - input: { - width: '100%', - fontSize: '12px', - color: '#666', - border: '0px', - outline: 'none', - height: '22px', - boxShadow: 'inset 0 0 0 1px #ddd', - borderRadius: '4px', - padding: '0 7px', - boxSizing: 'border-box' + function fw(t) { + this._context = t; + } + fw.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: + cw(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); }, - 'hide-triangle': { triangle: { display: 'none' } } - }, - p - ), - { 'hide-triangle': 'hide' === d } - ); - return r.default.createElement( - 'div', - { style: b.card, className: 'block-picker ' + v }, - r.default.createElement('div', { style: b.triangle }), - r.default.createElement( - 'div', - { style: b.head }, - m && - r.default.createElement(u.Checkboard, { - borderRadius: '6px 6px 0 0' - }), - r.default.createElement('div', { style: b.label }, i) - ), - r.default.createElement( - 'div', - { style: b.body }, - r.default.createElement(l.default, { - colors: c, - onClick: y, - onSwatchHover: n - }), - r.default.createElement(u.EditableInput, { - style: { input: b.input }, - value: i, - onChange: y - }) - ) - ); - }); - (f.propTypes = { - width: i.default.oneOfType([i.default.string, i.default.number]), - colors: i.default.arrayOf(i.default.string), - triangle: i.default.oneOf(['top', 'hide']), - styles: i.default.object - }), - (f.defaultProps = { - width: 170, - colors: [ - '#D9E3F0', - '#F47373', - '#697689', - '#37D67A', - '#2CCCE4', - '#555555', - '#dce775', - '#ff8a65', - '#ba68c8' - ], - triangle: 'top', - styles: {} - }), - (e.default = (0, u.ColorWrap)(f)); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.BlockSwatches = void 0); - var r = s(n(0)), - i = s(n(2)), - o = s(n(23)), - a = n(4); - function s(t) { - return t && t.__esModule ? t : { default: t }; - } - var u = (e.BlockSwatches = function(t) { - var e = t.colors, - n = t.onClick, - s = t.onSwatchHover, - u = (0, i.default)({ - default: { - swatches: { marginRight: '-10px' }, - swatch: { - width: '22px', - height: '22px', - float: 'left', - marginRight: '10px', - marginBottom: '10px', - borderRadius: '4px' - }, - clear: { clear: 'both' } - } - }); - return r.default.createElement( - 'div', - { style: u.swatches }, - (0, o.default)(e, function(t) { - return r.default.createElement(a.Swatch, { - key: t, - color: t, - style: u.swatch, - onClick: n, - onHover: s, - focusStyle: { boxShadow: '0 0 4px ' + t } - }); - }), - r.default.createElement('div', { style: u.clear }) - ); - }); - e.default = u; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Circle = void 0); - var r = f(n(0)), - i = f(n(1)), - o = f(n(2)), - a = f(n(23)), - s = f(n(8)), - u = (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]); - return (e.default = t), e; - })(n(147)), - l = n(4), - c = f(n(381)); - function f(t) { - return t && t.__esModule ? t : { default: t }; - } - var d = (e.Circle = function(t) { - var e = t.width, - n = t.onChange, - i = t.onSwatchHover, - u = t.colors, - l = t.hex, - f = t.circleSize, - d = t.styles, - h = void 0 === d ? {} : d, - p = t.circleSpacing, - g = t.className, - v = void 0 === g ? '' : g, - m = (0, o.default)( - (0, s.default)( - { - default: { - card: { - width: e, - display: 'flex', - flexWrap: 'wrap', - marginRight: -p, - marginBottom: -p + point: function(t, e) { + switch (((t = +t), (e = +e), this._point)) { + case 0: + (this._point = 1), + this._line + ? this._context.lineTo(t, e) + : this._context.moveTo(t, e); + 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: + cw(this, t, e); } + (this._x0 = this._x1), + (this._x1 = t), + (this._y0 = this._y1), + (this._y1 = e); } - }, - h - ) - ), - y = function(t, e) { - return n({ hex: t, source: 'hex' }, e); - }; - return r.default.createElement( - 'div', - { style: m.card, className: 'circle-picker ' + v }, - (0, a.default)(u, function(t) { - return r.default.createElement(c.default, { - key: t, - color: t, - onClick: y, - onSwatchHover: i, - active: l === t.toLowerCase(), - circleSize: f, - circleSpacing: p - }); - }) - ); - }); - (d.propTypes = { - width: i.default.oneOfType([i.default.string, i.default.number]), - circleSize: i.default.number, - circleSpacing: i.default.number, - styles: i.default.object - }), - (d.defaultProps = { - width: 252, - circleSize: 28, - circleSpacing: 14, - colors: [ - u.red[500], - u.pink[500], - u.purple[500], - u.deepPurple[500], - u.indigo[500], - u.blue[500], - u.lightBlue[500], - u.cyan[500], - u.teal[500], - u.green[500], - u.lightGreen[500], - u.lime[500], - u.yellow[500], - u.amber[500], - u.orange[500], - u.deepOrange[500], - u.brown[500], - u.blueGrey[500] - ], - styles: {} - }), - (e.default = (0, l.ColorWrap)(d)); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.CircleSwatch = void 0); - var r = s(n(0)), - i = n(2), - o = s(i), - a = n(4); - function s(t) { - return t && t.__esModule ? t : { default: t }; - } - var u = (e.CircleSwatch = function(t) { - var e = t.color, - n = t.onClick, - i = t.onSwatchHover, - s = t.hover, - u = t.active, - l = t.circleSize, - c = t.circleSpacing, - f = (0, o.default)( - { - default: { - swatch: { - width: l, - height: l, - marginRight: c, - marginBottom: c, - transform: 'scale(1)', - transition: '100ms transform ease' + }; + var dw = function(t) { + return new fw(t); + }; + function hw(t) { + this._context = t; + } + hw.prototype = { + areaStart: lw, + areaEnd: lw, + 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); }, - Swatch: { - borderRadius: '50%', - background: 'transparent', - boxShadow: 'inset 0 0 0 ' + l / 2 + 'px ' + e, - transition: '100ms box-shadow ease' - } - }, - hover: { swatch: { transform: 'scale(1.2)' } }, - active: { Swatch: { boxShadow: 'inset 0 0 0 3px ' + e } } - }, - { hover: s, active: u } - ); - return r.default.createElement( - 'div', - { style: f.swatch }, - r.default.createElement(a.Swatch, { - style: f.Swatch, - color: e, - onClick: n, - onHover: i, - focusStyle: { boxShadow: f.Swatch.boxShadow + ', 0 0 5px ' + e } - }) - ); - }); - (u.defaultProps = { circleSize: 28, circleSpacing: 14 }), - (e.default = (0, i.handleHover)(u)); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Chrome = void 0); - var r = f(n(0)), - i = f(n(1)), - o = f(n(2)), - a = f(n(8)), - s = n(4), - u = f(n(383)), - l = f(n(385)), - c = f(n(386)); - function f(t) { - return t && t.__esModule ? t : { default: t }; - } - var d = (e.Chrome = function(t) { - var e = t.width, - n = t.onChange, - i = t.disableAlpha, - f = t.rgb, - d = t.hsl, - h = t.hsv, - p = t.hex, - g = t.renderers, - v = t.styles, - m = void 0 === v ? {} : v, - y = t.className, - b = void 0 === y ? '' : y, - _ = t.defaultView, - x = (0, o.default)( - (0, a.default)( - { - default: { - picker: { - width: e, - background: '#fff', - borderRadius: '2px', - boxShadow: - '0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)', - boxSizing: 'initial', - fontFamily: 'Menlo' - }, - saturation: { - width: '100%', - paddingBottom: '55%', - position: 'relative', - borderRadius: '2px 2px 0 0', - overflow: 'hidden' - }, - Saturation: { radius: '2px 2px 0 0' }, - body: { padding: '16px 16px 12px' }, - controls: { display: 'flex' }, - color: { width: '32px' }, - swatch: { - marginTop: '6px', - width: '16px', - height: '16px', - borderRadius: '8px', - position: 'relative', - overflow: 'hidden' - }, - active: { - absolute: '0px 0px 0px 0px', - borderRadius: '8px', - boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.1)', - background: - 'rgba(' + - f.r + - ', ' + - f.g + - ', ' + - f.b + - ', ' + - f.a + - ')', - zIndex: '2' - }, - toggles: { flex: '1' }, - hue: { - height: '10px', - position: 'relative', - marginBottom: '8px' - }, - Hue: { radius: '2px' }, - alpha: { height: '10px', position: 'relative' }, - Alpha: { radius: '2px' } + 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); + } }, - disableAlpha: { - color: { width: '22px' }, - alpha: { display: 'none' }, - hue: { marginBottom: '0px' }, - swatch: { width: '10px', height: '10px', marginTop: '0px' } + point: function(t, e) { + switch (((t = +t), (e = +e), this._point)) { + case 0: + (this._point = 1), (this._x2 = t), (this._y2 = e); + break; + case 1: + (this._point = 2), (this._x3 = t), (this._y3 = e); + break; + case 2: + (this._point = 3), + (this._x4 = t), + (this._y4 = e), + this._context.moveTo( + (this._x0 + 4 * this._x1 + t) / 6, + (this._y0 + 4 * this._y1 + e) / 6 + ); + break; + default: + cw(this, t, e); + } + (this._x0 = this._x1), + (this._x1 = t), + (this._y0 = this._y1), + (this._y1 = e); } - }, - m - ), - { disableAlpha: i } - ); - return r.default.createElement( - 'div', - { style: x.picker, className: 'chrome-picker ' + b }, - r.default.createElement( - 'div', - { style: x.saturation }, - r.default.createElement(s.Saturation, { - style: x.Saturation, - hsl: d, - hsv: h, - pointer: c.default, - onChange: n - }) - ), - r.default.createElement( - 'div', - { style: x.body }, - r.default.createElement( - 'div', - { style: x.controls, className: 'flexbox-fix' }, - r.default.createElement( - 'div', - { style: x.color }, - r.default.createElement( - 'div', - { style: x.swatch }, - r.default.createElement('div', { style: x.active }), - r.default.createElement(s.Checkboard, { renderers: g }) - ) - ), - r.default.createElement( - 'div', - { style: x.toggles }, - r.default.createElement( - 'div', - { style: x.hue }, - r.default.createElement(s.Hue, { - style: x.Hue, - hsl: d, - pointer: l.default, - onChange: n - }) - ), - r.default.createElement( - 'div', - { style: x.alpha }, - r.default.createElement(s.Alpha, { - style: x.Alpha, - rgb: f, - hsl: d, - pointer: l.default, - renderers: g, - onChange: n - }) - ) - ) - ), - r.default.createElement(u.default, { - rgb: f, - hsl: d, - hex: p, - view: _, - onChange: n, - disableAlpha: i - }) - ) - ); - }); - (d.propTypes = { - width: i.default.oneOfType([i.default.string, i.default.number]), - disableAlpha: i.default.bool, - styles: i.default.object, - defaultView: i.default.oneOf(['hex', 'rgb', 'hsl']) - }), - (d.defaultProps = { width: 225, disableAlpha: !1, styles: {} }), - (e.default = (0, s.ColorWrap)(d)); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.ChromeFields = void 0); - var r = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - i = l(n(0)), - o = l(n(2)), - a = l(n(19)), - s = n(4), - u = l(n(384)); - function l(t) { - return t && t.__esModule ? t : { default: t }; - } - var c = (e.ChromeFields = (function(t) { - function e(t) { - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - })(this, e); - var n = (function(t, e) { - if (!t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !e || ('object' != typeof e && 'function' != typeof e) - ? t - : e; - })(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this)); - return ( - (n.toggleViews = function() { - 'hex' === n.state.view - ? n.setState({ view: 'rgb' }) - : 'rgb' === n.state.view - ? n.setState({ view: 'hsl' }) - : 'hsl' === n.state.view && - (1 === n.props.hsl.a - ? n.setState({ view: 'hex' }) - : n.setState({ view: 'rgb' })); - }), - (n.handleChange = function(t, e) { - t.hex - ? a.default.isValidHex(t.hex) && - n.props.onChange({ hex: t.hex, source: 'hex' }, e) - : t.r || t.g || t.b - ? n.props.onChange( - { - r: t.r || n.props.rgb.r, - g: t.g || n.props.rgb.g, - b: t.b || n.props.rgb.b, - source: 'rgb' - }, - e - ) - : t.a - ? (t.a < 0 ? (t.a = 0) : t.a > 1 && (t.a = 1), - n.props.onChange( - { - h: n.props.hsl.h, - s: n.props.hsl.s, - l: n.props.hsl.l, - a: Math.round(100 * t.a) / 100, - source: 'rgb' - }, - e - )) - : (t.h || t.s || t.l) && - ('string' == typeof t.s && - t.s.includes('%') && - (t.s = t.s.replace('%', '')), - 'string' == typeof t.l && - t.l.includes('%') && - (t.l = t.l.replace('%', '')), - n.props.onChange( - { - h: t.h || n.props.hsl.h, - s: Number((t.s && t.s) || n.props.hsl.s), - l: Number((t.l && t.l) || n.props.hsl.l), - source: 'hsl' - }, - e - )); - }), - (n.showHighlight = function(t) { - t.currentTarget.style.background = '#eee'; - }), - (n.hideHighlight = function(t) { - t.currentTarget.style.background = 'transparent'; - }), - 1 !== t.hsl.a && 'hex' === t.view - ? (n.state = { view: 'rgb' }) - : (n.state = { view: t.view }), - n - ); - } - return ( - (function(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof e - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { - value: t, - enumerable: !1, - writable: !0, - configurable: !0 + }; + var pw = function(t) { + return new hw(t); + }; + function gw(t) { + this._context = t; } - })), - e && - (Object.setPrototypeOf - ? Object.setPrototypeOf(t, e) - : (t.__proto__ = e)); - })(e, t), - r( - e, - [ - { - key: 'render', - value: function() { - var t = this, - e = (0, o.default)( - { - default: { - wrap: { paddingTop: '16px', display: 'flex' }, - fields: { - flex: '1', - display: 'flex', - marginLeft: '-6px' - }, - field: { paddingLeft: '6px', width: '100%' }, - alpha: { paddingLeft: '6px', width: '100%' }, - toggle: { - width: '32px', - textAlign: 'right', - position: 'relative' - }, - icon: { - marginRight: '-4px', - marginTop: '12px', - cursor: 'pointer', - position: 'relative' - }, - iconHighlight: { - position: 'absolute', - width: '24px', - height: '28px', - background: '#eee', - borderRadius: '4px', - top: '10px', - left: '12px', - display: 'none' - }, - input: { - fontSize: '11px', - color: '#333', - width: '100%', - borderRadius: '2px', - border: 'none', - boxShadow: 'inset 0 0 0 1px #dadada', - height: '21px', - textAlign: 'center' - }, - label: { - textTransform: 'uppercase', - fontSize: '11px', - lineHeight: '11px', - color: '#969696', - textAlign: 'center', - display: 'block', - marginTop: '12px' - }, - svg: { - fill: '#333', - width: '24px', - height: '24px', - border: '1px transparent solid', - borderRadius: '5px' - } - }, - disableAlpha: { alpha: { display: 'none' } } - }, - this.props, - this.state - ), - n = void 0; - return ( - 'hex' === this.state.view - ? (n = i.default.createElement( - 'div', - { style: e.fields, className: 'flexbox-fix' }, - i.default.createElement( - 'div', - { style: e.field }, - i.default.createElement(s.EditableInput, { - style: { input: e.input, label: e.label }, - label: 'hex', - value: this.props.hex, - onChange: this.handleChange - }) - ) - )) - : 'rgb' === this.state.view - ? (n = i.default.createElement( - 'div', - { style: e.fields, className: 'flexbox-fix' }, - i.default.createElement( - 'div', - { style: e.field }, - i.default.createElement(s.EditableInput, { - style: { input: e.input, label: e.label }, - label: 'r', - value: this.props.rgb.r, - onChange: this.handleChange - }) - ), - i.default.createElement( - 'div', - { style: e.field }, - i.default.createElement(s.EditableInput, { - style: { input: e.input, label: e.label }, - label: 'g', - value: this.props.rgb.g, - onChange: this.handleChange - }) - ), - i.default.createElement( - 'div', - { style: e.field }, - i.default.createElement(s.EditableInput, { - style: { input: e.input, label: e.label }, - label: 'b', - value: this.props.rgb.b, - onChange: this.handleChange - }) - ), - i.default.createElement( - 'div', - { style: e.alpha }, - i.default.createElement(s.EditableInput, { - style: { input: e.input, label: e.label }, - label: 'a', - value: this.props.rgb.a, - arrowOffset: 0.01, - onChange: this.handleChange - }) - ) - )) - : 'hsl' === this.state.view && - (n = i.default.createElement( - 'div', - { style: e.fields, className: 'flexbox-fix' }, - i.default.createElement( - 'div', - { style: e.field }, - i.default.createElement(s.EditableInput, { - style: { input: e.input, label: e.label }, - label: 'h', - value: Math.round(this.props.hsl.h), - onChange: this.handleChange - }) - ), - i.default.createElement( - 'div', - { style: e.field }, - i.default.createElement(s.EditableInput, { - style: { input: e.input, label: e.label }, - label: 's', - value: Math.round(100 * this.props.hsl.s) + '%', - onChange: this.handleChange - }) - ), - i.default.createElement( - 'div', - { style: e.field }, - i.default.createElement(s.EditableInput, { - style: { input: e.input, label: e.label }, - label: 'l', - value: Math.round(100 * this.props.hsl.l) + '%', - onChange: this.handleChange - }) - ), - i.default.createElement( - 'div', - { style: e.alpha }, - i.default.createElement(s.EditableInput, { - style: { input: e.input, label: e.label }, - label: 'a', - value: this.props.hsl.a, - arrowOffset: 0.01, - onChange: this.handleChange - }) - ) - )), - i.default.createElement( - 'div', - { style: e.wrap, className: 'flexbox-fix' }, - n, - i.default.createElement( - 'div', - { style: e.toggle }, - i.default.createElement( - 'div', - { - style: e.icon, - onClick: this.toggleViews, - ref: function(e) { - return (t.icon = e); - } - }, - i.default.createElement(u.default, { - style: e.svg, - onMouseOver: this.showHighlight, - onMouseEnter: this.showHighlight, - onMouseOut: this.hideHighlight - }) - ) - ) + gw.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(t, e) { + switch (((t = +t), (e = +e), 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 + t) / 6, + r = (this._y0 + 4 * this._y1 + e) / 6; + this._line + ? this._context.lineTo(n, r) + : this._context.moveTo(n, r); + break; + case 3: + this._point = 4; + default: + cw(this, t, e); + } + (this._x0 = this._x1), + (this._x1 = t), + (this._y0 = this._y1), + (this._y1 = e); + } + }; + var mw = function(t) { + return new gw(t); + }; + function vw(t, e) { + (this._basis = new fw(t)), (this._beta = e); + } + vw.prototype = { + lineStart: function() { + (this._x = []), (this._y = []), this._basis.lineStart(); + }, + lineEnd: function() { + var t = this._x, + e = this._y, + n = t.length - 1; + if (n > 0) + for ( + var r, + i = t[0], + o = e[0], + a = t[n] - i, + s = e[n] - o, + u = -1; + ++u <= n; + ) - ); + (r = u / n), + this._basis.point( + this._beta * t[u] + (1 - this._beta) * (i + r * a), + this._beta * e[u] + (1 - this._beta) * (o + r * s) + ); + (this._x = this._y = null), this._basis.lineEnd(); + }, + point: function(t, e) { + this._x.push(+t), this._y.push(+e); } - } - ], - [ - { - key: 'getDerivedStateFromProps', - value: function(t, e) { - return 1 !== t.hsl.a && 'hex' === e.view - ? { view: 'rgb' } - : null; + }; + var yw = (function t(e) { + function n(t) { + return 1 === e ? new fw(t) : new vw(t, e); } + return ( + (n.beta = function(e) { + return t(+e); + }), + n + ); + })(0.85); + function bw(t, e, n) { + t._context.bezierCurveTo( + t._x1 + t._k * (t._x2 - t._x0), + t._y1 + t._k * (t._y2 - t._y0), + t._x2 + t._k * (t._x1 - e), + t._y2 + t._k * (t._y1 - n), + t._x2, + t._y2 + ); } - ] - ), - e - ); - })(i.default.Component)); - (c.defaultProps = { view: 'hex' }), (e.default = c); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r, - i = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }, - o = n(0), - a = (r = o) && r.__esModule ? r : { default: r }; - e.default = function(t) { - var e = t.fill, - n = void 0 === e ? 'currentColor' : e, - r = t.width, - o = void 0 === r ? 24 : r, - s = t.height, - u = void 0 === s ? 24 : s, - l = t.style, - c = void 0 === l ? {} : l, - f = (function(t, e) { - var n = {}; - for (var r in t) - e.indexOf(r) >= 0 || - (Object.prototype.hasOwnProperty.call(t, r) && (n[r] = t[r])); - return n; - })(t, ['fill', 'width', 'height', 'style']); - return a.default.createElement( - 'svg', - i( - { - viewBox: '0 0 24 24', - style: i({ fill: n, width: o, height: u }, c) - }, - f - ), - a.default.createElement('path', { - d: - 'M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z' - }) - ); - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.ChromePointer = void 0); - var r = o(n(0)), - i = o(n(2)); - function o(t) { - return t && t.__esModule ? t : { default: t }; - } - var a = (e.ChromePointer = function() { - var t = (0, i.default)({ - default: { - picker: { - width: '12px', - height: '12px', - borderRadius: '6px', - transform: 'translate(-6px, -1px)', - backgroundColor: 'rgb(248, 248, 248)', - boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)' - } - } - }); - return r.default.createElement('div', { style: t.picker }); - }); - e.default = a; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.ChromePointerCircle = void 0); - var r = o(n(0)), - i = o(n(2)); - function o(t) { - return t && t.__esModule ? t : { default: t }; - } - var a = (e.ChromePointerCircle = function() { - var t = (0, i.default)({ - default: { - picker: { - width: '12px', - height: '12px', - borderRadius: '6px', - boxShadow: 'inset 0 0 0 1px #fff', - transform: 'translate(-6px, -6px)' - } - } - }); - return r.default.createElement('div', { style: t.picker }); - }); - e.default = a; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Compact = void 0); - var r = d(n(0)), - i = d(n(1)), - o = d(n(2)), - a = d(n(23)), - s = d(n(8)), - u = d(n(19)), - l = n(4), - c = d(n(388)), - f = d(n(389)); - function d(t) { - return t && t.__esModule ? t : { default: t }; - } - var h = (e.Compact = function(t) { - var e = t.onChange, - n = t.onSwatchHover, - i = t.colors, - d = t.hex, - h = t.rgb, - p = t.styles, - g = void 0 === p ? {} : p, - v = t.className, - m = void 0 === v ? '' : v, - y = (0, o.default)( - (0, s.default)( - { - default: { - Compact: { background: '#f6f6f6', radius: '4px' }, - compact: { - paddingTop: '5px', - paddingLeft: '5px', - boxSizing: 'initial', - width: '240px' - }, - clear: { clear: 'both' } - } - }, - g - ) - ), - b = function(t, n) { - t.hex - ? u.default.isValidHex(t.hex) && - e({ hex: t.hex, source: 'hex' }, n) - : e(t, n); - }; - return r.default.createElement( - l.Raised, - { style: y.Compact, styles: g }, - r.default.createElement( - 'div', - { style: y.compact, className: 'compact-picker ' + m }, - r.default.createElement( - 'div', - null, - (0, a.default)(i, function(t) { - return r.default.createElement(c.default, { - key: t, - color: t, - active: t.toLowerCase() === d, - onClick: b, - onSwatchHover: n - }); - }), - r.default.createElement('div', { style: y.clear }) - ), - r.default.createElement(f.default, { hex: d, rgb: h, onChange: b }) - ) - ); - }); - (h.propTypes = { - colors: i.default.arrayOf(i.default.string), - styles: i.default.object - }), - (h.defaultProps = { - colors: [ - '#4D4D4D', - '#999999', - '#FFFFFF', - '#F44E3B', - '#FE9200', - '#FCDC00', - '#DBDF00', - '#A4DD00', - '#68CCCA', - '#73D8FF', - '#AEA1FF', - '#FDA1FF', - '#333333', - '#808080', - '#cccccc', - '#D33115', - '#E27300', - '#FCC400', - '#B0BC00', - '#68BC00', - '#16A5A5', - '#009CE0', - '#7B64FF', - '#FA28FF', - '#000000', - '#666666', - '#B3B3B3', - '#9F0500', - '#C45100', - '#FB9E00', - '#808900', - '#194D33', - '#0C797D', - '#0062B1', - '#653294', - '#AB149E' - ], - styles: {} - }), - (e.default = (0, l.ColorWrap)(h)); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.CompactColor = void 0); - var r = s(n(0)), - i = s(n(2)), - o = s(n(19)), - a = n(4); - function s(t) { - return t && t.__esModule ? t : { default: t }; - } - var u = (e.CompactColor = function(t) { - var e = t.color, - n = t.onClick, - s = void 0 === n ? function() {} : n, - u = t.onSwatchHover, - l = t.active, - c = (0, i.default)( - { - default: { - color: { - background: e, - width: '15px', - height: '15px', - float: 'left', - marginRight: '5px', - marginBottom: '5px', - position: 'relative', - cursor: 'pointer' + function _w(t, e) { + (this._context = t), (this._k = (1 - e) / 6); + } + _w.prototype = { + areaStart: function() { + this._line = 0; }, - dot: { - absolute: '5px 5px 5px 5px', - background: o.default.getContrastingColor(e), - borderRadius: '50%', - opacity: '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: + bw(this, this._x1, this._y1); + } + (this._line || (0 !== this._line && 1 === this._point)) && + this._context.closePath(), + (this._line = 1 - this._line); + }, + point: function(t, e) { + switch (((t = +t), (e = +e), this._point)) { + case 0: + (this._point = 1), + this._line + ? this._context.lineTo(t, e) + : this._context.moveTo(t, e); + break; + case 1: + (this._point = 2), (this._x1 = t), (this._y1 = e); + break; + case 2: + this._point = 3; + default: + bw(this, t, e); + } + (this._x0 = this._x1), + (this._x1 = this._x2), + (this._x2 = t), + (this._y0 = this._y1), + (this._y1 = this._y2), + (this._y2 = e); } - }, - active: { dot: { opacity: '1' } }, - 'color-#FFFFFF': { - color: { boxShadow: 'inset 0 0 0 1px #ddd' }, - dot: { background: '#000' } - }, - transparent: { dot: { background: '#000' } } - }, - { - active: l, - 'color-#FFFFFF': '#FFFFFF' === e, - transparent: 'transparent' === e - } - ); - return r.default.createElement( - a.Swatch, - { - style: c.color, - color: e, - onClick: s, - onHover: u, - focusStyle: { boxShadow: '0 0 4px ' + e } - }, - r.default.createElement('div', { style: c.dot }) - ); - }); - e.default = u; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.CompactFields = void 0); - var r = a(n(0)), - i = a(n(2)), - o = n(4); - function a(t) { - return t && t.__esModule ? t : { default: t }; - } - var s = (e.CompactFields = function(t) { - var e = t.hex, - n = t.rgb, - a = t.onChange, - s = (0, i.default)({ - default: { - fields: { - display: 'flex', - paddingBottom: '6px', - paddingRight: '5px', - position: 'relative' - }, - active: { - position: 'absolute', - top: '6px', - left: '5px', - height: '9px', - width: '9px', - background: e - }, - HEXwrap: { flex: '6', position: 'relative' }, - HEXinput: { - width: '80%', - padding: '0px', - paddingLeft: '20%', - border: 'none', - outline: 'none', - background: 'none', - fontSize: '12px', - color: '#333', - height: '16px' - }, - HEXlabel: { display: 'none' }, - RGBwrap: { flex: '3', position: 'relative' }, - RGBinput: { - width: '70%', - padding: '0px', - paddingLeft: '30%', - border: 'none', - outline: 'none', - background: 'none', - fontSize: '12px', - color: '#333', - height: '16px' - }, - RGBlabel: { - position: 'absolute', - top: '3px', - left: '0px', - lineHeight: '16px', - textTransform: 'uppercase', - fontSize: '12px', - color: '#999' + }; + var xw = (function t(e) { + function n(t) { + return new _w(t, e); + } + return ( + (n.tension = function(e) { + return t(+e); + }), + n + ); + })(0); + function ww(t, e) { + (this._context = t), (this._k = (1 - e) / 6); } - } - }), - u = function(t, e) { - t.r || t.g || t.b - ? a( - { - r: t.r || n.r, - g: t.g || n.g, - b: t.b || n.b, - source: 'rgb' - }, - e - ) - : a({ hex: t.hex, source: 'hex' }, e); - }; - return r.default.createElement( - 'div', - { style: s.fields, className: 'flexbox-fix' }, - r.default.createElement('div', { style: s.active }), - r.default.createElement(o.EditableInput, { - style: { wrap: s.HEXwrap, input: s.HEXinput, label: s.HEXlabel }, - label: 'hex', - value: e, - onChange: u - }), - r.default.createElement(o.EditableInput, { - style: { wrap: s.RGBwrap, input: s.RGBinput, label: s.RGBlabel }, - label: 'r', - value: n.r, - onChange: u - }), - r.default.createElement(o.EditableInput, { - style: { wrap: s.RGBwrap, input: s.RGBinput, label: s.RGBlabel }, - label: 'g', - value: n.g, - onChange: u - }), - r.default.createElement(o.EditableInput, { - style: { wrap: s.RGBwrap, input: s.RGBinput, label: s.RGBlabel }, - label: 'b', - value: n.b, - onChange: u - }) - ); - }); - e.default = s; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Github = void 0); - var r = c(n(0)), - i = c(n(1)), - o = c(n(2)), - a = c(n(23)), - s = c(n(8)), - u = n(4), - l = c(n(391)); - function c(t) { - return t && t.__esModule ? t : { default: t }; - } - var f = (e.Github = function(t) { - var e = t.width, - n = t.colors, - i = t.onChange, - u = t.onSwatchHover, - c = t.triangle, - f = t.styles, - d = void 0 === f ? {} : f, - h = t.className, - p = void 0 === h ? '' : h, - g = (0, o.default)( - (0, s.default)( - { - default: { - card: { - width: e, - background: '#fff', - border: '1px solid rgba(0,0,0,0.2)', - boxShadow: '0 3px 12px rgba(0,0,0,0.15)', - borderRadius: '4px', - position: 'relative', - padding: '5px', - display: 'flex', - flexWrap: 'wrap' - }, - triangle: { - position: 'absolute', - border: '7px solid transparent', - borderBottomColor: '#fff' - }, - triangleShadow: { - position: 'absolute', - border: '8px solid transparent', - borderBottomColor: 'rgba(0,0,0,0.15)' + ww.prototype = { + areaStart: lw, + areaEnd: lw, + 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); } }, - 'hide-triangle': { - triangle: { display: 'none' }, - triangleShadow: { display: 'none' } + point: function(t, e) { + switch (((t = +t), (e = +e), this._point)) { + case 0: + (this._point = 1), (this._x3 = t), (this._y3 = e); + break; + case 1: + (this._point = 2), + this._context.moveTo((this._x4 = t), (this._y4 = e)); + break; + case 2: + (this._point = 3), (this._x5 = t), (this._y5 = e); + break; + default: + bw(this, t, e); + } + (this._x0 = this._x1), + (this._x1 = this._x2), + (this._x2 = t), + (this._y0 = this._y1), + (this._y1 = this._y2), + (this._y2 = e); + } + }; + var Sw = (function t(e) { + function n(t) { + return new ww(t, e); + } + return ( + (n.tension = function(e) { + return t(+e); + }), + n + ); + })(0); + function Ew(t, e) { + (this._context = t), (this._k = (1 - e) / 6); + } + Ew.prototype = { + areaStart: function() { + this._line = 0; }, - 'top-left-triangle': { - triangle: { top: '-14px', left: '10px' }, - triangleShadow: { top: '-16px', left: '9px' } + areaEnd: function() { + this._line = NaN; }, - 'top-right-triangle': { - triangle: { top: '-14px', right: '10px' }, - triangleShadow: { top: '-16px', right: '9px' } + lineStart: function() { + (this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN), + (this._point = 0); }, - 'bottom-left-triangle': { - triangle: { - top: '35px', - left: '10px', - transform: 'rotate(180deg)' - }, - triangleShadow: { - top: '37px', - left: '9px', - transform: 'rotate(180deg)' + lineEnd: function() { + (this._line || (0 !== this._line && 3 === this._point)) && + this._context.closePath(), + (this._line = 1 - this._line); + }, + point: function(t, e) { + switch (((t = +t), (e = +e), 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: + bw(this, t, e); + } + (this._x0 = this._x1), + (this._x1 = this._x2), + (this._x2 = t), + (this._y0 = this._y1), + (this._y1 = this._y2), + (this._y2 = e); + } + }; + var kw = (function t(e) { + function n(t) { + return new Ew(t, e); + } + return ( + (n.tension = function(e) { + return t(+e); + }), + n + ); + })(0); + function Aw(t, e, n) { + var r = t._x1, + i = t._y1, + o = t._x2, + a = t._y2; + if (t._l01_a > sx) { + var s = 2 * t._l01_2a + 3 * t._l01_a * t._l12_a + t._l12_2a, + u = 3 * t._l01_a * (t._l01_a + t._l12_a); + (r = (r * s - t._x0 * t._l12_2a + t._x2 * t._l01_2a) / u), + (i = (i * s - t._y0 * t._l12_2a + t._y2 * t._l01_2a) / u); + } + if (t._l23_a > sx) { + var l = 2 * t._l23_2a + 3 * t._l23_a * t._l12_a + t._l12_2a, + c = 3 * t._l23_a * (t._l23_a + t._l12_a); + (o = (o * l + t._x1 * t._l23_2a - e * t._l12_2a) / c), + (a = (a * l + t._y1 * t._l23_2a - n * t._l12_2a) / c); + } + t._context.bezierCurveTo(r, i, o, a, t._x2, t._y2); + } + function Tw(t, e) { + (this._context = t), (this._alpha = e); + } + Tw.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); }, - 'bottom-right-triangle': { - triangle: { - top: '35px', - right: '10px', - transform: 'rotate(180deg)' - }, - triangleShadow: { - top: '37px', - right: '9px', - transform: 'rotate(180deg)' + point: function(t, e) { + if (((t = +t), (e = +e), this._point)) { + var n = this._x2 - t, + r = this._y2 - e; + 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(t, e) + : this._context.moveTo(t, e); + break; + case 1: + this._point = 2; + break; + case 2: + this._point = 3; + default: + Aw(this, t, e); } + (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 = t), + (this._y0 = this._y1), + (this._y1 = this._y2), + (this._y2 = e); } - }, - d - ), - { - 'hide-triangle': 'hide' === c, - 'top-left-triangle': 'top-left' === c, - 'top-right-triangle': 'top-right' === c, - 'bottom-left-triangle': 'bottom-left' === c, - 'bottom-right-triangle': 'bottom-right' === c - } - ), - v = function(t, e) { - return i({ hex: t, source: 'hex' }, e); - }; - return r.default.createElement( - 'div', - { style: g.card, className: 'github-picker ' + p }, - r.default.createElement('div', { style: g.triangleShadow }), - r.default.createElement('div', { style: g.triangle }), - (0, a.default)(n, function(t) { - return r.default.createElement(l.default, { - color: t, - key: t, - onClick: v, - onSwatchHover: u - }); - }) - ); - }); - (f.propTypes = { - width: i.default.oneOfType([i.default.string, i.default.number]), - colors: i.default.arrayOf(i.default.string), - triangle: i.default.oneOf([ - 'hide', - 'top-left', - 'top-right', - 'bottom-left', - 'bottom-right' - ]), - styles: i.default.object - }), - (f.defaultProps = { - width: 200, - colors: [ - '#B80000', - '#DB3E00', - '#FCCB00', - '#008B02', - '#006B76', - '#1273DE', - '#004DCF', - '#5300EB', - '#EB9694', - '#FAD0C3', - '#FEF3BD', - '#C1E1C5', - '#BEDADC', - '#C4DEF6', - '#BED3F3', - '#D4C4FB' - ], - triangle: 'top-left', - styles: {} - }), - (e.default = (0, u.ColorWrap)(f)); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.GithubSwatch = void 0); - var r = s(n(0)), - i = n(2), - o = s(i), - a = n(4); - function s(t) { - return t && t.__esModule ? t : { default: t }; - } - var u = (e.GithubSwatch = function(t) { - var e = t.hover, - n = t.color, - i = t.onClick, - s = t.onSwatchHover, - u = { - position: 'relative', - zIndex: '2', - outline: '2px solid #fff', - boxShadow: '0 0 5px 2px rgba(0,0,0,0.25)' - }, - l = (0, o.default)( - { - default: { - swatch: { width: '25px', height: '25px', fontSize: '0' } - }, - hover: { swatch: u } - }, - { hover: e } - ); - return r.default.createElement( - 'div', - { style: l.swatch }, - r.default.createElement(a.Swatch, { - color: n, - onClick: i, - onHover: s, - focusStyle: u - }) - ); - }); - e.default = (0, i.handleHover)(u); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.HuePicker = void 0); - var r = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }, - i = c(n(0)), - o = c(n(1)), - a = c(n(2)), - s = c(n(8)), - u = n(4), - l = c(n(393)); - function c(t) { - return t && t.__esModule ? t : { default: t }; - } - var f = (e.HuePicker = function(t) { - var e = t.width, - n = t.height, - o = t.onChange, - l = t.hsl, - c = t.direction, - f = t.pointer, - d = t.styles, - h = void 0 === d ? {} : d, - p = t.className, - g = void 0 === p ? '' : p, - v = (0, a.default)( - (0, s.default)( - { - default: { - picker: { position: 'relative', width: e, height: n }, - hue: { radius: '2px' } + }; + var Cw = (function t(e) { + function n(t) { + return e ? new Tw(t, e) : new _w(t, 0); } - }, - h - ) - ); - return i.default.createElement( - 'div', - { style: v.picker, className: 'hue-picker ' + g }, - i.default.createElement( - u.Hue, - r({}, v.hue, { - hsl: l, - pointer: f, - onChange: function(t) { - return o({ a: 1, h: t.h, l: 0.5, s: 1 }); - }, - direction: c - }) - ) - ); - }); - (f.propTypes = { styles: o.default.object }), - (f.defaultProps = { - width: '316px', - height: '16px', - direction: 'horizontal', - pointer: l.default, - styles: {} - }), - (e.default = (0, u.ColorWrap)(f)); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.SliderPointer = void 0); - var r = o(n(0)), - i = o(n(2)); - function o(t) { - return t && t.__esModule ? t : { default: t }; - } - var a = (e.SliderPointer = function(t) { - var e = t.direction, - n = (0, i.default)( - { - default: { - picker: { - width: '18px', - height: '18px', - borderRadius: '50%', - transform: 'translate(-9px, -1px)', - backgroundColor: 'rgb(248, 248, 248)', - boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)' + return ( + (n.alpha = function(e) { + return t(+e); + }), + n + ); + })(0.5); + function Ow(t, e) { + (this._context = t), (this._alpha = e); + } + Ow.prototype = { + areaStart: lw, + areaEnd: lw, + 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(t, e) { + if (((t = +t), (e = +e), this._point)) { + var n = this._x2 - t, + r = this._y2 - e; + 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 = t), (this._y3 = e); + break; + case 1: + (this._point = 2), + this._context.moveTo((this._x4 = t), (this._y4 = e)); + break; + case 2: + (this._point = 3), (this._x5 = t), (this._y5 = e); + break; + default: + Aw(this, t, e); + } + (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 = t), + (this._y0 = this._y1), + (this._y1 = this._y2), + (this._y2 = e); + } + }; + var Pw = (function t(e) { + function n(t) { + return e ? new Ow(t, e) : new ww(t, 0); + } + return ( + (n.alpha = function(e) { + return t(+e); + }), + n + ); + })(0.5); + function Mw(t, e) { + (this._context = t), (this._alpha = e); + } + Mw.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(t, e) { + if (((t = +t), (e = +e), this._point)) { + var n = this._x2 - t, + r = this._y2 - e; + 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: + Aw(this, t, e); + } + (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 = t), + (this._y0 = this._y1), + (this._y1 = this._y2), + (this._y2 = e); + } + }; + var Lw = (function t(e) { + function n(t) { + return e ? new Mw(t, e) : new Ew(t, 0); } - }, - vertical: { picker: { transform: 'translate(-3px, -9px)' } } - }, - { vertical: 'vertical' === e } - ); - return r.default.createElement('div', { style: n.picker }); - }); - e.default = a; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Material = void 0); - var r = u(n(0)), - i = u(n(2)), - o = u(n(8)), - a = u(n(19)), - s = n(4); - function u(t) { - return t && t.__esModule ? t : { default: t }; - } - var l = (e.Material = function(t) { - var e = t.onChange, - n = t.hex, - u = t.rgb, - l = t.styles, - c = void 0 === l ? {} : l, - f = t.className, - d = void 0 === f ? '' : f, - h = (0, i.default)( - (0, o.default)( - { - default: { - material: { - width: '98px', - height: '98px', - padding: '16px', - fontFamily: 'Roboto' - }, - HEXwrap: { position: 'relative' }, - HEXinput: { - width: '100%', - marginTop: '12px', - fontSize: '15px', - color: '#333', - padding: '0px', - border: '0px', - borderBottom: '2px solid ' + n, - outline: 'none', - height: '30px' - }, - HEXlabel: { - position: 'absolute', - top: '0px', - left: '0px', - fontSize: '11px', - color: '#999999', - textTransform: 'capitalize' - }, - Hex: { style: {} }, - RGBwrap: { position: 'relative' }, - RGBinput: { - width: '100%', - marginTop: '12px', - fontSize: '15px', - color: '#333', - padding: '0px', - border: '0px', - borderBottom: '1px solid #eee', - outline: 'none', - height: '30px' - }, - RGBlabel: { - position: 'absolute', - top: '0px', - left: '0px', - fontSize: '11px', - color: '#999999', - textTransform: 'capitalize' + return ( + (n.alpha = function(e) { + return t(+e); + }), + n + ); + })(0.5); + function jw(t) { + this._context = t; + } + jw.prototype = { + areaStart: lw, + areaEnd: lw, + lineStart: function() { + this._point = 0; + }, + lineEnd: function() { + this._point && this._context.closePath(); + }, + point: function(t, e) { + (t = +t), + (e = +e), + this._point + ? this._context.lineTo(t, e) + : ((this._point = 1), this._context.moveTo(t, e)); + } + }; + var Dw = function(t) { + return new jw(t); + }; + function Rw(t) { + return t < 0 ? -1 : 1; + } + function zw(t, e, n) { + var r = t._x1 - t._x0, + i = e - t._x1, + o = (t._y1 - t._y0) / (r || (i < 0 && -0)), + a = (n - t._y1) / (i || (r < 0 && -0)), + s = (o * i + a * r) / (r + i); + return ( + (Rw(o) + Rw(a)) * + Math.min(Math.abs(o), Math.abs(a), 0.5 * Math.abs(s)) || 0 + ); + } + function Nw(t, e) { + var n = t._x1 - t._x0; + return n ? ((3 * (t._y1 - t._y0)) / n - e) / 2 : e; + } + function Iw(t, e, n) { + var r = t._x0, + i = t._y0, + o = t._x1, + a = t._y1, + s = (o - r) / 3; + t._context.bezierCurveTo( + r + s, + i + s * e, + o - s, + a - s * n, + o, + a + ); + } + function Fw(t) { + this._context = t; + } + function Vw(t) { + this._context = new Bw(t); + } + function Bw(t) { + this._context = t; + } + function Gw(t) { + return new Fw(t); + } + function Hw(t) { + return new Vw(t); + } + function Uw(t) { + this._context = t; + } + function qw(t) { + var e, + n, + r = t.length - 1, + i = new Array(r), + o = new Array(r), + a = new Array(r); + for ( + i[0] = 0, o[0] = 2, a[0] = t[0] + 2 * t[1], e = 1; + e < r - 1; + ++e + ) + (i[e] = 1), (o[e] = 4), (a[e] = 4 * t[e] + 2 * t[e + 1]); + for ( + i[r - 1] = 2, + o[r - 1] = 7, + a[r - 1] = 8 * t[r - 1] + t[r], + e = 1; + e < r; + ++e + ) + (n = i[e] / o[e - 1]), (o[e] -= n), (a[e] -= n * a[e - 1]); + for (i[r - 1] = a[r - 1] / o[r - 1], e = r - 2; e >= 0; --e) + i[e] = (a[e] - i[e + 1]) / o[e]; + for (o[r - 1] = (t[r] + i[r - 1]) / 2, e = 0; e < r - 1; ++e) + o[e] = 2 * t[e + 1] - i[e + 1]; + return [i, o]; + } + (Fw.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: + Iw(this, this._t0, Nw(this, this._t0)); + } + (this._line || (0 !== this._line && 1 === this._point)) && + this._context.closePath(), + (this._line = 1 - this._line); + }, + point: function(t, e) { + var n = NaN; + if (((e = +e), (t = +t) !== this._x1 || e !== this._y1)) { + switch (this._point) { + case 0: + (this._point = 1), + this._line + ? this._context.lineTo(t, e) + : this._context.moveTo(t, e); + break; + case 1: + this._point = 2; + break; + case 2: + (this._point = 3), + Iw(this, Nw(this, (n = zw(this, t, e))), n); + break; + default: + Iw(this, this._t0, (n = zw(this, t, e))); + } + (this._x0 = this._x1), + (this._x1 = t), + (this._y0 = this._y1), + (this._y1 = e), + (this._t0 = n); + } + } + }), + ((Vw.prototype = Object.create(Fw.prototype)).point = function( + t, + e + ) { + Fw.prototype.point.call(this, e, t); + }), + (Bw.prototype = { + moveTo: function(t, e) { + this._context.moveTo(e, t); }, - split: { - display: 'flex', - marginRight: '-10px', - paddingTop: '11px' + closePath: function() { + this._context.closePath(); }, - third: { flex: '1', paddingRight: '10px' } - } - }, - c - ) - ), - p = function(t, n) { - t.hex - ? a.default.isValidHex(t.hex) && - e({ hex: t.hex, source: 'hex' }, n) - : (t.r || t.g || t.b) && - e( - { - r: t.r || u.r, - g: t.g || u.g, - b: t.b || u.b, - source: 'rgb' + lineTo: function(t, e) { + this._context.lineTo(e, t); }, - n - ); - }; - return r.default.createElement( - s.Raised, - { styles: c }, - r.default.createElement( - 'div', - { style: h.material, className: 'material-picker ' + d }, - r.default.createElement(s.EditableInput, { - style: { wrap: h.HEXwrap, input: h.HEXinput, label: h.HEXlabel }, - label: 'hex', - value: n, - onChange: p - }), - r.default.createElement( - 'div', - { style: h.split, className: 'flexbox-fix' }, - r.default.createElement( - 'div', - { style: h.third }, - r.default.createElement(s.EditableInput, { - style: { - wrap: h.RGBwrap, - input: h.RGBinput, - label: h.RGBlabel + bezierCurveTo: function(t, e, n, r, i, o) { + this._context.bezierCurveTo(e, t, r, n, o, i); + } + }), + (Uw.prototype = { + areaStart: function() { + this._line = 0; }, - label: 'r', - value: u.r, - onChange: p - }) - ), - r.default.createElement( - 'div', - { style: h.third }, - r.default.createElement(s.EditableInput, { - style: { - wrap: h.RGBwrap, - input: h.RGBinput, - label: h.RGBlabel + areaEnd: function() { + this._line = NaN; }, - label: 'g', - value: u.g, - onChange: p - }) - ), - r.default.createElement( - 'div', - { style: h.third }, - r.default.createElement(s.EditableInput, { - style: { - wrap: h.RGBwrap, - input: h.RGBinput, - label: h.RGBlabel + lineStart: function() { + (this._x = []), (this._y = []); }, - label: 'b', - value: u.b, - onChange: p - }) - ) - ) - ) - ); - }); - e.default = (0, s.ColorWrap)(l); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Photoshop = void 0); - var r = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - i = p(n(0)), - o = p(n(1)), - a = p(n(2)), - s = p(n(8)), - u = n(4), - l = p(n(396)), - c = p(n(397)), - f = p(n(398)), - d = p(n(399)), - h = p(n(400)); - function p(t) { - return t && t.__esModule ? t : { default: t }; - } - var g = (e.Photoshop = (function(t) { - function e(t) { - !(function(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - })(this, e); - var n = (function(t, e) { - if (!t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !e || ('object' != typeof e && 'function' != typeof e) - ? t - : e; - })(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this)); - return (n.state = { currentColor: t.hex }), n; - } - return ( - (function(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof e - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { - value: t, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - e && - (Object.setPrototypeOf - ? Object.setPrototypeOf(t, e) - : (t.__proto__ = e)); - })(e, t), - r(e, [ - { - key: 'render', - value: function() { - var t = this.props, - e = t.styles, - n = void 0 === e ? {} : e, - r = t.className, - o = void 0 === r ? '' : r, - p = (0, a.default)( - (0, s.default)( - { - default: { - picker: { - background: '#DCDCDC', - borderRadius: '4px', - boxShadow: - '0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)', - boxSizing: 'initial', - width: '513px' - }, - head: { - backgroundImage: - 'linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)', - borderBottom: '1px solid #B1B1B1', - boxShadow: - 'inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)', - height: '23px', - lineHeight: '24px', - borderRadius: '4px 4px 0 0', - fontSize: '13px', - color: '#4D4D4D', - textAlign: 'center' - }, - body: { padding: '15px 15px 0', display: 'flex' }, - saturation: { - width: '256px', - height: '256px', - position: 'relative', - border: '2px solid #B3B3B3', - borderBottom: '2px solid #F0F0F0', - overflow: 'hidden' - }, - hue: { - position: 'relative', - height: '256px', - width: '19px', - marginLeft: '10px', - border: '2px solid #B3B3B3', - borderBottom: '2px solid #F0F0F0' - }, - controls: { width: '180px', marginLeft: '10px' }, - top: { display: 'flex' }, - previews: { width: '60px' }, - actions: { flex: '1', marginLeft: '20px' } - } - }, - n - ) - ); - return i.default.createElement( - 'div', - { style: p.picker, className: 'photoshop-picker ' + o }, - i.default.createElement( - 'div', - { style: p.head }, - this.props.header - ), - i.default.createElement( - 'div', - { style: p.body, className: 'flexbox-fix' }, - i.default.createElement( - 'div', - { style: p.saturation }, - i.default.createElement(u.Saturation, { - hsl: this.props.hsl, - hsv: this.props.hsv, - pointer: c.default, - onChange: this.props.onChange - }) - ), - i.default.createElement( - 'div', - { style: p.hue }, - i.default.createElement(u.Hue, { - direction: 'vertical', - hsl: this.props.hsl, - pointer: f.default, - onChange: this.props.onChange - }) - ), - i.default.createElement( - 'div', - { style: p.controls }, - i.default.createElement( - 'div', - { style: p.top, className: 'flexbox-fix' }, - i.default.createElement( - 'div', - { style: p.previews }, - i.default.createElement(h.default, { - rgb: this.props.rgb, - currentColor: this.state.currentColor - }) - ), - i.default.createElement( - 'div', - { style: p.actions }, - i.default.createElement(d.default, { - label: 'OK', - onClick: this.props.onAccept, - active: !0 - }), - i.default.createElement(d.default, { - label: 'Cancel', - onClick: this.props.onCancel - }), - i.default.createElement(l.default, { - onChange: this.props.onChange, - rgb: this.props.rgb, - hsv: this.props.hsv, - hex: this.props.hex - }) + lineEnd: function() { + var t = this._x, + e = this._y, + n = t.length; + if (n) + if ( + (this._line + ? this._context.lineTo(t[0], e[0]) + : this._context.moveTo(t[0], e[0]), + 2 === n) + ) + this._context.lineTo(t[1], e[1]); + else + for ( + var r = qw(t), i = qw(e), o = 0, a = 1; + a < n; + ++o, ++a ) + this._context.bezierCurveTo( + r[0][o], + i[0][o], + r[1][o], + i[1][o], + t[a], + e[a] + ); + (this._line || (0 !== this._line && 1 === n)) && + this._context.closePath(), + (this._line = 1 - this._line), + (this._x = this._y = null); + }, + point: function(t, e) { + this._x.push(+t), this._y.push(+e); + } + }); + var Ww = function(t) { + return new Uw(t); + }; + function Xw(t, e) { + (this._context = t), (this._t = e); + } + Xw.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(t, e) { + switch (((t = +t), (e = +e), this._point)) { + case 0: + (this._point = 1), + this._line + ? this._context.lineTo(t, e) + : this._context.moveTo(t, e); + break; + case 1: + this._point = 2; + default: + if (this._t <= 0) + this._context.lineTo(this._x, e), + this._context.lineTo(t, e); + else { + var n = this._x * (1 - this._t) + t * this._t; + this._context.lineTo(n, this._y), + this._context.lineTo(n, e); + } + } + (this._x = t), (this._y = e); + } + }; + var Yw = function(t) { + return new Xw(t, 0.5); + }; + function $w(t) { + return new Xw(t, 0); + } + function Kw(t) { + return new Xw(t, 1); + } + var Qw = function(t, e) { + if ((i = t.length) > 1) + for ( + var n, r, i, o = 1, a = t[e[0]], s = a.length; + o < i; + ++o + ) + for (r = a, a = t[e[o]], n = 0; n < s; ++n) + a[n][1] += a[n][0] = isNaN(r[n][1]) ? r[n][0] : r[n][1]; + }, + Zw = function(t) { + for (var e = t.length, n = new Array(e); --e >= 0; ) n[e] = e; + return n; + }; + function Jw(t, e) { + return t[e]; + } + var tS = function() { + var t = J_([]), + e = Zw, + n = Qw, + r = Jw; + function i(i) { + var o, + a, + s = t.apply(this, arguments), + u = i.length, + l = s.length, + c = new Array(l); + for (o = 0; o < l; ++o) { + for ( + var f, d = s[o], h = (c[o] = new Array(u)), p = 0; + p < u; + ++p ) + (h[p] = f = [0, +r(i[p], d, p, i)]), (f.data = i[p]); + h.key = d; + } + for (o = 0, a = e(c); o < l; ++o) c[a[o]].index = o; + return n(c, a), c; + } + return ( + (i.keys = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : J_(Rx.call(e))), i) + : t; + }), + (i.value = function(t) { + return arguments.length + ? ((r = 'function' == typeof t ? t : J_(+t)), i) + : r; + }), + (i.order = function(t) { + return arguments.length + ? ((e = + null == t + ? Zw + : 'function' == typeof t + ? t + : J_(Rx.call(t))), + i) + : e; + }), + (i.offset = function(t) { + return arguments.length + ? ((n = null == t ? Qw : t), i) + : n; + }), + i + ); + }, + eS = function(t, e) { + if ((r = t.length) > 0) { + for (var n, r, i, o = 0, a = t[0].length; o < a; ++o) { + for (i = n = 0; n < r; ++n) i += t[n][o][1] || 0; + if (i) for (n = 0; n < r; ++n) t[n][o][1] /= i; + } + Qw(t, e); + } + }, + nS = function(t, e) { + if ((s = t.length) > 0) + for ( + var n, r, i, o, a, s, u = 0, l = t[e[0]].length; + u < l; + ++u ) + for (o = a = 0, n = 0; n < s; ++n) + (i = (r = t[e[n]][u])[1] - r[0]) >= 0 + ? ((r[0] = o), (r[1] = o += i)) + : i < 0 + ? ((r[1] = a), (r[0] = a += i)) + : (r[0] = o); + }, + rS = function(t, e) { + if ((n = t.length) > 0) { + for (var n, r = 0, i = t[e[0]], o = i.length; r < o; ++r) { + for (var a = 0, s = 0; a < n; ++a) s += t[a][r][1] || 0; + i[r][1] += i[r][0] = -s / 2; + } + Qw(t, e); + } + }, + iS = function(t, e) { + if ((i = t.length) > 0 && (r = (n = t[e[0]]).length) > 0) { + for (var n, r, i, o = 0, a = 1; a < r; ++a) { + for (var s = 0, u = 0, l = 0; s < i; ++s) { + for ( + var c = t[e[s]], + f = c[a][1] || 0, + d = (f - (c[a - 1][1] || 0)) / 2, + h = 0; + h < s; + ++h + ) { + var p = t[e[h]]; + d += (p[a][1] || 0) - (p[a - 1][1] || 0); + } + (u += f), (l += d * f); + } + (n[a - 1][1] += n[a - 1][0] = o), u && (o -= l / u); + } + (n[a - 1][1] += n[a - 1][0] = o), Qw(t, e); + } + }, + oS = function(t) { + var e = t.map(aS); + return Zw(t).sort(function(t, n) { + return e[t] - e[n]; + }); + }; + function aS(t) { + for (var e, n = -1, r = 0, i = t.length, o = -1 / 0; ++n < i; ) + (e = +t[n][1]) > o && ((o = e), (r = n)); + return r; + } + var sS = function(t) { + var e = t.map(uS); + return Zw(t).sort(function(t, n) { + return e[t] - e[n]; + }); + }; + function uS(t) { + for (var e, n = 0, r = -1, i = t.length; ++r < i; ) + (e = +t[r][1]) && (n += e); + return n; + } + var lS = function(t) { + return sS(t).reverse(); + }, + cS = function(t) { + var e, + n, + r = t.length, + i = t.map(uS), + o = oS(t), + a = 0, + s = 0, + u = [], + l = []; + for (e = 0; e < r; ++e) + (n = o[e]), + a < s + ? ((a += i[n]), u.push(n)) + : ((s += i[n]), l.push(n)); + return l.reverse().concat(u); + }, + fS = function(t) { + return Zw(t).reverse(); + }, + dS = Date.prototype.toISOString + ? function(t) { + return t.toISOString(); + } + : Pv('%Y-%m-%dT%H:%M:%S.%LZ'), + hS = +new Date('2000-01-01T00:00:00.000Z') + ? function(t) { + var e = new Date(t); + return isNaN(e) ? null : e; + } + : Mv('%Y-%m-%dT%H:%M:%S.%LZ'), + pS = function(t) { + return function() { + return t; + }; + }; + function gS(t) { + return t[0]; + } + function mS(t) { + return t[1]; + } + function vS() { + this._ = null; + } + function yS(t) { + t.U = t.C = t.L = t.R = t.P = t.N = null; + } + function bS(t, e) { + var n = e, + r = e.R, + i = n.U; + i ? (i.L === n ? (i.L = r) : (i.R = r)) : (t._ = r), + (r.U = i), + (n.U = r), + (n.R = r.L), + n.R && (n.R.U = n), + (r.L = n); + } + function _S(t, e) { + var n = e, + r = e.L, + i = n.U; + i ? (i.L === n ? (i.L = r) : (i.R = r)) : (t._ = r), + (r.U = i), + (n.U = r), + (n.L = r.R), + n.L && (n.L.U = n), + (r.R = n); + } + function xS(t) { + for (; t.L; ) t = t.L; + return t; + } + vS.prototype = { + constructor: vS, + insert: function(t, e) { + var n, r, i; + if (t) { + if ( + ((e.P = t), + (e.N = t.N), + t.N && (t.N.P = e), + (t.N = e), + t.R) + ) { + for (t = t.R; t.L; ) t = t.L; + t.L = e; + } else t.R = e; + n = t; + } else + this._ + ? ((t = xS(this._)), + (e.P = null), + (e.N = t), + (t.P = t.L = e), + (n = t)) + : ((e.P = e.N = null), (this._ = e), (n = null)); + for (e.L = e.R = null, e.U = n, e.C = !0, t = e; n && n.C; ) + n === (r = n.U).L + ? (i = r.R) && i.C + ? ((n.C = i.C = !1), (r.C = !0), (t = r)) + : (t === n.R && (bS(this, n), (n = (t = n).U)), + (n.C = !1), + (r.C = !0), + _S(this, r)) + : (i = r.L) && i.C + ? ((n.C = i.C = !1), (r.C = !0), (t = r)) + : (t === n.L && (_S(this, n), (n = (t = n).U)), + (n.C = !1), + (r.C = !0), + bS(this, r)), + (n = t.U); + this._.C = !1; + }, + remove: function(t) { + t.N && (t.N.P = t.P), + t.P && (t.P.N = t.N), + (t.N = t.P = null); + var e, + n, + r, + i = t.U, + o = t.L, + a = t.R; + if ( + ((n = o ? (a ? xS(a) : o) : a), + i ? (i.L === t ? (i.L = n) : (i.R = n)) : (this._ = n), + o && a + ? ((r = n.C), + (n.C = t.C), + (n.L = o), + (o.U = n), + n !== a + ? ((i = n.U), + (n.U = t.U), + (t = n.R), + (i.L = t), + (n.R = a), + (a.U = n)) + : ((n.U = i), (i = n), (t = n.R))) + : ((r = t.C), (t = n)), + t && (t.U = i), + !r) ) + if (t && t.C) t.C = !1; + else { + do { + if (t === this._) break; + if (t === i.L) { + if ( + ((e = i.R).C && + ((e.C = !1), (i.C = !0), bS(this, i), (e = i.R)), + (e.L && e.L.C) || (e.R && e.R.C)) + ) { + (e.R && e.R.C) || + ((e.L.C = !1), + (e.C = !0), + _S(this, e), + (e = i.R)), + (e.C = i.C), + (i.C = e.R.C = !1), + bS(this, i), + (t = this._); + break; + } + } else if ( + ((e = i.L).C && + ((e.C = !1), (i.C = !0), _S(this, i), (e = i.L)), + (e.L && e.L.C) || (e.R && e.R.C)) + ) { + (e.L && e.L.C) || + ((e.R.C = !1), (e.C = !0), bS(this, e), (e = i.L)), + (e.C = i.C), + (i.C = e.L.C = !1), + _S(this, i), + (t = this._); + break; + } + (e.C = !0), (t = i), (i = i.U); + } while (!t.C); + t && (t.C = !1); + } + } + }; + var wS = vS; + function SS(t, e, n, r) { + var i = [null, null], + o = XS.push(i) - 1; + return ( + (i.left = t), + (i.right = e), + n && kS(i, t, e, n), + r && kS(i, e, t, r), + qS[t.index].halfedges.push(o), + qS[e.index].halfedges.push(o), + i ); } - } - ]), - e - ); - })(i.default.Component)); - (g.propTypes = { header: o.default.string, styles: o.default.object }), - (g.defaultProps = { header: 'Color Picker', styles: {} }), - (e.default = (0, u.ColorWrap)(g)); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.PhotoshopPicker = void 0); - var r = s(n(0)), - i = s(n(2)), - o = s(n(19)), - a = n(4); - function s(t) { - return t && t.__esModule ? t : { default: t }; - } - var u = (e.PhotoshopPicker = function(t) { - var e = t.onChange, - n = t.rgb, - s = t.hsv, - u = t.hex, - l = (0, i.default)({ - default: { - fields: { - paddingTop: '5px', - paddingBottom: '9px', - width: '80px', - position: 'relative' - }, - divider: { height: '5px' }, - RGBwrap: { position: 'relative' }, - RGBinput: { - marginLeft: '40%', - width: '40%', - height: '18px', - border: '1px solid #888888', - boxShadow: 'inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC', - marginBottom: '5px', - fontSize: '13px', - paddingLeft: '3px', - marginRight: '10px' - }, - RGBlabel: { - left: '0px', - width: '34px', - textTransform: 'uppercase', - fontSize: '13px', - height: '18px', - lineHeight: '22px', - position: 'absolute' - }, - HEXwrap: { position: 'relative' }, - HEXinput: { - marginLeft: '20%', - width: '80%', - height: '18px', - border: '1px solid #888888', - boxShadow: 'inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC', - marginBottom: '6px', - fontSize: '13px', - paddingLeft: '3px' - }, - HEXlabel: { - position: 'absolute', - top: '0px', - left: '0px', - width: '14px', - textTransform: 'uppercase', - fontSize: '13px', - height: '18px', - lineHeight: '22px' - }, - fieldSymbols: { - position: 'absolute', - top: '5px', - right: '-7px', - fontSize: '13px' - }, - symbol: { - height: '20px', - lineHeight: '22px', - paddingBottom: '7px' + function ES(t, e, n) { + var r = [e, n]; + return (r.left = t), r; } - } - }), - c = function(t, r) { - t['#'] - ? o.default.isValidHex(t['#']) && - e({ hex: t['#'], source: 'hex' }, r) - : t.r || t.g || t.b - ? e( - { - r: t.r || n.r, - g: t.g || n.g, - b: t.b || n.b, - source: 'rgb' - }, - r + function kS(t, e, n, r) { + t[0] || t[1] + ? t.left === n + ? (t[1] = r) + : (t[0] = r) + : ((t[0] = r), (t.left = e), (t.right = n)); + } + function AS(t, e, n, r, i) { + var o, + a = t[0], + s = t[1], + u = a[0], + l = a[1], + c = 0, + f = 1, + d = s[0] - u, + h = s[1] - l; + if (((o = e - u), d || !(o > 0))) { + if (((o /= d), d < 0)) { + if (o < c) return; + o < f && (f = o); + } else if (d > 0) { + if (o > f) return; + o > c && (c = o); + } + if (((o = r - u), d || !(o < 0))) { + if (((o /= d), d < 0)) { + if (o > f) return; + o > c && (c = o); + } else if (d > 0) { + if (o < c) return; + o < f && (f = o); + } + if (((o = n - l), h || !(o > 0))) { + if (((o /= h), h < 0)) { + if (o < c) return; + o < f && (f = o); + } else if (h > 0) { + if (o > f) return; + o > c && (c = o); + } + if (((o = i - l), h || !(o < 0))) { + if (((o /= h), h < 0)) { + if (o > f) return; + o > c && (c = o); + } else if (h > 0) { + if (o < c) return; + o < f && (f = o); + } + return ( + !(c > 0 || f < 1) || + (c > 0 && (t[0] = [u + c * d, l + c * h]), + f < 1 && (t[1] = [u + f * d, l + f * h]), + !0) + ); + } + } + } + } + } + function TS(t, e, n, r, i) { + var o = t[1]; + if (o) return !0; + var a, + s, + u = t[0], + l = t.left, + c = t.right, + f = l[0], + d = l[1], + h = c[0], + p = c[1], + g = (f + h) / 2, + m = (d + p) / 2; + if (p === d) { + if (g < e || g >= r) return; + if (f > h) { + if (u) { + if (u[1] >= i) return; + } else u = [g, n]; + o = [g, i]; + } else { + if (u) { + if (u[1] < n) return; + } else u = [g, i]; + o = [g, n]; + } + } else if ( + ((s = m - (a = (f - h) / (p - d)) * g), a < -1 || a > 1) ) - : (t.h || t.s || t.v) && - e( - { - h: t.h || s.h, - s: t.s || s.s, - v: t.v || s.v, - source: 'hsv' - }, - r - ); - }; - return r.default.createElement( - 'div', - { style: l.fields }, - r.default.createElement(a.EditableInput, { - style: { wrap: l.RGBwrap, input: l.RGBinput, label: l.RGBlabel }, - label: 'h', - value: Math.round(s.h), - onChange: c - }), - r.default.createElement(a.EditableInput, { - style: { wrap: l.RGBwrap, input: l.RGBinput, label: l.RGBlabel }, - label: 's', - value: Math.round(100 * s.s), - onChange: c - }), - r.default.createElement(a.EditableInput, { - style: { wrap: l.RGBwrap, input: l.RGBinput, label: l.RGBlabel }, - label: 'v', - value: Math.round(100 * s.v), - onChange: c - }), - r.default.createElement('div', { style: l.divider }), - r.default.createElement(a.EditableInput, { - style: { wrap: l.RGBwrap, input: l.RGBinput, label: l.RGBlabel }, - label: 'r', - value: n.r, - onChange: c - }), - r.default.createElement(a.EditableInput, { - style: { wrap: l.RGBwrap, input: l.RGBinput, label: l.RGBlabel }, - label: 'g', - value: n.g, - onChange: c - }), - r.default.createElement(a.EditableInput, { - style: { wrap: l.RGBwrap, input: l.RGBinput, label: l.RGBlabel }, - label: 'b', - value: n.b, - onChange: c - }), - r.default.createElement('div', { style: l.divider }), - r.default.createElement(a.EditableInput, { - style: { wrap: l.HEXwrap, input: l.HEXinput, label: l.HEXlabel }, - label: '#', - value: u.replace('#', ''), - onChange: c - }), - r.default.createElement( - 'div', - { style: l.fieldSymbols }, - r.default.createElement('div', { style: l.symbol }, '°'), - r.default.createElement('div', { style: l.symbol }, '%'), - r.default.createElement('div', { style: l.symbol }, '%') - ) - ); - }); - e.default = u; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.PhotoshopPointerCircle = void 0); - var r = o(n(0)), - i = o(n(2)); - function o(t) { - return t && t.__esModule ? t : { default: t }; - } - var a = (e.PhotoshopPointerCircle = function(t) { - var e = t.hsl, - n = (0, i.default)( - { - default: { - picker: { - width: '12px', - height: '12px', - borderRadius: '6px', - boxShadow: 'inset 0 0 0 1px #fff', - transform: 'translate(-6px, -6px)' + if (f > h) { + if (u) { + if (u[1] >= i) return; + } else u = [(n - s) / a, n]; + o = [(i - s) / a, i]; + } else { + if (u) { + if (u[1] < n) return; + } else u = [(i - s) / a, i]; + o = [(n - s) / a, n]; + } + else if (d < p) { + if (u) { + if (u[0] >= r) return; + } else u = [e, a * e + s]; + o = [r, a * r + s]; + } else { + if (u) { + if (u[0] < e) return; + } else u = [r, a * r + s]; + o = [e, a * e + s]; } - }, - 'black-outline': { picker: { boxShadow: 'inset 0 0 0 1px #000' } } - }, - { 'black-outline': e.l > 0.5 } - ); - return r.default.createElement('div', { style: n.picker }); - }); - e.default = a; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.PhotoshopPointerCircle = void 0); - var r = o(n(0)), - i = o(n(2)); - function o(t) { - return t && t.__esModule ? t : { default: t }; - } - var a = (e.PhotoshopPointerCircle = function() { - var t = (0, i.default)({ - default: { - triangle: { - width: 0, - height: 0, - borderStyle: 'solid', - borderWidth: '4px 0 4px 6px', - borderColor: 'transparent transparent transparent #fff', - position: 'absolute', - top: '1px', - left: '1px' - }, - triangleBorder: { - width: 0, - height: 0, - borderStyle: 'solid', - borderWidth: '5px 0 5px 8px', - borderColor: 'transparent transparent transparent #555' - }, - left: { - Extend: 'triangleBorder', - transform: 'translate(-13px, -4px)' - }, - leftInside: { - Extend: 'triangle', - transform: 'translate(-8px, -5px)' - }, - right: { - Extend: 'triangleBorder', - transform: 'translate(20px, -14px) rotate(180deg)' - }, - rightInside: { - Extend: 'triangle', - transform: 'translate(-8px, -5px)' - } - } - }); - return r.default.createElement( - 'div', - { style: t.pointer }, - r.default.createElement( - 'div', - { style: t.left }, - r.default.createElement('div', { style: t.leftInside }) - ), - r.default.createElement( - 'div', - { style: t.right }, - r.default.createElement('div', { style: t.rightInside }) - ) - ); - }); - e.default = a; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.PhotoshopButton = void 0); - var r = o(n(0)), - i = o(n(2)); - function o(t) { - return t && t.__esModule ? t : { default: t }; - } - var a = (e.PhotoshopButton = function(t) { - var e = t.onClick, - n = t.label, - o = t.children, - a = t.active, - s = (0, i.default)( - { - default: { - button: { - backgroundImage: - 'linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)', - border: '1px solid #878787', - borderRadius: '2px', - height: '20px', - boxShadow: '0 1px 0 0 #EAEAEA', - fontSize: '14px', - color: '#000', - lineHeight: '20px', - textAlign: 'center', - marginBottom: '10px', - cursor: 'pointer' + return (t[0] = u), (t[1] = o), !0; + } + function CS(t, e) { + var n = t.site, + r = e.left, + i = e.right; + return ( + n === i && ((i = r), (r = n)), + i + ? Math.atan2(i[1] - r[1], i[0] - r[0]) + : (n === r + ? ((r = e[1]), (i = e[0])) + : ((r = e[0]), (i = e[1])), + Math.atan2(r[0] - i[0], i[1] - r[1])) + ); + } + function OS(t, e) { + return e[+(e.left !== t.site)]; + } + function PS(t, e) { + return e[+(e.left === t.site)]; + } + var MS, + LS = []; + function jS() { + yS(this), + (this.x = this.y = this.arc = this.site = this.cy = null); + } + function DS(t) { + var e = t.P, + n = t.N; + if (e && n) { + var r = e.site, + i = t.site, + o = n.site; + if (r !== o) { + var a = i[0], + s = i[1], + u = r[0] - a, + l = r[1] - s, + c = o[0] - a, + f = o[1] - s, + d = 2 * (u * f - l * c); + if (!(d >= -$S)) { + var h = u * u + l * l, + p = c * c + f * f, + g = (f * h - l * p) / d, + m = (u * p - c * h) / d, + v = LS.pop() || new jS(); + (v.arc = t), + (v.site = i), + (v.x = g + a), + (v.y = (v.cy = m + s) + Math.sqrt(g * g + m * m)), + (t.circle = v); + for (var y = null, b = WS._; b; ) + if (v.y < b.y || (v.y === b.y && v.x <= b.x)) { + if (!b.L) { + y = b.P; + break; + } + b = b.L; + } else { + if (!b.R) { + y = b; + break; + } + b = b.R; + } + WS.insert(y, v), y || (MS = v); + } + } } - }, - active: { button: { boxShadow: '0 0 0 1px #878787' } } - }, - { active: a } - ); - return r.default.createElement( - 'div', - { style: s.button, onClick: e }, - n || o - ); - }); - e.default = a; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.PhotoshopPreviews = void 0); - var r = o(n(0)), - i = o(n(2)); - function o(t) { - return t && t.__esModule ? t : { default: t }; - } - var a = (e.PhotoshopPreviews = function(t) { - var e = t.rgb, - n = t.currentColor, - o = (0, i.default)({ - default: { - swatches: { - border: '1px solid #B3B3B3', - borderBottom: '1px solid #F0F0F0', - marginBottom: '2px', - marginTop: '1px' - }, - new: { - height: '34px', - background: 'rgb(' + e.r + ',' + e.g + ', ' + e.b + ')', - boxShadow: - 'inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000' - }, - current: { - height: '34px', - background: n, - boxShadow: - 'inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000' - }, - label: { fontSize: '14px', color: '#000', textAlign: 'center' } - } - }); - return r.default.createElement( - 'div', - null, - r.default.createElement('div', { style: o.label }, 'new'), - r.default.createElement( - 'div', - { style: o.swatches }, - r.default.createElement('div', { style: o.new }), - r.default.createElement('div', { style: o.current }) - ), - r.default.createElement('div', { style: o.label }, 'current') - ); - }); - e.default = a; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Sketch = void 0); - var r = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }, - i = f(n(0)), - o = f(n(1)), - a = f(n(2)), - s = f(n(8)), - u = n(4), - l = f(n(402)), - c = f(n(403)); - function f(t) { - return t && t.__esModule ? t : { default: t }; - } - var d = (e.Sketch = function(t) { - var e = t.width, - n = t.rgb, - o = t.hex, - f = t.hsv, - d = t.hsl, - h = t.onChange, - p = t.onSwatchHover, - g = t.disableAlpha, - v = t.presetColors, - m = t.renderers, - y = t.styles, - b = void 0 === y ? {} : y, - _ = t.className, - x = void 0 === _ ? '' : _, - w = (0, a.default)( - (0, s.default)( - { - default: r( - { - picker: { - width: e, - padding: '10px 10px 0', - boxSizing: 'initial', - background: '#fff', - borderRadius: '4px', - boxShadow: - '0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)' - }, - saturation: { - width: '100%', - paddingBottom: '75%', - position: 'relative', - overflow: 'hidden' - }, - Saturation: { - radius: '3px', - shadow: - 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)' - }, - controls: { display: 'flex' }, - sliders: { padding: '4px 0', flex: '1' }, - color: { - width: '24px', - height: '24px', - position: 'relative', - marginTop: '4px', - marginLeft: '4px', - borderRadius: '3px' - }, - activeColor: { - absolute: '0px 0px 0px 0px', - borderRadius: '2px', - background: - 'rgba(' + n.r + ',' + n.g + ',' + n.b + ',' + n.a + ')', - boxShadow: - 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)' - }, - hue: { - position: 'relative', - height: '10px', - overflow: 'hidden' - }, - Hue: { - radius: '2px', - shadow: - 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)' - }, - alpha: { - position: 'relative', - height: '10px', - marginTop: '4px', - overflow: 'hidden' - }, - Alpha: { - radius: '2px', - shadow: - 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)' + } + function RS(t) { + var e = t.circle; + e && + (e.P || (MS = e.N), + WS.remove(e), + LS.push(e), + yS(e), + (t.circle = null)); + } + var zS = []; + function NS() { + yS(this), (this.edge = this.site = this.circle = null); + } + function IS(t) { + var e = zS.pop() || new NS(); + return (e.site = t), e; + } + function FS(t) { + RS(t), US.remove(t), zS.push(t), yS(t); + } + function VS(t) { + var e = t.circle, + n = e.x, + r = e.cy, + i = [n, r], + o = t.P, + a = t.N, + s = [t]; + FS(t); + for ( + var u = o; + u.circle && + Math.abs(n - u.circle.x) < YS && + Math.abs(r - u.circle.cy) < YS; + + ) + (o = u.P), s.unshift(u), FS(u), (u = o); + s.unshift(u), RS(u); + for ( + var l = a; + l.circle && + Math.abs(n - l.circle.x) < YS && + Math.abs(r - l.circle.cy) < YS; + + ) + (a = l.N), s.push(l), FS(l), (l = a); + s.push(l), RS(l); + var c, + f = s.length; + for (c = 1; c < f; ++c) + (l = s[c]), (u = s[c - 1]), kS(l.edge, u.site, l.site, i); + (u = s[0]), + ((l = s[f - 1]).edge = SS(u.site, l.site, null, i)), + DS(u), + DS(l); + } + function BS(t) { + for (var e, n, r, i, o = t[0], a = t[1], s = US._; s; ) + if ((r = GS(s, a) - o) > YS) s = s.L; + else { + if (!((i = o - HS(s, a)) > YS)) { + r > -YS + ? ((e = s.P), (n = s)) + : i > -YS + ? ((e = s), (n = s.N)) + : (e = n = s); + break; } - }, - b - ), - disableAlpha: { - color: { height: '10px' }, - hue: { height: '10px' }, - alpha: { display: 'none' } + if (!s.R) { + e = s; + break; + } + s = s.R; + } + !(function(t) { + qS[t.index] = { site: t, halfedges: [] }; + })(t); + var u = IS(t); + if ((US.insert(e, u), e || n)) { + if (e === n) + return ( + RS(e), + (n = IS(e.site)), + US.insert(u, n), + (u.edge = n.edge = SS(e.site, u.site)), + DS(e), + void DS(n) + ); + if (n) { + RS(e), RS(n); + var l = e.site, + c = l[0], + f = l[1], + d = t[0] - c, + h = t[1] - f, + p = n.site, + g = p[0] - c, + m = p[1] - f, + v = 2 * (d * m - h * g), + y = d * d + h * h, + b = g * g + m * m, + _ = [(m * y - h * b) / v + c, (d * b - g * y) / v + f]; + kS(n.edge, l, p, _), + (u.edge = SS(l, t, null, _)), + (n.edge = SS(t, p, null, _)), + DS(e), + DS(n); + } else u.edge = SS(e.site, u.site); + } + } + function GS(t, e) { + var n = t.site, + r = n[0], + i = n[1], + o = i - e; + if (!o) return r; + var a = t.P; + if (!a) return -1 / 0; + var s = (n = a.site)[0], + u = n[1], + l = u - e; + if (!l) return s; + var c = s - r, + f = 1 / o - 1 / l, + d = c / l; + return f + ? (-d + + Math.sqrt( + d * d - + 2 * f * ((c * c) / (-2 * l) - u + l / 2 + i - o / 2) + )) / + f + + r + : (r + s) / 2; + } + function HS(t, e) { + var n = t.N; + if (n) return GS(n, e); + var r = t.site; + return r[1] === e ? r[0] : 1 / 0; + } + var US, + qS, + WS, + XS, + YS = 1e-6, + $S = 1e-12; + function KS(t, e) { + return e[1] - t[1] || e[0] - t[0]; + } + function QS(t, e) { + var n, + r, + i, + o = t.sort(KS).pop(); + for ( + XS = [], + qS = new Array(t.length), + US = new wS(), + WS = new wS(); + ; + + ) + if ( + ((i = MS), + o && (!i || o[1] < i.y || (o[1] === i.y && o[0] < i.x))) + ) + (o[0] === n && o[1] === r) || + (BS(o), (n = o[0]), (r = o[1])), + (o = t.pop()); + else { + if (!i) break; + VS(i.arc); + } + if ( + ((function() { + for (var t, e, n, r, i = 0, o = qS.length; i < o; ++i) + if ((t = qS[i]) && (r = (e = t.halfedges).length)) { + var a = new Array(r), + s = new Array(r); + for (n = 0; n < r; ++n) + (a[n] = n), (s[n] = CS(t, XS[e[n]])); + for ( + a.sort(function(t, e) { + return s[e] - s[t]; + }), + n = 0; + n < r; + ++n + ) + s[n] = e[a[n]]; + for (n = 0; n < r; ++n) e[n] = s[n]; + } + })(), + e) + ) { + var a = +e[0][0], + s = +e[0][1], + u = +e[1][0], + l = +e[1][1]; + !(function(t, e, n, r) { + for (var i, o = XS.length; o--; ) + (TS((i = XS[o]), t, e, n, r) && + AS(i, t, e, n, r) && + (Math.abs(i[0][0] - i[1][0]) > YS || + Math.abs(i[0][1] - i[1][1]) > YS)) || + delete XS[o]; + })(a, s, u, l), + (function(t, e, n, r) { + var i, + o, + a, + s, + u, + l, + c, + f, + d, + h, + p, + g, + m = qS.length, + v = !0; + for (i = 0; i < m; ++i) + if ((o = qS[i])) { + for (a = o.site, s = (u = o.halfedges).length; s--; ) + XS[u[s]] || u.splice(s, 1); + for (s = 0, l = u.length; s < l; ) + (p = (h = PS(o, XS[u[s]]))[0]), + (g = h[1]), + (f = (c = OS(o, XS[u[++s % l]]))[0]), + (d = c[1]), + (Math.abs(p - f) > YS || Math.abs(g - d) > YS) && + (u.splice( + s, + 0, + XS.push( + ES( + a, + h, + Math.abs(p - t) < YS && r - g > YS + ? [t, Math.abs(f - t) < YS ? d : r] + : Math.abs(g - r) < YS && n - p > YS + ? [Math.abs(d - r) < YS ? f : n, r] + : Math.abs(p - n) < YS && g - e > YS + ? [n, Math.abs(f - n) < YS ? d : e] + : Math.abs(g - e) < YS && p - t > YS + ? [Math.abs(d - e) < YS ? f : t, e] + : null + ) + ) - 1 + ), + ++l); + l && (v = !1); + } + if (v) { + var y, + b, + _, + x = 1 / 0; + for (i = 0, v = null; i < m; ++i) + (o = qS[i]) && + (_ = + (y = (a = o.site)[0] - t) * y + + (b = a[1] - e) * b) < x && + ((x = _), (v = o)); + if (v) { + var w = [t, e], + S = [t, r], + E = [n, r], + k = [n, e]; + v.halfedges.push( + XS.push(ES((a = v.site), w, S)) - 1, + XS.push(ES(a, S, E)) - 1, + XS.push(ES(a, E, k)) - 1, + XS.push(ES(a, k, w)) - 1 + ); + } + } + for (i = 0; i < m; ++i) + (o = qS[i]) && (o.halfedges.length || delete qS[i]); + })(a, s, u, l); } - }, - b - ), - { disableAlpha: g } - ); - return i.default.createElement( - 'div', - { style: w.picker, className: 'sketch-picker ' + x }, - i.default.createElement( - 'div', - { style: w.saturation }, - i.default.createElement(u.Saturation, { - style: w.Saturation, - hsl: d, - hsv: f, - onChange: h - }) - ), - i.default.createElement( - 'div', - { style: w.controls, className: 'flexbox-fix' }, - i.default.createElement( - 'div', - { style: w.sliders }, - i.default.createElement( - 'div', - { style: w.hue }, - i.default.createElement(u.Hue, { - style: w.Hue, - hsl: d, - onChange: h - }) - ), - i.default.createElement( - 'div', - { style: w.alpha }, - i.default.createElement(u.Alpha, { - style: w.Alpha, - rgb: n, - hsl: d, - renderers: m, - onChange: h - }) - ) - ), - i.default.createElement( - 'div', - { style: w.color }, - i.default.createElement(u.Checkboard, null), - i.default.createElement('div', { style: w.activeColor }) - ) - ), - i.default.createElement(l.default, { - rgb: n, - hsl: d, - hex: o, - onChange: h, - disableAlpha: g - }), - i.default.createElement(c.default, { - colors: v, - onClick: h, - onSwatchHover: p - }) - ); - }); - (d.propTypes = { - disableAlpha: o.default.bool, - width: o.default.oneOfType([o.default.string, o.default.number]), - styles: o.default.object - }), - (d.defaultProps = { - disableAlpha: !1, - width: 200, - styles: {}, - presetColors: [ - '#D0021B', - '#F5A623', - '#F8E71C', - '#8B572A', - '#7ED321', - '#417505', - '#BD10E0', - '#9013FE', - '#4A90E2', - '#50E3C2', - '#B8E986', - '#000000', - '#4A4A4A', - '#9B9B9B', - '#FFFFFF' - ] - }), - (e.default = (0, u.ColorWrap)(d)); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.SketchFields = void 0); - var r = s(n(0)), - i = s(n(2)), - o = s(n(19)), - a = n(4); - function s(t) { - return t && t.__esModule ? t : { default: t }; - } - var u = (e.SketchFields = function(t) { - var e = t.onChange, - n = t.rgb, - s = t.hsl, - u = t.hex, - l = t.disableAlpha, - c = (0, i.default)( - { - default: { - fields: { display: 'flex', paddingTop: '4px' }, - single: { flex: '1', paddingLeft: '6px' }, - alpha: { flex: '1', paddingLeft: '6px' }, - double: { flex: '2' }, - input: { - width: '80%', - padding: '4px 10% 3px', - border: 'none', - boxShadow: 'inset 0 0 0 1px #ccc', - fontSize: '11px' + (this.edges = XS), + (this.cells = qS), + (US = WS = XS = qS = null); + } + QS.prototype = { + constructor: QS, + polygons: function() { + var t = this.edges; + return this.cells.map(function(e) { + var n = e.halfedges.map(function(n) { + return OS(e, t[n]); + }); + return (n.data = e.site.data), n; + }); }, - label: { - display: 'block', - textAlign: 'center', - fontSize: '11px', - color: '#222', - paddingTop: '3px', - paddingBottom: '4px', - textTransform: 'capitalize' + triangles: function() { + var t = [], + e = this.edges; + return ( + this.cells.forEach(function(n, r) { + if ((o = (i = n.halfedges).length)) + for ( + var i, + o, + a, + s, + u, + l, + c = n.site, + f = -1, + d = e[i[o - 1]], + h = d.left === c ? d.right : d.left; + ++f < o; + + ) + (a = h), + (h = (d = e[i[f]]).left === c ? d.right : d.left), + a && + h && + r < a.index && + r < h.index && + ((u = a), + (l = h), + ((s = c)[0] - l[0]) * (u[1] - s[1]) - + (s[0] - u[0]) * (l[1] - s[1]) < + 0) && + t.push([c.data, a.data, h.data]); + }), + t + ); + }, + links: function() { + return this.edges + .filter(function(t) { + return t.right; + }) + .map(function(t) { + return { source: t.left.data, target: t.right.data }; + }); + }, + find: function(t, e, n) { + for ( + var r, i, o = this, a = o._found || 0, s = o.cells.length; + !(i = o.cells[a]); + + ) + if (++a >= s) return null; + var u = t - i.site[0], + l = e - i.site[1], + c = u * u + l * l; + do { + (i = o.cells[(r = a)]), + (a = null), + i.halfedges.forEach(function(n) { + var r = o.edges[n], + s = r.left; + if ((s !== i.site && s) || (s = r.right)) { + var u = t - s[0], + l = e - s[1], + f = u * u + l * l; + f < c && ((c = f), (a = s.index)); + } + }); + } while (null !== a); + return ( + (o._found = r), null == n || c <= n * n ? i.site : null + ); } - }, - disableAlpha: { alpha: { display: 'none' } } - }, - { disableAlpha: l } - ), - f = function(t, r) { - t.hex - ? o.default.isValidHex(t.hex) && - e({ hex: t.hex, source: 'hex' }, r) - : t.r || t.g || t.b - ? e( - { - r: t.r || n.r, - g: t.g || n.g, - b: t.b || n.b, - a: n.a, - source: 'rgb' - }, - r - ) - : t.a && - (t.a < 0 ? (t.a = 0) : t.a > 100 && (t.a = 100), - (t.a /= 100), - e({ h: s.h, s: s.s, l: s.l, a: t.a, source: 'rgb' }, r)); - }; - return r.default.createElement( - 'div', - { style: c.fields, className: 'flexbox-fix' }, - r.default.createElement( - 'div', - { style: c.double }, - r.default.createElement(a.EditableInput, { - style: { input: c.input, label: c.label }, - label: 'hex', - value: u.replace('#', ''), - onChange: f - }) - ), - r.default.createElement( - 'div', - { style: c.single }, - r.default.createElement(a.EditableInput, { - style: { input: c.input, label: c.label }, - label: 'r', - value: n.r, - onChange: f, - dragLabel: 'true', - dragMax: '255' - }) - ), - r.default.createElement( - 'div', - { style: c.single }, - r.default.createElement(a.EditableInput, { - style: { input: c.input, label: c.label }, - label: 'g', - value: n.g, - onChange: f, - dragLabel: 'true', - dragMax: '255' - }) - ), - r.default.createElement( - 'div', - { style: c.single }, - r.default.createElement(a.EditableInput, { - style: { input: c.input, label: c.label }, - label: 'b', - value: n.b, - onChange: f, - dragLabel: 'true', - dragMax: '255' - }) - ), - r.default.createElement( - 'div', - { style: c.alpha }, - r.default.createElement(a.EditableInput, { - style: { input: c.input, label: c.label }, - label: 'a', - value: Math.round(100 * n.a), - onChange: f, - dragLabel: 'true', - dragMax: '100' - }) - ) - ); - }); - e.default = u; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.SketchPresetColors = void 0); - var r = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }, - i = u(n(0)), - o = u(n(1)), - a = u(n(2)), - s = n(4); - function u(t) { - return t && t.__esModule ? t : { default: t }; - } - var l = (e.SketchPresetColors = function(t) { - var e = t.colors, - n = t.onClick, - o = void 0 === n ? function() {} : n, - u = t.onSwatchHover, - l = (0, a.default)( - { - default: { - colors: { - margin: '0 -10px', - padding: '10px 0 0 10px', - borderTop: '1px solid #eee', - display: 'flex', - flexWrap: 'wrap', - position: 'relative' + }; + var ZS = function() { + var t = gS, + e = mS, + n = null; + function r(r) { + return new QS( + r.map(function(n, i) { + var o = [ + Math.round(t(n, i, r) / YS) * YS, + Math.round(e(n, i, r) / YS) * YS + ]; + return (o.index = i), (o.data = n), o; + }), + n + ); + } + return ( + (r.polygons = function(t) { + return r(t).polygons(); + }), + (r.links = function(t) { + return r(t).links(); + }), + (r.triangles = function(t) { + return r(t).triangles(); + }), + (r.x = function(e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : pS(+e)), r) + : t; + }), + (r.y = function(t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : pS(+t)), r) + : e; + }), + (r.extent = function(t) { + return arguments.length + ? ((n = + null == t + ? null + : [[+t[0][0], +t[0][1]], [+t[1][0], +t[1][1]]]), + r) + : n && [[n[0][0], n[0][1]], [n[1][0], n[1][1]]]; + }), + (r.size = function(t) { + return arguments.length + ? ((n = null == t ? null : [[0, 0], [+t[0], +t[1]]]), r) + : n && [n[1][0] - n[0][0], n[1][1] - n[0][1]]; + }), + r + ); + }, + JS = function(t) { + return function() { + return t; + }; + }; + function tE(t, e, n) { + (this.target = t), (this.type = e), (this.transform = n); + } + function eE(t, e, n) { + (this.k = t), (this.x = e), (this.y = n); + } + eE.prototype = { + constructor: eE, + scale: function(t) { + return 1 === t ? this : new eE(this.k * t, this.x, this.y); + }, + translate: function(t, e) { + return (0 === t) & (0 === e) + ? this + : new eE(this.k, this.x + this.k * t, this.y + this.k * e); + }, + apply: function(t) { + return [t[0] * this.k + this.x, t[1] * this.k + this.y]; + }, + applyX: function(t) { + return t * this.k + this.x; + }, + applyY: function(t) { + return t * this.k + this.y; + }, + invert: function(t) { + return [(t[0] - this.x) / this.k, (t[1] - this.y) / this.k]; + }, + invertX: function(t) { + return (t - this.x) / this.k; + }, + invertY: function(t) { + return (t - this.y) / this.k; }, - swatchWrap: { - width: '16px', - height: '16px', - margin: '0 10px 10px 0' + rescaleX: function(t) { + return t.copy().domain( + t + .range() + .map(this.invertX, this) + .map(t.invert, t) + ); }, - swatch: { - borderRadius: '3px', - boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.15)' + rescaleY: function(t) { + return t.copy().domain( + t + .range() + .map(this.invertY, this) + .map(t.invert, t) + ); + }, + toString: function() { + return ( + 'translate(' + + this.x + + ',' + + this.y + + ') scale(' + + this.k + + ')' + ); } - }, - 'no-presets': { colors: { display: 'none' } } - }, - { 'no-presets': !e || !e.length } - ), - c = function(t, e) { - o({ hex: t, source: 'hex' }, e); - }; - return i.default.createElement( - 'div', - { style: l.colors, className: 'flexbox-fix' }, - e.map(function(t) { - var e = 'string' == typeof t ? { color: t } : t, - n = '' + e.color + (e.title || ''); - return i.default.createElement( - 'div', - { key: n, style: l.swatchWrap }, - i.default.createElement( - s.Swatch, - r({}, e, { - style: l.swatch, - onClick: c, - onHover: u, - focusStyle: { - boxShadow: - 'inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px ' + e.color + }; + var nE = new eE(1, 0, 0); + function rE(t) { + for (; !t.__zoom; ) if (!(t = t.parentNode)) return nE; + return t.__zoom; + } + function iE() { + pe.stopImmediatePropagation(); + } + rE.prototype = eE.prototype; + var oE = function() { + pe.preventDefault(), pe.stopImmediatePropagation(); + }; + function aE() { + return !pe.ctrlKey && !pe.button; + } + function sE() { + var t = this; + return t instanceof SVGElement + ? (t = t.ownerSVGElement || t).hasAttribute('viewBox') + ? [ + [(t = t.viewBox.baseVal).x, t.y], + [t.x + t.width, t.y + t.height] + ] + : [[0, 0], [t.width.baseVal.value, t.height.baseVal.value]] + : [[0, 0], [t.clientWidth, t.clientHeight]]; + } + function uE() { + return this.__zoom || nE; + } + function lE() { + return ( + -pe.deltaY * + (1 === pe.deltaMode ? 0.05 : pe.deltaMode ? 1 : 0.002) + ); + } + function cE() { + return navigator.maxTouchPoints || 'ontouchstart' in this; + } + function fE(t, e, n) { + var r = t.invertX(e[0][0]) - n[0][0], + i = t.invertX(e[1][0]) - n[1][0], + o = t.invertY(e[0][1]) - n[0][1], + a = t.invertY(e[1][1]) - n[1][1]; + return t.translate( + i > r ? (r + i) / 2 : Math.min(0, r) || Math.max(0, i), + a > o ? (o + a) / 2 : Math.min(0, o) || Math.max(0, a) + ); + } + var dE = function() { + var t, + e, + n = aE, + r = sE, + i = fE, + o = lE, + a = cE, + s = [0, 1 / 0], + u = [[-1 / 0, -1 / 0], [1 / 0, 1 / 0]], + l = 250, + c = ur, + f = gt('start', 'zoom', 'end'), + d = 500, + h = 150, + p = 0; + function g(t) { + t.property('__zoom', uE) + .on('wheel.zoom', w) + .on('mousedown.zoom', S) + .on('dblclick.zoom', E) + .filter(a) + .on('touchstart.zoom', k) + .on('touchmove.zoom', A) + .on('touchend.zoom touchcancel.zoom', T) + .style('touch-action', 'none') + .style('-webkit-tap-highlight-color', 'rgba(0,0,0,0)'); + } + function m(t, e) { + return (e = Math.max(s[0], Math.min(s[1], e))) === t.k + ? t + : new eE(e, t.x, t.y); + } + function v(t, e, n) { + var r = e[0] - n[0] * t.k, + i = e[1] - n[1] * t.k; + return r === t.x && i === t.y ? t : new eE(t.k, r, i); + } + function y(t) { + return [(+t[0][0] + +t[1][0]) / 2, (+t[0][1] + +t[1][1]) / 2]; + } + function b(t, e, n) { + t.on('start.zoom', function() { + _(this, arguments).start(); + }) + .on('interrupt.zoom end.zoom', function() { + _(this, arguments).end(); + }) + .tween('zoom', function() { + var t = this, + i = arguments, + o = _(t, i), + a = r.apply(t, i), + s = + null == n + ? y(a) + : 'function' == typeof n + ? n.apply(t, i) + : n, + u = Math.max(a[1][0] - a[0][0], a[1][1] - a[0][1]), + l = t.__zoom, + f = 'function' == typeof e ? e.apply(t, i) : e, + d = c( + l.invert(s).concat(u / l.k), + f.invert(s).concat(u / f.k) + ); + return function(t) { + if (1 === t) t = f; + else { + var e = d(t), + n = u / e[2]; + t = new eE(n, s[0] - e[0] * n, s[1] - e[1] * n); + } + o.zoom(null, t); + }; + }); + } + function _(t, e, n) { + return (!n && t.__zooming) || new x(t, e); + } + function x(t, e) { + (this.that = t), + (this.args = e), + (this.active = 0), + (this.extent = r.apply(t, e)), + (this.taps = 0); + } + function w() { + if (n.apply(this, arguments)) { + var t = _(this, arguments), + e = this.__zoom, + r = Math.max( + s[0], + Math.min( + s[1], + e.k * Math.pow(2, o.apply(this, arguments)) + ) + ), + a = Re(this); + if (t.wheel) + (t.mouse[0][0] === a[0] && t.mouse[0][1] === a[1]) || + (t.mouse[1] = e.invert((t.mouse[0] = a))), + clearTimeout(t.wheel); + else { + if (e.k === r) return; + (t.mouse = [a, e.invert(a)]), Mi(this), t.start(); + } + oE(), + (t.wheel = setTimeout(function() { + (t.wheel = null), t.end(); + }, h)), + t.zoom( + 'mouse', + i(v(m(e, r), t.mouse[0], t.mouse[1]), t.extent, u) + ); } - }) - ) - ); - }) - ); - }); - (l.propTypes = { - colors: o.default.arrayOf( - o.default.oneOfType([ - o.default.string, - o.default.shape({ - color: o.default.string, - title: o.default.string - }) - ]) - ).isRequired - }), - (e.default = l); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Slider = void 0); - var r = c(n(0)), - i = c(n(1)), - o = c(n(2)), - a = c(n(8)), - s = n(4), - u = c(n(405)), - l = c(n(407)); - function c(t) { - return t && t.__esModule ? t : { default: t }; - } - var f = (e.Slider = function(t) { - var e = t.hsl, - n = t.onChange, - i = t.pointer, - l = t.styles, - c = void 0 === l ? {} : l, - f = t.className, - d = void 0 === f ? '' : f, - h = (0, o.default)( - (0, a.default)( - { - default: { - hue: { height: '12px', position: 'relative' }, - Hue: { radius: '2px' } } - }, - c - ) - ); - return r.default.createElement( - 'div', - { style: h.wrap || {}, className: 'slider-picker ' + d }, - r.default.createElement( - 'div', - { style: h.hue }, - r.default.createElement(s.Hue, { - style: h.Hue, - hsl: e, - pointer: i, - onChange: n - }) - ), - r.default.createElement( - 'div', - { style: h.swatches }, - r.default.createElement(u.default, { hsl: e, onClick: n }) - ) - ); - }); - (f.propTypes = { styles: i.default.object }), - (f.defaultProps = { pointer: l.default, styles: {} }), - (e.default = (0, s.ColorWrap)(f)); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.SliderSwatches = void 0); - var r = a(n(0)), - i = a(n(2)), - o = a(n(406)); - function a(t) { - return t && t.__esModule ? t : { default: t }; - } - var s = (e.SliderSwatches = function(t) { - var e = t.onClick, - n = t.hsl, - a = (0, i.default)({ - default: { - swatches: { marginTop: '20px' }, - swatch: { - boxSizing: 'border-box', - width: '20%', - paddingRight: '1px', - float: 'left' - }, - clear: { clear: 'both' } - } - }); - return r.default.createElement( - 'div', - { style: a.swatches }, - r.default.createElement( - 'div', - { style: a.swatch }, - r.default.createElement(o.default, { - hsl: n, - offset: '.80', - active: Math.abs(n.l - 0.8) < 0.1 && Math.abs(n.s - 0.5) < 0.1, - onClick: e, - first: !0 - }) - ), - r.default.createElement( - 'div', - { style: a.swatch }, - r.default.createElement(o.default, { - hsl: n, - offset: '.65', - active: Math.abs(n.l - 0.65) < 0.1 && Math.abs(n.s - 0.5) < 0.1, - onClick: e - }) - ), - r.default.createElement( - 'div', - { style: a.swatch }, - r.default.createElement(o.default, { - hsl: n, - offset: '.50', - active: Math.abs(n.l - 0.5) < 0.1 && Math.abs(n.s - 0.5) < 0.1, - onClick: e - }) - ), - r.default.createElement( - 'div', - { style: a.swatch }, - r.default.createElement(o.default, { - hsl: n, - offset: '.35', - active: Math.abs(n.l - 0.35) < 0.1 && Math.abs(n.s - 0.5) < 0.1, - onClick: e - }) - ), - r.default.createElement( - 'div', - { style: a.swatch }, - r.default.createElement(o.default, { - hsl: n, - offset: '.20', - active: Math.abs(n.l - 0.2) < 0.1 && Math.abs(n.s - 0.5) < 0.1, - onClick: e, - last: !0 - }) - ), - r.default.createElement('div', { style: a.clear }) - ); - }); - e.default = s; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.SliderSwatch = void 0); - var r = o(n(0)), - i = o(n(2)); - function o(t) { - return t && t.__esModule ? t : { default: t }; - } - var a = (e.SliderSwatch = function(t) { - var e = t.hsl, - n = t.offset, - o = t.onClick, - a = void 0 === o ? function() {} : o, - s = t.active, - u = t.first, - l = t.last, - c = (0, i.default)( - { - default: { - swatch: { - height: '12px', - background: 'hsl(' + e.h + ', 50%, ' + 100 * n + '%)', - cursor: 'pointer' + function S() { + if (!e && n.apply(this, arguments)) { + var t = _(this, arguments, !0), + r = Ce(pe.view) + .on( + 'mousemove.zoom', + function() { + if ((oE(), !t.moved)) { + var e = pe.clientX - a, + n = pe.clientY - s; + t.moved = e * e + n * n > p; + } + t.zoom( + 'mouse', + i( + v( + t.that.__zoom, + (t.mouse[0] = Re(t.that)), + t.mouse[1] + ), + t.extent, + u + ) + ); + }, + !0 + ) + .on( + 'mouseup.zoom', + function() { + r.on('mousemove.zoom mouseup.zoom', null), + Ge(pe.view, t.moved), + oE(), + t.end(); + }, + !0 + ), + o = Re(this), + a = pe.clientX, + s = pe.clientY; + Be(pe.view), + iE(), + (t.mouse = [o, this.__zoom.invert(o)]), + Mi(this), + t.start(); + } } - }, - first: { swatch: { borderRadius: '2px 0 0 2px' } }, - last: { swatch: { borderRadius: '0 2px 2px 0' } }, - active: { - swatch: { transform: 'scaleY(1.8)', borderRadius: '3.6px/2px' } - } - }, - { active: s, first: u, last: l } - ); - return r.default.createElement('div', { - style: c.swatch, - onClick: function(t) { - return a({ h: e.h, s: 0.5, l: n, source: 'hsl' }, t); - } - }); - }); - e.default = a; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.SliderPointer = void 0); - var r = o(n(0)), - i = o(n(2)); - function o(t) { - return t && t.__esModule ? t : { default: t }; - } - var a = (e.SliderPointer = function() { - var t = (0, i.default)({ - default: { - picker: { - width: '14px', - height: '14px', - borderRadius: '6px', - transform: 'translate(-7px, -1px)', - backgroundColor: 'rgb(248, 248, 248)', - boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)' - } - } - }); - return r.default.createElement('div', { style: t.picker }); - }); - e.default = a; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Swatches = void 0); - var r = d(n(0)), - i = d(n(1)), - o = d(n(2)), - a = d(n(23)), - s = d(n(8)), - u = d(n(19)), - l = (function(t) { - if (t && t.__esModule) return t; - var e = {}; - if (null != t) - for (var n in t) - Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]); - return (e.default = t), e; - })(n(147)), - c = n(4), - f = d(n(409)); - function d(t) { - return t && t.__esModule ? t : { default: t }; - } - var h = (e.Swatches = function(t) { - var e = t.width, - n = t.height, - i = t.onChange, - l = t.onSwatchHover, - d = t.colors, - h = t.hex, - p = t.styles, - g = void 0 === p ? {} : p, - v = t.className, - m = void 0 === v ? '' : v, - y = (0, o.default)( - (0, s.default)( - { - default: { - picker: { width: e, height: n }, - overflow: { height: n, overflowY: 'scroll' }, - body: { padding: '16px 0 6px 16px' }, - clear: { clear: 'both' } + function E() { + if (n.apply(this, arguments)) { + var t = this.__zoom, + e = Re(this), + o = t.invert(e), + a = t.k * (pe.shiftKey ? 0.5 : 2), + s = i(v(m(t, a), e, o), r.apply(this, arguments), u); + oE(), + l > 0 + ? Ce(this) + .transition() + .duration(l) + .call(b, s, e) + : Ce(this).call(g.transform, s); + } + } + function k() { + if (n.apply(this, arguments)) { + var e, + r, + i, + o, + a = pe.touches, + s = a.length, + u = _(this, arguments, pe.changedTouches.length === s); + for (iE(), r = 0; r < s; ++r) + (i = a[r]), + (o = [ + (o = Ne(this, a, i.identifier)), + this.__zoom.invert(o), + i.identifier + ]), + u.touch0 + ? u.touch1 || + u.touch0[2] === o[2] || + ((u.touch1 = o), (u.taps = 0)) + : ((u.touch0 = o), (e = !0), (u.taps = 1 + !!t)); + t && (t = clearTimeout(t)), + e && + (u.taps < 2 && + (t = setTimeout(function() { + t = null; + }, d)), + Mi(this), + u.start()); + } + } + function A() { + if (this.__zooming) { + var e, + n, + r, + o, + a = _(this, arguments), + s = pe.changedTouches, + l = s.length; + for ( + oE(), t && (t = clearTimeout(t)), a.taps = 0, e = 0; + e < l; + ++e + ) + (n = s[e]), + (r = Ne(this, s, n.identifier)), + a.touch0 && a.touch0[2] === n.identifier + ? (a.touch0[0] = r) + : a.touch1 && + a.touch1[2] === n.identifier && + (a.touch1[0] = r); + if (((n = a.that.__zoom), a.touch1)) { + var c = a.touch0[0], + f = a.touch0[1], + d = a.touch1[0], + h = a.touch1[1], + p = (p = d[0] - c[0]) * p + (p = d[1] - c[1]) * p, + g = (g = h[0] - f[0]) * g + (g = h[1] - f[1]) * g; + (n = m(n, Math.sqrt(p / g))), + (r = [(c[0] + d[0]) / 2, (c[1] + d[1]) / 2]), + (o = [(f[0] + h[0]) / 2, (f[1] + h[1]) / 2]); + } else { + if (!a.touch0) return; + (r = a.touch0[0]), (o = a.touch0[1]); + } + a.zoom('touch', i(v(n, r, o), a.extent, u)); + } + } + function T() { + if (this.__zooming) { + var t, + n, + r = _(this, arguments), + i = pe.changedTouches, + o = i.length; + for ( + iE(), + e && clearTimeout(e), + e = setTimeout(function() { + e = null; + }, d), + t = 0; + t < o; + ++t + ) + (n = i[t]), + r.touch0 && r.touch0[2] === n.identifier + ? delete r.touch0 + : r.touch1 && + r.touch1[2] === n.identifier && + delete r.touch1; + if ( + (r.touch1 && + !r.touch0 && + ((r.touch0 = r.touch1), delete r.touch1), + r.touch0) + ) + r.touch0[1] = this.__zoom.invert(r.touch0[0]); + else if ((r.end(), 2 === r.taps)) { + var a = Ce(this).on('dblclick.zoom'); + a && a.apply(this, arguments); + } + } } - }, - g - ) - ), - b = function(t, e) { - u.default.isValidHex(t) && i({ hex: t, source: 'hex' }, e); - }; - return r.default.createElement( - 'div', - { style: y.picker, className: 'swatches-picker ' + m }, - r.default.createElement( - c.Raised, - null, - r.default.createElement( - 'div', - { style: y.overflow }, - r.default.createElement( - 'div', - { style: y.body }, - (0, a.default)(d, function(t) { - return r.default.createElement(f.default, { - key: t.toString(), - group: t, - active: h, - onClick: b, - onSwatchHover: l - }); + return ( + (g.transform = function(t, e, n) { + var r = t.selection ? t.selection() : t; + r.property('__zoom', uE), + t !== r + ? b(t, e, n) + : r.interrupt().each(function() { + _(this, arguments) + .start() + .zoom( + null, + 'function' == typeof e + ? e.apply(this, arguments) + : e + ) + .end(); + }); + }), + (g.scaleBy = function(t, e, n) { + g.scaleTo( + t, + function() { + var t = this.__zoom.k, + n = + 'function' == typeof e + ? e.apply(this, arguments) + : e; + return t * n; + }, + n + ); + }), + (g.scaleTo = function(t, e, n) { + g.transform( + t, + function() { + var t = r.apply(this, arguments), + o = this.__zoom, + a = + null == n + ? y(t) + : 'function' == typeof n + ? n.apply(this, arguments) + : n, + s = o.invert(a), + l = + 'function' == typeof e + ? e.apply(this, arguments) + : e; + return i(v(m(o, l), a, s), t, u); + }, + n + ); + }), + (g.translateBy = function(t, e, n) { + g.transform(t, function() { + return i( + this.__zoom.translate( + 'function' == typeof e ? e.apply(this, arguments) : e, + 'function' == typeof n ? n.apply(this, arguments) : n + ), + r.apply(this, arguments), + u + ); + }); + }), + (g.translateTo = function(t, e, n, o) { + g.transform( + t, + function() { + var t = r.apply(this, arguments), + a = this.__zoom, + s = + null == o + ? y(t) + : 'function' == typeof o + ? o.apply(this, arguments) + : o; + return i( + nE + .translate(s[0], s[1]) + .scale(a.k) + .translate( + 'function' == typeof e + ? -e.apply(this, arguments) + : -e, + 'function' == typeof n + ? -n.apply(this, arguments) + : -n + ), + t, + u + ); + }, + o + ); + }), + (x.prototype = { + start: function() { + return ( + 1 == ++this.active && + ((this.that.__zooming = this), this.emit('start')), + this + ); + }, + zoom: function(t, e) { + return ( + this.mouse && + 'mouse' !== t && + (this.mouse[1] = e.invert(this.mouse[0])), + this.touch0 && + 'touch' !== t && + (this.touch0[1] = e.invert(this.touch0[0])), + this.touch1 && + 'touch' !== t && + (this.touch1[1] = e.invert(this.touch1[0])), + (this.that.__zoom = e), + this.emit('zoom'), + this + ); + }, + end: function() { + return ( + 0 == --this.active && + (delete this.that.__zooming, this.emit('end')), + this + ); + }, + emit: function(t) { + _e(new tE(g, t, this.that.__zoom), f.apply, f, [ + t, + this.that, + this.args + ]); + } + }), + (g.wheelDelta = function(t) { + return arguments.length + ? ((o = 'function' == typeof t ? t : JS(+t)), g) + : o; + }), + (g.filter = function(t) { + return arguments.length + ? ((n = 'function' == typeof t ? t : JS(!!t)), g) + : n; + }), + (g.touchable = function(t) { + return arguments.length + ? ((a = 'function' == typeof t ? t : JS(!!t)), g) + : a; + }), + (g.extent = function(t) { + return arguments.length + ? ((r = + 'function' == typeof t + ? t + : JS([[+t[0][0], +t[0][1]], [+t[1][0], +t[1][1]]])), + g) + : r; + }), + (g.scaleExtent = function(t) { + return arguments.length + ? ((s[0] = +t[0]), (s[1] = +t[1]), g) + : [s[0], s[1]]; + }), + (g.translateExtent = function(t) { + return arguments.length + ? ((u[0][0] = +t[0][0]), + (u[1][0] = +t[1][0]), + (u[0][1] = +t[0][1]), + (u[1][1] = +t[1][1]), + g) + : [[u[0][0], u[0][1]], [u[1][0], u[1][1]]]; + }), + (g.constrain = function(t) { + return arguments.length ? ((i = t), g) : i; + }), + (g.duration = function(t) { + return arguments.length ? ((l = +t), g) : l; + }), + (g.interpolate = function(t) { + return arguments.length ? ((c = t), g) : c; + }), + (g.on = function() { + var t = f.on.apply(f, arguments); + return t === f ? g : t; + }), + (g.clickDistance = function(t) { + return arguments.length + ? ((p = (t = +t) * t), g) + : Math.sqrt(p); + }), + g + ); + }; + n.d(e, 'version', function() { + return '5.12.0'; + }), + n.d(e, 'bisect', function() { + return u; + }), + n.d(e, 'bisectRight', function() { + return a; + }), + n.d(e, 'bisectLeft', function() { + return s; + }), + n.d(e, 'ascending', function() { + return r; + }), + n.d(e, 'bisector', function() { + return i; + }), + n.d(e, 'cross', function() { + return f; + }), + n.d(e, 'descending', function() { + return d; + }), + n.d(e, 'deviation', function() { + return g; + }), + n.d(e, 'extent', function() { + return m; + }), + n.d(e, 'histogram', function() { + return P; + }), + n.d(e, 'thresholdFreedmanDiaconis', function() { + return L; + }), + n.d(e, 'thresholdScott', function() { + return j; + }), + n.d(e, 'thresholdSturges', function() { + return O; + }), + n.d(e, 'max', function() { + return D; + }), + n.d(e, 'mean', function() { + return R; + }), + n.d(e, 'median', function() { + return z; + }), + n.d(e, 'merge', function() { + return N; + }), + n.d(e, 'min', function() { + return I; + }), + n.d(e, 'pairs', function() { + return l; + }), + n.d(e, 'permute', function() { + return F; + }), + n.d(e, 'quantile', function() { + return M; + }), + n.d(e, 'range', function() { + return w; + }), + n.d(e, 'scan', function() { + return V; + }), + n.d(e, 'shuffle', function() { + return B; + }), + n.d(e, 'sum', function() { + return G; + }), + n.d(e, 'ticks', function() { + return A; + }), + n.d(e, 'tickIncrement', function() { + return T; + }), + n.d(e, 'tickStep', function() { + return C; + }), + n.d(e, 'transpose', function() { + return H; + }), + n.d(e, 'variance', function() { + return p; + }), + n.d(e, 'zip', function() { + return q; + }), + n.d(e, 'axisTop', function() { + return ot; + }), + n.d(e, 'axisRight', function() { + return at; + }), + n.d(e, 'axisBottom', function() { + return st; + }), + n.d(e, 'axisLeft', function() { + return ut; + }), + n.d(e, 'brush', function() { + return wa; + }), + n.d(e, 'brushX', function() { + return _a; + }), + n.d(e, 'brushY', function() { + return xa; + }), + n.d(e, 'brushSelection', function() { + return ba; + }), + n.d(e, 'chord', function() { + return Ma; + }), + n.d(e, 'ribbon', function() { + return qa; + }), + n.d(e, 'nest', function() { + return $a; + }), + n.d(e, 'set', function() { + return rs; + }), + n.d(e, 'map', function() { + return Ya; + }), + n.d(e, 'keys', function() { + return is; + }), + n.d(e, 'values', function() { + return os; + }), + n.d(e, 'entries', function() { + return as; + }), + n.d(e, 'color', function() { + return hn; + }), + n.d(e, 'rgb', function() { + return vn; + }), + n.d(e, 'hsl', function() { + return En; + }), + n.d(e, 'lab', function() { + return Sr; + }), + n.d(e, 'hcl', function() { + return Mr; + }), + n.d(e, 'lch', function() { + return Pr; + }), + n.d(e, 'gray', function() { + return wr; + }), + n.d(e, 'cubehelix', function() { + return Ur; + }), + n.d(e, 'contours', function() { + return ms; + }), + n.d(e, 'contourDensity', function() { + return ws; + }), + n.d(e, 'dispatch', function() { + return gt; + }), + n.d(e, 'drag', function() { + return $e; + }), + n.d(e, 'dragDisable', function() { + return Be; + }), + n.d(e, 'dragEnable', function() { + return Ge; + }), + n.d(e, 'dsvFormat', function() { + return Ls; + }), + n.d(e, 'csvParse', function() { + return Ds; + }), + n.d(e, 'csvParseRows', function() { + return Rs; + }), + n.d(e, 'csvFormat', function() { + return zs; + }), + n.d(e, 'csvFormatBody', function() { + return Ns; + }), + n.d(e, 'csvFormatRows', function() { + return Is; + }), + n.d(e, 'tsvParse', function() { + return Vs; + }), + n.d(e, 'tsvParseRows', function() { + return Bs; + }), + n.d(e, 'tsvFormat', function() { + return Gs; + }), + n.d(e, 'tsvFormatBody', function() { + return Hs; + }), + n.d(e, 'tsvFormatRows', function() { + return Us; + }), + n.d(e, 'autoType', function() { + return qs; + }), + n.d(e, 'easeLinear', function() { + return io; + }), + n.d(e, 'easeQuad', function() { + return so; + }), + n.d(e, 'easeQuadIn', function() { + return oo; + }), + n.d(e, 'easeQuadOut', function() { + return ao; + }), + n.d(e, 'easeQuadInOut', function() { + return so; + }), + n.d(e, 'easeCubic', function() { + return co; + }), + n.d(e, 'easeCubicIn', function() { + return uo; + }), + n.d(e, 'easeCubicOut', function() { + return lo; + }), + n.d(e, 'easeCubicInOut', function() { + return co; + }), + n.d(e, 'easePoly', function() { + return po; + }), + n.d(e, 'easePolyIn', function() { + return fo; + }), + n.d(e, 'easePolyOut', function() { + return ho; + }), + n.d(e, 'easePolyInOut', function() { + return po; + }), + n.d(e, 'easeSin', function() { + return bo; + }), + n.d(e, 'easeSinIn', function() { + return vo; + }), + n.d(e, 'easeSinOut', function() { + return yo; + }), + n.d(e, 'easeSinInOut', function() { + return bo; + }), + n.d(e, 'easeExp', function() { + return wo; + }), + n.d(e, 'easeExpIn', function() { + return _o; + }), + n.d(e, 'easeExpOut', function() { + return xo; + }), + n.d(e, 'easeExpInOut', function() { + return wo; + }), + n.d(e, 'easeCircle', function() { + return ko; + }), + n.d(e, 'easeCircleIn', function() { + return So; + }), + n.d(e, 'easeCircleOut', function() { + return Eo; + }), + n.d(e, 'easeCircleInOut', function() { + return ko; + }), + n.d(e, 'easeBounce', function() { + return No; + }), + n.d(e, 'easeBounceIn', function() { + return zo; + }), + n.d(e, 'easeBounceOut', function() { + return No; + }), + n.d(e, 'easeBounceInOut', function() { + return Io; + }), + n.d(e, 'easeBack', function() { + return Bo; + }), + n.d(e, 'easeBackIn', function() { + return Fo; + }), + n.d(e, 'easeBackOut', function() { + return Vo; + }), + n.d(e, 'easeBackInOut', function() { + return Bo; + }), + n.d(e, 'easeElastic', function() { + return Uo; + }), + n.d(e, 'easeElasticIn', function() { + return Ho; + }), + n.d(e, 'easeElasticOut', function() { + return Uo; + }), + n.d(e, 'easeElasticInOut', function() { + return qo; + }), + n.d(e, 'blob', function() { + return Xs; + }), + n.d(e, 'buffer', function() { + return $s; + }), + n.d(e, 'dsv', function() { + return Js; + }), + n.d(e, 'csv', function() { + return tu; + }), + n.d(e, 'tsv', function() { + return eu; + }), + n.d(e, 'image', function() { + return nu; + }), + n.d(e, 'json', function() { + return iu; + }), + n.d(e, 'text', function() { + return Qs; + }), + n.d(e, 'xml', function() { + return au; + }), + n.d(e, 'html', function() { + return su; + }), + n.d(e, 'svg', function() { + return uu; + }), + n.d(e, 'forceCenter', function() { + return lu; + }), + n.d(e, 'forceCollide', function() { + return wu; + }), + n.d(e, 'forceLink', function() { + return ku; + }), + n.d(e, 'forceManyBody', function() { + return Mu; + }), + n.d(e, 'forceRadial', function() { + return Lu; + }), + n.d(e, 'forceSimulation', function() { + return Pu; + }), + n.d(e, 'forceX', function() { + return ju; + }), + n.d(e, 'forceY', function() { + return Du; + }), + n.d(e, 'formatDefaultLocale', function() { + return Qu; + }), + n.d(e, 'format', function() { + return Gu; + }), + n.d(e, 'formatPrefix', function() { + return Hu; + }), + n.d(e, 'formatLocale', function() { + return Ku; + }), + n.d(e, 'formatSpecifier', function() { + return Iu; + }), + n.d(e, 'FormatSpecifier', function() { + return Fu; + }), + n.d(e, 'precisionFixed', function() { + return Zu; + }), + n.d(e, 'precisionPrefix', function() { + return Ju; + }), + n.d(e, 'precisionRound', function() { + return tl; + }), + n.d(e, 'geoArea', function() { + return Xl; + }), + n.d(e, 'geoBounds', function() { + return Fc; + }), + n.d(e, 'geoCentroid', function() { + return Qc; + }), + n.d(e, 'geoCircle', function() { + return lf; + }), + n.d(e, 'geoClipAntimeridian', function() { + return xf; + }), + n.d(e, 'geoClipCircle', function() { + return wf; + }), + n.d(e, 'geoClipExtent', function() { + return Pf; + }), + n.d(e, 'geoClipRectangle', function() { + return Af; + }), + n.d(e, 'geoContains', function() { + return Yf; + }), + n.d(e, 'geoDistance', function() { + return Ff; + }), + n.d(e, 'geoGraticule', function() { + return Qf; + }), + n.d(e, 'geoGraticule10', function() { + return Zf; + }), + n.d(e, 'geoInterpolate', function() { + return rd; + }), + n.d(e, 'geoLength', function() { + return zf; + }), + n.d(e, 'geoPath', function() { + return eh; + }), + n.d(e, 'geoAlbers', function() { + return xh; + }), + n.d(e, 'geoAlbersUsa', function() { + return wh; + }), + n.d(e, 'geoAzimuthalEqualArea', function() { + return Ah; + }), + n.d(e, 'geoAzimuthalEqualAreaRaw', function() { + return kh; + }), + n.d(e, 'geoAzimuthalEquidistant', function() { + return Ch; + }), + n.d(e, 'geoAzimuthalEquidistantRaw', function() { + return Th; + }), + n.d(e, 'geoConicConformal', function() { + return Dh; + }), + n.d(e, 'geoConicConformalRaw', function() { + return jh; + }), + n.d(e, 'geoConicEqualArea', function() { + return _h; + }), + n.d(e, 'geoConicEqualAreaRaw', function() { + return bh; + }), + n.d(e, 'geoConicEquidistant', function() { + return Ih; + }), + n.d(e, 'geoConicEquidistantRaw', function() { + return Nh; + }), + n.d(e, 'geoEqualEarth', function() { + return qh; + }), + n.d(e, 'geoEqualEarthRaw', function() { + return Uh; + }), + n.d(e, 'geoEquirectangular', function() { + return zh; + }), + n.d(e, 'geoEquirectangularRaw', function() { + return Rh; + }), + n.d(e, 'geoGnomonic', function() { + return Xh; + }), + n.d(e, 'geoGnomonicRaw', function() { + return Wh; + }), + n.d(e, 'geoIdentity', function() { + return $h; + }), + n.d(e, 'geoProjection', function() { + return mh; + }), + n.d(e, 'geoProjectionMutator', function() { + return vh; + }), + n.d(e, 'geoMercator', function() { + return Ph; + }), + n.d(e, 'geoMercatorRaw', function() { + return Oh; + }), + n.d(e, 'geoNaturalEarth1', function() { + return Qh; + }), + n.d(e, 'geoNaturalEarth1Raw', function() { + return Kh; + }), + n.d(e, 'geoOrthographic', function() { + return Jh; + }), + n.d(e, 'geoOrthographicRaw', function() { + return Zh; + }), + n.d(e, 'geoStereographic', function() { + return ep; + }), + n.d(e, 'geoStereographicRaw', function() { + return tp; + }), + n.d(e, 'geoTransverseMercator', function() { + return rp; + }), + n.d(e, 'geoTransverseMercatorRaw', function() { + return np; + }), + n.d(e, 'geoRotation', function() { + return af; + }), + n.d(e, 'geoStream', function() { + return Fl; + }), + n.d(e, 'geoTransform', function() { + return nh; + }), + n.d(e, 'cluster', function() { + return sp; + }), + n.d(e, 'hierarchy', function() { + return lp; + }), + n.d(e, 'pack', function() { + return Dp; + }), + n.d(e, 'packSiblings', function() { + return Cp; + }), + n.d(e, 'packEnclose', function() { + return gp; + }), + n.d(e, 'partition', function() { + return Vp; + }), + n.d(e, 'stratify', function() { + return Wp; + }), + n.d(e, 'tree', function() { + return Jp; + }), + n.d(e, 'treemap', function() { + return ig; + }), + n.d(e, 'treemapBinary', function() { + return og; + }), + n.d(e, 'treemapDice', function() { + return Fp; + }), + n.d(e, 'treemapSlice', function() { + return tg; + }), + n.d(e, 'treemapSliceDice', function() { + return ag; + }), + n.d(e, 'treemapSquarify', function() { + return rg; + }), + n.d(e, 'treemapResquarify', function() { + return sg; + }), + n.d(e, 'interpolate', function() { + return Kn; + }), + n.d(e, 'interpolateArray', function() { + return Hn; + }), + n.d(e, 'interpolateBasis', function() { + return Cn; + }), + n.d(e, 'interpolateBasisClosed', function() { + return On; + }), + n.d(e, 'interpolateDate', function() { + return Un; + }), + n.d(e, 'interpolateDiscrete', function() { + return Qn; + }), + n.d(e, 'interpolateHue', function() { + return Zn; + }), + n.d(e, 'interpolateNumber', function() { + return qn; + }), + n.d(e, 'interpolateObject', function() { + return Wn; + }), + n.d(e, 'interpolateRound', function() { + return Jn; + }), + n.d(e, 'interpolateString', function() { + return $n; + }), + n.d(e, 'interpolateTransformCss', function() { + return ir; + }), + n.d(e, 'interpolateTransformSvg', function() { + return or; + }), + n.d(e, 'interpolateZoom', function() { + return ur; + }), + n.d(e, 'interpolateRgb', function() { + return Rn; + }), + n.d(e, 'interpolateRgbBasis', function() { + return Bn; + }), + n.d(e, 'interpolateRgbBasisClosed', function() { + return Gn; + }), + n.d(e, 'interpolateHsl', function() { + return cr; + }), + n.d(e, 'interpolateHslLong', function() { + return fr; + }), + n.d(e, 'interpolateLab', function() { + return Dr; + }), + n.d(e, 'interpolateHcl', function() { + return zr; + }), + n.d(e, 'interpolateHclLong', function() { + return Nr; + }), + n.d(e, 'interpolateCubehelix', function() { + return Xr; + }), + n.d(e, 'interpolateCubehelixLong', function() { + return Yr; + }), + n.d(e, 'piecewise', function() { + return $r; + }), + n.d(e, 'quantize', function() { + return Zr; + }), + n.d(e, 'path', function() { + return Fa; + }), + n.d(e, 'polygonArea', function() { + return ug; + }), + n.d(e, 'polygonCentroid', function() { + return lg; + }), + n.d(e, 'polygonHull', function() { + return hg; + }), + n.d(e, 'polygonContains', function() { + return pg; + }), + n.d(e, 'polygonLength', function() { + return gg; + }), + n.d(e, 'quadtree', function() { + return mu; + }), + n.d(e, 'randomUniform', function() { + return vg; + }), + n.d(e, 'randomNormal', function() { + return yg; + }), + n.d(e, 'randomLogNormal', function() { + return bg; + }), + n.d(e, 'randomBates', function() { + return xg; + }), + n.d(e, 'randomIrwinHall', function() { + return _g; + }), + n.d(e, 'randomExponential', function() { + return wg; + }), + n.d(e, 'scaleBand', function() { + return Pg; + }), + n.d(e, 'scalePoint', function() { + return Mg; + }), + n.d(e, 'scaleIdentity', function() { + return Wg; + }), + n.d(e, 'scaleLinear', function() { + return qg; + }), + n.d(e, 'scaleLog', function() { + return em; + }), + n.d(e, 'scaleSymlog', function() { + return om; + }), + n.d(e, 'scaleOrdinal', function() { + return Og; + }), + n.d(e, 'scaleImplicit', function() { + return Cg; + }), + n.d(e, 'scalePow', function() { + return cm; + }), + n.d(e, 'scaleSqrt', function() { + return fm; + }), + n.d(e, 'scaleQuantile', function() { + return dm; + }), + n.d(e, 'scaleQuantize', function() { + return hm; + }), + n.d(e, 'scaleThreshold', function() { + return pm; + }), + n.d(e, 'scaleTime', function() { + return tb; + }), + n.d(e, 'scaleUtc', function() { + return cb; + }), + n.d(e, 'scaleSequential', function() { + return hb; + }), + n.d(e, 'scaleSequentialLog', function() { + return pb; + }), + n.d(e, 'scaleSequentialPow', function() { + return mb; + }), + n.d(e, 'scaleSequentialSqrt', function() { + return vb; + }), + n.d(e, 'scaleSequentialSymlog', function() { + return gb; + }), + n.d(e, 'scaleSequentialQuantile', function() { + return yb; + }), + n.d(e, 'scaleDiverging', function() { + return _b; + }), + n.d(e, 'scaleDivergingLog', function() { + return xb; + }), + n.d(e, 'scaleDivergingPow', function() { + return Sb; + }), + n.d(e, 'scaleDivergingSqrt', function() { + return Eb; + }), + n.d(e, 'scaleDivergingSymlog', function() { + return wb; + }), + n.d(e, 'tickFormat', function() { + return Hg; + }), + n.d(e, 'schemeCategory10', function() { + return Ab; + }), + n.d(e, 'schemeAccent', function() { + return Tb; + }), + n.d(e, 'schemeDark2', function() { + return Cb; + }), + n.d(e, 'schemePaired', function() { + return Ob; + }), + n.d(e, 'schemePastel1', function() { + return Pb; + }), + n.d(e, 'schemePastel2', function() { + return Mb; + }), + n.d(e, 'schemeSet1', function() { + return Lb; + }), + n.d(e, 'schemeSet2', function() { + return jb; + }), + n.d(e, 'schemeSet3', function() { + return Db; + }), + n.d(e, 'schemeTableau10', function() { + return Rb; + }), + n.d(e, 'interpolateBrBG', function() { + return Ib; + }), + n.d(e, 'schemeBrBG', function() { + return Nb; + }), + n.d(e, 'interpolatePRGn', function() { + return Vb; + }), + n.d(e, 'schemePRGn', function() { + return Fb; + }), + n.d(e, 'interpolatePiYG', function() { + return Gb; + }), + n.d(e, 'schemePiYG', function() { + return Bb; + }), + n.d(e, 'interpolatePuOr', function() { + return Ub; + }), + n.d(e, 'schemePuOr', function() { + return Hb; + }), + n.d(e, 'interpolateRdBu', function() { + return Wb; + }), + n.d(e, 'schemeRdBu', function() { + return qb; + }), + n.d(e, 'interpolateRdGy', function() { + return Yb; + }), + n.d(e, 'schemeRdGy', function() { + return Xb; + }), + n.d(e, 'interpolateRdYlBu', function() { + return Kb; + }), + n.d(e, 'schemeRdYlBu', function() { + return $b; + }), + n.d(e, 'interpolateRdYlGn', function() { + return Zb; + }), + n.d(e, 'schemeRdYlGn', function() { + return Qb; + }), + n.d(e, 'interpolateSpectral', function() { + return t_; + }), + n.d(e, 'schemeSpectral', function() { + return Jb; + }), + n.d(e, 'interpolateBuGn', function() { + return n_; + }), + n.d(e, 'schemeBuGn', function() { + return e_; + }), + n.d(e, 'interpolateBuPu', function() { + return i_; + }), + n.d(e, 'schemeBuPu', function() { + return r_; + }), + n.d(e, 'interpolateGnBu', function() { + return a_; + }), + n.d(e, 'schemeGnBu', function() { + return o_; + }), + n.d(e, 'interpolateOrRd', function() { + return u_; + }), + n.d(e, 'schemeOrRd', function() { + return s_; + }), + n.d(e, 'interpolatePuBuGn', function() { + return c_; + }), + n.d(e, 'schemePuBuGn', function() { + return l_; + }), + n.d(e, 'interpolatePuBu', function() { + return d_; + }), + n.d(e, 'schemePuBu', function() { + return f_; + }), + n.d(e, 'interpolatePuRd', function() { + return p_; + }), + n.d(e, 'schemePuRd', function() { + return h_; + }), + n.d(e, 'interpolateRdPu', function() { + return m_; + }), + n.d(e, 'schemeRdPu', function() { + return g_; + }), + n.d(e, 'interpolateYlGnBu', function() { + return y_; + }), + n.d(e, 'schemeYlGnBu', function() { + return v_; + }), + n.d(e, 'interpolateYlGn', function() { + return __; + }), + n.d(e, 'schemeYlGn', function() { + return b_; + }), + n.d(e, 'interpolateYlOrBr', function() { + return w_; + }), + n.d(e, 'schemeYlOrBr', function() { + return x_; + }), + n.d(e, 'interpolateYlOrRd', function() { + return E_; + }), + n.d(e, 'schemeYlOrRd', function() { + return S_; + }), + n.d(e, 'interpolateBlues', function() { + return A_; + }), + n.d(e, 'schemeBlues', function() { + return k_; + }), + n.d(e, 'interpolateGreens', function() { + return C_; + }), + n.d(e, 'schemeGreens', function() { + return T_; + }), + n.d(e, 'interpolateGreys', function() { + return P_; + }), + n.d(e, 'schemeGreys', function() { + return O_; + }), + n.d(e, 'interpolatePurples', function() { + return L_; + }), + n.d(e, 'schemePurples', function() { + return M_; + }), + n.d(e, 'interpolateReds', function() { + return D_; + }), + n.d(e, 'schemeReds', function() { + return j_; + }), + n.d(e, 'interpolateOranges', function() { + return z_; + }), + n.d(e, 'schemeOranges', function() { + return R_; + }), + n.d(e, 'interpolateCividis', function() { + return N_; + }), + n.d(e, 'interpolateCubehelixDefault', function() { + return I_; + }), + n.d(e, 'interpolateRainbow', function() { + return G_; + }), + n.d(e, 'interpolateWarm', function() { + return F_; + }), + n.d(e, 'interpolateCool', function() { + return V_; + }), + n.d(e, 'interpolateSinebow', function() { + return W_; + }), + n.d(e, 'interpolateTurbo', function() { + return X_; + }), + n.d(e, 'interpolateViridis', function() { + return $_; + }), + n.d(e, 'interpolateMagma', function() { + return K_; + }), + n.d(e, 'interpolateInferno', function() { + return Q_; }), - r.default.createElement('div', { style: y.clear }) - ) - ) - ) - ); - }); - (h.propTypes = { - width: i.default.oneOfType([i.default.string, i.default.number]), - height: i.default.oneOfType([i.default.string, i.default.number]), - colors: i.default.arrayOf(i.default.arrayOf(i.default.string)), - styles: i.default.object - }), - (h.defaultProps = { - width: 320, - height: 240, - colors: [ - [l.red[900], l.red[700], l.red[500], l.red[300], l.red[100]], - [l.pink[900], l.pink[700], l.pink[500], l.pink[300], l.pink[100]], - [ - l.purple[900], - l.purple[700], - l.purple[500], - l.purple[300], - l.purple[100] - ], - [ - l.deepPurple[900], - l.deepPurple[700], - l.deepPurple[500], - l.deepPurple[300], - l.deepPurple[100] - ], - [ - l.indigo[900], - l.indigo[700], - l.indigo[500], - l.indigo[300], - l.indigo[100] - ], - [l.blue[900], l.blue[700], l.blue[500], l.blue[300], l.blue[100]], - [ - l.lightBlue[900], - l.lightBlue[700], - l.lightBlue[500], - l.lightBlue[300], - l.lightBlue[100] - ], - [l.cyan[900], l.cyan[700], l.cyan[500], l.cyan[300], l.cyan[100]], - [l.teal[900], l.teal[700], l.teal[500], l.teal[300], l.teal[100]], - ['#194D33', l.green[700], l.green[500], l.green[300], l.green[100]], - [ - l.lightGreen[900], - l.lightGreen[700], - l.lightGreen[500], - l.lightGreen[300], - l.lightGreen[100] - ], - [l.lime[900], l.lime[700], l.lime[500], l.lime[300], l.lime[100]], - [ - l.yellow[900], - l.yellow[700], - l.yellow[500], - l.yellow[300], - l.yellow[100] - ], - [ - l.amber[900], - l.amber[700], - l.amber[500], - l.amber[300], - l.amber[100] - ], - [ - l.orange[900], - l.orange[700], - l.orange[500], - l.orange[300], - l.orange[100] - ], - [ - l.deepOrange[900], - l.deepOrange[700], - l.deepOrange[500], - l.deepOrange[300], - l.deepOrange[100] - ], - [ - l.brown[900], - l.brown[700], - l.brown[500], - l.brown[300], - l.brown[100] - ], - [ - l.blueGrey[900], - l.blueGrey[700], - l.blueGrey[500], - l.blueGrey[300], - l.blueGrey[100] - ], - ['#000000', '#525252', '#969696', '#D9D9D9', '#FFFFFF'] - ], - styles: {} - }), - (e.default = (0, c.ColorWrap)(h)); - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.SwatchesGroup = void 0); - var r = s(n(0)), - i = s(n(2)), - o = s(n(23)), - a = s(n(410)); - function s(t) { - return t && t.__esModule ? t : { default: t }; - } - var u = (e.SwatchesGroup = function(t) { - var e = t.onClick, - n = t.onSwatchHover, - s = t.group, - u = t.active, - l = (0, i.default)({ - default: { - group: { - paddingBottom: '10px', - width: '40px', - float: 'left', - marginRight: '10px' - } - } - }); - return r.default.createElement( - 'div', - { style: l.group }, - (0, o.default)(s, function(t, i) { - return r.default.createElement(a.default, { - key: t, - color: t, - active: t.toLowerCase() === u, - first: 0 === i, - last: i === s.length - 1, - onClick: e, - onSwatchHover: n - }); - }) - ); - }); - e.default = u; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.SwatchesColor = void 0); - var r = u(n(0)), - i = u(n(2)), - o = u(n(19)), - a = n(4), - s = u(n(411)); - function u(t) { - return t && t.__esModule ? t : { default: t }; - } - var l = (e.SwatchesColor = function(t) { - var e = t.color, - n = t.onClick, - u = void 0 === n ? function() {} : n, - l = t.onSwatchHover, - c = t.first, - f = t.last, - d = t.active, - h = (0, i.default)( - { - default: { - color: { - width: '40px', - height: '24px', - cursor: 'pointer', - background: e, - marginBottom: '1px' - }, - check: { - color: o.default.getContrastingColor(e), - marginLeft: '8px', - display: 'none' - } - }, - first: { - color: { overflow: 'hidden', borderRadius: '2px 2px 0 0' } - }, - last: { - color: { overflow: 'hidden', borderRadius: '0 0 2px 2px' } - }, - active: { check: { display: 'block' } }, - 'color-#FFFFFF': { - color: { boxShadow: 'inset 0 0 0 1px #ddd' }, - check: { color: '#333' } - }, - transparent: { check: { color: '#333' } } - }, - { - first: c, - last: f, - active: d, - 'color-#FFFFFF': '#FFFFFF' === e, - transparent: 'transparent' === e - } - ); - return r.default.createElement( - a.Swatch, - { - color: e, - style: h.color, - onClick: u, - onHover: l, - focusStyle: { boxShadow: '0 0 4px ' + e } - }, - r.default.createElement( - 'div', - { style: h.check }, - r.default.createElement(s.default, null) - ) - ); - }); - e.default = l; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }); - var r, - i = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }, - o = n(0), - a = (r = o) && r.__esModule ? r : { default: r }; - e.default = function(t) { - var e = t.fill, - n = void 0 === e ? 'currentColor' : e, - r = t.width, - o = void 0 === r ? 24 : r, - s = t.height, - u = void 0 === s ? 24 : s, - l = t.style, - c = void 0 === l ? {} : l, - f = (function(t, e) { - var n = {}; - for (var r in t) - e.indexOf(r) >= 0 || - (Object.prototype.hasOwnProperty.call(t, r) && (n[r] = t[r])); - return n; - })(t, ['fill', 'width', 'height', 'style']); - return a.default.createElement( - 'svg', - i( - { - viewBox: '0 0 24 24', - style: i({ fill: n, width: o, height: u }, c) + n.d(e, 'interpolatePlasma', function() { + return Z_; + }), + n.d(e, 'create', function() { + return Oe; + }), + n.d(e, 'creator', function() { + return xt; + }), + n.d(e, 'local', function() { + return Me; + }), + n.d(e, 'matcher', function() { + return At; + }), + n.d(e, 'mouse', function() { + return Re; + }), + n.d(e, 'namespace', function() { + return yt; + }), + n.d(e, 'namespaces', function() { + return vt; + }), + n.d(e, 'clientPoint', function() { + return De; + }), + n.d(e, 'select', function() { + return Ce; + }), + n.d(e, 'selectAll', function() { + return ze; + }), + n.d(e, 'selection', function() { + return Te; + }), + n.d(e, 'selector', function() { + return St; + }), + n.d(e, 'selectorAll', function() { + return kt; + }), + n.d(e, 'style', function() { + return Ht; + }), + n.d(e, 'touch', function() { + return Ne; + }), + n.d(e, 'touches', function() { + return Ie; + }), + n.d(e, 'window', function() { + return Ft; + }), + n.d(e, 'event', function() { + return pe; + }), + n.d(e, 'customEvent', function() { + return _e; + }), + n.d(e, 'arc', function() { + return yx; + }), + n.d(e, 'area', function() { + return Ex; + }), + n.d(e, 'line', function() { + return Sx; + }), + n.d(e, 'pie', function() { + return Tx; + }), + n.d(e, 'areaRadial', function() { + return jx; + }), + n.d(e, 'radialArea', function() { + return jx; + }), + n.d(e, 'lineRadial', function() { + return Lx; + }), + n.d(e, 'radialLine', function() { + return Lx; + }), + n.d(e, 'pointRadial', function() { + return Dx; + }), + n.d(e, 'linkHorizontal', function() { + return Gx; + }), + n.d(e, 'linkVertical', function() { + return Hx; + }), + n.d(e, 'linkRadial', function() { + return Ux; + }), + n.d(e, 'symbol', function() { + return uw; + }), + n.d(e, 'symbols', function() { + return sw; + }), + n.d(e, 'symbolCircle', function() { + return qx; + }), + n.d(e, 'symbolCross', function() { + return Wx; + }), + n.d(e, 'symbolDiamond', function() { + return $x; + }), + n.d(e, 'symbolSquare', function() { + return tw; + }), + n.d(e, 'symbolStar', function() { + return Jx; + }), + n.d(e, 'symbolTriangle', function() { + return nw; + }), + n.d(e, 'symbolWye', function() { + return aw; + }), + n.d(e, 'curveBasisClosed', function() { + return pw; + }), + n.d(e, 'curveBasisOpen', function() { + return mw; + }), + n.d(e, 'curveBasis', function() { + return dw; + }), + n.d(e, 'curveBundle', function() { + return yw; + }), + n.d(e, 'curveCardinalClosed', function() { + return Sw; + }), + n.d(e, 'curveCardinalOpen', function() { + return kw; + }), + n.d(e, 'curveCardinal', function() { + return xw; + }), + n.d(e, 'curveCatmullRomClosed', function() { + return Pw; + }), + n.d(e, 'curveCatmullRomOpen', function() { + return Lw; + }), + n.d(e, 'curveCatmullRom', function() { + return Cw; + }), + n.d(e, 'curveLinearClosed', function() { + return Dw; + }), + n.d(e, 'curveLinear', function() { + return _x; + }), + n.d(e, 'curveMonotoneX', function() { + return Gw; + }), + n.d(e, 'curveMonotoneY', function() { + return Hw; + }), + n.d(e, 'curveNatural', function() { + return Ww; + }), + n.d(e, 'curveStep', function() { + return Yw; + }), + n.d(e, 'curveStepAfter', function() { + return Kw; + }), + n.d(e, 'curveStepBefore', function() { + return $w; + }), + n.d(e, 'stack', function() { + return tS; + }), + n.d(e, 'stackOffsetExpand', function() { + return eS; + }), + n.d(e, 'stackOffsetDiverging', function() { + return nS; + }), + n.d(e, 'stackOffsetNone', function() { + return Qw; + }), + n.d(e, 'stackOffsetSilhouette', function() { + return rS; + }), + n.d(e, 'stackOffsetWiggle', function() { + return iS; + }), + n.d(e, 'stackOrderAppearance', function() { + return oS; + }), + n.d(e, 'stackOrderAscending', function() { + return sS; + }), + n.d(e, 'stackOrderDescending', function() { + return lS; + }), + n.d(e, 'stackOrderInsideOut', function() { + return cS; + }), + n.d(e, 'stackOrderNone', function() { + return Zw; + }), + n.d(e, 'stackOrderReverse', function() { + return fS; + }), + n.d(e, 'timeInterval', function() { + return vm; + }), + n.d(e, 'timeMillisecond', function() { + return tv; + }), + n.d(e, 'timeMilliseconds', function() { + return ev; + }), + n.d(e, 'utcMillisecond', function() { + return tv; + }), + n.d(e, 'utcMilliseconds', function() { + return ev; + }), + n.d(e, 'timeSecond', function() { + return Qm; + }), + n.d(e, 'timeSeconds', function() { + return Zm; + }), + n.d(e, 'utcSecond', function() { + return Qm; + }), + n.d(e, 'utcSeconds', function() { + return Zm; + }), + n.d(e, 'timeMinute', function() { + return Ym; + }), + n.d(e, 'timeMinutes', function() { + return $m; + }), + n.d(e, 'timeHour', function() { + return qm; + }), + n.d(e, 'timeHours', function() { + return Wm; + }), + n.d(e, 'timeDay', function() { + return Gm; + }), + n.d(e, 'timeDays', function() { + return Hm; + }), + n.d(e, 'timeWeek', function() { + return Tm; + }), + n.d(e, 'timeWeeks', function() { + return Dm; + }), + n.d(e, 'timeSunday', function() { + return Tm; + }), + n.d(e, 'timeSundays', function() { + return Dm; + }), + n.d(e, 'timeMonday', function() { + return Cm; + }), + n.d(e, 'timeMondays', function() { + return Rm; + }), + n.d(e, 'timeTuesday', function() { + return Om; + }), + n.d(e, 'timeTuesdays', function() { + return zm; + }), + n.d(e, 'timeWednesday', function() { + return Pm; + }), + n.d(e, 'timeWednesdays', function() { + return Nm; + }), + n.d(e, 'timeThursday', function() { + return Mm; + }), + n.d(e, 'timeThursdays', function() { + return Im; + }), + n.d(e, 'timeFriday', function() { + return Lm; + }), + n.d(e, 'timeFridays', function() { + return Fm; + }), + n.d(e, 'timeSaturday', function() { + return jm; + }), + n.d(e, 'timeSaturdays', function() { + return Vm; + }), + n.d(e, 'timeMonth', function() { + return wm; + }), + n.d(e, 'timeMonths', function() { + return Sm; + }), + n.d(e, 'timeYear', function() { + return bm; + }), + n.d(e, 'timeYears', function() { + return _m; + }), + n.d(e, 'utcMinute', function() { + return ub; + }), + n.d(e, 'utcMinutes', function() { + return lb; + }), + n.d(e, 'utcHour', function() { + return ob; + }), + n.d(e, 'utcHours', function() { + return ab; + }), + n.d(e, 'utcDay', function() { + return yv; + }), + n.d(e, 'utcDays', function() { + return bv; + }), + n.d(e, 'utcWeek', function() { + return rv; + }), + n.d(e, 'utcWeeks', function() { + return cv; + }), + n.d(e, 'utcSunday', function() { + return rv; + }), + n.d(e, 'utcSundays', function() { + return cv; + }), + n.d(e, 'utcMonday', function() { + return iv; + }), + n.d(e, 'utcMondays', function() { + return fv; + }), + n.d(e, 'utcTuesday', function() { + return ov; + }), + n.d(e, 'utcTuesdays', function() { + return dv; + }), + n.d(e, 'utcWednesday', function() { + return av; + }), + n.d(e, 'utcWednesdays', function() { + return hv; + }), + n.d(e, 'utcThursday', function() { + return sv; + }), + n.d(e, 'utcThursdays', function() { + return pv; + }), + n.d(e, 'utcFriday', function() { + return uv; + }), + n.d(e, 'utcFridays', function() { + return gv; + }), + n.d(e, 'utcSaturday', function() { + return lv; + }), + n.d(e, 'utcSaturdays', function() { + return mv; + }), + n.d(e, 'utcMonth', function() { + return nb; + }), + n.d(e, 'utcMonths', function() { + return rb; + }), + n.d(e, 'utcYear', function() { + return xv; + }), + n.d(e, 'utcYears', function() { + return wv; + }), + n.d(e, 'timeFormatDefaultLocale', function() { + return Hy; + }), + n.d(e, 'timeFormat', function() { + return Cv; + }), + n.d(e, 'timeParse', function() { + return Ov; + }), + n.d(e, 'utcFormat', function() { + return Pv; + }), + n.d(e, 'utcParse', function() { + return Mv; + }), + n.d(e, 'timeFormatLocale', function() { + return Av; + }), + n.d(e, 'isoFormat', function() { + return dS; + }), + n.d(e, 'isoParse', function() { + return hS; + }), + n.d(e, 'now', function() { + return ui; + }), + n.d(e, 'timer', function() { + return fi; + }), + n.d(e, 'timerFlush', function() { + return di; + }), + n.d(e, 'timeout', function() { + return mi; + }), + n.d(e, 'interval', function() { + return vi; + }), + n.d(e, 'transition', function() { + return eo; + }), + n.d(e, 'active', function() { + return $o; + }), + n.d(e, 'interrupt', function() { + return Mi; + }), + n.d(e, 'voronoi', function() { + return ZS; + }), + n.d(e, 'zoom', function() { + return dE; + }), + n.d(e, 'zoomTransform', function() { + return rE; + }), + n.d(e, 'zoomIdentity', function() { + return nE; + }); }, - f - ), - a.default.createElement('path', { - d: 'M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z' - }) - ); - }; - }, - function(t, e, n) { - 'use strict'; - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Twitter = void 0); - var r = c(n(0)), - i = c(n(1)), - o = c(n(2)), - a = c(n(23)), - s = c(n(8)), - u = c(n(19)), - l = n(4); - function c(t) { - return t && t.__esModule ? t : { default: t }; - } - var f = (e.Twitter = function(t) { - var e = t.onChange, - n = t.onSwatchHover, - i = t.hex, - c = t.colors, - f = t.width, - d = t.triangle, - h = t.styles, - p = void 0 === h ? {} : h, - g = t.className, - v = void 0 === g ? '' : g, - m = (0, o.default)( - (0, s.default)( - { - default: { - card: { - width: f, - background: '#fff', - border: '0 solid rgba(0,0,0,0.25)', - boxShadow: '0 1px 4px rgba(0,0,0,0.25)', - borderRadius: '4px', - position: 'relative' - }, - body: { padding: '15px 9px 9px 15px' }, - label: { fontSize: '18px', color: '#fff' }, - triangle: { - width: '0px', - height: '0px', - borderStyle: 'solid', - borderWidth: '0 9px 10px 9px', - borderColor: 'transparent transparent #fff transparent', - position: 'absolute' - }, - triangleShadow: { - width: '0px', - height: '0px', - borderStyle: 'solid', - borderWidth: '0 9px 10px 9px', - borderColor: - 'transparent transparent rgba(0,0,0,.1) transparent', - position: 'absolute' - }, - hash: { - background: '#F0F0F0', - height: '30px', - width: '30px', - borderRadius: '4px 0 0 4px', - float: 'left', - color: '#98A1A4', - display: 'flex', - alignItems: 'center', - justifyContent: 'center' - }, - input: { - width: '100px', - fontSize: '14px', - color: '#666', - border: '0px', - outline: 'none', - height: '28px', - boxShadow: 'inset 0 0 0 1px #F0F0F0', - boxSizing: 'content-box', - borderRadius: '0 4px 4px 0', - float: 'left', - paddingLeft: '8px' - }, - swatch: { - width: '30px', - height: '30px', - float: 'left', - borderRadius: '4px', - margin: '0 6px 6px 0' - }, - clear: { clear: 'both' } - }, - 'hide-triangle': { - triangle: { display: 'none' }, - triangleShadow: { display: 'none' } - }, - 'top-left-triangle': { - triangle: { top: '-10px', left: '12px' }, - triangleShadow: { top: '-11px', left: '12px' } - }, - 'top-right-triangle': { - triangle: { top: '-10px', right: '12px' }, - triangleShadow: { top: '-11px', right: '12px' } - } - }, - p - ), - { - 'hide-triangle': 'hide' === d, - 'top-left-triangle': 'top-left' === d, - 'top-right-triangle': 'top-right' === d - } - ), - y = function(t, n) { - u.default.isValidHex(t) && e({ hex: t, source: 'hex' }, n); - }; - return r.default.createElement( - 'div', - { style: m.card, className: 'twitter-picker ' + v }, - r.default.createElement('div', { style: m.triangleShadow }), - r.default.createElement('div', { style: m.triangle }), - r.default.createElement( - 'div', - { style: m.body }, - (0, a.default)(c, function(t, e) { - return r.default.createElement(l.Swatch, { - key: e, - color: t, - hex: t, - style: m.swatch, - onClick: y, - onHover: n, - focusStyle: { boxShadow: '0 0 4px ' + t } - }); - }), - r.default.createElement('div', { style: m.hash }, '#'), - r.default.createElement(l.EditableInput, { - label: null, - style: { input: m.input }, - value: i.replace('#', ''), - onChange: y - }), - r.default.createElement('div', { style: m.clear }) - ) - ); - }); - (f.propTypes = { - width: i.default.oneOfType([i.default.string, i.default.number]), - triangle: i.default.oneOf(['hide', 'top-left', 'top-right']), - colors: i.default.arrayOf(i.default.string), - styles: i.default.object - }), - (f.defaultProps = { - width: 276, - colors: [ - '#FF6900', - '#FCB900', - '#7BDCB5', - '#00D084', - '#8ED1FC', - '#0693E3', - '#ABB8C3', - '#EB144C', - '#F78DA7', - '#9900EF' - ], - triangle: 'top-left', - styles: {} - }), - (e.default = (0, l.ColorWrap)(f)); - }, - function(t, e, n) { - 'use strict'; - var r = n(0), - i = n(1), - o = n(414), - a = n(418), - s = n(419), - u = r.createElement; - function l(t) { - var e = t.language - ? o.highlight(t.language, t.value, { prefix: t.prefix }) - : o.highlightAuto(t.value, { prefix: t.prefix, subset: t.subset }), - n = e.language - ? { className: 'hljs ' + e.language } - : { className: 'hljs' }; - t.inline && - ((n.style = { display: 'inline' }), (n.className = t.className)); - var r = e.value; - t.markers && - t.markers.length > 0 && - (r = s(r, { prefix: t.prefix, markers: t.markers })); - var i = 0 === r.length ? t.value : r.map(a.depth(0)), - l = u('code', n, i); - return t.inline ? l : u('pre', { className: t.className }, l); - } - (l.propTypes = { - className: i.string, - inline: i.bool, - language: i.string, - prefix: i.string, - subset: i.arrayOf(i.string), - value: i.string.isRequired, - markers: i.arrayOf( - i.oneOfType([ - i.number, - i.shape({ line: i.number.isRequired, className: i.string }) - ]) - ) - }), - (l.defaultProps = { - className: 'lowlight', - inline: !1, - prefix: 'hljs-' - }), - (l.registerLanguage = function() { - o.registerLanguage.apply(o, arguments); - }), - (l.hasLanguage = function(t) { - return !!o.getLanguage(t); - }), - (t.exports = l); - }, - function(t, e, n) { - 'use strict'; - var r = n(415), - i = n(416); - function o() {} - o.prototype = r; - var a = new o(); - (t.exports = a), - (a.highlight = function(t, e, n) { - var r = (n || {}).prefix; - null == r && (r = 'hljs-'); - return y(g(t, e, !0, r)); - }), - (a.highlightAuto = h), - (a.registerLanguage = function(t, e) { - var n = e(a); - (n.rawDefinition = e.bind(null, a)), - (f[t] = n), - c.push(t), - n.aliases && p(t, n.aliases); - }), - (a.listLanguages = function() { - return c.concat(); - }), - (a.registerAlias = p), - (a.getLanguage = b); - var s = r.inherit, - u = {}.hasOwnProperty, - l = ['of', 'and', 'for', 'in', 'not', 'or', 'if', 'then'], - c = [], - f = {}, - d = {}; - function h(t, e) { - var n, - r, - o, - a, - s = e || {}, - u = s.subset || c, - l = s.prefix, - f = u.length, - d = -1; - if ((null == l && (l = 'hljs-'), 'string' != typeof t)) - throw i('Expected `string` for value, got `%s`', t); - for (r = y({}), n = y({}); ++d < f; ) - b((a = u[d])) && - (((o = y(g(a, t, !1, l))).language = a), - o.relevance > r.relevance && (r = o), - o.relevance > n.relevance && ((r = n), (n = o))); - return r.language && (n.secondBest = r), n; - } - function p(t, e) { - var n, - r, - i, - o, - a = t; - for (n in (e && ((a = {})[t] = e), a)) - for ( - i = (r = 'string' == typeof (r = a[n]) ? [r] : r).length, o = -1; - ++o < i; + function(t, e, n) { + var r; + window, + (r = function(t, e) { + return (function(t) { + var e = {}; + function n(r) { + if (e[r]) return e[r].exports; + var i = (e[r] = { i: r, l: !1, exports: {} }); + return ( + t[r].call(i.exports, i, i.exports, n), + (i.l = !0), + i.exports + ); + } + return ( + (n.m = t), + (n.c = e), + (n.d = function(t, e, r) { + n.o(t, e) || + Object.defineProperty(t, e, { + enumerable: !0, + get: r + }); + }), + (n.r = function(t) { + 'undefined' != typeof Symbol && + Symbol.toStringTag && + Object.defineProperty(t, Symbol.toStringTag, { + value: 'Module' + }), + Object.defineProperty(t, '__esModule', { value: !0 }); + }), + (n.t = function(t, e) { + if ((1 & e && (t = n(t)), 8 & e)) return t; + if (4 & e && 'object' == typeof t && t && t.__esModule) + return t; + var r = Object.create(null); + if ( + (n.r(r), + Object.defineProperty(r, 'default', { + enumerable: !0, + value: t + }), + 2 & e && 'string' != typeof t) + ) + for (var i in t) + n.d( + r, + i, + function(e) { + return t[e]; + }.bind(null, i) + ); + return r; + }), + (n.n = function(t) { + var e = + t && t.__esModule + ? function() { + return t.default; + } + : function() { + return t; + }; + return n.d(e, 'a', e), e; + }), + (n.o = function(t, e) { + return Object.prototype.hasOwnProperty.call(t, e); + }), + (n.p = ''), + n((n.s = 20)) + ); + })([ + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.each = function(t, e, n) { + var r; + if (!t) return 0; + if (((n = n || t), t instanceof Array)) { + for (r = 0; r < t.length; r++) + if (!1 === e.call(n, t[r], r, t)) return 0; + } else + for (r in t) + if ( + t.hasOwnProperty(r) && + !1 === e.call(n, t[r], r, t) + ) + return 0; + return 1; + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t, e) { + var n = document.createElement('input'); + if ( + ((n.value = t), + document.body.appendChild(n), + n.select(), + document.execCommand('copy'), + document.body.removeChild(n), + e) + ) { + var r = document.createElement('div'); + (r.style.padding = '5px 10px'), + (r.style.backgroundColor = '#ffffff'), + (r.style.fontSize = '12px'), + (r.style.position = 'absolute'), + (r.style.top = e.pageY + 'px'), + (r.style.left = e.pageX + 10 + 'px'), + (r.style.zIndex = '999'), + (r.style.opacity = 1), + (r.style.transition = 'opacity 1s ease'), + (r.innerText = 'copied!'), + document.body.appendChild(r), + document.addEventListener('mousemove', function( + t + ) { + return (function(t, e) { + (e.style.opacity = 0), + (e.style.top = t.pageY + 'px'), + (e.style.left = t.pageX + 10 + 'px'); + })(t, r); + }), + setTimeout(function() { + (r.style.opacity = 1), + document.body.removeChild(r); + }, 1e3); + } + }); + }, + function(e, n) { + e.exports = t; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.prettyNumber = function(t) { + var e = (t = Number(t)).toPrecision(3), + n = '', + r = ['', 'k', 'M', 'B', 'T']; + return Number(e) == t && String(t).length <= 4 + ? String(t) + : Math.abs(t) >= 1e15 + ? e + : t >= 1 || t <= -1 + ? (t < 0 && ((t = -t), (n = '-')), + n + + (function t(e, n) { + var i = (e = String(e)).split('.'); + if (i.length > 1) { + e = i[0]; + var o = i[1]; + 2 == e.length && o.length > 0 + ? o.length > 0 + ? (e = e + '.' + o.charAt(0)) + : (e += '0') + : 1 == e.length && + o.length > 0 && + ((e = e + '.' + o.charAt(0)), + o.length > 1 + ? (e += o.charAt(1)) + : (e += '0')); + } + var a = e.length; + return ( + e.split('.').length > 1 && a--, + a <= 3 + ? String(e) + r[n] + : t(Number(e) / 1e3, n + 1) + ); + })(t, 0)) + : t.toPrecision(3); + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.escapeHtml = function(t) { + var e, + n = '' + t, + i = r.exec(n); + if (!i) return n; + var o = '', + a = 0, + s = 0; + for (a = i.index; a < n.length; a++) { + switch (n.charCodeAt(a)) { + case 34: + e = '"'; + break; + case 38: + e = '&'; + break; + case 39: + e = '''; + break; + case 60: + e = '<'; + break; + case 62: + e = '>'; + break; + default: + continue; + } + s !== a && (o += n.substring(s, a)), + (s = a + 1), + (o += e); + } + return s !== a ? o + n.substring(s, a) : o; + }); + var r = /["'&<>]/; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.extend = function(t) { + for (var e = 1; e < arguments.length; e++) + for (var n in arguments[e]) t[n] = arguments[e][n]; + return t; + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.textWrap = function(t, e) { + t.each(function() { + for ( + var t = r.select(this), + n = t + .text() + .split(/\s+/) + .reverse(), + i = void 0, + o = [], + a = 0, + s = t.attr('x'), + u = t.attr('y'), + l = t + .text(null) + .append('tspan') + .attr('x', s) + .attr('y', u) + .attr('dy', '0em'); + (i = n.pop()); - ) - d[r[o]] = n; - } - function g(t, e, n, r, o) { - var a, - s, - l, - c, - d, - p, - y, - _, - x = {}, - w = {}, - S = [], - E = '', - k = 0; - if ('string' != typeof t) - throw i('Expected `string` for name, got `%s`', t); - if ('string' != typeof e) - throw i('Expected `string` for value, got `%s`', e); - if (((a = b(t)), (l = s = o || a), (c = _ = []), !a)) - throw i('Unknown language: `%s` is not registered', t); - !(function(t) { - function e(i, o) { - i.compiled || - ((i.compiled = !0), - (i.keywords = i.keywords || i.beginKeywords), - i.keywords && - (i.keywords = (function(t, e) { - var n, - r = {}; - if ('string' == typeof t) i('keyword', t); - else for (n in t) i(n, t[n]); - return r; - function i(t, n) { - !(function(t, e) { - var n, - i = e.length, - o = -1; - for (; ++o < i; ) - (n = e[o].split('|')), - (r[n[0]] = [t, Number(n[1]) || v(n[0]) ? 0 : 1]); - })(t, (e ? n.toLowerCase() : n).split(' ')); - } - })(i.keywords, t.case_insensitive)), - (i.lexemesRe = n(i.lexemes || /\w+/, !0)), - o && - (i.beginKeywords && - (i.begin = - '\\b(' + i.beginKeywords.split(' ').join('|') + ')\\b'), - i.begin || (i.begin = /\B|\b/), - (i.beginRe = n(i.begin)), - i.endSameAsBegin && (i.end = i.begin), - i.end || i.endsWithParent || (i.end = /\B|\b/), - i.end && (i.endRe = n(i.end)), - (i.terminator_end = r(i.end) || ''), - i.endsWithParent && - o.terminator_end && - (i.terminator_end += (i.end ? '|' : '') + o.terminator_end)), - i.illegal && (i.illegalRe = n(i.illegal)), - void 0 === i.relevance && (i.relevance = 1), - (i.contains = (function(t, n) { - var r, - i = [], - o = t.length, - a = -1; - for (; ++a < o; ) - (r = t[a]), (i = i.concat(m('self' === r ? n : r))); - (o = i.length), (a = -1); - for (; ++a < o; ) e(i[a], n); - return i; - })(i.contains || [], i)), - i.starts && e(i.starts, o), - (i.terminators = (function(t) { - var e, - i, - o, - a = {}, - s = [], - u = 1, - l = t.contains, - c = l.length, - f = -1, - d = []; - for (; ++f < c; ) - p( - (o = l[f]), - o.beginKeywords ? '\\.?(?:' + o.begin + ')\\.?' : o.begin - ); - t.terminator_end && p('end', t.terminator_end); - t.illegal && p('illegal', t.illegal); - (c = s.length), (f = -1); - for (; ++f < c; ) d[f] = s[f][1]; - return ( - (e = n( - (function(t, e) { - var n, - i, - o, - a, - s = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9]\d*)|\\./, - u = 0, - l = '', - c = t.length, - f = -1; - for (; ++f < c; ) { - for ( - n = t[f], - o = r(n), - i = u += 1, - 0 !== f && (l += e), - l += '('; - o.length > 0; + ) + o.push(i), + l.text(o.join(' ')), + l.node().getComputedTextLength() > e && + (o.pop(), + l.text(o.join(' ')), + (o = [i]), + (l = t + .append('tspan') + .attr('x', s) + .attr('y', u) + .attr('dy', 1.1 * ++a + 0 + 'em') + .text(i))); + }); + }); + var r = (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && + (e[n] = t[n]); + return (e.default = t), e; + })(n(2)); + }, + function(t, e) { + var n; + n = (function() { + return this; + })(); + try { + n = n || new Function('return this')(); + } catch (t) { + 'object' == typeof window && (n = window); + } + t.exports = n; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.appendColumn = s), + (e.appendRow = u); + var r, + i = n(9), + o = (r = i) && r.__esModule ? r : { default: r }, + a = n(0); + function s(t, e) { + var n = this, + r = + (Array.prototype.slice.call(arguments, 2), + void 0 !== t ? t : null); + return ( + 'function' == typeof e + ? (n.matrix[0].push(r), + (0, a.each)(n.matrix, function(t, r) { + var i = void 0; + r > 0 && + (void 0 === (i = e.call(n, t, r)) && + (i = null), + n.matrix[r].push(i)); + })) + : (!e || e instanceof Array) && + ((e = e || []).length <= n.matrix.length - 1 + ? (e = e.concat( + (0, o.default)( + n.matrix.length - 1 - e.length + ) + )) + : (0, a.each)(e, function(t, r) { + n.matrix.length - 1 < e.length && + u.call(n, String(n.matrix.length)); + }), + n.matrix[0].push(r), + (0, a.each)(e, function(t, e) { + n.matrix[e + 1][n.matrix[0].length - 1] = t; + })), + n + ); + } + function u(t, e) { + var n = this, + r = + (Array.prototype.slice.call(arguments, 2), + void 0 !== t ? t : null), + i = []; + return ( + i.push(r), + 'function' == typeof e + ? ((0, a.each)(n.matrix[0], function(t, r) { + var o = void 0, + a = void 0; + r > 0 && + ((o = n.selectColumn(r)), + void 0 === (a = e.call(n, o, r)) && + (a = null), + i.push(a)); + }), + n.matrix.push(i)) + : (!e || e instanceof Array) && + ((e = e || []).length <= n.matrix[0].length - 1 + ? (e = e.concat( + (0, o.default)( + n.matrix[0].length - 1 - e.length + ) + )) + : (0, a.each)(e, function(t, r) { + n.matrix[0].length - 1 < e.length && + s.call(n, String(n.matrix[0].length)); + }), + n.matrix.push(i.concat(e))), + n + ); + } + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t) { + for (var e = [], n = 0; n < t; n++) e.push(null); + return e; + }); + }, + function(t, n) { + t.exports = e; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(t) { + return typeof t; + } + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t; + }; + function i(t) { + return ( + null !== t && + 'function' == typeof t.getTime && + !isNaN(t.getTime()) + ); + } + function o(t) { + return /^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d+)?(([+-]\d\d:\d\d)|Z)?$/i.test( + t + ); + } + (e.testObject = i), + (e.testString = o), + (e.default = function(t) { + return 'object' === + (void 0 === t ? 'undefined' : r(t)) + ? i(t) + : 'string' == typeof t && o(t); + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.Dataset = void 0); + var r = p(n(8)), + i = p(n(22)), + o = p(n(23)), + a = p(n(24)), + s = p(n(25)), + u = p(n(26)), + l = p(n(27)), + c = h(n(13)), + f = n(5), + d = h(n(28)); + function h(t) { + return t && t.__esModule ? t : { default: t }; + } + function p(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && + (e[n] = t[n]); + return (e.default = t), e; + } + var g = (e.Dataset = function t() { + var e = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : {}; + if (this instanceof t == 0) return new t(e); + (this.matrix = [['Index']]), + (this.meta = { type: void 0 }), + (this.config = e); + }); + (g.prototype.data = function(t) { + return arguments.length + ? ((this.matrix = t instanceof Array ? t : null), + this) + : this.matrix; + }), + (g.prototype.set = function(t, e) { + if (arguments.length < 2 || t.length < 2) + throw Error( + 'Incorrect arguments provided for #set method' + ); + var n = + 'number' == typeof t[0] + ? t[0] + : this.matrix[0].indexOf(t[0]), + i = + 'number' == typeof t[1] + ? t[1] + : s.selectColumn.call(this, 0).indexOf(t[1]), + o = s.selectColumn.call(this, t[0]), + a = s.selectRow.call(this, t[1]); + return ( + o.length < 1 && + (r.appendColumn.call(this, String(t[0])), + (n = this.matrix[0].length - 1)), + a.length < 1 && + (r.appendRow.call(this, String(t[1])), + (i = this.matrix.length - 1)), + (this.matrix[i][n] = e), + this + ); + }), + (g.prototype.type = function(t) { + return arguments.length + ? ((this.meta.type = t ? String(t) : void 0), this) + : this.meta.type; + }), + (0, f.extend)(g.prototype, r), + (0, f.extend)(g.prototype, i), + (0, f.extend)(g.prototype, o), + (0, f.extend)(g.prototype, a), + (0, f.extend)(g.prototype, s), + (0, f.extend)(g.prototype, u), + (0, f.extend)(g.prototype, l), + (0, f.extend)(g.prototype, c.default), + (g.parser = (0, d.default)(g)), + (e.default = g); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = n(0); + function i(t, e, n) { + var i = t.slice(e || 0, n ? n + 1 : t.length), + o = 0; + return ( + (0, r.each)(i, function(t, e) { + 'number' != typeof t || + isNaN(parseFloat(t)) || + (o += parseFloat(t)); + }), + o / i.length + ); + } + function o(t, e, n) { + var i = t.slice(e || 0, n ? n + 1 : t.length), + o = []; + return ( + (0, r.each)(i, function(t, e) { + 'number' != typeof t || + isNaN(parseFloat(t)) || + o.push(parseFloat(t)); + }), + Math.max.apply(Math, o) + ); + } + function a(t, e, n) { + var i = t.slice(e || 0, n ? n + 1 : t.length), + o = []; + return ( + (0, r.each)(i, function(t, e) { + 'number' != typeof t || + isNaN(parseFloat(t)) || + o.push(parseFloat(t)); + }), + Math.min.apply(Math, o) + ); + } + function s(t, e, n) { + var i = t.slice(e || 0, n ? n + 1 : t.length), + o = 0; + return ( + (0, r.each)(i, function(t, e) { + 'number' != typeof t || + isNaN(parseFloat(t)) || + (o += parseFloat(t)); + }), + o + ); + } + n(5); + var u = function(t) { + return i(t, 1); + }, + l = u, + c = function(t) { + return s(t, 1); + }, + f = c, + d = function(t) { + return o(t, 1); + }, + h = d, + p = function(t) { + return a(t, 1); + }, + g = p, + m = function(t) { + return t[0]; + }, + v = m; + e.default = { + average: i, + maximum: o, + minimum: a, + sum: s, + getColumnAverage: u, + getRowAverage: l, + getColumnSum: c, + getRowSum: f, + getColumnMaximum: d, + getRowMaximum: h, + getColumnMinimum: p, + getRowMinimum: g, + getColumnLabel: m, + getRowIndex: v + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.stripHtmlTags = function(t) { + return 'string' != typeof t + ? t + : t.replace(/(<([^>]+)>)/gi, ''); + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(t) { + return typeof t; + } + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t; + }; + e.extendDeep = function t(e) { + for (var n = 1; n < arguments.length; n++) + (0, i.each)(arguments[n], function(n, i) { + void 0 !== e[i] && + void 0 !== n && + 'object' === r(e[i]) && + 'object' === (void 0 === n ? 'undefined' : r(n)) && + null !== e[i] && + null !== n + ? t(e[i], n) + : (e[i] = n); + }); + return e; + }; + var i = n(0); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function() { + var t = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : {}, + e = t.element, + n = t.label, + r = void 0 === n ? 'Download' : n, + i = t.type, + a = void 0 === i ? 'json' : i, + s = t.data; + if ( + ![] + .concat( + (function(t) { + if (Array.isArray(t)) { + for ( + var e = 0, n = Array(t.length); + e < t.length; + e++ + ) + n[e] = t[e]; + return n; + } + return Array.from(t); + })(e.parentNode.children) + ) + .find(function(t) { + return 'keen-dataviz-button' === t.className; + }) + ) { + var u = document.createElement('button'); + (u.innerText = r), + (u.className = 'keen-dataviz-button'), + u.addEventListener('click', function(t) { + return (0, + o.default)({ event: t, type: a, data: s }); + }), + e.parentNode.insertBefore(u, e.nextSibling); + } + }); + var r, + i = n(40), + o = (r = i) && r.__esModule ? r : { default: r }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t) { + var e = t.node, + n = t.quality, + r = t.bgcolor; + if (n) { + if (n < 0 || n > 1) + throw Error( + 'Please provide image quality between 0 and 1' + ); + o.default + .toBlob(e, { quality: n, bgcolor: r }) + .then(function(t) { + (0, a.saveAs)(t, 'chart.jpeg'); + }); + } + n || + o.default.toBlob(e).then(function(t) { + (0, a.saveAs)(t, 'chart.png'); + }); + }); + var r, + i = n(41), + o = (r = i) && r.__esModule ? r : { default: r }, + a = n(42); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t) { + var e = t.type, + n = t.data, + r = e.toLowerCase(); + if (!['json', 'csv'].includes(e)) + throw new Error('This type is not supported'); + var i = '', + o = ''; + 'json' === r && + ((o = + 'data:text/json;charset=utf-8, ' + + encodeURIComponent(JSON.stringify(n))), + (i = r)), + 'csv' === r && + (o = (function(t) { + var e = 'data:text/csv;charset=utf-8,'; + return ( + t.forEach(function(n, r) { + n.forEach(function(t, r) { + (e += String(t).replace(/,/g, '')), + n.length > r + 1 && (e += ','); + }), + t.length > r + 1 && (e += '\n'); + }), + e + ); + })(n)); + var a = document.createElement('a'); + a.setAttribute('href', o), + a.setAttribute('download', 'chart.' + i), + document.body.appendChild(a), + a.click(), + document.body.removeChild(a); + }); + }, + function(t, e, n) { + (function(e) { + var n, r, i, o, a; + void 0 === e && (this.window || this.global), + (t.exports = + ((n = function(t, e) { + var n = document.createElement(t); + return e && n.classList.add(e), n; + }), + (r = function(t) { + return t && 'function' == typeof t; + }), + (i = function(t, e, n) { + var r; + return function() { + if (((n = n || this), !r)) + return ( + t.apply(n, arguments), + (r = !0), + setTimeout(function() { + r = !1; + }, e) + ); + }; + }), + ((a = (o = function(t, e) { + (this.plugins = ['ruler']), + 'string' == typeof t && + (t = document.querySelector(t)), + (this.input = t), + (this.config = Object.assign( + {}, + { + type: 'single', + tooltips: 'always', + updateThrottle: 30, + formatTooltip: function(t) { + return t; + }, + classes: { + input: 'rangeable-input', + container: 'rangeable-container', + vertical: 'rangeable-vertical', + progress: 'rangeable-progress', + handle: 'rangeable-handle', + track: 'rangeable-track', + multiple: 'rangeable-multiple', + disabled: 'rangeable-disabled', + tooltips: 'rangeable-tooltips', + tooltip: 'rangeable-tooltip', + visible: 'rangeable-tooltips--visible' + } + }, + e + )), + (this.mouseAxis = { + x: 'clientX', + y: 'clientY' + }), + (this.trackSize = { x: 'width', y: 'height' }), + (this.trackPos = { x: 'left', y: 'top' }), + (this.lastPos = 0), + (this.double = + 'double' === this.config.type || + Array.isArray(this.config.value)), + (this.touch = + 'ontouchstart' in window || + (window.DocumentTouch && + document instanceof DocumentTouch)), + (this.version = '0.1.6'), + this.init(), + this.onInit(); + }).prototype).init = function() { + if (!this.input.rangeable) { + var t, + e = { + min: 0, + max: 100, + step: 1, + value: this.input.value + }; + for (t in e) + this.input[t] || (this.input[t] = e[t]), + void 0 !== this.config[t] && + (this.input[t] = this.config[t]); + (this.axis = this.config.vertical ? 'y' : 'x'), + (this.input.rangeable = this), + this.double + ? ((this.input.values = this.config.value + ? this.config.value + : [this.input.min, this.input.max]), + (this.input.defaultValues = this.input.values.slice())) + : this.input.defaultValue || + (this.input.defaultValue = this.input.value), + this.render(), + (this.initialised = !0); + } + }), + (a.render = function() { + var t = this, + e = this.config, + r = e.classes, + i = n('div', r.container), + o = n('div', r.track), + a = n('div', r.progress), + s = n('div', r.handle), + u = n('div', r.tooltip); + if (((this.input.tabIndex = -1), this.double)) { + (s = [n('div', r.handle), n('div', r.handle)]), + (u = []); + for (var l = 0; 3 > l; l++) + u[l] = n('div', r.tooltip); + s.forEach(function(t, n) { + (t.index = n), + a.appendChild(t), + t.appendChild(u[n]), + (t.tabIndex = 1), + e.controls && + e.controls[n] && + e.controls[n].locked && + !0 === e.controls[n].locked && + (t.locked = !0); + }), + e.vertical && a.appendChild(s[0]), + a.appendChild(u[2]), + i.classList.add(r.multiple); + } else + a.appendChild(s), + s.appendChild(u), + (s.tabIndex = 1), + e.controls && + e.controls.locked && + !0 === e.controls.locked && + (s.locked = !0); + if ( + (i.appendChild(o), + e.vertical && i.classList.add(r.vertical), + e.size && + (i.style[this.trackSize[this.axis]] = isNaN( + e.size + ) + ? e.size + : e.size + 'px'), + e.tooltips && + (i.classList.add(r.tooltips), + 'string' == typeof e.tooltips && + 'always' === e.tooltips && + i.classList.add(r.visible)), + (this.nodes = { + container: i, + track: o, + progress: a, + handle: s, + tooltip: u + }), + this.double) + ) { + this.nodes.buffer = []; + var c = n('div', 'rangeable-buffers'); + this.input.values.forEach(function(r, i) { + var a = n('div', 'rangeable-buffer'); + c.appendChild(a), + t.nodes.buffer.push(a), + o.appendChild(c), + e.controls && + ((t.limits = [{}, {}]), + void 0 !== e.controls[i].min && + (t.limits[i].min = e.controls[i].min), + void 0 !== e.controls[i].max && + (t.limits[i].max = e.controls[i].max)); + }); + } else + (s = n('div', 'rangeable-buffer')), + o.appendChild(s), + (this.nodes.buffer = s), + o.appendChild(s), + e.controls && + ((this.limits = {}), + void 0 !== e.controls.min && + (this.limits.min = e.controls.min), + void 0 !== e.controls.max && + (this.limits.max = e.controls.max)); + this.setLimits(e.controls), + o.appendChild(a), + this.input.parentNode.insertBefore( + i, + this.input + ), + i.insertBefore(this.input, o), + this.input.classList.add(r.input), + this.bind(), + this.update(); + }), + (a.reset = function() { + this.double + ? this.input.defaultValues.forEach( + this.setValue, + this + ) + : this.setValue(this.input.defaultValue), + this.onEnd(); + }), + (a.setValueFromPosition = function(t) { + var e = this.getLimits(), + n = parseFloat(this.input.step), + r = this.touch + ? t.touches[0][this.mouseAxis[this.axis]] + : t[this.mouseAxis[this.axis]], + i = + r - + this.rects.container[ + this.trackPos[this.axis] + ], + o = this.rects.container[ + this.trackSize[this.axis] + ]; + return ( + ('mousedown' !== t.type || + !( + (!this.double && + this.nodes.handle.contains(t.target)) || + (this.double && + (this.nodes.handle[0].contains( + t.target + ) || + this.nodes.handle[1].contains( + t.target + ))) + )) && + ((t = + ((this.config.vertical + ? ((o - i) / o) * 100 + : (i / o) * 100) * + (e.max - e.min)) / + 100 + + e.min), + (t = Math.ceil(t / n) * n), + r >= this.lastPos && (t -= n), + parseFloat(t) !== parseFloat(this.startValue) && + ((n = !1), + this.double && (n = this.activeHandle.index), + (t = this.limit(t, n)), + void this.setValue(t, n))) + ); + }), + (a.start = function(t) { + return ( + t.preventDefault(), + (this.startValue = this.getValue()), + this.onStart(), + this.nodes.container.classList.add('dragging'), + this.recalculate(), + (this.activeHandle = this.getHandle(t)), + !!this.activeHandle && + (this.activeHandle.classList.add('active'), + this.setValueFromPosition(t), + void (this.touch + ? (document.addEventListener( + 'touchmove', + this.events.move, + !1 + ), + document.addEventListener( + 'touchend', + this.events.stop, + !1 + ), + document.addEventListener( + 'touchcancel', + this.events.stop, + !1 + )) + : (document.addEventListener( + 'mousemove', + this.events.move, + !1 + ), + document.addEventListener( + 'mouseup', + this.events.stop, + !1 + )))) + ); + }), + (a.move = function(t) { + this.setValueFromPosition(t), + (this.lastPos = this.touch + ? t.touches[0][this.mouseAxis[this.axis]] + : t[this.mouseAxis[this.axis]]); + }), + (a.stop = function() { + (this.stopValue = this.getValue()), + this.nodes.container.classList.remove( + 'dragging' + ), + this.onEnd(), + this.activeHandle.classList.remove('active'), + (this.activeHandle = !1), + this.touch + ? (document.removeEventListener( + 'touchmove', + this.events.move + ), + document.removeEventListener( + 'touchend', + this.events.stop + ), + document.removeEventListener( + 'touchcancel', + this.events.stop + )) + : (document.removeEventListener( + 'mousemove', + this.events.move + ), + document.removeEventListener( + 'mouseup', + this.events.stop + )), + this.startValue !== this.stopValue && + this.input.dispatchEvent(new Event('change')), + (this.startValue = null); + }), + (a.keydown = function(t) { + var e = this, + n = function(n) { + switch (t.key) { + case 'ArrowRight': + case 'ArrowUp': + e.stepUp(n); + break; + case 'ArrowLeft': + case 'ArrowDown': + e.stepDown(n); + } + }; + this.double + ? this.nodes.handle.forEach(function(t) { + t === document.activeElement && n(t.index); + }) + : this.nodes.handle === + document.activeElement && n(); + }), + (a.stepUp = function(t) { + var e = parseFloat(this.input.step), + n = this.getValue(); + this.double && void 0 !== t && (n = n[t]), + (e = this.limit(parseFloat(n) + e, t)), + this.setValue(e, t); + }), + (a.stepDown = function(t) { + var e = parseFloat(this.input.step), + n = this.getValue(); + this.double && void 0 !== t && (n = n[t]), + (e = this.limit(parseFloat(n) - e, t)), + this.setValue(e, t); + }), + (a.limit = function(t, e) { + var n = this.input, + r = this.getLimits(); + return ( + (t = parseFloat(t)), + this.double && void 0 !== e + ? (!e && t > n.values[1] + ? (t = n.values[1]) + : 0 < e && + t < n.values[0] && + (t = n.values[0]), + this.limits && + (e + ? t > this.limits[1].max + ? (t = this.limits[1].max) + : t < this.limits[1].min && + (t = this.limits[1].min) + : t > this.limits[0].max + ? (t = this.limits[0].max) + : t < this.limits[0].min && + (t = this.limits[0].min))) + : this.limits && + (t > this.limits.max + ? (t = this.limits.max) + : t < this.limits.min && + (t = this.limits.min)), + t > r.max + ? (t = r.max) + : t < r.min && (t = r.min), + (t = parseFloat(t)).toFixed(this.accuracy) + ); + }), + (a.recalculate = function() { + var t = []; + this.double + ? this.nodes.handle.forEach(function(e, n) { + t[n] = e.getBoundingClientRect(); + }) + : (t = this.nodes.handle.getBoundingClientRect()), + (this.rects = { + handle: t, + container: this.nodes.container.getBoundingClientRect() + }); + }), + (a.update = function() { + var t = this; + this.recalculate(), + (this.accuracy = 0), + this.input.step.includes('.') && + (this.accuracy = ( + this.input.step.split('.')[1] || [] + ).length); + var e = this.getValue(), + n = this.getLimits(), + r = this.rects.container[ + this.trackSize[this.axis] + ], + i = function(e, i, o) { + (e.style[ + t.config.vertical ? 'bottom' : 'left' + ] = i + 'px'), + (e.style[t.trackSize[t.axis]] = + (o / n.max) * r - i + 'px'); + }; + this.double + ? (this.limits && + this.limits.forEach(function(e, o) { + i( + t.nodes.buffer[o], + (e.min / n.max) * r, + e.max + ); + }), + this.input.values.forEach(function(e, n) { + t.setValue(t.limit(e, n), n); + })) + : (this.limits && + i( + this.nodes.buffer, + (this.limits.min / n.max) * r, + this.limits.max + ), + this.setValue(this.limit(e))); + }), + (a.getValue = function() { + return this.double + ? this.input.values + : this.input.value; + }), + (a.setValue = function(t, e) { + var n = this.nodes; + if (this.double && void 0 === e) return !1; + void 0 === t && (t = this.input.value), + (t = this.limit(t, e)); + var r = + this.initialised && + (t !== this.input.value || this.nativeEvent), + i = this.config.formatTooltip; + if (this.double) { + var o = this.input.values; + if (((o[e] = t), this.config.tooltips)) { + n.tooltip[e].textContent = i.call(this, t); + var a = n.tooltip[0].getBoundingClientRect(), + s = n.tooltip[1].getBoundingClientRect(); + (a = !( + a.right < s.left || + a.left > s.right || + a.bottom < s.top || + a.top > s.bottom + )), + n.container.classList.toggle( + 'combined-tooltip', + a + ), + a && + (n.tooltip[2].textContent = + o[0] === o[1] + ? i.call(this, o[0]) + : i.call(this, o[0]) + + ' - ' + + i.call(this, o[1])); + } + } else + (this.input.value = t), + (n.tooltip.textContent = i.call(this, t)); + this.setPosition(t, e), + r && + (this.onChange(), + this.nativeEvent || + this.input.dispatchEvent( + new Event('input') + ), + (this.nativeEvent = !1)); + }), + (a.native = function() { + (this.nativeEvent = !0), this.setValue(); + }), + (a.getLimits = function() { + return { + min: parseFloat(this.input.min), + max: parseFloat(this.input.max) + }; + }), + (a.setLimits = function(t) { + var e = this; + if (void 0 === t) return !1; + this.limits || (this.limits = t); + var n = function(t, e) { + void 0 !== e.min && (t.min = e.min), + void 0 !== e.max && (t.max = e.max); + }; + this.double + ? t.forEach(function(t, r) { + n(e.limits[r], t); + }) + : n(this.limits, t), + this.update(); + }), + (a.setPosition = function(t) { + if (this.double) { + t = this.getPosition(this.input.values[0]); + var e = this.getPosition(this.input.values[1]); + (this.nodes.progress.style[ + this.config.vertical ? 'bottom' : 'left' + ] = t + 'px'), + (t = e - t); + } else t = this.getPosition(); + this.nodes.progress.style[ + this.trackSize[this.axis] + ] = t + 'px'; + }), + (a.getPosition = function(t) { + void 0 === t && (t = this.input.value); + var e = this.getLimits(); + return ( + ((t - e.min) / (e.max - e.min)) * + this.rects.container[this.trackSize[this.axis]] + ); + }), + (a.getHandle = function(t) { + if (!this.double) + return ( + !this.nodes.handle.locked && this.nodes.handle + ); + var e = this.rects, + n = Math.abs( + t[this.mouseAxis[this.axis]] - + e.handle[0][this.trackPos[this.axis]] + ); + return ( + (e = Math.abs( + t[this.mouseAxis[this.axis]] - + e.handle[1][this.trackPos[this.axis]] + )), + (t = t.target.closest( + '.' + this.config.classes.handle + )) || + (t = + n > e + ? this.nodes.handle[1] + : this.nodes.handle[0]), + !t.locked && t + ); + }), + (a.enable = function() { + this.input.disabled && + (this.nodes.container.addEventListener( + this.touch ? 'touchstart' : 'mousedown', + this.events.start, + !1 + ), + this.double + ? this.nodes.handle.forEach(function(t) { + return (t.tabIndex = 1); + }) + : (this.nodes.handle.tabIndex = 1), + this.nodes.container.classList.remove( + this.config.classes.disabled + ), + (this.input.disabled = !1)); + }), + (a.disable = function() { + this.input.disabled || + (this.nodes.container.removeEventListener( + this.touch ? 'touchstart' : 'mousedown', + this.events.start + ), + this.double + ? this.nodes.handle.forEach(function(t) { + return t.removeAttribute('tabindex'); + }) + : this.nodes.handle.removeAttribute( + 'tabindex' + ), + this.nodes.container.classList.add( + this.config.classes.disabled + ), + (this.input.disabled = !0)); + }), + (a.bind = function() { + var t = this; + (this.events = {}), + 'start move stop update reset native keydown' + .split(' ') + .forEach(function(e) { + t.events[e] = t[e].bind(t); + }), + (this.events.scroll = i( + this.events.update, + this.config.updateThrottle + )), + (this.events.resize = i( + this.events.update, + this.config.updateThrottle + )), + document.addEventListener( + 'scroll', + this.events.scroll, + !1 + ), + window.addEventListener( + 'resize', + this.events.resize, + !1 + ), + document.addEventListener( + 'keydown', + this.events.keydown, + !1 + ), + this.nodes.container.addEventListener( + this.touch ? 'touchstart' : 'mousedown', + this.events.start, + !1 + ), + this.input.addEventListener( + 'input', + this.events.native, + !1 + ), + this.input.form && + this.input.form.addEventListener( + 'reset', + this.events.reset, + !1 + ); + }), + (a.unbind = function() { + document.removeEventListener( + 'scroll', + this.events.scroll + ), + window.removeEventListener( + 'resize', + this.events.resize + ), + document.removeEventListener( + 'keydown', + this.events.keydown + ), + this.nodes.container.removeEventListener( + this.touch ? 'touchstart' : 'mousedown', + this.events.start + ), + this.input.removeEventListener( + 'input', + this.events.native + ), + this.input.form && + this.input.form.removeEventListener( + 'reset', + this.events.reset + ), + (this.events = null); + }), + (a.destroy = function() { + this.input.rangeable && + (this.unbind(), + this.input.classList.remove( + this.config.classes.input + ), + this.nodes.container.parentNode.replaceChild( + this.input, + this.nodes.container + ), + delete this.input.rangeable, + (this.initialised = !1)); + }), + (a.onInit = function() { + r(this.config.onInit) && + this.config.onInit.call(this, this.getValue()); + }), + (a.onStart = function() { + r(this.config.onStart) && + this.config.onStart.call(this, this.getValue()); + }), + (a.onChange = function() { + r(this.config.onChange) && + this.config.onChange.call( + this, + this.getValue() + ); + }), + (a.onEnd = function() { + r(this.config.onEnd) && + this.config.onEnd.call(this, this.getValue()); + }), + o)); + }.call(this, n(7))); + }, + function(t, e, n) { + 'use strict'; + (function(t) { + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.Dataset = e.Dataviz = e.keenGlobals = e.extendKeenGlobalObject = void 0); + var r = n(21); + Object.defineProperty(e, 'Dataviz', { + enumerable: !0, + get: function() { + return r.Dataviz; + } + }), + Object.defineProperty(e, 'Dataset', { + enumerable: !0, + get: function() { + return r.Dataset; + } + }), + void 0 !== t || + ('undefined' != typeof self + ? self + : 'undefined' != typeof window && window), + (e.extendKeenGlobalObject = function(t) { + (t.KeenDataviz = r.Dataviz), + (t.KeenDataset = r.Dataset), + (t.Keen = t.Keen || {}), + (t.Keen.Dataset = r.Dataset), + (t.Keen.Dataviz = r.Dataviz); + }), + (e.keenGlobals = void 0), + 'undefined' != typeof webpackKeenGlobals && + (e.keenGlobals = webpackKeenGlobals), + (e.default = r.Dataviz); + }.call(this, n(7))); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.Dataset = e.Dataviz = void 0); + var r = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(t) { + return typeof t; + } + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t; + }, + i = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }, + o = n(12); + Object.defineProperty(e, 'Dataset', { + enumerable: !0, + get: function() { + return o.Dataset; + } + }); + var a = (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && + (e[n] = t[n]); + return (e.default = t), e; + })(n(2)), + s = x(n(10)), + u = x(n(31)), + l = x(n(32)), + c = n(0), + f = x(n(11)), + d = n(14), + h = (n(4), x(n(33))), + p = n(15), + g = x(n(17)), + m = x(n(18)), + v = x(n(16)), + y = x(n(53)), + b = x(n(1)), + _ = x(n(54)); + function x(t) { + return t && t.__esModule ? t : { default: t }; + } + var w = (e.Dataviz = function t() { + var e = this, + n = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : {}; + if (this instanceof t == 0) return new t(n); + (this.c3 = s.default), (this.d3 = a); + var r = { + showDeprecationWarnings: !0, + showLoadingSpinner: !1, + container: void 0, + containerElement: void 0, + title: void 0, + showTitle: !0, + subtitle: void 0, + notes: void 0, + theme: 'keen-dataviz', + colors: [ + '#00bbde', + '#fe6672', + '#eeb058', + '#8a8ad6', + '#ff855c', + '#00cfbb', + '#5a9eed', + '#73d483', + '#c879bb', + '#0099b6', + '#d74d58', + '#cb9141', + '#6b6bb6', + '#d86945', + '#00aa99', + '#4281c9', + '#57b566', + '#ac5c9e', + '#27cceb', + '#ff818b', + '#f6bf71', + '#9b9be1', + '#ff9b79', + '#26dfcd', + '#73aff4', + '#87e096', + '#d88bcb' + ], + colorMapping: {}, + ui: { executionMetadata: !0 }, + utils: { clickToCopyToClipboard: !0 }, + indexBy: 'timeframe.start', + labels: [], + labelMapping: {}, + labelMappingRegExp: void 0, + errorMapping: {}, + showErrorMessages: !0, + library: 'default', + sortGroups: void 0, + sortIntervals: void 0, + results: void 0, + type: void 0, + stacked: !1, + dateFormat: void 0, + legend: { + show: !0, + position: 'right', + alignment: 'top', + label: { textMaxLength: 12 }, + pagination: { offset: 0, limit: 5 }, + tooltip: { show: !0, pointer: !0 }, + sort: void 0 + }, + axis: {}, + color: {}, + size: {}, + padding: { top: 15 }, + point: { + focus: { expand: { enabled: !1 } }, + r: 2, + show: !0, + sensitivity: 300 + }, + tooltip: { horizontal: !0, format: {} }, + transition: {}, + data: { + order: null, + selection: { + enabled: !0, + draggable: !0, + multiple: !0 + }, + onselected: function(t, n) { + var r = e.view._artifacts.c3 + .selected() + .reduce(function(t, e) { + return t + e.value; + }, 0); + (0, b.default)(r); + } + }, + grid: { y: { show: !0 } }, + partialIntervalIndicator: { + show: void 0, + className: 'partial-interval-indicator' + }, + timezone: 'UTC', + table: { schema: 'static' }, + renderOnVisible: !1, + funnel: { + lines: !0, + resultValues: !0, + percents: { + show: !1, + countingMethod: 'absolute', + decimals: 0 + }, + marginBetweenElements: !1, + hover: !0, + effect3d: 'both-sides', + minimalSize: !1 + }, + react: !1, + range: !1, + sparkline: !1, + choropleth: { + map: 'world', + borders: { show: !0, size: 0.5, color: '#000' }, + showSlider: !1 + }, + heatmap: {} + }; + (this.config = i({}, (0, p.extendDeep)(r, n))), + n.palette && + (_.default[n.palette] || + console.log( + 'Colors pallete not found', + n.palette + ), + (this.config.colors = _.default[n.palette].colors)), + this.config.type && + (this.config.type = O(this.config.type)), + this.config.type && + this.config.type.includes('-range') && + ((this.config.range = !0), + (this.config.type = this.config.type.replace( + '-range', + '' + )), + (this.config.legend.show = !1), + (this.config.stacking = 'normal'), + (this.config.labels = ['Max', 'Min']), + (this.config.colors = [ + this.config.colors[0], + this.config.colors[0] + ])), + this.config.stacking && (this.config.stacked = !0), + this.config.sparkline && + ((this.config.legend.show = !1), + (this.config.axis = { + x: { show: !1 }, + y: { show: !1 } + }), + (this.config.grid = { + x: { show: !1 }, + y: { show: !1 } + })), + this.config.container && + this.el(this.config.container), + void 0 === n.legend || + n.legend || + (this.config.legend = i({}, n, { show: !1 })), + n.color && + n.color.pattern && + (this.config.colors = n.color.pattern), + this.config.legend && + this.config.legend.tooltip && + !1 === this.config.legend.tooltip.show && + void 0 === this.config.tooltip.show && + (this.config.tooltip = { show: !1 }), + (this.dataset = new o.Dataset(this.config)), + (this.view = { + _prepared: !1, + _rendered: !1, + _artifacts: {} + }), + t.visuals.push(this), + this.config.showLoadingSpinner && this.prepare(), + this.config.results && + this.render(this.config.results), + (this.config.firstVisibilityState = + document.visibilityState), + this.config.utils.clickToCopyToClipboard || + (this.config.data.onselected = function() {}), + n.data && + n.data.onselected && + (this.config.data.onselected = function(t, r) { + if ( + (n.data.onselected.bind(null, t, r)(), + e.config.utils.clickToCopyToClipboard) + ) { + var i = e.view._artifacts.c3 + .selected() + .reduce(function(t, e) { + return t + e.value; + }, 0); + (0, b.default)(i); + } + }); + }); + function S(t) { + 2 !== t.data()[0].length || + (0, f.default)(t.data()[1][0]) + ? t.dataset.updateRow( + 0, + function(e, n) { + return n > 0 && t.config.labels[n - 1] + ? (0, d.stripHtmlTags)( + String(t.config.labels[n - 1]) + ) + : (0, d.stripHtmlTags)(e); + }.bind(t) + ) + : t.dataset.updateColumn( + 0, + function(e, n) { + return t.config.labels[n - 1] + ? (0, d.stripHtmlTags)( + String(t.config.labels[n - 1]) + ) + : (0, d.stripHtmlTags)(e); + }.bind(t) + ); + } + function E(t) { + var e = t.datavizInstance, + n = t.value; + if (e.config.labelMappingRegExp) { + var r = n; + return ( + e.config.labelMappingRegExp.forEach(function(t) { + t.length > 1 && t[0].test(n) && (r = t[1]); + }), + (0, d.stripHtmlTags)(r) + ); + } + return e.config.labelMapping[n] + ? (0, d.stripHtmlTags)( + String(e.config.labelMapping[n]) + ) + : (0, d.stripHtmlTags)(n); + } + function k(t) { + t.config.labelMappingDimension || + (2 !== t.data()[0].length || + (0, f.default)(t.data()[1][0]) + ? (t.config.labelMappingDimension = 'column') + : (t.config.labelMappingDimension = 'row')), + ('row' !== t.config.labelMappingDimension && + 'both' !== t.config.labelMappingDimension) || + t.dataset.updateColumn( + 0, + function(e) { + return E({ datavizInstance: t, value: e }); + }.bind(t) + ), + ('column' !== t.config.labelMappingDimension && + 'both' !== t.config.labelMappingDimension) || + t.dataset.updateRow( + 0, + function(e) { + return E({ datavizInstance: t, value: e }); + }.bind(t) + ); + } + function A(t) { + t.config.sortGroups && + t.data().length > 1 && + ((0, f.default)(t.data()[1][0]) + ? t.dataset.sortColumns( + t.config.sortGroups, + t.dataset.getColumnSum + ) + : t.dataset.sortRows( + t.config.sortGroups, + t.dataset.getRowSum + )); + } + function T(t) { + t.config.sortIntervals && + t.dataset.sortRows(t.config.sortIntervals); + } + function C(t, e) { + var n = '', + r = '', + i = ''; + ('top' !== e.legend.position && + 'bottom' !== e.legend.position) || + (r = 'c3-chart-100-percent'), + e.range && (i = 'keen-dataviz-range'); + var o = + '
', + a = 'horizontal', + s = 'center'; + ['left', 'center', 'right'].includes( + e.legend.alignment + ) && (s = e.legend.alignment), + ('left' !== e.legend.position && + 'right' !== e.legend.position) || + ((a = 'vertical'), + ['top', 'middle', 'bottom'].includes( + e.legend.alignment + ) && (s = e.legend.alignment)), + e.legend && + e.legend.show && + (o = + 'top' === e.legend.position || + 'left' === e.legend.position + ? '
' + + o + : o + + '
'), + e.react || (n += '
'), + e.title && + e.showTitle && + (n += + '
' + + e.title + + '
'), + e.subtitle && + (n += + '
' + + e.subtitle + + '
'), + (n += + '
' + + o + + '
'), + e.notes && + (n += + '
' + + e.notes + + '
'), + e.react || (n += '
'), + (t.innerHTML = n); + } + function O(t) { + return ( + { + areachart: 'area', + barchart: 'horizontal-bar', + columnchart: 'bar', + linechart: 'line', + piechart: 'pie' + }[t] || t + ); + } + function P(t) { + 'undefined' == typeof document && + 'undefined' != typeof window + ? (null == document.readyState && + document.addEventListener && + (document.addEventListener( + 'DOMContentLoaded', + function t() { + document.removeEventListener( + 'DOMContentLoaded', + t, + !1 + ), + (document.readyState = 'complete'); + }, + !1 + ), + (document.readyState = 'loading')), + (function t(e) { + /in/.test(document.readyState) + ? setTimeout(function() { + t(e); + }, 9) + : e(); + })(t)) + : t(); + } + (w.libraries = { default: {} }), + 'undefined' != typeof window && + (w.libraries.default = (0, h.default)(w)), + (w.visuals = []), + (w.register = function(t, e) { + (w.libraries[t] = w.libraries[t] || {}), + (0, c.each)(e, function(e, n) { + w.libraries[t][n] = e; + }); + }), + (w.find = function(t) { + if (!arguments.length) return w.visuals; + var e = t.nodeName ? t : document.querySelector(t), + n = null; + return ( + (0, c.each)(w.visuals, function(t) { + if (e == t.config.container) return (n = t), !1; + }), + n + ); + }), + (w.prototype.attributes = function(t) { + if ( + (this.config.showDeprecationWarnings && + console.log( + '.attributes() is deprecated. Use: new KeenDataviz({ _your_value_here_ })' + ), + !arguments.length) + ) + return this.config; + var e = this.config; + return ( + (0, c.each)(t, function(t, n) { + 'chartType' === n && (n = 'type'), (e[n] = t); + }), + this + ); + }), + (w.prototype.call = function(t) { + return t.call(this), this; + }), + (w.prototype.chartOptions = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log( + '.chartOptions() is deprecated. Use: new KeenDataviz({ _your_value_here_ })' + ), + arguments.length + ? ((this.config = (0, p.extendDeep)( + this.config, + t + )), + this) + : this.config + ); + }), + (w.prototype.colors = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log( + '.colors() is deprecated. Use: new KeenDataviz({ colors: _your_value_here_ })' + ), + arguments.length + ? ((this.config.colors = + t instanceof Array ? t : []), + this) + : this.config.colors + ); + }), + (w.prototype.colorMapping = function(t) { + this.config.showDeprecationWarnings && + console.log( + '.colorMapping() is deprecated. Use: new KeenDataviz({ colorMapping: _your_value_here_ })' + ); + var e = this; + return arguments.length + ? (null === t + ? (this.config.colorMapping = {}) + : 'object' === + (void 0 === t ? 'undefined' : r(t)) && + (0, c.each)(t, function(t, n) { + e.config.colorMapping[n] = t || null; + }), + this) + : this.config.colorMapping; + }), + (w.prototype.data = l.default), + (w.prototype.dateFormat = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log( + '.dateFormat() is deprecated. Use: new KeenDataviz({ dateFormat: _your_value_here_ })' + ), + arguments.length + ? ((this.config.dateFormat = + 'string' == typeof t || 'function' == typeof t + ? t + : void 0), + this) + : this.config.dateFormat + ); + }), + (w.prototype.destroy = function() { + var t = this.library(), + e = this.config.type, + n = this.el(); + return ( + w.libraries[t] && + w.libraries[t][e] && + w.libraries[t][e].destroy.call(this), + n && (n.innerHTML = ''), + (this.view._prepared = !1), + (this.view._rendered = !1), + (this.view._artifacts = {}), + this + ); + }), + (w.prototype.el = function(t) { + var e = this; + return arguments.length + ? (P(function() { + t && null !== t + ? t.nodeName + ? (e.config.containerElement = t) + : document.querySelector && + (e.config.containerElement = document.querySelector( + t + )) + : (e.config.containerElement = void 0); + }), + this) + : this.config.containerElement; + }), + (w.prototype.height = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log( + '.height() is deprecated - use CSS classes' + ), + this + ); + }), + (w.prototype.indexBy = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log( + '.indexBy() is deprecated. Use: new KeenDataviz({ indexBy: _your_value_here_ })' + ), + arguments.length + ? ((this.config.indexBy = t + ? String(t) + : 'timeframe.start'), + this) + : this.config.indexBy + ); + }), + (w.prototype.labels = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log( + '.labels() is deprecated. Use: new KeenDataviz({ labels: _your_value_here_ })' + ), + arguments.length + ? ((this.config.labels = + t instanceof Array ? t : []), + S(this), + this) + : this.config.labels + ); + }), + (w.prototype.labelMapping = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log( + '.labelMapping() is deprecated. Use: new KeenDataviz({ labelMapping: _your_value_here_ })' + ), + arguments.length + ? (null === t + ? (this.config.labelMapping = {}) + : 'object' === + (void 0 === t ? 'undefined' : r(t)) && + (0, c.each)( + t, + function(t, e) { + this.config.labelMapping[e] = t || null; + }.bind(this) + ), + k(this), + this) + : this.config.labelMapping + ); + }), + (w.prototype.library = function(t) { + return arguments.length + ? ((this.config.library = t ? String(t) : null), + this) + : this.config.library; + }), + (w.prototype.message = function() { + if ( + (this.view._rendered && this.destroy(), this.el()) + ) { + this.el().innerHTML = ''; + var t = w.libraries.default.message; + t.render && t.render.apply(this, arguments); + } + return this; + }), + (w.prototype.notes = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log( + '.notes() is deprecated. Use: new KeenDataviz({ notes: _your_value_here_ })' + ), + arguments.length + ? ((this.config.notes = t ? String(t) : null), + this) + : this.config.notes + ); + }), + (w.prototype.prepare = function() { + var t = this; + if (!this.el()) + throw this.config.container + + ' not found. A DOM parent element is required to mount the chart.'; + return ( + P(function() { + if ((t.view._rendered && t.destroy(), t.el())) { + t.el().innerHTML = ''; + var e = w.libraries.default.spinner; + e.render && e.render.call(t), + (t.view._prepared = !0); + } + }), + this + ); + }), + (w.prototype.render = function() { + var t = this, + e = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : void 0, + n = this; + if (e) { + var r = e[0] || e; + if ( + (r.query && + r.query.interval && + r.query.timeframe && + 'string' == typeof r.query.timeframe && + r.query.timeframe.includes('this_') && + this.config.partialIntervalIndicator && + void 0 === + this.config.partialIntervalIndicator.show && + (this.config.partialIntervalIndicator.show = !0), + Array.isArray(e)) + ) { + var i = e.map(function(t) { + return t.query.timeframe; + }); + return ( + i.forEach(function(t) { + if ( + i.find(function(e) { + return ( + JSON.stringify(e) !== JSON.stringify(t) + ); + }) + ) { + var e = + 'Timeframes of the queries should be the same'; + throw (console.error(e), e); + } + }), + n + .data(e[0]) + .call(function() { + var r = function(t) { + return ( + t.query.event_collection + + ' ' + + t.query.analysis_type + ); + }, + i = r(e[0]); + n.config.labelMapping[i] && + (i = n.config.labelMapping[i]), + t.dataset.deleteColumn(1); + var a = !0, + s = !1, + u = void 0; + try { + for ( + var l, c = e[Symbol.iterator](); + !(a = (l = c.next()).done); + a = !0 + ) { + var f = l.value; + i = r(f); + var d = o.Dataset.parser('interval')(f); + n.dataset.appendColumn( + i, + d.selectColumn(1).slice(1) + ); + } + } catch (t) { + (s = !0), (u = t); + } finally { + try { + !a && c.return && c.return(); + } finally { + if (s) throw u; + } + } + }) + .render() + ); + } + return n.data(e).render(); + } + ((this.config.labelMapping && + Object.keys(this.config.labelMapping).length > 0) || + (this.config.labelMappingRegExp && + this.config.labelMappingRegExp.length > 0)) && + k(n), + this.config.labels && + Object.keys(this.config.labels).length > 0 && + S(n), + this.config.sortGroups && A(n), + this.config.sortIntervals && T(n); + var a = w.libraries.default.spinner, + s = this.config.library, + u = this.config.type, + l = this.el(); + if (!l || void 0 === l) { + var c = + this.config.container + + ' not found. A DOM parent element is required to mount the chart.'; + throw (console.error(c), c); + } + var f = n; + return ( + n.config.renderAsPromise && + (f = new Promise(function(e, r) { + var i = t.config.onrendered; + n.config.onrendered = function() { + i && i(), e(n); + }; + })), + P(function() { + var t = + n.execution_metadata && + n.config.ui && + n.config.ui.executionMetadata, + e = + n.config.ui && + n.config.ui.buttons && + n.config.ui.buttons.download && + n.config.ui.buttons.download.type; + if ( + (n.view._prepared && + a.destroy && + a.destroy.apply(n, arguments), + (l.innerHTML = ''), + 'undefined' === w.libraries[s]) + ) { + var r = 'Incorrect library'; + throw (n.message(r), r); + } + if (void 0 === w.libraries[s][u]) { + var i = 'Incorrect chart type', + o = this.config.errorMapping[i] || i; + throw (n.message(o), i); + } + C(l, n.config), + e && + (0, v.default)({ + element: l, + data: n.dataset.matrix, + type: n.config.ui.buttons.download.type, + label: n.config.ui.buttons.download.label + }), + t && + (0, y.default)({ + element: l, + data: n.execution_metadata + }); + var c = n.config.renderOnVisible; + if ( + c && + 'undefined' != typeof IntersectionObserver + ) { + var f = function(t, e) { + t.forEach(function(t) { + t.isIntersecting && + (n.view._rendered || + (w.libraries[s][u].render.call(n), + (n.view._rendered = !0))); + }); + }, + d = new IntersectionObserver(f); + d.observe(l); + } else { + if ( + 'hidden' === n.config.firstVisibilityState && + 'undefined' != typeof document + ) { + var h = void 0, + p = void 0; + void 0 !== document.hidden + ? ((h = 'hidden'), (p = 'visibilitychange')) + : void 0 !== document.msHidden + ? ((h = 'msHidden'), + (p = 'msvisibilitychange')) + : void 0 !== document.webkitHidden && + ((h = 'webkitHidden'), + (p = 'webkitvisibilitychange')); + var g = function() { + document[h] || + n.view._artifacts.c3.load( + n.dataset.matrix + ); + }; + (void 0 === document.addEventListener && + void 0 === h) || + document.addEventListener(p, g, { + once: !0 + }); + } + w.libraries[s][u].render.call(n), + (n.view._rendered = !0); + } + }), + f + ); + }), + (w.prototype.sortGroups = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log( + '.sortGroups() is deprecated. Use: new KeenDataviz({ sortGroups: _your_value_here_ })' + ), + arguments.length + ? ((this.config.sortGroups = t + ? String(t) + : null), + A(this), + this) + : this.config.sortGroups + ); + }), + (w.prototype.sortIntervals = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log( + '.sortIntervals() is deprecated. Use: new KeenDataviz({ sortIntervals: _your_value_here_ })' + ), + arguments.length + ? ((this.config.sortIntervals = t + ? String(t) + : null), + T(this), + this) + : this.config.sortIntervals + ); + }), + (w.prototype.stacked = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log( + '.stacked() is deprecated. Use: new KeenDataviz({ stacked: _your_value_here_ })' + ), + arguments.length + ? ((this.config.stacked = !!t), this) + : this.config.stacked + ); + }), + (w.prototype.theme = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log( + '.theme() is deprecated. Use: new KeenDataviz({ theme: _your_value_here_ })' + ), + arguments.length + ? ((this.config.theme = t ? String(t) : null), + this) + : this.config.theme + ); + }), + (w.prototype.title = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log( + '.title() is deprecated. Use: new KeenDataviz({ title: _your_value_here_ })' + ), + arguments.length + ? ((this.config.title = t ? String(t) : null), + this) + : this.config.title + ); + }), + (w.prototype.type = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log( + '.type() is deprecated. Use: new KeenDataviz({ type: _your_value_here_ })' + ), + arguments.length + ? ((this.config.type = t ? O(t) : null), this) + : this.config.type + ); + }), + (w.prototype.update = function() { + var t = this.config.library, + e = this.config.type, + n = this.el(); + return ( + t && + e && + n && + w.libraries[t][e].update && + w.libraries[t][e].update.apply(this, arguments), + this + ); + }), + (w.prototype.width = function(t) { + return ( + this.config.showDeprecationWarnings && + console.log( + '.width() is deprecated - use CSS classes' + ), + this + ); + }), + (w.prototype.exportImage = function() { + var t = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : {}, + e = t.quality, + n = void 0 === e ? 0 : e, + r = t.bgcolor, + i = void 0 === r ? '#fff' : r; + (0, g.default)({ + node: this.config.containerElement, + quality: n, + bgcolor: i + }); + }), + (w.prototype.exportData = function() { + var t = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : 'json'; + (0, m.default)({ + data: this.dataset.matrix, + type: t + }); + }), + (w.prototype.chartType = w.prototype.type), + (w.prototype.error = w.prototype.message), + (w.prototype.parseRawData = w.prototype.data), + (w.prototype.parseRequest = function() { + return this; + }), + (w.prototype.initialize = function() { + return this; + }), + (w.version = u.default.version), + (e.default = w); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.deleteColumn = function(t) { + var e = this, + n = + 'number' == typeof t + ? t + : this.matrix[0].indexOf(t); + return ( + n > -1 && + (0, r.each)(e.matrix, function(t, r) { + e.matrix[r].splice(n, 1); + }), + e + ); + }), + (e.deleteRow = function(t) { + var e = + 'number' == typeof t + ? t + : this.selectColumn(0).indexOf(t); + return e > -1 && this.matrix.splice(e, 1), this; + }); + var r = n(0); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.filterColumns = function(t) { + var e = this, + n = []; + return ( + (0, r.each)(e.matrix, function(t, e) { + n.push([]); + }), + (0, r.each)(e.matrix[0], function(i, o) { + var a = e.selectColumn(o); + (0 == o || t.call(e, a, o)) && + (0, r.each)(a, function(t, e) { + n[e].push(t); + }); + }), + e.data(n), + e + ); + }), + (e.filterRows = function(t) { + var e = this, + n = []; + return ( + (0, r.each)(e.matrix, function(r, i) { + (0 == i || t.call(e, r, i)) && n.push(r); + }), + e.data(n), + e + ); + }); + var r = n(0); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.insertColumn = function(t, e, n) { + var r = this, + o = void 0 !== e ? e : null; + return ( + 'function' == typeof n + ? (r.matrix[0].splice(t, 0, o), + (0, i.each)(r.matrix, function(e, i) { + var o; + i > 0 && + (void 0 === (o = n.call(r, e, i)) && + (o = null), + r.matrix[i].splice(t, 0, o)); + })) + : (!n || n instanceof Array) && + ((n = n || []).length <= r.matrix.length - 1 + ? (n = n.concat( + (0, a.default)( + r.matrix.length - 1 - n.length + ) + )) + : (0, i.each)(n, function(t, e) { + r.matrix.length - 1 < n.length && + s.appendRow.call( + r, + String(r.matrix.length) + ); + }), + r.matrix[0].splice(t, 0, o), + (0, i.each)(n, function(e, n) { + r.matrix[n + 1].splice(t, 0, e); + })), + r + ); + }), + (e.insertRow = function(t, e, n) { + var r = this, + o = [], + u = void 0 !== e ? e : null; + return ( + o.push(u), + 'function' == typeof n + ? ((0, i.each)(r.matrix[0], function(t, e) { + var i = void 0, + a = void 0; + e > 0 && + ((i = r.selectColumn(e)), + void 0 === (a = n.call(r, i, e)) && + (a = null), + o.push(a)); + }), + r.matrix.splice(t, 0, o)) + : (!n || n instanceof Array) && + ((n = n || []).length <= r.matrix[0].length - 1 + ? (n = n.concat( + (0, a.default)( + r.matrix[0].length - 1 - n.length + ) + )) + : (0, i.each)(n, function(t, e) { + r.matrix[0].length - 1 < n.length && + s.appendColumn.call( + r, + String(r.matrix[0].length) + ); + }), + r.matrix.splice(t, 0, o.concat(n))), + r + ); + }); + var r, + i = n(0), + o = n(9), + a = (r = o) && r.__esModule ? r : { default: r }, + s = n(8); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.selectColumn = function(t) { + var e = [], + n = + 'number' == typeof t + ? t + : this.matrix[0].indexOf(t); + return ( + n > -1 && + void 0 !== this.matrix[0][n] && + (0, r.each)(this.matrix, function(t, r) { + e.push(t[n]); + }), + e + ); + }), + (e.selectRow = function(t) { + var e = [], + n = + 'number' == typeof t + ? t + : this.selectColumn(0).indexOf(t); + return ( + n > -1 && + void 0 !== this.matrix[n] && + (e = this.matrix[n]), + e + ); + }); + var r = n(0); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.sortColumns = function(t, e) { + var n = this, + r = this.matrix[0].slice(1), + o = [], + s = e || a.default.getColumnLabel; + return ( + (0, i.each)(r, function(t, e) { + o.push(n.selectColumn(e + 1).slice(0)); + }), + o.sort(function(e, r) { + var i = s.call(n, e) > s.call(n, r); + return i + ? 'asc' === t + ? 1 + : -1 + : i + ? 0 + : 'asc' === t + ? -1 + : 1; + }), + (0, i.each)(o, function(t, e) { + n.deleteColumn(e + 1).insertColumn( + e + 1, + t[0], + t.slice(1) + ); + }), + n + ); + }), + (e.sortRows = function(t, e) { + var n = this, + r = this.matrix.slice(0, 1), + i = this.matrix.slice(1), + o = e || a.default.getRowIndex; + return ( + i.sort(function(e, r) { + var i = o.call(n, e) > o.call(n, r); + return i + ? 'asc' === t + ? 1 + : -1 + : i + ? 0 + : 'asc' === t + ? -1 + : 1; + }), + n.data(r.concat(i)), + n + ); + }); + var r, + i = n(0), + o = n(13), + a = (r = o) && r.__esModule ? r : { default: r }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.updateColumn = function(t, e) { + var n = this, + r = + 'number' == typeof t + ? t + : this.matrix[0].indexOf(t); + return ( + r > -1 && + ('function' == typeof e + ? (0, i.each)(n.data(), function(t, i) { + var o; + i > 0 && + void 0 !== (o = e.call(n, t[r], i, t)) && + (n.matrix[i][r] = o); + }) + : (!e || e instanceof Array) && + ((e = e || []).length <= n.data().length - 1 + ? (e = e.concat( + (0, a.default)( + n.data().length - 1 - e.length + ) + )) + : (0, i.each)(e, function(t, r) { + n.matrix.length - 1 < e.length && + s.appendRow.call( + n, + String(n.matrix.length) + ); + }), + (0, i.each)(e, function(t, e) { + n.matrix[e + 1][r] = t; + }))), + n + ); + }), + (e.updateRow = function(t, e) { + var n = this, + r = + 'number' == typeof t + ? t + : this.selectColumn(0).indexOf(t); + return ( + r > -1 && + ('function' == typeof e + ? (0, i.each)(n.data()[r], function(t, i) { + var o = n.selectColumn(i), + a = e.call(n, t, i, o); + void 0 !== a && (n.matrix[r][i] = a); + }) + : (!e || e instanceof Array) && + ((e = e || []).length <= + n.matrix[0].length - 1 + ? (e = e.concat( + (0, a.default)( + n.matrix[0].length - 1 - e.length + ) + )) + : (0, i.each)(e, function(t, r) { + n.matrix[0].length - 1 < e.length && + s.appendColumn.call( + n, + String(n.matrix[0].length) + ); + }), + (0, i.each)(e, function(t, e) { + n.matrix[r][e + 1] = t; + }))), + n + ); + }); + var r, + i = n(0), + o = n(9), + a = (r = o) && r.__esModule ? r : { default: r }, + s = n(8); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t) { + return ( + (a = t), + function(t) { + var e = Array.prototype.slice.call(arguments, 1); + if (s[t]) return s[t].apply(this, e); + throw 'Requested parser does not exist'; + } + ); + }); + var r = n(0), + i = n(29), + o = n(30), + a = void 0, + s = { + metric: function() { + return function(t) { + return new a() + .set(['Value', 'Result'], t.result) + .type('metric'); + }; + }, + interval: function() { + var t = Array.prototype.slice.call(arguments); + return function(e) { + var n = new a().type('interval'); + return ( + (0, r.each)(e.result, function(e, r) { + var i = + t[0] && 'timeframe.end' === t[0] + ? e.timeframe.end + : e.timeframe.start; + n.set(['Result', i], e.value); + }), + n + ); + }; + }, + 'grouped-metric': function() { + return function(t) { + var e = new a().type('grouped-metric'); + return ( + (0, r.each)(t.result, function(t, n) { + var i; + (0, r.each)(t, function(t, e) { + 'result' !== e && (i = e); + }), + e.set(['Result', String(t[i])], t.result); + }), + e + ); + }; + }, + 'grouped-interval': function() { + var t = Array.prototype.slice.call(arguments); + return function(e) { + var n = new a().type('grouped-interval'); + return ( + (0, r.each)(e.result, function(e, i) { + var o = + t[0] && 'timeframe.end' === t[0] + ? e.timeframe.end + : e.timeframe.start; + e.value.length + ? (0, r.each)(e.value, function(t, e) { + var i; + (0, r.each)(t, function(t, e) { + 'result' !== e && (i = e); + }), + n.set([String(t[i]), o], t.result); + }) + : n.appendRow(o); + }), + n + ); + }; + }, + 'double-grouped-metric': function() { + var t = Array.prototype.slice.call(arguments); + if (!t[0]) + throw 'Requested parser requires a sequential list (array) of properties to target as a second argument'; + return function(e) { + var n = new a().type('double-grouped-metric'); + return ( + (0, r.each)(e.result, function(e, r) { + var i = e[t[0][0]] + ' ' + e[t[0][1]]; + n.set(['Result', i], e.result); + }), + n + ); + }; + }, + 'double-grouped-interval': function() { + var t = Array.prototype.slice.call(arguments); + if (!t[0]) + throw 'Requested parser requires a sequential list (array) of properties to target as a second argument'; + return function(e) { + var n = new a().type('double-grouped-interval'); + return ( + (0, r.each)(e.result, function(e, i) { + var o = + t[1] && 'timeframe.end' === t[1] + ? e.timeframe.end + : e.timeframe.start; + (0, r.each)(e.value, function(e, r) { + var i = e[t[0][0]] + ' ' + e[t[0][1]]; + n.set([i, o], e.result); + }); + }), + n + ); + }; + }, + funnel: function() { + return function(t) { + var e, n, i; + return ( + void 0 !== t.steps && + void 0 !== t.result && + t.result instanceof Array + ? ((e = t.result), (n = t.steps)) + : void 0 !== t.result.steps && + void 0 !== t.result.result && + t.result.result instanceof Array && + ((e = t.result.result), + (n = t.result.steps)), + (i = new a().type('funnel')).appendColumn( + 'Step Value' + ), + (0, r.each)(e, function(t, e) { + void 0 !== n && + n[e] && + i.appendRow(String(n[e].event_collection), [ + t + ]); + }), + i + ); + }; + }, + list: function() { + return function(t) { + var e = new a().type('list'); + return ( + (0, r.each)(t.result, function(t, n) { + e.set(['Result', String(n + 1)], t); + }), + e + ); + }; + }, + extraction: function() { + var t = this.config; + return function(e) { + var n = new a().type('extraction'), + r = Object.keys((0, i.flatten)(e.result[0])), + s = t && t.table; + if (s && 'dynamic' === s.schema) { + var u = e.result, + l = {}; + u.forEach(function(t) { + var e = Object.keys((0, i.flatten)(t)); + e && + e.length && + e.forEach(function(t) { + l[t] || (l[t] = !0); + }); + }), + (r = Object.keys(l)); + } + r.forEach(function(t) { + n.set([t, '0'], t); + }), + a && + t && + t.table && + t.table.columns && + (r = t.table.columns); + for (var c = 0; c < e.result.length; c++) { + for (var f = [c + 1], d = 0; d < r.length; d++) + f.push( + (0, o.valueAtDeepKey)(e.result[c], r[d]) + ); + n.matrix[String(c + 1)] = f; + } + return n.deleteColumn(0), n; + }; + }, + 'heatmap-axis': function() { + return function(t) { + var e = new a().type('heatmap'); + return ( + (0, r.each)(t.result, function(t, n) { + var r = Object.keys(t), + i = t[r[0]], + o = t[r[1]]; + e.appendRow([String(i), String(o), t.result]); + }), + e + ); + }; + } + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(t) { + return typeof t; + } + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t; + }; + e.flatten = function t(e) { + var n = {}; + for (var i in e) + if (e.hasOwnProperty(i)) + if ('object' == r(e[i]) && null !== e[i]) { + var o = t(e[i]); + for (var a in o) + o.hasOwnProperty(a) && (n[i + '.' + a] = o[a]); + } else n[i] = e[i]; + return n; + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.valueAtDeepKey = function t(e, n, r) { + return 'string' == typeof n + ? t(e, n.split('.'), r) + : 1 == n.length && + void 0 !== r && + null !== e && + void 0 !== e[n[0]] + ? (e[n[0]] = r) + : 0 == n.length + ? e + : void 0 === n || + void 0 === e || + null === n || + null === e || + void 0 === e[n[0]] + ? null + : t(e[n[0]], n.slice(1), r); + }); + }, + function(t) { + t.exports = { + name: 'keen-dataviz', + description: 'Data Visualization SDK for Keen IO', + license: 'MIT', + version: '3.13.7', + main: 'dist/external_d3_c3/node/keen-dataviz.js', + browser: 'dist/external_d3_c3/keen-dataviz.js', + style: 'dist/keen-dataviz.css', + scripts: { + start: + 'concurrently --kill-others "NODE_ENV=development webpack-dev-server" "npm run postcss-watch"', + 'postcss-watch': + 'node_modules/postcss-cli/bin/postcss lib/style/keen-dataviz-c3.css -o test/demo/keen-dataviz.css --watch --config postcss.config.js', + build: + 'NODE_ENV=production webpack -p && npm run build:css && NODE_ENV=production OPTIMIZE_MINIMIZE=1 webpack -p && npm run build:css && npm run build:css:min && npm run build:external_d3_c3 && npm run build:external_d3_c3:css && npm run build:external_d3_c3:css:min && npm run build:node', + 'build:css': + 'node_modules/postcss-cli/bin/postcss lib/style/keen-dataviz-c3.css -o dist/keen-dataviz.css --config postcss.config.js', + 'build:css:min': + 'OPTIMIZE_MINIMIZE=1 node_modules/postcss-cli/bin/postcss lib/style/keen-dataviz-c3.css -o dist/keen-dataviz.min.css --config postcss.config.js', + 'build:external_d3_c3:css': + 'node_modules/postcss-cli/bin/postcss lib/style/keen-dataviz.css -o dist/external_d3_c3/keen-dataviz.css --config postcss.config.js', + 'build:external_d3_c3:css:min': + 'OPTIMIZE_MINIMIZE=1 node_modules/postcss-cli/bin/postcss lib/style/keen-dataviz.css -o dist/external_d3_c3/keen-dataviz.min.css --config postcss.config.js', + 'build:external_d3_c3': + 'NODE_ENV=production EXTERNAL_D3_C3=1 webpack -p && NODE_ENV=production EXTERNAL_D3_C3=1 OPTIMIZE_MINIMIZE=1 webpack -p', + 'build:node': + 'TARGET=node NODE_ENV=production EXTERNAL_D3_C3=1 webpack -p', + profile: 'webpack --profile --json > stats.json', + analyze: 'webpack-bundle-analyzer stats.json /dist', + version: 'npm run build && git add .', + postversion: + 'git push && git push --tags && npm publish', + test: 'NODE_ENV=test jest', + 'test:watch': 'NODE_ENV=test jest --watch' + }, + repository: { + type: 'git', + url: 'https://github.com/keen/keen-dataviz.js.git' + }, + bugs: 'https://github.com/keen/keen-dataviz.js/issues', + author: 'Keen.IO (https://keen.io/)', + contributors: [ + 'Dustin Larimer (https://github.com/dustinlarimer)', + 'Joanne Cheng (https://github.com/joannecheng)', + 'Eric Anderson (https://github.com/aroc)', + 'Joe Wegner (https://github.com/josephwegner)', + 'Sara Falkoff (https://github.com/adamkasprowicz)', + 'Dariusz Łacheta (https://github.com/dariuszlacheta)' + ], + homepage: 'https://keen.io/', + keywords: [ + 'd3', + 'c3', + 'Analytics', + 'Stats', + 'Statistics', + 'Visualization', + 'Visualizations', + 'Data Visualization', + 'Chart', + 'Charts', + 'Charting', + 'Svg', + 'Dataviz', + 'Plots', + 'Graphs', + 'Funnels' + ], + dependencies: { + c3: '^0.7.2', + d3: '^5.11.0', + 'dom-to-image': '^2.6.0', + 'file-saver': '^2.0.1', + 'promise-polyfill': '^8.0.0', + rangeable: '^0.1.6' + }, + devDependencies: { + autoprefixer: '^8.2.0', + 'babel-loader': '^7.1.4', + 'babel-plugin-transform-es2015-modules-commonjs': + '^6.26.2', + 'babel-plugin-transform-object-rest-spread': + '^6.26.0', + 'babel-preset-env': '^1.7.0', + concurrently: '^3.5.1', + cssnano: '^3.10.0', + eslint: '^4.19.1', + 'eslint-config-airbnb': '^16.1.0', + 'eslint-loader': '^2.0.0', + 'eslint-plugin-import': '^2.11.0', + 'eslint-plugin-jsx-a11y': '^6.0.3', + 'eslint-plugin-react': '^7.7.0', + 'html-loader': '^0.5.5', + 'html-webpack-plugin': '^3.2.0', + jest: '^22.4.3', + 'jest-environment-jsdom-c3': '^2.0.0', + nock: '^9.2.6', + postcss: '^6.0.21', + 'postcss-cli': '^5.0.0', + 'postcss-color-function': '^4.0.1', + 'postcss-css-variables': '^0.8.1', + 'postcss-cssnext': '^2.4.0', + 'postcss-import': '^8.0.2', + 'postcss-loader': '^2.1.3', + precss: '^3.1.2', + 'regenerator-runtime': '^0.11.1', + 'replace-in-file': '^3.4.0', + 'style-loader': '^0.20.3', + webpack: '^4.29.0', + 'webpack-bundle-analyzer': '^3.3.2', + 'webpack-cli': '^3.2.1', + 'webpack-dev-server': '^3.3.1', + 'xhr-mock': '^2.3.2' + } + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t) { + return arguments.length + ? t instanceof o.default + ? ((this.dataset = t), this) + : u.call(this, t) + : this.dataset.data(); + }); + var r, + i = n(12), + o = (r = i) && r.__esModule ? r : { default: r }, + a = n(5), + s = n(14); + function u(t) { + var e, + n, + r, + i, + u, + l, + c, + f = []; + return ( + (n = this.config.indexBy), + (r = t.metadata || {}), + (u = void 0 !== t.query ? t.query : {}), + 'funnel' === + (u = (0, a.extend)( + { + analysis_type: null, + event_collection: null, + filters: [], + group_by: null, + interval: null, + timeframe: null, + timezone: null + }, + u + )).analysis_type + ? (i = 'funnel') + : 'extraction' === u.analysis_type + ? (i = 'extraction') + : 'select_unique' === u.analysis_type + ? u.group_by || u.interval || (i = 'list') + : u.analysis_type && + (u.group_by || u.interval + ? u.group_by && !u.interval + ? u.group_by instanceof Array && + u.group_by.length > 1 + ? ((i = 'double-grouped-metric'), + f.push(u.group_by)) + : (i = 'grouped-metric') + : u.interval && !u.group_by + ? ((i = 'interval'), f.push(n)) + : u.group_by && + u.interval && + (u.group_by instanceof Array && + u.group_by.length > 1 + ? ((i = 'double-grouped-interval'), + f.push(u.group_by), + f.push(n)) + : ((i = 'grouped-interval'), f.push(n))) + : (i = 'metric')), + i || + ('number' == typeof t.result && (i = 'metric'), + t.result instanceof Array && + t.result.length > 0 && + (!t.result[0].timeframe || + ('number' != typeof t.result[0].value && + null != t.result[0].value) || + ((i = 'interval'), f.push(n)), + 'number' == typeof t.result[0].result && + (i = 'grouped-metric'), + 'heatmap' === this.config.type && + Object.keys( + 3 === t.result[0] && + 'number' == typeof t.result[0].result + ) && + (i = 'heatmap-axis'), + t.result[0].value instanceof Array && + ((i = 'grouped-interval'), f.push(n)), + 'number' == typeof t.result[0] && + void 0 !== t.steps && + ((i = 'funnel'), (u.steps = t.steps)), + ('string' != typeof t.result[0] && + 'number' != typeof t.result[0]) || + void 0 !== t.steps || + (i = 'list'), + i || (i = 'extraction')), + i || (i = 'extraction')), + void 0 === this.config.title && + ((l = r.display_name + ? r.display_name + : (function(t) { + var e, + n = t.analysis_type + ? t.analysis_type.replace('_', ' ') + : ''; + return ( + (e = n.replace(/\b./g, function(t) { + return t.toUpperCase(); + })), + t.event_collection && + (e += ' - ' + t.event_collection), + e + ); + })(u)), + (this.config.title = l)), + this.config.type || + ((c = + r.visualization && r.visualization.chart_type + ? r.visualization.chart_type + : (function(t) { + var e = void 0; + switch (t) { + case 'metric': + e = 'metric'; + break; + case 'interval': + e = 'area'; + break; + case 'grouped-metric': + case 'double-grouped-metric': + e = 'bar'; + break; + case 'grouped-interval': + case 'double-grouped-interval': + e = 'line'; + break; + case 'funnel': + e = 'horizontal-bar'; + break; + case 'list': + case 'extraction': + default: + e = 'table'; + } + return e; + })(i)), + (this.config.type = c)), + (e = o.default.parser.apply(this, [i].concat(f))( + (0, a.extend)(t, { query: u }) + )), + i.indexOf('interval') > -1 && + e.updateColumn(0, function(t, e) { + return new Date(t); + }), + e.updateRow(0, function(t, e) { + return (0, s.stripHtmlTags)(t); + }), + (this.dataset = e), + t.execution_metadata && + (this.execution_metadata = t.execution_metadata), + this + ); + } + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }; + e.default = function(t) { + var e, + n = void 0; + return ( + (e = function() { + n && clearTimeout(n); + var e = t.visuals.length > 12 ? 1e3 : 250; + n = setTimeout(function() { + (0, o.each)(t.visuals, function(t) { + var e = t.view._artifacts.c3; + if (e) { + var n = e.element.previousSibling + ? e.element.previousSibling.offsetWidth + : 0, + r = e.element.nextSibling + ? e.element.nextSibling.offsetWidth + : 0, + i = + e.element.parentNode.parentNode + .offsetWidth - + n - + r; + e.resize({ width: i }); + } + }); + }, e); + }), + 'undefined' != typeof window && + ((window.onresize = window.resize = function() {}), + window.addEventListener + ? window.addEventListener('resize', e, !0) + : window.attachEvent && + window.attachEvent('onresize', e)), + (function() { + var t = { + message: h.default, + metric: p.default, + table: g.default, + spinner: m.default, + funnel: new v.default(), + 'funnel-3d': new y.default(), + 'horizontal-funnel': new b.default(), + 'horizontal-funnel-3d': new _.default(), + 'metric-combo': new x.default(), + heatmap: new w.default(), + choropleth: new S.default() + }, + e = function(t, e) { + return parseInt( + window + .getComputedStyle(t) + ['padding' + e].replace('px', '') + ); + }; + function n() { + var t = { + bindto: this.el().querySelector( + '.' + + this.config.theme + + '-rendering .c3-chart' + ), + color: { pattern: this.config.colors }, + data: { + colors: r({}, this.config.colorMapping), + columns: [], + type: this.config.type.replace( + 'horizontal-', + '' + ) + } + }, + n = this.el(), + i = n.offsetHeight; + if ( + ((i -= e(n, 'Top') + e(n, 'Bottom')), + this.config.showTitle) + ) { + var o = this.el().querySelector( + '.keen-dataviz-title' + ); + i -= o + ? o.offsetHeight + : parseInt( + window + .getComputedStyle(this.el(), null) + ['font-size'].replace('px', '') + ); + } + if (this.config.notes) { + var s = this.el().querySelector( + '.keen-dataviz-notes' + ); + i -= s + ? s.offsetHeight + : parseInt( + window + .getComputedStyle(this.el(), null) + ['font-size'].replace('px', '') + ); + } + var u = + this.el().querySelector('.c3-chart') + .offsetWidth - + (e(n, 'Left') + e(n, 'Right')); + u < 0 && (u = 0); + var l = { + size: { width: u, height: i > 0 ? i : void 0 } + }; + return (0, a.extendDeep)({}, l, this.config, t); + } + return ( + (0, o.each)( + [ + 'area', + 'area-spline', + 'area-step', + 'bar', + 'donut', + 'gauge', + 'line', + 'pie', + 'step', + 'spline', + 'horizontal-area', + 'horizontal-area-spline', + 'horizontal-area-step', + 'horizontal-bar', + 'horizontal-line', + 'horizontal-step', + 'horizontal-spline' + ], + function(a, h) { + t[a] = { + render: function() { + var t = this, + h = n.call(this), + p = (0, d.calculateSumForPercents)( + this.dataset.matrix + ); + if ( + ('percent' !== h.stacking || + ('bar' !== a && + 'horizontal-bar' !== a && + 'area' !== a && + 'area-step' !== a && + 'area-spline' !== a) || + (this.dataset.matrix, + (this.dataset.matrix = [ + this.dataset.matrix[0] + ].concat( + k( + (0, d.calculatePercents)( + this.dataset.matrix, + p + ) + ) + )), + h.sparkline || + (h.axis = { + y: { + padding: { top: 0 }, + tick: { + format: function(t) { + return t + '%'; + } + } + } + })), + h.range && + (this.dataset.matrix = [ + this.dataset.matrix[0] + ].concat( + k( + (0, f.default)( + this.dataset.matrix + ) + ) + )), + this.config.clearOnRender && + h.data.columns.length && + this.dataset && + this.dataset.meta) + ) { + var g = (this.dataset.meta || {}).type, + m = 0; + ['interval'].includes( + void 0 === g ? '' : g + ) && (m = 1), + h.data.columns.splice(m); + } + if ( + 1 !== this.data()[0].length && + 1 !== this.data().length + ) { + var v = !1; + if ( + ('gauge' === a + ? ((h.legend.show = !1), + (h.data.columns = [ + [ + this.config.title || + this.data()[1][0], + this.data()[1][1] + ] + ]), + (v = !0)) + : 'pie' === a || 'donut' === a + ? (h.data.columns = this.data().slice( + 1 + )) + : (a.indexOf('horizontal-') > -1 && + (h.axis.rotated = + a.indexOf('horizontal-') > + -1), + (0, s.default)(this.data()[1][0]) + ? ((h.axis.x = h.axis.x || {}), + (h.axis.x.type = + 'timeseries'), + (h.axis.x.tick = h.axis.x + .tick || { + format: + this.config.dateFormat || + (0, u.default)( + this.data()[1][0], + this.data()[2] + ? this.data()[2][0] + : this.data()[1][0] + ), + culling: { max: 5 } + }), + (h.data.columns[0] = []), + (0, o.each)( + this.dataset.selectColumn( + 0 + ), + function(t, e) { + e > 0 && + (t = new Date(t)), + (h.data.columns[0][ + e + ] = t); + } + ), + (h.data.columns[0][0] = 'x'), + (h.data.x = 'x'), + this.config.stacked && + this.data()[0].length > 2 && + (h.data.groups = [ + this.dataset + .selectRow(0) + .slice(1) + ])) + : ((h.axis.x = h.axis.x || {}), + (h.axis.x.type = 'category'), + (h.axis.x.categories = this.dataset + .selectColumn(0) + .slice(1)), + this.config.stacked && + this.data()[0].length > 2 && + (h.data.groups = [ + this.dataset + .selectRow(0) + .slice(1) + ])), + 2 === this.data()[0].length && + ((h.legend.show = !1), + (v = !0)), + (0, o.each)( + this.data()[0], + function(t, e) { + e > 0 && + h.data.columns.push( + this.dataset.selectColumn( + e + ) + ); + }.bind(this) + )), + v) + ) { + var y = this.el().querySelector( + '.keen-c3-legend' + ); + y && + (y.remove(), + (h.size.width = this.el().querySelector( + '.c3-chart' + ).offsetWidth)), + (h.legend.show = !1); + } + if ( + h.partialIntervalIndicator && + h.partialIntervalIndicator.show && + [ + 'area', + 'area-spline', + 'area-step', + 'line', + 'spline', + 'step' + ].indexOf(h.type) > -1 + ) { + var b = + h.data.columns && h.data.columns[0]; + if (b && b.length > 1) { + var _ = { + axis: 'x', + start: new Date(b[b.length - 2]), + class: + h.partialIntervalIndicator + .className + }; + h.regions = [].concat( + k(h.regions || []), + [_] + ); + } + } + if ( + ((h.tooltip && + !1 === h.tooltip.show) || + !( + !0 === h.legend.show || + (h.legend && + h.legend.tooltip && + h.legend.tooltip.show) + ) || + (h.tooltip = { + contents: c.default, + format: { + title: this.config.tooltip + .format.title, + value: function(e, n, r, i) { + var o = T.call(t, e, n, r, i); + return t.config.tooltip && + t.config.tooltip.format && + t.config.tooltip.format + .value + ? ((o = t.config.tooltip.format.value.call( + t, + o, + n, + r, + i + )), + 'percent' !== + h.stacking || + ('bar' !== a && + 'horizontal-bar' !== + a && + 'area' !== a && + 'area-step' !== a && + 'area-spline' !== + a) || + (o = parseFloat( + ( + (o / 100) * + p[i] + ).toFixed(2) + )), + h.range && + 'Max' === r && + (o += + t.dataset.matrix[ + i + 1 + ][2]), + o) + : 'percent' !== + h.stacking || + ('bar' !== a && + 'horizontal-bar' !== + a && + 'area' !== a && + 'area-step' !== a && + 'area-spline' !== a) + ? (h.range && + 'Max' === r && + (o += + t.dataset.matrix[ + i + 1 + ][2]), + o) + : ((o = ( + (o / 100) * + p[i] + ).toFixed(2)), + parseFloat(o)); + } + } + }), + !0 === h.legend.show) + ) { + var x = r({}, h); + (x.data.color = A.bind(this)), + (x.legend.hide = !0), + (this.view._artifacts.c3 = i.default.generate( + x + )), + l.default.call( + this, + r({}, h, { + onLegendRendered: function() { + var n = t + .el() + .querySelector( + '.keen-c3-legend' + ); + n && + ('top' === + h.legend.position || + 'bottom' === + h.legend.position + ? ((x.size.height -= + n.offsetHeight), + t.view._artifacts.c3.resize( + { + height: + x.size.height + } + )) + : (0 === x.size.width && + (x.size.width = + t.el().offsetWidth - + e(t.el(), 'Left') - + e(t.el(), 'Right')), + (x.size.width -= + n.offsetWidth), + t.view._artifacts.c3.resize( + { + width: x.size.width + } + ))); + }, + onPaginated: function() { + t.view._artifacts.c3.flush(); + } + }) + ); + } else + this.view._artifacts.c3 = i.default.generate( + h + ); + } else { + var w = 'No data to display', + S = this.config.errorMapping[w] || w; + this.config.showErrorMessages && + this.message(S); + } + }, + update: function() { + this.render(); + }, + destroy: function() { + this.view._artifacts.c3 && + (this.view._artifacts.c3.destroy(), + (this.view._artifacts.c3 = null)); + } + }; + } + ), + t + ); + })() + ); + }; + var i = E(n(10)), + o = n(0), + a = (n(5), n(15)), + s = E(n(11)), + u = E(n(34)), + l = E(n(35)), + c = E(n(36)), + f = E(n(37)), + d = n(38), + h = E(n(39)), + p = E(n(43)), + g = E(n(44)), + m = E(n(45)), + v = E(n(46)), + y = E(n(47)), + b = E(n(48)), + _ = E(n(49)), + x = E(n(50)), + w = E(n(51)), + S = E(n(52)); + function E(t) { + return t && t.__esModule ? t : { default: t }; + } + function k(t) { + if (Array.isArray(t)) { + for ( + var e = 0, n = Array(t.length); + e < t.length; + e++ + ) + n[e] = t[e]; + return n; + } + return Array.from(t); + } + function A(t, e) { + var n = this.config.type; + if (this.view._artifacts.pagination && 'gauge' !== n) { + var r = this.view._artifacts.pagination.labels; + return (e.id && r.indexOf(e.id) > -1) || + (e && !e.id && r.indexOf(e) > -1) + ? t + : 'donut' === n || 'pie' === n + ? 'rgba(0,0,0,.1)' + : 'rgba(0,0,0,.07)'; + } + return t; + } + function T(t, e, n, r) { + var i = this.config.type; + return this.view._artifacts.pagination && 'gauge' !== i + ? this.view._artifacts.pagination.labels.indexOf(n) > + -1 + ? t + : void 0 + : t; + } + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t, e) { + var n = Math.abs( + new Date(t).getTime() - new Date(e).getTime() + ), + r = [ + 'Jan', + 'Feb', + 'Mar', + 'Apr', + 'May', + 'June', + 'July', + 'Aug', + 'Sept', + 'Oct', + 'Nov', + 'Dec' + ]; + return n >= 24192e5 + ? function(t) { + var e = new Date(t); + return r[e.getMonth()] + ' ' + e.getFullYear(); + } + : n >= 864e5 + ? function(t) { + var e = new Date(t); + return r[e.getMonth()] + ' ' + e.getDate(); + } + : n >= 36e5 + ? '%I:%M %p' + : '%I:%M:%S %p'; + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }; + (e.default = function(t) { + var e = t.data.columns, + n = this, + i = this.view._artifacts.c3, + o = [], + s = this.el().querySelector( + '.' + n.config.theme + '-rendering' + ), + u = n.config.legend, + l = (this.view._artifacts.pagination = r( + { + hidden: [], + labels: [], + offset: 0, + limit: Math.round((s.offsetHeight - 78) / 20), + total: 0 + }, + u.pagination + )); + if (t.legend.sort) { + o = t.legend.sort(e); + var c = []; + 'x' === e[0][0] && c.push(e[0]), + o.forEach(function(e) { + var n = t.data.columns.find(function(t) { + return t[0] === e; + }); + c.push(n); + }), + (t.data.columns = c); + } else + for (var f = 0; f < e.length; f++) + 'x' === e[f][0] || + (0, a.default)(e[f][1]) || + o.push(e[f][0]); + var d = this.el().querySelector('.keen-c3-legend'), + h = 'vertical'; + ('top' !== u.position && 'bottom' !== u.position) || + (h = 'horizontal'); + var p = document.createElement('div'); + p.setAttribute( + 'class', + 'keen-c3-legend-pagination-icons keen-c3-legend-horizontal-pagination-left' + ), + 'horizontal' === h && d.append(p); + var g = document.createElement('div'); + g.setAttribute( + 'class', + 'keen-c3-legend-items keen-c3-legend-' + h + '-items' + ), + d.append(g); + var m = document.createElement('div'); + m.setAttribute( + 'class', + 'keen-c3-legend-pagination keen-c3-legend-pagination-icons' + ), + 'vertical' === h && d.append(m); + var v = document.createElement('div'); + function y() { + (l.labels = o.slice(l.offset, l.offset + l.limit)), + (l.total = o.length), + b.call(n, l.labels), + l.total > l.limit && _.call(n), + t.onPaginated && t.onPaginated(); + } + function b() { + (g.innerHTML = ''), + l.labels.forEach(function(e) { + var n = u.label.textMaxLength + ? e.slice(0, u.label.textMaxLength - 1) + : e, + r = document.createElement('div'); + (r.innerHTML = + "" + + n + + ''), + (r.chartPartId = e), + r.setAttribute('class', 'legend-item'), + g.append(r); + var o = document.createElement('span'); + o.setAttribute( + 'class', + 'legend-item-color-sample' + ), + (o.style.backgroundColor = i.color( + r.chartPartId + )), + r.prepend(o); + var a = document.createElement('div'); + r.addEventListener('mouseover', function(e) { + i.focus(r.chartPartId), + u.tooltip.show && + r.chartPartId.length > + u.label.textMaxLength && + (a.setAttribute( + 'class', + 'keen-c3-legend-label-overlay keen-c3-legend-position-' + + u.position + ), + (a.innerHTML = + (t.legend.tooltip.pointer + ? "
" + : '') + r.chartPartId), + r.append(a)); + }), + r.addEventListener('mouseout', function(t) { + i.revert(), a.remove(); + }), + r.addEventListener('click', function(t) { + var e = 1, + n = l.hidden.indexOf(r.chartPartId); + n < 0 + ? (l.hidden.push(r.chartPartId), (e = 0.35)) + : (l.hidden.splice(n, 1), (e = 1)), + (r.style.opacity = e), + i.toggle(r.chartPartId); + }); + }), + t.onLegendRendered && + (t.onLegendRendered(), + (t.onLegendRendered = null)); + } + function _() { + (m.innerHTML = ''), + (p.innerHTML = ''), + (v.innerHTML = ''); + var t = document.createElement('i'), + e = document.createElement('i'), + n = function(t) { + if ('forward' === t) { + var e = l.offset + l.limit; + return e < l.total + ? void (l.offset = e) + : void (l.offset = 0); + } + var n = l.offset - l.limit; + l.offset = + n >= 0 + ? n + : Math.floor(l.total / l.limit) * l.limit; + }; + e.addEventListener('click', function() { + n('forward'), y(), x(); + }), + t.addEventListener('click', function() { + n('backward'), y(), x(); + }), + 'left' === u.position || 'right' === u.position + ? (t.setAttribute('class', 'up'), + e.setAttribute('class', 'down'), + m.append(e), + m.append(t)) + : (t.setAttribute('class', 'left'), + e.setAttribute('class', 'right'), + p.append(t), + v.append(e)); + } + function x() { + document.selection && document.selection.empty + ? document.selection.empty() + : window.getSelection && + window.getSelection().removeAllRanges(); + } + v.setAttribute( + 'class', + 'keen-c3-legend-pagination-icons keen-c3-legend-horizontal-pagination-right' + ), + 'horizontal' === h && d.append(v), + y(); + }), + (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && + (e[n] = t[n]); + e.default = t; + })(n(2)); + var i, + o = n(11), + a = (i = o) && i.__esModule ? i : { default: i }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t, e, n, i) { + for ( + var o = void 0, + a = void 0, + s = + this.config.tooltip_format_name || + function(t) { + return t; + }, + u = this.config.tooltip_format_title || e, + l = this.config.tooltip_format_value || n, + c = 0; + c < t.length; + c++ + ) + if (t[c] && (t[c].value || 0 === t[c].value)) { + o || + ((a = u ? u(t[c].x) : t[c].x), + (o = + "" + + (a || 0 === a + ? "' + : ''))); + var f = s(t[c].name), + d = l( + t[c].value, + t[c].ratio, + t[c].id, + t[c].index + ), + h = this.levelColor + ? this.levelColor(t[c].value) + : i(t[c].id); + d && + !isNaN(d) && + ((o += + ""), + -1 === + f.indexOf('__tooltip_ignore_name_field__') && + (o += + "'), + (o += + "'), + (o += '')); + } + return o + '
" + + (0, r.escapeHtml)(a) + + '
" + + (0, r.escapeHtml)(f) + + '" + + (0, r.escapeHtml)(d) + + '
'; + }); + var r = n(4); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t) { + return t.slice(1).map(function(t) { + return t.map(function(e, n) { + return 'number' == typeof e && 1 === n + ? e - t[n + 1] + : e; + }); + }); + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.calculateSumForPercents = function(t) { + var e = []; + return ( + t.slice(1).forEach(function(t, n) { + t.forEach(function(t) { + if ('number' == typeof t) { + if (!e[n]) return (e[n] = t), e[n]; + e[n] += t; + } + return e[n]; + }); + }), + e + ); + }), + (e.calculatePercents = function(t, e) { + return t.slice(1).map(function(t, n) { + return t.map(function(t) { + return 'number' == typeof t + ? (t / e[n]) * 100 + : t; + }); + }); + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = n(4), + i = a(n(16)), + o = a(n(1)); + function a(t) { + return t && t.__esModule ? t : { default: t }; + } + e.default = { + render: function(t) { + var e = document.createElement('div'), + n = document.createElement('div'), + a = document.createElement('span'), + s = document.createElement('div'), + u = document.createElement('div'), + l = document.createElement('div'); + (e.className = + this.config.theme + ' keen-dataviz-box'), + (n.className = this.config.theme + '-message'), + (s.className = this.config.theme + '-title'), + (s.innerHTML = (0, r.escapeHtml)( + this.config.title || '' + )), + (u.className = this.config.theme + '-subtitle'), + (u.innerHTML = (0, r.escapeHtml)( + this.config.subtitle || '' + )), + (l.className = this.config.theme + '-notes'), + (l.innerHTML = (0, r.escapeHtml)( + this.config.notes || '' + )), + (a.innerHTML = (0, r.escapeHtml)(t) || ''), + n.appendChild(a), + this.config.title && + this.config.showTitle && + e.appendChild(s), + this.config.subtitle && e.appendChild(u), + e.appendChild(n), + this.config.notes && e.appendChild(l), + this.config.ui && + this.config.ui.buttons && + this.config.ui.buttons.download && + this.config.ui.buttons.download.type && + (0, i.default)({ + element: this.el(), + data: (0, r.escapeHtml)(t) || '', + type: this.config.ui.buttons.download.type, + label: this.config.ui.buttons.download.label + }), + this.config.utils && + this.config.utils.clickToCopyToClipboard && + (s.addEventListener('click', function(t) { + return (0, o.default)(t.target.innerText, t); + }), + l.addEventListener('click', function(t) { + return (0, o.default)(t.target.innerText, t); + }), + a.addEventListener('click', function(t) { + return (0, o.default)(t.target.innerText, t); + })), + (this.el().innerHTML = ''), + this.el().appendChild(e); + }, + update: function() { + this.render(); + }, + destroy: function() {} + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function(t) { + var e = t.event, + n = t.type, + o = t.data; + e.preventDefault(); + var a = n.toLowerCase(); + if ( + !['json', 'csv', 'jpg', 'jpeg', 'png'].includes(n) + ) + throw new Error('This type is not supported'); + 'png' !== a + ? 'jpg' !== a && 'jpeg' !== a + ? ('json' === a && + (0, i.default)({ type: a, data: o }), + 'csv' === a && + (0, i.default)({ type: a, data: o })) + : (0, r.default)({ + node: e.currentTarget.previousElementSibling, + quality: 1, + bgcolor: '#fff' + }) + : (0, r.default)({ + node: e.currentTarget.previousElementSibling + }); + }); + var r = o(n(17)), + i = o(n(18)); + function o(t) { + return t && t.__esModule ? t : { default: t }; + } + }, + function(t, e, n) { + !(function(e) { + 'use strict'; + var n = (function() { + return { + escape: function(t) { + return t.replace( + /([.*+?^${}()|\[\]\/\\])/g, + '\\$1' + ); + }, + parseExtension: e, + mimeType: function(t) { + var n, + r = e(t).toLowerCase(); + return ( + ((n = 'application/font-woff'), + { + woff: n, + woff2: n, + ttf: 'application/font-truetype', + eot: 'application/vnd.ms-fontobject', + png: 'image/png', + jpg: 'image/jpeg', + jpeg: 'image/jpeg', + gif: 'image/gif', + tiff: 'image/tiff', + svg: 'image/svg+xml' + })[r] || '' + ); + }, + dataAsUrl: function(t, e) { + return 'data:' + e + ';base64,' + t; + }, + isDataUrl: function(t) { + return -1 !== t.search(/^(data:)/); + }, + canvasToBlob: function(t) { + return t.toBlob + ? new Promise(function(e) { + t.toBlob(e); + }) + : (function(t) { + return new Promise(function(e) { + for ( + var n = window.atob( + t.toDataURL().split(',')[1] + ), + r = n.length, + i = new Uint8Array(r), + o = 0; + o < r; + o++ + ) + i[o] = n.charCodeAt(o); + e(new Blob([i], { type: 'image/png' })); + }); + })(t); + }, + resolveUrl: function(t, e) { + var n = document.implementation.createHTMLDocument(), + r = n.createElement('base'); + n.head.appendChild(r); + var i = n.createElement('a'); + return ( + n.body.appendChild(i), + (r.href = e), + (i.href = t), + i.href + ); + }, + getAndEncode: function(t) { + var e = 3e4; + return ( + s.impl.options.cacheBust && + (t += + (/\?/.test(t) ? '&' : '?') + + new Date().getTime()), + new Promise(function(n) { + var r, + i = new XMLHttpRequest(); + if ( + ((i.onreadystatechange = function() { + if (4 === i.readyState) + if (200 === i.status) { + var e = new FileReader(); + (e.onloadend = function() { + var t = e.result.split(/,/)[1]; + n(t); + }), + e.readAsDataURL(i.response); + } else + r + ? n(r) + : a( + 'cannot fetch resource: ' + + t + + ', status: ' + + i.status + ); + }), + (i.ontimeout = function() { + r + ? n(r) + : a( + 'timeout of ' + + e + + 'ms occured while fetching resource: ' + + t + ); + }), + (i.responseType = 'blob'), + (i.timeout = e), + i.open('GET', t, !0), + i.send(), + s.impl.options.imagePlaceholder) + ) { + var o = s.impl.options.imagePlaceholder.split( + /,/ + ); + o && o[1] && (r = o[1]); + } + function a(t) { + console.error(t), n(''); + } + }) + ); + }, + uid: + ((t = 0), + function() { + return ( + 'u' + + ( + '0000' + + ( + (Math.random() * Math.pow(36, 4)) << + 0 + ).toString(36) + ).slice(-4) + + t++ + ); + }), + delay: function(t) { + return function(e) { + return new Promise(function(n) { + setTimeout(function() { + n(e); + }, t); + }); + }; + }, + asArray: function(t) { + for ( + var e = [], n = t.length, r = 0; + r < n; + r++ + ) + e.push(t[r]); + return e; + }, + escapeXhtml: function(t) { + return t + .replace(/#/g, '%23') + .replace(/\n/g, '%0A'); + }, + makeImage: function(t) { + return new Promise(function(e, n) { + var r = new Image(); + (r.onload = function() { + e(r); + }), + (r.onerror = n), + (r.src = t); + }); + }, + width: function(t) { + var e = n(t, 'border-left-width'), + r = n(t, 'border-right-width'); + return t.scrollWidth + e + r; + }, + height: function(t) { + var e = n(t, 'border-top-width'), + r = n(t, 'border-bottom-width'); + return t.scrollHeight + e + r; + } + }; + var t; + function e(t) { + var e = /\.([^\.\/]*?)$/g.exec(t); + return e ? e[1] : ''; + } + function n(t, e) { + var n = window + .getComputedStyle(t) + .getPropertyValue(e); + return parseFloat(n.replace('px', '')); + } + })(), + r = (function() { + var t = /url\(['"]?([^'"]+?)['"]?\)/g; + return { + inlineAll: function(t, n, o) { + return e(t) + ? Promise.resolve(t) + .then(r) + .then(function(e) { + var r = Promise.resolve(t); + return ( + e.forEach(function(t) { + r = r.then(function(e) { + return i(e, t, n, o); + }); + }), + r + ); + }) + : Promise.resolve(t); + }, + shouldProcess: e, + impl: { readUrls: r, inline: i } + }; + function e(e) { + return -1 !== e.search(t); + } + function r(e) { + for (var r, i = []; null !== (r = t.exec(e)); ) + i.push(r[1]); + return i.filter(function(t) { + return !n.isDataUrl(t); + }); + } + function i(t, e, r, i) { + return Promise.resolve(e) + .then(function(t) { + return r ? n.resolveUrl(t, r) : t; + }) + .then(i || n.getAndEncode) + .then(function(t) { + return n.dataAsUrl(t, n.mimeType(e)); + }) + .then(function(r) { + return t.replace( + (function(t) { + return new RegExp( + '(url\\([\'"]?)(' + + n.escape(t) + + ')([\'"]?\\))', + 'g' + ); + })(e), + '$1' + r + '$3' + ); + }); + } + })(), + i = (function() { + return { + resolveAll: function() { + return t(document) + .then(function(t) { + return Promise.all( + t.map(function(t) { + return t.resolve(); + }) + ); + }) + .then(function(t) { + return t.join('\n'); + }); + }, + impl: { readAll: t } + }; + function t() { + return Promise.resolve( + n.asArray(document.styleSheets) + ) + .then(function(t) { + var e = []; + return ( + t.forEach(function(t) { + try { + n.asArray(t.cssRules || []).forEach( + e.push.bind(e) + ); + } catch (e) { + console.log( + 'Error while reading CSS rules from ' + + t.href, + e.toString() + ); + } + }), + e + ); + }) + .then(function(t) { + return t + .filter(function(t) { + return t.type === CSSRule.FONT_FACE_RULE; + }) + .filter(function(t) { + return r.shouldProcess( + t.style.getPropertyValue('src') + ); + }); + }) + .then(function(e) { + return e.map(t); + }); + function t(t) { + return { + resolve: function() { + var e = (t.parentStyleSheet || {}).href; + return r.inlineAll(t.cssText, e); + }, + src: function() { + return t.style.getPropertyValue('src'); + } + }; + } + } + })(), + o = (function() { + return { + inlineAll: function e(i) { + return i instanceof Element + ? (function(t) { + var e = t.style.getPropertyValue( + 'background' + ); + return e + ? r + .inlineAll(e) + .then(function(e) { + t.style.setProperty( + 'background', + e, + t.style.getPropertyPriority( + 'background' + ) + ); + }) + .then(function() { + return t; + }) + : Promise.resolve(t); + })(i).then(function() { + return i instanceof HTMLImageElement + ? t(i).inline() + : Promise.all( + n + .asArray(i.childNodes) + .map(function(t) { + return e(t); + }) + ); + }) + : Promise.resolve(i); + }, + impl: { newImage: t } + }; + function t(t) { + return { + inline: function(e) { + return n.isDataUrl(t.src) + ? Promise.resolve() + : Promise.resolve(t.src) + .then(e || n.getAndEncode) + .then(function(e) { + return n.dataAsUrl( + e, + n.mimeType(t.src) + ); + }) + .then(function(e) { + return new Promise(function(n, r) { + (t.onload = n), + (t.onerror = r), + (t.src = e); + }); + }); + } + }; + } + })(), + a = { imagePlaceholder: void 0, cacheBust: !1 }, + s = { + toSvg: u, + toPng: function(t, e) { + return l(t, e || {}).then(function(t) { + return t.toDataURL(); + }); + }, + toJpeg: function(t, e) { + return l(t, (e = e || {})).then(function(t) { + return t.toDataURL( + 'image/jpeg', + e.quality || 1 + ); + }); + }, + toBlob: function(t, e) { + return l(t, e || {}).then(n.canvasToBlob); + }, + toPixelData: function(t, e) { + return l(t, e || {}).then(function(e) { + return e + .getContext('2d') + .getImageData( + 0, + 0, + n.width(t), + n.height(t) + ).data; + }); + }, + impl: { + fontFaces: i, + images: o, + util: n, + inliner: r, + options: {} + } + }; + function u(t, e) { + return ( + (function(t) { + void 0 === t.imagePlaceholder + ? (s.impl.options.imagePlaceholder = + a.imagePlaceholder) + : (s.impl.options.imagePlaceholder = + t.imagePlaceholder), + void 0 === t.cacheBust + ? (s.impl.options.cacheBust = a.cacheBust) + : (s.impl.options.cacheBust = t.cacheBust); + })((e = e || {})), + Promise.resolve(t) + .then(function(t) { + return (function t(e, r, i) { + return i || !r || r(e) + ? Promise.resolve(e) + .then(function(t) { + return t instanceof HTMLCanvasElement + ? n.makeImage(t.toDataURL()) + : t.cloneNode(!1); + }) + .then(function(i) { + return (function(e, r, i) { + var o = e.childNodes; + return 0 === o.length + ? Promise.resolve(r) + : (function(e, n, r) { + var i = Promise.resolve(); + return ( + n.forEach(function(n) { + i = i + .then(function() { + return t(n, r); + }) + .then(function(t) { + t && e.appendChild(t); + }); + }), + i + ); + })(r, n.asArray(o), i).then( + function() { + return r; + } + ); + })(e, i, r); + }) + .then(function(t) { + return (function(t, e) { + return e instanceof Element + ? Promise.resolve() + .then(function() { + var r, i; + (r = window.getComputedStyle( + t + )), + (i = e.style), + r.cssText + ? (i.cssText = + r.cssText) + : (function(t, e) { + n.asArray( + t + ).forEach(function( + n + ) { + e.setProperty( + n, + t.getPropertyValue( + n + ), + t.getPropertyPriority( + n + ) + ); + }); + })(r, i); + }) + .then(function() { + [ + ':before', + ':after' + ].forEach(function(r) { + !(function(r) { + var i = window.getComputedStyle( + t, + r + ), + o = i.getPropertyValue( + 'content' + ); + if ( + '' !== o && + 'none' !== o + ) { + var a = n.uid(); + e.className = + e.className + + ' ' + + a; + var s = document.createElement( + 'style' + ); + s.appendChild( + (function(t, e, r) { + var i = + '.' + + t + + ':' + + e, + o = r.cssText + ? (function( + t + ) { + var e = t.getPropertyValue( + 'content' + ); + return ( + t.cssText + + ' content: ' + + e + + ';' + ); + })(r) + : (function( + t + ) { + return ( + n + .asArray( + t + ) + .map( + function( + e + ) { + return ( + e + + ': ' + + t.getPropertyValue( + e + ) + + (t.getPropertyPriority( + e + ) + ? ' !important' + : '') + ); + } + ) + .join( + '; ' + ) + + ';' + ); + })(r); + return document.createTextNode( + i + + '{' + + o + + '}' + ); + })(a, r, i) + ), + e.appendChild(s); + } + })(r); + }); + }) + .then(function() { + t instanceof + HTMLTextAreaElement && + (e.innerHTML = t.value), + t instanceof + HTMLInputElement && + e.setAttribute( + 'value', + t.value + ); + }) + .then(function() { + e instanceof SVGElement && + (e.setAttribute( + 'xmlns', + 'http://www.w3.org/2000/svg' + ), + e instanceof + SVGRectElement && + [ + 'width', + 'height' + ].forEach(function(t) { + var n = e.getAttribute( + t + ); + n && + e.style.setProperty( + t, + n + ); + })); + }) + .then(function() { + return e; + }) + : e; + })(e, t); + }) + : Promise.resolve(); + })(t, e.filter, !0); + }) + .then(c) + .then(f) + .then(function(t) { + return ( + e.bgcolor && + (t.style.backgroundColor = e.bgcolor), + e.width && (t.style.width = e.width + 'px'), + e.height && + (t.style.height = e.height + 'px'), + e.style && + Object.keys(e.style).forEach(function(n) { + t.style[n] = e.style[n]; + }), + t + ); + }) + .then(function(r) { + return (function(t, e, r) { + return Promise.resolve(t) + .then(function(t) { + return ( + t.setAttribute( + 'xmlns', + 'http://www.w3.org/1999/xhtml' + ), + new XMLSerializer().serializeToString(t) + ); + }) + .then(n.escapeXhtml) + .then(function(t) { + return ( + '' + + t + + '' + ); + }) + .then(function(t) { + return ( + '' + + t + + '' + ); + }) + .then(function(t) { + return ( + 'data:image/svg+xml;charset=utf-8,' + t + ); + }); + })( + r, + e.width || n.width(t), + e.height || n.height(t) + ); + }) + ); + } + function l(t, e) { + return u(t, e) + .then(n.makeImage) + .then(n.delay(100)) + .then(function(r) { + var i = (function(t) { + var r = document.createElement('canvas'); + if ( + ((r.width = e.width || n.width(t)), + (r.height = e.height || n.height(t)), + e.bgcolor) + ) { + var i = r.getContext('2d'); + (i.fillStyle = e.bgcolor), + i.fillRect(0, 0, r.width, r.height); + } + return r; + })(t); + return i.getContext('2d').drawImage(r, 0, 0), i; + }); + } + function c(t) { + return i.resolveAll().then(function(e) { + var n = document.createElement('style'); + return ( + t.appendChild(n), + n.appendChild(document.createTextNode(e)), + t + ); + }); + } + function f(t) { + return o.inlineAll(t).then(function() { + return t; + }); + } + t.exports = s; + })(); + }, + function(t, e, n) { + (function(n) { + var r, i, o; + (i = []), + void 0 === + (o = + 'function' == + typeof (r = function() { + 'use strict'; + function e(t, e, n) { + var r = new XMLHttpRequest(); + r.open('GET', t), + (r.responseType = 'blob'), + (r.onload = function() { + a(r.response, e, n); + }), + (r.onerror = function() { + console.error('could not download file'); + }), + r.send(); + } + function r(t) { + var e = new XMLHttpRequest(); + e.open('HEAD', t, !1); + try { + e.send(); + } catch (t) {} + return 200 <= e.status && 299 >= e.status; + } + function i(t) { + try { + t.dispatchEvent(new MouseEvent('click')); + } catch (n) { + var e = document.createEvent('MouseEvents'); + e.initMouseEvent( + 'click', + !0, + !0, + window, + 0, + 0, + 0, + 80, + 20, + !1, + !1, + !1, + !1, + 0, + null + ), + t.dispatchEvent(e); + } + } + var o = + 'object' == typeof window && + window.window === window + ? window + : 'object' == typeof self && + self.self === self + ? self + : 'object' == typeof n && n.global === n + ? n + : void 0, + a = + o.saveAs || + ('object' != typeof window || window !== o + ? function() {} + : 'download' in + HTMLAnchorElement.prototype + ? function(t, n, a) { + var s = o.URL || o.webkitURL, + u = document.createElement('a'); + (n = n || t.name || 'download'), + (u.download = n), + (u.rel = 'noopener'), + 'string' == typeof t + ? ((u.href = t), + u.origin === location.origin + ? i(u) + : r(u.href) + ? e(t, n, a) + : i(u, (u.target = '_blank'))) + : ((u.href = s.createObjectURL( + t + )), + setTimeout(function() { + s.revokeObjectURL(u.href); + }, 4e4), + setTimeout(function() { + i(u); + }, 0)); + } + : 'msSaveOrOpenBlob' in navigator + ? function(t, n, o) { + if ( + ((n = n || t.name || 'download'), + 'string' != typeof t) + ) + navigator.msSaveOrOpenBlob( + (function(t, e) { + return ( + void 0 === e + ? (e = { autoBom: !1 }) + : 'object' != typeof e && + (console.warn( + 'Deprecated: Expected third argument to be a object' + ), + (e = { autoBom: !e })), + e.autoBom && + /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test( + t.type + ) + ? new Blob(['\ufeff', t], { + type: t.type + }) + : t + ); + })(t, o), + n + ); + else if (r(t)) e(t, n, o); + else { + var a = document.createElement('a'); + (a.href = t), + (a.target = '_blank'), + setTimeout(function() { + i(a); + }); + } + } + : function(t, n, r, i) { + if ( + ((i = i || open('', '_blank')) && + (i.document.title = i.document.body.innerText = + 'downloading...'), + 'string' == typeof t) + ) + return e(t, n, r); + var a = + 'application/octet-stream' === + t.type, + s = + /constructor/i.test( + o.HTMLElement + ) || o.safari, + u = /CriOS\/[\d]+/.test( + navigator.userAgent + ); + if ( + (u || (a && s)) && + 'object' == typeof FileReader + ) { + var l = new FileReader(); + (l.onloadend = function() { + var t = l.result; + (t = u + ? t + : t.replace( + /^data:[^;]*;/, + 'data:attachment/file;' + )), + i + ? (i.location.href = t) + : (location = t), + (i = null); + }), + l.readAsDataURL(t); + } else { + var c = o.URL || o.webkitURL, + f = c.createObjectURL(t); + i + ? (i.location = f) + : (location.href = f), + (i = null), + setTimeout(function() { + c.revokeObjectURL(f); + }, 4e4); + } + }); + (o.saveAs = a.saveAs = a), (t.exports = a); + }) + ? r.apply(e, i) + : r) || (t.exports = o); + }.call(this, n(7))); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r, + i = n(3), + o = n(4), + a = n(1), + s = (r = a) && r.__esModule ? r : { default: r }; + e.default = { + render: function() { + var t = this.config.colors[0], + e = this.config.theme, + n = this.config.title, + r = this.config.subtitle, + a = this.config, + u = '-', + l = '', + c = '', + f = '', + d = '', + h = void 0, + p = '', + g = '', + m = '', + v = '', + y = this.config, + b = y.results, + _ = y.previousResults, + x = y.isExtraction, + w = y.comparedProp; + if ( + (b && + _ && + ((p = _ ? ' metric-comparison' : ''), + (v = _ && n ? '-smaller' : ''), + (m = + (g = b.result - _.result) > 0 + ? '-green' + : '-red'), + (g = Math.abs(g)), + (t = '')), + this.data() && + this.data()[1] && + this.data()[1][1] && + 'number' == typeof this.data()[1][1] && + (u = this.data()[1][1]), + x && w) + ) { + var S = (function(t, e) { + var n = t.query, + r = t.result, + i = []; + if ('extraction' !== n.analysis_type) + throw new Error( + 'Analysis type is not an extraction!' + ); + return ( + Array.isArray(r) && + r.forEach(function(t) { + var r = { query: n, result: t[e] }; + i.push(r); + }), + i + ); + })(b, w); + (u = S[0].result), + (p = (l = S[1].result) + ? ' metric-comparison' + : ''), + (v = l && n ? '-smaller' : ''), + (m = (g = u - l) > 0 ? '-green' : '-red'), + (g = Math.abs(g)), + (t = ''); + } + if ( + ((h = u), + (void 0 !== a.prettyNumber && + !0 !== a.prettyNumber) || + isNaN(parseInt(u)) || + ((h = (0, i.prettyNumber)(u)), + b && _ && (g = (0, i.prettyNumber)(g))), + a.prefix && + (f = + '' + + a.prefix + + ''), + a.suffix && + (d = + '' + + a.suffix + + ''), + (c += '
'), + (c += + '
'), + b && + _ && + (c += + '
' + + (0, o.escapeHtml)(g) + + '
'), + x && + w && + (u && l + ? ((c += + '
' + + (0, o.escapeHtml)(g) + + '
'), + (c += '' + l + '')) + : (c += '

No data to display

')), + (c += + '
' + + f + + (0, o.escapeHtml)(h) + + d + + '
'), + n && + (c += + '
' + + (0, o.escapeHtml)(n) + + '
'), + r && + (c += + '
' + + (0, o.escapeHtml)(r) + + '
'), + (c += '
'), + (c += '
'), + (this.el().innerHTML = c), + this.config.onrendered && this.config.onrendered(), + this.config.utils && + this.config.utils.clickToCopyToClipboard) + ) { + var E = '.' + e + '-metric-value' + v; + if ( + (document + .querySelector(E) + .addEventListener('click', function(t) { + return (0, s.default)(t.target.innerText, t); + }), + b && _) + ) { + var k = '.' + e + '-metric' + m; + document + .querySelector(k) + .addEventListener('click', function(t) { + return (0, s.default)(t.target.innerText, t); + }); + } + } + }, + update: function() { + this.render(); + }, + destroy: function() {} + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r, + i = function(t, e) { + if (Array.isArray(t)) return t; + if (Symbol.iterator in Object(t)) + return (function(t, e) { + var n = [], + r = !0, + i = !1, + o = void 0; + try { + for ( + var a, s = t[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !e || n.length !== e); + r = !0 + ); + } catch (t) { + (i = !0), (o = t); + } finally { + try { + !r && s.return && s.return(); + } finally { + if (i) throw o; + } + } + return n; + })(t, e); + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' + ); + }, + o = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }, + a = n(4), + s = n(1), + u = (r = s) && r.__esModule ? r : { default: r }, + l = void 0; + function c(t, e) { + var n = '', + r = {}; + t.config.table && + t.config.table.pagination && + (r = t.config.table.pagination); + var s = o({}, { page: 1, limit: 0, arrows: !0 }, r); + l || (l = s.page); + var u = void 0, + c = 0; + if (0 === s.limit) u = e.slice(1); + else { + var f = s.limit * (l - 1) + 1, + d = f + s.limit; + (u = e.slice(f, d)), + (c = Math.ceil((e.length - 1) / s.limit)); + } + var h = t.config.table.columns + ? t.config.table.columns + : t.dataset.matrix[0], + p = {}, + g = t.config.table, + m = g.mapValues, + v = g.mapDates; + for (var y in m) p[h.indexOf(y)] = y; + var b = !0, + _ = !1, + x = void 0; + try { + for ( + var w, S = u[Symbol.iterator](); + !(b = (w = S.next()).done); + b = !0 + ) { + var E = w.value; + n += ''; + var k = !0, + A = !1, + T = void 0; + try { + for ( + var C, O = E.entries()[Symbol.iterator](); + !(k = (C = O.next()).done); + k = !0 + ) { + var P = C.value, + M = i(P, 2), + L = M[0], + j = M[1]; + v && j instanceof Date && (j = v(j)); + var D = (0, a.escapeHtml)(j); + p[L] + ? (n += '' + m[p[L]](D) + '') + : (n += '' + D + ''); + } + } catch (t) { + (A = !0), (T = t); + } finally { + try { + !k && O.return && O.return(); + } finally { + if (A) throw T; + } + } + n += ''; + } + } catch (t) { + (_ = !0), (x = t); + } finally { + try { + !b && S.return && S.return(); + } finally { + if (_) throw x; + } + } + if (c > 1) { + n += + ''; + var R = 1, + z = 1 === l ? 1 : l - 1, + N = l === c ? c : l + 1; + for ( + s.arrows && + (n += + '«'); + R <= c; - ) { - if (null === (a = s.exec(o))) { - l += o; - break; + ) + (n += + '' + + R + + ''), + R++; + s.arrows && + (n += + '»'), + (n += ''); + } + return n; + } + e.default = { + render: function() { + var t = this, + e = this.dataset.matrix, + n = this.el(), + r = this.config.theme, + i = this, + o = ''; + if (1 === e.length && 0 === e[0].length) { + var s = 'No data to display', + f = this.config.errorMapping[s] || s; + this.config.showErrorMessages && this.message(f); + } else { + (o += '
'), + (o += ''), + (o += ''), + (o += ''), + (o += (function(t, e) { + var n = '', + r = -1, + i = t.config.table, + o = (i && i.columns) || e[0], + s = !0, + u = !1, + l = void 0; + try { + for ( + var c, f = o[Symbol.iterator](); + !(s = (c = f.next()).done); + s = !0 + ) { + var d = c.value, + h = (0, a.escapeHtml)(d); + n += + ''; + } + } catch (t) { + (u = !0), (l = t); + } finally { + try { + !s && f.return && f.return(); + } finally { + if (u) throw l; + } + } + return n; + })(i, e)), + (o += ''), + (o += ''), + (o += ''), + (o += c(i, e)), + (o += ''), + (o += '
' + + h + + '
'), + (o += '
'), + (n.querySelector( + '.' + r + '-rendering' + ).innerHTML = o), + n + .querySelectorAll('.' + r + '-rendering th') + .forEach(function(o) { + o.addEventListener('click', function(o) { + var a = + o.target.getAttribute('order') || 'asc', + s = o.target.getAttribute('fieldNumber'); + (a = 'asc' === a ? 'desc' : 'asc'), + o.target.setAttribute('order', a); + var u = t.dataset.matrix.shift(); + t.dataset.matrix.sort(function(t, e) { + var n = 'asc' === a ? 1 : -1; + if ('string' == typeof t[s]) { + var r = t[s].toUpperCase(), + i = e[s].toUpperCase(); + return r < i + ? -1 * n + : r > i + ? 1 * n + : 0; + } + return (t[s] - e[s]) * n; + }), + t.dataset.matrix.unshift(u), + (n.querySelector( + '.' + r + '-rendering tbody' + ).innerHTML = c(i, e)), + d(); + }); + }); + var d = function t() { + n.querySelectorAll('.btn').forEach(function(o) { + o.addEventListener( + 'click', + function(o) { + (l = parseInt( + o.target.getAttribute('data-page') + )), + (n.querySelector( + '.' + r + '-rendering tbody' + ).innerHTML = c(i, e)), + t(); + }, + !0 + ); + }); + }; + if ( + (d(i, n, r), + this.config.onrendered && + this.config.onrendered(), + this.config.utils && + this.config.utils.clickToCopyToClipboard) + ) { + var h = '.' + r + '-table-dataset'; + document + .querySelector(h) + .addEventListener('click', function(t) { + var e = t.target, + n = e.nodeName, + r = e.innerText; + 'TD' === n && (0, u.default)(r, t); + }); + } + } + }, + update: function() { + this.render(); + }, + destroy: function() {} + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = { + render: function() { + var t = ''; + (this.view._artifacts.spinner = {}), + (t += '
'), + (t += + '
'), + (t += + '
'), + (t += '
'), + (t += '
'), + (this.el().innerHTML = t); + }, + update: function() { + this.render(); + }, + destroy: function() { + if (this.view._artifacts.spinner) { + this.view._artifacts.spinner.interval && + clearInterval( + this.view._artifacts.spinner.interval + ), + (this.view._artifacts.spinner.radius = 0); + try { + delete this.view._artifacts.spinner; + } catch (t) { + this.view._artifacts.spinner = void 0; + } + } + this.el().innerHTML = ''; + } + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r, + i = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + o = (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && + (e[n] = t[n]); + return (e.default = t), e; + })(n(2)), + a = n(6), + s = n(3), + u = n(1), + l = (r = u) && r.__esModule ? r : { default: r }, + c = (function() { + function t() { + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t); + } + return ( + i(t, [ + { + key: 'render', + value: function() { + var t = this.dataset.matrix, + e = this.config, + n = e.colors, + r = e.container, + i = e.labelMapping, + u = e.colorMapping, + c = e.utils, + f = this.config, + d = this.config.funnel, + h = d.percents, + p = h.show, + g = h.countingMethod, + m = h.decimals, + v = d.lines, + y = d.marginBetweenSteps, + b = d.resultValues, + _ = d.hover, + x = d.minimalSize, + w = 20, + S = 30, + E = 30, + k = 200, + A = 0; + y && (A = 5); + var T = o.select(r), + C = o + .select( + this.el().querySelector( + '.' + + this.config.theme + + '-rendering .c3-chart' + ) + ) + .append('svg'), + O = T.style('width').slice(0, -2) - S - k, + P = + T.style('height').slice(0, -2) - + w - + E - + 30, + M = P / (t.length - 1), + L = O, + j = (100).toFixed(m), + D = 0; + x && (D = (O - x) / (t.length - 2)); + var R = t.slice(1).map(function(e, n) { + var r = [ + { x: (O - L) / 2, y: M * n + A }, + { x: (O - L) / 2 + L, y: M * n + A } + ]; + 0 !== n && + ('relative' === g && + (x + ? (L -= D) + : (L = (L * e[1]) / t[n][1]), + (j = ((e[1] / t[n][1]) * 100).toFixed( + m + ))), + 'absolute' === g && + (x + ? (L -= D) + : (L = (O * e[1]) / t[1][1]), + (j = ((e[1] / t[1][1]) * 100).toFixed( + m + )))); + var o = e[0]; + if (Object.keys(i).length) + for (var a in i) i[a] === e[0] && (o = a); + var u = e[1]; + return ( + (void 0 !== f.prettyNumber && + !0 !== f.prettyNumber) || + isNaN(parseInt(e[1])) || + (u = (0, s.prettyNumber)(e[1])), + { + name: e[0], + label: o, + percent: j + '%', + result: u, + points: [].concat(r, [ + { + x: (O - L) / 2 + L, + y: M * (n + 1) + }, + { x: (O - L) / 2, y: M * (n + 1) } + ]) + } + ); + }); + if ( + (C.attr( + 'preserveAspectRatio', + 'xMidYMid slice' + ) + .attr( + 'viewBox', + '0 0 ' + + (O + k + S) + + ' ' + + (P + w + E - 30) + ) + .attr('height', '100%') + .attr('width', '100%') + .append('g') + .attr( + 'transform', + 'translate(' + k + ',' + w + ')' + ) + .selectAll('polygon') + .data(R) + .enter() + .append('polygon') + .attr('points', function(t) { + return t.points + .map(function(t) { + return [t.x, t.y].join(','); + }) + .join(' '); + }) + .style('fill', function(t, e) { + return u[t.label] ? u[t.label] : n[e]; + }) + .attr('class', function(t) { + return t.label; + }) + .attr('cursor', 'pointer'), + v && + (C.selectAll('line') + .data(R) + .enter() + .append('line') + .attr('x1', 10) + .attr('y1', function(t) { + return t.points[0].y + w - A / 2; + }) + .attr('x2', function(t) { + return t.points[1].x + k; + }) + .attr('y2', function(t) { + return t.points[0].y + w - A / 2; + }) + .attr('class', 'chart-lines'), + C.append('line') + .attr('x1', 10) + .attr( + 'y1', + R[R.length - 1].points[2].y + + w + + A / 2 + ) + .attr( + 'x2', + R[R.length - 1].points[2].x + k + ) + .attr( + 'y2', + R[R.length - 1].points[2].y + + w + + A / 2 + ) + .attr('class', 'chart-lines')), + v && + C.selectAll('text.label') + .data(R) + .enter() + .append('text') + .style('text-anchor', 'start') + .attr('x', 20) + .attr('y', function(t) { + return ( + (t.points[2].y - t.points[1].y) / + 2 + + t.points[1].y + + w + + A + + 5 + ); + }) + .attr('class', function(t) { + return 'text-label ' + t.label; + }) + .text(function(t) { + return t.name; + }) + .call(a.textWrap, k) + .attr('cursor', 'pointer'), + v || + C.selectAll('text.label') + .data(R) + .enter() + .append('text') + .style('text-anchor', 'end') + .attr('x', function(t) { + return ( + t.points[0].x + + (t.points[3].x - t.points[0].x) / + 2 + + 0.9 * k + ); + }) + .attr('y', function(t) { + return ( + (t.points[2].y - t.points[1].y) / + 2 + + t.points[1].y + + w + + A + + 5 + ); + }) + .attr('class', function(t) { + return 'text-label ' + t.label; + }) + .text(function(t) { + return t.name; + }) + .call(a.textWrap, k) + .attr('cursor', 'pointer'), + p && + !b && + C.selectAll('text.label') + .data(R) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', O / 2 + k) + .attr('y', function(t) { + return ( + (t.points[2].y - t.points[1].y) / + 2 + + t.points[1].y + + w + + A + + 8 + ); + }) + .attr('class', function(t) { + return 'text-main ' + t.label; + }) + .text(function(t) { + return t.percent; + }) + .attr('cursor', 'pointer'), + b && + !p && + C.selectAll('text.label') + .data(R) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', O / 2 + k) + .attr('y', function(t) { + return ( + (t.points[2].y - t.points[1].y) / + 2 + + t.points[1].y + + w + + A + + 8 + ); + }) + .attr('class', function(t) { + return 'text-main ' + t.label; + }) + .text(function(t) { + return t.result; + }) + .attr('cursor', 'pointer'), + p && + b && + (C.selectAll('text.label') + .data(R) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', O / 2 + k) + .attr('y', function(t) { + return 0 === A + ? (t.points[2].y - t.points[1].y) / + 2 + + t.points[1].y + + w + + 16 + : (t.points[2].y - t.points[1].y) / + 2 + + t.points[1].y + + w + + A + + 12; + }) + .attr('class', function(t) { + return 'text-second ' + t.label; + }) + .text(function(t) { + return t.percent; + }) + .attr('cursor', 'pointer'), + C.selectAll('text.label') + .data(R) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', O / 2 + k) + .attr('y', function(t) { + return 0 === A + ? (t.points[2].y - t.points[1].y) / + 2 + + t.points[1].y + + w + : (t.points[2].y - t.points[1].y) / + 2 + + t.points[1].y + + w + + A - + 5; + }) + .attr('class', function(t) { + return 'text-main ' + t.label; + }) + .text(function(t) { + return t.result; + }) + .attr('cursor', 'pointer')), + _) + ) { + var z = function(t) { + I.style('opacity', 0.5), + F.style('opacity', 0.5); + var e = /[^ ]*$/.exec( + o.select(this).attr('class') + )[0]; + C.selectAll('.' + e).style( + 'opacity', + 1 + ); + }, + N = function(t) { + I.style('opacity', 1), + F.style('opacity', 1); + }, + I = C.selectAll('polygon'); + I.on('mouseover', z).on('mouseout', N); + var F = C.selectAll('text'); + F.on('mouseover', z).on('mouseout', N); + } + c && + c.clickToCopyToClipboard && + C.selectAll('text').on('click', function( + t + ) { + var e = t.percent, + n = t.result; + b + ? (0, l.default)(n, o.event) + : p && (0, l.default)(e, o.event); + }); + } + }, + { + key: 'update', + value: function() { + this.destroy(), this.render(); + } + }, + { + key: 'destroy', + value: function() { + o.select( + this.el().querySelector( + '.' + + this.config.theme + + '-rendering .c3-chart' + ) + ).remove(); + } + } + ]), + t + ); + })(); + e.default = c; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r, + i = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + o = (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && + (e[n] = t[n]); + return (e.default = t), e; + })(n(2)), + a = n(6), + s = n(3), + u = n(1), + l = (r = u) && r.__esModule ? r : { default: r }, + c = (function() { + function t() { + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t); + } + return ( + i(t, [ + { + key: 'render', + value: function() { + var t = this.dataset.matrix, + e = this.config, + n = e.colors, + r = e.container, + i = e.labelMapping, + u = e.colorMapping, + c = e.utils, + f = this.config, + d = this.config.funnel, + h = d.percents, + p = h.show, + g = h.countingMethod, + m = h.decimals, + v = d.lines, + y = d.resultValues, + b = d.effect3d, + _ = d.hover, + x = d.minimalSize, + w = 20, + S = 30, + E = 60, + k = 200, + A = o.select(r), + T = o + .select( + this.el().querySelector( + '.' + + this.config.theme + + '-rendering .c3-chart' + ) + ) + .append('svg'), + C = A.style('width').slice(0, -2) - S - k, + O = + A.style('height').slice(0, -2) - + w - + E - + 30, + P = O / (t.length - 1), + M = 0.3 * P, + L = 2.5 * M, + j = C, + D = (100).toFixed(m), + R = 0; + x && (R = (C - x) / (t.length - 2)); + var z = t.slice(1).map(function(e, n) { + var r = [ + { x: (C - j) / 2, y: P * n + M }, + { x: (C - j) / 2 + j, y: P * n + M } + ]; + 0 !== n && + ('relative' === g && + (x + ? (j -= R) + : (j = (j * e[1]) / t[n][1]), + (D = ((e[1] / t[n][1]) * 100).toFixed( + m + ))), + 'absolute' === g && + (x + ? (j -= R) + : (j = (C * e[1]) / t[1][1]), + (D = ((e[1] / t[1][1]) * 100).toFixed( + m + )))); + var o = e[0]; + if (Object.keys(i).length) + for (var a in i) + i[a] === e[0] && (o = a); + var u = e[1]; + return ( + (void 0 !== f.prettyNumber && + !0 !== f.prettyNumber) || + isNaN(parseInt(e[1])) || + (u = (0, s.prettyNumber)(e[1])), + { + name: e[0], + label: o, + percent: D + '%', + result: u, + points: [].concat(r, [ + { + x: (C - j) / 2 + j, + y: P * (n + 1) + }, + { x: (C - j) / 2, y: P * (n + 1) } + ]) + } + ); + }), + N = z.map(function(t, e) { + return { + label: t.label, + points: [ + { + x: t.points[3].x, + y: t.points[3].y + }, + { + x: t.points[2].x, + y: t.points[2].y + }, + { + x: + 'left' === b + ? t.points[2].x + : t.points[2].x - L < C / 2 + ? C / 2 + 5 + : t.points[2].x - L, + y: + 'left' === b + ? t.points[2].y + : t.points[2].y + M / 1.5 + }, + { + x: + 'right' === b + ? t.points[3].x + : t.points[3].x + L > C / 2 + ? C / 2 - 5 + : t.points[3].x + L, + y: + 'right' === b + ? t.points[3].y + : t.points[3].y + M / 1.5 + } + ] + }; + }), + I = z.concat(N); + if ( + (T.attr( + 'preserveAspectRatio', + 'xMidYMid meet' + ) + .attr( + 'viewBox', + '0 0 ' + + (C + k + S) + + ' ' + + (O + w + E - 30) + ) + .attr('height', '100%') + .attr('width', '100%') + .append('g') + .attr( + 'transform', + 'translate(' + k + ',' + w + ')' + ) + .selectAll('polygon') + .data(I) + .enter() + .append('polygon') + .attr('points', function(t) { + return t.points + .map(function(t) { + return [t.x, t.y].join(','); + }) + .join(' '); + }) + .style('fill', function(t, e) { + return e > z.length - 1 + ? u[t.label] + ? o.rgb(u[t.label]).darker(1.5) + : o.rgb(n[e - z.length]).darker(1.5) + : u[t.label] + ? u[t.label] + : n[e]; + }) + .attr('class', function(t) { + return t.label; + }) + .attr('cursor', 'pointer'), + v && + (T.selectAll('line') + .data(z) + .enter() + .append('line') + .attr('x1', 10) + .attr('y1', function(t) { + return t.points[0].y + w - M / 5; + }) + .attr('x2', function(t, e) { + return 0 === e + ? t.points[1].x + k + : t.points[1].x + k - L; + }) + .attr('y2', function(t) { + return t.points[0].y + w - M / 5; + }) + .attr('class', 'chart-lines'), + T.append('line') + .attr('x1', 10) + .attr( + 'y1', + z[z.length - 1].points[2].y + + w + + M - + M / 5 + ) + .attr( + 'x2', + z[z.length - 1].points[2].x + k - L + ) + .attr( + 'y2', + z[z.length - 1].points[2].y + + w + + M - + M / 5 + ) + .attr('class', 'chart-lines')), + v && + T.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'start') + .attr('x', 20) + .attr('y', function(t) { + return ( + (t.points[2].y - t.points[1].y) / + 2 + + t.points[1].y + + w + + 5 + + M / 4 + ); + }) + .attr('class', function(t) { + return 'text-label ' + t.label; + }) + .text(function(t) { + return t.name; + }) + .call(a.textWrap, k) + .attr('cursor', 'pointer'), + v || + T.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'end') + .attr('x', function(t) { + return ( + t.points[0].x + + (t.points[3].x - t.points[0].x) / + 2 + + 130 + ); + }) + .attr('y', function(t) { + return ( + (t.points[2].y - t.points[1].y) / + 2 + + t.points[1].y + + w + + 5 + ); + }) + .attr('class', function(t) { + return 'text-label ' + t.label; + }) + .text(function(t) { + return t.name; + }) + .call(a.textWrap, k) + .attr('cursor', 'pointer'), + p && + !y && + T.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', C / 2 + k) + .attr('y', function(t) { + return ( + (t.points[2].y - t.points[1].y) / + 2 + + t.points[1].y + + w + + 8 + ); + }) + .attr('class', function(t) { + return 'text-main ' + t.label; + }) + .text(function(t) { + return t.percent; + }) + .attr('cursor', 'pointer'), + y && + !p && + T.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', C / 2 + k) + .attr('y', function(t) { + return ( + (t.points[2].y - t.points[1].y) / + 2 + + t.points[1].y + + w + + 8 + ); + }) + .attr('class', function(t) { + return 'text-main ' + t.label; + }) + .text(function(t) { + return t.result; + }) + .attr('cursor', 'pointer'), + p && + y && + (T.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', C / 2 + k) + .attr('y', function(t) { + return ( + (t.points[2].y - t.points[1].y) / + 2 + + t.points[1].y + + w + + 18 + ); + }) + .attr('class', function(t) { + return 'text-second ' + t.label; + }) + .text(function(t) { + return t.percent; + }) + .attr('cursor', 'pointer'), + T.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', C / 2 + k) + .attr('y', function(t) { + return ( + (t.points[2].y - t.points[1].y) / + 2 + + t.points[1].y + + w + + 3 + ); + }) + .attr('class', function(t) { + return 'text-main ' + t.label; + }) + .text(function(t) { + return t.result; + }) + .attr('cursor', 'pointer')), + _) + ) { + var F = function(t) { + B.style('opacity', 0.5), + G.style('opacity', 0.5); + var e = /[^ ]*$/.exec( + o.select(this).attr('class') + )[0]; + T.selectAll('.' + e).style( + 'opacity', + 1 + ); + }, + V = function(t) { + B.style('opacity', 1), + G.style('opacity', 1); + }, + B = T.selectAll('polygon'); + B.on('mouseover', F).on('mouseout', V); + var G = T.selectAll('text'); + G.on('mouseover', F).on('mouseout', V); + } + c && + c.clickToCopyToClipboard && + T.selectAll('text').on('click', function( + t + ) { + var e = t.percent, + n = t.result; + y + ? (0, l.default)(n, o.event) + : p && (0, l.default)(e, o.event); + }); + } + }, + { + key: 'update', + value: function() { + this.destroy(), this.render(); + } + }, + { + key: 'destroy', + value: function() { + o.select( + this.el().querySelector( + '.' + + this.config.theme + + '-rendering .c3-chart' + ) + ).remove(); + } + } + ]), + t + ); + })(); + e.default = c; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r, + i = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + o = (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && + (e[n] = t[n]); + return (e.default = t), e; + })(n(2)), + a = n(6), + s = n(3), + u = n(1), + l = (r = u) && r.__esModule ? r : { default: r }, + c = (function() { + function t() { + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t); + } + return ( + i(t, [ + { + key: 'render', + value: function() { + var t = this.dataset.matrix, + e = this.config, + n = e.colors, + r = e.container, + i = e.labelMapping, + u = e.colorMapping, + c = e.utils, + f = this.config, + d = this.config.funnel, + h = d.percents, + p = h.show, + g = h.countingMethod, + m = h.decimals, + v = d.lines, + y = d.marginBetweenSteps, + b = d.resultValues, + _ = d.hover, + x = d.minimalSize, + w = 20, + S = 30, + E = 100, + k = 10, + A = 0; + y && (A = 5); + var T = o.select(r), + C = o + .select( + this.el().querySelector( + '.' + + this.config.theme + + '-rendering .c3-chart' + ) + ) + .append('svg'), + O = T.style('width').slice(0, -2) - S - k, + P = + T.style('height').slice(0, -2) - + w - + E - + 30, + M = O / (t.length - 1), + L = P, + j = (100).toFixed(m), + D = 0; + x && (D = (P - x) / (t.length - 2)); + var R = t.slice(1).map(function(e, n) { + var r = [ + { x: M * n + A, y: (P - L) / 2 }, + { x: M * n + A, y: (P - L) / 2 + L } + ]; + 0 !== n && + ('relative' === g && + (x + ? (L -= D) + : (L = (L * e[1]) / t[n][1]), + (j = ((e[1] / t[n][1]) * 100).toFixed( + m + ))), + 'absolute' === g && + (x + ? (L -= D) + : (L = (P * e[1]) / t[1][1]), + (j = ((e[1] / t[1][1]) * 100).toFixed( + m + )))); + var o = e[0]; + if (Object.keys(i).length) + for (var a in i) i[a] === e[0] && (o = a); + var u = e[1]; + return ( + (void 0 !== f.prettyNumber && + !0 !== f.prettyNumber) || + isNaN(parseInt(e[1])) || + (u = (0, s.prettyNumber)(e[1])), + { + name: e[0], + label: o, + percent: j + '%', + result: u, + points: [].concat(r, [ + { + x: M * (n + 1), + y: (P - L) / 2 + L + }, + { x: M * (n + 1), y: (P - L) / 2 } + ]) + } + ); + }); + if ( + (C.attr( + 'preserveAspectRatio', + 'xMidYMid meet' + ) + .attr( + 'viewBox', + '0 0 ' + + (O + k + S) + + ' ' + + (P + w + E - 30) + ) + .attr('height', '100%') + .attr('width', '100%') + .append('g') + .attr( + 'transform', + 'translate(' + k + ',' + w + ')' + ) + .selectAll('polygon') + .data(R) + .enter() + .append('polygon') + .attr('points', function(t) { + return t.points + .map(function(t) { + return [t.x, t.y].join(','); + }) + .join(' '); + }) + .style('fill', function(t, e) { + return u[t.label] ? u[t.label] : n[e]; + }) + .attr('class', function(t) { + return t.label; + }) + .attr('cursor', 'pointer'), + v && + (C.selectAll('line') + .data(R) + .enter() + .append('line') + .attr('x1', function(t) { + return t.points[0].x + k - A / 2; + }) + .attr('y1', P + E) + .attr('x2', function(t) { + return t.points[0].x + k - A / 2; + }) + .attr('y2', function(t) { + return t.points[0].y + w; + }) + .attr('class', 'chart-lines'), + C.append('line') + .attr('x1', O + k - A / 2) + .attr('y1', P + E) + .attr( + 'x2', + R[R.length - 1].points[3].x + + k + + A / 2 + ) + .attr( + 'y2', + R[R.length - 1].points[3].y + w + ) + .attr('class', 'chart-lines')), + v && + C.selectAll('text.label') + .data(R) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(t) { + return t.points[1].x + M / 2 + k; + }) + .attr('y', P + 0.5 * E + w) + .attr('class', function(t) { + return 'text-label ' + t.label; + }) + .text(function(t) { + return t.name; + }) + .call(a.textWrap, M) + .attr('cursor', 'pointer'), + v || + C.selectAll('text.label') + .data(R) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(t) { + return t.points[1].x + M / 2 + k; + }) + .attr('y', function(t) { + return t.points[2].y + + (t.points[3].y - t.points[0].y) / + 2 + + M / 4 > + P + E - 40 + w + ? P + E - 40 + w + : t.points[2].y + + (t.points[3].y - + t.points[0].y) / + 2 + + M / 4 + + w; + }) + .attr('class', function(t) { + return 'text-label ' + t.label; + }) + .text(function(t) { + return t.name; + }) + .call(a.textWrap, M) + .attr('cursor', 'pointer'), + p && + !b && + C.selectAll('text.label') + .data(R) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(t) { + return t.points[1].x + M / 2 + k; + }) + .attr('y', P / 2 + w + 10) + .attr('class', function(t) { + return 'text-main ' + t.label; + }) + .text(function(t) { + return t.percent; + }) + .attr('cursor', 'pointer'), + b && + !p && + C.selectAll('text.label') + .data(R) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(t) { + return t.points[1].x + M / 2 + k; + }) + .attr('y', P / 2 + w + 10) + .attr('class', function(t) { + return 'text-main ' + t.label; + }) + .text(function(t) { + return t.result; + }) + .attr('cursor', 'pointer'), + p && + b && + (C.selectAll('text.label') + .data(R) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(t) { + return t.points[1].x + M / 2 + k; + }) + .attr('y', P / 2 + w + 16) + .attr('class', function(t) { + return 'text-second ' + t.label; + }) + .text(function(t) { + return t.percent; + }) + .attr('cursor', 'pointer'), + C.selectAll('text.label') + .data(R) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(t) { + return t.points[1].x + M / 2 + k; + }) + .attr('y', P / 2 + w - 3) + .attr('class', function(t) { + return 'text-main ' + t.label; + }) + .text(function(t) { + return t.result; + }) + .attr('cursor', 'pointer')), + _) + ) { + var z = function(t) { + I.style('opacity', 0.5), + F.style('opacity', 0.5); + var e = /[^ ]*$/.exec( + o.select(this).attr('class') + )[0]; + C.selectAll('.' + e).style( + 'opacity', + 1 + ); + }, + N = function(t) { + I.style('opacity', 1), + F.style('opacity', 1); + }, + I = C.selectAll('polygon'); + I.on('mouseover', z).on('mouseout', N); + var F = C.selectAll('text'); + F.on('mouseover', z).on('mouseout', N); + } + c && + c.clickToCopyToClipboard && + C.selectAll('text').on('click', function( + t + ) { + var e = t.percent, + n = t.result; + b + ? (0, l.default)(n, o.event) + : p && (0, l.default)(e, o.event); + }); + } + }, + { + key: 'update', + value: function() { + this.destroy(), this.render(); + } + }, + { + key: 'destroy', + value: function() { + o.select( + this.el().querySelector( + '.' + + this.config.theme + + '-rendering .c3-chart' + ) + ).remove(); + } + } + ]), + t + ); + })(); + e.default = c; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r, + i = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + o = (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && + (e[n] = t[n]); + return (e.default = t), e; + })(n(2)), + a = n(6), + s = n(3), + u = n(1), + l = (r = u) && r.__esModule ? r : { default: r }, + c = (function() { + function t() { + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t); + } + return ( + i(t, [ + { + key: 'render', + value: function() { + var t = this.dataset.matrix, + e = this.config, + n = e.colors, + r = e.container, + i = e.labelMapping, + u = e.colorMapping, + c = e.utils, + f = this.config, + d = this.config.funnel, + h = d.percents, + p = h.show, + g = h.countingMethod, + m = h.decimals, + v = d.lines, + y = d.resultValues, + b = d.effect3d, + _ = d.hover, + x = d.minimalSize, + w = 20, + S = 30, + E = 100, + k = 10, + A = o.select(r), + T = o + .select( + this.el().querySelector( + '.' + + this.config.theme + + '-rendering .c3-chart' + ) + ) + .append('svg'), + C = A.style('width').slice(0, -2) - S - k, + O = + A.style('height').slice(0, -2) - + w - + E - + 30, + P = C / (t.length - 1), + M = 0.3 * P, + L = M / 1.5, + j = O, + D = (100).toFixed(m), + R = 0; + x && (R = (O - x) / (t.length - 2)); + var z = t.slice(1).map(function(e, n) { + var r = [ + { x: P * n + M, y: (O - j) / 2 }, + { x: P * n + M, y: (O - j) / 2 + j } + ]; + 0 !== n && + ('relative' === g && + (x + ? (j -= R) + : (j = (j * e[1]) / t[n][1]), + (D = ((e[1] / t[n][1]) * 100).toFixed( + m + ))), + 'absolute' === g && + (x + ? (j -= R) + : (j = (O * e[1]) / t[1][1]), + (D = ((e[1] / t[1][1]) * 100).toFixed( + m + )))); + var o = e[0]; + if (Object.keys(i).length) + for (var a in i) + i[a] === e[0] && (o = a); + var u = e[1]; + return ( + (void 0 !== f.prettyNumber && + !0 !== f.prettyNumber) || + isNaN(parseInt(e[1])) || + (u = (0, s.prettyNumber)(e[1])), + { + name: e[0], + label: o, + percent: D + '%', + result: u, + points: [].concat(r, [ + { + x: P * (n + 1), + y: (O - j) / 2 + j + }, + { x: P * (n + 1), y: (O - j) / 2 } + ]) + } + ); + }), + N = z.map(function(t, e) { + return { + label: t.label, + points: [ + { + x: t.points[0].x, + y: t.points[0].y + }, + { + x: t.points[1].x, + y: t.points[1].y + }, + { + x: + 'top' === b + ? t.points[1].x + : t.points[1].x - L, + y: + 'top' === b + ? t.points[1].y + : t.points[1].y - M < O / 2 + ? O / 2 + 5 + : t.points[1].y - M + }, + { + x: + 'bottom' === b + ? t.points[0].x + : t.points[0].x - L, + y: + 'bottom' === b + ? t.points[0].y + : t.points[0].y + M > O / 2 + ? O / 2 - 5 + : t.points[0].y + M + } + ] + }; + }), + I = z.concat(N); + if ( + (T.attr( + 'preserveAspectRatio', + 'xMidYMid meet' + ) + .attr( + 'viewBox', + '0 0 ' + + (C + k + S) + + ' ' + + (O + w + E - 30) + ) + .attr('height', '100%') + .attr('width', '100%') + .append('g') + .attr( + 'transform', + 'translate(' + k + ',' + w + ')' + ) + .selectAll('polygon') + .data(I) + .enter() + .append('polygon') + .attr('points', function(t) { + return t.points + .map(function(t) { + return [t.x, t.y].join(','); + }) + .join(' '); + }) + .style('fill', function(t, e) { + return e > z.length - 1 + ? u[t.label] + ? o.rgb(u[t.label]).darker(1.5) + : o.rgb(n[e - z.length]).darker(1.5) + : u[t.label] + ? u[t.label] + : n[e]; + }) + .attr('class', function(t) { + return t.label; + }) + .attr('cursor', 'pointer'), + v && + (T.selectAll('line') + .data(z) + .enter() + .append('line') + .attr('x1', function(t) { + return t.points[0].x + k - 0.8 * M; + }) + .attr('y1', O + E) + .attr('x2', function(t) { + return t.points[0].x + k - 0.8 * M; + }) + .attr('y2', function(t) { + return t.points[0].y + w; + }) + .attr('class', 'chart-lines'), + T.append('line') + .attr('x1', C + k + M / 4) + .attr('y1', O + E) + .attr( + 'x2', + z[z.length - 1].points[3].x + + k + + M / 4 + ) + .attr( + 'y2', + z[z.length - 1].points[3].y + w + ) + .attr('class', 'chart-lines')), + v && + T.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(t) { + return t.points[0].x + k + 0.25 * P; + }) + .attr('y', O + 0.4 * E + w) + .attr('class', function(t) { + return 'text-label ' + t.label; + }) + .text(function(t) { + return t.name; + }) + .call(a.textWrap, P) + .attr('cursor', 'pointer'), + v || + T.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(t) { + return t.points[0].x + k + 0.25 * P; + }) + .attr('y', function(t) { + return t.points[2].y + P / 4 > + O + E - 40 + ? O + E - 40 + w + : t.points[2].y + P / 4 < + t.points[1].y + ? t.points[1].y + 20 + w + : t.points[2].y + P / 4 + 10 + w; + }) + .attr('class', function(t) { + return 'text-label ' + t.label; + }) + .text(function(t) { + return t.name; + }) + .call(a.textWrap, P) + .attr('cursor', 'pointer'), + p && + !y && + T.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(t) { + return t.points[1].x + P / 2.8 + k; + }) + .attr('y', O / 2 + w + 10) + .attr('class', function(t) { + return 'text-main ' + t.label; + }) + .text(function(t) { + return t.percent; + }) + .attr('cursor', 'pointer'), + y && + !p && + T.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(t) { + return t.points[1].x + P / 2.8 + k; + }) + .attr('y', O / 2 + w + 10) + .attr('class', function(t) { + return 'text-main ' + t.label; + }) + .text(function(t) { + return t.result; + }) + .attr('cursor', 'pointer'), + p && + y && + (T.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(t) { + return t.points[1].x + P / 2.8 + k; + }) + .attr('y', O / 2 + w + 16) + .attr('class', function(t) { + return 'text-second ' + t.label; + }) + .text(function(t) { + return t.percent; + }) + .attr('cursor', 'pointer'), + T.selectAll('text.label') + .data(z) + .enter() + .append('text') + .style('text-anchor', 'middle') + .attr('x', function(t) { + return t.points[1].x + P / 2.8 + k; + }) + .attr('y', O / 2 + w - 3) + .attr('class', function(t) { + return 'text-main ' + t.label; + }) + .text(function(t) { + return t.result; + }) + .attr('cursor', 'pointer')), + _) + ) { + var F = function(t) { + B.style('opacity', 0.5), + G.style('opacity', 0.5); + var e = /[^ ]*$/.exec( + o.select(this).attr('class') + )[0]; + T.selectAll('.' + e).style( + 'opacity', + 1 + ); + }, + V = function(t) { + B.style('opacity', 1), + G.style('opacity', 1); + }, + B = T.selectAll('polygon'); + B.on('mouseover', F).on('mouseout', V); + var G = T.selectAll('text'); + G.on('mouseover', F).on('mouseout', V); + } + c && + c.clickToCopyToClipboard && + T.selectAll('text').on('click', function( + t + ) { + var e = t.percent, + n = t.result; + y + ? (0, l.default)(n, o.event) + : p && (0, l.default)(e, o.event); + }); + } + }, + { + key: 'update', + value: function() { + this.destroy(), this.render(); + } + }, + { + key: 'destroy', + value: function() { + o.select( + this.el().querySelector( + '.' + + this.config.theme + + '-rendering .c3-chart' + ) + ).remove(); + } + } + ]), + t + ); + })(); + e.default = c; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } } - (l += o.slice(0, a.index)), - (o = o.slice(a.index + a[0].length)), - '\\' === a[0][0] && a[1] - ? (l += '\\' + String(Number(a[1]) + i)) - : ((l += a[0]), '(' === a[0] && u++); - } - l += ')'; + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + i = u(n(10)), + o = n(0), + a = n(3), + s = u(n(1)); + function u(t) { + return t && t.__esModule ? t : { default: t }; } - return l; - })(d, '|'), - !0 - )), - (i = { lastIndex: 0, exec: h }) - ); - function h(n) { - var r, o, u, l; - if (0 === s.length) return null; - if (((e.lastIndex = i.lastIndex), !(l = e.exec(n)))) - return null; - for (r = l.length, o = -1; ++o < r; ) - if (void 0 !== l[o] && void 0 !== a[o]) { - u = a[o]; - break; - } - return ( - 'string' == typeof u - ? ((l.type = u), - (l.extra = [t.illegal, t.terminator_end])) - : ((l.type = 'begin'), (l.rule = u)), - l - ); - } - function p(t, e) { - (a[u] = t), - s.push([t, e]), - (u += new RegExp(e.toString() + '|').exec('').length); - } - })(i))); - } - function n(e, n) { - return new RegExp( - r(e), - 'm' + (t.case_insensitive ? 'i' : '') + (n ? 'g' : '') - ); - } - function r(t) { - return (t && t.source) || t; - } - e(t); - })(a); - try { - for ( - s.terminators.lastIndex = 0, d = 0, y = s.terminators.exec(e); - y; - - ) - (p = C(e.slice(d, y.index), y)), - (d = y.index + p), - (s.terminators.lastIndex = d), - (y = s.terminators.exec(e)); - for (C(e.slice(d)), l = s; l.parent; ) - l.className && N(), (l = l.parent); - return { relevance: k, value: c, illegal: !1, language: t, top: s }; - } catch (t) { - if (-1 === t.message.indexOf('Illegal')) throw t; - return { relevance: 0, illegal: !0, value: L(e, []) }; - } - function A(t) { - var e = t[0], - n = t.rule; - return ( - n && - n.endSameAsBegin && - (n.endRe = (function(t) { - return new RegExp( - t.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&'), - 'm' - ); - })(e)), - n.skip - ? (E += e) - : (n.excludeBegin && (E += e), - M(P(), c), - n.returnBegin || n.excludeBegin || (E = e)), - O(n), - n.returnBegin ? 0 : e.length - ); - } - function T(t) { - var n = t[0], - r = e.slice(t.index), - i = (function t(e, n) { - if ( - (function(t, e) { - var n = t && t.exec(e); - return n && 0 === n.index; - })(e.endRe, n) - ) { - for (; e.endsParent && e.parent; ) e = e.parent; - return e; - } - if (e.endsWithParent) return t(e.parent, n); - })(s, r); - if (i) { - var o = s; - o.skip - ? (E += n) - : (o.returnEnd || o.excludeEnd || (E += n), - M(P(), c), - o.excludeEnd && (E = n)); - do { - s.className && N(), - s.skip || s.subLanguage || (k += s.relevance), - (s = s.parent); - } while (s !== i.parent); - return ( - i.starts && - (i.endSameAsBegin && (i.starts.endRe = i.endRe), O(i.starts)), - o.returnEnd ? 0 : n.length - ); - } - } - function C(t, r) { - var o, - a = r && r[0]; - if (((E += t), void 0 === a)) return M(P(), c), 0; - if ( - 'begin' === x.type && - 'end' === r.type && - x.index === r.index && - '' === a - ) - return (E += e.slice(r.index, r.index + 1)), 1; - if (((x = r), 'begin' === r.type)) return A(r); - if ('end' === r.type && void 0 !== (o = T(r))) return o; - if ('illegal' === r.type && !n) - throw i( - 'Illegal lexeme "%s" for mode "%s"', - a, - s.className || '' - ); - return (E += a), a.length; - } - function O(t) { - var e; - t.className && (e = j(t.className, [])), - e && (c.push(e), S.push(c), (c = e.children)), - (s = Object.create(t, { parent: { value: s } })); - } - function P() { - var t = s.subLanguage - ? (function() { - var t, - e = 'string' == typeof s.subLanguage; - if (e && !f[s.subLanguage]) return L(E, []); - t = e - ? g(s.subLanguage, E, !0, r, w[s.subLanguage]) - : h(E, { - subset: - 0 === s.subLanguage.length ? void 0 : s.subLanguage, - prefix: r - }); - if (!t.language) return [D(E)]; - s.relevance > 0 && (k += t.relevance); - e && (w[s.subLanguage] = t.top); - return [j(t.language, t.value, !0)]; - })() - : (function() { - var t, - e, - n, - r, - i = []; - if (!s.keywords) return L(E, i); - (t = 0), (s.lexemesRe.lastIndex = 0), (e = s.lexemesRe.exec(E)); - for (; e; ) - L(E.slice(t, e.index), i), - (r = R(s, e)) - ? ((k += r[1]), - (n = j(r[0], [])), - i.push(n), - L(e[0], n.children)) - : L(e[0], i), - (t = s.lexemesRe.lastIndex), - (e = s.lexemesRe.exec(E)); - return L(E.slice(t), i), i; - })(); - return (E = ''), t; - } - function M(t, e) { - for (var n, r = t.length, i = -1; ++i < r; ) - 'text' === (n = t[i]).type ? L(n.value, e) : e.push(n); - } - function L(t, e) { - var n; - return ( - t && - ((n = e[e.length - 1]) && 'text' === n.type - ? (n.value += t) - : e.push(D(t))), - e - ); - } - function D(t) { - return { type: 'text', value: t }; - } - function j(t, e, n) { - return { - type: 'element', - tagName: 'span', - properties: { className: [(n ? '' : r) + t] }, - children: e - }; - } - function R(t, e) { - var n = e[0]; - return ( - a.case_insensitive && (n = n.toLowerCase()), - u.call(t.keywords, n) && t.keywords[n] - ); - } - function N() { - c = S.pop() || _; - } - } - function v(t) { - return -1 !== l.indexOf(t.toLowerCase()); - } - function m(t) { - var e, n, r, i; - if (t.variants && !t.cached_variants) { - for (e = (r = t.variants).length, n = -1, i = []; ++n < e; ) - i[n] = s(t, { variants: null }, r[n]); - t.cached_variants = i; - } - return t.cached_variants - ? t.cached_variants - : (function t(e) { - return !!e && (e.endsWithParent || t(e.starts)); - })(t) - ? [s(t, { starts: t.starts ? s(t.starts) : null })] - : [t]; - } - function y(t) { - return { - relevance: t.relevance || 0, - language: t.language || null, - value: t.value || [] - }; - } - function b(t) { - return (t = t.toLowerCase()), f[t] || f[d[t]]; - } - }, - function(t, e, n) { - var r, i, o; - (i = function(t) { - var e = [], - n = Object.keys, - r = {}, - i = {}, - o = /^(no-?highlight|plain|text)$/i, - a = /\blang(?:uage)?-([\w-]+)\b/i, - s = /((^(<[^>]+>|\t|)+|(?:\n)))/gm, - u = { - classPrefix: 'hljs-', - tabReplace: null, - useBR: !1, - languages: void 0 - }, - l = 'of and for in not or if then'.split(' '); - function c(t) { - return t - .replace(/&/g, '&') - .replace(//g, '>'); - } - function f(t) { - return t.nodeName.toLowerCase(); - } - function d(t) { - return o.test(t); - } - function h(t) { - var e, - n = {}, - r = Array.prototype.slice.call(arguments, 1); - for (e in t) n[e] = t[e]; - return ( - r.forEach(function(t) { - for (e in t) n[e] = t[e]; - }), - n - ); - } - function p(t) { - var e = []; - return ( - (function t(n, r) { - for (var i = n.firstChild; i; i = i.nextSibling) - 3 === i.nodeType - ? (r += i.nodeValue.length) - : 1 === i.nodeType && - (e.push({ event: 'start', offset: r, node: i }), - (r = t(i, r)), - f(i).match(/br|hr|img|input/) || - e.push({ event: 'stop', offset: r, node: i })); - return r; - })(t, 0), - e - ); - } - function g(t) { - return ( - t.variants && - !t.cached_variants && - (t.cached_variants = t.variants.map(function(e) { - return h(t, { variants: null }, e); - })), - t.cached_variants - ? t.cached_variants - : (function t(e) { - return !!e && (e.endsWithParent || t(e.starts)); - })(t) - ? [h(t, { starts: t.starts ? h(t.starts) : null })] - : [t] - ); - } - function v(t, e) { - return e - ? Number(e) - : ((n = t), -1 != l.indexOf(n.toLowerCase()) ? 0 : 1); - var n; - } - function m(t) { - function e(t) { - return (t && t.source) || t; - } - function r(n, r) { - return new RegExp( - e(n), - 'm' + (t.case_insensitive ? 'i' : '') + (r ? 'g' : '') - ); - } - function i(t) { - var n, - i, - o = {}, - a = [], - s = {}, - u = 1; - function l(t, e) { - (o[u] = t), - a.push([t, e]), - (u += - (function(t) { - return new RegExp(t.toString() + '|').exec('').length - 1; - })(e) + 1); - } - for (var c = 0; c < t.contains.length; c++) - l( - (i = t.contains[c]), - i.beginKeywords ? '\\.?(?:' + i.begin + ')\\.?' : i.begin - ); - t.terminator_end && l('end', t.terminator_end), - t.illegal && l('illegal', t.illegal); - var f = a.map(function(t) { - return t[1]; - }); - return ( - (n = r( - (function(t, n) { - for ( - var r = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./, - i = 0, - o = '', - a = 0; - a < t.length; - a++ - ) { - var s = (i += 1), - u = e(t[a]); - for (a > 0 && (o += n), o += '('; u.length > 0; ) { - var l = r.exec(u); - if (null == l) { - o += u; - break; + var l = (function() { + function t() { + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t); + } + return ( + r(t, [ + { + key: 'render', + value: function() { + var t = this, + e = this.config, + n = e.container, + r = e.metricResults, + u = e.title, + l = e.showTitle, + c = e.subtitle, + f = e.tooltip, + d = e.utils, + h = []; + (h[0] = []), + (0, o.each)( + this.dataset.selectColumn(0), + function(t, e) { + var n = void 0; + e > 0 && (n = new Date(t)), (h[0][e] = n); + } + ), + (h[0][0] = 'x'), + (0, o.each)(this.data()[0], function(e, n) { + n > 0 && h.push(t.dataset.selectColumn(n)); + }); + var p = + (r && r.previous && r.previous.result) || 0, + g = + ((r && r.current && r.current.result) || + 0) - p, + m = + 0 === p + ? '-' + : (0, a.prettyNumber)( + Math.round((g / p) * 100) + ), + v = 'keen-dataviz-metric-green', + y = 'arrow-green'; + m < 0 && + ((v = 'keen-dataviz-metric-red'), + (y = 'arrow-red')); + var b = + l && u + ? '
' + + u + + '
' + : '', + _ = c + ? '
' + + c + + '
' + : '', + x = document.querySelector(n); + x.innerHTML = + '\n
\n
\n
\n ' + + b + + '\n ' + + _ + + '\n
' + + m + + ' %
\n
' + + (0, a.prettyNumber)(g) + + '
\n
\n
\n
\n
\n
\n
'; + var w = x.querySelector('.c3-chart'); + if ( + (i.default.generate({ + bindto: w, + color: { pattern: ['#c3c4cc'] }, + title: u, + legend: { show: !1 }, + data: { + x: 'x', + columns: h, + type: 'area-spline', + selection: { + draggable: !1, + enabled: !0, + multiple: !0 + } + }, + point: { + r: 0, + focus: { expand: { r: 5, enabled: !0 } }, + select: { r: 5, enabled: !0 } + }, + axis: { y: { show: !1 }, x: { show: !1 } }, + grid: { x: { show: !1 }, y: { show: !1 } }, + padding: { + left: 0, + right: 0, + top: 0, + bottom: -4 + }, + tooltip: f + }), + d && d.clickToCopyToClipboard) + ) { + var S = document.querySelector( + '.current-count' + ).innerText; + document + .querySelector('.keen-dataviz-metric-combo') + .addEventListener('click', function(t) { + return (0, s.default)(S, t); + }); + } + } + }, + { + key: 'update', + value: function() { + this.destroy(), this.render(); + } + }, + { + key: 'destroy', + value: function() { + var t = this.config.container; + document + .querySelector(t) + .querySelector('.c3-chart') + .remove(); + } + } + ]), + t + ); + })(); + e.default = l; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = function(t, e) { + if (Array.isArray(t)) return t; + if (Symbol.iterator in Object(t)) + return (function(t, e) { + var n = [], + r = !0, + i = !1, + o = void 0; + try { + for ( + var a, s = t[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !e || n.length !== e); + r = !0 + ); + } catch (t) { + (i = !0), (o = t); + } finally { + try { + !r && s.return && s.return(); + } finally { + if (i) throw o; + } + } + return n; + })(t, e); + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' + ); + }, + i = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + o = (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && + (e[n] = t[n]); + return (e.default = t), e; + })(n(2)), + a = u(n(19)), + s = u(n(1)); + function u(t) { + return t && t.__esModule ? t : { default: t }; } - (o += u.substring(0, l.index)), - (u = u.substring(l.index + l[0].length)), - '\\' == l[0][0] && l[1] - ? (o += '\\' + String(Number(l[1]) + s)) - : ((o += l[0]), '(' == l[0] && i++); - } - o += ')'; - } - return o; - })(f, '|'), - !0 - )), - (s.lastIndex = 0), - (s.exec = function(e) { - var r; - if (0 === a.length) return null; - n.lastIndex = s.lastIndex; - var i = n.exec(e); - if (!i) return null; - for (var u = 0; u < i.length; u++) - if (null != i[u] && null != o['' + u]) { - r = o['' + u]; - break; - } - return ( - 'string' == typeof r - ? ((i.type = r), (i.extra = [t.illegal, t.terminator_end])) - : ((i.type = 'begin'), (i.rule = r)), - i - ); - }), - s - ); - } - !(function o(a, s) { - a.compiled || - ((a.compiled = !0), - (a.keywords = a.keywords || a.beginKeywords), - a.keywords && - (a.keywords = (function(t, e) { - var r = {}; - return ( - 'string' == typeof t - ? i('keyword', t) - : n(t).forEach(function(e) { - i(e, t[e]); - }), - r - ); - function i(t, n) { - e && (n = n.toLowerCase()), - n.split(' ').forEach(function(e) { - var n = e.split('|'); - r[n[0]] = [t, v(n[0], n[1])]; - }); - } - })(a.keywords, t.case_insensitive)), - (a.lexemesRe = r(a.lexemes || /\w+/, !0)), - s && - (a.beginKeywords && - (a.begin = - '\\b(' + a.beginKeywords.split(' ').join('|') + ')\\b'), - a.begin || (a.begin = /\B|\b/), - (a.beginRe = r(a.begin)), - a.endSameAsBegin && (a.end = a.begin), - a.end || a.endsWithParent || (a.end = /\B|\b/), - a.end && (a.endRe = r(a.end)), - (a.terminator_end = e(a.end) || ''), - a.endsWithParent && - s.terminator_end && - (a.terminator_end += (a.end ? '|' : '') + s.terminator_end)), - a.illegal && (a.illegalRe = r(a.illegal)), - null == a.relevance && (a.relevance = 1), - a.contains || (a.contains = []), - (a.contains = Array.prototype.concat.apply( - [], - a.contains.map(function(t) { - return g('self' === t ? a : t); - }) - )), - a.contains.forEach(function(t) { - o(t, a); - }), - a.starts && o(a.starts, s), - (a.terminators = i(a))); - })(t); - } - function y(t, e, n, i) { - function o(t, e) { - var n = g.case_insensitive ? e[0].toLowerCase() : e[0]; - return t.keywords.hasOwnProperty(n) && t.keywords[n]; - } - function a(t, e, n, r) { - if (!n && '' === e) return ''; - if (!t) return e; - var i = '') + e + (n ? '' : ''); - } - function s() { - (w += - null != _.subLanguage - ? (function() { - var t = 'string' == typeof _.subLanguage; - if (t && !r[_.subLanguage]) return c(E); - var e = t - ? y(_.subLanguage, E, !0, x[_.subLanguage]) - : b(E, _.subLanguage.length ? _.subLanguage : void 0); - return ( - _.relevance > 0 && (k += e.relevance), - t && (x[_.subLanguage] = e.top), - a(e.language, e.value, !1, !0) - ); - })() - : (function() { - var t, e, n, r; - if (!_.keywords) return c(E); - for ( - r = '', - e = 0, - _.lexemesRe.lastIndex = 0, - n = _.lexemesRe.exec(E); - n; - - ) - (r += c(E.substring(e, n.index))), - (t = o(_, n)) - ? ((k += t[1]), (r += a(t[0], c(n[0])))) - : (r += c(n[0])), - (e = _.lexemesRe.lastIndex), - (n = _.lexemesRe.exec(E)); - return r + c(E.substr(e)); - })()), - (E = ''); - } - function l(t) { - (w += t.className ? a(t.className, '', !0) : ''), - (_ = Object.create(t, { parent: { value: _ } })); - } - function f(t) { - var e = t[0], - n = t.rule; - return ( - n && - n.endSameAsBegin && - (n.endRe = (function(t) { - return new RegExp( - t.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'), - 'm' - ); - })(e)), - n.skip - ? (E += e) - : (n.excludeBegin && (E += e), - s(), - n.returnBegin || n.excludeBegin || (E = e)), - l(n), - n.returnBegin ? 0 : e.length - ); - } - function d(t) { - var e = t[0], - n = (function t(e, n) { - if ( - (function(t, e) { - var n = t && t.exec(e); - return n && 0 === n.index; - })(e.endRe, n) - ) { - for (; e.endsParent && e.parent; ) e = e.parent; - return e; - } - if (e.endsWithParent) return t(e.parent, n); - })(_, e); - if (n) { - var r = _; - r.skip - ? (E += e) - : (r.returnEnd || r.excludeEnd || (E += e), - s(), - r.excludeEnd && (E = e)); - do { - _.className && (w += ''), - _.skip || _.subLanguage || (k += _.relevance), - (_ = _.parent); - } while (_ !== n.parent); - return ( - n.starts && - (n.endSameAsBegin && (n.starts.endRe = n.endRe), l(n.starts)), - r.returnEnd ? 0 : e.length - ); - } - } - var h = {}; - function p(t, r) { - var i = r && r[0]; - if (((E += t), null == i)) return s(), 0; - if ( - 'begin' == h.type && - 'end' == r.type && - h.index == r.index && - '' === i - ) - return (E += e.slice(r.index, r.index + 1)), 1; - if (((h = r), 'begin' === r.type)) return f(r); - if ('illegal' === r.type && !n) - throw new Error( - 'Illegal lexeme "' + - i + - '" for mode "' + - (_.className || '') + - '"' - ); - if ('end' === r.type) { - var o = d(r); - if (null != o) return o; - } - return (E += i), i.length; - } - var g = S(t); - if (!g) throw new Error('Unknown language: "' + t + '"'); - m(g); - var v, - _ = i || g, - x = {}, - w = ''; - for (v = _; v !== g; v = v.parent) - v.className && (w = a(v.className, '', !0) + w); - var E = '', - k = 0; - try { - for ( - var A, T, C = 0; - (_.terminators.lastIndex = C), (A = _.terminators.exec(e)); - - ) - (T = p(e.substring(C, A.index), A)), (C = A.index + T); - for (p(e.substr(C)), v = _; v.parent; v = v.parent) - v.className && (w += ''); - return { relevance: k, value: w, illegal: !1, language: t, top: _ }; - } catch (t) { - if (t.message && -1 !== t.message.indexOf('Illegal')) - return { illegal: !0, relevance: 0, value: c(e) }; - throw t; - } - } - function b(t, e) { - e = e || u.languages || n(r); - var i = { relevance: 0, value: c(t) }, - o = i; - return ( - e - .filter(S) - .filter(E) - .forEach(function(e) { - var n = y(e, t, !1); - (n.language = e), - n.relevance > o.relevance && (o = n), - n.relevance > i.relevance && ((o = i), (i = n)); - }), - o.language && (i.second_best = o), - i - ); - } - function _(t) { - return u.tabReplace || u.useBR - ? t.replace(s, function(t, e) { - return u.useBR && '\n' === t - ? '
' - : u.tabReplace - ? e.replace(/\t/g, u.tabReplace) - : ''; - }) - : t; - } - function x(t) { - var n, - r, - o, - s, - l, - h = (function(t) { - var e, - n, - r, - i, - o = t.className + ' '; - if ( - ((o += t.parentNode ? t.parentNode.className : ''), - (n = a.exec(o))) - ) - return S(n[1]) ? n[1] : 'no-highlight'; - for (e = 0, r = (o = o.split(/\s+/)).length; e < r; e++) - if (d((i = o[e])) || S(i)) return i; - })(t); - d(h) || - (u.useBR - ? ((n = document.createElementNS( - 'http://www.w3.org/1999/xhtml', - 'div' - )).innerHTML = t.innerHTML - .replace(/\n/g, '') - .replace(//g, '\n')) - : (n = t), - (l = n.textContent), - (o = h ? y(h, l, !0) : b(l)), - (r = p(n)).length && - (((s = document.createElementNS( - 'http://www.w3.org/1999/xhtml', - 'div' - )).innerHTML = o.value), - (o.value = (function(t, n, r) { - var i = 0, - o = '', - a = []; - function s() { - return t.length && n.length - ? t[0].offset !== n[0].offset - ? t[0].offset < n[0].offset - ? t - : n - : 'start' === n[0].event - ? t - : n - : t.length - ? t - : n; - } - function u(t) { - o += - '<' + - f(t) + - e.map - .call(t.attributes, function(t) { + function l(t) { + if (Array.isArray(t)) { + for ( + var e = 0, n = Array(t.length); + e < t.length; + e++ + ) + n[e] = t[e]; + return n; + } + return Array.from(t); + } + var c = (function() { + function t() { + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t); + } + return ( + i(t, [ + { + key: 'render', + value: function() { + var t, + e, + n, + i = this.config, + u = i.colors, + c = i.container, + f = i.heatmap, + d = f.showSlider, + h = f.simpleTooltip, + p = this.dataset, + g = p.matrix, + m = p.meta, + v = 10, + y = 10, + b = 50, + _ = 50, + x = o.select(c), + w = parseInt(x.style('width'), 10) || 600, + S = parseInt(x.style('height'), 10) || 600, + E = this.el().querySelector('.c3-chart'), + k = w - y - _, + A = S - v - b, + T = new Set(), + C = new Set(), + O = + ((t = o.timeFormat('%B %d')), + (e = o.timeFormat('%H:%M')), + (n = []), + g.forEach(function(r) { + if ('heatmap' === m.type) { + if ('number' == typeof r[0][2]) { + var i = { + x: r[0][0], + y: r[0][1], + value: r[0][2] + }; + n.push(i); + } + } else { + var o = Date.parse(r[0]); + if (!isNaN(o)) { + var a = { + x: t(new Date(r[0])), + y: e(new Date(r[0])), + value: r[1] + }; + n.push(a); + } + } + }), + n); + O.forEach(function(t) { + T.add(t.x), C.add(t.y); + }); + var P = O[0].value, + M = O.reduce(function(t, e) { + return e.value < t ? e.value : t; + }, P), + L = O.reduce(function(t, e) { + return e.value > t ? e.value : t; + }, P), + j = function() { + var t = u[0], + e = o.rgb('#00BBDE'); + return o.color(t) && (e = o.rgb(t)), e; + }, + D = o + .scaleLinear() + .domain([ + 0, + o.max(O, function(t) { + return t.value; + }) + ]) + .range([0, 1]), + R = function(t) { + var e = D(t), + n = j(), + r = (function(t) { + var e = + arguments.length > 1 && + void 0 !== arguments[1] + ? arguments[1] + : [255, 255, 255], + n = t[3]; + return [ + Math.floor( + (1 - n) * e[0] + n * t[0] + 0.5 + ), + Math.floor( + (1 - n) * e[1] + n * t[1] + 0.5 + ), + Math.floor( + (1 - n) * e[2] + n * t[2] + 0.5 + ) + ]; + })([n.r, n.g, n.b, e]); + return ( + 'rgb(' + + r[0] + + ', ' + + r[1] + + ', ' + + r[2] + + ')' + ); + }, + z = o + .select(E) + .append('svg') + .attr( + 'preserveAspectRatio', + 'xMidYMid slice' + ) + .attr('viewBox', '0 0 ' + w + ' ' + S) + .attr('height', '100%') + .attr('width', '100%') + .append('g') + .attr( + 'transform', + 'translate(' + _ + ',' + v + ')' + ); + if (d) { + o + .select(c) + .append('input') + .attr('type', 'range') + .attr('class', 'keen-dataviz-slider'), + new a.default('.keen-dataviz-slider', { + multiple: !0, + min: M, + max: L, + value: [M, L], + onChange: function(t) { + return (function(t) { + var e = z.selectAll('rect'), + n = r(t, 2), + i = n[0], + a = n[1]; + e.each(function(t, e, n) { + o.select(n[e]).style( + 'visibility', + function() { + return t.value > a || + t.value < i + ? 'hidden' + : 'visible'; + } + ); + }); + })(t); + } + }); + var N = c.className + ? '.' + c.className.replace(/\s/g, '.') + : c, + I = + '\n ' + + N + + ' .rangeable-progress,\n ' + + N + + ' .rangeable-tooltip,\n ' + + N + + ' .active {\n background-color: ' + + j() + + ';\n }\n ' + + N + + ' .rangeable-tooltip::before {\n border-color: ' + + j() + + ' transparent transparent;\n }\n ' + + N + + ' .rangeable-handle {\n border-color: ' + + j() + + ';\n }\n ', + F = document.createElement('style'); + F.innerHTML = I; + var V = document.querySelector('script'); + V.parentNode.insertBefore(F, V); + } + var B = function(t, e) { + return Math.floor(e / t) + 1; + }, + G = o + .scaleBand() + .range([0, k]) + .domain([].concat(l(T))) + .padding(0.02); + z.append('g') + .style('font-size', 12) + .attr('transform', 'translate(0, ' + A + ')') + .call(o.axisBottom(G).tickSize(0)) + .selectAll('text') + .attr('dy', '1em') + .filter(function(t, e) { + return e % B(5, T.size); + }) + .style('display', 'none'); + var H = o + .scaleBand() + .range([A, 0]) + .domain([].concat(l(C)).sort()) + .padding(0.02); + z.append('g') + .style('font-size', 12) + .call(o.axisLeft(H).tickSize(0)) + .selectAll('text') + .filter(function(t, e) { + return e % B(10, C.size); + }) + .style('display', 'none'); + var U = o + .select(c) + .append('div') + .attr('class', 'keen-dataviz-tooltip') + .style('opacity', 0) + .style('background-color', 'white') + .style( + 'border', + '2px solid ' + j().toString() + ) + .style('font-size', '14px') + .style('padding', '2px 8px') + .style( + 'box-shadow', + '2px 2px 4px rgba(0,0,0,0.25' + ) + .style('display', 'none') + .style('position', 'fixed'); + z.selectAll() + .data(O, function(t) { + return t.x + ':' + t.y; + }) + .enter() + .append('rect') + .attr('x', function(t) { + return G(t.x); + }) + .attr('y', function(t) { + return H(t.y); + }) + .attr('width', G.bandwidth()) + .attr('height', H.bandwidth()) + .style('fill', function(t) { + return R(t.value); + }) + .style('cursor', 'pointer') + .on('mouseover', function() { + o + .select(o.event.target) + .raise() + .style( + 'transition', + 'transform 150ms ease-out' + ) + .style('outline', '1px solid ' + j()) + .style( + 'transform', + 'translate(0px, -4px)' + ), + U.style('opacity', 1).style( + 'display', + 'block' + ); + }) + .on('mousemove', function(t) { + var e = + '\n \n value:\n ' + + t.value + + '\n '; + h || + (e = + '\n \n xAxis:\n ' + + t.x + + '\n \n \n yAxis:\n ' + + t.y + + '\n \n ' + + e + + '\n '), + U.html( + '\n \n ' + + e + + '\n
\n ' + ) + .style( + 'left', + o.event.clientX + 10 + 'px' + ) + .style( + 'top', + o.event.clientY + 10 + 'px' + ); + }) + .on('mouseleave', function() { + o + .select(o.event.target) + .style('outline', 'none') + .style('transform', 'none'), + U.style('opacity', 0).style( + 'display', + 'none' + ); + }) + .on('click', function(t) { + return (0, s.default)(t.value); + }); + } + }, + { + key: 'update', + value: function() { + this.destroy(), this.render(); + } + }, + { + key: 'destroy', + value: function() { + this.el() + .querySelector('.c3-chart') + .remove(); + } + } + ]), + t + ); + })(); + e.default = c; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = function(t, e) { + if (Array.isArray(t)) return t; + if (Symbol.iterator in Object(t)) + return (function(t, e) { + var n = [], + r = !0, + i = !1, + o = void 0; + try { + for ( + var a, s = t[Symbol.iterator](); + !(r = (a = s.next()).done) && + (n.push(a.value), !e || n.length !== e); + r = !0 + ); + } catch (t) { + (i = !0), (o = t); + } finally { + try { + !r && s.return && s.return(); + } finally { + if (i) throw o; + } + } + return n; + })(t, e); + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance' + ); + }, + i = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && + (t[r] = n[r]); + } + return t; + }, + o = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + a = (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && + (e[n] = t[n]); + return (e.default = t), e; + })(n(2)), + s = c(n(19)), + u = n(3), + l = c(n(1)); + function c(t) { + return t && t.__esModule ? t : { default: t }; + } + var f = (function() { + function t() { + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t); + } return ( - ' ' + - t.nodeName + - '="' + - c(t.value).replace('"', '"') + - '"' + o(t, [ + { + key: 'render', + value: function() { + var t = this.dataset.matrix, + e = this.config, + n = e.colors, + o = e.container, + c = e.utils, + f = e.title, + d = e.choropleth, + h = d.map, + p = d.borders, + g = p.show, + m = p.size, + v = p.color, + y = d.showSlider, + b = this.config, + _ = a.select(o), + x = a.select( + this.el().querySelector( + '.' + + this.config.theme + + '-rendering .c3-chart' + ) + ), + w = Number(_.style('width').slice(0, -2)), + S = Number(_.style('height').slice(0, -2)), + E = 0; + f && (E += 31), y && (E += 20); + var k = x + .append('svg') + .attr('width', w) + .attr('height', S - E), + A = t.slice(1).map(function(t) { + return t[1]; + }), + T = a.min(A), + C = a.max(A); + T === C && (T = 0); + var O = a.hsl(n[0]).brighter(1); + O.l = 0.95; + var P = n[0], + M = a + .scaleLinear() + .domain([ + void 0 === T ? 0 : T, + void 0 === C ? 0 : C + ]) + .range([O, P]); + a.json( + 'https://cdn.jsdelivr.net/npm/keen-dataviz-maps@1.0.0/maps/' + + h + + '.json' + ).then(function(e) { + var f = a + .zoom() + .scaleExtent([1, 5]) + .translateExtent([[0, 0], [w, S - 50]]) + .on('zoom', function() { + k.selectAll('.' + P).attr( + 'transform', + a.event.transform + ); + }), + d = void 0; + switch (h) { + case 'world': + d = a + .geoMercator() + .fitSize([w, S - 50], e); + break; + case 'us': + d = a + .geoAlbersUsa() + .scale(w) + .fitSize([w, S - 50], e); + break; + default: + d = a + .geoMercator() + .scale(w) + .fitSize([w, S - 50], e); + } + var p = a.geoPath().projection(d), + _ = e.features.map(function(e) { + var n = t.filter(function(t) { + return t[0] === e.properties.name; + }); + return n[0] + ? i({}, e, { + properties: i({}, e.properties, { + result: n[0][1] + }) + }) + : i({}, e, { + properties: i({}, e.properties, { + result: 0 + }) + }); + }); + if (y) { + x + .style('display', 'flex') + .style('flex-direction', 'column') + .style('justify-content', 'center'), + x + .append('div') + .style('width', '95%') + .style('margin', 'auto') + .append('input') + .attr('id', 'rangeSlider'), + new s.default('#rangeSlider', { + type: 'double', + tooltips: !0, + min: 0, + max: C, + onChange: function(t) { + return (function(t) { + var e = k.selectAll('.' + P), + n = r(t, 2), + i = n[0], + o = n[1]; + e.each(function(t, e, n) { + a.select(n[e]).style( + 'visibility', + function() { + return t.properties.result > + o || t.properties.result < i + ? 'hidden' + : 'visible'; + } + ); + }); + })(t); + } + }); + var E = o.className + ? '.' + o.className.replace(/\s/g, '.') + : o, + A = + '\n ' + + E + + ' .rangeable-progress,\n ' + + E + + ' .rangeable-tooltip,\n ' + + E + + ' .active {\n background-color: ' + + n[0] + + ';\n }\n ' + + E + + ' .rangeable-tooltip::before {\n border-color: ' + + n[0] + + ' transparent transparent;\n }\n ' + + E + + ' .rangeable-handle {\n border-color: ' + + n[0] + + ';\n }\n ', + T = document.createElement('style'); + T.innerHTML = A; + var O = document.querySelector('script'); + O.parentNode.insertBefore(T, O); + } + var P = 'world' === h ? 'country' : 'state'; + k + .selectAll('path') + .data(_) + .enter() + .append('path') + .attr('d', p) + .attr('class', P) + .attr('id', function(t) { + return ( + '' + + t.properties.name + .split(' ') + .join('-') + .split('.') + .join('') + ); + }) + .style('fill', function(t) { + return M(t.properties.result); + }) + .attr('cursor', 'pointer') + .on('mouseover', function(t) { + k + .select( + '#' + + t.properties.name + .split(' ') + .join('-') + .split('.') + .join('') + ) + .style('fill', function(t) { + return M(1.2 * C); + }) + .style('stroke-width', 1.5 * m), + L.style('opacity', 1).style( + 'display', + 'block' + ); + }) + .on('mousemove', function(t) { + var e = t.properties.result; + (void 0 !== b.prettyNumber && + !0 !== b.prettyNumber) || + isNaN(parseInt(t.properties.result)) || + (e = (0, u.prettyNumber)( + t.properties.result + )), + L.html( + '\n \n \n \n \n \n \n \n
' + + t.properties.name + + '
' + + e + + '
\n ' + ) + .style( + 'left', + a.event.clientX + 10 + 'px' + ) + .style( + 'top', + a.event.clientY + 10 + 'px' + ); + }) + .on('mouseout', function(t) { + k + .select( + '#' + + t.properties.name + .split(' ') + .join('-') + .split('.') + .join('') + ) + .style('fill', function(t) { + return M(t.properties.result); + }) + .style('stroke-width', m), + L.style('opacity', 0).style( + 'display', + 'none' + ); + }), + g && + k + .selectAll('.' + P) + .style('stroke', v) + .style('stroke-width', m); + var L = a + .select('.c3-chart') + .append('div') + .style('opacity', 0) + .attr('class', 'c3-tooltip-container') + .style('display', 'none') + .style('position', 'fixed'); + c && + c.clickToCopyToClipboard && + k + .selectAll('.' + P) + .on('click', function(t) { + var e = t.properties.result; + (0, l.default)(e, a.event); + }), + k.call(f), + k.call(f).on('mousedown.zoom', null); + }); + } + }, + { + key: 'update', + value: function() { + this.destroy(), this.render(); + } + }, + { + key: 'destroy', + value: function() { + a.select( + this.el().querySelector( + '.' + + this.config.theme + + '-rendering .c3-chart' + ) + ).remove(); + } + } + ]), + t ); + })(); + e.default = f; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = function() { + var t = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : {}, + e = t.element, + n = t.data, + r = document.createElement('dl'); + (r.classList = 'keen-dataviz-execution-meta'), + Object.keys(n).length + ? Object.keys(n).forEach(function(t) { + var e = document.createElement('dt'); + (e.innerText = t.replace(/_/g, ' ')), + e.addEventListener('click', function(t) { + return s(t); + }); + var i = document.createElement('dd'); + (i.innerText = n[t]), + i.addEventListener('click', function(t) { + return s(t); + }), + r.append(e), + r.append(i); + }) + : (r.innerText = + 'No execution metadata available'), + e.append(r); + }); + var r, + i = n(1), + o = (r = i) && r.__esModule ? r : { default: r }; + function a(t) { + var e = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : 'copied', + n = + arguments.length > 2 && void 0 !== arguments[2] + ? arguments[2] + : 1e3; + setTimeout(function() { + t.classList.remove(e); + }, n); + } + function s(t) { + var e = t.target, + n = t.target.nodeName, + r = void 0; + 'DD' === n && + ((r = e.innerText), + e.classList.contains('copied') || + (e.classList.add('copied'), a(e))), + 'DT' === n && + ((r = e.nextSibling.innerText), + e.nextSibling.classList.contains('copied') || + (e.nextSibling.classList.add('copied'), + a(e.nextSibling))), + (0, o.default)(r); + } + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = a(n(55)), + i = a(n(56)), + o = a(n(57)); + function a(t) { + return t && t.__esModule ? t : { default: t }; + } + e.default = { + autocollector: r.default, + modern: i.default, + dracula: o.default + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = { + colors: [ + '#5E77FF', + '#9C60FE', + '#F162FE', + '#FD65B7', + '#FD6768', + '#FDB86A', + '#F2FC6C', + '#A5FC6E', + '#71FB85', + '#73FBD0', + '#76DDFA', + '#76f4fa', + '#bb76fa', + '#fa76bf' + ] + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = { + colors: [ + '#45B2E8', + '#D9540D', + '#2CAB72', + '#2C4BAB', + '#EDDD02', + '#E84545', + '#E845CE', + '#5FCEC9', + '#E89F45', + '#28E43F', + '#B765C0', + '#458AE8', + '#AB2C2C', + '#AB2C75', + '#27E5FF', + '#7168F2', + '#FF932B', + '#855D00', + '#ACE845', + '#1C91B4' + ] + }); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.default = { + colors: [ + '#8be9fd', + '#50fa7b', + '#ffb86c', + '#ff79c6', + '#bd93f9', + '#ff5555', + '#f1fa8c' + ] + }); + } + ]); + }), + (t.exports = r(n(2), n(9))); + }, + function(t, e, n) { + 'use strict'; + n.r(e), + n.d(e, 'default', function() { + return g; + }); + var r = n(1), + i = n.n(r), + o = n(0), + a = n.n(o), + s = n(3), + u = n.n(s); + function l(t) { + return (l = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(t) { + return typeof t; + } + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t; + })(t); + } + function c(t, e, n) { + return ( + e in t + ? Object.defineProperty(t, e, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 }) - .join('') + - '>'; - } - function l(t) { - o += ''; - } - function d(t) { - ('start' === t.event ? u : l)(t.node); - } - for (; t.length || n.length; ) { - var h = s(); - if ( - ((o += c(r.substring(i, h[0].offset))), - (i = h[0].offset), - h === t) - ) { - a.reverse().forEach(l); - do { - d(h.splice(0, 1)[0]), (h = s()); - } while (h === t && h.length && h[0].offset === i); - a.reverse().forEach(u); - } else - 'start' === h[0].event ? a.push(h[0].node) : a.pop(), - d(h.splice(0, 1)[0]); + : (t[e] = n), + t + ); + } + function f(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); } - return o + c(r.substr(i)); - })(r, p(s), l))), - (o.value = _(o.value)), - (t.innerHTML = o.value), - (t.className = (function(t, e, n) { - var r = e ? i[e] : n, - o = [t.trim()]; - return ( - t.match(/\bhljs\b/) || o.push('hljs'), - -1 === t.indexOf(r) && o.push(r), - o.join(' ').trim() - ); - })(t.className, h, o.language)), - (t.result = { language: o.language, re: o.relevance }), - o.second_best && - (t.second_best = { - language: o.second_best.language, - re: o.second_best.relevance - })); - } - function w() { - if (!w.called) { - w.called = !0; - var t = document.querySelectorAll('pre code'); - e.forEach.call(t, x); - } - } - function S(t) { - return (t = (t || '').toLowerCase()), r[t] || r[i[t]]; - } - function E(t) { - var e = S(t); - return e && !e.disableAutodetect; - } - return ( - (t.highlight = y), - (t.highlightAuto = b), - (t.fixMarkup = _), - (t.highlightBlock = x), - (t.configure = function(t) { - u = h(u, t); - }), - (t.initHighlighting = w), - (t.initHighlightingOnLoad = function() { - addEventListener('DOMContentLoaded', w, !1), - addEventListener('load', w, !1); - }), - (t.registerLanguage = function(e, n) { - var o = (r[e] = n(t)); - (o.rawDefinition = n.bind(null, t)), - o.aliases && - o.aliases.forEach(function(t) { - i[t] = e; - }); - }), - (t.listLanguages = function() { - return n(r); - }), - (t.getLanguage = S), - (t.autoDetection = E), - (t.inherit = h), - (t.IDENT_RE = '[a-zA-Z]\\w*'), - (t.UNDERSCORE_IDENT_RE = '[a-zA-Z_]\\w*'), - (t.NUMBER_RE = '\\b\\d+(\\.\\d+)?'), - (t.C_NUMBER_RE = - '(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)'), - (t.BINARY_NUMBER_RE = '\\b(0b[01]+)'), - (t.RE_STARTERS_RE = - '!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~'), - (t.BACKSLASH_ESCAPE = { begin: '\\\\[\\s\\S]', relevance: 0 }), - (t.APOS_STRING_MODE = { - className: 'string', - begin: "'", - end: "'", - illegal: '\\n', - contains: [t.BACKSLASH_ESCAPE] - }), - (t.QUOTE_STRING_MODE = { - className: 'string', - begin: '"', - end: '"', - illegal: '\\n', - contains: [t.BACKSLASH_ESCAPE] - }), - (t.PHRASAL_WORDS_MODE = { - begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/ - }), - (t.COMMENT = function(e, n, r) { - var i = t.inherit( - { className: 'comment', begin: e, end: n, contains: [] }, - r || {} - ); - return ( - i.contains.push(t.PHRASAL_WORDS_MODE), - i.contains.push({ - className: 'doctag', - begin: '(?:TODO|FIXME|NOTE|BUG|XXX):', - relevance: 0 - }), - i - ); - }), - (t.C_LINE_COMMENT_MODE = t.COMMENT('//', '$')), - (t.C_BLOCK_COMMENT_MODE = t.COMMENT('/\\*', '\\*/')), - (t.HASH_COMMENT_MODE = t.COMMENT('#', '$')), - (t.NUMBER_MODE = { - className: 'number', - begin: t.NUMBER_RE, - relevance: 0 - }), - (t.C_NUMBER_MODE = { - className: 'number', - begin: t.C_NUMBER_RE, - relevance: 0 - }), - (t.BINARY_NUMBER_MODE = { - className: 'number', - begin: t.BINARY_NUMBER_RE, - relevance: 0 - }), - (t.CSS_NUMBER_MODE = { - className: 'number', - begin: - t.NUMBER_RE + - '(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?', - relevance: 0 - }), - (t.REGEXP_MODE = { - className: 'regexp', - begin: /\//, - end: /\/[gimuy]*/, - illegal: /\n/, - contains: [ - t.BACKSLASH_ESCAPE, - { - begin: /\[/, - end: /\]/, - relevance: 0, - contains: [t.BACKSLASH_ESCAPE] } - ] - }), - (t.TITLE_MODE = { - className: 'title', - begin: t.IDENT_RE, - relevance: 0 - }), - (t.UNDERSCORE_TITLE_MODE = { - className: 'title', - begin: t.UNDERSCORE_IDENT_RE, - relevance: 0 - }), - (t.METHOD_GUARD = { - begin: '\\.\\s*' + t.UNDERSCORE_IDENT_RE, - relevance: 0 - }), - t - ); - }), - (o = - ('object' == typeof window && window) || - ('object' == typeof self && self)), - e.nodeType - ? o && - ((o.hljs = i({})), - void 0 === - (r = function() { - return o.hljs; - }.apply(e, [])) || (t.exports = r)) - : i(e); - }, - function(t, e, n) { - 'use strict'; - var r = n(417), - i = o(Error); - function o(t) { - return (e.displayName = t.displayName || t.name), e; - function e(e) { - return e && (e = r.apply(null, arguments)), new t(e); - } - } - (t.exports = i), - (i.eval = o(EvalError)), - (i.range = o(RangeError)), - (i.reference = o(ReferenceError)), - (i.syntax = o(SyntaxError)), - (i.type = o(TypeError)), - (i.uri = o(URIError)), - (i.create = o); - }, - function(t, e, n) { - !(function() { - var e; - function n(t) { - for ( - var e, - n, - r, - i, - o = 1, - a = [].slice.call(arguments), - s = 0, - u = t.length, - l = '', - c = !1, - f = !1, - d = function() { - return a[o++]; - }, - h = function() { - for (var n = ''; /\d/.test(t[s]); ) (n += t[s++]), (e = t[s]); - return n.length > 0 ? parseInt(n) : null; - }; - s < u; - ++s - ) - if (((e = t[s]), c)) - switch ( - ((c = !1), - '.' == e - ? ((f = !1), (e = t[++s])) - : '0' == e && '.' == t[s + 1] - ? ((f = !0), (e = t[(s += 2)])) - : (f = !0), - (i = h()), - e) - ) { - case 'b': - l += parseInt(d(), 10).toString(2); - break; - case 'c': - l += - 'string' == typeof (n = d()) || n instanceof String - ? n - : String.fromCharCode(parseInt(n, 10)); - break; - case 'd': - l += parseInt(d(), 10); - break; - case 'f': - (r = String(parseFloat(d()).toFixed(i || 6))), - (l += f ? r : r.replace(/^0/, '')); - break; - case 'j': - l += JSON.stringify(d()); - break; - case 'o': - l += '0' + parseInt(d(), 10).toString(8); - break; - case 's': - l += d(); - break; - case 'x': - l += '0x' + parseInt(d(), 10).toString(16); - break; - case 'X': - l += - '0x' + - parseInt(d(), 10) - .toString(16) - .toUpperCase(); - break; - default: - l += e; + function d(t, e) { + return !e || ('object' !== l(e) && 'function' != typeof e) + ? (function(t) { + if (void 0 === t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return t; + })(t) + : e; } - else '%' === e ? (c = !0) : (l += e); - return l; - } - ((e = t.exports = n).format = n), - (e.vsprintf = function(t, e) { - return n.apply(null, [t].concat(e)); - }), - 'undefined' != typeof console && - 'function' == typeof console.log && - (e.printf = function() { - console.log(n.apply(null, arguments)); - }); - })(); - }, - function(t, e, n) { - 'use strict'; - var r = n(0); - function i(t) { - return function(e, n) { - return (function(t, e, n) { - return t.tagName - ? r.createElement( - t.tagName, - (function(t, e) { - for (var n in e) t[n] = e[n]; - return t; - })({ key: 'lo-' + n + '-' + e }, t.properties), - t.children && t.children.map(i(n + 1)) - ) - : t.value; - })(e, n, t); - }; - } - e.depth = i; - }, - function(t, e, n) { - 'use strict'; - t.exports = function(t, e) { - var n = e.markers - .map(function(t) { - return t.line ? t : { line: t }; - }) - .sort(function(t, e) { - return t.line - e.line; - }); - return (function(t, e, n) { - for ( - var r = 0, - i = e.reduce(function(e, i) { - for (var o = i.line, a = []; r < t.length; r++) - if (t[r].lineNumber < o) e.push(t[r]); - else if (t[r].lineNumber !== o) { - if (t[r].lineNumber > o) break; - } else a.push(t[r]); + function h(t) { + return (h = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + })(t); + } + function p(t, e) { + return (p = + Object.setPrototypeOf || + function(t, e) { + return (t.__proto__ = e), t; + })(t, e); + } + var g = (function(t) { + function e(t) { + var n; + return ( + (function(t, e) { + if (!(t instanceof e)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, e), + ((n = d(this, h(e).call(this, t))).handleRef = function(t) { + t && ((n.el = t), n.createKeenDataviz()); + }), + n + ); + } + var n, r, o; return ( - e.push({ - type: 'element', - tagName: 'div', - properties: { - className: [i.className || n.prefix + 'marker'] + (function(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { value: t, writable: !0, configurable: !0 } + })), + e && p(t, e); + })(e, t), + (n = e), + (r = [ + { + key: 'componentDidUpdate', + value: function() { + this.keenDataviz.destroy(), this.createKeenDataviz(); + } }, - children: a, - lineNumber: o - }), + { + key: 'componentWillUnmount', + value: function() { + this.keenDataviz.destroy(); + } + }, + { + key: 'createKeenDataviz', + value: function() { + this.keenDataviz = new u.a( + (function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = null != arguments[e] ? arguments[e] : {}, + r = Object.keys(n); + 'function' == + typeof Object.getOwnPropertySymbols && + (r = r.concat( + Object.getOwnPropertySymbols(n).filter( + function(t) { + return Object.getOwnPropertyDescriptor( + n, + t + ).enumerable; + } + ) + )), + r.forEach(function(e) { + c(t, e, n[e]); + }); + } + return t; + })({ container: this.el, react: !0 }, this.props) + ); + } + }, + { + key: 'render', + value: function() { + return i.a.createElement('div', { + className: this.props.theme, + ref: this.handleRef + }); + } + } + ]) && f(n.prototype, r), + o && f(n, o), e ); - }, []); - r < t.length; - r++ - ) - i.push(t[r]); - return i; - })( - (function t(e) { - var n = - arguments.length > 1 && void 0 !== arguments[1] - ? arguments[1] - : 1; - return e.reduce( - function(e, r) { - if ('text' === r.type) { - if (-1 === r.value.indexOf('\n')) - return (r.lineNumber = n), e.nodes.push(r), e; - for (var i = r.value.split('\n'), o = 0; o < i.length; o++) - e.nodes.push({ - type: 'text', - value: o === i.length - 1 ? i[o] : i[o] + '\n', - lineNumber: 0 === o ? n : ++n - }); - return (e.lineNumber = n), e; + })(r.Component); + (g.propTypes = { + type: a.a.string, + showDeprecationWarnings: a.a.bool, + showLoadingSpinner: a.a.bool, + theme: a.a.string, + dateFormat: a.a.string, + title: a.a.oneOfType([a.a.string, a.a.bool, a.a.number]), + legend: a.a.shape({ + show: a.a.bool, + position: a.a.string, + label: a.a.shape({ textMaxLength: a.a.number }), + pagination: a.a.shape({ + offset: a.a.number, + limit: a.a.number + }), + tooltip: a.a.shape({ show: a.a.bool, pointer: a.a.bool }), + sort: a.a.string + }), + colors: a.a.arrayOf(a.a.string), + colorMapping: a.a.objectOf(a.a.string), + labelMapping: a.a.objectOf(a.a.string), + labelMappingRegExp: a.a.arrayOf(a.a.arrayOf(a.a.string)), + labelMappingDimension: a.a.string, + errorMapping: a.a.objectOf(a.a.string), + showErrorMessages: a.a.bool, + labels: a.a.arrayOf(a.a.string), + sortGroups: a.a.string, + sortIntervals: a.a.string, + stacking: a.a.string, + table: a.a.shape({ + columns: a.a.arrayOf(a.a.string), + pagination: a.a.shape({ limit: a.a.number }), + mapValues: a.a.func + }), + renderOnVisible: a.a.bool, + results: a.a.any, + previousResults: a.a.shape({ result: a.a.number }), + funnel: a.a.shape({ + lines: a.a.bool, + resultValues: a.a.bool, + percents: a.a.shape({ + show: a.a.bool, + countingMethod: a.a.string, + decimals: a.a.number + }), + hover: a.a.bool, + marginBetweenSteps: a.a.bool, + effect3d: a.a.string + }), + stacked: a.a.bool, + indexBy: a.a.string, + library: a.a.string, + timezone: a.a.string, + padding: a.a.shape({ + top: a.a.number, + right: a.a.number, + bottom: a.a.number, + left: a.a.number + }), + tooltip: a.a.shape({ + show: a.a.bool, + grouped: a.a.bool, + format: a.a.shape({ + title: a.a.func, + name: a.a.func, + value: a.a.func + }), + position: a.a.func, + contenss: a.a.func + }), + partialIntervalIndicator: a.a.shape({ + show: a.a.bool, + className: a.a.string + }), + showTitle: a.a.bool, + notes: a.a.string, + axis: a.a.any, + color: a.a.any, + point: a.a.any, + transition: a.a.any, + data: a.a.any, + grid: a.a.any + }), + (g.defaultProps = { theme: 'keen-dataviz' }); + }, + function(t, e, n) { + 'use strict'; + /** @license React v16.8.5 + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ var r = n(6), + i = 'function' == typeof Symbol && Symbol.for, + o = i ? Symbol.for('react.element') : 60103, + a = i ? Symbol.for('react.portal') : 60106, + s = i ? Symbol.for('react.fragment') : 60107, + u = i ? Symbol.for('react.strict_mode') : 60108, + l = i ? Symbol.for('react.profiler') : 60114, + c = i ? Symbol.for('react.provider') : 60109, + f = i ? Symbol.for('react.context') : 60110, + d = i ? Symbol.for('react.concurrent_mode') : 60111, + h = i ? Symbol.for('react.forward_ref') : 60112, + p = i ? Symbol.for('react.suspense') : 60113, + g = i ? Symbol.for('react.memo') : 60115, + m = i ? Symbol.for('react.lazy') : 60116, + v = 'function' == typeof Symbol && Symbol.iterator; + function y(t) { + for ( + var e = arguments.length - 1, + n = + 'https://reactjs.org/docs/error-decoder.html?invariant=' + + t, + r = 0; + r < e; + r++ + ) + n += '&args[]=' + encodeURIComponent(arguments[r + 1]); + !(function(t, e, n, r, i, o, a, s) { + if (!t) { + if (((t = void 0), void 0 === e)) + t = Error( + 'Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.' + ); + else { + var u = [n, r, i, o, a, s], + l = 0; + (t = Error( + e.replace(/%s/g, function() { + return u[l++]; + }) + )).name = 'Invariant Violation'; + } + throw ((t.framesToPop = 1), t); + } + })( + !1, + 'Minified React error #' + + t + + '; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ', + n + ); + } + var b = { + isMounted: function() { + return !1; + }, + enqueueForceUpdate: function() {}, + enqueueReplaceState: function() {}, + enqueueSetState: function() {} + }, + _ = {}; + function x(t, e, n) { + (this.props = t), + (this.context = e), + (this.refs = _), + (this.updater = n || b); + } + function w() {} + function S(t, e, n) { + (this.props = t), + (this.context = e), + (this.refs = _), + (this.updater = n || b); + } + (x.prototype.isReactComponent = {}), + (x.prototype.setState = function(t, e) { + 'object' != typeof t && + 'function' != typeof t && + null != t && + y('85'), + this.updater.enqueueSetState(this, t, e, 'setState'); + }), + (x.prototype.forceUpdate = function(t) { + this.updater.enqueueForceUpdate(this, t, 'forceUpdate'); + }), + (w.prototype = x.prototype); + var E = (S.prototype = new w()); + (E.constructor = S), + r(E, x.prototype), + (E.isPureReactComponent = !0); + var k = { current: null }, + A = { current: null }, + T = Object.prototype.hasOwnProperty, + C = { key: !0, ref: !0, __self: !0, __source: !0 }; + function O(t, e, n) { + var r = void 0, + i = {}, + a = null, + s = null; + if (null != e) + for (r in (void 0 !== e.ref && (s = e.ref), + void 0 !== e.key && (a = '' + e.key), + e)) + T.call(e, r) && !C.hasOwnProperty(r) && (i[r] = e[r]); + var u = arguments.length - 2; + if (1 === u) i.children = n; + else if (1 < u) { + for (var l = Array(u), c = 0; c < u; c++) + l[c] = arguments[c + 2]; + i.children = l; } - if (r.children) { - r.lineNumber = n; - var a = t(r.children, n); + if (t && t.defaultProps) + for (r in (u = t.defaultProps)) + void 0 === i[r] && (i[r] = u[r]); + return { + $$typeof: o, + type: t, + key: a, + ref: s, + props: i, + _owner: A.current + }; + } + function P(t) { + return 'object' == typeof t && null !== t && t.$$typeof === o; + } + var M = /\/+/g, + L = []; + function j(t, e, n, r) { + if (L.length) { + var i = L.pop(); return ( - (r.children = a.nodes), - (e.lineNumber = a.lineNumber), - e.nodes.push(r), - e + (i.result = t), + (i.keyPrefix = e), + (i.func = n), + (i.context = r), + (i.count = 0), + i ); } - return e.nodes.push(r), e; - }, - { nodes: [], lineNumber: n } - ); - })(t).nodes, - n, - e - ); - }; - }, - function(t, e, n) { - var r = n(421); - 'string' == typeof r && (r = [[t.i, r, '']]); - var i = { hmr: !0, transform: void 0, insertInto: void 0 }; - n(30)(r, i); - r.locals && (t.exports = r.locals); - }, - function(t, e, n) { - (t.exports = n(29)(!1)).push([ - t.i, - '.react-grid-layout{position:relative;transition:height .2s ease}.react-grid-item{transition:all .2s ease;transition-property:left,top}.react-grid-item.cssTransforms{transition-property:transform}.react-grid-item.resizing{z-index:1;will-change:width,height}.react-grid-item.react-draggable-dragging{transition:none;z-index:3;will-change:transform}.react-grid-item.dropping{visibility:hidden}.react-grid-item.react-grid-placeholder{background:red;opacity:.2;transition-duration:.1s;z-index:2;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.react-grid-item>.react-resizable-handle{position:absolute;width:20px;height:20px;bottom:0;right:0;cursor:se-resize}.react-grid-item>.react-resizable-handle:after{content:"";position:absolute;right:3px;bottom:3px;width:5px;height:5px;border-right:2px solid rgba(0,0,0,.4);border-bottom:2px solid rgba(0,0,0,.4)}', - '' - ]); - }, - function(t, e, n) { - var r = n(423); - 'string' == typeof r && (r = [[t.i, r, '']]); - var i = { hmr: !0, transform: void 0, insertInto: void 0 }; - n(30)(r, i); - r.locals && (t.exports = r.locals); - }, - function(t, e, n) { - (t.exports = n(29)(!1)).push([ - t.i, - '.react-resizable{position:relative}.react-resizable-handle{position:absolute;width:20px;height:20px;background-repeat:no-repeat;background-origin:content-box;box-sizing:border-box;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+");background-position:100% 100%;padding:0 3px 3px 0}.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-resizable-handle-e,.react-resizable-handle-w{top:50%;margin-top:-10px;cursor:ew-resize}.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-resizable-handle-n,.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}', - '' - ]); - }, - function(t, e, n) { - var r = n(425); - 'string' == typeof r && (r = [[t.i, r, '']]); - var i = { hmr: !0, transform: void 0, insertInto: void 0 }; - n(30)(r, i); - r.locals && (t.exports = r.locals); - }, - function(t, e, n) { - (t.exports = n(29)(!1)).push([ - t.i, - '.c3 svg{font:10px sans-serif;-webkit-tap-highlight-color:rgba(0,0,0,0)}.c3 line,.c3 path{fill:none;stroke:#000}.c3 text{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.c3-bars path,.c3-event-rect,.c3-legend-item-tile,.c3-xgrid-focus,.c3-ygrid{shape-rendering:crispEdges}.c3-chart-arc path{stroke:#fff}.c3-chart-arc rect{stroke:#fff;stroke-width:1}.c3-chart-arc text{fill:#fff;font-size:13px}.c3-grid line{stroke:#aaa}.c3-grid text{fill:#aaa}.c3-xgrid,.c3-ygrid{stroke-dasharray:3 3}.c3-text.c3-empty{fill:gray;font-size:2em}.c3-line{stroke-width:1px}.c3-circle._expanded_{stroke-width:1px;stroke:#fff}.c3-selected-circle{fill:#fff;stroke-width:2px}.c3-bar{stroke-width:0}.c3-bar._expanded_{fill-opacity:1;fill-opacity:.75}.c3-target.c3-focused{opacity:1}.c3-target.c3-focused path.c3-line,.c3-target.c3-focused path.c3-step{stroke-width:2px}.c3-target.c3-defocused{opacity:.3!important}.c3-region{fill:#4682b4;fill-opacity:.1}.c3-brush .extent{fill-opacity:.1}.c3-legend-item{font-size:12px}.c3-legend-item-hidden{opacity:.15}.c3-legend-background{opacity:.75;fill:#fff;stroke:#d3d3d3;stroke-width:1}.c3-title{font:14px sans-serif}.c3-tooltip-container{z-index:10}.c3-tooltip{border-collapse:collapse;border-spacing:0;background-color:#fff;empty-cells:show;box-shadow:7px 7px 12px -9px #777;opacity:.9}.c3-tooltip tr{border:1px solid #ccc}.c3-tooltip th{background-color:#aaa;font-size:14px;padding:2px 5px;text-align:left;color:#fff}.c3-tooltip td{font-size:13px;padding:3px 6px;background-color:#fff;border-left:1px dotted #999}.c3-tooltip td>span{display:inline-block;width:10px;height:10px;margin-right:6px}.c3-tooltip .value{text-align:right}.c3-area{stroke-width:0;opacity:.2}.c3-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}.c3-chart-arcs .c3-chart-arcs-background{fill:#e0e0e0;stroke:#fff}.c3-chart-arcs .c3-chart-arcs-gauge-unit{fill:#000;font-size:16px}.c3-chart-arcs .c3-chart-arcs-gauge-max,.c3-chart-arcs .c3-chart-arcs-gauge-min{fill:#777}.c3-chart-arc .c3-gauge-value{fill:#000}.c3-chart-arc.c3-target.c3-focused g path,.c3-chart-arc.c3-target g path{opacity:1}.c3-drag-zoom.enabled{pointer-events:all!important;visibility:visible}.c3-drag-zoom.disabled{pointer-events:none!important;visibility:hidden}.c3-drag-zoom .extent{fill-opacity:.1}.rangeable-container.combined-tooltip.dragging .rangeable-progress>.rangeable-tooltip,.rangeable-container.combined-tooltip.rangeable-tooltips--visible .rangeable-progress>.rangeable-tooltip,.rangeable-container.dragging.rangeable-tooltips .rangeable-handle .rangeable-tooltip,.rangeable-container.rangeable-tooltips--visible.rangeable-tooltips .rangeable-handle .rangeable-tooltip,.rangeable-container.rangeable-vertical.combined-tooltip .rangeable-progress>.rangeable-tooltip:before{display:block}.rangeable-container{cursor:pointer;width:100%}.rangeable-container.rangeable-disabled{opacity:.6;cursor:not-allowed}.rangeable-container.rangeable-multiple.combined-tooltip .rangeable-handle .rangeable-tooltip,.rangeable-container.rangeable-vertical.combined-tooltip .rangeable-handle .rangeable-tooltip{opacity:0}.rangeable-container.focus .rangeable-handle{border:1px solid #74b9ff}.rangeable-container.rangeable-multiple .rangeable-handle:first-child{left:0;transform:translate3d(-50%,-50%,0)}.rangeable-container.rangeable-multiple .rangeable-handle:nth-child(2){right:0}.rangeable-container.rangeable-vertical{height:100%;width:auto}.rangeable-container.rangeable-vertical .rangeable-track{width:8px;height:100%}.rangeable-container.rangeable-vertical .rangeable-progress{width:8px;height:100%;top:auto;bottom:0;transform-origin:0 100% 0}.rangeable-container.rangeable-vertical .rangeable-handle{right:auto;left:50%;top:0;transform:translate3d(-50%,-50%,0)}.rangeable-container.rangeable-vertical .rangeable-tooltip{position:absolute;top:50%;left:calc(100% + 6px + 4px + 5px);right:auto;bottom:auto;transform:translate3d(0,-50%,0)}.rangeable-container.rangeable-vertical .rangeable-tooltip:before{right:100%;left:auto;top:50%;transform:translate3d(0,-50%,0);border-width:4px 4px 4px 0;border-color:transparent #3db13d transparent transparent}.rangeable-container.rangeable-vertical .rangeable-buffer{width:100%;height:0}.rangeable-container.rangeable-vertical.rangeable-multiple .rangeable-handle:first-child{top:0;left:50%}.rangeable-container.rangeable-vertical.rangeable-multiple .rangeable-handle:nth-child(2){bottom:0;top:auto;transform:translate3d(-50%,50%,0)}.rangeable-input{position:absolute;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;margin:-1px;padding:0;border:0}.rangeable-input:focus+.rangeable-track .rangeable-handle:after{position:absolute;width:22px;height:22px;bottom:-6px;right:-6px;outline:1px dotted #000;content:""}.rangeable-progress,.rangeable-track{height:8px;width:100%;border-radius:4px}.rangeable-track{background-color:#ccc;position:relative}.rangeable-progress{background-color:#3db13d;position:absolute;left:0;top:0;transform-origin:0 0 0}.rangeable-progress>.rangeable-tooltip{display:none;z-index:11;top:auto;bottom:calc(100% + 7px + 9px);white-space:nowrap}.rangeable-handle{box-sizing:border-box;width:22px;height:22px;border:6px solid #3db13d;border-radius:50%;background-color:#fff;position:absolute;top:50%;right:0;transform:translate3d(50%,-50%,0)}.rangeable-handle:focus{outline:0}.rangeable-handle:focus:after{position:absolute;width:22px;height:22px;bottom:-6px;right:-6px;outline:1px dotted #000;content:""}.rangeable-handle.active{z-index:10}.rangeable-handle .rangeable-tooltip{display:none}.rangeable-tooltip{position:absolute;right:50%;bottom:calc(100% + 6px + 4px + 5px);transform:translate3d(50%,0,0);text-align:center;padding:2px 13px;background-color:#3db13d;border-radius:4px;font-weight:700;font-size:16px;color:#fff;font-family:Inconsolata,Consolas,Courier New,Lucida Console,sans-serif}.rangeable-tooltip:before{width:0;height:0;border-width:4px 4px 0;border-style:solid;border-color:#3db13d transparent transparent;position:absolute;left:50%;top:100%;transform:translate3d(-50%,0,0);content:""}.rangeable-buffers{position:absolute;left:0;top:0;height:100%;width:100%}.rangeable-buffer{position:absolute;background-color:rgba(0,0,0,.2);border-radius:4px;height:100%}.keen-dataviz{box-sizing:border-box;font-family:Gotham Rounded SSm A,Gotham Rounded SSm B,Helvetica Neue,Helvetica,Arial,sans-serif;height:100%}.keen-dataviz .partial-interval-indicator{fill:#bdbdbd}.keen-dataviz .axis{shape-rendering:crispEdges}.keen-dataviz-title{color:#4d4d4d;padding-bottom:.8em}.keen-dataviz-stage{display:block}.keen-dataviz-notes{color:gray;display:block;font-size:.8em}.keen-dataviz-box{border-radius:4px;text-align:center;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-flow:row;flex-flow:row;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;padding:1em 0;min-height:4em;height:inherit}.keen-dataviz-button{padding:.5rem 1rem;margin:1rem 0;border-radius:4px;background-color:#f9f9f9;border-color:#d6d6d6;cursor:pointer;transition:background-color .3s ease}.keen-dataviz-button:hover{background-color:#e7e7e7}.keen-dataviz .metric-comparison{-ms-flex-direction:column-reverse;flex-direction:column-reverse;color:#1a1a1a;background:#f9f9f9}.keen-dataviz-metric{height:inherit;color:#fff;background:#00bbde}.keen-dataviz-metric-value{font-size:4.3em;font-weight:700;width:100%}.keen-dataviz-metric-value-smaller{font-size:3em}.keen-dataviz-metric-title{font-size:2em;font-weight:200;width:100%}.keen-dataviz-metric-green{color:#73d483;font-size:2em}.keen-dataviz-metric-red{color:#fe6672;font-size:2em}.keen-dataviz .arrow-green{border-bottom:8px solid #73d483;top:.7em}.keen-dataviz .arrow-green,.keen-dataviz .arrow-red{width:0;height:0;border-left:8px solid transparent;border-right:8px solid transparent;position:relative;left:-.6em}.keen-dataviz .arrow-red{border-top:8px solid #fe6672;top:.8em}.keen-dataviz-message{color:gray;font-size:1.5em;width:100%}.keen-dataviz .text-label{fill:#1a1a1a}.keen-dataviz .text-main{fill:#fff;font-size:1.5em}.keen-dataviz .text-second{fill:#fff}.keen-dataviz .chart-lines{stroke:#e7e7e7}.keen-dataviz-metric-combo{width:270px;height:120px;position:relative}.keen-dataviz-metric-combo .metric-combo-data{width:100%;height:100%;padding:.5rem;position:absolute;z-index:-1;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;box-sizing:border-box}.keen-dataviz-metric-combo .c3-chart{height:120px}.keen-dataviz-metric-combo .c3-lines{display:none}.keen-dataviz-metric-combo .current-count,.keen-dataviz-metric-combo .keen-dataviz-title{width:100%}.keen-dataviz-metric-combo .current-count{margin-top:auto;margin-bottom:auto;font-size:2rem;text-align:center}.keen-dataviz-metric-combo .percent-difference{position:absolute;top:.5rem;right:.5rem;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;font-size:80%}.keen-dataviz-metric-combo .arrow-green,.keen-dataviz-metric-combo .arrow-red{margin-right:.25rem;position:static;border-width:5px}.keen-dataviz-table{border-bottom:1px solid #e7e7e7;box-sizing:border-box;overflow:scroll;position:relative;width:100%}.keen-dataviz-table table{background:#fff;border-collapse:collapse;margin:0;position:relative;width:100%}.keen-dataviz-table table .table-pagination:hover td,.keen-dataviz-table table .table-pagination td{background-color:#fff}.keen-dataviz-table table .table-pagination a{border:1px solid #e7e7e7;padding:.5em;margin-right:.2em;cursor:pointer}.keen-dataviz-table table .table-pagination .active{background:#4d4d4d;color:#fff}.keen-dataviz-table table .table-pagination .arrow{font-weight:700}.keen-dataviz-table th{background:#fff;position:-webkit-sticky;position:sticky;top:0;z-index:10;cursor:pointer}.keen-dataviz-table td,.keen-dataviz-table th{border-collapse:collapse;font-size:1em;padding:.7em;text-align:left;white-space:nowrap}.keen-dataviz-table th{border-bottom:1px solid #e7e7e7;color:#4d4d4d}.keen-dataviz-table td{background-color:#fff;color:#4d4d4d;transition:background-color .1s,color .05s}.keen-dataviz-table .table-data-row:nth-child(2n) td{background-color:#f3f5f6}.keen-dataviz-table .table-data-row:hover td{background-color:#e7e7e7;color:#4d4d4d}.keen-dataviz-table .keen-dataviz-table-fixed-header{background:#fff;border-bottom:1px solid rgba(0,0,0,.15);position:absolute;top:0;transition:top .1s}.keen-dataviz .keen-spinner-indicator{border-radius:100%;border:3px solid rgba(0,0,0,.1);border-top-color:rgba(0,0,0,.45);box-sizing:border-box;height:3em;width:3em;animation:a .7s linear infinite;-ms-animation:a .7s linear infinite;-o-animation:a .7s linear infinite}.keen-dataviz-execution-meta{position:absolute;z-index:999;padding:.5rem 1rem;margin:.75rem 0;display:inline-grid;grid-template-columns:repeat(2,-webkit-max-content);grid-template-columns:repeat(2,max-content);grid-gap:.5em 1em;text-transform:uppercase;font-size:.75rem;border:1px solid #eee;background:#fff}.keen-dataviz-execution-meta dt,.keen-dataviz-execution-meta dt:hover+dd{font-weight:700}.keen-dataviz-execution-meta dd,.keen-dataviz-execution-meta dt{margin:0;cursor:pointer}.keen-dataviz-execution-meta .copied:after{content:"copied!";vertical-align:middle;display:inline-block;font-size:10px;margin-left:.5em;position:absolute;text-transform:none;font-weight:400;animation:1s ease 0s 1 both b}@keyframes a{to{transform:rotate(1turn)}}@keyframes b{0%{opacity:1}to{opacity:0}}.keen-dataviz .c3-axis-y .tick line,.keen-dataviz .c3-axis-y path{display:none}.keen-dataviz .tick line,.keen-dataviz path.domain{stroke-opacity:.2}.keen-dataviz .c3-ygrid{stroke-dasharray:none;stroke-opacity:.1}.keen-dataviz .c3-ygrids :nth-child(2n){display:none}.keen-dataviz .c3-tooltip{border:1px solid rgba(0,0,0,.1);padding:.2em;border-radius:.2em;box-shadow:none;border-collapse:separate}.keen-dataviz .c3-tooltip th{text-align:center}.keen-dataviz .c3-tooltip table,.keen-dataviz .c3-tooltip td,.keen-dataviz .c3-tooltip th,.keen-dataviz .c3-tooltip tr{border:none;background:none;font-size:.9em}.keen-dataviz .c3-tooltip-container th{max-width:50%;word-wrap:break-word;color:#1a1a1a;background:none;font-weight:400}.keen-dataviz .c3-tooltip-container td{max-width:50%;word-wrap:break-word}.keen-dataviz-rendering{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-flow:row;flex-flow:row;-ms-flex-pack:distribute;justify-content:space-around}.keen-dataviz-rendering .c3-chart{display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;-ms-flex-order:1;order:1;-ms-flex:100%;flex:100%}.keen-dataviz-rendering .c3-chart-100-percent{width:100%;-ms-flex-item-align:center;align-self:center}.keen-dataviz-rendering-horizontal{-ms-flex-wrap:wrap;flex-wrap:wrap}.keen-c3-legend{display:-ms-flexbox;display:flex;position:relative;top:0;box-sizing:border-box}.keen-c3-legend-horizontal{-ms-flex-direction:row;-ms-flex-item-align:end;align-self:flex-end;display:-ms-flexbox;display:flex;flex-direction:row;-ms-flex-pack:center;justify-content:center;width:100%;padding:.5em 0}.keen-c3-legend-horizontal-pagination-left{-ms-flex-order:0;order:0;display:-ms-flexbox;display:flex;margin-right:1.5em}.keen-c3-legend-horizontal-items{-ms-flex-order:1;order:1}.keen-c3-legend-horizontal-pagination-right{-ms-flex-order:2;order:2;display:-ms-flexbox;display:flex;margin-left:1.5em}.keen-c3-legend-top{-ms-flex-order:0;order:0}.keen-c3-legend-bottom{-ms-flex-order:2;order:2}.keen-c3-legend-bottom .keen-c3-legend-label-overlay{top:0;margin-top:-2.7em}.keen-c3-legend-bottom .keen-c3-legend-label-overlay .overlay-pointer{top:2.4em;transform:rotate(180deg);border-color:transparent transparent #f0f0f0}.keen-c3-legend-vertical{-ms-flex-direction:column;flex-direction:column}.keen-c3-legend-vertical .keen-c3-legend-pagination-icons{margin:.5em .1em;-ms-flex-order:2;order:2}.keen-c3-legend-left{-ms-flex-order:0;order:0}.keen-c3-legend-right{-ms-flex-order:2;order:2}.keen-c3-legend-items{-ms-flex-order:1;order:1}.keen-c3-legend-vertical-items{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.keen-c3-legend-vertical-items .legend-item{width:8em}.keen-c3-legend-horizontal-items{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.keen-c3-legend-horizontal-items .legend-item{width:6em;margin:0 .25em}.keen-c3-legend .legend-item{display:-ms-flexbox;display:flex;cursor:pointer;padding:.2em;font-size:.8em}.keen-c3-legend .legend-item>*{vertical-align:middle}.keen-c3-legend .legend-item-color-sample{display:inline-block;width:1em;height:1em;margin-right:.5em;pointer-events:none;-ms-flex:none;flex:none}.keen-c3-legend .legend-item-text{pointer-events:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left}.keen-c3-legend-label-overlay .overlay-pointer{border-color:transparent transparent #fff;border-style:solid;border-width:0 10px 10px;height:0;width:0;position:absolute;top:-10px}.keen-c3-legend-position-left .overlay-pointer,.keen-c3-legend-position-right .overlay-pointer{left:0}.keen-c3-legend-pagination-vertical{margin-top:.5em}.keen-c3-legend-pagination-icons{padding:.2em}.keen-c3-legend-pagination-icons i{border-left:1em solid transparent;border-right:1em solid transparent;border-top:1.5em solid #4d4d4d;display:inline-block;padding:0;float:left;cursor:pointer;font-size:.5em}.keen-c3-legend-pagination-icons .right{transform:rotate(-90deg);-webkit-transform:rotate(-90deg)}.keen-c3-legend-pagination-icons .left{transform:rotate(90deg);-webkit-transform:rotate(90deg)}.keen-c3-legend-pagination-icons .up{transform:rotate(-180deg);-webkit-transform:rotate(-180deg);margin-top:.1em}.keen-c3-legend-pagination-icons .down{margin-right:1em}.keen-c3-legend-label-overlay{font-size:1em;background:hsla(0,0%,100%,.9);box-shadow:0 1px 1px rgba(26,26,26,.09999999999999998);padding:.6em;margin-top:1.5em;position:absolute;word-wrap:break-word;pointer-events:none;z-index:222}.keen-c3-legend-align-left{-ms-flex-pack:start;justify-content:flex-start}.keen-c3-legend-align-left .keen-c3-legend-horizontal-items{-ms-flex-pack:start;justify-content:flex-start;margin-right:auto}.keen-c3-legend-align-center{-ms-flex-pack:center;justify-content:center}.keen-c3-legend-align-center .keen-c3-legend-horizontal-items{-ms-flex-pack:center;justify-content:center;margin-left:auto;margin-right:auto}.keen-c3-legend-align-right{-ms-flex-pack:end;justify-content:flex-end}.keen-c3-legend-align-right .keen-c3-legend-horizontal-items{-ms-flex-pack:end;justify-content:flex-end;margin-left:auto}.keen-c3-legend-align-top{-ms-flex-pack:start;justify-content:flex-start}.keen-c3-legend-align-middle{-ms-flex-pack:center;justify-content:center}.keen-c3-legend-align-bottom{-ms-flex-pack:end;justify-content:flex-end}.keen-dataviz-range .c3-area-Max,.keen-dataviz-range .c3-bars-Max{display:none}.keen-dataviz~.rangeable-container{margin:2rem auto;width:75%}.keen-dataviz~.rangeable-container .rangeable-progress,.keen-dataviz~.rangeable-container .rangeable-track{height:4px}.keen-dataviz~.rangeable-container .rangeable-handle{width:16px;height:16px;border-width:4px}.keen-dataviz~.rangeable-container .rangeable-tooltip{border-radius:0;font-weight:400;padding:3px 9px}', - '' - ]); - }, - function(t, e, n) { - var r = n(427); - 'string' == typeof r && (r = [[t.i, r, '']]); - var i = { hmr: !0, transform: void 0, insertInto: void 0 }; - n(30)(r, i); - r.locals && (t.exports = r.locals); - }, - function(t, e, n) { - (t.exports = n(29)(!1)).push([ - t.i, - 'body{margin:0}.dashboard-builder{width:100%;margin:0;height:100vh;position:relative;display:flex;justify-content:center;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;background:#f9f9f9;color:#000;overflow:hidden;box-sizing:border-box}.dashboard-builder.container{width:1200px;min-height:100vh;height:auto;display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start;justify-content:flex-start;background:#f5f5f5}.dashboard-builder .dashboard{position:relative;width:100%;min-height:calc(100vh - 130px);padding:20px;box-sizing:border-box}.dashboard-builder .dashboard-container{width:100%;overflow:auto;padding-left:60px}.dashboard-builder .dashboard-container-viewer{width:100%;overflow:auto}.dashboard-builder .dashboard-container-viewer .dashboard-top-bar{width:100%;z-index:12}.dashboard-builder .dashboard-container-viewer .dashboard-top-bar .export-icon{margin:0 1rem;order:2;flex-shrink:0}.dashboard-builder .dashboard-inner-container{background:#fdfdfd;margin:auto}.dashboard-builder .dashboard-title{height:60px;width:100%;position:relative;display:flex;align-items:center;justify-content:space-between;padding:.5rem}.dashboard-builder .dashboard-title input{border:0;background:inherit;width:100%;font-size:30px;outline:none;padding:5px 5px 5px 0}.dashboard-builder .dashboard-title .title{padding:20px}.dashboard-builder .dashboard-title a{text-decoration:none}.dashboard-builder .dashboard-top-bar{height:50px;width:100%;background:#f9f9f9;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;position:sticky;top:0;left:0;z-index:9}.dashboard-builder .dashboard-top-bar__menu{flex-shrink:0;display:flex;align-items:center}.dashboard-builder .dashboard-top-bar .share{position:relative}.dashboard-builder .dashboard-top-bar .embed,.dashboard-builder .dashboard-top-bar .share{margin:0 1rem;cursor:pointer}.dashboard-builder .dashboard-list-item{width:20%;min-width:180px;height:200px;padding:10px;position:relative}.dashboard-builder .dashboard-list-item:hover>.dashboard-list-item-buttons{visibility:visible}.dashboard-builder .dashboard-list-item-box{background:#fff;display:flex;justify-content:center;align-items:center;border:1px solid #eee;border-radius:5px;width:100%;height:100%;transition:box-shadow .3s;color:#000;padding:10px;text-align:center}.dashboard-builder .dashboard-list-item-box:hover{box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23)}.dashboard-builder .dashboard-list-item-box time{position:absolute;bottom:15px;left:20px;color:#aaa;font-size:12px}.dashboard-builder .dashboard-list-item-buttons{position:absolute;top:15px;right:15px;cursor:pointer;visibility:hidden}.dashboard-builder .dashboard-saved-message{position:absolute;top:.5rem;left:45%;padding:.5rem 1rem;border-radius:5px;background:#333;color:#fff;font-size:.85rem;z-index:11}.dashboard-builder .dashboard img{width:100%;height:100%}.dashboard-builder .toolbar{position:absolute;left:0;top:0;width:60px;height:100%;z-index:10}.dashboard-builder .toolbar-bar{width:100%;height:100%;position:relative;z-index:6;border-right:1px solid #929191;padding:20px;background:#2f97b9;color:#fff;cursor:pointer}.dashboard-builder .toolbar-bar h3{transform:translateY(100%) rotate(-90deg);transform-origin:0 0;white-space:nowrap;overflow:hidden;position:absolute;top:110px;left:15px;color:#fff}.dashboard-builder .toolbar-container{position:absolute;left:-135px;height:100%;border-right:1px solid #929191;background:#fff;box-shadow:3px 3px 6px #eee;border-right:0;overflow-y:auto;transition:left .25s ease-out}.dashboard-builder .toolbar-hidden{width:90px;display:flex;flex-direction:row;flex-wrap:wrap;padding:10px 10px 10px 20px}.dashboard-builder .toolbar-hidden>h4{font-size:.7rem;width:100%;margin:2rem 0 .5rem;font-weight:400;text-transform:uppercase}.dashboard-builder .toolbar-hidden>h4:first-of-type{margin-top:1rem}.dashboard-builder .toolbar-hidden p{cursor:pointer;z-index:5;margin:0;padding:5px;width:50px;height:50px;display:flex;align-items:center;justify-content:center;background:#fff}.dashboard-builder .toolbar-hidden .metric-chart-icon{font-size:20px;font-weight:600}.dashboard-builder .toolbar-visible{left:60px}.dashboard-builder .burger-icon{padding:0 20px;cursor:pointer;position:relative}.dashboard-builder .burger-icon .fa-bars{color:#2f97b9}.dashboard-builder .modal{display:block;position:absolute;background:#fff;border:1px solid #eee;border-radius:5px;z-index:11;top:0;left:20px;right:auto;bottom:auto;font-size:14px;width:250px;box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23)}.dashboard-builder .modal-header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:15px;border-bottom:1px solid #eee;font-size:17px}.dashboard-builder .modal-header .svg-inline--fa{cursor:pointer}.dashboard-builder .modal .dashboards-filter{padding:.25rem 1rem;border-bottom:1px solid #eee;display:flex;justify-content:space-between}.dashboard-builder .modal .dashboards-filter input{font-size:14px}.dashboard-builder .modal-body{padding:15px;max-height:300px;overflow:auto}.dashboard-builder .modal-body .item{padding:1rem;border-bottom:1px solid #eee;display:flex;flex-direction:column}.dashboard-builder .modal-body .item:hover{background:#f3f3f3}.dashboard-builder .modal-body .item .time{color:#aaa;font-size:12px}.dashboard-builder .modal-body .active{background:#f9f9f9}.dashboard-builder .modal-body .active .fa-angle-double-right{color:#2f97b9;padding-right:5px}.dashboard-builder .modal-body .modal-input{padding:8px 4px;margin-bottom:.5em;width:100%}.dashboard-builder .modal-body .prism{margin-bottom:40px;white-space:pre-wrap}.dashboard-builder .modal-button{border-radius:5px;padding:5px 15px;cursor:pointer;color:#fff;background:#2f97b9;border:none;font-size:14px;line-height:1}.dashboard-builder .modal-button .svg-inline--fa{margin-right:.25rem}.dashboard-builder .modal-footer{padding:10px}.dashboard-builder .modal-cover{width:100%;height:100%;opacity:.4;background:#000;position:absolute;top:0;left:0;z-index:10}.dashboard-builder .modal.share-dashboard{width:500px;top:50px;left:50%;transform:translateX(-50%)}.dashboard-builder .modal.embed-dashboard{width:75%;max-width:700px;top:50%;left:50%;transform:translate(-50%,-50%)}.dashboard-builder .modal.embed-dashboard .modal-button{position:fixed;bottom:15px;left:15px}.dashboard-builder .editor-dashboard-switch .modal-body{padding:0}.dashboard-builder .paragraph{padding:0 10px;overflow:hidden;width:100%}.dashboard-builder .paragraph p{margin:0}.dashboard-builder .keen-dataviz{padding:15px;border:1px solid #ccc}.dashboard-builder .keen-dataviz .keen-dataviz{padding:0;border:none}.dashboard-builder .chart-container{background:#fff;justify-content:center;align-items:center;position:absolute;border-radius:5px;display:flex;flex-direction:column;transition:box-shadow .3s;z-index:1}.dashboard-builder .chart-container:hover{box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23);z-index:8}.dashboard-builder .chart-container:hover .config-buttons{visibility:visible}.dashboard-builder .chart-container img{border-radius:5px}.dashboard-builder .chart-container>.keen-dataviz{overflow:auto;width:100%;margin-top:0;border:1px solid #eee}.dashboard-builder .chart-container-viewer{background:#fff;justify-content:center;align-items:center;border-radius:5px;display:flex;flex-direction:column;transition:box-shadow .3s;z-index:1;position:relative}.dashboard-builder .chart-container-viewer .c3-tooltip-container{z-index:10}.dashboard-builder .chart-container-viewer:hover .explorer-button{visibility:visible}.dashboard-builder .chart-container-viewer img{border-radius:5px}.dashboard-builder .chart-container-viewer>.keen-dataviz{overflow:auto;width:100%;margin-top:0;border:1px solid #eee}.dashboard-builder .config-buttons{position:absolute;top:-1px;right:-35px;display:flex;flex-direction:column;visibility:hidden;padding-left:5px;opacity:1}.dashboard-builder .config-buttons div{cursor:pointer;width:30px;height:30px;background:#000;color:#fff;font-size:15px;box-sizing:border-box;margin-bottom:2px;display:flex;align-items:center;justify-content:center;opacity:.7;border-radius:3px}.dashboard-builder .config-buttons div:hover{background:#424242}.dashboard-builder .explorer-button{position:absolute;z-index:4;top:2px;right:2px;cursor:pointer;width:30px;height:30px;background:#000;color:#fff;box-sizing:border-box;opacity:.7;border-radius:3px;padding-left:8px;padding-top:2px;visibility:hidden}.dashboard-builder .explorer-button a{color:#fff}.dashboard-builder .explorer-button:hover{background:#424242}.dashboard-builder .top-left{left:0;top:0;cursor:nwse-resize;width:10px;height:10px;z-index:4}.dashboard-builder .top-right{right:0;top:0;cursor:nesw-resize;width:10px;height:10px;z-index:4}.dashboard-builder .bottom-left{left:0;bottom:0;cursor:nesw-resize;width:10px;height:10px;z-index:4}.dashboard-builder .bottom-right{right:1px;bottom:1px;cursor:nwse-resize;width:12px;height:12px;z-index:4;border-style:solid;border-width:0 0 12px 12px;border-color:transparent transparent #7c7c7c}.dashboard-builder .left{left:0}.dashboard-builder .left,.dashboard-builder .right{top:0;height:100%;width:5px;cursor:ew-resize;z-index:3}.dashboard-builder .right{right:0}.dashboard-builder .top{top:0}.dashboard-builder .bottom,.dashboard-builder .top{left:0;width:100%;height:5px;cursor:ns-resize;z-index:3}.dashboard-builder .bottom{bottom:0}.dashboard-builder .keen-dataviz-table th{z-index:0}.dashboard-builder .keen-dataviz-title{padding-top:5px}.dashboard-builder .keen-dataviz-metric-subtitle,.dashboard-builder .keen-dataviz-metric-title,.dashboard-builder .keen-dataviz-subtitle,.dashboard-builder .keen-dataviz-title{padding-left:10px;padding-right:10px}.dashboard-builder .chart-draggable{position:absolute;left:10px;width:calc(100% - 20px);height:calc(100% - 20px);z-index:2;cursor:move}.dashboard-builder .search{width:65%;height:100%;display:flex;flex-direction:row;font-size:15px;align-items:center}.dashboard-builder .search svg{margin-right:10px}.dashboard-builder .search input{border:0;background:inherit;width:100%;height:100%;outline:none;font-size:20px}.dashboard-builder .sorting-select{width:200px;margin-top:15px}.dashboard-builder .screen-resize-icon{display:flex;color:hsla(0,0%,44%,.65882);align-items:center;flex:1;justify-content:center}.dashboard-builder .screen-resize-icon svg{margin:0 1rem;cursor:pointer}.dashboard-builder .screen-resize-icon svg:hover{color:#000}.dashboard-builder .save-dashboard-button{border-radius:5px;padding:5px;cursor:pointer;transition:.3s;width:80px;height:31px;margin-right:20px;margin-left:20px;text-align:center;color:#fff;background:#2f97b9;text-transform:uppercase;line-height:1}.dashboard-builder .save-dashboard-button svg{margin-right:.25rem}.dashboard-builder .settings{width:350px;background:#f3f7f9}.dashboard-builder .settings h4{margin-top:2rem;margin-bottom:.5rem;font-weight:400}.dashboard-builder .settings-wrapper{padding:1rem}.dashboard-builder .settings-input{color:#333;font-size:14px;height:38px}.dashboard-builder .settings-input,.dashboard-builder .settings-textarea{width:100%;border-radius:4px;padding:9px;border:1px solid #ccc;outline:none}.dashboard-builder .settings-textarea{color:gray;font-size:16px;height:50%}.dashboard-builder .settings-select>div{width:100%}.dashboard-builder .settings-chart{padding:0}.dashboard-builder .settings-chart-saved-query{padding:1rem}.dashboard-builder .settings-chart #dashboard-builder-explorer .keen-explorer .panel-main{min-width:0;max-width:330px;box-shadow:none}.dashboard-builder .settings-chart .keen-theme-builder{padding:0}.dashboard-builder .settings-chart .keen-theme-builder .builder__header{display:none}.dashboard-builder .settings-chart .keen-theme-builder .keen-theme-builder__row{padding-left:1rem;padding-right:1rem}.dashboard-builder .settings-chart .keen-theme-builder .accordion__item__content .keen-theme-builder__row{padding:0}.dashboard-builder .settings-chart h4:first-child{margin-top:0}.dashboard-builder .react-tabs__tab{width:50%;padding:10px;text-align:center;cursor:pointer;color:#fff;outline:none;border:0;background:#2f97b9}.dashboard-builder .react-tabs__tab:first-of-type{border-right:none}.dashboard-builder .react-tabs__tab--selected{color:#000;border-bottom:none;background:#fff;border-top:1px solid #eee}.dashboard-builder .react-tabs__tab-list{display:flex;flex-direction:row;list-style:none;justify-content:space-between;padding:0;margin-bottom:0}.dashboard-builder .react-tabs__tab-panel{border:0}.dashboard-builder .react-tabs__tab-panel--selected{padding:10px 20px 20px;border:0;visibility:visible;height:calc(100vh - 40px);overflow-y:auto}.dashboard-builder .react-tabs__tab-panel--selected .keen-theme-builder{padding:0}.dashboard-builder .settings-container{min-width:350px;min-height:100%;background:#fff;border-left:1px solid #eee;position:relative;background:#f3f7f9;overflow:auto}.dashboard-builder .settings-container .color-palette__item .color-picker__popover{left:0;right:auto}.dashboard-builder .settings-container .color-palette__item:nth-child(2n) .color-picker__popover{left:auto;right:0}.dashboard-builder .new-dashboard-button{border-radius:5px;padding:1rem;cursor:pointer;color:#fff;background:#2f97b9;text-align:left;white-space:nowrap;display:flex;align-items:center}.dashboard-builder .new-dashboard-button:hover{color:#fff;background:#2f97b9}.dashboard-builder .new-dashboard-button svg{margin-right:.5rem}.dashboard-builder .container{width:1200px;background:#f5f5f5;min-height:100vh;display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start}.dashboard-builder .top-toolbar{flex:1 100%;padding:20px;display:flex;flex-direction:row;justify-content:space-between;width:100%;border-bottom:1px solid #cfcfcf}.dashboard-builder .message{width:100%;text-align:center;padding:20px}.dashboard-builder .new-chart-info,.dashboard-builder .settings-loading{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;background:hsla(0,0%,98%,.9);border-bottom-left-radius:5px;border-bottom-right-radius:5px}.dashboard-builder .error-message{z-index:1;background:#fff;padding:20px;text-align:center;color:red;border:1px solid red;border-radius:5px}.dashboard-builder .dry-run-message{position:absolute;left:0;bottom:0;padding:1rem;background:hsla(0,0%,44%,.65882);color:#fff;border-radius:0 1rem 0 0}.dashboard-builder .select-palette-button select{margin-right:20px;border-radius:5px;padding:8px;width:100px;height:31px;background:#fff}.dashboard-builder .preview{padding:10px}.dashboard-builder .preview a{color:#000}.dashboard-builder .embed-icon:hover,.dashboard-builder .preview:hover a,.dashboard-builder .share-icon:hover{color:#414141}.dashboard-builder .quill{height:70%}.dashboard-builder .edit-dashboard-button{border-radius:5px;padding:5px 10px;cursor:pointer;width:fit-content;text-align:center;color:#fff;background:#2f97b9;text-decoration:none;flex-shrink:0;margin:0 0 0 .5em}.dashboard-builder .edit-dashboard-button__link{display:block;color:#fff;text-decoration:none}.dashboard-builder .edit-dashboard-button__link:hover{color:#fff;text-decoration:none}.dashboard-builder .big-icon{font-size:50px;color:#eee}.dashboard-builder .loading{font-size:50px;animation:a 1s ease infinite;z-index:13}.dashboard-builder .settings-theme-builder,.dashboard-builder .settings-theme-builder .keen-theme-builder{padding:0}.dashboard-builder .settings-theme-builder .keen-theme-builder .builder__header{display:none}.dashboard-builder .switch-dashboard{width:400px;z-index:10}.dashboard-builder .__react_component_tooltip{padding:3px 5px}.dashboard-builder .keen-theme-builder{background-color:#fff}.dashboard-builder .keen-theme-builder .color-picker__popover{z-index:10}.dashboard-builder .keen-theme-builder .builder__header{display:none}.dashboard-builder .heatmap-container .keen-dataviz-rendering-vertical{height:calc(100% - 50px)}.dashboard-builder .keen-dataviz .rangeable-container{margin:2rem auto;width:75%}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-progress,.dashboard-builder .keen-dataviz .rangeable-container .rangeable-track{height:4px}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-handle{width:16px;height:16px;border-width:4px}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-tooltip{border-radius:0;font-weight:400;padding:3px 9px}.dashboard-builder .c3-circle{fill:currentColor}@media only screen and (max-width:1300px){.dashboard-builder .dashboard{min-height:calc(100vh - 130px)}}@media only screen and (min-width:1800px){.dashboard-builder .toolbar-bar{visibility:hidden}.dashboard-builder .toolbar-container{left:0}.dashboard-builder .dashboard-container{padding-left:90px}}.dashboard-builder .export-icon{cursor:pointer}.dashboard-builder .switcher{margin-bottom:.5rem;display:block;position:relative;overflow:hidden}.dashboard-builder .switcher__input:checked~.switcher__toggle{border-color:#3ed08e;background-color:#dcf9eb}.dashboard-builder .switcher__input:checked~.switcher__toggle .switcher__switch{right:2px;background-color:#3ed08e}.dashboard-builder .switcher__input:checked~.switcher__value .on{display:block}.dashboard-builder .switcher__input:checked~.switcher__value .off{display:none}.dashboard-builder .switcher__toggle{position:relative;width:36px;height:20px;margin-right:.25rem;margin-left:.5rem;border:1px solid #ccc;background-color:#fff;border-radius:10px;display:inline-block}.dashboard-builder .switcher__switch{position:absolute;top:2px;bottom:0;right:18px;width:14px;height:14px;margin:0;background:#ccc;border-radius:50%;flex-shrink:0;transition:right .15s ease-in-out,background-color .15s ease-in-out}.dashboard-builder .switcher__title{font-weight:800}.dashboard-builder .switcher__label{display:flex;align-items:center;cursor:pointer}.dashboard-builder .switcher__input{position:absolute;left:-999px}.dashboard-builder .switcher__value{margin-left:.25rem;color:#b3b5b6}.dashboard-builder .switcher__value .on{display:none}.dashboard-builder .switcher__value .off{display:block}.dashboard-builder .layout.editor .keen-dataviz .c3-chart{pointer-events:none}.dashboard-builder .react-grid-item:hover{z-index:7}.dashboard-builder .react-grid-item:hover .config-buttons{visibility:visible}.dashboard-builder .react-grid-item>.react-resizable-handle{width:16px;height:16px;background-color:transparent;background-image:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0IiB2aWV3Qm94PSI5Mi43MjYzMzE4ODA1ODUzOCA4My45MzgyNjA0OTcxMDkwMSA0NzQuMTIxNzExMjU2OTYxIDQ3NC4xMjM0NzkwMDU3ODIiIHdpZHRoPSI0NzAuMTIiIGhlaWdodD0iNDcwLjEyIj48ZGVmcz48cGF0aCBkPSJNMTg1LjY1IDI0Ny41N0w0MDEuMjEgNDYzLjE0QzM3Ni43OSA0ODcuNTYgMzYzLjIyIDUwMS4xMyAzNjAuNSA1MDMuODVDMzQxLjYgNTIyLjc1IDM1NC45OSA1NTUuMDYgMzgxLjcyIDU1NS4wNkMzOTYuOTMgNTU1LjA2IDUxOC42MyA1NTUuMDYgNTMzLjg1IDU1NS4wNkM1NTAuNDIgNTU1LjA2IDU2My44NSA1NDEuNjMgNTYzLjg1IDUyNS4wNkM1NjMuODUgNTA5Ljg1IDU2My44NSAzODguMTQgNTYzLjg1IDM3Mi45M0M1NjMuODUgMzQ2LjIgNTMxLjUzIDMzMi44MiA1MTIuNjMgMzUxLjcyQzUwOS45MiAzNTQuNDMgNDk2LjM1IDM2OCA0NzEuOTIgMzkyLjQzTDI1Ni4zNiAxNzYuODZDMjgwLjc5IDE1Mi40NCAyOTQuMzYgMTM4Ljg3IDI5Ny4wNyAxMzYuMTVDMzE1Ljk3IDExNy4yNSAzMDIuNTkgODQuOTQgMjc1Ljg2IDg0Ljk0QzI2MC42NSA4NC45NCAxMzguOTQgODQuOTQgMTIzLjczIDg0Ljk0QzEwNy4xNiA4NC45NCA5My43MyA5OC4zNyA5My43MyAxMTQuOTRDOTMuNzMgMTMwLjE1IDkzLjczIDI1MS44NiA5My43MyAyNjcuMDdDOTMuNzMgMjkzLjggMTI2LjA0IDMwNy4xOCAxNDQuOTQgMjg4LjI4QzE1MC4zNyAyODIuODYgMTYzLjk0IDI2OS4yOSAxODUuNjUgMjQ3LjU3WiIgaWQ9ImFYVDAwb2VrQyI+PC9wYXRoPjwvZGVmcz48Zz48Zz48dXNlIHhsaW5rOmhyZWY9IiNhWFQwMG9la0MiIG9wYWNpdHk9IjEiIGZpbGw9IiMwMDAwMDAiIGZpbGwtb3BhY2l0eT0iMSI+PC91c2U+PGc+PHVzZSB4bGluazpocmVmPSIjYVhUMDBvZWtDIiBvcGFjaXR5PSIxIiBmaWxsLW9wYWNpdHk9IjAiIHN0cm9rZT0iIzAwMDAwMCIgc3Ryb2tlLXdpZHRoPSIxIiBzdHJva2Utb3BhY2l0eT0iMCI+PC91c2U+PC9nPjwvZz48L2c+PC9zdmc+");background-size:contain;cursor:nwse-resize;opacity:0;will-change:opacity;transition:opacity .25s ease-out}.dashboard-builder .react-grid-item>.react-resizable-handle:after{content:none}.dashboard-builder .react-grid-item.react-resizable:hover .react-resizable-handle{opacity:1}.dashboard-builder .react-grid-item.react-grid-placeholder{background:#2f97b9}.dashboard-builder .react-grid-item .keen-dataviz{overflow:auto}.dashboard-builder .react-grid-item img{pointer-events:none}.dashboard-builder .react-grid-layout{min-height:230px}@keyframes a{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}', - '' - ]); - }, - function(t, e, n) { - t.exports = { - locale: 'en', - long: n(429), - short: n(430), - narrow: n(431), - quantify: n(432) - }; - }, - function(t) { - t.exports = JSON.parse( - '{"year":{"previous":"last year","current":"this year","next":"next year","past":{"one":"{0} year ago","other":"{0} years ago"},"future":{"one":"in {0} year","other":"in {0} years"}},"quarter":{"previous":"last quarter","current":"this quarter","next":"next quarter","past":{"one":"{0} quarter ago","other":"{0} quarters ago"},"future":{"one":"in {0} quarter","other":"in {0} quarters"}},"month":{"previous":"last month","current":"this month","next":"next month","past":{"one":"{0} month ago","other":"{0} months ago"},"future":{"one":"in {0} month","other":"in {0} months"}},"week":{"previous":"last week","current":"this week","next":"next week","past":{"one":"{0} week ago","other":"{0} weeks ago"},"future":{"one":"in {0} week","other":"in {0} weeks"}},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":{"one":"{0} hour ago","other":"{0} hours ago"},"future":{"one":"in {0} hour","other":"in {0} hours"}},"minute":{"current":"this minute","past":{"one":"{0} minute ago","other":"{0} minutes ago"},"future":{"one":"in {0} minute","other":"in {0} minutes"}},"second":{"current":"now","past":{"one":"{0} second ago","other":"{0} seconds ago"},"future":{"one":"in {0} second","other":"in {0} seconds"}}}' - ); - }, - function(t) { - t.exports = JSON.parse( - '{"year":{"previous":"last yr.","current":"this yr.","next":"next yr.","past":"{0} yr. ago","future":"in {0} yr."},"quarter":{"previous":"last qtr.","current":"this qtr.","next":"next qtr.","past":{"one":"{0} qtr. ago","other":"{0} qtrs. ago"},"future":{"one":"in {0} qtr.","other":"in {0} qtrs."}},"month":{"previous":"last mo.","current":"this mo.","next":"next mo.","past":"{0} mo. ago","future":"in {0} mo."},"week":{"previous":"last wk.","current":"this wk.","next":"next wk.","past":"{0} wk. ago","future":"in {0} wk."},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":"{0} hr. ago","future":"in {0} hr."},"minute":{"current":"this minute","past":"{0} min. ago","future":"in {0} min."},"second":{"current":"now","past":"{0} sec. ago","future":"in {0} sec."}}' - ); - }, - function(t) { - t.exports = JSON.parse( - '{"year":{"previous":"last yr.","current":"this yr.","next":"next yr.","past":"{0} yr. ago","future":"in {0} yr."},"quarter":{"previous":"last qtr.","current":"this qtr.","next":"next qtr.","past":{"one":"{0} qtr. ago","other":"{0} qtrs. ago"},"future":{"one":"in {0} qtr.","other":"in {0} qtrs."}},"month":{"previous":"last mo.","current":"this mo.","next":"next mo.","past":"{0} mo. ago","future":"in {0} mo."},"week":{"previous":"last wk.","current":"this wk.","next":"next wk.","past":"{0} wk. ago","future":"in {0} wk."},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":"{0} hr. ago","future":"in {0} hr."},"minute":{"current":"this minute","past":"{0} min. ago","future":"in {0} min."},"second":{"current":"now","past":"{0} sec. ago","future":"in {0} sec."}}' - ); - }, - function(t, e) { - t.exports = function(t) { - var e = !String(t).split('.')[1]; - return 1 == t && e ? 'one' : 'other'; - }; - }, - function(t) { - t.exports = JSON.parse( - '{"year":"{0} yr.","month":"{0} mo.","week":"{0} wk.","day":{"one":"{0} day","other":"{0} days"},"hour":"{0} hr.","minute":"{0} min.","second":"{0} sec.","now":"now"}' - ); - }, - function(t) { - t.exports = JSON.parse( - '{"year":{"previous":"last yr.","current":"this yr.","next":"next yr.","past":"{0} yr. ago","future":"in {0} yr."},"quarter":{"previous":"last qtr.","current":"this qtr.","next":"next qtr.","past":{"one":"{0} qtr. ago","other":"{0} qtrs. ago"},"future":{"one":"in {0} qtr.","other":"in {0} qtrs."}},"month":{"previous":"last mo.","current":"this mo.","next":"next mo.","past":"{0} mo. ago","future":"in {0} mo."},"week":{"previous":"last wk.","current":"this wk.","next":"next wk.","past":"{0} wk. ago","future":"in {0} wk."},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":"{0} hr. ago","future":"in {0} hr."},"minute":{"current":"this minute","past":"{0} min. ago","future":"in {0} min."},"second":{"current":"now","past":"{0} sec. ago","future":"in {0} sec."},"now":{"future":"in a moment","past":"just now"}}' - ); - }, - function(t) { - t.exports = JSON.parse( - '{"year":{"one":"{0} year","other":"{0} years"},"month":{"one":"{0} month","other":"{0} months"},"week":{"one":"{0} week","other":"{0} weeks"},"day":{"one":"{0} day","other":"{0} days"},"hour":{"one":"{0} hour","other":"{0} hours"},"minute":{"one":"{0} minute","other":"{0} minutes"},"second":{"one":"{0} second","other":"{0} seconds"},"now":{"future":"in a moment","past":"just now"}}' - ); - }, - function(t) { - t.exports = JSON.parse( - '{"year":{"previous":"last year","current":"this year","next":"next year","past":{"one":"a year ago","other":"{0} years ago"},"future":{"one":"in a year","other":"in {0} years"}},"quarter":{"previous":"last quarter","current":"this quarter","next":"next quarter","past":{"one":"a quarter ago","other":"{0} quarters ago"},"future":{"one":"in a quarter","other":"in {0} quarters"}},"month":{"previous":"last month","current":"this month","next":"next month","past":{"one":"a month ago","other":"{0} months ago"},"future":{"one":"in a month","other":"in {0} months"}},"week":{"previous":"last week","current":"this week","next":"next week","past":{"one":"a week ago","other":"{0} weeks ago"},"future":{"one":"in a week","other":"in {0} weeks"}},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"a day ago","other":"{0} days ago"},"future":{"one":"in a day","other":"in {0} days"}},"hour":{"current":"this hour","past":{"one":"an hour ago","other":"{0} hours ago"},"future":{"one":"in an hour","other":"in {0} hours"}},"minute":{"current":"this minute","past":{"one":"a minute ago","other":"{0} minutes ago"},"future":{"one":"in a minute","other":"in {0} minutes"}},"second":{"current":"now","past":{"one":"a second ago","other":"{0} seconds ago"},"future":{"one":"in a second","other":"in {0} seconds"}},"now":{"future":"in a moment","past":"just now"}}' - ); - }, - function(t) { - t.exports = JSON.parse( - '{"year":"{0}yr","month":"{0}mo","week":"{0}wk","day":"{0}d","hour":"{0}h","minute":"{0}m","second":"{0}s","now":"now"}' - ); - }, - function(t, e, n) { - 'use strict'; - n.r(e), - n.d(e, 'keenGlobals', function() { - return Zs; - }), - n.d(e, 'DashboardViewer', function() { - return Js; - }); - var r = n(22), - i = n.n(r), - o = n(11), - a = n.n(o), - s = n(0), - u = n.n(s), - l = n(5), - c = n.n(l); - function f(t, e) { - (t.prototype = Object.create(e.prototype)), - (t.prototype.constructor = t), - (t.__proto__ = e); - } - var d = n(1), - h = n.n(d); - function p() { - return (p = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - function g(t) { - return '/' === t.charAt(0); - } - function v(t, e) { - for (var n = e, r = n + 1, i = t.length; r < i; n += 1, r += 1) - t[n] = t[r]; - t.pop(); - } - var m = function(t, e) { - void 0 === e && (e = ''); - var n, - r = (t && t.split('/')) || [], - i = (e && e.split('/')) || [], - o = t && g(t), - a = e && g(e), - s = o || a; - if ( - (t && g(t) ? (i = r) : r.length && (i.pop(), (i = i.concat(r))), - !i.length) - ) - return '/'; - if (i.length) { - var u = i[i.length - 1]; - n = '.' === u || '..' === u || '' === u; - } else n = !1; - for (var l = 0, c = i.length; c >= 0; c--) { - var f = i[c]; - '.' === f - ? v(i, c) - : '..' === f - ? (v(i, c), l++) - : l && (v(i, c), l--); - } - if (!s) for (; l--; l) i.unshift('..'); - !s || '' === i[0] || (i[0] && g(i[0])) || i.unshift(''); - var d = i.join('/'); - return n && '/' !== d.substr(-1) && (d += '/'), d; - }; - var y = function(t, e) { - if (!t) throw new Error('Invariant failed'); - }; - function b(t) { - return '/' === t.charAt(0) ? t : '/' + t; - } - function x(t) { - return '/' === t.charAt(0) ? t.substr(1) : t; - } - function w(t, e) { - return (function(t, e) { - return ( - 0 === t.toLowerCase().indexOf(e.toLowerCase()) && - -1 !== '/?#'.indexOf(t.charAt(e.length)) - ); - })(t, e) - ? t.substr(e.length) - : t; - } - function S(t) { - return '/' === t.charAt(t.length - 1) ? t.slice(0, -1) : t; - } - function E(t) { - var e = t.pathname, - n = t.search, - r = t.hash, - i = e || '/'; - return ( - n && '?' !== n && (i += '?' === n.charAt(0) ? n : '?' + n), - r && '#' !== r && (i += '#' === r.charAt(0) ? r : '#' + r), - i - ); - } - function k(t, e, n, r) { - var i; - 'string' == typeof t - ? ((i = (function(t) { - var e = t || '/', - n = '', - r = '', - i = e.indexOf('#'); - -1 !== i && ((r = e.substr(i)), (e = e.substr(0, i))); - var o = e.indexOf('?'); - return ( - -1 !== o && ((n = e.substr(o)), (e = e.substr(0, o))), - { - pathname: e, - search: '?' === n ? '' : n, - hash: '#' === r ? '' : r - } - ); - })(t)).state = e) - : (void 0 === (i = p({}, t)).pathname && (i.pathname = ''), - i.search - ? '?' !== i.search.charAt(0) && (i.search = '?' + i.search) - : (i.search = ''), - i.hash - ? '#' !== i.hash.charAt(0) && (i.hash = '#' + i.hash) - : (i.hash = ''), - void 0 !== e && void 0 === i.state && (i.state = e)); - try { - i.pathname = decodeURI(i.pathname); - } catch (t) { - throw t instanceof URIError - ? new URIError( - 'Pathname "' + - i.pathname + - '" could not be decoded. This is likely caused by an invalid percent-encoding.' - ) - : t; - } - return ( - n && (i.key = n), - r - ? i.pathname - ? '/' !== i.pathname.charAt(0) && - (i.pathname = m(i.pathname, r.pathname)) - : (i.pathname = r.pathname) - : i.pathname || (i.pathname = '/'), - i - ); - } - function A() { - var t = null; - var e = []; - return { - setPrompt: function(e) { - return ( - (t = e), - function() { - t === e && (t = null); + return { + result: t, + keyPrefix: e, + func: n, + context: r, + count: 0 + }; + } + function D(t) { + (t.result = null), + (t.keyPrefix = null), + (t.func = null), + (t.context = null), + (t.count = 0), + 10 > L.length && L.push(t); + } + function R(t, e, n) { + return null == t + ? 0 + : (function t(e, n, r, i) { + var s = typeof e; + ('undefined' !== s && 'boolean' !== s) || (e = null); + var u = !1; + if (null === e) u = !0; + else + switch (s) { + case 'string': + case 'number': + u = !0; + break; + case 'object': + switch (e.$$typeof) { + case o: + case a: + u = !0; + } + } + if (u) return r(i, e, '' === n ? '.' + z(e, 0) : n), 1; + if ( + ((u = 0), + (n = '' === n ? '.' : n + ':'), + Array.isArray(e)) + ) + for (var l = 0; l < e.length; l++) { + var c = n + z((s = e[l]), l); + u += t(s, c, r, i); + } + else if ( + 'function' == + typeof (c = + null === e || 'object' != typeof e + ? null + : 'function' == + typeof (c = (v && e[v]) || e['@@iterator']) + ? c + : null) + ) + for (e = c.call(e), l = 0; !(s = e.next()).done; ) + u += t((s = s.value), (c = n + z(s, l++)), r, i); + else + 'object' === s && + y( + '31', + '[object Object]' == (r = '' + e) + ? 'object with keys {' + + Object.keys(e).join(', ') + + '}' + : r, + '' + ); + return u; + })(t, '', e, n); } - ); - }, - confirmTransitionTo: function(e, n, r, i) { - if (null != t) { - var o = 'function' == typeof t ? t(e, n) : t; - 'string' == typeof o - ? 'function' == typeof r - ? r(o, i) - : i(!0) - : i(!1 !== o); - } else i(!0); - }, - appendListener: function(t) { - var n = !0; - function r() { - n && t.apply(void 0, arguments); - } - return ( - e.push(r), - function() { - (n = !1), - (e = e.filter(function(t) { - return t !== r; - })); + function z(t, e) { + return 'object' == typeof t && null !== t && null != t.key + ? (function(t) { + var e = { '=': '=0', ':': '=2' }; + return ( + '$' + + ('' + t).replace(/[=:]/g, function(t) { + return e[t]; + }) + ); + })(t.key) + : e.toString(36); } - ); - }, - notifyListeners: function() { - for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++) - n[r] = arguments[r]; - e.forEach(function(t) { - return t.apply(void 0, n); - }); - } - }; - } - var T = !( - 'undefined' == typeof window || - !window.document || - !window.document.createElement - ); - function C(t, e) { - e(window.confirm(t)); - } - function O() { - try { - return window.history.state || {}; - } catch (t) { - return {}; - } - } - function P(t) { - void 0 === t && {}, T || y(!1); - var e, - n = window.history, - r = - ((-1 === window.navigator.userAgent.indexOf('Android 2.') && - -1 === e.indexOf('Android 4.0')) || - -1 === e.indexOf('Mobile Safari') || - -1 !== e.indexOf('Chrome') || - -1 !== e.indexOf('Windows Phone')) && - window.history && - 'pushState' in window.history, - i = !(-1 === window.navigator.userAgent.indexOf('Trident')), - o = t, - a = o.forceRefresh, - s = void 0 !== a && a, - u = o.getUserConfirmation, - l = void 0 === u ? C : u, - c = o.keyLength, - f = void 0 === c ? 6 : c, - d = t.basename ? S(b(t.basename)) : ''; - function h(t) { - var e = t || {}, - n = e.key, - r = e.state, - i = window.location, - o = i.pathname + i.search + i.hash; - return d && w(o, d), k(o, r, n); - } - function g() { - return Math.random() - .toString(36) - .substr(2, f); - } - var v = A(); - function m(t) { - p(F, t), - (F.length = n.length), - v.notifyListeners(F.location, F.action); - } - function _(t) { - (function(t) { - return ( - void 0 === t.state && -1 === navigator.userAgent.indexOf('CriOS') - ); - })(t) || M(h(t.state)); - } - function x() { - M(h(O())); - } - var P = !1; - function M(t) { - if (P) !1, m(); - else { - v.confirmTransitionTo(t, 'POP', l, function(e) { - e - ? m({ action: 'POP', location: t }) - : (function(t) { - var e = F.location, - n = D.indexOf(e.key); - -1 === n && 0; - var r = D.indexOf(t.key); - -1 === r && 0; - var i = n - r; - i && (!0, R(i)); - })(t); - }); - } - } - var L = h(O()), - D = [L.key]; - function j(t) { - return d + E(t); - } - function R(t) { - n.go(t); - } - var N = 0; - function z(t) { - 1 === (N += t) && 1 === t - ? (window.addEventListener('popstate', _), - i && window.addEventListener('hashchange', x)) - : 0 === N && - (window.removeEventListener('popstate', _), - i && window.removeEventListener('hashchange', x)); - } - var I = !1; - var F = { - length: n.length, - action: 'POP', - location: L, - createHref: j, - push: function(t, e) { - var i = k(t, e, g(), F.location); - v.confirmTransitionTo(i, 'PUSH', l, function(t) { - if (t) { - var e = j(i), - o = i.key, - a = i.state; - if (r) - if ((n.pushState({ key: o, state: a }, null, e), s)) - window.location.href = e; - else { - var u = D.indexOf(F.location.key), - l = D.slice(0, u + 1); - l.push(i.key), l, m({ action: 'PUSH', location: i }); - } - else window.location.href = e; + function N(t, e) { + t.func.call(t.context, e, t.count++); } - }); - }, - replace: function(t, e) { - var i = k(t, e, g(), F.location); - v.confirmTransitionTo(i, 'REPLACE', l, function(t) { - if (t) { - var e = j(i), - o = i.key, - a = i.state; - if (r) - if ((n.replaceState({ key: o, state: a }, null, e), s)) - window.location.replace(e); - else { - var u = D.indexOf(F.location.key); - -1 !== u && (D[u] = i.key), - m({ action: 'REPLACE', location: i }); - } - else window.location.replace(e); + function I(t, e, n) { + var r = t.result, + i = t.keyPrefix; + (t = t.func.call(t.context, e, t.count++)), + Array.isArray(t) + ? F(t, r, n, function(t) { + return t; + }) + : null != t && + (P(t) && + (t = (function(t, e) { + return { + $$typeof: o, + type: t.type, + key: e, + ref: t.ref, + props: t.props, + _owner: t._owner + }; + })( + t, + i + + (!t.key || (e && e.key === t.key) + ? '' + : ('' + t.key).replace(M, '$&/') + '/') + + n + )), + r.push(t)); } - }); - }, - go: R, - goBack: function() { - R(-1); - }, - goForward: function() { - R(1); - }, - block: function(t) { - void 0 === t && !1; - var e = v.setPrompt(t); - return ( - I || (z(1), !0), - function() { - return I && (!1, z(-1)), e(); + function F(t, e, n, r, i) { + var o = ''; + null != n && (o = ('' + n).replace(M, '$&/') + '/'), + R(t, I, (e = j(e, o, r, i))), + D(e); } - ); - }, - listen: function(t) { - var e = v.appendListener(t); - return ( - z(1), - function() { - z(-1), e(); + function V() { + var t = k.current; + return null === t && y('321'), t; } - ); - } - }; - return F; - } - var M = { - hashbang: { - encodePath: function(t) { - return '!' === t.charAt(0) ? t : '!/' + x(t); - }, - decodePath: function(t) { - return '!' === t.charAt(0) ? t.substr(1) : t; - } - }, - noslash: { encodePath: x, decodePath: b }, - slash: { encodePath: b, decodePath: b } - }; - function L(t) { - var e = t.indexOf('#'); - return -1 === e ? t : t.slice(0, e); - } - function D() { - var t = window.location.href, - e = t.indexOf('#'); - return -1 === e ? '' : t.substring(e + 1); - } - function j(t) { - window.location.replace(L(window.location.href) + '#' + t); - } - function R(t) { - void 0 === t && (t = {}), T || y(!1); - var e = window.history, - n = (window.navigator.userAgent.indexOf('Firefox'), t), - r = n.getUserConfirmation, - i = void 0 === r ? C : r, - o = n.hashType, - a = void 0 === o ? 'slash' : o, - s = t.basename ? S(b(t.basename)) : '', - u = M[a], - l = u.encodePath, - c = u.decodePath; - function f() { - var t = c(D()); - return s && (t = w(t, s)), k(t); - } - var d = A(); - function h(t) { - p(F, t), - (F.length = e.length), - d.notifyListeners(F.location, F.action); - } - var g = !1, - v = null; - function m() { - var t, - e, - n = D(), - r = l(n); - if (n !== r) j(r); - else { - var o = f(), - a = F.location; - if ( - !g && - ((e = o), - (t = a).pathname === e.pathname && - t.search === e.search && - t.hash === e.hash) - ) - return; - if (v === E(o)) return; - (v = null), - (function(t) { - if (g) (g = !1), h(); - else { - d.confirmTransitionTo(t, 'POP', i, function(e) { - e - ? h({ action: 'POP', location: t }) - : (function(t) { - var e = F.location, - n = P.lastIndexOf(E(e)); - -1 === n && (n = 0); - var r = P.lastIndexOf(E(t)); - -1 === r && (r = 0); - var i = n - r; - i && ((g = !0), R(i)); - })(t); + var B = { + Children: { + map: function(t, e, n) { + if (null == t) return t; + var r = []; + return F(t, r, null, e, n), r; + }, + forEach: function(t, e, n) { + if (null == t) return t; + R(t, N, (e = j(null, null, e, n))), D(e); + }, + count: function(t) { + return R( + t, + function() { + return null; + }, + null + ); + }, + toArray: function(t) { + var e = []; + return ( + F(t, e, null, function(t) { + return t; + }), + e + ); + }, + only: function(t) { + return P(t) || y('143'), t; + } + }, + createRef: function() { + return { current: null }; + }, + Component: x, + PureComponent: S, + createContext: function(t, e) { + return ( + void 0 === e && (e = null), + ((t = { + $$typeof: f, + _calculateChangedBits: e, + _currentValue: t, + _currentValue2: t, + _threadCount: 0, + Provider: null, + Consumer: null + }).Provider = { $$typeof: c, _context: t }), + (t.Consumer = t) + ); + }, + forwardRef: function(t) { + return { $$typeof: h, render: t }; + }, + lazy: function(t) { + return { + $$typeof: m, + _ctor: t, + _status: -1, + _result: null + }; + }, + memo: function(t, e) { + return { + $$typeof: g, + type: t, + compare: void 0 === e ? null : e + }; + }, + useCallback: function(t, e) { + return V().useCallback(t, e); + }, + useContext: function(t, e) { + return V().useContext(t, e); + }, + useEffect: function(t, e) { + return V().useEffect(t, e); + }, + useImperativeHandle: function(t, e, n) { + return V().useImperativeHandle(t, e, n); + }, + useDebugValue: function() {}, + useLayoutEffect: function(t, e) { + return V().useLayoutEffect(t, e); + }, + useMemo: function(t, e) { + return V().useMemo(t, e); + }, + useReducer: function(t, e, n) { + return V().useReducer(t, e, n); + }, + useRef: function(t) { + return V().useRef(t); + }, + useState: function(t) { + return V().useState(t); + }, + Fragment: s, + StrictMode: u, + Suspense: p, + createElement: O, + cloneElement: function(t, e, n) { + null == t && y('267', t); + var i = void 0, + a = r({}, t.props), + s = t.key, + u = t.ref, + l = t._owner; + if (null != e) { + void 0 !== e.ref && ((u = e.ref), (l = A.current)), + void 0 !== e.key && (s = '' + e.key); + var c = void 0; + for (i in (t.type && + t.type.defaultProps && + (c = t.type.defaultProps), + e)) + T.call(e, i) && + !C.hasOwnProperty(i) && + (a[i] = + void 0 === e[i] && void 0 !== c ? c[i] : e[i]); + } + if (1 == (i = arguments.length - 2)) a.children = n; + else if (1 < i) { + c = Array(i); + for (var f = 0; f < i; f++) c[f] = arguments[f + 2]; + a.children = c; + } + return { + $$typeof: o, + type: t.type, + key: s, + ref: u, + props: a, + _owner: l + }; + }, + createFactory: function(t) { + var e = O.bind(null, t); + return (e.type = t), e; + }, + isValidElement: P, + version: '16.8.5', + unstable_ConcurrentMode: d, + unstable_Profiler: l, + __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { + ReactCurrentDispatcher: k, + ReactCurrentOwner: A, + assign: r + } + }, + G = { default: B }, + H = (G && B) || G; + t.exports = H.default || H; + }, + function(t, e, n) { + 'use strict'; + /* +object-assign +(c) Sindre Sorhus +@license MIT +*/ var r = + Object.getOwnPropertySymbols, + i = Object.prototype.hasOwnProperty, + o = Object.prototype.propertyIsEnumerable; + function a(t) { + if (null == t) + throw new TypeError( + 'Object.assign cannot be called with null or undefined' + ); + return Object(t); + } + t.exports = (function() { + try { + if (!Object.assign) return !1; + var t = new String('abc'); + if (((t[5] = 'de'), '5' === Object.getOwnPropertyNames(t)[0])) + return !1; + for (var e = {}, n = 0; n < 10; n++) + e['_' + String.fromCharCode(n)] = n; + if ( + '0123456789' !== + Object.getOwnPropertyNames(e) + .map(function(t) { + return e[t]; + }) + .join('') + ) + return !1; + var r = {}; + return ( + 'abcdefghijklmnopqrst'.split('').forEach(function(t) { + r[t] = t; + }), + 'abcdefghijklmnopqrst' === + Object.keys(Object.assign({}, r)).join('') + ); + } catch (t) { + return !1; + } + })() + ? Object.assign + : function(t, e) { + for (var n, s, u = a(t), l = 1; l < arguments.length; l++) { + for (var c in (n = Object(arguments[l]))) + i.call(n, c) && (u[c] = n[c]); + if (r) { + s = r(n); + for (var f = 0; f < s.length; f++) + o.call(n, s[f]) && (u[s[f]] = n[s[f]]); + } + } + return u; + }; + }, + function(t, e, n) { + 'use strict'; + var r = n(8); + function i() {} + function o() {} + (o.resetWarningCache = i), + (t.exports = function() { + function t(t, e, n, i, o, a) { + if (a !== r) { + var s = 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 ((s.name = 'Invariant Violation'), s); + } + } + function e() { + return t; + } + t.isRequired = t; + var n = { + array: t, + bool: t, + func: t, + number: t, + object: t, + string: t, + symbol: t, + any: t, + arrayOf: e, + element: t, + elementType: t, + instanceOf: e, + node: t, + objectOf: e, + oneOf: e, + oneOfType: e, + shape: e, + exact: e, + checkPropTypes: o, + resetWarningCache: i + }; + return (n.PropTypes = n), n; + }); + }, + function(t, e, n) { + 'use strict'; + t.exports = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + }, + function(t, e, n) { + /* @license C3.js v0.7.11 | (c) C3 Team and other contributors | http://c3js.org/ */ + t.exports = (function() { + 'use strict'; + function t(e) { + return (t = + 'function' == typeof Symbol && + 'symbol' == typeof Symbol.iterator + ? function(t) { + return typeof t; + } + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t; + })(e); + } + function e(t) { + return ( + (function(t) { + if (Array.isArray(t)) { + for ( + var e = 0, n = new Array(t.length); + e < t.length; + e++ + ) + n[e] = t[e]; + return n; + } + })(t) || + (function(t) { + if ( + Symbol.iterator in Object(t) || + '[object Arguments]' === + Object.prototype.toString.call(t) + ) + return Array.from(t); + })(t) || + (function() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance' + ); + })() + ); + } + function r(t) { + var e = this; + (e.d3 = window.d3 ? window.d3 : n(2)), + (e.api = t), + (e.config = e.getDefaultConfig()), + (e.data = {}), + (e.cache = {}), + (e.axes = {}); + } + function i(t) { + (this.internal = new r(this)), + this.internal.loadConfig(t), + this.internal.beforeInit(t), + this.internal.init(), + this.internal.afterInit(t), + (function t(e, n, r) { + Object.keys(e).forEach(function(i) { + (n[i] = e[i].bind(r)), + Object.keys(e[i]).length > 0 && t(e[i], n[i], r); + }); + })(i.prototype, this, this); + } + var o = function(t) { + return Math.ceil(t) + 0.5; + }, + a = function(t) { + return 10 * Math.ceil(t / 10); + }, + s = function(t) { + return t[1] - t[0]; + }, + u = function(t, e, n) { + return d(t[e]) ? t[e] : n; + }, + l = function(t) { + var e = c(t), + n = [t.pathSegList.getItem(0), t.pathSegList.getItem(1)]; + return { + x: n[0].x, + y: Math.min(n[0].y, n[1].y), + width: e.width, + height: e.height + }; + }, + c = function(t) { + try { + return t.getBBox(); + } catch (t) { + return { x: 0, y: 0, width: 0, height: 0 }; + } + }, + f = function(t) { + return Array.isArray(t); + }, + d = function(t) { + return void 0 !== t; + }, + h = function(e) { + return ( + null == e || + (m(e) && 0 === e.length) || + ('object' === t(e) && 0 === Object.keys(e).length) + ); + }, + p = function(t) { + return 'function' == typeof t; + }, + g = function(t) { + return 'number' == typeof t; + }, + m = function(t) { + return 'string' == typeof t; + }, + v = function(t) { + return void 0 === t; + }, + y = function(t) { + return t || 0 === t; + }, + b = function(t) { + return !h(t); + }, + _ = function(t) { + return 'string' == typeof t + ? t.replace(//g, '>') + : t; + }; + function x(t, e) { + (this.component = t), + (this.params = e || {}), + (this.d3 = t.d3), + (this.scale = this.d3.scaleLinear()), + this.range, + (this.orient = 'bottom'), + (this.innerTickSize = 6), + (this.outerTickSize = this.params.withOuterTick ? 6 : 0), + (this.tickPadding = 3), + (this.tickValues = null), + this.tickFormat, + this.tickArguments, + (this.tickOffset = 0), + (this.tickCulling = !0), + this.tickCentered, + this.tickTextCharSize, + (this.tickTextRotate = this.params.tickTextRotate), + this.tickLength, + (this.axis = this.generateAxis()); + } + (x.prototype.axisX = function(t, e, n) { + t.attr('transform', function(t) { + return 'translate(' + Math.ceil(e(t) + n) + ', 0)'; + }); + }), + (x.prototype.axisY = function(t, e) { + t.attr('transform', function(t) { + return 'translate(0,' + Math.ceil(e(t)) + ')'; + }); + }), + (x.prototype.scaleExtent = function(t) { + var e = t[0], + n = t[t.length - 1]; + return e < n ? [e, n] : [n, e]; + }), + (x.prototype.generateTicks = function(t) { + var e, + n, + r = []; + if (t.ticks) return t.ticks.apply(t, this.tickArguments); + for (n = t.domain(), e = Math.ceil(n[0]); e < n[1]; e++) + r.push(e); + return ( + r.length > 0 && + r[0] > 0 && + r.unshift(r[0] - (r[1] - r[0])), + r + ); + }), + (x.prototype.copyScale = function() { + var t, + e = this.scale.copy(); + return ( + this.params.isCategory && + ((t = this.scale.domain()), e.domain([t[0], t[1] - 1])), + e + ); + }), + (x.prototype.textFormatted = function(t) { + var e = this.tickFormat ? this.tickFormat(t) : t; + return void 0 !== e ? e : ''; + }), + (x.prototype.updateRange = function() { + return ( + (this.range = this.scale.rangeExtent + ? this.scale.rangeExtent() + : this.scaleExtent(this.scale.range())), + this.range + ); + }), + (x.prototype.updateTickTextCharSize = function(t) { + var e = this; + if (e.tickTextCharSize) return e.tickTextCharSize; + var n = { h: 11.5, w: 5.5 }; + return ( + t + .select('text') + .text(function(t) { + return e.textFormatted(t); + }) + .each(function(t) { + var r = c(this), + i = e.textFormatted(t), + o = r.height, + a = i ? r.width / i.length : void 0; + o && a && ((n.h = o), (n.w = a)); + }) + .text(''), + (e.tickTextCharSize = n), + n + ); + }), + (x.prototype.isVertical = function() { + return 'left' === this.orient || 'right' === this.orient; + }), + (x.prototype.tspanData = function(t, e, n) { + var r = this.params.tickMultiline + ? this.splitTickText(t, n) + : [].concat(this.textFormatted(t)); + return ( + this.params.tickMultiline && + this.params.tickMultilineMax > 0 && + (r = this.ellipsify(r, this.params.tickMultilineMax)), + r.map(function(t) { + return { index: e, splitted: t, length: r.length }; + }) + ); + }), + (x.prototype.splitTickText = function(t, e) { + var n, + r, + i, + o = this, + a = o.textFormatted(t), + s = o.params.tickWidth; + return '[object Array]' === + Object.prototype.toString.call(a) + ? a + : ((!s || s <= 0) && + (s = o.isVertical() + ? 95 + : o.params.isCategory + ? Math.ceil(e(1) - e(0)) - 12 + : 110), + (function t(e, a) { + r = void 0; + for (var u = 1; u < a.length; u++) + if ( + (' ' === a.charAt(u) && (r = u), + (n = a.substr(0, u + 1)), + (i = o.tickTextCharSize.w * n.length), + s < i) + ) + return t( + e.concat(a.substr(0, r || u)), + a.slice(r ? r + 1 : u) + ); + return e.concat(a); + })([], a + '')); + }), + (x.prototype.ellipsify = function(t, e) { + if (t.length <= e) return t; + for (var n = t.slice(0, e), r = 3, i = e - 1; i >= 0; i--) { + var o = n[i].length; + if ( + ((n[i] = n[i].substr(0, o - r).padEnd(o, '.')), + (r -= o) <= 0) + ) + break; + } + return n; + }), + (x.prototype.updateTickLength = function() { + this.tickLength = + Math.max(this.innerTickSize, 0) + this.tickPadding; + }), + (x.prototype.lineY2 = function(t) { + var e = + this.scale(t) + (this.tickCentered ? 0 : this.tickOffset); + return this.range[0] < e && e < this.range[1] + ? this.innerTickSize + : 0; + }), + (x.prototype.textY = function() { + var t = this.tickTextRotate; + return t + ? 11.5 - (t / 15) * 2.5 * (t > 0 ? 1 : -1) + : this.tickLength; + }), + (x.prototype.textTransform = function() { + var t = this.tickTextRotate; + return t ? 'rotate(' + t + ')' : ''; + }), + (x.prototype.textTextAnchor = function() { + var t = this.tickTextRotate; + return t ? (t > 0 ? 'start' : 'end') : 'middle'; + }), + (x.prototype.tspanDx = function() { + var t = this.tickTextRotate; + return t ? 8 * Math.sin(Math.PI * (t / 180)) : 0; + }), + (x.prototype.tspanDy = function(t, e) { + var n = this.tickTextCharSize.h; + return ( + 0 === e && + (n = this.isVertical() + ? -( + (t.length - 1) * (this.tickTextCharSize.h / 2) - + 3 + ) + : '.71em'), + n + ); + }), + (x.prototype.generateAxis = function() { + var t = this, + e = t.d3, + n = t.params; + function r(i, o) { + var a; + return ( + i.each(function() { + var i, + s, + u, + l = (r.g = e.select(this)), + c = this.__chart__ || t.scale, + f = (this.__chart__ = t.copyScale()), + d = t.tickValues + ? t.tickValues + : t.generateTicks(f), + h = l.selectAll('.tick').data(d, f), + p = h + .enter() + .insert('g', '.domain') + .attr('class', 'tick') + .style('opacity', 1e-6), + g = h.exit().remove(), + m = h.merge(p); + n.isCategory + ? ((t.tickOffset = Math.ceil((f(1) - f(0)) / 2)), + (s = t.tickCentered ? 0 : t.tickOffset), + (u = t.tickCentered ? t.tickOffset : 0)) + : (t.tickOffset = s = 0), + t.updateRange(), + t.updateTickLength(), + t.updateTickTextCharSize(l.select('.tick')); + var v = m.select('line').merge(p.append('line')), + y = m.select('text').merge(p.append('text')), + b = m + .selectAll('text') + .selectAll('tspan') + .data(function(e, n) { + return t.tspanData(e, n, f); + }), + _ = b + .enter() + .append('tspan') + .merge(b) + .text(function(t) { + return t.splitted; + }); + b.exit().remove(); + var x = l.selectAll('.domain').data([0]), + w = x + .enter() + .append('path') + .merge(x) + .attr('class', 'domain'); + switch (t.orient) { + case 'bottom': + (i = t.axisX), + v + .attr('x1', s) + .attr('x2', s) + .attr('y2', function(e, n) { + return t.lineY2(e, n); + }), + y + .attr('x', 0) + .attr('y', function(e, n) { + return t.textY(e, n); + }) + .attr('transform', function(e, n) { + return t.textTransform(e, n); + }) + .style('text-anchor', function(e, n) { + return t.textTextAnchor(e, n); + }), + _.attr('x', 0) + .attr('dy', function(e, n) { + return t.tspanDy(e, n); + }) + .attr('dx', function(e, n) { + return t.tspanDx(e, n); + }), + w.attr( + 'd', + 'M' + + t.range[0] + + ',' + + t.outerTickSize + + 'V0H' + + t.range[1] + + 'V' + + t.outerTickSize + ); + break; + case 'top': + (i = t.axisX), + v + .attr('x1', s) + .attr('x2', s) + .attr('y2', function(e, n) { + return -1 * t.lineY2(e, n); + }), + y + .attr('x', 0) + .attr('y', function(e, r) { + return ( + -1 * t.textY(e, r) - + (n.isCategory ? 2 : t.tickLength - 2) + ); + }) + .attr('transform', function(e, n) { + return t.textTransform(e, n); + }) + .style('text-anchor', function(e, n) { + return t.textTextAnchor(e, n); + }), + _.attr('x', 0) + .attr('dy', function(e, n) { + return t.tspanDy(e, n); + }) + .attr('dx', function(e, n) { + return t.tspanDx(e, n); + }), + w.attr( + 'd', + 'M' + + t.range[0] + + ',' + + -t.outerTickSize + + 'V0H' + + t.range[1] + + 'V' + + -t.outerTickSize + ); + break; + case 'left': + (i = t.axisY), + v + .attr('x2', -t.innerTickSize) + .attr('y1', u) + .attr('y2', u), + y + .attr('x', -t.tickLength) + .attr('y', t.tickOffset) + .style('text-anchor', 'end'), + _.attr('x', -t.tickLength).attr('dy', function( + e, + n + ) { + return t.tspanDy(e, n); + }), + w.attr( + 'd', + 'M' + + -t.outerTickSize + + ',' + + t.range[0] + + 'H0V' + + t.range[1] + + 'H' + + -t.outerTickSize + ); + break; + case 'right': + (i = t.axisY), + v + .attr('x2', t.innerTickSize) + .attr('y1', u) + .attr('y2', u), + y + .attr('x', t.tickLength) + .attr('y', t.tickOffset) + .style('text-anchor', 'start'), + _.attr('x', t.tickLength).attr('dy', function( + e, + n + ) { + return t.tspanDy(e, n); + }), + w.attr( + 'd', + 'M' + + t.outerTickSize + + ',' + + t.range[0] + + 'H0V' + + t.range[1] + + 'H' + + t.outerTickSize + ); + } + if (f.rangeBand) { + var S = f, + E = S.rangeBand() / 2; + c = f = function(t) { + return S(t) + E; + }; + } else c.rangeBand ? (c = f) : g.call(i, f, t.tickOffset); + p.call(i, c, t.tickOffset), + (a = (o ? m.transition(o) : m) + .style('opacity', 1) + .call(i, f, t.tickOffset)); + }), + a + ); + } + return ( + (r.scale = function(e) { + return arguments.length ? ((t.scale = e), r) : t.scale; + }), + (r.orient = function(e) { + return arguments.length + ? ((t.orient = + e in { top: 1, right: 1, bottom: 1, left: 1 } + ? e + '' + : 'bottom'), + r) + : t.orient; + }), + (r.tickFormat = function(e) { + return arguments.length + ? ((t.tickFormat = e), r) + : t.tickFormat; + }), + (r.tickCentered = function(e) { + return arguments.length + ? ((t.tickCentered = e), r) + : t.tickCentered; + }), + (r.tickOffset = function() { + return t.tickOffset; + }), + (r.tickInterval = function() { + var e; + return (e = n.isCategory + ? 2 * t.tickOffset + : (r.g + .select('path.domain') + .node() + .getTotalLength() - + 2 * t.outerTickSize) / + r.g.selectAll('line').size()) == + 1 / 0 + ? 0 + : e; + }), + (r.ticks = function() { + return arguments.length + ? ((t.tickArguments = arguments), r) + : t.tickArguments; + }), + (r.tickCulling = function(e) { + return arguments.length + ? ((t.tickCulling = e), r) + : t.tickCulling; + }), + (r.tickValues = function(e) { + if ('function' == typeof e) + t.tickValues = function() { + return e(t.scale.domain()); + }; + else { + if (!arguments.length) return t.tickValues; + t.tickValues = e; + } + return r; + }), + r + ); }); - } - })(o); - } - } - var _ = D(), - x = l(_); - _ !== x && j(x); - var O = f(), - P = [E(O)]; - function R(t) { - e.go(t); - } - var N = 0; - function z(t) { - 1 === (N += t) && 1 === t - ? window.addEventListener('hashchange', m) - : 0 === N && window.removeEventListener('hashchange', m); - } - var I = !1; - var F = { - length: e.length, - action: 'POP', - location: O, - createHref: function(t) { - var e = document.querySelector('base'), - n = ''; - return ( - e && e.getAttribute('href') && (n = L(window.location.href)), - n + '#' + l(s + E(t)) - ); - }, - push: function(t, e) { - var n = k(t, void 0, void 0, F.location); - d.confirmTransitionTo(n, 'PUSH', i, function(t) { - if (t) { - var e = E(n), - r = l(s + e); - if (D() !== r) { - (v = e), - (function(t) { - window.location.hash = t; - })(r); - var i = P.lastIndexOf(E(F.location)), - o = P.slice(0, i + 1); - o.push(e), (P = o), h({ action: 'PUSH', location: n }); - } else h(); - } - }); - }, - replace: function(t, e) { - var n = k(t, void 0, void 0, F.location); - d.confirmTransitionTo(n, 'REPLACE', i, function(t) { - if (t) { - var e = E(n), - r = l(s + e); - D() !== r && ((v = e), j(r)); - var i = P.indexOf(E(F.location)); - -1 !== i && (P[i] = e), h({ action: 'REPLACE', location: n }); - } - }); - }, - go: R, - goBack: function() { - R(-1); - }, - goForward: function() { - R(1); - }, - block: function(t) { - void 0 === t && (t = !1); - var e = d.setPrompt(t); - return ( - I || (z(1), (I = !0)), - function() { - return I && ((I = !1), z(-1)), e(); - } - ); - }, - listen: function(t) { - var e = d.appendListener(t); - return ( - z(1), - function() { - z(-1), e(); - } - ); - } - }; - return F; - } - function N(t, e, n) { - return Math.min(Math.max(t, e), n); - } - function z(t) { - void 0 === t && {}; - var e = t, - n = e.getUserConfirmation, - r = e.initialEntries, - i = void 0 === r ? ['/'] : r, - o = e.initialIndex, - a = void 0 === o ? 0 : o, - s = e.keyLength, - u = void 0 === s ? 6 : s, - l = A(); - function c(t) { - p(m, t), - (m.length = m.entries.length), - l.notifyListeners(m.location, m.action); - } - function f() { - return Math.random() - .toString(36) - .substr(2, u); - } - var d = N(a, 0, i.length - 1), - h = i.map(function(t) { - return k(t, void 0, 'string' == typeof t ? f() : t.key || f()); - }), - g = E; - function v(t) { - var e = N(m.index + t, 0, m.entries.length - 1), - r = m.entries[e]; - l.confirmTransitionTo(r, 'POP', n, function(t) { - t ? c({ action: 'POP', location: r, index: e }) : c(); - }); - } - var m = { - length: h.length, - action: 'POP', - location: h[d], - index: d, - entries: h, - createHref: g, - push: function(t, e) { - var r = k(t, e, f(), m.location); - l.confirmTransitionTo(r, 'PUSH', n, function(t) { - if (t) { - var e = m.index + 1, - n = m.entries.slice(0); - n.length > e ? n.splice(e, n.length - e, r) : n.push(r), - c({ action: 'PUSH', location: r, index: e, entries: n }); - } - }); - }, - replace: function(t, e) { - var r = k(t, e, f(), m.location); - l.confirmTransitionTo(r, 'REPLACE', n, function(t) { - t && - ((m.entries[m.index] = r), - c({ action: 'REPLACE', location: r })); - }); - }, - go: v, - goBack: function() { - v(-1); - }, - goForward: function() { - v(1); - }, - canGo: function(t) { - var e = m.index + t; - return e >= 0 && e < m.entries.length; - }, - block: function(t) { - return void 0 === t && !1, l.setPrompt(t); - }, - listen: function(t) { - return l.appendListener(t); - } - }; - return m; - } - var I = n(44), - F = n.n(I), - V = n(152), - B = n.n(V); - function G(t) { - var e = []; - return { - on: function(t) { - e.push(t); - }, - off: function(t) { - e = e.filter(function(e) { - return e !== t; - }); - }, - get: function() { - return t; - }, - set: function(n, r) { - (t = n), - e.forEach(function(e) { - return e(t, r); - }); - } - }; - } - var H = - u.a.createContext || - function(t, e) { - var n, - r, - i = '__create-react-context-' + B()() + '__', - o = (function(t) { - function n() { - var e; - return ( - ((e = t.apply(this, arguments) || this).emitter = G( - e.props.value - )), - e - ); - } - F()(n, t); - var r = n.prototype; - return ( - (r.getChildContext = function() { - var t; - return ((t = {})[i] = this.emitter), t; + var w = { + target: 'c3-target', + chart: 'c3-chart', + chartLine: 'c3-chart-line', + chartLines: 'c3-chart-lines', + chartBar: 'c3-chart-bar', + chartBars: 'c3-chart-bars', + chartText: 'c3-chart-text', + chartTexts: 'c3-chart-texts', + chartArc: 'c3-chart-arc', + chartArcs: 'c3-chart-arcs', + chartArcsTitle: 'c3-chart-arcs-title', + chartArcsBackground: 'c3-chart-arcs-background', + chartArcsGaugeUnit: 'c3-chart-arcs-gauge-unit', + chartArcsGaugeMax: 'c3-chart-arcs-gauge-max', + chartArcsGaugeMin: 'c3-chart-arcs-gauge-min', + selectedCircle: 'c3-selected-circle', + selectedCircles: 'c3-selected-circles', + eventRect: 'c3-event-rect', + eventRects: 'c3-event-rects', + eventRectsSingle: 'c3-event-rects-single', + eventRectsMultiple: 'c3-event-rects-multiple', + zoomRect: 'c3-zoom-rect', + brush: 'c3-brush', + dragZoom: 'c3-drag-zoom', + focused: 'c3-focused', + defocused: 'c3-defocused', + region: 'c3-region', + regions: 'c3-regions', + title: 'c3-title', + tooltipContainer: 'c3-tooltip-container', + tooltip: 'c3-tooltip', + tooltipName: 'c3-tooltip-name', + shape: 'c3-shape', + shapes: 'c3-shapes', + line: 'c3-line', + lines: 'c3-lines', + bar: 'c3-bar', + bars: 'c3-bars', + circle: 'c3-circle', + circles: 'c3-circles', + arc: 'c3-arc', + arcLabelLine: 'c3-arc-label-line', + arcs: 'c3-arcs', + area: 'c3-area', + areas: 'c3-areas', + empty: 'c3-empty', + text: 'c3-text', + texts: 'c3-texts', + gaugeValue: 'c3-gauge-value', + grid: 'c3-grid', + gridLines: 'c3-grid-lines', + xgrid: 'c3-xgrid', + xgrids: 'c3-xgrids', + xgridLine: 'c3-xgrid-line', + xgridLines: 'c3-xgrid-lines', + xgridFocus: 'c3-xgrid-focus', + ygrid: 'c3-ygrid', + ygrids: 'c3-ygrids', + ygridLine: 'c3-ygrid-line', + ygridLines: 'c3-ygrid-lines', + colorScale: 'c3-colorscale', + stanfordElements: 'c3-stanford-elements', + stanfordLine: 'c3-stanford-line', + stanfordLines: 'c3-stanford-lines', + stanfordRegion: 'c3-stanford-region', + stanfordRegions: 'c3-stanford-regions', + stanfordText: 'c3-stanford-text', + stanfordTexts: 'c3-stanford-texts', + axis: 'c3-axis', + axisX: 'c3-axis-x', + axisXLabel: 'c3-axis-x-label', + axisY: 'c3-axis-y', + axisYLabel: 'c3-axis-y-label', + axisY2: 'c3-axis-y2', + axisY2Label: 'c3-axis-y2-label', + legendBackground: 'c3-legend-background', + legendItem: 'c3-legend-item', + legendItemEvent: 'c3-legend-item-event', + legendItemTile: 'c3-legend-item-tile', + legendItemHidden: 'c3-legend-item-hidden', + legendItemFocused: 'c3-legend-item-focused', + dragarea: 'c3-dragarea', + EXPANDED: '_expanded_', + SELECTED: '_selected_', + INCLUDED: '_included_' + }, + S = function t(e) { + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, t), + (this.owner = e), + (this.d3 = e.d3), + (this.internal = x); + }; + (S.prototype.init = function() { + var t = this.owner, + e = t.config, + n = t.main; + (t.axes.x = n + .append('g') + .attr('class', w.axis + ' ' + w.axisX) + .attr('clip-path', e.axis_x_inner ? '' : t.clipPathForXAxis) + .attr('transform', t.getTranslate('x')) + .style('visibility', e.axis_x_show ? 'visible' : 'hidden')), + t.axes.x + .append('text') + .attr('class', w.axisXLabel) + .attr('transform', e.axis_rotated ? 'rotate(-90)' : '') + .style( + 'text-anchor', + this.textAnchorForXAxisLabel.bind(this) + ), + (t.axes.y = n + .append('g') + .attr('class', w.axis + ' ' + w.axisY) + .attr( + 'clip-path', + e.axis_y_inner ? '' : t.clipPathForYAxis + ) + .attr('transform', t.getTranslate('y')) + .style( + 'visibility', + e.axis_y_show ? 'visible' : 'hidden' + )), + t.axes.y + .append('text') + .attr('class', w.axisYLabel) + .attr('transform', e.axis_rotated ? '' : 'rotate(-90)') + .style( + 'text-anchor', + this.textAnchorForYAxisLabel.bind(this) + ), + (t.axes.y2 = n + .append('g') + .attr('class', w.axis + ' ' + w.axisY2) + .attr('transform', t.getTranslate('y2')) + .style( + 'visibility', + e.axis_y2_show ? 'visible' : 'hidden' + )), + t.axes.y2 + .append('text') + .attr('class', w.axisY2Label) + .attr('transform', e.axis_rotated ? '' : 'rotate(-90)') + .style( + 'text-anchor', + this.textAnchorForY2AxisLabel.bind(this) + ); + }), + (S.prototype.getXAxis = function(t, e, n, r, i, o, a) { + var s = this.owner, + u = s.config, + l = { + isCategory: s.isCategorized(), + withOuterTick: i, + tickMultiline: u.axis_x_tick_multiline, + tickMultilineMax: u.axis_x_tick_multiline + ? Number(u.axis_x_tick_multilineMax) + : 0, + tickWidth: u.axis_x_tick_width, + tickTextRotate: a ? 0 : u.axis_x_tick_rotate, + withoutTransition: o + }, + c = new this.internal(this, l).axis.scale(t).orient(e); + return ( + s.isTimeSeries() && + r && + 'function' != typeof r && + (r = r.map(function(t) { + return s.parseDate(t); + })), + c.tickFormat(n).tickValues(r), + s.isCategorized() && + (c.tickCentered(u.axis_x_tick_centered), + h(u.axis_x_tick_culling) && + (u.axis_x_tick_culling = !1)), + c + ); + }), + (S.prototype.updateXAxisTickValues = function(t, e) { + var n, + r = this.owner, + i = r.config; + return ( + (i.axis_x_tick_fit || i.axis_x_tick_count) && + (n = this.generateTickValues( + r.mapTargetsToUniqueXs(t), + i.axis_x_tick_count, + r.isTimeSeries() + )), + e + ? e.tickValues(n) + : (r.xAxis.tickValues(n), r.subXAxis.tickValues(n)), + n + ); + }), + (S.prototype.getYAxis = function(t, e, n, r, i, o, a) { + var s = this.owner, + u = s.config, + l = u['axis_'.concat(t, '_tick_format')]; + !l && + s.isAxisNormalized(t) && + (l = function(t) { + return ''.concat(t, '%'); + }); + var c = new this.internal(this, { + withOuterTick: i, + withoutTransition: o, + tickTextRotate: a ? 0 : u.axis_y_tick_rotate + }).axis + .scale(e) + .orient(n); + return ( + l && c.tickFormat(l), + s.isTimeSeriesY() + ? c.ticks( + u.axis_y_tick_time_type, + u.axis_y_tick_time_interval + ) + : c.tickValues(r), + c + ); + }), + (S.prototype.getId = function(t) { + var e = this.owner.config; + return t in e.data_axes ? e.data_axes[t] : 'y'; + }), + (S.prototype.getXAxisTickFormat = function() { + var t = this.owner, + e = t.config, + n = t.isTimeSeries() + ? t.defaultAxisTimeFormat + : t.isCategorized() + ? t.categoryName + : function(t) { + return t; + }; + return ( + e.axis_x_tick_format && + (p(e.axis_x_tick_format) + ? (n = e.axis_x_tick_format) + : t.isTimeSeries() && + (n = function(n) { + return n + ? t.axisTimeFormat(e.axis_x_tick_format)(n) + : ''; + })), + p(n) + ? function(e) { + return n.call(t, e); + } + : n + ); + }), + (S.prototype.getTickValues = function(t, e) { + return t || (e ? e.tickValues() : void 0); + }), + (S.prototype.getXAxisTickValues = function() { + return this.getTickValues( + this.owner.config.axis_x_tick_values, + this.owner.xAxis + ); + }), + (S.prototype.getYAxisTickValues = function() { + return this.getTickValues( + this.owner.config.axis_y_tick_values, + this.owner.yAxis + ); + }), + (S.prototype.getY2AxisTickValues = function() { + return this.getTickValues( + this.owner.config.axis_y2_tick_values, + this.owner.y2Axis + ); + }), + (S.prototype.getLabelOptionByAxisId = function(t) { + var e, + n = this.owner.config; + return ( + 'y' === t + ? (e = n.axis_y_label) + : 'y2' === t + ? (e = n.axis_y2_label) + : 'x' === t && (e = n.axis_x_label), + e + ); + }), + (S.prototype.getLabelText = function(t) { + var e = this.getLabelOptionByAxisId(t); + return m(e) ? e : e ? e.text : null; + }), + (S.prototype.setLabelText = function(t, e) { + var n = this.owner.config, + r = this.getLabelOptionByAxisId(t); + m(r) + ? 'y' === t + ? (n.axis_y_label = e) + : 'y2' === t + ? (n.axis_y2_label = e) + : 'x' === t && (n.axis_x_label = e) + : r && (r.text = e); + }), + (S.prototype.getLabelPosition = function(e, n) { + var r = this.getLabelOptionByAxisId(e), + i = r && 'object' === t(r) && r.position ? r.position : n; + return { + isInner: i.indexOf('inner') >= 0, + isOuter: i.indexOf('outer') >= 0, + isLeft: i.indexOf('left') >= 0, + isCenter: i.indexOf('center') >= 0, + isRight: i.indexOf('right') >= 0, + isTop: i.indexOf('top') >= 0, + isMiddle: i.indexOf('middle') >= 0, + isBottom: i.indexOf('bottom') >= 0 + }; + }), + (S.prototype.getXAxisLabelPosition = function() { + return this.getLabelPosition( + 'x', + this.owner.config.axis_rotated + ? 'inner-top' + : 'inner-right' + ); }), - (r.componentWillReceiveProps = function(t) { - if (this.props.value !== t.value) { - var n, - r = this.props.value, - i = t.value; - ((o = r) === (a = i) - ? 0 !== o || 1 / o == 1 / a - : o != o && a != a) - ? (n = 0) - : ((n = 'function' == typeof e ? e(r, i) : 1073741823), - 0 !== (n |= 0) && this.emitter.set(t.value, n)); - } - var o, a; + (S.prototype.getYAxisLabelPosition = function() { + return this.getLabelPosition( + 'y', + this.owner.config.axis_rotated + ? 'inner-right' + : 'inner-top' + ); }), - (r.render = function() { - return this.props.children; + (S.prototype.getY2AxisLabelPosition = function() { + return this.getLabelPosition( + 'y2', + this.owner.config.axis_rotated + ? 'inner-right' + : 'inner-top' + ); }), - n - ); - })(s.Component); - o.childContextTypes = (((n = {})[i] = h.a.object.isRequired), n); - var a = (function(e) { - function n() { - var t; - return ( - ((t = e.apply(this, arguments) || this).state = { - value: t.getValue() + (S.prototype.getLabelPositionById = function(t) { + return 'y2' === t + ? this.getY2AxisLabelPosition() + : 'y' === t + ? this.getYAxisLabelPosition() + : this.getXAxisLabelPosition(); }), - (t.onUpdate = function(e, n) { - 0 != ((0 | t.observedBits) & n) && - t.setState({ value: t.getValue() }); + (S.prototype.textForXAxisLabel = function() { + return this.getLabelText('x'); }), - t - ); - } - F()(n, e); - var r = n.prototype; - return ( - (r.componentWillReceiveProps = function(t) { - var e = t.observedBits; - this.observedBits = null == e ? 1073741823 : e; - }), - (r.componentDidMount = function() { - this.context[i] && this.context[i].on(this.onUpdate); - var t = this.props.observedBits; - this.observedBits = null == t ? 1073741823 : t; - }), - (r.componentWillUnmount = function() { - this.context[i] && this.context[i].off(this.onUpdate); - }), - (r.getValue = function() { - return this.context[i] ? this.context[i].get() : t; - }), - (r.render = function() { - return ((t = this.props.children), - Array.isArray(t) ? t[0] : t)(this.state.value); - var t; - }), - n - ); - })(s.Component); - return ( - (a.contextTypes = (((r = {})[i] = h.a.object), r)), - { Provider: o, Consumer: a } - ); - }, - U = n(84), - q = n.n(U), - W = n(58); - function X(t, e) { - if (null == t) return {}; - var n, - r, - i = {}, - o = Object.keys(t); - for (r = 0; r < o.length; r++) - (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); - return i; - } - var Y = n(42), - $ = n.n(Y), - Q = (function(t) { - var e = H(); - return (e.displayName = t), e; - })('Router'), - K = (function(t) { - function e(e) { - var n; - return ( - ((n = t.call(this, e) || this).state = { - location: e.history.location - }), - (n._isMounted = !1), - (n._pendingLocation = null), - e.staticContext || - (n.unlisten = e.history.listen(function(t) { - n._isMounted - ? n.setState({ location: t }) - : (n._pendingLocation = t); - })), - n - ); - } - f(e, t), - (e.computeRootMatch = function(t) { - return { path: '/', url: '/', params: {}, isExact: '/' === t }; - }); - var n = e.prototype; - return ( - (n.componentDidMount = function() { - (this._isMounted = !0), - this._pendingLocation && - this.setState({ location: this._pendingLocation }); - }), - (n.componentWillUnmount = function() { - this.unlisten && this.unlisten(); - }), - (n.render = function() { - return u.a.createElement(Q.Provider, { - children: this.props.children || null, - value: { - history: this.props.history, - location: this.state.location, - match: e.computeRootMatch(this.state.location.pathname), - staticContext: this.props.staticContext - } - }); - }), - e - ); - })(u.a.Component); - u.a.Component; - u.a.Component; - var Z = {}, - J = 0; - function tt(t, e) { - void 0 === e && (e = {}), - ('string' == typeof e || Array.isArray(e)) && (e = { path: e }); - var n = e, - r = n.path, - i = n.exact, - o = void 0 !== i && i, - a = n.strict, - s = void 0 !== a && a, - u = n.sensitive, - l = void 0 !== u && u; - return [].concat(r).reduce(function(e, n) { - if (!n && '' !== n) return null; - if (e) return e; - var r = (function(t, e) { - var n = '' + e.end + e.strict + e.sensitive, - r = Z[n] || (Z[n] = {}); - if (r[t]) return r[t]; - var i = [], - o = { regexp: q()(t, i, e), keys: i }; - return J < 1e4 && ((r[t] = o), J++), o; - })(n, { end: o, strict: s, sensitive: l }), - i = r.regexp, - a = r.keys, - u = i.exec(t); - if (!u) return null; - var c = u[0], - f = u.slice(1), - d = t === c; - return o && !d - ? null - : { - path: n, - url: '/' === n && '' === c ? '/' : c, - isExact: d, - params: a.reduce(function(t, e, n) { - return (t[e.name] = f[n]), t; - }, {}) - }; - }, null); - } - var et = (function(t) { - function e() { - return t.apply(this, arguments) || this; - } - return ( - f(e, t), - (e.prototype.render = function() { - var t = this; - return u.a.createElement(Q.Consumer, null, function(e) { - e || y(!1); - var n = t.props.location || e.location, - r = p({}, e, { - location: n, - match: t.props.computedMatch - ? t.props.computedMatch - : t.props.path - ? tt(n.pathname, t.props) - : e.match - }), - i = t.props, - o = i.children, - a = i.component, - s = i.render; - return ( - Array.isArray(o) && 0 === o.length && (o = null), - u.a.createElement( - Q.Provider, - { value: r }, - r.match - ? o - ? 'function' == typeof o - ? o(r) - : o - : a - ? u.a.createElement(a, r) - : s - ? s(r) - : null - : 'function' == typeof o - ? o(r) - : null - ) - ); - }); - }), - e - ); - })(u.a.Component); - function nt(t) { - return '/' === t.charAt(0) ? t : '/' + t; - } - function rt(t, e) { - if (!t) return e; - var n = nt(t); - return 0 !== e.pathname.indexOf(n) - ? e - : p({}, e, { pathname: e.pathname.substr(n.length) }); - } - function it(t) { - return 'string' == typeof t ? t : E(t); - } - function ot(t) { - return function() { - y(!1); - }; - } - function at() {} - u.a.Component; - u.a.Component; - function st(t) { - var e = 'withRouter(' + (t.displayName || t.name) + ')', - n = function(e) { - var n = e.wrappedComponentRef, - r = X(e, ['wrappedComponentRef']); - return u.a.createElement(Q.Consumer, null, function(e) { - return e || y(!1), u.a.createElement(t, p({}, r, e, { ref: n })); - }); - }; - return (n.displayName = e), (n.WrappedComponent = t), $()(n, t); - } - u.a.useContext; - u.a.Component; - var ut = (function(t) { - function e() { - for (var e, n = arguments.length, r = new Array(n), i = 0; i < n; i++) - r[i] = arguments[i]; - return ( - ((e = t.call.apply(t, [this].concat(r)) || this).history = R( - e.props - )), - e - ); - } - return ( - f(e, t), - (e.prototype.render = function() { - return u.a.createElement(K, { - history: this.history, - children: this.props.children - }); - }), - e - ); - })(u.a.Component); - var lt = function(t, e) { - return 'function' == typeof t ? t(e) : t; - }, - ct = function(t, e) { - return 'string' == typeof t ? k(t, null, null, e) : t; - }, - ft = function(t) { - return t; - }, - dt = u.a.forwardRef; - void 0 === dt && (dt = ft); - var ht = dt(function(t, e) { - var n = t.innerRef, - r = t.navigate, - i = t.onClick, - o = X(t, ['innerRef', 'navigate', 'onClick']), - a = o.target, - s = p({}, o, { - onClick: function(t) { - try { - i && i(t); - } catch (e) { - throw (t.preventDefault(), e); - } - t.defaultPrevented || - 0 !== t.button || - (a && '_self' !== a) || - (function(t) { - return !!(t.metaKey || t.altKey || t.ctrlKey || t.shiftKey); - })(t) || - (t.preventDefault(), r()); - } - }); - return (s.ref = (ft !== dt && e) || n), u.a.createElement('a', s); - }); - var pt = dt(function(t, e) { - var n = t.component, - r = void 0 === n ? ht : n, - i = t.replace, - o = t.to, - a = t.innerRef, - s = X(t, ['component', 'replace', 'to', 'innerRef']); - return u.a.createElement(Q.Consumer, null, function(t) { - t || y(!1); - var n = t.history, - l = ct(lt(o, t.location), t.location), - c = l ? n.createHref(l) : '', - f = p({}, s, { - href: c, - navigate: function() { - var e = lt(o, t.location); - (i ? n.replace : n.push)(e); - } - }); - return ( - ft !== dt ? (f.ref = e || a) : (f.innerRef = a), - u.a.createElement(r, f) - ); - }); - }), - gt = function(t) { - return t; - }, - vt = u.a.forwardRef; - void 0 === vt && (vt = gt); - vt(function(t, e) { - var n = t['aria-current'], - r = void 0 === n ? 'page' : n, - i = t.activeClassName, - o = void 0 === i ? 'active' : i, - a = t.activeStyle, - s = t.className, - l = t.exact, - c = t.isActive, - f = t.location, - d = t.strict, - h = t.style, - g = t.to, - v = t.innerRef, - m = X(t, [ - 'aria-current', - 'activeClassName', - 'activeStyle', - 'className', - 'exact', - 'isActive', - 'location', - 'strict', - 'style', - 'to', - 'innerRef' - ]); - return u.a.createElement(Q.Consumer, null, function(t) { - t || y(!1); - var n = f || t.location, - i = ct(lt(g, n), n), - b = i.pathname, - _ = b && b.replace(/([.+*?=^!:${}()[\]|/\\])/g, '\\$1'), - x = _ ? tt(n.pathname, { path: _, exact: l, strict: d }) : null, - w = !!(c ? c(x, n) : x), - S = w - ? (function() { - for ( - var t = arguments.length, e = new Array(t), n = 0; - n < t; - n++ - ) - e[n] = arguments[n]; - return e - .filter(function(t) { - return t; - }) - .join(' '); - })(s, o) - : s, - E = w ? p({}, h, {}, a) : h, - k = p( - { - 'aria-current': (w && r) || null, - className: S, - style: E, - to: i - }, - m - ); - return ( - gt !== vt ? (k.ref = e || v) : (k.innerRef = v), - u.a.createElement(pt, k) - ); - }); - }); - var mt = n(83), - yt = function() { - return Math.random() - .toString(36) - .substring(7) - .split('') - .join('.'); - }, - bt = { - INIT: '@@redux/INIT' + yt(), - REPLACE: '@@redux/REPLACE' + yt(), - PROBE_UNKNOWN_ACTION: function() { - return '@@redux/PROBE_UNKNOWN_ACTION' + yt(); - } - }; - function _t(t) { - if ('object' != typeof t || null === t) return !1; - for (var e = t; null !== Object.getPrototypeOf(e); ) - e = Object.getPrototypeOf(e); - return Object.getPrototypeOf(t) === e; - } - function xt(t, e, n) { - var r; - if ( - ('function' == typeof e && 'function' == typeof n) || - ('function' == typeof n && 'function' == typeof arguments[3]) - ) - throw new Error( - 'It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.' - ); - if ( - ('function' == typeof e && void 0 === n && ((n = e), (e = void 0)), - void 0 !== n) - ) { - if ('function' != typeof n) - throw new Error('Expected the enhancer to be a function.'); - return n(xt)(t, e); - } - if ('function' != typeof t) - throw new Error('Expected the reducer to be a function.'); - var i = t, - o = e, - a = [], - s = a, - u = !1; - function l() { - s === a && (s = a.slice()); - } - function c() { - if (u) - throw new Error( - 'You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.' - ); - return o; - } - function f(t) { - if ('function' != typeof t) - throw new Error('Expected the listener to be a function.'); - if (u) - throw new Error( - 'You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.' - ); - var e = !0; - return ( - l(), - s.push(t), - function() { - if (e) { - if (u) - throw new Error( - 'You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.' + (S.prototype.textForYAxisLabel = function() { + return this.getLabelText('y'); + }), + (S.prototype.textForY2AxisLabel = function() { + return this.getLabelText('y2'); + }), + (S.prototype.xForAxisLabel = function(t, e) { + var n = this.owner; + return t + ? e.isLeft + ? 0 + : e.isCenter + ? n.width / 2 + : n.width + : e.isBottom + ? -n.height + : e.isMiddle + ? -n.height / 2 + : 0; + }), + (S.prototype.dxForAxisLabel = function(t, e) { + return t + ? e.isLeft + ? '0.5em' + : e.isRight + ? '-0.5em' + : '0' + : e.isTop + ? '-0.5em' + : e.isBottom + ? '0.5em' + : '0'; + }), + (S.prototype.textAnchorForAxisLabel = function(t, e) { + return t + ? e.isLeft + ? 'start' + : e.isCenter + ? 'middle' + : 'end' + : e.isBottom + ? 'start' + : e.isMiddle + ? 'middle' + : 'end'; + }), + (S.prototype.xForXAxisLabel = function() { + return this.xForAxisLabel( + !this.owner.config.axis_rotated, + this.getXAxisLabelPosition() + ); + }), + (S.prototype.xForYAxisLabel = function() { + return this.xForAxisLabel( + this.owner.config.axis_rotated, + this.getYAxisLabelPosition() + ); + }), + (S.prototype.xForY2AxisLabel = function() { + return this.xForAxisLabel( + this.owner.config.axis_rotated, + this.getY2AxisLabelPosition() + ); + }), + (S.prototype.dxForXAxisLabel = function() { + return this.dxForAxisLabel( + !this.owner.config.axis_rotated, + this.getXAxisLabelPosition() + ); + }), + (S.prototype.dxForYAxisLabel = function() { + return this.dxForAxisLabel( + this.owner.config.axis_rotated, + this.getYAxisLabelPosition() + ); + }), + (S.prototype.dxForY2AxisLabel = function() { + return this.dxForAxisLabel( + this.owner.config.axis_rotated, + this.getY2AxisLabelPosition() + ); + }), + (S.prototype.dyForXAxisLabel = function() { + var t = this.owner, + e = t.config, + n = this.getXAxisLabelPosition(); + return e.axis_rotated + ? n.isInner + ? '1.2em' + : -25 - + (t.config.axis_x_inner + ? 0 + : this.getMaxTickWidth('x')) + : n.isInner + ? '-0.5em' + : t.getHorizontalAxisHeight('x') - 10; + }), + (S.prototype.dyForYAxisLabel = function() { + var t = this.owner, + e = this.getYAxisLabelPosition(); + return t.config.axis_rotated + ? e.isInner + ? '-0.5em' + : '3em' + : e.isInner + ? '1.2em' + : -10 - + (t.config.axis_y_inner + ? 0 + : this.getMaxTickWidth('y') + 10); + }), + (S.prototype.dyForY2AxisLabel = function() { + var t = this.owner, + e = this.getY2AxisLabelPosition(); + return t.config.axis_rotated + ? e.isInner + ? '1.2em' + : '-2.2em' + : e.isInner + ? '-0.5em' + : 15 + + (t.config.axis_y2_inner + ? 0 + : this.getMaxTickWidth('y2') + 15); + }), + (S.prototype.textAnchorForXAxisLabel = function() { + var t = this.owner; + return this.textAnchorForAxisLabel( + !t.config.axis_rotated, + this.getXAxisLabelPosition() + ); + }), + (S.prototype.textAnchorForYAxisLabel = function() { + var t = this.owner; + return this.textAnchorForAxisLabel( + t.config.axis_rotated, + this.getYAxisLabelPosition() + ); + }), + (S.prototype.textAnchorForY2AxisLabel = function() { + var t = this.owner; + return this.textAnchorForAxisLabel( + t.config.axis_rotated, + this.getY2AxisLabelPosition() + ); + }), + (S.prototype.getMaxTickWidth = function(t, e) { + var n, + r, + i, + o, + a = this.owner, + s = 0; + return e && a.currentMaxTickWidths[t] + ? a.currentMaxTickWidths[t] + : (a.svg && + ((n = a.filterTargetsToShow(a.data.targets)), + 'y' === t + ? ((r = a.y.copy().domain(a.getYDomain(n, 'y'))), + (i = this.getYAxis( + t, + r, + a.yOrient, + a.yAxisTickValues, + !1, + !0, + !0 + ))) + : 'y2' === t + ? ((r = a.y2.copy().domain(a.getYDomain(n, 'y2'))), + (i = this.getYAxis( + t, + r, + a.y2Orient, + a.y2AxisTickValues, + !1, + !0, + !0 + ))) + : ((r = a.x.copy().domain(a.getXDomain(n))), + (i = this.getXAxis( + r, + a.xOrient, + a.xAxisTickFormat, + a.xAxisTickValues, + !1, + !0, + !0 + )), + this.updateXAxisTickValues(n, i)), + (o = a.d3 + .select('body') + .append('div') + .classed('c3', !0)) + .append('svg') + .style('visibility', 'hidden') + .style('position', 'fixed') + .style('top', 0) + .style('left', 0) + .append('g') + .call(i) + .each(function() { + a.d3 + .select(this) + .selectAll('text') + .each(function() { + var t = c(this); + s < t.width && (s = t.width); + }), + o.remove(); + })), + (a.currentMaxTickWidths[t] = + s <= 0 ? a.currentMaxTickWidths[t] : s), + a.currentMaxTickWidths[t]); + }), + (S.prototype.updateLabels = function(t) { + var e = this.owner, + n = e.main.select('.' + w.axisX + ' .' + w.axisXLabel), + r = e.main.select('.' + w.axisY + ' .' + w.axisYLabel), + i = e.main.select('.' + w.axisY2 + ' .' + w.axisY2Label); + (t ? n.transition() : n) + .attr('x', this.xForXAxisLabel.bind(this)) + .attr('dx', this.dxForXAxisLabel.bind(this)) + .attr('dy', this.dyForXAxisLabel.bind(this)) + .text(this.textForXAxisLabel.bind(this)), + (t ? r.transition() : r) + .attr('x', this.xForYAxisLabel.bind(this)) + .attr('dx', this.dxForYAxisLabel.bind(this)) + .attr('dy', this.dyForYAxisLabel.bind(this)) + .text(this.textForYAxisLabel.bind(this)), + (t ? i.transition() : i) + .attr('x', this.xForY2AxisLabel.bind(this)) + .attr('dx', this.dxForY2AxisLabel.bind(this)) + .attr('dy', this.dyForY2AxisLabel.bind(this)) + .text(this.textForY2AxisLabel.bind(this)); + }), + (S.prototype.getPadding = function(t, e, n, r) { + var i = 'number' == typeof t ? t : t[e]; + return y(i) + ? 'ratio' === t.unit + ? t[e] * r + : this.convertPixelsToAxisPadding(i, r) + : n; + }), + (S.prototype.convertPixelsToAxisPadding = function(t, e) { + var n = this.owner; + return ( + e * (t / (n.config.axis_rotated ? n.width : n.height)) + ); + }), + (S.prototype.generateTickValues = function(t, e, n) { + var r, + i, + o, + a, + s, + u, + l, + c = t; + if (e) + if (1 === (r = p(e) ? e() : e)) c = [t[0]]; + else if (2 === r) c = [t[0], t[t.length - 1]]; + else if (r > 2) { + for ( + a = r - 2, + i = t[0], + s = ((o = t[t.length - 1]) - i) / (a + 1), + c = [i], + u = 0; + u < a; + u++ + ) + (l = +i + s * (u + 1)), c.push(n ? new Date(l) : l); + c.push(o); + } + return ( + n || + (c = c.sort(function(t, e) { + return t - e; + })), + c + ); + }), + (S.prototype.generateTransitions = function(t) { + var e = this.owner.axes; + return { + axisX: t ? e.x.transition().duration(t) : e.x, + axisY: t ? e.y.transition().duration(t) : e.y, + axisY2: t ? e.y2.transition().duration(t) : e.y2, + axisSubX: t ? e.subx.transition().duration(t) : e.subx + }; + }), + (S.prototype.redraw = function(t, e) { + var n = this.owner, + r = t ? n.d3.transition().duration(t) : null; + n.axes.x.style('opacity', e ? 0 : 1).call(n.xAxis, r), + n.axes.y.style('opacity', e ? 0 : 1).call(n.yAxis, r), + n.axes.y2.style('opacity', e ? 0 : 1).call(n.y2Axis, r), + n.axes.subx + .style('opacity', e ? 0 : 1) + .call(n.subXAxis, r); + }); + var E = { + version: '0.7.11', + chart: { + fn: i.prototype, + internal: { + fn: r.prototype, + axis: { fn: S.prototype, internal: { fn: x.prototype } } + } + }, + generate: function(t) { + return new i(t); + } + }; + function k(t, e, n) { + var r = [0.01, 10]; + function i(t) { + return n(e(t)); + } + return ( + e || (e = t.scaleLinear()).range(r), + n || ((n = t.scaleLog()).domain(r), n.nice()), + (i.domain = function(t) { + return arguments.length ? (e.domain(t), i) : e.domain(); + }), + (i.range = function(t) { + return arguments.length ? (n.range(t), i) : n.range(); + }), + (i.ticks = function(t) { + return (function(t, e, n) { + var r, i, o, a; + if (arguments.length < 3) n = 10; + else if (0 === n) return []; + (a = (e - t) / (i = n - 1)), + (o = t), + ((r = new Array(n))[0] = Math.pow(10, o)); + for (var s = 1; s < i; s++) + (o += a), (r[s] = Math.pow(10, o)); + return (r[i] = Math.pow(10, e)), r; + })(-2, 1, t || 10).map(function(t) { + return e.invert(t); + }); + }), + (i.copy = function() { + return k(t, e.copy(), n.copy()); + }), + i ); - (e = !1), l(); - var n = s.indexOf(t); - s.splice(n, 1), (a = null); - } - } - ); - } - function d(t) { - if (!_t(t)) - throw new Error( - 'Actions must be plain objects. Use custom middleware for async actions.' - ); - if (void 0 === t.type) - throw new Error( - 'Actions may not have an undefined "type" property. Have you misspelled a constant?' - ); - if (u) throw new Error('Reducers may not dispatch actions.'); - try { - (u = !0), (o = i(o, t)); - } finally { - u = !1; - } - for (var e = (a = s), n = 0; n < e.length; n++) { - (0, e[n])(); - } - return t; - } - function h(t) { - if ('function' != typeof t) - throw new Error('Expected the nextReducer to be a function.'); - (i = t), d({ type: bt.REPLACE }); - } - function p() { - var t, - e = f; - return ( - ((t = { - subscribe: function(t) { - if ('object' != typeof t || null === t) - throw new TypeError('Expected the observer to be an object.'); - function n() { - t.next && t.next(c()); - } - return n(), { unsubscribe: e(n) }; - } - })[mt.a] = function() { - return this; - }), - t - ); - } - return ( - d({ type: bt.INIT }), - ((r = { dispatch: d, subscribe: f, getState: c, replaceReducer: h })[ - mt.a - ] = p), - r - ); - } - function wt(t, e) { - var n = e && e.type; - return ( - 'Given ' + - ((n && 'action "' + String(n) + '"') || 'an action') + - ', reducer "' + - t + - '" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.' - ); - } - function St(t, e) { - return function() { - return e(t.apply(this, arguments)); - }; - } - function Et(t, e, n) { - return ( - e in t - ? Object.defineProperty(t, e, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (t[e] = n), - t - ); - } - function kt(t, e) { - var n = Object.keys(t); - return ( - Object.getOwnPropertySymbols && - n.push.apply(n, Object.getOwnPropertySymbols(t)), - e && - (n = n.filter(function(e) { - return Object.getOwnPropertyDescriptor(t, e).enumerable; - })), - n - ); - } - function At(t) { - for (var e = 1; e < arguments.length; e++) { - var n = null != arguments[e] ? arguments[e] : {}; - e % 2 - ? kt(n, !0).forEach(function(e) { - Et(t, e, n[e]); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) - : kt(n).forEach(function(e) { - Object.defineProperty( - t, - e, - Object.getOwnPropertyDescriptor(n, e) - ); - }); - } - return t; - } - function Tt() { - for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++) - e[n] = arguments[n]; - return 0 === e.length - ? function(t) { - return t; - } - : 1 === e.length - ? e[0] - : e.reduce(function(t, e) { - return function() { - return t(e.apply(void 0, arguments)); - }; - }); - } - var Ct = u.a.createContext(null); - var Ot = function(t) { - t(); - }, - Pt = { notify: function() {} }; - function Mt() { - var t = Ot, - e = null, - n = null; - return { - clear: function() { - (e = null), (n = null); - }, - notify: function() { - t(function() { - for (var t = e; t; ) t.callback(), (t = t.next); - }); - }, - get: function() { - for (var t = [], n = e; n; ) t.push(n), (n = n.next); - return t; - }, - subscribe: function(t) { - var r = !0, - i = (n = { callback: t, next: null, prev: n }); - return ( - i.prev ? (i.prev.next = i) : (e = i), - function() { - r && - null !== e && - ((r = !1), - i.next ? (i.next.prev = i.prev) : (n = i.prev), - i.prev ? (i.prev.next = i.next) : (e = i.next)); - } - ); - } - }; - } - var Lt = (function() { - function t(t, e) { - (this.store = t), - (this.parentSub = e), - (this.unsubscribe = null), - (this.listeners = Pt), - (this.handleChangeWrapper = this.handleChangeWrapper.bind(this)); - } - var e = t.prototype; - return ( - (e.addNestedSub = function(t) { - return this.trySubscribe(), this.listeners.subscribe(t); - }), - (e.notifyNestedSubs = function() { - this.listeners.notify(); - }), - (e.handleChangeWrapper = function() { - this.onStateChange && this.onStateChange(); - }), - (e.isSubscribed = function() { - return Boolean(this.unsubscribe); - }), - (e.trySubscribe = function() { - this.unsubscribe || - ((this.unsubscribe = this.parentSub - ? this.parentSub.addNestedSub(this.handleChangeWrapper) - : this.store.subscribe(this.handleChangeWrapper)), - (this.listeners = Mt())); - }), - (e.tryUnsubscribe = function() { - this.unsubscribe && - (this.unsubscribe(), - (this.unsubscribe = null), - this.listeners.clear(), - (this.listeners = Pt)); - }), - t - ); - })(); - var Dt = function(t) { - var e = t.store, - n = t.context, - r = t.children, - i = Object(s.useMemo)( - function() { - var t = new Lt(e); - return ( - (t.onStateChange = t.notifyNestedSubs), - { store: e, subscription: t } - ); - }, - [e] - ), - o = Object(s.useMemo)( - function() { - return e.getState(); - }, - [e] - ); - Object(s.useEffect)( - function() { - var t = i.subscription; - return ( - t.trySubscribe(), - o !== e.getState() && t.notifyNestedSubs(), - function() { - t.tryUnsubscribe(), (t.onStateChange = null); - } - ); - }, - [i, o] - ); - var a = n || Ct; - return u.a.createElement(a.Provider, { value: i }, r); - }, - jt = - 'undefined' != typeof window && - void 0 !== window.document && - void 0 !== window.document.createElement - ? s.useLayoutEffect - : s.useEffect, - Rt = [], - Nt = [null, null]; - function zt(t, e) { - var n = t[1]; - return [e.payload, n + 1]; - } - function It(t, e, n) { - jt(function() { - return t.apply(void 0, e); - }, n); - } - function Ft(t, e, n, r, i, o, a) { - (t.current = r), - (e.current = i), - (n.current = !1), - o.current && ((o.current = null), a()); - } - function Vt(t, e, n, r, i, o, a, s, u, l) { - if (t) { - var c = !1, - f = null, - d = function() { - if (!c) { - var t, - n, - d = e.getState(); - try { - t = r(d, i.current); - } catch (t) { - (n = t), (f = t); } - n || (f = null), - t === o.current - ? a.current || u() - : ((o.current = t), - (s.current = t), - (a.current = !0), - l({ type: 'STORE_UPDATED', payload: { error: n } })); - } - }; - (n.onStateChange = d), n.trySubscribe(), d(); - return function() { - if (((c = !0), n.tryUnsubscribe(), (n.onStateChange = null), f)) - throw f; - }; - } - } - var Bt = function() { - return [null, 0]; - }; - function Gt(t, e) { - void 0 === e && (e = {}); - var n = e, - r = n.getDisplayName, - i = - void 0 === r - ? function(t) { - return 'ConnectAdvanced(' + t + ')'; + function A(t) { + return ( + t / + Math.pow( + 10, + Math.ceil(Math.log(t) / Math.LN10 - 1e-12) + ) == + 1 + ); } - : r, - o = n.methodName, - a = void 0 === o ? 'connectAdvanced' : o, - l = n.renderCountProp, - c = void 0 === l ? void 0 : l, - f = n.shouldHandleStateChanges, - d = void 0 === f || f, - h = n.storeKey, - g = void 0 === h ? 'store' : h, - v = (n.withRef, n.forwardRef), - m = void 0 !== v && v, - y = n.context, - b = void 0 === y ? Ct : y, - _ = X(n, [ - 'getDisplayName', - 'methodName', - 'renderCountProp', - 'shouldHandleStateChanges', - 'storeKey', - 'withRef', - 'forwardRef', - 'context' - ]), - x = b; - return function(e) { - var n = e.displayName || e.name || 'Component', - r = i(n), - o = p({}, _, { - getDisplayName: i, - methodName: a, - renderCountProp: c, - shouldHandleStateChanges: d, - storeKey: g, - displayName: r, - wrappedComponentName: n, - WrappedComponent: e - }), - l = _.pure; - var f = l - ? s.useMemo - : function(t) { - return t(); - }; - function h(n) { - var r = Object(s.useMemo)( - function() { - var t = n.forwardedRef, - e = X(n, ['forwardedRef']); - return [n.context, t, e]; - }, - [n] - ), - i = r[0], - a = r[1], - l = r[2], - c = Object(s.useMemo)( - function() { - return i && - i.Consumer && - Object(W.isContextConsumer)( - u.a.createElement(i.Consumer, null) + (r.prototype.beforeInit = function() {}), + (r.prototype.afterInit = function() {}), + (r.prototype.init = function() { + var t = this, + e = t.config; + if ((t.initParams(), e.data_url)) + t.convertUrlToData( + e.data_url, + e.data_mimeType, + e.data_headers, + e.data_keys, + t.initWithData + ); + else if (e.data_json) + t.initWithData( + t.convertJsonToData(e.data_json, e.data_keys) + ); + else if (e.data_rows) + t.initWithData(t.convertRowsToData(e.data_rows)); + else { + if (!e.data_columns) + throw Error( + 'url or json or rows or columns is required.' + ); + t.initWithData(t.convertColumnsToData(e.data_columns)); + } + }), + (r.prototype.initParams = function() { + var t = this, + e = t.d3, + n = t.config; + (t.clipId = 'c3-' + +new Date() + '-clip'), + (t.clipIdForXAxis = t.clipId + '-xaxis'), + (t.clipIdForYAxis = t.clipId + '-yaxis'), + (t.clipIdForGrid = t.clipId + '-grid'), + (t.clipIdForSubchart = t.clipId + '-subchart'), + (t.clipPath = t.getClipPath(t.clipId)), + (t.clipPathForXAxis = t.getClipPath(t.clipIdForXAxis)), + (t.clipPathForYAxis = t.getClipPath(t.clipIdForYAxis)), + (t.clipPathForGrid = t.getClipPath(t.clipIdForGrid)), + (t.clipPathForSubchart = t.getClipPath( + t.clipIdForSubchart + )), + (t.dragStart = null), + (t.dragging = !1), + (t.flowing = !1), + (t.cancelClick = !1), + (t.mouseover = void 0), + (t.transiting = !1), + (t.color = t.generateColor()), + (t.levelColor = t.generateLevelColor()), + (t.dataTimeParse = (n.data_xLocaltime + ? e.timeParse + : e.utcParse)(t.config.data_xFormat)), + (t.axisTimeFormat = n.axis_x_localtime + ? e.timeFormat + : e.utcFormat), + (t.defaultAxisTimeFormat = function(t) { + return t.getMilliseconds() + ? e.timeFormat('.%L')(t) + : t.getSeconds() + ? e.timeFormat(':%S')(t) + : t.getMinutes() + ? e.timeFormat('%I:%M')(t) + : t.getHours() + ? e.timeFormat('%I %p')(t) + : t.getDay() && 1 !== t.getDate() + ? e.timeFormat('%-m/%-d')(t) + : 1 !== t.getDate() + ? e.timeFormat('%-m/%-d')(t) + : t.getMonth() + ? e.timeFormat('%-m/%-d')(t) + : e.timeFormat('%Y/%-m/%-d')(t); + }), + (t.hiddenTargetIds = []), + (t.hiddenLegendIds = []), + (t.focusedTargetIds = []), + (t.defocusedTargetIds = []), + (t.xOrient = n.axis_rotated + ? n.axis_x_inner + ? 'right' + : 'left' + : n.axis_x_inner + ? 'top' + : 'bottom'), + (t.yOrient = n.axis_rotated + ? n.axis_y_inner + ? 'top' + : 'bottom' + : n.axis_y_inner + ? 'right' + : 'left'), + (t.y2Orient = n.axis_rotated + ? n.axis_y2_inner + ? 'bottom' + : 'top' + : n.axis_y2_inner + ? 'left' + : 'right'), + (t.subXOrient = n.axis_rotated ? 'left' : 'bottom'), + (t.isLegendRight = 'right' === n.legend_position), + (t.isLegendInset = 'inset' === n.legend_position), + (t.isLegendTop = + 'top-left' === n.legend_inset_anchor || + 'top-right' === n.legend_inset_anchor), + (t.isLegendLeft = + 'top-left' === n.legend_inset_anchor || + 'bottom-left' === n.legend_inset_anchor), + (t.legendStep = 0), + (t.legendItemWidth = 0), + (t.legendItemHeight = 0), + (t.currentMaxTickWidths = { x: 0, y: 0, y2: 0 }), + (t.rotated_padding_left = 30), + (t.rotated_padding_right = + n.axis_rotated && !n.axis_x_show ? 0 : 30), + (t.rotated_padding_top = 5), + (t.withoutFadeIn = {}), + (t.intervalForObserveInserted = void 0), + (t.axes.subx = e.selectAll([])); + }), + (r.prototype.initChartElements = function() { + this.initBar && this.initBar(), + this.initLine && this.initLine(), + this.initArc && this.initArc(), + this.initGauge && this.initGauge(), + this.initText && this.initText(); + }), + (r.prototype.initWithData = function(t) { + var e, + n, + r = this, + i = r.d3, + o = r.config, + a = !0; + (r.axis = new S(r)), + o.bindto + ? 'function' == typeof o.bindto.node + ? (r.selectChart = o.bindto) + : (r.selectChart = i.select(o.bindto)) + : (r.selectChart = i.selectAll([])), + r.selectChart.empty() && + ((r.selectChart = i + .select(document.createElement('div')) + .style('opacity', 0)), + r.observeInserted(r.selectChart), + (a = !1)), + r.selectChart.html('').classed('c3', !0), + (r.data.xs = {}), + (r.data.targets = r.convertDataToTargets(t)), + o.data_filter && + (r.data.targets = r.data.targets.filter(o.data_filter)), + o.data_hide && + r.addHiddenTargetIds( + !0 === o.data_hide + ? r.mapToIds(r.data.targets) + : o.data_hide + ), + o.legend_hide && + r.addHiddenLegendIds( + !0 === o.legend_hide + ? r.mapToIds(r.data.targets) + : o.legend_hide + ), + r.isStanfordGraphType() && r.initStanfordData(), + r.updateSizes(), + r.updateScales(), + r.x.domain(i.extent(r.getXDomain(r.data.targets))), + r.y.domain(r.getYDomain(r.data.targets, 'y')), + r.y2.domain(r.getYDomain(r.data.targets, 'y2')), + r.subX.domain(r.x.domain()), + r.subY.domain(r.y.domain()), + r.subY2.domain(r.y2.domain()), + (r.orgXDomain = r.x.domain()), + (r.svg = r.selectChart + .append('svg') + .style('overflow', 'hidden') + .on('mouseenter', function() { + return o.onmouseover.call(r); + }) + .on('mouseleave', function() { + return o.onmouseout.call(r); + })), + r.config.svg_classname && + r.svg.attr('class', r.config.svg_classname), + (e = r.svg.append('defs')), + (r.clipChart = r.appendClip(e, r.clipId)), + (r.clipXAxis = r.appendClip(e, r.clipIdForXAxis)), + (r.clipYAxis = r.appendClip(e, r.clipIdForYAxis)), + (r.clipGrid = r.appendClip(e, r.clipIdForGrid)), + (r.clipSubchart = r.appendClip(e, r.clipIdForSubchart)), + r.updateSvgSize(), + (n = r.main = r.svg + .append('g') + .attr('transform', r.getTranslate('main'))), + r.initPie && r.initPie(), + r.initDragZoom && r.initDragZoom(), + r.initSubchart && r.initSubchart(), + r.initTooltip && r.initTooltip(), + r.initLegend && r.initLegend(), + r.initTitle && r.initTitle(), + r.initZoom && r.initZoom(), + r.isStanfordGraphType() && r.drawColorScale(), + r.initSubchartBrush && r.initSubchartBrush(), + n + .append('text') + .attr('class', w.text + ' ' + w.empty) + .attr('text-anchor', 'middle') + .attr('dominant-baseline', 'middle'), + r.initRegion(), + r.initGrid(), + n + .append('g') + .attr('clip-path', r.clipPath) + .attr('class', w.chart), + o.grid_lines_front && r.initGridLines(), + r.initStanfordElements(), + r.initEventRect(), + r.initChartElements(), + r.axis.init(), + r.updateTargets(r.data.targets), + o.axis_x_selection && + r.brush.selectionAsValue(r.getDefaultSelection()), + a && + (r.updateDimension(), + r.config.oninit.call(r), + r.redraw({ + withTransition: !1, + withTransform: !0, + withUpdateXDomain: !0, + withUpdateOrgXDomain: !0, + withTransitionForAxis: !1 + })), + r.bindResize(), + r.bindWindowFocus(), + (r.api.element = r.selectChart.node()); + }), + (r.prototype.smoothLines = function(t, e) { + var n = this; + 'grid' === e && + t.each(function() { + var t = n.d3.select(this), + e = t.attr('x1'), + r = t.attr('x2'), + i = t.attr('y1'), + o = t.attr('y2'); + t.attr({ + x1: Math.ceil(e), + x2: Math.ceil(r), + y1: Math.ceil(i), + y2: Math.ceil(o) + }); + }); + }), + (r.prototype.updateSizes = function() { + var t = this, + e = t.config, + n = t.legend ? t.getLegendHeight() : 0, + r = t.legend ? t.getLegendWidth() : 0, + i = t.isLegendRight || t.isLegendInset ? 0 : n, + o = t.hasArcType(), + a = + e.axis_rotated || o + ? 0 + : t.getHorizontalAxisHeight('x'), + s = + e.subchart_show && !o ? e.subchart_size_height + a : 0; + (t.currentWidth = t.getCurrentWidth()), + (t.currentHeight = t.getCurrentHeight()), + (t.margin = e.axis_rotated + ? { + top: + t.getHorizontalAxisHeight('y2') + + t.getCurrentPaddingTop(), + right: o ? 0 : t.getCurrentPaddingRight(), + bottom: + t.getHorizontalAxisHeight('y') + + i + + t.getCurrentPaddingBottom(), + left: s + (o ? 0 : t.getCurrentPaddingLeft()) + } + : { + top: 4 + t.getCurrentPaddingTop(), + right: o ? 0 : t.getCurrentPaddingRight(), + bottom: a + s + i + t.getCurrentPaddingBottom(), + left: o ? 0 : t.getCurrentPaddingLeft() + }), + (t.margin2 = e.axis_rotated + ? { + top: t.margin.top, + right: NaN, + bottom: 20 + i, + left: t.rotated_padding_left + } + : { + top: t.currentHeight - s - i, + right: NaN, + bottom: a + i, + left: t.margin.left + }), + (t.margin3 = { top: 0, right: NaN, bottom: 0, left: 0 }), + t.updateSizeForLegend && t.updateSizeForLegend(n, r), + (t.width = + t.currentWidth - t.margin.left - t.margin.right), + (t.height = + t.currentHeight - t.margin.top - t.margin.bottom), + t.width < 0 && (t.width = 0), + t.height < 0 && (t.height = 0), + (t.width2 = e.axis_rotated + ? t.margin.left - + t.rotated_padding_left - + t.rotated_padding_right + : t.width), + (t.height2 = e.axis_rotated + ? t.height + : t.currentHeight - t.margin2.top - t.margin2.bottom), + t.width2 < 0 && (t.width2 = 0), + t.height2 < 0 && (t.height2 = 0), + (t.arcWidth = t.width - (t.isLegendRight ? r + 10 : 0)), + (t.arcHeight = t.height - (t.isLegendRight ? 0 : 10)), + t.hasType('gauge') && + !e.gauge_fullCircle && + (t.arcHeight += t.height - t.getGaugeLabelHeight()), + t.updateRadius && t.updateRadius(), + t.isLegendRight && + o && + (t.margin3.left = + t.arcWidth / 2 + 1.1 * t.radiusExpanded); + }), + (r.prototype.updateTargets = function(t) { + var e = this; + e.updateTargetsForText(t), + e.updateTargetsForBar(t), + e.updateTargetsForLine(t), + e.hasArcType() && + e.updateTargetsForArc && + e.updateTargetsForArc(t), + e.updateTargetsForSubchart && + e.updateTargetsForSubchart(t), + e.showTargets(); + }), + (r.prototype.showTargets = function() { + var t = this; + t.svg + .selectAll('.' + w.target) + .filter(function(e) { + return t.isTargetToShow(e.id); + }) + .transition() + .duration(t.config.transition_duration) + .style('opacity', 1); + }), + (r.prototype.redraw = function(t, e) { + var n, + r, + i, + o, + a, + s, + l, + c, + f, + d, + h, + p, + g, + m, + v, + y, + b, + _, + x, + S, + E, + k, + A, + T, + C, + O, + P, + M, + L, + j, + D, + R = this, + z = R.main, + N = R.d3, + I = R.config, + F = R.getShapeIndices(R.isAreaType), + V = R.getShapeIndices(R.isBarType), + B = R.getShapeIndices(R.isLineType), + G = R.hasArcType(), + H = R.filterTargetsToShow(R.data.targets), + U = R.xv.bind(R); + if ( + ((n = u((t = t || {}), 'withY', !0)), + (r = u(t, 'withSubchart', !0)), + (i = u(t, 'withTransition', !0)), + (s = u(t, 'withTransform', !1)), + (l = u(t, 'withUpdateXDomain', !1)), + (c = u(t, 'withUpdateOrgXDomain', !1)), + (f = u(t, 'withTrimXDomain', !0)), + (g = u(t, 'withUpdateXAxis', l)), + (d = u(t, 'withLegend', !1)), + (h = u(t, 'withEventRect', !0)), + (p = u(t, 'withDimension', !0)), + (o = u(t, 'withTransitionForExit', i)), + (a = u(t, 'withTransitionForAxis', i)), + (x = i ? I.transition_duration : 0), + (S = o ? x : 0), + (E = a ? x : 0), + (e = e || R.axis.generateTransitions(E)), + d && I.legend_show + ? R.updateLegend(R.mapToIds(R.data.targets), t, e) + : p && R.updateDimension(!0), + R.isCategorized() && + 0 === H.length && + R.x.domain([0, R.axes.x.selectAll('.tick').size()]), + H.length + ? (R.updateXDomain(H, l, c, f), + I.axis_x_tick_values || + (O = R.axis.updateXAxisTickValues(H))) + : (R.xAxis.tickValues([]), R.subXAxis.tickValues([])), + I.zoom_rescale && !t.flow && (L = R.x.orgDomain()), + R.y.domain(R.getYDomain(H, 'y', L)), + R.y2.domain(R.getYDomain(H, 'y2', L)), + !I.axis_y_tick_values && + I.axis_y_tick_count && + R.yAxis.tickValues( + R.axis.generateTickValues( + R.y.domain(), + I.axis_y_tick_count + ) + ), + !I.axis_y2_tick_values && + I.axis_y2_tick_count && + R.y2Axis.tickValues( + R.axis.generateTickValues( + R.y2.domain(), + I.axis_y2_tick_count + ) + ), + R.axis.redraw(E, G), + R.axis.updateLabels(i), + (l || g) && H.length) + ) + if (I.axis_x_tick_culling && O) { + for (P = 1; P < O.length; P++) + if (O.length / P < I.axis_x_tick_culling_max) { + M = P; + break; + } + R.svg + .selectAll('.' + w.axisX + ' .tick text') + .each(function(t) { + var e = O.indexOf(t); + e >= 0 && + N.select(this).style( + 'display', + e % M ? 'none' : 'block' + ); + }); + } else + R.svg + .selectAll('.' + w.axisX + ' .tick text') + .style('display', 'block'); + (m = R.generateDrawArea + ? R.generateDrawArea(F, !1) + : void 0), + (v = R.generateDrawBar ? R.generateDrawBar(V) : void 0), + (y = R.generateDrawLine + ? R.generateDrawLine(B, !1) + : void 0), + (b = R.generateXYForText(F, V, B, !0)), + (_ = R.generateXYForText(F, V, B, !1)), + R.updateCircleY(), + (j = (R.config.axis_rotated ? R.circleY : R.circleX).bind( + R + )), + (D = (R.config.axis_rotated ? R.circleX : R.circleY).bind( + R + )), + n && + (R.subY.domain(R.getYDomain(H, 'y')), + R.subY2.domain(R.getYDomain(H, 'y2'))), + R.updateXgridFocus(), + z + .select('text.' + w.text + '.' + w.empty) + .attr('x', R.width / 2) + .attr('y', R.height / 2) + .text(I.data_empty_label_text) + .transition() + .style('opacity', H.length ? 0 : 1), + h && R.redrawEventRect(), + R.updateGrid(x), + R.updateStanfordElements(x), + R.updateRegion(x), + R.updateBar(S), + R.updateLine(S), + R.updateArea(S), + R.updateCircle(j, D), + R.hasDataLabel() && R.updateText(b, _, S), + R.redrawTitle && R.redrawTitle(), + R.redrawArc && R.redrawArc(x, S, s), + R.redrawSubchart && R.redrawSubchart(r, e, x, S, F, V, B), + R.isStanfordGraphType() && R.drawColorScale(), + z + .selectAll('.' + w.selectedCircles) + .filter(R.isBarType.bind(R)) + .selectAll('circle') + .remove(), + t.flow && + (T = R.generateFlow({ + targets: H, + flow: t.flow, + duration: t.flow.duration, + drawBar: v, + drawLine: y, + drawArea: m, + cx: j, + cy: D, + xv: U, + xForText: b, + yForText: _ + })), + x && R.isTabVisible() + ? ((C = N.transition().duration(x)), + (k = []), + [ + R.redrawBar(v, !0, C), + R.redrawLine(y, !0, C), + R.redrawArea(m, !0, C), + R.redrawCircle(j, D, !0, C), + R.redrawText(b, _, t.flow, !0, C), + R.redrawRegion(!0, C), + R.redrawGrid(!0, C) + ].forEach(function(t) { + t.forEach(function(t) { + k.push(t); + }); + }), + (A = R.generateWait()), + k.forEach(function(t) { + A.add(t); + }), + A(function() { + T && T(), I.onrendered && I.onrendered.call(R); + })) + : (R.redrawBar(v), + R.redrawLine(y), + R.redrawArea(m), + R.redrawCircle(j, D), + R.redrawText(b, _, t.flow), + R.redrawRegion(), + R.redrawGrid(), + T && T(), + I.onrendered && I.onrendered.call(R)), + R.mapToIds(R.data.targets).forEach(function(t) { + R.withoutFadeIn[t] = !0; + }); + }), + (r.prototype.updateAndRedraw = function(t) { + var e, + n = this, + r = n.config; + ((t = t || {}).withTransition = u(t, 'withTransition', !0)), + (t.withTransform = u(t, 'withTransform', !1)), + (t.withLegend = u(t, 'withLegend', !1)), + (t.withUpdateXDomain = u(t, 'withUpdateXDomain', !0)), + (t.withUpdateOrgXDomain = u( + t, + 'withUpdateOrgXDomain', + !0 + )), + (t.withTransitionForExit = !1), + (t.withTransitionForTransform = u( + t, + 'withTransitionForTransform', + t.withTransition + )), + n.updateSizes(), + (t.withLegend && r.legend_show) || + ((e = n.axis.generateTransitions( + t.withTransitionForAxis ? r.transition_duration : 0 + )), + n.updateScales(), + n.updateSvgSize(), + n.transformAll(t.withTransitionForTransform, e)), + n.redraw(t, e); + }), + (r.prototype.redrawWithoutRescale = function() { + this.redraw({ + withY: !1, + withSubchart: !1, + withEventRect: !1, + withTransitionForAxis: !1 + }); + }), + (r.prototype.isTimeSeries = function() { + return 'timeseries' === this.config.axis_x_type; + }), + (r.prototype.isCategorized = function() { + return this.config.axis_x_type.indexOf('categor') >= 0; + }), + (r.prototype.isCustomX = function() { + var t = this.config; + return !this.isTimeSeries() && (t.data_x || b(t.data_xs)); + }), + (r.prototype.isTimeSeriesY = function() { + return 'timeseries' === this.config.axis_y_type; + }), + (r.prototype.getTranslate = function(t) { + var e, + n, + r = this, + i = r.config; + return ( + 'main' === t + ? ((e = o(r.margin.left)), (n = o(r.margin.top))) + : 'context' === t + ? ((e = o(r.margin2.left)), (n = o(r.margin2.top))) + : 'legend' === t + ? ((e = r.margin3.left), (n = r.margin3.top)) + : 'x' === t + ? ((e = 0), (n = i.axis_rotated ? 0 : r.height)) + : 'y' === t + ? ((e = 0), (n = i.axis_rotated ? r.height : 0)) + : 'y2' === t + ? ((e = i.axis_rotated ? 0 : r.width), + (n = i.axis_rotated ? 1 : 0)) + : 'subx' === t + ? ((e = 0), (n = i.axis_rotated ? 0 : r.height2)) + : 'arc' === t && + ((e = r.arcWidth / 2), + (n = r.arcHeight / 2 - (r.hasType('gauge') ? 6 : 0))), + 'translate(' + e + ',' + n + ')' + ); + }), + (r.prototype.initialOpacity = function(t) { + return null !== t.value && this.withoutFadeIn[t.id] ? 1 : 0; + }), + (r.prototype.initialOpacityForCircle = function(t) { + return null !== t.value && this.withoutFadeIn[t.id] + ? this.opacityForCircle(t) + : 0; + }), + (r.prototype.opacityForCircle = function(t) { + var e = + (p(this.config.point_show) + ? this.config.point_show(t) + : this.config.point_show) || this.isStanfordType(t) + ? 1 + : 0; + return y(t.value) ? (this.isScatterType(t) ? 0.5 : e) : 0; + }), + (r.prototype.opacityForText = function() { + return this.hasDataLabel() ? 1 : 0; + }), + (r.prototype.xx = function(t) { + return t ? this.x(t.x) : null; + }), + (r.prototype.xvCustom = function(t, e) { + var n = this, + r = e ? t[e] : t.value; + return ( + n.isTimeSeries() + ? (r = n.parseDate(t.value)) + : n.isCategorized() && + 'string' == typeof t.value && + (r = n.config.axis_x_categories.indexOf(t.value)), + Math.ceil(n.x(r)) + ); + }), + (r.prototype.yvCustom = function(t, e) { + var n = t.axis && 'y2' === t.axis ? this.y2 : this.y, + r = e ? t[e] : t.value; + return Math.ceil(n(r)); + }), + (r.prototype.xv = function(t) { + var e = this, + n = t.value; + return ( + e.isTimeSeries() + ? (n = e.parseDate(t.value)) + : e.isCategorized() && + 'string' == typeof t.value && + (n = e.config.axis_x_categories.indexOf(t.value)), + Math.ceil(e.x(n)) + ); + }), + (r.prototype.yv = function(t) { + var e = t.axis && 'y2' === t.axis ? this.y2 : this.y; + return Math.ceil(e(t.value)); + }), + (r.prototype.subxx = function(t) { + return t ? this.subX(t.x) : null; + }), + (r.prototype.transformMain = function(t, e) { + var n, + r, + i, + o = this; + e && e.axisX + ? (n = e.axisX) + : ((n = o.main.select('.' + w.axisX)), + t && (n = n.transition())), + e && e.axisY + ? (r = e.axisY) + : ((r = o.main.select('.' + w.axisY)), + t && (r = r.transition())), + e && e.axisY2 + ? (i = e.axisY2) + : ((i = o.main.select('.' + w.axisY2)), + t && (i = i.transition())), + (t ? o.main.transition() : o.main).attr( + 'transform', + o.getTranslate('main') + ), + n.attr('transform', o.getTranslate('x')), + r.attr('transform', o.getTranslate('y')), + i.attr('transform', o.getTranslate('y2')), + o.main + .select('.' + w.chartArcs) + .attr('transform', o.getTranslate('arc')); + }), + (r.prototype.transformAll = function(t, e) { + var n = this; + n.transformMain(t, e), + n.config.subchart_show && n.transformContext(t, e), + n.legend && n.transformLegend(t); + }), + (r.prototype.updateSvgSize = function() { + var t = this, + e = t.svg.select('.c3-brush .overlay'); + t.svg + .attr('width', t.currentWidth) + .attr('height', t.currentHeight), + t.svg + .selectAll(['#' + t.clipId, '#' + t.clipIdForGrid]) + .select('rect') + .attr('width', t.width) + .attr('height', t.height), + t.svg + .select('#' + t.clipIdForXAxis) + .select('rect') + .attr('x', t.getXAxisClipX.bind(t)) + .attr('y', t.getXAxisClipY.bind(t)) + .attr('width', t.getXAxisClipWidth.bind(t)) + .attr('height', t.getXAxisClipHeight.bind(t)), + t.svg + .select('#' + t.clipIdForYAxis) + .select('rect') + .attr('x', t.getYAxisClipX.bind(t)) + .attr('y', t.getYAxisClipY.bind(t)) + .attr('width', t.getYAxisClipWidth.bind(t)) + .attr('height', t.getYAxisClipHeight.bind(t)), + t.svg + .select('#' + t.clipIdForSubchart) + .select('rect') + .attr('width', t.width) + .attr('height', e.size() ? e.attr('height') : 0), + t.selectChart.style('max-height', t.currentHeight + 'px'); + }), + (r.prototype.updateDimension = function(t) { + var e = this; + t || + (e.config.axis_rotated + ? (e.axes.x.call(e.xAxis), e.axes.subx.call(e.subXAxis)) + : (e.axes.y.call(e.yAxis), e.axes.y2.call(e.y2Axis))), + e.updateSizes(), + e.updateScales(), + e.updateSvgSize(), + e.transformAll(!1); + }), + (r.prototype.observeInserted = function(t) { + var e, + n = this; + 'undefined' != typeof MutationObserver + ? (e = new MutationObserver(function(r) { + r.forEach(function(r) { + 'childList' === r.type && + r.previousSibling && + (e.disconnect(), + (n.intervalForObserveInserted = window.setInterval( + function() { + t.node().parentNode && + (window.clearInterval( + n.intervalForObserveInserted + ), + n.updateDimension(), + n.brush && n.brush.update(), + n.config.oninit.call(n), + n.redraw({ + withTransform: !0, + withUpdateXDomain: !0, + withUpdateOrgXDomain: !0, + withTransition: !1, + withTransitionForTransform: !1, + withLegend: !0 + }), + t.transition().style('opacity', 1)); + }, + 10 + ))); + }); + })).observe(t.node(), { + attributes: !0, + childList: !0, + characterData: !0 + }) + : window.console.error('MutationObserver not defined.'); + }), + (r.prototype.bindResize = function() { + var t = this, + e = t.config; + if ( + ((t.resizeFunction = t.generateResize()), + t.resizeFunction.add(function() { + e.onresize.call(t); + }), + e.resize_auto && + t.resizeFunction.add(function() { + void 0 !== t.resizeTimeout && + window.clearTimeout(t.resizeTimeout), + (t.resizeTimeout = window.setTimeout(function() { + delete t.resizeTimeout, + t.updateAndRedraw({ + withUpdateXDomain: !1, + withUpdateOrgXDomain: !1, + withTransition: !1, + withTransitionForTransform: !1, + withLegend: !0 + }), + t.brush && t.brush.update(); + }, 100)); + }), + t.resizeFunction.add(function() { + e.onresized.call(t); + }), + (t.resizeIfElementDisplayed = function() { + null != t.api && + t.api.element.offsetParent && + t.resizeFunction(); + }), + window.attachEvent) + ) + window.attachEvent( + 'onresize', + t.resizeIfElementDisplayed + ); + else if (window.addEventListener) + window.addEventListener( + 'resize', + t.resizeIfElementDisplayed, + !1 + ); + else { + var n = window.onresize; + n + ? (n.add && n.remove) || + (n = t.generateResize()).add(window.onresize) + : (n = t.generateResize()), + n.add(t.resizeFunction), + (window.onresize = function() { + t.api.element.offsetParent && n(); + }); + } + }), + (r.prototype.bindWindowFocus = function() { + var t = this; + this.windowFocusHandler || + ((this.windowFocusHandler = function() { + t.redraw(); + }), + window.addEventListener( + 'focus', + this.windowFocusHandler + )); + }), + (r.prototype.unbindWindowFocus = function() { + window.removeEventListener( + 'focus', + this.windowFocusHandler + ), + delete this.windowFocusHandler; + }), + (r.prototype.generateResize = function() { + var t = []; + function e() { + t.forEach(function(t) { + t(); + }); + } + return ( + (e.add = function(e) { + t.push(e); + }), + (e.remove = function(e) { + for (var n = 0; n < t.length; n++) + if (t[n] === e) { + t.splice(n, 1); + break; + } + }), + e + ); + }), + (r.prototype.endall = function(t, e) { + var n = 0; + t.each(function() { + ++n; + }).on('end', function() { + --n || e.apply(this, arguments); + }); + }), + (r.prototype.generateWait = function() { + var t = this, + e = [], + n = function(n) { + var r = setInterval(function() { + if (t.isTabVisible()) { + var i = 0; + e.forEach(function(t) { + if (t.empty()) i += 1; + else + try { + t.transition(); + } catch (t) { + i += 1; + } + }), + i === e.length && (clearInterval(r), n && n()); + } + }, 50); + }; + return ( + (n.add = function(t) { + e.push(t); + }), + n + ); + }), + (r.prototype.parseDate = function(e) { + var n; + return ( + e instanceof Date + ? (n = e) + : 'string' == typeof e + ? (n = this.dataTimeParse(e)) + : 'object' === t(e) + ? (n = new Date(+e)) + : 'number' != typeof e || + isNaN(e) || + (n = new Date(+e)), + (n && !isNaN(+n)) || + window.console.error( + "Failed to parse x '" + e + "' to Date object" + ), + n + ); + }), + (r.prototype.isTabVisible = function() { + return !document.hidden; + }), + (r.prototype.getPathBox = l), + (r.prototype.CLASS = w), + 'SVGPathSeg' in window || + ((window.SVGPathSeg = function(t, e, n) { + (this.pathSegType = t), + (this.pathSegTypeAsLetter = e), + (this._owningPathSegList = n); + }), + (window.SVGPathSeg.prototype.classname = 'SVGPathSeg'), + (window.SVGPathSeg.PATHSEG_UNKNOWN = 0), + (window.SVGPathSeg.PATHSEG_CLOSEPATH = 1), + (window.SVGPathSeg.PATHSEG_MOVETO_ABS = 2), + (window.SVGPathSeg.PATHSEG_MOVETO_REL = 3), + (window.SVGPathSeg.PATHSEG_LINETO_ABS = 4), + (window.SVGPathSeg.PATHSEG_LINETO_REL = 5), + (window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS = 6), + (window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL = 7), + (window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS = 8), + (window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL = 9), + (window.SVGPathSeg.PATHSEG_ARC_ABS = 10), + (window.SVGPathSeg.PATHSEG_ARC_REL = 11), + (window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS = 12), + (window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL = 13), + (window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS = 14), + (window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL = 15), + (window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16), + (window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17), + (window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18), + (window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19), + (window.SVGPathSeg.prototype._segmentChanged = function() { + this._owningPathSegList && + this._owningPathSegList.segmentChanged(this); + }), + (window.SVGPathSegClosePath = function(t) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_CLOSEPATH, + 'z', + t + ); + }), + (window.SVGPathSegClosePath.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegClosePath.prototype.toString = function() { + return '[object SVGPathSegClosePath]'; + }), + (window.SVGPathSegClosePath.prototype._asPathString = function() { + return this.pathSegTypeAsLetter; + }), + (window.SVGPathSegClosePath.prototype.clone = function() { + return new window.SVGPathSegClosePath(void 0); + }), + (window.SVGPathSegMovetoAbs = function(t, e, n) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_MOVETO_ABS, + 'M', + t + ), + (this._x = e), + (this._y = n); + }), + (window.SVGPathSegMovetoAbs.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegMovetoAbs.prototype.toString = function() { + return '[object SVGPathSegMovetoAbs]'; + }), + (window.SVGPathSegMovetoAbs.prototype._asPathString = function() { + return ( + this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y + ); + }), + (window.SVGPathSegMovetoAbs.prototype.clone = function() { + return new window.SVGPathSegMovetoAbs( + void 0, + this._x, + this._y + ); + }), + Object.defineProperty( + window.SVGPathSegMovetoAbs.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegMovetoAbs.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegMovetoRel = function(t, e, n) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_MOVETO_REL, + 'm', + t + ), + (this._x = e), + (this._y = n); + }), + (window.SVGPathSegMovetoRel.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegMovetoRel.prototype.toString = function() { + return '[object SVGPathSegMovetoRel]'; + }), + (window.SVGPathSegMovetoRel.prototype._asPathString = function() { + return ( + this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y + ); + }), + (window.SVGPathSegMovetoRel.prototype.clone = function() { + return new window.SVGPathSegMovetoRel( + void 0, + this._x, + this._y + ); + }), + Object.defineProperty( + window.SVGPathSegMovetoRel.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegMovetoRel.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegLinetoAbs = function(t, e, n) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_LINETO_ABS, + 'L', + t + ), + (this._x = e), + (this._y = n); + }), + (window.SVGPathSegLinetoAbs.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegLinetoAbs.prototype.toString = function() { + return '[object SVGPathSegLinetoAbs]'; + }), + (window.SVGPathSegLinetoAbs.prototype._asPathString = function() { + return ( + this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y + ); + }), + (window.SVGPathSegLinetoAbs.prototype.clone = function() { + return new window.SVGPathSegLinetoAbs( + void 0, + this._x, + this._y + ); + }), + Object.defineProperty( + window.SVGPathSegLinetoAbs.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegLinetoAbs.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegLinetoRel = function(t, e, n) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_LINETO_REL, + 'l', + t + ), + (this._x = e), + (this._y = n); + }), + (window.SVGPathSegLinetoRel.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegLinetoRel.prototype.toString = function() { + return '[object SVGPathSegLinetoRel]'; + }), + (window.SVGPathSegLinetoRel.prototype._asPathString = function() { + return ( + this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y + ); + }), + (window.SVGPathSegLinetoRel.prototype.clone = function() { + return new window.SVGPathSegLinetoRel( + void 0, + this._x, + this._y + ); + }), + Object.defineProperty( + window.SVGPathSegLinetoRel.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegLinetoRel.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegCurvetoCubicAbs = function( + t, + e, + n, + r, + i, + o, + a + ) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS, + 'C', + t + ), + (this._x = e), + (this._y = n), + (this._x1 = r), + (this._y1 = i), + (this._x2 = o), + (this._y2 = a); + }), + (window.SVGPathSegCurvetoCubicAbs.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegCurvetoCubicAbs.prototype.toString = function() { + return '[object SVGPathSegCurvetoCubicAbs]'; + }), + (window.SVGPathSegCurvetoCubicAbs.prototype._asPathString = function() { + return ( + this.pathSegTypeAsLetter + + ' ' + + this._x1 + + ' ' + + this._y1 + + ' ' + + this._x2 + + ' ' + + this._y2 + + ' ' + + this._x + + ' ' + + this._y + ); + }), + (window.SVGPathSegCurvetoCubicAbs.prototype.clone = function() { + return new window.SVGPathSegCurvetoCubicAbs( + void 0, + this._x, + this._y, + this._x1, + this._y1, + this._x2, + this._y2 + ); + }), + Object.defineProperty( + window.SVGPathSegCurvetoCubicAbs.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicAbs.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicAbs.prototype, + 'x1', + { + get: function() { + return this._x1; + }, + set: function(t) { + (this._x1 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicAbs.prototype, + 'y1', + { + get: function() { + return this._y1; + }, + set: function(t) { + (this._y1 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicAbs.prototype, + 'x2', + { + get: function() { + return this._x2; + }, + set: function(t) { + (this._x2 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicAbs.prototype, + 'y2', + { + get: function() { + return this._y2; + }, + set: function(t) { + (this._y2 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegCurvetoCubicRel = function( + t, + e, + n, + r, + i, + o, + a + ) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL, + 'c', + t + ), + (this._x = e), + (this._y = n), + (this._x1 = r), + (this._y1 = i), + (this._x2 = o), + (this._y2 = a); + }), + (window.SVGPathSegCurvetoCubicRel.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegCurvetoCubicRel.prototype.toString = function() { + return '[object SVGPathSegCurvetoCubicRel]'; + }), + (window.SVGPathSegCurvetoCubicRel.prototype._asPathString = function() { + return ( + this.pathSegTypeAsLetter + + ' ' + + this._x1 + + ' ' + + this._y1 + + ' ' + + this._x2 + + ' ' + + this._y2 + + ' ' + + this._x + + ' ' + + this._y + ); + }), + (window.SVGPathSegCurvetoCubicRel.prototype.clone = function() { + return new window.SVGPathSegCurvetoCubicRel( + void 0, + this._x, + this._y, + this._x1, + this._y1, + this._x2, + this._y2 + ); + }), + Object.defineProperty( + window.SVGPathSegCurvetoCubicRel.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicRel.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicRel.prototype, + 'x1', + { + get: function() { + return this._x1; + }, + set: function(t) { + (this._x1 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicRel.prototype, + 'y1', + { + get: function() { + return this._y1; + }, + set: function(t) { + (this._y1 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicRel.prototype, + 'x2', + { + get: function() { + return this._x2; + }, + set: function(t) { + (this._x2 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicRel.prototype, + 'y2', + { + get: function() { + return this._y2; + }, + set: function(t) { + (this._y2 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegCurvetoQuadraticAbs = function( + t, + e, + n, + r, + i + ) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS, + 'Q', + t + ), + (this._x = e), + (this._y = n), + (this._x1 = r), + (this._y1 = i); + }), + (window.SVGPathSegCurvetoQuadraticAbs.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegCurvetoQuadraticAbs.prototype.toString = function() { + return '[object SVGPathSegCurvetoQuadraticAbs]'; + }), + (window.SVGPathSegCurvetoQuadraticAbs.prototype._asPathString = function() { + return ( + this.pathSegTypeAsLetter + + ' ' + + this._x1 + + ' ' + + this._y1 + + ' ' + + this._x + + ' ' + + this._y + ); + }), + (window.SVGPathSegCurvetoQuadraticAbs.prototype.clone = function() { + return new window.SVGPathSegCurvetoQuadraticAbs( + void 0, + this._x, + this._y, + this._x1, + this._y1 + ); + }), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticAbs.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticAbs.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticAbs.prototype, + 'x1', + { + get: function() { + return this._x1; + }, + set: function(t) { + (this._x1 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticAbs.prototype, + 'y1', + { + get: function() { + return this._y1; + }, + set: function(t) { + (this._y1 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegCurvetoQuadraticRel = function( + t, + e, + n, + r, + i + ) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL, + 'q', + t + ), + (this._x = e), + (this._y = n), + (this._x1 = r), + (this._y1 = i); + }), + (window.SVGPathSegCurvetoQuadraticRel.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegCurvetoQuadraticRel.prototype.toString = function() { + return '[object SVGPathSegCurvetoQuadraticRel]'; + }), + (window.SVGPathSegCurvetoQuadraticRel.prototype._asPathString = function() { + return ( + this.pathSegTypeAsLetter + + ' ' + + this._x1 + + ' ' + + this._y1 + + ' ' + + this._x + + ' ' + + this._y + ); + }), + (window.SVGPathSegCurvetoQuadraticRel.prototype.clone = function() { + return new window.SVGPathSegCurvetoQuadraticRel( + void 0, + this._x, + this._y, + this._x1, + this._y1 + ); + }), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticRel.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticRel.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticRel.prototype, + 'x1', + { + get: function() { + return this._x1; + }, + set: function(t) { + (this._x1 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticRel.prototype, + 'y1', + { + get: function() { + return this._y1; + }, + set: function(t) { + (this._y1 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegArcAbs = function( + t, + e, + n, + r, + i, + o, + a, + s + ) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_ARC_ABS, + 'A', + t + ), + (this._x = e), + (this._y = n), + (this._r1 = r), + (this._r2 = i), + (this._angle = o), + (this._largeArcFlag = a), + (this._sweepFlag = s); + }), + (window.SVGPathSegArcAbs.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegArcAbs.prototype.toString = function() { + return '[object SVGPathSegArcAbs]'; + }), + (window.SVGPathSegArcAbs.prototype._asPathString = function() { + return ( + this.pathSegTypeAsLetter + + ' ' + + this._r1 + + ' ' + + this._r2 + + ' ' + + this._angle + + ' ' + + (this._largeArcFlag ? '1' : '0') + + ' ' + + (this._sweepFlag ? '1' : '0') + + ' ' + + this._x + + ' ' + + this._y + ); + }), + (window.SVGPathSegArcAbs.prototype.clone = function() { + return new window.SVGPathSegArcAbs( + void 0, + this._x, + this._y, + this._r1, + this._r2, + this._angle, + this._largeArcFlag, + this._sweepFlag + ); + }), + Object.defineProperty( + window.SVGPathSegArcAbs.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegArcAbs.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegArcAbs.prototype, + 'r1', + { + get: function() { + return this._r1; + }, + set: function(t) { + (this._r1 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegArcAbs.prototype, + 'r2', + { + get: function() { + return this._r2; + }, + set: function(t) { + (this._r2 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegArcAbs.prototype, + 'angle', + { + get: function() { + return this._angle; + }, + set: function(t) { + (this._angle = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegArcAbs.prototype, + 'largeArcFlag', + { + get: function() { + return this._largeArcFlag; + }, + set: function(t) { + (this._largeArcFlag = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegArcAbs.prototype, + 'sweepFlag', + { + get: function() { + return this._sweepFlag; + }, + set: function(t) { + (this._sweepFlag = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegArcRel = function( + t, + e, + n, + r, + i, + o, + a, + s + ) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_ARC_REL, + 'a', + t + ), + (this._x = e), + (this._y = n), + (this._r1 = r), + (this._r2 = i), + (this._angle = o), + (this._largeArcFlag = a), + (this._sweepFlag = s); + }), + (window.SVGPathSegArcRel.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegArcRel.prototype.toString = function() { + return '[object SVGPathSegArcRel]'; + }), + (window.SVGPathSegArcRel.prototype._asPathString = function() { + return ( + this.pathSegTypeAsLetter + + ' ' + + this._r1 + + ' ' + + this._r2 + + ' ' + + this._angle + + ' ' + + (this._largeArcFlag ? '1' : '0') + + ' ' + + (this._sweepFlag ? '1' : '0') + + ' ' + + this._x + + ' ' + + this._y + ); + }), + (window.SVGPathSegArcRel.prototype.clone = function() { + return new window.SVGPathSegArcRel( + void 0, + this._x, + this._y, + this._r1, + this._r2, + this._angle, + this._largeArcFlag, + this._sweepFlag + ); + }), + Object.defineProperty( + window.SVGPathSegArcRel.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegArcRel.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegArcRel.prototype, + 'r1', + { + get: function() { + return this._r1; + }, + set: function(t) { + (this._r1 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegArcRel.prototype, + 'r2', + { + get: function() { + return this._r2; + }, + set: function(t) { + (this._r2 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegArcRel.prototype, + 'angle', + { + get: function() { + return this._angle; + }, + set: function(t) { + (this._angle = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegArcRel.prototype, + 'largeArcFlag', + { + get: function() { + return this._largeArcFlag; + }, + set: function(t) { + (this._largeArcFlag = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegArcRel.prototype, + 'sweepFlag', + { + get: function() { + return this._sweepFlag; + }, + set: function(t) { + (this._sweepFlag = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegLinetoHorizontalAbs = function(t, e) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS, + 'H', + t + ), + (this._x = e); + }), + (window.SVGPathSegLinetoHorizontalAbs.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegLinetoHorizontalAbs.prototype.toString = function() { + return '[object SVGPathSegLinetoHorizontalAbs]'; + }), + (window.SVGPathSegLinetoHorizontalAbs.prototype._asPathString = function() { + return this.pathSegTypeAsLetter + ' ' + this._x; + }), + (window.SVGPathSegLinetoHorizontalAbs.prototype.clone = function() { + return new window.SVGPathSegLinetoHorizontalAbs( + void 0, + this._x + ); + }), + Object.defineProperty( + window.SVGPathSegLinetoHorizontalAbs.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegLinetoHorizontalRel = function(t, e) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL, + 'h', + t + ), + (this._x = e); + }), + (window.SVGPathSegLinetoHorizontalRel.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegLinetoHorizontalRel.prototype.toString = function() { + return '[object SVGPathSegLinetoHorizontalRel]'; + }), + (window.SVGPathSegLinetoHorizontalRel.prototype._asPathString = function() { + return this.pathSegTypeAsLetter + ' ' + this._x; + }), + (window.SVGPathSegLinetoHorizontalRel.prototype.clone = function() { + return new window.SVGPathSegLinetoHorizontalRel( + void 0, + this._x + ); + }), + Object.defineProperty( + window.SVGPathSegLinetoHorizontalRel.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegLinetoVerticalAbs = function(t, e) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS, + 'V', + t + ), + (this._y = e); + }), + (window.SVGPathSegLinetoVerticalAbs.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegLinetoVerticalAbs.prototype.toString = function() { + return '[object SVGPathSegLinetoVerticalAbs]'; + }), + (window.SVGPathSegLinetoVerticalAbs.prototype._asPathString = function() { + return this.pathSegTypeAsLetter + ' ' + this._y; + }), + (window.SVGPathSegLinetoVerticalAbs.prototype.clone = function() { + return new window.SVGPathSegLinetoVerticalAbs( + void 0, + this._y + ); + }), + Object.defineProperty( + window.SVGPathSegLinetoVerticalAbs.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegLinetoVerticalRel = function(t, e) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL, + 'v', + t + ), + (this._y = e); + }), + (window.SVGPathSegLinetoVerticalRel.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegLinetoVerticalRel.prototype.toString = function() { + return '[object SVGPathSegLinetoVerticalRel]'; + }), + (window.SVGPathSegLinetoVerticalRel.prototype._asPathString = function() { + return this.pathSegTypeAsLetter + ' ' + this._y; + }), + (window.SVGPathSegLinetoVerticalRel.prototype.clone = function() { + return new window.SVGPathSegLinetoVerticalRel( + void 0, + this._y + ); + }), + Object.defineProperty( + window.SVGPathSegLinetoVerticalRel.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegCurvetoCubicSmoothAbs = function( + t, + e, + n, + r, + i + ) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS, + 'S', + t + ), + (this._x = e), + (this._y = n), + (this._x2 = r), + (this._y2 = i); + }), + (window.SVGPathSegCurvetoCubicSmoothAbs.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegCurvetoCubicSmoothAbs.prototype.toString = function() { + return '[object SVGPathSegCurvetoCubicSmoothAbs]'; + }), + (window.SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString = function() { + return ( + this.pathSegTypeAsLetter + + ' ' + + this._x2 + + ' ' + + this._y2 + + ' ' + + this._x + + ' ' + + this._y + ); + }), + (window.SVGPathSegCurvetoCubicSmoothAbs.prototype.clone = function() { + return new window.SVGPathSegCurvetoCubicSmoothAbs( + void 0, + this._x, + this._y, + this._x2, + this._y2 + ); + }), + Object.defineProperty( + window.SVGPathSegCurvetoCubicSmoothAbs.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicSmoothAbs.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicSmoothAbs.prototype, + 'x2', + { + get: function() { + return this._x2; + }, + set: function(t) { + (this._x2 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicSmoothAbs.prototype, + 'y2', + { + get: function() { + return this._y2; + }, + set: function(t) { + (this._y2 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegCurvetoCubicSmoothRel = function( + t, + e, + n, + r, + i + ) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL, + 's', + t + ), + (this._x = e), + (this._y = n), + (this._x2 = r), + (this._y2 = i); + }), + (window.SVGPathSegCurvetoCubicSmoothRel.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegCurvetoCubicSmoothRel.prototype.toString = function() { + return '[object SVGPathSegCurvetoCubicSmoothRel]'; + }), + (window.SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString = function() { + return ( + this.pathSegTypeAsLetter + + ' ' + + this._x2 + + ' ' + + this._y2 + + ' ' + + this._x + + ' ' + + this._y + ); + }), + (window.SVGPathSegCurvetoCubicSmoothRel.prototype.clone = function() { + return new window.SVGPathSegCurvetoCubicSmoothRel( + void 0, + this._x, + this._y, + this._x2, + this._y2 + ); + }), + Object.defineProperty( + window.SVGPathSegCurvetoCubicSmoothRel.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicSmoothRel.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicSmoothRel.prototype, + 'x2', + { + get: function() { + return this._x2; + }, + set: function(t) { + (this._x2 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoCubicSmoothRel.prototype, + 'y2', + { + get: function() { + return this._y2; + }, + set: function(t) { + (this._y2 = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegCurvetoQuadraticSmoothAbs = function( + t, + e, + n + ) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS, + 'T', + t + ), + (this._x = e), + (this._y = n); + }), + (window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString = function() { + return '[object SVGPathSegCurvetoQuadraticSmoothAbs]'; + }), + (window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString = function() { + return ( + this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y + ); + }), + (window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone = function() { + return new window.SVGPathSegCurvetoQuadraticSmoothAbs( + void 0, + this._x, + this._y + ); + }), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathSegCurvetoQuadraticSmoothRel = function( + t, + e, + n + ) { + window.SVGPathSeg.call( + this, + window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL, + 't', + t + ), + (this._x = e), + (this._y = n); + }), + (window.SVGPathSegCurvetoQuadraticSmoothRel.prototype = Object.create( + window.SVGPathSeg.prototype + )), + (window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString = function() { + return '[object SVGPathSegCurvetoQuadraticSmoothRel]'; + }), + (window.SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString = function() { + return ( + this.pathSegTypeAsLetter + ' ' + this._x + ' ' + this._y + ); + }), + (window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone = function() { + return new window.SVGPathSegCurvetoQuadraticSmoothRel( + void 0, + this._x, + this._y + ); + }), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticSmoothRel.prototype, + 'x', + { + get: function() { + return this._x; + }, + set: function(t) { + (this._x = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathSegCurvetoQuadraticSmoothRel.prototype, + 'y', + { + get: function() { + return this._y; + }, + set: function(t) { + (this._y = t), this._segmentChanged(); + }, + enumerable: !0 + } + ), + (window.SVGPathElement.prototype.createSVGPathSegClosePath = function() { + return new window.SVGPathSegClosePath(void 0); + }), + (window.SVGPathElement.prototype.createSVGPathSegMovetoAbs = function( + t, + e + ) { + return new window.SVGPathSegMovetoAbs(void 0, t, e); + }), + (window.SVGPathElement.prototype.createSVGPathSegMovetoRel = function( + t, + e + ) { + return new window.SVGPathSegMovetoRel(void 0, t, e); + }), + (window.SVGPathElement.prototype.createSVGPathSegLinetoAbs = function( + t, + e + ) { + return new window.SVGPathSegLinetoAbs(void 0, t, e); + }), + (window.SVGPathElement.prototype.createSVGPathSegLinetoRel = function( + t, + e + ) { + return new window.SVGPathSegLinetoRel(void 0, t, e); + }), + (window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs = function( + t, + e, + n, + r, + i, + o + ) { + return new window.SVGPathSegCurvetoCubicAbs( + void 0, + t, + e, + n, + r, + i, + o + ); + }), + (window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel = function( + t, + e, + n, + r, + i, + o + ) { + return new window.SVGPathSegCurvetoCubicRel( + void 0, + t, + e, + n, + r, + i, + o + ); + }), + (window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs = function( + t, + e, + n, + r + ) { + return new window.SVGPathSegCurvetoQuadraticAbs( + void 0, + t, + e, + n, + r + ); + }), + (window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel = function( + t, + e, + n, + r + ) { + return new window.SVGPathSegCurvetoQuadraticRel( + void 0, + t, + e, + n, + r + ); + }), + (window.SVGPathElement.prototype.createSVGPathSegArcAbs = function( + t, + e, + n, + r, + i, + o, + a + ) { + return new window.SVGPathSegArcAbs( + void 0, + t, + e, + n, + r, + i, + o, + a + ); + }), + (window.SVGPathElement.prototype.createSVGPathSegArcRel = function( + t, + e, + n, + r, + i, + o, + a + ) { + return new window.SVGPathSegArcRel( + void 0, + t, + e, + n, + r, + i, + o, + a + ); + }), + (window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs = function( + t + ) { + return new window.SVGPathSegLinetoHorizontalAbs( + void 0, + t + ); + }), + (window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel = function( + t + ) { + return new window.SVGPathSegLinetoHorizontalRel( + void 0, + t + ); + }), + (window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs = function( + t + ) { + return new window.SVGPathSegLinetoVerticalAbs(void 0, t); + }), + (window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel = function( + t + ) { + return new window.SVGPathSegLinetoVerticalRel(void 0, t); + }), + (window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs = function( + t, + e, + n, + r + ) { + return new window.SVGPathSegCurvetoCubicSmoothAbs( + void 0, + t, + e, + n, + r + ); + }), + (window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel = function( + t, + e, + n, + r + ) { + return new window.SVGPathSegCurvetoCubicSmoothRel( + void 0, + t, + e, + n, + r + ); + }), + (window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs = function( + t, + e + ) { + return new window.SVGPathSegCurvetoQuadraticSmoothAbs( + void 0, + t, + e + ); + }), + (window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel = function( + t, + e + ) { + return new window.SVGPathSegCurvetoQuadraticSmoothRel( + void 0, + t, + e + ); + }), + 'getPathSegAtLength' in window.SVGPathElement.prototype || + (window.SVGPathElement.prototype.getPathSegAtLength = function( + t + ) { + if (void 0 === t || !isFinite(t)) + throw 'Invalid arguments.'; + var e = document.createElementNS( + 'http://www.w3.org/2000/svg', + 'path' + ); + e.setAttribute('d', this.getAttribute('d')); + var n = e.pathSegList.numberOfItems - 1; + if (n <= 0) return 0; + do { + if ( + (e.pathSegList.removeItem(n), + t > e.getTotalLength()) + ) + break; + n--; + } while (n > 0); + return n; + })), + 'SVGPathSegList' in window || + ((window.SVGPathSegList = function(t) { + (this._pathElement = t), + (this._list = this._parsePath( + this._pathElement.getAttribute('d') + )), + (this._mutationObserverConfig = { + attributes: !0, + attributeFilter: ['d'] + }), + (this._pathElementMutationObserver = new MutationObserver( + this._updateListFromPathMutations.bind(this) + )), + this._pathElementMutationObserver.observe( + this._pathElement, + this._mutationObserverConfig + ); + }), + (window.SVGPathSegList.prototype.classname = + 'SVGPathSegList'), + Object.defineProperty( + window.SVGPathSegList.prototype, + 'numberOfItems', + { + get: function() { + return ( + this._checkPathSynchronizedToList(), + this._list.length + ); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathElement.prototype, + 'pathSegList', + { + get: function() { + return ( + this._pathSegList || + (this._pathSegList = new window.SVGPathSegList( + this + )), + this._pathSegList + ); + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathElement.prototype, + 'normalizedPathSegList', + { + get: function() { + return this.pathSegList; + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathElement.prototype, + 'animatedPathSegList', + { + get: function() { + return this.pathSegList; + }, + enumerable: !0 + } + ), + Object.defineProperty( + window.SVGPathElement.prototype, + 'animatedNormalizedPathSegList', + { + get: function() { + return this.pathSegList; + }, + enumerable: !0 + } + ), + (window.SVGPathSegList.prototype._checkPathSynchronizedToList = function() { + this._updateListFromPathMutations( + this._pathElementMutationObserver.takeRecords() + ); + }), + (window.SVGPathSegList.prototype._updateListFromPathMutations = function( + t + ) { + if (this._pathElement) { + var e = !1; + t.forEach(function(t) { + 'd' == t.attributeName && (e = !0); + }), + e && + (this._list = this._parsePath( + this._pathElement.getAttribute('d') + )); + } + }), + (window.SVGPathSegList.prototype._writeListToPath = function() { + this._pathElementMutationObserver.disconnect(), + this._pathElement.setAttribute( + 'd', + window.SVGPathSegList._pathSegArrayAsString( + this._list + ) + ), + this._pathElementMutationObserver.observe( + this._pathElement, + this._mutationObserverConfig + ); + }), + (window.SVGPathSegList.prototype.segmentChanged = function( + t + ) { + this._writeListToPath(); + }), + (window.SVGPathSegList.prototype.clear = function() { + this._checkPathSynchronizedToList(), + this._list.forEach(function(t) { + t._owningPathSegList = null; + }), + (this._list = []), + this._writeListToPath(); + }), + (window.SVGPathSegList.prototype.initialize = function(t) { + return ( + this._checkPathSynchronizedToList(), + (this._list = [t]), + (t._owningPathSegList = this), + this._writeListToPath(), + t + ); + }), + (window.SVGPathSegList.prototype._checkValidIndex = function( + t + ) { + if (isNaN(t) || t < 0 || t >= this.numberOfItems) + throw 'INDEX_SIZE_ERR'; + }), + (window.SVGPathSegList.prototype.getItem = function(t) { + return ( + this._checkPathSynchronizedToList(), + this._checkValidIndex(t), + this._list[t] + ); + }), + (window.SVGPathSegList.prototype.insertItemBefore = function( + t, + e + ) { + return ( + this._checkPathSynchronizedToList(), + e > this.numberOfItems && (e = this.numberOfItems), + t._owningPathSegList && (t = t.clone()), + this._list.splice(e, 0, t), + (t._owningPathSegList = this), + this._writeListToPath(), + t + ); + }), + (window.SVGPathSegList.prototype.replaceItem = function( + t, + e + ) { + return ( + this._checkPathSynchronizedToList(), + t._owningPathSegList && (t = t.clone()), + this._checkValidIndex(e), + (this._list[e] = t), + (t._owningPathSegList = this), + this._writeListToPath(), + t + ); + }), + (window.SVGPathSegList.prototype.removeItem = function(t) { + this._checkPathSynchronizedToList(), + this._checkValidIndex(t); + var e = this._list[t]; + return ( + this._list.splice(t, 1), this._writeListToPath(), e + ); + }), + (window.SVGPathSegList.prototype.appendItem = function(t) { + return ( + this._checkPathSynchronizedToList(), + t._owningPathSegList && (t = t.clone()), + this._list.push(t), + (t._owningPathSegList = this), + this._writeListToPath(), + t + ); + }), + (window.SVGPathSegList._pathSegArrayAsString = function(t) { + var e = '', + n = !0; + return ( + t.forEach(function(t) { + n + ? ((n = !1), (e += t._asPathString())) + : (e += ' ' + t._asPathString()); + }), + e + ); + }), + (window.SVGPathSegList.prototype._parsePath = function(t) { + if (!t || 0 == t.length) return []; + var e = this, + n = function() { + this.pathSegList = []; + }; + n.prototype.appendSegment = function(t) { + this.pathSegList.push(t); + }; + var r = function(t) { + (this._string = t), + (this._currentIndex = 0), + (this._endIndex = this._string.length), + (this._previousCommand = + window.SVGPathSeg.PATHSEG_UNKNOWN), + this._skipOptionalSpaces(); + }; + (r.prototype._isCurrentSpace = function() { + var t = this._string[this._currentIndex]; + return ( + t <= ' ' && + (' ' == t || + '\n' == t || + '\t' == t || + '\r' == t || + '\f' == t) + ); + }), + (r.prototype._skipOptionalSpaces = function() { + for ( + ; + this._currentIndex < this._endIndex && + this._isCurrentSpace(); + + ) + this._currentIndex++; + return this._currentIndex < this._endIndex; + }), + (r.prototype._skipOptionalSpacesOrDelimiter = function() { + return ( + !( + this._currentIndex < this._endIndex && + !this._isCurrentSpace() && + ',' != this._string.charAt(this._currentIndex) + ) && + (this._skipOptionalSpaces() && + this._currentIndex < this._endIndex && + ',' == this._string.charAt(this._currentIndex) && + (this._currentIndex++, + this._skipOptionalSpaces()), + this._currentIndex < this._endIndex) + ); + }), + (r.prototype.hasMoreData = function() { + return this._currentIndex < this._endIndex; + }), + (r.prototype.peekSegmentType = function() { + var t = this._string[this._currentIndex]; + return this._pathSegTypeFromChar(t); + }), + (r.prototype._pathSegTypeFromChar = function(t) { + switch (t) { + case 'Z': + case 'z': + return window.SVGPathSeg.PATHSEG_CLOSEPATH; + case 'M': + return window.SVGPathSeg.PATHSEG_MOVETO_ABS; + case 'm': + return window.SVGPathSeg.PATHSEG_MOVETO_REL; + case 'L': + return window.SVGPathSeg.PATHSEG_LINETO_ABS; + case 'l': + return window.SVGPathSeg.PATHSEG_LINETO_REL; + case 'C': + return window.SVGPathSeg + .PATHSEG_CURVETO_CUBIC_ABS; + case 'c': + return window.SVGPathSeg + .PATHSEG_CURVETO_CUBIC_REL; + case 'Q': + return window.SVGPathSeg + .PATHSEG_CURVETO_QUADRATIC_ABS; + case 'q': + return window.SVGPathSeg + .PATHSEG_CURVETO_QUADRATIC_REL; + case 'A': + return window.SVGPathSeg.PATHSEG_ARC_ABS; + case 'a': + return window.SVGPathSeg.PATHSEG_ARC_REL; + case 'H': + return window.SVGPathSeg + .PATHSEG_LINETO_HORIZONTAL_ABS; + case 'h': + return window.SVGPathSeg + .PATHSEG_LINETO_HORIZONTAL_REL; + case 'V': + return window.SVGPathSeg + .PATHSEG_LINETO_VERTICAL_ABS; + case 'v': + return window.SVGPathSeg + .PATHSEG_LINETO_VERTICAL_REL; + case 'S': + return window.SVGPathSeg + .PATHSEG_CURVETO_CUBIC_SMOOTH_ABS; + case 's': + return window.SVGPathSeg + .PATHSEG_CURVETO_CUBIC_SMOOTH_REL; + case 'T': + return window.SVGPathSeg + .PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS; + case 't': + return window.SVGPathSeg + .PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL; + default: + return window.SVGPathSeg.PATHSEG_UNKNOWN; + } + }), + (r.prototype._nextCommandHelper = function(t, e) { + return ('+' == t || + '-' == t || + '.' == t || + (t >= '0' && t <= '9')) && + e != window.SVGPathSeg.PATHSEG_CLOSEPATH + ? e == window.SVGPathSeg.PATHSEG_MOVETO_ABS + ? window.SVGPathSeg.PATHSEG_LINETO_ABS + : e == window.SVGPathSeg.PATHSEG_MOVETO_REL + ? window.SVGPathSeg.PATHSEG_LINETO_REL + : e + : window.SVGPathSeg.PATHSEG_UNKNOWN; + }), + (r.prototype.initialCommandIsMoveTo = function() { + if (!this.hasMoreData()) return !0; + var t = this.peekSegmentType(); + return ( + t == window.SVGPathSeg.PATHSEG_MOVETO_ABS || + t == window.SVGPathSeg.PATHSEG_MOVETO_REL + ); + }), + (r.prototype._parseNumber = function() { + var t = 0, + e = 0, + n = 1, + r = 0, + i = 1, + o = 1, + a = this._currentIndex; + if ( + (this._skipOptionalSpaces(), + this._currentIndex < this._endIndex && + '+' == this._string.charAt(this._currentIndex) + ? this._currentIndex++ + : this._currentIndex < this._endIndex && + '-' == + this._string.charAt(this._currentIndex) && + (this._currentIndex++, (i = -1)), + !( + this._currentIndex == this._endIndex || + ((this._string.charAt(this._currentIndex) < '0' || + this._string.charAt(this._currentIndex) > + '9') && + '.' != this._string.charAt(this._currentIndex)) + )) + ) { + for ( + var s = this._currentIndex; + this._currentIndex < this._endIndex && + this._string.charAt(this._currentIndex) >= '0' && + this._string.charAt(this._currentIndex) <= '9'; + + ) + this._currentIndex++; + if (this._currentIndex != s) + for ( + var u = this._currentIndex - 1, l = 1; + u >= s; + + ) + (e += l * (this._string.charAt(u--) - '0')), + (l *= 10); + if ( + this._currentIndex < this._endIndex && + '.' == this._string.charAt(this._currentIndex) + ) { + if ( + (this._currentIndex++, + this._currentIndex >= this._endIndex || + this._string.charAt(this._currentIndex) < + '0' || + this._string.charAt(this._currentIndex) > '9') + ) + return; + for ( + ; + this._currentIndex < this._endIndex && + this._string.charAt(this._currentIndex) >= + '0' && + this._string.charAt(this._currentIndex) <= '9'; + + ) + (n *= 10), + (r += + (this._string.charAt(this._currentIndex) - + '0') / + n), + (this._currentIndex += 1); + } + if ( + this._currentIndex != a && + this._currentIndex + 1 < this._endIndex && + ('e' == this._string.charAt(this._currentIndex) || + 'E' == + this._string.charAt(this._currentIndex)) && + 'x' != + this._string.charAt(this._currentIndex + 1) && + 'm' != this._string.charAt(this._currentIndex + 1) + ) { + if ( + (this._currentIndex++, + '+' == this._string.charAt(this._currentIndex) + ? this._currentIndex++ + : '-' == + this._string.charAt(this._currentIndex) && + (this._currentIndex++, (o = -1)), + this._currentIndex >= this._endIndex || + this._string.charAt(this._currentIndex) < + '0' || + this._string.charAt(this._currentIndex) > '9') + ) + return; + for ( + ; + this._currentIndex < this._endIndex && + this._string.charAt(this._currentIndex) >= + '0' && + this._string.charAt(this._currentIndex) <= '9'; + + ) + (t *= 10), + (t += + this._string.charAt(this._currentIndex) - + '0'), + this._currentIndex++; + } + var c = e + r; + if ( + ((c *= i), + t && (c *= Math.pow(10, o * t)), + a != this._currentIndex) + ) + return this._skipOptionalSpacesOrDelimiter(), c; + } + }), + (r.prototype._parseArcFlag = function() { + if (!(this._currentIndex >= this._endIndex)) { + var t = !1, + e = this._string.charAt(this._currentIndex++); + if ('0' == e) t = !1; + else { + if ('1' != e) return; + t = !0; + } + return this._skipOptionalSpacesOrDelimiter(), t; + } + }), + (r.prototype.parseSegment = function() { + var t = this._string[this._currentIndex], + n = this._pathSegTypeFromChar(t); + if (n == window.SVGPathSeg.PATHSEG_UNKNOWN) { + if ( + this._previousCommand == + window.SVGPathSeg.PATHSEG_UNKNOWN + ) + return null; + if ( + (n = this._nextCommandHelper( + t, + this._previousCommand + )) == window.SVGPathSeg.PATHSEG_UNKNOWN + ) + return null; + } else this._currentIndex++; + switch (((this._previousCommand = n), n)) { + case window.SVGPathSeg.PATHSEG_MOVETO_REL: + return new window.SVGPathSegMovetoRel( + e, + this._parseNumber(), + this._parseNumber() + ); + case window.SVGPathSeg.PATHSEG_MOVETO_ABS: + return new window.SVGPathSegMovetoAbs( + e, + this._parseNumber(), + this._parseNumber() + ); + case window.SVGPathSeg.PATHSEG_LINETO_REL: + return new window.SVGPathSegLinetoRel( + e, + this._parseNumber(), + this._parseNumber() + ); + case window.SVGPathSeg.PATHSEG_LINETO_ABS: + return new window.SVGPathSegLinetoAbs( + e, + this._parseNumber(), + this._parseNumber() + ); + case window.SVGPathSeg + .PATHSEG_LINETO_HORIZONTAL_REL: + return new window.SVGPathSegLinetoHorizontalRel( + e, + this._parseNumber() + ); + case window.SVGPathSeg + .PATHSEG_LINETO_HORIZONTAL_ABS: + return new window.SVGPathSegLinetoHorizontalAbs( + e, + this._parseNumber() + ); + case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL: + return new window.SVGPathSegLinetoVerticalRel( + e, + this._parseNumber() + ); + case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS: + return new window.SVGPathSegLinetoVerticalAbs( + e, + this._parseNumber() + ); + case window.SVGPathSeg.PATHSEG_CLOSEPATH: + return ( + this._skipOptionalSpaces(), + new window.SVGPathSegClosePath(e) + ); + case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL: + var r = { + x1: this._parseNumber(), + y1: this._parseNumber(), + x2: this._parseNumber(), + y2: this._parseNumber(), + x: this._parseNumber(), + y: this._parseNumber() + }; + return new window.SVGPathSegCurvetoCubicRel( + e, + r.x, + r.y, + r.x1, + r.y1, + r.x2, + r.y2 + ); + case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS: + return ( + (r = { + x1: this._parseNumber(), + y1: this._parseNumber(), + x2: this._parseNumber(), + y2: this._parseNumber(), + x: this._parseNumber(), + y: this._parseNumber() + }), + new window.SVGPathSegCurvetoCubicAbs( + e, + r.x, + r.y, + r.x1, + r.y1, + r.x2, + r.y2 + ) + ); + case window.SVGPathSeg + .PATHSEG_CURVETO_CUBIC_SMOOTH_REL: + return ( + (r = { + x2: this._parseNumber(), + y2: this._parseNumber(), + x: this._parseNumber(), + y: this._parseNumber() + }), + new window.SVGPathSegCurvetoCubicSmoothRel( + e, + r.x, + r.y, + r.x2, + r.y2 + ) + ); + case window.SVGPathSeg + .PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: + return ( + (r = { + x2: this._parseNumber(), + y2: this._parseNumber(), + x: this._parseNumber(), + y: this._parseNumber() + }), + new window.SVGPathSegCurvetoCubicSmoothAbs( + e, + r.x, + r.y, + r.x2, + r.y2 + ) + ); + case window.SVGPathSeg + .PATHSEG_CURVETO_QUADRATIC_REL: + return ( + (r = { + x1: this._parseNumber(), + y1: this._parseNumber(), + x: this._parseNumber(), + y: this._parseNumber() + }), + new window.SVGPathSegCurvetoQuadraticRel( + e, + r.x, + r.y, + r.x1, + r.y1 + ) + ); + case window.SVGPathSeg + .PATHSEG_CURVETO_QUADRATIC_ABS: + return ( + (r = { + x1: this._parseNumber(), + y1: this._parseNumber(), + x: this._parseNumber(), + y: this._parseNumber() + }), + new window.SVGPathSegCurvetoQuadraticAbs( + e, + r.x, + r.y, + r.x1, + r.y1 + ) + ); + case window.SVGPathSeg + .PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: + return new window.SVGPathSegCurvetoQuadraticSmoothRel( + e, + this._parseNumber(), + this._parseNumber() + ); + case window.SVGPathSeg + .PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: + return new window.SVGPathSegCurvetoQuadraticSmoothAbs( + e, + this._parseNumber(), + this._parseNumber() + ); + case window.SVGPathSeg.PATHSEG_ARC_REL: + return ( + (r = { + x1: this._parseNumber(), + y1: this._parseNumber(), + arcAngle: this._parseNumber(), + arcLarge: this._parseArcFlag(), + arcSweep: this._parseArcFlag(), + x: this._parseNumber(), + y: this._parseNumber() + }), + new window.SVGPathSegArcRel( + e, + r.x, + r.y, + r.x1, + r.y1, + r.arcAngle, + r.arcLarge, + r.arcSweep + ) + ); + case window.SVGPathSeg.PATHSEG_ARC_ABS: + return ( + (r = { + x1: this._parseNumber(), + y1: this._parseNumber(), + arcAngle: this._parseNumber(), + arcLarge: this._parseArcFlag(), + arcSweep: this._parseArcFlag(), + x: this._parseNumber(), + y: this._parseNumber() + }), + new window.SVGPathSegArcAbs( + e, + r.x, + r.y, + r.x1, + r.y1, + r.arcAngle, + r.arcLarge, + r.arcSweep + ) + ); + default: + throw 'Unknown path seg type.'; + } + }); + var i = new n(), + o = new r(t); + if (!o.initialCommandIsMoveTo()) return []; + for (; o.hasMoreData(); ) { + var a = o.parseSegment(); + if (!a) return []; + i.appendSegment(a); + } + return i.pathSegList; + })), + String.prototype.padEnd || + (String.prototype.padEnd = function(t, e) { + return ( + (t >>= 0), + (e = String(void 0 !== e ? e : ' ')), + this.length > t + ? String(this) + : ((t -= this.length) > e.length && + (e += e.repeat(t / e.length)), + String(this) + e.slice(0, t)) + ); + }), + 'function' != typeof Object.assign && + Object.defineProperty(Object, 'assign', { + value: function(t, e) { + if (null == t) + throw new TypeError( + 'Cannot convert undefined or null to object' + ); + for ( + var n = Object(t), r = 1; + r < arguments.length; + r++ + ) { + var i = arguments[r]; + if (null != i) + for (var o in i) + Object.prototype.hasOwnProperty.call(i, o) && + (n[o] = i[o]); + } + return n; + }, + writable: !0, + configurable: !0 + }), + (i.prototype.axis = function() {}), + (i.prototype.axis.labels = function(t) { + var e = this.internal; + arguments.length && + (Object.keys(t).forEach(function(n) { + e.axis.setLabelText(n, t[n]); + }), + e.axis.updateLabels()); + }), + (i.prototype.axis.max = function(e) { + var n = this.internal, + r = n.config; + if (!arguments.length) + return { + x: r.axis_x_max, + y: r.axis_y_max, + y2: r.axis_y2_max + }; + 'object' === t(e) + ? (y(e.x) && (r.axis_x_max = e.x), + y(e.y) && (r.axis_y_max = e.y), + y(e.y2) && (r.axis_y2_max = e.y2)) + : (r.axis_y_max = r.axis_y2_max = e), + n.redraw({ + withUpdateOrgXDomain: !0, + withUpdateXDomain: !0 + }); + }), + (i.prototype.axis.min = function(e) { + var n = this.internal, + r = n.config; + if (!arguments.length) + return { + x: r.axis_x_min, + y: r.axis_y_min, + y2: r.axis_y2_min + }; + 'object' === t(e) + ? (y(e.x) && (r.axis_x_min = e.x), + y(e.y) && (r.axis_y_min = e.y), + y(e.y2) && (r.axis_y2_min = e.y2)) + : (r.axis_y_min = r.axis_y2_min = e), + n.redraw({ + withUpdateOrgXDomain: !0, + withUpdateXDomain: !0 + }); + }), + (i.prototype.axis.range = function(t) { + if (!arguments.length) + return { max: this.axis.max(), min: this.axis.min() }; + d(t.max) && this.axis.max(t.max), + d(t.min) && this.axis.min(t.min); + }), + (i.prototype.axis.types = function(t) { + var e = this.internal; + if (void 0 === t) + return { + y: e.config.axis_y_type, + y2: e.config.axis_y2_type + }; + d(t.y) && (e.config.axis_y_type = t.y), + d(t.y2) && (e.config.axis_y2_type = t.y2), + e.updateScales(), + e.redraw(); + }), + (i.prototype.category = function(t, e) { + var n = this.internal, + r = n.config; + return ( + arguments.length > 1 && + ((r.axis_x_categories[t] = e), n.redraw()), + r.axis_x_categories[t] + ); + }), + (i.prototype.categories = function(t) { + var e = this.internal, + n = e.config; + return arguments.length + ? ((n.axis_x_categories = t), + e.redraw(), + n.axis_x_categories) + : n.axis_x_categories; + }), + (i.prototype.resize = function(t) { + var e = this.internal.config; + (e.size_width = t ? t.width : null), + (e.size_height = t ? t.height : null), + this.flush(); + }), + (i.prototype.flush = function() { + this.internal.updateAndRedraw({ + withLegend: !0, + withTransition: !1, + withTransitionForTransform: !1 + }); + }), + (i.prototype.destroy = function() { + var t = this.internal; + if ( + (window.clearInterval(t.intervalForObserveInserted), + void 0 !== t.resizeTimeout && + window.clearTimeout(t.resizeTimeout), + window.detachEvent) + ) + window.detachEvent( + 'onresize', + t.resizeIfElementDisplayed + ); + else if (window.removeEventListener) + window.removeEventListener( + 'resize', + t.resizeIfElementDisplayed + ); + else { + var e = window.onresize; + e && e.add && e.remove && e.remove(t.resizeFunction); + } + return ( + t.resizeFunction.remove(), + t.unbindWindowFocus(), + t.selectChart.classed('c3', !1).html(''), + Object.keys(t).forEach(function(e) { + t[e] = null; + }), + null + ); + }), + (i.prototype.color = function(t) { + return this.internal.color(t); + }), + (i.prototype.data = function(t) { + var e = this.internal.data.targets; + return void 0 === t + ? e + : e.filter(function(e) { + return [].concat(t).indexOf(e.id) >= 0; + }); + }), + (i.prototype.data.shown = function(t) { + return this.internal.filterTargetsToShow(this.data(t)); + }), + (i.prototype.data.values = function(t) { + var e = + !(arguments.length > 1 && void 0 !== arguments[1]) || + arguments[1], + n = null; + if (t) { + var r = this.data(t); + r && + f(r) && + (n = r.reduce(function(t, n) { + var r = n.values.map(function(t) { + return t.value; + }); + return e ? (t = t.concat(r)) : t.push(r), t; + }, [])); + } + return n; + }), + (i.prototype.data.names = function(t) { + return ( + this.internal.clearLegendItemTextBoxCache(), + this.internal.updateDataAttributes('names', t) + ); + }), + (i.prototype.data.colors = function(t) { + return this.internal.updateDataAttributes('colors', t); + }), + (i.prototype.data.axes = function(t) { + return this.internal.updateDataAttributes('axes', t); + }), + (i.prototype.data.stackNormalized = function(t) { + if (void 0 === t) return this.internal.isStackNormalized(); + (this.internal.config.data_stack_normalize = !!t), + this.internal.redraw(); + }), + (i.prototype.donut = function() {}), + (i.prototype.donut.padAngle = function(t) { + if (void 0 === t) + return this.internal.config.donut_padAngle; + (this.internal.config.donut_padAngle = t), this.flush(); + }), + (i.prototype.flow = function(t) { + var e, + n, + r, + i, + o, + a, + s, + u = this.internal, + l = [], + c = u.getMaxDataCount(), + f = 0, + h = 0; + if (t.json) n = u.convertJsonToData(t.json, t.keys); + else if (t.rows) n = u.convertRowsToData(t.rows); + else { + if (!t.columns) return; + n = u.convertColumnsToData(t.columns); + } + (e = u.convertDataToTargets(n, !0)), + u.data.targets.forEach(function(t) { + var n, + r, + i = !1; + for (n = 0; n < e.length; n++) + if (t.id === e[n].id) { + for ( + i = !0, + t.values[t.values.length - 1] && + (h = t.values[t.values.length - 1].index + 1), + f = e[n].values.length, + r = 0; + r < f; + r++ + ) + (e[n].values[r].index = h + r), + u.isTimeSeries() || (e[n].values[r].x = h + r); + (t.values = t.values.concat(e[n].values)), + e.splice(n, 1); + break; + } + i || l.push(t.id); + }), + u.data.targets.forEach(function(t) { + var e, n; + for (e = 0; e < l.length; e++) + if (t.id === l[e]) + for ( + h = t.values[t.values.length - 1].index + 1, + n = 0; + n < f; + n++ + ) + t.values.push({ + id: t.id, + index: h + n, + x: u.isTimeSeries() + ? u.getOtherTargetX(h + n) + : h + n, + value: null + }); + }), + u.data.targets.length && + e.forEach(function(t) { + var e, + n = []; + for ( + e = u.data.targets[0].values[0].index; + e < h; + e++ + ) + n.push({ + id: t.id, + index: e, + x: u.isTimeSeries() ? u.getOtherTargetX(e) : e, + value: null + }); + t.values.forEach(function(t) { + (t.index += h), u.isTimeSeries() || (t.x += h); + }), + (t.values = n.concat(t.values)); + }), + (u.data.targets = u.data.targets.concat(e)), + u.getMaxDataCount(), + (o = (i = u.data.targets[0]).values[0]), + d(t.to) + ? ((f = 0), + (s = u.isTimeSeries() ? u.parseDate(t.to) : t.to), + i.values.forEach(function(t) { + t.x < s && f++; + })) + : d(t.length) && (f = t.length), + c + ? 1 === c && + u.isTimeSeries() && + ((a = (i.values[i.values.length - 1].x - o.x) / 2), + (r = [new Date(+o.x - a), new Date(+o.x + a)]), + u.updateXDomain(null, !0, !0, !1, r)) + : ((a = u.isTimeSeries() + ? i.values.length > 1 + ? i.values[i.values.length - 1].x - o.x + : o.x - u.getXDomain(u.data.targets)[0] + : 1), + (r = [o.x - a, o.x]), + u.updateXDomain(null, !0, !0, !1, r)), + u.updateTargets(u.data.targets), + u.redraw({ + flow: { + index: o.index, + length: f, + duration: y(t.duration) + ? t.duration + : u.config.transition_duration, + done: t.done, + orgDataCount: c + }, + withLegend: !0, + withTransition: c > 1, + withTrimXDomain: !1, + withUpdateXAxis: !0 + }); + }), + (r.prototype.generateFlow = function(t) { + var e = this, + n = e.config, + r = e.d3; + return function() { + var i, + o, + a, + u, + l, + c, + f, + d, + h, + p, + g, + m = t.targets, + v = t.flow, + y = t.drawBar, + b = t.drawLine, + _ = t.drawArea, + x = t.cx, + S = t.cy, + E = t.xv, + k = t.xForText, + A = t.yForText, + T = t.duration, + C = v.index, + O = v.length, + P = e.getValueOnIndex(e.data.targets[0].values, C), + M = e.getValueOnIndex(e.data.targets[0].values, C + O), + L = e.x.domain(), + j = v.duration || T, + D = v.done || function() {}, + R = e.generateWait(); + (e.flowing = !0), + e.data.targets.forEach(function(t) { + t.values.splice(0, O); + }), + (a = e.updateXDomain(m, !0, !0)), + e.updateXGrid && e.updateXGrid(!0), + (u = e.xgrid || r.selectAll([])), + (l = e.xgridLines || r.selectAll([])), + (c = e.mainRegion || r.selectAll([])), + (f = e.mainText || r.selectAll([])), + (d = e.mainBar || r.selectAll([])), + (h = e.mainLine || r.selectAll([])), + (p = e.mainArea || r.selectAll([])), + (g = e.mainCircle || r.selectAll([])), + v.orgDataCount + ? (i = + 1 === v.orgDataCount || (P && P.x) === (M && M.x) + ? e.x(L[0]) - e.x(a[0]) + : e.isTimeSeries() + ? e.x(L[0]) - e.x(a[0]) + : e.x(P.x) - e.x(M.x)) + : 1 !== e.data.targets[0].values.length + ? (i = e.x(L[0]) - e.x(a[0])) + : e.isTimeSeries() + ? ((P = e.getValueOnIndex( + e.data.targets[0].values, + 0 + )), + (M = e.getValueOnIndex( + e.data.targets[0].values, + e.data.targets[0].values.length - 1 + )), + (i = e.x(P.x) - e.x(M.x))) + : (i = s(a) / 2), + (o = + 'translate(' + + i + + ',0) scale(' + + s(L) / s(a) + + ',1)'), + e.hideXGridFocus(); + var z = r + .transition() + .ease(r.easeLinear) + .duration(j); + R.add(e.xAxis(e.axes.x, z)), + R.add(d.transition(z).attr('transform', o)), + R.add(h.transition(z).attr('transform', o)), + R.add(p.transition(z).attr('transform', o)), + R.add(g.transition(z).attr('transform', o)), + R.add(f.transition(z).attr('transform', o)), + R.add( + c + .filter(e.isRegionOnX) + .transition(z) + .attr('transform', o) + ), + R.add(u.transition(z).attr('transform', o)), + R.add(l.transition(z).attr('transform', o)), + R(function() { + var t, + r = [], + i = []; + if (O) { + for (t = 0; t < O; t++) + r.push('.' + w.shape + '-' + (C + t)), + i.push('.' + w.text + '-' + (C + t)); + e.svg + .selectAll('.' + w.shapes) + .selectAll(r) + .remove(), + e.svg + .selectAll('.' + w.texts) + .selectAll(i) + .remove(), + e.svg.select('.' + w.xgrid).remove(); + } + u + .attr('transform', null) + .attr('x1', e.xgridAttr.x1) + .attr('x2', e.xgridAttr.x2) + .attr('y1', e.xgridAttr.y1) + .attr('y2', e.xgridAttr.y2) + .style('opacity', e.xgridAttr.opacity), + l.attr('transform', null), + l + .select('line') + .attr('x1', n.axis_rotated ? 0 : E) + .attr('x2', n.axis_rotated ? e.width : E), + l + .select('text') + .attr('x', n.axis_rotated ? e.width : 0) + .attr('y', E), + d.attr('transform', null).attr('d', y), + h.attr('transform', null).attr('d', b), + p.attr('transform', null).attr('d', _), + g + .attr('transform', null) + .attr('cx', x) + .attr('cy', S), + f + .attr('transform', null) + .attr('x', k) + .attr('y', A) + .style('fill-opacity', e.opacityForText.bind(e)), + c.attr('transform', null), + c + .filter(e.isRegionOnX) + .attr('x', e.regionX.bind(e)) + .attr('width', e.regionWidth.bind(e)), + D(), + (e.flowing = !1); + }); + }; + }), + (i.prototype.focus = function(t) { + var e, + n = this.internal; + (t = n.mapToTargetIds(t)), + (e = n.svg.selectAll( + n.selectorTargets(t.filter(n.isTargetToShow, n)) + )), + this.revert(), + this.defocus(), + e.classed(w.focused, !0).classed(w.defocused, !1), + n.hasArcType() && n.expandArc(t), + n.toggleFocusLegend(t, !0), + (n.focusedTargetIds = t), + (n.defocusedTargetIds = n.defocusedTargetIds.filter( + function(e) { + return t.indexOf(e) < 0; + } + )); + }), + (i.prototype.defocus = function(t) { + var e = this.internal; + (t = e.mapToTargetIds(t)), + e.svg + .selectAll( + e.selectorTargets(t.filter(e.isTargetToShow, e)) + ) + .classed(w.focused, !1) + .classed(w.defocused, !0), + e.hasArcType() && e.unexpandArc(t), + e.toggleFocusLegend(t, !1), + (e.focusedTargetIds = e.focusedTargetIds.filter(function( + e + ) { + return t.indexOf(e) < 0; + })), + (e.defocusedTargetIds = t); + }), + (i.prototype.revert = function(t) { + var e = this.internal; + (t = e.mapToTargetIds(t)), + e.svg + .selectAll(e.selectorTargets(t)) + .classed(w.focused, !1) + .classed(w.defocused, !1), + e.hasArcType() && e.unexpandArc(t), + e.config.legend_show && + (e.showLegend(t.filter(e.isLegendToShow.bind(e))), + e.legend + .selectAll(e.selectorLegends(t)) + .filter(function() { + return e.d3 + .select(this) + .classed(w.legendItemFocused); + }) + .classed(w.legendItemFocused, !1)), + (e.focusedTargetIds = []), + (e.defocusedTargetIds = []); + }), + (i.prototype.xgrids = function(t) { + var e = this.internal, + n = e.config; + return t + ? ((n.grid_x_lines = t), + e.redrawWithoutRescale(), + n.grid_x_lines) + : n.grid_x_lines; + }), + (i.prototype.xgrids.add = function(t) { + var e = this.internal; + return this.xgrids(e.config.grid_x_lines.concat(t || [])); + }), + (i.prototype.xgrids.remove = function(t) { + this.internal.removeGridLines(t, !0); + }), + (i.prototype.ygrids = function(t) { + var e = this.internal, + n = e.config; + return t + ? ((n.grid_y_lines = t), + e.redrawWithoutRescale(), + n.grid_y_lines) + : n.grid_y_lines; + }), + (i.prototype.ygrids.add = function(t) { + var e = this.internal; + return this.ygrids(e.config.grid_y_lines.concat(t || [])); + }), + (i.prototype.ygrids.remove = function(t) { + this.internal.removeGridLines(t, !1); + }), + (i.prototype.groups = function(t) { + var e = this.internal, + n = e.config; + return v(t) + ? n.data_groups + : ((n.data_groups = t), e.redraw(), n.data_groups); + }), + (i.prototype.legend = function() {}), + (i.prototype.legend.show = function(t) { + var e = this.internal; + e.showLegend(e.mapToTargetIds(t)), + e.updateAndRedraw({ withLegend: !0 }); + }), + (i.prototype.legend.hide = function(t) { + var e = this.internal; + e.hideLegend(e.mapToTargetIds(t)), + e.updateAndRedraw({ withLegend: !1 }); + }), + (i.prototype.load = function(t) { + var e = this.internal, + n = e.config; + t.xs && e.addXs(t.xs), + 'names' in t && + i.prototype.data.names.bind(this)(t.names), + 'classes' in t && + Object.keys(t.classes).forEach(function(e) { + n.data_classes[e] = t.classes[e]; + }), + 'categories' in t && + e.isCategorized() && + (n.axis_x_categories = t.categories), + 'axes' in t && + Object.keys(t.axes).forEach(function(e) { + n.data_axes[e] = t.axes[e]; + }), + 'colors' in t && + Object.keys(t.colors).forEach(function(e) { + n.data_colors[e] = t.colors[e]; + }), + 'cacheIds' in t && e.hasCaches(t.cacheIds) + ? e.load(e.getCaches(t.cacheIds), t.done) + : t.unload + ? e.unload( + e.mapToTargetIds(!0 === t.unload ? null : t.unload), + function() { + e.loadFromArgs(t); + } + ) + : e.loadFromArgs(t); + }), + (i.prototype.unload = function(t) { + var e = this.internal; + (t = t || {}) instanceof Array + ? (t = { ids: t }) + : 'string' == typeof t && (t = { ids: [t] }), + e.unload(e.mapToTargetIds(t.ids), function() { + e.redraw({ + withUpdateOrgXDomain: !0, + withUpdateXDomain: !0, + withLegend: !0 + }), + t.done && t.done(); + }); + }), + (i.prototype.pie = function() {}), + (i.prototype.pie.padAngle = function(t) { + if (void 0 === t) return this.internal.config.pie_padAngle; + (this.internal.config.pie_padAngle = t), this.flush(); + }), + (i.prototype.regions = function(t) { + var e = this.internal, + n = e.config; + return t + ? ((n.regions = t), e.redrawWithoutRescale(), n.regions) + : n.regions; + }), + (i.prototype.regions.add = function(t) { + var e = this.internal, + n = e.config; + return t + ? ((n.regions = n.regions.concat(t)), + e.redrawWithoutRescale(), + n.regions) + : n.regions; + }), + (i.prototype.regions.remove = function(t) { + var e, + n, + r, + i = this.internal, + o = i.config; + return ( + (e = u((t = t || {}), 'duration', o.transition_duration)), + (n = u(t, 'classes', [w.region])), + (r = i.main.select('.' + w.regions).selectAll( + n.map(function(t) { + return '.' + t; + }) + )), + (e ? r.transition().duration(e) : r) + .style('opacity', 0) + .remove(), + (o.regions = o.regions.filter(function(t) { + var e = !1; + return ( + !t.class || + (t.class.split(' ').forEach(function(t) { + n.indexOf(t) >= 0 && (e = !0); + }), + !e) + ); + })), + o.regions + ); + }), + (i.prototype.selected = function(t) { + var e = this.internal, + n = e.d3; + return e.main + .selectAll('.' + w.shapes + e.getTargetSelectorSuffix(t)) + .selectAll('.' + w.shape) + .filter(function() { + return n.select(this).classed(w.SELECTED); + }) + .nodes() + .map(function(t) { + var e = t.__data__; + return e.data ? e.data : e; + }); + }), + (i.prototype.select = function(t, e, n) { + var r = this.internal, + i = r.d3, + o = r.config; + o.data_selection_enabled && + r.main + .selectAll('.' + w.shapes) + .selectAll('.' + w.shape) + .each(function(a, s) { + var u = i.select(this), + l = a.data ? a.data.id : a.id, + c = r.getToggle(this, a).bind(r), + f = + o.data_selection_grouped || + !t || + t.indexOf(l) >= 0, + h = !e || e.indexOf(s) >= 0, + p = u.classed(w.SELECTED); + u.classed(w.line) || + u.classed(w.area) || + (f && h + ? o.data_selection_isselectable(a) && + !p && + c(!0, u.classed(w.SELECTED, !0), a, s) + : d(n) && + n && + p && + c(!1, u.classed(w.SELECTED, !1), a, s)); + }); + }), + (i.prototype.unselect = function(t, e) { + var n = this.internal, + r = n.d3, + i = n.config; + i.data_selection_enabled && + n.main + .selectAll('.' + w.shapes) + .selectAll('.' + w.shape) + .each(function(o, a) { + var s = r.select(this), + u = o.data ? o.data.id : o.id, + l = n.getToggle(this, o).bind(n), + c = + i.data_selection_grouped || + !t || + t.indexOf(u) >= 0, + f = !e || e.indexOf(a) >= 0, + d = s.classed(w.SELECTED); + s.classed(w.line) || + s.classed(w.area) || + (c && + f && + i.data_selection_isselectable(o) && + d && + l(!1, s.classed(w.SELECTED, !1), o, a)); + }); + }), + (i.prototype.show = function(t, e) { + var n, + r = this.internal; + (t = r.mapToTargetIds(t)), + (e = e || {}), + r.removeHiddenTargetIds(t), + (n = r.svg.selectAll(r.selectorTargets(t))) + .transition() + .style('display', 'initial', 'important') + .style('opacity', 1, 'important') + .call(r.endall, function() { + n.style('opacity', null).style('opacity', 1); + }), + e.withLegend && r.showLegend(t), + r.redraw({ + withUpdateOrgXDomain: !0, + withUpdateXDomain: !0, + withLegend: !0 + }); + }), + (i.prototype.hide = function(t, e) { + var n, + r = this.internal; + (t = r.mapToTargetIds(t)), + (e = e || {}), + r.addHiddenTargetIds(t), + (n = r.svg.selectAll(r.selectorTargets(t))) + .transition() + .style('opacity', 0, 'important') + .call(r.endall, function() { + n.style('opacity', null).style('opacity', 0), + n.style('display', 'none'); + }), + e.withLegend && r.hideLegend(t), + r.redraw({ + withUpdateOrgXDomain: !0, + withUpdateXDomain: !0, + withLegend: !0 + }); + }), + (i.prototype.toggle = function(t, e) { + var n = this, + r = this.internal; + r.mapToTargetIds(t).forEach(function(t) { + r.isTargetToShow(t) ? n.hide(t, e) : n.show(t, e); + }); + }), + (i.prototype.tooltip = function() {}), + (i.prototype.tooltip.show = function(t) { + var e, + n, + r = this.internal, + i = {}; + t.mouse + ? (i = t.mouse) + : (t.data + ? (n = t.data) + : void 0 !== t.x && + ((e = t.id + ? r.data.targets.filter(function(e) { + return e.id === t.id; + }) + : r.data.targets), + (n = r.filterByX(e, t.x).slice(0, 1)[0])), + (i = n ? r.getMousePosition(n) : null)), + r.dispatchEvent('mousemove', i), + r.config.tooltip_onshow.call(r, n); + }), + (i.prototype.tooltip.hide = function() { + this.internal.dispatchEvent('mouseout', 0), + this.internal.config.tooltip_onhide.call(this); + }), + (i.prototype.transform = function(t, e) { + var n = this.internal, + r = + ['pie', 'donut'].indexOf(t) >= 0 + ? { withTransform: !0 } + : null; + n.transformTo(e, t, r); + }), + (r.prototype.transformTo = function(t, e, n) { + var r = this, + i = !r.hasArcType(), + o = n || { withTransitionForAxis: i }; + (o.withTransitionForTransform = !1), + (r.transiting = !1), + r.setTargetType(t, e), + r.updateTargets(r.data.targets), + r.updateAndRedraw(o); + }), + (i.prototype.x = function(t) { + var e = this.internal; + return ( + arguments.length && + (e.updateTargetX(e.data.targets, t), + e.redraw({ + withUpdateOrgXDomain: !0, + withUpdateXDomain: !0 + })), + e.data.xs + ); + }), + (i.prototype.xs = function(t) { + var e = this.internal; + return ( + arguments.length && + (e.updateTargetXs(e.data.targets, t), + e.redraw({ + withUpdateOrgXDomain: !0, + withUpdateXDomain: !0 + })), + e.data.xs + ); + }), + (i.prototype.zoom = function(t) { + var e = this.internal; + return t + ? (e.isTimeSeries() && + (t = t.map(function(t) { + return e.parseDate(t); + })), + e.config.subchart_show + ? e.brush.selectionAsValue(t, !0) + : (e.updateXDomain(null, !0, !1, !1, t), + e.redraw({ + withY: e.config.zoom_rescale, + withSubchart: !1 + })), + e.config.zoom_onzoom.call(this, e.x.orgDomain()), + t) + : e.x.domain(); + }), + (i.prototype.zoom.enable = function(t) { + var e = this.internal; + (e.config.zoom_enabled = t), e.updateAndRedraw(); + }), + (i.prototype.unzoom = function() { + var t = this.internal; + t.config.subchart_show + ? t.brush.clear() + : (t.updateXDomain(null, !0, !1, !1, t.subX.domain()), + t.redraw({ + withY: t.config.zoom_rescale, + withSubchart: !1 + })); + }), + (i.prototype.zoom.max = function(t) { + var e = this.internal, + n = e.config, + r = e.d3; + if (0 !== t && !t) return n.zoom_x_max; + n.zoom_x_max = r.max([e.orgXDomain[1], t]); + }), + (i.prototype.zoom.min = function(t) { + var e = this.internal, + n = e.config, + r = e.d3; + if (0 !== t && !t) return n.zoom_x_min; + n.zoom_x_min = r.min([e.orgXDomain[0], t]); + }), + (i.prototype.zoom.range = function(t) { + if (!arguments.length) + return { max: this.domain.max(), min: this.domain.min() }; + d(t.max) && this.domain.max(t.max), + d(t.min) && this.domain.min(t.min); + }), + (r.prototype.initPie = function() { + var t = this, + e = t.d3; + t.pie = e + .pie() + .padAngle(this.getPadAngle.bind(this)) + .value(function(t) { + return t.values.reduce(function(t, e) { + return t + e.value; + }, 0); + }); + var n = t.getOrderFunction(); + if (n && (t.isOrderAsc() || t.isOrderDesc())) { + var r = n; + n = function(t, e) { + return -1 * r(t, e); + }; + } + t.pie.sort(n || null); + }), + (r.prototype.updateRadius = function() { + var t = this, + e = t.config, + n = e.gauge_width || e.donut_width, + r = + t.filterTargetsToShow(t.data.targets).length * + t.config.gauge_arcs_minWidth; + (t.radiusExpanded = + (Math.min(t.arcWidth, t.arcHeight) / 2) * + (t.hasType('gauge') ? 0.85 : 1)), + (t.radius = 0.95 * t.radiusExpanded), + (t.innerRadiusRatio = n + ? (t.radius - n) / t.radius + : 0.6), + (t.innerRadius = + t.hasType('donut') || t.hasType('gauge') + ? t.radius * t.innerRadiusRatio + : 0), + (t.gaugeArcWidth = + n || + (r <= t.radius - t.innerRadius + ? t.radius - t.innerRadius + : r <= t.radius + ? r + : t.radius)); + }), + (r.prototype.getPadAngle = function() { + return this.hasType('pie') + ? this.config.pie_padAngle || 0 + : (this.hasType('donut') && this.config.donut_padAngle) || + 0; + }), + (r.prototype.updateArc = function() { + var t = this; + (t.svgArc = t.getSvgArc()), + (t.svgArcExpanded = t.getSvgArcExpanded()), + (t.svgArcExpandedSub = t.getSvgArcExpanded(0.98)); + }), + (r.prototype.updateAngle = function(t) { + var e, + n, + r, + i, + o = this, + a = o.config, + s = !1, + u = 0; + return a + ? (o + .pie(o.filterTargetsToShow(o.data.targets)) + .forEach(function(e) { + s || + e.data.id !== t.data.id || + ((s = !0), ((t = e).index = u)), + u++; + }), + isNaN(t.startAngle) && (t.startAngle = 0), + isNaN(t.endAngle) && (t.endAngle = t.startAngle), + o.isGaugeType(t.data) && + ((e = a.gauge_min), + (n = a.gauge_max), + (r = + (Math.PI * (a.gauge_fullCircle ? 2 : 1)) / (n - e)), + (i = + t.value < e + ? 0 + : t.value < n + ? t.value - e + : n - e), + (t.startAngle = a.gauge_startingAngle), + (t.endAngle = t.startAngle + r * i)), + s ? t : null) + : null; + }), + (r.prototype.getSvgArc = function() { + var t = this, + e = t.hasType('gauge'), + n = + t.gaugeArcWidth / + t.filterTargetsToShow(t.data.targets).length, + r = t.d3 + .arc() + .outerRadius(function(r) { + return e ? t.radius - n * r.index : t.radius; + }) + .innerRadius(function(r) { + return e + ? t.radius - n * (r.index + 1) + : t.innerRadius; + }), + i = function(e, n) { + var i; + return n + ? r(e) + : (i = t.updateAngle(e)) + ? r(i) + : 'M 0 0'; + }; + return (i.centroid = r.centroid), i; + }), + (r.prototype.getSvgArcExpanded = function(t) { + t = t || 1; + var e = this, + n = e.hasType('gauge'), + r = + e.gaugeArcWidth / + e.filterTargetsToShow(e.data.targets).length, + i = Math.min( + e.radiusExpanded * t - e.radius, + 0.8 * r - 100 * (1 - t) + ), + o = e.d3 + .arc() + .outerRadius(function(o) { + return n + ? e.radius - r * o.index + i + : e.radiusExpanded * t; + }) + .innerRadius(function(t) { + return n + ? e.radius - r * (t.index + 1) + : e.innerRadius; + }); + return function(t) { + var n = e.updateAngle(t); + return n ? o(n) : 'M 0 0'; + }; + }), + (r.prototype.getArc = function(t, e, n) { + return n || this.isArcType(t.data) + ? this.svgArc(t, e) + : 'M 0 0'; + }), + (r.prototype.transformForArcLabel = function(t) { + var e, + n, + r, + i, + o, + a = this, + s = a.config, + u = a.updateAngle(t), + l = '', + c = a.hasType('gauge'); + if (u && !c) + (e = this.svgArc.centroid(u)), + (n = isNaN(e[0]) ? 0 : e[0]), + (r = isNaN(e[1]) ? 0 : e[1]), + (i = Math.sqrt(n * n + r * r)), + (l = + 'translate(' + + n * + (o = + a.hasType('donut') && s.donut_label_ratio + ? p(s.donut_label_ratio) + ? s.donut_label_ratio(t, a.radius, i) + : s.donut_label_ratio + : a.hasType('pie') && s.pie_label_ratio + ? p(s.pie_label_ratio) + ? s.pie_label_ratio(t, a.radius, i) + : s.pie_label_ratio + : a.radius && i + ? ((36 / a.radius > 0.375 + ? 1.175 - 36 / a.radius + : 0.8) * + a.radius) / + i + : 0) + + ',' + + r * o + + ')'); + else if ( + u && + c && + a.filterTargetsToShow(a.data.targets).length > 1 + ) { + var f = Math.sin(u.endAngle - Math.PI / 2); + l = + 'translate(' + + (n = + Math.cos(u.endAngle - Math.PI / 2) * + (a.radiusExpanded + 25)) + + ',' + + (r = + f * (a.radiusExpanded + 15 - Math.abs(10 * f)) + 3) + + ')'; + } + return l; + }), + (r.prototype.getArcRatio = function(t) { + return this.getRatio('arc', t); + }), + (r.prototype.convertToArcData = function(t) { + return this.addName({ + id: t.data.id, + value: t.value, + ratio: this.getRatio('arc', t), + index: t.index + }); + }), + (r.prototype.textForArcLabel = function(t) { + var e, + n, + r, + i, + o, + a = this; + return a.shouldShowArcLabel() + ? ((n = (e = a.updateAngle(t)) ? e.value : null), + (r = a.getRatio('arc', e)), + (i = t.data.id), + a.hasType('gauge') || a.meetsArcLabelThreshold(r) + ? (o = a.getArcLabelFormat()) + ? o(n, r, i) + : a.defaultArcValueFormat(n, r) + : '') + : ''; + }), + (r.prototype.textForGaugeMinMax = function(t, e) { + var n = this.getGaugeLabelExtents(); + return n ? n(t, e) : t; + }), + (r.prototype.expandArc = function(t) { + var e, + n = this; + n.transiting + ? (e = window.setInterval(function() { + n.transiting || + (window.clearInterval(e), + n.legend + .selectAll('.c3-legend-item-focused') + .size() > 0 && n.expandArc(t)); + }, 10)) + : ((t = n.mapToTargetIds(t)), + n.svg + .selectAll(n.selectorTargets(t, '.' + w.chartArc)) + .each(function(t) { + n.shouldExpand(t.data.id) && + n.d3 + .select(this) + .selectAll('path') + .transition() + .duration(n.expandDuration(t.data.id)) + .attr('d', n.svgArcExpanded) + .transition() + .duration(2 * n.expandDuration(t.data.id)) + .attr('d', n.svgArcExpandedSub) + .each(function(t) { + n.isDonutType(t.data); + }); + })); + }), + (r.prototype.unexpandArc = function(t) { + var e = this; + e.transiting || + ((t = e.mapToTargetIds(t)), + e.svg + .selectAll(e.selectorTargets(t, '.' + w.chartArc)) + .selectAll('path') + .transition() + .duration(function(t) { + return e.expandDuration(t.data.id); + }) + .attr('d', e.svgArc), + e.svg.selectAll('.' + w.arc)); + }), + (r.prototype.expandDuration = function(t) { + var e = this.config; + return this.isDonutType(t) + ? e.donut_expand_duration + : this.isGaugeType(t) + ? e.gauge_expand_duration + : this.isPieType(t) + ? e.pie_expand_duration + : 50; + }), + (r.prototype.shouldExpand = function(t) { + var e = this.config; + return ( + (this.isDonutType(t) && e.donut_expand) || + (this.isGaugeType(t) && e.gauge_expand) || + (this.isPieType(t) && e.pie_expand) + ); + }), + (r.prototype.shouldShowArcLabel = function() { + var t = this.config, + e = !0; + return ( + this.hasType('donut') + ? (e = t.donut_label_show) + : this.hasType('pie') && (e = t.pie_label_show), + e + ); + }), + (r.prototype.meetsArcLabelThreshold = function(t) { + var e = this.config; + return ( + t >= + (this.hasType('donut') + ? e.donut_label_threshold + : e.pie_label_threshold) + ); + }), + (r.prototype.getArcLabelFormat = function() { + var t = this.config, + e = t.pie_label_format; + return ( + this.hasType('gauge') + ? (e = t.gauge_label_format) + : this.hasType('donut') && (e = t.donut_label_format), + e + ); + }), + (r.prototype.getGaugeLabelExtents = function() { + return this.config.gauge_label_extents; + }), + (r.prototype.getArcTitle = function() { + return this.hasType('donut') ? this.config.donut_title : ''; + }), + (r.prototype.updateTargetsForArc = function(t) { + var e, + n = this, + r = n.main, + i = n.classChartArc.bind(n), + o = n.classArcs.bind(n), + a = n.classFocus.bind(n); + (e = r + .select('.' + w.chartArcs) + .selectAll('.' + w.chartArc) + .data(n.pie(t)) + .attr('class', function(t) { + return i(t) + a(t.data); + }) + .enter() + .append('g') + .attr('class', i)) + .append('g') + .attr('class', o), + e + .append('text') + .attr('dy', n.hasType('gauge') ? '-.1em' : '.35em') + .style('opacity', 0) + .style('text-anchor', 'middle') + .style('pointer-events', 'none'); + }), + (r.prototype.initArc = function() { + var t = this; + (t.arcs = t.main + .select('.' + w.chart) + .append('g') + .attr('class', w.chartArcs) + .attr('transform', t.getTranslate('arc'))), + t.arcs + .append('text') + .attr('class', w.chartArcsTitle) + .style('text-anchor', 'middle') + .text(t.getArcTitle()); + }), + (r.prototype.redrawArc = function(t, e, n) { + var r, + i, + o, + a, + s = this, + u = s.d3, + l = s.config, + c = s.main, + f = s.hasType('gauge'); + if ( + ((i = (r = c + .selectAll('.' + w.arcs) + .selectAll('.' + w.arc) + .data(s.arcData.bind(s))) + .enter() + .append('path') + .attr('class', s.classArc.bind(s)) + .style('fill', function(t) { + return s.color(t.data); + }) + .style('cursor', function(t) { + return l.interaction_enabled && + l.data_selection_isselectable(t) + ? 'pointer' + : null; + }) + .each(function(t) { + s.isGaugeType(t.data) && + (t.startAngle = t.endAngle = l.gauge_startingAngle), + (this._current = t); + }) + .merge(r)), + f && + ((a = (o = c + .selectAll('.' + w.arcs) + .selectAll('.' + w.arcLabelLine) + .data(s.arcData.bind(s))) + .enter() + .append('rect') + .attr('class', function(t) { + return ( + w.arcLabelLine + + ' ' + + w.target + + ' ' + + w.target + + '-' + + t.data.id + ); + }) + .merge(o)), + 1 === s.filterTargetsToShow(s.data.targets).length + ? a.style('display', 'none') + : a + .style('fill', function(t) { + return s.levelColor + ? s.levelColor(t.data.values[0].value) + : s.color(t.data); + }) + .style( + 'display', + l.gauge_labelLine_show ? '' : 'none' + ) + .each(function(t) { + var e = 0, + n = 0, + r = 0, + i = ''; + if (s.hiddenTargetIds.indexOf(t.data.id) < 0) { + var o = s.updateAngle(t), + a = + (s.gaugeArcWidth / + s.filterTargetsToShow(s.data.targets) + .length) * + (o.index + 1), + l = o.endAngle - Math.PI / 2, + c = s.radius - a, + f = l - (0 === c ? 0 : 1 / c); + (e = s.radiusExpanded - s.radius + a), + (n = Math.cos(f) * c), + (r = Math.sin(f) * c), + (i = + 'rotate(' + + (180 * l) / Math.PI + + ', ' + + n + + ', ' + + r + + ')'); + } + u.select(this) + .attr('x', n) + .attr('y', r) + .attr('width', e) + .attr('height', 2) + .attr('transform', i) + .style( + 'stroke-dasharray', + '0, ' + (e + 2) + ', 0' + ); + })), + i + .attr('transform', function(t) { + return !s.isGaugeType(t.data) && n ? 'scale(0)' : ''; + }) + .on( + 'mouseover', + l.interaction_enabled + ? function(t) { + var e, n; + s.transiting || + ((e = s.updateAngle(t)) && + ((n = s.convertToArcData(e)), + s.expandArc(e.data.id), + s.api.focus(e.data.id), + s.toggleFocusLegend(e.data.id, !0), + s.config.data_onmouseover(n, this))); + } + : null + ) + .on( + 'mousemove', + l.interaction_enabled + ? function(t) { + var e, + n = s.updateAngle(t); + n && + ((e = [s.convertToArcData(n)]), + s.showTooltip(e, this)); + } + : null + ) + .on( + 'mouseout', + l.interaction_enabled + ? function(t) { + var e, n; + s.transiting || + ((e = s.updateAngle(t)) && + ((n = s.convertToArcData(e)), + s.unexpandArc(e.data.id), + s.api.revert(), + s.revertLegend(), + s.hideTooltip(), + s.config.data_onmouseout(n, this))); + } + : null + ) + .on( + 'click', + l.interaction_enabled + ? function(t, e) { + var n, + r = s.updateAngle(t); + r && + ((n = s.convertToArcData(r)), + s.toggleShape && s.toggleShape(this, n, e), + s.config.data_onclick.call(s.api, n, this)); + } + : null + ) + .each(function() { + s.transiting = !0; + }) + .transition() + .duration(t) + .attrTween('d', function(t) { + var e, + n = s.updateAngle(t); + return n + ? (isNaN(this._current.startAngle) && + (this._current.startAngle = 0), + isNaN(this._current.endAngle) && + (this._current.endAngle = this._current.startAngle), + (e = u.interpolate(this._current, n)), + (this._current = e(0)), + function(n) { + if (null === s.config) return 'M 0 0'; + var r = e(n); + return (r.data = t.data), s.getArc(r, !0); + }) + : function() { + return 'M 0 0'; + }; + }) + .attr('transform', n ? 'scale(1)' : '') + .style('fill', function(t) { + return s.levelColor + ? s.levelColor(t.data.values[0].value) + : s.color(t.data.id); + }) + .call(s.endall, function() { + s.transiting = !1; + }), + r + .exit() + .transition() + .duration(e) + .style('opacity', 0) + .remove(), + c + .selectAll('.' + w.chartArc) + .select('text') + .style('opacity', 0) + .attr('class', function(t) { + return s.isGaugeType(t.data) ? w.gaugeValue : ''; + }) + .text(s.textForArcLabel.bind(s)) + .attr('transform', s.transformForArcLabel.bind(s)) + .style('font-size', function(t) { + return s.isGaugeType(t.data) && + 1 === s.filterTargetsToShow(s.data.targets).length + ? Math.round(s.radius / 5) + 'px' + : ''; + }) + .transition() + .duration(t) + .style('opacity', function(t) { + return s.isTargetToShow(t.data.id) && + s.isArcType(t.data) + ? 1 + : 0; + }), + c + .select('.' + w.chartArcsTitle) + .style('opacity', s.hasType('donut') || f ? 1 : 0), + f) + ) { + var d = 0, + h = s.arcs + .select('g.' + w.chartArcsBackground) + .selectAll('path.' + w.chartArcsBackground) + .data(s.data.targets); + h + .enter() + .append('path') + .attr('class', function(t, e) { + return ( + w.chartArcsBackground + + ' ' + + w.chartArcsBackground + + '-' + + e + ); + }) + .merge(h) + .attr('d', function(t) { + if (s.hiddenTargetIds.indexOf(t.id) >= 0) + return 'M 0 0'; + var e = { + data: [{ value: l.gauge_max }], + startAngle: l.gauge_startingAngle, + endAngle: + -1 * + l.gauge_startingAngle * + (l.gauge_fullCircle ? Math.PI : 1), + index: d++ + }; + return s.getArc(e, !0, !0); + }), + h.exit().remove(), + s.arcs + .select('.' + w.chartArcsGaugeUnit) + .attr('dy', '.75em') + .text(l.gauge_label_show ? l.gauge_units : ''), + s.arcs + .select('.' + w.chartArcsGaugeMin) + .attr( + 'dx', + -1 * + (s.innerRadius + + (s.radius - s.innerRadius) / + (l.gauge_fullCircle ? 1 : 2)) + + 'px' + ) + .attr('dy', '1.2em') + .text( + l.gauge_label_show + ? s.textForGaugeMinMax(l.gauge_min, !1) + : '' + ), + s.arcs + .select('.' + w.chartArcsGaugeMax) + .attr( + 'dx', + s.innerRadius + + (s.radius - s.innerRadius) / + (l.gauge_fullCircle ? 1 : 2) + + 'px' + ) + .attr('dy', '1.2em') + .text( + l.gauge_label_show + ? s.textForGaugeMinMax(l.gauge_max, !0) + : '' + ); + } + }), + (r.prototype.initGauge = function() { + var t = this.arcs; + this.hasType('gauge') && + (t.append('g').attr('class', w.chartArcsBackground), + t + .append('text') + .attr('class', w.chartArcsGaugeUnit) + .style('text-anchor', 'middle') + .style('pointer-events', 'none'), + t + .append('text') + .attr('class', w.chartArcsGaugeMin) + .style('text-anchor', 'middle') + .style('pointer-events', 'none'), + t + .append('text') + .attr('class', w.chartArcsGaugeMax) + .style('text-anchor', 'middle') + .style('pointer-events', 'none')); + }), + (r.prototype.getGaugeLabelHeight = function() { + return this.config.gauge_label_show ? 20 : 0; + }), + (r.prototype.addToCache = function(t, e) { + this.cache['$'.concat(t)] = e; + }), + (r.prototype.getFromCache = function(t) { + return this.cache['$'.concat(t)]; + }), + (r.prototype.resetCache = function() { + var t = this; + Object.keys(this.cache) + .filter(function(t) { + return /^\$/.test(t); + }) + .forEach(function(e) { + delete t.cache[e]; + }); + }), + (r.prototype.hasCaches = function(t) { + for (var e = 0; e < t.length; e++) + if (!(t[e] in this.cache)) return !1; + return !0; + }), + (r.prototype.addCache = function(t, e) { + this.cache[t] = this.cloneTarget(e); + }), + (r.prototype.getCaches = function(t) { + var e, + n = []; + for (e = 0; e < t.length; e++) + t[e] in this.cache && + n.push(this.cloneTarget(this.cache[t[e]])); + return n; + }), + (r.prototype.categoryName = function(t) { + var e = this.config; + return t < e.axis_x_categories.length + ? e.axis_x_categories[t] + : t; + }), + (r.prototype.generateTargetClass = function(t) { + return t || 0 === t ? ('-' + t).replace(/\s/g, '-') : ''; + }), + (r.prototype.generateClass = function(t, e) { + return ' ' + t + ' ' + t + this.generateTargetClass(e); + }), + (r.prototype.classText = function(t) { + return this.generateClass(w.text, t.index); + }), + (r.prototype.classTexts = function(t) { + return this.generateClass(w.texts, t.id); + }), + (r.prototype.classShape = function(t) { + return this.generateClass(w.shape, t.index); + }), + (r.prototype.classShapes = function(t) { + return this.generateClass(w.shapes, t.id); + }), + (r.prototype.classLine = function(t) { + return ( + this.classShape(t) + this.generateClass(w.line, t.id) + ); + }), + (r.prototype.classLines = function(t) { + return ( + this.classShapes(t) + this.generateClass(w.lines, t.id) + ); + }), + (r.prototype.classCircle = function(t) { + return ( + this.classShape(t) + this.generateClass(w.circle, t.index) + ); + }), + (r.prototype.classCircles = function(t) { + return ( + this.classShapes(t) + this.generateClass(w.circles, t.id) + ); + }), + (r.prototype.classBar = function(t) { + return ( + this.classShape(t) + this.generateClass(w.bar, t.index) + ); + }), + (r.prototype.classBars = function(t) { + return ( + this.classShapes(t) + this.generateClass(w.bars, t.id) + ); + }), + (r.prototype.classArc = function(t) { + return ( + this.classShape(t.data) + + this.generateClass(w.arc, t.data.id) + ); + }), + (r.prototype.classArcs = function(t) { + return ( + this.classShapes(t.data) + + this.generateClass(w.arcs, t.data.id) + ); + }), + (r.prototype.classArea = function(t) { + return ( + this.classShape(t) + this.generateClass(w.area, t.id) + ); + }), + (r.prototype.classAreas = function(t) { + return ( + this.classShapes(t) + this.generateClass(w.areas, t.id) + ); + }), + (r.prototype.classRegion = function(t, e) { + return ( + this.generateClass(w.region, e) + + ' ' + + ('class' in t ? t.class : '') + ); + }), + (r.prototype.classEvent = function(t) { + return this.generateClass(w.eventRect, t.index); + }), + (r.prototype.classTarget = function(t) { + var e = this.config.data_classes[t], + n = ''; + return ( + e && (n = ' ' + w.target + '-' + e), + this.generateClass(w.target, t) + n + ); + }), + (r.prototype.classFocus = function(t) { + return this.classFocused(t) + this.classDefocused(t); + }), + (r.prototype.classFocused = function(t) { + return ( + ' ' + + (this.focusedTargetIds.indexOf(t.id) >= 0 + ? w.focused + : '') + ); + }), + (r.prototype.classDefocused = function(t) { + return ( + ' ' + + (this.defocusedTargetIds.indexOf(t.id) >= 0 + ? w.defocused + : '') + ); + }), + (r.prototype.classChartText = function(t) { + return w.chartText + this.classTarget(t.id); + }), + (r.prototype.classChartLine = function(t) { + return w.chartLine + this.classTarget(t.id); + }), + (r.prototype.classChartBar = function(t) { + return w.chartBar + this.classTarget(t.id); + }), + (r.prototype.classChartArc = function(t) { + return w.chartArc + this.classTarget(t.data.id); + }), + (r.prototype.getTargetSelectorSuffix = function(t) { + var e = this.generateTargetClass(t); + return window.CSS && window.CSS.escape + ? window.CSS.escape(e) + : e.replace( + /([?!@#$%^&*()=+,.<>'":;\[\]\/|~`{}\\])/g, + '\\$1' + ); + }), + (r.prototype.selectorTarget = function(t, e) { + return ( + (e || '') + + '.' + + w.target + + this.getTargetSelectorSuffix(t) + ); + }), + (r.prototype.selectorTargets = function(t, e) { + var n = this; + return (t = t || []).length + ? t.map(function(t) { + return n.selectorTarget(t, e); + }) + : null; + }), + (r.prototype.selectorLegend = function(t) { + return '.' + w.legendItem + this.getTargetSelectorSuffix(t); + }), + (r.prototype.selectorLegends = function(t) { + var e = this; + return t && t.length + ? t.map(function(t) { + return e.selectorLegend(t); + }) + : null; + }), + (r.prototype.getClipPath = function(t) { + return ( + 'url(' + + (window.navigator.appVersion + .toLowerCase() + .indexOf('msie 9.') >= 0 + ? '' + : document.URL.split('#')[0]) + + '#' + + t + + ')' + ); + }), + (r.prototype.appendClip = function(t, e) { + return t + .append('clipPath') + .attr('id', e) + .append('rect'); + }), + (r.prototype.getAxisClipX = function(t) { + var e = Math.max(30, this.margin.left); + return t ? -(1 + e) : -(e - 1); + }), + (r.prototype.getAxisClipY = function(t) { + return t ? -20 : -this.margin.top; + }), + (r.prototype.getXAxisClipX = function() { + return this.getAxisClipX(!this.config.axis_rotated); + }), + (r.prototype.getXAxisClipY = function() { + return this.getAxisClipY(!this.config.axis_rotated); + }), + (r.prototype.getYAxisClipX = function() { + return this.config.axis_y_inner + ? -1 + : this.getAxisClipX(this.config.axis_rotated); + }), + (r.prototype.getYAxisClipY = function() { + return this.getAxisClipY(this.config.axis_rotated); + }), + (r.prototype.getAxisClipWidth = function(t) { + var e = Math.max(30, this.margin.left), + n = Math.max(30, this.margin.right); + return t ? this.width + 2 + e + n : this.margin.left + 20; + }), + (r.prototype.getAxisClipHeight = function(t) { + return ( + (t ? this.margin.bottom : this.margin.top + this.height) + + 20 + ); + }), + (r.prototype.getXAxisClipWidth = function() { + return this.getAxisClipWidth(!this.config.axis_rotated); + }), + (r.prototype.getXAxisClipHeight = function() { + return this.getAxisClipHeight(!this.config.axis_rotated); + }), + (r.prototype.getYAxisClipWidth = function() { + return ( + this.getAxisClipWidth(this.config.axis_rotated) + + (this.config.axis_y_inner ? 20 : 0) + ); + }), + (r.prototype.getYAxisClipHeight = function() { + return this.getAxisClipHeight(this.config.axis_rotated); + }), + (r.prototype.generateColor = function() { + var t = this.config, + e = this.d3, + n = t.data_colors, + r = b(t.color_pattern) + ? t.color_pattern + : e.schemeCategory10, + i = t.data_color, + o = []; + return function(t) { + var e, + a = t.id || (t.data && t.data.id) || t; + return ( + n[a] instanceof Function + ? (e = n[a](t)) + : n[a] + ? (e = n[a]) + : (o.indexOf(a) < 0 && o.push(a), + (e = r[o.indexOf(a) % r.length]), + (n[a] = e)), + i instanceof Function ? i(e, t) : e + ); + }; + }), + (r.prototype.generateLevelColor = function() { + var t = this.config, + e = t.color_pattern, + n = t.color_threshold, + r = 'value' === n.unit, + i = n.values && n.values.length ? n.values : [], + o = n.max || 100; + return b(n) && b(e) + ? function(t) { + var n, + a = e[e.length - 1]; + for (n = 0; n < i.length; n++) + if ((r ? t : (100 * t) / o) < i[n]) { + a = e[n]; + break; + } + return a; + } + : null; + }), + (r.prototype.getDefaultConfig = function() { + var t = { + bindto: '#chart', + svg_classname: void 0, + size_width: void 0, + size_height: void 0, + padding_left: void 0, + padding_right: void 0, + padding_top: void 0, + padding_bottom: void 0, + resize_auto: !0, + zoom_enabled: !1, + zoom_initialRange: void 0, + zoom_type: 'scroll', + zoom_disableDefaultBehavior: !1, + zoom_privileged: !1, + zoom_rescale: !1, + zoom_onzoom: function() {}, + zoom_onzoomstart: function() {}, + zoom_onzoomend: function() {}, + zoom_x_min: void 0, + zoom_x_max: void 0, + interaction_brighten: !0, + interaction_enabled: !0, + onmouseover: function() {}, + onmouseout: function() {}, + onresize: function() {}, + onresized: function() {}, + oninit: function() {}, + onrendered: function() {}, + transition_duration: 350, + data_epochs: 'epochs', + data_x: void 0, + data_xs: {}, + data_xFormat: '%Y-%m-%d', + data_xLocaltime: !0, + data_xSort: !0, + data_idConverter: function(t) { + return t; + }, + data_names: {}, + data_classes: {}, + data_groups: [], + data_axes: {}, + data_type: void 0, + data_types: {}, + data_labels: {}, + data_order: 'desc', + data_regions: {}, + data_color: void 0, + data_colors: {}, + data_hide: !1, + data_filter: void 0, + data_selection_enabled: !1, + data_selection_grouped: !1, + data_selection_isselectable: function() { + return !0; + }, + data_selection_multiple: !0, + data_selection_draggable: !1, + data_stack_normalize: !1, + data_onclick: function() {}, + data_onmouseover: function() {}, + data_onmouseout: function() {}, + data_onselected: function() {}, + data_onunselected: function() {}, + data_url: void 0, + data_headers: void 0, + data_json: void 0, + data_rows: void 0, + data_columns: void 0, + data_mimeType: void 0, + data_keys: void 0, + data_empty_label_text: '', + subchart_show: !1, + subchart_size_height: 60, + subchart_axis_x_show: !0, + subchart_onbrush: function() {}, + color_pattern: [], + color_threshold: {}, + legend_show: !0, + legend_hide: !1, + legend_position: 'bottom', + legend_inset_anchor: 'top-left', + legend_inset_x: 10, + legend_inset_y: 0, + legend_inset_step: void 0, + legend_item_onclick: void 0, + legend_item_onmouseover: void 0, + legend_item_onmouseout: void 0, + legend_equally: !1, + legend_padding: 0, + legend_item_tile_width: 10, + legend_item_tile_height: 10, + axis_rotated: !1, + axis_x_show: !0, + axis_x_type: 'indexed', + axis_x_localtime: !0, + axis_x_categories: [], + axis_x_tick_centered: !1, + axis_x_tick_format: void 0, + axis_x_tick_culling: {}, + axis_x_tick_culling_max: 10, + axis_x_tick_count: void 0, + axis_x_tick_fit: !0, + axis_x_tick_values: null, + axis_x_tick_rotate: 0, + axis_x_tick_outer: !0, + axis_x_tick_multiline: !0, + axis_x_tick_multilineMax: 0, + axis_x_tick_width: null, + axis_x_max: void 0, + axis_x_min: void 0, + axis_x_padding: {}, + axis_x_height: void 0, + axis_x_selection: void 0, + axis_x_label: {}, + axis_x_inner: void 0, + axis_y_show: !0, + axis_y_type: 'linear', + axis_y_max: void 0, + axis_y_min: void 0, + axis_y_inverted: !1, + axis_y_center: void 0, + axis_y_inner: void 0, + axis_y_label: {}, + axis_y_tick_format: void 0, + axis_y_tick_outer: !0, + axis_y_tick_values: null, + axis_y_tick_rotate: 0, + axis_y_tick_count: void 0, + axis_y_tick_time_type: void 0, + axis_y_tick_time_interval: void 0, + axis_y_padding: {}, + axis_y_default: void 0, + axis_y2_show: !1, + axis_y2_type: 'linear', + axis_y2_max: void 0, + axis_y2_min: void 0, + axis_y2_inverted: !1, + axis_y2_center: void 0, + axis_y2_inner: void 0, + axis_y2_label: {}, + axis_y2_tick_format: void 0, + axis_y2_tick_outer: !0, + axis_y2_tick_values: null, + axis_y2_tick_count: void 0, + axis_y2_padding: {}, + axis_y2_default: void 0, + grid_x_show: !1, + grid_x_type: 'tick', + grid_x_lines: [], + grid_y_show: !1, + grid_y_lines: [], + grid_y_ticks: 10, + grid_focus_show: !0, + grid_lines_front: !0, + point_show: !0, + point_r: 2.5, + point_sensitivity: 10, + point_focus_expand_enabled: !0, + point_focus_expand_r: void 0, + point_select_r: void 0, + line_connectNull: !1, + line_step_type: 'step', + bar_width: void 0, + bar_width_ratio: 0.6, + bar_width_max: void 0, + bar_zerobased: !0, + bar_space: 0, + area_zerobased: !0, + area_above: !1, + pie_label_show: !0, + pie_label_format: void 0, + pie_label_threshold: 0.05, + pie_label_ratio: void 0, + pie_expand: {}, + pie_expand_duration: 50, + pie_padAngle: 0, + gauge_fullCircle: !1, + gauge_label_show: !0, + gauge_labelLine_show: !0, + gauge_label_format: void 0, + gauge_min: 0, + gauge_max: 100, + gauge_startingAngle: (-1 * Math.PI) / 2, + gauge_label_extents: void 0, + gauge_units: void 0, + gauge_width: void 0, + gauge_arcs_minWidth: 5, + gauge_expand: {}, + gauge_expand_duration: 50, + donut_label_show: !0, + donut_label_format: void 0, + donut_label_threshold: 0.05, + donut_label_ratio: void 0, + donut_width: void 0, + donut_title: '', + donut_expand: {}, + donut_expand_duration: 50, + donut_padAngle: 0, + spline_interpolation_type: 'cardinal', + stanford_lines: [], + stanford_regions: [], + stanford_texts: [], + stanford_scaleMin: void 0, + stanford_scaleMax: void 0, + stanford_scaleWidth: void 0, + stanford_scaleFormat: void 0, + stanford_scaleValues: void 0, + stanford_colors: void 0, + stanford_padding: { + top: 0, + right: 0, + bottom: 0, + left: 0 + }, + regions: [], + tooltip_show: !0, + tooltip_grouped: !0, + tooltip_order: void 0, + tooltip_format_title: void 0, + tooltip_format_name: void 0, + tooltip_format_value: void 0, + tooltip_horizontal: void 0, + tooltip_position: void 0, + tooltip_contents: function(t, e, n, r) { + return this.getTooltipContent + ? this.getTooltipContent(t, e, n, r) + : ''; + }, + tooltip_init_show: !1, + tooltip_init_x: 0, + tooltip_init_position: { top: '0px', left: '50px' }, + tooltip_onshow: function() {}, + tooltip_onhide: function() {}, + title_text: void 0, + title_padding: { top: 0, right: 0, bottom: 0, left: 0 }, + title_position: 'top-center' + }; + return ( + Object.keys(this.additionalConfig).forEach(function(e) { + t[e] = this.additionalConfig[e]; + }, this), + t + ); + }), + (r.prototype.additionalConfig = {}), + (r.prototype.loadConfig = function(e) { + var n, + r, + i, + o = this.config; + Object.keys(o).forEach(function(a) { + (n = e), + (r = a.split('_')), + (i = (function e() { + var i = r.shift(); + return i && n && 'object' === t(n) && i in n + ? ((n = n[i]), e()) + : i + ? void 0 + : n; + })()), + d(i) && (o[a] = i); + }); + }), + (r.prototype.convertUrlToData = function(t, e, n, r, i) { + var o, + a, + s = this, + u = e || 'csv'; + 'json' === u + ? ((o = s.d3.json), (a = s.convertJsonToData)) + : 'tsv' === u + ? ((o = s.d3.tsv), (a = s.convertXsvToData)) + : ((o = s.d3.csv), (a = s.convertXsvToData)), + o(t, n) + .then(function(t) { + i.call(s, a.call(s, t, r)); + }) + .catch(function(t) { + throw t; + }); + }), + (r.prototype.convertXsvToData = function(t) { + var e = t.columns; + return 0 === t.length + ? { + keys: e, + rows: [ + e.reduce(function(t, e) { + return Object.assign( + t, + (function(t, e, n) { + return ( + e in t + ? Object.defineProperty(t, e, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (t[e] = n), + t + ); + })({}, e, null) + ); + }, {}) + ] + } + : { keys: e, rows: [].concat(t) }; + }), + (r.prototype.convertJsonToData = function(t, e) { + var n, + r, + i = this, + o = []; + return ( + e + ? (e.x + ? ((n = e.value.concat(e.x)), + (i.config.data_x = e.x)) + : (n = e.value), + o.push(n), + t.forEach(function(t) { + var e = []; + n.forEach(function(n) { + var r = i.findValueInJson(t, n); + v(r) && (r = null), e.push(r); + }), + o.push(e); + }), + (r = i.convertRowsToData(o))) + : (Object.keys(t).forEach(function(e) { + o.push([e].concat(t[e])); + }), + (r = i.convertColumnsToData(o))), + r + ); + }), + (r.prototype.findValueInJson = function(t, e) { + for ( + var n = (e = (e = e.replace(/\[(\w+)\]/g, '.$1')).replace( + /^\./, + '' + )).split('.'), + r = 0; + r < n.length; + ++r + ) { + var i = n[r]; + if (!(i in t)) return; + t = t[i]; + } + return t; + }), + (r.prototype.convertRowsToData = function(t) { + for (var e = [], n = t[0], r = 1; r < t.length; r++) { + for (var i = {}, o = 0; o < t[r].length; o++) { + if (v(t[r][o])) + throw new Error( + 'Source data is missing a component at (' + + r + + ',' + + o + + ')!' + ); + i[n[o]] = t[r][o]; + } + e.push(i); + } + return { keys: n, rows: e }; + }), + (r.prototype.convertColumnsToData = function(t) { + for (var e = [], n = [], r = 0; r < t.length; r++) { + for (var i = t[r][0], o = 1; o < t[r].length; o++) { + if ((v(e[o - 1]) && (e[o - 1] = {}), v(t[r][o]))) + throw new Error( + 'Source data is missing a component at (' + + r + + ',' + + o + + ')!' + ); + e[o - 1][i] = t[r][o]; + } + n.push(i); + } + return { keys: n, rows: e }; + }), + (r.prototype.convertDataToTargets = function(t, e) { + var n, + r, + i, + o, + a, + s = this, + u = s.config; + if ( + (f(t) + ? (o = Object.keys(t[0])) + : ((o = t.keys), (t = t.rows)), + (i = o.filter(s.isX, s)), + s.isStanfordGraphType()) + ) { + if ( + ((a = o.filter(s.isEpochs, s)), + (r = o.filter(s.isNotXAndNotEpochs, s)), + 1 !== i.length || 1 !== a.length || 1 !== r.length) + ) + throw new Error( + "You must define the 'x' key name and the 'epochs' for Stanford Diagrams" + ); + } else r = o.filter(s.isNotX, s); + return ( + r.forEach(function(n) { + var r = s.getXKey(n); + s.isCustomX() || s.isTimeSeries() + ? i.indexOf(r) >= 0 + ? (s.data.xs[n] = (e && s.data.xs[n] + ? s.data.xs[n] + : [] + ).concat( + t + .map(function(t) { + return t[r]; + }) + .filter(y) + .map(function(t, e) { + return s.generateTargetX(t, n, e); + }) + )) + : u.data_x + ? (s.data.xs[n] = s.getOtherTargetXs()) + : b(u.data_xs) && + (s.data.xs[n] = s.getXValuesOfXKey( + r, + s.data.targets + )) + : (s.data.xs[n] = t.map(function(t, e) { + return e; + })); + }), + r.forEach(function(t) { + if (!s.data.xs[t]) + throw new Error( + 'x is not defined for id = "' + t + '".' + ); + }), + (n = r.map(function(e, n) { + var r = u.data_idConverter(e); + return { + id: r, + id_org: e, + values: t + .map(function(t, i) { + var o, + l, + c = t[s.getXKey(e)], + f = null === t[e] || isNaN(t[e]) ? null : +t[e]; + return ( + s.isCustomX() && s.isCategorized() && !v(c) + ? (0 === n && + 0 === i && + (u.axis_x_categories = []), + -1 === + (o = u.axis_x_categories.indexOf(c)) && + ((o = u.axis_x_categories.length), + u.axis_x_categories.push(c))) + : (o = s.generateTargetX(c, e, i)), + (v(t[e]) || s.data.xs[e].length <= i) && + (o = void 0), + (l = { x: o, value: f, id: r }), + s.isStanfordGraphType() && (l.epochs = t[a]), + l + ); + }) + .filter(function(t) { + return d(t.x); + }) + }; + })).forEach(function(t) { + var e; + u.data_xSort && + (t.values = t.values.sort(function(t, e) { + return ( + (t.x || 0 === t.x ? t.x : 1 / 0) - + (e.x || 0 === e.x ? e.x : 1 / 0) + ); + })), + (e = 0), + t.values.forEach(function(t) { + t.index = e++; + }), + s.data.xs[t.id].sort(function(t, e) { + return t - e; + }); + }), + (s.hasNegativeValue = s.hasNegativeValueInTargets(n)), + (s.hasPositiveValue = s.hasPositiveValueInTargets(n)), + u.data_type && + s.setTargetType( + s.mapToIds(n).filter(function(t) { + return !(t in u.data_types); + }), + u.data_type + ), + n.forEach(function(t) { + s.addCache(t.id_org, t); + }), + n + ); + }), + (r.prototype.isEpochs = function(t) { + var e = this.config; + return e.data_epochs && t === e.data_epochs; + }), + (r.prototype.isX = function(t) { + var e = this.config; + return ( + (e.data_x && t === e.data_x) || + (b(e.data_xs) && + (function(t, e) { + var n = !1; + return ( + Object.keys(t).forEach(function(r) { + t[r] === e && (n = !0); + }), + n + ); + })(e.data_xs, t)) + ); + }), + (r.prototype.isNotX = function(t) { + return !this.isX(t); + }), + (r.prototype.isNotXAndNotEpochs = function(t) { + return !this.isX(t) && !this.isEpochs(t); + }), + (r.prototype.isStackNormalized = function() { + return ( + this.config.data_stack_normalize && + this.config.data_groups.length > 0 + ); + }), + (r.prototype.isAxisNormalized = function(t) { + var e = this; + return ( + !!e.isStackNormalized() && + e.data.targets + .filter(function(n) { + return e.axis.getId(n.id) === t; + }) + .some(function(t) { + return e.isTargetNormalized(t.id); + }) + ); + }), + (r.prototype.isTargetNormalized = function(t) { + return ( + this.isStackNormalized() && + this.config.data_groups.some(function(e) { + return e.includes(t); + }) + ); + }), + (r.prototype.getXKey = function(t) { + var e = this.config; + return e.data_x + ? e.data_x + : b(e.data_xs) + ? e.data_xs[t] + : null; + }), + (r.prototype.getTotalPerIndex = function(t) { + var e = this; + if (!e.isStackNormalized()) return null; + var n = e.getFromCache('getTotalPerIndex'); + if (void 0 !== n) return n[t]; + var r = { y: [], y2: [] }; + return ( + e.data.targets + .filter(function(t) { + return e.isTargetNormalized(t.id); + }) + .filter(function(t) { + return e.isTargetToShow(t.id); + }) + .forEach(function(t) { + var n = r[e.axis.getId(t.id)]; + t.values.forEach(function(t, e) { + n[e] || (n[e] = 0), + (n[e] += g(t.value) ? t.value : 0); + }); + }), + e.addToCache('getTotalPerIndex', r), + r[t] + ); + }), + (r.prototype.getTotalDataSum = function() { + var t = this, + n = t.getFromCache('getTotalDataSum'); + if (void 0 !== n) return n; + var r, + i, + o = ((r = t.data.targets + .filter(function(e) { + return t.isTargetToShow(e.id); + }) + .map(function(t) { + return t.values; + })), + Array.isArray(r) ? (i = []).concat.apply(i, e(r)) : []) + .map(function(t) { + return t.value; + }) + .reduce(function(t, e) { + return t + e; + }, 0); + return t.addToCache('getTotalDataSum', o), o; + }), + (r.prototype.getXValuesOfXKey = function(t, e) { + var n, + r = this; + return ( + (e && b(e) ? r.mapToIds(e) : []).forEach(function(e) { + r.getXKey(e) === t && (n = r.data.xs[e]); + }), + n + ); + }), + (r.prototype.getXValue = function(t, e) { + return t in this.data.xs && + this.data.xs[t] && + y(this.data.xs[t][e]) + ? this.data.xs[t][e] + : e; + }), + (r.prototype.getOtherTargetXs = function() { + var t = Object.keys(this.data.xs); + return t.length ? this.data.xs[t[0]] : null; + }), + (r.prototype.getOtherTargetX = function(t) { + var e = this.getOtherTargetXs(); + return e && t < e.length ? e[t] : null; + }), + (r.prototype.addXs = function(t) { + var e = this; + Object.keys(t).forEach(function(n) { + e.config.data_xs[n] = t[n]; + }); + }), + (r.prototype.addName = function(t) { + var e; + return ( + t && + ((e = this.config.data_names[t.id]), + (t.name = void 0 !== e ? e : t.id)), + t + ); + }), + (r.prototype.getValueOnIndex = function(t, e) { + var n = t.filter(function(t) { + return t.index === e; + }); + return n.length ? n[0] : null; + }), + (r.prototype.updateTargetX = function(t, e) { + var n = this; + t.forEach(function(t) { + t.values.forEach(function(r, i) { + r.x = n.generateTargetX(e[i], t.id, i); + }), + (n.data.xs[t.id] = e); + }); + }), + (r.prototype.updateTargetXs = function(t, e) { + var n = this; + t.forEach(function(t) { + e[t.id] && n.updateTargetX([t], e[t.id]); + }); + }), + (r.prototype.generateTargetX = function(t, e, n) { + var r = this; + return r.isTimeSeries() + ? t + ? r.parseDate(t) + : r.parseDate(r.getXValue(e, n)) + : r.isCustomX() && !r.isCategorized() + ? y(t) + ? +t + : r.getXValue(e, n) + : n; + }), + (r.prototype.cloneTarget = function(t) { + return { + id: t.id, + id_org: t.id_org, + values: t.values.map(function(t) { + return { x: t.x, value: t.value, id: t.id }; + }) + }; + }), + (r.prototype.getMaxDataCount = function() { + return this.d3.max(this.data.targets, function(t) { + return t.values.length; + }); + }), + (r.prototype.mapToIds = function(t) { + return t.map(function(t) { + return t.id; + }); + }), + (r.prototype.mapToTargetIds = function(t) { + return t ? [].concat(t) : this.mapToIds(this.data.targets); + }), + (r.prototype.hasTarget = function(t, e) { + var n, + r = this.mapToIds(t); + for (n = 0; n < r.length; n++) if (r[n] === e) return !0; + return !1; + }), + (r.prototype.isTargetToShow = function(t) { + return this.hiddenTargetIds.indexOf(t) < 0; + }), + (r.prototype.isLegendToShow = function(t) { + return this.hiddenLegendIds.indexOf(t) < 0; + }), + (r.prototype.getTargetsToShow = function() { + return this.filterTargetsToShow(this.data.targets); + }), + (r.prototype.filterTargetsToShow = function(t) { + var e = this; + return t.filter(function(t) { + return e.isTargetToShow(t.id); + }); + }), + (r.prototype.mapTargetsToUniqueXs = function(t) { + var e = this.d3 + .set( + this.d3.merge( + t.map(function(t) { + return t.values.map(function(t) { + return +t.x; + }); + }) + ) + ) + .values(); + return (e = this.isTimeSeries() + ? e.map(function(t) { + return new Date(+t); + }) + : e.map(function(t) { + return +t; + })).sort(function(t, e) { + return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; + }); + }), + (r.prototype.addHiddenTargetIds = function(t) { + t = t instanceof Array ? t : new Array(t); + for (var e = 0; e < t.length; e++) + this.hiddenTargetIds.indexOf(t[e]) < 0 && + (this.hiddenTargetIds = this.hiddenTargetIds.concat( + t[e] + )); + this.resetCache(); + }), + (r.prototype.removeHiddenTargetIds = function(t) { + (this.hiddenTargetIds = this.hiddenTargetIds.filter( + function(e) { + return t.indexOf(e) < 0; + } + )), + this.resetCache(); + }), + (r.prototype.addHiddenLegendIds = function(t) { + t = t instanceof Array ? t : new Array(t); + for (var e = 0; e < t.length; e++) + this.hiddenLegendIds.indexOf(t[e]) < 0 && + (this.hiddenLegendIds = this.hiddenLegendIds.concat( + t[e] + )); + }), + (r.prototype.removeHiddenLegendIds = function(t) { + this.hiddenLegendIds = this.hiddenLegendIds.filter(function( + e + ) { + return t.indexOf(e) < 0; + }); + }), + (r.prototype.getValuesAsIdKeyed = function(t) { + var e = {}; + return ( + t.forEach(function(t) { + (e[t.id] = []), + t.values.forEach(function(n) { + e[t.id].push(n.value); + }); + }), + e + ); + }), + (r.prototype.checkValueInTargets = function(t, e) { + var n, + r, + i, + o = Object.keys(t); + for (n = 0; n < o.length; n++) + for (i = t[o[n]].values, r = 0; r < i.length; r++) + if (e(i[r].value)) return !0; + return !1; + }), + (r.prototype.hasNegativeValueInTargets = function(t) { + return this.checkValueInTargets(t, function(t) { + return t < 0; + }); + }), + (r.prototype.hasPositiveValueInTargets = function(t) { + return this.checkValueInTargets(t, function(t) { + return t > 0; + }); + }), + (r.prototype.isOrderDesc = function() { + var t = this.config; + return ( + 'string' == typeof t.data_order && + 'desc' === t.data_order.toLowerCase() + ); + }), + (r.prototype.isOrderAsc = function() { + var t = this.config; + return ( + 'string' == typeof t.data_order && + 'asc' === t.data_order.toLowerCase() + ); + }), + (r.prototype.getOrderFunction = function() { + var t = this.config, + e = this.isOrderAsc(), + n = this.isOrderDesc(); + if (e || n) { + var r = function(t, e) { + return t + Math.abs(e.value); + }; + return function(t, n) { + var i = t.values.reduce(r, 0), + o = n.values.reduce(r, 0); + return e ? o - i : i - o; + }; + } + if (p(t.data_order)) return t.data_order; + if (f(t.data_order)) { + var i = t.data_order; + return function(t, e) { + return i.indexOf(t.id) - i.indexOf(e.id); + }; + } + }), + (r.prototype.orderTargets = function(t) { + var e = this.getOrderFunction(); + return e && t.sort(e), t; + }), + (r.prototype.filterByIndex = function(t, e) { + return this.d3.merge( + t.map(function(t) { + return t.values.filter(function(t) { + return t.index === e; + }); + }) + ); + }), + (r.prototype.filterByX = function(t, e) { + return this.d3 + .merge( + t.map(function(t) { + return t.values; + }) + ) + .filter(function(t) { + return t.x - e == 0; + }); + }), + (r.prototype.filterRemoveNull = function(t) { + return t.filter(function(t) { + return y(t.value); + }); + }), + (r.prototype.filterByXDomain = function(t, e) { + return t.map(function(t) { + return { + id: t.id, + id_org: t.id_org, + values: t.values.filter(function(t) { + return e[0] <= t.x && t.x <= e[1]; + }) + }; + }); + }), + (r.prototype.hasDataLabel = function() { + var e = this.config; + return ( + !('boolean' != typeof e.data_labels || !e.data_labels) || + !('object' !== t(e.data_labels) || !b(e.data_labels)) + ); + }), + (r.prototype.getDataLabelLength = function(t, e, n) { + var r = this, + i = [0, 0]; + return ( + r.selectChart + .select('svg') + .selectAll('.dummy') + .data([t, e]) + .enter() + .append('text') + .text(function(t) { + return r.dataLabelFormat(t.id)(t); + }) + .each(function(t, e) { + i[e] = 1.3 * c(this)[n]; + }) + .remove(), + i + ); + }), + (r.prototype.isNoneArc = function(t) { + return this.hasTarget(this.data.targets, t.id); + }), + (r.prototype.isArc = function(t) { + return ( + 'data' in t && + this.hasTarget(this.data.targets, t.data.id) + ); + }), + (r.prototype.findClosestFromTargets = function(t, e) { + var n = this, + r = t + .map(function(t) { + return n.findClosest( + t.values, + e, + n.config.tooltip_horizontal + ? n.horizontalDistance.bind(n) + : n.dist.bind(n), + n.config.point_sensitivity + ); + }) + .filter(function(t) { + return t; + }); + return 0 === r.length + ? void 0 + : 1 === r.length + ? r[0] + : n.findClosest(r, e, n.dist.bind(n)); + }), + (r.prototype.findClosestFromTargetsByX = function(t, e) { + var n, r; + return ( + t.forEach(function(t) { + t.values.forEach(function(t) { + var i = Math.abs(e - t.x); + (void 0 === r || i < r) && ((n = t), (r = i)); + }); + }), + n + ); + }), + (r.prototype.findClosest = function(t, e, n) { + var r, + i = + arguments.length > 3 && void 0 !== arguments[3] + ? arguments[3] + : 1 / 0, + o = this; + return ( + t + .filter(function(t) { + return t && o.isBarType(t.id); + }) + .forEach(function(t) { + if (!r) { + var n = o.main + .select( + '.' + + w.bars + + o.getTargetSelectorSuffix(t.id) + + ' .' + + w.bar + + '-' + + t.index + ) + .node(); + o.isWithinBar(e, n) && (r = t); + } + }), + t + .filter(function(t) { + return t && !o.isBarType(t.id); + }) + .forEach(function(t) { + var o = n(t, e); + o < i && ((i = o), (r = t)); + }), + r + ); + }), + (r.prototype.dist = function(t, e) { + var n = this.config, + r = n.axis_rotated ? 1 : 0, + i = n.axis_rotated ? 0 : 1, + o = this.circleY(t, t.index), + a = this.x(t.x); + return Math.sqrt( + Math.pow(a - e[r], 2) + Math.pow(o - e[i], 2) + ); + }), + (r.prototype.horizontalDistance = function(t, e) { + var n = this.config.axis_rotated ? 1 : 0, + r = this.x(t.x); + return Math.abs(r - e[n]); + }), + (r.prototype.convertValuesToStep = function(t) { + var e, + n = [].concat(t); + if (!this.isCategorized()) return t; + for (e = t.length + 1; 0 < e; e--) n[e] = n[e - 1]; + return ( + (n[0] = { + x: n[0].x - 1, + value: n[0].value, + id: n[0].id + }), + (n[t.length + 1] = { + x: n[t.length].x + 1, + value: n[t.length].value, + id: n[t.length].id + }), + n + ); + }), + (r.prototype.getRatio = function(t, e) { + var n = + arguments.length > 2 && + void 0 !== arguments[2] && + arguments[2], + r = this, + i = r.api, + o = 0; + if (e && i.data.shown.call(i).length) + if (((o = e.ratio || e.value), 'arc' === t)) + if (r.hasType('gauge')) + o = + (e.endAngle - e.startAngle) / + (Math.PI * (r.config.gauge_fullCircle ? 2 : 1)); + else { + var a = r.getTotalDataSum(); + o = e.value / a; + } + else if ('index' === t) { + var s = r.getTotalPerIndex(r.axis.getId(e.id)); + (e.ratio = + g(e.value) && s && s[e.index] > 0 + ? e.value / s[e.index] + : 0), + (o = e.ratio); + } + return n && o ? 100 * o : o; + }), + (r.prototype.updateDataAttributes = function(t, e) { + var n = this.config['data_' + t]; + return void 0 === e + ? n + : (Object.keys(e).forEach(function(t) { + n[t] = e[t]; + }), + this.redraw({ withLegend: !0 }), + n); + }), + (r.prototype.load = function(t, e) { + var n = this; + t && + (e.filter && (t = t.filter(e.filter)), + (e.type || e.types) && + t.forEach(function(t) { + var r = + e.types && e.types[t.id] ? e.types[t.id] : e.type; + n.setTargetType(t.id, r); + }), + n.data.targets.forEach(function(e) { + for (var n = 0; n < t.length; n++) + if (e.id === t[n].id) { + (e.values = t[n].values), t.splice(n, 1); + break; + } + }), + (n.data.targets = n.data.targets.concat(t))), + n.updateTargets(n.data.targets), + n.redraw({ + withUpdateOrgXDomain: !0, + withUpdateXDomain: !0, + withLegend: !0 + }), + e.done && e.done(); + }), + (r.prototype.loadFromArgs = function(t) { + var e = this; + e.resetCache(), + t.data + ? e.load(e.convertDataToTargets(t.data), t) + : t.url + ? e.convertUrlToData( + t.url, + t.mimeType, + t.headers, + t.keys, + function(n) { + e.load(e.convertDataToTargets(n), t); + } + ) + : t.json + ? e.load( + e.convertDataToTargets( + e.convertJsonToData(t.json, t.keys) + ), + t + ) + : t.rows + ? e.load( + e.convertDataToTargets(e.convertRowsToData(t.rows)), + t + ) + : t.columns + ? e.load( + e.convertDataToTargets( + e.convertColumnsToData(t.columns) + ), + t + ) + : e.load(null, t); + }), + (r.prototype.unload = function(t, e) { + var n = this; + n.resetCache(), + e || (e = function() {}), + (t = t.filter(function(t) { + return n.hasTarget(n.data.targets, t); + })) && 0 !== t.length + ? (n.svg + .selectAll( + t.map(function(t) { + return n.selectorTarget(t); + }) + ) + .transition() + .style('opacity', 0) + .remove() + .call(n.endall, e), + t.forEach(function(t) { + (n.withoutFadeIn[t] = !1), + n.legend && + n.legend + .selectAll( + '.' + + w.legendItem + + n.getTargetSelectorSuffix(t) + ) + .remove(), + (n.data.targets = n.data.targets.filter(function( + e + ) { + return e.id !== t; + })); + })) + : e(); + }), + (r.prototype.getYDomainMin = function(t) { + var e, + n, + r, + i, + o, + a, + s = this, + u = s.config, + l = s.mapToIds(t), + c = s.getValuesAsIdKeyed(t); + if (u.data_groups.length > 0) + for ( + a = s.hasNegativeValueInTargets(t), e = 0; + e < u.data_groups.length; + e++ + ) + if ( + 0 !== + (i = u.data_groups[e].filter(function(t) { + return l.indexOf(t) >= 0; + })).length + ) + for ( + r = i[0], + a && + c[r] && + c[r].forEach(function(t, e) { + c[r][e] = t < 0 ? t : 0; + }), + n = 1; + n < i.length; + n++ + ) + (o = i[n]), + c[o] && + c[o].forEach(function(t, e) { + s.axis.getId(o) !== s.axis.getId(r) || + !c[r] || + (a && +t > 0) || + (c[r][e] += +t); + }); + return s.d3.min( + Object.keys(c).map(function(t) { + return s.d3.min(c[t]); + }) + ); + }), + (r.prototype.getYDomainMax = function(t) { + var e, + n, + r, + i, + o, + a, + s = this, + u = s.config, + l = s.mapToIds(t), + c = s.getValuesAsIdKeyed(t); + if (u.data_groups.length > 0) + for ( + a = s.hasPositiveValueInTargets(t), e = 0; + e < u.data_groups.length; + e++ + ) + if ( + 0 !== + (i = u.data_groups[e].filter(function(t) { + return l.indexOf(t) >= 0; + })).length + ) + for ( + r = i[0], + a && + c[r] && + c[r].forEach(function(t, e) { + c[r][e] = t > 0 ? t : 0; + }), + n = 1; + n < i.length; + n++ + ) + (o = i[n]), + c[o] && + c[o].forEach(function(t, e) { + s.axis.getId(o) !== s.axis.getId(r) || + !c[r] || + (a && +t < 0) || + (c[r][e] += +t); + }); + return s.d3.max( + Object.keys(c).map(function(t) { + return s.d3.max(c[t]); + }) + ); + }), + (r.prototype.getYDomain = function(t, e, n) { + var r = this, + i = r.config; + if (r.isAxisNormalized(e)) return [0, 100]; + var o, + a, + u, + l, + c, + f, + d, + h, + p, + g, + m = t.filter(function(t) { + return r.axis.getId(t.id) === e; + }), + v = n ? r.filterByXDomain(m, n) : m, + _ = 'y2' === e ? i.axis_y2_min : i.axis_y_min, + x = 'y2' === e ? i.axis_y2_max : i.axis_y_max, + w = r.getYDomainMin(v), + S = r.getYDomainMax(v), + E = 'y2' === e ? i.axis_y2_center : i.axis_y_center, + k = + (r.hasType('bar', v) && i.bar_zerobased) || + (r.hasType('area', v) && i.area_zerobased), + A = 'y2' === e ? i.axis_y2_inverted : i.axis_y_inverted, + T = r.hasDataLabel() && i.axis_rotated, + C = r.hasDataLabel() && !i.axis_rotated; + if ( + ((w = y(_) ? _ : y(x) ? (w < x ? w : x - 10) : w), + (S = y(x) ? x : y(_) ? (_ < S ? S : _ + 10) : S), + 0 === v.length) + ) + return 'y2' === e ? r.y2.domain() : r.y.domain(); + if ( + (isNaN(w) && (w = 0), + isNaN(S) && (S = w), + w === S && (w < 0 ? (S = 0) : (w = 0)), + (p = w >= 0 && S >= 0), + (g = w <= 0 && S <= 0), + ((y(_) && p) || (y(x) && g)) && (k = !1), + k && (p && (w = 0), g && (S = 0)), + (u = l = 0.1 * (a = Math.abs(S - w))), + void 0 !== E && + ((S = E + (c = Math.max(Math.abs(w), Math.abs(S)))), + (w = E - c)), + T) + ) + (f = r.getDataLabelLength(w, S, 'width')), + (d = s(r.y.range())), + (u += + a * + ((h = [f[0] / d, f[1] / d])[1] / (1 - h[0] - h[1]))), + (l += a * (h[0] / (1 - h[0] - h[1]))); + else if (C) { + f = r.getDataLabelLength(w, S, 'height'); + var O = r.getY( + i['axis_'.concat(e, '_type')], + [0, i.axis_rotated ? r.width : r.height], + [0, a] + ); + (u += O(f[1])), (l += O(f[0])); + } + return ( + 'y' === e && + b(i.axis_y_padding) && + ((u = r.axis.getPadding(i.axis_y_padding, 'top', u, a)), + (l = r.axis.getPadding( + i.axis_y_padding, + 'bottom', + l, + a + ))), + 'y2' === e && + b(i.axis_y2_padding) && + ((u = r.axis.getPadding( + i.axis_y2_padding, + 'top', + u, + a + )), + (l = r.axis.getPadding( + i.axis_y2_padding, + 'bottom', + l, + a + ))), + k && (p && (l = w), g && (u = -S)), + (o = [w - l, S + u]), + A ? o.reverse() : o + ); + }), + (r.prototype.getXDomainMin = function(t) { + var e = this, + n = e.config; + return d(n.axis_x_min) + ? e.isTimeSeries() + ? this.parseDate(n.axis_x_min) + : n.axis_x_min + : e.d3.min(t, function(t) { + return e.d3.min(t.values, function(t) { + return t.x; + }); + }); + }), + (r.prototype.getXDomainMax = function(t) { + var e = this, + n = e.config; + return d(n.axis_x_max) + ? e.isTimeSeries() + ? this.parseDate(n.axis_x_max) + : n.axis_x_max + : e.d3.max(t, function(t) { + return e.d3.max(t.values, function(t) { + return t.x; + }); + }); + }), + (r.prototype.getXDomainPadding = function(e) { + var n, + r, + i, + o, + a = this.config, + s = e[1] - e[0]; + return ( + (r = this.isCategorized() + ? 0 + : this.hasType('bar') + ? (n = this.getMaxDataCount()) > 1 + ? s / (n - 1) / 2 + : 0.5 + : 0.01 * s), + 'object' === t(a.axis_x_padding) && b(a.axis_x_padding) + ? ((i = y(a.axis_x_padding.left) + ? a.axis_x_padding.left + : r), + (o = y(a.axis_x_padding.right) + ? a.axis_x_padding.right + : r)) + : (i = o = + 'number' == typeof a.axis_x_padding + ? a.axis_x_padding + : r), + { left: i, right: o } + ); + }), + (r.prototype.getXDomain = function(t) { + var e = this, + n = [e.getXDomainMin(t), e.getXDomainMax(t)], + r = n[0], + i = n[1], + o = e.getXDomainPadding(n), + a = 0, + s = 0; + return ( + r - i != 0 || + e.isCategorized() || + (e.isTimeSeries() + ? ((r = new Date(0.5 * r.getTime())), + (i = new Date(1.5 * i.getTime()))) + : ((r = 0 === r ? 1 : 0.5 * r), + (i = 0 === i ? -1 : 1.5 * i))), + (r || 0 === r) && + (a = e.isTimeSeries() + ? new Date(r.getTime() - o.left) + : r - o.left), + (i || 0 === i) && + (s = e.isTimeSeries() + ? new Date(i.getTime() + o.right) + : i + o.right), + [a, s] + ); + }), + (r.prototype.updateXDomain = function(t, e, n, r, i) { + var o = this, + a = o.config; + return ( + n && + (o.x.domain(i || o.d3.extent(o.getXDomain(t))), + (o.orgXDomain = o.x.domain()), + a.zoom_enabled && o.zoom.update(), + o.subX.domain(o.x.domain()), + o.brush && o.brush.updateScale(o.subX)), + e && + o.x.domain( + i || + (!o.brush || o.brush.empty() + ? o.orgXDomain + : o.brush.selectionAsValue()) + ), + r && o.x.domain(o.trimXDomain(o.x.orgDomain())), + o.x.domain() + ); + }), + (r.prototype.trimXDomain = function(t) { + var e = this.getZoomDomain(), + n = e[0], + r = e[1]; + return ( + t[0] <= n && ((t[1] = +t[1] + (n - t[0])), (t[0] = n)), + r <= t[1] && ((t[0] = +t[0] - (t[1] - r)), (t[1] = r)), + t + ); + }), + (r.prototype.drag = function(t) { + var e, + n, + r, + i, + o, + a, + s, + u, + c = this, + f = c.config, + d = c.main, + h = c.d3; + c.hasArcType() || + (f.data_selection_enabled && + f.data_selection_multiple && + ((e = c.dragStart[0]), + (n = c.dragStart[1]), + (r = t[0]), + (i = t[1]), + (o = Math.min(e, r)), + (a = Math.max(e, r)), + (s = f.data_selection_grouped + ? c.margin.top + : Math.min(n, i)), + (u = f.data_selection_grouped + ? c.height + : Math.max(n, i)), + d + .select('.' + w.dragarea) + .attr('x', o) + .attr('y', s) + .attr('width', a - o) + .attr('height', u - s), + d + .selectAll('.' + w.shapes) + .selectAll('.' + w.shape) + .filter(function(t) { + return f.data_selection_isselectable(t); + }) + .each(function(t, e) { + var n, + r, + i, + f, + d, + p, + g = h.select(this), + m = g.classed(w.SELECTED), + v = g.classed(w.INCLUDED), + y = !1; + if (g.classed(w.circle)) + (n = 1 * g.attr('cx')), + (r = 1 * g.attr('cy')), + (d = c.togglePoint), + (y = o < n && n < a && s < r && r < u); + else { + if (!g.classed(w.bar)) return; + (n = (p = l(this)).x), + (r = p.y), + (i = p.width), + (f = p.height), + (d = c.togglePath), + (y = !( + a < n || + n + i < o || + u < r || + r + f < s + )); + } + y ^ v && + (g.classed(w.INCLUDED, !v), + g.classed(w.SELECTED, !m), + d.call(c, !m, g, t, e)); + }))); + }), + (r.prototype.dragstart = function(t) { + var e = this, + n = e.config; + e.hasArcType() || + (n.data_selection_enabled && + ((e.dragStart = t), + e.main + .select('.' + w.chart) + .append('rect') + .attr('class', w.dragarea) + .style('opacity', 0.1), + (e.dragging = !0))); + }), + (r.prototype.dragend = function() { + var t = this, + e = t.config; + t.hasArcType() || + (e.data_selection_enabled && + (t.main + .select('.' + w.dragarea) + .transition() + .duration(100) + .style('opacity', 0) + .remove(), + t.main.selectAll('.' + w.shape).classed(w.INCLUDED, !1), + (t.dragging = !1))); + }), + (r.prototype.getYFormat = function(t) { + var e = this, + n = + t && !e.hasType('gauge') + ? e.defaultArcValueFormat + : e.yFormat, + r = + t && !e.hasType('gauge') + ? e.defaultArcValueFormat + : e.y2Format; + return function(t, i, o) { + return ('y2' === e.axis.getId(o) ? r : n).call(e, t, i); + }; + }), + (r.prototype.yFormat = function(t) { + var e = this.config; + return (e.axis_y_tick_format + ? e.axis_y_tick_format + : this.defaultValueFormat)(t); + }), + (r.prototype.y2Format = function(t) { + var e = this.config; + return (e.axis_y2_tick_format + ? e.axis_y2_tick_format + : this.defaultValueFormat)(t); + }), + (r.prototype.defaultValueFormat = function(t) { + return y(t) ? +t : ''; + }), + (r.prototype.defaultArcValueFormat = function(t, e) { + return (100 * e).toFixed(1) + '%'; + }), + (r.prototype.dataLabelFormat = function(e) { + var n = this.config.data_labels, + r = function(t) { + return y(t) ? +t : ''; + }; + return 'function' == typeof n.format + ? n.format + : 'object' === t(n.format) + ? n.format[e] + ? !0 === n.format[e] + ? r + : n.format[e] + : function() { + return ''; + } + : r; + }), + (r.prototype.initGrid = function() { + var t = this, + e = t.config, + n = t.d3; + (t.grid = t.main + .append('g') + .attr('clip-path', t.clipPathForGrid) + .attr('class', w.grid)), + e.grid_x_show && + t.grid.append('g').attr('class', w.xgrids), + e.grid_y_show && + t.grid.append('g').attr('class', w.ygrids), + e.grid_focus_show && + t.grid + .append('g') + .attr('class', w.xgridFocus) + .append('line') + .attr('class', w.xgridFocus), + (t.xgrid = n.selectAll([])), + e.grid_lines_front || t.initGridLines(); + }), + (r.prototype.initGridLines = function() { + var t = this, + e = t.d3; + (t.gridLines = t.main + .append('g') + .attr('clip-path', t.clipPathForGrid) + .attr('class', w.grid + ' ' + w.gridLines)), + t.gridLines.append('g').attr('class', w.xgridLines), + t.gridLines.append('g').attr('class', w.ygridLines), + (t.xgridLines = e.selectAll([])); + }), + (r.prototype.updateXGrid = function(t) { + var e = this, + n = e.config, + r = e.d3, + i = e.generateGridData(n.grid_x_type, e.x), + o = e.isCategorized() ? e.xAxis.tickOffset() : 0; + (e.xgridAttr = n.axis_rotated + ? { + x1: 0, + x2: e.width, + y1: function(t) { + return e.x(t) - o; + }, + y2: function(t) { + return e.x(t) - o; + } + } + : { + x1: function(t) { + return e.x(t) + o; + }, + x2: function(t) { + return e.x(t) + o; + }, + y1: 0, + y2: e.height + }), + (e.xgridAttr.opacity = function() { + return +r + .select(this) + .attr(n.axis_rotated ? 'y1' : 'x1') === + (n.axis_rotated ? e.height : 0) + ? 0 + : 1; + }); + var a = e.main + .select('.' + w.xgrids) + .selectAll('.' + w.xgrid) + .data(i), + s = a + .enter() + .append('line') + .attr('class', w.xgrid) + .attr('x1', e.xgridAttr.x1) + .attr('x2', e.xgridAttr.x2) + .attr('y1', e.xgridAttr.y1) + .attr('y2', e.xgridAttr.y2) + .style('opacity', 0); + (e.xgrid = s.merge(a)), + t || + e.xgrid + .attr('x1', e.xgridAttr.x1) + .attr('x2', e.xgridAttr.x2) + .attr('y1', e.xgridAttr.y1) + .attr('y2', e.xgridAttr.y2) + .style('opacity', e.xgridAttr.opacity), + a.exit().remove(); + }), + (r.prototype.updateYGrid = function() { + var t = this, + e = t.config, + n = t.yAxis.tickValues() || t.y.ticks(e.grid_y_ticks), + r = t.main + .select('.' + w.ygrids) + .selectAll('.' + w.ygrid) + .data(n), + i = r + .enter() + .append('line') + .attr('class', w.ygrid); + (t.ygrid = i.merge(r)), + t.ygrid + .attr('x1', e.axis_rotated ? t.y : 0) + .attr('x2', e.axis_rotated ? t.y : t.width) + .attr('y1', e.axis_rotated ? 0 : t.y) + .attr('y2', e.axis_rotated ? t.height : t.y), + r.exit().remove(), + t.smoothLines(t.ygrid, 'grid'); + }), + (r.prototype.gridTextAnchor = function(t) { + return t.position ? t.position : 'end'; + }), + (r.prototype.gridTextDx = function(t) { + return 'start' === t.position + ? 4 + : 'middle' === t.position + ? 0 + : -4; + }), + (r.prototype.xGridTextX = function(t) { + return 'start' === t.position + ? -this.height + : 'middle' === t.position + ? -this.height / 2 + : 0; + }), + (r.prototype.yGridTextX = function(t) { + return 'start' === t.position + ? 0 + : 'middle' === t.position + ? this.width / 2 + : this.width; + }), + (r.prototype.updateGrid = function(t) { + var e, + n, + r, + i, + o = this, + a = o.main, + s = o.config, + u = o.xv.bind(o), + l = o.yv.bind(o), + c = o.xGridTextX.bind(o), + f = o.yGridTextX.bind(o); + o.grid.style( + 'visibility', + o.hasArcType() ? 'hidden' : 'visible' + ), + a + .select('line.' + w.xgridFocus) + .style('visibility', 'hidden'), + s.grid_x_show && o.updateXGrid(), + (n = (e = a + .select('.' + w.xgridLines) + .selectAll('.' + w.xgridLine) + .data(s.grid_x_lines)) + .enter() + .append('g') + .attr('class', function(t) { + return w.xgridLine + (t.class ? ' ' + t.class : ''); + })) + .append('line') + .attr('x1', s.axis_rotated ? 0 : u) + .attr('x2', s.axis_rotated ? o.width : u) + .attr('y1', s.axis_rotated ? u : 0) + .attr('y2', s.axis_rotated ? u : o.height) + .style('opacity', 0), + n + .append('text') + .attr('text-anchor', o.gridTextAnchor) + .attr('transform', s.axis_rotated ? '' : 'rotate(-90)') + .attr('x', s.axis_rotated ? f : c) + .attr('y', u) + .attr('dx', o.gridTextDx) + .attr('dy', -5) + .style('opacity', 0), + (o.xgridLines = n.merge(e)), + e + .exit() + .transition() + .duration(t) + .style('opacity', 0) + .remove(), + s.grid_y_show && o.updateYGrid(), + (i = (r = a + .select('.' + w.ygridLines) + .selectAll('.' + w.ygridLine) + .data(s.grid_y_lines)) + .enter() + .append('g') + .attr('class', function(t) { + return w.ygridLine + (t.class ? ' ' + t.class : ''); + })) + .append('line') + .attr('x1', s.axis_rotated ? l : 0) + .attr('x2', s.axis_rotated ? l : o.width) + .attr('y1', s.axis_rotated ? 0 : l) + .attr('y2', s.axis_rotated ? o.height : l) + .style('opacity', 0), + i + .append('text') + .attr('text-anchor', o.gridTextAnchor) + .attr('transform', s.axis_rotated ? 'rotate(-90)' : '') + .attr('x', s.axis_rotated ? c : f) + .attr('y', l) + .attr('dx', o.gridTextDx) + .attr('dy', -5) + .style('opacity', 0), + (o.ygridLines = i.merge(r)), + o.ygridLines + .select('line') + .transition() + .duration(t) + .attr('x1', s.axis_rotated ? l : 0) + .attr('x2', s.axis_rotated ? l : o.width) + .attr('y1', s.axis_rotated ? 0 : l) + .attr('y2', s.axis_rotated ? o.height : l) + .style('opacity', 1), + o.ygridLines + .select('text') + .transition() + .duration(t) + .attr( + 'x', + s.axis_rotated + ? o.xGridTextX.bind(o) + : o.yGridTextX.bind(o) + ) + .attr('y', l) + .text(function(t) { + return t.text; + }) + .style('opacity', 1), + r + .exit() + .transition() + .duration(t) + .style('opacity', 0) + .remove(); + }), + (r.prototype.redrawGrid = function(t, e) { + var n = this, + r = n.config, + i = n.xv.bind(n), + o = n.xgridLines.select('line'), + a = n.xgridLines.select('text'); + return [ + (t ? o.transition(e) : o) + .attr('x1', r.axis_rotated ? 0 : i) + .attr('x2', r.axis_rotated ? n.width : i) + .attr('y1', r.axis_rotated ? i : 0) + .attr('y2', r.axis_rotated ? i : n.height) + .style('opacity', 1), + (t ? a.transition(e) : a) + .attr( + 'x', + r.axis_rotated + ? n.yGridTextX.bind(n) + : n.xGridTextX.bind(n) + ) + .attr('y', i) + .text(function(t) { + return t.text; + }) + .style('opacity', 1) + ]; + }), + (r.prototype.showXGridFocus = function(t) { + var e = this, + n = e.config, + r = t.filter(function(t) { + return t && y(t.value); + }), + i = e.main.selectAll('line.' + w.xgridFocus), + o = e.xx.bind(e); + n.tooltip_show && + (e.hasType('stanford') || + e.hasArcType() || + (i + .style('visibility', 'visible') + .data([r[0]]) + .attr(n.axis_rotated ? 'y1' : 'x1', o) + .attr(n.axis_rotated ? 'y2' : 'x2', o), + e.smoothLines(i, 'grid'))); + }), + (r.prototype.hideXGridFocus = function() { + this.main + .select('line.' + w.xgridFocus) + .style('visibility', 'hidden'); + }), + (r.prototype.updateXgridFocus = function() { + var t = this.config; + this.main + .select('line.' + w.xgridFocus) + .attr('x1', t.axis_rotated ? 0 : -10) + .attr('x2', t.axis_rotated ? this.width : -10) + .attr('y1', t.axis_rotated ? -10 : 0) + .attr('y2', t.axis_rotated ? -10 : this.height); + }), + (r.prototype.generateGridData = function(t, e) { + var n, + r, + i, + o, + a = [], + s = this.main + .select('.' + w.axisX) + .selectAll('.tick') + .size(); + if ('year' === t) + for ( + r = (n = this.getXDomain())[0].getFullYear(), + i = n[1].getFullYear(), + o = r; + o <= i; + o++ + ) + a.push(new Date(o + '-01-01 00:00:00')); + else + (a = e.ticks(10)).length > s && + (a = a.filter(function(t) { + return ('' + t).indexOf('.') < 0; + })); + return a; + }), + (r.prototype.getGridFilterToRemove = function(t) { + return t + ? function(e) { + var n = !1; + return ( + [].concat(t).forEach(function(t) { + (('value' in t && e.value === t.value) || + ('class' in t && e.class === t.class)) && + (n = !0); + }), + n + ); + } + : function() { + return !0; + }; + }), + (r.prototype.removeGridLines = function(t, e) { + var n = this.config, + r = this.getGridFilterToRemove(t), + i = function(t) { + return !r(t); + }, + o = e ? w.xgridLines : w.ygridLines, + a = e ? w.xgridLine : w.ygridLine; + this.main + .select('.' + o) + .selectAll('.' + a) + .filter(r) + .transition() + .duration(n.transition_duration) + .style('opacity', 0) + .remove(), + e + ? (n.grid_x_lines = n.grid_x_lines.filter(i)) + : (n.grid_y_lines = n.grid_y_lines.filter(i)); + }), + (r.prototype.initEventRect = function() { + var t = this, + e = t.config; + t.main + .select('.' + w.chart) + .append('g') + .attr('class', w.eventRects) + .style('fill-opacity', 0), + (t.eventRect = t.main + .select('.' + w.eventRects) + .append('rect') + .attr('class', w.eventRect)), + e.zoom_enabled && + t.zoom && + (t.eventRect.call(t.zoom).on('dblclick.zoom', null), + e.zoom_initialRange && + t.eventRect + .transition() + .duration(0) + .call( + t.zoom.transform, + t.zoomTransform(e.zoom_initialRange) + )); + }), + (r.prototype.redrawEventRect = function() { + var t = this, + e = t.d3, + n = t.config; + function r() { + t.svg.select('.' + w.eventRect).style('cursor', null), + t.hideXGridFocus(), + t.hideTooltip(), + t.unexpandCircles(), + t.unexpandBars(); + } + var i = function(e, r) { + return ( + r && + (t.isBarType(r.id) || + t.dist(r, e) < n.point_sensitivity) + ); + }, + o = function(e) { + return e ? t.addName(Object.assign({}, e)) : null; + }; + t.main + .select('.' + w.eventRects) + .style( + 'cursor', + n.zoom_enabled + ? n.axis_rotated + ? 'ns-resize' + : 'ew-resize' + : null + ), + t.eventRect + .attr('x', 0) + .attr('y', 0) + .attr('width', t.width) + .attr('height', t.height) + .on( + 'mouseout', + n.interaction_enabled + ? function() { + n && + (t.hasArcType() || + (t.mouseover && + (n.data_onmouseout.call( + t.api, + t.mouseover + ), + (t.mouseover = void 0)), + r())); + } + : null + ) + .on( + 'mousemove', + n.interaction_enabled + ? function() { + if (!t.dragging) { + var a = t.getTargetsToShow(); + if (!t.hasArcType(a)) { + var s, + u = e.mouse(this), + l = o(t.findClosestFromTargets(a, u)), + c = i(u, l); + if ( + (!t.mouseover || + (l && + l.id === t.mouseover.id && + l.index === t.mouseover.index) || + (n.data_onmouseout.call( + t.api, + t.mouseover + ), + (t.mouseover = void 0)), + l && + !t.mouseover && + (n.data_onmouseover.call(t.api, l), + (t.mouseover = l)), + t.svg + .select('.' + w.eventRect) + .style('cursor', c ? 'pointer' : null), + !n.tooltip_grouped || + t.hasType('stanford', a)) + ) + l && (s = [l]); + else { + var f; + if (l) f = l; + else { + var d = n.axis_rotated ? u[1] : u[0]; + f = t.findClosestFromTargetsByX( + a, + t.x.invert(d) + ); + } + f && (s = t.filterByX(a, f.x)); + } + if (!s || 0 === s.length) return r(); + (s = s.map(o)), + t.showTooltip(s, this), + n.point_focus_expand_enabled && + (t.unexpandCircles(), + s.forEach(function(e) { + t.expandCircles(e.index, e.id, !1); + })), + t.unexpandBars(), + s.forEach(function(e) { + t.expandBars(e.index, e.id, !1); + }), + t.showXGridFocus(s); + } + } + } + : null + ) + .on( + 'click', + n.interaction_enabled + ? function() { + var r = t.getTargetsToShow(); + if (!t.hasArcType(r)) { + var a = e.mouse(this), + s = o(t.findClosestFromTargets(r, a)); + if ( + i(a, s) && + ((!n.data_selection_grouped || + t.isStanfordType(s) + ? [s] + : t.filterByX(r, s.x) + ).forEach(function(e) { + t.main + .selectAll( + '.' + + w.shapes + + t.getTargetSelectorSuffix(e.id) + ) + .selectAll( + '.' + w.shape + '-' + e.index + ) + .each(function() { + (n.data_selection_grouped || + t.isWithinShape(this, e)) && + t.toggleShape(this, e, e.index); + }); + }), + s) + ) { + var u = t.main + .selectAll( + '.' + + w.shapes + + t.getTargetSelectorSuffix(s.id) + ) + .select('.' + w.shape + '-' + s.index); + n.data_onclick.call(t.api, s, u.node()); + } + } + } + : null + ) + .call( + n.interaction_enabled && + n.data_selection_draggable && + t.drag + ? e + .drag() + .on('drag', function() { + t.drag(e.mouse(this)); + }) + .on('start', function() { + t.dragstart(e.mouse(this)); + }) + .on('end', function() { + t.dragend(); + }) + : function() {} + ); + }), + (r.prototype.getMousePosition = function(t) { + return [this.x(t.x), this.getYScale(t.id)(t.value)]; + }), + (r.prototype.dispatchEvent = function(t, e) { + var n = '.' + w.eventRect, + r = this.main.select(n).node(), + i = r.getBoundingClientRect(), + o = i.left + (e ? e[0] : 0), + a = i.top + (e ? e[1] : 0), + s = document.createEvent('MouseEvents'); + s.initMouseEvent( + t, + !0, + !0, + window, + 0, + o, + a, + o, + a, + !1, + !1, + !1, + !1, + 0, + null + ), + r.dispatchEvent(s); + }), + (r.prototype.initLegend = function() { + var t = this; + if ( + ((t.legendItemTextBox = {}), + (t.legendHasRendered = !1), + (t.legend = t.svg + .append('g') + .attr('transform', t.getTranslate('legend'))), + !t.config.legend_show) + ) + return ( + t.legend.style('visibility', 'hidden'), + void (t.hiddenLegendIds = t.mapToIds(t.data.targets)) + ); + t.updateLegendWithDefaults(); + }), + (r.prototype.updateLegendWithDefaults = function() { + this.updateLegend(this.mapToIds(this.data.targets), { + withTransform: !1, + withTransitionForTransform: !1, + withTransition: !1 + }); + }), + (r.prototype.updateSizeForLegend = function(t, e) { + var n = this, + r = n.config, + i = { + top: n.isLegendTop + ? n.getCurrentPaddingTop() + r.legend_inset_y + 5.5 + : n.currentHeight - + t - + n.getCurrentPaddingBottom() - + r.legend_inset_y, + left: n.isLegendLeft + ? n.getCurrentPaddingLeft() + r.legend_inset_x + 0.5 + : n.currentWidth - + e - + n.getCurrentPaddingRight() - + r.legend_inset_x + + 0.5 + }; + n.margin3 = { + top: n.isLegendRight + ? 0 + : n.isLegendInset + ? i.top + : n.currentHeight - t, + right: NaN, + bottom: 0, + left: n.isLegendRight + ? n.currentWidth - e + : n.isLegendInset + ? i.left + : 0 + }; + }), + (r.prototype.transformLegend = function(t) { + (t ? this.legend.transition() : this.legend).attr( + 'transform', + this.getTranslate('legend') + ); + }), + (r.prototype.updateLegendStep = function(t) { + this.legendStep = t; + }), + (r.prototype.updateLegendItemWidth = function(t) { + this.legendItemWidth = t; + }), + (r.prototype.updateLegendItemHeight = function(t) { + this.legendItemHeight = t; + }), + (r.prototype.getLegendWidth = function() { + var t = this; + return t.config.legend_show + ? t.isLegendRight || t.isLegendInset + ? t.legendItemWidth * (t.legendStep + 1) + : t.currentWidth + : 0; + }), + (r.prototype.getLegendHeight = function() { + var t = this, + e = 0; + return ( + t.config.legend_show && + (e = t.isLegendRight + ? t.currentHeight + : Math.max(20, t.legendItemHeight) * + (t.legendStep + 1)), + e + ); + }), + (r.prototype.opacityForLegend = function(t) { + return t.classed(w.legendItemHidden) ? null : 1; + }), + (r.prototype.opacityForUnfocusedLegend = function(t) { + return t.classed(w.legendItemHidden) ? null : 0.3; + }), + (r.prototype.toggleFocusLegend = function(t, e) { + var n = this; + (t = n.mapToTargetIds(t)), + n.legend + .selectAll('.' + w.legendItem) + .filter(function(e) { + return t.indexOf(e) >= 0; + }) + .classed(w.legendItemFocused, e) + .transition() + .duration(100) + .style('opacity', function() { + return (e + ? n.opacityForLegend + : n.opacityForUnfocusedLegend + ).call(n, n.d3.select(this)); + }); + }), + (r.prototype.revertLegend = function() { + var t = this, + e = t.d3; + t.legend + .selectAll('.' + w.legendItem) + .classed(w.legendItemFocused, !1) + .transition() + .duration(100) + .style('opacity', function() { + return t.opacityForLegend(e.select(this)); + }); + }), + (r.prototype.showLegend = function(t) { + var e = this, + n = e.config; + n.legend_show || + ((n.legend_show = !0), + e.legend.style('visibility', 'visible'), + e.legendHasRendered || e.updateLegendWithDefaults()), + e.removeHiddenLegendIds(t), + e.legend + .selectAll(e.selectorLegends(t)) + .style('visibility', 'visible') + .transition() + .style('opacity', function() { + return e.opacityForLegend(e.d3.select(this)); + }); + }), + (r.prototype.hideLegend = function(t) { + var e = this, + n = e.config; + n.legend_show && + h(t) && + ((n.legend_show = !1), + e.legend.style('visibility', 'hidden')), + e.addHiddenLegendIds(t), + e.legend + .selectAll(e.selectorLegends(t)) + .style('opacity', 0) + .style('visibility', 'hidden'); + }), + (r.prototype.clearLegendItemTextBoxCache = function() { + this.legendItemTextBox = {}; + }), + (r.prototype.updateLegend = function(t, e, n) { + var r, + i, + o, + a, + s, + l, + c, + f, + h, + p, + g, + m, + v, + y, + b, + _, + x = this, + S = x.config, + E = 4, + k = 10, + A = 0, + T = 0, + C = 10, + O = S.legend_item_tile_width + 5, + P = 0, + M = {}, + L = {}, + j = {}, + D = [0], + R = {}, + z = 0; + function N(e, n, r) { + var i, + o, + a = 0 === r, + s = r === t.length - 1, + u = (function(t, e) { + return ( + x.legendItemTextBox[e] || + (x.legendItemTextBox[e] = x.getTextRect( + t.textContent, + w.legendItem, + t + )), + x.legendItemTextBox[e] + ); + })(e, n), + l = + u.width + + O + + (!s || x.isLegendRight || x.isLegendInset ? k : 0) + + S.legend_padding, + c = u.height + E, + f = x.isLegendRight || x.isLegendInset ? c : l, + d = + x.isLegendRight || x.isLegendInset + ? x.getLegendHeight() + : x.getLegendWidth(); + function h(t, e) { + e || + ((i = (d - P - f) / 2) < C && + ((i = (d - f) / 2), (P = 0), z++)), + (R[t] = z), + (D[z] = x.isLegendInset ? 10 : i), + (M[t] = P), + (P += f); + } + a && ((P = 0), (z = 0), (A = 0), (T = 0)), + !S.legend_show || x.isLegendToShow(n) + ? ((L[n] = l), + (j[n] = c), + (!A || l >= A) && (A = l), + (!T || c >= T) && (T = c), + (o = x.isLegendRight || x.isLegendInset ? T : A), + S.legend_equally + ? (Object.keys(L).forEach(function(t) { + L[t] = A; + }), + Object.keys(j).forEach(function(t) { + j[t] = T; + }), + (i = (d - o * t.length) / 2) < C + ? ((P = 0), + (z = 0), + t.forEach(function(t) { + h(t); + })) + : h(n, !0)) + : h(n)) + : (L[n] = j[n] = R[n] = M[n] = 0); + } + (t = t.filter(function(t) { + return !d(S.data_names[t]) || null !== S.data_names[t]; + })), + (g = u((e = e || {}), 'withTransition', !0)), + (m = u(e, 'withTransitionForTransform', !0)), + x.isLegendInset && + ((z = S.legend_inset_step + ? S.legend_inset_step + : t.length), + x.updateLegendStep(z)), + x.isLegendRight + ? ((r = function(t) { + return A * R[t]; + }), + (a = function(t) { + return D[R[t]] + M[t]; + })) + : x.isLegendInset + ? ((r = function(t) { + return A * R[t] + 10; + }), + (a = function(t) { + return D[R[t]] + M[t]; + })) + : ((r = function(t) { + return D[R[t]] + M[t]; + }), + (a = function(t) { + return T * R[t]; + })), + (i = function(t, e) { + return r(t, e) + 4 + S.legend_item_tile_width; + }), + (s = function(t, e) { + return a(t, e) + 9; + }), + (o = function(t, e) { + return r(t, e); + }), + (l = function(t, e) { + return a(t, e) - 5; + }), + (c = function(t, e) { + return r(t, e) - 2; + }), + (f = function(t, e) { + return r(t, e) - 2 + S.legend_item_tile_width; + }), + (h = function(t, e) { + return a(t, e) + 4; + }), + (p = x.legend + .selectAll('.' + w.legendItem) + .data(t) + .enter() + .append('g') + .attr('class', function(t) { + return x.generateClass(w.legendItem, t); + }) + .style('visibility', function(t) { + return x.isLegendToShow(t) ? 'visible' : 'hidden'; + }) + .style('cursor', 'pointer') + .on('click', function(t) { + S.legend_item_onclick + ? S.legend_item_onclick.call(x, t) + : x.d3.event.altKey + ? (x.api.hide(), x.api.show(t)) + : (x.api.toggle(t), + x.isTargetToShow(t) + ? x.api.focus(t) + : x.api.revert()); + }) + .on('mouseover', function(t) { + S.legend_item_onmouseover + ? S.legend_item_onmouseover.call(x, t) + : (x.d3 + .select(this) + .classed(w.legendItemFocused, !0), + !x.transiting && + x.isTargetToShow(t) && + x.api.focus(t)); + }) + .on('mouseout', function(t) { + S.legend_item_onmouseout + ? S.legend_item_onmouseout.call(x, t) + : (x.d3 + .select(this) + .classed(w.legendItemFocused, !1), + x.api.revert()); + })) + .append('text') + .text(function(t) { + return d(S.data_names[t]) ? S.data_names[t] : t; + }) + .each(function(t, e) { + N(this, t, e); + }) + .style('pointer-events', 'none') + .attr( + 'x', + x.isLegendRight || x.isLegendInset ? i : -200 + ) + .attr( + 'y', + x.isLegendRight || x.isLegendInset ? -200 : s + ), + p + .append('rect') + .attr('class', w.legendItemEvent) + .style('fill-opacity', 0) + .attr( + 'x', + x.isLegendRight || x.isLegendInset ? o : -200 + ) + .attr( + 'y', + x.isLegendRight || x.isLegendInset ? -200 : l + ), + p + .append('line') + .attr('class', w.legendItemTile) + .style('stroke', x.color) + .style('pointer-events', 'none') + .attr( + 'x1', + x.isLegendRight || x.isLegendInset ? c : -200 + ) + .attr( + 'y1', + x.isLegendRight || x.isLegendInset ? -200 : h + ) + .attr( + 'x2', + x.isLegendRight || x.isLegendInset ? f : -200 + ) + .attr( + 'y2', + x.isLegendRight || x.isLegendInset ? -200 : h + ) + .attr('stroke-width', S.legend_item_tile_height), + (_ = x.legend.select('.' + w.legendBackground + ' rect')), + x.isLegendInset && + A > 0 && + 0 === _.size() && + (_ = x.legend + .insert('g', '.' + w.legendItem) + .attr('class', w.legendBackground) + .append('rect')), + (v = x.legend + .selectAll('text') + .data(t) + .text(function(t) { + return d(S.data_names[t]) ? S.data_names[t] : t; + }) + .each(function(t, e) { + N(this, t, e); + })), + (g ? v.transition() : v).attr('x', i).attr('y', s), + (y = x.legend + .selectAll('rect.' + w.legendItemEvent) + .data(t)), + (g ? y.transition() : y) + .attr('width', function(t) { + return L[t]; + }) + .attr('height', function(t) { + return j[t]; + }) + .attr('x', o) + .attr('y', l), + (b = x.legend + .selectAll('line.' + w.legendItemTile) + .data(t)), + (g ? b.transition() : b) + .style( + 'stroke', + x.levelColor + ? function(t) { + return x.levelColor(x.cache[t].values[0].value); + } + : x.color + ) + .attr('x1', c) + .attr('y1', h) + .attr('x2', f) + .attr('y2', h), + _ && + (g ? _.transition() : _) + .attr('height', x.getLegendHeight() - 12) + .attr('width', A * (z + 1) + 10), + x.legend + .selectAll('.' + w.legendItem) + .classed(w.legendItemHidden, function(t) { + return !x.isTargetToShow(t); + }), + x.updateLegendItemWidth(A), + x.updateLegendItemHeight(T), + x.updateLegendStep(z), + x.updateSizes(), + x.updateScales(), + x.updateSvgSize(), + x.transformAll(m, n), + (x.legendHasRendered = !0); + }), + (r.prototype.initRegion = function() { + this.region = this.main + .append('g') + .attr('clip-path', this.clipPath) + .attr('class', w.regions); + }), + (r.prototype.updateRegion = function(t) { + var e = this, + n = e.config; + e.region.style( + 'visibility', + e.hasArcType() ? 'hidden' : 'visible' + ); + var r = e.main + .select('.' + w.regions) + .selectAll('.' + w.region) + .data(n.regions), + i = r.enter().append('g'); + i + .append('rect') + .attr('x', e.regionX.bind(e)) + .attr('y', e.regionY.bind(e)) + .attr('width', e.regionWidth.bind(e)) + .attr('height', e.regionHeight.bind(e)) + .style('fill-opacity', function(t) { + return y(t.opacity) ? t.opacity : 0.1; + }), + i.append('text').text(e.labelRegion.bind(e)), + (e.mainRegion = i + .merge(r) + .attr('class', e.classRegion.bind(e))), + r + .exit() + .transition() + .duration(t) + .style('opacity', 0) + .remove(); + }), + (r.prototype.redrawRegion = function(t, e) { + var n = this, + r = n.mainRegion, + i = n.mainRegion.selectAll('text'); + return [ + (t ? r.transition(e) : r) + .attr('x', n.regionX.bind(n)) + .attr('y', n.regionY.bind(n)) + .attr('width', n.regionWidth.bind(n)) + .attr('height', n.regionHeight.bind(n)) + .style('fill-opacity', function(t) { + return y(t.opacity) ? t.opacity : 0.1; + }), + (t ? i.transition(e) : i) + .attr('x', n.labelOffsetX.bind(n)) + .attr('y', n.labelOffsetY.bind(n)) + .attr('transform', n.labelTransform.bind(n)) + .attr('style', 'text-anchor: left;') + ]; + }), + (r.prototype.regionX = function(t) { + var e = this, + n = e.config, + r = 'y' === t.axis ? e.y : e.y2; + return 'y' === t.axis || 'y2' === t.axis + ? n.axis_rotated && 'start' in t + ? r(t.start) + : 0 + : n.axis_rotated + ? 0 + : 'start' in t + ? e.x(e.isTimeSeries() ? e.parseDate(t.start) : t.start) + : 0; + }), + (r.prototype.regionY = function(t) { + var e = this, + n = e.config, + r = 'y' === t.axis ? e.y : e.y2; + return 'y' === t.axis || 'y2' === t.axis + ? n.axis_rotated + ? 0 + : 'end' in t + ? r(t.end) + : 0 + : n.axis_rotated && 'start' in t + ? e.x(e.isTimeSeries() ? e.parseDate(t.start) : t.start) + : 0; + }), + (r.prototype.regionWidth = function(t) { + var e, + n = this, + r = n.config, + i = n.regionX(t), + o = 'y' === t.axis ? n.y : n.y2; + return (e = + 'y' === t.axis || 'y2' === t.axis + ? r.axis_rotated && 'end' in t + ? o(t.end) + : n.width + : r.axis_rotated + ? n.width + : 'end' in t + ? n.x(n.isTimeSeries() ? n.parseDate(t.end) : t.end) + : n.width) < i + ? 0 + : e - i; + }), + (r.prototype.regionHeight = function(t) { + var e, + n = this, + r = n.config, + i = this.regionY(t), + o = 'y' === t.axis ? n.y : n.y2; + return (e = + 'y' === t.axis || 'y2' === t.axis + ? r.axis_rotated + ? n.height + : 'start' in t + ? o(t.start) + : n.height + : r.axis_rotated && 'end' in t + ? n.x(n.isTimeSeries() ? n.parseDate(t.end) : t.end) + : n.height) < i + ? 0 + : e - i; + }), + (r.prototype.isRegionOnX = function(t) { + return !t.axis || 'x' === t.axis; + }), + (r.prototype.labelRegion = function(t) { + return 'label' in t ? t.label : ''; + }), + (r.prototype.labelTransform = function(t) { + return 'vertical' in t && t.vertical ? 'rotate(90)' : ''; + }), + (r.prototype.labelOffsetX = function(t) { + var e = 'paddingX' in t ? t.paddingX : 3, + n = 'paddingY' in t ? t.paddingY : 3; + return 'vertical' in t && t.vertical + ? this.regionY(t) + n + : this.regionX(t) + e; + }), + (r.prototype.labelOffsetY = function(t) { + var e = 'paddingX' in t ? t.paddingX : 3, + n = 'paddingY' in t ? t.paddingY : 3; + return 'vertical' in t && t.vertical + ? -(this.regionX(t) + e) + : this.regionY(t) + 10 + n; + }), + (r.prototype.getScale = function(t, e, n) { + return (n + ? this.d3.scaleTime() + : this.d3.scaleLinear() + ).range([t, e]); + }), + (r.prototype.getX = function(t, e, n, r) { + var i, + o = this.getScale(t, e, this.isTimeSeries()), + a = n ? o.domain(n) : o; + for (i in (this.isCategorized() + ? ((r = + r || + function() { + return 0; + }), + (o = function(t, e) { + var n = a(t) + r(t); + return e ? n : Math.ceil(n); + })) + : (o = function(t, e) { + var n = a(t); + return e ? n : Math.ceil(n); + }), + a)) + o[i] = a[i]; + return ( + (o.orgDomain = function() { + return a.domain(); + }), + this.isCategorized() && + (o.domain = function(t) { + return arguments.length + ? (a.domain(t), o) + : [(t = this.orgDomain())[0], t[1] + 1]; + }), + o + ); + }), + (r.prototype.getY = function(t, e, n) { + var r; + if ('timeseries' === t || 'time' === t) + r = this.d3.scaleTime(); + else if ('log' === t) r = k(this.d3); + else { + if ('linear' !== t && void 0 !== t) + throw new Error( + 'Invalid Y axis type: "'.concat(t, '"') + ); + r = this.d3.scaleLinear(); + } + return e && r.domain(e), n && r.range(n), r; + }), + (r.prototype.getYScale = function(t) { + return 'y2' === this.axis.getId(t) ? this.y2 : this.y; + }), + (r.prototype.getSubYScale = function(t) { + return 'y2' === this.axis.getId(t) ? this.subY2 : this.subY; + }), + (r.prototype.updateScales = function() { + var t = this, + e = t.config, + n = !t.x; + (t.xMin = e.axis_rotated ? 1 : 0), + (t.xMax = e.axis_rotated ? t.height : t.width), + (t.yMin = e.axis_rotated ? 0 : t.height), + (t.yMax = e.axis_rotated ? t.width : 1), + (t.subXMin = t.xMin), + (t.subXMax = t.xMax), + (t.subYMin = e.axis_rotated ? 0 : t.height2), + (t.subYMax = e.axis_rotated ? t.width2 : 1), + (t.x = t.getX( + t.xMin, + t.xMax, + n ? void 0 : t.x.orgDomain(), + function() { + return t.xAxis.tickOffset(); + } + )), + (t.y = t.getY( + e.axis_y_type, + n ? e.axis_y_default : t.y.domain(), + [t.yMin, t.yMax] + )), + (t.y2 = t.getY( + e.axis_y2_type, + n ? e.axis_y2_default : t.y2.domain(), + [t.yMin, t.yMax] + )), + (t.subX = t.getX(t.xMin, t.xMax, t.orgXDomain, function( + e + ) { + return e % 1 ? 0 : t.subXAxis.tickOffset(); + })), + (t.subY = t.getY( + e.axis_y_type, + n ? e.axis_y_default : t.subY.domain(), + [t.subYMin, t.subYMax] + )), + (t.subY2 = t.getY( + e.axis_y2_type, + n ? e.axis_y2_default : t.subY2.domain(), + [t.subYMin, t.subYMax] + )), + (t.xAxisTickFormat = t.axis.getXAxisTickFormat()), + (t.xAxisTickValues = t.axis.getXAxisTickValues()), + (t.yAxisTickValues = t.axis.getYAxisTickValues()), + (t.y2AxisTickValues = t.axis.getY2AxisTickValues()), + (t.xAxis = t.axis.getXAxis( + t.x, + t.xOrient, + t.xAxisTickFormat, + t.xAxisTickValues, + e.axis_x_tick_outer + )), + (t.subXAxis = t.axis.getXAxis( + t.subX, + t.subXOrient, + t.xAxisTickFormat, + t.xAxisTickValues, + e.axis_x_tick_outer + )), + (t.yAxis = t.axis.getYAxis( + 'y', + t.y, + t.yOrient, + t.yAxisTickValues, + e.axis_y_tick_outer + )), + (t.y2Axis = t.axis.getYAxis( + 'y2', + t.y2, + t.y2Orient, + t.y2AxisTickValues, + e.axis_y2_tick_outer + )), + n || (t.brush && t.brush.updateScale(t.subX)), + t.updateArc && t.updateArc(); + }), + (r.prototype.selectPoint = function(t, e, n) { + var r = this, + i = r.config, + o = (i.axis_rotated ? r.circleY : r.circleX).bind(r), + a = (i.axis_rotated ? r.circleX : r.circleY).bind(r), + s = r.pointSelectR.bind(r); + i.data_onselected.call(r.api, e, t.node()), + r.main + .select( + '.' + + w.selectedCircles + + r.getTargetSelectorSuffix(e.id) + ) + .selectAll('.' + w.selectedCircle + '-' + n) + .data([e]) + .enter() + .append('circle') + .attr('class', function() { + return r.generateClass(w.selectedCircle, n); + }) + .attr('cx', o) + .attr('cy', a) + .attr('stroke', function() { + return r.color(e); + }) + .attr('r', function(t) { + return 1.4 * r.pointSelectR(t); + }) + .transition() + .duration(100) + .attr('r', s); + }), + (r.prototype.unselectPoint = function(t, e, n) { + this.config.data_onunselected.call(this.api, e, t.node()), + this.main + .select( + '.' + + w.selectedCircles + + this.getTargetSelectorSuffix(e.id) + ) + .selectAll('.' + w.selectedCircle + '-' + n) + .transition() + .duration(100) + .attr('r', 0) + .remove(); + }), + (r.prototype.togglePoint = function(t, e, n, r) { + t ? this.selectPoint(e, n, r) : this.unselectPoint(e, n, r); + }), + (r.prototype.selectPath = function(t, e) { + var n = this; + n.config.data_onselected.call(n, e, t.node()), + n.config.interaction_brighten && + t + .transition() + .duration(100) + .style('fill', function() { + return n.d3.rgb(n.color(e)).brighter(0.75); + }); + }), + (r.prototype.unselectPath = function(t, e) { + var n = this; + n.config.data_onunselected.call(n, e, t.node()), + n.config.interaction_brighten && + t + .transition() + .duration(100) + .style('fill', function() { + return n.color(e); + }); + }), + (r.prototype.togglePath = function(t, e, n, r) { + t ? this.selectPath(e, n, r) : this.unselectPath(e, n, r); + }), + (r.prototype.getToggle = function(t, e) { + var n; + return ( + 'circle' === t.nodeName + ? (n = this.isStepType(e) + ? function() {} + : this.togglePoint) + : 'path' === t.nodeName && (n = this.togglePath), + n + ); + }), + (r.prototype.toggleShape = function(t, e, n) { + var r = this, + i = r.d3, + o = r.config, + a = i.select(t), + s = a.classed(w.SELECTED), + u = r.getToggle(t, e).bind(r); + o.data_selection_enabled && + o.data_selection_isselectable(e) && + (o.data_selection_multiple || + r.main + .selectAll( + '.' + + w.shapes + + (o.data_selection_grouped + ? r.getTargetSelectorSuffix(e.id) + : '') + ) + .selectAll('.' + w.shape) + .each(function(t, e) { + var n = i.select(this); + n.classed(w.SELECTED) && + u(!1, n.classed(w.SELECTED, !1), t, e); + }), + a.classed(w.SELECTED, !s), + u(!s, a, e, n)); + }), + (r.prototype.initBar = function() { + this.main + .select('.' + w.chart) + .append('g') + .attr('class', w.chartBars); + }), + (r.prototype.updateTargetsForBar = function(t) { + var e = this, + n = e.config, + r = e.classChartBar.bind(e), + i = e.classBars.bind(e), + o = e.classFocus.bind(e); + e.main + .select('.' + w.chartBars) + .selectAll('.' + w.chartBar) + .data(t) + .attr('class', function(t) { + return r(t) + o(t); + }) + .enter() + .append('g') + .attr('class', r) + .style('pointer-events', 'none') + .append('g') + .attr('class', i) + .style('cursor', function(t) { + return n.data_selection_isselectable(t) + ? 'pointer' + : null; + }); + }), + (r.prototype.updateBar = function(t) { + var e = this, + n = e.barData.bind(e), + r = e.classBar.bind(e), + i = e.initialOpacity.bind(e), + o = function(t) { + return e.color(t.id); + }, + a = e.main + .selectAll('.' + w.bars) + .selectAll('.' + w.bar) + .data(n), + s = a + .enter() + .append('path') + .attr('class', r) + .style('stroke', o) + .style('fill', o); + (e.mainBar = s.merge(a).style('opacity', i)), + a + .exit() + .transition() + .duration(t) + .style('opacity', 0); + }), + (r.prototype.redrawBar = function(t, e, n) { + var r = this; + return [ + (e ? this.mainBar.transition(n) : this.mainBar) + .attr('d', t) + .style('stroke', this.color) + .style('fill', this.color) + .style('opacity', function(t) { + return r.isTargetToShow(t.id) ? 1 : 0; + }) + ]; + }), + (r.prototype.getBarW = function(t, e) { + var n = this.config, + r = + 'number' == typeof n.bar_width + ? n.bar_width + : e + ? (t.tickInterval() * n.bar_width_ratio) / e + : 0; + return n.bar_width_max && r > n.bar_width_max + ? n.bar_width_max + : r; + }), + (r.prototype.getBars = function(t, e) { + return (e + ? this.main.selectAll( + '.' + w.bars + this.getTargetSelectorSuffix(e) + ) + : this.main + ).selectAll('.' + w.bar + (y(t) ? '-' + t : '')); + }), + (r.prototype.expandBars = function(t, e, n) { + n && this.unexpandBars(), + this.getBars(t, e).classed(w.EXPANDED, !0); + }), + (r.prototype.unexpandBars = function(t) { + this.getBars(t).classed(w.EXPANDED, !1); + }), + (r.prototype.generateDrawBar = function(t, e) { + var n = this.config, + r = this.generateGetBarPoints(t, e); + return function(t, e) { + var i = r(t, e), + o = n.axis_rotated ? 1 : 0, + a = n.axis_rotated ? 0 : 1; + return ( + 'M ' + + i[0][o] + + ',' + + i[0][a] + + ' L' + + i[1][o] + + ',' + + i[1][a] + + ' L' + + i[2][o] + + ',' + + i[2][a] + + ' L' + + i[3][o] + + ',' + + i[3][a] + + ' z' + ); + }; + }), + (r.prototype.generateGetBarPoints = function(t, e) { + var n = this, + r = e ? n.subXAxis : n.xAxis, + i = t.__max__ + 1, + o = n.getBarW(r, i), + a = n.getShapeX(o, i, t, !!e), + s = n.getShapeY(!!e), + u = n.getShapeOffset(n.isBarType, t, !!e), + l = o * (n.config.bar_space / 2), + c = e ? n.getSubYScale : n.getYScale; + return function(t, e) { + var r = c.call(n, t.id)(0), + i = u(t, e) || r, + f = a(t), + d = s(t); + return ( + n.config.axis_rotated && + ((0 < t.value && d < r) || (t.value < 0 && r < d)) && + (d = r), + [ + [f + l, i], + [f + l, (d -= r - i)], + [f + o - l, d], + [f + o - l, i] + ] + ); + }; + }), + (r.prototype.isWithinBar = function(t, e) { + return (function(t, e) { + var n = + arguments.length > 2 && void 0 !== arguments[2] + ? arguments[2] + : 0, + r = e.x - n, + i = e.x + e.width + n, + o = e.y + e.height + n, + a = e.y - n; + return r < t[0] && t[0] < i && a < t[1] && t[1] < o; + })(t, c(e), 2); + }), + (r.prototype.getShapeIndices = function(t) { + var e, + n, + r = this.config, + i = {}, + o = 0; + return ( + this.filterTargetsToShow( + this.data.targets.filter(t, this) + ).forEach(function(t) { + for (e = 0; e < r.data_groups.length; e++) + if (!(r.data_groups[e].indexOf(t.id) < 0)) + for (n = 0; n < r.data_groups[e].length; n++) + if (r.data_groups[e][n] in i) { + i[t.id] = i[r.data_groups[e][n]]; + break; + } + v(i[t.id]) && (i[t.id] = o++); + }), + (i.__max__ = o - 1), + i + ); + }), + (r.prototype.getShapeX = function(t, e, n, r) { + var i = r ? this.subX : this.x; + return function(r) { + var o = r.id in n ? n[r.id] : 0; + return r.x || 0 === r.x ? i(r.x) - t * (e / 2 - o) : 0; + }; + }), + (r.prototype.getShapeY = function(t) { + var e = this; + return function(n) { + return (t ? e.getSubYScale(n.id) : e.getYScale(n.id))( + e.isTargetNormalized(n.id) + ? e.getRatio('index', n, !0) + : n.value + ); + }; + }), + (r.prototype.getShapeOffset = function(t, e, n) { + var r = this, + i = r.orderTargets( + r.filterTargetsToShow(r.data.targets.filter(t, r)) + ), + o = i.map(function(t) { + return t.id; + }); + return function(t, a) { + var s = n ? r.getSubYScale(t.id) : r.getYScale(t.id), + u = s(0), + l = u; + return ( + i.forEach(function(n) { + var i = r.isStepType(t) + ? r.convertValuesToStep(n.values) + : n.values, + c = r.isTargetNormalized(t.id), + f = i.map(function(t) { + return c ? r.getRatio('index', t, !0) : t.value; + }); + n.id !== t.id && + e[n.id] === e[t.id] && + o.indexOf(n.id) < o.indexOf(t.id) && + ((v(i[a]) || +i[a].x != +t.x) && + ((a = -1), + i.forEach(function(e, n) { + (e.x.constructor === Date ? +e.x : e.x) === + (t.x.constructor === Date ? +t.x : t.x) && + (a = n); + })), + a in i && + i[a].value * t.value >= 0 && + (l += s(f[a]) - u)); + }), + l + ); + }; + }), + (r.prototype.isWithinShape = function(t, e) { + var n, + r = this, + i = r.d3.select(t); + return ( + r.isTargetToShow(e.id) + ? 'circle' === t.nodeName + ? (n = r.isStepType(e) + ? r.isWithinStep(t, r.getYScale(e.id)(e.value)) + : r.isWithinCircle(t, 1.5 * r.pointSelectR(e))) + : 'path' === t.nodeName && + (n = + !i.classed(w.bar) || + r.isWithinBar(r.d3.mouse(t), t)) + : (n = !1), + n + ); + }), + (r.prototype.getInterpolate = function(t) { + var e = this, + n = e.d3, + r = { + linear: n.curveLinear, + 'linear-closed': n.curveLinearClosed, + basis: n.curveBasis, + 'basis-open': n.curveBasisOpen, + 'basis-closed': n.curveBasisClosed, + bundle: n.curveBundle, + cardinal: n.curveCardinal, + 'cardinal-open': n.curveCardinalOpen, + 'cardinal-closed': n.curveCardinalClosed, + monotone: n.curveMonotoneX, + step: n.curveStep, + 'step-before': n.curveStepBefore, + 'step-after': n.curveStepAfter + }; + return e.isSplineType(t) + ? r[e.config.spline_interpolation_type] || r.cardinal + : e.isStepType(t) + ? r[e.config.line_step_type] + : r.linear; + }), + (r.prototype.initLine = function() { + this.main + .select('.' + w.chart) + .append('g') + .attr('class', w.chartLines); + }), + (r.prototype.updateTargetsForLine = function(t) { + var e, + n = this, + r = n.config, + i = n.classChartLine.bind(n), + o = n.classLines.bind(n), + a = n.classAreas.bind(n), + s = n.classCircles.bind(n), + u = n.classFocus.bind(n); + (e = n.main + .select('.' + w.chartLines) + .selectAll('.' + w.chartLine) + .data(t) + .attr('class', function(t) { + return i(t) + u(t); + }) + .enter() + .append('g') + .attr('class', i) + .style('opacity', 0) + .style('pointer-events', 'none')) + .append('g') + .attr('class', o), + e.append('g').attr('class', a), + e.append('g').attr('class', function(t) { + return n.generateClass(w.selectedCircles, t.id); + }), + e + .append('g') + .attr('class', s) + .style('cursor', function(t) { + return r.data_selection_isselectable(t) + ? 'pointer' + : null; + }), + t.forEach(function(t) { + n.main + .selectAll( + '.' + + w.selectedCircles + + n.getTargetSelectorSuffix(t.id) + ) + .selectAll('.' + w.selectedCircle) + .each(function(e) { + e.value = t.values[e.index].value; + }); + }); + }), + (r.prototype.updateLine = function(t) { + var e = this, + n = e.main + .selectAll('.' + w.lines) + .selectAll('.' + w.line) + .data(e.lineData.bind(e)), + r = n + .enter() + .append('path') + .attr('class', e.classLine.bind(e)) + .style('stroke', e.color); + (e.mainLine = r + .merge(n) + .style('opacity', e.initialOpacity.bind(e)) + .style('shape-rendering', function(t) { + return e.isStepType(t) ? 'crispEdges' : ''; + }) + .attr('transform', null)), + n + .exit() + .transition() + .duration(t) + .style('opacity', 0); + }), + (r.prototype.redrawLine = function(t, e, n) { + return [ + (e ? this.mainLine.transition(n) : this.mainLine) + .attr('d', t) + .style('stroke', this.color) + .style('opacity', 1) + ]; + }), + (r.prototype.generateDrawLine = function(t, e) { + var n = this, + r = n.config, + i = n.d3.line(), + o = n.generateGetLinePoints(t, e), + a = e ? n.getSubYScale : n.getYScale, + s = function(t) { + return (e ? n.subxx : n.xx).call(n, t); + }, + u = function(t, e) { + return r.data_groups.length > 0 + ? o(t, e)[0][1] + : a.call(n, t.id)(t.value); + }; + return ( + (i = r.axis_rotated ? i.x(u).y(s) : i.x(s).y(u)), + r.line_connectNull || + (i = i.defined(function(t) { + return null != t.value; + })), + function(t) { + var o, + s = r.line_connectNull + ? n.filterRemoveNull(t.values) + : t.values, + u = e ? n.subX : n.x, + l = a.call(n, t.id), + c = 0, + f = 0; + return ( + n.isLineType(t) + ? r.data_regions[t.id] + ? (o = n.lineWithRegions( + s, + u, + l, + r.data_regions[t.id] + )) + : (n.isStepType(t) && + (s = n.convertValuesToStep(s)), + (o = i.curve(n.getInterpolate(t))(s))) + : (s[0] && ((c = u(s[0].x)), (f = l(s[0].value))), + (o = r.axis_rotated + ? 'M ' + f + ' ' + c + : 'M ' + c + ' ' + f)), + o || 'M 0 0' + ); + } + ); + }), + (r.prototype.generateGetLinePoints = function(t, e) { + var n = this, + r = n.config, + i = t.__max__ + 1, + o = n.getShapeX(0, i, t, !!e), + a = n.getShapeY(!!e), + s = n.getShapeOffset(n.isLineType, t, !!e), + u = e ? n.getSubYScale : n.getYScale; + return function(t, e) { + var i = u.call(n, t.id)(0), + l = s(t, e) || i, + c = o(t), + f = a(t); + return ( + r.axis_rotated && + ((0 < t.value && f < i) || (t.value < 0 && i < f)) && + (f = i), + [ + [c, f - (i - l)], + [c, f - (i - l)], + [c, f - (i - l)], + [c, f - (i - l)] + ] + ); + }; + }), + (r.prototype.lineWithRegions = function(t, e, n, r) { + var i, + o, + a, + s, + u, + l, + c, + f, + h, + p, + g, + m = this, + y = m.config, + b = 'M', + _ = m.isCategorized() ? 0.5 : 0, + x = []; + function w(t, e) { + var n; + for (n = 0; n < e.length; n++) + if (e[n].start < t && t <= e[n].end) return !0; + return !1; + } + if (d(r)) + for (i = 0; i < r.length; i++) + (x[i] = {}), + v(r[i].start) + ? (x[i].start = t[0].x) + : (x[i].start = m.isTimeSeries() + ? m.parseDate(r[i].start) + : r[i].start), + v(r[i].end) + ? (x[i].end = t[t.length - 1].x) + : (x[i].end = m.isTimeSeries() + ? m.parseDate(r[i].end) + : r[i].end); + function S(t) { + return ( + 'M' + + t[0][0] + + ' ' + + t[0][1] + + ' ' + + t[1][0] + + ' ' + + t[1][1] + ); + } + for ( + p = y.axis_rotated + ? function(t) { + return n(t.value); + } + : function(t) { + return e(t.x); + }, + g = y.axis_rotated + ? function(t) { + return e(t.x); + } + : function(t) { + return n(t.value); + }, + a = m.isTimeSeries() + ? function(t, r, i, o) { + var a = t.x.getTime(), + s = r.x - t.x, + l = new Date(a + s * i), + c = new Date(a + s * (i + o)); + return S( + y.axis_rotated + ? [[n(u(i)), e(l)], [n(u(i + o)), e(c)]] + : [[e(l), n(u(i))], [e(c), n(u(i + o))]] + ); + } + : function(t, r, i, o) { + return S( + y.axis_rotated + ? [ + [n(u(i), !0), e(s(i))], + [n(u(i + o), !0), e(s(i + o))] + ] + : [ + [e(s(i), !0), n(u(i))], + [e(s(i + o), !0), n(u(i + o))] + ] + ); + }, + i = 0; + i < t.length; + i++ + ) { + if (v(x) || !w(t[i].x, x)) + b += ' ' + p(t[i]) + ' ' + g(t[i]); + else + for ( + s = m.getScale( + t[i - 1].x + _, + t[i].x + _, + m.isTimeSeries() + ), + u = m.getScale(t[i - 1].value, t[i].value), + l = e(t[i].x) - e(t[i - 1].x), + c = n(t[i].value) - n(t[i - 1].value), + h = + 2 * + (f = + 2 / Math.sqrt(Math.pow(l, 2) + Math.pow(c, 2))), + o = f; + o <= 1; + o += h + ) + b += a(t[i - 1], t[i], o, f); + t[i].x; + } + return b; + }), + (r.prototype.updateArea = function(t) { + var e = this, + n = e.d3, + r = e.main + .selectAll('.' + w.areas) + .selectAll('.' + w.area) + .data(e.lineData.bind(e)), + i = r + .enter() + .append('path') + .attr('class', e.classArea.bind(e)) + .style('fill', e.color) + .style('opacity', function() { + return ( + (e.orgAreaOpacity = +n + .select(this) + .style('opacity')), + 0 + ); + }); + (e.mainArea = i + .merge(r) + .style('opacity', e.orgAreaOpacity)), + r + .exit() + .transition() + .duration(t) + .style('opacity', 0); + }), + (r.prototype.redrawArea = function(t, e, n) { + return [ + (e ? this.mainArea.transition(n) : this.mainArea) + .attr('d', t) + .style('fill', this.color) + .style('opacity', this.orgAreaOpacity) + ]; + }), + (r.prototype.generateDrawArea = function(t, e) { + var n = this, + r = n.config, + i = n.d3.area(), + o = n.generateGetAreaPoints(t, e), + a = e ? n.getSubYScale : n.getYScale, + s = function(t) { + return (e ? n.subxx : n.xx).call(n, t); + }, + u = function(t, e) { + return r.data_groups.length > 0 + ? o(t, e)[0][1] + : a.call(n, t.id)(n.getAreaBaseValue(t.id)); + }, + l = function(t, e) { + return r.data_groups.length > 0 + ? o(t, e)[1][1] + : a.call(n, t.id)(t.value); + }; + return ( + (i = r.axis_rotated + ? i + .x0(u) + .x1(l) + .y(s) + : i + .x(s) + .y0(r.area_above ? 0 : u) + .y1(l)), + r.line_connectNull || + (i = i.defined(function(t) { + return null !== t.value; + })), + function(t) { + var e, + o = r.line_connectNull + ? n.filterRemoveNull(t.values) + : t.values, + a = 0, + s = 0; + return ( + n.isAreaType(t) + ? (n.isStepType(t) && + (o = n.convertValuesToStep(o)), + (e = i.curve(n.getInterpolate(t))(o))) + : (o[0] && + ((a = n.x(o[0].x)), + (s = n.getYScale(t.id)(o[0].value))), + (e = r.axis_rotated + ? 'M ' + s + ' ' + a + : 'M ' + a + ' ' + s)), + e || 'M 0 0' + ); + } + ); + }), + (r.prototype.getAreaBaseValue = function() { + return 0; + }), + (r.prototype.generateGetAreaPoints = function(t, e) { + var n = this, + r = n.config, + i = t.__max__ + 1, + o = n.getShapeX(0, i, t, !!e), + a = n.getShapeY(!!e), + s = n.getShapeOffset(n.isAreaType, t, !!e), + u = e ? n.getSubYScale : n.getYScale; + return function(t, e) { + var i = u.call(n, t.id)(0), + l = s(t, e) || i, + c = o(t), + f = a(t); + return ( + r.axis_rotated && + ((0 < t.value && f < i) || (t.value < 0 && i < f)) && + (f = i), + [[c, l], [c, f - (i - l)], [c, f - (i - l)], [c, l]] + ); + }; + }), + (r.prototype.updateCircle = function(t, e) { + var n = this, + r = n.main + .selectAll('.' + w.circles) + .selectAll('.' + w.circle) + .data(n.lineOrScatterOrStanfordData.bind(n)), + i = r + .enter() + .append('circle') + .attr( + 'shape-rendering', + n.isStanfordGraphType() ? 'crispEdges' : '' + ) + .attr('class', n.classCircle.bind(n)) + .attr('cx', t) + .attr('cy', e) + .attr('r', n.pointR.bind(n)) + .style( + 'color', + n.isStanfordGraphType() + ? n.getStanfordPointColor.bind(n) + : n.color + ); + (n.mainCircle = i + .merge(r) + .style( + 'opacity', + n.isStanfordGraphType() + ? 1 + : n.initialOpacityForCircle.bind(n) + )), + r.exit().style('opacity', 0); + }), + (r.prototype.redrawCircle = function(t, e, n, r) { + var i = this, + o = i.main.selectAll('.' + w.selectedCircle); + return [ + (n ? i.mainCircle.transition(r) : i.mainCircle) + .style('opacity', this.opacityForCircle.bind(i)) + .style( + 'color', + i.isStanfordGraphType() + ? i.getStanfordPointColor.bind(i) + : i.color + ) + .attr('cx', t) + .attr('cy', e), + (n ? o.transition(r) : o).attr('cx', t).attr('cy', e) + ]; + }), + (r.prototype.circleX = function(t) { + return t.x || 0 === t.x ? this.x(t.x) : null; + }), + (r.prototype.updateCircleY = function() { + var t, + e, + n = this; + n.config.data_groups.length > 0 + ? ((t = n.getShapeIndices(n.isLineType)), + (e = n.generateGetLinePoints(t)), + (n.circleY = function(t, n) { + return e(t, n)[0][1]; + })) + : (n.circleY = function(t) { + return n.getYScale(t.id)(t.value); + }); + }), + (r.prototype.getCircles = function(t, e) { + return (e + ? this.main.selectAll( + '.' + w.circles + this.getTargetSelectorSuffix(e) + ) + : this.main + ).selectAll('.' + w.circle + (y(t) ? '-' + t : '')); + }), + (r.prototype.expandCircles = function(t, e, n) { + var r = this.pointExpandedR.bind(this); + n && this.unexpandCircles(), + this.getCircles(t, e) + .classed(w.EXPANDED, !0) + .attr('r', r); + }), + (r.prototype.unexpandCircles = function(t) { + var e = this, + n = e.pointR.bind(e); + e.getCircles(t) + .filter(function() { + return e.d3.select(this).classed(w.EXPANDED); + }) + .classed(w.EXPANDED, !1) + .attr('r', n); + }), + (r.prototype.pointR = function(t) { + var e = this.config; + return this.isStepType(t) + ? 0 + : p(e.point_r) + ? e.point_r(t) + : e.point_r; + }), + (r.prototype.pointExpandedR = function(t) { + var e = this.config; + return e.point_focus_expand_enabled + ? p(e.point_focus_expand_r) + ? e.point_focus_expand_r(t) + : e.point_focus_expand_r + ? e.point_focus_expand_r + : 1.75 * this.pointR(t) + : this.pointR(t); + }), + (r.prototype.pointSelectR = function(t) { + var e = this.config; + return p(e.point_select_r) + ? e.point_select_r(t) + : e.point_select_r + ? e.point_select_r + : 4 * this.pointR(t); + }), + (r.prototype.isWithinCircle = function(t, e) { + var n = this.d3, + r = n.mouse(t), + i = n.select(t), + o = +i.attr('cx'), + a = +i.attr('cy'); + return ( + Math.sqrt(Math.pow(o - r[0], 2) + Math.pow(a - r[1], 2)) < + e + ); + }), + (r.prototype.isWithinStep = function(t, e) { + return Math.abs(e - this.d3.mouse(t)[1]) < 30; + }), + (r.prototype.getCurrentWidth = function() { + var t = this.config; + return t.size_width ? t.size_width : this.getParentWidth(); + }), + (r.prototype.getCurrentHeight = function() { + var t = this.config, + e = t.size_height + ? t.size_height + : this.getParentHeight(); + return e > 0 + ? e + : 320 / + (this.hasType('gauge') && !t.gauge_fullCircle + ? 2 + : 1); + }), + (r.prototype.getCurrentPaddingTop = function() { + var t = this.config, + e = y(t.padding_top) ? t.padding_top : 0; + return ( + this.title && + this.title.node() && + (e += this.getTitlePadding()), + e + ); + }), + (r.prototype.getCurrentPaddingBottom = function() { + var t = this.config; + return y(t.padding_bottom) ? t.padding_bottom : 0; + }), + (r.prototype.getCurrentPaddingLeft = function(t) { + var e = this.config; + return y(e.padding_left) + ? e.padding_left + : e.axis_rotated + ? !e.axis_x_show || e.axis_x_inner + ? 1 + : Math.max(a(this.getAxisWidthByAxisId('x', t)), 40) + : !e.axis_y_show || e.axis_y_inner + ? this.axis.getYAxisLabelPosition().isOuter + ? 30 + : 1 + : a(this.getAxisWidthByAxisId('y', t)); + }), + (r.prototype.getCurrentPaddingRight = function() { + var t = this, + e = t.config, + n = 0, + r = t.isLegendRight ? t.getLegendWidth() + 20 : 0; + return ( + (n = y(e.padding_right) + ? e.padding_right + 1 + : e.axis_rotated + ? 10 + r + : !e.axis_y2_show || e.axis_y2_inner + ? 2 + + r + + (t.axis.getY2AxisLabelPosition().isOuter ? 20 : 0) + : a(t.getAxisWidthByAxisId('y2')) + r), + t.colorScale && + t.colorScale.node() && + (n += t.getColorScalePadding()), + n + ); + }), + (r.prototype.getParentRectValue = function(t) { + for ( + var e, n = this.selectChart.node(); + n && 'BODY' !== n.tagName; + + ) { + try { + e = n.getBoundingClientRect()[t]; + } catch (r) { + 'width' === t && (e = n.offsetWidth); + } + if (e) break; + n = n.parentNode; + } + return e; + }), + (r.prototype.getParentWidth = function() { + return this.getParentRectValue('width'); + }), + (r.prototype.getParentHeight = function() { + var t = this.selectChart.style('height'); + return t.indexOf('px') > 0 ? +t.replace('px', '') : 0; + }), + (r.prototype.getSvgLeft = function(t) { + var e = this, + n = e.config, + r = + n.axis_rotated || (!n.axis_rotated && !n.axis_y_inner), + i = n.axis_rotated ? w.axisX : w.axisY, + o = e.main.select('.' + i).node(), + a = o && r ? o.getBoundingClientRect() : { right: 0 }, + s = e.selectChart.node().getBoundingClientRect(), + u = e.hasArcType(), + l = + a.right - s.left - (u ? 0 : e.getCurrentPaddingLeft(t)); + return l > 0 ? l : 0; + }), + (r.prototype.getAxisWidthByAxisId = function(t, e) { + var n = this.axis.getLabelPositionById(t); + return ( + this.axis.getMaxTickWidth(t, e) + (n.isInner ? 20 : 40) + ); + }), + (r.prototype.getHorizontalAxisHeight = function(t) { + var e = this, + n = e.config, + r = 30; + return 'x' !== t || n.axis_x_show + ? 'x' === t && n.axis_x_height + ? n.axis_x_height + : 'y' !== t || n.axis_y_show + ? 'y2' !== t || n.axis_y2_show + ? ('x' === t && + !n.axis_rotated && + n.axis_x_tick_rotate && + (r = + 30 + + e.axis.getMaxTickWidth(t) * + Math.cos( + (Math.PI * + (90 - Math.abs(n.axis_x_tick_rotate))) / + 180 + )), + 'y' === t && + n.axis_rotated && + n.axis_y_tick_rotate && + (r = + 30 + + e.axis.getMaxTickWidth(t) * + Math.cos( + (Math.PI * + (90 - Math.abs(n.axis_y_tick_rotate))) / + 180 + )), + r + + (e.axis.getLabelPositionById(t).isInner + ? 0 + : 10) + + ('y2' === t ? -10 : 0)) + : e.rotated_padding_top + : !n.legend_show || e.isLegendRight || e.isLegendInset + ? 1 + : 10 + : 8; + }), + (r.prototype.initBrush = function(t) { + var e = this, + n = e.d3; + return ( + (e.brush = (e.config.axis_rotated + ? n.brushY() + : n.brushX() + ) + .on('brush', function() { + var t = n.event.sourceEvent; + (t && 'zoom' === t.type) || e.redrawForBrush(); + }) + .on('end', function() { + var t = n.event.sourceEvent; + (t && 'zoom' === t.type) || + (e.brush.empty() && + t && + 'end' !== t.type && + e.brush.clear()); + })), + (e.brush.updateExtent = function() { + var t, + n = this.scale.range(); + return ( + (t = e.config.axis_rotated + ? [[0, n[0]], [e.width2, n[1]]] + : [[n[0], 0], [n[1], e.height2]]), + this.extent(t), + this + ); + }), + (e.brush.updateScale = function(t) { + return (this.scale = t), this; + }), + (e.brush.update = function(t) { + this.updateScale(t || e.subX).updateExtent(), + e.context.select('.' + w.brush).call(this); + }), + (e.brush.clear = function() { + e.context + .select('.' + w.brush) + .call(e.brush.move, null); + }), + (e.brush.selection = function() { + return n.brushSelection( + e.context.select('.' + w.brush).node() + ); + }), + (e.brush.selectionAsValue = function(t, n) { + var r, i; + return t + ? (e.context && + ((r = [this.scale(t[0]), this.scale(t[1])]), + (i = e.context.select('.' + w.brush)), + n && (i = i.transition()), + e.brush.move(i, r)), + []) + : ((r = e.brush.selection() || [0, 0]), + [this.scale.invert(r[0]), this.scale.invert(r[1])]); + }), + (e.brush.empty = function() { + var t = e.brush.selection(); + return !t || t[0] === t[1]; + }), + e.brush.updateScale(t) + ); + }), + (r.prototype.initSubchart = function() { + var t = this, + e = t.config, + n = (t.context = t.svg + .append('g') + .attr('transform', t.getTranslate('context'))), + r = e.subchart_show ? 'visible' : 'hidden'; + n.style('visibility', r), + n + .append('g') + .attr('clip-path', t.clipPathForSubchart) + .attr('class', w.chart), + n + .select('.' + w.chart) + .append('g') + .attr('class', w.chartBars), + n + .select('.' + w.chart) + .append('g') + .attr('class', w.chartLines), + n + .append('g') + .attr('clip-path', t.clipPath) + .attr('class', w.brush), + (t.axes.subx = n + .append('g') + .attr('class', w.axisX) + .attr('transform', t.getTranslate('subx')) + .attr( + 'clip-path', + e.axis_rotated ? '' : t.clipPathForXAxis + )); + }), + (r.prototype.initSubchartBrush = function() { + this.initBrush(this.subX).updateExtent(), + this.context.select('.' + w.brush).call(this.brush); + }), + (r.prototype.updateTargetsForSubchart = function(t) { + var e, + n, + r, + i, + o = this, + a = o.context, + s = o.config, + u = o.classChartBar.bind(o), + l = o.classBars.bind(o), + c = o.classChartLine.bind(o), + f = o.classLines.bind(o), + d = o.classAreas.bind(o); + s.subchart_show && + ((r = (i = a + .select('.' + w.chartBars) + .selectAll('.' + w.chartBar) + .data(t)) + .enter() + .append('g') + .style('opacity', 0)) + .merge(i) + .attr('class', u), + r.append('g').attr('class', l), + (e = (n = a + .select('.' + w.chartLines) + .selectAll('.' + w.chartLine) + .data(t)) + .enter() + .append('g') + .style('opacity', 0)) + .merge(n) + .attr('class', c), + e.append('g').attr('class', f), + e.append('g').attr('class', d), + a + .selectAll('.' + w.brush + ' rect') + .attr( + s.axis_rotated ? 'width' : 'height', + s.axis_rotated ? o.width2 : o.height2 + )); + }), + (r.prototype.updateBarForSubchart = function(t) { + var e = this, + n = e.context + .selectAll('.' + w.bars) + .selectAll('.' + w.bar) + .data(e.barData.bind(e)), + r = n + .enter() + .append('path') + .attr('class', e.classBar.bind(e)) + .style('stroke', 'none') + .style('fill', e.color); + n + .exit() + .transition() + .duration(t) + .style('opacity', 0) + .remove(), + (e.contextBar = r + .merge(n) + .style('opacity', e.initialOpacity.bind(e))); + }), + (r.prototype.redrawBarForSubchart = function(t, e, n) { + (e + ? this.contextBar + .transition(Math.random().toString()) + .duration(n) + : this.contextBar ) - ? i - : x; - }, - [i, x] - ), - h = Object(s.useContext)(c), - g = - Boolean(n.store) && - Boolean(n.store.getState) && - Boolean(n.store.dispatch); - Boolean(h) && Boolean(h.store); - var v = g ? n.store : h.store, - m = Object(s.useMemo)( - function() { - return (function(e) { - return t(e.dispatch, o); - })(v); - }, - [v] - ), - y = Object(s.useMemo)( - function() { - if (!d) return Nt; - var t = new Lt(v, g ? null : h.subscription), - e = t.notifyNestedSubs.bind(t); - return [t, e]; - }, - [v, g, h] - ), - b = y[0], - _ = y[1], - w = Object(s.useMemo)( - function() { - return g ? h : p({}, h, { subscription: b }); - }, - [g, h, b] - ), - S = Object(s.useReducer)(zt, Rt, Bt), - E = S[0][0], - k = S[1]; - if (E && E.error) throw E.error; - var A = Object(s.useRef)(), - T = Object(s.useRef)(l), - C = Object(s.useRef)(), - O = Object(s.useRef)(!1), - P = f( - function() { - return C.current && l === T.current - ? C.current - : m(v.getState(), l); - }, - [v, E, l] - ); - It(Ft, [T, A, O, l, P, C, _]), - It(Vt, [d, v, b, m, T, A, O, C, _, k], [v, b, m]); - var M = Object(s.useMemo)( - function() { - return u.a.createElement(e, p({}, P, { ref: a })); - }, - [a, e, P] - ); - return Object(s.useMemo)( - function() { - return d ? u.a.createElement(c.Provider, { value: w }, M) : M; - }, - [c, M, w] - ); - } - var v = l ? u.a.memo(h) : h; - if (((v.WrappedComponent = e), (v.displayName = r), m)) { - var y = u.a.forwardRef(function(t, e) { - return u.a.createElement(v, p({}, t, { forwardedRef: e })); - }); - return (y.displayName = r), (y.WrappedComponent = e), $()(y, e); - } - return $()(v, e); - }; - } - function Ht(t, e) { - return t === e - ? 0 !== t || 0 !== e || 1 / t == 1 / e - : t != t && e != e; - } - function Ut(t, e) { - if (Ht(t, e)) return !0; - if ( - 'object' != typeof t || - null === t || - 'object' != typeof e || - null === e - ) - return !1; - var n = Object.keys(t), - r = Object.keys(e); - if (n.length !== r.length) return !1; - for (var i = 0; i < n.length; i++) - if ( - !Object.prototype.hasOwnProperty.call(e, n[i]) || - !Ht(t[n[i]], e[n[i]]) - ) - return !1; - return !0; - } - function qt(t) { - return function(e, n) { - var r = t(e, n); - function i() { - return r; - } - return (i.dependsOnOwnProps = !1), i; - }; - } - function Wt(t) { - return null !== t.dependsOnOwnProps && void 0 !== t.dependsOnOwnProps - ? Boolean(t.dependsOnOwnProps) - : 1 !== t.length; - } - function Xt(t, e) { - return function(e, n) { - n.displayName; - var r = function(t, e) { - return r.dependsOnOwnProps ? r.mapToProps(t, e) : r.mapToProps(t); - }; - return ( - (r.dependsOnOwnProps = !0), - (r.mapToProps = function(e, n) { - (r.mapToProps = t), (r.dependsOnOwnProps = Wt(t)); - var i = r(e, n); - return ( - 'function' == typeof i && - ((r.mapToProps = i), - (r.dependsOnOwnProps = Wt(i)), - (i = r(e, n))), - i - ); - }), - r - ); - }; - } - var Yt = [ - function(t) { - return 'function' == typeof t ? Xt(t) : void 0; - }, - function(t) { - return t - ? void 0 - : qt(function(t) { - return { dispatch: t }; - }); - }, - function(t) { - return t && 'object' == typeof t - ? qt(function(e) { - return (function(t, e) { - if ('function' == typeof t) return St(t, e); - if ('object' != typeof t || null === t) - throw new Error( - 'bindActionCreators expected an object or a function, instead received ' + - (null === t ? 'null' : typeof t) + - '. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?' + .attr('d', t) + .style('opacity', 1); + }), + (r.prototype.updateLineForSubchart = function(t) { + var e = this, + n = e.context + .selectAll('.' + w.lines) + .selectAll('.' + w.line) + .data(e.lineData.bind(e)), + r = n + .enter() + .append('path') + .attr('class', e.classLine.bind(e)) + .style('stroke', e.color); + n + .exit() + .transition() + .duration(t) + .style('opacity', 0) + .remove(), + (e.contextLine = r + .merge(n) + .style('opacity', e.initialOpacity.bind(e))); + }), + (r.prototype.redrawLineForSubchart = function(t, e, n) { + (e + ? this.contextLine + .transition(Math.random().toString()) + .duration(n) + : this.contextLine + ) + .attr('d', t) + .style('opacity', 1); + }), + (r.prototype.updateAreaForSubchart = function(t) { + var e = this, + n = e.d3, + r = e.context + .selectAll('.' + w.areas) + .selectAll('.' + w.area) + .data(e.lineData.bind(e)), + i = r + .enter() + .append('path') + .attr('class', e.classArea.bind(e)) + .style('fill', e.color) + .style('opacity', function() { + return ( + (e.orgAreaOpacity = +n + .select(this) + .style('opacity')), + 0 + ); + }); + r + .exit() + .transition() + .duration(t) + .style('opacity', 0) + .remove(), + (e.contextArea = i.merge(r).style('opacity', 0)); + }), + (r.prototype.redrawAreaForSubchart = function(t, e, n) { + (e + ? this.contextArea + .transition(Math.random().toString()) + .duration(n) + : this.contextArea + ) + .attr('d', t) + .style('fill', this.color) + .style('opacity', this.orgAreaOpacity); + }), + (r.prototype.redrawSubchart = function(t, e, n, r, i, o, a) { + var s, + u, + l, + c = this, + f = c.d3, + d = c.config; + c.context.style( + 'visibility', + d.subchart_show ? 'visible' : 'hidden' + ), + d.subchart_show && + (f.event && + 'zoom' === f.event.type && + c.brush.selectionAsValue(c.x.orgDomain()), + t && + (c.brush.empty() || + c.brush.selectionAsValue(c.x.orgDomain()), + (s = c.generateDrawArea(i, !0)), + (u = c.generateDrawBar(o, !0)), + (l = c.generateDrawLine(a, !0)), + c.updateBarForSubchart(n), + c.updateLineForSubchart(n), + c.updateAreaForSubchart(n), + c.redrawBarForSubchart(u, n, n), + c.redrawLineForSubchart(l, n, n), + c.redrawAreaForSubchart(s, n, n))); + }), + (r.prototype.redrawForBrush = function() { + var t, + e = this, + n = e.x, + r = e.d3; + e.redraw({ + withTransition: !1, + withY: e.config.zoom_rescale, + withSubchart: !1, + withUpdateXDomain: !0, + withEventRect: !1, + withDimension: !1 + }), + (t = r.event.selection || e.brush.scale.range()), + e.main + .select('.' + w.eventRect) + .call( + e.zoom.transform, + r.zoomIdentity + .scale(e.width / (t[1] - t[0])) + .translate(-t[0], 0) + ), + e.config.subchart_onbrush.call(e.api, n.orgDomain()); + }), + (r.prototype.transformContext = function(t, e) { + var n; + e && e.axisSubX + ? (n = e.axisSubX) + : ((n = this.context.select('.' + w.axisX)), + t && (n = n.transition())), + this.context.attr( + 'transform', + this.getTranslate('context') + ), + n.attr('transform', this.getTranslate('subx')); + }), + (r.prototype.getDefaultSelection = function() { + var t = this, + e = t.config, + n = p(e.axis_x_selection) + ? e.axis_x_selection(t.getXDomain(t.data.targets)) + : e.axis_x_selection; + return ( + t.isTimeSeries() && + (n = [t.parseDate(n[0]), t.parseDate(n[1])]), + n ); - var n = {}; - for (var r in t) { - var i = t[r]; - 'function' == typeof i && (n[r] = St(i, e)); - } - return n; - })(t, e); - }) - : void 0; - } - ]; - var $t = [ - function(t) { - return 'function' == typeof t ? Xt(t) : void 0; - }, - function(t) { - return t - ? void 0 - : qt(function() { - return {}; - }); - } - ]; - function Qt(t, e, n) { - return p({}, n, {}, t, {}, e); - } - var Kt = [ - function(t) { - return 'function' == typeof t - ? (function(t) { - return function(e, n) { - n.displayName; - var r, - i = n.pure, - o = n.areMergedPropsEqual, - a = !1; - return function(e, n, s) { - var u = t(e, n, s); + }), + (r.prototype.initText = function() { + this.main + .select('.' + w.chart) + .append('g') + .attr('class', w.chartTexts), + (this.mainText = this.d3.selectAll([])); + }), + (r.prototype.updateTargetsForText = function(t) { + var e = this, + n = e.classChartText.bind(e), + r = e.classTexts.bind(e), + i = e.classFocus.bind(e), + o = e.main + .select('.' + w.chartTexts) + .selectAll('.' + w.chartText) + .data(t), + a = o + .enter() + .append('g') + .attr('class', n) + .style('opacity', 0) + .style('pointer-events', 'none'); + a.append('g').attr('class', r), + a.merge(o).attr('class', function(t) { + return n(t) + i(t); + }); + }), + (r.prototype.updateText = function(t, e, n) { + var r = this, + i = r.config, + o = r.barOrLineData.bind(r), + a = r.classText.bind(r), + s = r.main + .selectAll('.' + w.texts) + .selectAll('.' + w.text) + .data(o), + u = s + .enter() + .append('text') + .attr('class', a) + .attr('text-anchor', function(t) { + return i.axis_rotated + ? t.value < 0 + ? 'end' + : 'start' + : 'middle'; + }) + .style('stroke', 'none') + .attr('x', t) + .attr('y', e) + .style('fill', function(t) { + return r.color(t); + }) + .style('fill-opacity', 0); + (r.mainText = u.merge(s).text(function(t, e, n) { + return r.dataLabelFormat(t.id)(t.value, t.id, e, n); + })), + s + .exit() + .transition() + .duration(n) + .style('fill-opacity', 0) + .remove(); + }), + (r.prototype.redrawText = function(t, e, n, r, i) { + return [ + (r ? this.mainText.transition(i) : this.mainText) + .attr('x', t) + .attr('y', e) + .style('fill', this.color) + .style( + 'fill-opacity', + n ? 0 : this.opacityForText.bind(this) + ) + ]; + }), + (r.prototype.getTextRect = function(t, e, n) { + var r, + i = this.d3 + .select('body') + .append('div') + .classed('c3', !0), + o = i + .append('svg') + .style('visibility', 'hidden') + .style('position', 'fixed') + .style('top', 0) + .style('left', 0), + a = this.d3.select(n).style('font'); + return ( + o + .selectAll('.dummy') + .data([t]) + .enter() + .append('text') + .classed(e || '', !0) + .style('font', a) + .text(t) + .each(function() { + r = c(this); + }), + i.remove(), + r + ); + }), + (r.prototype.generateXYForText = function(t, e, n, r) { + var i = this, + o = i.generateGetAreaPoints(t, !1), + a = i.generateGetBarPoints(e, !1), + s = i.generateGetLinePoints(n, !1), + u = r ? i.getXForText : i.getYForText; + return function(t, e) { + var n = i.isAreaType(t) ? o : i.isBarType(t) ? a : s; + return u.call(i, n(t, e), t, this); + }; + }), + (r.prototype.getXForText = function(t, e, n) { + var r, + i, + o = this, + a = c(n); + return ( + o.config.axis_rotated + ? ((i = o.isBarType(e) ? 4 : 6), + (r = t[2][1] + i * (e.value < 0 ? -1 : 1))) + : (r = o.hasType('bar') + ? (t[2][0] + t[0][0]) / 2 + : t[0][0]), + null === e.value && + (r > o.width + ? (r = o.width - a.width) + : r < 0 && (r = 4)), + r + ); + }), + (r.prototype.getYForText = function(t, e, n) { + var r, + i = this, + o = c(n); return ( - a ? (i && o(u, r)) || (r = u) : ((a = !0), (r = u)), r + i.config.axis_rotated + ? (r = (t[0][0] + t[2][0] + 0.6 * o.height) / 2) + : ((r = t[2][1]), + e.value < 0 || (0 === e.value && !i.hasPositiveValue) + ? ((r += o.height), + i.isBarType(e) && i.isSafari() + ? (r -= 3) + : !i.isBarType(e) && i.isChrome() && (r += 3)) + : (r += i.isBarType(e) ? -3 : -6)), + null !== e.value || + i.config.axis_rotated || + (r < o.height + ? (r = o.height) + : r > this.height && (r = this.height - 4)), + r ); - }; - }; - })(t) - : void 0; - }, - function(t) { - return t - ? void 0 - : function() { - return Qt; - }; - } - ]; - function Zt(t, e, n, r) { - return function(i, o) { - return n(t(i, o), e(r, o), o); - }; - } - function Jt(t, e, n, r, i) { - var o, - a, - s, - u, - l, - c = i.areStatesEqual, - f = i.areOwnPropsEqual, - d = i.areStatePropsEqual, - h = !1; - function p(i, h) { - var p, - g, - v = !f(h, a), - m = !c(i, o); - return ( - (o = i), - (a = h), - v && m - ? ((s = t(o, a)), - e.dependsOnOwnProps && (u = e(r, a)), - (l = n(s, u, a))) - : v - ? (t.dependsOnOwnProps && (s = t(o, a)), - e.dependsOnOwnProps && (u = e(r, a)), - (l = n(s, u, a))) - : m - ? ((p = t(o, a)), - (g = !d(p, s)), - (s = p), - g && (l = n(s, u, a)), - l) - : l - ); - } - return function(i, c) { - return h - ? p(i, c) - : ((s = t((o = i), (a = c))), - (u = e(r, a)), - (l = n(s, u, a)), - (h = !0), - l); - }; - } - function te(t, e) { - var n = e.initMapStateToProps, - r = e.initMapDispatchToProps, - i = e.initMergeProps, - o = X(e, [ - 'initMapStateToProps', - 'initMapDispatchToProps', - 'initMergeProps' - ]), - a = n(t, o), - s = r(t, o), - u = i(t, o); - return (o.pure ? Jt : Zt)(a, s, u, t, o); - } - function ee(t, e, n) { - for (var r = e.length - 1; r >= 0; r--) { - var i = e[r](t); - if (i) return i; - } - return function(e, r) { - throw new Error( - 'Invalid value of type ' + - typeof t + - ' for ' + - n + - ' argument when connecting component ' + - r.wrappedComponentName + - '.' - ); - }; - } - function ne(t, e) { - return t === e; - } - function re(t) { - var e = void 0 === t ? {} : t, - n = e.connectHOC, - r = void 0 === n ? Gt : n, - i = e.mapStateToPropsFactories, - o = void 0 === i ? $t : i, - a = e.mapDispatchToPropsFactories, - s = void 0 === a ? Yt : a, - u = e.mergePropsFactories, - l = void 0 === u ? Kt : u, - c = e.selectorFactory, - f = void 0 === c ? te : c; - return function(t, e, n, i) { - void 0 === i && (i = {}); - var a = i, - u = a.pure, - c = void 0 === u || u, - d = a.areStatesEqual, - h = void 0 === d ? ne : d, - g = a.areOwnPropsEqual, - v = void 0 === g ? Ut : g, - m = a.areStatePropsEqual, - y = void 0 === m ? Ut : m, - b = a.areMergedPropsEqual, - _ = void 0 === b ? Ut : b, - x = X(a, [ - 'pure', - 'areStatesEqual', - 'areOwnPropsEqual', - 'areStatePropsEqual', - 'areMergedPropsEqual' - ]), - w = ee(t, o, 'mapStateToProps'), - S = ee(e, s, 'mapDispatchToProps'), - E = ee(n, l, 'mergeProps'); - return r( - f, - p( - { - methodName: 'connect', - getDisplayName: function(t) { - return 'Connect(' + t + ')'; - }, - shouldHandleStateChanges: Boolean(t), - initMapStateToProps: w, - initMapDispatchToProps: S, - initMergeProps: E, - pure: c, - areStatesEqual: h, - areOwnPropsEqual: v, - areStatePropsEqual: y, - areMergedPropsEqual: _ - }, - x - ) - ); - }; - } - var ie = re(); - var oe; - function ae(t) { - return function(e) { - var n = e.dispatch, - r = e.getState; - return function(e) { - return function(i) { - return 'function' == typeof i ? i(n, r, t) : e(i); - }; - }; - }; - } - (oe = l.unstable_batchedUpdates), (Ot = oe); - var se = ae(); - se.withExtraArgument = ae; - var ue = se, - le = n(59), - ce = n.n(le), - fe = n(150), - de = n.n(fe), - he = n(9), - pe = n.n(he), - ge = n(6), - ve = n.n(ge), - me = function(t, e) { - switch (t) { - case 'az': - return e.sort(function(t, e) { - return t.title.toLowerCase() < e.title.toLowerCase() - ? -1 - : t.title.toLowerCase() > e.title.toLowerCase() - ? 1 - : 0; - }); - case 'za': - return e.sort(function(t, e) { - return t.title.toLowerCase() < e.title.toLowerCase() - ? 1 - : t.title.toLowerCase() > e.title.toLowerCase() - ? -1 - : 0; - }); - case 'latest': - return e.sort(function(t, e) { - return new Date(t.last_modified_date) < - new Date(e.last_modified_date) - ? 1 - : new Date(t.last_modified_date) > - new Date(e.last_modified_date) - ? -1 - : 0; - }); - case 'oldest': - return e.sort(function(t, e) { - return new Date(t.last_modified_date) < - new Date(e.last_modified_date) - ? -1 - : new Date(t.last_modified_date) > - new Date(e.last_modified_date) - ? 1 - : 0; - }); - } - }, - ye = { - id: 1, - title: 'My great dashboard', - last_modified_date: 'Mon, 02 Dec 2019 15:16:38 GMT', - data: { - items: [ - { - type: 'bar', - top: 20, - left: 20, - width: 500, - height: 300, - palette: '', - colors: {}, - sparkline: !0, - savedQuery: {} - }, - { - type: 'metric', - top: 20, - left: 560, - width: 500, - height: 300, - palette: '', - colors: {}, - sparkline: !0, - savedQuery: {} - }, - { - type: 'area', - top: 340, - left: 20, - width: 500, - height: 300, - palette: '', - colors: {}, - sparkline: !0, - savedQuery: {} - }, - { - type: 'line', - top: 340, - left: 560, - width: 500, - height: 300, - palette: '', - colors: {}, - sparkline: !0, - savedQuery: {} - } - ] - } - }; - function be(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - function _e(t, e, n) { - return ( - e in t - ? Object.defineProperty(t, e, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (t[e] = n), - t - ); - } - function xe() { - return (xe = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - function we(t, e) { - var n = Object.keys(t); - if (Object.getOwnPropertySymbols) { - var r = Object.getOwnPropertySymbols(t); - e && - (r = r.filter(function(e) { - return Object.getOwnPropertyDescriptor(t, e).enumerable; - })), - n.push.apply(n, r); - } - return n; - } - function Se(t) { - return (Se = Object.setPrototypeOf - ? Object.getPrototypeOf - : function(t) { - return t.__proto__ || Object.getPrototypeOf(t); - })(t); - } - function Ee(t, e) { - return (Ee = - Object.setPrototypeOf || - function(t, e) { - return (t.__proto__ = e), t; - })(t, e); - } - function ke(t, e) { - return !e || ('object' != typeof e && 'function' != typeof e) - ? (function(t) { - if (void 0 === t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return t; - })(t) - : e; - } - function Ae(t) { - return function() { - return t; - }; - } - var Te = function() {}; - (Te.thatReturns = Ae), - (Te.thatReturnsFalse = Ae(!1)), - (Te.thatReturnsTrue = Ae(!0)), - (Te.thatReturnsNull = Ae(null)), - (Te.thatReturnsThis = function() { - return this; - }), - (Te.thatReturnsArgument = function(t) { - return t; - }); - var Ce = Te; - var Oe = function(t, e, n, r, i, o, a, s) { - if (!t) { - var u; - if (void 0 === e) - u = new Error( - 'Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.' - ); - else { - var l = [n, r, i, o, a, s], - c = 0; - (u = new Error( - e.replace(/%s/g, function() { - return l[c++]; - }) - )).name = 'Invariant Violation'; - } - throw ((u.framesToPop = 1), u); - } - }, - Pe = Object.getOwnPropertySymbols, - Me = Object.prototype.hasOwnProperty, - Le = Object.prototype.propertyIsEnumerable; - function De(t) { - if (null == t) - throw new TypeError( - 'Object.assign cannot be called with null or undefined' - ); - return Object(t); - } - (function() { - try { - if (!Object.assign) return !1; - var t = new String('abc'); - if (((t[5] = 'de'), '5' === Object.getOwnPropertyNames(t)[0])) - return !1; - for (var e = {}, n = 0; n < 10; n++) - e['_' + String.fromCharCode(n)] = n; - if ( - '0123456789' !== - Object.getOwnPropertyNames(e) - .map(function(t) { - return e[t]; - }) - .join('') - ) - return !1; - var r = {}; - return ( - 'abcdefghijklmnopqrst'.split('').forEach(function(t) { - r[t] = t; - }), - 'abcdefghijklmnopqrst' === - Object.keys(Object.assign({}, r)).join('') - ); - } catch (t) { - return !1; - } - })() && Object.assign; - var je = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; - var Re = (function(t, e) { - return t((e = { exports: {} }), e.exports), e.exports; - })(function(t) { - t.exports = (function() { - function t(t, e, n, r, i, o) { - o !== je && - Oe( - !1, - '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' - ); - } - function e() { - return t; - } - t.isRequired = t; - var n = { - array: t, - bool: t, - func: t, - number: t, - object: t, - string: t, - symbol: t, - any: t, - arrayOf: e, - element: t, - instanceOf: e, - node: t, - objectOf: e, - oneOf: e, - oneOfType: e, - shape: e, - exact: e - }; - return (n.checkPropTypes = Ce), (n.PropTypes = n), n; - })(); - }), - Ne = { - HIDE: '__react_tooltip_hide_event', - REBUILD: '__react_tooltip_rebuild_event', - SHOW: '__react_tooltip_show_event' - }, - ze = function(t, e) { - var n; - 'function' == typeof window.CustomEvent - ? (n = new window.CustomEvent(t, { detail: e })) - : ((n = document.createEvent('Event')).initEvent(t, !1, !0), - (n.detail = e)), - window.dispatchEvent(n); - }; - var Ie = function(t, e) { - var n = this.state.show, - r = this.props.id, - i = this.isCapture(e.currentTarget), - o = e.currentTarget.getAttribute('currentItem'); - i || e.stopPropagation(), - n && 'true' === o - ? t || this.hideTooltip(e) - : (e.currentTarget.setAttribute('currentItem', 'true'), - Fe(e.currentTarget, this.getTargetArray(r)), - this.showTooltip(e)); - }, - Fe = function(t, e) { - for (var n = 0; n < e.length; n++) - t !== e[n] - ? e[n].setAttribute('currentItem', 'false') - : e[n].setAttribute('currentItem', 'true'); - }, - Ve = { - id: '9b69f92e-d3fe-498b-b1b4-c5e63a51b0cf', - set: function(t, e, n) { - this.id in t - ? (t[this.id][e] = n) - : Object.defineProperty(t, this.id, { - configurable: !0, - value: _e({}, e, n) - }); - }, - get: function(t, e) { - var n = t[this.id]; - if (void 0 !== n) return n[e]; - } - }; - var Be = function(t, e, n) { - var r = e.respectEffect, - i = void 0 !== r && r, - o = e.customEvent, - a = void 0 !== o && o, - s = this.props.id, - u = n.target.getAttribute('data-tip') || null, - l = n.target.getAttribute('data-for') || null, - c = n.target; - if (!this.isCustomEvent(c) || a) { - var f = (null == s && null == l) || l === s; - if (null != u && (!i || 'float' === this.getEffect(c)) && f) { - var d = (function(t) { - var e = {}; - for (var n in t) - 'function' == typeof t[n] - ? (e[n] = t[n].bind(t)) - : (e[n] = t[n]); - return e; - })(n); - (d.currentTarget = c), t(d); - } - } - }, - Ge = function(t, e) { - var n = {}; - return ( - t.forEach(function(t) { - var r = t.getAttribute(e); - r && - r.split(' ').forEach(function(t) { - return (n[t] = !0); - }); - }), - n - ); - }, - He = function() { - return document.getElementsByTagName('body')[0]; - }; - function Ue(t, e, n, r, i, o, a) { - for ( - var s = Ye(n), - u = s.width, - l = s.height, - c = Ye(e), - f = c.width, - d = c.height, - h = $e(t, e, o), - p = h.mouseX, - g = h.mouseY, - v = Qe(o, f, d, u, l), - m = Ke(a), - y = m.extraOffset_X, - b = m.extraOffset_Y, - _ = window.innerWidth, - x = window.innerHeight, - w = Ze(n), - S = w.parentTop, - E = w.parentLeft, - k = function(t) { - var e = v[t].l; - return p + e + y; - }, - A = function(t) { - var e = v[t].t; - return g + e + b; - }, - T = function(t) { - return ( - (function(t) { - var e = v[t].r; - return p + e + y; - })(t) > _ - ); - }, - C = function(t) { - return ( - (function(t) { - var e = v[t].b; - return g + e + b; - })(t) > x - ); - }, - O = function(t) { - return ( - (function(t) { - return k(t) < 0; - })(t) || - T(t) || - (function(t) { - return A(t) < 0; - })(t) || - C(t) - ); - }, - P = function(t) { - return !O(t); - }, - M = ['top', 'bottom', 'left', 'right'], - L = [], - D = 0; - D < 4; - D++ - ) { - var j = M[D]; - P(j) && L.push(j); - } - var R, - N = !1, - z = i !== r; - return ( - P(i) && z - ? ((N = !0), (R = i)) - : L.length > 0 && z && O(i) && O(r) && ((N = !0), (R = L[0])), - N - ? { isNewState: !0, newState: { place: R } } - : { - isNewState: !1, - position: { - left: parseInt(k(r) - E, 10), - top: parseInt(A(r) - S, 10) - } - } - ); - } - var qe, - We, - Xe, - Ye = function(t) { - var e = t.getBoundingClientRect(), - n = e.height, - r = e.width; - return { height: parseInt(n, 10), width: parseInt(r, 10) }; - }, - $e = function(t, e, n) { - var r = e.getBoundingClientRect(), - i = r.top, - o = r.left, - a = Ye(e), - s = a.width, - u = a.height; - return 'float' === n - ? { mouseX: t.clientX, mouseY: t.clientY } - : { mouseX: o + s / 2, mouseY: i + u / 2 }; - }, - Qe = function(t, e, n, r, i) { - var o, a, s, u; - return ( - 'float' === t - ? ((o = { l: -r / 2, r: r / 2, t: -(i + 3 + 2), b: -3 }), - (s = { l: -r / 2, r: r / 2, t: 15, b: i + 3 + 2 + 12 }), - (u = { l: -(r + 3 + 2), r: -3, t: -i / 2, b: i / 2 }), - (a = { l: 3, r: r + 3 + 2, t: -i / 2, b: i / 2 })) - : 'solid' === t && - ((o = { l: -r / 2, r: r / 2, t: -(n / 2 + i + 2), b: -n / 2 }), - (s = { l: -r / 2, r: r / 2, t: n / 2, b: n / 2 + i + 2 }), - (u = { l: -(r + e / 2 + 2), r: -e / 2, t: -i / 2, b: i / 2 }), - (a = { l: e / 2, r: r + e / 2 + 2, t: -i / 2, b: i / 2 })), - { top: o, bottom: s, left: u, right: a } - ); - }, - Ke = function(t) { - var e = 0, - n = 0; - for (var r in ('[object String]' === - Object.prototype.toString.apply(t) && - (t = JSON.parse(t.toString().replace(/\'/g, '"'))), - t)) - 'top' === r - ? (n -= parseInt(t[r], 10)) - : 'bottom' === r - ? (n += parseInt(t[r], 10)) - : 'left' === r - ? (e -= parseInt(t[r], 10)) - : 'right' === r && (e += parseInt(t[r], 10)); - return { extraOffset_X: e, extraOffset_Y: n }; - }, - Ze = function(t) { - for ( - var e = t; - e && - 'none' === window.getComputedStyle(e).getPropertyValue('transform'); - - ) - e = e.parentElement; - return { - parentTop: (e && e.getBoundingClientRect().top) || 0, - parentLeft: (e && e.getBoundingClientRect().left) || 0 - }; - }; - function Je(t, e, n, r) { - if (e) return e; - if (null != n) return n; - if (null === n) return null; - var i = //; - return r && 'false' !== r && i.test(t) - ? t.split(i).map(function(t, e) { - return u.a.createElement( - 'span', - { key: e, className: 'multi-line' }, - t - ); - }) - : t; - } - function tn(t) { - var e = {}; - return ( - Object.keys(t) - .filter(function(t) { - return /(^aria-\w+$|^role$)/.test(t); - }) - .forEach(function(n) { - e[n] = t[n]; - }), - e - ); - } - !(function(t) { - if (t && 'undefined' != typeof window) { - var e = document.createElement('style'); - e.setAttribute('type', 'text/css'), - (e.innerHTML = t), - document.head.appendChild(e); - } - })( - '.__react_component_tooltip {\n border-radius: 3px;\n display: inline-block;\n font-size: 13px;\n left: -999em;\n opacity: 0;\n padding: 8px 21px;\n position: fixed;\n pointer-events: none;\n transition: opacity 0.3s ease-out;\n top: -999em;\n visibility: hidden;\n z-index: 999;\n}\n.__react_component_tooltip.allow_hover, .__react_component_tooltip.allow_click {\n pointer-events: auto;\n}\n.__react_component_tooltip:before, .__react_component_tooltip:after {\n content: "";\n width: 0;\n height: 0;\n position: absolute;\n}\n.__react_component_tooltip.show {\n opacity: 0.9;\n margin-top: 0px;\n margin-left: 0px;\n visibility: visible;\n}\n.__react_component_tooltip.type-dark {\n color: #fff;\n background-color: #222;\n}\n.__react_component_tooltip.type-dark.place-top:after {\n border-top-color: #222;\n border-top-style: solid;\n border-top-width: 6px;\n}\n.__react_component_tooltip.type-dark.place-bottom:after {\n border-bottom-color: #222;\n border-bottom-style: solid;\n border-bottom-width: 6px;\n}\n.__react_component_tooltip.type-dark.place-left:after {\n border-left-color: #222;\n border-left-style: solid;\n border-left-width: 6px;\n}\n.__react_component_tooltip.type-dark.place-right:after {\n border-right-color: #222;\n border-right-style: solid;\n border-right-width: 6px;\n}\n.__react_component_tooltip.type-dark.border {\n border: 1px solid #fff;\n}\n.__react_component_tooltip.type-dark.border.place-top:before {\n border-top: 8px solid #fff;\n}\n.__react_component_tooltip.type-dark.border.place-bottom:before {\n border-bottom: 8px solid #fff;\n}\n.__react_component_tooltip.type-dark.border.place-left:before {\n border-left: 8px solid #fff;\n}\n.__react_component_tooltip.type-dark.border.place-right:before {\n border-right: 8px solid #fff;\n}\n.__react_component_tooltip.type-success {\n color: #fff;\n background-color: #8DC572;\n}\n.__react_component_tooltip.type-success.place-top:after {\n border-top-color: #8DC572;\n border-top-style: solid;\n border-top-width: 6px;\n}\n.__react_component_tooltip.type-success.place-bottom:after {\n border-bottom-color: #8DC572;\n border-bottom-style: solid;\n border-bottom-width: 6px;\n}\n.__react_component_tooltip.type-success.place-left:after {\n border-left-color: #8DC572;\n border-left-style: solid;\n border-left-width: 6px;\n}\n.__react_component_tooltip.type-success.place-right:after {\n border-right-color: #8DC572;\n border-right-style: solid;\n border-right-width: 6px;\n}\n.__react_component_tooltip.type-success.border {\n border: 1px solid #fff;\n}\n.__react_component_tooltip.type-success.border.place-top:before {\n border-top: 8px solid #fff;\n}\n.__react_component_tooltip.type-success.border.place-bottom:before {\n border-bottom: 8px solid #fff;\n}\n.__react_component_tooltip.type-success.border.place-left:before {\n border-left: 8px solid #fff;\n}\n.__react_component_tooltip.type-success.border.place-right:before {\n border-right: 8px solid #fff;\n}\n.__react_component_tooltip.type-warning {\n color: #fff;\n background-color: #F0AD4E;\n}\n.__react_component_tooltip.type-warning.place-top:after {\n border-top-color: #F0AD4E;\n border-top-style: solid;\n border-top-width: 6px;\n}\n.__react_component_tooltip.type-warning.place-bottom:after {\n border-bottom-color: #F0AD4E;\n border-bottom-style: solid;\n border-bottom-width: 6px;\n}\n.__react_component_tooltip.type-warning.place-left:after {\n border-left-color: #F0AD4E;\n border-left-style: solid;\n border-left-width: 6px;\n}\n.__react_component_tooltip.type-warning.place-right:after {\n border-right-color: #F0AD4E;\n border-right-style: solid;\n border-right-width: 6px;\n}\n.__react_component_tooltip.type-warning.border {\n border: 1px solid #fff;\n}\n.__react_component_tooltip.type-warning.border.place-top:before {\n border-top: 8px solid #fff;\n}\n.__react_component_tooltip.type-warning.border.place-bottom:before {\n border-bottom: 8px solid #fff;\n}\n.__react_component_tooltip.type-warning.border.place-left:before {\n border-left: 8px solid #fff;\n}\n.__react_component_tooltip.type-warning.border.place-right:before {\n border-right: 8px solid #fff;\n}\n.__react_component_tooltip.type-error {\n color: #fff;\n background-color: #BE6464;\n}\n.__react_component_tooltip.type-error.place-top:after {\n border-top-color: #BE6464;\n border-top-style: solid;\n border-top-width: 6px;\n}\n.__react_component_tooltip.type-error.place-bottom:after {\n border-bottom-color: #BE6464;\n border-bottom-style: solid;\n border-bottom-width: 6px;\n}\n.__react_component_tooltip.type-error.place-left:after {\n border-left-color: #BE6464;\n border-left-style: solid;\n border-left-width: 6px;\n}\n.__react_component_tooltip.type-error.place-right:after {\n border-right-color: #BE6464;\n border-right-style: solid;\n border-right-width: 6px;\n}\n.__react_component_tooltip.type-error.border {\n border: 1px solid #fff;\n}\n.__react_component_tooltip.type-error.border.place-top:before {\n border-top: 8px solid #fff;\n}\n.__react_component_tooltip.type-error.border.place-bottom:before {\n border-bottom: 8px solid #fff;\n}\n.__react_component_tooltip.type-error.border.place-left:before {\n border-left: 8px solid #fff;\n}\n.__react_component_tooltip.type-error.border.place-right:before {\n border-right: 8px solid #fff;\n}\n.__react_component_tooltip.type-info {\n color: #fff;\n background-color: #337AB7;\n}\n.__react_component_tooltip.type-info.place-top:after {\n border-top-color: #337AB7;\n border-top-style: solid;\n border-top-width: 6px;\n}\n.__react_component_tooltip.type-info.place-bottom:after {\n border-bottom-color: #337AB7;\n border-bottom-style: solid;\n border-bottom-width: 6px;\n}\n.__react_component_tooltip.type-info.place-left:after {\n border-left-color: #337AB7;\n border-left-style: solid;\n border-left-width: 6px;\n}\n.__react_component_tooltip.type-info.place-right:after {\n border-right-color: #337AB7;\n border-right-style: solid;\n border-right-width: 6px;\n}\n.__react_component_tooltip.type-info.border {\n border: 1px solid #fff;\n}\n.__react_component_tooltip.type-info.border.place-top:before {\n border-top: 8px solid #fff;\n}\n.__react_component_tooltip.type-info.border.place-bottom:before {\n border-bottom: 8px solid #fff;\n}\n.__react_component_tooltip.type-info.border.place-left:before {\n border-left: 8px solid #fff;\n}\n.__react_component_tooltip.type-info.border.place-right:before {\n border-right: 8px solid #fff;\n}\n.__react_component_tooltip.type-light {\n color: #222;\n background-color: #fff;\n}\n.__react_component_tooltip.type-light.place-top:after {\n border-top-color: #fff;\n border-top-style: solid;\n border-top-width: 6px;\n}\n.__react_component_tooltip.type-light.place-bottom:after {\n border-bottom-color: #fff;\n border-bottom-style: solid;\n border-bottom-width: 6px;\n}\n.__react_component_tooltip.type-light.place-left:after {\n border-left-color: #fff;\n border-left-style: solid;\n border-left-width: 6px;\n}\n.__react_component_tooltip.type-light.place-right:after {\n border-right-color: #fff;\n border-right-style: solid;\n border-right-width: 6px;\n}\n.__react_component_tooltip.type-light.border {\n border: 1px solid #222;\n}\n.__react_component_tooltip.type-light.border.place-top:before {\n border-top: 8px solid #222;\n}\n.__react_component_tooltip.type-light.border.place-bottom:before {\n border-bottom: 8px solid #222;\n}\n.__react_component_tooltip.type-light.border.place-left:before {\n border-left: 8px solid #222;\n}\n.__react_component_tooltip.type-light.border.place-right:before {\n border-right: 8px solid #222;\n}\n.__react_component_tooltip.place-top {\n margin-top: -10px;\n}\n.__react_component_tooltip.place-top:before {\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n bottom: -8px;\n left: 50%;\n margin-left: -10px;\n}\n.__react_component_tooltip.place-top:after {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n bottom: -6px;\n left: 50%;\n margin-left: -8px;\n}\n.__react_component_tooltip.place-bottom {\n margin-top: 10px;\n}\n.__react_component_tooltip.place-bottom:before {\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n top: -8px;\n left: 50%;\n margin-left: -10px;\n}\n.__react_component_tooltip.place-bottom:after {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n top: -6px;\n left: 50%;\n margin-left: -8px;\n}\n.__react_component_tooltip.place-left {\n margin-left: -10px;\n}\n.__react_component_tooltip.place-left:before {\n border-top: 6px solid transparent;\n border-bottom: 6px solid transparent;\n right: -8px;\n top: 50%;\n margin-top: -5px;\n}\n.__react_component_tooltip.place-left:after {\n border-top: 5px solid transparent;\n border-bottom: 5px solid transparent;\n right: -6px;\n top: 50%;\n margin-top: -4px;\n}\n.__react_component_tooltip.place-right {\n margin-left: 10px;\n}\n.__react_component_tooltip.place-right:before {\n border-top: 6px solid transparent;\n border-bottom: 6px solid transparent;\n left: -8px;\n top: 50%;\n margin-top: -5px;\n}\n.__react_component_tooltip.place-right:after {\n border-top: 5px solid transparent;\n border-bottom: 5px solid transparent;\n left: -6px;\n top: 50%;\n margin-top: -4px;\n}\n.__react_component_tooltip .multi-line {\n display: block;\n padding: 2px 0px;\n text-align: center;\n}' - ); - var en, - nn = - (function(t) { - (t.hide = function(t) { - ze(Ne.HIDE, { target: t }); - }), - (t.rebuild = function() { - ze(Ne.REBUILD); - }), - (t.show = function(t) { - ze(Ne.SHOW, { target: t }); - }), - (t.prototype.globalRebuild = function() { - this.mount && (this.unbindListener(), this.bindListener()); - }), - (t.prototype.globalShow = function(t) { - if (this.mount) { - var e = { currentTarget: t.detail.target }; - this.showTooltip(e, !0); - } - }), - (t.prototype.globalHide = function(t) { - if (this.mount) { - var e = !!(t && t.detail && t.detail.target); - this.hideTooltip({ currentTarget: e && t.detail.target }, e); - } - }); - })( - (qe = - (function(t) { - (t.prototype.bindWindowEvents = function(t) { - window.removeEventListener(Ne.HIDE, this.globalHide), - window.addEventListener(Ne.HIDE, this.globalHide, !1), - window.removeEventListener(Ne.REBUILD, this.globalRebuild), - window.addEventListener(Ne.REBUILD, this.globalRebuild, !1), - window.removeEventListener(Ne.SHOW, this.globalShow), - window.addEventListener(Ne.SHOW, this.globalShow, !1), - t && - (window.removeEventListener( - 'resize', - this.onWindowResize - ), - window.addEventListener( - 'resize', - this.onWindowResize, - !1 - )); - }), - (t.prototype.unbindWindowEvents = function() { - window.removeEventListener(Ne.HIDE, this.globalHide), - window.removeEventListener( - Ne.REBUILD, - this.globalRebuild - ), - window.removeEventListener(Ne.SHOW, this.globalShow), - window.removeEventListener('resize', this.onWindowResize); }), - (t.prototype.onWindowResize = function() { - this.mount && this.hideTooltip(); - }); - })( - (qe = - (function(t) { - (t.prototype.isCustomEvent = function(t) { - return this.state.event || !!t.getAttribute('data-event'); - }), - (t.prototype.customBindListener = function(t) { - var e = this, - n = this.state, - r = n.event, - i = n.eventOff, - o = t.getAttribute('data-event') || r, - a = t.getAttribute('data-event-off') || i; - o.split(' ').forEach(function(n) { - t.removeEventListener(n, Ve.get(t, n)); - var r = Ie.bind(e, a); - Ve.set(t, n, r), t.addEventListener(n, r, !1); - }), - a && - a.split(' ').forEach(function(n) { - t.removeEventListener(n, e.hideTooltip), - t.addEventListener(n, e.hideTooltip, !1); - }); - }), - (t.prototype.customUnbindListener = function(t) { - var e = this.state, - n = e.event, - r = e.eventOff, - i = n || t.getAttribute('data-event'), - o = r || t.getAttribute('data-event-off'); - t.removeEventListener(i, Ve.get(t, n)), - o && t.removeEventListener(o, this.hideTooltip); - }); - })( - (qe = - (function(t) { - t.prototype.isCapture = function(t) { - return ( - (t && - 'true' === t.getAttribute('data-iscapture')) || - this.props.isCapture || - !1 - ); - }; - })( - (qe = - (function(t) { - t.prototype.getEffect = function(t) { - return ( - t.getAttribute('data-effect') || - this.props.effect || - 'float' - ); - }; - })( - (qe = - (function(t) { - (t.prototype.isBodyMode = function() { - return !!this.props.bodyMode; - }), - (t.prototype.bindBodyListener = function(t) { - var e = this, - n = this.state, - r = n.event, - i = n.eventOff, - o = n.possibleCustomEvents, - a = n.possibleCustomEventsOff, - s = He(), - u = Ge(t, 'data-event'), - l = Ge(t, 'data-event-off'); - null != r && (u[r] = !0), - null != i && (l[i] = !0), - o.split(' ').forEach(function(t) { - return (u[t] = !0); - }), - a.split(' ').forEach(function(t) { - return (l[t] = !0); - }), - this.unbindBodyListener(s); - var c = (this.bodyModeListeners = {}); - for (var f in (null == r && - ((c.mouseover = Be.bind( - this, - this.showTooltip, - {} - )), - (c.mousemove = Be.bind( - this, - this.updateTooltip, - { respectEffect: !0 } - )), - (c.mouseout = Be.bind( - this, - this.hideTooltip, - {} - ))), - u)) - c[f] = Be.bind( - this, - function(t) { - var n = - t.currentTarget.getAttribute( - 'data-event-off' - ) || i; - Ie.call(e, n, t); - }, - { customEvent: !0 } - ); - for (var d in l) - c[d] = Be.bind(this, this.hideTooltip, { - customEvent: !0 - }); - for (var h in c) - s.addEventListener(h, c[h]); - }), - (t.prototype.unbindBodyListener = function( - t - ) { - t = t || He(); - var e = this.bodyModeListeners; - for (var n in e) - t.removeEventListener(n, e[n]); - }); - })( - ((Xe = We = (function(t) { - function e(t) { - var n; - return ( - (function(t, e) { - if (!(t instanceof e)) - throw new TypeError( - 'Cannot call a class as a function' - ); - })(this, e), - ((n = ke( - this, - Se(e).call(this, t) - )).state = { - place: t.place || 'top', - desiredPlace: t.place || 'top', - type: 'dark', - effect: 'float', - show: !1, - border: !1, - offset: {}, - extraClass: '', - html: !1, - delayHide: 0, - delayShow: 0, - event: t.event || null, - eventOff: t.eventOff || null, - currentEvent: null, - currentTarget: null, - ariaProps: tn(t), - isEmptyTip: !1, - disable: !1, - possibleCustomEvents: - t.possibleCustomEvents || '', - possibleCustomEventsOff: - t.possibleCustomEventsOff || '', - originTooltip: null, - isMultiline: !1 - }), - n.bind([ - 'showTooltip', - 'updateTooltip', - 'hideTooltip', - 'hideTooltipOnScroll', - 'getTooltipContent', - 'globalRebuild', - 'globalShow', - 'globalHide', - 'onWindowResize', - 'mouseOnToolTip' - ]), - (n.mount = !0), - (n.delayShowLoop = null), - (n.delayHideLoop = null), - (n.delayReshow = null), - (n.intervalUpdateContent = null), - n - ); - } - var n, r, i; - return ( - (function(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function' - ); - (t.prototype = Object.create( - e && e.prototype, - { - constructor: { - value: t, - writable: !0, - configurable: !0 - } - } - )), - e && Ee(t, e); - })(e, t), - (n = e), - (i = [ - { - key: 'getDerivedStateFromProps', - value: function(t, e) { - var n = e.ariaProps, - r = tn(t); - return Object.keys(r).some(function( - t - ) { - return r[t] !== n[t]; - }) - ? (function(t) { - for ( - var e = 1; - e < arguments.length; - e++ - ) { - var n = - null != arguments[e] - ? arguments[e] - : {}; - e % 2 - ? we(Object(n), !0).forEach( - function(e) { - _e(t, e, n[e]); - } - ) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties( - t, - Object.getOwnPropertyDescriptors( - n - ) - ) - : we(Object(n)).forEach( - function(e) { - Object.defineProperty( - t, - e, - Object.getOwnPropertyDescriptor( - n, - e - ) - ); - } - ); - } - return t; - })({}, e, { ariaProps: r }) - : null; - } - } - ]), - (r = [ - { - key: 'bind', - value: function(t) { - var e = this; - t.forEach(function(t) { - e[t] = e[t].bind(e); - }); - } - }, - { - key: 'componentDidMount', - value: function() { - var t = this.props, - e = (t.insecure, t.resizeHide); - this.bindListener(), - this.bindWindowEvents(e); - } - }, - { - key: 'componentWillUnmount', - value: function() { - (this.mount = !1), - this.clearTimer(), - this.unbindListener(), - this.removeScrollListener(), - this.unbindWindowEvents(); - } - }, - { - key: 'mouseOnToolTip', - value: function() { - return ( - !( - !this.state.show || - !this.tooltipRef - ) && - (this.tooltipRef.matches || - (this.tooltipRef.msMatchesSelector - ? (this.tooltipRef.matches = this.tooltipRef.msMatchesSelector) - : (this.tooltipRef.matches = this.tooltipRef.mozMatchesSelector)), - this.tooltipRef.matches(':hover')) - ); - } - }, - { - key: 'getTargetArray', - value: function(t) { - var e, n, r; - if (t) { - var i = t - .replace(/\\/g, '\\\\') - .replace(/"/g, '\\"'); - e = document.querySelectorAll( - '[data-tip][data-for="'.concat( - i, - '"]' - ) - ); - } else - e = document.querySelectorAll( - '[data-tip]:not([data-for])' - ); - return ( - (r = (n = e).length), - n.hasOwnProperty - ? Array.prototype.slice.call(n) - : new Array(r) - .fill() - .map(function(t) { - return n[t]; - }) - ); - } - }, - { - key: 'bindListener', - value: function() { - var t = this, - e = this.props, - n = e.id, - r = e.globalEventOff, - i = e.isCapture, - o = this.getTargetArray(n); - o.forEach(function(e) { - null === - e.getAttribute('currentItem') && - e.setAttribute( - 'currentItem', - 'false' - ), - t.unbindBasicListener(e), - t.isCustomEvent(e) && - t.customUnbindListener(e); - }), - this.isBodyMode() - ? this.bindBodyListener(o) - : o.forEach(function(e) { - var n = t.isCapture(e), - r = t.getEffect(e); - t.isCustomEvent(e) - ? t.customBindListener(e) - : (e.addEventListener( - 'mouseenter', - t.showTooltip, - n - ), - 'float' === r && - e.addEventListener( - 'mousemove', - t.updateTooltip, - n - ), - e.addEventListener( - 'mouseleave', - t.hideTooltip, - n - )); - }), - r && - (window.removeEventListener( - r, - this.hideTooltip - ), - window.addEventListener( - r, - this.hideTooltip, - i - )), - this.bindRemovalTracker(); - } - }, - { - key: 'unbindListener', - value: function() { - var t = this, - e = this.props, - n = e.id, - r = e.globalEventOff; - this.isBodyMode() - ? this.unbindBodyListener() - : this.getTargetArray(n).forEach( - function(e) { - t.unbindBasicListener(e), - t.isCustomEvent(e) && - t.customUnbindListener(e); - } - ), - r && - window.removeEventListener( - r, - this.hideTooltip - ), - this.unbindRemovalTracker(); - } - }, - { - key: 'unbindBasicListener', - value: function(t) { - var e = this.isCapture(t); - t.removeEventListener( - 'mouseenter', - this.showTooltip, - e - ), - t.removeEventListener( - 'mousemove', - this.updateTooltip, - e - ), - t.removeEventListener( - 'mouseleave', - this.hideTooltip, - e - ); - } - }, - { - key: 'getTooltipContent', - value: function() { - var t, - e = this.props, - n = e.getContent, - r = e.children; - return ( - n && - (t = Array.isArray(n) - ? n[0] && - n[0](this.state.originTooltip) - : n(this.state.originTooltip)), - Je( - this.state.originTooltip, - r, - t, - this.state.isMultiline - ) - ); - } - }, - { - key: 'isEmptyTip', - value: function(t) { - return ( - ('string' == typeof t && - '' === t) || - null === t - ); - } - }, - { - key: 'showTooltip', - value: function(t, e) { - if ( - !e || - this.getTargetArray( - this.props.id - ).some(function(e) { - return e === t.currentTarget; - }) - ) { - var n = this.props, - r = n.multiline, - i = n.getContent, - o = t.currentTarget.getAttribute( - 'data-tip' - ), - a = - t.currentTarget.getAttribute( - 'data-multiline' - ) || - r || - !1, - s = - t instanceof - window.FocusEvent || e, - u = !0; - t.currentTarget.getAttribute( - 'data-scroll-hide' - ) - ? (u = - 'true' === - t.currentTarget.getAttribute( - 'data-scroll-hide' - )) - : null != this.props.scrollHide && - (u = this.props.scrollHide); - var l = - t.currentTarget.getAttribute( - 'data-place' - ) || - this.props.place || - 'top', - c = s - ? 'solid' - : this.getEffect( - t.currentTarget - ), - f = - t.currentTarget.getAttribute( - 'data-offset' - ) || - this.props.offset || - {}, - d = Ue( - t, - t.currentTarget, - this.tooltipRef, - l, - l, - c, - f - ); - d.position && - this.props.overridePosition && - (d.position = this.props.overridePosition( - d.position, - t.currentTarget, - this.tooltipRef, - l, - l, - c, - f - )); - var h = d.isNewState - ? d.newState.place - : l; - this.clearTimer(); - var p = t.currentTarget, - g = this.state.show - ? p.getAttribute( - 'data-delay-update' - ) || this.props.delayUpdate - : 0, - v = this, - m = function() { - v.setState( - { - originTooltip: o, - isMultiline: a, - desiredPlace: l, - place: h, - type: - p.getAttribute( - 'data-type' - ) || - v.props.type || - 'dark', - effect: c, - offset: f, - html: p.getAttribute( - 'data-html' - ) - ? 'true' === - p.getAttribute( - 'data-html' - ) - : v.props.html || !1, - delayShow: - p.getAttribute( - 'data-delay-show' - ) || - v.props.delayShow || - 0, - delayHide: - p.getAttribute( - 'data-delay-hide' - ) || - v.props.delayHide || - 0, - delayUpdate: - p.getAttribute( - 'data-delay-update' - ) || - v.props.delayUpdate || - 0, - border: p.getAttribute( - 'data-border' - ) - ? 'true' === - p.getAttribute( - 'data-border' - ) - : v.props.border || !1, - extraClass: - p.getAttribute( - 'data-class' - ) || - v.props.class || - v.props.className || - '', - disable: p.getAttribute( - 'data-tip-disable' - ) - ? 'true' === - p.getAttribute( - 'data-tip-disable' - ) - : v.props.disable || !1, - currentTarget: p - }, - function() { - u && - v.addScrollListener( - v.state.currentTarget - ), - v.updateTooltip(t), - i && - Array.isArray(i) && - (v.intervalUpdateContent = setInterval( - function() { - if (v.mount) { - var t = - v.props - .getContent, - e = Je( - o, - '', - t[0](), - a - ), - n = v.isEmptyTip( - e - ); - v.setState({ - isEmptyTip: n - }), - v.updatePosition(); - } - }, - i[1] - )); - } - ); - }; - g - ? (this.delayReshow = setTimeout( - m, - g - )) - : m(); - } - } - }, - { - key: 'updateTooltip', - value: function(t) { - var e = this, - n = this.state, - r = n.delayShow, - i = n.disable, - o = this.props.afterShow, - a = this.getTooltipContent(), - s = parseInt(r, 10), - u = t.currentTarget || t.target; - if ( - !this.mouseOnToolTip() && - !this.isEmptyTip(a) && - !i - ) { - var l = function() { - if ( - (Array.isArray(a) && - a.length > 0) || - a - ) { - var n = !e.state.show; - e.setState( - { - currentEvent: t, - currentTarget: u, - show: !0 - }, - function() { - e.updatePosition(), - n && o && o(t); - } - ); - } - }; - clearTimeout(this.delayShowLoop), - r - ? (this.delayShowLoop = setTimeout( - l, - s - )) - : l(); - } - } - }, - { - key: 'listenForTooltipExit', - value: function() { - this.state.show && - this.tooltipRef && - this.tooltipRef.addEventListener( - 'mouseleave', - this.hideTooltip - ); - } - }, - { - key: 'removeListenerForTooltipExit', - value: function() { - this.state.show && - this.tooltipRef && - this.tooltipRef.removeEventListener( - 'mouseleave', - this.hideTooltip - ); - } - }, - { - key: 'hideTooltip', - value: function(t, e) { - var n = this, - r = - arguments.length > 2 && - void 0 !== arguments[2] - ? arguments[2] - : { isScroll: !1 }, - i = this.state.disable, - o = r.isScroll, - a = o ? 0 : this.state.delayHide, - s = this.props.afterHide, - u = this.getTooltipContent(); - if ( - this.mount && - !this.isEmptyTip(u) && - !i - ) { - if (e) { - var l = this.getTargetArray( - this.props.id - ), - c = l.some(function(e) { - return e === t.currentTarget; - }); - if (!c || !this.state.show) - return; - } - var f = function() { - var e = n.state.show; - n.mouseOnToolTip() - ? n.listenForTooltipExit() - : (n.removeListenerForTooltipExit(), - n.setState( - { show: !1 }, - function() { - n.removeScrollListener(), - e && s && s(t); - } - )); - }; - this.clearTimer(), - a - ? (this.delayHideLoop = setTimeout( - f, - parseInt(a, 10) - )) - : f(); - } - } - }, - { - key: 'hideTooltipOnScroll', - value: function(t, e) { - this.hideTooltip(t, e, { - isScroll: !0 - }); - } - }, - { - key: 'addScrollListener', - value: function(t) { - var e = this.isCapture(t); - window.addEventListener( - 'scroll', - this.hideTooltipOnScroll, - e - ); - } - }, - { - key: 'removeScrollListener', - value: function() { - window.removeEventListener( - 'scroll', - this.hideTooltipOnScroll - ); - } - }, - { - key: 'updatePosition', - value: function() { - var t = this, - e = this.state, - n = e.currentEvent, - r = e.currentTarget, - i = e.place, - o = e.desiredPlace, - a = e.effect, - s = e.offset, - u = this.tooltipRef, - l = Ue(n, r, u, i, o, a, s); - if ( - (l.position && - this.props.overridePosition && - (l.position = this.props.overridePosition( - l.position, - n, - r, - u, - i, - o, - a, - s - )), - l.isNewState) - ) - return this.setState( - l.newState, - function() { - t.updatePosition(); - } - ); - (u.style.left = - l.position.left + 'px'), - (u.style.top = - l.position.top + 'px'); - } - }, - { - key: 'clearTimer', - value: function() { - clearTimeout(this.delayShowLoop), - clearTimeout(this.delayHideLoop), - clearTimeout(this.delayReshow), - clearInterval( - this.intervalUpdateContent - ); - } - }, - { - key: 'render', - value: function() { - var t = this, - n = this.state, - r = n.extraClass, - i = n.html, - o = n.ariaProps, - a = n.disable, - s = this.getTooltipContent(), - l = this.isEmptyTip(s), - c = - '__react_component_tooltip' + - (!this.state.show || a || l - ? '' - : ' show') + - (this.state.border - ? ' border' - : '') + - ' place-'.concat( - this.state.place - ) + - ' type-'.concat(this.state.type) + - (this.props.delayUpdate - ? ' allow_hover' - : '') + - (this.props.clickable - ? ' allow_click' - : ''), - f = this.props.wrapper; - e.supportedWrappers.indexOf(f) < 0 && - (f = e.defaultProps.wrapper); - var d = [c, r] - .filter(Boolean) - .join(' '); - return i - ? u.a.createElement( - f, - xe( - { - className: d, - id: this.props.id, - ref: function(e) { - return (t.tooltipRef = e); - } - }, - o, - { - 'data-id': 'tooltip', - dangerouslySetInnerHTML: { - __html: s - } - } - ) - ) - : u.a.createElement( - f, - xe( - { - className: d, - id: this.props.id - }, - o, - { - ref: function(e) { - return (t.tooltipRef = e); - }, - 'data-id': 'tooltip' - } - ), - s - ); - } - } - ]) && be(n.prototype, r), - i && be(n, i), - e - ); - })(u.a.Component)), - _e(We, 'propTypes', { - children: Re.any, - place: Re.string, - type: Re.string, - effect: Re.string, - offset: Re.object, - multiline: Re.bool, - border: Re.bool, - insecure: Re.bool, - class: Re.string, - className: Re.string, - id: Re.string, - html: Re.bool, - delayHide: Re.number, - delayUpdate: Re.number, - delayShow: Re.number, - event: Re.string, - eventOff: Re.string, - watchWindow: Re.bool, - isCapture: Re.bool, - globalEventOff: Re.string, - getContent: Re.any, - afterShow: Re.func, - afterHide: Re.func, - overridePosition: Re.func, - disable: Re.bool, - scrollHide: Re.bool, - resizeHide: Re.bool, - wrapper: Re.string, - bodyMode: Re.bool, - possibleCustomEvents: Re.string, - possibleCustomEventsOff: Re.string, - clickable: Re.bool - }), - _e(We, 'defaultProps', { - insecure: !0, - resizeHide: !0, - wrapper: 'div', - clickable: !1 - }), - _e(We, 'supportedWrappers', ['div', 'span']), - _e(We, 'displayName', 'ReactTooltip'), - ((en = qe = Xe).prototype.bindRemovalTracker = function() { - var t = this, - e = - window.MutationObserver || - window.WebKitMutationObserver || - window.MozMutationObserver; - if (null != e) { - var n = new e(function(e) { - for (var n = 0; n < e.length; n++) - for ( - var r = e[n], i = 0; - i < r.removedNodes.length; - i++ - ) - if ( - r.removedNodes[i] === - t.state.currentTarget - ) - return void t.hideTooltip(); - }); - n.observe(window.document, { - childList: !0, - subtree: !0 - }), - (this.removalTracker = n); - } - }), - (qe = - void (en.prototype.unbindRemovalTracker = function() { - this.removalTracker && - (this.removalTracker.disconnect(), - (this.removalTracker = null)); - }) || qe)) - ) || qe) - ) || qe) - ) || qe) - ) || qe) - ) || qe) - ) || qe, - rn = n(8), - on = n.n(rn), - an = n(151), - sn = function() { - return Object(an.uuid)(); + (r.prototype.initTitle = function() { + this.title = this.svg + .append('text') + .text(this.config.title_text) + .attr('class', this.CLASS.title); + }), + (r.prototype.redrawTitle = function() { + var t = this; + t.title + .attr('x', t.xForTitle.bind(t)) + .attr('y', t.yForTitle.bind(t)); + }), + (r.prototype.xForTitle = function() { + var t = this, + e = t.config, + n = e.title_position || 'left'; + return n.indexOf('right') >= 0 + ? t.currentWidth - + t.getTextRect( + t.title.node().textContent, + t.CLASS.title, + t.title.node() + ).width - + e.title_padding.right + : n.indexOf('center') >= 0 + ? Math.max( + (t.currentWidth - + t.getTextRect( + t.title.node().textContent, + t.CLASS.title, + t.title.node() + ).width) / + 2, + 0 + ) + : e.title_padding.left; + }), + (r.prototype.yForTitle = function() { + var t = this; + return ( + t.config.title_padding.top + + t.getTextRect( + t.title.node().textContent, + t.CLASS.title, + t.title.node() + ).height + ); + }), + (r.prototype.getTitlePadding = function() { + return this.yForTitle() + this.config.title_padding.bottom; + }), + (r.prototype.drawColorScale = function() { + var t, + e, + n, + r, + i, + o, + a, + s = this, + u = s.d3, + l = s.config, + c = s.data.targets[0]; + if ( + (t = isNaN(l.stanford_scaleWidth) + ? 20 + : l.stanford_scaleWidth) < 0 + ) + throw Error( + "Colorscale's barheight and barwidth must be greater than 0." + ); + (a = + s.height - + l.stanford_padding.bottom - + l.stanford_padding.top), + (n = u.range(l.stanford_padding.bottom, a, 5)), + (o = u + .scaleSequential(c.colors) + .domain([n[n.length - 1], n[0]])), + s.colorScale && s.colorScale.remove(), + (s.colorScale = s.svg + .append('g') + .attr('width', 50) + .attr('height', a) + .attr('class', w.colorScale)), + s.colorScale + .append('g') + .attr( + 'transform', + 'translate(0, '.concat(l.stanford_padding.top, ')') + ) + .selectAll('bars') + .data(n) + .enter() + .append('rect') + .attr('y', function(t, e) { + return 5 * e; + }) + .attr('x', 0) + .attr('width', t) + .attr('height', 5) + .attr('fill', function(t) { + return o(t); + }), + (i = u + .scaleLog() + .domain([c.minEpochs, c.maxEpochs]) + .range([ + n[0] + + l.stanford_padding.top + + n[n.length - 1] + + 5 - + 1, + n[0] + l.stanford_padding.top + ])), + (r = u.axisRight(i)), + 'pow10' === l.stanford_scaleFormat + ? r.tickValues([1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7]) + : p(l.stanford_scaleFormat) + ? r.tickFormat(l.stanford_scaleFormat) + : r.tickFormat(u.format('d')), + p(l.stanford_scaleValues) && + r.tickValues( + l.stanford_scaleValues(c.minEpochs, c.maxEpochs) + ), + (e = s.colorScale + .append('g') + .attr('class', 'legend axis') + .attr('transform', 'translate('.concat(t, ',0)')) + .call(r)), + 'pow10' === l.stanford_scaleFormat && + e + .selectAll('.tick text') + .text(null) + .filter(A) + .text(10) + .append('tspan') + .attr('dy', '-.7em') + .text(function(t) { + return Math.round(Math.log(t) / Math.LN10); + }), + s.colorScale.attr( + 'transform', + 'translate('.concat( + s.currentWidth - s.xForColorScale(), + ', 0)' + ) + ); + }), + (r.prototype.xForColorScale = function() { + return ( + this.config.stanford_padding.right + + c(this.colorScale.node()).width + ); + }), + (r.prototype.getColorScalePadding = function() { + return ( + this.xForColorScale() + + this.config.stanford_padding.left + + 20 + ); + }), + (r.prototype.isStanfordGraphType = function() { + return 'stanford' === this.config.data_type; + }), + (r.prototype.initStanfordData = function() { + var t, + e, + n, + r = this.d3, + i = this.config, + o = this.data.targets[0]; + if ( + (o.values.sort(O), + (t = o.values.map(function(t) { + return t.epochs; + })), + (n = isNaN(i.stanford_scaleMin) + ? r.min(t) + : i.stanford_scaleMin) > + (e = isNaN(i.stanford_scaleMax) + ? r.max(t) + : i.stanford_scaleMax)) + ) + throw Error( + 'Number of minEpochs has to be smaller than maxEpochs' + ); + (o.colors = p(i.stanford_colors) + ? i.stanford_colors + : r.interpolateHslLong( + r.hsl(250, 1, 0.5), + r.hsl(0, 1, 0.5) + )), + (o.colorscale = r + .scaleSequentialLog(o.colors) + .domain([n, e])), + (o.minEpochs = n), + (o.maxEpochs = e); + }), + (r.prototype.getStanfordPointColor = function(t) { + return this.data.targets[0].colorscale(t.epochs); + }), + (r.prototype.getCentroid = function(t) { + var e, + n, + r, + i, + o, + a = T(t), + s = 0, + u = 0; + for (e = 0, n = t.length - 1; e < t.length; n = e, e += 1) + (i = t[e]), + (o = t[n]), + (r = i.x * o.y - o.x * i.y), + (s += (i.x + o.x) * r), + (u += (i.y + o.y) * r); + return { x: s / (r = 6 * a), y: u / r }; + }), + (r.prototype.getStanfordTooltipTitle = function(t) { + var e = this.axis.getLabelText('x'), + n = this.axis.getLabelText('y'); + return '\n ' + .concat(e ? _(e) : 'x', "") + .concat(t.x, '\n ') + .concat(n ? _(n) : 'y', "") + .concat(t.value, '\n '); + }), + (r.prototype.countEpochsInRegion = function(t) { + var e, + n, + r = this.data.targets[0]; + return ( + (e = r.values.reduce(function(t, e) { + return t + Number(e.epochs); + }, 0)), + { + value: (n = r.values.reduce(function(e, n) { + return C(n, t) ? e + Number(n.epochs) : e; + }, 0)), + percentage: 0 !== n ? ((n / e) * 100).toFixed(1) : 0 + } + ); + }); + var T = function(t) { + var e, + n, + r, + i, + o = 0; + for (e = 0, n = t.length - 1; e < t.length; n = e, e += 1) + (r = t[e]), + (i = t[n]), + (o += r.x * i.y), + (o -= r.y * i.x); + return (o /= 2); + }, + C = function(t, e) { + for ( + var n, + r, + i, + o, + a = t.x, + s = t.value, + u = !1, + l = 0, + c = e.length - 1; + l < e.length; + c = l++ + ) + (n = e[l].x), + (r = e[l].y), + (o = e[c].x), + r > s != (i = e[c].y) > s && + a < ((o - n) * (s - r)) / (i - r) + n && + (u = !u); + return u; + }, + O = function(t, e) { + return t.epochs < e.epochs + ? -1 + : t.epochs > e.epochs + ? 1 + : 0; + }; + return ( + (r.prototype.initStanfordElements = function() { + var t = this; + (t.stanfordElements = t.main + .select('.' + w.chart) + .append('g') + .attr('class', w.stanfordElements)), + t.stanfordElements + .append('g') + .attr('class', w.stanfordLines), + t.stanfordElements + .append('g') + .attr('class', w.stanfordTexts), + t.stanfordElements + .append('g') + .attr('class', w.stanfordRegions); + }), + (r.prototype.updateStanfordElements = function(t) { + var e, + n, + r, + i, + o, + a, + s = this, + u = s.main, + l = s.config, + c = s.xvCustom.bind(s), + f = s.yvCustom.bind(s), + d = s.countEpochsInRegion.bind(s); + (n = (e = u + .select('.' + w.stanfordLines) + .style('shape-rendering', 'geometricprecision') + .selectAll('.' + w.stanfordLine) + .data(l.stanford_lines)) + .enter() + .append('g') + .attr('class', function(t) { + return w.stanfordLine + (t.class ? ' ' + t.class : ''); + })) + .append('line') + .attr('x1', function(t) { + return l.axis_rotated + ? f(t, 'value_y1') + : c(t, 'value_x1'); + }) + .attr('x2', function(t) { + return l.axis_rotated + ? f(t, 'value_y2') + : c(t, 'value_x2'); + }) + .attr('y1', function(t) { + return l.axis_rotated + ? c(t, 'value_x1') + : f(t, 'value_y1'); + }) + .attr('y2', function(t) { + return l.axis_rotated + ? c(t, 'value_x2') + : f(t, 'value_y2'); + }) + .style('opacity', 0), + (s.stanfordLines = n.merge(e)), + s.stanfordLines + .select('line') + .transition() + .duration(t) + .attr('x1', function(t) { + return l.axis_rotated + ? f(t, 'value_y1') + : c(t, 'value_x1'); + }) + .attr('x2', function(t) { + return l.axis_rotated + ? f(t, 'value_y2') + : c(t, 'value_x2'); + }) + .attr('y1', function(t) { + return l.axis_rotated + ? c(t, 'value_x1') + : f(t, 'value_y1'); + }) + .attr('y2', function(t) { + return l.axis_rotated + ? c(t, 'value_x2') + : f(t, 'value_y2'); + }) + .style('opacity', 1), + e + .exit() + .transition() + .duration(t) + .style('opacity', 0) + .remove(), + (a = (o = u + .select('.' + w.stanfordTexts) + .selectAll('.' + w.stanfordText) + .data(l.stanford_texts)) + .enter() + .append('g') + .attr('class', function(t) { + return ( + w.stanfordText + (t.class ? ' ' + t.class : '') + ); + })) + .append('text') + .attr('x', function(t) { + return l.axis_rotated ? f(t, 'y') : c(t, 'x'); + }) + .attr('y', function(t) { + return l.axis_rotated ? c(t, 'x') : f(t, 'y'); + }) + .style('opacity', 0), + (s.stanfordTexts = a.merge(o)), + s.stanfordTexts + .select('text') + .transition() + .duration(t) + .attr('x', function(t) { + return l.axis_rotated ? f(t, 'y') : c(t, 'x'); + }) + .attr('y', function(t) { + return l.axis_rotated ? c(t, 'x') : f(t, 'y'); + }) + .text(function(t) { + return t.content; + }) + .style('opacity', 1), + o + .exit() + .transition() + .duration(t) + .style('opacity', 0) + .remove(), + (i = (r = u + .select('.' + w.stanfordRegions) + .selectAll('.' + w.stanfordRegion) + .data(l.stanford_regions)) + .enter() + .append('g') + .attr('class', function(t) { + return ( + w.stanfordRegion + (t.class ? ' ' + t.class : '') + ); + })) + .append('polygon') + .attr('points', function(t) { + return t.points + .map(function(t) { + return [ + l.axis_rotated ? f(t, 'y') : c(t, 'x'), + l.axis_rotated ? c(t, 'x') : f(t, 'y') + ].join(','); + }) + .join(' '); + }) + .style('opacity', 0), + i + .append('text') + .attr('x', function(t) { + return s.getCentroid(t.points).x; + }) + .attr('y', function(t) { + return s.getCentroid(t.points).y; + }) + .style('opacity', 0), + (s.stanfordRegions = i.merge(r)), + s.stanfordRegions + .select('polygon') + .transition() + .duration(t) + .attr('points', function(t) { + return t.points + .map(function(t) { + return [ + l.axis_rotated ? f(t, 'y') : c(t, 'x'), + l.axis_rotated ? c(t, 'x') : f(t, 'y') + ].join(','); + }) + .join(' '); + }) + .style('opacity', function(t) { + return t.opacity ? t.opacity : 0.2; + }), + s.stanfordRegions + .select('text') + .transition() + .duration(t) + .attr('x', function(t) { + return l.axis_rotated + ? f(s.getCentroid(t.points), 'y') + : c(s.getCentroid(t.points), 'x'); + }) + .attr('y', function(t) { + return l.axis_rotated + ? c(s.getCentroid(t.points), 'x') + : f(s.getCentroid(t.points), 'y'); + }) + .text(function(t) { + var e, n, r; + return t.text + ? (s.isStanfordGraphType() && + ((e = (r = d(t.points)).value), + (n = r.percentage)), + t.text(e, n)) + : ''; + }) + .attr('text-anchor', 'middle') + .attr('dominant-baseline', 'middle') + .style('opacity', 1), + r + .exit() + .transition() + .duration(t) + .style('opacity', 0) + .remove(); + }), + (r.prototype.initTooltip = function() { + var t, + e = this, + n = e.config; + if ( + ((e.tooltip = e.selectChart + .style('position', 'relative') + .append('div') + .attr('class', w.tooltipContainer) + .style('position', 'absolute') + .style('pointer-events', 'none') + .style('display', 'none')), + n.tooltip_init_show) + ) { + if (e.isTimeSeries() && m(n.tooltip_init_x)) { + for ( + n.tooltip_init_x = e.parseDate(n.tooltip_init_x), + t = 0; + t < e.data.targets[0].values.length && + e.data.targets[0].values[t].x - n.tooltip_init_x != 0; + t++ + ); + n.tooltip_init_x = t; + } + e.tooltip.html( + n.tooltip_contents.call( + e, + e.data.targets.map(function(t) { + return e.addName(t.values[n.tooltip_init_x]); + }), + e.axis.getXAxisTickFormat(), + e.getYFormat(e.hasArcType()), + e.color + ) + ), + e.tooltip + .style('top', n.tooltip_init_position.top) + .style('left', n.tooltip_init_position.left) + .style('display', 'block'); + } + }), + (r.prototype.getTooltipSortFunction = function() { + var t = this, + e = t.config; + if ( + 0 !== e.data_groups.length && + void 0 === e.tooltip_order + ) { + var n = t.orderTargets(t.data.targets).map(function(t) { + return t.id; + }); + return ( + (t.isOrderAsc() || t.isOrderDesc()) && + (n = n.reverse()), + function(t, e) { + return n.indexOf(t.id) - n.indexOf(e.id); + } + ); + } + var r = e.tooltip_order; + void 0 === r && (r = e.data_order); + var i = function(t) { + return t ? t.value : null; + }; + if (m(r) && 'asc' === r.toLowerCase()) + return function(t, e) { + return i(t) - i(e); + }; + if (m(r) && 'desc' === r.toLowerCase()) + return function(t, e) { + return i(e) - i(t); + }; + if (p(r)) { + var o = r; + return ( + void 0 === e.tooltip_order && + (o = function(t, e) { + return r( + t ? { id: t.id, values: [t] } : null, + e ? { id: e.id, values: [e] } : null + ); + }), + o + ); + } + return f(r) + ? function(t, e) { + return r.indexOf(t.id) - r.indexOf(e.id); + } + : void 0; + }), + (r.prototype.getTooltipContent = function(t, e, n, r) { + var i, + o, + a, + s, + u, + l, + c = this, + f = c.config, + d = f.tooltip_format_title || e, + h = + f.tooltip_format_name || + function(t) { + return t; + }, + p = f.tooltip_format_value; + p || + (p = c.isTargetNormalized(t.id) + ? function(t, e) { + return ''.concat((100 * e).toFixed(2), '%'); + } + : n); + var g = this.getTooltipSortFunction(); + for (g && t.sort(g), o = 0; o < t.length; o++) + if (t[o] && (t[o].value || 0 === t[o].value)) { + if (c.isStanfordGraphType()) + i || + ((a = c.getStanfordTooltipTitle(t[o])), + (i = + "" + a)), + (l = c.getStanfordPointColor(t[o])), + (u = _(f.data_epochs)), + (s = t[o].epochs); + else if ( + (i || + ((a = _(d ? d(t[o].x, t[o].index) : t[o].x)), + (i = + "
" + + (a || 0 === a + ? "' + : ''))), + void 0 !== + (s = _( + p(t[o].value, t[o].ratio, t[o].id, t[o].index, t) + ))) + ) { + if (null === t[o].name) continue; + (u = _( + h(t[o].name, t[o].ratio, t[o].id, t[o].index) + )), + (l = c.levelColor + ? c.levelColor(t[o].value) + : r(t[o].id)); + } + void 0 !== s && + ((i += + ""), + (i += + "'), + (i += "'), + (i += '')); + } + return i + '
" + a + '
" + + u + + '" + s + '
'; + }), + (r.prototype.tooltipPosition = function(t, e, n, r) { + var i, + o, + a, + s, + u, + l = this, + c = l.config, + f = l.d3, + d = l.hasArcType(), + h = f.mouse(r); + return ( + d + ? ((o = + (l.width - + (l.isLegendRight ? l.getLegendWidth() : 0)) / + 2 + + h[0]), + (s = + (l.hasType('gauge') ? l.height : l.height / 2) + + h[1] + + 20)) + : ((i = l.getSvgLeft(!0)), + c.axis_rotated + ? ((a = (o = i + h[0] + 100) + e), + (u = l.currentWidth - l.getCurrentPaddingRight()), + (s = l.x(t[0].x) + 20)) + : ((a = + (o = + i + + l.getCurrentPaddingLeft(!0) + + l.x(t[0].x) + + 20) + e), + (u = + i + + l.currentWidth - + l.getCurrentPaddingRight()), + (s = h[1] + 15)), + a > u && (o -= a - u + 20), + s + n > l.currentHeight && (s -= n + 30)), + s < 0 && (s = 0), + { top: s, left: o } + ); + }), + (r.prototype.showTooltip = function(t, e) { + var n, + i, + o, + a = this, + s = a.config, + u = a.hasArcType(), + l = t.filter(function(t) { + return t && y(t.value); + }), + c = s.tooltip_position || r.prototype.tooltipPosition; + 0 !== l.length && + s.tooltip_show && + (a.tooltip + .html( + s.tooltip_contents.call( + a, + t, + a.axis.getXAxisTickFormat(), + a.getYFormat(u), + a.color + ) + ) + .style('display', 'block'), + (n = a.tooltip.property('offsetWidth')), + (i = a.tooltip.property('offsetHeight')), + (o = c.call(this, l, n, i, e)), + a.tooltip + .style('top', o.top + 'px') + .style('left', o.left + 'px')); + }), + (r.prototype.hideTooltip = function() { + this.tooltip.style('display', 'none'); + }), + (r.prototype.setTargetType = function(t, e) { + var n = this, + r = n.config; + n.mapToTargetIds(t).forEach(function(t) { + (n.withoutFadeIn[t] = e === r.data_types[t]), + (r.data_types[t] = e); + }), + t || (r.data_type = e); + }), + (r.prototype.hasType = function(t, e) { + var n = this.config.data_types, + r = !1; + return ( + (e = e || this.data.targets) && e.length + ? e.forEach(function(e) { + var i = n[e.id]; + ((i && i.indexOf(t) >= 0) || + (!i && 'line' === t)) && + (r = !0); + }) + : Object.keys(n).length + ? Object.keys(n).forEach(function(e) { + n[e] === t && (r = !0); + }) + : (r = this.config.data_type === t), + r + ); + }), + (r.prototype.hasArcType = function(t) { + return ( + this.hasType('pie', t) || + this.hasType('donut', t) || + this.hasType('gauge', t) + ); + }), + (r.prototype.isLineType = function(t) { + var e = this.config, + n = m(t) ? t : t.id; + return ( + !e.data_types[n] || + [ + 'line', + 'spline', + 'area', + 'area-spline', + 'step', + 'area-step' + ].indexOf(e.data_types[n]) >= 0 + ); + }), + (r.prototype.isStepType = function(t) { + var e = m(t) ? t : t.id; + return ( + ['step', 'area-step'].indexOf( + this.config.data_types[e] + ) >= 0 + ); + }), + (r.prototype.isSplineType = function(t) { + var e = m(t) ? t : t.id; + return ( + ['spline', 'area-spline'].indexOf( + this.config.data_types[e] + ) >= 0 + ); + }), + (r.prototype.isAreaType = function(t) { + var e = m(t) ? t : t.id; + return ( + ['area', 'area-spline', 'area-step'].indexOf( + this.config.data_types[e] + ) >= 0 + ); + }), + (r.prototype.isBarType = function(t) { + var e = m(t) ? t : t.id; + return 'bar' === this.config.data_types[e]; + }), + (r.prototype.isScatterType = function(t) { + var e = m(t) ? t : t.id; + return 'scatter' === this.config.data_types[e]; + }), + (r.prototype.isStanfordType = function(t) { + var e = m(t) ? t : t.id; + return 'stanford' === this.config.data_types[e]; + }), + (r.prototype.isPieType = function(t) { + var e = m(t) ? t : t.id; + return 'pie' === this.config.data_types[e]; + }), + (r.prototype.isGaugeType = function(t) { + var e = m(t) ? t : t.id; + return 'gauge' === this.config.data_types[e]; + }), + (r.prototype.isDonutType = function(t) { + var e = m(t) ? t : t.id; + return 'donut' === this.config.data_types[e]; + }), + (r.prototype.isArcType = function(t) { + return ( + this.isPieType(t) || + this.isDonutType(t) || + this.isGaugeType(t) + ); + }), + (r.prototype.lineData = function(t) { + return this.isLineType(t) ? [t] : []; + }), + (r.prototype.arcData = function(t) { + return this.isArcType(t.data) ? [t] : []; + }), + (r.prototype.barData = function(t) { + return this.isBarType(t) ? t.values : []; + }), + (r.prototype.lineOrScatterOrStanfordData = function(t) { + return this.isLineType(t) || + this.isScatterType(t) || + this.isStanfordType(t) + ? t.values + : []; + }), + (r.prototype.barOrLineData = function(t) { + return this.isBarType(t) || this.isLineType(t) + ? t.values + : []; + }), + (r.prototype.isSafari = function() { + var t = window.navigator.userAgent; + return t.indexOf('Safari') >= 0 && t.indexOf('Chrome') < 0; + }), + (r.prototype.isChrome = function() { + return window.navigator.userAgent.indexOf('Chrome') >= 0; + }), + (r.prototype.initZoom = function() { + var t, + e = this, + n = e.d3, + r = e.config; + return ( + (e.zoom = n + .zoom() + .on('start', function() { + if ('scroll' === r.zoom_type) { + var i = n.event.sourceEvent; + (i && 'brush' === i.type) || + ((t = i), r.zoom_onzoomstart.call(e.api, i)); + } + }) + .on('zoom', function() { + if ('scroll' === r.zoom_type) { + var t = n.event.sourceEvent; + (t && 'brush' === t.type) || + (e.redrawForZoom(), + r.zoom_onzoom.call(e.api, e.x.orgDomain())); + } + }) + .on('end', function() { + if ('scroll' === r.zoom_type) { + var i = n.event.sourceEvent; + (i && 'brush' === i.type) || + (i && + t.clientX === i.clientX && + t.clientY === i.clientY) || + r.zoom_onzoomend.call(e.api, e.x.orgDomain()); + } + })), + (e.zoom.updateDomain = function() { + return ( + n.event && + n.event.transform && + e.x.domain( + n.event.transform.rescaleX(e.subX).domain() + ), + this + ); + }), + (e.zoom.updateExtent = function() { + return ( + this.scaleExtent([1, 1 / 0]) + .translateExtent([[0, 0], [e.width, e.height]]) + .extent([[0, 0], [e.width, e.height]]), + this + ); + }), + (e.zoom.update = function() { + return this.updateExtent().updateDomain(); + }), + e.zoom.updateExtent() + ); + }), + (r.prototype.zoomTransform = function(t) { + var e = [this.x(t[0]), this.x(t[1])]; + return this.d3.zoomIdentity + .scale(this.width / (e[1] - e[0])) + .translate(-e[0], 0); + }), + (r.prototype.initDragZoom = function() { + var t = this, + e = t.d3, + n = t.config, + r = (t.context = t.svg), + i = t.margin.left + 20.5, + o = t.margin.top + 0.5; + if ('drag' === n.zoom_type && n.zoom_enabled) { + var a = function(e) { + return ( + e && + e.map(function(e) { + return t.x.invert(e); + }) + ); + }, + s = (t.dragZoomBrush = e + .brushX() + .on('start', function() { + t.api.unzoom(), + t.svg + .select('.' + w.dragZoom) + .classed('disabled', !1), + n.zoom_onzoomstart.call( + t.api, + e.event.sourceEvent + ); + }) + .on('brush', function() { + n.zoom_onzoom.call(t.api, a(e.event.selection)); + }) + .on('end', function() { + if (null != e.event.selection) { + var r = a(e.event.selection); + n.zoom_disableDefaultBehavior || t.api.zoom(r), + t.svg + .select('.' + w.dragZoom) + .classed('disabled', !0), + n.zoom_onzoomend.call(t.api, r); + } + })); + r.append('g') + .classed(w.dragZoom, !0) + .attr('clip-path', t.clipPath) + .attr('transform', 'translate(' + i + ',' + o + ')') + .call(s); + } + }), + (r.prototype.getZoomDomain = function() { + var t = this.config, + e = this.d3; + return [ + e.min([this.orgXDomain[0], t.zoom_x_min]), + e.max([this.orgXDomain[1], t.zoom_x_max]) + ]; + }), + (r.prototype.redrawForZoom = function() { + var t = this, + e = t.d3, + n = t.config, + r = t.zoom, + i = t.x; + n.zoom_enabled && + 0 !== t.filterTargetsToShow(t.data.targets).length && + (r.update(), + n.zoom_disableDefaultBehavior || + (t.isCategorized() && + i.orgDomain()[0] === t.orgXDomain[0] && + i.domain([t.orgXDomain[0] - 1e-10, i.orgDomain()[1]]), + t.redraw({ + withTransition: !1, + withY: n.zoom_rescale, + withSubchart: !1, + withEventRect: !1, + withDimension: !1 + }), + e.event.sourceEvent && + 'mousemove' === e.event.sourceEvent.type && + (t.cancelClick = !0))); + }), + E + ); + })(); + } + ]); + }), + (t.exports = r()); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.CustomPicker = e.TwitterPicker = e.SwatchesPicker = e.SliderPicker = e.SketchPicker = e.PhotoshopPicker = e.MaterialPicker = e.HuePicker = e.GithubPicker = e.CompactPicker = e.ChromePicker = e.default = e.CirclePicker = e.BlockPicker = e.AlphaPicker = void 0); + var r = n(339); + Object.defineProperty(e, 'AlphaPicker', { + enumerable: !0, + get: function() { + return y(r).default; + } + }); + var i = n(400); + Object.defineProperty(e, 'BlockPicker', { + enumerable: !0, + get: function() { + return y(i).default; + } + }); + var o = n(402); + Object.defineProperty(e, 'CirclePicker', { + enumerable: !0, + get: function() { + return y(o).default; + } + }); + var a = n(404); + Object.defineProperty(e, 'ChromePicker', { + enumerable: !0, + get: function() { + return y(a).default; + } + }); + var s = n(409); + Object.defineProperty(e, 'CompactPicker', { + enumerable: !0, + get: function() { + return y(s).default; + } + }); + var u = n(412); + Object.defineProperty(e, 'GithubPicker', { + enumerable: !0, + get: function() { + return y(u).default; + } + }); + var l = n(414); + Object.defineProperty(e, 'HuePicker', { + enumerable: !0, + get: function() { + return y(l).default; + } + }); + var c = n(416); + Object.defineProperty(e, 'MaterialPicker', { + enumerable: !0, + get: function() { + return y(c).default; + } + }); + var f = n(417); + Object.defineProperty(e, 'PhotoshopPicker', { + enumerable: !0, + get: function() { + return y(f).default; + } + }); + var d = n(423); + Object.defineProperty(e, 'SketchPicker', { + enumerable: !0, + get: function() { + return y(d).default; + } + }); + var h = n(426); + Object.defineProperty(e, 'SliderPicker', { + enumerable: !0, + get: function() { + return y(h).default; + } + }); + var p = n(430); + Object.defineProperty(e, 'SwatchesPicker', { + enumerable: !0, + get: function() { + return y(p).default; + } + }); + var g = n(434); + Object.defineProperty(e, 'TwitterPicker', { + enumerable: !0, + get: function() { + return y(g).default; + } + }); + var m = n(153); + Object.defineProperty(e, 'CustomPicker', { + enumerable: !0, + get: function() { + return y(m).default; + } + }); + var v = y(a); + function y(t) { + return t && t.__esModule ? t : { default: t }; + } + e.default = v.default; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.AlphaPicker = void 0); + var r = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); + } + return t; + }, + i = u(n(0)), + o = u(n(3)), + a = n(6), + s = u(n(399)); + function u(t) { + return t && t.__esModule ? t : { default: t }; + } + var l = (e.AlphaPicker = function(t) { + var e = t.rgb, + n = t.hsl, + s = t.width, + u = t.height, + l = t.onChange, + c = t.direction, + f = t.style, + d = t.renderers, + h = t.pointer, + p = t.className, + g = void 0 === p ? '' : p, + m = (0, o.default)({ + default: { + picker: { position: 'relative', width: s, height: u }, + alpha: { radius: '2px', style: f } + } + }); + return i.default.createElement( + 'div', + { style: m.picker, className: 'alpha-picker ' + g }, + i.default.createElement( + a.Alpha, + r({}, m.alpha, { + rgb: e, + hsl: n, + pointer: h, + renderers: d, + onChange: l, + direction: c + }) + ) + ); + }); + (l.defaultProps = { + width: '316px', + height: '16px', + direction: 'horizontal', + pointer: s.default + }), + (e.default = (0, a.ColorWrap)(l)); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.flattenNames = void 0); + var r = s(n(341)), + i = s(n(83)), + o = s(n(109)), + a = s(n(28)); + function s(t) { + return t && t.__esModule ? t : { default: t }; + } + var u = (e.flattenNames = function t() { + var e = + arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [], + n = []; + return ( + (0, a.default)(e, function(e) { + Array.isArray(e) + ? t(e).map(function(t) { + return n.push(t); + }) + : (0, o.default)(e) + ? (0, i.default)(e, function(t, e) { + !0 === t && n.push(e), n.push(e + '-' + t); + }) + : (0, r.default)(e) && n.push(e); + }), + n + ); + }); + e.default = u; + }, + function(t, e, n) { + var r = n(30), + i = n(14), + o = n(25), + a = '[object String]'; + t.exports = function(t) { + return 'string' == typeof t || (!i(t) && o(t) && r(t) == a); + }; + }, + function(t, e, n) { + var r = n(343), + i = n(346), + o = n(58), + a = n(14), + s = n(356); + t.exports = function(t) { + return 'function' == typeof t + ? t + : null == t + ? o + : 'object' == typeof t + ? a(t) + ? i(t[0], t[1]) + : r(t) + : s(t); + }; + }, + function(t, e, n) { + var r = n(344), + i = n(345), + o = n(146); + t.exports = function(t) { + var e = i(t); + return 1 == e.length && e[0][2] + ? o(e[0][0], e[0][1]) + : function(n) { + return n === t || r(n, t, e); + }; + }; + }, + function(t, e, n) { + var r = n(52), + i = n(79), + o = 1, + a = 2; + t.exports = function(t, e, n, s) { + var u = n.length, + l = u, + c = !s; + if (null == t) return !l; + for (t = Object(t); u--; ) { + var f = n[u]; + if (c && f[2] ? f[1] !== t[f[0]] : !(f[0] in t)) return !1; + } + for (; ++u < l; ) { + var d = (f = n[u])[0], + h = t[d], + p = f[1]; + if (c && f[2]) { + if (void 0 === h && !(d in t)) return !1; + } else { + var g = new r(); + if (s) var m = s(h, p, d, t, e, g); + if (!(void 0 === m ? i(p, h, o | a, s, g) : m)) return !1; + } + } + return !0; + }; + }, + function(t, e, n) { + var r = n(145), + i = n(43); + t.exports = function(t) { + for (var e = i(t), n = e.length; n--; ) { + var o = e[n], + a = t[o]; + e[n] = [o, a, r(a)]; + } + return e; + }; + }, + function(t, e, n) { + var r = n(79), + i = n(347), + o = n(353), + a = n(84), + s = n(145), + u = n(146), + l = n(61), + c = 1, + f = 2; + t.exports = function(t, e) { + return a(t) && s(e) + ? u(l(t), e) + : function(n) { + var a = i(n, t); + return void 0 === a && a === e ? o(n, t) : r(e, a, c | f); + }; + }; + }, + function(t, e, n) { + var r = n(147); + t.exports = function(t, e, n) { + var i = null == t ? void 0 : r(t, e); + return void 0 === i ? n : i; + }; + }, + function(t, e, n) { + var r = n(349), + i = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, + o = /\\(\\)?/g, + a = r(function(t) { + var e = []; + return ( + 46 === t.charCodeAt(0) && e.push(''), + t.replace(i, function(t, n, r, i) { + e.push(r ? i.replace(o, '$1') : n || t); + }), + e + ); + }); + t.exports = a; + }, + function(t, e, n) { + var r = n(350), + i = 500; + t.exports = function(t) { + var e = r(t, function(t) { + return n.size === i && n.clear(), t; + }), + n = e.cache; + return e; + }; + }, + function(t, e, n) { + var r = n(74), + i = 'Expected a function'; + function o(t, e) { + if ('function' != typeof t || (null != e && 'function' != typeof e)) + throw new TypeError(i); + var n = function() { + var r = arguments, + i = e ? e.apply(this, r) : r[0], + o = n.cache; + if (o.has(i)) return o.get(i); + var a = t.apply(this, r); + return (n.cache = o.set(i, a) || o), a; + }; + return (n.cache = new (o.Cache || r)()), n; + } + (o.Cache = r), (t.exports = o); + }, + function(t, e, n) { + var r = n(352); + t.exports = function(t) { + return null == t ? '' : r(t); + }; + }, + function(t, e, n) { + var r = n(38), + i = n(144), + o = n(14), + a = n(60), + s = 1 / 0, + u = r ? r.prototype : void 0, + l = u ? u.toString : void 0; + t.exports = function t(e) { + if ('string' == typeof e) return e; + if (o(e)) return i(e, t) + ''; + if (a(e)) return l ? l.call(e) : ''; + var n = e + ''; + return '0' == n && 1 / e == -s ? '-0' : n; + }; + }, + function(t, e, n) { + var r = n(354), + i = n(355); + t.exports = function(t, e) { + return null != t && i(t, e, r); + }; + }, + function(t, e) { + t.exports = function(t, e) { + return null != t && e in Object(t); + }; + }, + function(t, e, n) { + var r = n(148), + i = n(50), + o = n(14), + a = n(78), + s = n(71), + u = n(61); + t.exports = function(t, e, n) { + for (var l = -1, c = (e = r(e, t)).length, f = !1; ++l < c; ) { + var d = u(e[l]); + if (!(f = null != t && n(t, d))) break; + t = t[d]; + } + return f || ++l != c + ? f + : !!(c = null == t ? 0 : t.length) && + s(c) && + a(d, c) && + (o(t) || i(t)); + }; + }, + function(t, e, n) { + var r = n(357), + i = n(358), + o = n(84), + a = n(61); + t.exports = function(t) { + return o(t) ? r(a(t)) : i(t); + }; + }, + function(t, e) { + t.exports = function(t) { + return function(e) { + return null == e ? void 0 : e[t]; + }; + }; + }, + function(t, e, n) { + var r = n(147); + t.exports = function(t) { + return function(e) { + return r(e, t); + }; + }; + }, + function(t, e, n) { + var r = n(149), + i = n(31); + t.exports = function(t, e) { + var n = -1, + o = i(t) ? Array(t.length) : []; + return ( + r(t, function(t, r, i) { + o[++n] = e(t, r, i); + }), + o + ); + }; + }, + function(t, e, n) { + var r = n(31); + t.exports = function(t, e) { + return function(n, i) { + if (null == n) return n; + if (!r(n)) return t(n, i); + for ( + var o = n.length, a = e ? o : -1, s = Object(n); + (e ? a-- : ++a < o) && !1 !== i(s[a], a, s); + + ); + return n; + }; + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.mergeClasses = void 0); + var r = a(n(83)), + i = a(n(362)), + o = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); + } + return t; + }; + function a(t) { + return t && t.__esModule ? t : { default: t }; + } + var s = (e.mergeClasses = function(t) { + var e = + arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [], + n = (t.default && (0, i.default)(t.default)) || {}; + return ( + e.map(function(e) { + var i = t[e]; + return ( + i && + (0, r.default)(i, function(t, e) { + n[e] || (n[e] = {}), (n[e] = o({}, n[e], i[e])); + }), + e + ); + }), + n + ); + }); + e.default = s; + }, + function(t, e, n) { + var r = n(363), + i = 1, + o = 4; + t.exports = function(t) { + return r(t, i | o); + }; + }, + function(t, e, n) { + var r = n(52), + i = n(150), + o = n(111), + a = n(364), + s = n(365), + u = n(104), + l = n(107), + c = n(366), + f = n(367), + d = n(120), + h = n(368), + p = n(37), + g = n(369), + m = n(370), + v = n(108), + y = n(14), + b = n(39), + _ = n(374), + x = n(17), + w = n(376), + S = n(43), + E = 1, + k = 2, + A = 4, + T = '[object Arguments]', + C = '[object Function]', + O = '[object GeneratorFunction]', + P = '[object Object]', + M = {}; + (M[T] = M['[object Array]'] = M['[object ArrayBuffer]'] = M[ + '[object DataView]' + ] = M['[object Boolean]'] = M['[object Date]'] = M[ + '[object Float32Array]' + ] = M['[object Float64Array]'] = M['[object Int8Array]'] = M[ + '[object Int16Array]' + ] = M['[object Int32Array]'] = M['[object Map]'] = M[ + '[object Number]' + ] = M[P] = M['[object RegExp]'] = M['[object Set]'] = M[ + '[object String]' + ] = M['[object Symbol]'] = M['[object Uint8Array]'] = M[ + '[object Uint8ClampedArray]' + ] = M['[object Uint16Array]'] = M['[object Uint32Array]'] = !0), + (M['[object Error]'] = M[C] = M['[object WeakMap]'] = !1), + (t.exports = function t(e, n, L, j, D, R) { + var z, + N = n & E, + I = n & k, + F = n & A; + if ((L && (z = D ? L(e, j, D, R) : L(e)), void 0 !== z)) return z; + if (!x(e)) return e; + var V = y(e); + if (V) { + if (((z = g(e)), !N)) return l(e, z); + } else { + var B = p(e), + G = B == C || B == O; + if (b(e)) return u(e, N); + if (B == P || B == T || (G && !D)) { + if (((z = I || G ? {} : v(e)), !N)) + return I ? f(e, s(z, e)) : c(e, a(z, e)); + } else { + if (!M[B]) return D ? e : {}; + z = m(e, B, N); + } + } + R || (R = new r()); + var H = R.get(e); + if (H) return H; + R.set(e, z), + w(e) + ? e.forEach(function(r) { + z.add(t(r, n, L, r, e, R)); + }) + : _(e) && + e.forEach(function(r, i) { + z.set(i, t(r, n, L, i, e, R)); + }); + var U = F ? (I ? h : d) : I ? keysIn : S, + q = V ? void 0 : U(e); + return ( + i(q || e, function(r, i) { + q && (r = e[(i = r)]), o(z, i, t(r, n, L, i, e, R)); + }), + z + ); + }); + }, + function(t, e, n) { + var r = n(42), + i = n(43); + t.exports = function(t, e) { + return t && r(e, i(e), t); + }; + }, + function(t, e, n) { + var r = n(42), + i = n(57); + t.exports = function(t, e) { + return t && r(e, i(e), t); + }; + }, + function(t, e, n) { + var r = n(42), + i = n(80); + t.exports = function(t, e) { + return r(t, i(t), e); + }; + }, + function(t, e, n) { + var r = n(42), + i = n(151); + t.exports = function(t, e) { + return r(t, i(t), e); + }; + }, + function(t, e, n) { + var r = n(121), + i = n(151), + o = n(57); + t.exports = function(t) { + return r(t, o, i); + }; + }, + function(t, e) { + var n = Object.prototype.hasOwnProperty; + t.exports = function(t) { + var e = t.length, + r = new t.constructor(e); + return ( + e && + 'string' == typeof t[0] && + n.call(t, 'index') && + ((r.index = t.index), (r.input = t.input)), + r + ); + }; + }, + function(t, e, n) { + var r = n(76), + i = n(371), + o = n(372), + a = n(373), + s = n(105), + u = '[object Boolean]', + l = '[object Date]', + c = '[object Map]', + f = '[object Number]', + d = '[object RegExp]', + h = '[object Set]', + p = '[object String]', + g = '[object Symbol]', + m = '[object ArrayBuffer]', + v = '[object DataView]', + y = '[object Float32Array]', + b = '[object Float64Array]', + _ = '[object Int8Array]', + x = '[object Int16Array]', + w = '[object Int32Array]', + S = '[object Uint8Array]', + E = '[object Uint8ClampedArray]', + k = '[object Uint16Array]', + A = '[object Uint32Array]'; + t.exports = function(t, e, n) { + var T = t.constructor; + switch (e) { + case m: + return r(t); + case u: + case l: + return new T(+t); + case v: + return i(t, n); + case y: + case b: + case _: + case x: + case w: + case S: + case E: + case k: + case A: + return s(t, n); + case c: + return new T(); + case f: + case p: + return new T(t); + case d: + return o(t); + case h: + return new T(); + case g: + return a(t); + } + }; + }, + function(t, e, n) { + var r = n(76); + t.exports = function(t, e) { + var n = e ? r(t.buffer) : t.buffer; + return new t.constructor(n, t.byteOffset, t.byteLength); + }; + }, + function(t, e) { + var n = /\w*$/; + t.exports = function(t) { + var e = new t.constructor(t.source, n.exec(t)); + return (e.lastIndex = t.lastIndex), e; + }; + }, + function(t, e, n) { + var r = n(38), + i = r ? r.prototype : void 0, + o = i ? i.valueOf : void 0; + t.exports = function(t) { + return o ? Object(o.call(t)) : {}; + }; + }, + function(t, e, n) { + var r = n(375), + i = n(72), + o = n(73), + a = o && o.isMap, + s = a ? i(a) : r; + t.exports = s; + }, + function(t, e, n) { + var r = n(37), + i = n(25), + o = '[object Map]'; + t.exports = function(t) { + return i(t) && r(t) == o; + }; + }, + function(t, e, n) { + var r = n(377), + i = n(72), + o = n(73), + a = o && o.isSet, + s = a ? i(a) : r; + t.exports = s; + }, + function(t, e, n) { + var r = n(37), + i = n(25), + o = '[object Set]'; + t.exports = function(t) { + return i(t) && r(t) == o; + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.autoprefix = void 0); + var r, + i = n(83), + o = (r = i) && r.__esModule ? r : { default: r }, + a = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); + } + return t; + }; + var s = { + borderRadius: function(t) { + return { + msBorderRadius: t, + MozBorderRadius: t, + OBorderRadius: t, + WebkitBorderRadius: t, + borderRadius: t + }; + }, + boxShadow: function(t) { + return { + msBoxShadow: t, + MozBoxShadow: t, + OBoxShadow: t, + WebkitBoxShadow: t, + boxShadow: t + }; + }, + userSelect: function(t) { + return { + WebkitTouchCallout: t, + KhtmlUserSelect: t, + MozUserSelect: t, + msUserSelect: t, + WebkitUserSelect: t, + userSelect: t + }; + }, + flex: function(t) { + return { + WebkitBoxFlex: t, + MozBoxFlex: t, + WebkitFlex: t, + msFlex: t, + flex: t + }; + }, + flexBasis: function(t) { + return { WebkitFlexBasis: t, flexBasis: t }; + }, + justifyContent: function(t) { + return { WebkitJustifyContent: t, justifyContent: t }; + }, + transition: function(t) { + return { + msTransition: t, + MozTransition: t, + OTransition: t, + WebkitTransition: t, + transition: t + }; + }, + transform: function(t) { + return { + msTransform: t, + MozTransform: t, + OTransform: t, + WebkitTransform: t, + transform: t + }; + }, + absolute: function(t) { + var e = t && t.split(' '); + return { + position: 'absolute', + top: e && e[0], + right: e && e[1], + bottom: e && e[2], + left: e && e[3] + }; + }, + extend: function(t, e) { + var n = e[t]; + return n || { extend: t }; + } + }, + u = (e.autoprefix = function(t) { + var e = {}; + return ( + (0, o.default)(t, function(t, n) { + var r = {}; + (0, o.default)(t, function(t, e) { + var n = s[e]; + n ? (r = a({}, r, n(t))) : (r[e] = t); + }), + (e[n] = r); + }), + e + ); + }); + e.default = u; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), (e.hover = void 0); + var r, + i = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); + } + return t; + }, + o = n(0), + a = (r = o) && r.__esModule ? r : { default: r }; + function s(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + } + function u(t, e) { + if (!t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !e || ('object' != typeof e && 'function' != typeof e) ? t : e; + } + function l(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof e + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { + value: t, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + e && + (Object.setPrototypeOf + ? Object.setPrototypeOf(t, e) + : (t.__proto__ = e)); + } + var c = (e.hover = function(t) { + var e = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : 'span'; + return (function(n) { + function r() { + var n, o, l; + s(this, r); + for (var c = arguments.length, f = Array(c), d = 0; d < c; d++) + f[d] = arguments[d]; + return ( + (o = l = u( + this, + (n = r.__proto__ || Object.getPrototypeOf(r)).call.apply( + n, + [this].concat(f) + ) + )), + (l.state = { hover: !1 }), + (l.handleMouseOver = function() { + return l.setState({ hover: !0 }); + }), + (l.handleMouseOut = function() { + return l.setState({ hover: !1 }); + }), + (l.render = function() { + return a.default.createElement( + e, + { + onMouseOver: l.handleMouseOver, + onMouseOut: l.handleMouseOut + }, + a.default.createElement(t, i({}, l.props, l.state)) + ); + }), + u(l, o) + ); + } + return l(r, n), r; + })(a.default.Component); + }); + e.default = c; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.active = void 0); + var r, + i = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); + } + return t; + }, + o = n(0), + a = (r = o) && r.__esModule ? r : { default: r }; + function s(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + } + function u(t, e) { + if (!t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !e || ('object' != typeof e && 'function' != typeof e) ? t : e; + } + function l(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof e + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { + value: t, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + e && + (Object.setPrototypeOf + ? Object.setPrototypeOf(t, e) + : (t.__proto__ = e)); + } + var c = (e.active = function(t) { + var e = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : 'span'; + return (function(n) { + function r() { + var n, o, l; + s(this, r); + for (var c = arguments.length, f = Array(c), d = 0; d < c; d++) + f[d] = arguments[d]; + return ( + (o = l = u( + this, + (n = r.__proto__ || Object.getPrototypeOf(r)).call.apply( + n, + [this].concat(f) + ) + )), + (l.state = { active: !1 }), + (l.handleMouseDown = function() { + return l.setState({ active: !0 }); + }), + (l.handleMouseUp = function() { + return l.setState({ active: !1 }); + }), + (l.render = function() { + return a.default.createElement( + e, + { + onMouseDown: l.handleMouseDown, + onMouseUp: l.handleMouseUp + }, + a.default.createElement(t, i({}, l.props, l.state)) + ); + }), + u(l, o) + ); + } + return l(r, n), r; + })(a.default.Component); + }); + e.default = c; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + e.default = function(t, e) { + var n = {}, + r = function(t) { + var e = + !(arguments.length > 1 && void 0 !== arguments[1]) || + arguments[1]; + n[t] = e; + }; + return ( + 0 === t && r('first-child'), + t === e - 1 && r('last-child'), + (0 === t || t % 2 == 0) && r('even'), + 1 === Math.abs(t % 2) && r('odd'), + r('nth-child', t), + n + ); + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), (e.Alpha = void 0); + var r = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); + } + return t; + }, + i = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + o = n(0), + a = c(o), + s = c(n(3)), + u = (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]); + return (e.default = t), e; + })(n(383)), + l = c(n(85)); + function c(t) { + return t && t.__esModule ? t : { default: t }; + } + function f(t, e) { + if (!t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !e || ('object' != typeof e && 'function' != typeof e) ? t : e; + } + var d = (e.Alpha = (function(t) { + function e() { + var t, n, r; + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + })(this, e); + for (var i = arguments.length, o = Array(i), a = 0; a < i; a++) + o[a] = arguments[a]; + return ( + (n = r = f( + this, + (t = e.__proto__ || Object.getPrototypeOf(e)).call.apply( + t, + [this].concat(o) + ) + )), + (r.handleChange = function(t) { + var e = u.calculateChange( + t, + r.props.hsl, + r.props.direction, + r.props.a, + r.container + ); + e && + 'function' == typeof r.props.onChange && + r.props.onChange(e, t); + }), + (r.handleMouseDown = function(t) { + r.handleChange(t), + window.addEventListener('mousemove', r.handleChange), + window.addEventListener('mouseup', r.handleMouseUp); + }), + (r.handleMouseUp = function() { + r.unbindEventListeners(); + }), + (r.unbindEventListeners = function() { + window.removeEventListener('mousemove', r.handleChange), + window.removeEventListener('mouseup', r.handleMouseUp); + }), + f(r, n) + ); + } + return ( + (function(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof e + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { + value: t, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + e && + (Object.setPrototypeOf + ? Object.setPrototypeOf(t, e) + : (t.__proto__ = e)); + })(e, t), + i(e, [ + { + key: 'componentWillUnmount', + value: function() { + this.unbindEventListeners(); + } + }, + { + key: 'render', + value: function() { + var t = this, + e = this.props.rgb, + n = (0, s.default)( + { + default: { + alpha: { + absolute: '0px 0px 0px 0px', + borderRadius: this.props.radius + }, + checkboard: { + absolute: '0px 0px 0px 0px', + overflow: 'hidden', + borderRadius: this.props.radius + }, + gradient: { + absolute: '0px 0px 0px 0px', + background: + 'linear-gradient(to right, rgba(' + + e.r + + ',' + + e.g + + ',' + + e.b + + ', 0) 0%,\n rgba(' + + e.r + + ',' + + e.g + + ',' + + e.b + + ', 1) 100%)', + boxShadow: this.props.shadow, + borderRadius: this.props.radius + }, + container: { + position: 'relative', + height: '100%', + margin: '0 3px' + }, + pointer: { + position: 'absolute', + left: 100 * e.a + '%' + }, + slider: { + width: '4px', + borderRadius: '1px', + height: '8px', + boxShadow: '0 0 2px rgba(0, 0, 0, .6)', + background: '#fff', + marginTop: '1px', + transform: 'translateX(-2px)' + } + }, + vertical: { + gradient: { + background: + 'linear-gradient(to bottom, rgba(' + + e.r + + ',' + + e.g + + ',' + + e.b + + ', 0) 0%,\n rgba(' + + e.r + + ',' + + e.g + + ',' + + e.b + + ', 1) 100%)' + }, + pointer: { left: 0, top: 100 * e.a + '%' } + }, + overwrite: r({}, this.props.style) + }, + { + vertical: 'vertical' === this.props.direction, + overwrite: !0 + } + ); + return a.default.createElement( + 'div', + { style: n.alpha }, + a.default.createElement( + 'div', + { style: n.checkboard }, + a.default.createElement(l.default, { + renderers: this.props.renderers + }) + ), + a.default.createElement('div', { style: n.gradient }), + a.default.createElement( + 'div', + { + style: n.container, + ref: function(e) { + return (t.container = e); + }, + onMouseDown: this.handleMouseDown, + onTouchMove: this.handleChange, + onTouchStart: this.handleChange + }, + a.default.createElement( + 'div', + { style: n.pointer }, + this.props.pointer + ? a.default.createElement( + this.props.pointer, + this.props + ) + : a.default.createElement('div', { style: n.slider }) + ) + ) + ); + } + } + ]), + e + ); + })(o.PureComponent || o.Component)); + e.default = d; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + e.calculateChange = function(t, e, n, r, i) { + var o = i.clientWidth, + a = i.clientHeight, + s = 'number' == typeof t.pageX ? t.pageX : t.touches[0].pageX, + u = 'number' == typeof t.pageY ? t.pageY : t.touches[0].pageY, + l = s - (i.getBoundingClientRect().left + window.pageXOffset), + c = u - (i.getBoundingClientRect().top + window.pageYOffset); + if ('vertical' === n) { + var f = void 0; + if ( + ((f = c < 0 ? 0 : c > a ? 1 : Math.round((100 * c) / a) / 100), + e.a !== f) + ) + return { h: e.h, s: e.s, l: e.l, a: f, source: 'rgb' }; + } else { + var d = void 0; + if ( + r !== (d = l < 0 ? 0 : l > o ? 1 : Math.round((100 * l) / o) / 100) + ) + return { h: e.h, s: e.s, l: e.l, a: d, source: 'rgb' }; + } + return null; + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r = {}, + i = (e.render = function(t, e, n, r) { + if ('undefined' == typeof document && !r) return null; + var i = r ? new r() : document.createElement('canvas'); + (i.width = 2 * n), (i.height = 2 * n); + var o = i.getContext('2d'); + return o + ? ((o.fillStyle = t), + o.fillRect(0, 0, i.width, i.height), + (o.fillStyle = e), + o.fillRect(0, 0, n, n), + o.translate(n, n), + o.fillRect(0, 0, n, n), + i.toDataURL()) + : null; + }); + e.get = function(t, e, n, o) { + var a = t + '-' + e + '-' + n + (o ? '-server' : ''); + if (r[a]) return r[a]; + var s = i(t, e, n, o); + return (r[a] = s), s; + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.EditableInput = void 0); + var r = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + i = n(0), + o = s(i), + a = s(n(3)); + function s(t) { + return t && t.__esModule ? t : { default: t }; + } + var u = 38, + l = [u, 40], + c = function(t) { + return l.indexOf(t) > -1; + }, + f = function(t) { + return Number(String(t).replace(/%/g, '')); + }, + d = (e.EditableInput = (function(t) { + function e(t) { + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + })(this, e); + var n = (function(t, e) { + if (!t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !e || ('object' != typeof e && 'function' != typeof e) + ? t + : e; + })(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this)); + return ( + (n.handleBlur = function() { + n.state.blurValue && + n.setState({ value: n.state.blurValue, blurValue: null }); + }), + (n.handleChange = function(t) { + n.setUpdatedValue(t.target.value, t); + }), + (n.handleKeyDown = function(t) { + var e = f(t.target.value); + if (!isNaN(e) && c(t.keyCode)) { + var r = n.getArrowOffset(), + i = t.keyCode === u ? e + r : e - r; + n.setUpdatedValue(i, t); + } + }), + (n.handleDrag = function(t) { + if (n.props.dragLabel) { + var e = Math.round(n.props.value + t.movementX); + e >= 0 && + e <= n.props.dragMax && + n.props.onChange && + n.props.onChange(n.getValueObjectWithLabel(e), t); + } + }), + (n.handleMouseDown = function(t) { + n.props.dragLabel && + (t.preventDefault(), + n.handleDrag(t), + window.addEventListener('mousemove', n.handleDrag), + window.addEventListener('mouseup', n.handleMouseUp)); + }), + (n.handleMouseUp = function() { + n.unbindEventListeners(); + }), + (n.unbindEventListeners = function() { + window.removeEventListener('mousemove', n.handleDrag), + window.removeEventListener('mouseup', n.handleMouseUp); + }), + (n.state = { + value: String(t.value).toUpperCase(), + blurValue: String(t.value).toUpperCase() + }), + n + ); + } + return ( + (function(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof e + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { + value: t, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + e && + (Object.setPrototypeOf + ? Object.setPrototypeOf(t, e) + : (t.__proto__ = e)); + })(e, t), + r(e, [ + { + key: 'componentDidUpdate', + value: function(t, e) { + this.props.value === this.state.value || + (t.value === this.props.value && + e.value === this.state.value) || + (this.input === document.activeElement + ? this.setState({ + blurValue: String(this.props.value).toUpperCase() + }) + : this.setState({ + value: String(this.props.value).toUpperCase(), + blurValue: + !this.state.blurValue && + String(this.props.value).toUpperCase() + })); + } + }, + { + key: 'componentWillUnmount', + value: function() { + this.unbindEventListeners(); + } + }, + { + key: 'getValueObjectWithLabel', + value: function(t) { + return (function(t, e, n) { + return ( + e in t + ? Object.defineProperty(t, e, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (t[e] = n), + t + ); + })({}, this.props.label, t); + } + }, + { + key: 'getArrowOffset', + value: function() { + return this.props.arrowOffset || 1; + } + }, + { + key: 'setUpdatedValue', + value: function(t, e) { + var n = this.props.label + ? this.getValueObjectWithLabel(t) + : t; + this.props.onChange && this.props.onChange(n, e); + var r, + i = (function(t) { + return String(t).indexOf('%') > -1; + })(e.target.value); + this.setState({ value: i ? ((r = t), r + '%') : t }); + } + }, + { + key: 'render', + value: function() { + var t = this, + e = (0, a.default)( + { + default: { wrap: { position: 'relative' } }, + 'user-override': { + wrap: + this.props.style && this.props.style.wrap + ? this.props.style.wrap + : {}, + input: + this.props.style && this.props.style.input + ? this.props.style.input + : {}, + label: + this.props.style && this.props.style.label + ? this.props.style.label + : {} + }, + 'dragLabel-true': { label: { cursor: 'ew-resize' } } + }, + { 'user-override': !0 }, + this.props + ); + return o.default.createElement( + 'div', + { style: e.wrap }, + o.default.createElement('input', { + style: e.input, + ref: function(e) { + return (t.input = e); + }, + value: this.state.value, + onKeyDown: this.handleKeyDown, + onChange: this.handleChange, + onBlur: this.handleBlur, + placeholder: this.props.placeholder, + spellCheck: 'false' + }), + this.props.label && !this.props.hideLabel + ? o.default.createElement( + 'span', + { style: e.label, onMouseDown: this.handleMouseDown }, + this.props.label + ) + : null + ); + } + } + ]), + e + ); + })(i.PureComponent || i.Component)); + e.default = d; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), (e.Hue = void 0); + var r = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + i = n(0), + o = u(i), + a = u(n(3)), + s = (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]); + return (e.default = t), e; + })(n(387)); + function u(t) { + return t && t.__esModule ? t : { default: t }; + } + function l(t, e) { + if (!t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !e || ('object' != typeof e && 'function' != typeof e) ? t : e; + } + var c = (e.Hue = (function(t) { + function e() { + var t, n, r; + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + })(this, e); + for (var i = arguments.length, o = Array(i), a = 0; a < i; a++) + o[a] = arguments[a]; + return ( + (n = r = l( + this, + (t = e.__proto__ || Object.getPrototypeOf(e)).call.apply( + t, + [this].concat(o) + ) + )), + (r.handleChange = function(t) { + var e = s.calculateChange( + t, + r.props.direction, + r.props.hsl, + r.container + ); + e && + 'function' == typeof r.props.onChange && + r.props.onChange(e, t); + }), + (r.handleMouseDown = function(t) { + r.handleChange(t), + window.addEventListener('mousemove', r.handleChange), + window.addEventListener('mouseup', r.handleMouseUp); + }), + (r.handleMouseUp = function() { + r.unbindEventListeners(); + }), + l(r, n) + ); + } + return ( + (function(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof e + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { + value: t, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + e && + (Object.setPrototypeOf + ? Object.setPrototypeOf(t, e) + : (t.__proto__ = e)); + })(e, t), + r(e, [ + { + key: 'componentWillUnmount', + value: function() { + this.unbindEventListeners(); + } + }, + { + key: 'unbindEventListeners', + value: function() { + window.removeEventListener('mousemove', this.handleChange), + window.removeEventListener('mouseup', this.handleMouseUp); + } + }, + { + key: 'render', + value: function() { + var t = this, + e = this.props.direction, + n = void 0 === e ? 'horizontal' : e, + r = (0, a.default)( + { + default: { + hue: { + absolute: '0px 0px 0px 0px', + borderRadius: this.props.radius, + boxShadow: this.props.shadow + }, + container: { + padding: '0 2px', + position: 'relative', + height: '100%', + borderRadius: this.props.radius + }, + pointer: { + position: 'absolute', + left: (100 * this.props.hsl.h) / 360 + '%' + }, + slider: { + marginTop: '1px', + width: '4px', + borderRadius: '1px', + height: '8px', + boxShadow: '0 0 2px rgba(0, 0, 0, .6)', + background: '#fff', + transform: 'translateX(-2px)' + } + }, + vertical: { + pointer: { + left: '0px', + top: (-100 * this.props.hsl.h) / 360 + 100 + '%' + } + } + }, + { vertical: 'vertical' === n } + ); + return o.default.createElement( + 'div', + { style: r.hue }, + o.default.createElement( + 'div', + { + className: 'hue-' + n, + style: r.container, + ref: function(e) { + return (t.container = e); + }, + onMouseDown: this.handleMouseDown, + onTouchMove: this.handleChange, + onTouchStart: this.handleChange + }, + o.default.createElement( + 'style', + null, + '\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n ' + ), + o.default.createElement( + 'div', + { style: r.pointer }, + this.props.pointer + ? o.default.createElement( + this.props.pointer, + this.props + ) + : o.default.createElement('div', { style: r.slider }) + ) + ) + ); + } + } + ]), + e + ); + })(i.PureComponent || i.Component)); + e.default = c; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + e.calculateChange = function(t, e, n, r) { + var i = r.clientWidth, + o = r.clientHeight, + a = 'number' == typeof t.pageX ? t.pageX : t.touches[0].pageX, + s = 'number' == typeof t.pageY ? t.pageY : t.touches[0].pageY, + u = a - (r.getBoundingClientRect().left + window.pageXOffset), + l = s - (r.getBoundingClientRect().top + window.pageYOffset); + if ('vertical' === e) { + var c = void 0; + if (l < 0) c = 359; + else if (l > o) c = 0; + else { + c = (360 * ((-100 * l) / o + 100)) / 100; + } + if (n.h !== c) return { h: c, s: n.s, l: n.l, a: n.a, source: 'rgb' }; + } else { + var f = void 0; + if (u < 0) f = 0; + else if (u > i) f = 359; + else { + f = (360 * ((100 * u) / i)) / 100; + } + if (n.h !== f) return { h: f, s: n.s, l: n.l, a: n.a, source: 'rgb' }; + } + return null; + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.Raised = void 0); + var r = s(n(0)), + i = s(n(1)), + o = s(n(3)), + a = s(n(10)); + function s(t) { + return t && t.__esModule ? t : { default: t }; + } + var u = (e.Raised = function(t) { + var e = t.zDepth, + n = t.radius, + i = t.background, + s = t.children, + u = t.styles, + l = void 0 === u ? {} : u, + c = (0, o.default)( + (0, a.default)( + { + default: { + wrap: { position: 'relative', display: 'inline-block' }, + content: { position: 'relative' }, + bg: { + absolute: '0px 0px 0px 0px', + boxShadow: '0 ' + e + 'px ' + 4 * e + 'px rgba(0,0,0,.24)', + borderRadius: n, + background: i + } + }, + 'zDepth-0': { bg: { boxShadow: 'none' } }, + 'zDepth-1': { + bg: { + boxShadow: + '0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)' + } + }, + 'zDepth-2': { + bg: { + boxShadow: + '0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)' + } + }, + 'zDepth-3': { + bg: { + boxShadow: + '0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)' + } + }, + 'zDepth-4': { + bg: { + boxShadow: + '0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)' + } + }, + 'zDepth-5': { + bg: { + boxShadow: + '0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)' + } + }, + square: { bg: { borderRadius: '0' } }, + circle: { bg: { borderRadius: '50%' } } + }, + l + ), + { 'zDepth-1': 1 === e } + ); + return r.default.createElement( + 'div', + { style: c.wrap }, + r.default.createElement('div', { style: c.bg }), + r.default.createElement('div', { style: c.content }, s) + ); + }); + (u.propTypes = { + background: i.default.string, + zDepth: i.default.oneOf([0, 1, 2, 3, 4, 5]), + radius: i.default.number, + styles: i.default.object + }), + (u.defaultProps = { + background: '#fff', + zDepth: 1, + radius: 2, + styles: {} + }), + (e.default = u); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.Saturation = void 0); + var r = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + i = n(0), + o = l(i), + a = l(n(3)), + s = l(n(390)), + u = (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]); + return (e.default = t), e; + })(n(393)); + function l(t) { + return t && t.__esModule ? t : { default: t }; + } + var c = (e.Saturation = (function(t) { + function e(t) { + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + })(this, e); + var n = (function(t, e) { + if (!t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !e || ('object' != typeof e && 'function' != typeof e) + ? t + : e; + })(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); + return ( + (n.handleChange = function(t) { + 'function' == typeof n.props.onChange && + n.throttle( + n.props.onChange, + u.calculateChange(t, n.props.hsl, n.container), + t + ); + }), + (n.handleMouseDown = function(t) { + n.handleChange(t), + window.addEventListener('mousemove', n.handleChange), + window.addEventListener('mouseup', n.handleMouseUp); + }), + (n.handleMouseUp = function() { + n.unbindEventListeners(); + }), + (n.throttle = (0, s.default)(function(t, e, n) { + t(e, n); + }, 50)), + n + ); + } + return ( + (function(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof e + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { + value: t, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + e && + (Object.setPrototypeOf + ? Object.setPrototypeOf(t, e) + : (t.__proto__ = e)); + })(e, t), + r(e, [ + { + key: 'componentWillUnmount', + value: function() { + this.throttle.cancel(), this.unbindEventListeners(); + } + }, + { + key: 'unbindEventListeners', + value: function() { + window.removeEventListener('mousemove', this.handleChange), + window.removeEventListener('mouseup', this.handleMouseUp); + } + }, + { + key: 'render', + value: function() { + var t = this, + e = this.props.style || {}, + n = e.color, + r = e.white, + i = e.black, + s = e.pointer, + u = e.circle, + l = (0, a.default)( + { + default: { + color: { + absolute: '0px 0px 0px 0px', + background: 'hsl(' + this.props.hsl.h + ',100%, 50%)', + borderRadius: this.props.radius + }, + white: { + absolute: '0px 0px 0px 0px', + borderRadius: this.props.radius + }, + black: { + absolute: '0px 0px 0px 0px', + boxShadow: this.props.shadow, + borderRadius: this.props.radius + }, + pointer: { + position: 'absolute', + top: -100 * this.props.hsv.v + 100 + '%', + left: 100 * this.props.hsv.s + '%', + cursor: 'default' + }, + circle: { + width: '4px', + height: '4px', + boxShadow: + '0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)', + borderRadius: '50%', + cursor: 'hand', + transform: 'translate(-2px, -2px)' + } + }, + custom: { + color: n, + white: r, + black: i, + pointer: s, + circle: u + } + }, + { custom: !!this.props.style } + ); + return o.default.createElement( + 'div', + { + style: l.color, + ref: function(e) { + return (t.container = e); + }, + onMouseDown: this.handleMouseDown, + onTouchMove: this.handleChange, + onTouchStart: this.handleChange + }, + o.default.createElement( + 'style', + null, + '\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n ' + ), + o.default.createElement( + 'div', + { style: l.white, className: 'saturation-white' }, + o.default.createElement('div', { + style: l.black, + className: 'saturation-black' + }), + o.default.createElement( + 'div', + { style: l.pointer }, + this.props.pointer + ? o.default.createElement( + this.props.pointer, + this.props + ) + : o.default.createElement('div', { style: l.circle }) + ) + ) + ); + } + } + ]), + e + ); + })(i.PureComponent || i.Component)); + e.default = c; + }, + function(t, e, n) { + var r = n(152), + i = n(17), + o = 'Expected a function'; + t.exports = function(t, e, n) { + var a = !0, + s = !0; + if ('function' != typeof t) throw new TypeError(o); + return ( + i(n) && + ((a = 'leading' in n ? !!n.leading : a), + (s = 'trailing' in n ? !!n.trailing : s)), + r(t, e, { leading: a, maxWait: e, trailing: s }) + ); + }; + }, + function(t, e, n) { + var r = n(22); + t.exports = function() { + return r.Date.now(); + }; + }, + function(t, e, n) { + var r = n(17), + i = n(60), + o = NaN, + a = /^\s+|\s+$/g, + s = /^[-+]0x[0-9a-f]+$/i, + u = /^0b[01]+$/i, + l = /^0o[0-7]+$/i, + c = parseInt; + t.exports = function(t) { + if ('number' == typeof t) return t; + if (i(t)) return o; + if (r(t)) { + var e = 'function' == typeof t.valueOf ? t.valueOf() : t; + t = r(e) ? e + '' : e; + } + if ('string' != typeof t) return 0 === t ? t : +t; + t = t.replace(a, ''); + var n = u.test(t); + return n || l.test(t) ? c(t.slice(2), n ? 2 : 8) : s.test(t) ? o : +t; + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + e.calculateChange = function(t, e, n) { + var r = n.getBoundingClientRect(), + i = r.width, + o = r.height, + a = 'number' == typeof t.pageX ? t.pageX : t.touches[0].pageX, + s = 'number' == typeof t.pageY ? t.pageY : t.touches[0].pageY, + u = a - (n.getBoundingClientRect().left + window.pageXOffset), + l = s - (n.getBoundingClientRect().top + window.pageYOffset); + u < 0 ? (u = 0) : u > i && (u = i), l < 0 ? (l = 0) : l > o && (l = o); + var c = u / i, + f = 1 - l / o; + return { h: e.h, s: c, v: f, a: e.a, source: 'rgb' }; + }; + }, + function(t, e, n) { + t.exports = n(395); + }, + function(t, e, n) { + var r = n(150), + i = n(149), + o = n(143), + a = n(14); + t.exports = function(t, e) { + return (a(t) ? r : i)(t, o(e)); + }; + }, + function(t, e, n) { + var r; + !(function(i) { + var o = /^\s+/, + a = /\s+$/, + s = 0, + u = i.round, + l = i.min, + c = i.max, + f = i.random; + function d(t, e) { + if (((e = e || {}), (t = t || '') instanceof d)) return t; + if (!(this instanceof d)) return new d(t, e); + var n = (function(t) { + var e = { r: 0, g: 0, b: 0 }, + n = 1, + r = null, + s = null, + u = null, + f = !1, + d = !1; + 'string' == typeof t && + (t = (function(t) { + t = t + .replace(o, '') + .replace(a, '') + .toLowerCase(); + var e, + n = !1; + if (P[t]) (t = P[t]), (n = !0); + else if ('transparent' == t) + return { r: 0, g: 0, b: 0, a: 0, format: 'name' }; + if ((e = H.rgb.exec(t))) return { r: e[1], g: e[2], b: e[3] }; + if ((e = H.rgba.exec(t))) + return { r: e[1], g: e[2], b: e[3], a: e[4] }; + if ((e = H.hsl.exec(t))) return { h: e[1], s: e[2], l: e[3] }; + if ((e = H.hsla.exec(t))) + return { h: e[1], s: e[2], l: e[3], a: e[4] }; + if ((e = H.hsv.exec(t))) return { h: e[1], s: e[2], v: e[3] }; + if ((e = H.hsva.exec(t))) + return { h: e[1], s: e[2], v: e[3], a: e[4] }; + if ((e = H.hex8.exec(t))) + return { + r: R(e[1]), + g: R(e[2]), + b: R(e[3]), + a: F(e[4]), + format: n ? 'name' : 'hex8' + }; + if ((e = H.hex6.exec(t))) + return { + r: R(e[1]), + g: R(e[2]), + b: R(e[3]), + format: n ? 'name' : 'hex' + }; + if ((e = H.hex4.exec(t))) + return { + r: R(e[1] + '' + e[1]), + g: R(e[2] + '' + e[2]), + b: R(e[3] + '' + e[3]), + a: F(e[4] + '' + e[4]), + format: n ? 'name' : 'hex8' + }; + if ((e = H.hex3.exec(t))) + return { + r: R(e[1] + '' + e[1]), + g: R(e[2] + '' + e[2]), + b: R(e[3] + '' + e[3]), + format: n ? 'name' : 'hex' + }; + return !1; + })(t)); + 'object' == typeof t && + (U(t.r) && U(t.g) && U(t.b) + ? ((h = t.r), + (p = t.g), + (g = t.b), + (e = { + r: 255 * j(h, 255), + g: 255 * j(p, 255), + b: 255 * j(g, 255) + }), + (f = !0), + (d = '%' === String(t.r).substr(-1) ? 'prgb' : 'rgb')) + : U(t.h) && U(t.s) && U(t.v) + ? ((r = N(t.s)), + (s = N(t.v)), + (e = (function(t, e, n) { + (t = 6 * j(t, 360)), (e = j(e, 100)), (n = j(n, 100)); + var r = i.floor(t), + o = t - r, + a = n * (1 - e), + s = n * (1 - o * e), + u = n * (1 - (1 - o) * e), + l = r % 6; + return { + r: 255 * [n, s, a, a, u, n][l], + g: 255 * [u, n, n, s, a, a][l], + b: 255 * [a, a, u, n, n, s][l] + }; + })(t.h, r, s)), + (f = !0), + (d = 'hsv')) + : U(t.h) && + U(t.s) && + U(t.l) && + ((r = N(t.s)), + (u = N(t.l)), + (e = (function(t, e, n) { + var r, i, o; + function a(t, e, n) { + return ( + n < 0 && (n += 1), + n > 1 && (n -= 1), + n < 1 / 6 + ? t + 6 * (e - t) * n + : n < 0.5 + ? e + : n < 2 / 3 + ? t + (e - t) * (2 / 3 - n) * 6 + : t + ); + } + if ( + ((t = j(t, 360)), + (e = j(e, 100)), + (n = j(n, 100)), + 0 === e) + ) + r = i = o = n; + else { + var s = n < 0.5 ? n * (1 + e) : n + e - n * e, + u = 2 * n - s; + (r = a(u, s, t + 1 / 3)), + (i = a(u, s, t)), + (o = a(u, s, t - 1 / 3)); + } + return { r: 255 * r, g: 255 * i, b: 255 * o }; + })(t.h, r, u)), + (f = !0), + (d = 'hsl')), + t.hasOwnProperty('a') && (n = t.a)); + var h, p, g; + return ( + (n = L(n)), + { + ok: f, + format: t.format || d, + r: l(255, c(e.r, 0)), + g: l(255, c(e.g, 0)), + b: l(255, c(e.b, 0)), + a: n + } + ); + })(t); + (this._originalInput = t), + (this._r = n.r), + (this._g = n.g), + (this._b = n.b), + (this._a = n.a), + (this._roundA = u(100 * this._a) / 100), + (this._format = e.format || n.format), + (this._gradientType = e.gradientType), + this._r < 1 && (this._r = u(this._r)), + this._g < 1 && (this._g = u(this._g)), + this._b < 1 && (this._b = u(this._b)), + (this._ok = n.ok), + (this._tc_id = s++); + } + function h(t, e, n) { + (t = j(t, 255)), (e = j(e, 255)), (n = j(n, 255)); + var r, + i, + o = c(t, e, n), + a = l(t, e, n), + s = (o + a) / 2; + if (o == a) r = i = 0; + else { + var u = o - a; + switch (((i = s > 0.5 ? u / (2 - o - a) : u / (o + a)), o)) { + case t: + r = (e - n) / u + (e < n ? 6 : 0); + break; + case e: + r = (n - t) / u + 2; + break; + case n: + r = (t - e) / u + 4; + } + r /= 6; + } + return { h: r, s: i, l: s }; + } + function p(t, e, n) { + (t = j(t, 255)), (e = j(e, 255)), (n = j(n, 255)); + var r, + i, + o = c(t, e, n), + a = l(t, e, n), + s = o, + u = o - a; + if (((i = 0 === o ? 0 : u / o), o == a)) r = 0; + else { + switch (o) { + case t: + r = (e - n) / u + (e < n ? 6 : 0); + break; + case e: + r = (n - t) / u + 2; + break; + case n: + r = (t - e) / u + 4; + } + r /= 6; + } + return { h: r, s: i, v: s }; + } + function g(t, e, n, r) { + var i = [ + z(u(t).toString(16)), + z(u(e).toString(16)), + z(u(n).toString(16)) + ]; + return r && + i[0].charAt(0) == i[0].charAt(1) && + i[1].charAt(0) == i[1].charAt(1) && + i[2].charAt(0) == i[2].charAt(1) + ? i[0].charAt(0) + i[1].charAt(0) + i[2].charAt(0) + : i.join(''); + } + function m(t, e, n, r) { + return [ + z(I(r)), + z(u(t).toString(16)), + z(u(e).toString(16)), + z(u(n).toString(16)) + ].join(''); + } + function v(t, e) { + e = 0 === e ? 0 : e || 10; + var n = d(t).toHsl(); + return (n.s -= e / 100), (n.s = D(n.s)), d(n); + } + function y(t, e) { + e = 0 === e ? 0 : e || 10; + var n = d(t).toHsl(); + return (n.s += e / 100), (n.s = D(n.s)), d(n); + } + function b(t) { + return d(t).desaturate(100); + } + function _(t, e) { + e = 0 === e ? 0 : e || 10; + var n = d(t).toHsl(); + return (n.l += e / 100), (n.l = D(n.l)), d(n); + } + function x(t, e) { + e = 0 === e ? 0 : e || 10; + var n = d(t).toRgb(); + return ( + (n.r = c(0, l(255, n.r - u((-e / 100) * 255)))), + (n.g = c(0, l(255, n.g - u((-e / 100) * 255)))), + (n.b = c(0, l(255, n.b - u((-e / 100) * 255)))), + d(n) + ); + } + function w(t, e) { + e = 0 === e ? 0 : e || 10; + var n = d(t).toHsl(); + return (n.l -= e / 100), (n.l = D(n.l)), d(n); + } + function S(t, e) { + var n = d(t).toHsl(), + r = (n.h + e) % 360; + return (n.h = r < 0 ? 360 + r : r), d(n); + } + function E(t) { + var e = d(t).toHsl(); + return (e.h = (e.h + 180) % 360), d(e); + } + function k(t) { + var e = d(t).toHsl(), + n = e.h; + return [ + d(t), + d({ h: (n + 120) % 360, s: e.s, l: e.l }), + d({ h: (n + 240) % 360, s: e.s, l: e.l }) + ]; + } + function A(t) { + var e = d(t).toHsl(), + n = e.h; + return [ + d(t), + d({ h: (n + 90) % 360, s: e.s, l: e.l }), + d({ h: (n + 180) % 360, s: e.s, l: e.l }), + d({ h: (n + 270) % 360, s: e.s, l: e.l }) + ]; + } + function T(t) { + var e = d(t).toHsl(), + n = e.h; + return [ + d(t), + d({ h: (n + 72) % 360, s: e.s, l: e.l }), + d({ h: (n + 216) % 360, s: e.s, l: e.l }) + ]; + } + function C(t, e, n) { + (e = e || 6), (n = n || 30); + var r = d(t).toHsl(), + i = 360 / n, + o = [d(t)]; + for (r.h = (r.h - ((i * e) >> 1) + 720) % 360; --e; ) + (r.h = (r.h + i) % 360), o.push(d(r)); + return o; + } + function O(t, e) { + e = e || 6; + for ( + var n = d(t).toHsv(), r = n.h, i = n.s, o = n.v, a = [], s = 1 / e; + e--; + + ) + a.push(d({ h: r, s: i, v: o })), (o = (o + s) % 1); + return a; + } + (d.prototype = { + isDark: function() { + return this.getBrightness() < 128; + }, + isLight: function() { + return !this.isDark(); + }, + isValid: function() { + return this._ok; + }, + getOriginalInput: function() { + return this._originalInput; + }, + getFormat: function() { + return this._format; + }, + getAlpha: function() { + return this._a; + }, + getBrightness: function() { + var t = this.toRgb(); + return (299 * t.r + 587 * t.g + 114 * t.b) / 1e3; + }, + getLuminance: function() { + var t, + e, + n, + r = this.toRgb(); + return ( + (t = r.r / 255), + (e = r.g / 255), + (n = r.b / 255), + 0.2126 * + (t <= 0.03928 ? t / 12.92 : i.pow((t + 0.055) / 1.055, 2.4)) + + 0.7152 * + (e <= 0.03928 ? e / 12.92 : i.pow((e + 0.055) / 1.055, 2.4)) + + 0.0722 * + (n <= 0.03928 ? n / 12.92 : i.pow((n + 0.055) / 1.055, 2.4)) + ); + }, + setAlpha: function(t) { + return ( + (this._a = L(t)), (this._roundA = u(100 * this._a) / 100), this + ); + }, + toHsv: function() { + var t = p(this._r, this._g, this._b); + return { h: 360 * t.h, s: t.s, v: t.v, a: this._a }; + }, + toHsvString: function() { + var t = p(this._r, this._g, this._b), + e = u(360 * t.h), + n = u(100 * t.s), + r = u(100 * t.v); + return 1 == this._a + ? 'hsv(' + e + ', ' + n + '%, ' + r + '%)' + : 'hsva(' + e + ', ' + n + '%, ' + r + '%, ' + this._roundA + ')'; + }, + toHsl: function() { + var t = h(this._r, this._g, this._b); + return { h: 360 * t.h, s: t.s, l: t.l, a: this._a }; + }, + toHslString: function() { + var t = h(this._r, this._g, this._b), + e = u(360 * t.h), + n = u(100 * t.s), + r = u(100 * t.l); + return 1 == this._a + ? 'hsl(' + e + ', ' + n + '%, ' + r + '%)' + : 'hsla(' + e + ', ' + n + '%, ' + r + '%, ' + this._roundA + ')'; + }, + toHex: function(t) { + return g(this._r, this._g, this._b, t); + }, + toHexString: function(t) { + return '#' + this.toHex(t); + }, + toHex8: function(t) { + return (function(t, e, n, r, i) { + var o = [ + z(u(t).toString(16)), + z(u(e).toString(16)), + z(u(n).toString(16)), + z(I(r)) + ]; + if ( + i && + o[0].charAt(0) == o[0].charAt(1) && + o[1].charAt(0) == o[1].charAt(1) && + o[2].charAt(0) == o[2].charAt(1) && + o[3].charAt(0) == o[3].charAt(1) + ) + return ( + o[0].charAt(0) + + o[1].charAt(0) + + o[2].charAt(0) + + o[3].charAt(0) + ); + return o.join(''); + })(this._r, this._g, this._b, this._a, t); + }, + toHex8String: function(t) { + return '#' + this.toHex8(t); + }, + toRgb: function() { + return { r: u(this._r), g: u(this._g), b: u(this._b), a: this._a }; + }, + toRgbString: function() { + return 1 == this._a + ? 'rgb(' + + u(this._r) + + ', ' + + u(this._g) + + ', ' + + u(this._b) + + ')' + : 'rgba(' + + u(this._r) + + ', ' + + u(this._g) + + ', ' + + u(this._b) + + ', ' + + this._roundA + + ')'; + }, + toPercentageRgb: function() { + return { + r: u(100 * j(this._r, 255)) + '%', + g: u(100 * j(this._g, 255)) + '%', + b: u(100 * j(this._b, 255)) + '%', + a: this._a + }; + }, + toPercentageRgbString: function() { + return 1 == this._a + ? 'rgb(' + + u(100 * j(this._r, 255)) + + '%, ' + + u(100 * j(this._g, 255)) + + '%, ' + + u(100 * j(this._b, 255)) + + '%)' + : 'rgba(' + + u(100 * j(this._r, 255)) + + '%, ' + + u(100 * j(this._g, 255)) + + '%, ' + + u(100 * j(this._b, 255)) + + '%, ' + + this._roundA + + ')'; + }, + toName: function() { + return 0 === this._a + ? 'transparent' + : !(this._a < 1) && (M[g(this._r, this._g, this._b, !0)] || !1); + }, + toFilter: function(t) { + var e = '#' + m(this._r, this._g, this._b, this._a), + n = e, + r = this._gradientType ? 'GradientType = 1, ' : ''; + if (t) { + var i = d(t); + n = '#' + m(i._r, i._g, i._b, i._a); + } + return ( + 'progid:DXImageTransform.Microsoft.gradient(' + + r + + 'startColorstr=' + + e + + ',endColorstr=' + + n + + ')' + ); + }, + toString: function(t) { + var e = !!t; + t = t || this._format; + var n = !1, + r = this._a < 1 && this._a >= 0; + return e || + !r || + ('hex' !== t && + 'hex6' !== t && + 'hex3' !== t && + 'hex4' !== t && + 'hex8' !== t && + 'name' !== t) + ? ('rgb' === t && (n = this.toRgbString()), + 'prgb' === t && (n = this.toPercentageRgbString()), + ('hex' !== t && 'hex6' !== t) || (n = this.toHexString()), + 'hex3' === t && (n = this.toHexString(!0)), + 'hex4' === t && (n = this.toHex8String(!0)), + 'hex8' === t && (n = this.toHex8String()), + 'name' === t && (n = this.toName()), + 'hsl' === t && (n = this.toHslString()), + 'hsv' === t && (n = this.toHsvString()), + n || this.toHexString()) + : 'name' === t && 0 === this._a + ? this.toName() + : this.toRgbString(); + }, + clone: function() { + return d(this.toString()); + }, + _applyModification: function(t, e) { + var n = t.apply(null, [this].concat([].slice.call(e))); + return ( + (this._r = n._r), + (this._g = n._g), + (this._b = n._b), + this.setAlpha(n._a), + this + ); + }, + lighten: function() { + return this._applyModification(_, arguments); + }, + brighten: function() { + return this._applyModification(x, arguments); + }, + darken: function() { + return this._applyModification(w, arguments); + }, + desaturate: function() { + return this._applyModification(v, arguments); + }, + saturate: function() { + return this._applyModification(y, arguments); + }, + greyscale: function() { + return this._applyModification(b, arguments); + }, + spin: function() { + return this._applyModification(S, arguments); + }, + _applyCombination: function(t, e) { + return t.apply(null, [this].concat([].slice.call(e))); + }, + analogous: function() { + return this._applyCombination(C, arguments); + }, + complement: function() { + return this._applyCombination(E, arguments); + }, + monochromatic: function() { + return this._applyCombination(O, arguments); + }, + splitcomplement: function() { + return this._applyCombination(T, arguments); + }, + triad: function() { + return this._applyCombination(k, arguments); + }, + tetrad: function() { + return this._applyCombination(A, arguments); + } + }), + (d.fromRatio = function(t, e) { + if ('object' == typeof t) { + var n = {}; + for (var r in t) + t.hasOwnProperty(r) && (n[r] = 'a' === r ? t[r] : N(t[r])); + t = n; + } + return d(t, e); + }), + (d.equals = function(t, e) { + return !(!t || !e) && d(t).toRgbString() == d(e).toRgbString(); + }), + (d.random = function() { + return d.fromRatio({ r: f(), g: f(), b: f() }); + }), + (d.mix = function(t, e, n) { + n = 0 === n ? 0 : n || 50; + var r = d(t).toRgb(), + i = d(e).toRgb(), + o = n / 100; + return d({ + r: (i.r - r.r) * o + r.r, + g: (i.g - r.g) * o + r.g, + b: (i.b - r.b) * o + r.b, + a: (i.a - r.a) * o + r.a + }); + }), + (d.readability = function(t, e) { + var n = d(t), + r = d(e); + return ( + (i.max(n.getLuminance(), r.getLuminance()) + 0.05) / + (i.min(n.getLuminance(), r.getLuminance()) + 0.05) + ); + }), + (d.isReadable = function(t, e, n) { + var r, + i, + o = d.readability(t, e); + switch ( + ((i = !1), + (r = (function(t) { + var e, n; + (e = ( + (t = t || { level: 'AA', size: 'small' }).level || 'AA' + ).toUpperCase()), + (n = (t.size || 'small').toLowerCase()), + 'AA' !== e && 'AAA' !== e && (e = 'AA'); + 'small' !== n && 'large' !== n && (n = 'small'); + return { level: e, size: n }; + })(n)).level + r.size) + ) { + case 'AAsmall': + case 'AAAlarge': + i = o >= 4.5; + break; + case 'AAlarge': + i = o >= 3; + break; + case 'AAAsmall': + i = o >= 7; + } + return i; + }), + (d.mostReadable = function(t, e, n) { + var r, + i, + o, + a, + s = null, + u = 0; + (i = (n = n || {}).includeFallbackColors), + (o = n.level), + (a = n.size); + for (var l = 0; l < e.length; l++) + (r = d.readability(t, e[l])) > u && ((u = r), (s = d(e[l]))); + return d.isReadable(t, s, { level: o, size: a }) || !i + ? s + : ((n.includeFallbackColors = !1), + d.mostReadable(t, ['#fff', '#000'], n)); + }); + var P = (d.names = { + aliceblue: 'f0f8ff', + antiquewhite: 'faebd7', + aqua: '0ff', + aquamarine: '7fffd4', + azure: 'f0ffff', + beige: 'f5f5dc', + bisque: 'ffe4c4', + black: '000', + blanchedalmond: 'ffebcd', + blue: '00f', + blueviolet: '8a2be2', + brown: 'a52a2a', + burlywood: 'deb887', + burntsienna: 'ea7e5d', + cadetblue: '5f9ea0', + chartreuse: '7fff00', + chocolate: 'd2691e', + coral: 'ff7f50', + cornflowerblue: '6495ed', + cornsilk: 'fff8dc', + crimson: 'dc143c', + cyan: '0ff', + darkblue: '00008b', + darkcyan: '008b8b', + darkgoldenrod: 'b8860b', + darkgray: 'a9a9a9', + darkgreen: '006400', + darkgrey: 'a9a9a9', + darkkhaki: 'bdb76b', + darkmagenta: '8b008b', + darkolivegreen: '556b2f', + darkorange: 'ff8c00', + darkorchid: '9932cc', + darkred: '8b0000', + darksalmon: 'e9967a', + darkseagreen: '8fbc8f', + darkslateblue: '483d8b', + darkslategray: '2f4f4f', + darkslategrey: '2f4f4f', + darkturquoise: '00ced1', + darkviolet: '9400d3', + deeppink: 'ff1493', + deepskyblue: '00bfff', + dimgray: '696969', + dimgrey: '696969', + dodgerblue: '1e90ff', + firebrick: 'b22222', + floralwhite: 'fffaf0', + forestgreen: '228b22', + fuchsia: 'f0f', + gainsboro: 'dcdcdc', + ghostwhite: 'f8f8ff', + gold: 'ffd700', + goldenrod: 'daa520', + gray: '808080', + green: '008000', + greenyellow: 'adff2f', + grey: '808080', + honeydew: 'f0fff0', + hotpink: 'ff69b4', + indianred: 'cd5c5c', + indigo: '4b0082', + ivory: 'fffff0', + khaki: 'f0e68c', + lavender: 'e6e6fa', + lavenderblush: 'fff0f5', + lawngreen: '7cfc00', + lemonchiffon: 'fffacd', + lightblue: 'add8e6', + lightcoral: 'f08080', + lightcyan: 'e0ffff', + lightgoldenrodyellow: 'fafad2', + lightgray: 'd3d3d3', + lightgreen: '90ee90', + lightgrey: 'd3d3d3', + lightpink: 'ffb6c1', + lightsalmon: 'ffa07a', + lightseagreen: '20b2aa', + lightskyblue: '87cefa', + lightslategray: '789', + lightslategrey: '789', + lightsteelblue: 'b0c4de', + lightyellow: 'ffffe0', + lime: '0f0', + limegreen: '32cd32', + linen: 'faf0e6', + magenta: 'f0f', + maroon: '800000', + mediumaquamarine: '66cdaa', + mediumblue: '0000cd', + mediumorchid: 'ba55d3', + mediumpurple: '9370db', + mediumseagreen: '3cb371', + mediumslateblue: '7b68ee', + mediumspringgreen: '00fa9a', + mediumturquoise: '48d1cc', + mediumvioletred: 'c71585', + midnightblue: '191970', + mintcream: 'f5fffa', + mistyrose: 'ffe4e1', + moccasin: 'ffe4b5', + navajowhite: 'ffdead', + navy: '000080', + oldlace: 'fdf5e6', + olive: '808000', + olivedrab: '6b8e23', + orange: 'ffa500', + orangered: 'ff4500', + orchid: 'da70d6', + palegoldenrod: 'eee8aa', + palegreen: '98fb98', + paleturquoise: 'afeeee', + palevioletred: 'db7093', + papayawhip: 'ffefd5', + peachpuff: 'ffdab9', + peru: 'cd853f', + pink: 'ffc0cb', + plum: 'dda0dd', + powderblue: 'b0e0e6', + purple: '800080', + rebeccapurple: '663399', + red: 'f00', + rosybrown: 'bc8f8f', + royalblue: '4169e1', + saddlebrown: '8b4513', + salmon: 'fa8072', + sandybrown: 'f4a460', + seagreen: '2e8b57', + seashell: 'fff5ee', + sienna: 'a0522d', + silver: 'c0c0c0', + skyblue: '87ceeb', + slateblue: '6a5acd', + slategray: '708090', + slategrey: '708090', + snow: 'fffafa', + springgreen: '00ff7f', + steelblue: '4682b4', + tan: 'd2b48c', + teal: '008080', + thistle: 'd8bfd8', + tomato: 'ff6347', + turquoise: '40e0d0', + violet: 'ee82ee', + wheat: 'f5deb3', + white: 'fff', + whitesmoke: 'f5f5f5', + yellow: 'ff0', + yellowgreen: '9acd32' + }), + M = (d.hexNames = (function(t) { + var e = {}; + for (var n in t) t.hasOwnProperty(n) && (e[t[n]] = n); + return e; + })(P)); + function L(t) { + return ( + (t = parseFloat(t)), (isNaN(t) || t < 0 || t > 1) && (t = 1), t + ); + } + function j(t, e) { + (function(t) { + return ( + 'string' == typeof t && + -1 != t.indexOf('.') && + 1 === parseFloat(t) + ); + })(t) && (t = '100%'); + var n = (function(t) { + return 'string' == typeof t && -1 != t.indexOf('%'); + })(t); + return ( + (t = l(e, c(0, parseFloat(t)))), + n && (t = parseInt(t * e, 10) / 100), + i.abs(t - e) < 1e-6 ? 1 : (t % e) / parseFloat(e) + ); + } + function D(t) { + return l(1, c(0, t)); + } + function R(t) { + return parseInt(t, 16); + } + function z(t) { + return 1 == t.length ? '0' + t : '' + t; + } + function N(t) { + return t <= 1 && (t = 100 * t + '%'), t; + } + function I(t) { + return i.round(255 * parseFloat(t)).toString(16); + } + function F(t) { + return R(t) / 255; + } + var V, + B, + G, + H = + ((B = + '[\\s|\\(]+(' + + (V = '(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)') + + ')[,|\\s]+(' + + V + + ')[,|\\s]+(' + + V + + ')\\s*\\)?'), + (G = + '[\\s|\\(]+(' + + V + + ')[,|\\s]+(' + + V + + ')[,|\\s]+(' + + V + + ')[,|\\s]+(' + + V + + ')\\s*\\)?'), + { + CSS_UNIT: new RegExp(V), + rgb: new RegExp('rgb' + B), + rgba: new RegExp('rgba' + G), + hsl: new RegExp('hsl' + B), + hsla: new RegExp('hsla' + G), + hsv: new RegExp('hsv' + B), + hsva: new RegExp('hsva' + G), + hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, + hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ + }); + function U(t) { + return !!H.CSS_UNIT.exec(t); + } + t.exports + ? (t.exports = d) + : void 0 === + (r = function() { + return d; + }.call(e, n, e, t)) || (t.exports = r); + })(Math); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.Swatch = void 0); + var r = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); + } + return t; + }, + i = u(n(0)), + o = u(n(3)), + a = n(398), + s = u(n(85)); + function u(t) { + return t && t.__esModule ? t : { default: t }; + } + var l = (e.Swatch = function(t) { + var e = t.color, + n = t.style, + a = t.onClick, + u = void 0 === a ? function() {} : a, + l = t.onHover, + c = t.title, + f = void 0 === c ? e : c, + d = t.children, + h = t.focus, + p = t.focusStyle, + g = void 0 === p ? {} : p, + m = 'transparent' === e, + v = (0, o.default)({ + default: { + swatch: r( + { + background: e, + height: '100%', + width: '100%', + cursor: 'pointer', + position: 'relative', + outline: 'none' + }, + n, + h ? g : {} + ) + } + }), + y = {}; + return ( + l && + (y.onMouseOver = function(t) { + return l(e, t); + }), + i.default.createElement( + 'div', + r( + { + style: v.swatch, + onClick: function(t) { + return u(e, t); + }, + title: f, + tabIndex: 0, + onKeyDown: function(t) { + return 13 === t.keyCode && u(e, t); + } + }, + y + ), + d, + m && + i.default.createElement(s.default, { + borderRadius: v.swatch.borderRadius, + boxShadow: 'inset 0 0 0 1px rgba(0,0,0,0.1)' + }) + ) + ); + }); + e.default = (0, a.handleFocus)(l); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.handleFocus = void 0); + var r, + i = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); + } + return t; + }, + o = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + a = n(0), + s = (r = a) && r.__esModule ? r : { default: r }; + function u(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + } + function l(t, e) { + if (!t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !e || ('object' != typeof e && 'function' != typeof e) ? t : e; + } + function c(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof e + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { + value: t, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + e && + (Object.setPrototypeOf + ? Object.setPrototypeOf(t, e) + : (t.__proto__ = e)); + } + e.handleFocus = function(t) { + var e = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : 'span'; + return (function(n) { + function r() { + var t, e, n; + u(this, r); + for (var i = arguments.length, o = Array(i), a = 0; a < i; a++) + o[a] = arguments[a]; + return ( + (e = n = l( + this, + (t = r.__proto__ || Object.getPrototypeOf(r)).call.apply( + t, + [this].concat(o) + ) + )), + (n.state = { focus: !1 }), + (n.handleFocus = function() { + return n.setState({ focus: !0 }); + }), + (n.handleBlur = function() { + return n.setState({ focus: !1 }); + }), + l(n, e) + ); + } + return ( + c(r, n), + o(r, [ + { + key: 'render', + value: function() { + return s.default.createElement( + e, + { onFocus: this.handleFocus, onBlur: this.handleBlur }, + s.default.createElement(t, i({}, this.props, this.state)) + ); + } + } + ]), + r + ); + })(s.default.Component); + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.AlphaPointer = void 0); + var r = o(n(0)), + i = o(n(3)); + function o(t) { + return t && t.__esModule ? t : { default: t }; + } + var a = (e.AlphaPointer = function(t) { + var e = t.direction, + n = (0, i.default)( + { + default: { + picker: { + width: '18px', + height: '18px', + borderRadius: '50%', + transform: 'translate(-9px, -1px)', + backgroundColor: 'rgb(248, 248, 248)', + boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)' + } + }, + vertical: { picker: { transform: 'translate(-3px, -9px)' } } + }, + { vertical: 'vertical' === e } + ); + return r.default.createElement('div', { style: n.picker }); + }); + e.default = a; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), (e.Block = void 0); + var r = c(n(0)), + i = c(n(1)), + o = c(n(3)), + a = c(n(10)), + s = c(n(23)), + u = n(6), + l = c(n(401)); + function c(t) { + return t && t.__esModule ? t : { default: t }; + } + var f = (e.Block = function(t) { + var e = t.onChange, + n = t.onSwatchHover, + i = t.hex, + c = t.colors, + f = t.width, + d = t.triangle, + h = t.styles, + p = void 0 === h ? {} : h, + g = t.className, + m = void 0 === g ? '' : g, + v = 'transparent' === i, + y = function(t, n) { + s.default.isValidHex(t) && e({ hex: t, source: 'hex' }, n); + }, + b = (0, o.default)( + (0, a.default)( + { + default: { + card: { + width: f, + background: '#fff', + boxShadow: '0 1px rgba(0,0,0,.1)', + borderRadius: '6px', + position: 'relative' + }, + head: { + height: '110px', + background: i, + borderRadius: '6px 6px 0 0', + display: 'flex', + alignItems: 'center', + justifyContent: 'center', + position: 'relative' + }, + body: { padding: '10px' }, + label: { + fontSize: '18px', + color: s.default.getContrastingColor(i), + position: 'relative' + }, + triangle: { + width: '0px', + height: '0px', + borderStyle: 'solid', + borderWidth: '0 10px 10px 10px', + borderColor: + 'transparent transparent ' + i + ' transparent', + position: 'absolute', + top: '-10px', + left: '50%', + marginLeft: '-10px' + }, + input: { + width: '100%', + fontSize: '12px', + color: '#666', + border: '0px', + outline: 'none', + height: '22px', + boxShadow: 'inset 0 0 0 1px #ddd', + borderRadius: '4px', + padding: '0 7px', + boxSizing: 'border-box' + } + }, + 'hide-triangle': { triangle: { display: 'none' } } + }, + p + ), + { 'hide-triangle': 'hide' === d } + ); + return r.default.createElement( + 'div', + { style: b.card, className: 'block-picker ' + m }, + r.default.createElement('div', { style: b.triangle }), + r.default.createElement( + 'div', + { style: b.head }, + v && + r.default.createElement(u.Checkboard, { + borderRadius: '6px 6px 0 0' + }), + r.default.createElement('div', { style: b.label }, i) + ), + r.default.createElement( + 'div', + { style: b.body }, + r.default.createElement(l.default, { + colors: c, + onClick: y, + onSwatchHover: n + }), + r.default.createElement(u.EditableInput, { + style: { input: b.input }, + value: i, + onChange: y + }) + ) + ); + }); + (f.propTypes = { + width: i.default.oneOfType([i.default.string, i.default.number]), + colors: i.default.arrayOf(i.default.string), + triangle: i.default.oneOf(['top', 'hide']), + styles: i.default.object + }), + (f.defaultProps = { + width: 170, + colors: [ + '#D9E3F0', + '#F47373', + '#697689', + '#37D67A', + '#2CCCE4', + '#555555', + '#dce775', + '#ff8a65', + '#ba68c8' + ], + triangle: 'top', + styles: {} + }), + (e.default = (0, u.ColorWrap)(f)); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.BlockSwatches = void 0); + var r = s(n(0)), + i = s(n(3)), + o = s(n(28)), + a = n(6); + function s(t) { + return t && t.__esModule ? t : { default: t }; + } + var u = (e.BlockSwatches = function(t) { + var e = t.colors, + n = t.onClick, + s = t.onSwatchHover, + u = (0, i.default)({ + default: { + swatches: { marginRight: '-10px' }, + swatch: { + width: '22px', + height: '22px', + float: 'left', + marginRight: '10px', + marginBottom: '10px', + borderRadius: '4px' + }, + clear: { clear: 'both' } + } + }); + return r.default.createElement( + 'div', + { style: u.swatches }, + (0, o.default)(e, function(t) { + return r.default.createElement(a.Swatch, { + key: t, + color: t, + style: u.swatch, + onClick: n, + onHover: s, + focusStyle: { boxShadow: '0 0 4px ' + t } + }); + }), + r.default.createElement('div', { style: u.clear }) + ); + }); + e.default = u; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.Circle = void 0); + var r = f(n(0)), + i = f(n(1)), + o = f(n(3)), + a = f(n(28)), + s = f(n(10)), + u = (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]); + return (e.default = t), e; + })(n(154)), + l = n(6), + c = f(n(403)); + function f(t) { + return t && t.__esModule ? t : { default: t }; + } + var d = (e.Circle = function(t) { + var e = t.width, + n = t.onChange, + i = t.onSwatchHover, + u = t.colors, + l = t.hex, + f = t.circleSize, + d = t.styles, + h = void 0 === d ? {} : d, + p = t.circleSpacing, + g = t.className, + m = void 0 === g ? '' : g, + v = (0, o.default)( + (0, s.default)( + { + default: { + card: { + width: e, + display: 'flex', + flexWrap: 'wrap', + marginRight: -p, + marginBottom: -p + } + } + }, + h + ) + ), + y = function(t, e) { + return n({ hex: t, source: 'hex' }, e); + }; + return r.default.createElement( + 'div', + { style: v.card, className: 'circle-picker ' + m }, + (0, a.default)(u, function(t) { + return r.default.createElement(c.default, { + key: t, + color: t, + onClick: y, + onSwatchHover: i, + active: l === t.toLowerCase(), + circleSize: f, + circleSpacing: p + }); + }) + ); + }); + (d.propTypes = { + width: i.default.oneOfType([i.default.string, i.default.number]), + circleSize: i.default.number, + circleSpacing: i.default.number, + styles: i.default.object + }), + (d.defaultProps = { + width: 252, + circleSize: 28, + circleSpacing: 14, + colors: [ + u.red[500], + u.pink[500], + u.purple[500], + u.deepPurple[500], + u.indigo[500], + u.blue[500], + u.lightBlue[500], + u.cyan[500], + u.teal[500], + u.green[500], + u.lightGreen[500], + u.lime[500], + u.yellow[500], + u.amber[500], + u.orange[500], + u.deepOrange[500], + u.brown[500], + u.blueGrey[500] + ], + styles: {} + }), + (e.default = (0, l.ColorWrap)(d)); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.CircleSwatch = void 0); + var r = s(n(0)), + i = n(3), + o = s(i), + a = n(6); + function s(t) { + return t && t.__esModule ? t : { default: t }; + } + var u = (e.CircleSwatch = function(t) { + var e = t.color, + n = t.onClick, + i = t.onSwatchHover, + s = t.hover, + u = t.active, + l = t.circleSize, + c = t.circleSpacing, + f = (0, o.default)( + { + default: { + swatch: { + width: l, + height: l, + marginRight: c, + marginBottom: c, + transform: 'scale(1)', + transition: '100ms transform ease' + }, + Swatch: { + borderRadius: '50%', + background: 'transparent', + boxShadow: 'inset 0 0 0 ' + l / 2 + 'px ' + e, + transition: '100ms box-shadow ease' + } + }, + hover: { swatch: { transform: 'scale(1.2)' } }, + active: { Swatch: { boxShadow: 'inset 0 0 0 3px ' + e } } + }, + { hover: s, active: u } + ); + return r.default.createElement( + 'div', + { style: f.swatch }, + r.default.createElement(a.Swatch, { + style: f.Swatch, + color: e, + onClick: n, + onHover: i, + focusStyle: { boxShadow: f.Swatch.boxShadow + ', 0 0 5px ' + e } + }) + ); + }); + (u.defaultProps = { circleSize: 28, circleSpacing: 14 }), + (e.default = (0, i.handleHover)(u)); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.Chrome = void 0); + var r = f(n(0)), + i = f(n(1)), + o = f(n(3)), + a = f(n(10)), + s = n(6), + u = f(n(405)), + l = f(n(407)), + c = f(n(408)); + function f(t) { + return t && t.__esModule ? t : { default: t }; + } + var d = (e.Chrome = function(t) { + var e = t.width, + n = t.onChange, + i = t.disableAlpha, + f = t.rgb, + d = t.hsl, + h = t.hsv, + p = t.hex, + g = t.renderers, + m = t.styles, + v = void 0 === m ? {} : m, + y = t.className, + b = void 0 === y ? '' : y, + _ = t.defaultView, + x = (0, o.default)( + (0, a.default)( + { + default: { + picker: { + width: e, + background: '#fff', + borderRadius: '2px', + boxShadow: + '0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)', + boxSizing: 'initial', + fontFamily: 'Menlo' + }, + saturation: { + width: '100%', + paddingBottom: '55%', + position: 'relative', + borderRadius: '2px 2px 0 0', + overflow: 'hidden' + }, + Saturation: { radius: '2px 2px 0 0' }, + body: { padding: '16px 16px 12px' }, + controls: { display: 'flex' }, + color: { width: '32px' }, + swatch: { + marginTop: '6px', + width: '16px', + height: '16px', + borderRadius: '8px', + position: 'relative', + overflow: 'hidden' + }, + active: { + absolute: '0px 0px 0px 0px', + borderRadius: '8px', + boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.1)', + background: + 'rgba(' + + f.r + + ', ' + + f.g + + ', ' + + f.b + + ', ' + + f.a + + ')', + zIndex: '2' + }, + toggles: { flex: '1' }, + hue: { + height: '10px', + position: 'relative', + marginBottom: '8px' + }, + Hue: { radius: '2px' }, + alpha: { height: '10px', position: 'relative' }, + Alpha: { radius: '2px' } + }, + disableAlpha: { + color: { width: '22px' }, + alpha: { display: 'none' }, + hue: { marginBottom: '0px' }, + swatch: { width: '10px', height: '10px', marginTop: '0px' } + } + }, + v + ), + { disableAlpha: i } + ); + return r.default.createElement( + 'div', + { style: x.picker, className: 'chrome-picker ' + b }, + r.default.createElement( + 'div', + { style: x.saturation }, + r.default.createElement(s.Saturation, { + style: x.Saturation, + hsl: d, + hsv: h, + pointer: c.default, + onChange: n + }) + ), + r.default.createElement( + 'div', + { style: x.body }, + r.default.createElement( + 'div', + { style: x.controls, className: 'flexbox-fix' }, + r.default.createElement( + 'div', + { style: x.color }, + r.default.createElement( + 'div', + { style: x.swatch }, + r.default.createElement('div', { style: x.active }), + r.default.createElement(s.Checkboard, { renderers: g }) + ) + ), + r.default.createElement( + 'div', + { style: x.toggles }, + r.default.createElement( + 'div', + { style: x.hue }, + r.default.createElement(s.Hue, { + style: x.Hue, + hsl: d, + pointer: l.default, + onChange: n + }) + ), + r.default.createElement( + 'div', + { style: x.alpha }, + r.default.createElement(s.Alpha, { + style: x.Alpha, + rgb: f, + hsl: d, + pointer: l.default, + renderers: g, + onChange: n + }) + ) + ) + ), + r.default.createElement(u.default, { + rgb: f, + hsl: d, + hex: p, + view: _, + onChange: n, + disableAlpha: i + }) + ) + ); + }); + (d.propTypes = { + width: i.default.oneOfType([i.default.string, i.default.number]), + disableAlpha: i.default.bool, + styles: i.default.object, + defaultView: i.default.oneOf(['hex', 'rgb', 'hsl']) + }), + (d.defaultProps = { width: 225, disableAlpha: !1, styles: {} }), + (e.default = (0, s.ColorWrap)(d)); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.ChromeFields = void 0); + var r = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + i = l(n(0)), + o = l(n(3)), + a = l(n(23)), + s = n(6), + u = l(n(406)); + function l(t) { + return t && t.__esModule ? t : { default: t }; + } + var c = (e.ChromeFields = (function(t) { + function e(t) { + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + })(this, e); + var n = (function(t, e) { + if (!t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !e || ('object' != typeof e && 'function' != typeof e) + ? t + : e; + })(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this)); + return ( + (n.toggleViews = function() { + 'hex' === n.state.view + ? n.setState({ view: 'rgb' }) + : 'rgb' === n.state.view + ? n.setState({ view: 'hsl' }) + : 'hsl' === n.state.view && + (1 === n.props.hsl.a + ? n.setState({ view: 'hex' }) + : n.setState({ view: 'rgb' })); + }), + (n.handleChange = function(t, e) { + t.hex + ? a.default.isValidHex(t.hex) && + n.props.onChange({ hex: t.hex, source: 'hex' }, e) + : t.r || t.g || t.b + ? n.props.onChange( + { + r: t.r || n.props.rgb.r, + g: t.g || n.props.rgb.g, + b: t.b || n.props.rgb.b, + source: 'rgb' + }, + e + ) + : t.a + ? (t.a < 0 ? (t.a = 0) : t.a > 1 && (t.a = 1), + n.props.onChange( + { + h: n.props.hsl.h, + s: n.props.hsl.s, + l: n.props.hsl.l, + a: Math.round(100 * t.a) / 100, + source: 'rgb' + }, + e + )) + : (t.h || t.s || t.l) && + ('string' == typeof t.s && + t.s.includes('%') && + (t.s = t.s.replace('%', '')), + 'string' == typeof t.l && + t.l.includes('%') && + (t.l = t.l.replace('%', '')), + n.props.onChange( + { + h: t.h || n.props.hsl.h, + s: Number((t.s && t.s) || n.props.hsl.s), + l: Number((t.l && t.l) || n.props.hsl.l), + source: 'hsl' + }, + e + )); + }), + (n.showHighlight = function(t) { + t.currentTarget.style.background = '#eee'; + }), + (n.hideHighlight = function(t) { + t.currentTarget.style.background = 'transparent'; + }), + 1 !== t.hsl.a && 'hex' === t.view + ? (n.state = { view: 'rgb' }) + : (n.state = { view: t.view }), + n + ); + } + return ( + (function(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof e + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { + value: t, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + e && + (Object.setPrototypeOf + ? Object.setPrototypeOf(t, e) + : (t.__proto__ = e)); + })(e, t), + r( + e, + [ + { + key: 'render', + value: function() { + var t = this, + e = (0, o.default)( + { + default: { + wrap: { paddingTop: '16px', display: 'flex' }, + fields: { + flex: '1', + display: 'flex', + marginLeft: '-6px' + }, + field: { paddingLeft: '6px', width: '100%' }, + alpha: { paddingLeft: '6px', width: '100%' }, + toggle: { + width: '32px', + textAlign: 'right', + position: 'relative' + }, + icon: { + marginRight: '-4px', + marginTop: '12px', + cursor: 'pointer', + position: 'relative' + }, + iconHighlight: { + position: 'absolute', + width: '24px', + height: '28px', + background: '#eee', + borderRadius: '4px', + top: '10px', + left: '12px', + display: 'none' + }, + input: { + fontSize: '11px', + color: '#333', + width: '100%', + borderRadius: '2px', + border: 'none', + boxShadow: 'inset 0 0 0 1px #dadada', + height: '21px', + textAlign: 'center' + }, + label: { + textTransform: 'uppercase', + fontSize: '11px', + lineHeight: '11px', + color: '#969696', + textAlign: 'center', + display: 'block', + marginTop: '12px' + }, + svg: { + fill: '#333', + width: '24px', + height: '24px', + border: '1px transparent solid', + borderRadius: '5px' + } + }, + disableAlpha: { alpha: { display: 'none' } } + }, + this.props, + this.state + ), + n = void 0; + return ( + 'hex' === this.state.view + ? (n = i.default.createElement( + 'div', + { style: e.fields, className: 'flexbox-fix' }, + i.default.createElement( + 'div', + { style: e.field }, + i.default.createElement(s.EditableInput, { + style: { input: e.input, label: e.label }, + label: 'hex', + value: this.props.hex, + onChange: this.handleChange + }) + ) + )) + : 'rgb' === this.state.view + ? (n = i.default.createElement( + 'div', + { style: e.fields, className: 'flexbox-fix' }, + i.default.createElement( + 'div', + { style: e.field }, + i.default.createElement(s.EditableInput, { + style: { input: e.input, label: e.label }, + label: 'r', + value: this.props.rgb.r, + onChange: this.handleChange + }) + ), + i.default.createElement( + 'div', + { style: e.field }, + i.default.createElement(s.EditableInput, { + style: { input: e.input, label: e.label }, + label: 'g', + value: this.props.rgb.g, + onChange: this.handleChange + }) + ), + i.default.createElement( + 'div', + { style: e.field }, + i.default.createElement(s.EditableInput, { + style: { input: e.input, label: e.label }, + label: 'b', + value: this.props.rgb.b, + onChange: this.handleChange + }) + ), + i.default.createElement( + 'div', + { style: e.alpha }, + i.default.createElement(s.EditableInput, { + style: { input: e.input, label: e.label }, + label: 'a', + value: this.props.rgb.a, + arrowOffset: 0.01, + onChange: this.handleChange + }) + ) + )) + : 'hsl' === this.state.view && + (n = i.default.createElement( + 'div', + { style: e.fields, className: 'flexbox-fix' }, + i.default.createElement( + 'div', + { style: e.field }, + i.default.createElement(s.EditableInput, { + style: { input: e.input, label: e.label }, + label: 'h', + value: Math.round(this.props.hsl.h), + onChange: this.handleChange + }) + ), + i.default.createElement( + 'div', + { style: e.field }, + i.default.createElement(s.EditableInput, { + style: { input: e.input, label: e.label }, + label: 's', + value: Math.round(100 * this.props.hsl.s) + '%', + onChange: this.handleChange + }) + ), + i.default.createElement( + 'div', + { style: e.field }, + i.default.createElement(s.EditableInput, { + style: { input: e.input, label: e.label }, + label: 'l', + value: Math.round(100 * this.props.hsl.l) + '%', + onChange: this.handleChange + }) + ), + i.default.createElement( + 'div', + { style: e.alpha }, + i.default.createElement(s.EditableInput, { + style: { input: e.input, label: e.label }, + label: 'a', + value: this.props.hsl.a, + arrowOffset: 0.01, + onChange: this.handleChange + }) + ) + )), + i.default.createElement( + 'div', + { style: e.wrap, className: 'flexbox-fix' }, + n, + i.default.createElement( + 'div', + { style: e.toggle }, + i.default.createElement( + 'div', + { + style: e.icon, + onClick: this.toggleViews, + ref: function(e) { + return (t.icon = e); + } + }, + i.default.createElement(u.default, { + style: e.svg, + onMouseOver: this.showHighlight, + onMouseEnter: this.showHighlight, + onMouseOut: this.hideHighlight + }) + ) + ) + ) + ); + } + } + ], + [ + { + key: 'getDerivedStateFromProps', + value: function(t, e) { + return 1 !== t.hsl.a && 'hex' === e.view + ? { view: 'rgb' } + : null; + } + } + ] + ), + e + ); + })(i.default.Component)); + (c.defaultProps = { view: 'hex' }), (e.default = c); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r, + i = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); + } + return t; + }, + o = n(0), + a = (r = o) && r.__esModule ? r : { default: r }; + e.default = function(t) { + var e = t.fill, + n = void 0 === e ? 'currentColor' : e, + r = t.width, + o = void 0 === r ? 24 : r, + s = t.height, + u = void 0 === s ? 24 : s, + l = t.style, + c = void 0 === l ? {} : l, + f = (function(t, e) { + var n = {}; + for (var r in t) + e.indexOf(r) >= 0 || + (Object.prototype.hasOwnProperty.call(t, r) && (n[r] = t[r])); + return n; + })(t, ['fill', 'width', 'height', 'style']); + return a.default.createElement( + 'svg', + i( + { + viewBox: '0 0 24 24', + style: i({ fill: n, width: o, height: u }, c) + }, + f + ), + a.default.createElement('path', { + d: + 'M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z' + }) + ); + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.ChromePointer = void 0); + var r = o(n(0)), + i = o(n(3)); + function o(t) { + return t && t.__esModule ? t : { default: t }; + } + var a = (e.ChromePointer = function() { + var t = (0, i.default)({ + default: { + picker: { + width: '12px', + height: '12px', + borderRadius: '6px', + transform: 'translate(-6px, -1px)', + backgroundColor: 'rgb(248, 248, 248)', + boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)' + } + } + }); + return r.default.createElement('div', { style: t.picker }); + }); + e.default = a; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.ChromePointerCircle = void 0); + var r = o(n(0)), + i = o(n(3)); + function o(t) { + return t && t.__esModule ? t : { default: t }; + } + var a = (e.ChromePointerCircle = function() { + var t = (0, i.default)({ + default: { + picker: { + width: '12px', + height: '12px', + borderRadius: '6px', + boxShadow: 'inset 0 0 0 1px #fff', + transform: 'translate(-6px, -6px)' + } + } + }); + return r.default.createElement('div', { style: t.picker }); + }); + e.default = a; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.Compact = void 0); + var r = d(n(0)), + i = d(n(1)), + o = d(n(3)), + a = d(n(28)), + s = d(n(10)), + u = d(n(23)), + l = n(6), + c = d(n(410)), + f = d(n(411)); + function d(t) { + return t && t.__esModule ? t : { default: t }; + } + var h = (e.Compact = function(t) { + var e = t.onChange, + n = t.onSwatchHover, + i = t.colors, + d = t.hex, + h = t.rgb, + p = t.styles, + g = void 0 === p ? {} : p, + m = t.className, + v = void 0 === m ? '' : m, + y = (0, o.default)( + (0, s.default)( + { + default: { + Compact: { background: '#f6f6f6', radius: '4px' }, + compact: { + paddingTop: '5px', + paddingLeft: '5px', + boxSizing: 'initial', + width: '240px' + }, + clear: { clear: 'both' } + } + }, + g + ) + ), + b = function(t, n) { + t.hex + ? u.default.isValidHex(t.hex) && + e({ hex: t.hex, source: 'hex' }, n) + : e(t, n); + }; + return r.default.createElement( + l.Raised, + { style: y.Compact, styles: g }, + r.default.createElement( + 'div', + { style: y.compact, className: 'compact-picker ' + v }, + r.default.createElement( + 'div', + null, + (0, a.default)(i, function(t) { + return r.default.createElement(c.default, { + key: t, + color: t, + active: t.toLowerCase() === d, + onClick: b, + onSwatchHover: n + }); + }), + r.default.createElement('div', { style: y.clear }) + ), + r.default.createElement(f.default, { hex: d, rgb: h, onChange: b }) + ) + ); + }); + (h.propTypes = { + colors: i.default.arrayOf(i.default.string), + styles: i.default.object + }), + (h.defaultProps = { + colors: [ + '#4D4D4D', + '#999999', + '#FFFFFF', + '#F44E3B', + '#FE9200', + '#FCDC00', + '#DBDF00', + '#A4DD00', + '#68CCCA', + '#73D8FF', + '#AEA1FF', + '#FDA1FF', + '#333333', + '#808080', + '#cccccc', + '#D33115', + '#E27300', + '#FCC400', + '#B0BC00', + '#68BC00', + '#16A5A5', + '#009CE0', + '#7B64FF', + '#FA28FF', + '#000000', + '#666666', + '#B3B3B3', + '#9F0500', + '#C45100', + '#FB9E00', + '#808900', + '#194D33', + '#0C797D', + '#0062B1', + '#653294', + '#AB149E' + ], + styles: {} + }), + (e.default = (0, l.ColorWrap)(h)); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.CompactColor = void 0); + var r = s(n(0)), + i = s(n(3)), + o = s(n(23)), + a = n(6); + function s(t) { + return t && t.__esModule ? t : { default: t }; + } + var u = (e.CompactColor = function(t) { + var e = t.color, + n = t.onClick, + s = void 0 === n ? function() {} : n, + u = t.onSwatchHover, + l = t.active, + c = (0, i.default)( + { + default: { + color: { + background: e, + width: '15px', + height: '15px', + float: 'left', + marginRight: '5px', + marginBottom: '5px', + position: 'relative', + cursor: 'pointer' + }, + dot: { + absolute: '5px 5px 5px 5px', + background: o.default.getContrastingColor(e), + borderRadius: '50%', + opacity: '0' + } + }, + active: { dot: { opacity: '1' } }, + 'color-#FFFFFF': { + color: { boxShadow: 'inset 0 0 0 1px #ddd' }, + dot: { background: '#000' } + }, + transparent: { dot: { background: '#000' } } + }, + { + active: l, + 'color-#FFFFFF': '#FFFFFF' === e, + transparent: 'transparent' === e + } + ); + return r.default.createElement( + a.Swatch, + { + style: c.color, + color: e, + onClick: s, + onHover: u, + focusStyle: { boxShadow: '0 0 4px ' + e } + }, + r.default.createElement('div', { style: c.dot }) + ); + }); + e.default = u; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.CompactFields = void 0); + var r = a(n(0)), + i = a(n(3)), + o = n(6); + function a(t) { + return t && t.__esModule ? t : { default: t }; + } + var s = (e.CompactFields = function(t) { + var e = t.hex, + n = t.rgb, + a = t.onChange, + s = (0, i.default)({ + default: { + fields: { + display: 'flex', + paddingBottom: '6px', + paddingRight: '5px', + position: 'relative' + }, + active: { + position: 'absolute', + top: '6px', + left: '5px', + height: '9px', + width: '9px', + background: e + }, + HEXwrap: { flex: '6', position: 'relative' }, + HEXinput: { + width: '80%', + padding: '0px', + paddingLeft: '20%', + border: 'none', + outline: 'none', + background: 'none', + fontSize: '12px', + color: '#333', + height: '16px' + }, + HEXlabel: { display: 'none' }, + RGBwrap: { flex: '3', position: 'relative' }, + RGBinput: { + width: '70%', + padding: '0px', + paddingLeft: '30%', + border: 'none', + outline: 'none', + background: 'none', + fontSize: '12px', + color: '#333', + height: '16px' + }, + RGBlabel: { + position: 'absolute', + top: '3px', + left: '0px', + lineHeight: '16px', + textTransform: 'uppercase', + fontSize: '12px', + color: '#999' + } + } + }), + u = function(t, e) { + t.r || t.g || t.b + ? a( + { + r: t.r || n.r, + g: t.g || n.g, + b: t.b || n.b, + source: 'rgb' + }, + e + ) + : a({ hex: t.hex, source: 'hex' }, e); + }; + return r.default.createElement( + 'div', + { style: s.fields, className: 'flexbox-fix' }, + r.default.createElement('div', { style: s.active }), + r.default.createElement(o.EditableInput, { + style: { wrap: s.HEXwrap, input: s.HEXinput, label: s.HEXlabel }, + label: 'hex', + value: e, + onChange: u + }), + r.default.createElement(o.EditableInput, { + style: { wrap: s.RGBwrap, input: s.RGBinput, label: s.RGBlabel }, + label: 'r', + value: n.r, + onChange: u + }), + r.default.createElement(o.EditableInput, { + style: { wrap: s.RGBwrap, input: s.RGBinput, label: s.RGBlabel }, + label: 'g', + value: n.g, + onChange: u + }), + r.default.createElement(o.EditableInput, { + style: { wrap: s.RGBwrap, input: s.RGBinput, label: s.RGBlabel }, + label: 'b', + value: n.b, + onChange: u + }) + ); + }); + e.default = s; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.Github = void 0); + var r = c(n(0)), + i = c(n(1)), + o = c(n(3)), + a = c(n(28)), + s = c(n(10)), + u = n(6), + l = c(n(413)); + function c(t) { + return t && t.__esModule ? t : { default: t }; + } + var f = (e.Github = function(t) { + var e = t.width, + n = t.colors, + i = t.onChange, + u = t.onSwatchHover, + c = t.triangle, + f = t.styles, + d = void 0 === f ? {} : f, + h = t.className, + p = void 0 === h ? '' : h, + g = (0, o.default)( + (0, s.default)( + { + default: { + card: { + width: e, + background: '#fff', + border: '1px solid rgba(0,0,0,0.2)', + boxShadow: '0 3px 12px rgba(0,0,0,0.15)', + borderRadius: '4px', + position: 'relative', + padding: '5px', + display: 'flex', + flexWrap: 'wrap' + }, + triangle: { + position: 'absolute', + border: '7px solid transparent', + borderBottomColor: '#fff' + }, + triangleShadow: { + position: 'absolute', + border: '8px solid transparent', + borderBottomColor: 'rgba(0,0,0,0.15)' + } + }, + 'hide-triangle': { + triangle: { display: 'none' }, + triangleShadow: { display: 'none' } + }, + 'top-left-triangle': { + triangle: { top: '-14px', left: '10px' }, + triangleShadow: { top: '-16px', left: '9px' } + }, + 'top-right-triangle': { + triangle: { top: '-14px', right: '10px' }, + triangleShadow: { top: '-16px', right: '9px' } + }, + 'bottom-left-triangle': { + triangle: { + top: '35px', + left: '10px', + transform: 'rotate(180deg)' + }, + triangleShadow: { + top: '37px', + left: '9px', + transform: 'rotate(180deg)' + } + }, + 'bottom-right-triangle': { + triangle: { + top: '35px', + right: '10px', + transform: 'rotate(180deg)' + }, + triangleShadow: { + top: '37px', + right: '9px', + transform: 'rotate(180deg)' + } + } + }, + d + ), + { + 'hide-triangle': 'hide' === c, + 'top-left-triangle': 'top-left' === c, + 'top-right-triangle': 'top-right' === c, + 'bottom-left-triangle': 'bottom-left' === c, + 'bottom-right-triangle': 'bottom-right' === c + } + ), + m = function(t, e) { + return i({ hex: t, source: 'hex' }, e); + }; + return r.default.createElement( + 'div', + { style: g.card, className: 'github-picker ' + p }, + r.default.createElement('div', { style: g.triangleShadow }), + r.default.createElement('div', { style: g.triangle }), + (0, a.default)(n, function(t) { + return r.default.createElement(l.default, { + color: t, + key: t, + onClick: m, + onSwatchHover: u + }); + }) + ); + }); + (f.propTypes = { + width: i.default.oneOfType([i.default.string, i.default.number]), + colors: i.default.arrayOf(i.default.string), + triangle: i.default.oneOf([ + 'hide', + 'top-left', + 'top-right', + 'bottom-left', + 'bottom-right' + ]), + styles: i.default.object + }), + (f.defaultProps = { + width: 200, + colors: [ + '#B80000', + '#DB3E00', + '#FCCB00', + '#008B02', + '#006B76', + '#1273DE', + '#004DCF', + '#5300EB', + '#EB9694', + '#FAD0C3', + '#FEF3BD', + '#C1E1C5', + '#BEDADC', + '#C4DEF6', + '#BED3F3', + '#D4C4FB' + ], + triangle: 'top-left', + styles: {} + }), + (e.default = (0, u.ColorWrap)(f)); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.GithubSwatch = void 0); + var r = s(n(0)), + i = n(3), + o = s(i), + a = n(6); + function s(t) { + return t && t.__esModule ? t : { default: t }; + } + var u = (e.GithubSwatch = function(t) { + var e = t.hover, + n = t.color, + i = t.onClick, + s = t.onSwatchHover, + u = { + position: 'relative', + zIndex: '2', + outline: '2px solid #fff', + boxShadow: '0 0 5px 2px rgba(0,0,0,0.25)' + }, + l = (0, o.default)( + { + default: { + swatch: { width: '25px', height: '25px', fontSize: '0' } + }, + hover: { swatch: u } + }, + { hover: e } + ); + return r.default.createElement( + 'div', + { style: l.swatch }, + r.default.createElement(a.Swatch, { + color: n, + onClick: i, + onHover: s, + focusStyle: u + }) + ); + }); + e.default = (0, i.handleHover)(u); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.HuePicker = void 0); + var r = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); + } + return t; + }, + i = c(n(0)), + o = c(n(1)), + a = c(n(3)), + s = c(n(10)), + u = n(6), + l = c(n(415)); + function c(t) { + return t && t.__esModule ? t : { default: t }; + } + var f = (e.HuePicker = function(t) { + var e = t.width, + n = t.height, + o = t.onChange, + l = t.hsl, + c = t.direction, + f = t.pointer, + d = t.styles, + h = void 0 === d ? {} : d, + p = t.className, + g = void 0 === p ? '' : p, + m = (0, a.default)( + (0, s.default)( + { + default: { + picker: { position: 'relative', width: e, height: n }, + hue: { radius: '2px' } + } + }, + h + ) + ); + return i.default.createElement( + 'div', + { style: m.picker, className: 'hue-picker ' + g }, + i.default.createElement( + u.Hue, + r({}, m.hue, { + hsl: l, + pointer: f, + onChange: function(t) { + return o({ a: 1, h: t.h, l: 0.5, s: 1 }); + }, + direction: c + }) + ) + ); + }); + (f.propTypes = { styles: o.default.object }), + (f.defaultProps = { + width: '316px', + height: '16px', + direction: 'horizontal', + pointer: l.default, + styles: {} + }), + (e.default = (0, u.ColorWrap)(f)); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.SliderPointer = void 0); + var r = o(n(0)), + i = o(n(3)); + function o(t) { + return t && t.__esModule ? t : { default: t }; + } + var a = (e.SliderPointer = function(t) { + var e = t.direction, + n = (0, i.default)( + { + default: { + picker: { + width: '18px', + height: '18px', + borderRadius: '50%', + transform: 'translate(-9px, -1px)', + backgroundColor: 'rgb(248, 248, 248)', + boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)' + } + }, + vertical: { picker: { transform: 'translate(-3px, -9px)' } } + }, + { vertical: 'vertical' === e } + ); + return r.default.createElement('div', { style: n.picker }); + }); + e.default = a; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.Material = void 0); + var r = u(n(0)), + i = u(n(3)), + o = u(n(10)), + a = u(n(23)), + s = n(6); + function u(t) { + return t && t.__esModule ? t : { default: t }; + } + var l = (e.Material = function(t) { + var e = t.onChange, + n = t.hex, + u = t.rgb, + l = t.styles, + c = void 0 === l ? {} : l, + f = t.className, + d = void 0 === f ? '' : f, + h = (0, i.default)( + (0, o.default)( + { + default: { + material: { + width: '98px', + height: '98px', + padding: '16px', + fontFamily: 'Roboto' + }, + HEXwrap: { position: 'relative' }, + HEXinput: { + width: '100%', + marginTop: '12px', + fontSize: '15px', + color: '#333', + padding: '0px', + border: '0px', + borderBottom: '2px solid ' + n, + outline: 'none', + height: '30px' + }, + HEXlabel: { + position: 'absolute', + top: '0px', + left: '0px', + fontSize: '11px', + color: '#999999', + textTransform: 'capitalize' + }, + Hex: { style: {} }, + RGBwrap: { position: 'relative' }, + RGBinput: { + width: '100%', + marginTop: '12px', + fontSize: '15px', + color: '#333', + padding: '0px', + border: '0px', + borderBottom: '1px solid #eee', + outline: 'none', + height: '30px' + }, + RGBlabel: { + position: 'absolute', + top: '0px', + left: '0px', + fontSize: '11px', + color: '#999999', + textTransform: 'capitalize' + }, + split: { + display: 'flex', + marginRight: '-10px', + paddingTop: '11px' + }, + third: { flex: '1', paddingRight: '10px' } + } + }, + c + ) + ), + p = function(t, n) { + t.hex + ? a.default.isValidHex(t.hex) && + e({ hex: t.hex, source: 'hex' }, n) + : (t.r || t.g || t.b) && + e( + { + r: t.r || u.r, + g: t.g || u.g, + b: t.b || u.b, + source: 'rgb' + }, + n + ); + }; + return r.default.createElement( + s.Raised, + { styles: c }, + r.default.createElement( + 'div', + { style: h.material, className: 'material-picker ' + d }, + r.default.createElement(s.EditableInput, { + style: { wrap: h.HEXwrap, input: h.HEXinput, label: h.HEXlabel }, + label: 'hex', + value: n, + onChange: p + }), + r.default.createElement( + 'div', + { style: h.split, className: 'flexbox-fix' }, + r.default.createElement( + 'div', + { style: h.third }, + r.default.createElement(s.EditableInput, { + style: { + wrap: h.RGBwrap, + input: h.RGBinput, + label: h.RGBlabel + }, + label: 'r', + value: u.r, + onChange: p + }) + ), + r.default.createElement( + 'div', + { style: h.third }, + r.default.createElement(s.EditableInput, { + style: { + wrap: h.RGBwrap, + input: h.RGBinput, + label: h.RGBlabel + }, + label: 'g', + value: u.g, + onChange: p + }) + ), + r.default.createElement( + 'div', + { style: h.third }, + r.default.createElement(s.EditableInput, { + style: { + wrap: h.RGBwrap, + input: h.RGBinput, + label: h.RGBlabel + }, + label: 'b', + value: u.b, + onChange: p + }) + ) + ) + ) + ); + }); + e.default = (0, s.ColorWrap)(l); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.Photoshop = void 0); + var r = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(), + i = p(n(0)), + o = p(n(1)), + a = p(n(3)), + s = p(n(10)), + u = n(6), + l = p(n(418)), + c = p(n(419)), + f = p(n(420)), + d = p(n(421)), + h = p(n(422)); + function p(t) { + return t && t.__esModule ? t : { default: t }; + } + var g = (e.Photoshop = (function(t) { + function e(t) { + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + })(this, e); + var n = (function(t, e) { + if (!t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !e || ('object' != typeof e && 'function' != typeof e) + ? t + : e; + })(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this)); + return (n.state = { currentColor: t.hex }), n; + } + return ( + (function(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof e + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { + value: t, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + e && + (Object.setPrototypeOf + ? Object.setPrototypeOf(t, e) + : (t.__proto__ = e)); + })(e, t), + r(e, [ + { + key: 'render', + value: function() { + var t = this.props, + e = t.styles, + n = void 0 === e ? {} : e, + r = t.className, + o = void 0 === r ? '' : r, + p = (0, a.default)( + (0, s.default)( + { + default: { + picker: { + background: '#DCDCDC', + borderRadius: '4px', + boxShadow: + '0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)', + boxSizing: 'initial', + width: '513px' + }, + head: { + backgroundImage: + 'linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)', + borderBottom: '1px solid #B1B1B1', + boxShadow: + 'inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)', + height: '23px', + lineHeight: '24px', + borderRadius: '4px 4px 0 0', + fontSize: '13px', + color: '#4D4D4D', + textAlign: 'center' + }, + body: { padding: '15px 15px 0', display: 'flex' }, + saturation: { + width: '256px', + height: '256px', + position: 'relative', + border: '2px solid #B3B3B3', + borderBottom: '2px solid #F0F0F0', + overflow: 'hidden' + }, + hue: { + position: 'relative', + height: '256px', + width: '19px', + marginLeft: '10px', + border: '2px solid #B3B3B3', + borderBottom: '2px solid #F0F0F0' + }, + controls: { width: '180px', marginLeft: '10px' }, + top: { display: 'flex' }, + previews: { width: '60px' }, + actions: { flex: '1', marginLeft: '20px' } + } + }, + n + ) + ); + return i.default.createElement( + 'div', + { style: p.picker, className: 'photoshop-picker ' + o }, + i.default.createElement( + 'div', + { style: p.head }, + this.props.header + ), + i.default.createElement( + 'div', + { style: p.body, className: 'flexbox-fix' }, + i.default.createElement( + 'div', + { style: p.saturation }, + i.default.createElement(u.Saturation, { + hsl: this.props.hsl, + hsv: this.props.hsv, + pointer: c.default, + onChange: this.props.onChange + }) + ), + i.default.createElement( + 'div', + { style: p.hue }, + i.default.createElement(u.Hue, { + direction: 'vertical', + hsl: this.props.hsl, + pointer: f.default, + onChange: this.props.onChange + }) + ), + i.default.createElement( + 'div', + { style: p.controls }, + i.default.createElement( + 'div', + { style: p.top, className: 'flexbox-fix' }, + i.default.createElement( + 'div', + { style: p.previews }, + i.default.createElement(h.default, { + rgb: this.props.rgb, + currentColor: this.state.currentColor + }) + ), + i.default.createElement( + 'div', + { style: p.actions }, + i.default.createElement(d.default, { + label: 'OK', + onClick: this.props.onAccept, + active: !0 + }), + i.default.createElement(d.default, { + label: 'Cancel', + onClick: this.props.onCancel + }), + i.default.createElement(l.default, { + onChange: this.props.onChange, + rgb: this.props.rgb, + hsv: this.props.hsv, + hex: this.props.hex + }) + ) + ) + ) + ) + ); + } + } + ]), + e + ); + })(i.default.Component)); + (g.propTypes = { header: o.default.string, styles: o.default.object }), + (g.defaultProps = { header: 'Color Picker', styles: {} }), + (e.default = (0, u.ColorWrap)(g)); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.PhotoshopPicker = void 0); + var r = s(n(0)), + i = s(n(3)), + o = s(n(23)), + a = n(6); + function s(t) { + return t && t.__esModule ? t : { default: t }; + } + var u = (e.PhotoshopPicker = function(t) { + var e = t.onChange, + n = t.rgb, + s = t.hsv, + u = t.hex, + l = (0, i.default)({ + default: { + fields: { + paddingTop: '5px', + paddingBottom: '9px', + width: '80px', + position: 'relative' + }, + divider: { height: '5px' }, + RGBwrap: { position: 'relative' }, + RGBinput: { + marginLeft: '40%', + width: '40%', + height: '18px', + border: '1px solid #888888', + boxShadow: 'inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC', + marginBottom: '5px', + fontSize: '13px', + paddingLeft: '3px', + marginRight: '10px' + }, + RGBlabel: { + left: '0px', + width: '34px', + textTransform: 'uppercase', + fontSize: '13px', + height: '18px', + lineHeight: '22px', + position: 'absolute' + }, + HEXwrap: { position: 'relative' }, + HEXinput: { + marginLeft: '20%', + width: '80%', + height: '18px', + border: '1px solid #888888', + boxShadow: 'inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC', + marginBottom: '6px', + fontSize: '13px', + paddingLeft: '3px' + }, + HEXlabel: { + position: 'absolute', + top: '0px', + left: '0px', + width: '14px', + textTransform: 'uppercase', + fontSize: '13px', + height: '18px', + lineHeight: '22px' + }, + fieldSymbols: { + position: 'absolute', + top: '5px', + right: '-7px', + fontSize: '13px' + }, + symbol: { + height: '20px', + lineHeight: '22px', + paddingBottom: '7px' + } + } + }), + c = function(t, r) { + t['#'] + ? o.default.isValidHex(t['#']) && + e({ hex: t['#'], source: 'hex' }, r) + : t.r || t.g || t.b + ? e( + { + r: t.r || n.r, + g: t.g || n.g, + b: t.b || n.b, + source: 'rgb' + }, + r + ) + : (t.h || t.s || t.v) && + e( + { + h: t.h || s.h, + s: t.s || s.s, + v: t.v || s.v, + source: 'hsv' + }, + r + ); + }; + return r.default.createElement( + 'div', + { style: l.fields }, + r.default.createElement(a.EditableInput, { + style: { wrap: l.RGBwrap, input: l.RGBinput, label: l.RGBlabel }, + label: 'h', + value: Math.round(s.h), + onChange: c + }), + r.default.createElement(a.EditableInput, { + style: { wrap: l.RGBwrap, input: l.RGBinput, label: l.RGBlabel }, + label: 's', + value: Math.round(100 * s.s), + onChange: c + }), + r.default.createElement(a.EditableInput, { + style: { wrap: l.RGBwrap, input: l.RGBinput, label: l.RGBlabel }, + label: 'v', + value: Math.round(100 * s.v), + onChange: c + }), + r.default.createElement('div', { style: l.divider }), + r.default.createElement(a.EditableInput, { + style: { wrap: l.RGBwrap, input: l.RGBinput, label: l.RGBlabel }, + label: 'r', + value: n.r, + onChange: c + }), + r.default.createElement(a.EditableInput, { + style: { wrap: l.RGBwrap, input: l.RGBinput, label: l.RGBlabel }, + label: 'g', + value: n.g, + onChange: c + }), + r.default.createElement(a.EditableInput, { + style: { wrap: l.RGBwrap, input: l.RGBinput, label: l.RGBlabel }, + label: 'b', + value: n.b, + onChange: c + }), + r.default.createElement('div', { style: l.divider }), + r.default.createElement(a.EditableInput, { + style: { wrap: l.HEXwrap, input: l.HEXinput, label: l.HEXlabel }, + label: '#', + value: u.replace('#', ''), + onChange: c + }), + r.default.createElement( + 'div', + { style: l.fieldSymbols }, + r.default.createElement('div', { style: l.symbol }, '°'), + r.default.createElement('div', { style: l.symbol }, '%'), + r.default.createElement('div', { style: l.symbol }, '%') + ) + ); + }); + e.default = u; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.PhotoshopPointerCircle = void 0); + var r = o(n(0)), + i = o(n(3)); + function o(t) { + return t && t.__esModule ? t : { default: t }; + } + var a = (e.PhotoshopPointerCircle = function(t) { + var e = t.hsl, + n = (0, i.default)( + { + default: { + picker: { + width: '12px', + height: '12px', + borderRadius: '6px', + boxShadow: 'inset 0 0 0 1px #fff', + transform: 'translate(-6px, -6px)' + } + }, + 'black-outline': { picker: { boxShadow: 'inset 0 0 0 1px #000' } } + }, + { 'black-outline': e.l > 0.5 } + ); + return r.default.createElement('div', { style: n.picker }); + }); + e.default = a; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.PhotoshopPointerCircle = void 0); + var r = o(n(0)), + i = o(n(3)); + function o(t) { + return t && t.__esModule ? t : { default: t }; + } + var a = (e.PhotoshopPointerCircle = function() { + var t = (0, i.default)({ + default: { + triangle: { + width: 0, + height: 0, + borderStyle: 'solid', + borderWidth: '4px 0 4px 6px', + borderColor: 'transparent transparent transparent #fff', + position: 'absolute', + top: '1px', + left: '1px' + }, + triangleBorder: { + width: 0, + height: 0, + borderStyle: 'solid', + borderWidth: '5px 0 5px 8px', + borderColor: 'transparent transparent transparent #555' + }, + left: { + Extend: 'triangleBorder', + transform: 'translate(-13px, -4px)' + }, + leftInside: { + Extend: 'triangle', + transform: 'translate(-8px, -5px)' + }, + right: { + Extend: 'triangleBorder', + transform: 'translate(20px, -14px) rotate(180deg)' + }, + rightInside: { + Extend: 'triangle', + transform: 'translate(-8px, -5px)' + } + } + }); + return r.default.createElement( + 'div', + { style: t.pointer }, + r.default.createElement( + 'div', + { style: t.left }, + r.default.createElement('div', { style: t.leftInside }) + ), + r.default.createElement( + 'div', + { style: t.right }, + r.default.createElement('div', { style: t.rightInside }) + ) + ); + }); + e.default = a; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.PhotoshopButton = void 0); + var r = o(n(0)), + i = o(n(3)); + function o(t) { + return t && t.__esModule ? t : { default: t }; + } + var a = (e.PhotoshopButton = function(t) { + var e = t.onClick, + n = t.label, + o = t.children, + a = t.active, + s = (0, i.default)( + { + default: { + button: { + backgroundImage: + 'linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)', + border: '1px solid #878787', + borderRadius: '2px', + height: '20px', + boxShadow: '0 1px 0 0 #EAEAEA', + fontSize: '14px', + color: '#000', + lineHeight: '20px', + textAlign: 'center', + marginBottom: '10px', + cursor: 'pointer' + } + }, + active: { button: { boxShadow: '0 0 0 1px #878787' } } + }, + { active: a } + ); + return r.default.createElement( + 'div', + { style: s.button, onClick: e }, + n || o + ); + }); + e.default = a; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.PhotoshopPreviews = void 0); + var r = o(n(0)), + i = o(n(3)); + function o(t) { + return t && t.__esModule ? t : { default: t }; + } + var a = (e.PhotoshopPreviews = function(t) { + var e = t.rgb, + n = t.currentColor, + o = (0, i.default)({ + default: { + swatches: { + border: '1px solid #B3B3B3', + borderBottom: '1px solid #F0F0F0', + marginBottom: '2px', + marginTop: '1px' + }, + new: { + height: '34px', + background: 'rgb(' + e.r + ',' + e.g + ', ' + e.b + ')', + boxShadow: + 'inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000' + }, + current: { + height: '34px', + background: n, + boxShadow: + 'inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000' + }, + label: { fontSize: '14px', color: '#000', textAlign: 'center' } + } + }); + return r.default.createElement( + 'div', + null, + r.default.createElement('div', { style: o.label }, 'new'), + r.default.createElement( + 'div', + { style: o.swatches }, + r.default.createElement('div', { style: o.new }), + r.default.createElement('div', { style: o.current }) + ), + r.default.createElement('div', { style: o.label }, 'current') + ); + }); + e.default = a; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.Sketch = void 0); + var r = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); + } + return t; + }, + i = f(n(0)), + o = f(n(1)), + a = f(n(3)), + s = f(n(10)), + u = n(6), + l = f(n(424)), + c = f(n(425)); + function f(t) { + return t && t.__esModule ? t : { default: t }; + } + var d = (e.Sketch = function(t) { + var e = t.width, + n = t.rgb, + o = t.hex, + f = t.hsv, + d = t.hsl, + h = t.onChange, + p = t.onSwatchHover, + g = t.disableAlpha, + m = t.presetColors, + v = t.renderers, + y = t.styles, + b = void 0 === y ? {} : y, + _ = t.className, + x = void 0 === _ ? '' : _, + w = (0, a.default)( + (0, s.default)( + { + default: r( + { + picker: { + width: e, + padding: '10px 10px 0', + boxSizing: 'initial', + background: '#fff', + borderRadius: '4px', + boxShadow: + '0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)' + }, + saturation: { + width: '100%', + paddingBottom: '75%', + position: 'relative', + overflow: 'hidden' + }, + Saturation: { + radius: '3px', + shadow: + 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)' + }, + controls: { display: 'flex' }, + sliders: { padding: '4px 0', flex: '1' }, + color: { + width: '24px', + height: '24px', + position: 'relative', + marginTop: '4px', + marginLeft: '4px', + borderRadius: '3px' + }, + activeColor: { + absolute: '0px 0px 0px 0px', + borderRadius: '2px', + background: + 'rgba(' + n.r + ',' + n.g + ',' + n.b + ',' + n.a + ')', + boxShadow: + 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)' + }, + hue: { + position: 'relative', + height: '10px', + overflow: 'hidden' + }, + Hue: { + radius: '2px', + shadow: + 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)' + }, + alpha: { + position: 'relative', + height: '10px', + marginTop: '4px', + overflow: 'hidden' + }, + Alpha: { + radius: '2px', + shadow: + 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)' + } + }, + b + ), + disableAlpha: { + color: { height: '10px' }, + hue: { height: '10px' }, + alpha: { display: 'none' } + } + }, + b + ), + { disableAlpha: g } + ); + return i.default.createElement( + 'div', + { style: w.picker, className: 'sketch-picker ' + x }, + i.default.createElement( + 'div', + { style: w.saturation }, + i.default.createElement(u.Saturation, { + style: w.Saturation, + hsl: d, + hsv: f, + onChange: h + }) + ), + i.default.createElement( + 'div', + { style: w.controls, className: 'flexbox-fix' }, + i.default.createElement( + 'div', + { style: w.sliders }, + i.default.createElement( + 'div', + { style: w.hue }, + i.default.createElement(u.Hue, { + style: w.Hue, + hsl: d, + onChange: h + }) + ), + i.default.createElement( + 'div', + { style: w.alpha }, + i.default.createElement(u.Alpha, { + style: w.Alpha, + rgb: n, + hsl: d, + renderers: v, + onChange: h + }) + ) + ), + i.default.createElement( + 'div', + { style: w.color }, + i.default.createElement(u.Checkboard, null), + i.default.createElement('div', { style: w.activeColor }) + ) + ), + i.default.createElement(l.default, { + rgb: n, + hsl: d, + hex: o, + onChange: h, + disableAlpha: g + }), + i.default.createElement(c.default, { + colors: m, + onClick: h, + onSwatchHover: p + }) + ); + }); + (d.propTypes = { + disableAlpha: o.default.bool, + width: o.default.oneOfType([o.default.string, o.default.number]), + styles: o.default.object + }), + (d.defaultProps = { + disableAlpha: !1, + width: 200, + styles: {}, + presetColors: [ + '#D0021B', + '#F5A623', + '#F8E71C', + '#8B572A', + '#7ED321', + '#417505', + '#BD10E0', + '#9013FE', + '#4A90E2', + '#50E3C2', + '#B8E986', + '#000000', + '#4A4A4A', + '#9B9B9B', + '#FFFFFF' + ] + }), + (e.default = (0, u.ColorWrap)(d)); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.SketchFields = void 0); + var r = s(n(0)), + i = s(n(3)), + o = s(n(23)), + a = n(6); + function s(t) { + return t && t.__esModule ? t : { default: t }; + } + var u = (e.SketchFields = function(t) { + var e = t.onChange, + n = t.rgb, + s = t.hsl, + u = t.hex, + l = t.disableAlpha, + c = (0, i.default)( + { + default: { + fields: { display: 'flex', paddingTop: '4px' }, + single: { flex: '1', paddingLeft: '6px' }, + alpha: { flex: '1', paddingLeft: '6px' }, + double: { flex: '2' }, + input: { + width: '80%', + padding: '4px 10% 3px', + border: 'none', + boxShadow: 'inset 0 0 0 1px #ccc', + fontSize: '11px' + }, + label: { + display: 'block', + textAlign: 'center', + fontSize: '11px', + color: '#222', + paddingTop: '3px', + paddingBottom: '4px', + textTransform: 'capitalize' + } + }, + disableAlpha: { alpha: { display: 'none' } } + }, + { disableAlpha: l } + ), + f = function(t, r) { + t.hex + ? o.default.isValidHex(t.hex) && + e({ hex: t.hex, source: 'hex' }, r) + : t.r || t.g || t.b + ? e( + { + r: t.r || n.r, + g: t.g || n.g, + b: t.b || n.b, + a: n.a, + source: 'rgb' + }, + r + ) + : t.a && + (t.a < 0 ? (t.a = 0) : t.a > 100 && (t.a = 100), + (t.a /= 100), + e({ h: s.h, s: s.s, l: s.l, a: t.a, source: 'rgb' }, r)); + }; + return r.default.createElement( + 'div', + { style: c.fields, className: 'flexbox-fix' }, + r.default.createElement( + 'div', + { style: c.double }, + r.default.createElement(a.EditableInput, { + style: { input: c.input, label: c.label }, + label: 'hex', + value: u.replace('#', ''), + onChange: f + }) + ), + r.default.createElement( + 'div', + { style: c.single }, + r.default.createElement(a.EditableInput, { + style: { input: c.input, label: c.label }, + label: 'r', + value: n.r, + onChange: f, + dragLabel: 'true', + dragMax: '255' + }) + ), + r.default.createElement( + 'div', + { style: c.single }, + r.default.createElement(a.EditableInput, { + style: { input: c.input, label: c.label }, + label: 'g', + value: n.g, + onChange: f, + dragLabel: 'true', + dragMax: '255' + }) + ), + r.default.createElement( + 'div', + { style: c.single }, + r.default.createElement(a.EditableInput, { + style: { input: c.input, label: c.label }, + label: 'b', + value: n.b, + onChange: f, + dragLabel: 'true', + dragMax: '255' + }) + ), + r.default.createElement( + 'div', + { style: c.alpha }, + r.default.createElement(a.EditableInput, { + style: { input: c.input, label: c.label }, + label: 'a', + value: Math.round(100 * n.a), + onChange: f, + dragLabel: 'true', + dragMax: '100' + }) + ) + ); + }); + e.default = u; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.SketchPresetColors = void 0); + var r = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); + } + return t; + }, + i = u(n(0)), + o = u(n(1)), + a = u(n(3)), + s = n(6); + function u(t) { + return t && t.__esModule ? t : { default: t }; + } + var l = (e.SketchPresetColors = function(t) { + var e = t.colors, + n = t.onClick, + o = void 0 === n ? function() {} : n, + u = t.onSwatchHover, + l = (0, a.default)( + { + default: { + colors: { + margin: '0 -10px', + padding: '10px 0 0 10px', + borderTop: '1px solid #eee', + display: 'flex', + flexWrap: 'wrap', + position: 'relative' + }, + swatchWrap: { + width: '16px', + height: '16px', + margin: '0 10px 10px 0' + }, + swatch: { + borderRadius: '3px', + boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.15)' + } + }, + 'no-presets': { colors: { display: 'none' } } + }, + { 'no-presets': !e || !e.length } + ), + c = function(t, e) { + o({ hex: t, source: 'hex' }, e); + }; + return i.default.createElement( + 'div', + { style: l.colors, className: 'flexbox-fix' }, + e.map(function(t) { + var e = 'string' == typeof t ? { color: t } : t, + n = '' + e.color + (e.title || ''); + return i.default.createElement( + 'div', + { key: n, style: l.swatchWrap }, + i.default.createElement( + s.Swatch, + r({}, e, { + style: l.swatch, + onClick: c, + onHover: u, + focusStyle: { + boxShadow: + 'inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px ' + e.color + } + }) + ) + ); + }) + ); + }); + (l.propTypes = { + colors: o.default.arrayOf( + o.default.oneOfType([ + o.default.string, + o.default.shape({ + color: o.default.string, + title: o.default.string + }) + ]) + ).isRequired + }), + (e.default = l); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.Slider = void 0); + var r = c(n(0)), + i = c(n(1)), + o = c(n(3)), + a = c(n(10)), + s = n(6), + u = c(n(427)), + l = c(n(429)); + function c(t) { + return t && t.__esModule ? t : { default: t }; + } + var f = (e.Slider = function(t) { + var e = t.hsl, + n = t.onChange, + i = t.pointer, + l = t.styles, + c = void 0 === l ? {} : l, + f = t.className, + d = void 0 === f ? '' : f, + h = (0, o.default)( + (0, a.default)( + { + default: { + hue: { height: '12px', position: 'relative' }, + Hue: { radius: '2px' } + } + }, + c + ) + ); + return r.default.createElement( + 'div', + { style: h.wrap || {}, className: 'slider-picker ' + d }, + r.default.createElement( + 'div', + { style: h.hue }, + r.default.createElement(s.Hue, { + style: h.Hue, + hsl: e, + pointer: i, + onChange: n + }) + ), + r.default.createElement( + 'div', + { style: h.swatches }, + r.default.createElement(u.default, { hsl: e, onClick: n }) + ) + ); + }); + (f.propTypes = { styles: i.default.object }), + (f.defaultProps = { pointer: l.default, styles: {} }), + (e.default = (0, s.ColorWrap)(f)); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.SliderSwatches = void 0); + var r = a(n(0)), + i = a(n(3)), + o = a(n(428)); + function a(t) { + return t && t.__esModule ? t : { default: t }; + } + var s = (e.SliderSwatches = function(t) { + var e = t.onClick, + n = t.hsl, + a = (0, i.default)({ + default: { + swatches: { marginTop: '20px' }, + swatch: { + boxSizing: 'border-box', + width: '20%', + paddingRight: '1px', + float: 'left' + }, + clear: { clear: 'both' } + } + }); + return r.default.createElement( + 'div', + { style: a.swatches }, + r.default.createElement( + 'div', + { style: a.swatch }, + r.default.createElement(o.default, { + hsl: n, + offset: '.80', + active: Math.abs(n.l - 0.8) < 0.1 && Math.abs(n.s - 0.5) < 0.1, + onClick: e, + first: !0 + }) + ), + r.default.createElement( + 'div', + { style: a.swatch }, + r.default.createElement(o.default, { + hsl: n, + offset: '.65', + active: Math.abs(n.l - 0.65) < 0.1 && Math.abs(n.s - 0.5) < 0.1, + onClick: e + }) + ), + r.default.createElement( + 'div', + { style: a.swatch }, + r.default.createElement(o.default, { + hsl: n, + offset: '.50', + active: Math.abs(n.l - 0.5) < 0.1 && Math.abs(n.s - 0.5) < 0.1, + onClick: e + }) + ), + r.default.createElement( + 'div', + { style: a.swatch }, + r.default.createElement(o.default, { + hsl: n, + offset: '.35', + active: Math.abs(n.l - 0.35) < 0.1 && Math.abs(n.s - 0.5) < 0.1, + onClick: e + }) + ), + r.default.createElement( + 'div', + { style: a.swatch }, + r.default.createElement(o.default, { + hsl: n, + offset: '.20', + active: Math.abs(n.l - 0.2) < 0.1 && Math.abs(n.s - 0.5) < 0.1, + onClick: e, + last: !0 + }) + ), + r.default.createElement('div', { style: a.clear }) + ); + }); + e.default = s; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.SliderSwatch = void 0); + var r = o(n(0)), + i = o(n(3)); + function o(t) { + return t && t.__esModule ? t : { default: t }; + } + var a = (e.SliderSwatch = function(t) { + var e = t.hsl, + n = t.offset, + o = t.onClick, + a = void 0 === o ? function() {} : o, + s = t.active, + u = t.first, + l = t.last, + c = (0, i.default)( + { + default: { + swatch: { + height: '12px', + background: 'hsl(' + e.h + ', 50%, ' + 100 * n + '%)', + cursor: 'pointer' + } + }, + first: { swatch: { borderRadius: '2px 0 0 2px' } }, + last: { swatch: { borderRadius: '0 2px 2px 0' } }, + active: { + swatch: { transform: 'scaleY(1.8)', borderRadius: '3.6px/2px' } + } + }, + { active: s, first: u, last: l } + ); + return r.default.createElement('div', { + style: c.swatch, + onClick: function(t) { + return a({ h: e.h, s: 0.5, l: n, source: 'hsl' }, t); + } + }); + }); + e.default = a; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.SliderPointer = void 0); + var r = o(n(0)), + i = o(n(3)); + function o(t) { + return t && t.__esModule ? t : { default: t }; + } + var a = (e.SliderPointer = function() { + var t = (0, i.default)({ + default: { + picker: { + width: '14px', + height: '14px', + borderRadius: '6px', + transform: 'translate(-7px, -1px)', + backgroundColor: 'rgb(248, 248, 248)', + boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)' + } + } + }); + return r.default.createElement('div', { style: t.picker }); + }); + e.default = a; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.Swatches = void 0); + var r = d(n(0)), + i = d(n(1)), + o = d(n(3)), + a = d(n(28)), + s = d(n(10)), + u = d(n(23)), + l = (function(t) { + if (t && t.__esModule) return t; + var e = {}; + if (null != t) + for (var n in t) + Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]); + return (e.default = t), e; + })(n(154)), + c = n(6), + f = d(n(431)); + function d(t) { + return t && t.__esModule ? t : { default: t }; + } + var h = (e.Swatches = function(t) { + var e = t.width, + n = t.height, + i = t.onChange, + l = t.onSwatchHover, + d = t.colors, + h = t.hex, + p = t.styles, + g = void 0 === p ? {} : p, + m = t.className, + v = void 0 === m ? '' : m, + y = (0, o.default)( + (0, s.default)( + { + default: { + picker: { width: e, height: n }, + overflow: { height: n, overflowY: 'scroll' }, + body: { padding: '16px 0 6px 16px' }, + clear: { clear: 'both' } + } + }, + g + ) + ), + b = function(t, e) { + u.default.isValidHex(t) && i({ hex: t, source: 'hex' }, e); + }; + return r.default.createElement( + 'div', + { style: y.picker, className: 'swatches-picker ' + v }, + r.default.createElement( + c.Raised, + null, + r.default.createElement( + 'div', + { style: y.overflow }, + r.default.createElement( + 'div', + { style: y.body }, + (0, a.default)(d, function(t) { + return r.default.createElement(f.default, { + key: t.toString(), + group: t, + active: h, + onClick: b, + onSwatchHover: l + }); + }), + r.default.createElement('div', { style: y.clear }) + ) + ) + ) + ); + }); + (h.propTypes = { + width: i.default.oneOfType([i.default.string, i.default.number]), + height: i.default.oneOfType([i.default.string, i.default.number]), + colors: i.default.arrayOf(i.default.arrayOf(i.default.string)), + styles: i.default.object + }), + (h.defaultProps = { + width: 320, + height: 240, + colors: [ + [l.red[900], l.red[700], l.red[500], l.red[300], l.red[100]], + [l.pink[900], l.pink[700], l.pink[500], l.pink[300], l.pink[100]], + [ + l.purple[900], + l.purple[700], + l.purple[500], + l.purple[300], + l.purple[100] + ], + [ + l.deepPurple[900], + l.deepPurple[700], + l.deepPurple[500], + l.deepPurple[300], + l.deepPurple[100] + ], + [ + l.indigo[900], + l.indigo[700], + l.indigo[500], + l.indigo[300], + l.indigo[100] + ], + [l.blue[900], l.blue[700], l.blue[500], l.blue[300], l.blue[100]], + [ + l.lightBlue[900], + l.lightBlue[700], + l.lightBlue[500], + l.lightBlue[300], + l.lightBlue[100] + ], + [l.cyan[900], l.cyan[700], l.cyan[500], l.cyan[300], l.cyan[100]], + [l.teal[900], l.teal[700], l.teal[500], l.teal[300], l.teal[100]], + ['#194D33', l.green[700], l.green[500], l.green[300], l.green[100]], + [ + l.lightGreen[900], + l.lightGreen[700], + l.lightGreen[500], + l.lightGreen[300], + l.lightGreen[100] + ], + [l.lime[900], l.lime[700], l.lime[500], l.lime[300], l.lime[100]], + [ + l.yellow[900], + l.yellow[700], + l.yellow[500], + l.yellow[300], + l.yellow[100] + ], + [ + l.amber[900], + l.amber[700], + l.amber[500], + l.amber[300], + l.amber[100] + ], + [ + l.orange[900], + l.orange[700], + l.orange[500], + l.orange[300], + l.orange[100] + ], + [ + l.deepOrange[900], + l.deepOrange[700], + l.deepOrange[500], + l.deepOrange[300], + l.deepOrange[100] + ], + [ + l.brown[900], + l.brown[700], + l.brown[500], + l.brown[300], + l.brown[100] + ], + [ + l.blueGrey[900], + l.blueGrey[700], + l.blueGrey[500], + l.blueGrey[300], + l.blueGrey[100] + ], + ['#000000', '#525252', '#969696', '#D9D9D9', '#FFFFFF'] + ], + styles: {} + }), + (e.default = (0, c.ColorWrap)(h)); + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.SwatchesGroup = void 0); + var r = s(n(0)), + i = s(n(3)), + o = s(n(28)), + a = s(n(432)); + function s(t) { + return t && t.__esModule ? t : { default: t }; + } + var u = (e.SwatchesGroup = function(t) { + var e = t.onClick, + n = t.onSwatchHover, + s = t.group, + u = t.active, + l = (0, i.default)({ + default: { + group: { + paddingBottom: '10px', + width: '40px', + float: 'left', + marginRight: '10px' + } + } + }); + return r.default.createElement( + 'div', + { style: l.group }, + (0, o.default)(s, function(t, i) { + return r.default.createElement(a.default, { + key: t, + color: t, + active: t.toLowerCase() === u, + first: 0 === i, + last: i === s.length - 1, + onClick: e, + onSwatchHover: n + }); + }) + ); + }); + e.default = u; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.SwatchesColor = void 0); + var r = u(n(0)), + i = u(n(3)), + o = u(n(23)), + a = n(6), + s = u(n(433)); + function u(t) { + return t && t.__esModule ? t : { default: t }; + } + var l = (e.SwatchesColor = function(t) { + var e = t.color, + n = t.onClick, + u = void 0 === n ? function() {} : n, + l = t.onSwatchHover, + c = t.first, + f = t.last, + d = t.active, + h = (0, i.default)( + { + default: { + color: { + width: '40px', + height: '24px', + cursor: 'pointer', + background: e, + marginBottom: '1px' + }, + check: { + color: o.default.getContrastingColor(e), + marginLeft: '8px', + display: 'none' + } + }, + first: { + color: { overflow: 'hidden', borderRadius: '2px 2px 0 0' } + }, + last: { + color: { overflow: 'hidden', borderRadius: '0 0 2px 2px' } + }, + active: { check: { display: 'block' } }, + 'color-#FFFFFF': { + color: { boxShadow: 'inset 0 0 0 1px #ddd' }, + check: { color: '#333' } + }, + transparent: { check: { color: '#333' } } + }, + { + first: c, + last: f, + active: d, + 'color-#FFFFFF': '#FFFFFF' === e, + transparent: 'transparent' === e + } + ); + return r.default.createElement( + a.Swatch, + { + color: e, + style: h.color, + onClick: u, + onHover: l, + focusStyle: { boxShadow: '0 0 4px ' + e } + }, + r.default.createElement( + 'div', + { style: h.check }, + r.default.createElement(s.default, null) + ) + ); + }); + e.default = l; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }); + var r, + i = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); + } + return t; + }, + o = n(0), + a = (r = o) && r.__esModule ? r : { default: r }; + e.default = function(t) { + var e = t.fill, + n = void 0 === e ? 'currentColor' : e, + r = t.width, + o = void 0 === r ? 24 : r, + s = t.height, + u = void 0 === s ? 24 : s, + l = t.style, + c = void 0 === l ? {} : l, + f = (function(t, e) { + var n = {}; + for (var r in t) + e.indexOf(r) >= 0 || + (Object.prototype.hasOwnProperty.call(t, r) && (n[r] = t[r])); + return n; + })(t, ['fill', 'width', 'height', 'style']); + return a.default.createElement( + 'svg', + i( + { + viewBox: '0 0 24 24', + style: i({ fill: n, width: o, height: u }, c) + }, + f + ), + a.default.createElement('path', { + d: 'M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z' + }) + ); + }; + }, + function(t, e, n) { + 'use strict'; + Object.defineProperty(e, '__esModule', { value: !0 }), + (e.Twitter = void 0); + var r = c(n(0)), + i = c(n(1)), + o = c(n(3)), + a = c(n(28)), + s = c(n(10)), + u = c(n(23)), + l = n(6); + function c(t) { + return t && t.__esModule ? t : { default: t }; + } + var f = (e.Twitter = function(t) { + var e = t.onChange, + n = t.onSwatchHover, + i = t.hex, + c = t.colors, + f = t.width, + d = t.triangle, + h = t.styles, + p = void 0 === h ? {} : h, + g = t.className, + m = void 0 === g ? '' : g, + v = (0, o.default)( + (0, s.default)( + { + default: { + card: { + width: f, + background: '#fff', + border: '0 solid rgba(0,0,0,0.25)', + boxShadow: '0 1px 4px rgba(0,0,0,0.25)', + borderRadius: '4px', + position: 'relative' + }, + body: { padding: '15px 9px 9px 15px' }, + label: { fontSize: '18px', color: '#fff' }, + triangle: { + width: '0px', + height: '0px', + borderStyle: 'solid', + borderWidth: '0 9px 10px 9px', + borderColor: 'transparent transparent #fff transparent', + position: 'absolute' + }, + triangleShadow: { + width: '0px', + height: '0px', + borderStyle: 'solid', + borderWidth: '0 9px 10px 9px', + borderColor: + 'transparent transparent rgba(0,0,0,.1) transparent', + position: 'absolute' + }, + hash: { + background: '#F0F0F0', + height: '30px', + width: '30px', + borderRadius: '4px 0 0 4px', + float: 'left', + color: '#98A1A4', + display: 'flex', + alignItems: 'center', + justifyContent: 'center' + }, + input: { + width: '100px', + fontSize: '14px', + color: '#666', + border: '0px', + outline: 'none', + height: '28px', + boxShadow: 'inset 0 0 0 1px #F0F0F0', + boxSizing: 'content-box', + borderRadius: '0 4px 4px 0', + float: 'left', + paddingLeft: '8px' + }, + swatch: { + width: '30px', + height: '30px', + float: 'left', + borderRadius: '4px', + margin: '0 6px 6px 0' + }, + clear: { clear: 'both' } + }, + 'hide-triangle': { + triangle: { display: 'none' }, + triangleShadow: { display: 'none' } + }, + 'top-left-triangle': { + triangle: { top: '-10px', left: '12px' }, + triangleShadow: { top: '-11px', left: '12px' } + }, + 'top-right-triangle': { + triangle: { top: '-10px', right: '12px' }, + triangleShadow: { top: '-11px', right: '12px' } + } + }, + p + ), + { + 'hide-triangle': 'hide' === d, + 'top-left-triangle': 'top-left' === d, + 'top-right-triangle': 'top-right' === d + } + ), + y = function(t, n) { + u.default.isValidHex(t) && e({ hex: t, source: 'hex' }, n); + }; + return r.default.createElement( + 'div', + { style: v.card, className: 'twitter-picker ' + m }, + r.default.createElement('div', { style: v.triangleShadow }), + r.default.createElement('div', { style: v.triangle }), + r.default.createElement( + 'div', + { style: v.body }, + (0, a.default)(c, function(t, e) { + return r.default.createElement(l.Swatch, { + key: e, + color: t, + hex: t, + style: v.swatch, + onClick: y, + onHover: n, + focusStyle: { boxShadow: '0 0 4px ' + t } + }); + }), + r.default.createElement('div', { style: v.hash }, '#'), + r.default.createElement(l.EditableInput, { + label: null, + style: { input: v.input }, + value: i.replace('#', ''), + onChange: y + }), + r.default.createElement('div', { style: v.clear }) + ) + ); + }); + (f.propTypes = { + width: i.default.oneOfType([i.default.string, i.default.number]), + triangle: i.default.oneOf(['hide', 'top-left', 'top-right']), + colors: i.default.arrayOf(i.default.string), + styles: i.default.object + }), + (f.defaultProps = { + width: 276, + colors: [ + '#FF6900', + '#FCB900', + '#7BDCB5', + '#00D084', + '#8ED1FC', + '#0693E3', + '#ABB8C3', + '#EB144C', + '#F78DA7', + '#9900EF' + ], + triangle: 'top-left', + styles: {} + }), + (e.default = (0, l.ColorWrap)(f)); + }, + function(t, e, n) { + 'use strict'; + var r = n(0), + i = n(1), + o = n(436), + a = n(440), + s = n(441), + u = r.createElement; + function l(t) { + var e = t.language + ? o.highlight(t.language, t.value, { prefix: t.prefix }) + : o.highlightAuto(t.value, { prefix: t.prefix, subset: t.subset }), + n = e.language + ? { className: 'hljs ' + e.language } + : { className: 'hljs' }; + t.inline && + ((n.style = { display: 'inline' }), (n.className = t.className)); + var r = e.value; + t.markers && + t.markers.length > 0 && + (r = s(r, { prefix: t.prefix, markers: t.markers })); + var i = 0 === r.length ? t.value : r.map(a.depth(0)), + l = u('code', n, i); + return t.inline ? l : u('pre', { className: t.className }, l); + } + (l.propTypes = { + className: i.string, + inline: i.bool, + language: i.string, + prefix: i.string, + subset: i.arrayOf(i.string), + value: i.string.isRequired, + markers: i.arrayOf( + i.oneOfType([ + i.number, + i.shape({ line: i.number.isRequired, className: i.string }) + ]) + ) + }), + (l.defaultProps = { + className: 'lowlight', + inline: !1, + prefix: 'hljs-' + }), + (l.registerLanguage = function() { + 0, o.registerLanguage.apply(o, arguments); + }), + (l.hasLanguage = function(t) { + return !!o.getLanguage(t); + }), + (t.exports = l); + }, + function(t, e, n) { + 'use strict'; + var r = n(437), + i = n(438); + function o() {} + o.prototype = r; + var a = new o(); + (t.exports = a), + (a.highlight = function(t, e, n) { + var r = (n || {}).prefix; + null == r && (r = l); + return T(E(t, e, !0, r)); + }), + (a.highlightAuto = w), + (a.registerLanguage = function(t, e) { + var n = e(a); + (n.rawDefinition = e.bind(null, a)), + (_[t] = n), + b.push(t), + n.aliases && S(t, n.aliases); + }), + (a.listLanguages = function() { + return b.concat(); + }), + (a.registerAlias = S), + (a.getLanguage = C); + var s = r.inherit, + u = {}.hasOwnProperty, + l = 'hljs-', + c = 'case_insensitive', + f = 'cached_variants', + d = 'terminator_end', + h = ' ', + p = '|', + g = '(', + m = ')', + v = '\\', + y = ['of', 'and', 'for', 'in', 'not', 'or', 'if', 'then'], + b = [], + _ = {}, + x = {}; + function w(t, e) { + var n, + r, + o, + a, + s = e || {}, + u = s.subset || b, + c = s.prefix, + f = u.length, + d = -1; + if ((null == c && (c = l), 'string' != typeof t)) + throw i('Expected `string` for value, got `%s`', t); + for (r = T({}), n = T({}); ++d < f; ) + C((a = u[d])) && + (((o = T(E(a, t, !1, c))).language = a), + o.relevance > r.relevance && (r = o), + o.relevance > n.relevance && ((r = n), (n = o))); + return r.language && (n.secondBest = r), n; + } + function S(t, e) { + var n, + r, + i, + o, + a = t; + for (n in (e && ((a = {})[t] = e), a)) + for ( + i = (r = 'string' == typeof (r = a[n]) ? [r] : r).length, o = -1; + ++o < i; + + ) + x[r[o]] = n; + } + function E(t, e, n, r, o) { + var a, + s, + l, + f, + y, + b, + x, + S, + T = {}, + O = {}, + P = [], + M = '', + L = 0; + if ('string' != typeof t) + throw i('Expected `string` for name, got `%s`', t); + if ('string' != typeof e) + throw i('Expected `string` for value, got `%s`', e); + if (((a = C(t)), (l = s = o || a), (f = S = []), !a)) + throw i('Unknown language: `%s` is not registered', t); + !(function(t) { + function e(i, o) { + i.compiled || + ((i.compiled = !0), + (i.keywords = i.keywords || i.beginKeywords), + i.keywords && + (i.keywords = (function(t, e) { + var n, + r = {}; + if ('string' == typeof t) i('keyword', t); + else for (n in t) i(n, t[n]); + return r; + function i(t, n) { + !(function(t, e) { + var n, + i = e.length, + o = -1; + for (; ++o < i; ) + (n = e[o].split(p)), + (r[n[0]] = [t, Number(n[1]) || k(n[0]) ? 0 : 1]); + })(t, (e ? n.toLowerCase() : n).split(h)); + } + })(i.keywords, t[c])), + (i.lexemesRe = n(i.lexemes || /\w+/, !0)), + o && + (i.beginKeywords && + (i.begin = + '\\b(' + i.beginKeywords.split(h).join(p) + ')\\b'), + i.begin || (i.begin = /\B|\b/), + (i.beginRe = n(i.begin)), + i.endSameAsBegin && (i.end = i.begin), + i.end || i.endsWithParent || (i.end = /\B|\b/), + i.end && (i.endRe = n(i.end)), + (i[d] = r(i.end) || ''), + i.endsWithParent && o[d] && (i[d] += (i.end ? p : '') + o[d])), + i.illegal && (i.illegalRe = n(i.illegal)), + void 0 === i.relevance && (i.relevance = 1), + (i.contains = (function(t, n) { + var r, + i = [], + o = t.length, + a = -1; + for (; ++a < o; ) + (r = t[a]), (i = i.concat(A('self' === r ? n : r))); + (o = i.length), (a = -1); + for (; ++a < o; ) e(i[a], n); + return i; + })(i.contains || [], i)), + i.starts && e(i.starts, o), + (i.terminators = (function(t) { + var e, + i, + o = {}, + a = [], + s = {}, + u = 1, + l = t.contains, + c = l.length, + f = -1, + h = []; + for (; ++f < c; ) + y( + (i = l[f]), + i.beginKeywords ? '\\.?(?:' + i.begin + ')\\.?' : i.begin + ); + t[d] && y('end', t[d]); + t.illegal && y('illegal', t.illegal); + (c = a.length), (f = -1); + for (; ++f < c; ) h[f] = a[f][1]; + return ( + (e = n( + (function(t, e) { + var n, + i, + o, + a, + s = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9]\d*)|\\./, + u = 0, + l = '', + c = t.length, + f = -1; + for (; ++f < c; ) { + for ( + n = t[f], + o = r(n), + i = u += 1, + 0 !== f && (l += e), + l += g; + o.length > 0; + + ) { + if (null === (a = s.exec(o))) { + l += o; + break; + } + (l += o.slice(0, a.index)), + (o = o.slice(a.index + a[0].length)), + a[0][0] === v && a[1] + ? (l += v + String(Number(a[1]) + i)) + : ((l += a[0]), a[0] === g && u++); + } + l += m; + } + return l; + })(h, p), + !0 + )), + (s = { + lastIndex: 0, + exec: function(n) { + var r, i, u, l; + if (0 === a.length) return null; + if (((e.lastIndex = s.lastIndex), !(l = e.exec(n)))) + return null; + (r = l.length), (i = -1); + for (; ++i < r; ) + if (void 0 !== l[i] && void 0 !== o[i]) { + u = o[i]; + break; + } + 'string' == typeof u + ? ((l.type = u), + (l.extra = [t.illegal, t.terminator_end])) + : ((l.type = 'begin'), (l.rule = u)); + return l; + } + }) + ); + function y(t, e) { + (o[u] = t), + a.push([t, e]), + (u += new RegExp(e.toString() + p).exec('').length); + } + })(i))); + } + function n(e, n) { + return new RegExp(r(e), 'm' + (t[c] ? 'i' : '') + (n ? 'g' : '')); + } + function r(t) { + return (t && t.source) || t; + } + e(t); + })(a); + try { + for ( + s.terminators.lastIndex = 0, y = 0, x = s.terminators.exec(e); + x; + + ) + (b = R(e.slice(y, x.index), x)), + (y = x.index + b), + (s.terminators.lastIndex = y), + (x = s.terminators.exec(e)); + for (R(e.slice(y)), l = s; l.parent; ) + l.className && H(), (l = l.parent); + return { relevance: L, value: f, illegal: !1, language: t, top: s }; + } catch (t) { + if (-1 === t.message.indexOf('Illegal')) throw t; + return { relevance: 0, illegal: !0, value: F(e, []) }; + } + function j(t) { + var e = t[0], + n = t.rule; + return ( + n && + n.endSameAsBegin && + (n.endRe = (function(t) { + return new RegExp( + t.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'), + 'm' + ); + })(e)), + n.skip + ? (M += e) + : (n.excludeBegin && (M += e), + I(N(), f), + n.returnBegin || n.excludeBegin || (M = e)), + z(n), + n.returnBegin ? 0 : e.length + ); + } + function D(t) { + var n = t[0], + r = e.slice(t.index), + i = (function t(e, n) { + if ( + (function(t, e) { + var n = t && t.exec(e); + return n && 0 === n.index; + })(e.endRe, n) + ) { + for (; e.endsParent && e.parent; ) e = e.parent; + return e; + } + if (e.endsWithParent) return t(e.parent, n); + })(s, r); + if (i) { + var o = s; + o.skip + ? (M += n) + : (o.returnEnd || o.excludeEnd || (M += n), + I(N(), f), + o.excludeEnd && (M = n)); + do { + s.className && H(), + s.skip || s.subLanguage || (L += s.relevance), + (s = s.parent); + } while (s !== i.parent); + return ( + i.starts && + (i.endSameAsBegin && (i.starts.endRe = i.endRe), z(i.starts)), + o.returnEnd ? 0 : n.length + ); + } + } + function R(t, r) { + var o, + a = r && r[0]; + if (((M += t), void 0 === a)) return I(N(), f), 0; + if ( + 'begin' === T.type && + 'end' === r.type && + T.index === r.index && + '' === a + ) + return (M += e.slice(r.index, r.index + 1)), 1; + if (((T = r), 'begin' === r.type)) return j(r); + if ('end' === r.type && void 0 !== (o = D(r))) return o; + if ('illegal' === r.type && !n) + throw i( + 'Illegal lexeme "%s" for mode "%s"', + a, + s.className || '' + ); + return (M += a), a.length; + } + function z(t) { + var e; + t.className && (e = B(t.className, [])), + e && (f.push(e), P.push(f), (f = e.children)), + (s = Object.create(t, { parent: { value: s } })); + } + function N() { + var t = s.subLanguage + ? (function() { + var t, + e = 'string' == typeof s.subLanguage; + if (e && !_[s.subLanguage]) return F(M, []); + t = e + ? E(s.subLanguage, M, !0, r, O[s.subLanguage]) + : w(M, { + subset: + 0 === s.subLanguage.length ? void 0 : s.subLanguage, + prefix: r + }); + if (!t.language) return [V(M)]; + s.relevance > 0 && (L += t.relevance); + e && (O[s.subLanguage] = t.top); + return [B(t.language, t.value, !0)]; + })() + : (function() { + var t, + e, + n, + r, + i = []; + if (!s.keywords) return F(M, i); + (t = 0), (s.lexemesRe.lastIndex = 0), (e = s.lexemesRe.exec(M)); + for (; e; ) + F(M.slice(t, e.index), i), + (r = G(s, e)) + ? ((L += r[1]), + (n = B(r[0], [])), + i.push(n), + F(e[0], n.children)) + : F(e[0], i), + (t = s.lexemesRe.lastIndex), + (e = s.lexemesRe.exec(M)); + return F(M.slice(t), i), i; + })(); + return (M = ''), t; + } + function I(t, e) { + for (var n, r = t.length, i = -1; ++i < r; ) + 'text' === (n = t[i]).type ? F(n.value, e) : e.push(n); + } + function F(t, e) { + var n; + return ( + t && + ((n = e[e.length - 1]) && 'text' === n.type + ? (n.value += t) + : e.push(V(t))), + e + ); + } + function V(t) { + return { type: 'text', value: t }; + } + function B(t, e, n) { + return { + type: 'element', + tagName: 'span', + properties: { className: [(n ? '' : r) + t] }, + children: e + }; + } + function G(t, e) { + var n = e[0]; + return ( + a[c] && (n = n.toLowerCase()), + u.call(t.keywords, n) && t.keywords[n] + ); + } + function H() { + f = P.pop() || S; + } + } + function k(t) { + return -1 !== y.indexOf(t.toLowerCase()); + } + function A(t) { + var e, n, r, i; + if (t.variants && !t[f]) { + for (e = (r = t.variants).length, n = -1, i = []; ++n < e; ) + i[n] = s(t, { variants: null }, r[n]); + t[f] = i; + } + return t.cached_variants + ? t.cached_variants + : (function t(e) { + return !!e && (e.endsWithParent || t(e.starts)); + })(t) + ? [s(t, { starts: t.starts ? s(t.starts) : null })] + : [t]; + } + function T(t) { + return { + relevance: t.relevance || 0, + language: t.language || null, + value: t.value || [] + }; + } + function C(t) { + return (t = t.toLowerCase()), _[t] || _[x[t]]; + } + }, + function(t, e, n) { + var r, i, o; + (i = function(t) { + var e, + n = [], + r = Object.keys, + i = {}, + o = {}, + a = /^(no-?highlight|plain|text)$/i, + s = /\blang(?:uage)?-([\w-]+)\b/i, + u = /((^(<[^>]+>|\t|)+|(?:\n)))/gm, + l = '', + c = { + classPrefix: 'hljs-', + tabReplace: null, + useBR: !1, + languages: void 0 + }, + f = 'of and for in not or if then'.split(' '); + function d(t) { + return t + .replace(/&/g, '&') + .replace(//g, '>'); + } + function h(t) { + return t.nodeName.toLowerCase(); + } + function p(t) { + return a.test(t); + } + function g(t) { + var e, + n = {}, + r = Array.prototype.slice.call(arguments, 1); + for (e in t) n[e] = t[e]; + return ( + r.forEach(function(t) { + for (e in t) n[e] = t[e]; + }), + n + ); + } + function m(t) { + var e = []; + return ( + (function t(n, r) { + for (var i = n.firstChild; i; i = i.nextSibling) + 3 === i.nodeType + ? (r += i.nodeValue.length) + : 1 === i.nodeType && + (e.push({ event: 'start', offset: r, node: i }), + (r = t(i, r)), + h(i).match(/br|hr|img|input/) || + e.push({ event: 'stop', offset: r, node: i })); + return r; + })(t, 0), + e + ); + } + function v(t) { + return ( + t.variants && + !t.cached_variants && + (t.cached_variants = t.variants.map(function(e) { + return g(t, { variants: null }, e); + })), + t.cached_variants + ? t.cached_variants + : (function t(e) { + return !!e && (e.endsWithParent || t(e.starts)); + })(t) + ? [g(t, { starts: t.starts ? g(t.starts) : null })] + : [t] + ); + } + function y(t) { + if (e && !t.langApiRestored) { + for (var n in ((t.langApiRestored = !0), e)) + t[n] && (t[e[n]] = t[n]); + (t.contains || []).concat(t.variants || []).forEach(y); + } + } + function b(t, e) { + return e + ? Number(e) + : ((n = t), -1 != f.indexOf(n.toLowerCase()) ? 0 : 1); + var n; + } + function _(t) { + function e(t) { + return (t && t.source) || t; + } + function n(n, r) { + return new RegExp( + e(n), + 'm' + (t.case_insensitive ? 'i' : '') + (r ? 'g' : '') + ); + } + function i(t) { + var r, + i, + o = {}, + a = [], + s = {}, + u = 1; + function l(t, e) { + (o[u] = t), + a.push([t, e]), + (u += + (function(t) { + return new RegExp(t.toString() + '|').exec('').length - 1; + })(e) + 1); + } + for (var c = 0; c < t.contains.length; c++) + l( + (i = t.contains[c]), + i.beginKeywords ? '\\.?(?:' + i.begin + ')\\.?' : i.begin + ); + t.terminator_end && l('end', t.terminator_end), + t.illegal && l('illegal', t.illegal); + var f = a.map(function(t) { + return t[1]; + }); + return ( + (r = n( + (function(t, n) { + for ( + var r = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./, + i = 0, + o = '', + a = 0; + a < t.length; + a++ + ) { + var s = (i += 1), + u = e(t[a]); + for (a > 0 && (o += n), o += '('; u.length > 0; ) { + var l = r.exec(u); + if (null == l) { + o += u; + break; + } + (o += u.substring(0, l.index)), + (u = u.substring(l.index + l[0].length)), + '\\' == l[0][0] && l[1] + ? (o += '\\' + String(Number(l[1]) + s)) + : ((o += l[0]), '(' == l[0] && i++); + } + o += ')'; + } + return o; + })(f, '|'), + !0 + )), + (s.lastIndex = 0), + (s.exec = function(e) { + var n; + if (0 === a.length) return null; + r.lastIndex = s.lastIndex; + var i = r.exec(e); + if (!i) return null; + for (var u = 0; u < i.length; u++) + if (null != i[u] && null != o['' + u]) { + n = o['' + u]; + break; + } + return ( + 'string' == typeof n + ? ((i.type = n), (i.extra = [t.illegal, t.terminator_end])) + : ((i.type = 'begin'), (i.rule = n)), + i + ); + }), + s + ); + } + !(function o(a, s) { + a.compiled || + ((a.compiled = !0), + (a.keywords = a.keywords || a.beginKeywords), + a.keywords && + (a.keywords = (function(t, e) { + var n = {}; + return ( + 'string' == typeof t + ? i('keyword', t) + : r(t).forEach(function(e) { + i(e, t[e]); + }), + n + ); + function i(t, r) { + e && (r = r.toLowerCase()), + r.split(' ').forEach(function(e) { + var r = e.split('|'); + n[r[0]] = [t, b(r[0], r[1])]; + }); + } + })(a.keywords, t.case_insensitive)), + (a.lexemesRe = n(a.lexemes || /\w+/, !0)), + s && + (a.beginKeywords && + (a.begin = + '\\b(' + a.beginKeywords.split(' ').join('|') + ')\\b'), + a.begin || (a.begin = /\B|\b/), + (a.beginRe = n(a.begin)), + a.endSameAsBegin && (a.end = a.begin), + a.end || a.endsWithParent || (a.end = /\B|\b/), + a.end && (a.endRe = n(a.end)), + (a.terminator_end = e(a.end) || ''), + a.endsWithParent && + s.terminator_end && + (a.terminator_end += (a.end ? '|' : '') + s.terminator_end)), + a.illegal && (a.illegalRe = n(a.illegal)), + null == a.relevance && (a.relevance = 1), + a.contains || (a.contains = []), + (a.contains = Array.prototype.concat.apply( + [], + a.contains.map(function(t) { + return v('self' === t ? a : t); + }) + )), + a.contains.forEach(function(t) { + o(t, a); + }), + a.starts && o(a.starts, s), + (a.terminators = i(a))); + })(t); + } + function x(t, e, n, r) { + function o(t, e) { + var n = m.case_insensitive ? e[0].toLowerCase() : e[0]; + return t.keywords.hasOwnProperty(n) && t.keywords[n]; + } + function a(t, e, n, r) { + if (!n && '' === e) return ''; + if (!t) return e; + var i = '') + e + (n ? '' : l); + } + function s() { + (S += + null != y.subLanguage + ? (function() { + var t = 'string' == typeof y.subLanguage; + if (t && !i[y.subLanguage]) return d(E); + var e = t + ? x(y.subLanguage, E, !0, b[y.subLanguage]) + : w(E, y.subLanguage.length ? y.subLanguage : void 0); + return ( + y.relevance > 0 && (k += e.relevance), + t && (b[y.subLanguage] = e.top), + a(e.language, e.value, !1, !0) + ); + })() + : (function() { + var t, e, n, r; + if (!y.keywords) return d(E); + for ( + r = '', + e = 0, + y.lexemesRe.lastIndex = 0, + n = y.lexemesRe.exec(E); + n; + + ) + (r += d(E.substring(e, n.index))), + (t = o(y, n)) + ? ((k += t[1]), (r += a(t[0], d(n[0])))) + : (r += d(n[0])), + (e = y.lexemesRe.lastIndex), + (n = y.lexemesRe.exec(E)); + return r + d(E.substr(e)); + })()), + (E = ''); + } + function u(t) { + (S += t.className ? a(t.className, '', !0) : ''), + (y = Object.create(t, { parent: { value: y } })); + } + function f(t) { + var e = t[0], + n = t.rule; + return ( + n && + n.endSameAsBegin && + (n.endRe = (function(t) { + return new RegExp( + t.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'), + 'm' + ); + })(e)), + n.skip + ? (E += e) + : (n.excludeBegin && (E += e), + s(), + n.returnBegin || n.excludeBegin || (E = e)), + u(n), + n.returnBegin ? 0 : e.length + ); + } + function h(t) { + var e = t[0], + n = (function t(e, n) { + if ( + (function(t, e) { + var n = t && t.exec(e); + return n && 0 === n.index; + })(e.endRe, n) + ) { + for (; e.endsParent && e.parent; ) e = e.parent; + return e; + } + if (e.endsWithParent) return t(e.parent, n); + })(y, e); + if (n) { + var r = y; + r.skip + ? (E += e) + : (r.returnEnd || r.excludeEnd || (E += e), + s(), + r.excludeEnd && (E = e)); + do { + y.className && (S += l), + y.skip || y.subLanguage || (k += y.relevance), + (y = y.parent); + } while (y !== n.parent); + return ( + n.starts && + (n.endSameAsBegin && (n.starts.endRe = n.endRe), u(n.starts)), + r.returnEnd ? 0 : e.length + ); + } + } + var p = {}; + function g(t, r) { + var i = r && r[0]; + if (((E += t), null == i)) return s(), 0; + if ( + 'begin' == p.type && + 'end' == r.type && + p.index == r.index && + '' === i + ) + return (E += e.slice(r.index, r.index + 1)), 1; + if (((p = r), 'begin' === r.type)) return f(r); + if ('illegal' === r.type && !n) + throw new Error( + 'Illegal lexeme "' + + i + + '" for mode "' + + (y.className || '') + + '"' + ); + if ('end' === r.type) { + var o = h(r); + if (null != o) return o; + } + return (E += i), i.length; + } + var m = A(t); + if (!m) throw new Error('Unknown language: "' + t + '"'); + _(m); + var v, + y = r || m, + b = {}, + S = ''; + for (v = y; v !== m; v = v.parent) + v.className && (S = a(v.className, '', !0) + S); + var E = '', + k = 0; + try { + for ( + var T, C, O = 0; + (y.terminators.lastIndex = O), (T = y.terminators.exec(e)); + + ) + (C = g(e.substring(O, T.index), T)), (O = T.index + C); + for (g(e.substr(O)), v = y; v.parent; v = v.parent) + v.className && (S += l); + return { relevance: k, value: S, illegal: !1, language: t, top: y }; + } catch (t) { + if (t.message && -1 !== t.message.indexOf('Illegal')) + return { illegal: !0, relevance: 0, value: d(e) }; + throw t; + } + } + function w(t, e) { + e = e || c.languages || r(i); + var n = { relevance: 0, value: d(t) }, + o = n; + return ( + e + .filter(A) + .filter(T) + .forEach(function(e) { + var r = x(e, t, !1); + (r.language = e), + r.relevance > o.relevance && (o = r), + r.relevance > n.relevance && ((o = n), (n = r)); + }), + o.language && (n.second_best = o), + n + ); + } + function S(t) { + return c.tabReplace || c.useBR + ? t.replace(u, function(t, e) { + return c.useBR && '\n' === t + ? '
' + : c.tabReplace + ? e.replace(/\t/g, c.tabReplace) + : ''; + }) + : t; + } + function E(t) { + var e, + r, + i, + a, + u, + l = (function(t) { + var e, + n, + r, + i, + o = t.className + ' '; + if ( + ((o += t.parentNode ? t.parentNode.className : ''), + (n = s.exec(o))) + ) + return A(n[1]) ? n[1] : 'no-highlight'; + for (e = 0, r = (o = o.split(/\s+/)).length; e < r; e++) + if (p((i = o[e])) || A(i)) return i; + })(t); + p(l) || + (c.useBR + ? ((e = document.createElementNS( + 'http://www.w3.org/1999/xhtml', + 'div' + )).innerHTML = t.innerHTML + .replace(/\n/g, '') + .replace(//g, '\n')) + : (e = t), + (u = e.textContent), + (i = l ? x(l, u, !0) : w(u)), + (r = m(e)).length && + (((a = document.createElementNS( + 'http://www.w3.org/1999/xhtml', + 'div' + )).innerHTML = i.value), + (i.value = (function(t, e, r) { + var i = 0, + o = '', + a = []; + function s() { + return t.length && e.length + ? t[0].offset !== e[0].offset + ? t[0].offset < e[0].offset + ? t + : e + : 'start' === e[0].event + ? t + : e + : t.length + ? t + : e; + } + function u(t) { + o += + '<' + + h(t) + + n.map + .call(t.attributes, function(t) { + return ( + ' ' + + t.nodeName + + '="' + + d(t.value).replace('"', '"') + + '"' + ); + }) + .join('') + + '>'; + } + function l(t) { + o += ''; + } + function c(t) { + ('start' === t.event ? u : l)(t.node); + } + for (; t.length || e.length; ) { + var f = s(); + if ( + ((o += d(r.substring(i, f[0].offset))), + (i = f[0].offset), + f === t) + ) { + a.reverse().forEach(l); + do { + c(f.splice(0, 1)[0]), (f = s()); + } while (f === t && f.length && f[0].offset === i); + a.reverse().forEach(u); + } else + 'start' === f[0].event ? a.push(f[0].node) : a.pop(), + c(f.splice(0, 1)[0]); + } + return o + d(r.substr(i)); + })(r, m(a), u))), + (i.value = S(i.value)), + (t.innerHTML = i.value), + (t.className = (function(t, e, n) { + var r = e ? o[e] : n, + i = [t.trim()]; + return ( + t.match(/\bhljs\b/) || i.push('hljs'), + -1 === t.indexOf(r) && i.push(r), + i.join(' ').trim() + ); + })(t.className, l, i.language)), + (t.result = { language: i.language, re: i.relevance }), + i.second_best && + (t.second_best = { + language: i.second_best.language, + re: i.second_best.relevance + })); + } + function k() { + if (!k.called) { + k.called = !0; + var t = document.querySelectorAll('pre code'); + n.forEach.call(t, E); + } + } + function A(t) { + return (t = (t || '').toLowerCase()), i[t] || i[o[t]]; + } + function T(t) { + var e = A(t); + return e && !e.disableAutodetect; + } + return ( + (t.highlight = x), + (t.highlightAuto = w), + (t.fixMarkup = S), + (t.highlightBlock = E), + (t.configure = function(t) { + c = g(c, t); + }), + (t.initHighlighting = k), + (t.initHighlightingOnLoad = function() { + addEventListener('DOMContentLoaded', k, !1), + addEventListener('load', k, !1); + }), + (t.registerLanguage = function(e, n) { + var r = (i[e] = n(t)); + y(r), + (r.rawDefinition = n.bind(null, t)), + r.aliases && + r.aliases.forEach(function(t) { + o[t] = e; + }); + }), + (t.listLanguages = function() { + return r(i); + }), + (t.getLanguage = A), + (t.autoDetection = T), + (t.inherit = g), + (t.IDENT_RE = '[a-zA-Z]\\w*'), + (t.UNDERSCORE_IDENT_RE = '[a-zA-Z_]\\w*'), + (t.NUMBER_RE = '\\b\\d+(\\.\\d+)?'), + (t.C_NUMBER_RE = + '(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)'), + (t.BINARY_NUMBER_RE = '\\b(0b[01]+)'), + (t.RE_STARTERS_RE = + '!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~'), + (t.BACKSLASH_ESCAPE = { begin: '\\\\[\\s\\S]', relevance: 0 }), + (t.APOS_STRING_MODE = { + className: 'string', + begin: "'", + end: "'", + illegal: '\\n', + contains: [t.BACKSLASH_ESCAPE] + }), + (t.QUOTE_STRING_MODE = { + className: 'string', + begin: '"', + end: '"', + illegal: '\\n', + contains: [t.BACKSLASH_ESCAPE] + }), + (t.PHRASAL_WORDS_MODE = { + begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/ + }), + (t.COMMENT = function(e, n, r) { + var i = t.inherit( + { className: 'comment', begin: e, end: n, contains: [] }, + r || {} + ); + return ( + i.contains.push(t.PHRASAL_WORDS_MODE), + i.contains.push({ + className: 'doctag', + begin: '(?:TODO|FIXME|NOTE|BUG|XXX):', + relevance: 0 + }), + i + ); + }), + (t.C_LINE_COMMENT_MODE = t.COMMENT('//', '$')), + (t.C_BLOCK_COMMENT_MODE = t.COMMENT('/\\*', '\\*/')), + (t.HASH_COMMENT_MODE = t.COMMENT('#', '$')), + (t.NUMBER_MODE = { + className: 'number', + begin: t.NUMBER_RE, + relevance: 0 + }), + (t.C_NUMBER_MODE = { + className: 'number', + begin: t.C_NUMBER_RE, + relevance: 0 + }), + (t.BINARY_NUMBER_MODE = { + className: 'number', + begin: t.BINARY_NUMBER_RE, + relevance: 0 + }), + (t.CSS_NUMBER_MODE = { + className: 'number', + begin: + t.NUMBER_RE + + '(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?', + relevance: 0 + }), + (t.REGEXP_MODE = { + className: 'regexp', + begin: /\//, + end: /\/[gimuy]*/, + illegal: /\n/, + contains: [ + t.BACKSLASH_ESCAPE, + { + begin: /\[/, + end: /\]/, + relevance: 0, + contains: [t.BACKSLASH_ESCAPE] + } + ] + }), + (t.TITLE_MODE = { + className: 'title', + begin: t.IDENT_RE, + relevance: 0 + }), + (t.UNDERSCORE_TITLE_MODE = { + className: 'title', + begin: t.UNDERSCORE_IDENT_RE, + relevance: 0 + }), + (t.METHOD_GUARD = { + begin: '\\.\\s*' + t.UNDERSCORE_IDENT_RE, + relevance: 0 + }), + t + ); + }), + (o = + ('object' == typeof window && window) || + ('object' == typeof self && self)), + e.nodeType + ? o && + ((o.hljs = i({})), + void 0 === + (r = function() { + return o.hljs; + }.apply(e, [])) || (t.exports = r)) + : i(e); + }, + function(t, e, n) { + 'use strict'; + var r = n(439), + i = o(Error); + function o(t) { + return (e.displayName = t.displayName || t.name), e; + function e(e) { + return e && (e = r.apply(null, arguments)), new t(e); + } + } + (t.exports = i), + (i.eval = o(EvalError)), + (i.range = o(RangeError)), + (i.reference = o(ReferenceError)), + (i.syntax = o(SyntaxError)), + (i.type = o(TypeError)), + (i.uri = o(URIError)), + (i.create = o); + }, + function(t, e, n) { + !(function() { + var e; + function n(t) { + for ( + var e, + n, + r, + i, + o = 1, + a = [].slice.call(arguments), + s = 0, + u = t.length, + l = '', + c = !1, + f = !1, + d = function() { + return a[o++]; + }, + h = function() { + for (var n = ''; /\d/.test(t[s]); ) (n += t[s++]), (e = t[s]); + return n.length > 0 ? parseInt(n) : null; + }; + s < u; + ++s + ) + if (((e = t[s]), c)) + switch ( + ((c = !1), + '.' == e + ? ((f = !1), (e = t[++s])) + : '0' == e && '.' == t[s + 1] + ? ((f = !0), (e = t[(s += 2)])) + : (f = !0), + (i = h()), + e) + ) { + case 'b': + l += parseInt(d(), 10).toString(2); + break; + case 'c': + 'string' == typeof (n = d()) || n instanceof String + ? (l += n) + : (l += String.fromCharCode(parseInt(n, 10))); + break; + case 'd': + l += parseInt(d(), 10); + break; + case 'f': + (r = String(parseFloat(d()).toFixed(i || 6))), + (l += f ? r : r.replace(/^0/, '')); + break; + case 'j': + l += JSON.stringify(d()); + break; + case 'o': + l += '0' + parseInt(d(), 10).toString(8); + break; + case 's': + l += d(); + break; + case 'x': + l += '0x' + parseInt(d(), 10).toString(16); + break; + case 'X': + l += + '0x' + + parseInt(d(), 10) + .toString(16) + .toUpperCase(); + break; + default: + l += e; + } + else '%' === e ? (c = !0) : (l += e); + return l; + } + ((e = t.exports = n).format = n), + (e.vsprintf = function(t, e) { + return n.apply(null, [t].concat(e)); + }), + 'undefined' != typeof console && + 'function' == typeof console.log && + (e.printf = function() { + console.log(n.apply(null, arguments)); + }); + })(); + }, + function(t, e, n) { + 'use strict'; + var r = n(0); + function i(t) { + return function(e, n) { + return (function(t, e, n) { + return t.tagName + ? r.createElement( + t.tagName, + (function(t, e) { + for (var n in e) t[n] = e[n]; + return t; + })({ key: 'lo-' + n + '-' + e }, t.properties), + t.children && t.children.map(i(n + 1)) + ) + : t.value; + })(e, n, t); + }; + } + e.depth = i; + }, + function(t, e, n) { + 'use strict'; + t.exports = function(t, e) { + var n = e.markers + .map(function(t) { + return t.line ? t : { line: t }; + }) + .sort(function(t, e) { + return t.line - e.line; + }); + return (function(t, e, n) { + for ( + var r = 0, + i = e.reduce(function(e, i) { + for (var o = i.line, a = []; r < t.length; r++) + if (t[r].lineNumber < o) e.push(t[r]); + else if (t[r].lineNumber !== o) { + if (t[r].lineNumber > o) break; + } else a.push(t[r]); + return ( + e.push({ + type: 'element', + tagName: 'div', + properties: { + className: [i.className || n.prefix + 'marker'] + }, + children: a, + lineNumber: o + }), + e + ); + }, []); + r < t.length; + r++ + ) + i.push(t[r]); + return i; + })( + (function t(e) { + var n = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : 1; + return e.reduce( + function(e, r) { + if ('text' === r.type) { + if (-1 === r.value.indexOf('\n')) + return (r.lineNumber = n), e.nodes.push(r), e; + for (var i = r.value.split('\n'), o = 0; o < i.length; o++) + e.nodes.push({ + type: 'text', + value: o === i.length - 1 ? i[o] : i[o] + '\n', + lineNumber: 0 === o ? n : ++n + }); + return (e.lineNumber = n), e; + } + if (r.children) { + r.lineNumber = n; + var a = t(r.children, n); + return ( + (r.children = a.nodes), + (e.lineNumber = a.lineNumber), + e.nodes.push(r), + e + ); + } + return e.nodes.push(r), e; + }, + { nodes: [], lineNumber: n } + ); + })(t).nodes, + n, + e + ); + }; + }, + function(t, e, n) { + var r = n(443); + 'string' == typeof r && (r = [[t.i, r, '']]); + var i = { hmr: !0, transform: void 0, insertInto: void 0 }; + n(35)(r, i); + r.locals && (t.exports = r.locals); + }, + function(t, e, n) { + (t.exports = n(34)(!1)).push([ + t.i, + '.react-grid-layout{position:relative;transition:height .2s ease}.react-grid-item{transition:all .2s ease;transition-property:left,top}.react-grid-item.cssTransforms{transition-property:transform}.react-grid-item.resizing{z-index:1;will-change:width,height}.react-grid-item.react-draggable-dragging{transition:none;z-index:3;will-change:transform}.react-grid-item.dropping{visibility:hidden}.react-grid-item.react-grid-placeholder{background:red;opacity:.2;transition-duration:.1s;z-index:2;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.react-grid-item>.react-resizable-handle{position:absolute;width:20px;height:20px;bottom:0;right:0;cursor:se-resize}.react-grid-item>.react-resizable-handle:after{content:"";position:absolute;right:3px;bottom:3px;width:5px;height:5px;border-right:2px solid rgba(0,0,0,.4);border-bottom:2px solid rgba(0,0,0,.4)}', + '' + ]); + }, + function(t, e, n) { + var r = n(445); + 'string' == typeof r && (r = [[t.i, r, '']]); + var i = { hmr: !0, transform: void 0, insertInto: void 0 }; + n(35)(r, i); + r.locals && (t.exports = r.locals); + }, + function(t, e, n) { + (t.exports = n(34)(!1)).push([ + t.i, + '.react-resizable{position:relative}.react-resizable-handle{position:absolute;width:20px;height:20px;background-repeat:no-repeat;background-origin:content-box;box-sizing:border-box;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+");background-position:100% 100%;padding:0 3px 3px 0}.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-resizable-handle-e,.react-resizable-handle-w{top:50%;margin-top:-10px;cursor:ew-resize}.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-resizable-handle-n,.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}', + '' + ]); + }, + function(t, e, n) { + var r = n(447); + 'string' == typeof r && (r = [[t.i, r, '']]); + var i = { hmr: !0, transform: void 0, insertInto: void 0 }; + n(35)(r, i); + r.locals && (t.exports = r.locals); + }, + function(t, e, n) { + (t.exports = n(34)(!1)).push([ + t.i, + '.c3 svg{font:10px sans-serif;-webkit-tap-highlight-color:rgba(0,0,0,0)}.c3 line,.c3 path{fill:none;stroke:#000}.c3 text{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.c3-bars path,.c3-event-rect,.c3-legend-item-tile,.c3-xgrid-focus,.c3-ygrid{shape-rendering:crispEdges}.c3-chart-arc path{stroke:#fff}.c3-chart-arc rect{stroke:#fff;stroke-width:1}.c3-chart-arc text{fill:#fff;font-size:13px}.c3-grid line{stroke:#aaa}.c3-grid text{fill:#aaa}.c3-xgrid,.c3-ygrid{stroke-dasharray:3 3}.c3-text.c3-empty{fill:gray;font-size:2em}.c3-line{stroke-width:1px}.c3-circle._expanded_{stroke-width:1px;stroke:#fff}.c3-selected-circle{fill:#fff;stroke-width:2px}.c3-bar{stroke-width:0}.c3-bar._expanded_{fill-opacity:1;fill-opacity:.75}.c3-target.c3-focused{opacity:1}.c3-target.c3-focused path.c3-line,.c3-target.c3-focused path.c3-step{stroke-width:2px}.c3-target.c3-defocused{opacity:.3!important}.c3-region{fill:#4682b4;fill-opacity:.1}.c3-brush .extent{fill-opacity:.1}.c3-legend-item{font-size:12px}.c3-legend-item-hidden{opacity:.15}.c3-legend-background{opacity:.75;fill:#fff;stroke:#d3d3d3;stroke-width:1}.c3-title{font:14px sans-serif}.c3-tooltip-container{z-index:10}.c3-tooltip{border-collapse:collapse;border-spacing:0;background-color:#fff;empty-cells:show;box-shadow:7px 7px 12px -9px #777;opacity:.9}.c3-tooltip tr{border:1px solid #ccc}.c3-tooltip th{background-color:#aaa;font-size:14px;padding:2px 5px;text-align:left;color:#fff}.c3-tooltip td{font-size:13px;padding:3px 6px;background-color:#fff;border-left:1px dotted #999}.c3-tooltip td>span{display:inline-block;width:10px;height:10px;margin-right:6px}.c3-tooltip .value{text-align:right}.c3-area{stroke-width:0;opacity:.2}.c3-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}.c3-chart-arcs .c3-chart-arcs-background{fill:#e0e0e0;stroke:#fff}.c3-chart-arcs .c3-chart-arcs-gauge-unit{fill:#000;font-size:16px}.c3-chart-arcs .c3-chart-arcs-gauge-max,.c3-chart-arcs .c3-chart-arcs-gauge-min{fill:#777}.c3-chart-arc .c3-gauge-value{fill:#000}.c3-chart-arc.c3-target.c3-focused g path,.c3-chart-arc.c3-target g path{opacity:1}.c3-drag-zoom.enabled{pointer-events:all!important;visibility:visible}.c3-drag-zoom.disabled{pointer-events:none!important;visibility:hidden}.c3-drag-zoom .extent{fill-opacity:.1}.rangeable-container.combined-tooltip.dragging .rangeable-progress>.rangeable-tooltip,.rangeable-container.combined-tooltip.rangeable-tooltips--visible .rangeable-progress>.rangeable-tooltip,.rangeable-container.dragging.rangeable-tooltips .rangeable-handle .rangeable-tooltip,.rangeable-container.rangeable-tooltips--visible.rangeable-tooltips .rangeable-handle .rangeable-tooltip,.rangeable-container.rangeable-vertical.combined-tooltip .rangeable-progress>.rangeable-tooltip:before{display:block}.rangeable-container{cursor:pointer;width:100%}.rangeable-container.rangeable-disabled{opacity:.6;cursor:not-allowed}.rangeable-container.rangeable-multiple.combined-tooltip .rangeable-handle .rangeable-tooltip,.rangeable-container.rangeable-vertical.combined-tooltip .rangeable-handle .rangeable-tooltip{opacity:0}.rangeable-container.focus .rangeable-handle{border:1px solid #74b9ff}.rangeable-container.rangeable-multiple .rangeable-handle:first-child{left:0;transform:translate3d(-50%,-50%,0)}.rangeable-container.rangeable-multiple .rangeable-handle:nth-child(2){right:0}.rangeable-container.rangeable-vertical{height:100%;width:auto}.rangeable-container.rangeable-vertical .rangeable-track{width:8px;height:100%}.rangeable-container.rangeable-vertical .rangeable-progress{width:8px;height:100%;top:auto;bottom:0;transform-origin:0 100% 0}.rangeable-container.rangeable-vertical .rangeable-handle{right:auto;left:50%;top:0;transform:translate3d(-50%,-50%,0)}.rangeable-container.rangeable-vertical .rangeable-tooltip{position:absolute;top:50%;left:calc(100% + 6px + 4px + 5px);right:auto;bottom:auto;transform:translate3d(0,-50%,0)}.rangeable-container.rangeable-vertical .rangeable-tooltip:before{right:100%;left:auto;top:50%;transform:translate3d(0,-50%,0);border-width:4px 4px 4px 0;border-color:transparent #3db13d transparent transparent}.rangeable-container.rangeable-vertical .rangeable-buffer{width:100%;height:0}.rangeable-container.rangeable-vertical.rangeable-multiple .rangeable-handle:first-child{top:0;left:50%}.rangeable-container.rangeable-vertical.rangeable-multiple .rangeable-handle:nth-child(2){bottom:0;top:auto;transform:translate3d(-50%,50%,0)}.rangeable-input{position:absolute;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;margin:-1px;padding:0;border:0}.rangeable-input:focus+.rangeable-track .rangeable-handle:after{position:absolute;width:22px;height:22px;bottom:-6px;right:-6px;outline:1px dotted #000;content:""}.rangeable-progress,.rangeable-track{height:8px;width:100%;border-radius:4px}.rangeable-track{background-color:#ccc;position:relative}.rangeable-progress{background-color:#3db13d;position:absolute;left:0;top:0;transform-origin:0 0 0}.rangeable-progress>.rangeable-tooltip{display:none;z-index:11;top:auto;bottom:calc(100% + 7px + 9px);white-space:nowrap}.rangeable-handle{box-sizing:border-box;width:22px;height:22px;border:6px solid #3db13d;border-radius:50%;background-color:#fff;position:absolute;top:50%;right:0;transform:translate3d(50%,-50%,0)}.rangeable-handle:focus{outline:0}.rangeable-handle:focus:after{position:absolute;width:22px;height:22px;bottom:-6px;right:-6px;outline:1px dotted #000;content:""}.rangeable-handle.active{z-index:10}.rangeable-handle .rangeable-tooltip{display:none}.rangeable-tooltip{position:absolute;right:50%;bottom:calc(100% + 6px + 4px + 5px);transform:translate3d(50%,0,0);text-align:center;padding:2px 13px;background-color:#3db13d;border-radius:4px;font-weight:700;font-size:16px;color:#fff;font-family:Inconsolata,Consolas,Courier New,Lucida Console,sans-serif}.rangeable-tooltip:before{width:0;height:0;border-width:4px 4px 0;border-style:solid;border-color:#3db13d transparent transparent;position:absolute;left:50%;top:100%;transform:translate3d(-50%,0,0);content:""}.rangeable-buffers{position:absolute;left:0;top:0;height:100%;width:100%}.rangeable-buffer{position:absolute;background-color:rgba(0,0,0,.2);border-radius:4px;height:100%}.keen-dataviz{box-sizing:border-box;font-family:Gotham Rounded SSm A,Gotham Rounded SSm B,Helvetica Neue,Helvetica,Arial,sans-serif;height:100%}.keen-dataviz .partial-interval-indicator{fill:#bdbdbd}.keen-dataviz .axis{shape-rendering:crispEdges}.keen-dataviz-title{color:#4d4d4d;padding-bottom:.8em}.keen-dataviz-stage{display:block}.keen-dataviz-notes{color:gray;display:block;font-size:.8em}.keen-dataviz-box{border-radius:4px;text-align:center;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-flow:row;flex-flow:row;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;padding:1em 0;min-height:4em;height:inherit}.keen-dataviz-button{padding:.5rem 1rem;margin:1rem 0;border-radius:4px;background-color:#f9f9f9;border-color:#d6d6d6;cursor:pointer;transition:background-color .3s ease}.keen-dataviz-button:hover{background-color:#e7e7e7}.keen-dataviz .metric-comparison{-ms-flex-direction:column-reverse;flex-direction:column-reverse;color:#1a1a1a;background:#f9f9f9}.keen-dataviz-metric{height:inherit;color:#fff;background:#00bbde}.keen-dataviz-metric-value{font-size:4.3em;font-weight:700;width:100%}.keen-dataviz-metric-value-smaller{font-size:3em}.keen-dataviz-metric-title{font-size:2em;font-weight:200;width:100%}.keen-dataviz-metric-green{color:#73d483;font-size:2em}.keen-dataviz-metric-red{color:#fe6672;font-size:2em}.keen-dataviz .arrow-green{border-bottom:8px solid #73d483;top:.7em}.keen-dataviz .arrow-green,.keen-dataviz .arrow-red{width:0;height:0;border-left:8px solid transparent;border-right:8px solid transparent;position:relative;left:-.6em}.keen-dataviz .arrow-red{border-top:8px solid #fe6672;top:.8em}.keen-dataviz-message{color:gray;font-size:1.5em;width:100%}.keen-dataviz .text-label{fill:#1a1a1a}.keen-dataviz .text-main{fill:#fff;font-size:1.5em}.keen-dataviz .text-second{fill:#fff}.keen-dataviz .chart-lines{stroke:#e7e7e7}.keen-dataviz-metric-combo{width:270px;height:120px;position:relative}.keen-dataviz-metric-combo .metric-combo-data{width:100%;height:100%;padding:.5rem;position:absolute;z-index:-1;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;box-sizing:border-box}.keen-dataviz-metric-combo .c3-chart{height:120px}.keen-dataviz-metric-combo .c3-lines{display:none}.keen-dataviz-metric-combo .current-count,.keen-dataviz-metric-combo .keen-dataviz-title{width:100%}.keen-dataviz-metric-combo .current-count{margin-top:auto;margin-bottom:auto;font-size:2rem;text-align:center}.keen-dataviz-metric-combo .percent-difference{position:absolute;top:.5rem;right:.5rem;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;font-size:80%}.keen-dataviz-metric-combo .arrow-green,.keen-dataviz-metric-combo .arrow-red{margin-right:.25rem;position:static;border-width:5px}.keen-dataviz-table{border-bottom:1px solid #e7e7e7;box-sizing:border-box;overflow:scroll;position:relative;width:100%}.keen-dataviz-table table{background:#fff;border-collapse:collapse;margin:0;position:relative;width:100%}.keen-dataviz-table table .table-pagination:hover td,.keen-dataviz-table table .table-pagination td{background-color:#fff}.keen-dataviz-table table .table-pagination a{border:1px solid #e7e7e7;padding:.5em;margin-right:.2em;cursor:pointer}.keen-dataviz-table table .table-pagination .active{background:#4d4d4d;color:#fff}.keen-dataviz-table table .table-pagination .arrow{font-weight:700}.keen-dataviz-table th{background:#fff;position:-webkit-sticky;position:sticky;top:0;z-index:10;cursor:pointer}.keen-dataviz-table td,.keen-dataviz-table th{border-collapse:collapse;font-size:1em;padding:.7em;text-align:left;white-space:nowrap}.keen-dataviz-table th{border-bottom:1px solid #e7e7e7;color:#4d4d4d}.keen-dataviz-table td{background-color:#fff;color:#4d4d4d;transition:background-color .1s,color .05s}.keen-dataviz-table .table-data-row:nth-child(2n) td{background-color:#f3f5f6}.keen-dataviz-table .table-data-row:hover td{background-color:#e7e7e7;color:#4d4d4d}.keen-dataviz-table .keen-dataviz-table-fixed-header{background:#fff;border-bottom:1px solid rgba(0,0,0,.15);position:absolute;top:0;transition:top .1s}.keen-dataviz .keen-spinner-indicator{border-radius:100%;border:3px solid rgba(0,0,0,.1);border-top-color:rgba(0,0,0,.45);box-sizing:border-box;height:3em;width:3em;animation:a .7s linear infinite;-ms-animation:a .7s linear infinite;-o-animation:a .7s linear infinite}.keen-dataviz-execution-meta{position:absolute;z-index:999;padding:.5rem 1rem;margin:.75rem 0;display:inline-grid;grid-template-columns:repeat(2,-webkit-max-content);grid-template-columns:repeat(2,max-content);grid-gap:.5em 1em;text-transform:uppercase;font-size:.75rem;border:1px solid #eee;background:#fff}.keen-dataviz-execution-meta dt,.keen-dataviz-execution-meta dt:hover+dd{font-weight:700}.keen-dataviz-execution-meta dd,.keen-dataviz-execution-meta dt{margin:0;cursor:pointer}.keen-dataviz-execution-meta .copied:after{content:"copied!";vertical-align:middle;display:inline-block;font-size:10px;margin-left:.5em;position:absolute;text-transform:none;font-weight:400;animation:1s ease 0s 1 both b}@keyframes a{to{transform:rotate(1turn)}}@keyframes b{0%{opacity:1}to{opacity:0}}.keen-dataviz .c3-axis-y .tick line,.keen-dataviz .c3-axis-y path{display:none}.keen-dataviz .tick line,.keen-dataviz path.domain{stroke-opacity:.2}.keen-dataviz .c3-ygrid{stroke-dasharray:none;stroke-opacity:.1}.keen-dataviz .c3-ygrids :nth-child(2n){display:none}.keen-dataviz .c3-tooltip{border:1px solid rgba(0,0,0,.1);padding:.2em;border-radius:.2em;box-shadow:none;border-collapse:separate}.keen-dataviz .c3-tooltip th{text-align:center}.keen-dataviz .c3-tooltip table,.keen-dataviz .c3-tooltip td,.keen-dataviz .c3-tooltip th,.keen-dataviz .c3-tooltip tr{border:none;background:none;font-size:.9em}.keen-dataviz .c3-tooltip-container th{max-width:50%;word-wrap:break-word;color:#1a1a1a;background:none;font-weight:400}.keen-dataviz .c3-tooltip-container td{max-width:50%;word-wrap:break-word}.keen-dataviz-rendering{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-flow:row;flex-flow:row;-ms-flex-pack:distribute;justify-content:space-around}.keen-dataviz-rendering .c3-chart{display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;-ms-flex-order:1;order:1;-ms-flex:100%;flex:100%}.keen-dataviz-rendering .c3-chart-100-percent{width:100%;-ms-flex-item-align:center;align-self:center}.keen-dataviz-rendering-horizontal{-ms-flex-wrap:wrap;flex-wrap:wrap}.keen-c3-legend{display:-ms-flexbox;display:flex;position:relative;top:0;box-sizing:border-box}.keen-c3-legend-horizontal{-ms-flex-direction:row;-ms-flex-item-align:end;align-self:flex-end;display:-ms-flexbox;display:flex;flex-direction:row;-ms-flex-pack:center;justify-content:center;width:100%;padding:.5em 0}.keen-c3-legend-horizontal-pagination-left{-ms-flex-order:0;order:0;display:-ms-flexbox;display:flex;margin-right:1.5em}.keen-c3-legend-horizontal-items{-ms-flex-order:1;order:1}.keen-c3-legend-horizontal-pagination-right{-ms-flex-order:2;order:2;display:-ms-flexbox;display:flex;margin-left:1.5em}.keen-c3-legend-top{-ms-flex-order:0;order:0}.keen-c3-legend-bottom{-ms-flex-order:2;order:2}.keen-c3-legend-bottom .keen-c3-legend-label-overlay{top:0;margin-top:-2.7em}.keen-c3-legend-bottom .keen-c3-legend-label-overlay .overlay-pointer{top:2.4em;transform:rotate(180deg);border-color:transparent transparent #f0f0f0}.keen-c3-legend-vertical{-ms-flex-direction:column;flex-direction:column}.keen-c3-legend-vertical .keen-c3-legend-pagination-icons{margin:.5em .1em;-ms-flex-order:2;order:2}.keen-c3-legend-left{-ms-flex-order:0;order:0}.keen-c3-legend-right{-ms-flex-order:2;order:2}.keen-c3-legend-items{-ms-flex-order:1;order:1}.keen-c3-legend-vertical-items{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.keen-c3-legend-vertical-items .legend-item{width:8em}.keen-c3-legend-horizontal-items{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.keen-c3-legend-horizontal-items .legend-item{width:6em;margin:0 .25em}.keen-c3-legend .legend-item{display:-ms-flexbox;display:flex;cursor:pointer;padding:.2em;font-size:.8em}.keen-c3-legend .legend-item>*{vertical-align:middle}.keen-c3-legend .legend-item-color-sample{display:inline-block;width:1em;height:1em;margin-right:.5em;pointer-events:none;-ms-flex:none;flex:none}.keen-c3-legend .legend-item-text{pointer-events:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left}.keen-c3-legend-label-overlay .overlay-pointer{border-color:transparent transparent #fff;border-style:solid;border-width:0 10px 10px;height:0;width:0;position:absolute;top:-10px}.keen-c3-legend-position-left .overlay-pointer,.keen-c3-legend-position-right .overlay-pointer{left:0}.keen-c3-legend-pagination-vertical{margin-top:.5em}.keen-c3-legend-pagination-icons{padding:.2em}.keen-c3-legend-pagination-icons i{border-left:1em solid transparent;border-right:1em solid transparent;border-top:1.5em solid #4d4d4d;display:inline-block;padding:0;float:left;cursor:pointer;font-size:.5em}.keen-c3-legend-pagination-icons .right{transform:rotate(-90deg);-webkit-transform:rotate(-90deg)}.keen-c3-legend-pagination-icons .left{transform:rotate(90deg);-webkit-transform:rotate(90deg)}.keen-c3-legend-pagination-icons .up{transform:rotate(-180deg);-webkit-transform:rotate(-180deg);margin-top:.1em}.keen-c3-legend-pagination-icons .down{margin-right:1em}.keen-c3-legend-label-overlay{font-size:1em;background:hsla(0,0%,100%,.9);box-shadow:0 1px 1px rgba(26,26,26,.09999999999999998);padding:.6em;margin-top:1.5em;position:absolute;word-wrap:break-word;pointer-events:none;z-index:222}.keen-c3-legend-align-left{-ms-flex-pack:start;justify-content:flex-start}.keen-c3-legend-align-left .keen-c3-legend-horizontal-items{-ms-flex-pack:start;justify-content:flex-start;margin-right:auto}.keen-c3-legend-align-center{-ms-flex-pack:center;justify-content:center}.keen-c3-legend-align-center .keen-c3-legend-horizontal-items{-ms-flex-pack:center;justify-content:center;margin-left:auto;margin-right:auto}.keen-c3-legend-align-right{-ms-flex-pack:end;justify-content:flex-end}.keen-c3-legend-align-right .keen-c3-legend-horizontal-items{-ms-flex-pack:end;justify-content:flex-end;margin-left:auto}.keen-c3-legend-align-top{-ms-flex-pack:start;justify-content:flex-start}.keen-c3-legend-align-middle{-ms-flex-pack:center;justify-content:center}.keen-c3-legend-align-bottom{-ms-flex-pack:end;justify-content:flex-end}.keen-dataviz-range .c3-area-Max,.keen-dataviz-range .c3-bars-Max{display:none}.keen-dataviz~.rangeable-container{margin:2rem auto;width:75%}.keen-dataviz~.rangeable-container .rangeable-progress,.keen-dataviz~.rangeable-container .rangeable-track{height:4px}.keen-dataviz~.rangeable-container .rangeable-handle{width:16px;height:16px;border-width:4px}.keen-dataviz~.rangeable-container .rangeable-tooltip{border-radius:0;font-weight:400;padding:3px 9px}', + '' + ]); + }, + function(t, e, n) { + var r = n(449); + 'string' == typeof r && (r = [[t.i, r, '']]); + var i = { hmr: !0, transform: void 0, insertInto: void 0 }; + n(35)(r, i); + r.locals && (t.exports = r.locals); + }, + function(t, e, n) { + (t.exports = n(34)(!1)).push([ + t.i, + 'body{margin:0}.dashboard-builder{width:100%;margin:0;height:100vh;position:relative;display:flex;justify-content:center;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;background:#f9f9f9;color:#000;overflow:hidden;box-sizing:border-box}.dashboard-builder.container{width:1200px;min-height:100vh;height:auto;display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start;justify-content:flex-start;background:#f5f5f5}.dashboard-builder .dashboard{position:relative;width:100%;min-height:calc(100vh - 130px);padding:20px;box-sizing:border-box}.dashboard-builder .dashboard-container{width:100%;overflow:auto;padding-left:60px}.dashboard-builder .dashboard-container-viewer{width:100%;overflow:auto}.dashboard-builder .dashboard-container-viewer .dashboard-top-bar{width:100%;z-index:12}.dashboard-builder .dashboard-container-viewer .dashboard-top-bar .export-icon{margin:0 1rem;order:2;flex-shrink:0}.dashboard-builder .dashboard-inner-container{background:#fdfdfd;margin:auto}.dashboard-builder .dashboard-title{height:60px;width:100%;position:relative;display:flex;align-items:center;justify-content:space-between;padding:.5rem}.dashboard-builder .dashboard-title input{border:0;background:inherit;width:100%;font-size:30px;outline:none;padding:5px 5px 5px 0}.dashboard-builder .dashboard-title .title{padding:20px}.dashboard-builder .dashboard-title a{text-decoration:none}.dashboard-builder .dashboard-top-bar{height:50px;width:100%;background:#f9f9f9;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;position:sticky;top:0;left:0;z-index:9}.dashboard-builder .dashboard-top-bar__menu{flex-shrink:0;display:flex;align-items:center}.dashboard-builder .dashboard-top-bar .share{position:relative}.dashboard-builder .dashboard-top-bar .embed,.dashboard-builder .dashboard-top-bar .share{margin:0 1rem;cursor:pointer}.dashboard-builder .dashboard-list-item{width:20%;min-width:180px;height:200px;padding:10px;position:relative}.dashboard-builder .dashboard-list-item:hover>.dashboard-list-item-buttons{visibility:visible}.dashboard-builder .dashboard-list-item-box{background:#fff;display:flex;justify-content:center;align-items:center;border:1px solid #eee;border-radius:5px;width:100%;height:100%;transition:box-shadow .3s;color:#000;padding:10px;text-align:center}.dashboard-builder .dashboard-list-item-box:hover{box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23)}.dashboard-builder .dashboard-list-item-box time{position:absolute;bottom:15px;left:20px;color:#aaa;font-size:12px}.dashboard-builder .dashboard-list-item-buttons{position:absolute;top:15px;right:15px;cursor:pointer;visibility:hidden}.dashboard-builder .dashboard-saved-message{position:absolute;top:.5rem;left:45%;padding:.5rem 1rem;border-radius:5px;background:#333;color:#fff;font-size:.85rem;z-index:11}.dashboard-builder .dashboard img{width:100%;height:100%}.dashboard-builder .toolbar{position:absolute;left:0;top:0;width:60px;height:100%;z-index:10}.dashboard-builder .toolbar-bar{width:100%;height:100%;position:relative;z-index:6;border-right:1px solid #929191;padding:20px;background:#2f97b9;color:#fff;cursor:pointer}.dashboard-builder .toolbar-bar h3{transform:translateY(100%) rotate(-90deg);transform-origin:0 0;white-space:nowrap;overflow:hidden;position:absolute;top:110px;left:15px;color:#fff}.dashboard-builder .toolbar-container{position:absolute;left:-135px;height:100%;border-right:1px solid #929191;background:#fff;box-shadow:3px 3px 6px #eee;border-right:0;overflow-y:auto;transition:left .25s ease-out}.dashboard-builder .toolbar-hidden{width:90px;display:flex;flex-direction:row;flex-wrap:wrap;padding:10px 10px 10px 20px}.dashboard-builder .toolbar-hidden>h4{font-size:.7rem;width:100%;margin:2rem 0 .5rem;font-weight:400;text-transform:uppercase}.dashboard-builder .toolbar-hidden>h4:first-of-type{margin-top:1rem}.dashboard-builder .toolbar-hidden p{cursor:pointer;z-index:5;margin:0;padding:5px;width:50px;height:50px;display:flex;align-items:center;justify-content:center;background:#fff}.dashboard-builder .toolbar-hidden .metric-chart-icon{font-size:20px;font-weight:600}.dashboard-builder .toolbar-visible{left:60px}.dashboard-builder .burger-icon{padding:0 20px;cursor:pointer;position:relative}.dashboard-builder .burger-icon .fa-bars{color:#2f97b9}.dashboard-builder .modal{display:block;position:absolute;background:#fff;border:1px solid #eee;border-radius:5px;z-index:11;top:0;left:20px;right:auto;bottom:auto;font-size:14px;width:250px;box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23)}.dashboard-builder .modal-header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:15px;border-bottom:1px solid #eee;font-size:17px}.dashboard-builder .modal-header .svg-inline--fa{cursor:pointer}.dashboard-builder .modal .dashboards-filter{padding:.25rem 1rem;border-bottom:1px solid #eee;display:flex;justify-content:space-between}.dashboard-builder .modal .dashboards-filter input{font-size:14px}.dashboard-builder .modal-body{padding:15px;max-height:300px;overflow:auto}.dashboard-builder .modal-body .item{padding:1rem;border-bottom:1px solid #eee;display:flex;flex-direction:column}.dashboard-builder .modal-body .item:hover{background:#f3f3f3}.dashboard-builder .modal-body .item .time{color:#aaa;font-size:12px}.dashboard-builder .modal-body .active{background:#f9f9f9}.dashboard-builder .modal-body .active .fa-angle-double-right{color:#2f97b9;padding-right:5px}.dashboard-builder .modal-body .modal-input{padding:8px 4px;margin-bottom:.5em;width:100%}.dashboard-builder .modal-body .prism{margin-bottom:40px;white-space:pre-wrap}.dashboard-builder .modal-button{border-radius:5px;padding:5px 15px;cursor:pointer;color:#fff;background:#2f97b9;border:none;font-size:14px;line-height:1}.dashboard-builder .modal-button .svg-inline--fa{margin-right:.25rem}.dashboard-builder .modal-footer{padding:10px}.dashboard-builder .modal-cover{width:100%;height:100%;opacity:.4;background:#000;position:absolute;top:0;left:0;z-index:10}.dashboard-builder .modal.share-dashboard{width:500px;top:50px;left:50%;transform:translateX(-50%)}.dashboard-builder .modal.embed-dashboard{width:75%;max-width:700px;top:50%;left:50%;transform:translate(-50%,-50%)}.dashboard-builder .modal.embed-dashboard .modal-button{position:fixed;bottom:15px;left:15px}.dashboard-builder .editor-dashboard-switch .modal-body{padding:0}.dashboard-builder .paragraph{padding:0 10px;overflow:hidden;width:100%}.dashboard-builder .paragraph p{margin:0}.dashboard-builder .keen-dataviz{padding:15px;border:1px solid #ccc}.dashboard-builder .keen-dataviz .keen-dataviz{padding:0;border:none}.dashboard-builder .chart-container{background:#fff;justify-content:center;align-items:center;position:absolute;border-radius:5px;display:flex;flex-direction:column;transition:box-shadow .3s;z-index:1}.dashboard-builder .chart-container:hover{box-shadow:-6px 6px 8px 0 rgba(0,0,0,.23);z-index:8}.dashboard-builder .chart-container:hover .config-buttons{visibility:visible}.dashboard-builder .chart-container img{border-radius:5px}.dashboard-builder .chart-container>.keen-dataviz{overflow:auto;width:100%;margin-top:0;border:1px solid #eee}.dashboard-builder .chart-container-viewer{background:#fff;justify-content:center;align-items:center;border-radius:5px;display:flex;flex-direction:column;transition:box-shadow .3s;z-index:1;position:relative}.dashboard-builder .chart-container-viewer .c3-tooltip-container{z-index:10}.dashboard-builder .chart-container-viewer:hover .explorer-button{visibility:visible}.dashboard-builder .chart-container-viewer img{border-radius:5px}.dashboard-builder .chart-container-viewer>.keen-dataviz{overflow:auto;width:100%;margin-top:0;border:1px solid #eee}.dashboard-builder .config-buttons{position:absolute;top:-1px;right:-35px;display:flex;flex-direction:column;visibility:hidden;padding-left:5px;opacity:1}.dashboard-builder .config-buttons div{cursor:pointer;width:30px;height:30px;background:#000;color:#fff;font-size:15px;box-sizing:border-box;margin-bottom:2px;display:flex;align-items:center;justify-content:center;opacity:.7;border-radius:3px}.dashboard-builder .config-buttons div:hover{background:#424242}.dashboard-builder .explorer-button{position:absolute;z-index:4;top:2px;right:2px;cursor:pointer;width:30px;height:30px;background:#000;color:#fff;box-sizing:border-box;opacity:.7;border-radius:3px;padding-left:8px;padding-top:2px;visibility:hidden}.dashboard-builder .explorer-button a{color:#fff}.dashboard-builder .explorer-button:hover{background:#424242}.dashboard-builder .top-left{left:0;top:0;cursor:nwse-resize;width:10px;height:10px;z-index:4}.dashboard-builder .top-right{right:0;top:0;cursor:nesw-resize;width:10px;height:10px;z-index:4}.dashboard-builder .bottom-left{left:0;bottom:0;cursor:nesw-resize;width:10px;height:10px;z-index:4}.dashboard-builder .bottom-right{right:1px;bottom:1px;cursor:nwse-resize;width:12px;height:12px;z-index:4;border-style:solid;border-width:0 0 12px 12px;border-color:transparent transparent #7c7c7c}.dashboard-builder .left{left:0}.dashboard-builder .left,.dashboard-builder .right{top:0;height:100%;width:5px;cursor:ew-resize;z-index:3}.dashboard-builder .right{right:0}.dashboard-builder .top{top:0}.dashboard-builder .bottom,.dashboard-builder .top{left:0;width:100%;height:5px;cursor:ns-resize;z-index:3}.dashboard-builder .bottom{bottom:0}.dashboard-builder .keen-dataviz-table th{z-index:0}.dashboard-builder .keen-dataviz-title{padding-top:5px}.dashboard-builder .keen-dataviz-metric-subtitle,.dashboard-builder .keen-dataviz-metric-title,.dashboard-builder .keen-dataviz-subtitle,.dashboard-builder .keen-dataviz-title{padding-left:10px;padding-right:10px}.dashboard-builder .chart-draggable{position:absolute;left:10px;width:calc(100% - 20px);height:calc(100% - 20px);z-index:2;cursor:move}.dashboard-builder .search{width:65%;height:100%;display:flex;flex-direction:row;font-size:15px;align-items:center}.dashboard-builder .search svg{margin-right:10px}.dashboard-builder .search input{border:0;background:inherit;width:100%;height:100%;outline:none;font-size:20px}.dashboard-builder .sorting-select{width:200px;margin-top:15px}.dashboard-builder .screen-resize-icon{display:flex;color:hsla(0,0%,44%,.65882);align-items:center;flex:1;justify-content:center}.dashboard-builder .screen-resize-icon svg{margin:0 1rem;cursor:pointer}.dashboard-builder .screen-resize-icon svg:hover{color:#000}.dashboard-builder .save-dashboard-button{border-radius:5px;padding:5px;cursor:pointer;transition:.3s;width:80px;height:31px;margin-right:20px;margin-left:20px;text-align:center;color:#fff;background:#2f97b9;text-transform:uppercase;line-height:1}.dashboard-builder .save-dashboard-button svg{margin-right:.25rem}.dashboard-builder .settings{width:350px;background:#f3f7f9}.dashboard-builder .settings h4{margin-top:2rem;margin-bottom:.5rem;font-weight:400}.dashboard-builder .settings-wrapper{padding:1rem}.dashboard-builder .settings-input{color:#333;font-size:14px;height:38px}.dashboard-builder .settings-input,.dashboard-builder .settings-textarea{width:100%;border-radius:4px;padding:9px;border:1px solid #ccc;outline:none}.dashboard-builder .settings-textarea{color:gray;font-size:16px;height:50%}.dashboard-builder .settings-select>div{width:100%}.dashboard-builder .settings-chart{padding:0}.dashboard-builder .settings-chart-saved-query{padding:1rem}.dashboard-builder .settings-chart #dashboard-builder-explorer .keen-explorer .panel-main{min-width:0;max-width:330px;box-shadow:none}.dashboard-builder .settings-chart .keen-theme-builder{padding:0}.dashboard-builder .settings-chart .keen-theme-builder .builder__header{display:none}.dashboard-builder .settings-chart .keen-theme-builder .keen-theme-builder__row{padding-left:1rem;padding-right:1rem}.dashboard-builder .settings-chart .keen-theme-builder .accordion__item__content .keen-theme-builder__row{padding:0}.dashboard-builder .settings-chart h4:first-child{margin-top:0}.dashboard-builder .react-tabs__tab{width:50%;padding:10px;text-align:center;cursor:pointer;color:#fff;outline:none;border:0;background:#2f97b9}.dashboard-builder .react-tabs__tab:first-of-type{border-right:none}.dashboard-builder .react-tabs__tab--selected{color:#000;border-bottom:none;background:#fff;border-top:1px solid #eee}.dashboard-builder .react-tabs__tab-list{display:flex;flex-direction:row;list-style:none;justify-content:space-between;padding:0;margin-bottom:0}.dashboard-builder .react-tabs__tab-panel{border:0}.dashboard-builder .react-tabs__tab-panel--selected{padding:10px 20px 20px;border:0;visibility:visible;height:calc(100vh - 40px);overflow-y:auto}.dashboard-builder .react-tabs__tab-panel--selected .keen-theme-builder{padding:0}.dashboard-builder .settings-container{min-width:350px;min-height:100%;background:#fff;border-left:1px solid #eee;position:relative;background:#f3f7f9;overflow:auto}.dashboard-builder .settings-container .color-palette__item .color-picker__popover{left:0;right:auto}.dashboard-builder .settings-container .color-palette__item:nth-child(2n) .color-picker__popover{left:auto;right:0}.dashboard-builder .new-dashboard-button{border-radius:5px;padding:1rem;cursor:pointer;color:#fff;background:#2f97b9;text-align:left;white-space:nowrap;display:flex;align-items:center}.dashboard-builder .new-dashboard-button:hover{color:#fff;background:#2f97b9}.dashboard-builder .new-dashboard-button svg{margin-right:.5rem}.dashboard-builder .container{width:1200px;background:#f5f5f5;min-height:100vh;display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start}.dashboard-builder .top-toolbar{flex:1 100%;padding:20px;display:flex;flex-direction:row;justify-content:space-between;width:100%;border-bottom:1px solid #cfcfcf}.dashboard-builder .message{width:100%;text-align:center;padding:20px}.dashboard-builder .new-chart-info,.dashboard-builder .settings-loading{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;background:hsla(0,0%,98%,.9);border-bottom-left-radius:5px;border-bottom-right-radius:5px}.dashboard-builder .error-message{z-index:1;background:#fff;padding:20px;text-align:center;color:red;border:1px solid red;border-radius:5px}.dashboard-builder .dry-run-message{position:absolute;left:0;bottom:0;padding:1rem;background:hsla(0,0%,44%,.65882);color:#fff;border-radius:0 1rem 0 0}.dashboard-builder .select-palette-button select{margin-right:20px;border-radius:5px;padding:8px;width:100px;height:31px;background:#fff}.dashboard-builder .preview{padding:10px}.dashboard-builder .preview a{color:#000}.dashboard-builder .embed-icon:hover,.dashboard-builder .preview:hover a,.dashboard-builder .share-icon:hover{color:#414141}.dashboard-builder .quill{height:70%}.dashboard-builder .edit-dashboard-button{border-radius:5px;padding:5px 10px;cursor:pointer;width:fit-content;text-align:center;color:#fff;background:#2f97b9;text-decoration:none;flex-shrink:0;margin:0 0 0 .5em}.dashboard-builder .edit-dashboard-button__link{display:block;color:#fff;text-decoration:none}.dashboard-builder .edit-dashboard-button__link:hover{color:#fff;text-decoration:none}.dashboard-builder .big-icon{font-size:50px;color:#eee}.dashboard-builder .loading{font-size:50px;animation:a 1s ease infinite;z-index:13}.dashboard-builder .settings-theme-builder,.dashboard-builder .settings-theme-builder .keen-theme-builder{padding:0}.dashboard-builder .settings-theme-builder .keen-theme-builder .builder__header{display:none}.dashboard-builder .switch-dashboard{width:400px;z-index:10}.dashboard-builder .__react_component_tooltip{padding:3px 5px}.dashboard-builder .keen-theme-builder{background-color:#fff}.dashboard-builder .keen-theme-builder .color-picker__popover{z-index:10}.dashboard-builder .keen-theme-builder .builder__header{display:none}.dashboard-builder .heatmap-container .keen-dataviz-rendering-vertical{height:calc(100% - 50px)}.dashboard-builder .keen-dataviz .rangeable-container{margin:2rem auto;width:75%}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-progress,.dashboard-builder .keen-dataviz .rangeable-container .rangeable-track{height:4px}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-handle{width:16px;height:16px;border-width:4px}.dashboard-builder .keen-dataviz .rangeable-container .rangeable-tooltip{border-radius:0;font-weight:400;padding:3px 9px}.dashboard-builder .c3-circle{fill:currentColor}@media only screen and (max-width:1300px){.dashboard-builder .dashboard{min-height:calc(100vh - 130px)}}@media only screen and (min-width:1800px){.dashboard-builder .toolbar-bar{visibility:hidden}.dashboard-builder .toolbar-container{left:0}.dashboard-builder .dashboard-container{padding-left:90px}}.dashboard-builder .export-icon{cursor:pointer}.dashboard-builder .switcher{margin-bottom:.5rem;display:block;position:relative;overflow:hidden}.dashboard-builder .switcher__input:checked~.switcher__toggle{border-color:#3ed08e;background-color:#dcf9eb}.dashboard-builder .switcher__input:checked~.switcher__toggle .switcher__switch{right:2px;background-color:#3ed08e}.dashboard-builder .switcher__input:checked~.switcher__value .on{display:block}.dashboard-builder .switcher__input:checked~.switcher__value .off{display:none}.dashboard-builder .switcher__toggle{position:relative;width:36px;height:20px;margin-right:.25rem;margin-left:.5rem;border:1px solid #ccc;background-color:#fff;border-radius:10px;display:inline-block}.dashboard-builder .switcher__switch{position:absolute;top:2px;bottom:0;right:18px;width:14px;height:14px;margin:0;background:#ccc;border-radius:50%;flex-shrink:0;transition:right .15s ease-in-out,background-color .15s ease-in-out}.dashboard-builder .switcher__title{font-weight:800}.dashboard-builder .switcher__label{display:flex;align-items:center;cursor:pointer}.dashboard-builder .switcher__input{position:absolute;left:-999px}.dashboard-builder .switcher__value{margin-left:.25rem;color:#b3b5b6}.dashboard-builder .switcher__value .on{display:none}.dashboard-builder .switcher__value .off{display:block}.dashboard-builder .layout.editor .keen-dataviz .c3-chart{pointer-events:none}.dashboard-builder .react-grid-item:hover{z-index:7}.dashboard-builder .react-grid-item:hover .config-buttons{visibility:visible}.dashboard-builder .react-grid-item>.react-resizable-handle{width:16px;height:16px;background-color:transparent;background-image:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0IiB2aWV3Qm94PSI5Mi43MjYzMzE4ODA1ODUzOCA4My45MzgyNjA0OTcxMDkwMSA0NzQuMTIxNzExMjU2OTYxIDQ3NC4xMjM0NzkwMDU3ODIiIHdpZHRoPSI0NzAuMTIiIGhlaWdodD0iNDcwLjEyIj48ZGVmcz48cGF0aCBkPSJNMTg1LjY1IDI0Ny41N0w0MDEuMjEgNDYzLjE0QzM3Ni43OSA0ODcuNTYgMzYzLjIyIDUwMS4xMyAzNjAuNSA1MDMuODVDMzQxLjYgNTIyLjc1IDM1NC45OSA1NTUuMDYgMzgxLjcyIDU1NS4wNkMzOTYuOTMgNTU1LjA2IDUxOC42MyA1NTUuMDYgNTMzLjg1IDU1NS4wNkM1NTAuNDIgNTU1LjA2IDU2My44NSA1NDEuNjMgNTYzLjg1IDUyNS4wNkM1NjMuODUgNTA5Ljg1IDU2My44NSAzODguMTQgNTYzLjg1IDM3Mi45M0M1NjMuODUgMzQ2LjIgNTMxLjUzIDMzMi44MiA1MTIuNjMgMzUxLjcyQzUwOS45MiAzNTQuNDMgNDk2LjM1IDM2OCA0NzEuOTIgMzkyLjQzTDI1Ni4zNiAxNzYuODZDMjgwLjc5IDE1Mi40NCAyOTQuMzYgMTM4Ljg3IDI5Ny4wNyAxMzYuMTVDMzE1Ljk3IDExNy4yNSAzMDIuNTkgODQuOTQgMjc1Ljg2IDg0Ljk0QzI2MC42NSA4NC45NCAxMzguOTQgODQuOTQgMTIzLjczIDg0Ljk0QzEwNy4xNiA4NC45NCA5My43MyA5OC4zNyA5My43MyAxMTQuOTRDOTMuNzMgMTMwLjE1IDkzLjczIDI1MS44NiA5My43MyAyNjcuMDdDOTMuNzMgMjkzLjggMTI2LjA0IDMwNy4xOCAxNDQuOTQgMjg4LjI4QzE1MC4zNyAyODIuODYgMTYzLjk0IDI2OS4yOSAxODUuNjUgMjQ3LjU3WiIgaWQ9ImFYVDAwb2VrQyI+PC9wYXRoPjwvZGVmcz48Zz48Zz48dXNlIHhsaW5rOmhyZWY9IiNhWFQwMG9la0MiIG9wYWNpdHk9IjEiIGZpbGw9IiMwMDAwMDAiIGZpbGwtb3BhY2l0eT0iMSI+PC91c2U+PGc+PHVzZSB4bGluazpocmVmPSIjYVhUMDBvZWtDIiBvcGFjaXR5PSIxIiBmaWxsLW9wYWNpdHk9IjAiIHN0cm9rZT0iIzAwMDAwMCIgc3Ryb2tlLXdpZHRoPSIxIiBzdHJva2Utb3BhY2l0eT0iMCI+PC91c2U+PC9nPjwvZz48L2c+PC9zdmc+");background-size:contain;cursor:nwse-resize;opacity:0;will-change:opacity;transition:opacity .25s ease-out}.dashboard-builder .react-grid-item>.react-resizable-handle:after{content:none}.dashboard-builder .react-grid-item.react-resizable:hover .react-resizable-handle{opacity:1}.dashboard-builder .react-grid-item.react-grid-placeholder{background:#2f97b9}.dashboard-builder .react-grid-item .keen-dataviz{overflow:auto}.dashboard-builder .react-grid-item img{pointer-events:none}.dashboard-builder .react-grid-layout{min-height:230px}@keyframes a{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}', + '' + ]); + }, + function(t, e, n) { + t.exports = { + locale: 'en', + long: n(451), + short: n(452), + narrow: n(453), + quantify: n(454) + }; + }, + function(t) { + t.exports = JSON.parse( + '{"year":{"previous":"last year","current":"this year","next":"next year","past":{"one":"{0} year ago","other":"{0} years ago"},"future":{"one":"in {0} year","other":"in {0} years"}},"quarter":{"previous":"last quarter","current":"this quarter","next":"next quarter","past":{"one":"{0} quarter ago","other":"{0} quarters ago"},"future":{"one":"in {0} quarter","other":"in {0} quarters"}},"month":{"previous":"last month","current":"this month","next":"next month","past":{"one":"{0} month ago","other":"{0} months ago"},"future":{"one":"in {0} month","other":"in {0} months"}},"week":{"previous":"last week","current":"this week","next":"next week","past":{"one":"{0} week ago","other":"{0} weeks ago"},"future":{"one":"in {0} week","other":"in {0} weeks"}},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":{"one":"{0} hour ago","other":"{0} hours ago"},"future":{"one":"in {0} hour","other":"in {0} hours"}},"minute":{"current":"this minute","past":{"one":"{0} minute ago","other":"{0} minutes ago"},"future":{"one":"in {0} minute","other":"in {0} minutes"}},"second":{"current":"now","past":{"one":"{0} second ago","other":"{0} seconds ago"},"future":{"one":"in {0} second","other":"in {0} seconds"}}}' + ); + }, + function(t) { + t.exports = JSON.parse( + '{"year":{"previous":"last yr.","current":"this yr.","next":"next yr.","past":"{0} yr. ago","future":"in {0} yr."},"quarter":{"previous":"last qtr.","current":"this qtr.","next":"next qtr.","past":{"one":"{0} qtr. ago","other":"{0} qtrs. ago"},"future":{"one":"in {0} qtr.","other":"in {0} qtrs."}},"month":{"previous":"last mo.","current":"this mo.","next":"next mo.","past":"{0} mo. ago","future":"in {0} mo."},"week":{"previous":"last wk.","current":"this wk.","next":"next wk.","past":"{0} wk. ago","future":"in {0} wk."},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":"{0} hr. ago","future":"in {0} hr."},"minute":{"current":"this minute","past":"{0} min. ago","future":"in {0} min."},"second":{"current":"now","past":"{0} sec. ago","future":"in {0} sec."}}' + ); + }, + function(t) { + t.exports = JSON.parse( + '{"year":{"previous":"last yr.","current":"this yr.","next":"next yr.","past":"{0} yr. ago","future":"in {0} yr."},"quarter":{"previous":"last qtr.","current":"this qtr.","next":"next qtr.","past":{"one":"{0} qtr. ago","other":"{0} qtrs. ago"},"future":{"one":"in {0} qtr.","other":"in {0} qtrs."}},"month":{"previous":"last mo.","current":"this mo.","next":"next mo.","past":"{0} mo. ago","future":"in {0} mo."},"week":{"previous":"last wk.","current":"this wk.","next":"next wk.","past":"{0} wk. ago","future":"in {0} wk."},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":"{0} hr. ago","future":"in {0} hr."},"minute":{"current":"this minute","past":"{0} min. ago","future":"in {0} min."},"second":{"current":"now","past":"{0} sec. ago","future":"in {0} sec."}}' + ); + }, + function(t, e) { + t.exports = function(t) { + var e = !String(t).split('.')[1]; + return 1 == t && e ? 'one' : 'other'; + }; + }, + function(t) { + t.exports = JSON.parse( + '{"year":"{0} yr.","month":"{0} mo.","week":"{0} wk.","day":{"one":"{0} day","other":"{0} days"},"hour":"{0} hr.","minute":"{0} min.","second":"{0} sec.","now":"now"}' + ); + }, + function(t) { + t.exports = JSON.parse( + '{"year":{"previous":"last yr.","current":"this yr.","next":"next yr.","past":"{0} yr. ago","future":"in {0} yr."},"quarter":{"previous":"last qtr.","current":"this qtr.","next":"next qtr.","past":{"one":"{0} qtr. ago","other":"{0} qtrs. ago"},"future":{"one":"in {0} qtr.","other":"in {0} qtrs."}},"month":{"previous":"last mo.","current":"this mo.","next":"next mo.","past":"{0} mo. ago","future":"in {0} mo."},"week":{"previous":"last wk.","current":"this wk.","next":"next wk.","past":"{0} wk. ago","future":"in {0} wk."},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":"{0} hr. ago","future":"in {0} hr."},"minute":{"current":"this minute","past":"{0} min. ago","future":"in {0} min."},"second":{"current":"now","past":"{0} sec. ago","future":"in {0} sec."},"now":{"future":"in a moment","past":"just now"}}' + ); + }, + function(t) { + t.exports = JSON.parse( + '{"year":{"one":"{0} year","other":"{0} years"},"month":{"one":"{0} month","other":"{0} months"},"week":{"one":"{0} week","other":"{0} weeks"},"day":{"one":"{0} day","other":"{0} days"},"hour":{"one":"{0} hour","other":"{0} hours"},"minute":{"one":"{0} minute","other":"{0} minutes"},"second":{"one":"{0} second","other":"{0} seconds"},"now":{"future":"in a moment","past":"just now"}}' + ); + }, + function(t) { + t.exports = JSON.parse( + '{"year":{"previous":"last year","current":"this year","next":"next year","past":{"one":"a year ago","other":"{0} years ago"},"future":{"one":"in a year","other":"in {0} years"}},"quarter":{"previous":"last quarter","current":"this quarter","next":"next quarter","past":{"one":"a quarter ago","other":"{0} quarters ago"},"future":{"one":"in a quarter","other":"in {0} quarters"}},"month":{"previous":"last month","current":"this month","next":"next month","past":{"one":"a month ago","other":"{0} months ago"},"future":{"one":"in a month","other":"in {0} months"}},"week":{"previous":"last week","current":"this week","next":"next week","past":{"one":"a week ago","other":"{0} weeks ago"},"future":{"one":"in a week","other":"in {0} weeks"}},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"a day ago","other":"{0} days ago"},"future":{"one":"in a day","other":"in {0} days"}},"hour":{"current":"this hour","past":{"one":"an hour ago","other":"{0} hours ago"},"future":{"one":"in an hour","other":"in {0} hours"}},"minute":{"current":"this minute","past":{"one":"a minute ago","other":"{0} minutes ago"},"future":{"one":"in a minute","other":"in {0} minutes"}},"second":{"current":"now","past":{"one":"a second ago","other":"{0} seconds ago"},"future":{"one":"in a second","other":"in {0} seconds"}},"now":{"future":"in a moment","past":"just now"}}' + ); + }, + function(t) { + t.exports = JSON.parse( + '{"year":"{0}yr","month":"{0}mo","week":"{0}wk","day":"{0}d","hour":"{0}h","minute":"{0}m","second":"{0}s","now":"now"}' + ); + }, + function(t, e, n) { + 'use strict'; + n.r(e); + var r = n(26), + i = n.n(r), + o = n(15), + a = n.n(o), + s = n(0), + u = n.n(s), + l = n(7), + c = n.n(l); + function f(t, e) { + (t.prototype = Object.create(e.prototype)), + (t.prototype.constructor = t), + (t.__proto__ = e); + } + var d = n(48), + h = n.n(d), + p = n(1), + g = n.n(p), + m = n(158), + v = n.n(m), + y = 1073741823; + var b = + u.a.createContext || + function(t, e) { + var n, + r, + i = '__create-react-context-' + v()() + '__', + o = (function(t) { + function n() { + var e; + return ( + ((e = t.apply(this, arguments) || this).emitter = (function( + t + ) { + var e = []; + return { + on: function(t) { + e.push(t); + }, + off: function(t) { + e = e.filter(function(e) { + return e !== t; + }); + }, + get: function() { + return t; + }, + set: function(n, r) { + (t = n), + e.forEach(function(e) { + return e(t, r); + }); + } + }; + })(e.props.value)), + e + ); + } + h()(n, t); + var r = n.prototype; + return ( + (r.getChildContext = function() { + var t; + return ((t = {})[i] = this.emitter), t; + }), + (r.componentWillReceiveProps = function(t) { + if (this.props.value !== t.value) { + var n, + r = this.props.value, + i = t.value; + ((o = r) === (a = i) + ? 0 !== o || 1 / o == 1 / a + : o != o && a != a) + ? (n = 0) + : ((n = 'function' == typeof e ? e(r, i) : y), + 0 !== (n |= 0) && this.emitter.set(t.value, n)); + } + var o, a; + }), + (r.render = function() { + return this.props.children; + }), + n + ); + })(s.Component); + o.childContextTypes = (((n = {})[i] = g.a.object.isRequired), n); + var a = (function(e) { + function n() { + var t; + return ( + ((t = e.apply(this, arguments) || this).state = { + value: t.getValue() + }), + (t.onUpdate = function(e, n) { + 0 != ((0 | t.observedBits) & n) && + t.setState({ value: t.getValue() }); + }), + t + ); + } + h()(n, e); + var r = n.prototype; + return ( + (r.componentWillReceiveProps = function(t) { + var e = t.observedBits; + this.observedBits = null == e ? y : e; + }), + (r.componentDidMount = function() { + this.context[i] && this.context[i].on(this.onUpdate); + var t = this.props.observedBits; + this.observedBits = null == t ? y : t; + }), + (r.componentWillUnmount = function() { + this.context[i] && this.context[i].off(this.onUpdate); + }), + (r.getValue = function() { + return this.context[i] ? this.context[i].get() : t; + }), + (r.render = function() { + return ((t = this.props.children), + Array.isArray(t) ? t[0] : t)(this.state.value); + var t; + }), + n + ); + })(s.Component); + return ( + (a.contextTypes = (((r = {})[i] = g.a.object), r)), + { Provider: o, Consumer: a } + ); + }, + x = n(2); + function w(t) { + return '/' === t.charAt(0); + } + function S(t, e) { + for (var n = e, r = n + 1, i = t.length; r < i; n += 1, r += 1) + t[n] = t[r]; + t.pop(); + } + var E = function(t, e) { + void 0 === e && (e = ''); + var n, + r = (t && t.split('/')) || [], + i = (e && e.split('/')) || [], + o = t && w(t), + a = e && w(e), + s = o || a; + if ( + (t && w(t) ? (i = r) : r.length && (i.pop(), (i = i.concat(r))), + !i.length) + ) + return '/'; + if (i.length) { + var u = i[i.length - 1]; + n = '.' === u || '..' === u || '' === u; + } else n = !1; + for (var l = 0, c = i.length; c >= 0; c--) { + var f = i[c]; + '.' === f + ? S(i, c) + : '..' === f + ? (S(i, c), l++) + : l && (S(i, c), l--); + } + if (!s) for (; l--; l) i.unshift('..'); + !s || '' === i[0] || (i[0] && w(i[0])) || i.unshift(''); + var d = i.join('/'); + return n && '/' !== d.substr(-1) && (d += '/'), d; + }; + var k = !0, + A = 'Invariant failed'; + var T = function(t, e) { + if (!t) throw k ? new Error(A) : new Error(A + ': ' + (e || '')); + }; + function C(t) { + return '/' === t.charAt(0) ? t : '/' + t; + } + function O(t) { + return '/' === t.charAt(0) ? t.substr(1) : t; + } + function P(t, e) { + return (function(t, e) { + return ( + 0 === t.toLowerCase().indexOf(e.toLowerCase()) && + -1 !== '/?#'.indexOf(t.charAt(e.length)) + ); + })(t, e) + ? t.substr(e.length) + : t; + } + function M(t) { + return '/' === t.charAt(t.length - 1) ? t.slice(0, -1) : t; + } + function L(t) { + var e = t.pathname, + n = t.search, + r = t.hash, + i = e || '/'; + return ( + n && '?' !== n && (i += '?' === n.charAt(0) ? n : '?' + n), + r && '#' !== r && (i += '#' === r.charAt(0) ? r : '#' + r), + i + ); + } + function j(t, e, n, r) { + var i; + 'string' == typeof t + ? ((i = (function(t) { + var e = t || '/', + n = '', + r = '', + i = e.indexOf('#'); + -1 !== i && ((r = e.substr(i)), (e = e.substr(0, i))); + var o = e.indexOf('?'); + return ( + -1 !== o && ((n = e.substr(o)), (e = e.substr(0, o))), + { + pathname: e, + search: '?' === n ? '' : n, + hash: '#' === r ? '' : r + } + ); + })(t)).state = e) + : (void 0 === (i = Object(x.a)({}, t)).pathname && (i.pathname = ''), + i.search + ? '?' !== i.search.charAt(0) && (i.search = '?' + i.search) + : (i.search = ''), + i.hash + ? '#' !== i.hash.charAt(0) && (i.hash = '#' + i.hash) + : (i.hash = ''), + void 0 !== e && void 0 === i.state && (i.state = e)); + try { + i.pathname = decodeURI(i.pathname); + } catch (t) { + throw t instanceof URIError + ? new URIError( + 'Pathname "' + + i.pathname + + '" could not be decoded. This is likely caused by an invalid percent-encoding.' + ) + : t; + } + return ( + n && (i.key = n), + r + ? i.pathname + ? '/' !== i.pathname.charAt(0) && + (i.pathname = E(i.pathname, r.pathname)) + : (i.pathname = r.pathname) + : i.pathname || (i.pathname = '/'), + i + ); + } + function D() { + var t = null; + var e = []; + return { + setPrompt: function(e) { + return ( + (t = e), + function() { + t === e && (t = null); + } + ); + }, + confirmTransitionTo: function(e, n, r, i) { + if (null != t) { + var o = 'function' == typeof t ? t(e, n) : t; + 'string' == typeof o + ? 'function' == typeof r + ? r(o, i) + : i(!0) + : i(!1 !== o); + } else i(!0); + }, + appendListener: function(t) { + var n = !0; + function r() { + n && t.apply(void 0, arguments); + } + return ( + e.push(r), + function() { + (n = !1), + (e = e.filter(function(t) { + return t !== r; + })); + } + ); + }, + notifyListeners: function() { + for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++) + n[r] = arguments[r]; + e.forEach(function(t) { + return t.apply(void 0, n); + }); + } + }; + } + var R = !( + 'undefined' == typeof window || + !window.document || + !window.document.createElement + ); + function z(t, e) { + e(window.confirm(t)); + } + var N = 'popstate', + I = 'hashchange'; + function F() { + try { + return window.history.state || {}; + } catch (t) { + return {}; + } + } + function V(t) { + void 0 === t && {}, R || T(!1); + var e, + n = window.history, + r = + ((-1 === window.navigator.userAgent.indexOf('Android 2.') && + -1 === e.indexOf('Android 4.0')) || + -1 === e.indexOf('Mobile Safari') || + -1 !== e.indexOf('Chrome') || + -1 !== e.indexOf('Windows Phone')) && + window.history && + 'pushState' in window.history, + i = !(-1 === window.navigator.userAgent.indexOf('Trident')), + o = t, + a = o.forceRefresh, + s = void 0 !== a && a, + u = o.getUserConfirmation, + l = void 0 === u ? z : u, + c = o.keyLength, + f = void 0 === c ? 6 : c, + d = t.basename ? M(C(t.basename)) : ''; + function h(t) { + var e = t || {}, + n = e.key, + r = e.state, + i = window.location, + o = i.pathname + i.search + i.hash; + return d && P(o, d), j(o, r, n); + } + function p() { + return Math.random() + .toString(36) + .substr(2, f); + } + var g = D(); + function m(t) { + Object(x.a)(B, t), + (B.length = n.length), + g.notifyListeners(B.location, B.action); + } + function v(t) { + (function(t) { + return ( + void 0 === t.state && -1 === navigator.userAgent.indexOf('CriOS') + ); + })(t) || _(h(t.state)); + } + function y() { + _(h(F())); + } + var b = !1; + function _(t) { + if (b) !1, m(); + else { + g.confirmTransitionTo(t, 'POP', l, function(e) { + e + ? m({ action: 'POP', location: t }) + : (function(t) { + var e = B.location, + n = S.indexOf(e.key); + -1 === n && 0; + var r = S.indexOf(t.key); + -1 === r && 0; + var i = n - r; + i && (!0, k(i)); + })(t); + }); + } + } + var w = h(F()), + S = [w.key]; + function E(t) { + return d + L(t); + } + function k(t) { + n.go(t); + } + var A = 0; + function O(t) { + 1 === (A += t) && 1 === t + ? (window.addEventListener(N, v), + i && window.addEventListener(I, y)) + : 0 === A && + (window.removeEventListener(N, v), + i && window.removeEventListener(I, y)); + } + var V = !1; + var B = { + length: n.length, + action: 'POP', + location: w, + createHref: E, + push: function(t, e) { + var i = j(t, e, p(), B.location); + g.confirmTransitionTo(i, 'PUSH', l, function(t) { + if (t) { + var e = E(i), + o = i.key, + a = i.state; + if (r) + if ((n.pushState({ key: o, state: a }, null, e), s)) + window.location.href = e; + else { + var u = S.indexOf(B.location.key), + l = S.slice(0, u + 1); + l.push(i.key), l, m({ action: 'PUSH', location: i }); + } + else window.location.href = e; + } + }); + }, + replace: function(t, e) { + var i = j(t, e, p(), B.location); + g.confirmTransitionTo(i, 'REPLACE', l, function(t) { + if (t) { + var e = E(i), + o = i.key, + a = i.state; + if (r) + if ((n.replaceState({ key: o, state: a }, null, e), s)) + window.location.replace(e); + else { + var u = S.indexOf(B.location.key); + -1 !== u && (S[u] = i.key), + m({ action: 'REPLACE', location: i }); + } + else window.location.replace(e); + } + }); + }, + go: k, + goBack: function() { + k(-1); + }, + goForward: function() { + k(1); + }, + block: function(t) { + void 0 === t && !1; + var e = g.setPrompt(t); + return ( + V || (O(1), !0), + function() { + return V && (!1, O(-1)), e(); + } + ); + }, + listen: function(t) { + var e = g.appendListener(t); + return ( + O(1), + function() { + O(-1), e(); + } + ); + } + }; + return B; + } + var B = 'hashchange', + G = { + hashbang: { + encodePath: function(t) { + return '!' === t.charAt(0) ? t : '!/' + O(t); + }, + decodePath: function(t) { + return '!' === t.charAt(0) ? t.substr(1) : t; + } + }, + noslash: { encodePath: O, decodePath: C }, + slash: { encodePath: C, decodePath: C } + }; + function H() { + var t = window.location.href, + e = t.indexOf('#'); + return -1 === e ? '' : t.substring(e + 1); + } + function U(t) { + var e = window.location.href.indexOf('#'); + window.location.replace( + window.location.href.slice(0, e >= 0 ? e : 0) + '#' + t + ); + } + function q(t) { + void 0 === t && (t = {}), R || T(!1); + var e = window.history, + n = (window.navigator.userAgent.indexOf('Firefox'), t), + r = n.getUserConfirmation, + i = void 0 === r ? z : r, + o = n.hashType, + a = void 0 === o ? 'slash' : o, + s = t.basename ? M(C(t.basename)) : '', + u = G[a], + l = u.encodePath, + c = u.decodePath; + function f() { + var t = c(H()); + return s && (t = P(t, s)), j(t); + } + var d = D(); + function h(t) { + Object(x.a)(A, t), + (A.length = e.length), + d.notifyListeners(A.location, A.action); + } + var p = !1, + g = null; + function m() { + var t, + e, + n = H(), + r = l(n); + if (n !== r) U(r); + else { + var o = f(), + a = A.location; + if ( + !p && + ((e = o), + (t = a).pathname === e.pathname && + t.search === e.search && + t.hash === e.hash) + ) + return; + if (g === L(o)) return; + (g = null), + (function(t) { + if (p) (p = !1), h(); + else { + d.confirmTransitionTo(t, 'POP', i, function(e) { + e + ? h({ action: 'POP', location: t }) + : (function(t) { + var e = A.location, + n = _.lastIndexOf(L(e)); + -1 === n && (n = 0); + var r = _.lastIndexOf(L(t)); + -1 === r && (r = 0); + var i = n - r; + i && ((p = !0), w(i)); + })(t); + }); + } + })(o); + } + } + var v = H(), + y = l(v); + v !== y && U(y); + var b = f(), + _ = [L(b)]; + function w(t) { + e.go(t); + } + var S = 0; + function E(t) { + 1 === (S += t) && 1 === t + ? window.addEventListener(B, m) + : 0 === S && window.removeEventListener(B, m); + } + var k = !1; + var A = { + length: e.length, + action: 'POP', + location: b, + createHref: function(t) { + return '#' + l(s + L(t)); + }, + push: function(t, e) { + var n = j(t, void 0, void 0, A.location); + d.confirmTransitionTo(n, 'PUSH', i, function(t) { + if (t) { + var e = L(n), + r = l(s + e); + if (H() !== r) { + (g = e), + (function(t) { + window.location.hash = t; + })(r); + var i = _.lastIndexOf(L(A.location)), + o = _.slice(0, i + 1); + o.push(e), (_ = o), h({ action: 'PUSH', location: n }); + } else h(); + } + }); + }, + replace: function(t, e) { + var n = j(t, void 0, void 0, A.location); + d.confirmTransitionTo(n, 'REPLACE', i, function(t) { + if (t) { + var e = L(n), + r = l(s + e); + H() !== r && ((g = e), U(r)); + var i = _.indexOf(L(A.location)); + -1 !== i && (_[i] = e), h({ action: 'REPLACE', location: n }); + } + }); + }, + go: w, + goBack: function() { + w(-1); + }, + goForward: function() { + w(1); + }, + block: function(t) { + void 0 === t && (t = !1); + var e = d.setPrompt(t); + return ( + k || (E(1), (k = !0)), + function() { + return k && ((k = !1), E(-1)), e(); + } + ); + }, + listen: function(t) { + var e = d.appendListener(t); + return ( + E(1), + function() { + E(-1), e(); + } + ); + } + }; + return A; + } + function W(t, e, n) { + return Math.min(Math.max(t, e), n); + } + var X = n(90), + Y = n.n(X), + $ = n(62), + K = n(11), + Q = n(46), + Z = n.n(Q), + J = (function(t) { + var e = b(); + return (e.displayName = t), e; + })('Router'), + tt = (function(t) { + function e(e) { + var n; + return ( + ((n = t.call(this, e) || this).state = { + location: e.history.location + }), + (n._isMounted = !1), + (n._pendingLocation = null), + e.staticContext || + (n.unlisten = e.history.listen(function(t) { + n._isMounted + ? n.setState({ location: t }) + : (n._pendingLocation = t); + })), + n + ); + } + f(e, t), + (e.computeRootMatch = function(t) { + return { path: '/', url: '/', params: {}, isExact: '/' === t }; + }); + var n = e.prototype; + return ( + (n.componentDidMount = function() { + (this._isMounted = !0), + this._pendingLocation && + this.setState({ location: this._pendingLocation }); + }), + (n.componentWillUnmount = function() { + this.unlisten && this.unlisten(); + }), + (n.render = function() { + return u.a.createElement(J.Provider, { + children: this.props.children || null, + value: { + history: this.props.history, + location: this.state.location, + match: e.computeRootMatch(this.state.location.pathname), + staticContext: this.props.staticContext + } + }); + }), + e + ); + })(u.a.Component); + u.a.Component; + u.a.Component; + var et = {}, + nt = 1e4, + rt = 0; + function it(t, e) { + void 0 === e && (e = {}), 'string' == typeof e && (e = { path: e }); + var n = e, + r = n.path, + i = n.exact, + o = void 0 !== i && i, + a = n.strict, + s = void 0 !== a && a, + u = n.sensitive, + l = void 0 !== u && u; + return [].concat(r).reduce(function(e, n) { + if (!n) return null; + if (e) return e; + var r = (function(t, e) { + var n = '' + e.end + e.strict + e.sensitive, + r = et[n] || (et[n] = {}); + if (r[t]) return r[t]; + var i = [], + o = { regexp: Y()(t, i, e), keys: i }; + return rt < nt && ((r[t] = o), rt++), o; + })(n, { end: o, strict: s, sensitive: l }), + i = r.regexp, + a = r.keys, + u = i.exec(t); + if (!u) return null; + var c = u[0], + f = u.slice(1), + d = t === c; + return o && !d + ? null + : { + path: n, + url: '/' === n && '' === c ? '/' : c, + isExact: d, + params: a.reduce(function(t, e, n) { + return (t[e.name] = f[n]), t; + }, {}) + }; + }, null); + } + var ot = (function(t) { + function e() { + return t.apply(this, arguments) || this; + } + return ( + f(e, t), + (e.prototype.render = function() { + var t = this; + return u.a.createElement(J.Consumer, null, function(e) { + e || T(!1); + var n = t.props.location || e.location, + r = t.props.computedMatch + ? t.props.computedMatch + : t.props.path + ? it(n.pathname, t.props) + : e.match, + i = Object(x.a)({}, e, { location: n, match: r }), + o = t.props, + a = o.children, + s = o.component, + l = o.render; + (Array.isArray(a) && 0 === a.length && (a = null), + 'function' == typeof a) && + (void 0 === (a = a(i)) && (a = null)); + return u.a.createElement( + J.Provider, + { value: i }, + a && + !(function(t) { + return 0 === u.a.Children.count(t); + })(a) + ? a + : i.match + ? s + ? u.a.createElement(s, i) + : l + ? l(i) + : null + : null + ); + }); + }), + e + ); + })(u.a.Component); + function at(t) { + return '/' === t.charAt(0) ? t : '/' + t; + } + function st(t, e) { + if (!t) return e; + var n = at(t); + return 0 !== e.pathname.indexOf(n) + ? e + : Object(x.a)({}, e, { pathname: e.pathname.substr(n.length) }); + } + function ut(t) { + return 'string' == typeof t ? t : L(t); + } + function lt(t) { + return function() { + T(!1); + }; + } + function ct() {} + u.a.Component; + u.a.Component; + function ft(t) { + var e = 'withRouter(' + (t.displayName || t.name) + ')', + n = function(e) { + var n = e.wrappedComponentRef, + r = Object(K.a)(e, ['wrappedComponentRef']); + return u.a.createElement(J.Consumer, null, function(e) { + return ( + e || T(!1), + u.a.createElement(t, Object(x.a)({}, r, e, { ref: n })) + ); + }); + }; + return (n.displayName = e), (n.WrappedComponent = t), Z()(n, t); + } + u.a.Component; + var dt = (function(t) { + function e() { + for (var e, n = arguments.length, r = new Array(n), i = 0; i < n; i++) + r[i] = arguments[i]; + return ( + ((e = t.call.apply(t, [this].concat(r)) || this).history = q( + e.props + )), + e + ); + } + return ( + f(e, t), + (e.prototype.render = function() { + return u.a.createElement(tt, { + history: this.history, + children: this.props.children + }); + }), + e + ); + })(u.a.Component); + var ht = (function(t) { + function e() { + return t.apply(this, arguments) || this; + } + f(e, t); + var n = e.prototype; + return ( + (n.handleClick = function(t, e) { + try { + this.props.onClick && this.props.onClick(t); + } catch (e) { + throw (t.preventDefault(), e); + } + t.defaultPrevented || + 0 !== t.button || + (this.props.target && '_self' !== this.props.target) || + (function(t) { + return !!(t.metaKey || t.altKey || t.ctrlKey || t.shiftKey); + })(t) || + (t.preventDefault(), + (this.props.replace ? e.replace : e.push)(this.props.to)); + }), + (n.render = function() { + var t = this, + e = this.props, + n = e.innerRef, + r = (e.replace, e.to), + i = Object(K.a)(e, ['innerRef', 'replace', 'to']); + return u.a.createElement(J.Consumer, null, function(e) { + e || T(!1); + var o = 'string' == typeof r ? j(r, null, null, e.location) : r, + a = o ? e.history.createHref(o) : ''; + return u.a.createElement( + 'a', + Object(x.a)({}, i, { + onClick: function(n) { + return t.handleClick(n, e.history); + }, + href: a, + ref: n + }) + ); + }); + }), + e + ); + })(u.a.Component); + var pt = n(89), + gt = function() { + return Math.random() + .toString(36) + .substring(7) + .split('') + .join('.'); + }, + mt = { + INIT: '@@redux/INIT' + gt(), + REPLACE: '@@redux/REPLACE' + gt(), + PROBE_UNKNOWN_ACTION: function() { + return '@@redux/PROBE_UNKNOWN_ACTION' + gt(); + } + }; + function vt(t) { + if ('object' != typeof t || null === t) return !1; + for (var e = t; null !== Object.getPrototypeOf(e); ) + e = Object.getPrototypeOf(e); + return Object.getPrototypeOf(t) === e; + } + function yt(t, e, n) { + var r; + if ( + ('function' == typeof e && 'function' == typeof n) || + ('function' == typeof n && 'function' == typeof arguments[3]) + ) + throw new Error( + 'It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.' + ); + if ( + ('function' == typeof e && void 0 === n && ((n = e), (e = void 0)), + void 0 !== n) + ) { + if ('function' != typeof n) + throw new Error('Expected the enhancer to be a function.'); + return n(yt)(t, e); + } + if ('function' != typeof t) + throw new Error('Expected the reducer to be a function.'); + var i = t, + o = e, + a = [], + s = a, + u = !1; + function l() { + s === a && (s = a.slice()); + } + function c() { + if (u) + throw new Error( + 'You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.' + ); + return o; + } + function f(t) { + if ('function' != typeof t) + throw new Error('Expected the listener to be a function.'); + if (u) + throw new Error( + 'You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.' + ); + var e = !0; + return ( + l(), + s.push(t), + function() { + if (e) { + if (u) + throw new Error( + 'You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.' + ); + (e = !1), l(); + var n = s.indexOf(t); + s.splice(n, 1); + } + } + ); + } + function d(t) { + if (!vt(t)) + throw new Error( + 'Actions must be plain objects. Use custom middleware for async actions.' + ); + if (void 0 === t.type) + throw new Error( + 'Actions may not have an undefined "type" property. Have you misspelled a constant?' + ); + if (u) throw new Error('Reducers may not dispatch actions.'); + try { + (u = !0), (o = i(o, t)); + } finally { + u = !1; + } + for (var e = (a = s), n = 0; n < e.length; n++) { + (0, e[n])(); + } + return t; + } + return ( + d({ type: mt.INIT }), + ((r = { + dispatch: d, + subscribe: f, + getState: c, + replaceReducer: function(t) { + if ('function' != typeof t) + throw new Error('Expected the nextReducer to be a function.'); + (i = t), d({ type: mt.REPLACE }); + } + })[pt.a] = function() { + var t, + e = f; + return ( + ((t = { + subscribe: function(t) { + if ('object' != typeof t || null === t) + throw new TypeError( + 'Expected the observer to be an object.' + ); + function n() { + t.next && t.next(c()); + } + return n(), { unsubscribe: e(n) }; + } + })[pt.a] = function() { + return this; + }), + t + ); + }), + r + ); + } + function bt(t, e) { + var n = e && e.type; + return ( + 'Given ' + + ((n && 'action "' + String(n) + '"') || 'an action') + + ', reducer "' + + t + + '" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.' + ); + } + function _t(t, e) { + return function() { + return e(t.apply(this, arguments)); + }; + } + function xt(t, e, n) { + return ( + e in t + ? Object.defineProperty(t, e, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (t[e] = n), + t + ); + } + function wt(t, e) { + var n = Object.keys(t); + return ( + Object.getOwnPropertySymbols && + n.push.apply(n, Object.getOwnPropertySymbols(t)), + e && + (n = n.filter(function(e) { + return Object.getOwnPropertyDescriptor(t, e).enumerable; + })), + n + ); + } + function St(t) { + for (var e = 1; e < arguments.length; e++) { + var n = null != arguments[e] ? arguments[e] : {}; + e % 2 + ? wt(n, !0).forEach(function(e) { + xt(t, e, n[e]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) + : wt(n).forEach(function(e) { + Object.defineProperty( + t, + e, + Object.getOwnPropertyDescriptor(n, e) + ); + }); + } + return t; + } + function Et() { + for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++) + e[n] = arguments[n]; + return 0 === e.length + ? function(t) { + return t; + } + : 1 === e.length + ? e[0] + : e.reduce(function(t, e) { + return function() { + return t(e.apply(void 0, arguments)); + }; + }); + } + var kt = u.a.createContext(null); + var At = function(t) { + t(); + }, + Tt = function() { + return At; + }, + Ct = null, + Ot = { notify: function() {} }; + var Pt = (function() { + function t(t, e) { + (this.store = t), + (this.parentSub = e), + (this.unsubscribe = null), + (this.listeners = Ot), + (this.handleChangeWrapper = this.handleChangeWrapper.bind(this)); + } + var e = t.prototype; + return ( + (e.addNestedSub = function(t) { + return this.trySubscribe(), this.listeners.subscribe(t); + }), + (e.notifyNestedSubs = function() { + this.listeners.notify(); + }), + (e.handleChangeWrapper = function() { + this.onStateChange && this.onStateChange(); + }), + (e.isSubscribed = function() { + return Boolean(this.unsubscribe); + }), + (e.trySubscribe = function() { + var t, e, n; + this.unsubscribe || + ((this.unsubscribe = this.parentSub + ? this.parentSub.addNestedSub(this.handleChangeWrapper) + : this.store.subscribe(this.handleChangeWrapper)), + (this.listeners = + ((t = Tt()), + (e = []), + (n = []), + { + clear: function() { + (n = Ct), (e = Ct); + }, + notify: function() { + var r = (e = n); + t(function() { + for (var t = 0; t < r.length; t++) r[t](); + }); + }, + get: function() { + return n; + }, + subscribe: function(t) { + var r = !0; + return ( + n === e && (n = e.slice()), + n.push(t), + function() { + r && + e !== Ct && + ((r = !1), + n === e && (n = e.slice()), + n.splice(n.indexOf(t), 1)); + } + ); + } + }))); + }), + (e.tryUnsubscribe = function() { + this.unsubscribe && + (this.unsubscribe(), + (this.unsubscribe = null), + this.listeners.clear(), + (this.listeners = Ot)); + }), + t + ); + })(); + function Mt(t) { + var e = t.store, + n = t.context, + r = t.children, + i = Object(s.useMemo)( + function() { + var t = new Pt(e); + return ( + (t.onStateChange = t.notifyNestedSubs), + { store: e, subscription: t } + ); + }, + [e] + ), + o = Object(s.useMemo)( + function() { + return e.getState(); + }, + [e] + ); + Object(s.useEffect)( + function() { + var t = i.subscription; + return ( + t.trySubscribe(), + o !== e.getState() && t.notifyNestedSubs(), + function() { + t.tryUnsubscribe(), (t.onStateChange = null); + } + ); + }, + [i, o] + ); + var a = n || kt; + return u.a.createElement(a.Provider, { value: i }, r); + } + Mt.propTypes = { + store: g.a.shape({ + subscribe: g.a.func.isRequired, + dispatch: g.a.func.isRequired, + getState: g.a.func.isRequired + }), + context: g.a.object, + children: g.a.any + }; + var Lt = Mt, + jt = n(27), + Dt = n.n(jt), + Rt = [], + zt = [null, null]; + function Nt(t, e) { + var n = t[1]; + return [e.payload, n + 1]; + } + var It = function() { + return [null, 0]; + }, + Ft = + 'undefined' != typeof window && + void 0 !== window.document && + void 0 !== window.document.createElement + ? s.useLayoutEffect + : s.useEffect; + function Vt(t, e) { + void 0 === e && (e = {}); + var n = e, + r = n.getDisplayName, + i = + void 0 === r + ? function(t) { + return 'ConnectAdvanced(' + t + ')'; + } + : r, + o = n.methodName, + a = void 0 === o ? 'connectAdvanced' : o, + l = n.renderCountProp, + c = void 0 === l ? void 0 : l, + f = n.shouldHandleStateChanges, + d = void 0 === f || f, + h = n.storeKey, + p = void 0 === h ? 'store' : h, + g = n.withRef, + m = void 0 !== g && g, + v = n.forwardRef, + y = void 0 !== v && v, + b = n.context, + _ = void 0 === b ? kt : b, + w = Object(K.a)(n, [ + 'getDisplayName', + 'methodName', + 'renderCountProp', + 'shouldHandleStateChanges', + 'storeKey', + 'withRef', + 'forwardRef', + 'context' + ]); + Dt()( + void 0 === c, + 'renderCountProp is removed. render counting is built into the latest React Dev Tools profiling extension' + ), + Dt()( + !m, + 'withRef is removed. To access the wrapped instance, use a ref on the connected component' + ); + Dt()( + 'store' === p, + "storeKey has been removed and does not do anything. To use a custom Redux store for specific components, create a custom React context with React.createContext(), and pass the context object to React Redux's Provider and specific components like: . You may also pass a {context : MyContext} option to connect" + ); + var S = _; + return function(e) { + var n = e.displayName || e.name || 'Component', + r = i(n), + o = Object(x.a)({}, w, { + getDisplayName: i, + methodName: a, + renderCountProp: c, + shouldHandleStateChanges: d, + storeKey: p, + displayName: r, + wrappedComponentName: n, + WrappedComponent: e + }), + l = w.pure; + var f = l + ? s.useMemo + : function(t) { + return t(); + }; + function h(n) { + var i = Object(s.useMemo)( + function() { + var t = n.forwardedRef, + e = Object(K.a)(n, ['forwardedRef']); + return [n.context, t, e]; + }, + [n] + ), + a = i[0], + l = i[1], + c = i[2], + h = Object(s.useMemo)( + function() { + return a && + a.Consumer && + Object($.isContextConsumer)( + u.a.createElement(a.Consumer, null) + ) + ? a + : S; + }, + [a, S] + ), + p = Object(s.useContext)(h), + g = Boolean(n.store), + m = Boolean(p) && Boolean(p.store); + Dt()( + g || m, + 'Could not find "store" in the context of "' + + r + + '". Either wrap the root component in a , or pass a custom React context provider to and the corresponding React context consumer to ' + + r + + ' in connect options.' + ); + var v = n.store || p.store, + y = Object(s.useMemo)( + function() { + return (function(e) { + return t(e.dispatch, o); + })(v); + }, + [v] + ), + b = Object(s.useMemo)( + function() { + if (!d) return zt; + var t = new Pt(v, g ? null : p.subscription), + e = t.notifyNestedSubs.bind(t); + return [t, e]; + }, + [v, g, p] + ), + _ = b[0], + w = b[1], + E = Object(s.useMemo)( + function() { + return g ? p : Object(x.a)({}, p, { subscription: _ }); + }, + [g, p, _] + ), + k = Object(s.useReducer)(Nt, Rt, It), + A = k[0][0], + T = k[1]; + if (A && A.error) throw A.error; + var C = Object(s.useRef)(), + O = Object(s.useRef)(c), + P = Object(s.useRef)(), + M = Object(s.useRef)(!1), + L = f( + function() { + return P.current && c === O.current + ? P.current + : y(v.getState(), c); + }, + [v, A, c] + ); + Ft(function() { + (O.current = c), + (C.current = L), + (M.current = !1), + P.current && ((P.current = null), w()); + }), + Ft( + function() { + if (d) { + var t = !1, + e = null, + n = function() { + if (!t) { + var n, + r, + i = v.getState(); + try { + n = y(i, O.current); + } catch (t) { + (r = t), (e = t); + } + r || (e = null), + n === C.current + ? M.current || w() + : ((C.current = n), + (P.current = n), + (M.current = !0), + T({ + type: 'STORE_UPDATED', + payload: { latestStoreState: i, error: r } + })); + } + }; + (_.onStateChange = n), _.trySubscribe(), n(); + return function() { + if ( + ((t = !0), + _.tryUnsubscribe(), + (_.onStateChange = null), + e) + ) + throw e; + }; + } + }, + [v, _, y] + ); + var j = Object(s.useMemo)( + function() { + return u.a.createElement(e, Object(x.a)({}, L, { ref: l })); + }, + [l, e, L] + ); + return Object(s.useMemo)( + function() { + return d ? u.a.createElement(h.Provider, { value: E }, j) : j; + }, + [h, j, E] + ); + } + var g = l ? u.a.memo(h) : h; + if (((g.WrappedComponent = e), (g.displayName = r), y)) { + var m = u.a.forwardRef(function(t, e) { + return u.a.createElement( + g, + Object(x.a)({}, t, { forwardedRef: e }) + ); + }); + return (m.displayName = r), (m.WrappedComponent = e), Z()(m, e); + } + return Z()(g, e); + }; + } + var Bt = Object.prototype.hasOwnProperty; + function Gt(t, e) { + return t === e + ? 0 !== t || 0 !== e || 1 / t == 1 / e + : t != t && e != e; + } + function Ht(t, e) { + if (Gt(t, e)) return !0; + if ( + 'object' != typeof t || + null === t || + 'object' != typeof e || + null === e + ) + return !1; + var n = Object.keys(t), + r = Object.keys(e); + if (n.length !== r.length) return !1; + for (var i = 0; i < n.length; i++) + if (!Bt.call(e, n[i]) || !Gt(t[n[i]], e[n[i]])) return !1; + return !0; + } + function Ut(t) { + return function(e, n) { + var r = t(e, n); + function i() { + return r; + } + return (i.dependsOnOwnProps = !1), i; + }; + } + function qt(t) { + return null !== t.dependsOnOwnProps && void 0 !== t.dependsOnOwnProps + ? Boolean(t.dependsOnOwnProps) + : 1 !== t.length; + } + function Wt(t, e) { + return function(e, n) { + n.displayName; + var r = function(t, e) { + return r.dependsOnOwnProps ? r.mapToProps(t, e) : r.mapToProps(t); + }; + return ( + (r.dependsOnOwnProps = !0), + (r.mapToProps = function(e, n) { + (r.mapToProps = t), (r.dependsOnOwnProps = qt(t)); + var i = r(e, n); + return ( + 'function' == typeof i && + ((r.mapToProps = i), + (r.dependsOnOwnProps = qt(i)), + (i = r(e, n))), + i + ); + }), + r + ); + }; + } + var Xt = [ + function(t) { + return 'function' == typeof t ? Wt(t) : void 0; + }, + function(t) { + return t + ? void 0 + : Ut(function(t) { + return { dispatch: t }; + }); + }, + function(t) { + return t && 'object' == typeof t + ? Ut(function(e) { + return (function(t, e) { + if ('function' == typeof t) return _t(t, e); + if ('object' != typeof t || null === t) + throw new Error( + 'bindActionCreators expected an object or a function, instead received ' + + (null === t ? 'null' : typeof t) + + '. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?' + ); + var n = {}; + for (var r in t) { + var i = t[r]; + 'function' == typeof i && (n[r] = _t(i, e)); + } + return n; + })(t, e); + }) + : void 0; + } + ]; + var Yt = [ + function(t) { + return 'function' == typeof t ? Wt(t) : void 0; + }, + function(t) { + return t + ? void 0 + : Ut(function() { + return {}; + }); + } + ]; + function $t(t, e, n) { + return Object(x.a)({}, n, {}, t, {}, e); + } + var Kt = [ + function(t) { + return 'function' == typeof t + ? (function(t) { + return function(e, n) { + n.displayName; + var r, + i = n.pure, + o = n.areMergedPropsEqual, + a = !1; + return function(e, n, s) { + var u = t(e, n, s); + return ( + a ? (i && o(u, r)) || (r = u) : ((a = !0), (r = u)), r + ); + }; + }; + })(t) + : void 0; + }, + function(t) { + return t + ? void 0 + : function() { + return $t; + }; + } + ]; + function Qt(t, e, n, r) { + return function(i, o) { + return n(t(i, o), e(r, o), o); + }; + } + function Zt(t, e, n, r, i) { + var o, + a, + s, + u, + l, + c = i.areStatesEqual, + f = i.areOwnPropsEqual, + d = i.areStatePropsEqual, + h = !1; + function p(i, h) { + var p, + g, + m = !f(h, a), + v = !c(i, o); + return ( + (o = i), + (a = h), + m && v + ? ((s = t(o, a)), + e.dependsOnOwnProps && (u = e(r, a)), + (l = n(s, u, a))) + : m + ? (t.dependsOnOwnProps && (s = t(o, a)), + e.dependsOnOwnProps && (u = e(r, a)), + (l = n(s, u, a))) + : v + ? ((p = t(o, a)), + (g = !d(p, s)), + (s = p), + g && (l = n(s, u, a)), + l) + : l + ); + } + return function(i, c) { + return h + ? p(i, c) + : ((s = t((o = i), (a = c))), + (u = e(r, a)), + (l = n(s, u, a)), + (h = !0), + l); + }; + } + function Jt(t, e) { + var n = e.initMapStateToProps, + r = e.initMapDispatchToProps, + i = e.initMergeProps, + o = Object(K.a)(e, [ + 'initMapStateToProps', + 'initMapDispatchToProps', + 'initMergeProps' + ]), + a = n(t, o), + s = r(t, o), + u = i(t, o); + return (o.pure ? Zt : Qt)(a, s, u, t, o); + } + function te(t, e, n) { + for (var r = e.length - 1; r >= 0; r--) { + var i = e[r](t); + if (i) return i; + } + return function(e, r) { + throw new Error( + 'Invalid value of type ' + + typeof t + + ' for ' + + n + + ' argument when connecting component ' + + r.wrappedComponentName + + '.' + ); + }; + } + function ee(t, e) { + return t === e; + } + var ne, + re, + ie, + oe, + ae, + se, + ue, + le, + ce, + fe, + de, + he, + pe = + ((ie = (re = void 0 === ne ? {} : ne).connectHOC), + (oe = void 0 === ie ? Vt : ie), + (ae = re.mapStateToPropsFactories), + (se = void 0 === ae ? Yt : ae), + (ue = re.mapDispatchToPropsFactories), + (le = void 0 === ue ? Xt : ue), + (ce = re.mergePropsFactories), + (fe = void 0 === ce ? Kt : ce), + (de = re.selectorFactory), + (he = void 0 === de ? Jt : de), + function(t, e, n, r) { + void 0 === r && (r = {}); + var i = r, + o = i.pure, + a = void 0 === o || o, + s = i.areStatesEqual, + u = void 0 === s ? ee : s, + l = i.areOwnPropsEqual, + c = void 0 === l ? Ht : l, + f = i.areStatePropsEqual, + d = void 0 === f ? Ht : f, + h = i.areMergedPropsEqual, + p = void 0 === h ? Ht : h, + g = Object(K.a)(i, [ + 'pure', + 'areStatesEqual', + 'areOwnPropsEqual', + 'areStatePropsEqual', + 'areMergedPropsEqual' + ]), + m = te(t, se, 'mapStateToProps'), + v = te(e, le, 'mapDispatchToProps'), + y = te(n, fe, 'mergeProps'); + return oe( + he, + Object(x.a)( + { + methodName: 'connect', + getDisplayName: function(t) { + return 'Connect(' + t + ')'; + }, + shouldHandleStateChanges: Boolean(t), + initMapStateToProps: m, + initMapDispatchToProps: v, + initMergeProps: y, + pure: a, + areStatesEqual: u, + areOwnPropsEqual: c, + areStatePropsEqual: d, + areMergedPropsEqual: p + }, + g + ) + ); + }); + function ge() { + var t = Object(s.useContext)(kt); + return ( + Dt()( + t, + 'could not find react-redux context value; please ensure the component is wrapped in a ' + ), + t + ); + } + function me(t) { + void 0 === t && (t = kt); + var e = + t === kt + ? ge + : function() { + return Object(s.useContext)(t); + }; + return function() { + return e().store; + }; + } + var ve = me(); + !(function(t) { + void 0 === t && (t = kt); + var e = t === kt ? ve : me(t); + })(); + var ye = 'undefined' != typeof window ? s.useLayoutEffect : s.useEffect, + be = function(t, e) { + return t === e; + }; + var _e; + !(function(t) { + void 0 === t && (t = kt); + var e = + t === kt + ? ge + : function() { + return Object(s.useContext)(t); + }; + })(); + function xe(t) { + return function(e) { + var n = e.dispatch, + r = e.getState; + return function(e) { + return function(i) { + return 'function' == typeof i ? i(n, r, t) : e(i); + }; + }; + }; + } + (_e = l.unstable_batchedUpdates), (At = _e); + var we = xe(); + we.withExtraArgument = xe; + var Se = we, + Ee = n(63), + ke = n.n(Ee), + Ae = n(156), + Te = n.n(Ae), + Ce = n(12), + Oe = n.n(Ce), + Pe = n(8), + Me = n.n(Pe), + Le = function(t, e) { + switch (t) { + case 'az': + return e.sort(function(t, e) { + return t.title.toLowerCase() < e.title.toLowerCase() + ? -1 + : t.title.toLowerCase() > e.title.toLowerCase() + ? 1 + : 0; + }); + case 'za': + return e.sort(function(t, e) { + return t.title.toLowerCase() < e.title.toLowerCase() + ? 1 + : t.title.toLowerCase() > e.title.toLowerCase() + ? -1 + : 0; + }); + case 'latest': + return e.sort(function(t, e) { + return new Date(t.last_modified_date) < + new Date(e.last_modified_date) + ? 1 + : new Date(t.last_modified_date) > + new Date(e.last_modified_date) + ? -1 + : 0; + }); + case 'oldest': + return e.sort(function(t, e) { + return new Date(t.last_modified_date) < + new Date(e.last_modified_date) + ? -1 + : new Date(t.last_modified_date) > + new Date(e.last_modified_date) + ? 1 + : 0; + }); + } + }, + je = { + id: 1, + title: 'My great dashboard', + last_modified_date: 'Mon, 02 Dec 2019 15:16:38 GMT', + data: { + items: [ + { + type: 'bar', + top: 20, + left: 20, + width: 500, + height: 300, + palette: '', + colors: {}, + sparkline: !0, + savedQuery: {} + }, + { + type: 'metric', + top: 20, + left: 560, + width: 500, + height: 300, + palette: '', + colors: {}, + sparkline: !0, + savedQuery: {} + }, + { + type: 'area', + top: 340, + left: 20, + width: 500, + height: 300, + palette: '', + colors: {}, + sparkline: !0, + savedQuery: {} + }, + { + type: 'line', + top: 340, + left: 560, + width: 500, + height: 300, + palette: '', + colors: {}, + sparkline: !0, + savedQuery: {} + } + ] + } + }, + De = n(9), + Re = n.n(De), + ze = n(10), + Ne = n.n(ze), + Ie = n(157), + Fe = function() { + return Object(Ie.uuid)(); }; - function un(t, e) { + function Ve(t, e) { var n = Object.keys(t); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(t); @@ -143566,22 +143300,22 @@ object-assign } return n; } - var ln = function(t) { + var Be = function(t) { return void 0 !== t.id ? t : (function(t) { for (var e = 1; e < arguments.length; e++) { var n = null != arguments[e] ? arguments[e] : {}; e % 2 - ? un(Object(n), !0).forEach(function(e) { - ve()(t, e, n[e]); + ? Ve(n, !0).forEach(function(e) { + Me()(t, e, n[e]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties( t, Object.getOwnPropertyDescriptors(n) ) - : un(Object(n)).forEach(function(e) { + : Ve(n).forEach(function(e) { Object.defineProperty( t, e, @@ -143590,9 +143324,9 @@ object-assign }); } return t; - })({}, t, { id: 'chart-'.concat(sn()) }); + })({}, t, { id: 'chart-'.concat(Fe()) }); }; - function cn(t, e) { + function Ge(t, e) { var n = Object.keys(t); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(t); @@ -143604,16 +143338,16 @@ object-assign } return n; } - function fn(t) { + function He(t) { for (var e = 1; e < arguments.length; e++) { var n = null != arguments[e] ? arguments[e] : {}; e % 2 - ? cn(Object(n), !0).forEach(function(e) { - ve()(t, e, n[e]); + ? Ge(n, !0).forEach(function(e) { + Me()(t, e, n[e]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) - : cn(Object(n)).forEach(function(e) { + : Ge(n).forEach(function(e) { Object.defineProperty( t, e, @@ -143623,8 +143357,8 @@ object-assign } return t; } - var dn = { value: '', label: 'Default' }, - hn = { + var Ue = { value: '', label: 'Default' }, + qe = { dashboardInfo: { id: '', title: '', @@ -143658,7 +143392,7 @@ object-assign dashboardMenuFilter: '', sortingValue: { value: 'az', label: 'A - Z' } }, - pn = (function(t) { + We = (function(t) { for (var e = Object.keys(t), n = {}, r = 0; r < e.length; r++) { var i = e[r]; 0, 'function' == typeof t[i] && (n[i] = t[i]); @@ -143669,18 +143403,18 @@ object-assign !(function(t) { Object.keys(t).forEach(function(e) { var n = t[e]; - if (void 0 === n(void 0, { type: bt.INIT })) + if (void 0 === n(void 0, { type: mt.INIT })) throw new Error( 'Reducer "' + e + '" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don\'t want to set a value for this reducer, you can use null instead of undefined.' ); - if (void 0 === n(void 0, { type: bt.PROBE_UNKNOWN_ACTION() })) + if (void 0 === n(void 0, { type: mt.PROBE_UNKNOWN_ACTION() })) throw new Error( 'Reducer "' + e + '" returned undefined when probed with a random type. Don\'t try to handle ' + - bt.INIT + + mt.INIT + ' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.' ); }); @@ -143696,25 +143430,25 @@ object-assign c = t[u], f = l(c, e); if (void 0 === f) { - var d = wt(u, e); + var d = bt(u, e); throw new Error(d); } (i[u] = f), (r = r || f !== c); } - return (r = r || a.length !== Object.keys(t).length) ? i : t; + return r ? i : t; }; })( - ve()({}, 'app', function() { + Me()({}, 'app', function() { var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] - : hn, + : qe, e = arguments.length > 1 ? arguments[1] : void 0, n = t.dashboardInfo; t.grid; switch (e.type) { case 'LOAD_DASHBOARDS': - return fn({}, t, { + return He({}, t, { isDashboardListLoaded: !0, dashboardList: e.dashboardList.sort(function(t, e) { return t.title.toLowerCase() < e.title.toLowerCase() @@ -143725,18 +143459,18 @@ object-assign }) }); case 'ADD_DASHBOARD_ITEM': - var r = on()({}, hn.dashboardInfo, e.dashboardInfo); - return fn({}, t, { + var r = Ne()({}, qe.dashboardInfo, e.dashboardInfo); + return He({}, t, { dashboardInfo: r, newDashboardId: e.dashboardInfo.id }); case 'HANDLE_SEARCH': - return fn({}, t, { searchInput: e.value }); + return He({}, t, { searchInput: e.value }); case 'DELETE_DASHBOARD_ITEM': var i = t.dashboardList.filter(function(t) { return t.id !== e.id; }); - return fn({}, t, { + return He({}, t, { dashboardList: i.sort(function(t, e) { return t.title.toLowerCase() < e.title.toLowerCase() ? -1 @@ -143746,29 +143480,29 @@ object-assign }) }); case 'LOAD_DASHBOARD_INFO': - var o = on()({}, hn.dashboardInfo, e.dashboardInfo), + var o = Ne()({}, qe.dashboardInfo, e.dashboardInfo), a = o.settings.items, s = (a && a.map(function(t) { - return ln(t); + return Be(t); })) || [], - u = fn({}, o, { settings: fn({}, o.settings, { items: s }) }); - return fn({}, t, { + u = He({}, o, { settings: He({}, o.settings, { items: s }) }); + return He({}, t, { isDashboardLoading: e.isDashboardLoading, dashboardInfo: u }); case 'UPDATE_DASHBOARD_INFO': - return fn({}, t, { dashboardInfo: e.dashboardInfo }); + return He({}, t, { dashboardInfo: e.dashboardInfo }); case 'CLEAR_DASHBOARD_INFO': - return fn({}, t, { + return He({}, t, { dashboardInfo: { id: '', title: '', data: { version: 2, items: [] }, settings: { - palette: dn, + palette: Ue, colors: [], picker: {}, dryRun: !1, @@ -143782,15 +143516,15 @@ object-assign settingsVisible: !1 }); case 'SET_LOADING': - return fn({}, t, { isLoading: e.index }); + return He({}, t, { isLoading: e.index }); case 'SELECT_SAVED_QUERY': - return fn({}, t, { - dashboardInfo: fn({}, n, { - settings: fn({}, n.settings, { - items: pe()( + return He({}, t, { + dashboardInfo: He({}, n, { + settings: He({}, n.settings, { + items: Oe()( n.settings.items.map(function(t) { return t.i === e.index - ? fn({}, t, { + ? He({}, t, { savedQuery: Array.isArray(e.savedQueries) ? e.savedQueries : [e.savedQueries], @@ -143803,13 +143537,13 @@ object-assign }) }); case 'CHANGE_CHART_TYPE': - return fn({}, t, { - dashboardInfo: fn({}, n, { - settings: fn({}, n.settings, { - items: pe()( + return He({}, t, { + dashboardInfo: He({}, n, { + settings: He({}, n.settings, { + items: Oe()( n.settings.items.map(function(t) { return e.index === t.i - ? fn({}, t, { type: e.value }) + ? He({}, t, { type: e.value }) : t; }) ) @@ -143818,12 +143552,12 @@ object-assign isLoading: !1 }); case 'SAVED_QUERY_ERROR': - return fn({}, t, { - dashboardInfo: fn({}, n, { - settings: fn({}, n.settings, { + return He({}, t, { + dashboardInfo: He({}, n, { + settings: He({}, n.settings, { items: n.settings.items.map(function(t) { return e.index === t.i - ? fn({}, t, { error: e.error }) + ? He({}, t, { error: e.error }) : t; }) }) @@ -143831,14 +143565,14 @@ object-assign }); case 'GET_SAVED_QUERIES': var l = e.savedQueries; - return fn({}, t, { savedQueries: l }); + return He({}, t, { savedQueries: l }); case 'LOAD_SAVED_QUERIES': - return fn({}, t, { - dashboardInfo: fn({}, n, { - settings: fn({}, n.settings, { + return He({}, t, { + dashboardInfo: He({}, n, { + settings: He({}, n.settings, { items: n.settings.items.map(function(t) { return e.index === t.i - ? fn({}, t, { + ? He({}, t, { sparkline: !!t.sparkline && t.sparkline }) : t; @@ -143847,78 +143581,78 @@ object-assign }) }); case 'LOAD_SAVED_ERROR': - return fn({}, t, { - dashboardInfo: fn({}, n, { - settings: fn({}, n.settings, { + return He({}, t, { + dashboardInfo: He({}, n, { + settings: He({}, n.settings, { items: n.settings.items.map(function(t) { return e.index === t.i - ? fn({}, t, { error: e.error }) + ? He({}, t, { error: e.error }) : t; }) }) }) }); case 'SAVE_DASHBOARD': - return fn({}, t, { dashboardSaved: !0 }); + return He({}, t, { dashboardSaved: !0 }); case 'HIDE_SAVED_DASHBOARD_MESSAGE': - return fn({}, t, { dashboardSaved: !1 }); + return He({}, t, { dashboardSaved: !1 }); case 'CHANGE_DASHBOARD_TITLE': - return fn({}, t, { - dashboardInfo: fn({}, n, { title: e.title }) + return He({}, t, { + dashboardInfo: He({}, n, { title: e.title }) }); case 'TOGGLE_DRY_RUN': - return fn({}, t, { - dashboardInfo: fn({}, n, { - settings: fn({}, n.settings, { + return He({}, t, { + dashboardInfo: He({}, n, { + settings: He({}, n.settings, { dryRun: !n.settings.dryRun }), - theme: fn({}, n.theme) + theme: He({}, n.theme) }) }); case 'TOGGLE_IS_PUBLIC': - return fn({}, t, { - dashboardInfo: fn({}, n, { is_public: !n.is_public }) + return He({}, t, { + dashboardInfo: He({}, n, { is_public: !n.is_public }) }); case 'SET_THEME': - return fn({}, t, { - dashboardInfo: fn({}, n, { - settings: fn({}, n.settings, { theme: e.value }) + return He({}, t, { + dashboardInfo: He({}, n, { + settings: He({}, n.settings, { theme: e.value }) }) }); case 'SET_CHART_THEME': var c = n.settings.charts_theme - ? fn({}, n.settings.charts_theme) + ? He({}, n.settings.charts_theme) : {}; return ( (c[e.index] = e.value), - fn({}, t, { - dashboardInfo: fn({}, n, { - settings: fn({}, n.settings, { charts_theme: c }) + He({}, t, { + dashboardInfo: He({}, n, { + settings: He({}, n.settings, { charts_theme: c }) }) }) ); case 'SET_LAYOUT': - return fn({}, t, { - dashboardInfo: fn({}, t.dashboardInfo, { - settings: fn({}, t.dashboardInfo.settings, { + return He({}, t, { + dashboardInfo: He({}, t.dashboardInfo, { + settings: He({}, t.dashboardInfo.settings, { layout: e.layout }) }) }); case 'SHOW_TOOLBAR': - return fn({}, t, { toolbarVisible: !0 }); + return He({}, t, { toolbarVisible: !0 }); case 'CLOSE_TOOLBAR': - return fn({}, t, { toolbarVisible: !1 }); + return He({}, t, { toolbarVisible: !1 }); case 'DRAG_START_HANDLER': - return fn({}, t, { + return He({}, t, { draggedType: e.draggedType, toolbarVisible: !1 }); case 'DROP_HANDLER': - return fn({}, t, { - dashboardInfo: fn({}, t.dashboardInfo, { - settings: fn({}, t.dashboardInfo.settings, { - items: [].concat(pe()(t.dashboardInfo.settings.items), [ + return He({}, t, { + dashboardInfo: He({}, t.dashboardInfo, { + settings: He({}, t.dashboardInfo.settings, { + items: [].concat(Oe()(t.dashboardInfo.settings.items), [ e.element ]) }) @@ -143927,10 +143661,10 @@ object-assign settingsVisible: e.id }); case 'DELETE_CHART': - return fn({}, t, { + return He({}, t, { settingsVisible: !1, - dashboardInfo: fn({}, n, { - settings: fn({}, n.settings, { + dashboardInfo: He({}, n, { + settings: He({}, n.settings, { items: n.settings.items.filter(function(t) { return t.i !== e.index; }) @@ -143938,17 +143672,17 @@ object-assign }) }); case 'CLOSE_SETTINGS': - return fn({}, t, { settingsVisible: !1 }); + return He({}, t, { settingsVisible: !1 }); case 'SHOW_SETTINGS': - return fn({}, t, { settingsVisible: e.index }); + return He({}, t, { settingsVisible: e.index }); case 'SET_SRC_FOR_IMG': - return fn({}, t, { - dashboardInfo: fn({}, n, { - settings: fn({}, n.settings, { - items: pe()( + return He({}, t, { + dashboardInfo: He({}, n, { + settings: He({}, n.settings, { + items: Oe()( n.settings.items.map(function(t) { return e.index === t.i - ? fn({}, t, { src: e.value }) + ? He({}, t, { src: e.value }) : t; }) ) @@ -143957,26 +143691,26 @@ object-assign }); case 'SET_TEXT_FOR_PARAGRAPH': return 'user' === e.source - ? fn({}, t, { - dashboardInfo: fn({}, n, { - settings: fn({}, n.settings, { + ? He({}, t, { + dashboardInfo: He({}, n, { + settings: He({}, n.settings, { items: n.settings.items.map(function(t) { return e.index === t.i - ? fn({}, t, { text: e.newValue }) + ? He({}, t, { text: e.newValue }) : t; }) }) }) }) - : fn({}, t); + : He({}, t); case 'CLEAR_ITEMS': - return fn({}, t, { - dashboardInfo: fn({}, n, { - settings: fn({}, n.settings, { items: [] }) + return He({}, t, { + dashboardInfo: He({}, n, { + settings: He({}, n.settings, { items: [] }) }) }); case 'CLONE_CHART': - var f = 'chart-'.concat(sn()), + var f = 'chart-'.concat(Fe()), d = n.settings.items.find(function(t) { return t.i === e.index; }), @@ -143989,10 +143723,10 @@ object-assign {}, g = {}; if (p && p.style) { - var v = new RegExp(''.concat(e.index), 'g'); - g = fn({}, p, { style: p.style.replace(v, f) }); + var m = new RegExp(''.concat(e.index), 'g'); + g = He({}, p, { style: p.style.replace(m, f) }); } - var m = h.x, + var v = h.x, y = h.y, b = h.w, _ = h.h, @@ -144004,7 +143738,7 @@ object-assign A = d.src, T = { i: f, - x: m, + x: v, y: _ + y, w: b, h: _, @@ -144015,67 +143749,67 @@ object-assign text: k, src: A }; - return fn({}, t, { - dashboardInfo: fn({}, n, { - settings: fn({}, n.settings, { - items: [].concat(pe()(n.settings.items), [T]), - charts_theme: fn( + return He({}, t, { + dashboardInfo: He({}, n, { + settings: He({}, n.settings, { + items: [].concat(Oe()(n.settings.items), [T]), + charts_theme: He( {}, n.settings.charts_theme, - ve()({}, f, g) + Me()({}, f, g) ) }) }) }); case 'TOGGLE_DASHBOARDS_MENU': - return fn({}, t, { dashboardsMenu: e.value || '' }); + return He({}, t, { dashboardsMenu: e.value || '' }); case 'SET_NEW_DASHBOARD_FOR_FOCUS': - return fn({}, t, { newDashboardId: e.value }); + return He({}, t, { newDashboardId: e.value }); case 'SET_ACCESS_KEY': - return fn({}, t, { accessKey: e.value }); + return He({}, t, { accessKey: e.value }); case 'CLEAR_ACCESS_KEY': - return fn({}, t, { accessKey: '' }); + return He({}, t, { accessKey: '' }); case 'MAP_OLD_ITEMS': - return fn({}, t, { dashboardInfo: e.newDashboard }); + return He({}, t, { dashboardInfo: e.newDashboard }); case 'LOADING_SINGLE_DASHBOARD': - return fn({}, t, { isDashboardLoading: !0 }); + return He({}, t, { isDashboardLoading: !0 }); case 'FILTER_DASHBOARDS_MENU': - return fn({}, t, { dashboardMenuFilter: e.value }); + return He({}, t, { dashboardMenuFilter: e.value }); case 'CHANGE_SORTING': - return fn({}, t, { + return He({}, t, { sortingValue: e.sorting, - dashboardList: me(e.sorting.value, t.dashboardList) + dashboardList: Le(e.sorting.value, t.dashboardList) }); case 'CHANGE_SAVED_QUERY_LIST': var C = e.savedQueriesList; - return fn({}, t, { - dashboardInfo: fn({}, n, { - settings: fn({}, n.settings, { savedQueriesList: C }) + return He({}, t, { + dashboardInfo: He({}, n, { + settings: He({}, n.settings, { savedQueriesList: C }) }) }); case 'LOAD_DUMMY_DASHBOARDS': - return fn({}, t, { - dashboardList: [ye], - dashboardInfo: fn({}, t.dashboardInfo, {}, ye) + return He({}, t, { + dashboardList: [je], + dashboardInfo: He({}, t.dashboardInfo, {}, je) }); default: return t; } }) ), - gn = n(28), - vn = n.n(gn), - mn = function(t) { - return Object(gn.get)( + Xe = n(33), + Ye = n.n(Xe), + $e = function(t) { + return Object(Xe.get)( t, ['app', 'dashboardInfo', 'settings', 'savedQueriesList'], [] ); }, - yn = function(t) { - return Object(gn.get)(t, ['app', 'dashboardInfo']); + Ke = function(t) { + return Object(Xe.get)(t, ['app', 'dashboardInfo']); }, - bn = function(t, e, n) { + Qe = function(t, e, n) { var r = Array.from(new Set(t)), i = 'public-dashboard: '.concat(e); n.get({ @@ -144097,7 +143831,7 @@ object-assign }); }); }; - function _n(t, e) { + function Ze(t, e) { var n = Object.keys(t); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(t); @@ -144109,16 +143843,16 @@ object-assign } return n; } - function xn(t) { + function Je(t) { for (var e = 1; e < arguments.length; e++) { var n = null != arguments[e] ? arguments[e] : {}; e % 2 - ? _n(Object(n), !0).forEach(function(e) { - ve()(t, e, n[e]); + ? Ze(n, !0).forEach(function(e) { + Me()(t, e, n[e]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) - : _n(Object(n)).forEach(function(e) { + : Ze(n).forEach(function(e) { Object.defineProperty( t, e, @@ -144128,7 +143862,7 @@ object-assign } return t; } - function wn(t, e) { + function tn(t, e) { var n = Object.keys(t); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(t); @@ -144140,16 +143874,16 @@ object-assign } return n; } - function Sn(t) { + function en(t) { for (var e = 1; e < arguments.length; e++) { var n = null != arguments[e] ? arguments[e] : {}; e % 2 - ? wn(Object(n), !0).forEach(function(e) { - ve()(t, e, n[e]); + ? tn(n, !0).forEach(function(e) { + Me()(t, e, n[e]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) - : wn(Object(n)).forEach(function(e) { + : tn(n).forEach(function(e) { Object.defineProperty( t, e, @@ -144159,9 +143893,9 @@ object-assign } return t; } - var En = function(t, e) { + var nn = function(t, e) { var n = t.data.items.map(function(t) { - return Sn({}, t, { + return en({}, t, { i: e(), w: Math.floor(t.width / 100), h: 3 * Math.floor(t.height / 100), @@ -144169,13 +143903,13 @@ object-assign y: Math.floor(t.top / 100) }); }); - return Sn({}, t, { - settings: Sn({}, t.settings, { layout: pe()(n), items: pe()(n) }) + return en({}, t, { + settings: en({}, t.settings, { layout: Oe()(n), items: Oe()(n) }) }); }, - kn = n(60), - An = n.n(kn), - Tn = function(t) { + rn = n(64), + on = n.n(rn), + an = function(t) { var e = (function(t) { var e = new Set(), n = t.settings; @@ -144197,9 +143931,9 @@ object-assign } return Array.from(e); })(t); - e.length && An.a.load({ google: { families: e } }); + e.length && on.a.load({ google: { families: e } }); }; - function Cn(t, e) { + function sn(t, e) { var n = Object.keys(t); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(t); @@ -144211,16 +143945,16 @@ object-assign } return n; } - function On(t) { + function un(t) { for (var e = 1; e < arguments.length; e++) { var n = null != arguments[e] ? arguments[e] : {}; e % 2 - ? Cn(Object(n), !0).forEach(function(e) { - ve()(t, e, n[e]); + ? sn(n, !0).forEach(function(e) { + Me()(t, e, n[e]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) - : Cn(Object(n)).forEach(function(e) { + : sn(n).forEach(function(e) { Object.defineProperty( t, e, @@ -144230,7 +143964,7 @@ object-assign } return t; } - var Pn = function() { + var ln = function() { var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] @@ -144243,7 +143977,7 @@ object-assign 'https://' .concat(o, '/projects/') .concat(i.projectId(), '/dashboards/'), - On( + un( { method: 'post', body: JSON.stringify({ @@ -144265,7 +143999,7 @@ object-assign }); }; }, - Mn = function(t) { + cn = function(t) { return function(e, n, r) { var i = r.keenClient; r.keenWebHost, r.keenWebFetchOptions; @@ -144290,10 +144024,10 @@ object-assign }); }; }, - Ln = function(t, e) { + fn = function(t, e) { return { type: 'SAVED_QUERY_ERROR', error: t, index: e }; }, - Dn = function() { + dn = function() { return function(t, e, n) { var r = n.keenClient, i = n.keenWebHost, @@ -144302,7 +144036,7 @@ object-assign 'https://' .concat(i, '/projects/') .concat(r.projectId(), '/dashboards'), - On({}, o) + un({}, o) ) .then(function(e) { return e.json().then(function(e) { @@ -144314,7 +144048,7 @@ object-assign }); }; }, - jn = function(t) { + hn = function(t) { return function(e, n, r) { var i = r.keenClient, o = r.keenWebHost, @@ -144324,12 +144058,12 @@ object-assign .concat(o, '/projects/') .concat(i.projectId(), '/dashboards/') .concat(t), - On({}, a) + un({}, a) ) .then(function(n) { return n.json().then(function(n) { var r, i, o, a, s, u, l, c; - Tn(n), + an(n), e({ type: 'LOAD_DASHBOARD_INFO', dashboardInfo: @@ -144337,7 +144071,7 @@ object-assign !r.settings.items || (r.settings.items && !r.settings.items.length) ? !r.data.items || (r.data.items && !r.data.version) - ? ((o = sn), + ? ((o = Fe), (s = function() { var t = arguments.length > 0 && @@ -144349,7 +144083,7 @@ object-assign return e.charAt(0).toUpperCase() + e.slice(1); }), (u = 0), - (l = xn({}, (i = r), { + (l = Je({}, (i = r), { settings: { items: i.rows.map(function(t) { (u += Math.floor(t.height / 100)), @@ -144391,15 +144125,15 @@ object-assign })), (c = []), l.settings.items.forEach(function(t) { - c.push.apply(c, pe()(t)); + c.push.apply(c, Oe()(t)); }), - xn({}, l, { - settings: xn({}, l.settings, { + Je({}, l, { + settings: Je({}, l.settings, { items: c, layout: c }) })) - : En(r, sn) + : nn(r, Fe) : r), id: t, isDashboardLoading: !1 @@ -144411,10 +144145,10 @@ object-assign }); }; }, - Rn = function() { + pn = function() { return { type: 'CLEAR_DASHBOARD_INFO' }; }, - Nn = function(t) { + gn = function(t) { return function(e, n, r) { var i = r.keenClient, o = r.keenWebHost, @@ -144425,7 +144159,7 @@ object-assign .concat(o, '/projects/') .concat(i.projectId(), '/dashboards/') .concat(t.id), - On({ method: 'put', body: JSON.stringify(t) }, a) + un({ method: 'put', body: JSON.stringify(t) }, a) ) .then(function(t) { 200 === t.status && @@ -144436,39 +144170,39 @@ object-assign }); }; }, - zn = function() { + mn = function() { return { type: 'TOGGLE_IS_PUBLIC' }; }, - In = function(t) { + vn = function(t) { return { type: 'SET_LOADING', index: t }; }, - Fn = function(t) { + yn = function(t) { return { type: 'LOAD_SAVED_QUERIES', index: t }; }, - Vn = function() { + bn = function() { return { type: 'CLOSE_SETTINGS' }; }, - Bn = function(t) { + _n = function(t) { return { type: 'SHOW_SETTINGS', index: t }; }, - Gn = function(t) { + xn = function(t) { return { type: 'TOGGLE_DASHBOARDS_MENU', value: t }; }, - Hn = function(t) { + wn = function(t) { return { type: 'SET_NEW_DASHBOARD_FOR_FOCUS', value: t }; }, - Un = function(t) { + Sn = function(t) { return { type: 'SET_ACCESS_KEY', value: t }; }, - qn = function() { + En = function() { return { type: 'CLEAR_ACCESS_KEY' }; }, - Wn = function(t, e) { + kn = function(t, e) { return function(n, r) { var i = r(), - o = yn(i), + o = Ke(i), a = o.settings.savedQueriesList - ? pe()(o.settings.savedQueriesList) + ? Oe()(o.settings.savedQueriesList) : []; a.length && t && @@ -144483,387 +144217,32 @@ object-assign n({ type: 'CHANGE_SAVED_QUERY_LIST', savedQueriesList: a }); }; }, - Xn = n(43); - function Yn(t) { - return (Yn = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - })(t); - } - function $n(t, e, n) { - return ( - e in t - ? Object.defineProperty(t, e, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (t[e] = n), - t - ); - } - function Qn(t, e) { - var n = Object.keys(t); - if (Object.getOwnPropertySymbols) { - var r = Object.getOwnPropertySymbols(t); - e && - (r = r.filter(function(e) { - return Object.getOwnPropertyDescriptor(t, e).enumerable; - })), - n.push.apply(n, r); - } - return n; - } - function Kn(t) { - for (var e = 1; e < arguments.length; e++) { - var n = null != arguments[e] ? arguments[e] : {}; - e % 2 - ? Qn(Object(n), !0).forEach(function(e) { - $n(t, e, n[e]); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) - : Qn(Object(n)).forEach(function(e) { - Object.defineProperty( - t, - e, - Object.getOwnPropertyDescriptor(n, e) - ); - }); - } - return t; - } - function Zn(t, e) { - if (null == t) return {}; - var n, - r, - i = (function(t, e) { - if (null == t) return {}; - var n, - r, - i = {}, - o = Object.keys(t); - for (r = 0; r < o.length; r++) - (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); - return i; - })(t, e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(t); - for (r = 0; r < o.length; r++) - (n = o[r]), - e.indexOf(n) >= 0 || - (Object.prototype.propertyIsEnumerable.call(t, n) && - (i[n] = t[n])); - } - return i; - } - function Jn(t) { - return ( - (function(t) { - if (Array.isArray(t)) { - for (var e = 0, n = new Array(t.length); e < t.length; e++) - n[e] = t[e]; - return n; - } - })(t) || - (function(t) { - if ( - Symbol.iterator in Object(t) || - '[object Arguments]' === Object.prototype.toString.call(t) - ) - return Array.from(t); - })(t) || - (function() { - throw new TypeError( - 'Invalid attempt to spread non-iterable instance' - ); - })() - ); - } - function tr(t) { - return ( - (e = t), - (e -= 0) == e - ? t - : (t = t.replace(/[\-_\s]+(.)?/g, function(t, e) { - return e ? e.toUpperCase() : ''; - })) - .substr(0, 1) - .toLowerCase() + t.substr(1) - ); - var e; - } - function er(t) { - return t - .split(';') - .map(function(t) { - return t.trim(); - }) - .filter(function(t) { - return t; - }) - .reduce(function(t, e) { - var n, - r = e.indexOf(':'), - i = tr(e.slice(0, r)), - o = e.slice(r + 1).trim(); - return ( - i.startsWith('webkit') - ? (t[((n = i), n.charAt(0).toUpperCase() + n.slice(1))] = o) - : (t[i] = o), - t - ); - }, {}); - } - var nr = !1; - try { - nr = !0; - } catch (t) {} - function rr(t) { - return null === t - ? null - : 'object' === Yn(t) && t.prefix && t.iconName - ? t - : Array.isArray(t) && 2 === t.length - ? { prefix: t[0], iconName: t[1] } - : 'string' == typeof t - ? { prefix: 'fas', iconName: t } - : void 0; - } - function ir(t, e) { - return (Array.isArray(e) && e.length > 0) || (!Array.isArray(e) && e) - ? $n({}, t, e) - : {}; - } - function or(t) { - var e = t.icon, - n = t.mask, - r = t.symbol, - i = t.className, - o = t.title, - a = rr(e), - s = ir( - 'classes', - [].concat( - Jn( - (function(t) { - var e, - n = t.spin, - r = t.pulse, - i = t.fixedWidth, - o = t.inverse, - a = t.border, - s = t.listItem, - u = t.flip, - l = t.size, - c = t.rotation, - f = t.pull, - d = - ($n( - (e = { - 'fa-spin': n, - 'fa-pulse': r, - 'fa-fw': i, - 'fa-inverse': o, - 'fa-border': a, - 'fa-li': s, - 'fa-flip-horizontal': - 'horizontal' === u || 'both' === u, - 'fa-flip-vertical': 'vertical' === u || 'both' === u - }), - 'fa-'.concat(l), - null != l - ), - $n(e, 'fa-rotate-'.concat(c), null != c), - $n(e, 'fa-pull-'.concat(f), null != f), - $n(e, 'fa-swap-opacity', t.swapOpacity), - e); - return Object.keys(d) - .map(function(t) { - return d[t] ? t : null; - }) - .filter(function(t) { - return t; - }); - })(t) - ), - Jn(i.split(' ')) - ) - ), - u = ir( - 'transform', - 'string' == typeof t.transform - ? Xn.c.transform(t.transform) - : t.transform - ), - l = ir('mask', rr(n)), - c = Object(Xn.a)(a, Kn({}, s, {}, u, {}, l, { symbol: r, title: o })); - if (!c) - return ( - (function() { - var t; - !nr && - console && - 'function' == typeof console.error && - (t = console).error.apply(t, arguments); - })('Could not find icon', a), - null - ); - var f = c.abstract, - d = {}; - return ( - Object.keys(t).forEach(function(e) { - or.defaultProps.hasOwnProperty(e) || (d[e] = t[e]); - }), - ar(f[0], d) - ); - } - (or.displayName = 'FontAwesomeIcon'), - (or.propTypes = { - border: h.a.bool, - className: h.a.string, - mask: h.a.oneOfType([h.a.object, h.a.array, h.a.string]), - fixedWidth: h.a.bool, - inverse: h.a.bool, - flip: h.a.oneOf(['horizontal', 'vertical', 'both']), - icon: h.a.oneOfType([h.a.object, h.a.array, h.a.string]), - listItem: h.a.bool, - pull: h.a.oneOf(['right', 'left']), - pulse: h.a.bool, - rotation: h.a.oneOf([90, 180, 270]), - size: h.a.oneOf([ - 'lg', - 'xs', - 'sm', - '1x', - '2x', - '3x', - '4x', - '5x', - '6x', - '7x', - '8x', - '9x', - '10x' - ]), - spin: h.a.bool, - symbol: h.a.oneOfType([h.a.bool, h.a.string]), - title: h.a.string, - transform: h.a.oneOfType([h.a.string, h.a.object]), - swapOpacity: h.a.bool - }), - (or.defaultProps = { - border: !1, - className: '', - mask: null, - fixedWidth: !1, - inverse: !1, - flip: null, - icon: null, - listItem: !1, - pull: null, - pulse: !1, - rotation: null, - size: null, - spin: !1, - symbol: !1, - title: '', - transform: null, - swapOpacity: !1 - }); - var ar = function t(e, n) { - var r = - arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; - if ('string' == typeof n) return n; - var i = (n.children || []).map(function(n) { - return t(e, n); - }), - o = Object.keys(n.attributes || {}).reduce( - function(t, e) { - var r = n.attributes[e]; - switch (e) { - case 'class': - (t.attrs.className = r), delete n.attributes.class; - break; - case 'style': - t.attrs.style = er(r); - break; - default: - 0 === e.indexOf('aria-') || 0 === e.indexOf('data-') - ? (t.attrs[e.toLowerCase()] = r) - : (t.attrs[tr(e)] = r); - } - return t; - }, - { attrs: {} } - ), - a = r.style, - s = void 0 === a ? {} : a, - u = Zn(r, ['style']); - return ( - (o.attrs.style = Kn({}, o.attrs.style, {}, s)), - e.apply(void 0, [n.tag, Kn({}, o.attrs, {}, u)].concat(Jn(i))) - ); - }.bind(null, u.a.createElement), - sr = n(15), - ur = n.n(sr), - lr = n(16), - cr = n.n(lr), - fr = n(17), - dr = n.n(fr), - hr = n(7), - pr = n.n(hr); - function gr() { - if ('undefined' == typeof Reflect || !Reflect.construct) return !1; - if (Reflect.construct.sham) return !1; - if ('function' == typeof Proxy) return !0; - try { - return ( - Date.prototype.toString.call( - Reflect.construct(Date, [], function() {}) - ), - !0 - ); - } catch (t) { - return !1; - } - } - var vr = (function(t) { - cr()(r, t); - var e, - n = - ((e = r), - function() { - var t, - n = pr()(e); - if (gr()) { - var r = pr()(this).constructor; - t = Reflect.construct(n, arguments, r); - } else t = n.apply(this, arguments); - return dr()(this, t); - }); - function r(t) { - var e; + An = n(4), + Tn = n(18), + Cn = n.n(Tn), + On = n(19), + Pn = n.n(On), + Mn = n(20), + Ln = n.n(Mn), + jn = n(21), + Dn = n.n(jn), + Rn = (function(t) { + function e(t) { + var n; return ( - a()(this, r), - ((e = n.call(this, t)).addDashboard = function() { - e.props.addDashboardItem(); + a()(this, e), + ((n = Pn()( + this, + Ln()(e).call(this, t) + )).addDashboard = function() { + n.props.addDashboardItem(); }), - e + n ); } return ( - ur()(r, [ + Dn()(e, t), + Cn()(e, [ { key: 'componentDidUpdate', value: function() { @@ -144890,17 +144269,20 @@ object-assign className: 'new-dashboard-button', onClick: this.addDashboard }, - u.a.createElement(or, { icon: 'plus-circle', size: 'sm' }), + u.a.createElement(An.a, { + icon: 'plus-circle', + size: 'sm' + }), ' New dashboard' ); } } ]), - r + e ); })(u.a.Component), - mr = st( - ie( + zn = ft( + pe( function(t) { var e = t.app; return { @@ -144910,22 +144292,22 @@ object-assign }; }, { - addDashboardItem: Pn, - toggleDashboardsMenu: Gn, - setNewDashboardForFocus: Hn, - clearAccessKey: qn + addDashboardItem: ln, + toggleDashboardsMenu: xn, + setNewDashboardForFocus: wn, + clearAccessKey: En } - )(vr) + )(Rn) ), - yr = n(24), - br = n(3), - _r = n(154), - xr = n.n(_r), - wr = n(41), - Sr = n.n(wr), - Er = n(62); - function kr(t) { - return (kr = + Nn = n(32), + In = n(5), + Fn = n(160), + Vn = n.n(Fn), + Bn = n(161), + Gn = n.n(Bn), + Hn = n(66); + function Un(t) { + return (Un = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(t) { return typeof t; @@ -144939,11 +144321,11 @@ object-assign : typeof t; })(t); } - function Ar(t, e) { + function qn(t, e) { if (!(t instanceof e)) throw new TypeError('Cannot call a class as a function'); } - function Tr(t, e) { + function Wn(t, e) { for (var n = 0; n < e.length; n++) { var r = e[n]; (r.enumerable = r.enumerable || !1), @@ -144952,10 +144334,10 @@ object-assign Object.defineProperty(t, r.key, r); } } - function Cr(t, e, n) { - return e && Tr(t.prototype, e), n && Tr(t, n), t; + function Xn(t, e, n) { + return e && Wn(t.prototype, e), n && Wn(t, n), t; } - function Or(t, e, n) { + function Yn(t, e, n) { return ( e in t ? Object.defineProperty(t, e, { @@ -144968,8 +144350,8 @@ object-assign t ); } - function Pr() { - return (Pr = + function $n() { + return ($n = Object.assign || function(t) { for (var e = 1; e < arguments.length; e++) { @@ -144980,7 +144362,7 @@ object-assign return t; }).apply(this, arguments); } - function Mr(t) { + function Kn(t) { for (var e = 1; e < arguments.length; e++) { var n = null != arguments[e] ? arguments[e] : {}, r = Object.keys(n); @@ -144991,12 +144373,12 @@ object-assign }) )), r.forEach(function(e) { - Or(t, e, n[e]); + Yn(t, e, n[e]); }); } return t; } - function Lr(t, e) { + function Qn(t, e) { if ('function' != typeof e && null !== e) throw new TypeError( 'Super expression must either be null or a function' @@ -145004,23 +144386,23 @@ object-assign (t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } })), - e && jr(t, e); + e && Jn(t, e); } - function Dr(t) { - return (Dr = Object.setPrototypeOf + function Zn(t) { + return (Zn = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { return t.__proto__ || Object.getPrototypeOf(t); })(t); } - function jr(t, e) { - return (jr = + function Jn(t, e) { + return (Jn = Object.setPrototypeOf || function(t, e) { return (t.__proto__ = e), t; })(t, e); } - function Rr(t, e) { + function tr(t, e) { if (null == t) return {}; var n, r, @@ -145044,19 +144426,19 @@ object-assign } return i; } - function Nr(t) { + function er(t) { if (void 0 === t) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return t; } - function zr(t, e) { + function nr(t, e) { return !e || ('object' != typeof e && 'function' != typeof e) - ? Nr(t) + ? er(t) : e; } - function Ir(t) { + function rr(t) { return ( (function(t) { if (Array.isArray(t)) { @@ -145079,15 +144461,15 @@ object-assign })() ); } - var Fr = function() {}; - function Vr(t, e) { + var ir = function() {}; + function or(t, e) { return e ? ('-' === e[0] ? t + e : t + '__' + e) : t; } - function Br(t, e, n, r) { + function ar(t, e, n, r) { var i = [e, r]; if (n && t) for (var o in n) - n.hasOwnProperty(o) && n[o] && i.push(''.concat(Vr(t, o))); + n.hasOwnProperty(o) && n[o] && i.push(''.concat(or(t, o))); return i .filter(function(t) { return t; @@ -145097,52 +144479,49 @@ object-assign }) .join(' '); } - var Gr = function(t) { + var sr = function(t) { return Array.isArray(t) ? t.filter(Boolean) - : 'object' === kr(t) && null !== t + : 'object' === Un(t) && null !== t ? [t] : []; }; - function Hr(t) { + function ur(t) { return ( [document.documentElement, document.body, window].indexOf(t) > -1 ); } - function Ur(t) { - return Hr(t) ? window.pageYOffset : t.scrollTop; - } - function qr(t, e) { - Hr(t) ? window.scrollTo(0, e) : (t.scrollTop = e); + function lr(t) { + return ur(t) ? window.pageYOffset : t.scrollTop; } - function Wr(t, e, n, r) { - return n * ((t = t / r - 1) * t * t + 1) + e; + function cr(t, e) { + ur(t) ? window.scrollTo(0, e) : (t.scrollTop = e); } - function Xr(t, e) { + function fr(t, e) { var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 200, r = - arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : Fr, - i = Ur(t), + arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : ir, + i = lr(t), o = e - i, a = 10, s = 0; - function u() { - var e = Wr((s += a), i, o, n); - qr(t, e), s < n ? xr()(u) : r(t); - } - u(); + !(function e() { + var u, + l = o * ((u = (u = s += a) / n - 1) * u * u + 1) + i; + cr(t, l), s < n ? Vn()(e) : r(t); + })(); } - function Yr() { + function dr() { try { return document.createEvent('TouchEvent'), !0; } catch (t) { return !1; } } - function $r(t) { + function hr(t) { var e = t.maxHeight, n = t.menuEl, r = t.minHeight, @@ -145173,25 +144552,25 @@ object-assign h = f.height, p = f.top, g = n.offsetParent.getBoundingClientRect().top, - v = window.innerHeight, - m = Ur(u), + m = window.innerHeight, + v = lr(u), y = parseInt(getComputedStyle(n).marginBottom, 10), b = parseInt(getComputedStyle(n).marginTop, 10), _ = g - b, - x = v - p, - w = _ + m, - S = c - m - p, - E = d - v + m + y, - k = m + p - b; + x = m - p, + w = _ + v, + S = c - v - p, + E = d - m + v + y, + k = v + p - b; switch (i) { case 'auto': case 'bottom': if (x >= h) return { placement: 'bottom', maxHeight: e }; if (S >= h && !a) - return o && Xr(u, E, 160), { placement: 'bottom', maxHeight: e }; + return o && fr(u, E, 160), { placement: 'bottom', maxHeight: e }; if ((!a && S >= r) || (a && x >= r)) return ( - o && Xr(u, E, 160), + o && fr(u, E, 160), { placement: 'bottom', maxHeight: a ? x - y : S - y } ); if ('auto' === i || a) { @@ -145203,17 +144582,17 @@ object-assign ); } if ('bottom' === i) - return qr(u, E), { placement: 'bottom', maxHeight: e }; + return cr(u, E), { placement: 'bottom', maxHeight: e }; break; case 'top': if (_ >= h) return { placement: 'top', maxHeight: e }; if (w >= h && !a) - return o && Xr(u, k, 160), { placement: 'top', maxHeight: e }; + return o && fr(u, k, 160), { placement: 'top', maxHeight: e }; if ((!a && w >= r) || (a && _ >= r)) { var C = e; return ( ((!a && w >= r) || (a && _ >= r)) && (C = a ? _ - b : w - b), - o && Xr(u, k, 160), + o && fr(u, k, 160), { placement: 'top', maxHeight: C } ); } @@ -145223,26 +144602,26 @@ object-assign } return l; } - var Qr = function(t) { + var pr = function(t) { return 'auto' === t ? 'bottom' : t; }, - Kr = (function(t) { + gr = (function(t) { function e() { var t, n; - Ar(this, e); + qn(this, e); for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) i[o] = arguments[o]; return ( - Or( - Nr( - Nr( - (n = zr(this, (t = Dr(e)).call.apply(t, [this].concat(i)))) + Yn( + er( + er( + (n = nr(this, (t = Zn(e)).call.apply(t, [this].concat(i)))) ) ), 'state', { maxHeight: n.props.maxMenuHeight, placement: null } ), - Or(Nr(Nr(n)), 'getPlacement', function(t) { + Yn(er(er(n)), 'getPlacement', function(t) { var e = n.props, r = e.minMenuHeight, i = e.maxMenuHeight, @@ -145253,7 +144632,7 @@ object-assign l = n.context.getPortalPlacement; if (t) { var c = 'fixed' === a, - f = $r({ + f = hr({ maxHeight: i, menuEl: t, minHeight: r, @@ -145265,10 +144644,10 @@ object-assign l && l(f), n.setState(f); } }), - Or(Nr(Nr(n)), 'getUpdatedProps', function() { + Yn(er(er(n)), 'getUpdatedProps', function() { var t = n.props.menuPlacement, - e = n.state.placement || Qr(t); - return Mr({}, n.props, { + e = n.state.placement || pr(t); + return Kn({}, n.props, { placement: e, maxHeight: n.state.maxHeight }); @@ -145277,8 +144656,8 @@ object-assign ); } return ( - Lr(e, t), - Cr(e, [ + Qn(e, t), + Xn(e, [ { key: 'render', value: function() { @@ -145292,8 +144671,8 @@ object-assign e ); })(s.Component); - Or(Kr, 'contextTypes', { getPortalPlacement: h.a.func }); - var Zr = function(t) { + Yn(gr, 'contextTypes', { getPortalPlacement: g.a.func }); + var mr = function(t) { var e = t.theme, n = e.spacing.baseUnit; return { @@ -145302,9 +144681,9 @@ object-assign textAlign: 'center' }; }, - Jr = Zr, - ti = Zr, - ei = function(t) { + vr = mr, + yr = mr, + br = function(t) { var e = t.children, n = t.className, r = t.cx, @@ -145312,10 +144691,10 @@ object-assign o = t.innerProps; return u.a.createElement( 'div', - Pr( + $n( { className: r( - Object(br.a)(i('noOptionsMessage', t)), + Object(In.a)(i('noOptionsMessage', t)), { 'menu-notice': !0, 'menu-notice--no-options': !0 }, n ) @@ -145325,8 +144704,8 @@ object-assign e ); }; - ei.defaultProps = { children: 'No options' }; - var ni = function(t) { + br.defaultProps = { children: 'No options' }; + var _r = function(t) { var e = t.children, n = t.className, r = t.cx, @@ -145334,10 +144713,10 @@ object-assign o = t.innerProps; return u.a.createElement( 'div', - Pr( + $n( { className: r( - Object(br.a)(i('loadingMessage', t)), + Object(In.a)(i('loadingMessage', t)), { 'menu-notice': !0, 'menu-notice--loading': !0 }, n ) @@ -145347,31 +144726,31 @@ object-assign e ); }; - ni.defaultProps = { children: 'Loading...' }; - var ri = (function(t) { + _r.defaultProps = { children: 'Loading...' }; + var xr = (function(t) { function e() { var t, n; - Ar(this, e); + qn(this, e); for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) i[o] = arguments[o]; return ( - Or( - Nr( - Nr((n = zr(this, (t = Dr(e)).call.apply(t, [this].concat(i))))) + Yn( + er( + er((n = nr(this, (t = Zn(e)).call.apply(t, [this].concat(i))))) ), 'state', { placement: null } ), - Or(Nr(Nr(n)), 'getPortalPlacement', function(t) { + Yn(er(er(n)), 'getPortalPlacement', function(t) { var e = t.placement; - e !== Qr(n.props.menuPlacement) && n.setState({ placement: e }); + e !== pr(n.props.menuPlacement) && n.setState({ placement: e }); }), n ); } return ( - Lr(e, t), - Cr(e, [ + Qn(e, t), + Xn(e, [ { key: 'getChildContext', value: function() { @@ -145390,7 +144769,7 @@ object-assign a = t.getStyles, s = 'fixed' === o; if ((!e && !s) || !r) return null; - var c = this.state.placement || Qr(i), + var c = this.state.placement || pr(i), f = (function(t) { var e = t.getBoundingClientRect(); return { @@ -145406,7 +144785,7 @@ object-assign h = { offset: f[c] + d, position: o, rect: f }, p = u.a.createElement( 'div', - { className: Object(br.a)(a('menuPortal', h)) }, + { className: Object(In.a)(a('menuPortal', h)) }, n ); return e ? Object(l.createPortal)(p, e) : p; @@ -145416,20 +144795,20 @@ object-assign e ); })(s.Component); - Or(ri, 'childContextTypes', { getPortalPlacement: h.a.func }); - var ii = Array.isArray, - oi = Object.keys, - ai = Object.prototype.hasOwnProperty; - function si(t, e) { + Yn(xr, 'childContextTypes', { getPortalPlacement: g.a.func }); + var wr = Array.isArray, + Sr = Object.keys, + Er = Object.prototype.hasOwnProperty; + function kr(t, e) { try { return (function t(e, n) { if (e === n) return !0; - if (e && n && 'object' == kr(e) && 'object' == kr(n)) { + if (e && n && 'object' == Un(e) && 'object' == Un(n)) { var r, i, o, - a = ii(e), - s = ii(n); + a = wr(e), + s = wr(n); if (a && s) { if ((i = e.length) != n.length) return !1; for (r = i; 0 != r--; ) if (!t(e[r], n[r])) return !1; @@ -145444,9 +144823,9 @@ object-assign f = n instanceof RegExp; if (c != f) return !1; if (c && f) return e.toString() == n.toString(); - var d = oi(e); - if ((i = d.length) !== oi(n).length) return !1; - for (r = i; 0 != r--; ) if (!ai.call(n, d[r])) return !1; + var d = Sr(e); + if ((i = d.length) !== Sr(n).length) return !1; + for (r = i; 0 != r--; ) if (!Er.call(n, d[r])) return !1; for (r = i; 0 != r--; ) if (!(('_owner' === (o = d[r]) && e.$$typeof) || t(e[o], n[o]))) return !1; @@ -145467,7 +144846,7 @@ object-assign throw t; } } - var ui = [ + var Ar = [ { base: 'A', letters: /[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g @@ -145685,23 +145064,23 @@ object-assign letters: /[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g } ], - li = function(t) { - for (var e = 0; e < ui.length; e++) - t = t.replace(ui[e].letters, ui[e].base); + Tr = function(t) { + for (var e = 0; e < Ar.length; e++) + t = t.replace(Ar[e].letters, Ar[e].base); return t; }, - ci = function(t) { + Cr = function(t) { return t.replace(/^\s+|\s+$/g, ''); }, - fi = function(t) { + Or = function(t) { return ''.concat(t.label, ' ').concat(t.value); }, - di = function(t) { + Pr = function(t) { return u.a.createElement( 'span', - Pr( + $n( { - className: Object(br.a)({ + className: Object(In.a)({ label: 'a11yText', zIndex: 9999, border: 0, @@ -145720,13 +145099,13 @@ object-assign ) ); }, - hi = (function(t) { + Mr = (function(t) { function e() { - return Ar(this, e), zr(this, Dr(e).apply(this, arguments)); + return qn(this, e), nr(this, Zn(e).apply(this, arguments)); } return ( - Lr(e, t), - Cr(e, [ + Qn(e, t), + Xn(e, [ { key: 'render', value: function() { @@ -145741,7 +145120,7 @@ object-assign t.innerRef), n = (t.emotion, - Rr(t, [ + tr(t, [ 'in', 'out', 'onExited', @@ -145753,8 +145132,8 @@ object-assign ])); return u.a.createElement( 'input', - Pr({ ref: e }, n, { - className: Object(br.a)({ + $n({ ref: e }, n, { + className: Object(In.a)({ label: 'dummyInput', background: 0, border: 0, @@ -145776,13 +145155,13 @@ object-assign e ); })(s.Component), - pi = (function(t) { + Lr = (function(t) { function e() { - return Ar(this, e), zr(this, Dr(e).apply(this, arguments)); + return qn(this, e), nr(this, Zn(e).apply(this, arguments)); } return ( - Lr(e, t), - Cr(e, [ + Qn(e, t), + Xn(e, [ { key: 'componentDidMount', value: function() { @@ -145805,62 +145184,62 @@ object-assign e ); })(s.Component), - gi = ['boxSizing', 'height', 'overflow', 'paddingRight', 'position'], - vi = { + jr = ['boxSizing', 'height', 'overflow', 'paddingRight', 'position'], + Dr = { boxSizing: 'border-box', overflow: 'hidden', position: 'relative', height: '100%' }; - function mi(t) { + function Rr(t) { t.preventDefault(); } - function yi(t) { + function zr(t) { t.stopPropagation(); } - function bi() { + function Nr() { var t = this.scrollTop, e = this.scrollHeight, n = t + this.offsetHeight; 0 === t ? (this.scrollTop = 1) : n === e && (this.scrollTop = t - 1); } - function _i() { + function Ir() { return 'ontouchstart' in window || navigator.maxTouchPoints; } - var xi = !( + var Fr = !( 'undefined' == typeof window || !window.document || !window.document.createElement ), - wi = 0, - Si = (function(t) { + Vr = 0, + Br = (function(t) { function e() { var t, n; - Ar(this, e); + qn(this, e); for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) i[o] = arguments[o]; return ( - Or( - Nr( - Nr( - (n = zr(this, (t = Dr(e)).call.apply(t, [this].concat(i)))) + Yn( + er( + er( + (n = nr(this, (t = Zn(e)).call.apply(t, [this].concat(i)))) ) ), 'originalStyles', {} ), - Or(Nr(Nr(n)), 'listenerOptions', { capture: !1, passive: !1 }), + Yn(er(er(n)), 'listenerOptions', { capture: !1, passive: !1 }), n ); } return ( - Lr(e, t), - Cr(e, [ + Qn(e, t), + Xn(e, [ { key: 'componentDidMount', value: function() { var t = this; - if (xi) { + if (Fr) { var e = this.props, n = e.accountForScrollbars, r = e.touchScrollTarget, @@ -145868,41 +145247,41 @@ object-assign o = i && i.style; if ( (n && - gi.forEach(function(e) { + jr.forEach(function(e) { var n = o && o[e]; t.originalStyles[e] = n; }), - n && wi < 1) + n && Vr < 1) ) { var a = parseInt(this.originalStyles.paddingRight, 10) || 0, s = document.body ? document.body.clientWidth : 0, u = window.innerWidth - s + a || 0; - Object.keys(vi).forEach(function(t) { - var e = vi[t]; + Object.keys(Dr).forEach(function(t) { + var e = Dr[t]; o && (o[t] = e); }), o && (o.paddingRight = ''.concat(u, 'px')); } i && - _i() && + Ir() && (i.addEventListener( 'touchmove', - mi, + Rr, this.listenerOptions ), r && (r.addEventListener( 'touchstart', - bi, + Nr, this.listenerOptions ), r.addEventListener( 'touchmove', - yi, + zr, this.listenerOptions ))), - (wi += 1); + (Vr += 1); } } }, @@ -145910,35 +145289,35 @@ object-assign key: 'componentWillUnmount', value: function() { var t = this; - if (xi) { + if (Fr) { var e = this.props, n = e.accountForScrollbars, r = e.touchScrollTarget, i = document.body, o = i && i.style; - (wi = Math.max(wi - 1, 0)), + (Vr = Math.max(Vr - 1, 0)), n && - wi < 1 && - gi.forEach(function(e) { + Vr < 1 && + jr.forEach(function(e) { var n = t.originalStyles[e]; o && (o[e] = n); }), i && - _i() && + Ir() && (i.removeEventListener( 'touchmove', - mi, + Rr, this.listenerOptions ), r && (r.removeEventListener( 'touchstart', - bi, + Nr, this.listenerOptions ), r.removeEventListener( 'touchmove', - yi, + zr, this.listenerOptions ))); } @@ -145954,36 +145333,36 @@ object-assign e ); })(s.Component); - Or(Si, 'defaultProps', { accountForScrollbars: !0 }); - var Ei = (function(t) { + Yn(Br, 'defaultProps', { accountForScrollbars: !0 }); + var Gr = (function(t) { function e() { var t, n; - Ar(this, e); + qn(this, e); for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) i[o] = arguments[o]; return ( - Or( - Nr( - Nr( - (n = zr(this, (t = Dr(e)).call.apply(t, [this].concat(i)))) + Yn( + er( + er( + (n = nr(this, (t = Zn(e)).call.apply(t, [this].concat(i)))) ) ), 'state', { touchScrollTarget: null } ), - Or(Nr(Nr(n)), 'getScrollTarget', function(t) { + Yn(er(er(n)), 'getScrollTarget', function(t) { t !== n.state.touchScrollTarget && n.setState({ touchScrollTarget: t }); }), - Or(Nr(Nr(n)), 'blurSelectInput', function() { + Yn(er(er(n)), 'blurSelectInput', function() { document.activeElement && document.activeElement.blur(); }), n ); } return ( - Lr(e, t), - Cr(e, [ + Qn(e, t), + Xn(e, [ { key: 'render', value: function() { @@ -145997,7 +145376,7 @@ object-assign null, u.a.createElement('div', { onClick: this.blurSelectInput, - className: Object(br.a)({ + className: Object(In.a)({ position: 'fixed', left: 0, bottom: 0, @@ -146006,12 +145385,12 @@ object-assign }) }), u.a.createElement( - pi, + Lr, { innerRef: this.getScrollTarget }, e ), r - ? u.a.createElement(Si, { touchScrollTarget: r }) + ? u.a.createElement(Br, { touchScrollTarget: r }) : null ) : e; @@ -146021,29 +145400,29 @@ object-assign e ); })(s.PureComponent), - ki = (function(t) { + Hr = (function(t) { function e() { var t, n; - Ar(this, e); + qn(this, e); for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) i[o] = arguments[o]; return ( - Or( - Nr( - Nr( - (n = zr(this, (t = Dr(e)).call.apply(t, [this].concat(i)))) + Yn( + er( + er( + (n = nr(this, (t = Zn(e)).call.apply(t, [this].concat(i)))) ) ), 'isBottom', !1 ), - Or(Nr(Nr(n)), 'isTop', !1), - Or(Nr(Nr(n)), 'scrollTarget', void 0), - Or(Nr(Nr(n)), 'touchStart', void 0), - Or(Nr(Nr(n)), 'cancelScroll', function(t) { + Yn(er(er(n)), 'isTop', !1), + Yn(er(er(n)), 'scrollTarget', void 0), + Yn(er(er(n)), 'touchStart', void 0), + Yn(er(er(n)), 'cancelScroll', function(t) { t.preventDefault(), t.stopPropagation(); }), - Or(Nr(Nr(n)), 'handleEventDelta', function(t, e) { + Yn(er(er(n)), 'handleEventDelta', function(t, e) { var r = n.props, i = r.onBottomArrive, o = r.onBottomLeave, @@ -146072,25 +145451,25 @@ object-assign (n.isTop = !0)), g && n.cancelScroll(t); }), - Or(Nr(Nr(n)), 'onWheel', function(t) { + Yn(er(er(n)), 'onWheel', function(t) { n.handleEventDelta(t, t.deltaY); }), - Or(Nr(Nr(n)), 'onTouchStart', function(t) { + Yn(er(er(n)), 'onTouchStart', function(t) { n.touchStart = t.changedTouches[0].clientY; }), - Or(Nr(Nr(n)), 'onTouchMove', function(t) { + Yn(er(er(n)), 'onTouchMove', function(t) { var e = n.touchStart - t.changedTouches[0].clientY; n.handleEventDelta(t, e); }), - Or(Nr(Nr(n)), 'getScrollTarget', function(t) { + Yn(er(er(n)), 'getScrollTarget', function(t) { n.scrollTarget = t; }), n ); } return ( - Lr(e, t), - Cr(e, [ + Qn(e, t), + Xn(e, [ { key: 'componentDidMount', value: function() { @@ -146136,7 +145515,7 @@ object-assign key: 'render', value: function() { return u.a.createElement( - pi, + Lr, { innerRef: this.getScrollTarget }, this.props.children ); @@ -146146,28 +145525,28 @@ object-assign e ); })(s.Component), - Ai = (function(t) { + Ur = (function(t) { function e() { - return Ar(this, e), zr(this, Dr(e).apply(this, arguments)); + return qn(this, e), nr(this, Zn(e).apply(this, arguments)); } return ( - Lr(e, t), - Cr(e, [ + Qn(e, t), + Xn(e, [ { key: 'render', value: function() { var t = this.props, e = t.isEnabled, - n = Rr(t, ['isEnabled']); - return e ? u.a.createElement(ki, n) : this.props.children; + n = tr(t, ['isEnabled']); + return e ? u.a.createElement(Hr, n) : this.props.children; } } ]), e ); })(s.Component); - Or(Ai, 'defaultProps', { isEnabled: !0 }); - var Ti = function(t) { + Yn(Ur, 'defaultProps', { isEnabled: !0 }); + var qr = function(t) { var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] @@ -146194,7 +145573,7 @@ object-assign return 'Use left and right to toggle between focused values, press Backspace to remove the currently focused value'; } }, - Ci = function(t, e) { + Wr = function(t, e) { var n = e.value, r = e.isDisabled; if (n) @@ -146210,16 +145589,16 @@ object-assign ); } }, - Oi = function(t) { + Xr = function(t) { return !!t.isDisabled; }, - Pi = (function(t) { + Yr = (function(t) { function e() { - return Ar(this, e), zr(this, Dr(e).apply(this, arguments)); + return qn(this, e), nr(this, Zn(e).apply(this, arguments)); } return ( - Lr(e, t), - Cr(e, [ + Qn(e, t), + Xn(e, [ { key: 'render', value: function() { @@ -146234,7 +145613,7 @@ object-assign 'div', { className: r( - Object(br.a)(o('valueContainer', this.props)), + Object(In.a)(o('valueContainer', this.props)), { 'value-container': !0, 'value-container--is-multi': i, @@ -146251,19 +145630,19 @@ object-assign e ); })(s.Component), - Mi = function(t) { + $r = function(t) { var e = t.size, - n = Rr(t, ['size']); + n = tr(t, ['size']); return u.a.createElement( 'svg', - Pr( + $n( { height: e, width: e, viewBox: '0 0 20 20', 'aria-hidden': 'true', focusable: 'false', - className: Object(br.a)({ + className: Object(In.a)({ display: 'inline-block', fill: 'currentColor', lineHeight: 1, @@ -146275,27 +145654,27 @@ object-assign ) ); }, - Li = function(t) { + Kr = function(t) { return u.a.createElement( - Mi, - Pr({ size: 20 }, t), + $r, + $n({ size: 20 }, t), u.a.createElement('path', { d: 'M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z' }) ); }, - Di = function(t) { + Qr = function(t) { return u.a.createElement( - Mi, - Pr({ size: 20 }, t), + $r, + $n({ size: 20 }, t), u.a.createElement('path', { d: 'M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z' }) ); }, - ji = function(t) { + Zr = function(t) { var e = t.isFocused, n = t.theme, r = n.spacing.baseUnit, @@ -146309,15 +145688,15 @@ object-assign ':hover': { color: e ? i.neutral80 : i.neutral40 } }; }, - Ri = ji, - Ni = ji, - zi = !1, - Ii = function(t) { + Jr = Zr, + ti = Zr, + ei = !1, + ni = function(t) { var e = t.color, n = t.delay, r = t.offset; return u.a.createElement('span', { - className: Object(br.a)({ + className: Object(In.a)({ animationDuration: '1s', animationDelay: ''.concat(n, 'ms'), animationIterationCount: 'infinite', @@ -146333,7 +145712,7 @@ object-assign }) }); }, - Fi = function(t) { + ri = function(t) { var e = t.className, n = t.cx, r = t.getStyles, @@ -146343,30 +145722,30 @@ object-assign s = t.theme.colors, l = o ? s.neutral80 : s.neutral20; return ( - zi || - (Object(br.b)( + ei || + (Object(In.b)( '@keyframes ', 'react-select-loading-indicator', '{0%,80%,100%{opacity:0;}40%{opacity:1;}};' ), - (zi = !0)), + (ei = !0)), u.a.createElement( 'div', - Pr({}, i, { + $n({}, i, { className: n( - Object(br.a)(r('loadingIndicator', t)), + Object(In.a)(r('loadingIndicator', t)), { indicator: !0, 'loading-indicator': !0 }, e ) }), - u.a.createElement(Ii, { color: l, delay: 0, offset: a }), - u.a.createElement(Ii, { color: l, delay: 160, offset: !0 }), - u.a.createElement(Ii, { color: l, delay: 320, offset: !a }) + u.a.createElement(ni, { color: l, delay: 0, offset: a }), + u.a.createElement(ni, { color: l, delay: 160, offset: !0 }), + u.a.createElement(ni, { color: l, delay: 320, offset: !a }) ) ); }; - Fi.defaultProps = { size: 4 }; - var Vi = function(t) { + ri.defaultProps = { size: 4 }; + var ii = function(t) { return { label: 'input', background: 0, @@ -146378,20 +145757,20 @@ object-assign color: 'inherit' }; }, - Bi = function(t) { + oi = function(t) { var e = t.children, n = t.innerProps; return u.a.createElement('div', n, e); }, - Gi = Bi, - Hi = Bi, - Ui = (function(t) { + ai = oi, + si = oi, + ui = (function(t) { function e() { - return Ar(this, e), zr(this, Dr(e).apply(this, arguments)); + return qn(this, e), nr(this, Zn(e).apply(this, arguments)); } return ( - Lr(e, t), - Cr(e, [ + Qn(e, t), + Xn(e, [ { key: 'render', value: function() { @@ -146401,7 +145780,7 @@ object-assign return u.a.createElement( 'div', n, - e || u.a.createElement(Li, { size: 14 }) + e || u.a.createElement(Kr, { size: 14 }) ); } } @@ -146409,13 +145788,13 @@ object-assign e ); })(s.Component), - qi = (function(t) { + li = (function(t) { function e() { - return Ar(this, e), zr(this, Dr(e).apply(this, arguments)); + return qn(this, e), nr(this, Zn(e).apply(this, arguments)); } return ( - Lr(e, t), - Cr(e, [ + Qn(e, t), + Xn(e, [ { key: 'render', value: function() { @@ -146433,27 +145812,27 @@ object-assign d = r.Container, h = r.Label, p = r.Remove, - g = Mr( + g = Kn( { className: i( - Object(br.a)(a('multiValue', this.props)), + Object(In.a)(a('multiValue', this.props)), { 'multi-value': !0, 'multi-value--is-disabled': l }, n ) }, s ), - v = { + m = { className: i( - Object(br.a)(a('multiValueLabel', this.props)), + Object(In.a)(a('multiValueLabel', this.props)), { 'multi-value__label': !0 }, n ) }, - m = Mr( + v = Kn( { className: i( - Object(br.a)(a('multiValueRemove', this.props)), + Object(In.a)(a('multiValueRemove', this.props)), { 'multi-value__remove': !0 }, n ) @@ -146465,12 +145844,12 @@ object-assign { data: o, innerProps: g, selectProps: f }, u.a.createElement( h, - { data: o, innerProps: v, selectProps: f }, + { data: o, innerProps: m, selectProps: f }, e ), u.a.createElement(p, { data: o, - innerProps: m, + innerProps: v, selectProps: f }) ); @@ -146480,8 +145859,8 @@ object-assign e ); })(s.Component); - Or(qi, 'defaultProps', { cropWithEllipsis: !0 }); - var Wi = { + Yn(li, 'defaultProps', { cropWithEllipsis: !0 }); + var ci = { ClearIndicator: function(t) { var e = t.children, n = t.className, @@ -146490,14 +145869,14 @@ object-assign o = t.innerProps; return u.a.createElement( 'div', - Pr({}, o, { + $n({}, o, { className: r( - Object(br.a)(i('clearIndicator', t)), + Object(In.a)(i('clearIndicator', t)), { indicator: !0, 'clear-indicator': !0 }, n ) }), - e || u.a.createElement(Li, null) + e || u.a.createElement(Kr, null) ); }, Control: function(t) { @@ -146512,11 +145891,11 @@ object-assign c = t.menuIsOpen; return u.a.createElement( 'div', - Pr( + $n( { ref: s, className: n( - Object(br.a)(r('control', t)), + Object(In.a)(r('control', t)), { control: !0, 'control--is-disabled': o, @@ -146539,18 +145918,18 @@ object-assign o = t.innerProps; return u.a.createElement( 'div', - Pr({}, o, { + $n({}, o, { className: r( - Object(br.a)(i('dropdownIndicator', t)), + Object(In.a)(i('dropdownIndicator', t)), { indicator: !0, 'dropdown-indicator': !0 }, n ) }), - e || u.a.createElement(Di, null) + e || u.a.createElement(Qr, null) ); }, - DownChevron: Di, - CrossIcon: Li, + DownChevron: Qr, + CrossIcon: Kr, Group: function(t) { var e = t.children, n = t.className, @@ -146563,10 +145942,10 @@ object-assign c = t.selectProps; return u.a.createElement( 'div', - { className: r(Object(br.a)(i('group', t)), { group: !0 }, n) }, + { className: r(Object(In.a)(i('group', t)), { group: !0 }, n) }, u.a.createElement( o, - Pr({}, a, { selectProps: c, theme: l, getStyles: i, cx: r }), + $n({}, a, { selectProps: c, theme: l, getStyles: i, cx: r }), s ), u.a.createElement('div', null, e) @@ -146579,7 +145958,7 @@ object-assign i = t.theme, o = (t.selectProps, - Rr(t, [ + tr(t, [ 'className', 'cx', 'getStyles', @@ -146588,10 +145967,10 @@ object-assign ])); return u.a.createElement( 'div', - Pr( + $n( { className: n( - Object(br.a)(r('groupHeading', Mr({ theme: i }, o))), + Object(In.a)(r('groupHeading', Kn({ theme: i }, o))), { 'group-heading': !0 }, e ) @@ -146609,7 +145988,7 @@ object-assign 'div', { className: r( - Object(br.a)(i('indicatorsContainer', t)), + Object(In.a)(i('indicatorsContainer', t)), { indicators: !0 }, n ) @@ -146624,9 +146003,9 @@ object-assign i = t.innerProps; return u.a.createElement( 'span', - Pr({}, i, { + $n({}, i, { className: n( - Object(br.a)(r('indicatorSeparator', t)), + Object(In.a)(r('indicatorSeparator', t)), { 'indicator-separator': !0 }, e ) @@ -146643,7 +146022,7 @@ object-assign s = t.theme, l = (t.selectProps, - Rr(t, [ + tr(t, [ 'className', 'cx', 'getStyles', @@ -146655,14 +146034,14 @@ object-assign ])); return u.a.createElement( 'div', - { className: Object(br.a)(r('input', Mr({ theme: s }, l))) }, + { className: Object(In.a)(r('input', Kn({ theme: s }, l))) }, u.a.createElement( - Sr.a, - Pr( + Gn.a, + $n( { className: n(null, { input: !0 }, e), inputRef: i, - inputStyle: Vi(o), + inputStyle: ii(o), disabled: a }, l @@ -146670,7 +146049,7 @@ object-assign ) ); }, - LoadingIndicator: Fi, + LoadingIndicator: ri, Menu: function(t) { var e = t.children, n = t.className, @@ -146678,10 +146057,10 @@ object-assign i = t.getStyles, o = t.innerRef, a = t.innerProps, - s = r(Object(br.a)(i('menu', t)), { menu: !0 }, n); + s = r(Object(In.a)(i('menu', t)), { menu: !0 }, n); return u.a.createElement( 'div', - Pr({ className: s }, a, { ref: o }), + $n({ className: s }, a, { ref: o }), e ); }, @@ -146696,7 +146075,7 @@ object-assign 'div', { className: r( - Object(br.a)(i('menuList', t)), + Object(In.a)(i('menuList', t)), { 'menu-list': !0, 'menu-list--is-multi': o }, n ), @@ -146705,13 +146084,13 @@ object-assign e ); }, - MenuPortal: ri, - LoadingMessage: ni, - NoOptionsMessage: ei, - MultiValue: qi, - MultiValueContainer: Gi, - MultiValueLabel: Hi, - MultiValueRemove: Ui, + MenuPortal: xr, + LoadingMessage: _r, + NoOptionsMessage: br, + MultiValue: li, + MultiValueContainer: ai, + MultiValueLabel: si, + MultiValueRemove: ui, Option: function(t) { var e = t.children, n = t.className, @@ -146724,11 +146103,11 @@ object-assign c = t.innerProps; return u.a.createElement( 'div', - Pr( + $n( { ref: l, className: r( - Object(br.a)(i('option', t)), + Object(In.a)(i('option', t)), { option: !0, 'option--is-disabled': o, @@ -146751,10 +146130,10 @@ object-assign o = t.innerProps; return u.a.createElement( 'div', - Pr( + $n( { className: r( - Object(br.a)(i('placeholder', t)), + Object(In.a)(i('placeholder', t)), { placeholder: !0 }, n ) @@ -146774,10 +146153,10 @@ object-assign s = t.isRtl; return u.a.createElement( 'div', - Pr( + $n( { className: r( - Object(br.a)(i('container', t)), + Object(In.a)(i('container', t)), { '--is-disabled': a, '--is-rtl': s }, n ) @@ -146796,10 +146175,10 @@ object-assign a = t.innerProps; return u.a.createElement( 'div', - Pr( + $n( { className: r( - Object(br.a)(i('singleValue', t)), + Object(In.a)(i('singleValue', t)), { 'single-value': !0, 'single-value--is-disabled': o }, n ) @@ -146809,13 +146188,13 @@ object-assign e ); }, - ValueContainer: Pi + ValueContainer: Yr }, - Xi = function(t) { - return Mr({}, Wi, t.components); + fi = function(t) { + return Kn({}, ci, t.components); }, - Yi = { - clearIndicator: Ni, + di = { + clearIndicator: ti, container: function(t) { var e = t.isDisabled; return { @@ -146852,7 +146231,7 @@ object-assign '&:hover': { borderColor: n ? i.primary : i.neutral30 } }; }, - dropdownIndicator: Ri, + dropdownIndicator: Jr, group: function(t) { var e = t.theme.spacing; return { @@ -146930,7 +146309,7 @@ object-assign verticalAlign: 'middle' }; }, - loadingMessage: ti, + loadingMessage: yr, menu: function(t) { var e, n = t.placement, @@ -146939,25 +146318,25 @@ object-assign o = r.spacing, a = r.colors; return ( - Or( + Yn( (e = { label: 'menu' }), (function(t) { return t ? { bottom: 'top', top: 'bottom' }[t] : 'bottom'; })(n), '100%' ), - Or(e, 'backgroundColor', a.neutral0), - Or(e, 'borderRadius', i), - Or( + Yn(e, 'backgroundColor', a.neutral0), + Yn(e, 'borderRadius', i), + Yn( e, 'boxShadow', '0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)' ), - Or(e, 'marginBottom', o.menuGutter), - Or(e, 'marginTop', o.menuGutter), - Or(e, 'position', 'absolute'), - Or(e, 'width', '100%'), - Or(e, 'zIndex', 1), + Yn(e, 'marginBottom', o.menuGutter), + Yn(e, 'marginTop', o.menuGutter), + Yn(e, 'position', 'absolute'), + Yn(e, 'width', '100%'), + Yn(e, 'zIndex', 1), e ); }, @@ -147029,7 +146408,7 @@ object-assign ':hover': { backgroundColor: i.dangerLight, color: i.danger } }; }, - noOptionsMessage: Jr, + noOptionsMessage: vr, option: function(t) { var e = t.isDisabled, n = t.isFocused, @@ -147103,8 +146482,8 @@ object-assign }; } }; - var $i, - Qi = { + var hi, + pi = { borderRadius: 4, colors: { primary: '#2684FF', @@ -147127,36 +146506,36 @@ object-assign }, spacing: { baseUnit: 4, controlHeight: 38, menuGutter: 8 } }, - Ki = { + gi = { backspaceRemovesValue: !0, - blurInputOnSelect: Yr(), - captureMenuScroll: !Yr(), + blurInputOnSelect: dr(), + captureMenuScroll: !dr(), closeMenuOnSelect: !0, closeMenuOnScroll: !1, components: {}, controlShouldRenderValue: !0, escapeClearsValue: !1, filterOption: function(t, e) { - var n = Mr( + var n = Kn( { ignoreCase: !0, ignoreAccents: !0, - stringify: fi, + stringify: Or, trim: !0, matchFrom: 'any' }, - $i + hi ), r = n.ignoreCase, i = n.ignoreAccents, o = n.stringify, a = n.trim, s = n.matchFrom, - u = a ? ci(e) : e, - l = a ? ci(o(t)) : o(t); + u = a ? Cr(e) : e, + l = a ? Cr(o(t)) : o(t); return ( r && ((u = u.toLowerCase()), (l = l.toLowerCase())), - i && ((u = li(u)), (l = li(l))), + i && ((u = Tr(u)), (l = Tr(l))), 'start' === s ? l.substr(0, u.length) === u : l.indexOf(u) > -1 ); }, @@ -147174,7 +146553,7 @@ object-assign isMulti: !1, isRtl: !1, isSearchable: !0, - isOptionDisabled: Oi, + isOptionDisabled: Xr, loadingMessage: function() { return 'Loading...'; }, @@ -147211,12 +146590,12 @@ object-assign tabIndex: '0', tabSelectsValue: !0 }, - Zi = 1, - Ji = (function(t) { + mi = 1, + vi = (function(t) { function e(t) { var n; - Ar(this, e), - Or(Nr(Nr((n = zr(this, Dr(e).call(this, t))))), 'state', { + qn(this, e), + Yn(er(er((n = nr(this, Zn(e).call(this, t))))), 'state', { ariaLiveSelection: '', ariaLiveContext: '', focusedOption: null, @@ -147226,45 +146605,45 @@ object-assign menuOptions: { render: [], focusable: [] }, selectValue: [] }), - Or(Nr(Nr(n)), 'blockOptionHover', !1), - Or(Nr(Nr(n)), 'isComposing', !1), - Or(Nr(Nr(n)), 'clearFocusValueOnUpdate', !1), - Or(Nr(Nr(n)), 'commonProps', void 0), - Or(Nr(Nr(n)), 'components', void 0), - Or(Nr(Nr(n)), 'hasGroups', !1), - Or(Nr(Nr(n)), 'initialTouchX', 0), - Or(Nr(Nr(n)), 'initialTouchY', 0), - Or(Nr(Nr(n)), 'inputIsHiddenAfterUpdate', void 0), - Or(Nr(Nr(n)), 'instancePrefix', ''), - Or(Nr(Nr(n)), 'openAfterFocus', !1), - Or(Nr(Nr(n)), 'scrollToFocusedOptionOnUpdate', !1), - Or(Nr(Nr(n)), 'userIsDragging', void 0), - Or(Nr(Nr(n)), 'controlRef', null), - Or(Nr(Nr(n)), 'getControlRef', function(t) { + Yn(er(er(n)), 'blockOptionHover', !1), + Yn(er(er(n)), 'isComposing', !1), + Yn(er(er(n)), 'clearFocusValueOnUpdate', !1), + Yn(er(er(n)), 'commonProps', void 0), + Yn(er(er(n)), 'components', void 0), + Yn(er(er(n)), 'hasGroups', !1), + Yn(er(er(n)), 'initialTouchX', 0), + Yn(er(er(n)), 'initialTouchY', 0), + Yn(er(er(n)), 'inputIsHiddenAfterUpdate', void 0), + Yn(er(er(n)), 'instancePrefix', ''), + Yn(er(er(n)), 'openAfterFocus', !1), + Yn(er(er(n)), 'scrollToFocusedOptionOnUpdate', !1), + Yn(er(er(n)), 'userIsDragging', void 0), + Yn(er(er(n)), 'controlRef', null), + Yn(er(er(n)), 'getControlRef', function(t) { n.controlRef = t; }), - Or(Nr(Nr(n)), 'focusedOptionRef', null), - Or(Nr(Nr(n)), 'getFocusedOptionRef', function(t) { + Yn(er(er(n)), 'focusedOptionRef', null), + Yn(er(er(n)), 'getFocusedOptionRef', function(t) { n.focusedOptionRef = t; }), - Or(Nr(Nr(n)), 'menuListRef', null), - Or(Nr(Nr(n)), 'getMenuListRef', function(t) { + Yn(er(er(n)), 'menuListRef', null), + Yn(er(er(n)), 'getMenuListRef', function(t) { n.menuListRef = t; }), - Or(Nr(Nr(n)), 'inputRef', null), - Or(Nr(Nr(n)), 'getInputRef', function(t) { + Yn(er(er(n)), 'inputRef', null), + Yn(er(er(n)), 'getInputRef', function(t) { n.inputRef = t; }), - Or(Nr(Nr(n)), 'cacheComponents', function(t) { - n.components = Xi({ components: t }); + Yn(er(er(n)), 'cacheComponents', function(t) { + n.components = fi({ components: t }); }), - Or(Nr(Nr(n)), 'focus', n.focusInput), - Or(Nr(Nr(n)), 'blur', n.blurInput), - Or(Nr(Nr(n)), 'onChange', function(t, e) { + Yn(er(er(n)), 'focus', n.focusInput), + Yn(er(er(n)), 'blur', n.blurInput), + Yn(er(er(n)), 'onChange', function(t, e) { var r = n.props; - (0, r.onChange)(t, Mr({}, e, { name: r.name })); + (0, r.onChange)(t, Kn({}, e, { name: r.name })); }), - Or(Nr(Nr(n)), 'setValue', function(t) { + Yn(er(er(n)), 'setValue', function(t) { var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] @@ -147278,7 +146657,7 @@ object-assign (n.clearFocusValueOnUpdate = !0), n.onChange(t, { action: e, option: r }); }), - Or(Nr(Nr(n)), 'selectOption', function(t) { + Yn(er(er(n)), 'selectOption', function(t) { var e = n.props, r = e.blurInputOnSelect, i = e.isMulti, @@ -147306,7 +146685,7 @@ object-assign isDisabled: !0 } }) - : (n.setValue([].concat(Ir(o), [t]), 'select-option', t), + : (n.setValue([].concat(rr(o), [t]), 'select-option', t), n.announceAriaLiveSelection({ event: 'select-option', context: { value: n.getOptionLabel(t) } @@ -147324,7 +146703,7 @@ object-assign })); r && n.blurInput(); }), - Or(Nr(Nr(n)), 'removeValue', function(t) { + Yn(er(er(n)), 'removeValue', function(t) { var e = n.state.selectValue, r = n.getOptionValue(t); n.onChange( @@ -147339,11 +146718,11 @@ object-assign }), n.focusInput(); }), - Or(Nr(Nr(n)), 'clearValue', function() { + Yn(er(er(n)), 'clearValue', function() { var t = n.props.isMulti; n.onChange(t ? [] : null, { action: 'clear' }); }), - Or(Nr(Nr(n)), 'popValue', function() { + Yn(er(er(n)), 'popValue', function() { var t = n.state.selectValue, e = t[t.length - 1]; n.announceAriaLiveSelection({ @@ -147355,22 +146734,22 @@ object-assign removedValue: e }); }), - Or(Nr(Nr(n)), 'getOptionLabel', function(t) { + Yn(er(er(n)), 'getOptionLabel', function(t) { return n.props.getOptionLabel(t); }), - Or(Nr(Nr(n)), 'getOptionValue', function(t) { + Yn(er(er(n)), 'getOptionValue', function(t) { return n.props.getOptionValue(t); }), - Or(Nr(Nr(n)), 'getStyles', function(t, e) { - var r = Yi[t](e); + Yn(er(er(n)), 'getStyles', function(t, e) { + var r = di[t](e); r.boxSizing = 'border-box'; var i = n.props.styles[t]; return i ? i(r, e) : r; }), - Or(Nr(Nr(n)), 'getElementId', function(t) { + Yn(er(er(n)), 'getElementId', function(t) { return ''.concat(n.instancePrefix, '-').concat(t); }), - Or(Nr(Nr(n)), 'getActiveDescendentId', function() { + Yn(er(er(n)), 'getActiveDescendentId', function() { var t = n.props.menuIsOpen, e = n.state, r = e.menuOptions, @@ -147381,29 +146760,29 @@ object-assign return a && a.key; } }), - Or(Nr(Nr(n)), 'announceAriaLiveSelection', function(t) { + Yn(er(er(n)), 'announceAriaLiveSelection', function(t) { var e = t.event, r = t.context; - n.setState({ ariaLiveSelection: Ci(e, r) }); + n.setState({ ariaLiveSelection: Wr(e, r) }); }), - Or(Nr(Nr(n)), 'announceAriaLiveContext', function(t) { + Yn(er(er(n)), 'announceAriaLiveContext', function(t) { var e = t.event, r = t.context; n.setState({ - ariaLiveContext: Ti( + ariaLiveContext: qr( e, - Mr({}, r, { label: n.props['aria-label'] }) + Kn({}, r, { label: n.props['aria-label'] }) ) }); }), - Or(Nr(Nr(n)), 'onMenuMouseDown', function(t) { + Yn(er(er(n)), 'onMenuMouseDown', function(t) { 0 === t.button && (t.stopPropagation(), t.preventDefault(), n.focusInput()); }), - Or(Nr(Nr(n)), 'onMenuMouseMove', function(t) { + Yn(er(er(n)), 'onMenuMouseMove', function(t) { n.blockOptionHover = !1; }), - Or(Nr(Nr(n)), 'onControlMouseDown', function(t) { + Yn(er(er(n)), 'onControlMouseDown', function(t) { var e = n.props.openMenuOnClick; n.state.isFocused ? n.props.menuIsOpen @@ -147412,7 +146791,7 @@ object-assign : (e && (n.openAfterFocus = !0), n.focusInput()), 'INPUT' !== t.target.tagName && t.preventDefault(); }), - Or(Nr(Nr(n)), 'onDropdownIndicatorMouseDown', function(t) { + Yn(er(er(n)), 'onDropdownIndicatorMouseDown', function(t) { if ( !( (t && 'mousedown' === t.type && 0 !== t.button) || @@ -147430,7 +146809,7 @@ object-assign t.stopPropagation(); } }), - Or(Nr(Nr(n)), 'onClearIndicatorMouseDown', function(t) { + Yn(er(er(n)), 'onClearIndicatorMouseDown', function(t) { (t && 'mousedown' === t.type && 0 !== t.button) || (n.clearValue(), t.stopPropagation(), @@ -147439,29 +146818,29 @@ object-assign return n.focusInput(); })); }), - Or(Nr(Nr(n)), 'onScroll', function(t) { + Yn(er(er(n)), 'onScroll', function(t) { 'boolean' == typeof n.props.closeMenuOnScroll ? t.target instanceof HTMLElement && - Hr(t.target) && + ur(t.target) && n.props.onMenuClose() : 'function' == typeof n.props.closeMenuOnScroll && n.props.closeMenuOnScroll(t) && n.props.onMenuClose(); }), - Or(Nr(Nr(n)), 'onCompositionStart', function() { + Yn(er(er(n)), 'onCompositionStart', function() { n.isComposing = !0; }), - Or(Nr(Nr(n)), 'onCompositionEnd', function() { + Yn(er(er(n)), 'onCompositionEnd', function() { n.isComposing = !1; }), - Or(Nr(Nr(n)), 'onTouchStart', function(t) { + Yn(er(er(n)), 'onTouchStart', function(t) { var e = t.touches.item(0); e && ((n.initialTouchX = e.clientX), (n.initialTouchY = e.clientY), (n.userIsDragging = !1)); }), - Or(Nr(Nr(n)), 'onTouchMove', function(t) { + Yn(er(er(n)), 'onTouchMove', function(t) { var e = t.touches.item(0); if (e) { var r = Math.abs(e.clientX - n.initialTouchX), @@ -147469,7 +146848,7 @@ object-assign n.userIsDragging = r > 5 || i > 5; } }), - Or(Nr(Nr(n)), 'onTouchEnd', function(t) { + Yn(er(er(n)), 'onTouchEnd', function(t) { n.userIsDragging || (n.controlRef && !n.controlRef.contains(t.target) && @@ -147479,22 +146858,22 @@ object-assign (n.initialTouchX = 0), (n.initialTouchY = 0)); }), - Or(Nr(Nr(n)), 'onControlTouchEnd', function(t) { + Yn(er(er(n)), 'onControlTouchEnd', function(t) { n.userIsDragging || n.onControlMouseDown(t); }), - Or(Nr(Nr(n)), 'onClearIndicatorTouchEnd', function(t) { + Yn(er(er(n)), 'onClearIndicatorTouchEnd', function(t) { n.userIsDragging || n.onClearIndicatorMouseDown(t); }), - Or(Nr(Nr(n)), 'onDropdownIndicatorTouchEnd', function(t) { + Yn(er(er(n)), 'onDropdownIndicatorTouchEnd', function(t) { n.userIsDragging || n.onDropdownIndicatorMouseDown(t); }), - Or(Nr(Nr(n)), 'handleInputChange', function(t) { + Yn(er(er(n)), 'handleInputChange', function(t) { var e = t.currentTarget.value; (n.inputIsHiddenAfterUpdate = !1), n.onInputChange(e, { action: 'input-change' }), n.onMenuOpen(); }), - Or(Nr(Nr(n)), 'onInputFocus', function(t) { + Yn(er(er(n)), 'onInputFocus', function(t) { var e = n.props, r = e.isSearchable, i = e.isMulti; @@ -147509,7 +146888,7 @@ object-assign n.openMenu('first'), (n.openAfterFocus = !1); }), - Or(Nr(Nr(n)), 'onInputBlur', function(t) { + Yn(er(er(n)), 'onInputBlur', function(t) { n.menuListRef && n.menuListRef.contains(document.activeElement) ? n.inputRef.focus() : (n.props.onBlur && n.props.onBlur(t), @@ -147517,18 +146896,18 @@ object-assign n.onMenuClose(), n.setState({ focusedValue: null, isFocused: !1 })); }), - Or(Nr(Nr(n)), 'onOptionHover', function(t) { + Yn(er(er(n)), 'onOptionHover', function(t) { n.blockOptionHover || n.state.focusedOption === t || n.setState({ focusedOption: t }); }), - Or(Nr(Nr(n)), 'shouldHideSelectedOptions', function() { + Yn(er(er(n)), 'shouldHideSelectedOptions', function() { var t = n.props, e = t.hideSelectedOptions, r = t.isMulti; return void 0 === e ? r : e; }), - Or(Nr(Nr(n)), 'onKeyDown', function(t) { + Yn(er(er(n)), 'onKeyDown', function(t) { var e = n.props, r = e.isMulti, i = e.backspaceRemovesValue, @@ -147543,7 +146922,7 @@ object-assign h = n.state, p = h.focusedOption, g = h.focusedValue, - v = h.selectValue; + m = h.selectValue; if ( !(u || ('function' == typeof c && (c(t), t.defaultPrevented))) ) { @@ -147572,7 +146951,7 @@ object-assign !l || !f || !p || - (d && n.isOptionSelected(p, v)) + (d && n.isOptionSelected(p, m)) ) return; n.selectOption(p); @@ -147631,19 +147010,19 @@ object-assign } }); var r = t.value; - (n.cacheComponents = Object(yr.a)(n.cacheComponents, si).bind( - Nr(Nr(n)) + (n.cacheComponents = Object(Nn.a)(n.cacheComponents, kr).bind( + er(er(n)) )), n.cacheComponents(t.components), (n.instancePrefix = - 'react-select-' + (n.props.instanceId || ++Zi)); - var i = Gr(r), + 'react-select-' + (n.props.instanceId || ++mi)); + var i = sr(r), o = n.buildMenuOptions(t, i); return (n.state.menuOptions = o), (n.state.selectValue = i), n; } return ( - Lr(e, t), - Cr(e, [ + Qn(e, t), + Xn(e, [ { key: 'componentDidMount', value: function() { @@ -147667,7 +147046,7 @@ object-assign (this.cacheComponents(t.components), t.value !== r || t.options !== n || t.inputValue !== i) ) { - var o = Gr(t.value), + var o = sr(t.value), a = this.buildMenuOptions(t, o), s = this.getNextFocusedValue(o), u = this.getNextFocusedOption(a.focusable); @@ -147708,7 +147087,7 @@ object-assign (i = n.getBoundingClientRect()), (o = n.offsetHeight / 3), i.bottom + o > r.bottom - ? qr( + ? cr( e, Math.min( n.offsetTop + n.clientHeight - e.offsetHeight + o, @@ -147716,7 +147095,7 @@ object-assign ) ) : i.top - o < r.top && - qr(e, Math.max(n.offsetTop - o, 0))), + cr(e, Math.max(n.offsetTop - o, 0))), (this.scrollToFocusedOptionOnUpdate = !1); } }, @@ -147863,7 +147242,7 @@ object-assign }), this.announceAriaLiveContext({ event: 'menu', - context: { isDisabled: Oi(o[a]) } + context: { isDisabled: Xr(o[a]) } }); } } @@ -147873,9 +147252,9 @@ object-assign value: function() { return this.props.theme ? 'function' == typeof this.props.theme - ? this.props.theme(Qi) - : Mr({}, Qi, this.props.theme) - : Qi; + ? this.props.theme(pi) + : Kn({}, pi, this.props.theme) + : pi; } }, { @@ -147893,7 +147272,7 @@ object-assign l = this.state.selectValue, c = this.hasValue(); return { - cx: Br.bind(null, o), + cx: ar.bind(null, o), clearValue: t, getStyles: e, getValue: function() { @@ -148228,11 +147607,11 @@ object-assign s = this.state.inputIsHidden, l = r || this.getElementId('input'); if (!n) - return u.a.createElement(hi, { + return u.a.createElement(Mr, { id: l, innerRef: this.getInputRef, onBlur: this.onInputBlur, - onChange: Fr, + onChange: ir, onFocus: this.onInputFocus, readOnly: !0, disabled: e, @@ -148250,7 +147629,7 @@ object-assign p = f.selectProps; return u.a.createElement( a, - Pr( + $n( { autoCapitalize: 'none', autoComplete: 'off', @@ -148294,16 +147673,16 @@ object-assign h = c.isMulti, p = c.inputValue, g = c.placeholder, - v = this.state, - m = v.selectValue, - y = v.focusedValue, - b = v.isFocused; + m = this.state, + v = m.selectValue, + y = m.focusedValue, + b = m.isFocused; if (!this.hasValue() || !f) return p ? null : u.a.createElement( s, - Pr({}, l, { + $n({}, l, { key: 'placeholder', isDisabled: d, isFocused: b @@ -148311,11 +147690,11 @@ object-assign g ); if (h) - return m.map(function(e) { + return v.map(function(e) { var a = e === y; return u.a.createElement( n, - Pr({}, l, { + $n({}, l, { components: { Container: r, Label: i, Remove: o }, isFocused: a, isDisabled: d, @@ -148337,10 +147716,10 @@ object-assign ); }); if (p) return null; - var _ = m[0]; + var _ = v[0]; return u.a.createElement( a, - Pr({}, l, { data: _, isDisabled: d }), + $n({}, l, { data: _, isDisabled: d }), this.formatOptionLabel(_, 'value') ); } @@ -148363,7 +147742,7 @@ object-assign }; return u.a.createElement( t, - Pr({}, e, { innerProps: a, isFocused: o }) + $n({}, e, { innerProps: a, isFocused: o }) ); } }, @@ -148379,7 +147758,7 @@ object-assign if (!t || !i) return null; return u.a.createElement( t, - Pr({}, e, { + $n({}, e, { innerProps: { 'aria-hidden': 'true' }, isDisabled: r, isFocused: o @@ -148399,7 +147778,7 @@ object-assign o = this.state.isFocused; return u.a.createElement( n, - Pr({}, r, { isDisabled: i, isFocused: o }) + $n({}, r, { isDisabled: i, isFocused: o }) ); } }, @@ -148418,7 +147797,7 @@ object-assign }; return u.a.createElement( t, - Pr({}, e, { innerProps: i, isDisabled: n, isFocused: r }) + $n({}, e, { innerProps: i, isDisabled: n, isFocused: r }) ); } }, @@ -148440,8 +147819,8 @@ object-assign h = d.focusedOption, p = d.menuOptions, g = this.props, - v = g.captureMenuScroll, - m = g.inputValue, + m = g.captureMenuScroll, + v = g.inputValue, y = g.isLoading, b = g.loadingMessage, _ = g.minMenuHeight, @@ -148463,7 +147842,7 @@ object-assign (e.innerRef = n ? t.getFocusedOptionRef : void 0), u.a.createElement( c, - Pr({}, f, e, { isFocused: n }), + $n({}, f, e, { isFocused: n }), t.formatOptionLabel(e.data, 'menu') ) ); @@ -148472,11 +147851,11 @@ object-assign M = p.render.map(function(e) { if ('group' === e.type) { e.type; - var i = Rr(e, ['type']), + var i = tr(e, ['type']), o = ''.concat(e.key, '-heading'); return u.a.createElement( n, - Pr({}, f, i, { + $n({}, f, i, { Heading: r, headingProps: { id: o }, label: t.formatGroupLabel(e.data) @@ -148489,13 +147868,13 @@ object-assign if ('option' === e.type) return L(e); }); else if (y) { - var D = b({ inputValue: m }); - if (null === D) return null; - M = u.a.createElement(s, f, D); - } else { - var j = C({ inputValue: m }); + var j = b({ inputValue: v }); if (null === j) return null; - M = u.a.createElement(l, f, j); + M = u.a.createElement(s, f, j); + } else { + var D = C({ inputValue: v }); + if (null === D) return null; + M = u.a.createElement(l, f, D); } var R = { minMenuHeight: _, @@ -148504,14 +147883,14 @@ object-assign menuPosition: E, menuShouldScrollIntoView: T }, - N = u.a.createElement(Kr, Pr({}, f, R), function(e) { + z = u.a.createElement(gr, $n({}, f, R), function(e) { var n = e.ref, r = e.placerProps, a = r.placement, s = r.maxHeight; return u.a.createElement( i, - Pr({}, f, R, { + $n({}, f, R, { innerRef: n, innerProps: { onMouseDown: t.onMenuMouseDown, @@ -148521,14 +147900,14 @@ object-assign placement: a }), u.a.createElement( - Ai, - { isEnabled: v, onTopArrive: O, onBottomArrive: P }, + Ur, + { isEnabled: m, onTopArrive: O, onBottomArrive: P }, u.a.createElement( - Ei, + Gr, { isEnabled: A }, u.a.createElement( o, - Pr({}, f, { + $n({}, f, { innerRef: t.getMenuListRef, isLoading: y, maxHeight: s @@ -148542,15 +147921,15 @@ object-assign return k || 'fixed' === E ? u.a.createElement( a, - Pr({}, f, { + $n({}, f, { appendTo: k, controlElement: this.controlRef, menuPlacement: S, menuPosition: E }), - N + z ) - : N; + : z; } }, { @@ -148607,7 +147986,7 @@ object-assign value: function() { return this.state.isFocused ? u.a.createElement( - di, + Pr, { 'aria-live': 'assertive' }, u.a.createElement( 'p', @@ -148642,7 +148021,7 @@ object-assign d = (this.commonProps = this.getCommonProps()); return u.a.createElement( r, - Pr({}, d, { + $n({}, d, { className: a, innerProps: { id: s, onKeyDown: this.onKeyDown }, isDisabled: l, @@ -148651,7 +148030,7 @@ object-assign this.renderLiveRegion(), u.a.createElement( e, - Pr({}, d, { + $n({}, d, { innerRef: this.getControlRef, innerProps: { onMouseDown: this.onControlMouseDown, @@ -148663,13 +148042,13 @@ object-assign }), u.a.createElement( i, - Pr({}, d, { isDisabled: l }), + $n({}, d, { isDisabled: l }), this.renderPlaceholderOrValue(), this.renderInput() ), u.a.createElement( n, - Pr({}, d, { isDisabled: l }), + $n({}, d, { isDisabled: l }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), @@ -148685,19 +148064,19 @@ object-assign e ); })(s.Component); - Or(Ji, 'defaultProps', Ki); - var to = { + Yn(vi, 'defaultProps', gi); + var yi = { defaultInputValue: '', defaultMenuIsOpen: !1, defaultValue: null }, - eo = function(t) { + bi = function(t) { var e, n; return ( (n = e = (function(e) { function n() { var t, e; - Ar(this, n); + qn(this, n); for ( var r = arguments.length, i = new Array(r), o = 0; o < r; @@ -148705,19 +148084,19 @@ object-assign ) i[o] = arguments[o]; return ( - Or( - Nr( - Nr( - (e = zr( + Yn( + er( + er( + (e = nr( this, - (t = Dr(n)).call.apply(t, [this].concat(i)) + (t = Zn(n)).call.apply(t, [this].concat(i)) )) ) ), 'select', void 0 ), - Or(Nr(Nr(e)), 'state', { + Yn(er(er(e)), 'state', { inputValue: void 0 !== e.props.inputValue ? e.props.inputValue @@ -148731,25 +148110,25 @@ object-assign ? e.props.value : e.props.defaultValue }), - Or(Nr(Nr(e)), 'onChange', function(t, n) { + Yn(er(er(e)), 'onChange', function(t, n) { e.callProp('onChange', t, n), e.setState({ value: t }); }), - Or(Nr(Nr(e)), 'onInputChange', function(t, n) { + Yn(er(er(e)), 'onInputChange', function(t, n) { var r = e.callProp('onInputChange', t, n); e.setState({ inputValue: void 0 !== r ? r : t }); }), - Or(Nr(Nr(e)), 'onMenuOpen', function() { + Yn(er(er(e)), 'onMenuOpen', function() { e.callProp('onMenuOpen'), e.setState({ menuIsOpen: !0 }); }), - Or(Nr(Nr(e)), 'onMenuClose', function() { + Yn(er(er(e)), 'onMenuClose', function() { e.callProp('onMenuClose'), e.setState({ menuIsOpen: !1 }); }), e ); } return ( - Lr(n, e), - Cr(n, [ + Qn(n, e), + Xn(n, [ { key: 'focus', value: function() { @@ -148796,14 +148175,14 @@ object-assign (n.defaultInputValue, n.defaultMenuIsOpen, n.defaultValue, - Rr(n, [ + tr(n, [ 'defaultInputValue', 'defaultMenuIsOpen', 'defaultValue' ])); return u.a.createElement( t, - Pr({}, r, { + $n({}, r, { ref: function(t) { e.select = t; }, @@ -148822,28 +148201,28 @@ object-assign n ); })(s.Component)), - Or(e, 'defaultProps', to), + Yn(e, 'defaultProps', yi), n ); }, - no = { cacheOptions: !1, defaultOptions: !1, filterOption: null }, - ro = function(t) { + _i = { cacheOptions: !1, defaultOptions: !1, filterOption: null }, + xi = function(t) { var e, n; return ( (n = e = (function(e) { function n(t) { var e; return ( - Ar(this, n), - Or( - Nr(Nr((e = zr(this, Dr(n).call(this))))), + qn(this, n), + Yn( + er(er((e = nr(this, Zn(n).call(this))))), 'select', void 0 ), - Or(Nr(Nr(e)), 'lastRequest', void 0), - Or(Nr(Nr(e)), 'mounted', !1), - Or(Nr(Nr(e)), 'optionsCache', {}), - Or(Nr(Nr(e)), 'handleInputChange', function(t, n) { + Yn(er(er(e)), 'lastRequest', void 0), + Yn(er(er(e)), 'mounted', !1), + Yn(er(er(e)), 'optionsCache', {}), + Yn(er(er(e)), 'handleInputChange', function(t, n) { var r = e.props, i = r.cacheOptions, o = (function(t, e, n) { @@ -148911,8 +148290,8 @@ object-assign ); } return ( - Lr(n, e), - Cr(n, [ + Qn(n, e), + Xn(n, [ { key: 'componentDidMount', value: function() { @@ -148981,7 +148360,7 @@ object-assign value: function() { var e = this, n = this.props, - r = (n.loadOptions, Rr(n, ['loadOptions'])), + r = (n.loadOptions, tr(n, ['loadOptions'])), i = this.state, o = i.defaultOptions, a = i.inputValue, @@ -148991,7 +148370,7 @@ object-assign f = i.passEmptyOptions ? [] : a && l ? c : o || []; return u.a.createElement( t, - Pr({}, r, { + $n({}, r, { ref: function(t) { e.select = t; }, @@ -149006,12 +148385,12 @@ object-assign n ); })(s.Component)), - Or(e, 'defaultProps', no), + Yn(e, 'defaultProps', _i), n ); }, - io = - (ro(eo(Ji)), + wi = + (xi(bi(vi)), function() { var t = arguments.length > 0 && void 0 !== arguments[0] @@ -149023,7 +148402,7 @@ object-assign i = String(e.label).toLowerCase(); return r === n || i === n; }), - oo = Mr( + Si = Kn( { allowCreateWhileLoading: !1, createOptionPosition: 'last' }, { formatCreateLabel: function(t) { @@ -149033,10 +148412,10 @@ object-assign return !( !t || e.some(function(e) { - return io(t, e); + return wi(t, e); }) || n.some(function(e) { - return io(t, e); + return wi(t, e); }) ); }, @@ -149045,19 +148424,19 @@ object-assign } } ), - ao = function(t) { + Ei = function(t) { var e, n; return ( (n = e = (function(e) { function n(t) { var e; - Ar(this, n), - Or( - Nr(Nr((e = zr(this, Dr(n).call(this, t))))), + qn(this, n), + Yn( + er(er((e = nr(this, Zn(n).call(this, t))))), 'select', void 0 ), - Or(Nr(Nr(e)), 'onChange', function(t, n) { + Yn(er(er(e)), 'onChange', function(t, n) { var r = e.props, i = r.getNewOptionData, o = r.inputValue, @@ -149073,15 +148452,15 @@ object-assign else { var d = i(o, o), h = { action: 'create-option' }; - s(a ? [].concat(Ir(Gr(l)), [d]) : d, h); + s(a ? [].concat(rr(sr(l)), [d]) : d, h); } }); var r = t.options || []; return (e.state = { newOption: void 0, options: r }), e; } return ( - Lr(n, e), - Cr(n, [ + Qn(n, e), + Xn(n, [ { key: 'componentWillReceiveProps', value: function(t) { @@ -149095,15 +148474,15 @@ object-assign u = t.value, l = t.options || [], c = this.state.newOption; - (c = s(o, Gr(u), l) ? i(o, r(o)) : void 0), + (c = s(o, sr(u), l) ? i(o, r(o)) : void 0), this.setState({ newOption: c, options: (!e && a) || !c ? l : 'first' === n - ? [c].concat(Ir(l)) - : [].concat(Ir(l), [c]) + ? [c].concat(rr(l)) + : [].concat(rr(l), [c]) }); } }, @@ -149123,11 +148502,11 @@ object-assign key: 'render', value: function() { var e = this, - n = Pr({}, this.props), + n = $n({}, this.props), r = this.state.options; return u.a.createElement( t, - Pr({}, n, { + $n({}, n, { ref: function(t) { e.select = t; }, @@ -149141,27 +148520,27 @@ object-assign n ); })(s.Component)), - Or(e, 'defaultProps', oo), + Yn(e, 'defaultProps', Si), n ); }, - so = - (eo(ao(Ji)), - ro(eo(ao(Ji))), + ki = + (bi(Ei(vi)), + xi(bi(Ei(vi))), function(t) { return function(e) { e.in, e.onExited, e.appear, e.enter, e.exit; - var n = Rr(e, ['in', 'onExited', 'appear', 'enter', 'exit']); + var n = tr(e, ['in', 'onExited', 'appear', 'enter', 'exit']); return u.a.createElement(t, n); }; }), - uo = function(t) { + Ai = function(t) { var e = t.component, n = t.duration, r = void 0 === n ? 1 : n, i = t.in, o = - (t.onExited, Rr(t, ['component', 'duration', 'in', 'onExited'])), + (t.onExited, tr(t, ['component', 'duration', 'in', 'onExited'])), a = { entering: { opacity: 0 }, entered: { opacity: 1, transition: 'opacity '.concat(r, 'ms') }, @@ -149169,40 +148548,41 @@ object-assign exited: { opacity: 0 } }; return u.a.createElement( - Er.Transition, + Hn.Transition, { mountOnEnter: !0, unmountOnExit: !0, in: i, timeout: r }, function(t) { - var n = { style: Mr({}, a[t]) }; - return u.a.createElement(e, Pr({ innerProps: n }, o)); + var n = { style: Kn({}, a[t]) }; + return u.a.createElement(e, $n({ innerProps: n }, o)); } ); }, - lo = (function(t) { + Ti = 260, + Ci = (function(t) { function e() { var t, n; - Ar(this, e); + qn(this, e); for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) i[o] = arguments[o]; return ( - Or( - Nr( - Nr( - (n = zr(this, (t = Dr(e)).call.apply(t, [this].concat(i)))) + Yn( + er( + er( + (n = nr(this, (t = Zn(e)).call.apply(t, [this].concat(i)))) ) ), 'duration', - 260 + Ti ), - Or(Nr(Nr(n)), 'rafID', void 0), - Or(Nr(Nr(n)), 'state', { width: 'auto' }), - Or(Nr(Nr(n)), 'transition', { + Yn(er(er(n)), 'rafID', void 0), + Yn(er(er(n)), 'state', { width: 'auto' }), + Yn(er(er(n)), 'transition', { exiting: { width: 0, transition: 'width '.concat(n.duration, 'ms ease-out') }, exited: { width: 0 } }), - Or(Nr(Nr(n)), 'getWidth', function(t) { + Yn(er(er(n)), 'getWidth', function(t) { t && isNaN(n.state.width) && (n.rafID = window.requestAnimationFrame(function() { @@ -149210,18 +148590,18 @@ object-assign n.setState({ width: e }); })); }), - Or(Nr(Nr(n)), 'getStyle', function(t) { + Yn(er(er(n)), 'getStyle', function(t) { return { overflow: 'hidden', whiteSpace: 'nowrap', width: t }; }), - Or(Nr(Nr(n)), 'getTransition', function(t) { + Yn(er(er(n)), 'getTransition', function(t) { return n.transition[t]; }), n ); } return ( - Lr(e, t), - Cr(e, [ + Qn(e, t), + Xn(e, [ { key: 'componentWillUnmount', value: function() { @@ -149237,7 +148617,7 @@ object-assign r = e.in, i = this.state.width; return u.a.createElement( - Er.Transition, + Hn.Transition, { enter: !1, mountOnEnter: !0, @@ -149246,7 +148626,7 @@ object-assign timeout: this.duration }, function(e) { - var r = Mr({}, t.getStyle(i), t.getTransition(e)); + var r = Kn({}, t.getStyle(i), t.getTransition(e)); return u.a.createElement( 'div', { ref: t.getWidth, style: r }, @@ -149260,78 +148640,78 @@ object-assign e ); })(s.Component), - co = function(t) { + Oi = function(t) { return function(e) { var n = e.in, r = e.onExited, - i = Rr(e, ['in', 'onExited']); + i = tr(e, ['in', 'onExited']); return u.a.createElement( - lo, + Ci, { in: n, onExited: r }, - u.a.createElement(t, Pr({ cropWithEllipsis: n }, i)) + u.a.createElement(t, $n({ cropWithEllipsis: n }, i)) ); }; }, - fo = function(t) { + Pi = function(t) { return function(e) { return u.a.createElement( - uo, - Pr({ component: t, duration: e.isMulti ? 260 : 1 }, e) + Ai, + $n({ component: t, duration: e.isMulti ? Ti : 1 }, e) ); }; }, - ho = function(t) { + Mi = function(t) { return function(e) { - return u.a.createElement(uo, Pr({ component: t }, e)); + return u.a.createElement(Ai, $n({ component: t }, e)); }; }, - po = function(t) { + Li = function(t) { return function(e) { return u.a.createElement( - Er.TransitionGroup, - Pr({ component: t }, e) + Hn.TransitionGroup, + $n({ component: t }, e) ); }; }, - go = function() { + ji = function() { var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, - e = Xi({ components: t }), + e = fi({ components: t }), n = e.Input, r = e.MultiValue, i = e.Placeholder, o = e.SingleValue, a = e.ValueContainer, - s = Rr(e, [ + s = tr(e, [ 'Input', 'MultiValue', 'Placeholder', 'SingleValue', 'ValueContainer' ]); - return Mr( + return Kn( { - Input: so(n), - MultiValue: co(r), - Placeholder: fo(i), - SingleValue: ho(o), - ValueContainer: po(a) + Input: ki(n), + MultiValue: Oi(r), + Placeholder: Pi(i), + SingleValue: Mi(o), + ValueContainer: Li(a) }, s ); }, - vo = go(), - mo = - (vo.Input, - vo.MultiValue, - vo.Placeholder, - vo.SingleValue, - vo.ValueContainer, - Object(yr.a)(go, si), - eo(Ji)), - yo = ie( + Di = ji(), + Ri = + (Di.Input, + Di.MultiValue, + Di.Placeholder, + Di.SingleValue, + Di.ValueContainer, + Object(Nn.a)(ji, kr), + bi(vi)), + zi = pe( function(t) { return { sortingValue: t.app.sortingValue }; }, @@ -149349,11 +148729,11 @@ object-assign return u.a.createElement( 'div', { className: 'top-toolbar' }, - 'editor' === e && u.a.createElement(mr, null), + 'editor' === e && u.a.createElement(zn, null), u.a.createElement( 'div', { className: 'search' }, - u.a.createElement(or, { icon: 'search', size: 'sm' }), + u.a.createElement(An.a, { icon: 'search', size: 'sm' }), u.a.createElement('input', { type: 'text', placeholder: 'Search', @@ -149365,7 +148745,7 @@ object-assign u.a.createElement( 'div', { className: 'sorting-select' }, - u.a.createElement(mo, { + u.a.createElement(Ri, { value: n, onChange: function(e) { return t.changeSorting(e); @@ -149380,7 +148760,7 @@ object-assign ) ); }), - bo = ie(null, { + Ni = pe(null, { deleteDashboardItem: function(t, e) { return function(n, r, i) { var o = i.keenClient, @@ -149392,11 +148772,11 @@ object-assign .concat(a, '/projects/') .concat(o.projectId(), '/dashboards/') .concat(t), - On({ method: 'delete' }, s) + un({ method: 'delete' }, s) ) .then(function(r) { 204 === r.status && - (e && n(Mn(u)), + (e && n(cn(u)), n({ type: 'DELETE_DASHBOARD_ITEM', id: t })); }) .catch(function(t) { @@ -149420,12 +148800,12 @@ object-assign { onClick: function() { confirm('Do You want to delete this dashboard?') && - (nn.hide(), e(n, r)); + (Re.a.hide(), e(n, r)); } }, - u.a.createElement(or, { icon: 'trash-alt', size: 'sm' }) + u.a.createElement(An.a, { icon: 'trash-alt', size: 'sm' }) ), - u.a.createElement(nn, { + u.a.createElement(Re.a, { id: 'enrich', place: 'top', type: 'dark', @@ -149436,36 +148816,32 @@ object-assign }) ); }), - _o = 'en', - xo = {}; - function wo() { - return _o; + Ii = 'en', + Fi = {}; + function Vi() { + return Ii; } - function So(t) { - return xo[t]; + function Bi(t) { + return Fi[t]; } - function Eo(t) { + function Gi(t) { var e = - arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, - n = e.localeMatcher || 'lookup'; - switch (n) { + (arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}) + .localeMatcher || 'lookup'; + switch (e) { case 'lookup': case 'best fit': - return ko(t); + return Hi(t); default: - throw new RangeError('Invalid "localeMatcher" option: '.concat(n)); + throw new RangeError('Invalid "localeMatcher" option: '.concat(e)); } } - function ko(t) { - if (So(t)) return t; + function Hi(t) { + if (Bi(t)) return t; for (var e = t.split('-'); t.length > 1; ) - if ((e.pop(), So((t = e.join('-'))))) return t; + if ((e.pop(), Bi((t = e.join('-'))))) return t; } - function Ao(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - } - function To(t, e) { + function Ui(t, e) { for (var n = 0; n < e.length; n++) { var r = e[n]; (r.enumerable = r.enumerable || !1), @@ -149474,7 +148850,7 @@ object-assign Object.defineProperty(t, r.key, r); } } - function Co(t, e, n) { + function qi(t, e, n) { return ( e in t ? Object.defineProperty(t, e, { @@ -149487,7 +148863,7 @@ object-assign t ); } - var Oo = [ + var Wi = [ 'second', 'minute', 'hour', @@ -149497,9 +148873,9 @@ object-assign 'quarter', 'year' ], - Po = ['auto', 'always'], - Mo = ['long', 'short', 'narrow'], - Lo = (function() { + Xi = ['auto', 'always'], + Yi = ['long', 'short', 'narrow'], + $i = (function() { function t() { var e = arguments.length > 0 && void 0 !== arguments[0] @@ -149509,34 +148885,37 @@ object-assign arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; - Ao(this, t), - Co(this, 'numeric', 'always'), - Co(this, 'style', 'long'), - Co(this, 'localeMatcher', 'lookup'); + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + })(this, t), + qi(this, 'numeric', 'always'), + qi(this, 'style', 'long'), + qi(this, 'localeMatcher', 'lookup'); var r = n.numeric, i = n.style, o = n.localeMatcher; if (r) { - if (Po.indexOf(r) < 0) + if (Xi.indexOf(r) < 0) throw new RangeError('Invalid "numeric" option: '.concat(r)); this.numeric = r; } if (i) { - if (Mo.indexOf(i) < 0) + if (Yi.indexOf(i) < 0) throw new RangeError('Invalid "style" option: '.concat(i)); this.style = i; } if ( (o && (this.localeMatcher = o), 'string' == typeof e && (e = [e]), - e.push(wo()), + e.push(Vi()), (this.locale = t.supportedLocalesOf(e, { localeMatcher: this.localeMatcher })[0]), !this.locale) ) throw new TypeError('No supported locale was found'); - (this.locale = Eo(this.locale, { + (this.locale = Gi(this.locale, { localeMatcher: this.localeMatcher })), 'undefined' != typeof Intl && @@ -149582,9 +148961,9 @@ object-assign { key: 'getRule', value: function(t, e) { - if (Oo.indexOf(e) < 0) + if (Wi.indexOf(e) < 0) throw new RangeError('Unknown time unit: '.concat(e, '.')); - var n = So(this.locale)[this.style][e]; + var n = Bi(this.locale)[this.style][e]; if ('auto' === this.numeric) if (-2 === t || -1 === t) { var r = @@ -149597,7 +148976,7 @@ object-assign } else if (0 === t && n.current) return n.current; var o = n[t <= 0 ? 'past' : 'future']; if ('string' == typeof o) return o; - var a = So(this.locale).quantify, + var a = Bi(this.locale).quantify, s = a && a(Math.abs(t)); return o[(s = s || 'other')] || o.other; } @@ -149620,13 +148999,13 @@ object-assign }; } } - ]) && To(e.prototype, n), - r && To(e, r), + ]) && Ui(e.prototype, n), + r && Ui(e, r), t ); })(); - function Do(t) { - return (Do = + function Ki(t) { + return (Ki = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(t) { return typeof t; @@ -149640,7 +149019,7 @@ object-assign : typeof t; })(t); } - function jo(t, e) { + function Qi(t, e) { for (var n = 0; n < e.length; n++) { var r = e[n]; (r.enumerable = r.enumerable || !1), @@ -149649,25 +149028,25 @@ object-assign Object.defineProperty(t, r.key, r); } } - (Lo.supportedLocalesOf = function(t) { + ($i.supportedLocalesOf = function(t) { var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; return ( 'string' == typeof t && (t = [t]), t.filter(function(t) { - return Eo(t, e); + return Gi(t, e); }) ); }), - (Lo.addLocale = function(t) { + ($i.addLocale = function(t) { if (!t) throw new Error('No locale data passed'); - xo[t.locale] = t; + Fi[t.locale] = t; }), - (Lo.setDefaultLocale = function(t) { - _o = t; + ($i.setDefaultLocale = function(t) { + Ii = t; }), - (Lo.getDefaultLocale = wo); - var Ro = (function() { + ($i.getDefaultLocale = Vi); + var Zi = (function() { function t() { !(function(t, e) { if (!(t instanceof e)) @@ -149702,7 +149081,7 @@ object-assign n[r] = arguments[r]; for (var i = 0; i < n.length; i++) { var o = n[i]; - if ('object' !== Do(t)) return; + if ('object' !== Ki(t)) return; t = t[o]; } return t; @@ -149723,18 +149102,18 @@ object-assign a++ ) { var s = e[a]; - 'object' !== Do(o[s]) && (o[s] = {}), (o = o[s]); + 'object' !== Ki(o[s]) && (o[s] = {}), (o = o[s]); } return (o[i] = r); } } - ]) && jo(e.prototype, n), - r && jo(e, r), + ]) && Qi(e.prototype, n), + r && Qi(e, r), t ); })(), - No = 86400; - function zo(t, e) { + Ji = 86400; + function to(t, e) { var n = t, r = Array.isArray(n), i = 0; @@ -149751,10 +149130,10 @@ object-assign if (a.unit === e) return a; } } - function Io(t) { + function eo(t) { return t instanceof Date ? t : new Date(t); } - var Fo = [ + var no = [ { factor: 1, unit: 'now' }, { threshold: 1, threshold_for_now: 45, factor: 1, unit: 'second' }, { threshold: 45, factor: 60, unit: 'minute' }, @@ -149766,13 +149145,13 @@ object-assign factor: 3600, unit: 'hour' }, - { threshold: 73800, factor: No, unit: 'day' }, - { threshold: 475200, factor: 7 * No, unit: 'week' }, + { threshold: 73800, factor: Ji, unit: 'day' }, + { threshold: 475200, factor: 7 * Ji, unit: 'week' }, { threshold: 2116800, factor: 2630016, unit: 'month' }, { threshold: 27615168, factor: 31556952, unit: 'year' } ]; - function Vo(t) { - return (Vo = + function ro(t) { + return (ro = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(t) { return typeof t; @@ -149786,60 +149165,64 @@ object-assign : typeof t; })(t); } - function Bo(t, e, n) { + function io(t, e, n) { var r = - arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : Fo; - if (0 !== (r = Uo(r, n)).length) { - var i = Ho(t, e, r), + arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : no; + if ( + 0 !== + (r = (function(t, e) { + return t.filter(function(t) { + var n = t.unit; + return !n || e.indexOf(n) >= 0; + }); + })(r, n)).length + ) { + var i = (function t(e, n, r) { + var i = + arguments.length > 3 && void 0 !== arguments[3] + ? arguments[3] + : 0; + if ( + Math.abs(e) < + (function(t, e, n, r) { + var i; + t && + (t.id || t.unit) && + (i = e['threshold_for_'.concat(t.id || t.unit)]); + void 0 === i && (i = e.threshold); + 'function' == typeof i && (i = i(n, r)); + if (t && 'number' != typeof i) { + var o = ro(i); + throw new Error( + 'Each step of a gradation must have a threshold defined except for the first one. Got "' + .concat(i, '", ') + .concat(o, '. Step: ') + .concat(JSON.stringify(e)) + ); + } + return i; + })(r[i - 1], r[i], n, e < 0) + ) + return i - 1; + if (i === r.length - 1) return i; + return t(e, n, r, i + 1); + })(t, e, r), o = r[i]; if (-1 !== i) { - if (o.granularity) { - var a = - Math.round(Math.abs(t) / o.factor / o.granularity) * - o.granularity; - if (0 === a && i > 0) return r[i - 1]; - } + if (o.granularity) + if ( + 0 === + Math.round(Math.abs(t) / o.factor / o.granularity) * + o.granularity && + i > 0 + ) + return r[i - 1]; return o; } } } - function Go(t, e, n, r) { - var i; - if ( - (t && - (t.id || t.unit) && - (i = e['threshold_for_'.concat(t.id || t.unit)]), - void 0 === i && (i = e.threshold), - 'function' == typeof i && (i = i(n, r)), - t && 'number' != typeof i) - ) { - var o = Vo(i); - throw new Error( - 'Each step of a gradation must have a threshold defined except for the first one. Got "' - .concat(i, '", ') - .concat(o, '. Step: ') - .concat(JSON.stringify(e)) - ); - } - return i; - } - function Ho(t, e, n) { - var r = - arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : 0; - return Math.abs(t) < Go(n[r - 1], n[r], e, t < 0) - ? r - 1 - : r === n.length - 1 - ? r - : Ho(t, e, n, r + 1); - } - function Uo(t, e) { - return t.filter(function(t) { - var n = t.unit; - return !n || e.indexOf(n) >= 0; - }); - } - function qo(t) { - return (qo = + function oo(t) { + return (oo = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(t) { return typeof t; @@ -149853,52 +149236,28 @@ object-assign : typeof t; })(t); } - function Wo(t, e) { - var n = t, - r = Array.isArray(n), - i = 0; - for (n = r ? n : n[Symbol.iterator](); ; ) { - var o; - if (r) { - if (i >= n.length) break; - o = n[i++]; - } else { - if ((i = n.next()).done) break; - o = i.value; - } - var a = o; - if (e(a)) return a; - for (var s = a.split('-'); s.length > 1; ) - if ((s.pop(), e((a = s.join('-'))))) return a; - } - throw new Error( - 'No locale data has been registered for any of the locales: '.concat( - t.join(', ') - ) - ); - } - function Xo() { + function ao() { return ( - 'object' === ('undefined' == typeof Intl ? 'undefined' : qo(Intl)) && + 'object' === ('undefined' == typeof Intl ? 'undefined' : oo(Intl)) && 'function' == typeof Intl.DateTimeFormat ); } - var Yo = { - gradation: Fo, + var so = { + gradation: no, flavour: ['long-convenient', 'long'], units: ['now', 'minute', 'hour', 'day', 'week', 'month', 'year'] }, - $o = [ + uo = [ { factor: 1, unit: 'now' }, { threshold: 0.5, factor: 1, unit: 'second' }, { threshold: 59.5, factor: 60, unit: 'minute' }, { threshold: 3570, factor: 3600, unit: 'hour' }, - { threshold: 84600, factor: No, unit: 'day' }, - { threshold: 561600, factor: 7 * No, unit: 'week' }, + { threshold: 84600, factor: Ji, unit: 'day' }, + { threshold: 561600, factor: 7 * Ji, unit: 'week' }, { threshold: 2116800, factor: 2630016, unit: 'month' }, { threshold: 30245184, factor: 31556952, unit: 'year' } ]; - function Qo(t, e, n) { + function lo(t, e, n) { return ( e in t ? Object.defineProperty(t, e, { @@ -149911,8 +149270,8 @@ object-assign t ); } - var Ko = {}, - Zo = { + var co = {}, + fo = { gradation: [ (function(t) { for (var e = 1; e < arguments.length; e++) { @@ -149925,24 +149284,24 @@ object-assign }) )), r.forEach(function(e) { - Qo(t, e, n[e]); + lo(t, e, n[e]); }); } return t; - })({}, zo($o, 'minute'), { threshold: 45 }), - zo($o, 'hour'), + })({}, to(uo, 'minute'), { threshold: 45 }), + to(uo, 'hour'), { threshold: 84600, format: function(t, e) { - if (Xo()) + if (ao()) return ( - Ko[e] || (Ko[e] = {}), - Ko[e].this_year || - (Ko[e].this_year = new Intl.DateTimeFormat(e, { + co[e] || (co[e] = {}), + co[e].this_year || + (co[e].this_year = new Intl.DateTimeFormat(e, { month: 'short', day: 'numeric' })), - Ko[e].this_year.format(Io(t)) + co[e].this_year.format(eo(t)) ); } }, @@ -149955,33 +149314,33 @@ object-assign 1e3; }, format: function(t, e) { - if (Xo()) + if (ao()) return ( - Ko[e] || (Ko[e] = {}), - Ko[e].other || - (Ko[e].other = new Intl.DateTimeFormat(e, { + co[e] || (co[e] = {}), + co[e].other || + (co[e].other = new Intl.DateTimeFormat(e, { year: 'numeric', month: 'short', day: 'numeric' })), - Ko[e].other.format(Io(t)) + co[e].other.format(eo(t)) ); } } ], flavour: ['tiny', 'short-time', 'narrow', 'short'] }, - Jo = { - gradation: Fo, + ho = { + gradation: no, flavour: 'long-time', units: ['now', 'minute', 'hour', 'day', 'week', 'month', 'year'] }, - ta = {}; - function ea(t) { - return ta[t]; + po = {}; + function go(t) { + return po[t]; } - function na(t) { - return (na = + function mo(t) { + return (mo = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(t) { return typeof t; @@ -149995,11 +149354,7 @@ object-assign : typeof t; })(t); } - function ra(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - } - function ia(t, e) { + function vo(t, e) { for (var n = 0; n < e.length; n++) { var r = e[n]; (r.enumerable = r.enumerable || !1), @@ -150008,17 +149363,43 @@ object-assign Object.defineProperty(t, r.key, r); } } - var oa = (function() { + var yo = (function() { function t() { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : []; - ra(this, t), + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + })(this, t), 'string' == typeof e && (e = [e]), - (this.locale = Wo(e.concat(Lo.getDefaultLocale()), ea)), + (this.locale = (function(t, e) { + var n = t, + r = Array.isArray(n), + i = 0; + for (n = r ? n : n[Symbol.iterator](); ; ) { + var o; + if (r) { + if (i >= n.length) break; + o = n[i++]; + } else { + if ((i = n.next()).done) break; + o = i.value; + } + var a = o; + if (e(a)) return a; + for (var s = a.split('-'); s.length > 1; ) + if ((s.pop(), e((a = s.join('-'))))) return a; + } + throw new Error( + 'No locale data has been registered for any of the locales: '.concat( + t.join(', ') + ) + ); + })(e.concat($i.getDefaultLocale()), go)), 'undefined' != typeof Intl && Intl.NumberFormat && (this.numberFormat = new Intl.NumberFormat(this.locale)), - (this.relativeTimeFormatCache = new Ro()); + (this.relativeTimeFormatCache = new Zi()); } var e, n, r; return ( @@ -150030,19 +149411,19 @@ object-assign var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] - : Yo; + : so; if ('string' == typeof e) switch (e) { case 'twitter': - e = Zo; + e = fo; break; case 'time': - e = Jo; + e = ho; break; default: - e = Yo; + e = so; } - var n = aa(t), + var n = bo(t), r = n.date, i = n.time, o = this.getLocaleData(e.flavour), @@ -150060,7 +149441,7 @@ object-assign }); if (void 0 !== c) return c; } - var f = sa(s, e.units); + var f = _o(s, e.units); if (0 === f.length) return ( console.error( @@ -150073,26 +149454,26 @@ object-assign ), '' ); - var d = Bo(l, u, f, e.gradation); + var d = io(l, u, f, e.gradation); if (!d) return ''; if (d.format) return d.format(r || i, this.locale); var h = d.unit, p = d.factor, g = d.granularity, - v = Math.abs(l) / p; - if ((g && (v = Math.round(v / g) * g), 'now' === h)) - return ua(s, -1 * Math.sign(l)); + m = Math.abs(l) / p; + if ((g && (m = Math.round(m / g) * g), 'now' === h)) + return xo(s, -1 * Math.sign(l)); switch (a) { case 'long': case 'short': case 'narrow': return this.getFormatter(a).format( - -1 * Math.sign(l) * Math.round(v), + -1 * Math.sign(l) * Math.round(m), h ); default: return this.formatValue( - -1 * Math.sign(l) * Math.round(v), + -1 * Math.sign(l) * Math.round(m), h, s ); @@ -150115,7 +149496,7 @@ object-assign if ('string' == typeof r) return r; var i = r[t <= 0 ? 'past' : 'future'] || r; if ('string' == typeof i) return i; - var o = ea(this.locale).quantify, + var o = go(this.locale).quantify, a = o && o(Math.abs(t)); return i[(a = a || 'other')] || i.other; } @@ -150136,7 +149517,7 @@ object-assign this.relativeTimeFormatCache.put( this.locale, t, - new Lo(this.locale, { style: t }) + new $i(this.locale, { style: t }) ) ); } @@ -150148,7 +149529,7 @@ object-assign arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [], - e = ea(this.locale); + e = go(this.locale); 'string' == typeof t && (t = [t]); var n = (t = t.concat('long')), r = Array.isArray(n), @@ -150167,26 +149548,26 @@ object-assign } } } - ]) && ia(e.prototype, n), - r && ia(e, r), + ]) && vo(e.prototype, n), + r && vo(e, r), t ); })(); - function aa(t) { + function bo(t) { if ( t.constructor === Date || - ('object' === na((e = t)) && 'function' == typeof e.getTime) + ('object' === mo((e = t)) && 'function' == typeof e.getTime) ) return { date: t, time: t.getTime() }; var e; if ('number' == typeof t) return { time: t }; throw new Error( 'Unsupported relative time formatter input: ' - .concat(na(t), ', ') + .concat(mo(t), ', ') .concat(t) ); } - function sa(t, e) { + function _o(t, e) { var n = Object.keys(t); return ( e && @@ -150200,7 +149581,7 @@ object-assign n ); } - function ua(t, e) { + function xo(t, e) { return t.now ? 'string' == typeof t.now ? t.now @@ -150209,109 +149590,42 @@ object-assign : t.now.future : t.second.current; } - (oa.getDefaultLocale = Lo.getDefaultLocale), - (oa.setDefaultLocale = Lo.setDefaultLocale), - (oa.addLocale = function(t) { + (yo.getDefaultLocale = $i.getDefaultLocale), + (yo.setDefaultLocale = $i.setDefaultLocale), + (yo.addLocale = function(t) { !(function(t) { if (!t) throw new Error('[javascript-time-ago] No locale data passed.'); - ta[t.locale] = t; + po[t.locale] = t; })(t), - Lo.addLocale(t); - }), - (oa.locale = oa.addLocale); - var la = Object(d.oneOfType)([d.number, d.func]), - ca = Object(d.arrayOf)( - Object(d.oneOfType)([ - Object(d.shape)({ - unit: d.string.isRequired, - factor: d.number, - granularity: d.number, - threshold: la + $i.addLocale(t); + }), + (yo.locale = yo.addLocale); + var wo = Object(p.oneOfType)([p.number, p.func]), + So = Object(p.arrayOf)( + Object(p.oneOfType)([ + Object(p.shape)({ + unit: p.string.isRequired, + factor: p.number, + granularity: p.number, + threshold: wo }), - Object(d.shape)({ format: d.func.isRequired, threshold: la }) + Object(p.shape)({ format: p.func.isRequired, threshold: wo }) ]) ), - fa = Object(d.oneOfType)([ - d.string, - Object(d.shape)({ - gradation: ca, - units: Object(d.arrayOf)(d.string), - flavour: Object(d.oneOfType)([ - d.string, - Object(d.arrayOf)(d.string) + Eo = Object(p.oneOfType)([ + p.string, + Object(p.shape)({ + gradation: So, + units: Object(p.arrayOf)(p.string), + flavour: Object(p.oneOfType)([ + p.string, + Object(p.arrayOf)(p.string) ]), - custom: d.func + custom: p.func }) ]), - da = new Ro(); - function ha(t, e) { - if (!Xo()) - return function(t) { - return t.toString(); - }; - var n = (function(t) { - var e = t.toString(); - if (pa[e]) return pa[e]; - return (pa[e] = (function(t) { - if (Xo()) return Intl.DateTimeFormat.supportedLocalesOf(t)[0]; - })(t)); - })(t), - r = JSON.stringify(e), - i = - da.get(String(n), r) || - da.put(String(n), r, new Intl.DateTimeFormat(n, e)); - return function(t) { - return i.format(t); - }; - } - var pa = {}; - var ga = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - }; - function va(t) { - return t instanceof Date || ma(t); - } - function ma(t) { - return ( - 'object' === (void 0 === t ? 'undefined' : ga(t)) && - 'function' == typeof t.getTime - ); - } - var ya = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }, - ba = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function(t) { - return typeof t; - } - : function(t) { - return t && - 'function' == typeof Symbol && - t.constructor === Symbol && - t !== Symbol.prototype - ? 'symbol' - : typeof t; - }, - _a = (function() { + ko = (function() { function t(t, e) { for (var n = 0; n < e.length; n++) { var r = e[n]; @@ -150325,217 +149639,295 @@ object-assign return n && t(e.prototype, n), r && t(e, r), e; }; })(); - var xa = u.a.PureComponent || u.a.Component, - wa = 36e5, - Sa = 24 * wa, - Ea = [ - { interval: 6e4 }, - { threshold: wa, interval: 6e5 }, - { threshold: 12 * wa, interval: 12e5 }, - { threshold: Sa, interval: 3 * wa }, - { threshold: 7 * Sa, interval: 6 * wa }, - { threshold: 2592e6, interval: 5 * Sa }, - { threshold: 7776e6, interval: 10 * Sa }, - { threshold: 31536e6, interval: 2592e6 } - ], - ka = (function(t) { - function e(t) { + var Ao = (function() { + function t(e) { + var n = this; !(function(t, e) { if (!(t instanceof e)) throw new TypeError('Cannot call a class as a function'); - })(this, e); - var n = (function(t, e) { - if (!t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return !e || ('object' != typeof e && 'function' != typeof e) - ? t - : e; - })(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); - if ( - ((n.timeAgo = new oa(n.getPreferredLocales())), - 'undefined' != typeof window) - ) { - var r = n.props.verboseDateFormat; - n.formatVerboseDate = ha(n.getPreferredLocales(), r); - } - return n; + })(this, t), + (this.subscribers = []), + (this.trigger = function(t) { + var e = n.subscribers, + r = Array.isArray(e), + i = 0; + for (e = r ? e : e[Symbol.iterator](); ; ) { + var o; + if (r) { + if (i >= e.length) break; + o = e[i++]; + } else { + if ((i = e.next()).done) break; + o = i.value; + } + o(); + } + n.schedule(); + }), + (this.period = e); } return ( - (function(t, e) { - if ('function' != typeof e && null !== e) - throw new TypeError( - 'Super expression must either be null or a function, not ' + - typeof e - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { - value: t, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - e && - (Object.setPrototypeOf - ? Object.setPrototypeOf(t, e) - : (t.__proto__ = e)); - })(e, t), - _a(e, [ + ko(t, [ { - key: 'componentDidMount', + key: 'start', value: function() { - this.props.tick && this.scheduleNextTick(); + this.scheduled || this.schedule(); } }, { - key: 'componentWillUnmount', + key: 'schedule', value: function() { - clearTimeout(this.autoUpdateTimer); + this.scheduled = setTimeout(this.trigger, this.period); } }, { - key: 'scheduleNextTick', + key: 'stop', value: function() { - var t = this; - this.autoUpdateTimer = setTimeout(function() { - t.forceUpdate(), t.scheduleNextTick(); - }, this.getNextAutoUpdateDelay()); + clearTimeout(this.scheduled), (this.scheduled = void 0); } }, { - key: 'getNextAutoUpdateDelay', - value: function() { - var t = this.props, - e = t.date, - n = t.timeStyle, - r = t.updateInterval; - if ('object' === (void 0 === n ? 'undefined' : ba(n))) - return r; - var i = (function(t) { - return va(t) ? t.getTime() : t; - })(e), - o = Date.now(), - a = Math.abs(o - i), - s = void 0, - u = Ea, - l = Array.isArray(u), - c = 0; - for (u = l ? u : u[Symbol.iterator](); ; ) { - var f; - if (l) { - if (c >= u.length) break; - f = u[c++]; - } else { - if ((c = u.next()).done) break; - f = c.value; + key: 'add', + value: function(t) { + var e = this; + return ( + this.subscribers.indexOf(t) < 0 && this.subscribers.push(t), + 1 === this.subscribers.length && this.start(), + function() { + return e.remove(t); } - var d = f, - h = d.interval, - p = d.threshold; - (p && a < p) || (s = h); - } - return Math.min(s, 2147483647); + ); } }, { - key: 'render', - value: function() { - var t = this.props, - e = t.date, - n = t.timeStyle, - r = t.tooltip, - i = t.container, - o = - (t.locale, - t.locales, - t.formatVerboseDate, - t.verboseDateFormat, - t.updateInterval, - t.tick, - (function(t, e) { - var n = {}; - for (var r in t) - e.indexOf(r) >= 0 || - (Object.prototype.hasOwnProperty.call(t, r) && - (n[r] = t[r])); - return n; - })(t, [ - 'date', - 'timeStyle', - 'tooltip', - 'container', - 'locale', - 'locales', - 'formatVerboseDate', - 'verboseDateFormat', - 'updateInterval', - 'tick' - ])), - a = (function(t) { - return va(t) ? t : new Date(t); - })(e), - s = - 'undefined' == typeof window - ? void 0 - : this.getVerboseDate(a), - l = u.a.createElement( - 'time', - ya( - { dateTime: a.toISOString(), title: r ? s : void 0 }, - o - ), - this.timeAgo.format(a, n) - ); - return i - ? u.a.createElement(i, ya({ verboseDate: s }, o), l) - : l; + key: 'remove', + value: function(t) { + this.subscribers.indexOf(t) >= 0 && + this.subscribers.splice(this.subscribers.indexOf(t), 1), + 0 === this.subscribers.length && this.stop(); } }, { - key: 'getPreferredLocales', + key: 'destroy', value: function() { - var t = this.props.locale, - e = this.props.locales; - return t && (e = [t]), e.concat(oa.getDefaultLocale()); - } - }, - { - key: 'getVerboseDate', - value: function(t) { - var e = this.props.formatVerboseDate; - return e ? e(Ta(t)) : this.formatVerboseDate(Ta(t)); + this.stop(), (this.subscribers = []); } } ]), - e - ); - })(xa), - Aa = ka; - function Ta(t) { - if (t.constructor === Date || ma(t)) return t; - if ('number' == typeof t) return new Date(t); - throw new Error( - 'Unsupported react-time-ago input: ' + - (void 0 === t ? 'undefined' : ba(t)) + - ', ' + t - ); + ); + })(), + To = new Zi(); + function Co(t, e) { + if (!ao()) + return function(t) { + return t.toString(); + }; + var n = (function(t) { + var e = t.toString(); + if (Oo[e]) return Oo[e]; + return (Oo[e] = (function(t) { + if (ao()) return Intl.DateTimeFormat.supportedLocalesOf(t)[0]; + })(t)); + })(t), + r = JSON.stringify(e), + i = + To.get(String(n), r) || + To.put(String(n), r, new Intl.DateTimeFormat(n, e)); + return function(t) { + return i.format(t); + }; } - (ka.propTypes = { - date: h.a.oneOfType([h.a.instanceOf(Date), h.a.number]).isRequired, - locale: h.a.string, - locales: h.a.arrayOf(h.a.string), - timeStyle: fa, - tooltip: h.a.bool.isRequired, - formatVerboseDate: h.a.func, - verboseDateFormat: h.a.object, - updateInterval: h.a.number, - tick: h.a.bool, - container: h.a.func + var Oo = {}; + var Po = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function(t) { + return typeof t; + } + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t; + }, + Mo = + Object.assign || + function(t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); + } + return t; + }, + Lo = (function() { + function t(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + return function(e, n, r) { + return n && t(e.prototype, n), r && t(e, r), e; + }; + })(); + var jo = (function(t) { + function e(t) { + !(function(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + })(this, e); + var n = (function(t, e) { + if (!t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return !e || ('object' != typeof e && 'function' != typeof e) + ? t + : e; + })(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); + if ( + ((n.timeAgo = new yo(n.getPreferredLocales())), + 'undefined' != typeof window) + ) { + var r = n.props.verboseDateFormat; + n.formatVerboseDate = Co(n.getPreferredLocales(), r); + } + return n; + } + return ( + (function(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + typeof e + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { + value: t, + enumerable: !1, + writable: !0, + configurable: !0 + } + })), + e && + (Object.setPrototypeOf + ? Object.setPrototypeOf(t, e) + : (t.__proto__ = e)); + })(e, t), + Lo(e, [ + { + key: 'componentDidMount', + value: function() { + var t = this, + e = this.props, + n = e.tick, + r = e.updateInterval; + n && + (window._react_time_ago_updater || + (window._react_time_ago_updater = new Ao(r)), + (this.stopAutoupdate = window._react_time_ago_updater.add( + function() { + return t.forceUpdate(); + } + ))); + } + }, + { + key: 'componentWillUnmount', + value: function() { + this.stopAutoupdate && this.stopAutoupdate(); + } + }, + { + key: 'render', + value: function() { + var t = this.props, + e = t.date, + n = t.timeStyle, + r = t.tooltip, + i = t.container, + o = + (t.locale, + t.locales, + t.formatVerboseDate, + t.verboseDateFormat, + t.updateInterval, + t.tick, + (function(t, e) { + var n = {}; + for (var r in t) + e.indexOf(r) >= 0 || + (Object.prototype.hasOwnProperty.call(t, r) && + (n[r] = t[r])); + return n; + })(t, [ + 'date', + 'timeStyle', + 'tooltip', + 'container', + 'locale', + 'locales', + 'formatVerboseDate', + 'verboseDateFormat', + 'updateInterval', + 'tick' + ])), + a = (function(t) { + if (t instanceof Date) return t; + if ('number' == typeof t) return new Date(t); + })(e), + s = + 'undefined' == typeof window + ? void 0 + : this.getVerboseDate(a), + l = u.a.createElement( + 'time', + Mo({ dateTime: a.toISOString(), title: r ? s : void 0 }, o), + this.timeAgo.format(a, n) + ); + return i + ? u.a.createElement(i, Mo({ verboseDate: s }, o), l) + : l; + } + }, + { + key: 'getPreferredLocales', + value: function() { + var t = this.props.locale, + e = this.props.locales; + return t && (e = [t]), (e = e.concat(yo.getDefaultLocale())); + } + }, + { + key: 'getVerboseDate', + value: function(t) { + var e = this.props.formatVerboseDate; + return e ? e(Ro(t)) : this.formatVerboseDate(Ro(t)); + } + } + ]), + e + ); + })(u.a.PureComponent || u.a.Component); + (jo.propTypes = { + date: g.a.oneOfType([g.a.instanceOf(Date), g.a.number]).isRequired, + locale: g.a.string, + locales: g.a.arrayOf(g.a.string), + timeStyle: Eo, + tooltip: g.a.bool.isRequired, + formatVerboseDate: g.a.func, + verboseDateFormat: g.a.object, + updateInterval: g.a.number, + tick: g.a.bool, + container: g.a.func }), - (ka.defaultProps = { + (jo.defaultProps = { locales: [], tooltip: !0, verboseDateFormat: { @@ -150549,9 +149941,19 @@ object-assign }, updateInterval: 6e4, tick: !0 - }), - (ka.default = ka); - var Ca = function(t) { + }); + var Do = jo; + function Ro(t) { + if (t.constructor === Date) return t; + if ('number' == typeof t) return new Date(t); + throw new Error( + 'Unsupported react-time-ago input: ' + + (void 0 === t ? 'undefined' : Po(t)) + + ', ' + + t + ); + } + var zo = function(t) { var e = t.title, n = t.id, r = t.version, @@ -150562,21 +149964,21 @@ object-assign 'div', { className: 'dashboard-list-item' }, u.a.createElement( - pt, + ht, { to: a }, u.a.createElement( 'div', { className: 'dashboard-list-item-box' }, e, - u.a.createElement(Aa, { date: new Date(i) }) + u.a.createElement(Do, { date: new Date(i) }) ) ), - 'editor' === r && u.a.createElement(bo, { id: n, is_public: o }) + 'editor' === r && u.a.createElement(Ni, { id: n, is_public: o }) ); }, - Oa = n(12), - Pa = n.n(Oa), - Ma = ie( + No = n(16), + Io = n.n(No), + Fo = pe( function(t) { var e = t.app; return { @@ -150587,7 +149989,7 @@ object-assign }; }, { - addDashboardItem: Pn, + addDashboardItem: ln, loadDummyDashboards: function() { return { type: 'LOAD_DUMMY_DASHBOARDS' }; } @@ -150612,7 +150014,7 @@ object-assign return ( Object(s.useEffect)(function() { n && !c.length && o('My first dashboard'), - Pa()(e, c) || + Io()(e, c) || (c = e.filter(function(t) { return ( '' === r || @@ -150624,14 +150026,14 @@ object-assign u.a.createElement( 'div', { className: 'dashboard-builder container' }, - u.a.createElement(yo, { version: i }), + u.a.createElement(zi, { version: i }), c.length ? c.map(function(t, e) { var n = t.title, r = t.id, o = t.last_modified_date, a = t.is_public; - return u.a.createElement(Ca, { + return u.a.createElement(zo, { key: r, id: r, title: n, @@ -150658,28 +150060,28 @@ object-assign u.a.createElement( 'span', { className: 'loading' }, - u.a.createElement(or, { icon: 'spinner', size: '1x' }) + u.a.createElement(An.a, { icon: 'spinner', size: '1x' }) ) ) ) ) ); }), - La = ie(null, { loadDashboards: Dn })(function(t) { + Vo = pe(null, { loadDashboards: dn })(function(t) { return ( Object(s.useEffect)(function() { t.loadDashboards(); }, []), - u.a.createElement(Ma, { + u.a.createElement(Fo, { version: 'viewer', keenWebHost: t.keenWebHost }) ); }), - Da = n(155), - ja = n.n(Da), - Ra = n(156), - Na = ie( + Bo = n(162), + Go = n.n(Bo), + Ho = n(163), + Uo = pe( function(t) { var e = t.app; return { @@ -150689,15 +150091,15 @@ object-assign }; }, { - saveDashboard: Nn, + saveDashboard: gn, hideSavedDashboardMessage: function() { return { type: 'HIDE_SAVED_DASHBOARD_MESSAGE' }; }, - toggleDashboardsMenu: Gn, + toggleDashboardsMenu: xn, makeDashboardPublicAndSave: function(t) { return function(e, n) { var r = t; - t.is_public || (e(zn()), (r = n().dashboardInfo)), e(Nn(r)); + t.is_public || (e(mn()), (r = n().dashboardInfo)), e(gn(r)); }; } } @@ -150721,7 +150123,7 @@ object-assign 'div', { className: 'dashboard-top-bar__breakpoints' }, 'viewer' === n && - u.a.createElement(or, { + u.a.createElement(An.a, { className: 'export-icon', icon: 'file-download', size: 'lg', @@ -150730,12 +150132,12 @@ object-assign onClick: function() { var t; (t = l) && - ja.a.toBlob(t).then(function(t) { - Object(Ra.saveAs)(t, 'dashboard.png'); + Go.a.toBlob(t).then(function(t) { + Object(Ho.saveAs)(t, 'dashboard.png'); }); } }), - u.a.createElement(nn, { + u.a.createElement(Re.a, { id: 'screen-size', place: 'bottom', type: 'dark', @@ -150762,9 +150164,9 @@ object-assign o('embed'), a(e), s(); } }, - u.a.createElement(or, { icon: 'code', size: 'lg' }) + u.a.createElement(An.a, { icon: 'code', size: 'lg' }) ), - u.a.createElement(nn, { + u.a.createElement(Re.a, { id: 'embed-icon', place: 'bottom', type: 'dark', @@ -150788,9 +150190,9 @@ object-assign o('share'), a(e), s(); } }, - u.a.createElement(or, { icon: 'share-alt', size: 'lg' }) + u.a.createElement(An.a, { icon: 'share-alt', size: 'lg' }) ), - u.a.createElement(nn, { + u.a.createElement(Re.a, { id: 'share-icon', place: 'bottom', type: 'dark', @@ -150812,9 +150214,9 @@ object-assign 'data-tip': 'Preview' }, u.a.createElement( - pt, + ht, { to: '/viewer/'.concat(e.id) }, - u.a.createElement(or, { + u.a.createElement(An.a, { icon: 'eye', size: 'lg', onClick: function() { @@ -150823,7 +150225,7 @@ object-assign }) ) ), - u.a.createElement(nn, { + u.a.createElement(Re.a, { id: 'preview-icon', place: 'bottom', type: 'dark', @@ -150842,14 +150244,14 @@ object-assign return r(t.dashboardInfo), void s(); } }, - u.a.createElement(or, { icon: 'save', size: 'sm' }), + u.a.createElement(An.a, { icon: 'save', size: 'sm' }), ' Save' ) ) ); }), - za = st( - ie( + qo = ft( + pe( function(t) { var e = t.app, n = e.dashboardInfo; @@ -150859,7 +150261,7 @@ object-assign dashboardList: e.dashboardList }; }, - { loadDashboardInfo: jn } + { loadDashboardInfo: hn } )(function(t) { var e = t.dashboardList.map(function(t) { return { value: t.id, label: t.title }; @@ -150867,7 +150269,7 @@ object-assign return u.a.createElement( 'div', { className: 'switch-dashboard' }, - u.a.createElement(mo, { + u.a.createElement(Ri, { value: { value: t.id, label: t.title }, onChange: function(e) { return (function(e) { @@ -150879,8 +150281,8 @@ object-assign ); }) ), - Ia = st( - ie( + Wo = ft( + pe( function(t) { var e = t.app; return { @@ -150890,11 +150292,11 @@ object-assign }; }, { - toggleDashboardsMenu: Gn, - loadDashboardInfo: jn, - clearAccessKey: qn, - setNewDashboardForFocus: Hn, - addDashboardItem: Pn, + toggleDashboardsMenu: xn, + loadDashboardInfo: hn, + clearAccessKey: En, + setNewDashboardForFocus: wn, + addDashboardItem: ln, loadingSingleDashboard: function() { return { type: 'LOADING_SINGLE_DASHBOARD' }; }, @@ -150922,7 +150324,7 @@ object-assign 'div', { className: 'modal-header' }, 'Dashboards', - u.a.createElement(or, { + u.a.createElement(An.a, { icon: 'times', size: 'sm', onClick: function() { @@ -150967,13 +150369,13 @@ object-assign 'span', null, n === e.id && - u.a.createElement(or, { + u.a.createElement(An.a, { icon: 'angle-double-right', size: 'sm' }), e.title ), - u.a.createElement(Aa, { + u.a.createElement(Do, { className: 'time', date: new Date(e.last_modified_date) }) @@ -150983,57 +150385,33 @@ object-assign u.a.createElement( 'div', { className: 'modal-footer' }, - u.a.createElement(mr, null) + u.a.createElement(zn, null) ) ) ); }) - ); - function Fa() { - if ('undefined' == typeof Reflect || !Reflect.construct) return !1; - if (Reflect.construct.sham) return !1; - if ('function' == typeof Proxy) return !0; - try { - return ( - Date.prototype.toString.call( - Reflect.construct(Date, [], function() {}) - ), - !0 - ); - } catch (t) { - return !1; - } - } - var Va = (function(t) { - cr()(r, t); - var e, - n = - ((e = r), - function() { - var t, - n = pr()(e); - if (Fa()) { - var r = pr()(this).constructor; - t = Reflect.construct(n, arguments, r); - } else t = n.apply(this, arguments); - return dr()(this, t); - }); - function r(t) { - var e; + ), + Xo = (function(t) { + function e(t) { + var n; return ( - a()(this, r), - ((e = n.call(this, t)).handleFocus = function() { - e.title.current.focus(), e.title.current.select(); + a()(this, e), + ((n = Pn()( + this, + Ln()(e).call(this, t) + )).handleFocus = function() { + n.title.current.focus(), n.title.current.select(); }), - (e.handleClick = function() { - e.props.toggleDashboardsMenu('dashboard'); + (n.handleClick = function() { + n.props.toggleDashboardsMenu('dashboard'); }), - (e.title = u.a.createRef()), - e + (n.title = u.a.createRef()), + n ); } return ( - ur()(r, [ + Dn()(e, t), + Cn()(e, [ { key: 'componentDidMount', value: function() { @@ -151058,7 +150436,7 @@ object-assign var t = this.props, e = t.title; return t.switcherEnabled - ? u.a.createElement(za, null) + ? u.a.createElement(qo, null) : u.a.createElement('h1', { className: 'title' }, e); } }, @@ -151082,12 +150460,12 @@ object-assign u.a.createElement( 'div', { className: 'burger-icon' }, - u.a.createElement(or, { + u.a.createElement(An.a, { icon: 'bars', size: 'lg', onClick: this.handleClick }), - 'dashboard' === o && u.a.createElement(Ia, null) + 'dashboard' === o && u.a.createElement(Wo, null) ), u.a.createElement('input', { ref: this.title, @@ -151110,12 +150488,12 @@ object-assign 'div', { className: 'edit-dashboard-button' }, u.a.createElement( - pt, + ht, { to: '/editor/'.concat(n), className: 'edit-dashboard-button__link' }, - u.a.createElement(or, { + u.a.createElement(An.a, { icon: 'edit', size: 'sm' }), @@ -151127,10 +150505,10 @@ object-assign } } ]), - r + e ); })(s.Component), - Ba = ie( + Yo = pe( function(t) { var e = t.app, n = e.dashboardInfo; @@ -151145,33 +150523,33 @@ object-assign changeDashboardTitle: function(t) { return { type: 'CHANGE_DASHBOARD_TITLE', title: t }; }, - toggleDashboardsMenu: Gn, - setNewDashboardForFocus: Hn + toggleDashboardsMenu: xn, + setNewDashboardForFocus: wn } - )(Va); - Va.defaultProps = { switcherEnabled: !0, editable: !0 }; - var Ga = function(t) { + )(Xo); + Xo.defaultProps = { switcherEnabled: !0, editable: !0 }; + var $o = function(t) { var e = t.version, n = t.isDashboardPublic; return u.a.createElement( 'div', { className: 'dashboard-title' }, - u.a.createElement(Ba, { + u.a.createElement(Yo, { version: e, switcherEnabled: !n, editable: !n }) ); }, - Ha = n(85), - Ua = n.n(Ha), - qa = n(157), - Wa = n.n(qa), - Xa = (function() { - var t = Wa()( - Ua.a.mark(function t(e, n, r) { + Ko = n(91), + Qo = n.n(Ko), + Zo = n(164), + Jo = n.n(Zo), + ta = (function() { + var t = Jo()( + Qo.a.mark(function t(e, n, r) { var i, o, a, s; - return Ua.a.wrap(function(t) { + return Qo.a.wrap(function(t) { for (;;) switch ((t.prev = t.next)) { case 0: @@ -151221,7 +150599,7 @@ object-assign return t.apply(this, arguments); }; })(), - Ya = function(t) { + ea = function(t) { var e = document.createElement('textarea'); (e.value = t), document.body.appendChild(e), @@ -151229,9 +150607,9 @@ object-assign document.execCommand('copy'), document.body.removeChild(e); }, - $a = u.a.createContext({}), - Qa = st( - ie( + na = u.a.createContext({}), + ra = ft( + pe( function(t) { var e = t.app, n = e.dashboardInfo, @@ -151249,12 +150627,12 @@ object-assign savedQueriesList: s }; }, - { toggleDashboardsMenu: Gn, setAccessKey: Un, clearAccessKey: qn } + { toggleDashboardsMenu: xn, setAccessKey: Sn, clearAccessKey: En } )(function(t) { - var e = Object(s.useContext)($a); + var e = Object(s.useContext)(na); Object(s.useEffect)(function() { t.accessKey || - Xa(t.savedQueriesList, t.id, e).then(function(e) { + ta(t.savedQueriesList, t.id, e).then(function(e) { return t.setAccessKey(e); }); }, []); @@ -151271,7 +150649,7 @@ object-assign 'div', { className: 'modal-header' }, 'Share Your Dashboard', - u.a.createElement(or, { + u.a.createElement(An.a, { icon: 'times', size: 'sm', onClick: function() { @@ -151304,28 +150682,28 @@ object-assign className: 'modal-button', type: 'button', onClick: function() { - return Ya(n()); + return ea(n()); } }, - u.a.createElement(or, { icon: 'copy', size: 'sm' }), + u.a.createElement(An.a, { icon: 'copy', size: 'sm' }), 'COPY' ) ) ); }) ), - Ka = n(86), - Za = n.n(Ka), - Ja = - (n(255), - n(256), - n(257), - n(258), - n(259), - n(262), - n(263), - st( - ie( + ia = n(92), + oa = n.n(ia), + aa = + (n(277), + n(278), + n(279), + n(280), + n(281), + n(284), + n(285), + ft( + pe( function(t) { var e = t.app; return { @@ -151334,22 +150712,22 @@ object-assign }; }, { - toggleDashboardsMenu: Gn, + toggleDashboardsMenu: xn, setAccessKey: function(t) { - return Un(t); + return Sn(t); } } )(function(t) { - var e = Object(s.useContext)($a); + var e = Object(s.useContext)(na); Object(s.useEffect)(function() { t.accessKey || - Xa(t.dashboardInfo.data, t.id, e).then(function(e) { + ta(t.dashboardInfo.data, t.id, e).then(function(e) { return t.setAccessKey(e); }); }, []); var n = '\n \n \n \n \n \n \n
\n \n \n ' ), - r = Za.a.highlight(n, Za.a.languages.html, 'html'); + r = oa.a.highlight(n, oa.a.languages.html, 'html'); return u.a.createElement( 'div', { className: 'embed-dashboard modal' }, @@ -151372,7 +150750,7 @@ object-assign 'div', { className: 'modal-header' }, 'Embed Dashboard', - u.a.createElement(or, { + u.a.createElement(An.a, { icon: 'times', size: 'sm', onClick: function() { @@ -151393,22 +150771,22 @@ object-assign type: 'button', className: 'modal-button', onClick: function() { - return Ya(n); + return ea(n); } }, - u.a.createElement(or, { icon: 'copy', size: 'sm' }), + u.a.createElement(An.a, { icon: 'copy', size: 'sm' }), 'COPY' ) ) ); }) )), - ts = n(158), - es = n.n(ts), - ns = n(87), - rs = n(159), - is = n.n(rs), - os = function(t) { + sa = n(165), + ua = n.n(sa), + la = n(93), + ca = n(166), + fa = n.n(ca), + da = function(t) { var e = t.width, n = t.height, r = t.text; @@ -151416,29 +150794,29 @@ object-assign ? u.a.createElement( 'div', { className: 'paragraph', style: { width: e, height: n } }, - is()(r) + fa()(r) ) : u.a.createElement( 'div', { className: 'big-icon' }, - u.a.createElement(or, { icon: 'paragraph', size: 'lg' }) + u.a.createElement(An.a, { icon: 'paragraph', size: 'lg' }) ); }, - as = function(t) { + ha = function(t) { var e = t.src; return e ? u.a.createElement('img', { src: e }) : u.a.createElement( 'div', { className: 'big-icon' }, - u.a.createElement(or, { icon: 'image', size: 'lg' }) + u.a.createElement(An.a, { icon: 'image', size: 'lg' }) ); }, - ss = n(82), - us = n.n(ss), - ls = n(160), - cs = n.n(ls); - function fs(t, e) { + pa = n(86), + ga = n.n(pa), + ma = n(167), + va = n.n(ma); + function ya(t, e) { var n = Object.keys(t); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(t); @@ -151450,16 +150828,16 @@ object-assign } return n; } - function ds(t) { + function ba(t) { for (var e = 1; e < arguments.length; e++) { var n = null != arguments[e] ? arguments[e] : {}; e % 2 - ? fs(Object(n), !0).forEach(function(e) { - ve()(t, e, n[e]); + ? ya(n, !0).forEach(function(e) { + Me()(t, e, n[e]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) - : fs(Object(n)).forEach(function(e) { + : ya(n).forEach(function(e) { Object.defineProperty( t, e, @@ -151469,47 +150847,20 @@ object-assign } return t; } - function hs() { - if ('undefined' == typeof Reflect || !Reflect.construct) return !1; - if (Reflect.construct.sham) return !1; - if ('function' == typeof Proxy) return !0; - try { - return ( - Date.prototype.toString.call( - Reflect.construct(Date, [], function() {}) - ), - !0 - ); - } catch (t) { - return !1; - } - } - var ps = (function(t) { - cr()(r, t); - var e, - n = - ((e = r), - function() { - var t, - n = pr()(e); - if (hs()) { - var r = pr()(this).constructor; - t = Reflect.construct(n, arguments, r); - } else t = n.apply(this, arguments); - return dr()(this, t); - }); - function r(t) { - var e; + var _a = (function(t) { + function e(t) { + var n; return ( - a()(this, r), - ((e = n.call(this, t)).handleRef = function(t) { - t && ((e.el = t), e.createKeenDataviz()); + a()(this, e), + ((n = Pn()(this, Ln()(e).call(this, t))).handleRef = function(t) { + t && ((n.el = t), n.createKeenDataviz()); }), - e + n ); } return ( - ur()(r, [ + Dn()(e, t), + Cn()(e, [ { key: 'componentDidUpdate', value: function() { @@ -151539,16 +150890,16 @@ object-assign this.props.sparkline === t.sparkline && this.props.stacking === t.stacking && this.props.savedQuery === t.savedQuery && - Pa()(this.props.results, t.results) && - Pa()(this.props.colors, t.colors) && + Io()(this.props.results, t.results) && + Io()(this.props.colors, t.colors) && this.props.screenSize === t.screenSize && this.props.prefix === t.prefix && this.props.suffix === t.suffix && - Pa()(this.props.point, t.point) && - Pa()(this.props.choropleth, t.choropleth) && - Pa()(this.props.heatmap, t.heatmap) && - Pa()(this.props.funnel, t.funnel) && - Pa()(this.props.table || t.table) && + Io()(this.props.point, t.point) && + Io()(this.props.choropleth, t.choropleth) && + Io()(this.props.heatmap, t.heatmap) && + Io()(this.props.funnel, t.funnel) && + Io()(this.props.table || t.table) && _.isEqual(this.props.axis, t.axis) && this.props.w === t.w && this.props.h === t.h && @@ -151560,7 +150911,7 @@ object-assign { key: 'createKeenDataviz', value: function() { - var t = ds({}, this.props, {}, this.props.options, { + var t = ba({}, this.props, {}, this.props.options, { axis: { x: { label: @@ -151582,12 +150933,12 @@ object-assign results: this.props.type && this.props.type.includes('funnel') && - Pa()(this.props.results.result, [200, 300, 100, 400, 250]) + Io()(this.props.results.result, [200, 300, 100, 400, 250]) ? { result: [430, 300, 220, 150, 80] } : this.props.results }); - this.keenDataviz = new cs.a( - ds({ container: this.el, react: !0 }, t) + this.keenDataviz = new va.a( + ba({ container: this.el, react: !0 }, t) ); } }, @@ -151601,97 +150952,97 @@ object-assign } } ]), - r + e ); })(s.Component), - gs = ie( + xa = pe( function(t) { var e = t.app; return { id: e.dashboardInfo.id, screenSize: e.screenSize }; }, - { savedQueryError: Ln } - )(ps); - (ps.propTypes = { - type: h.a.string, - showDeprecationWarnings: h.a.bool, - showLoadingSpinner: h.a.bool, - theme: h.a.string, - dateFormat: h.a.string, - title: h.a.oneOfType([h.a.string, h.a.bool, h.a.number]), - legend: h.a.shape({ - show: h.a.bool, - position: h.a.string, - label: h.a.shape({ textMaxLength: h.a.number }), - pagination: h.a.shape({ offset: h.a.number, limit: h.a.number }), - tooltip: h.a.shape({ show: h.a.bool, pointer: h.a.bool }), - sort: h.a.string - }), - colors: h.a.arrayOf(h.a.string), - colorMapping: h.a.objectOf(h.a.string), - labelMapping: h.a.objectOf(h.a.string), - labelMappingRegExp: h.a.arrayOf(h.a.arrayOf(h.a.string)), - labelMappingDimension: h.a.string, - errorMapping: h.a.objectOf(h.a.string), - showErrorMessages: h.a.bool, - labels: h.a.arrayOf(h.a.string), - sortGroups: h.a.string, - sortIntervals: h.a.string, - stacking: h.a.string, - table: h.a.shape({ - columns: h.a.arrayOf(h.a.string), - pagination: h.a.shape({ limit: h.a.number }), - mapValues: h.a.func - }), - renderOnVisible: h.a.bool, - results: h.a.any, - previousResults: h.a.shape({ result: h.a.number }), - funnel: h.a.shape({ - lines: h.a.bool, - resultValues: h.a.bool, - percents: h.a.shape({ - show: h.a.bool, - countingMethod: h.a.string, - decimals: h.a.number - }), - hover: h.a.bool, - marginBetweenSteps: h.a.bool, - effect3d: h.a.string - }), - stacked: h.a.string, - indexBy: h.a.string, - library: h.a.string, - timezone: h.a.string, - padding: h.a.shape({ - top: h.a.number, - right: h.a.number, - bottom: h.a.number, - left: h.a.number - }), - tooltip: h.a.shape({ - show: h.a.bool, - grouped: h.a.bool, - format: h.a.shape({ - title: h.a.func, - name: h.a.func, - value: h.a.func - }), - position: h.a.func, - contenss: h.a.func - }), - partialIntervalIndicator: h.a.shape({ - show: h.a.bool, - className: h.a.string - }), - showTitle: h.a.bool, - notes: h.a.string, - axis: h.a.object, - color: h.a.any, - point: h.a.any, - transition: h.a.any, - data: h.a.any, - grid: h.a.any + { savedQueryError: fn } + )(_a); + (_a.propTypes = { + type: g.a.string, + showDeprecationWarnings: g.a.bool, + showLoadingSpinner: g.a.bool, + theme: g.a.string, + dateFormat: g.a.string, + title: g.a.oneOfType([g.a.string, g.a.bool, g.a.number]), + legend: g.a.shape({ + show: g.a.bool, + position: g.a.string, + label: g.a.shape({ textMaxLength: g.a.number }), + pagination: g.a.shape({ offset: g.a.number, limit: g.a.number }), + tooltip: g.a.shape({ show: g.a.bool, pointer: g.a.bool }), + sort: g.a.string + }), + colors: g.a.arrayOf(g.a.string), + colorMapping: g.a.objectOf(g.a.string), + labelMapping: g.a.objectOf(g.a.string), + labelMappingRegExp: g.a.arrayOf(g.a.arrayOf(g.a.string)), + labelMappingDimension: g.a.string, + errorMapping: g.a.objectOf(g.a.string), + showErrorMessages: g.a.bool, + labels: g.a.arrayOf(g.a.string), + sortGroups: g.a.string, + sortIntervals: g.a.string, + stacking: g.a.string, + table: g.a.shape({ + columns: g.a.arrayOf(g.a.string), + pagination: g.a.shape({ limit: g.a.number }), + mapValues: g.a.func + }), + renderOnVisible: g.a.bool, + results: g.a.any, + previousResults: g.a.shape({ result: g.a.number }), + funnel: g.a.shape({ + lines: g.a.bool, + resultValues: g.a.bool, + percents: g.a.shape({ + show: g.a.bool, + countingMethod: g.a.string, + decimals: g.a.number + }), + hover: g.a.bool, + marginBetweenSteps: g.a.bool, + effect3d: g.a.string + }), + stacked: g.a.string, + indexBy: g.a.string, + library: g.a.string, + timezone: g.a.string, + padding: g.a.shape({ + top: g.a.number, + right: g.a.number, + bottom: g.a.number, + left: g.a.number + }), + tooltip: g.a.shape({ + show: g.a.bool, + grouped: g.a.bool, + format: g.a.shape({ + title: g.a.func, + name: g.a.func, + value: g.a.func + }), + position: g.a.func, + contenss: g.a.func + }), + partialIntervalIndicator: g.a.shape({ + show: g.a.bool, + className: g.a.string + }), + showTitle: g.a.bool, + notes: g.a.string, + axis: g.a.object, + color: g.a.any, + point: g.a.any, + transition: g.a.any, + data: g.a.any, + grid: g.a.any }), - (ps.defaultProps = { + (_a.defaultProps = { theme: 'keen-dataviz', results: { result: [200, 300, 100, 400, 250] }, title: !1, @@ -151712,20 +151063,20 @@ object-assign tooltip: { show: !0, pointer: !0 } } }); - var vs = n(61), - ms = function(t) { + var wa = n(65), + Sa = function(t) { var e = t.theme, n = t.containerId; return u.a.createElement( u.a.Fragment, null, u.a.createElement('style', { - dangerouslySetInnerHTML: { __html: Object(vs.getStyles)(e, n) } + dangerouslySetInnerHTML: { __html: Object(wa.getStyles)(e, n) } }), t.children ); }, - ys = { + Ea = { getQueryDataType: function(t) { var e, n = 'string' == typeof t.interval, @@ -151813,17 +151164,17 @@ object-assign ], nominal: ['table'], extraction: ['table'] - }[ys.getQueryDataType(t)]; + }[Ea.getQueryDataType(t)]; }, responseSupportsChartType: function(t, e) { - return vn.a.includes(ys.getChartTypeOptions(t), e); + return Ye.a.includes(Ea.getChartTypeOptions(t), e); }, isTableChartType: function(t) { return 'table' == t; } }, - bs = ys; - function _s(t, e) { + ka = Ea; + function Aa(t, e) { var n = Object.keys(t); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(t); @@ -151835,16 +151186,16 @@ object-assign } return n; } - function xs(t) { + function Ta(t) { for (var e = 1; e < arguments.length; e++) { var n = null != arguments[e] ? arguments[e] : {}; e % 2 - ? _s(Object(n), !0).forEach(function(e) { - ve()(t, e, n[e]); + ? Aa(n, !0).forEach(function(e) { + Me()(t, e, n[e]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) - : _s(Object(n)).forEach(function(e) { + : Aa(n).forEach(function(e) { Object.defineProperty( t, e, @@ -151854,47 +151205,20 @@ object-assign } return t; } - function ws() { - if ('undefined' == typeof Reflect || !Reflect.construct) return !1; - if (Reflect.construct.sham) return !1; - if ('function' == typeof Proxy) return !0; - try { - return ( - Date.prototype.toString.call( - Reflect.construct(Date, [], function() {}) - ), - !0 - ); - } catch (t) { - return !1; - } - } - var Ss = (function(t) { - cr()(r, t); - var e, - n = - ((e = r), - function() { - var t, - n = pr()(e); - if (ws()) { - var r = pr()(this).constructor; - t = Reflect.construct(n, arguments, r); - } else t = n.apply(this, arguments); - return dr()(this, t); - }); - function r(t) { - var e; + var Ca = (function(t) { + function e(t) { + var n; return ( - a()(this, r), - (e = n.call(this, t)), - Es.call(us()(e)), - (e.state = { loading: !1, results: void 0 }), - e + a()(this, e), + (n = Pn()(this, Ln()(e).call(this, t))), + Oa.call(ga()(n)), + (n.state = { loading: !1, results: void 0 }), + n ); } return ( - ur()(r, [ + Dn()(e, t), + Cn()(e, [ { key: 'componentDidMount', value: function() { @@ -151918,13 +151242,13 @@ object-assign this.setState({ results: void 0 }), this.props.id !== t.id && this.setState({ results: void 0 }), - !1 === Pa()(t.savedQuery, this.props.savedQuery) || + !1 === Io()(t.savedQuery, this.props.savedQuery) || (this.props.id !== t.id && this.setState({ results: void 0 })), (this.props.id !== t.id || (this.props.savedQuery && !1 === t.dryRun && - !1 === Pa()(t.savedQuery, this.props.savedQuery)) || + !1 === Io()(t.savedQuery, this.props.savedQuery)) || (!1 === this.props.savedQuery && t.savedQuery && this.props.type !== t.type) || @@ -151958,41 +151282,41 @@ object-assign h = f.results, p = f.type, g = f.error, - v = c && void 0 !== c[e] && null !== c[e] ? c[e] : {}, - m = a || g; + m = c && void 0 !== c[e] && null !== c[e] ? c[e] : {}, + v = a || g; return u.a.createElement( u.a.Fragment, null, - Object.keys(v).length + Object.keys(m).length ? u.a.createElement( - ms, + Sa, { - theme: v.theme, + theme: m.theme, containerId: this.props.containerId }, u.a.createElement( - gs, + xa, i()( { key: l, type: p }, this.props, s.options, - v.options, + m.options, { results: h } ) ) ) : u.a.createElement( - gs, + xa, i()( { key: l, type: p }, this.props, s.options, - v.options, + m.options, { results: h } ) ), - m && - 'string' == typeof m && + v && + 'string' == typeof v && !1 === r && !1 === d && u.a.createElement( @@ -152001,7 +151325,7 @@ object-assign u.a.createElement( 'div', { className: 'error-message' }, - m + v ) ), r && @@ -152019,35 +151343,38 @@ object-assign u.a.createElement( 'span', { className: 'loading' }, - u.a.createElement(or, { icon: 'spinner', size: '1x' }) + u.a.createElement(An.a, { + icon: 'spinner', + size: '1x' + }) ) ) ); } } ]), - r + e ); })(s.Component), - Es = function() { + Oa = function() { var t = this; (this.runSingleSavedQuery = function(e) { t.setState({ loading: !0 }), t.props.keenAnalysis .query('saved', e.value) .then(function(e) { - var n = bs.getChartTypeOptions(e.query), + var n = ka.getChartTypeOptions(e.query), r = t.props.type ? t.props.type : n[0]; t.props.loadSavedQuery(t.props.index), t.setState({ results: void 0 === t.state.results - ? xs({}, e) + ? Ta({}, e) : Array.isArray(t.state.results) - ? [].concat(pe()(t.state.results), [xs({}, e)]) + ? [].concat(Oe()(t.state.results), [Ta({}, e)]) : r && (r.includes('area') || r.includes('line')) - ? [xs({}, t.state.results), xs({}, e)] - : xs({}, e), + ? [Ta({}, t.state.results), Ta({}, e)] + : Ta({}, e), savedQuery: { value: e.query_name, label: e.metadata.display_name @@ -152078,7 +151405,7 @@ object-assign n[r].query.event_collection === n[i].query.event_collection && (n[i].query.analysis_type += i); - var o = bs.getChartTypeOptions(n[0].query)[0]; + var o = ka.getChartTypeOptions(n[0].query)[0]; e.loadSavedQuery(e.index), t.setState({ results: n, @@ -152093,7 +151420,7 @@ object-assign }); }); }, - ks = ie( + Pa = pe( function(t) { var e = t.app, n = e.isLoading, @@ -152112,9 +151439,9 @@ object-assign charts_theme: void 0 === l ? {} : l }; }, - { loadSavedQuery: Fn, savedQueryError: Ln, setLoading: In } - )(Ss), - As = ie( + { loadSavedQuery: yn, savedQueryError: fn, setLoading: vn } + )(Ca), + Ma = pe( function(t) { var e = t.app; return { isMoving: e.isMoving, isResizing: e.isResizing }; @@ -152124,25 +151451,25 @@ object-assign return function(e, n, r) { var i = r.keenClient; if (confirm('Do You want to delete this chart?')) { - nn.hide(); + Re.a.hide(); var o = n(), - a = yn(o), + a = Ke(o), s = a.settings.items.find(function(e) { return e.i === t; }).savedQuery; - e(Wn(s, [])); + e(kn(s, [])); var u = n(), - l = mn(u); + l = $e(u); if (a.is_public && s.length) s.some(function(t) { return !l.includes(t.value); - }) && bn(l, a.id, i); + }) && Qe(l, a.id, i); e({ type: 'DELETE_CHART', index: t }); } }; }, - showSettings: Bn, - closeSettings: Vn, + showSettings: _n, + closeSettings: bn, cloneChart: function(t) { return { type: 'CLONE_CHART', index: t }; } @@ -152174,7 +151501,7 @@ object-assign })(e); } }, - u.a.createElement(or, { icon: 'cog', size: 'sm' }) + u.a.createElement(An.a, { icon: 'cog', size: 'sm' }) ), u.a.createElement( 'div', @@ -152185,7 +151512,7 @@ object-assign return t.cloneChart(n); } }, - u.a.createElement(or, { icon: 'clone', size: 'sm' }) + u.a.createElement(An.a, { icon: 'clone', size: 'sm' }) ), i && i.length > 0 && @@ -152206,7 +151533,7 @@ object-assign }); } }, - u.a.createElement(or, { + u.a.createElement(An.a, { icon: 'external-link-alt', size: 'sm' }) @@ -152220,10 +151547,10 @@ object-assign e.stopPropagation(), t.deleteChart(n); } }, - u.a.createElement(or, { icon: 'trash-alt', size: 'sm' }) + u.a.createElement(An.a, { icon: 'trash-alt', size: 'sm' }) ) ), - u.a.createElement(nn, { + u.a.createElement(Re.a, { id: 'settings', place: 'left', type: 'dark', @@ -152232,7 +151559,7 @@ object-assign return t; } }), - u.a.createElement(nn, { + u.a.createElement(Re.a, { id: 'clone', place: 'left', type: 'dark', @@ -152241,7 +151568,7 @@ object-assign return t; } }), - u.a.createElement(nn, { + u.a.createElement(Re.a, { id: 'explorer', place: 'left', type: 'dark', @@ -152250,7 +151577,7 @@ object-assign return t; } }), - u.a.createElement(nn, { + u.a.createElement(Re.a, { id: 'delete', place: 'left', type: 'dark', @@ -152262,8 +151589,8 @@ object-assign ) ); }); - n(420), n(422); - function Ts(t, e) { + n(442), n(444); + function La(t, e) { var n = Object.keys(t); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(t); @@ -152275,63 +151602,38 @@ object-assign } return n; } - function Cs() { - if ('undefined' == typeof Reflect || !Reflect.construct) return !1; - if (Reflect.construct.sham) return !1; - if ('function' == typeof Proxy) return !0; - try { - return ( - Date.prototype.toString.call( - Reflect.construct(Date, [], function() {}) - ), - !0 - ); - } catch (t) { - return !1; - } - } - var Os = Object(ns.WidthProvider)(ns.Responsive), - Ps = (function(t) { - cr()(r, t); - var e, - n = - ((e = r), - function() { - var t, - n = pr()(e); - if (Cs()) { - var r = pr()(this).constructor; - t = Reflect.construct(n, arguments, r); - } else t = n.apply(this, arguments); - return dr()(this, t); - }); - function r(t) { - var e; + var ja = Object(la.WidthProvider)(la.Responsive), + Da = (function(t) { + function e(t) { + var n; return ( - a()(this, r), - ((e = n.call(this, t)).onElementClick = function(t, n) { - var r = e.props, + a()(this, e), + ((n = Pn()( + this, + Ln()(e).call(this, t) + )).onElementClick = function(t, e) { + var r = n.props, i = r.version, o = r.settingsVisible, a = r.showSettings; - 'viewer' !== i && o !== n && a(n); + 'viewer' !== i && o !== e && a(e); }), - (e.createElement = function(t) { - var n = t.i, + (n.createElement = function(t) { + var e = t.i, r = (t.w, t.h, t.type), o = t.savedQuery, a = t.src, s = t.text; - if (null != n) { - var l = e.props, + if (null != e) { + var l = n.props, c = (l.id, l.theme), f = l.charts_theme, d = l.version, h = l.layout, p = (l.error, l.dryRun, l.settingsVisible), g = l.keenAnalysis, - v = (f && f[n] && f[n].options) || (c && c.options) || {}, - m = + m = (f && f[e] && f[e].options) || (c && c.options) || {}, + v = h.find(function(e) { return e.i === t.i; }) || {}, @@ -152339,15 +151641,15 @@ object-assign for (var e = 1; e < arguments.length; e++) { var n = null != arguments[e] ? arguments[e] : {}; e % 2 - ? Ts(Object(n), !0).forEach(function(e) { - ve()(t, e, n[e]); + ? La(n, !0).forEach(function(e) { + Me()(t, e, n[e]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties( t, Object.getOwnPropertyDescriptors(n) ) - : Ts(Object(n)).forEach(function(e) { + : La(n).forEach(function(e) { Object.defineProperty( t, e, @@ -152356,74 +151658,74 @@ object-assign }); } return t; - })({}, t, {}, m), + })({}, t, {}, v), b = 1; return ( - p && p !== n && (b = 0.3), + p && p !== e && (b = 0.3), u.a.createElement( 'div', { - key: n, + key: e, 'data-grid': y, - id: n, + id: e, style: { opacity: b }, onDoubleClick: function(t) { - return e.onElementClick(t, n); + return n.onElementClick(t, e); }, - onMouseDown: e.onMouseDown + onMouseDown: n.onMouseDown }, 'image' === r - ? u.a.createElement(as, { src: a }) + ? u.a.createElement(ha, { src: a }) : 'paragraph' === r - ? u.a.createElement(os, { text: s }) + ? u.a.createElement(da, { text: s }) : u.a.createElement( - ks, + Pa, i()( { type: r, - index: n, - w: m.w, - h: m.h, + index: e, + w: v.w, + h: v.h, savedQuery: o, keenAnalysis: g, - containerId: n + containerId: e }, - v + m ) ), 'editor' === d && - u.a.createElement(As, { - key: n, - index: n, + u.a.createElement(Ma, { + key: e, + index: e, savedQuery: o, - editedWidget: e.state.editedWidget + editedWidget: n.state.editedWidget }) ) ); } }), - (e.onBreakpointChange = function(t, n) { - e.setState({ breakpoint: t, cols: n }); + (n.onBreakpointChange = function(t, e) { + n.setState({ breakpoint: t, cols: e }); }), - (e.onLayoutChange = function(t, n) { - var r = e.props, + (n.onLayoutChange = function(t, e) { + var r = n.props, i = r.version, o = r.setLayout; 'editor' === i && o(t); }), - (e.onDrop = function(t) { - var n = t.x, + (n.onDrop = function(t) { + var e = t.x, r = t.y, i = t.w, o = t.h, - a = e.props, + a = n.props, s = a.draggedType, u = a.dropHandler, - l = 'chart-'.concat(sn()); + l = 'chart-'.concat(Fe()); u( { i: l, - x: n, + x: e, y: r, w: i, h: o, @@ -152437,29 +151739,30 @@ object-assign l ); }), - (e.onDragStart = function(t, n, r, i, o, a) { - e.setState({ editedWidget: n.i }); + (n.onDragStart = function(t, e, r, i, o, a) { + n.setState({ editedWidget: e.i }); }), - (e.onDragStop = function() { - e.setState({ editedWidget: !1 }); + (n.onDragStop = function() { + n.setState({ editedWidget: !1 }); }), - (e.onResizeStart = function(t, n, r, i, o, a) { - e.setState({ editedWidget: n.i }); + (n.onResizeStart = function(t, e, r, i, o, a) { + n.setState({ editedWidget: e.i }); }), - (e.onResizeStop = function() { - e.setState({ editedWidget: !1 }); + (n.onResizeStop = function() { + n.setState({ editedWidget: !1 }); }), - (e.state = { editedWidget: !1, loading: !1, results: void 0 }), - e + (n.state = { editedWidget: !1, loading: !1, results: void 0 }), + n ); } return ( - ur()(r, [ + Dn()(e, t), + Cn()(e, [ { key: 'componentDidUpdate', value: function(t) { var e = this.props.fonts; - e && e.length && An.a.load({ google: { families: e } }); + e && e.length && on.a.load({ google: { families: e } }); } }, { @@ -152477,7 +151780,7 @@ object-assign r = (e.screenSize, e.id), o = e.items, a = (e.layout, e.layouts, e.theme), - s = es()(e, [ + s = ua()(e, [ 'version', 'screenSize', 'id', @@ -152494,11 +151797,11 @@ object-assign a.theme && u.a.createElement('style', { dangerouslySetInnerHTML: { - __html: Object(vs.getStyles)(a.theme, l) + __html: Object(wa.getStyles)(a.theme, l) } }), u.a.createElement( - Os, + ja, i()({ key: 'dashboard-'.concat(r) }, s, { measureBeforeMount: !0, breakpoints: { lg: 1200, md: 800, sm: 420, xs: 0 }, @@ -152525,10 +151828,10 @@ object-assign } } ]), - r + e ); })(s.PureComponent), - Ms = ie( + Ra = pe( function(t) { var e = t.app, n = e.dashboardInfo, @@ -152560,93 +151863,64 @@ object-assign dropHandler: function(t, e) { return { type: 'DROP_HANDLER', element: t, id: e }; }, - showSettings: Bn, + showSettings: _n, mapOldItems: function(t) { return { type: 'MAP_OLD_ITEMS', newDashboard: t }; }, setLayout: function(t) { return { type: 'SET_LAYOUT', layout: t }; }, - loadSavedQuery: Fn, - savedQueryError: Ln, - setLoading: In, - clearDashboardInfo: Rn + loadSavedQuery: yn, + savedQueryError: fn, + setLoading: vn, + clearDashboardInfo: pn } - )(Ps); - Ps.defaultProps = { + )(Da); + Da.defaultProps = { cols: { lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 }, rowHeight: 100 }; - var Ls = ie( - function(t) { + var za = { closeSettings: bn }, + Na = pe(function(t) { var e = t.app; return { screenSize: e.screenSize, dashboardsMenu: e.dashboardsMenu }; - }, - { closeSettings: Vn } - )(function(t) { - var e = t.version, - n = t.dashboardsMenu, - r = t.isDashboardPublic; - return u.a.createElement( - 'div', - { - className: - 'editor' === e - ? 'dashboard-container' - : 'dashboard-container-viewer', - onMouseDown: t.closeSettings - }, - 'share' === n && u.a.createElement(Qa, null), - 'embed' === n && u.a.createElement(Ja, null), - u.a.createElement(Na, { version: e, editable: !r }), - u.a.createElement( + }, za)(function(t) { + var e = t.version, + n = t.dashboardsMenu, + r = t.isDashboardPublic; + return u.a.createElement( 'div', - { className: 'dashboard-inner-container' }, - u.a.createElement(Ga, { version: e, isDashboardPublic: r }), - u.a.createElement($a.Consumer, null, function(t) { - return u.a.createElement(Ms, { - keenAnalysis: t, - version: e, - isDashboardPublic: r - }); - }) - ) - ); - }); - function Ds() { - if ('undefined' == typeof Reflect || !Reflect.construct) return !1; - if (Reflect.construct.sham) return !1; - if ('function' == typeof Proxy) return !0; - try { - return ( - Date.prototype.toString.call( - Reflect.construct(Date, [], function() {}) - ), - !0 + { + className: + 'editor' === e + ? 'dashboard-container' + : 'dashboard-container-viewer', + onMouseDown: t.closeSettings + }, + 'share' === n && u.a.createElement(ra, null), + 'embed' === n && u.a.createElement(aa, null), + u.a.createElement(Uo, { version: e, editable: !r }), + u.a.createElement( + 'div', + { className: 'dashboard-inner-container' }, + u.a.createElement($o, { version: e, isDashboardPublic: r }), + u.a.createElement(na.Consumer, null, function(t) { + return u.a.createElement(Ra, { + keenAnalysis: t, + version: e, + isDashboardPublic: r + }); + }) + ) ); - } catch (t) { - return !1; - } - } - var js = (function(t) { - cr()(r, t); - var e, - n = - ((e = r), - function() { - var t, - n = pr()(e); - if (Ds()) { - var r = pr()(this).constructor; - t = Reflect.construct(n, arguments, r); - } else t = n.apply(this, arguments); - return dr()(this, t); - }); - function r(t) { - return a()(this, r), n.call(this, t); + }), + Ia = (function(t) { + function e(t) { + return a()(this, e), Pn()(this, Ln()(e).call(this, t)); } return ( - ur()(r, [ + Dn()(e, t), + Cn()(e, [ { key: 'componentDidMount', value: function() { @@ -152656,7 +151930,7 @@ object-assign r = t.updateDashboardInfo, i = t.loadDashboards, o = t.match.params.id; - e && !ce()(e) ? r(e) : (n(o), i()); + e && !ke()(e) ? r(e) : (n(o), i()); } }, { @@ -152673,7 +151947,7 @@ object-assign return u.a.createElement( 'div', { className: 'dashboard-builder' }, - u.a.createElement(Ls, { + u.a.createElement(Na, { version: 'viewer', isDashboardPublic: t }) @@ -152681,33 +151955,31 @@ object-assign } } ]), - r + e ); })(s.Component), - Rs = { - loadDashboardInfo: jn, + Fa = { + loadDashboardInfo: hn, updateDashboardInfo: function(t) { return { type: 'UPDATE_DASHBOARD_INFO', dashboardInfo: t }; }, - clearDashboardInfo: Rn, - loadDashboards: Dn + clearDashboardInfo: pn, + loadDashboards: dn }, - Ns = ie(null, Rs)(js), - zs = - (n(424), - n(426), - { - prefix: 'fas', - iconName: 'arrows-alt-h', - icon: [ - 512, - 512, - [], - 'f337', - 'M377.941 169.941V216H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.568 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296h243.882v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.568 0-33.941l-86.059-86.059c-15.119-15.12-40.971-4.412-40.971 16.97z' - ] - }), - Is = { + Va = pe(null, Fa)(Ia), + Ba = (n(446), n(448), n(47)), + Ga = { + prefix: 'fas', + iconName: 'arrows-alt-h', + icon: [ + 512, + 512, + [], + 'f337', + 'M377.941 169.941V216H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.568 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296h243.882v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.568 0-33.941l-86.059-86.059c-15.119-15.12-40.971-4.412-40.971 16.97z' + ] + }, + Ha = { prefix: 'fas', iconName: 'edit', icon: [ @@ -152718,18 +151990,18 @@ object-assign 'M402.6 83.2l90.2 90.2c3.8 3.8 3.8 10 0 13.8L274.4 405.6l-92.8 10.3c-12.4 1.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8 83.2c3.8-3.8 10-3.8 13.8 0zm162-22.9l-48.8-48.8c-15.2-15.2-39.9-15.2-55.2 0l-35.4 35.4c-3.8 3.8-3.8 10 0 13.8l90.2 90.2c3.8 3.8 10 3.8 13.8 0l35.4-35.4c15.2-15.3 15.2-40 0-55.2zM384 346.2V448H64V128h229.8c3.2 0 6.2-1.3 8.5-3.5l40-40c7.6-7.6 2.2-20.5-8.5-20.5H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V306.2c0-10.7-12.9-16-20.5-8.5l-40 40c-2.2 2.3-3.5 5.3-3.5 8.5z' ] }, - Fs = { + Ua = { prefix: 'fas', iconName: 'external-link-alt', icon: [ - 512, + 576, 512, [], 'f35d', - 'M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z' + 'M576 24v127.984c0 21.461-25.96 31.98-40.971 16.971l-35.707-35.709-243.523 243.523c-9.373 9.373-24.568 9.373-33.941 0l-22.627-22.627c-9.373-9.373-9.373-24.569 0-33.941L442.756 76.676l-35.703-35.705C391.982 25.9 402.656 0 424.024 0H552c13.255 0 24 10.745 24 24zM407.029 270.794l-16 16A23.999 23.999 0 0 0 384 303.765V448H64V128h264a24.003 24.003 0 0 0 16.97-7.029l16-16C376.089 89.851 365.381 64 344 64H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V287.764c0-21.382-25.852-32.09-40.971-16.97z' ] }, - Vs = { + qa = { prefix: 'fas', iconName: 'file-download', icon: [ @@ -152740,7 +152012,7 @@ object-assign 'M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm76.45 211.36l-96.42 95.7c-6.65 6.61-17.39 6.61-24.04 0l-96.42-95.7C73.42 337.29 80.54 320 94.82 320H160v-80c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v80h65.18c14.28 0 21.4 17.29 11.27 27.36zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z' ] }, - Bs = { + Wa = { prefix: 'fas', iconName: 'image', icon: [ @@ -152751,7 +152023,7 @@ object-assign 'M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z' ] }, - Gs = { + Xa = { prefix: 'fas', iconName: 'laptop', icon: [ @@ -152762,7 +152034,7 @@ object-assign 'M624 416H381.54c-.74 19.81-14.71 32-32.74 32H288c-18.69 0-33.02-17.47-32.77-32H16c-8.8 0-16 7.2-16 16v16c0 35.2 28.8 64 64 64h512c35.2 0 64-28.8 64-64v-16c0-8.8-7.2-16-16-16zM576 48c0-26.4-21.6-48-48-48H112C85.6 0 64 21.6 64 48v336h512V48zm-64 272H128V64h384v256z' ] }, - Hs = { + Ya = { prefix: 'fas', iconName: 'mobile-alt', icon: [ @@ -152773,7 +152045,7 @@ object-assign 'M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm112-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v312z' ] }, - Us = { + $a = { prefix: 'fas', iconName: 'paragraph', icon: [ @@ -152784,7 +152056,7 @@ object-assign 'M448 48v32a16 16 0 0 1-16 16h-48v368a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16V96h-32v368a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16V352h-32a160 160 0 0 1 0-320h240a16 16 0 0 1 16 16z' ] }, - qs = { + Ka = { prefix: 'fas', iconName: 'search', icon: [ @@ -152795,7 +152067,7 @@ object-assign 'M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z' ] }, - Ws = { + Qa = { prefix: 'fas', iconName: 'spinner', icon: [ @@ -152806,7 +152078,7 @@ object-assign 'M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z' ] }, - Xs = { + Za = { prefix: 'fas', iconName: 'tablet-alt', icon: [ @@ -152817,7 +152089,7 @@ object-assign 'M400 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM224 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm176-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h328c6.6 0 12 5.4 12 12v312z' ] }, - Ys = { + Ja = { prefix: 'fas', iconName: 'times', icon: [ @@ -152828,24 +152100,31 @@ object-assign 'M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z' ] }, - $s = n(161), - Qs = n.n($s); - Xn.b.add(Us, Bs, qs, Ws, Is, Hs, Xs, Gs, Fs, Vs, zs, Ys), oa.locale(Qs.a); - var Ks = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || Tt, - Zs = void 0; - 'undefined' != typeof webpackKeenGlobals && (Zs = webpackKeenGlobals); - var Js = function t(e) { + ts = n(168), + es = n.n(ts); + n.d(e, 'keenGlobals', function() { + return rs; + }), + n.d(e, 'DashboardViewer', function() { + return is; + }), + Ba.b.add($a, Wa, Ka, Qa, Ha, Ya, Za, Xa, Ua, qa, Ga, Ja), + yo.locale(es.a); + var ns = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || Et, + rs = void 0; + 'undefined' != typeof webpackKeenGlobals && (rs = webpackKeenGlobals); + var is = function t(e) { a()(this, t); var n, r = e.keenAnalysis, o = e.dashboardInfo, - s = o && !ce()(o), - l = r.instance || new de.a(r.config), + s = o && !ke()(o), + l = r.instance || new Te.a(r.config), f = e.keenWebHost || window.location.host; e.keenWebHost && (n = { mode: 'cors', credentials: 'include' }); - var d = xt( - pn, - Ks( + var d = yt( + We, + ns( (function() { for ( var t = arguments.length, e = new Array(t), n = 0; @@ -152870,13 +152149,13 @@ object-assign o = e.map(function(t) { return t(i); }); - return At({}, n, { - dispatch: (r = Tt.apply(void 0, o)(n.dispatch)) + return St({}, n, { + dispatch: (r = Et.apply(void 0, o)(n.dispatch)) }); }; }; })( - ue.withExtraArgument({ + Se.withExtraArgument({ keenClient: l, keenWebHost: f, keenWebFetchOptions: n @@ -152886,31 +152165,31 @@ object-assign ); c.a.render( u.a.createElement( - Dt, + Lt, { store: d }, u.a.createElement( - $a.Provider, + na.Provider, { value: l }, u.a.createElement( - ut, + dt, null, s - ? u.a.createElement(et, { + ? u.a.createElement(ot, { path: '/', component: function(t) { - return u.a.createElement(Ns, i()({}, t, e)); + return u.a.createElement(Va, i()({}, t, e)); }, exact: !0 }) - : u.a.createElement(et, { + : u.a.createElement(ot, { path: '/', - component: La, + component: Vo, exact: !0 }), - u.a.createElement(et, { + u.a.createElement(ot, { path: '/viewer/:id', component: function(t) { - return u.a.createElement(Ns, i()({}, t, e)); + return u.a.createElement(Va, i()({}, t, e)); } }) ) @@ -152919,128 +152198,53 @@ object-assign document.querySelector(e.container) ); }; - Js.propTypes = { - dashboardInfo: h.a.shape({ - created_date: h.a.string, - data: h.a.shape({ - version: h.a.number, - items: h.a.arrayOf( - h.a.shape({ - height: h.a.number, - width: h.a.number, - top: h.a.number, - left: h.a.number, - colors: h.a.array, - palette: h.a.string, - picker: h.a.object, - legend: h.a.shape({ value: h.a.string, label: h.a.string }), - sparkline: h.a.shape({ value: h.a.bool, label: h.a.string }), - stacking: h.a.shape({ value: h.a.string, label: h.a.string }), - savedQuery: h.a.shape({ value: h.a.string, label: h.a.string }) + is.propTypes = { + dashboardInfo: g.a.shape({ + created_date: g.a.string, + data: g.a.shape({ + version: g.a.number, + items: g.a.arrayOf( + g.a.shape({ + height: g.a.number, + width: g.a.number, + top: g.a.number, + left: g.a.number, + colors: g.a.array, + palette: g.a.string, + picker: g.a.object, + legend: g.a.shape({ value: g.a.string, label: g.a.string }), + sparkline: g.a.shape({ value: g.a.bool, label: g.a.string }), + stacking: g.a.shape({ value: g.a.string, label: g.a.string }), + savedQuery: g.a.shape({ value: g.a.string, label: g.a.string }) }) ) }), - id: h.a.string, - is_public: h.a.bool, - last_modified_date: h.a.string, - project_id: h.a.string, - rows: h.a.arrayOf( - h.a.shape({ - height: h.a.number, - tiles: h.a.arrayOf( - h.a.shape({ column_width: h.a.number, query_name: h.a.string }) + id: g.a.string, + is_public: g.a.bool, + last_modified_date: g.a.string, + project_id: g.a.string, + rows: g.a.arrayOf( + g.a.shape({ + height: g.a.number, + tiles: g.a.arrayOf( + g.a.shape({ column_width: g.a.number, query_name: g.a.string }) ) }) ), - settings: h.a.shape({ - dryRun: h.a.bool, - is_public: h.a.bool, - colors: h.a.array, - palette: h.a.string, - picker: h.a.object - }), - title: h.a.string + settings: g.a.shape({ + dryRun: g.a.bool, + is_public: g.a.bool, + colors: g.a.array, + palette: g.a.string, + picker: g.a.object + }), + title: g.a.string }) }; }, function(t, e, n) { 'use strict'; - n.r(e), - n.d(e, 'TemplateTag', function() { - return u; - }), - n.d(e, 'trimResultTransformer', function() { - return l; - }), - n.d(e, 'stripIndentTransformer', function() { - return f; - }), - n.d(e, 'replaceResultTransformer', function() { - return d; - }), - n.d(e, 'replaceSubstitutionTransformer', function() { - return h; - }), - n.d(e, 'replaceStringTransformer', function() { - return p; - }), - n.d(e, 'inlineArrayTransformer', function() { - return v; - }), - n.d(e, 'splitStringTransformer', function() { - return m; - }), - n.d(e, 'removeNonPrintingValuesTransformer', function() { - return b; - }), - n.d(e, 'commaLists', function() { - return _; - }), - n.d(e, 'commaListsAnd', function() { - return x; - }), - n.d(e, 'commaListsOr', function() { - return w; - }), - n.d(e, 'html', function() { - return S; - }), - n.d(e, 'codeBlock', function() { - return S; - }), - n.d(e, 'source', function() { - return S; - }), - n.d(e, 'safeHtml', function() { - return E; - }), - n.d(e, 'oneLine', function() { - return k; - }), - n.d(e, 'oneLineTrim', function() { - return A; - }), - n.d(e, 'oneLineCommaLists', function() { - return T; - }), - n.d(e, 'oneLineCommaListsOr', function() { - return C; - }), - n.d(e, 'oneLineCommaListsAnd', function() { - return O; - }), - n.d(e, 'inlineLists', function() { - return P; - }), - n.d(e, 'oneLineInlineLists', function() { - return M; - }), - n.d(e, 'stripIndent', function() { - return L; - }), - n.d(e, 'stripIndents', function() { - return D; - }); + n.r(e); var r, i, o = (function() { @@ -153063,11 +152267,7 @@ object-assign Object.freeze( Object.defineProperties(r, { raw: { value: Object.freeze(i) } }) )); - function s(t, e) { - if (!(t instanceof e)) - throw new TypeError('Cannot call a class as a function'); - } - var u = (function() { + var s = (function() { function t() { for ( var e = this, n = arguments.length, r = Array(n), i = 0; @@ -153076,7 +152276,10 @@ object-assign ) r[i] = arguments[i]; return ( - s(this, t), + (function(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + })(this, t), (this.tag = function(t) { for ( var n = arguments.length, r = Array(n > 1 ? n - 1 : 0), i = 1; @@ -153151,7 +152354,7 @@ object-assign t ); })(), - l = function() { + u = function() { var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : ''; return { @@ -153164,14 +152367,14 @@ object-assign } }; }; - function c(t) { + function l(t) { if (Array.isArray(t)) { for (var e = 0, n = Array(t.length); e < t.length; e++) n[e] = t[e]; return n; } return Array.from(t); } - var f = function() { + var c = function() { var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] @@ -153184,7 +152387,7 @@ object-assign n && Math.min.apply( Math, - c( + l( n.map(function(t) { return t.length; }) @@ -153201,7 +152404,7 @@ object-assign } }; }, - d = function(t, e) { + f = function(t, e) { return { onEndResult: function(n) { if (null == t || null == e) @@ -153212,7 +152415,7 @@ object-assign } }; }, - h = function(t, e) { + d = function(t, e) { return { onSubstitution: function(n, r) { if (null == t || null == e) @@ -153223,7 +152426,7 @@ object-assign } }; }, - p = function(t, e) { + h = function(t, e) { return { onString: function(n) { if (null == t || null == e) @@ -153234,10 +152437,10 @@ object-assign } }; }, - g = { separator: '', conjunction: '', serial: !1 }, - v = function() { + p = { separator: '', conjunction: '', serial: !1 }, + g = function() { var t = - arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : g; + arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : p; return { onSubstitution: function(e, n) { if (Array.isArray(e)) { @@ -153270,74 +152473,283 @@ object-assign } }; }, - y = function(t) { + v = function(t) { return null != t && !Number.isNaN(t) && 'boolean' != typeof t; }, - b = function() { + y = function() { return { onSubstitution: function(t) { - return Array.isArray(t) ? t.filter(y) : y(t) ? t : ''; + return Array.isArray(t) ? t.filter(v) : v(t) ? t : ''; } }; }, - _ = new u(v({ separator: ',' }), f, l), - x = new u(v({ separator: ',', conjunction: 'and' }), f, l), - w = new u(v({ separator: ',', conjunction: 'or' }), f, l), - S = new u(m('\n'), b, v, f, l), - E = new u( + b = new s(g({ separator: ',' }), c, u), + _ = new s(g({ separator: ',', conjunction: 'and' }), c, u), + x = new s(g({ separator: ',', conjunction: 'or' }), c, u), + w = new s(m('\n'), y, g, c, u), + S = new s( m('\n'), - v, - f, - l, - h(/&/g, '&'), - h(//g, '>'), - h(/"/g, '"'), - h(/'/g, '''), - h(/`/g, '`') + g, + c, + u, + d(/&/g, '&'), + d(//g, '>'), + d(/"/g, '"'), + d(/'/g, '''), + d(/`/g, '`') ), - k = new u(d(/(?:\n(?:\s*))+/g, ' '), l), - A = new u(d(/(?:\n\s*)/g, ''), l), - T = new u(v({ separator: ',' }), d(/(?:\s+)/g, ' '), l), - C = new u( - v({ separator: ',', conjunction: 'or' }), - d(/(?:\s+)/g, ' '), - l + E = new s(f(/(?:\n(?:\s*))+/g, ' '), u), + k = new s(f(/(?:\n\s*)/g, ''), u), + A = new s(g({ separator: ',' }), f(/(?:\s+)/g, ' '), u), + T = new s( + g({ separator: ',', conjunction: 'or' }), + f(/(?:\s+)/g, ' '), + u ), - O = new u( - v({ separator: ',', conjunction: 'and' }), - d(/(?:\s+)/g, ' '), - l + C = new s( + g({ separator: ',', conjunction: 'and' }), + f(/(?:\s+)/g, ' '), + u ), - P = new u(v, f, l), - M = new u(v, d(/(?:\s+)/g, ' '), l), - L = new u(f, l), - D = new u(f('all'), l); - }, - function(t, e, n) { - 'use strict'; - n.r(e), - n.d(e, 'components', function() { - return Gt; + O = new s(g, c, u), + P = new s(g, f(/(?:\s+)/g, ' '), u), + M = new s(c, u), + L = new s(c('all'), u); + n.d(e, 'TemplateTag', function() { + return s; + }), + n.d(e, 'trimResultTransformer', function() { + return u; }), - n.d(e, 'createFilter', function() { - return Yt; + n.d(e, 'stripIndentTransformer', function() { + return c; }), - n.d(e, 'defaultTheme', function() { - return _e; + n.d(e, 'replaceResultTransformer', function() { + return f; }), - n.d(e, 'mergeStyles', function() { - return be; + n.d(e, 'replaceSubstitutionTransformer', function() { + return d; }), - n.d(e, 'NonceProvider', function() { - return Me; + n.d(e, 'replaceStringTransformer', function() { + return h; + }), + n.d(e, 'inlineArrayTransformer', function() { + return g; + }), + n.d(e, 'splitStringTransformer', function() { + return m; + }), + n.d(e, 'removeNonPrintingValuesTransformer', function() { + return y; + }), + n.d(e, 'commaLists', function() { + return b; + }), + n.d(e, 'commaListsAnd', function() { + return _; + }), + n.d(e, 'commaListsOr', function() { + return x; + }), + n.d(e, 'html', function() { + return w; + }), + n.d(e, 'codeBlock', function() { + return w; + }), + n.d(e, 'source', function() { + return w; + }), + n.d(e, 'safeHtml', function() { + return S; + }), + n.d(e, 'oneLine', function() { + return E; + }), + n.d(e, 'oneLineTrim', function() { + return k; + }), + n.d(e, 'oneLineCommaLists', function() { + return A; + }), + n.d(e, 'oneLineCommaListsOr', function() { + return T; + }), + n.d(e, 'oneLineCommaListsAnd', function() { + return C; + }), + n.d(e, 'inlineLists', function() { + return O; + }), + n.d(e, 'oneLineInlineLists', function() { + return P; + }), + n.d(e, 'stripIndent', function() { + return M; + }), + n.d(e, 'stripIndents', function() { + return L; }); - var r = n(0), - i = n.n(r), - o = n(24), - a = n(44), - s = n.n(a); - var u = (function() { + }, + function(t, e, n) { + 'use strict'; + n.r(e); + var r = n(11); + function i(t, e) { + if (null == t) return {}; + var n, + i, + o = Object(r.a)(t, e); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(t); + for (i = 0; i < a.length; i++) + (n = a[i]), + e.indexOf(n) >= 0 || + (Object.prototype.propertyIsEnumerable.call(t, n) && + (o[n] = t[n])); + } + return o; + } + var o = n(2); + function a(t) { + return ( + (function(t) { + if (Array.isArray(t)) { + for (var e = 0, n = new Array(t.length); e < t.length; e++) + n[e] = t[e]; + return n; + } + })(t) || + (function(t) { + if ( + Symbol.iterator in Object(t) || + '[object Arguments]' === Object.prototype.toString.call(t) + ) + return Array.from(t); + })(t) || + (function() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance' + ); + })() + ); + } + function s(t, e, n) { + return ( + e in t + ? Object.defineProperty(t, e, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (t[e] = n), + t + ); + } + function u(t) { + for (var e = 1; e < arguments.length; e++) { + var n = null != arguments[e] ? arguments[e] : {}, + r = Object.keys(n); + 'function' == typeof Object.getOwnPropertySymbols && + (r = r.concat( + Object.getOwnPropertySymbols(n).filter(function(t) { + return Object.getOwnPropertyDescriptor(n, t).enumerable; + }) + )), + r.forEach(function(e) { + s(t, e, n[e]); + }); + } + return t; + } + function l(t, e) { + if (!(t instanceof e)) + throw new TypeError('Cannot call a class as a function'); + } + function c(t, e) { + for (var n = 0; n < e.length; n++) { + var r = e[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(t, r.key, r); + } + } + function f(t, e, n) { + return e && c(t.prototype, e), n && c(t, n), t; + } + function d(t) { + return (d = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function(t) { + return typeof t; + } + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : typeof t; + })(t); + } + function h(t) { + return (h = + 'function' == typeof Symbol && 'symbol' === d(Symbol.iterator) + ? function(t) { + return d(t); + } + : function(t) { + return t && + 'function' == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? 'symbol' + : d(t); + })(t); + } + function p(t) { + if (void 0 === t) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called" + ); + return t; + } + function g(t, e) { + return !e || ('object' !== h(e) && 'function' != typeof e) ? p(t) : e; + } + function m(t) { + return (m = Object.setPrototypeOf + ? Object.getPrototypeOf + : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + })(t); + } + function v(t, e) { + return (v = + Object.setPrototypeOf || + function(t, e) { + return (t.__proto__ = e), t; + })(t, e); + } + function y(t, e) { + if ('function' != typeof e && null !== e) + throw new TypeError( + 'Super expression must either be null or a function' + ); + (t.prototype = Object.create(e && e.prototype, { + constructor: { value: t, writable: !0, configurable: !0 } + })), + e && v(t, e); + } + var b = n(0), + _ = n.n(b), + x = n(32), + w = n(48), + S = n.n(w); + var E = (function() { function t(t) { (this.isSpeedy = void 0 === t.speedy || t.speedy), (this.tags = []), @@ -153395,7 +152807,7 @@ object-assign t ); })(); - var l = function(t) { + var k = function(t) { function e(t, e, r) { var i = e.trim().split(p); e = i; @@ -153628,7 +153040,7 @@ object-assign r = t.substring(0, 3 !== e ? n : 10); return ( (n = t.substring(n + 1, t.length - 1)), - D(2 !== e ? r : r.replace(S, '$1'), n, e) + j(2 !== e ? r : r.replace(S, '$1'), n, e) ); } function o(t, e) { @@ -153653,11 +153065,11 @@ object-assign function s(t) { return ( void 0 !== (t = t.prefix) && - ((D = null), + ((j = null), t ? 'function' != typeof t ? (O = 1) - : ((O = 2), (D = t)) + : ((O = 2), (j = t)) : (O = 0)), s ); @@ -153680,10 +153092,10 @@ object-assign E = 0, k = 0, M = 0, - D = 0, + j = 0, R = (g = h = 0), - N = 0, z = 0, + N = 0, I = 0, F = 0, V = u.length, @@ -153692,12 +153104,12 @@ object-assign H = '', U = '', q = ''; - N < V; + z < V; ) { if ( - ((p = u.charCodeAt(N)), - N === B && + ((p = u.charCodeAt(z)), + z === B && 0 !== S + k + E + w && (0 !== S && (p = 47 === S ? 10 : 47), (k = E = w = 0), @@ -153706,8 +153118,8 @@ object-assign 0 === S + k + E + w) ) { if ( - N === B && - (0 < z && (G = G.replace(c, '')), 0 < G.trim().length) + z === B && + (0 < N && (G = G.replace(c, '')), 0 < G.trim().length) ) { switch (p) { case 32: @@ -153717,18 +153129,18 @@ object-assign case 10: break; default: - G += u.charAt(N); + G += u.charAt(z); } p = 59; } switch (p) { case 123: for ( - h = (G = G.trim()).charCodeAt(0), g = 1, F = ++N; - N < V; + h = (G = G.trim()).charCodeAt(0), g = 1, F = ++z; + z < V; ) { - switch ((p = u.charCodeAt(N))) { + switch ((p = u.charCodeAt(z))) { case 123: g++; break; @@ -153736,29 +153148,29 @@ object-assign g--; break; case 47: - switch ((p = u.charCodeAt(N + 1))) { + switch ((p = u.charCodeAt(z + 1))) { case 42: case 47: t: { - for (R = N + 1; R < B; ++R) + for (R = z + 1; R < B; ++R) switch (u.charCodeAt(R)) { case 47: if ( 42 === p && 42 === u.charCodeAt(R - 1) && - N + 2 !== R + z + 2 !== R ) { - N = R + 1; + z = R + 1; break t; } break; case 10: if (47 === p) { - N = R + 1; + z = R + 1; break t; } } - N = R; + z = R; } } break; @@ -153768,38 +153180,38 @@ object-assign p++; case 34: case 39: - for (; N++ < B && u.charCodeAt(N) !== p; ); + for (; z++ < B && u.charCodeAt(z) !== p; ); } if (0 === g) break; - N++; + z++; } switch ( - ((g = u.substring(F, N)), + ((g = u.substring(F, z)), 0 === h && (h = (G = G.replace(l, '').trim()).charCodeAt(0)), h) ) { case 64: switch ( - (0 < z && (G = G.replace(c, '')), + (0 < N && (G = G.replace(c, '')), (p = G.charCodeAt(1))) ) { case 100: case 109: case 115: case 45: - z = s; + N = s; break; default: - z = P; + N = P; } if ( - ((F = (g = t(s, z, g, p, d + 1)).length), + ((F = (g = t(s, N, g, p, d + 1)).length), 0 < L && ((x = a( 3, g, - (z = e(P, G, I)), + (N = e(P, G, I)), s, T, A, @@ -153808,7 +153220,7 @@ object-assign d, f )), - (G = z.join('')), + (G = N.join('')), void 0 !== x && 0 === (F = (g = x.trim()).length) && ((p = 0), (g = ''))), @@ -153823,7 +153235,7 @@ object-assign g = G + '{' + g + '}'; break; case 107: - (g = (G = G.replace(v, '$1 $2')) + '{' + g + '}'), + (g = (G = G.replace(m, '$1 $2')) + '{' + g + '}'), (g = 1 === O || (2 === O && i('@' + g, 3)) ? '@-webkit-' + g + '@' + g @@ -153838,15 +153250,15 @@ object-assign g = t(s, e(s, G, I), g, f, d + 1); } (U += g), - (g = I = z = R = h = 0), + (g = I = N = R = h = 0), (G = ''), - (p = u.charCodeAt(++N)); + (p = u.charCodeAt(++z)); break; case 125: case 59: if ( 1 < - (F = (G = (0 < z ? G.replace(c, '') : G).trim()).length) + (F = (G = (0 < N ? G.replace(c, '') : G).trim()).length) ) switch ( (0 === R && @@ -153866,14 +153278,14 @@ object-assign break; case 64: if (105 === p || 99 === p) { - q += G + u.charAt(N); + q += G + u.charAt(z); break; } default: 58 !== G.charCodeAt(F - 1) && (H += r(G, h, p, G.charCodeAt(2))); } - (I = z = R = h = 0), (G = ''), (p = u.charCodeAt(++N)); + (I = N = R = h = 0), (G = ''), (p = u.charCodeAt(++z)); } } switch (p) { @@ -153884,8 +153296,8 @@ object-assign : 0 === 1 + h && 107 !== f && 0 < G.length && - ((z = 1), (G += '\0')), - 0 < L * j && a(0, G, s, n, T, A, H.length, f, d, f), + ((N = 1), (G += '\0')), + 0 < L * D && a(0, G, s, n, T, A, H.length, f, d, f), (A = 1), T++; break; @@ -153896,7 +153308,7 @@ object-assign break; } default: - switch ((A++, (b = u.charAt(N)), p)) { + switch ((A++, (b = u.charAt(z)), p)) { case 9: case 32: if (0 === k + w + S) @@ -153921,22 +153333,22 @@ object-assign b = '\\v'; break; case 38: - 0 === k + S + w && ((z = I = 1), (b = '\f' + b)); + 0 === k + S + w && ((N = I = 1), (b = '\f' + b)); break; case 108: if (0 === k + S + w + C && 0 < R) - switch (N - R) { + switch (z - R) { case 2: - 112 === M && 58 === u.charCodeAt(N - 3) && (C = M); + 112 === M && 58 === u.charCodeAt(z - 3) && (C = M); case 8: - 111 === D && (C = D); + 111 === j && (C = j); } break; case 58: - 0 === k + S + w && (R = N); + 0 === k + S + w && (R = z); break; case 44: - 0 === S + E + k + w && ((z = 1), (b += '\r')); + 0 === S + E + k + w && ((N = 1), (b += '\r')); break; case 34: case 39: @@ -153954,7 +153366,7 @@ object-assign case 40: if (0 === k + S + w) { if (0 === h) - switch (2 * M + 3 * D) { + switch (2 * M + 3 * j) { case 533: break; default: @@ -153971,46 +153383,46 @@ object-assign if (!(0 < k + w + E)) switch (S) { case 0: - switch (2 * p + 3 * u.charCodeAt(N + 1)) { + switch (2 * p + 3 * u.charCodeAt(z + 1)) { case 235: S = 47; break; case 220: - (F = N), (S = 42); + (F = z), (S = 42); } break; case 42: 47 === p && 42 === M && - F + 2 !== N && + F + 2 !== z && (33 === u.charCodeAt(F + 2) && - (H += u.substring(F, N + 1)), + (H += u.substring(F, z + 1)), (b = ''), (S = 0)); } } 0 === S && (G += b); } - (D = M), (M = p), N++; + (j = M), (M = p), z++; } if (0 < (F = H.length)) { if ( - ((z = s), + ((N = s), 0 < L && - void 0 !== (x = a(2, H, z, n, T, A, F, f, d, f)) && - 0 === (H = x).length) + (void 0 !== (x = a(2, H, N, n, T, A, F, f, d, f)) && + 0 === (H = x).length)) ) return q + H + U; - if (((H = z.join(',') + '{' + H + '}'), 0 != O * C)) { + if (((H = N.join(',') + '{' + H + '}'), 0 != O * C)) { switch ((2 !== O || i(H, 2) || (C = 0), C)) { case 111: H = H.replace(y, ':-moz-$1') + H; break; case 112: H = - H.replace(m, '::-webkit-input-$1') + - H.replace(m, '::-moz-$1') + - H.replace(m, ':-ms-input-$1') + + H.replace(v, '::-webkit-input-$1') + + H.replace(v, '::-moz-$1') + + H.replace(v, ':-ms-input-$1') + H; } C = 0; @@ -154020,8 +153432,8 @@ object-assign })(P, s, n, 0, 0); return ( 0 < L && - void 0 !== (u = a(-2, f, s, s, T, A, f.length, 0, 0, 0)) && - (f = u), + (void 0 !== (u = a(-2, f, s, s, T, A, f.length, 0, 0, 0)) && + (f = u)), '', (C = 0), (A = T = 1), @@ -154035,8 +153447,8 @@ object-assign h = /([,: ])(transform)/g, p = /,\r+?/g, g = /([\t\r\n ])*\f?&/g, - v = /@(k\w+)\s*(\S*)\s*/, - m = /::(place)/g, + m = /@(k\w+)\s*(\S*)\s*/, + v = /::(place)/g, y = /:(read-only)/g, b = /[svh]\w+-[tblr]{2}/, _ = /\(\s*(.*)\s*\)/g, @@ -154052,8 +153464,8 @@ object-assign P = [], M = [], L = 0, - D = null, - j = 0; + j = null, + D = 0; return ( (u.use = function t(e) { switch (e) { @@ -154065,7 +153477,7 @@ object-assign if ('function' == typeof e) M[L++] = e; else if ('object' == typeof e) for (var n = 0, r = e.length; n < r; ++n) t(e[n]); - else j = 0 | !!e; + else D = 0 | !!e; } return t; }), @@ -154074,16 +153486,16 @@ object-assign u ); }; - function c(t) { - t && f.current.insert(t + '}'); + function A(t) { + t && T.current.insert(t + '}'); } - var f = { current: null }, - d = function(t, e, n, r, i, o, a, s, u, l) { + var T = { current: null }, + C = function(t, e, n, r, i, o, a, s, u, l) { switch (t) { case 1: switch (e.charCodeAt(0)) { case 64: - return f.current.insert(e + ';'), ''; + return T.current.insert(e + ';'), ''; case 108: if (98 === e.charCodeAt(2)) return ''; } @@ -154095,20 +153507,20 @@ object-assign switch (s) { case 102: case 112: - return f.current.insert(n[0] + e), ''; + return T.current.insert(n[0] + e), ''; default: return e + (0 === l ? '/*|*/' : ''); } case -2: - e.split('/*|*/}').forEach(c); + e.split('/*|*/}').forEach(A); } }, - h = function(t) { + O = function(t) { void 0 === t && (t = {}); var e, n = t.key || 'css'; void 0 !== t.prefix && (e = { prefix: t.prefix }); - var r = new l(e); + var r = new k(e); var i, o = {}; i = t.container || document.head; @@ -154123,14 +153535,14 @@ object-assign }), t.parentNode !== i && i.appendChild(t); }), - r.use(t.stylisPlugins)(d), + r.use(t.stylisPlugins)(C), (a = function(t, e, n, i) { var o = e.name; - (f.current = n), r(t, e.styles), i && (c.inserted[o] = !0); + (T.current = n), r(t, e.styles), i && (u.inserted[o] = !0); }); - var c = { + var u = { key: n, - sheet: new u({ + sheet: new E({ key: n, container: i, nonce: t.nonce, @@ -154141,9 +153553,9 @@ object-assign registered: {}, insert: a }; - return c; + return u; }; - function p(t, e, n) { + function P(t, e, n) { var r = ''; return ( n.split(' ').forEach(function(n) { @@ -154152,7 +153564,7 @@ object-assign r ); } - var g = function(t, e, n) { + var M = function(t, e, n) { var r = t.key + '-' + e.name; if ( (!1 === n && @@ -154167,40 +153579,43 @@ object-assign } while (void 0 !== i); } }; - var v = function(t) { - for (var e, n = 0, r = 0, i = t.length; i >= 4; ++r, i -= 4) + var L = function(t) { + for (var e, n = t.length, r = n ^ n, i = 0; n >= 4; ) (e = 1540483477 * (65535 & (e = - (255 & t.charCodeAt(r)) | - ((255 & t.charCodeAt(++r)) << 8) | - ((255 & t.charCodeAt(++r)) << 16) | - ((255 & t.charCodeAt(++r)) << 24))) + - ((59797 * (e >>> 16)) << 16)), - (n = - (1540483477 * (65535 & (e ^= e >>> 24)) + - ((59797 * (e >>> 16)) << 16)) ^ - (1540483477 * (65535 & n) + ((59797 * (n >>> 16)) << 16))); - switch (i) { + (255 & t.charCodeAt(i)) | + ((255 & t.charCodeAt(++i)) << 8) | + ((255 & t.charCodeAt(++i)) << 16) | + ((255 & t.charCodeAt(++i)) << 24))) + + (((1540483477 * (e >>> 16)) & 65535) << 16)), + (r = + (1540483477 * (65535 & r) + + (((1540483477 * (r >>> 16)) & 65535) << 16)) ^ + (e = + 1540483477 * (65535 & (e ^= e >>> 24)) + + (((1540483477 * (e >>> 16)) & 65535) << 16))), + (n -= 4), + ++i; + switch (n) { case 3: - n ^= (255 & t.charCodeAt(r + 2)) << 16; + r ^= (255 & t.charCodeAt(i + 2)) << 16; case 2: - n ^= (255 & t.charCodeAt(r + 1)) << 8; + r ^= (255 & t.charCodeAt(i + 1)) << 8; case 1: - n = - 1540483477 * (65535 & (n ^= 255 & t.charCodeAt(r))) + - ((59797 * (n >>> 16)) << 16); + r = + 1540483477 * (65535 & (r ^= 255 & t.charCodeAt(i))) + + (((1540483477 * (r >>> 16)) & 65535) << 16); } return ( - ((n = - 1540483477 * (65535 & (n ^= n >>> 13)) + - ((59797 * (n >>> 16)) << 16)) ^ - (n >>> 15)) >>> - 0 - ).toString(36); + (r = + 1540483477 * (65535 & (r ^= r >>> 13)) + + (((1540483477 * (r >>> 16)) & 65535) << 16)), + ((r ^= r >>> 15) >>> 0).toString(36) + ); }, - m = { + j = { animationIterationCount: 1, borderImageOutset: 1, borderImageSlice: 1, @@ -154247,36 +153662,36 @@ object-assign strokeOpacity: 1, strokeWidth: 1 }; - var y = /[A-Z]|^ms/g, - b = /_EMO_([^_]+?)_([^]*?)_EMO_/g, - _ = function(t) { + var D = /[A-Z]|^ms/g, + R = /_EMO_([^_]+?)_([^]*?)_EMO_/g, + z = function(t) { return 45 === t.charCodeAt(1); }, - x = function(t) { + N = function(t) { return null != t && 'boolean' != typeof t; }, - w = (function(t) { + I = (function(t) { var e = {}; return function(n) { return void 0 === e[n] && (e[n] = t(n)), e[n]; }; })(function(t) { - return _(t) ? t : t.replace(y, '-$&').toLowerCase(); + return z(t) ? t : t.replace(D, '-$&').toLowerCase(); }), - S = function(t, e) { + F = function(t, e) { switch (t) { case 'animation': case 'animationName': if ('string' == typeof e) - return e.replace(b, function(t, e, n) { - return (k = { name: e, styles: n, next: k }), e; + return e.replace(R, function(t, e, n) { + return (B = { name: e, styles: n, next: B }), e; }); } - return 1 === m[t] || _(t) || 'number' != typeof e || 0 === e + return 1 === j[t] || z(t) || 'number' != typeof e || 0 === e ? e : e + 'px'; }; - function E(t, e, n, r) { + function V(t, e, n, r) { if (null == n) return ''; if (void 0 !== n.__emotion_styles) return n; switch (typeof n) { @@ -154284,51 +153699,51 @@ object-assign return ''; case 'object': if (1 === n.anim) - return (k = { name: n.name, styles: n.styles, next: k }), n.name; + return (B = { name: n.name, styles: n.styles, next: B }), n.name; if (void 0 !== n.styles) { var i = n.next; if (void 0 !== i) for (; void 0 !== i; ) - (k = { name: i.name, styles: i.styles, next: k }), + (B = { name: i.name, styles: i.styles, next: B }), (i = i.next); return n.styles + ';'; } return (function(t, e, n) { var r = ''; if (Array.isArray(n)) - for (var i = 0; i < n.length; i++) r += E(t, e, n[i], !1); + for (var i = 0; i < n.length; i++) r += V(t, e, n[i], !1); else for (var o in n) { var a = n[o]; if ('object' != typeof a) null != e && void 0 !== e[a] ? (r += o + '{' + e[a] + '}') - : x(a) && (r += w(o) + ':' + S(o, a) + ';'); + : N(a) && (r += I(o) + ':' + F(o, a) + ';'); else if ( !Array.isArray(a) || 'string' != typeof a[0] || (null != e && void 0 !== e[a[0]]) ) { - var s = E(t, e, a, !1); + var s = V(t, e, a, !1); switch (o) { case 'animation': case 'animationName': - r += w(o) + ':' + s + ';'; + r += I(o) + ':' + s + ';'; break; default: r += o + '{' + s + '}'; } } else for (var u = 0; u < a.length; u++) - x(a[u]) && (r += w(o) + ':' + S(o, a[u]) + ';'); + N(a[u]) && (r += I(o) + ':' + F(o, a[u]) + ';'); } return r; })(t, e, n); case 'function': if (void 0 !== t) { - var o = k, + var o = B, a = n(t); - return (k = o), E(t, e, a, r); + return (B = o), V(t, e, a, r); } break; case 'string': @@ -154337,9 +153752,9 @@ object-assign var s = e[n]; return void 0 === s || r ? n : s; } - var k, - A = /label:\s*([^\s;\n{]+)\s*;/g; - var T = function(t, e, n) { + var B, + G = /label:\s*([^\s;\n{]+)\s*;/g; + var H = function(t, e, n) { if ( 1 === t.length && 'object' == typeof t[0] && @@ -154349,78 +153764,78 @@ object-assign return t[0]; var r = !0, i = ''; - k = void 0; + B = void 0; var o = t[0]; null == o || void 0 === o.raw - ? ((r = !1), (i += E(n, e, o, !1))) + ? ((r = !1), (i += V(n, e, o, !1))) : (i += o[0]); for (var a = 1; a < t.length; a++) - (i += E(n, e, t[a], 46 === i.charCodeAt(i.length - 1))), + (i += V(n, e, t[a], 46 === i.charCodeAt(i.length - 1))), r && (i += o[a]); - A.lastIndex = 0; - for (var s, u = ''; null !== (s = A.exec(i)); ) u += '-' + s[1]; - return { name: v(i) + u, styles: i, next: k }; + G.lastIndex = 0; + for (var s, u = ''; null !== (s = G.exec(i)); ) u += '-' + s[1]; + return { name: L(i) + u, styles: i, next: B }; }; - var C = function() { + var U = function() { for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++) e[n] = arguments[n]; - return T(e); + return H(e); }, - O = Object(r.createContext)( - 'undefined' != typeof HTMLElement ? h() : null + q = Object(b.createContext)( + 'undefined' != typeof HTMLElement ? O() : null ), - P = Object(r.createContext)({}), - M = O.Provider, - L = function(t) { - return Object(r.forwardRef)(function(e, n) { - return Object(r.createElement)(O.Consumer, null, function(r) { + W = Object(b.createContext)({}), + X = q.Provider, + Y = function(t) { + return Object(b.forwardRef)(function(e, n) { + return Object(b.createElement)(q.Consumer, null, function(r) { return t(e, r, n); }); }); }, - D = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__', - j = Object.prototype.hasOwnProperty, - R = function(t, e, n, i) { - var o = null === n ? e.css : e.css(n); - 'string' == typeof o && - void 0 !== t.registered[o] && - (o = t.registered[o]); - var a = e[D], - s = [o], - u = ''; + $ = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__', + K = Object.prototype.hasOwnProperty, + Q = function(t, e, n, r) { + var i = null === n ? e.css : e.css(n); + 'string' == typeof i && + void 0 !== t.registered[i] && + (i = t.registered[i]); + var o = e[$], + a = [i], + s = ''; 'string' == typeof e.className - ? (u = p(t.registered, s, e.className)) - : null != e.className && (u = e.className + ' '); - var l = T(s); - g(t, l, 'string' == typeof a); - u += t.key + '-' + l.name; - var c = {}; - for (var f in e) - j.call(e, f) && 'css' !== f && f !== D && (c[f] = e[f]); - return (c.ref = i), (c.className = u), Object(r.createElement)(a, c); - }, - N = L(function(t, e, n) { + ? (s = P(t.registered, a, e.className)) + : null != e.className && (s = e.className + ' '); + var u = H(a); + M(t, u, 'string' == typeof o); + s += t.key + '-' + u.name; + var l = {}; + for (var c in e) + K.call(e, c) && 'css' !== c && c !== $ && (l[c] = e[c]); + return (l.ref = r), (l.className = s), Object(b.createElement)(o, l); + }, + Z = Y(function(t, e, n) { return 'function' == typeof t.css - ? Object(r.createElement)(P.Consumer, null, function(r) { - return R(e, t, r, n); + ? Object(b.createElement)(W.Consumer, null, function(r) { + return Q(e, t, r, n); }) - : R(e, t, null, n); + : Q(e, t, null, n); }); - var z = function(t, e) { + var J = function(t, e) { var n = arguments; - if (null == e || !j.call(e, 'css')) - return r.createElement.apply(void 0, n); - var i = n.length, - o = new Array(i); - o[0] = N; - var a = {}; - for (var s in e) j.call(e, s) && (a[s] = e[s]); - (a[D] = t), (o[1] = a); - for (var u = 2; u < i; u++) o[u] = n[u]; - return r.createElement.apply(null, o); - }, - I = - (r.Component, + if (null == e || !K.call(e, 'css')) + return b.createElement.apply(void 0, n); + var r = n.length, + i = new Array(r); + i[0] = Z; + var o = {}; + for (var a in e) K.call(e, a) && (o[a] = e[a]); + (o[$] = t), (i[1] = o); + for (var s = 2; s < r; s++) i[s] = n[s]; + return b.createElement.apply(null, i); + }, + tt = + (b.Component, function t(e) { for (var n = e.length, r = 0, i = ''; r < n; r++) { var o = e[r]; @@ -154443,13 +153858,13 @@ object-assign } return i; }); - function F(t, e, n) { + function et(t, e, n) { var r = [], - i = p(t, r, n); + i = P(t, r, n); return r.length < 2 ? n : i + e(r); } - var V = L(function(t, e) { - return Object(r.createElement)(P.Consumer, null, function(n) { + var nt = Y(function(t, e) { + return Object(b.createElement)(W.Consumer, null, function(n) { var r = function() { for ( var t = arguments.length, n = new Array(t), r = 0; @@ -154457,8 +153872,8 @@ object-assign r++ ) n[r] = arguments[r]; - var i = T(n, e.registered); - return g(e, i, !1), e.key + '-' + i.name; + var i = H(n, e.registered); + return M(e, i, !1), e.key + '-' + i.name; }, i = { css: r, @@ -154469,7 +153884,7 @@ object-assign i++ ) n[i] = arguments[i]; - return F(e.registered, r, I(n)); + return et(e.registered, r, tt(n)); }, theme: n }, @@ -154477,17 +153892,18 @@ object-assign return !0, o; }); }), - B = n(5), - G = n(1), - H = n.n(G), - U = function() {}; - function q(t, e) { + rt = n(7), + it = n(1), + ot = n.n(it), + at = function() {}; + function st(t, e) { return e ? ('-' === e[0] ? t + e : t + '__' + e) : t; } - function W(t, e, n) { + function ut(t, e, n) { var r = [n]; if (e && t) - for (var i in e) e.hasOwnProperty(i) && e[i] && r.push('' + q(t, i)); + for (var i in e) + e.hasOwnProperty(i) && e[i] && r.push(''.concat(st(t, i))); return r .filter(function(t) { return t; @@ -154497,62 +153913,51 @@ object-assign }) .join(' '); } - var X = function(t) { + var lt = function(t) { return Array.isArray(t) ? t.filter(Boolean) - : 'object' == typeof t && null !== t + : 'object' === h(t) && null !== t ? [t] : []; }; - function Y(t) { + function ct(t) { return ( [document.documentElement, document.body, window].indexOf(t) > -1 ); } - function $(t) { - return Y(t) ? window.pageYOffset : t.scrollTop; + function ft(t) { + return ct(t) ? window.pageYOffset : t.scrollTop; } - function Q(t, e) { - Y(t) ? window.scrollTo(0, e) : (t.scrollTop = e); + function dt(t, e) { + ct(t) ? window.scrollTo(0, e) : (t.scrollTop = e); } - function K(t, e, n, r) { - void 0 === n && (n = 200), void 0 === r && (r = U); - var i = $(t), + function ht(t, e) { + var n = + arguments.length > 2 && void 0 !== arguments[2] + ? arguments[2] + : 200, + r = + arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : at, + i = ft(t), o = e - i, - a = 0; + a = 10, + s = 0; !(function e() { - var s, - u = o * ((s = (s = a += 10) / n - 1) * s * s + 1) + i; - Q(t, u), a < n ? window.requestAnimationFrame(e) : r(t); + var u, + l = o * ((u = (u = s += a) / n - 1) * u * u + 1) + i; + dt(t, l), s < n ? window.requestAnimationFrame(e) : r(t); })(); } - function Z() { + function pt() { try { return document.createEvent('TouchEvent'), !0; } catch (t) { return !1; } } - var J = n(41), - tt = n.n(J); - function et() { - return (et = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - function nt(t, e) { - (t.prototype = Object.create(e.prototype)), - (t.prototype.constructor = t), - (t.__proto__ = e); - } - function rt(t) { + var gt = n(87), + mt = n.n(gt); + function vt(t) { var e = t.maxHeight, n = t.menuEl, r = t.minHeight, @@ -154583,25 +153988,25 @@ object-assign h = f.height, p = f.top, g = n.offsetParent.getBoundingClientRect().top, - v = window.innerHeight, - m = $(u), + m = window.innerHeight, + v = ft(u), y = parseInt(getComputedStyle(n).marginBottom, 10), b = parseInt(getComputedStyle(n).marginTop, 10), _ = g - b, - x = v - p, - w = _ + m, - S = c - m - p, - E = d - v + m + y, - k = m + p - b; + x = m - p, + w = _ + v, + S = c - v - p, + E = d - m + v + y, + k = v + p - b; switch (i) { case 'auto': case 'bottom': if (x >= h) return { placement: 'bottom', maxHeight: e }; if (S >= h && !a) - return o && K(u, E, 160), { placement: 'bottom', maxHeight: e }; + return o && ht(u, E, 160), { placement: 'bottom', maxHeight: e }; if ((!a && S >= r) || (a && x >= r)) return ( - o && K(u, E, 160), + o && ht(u, E, 160), { placement: 'bottom', maxHeight: a ? x - y : S - y } ); if ('auto' === i || a) { @@ -154613,54 +154018,53 @@ object-assign ); } if ('bottom' === i) - return Q(u, E), { placement: 'bottom', maxHeight: e }; + return dt(u, E), { placement: 'bottom', maxHeight: e }; break; case 'top': if (_ >= h) return { placement: 'top', maxHeight: e }; if (w >= h && !a) - return o && K(u, k, 160), { placement: 'top', maxHeight: e }; + return o && ht(u, k, 160), { placement: 'top', maxHeight: e }; if ((!a && w >= r) || (a && _ >= r)) { var C = e; return ( ((!a && w >= r) || (a && _ >= r)) && (C = a ? _ - b : w - b), - o && K(u, k, 160), + o && ht(u, k, 160), { placement: 'top', maxHeight: C } ); } return { placement: 'bottom', maxHeight: e }; default: - throw new Error('Invalid placement provided "' + i + '".'); + throw new Error('Invalid placement provided "'.concat(i, '".')); } return l; } - var it = function(t) { + var yt = function(t) { return 'auto' === t ? 'bottom' : t; }, - ot = (function(t) { + bt = (function(t) { function e() { - for ( - var e, n = arguments.length, r = new Array(n), i = 0; - i < n; - i++ - ) - r[i] = arguments[i]; + var t, n; + l(this, e); + for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) + i[o] = arguments[o]; return ( - ((e = t.call.apply(t, [this].concat(r)) || this).state = { - maxHeight: e.props.maxMenuHeight, - placement: null - }), - (e.getPlacement = function(t) { - var n = e.props, - r = n.minMenuHeight, - i = n.maxMenuHeight, - o = n.menuPlacement, - a = n.menuPosition, - s = n.menuShouldScrollIntoView, - u = n.theme, - l = e.context.getPortalPlacement; + s( + p(p((n = g(this, (t = m(e)).call.apply(t, [this].concat(i)))))), + 'state', + { maxHeight: n.props.maxMenuHeight, placement: null } + ), + s(p(p(n)), 'getPlacement', function(t) { + var e = n.props, + r = e.minMenuHeight, + i = e.maxMenuHeight, + o = e.menuPlacement, + a = e.menuPosition, + s = e.menuShouldScrollIntoView, + u = e.theme, + l = n.context.getPortalPlacement; if (t) { var c = 'fixed' === a, - f = rt({ + f = vt({ maxHeight: i, menuEl: t, minHeight: r, @@ -154669,52 +154073,57 @@ object-assign isFixedPosition: c, theme: u }); - l && l(f), e.setState(f); + l && l(f), n.setState(f); } }), - (e.getUpdatedProps = function() { - var t = e.props.menuPlacement, - n = e.state.placement || it(t); - return et({}, e.props, { - placement: n, - maxHeight: e.state.maxHeight + s(p(p(n)), 'getUpdatedProps', function() { + var t = n.props.menuPlacement, + e = n.state.placement || yt(t); + return u({}, n.props, { + placement: e, + maxHeight: n.state.maxHeight }); }), - e + n ); } return ( - nt(e, t), - (e.prototype.render = function() { - return (0, this.props.children)({ - ref: this.getPlacement, - placerProps: this.getUpdatedProps() - }); - }), + y(e, t), + f(e, [ + { + key: 'render', + value: function() { + return (0, this.props.children)({ + ref: this.getPlacement, + placerProps: this.getUpdatedProps() + }); + } + } + ]), e ); - })(r.Component); - ot.contextTypes = { getPortalPlacement: H.a.func }; - var at = function(t) { + })(b.Component); + s(bt, 'contextTypes', { getPortalPlacement: ot.a.func }); + var _t = function(t) { var e = t.theme, n = e.spacing.baseUnit; return { color: e.colors.neutral40, - padding: 2 * n + 'px ' + 3 * n + 'px', + padding: ''.concat(2 * n, 'px ').concat(3 * n, 'px'), textAlign: 'center' }; }, - st = at, - ut = at, - lt = function(t) { + xt = _t, + wt = _t, + St = function(t) { var e = t.children, n = t.className, r = t.cx, i = t.getStyles, - o = t.innerProps; - return z( + a = t.innerProps; + return J( 'div', - et( + Object(o.a)( { css: i('noOptionsMessage', t), className: r( @@ -154722,100 +154131,113 @@ object-assign n ) }, - o + a ), e ); }; - lt.defaultProps = { children: 'No options' }; - var ct = function(t) { + St.defaultProps = { children: 'No options' }; + var Et = function(t) { var e = t.children, n = t.className, r = t.cx, i = t.getStyles, - o = t.innerProps; - return z( + a = t.innerProps; + return J( 'div', - et( + Object(o.a)( { css: i('loadingMessage', t), className: r({ 'menu-notice': !0, 'menu-notice--loading': !0 }, n) }, - o + a ), e ); }; - ct.defaultProps = { children: 'Loading...' }; - var ft = (function(t) { + Et.defaultProps = { children: 'Loading...' }; + var kt = (function(t) { function e() { - for (var e, n = arguments.length, r = new Array(n), i = 0; i < n; i++) - r[i] = arguments[i]; + var t, n; + l(this, e); + for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) + i[o] = arguments[o]; return ( - ((e = t.call.apply(t, [this].concat(r)) || this).state = { - placement: null - }), - (e.getPortalPlacement = function(t) { - var n = t.placement; - n !== it(e.props.menuPlacement) && e.setState({ placement: n }); + s( + p(p((n = g(this, (t = m(e)).call.apply(t, [this].concat(i)))))), + 'state', + { placement: null } + ), + s(p(p(n)), 'getPortalPlacement', function(t) { + var e = t.placement; + e !== yt(n.props.menuPlacement) && n.setState({ placement: e }); }), - e + n ); } - nt(e, t); - var n = e.prototype; return ( - (n.getChildContext = function() { - return { getPortalPlacement: this.getPortalPlacement }; - }), - (n.render = function() { - var t = this.props, - e = t.appendTo, - n = t.children, - r = t.controlElement, - i = t.menuPlacement, - o = t.menuPosition, - a = t.getStyles, - s = 'fixed' === o; - if ((!e && !s) || !r) return null; - var u = this.state.placement || it(i), - l = (function(t) { - var e = t.getBoundingClientRect(); - return { - bottom: e.bottom, - height: e.height, - left: e.left, - right: e.right, - top: e.top, - width: e.width - }; - })(r), - c = s ? 0 : window.pageYOffset, - f = l[u] + c, - d = z( - 'div', - { css: a('menuPortal', { offset: f, position: o, rect: l }) }, - n - ); - return e ? Object(B.createPortal)(d, e) : d; - }), + y(e, t), + f(e, [ + { + key: 'getChildContext', + value: function() { + return { getPortalPlacement: this.getPortalPlacement }; + } + }, + { + key: 'render', + value: function() { + var t = this.props, + e = t.appendTo, + n = t.children, + r = t.controlElement, + i = t.menuPlacement, + o = t.menuPosition, + a = t.getStyles, + s = 'fixed' === o; + if ((!e && !s) || !r) return null; + var u = this.state.placement || yt(i), + l = (function(t) { + var e = t.getBoundingClientRect(); + return { + bottom: e.bottom, + height: e.height, + left: e.left, + right: e.right, + top: e.top, + width: e.width + }; + })(r), + c = s ? 0 : window.pageYOffset, + f = l[u] + c, + d = J( + 'div', + { + css: a('menuPortal', { offset: f, position: o, rect: l }) + }, + n + ); + return e ? Object(rt.createPortal)(d, e) : d; + } + } + ]), e ); - })(r.Component); - ft.childContextTypes = { getPortalPlacement: H.a.func }; - var dt = Array.isArray, - ht = Object.keys, - pt = Object.prototype.hasOwnProperty; - function gt(t, e) { + })(b.Component); + s(kt, 'childContextTypes', { getPortalPlacement: ot.a.func }); + var At = Array.isArray, + Tt = Object.keys, + Ct = Object.prototype.hasOwnProperty; + function Ot(t, e) { try { return (function t(e, n) { if (e === n) return !0; - if (e && n && 'object' == typeof e && 'object' == typeof n) { + if (e && n && 'object' == h(e) && 'object' == h(n)) { var r, i, o, - a = dt(e), - s = dt(n); + a = At(e), + s = At(n); if (a && s) { if ((i = e.length) != n.length) return !1; for (r = i; 0 != r--; ) if (!t(e[r], n[r])) return !1; @@ -154830,9 +154252,9 @@ object-assign f = n instanceof RegExp; if (c != f) return !1; if (c && f) return e.toString() == n.toString(); - var d = ht(e); - if ((i = d.length) !== ht(n).length) return !1; - for (r = i; 0 != r--; ) if (!pt.call(n, d[r])) return !1; + var d = Tt(e); + if ((i = d.length) !== Tt(n).length) return !1; + for (r = i; 0 != r--; ) if (!Ct.call(n, d[r])) return !1; for (r = i; 0 != r--; ) if (!(('_owner' === (o = d[r]) && e.$$typeof) || t(e[o], n[o]))) return !1; @@ -154853,95 +154275,106 @@ object-assign throw t; } } - function vt() { - return (vt = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); + var Pt = (function(t) { + function e() { + return l(this, e), g(this, m(e).apply(this, arguments)); + } + return ( + y(e, t), + f(e, [ + { + key: 'render', + value: function() { + var t = this.props, + e = t.children, + n = t.className, + r = t.cx, + i = t.isMulti, + o = t.getStyles, + a = t.hasValue; + return J( + 'div', + { + css: o('valueContainer', this.props), + className: r( + { + 'value-container': !0, + 'value-container--is-multi': i, + 'value-container--has-value': a + }, + n + ) + }, + e + ); + } } - return t; - }).apply(this, arguments); - } - function mt() { - var t = (function(t, e) { - e || (e = t.slice(0)); - return (t.raw = e), t; - })(['\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n']); + ]), + e + ); + })(b.Component); + function Mt() { + var t, + e, + n = + ((t = [ + '\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n' + ]), + e || (e = t.slice(0)), + Object.freeze( + Object.defineProperties(t, { raw: { value: Object.freeze(e) } }) + )); return ( - (mt = function() { - return t; + (Mt = function() { + return n; }), - t + n ); } - function yt() { - return (yt = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - var bt = { + var Lt = { name: '19bqh2r', styles: 'display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;' }, - _t = function(t) { + jt = function(t) { var e = t.size, - n = (function(t, e) { - if (null == t) return {}; - var n, - r, - i = {}, - o = Object.keys(t); - for (r = 0; r < o.length; r++) - (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); - return i; - })(t, ['size']); - return z( + n = i(t, ['size']); + return J( 'svg', - yt( + Object(o.a)( { height: e, width: e, viewBox: '0 0 20 20', 'aria-hidden': 'true', focusable: 'false', - css: bt + css: Lt }, n ) ); }, - xt = function(t) { - return z( - _t, - yt({ size: 20 }, t), - z('path', { + Dt = function(t) { + return J( + jt, + Object(o.a)({ size: 20 }, t), + J('path', { d: 'M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z' }) ); }, - wt = function(t) { - return z( - _t, - yt({ size: 20 }, t), - z('path', { + Rt = function(t) { + return J( + jt, + Object(o.a)({ size: 20 }, t), + J('path', { d: 'M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z' }) ); }, - St = function(t) { + zt = function(t) { var e = t.isFocused, n = t.theme, r = n.spacing.baseUnit, @@ -154955,10 +154388,10 @@ object-assign ':hover': { color: e ? i.neutral80 : i.neutral40 } }; }, - Et = St, - kt = St, - At = (function() { - var t = C.apply(void 0, arguments), + Nt = zt, + It = zt, + Ft = (function() { + var t = U.apply(void 0, arguments), e = 'animation-' + t.name; return { name: e, @@ -154968,14 +154401,16 @@ object-assign return '_EMO_' + this.name + '_' + this.styles + '_EMO_'; } }; - })(mt()), - Tt = function(t) { + })(Mt()), + Vt = function(t) { var e = t.delay, n = t.offset; - return z('span', { - css: C( + return J('span', { + css: U( { - animation: At + ' 1s ease-in-out ' + e + 'ms infinite;', + animation: '' + .concat(Ft, ' 1s ease-in-out ') + .concat(e, 'ms infinite;'), backgroundColor: 'currentColor', borderRadius: '1em', display: 'inline-block', @@ -154988,213 +154423,159 @@ object-assign ) }); }, - Ct = function(t) { + Bt = function(t) { var e = t.className, n = t.cx, r = t.getStyles, i = t.innerProps, - o = t.isRtl; - return z( + a = t.isRtl; + return J( 'div', - yt({}, i, { + Object(o.a)({}, i, { css: r('loadingIndicator', t), className: n({ indicator: !0, 'loading-indicator': !0 }, e) }), - z(Tt, { delay: 0, offset: o }), - z(Tt, { delay: 160, offset: !0 }), - z(Tt, { delay: 320, offset: !o }) + J(Vt, { delay: 0, offset: a }), + J(Vt, { delay: 160, offset: !0 }), + J(Vt, { delay: 320, offset: !a }) ); }; - function Ot() { - return (Ot = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - Ct.defaultProps = { size: 4 }; - function Pt() { - return (Pt = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - function Mt() { - return (Mt = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - var Lt = function(t) { - return { - label: 'input', - background: 0, - border: 0, - fontSize: 'inherit', - opacity: t ? 0 : 1, - outline: 0, - padding: 0, - color: 'inherit' - }; - }; - function Dt() { - return (Dt = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - var jt = function(t) { + Bt.defaultProps = { size: 4 }; + var Gt = function(t) { + return { + label: 'input', + background: 0, + border: 0, + fontSize: 'inherit', + opacity: t ? 0 : 1, + outline: 0, + padding: 0, + color: 'inherit' + }; + }, + Ht = function(t) { var e = t.children, n = t.innerProps; - return z('div', n, e); + return J('div', n, e); }, - Rt = jt, - Nt = jt; - var zt = function(t) { - var e = t.children, - n = t.className, - r = t.components, - i = t.cx, - o = t.data, - a = t.getStyles, - s = t.innerProps, - u = t.isDisabled, - l = t.removeProps, - c = t.selectProps, - f = r.Container, - d = r.Label, - h = r.Remove; - return z(V, null, function(r) { - var p = r.css, - g = r.cx; - return z( - f, - { - data: o, - innerProps: Dt({}, s, { - className: g( - p(a('multiValue', t)), - i({ 'multi-value': !0, 'multi-value--is-disabled': u }, n) - ) - }), - selectProps: c - }, - z( - d, + Ut = Ht, + qt = Ht, + Wt = (function(t) { + function e() { + return l(this, e), g(this, m(e).apply(this, arguments)); + } + return ( + y(e, t), + f(e, [ { - data: o, - innerProps: { - className: g( - p(a('multiValueLabel', t)), - i({ 'multi-value__label': !0 }, n) - ) - }, - selectProps: c - }, - e - ), - z(h, { - data: o, - innerProps: Dt( - { - className: g( - p(a('multiValueRemove', t)), - i({ 'multi-value__remove': !0 }, n) - ) - }, - l - ), - selectProps: c - }) + key: 'render', + value: function() { + var t = this.props, + e = t.children, + n = t.innerProps; + return J('div', n, e || J(Dt, { size: 14 })); + } + } + ]), + e ); - }); - }; - function It() { - return (It = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - zt.defaultProps = { cropWithEllipsis: !0 }; - function Ft() { - return (Ft = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - function Vt() { - return (Vt = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - function Bt() { - return (Bt = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - var Gt = { + })(b.Component), + Xt = (function(t) { + function e() { + return l(this, e), g(this, m(e).apply(this, arguments)); + } + return ( + y(e, t), + f(e, [ + { + key: 'render', + value: function() { + var t = this, + e = this.props, + n = e.children, + r = e.className, + i = e.components, + o = e.cx, + a = e.data, + s = e.getStyles, + l = e.innerProps, + c = e.isDisabled, + f = e.removeProps, + d = e.selectProps, + h = i.Container, + p = i.Label, + g = i.Remove; + return J(nt, null, function(e) { + var i = e.css, + m = e.cx; + return J( + h, + { + data: a, + innerProps: u({}, l, { + className: m( + i(s('multiValue', t.props)), + o( + { + 'multi-value': !0, + 'multi-value--is-disabled': c + }, + r + ) + ) + }), + selectProps: d + }, + J( + p, + { + data: a, + innerProps: { + className: m( + i(s('multiValueLabel', t.props)), + o({ 'multi-value__label': !0 }, r) + ) + }, + selectProps: d + }, + n + ), + J(g, { + data: a, + innerProps: u( + { + className: m( + i(s('multiValueRemove', t.props)), + o({ 'multi-value__remove': !0 }, r) + ) + }, + f + ), + selectProps: d + }) + ); + }); + } + } + ]), + e + ); + })(b.Component); + s(Xt, 'defaultProps', { cropWithEllipsis: !0 }); + var Yt = { ClearIndicator: function(t) { var e = t.children, n = t.className, r = t.cx, i = t.getStyles, - o = t.innerProps; - return z( + a = t.innerProps; + return J( 'div', - yt({}, o, { + Object(o.a)({}, a, { css: i('clearIndicator', t), className: r({ indicator: !0, 'clear-indicator': !0 }, n) }), - e || z(xt, null) + e || J(Dt, null) ); }, Control: function(t) { @@ -155202,28 +154583,28 @@ object-assign n = t.cx, r = t.getStyles, i = t.className, - o = t.isDisabled, - a = t.isFocused, - s = t.innerRef, - u = t.innerProps, - l = t.menuIsOpen; - return z( + a = t.isDisabled, + s = t.isFocused, + u = t.innerRef, + l = t.innerProps, + c = t.menuIsOpen; + return J( 'div', - Ot( + Object(o.a)( { - ref: s, + ref: u, css: r('control', t), className: n( { control: !0, - 'control--is-disabled': o, - 'control--is-focused': a, - 'control--menu-is-open': l + 'control--is-disabled': a, + 'control--is-focused': s, + 'control--menu-is-open': c }, i ) }, - u + l ), e ); @@ -155233,70 +154614,60 @@ object-assign n = t.className, r = t.cx, i = t.getStyles, - o = t.innerProps; - return z( + a = t.innerProps; + return J( 'div', - yt({}, o, { + Object(o.a)({}, a, { css: i('dropdownIndicator', t), className: r({ indicator: !0, 'dropdown-indicator': !0 }, n) }), - e || z(wt, null) + e || J(Rt, null) ); }, - DownChevron: wt, - CrossIcon: xt, + DownChevron: Rt, + CrossIcon: Dt, Group: function(t) { var e = t.children, n = t.className, r = t.cx, i = t.getStyles, - o = t.Heading, - a = t.headingProps, - s = t.label, - u = t.theme, - l = t.selectProps; - return z( + a = t.Heading, + s = t.headingProps, + u = t.label, + l = t.theme, + c = t.selectProps; + return J( 'div', { css: i('group', t), className: r({ group: !0 }, n) }, - z( - o, - Pt({}, a, { selectProps: l, theme: u, getStyles: i, cx: r }), - s + J( + a, + Object(o.a)({}, s, { + selectProps: c, + theme: l, + getStyles: i, + cx: r + }), + u ), - z('div', null, e) + J('div', null, e) ); }, GroupHeading: function(t) { var e = t.className, n = t.cx, r = t.getStyles, - i = t.theme, - o = + a = t.theme, + s = (t.selectProps, - (function(t, e) { - if (null == t) return {}; - var n, - r, - i = {}, - o = Object.keys(t); - for (r = 0; r < o.length; r++) - (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); - return i; - })(t, [ - 'className', - 'cx', - 'getStyles', - 'theme', - 'selectProps' - ])); - return z( + i(t, ['className', 'cx', 'getStyles', 'theme', 'selectProps'])); + return J( 'div', - Pt( + Object(o.a)( { - css: r('groupHeading', Pt({ theme: i }, o)), + css: r('groupHeading', u({ theme: a }, s)), className: n({ 'group-heading': !0 }, e) }, - o + s ) ); }, @@ -155305,7 +154676,7 @@ object-assign n = t.className, r = t.cx, i = t.getStyles; - return z( + return J( 'div', { css: i('indicatorsContainer', t), @@ -155319,9 +154690,9 @@ object-assign n = t.cx, r = t.getStyles, i = t.innerProps; - return z( + return J( 'span', - yt({}, i, { + Object(o.a)({}, i, { css: r('indicatorSeparator', t), className: n({ 'indicator-separator': !0 }, e) }) @@ -155331,22 +154702,13 @@ object-assign var e = t.className, n = t.cx, r = t.getStyles, - i = t.innerRef, - o = t.isHidden, - a = t.isDisabled, - s = t.theme, - u = + a = t.innerRef, + s = t.isHidden, + l = t.isDisabled, + c = t.theme, + f = (t.selectProps, - (function(t, e) { - if (null == t) return {}; - var n, - r, - i = {}, - o = Object.keys(t); - for (r = 0; r < o.length; r++) - (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); - return i; - })(t, [ + i(t, [ 'className', 'cx', 'getStyles', @@ -155356,36 +154718,38 @@ object-assign 'theme', 'selectProps' ])); - return z( + return J( 'div', - { css: r('input', Mt({ theme: s }, u)) }, - z( - tt.a, - Mt( + { css: r('input', u({ theme: c }, f)) }, + J( + mt.a, + Object(o.a)( { className: n({ input: !0 }, e), - inputRef: i, - inputStyle: Lt(o), - disabled: a + inputRef: a, + inputStyle: Gt(s), + disabled: l }, - u + f ) ) ); }, - LoadingIndicator: Ct, + LoadingIndicator: Bt, Menu: function(t) { var e = t.children, n = t.className, r = t.cx, i = t.getStyles, - o = t.innerRef, - a = t.innerProps; - return z( + a = t.innerRef, + s = t.innerProps; + return J( 'div', - et({ css: i('menu', t), className: r({ menu: !0 }, n) }, a, { - ref: o - }), + Object(o.a)( + { css: i('menu', t), className: r({ menu: !0 }, n) }, + s, + { ref: a } + ), e ); }, @@ -155396,7 +154760,7 @@ object-assign i = t.getStyles, o = t.isMulti, a = t.innerRef; - return z( + return J( 'div', { css: i('menuList', t), @@ -155406,44 +154770,40 @@ object-assign e ); }, - MenuPortal: ft, - LoadingMessage: ct, - NoOptionsMessage: lt, - MultiValue: zt, - MultiValueContainer: Rt, - MultiValueLabel: Nt, - MultiValueRemove: function(t) { - var e = t.children, - n = t.innerProps; - return z('div', n, e || z(xt, { size: 14 })); - }, + MenuPortal: kt, + LoadingMessage: Et, + NoOptionsMessage: St, + MultiValue: Xt, + MultiValueContainer: Ut, + MultiValueLabel: qt, + MultiValueRemove: Wt, Option: function(t) { var e = t.children, n = t.className, r = t.cx, i = t.getStyles, - o = t.isDisabled, - a = t.isFocused, - s = t.isSelected, - u = t.innerRef, - l = t.innerProps; - return z( + a = t.isDisabled, + s = t.isFocused, + u = t.isSelected, + l = t.innerRef, + c = t.innerProps; + return J( 'div', - It( + Object(o.a)( { css: i('option', t), className: r( { option: !0, - 'option--is-disabled': o, - 'option--is-focused': a, - 'option--is-selected': s + 'option--is-disabled': a, + 'option--is-focused': s, + 'option--is-selected': u }, n ), - ref: u + ref: l }, - l + c ), e ); @@ -155453,15 +154813,15 @@ object-assign n = t.className, r = t.cx, i = t.getStyles, - o = t.innerProps; - return z( + a = t.innerProps; + return J( 'div', - Ft( + Object(o.a)( { css: i('placeholder', t), className: r({ placeholder: !0 }, n) }, - o + a ), e ); @@ -155471,17 +154831,17 @@ object-assign n = t.className, r = t.cx, i = t.getStyles, - o = t.innerProps, - a = t.isDisabled, - s = t.isRtl; - return z( + a = t.innerProps, + s = t.isDisabled, + u = t.isRtl; + return J( 'div', - vt( + Object(o.a)( { css: i('container', t), - className: r({ '--is-disabled': a, '--is-rtl': s }, n) + className: r({ '--is-disabled': s, '--is-rtl': u }, n) }, - o + a ), e ); @@ -155491,48 +154851,29 @@ object-assign n = t.className, r = t.cx, i = t.getStyles, - o = t.isDisabled, - a = t.innerProps; - return z( + a = t.isDisabled, + s = t.innerProps; + return J( 'div', - Vt( + Object(o.a)( { css: i('singleValue', t), className: r( - { 'single-value': !0, 'single-value--is-disabled': o }, + { 'single-value': !0, 'single-value--is-disabled': a }, n ) }, - a + s ), e ); }, - ValueContainer: function(t) { - var e = t.children, - n = t.className, - r = t.cx, - i = t.isMulti, - o = t.getStyles, - a = t.hasValue; - return z( - 'div', - { - css: o('valueContainer', t), - className: r( - { - 'value-container': !0, - 'value-container--is-multi': i, - 'value-container--has-value': a - }, - n - ) - }, - e - ); - } + ValueContainer: Pt }, - Ht = [ + $t = function(t) { + return u({}, Yt, t.components); + }, + Kt = [ { base: 'A', letters: /[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g @@ -155750,36 +155091,24 @@ object-assign letters: /[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g } ], - Ut = function(t) { - for (var e = 0; e < Ht.length; e++) - t = t.replace(Ht[e].letters, Ht[e].base); + Qt = function(t) { + for (var e = 0; e < Kt.length; e++) + t = t.replace(Kt[e].letters, Kt[e].base); return t; - }; - function qt() { - return (qt = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - var Wt = function(t) { + }, + Zt = function(t) { return t.replace(/^\s+|\s+$/g, ''); }, - Xt = function(t) { - return t.label + ' ' + t.value; + Jt = function(t) { + return ''.concat(t.label, ' ').concat(t.value); }, - Yt = function(t) { + te = function(t) { return function(e, n) { - var r = qt( + var r = u( { ignoreCase: !0, ignoreAccents: !0, - stringify: Xt, + stringify: Jt, trim: !0, matchFrom: 'any' }, @@ -155789,431 +155118,473 @@ object-assign o = r.ignoreAccents, a = r.stringify, s = r.trim, - u = r.matchFrom, - l = s ? Wt(n) : n, - c = s ? Wt(a(e)) : a(e); + l = r.matchFrom, + c = s ? Zt(n) : n, + f = s ? Zt(a(e)) : a(e); return ( - i && ((l = l.toLowerCase()), (c = c.toLowerCase())), - o && ((l = Ut(l)), (c = Ut(c))), - 'start' === u ? c.substr(0, l.length) === l : c.indexOf(l) > -1 + i && ((c = c.toLowerCase()), (f = f.toLowerCase())), + o && ((c = Qt(c)), (f = Qt(f))), + 'start' === l ? f.substr(0, c.length) === c : f.indexOf(c) > -1 ); }; - }; - function $t() { - return ($t = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - var Qt = { + }, + ee = { name: '1laao21-a11yText', styles: 'label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;' }, - Kt = function(t) { - return z('span', $t({ css: Qt }, t)); - }; - function Zt() { - return (Zt = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - function Jt(t) { - t.in, t.out, t.onExited, t.appear, t.enter, t.exit; - var e = t.innerRef, - n = - (t.emotion, - (function(t, e) { - if (null == t) return {}; - var n, - r, - i = {}, - o = Object.keys(t); - for (r = 0; r < o.length; r++) - (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); - return i; - })(t, [ - 'in', - 'out', - 'onExited', - 'appear', - 'enter', - 'exit', - 'innerRef', - 'emotion' - ])); - return z( - 'input', - Zt({ ref: e }, n, { - css: C( + ne = function(t) { + return J('span', Object(o.a)({ css: ee }, t)); + }, + re = (function(t) { + function e() { + return l(this, e), g(this, m(e).apply(this, arguments)); + } + return ( + y(e, t), + f(e, [ { - label: 'dummyInput', - background: 0, - border: 0, - fontSize: 'inherit', - outline: 0, - padding: 0, - width: 1, - color: 'transparent', - left: -100, - opacity: 0, - position: 'relative', - transform: 'scale(0)' - }, - '' - ) - }) - ); - } - var te = (function(t) { - var e, n; - function r() { - return t.apply(this, arguments) || this; + key: 'render', + value: function() { + var t = this.props, + e = + (t.in, + t.out, + t.onExited, + t.appear, + t.enter, + t.exit, + t.innerRef), + n = + (t.emotion, + i(t, [ + 'in', + 'out', + 'onExited', + 'appear', + 'enter', + 'exit', + 'innerRef', + 'emotion' + ])); + return J( + 'input', + Object(o.a)({ ref: e }, n, { + css: U( + { + label: 'dummyInput', + background: 0, + border: 0, + fontSize: 'inherit', + outline: 0, + padding: 0, + width: 1, + color: 'transparent', + left: -100, + opacity: 0, + position: 'relative', + transform: 'scale(0)' + }, + '' + ) + }) + ); + } + } + ]), + e + ); + })(b.Component), + ie = (function(t) { + function e() { + return l(this, e), g(this, m(e).apply(this, arguments)); } - (n = t), - ((e = r).prototype = Object.create(n.prototype)), - (e.prototype.constructor = e), - (e.__proto__ = n); - var i = r.prototype; return ( - (i.componentDidMount = function() { - this.props.innerRef(Object(B.findDOMNode)(this)); - }), - (i.componentWillUnmount = function() { - this.props.innerRef(null); - }), - (i.render = function() { - return this.props.children; - }), - r + y(e, t), + f(e, [ + { + key: 'componentDidMount', + value: function() { + this.props.innerRef(Object(rt.findDOMNode)(this)); + } + }, + { + key: 'componentWillUnmount', + value: function() { + this.props.innerRef(null); + } + }, + { + key: 'render', + value: function() { + return this.props.children; + } + } + ]), + e ); - })(r.Component), - ee = ['boxSizing', 'height', 'overflow', 'paddingRight', 'position'], - ne = { + })(b.Component), + oe = ['boxSizing', 'height', 'overflow', 'paddingRight', 'position'], + ae = { boxSizing: 'border-box', overflow: 'hidden', position: 'relative', height: '100%' }; - function re(t) { + function se(t) { t.preventDefault(); } - function ie(t) { + function ue(t) { t.stopPropagation(); } - function oe() { + function le() { var t = this.scrollTop, e = this.scrollHeight, n = t + this.offsetHeight; 0 === t ? (this.scrollTop = 1) : n === e && (this.scrollTop = t - 1); } - function ae() { + function ce() { return 'ontouchstart' in window || navigator.maxTouchPoints; } - var se = !(!window.document || !window.document.createElement), - ue = 0, - le = (function(t) { - var e, n; - function r() { - for ( - var e, n = arguments.length, r = new Array(n), i = 0; - i < n; - i++ - ) - r[i] = arguments[i]; + var fe = !(!window.document || !window.document.createElement), + de = 0, + he = (function(t) { + function e() { + var t, n; + l(this, e); + for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) + i[o] = arguments[o]; return ( - ((e = - t.call.apply(t, [this].concat(r)) || this).originalStyles = {}), - (e.listenerOptions = { capture: !1, passive: !1 }), - e + s( + p(p((n = g(this, (t = m(e)).call.apply(t, [this].concat(i)))))), + 'originalStyles', + {} + ), + s(p(p(n)), 'listenerOptions', { capture: !1, passive: !1 }), + n ); } - (n = t), - ((e = r).prototype = Object.create(n.prototype)), - (e.prototype.constructor = e), - (e.__proto__ = n); - var i = r.prototype; return ( - (i.componentDidMount = function() { - var t = this; - if (se) { - var e = this.props, - n = e.accountForScrollbars, - r = e.touchScrollTarget, - i = document.body, - o = i && i.style; - if ( - (n && - ee.forEach(function(e) { - var n = o && o[e]; - t.originalStyles[e] = n; - }), - n && ue < 1) - ) { - var a = parseInt(this.originalStyles.paddingRight, 10) || 0, - s = document.body ? document.body.clientWidth : 0, - u = window.innerWidth - s + a || 0; - Object.keys(ne).forEach(function(t) { - var e = ne[t]; - o && (o[t] = e); - }), - o && (o.paddingRight = u + 'px'); - } - i && - ae() && - (i.addEventListener('touchmove', re, this.listenerOptions), - r && - (r.addEventListener('touchstart', oe, this.listenerOptions), - r.addEventListener('touchmove', ie, this.listenerOptions))), - (ue += 1); - } - }), - (i.componentWillUnmount = function() { - var t = this; - if (se) { - var e = this.props, - n = e.accountForScrollbars, - r = e.touchScrollTarget, - i = document.body, - o = i && i.style; - (ue = Math.max(ue - 1, 0)), - n && - ue < 1 && - ee.forEach(function(e) { - var n = t.originalStyles[e]; - o && (o[e] = n); - }), - i && - ae() && - (i.removeEventListener( - 'touchmove', - re, - this.listenerOptions - ), - r && - (r.removeEventListener( - 'touchstart', - oe, - this.listenerOptions - ), - r.removeEventListener( + y(e, t), + f(e, [ + { + key: 'componentDidMount', + value: function() { + var t = this; + if (fe) { + var e = this.props, + n = e.accountForScrollbars, + r = e.touchScrollTarget, + i = document.body, + o = i && i.style; + if ( + (n && + oe.forEach(function(e) { + var n = o && o[e]; + t.originalStyles[e] = n; + }), + n && de < 1) + ) { + var a = + parseInt(this.originalStyles.paddingRight, 10) || 0, + s = document.body ? document.body.clientWidth : 0, + u = window.innerWidth - s + a || 0; + Object.keys(ae).forEach(function(t) { + var e = ae[t]; + o && (o[t] = e); + }), + o && (o.paddingRight = ''.concat(u, 'px')); + } + i && + ce() && + (i.addEventListener( 'touchmove', - ie, + se, this.listenerOptions - ))); + ), + r && + (r.addEventListener( + 'touchstart', + le, + this.listenerOptions + ), + r.addEventListener( + 'touchmove', + ue, + this.listenerOptions + ))), + (de += 1); + } + } + }, + { + key: 'componentWillUnmount', + value: function() { + var t = this; + if (fe) { + var e = this.props, + n = e.accountForScrollbars, + r = e.touchScrollTarget, + i = document.body, + o = i && i.style; + (de = Math.max(de - 1, 0)), + n && + de < 1 && + oe.forEach(function(e) { + var n = t.originalStyles[e]; + o && (o[e] = n); + }), + i && + ce() && + (i.removeEventListener( + 'touchmove', + se, + this.listenerOptions + ), + r && + (r.removeEventListener( + 'touchstart', + le, + this.listenerOptions + ), + r.removeEventListener( + 'touchmove', + ue, + this.listenerOptions + ))); + } + } + }, + { + key: 'render', + value: function() { + return null; + } } - }), - (i.render = function() { - return null; - }), - r + ]), + e ); - })(r.Component); - le.defaultProps = { accountForScrollbars: !0 }; - var ce = { + })(b.Component); + s(he, 'defaultProps', { accountForScrollbars: !0 }); + var pe = { name: '1dsbpcp', styles: 'position:fixed;left:0;bottom:0;right:0;top:0;' }, - fe = (function(t) { - var e, n; - function r() { - for ( - var e, n = arguments.length, r = new Array(n), i = 0; - i < n; - i++ - ) - r[i] = arguments[i]; + ge = (function(t) { + function e() { + var t, n; + l(this, e); + for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) + i[o] = arguments[o]; return ( - ((e = t.call.apply(t, [this].concat(r)) || this).state = { - touchScrollTarget: null - }), - (e.getScrollTarget = function(t) { - t !== e.state.touchScrollTarget && - e.setState({ touchScrollTarget: t }); + s( + p(p((n = g(this, (t = m(e)).call.apply(t, [this].concat(i)))))), + 'state', + { touchScrollTarget: null } + ), + s(p(p(n)), 'getScrollTarget', function(t) { + t !== n.state.touchScrollTarget && + n.setState({ touchScrollTarget: t }); }), - (e.blurSelectInput = function() { + s(p(p(n)), 'blurSelectInput', function() { document.activeElement && document.activeElement.blur(); }), - e + n ); } return ( - (n = t), - ((e = r).prototype = Object.create(n.prototype)), - (e.prototype.constructor = e), - (e.__proto__ = n), - (r.prototype.render = function() { - var t = this.props, - e = t.children, - n = t.isEnabled, - r = this.state.touchScrollTarget; - return n - ? z( - 'div', - null, - z('div', { onClick: this.blurSelectInput, css: ce }), - z(te, { innerRef: this.getScrollTarget }, e), - r ? z(le, { touchScrollTarget: r }) : null - ) - : e; - }), - r + y(e, t), + f(e, [ + { + key: 'render', + value: function() { + var t = this.props, + e = t.children, + n = t.isEnabled, + r = this.state.touchScrollTarget; + return n + ? J( + 'div', + null, + J('div', { onClick: this.blurSelectInput, css: pe }), + J(ie, { innerRef: this.getScrollTarget }, e), + r ? J(he, { touchScrollTarget: r }) : null + ) + : e; + } + } + ]), + e + ); + })(b.PureComponent), + me = (function(t) { + function e() { + var t, n; + l(this, e); + for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) + i[o] = arguments[o]; + return ( + s( + p(p((n = g(this, (t = m(e)).call.apply(t, [this].concat(i)))))), + 'isBottom', + !1 + ), + s(p(p(n)), 'isTop', !1), + s(p(p(n)), 'scrollTarget', void 0), + s(p(p(n)), 'touchStart', void 0), + s(p(p(n)), 'cancelScroll', function(t) { + t.preventDefault(), t.stopPropagation(); + }), + s(p(p(n)), 'handleEventDelta', function(t, e) { + var r = n.props, + i = r.onBottomArrive, + o = r.onBottomLeave, + a = r.onTopArrive, + s = r.onTopLeave, + u = n.scrollTarget, + l = u.scrollTop, + c = u.scrollHeight, + f = u.clientHeight, + d = n.scrollTarget, + h = e > 0, + p = c - f - l, + g = !1; + p > e && n.isBottom && (o && o(t), (n.isBottom = !1)), + h && n.isTop && (s && s(t), (n.isTop = !1)), + h && e > p + ? (i && !n.isBottom && i(t), + (d.scrollTop = c), + (g = !0), + (n.isBottom = !0)) + : !h && + -e > l && + (a && !n.isTop && a(t), + (d.scrollTop = 0), + (g = !0), + (n.isTop = !0)), + g && n.cancelScroll(t); + }), + s(p(p(n)), 'onWheel', function(t) { + n.handleEventDelta(t, t.deltaY); + }), + s(p(p(n)), 'onTouchStart', function(t) { + n.touchStart = t.changedTouches[0].clientY; + }), + s(p(p(n)), 'onTouchMove', function(t) { + var e = n.touchStart - t.changedTouches[0].clientY; + n.handleEventDelta(t, e); + }), + s(p(p(n)), 'getScrollTarget', function(t) { + n.scrollTarget = t; + }), + n + ); + } + return ( + y(e, t), + f(e, [ + { + key: 'componentDidMount', + value: function() { + this.startListening(this.scrollTarget); + } + }, + { + key: 'componentWillUnmount', + value: function() { + this.stopListening(this.scrollTarget); + } + }, + { + key: 'startListening', + value: function(t) { + t && + ('function' == typeof t.addEventListener && + t.addEventListener('wheel', this.onWheel, !1), + 'function' == typeof t.addEventListener && + t.addEventListener('touchstart', this.onTouchStart, !1), + 'function' == typeof t.addEventListener && + t.addEventListener('touchmove', this.onTouchMove, !1)); + } + }, + { + key: 'stopListening', + value: function(t) { + 'function' == typeof t.removeEventListener && + t.removeEventListener('wheel', this.onWheel, !1), + 'function' == typeof t.removeEventListener && + t.removeEventListener( + 'touchstart', + this.onTouchStart, + !1 + ), + 'function' == typeof t.removeEventListener && + t.removeEventListener('touchmove', this.onTouchMove, !1); + } + }, + { + key: 'render', + value: function() { + return _.a.createElement( + ie, + { innerRef: this.getScrollTarget }, + this.props.children + ); + } + } + ]), + e ); - })(r.PureComponent); - var de = (function(t) { - var e, n; - function r() { - for (var e, n = arguments.length, r = new Array(n), i = 0; i < n; i++) - r[i] = arguments[i]; + })(b.Component), + ve = (function(t) { + function e() { + return l(this, e), g(this, m(e).apply(this, arguments)); + } return ( - ((e = t.call.apply(t, [this].concat(r)) || this).isBottom = !1), - (e.isTop = !1), - (e.scrollTarget = void 0), - (e.touchStart = void 0), - (e.cancelScroll = function(t) { - t.preventDefault(), t.stopPropagation(); - }), - (e.handleEventDelta = function(t, n) { - var r = e.props, - i = r.onBottomArrive, - o = r.onBottomLeave, - a = r.onTopArrive, - s = r.onTopLeave, - u = e.scrollTarget, - l = u.scrollTop, - c = u.scrollHeight, - f = u.clientHeight, - d = e.scrollTarget, - h = n > 0, - p = c - f - l, - g = !1; - p > n && e.isBottom && (o && o(t), (e.isBottom = !1)), - h && e.isTop && (s && s(t), (e.isTop = !1)), - h && n > p - ? (i && !e.isBottom && i(t), - (d.scrollTop = c), - (g = !0), - (e.isBottom = !0)) - : !h && - -n > l && - (a && !e.isTop && a(t), - (d.scrollTop = 0), - (g = !0), - (e.isTop = !0)), - g && e.cancelScroll(t); - }), - (e.onWheel = function(t) { - e.handleEventDelta(t, t.deltaY); - }), - (e.onTouchStart = function(t) { - e.touchStart = t.changedTouches[0].clientY; - }), - (e.onTouchMove = function(t) { - var n = e.touchStart - t.changedTouches[0].clientY; - e.handleEventDelta(t, n); - }), - (e.getScrollTarget = function(t) { - e.scrollTarget = t; - }), + y(e, t), + f(e, [ + { + key: 'render', + value: function() { + var t = this.props, + e = t.isEnabled, + n = i(t, ['isEnabled']); + return e ? _.a.createElement(me, n) : this.props.children; + } + } + ]), e ); - } - (n = t), - ((e = r).prototype = Object.create(n.prototype)), - (e.prototype.constructor = e), - (e.__proto__ = n); - var o = r.prototype; - return ( - (o.componentDidMount = function() { - this.startListening(this.scrollTarget); - }), - (o.componentWillUnmount = function() { - this.stopListening(this.scrollTarget); - }), - (o.startListening = function(t) { - t && - ('function' == typeof t.addEventListener && - t.addEventListener('wheel', this.onWheel, !1), - 'function' == typeof t.addEventListener && - t.addEventListener('touchstart', this.onTouchStart, !1), - 'function' == typeof t.addEventListener && - t.addEventListener('touchmove', this.onTouchMove, !1)); - }), - (o.stopListening = function(t) { - 'function' == typeof t.removeEventListener && - t.removeEventListener('wheel', this.onWheel, !1), - 'function' == typeof t.removeEventListener && - t.removeEventListener('touchstart', this.onTouchStart, !1), - 'function' == typeof t.removeEventListener && - t.removeEventListener('touchmove', this.onTouchMove, !1); - }), - (o.render = function() { - return i.a.createElement( - te, - { innerRef: this.getScrollTarget }, - this.props.children - ); - }), - r - ); - })(r.Component); - function he(t) { - var e = t.isEnabled, - n = void 0 === e || e, - r = (function(t, e) { - if (null == t) return {}; - var n, - r, - i = {}, - o = Object.keys(t); - for (r = 0; r < o.length; r++) - (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); - return i; - })(t, ['isEnabled']); - return n ? i.a.createElement(de, r) : r.children; - } - var pe = function(t, e) { - void 0 === e && (e = {}); - var n = e, - r = n.isSearchable, - i = n.isMulti, - o = n.label, - a = n.isDisabled; + })(b.Component); + s(ve, 'defaultProps', { isEnabled: !0 }); + var ye = function(t) { + var e = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : {}, + n = e.isSearchable, + r = e.isMulti, + i = e.label, + o = e.isDisabled; switch (t) { case 'menu': - return ( - 'Use Up and Down to choose options' + - (a - ? '' - : ', press Enter to select the currently focused option') + + return 'Use Up and Down to choose options'.concat( + o ? '' : ', press Enter to select the currently focused option', ', press Escape to exit the menu, press Tab to select the option and exit the menu.' ); case 'input': - return ( - (o || 'Select') + - ' is focused ' + - (r ? ',type to refine list' : '') + - ', press Down to open the menu, ' + - (i ? ' press left to focus selected values' : '') - ); + return '' + .concat(i || 'Select', ' is focused ') + .concat( + n ? ',type to refine list' : '', + ', press Down to open the menu, ' + ) + .concat(r ? ' press left to focus selected values' : ''); case 'value': return 'Use left and right to toggle between focused values, press Backspace to remove the currently focused value'; } }, - ge = function(t, e) { + be = function(t, e) { var n = e.value, r = e.isDisabled; if (n) @@ -156221,306 +155592,310 @@ object-assign case 'deselect-option': case 'pop-value': case 'remove-value': - return 'option ' + n + ', deselected.'; + return 'option '.concat(n, ', deselected.'); case 'select-option': - return r - ? 'option ' + n + ' is disabled. Select another option.' - : 'option ' + n + ', selected.'; + return 'option '.concat( + n, + r ? ' is disabled. Select another option.' : ', selected.' + ); } }, - ve = function(t) { + _e = function(t) { return !!t.isDisabled; - }; - function me() { - return (me = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - var ye = { - clearIndicator: kt, - container: function(t) { - var e = t.isDisabled; - return { - label: 'container', - direction: t.isRtl ? 'rtl' : null, - pointerEvents: e ? 'none' : null, - position: 'relative' - }; - }, - control: function(t) { - var e = t.isDisabled, - n = t.isFocused, - r = t.theme, - i = r.colors, - o = r.borderRadius, - a = r.spacing; - return { - label: 'control', - alignItems: 'center', - backgroundColor: e ? i.neutral5 : i.neutral0, - borderColor: e ? i.neutral10 : n ? i.primary : i.neutral20, - borderRadius: o, - borderStyle: 'solid', - borderWidth: 1, - boxShadow: n ? '0 0 0 1px ' + i.primary : null, - cursor: 'default', - display: 'flex', - flexWrap: 'wrap', - justifyContent: 'space-between', - minHeight: a.controlHeight, - outline: '0 !important', - position: 'relative', - transition: 'all 100ms', - '&:hover': { borderColor: n ? i.primary : i.neutral30 } - }; - }, - dropdownIndicator: Et, - group: function(t) { - var e = t.theme.spacing; - return { paddingBottom: 2 * e.baseUnit, paddingTop: 2 * e.baseUnit }; - }, - groupHeading: function(t) { - var e = t.theme.spacing; - return { - label: 'group', - color: '#999', - cursor: 'default', - display: 'block', - fontSize: '75%', - fontWeight: '500', - marginBottom: '0.25em', - paddingLeft: 3 * e.baseUnit, - paddingRight: 3 * e.baseUnit, - textTransform: 'uppercase' - }; - }, - indicatorsContainer: function() { - return { - alignItems: 'center', - alignSelf: 'stretch', - display: 'flex', - flexShrink: 0 - }; - }, - indicatorSeparator: function(t) { - var e = t.isDisabled, - n = t.theme, - r = n.spacing.baseUnit, - i = n.colors; - return { - label: 'indicatorSeparator', - alignSelf: 'stretch', - backgroundColor: e ? i.neutral10 : i.neutral20, - marginBottom: 2 * r, - marginTop: 2 * r, - width: 1 - }; - }, - input: function(t) { - var e = t.isDisabled, - n = t.theme, - r = n.spacing, - i = n.colors; - return { - margin: r.baseUnit / 2, - paddingBottom: r.baseUnit / 2, - paddingTop: r.baseUnit / 2, - visibility: e ? 'hidden' : 'visible', - color: i.neutral80 - }; - }, - loadingIndicator: function(t) { - var e = t.isFocused, - n = t.size, - r = t.theme, - i = r.colors, - o = r.spacing.baseUnit; - return { - label: 'loadingIndicator', - color: e ? i.neutral60 : i.neutral20, - display: 'flex', - padding: 2 * o, - transition: 'color 150ms', - alignSelf: 'center', - fontSize: n, - lineHeight: 1, - marginRight: n, - textAlign: 'center', - verticalAlign: 'middle' - }; - }, - loadingMessage: ut, - menu: function(t) { - var e, - n = t.placement, - r = t.theme, - i = r.borderRadius, - o = r.spacing, - a = r.colors; - return ( - ((e = { label: 'menu' })[ - (function(t) { - return t ? { bottom: 'top', top: 'bottom' }[t] : 'bottom'; - })(n) - ] = '100%'), - (e.backgroundColor = a.neutral0), - (e.borderRadius = i), - (e.boxShadow = - '0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)'), - (e.marginBottom = o.menuGutter), - (e.marginTop = o.menuGutter), - (e.position = 'absolute'), - (e.width = '100%'), - (e.zIndex = 1), - e - ); - }, - menuList: function(t) { - var e = t.maxHeight, - n = t.theme.spacing.baseUnit; - return { - maxHeight: e, - overflowY: 'auto', - paddingBottom: n, - paddingTop: n, - position: 'relative', - WebkitOverflowScrolling: 'touch' - }; - }, - menuPortal: function(t) { - var e = t.rect, - n = t.offset, - r = t.position; - return { - left: e.left, - position: r, - top: n, - width: e.width, - zIndex: 1 - }; - }, - multiValue: function(t) { - var e = t.theme, - n = e.spacing, - r = e.borderRadius; - return { - label: 'multiValue', - backgroundColor: e.colors.neutral10, - borderRadius: r / 2, - display: 'flex', - margin: n.baseUnit / 2, - minWidth: 0 - }; - }, - multiValueLabel: function(t) { - var e = t.theme, - n = e.borderRadius, - r = e.colors, - i = t.cropWithEllipsis; - return { - borderRadius: n / 2, - color: r.neutral80, - fontSize: '85%', - overflow: 'hidden', - padding: 3, - paddingLeft: 6, - textOverflow: i ? 'ellipsis' : null, - whiteSpace: 'nowrap' - }; - }, - multiValueRemove: function(t) { - var e = t.theme, - n = e.spacing, - r = e.borderRadius, - i = e.colors; - return { - alignItems: 'center', - borderRadius: r / 2, - backgroundColor: t.isFocused && i.dangerLight, - display: 'flex', - paddingLeft: n.baseUnit, - paddingRight: n.baseUnit, - ':hover': { backgroundColor: i.dangerLight, color: i.danger } - }; - }, - noOptionsMessage: st, - option: function(t) { - var e = t.isDisabled, - n = t.isFocused, - r = t.isSelected, - i = t.theme, - o = i.spacing, - a = i.colors; - return { - label: 'option', - backgroundColor: r ? a.primary : n ? a.primary25 : 'transparent', - color: e ? a.neutral20 : r ? a.neutral0 : 'inherit', - cursor: 'default', - display: 'block', - fontSize: 'inherit', - padding: 2 * o.baseUnit + 'px ' + 3 * o.baseUnit + 'px', - width: '100%', - userSelect: 'none', - WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)', - ':active': { backgroundColor: !e && (r ? a.primary : a.primary50) } - }; - }, - placeholder: function(t) { - var e = t.theme, - n = e.spacing; - return { - label: 'placeholder', - color: e.colors.neutral50, - marginLeft: n.baseUnit / 2, - marginRight: n.baseUnit / 2, - position: 'absolute', - top: '50%', - transform: 'translateY(-50%)' - }; - }, - singleValue: function(t) { - var e = t.isDisabled, - n = t.theme, - r = n.spacing, - i = n.colors; - return { - label: 'singleValue', - color: e ? i.neutral40 : i.neutral80, - marginLeft: r.baseUnit / 2, - marginRight: r.baseUnit / 2, - maxWidth: 'calc(100% - ' + 2 * r.baseUnit + 'px)', - overflow: 'hidden', - position: 'absolute', - textOverflow: 'ellipsis', - whiteSpace: 'nowrap', - top: '50%', - transform: 'translateY(-50%)' - }; }, - valueContainer: function(t) { - var e = t.theme.spacing; - return { - alignItems: 'center', - display: 'flex', - flex: 1, - flexWrap: 'wrap', - padding: e.baseUnit / 2 + 'px ' + 2 * e.baseUnit + 'px', - WebkitOverflowScrolling: 'touch', - position: 'relative', - overflow: 'hidden' - }; - } - }; - function be(t, e) { - void 0 === e && (e = {}); - var n = me({}, t); + xe = { + clearIndicator: It, + container: function(t) { + var e = t.isDisabled; + return { + label: 'container', + direction: t.isRtl ? 'rtl' : null, + pointerEvents: e ? 'none' : null, + position: 'relative' + }; + }, + control: function(t) { + var e = t.isDisabled, + n = t.isFocused, + r = t.theme, + i = r.colors, + o = r.borderRadius, + a = r.spacing; + return { + label: 'control', + alignItems: 'center', + backgroundColor: e ? i.neutral5 : i.neutral0, + borderColor: e ? i.neutral10 : n ? i.primary : i.neutral20, + borderRadius: o, + borderStyle: 'solid', + borderWidth: 1, + boxShadow: n ? '0 0 0 1px '.concat(i.primary) : null, + cursor: 'default', + display: 'flex', + flexWrap: 'wrap', + justifyContent: 'space-between', + minHeight: a.controlHeight, + outline: '0 !important', + position: 'relative', + transition: 'all 100ms', + '&:hover': { borderColor: n ? i.primary : i.neutral30 } + }; + }, + dropdownIndicator: Nt, + group: function(t) { + var e = t.theme.spacing; + return { + paddingBottom: 2 * e.baseUnit, + paddingTop: 2 * e.baseUnit + }; + }, + groupHeading: function(t) { + var e = t.theme.spacing; + return { + label: 'group', + color: '#999', + cursor: 'default', + display: 'block', + fontSize: '75%', + fontWeight: '500', + marginBottom: '0.25em', + paddingLeft: 3 * e.baseUnit, + paddingRight: 3 * e.baseUnit, + textTransform: 'uppercase' + }; + }, + indicatorsContainer: function() { + return { + alignItems: 'center', + alignSelf: 'stretch', + display: 'flex', + flexShrink: 0 + }; + }, + indicatorSeparator: function(t) { + var e = t.isDisabled, + n = t.theme, + r = n.spacing.baseUnit, + i = n.colors; + return { + label: 'indicatorSeparator', + alignSelf: 'stretch', + backgroundColor: e ? i.neutral10 : i.neutral20, + marginBottom: 2 * r, + marginTop: 2 * r, + width: 1 + }; + }, + input: function(t) { + var e = t.isDisabled, + n = t.theme, + r = n.spacing, + i = n.colors; + return { + margin: r.baseUnit / 2, + paddingBottom: r.baseUnit / 2, + paddingTop: r.baseUnit / 2, + visibility: e ? 'hidden' : 'visible', + color: i.neutral80 + }; + }, + loadingIndicator: function(t) { + var e = t.isFocused, + n = t.size, + r = t.theme, + i = r.colors, + o = r.spacing.baseUnit; + return { + label: 'loadingIndicator', + color: e ? i.neutral60 : i.neutral20, + display: 'flex', + padding: 2 * o, + transition: 'color 150ms', + alignSelf: 'center', + fontSize: n, + lineHeight: 1, + marginRight: n, + textAlign: 'center', + verticalAlign: 'middle' + }; + }, + loadingMessage: wt, + menu: function(t) { + var e, + n = t.placement, + r = t.theme, + i = r.borderRadius, + o = r.spacing, + a = r.colors; + return ( + s( + (e = { label: 'menu' }), + (function(t) { + return t ? { bottom: 'top', top: 'bottom' }[t] : 'bottom'; + })(n), + '100%' + ), + s(e, 'backgroundColor', a.neutral0), + s(e, 'borderRadius', i), + s( + e, + 'boxShadow', + '0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)' + ), + s(e, 'marginBottom', o.menuGutter), + s(e, 'marginTop', o.menuGutter), + s(e, 'position', 'absolute'), + s(e, 'width', '100%'), + s(e, 'zIndex', 1), + e + ); + }, + menuList: function(t) { + var e = t.maxHeight, + n = t.theme.spacing.baseUnit; + return { + maxHeight: e, + overflowY: 'auto', + paddingBottom: n, + paddingTop: n, + position: 'relative', + WebkitOverflowScrolling: 'touch' + }; + }, + menuPortal: function(t) { + var e = t.rect, + n = t.offset, + r = t.position; + return { + left: e.left, + position: r, + top: n, + width: e.width, + zIndex: 1 + }; + }, + multiValue: function(t) { + var e = t.theme, + n = e.spacing, + r = e.borderRadius; + return { + label: 'multiValue', + backgroundColor: e.colors.neutral10, + borderRadius: r / 2, + display: 'flex', + margin: n.baseUnit / 2, + minWidth: 0 + }; + }, + multiValueLabel: function(t) { + var e = t.theme, + n = e.borderRadius, + r = e.colors, + i = t.cropWithEllipsis; + return { + borderRadius: n / 2, + color: r.neutral80, + fontSize: '85%', + overflow: 'hidden', + padding: 3, + paddingLeft: 6, + textOverflow: i ? 'ellipsis' : null, + whiteSpace: 'nowrap' + }; + }, + multiValueRemove: function(t) { + var e = t.theme, + n = e.spacing, + r = e.borderRadius, + i = e.colors; + return { + alignItems: 'center', + borderRadius: r / 2, + backgroundColor: t.isFocused && i.dangerLight, + display: 'flex', + paddingLeft: n.baseUnit, + paddingRight: n.baseUnit, + ':hover': { backgroundColor: i.dangerLight, color: i.danger } + }; + }, + noOptionsMessage: xt, + option: function(t) { + var e = t.isDisabled, + n = t.isFocused, + r = t.isSelected, + i = t.theme, + o = i.spacing, + a = i.colors; + return { + label: 'option', + backgroundColor: r ? a.primary : n ? a.primary25 : 'transparent', + color: e ? a.neutral20 : r ? a.neutral0 : 'inherit', + cursor: 'default', + display: 'block', + fontSize: 'inherit', + padding: '' + .concat(2 * o.baseUnit, 'px ') + .concat(3 * o.baseUnit, 'px'), + width: '100%', + userSelect: 'none', + WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)', + ':active': { + backgroundColor: !e && (r ? a.primary : a.primary50) + } + }; + }, + placeholder: function(t) { + var e = t.theme, + n = e.spacing; + return { + label: 'placeholder', + color: e.colors.neutral50, + marginLeft: n.baseUnit / 2, + marginRight: n.baseUnit / 2, + position: 'absolute', + top: '50%', + transform: 'translateY(-50%)' + }; + }, + singleValue: function(t) { + var e = t.isDisabled, + n = t.theme, + r = n.spacing, + i = n.colors; + return { + label: 'singleValue', + color: e ? i.neutral40 : i.neutral80, + marginLeft: r.baseUnit / 2, + marginRight: r.baseUnit / 2, + maxWidth: 'calc(100% - '.concat(2 * r.baseUnit, 'px)'), + overflow: 'hidden', + position: 'absolute', + textOverflow: 'ellipsis', + whiteSpace: 'nowrap', + top: '50%', + transform: 'translateY(-50%)' + }; + }, + valueContainer: function(t) { + var e = t.theme.spacing; + return { + alignItems: 'center', + display: 'flex', + flex: 1, + flexWrap: 'wrap', + padding: '' + .concat(e.baseUnit / 2, 'px ') + .concat(2 * e.baseUnit, 'px'), + WebkitOverflowScrolling: 'touch', + position: 'relative', + overflow: 'hidden' + }; + } + }; + function we(t) { + var e = + arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, + n = u({}, t); return ( Object.keys(e).forEach(function(r) { t[r] @@ -156532,58 +155907,39 @@ object-assign n ); } - var _e = { - borderRadius: 4, - colors: { - primary: '#2684FF', - primary75: '#4C9AFF', - primary50: '#B2D4FF', - primary25: '#DEEBFF', - danger: '#DE350B', - dangerLight: '#FFBDAD', - neutral0: 'hsl(0, 0%, 100%)', - neutral5: 'hsl(0, 0%, 95%)', - neutral10: 'hsl(0, 0%, 90%)', - neutral20: 'hsl(0, 0%, 80%)', - neutral30: 'hsl(0, 0%, 70%)', - neutral40: 'hsl(0, 0%, 60%)', - neutral50: 'hsl(0, 0%, 50%)', - neutral60: 'hsl(0, 0%, 40%)', - neutral70: 'hsl(0, 0%, 30%)', - neutral80: 'hsl(0, 0%, 20%)', - neutral90: 'hsl(0, 0%, 10%)' - }, - spacing: { baseUnit: 4, controlHeight: 38, menuGutter: 8 } - }; - function xe() { - return (xe = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - function we(t) { - if (void 0 === t) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return t; - } var Se = { + borderRadius: 4, + colors: { + primary: '#2684FF', + primary75: '#4C9AFF', + primary50: '#B2D4FF', + primary25: '#DEEBFF', + danger: '#DE350B', + dangerLight: '#FFBDAD', + neutral0: 'hsl(0, 0%, 100%)', + neutral5: 'hsl(0, 0%, 95%)', + neutral10: 'hsl(0, 0%, 90%)', + neutral20: 'hsl(0, 0%, 80%)', + neutral30: 'hsl(0, 0%, 70%)', + neutral40: 'hsl(0, 0%, 60%)', + neutral50: 'hsl(0, 0%, 50%)', + neutral60: 'hsl(0, 0%, 40%)', + neutral70: 'hsl(0, 0%, 30%)', + neutral80: 'hsl(0, 0%, 20%)', + neutral90: 'hsl(0, 0%, 10%)' + }, + spacing: { baseUnit: 4, controlHeight: 38, menuGutter: 8 } + }, + Ee = { backspaceRemovesValue: !0, - blurInputOnSelect: Z(), - captureMenuScroll: !Z(), + blurInputOnSelect: pt(), + captureMenuScroll: !pt(), closeMenuOnSelect: !0, closeMenuOnScroll: !1, components: {}, controlShouldRenderValue: !0, escapeClearsValue: !1, - filterOption: Yt(), + filterOption: te(), formatGroupLabel: function(t) { return t.label; }, @@ -156598,7 +155954,7 @@ object-assign isMulti: !1, isRtl: !1, isSearchable: !0, - isOptionDisabled: ve, + isOptionDisabled: _e, loadingMessage: function() { return 'Loading...'; }, @@ -156627,68 +155983,74 @@ object-assign placeholder: 'Select...', screenReaderStatus: function(t) { var e = t.count; - return e + ' result' + (1 !== e ? 's' : '') + ' available'; + return '' + .concat(e, ' result') + .concat(1 !== e ? 's' : '', ' available'); }, styles: {}, tabIndex: '0', tabSelectsValue: !0 }, - Ee = 1, - ke = (function(t) { - var e, n; - function r(e) { + ke = 1, + Ae = (function(t) { + function e(t) { var n; - ((n = t.call(this, e) || this).state = { - ariaLiveSelection: '', - ariaLiveContext: '', - focusedOption: null, - focusedValue: null, - inputIsHidden: !1, - isFocused: !1, - menuOptions: { render: [], focusable: [] }, - selectValue: [] - }), - (n.blockOptionHover = !1), - (n.isComposing = !1), - (n.clearFocusValueOnUpdate = !1), - (n.commonProps = void 0), - (n.components = void 0), - (n.hasGroups = !1), - (n.initialTouchX = 0), - (n.initialTouchY = 0), - (n.inputIsHiddenAfterUpdate = void 0), - (n.instancePrefix = ''), - (n.openAfterFocus = !1), - (n.scrollToFocusedOptionOnUpdate = !1), - (n.userIsDragging = void 0), - (n.controlRef = null), - (n.getControlRef = function(t) { + l(this, e), + s(p(p((n = g(this, m(e).call(this, t))))), 'state', { + ariaLiveSelection: '', + ariaLiveContext: '', + focusedOption: null, + focusedValue: null, + inputIsHidden: !1, + isFocused: !1, + menuOptions: { render: [], focusable: [] }, + selectValue: [] + }), + s(p(p(n)), 'blockOptionHover', !1), + s(p(p(n)), 'isComposing', !1), + s(p(p(n)), 'clearFocusValueOnUpdate', !1), + s(p(p(n)), 'commonProps', void 0), + s(p(p(n)), 'components', void 0), + s(p(p(n)), 'hasGroups', !1), + s(p(p(n)), 'initialTouchX', 0), + s(p(p(n)), 'initialTouchY', 0), + s(p(p(n)), 'inputIsHiddenAfterUpdate', void 0), + s(p(p(n)), 'instancePrefix', ''), + s(p(p(n)), 'openAfterFocus', !1), + s(p(p(n)), 'scrollToFocusedOptionOnUpdate', !1), + s(p(p(n)), 'userIsDragging', void 0), + s(p(p(n)), 'controlRef', null), + s(p(p(n)), 'getControlRef', function(t) { n.controlRef = t; }), - (n.focusedOptionRef = null), - (n.getFocusedOptionRef = function(t) { + s(p(p(n)), 'focusedOptionRef', null), + s(p(p(n)), 'getFocusedOptionRef', function(t) { n.focusedOptionRef = t; }), - (n.menuListRef = null), - (n.getMenuListRef = function(t) { + s(p(p(n)), 'menuListRef', null), + s(p(p(n)), 'getMenuListRef', function(t) { n.menuListRef = t; }), - (n.inputRef = null), - (n.getInputRef = function(t) { + s(p(p(n)), 'inputRef', null), + s(p(p(n)), 'getInputRef', function(t) { n.inputRef = t; }), - (n.cacheComponents = function(t) { - n.components = Bt({}, Gt, { components: t }.components); + s(p(p(n)), 'cacheComponents', function(t) { + n.components = $t({ components: t }); }), - (n.focus = n.focusInput), - (n.blur = n.blurInput), - (n.onChange = function(t, e) { + s(p(p(n)), 'focus', n.focusInput), + s(p(p(n)), 'blur', n.blurInput), + s(p(p(n)), 'onChange', function(t, e) { var r = n.props; - (0, r.onChange)(t, xe({}, e, { name: r.name })); + (0, r.onChange)(t, u({}, e, { name: r.name })); }), - (n.setValue = function(t, e, r) { - void 0 === e && (e = 'set-value'); - var i = n.props, + s(p(p(n)), 'setValue', function(t) { + var e = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : 'set-value', + r = arguments.length > 2 ? arguments[2] : void 0, + i = n.props, o = i.closeMenuOnSelect, a = i.isMulti; n.onInputChange('', { action: 'set-value' }), @@ -156696,17 +156058,17 @@ object-assign (n.clearFocusValueOnUpdate = !0), n.onChange(t, { action: e, option: r }); }), - (n.selectOption = function(t) { + s(p(p(n)), 'selectOption', function(t) { var e = n.props, r = e.blurInputOnSelect, i = e.isMulti, o = n.state.selectValue; if (i) if (n.isOptionSelected(t, o)) { - var a = n.getOptionValue(t); + var s = n.getOptionValue(t); n.setValue( o.filter(function(t) { - return n.getOptionValue(t) !== a; + return n.getOptionValue(t) !== s; }), 'deselect-option', t @@ -156724,7 +156086,7 @@ object-assign isDisabled: !0 } }) - : (n.setValue([].concat(o, [t]), 'select-option', t), + : (n.setValue([].concat(a(o), [t]), 'select-option', t), n.announceAriaLiveSelection({ event: 'select-option', context: { value: n.getOptionLabel(t) } @@ -156742,7 +156104,7 @@ object-assign })); r && n.blurInput(); }), - (n.removeValue = function(t) { + s(p(p(n)), 'removeValue', function(t) { var e = n.state.selectValue, r = n.getOptionValue(t), i = e.filter(function(t) { @@ -156758,11 +156120,11 @@ object-assign }), n.focusInput(); }), - (n.clearValue = function() { + s(p(p(n)), 'clearValue', function() { var t = n.props.isMulti; n.onChange(t ? [] : null, { action: 'clear' }); }), - (n.popValue = function() { + s(p(p(n)), 'popValue', function() { var t = n.state.selectValue, e = t[t.length - 1], r = t.slice(0, t.length - 1); @@ -156775,22 +156137,22 @@ object-assign removedValue: e }); }), - (n.getOptionLabel = function(t) { + s(p(p(n)), 'getOptionLabel', function(t) { return n.props.getOptionLabel(t); }), - (n.getOptionValue = function(t) { + s(p(p(n)), 'getOptionValue', function(t) { return n.props.getOptionValue(t); }), - (n.getStyles = function(t, e) { - var r = ye[t](e); + s(p(p(n)), 'getStyles', function(t, e) { + var r = xe[t](e); r.boxSizing = 'border-box'; var i = n.props.styles[t]; return i ? i(r, e) : r; }), - (n.getElementId = function(t) { - return n.instancePrefix + '-' + t; + s(p(p(n)), 'getElementId', function(t) { + return ''.concat(n.instancePrefix, '-').concat(t); }), - (n.getActiveDescendentId = function() { + s(p(p(n)), 'getActiveDescendentId', function() { var t = n.props.menuIsOpen, e = n.state, r = e.menuOptions, @@ -156801,42 +156163,38 @@ object-assign return a && a.key; } }), - (n.announceAriaLiveSelection = function(t) { + s(p(p(n)), 'announceAriaLiveSelection', function(t) { var e = t.event, r = t.context; - n.setState({ ariaLiveSelection: ge(e, r) }); + n.setState({ ariaLiveSelection: be(e, r) }); }), - (n.announceAriaLiveContext = function(t) { + s(p(p(n)), 'announceAriaLiveContext', function(t) { var e = t.event, r = t.context; n.setState({ - ariaLiveContext: pe( + ariaLiveContext: ye( e, - xe({}, r, { label: n.props['aria-label'] }) + u({}, r, { label: n.props['aria-label'] }) ) }); }), - (n.onMenuMouseDown = function(t) { + s(p(p(n)), 'onMenuMouseDown', function(t) { 0 === t.button && (t.stopPropagation(), t.preventDefault(), n.focusInput()); }), - (n.onMenuMouseMove = function(t) { + s(p(p(n)), 'onMenuMouseMove', function(t) { n.blockOptionHover = !1; }), - (n.onControlMouseDown = function(t) { + s(p(p(n)), 'onControlMouseDown', function(t) { var e = n.props.openMenuOnClick; n.state.isFocused ? n.props.menuIsOpen - ? 'INPUT' !== t.target.tagName && - 'TEXTAREA' !== t.target.tagName && - n.onMenuClose() + ? 'INPUT' !== t.target.tagName && n.onMenuClose() : e && n.openMenu('first') : (e && (n.openAfterFocus = !0), n.focusInput()), - 'INPUT' !== t.target.tagName && - 'TEXTAREA' !== t.target.tagName && - t.preventDefault(); + 'INPUT' !== t.target.tagName && t.preventDefault(); }), - (n.onDropdownIndicatorMouseDown = function(t) { + s(p(p(n)), 'onDropdownIndicatorMouseDown', function(t) { if ( !( (t && 'mousedown' === t.type && 0 !== t.button) || @@ -156854,7 +156212,7 @@ object-assign t.stopPropagation(); } }), - (n.onClearIndicatorMouseDown = function(t) { + s(p(p(n)), 'onClearIndicatorMouseDown', function(t) { (t && 'mousedown' === t.type && 0 !== t.button) || (n.clearValue(), t.stopPropagation(), @@ -156865,29 +156223,29 @@ object-assign return n.focusInput(); })); }), - (n.onScroll = function(t) { + s(p(p(n)), 'onScroll', function(t) { 'boolean' == typeof n.props.closeMenuOnScroll ? t.target instanceof HTMLElement && - Y(t.target) && + ct(t.target) && n.props.onMenuClose() : 'function' == typeof n.props.closeMenuOnScroll && n.props.closeMenuOnScroll(t) && n.props.onMenuClose(); }), - (n.onCompositionStart = function() { + s(p(p(n)), 'onCompositionStart', function() { n.isComposing = !0; }), - (n.onCompositionEnd = function() { + s(p(p(n)), 'onCompositionEnd', function() { n.isComposing = !1; }), - (n.onTouchStart = function(t) { + s(p(p(n)), 'onTouchStart', function(t) { var e = t.touches.item(0); e && ((n.initialTouchX = e.clientX), (n.initialTouchY = e.clientY), (n.userIsDragging = !1)); }), - (n.onTouchMove = function(t) { + s(p(p(n)), 'onTouchMove', function(t) { var e = t.touches.item(0); if (e) { var r = Math.abs(e.clientX - n.initialTouchX), @@ -156895,7 +156253,7 @@ object-assign n.userIsDragging = r > 5 || i > 5; } }), - (n.onTouchEnd = function(t) { + s(p(p(n)), 'onTouchEnd', function(t) { n.userIsDragging || (n.controlRef && !n.controlRef.contains(t.target) && @@ -156905,22 +156263,22 @@ object-assign (n.initialTouchX = 0), (n.initialTouchY = 0)); }), - (n.onControlTouchEnd = function(t) { + s(p(p(n)), 'onControlTouchEnd', function(t) { n.userIsDragging || n.onControlMouseDown(t); }), - (n.onClearIndicatorTouchEnd = function(t) { + s(p(p(n)), 'onClearIndicatorTouchEnd', function(t) { n.userIsDragging || n.onClearIndicatorMouseDown(t); }), - (n.onDropdownIndicatorTouchEnd = function(t) { + s(p(p(n)), 'onDropdownIndicatorTouchEnd', function(t) { n.userIsDragging || n.onDropdownIndicatorMouseDown(t); }), - (n.handleInputChange = function(t) { + s(p(p(n)), 'handleInputChange', function(t) { var e = t.currentTarget.value; (n.inputIsHiddenAfterUpdate = !1), n.onInputChange(e, { action: 'input-change' }), n.onMenuOpen(); }), - (n.onInputFocus = function(t) { + s(p(p(n)), 'onInputFocus', function(t) { var e = n.props, r = e.isSearchable, i = e.isMulti; @@ -156935,7 +156293,7 @@ object-assign n.openMenu('first'), (n.openAfterFocus = !1); }), - (n.onInputBlur = function(t) { + s(p(p(n)), 'onInputBlur', function(t) { n.menuListRef && n.menuListRef.contains(document.activeElement) ? n.inputRef.focus() : (n.props.onBlur && n.props.onBlur(t), @@ -156943,18 +156301,18 @@ object-assign n.onMenuClose(), n.setState({ focusedValue: null, isFocused: !1 })); }), - (n.onOptionHover = function(t) { + s(p(p(n)), 'onOptionHover', function(t) { n.blockOptionHover || n.state.focusedOption === t || n.setState({ focusedOption: t }); }), - (n.shouldHideSelectedOptions = function() { + s(p(p(n)), 'shouldHideSelectedOptions', function() { var t = n.props, e = t.hideSelectedOptions, r = t.isMulti; return void 0 === e ? r : e; }), - (n.onKeyDown = function(t) { + s(p(p(n)), 'onKeyDown', function(t) { var e = n.props, r = e.isMulti, i = e.backspaceRemovesValue, @@ -156969,7 +156327,7 @@ object-assign h = n.state, p = h.focusedOption, g = h.focusedValue, - v = h.selectValue; + m = h.selectValue; if ( !(u || ('function' == typeof c && (c(t), t.defaultPrevented))) ) { @@ -156998,7 +156356,7 @@ object-assign !l || !f || !p || - (d && n.isOptionSelected(p, v)) + (d && n.isOptionSelected(p, m)) ) return; n.selectOption(p); @@ -157055,1169 +156413,1280 @@ object-assign } t.preventDefault(); } - }), - (n.buildMenuOptions = function(t, e) { - var r = t.inputValue, - i = void 0 === r ? '' : r, - o = t.options, - a = function(t, r) { - var o = n.isOptionDisabled(t, e), - a = n.isOptionSelected(t, e), - s = n.getOptionLabel(t), - u = n.getOptionValue(t); - if ( - !( - (n.shouldHideSelectedOptions() && a) || - !n.filterOption({ label: s, value: u, data: t }, i) - ) - ) { - var l = o - ? void 0 - : function() { - return n.onOptionHover(t); - }, - c = o - ? void 0 - : function() { - return n.selectOption(t); - }, - f = n.getElementId('option') + '-' + r; - return { - innerProps: { - id: f, - onClick: c, - onMouseMove: l, - onMouseOver: l, - tabIndex: -1 - }, - data: t, - isDisabled: o, - isSelected: a, - key: f, - label: s, - type: 'option', - value: u - }; - } - }; - return o.reduce( - function(t, e, r) { - if (e.options) { - n.hasGroups || (n.hasGroups = !0); - var i = e.options - .map(function(e, n) { - var i = a(e, r + '-' + n); - return i && t.focusable.push(e), i; + }); + var r = t.value; + (n.cacheComponents = Object(x.a)(n.cacheComponents, Ot).bind( + p(p(n)) + )), + n.cacheComponents(t.components), + (n.instancePrefix = + 'react-select-' + (n.props.instanceId || ++ke)); + var i = lt(r), + o = t.menuIsOpen + ? n.buildMenuOptions(t, i) + : { render: [], focusable: [] }; + return (n.state.menuOptions = o), (n.state.selectValue = i), n; + } + return ( + y(e, t), + f(e, [ + { + key: 'componentDidMount', + value: function() { + this.startListeningComposition(), + this.startListeningToTouch(), + this.props.closeMenuOnScroll && + document && + document.addEventListener && + document.addEventListener('scroll', this.onScroll, !0), + this.props.autoFocus && this.focusInput(); + } + }, + { + key: 'UNSAFE_componentWillReceiveProps', + value: function(t) { + var e = this.props, + n = e.options, + r = e.value, + i = e.menuIsOpen, + o = e.inputValue; + if ( + (this.cacheComponents(t.components), + t.value !== r || + t.options !== n || + t.menuIsOpen !== i || + t.inputValue !== o) + ) { + var a = lt(t.value), + s = t.menuIsOpen + ? this.buildMenuOptions(t, a) + : { render: [], focusable: [] }, + u = this.getNextFocusedValue(a), + l = this.getNextFocusedOption(s.focusable); + this.setState({ + menuOptions: s, + selectValue: a, + focusedOption: l, + focusedValue: u + }); + } + null != this.inputIsHiddenAfterUpdate && + (this.setState({ + inputIsHidden: this.inputIsHiddenAfterUpdate + }), + delete this.inputIsHiddenAfterUpdate); + } + }, + { + key: 'componentDidUpdate', + value: function(t) { + var e, + n, + r, + i, + o, + a = this.props, + s = a.isDisabled, + u = a.menuIsOpen, + l = this.state.isFocused; + ((l && !s && t.isDisabled) || (l && u && !t.menuIsOpen)) && + this.focusInput(), + this.menuListRef && + this.focusedOptionRef && + this.scrollToFocusedOptionOnUpdate && + ((e = this.menuListRef), + (n = this.focusedOptionRef), + (r = e.getBoundingClientRect()), + (i = n.getBoundingClientRect()), + (o = n.offsetHeight / 3), + i.bottom + o > r.bottom + ? dt( + e, + Math.min( + n.offsetTop + n.clientHeight - e.offsetHeight + o, + e.scrollHeight + ) + ) + : i.top - o < r.top && + dt(e, Math.max(n.offsetTop - o, 0))), + (this.scrollToFocusedOptionOnUpdate = !1); + } + }, + { + key: 'componentWillUnmount', + value: function() { + this.stopListeningComposition(), + this.stopListeningToTouch(), + document.removeEventListener('scroll', this.onScroll, !0); + } + }, + { + key: 'onMenuOpen', + value: function() { + this.props.onMenuOpen(); + } + }, + { + key: 'onMenuClose', + value: function() { + var t = this.props, + e = t.isSearchable, + n = t.isMulti; + this.announceAriaLiveContext({ + event: 'input', + context: { isSearchable: e, isMulti: n } + }), + this.onInputChange('', { action: 'menu-close' }), + this.props.onMenuClose(); + } + }, + { + key: 'onInputChange', + value: function(t, e) { + this.props.onInputChange(t, e); + } + }, + { + key: 'focusInput', + value: function() { + this.inputRef && this.inputRef.focus(); + } + }, + { + key: 'blurInput', + value: function() { + this.inputRef && this.inputRef.blur(); + } + }, + { + key: 'openMenu', + value: function(t) { + var e = this.state, + n = e.menuOptions, + r = e.selectValue, + i = e.isFocused, + o = this.props.isMulti, + a = 'first' === t ? 0 : n.focusable.length - 1; + if (!o) { + var s = n.focusable.indexOf(r[0]); + s > -1 && (a = s); + } + (this.scrollToFocusedOptionOnUpdate = !( + i && this.menuListRef + )), + (this.inputIsHiddenAfterUpdate = !1), + this.onMenuOpen(), + this.setState({ + focusedValue: null, + focusedOption: n.focusable[a] + }), + this.announceAriaLiveContext({ event: 'menu' }); + } + }, + { + key: 'focusValue', + value: function(t) { + var e = this.props, + n = e.isMulti, + r = e.isSearchable, + i = this.state, + o = i.selectValue, + a = i.focusedValue; + if (n) { + this.setState({ focusedOption: null }); + var s = o.indexOf(a); + a || + ((s = -1), + this.announceAriaLiveContext({ event: 'value' })); + var u = o.length - 1, + l = -1; + if (o.length) { + switch (t) { + case 'previous': + l = 0 === s ? 0 : -1 === s ? u : s - 1; + break; + case 'next': + s > -1 && s < u && (l = s + 1); + } + -1 === l && + this.announceAriaLiveContext({ + event: 'input', + context: { isSearchable: r, isMulti: n } + }), + this.setState({ + inputIsHidden: -1 !== l, + focusedValue: o[l] + }); + } + } + } + }, + { + key: 'focusOption', + value: function() { + var t = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : 'first', + e = this.props.pageSize, + n = this.state, + r = n.focusedOption, + i = n.menuOptions, + o = i.focusable; + if (o.length) { + var a = 0, + s = o.indexOf(r); + r || + ((s = -1), + this.announceAriaLiveContext({ event: 'menu' })), + 'up' === t + ? (a = s > 0 ? s - 1 : o.length - 1) + : 'down' === t + ? (a = (s + 1) % o.length) + : 'pageup' === t + ? (a = s - e) < 0 && (a = 0) + : 'pagedown' === t + ? (a = s + e) > o.length - 1 && (a = o.length - 1) + : 'last' === t && (a = o.length - 1), + (this.scrollToFocusedOptionOnUpdate = !0), + this.setState({ + focusedOption: o[a], + focusedValue: null + }), + this.announceAriaLiveContext({ + event: 'menu', + context: { isDisabled: _e(o[a]) } + }); + } + } + }, + { + key: 'getTheme', + value: function() { + return this.props.theme + ? 'function' == typeof this.props.theme + ? this.props.theme(Se) + : u({}, Se, this.props.theme) + : Se; + } + }, + { + key: 'getCommonProps', + value: function() { + var t = this.clearValue, + e = this.getStyles, + n = this.setValue, + r = this.selectOption, + i = this.props, + o = i.classNamePrefix, + a = i.isMulti, + s = i.isRtl, + u = i.options, + l = this.state.selectValue, + c = this.hasValue(); + return { + cx: ut.bind(null, o), + clearValue: t, + getStyles: e, + getValue: function() { + return l; + }, + hasValue: c, + isMulti: a, + isRtl: s, + options: u, + selectOption: r, + setValue: n, + selectProps: i, + theme: this.getTheme() + }; + } + }, + { + key: 'getNextFocusedValue', + value: function(t) { + if (this.clearFocusValueOnUpdate) + return (this.clearFocusValueOnUpdate = !1), null; + var e = this.state, + n = e.focusedValue, + r = e.selectValue.indexOf(n); + if (r > -1) { + if (t.indexOf(n) > -1) return n; + if (r < t.length) return t[r]; + } + return null; + } + }, + { + key: 'getNextFocusedOption', + value: function(t) { + var e = this.state.focusedOption; + return e && t.indexOf(e) > -1 ? e : t[0]; + } + }, + { + key: 'hasValue', + value: function() { + return this.state.selectValue.length > 0; + } + }, + { + key: 'hasOptions', + value: function() { + return !!this.state.menuOptions.render.length; + } + }, + { + key: 'countOptions', + value: function() { + return this.state.menuOptions.focusable.length; + } + }, + { + key: 'isClearable', + value: function() { + var t = this.props, + e = t.isClearable, + n = t.isMulti; + return void 0 === e ? n : e; + } + }, + { + key: 'isOptionDisabled', + value: function(t, e) { + return ( + 'function' == typeof this.props.isOptionDisabled && + this.props.isOptionDisabled(t, e) + ); + } + }, + { + key: 'isOptionSelected', + value: function(t, e) { + var n = this; + if (e.indexOf(t) > -1) return !0; + if ('function' == typeof this.props.isOptionSelected) + return this.props.isOptionSelected(t, e); + var r = this.getOptionValue(t); + return e.some(function(t) { + return n.getOptionValue(t) === r; + }); + } + }, + { + key: 'filterOption', + value: function(t, e) { + return ( + !this.props.filterOption || this.props.filterOption(t, e) + ); + } + }, + { + key: 'formatOptionLabel', + value: function(t, e) { + if ('function' == typeof this.props.formatOptionLabel) { + var n = this.props.inputValue, + r = this.state.selectValue; + return this.props.formatOptionLabel(t, { + context: e, + inputValue: n, + selectValue: r + }); + } + return this.getOptionLabel(t); + } + }, + { + key: 'formatGroupLabel', + value: function(t) { + return this.props.formatGroupLabel(t); + } + }, + { + key: 'startListeningComposition', + value: function() { + document && + document.addEventListener && + (document.addEventListener( + 'compositionstart', + this.onCompositionStart, + !1 + ), + document.addEventListener( + 'compositionend', + this.onCompositionEnd, + !1 + )); + } + }, + { + key: 'stopListeningComposition', + value: function() { + document && + document.removeEventListener && + (document.removeEventListener( + 'compositionstart', + this.onCompositionStart + ), + document.removeEventListener( + 'compositionend', + this.onCompositionEnd + )); + } + }, + { + key: 'startListeningToTouch', + value: function() { + document && + document.addEventListener && + (document.addEventListener( + 'touchstart', + this.onTouchStart, + !1 + ), + document.addEventListener( + 'touchmove', + this.onTouchMove, + !1 + ), + document.addEventListener('touchend', this.onTouchEnd, !1)); + } + }, + { + key: 'stopListeningToTouch', + value: function() { + document && + document.removeEventListener && + (document.removeEventListener( + 'touchstart', + this.onTouchStart + ), + document.removeEventListener('touchmove', this.onTouchMove), + document.removeEventListener('touchend', this.onTouchEnd)); + } + }, + { + key: 'buildMenuOptions', + value: function(t, e) { + var n = this, + r = t.inputValue, + i = void 0 === r ? '' : r, + o = t.options, + a = function(t, r) { + var o = n.isOptionDisabled(t, e), + a = n.isOptionSelected(t, e), + s = n.getOptionLabel(t), + u = n.getOptionValue(t); + if ( + !( + (n.shouldHideSelectedOptions() && a) || + !n.filterOption({ label: s, value: u, data: t }, i) + ) + ) { + var l = o + ? void 0 + : function() { + return n.onOptionHover(t); + }, + c = o + ? void 0 + : function() { + return n.selectOption(t); + }, + f = '' + .concat(n.getElementId('option'), '-') + .concat(r); + return { + innerProps: { + id: f, + onClick: c, + onMouseMove: l, + onMouseOver: l, + tabIndex: -1 + }, + data: t, + isDisabled: o, + isSelected: a, + key: f, + label: s, + type: 'option', + value: u + }; + } + }; + return o.reduce( + function(t, e, r) { + if (e.options) { + n.hasGroups || (n.hasGroups = !0); + var i = e.options + .map(function(e, n) { + var i = a(e, ''.concat(r, '-').concat(n)); + return i && t.focusable.push(e), i; + }) + .filter(Boolean); + if (i.length) { + var o = '' + .concat(n.getElementId('group'), '-') + .concat(r); + t.render.push({ + type: 'group', + key: o, + data: e, + options: i + }); + } + } else { + var s = a(e, ''.concat(r)); + s && (t.render.push(s), t.focusable.push(e)); + } + return t; + }, + { render: [], focusable: [] } + ); + } + }, + { + key: 'constructAriaLiveMessage', + value: function() { + var t = this.state, + e = t.ariaLiveContext, + n = t.selectValue, + r = t.focusedValue, + i = t.focusedOption, + o = this.props, + a = o.options, + s = o.menuIsOpen, + u = o.inputValue, + l = o.screenReaderStatus, + c = r + ? (function(t) { + var e = t.focusedValue, + n = t.getOptionLabel, + r = t.selectValue; + return 'value ' + .concat(n(e), ' focused, ') + .concat(r.indexOf(e) + 1, ' of ') + .concat(r.length, '.'); + })({ + focusedValue: r, + getOptionLabel: this.getOptionLabel, + selectValue: n }) - .filter(Boolean); - if (i.length) { - var o = n.getElementId('group') + '-' + r; - t.render.push({ - type: 'group', - key: o, - data: e, - options: i - }); - } - } else { - var s = a(e, '' + r); - s && (t.render.push(s), t.focusable.push(e)); - } - return t; - }, - { render: [], focusable: [] } - ); - }); - var r = e.value; - (n.cacheComponents = Object(o.a)(n.cacheComponents, gt).bind( - we(we(n)) - )), - n.cacheComponents(e.components), - (n.instancePrefix = - 'react-select-' + (n.props.instanceId || ++Ee)); - var i = X(r); - n.buildMenuOptions = Object(o.a)(n.buildMenuOptions, function( - t, - e - ) { - var n = t, - r = n[0], - i = n[1], - o = e, - a = o[0]; - return ( - gt(i, o[1]) && - gt(r.inputValue, a.inputValue) && - gt(r.options, a.options) - ); - }).bind(we(we(n))); - var a = e.menuIsOpen - ? n.buildMenuOptions(e, i) - : { render: [], focusable: [] }; - return (n.state.menuOptions = a), (n.state.selectValue = i), n; - } - (n = t), - ((e = r).prototype = Object.create(n.prototype)), - (e.prototype.constructor = e), - (e.__proto__ = n); - var a = r.prototype; - return ( - (a.componentDidMount = function() { - this.startListeningComposition(), - this.startListeningToTouch(), - this.props.closeMenuOnScroll && - document && - document.addEventListener && - document.addEventListener('scroll', this.onScroll, !0), - this.props.autoFocus && this.focusInput(); - }), - (a.UNSAFE_componentWillReceiveProps = function(t) { - var e = this.props, - n = e.options, - r = e.value, - i = e.menuIsOpen, - o = e.inputValue; - if ( - (this.cacheComponents(t.components), - t.value !== r || - t.options !== n || - t.menuIsOpen !== i || - t.inputValue !== o) - ) { - var a = X(t.value), - s = t.menuIsOpen - ? this.buildMenuOptions(t, a) - : { render: [], focusable: [] }, - u = this.getNextFocusedValue(a), - l = this.getNextFocusedOption(s.focusable); - this.setState({ - menuOptions: s, - selectValue: a, - focusedOption: l, - focusedValue: u - }); - } - null != this.inputIsHiddenAfterUpdate && - (this.setState({ - inputIsHidden: this.inputIsHiddenAfterUpdate - }), - delete this.inputIsHiddenAfterUpdate); - }), - (a.componentDidUpdate = function(t) { - var e, - n, - r, - i, - o, - a = this.props, - s = a.isDisabled, - u = a.menuIsOpen, - l = this.state.isFocused; - ((l && !s && t.isDisabled) || (l && u && !t.menuIsOpen)) && - this.focusInput(), - this.menuListRef && - this.focusedOptionRef && - this.scrollToFocusedOptionOnUpdate && - ((e = this.menuListRef), - (n = this.focusedOptionRef), - (r = e.getBoundingClientRect()), - (i = n.getBoundingClientRect()), - (o = n.offsetHeight / 3), - i.bottom + o > r.bottom - ? Q( - e, - Math.min( - n.offsetTop + n.clientHeight - e.offsetHeight + o, - e.scrollHeight - ) - ) - : i.top - o < r.top && Q(e, Math.max(n.offsetTop - o, 0)), - (this.scrollToFocusedOptionOnUpdate = !1)); - }), - (a.componentWillUnmount = function() { - this.stopListeningComposition(), - this.stopListeningToTouch(), - document.removeEventListener('scroll', this.onScroll, !0); - }), - (a.onMenuOpen = function() { - this.props.onMenuOpen(); - }), - (a.onMenuClose = function() { - var t = this.props, - e = t.isSearchable, - n = t.isMulti; - this.announceAriaLiveContext({ - event: 'input', - context: { isSearchable: e, isMulti: n } - }), - this.onInputChange('', { action: 'menu-close' }), - this.props.onMenuClose(); - }), - (a.onInputChange = function(t, e) { - this.props.onInputChange(t, e); - }), - (a.focusInput = function() { - this.inputRef && this.inputRef.focus(); - }), - (a.blurInput = function() { - this.inputRef && this.inputRef.blur(); - }), - (a.openMenu = function(t) { - var e = this, - n = this.state, - r = n.selectValue, - i = n.isFocused, - o = this.buildMenuOptions(this.props, r), - a = this.props.isMulti, - s = 'first' === t ? 0 : o.focusable.length - 1; - if (!a) { - var u = o.focusable.indexOf(r[0]); - u > -1 && (s = u); - } - (this.scrollToFocusedOptionOnUpdate = !(i && this.menuListRef)), - (this.inputIsHiddenAfterUpdate = !1), - this.setState( - { - menuOptions: o, - focusedValue: null, - focusedOption: o.focusable[s] - }, - function() { - e.onMenuOpen(), - e.announceAriaLiveContext({ event: 'menu' }); - } - ); - }), - (a.focusValue = function(t) { - var e = this.props, - n = e.isMulti, - r = e.isSearchable, - i = this.state, - o = i.selectValue, - a = i.focusedValue; - if (n) { - this.setState({ focusedOption: null }); - var s = o.indexOf(a); - a || - ((s = -1), this.announceAriaLiveContext({ event: 'value' })); - var u = o.length - 1, - l = -1; - if (o.length) { - switch (t) { - case 'previous': - l = 0 === s ? 0 : -1 === s ? u : s - 1; - break; - case 'next': - s > -1 && s < u && (l = s + 1); - } - -1 === l && - this.announceAriaLiveContext({ - event: 'input', - context: { isSearchable: r, isMulti: n } - }), - this.setState({ - inputIsHidden: -1 !== l, - focusedValue: o[l] + : '', + f = + i && s + ? (function(t) { + var e = t.focusedOption, + n = t.getOptionLabel, + r = t.options; + return 'option ' + .concat(n(e), ' focused') + .concat(e.isDisabled ? ' disabled' : '', ', ') + .concat(r.indexOf(e) + 1, ' of ') + .concat(r.length, '.'); + })({ + focusedOption: i, + getOptionLabel: this.getOptionLabel, + options: a + }) + : '', + d = (function(t) { + var e = t.inputValue, + n = t.screenReaderMessage; + return '' + .concat(n) + .concat(e ? ' for search term ' + e : '', '.'); + })({ + inputValue: u, + screenReaderMessage: l({ count: this.countOptions() }) }); + return '' + .concat(c, ' ') + .concat(f, ' ') + .concat(d, ' ') + .concat(e); } - } - }), - (a.focusOption = function(t) { - void 0 === t && (t = 'first'); - var e = this.props.pageSize, - n = this.state, - r = n.focusedOption, - i = n.menuOptions.focusable; - if (i.length) { - var o = 0, - a = i.indexOf(r); - r || - ((a = -1), this.announceAriaLiveContext({ event: 'menu' })), - 'up' === t - ? (o = a > 0 ? a - 1 : i.length - 1) - : 'down' === t - ? (o = (a + 1) % i.length) - : 'pageup' === t - ? (o = a - e) < 0 && (o = 0) - : 'pagedown' === t - ? (o = a + e) > i.length - 1 && (o = i.length - 1) - : 'last' === t && (o = i.length - 1), - (this.scrollToFocusedOptionOnUpdate = !0), - this.setState({ focusedOption: i[o], focusedValue: null }), - this.announceAriaLiveContext({ - event: 'menu', - context: { isDisabled: ve(i[o]) } - }); - } - }), - (a.getTheme = function() { - return this.props.theme - ? 'function' == typeof this.props.theme - ? this.props.theme(_e) - : xe({}, _e, this.props.theme) - : _e; - }), - (a.getCommonProps = function() { - var t = this.clearValue, - e = this.getStyles, - n = this.setValue, - r = this.selectOption, - i = this.props, - o = i.classNamePrefix, - a = i.isMulti, - s = i.isRtl, - u = i.options, - l = this.state.selectValue, - c = this.hasValue(); - return { - cx: W.bind(null, o), - clearValue: t, - getStyles: e, - getValue: function() { - return l; - }, - hasValue: c, - isMulti: a, - isRtl: s, - options: u, - selectOption: r, - setValue: n, - selectProps: i, - theme: this.getTheme() - }; - }), - (a.getNextFocusedValue = function(t) { - if (this.clearFocusValueOnUpdate) - return (this.clearFocusValueOnUpdate = !1), null; - var e = this.state, - n = e.focusedValue, - r = e.selectValue.indexOf(n); - if (r > -1) { - if (t.indexOf(n) > -1) return n; - if (r < t.length) return t[r]; - } - return null; - }), - (a.getNextFocusedOption = function(t) { - var e = this.state.focusedOption; - return e && t.indexOf(e) > -1 ? e : t[0]; - }), - (a.hasValue = function() { - return this.state.selectValue.length > 0; - }), - (a.hasOptions = function() { - return !!this.state.menuOptions.render.length; - }), - (a.countOptions = function() { - return this.state.menuOptions.focusable.length; - }), - (a.isClearable = function() { - var t = this.props, - e = t.isClearable, - n = t.isMulti; - return void 0 === e ? n : e; - }), - (a.isOptionDisabled = function(t, e) { - return ( - 'function' == typeof this.props.isOptionDisabled && - this.props.isOptionDisabled(t, e) - ); - }), - (a.isOptionSelected = function(t, e) { - var n = this; - if (e.indexOf(t) > -1) return !0; - if ('function' == typeof this.props.isOptionSelected) - return this.props.isOptionSelected(t, e); - var r = this.getOptionValue(t); - return e.some(function(t) { - return n.getOptionValue(t) === r; - }); - }), - (a.filterOption = function(t, e) { - return !this.props.filterOption || this.props.filterOption(t, e); - }), - (a.formatOptionLabel = function(t, e) { - if ('function' == typeof this.props.formatOptionLabel) { - var n = this.props.inputValue, - r = this.state.selectValue; - return this.props.formatOptionLabel(t, { - context: e, - inputValue: n, - selectValue: r - }); - } - return this.getOptionLabel(t); - }), - (a.formatGroupLabel = function(t) { - return this.props.formatGroupLabel(t); - }), - (a.startListeningComposition = function() { - document && - document.addEventListener && - (document.addEventListener( - 'compositionstart', - this.onCompositionStart, - !1 - ), - document.addEventListener( - 'compositionend', - this.onCompositionEnd, - !1 - )); - }), - (a.stopListeningComposition = function() { - document && - document.removeEventListener && - (document.removeEventListener( - 'compositionstart', - this.onCompositionStart - ), - document.removeEventListener( - 'compositionend', - this.onCompositionEnd - )); - }), - (a.startListeningToTouch = function() { - document && - document.addEventListener && - (document.addEventListener('touchstart', this.onTouchStart, !1), - document.addEventListener('touchmove', this.onTouchMove, !1), - document.addEventListener('touchend', this.onTouchEnd, !1)); - }), - (a.stopListeningToTouch = function() { - document && - document.removeEventListener && - (document.removeEventListener('touchstart', this.onTouchStart), - document.removeEventListener('touchmove', this.onTouchMove), - document.removeEventListener('touchend', this.onTouchEnd)); - }), - (a.constructAriaLiveMessage = function() { - var t = this.state, - e = t.ariaLiveContext, - n = t.selectValue, - r = t.focusedValue, - i = t.focusedOption, - o = this.props, - a = o.options, - s = o.menuIsOpen, - u = o.inputValue, - l = o.screenReaderStatus; - return ( - (r - ? (function(t) { - var e = t.focusedValue, - n = t.getOptionLabel, - r = t.selectValue; - return ( - 'value ' + - n(e) + - ' focused, ' + - (r.indexOf(e) + 1) + - ' of ' + - r.length + - '.' - ); - })({ - focusedValue: r, - getOptionLabel: this.getOptionLabel, - selectValue: n - }) - : '') + - ' ' + - (i && s - ? (function(t) { - var e = t.focusedOption, - n = t.getOptionLabel, - r = t.options; - return ( - 'option ' + - n(e) + - ' focused' + - (e.isDisabled ? ' disabled' : '') + - ', ' + - (r.indexOf(e) + 1) + - ' of ' + - r.length + - '.' - ); - })({ - focusedOption: i, - getOptionLabel: this.getOptionLabel, - options: a - }) - : '') + - ' ' + - (function(t) { - var e = t.inputValue; - return ( - t.screenReaderMessage + - (e ? ' for search term ' + e : '') + - '.' - ); - })({ - inputValue: u, - screenReaderMessage: l({ count: this.countOptions() }) - }) + - ' ' + - e - ); - }), - (a.renderInput = function() { - var t = this.props, - e = t.isDisabled, - n = t.isSearchable, - r = t.inputId, - o = t.inputValue, - a = t.tabIndex, - s = this.components.Input, - u = this.state.inputIsHidden, - l = r || this.getElementId('input'), - c = { - 'aria-autocomplete': 'list', - 'aria-label': this.props['aria-label'], - 'aria-labelledby': this.props['aria-labelledby'] - }; - if (!n) - return i.a.createElement( - Jt, - xe( - { + }, + { + key: 'renderInput', + value: function() { + var t = this.props, + e = t.isDisabled, + n = t.isSearchable, + r = t.inputId, + i = t.inputValue, + a = t.tabIndex, + s = this.components.Input, + u = this.state.inputIsHidden, + l = r || this.getElementId('input'); + if (!n) + return _.a.createElement(re, { id: l, innerRef: this.getInputRef, onBlur: this.onInputBlur, - onChange: U, + onChange: at, onFocus: this.onInputFocus, readOnly: !0, disabled: e, tabIndex: a, value: '' + }); + var c = { + 'aria-autocomplete': 'list', + 'aria-label': this.props['aria-label'], + 'aria-labelledby': this.props['aria-labelledby'] }, - c - ) - ); - var f = this.commonProps, - d = f.cx, - h = f.theme, - p = f.selectProps; - return i.a.createElement( - s, - xe( - { - autoCapitalize: 'none', - autoComplete: 'off', - autoCorrect: 'off', - cx: d, - getStyles: this.getStyles, - id: l, - innerRef: this.getInputRef, - isDisabled: e, - isHidden: u, - onBlur: this.onInputBlur, - onChange: this.handleInputChange, - onFocus: this.onInputFocus, - selectProps: p, - spellCheck: 'false', - tabIndex: a, - theme: h, - type: 'text', - value: o - }, - c - ) - ); - }), - (a.renderPlaceholderOrValue = function() { - var t = this, - e = this.components, - n = e.MultiValue, - r = e.MultiValueContainer, - o = e.MultiValueLabel, - a = e.MultiValueRemove, - s = e.SingleValue, - u = e.Placeholder, - l = this.commonProps, - c = this.props, - f = c.controlShouldRenderValue, - d = c.isDisabled, - h = c.isMulti, - p = c.inputValue, - g = c.placeholder, - v = this.state, - m = v.selectValue, - y = v.focusedValue, - b = v.isFocused; - if (!this.hasValue() || !f) - return p - ? null - : i.a.createElement( - u, - xe({}, l, { - key: 'placeholder', - isDisabled: d, - isFocused: b - }), - g - ); - if (h) - return m.map(function(e, s) { - var u = e === y; - return i.a.createElement( - n, - xe({}, l, { - components: { Container: r, Label: o, Remove: a }, - isFocused: u, - isDisabled: d, - key: t.getOptionValue(e), - index: s, - removeProps: { - onClick: function() { - return t.removeValue(e); - }, - onTouchEnd: function() { - return t.removeValue(e); - }, - onMouseDown: function(t) { - t.preventDefault(), t.stopPropagation(); - } + f = this.commonProps, + d = f.cx, + h = f.theme, + p = f.selectProps; + return _.a.createElement( + s, + Object(o.a)( + { + autoCapitalize: 'none', + autoComplete: 'off', + autoCorrect: 'off', + cx: d, + getStyles: this.getStyles, + id: l, + innerRef: this.getInputRef, + isDisabled: e, + isHidden: u, + onBlur: this.onInputBlur, + onChange: this.handleInputChange, + onFocus: this.onInputFocus, + selectProps: p, + spellCheck: 'false', + tabIndex: a, + theme: h, + type: 'text', + value: i }, - data: e - }), - t.formatOptionLabel(e, 'value') - ); - }); - if (p) return null; - var _ = m[0]; - return i.a.createElement( - s, - xe({}, l, { data: _, isDisabled: d }), - this.formatOptionLabel(_, 'value') - ); - }), - (a.renderClearIndicator = function() { - var t = this.components.ClearIndicator, - e = this.commonProps, - n = this.props, - r = n.isDisabled, - o = n.isLoading, - a = this.state.isFocused; - if (!this.isClearable() || !t || r || !this.hasValue() || o) - return null; - var s = { - onMouseDown: this.onClearIndicatorMouseDown, - onTouchEnd: this.onClearIndicatorTouchEnd, - 'aria-hidden': 'true' - }; - return i.a.createElement( - t, - xe({}, e, { innerProps: s, isFocused: a }) - ); - }), - (a.renderLoadingIndicator = function() { - var t = this.components.LoadingIndicator, - e = this.commonProps, - n = this.props, - r = n.isDisabled, - o = n.isLoading, - a = this.state.isFocused; - if (!t || !o) return null; - return i.a.createElement( - t, - xe({}, e, { - innerProps: { 'aria-hidden': 'true' }, - isDisabled: r, - isFocused: a - }) - ); - }), - (a.renderIndicatorSeparator = function() { - var t = this.components, - e = t.DropdownIndicator, - n = t.IndicatorSeparator; - if (!e || !n) return null; - var r = this.commonProps, - o = this.props.isDisabled, - a = this.state.isFocused; - return i.a.createElement( - n, - xe({}, r, { isDisabled: o, isFocused: a }) - ); - }), - (a.renderDropdownIndicator = function() { - var t = this.components.DropdownIndicator; - if (!t) return null; - var e = this.commonProps, - n = this.props.isDisabled, - r = this.state.isFocused, - o = { - onMouseDown: this.onDropdownIndicatorMouseDown, - onTouchEnd: this.onDropdownIndicatorTouchEnd, - 'aria-hidden': 'true' - }; - return i.a.createElement( - t, - xe({}, e, { innerProps: o, isDisabled: n, isFocused: r }) - ); - }), - (a.renderMenu = function() { - var t = this, - e = this.components, - n = e.Group, - r = e.GroupHeading, - o = e.Menu, - a = e.MenuList, - s = e.MenuPortal, - u = e.LoadingMessage, - l = e.NoOptionsMessage, - c = e.Option, - f = this.commonProps, - d = this.state, - h = d.focusedOption, - p = d.menuOptions, - g = this.props, - v = g.captureMenuScroll, - m = g.inputValue, - y = g.isLoading, - b = g.loadingMessage, - _ = g.minMenuHeight, - x = g.maxMenuHeight, - w = g.menuIsOpen, - S = g.menuPlacement, - E = g.menuPosition, - k = g.menuPortalTarget, - A = g.menuShouldBlockScroll, - T = g.menuShouldScrollIntoView, - C = g.noOptionsMessage, - O = g.onMenuScrollToTop, - P = g.onMenuScrollToBottom; - if (!w) return null; - var M, - L = function(e) { - var n = h === e.data; - return ( - (e.innerRef = n ? t.getFocusedOptionRef : void 0), - i.a.createElement( - c, - xe({}, f, e, { isFocused: n }), - t.formatOptionLabel(e.data, 'menu') + c ) ); - }; - if (this.hasOptions()) - M = p.render.map(function(e) { - if ('group' === e.type) { - e.type; - var o = (function(t, e) { - if (null == t) return {}; - var n, - r, - i = {}, - o = Object.keys(t); - for (r = 0; r < o.length; r++) - (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); - return i; - })(e, ['type']), - a = e.key + '-heading'; - return i.a.createElement( - n, - xe({}, f, o, { - Heading: r, - headingProps: { id: a }, - label: t.formatGroupLabel(e.data) - }), - e.options.map(function(t) { - return L(t); - }) - ); - } - if ('option' === e.type) return L(e); - }); - else if (y) { - var D = b({ inputValue: m }); - if (null === D) return null; - M = i.a.createElement(u, f, D); - } else { - var j = C({ inputValue: m }); - if (null === j) return null; - M = i.a.createElement(l, f, j); - } - var R = { - minMenuHeight: _, - maxMenuHeight: x, - menuPlacement: S, - menuPosition: E, - menuShouldScrollIntoView: T - }, - N = i.a.createElement(ot, xe({}, f, R), function(e) { - var n = e.ref, - r = e.placerProps, - s = r.placement, - u = r.maxHeight; - return i.a.createElement( - o, - xe({}, f, R, { - innerRef: n, - innerProps: { - onMouseDown: t.onMenuMouseDown, - onMouseMove: t.onMenuMouseMove - }, - isLoading: y, - placement: s - }), - i.a.createElement( - he, - { isEnabled: v, onTopArrive: O, onBottomArrive: P }, - i.a.createElement( - fe, - { isEnabled: A }, - i.a.createElement( - a, - xe({}, f, { - innerRef: t.getMenuListRef, - isLoading: y, - maxHeight: u + } + }, + { + key: 'renderPlaceholderOrValue', + value: function() { + var t = this, + e = this.components, + n = e.MultiValue, + r = e.MultiValueContainer, + i = e.MultiValueLabel, + a = e.MultiValueRemove, + s = e.SingleValue, + u = e.Placeholder, + l = this.commonProps, + c = this.props, + f = c.controlShouldRenderValue, + d = c.isDisabled, + h = c.isMulti, + p = c.inputValue, + g = c.placeholder, + m = this.state, + v = m.selectValue, + y = m.focusedValue, + b = m.isFocused; + if (!this.hasValue() || !f) + return p + ? null + : _.a.createElement( + u, + Object(o.a)({}, l, { + key: 'placeholder', + isDisabled: d, + isFocused: b }), - M + g + ); + if (h) + return v.map(function(e, s) { + var u = e === y; + return _.a.createElement( + n, + Object(o.a)({}, l, { + components: { Container: r, Label: i, Remove: a }, + isFocused: u, + isDisabled: d, + key: t.getOptionValue(e), + index: s, + removeProps: { + onClick: function() { + return t.removeValue(e); + }, + onTouchEnd: function() { + return t.removeValue(e); + }, + onMouseDown: function(t) { + t.preventDefault(), t.stopPropagation(); + } + }, + data: e + }), + t.formatOptionLabel(e, 'value') + ); + }); + if (p) return null; + var x = v[0]; + return _.a.createElement( + s, + Object(o.a)({}, l, { data: x, isDisabled: d }), + this.formatOptionLabel(x, 'value') + ); + } + }, + { + key: 'renderClearIndicator', + value: function() { + var t = this.components.ClearIndicator, + e = this.commonProps, + n = this.props, + r = n.isDisabled, + i = n.isLoading, + a = this.state.isFocused; + if (!this.isClearable() || !t || r || !this.hasValue() || i) + return null; + var s = { + onMouseDown: this.onClearIndicatorMouseDown, + onTouchEnd: this.onClearIndicatorTouchEnd, + 'aria-hidden': 'true' + }; + return _.a.createElement( + t, + Object(o.a)({}, e, { innerProps: s, isFocused: a }) + ); + } + }, + { + key: 'renderLoadingIndicator', + value: function() { + var t = this.components.LoadingIndicator, + e = this.commonProps, + n = this.props, + r = n.isDisabled, + i = n.isLoading, + a = this.state.isFocused; + if (!t || !i) return null; + return _.a.createElement( + t, + Object(o.a)({}, e, { + innerProps: { 'aria-hidden': 'true' }, + isDisabled: r, + isFocused: a + }) + ); + } + }, + { + key: 'renderIndicatorSeparator', + value: function() { + var t = this.components, + e = t.DropdownIndicator, + n = t.IndicatorSeparator; + if (!e || !n) return null; + var r = this.commonProps, + i = this.props.isDisabled, + a = this.state.isFocused; + return _.a.createElement( + n, + Object(o.a)({}, r, { isDisabled: i, isFocused: a }) + ); + } + }, + { + key: 'renderDropdownIndicator', + value: function() { + var t = this.components.DropdownIndicator; + if (!t) return null; + var e = this.commonProps, + n = this.props.isDisabled, + r = this.state.isFocused, + i = { + onMouseDown: this.onDropdownIndicatorMouseDown, + onTouchEnd: this.onDropdownIndicatorTouchEnd, + 'aria-hidden': 'true' + }; + return _.a.createElement( + t, + Object(o.a)({}, e, { + innerProps: i, + isDisabled: n, + isFocused: r + }) + ); + } + }, + { + key: 'renderMenu', + value: function() { + var t = this, + e = this.components, + n = e.Group, + r = e.GroupHeading, + a = e.Menu, + s = e.MenuList, + u = e.MenuPortal, + l = e.LoadingMessage, + c = e.NoOptionsMessage, + f = e.Option, + d = this.commonProps, + h = this.state, + p = h.focusedOption, + g = h.menuOptions, + m = this.props, + v = m.captureMenuScroll, + y = m.inputValue, + b = m.isLoading, + x = m.loadingMessage, + w = m.minMenuHeight, + S = m.maxMenuHeight, + E = m.menuIsOpen, + k = m.menuPlacement, + A = m.menuPosition, + T = m.menuPortalTarget, + C = m.menuShouldBlockScroll, + O = m.menuShouldScrollIntoView, + P = m.noOptionsMessage, + M = m.onMenuScrollToTop, + L = m.onMenuScrollToBottom; + if (!E) return null; + var j, + D = function(e) { + var n = p === e.data; + return ( + (e.innerRef = n ? t.getFocusedOptionRef : void 0), + _.a.createElement( + f, + Object(o.a)({}, d, e, { isFocused: n }), + t.formatOptionLabel(e.data, 'menu') + ) + ); + }; + if (this.hasOptions()) + j = g.render.map(function(e) { + if ('group' === e.type) { + e.type; + var a = i(e, ['type']), + s = ''.concat(e.key, '-heading'); + return _.a.createElement( + n, + Object(o.a)({}, d, a, { + Heading: r, + headingProps: { id: s }, + label: t.formatGroupLabel(e.data) + }), + e.options.map(function(t) { + return D(t); + }) + ); + } + if ('option' === e.type) return D(e); + }); + else if (b) { + var R = x({ inputValue: y }); + if (null === R) return null; + j = _.a.createElement(l, d, R); + } else { + var z = P({ inputValue: y }); + if (null === z) return null; + j = _.a.createElement(c, d, z); + } + var N = { + minMenuHeight: w, + maxMenuHeight: S, + menuPlacement: k, + menuPosition: A, + menuShouldScrollIntoView: O + }, + I = _.a.createElement(bt, Object(o.a)({}, d, N), function( + e + ) { + var n = e.ref, + r = e.placerProps, + i = r.placement, + u = r.maxHeight; + return _.a.createElement( + a, + Object(o.a)({}, d, N, { + innerRef: n, + innerProps: { + onMouseDown: t.onMenuMouseDown, + onMouseMove: t.onMenuMouseMove + }, + isLoading: b, + placement: i + }), + _.a.createElement( + ve, + { isEnabled: v, onTopArrive: M, onBottomArrive: L }, + _.a.createElement( + ge, + { isEnabled: C }, + _.a.createElement( + s, + Object(o.a)({}, d, { + innerRef: t.getMenuListRef, + isLoading: b, + maxHeight: u + }), + j + ) + ) ) + ); + }); + return T || 'fixed' === A + ? _.a.createElement( + u, + Object(o.a)({}, d, { + appendTo: T, + controlElement: this.controlRef, + menuPlacement: k, + menuPosition: A + }), + I ) - ) - ); - }); - return k || 'fixed' === E - ? i.a.createElement( - s, - xe({}, f, { - appendTo: k, - controlElement: this.controlRef, - menuPlacement: S, - menuPosition: E - }), - N - ) - : N; - }), - (a.renderFormField = function() { - var t = this, - e = this.props, - n = e.delimiter, - r = e.isDisabled, - o = e.isMulti, - a = e.name, - s = this.state.selectValue; - if (a && !r) { - if (o) { - if (n) { - var u = s - .map(function(e) { - return t.getOptionValue(e); - }) - .join(n); - return i.a.createElement('input', { - name: a, + : I; + } + }, + { + key: 'renderFormField', + value: function() { + var t = this, + e = this.props, + n = e.delimiter, + r = e.isDisabled, + i = e.isMulti, + o = e.name, + a = this.state.selectValue; + if (o && !r) { + if (i) { + if (n) { + var s = a + .map(function(e) { + return t.getOptionValue(e); + }) + .join(n); + return _.a.createElement('input', { + name: o, + type: 'hidden', + value: s + }); + } + var u = + a.length > 0 + ? a.map(function(e, n) { + return _.a.createElement('input', { + key: 'i-'.concat(n), + name: o, + type: 'hidden', + value: t.getOptionValue(e) + }); + }) + : _.a.createElement('input', { + name: o, + type: 'hidden' + }); + return _.a.createElement('div', null, u); + } + var l = a[0] ? this.getOptionValue(a[0]) : ''; + return _.a.createElement('input', { + name: o, type: 'hidden', - value: u + value: l }); } - var l = - s.length > 0 - ? s.map(function(e, n) { - return i.a.createElement('input', { - key: 'i-' + n, - name: a, - type: 'hidden', - value: t.getOptionValue(e) - }); - }) - : i.a.createElement('input', { name: a, type: 'hidden' }); - return i.a.createElement('div', null, l); - } - var c = s[0] ? this.getOptionValue(s[0]) : ''; - return i.a.createElement('input', { - name: a, - type: 'hidden', - value: c - }); - } - }), - (a.renderLiveRegion = function() { - return this.state.isFocused - ? i.a.createElement( - Kt, - { 'aria-live': 'polite' }, - i.a.createElement( - 'p', - { id: 'aria-selection-event' }, - ' ', - this.state.ariaLiveSelection + } + }, + { + key: 'renderLiveRegion', + value: function() { + return this.state.isFocused + ? _.a.createElement( + ne, + { 'aria-live': 'polite' }, + _.a.createElement( + 'p', + { id: 'aria-selection-event' }, + ' ', + this.state.ariaLiveSelection + ), + _.a.createElement( + 'p', + { id: 'aria-context' }, + ' ', + this.constructAriaLiveMessage() + ) + ) + : null; + } + }, + { + key: 'render', + value: function() { + var t = this.components, + e = t.Control, + n = t.IndicatorsContainer, + r = t.SelectContainer, + i = t.ValueContainer, + a = this.props, + s = a.className, + u = a.id, + l = a.isDisabled, + c = a.menuIsOpen, + f = this.state.isFocused, + d = (this.commonProps = this.getCommonProps()); + return _.a.createElement( + r, + Object(o.a)({}, d, { + className: s, + innerProps: { id: u, onKeyDown: this.onKeyDown }, + isDisabled: l, + isFocused: f + }), + this.renderLiveRegion(), + _.a.createElement( + e, + Object(o.a)({}, d, { + innerRef: this.getControlRef, + innerProps: { + onMouseDown: this.onControlMouseDown, + onTouchEnd: this.onControlTouchEnd + }, + isDisabled: l, + isFocused: f, + menuIsOpen: c + }), + _.a.createElement( + i, + Object(o.a)({}, d, { isDisabled: l }), + this.renderPlaceholderOrValue(), + this.renderInput() + ), + _.a.createElement( + n, + Object(o.a)({}, d, { isDisabled: l }), + this.renderClearIndicator(), + this.renderLoadingIndicator(), + this.renderIndicatorSeparator(), + this.renderDropdownIndicator() + ) ), - i.a.createElement( - 'p', - { id: 'aria-context' }, - ' ', - this.constructAriaLiveMessage() - ) - ) - : null; - }), - (a.render = function() { - var t = this.components, - e = t.Control, - n = t.IndicatorsContainer, - r = t.SelectContainer, - o = t.ValueContainer, - a = this.props, - s = a.className, - u = a.id, - l = a.isDisabled, - c = a.menuIsOpen, - f = this.state.isFocused, - d = (this.commonProps = this.getCommonProps()); - return i.a.createElement( - r, - xe({}, d, { - className: s, - innerProps: { id: u, onKeyDown: this.onKeyDown }, - isDisabled: l, - isFocused: f - }), - this.renderLiveRegion(), - i.a.createElement( - e, - xe({}, d, { - innerRef: this.getControlRef, - innerProps: { - onMouseDown: this.onControlMouseDown, - onTouchEnd: this.onControlTouchEnd - }, - isDisabled: l, - isFocused: f, - menuIsOpen: c - }), - i.a.createElement( - o, - xe({}, d, { isDisabled: l }), - this.renderPlaceholderOrValue(), - this.renderInput() - ), - i.a.createElement( - n, - xe({}, d, { isDisabled: l }), - this.renderClearIndicator(), - this.renderLoadingIndicator(), - this.renderIndicatorSeparator(), - this.renderDropdownIndicator() - ) - ), - this.renderMenu(), - this.renderFormField() - ); - }), - r + this.renderMenu(), + this.renderFormField() + ); + } + } + ]), + e ); - })(r.Component); - function Ae() { - return (Ae = - Object.assign || - function(t) { - for (var e = 1; e < arguments.length; e++) { - var n = arguments[e]; - for (var r in n) - Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); - } - return t; - }).apply(this, arguments); - } - ke.defaultProps = Se; + })(b.Component); + s(Ae, 'defaultProps', Ee); var Te = { defaultInputValue: '', defaultMenuIsOpen: !1, defaultValue: null }; + n.d(e, 'NonceProvider', function() { + return Me; + }), + n.d(e, 'components', function() { + return Yt; + }), + n.d(e, 'createFilter', function() { + return te; + }), + n.d(e, 'defaultTheme', function() { + return Se; + }), + n.d(e, 'mergeStyles', function() { + return we; + }); var Ce, Oe, Pe, Me = (function(t) { - var e, n; - function r(e) { + function e(t) { var n; return ( - ((n = t.call(this, e) || this).createEmotionCache = function(t) { - return h({ nonce: t }); - }), - (n.createEmotionCache = Object(o.a)(n.createEmotionCache)), + l(this, e), + s( + p(p((n = g(this, m(e).call(this, t))))), + 'createEmotionCache', + function(t) { + return O({ nonce: t }); + } + ), + (n.createEmotionCache = Object(x.a)(n.createEmotionCache)), n ); } return ( - (n = t), - ((e = r).prototype = Object.create(n.prototype)), - (e.prototype.constructor = e), - (e.__proto__ = n), - (r.prototype.render = function() { - var t = this.createEmotionCache(this.props.nonce); - return i.a.createElement(M, { value: t }, this.props.children); - }), - r + y(e, t), + f(e, [ + { + key: 'render', + value: function() { + var t = this.createEmotionCache(this.props.nonce); + return _.a.createElement( + X, + { value: t }, + this.props.children + ); + } + } + ]), + e ); - })(r.Component), + })(b.Component), Le = - ((Ce = ke), + ((Ce = Ae), (Pe = Oe = (function(t) { - var e, n; - function r() { + function e() { + var t, n; + l(this, e); for ( - var e, n = arguments.length, r = new Array(n), i = 0; - i < n; - i++ + var r = arguments.length, i = new Array(r), o = 0; + o < r; + o++ ) - r[i] = arguments[i]; + i[o] = arguments[o]; return ( - ((e = - t.call.apply(t, [this].concat(r)) || this).select = void 0), - (e.state = { + s( + p( + p((n = g(this, (t = m(e)).call.apply(t, [this].concat(i))))) + ), + 'select', + void 0 + ), + s(p(p(n)), 'state', { inputValue: - void 0 !== e.props.inputValue - ? e.props.inputValue - : e.props.defaultInputValue, + void 0 !== n.props.inputValue + ? n.props.inputValue + : n.props.defaultInputValue, menuIsOpen: - void 0 !== e.props.menuIsOpen - ? e.props.menuIsOpen - : e.props.defaultMenuIsOpen, + void 0 !== n.props.menuIsOpen + ? n.props.menuIsOpen + : n.props.defaultMenuIsOpen, value: - void 0 !== e.props.value - ? e.props.value - : e.props.defaultValue + void 0 !== n.props.value + ? n.props.value + : n.props.defaultValue }), - (e.onChange = function(t, n) { - e.callProp('onChange', t, n), e.setState({ value: t }); + s(p(p(n)), 'onChange', function(t, e) { + n.callProp('onChange', t, e), n.setState({ value: t }); }), - (e.onInputChange = function(t, n) { - var r = e.callProp('onInputChange', t, n); - e.setState({ inputValue: void 0 !== r ? r : t }); + s(p(p(n)), 'onInputChange', function(t, e) { + var r = n.callProp('onInputChange', t, e); + n.setState({ inputValue: void 0 !== r ? r : t }); }), - (e.onMenuOpen = function() { - e.callProp('onMenuOpen'), e.setState({ menuIsOpen: !0 }); + s(p(p(n)), 'onMenuOpen', function() { + n.callProp('onMenuOpen'), n.setState({ menuIsOpen: !0 }); }), - (e.onMenuClose = function() { - e.callProp('onMenuClose'), e.setState({ menuIsOpen: !1 }); + s(p(p(n)), 'onMenuClose', function() { + n.callProp('onMenuClose'), n.setState({ menuIsOpen: !1 }); }), - e + n ); } - (n = t), - ((e = r).prototype = Object.create(n.prototype)), - (e.prototype.constructor = e), - (e.__proto__ = n); - var o = r.prototype; return ( - (o.focus = function() { - this.select.focus(); - }), - (o.blur = function() { - this.select.blur(); - }), - (o.getProp = function(t) { - return void 0 !== this.props[t] ? this.props[t] : this.state[t]; - }), - (o.callProp = function(t) { - if ('function' == typeof this.props[t]) { - for ( - var e, - n = arguments.length, - r = new Array(n > 1 ? n - 1 : 0), - i = 1; - i < n; - i++ - ) - r[i - 1] = arguments[i]; - return (e = this.props)[t].apply(e, r); + y(e, t), + f(e, [ + { + key: 'focus', + value: function() { + this.select.focus(); + } + }, + { + key: 'blur', + value: function() { + this.select.blur(); + } + }, + { + key: 'getProp', + value: function(t) { + return void 0 !== this.props[t] + ? this.props[t] + : this.state[t]; + } + }, + { + key: 'callProp', + value: function(t) { + if ('function' == typeof this.props[t]) { + for ( + var e, + n = arguments.length, + r = new Array(n > 1 ? n - 1 : 0), + i = 1; + i < n; + i++ + ) + r[i - 1] = arguments[i]; + return (e = this.props)[t].apply(e, r); + } + } + }, + { + key: 'render', + value: function() { + var t = this, + e = this.props, + n = + (e.defaultInputValue, + e.defaultMenuIsOpen, + e.defaultValue, + i(e, [ + 'defaultInputValue', + 'defaultMenuIsOpen', + 'defaultValue' + ])); + return _.a.createElement( + Ce, + Object(o.a)({}, n, { + ref: function(e) { + t.select = e; + }, + inputValue: this.getProp('inputValue'), + menuIsOpen: this.getProp('menuIsOpen'), + onChange: this.onChange, + onInputChange: this.onInputChange, + onMenuClose: this.onMenuClose, + onMenuOpen: this.onMenuOpen, + value: this.getProp('value') + }) + ); + } } - }), - (o.render = function() { - var t = this, - e = this.props, - n = - (e.defaultInputValue, - e.defaultMenuIsOpen, - e.defaultValue, - (function(t, e) { - if (null == t) return {}; - var n, - r, - i = {}, - o = Object.keys(t); - for (r = 0; r < o.length; r++) - (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); - return i; - })(e, [ - 'defaultInputValue', - 'defaultMenuIsOpen', - 'defaultValue' - ])); - return i.a.createElement( - Ce, - Ae({}, n, { - ref: function(e) { - t.select = e; - }, - inputValue: this.getProp('inputValue'), - menuIsOpen: this.getProp('menuIsOpen'), - onChange: this.onChange, - onInputChange: this.onInputChange, - onMenuClose: this.onMenuClose, - onMenuOpen: this.onMenuOpen, - value: this.getProp('value') - }) - ); - }), - r + ]), + e ); - })(r.Component)), - (Oe.defaultProps = Te), + })(b.Component)), + s(Oe, 'defaultProps', Te), Pe); e.default = Le; }, function(t, e, n) { 'use strict'; - n.r(e), - n.d(e, 'Tabs', function() { - return k; - }), - n.d(e, 'TabList', function() { - return T; - }), - n.d(e, 'Tab', function() { - return O; - }), - n.d(e, 'TabPanel', function() { - return M; - }), - n.d(e, 'resetIdCounter', function() { - return y; - }); + n.r(e); n(1); var r = n(0), i = n.n(r); function o(t) { - return function(e) { - return !!e.type && e.type.tabsRole === t; - }; + return t.type && 'Tab' === t.type.tabsRole; } - var a = o('Tab'), - s = o('TabList'), - u = o('TabPanel'); - function l(t, e) { - var n = Object.keys(t); - if (Object.getOwnPropertySymbols) { - var r = Object.getOwnPropertySymbols(t); - e && - (r = r.filter(function(e) { - return Object.getOwnPropertyDescriptor(t, e).enumerable; - })), - n.push.apply(n, r); - } - return n; + function a(t) { + return t.type && 'TabPanel' === t.type.tabsRole; } - function c(t, e, n) { + function s(t) { + return t.type && 'TabList' === t.type.tabsRole; + } + function u(t, e, n) { return ( e in t ? Object.defineProperty(t, e, { @@ -158230,12 +157699,12 @@ object-assign t ); } - function f(t, e) { + function l(t, e) { return r.Children.map(t, function(t) { return null === t ? null : (function(t) { - return a(t) || s(t) || u(t); + return o(t) || s(t) || a(t); })(t) ? e(t) : t.props && t.props.children && 'object' == typeof t.props.children @@ -158243,62 +157712,59 @@ object-assign t, (function(t) { for (var e = 1; e < arguments.length; e++) { - var n = null != arguments[e] ? arguments[e] : {}; - e % 2 - ? l(Object(n), !0).forEach(function(e) { - c(t, e, n[e]); + var n = null != arguments[e] ? arguments[e] : {}, + r = Object.keys(n); + 'function' == typeof Object.getOwnPropertySymbols && + (r = r.concat( + Object.getOwnPropertySymbols(n).filter(function(t) { + return Object.getOwnPropertyDescriptor( + n, + t + ).enumerable; }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties( - t, - Object.getOwnPropertyDescriptors(n) - ) - : l(Object(n)).forEach(function(e) { - Object.defineProperty( - t, - e, - Object.getOwnPropertyDescriptor(n, e) - ); - }); + )), + r.forEach(function(e) { + u(t, e, n[e]); + }); } return t; - })({}, t.props, { children: f(t.props.children, e) }) + })({}, t.props, { children: l(t.props.children, e) }) ) : t; }); } - function d(t, e) { + function c(t, e) { return r.Children.forEach(t, function(t) { null !== t && - (a(t) || u(t) + (o(t) || a(t) ? e(t) : t.props && t.props.children && 'object' == typeof t.props.children && - (s(t) && e(t), d(t.props.children, e))); + (s(t) && e(t), c(t.props.children, e))); }); } - var h, - p = n(21), - g = n.n(p), - v = 0; - function m() { - return 'react-tabs-' + v++; + var f, + d = n(24), + h = n.n(d), + p = 0; + function g() { + return 'react-tabs-' + p++; } - function y() { - v = 0; + function m() { + p = 0; } - function b(t) { + function v(t) { var e = 0; return ( - d(t, function(t) { - a(t) && e++; + c(t, function(t) { + o(t) && e++; }), e ); } - function _() { - return (_ = + function y() { + return (y = Object.assign || function(t) { for (var e = 1; e < arguments.length; e++) { @@ -158309,63 +157775,58 @@ object-assign return t; }).apply(this, arguments); } - function x(t) { + function b(t) { return t && 'getAttribute' in t; } - function w(t) { - return x(t) && 'tab' === t.getAttribute('role'); + function _(t) { + return b(t) && 'tab' === t.getAttribute('role'); } - function S(t) { - return x(t) && 'true' === t.getAttribute('aria-disabled'); + function x(t) { + return b(t) && 'true' === t.getAttribute('aria-disabled'); } try { - h = !( + f = !( 'undefined' == typeof window || !window.document || !window.document.activeElement ); } catch (t) { - h = !1; + f = !1; } - var E = (function(t) { + var w = (function(t) { var e, n; - function o() { + function u() { for (var e, n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return ( ((e = t.call.apply(t, [this].concat(r)) || this).tabNodes = []), (e.handleKeyDown = function(t) { - var n = e.props.direction; if (e.isTabFromContainer(t.target)) { - var r = e.props.selectedIndex, - i = !1, - o = !1; + var n = e.props.selectedIndex, + r = !1, + i = !1; (32 !== t.keyCode && 13 !== t.keyCode) || - ((i = !0), (o = !1), e.handleClick(t)), + ((r = !0), (i = !1), e.handleClick(t)), 37 === t.keyCode || 38 === t.keyCode - ? ((r = 'rtl' === n ? e.getNextTab(r) : e.getPrevTab(r)), - (i = !0), - (o = !0)) + ? ((n = e.getPrevTab(n)), (r = !0), (i = !0)) : 39 === t.keyCode || 40 === t.keyCode - ? ((r = 'rtl' === n ? e.getPrevTab(r) : e.getNextTab(r)), - (i = !0), - (o = !0)) + ? ((n = e.getNextTab(n)), (r = !0), (i = !0)) : 35 === t.keyCode - ? ((r = e.getLastTab()), (i = !0), (o = !0)) + ? ((n = e.getLastTab()), (r = !0), (i = !0)) : 36 === t.keyCode && - ((r = e.getFirstTab()), (i = !0), (o = !0)), - i && t.preventDefault(), - o && e.setSelected(r, t); + ((n = e.getFirstTab()), (r = !0), (i = !0)), + r && t.preventDefault(), + i && e.setSelected(n, t); } }), (e.handleClick = function(t) { var n = t.target; do { if (e.isTabFromContainer(n)) { - if (S(n)) return; + if (x(n)) return; var r = [].slice .call(n.parentNode.children) - .filter(w) + .filter(_) .indexOf(n); return void e.setSelected(r, t); } @@ -158375,119 +157836,119 @@ object-assign ); } (n = t), - ((e = o).prototype = Object.create(n.prototype)), + ((e = u).prototype = Object.create(n.prototype)), (e.prototype.constructor = e), (e.__proto__ = n); - var l = o.prototype; + var d = u.prototype; return ( - (l.setSelected = function(t, e) { + (d.setSelected = function(t, e) { if (!(t < 0 || t >= this.getTabsCount())) { var n = this.props; (0, n.onSelect)(t, n.selectedIndex, e); } }), - (l.getNextTab = function(t) { + (d.getNextTab = function(t) { for (var e = this.getTabsCount(), n = t + 1; n < e; n++) - if (!S(this.getTab(n))) return n; - for (var r = 0; r < t; r++) if (!S(this.getTab(r))) return r; + if (!x(this.getTab(n))) return n; + for (var r = 0; r < t; r++) if (!x(this.getTab(r))) return r; return t; }), - (l.getPrevTab = function(t) { - for (var e = t; e--; ) if (!S(this.getTab(e))) return e; + (d.getPrevTab = function(t) { + for (var e = t; e--; ) if (!x(this.getTab(e))) return e; for (e = this.getTabsCount(); e-- > t; ) - if (!S(this.getTab(e))) return e; + if (!x(this.getTab(e))) return e; return t; }), - (l.getFirstTab = function() { + (d.getFirstTab = function() { for (var t = this.getTabsCount(), e = 0; e < t; e++) - if (!S(this.getTab(e))) return e; + if (!x(this.getTab(e))) return e; return null; }), - (l.getLastTab = function() { + (d.getLastTab = function() { for (var t = this.getTabsCount(); t--; ) - if (!S(this.getTab(t))) return t; + if (!x(this.getTab(t))) return t; return null; }), - (l.getTabsCount = function() { - return b(this.props.children); + (d.getTabsCount = function() { + return v(this.props.children); }), - (l.getPanelsCount = function() { + (d.getPanelsCount = function() { return (function(t) { var e = 0; return ( - d(t, function(t) { - u(t) && e++; + c(t, function(t) { + a(t) && e++; }), e ); })(this.props.children); }), - (l.getTab = function(t) { + (d.getTab = function(t) { return this.tabNodes['tabs-' + t]; }), - (l.getChildren = function() { + (d.getChildren = function() { var t = this, e = 0, n = this.props, - o = n.children, - l = n.disabledTabClassName, - c = n.focus, - d = n.forceRenderTabPanel, + u = n.children, + c = n.disabledTabClassName, + d = n.focus, + h = n.forceRenderTabPanel, p = n.selectedIndex, - g = n.selectedTabClassName, + m = n.selectedTabClassName, v = n.selectedTabPanelClassName; (this.tabIds = this.tabIds || []), (this.panelIds = this.panelIds || []); for (var y = this.tabIds.length - this.getTabsCount(); y++ < 0; ) - this.tabIds.push(m()), this.panelIds.push(m()); - return f(o, function(n) { - var o = n; + this.tabIds.push(g()), this.panelIds.push(g()); + return l(u, function(n) { + var u = n; if (s(n)) { - var m = 0, + var g = 0, y = !1; - h && + f && (y = i.a.Children.toArray(n.props.children) - .filter(a) + .filter(o) .some(function(e, n) { return document.activeElement === t.getTab(n); })), - (o = Object(r.cloneElement)(n, { - children: f(n.props.children, function(e) { - var n = 'tabs-' + m, - i = p === m, + (u = Object(r.cloneElement)(n, { + children: l(n.props.children, function(e) { + var n = 'tabs-' + g, + i = p === g, o = { tabRef: function(e) { t.tabNodes[n] = e; }, - id: t.tabIds[m], - panelId: t.panelIds[m], + id: t.tabIds[g], + panelId: t.panelIds[g], selected: i, - focus: i && (c || y) + focus: i && (d || y) }; return ( - g && (o.selectedClassName = g), - l && (o.disabledClassName = l), - m++, + m && (o.selectedClassName = m), + c && (o.disabledClassName = c), + g++, Object(r.cloneElement)(e, o) ); }) })); - } else if (u(n)) { + } else if (a(n)) { var b = { id: t.panelIds[e], tabId: t.tabIds[e], selected: p === e }; - d && (b.forceRender = d), + h && (b.forceRender = h), v && (b.selectedClassName = v), e++, - (o = Object(r.cloneElement)(n, b)); + (u = Object(r.cloneElement)(n, b)); } - return o; + return u; }); }), - (l.isTabFromContainer = function(t) { - if (!w(t)) return !1; + (d.isTabFromContainer = function(t) { + if (!_(t)) return !1; var e = t.parentElement; do { if (e === this.node) return !0; @@ -158496,7 +157957,7 @@ object-assign } while (e); return !1; }), - (l.render = function() { + (d.render = function() { var t = this, e = this.props, n = (e.children, e.className), @@ -158531,8 +157992,8 @@ object-assign ])); return i.a.createElement( 'div', - _({}, o, { - className: g()(n), + y({}, o, { + className: h()(n), onClick: this.handleClick, onKeyDown: this.handleKeyDown, ref: function(e) { @@ -158543,84 +158004,89 @@ object-assign this.getChildren() ); }), - o + u ); })(r.Component); - (E.defaultProps = { className: 'react-tabs', focus: !1 }), - (E.propTypes = {}); - var k = (function(t) { - var e, n; - function r(e) { - var n; + (w.defaultProps = { className: 'react-tabs', focus: !1 }), + (w.propTypes = {}); + var S = 1, + E = (function(t) { + var e, n; + function r(e) { + var n; + return ( + ((n = t.call(this, e) || this).handleSelected = function( + t, + e, + r + ) { + var i = n.props.onSelect, + o = n.state.mode; + if ('function' != typeof i || !1 !== i(t, e, r)) { + var a = { focus: 'keydown' === r.type }; + o === S && (a.selectedIndex = t), n.setState(a); + } + }), + (n.state = r.copyPropsToState(n.props, {}, e.defaultFocus)), + n + ); + } return ( - ((n = t.call(this, e) || this).handleSelected = function(t, e, r) { - var i = n.props.onSelect, - o = n.state.mode; - if ('function' != typeof i || !1 !== i(t, e, r)) { - var a = { focus: 'keydown' === r.type }; - 1 === o && (a.selectedIndex = t), n.setState(a); + (n = t), + ((e = r).prototype = Object.create(n.prototype)), + (e.prototype.constructor = e), + (e.__proto__ = n), + (r.getDerivedStateFromProps = function(t, e) { + return r.copyPropsToState(t, e); + }), + (r.getModeFromProps = function(t) { + return null === t.selectedIndex ? S : 0; + }), + (r.copyPropsToState = function(t, e, n) { + void 0 === n && (n = !1); + var i = { focus: n, mode: r.getModeFromProps(t) }; + if (i.mode === S) { + var o = v(t.children) - 1, + a = null; + (a = + null != e.selectedIndex + ? Math.min(e.selectedIndex, o) + : t.defaultIndex || 0), + (i.selectedIndex = a); } + return i; }), - (n.state = r.copyPropsToState(n.props, {}, e.defaultFocus)), - n + (r.prototype.render = function() { + var t = this.props, + e = t.children, + n = + (t.defaultIndex, + t.defaultFocus, + (function(t, e) { + if (null == t) return {}; + var n, + r, + i = {}, + o = Object.keys(t); + for (r = 0; r < o.length; r++) + (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); + return i; + })(t, ['children', 'defaultIndex', 'defaultFocus'])), + r = this.state, + o = r.focus, + a = r.selectedIndex; + return ( + (n.focus = o), + (n.onSelect = this.handleSelected), + null != a && (n.selectedIndex = a), + i.a.createElement(w, n, e) + ); + }), + r ); - } - return ( - (n = t), - ((e = r).prototype = Object.create(n.prototype)), - (e.prototype.constructor = e), - (e.__proto__ = n), - (r.getDerivedStateFromProps = function(t, e) { - return r.copyPropsToState(t, e); - }), - (r.getModeFromProps = function(t) { - return null === t.selectedIndex ? 1 : 0; - }), - (r.copyPropsToState = function(t, e, n) { - void 0 === n && (n = !1); - var i = { focus: n, mode: r.getModeFromProps(t) }; - if (1 === i.mode) { - var o = b(t.children) - 1, - a = null; - (a = - null != e.selectedIndex - ? Math.min(e.selectedIndex, o) - : t.defaultIndex || 0), - (i.selectedIndex = a); - } - return i; - }), - (r.prototype.render = function() { - var t = this.props, - e = t.children, - n = - (t.defaultIndex, - t.defaultFocus, - (function(t, e) { - if (null == t) return {}; - var n, - r, - i = {}, - o = Object.keys(t); - for (r = 0; r < o.length; r++) - (n = o[r]), e.indexOf(n) >= 0 || (i[n] = t[n]); - return i; - })(t, ['children', 'defaultIndex', 'defaultFocus'])), - r = this.state, - o = r.focus, - a = r.selectedIndex; - return ( - (n.focus = o), - (n.onSelect = this.handleSelected), - null != a && (n.selectedIndex = a), - i.a.createElement(E, n, e) - ); - }), - r - ); - })(r.Component); - function A() { - return (A = + })(r.Component); + function k() { + return (k = Object.assign || function(t) { for (var e = 1; e < arguments.length; e++) { @@ -158631,15 +158097,15 @@ object-assign return t; }).apply(this, arguments); } - (k.defaultProps = { + (E.defaultProps = { defaultFocus: !1, forceRenderTabPanel: !1, selectedIndex: null, defaultIndex: null }), - (k.propTypes = {}), - (k.tabsRole = 'Tabs'); - var T = (function(t) { + (E.propTypes = {}), + (E.tabsRole = 'Tabs'); + var A = (function(t) { var e, n; function r() { return t.apply(this, arguments) || this; @@ -158665,15 +158131,15 @@ object-assign })(t, ['children', 'className']); return i.a.createElement( 'ul', - A({}, r, { className: g()(n), role: 'tablist' }), + k({}, r, { className: h()(n), role: 'tablist' }), e ); }), r ); })(r.Component); - function C() { - return (C = + function T() { + return (T = Object.assign || function(t) { for (var e = 1; e < arguments.length; e++) { @@ -158684,10 +158150,10 @@ object-assign return t; }).apply(this, arguments); } - (T.defaultProps = { className: 'react-tabs__tab-list' }), - (T.propTypes = {}), - (T.tabsRole = 'TabList'); - var O = (function(t) { + (A.defaultProps = { className: 'react-tabs__tab-list' }), + (A.propTypes = {}), + (A.tabsRole = 'TabList'); + var C = (function(t) { var e, n; function r() { return t.apply(this, arguments) || this; @@ -158723,8 +158189,8 @@ object-assign c = n.selected, f = n.selectedClassName, d = n.tabIndex, - h = n.tabRef, - p = (function(t, e) { + p = n.tabRef, + g = (function(t, e) { if (null == t) return {}; var n, r, @@ -158748,10 +158214,10 @@ object-assign ]); return i.a.createElement( 'li', - C({}, p, { - className: g()(o, ((t = {}), (t[f] = c), (t[s] = a), t)), + T({}, g, { + className: h()(o, ((t = {}), (t[f] = c), (t[s] = a), t)), ref: function(t) { - (e.node = t), h && h(t); + (e.node = t), p && p(t); }, role: 'tab', id: u, @@ -158766,8 +158232,8 @@ object-assign r ); })(r.Component); - function P() { - return (P = + function O() { + return (O = Object.assign || function(t) { for (var e = 1; e < arguments.length; e++) { @@ -158778,7 +158244,7 @@ object-assign return t; }).apply(this, arguments); } - (O.defaultProps = { + (C.defaultProps = { className: 'react-tabs__tab', disabledClassName: 'react-tabs__tab--disabled', focus: !1, @@ -158787,9 +158253,9 @@ object-assign selected: !1, selectedClassName: 'react-tabs__tab--selected' }), - (O.propTypes = {}), - (O.tabsRole = 'Tab'); - var M = (function(t) { + (C.propTypes = {}), + (C.tabsRole = 'Tab'); + var P = (function(t) { var e, n; function r() { return t.apply(this, arguments) || this; @@ -158829,8 +158295,8 @@ object-assign ]); return i.a.createElement( 'div', - P({}, c, { - className: g()(r, ((t = {}), (t[u] = s), t)), + O({}, c, { + className: h()(r, ((t = {}), (t[u] = s), t)), role: 'tabpanel', id: a, 'aria-labelledby': l @@ -158841,386 +158307,28 @@ object-assign r ); })(r.Component); - (M.defaultProps = { + (P.defaultProps = { className: 'react-tabs__tab-panel', forceRender: !1, selectedClassName: 'react-tabs__tab-panel--selected' }), - (M.propTypes = {}), - (M.tabsRole = 'TabPanel'); - }, - function(t, e, n) { - 'use strict'; - n.r(e), - n.d(e, 'v1', function() { - return h; + (P.propTypes = {}), + (P.tabsRole = 'TabPanel'), + n.d(e, 'Tabs', function() { + return E; }), - n.d(e, 'v3', function() { - return x; + n.d(e, 'TabList', function() { + return A; }), - n.d(e, 'v4', function() { - return w; + n.d(e, 'Tab', function() { + return C; }), - n.d(e, 'v5', function() { - return k; + n.d(e, 'TabPanel', function() { + return P; + }), + n.d(e, 'resetIdCounter', function() { + return m; }); - var r = - ('undefined' != typeof crypto && - crypto.getRandomValues && - crypto.getRandomValues.bind(crypto)) || - ('undefined' != typeof msCrypto && - 'function' == typeof msCrypto.getRandomValues && - msCrypto.getRandomValues.bind(msCrypto)), - i = new Uint8Array(16); - function o() { - if (!r) - throw new Error( - 'crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported' - ); - return r(i); - } - for (var a = [], s = 0; s < 256; ++s) - a[s] = (s + 256).toString(16).substr(1); - var u, - l, - c = function(t, e) { - var n = e || 0, - r = a; - return [ - r[t[n++]], - r[t[n++]], - r[t[n++]], - r[t[n++]], - '-', - r[t[n++]], - r[t[n++]], - '-', - r[t[n++]], - r[t[n++]], - '-', - r[t[n++]], - r[t[n++]], - '-', - r[t[n++]], - r[t[n++]], - r[t[n++]], - r[t[n++]], - r[t[n++]], - r[t[n++]] - ].join(''); - }, - f = 0, - d = 0; - var h = function(t, e, n) { - var r = (e && n) || 0, - i = e || [], - a = (t = t || {}).node || u, - s = void 0 !== t.clockseq ? t.clockseq : l; - if (null == a || null == s) { - var h = t.random || (t.rng || o)(); - null == a && (a = u = [1 | h[0], h[1], h[2], h[3], h[4], h[5]]), - null == s && (s = l = 16383 & ((h[6] << 8) | h[7])); - } - var p = void 0 !== t.msecs ? t.msecs : new Date().getTime(), - g = void 0 !== t.nsecs ? t.nsecs : d + 1, - v = p - f + (g - d) / 1e4; - if ( - (v < 0 && void 0 === t.clockseq && (s = (s + 1) & 16383), - (v < 0 || p > f) && void 0 === t.nsecs && (g = 0), - g >= 1e4) - ) - throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); - (f = p), (d = g), (l = s); - var m = (1e4 * (268435455 & (p += 122192928e5)) + g) % 4294967296; - (i[r++] = (m >>> 24) & 255), - (i[r++] = (m >>> 16) & 255), - (i[r++] = (m >>> 8) & 255), - (i[r++] = 255 & m); - var y = ((p / 4294967296) * 1e4) & 268435455; - (i[r++] = (y >>> 8) & 255), - (i[r++] = 255 & y), - (i[r++] = ((y >>> 24) & 15) | 16), - (i[r++] = (y >>> 16) & 255), - (i[r++] = (s >>> 8) | 128), - (i[r++] = 255 & s); - for (var b = 0; b < 6; ++b) i[r + b] = a[b]; - return e || c(i); - }; - var p = function(t, e, n) { - var r = function(t, r, i, o) { - var a = (i && o) || 0; - if ( - ('string' == typeof t && - (t = (function(t) { - t = unescape(encodeURIComponent(t)); - for (var e = new Array(t.length), n = 0; n < t.length; n++) - e[n] = t.charCodeAt(n); - return e; - })(t)), - 'string' == typeof r && - (r = (function(t) { - var e = []; - return ( - t.replace(/[a-fA-F0-9]{2}/g, function(t) { - e.push(parseInt(t, 16)); - }), - e - ); - })(r)), - !Array.isArray(t)) - ) - throw TypeError('value must be an array of bytes'); - if (!Array.isArray(r) || 16 !== r.length) - throw TypeError( - 'namespace must be uuid string or an Array of 16 byte values' - ); - var s = n(r.concat(t)); - if (((s[6] = (15 & s[6]) | e), (s[8] = (63 & s[8]) | 128), i)) - for (var u = 0; u < 16; ++u) i[a + u] = s[u]; - return i || c(s); - }; - try { - r.name = t; - } catch (t) {} - return ( - (r.DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'), - (r.URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'), - r - ); - }; - function g(t, e) { - var n = (65535 & t) + (65535 & e); - return (((t >> 16) + (e >> 16) + (n >> 16)) << 16) | (65535 & n); - } - function v(t, e, n, r, i, o) { - return g(((a = g(g(e, t), g(r, o))) << (s = i)) | (a >>> (32 - s)), n); - var a, s; - } - function m(t, e, n, r, i, o, a) { - return v((e & n) | (~e & r), t, e, i, o, a); - } - function y(t, e, n, r, i, o, a) { - return v((e & r) | (n & ~r), t, e, i, o, a); - } - function b(t, e, n, r, i, o, a) { - return v(e ^ n ^ r, t, e, i, o, a); - } - function _(t, e, n, r, i, o, a) { - return v(n ^ (e | ~r), t, e, i, o, a); - } - var x = p('v3', 48, function(t) { - if ('string' == typeof t) { - var e = unescape(encodeURIComponent(t)); - t = new Array(e.length); - for (var n = 0; n < e.length; n++) t[n] = e.charCodeAt(n); - } - return (function(t) { - var e, - n, - r, - i = [], - o = 32 * t.length; - for (e = 0; e < o; e += 8) - (n = (t[e >> 5] >>> e % 32) & 255), - (r = parseInt( - '0123456789abcdef'.charAt((n >>> 4) & 15) + - '0123456789abcdef'.charAt(15 & n), - 16 - )), - i.push(r); - return i; - })( - (function(t, e) { - var n, r, i, o, a; - (t[e >> 5] |= 128 << e % 32), (t[14 + (((e + 64) >>> 9) << 4)] = e); - var s = 1732584193, - u = -271733879, - l = -1732584194, - c = 271733878; - for (n = 0; n < t.length; n += 16) - (r = s), - (i = u), - (o = l), - (a = c), - (s = m(s, u, l, c, t[n], 7, -680876936)), - (c = m(c, s, u, l, t[n + 1], 12, -389564586)), - (l = m(l, c, s, u, t[n + 2], 17, 606105819)), - (u = m(u, l, c, s, t[n + 3], 22, -1044525330)), - (s = m(s, u, l, c, t[n + 4], 7, -176418897)), - (c = m(c, s, u, l, t[n + 5], 12, 1200080426)), - (l = m(l, c, s, u, t[n + 6], 17, -1473231341)), - (u = m(u, l, c, s, t[n + 7], 22, -45705983)), - (s = m(s, u, l, c, t[n + 8], 7, 1770035416)), - (c = m(c, s, u, l, t[n + 9], 12, -1958414417)), - (l = m(l, c, s, u, t[n + 10], 17, -42063)), - (u = m(u, l, c, s, t[n + 11], 22, -1990404162)), - (s = m(s, u, l, c, t[n + 12], 7, 1804603682)), - (c = m(c, s, u, l, t[n + 13], 12, -40341101)), - (l = m(l, c, s, u, t[n + 14], 17, -1502002290)), - (u = m(u, l, c, s, t[n + 15], 22, 1236535329)), - (s = y(s, u, l, c, t[n + 1], 5, -165796510)), - (c = y(c, s, u, l, t[n + 6], 9, -1069501632)), - (l = y(l, c, s, u, t[n + 11], 14, 643717713)), - (u = y(u, l, c, s, t[n], 20, -373897302)), - (s = y(s, u, l, c, t[n + 5], 5, -701558691)), - (c = y(c, s, u, l, t[n + 10], 9, 38016083)), - (l = y(l, c, s, u, t[n + 15], 14, -660478335)), - (u = y(u, l, c, s, t[n + 4], 20, -405537848)), - (s = y(s, u, l, c, t[n + 9], 5, 568446438)), - (c = y(c, s, u, l, t[n + 14], 9, -1019803690)), - (l = y(l, c, s, u, t[n + 3], 14, -187363961)), - (u = y(u, l, c, s, t[n + 8], 20, 1163531501)), - (s = y(s, u, l, c, t[n + 13], 5, -1444681467)), - (c = y(c, s, u, l, t[n + 2], 9, -51403784)), - (l = y(l, c, s, u, t[n + 7], 14, 1735328473)), - (u = y(u, l, c, s, t[n + 12], 20, -1926607734)), - (s = b(s, u, l, c, t[n + 5], 4, -378558)), - (c = b(c, s, u, l, t[n + 8], 11, -2022574463)), - (l = b(l, c, s, u, t[n + 11], 16, 1839030562)), - (u = b(u, l, c, s, t[n + 14], 23, -35309556)), - (s = b(s, u, l, c, t[n + 1], 4, -1530992060)), - (c = b(c, s, u, l, t[n + 4], 11, 1272893353)), - (l = b(l, c, s, u, t[n + 7], 16, -155497632)), - (u = b(u, l, c, s, t[n + 10], 23, -1094730640)), - (s = b(s, u, l, c, t[n + 13], 4, 681279174)), - (c = b(c, s, u, l, t[n], 11, -358537222)), - (l = b(l, c, s, u, t[n + 3], 16, -722521979)), - (u = b(u, l, c, s, t[n + 6], 23, 76029189)), - (s = b(s, u, l, c, t[n + 9], 4, -640364487)), - (c = b(c, s, u, l, t[n + 12], 11, -421815835)), - (l = b(l, c, s, u, t[n + 15], 16, 530742520)), - (u = b(u, l, c, s, t[n + 2], 23, -995338651)), - (s = _(s, u, l, c, t[n], 6, -198630844)), - (c = _(c, s, u, l, t[n + 7], 10, 1126891415)), - (l = _(l, c, s, u, t[n + 14], 15, -1416354905)), - (u = _(u, l, c, s, t[n + 5], 21, -57434055)), - (s = _(s, u, l, c, t[n + 12], 6, 1700485571)), - (c = _(c, s, u, l, t[n + 3], 10, -1894986606)), - (l = _(l, c, s, u, t[n + 10], 15, -1051523)), - (u = _(u, l, c, s, t[n + 1], 21, -2054922799)), - (s = _(s, u, l, c, t[n + 8], 6, 1873313359)), - (c = _(c, s, u, l, t[n + 15], 10, -30611744)), - (l = _(l, c, s, u, t[n + 6], 15, -1560198380)), - (u = _(u, l, c, s, t[n + 13], 21, 1309151649)), - (s = _(s, u, l, c, t[n + 4], 6, -145523070)), - (c = _(c, s, u, l, t[n + 11], 10, -1120210379)), - (l = _(l, c, s, u, t[n + 2], 15, 718787259)), - (u = _(u, l, c, s, t[n + 9], 21, -343485551)), - (s = g(s, r)), - (u = g(u, i)), - (l = g(l, o)), - (c = g(c, a)); - return [s, u, l, c]; - })( - (function(t) { - var e, - n = []; - for (n[(t.length >> 2) - 1] = void 0, e = 0; e < n.length; e += 1) - n[e] = 0; - var r = 8 * t.length; - for (e = 0; e < r; e += 8) - n[e >> 5] |= (255 & t[e / 8]) << e % 32; - return n; - })(t), - 8 * t.length - ) - ); - }); - var w = function(t, e, n) { - var r = (e && n) || 0; - 'string' == typeof t && - ((e = 'binary' === t ? new Array(16) : null), (t = null)); - var i = (t = t || {}).random || (t.rng || o)(); - if (((i[6] = (15 & i[6]) | 64), (i[8] = (63 & i[8]) | 128), e)) - for (var a = 0; a < 16; ++a) e[r + a] = i[a]; - return e || c(i); - }; - function S(t, e, n, r) { - switch (t) { - case 0: - return (e & n) ^ (~e & r); - case 1: - return e ^ n ^ r; - case 2: - return (e & n) ^ (e & r) ^ (n & r); - case 3: - return e ^ n ^ r; - } - } - function E(t, e) { - return (t << e) | (t >>> (32 - e)); - } - var k = p('v5', 80, function(t) { - var e = [1518500249, 1859775393, 2400959708, 3395469782], - n = [1732584193, 4023233417, 2562383102, 271733878, 3285377520]; - if ('string' == typeof t) { - var r = unescape(encodeURIComponent(t)); - t = new Array(r.length); - for (var i = 0; i < r.length; i++) t[i] = r.charCodeAt(i); - } - t.push(128); - var o = t.length / 4 + 2, - a = Math.ceil(o / 16), - s = new Array(a); - for (i = 0; i < a; i++) { - s[i] = new Array(16); - for (var u = 0; u < 16; u++) - s[i][u] = - (t[64 * i + 4 * u] << 24) | - (t[64 * i + 4 * u + 1] << 16) | - (t[64 * i + 4 * u + 2] << 8) | - t[64 * i + 4 * u + 3]; - } - for ( - s[a - 1][14] = (8 * (t.length - 1)) / Math.pow(2, 32), - s[a - 1][14] = Math.floor(s[a - 1][14]), - s[a - 1][15] = (8 * (t.length - 1)) & 4294967295, - i = 0; - i < a; - i++ - ) { - for (var l = new Array(80), c = 0; c < 16; c++) l[c] = s[i][c]; - for (c = 16; c < 80; c++) - l[c] = E(l[c - 3] ^ l[c - 8] ^ l[c - 14] ^ l[c - 16], 1); - var f = n[0], - d = n[1], - h = n[2], - p = n[3], - g = n[4]; - for (c = 0; c < 80; c++) { - var v = Math.floor(c / 20), - m = (E(f, 5) + S(v, d, h, p) + g + e[v] + l[c]) >>> 0; - (g = p), (p = h), (h = E(d, 30) >>> 0), (d = f), (f = m); - } - (n[0] = (n[0] + f) >>> 0), - (n[1] = (n[1] + d) >>> 0), - (n[2] = (n[2] + h) >>> 0), - (n[3] = (n[3] + p) >>> 0), - (n[4] = (n[4] + g) >>> 0); - } - return [ - (n[0] >> 24) & 255, - (n[0] >> 16) & 255, - (n[0] >> 8) & 255, - 255 & n[0], - (n[1] >> 24) & 255, - (n[1] >> 16) & 255, - (n[1] >> 8) & 255, - 255 & n[1], - (n[2] >> 24) & 255, - (n[2] >> 16) & 255, - (n[2] >> 8) & 255, - 255 & n[2], - (n[3] >> 24) & 255, - (n[3] >> 16) & 255, - (n[3] >> 8) & 255, - 255 & n[3], - (n[4] >> 24) & 255, - (n[4] >> 16) & 255, - (n[4] >> 8) & 255, - 255 & n[4] - ]; - }); } ]); }); diff --git a/lib/builder/components/Buttons.js b/lib/builder/components/Buttons.js index 1b8712b..8a65cc9 100644 --- a/lib/builder/components/Buttons.js +++ b/lib/builder/components/Buttons.js @@ -112,4 +112,7 @@ const mapDispatchTopProps = { cloneChart }; -export default connect(mapStateToProps, mapDispatchTopProps)(ChartButtons); +export default connect( + mapStateToProps, + mapDispatchTopProps +)(ChartButtons); diff --git a/lib/builder/components/Chart.js b/lib/builder/components/Chart.js index 07e29b9..5ce413f 100644 --- a/lib/builder/components/Chart.js +++ b/lib/builder/components/Chart.js @@ -112,7 +112,10 @@ const mapDispatchToProps = { savedQueryError }; -export default connect(mapStateToProps, mapDispatchToProps)(Chart); +export default connect( + mapStateToProps, + mapDispatchToProps +)(Chart); Chart.propTypes = { type: PropTypes.string, diff --git a/lib/builder/components/ChartContainer.js b/lib/builder/components/ChartContainer.js index ee5891b..f2023e4 100644 --- a/lib/builder/components/ChartContainer.js +++ b/lib/builder/components/ChartContainer.js @@ -255,4 +255,7 @@ const mapDispatchToProps = { setLoading }; -export default connect(mapStateToProps, mapDispatchToProps)(ChartContainer); +export default connect( + mapStateToProps, + mapDispatchToProps +)(ChartContainer); diff --git a/lib/builder/components/Editor.js b/lib/builder/components/Editor.js index 1f8d086..c5c7fb2 100644 --- a/lib/builder/components/Editor.js +++ b/lib/builder/components/Editor.js @@ -101,4 +101,7 @@ const mapDispatchToProps = { loadingSingleDashboard }; -export default connect(mapStateToProps, mapDispatchToProps)(Editor); +export default connect( + mapStateToProps, + mapDispatchToProps +)(Editor); diff --git a/lib/builder/components/EditorDashboardsSwitch.js b/lib/builder/components/EditorDashboardsSwitch.js index bb1e2f5..9b86ab2 100644 --- a/lib/builder/components/EditorDashboardsSwitch.js +++ b/lib/builder/components/EditorDashboardsSwitch.js @@ -101,5 +101,8 @@ const mapDispatchToProps = { }; export default withRouter( - connect(mapStateToProps, mapDispatchToProps)(EditorDashboardsSwitch) + connect( + mapStateToProps, + mapDispatchToProps + )(EditorDashboardsSwitch) ); diff --git a/lib/builder/components/EditorToolbar.js b/lib/builder/components/EditorToolbar.js index ef62f45..d1d87c9 100644 --- a/lib/builder/components/EditorToolbar.js +++ b/lib/builder/components/EditorToolbar.js @@ -194,4 +194,7 @@ const mapDispatchToProps = { dropHandler }; -export default connect(mapStateToProps, mapDispatchToProps)(EditorToolbar); +export default connect( + mapStateToProps, + mapDispatchToProps +)(EditorToolbar); diff --git a/lib/builder/components/EmbedDashboard.js b/lib/builder/components/EmbedDashboard.js index 1ec0183..0e358e9 100644 --- a/lib/builder/components/EmbedDashboard.js +++ b/lib/builder/components/EmbedDashboard.js @@ -14,11 +14,9 @@ const EmbedDashboards = props => { const keenAnalysis = useContext(KeenAnalysisContext); useEffect(() => { if (!props.accessKey) { - getKeyFromAPI( - props.dashboardInfo.data, - props.id, - keenAnalysis - ).then(data => props.setAccessKey(data)); + getKeyFromAPI(props.dashboardInfo.data, props.id, keenAnalysis).then( + data => props.setAccessKey(data) + ); } }, []); @@ -101,5 +99,8 @@ const mapDispatchToProps = { }; export default withRouter( - connect(mapStateToProps, mapDispatchToProps)(EmbedDashboards) + connect( + mapStateToProps, + mapDispatchToProps + )(EmbedDashboards) ); diff --git a/lib/builder/components/Main.js b/lib/builder/components/Main.js index 1fd249f..30c3cdc 100644 --- a/lib/builder/components/Main.js +++ b/lib/builder/components/Main.js @@ -14,4 +14,7 @@ const mapDispatchToProps = { loadDashboards }; -export default connect(null, mapDispatchToProps)(Main); +export default connect( + null, + mapDispatchToProps +)(Main); diff --git a/lib/builder/components/NewDashboardButton.js b/lib/builder/components/NewDashboardButton.js index c4dcd0f..51dd368 100644 --- a/lib/builder/components/NewDashboardButton.js +++ b/lib/builder/components/NewDashboardButton.js @@ -64,5 +64,8 @@ const mapDispatchToProps = { }; export default withRouter( - connect(mapStateToProps, mapDispatchToProps)(NewDashboardButton) + connect( + mapStateToProps, + mapDispatchToProps + )(NewDashboardButton) ); diff --git a/lib/builder/components/SettingsChart.js b/lib/builder/components/SettingsChart.js index 8b6ea81..ddc0bd6 100644 --- a/lib/builder/components/SettingsChart.js +++ b/lib/builder/components/SettingsChart.js @@ -229,4 +229,7 @@ const mapDispatchToProps = { setChartTheme }; -export default connect(mapStateToProps, mapDispatchToProps)(SettingsChart); +export default connect( + mapStateToProps, + mapDispatchToProps +)(SettingsChart); diff --git a/lib/builder/components/SettingsDashboard.js b/lib/builder/components/SettingsDashboard.js index e8f773f..833e5bd 100644 --- a/lib/builder/components/SettingsDashboard.js +++ b/lib/builder/components/SettingsDashboard.js @@ -98,4 +98,7 @@ const mapDispatchToProps = { setTheme }; -export default connect(mapStateToProps, mapDispatchToProps)(SettingsDashboard); +export default connect( + mapStateToProps, + mapDispatchToProps +)(SettingsDashboard); diff --git a/lib/builder/components/SettingsImage.js b/lib/builder/components/SettingsImage.js index c1dd281..5ad94e1 100644 --- a/lib/builder/components/SettingsImage.js +++ b/lib/builder/components/SettingsImage.js @@ -38,4 +38,7 @@ const mapDispatchTopProps = { setSrcForImg }; -export default connect(mapStateToProps, mapDispatchTopProps)(SettingsImage); +export default connect( + mapStateToProps, + mapDispatchTopProps +)(SettingsImage); diff --git a/lib/builder/components/ShareDashboard.js b/lib/builder/components/ShareDashboard.js index 385e5eb..4ffce24 100644 --- a/lib/builder/components/ShareDashboard.js +++ b/lib/builder/components/ShareDashboard.js @@ -90,5 +90,8 @@ const mapDispatchToProps = { }; export default withRouter( - connect(mapStateToProps, mapDispatchToProps)(ShareDashboards) + connect( + mapStateToProps, + mapDispatchToProps + )(ShareDashboards) ); diff --git a/lib/builder/components/TextEditor.js b/lib/builder/components/TextEditor.js index bf2ff1e..f062cfa 100644 --- a/lib/builder/components/TextEditor.js +++ b/lib/builder/components/TextEditor.js @@ -36,7 +36,10 @@ const mapDispatchToProps = { setTextForParagraph }; -export default connect(mapStateToProps, mapDispatchToProps)(TextEditor); +export default connect( + mapStateToProps, + mapDispatchToProps +)(TextEditor); TextEditor.modules = { toolbar: { diff --git a/lib/viewer/components/Editor.js b/lib/viewer/components/Editor.js index 0584615..4944990 100644 --- a/lib/viewer/components/Editor.js +++ b/lib/viewer/components/Editor.js @@ -55,4 +55,7 @@ const mapDispatchToProps = { loadDashboards }; -export default connect(null, mapDispatchToProps)(Editor); +export default connect( + null, + mapDispatchToProps +)(Editor); diff --git a/lib/viewer/components/EditorContainer.js b/lib/viewer/components/EditorContainer.js index ff417fe..865900e 100644 --- a/lib/viewer/components/EditorContainer.js +++ b/lib/viewer/components/EditorContainer.js @@ -54,4 +54,7 @@ const mapDispatchToProps = { closeSettings }; -export default connect(mapStateTopProps, mapDispatchToProps)(EditorContainer); +export default connect( + mapStateTopProps, + mapDispatchToProps +)(EditorContainer); diff --git a/lib/viewer/components/EditorDashboard.js b/lib/viewer/components/EditorDashboard.js index b6f1141..24f3280 100644 --- a/lib/viewer/components/EditorDashboard.js +++ b/lib/viewer/components/EditorDashboard.js @@ -266,7 +266,10 @@ const mapDispatchToProps = { clearDashboardInfo }; -export default connect(mapStateToProps, mapDispatchToProps)(EditorDashboard); +export default connect( + mapStateToProps, + mapDispatchToProps +)(EditorDashboard); EditorDashboard.defaultProps = { cols: { lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 }, diff --git a/lib/viewer/components/Main.js b/lib/viewer/components/Main.js index 40f1fa6..da3cd5e 100644 --- a/lib/viewer/components/Main.js +++ b/lib/viewer/components/Main.js @@ -14,4 +14,7 @@ const mapDispatchToProps = { loadDashboards }; -export default connect(null, mapDispatchToProps)(Main); +export default connect( + null, + mapDispatchToProps +)(Main); diff --git a/lib/viewer/components/MainContainer.js b/lib/viewer/components/MainContainer.js index 05ae55f..19a498e 100644 --- a/lib/viewer/components/MainContainer.js +++ b/lib/viewer/components/MainContainer.js @@ -98,4 +98,7 @@ const mapStatetoProps = state => { }; }; -export default connect(mapStatetoProps, mapDispatchToProps)(MainContainer); +export default connect( + mapStatetoProps, + mapDispatchToProps +)(MainContainer); diff --git a/lib/viewer/components/MainListItemButtons.js b/lib/viewer/components/MainListItemButtons.js index 1b1e7ce..12c9293 100644 --- a/lib/viewer/components/MainListItemButtons.js +++ b/lib/viewer/components/MainListItemButtons.js @@ -37,4 +37,7 @@ const mapDispatchToProps = { deleteDashboardItem }; -export default connect(null, mapDispatchToProps)(MainListItemButtons); +export default connect( + null, + mapDispatchToProps +)(MainListItemButtons); diff --git a/lib/viewer/components/MainTopToolbar.js b/lib/viewer/components/MainTopToolbar.js index 197bd89..51d0c13 100644 --- a/lib/viewer/components/MainTopToolbar.js +++ b/lib/viewer/components/MainTopToolbar.js @@ -49,4 +49,7 @@ const mapDispatchToProps = { changeSorting }; -export default connect(mapStateToProps, mapDispatchToProps)(MainTopToolbar); +export default connect( + mapStateToProps, + mapDispatchToProps +)(MainTopToolbar); diff --git a/lib/viewer/components/SwitchDashboard.js b/lib/viewer/components/SwitchDashboard.js index 1db6405..3d3162c 100644 --- a/lib/viewer/components/SwitchDashboard.js +++ b/lib/viewer/components/SwitchDashboard.js @@ -43,5 +43,8 @@ const mapDispatchToProps = { }; export default withRouter( - connect(mapStateToProps, mapDispatchToProps)(SwitchDashboard) + connect( + mapStateToProps, + mapDispatchToProps + )(SwitchDashboard) ); diff --git a/package-lock.json b/package-lock.json index 8c3a697..caa33f1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "keen-dashboard-builder", - "version": "2.0.9", + "version": "2.0.10", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 90d775f..6f226ea 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "keen-dashboard-builder", "description": "Dashboard builder for Keen.io", "license": "MIT", - "version": "2.0.9", + "version": "2.0.10", "main": "dist/main.min.js", "scripts": { "start": "concurrently --kill-others \"NODE_ENV=development webpack-dev-server\"", From 6539cd0a1106131994c9a4123d6c8b2d7f3e66d6 Mon Sep 17 00:00:00 2001 From: Artur Pryka Date: Tue, 23 Feb 2021 08:22:48 +0100 Subject: [PATCH 10/15] 2.0.11 --- dist/main.min.js | 16 +++++++++++----- dist/viewer.min.js | 16 +++++++++++----- package-lock.json | 2 +- package.json | 2 +- 4 files changed, 24 insertions(+), 12 deletions(-) diff --git a/dist/main.min.js b/dist/main.min.js index 13a6ccb..102c980 100644 --- a/dist/main.min.js +++ b/dist/main.min.js @@ -237949,7 +237949,7 @@ object-assign }, []); var n = '\n \n \n \n \n \n \n
\n \n \n \n
\n +
From 837cb1740d97198aac7ff1567ab242746b10cf12 Mon Sep 17 00:00:00 2001 From: Artur Pryka Date: Tue, 4 May 2021 15:57:35 +0200 Subject: [PATCH 12/15] 2.0.12 --- dist/main.min.js | 24 ++++++++++++------------ dist/viewer.min.js | 12 ++++++------ package-lock.json | 2 +- package.json | 2 +- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/dist/main.min.js b/dist/main.min.js index 102c980..568e77b 100644 --- a/dist/main.min.js +++ b/dist/main.min.js @@ -11486,7 +11486,7 @@ (e.exports = ((r = n(0)), (o = n(1)), - (i = n(884)), + (i = n(883)), (a = n(65)), (s = n(638)), (c = n(639)), @@ -124491,7 +124491,7 @@ object-assign ][0].pattern = /(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/), Prism.languages.insertBefore('javascript', 'keyword', { regex: { - pattern: /((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^\/\\\[\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})\]]))/, + pattern: /((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})\]]))/, lookbehind: !0, greedy: !0 }, @@ -124599,7 +124599,7 @@ object-assign doctype: //i, cdata: //i, tag: { - pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s\/>])))+)?\s*\/?>/i, + pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/i, greedy: !0, inside: { tag: { @@ -132830,7 +132830,7 @@ object-assign n(0), n(881), n(1), - n(883), + n(884), n(4), n(41), n(745), @@ -144527,7 +144527,7 @@ object-assign doctype: //i, cdata: //i, tag: { - pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s\/>])))+)?\s*\/?>/i, + pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/i, greedy: !0, inside: { tag: { @@ -144623,7 +144623,7 @@ object-assign ][0].pattern = /(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/), Prism.languages.insertBefore('javascript', 'keyword', { regex: { - pattern: /((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^\/\\\[\r\n])+\/[gimyus]{0,6}(?=\s*($|[\r\n,.;})\]]))/, + pattern: /((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=\s*($|[\r\n,.;})\]]))/, lookbehind: !0, greedy: !0 }, @@ -206676,7 +206676,7 @@ object-assign n.endSameAsBegin && (n.endRe = (function(e) { return new RegExp( - e.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'), + e.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&'), 'm' ); })(t)), @@ -237947,10 +237947,10 @@ object-assign return e.setAccessKey(t); }); }, []); - var n = '\n \n \n \n \n \n \n
\n \n \n \n \n
\n \n \n \n
\n \n \n \n \n
\n \n \n \n \n
\n \n \n \n \n
\n